diff --git a/.tx/config b/.tx/config index 1f0ec5086..03b4c5dff 100644 --- a/.tx/config +++ b/.tx/config @@ -1,2332 +1,2383 @@ [main] host = https://www.transifex.com -[python-37.glossary_] +[python-37.about] +trans.pt_BR = about.po +source_lang = en +type = PO + +[python-37.bugs] +trans.pt_BR = bugs.po +source_lang = en +type = PO + +[python-37.contents] +trans.pt_BR = contents.po source_lang = en +type = PO + +[python-37.copyright] +trans.pt_BR = copyright.po +source_lang = en +type = PO + +[python-37.glossary_] trans.pt_BR = glossary.po +source_lang = en type = PO [python-37.license] -source_lang = en trans.pt_BR = license.po +source_lang = en type = PO [python-37.sphinx] -source_lang = en trans.pt_BR = sphinx.po +source_lang = en type = PO -[python-37.about] +[python-37.c-api--abstract] +trans.pt_BR = c-api/abstract.po source_lang = en -trans.pt_BR = about.po type = PO -[python-37.bugs] +[python-37.c-api--allocation] +trans.pt_BR = c-api/allocation.po source_lang = en -trans.pt_BR = bugs.po type = PO -[python-37.copyright] +[python-37.c-api--apiabiversion] +trans.pt_BR = c-api/apiabiversion.po source_lang = en -trans.pt_BR = copyright.po type = PO -[python-37.contents] +[python-37.c-api--arg] +trans.pt_BR = c-api/arg.po source_lang = en -trans.pt_BR = contents.po type = PO -[python-37.library--re] +[python-37.c-api--bool] +trans.pt_BR = c-api/bool.po source_lang = en -trans.pt_BR = library/re.po type = PO -[python-37.library--sysconfig] +[python-37.c-api--buffer] +trans.pt_BR = c-api/buffer.po source_lang = en -trans.pt_BR = library/sysconfig.po type = PO -[python-37.library--getpass] +[python-37.c-api--bytearray] +trans.pt_BR = c-api/bytearray.po source_lang = en -trans.pt_BR = library/getpass.po type = PO -[python-37.library--imghdr] +[python-37.c-api--bytes] +trans.pt_BR = c-api/bytes.po source_lang = en -trans.pt_BR = library/imghdr.po type = PO -[python-37.library--zipapp] +[python-37.c-api--capsule] +trans.pt_BR = c-api/capsule.po source_lang = en -trans.pt_BR = library/zipapp.po type = PO -[python-37.library--urllib_error] +[python-37.c-api--cell] +trans.pt_BR = c-api/cell.po source_lang = en -trans.pt_BR = library/urllib.error.po type = PO -[python-37.library--urllib_parse] +[python-37.c-api--code] +trans.pt_BR = c-api/code.po source_lang = en -trans.pt_BR = library/urllib.parse.po type = PO -[python-37.library--xml_sax_utils] +[python-37.c-api--codec] +trans.pt_BR = c-api/codec.po source_lang = en -trans.pt_BR = library/xml.sax.utils.po type = PO -[python-37.library--mmap] +[python-37.c-api--complex] +trans.pt_BR = c-api/complex.po source_lang = en -trans.pt_BR = library/mmap.po type = PO -[python-37.library--difflib] +[python-37.c-api--concrete] +trans.pt_BR = c-api/concrete.po source_lang = en -trans.pt_BR = library/difflib.po type = PO -[python-37.library--tkinter_scrolledtext] +[python-37.c-api--contextvars] +trans.pt_BR = c-api/contextvars.po source_lang = en -trans.pt_BR = library/tkinter.scrolledtext.po type = PO -[python-37.library--parser] +[python-37.c-api--conversion] +trans.pt_BR = c-api/conversion.po source_lang = en -trans.pt_BR = library/parser.po type = PO -[python-37.library--pyexpat] +[python-37.c-api--coro] +trans.pt_BR = c-api/coro.po source_lang = en -trans.pt_BR = library/pyexpat.po type = PO -[python-37.library--curses_panel] +[python-37.c-api--datetime] +trans.pt_BR = c-api/datetime.po source_lang = en -trans.pt_BR = library/curses.panel.po type = PO -[python-37.library--fractions] +[python-37.c-api--descriptor] +trans.pt_BR = c-api/descriptor.po source_lang = en -trans.pt_BR = library/fractions.po type = PO -[python-37.library--asyncio-subprocess] +[python-37.c-api--dict] +trans.pt_BR = c-api/dict.po source_lang = en -trans.pt_BR = library/asyncio-subprocess.po type = PO -[python-37.library--compileall] +[python-37.c-api--exceptions] +trans.pt_BR = c-api/exceptions.po source_lang = en -trans.pt_BR = library/compileall.po type = PO -[python-37.library--optparse] +[python-37.c-api--file] +trans.pt_BR = c-api/file.po source_lang = en -trans.pt_BR = library/optparse.po type = PO -[python-37.library--imp] +[python-37.c-api--float] +trans.pt_BR = c-api/float.po source_lang = en -trans.pt_BR = library/imp.po type = PO -[python-37.library--locale] +[python-37.c-api--function] +trans.pt_BR = c-api/function.po source_lang = en -trans.pt_BR = library/locale.po type = PO -[python-37.library--ctypes] +[python-37.c-api--gcsupport] +trans.pt_BR = c-api/gcsupport.po source_lang = en -trans.pt_BR = library/ctypes.po type = PO -[python-37.library--doctest] +[python-37.c-api--gen] +trans.pt_BR = c-api/gen.po source_lang = en -trans.pt_BR = library/doctest.po type = PO -[python-37.library--distribution] +[python-37.c-api--import] +trans.pt_BR = c-api/import.po source_lang = en -trans.pt_BR = library/distribution.po type = PO -[python-37.library--ipc] +[python-37.c-api--index] +trans.pt_BR = c-api/index.po source_lang = en -trans.pt_BR = library/ipc.po type = PO -[python-37.library--numeric] +[python-37.c-api--init] +trans.pt_BR = c-api/init.po source_lang = en -trans.pt_BR = library/numeric.po type = PO -[python-37.library--email_headerregistry] +[python-37.c-api--intro] +trans.pt_BR = c-api/intro.po source_lang = en -trans.pt_BR = library/email.headerregistry.po type = PO -[python-37.library--wave] +[python-37.c-api--iter] +trans.pt_BR = c-api/iter.po source_lang = en -trans.pt_BR = library/wave.po type = PO -[python-37.library--email_errors] +[python-37.c-api--iterator] +trans.pt_BR = c-api/iterator.po source_lang = en -trans.pt_BR = library/email.errors.po type = PO -[python-37.library--sunau] +[python-37.c-api--list] +trans.pt_BR = c-api/list.po source_lang = en -trans.pt_BR = library/sunau.po type = PO -[python-37.library--datetime] +[python-37.c-api--long] +trans.pt_BR = c-api/long.po source_lang = en -trans.pt_BR = library/datetime.po type = PO -[python-37.library--macpath] +[python-37.c-api--mapping] +trans.pt_BR = c-api/mapping.po source_lang = en -trans.pt_BR = library/macpath.po type = PO -[python-37.library--unix] +[python-37.c-api--marshal] +trans.pt_BR = c-api/marshal.po source_lang = en -trans.pt_BR = library/unix.po type = PO -[python-37.library--array] +[python-37.c-api--memory] +trans.pt_BR = c-api/memory.po source_lang = en -trans.pt_BR = library/array.po type = PO -[python-37.library--email_policy] +[python-37.c-api--memoryview] +trans.pt_BR = c-api/memoryview.po source_lang = en -trans.pt_BR = library/email.policy.po type = PO -[python-37.library--sched] +[python-37.c-api--method] +trans.pt_BR = c-api/method.po source_lang = en -trans.pt_BR = library/sched.po type = PO -[python-37.library--http_cookies] +[python-37.c-api--module] +trans.pt_BR = c-api/module.po source_lang = en -trans.pt_BR = library/http.cookies.po type = PO -[python-37.library--shutil] +[python-37.c-api--none] +trans.pt_BR = c-api/none.po source_lang = en -trans.pt_BR = library/shutil.po type = PO -[python-37.library--symbol] +[python-37.c-api--number] +trans.pt_BR = c-api/number.po source_lang = en -trans.pt_BR = library/symbol.po type = PO -[python-37.library--xml_dom_minidom] +[python-37.c-api--objbuffer] +trans.pt_BR = c-api/objbuffer.po source_lang = en -trans.pt_BR = library/xml.dom.minidom.po type = PO -[python-37.library--modules] +[python-37.c-api--object] +trans.pt_BR = c-api/object.po source_lang = en -trans.pt_BR = library/modules.po type = PO -[python-37.library--unicodedata] +[python-37.c-api--objimpl] +trans.pt_BR = c-api/objimpl.po source_lang = en -trans.pt_BR = library/unicodedata.po type = PO -[python-37.library--tkinter_ttk] +[python-37.c-api--refcounting] +trans.pt_BR = c-api/refcounting.po source_lang = en -trans.pt_BR = library/tkinter.ttk.po type = PO -[python-37.library--binascii] +[python-37.c-api--reflection] +trans.pt_BR = c-api/reflection.po source_lang = en -trans.pt_BR = library/binascii.po type = PO -[python-37.library--linecache] +[python-37.c-api--sequence] +trans.pt_BR = c-api/sequence.po source_lang = en -trans.pt_BR = library/linecache.po type = PO -[python-37.library--functools] +[python-37.c-api--set] +trans.pt_BR = c-api/set.po source_lang = en -trans.pt_BR = library/functools.po type = PO -[python-37.library--xml_sax_reader] +[python-37.c-api--slice] +trans.pt_BR = c-api/slice.po source_lang = en -trans.pt_BR = library/xml.sax.reader.po type = PO -[python-37.library--pydoc] +[python-37.c-api--stable] +trans.pt_BR = c-api/stable.po source_lang = en -trans.pt_BR = library/pydoc.po type = PO -[python-37.library--pwd] +[python-37.c-api--structures] +trans.pt_BR = c-api/structures.po source_lang = en -trans.pt_BR = library/pwd.po type = PO -[python-37.library--selectors] +[python-37.c-api--sys] +trans.pt_BR = c-api/sys.po source_lang = en -trans.pt_BR = library/selectors.po type = PO -[python-37.library--os_path] +[python-37.c-api--tuple] +trans.pt_BR = c-api/tuple.po source_lang = en -trans.pt_BR = library/os.path.po type = PO -[python-37.library--asyncio-sync] +[python-37.c-api--type] +trans.pt_BR = c-api/type.po source_lang = en -trans.pt_BR = library/asyncio-sync.po type = PO -[python-37.library--_dummy_thread] +[python-37.c-api--typeobj] +trans.pt_BR = c-api/typeobj.po source_lang = en -trans.pt_BR = library/_dummy_thread.po type = PO -[python-37.library--fcntl] +[python-37.c-api--unicode] +trans.pt_BR = c-api/unicode.po source_lang = en -trans.pt_BR = library/fcntl.po type = PO -[python-37.library--constants] +[python-37.c-api--utilities] +trans.pt_BR = c-api/utilities.po source_lang = en -trans.pt_BR = library/constants.po type = PO -[python-37.library--statistics] +[python-37.c-api--veryhigh] +trans.pt_BR = c-api/veryhigh.po source_lang = en -trans.pt_BR = library/statistics.po type = PO -[python-37.library--pty] +[python-37.c-api--weakref] +trans.pt_BR = c-api/weakref.po source_lang = en -trans.pt_BR = library/pty.po type = PO -[python-37.library--crypto] +[python-37.distributing--index] +trans.pt_BR = distributing/index.po source_lang = en -trans.pt_BR = library/crypto.po type = PO -[python-37.library--xml] +[python-37.distutils--apiref] +trans.pt_BR = distutils/apiref.po source_lang = en -trans.pt_BR = library/xml.po type = PO -[python-37.library--imaplib] +[python-37.distutils--builtdist] +trans.pt_BR = distutils/builtdist.po source_lang = en -trans.pt_BR = library/imaplib.po type = PO -[python-37.library--text] +[python-37.distutils--commandref] +trans.pt_BR = distutils/commandref.po source_lang = en -trans.pt_BR = library/text.po type = PO -[python-37.library--mm] +[python-37.distutils--configfile] +trans.pt_BR = distutils/configfile.po source_lang = en -trans.pt_BR = library/mm.po type = PO -[python-37.library--tempfile] +[python-37.distutils--examples] +trans.pt_BR = distutils/examples.po source_lang = en -trans.pt_BR = library/tempfile.po type = PO -[python-37.library--traceback] +[python-37.distutils--extending] +trans.pt_BR = distutils/extending.po source_lang = en -trans.pt_BR = library/traceback.po type = PO -[python-37.library--itertools] +[python-37.distutils--index] +trans.pt_BR = distutils/index.po source_lang = en -trans.pt_BR = library/itertools.po type = PO -[python-37.library--__future__] +[python-37.distutils--introduction] +trans.pt_BR = distutils/introduction.po source_lang = en -trans.pt_BR = library/__future__.po type = PO -[python-37.library--csv] +[python-37.distutils--packageindex] +trans.pt_BR = distutils/packageindex.po source_lang = en -trans.pt_BR = library/csv.po type = PO -[python-37.library--stringprep] +[python-37.distutils--setupscript] +trans.pt_BR = distutils/setupscript.po source_lang = en -trans.pt_BR = library/stringprep.po type = PO -[python-37.library--development] +[python-37.distutils--sourcedist] +trans.pt_BR = distutils/sourcedist.po +source_lang = en +type = PO + +[python-37.distutils--uploading] +trans.pt_BR = distutils/uploading.po +source_lang = en +type = PO + +[python-37.extending--building] +trans.pt_BR = extending/building.po +source_lang = en +type = PO + +[python-37.extending--embedding] +trans.pt_BR = extending/embedding.po +source_lang = en +type = PO + +[python-37.extending--extending] +trans.pt_BR = extending/extending.po +source_lang = en +type = PO + +[python-37.extending--index] +trans.pt_BR = extending/index.po +source_lang = en +type = PO + +[python-37.extending--newtypes] +trans.pt_BR = extending/newtypes.po source_lang = en -trans.pt_BR = library/development.po type = PO -[python-37.library--platform] +[python-37.extending--newtypes_tutorial] +trans.pt_BR = extending/newtypes_tutorial.po source_lang = en -trans.pt_BR = library/platform.po type = PO -[python-37.library--time] +[python-37.extending--windows] +trans.pt_BR = extending/windows.po source_lang = en -trans.pt_BR = library/time.po type = PO -[python-37.library--pyclbr] +[python-37.faq--design] +trans.pt_BR = faq/design.po source_lang = en -trans.pt_BR = library/pyclbr.po type = PO -[python-37.library--crypt] +[python-37.faq--extending] +trans.pt_BR = faq/extending.po source_lang = en -trans.pt_BR = library/crypt.po type = PO -[python-37.library--token] +[python-37.faq--general] +trans.pt_BR = faq/general.po source_lang = en -trans.pt_BR = library/token.po type = PO -[python-37.library--spwd] +[python-37.faq--gui] +trans.pt_BR = faq/gui.po source_lang = en -trans.pt_BR = library/spwd.po type = PO -[python-37.library--modulefinder] +[python-37.faq--index] +trans.pt_BR = faq/index.po source_lang = en -trans.pt_BR = library/modulefinder.po type = PO -[python-37.library--argparse] +[python-37.faq--installed] +trans.pt_BR = faq/installed.po source_lang = en -trans.pt_BR = library/argparse.po type = PO -[python-37.library--collections] +[python-37.faq--library] +trans.pt_BR = faq/library.po source_lang = en -trans.pt_BR = library/collections.po type = PO -[python-37.library--http] +[python-37.faq--programming] +trans.pt_BR = faq/programming.po source_lang = en -trans.pt_BR = library/http.po type = PO -[python-37.library--email] +[python-37.faq--windows] +trans.pt_BR = faq/windows.po source_lang = en -trans.pt_BR = library/email.po type = PO -[python-37.library--http_cookiejar] +[python-37.howto--argparse] +trans.pt_BR = howto/argparse.po source_lang = en -trans.pt_BR = library/http.cookiejar.po type = PO -[python-37.library--cmd] +[python-37.howto--clinic] +trans.pt_BR = howto/clinic.po source_lang = en -trans.pt_BR = library/cmd.po type = PO -[python-37.library--xml_dom_pulldom] +[python-37.howto--cporting] +trans.pt_BR = howto/cporting.po source_lang = en -trans.pt_BR = library/xml.dom.pulldom.po type = PO -[python-37.library--glob] +[python-37.howto--curses] +trans.pt_BR = howto/curses.po source_lang = en -trans.pt_BR = library/glob.po type = PO -[python-37.library--keyword] +[python-37.howto--descriptor] +trans.pt_BR = howto/descriptor.po source_lang = en -trans.pt_BR = library/keyword.po type = PO -[python-37.library--concurrency] +[python-37.howto--functional] +trans.pt_BR = howto/functional.po source_lang = en -trans.pt_BR = library/concurrency.po type = PO -[python-37.library--atexit] +[python-37.howto--index] +trans.pt_BR = howto/index.po source_lang = en -trans.pt_BR = library/atexit.po type = PO -[python-37.library--py_compile] +[python-37.howto--instrumentation] +trans.pt_BR = howto/instrumentation.po source_lang = en -trans.pt_BR = library/py_compile.po type = PO -[python-37.library--email_encoders] +[python-37.howto--ipaddress] +trans.pt_BR = howto/ipaddress.po source_lang = en -trans.pt_BR = library/email.encoders.po type = PO -[python-37.library--inspect] +[python-37.howto--logging-cookbook] +trans.pt_BR = howto/logging-cookbook.po source_lang = en -trans.pt_BR = library/inspect.po type = PO -[python-37.library--unittest_mock] +[python-37.howto--logging] +trans.pt_BR = howto/logging.po source_lang = en -trans.pt_BR = library/unittest.mock.po type = PO -[python-37.library--asyncio-eventloops] +[python-37.howto--pyporting] +trans.pt_BR = howto/pyporting.po source_lang = en -trans.pt_BR = library/asyncio-eventloops.po type = PO -[python-37.library--allos] +[python-37.howto--regex] +trans.pt_BR = howto/regex.po source_lang = en -trans.pt_BR = library/allos.po type = PO -[python-37.library--stat] +[python-37.howto--sockets] +trans.pt_BR = howto/sockets.po source_lang = en -trans.pt_BR = library/stat.po type = PO -[python-37.library--curses] +[python-37.howto--sorting] +trans.pt_BR = howto/sorting.po source_lang = en -trans.pt_BR = library/curses.po type = PO -[python-37.library--persistence] +[python-37.howto--unicode] +trans.pt_BR = howto/unicode.po source_lang = en -trans.pt_BR = library/persistence.po type = PO -[python-37.library--trace] +[python-37.howto--urllib2] +trans.pt_BR = howto/urllib2.po source_lang = en -trans.pt_BR = library/trace.po type = PO -[python-37.library--zipfile] +[python-37.install--index] +trans.pt_BR = install/index.po source_lang = en -trans.pt_BR = library/zipfile.po type = PO -[python-37.library--mimetypes] +[python-37.installing--index] +trans.pt_BR = installing/index.po source_lang = en -trans.pt_BR = library/mimetypes.po type = PO -[python-37.library--superseded] +[python-37.library--2to3] +trans.pt_BR = library/2to3.po source_lang = en -trans.pt_BR = library/superseded.po type = PO -[python-37.library--internet] +[python-37.library--__future__] +trans.pt_BR = library/__future__.po source_lang = en -trans.pt_BR = library/internet.po type = PO -[python-37.library--poplib] +[python-37.library--__main__] +trans.pt_BR = library/__main__.po source_lang = en -trans.pt_BR = library/poplib.po type = PO -[python-37.library--language] +[python-37.library--_dummy_thread] +trans.pt_BR = library/_dummy_thread.po source_lang = en -trans.pt_BR = library/language.po type = PO -[python-37.library--string] +[python-37.library--_thread] +trans.pt_BR = library/_thread.po source_lang = en -trans.pt_BR = library/string.po type = PO -[python-37.library--mailcap] +[python-37.library--abc] +trans.pt_BR = library/abc.po source_lang = en -trans.pt_BR = library/mailcap.po type = PO -[python-37.library--email_parser] +[python-37.library--aifc] +trans.pt_BR = library/aifc.po source_lang = en -trans.pt_BR = library/email.parser.po type = PO -[python-37.library--bz2] +[python-37.library--allos] +trans.pt_BR = library/allos.po source_lang = en -trans.pt_BR = library/bz2.po type = PO -[python-37.library--builtins] +[python-37.library--archiving] +trans.pt_BR = library/archiving.po source_lang = en -trans.pt_BR = library/builtins.po type = PO -[python-37.library--logging_config] +[python-37.library--argparse] +trans.pt_BR = library/argparse.po source_lang = en -trans.pt_BR = library/logging.config.po type = PO -[python-37.library--xml_sax_handler] +[python-37.library--array] +trans.pt_BR = library/array.po source_lang = en -trans.pt_BR = library/xml.sax.handler.po type = PO -[python-37.library--intro] +[python-37.library--ast] +trans.pt_BR = library/ast.po source_lang = en -trans.pt_BR = library/intro.po type = PO -[python-37.library--python] +[python-37.library--asynchat] +trans.pt_BR = library/asynchat.po source_lang = en -trans.pt_BR = library/python.po type = PO -[python-37.library--tarfile] +[python-37.library--asyncio-api-index] +trans.pt_BR = library/asyncio-api-index.po source_lang = en -trans.pt_BR = library/tarfile.po type = PO -[python-37.library--fnmatch] +[python-37.library--asyncio-dev] +trans.pt_BR = library/asyncio-dev.po source_lang = en -trans.pt_BR = library/fnmatch.po type = PO -[python-37.library--tty] +[python-37.library--asyncio-eventloop] +trans.pt_BR = library/asyncio-eventloop.po source_lang = en -trans.pt_BR = library/tty.po type = PO -[python-37.library--signal] +[python-37.library--asyncio-exceptions] +trans.pt_BR = library/asyncio-exceptions.po source_lang = en -trans.pt_BR = library/signal.po type = PO -[python-37.library--contextlib] +[python-37.library--asyncio-future] +trans.pt_BR = library/asyncio-future.po source_lang = en -trans.pt_BR = library/contextlib.po type = PO -[python-37.library--pkgutil] +[python-37.library--asyncio-llapi-index] +trans.pt_BR = library/asyncio-llapi-index.po source_lang = en -trans.pt_BR = library/pkgutil.po type = PO -[python-37.library--codeop] +[python-37.library--asyncio-platforms] +trans.pt_BR = library/asyncio-platforms.po source_lang = en -trans.pt_BR = library/codeop.po type = PO -[python-37.library--gettext] +[python-37.library--asyncio-policy] +trans.pt_BR = library/asyncio-policy.po source_lang = en -trans.pt_BR = library/gettext.po type = PO -[python-37.library--enum] +[python-37.library--asyncio-protocol] +trans.pt_BR = library/asyncio-protocol.po source_lang = en -trans.pt_BR = library/enum.po type = PO -[python-37.library--decimal] +[python-37.library--asyncio-queue] +trans.pt_BR = library/asyncio-queue.po source_lang = en -trans.pt_BR = library/decimal.po type = PO -[python-37.library--asyncio] +[python-37.library--asyncio-stream] +trans.pt_BR = library/asyncio-stream.po source_lang = en -trans.pt_BR = library/asyncio.po type = PO -[python-37.library--windows] +[python-37.library--asyncio-subprocess] +trans.pt_BR = library/asyncio-subprocess.po source_lang = en -trans.pt_BR = library/windows.po type = PO -[python-37.library--urllib_request] +[python-37.library--asyncio-sync] +trans.pt_BR = library/asyncio-sync.po source_lang = en -trans.pt_BR = library/urllib.request.po type = PO -[python-37.library--socket] +[python-37.library--asyncio-task] +trans.pt_BR = library/asyncio-task.po source_lang = en -trans.pt_BR = library/socket.po type = PO -[python-37.library--mailbox] +[python-37.library--asyncio] +trans.pt_BR = library/asyncio.po source_lang = en -trans.pt_BR = library/mailbox.po type = PO -[python-37.library--rlcompleter] +[python-37.library--asyncore] +trans.pt_BR = library/asyncore.po source_lang = en -trans.pt_BR = library/rlcompleter.po type = PO -[python-37.library--gzip] +[python-37.library--atexit] +trans.pt_BR = library/atexit.po source_lang = en -trans.pt_BR = library/gzip.po type = PO -[python-37.library--http_client] +[python-37.library--audioop] +trans.pt_BR = library/audioop.po source_lang = en -trans.pt_BR = library/http.client.po type = PO -[python-37.library--pickle] +[python-37.library--base64] +trans.pt_BR = library/base64.po source_lang = en -trans.pt_BR = library/pickle.po type = PO -[python-37.library--concurrent] +[python-37.library--bdb] +trans.pt_BR = library/bdb.po source_lang = en -trans.pt_BR = library/concurrent.po type = PO -[python-37.library--timeit] +[python-37.library--binary] +trans.pt_BR = library/binary.po source_lang = en -trans.pt_BR = library/timeit.po type = PO -[python-37.library--tkinter_tix] +[python-37.library--binascii] +trans.pt_BR = library/binascii.po source_lang = en -trans.pt_BR = library/tkinter.tix.po type = PO -[python-37.library--readline] +[python-37.library--binhex] +trans.pt_BR = library/binhex.po source_lang = en -trans.pt_BR = library/readline.po type = PO -[python-37.library--netrc] +[python-37.library--bisect] +trans.pt_BR = library/bisect.po source_lang = en -trans.pt_BR = library/netrc.po type = PO -[python-37.library--asyncio-dev] +[python-37.library--builtins] +trans.pt_BR = library/builtins.po source_lang = en -trans.pt_BR = library/asyncio-dev.po type = PO -[python-37.library--email_charset] +[python-37.library--bz2] +trans.pt_BR = library/bz2.po source_lang = en -trans.pt_BR = library/email.charset.po type = PO -[python-37.library--venv] +[python-37.library--calendar] +trans.pt_BR = library/calendar.po source_lang = en -trans.pt_BR = library/venv.po type = PO -[python-37.library--struct] +[python-37.library--cgi] +trans.pt_BR = library/cgi.po source_lang = en -trans.pt_BR = library/struct.po type = PO -[python-37.library--dbm] +[python-37.library--cgitb] +trans.pt_BR = library/cgitb.po source_lang = en -trans.pt_BR = library/dbm.po type = PO -[python-37.library--xdrlib] +[python-37.library--chunk] +trans.pt_BR = library/chunk.po source_lang = en -trans.pt_BR = library/xdrlib.po type = PO -[python-37.library--markup] +[python-37.library--cmath] +trans.pt_BR = library/cmath.po source_lang = en -trans.pt_BR = library/markup.po type = PO -[python-37.library--dummy_threading] +[python-37.library--cmd] +trans.pt_BR = library/cmd.po source_lang = en -trans.pt_BR = library/dummy_threading.po type = PO -[python-37.library--xml_dom] +[python-37.library--code] +trans.pt_BR = library/code.po source_lang = en -trans.pt_BR = library/xml.dom.po type = PO -[python-37.library--smtpd] +[python-37.library--codecs] +trans.pt_BR = library/codecs.po source_lang = en -trans.pt_BR = library/smtpd.po type = PO -[python-37.library--idle] +[python-37.library--codeop] +trans.pt_BR = library/codeop.po source_lang = en -trans.pt_BR = library/idle.po type = PO -[python-37.library--pipes] +[python-37.library--collections_abc] +trans.pt_BR = library/collections.abc.po source_lang = en -trans.pt_BR = library/pipes.po type = PO -[python-37.library--chunk] +[python-37.library--collections] +trans.pt_BR = library/collections.po source_lang = en -trans.pt_BR = library/chunk.po type = PO -[python-37.library--telnetlib] +[python-37.library--colorsys] +trans.pt_BR = library/colorsys.po source_lang = en -trans.pt_BR = library/telnetlib.po type = PO -[python-37.library--filesys] +[python-37.library--compileall] +trans.pt_BR = library/compileall.po source_lang = en -trans.pt_BR = library/filesys.po type = PO -[python-37.library--asynchat] +[python-37.library--concurrency] +trans.pt_BR = library/concurrency.po source_lang = en -trans.pt_BR = library/asynchat.po type = PO -[python-37.library--numbers] +[python-37.library--concurrent_futures] +trans.pt_BR = library/concurrent.futures.po source_lang = en -trans.pt_BR = library/numbers.po type = PO -[python-37.library--xmlrpc_server] +[python-37.library--concurrent] +trans.pt_BR = library/concurrent.po source_lang = en -trans.pt_BR = library/xmlrpc.server.po type = PO -[python-37.library--plistlib] +[python-37.library--configparser] +trans.pt_BR = library/configparser.po source_lang = en -trans.pt_BR = library/plistlib.po type = PO -[python-37.library--secrets] +[python-37.library--constants] +trans.pt_BR = library/constants.po source_lang = en -trans.pt_BR = library/secrets.po type = PO -[python-37.library--marshal] +[python-37.library--contextlib] +trans.pt_BR = library/contextlib.po source_lang = en -trans.pt_BR = library/marshal.po type = PO -[python-37.library--html_parser] +[python-37.library--contextvars] +trans.pt_BR = library/contextvars.po source_lang = en -trans.pt_BR = library/html.parser.po type = PO -[python-37.library--netdata] +[python-37.library--copy] +trans.pt_BR = library/copy.po source_lang = en -trans.pt_BR = library/netdata.po type = PO -[python-37.library--gc] +[python-37.library--copyreg] +trans.pt_BR = library/copyreg.po source_lang = en -trans.pt_BR = library/gc.po type = PO -[python-37.library--fileformats] +[python-37.library--crypt] +trans.pt_BR = library/crypt.po source_lang = en -trans.pt_BR = library/fileformats.po type = PO -[python-37.library--bisect] +[python-37.library--crypto] +trans.pt_BR = library/crypto.po source_lang = en -trans.pt_BR = library/bisect.po type = PO -[python-37.library--symtable] +[python-37.library--csv] +trans.pt_BR = library/csv.po source_lang = en -trans.pt_BR = library/symtable.po type = PO -[python-37.library--nis] +[python-37.library--ctypes] +trans.pt_BR = library/ctypes.po source_lang = en -trans.pt_BR = library/nis.po type = PO -[python-37.library--html] +[python-37.library--curses_ascii] +trans.pt_BR = library/curses.ascii.po source_lang = en -trans.pt_BR = library/html.po type = PO -[python-37.library--typing] +[python-37.library--curses_panel] +trans.pt_BR = library/curses.panel.po source_lang = en -trans.pt_BR = library/typing.po type = PO -[python-37.library--weakref] +[python-37.library--curses] +trans.pt_BR = library/curses.po source_lang = en -trans.pt_BR = library/weakref.po type = PO -[python-37.library--shlex] +[python-37.library--custominterp] +trans.pt_BR = library/custominterp.po source_lang = en -trans.pt_BR = library/shlex.po type = PO -[python-37.library--binary] +[python-37.library--dataclasses] +trans.pt_BR = library/dataclasses.po source_lang = en -trans.pt_BR = library/binary.po type = PO -[python-37.library--distutils] +[python-37.library--datatypes] +trans.pt_BR = library/datatypes.po source_lang = en -trans.pt_BR = library/distutils.po type = PO -[python-37.library--email_generator] +[python-37.library--datetime] +trans.pt_BR = library/datetime.po source_lang = en -trans.pt_BR = library/email.generator.po type = PO -[python-37.library--ensurepip] +[python-37.library--dbm] +trans.pt_BR = library/dbm.po source_lang = en -trans.pt_BR = library/ensurepip.po type = PO -[python-37.library--importlib] +[python-37.library--debug] +trans.pt_BR = library/debug.po source_lang = en -trans.pt_BR = library/importlib.po type = PO -[python-37.library--warnings] +[python-37.library--decimal] +trans.pt_BR = library/decimal.po source_lang = en -trans.pt_BR = library/warnings.po type = PO -[python-37.library--tabnanny] +[python-37.library--development] +trans.pt_BR = library/development.po source_lang = en -trans.pt_BR = library/tabnanny.po type = PO -[python-37.library--json] +[python-37.library--difflib] +trans.pt_BR = library/difflib.po source_lang = en -trans.pt_BR = library/json.po type = PO -[python-37.library--reprlib] +[python-37.library--dis] +trans.pt_BR = library/dis.po source_lang = en -trans.pt_BR = library/reprlib.po type = PO -[python-37.library--concurrent_futures] +[python-37.library--distribution] +trans.pt_BR = library/distribution.po source_lang = en -trans.pt_BR = library/concurrent.futures.po type = PO -[python-37.library--tk] +[python-37.library--distutils] +trans.pt_BR = library/distutils.po source_lang = en -trans.pt_BR = library/tk.po type = PO -[python-37.library--abc] +[python-37.library--doctest] +trans.pt_BR = library/doctest.po source_lang = en -trans.pt_BR = library/abc.po type = PO -[python-37.library--filecmp] +[python-37.library--dummy_threading] +trans.pt_BR = library/dummy_threading.po source_lang = en -trans.pt_BR = library/filecmp.po type = PO -[python-37.library--undoc] +[python-37.library--email_charset] +trans.pt_BR = library/email.charset.po source_lang = en -trans.pt_BR = library/undoc.po type = PO -[python-37.library--functions] +[python-37.library--email_compat32-message] +trans.pt_BR = library/email.compat32-message.po source_lang = en -trans.pt_BR = library/functions.po type = PO -[python-37.library--unittest_mock-examples] +[python-37.library--email_contentmanager] +trans.pt_BR = library/email.contentmanager.po source_lang = en -trans.pt_BR = library/unittest.mock-examples.po type = PO -[python-37.library--heapq] +[python-37.library--email_encoders] +trans.pt_BR = library/email.encoders.po source_lang = en -trans.pt_BR = library/heapq.po type = PO -[python-37.library--termios] +[python-37.library--email_errors] +trans.pt_BR = library/email.errors.po source_lang = en -trans.pt_BR = library/termios.po type = PO -[python-37.library--errno] +[python-37.library--email_examples] +trans.pt_BR = library/email.examples.po source_lang = en -trans.pt_BR = library/errno.po type = PO -[python-37.library--calendar] +[python-37.library--email_generator] +trans.pt_BR = library/email.generator.po source_lang = en -trans.pt_BR = library/calendar.po type = PO -[python-37.library--configparser] +[python-37.library--email_header] +trans.pt_BR = library/email.header.po source_lang = en -trans.pt_BR = library/configparser.po type = PO -[python-37.library--unittest] +[python-37.library--email_headerregistry] +trans.pt_BR = library/email.headerregistry.po source_lang = en -trans.pt_BR = library/unittest.po type = PO -[python-37.library--socketserver] +[python-37.library--email_iterators] +trans.pt_BR = library/email.iterators.po source_lang = en -trans.pt_BR = library/socketserver.po type = PO -[python-37.library--tokenize] +[python-37.library--email_message] +trans.pt_BR = library/email.message.po source_lang = en -trans.pt_BR = library/tokenize.po type = PO -[python-37.library--random] +[python-37.library--email_mime] +trans.pt_BR = library/email.mime.po source_lang = en -trans.pt_BR = library/random.po type = PO -[python-37.library--code] +[python-37.library--email_parser] +trans.pt_BR = library/email.parser.po source_lang = en -trans.pt_BR = library/code.po type = PO -[python-37.library--sqlite3] +[python-37.library--email_policy] +trans.pt_BR = library/email.policy.po source_lang = en -trans.pt_BR = library/sqlite3.po type = PO -[python-37.library--colorsys] +[python-37.library--email] +trans.pt_BR = library/email.po source_lang = en -trans.pt_BR = library/colorsys.po type = PO -[python-37.library--quopri] +[python-37.library--email_utils] +trans.pt_BR = library/email.utils.po source_lang = en -trans.pt_BR = library/quopri.po type = PO -[python-37.library--dis] +[python-37.library--ensurepip] +trans.pt_BR = library/ensurepip.po source_lang = en -trans.pt_BR = library/dis.po type = PO -[python-37.library--stdtypes] +[python-37.library--enum] +trans.pt_BR = library/enum.po source_lang = en -trans.pt_BR = library/stdtypes.po type = PO -[python-37.library--tracemalloc] +[python-37.library--errno] +trans.pt_BR = library/errno.po source_lang = en -trans.pt_BR = library/tracemalloc.po type = PO -[python-37.library--queue] +[python-37.library--exceptions] +trans.pt_BR = library/exceptions.po source_lang = en -trans.pt_BR = library/queue.po type = PO -[python-37.library--posix] +[python-37.library--faulthandler] +trans.pt_BR = library/faulthandler.po source_lang = en -trans.pt_BR = library/posix.po type = PO -[python-37.library--turtle] +[python-37.library--fcntl] +trans.pt_BR = library/fcntl.po source_lang = en -trans.pt_BR = library/turtle.po type = PO -[python-37.library--faulthandler] +[python-37.library--filecmp] +trans.pt_BR = library/filecmp.po source_lang = en -trans.pt_BR = library/faulthandler.po type = PO -[python-37.library--email_examples] +[python-37.library--fileformats] +trans.pt_BR = library/fileformats.po source_lang = en -trans.pt_BR = library/email.examples.po type = PO -[python-37.library--base64] +[python-37.library--fileinput] +trans.pt_BR = library/fileinput.po source_lang = en -trans.pt_BR = library/base64.po type = PO -[python-37.library--index] +[python-37.library--filesys] +trans.pt_BR = library/filesys.po source_lang = en -trans.pt_BR = library/index.po type = PO -[python-37.library--email_message] +[python-37.library--fnmatch] +trans.pt_BR = library/fnmatch.po source_lang = en -trans.pt_BR = library/email.message.po type = PO -[python-37.library--xml_etree_elementtree] +[python-37.library--formatter] +trans.pt_BR = library/formatter.po source_lang = en -trans.pt_BR = library/xml.etree.elementtree.po type = PO -[python-37.library--asyncio-task] +[python-37.library--fractions] +trans.pt_BR = library/fractions.po source_lang = en -trans.pt_BR = library/asyncio-task.po type = PO -[python-37.library--asyncore] +[python-37.library--frameworks] +trans.pt_BR = library/frameworks.po source_lang = en -trans.pt_BR = library/asyncore.po type = PO -[python-37.library--uu] +[python-37.library--ftplib] +trans.pt_BR = library/ftplib.po source_lang = en -trans.pt_BR = library/uu.po type = PO -[python-37.library--urllib_robotparser] +[python-37.library--functional] +trans.pt_BR = library/functional.po source_lang = en -trans.pt_BR = library/urllib.robotparser.po type = PO -[python-37.library--cgitb] +[python-37.library--functions] +trans.pt_BR = library/functions.po source_lang = en -trans.pt_BR = library/cgitb.po type = PO -[python-37.library--pathlib] +[python-37.library--functools] +trans.pt_BR = library/functools.po source_lang = en -trans.pt_BR = library/pathlib.po type = PO -[python-37.library--misc] +[python-37.library--gc] +trans.pt_BR = library/gc.po source_lang = en -trans.pt_BR = library/misc.po type = PO -[python-37.library--_thread] +[python-37.library--getopt] +trans.pt_BR = library/getopt.po source_lang = en -trans.pt_BR = library/_thread.po type = PO -[python-37.library--email_header] +[python-37.library--getpass] +trans.pt_BR = library/getpass.po source_lang = en -trans.pt_BR = library/email.header.po type = PO -[python-37.library--runpy] +[python-37.library--gettext] +trans.pt_BR = library/gettext.po source_lang = en -trans.pt_BR = library/runpy.po type = PO -[python-37.library--asyncio-eventloop] +[python-37.library--glob] +trans.pt_BR = library/glob.po source_lang = en -trans.pt_BR = library/asyncio-eventloop.po type = PO -[python-37.library--textwrap] +[python-37.library--grp] +trans.pt_BR = library/grp.po source_lang = en -trans.pt_BR = library/textwrap.po type = PO -[python-37.library--msilib] +[python-37.library--gzip] +trans.pt_BR = library/gzip.po source_lang = en -trans.pt_BR = library/msilib.po type = PO -[python-37.library--debug] +[python-37.library--hashlib] +trans.pt_BR = library/hashlib.po source_lang = en -trans.pt_BR = library/debug.po type = PO -[python-37.library--nntplib] +[python-37.library--heapq] +trans.pt_BR = library/heapq.po source_lang = en -trans.pt_BR = library/nntplib.po type = PO -[python-37.library--ast] +[python-37.library--hmac] +trans.pt_BR = library/hmac.po source_lang = en -trans.pt_BR = library/ast.po type = PO -[python-37.library--site] +[python-37.library--html_entities] +trans.pt_BR = library/html.entities.po source_lang = en -trans.pt_BR = library/site.po type = PO -[python-37.library--uuid] +[python-37.library--html_parser] +trans.pt_BR = library/html.parser.po source_lang = en -trans.pt_BR = library/uuid.po type = PO -[python-37.library--email_iterators] +[python-37.library--html] +trans.pt_BR = library/html.po source_lang = en -trans.pt_BR = library/email.iterators.po type = PO -[python-37.library--threading] +[python-37.library--http_client] +trans.pt_BR = library/http.client.po source_lang = en -trans.pt_BR = library/threading.po type = PO -[python-37.library--email_mime] +[python-37.library--http_cookiejar] +trans.pt_BR = library/http.cookiejar.po source_lang = en -trans.pt_BR = library/email.mime.po type = PO -[python-37.library--shelve] +[python-37.library--http_cookies] +trans.pt_BR = library/http.cookies.po source_lang = en -trans.pt_BR = library/shelve.po type = PO -[python-37.library--profile] +[python-37.library--http] +trans.pt_BR = library/http.po source_lang = en -trans.pt_BR = library/profile.po type = PO -[python-37.library--math] +[python-37.library--http_server] +trans.pt_BR = library/http.server.po source_lang = en -trans.pt_BR = library/math.po type = PO -[python-37.library--fileinput] +[python-37.library--i18n] +trans.pt_BR = library/i18n.po source_lang = en -trans.pt_BR = library/fileinput.po type = PO -[python-37.library--select] +[python-37.library--idle] +trans.pt_BR = library/idle.po source_lang = en -trans.pt_BR = library/select.po type = PO -[python-37.library--pprint] +[python-37.library--imaplib] +trans.pt_BR = library/imaplib.po source_lang = en -trans.pt_BR = library/pprint.po type = PO -[python-37.library--datatypes] +[python-37.library--imghdr] +trans.pt_BR = library/imghdr.po source_lang = en -trans.pt_BR = library/datatypes.po type = PO -[python-37.library--ssl] +[python-37.library--imp] +trans.pt_BR = library/imp.po source_lang = en -trans.pt_BR = library/ssl.po type = PO -[python-37.library--asyncio-queue] +[python-37.library--importlib] +trans.pt_BR = library/importlib.po source_lang = en -trans.pt_BR = library/asyncio-queue.po type = PO -[python-37.library--binhex] +[python-37.library--index] +trans.pt_BR = library/index.po source_lang = en -trans.pt_BR = library/binhex.po type = PO -[python-37.library--io] +[python-37.library--inspect] +trans.pt_BR = library/inspect.po source_lang = en -trans.pt_BR = library/io.po type = PO -[python-37.library--asyncio-protocol] +[python-37.library--internet] +trans.pt_BR = library/internet.po source_lang = en -trans.pt_BR = library/asyncio-protocol.po type = PO -[python-37.library--othergui] +[python-37.library--intro] +trans.pt_BR = library/intro.po source_lang = en -trans.pt_BR = library/othergui.po type = PO -[python-37.library--webbrowser] +[python-37.library--io] +trans.pt_BR = library/io.po source_lang = en -trans.pt_BR = library/webbrowser.po type = PO -[python-37.library--hmac] +[python-37.library--ipaddress] +trans.pt_BR = library/ipaddress.po source_lang = en -trans.pt_BR = library/hmac.po type = PO -[python-37.library--collections_abc] +[python-37.library--ipc] +trans.pt_BR = library/ipc.po source_lang = en -trans.pt_BR = library/collections.abc.po type = PO -[python-37.library--ftplib] +[python-37.library--itertools] +trans.pt_BR = library/itertools.po source_lang = en -trans.pt_BR = library/ftplib.po type = PO -[python-37.library--multiprocessing] +[python-37.library--json] +trans.pt_BR = library/json.po source_lang = en -trans.pt_BR = library/multiprocessing.po type = PO -[python-37.library--types] +[python-37.library--keyword] +trans.pt_BR = library/keyword.po source_lang = en -trans.pt_BR = library/types.po type = PO -[python-37.library--ipaddress] +[python-37.library--language] +trans.pt_BR = library/language.po source_lang = en -trans.pt_BR = library/ipaddress.po type = PO -[python-37.library--fpectl] +[python-37.library--linecache] +trans.pt_BR = library/linecache.po source_lang = en -trans.pt_BR = library/fpectl.po type = PO -[python-37.library--exceptions] +[python-37.library--locale] +trans.pt_BR = library/locale.po source_lang = en -trans.pt_BR = library/exceptions.po type = PO -[python-37.library--asyncio-stream] +[python-37.library--logging_config] +trans.pt_BR = library/logging.config.po source_lang = en -trans.pt_BR = library/asyncio-stream.po type = PO -[python-37.library--custominterp] +[python-37.library--logging_handlers] +trans.pt_BR = library/logging.handlers.po source_lang = en -trans.pt_BR = library/custominterp.po type = PO -[python-37.library--codecs] +[python-37.library--logging] +trans.pt_BR = library/logging.po source_lang = en -trans.pt_BR = library/codecs.po type = PO -[python-37.library--bdb] +[python-37.library--lzma] +trans.pt_BR = library/lzma.po source_lang = en -trans.pt_BR = library/bdb.po type = PO -[python-37.library--archiving] +[python-37.library--macpath] +trans.pt_BR = library/macpath.po source_lang = en -trans.pt_BR = library/archiving.po type = PO -[python-37.library--hashlib] +[python-37.library--mailbox] +trans.pt_BR = library/mailbox.po source_lang = en -trans.pt_BR = library/hashlib.po type = PO -[python-37.library--tkinter] +[python-37.library--mailcap] +trans.pt_BR = library/mailcap.po source_lang = en -trans.pt_BR = library/tkinter.po type = PO -[python-37.library--sys] +[python-37.library--markup] +trans.pt_BR = library/markup.po source_lang = en -trans.pt_BR = library/sys.po type = PO -[python-37.library--cmath] +[python-37.library--marshal] +trans.pt_BR = library/marshal.po source_lang = en -trans.pt_BR = library/cmath.po type = PO -[python-37.library--functional] +[python-37.library--math] +trans.pt_BR = library/math.po source_lang = en -trans.pt_BR = library/functional.po type = PO -[python-37.library--html_entities] +[python-37.library--mimetypes] +trans.pt_BR = library/mimetypes.po source_lang = en -trans.pt_BR = library/html.entities.po type = PO -[python-37.library--resource] +[python-37.library--misc] +trans.pt_BR = library/misc.po source_lang = en -trans.pt_BR = library/resource.po type = PO -[python-37.library--pickletools] +[python-37.library--mm] +trans.pt_BR = library/mm.po source_lang = en -trans.pt_BR = library/pickletools.po type = PO -[python-37.library--email_util] +[python-37.library--mmap] +trans.pt_BR = library/mmap.po source_lang = en -trans.pt_BR = library/email.util.po type = PO -[python-37.library--xmlrpc] +[python-37.library--modulefinder] +trans.pt_BR = library/modulefinder.po source_lang = en -trans.pt_BR = library/xmlrpc.po type = PO -[python-37.library--lzma] +[python-37.library--modules] +trans.pt_BR = library/modules.po source_lang = en -trans.pt_BR = library/lzma.po type = PO -[python-37.library--syslog] +[python-37.library--msilib] +trans.pt_BR = library/msilib.po source_lang = en -trans.pt_BR = library/syslog.po type = PO -[python-37.library--subprocess] +[python-37.library--msvcrt] +trans.pt_BR = library/msvcrt.po source_lang = en -trans.pt_BR = library/subprocess.po type = PO -[python-37.library--pdb] +[python-37.library--multiprocessing] +trans.pt_BR = library/multiprocessing.po source_lang = en -trans.pt_BR = library/pdb.po type = PO -[python-37.library--wsgiref] +[python-37.library--netdata] +trans.pt_BR = library/netdata.po source_lang = en -trans.pt_BR = library/wsgiref.po type = PO -[python-37.library--formatter] +[python-37.library--netrc] +trans.pt_BR = library/netrc.po source_lang = en -trans.pt_BR = library/formatter.po type = PO -[python-37.library--getopt] +[python-37.library--nis] +trans.pt_BR = library/nis.po source_lang = en -trans.pt_BR = library/getopt.po type = PO -[python-37.library--cgi] +[python-37.library--nntplib] +trans.pt_BR = library/nntplib.po source_lang = en -trans.pt_BR = library/cgi.po type = PO -[python-37.library--winsound] +[python-37.library--numbers] +trans.pt_BR = library/numbers.po source_lang = en -trans.pt_BR = library/winsound.po type = PO -[python-37.library--audioop] +[python-37.library--numeric] +trans.pt_BR = library/numeric.po source_lang = en -trans.pt_BR = library/audioop.po type = PO -[python-37.library--__main__] +[python-37.library--operator] +trans.pt_BR = library/operator.po source_lang = en -trans.pt_BR = library/__main__.po type = PO -[python-37.library--sndhdr] +[python-37.library--optparse] +trans.pt_BR = library/optparse.po source_lang = en -trans.pt_BR = library/sndhdr.po type = PO -[python-37.library--copy] +[python-37.library--os_path] +trans.pt_BR = library/os.path.po source_lang = en -trans.pt_BR = library/copy.po type = PO -[python-37.library--email_contentmanager] +[python-37.library--os] +trans.pt_BR = library/os.po source_lang = en -trans.pt_BR = library/email.contentmanager.po type = PO -[python-37.library--aifc] +[python-37.library--ossaudiodev] +trans.pt_BR = library/ossaudiodev.po source_lang = en -trans.pt_BR = library/aifc.po type = PO -[python-37.library--msvcrt] +[python-37.library--othergui] +trans.pt_BR = library/othergui.po source_lang = en -trans.pt_BR = library/msvcrt.po type = PO -[python-37.library--xmlrpc_client] +[python-37.library--parser] +trans.pt_BR = library/parser.po source_lang = en -trans.pt_BR = library/xmlrpc.client.po type = PO -[python-37.library--logging_handlers] +[python-37.library--pathlib] +trans.pt_BR = library/pathlib.po source_lang = en -trans.pt_BR = library/logging.handlers.po type = PO -[python-37.library--grp] +[python-37.library--pdb] +trans.pt_BR = library/pdb.po source_lang = en -trans.pt_BR = library/grp.po type = PO -[python-37.library--logging] +[python-37.library--persistence] +trans.pt_BR = library/persistence.po source_lang = en -trans.pt_BR = library/logging.po type = PO -[python-37.library--i18n] +[python-37.library--pickle] +trans.pt_BR = library/pickle.po source_lang = en -trans.pt_BR = library/i18n.po type = PO -[python-37.library--zipimport] +[python-37.library--pickletools] +trans.pt_BR = library/pickletools.po source_lang = en -trans.pt_BR = library/zipimport.po type = PO -[python-37.library--curses_ascii] +[python-37.library--pipes] +trans.pt_BR = library/pipes.po source_lang = en -trans.pt_BR = library/curses.ascii.po type = PO -[python-37.library--operator] +[python-37.library--pkgutil] +trans.pt_BR = library/pkgutil.po source_lang = en -trans.pt_BR = library/operator.po type = PO -[python-37.library--winreg] +[python-37.library--platform] +trans.pt_BR = library/platform.po source_lang = en -trans.pt_BR = library/winreg.po type = PO -[python-37.library--frameworks] +[python-37.library--plistlib] +trans.pt_BR = library/plistlib.po source_lang = en -trans.pt_BR = library/frameworks.po type = PO -[python-37.library--ossaudiodev] +[python-37.library--poplib] +trans.pt_BR = library/poplib.po source_lang = en -trans.pt_BR = library/ossaudiodev.po type = PO -[python-37.library--urllib] +[python-37.library--posix] +trans.pt_BR = library/posix.po source_lang = en -trans.pt_BR = library/urllib.po type = PO -[python-37.library--os] +[python-37.library--pprint] +trans.pt_BR = library/pprint.po source_lang = en -trans.pt_BR = library/os.po type = PO -[python-37.library--smtplib] +[python-37.library--profile] +trans.pt_BR = library/profile.po source_lang = en -trans.pt_BR = library/smtplib.po type = PO -[python-37.library--copyreg] +[python-37.library--pty] +trans.pt_BR = library/pty.po source_lang = en -trans.pt_BR = library/copyreg.po type = PO -[python-37.library--test] +[python-37.library--pwd] +trans.pt_BR = library/pwd.po source_lang = en -trans.pt_BR = library/test.po type = PO -[python-37.library--xml_sax] +[python-37.library--py_compile] +trans.pt_BR = library/py_compile.po source_lang = en -trans.pt_BR = library/xml.sax.po type = PO -[python-37.library--2to3] +[python-37.library--pyclbr] +trans.pt_BR = library/pyclbr.po source_lang = en -trans.pt_BR = library/2to3.po type = PO -[python-37.library--http_server] +[python-37.library--pydoc] +trans.pt_BR = library/pydoc.po source_lang = en -trans.pt_BR = library/http.server.po type = PO -[python-37.library--email_compat32-message] +[python-37.library--pyexpat] +trans.pt_BR = library/pyexpat.po source_lang = en -trans.pt_BR = library/email.compat32-message.po type = PO -[python-37.library--zlib] +[python-37.library--python] +trans.pt_BR = library/python.po source_lang = en -trans.pt_BR = library/zlib.po type = PO -[python-37.distutils--configfile] +[python-37.library--queue] +trans.pt_BR = library/queue.po source_lang = en -trans.pt_BR = distutils/configfile.po type = PO -[python-37.distutils--sourcedist] +[python-37.library--quopri] +trans.pt_BR = library/quopri.po source_lang = en -trans.pt_BR = distutils/sourcedist.po type = PO -[python-37.distutils--extending] +[python-37.library--random] +trans.pt_BR = library/random.po source_lang = en -trans.pt_BR = distutils/extending.po type = PO -[python-37.distutils--setupscript] +[python-37.library--re] +trans.pt_BR = library/re.po source_lang = en -trans.pt_BR = distutils/setupscript.po type = PO -[python-37.distutils--commandref] +[python-37.library--readline] +trans.pt_BR = library/readline.po source_lang = en -trans.pt_BR = distutils/commandref.po type = PO -[python-37.distutils--builtdist] +[python-37.library--reprlib] +trans.pt_BR = library/reprlib.po source_lang = en -trans.pt_BR = distutils/builtdist.po type = PO -[python-37.distutils--introduction] +[python-37.library--resource] +trans.pt_BR = library/resource.po source_lang = en -trans.pt_BR = distutils/introduction.po type = PO -[python-37.distutils--index] +[python-37.library--rlcompleter] +trans.pt_BR = library/rlcompleter.po source_lang = en -trans.pt_BR = distutils/index.po type = PO -[python-37.distutils--packageindex] +[python-37.library--runpy] +trans.pt_BR = library/runpy.po source_lang = en -trans.pt_BR = distutils/packageindex.po type = PO -[python-37.distutils--examples] +[python-37.library--sched] +trans.pt_BR = library/sched.po source_lang = en -trans.pt_BR = distutils/examples.po type = PO -[python-37.distutils--uploading] +[python-37.library--secrets] +trans.pt_BR = library/secrets.po source_lang = en -trans.pt_BR = distutils/uploading.po type = PO -[python-37.distutils--apiref] +[python-37.library--select] +trans.pt_BR = library/select.po source_lang = en -trans.pt_BR = distutils/apiref.po type = PO -[python-37.distributing--index] +[python-37.library--selectors] +trans.pt_BR = library/selectors.po source_lang = en -trans.pt_BR = distributing/index.po type = PO -[python-37.faq--extending] +[python-37.library--shelve] +trans.pt_BR = library/shelve.po source_lang = en -trans.pt_BR = faq/extending.po type = PO -[python-37.faq--windows] +[python-37.library--shlex] +trans.pt_BR = library/shlex.po source_lang = en -trans.pt_BR = faq/windows.po type = PO -[python-37.faq--general] +[python-37.library--shutil] +trans.pt_BR = library/shutil.po source_lang = en -trans.pt_BR = faq/general.po type = PO -[python-37.faq--library] +[python-37.library--signal] +trans.pt_BR = library/signal.po source_lang = en -trans.pt_BR = faq/library.po type = PO -[python-37.faq--gui] +[python-37.library--site] +trans.pt_BR = library/site.po source_lang = en -trans.pt_BR = faq/gui.po type = PO -[python-37.faq--installed] +[python-37.library--smtpd] +trans.pt_BR = library/smtpd.po source_lang = en -trans.pt_BR = faq/installed.po type = PO -[python-37.faq--index] +[python-37.library--smtplib] +trans.pt_BR = library/smtplib.po source_lang = en -trans.pt_BR = faq/index.po type = PO -[python-37.faq--design] +[python-37.library--sndhdr] +trans.pt_BR = library/sndhdr.po source_lang = en -trans.pt_BR = faq/design.po type = PO -[python-37.faq--programming] +[python-37.library--socket] +trans.pt_BR = library/socket.po source_lang = en -trans.pt_BR = faq/programming.po type = PO -[python-37.using--unix] +[python-37.library--socketserver] +trans.pt_BR = library/socketserver.po source_lang = en -trans.pt_BR = using/unix.po type = PO -[python-37.using--mac] +[python-37.library--spwd] +trans.pt_BR = library/spwd.po source_lang = en -trans.pt_BR = using/mac.po type = PO -[python-37.using--cmdline] +[python-37.library--sqlite3] +trans.pt_BR = library/sqlite3.po source_lang = en -trans.pt_BR = using/cmdline.po type = PO -[python-37.using--windows] +[python-37.library--ssl] +trans.pt_BR = library/ssl.po source_lang = en -trans.pt_BR = using/windows.po type = PO -[python-37.using--index] +[python-37.library--stat] +trans.pt_BR = library/stat.po source_lang = en -trans.pt_BR = using/index.po type = PO -[python-37.howto--clinic] +[python-37.library--statistics] +trans.pt_BR = library/statistics.po source_lang = en -trans.pt_BR = howto/clinic.po type = PO -[python-37.howto--urllib2] +[python-37.library--stdtypes] +trans.pt_BR = library/stdtypes.po source_lang = en -trans.pt_BR = howto/urllib2.po type = PO -[python-37.howto--argparse] +[python-37.library--string] +trans.pt_BR = library/string.po source_lang = en -trans.pt_BR = howto/argparse.po type = PO -[python-37.howto--curses] +[python-37.library--stringprep] +trans.pt_BR = library/stringprep.po source_lang = en -trans.pt_BR = howto/curses.po type = PO -[python-37.howto--logging-cookbook] +[python-37.library--struct] +trans.pt_BR = library/struct.po source_lang = en -trans.pt_BR = howto/logging-cookbook.po type = PO -[python-37.howto--sockets] +[python-37.library--subprocess] +trans.pt_BR = library/subprocess.po source_lang = en -trans.pt_BR = howto/sockets.po type = PO -[python-37.howto--pyporting] +[python-37.library--sunau] +trans.pt_BR = library/sunau.po source_lang = en -trans.pt_BR = howto/pyporting.po type = PO -[python-37.howto--index] +[python-37.library--superseded] +trans.pt_BR = library/superseded.po source_lang = en -trans.pt_BR = howto/index.po type = PO -[python-37.howto--unicode] +[python-37.library--symbol] +trans.pt_BR = library/symbol.po source_lang = en -trans.pt_BR = howto/unicode.po type = PO -[python-37.howto--instrumentation] +[python-37.library--symtable] +trans.pt_BR = library/symtable.po source_lang = en -trans.pt_BR = howto/instrumentation.po type = PO -[python-37.howto--cporting] +[python-37.library--sys] +trans.pt_BR = library/sys.po source_lang = en -trans.pt_BR = howto/cporting.po type = PO -[python-37.howto--ipaddress] +[python-37.library--sysconfig] +trans.pt_BR = library/sysconfig.po source_lang = en -trans.pt_BR = howto/ipaddress.po type = PO -[python-37.howto--sorting] +[python-37.library--syslog] +trans.pt_BR = library/syslog.po source_lang = en -trans.pt_BR = howto/sorting.po type = PO -[python-37.howto--functional] +[python-37.library--tabnanny] +trans.pt_BR = library/tabnanny.po source_lang = en -trans.pt_BR = howto/functional.po type = PO -[python-37.howto--logging] +[python-37.library--tarfile] +trans.pt_BR = library/tarfile.po source_lang = en -trans.pt_BR = howto/logging.po type = PO -[python-37.howto--regex] +[python-37.library--telnetlib] +trans.pt_BR = library/telnetlib.po source_lang = en -trans.pt_BR = howto/regex.po type = PO -[python-37.howto--descriptor] +[python-37.library--tempfile] +trans.pt_BR = library/tempfile.po source_lang = en -trans.pt_BR = howto/descriptor.po type = PO -[python-37.install--index] +[python-37.library--termios] +trans.pt_BR = library/termios.po source_lang = en -trans.pt_BR = install/index.po type = PO -[python-37.reference--simple_stmts] +[python-37.library--test] +trans.pt_BR = library/test.po source_lang = en -trans.pt_BR = reference/simple_stmts.po type = PO -[python-37.reference--expressions] +[python-37.library--text] +trans.pt_BR = library/text.po source_lang = en -trans.pt_BR = reference/expressions.po type = PO -[python-37.reference--compound_stmts] +[python-37.library--textwrap] +trans.pt_BR = library/textwrap.po source_lang = en -trans.pt_BR = reference/compound_stmts.po type = PO -[python-37.reference--introduction] +[python-37.library--threading] +trans.pt_BR = library/threading.po source_lang = en -trans.pt_BR = reference/introduction.po type = PO -[python-37.reference--import] +[python-37.library--time] +trans.pt_BR = library/time.po source_lang = en -trans.pt_BR = reference/import.po type = PO -[python-37.reference--grammar] +[python-37.library--timeit] +trans.pt_BR = library/timeit.po source_lang = en -trans.pt_BR = reference/grammar.po type = PO -[python-37.reference--datamodel] +[python-37.library--tk] +trans.pt_BR = library/tk.po source_lang = en -trans.pt_BR = reference/datamodel.po type = PO -[python-37.reference--index] +[python-37.library--tkinter] +trans.pt_BR = library/tkinter.po source_lang = en -trans.pt_BR = reference/index.po type = PO -[python-37.reference--toplevel_components] +[python-37.library--tkinter_scrolledtext] +trans.pt_BR = library/tkinter.scrolledtext.po source_lang = en -trans.pt_BR = reference/toplevel_components.po type = PO -[python-37.reference--lexical_analysis] +[python-37.library--tkinter_tix] +trans.pt_BR = library/tkinter.tix.po source_lang = en -trans.pt_BR = reference/lexical_analysis.po type = PO -[python-37.reference--executionmodel] +[python-37.library--tkinter_ttk] +trans.pt_BR = library/tkinter.ttk.po source_lang = en -trans.pt_BR = reference/executionmodel.po type = PO -[python-37.whatsnew--2_6] +[python-37.library--token] +trans.pt_BR = library/token.po source_lang = en -trans.pt_BR = whatsnew/2.6.po type = PO -[python-37.whatsnew--2_3] +[python-37.library--tokenize] +trans.pt_BR = library/tokenize.po source_lang = en -trans.pt_BR = whatsnew/2.3.po type = PO -[python-37.whatsnew--changelog] +[python-37.library--trace] +trans.pt_BR = library/trace.po source_lang = en -trans.pt_BR = whatsnew/changelog.po type = PO -[python-37.whatsnew--2_2] +[python-37.library--traceback] +trans.pt_BR = library/traceback.po source_lang = en -trans.pt_BR = whatsnew/2.2.po type = PO -[python-37.whatsnew--3_3] +[python-37.library--tracemalloc] +trans.pt_BR = library/tracemalloc.po source_lang = en -trans.pt_BR = whatsnew/3.3.po type = PO -[python-37.whatsnew--3_4] +[python-37.library--tty] +trans.pt_BR = library/tty.po source_lang = en -trans.pt_BR = whatsnew/3.4.po type = PO -[python-37.whatsnew--3_2] +[python-37.library--turtle] +trans.pt_BR = library/turtle.po source_lang = en -trans.pt_BR = whatsnew/3.2.po type = PO -[python-37.whatsnew--2_7] +[python-37.library--types] +trans.pt_BR = library/types.po source_lang = en -trans.pt_BR = whatsnew/2.7.po type = PO -[python-37.whatsnew--3_1] +[python-37.library--typing] +trans.pt_BR = library/typing.po source_lang = en -trans.pt_BR = whatsnew/3.1.po type = PO -[python-37.whatsnew--3_0] +[python-37.library--undoc] +trans.pt_BR = library/undoc.po source_lang = en -trans.pt_BR = whatsnew/3.0.po type = PO -[python-37.whatsnew--index] +[python-37.library--unicodedata] +trans.pt_BR = library/unicodedata.po source_lang = en -trans.pt_BR = whatsnew/index.po type = PO -[python-37.whatsnew--2_0] +[python-37.library--unittest_mock-examples] +trans.pt_BR = library/unittest.mock-examples.po source_lang = en -trans.pt_BR = whatsnew/2.0.po type = PO -[python-37.whatsnew--2_4] +[python-37.library--unittest_mock] +trans.pt_BR = library/unittest.mock.po source_lang = en -trans.pt_BR = whatsnew/2.4.po type = PO -[python-37.whatsnew--3_5] +[python-37.library--unittest] +trans.pt_BR = library/unittest.po source_lang = en -trans.pt_BR = whatsnew/3.5.po type = PO -[python-37.whatsnew--2_5] +[python-37.library--unix] +trans.pt_BR = library/unix.po source_lang = en -trans.pt_BR = whatsnew/2.5.po type = PO -[python-37.whatsnew--2_1] +[python-37.library--urllib_error] +trans.pt_BR = library/urllib.error.po source_lang = en -trans.pt_BR = whatsnew/2.1.po type = PO -[python-37.whatsnew--3_6] +[python-37.library--urllib_parse] +trans.pt_BR = library/urllib.parse.po source_lang = en -trans.pt_BR = whatsnew/3.6.po type = PO -[python-37.tutorial--modules] +[python-37.library--urllib] +trans.pt_BR = library/urllib.po source_lang = en -trans.pt_BR = tutorial/modules.po type = PO -[python-37.tutorial--stdlib2] +[python-37.library--urllib_request] +trans.pt_BR = library/urllib.request.po source_lang = en -trans.pt_BR = tutorial/stdlib2.po type = PO -[python-37.tutorial--whatnow] +[python-37.library--urllib_robotparser] +trans.pt_BR = library/urllib.robotparser.po source_lang = en -trans.pt_BR = tutorial/whatnow.po type = PO -[python-37.tutorial--floatingpoint] +[python-37.library--uu] +trans.pt_BR = library/uu.po source_lang = en -trans.pt_BR = tutorial/floatingpoint.po type = PO -[python-37.tutorial--inputoutput] +[python-37.library--uuid] +trans.pt_BR = library/uuid.po source_lang = en -trans.pt_BR = tutorial/inputoutput.po type = PO -[python-37.tutorial--classes] +[python-37.library--venv] +trans.pt_BR = library/venv.po source_lang = en -trans.pt_BR = tutorial/classes.po type = PO -[python-37.tutorial--appendix] +[python-37.library--warnings] +trans.pt_BR = library/warnings.po source_lang = en -trans.pt_BR = tutorial/appendix.po type = PO -[python-37.tutorial--interactive] +[python-37.library--wave] +trans.pt_BR = library/wave.po source_lang = en -trans.pt_BR = tutorial/interactive.po type = PO -[python-37.tutorial--venv] +[python-37.library--weakref] +trans.pt_BR = library/weakref.po source_lang = en -trans.pt_BR = tutorial/venv.po type = PO -[python-37.tutorial--introduction] +[python-37.library--webbrowser] +trans.pt_BR = library/webbrowser.po source_lang = en -trans.pt_BR = tutorial/introduction.po type = PO -[python-37.tutorial--index] +[python-37.library--windows] +trans.pt_BR = library/windows.po source_lang = en -trans.pt_BR = tutorial/index.po type = PO -[python-37.tutorial--controlflow] +[python-37.library--winreg] +trans.pt_BR = library/winreg.po source_lang = en -trans.pt_BR = tutorial/controlflow.po type = PO -[python-37.tutorial--appetite] +[python-37.library--winsound] +trans.pt_BR = library/winsound.po source_lang = en -trans.pt_BR = tutorial/appetite.po type = PO -[python-37.tutorial--errors] +[python-37.library--wsgiref] +trans.pt_BR = library/wsgiref.po source_lang = en -trans.pt_BR = tutorial/errors.po type = PO -[python-37.tutorial--interpreter] +[python-37.library--xdrlib] +trans.pt_BR = library/xdrlib.po source_lang = en -trans.pt_BR = tutorial/interpreter.po type = PO -[python-37.tutorial--datastructures] +[python-37.library--xml_dom_minidom] +trans.pt_BR = library/xml.dom.minidom.po source_lang = en -trans.pt_BR = tutorial/datastructures.po type = PO -[python-37.tutorial--stdlib] +[python-37.library--xml_dom] +trans.pt_BR = library/xml.dom.po source_lang = en -trans.pt_BR = tutorial/stdlib.po type = PO -[python-37.extending--building] +[python-37.library--xml_dom_pulldom] +trans.pt_BR = library/xml.dom.pulldom.po source_lang = en -trans.pt_BR = extending/building.po type = PO -[python-37.extending--extending] +[python-37.library--xml_etree_elementtree] +trans.pt_BR = library/xml.etree.elementtree.po source_lang = en -trans.pt_BR = extending/extending.po type = PO -[python-37.extending--windows] +[python-37.library--xml] +trans.pt_BR = library/xml.po source_lang = en -trans.pt_BR = extending/windows.po type = PO -[python-37.extending--index] +[python-37.library--xml_sax_handler] +trans.pt_BR = library/xml.sax.handler.po source_lang = en -trans.pt_BR = extending/index.po type = PO -[python-37.extending--embedding] +[python-37.library--xml_sax] +trans.pt_BR = library/xml.sax.po source_lang = en -trans.pt_BR = extending/embedding.po type = PO -[python-37.extending--newtypes] +[python-37.library--xml_sax_reader] +trans.pt_BR = library/xml.sax.reader.po source_lang = en -trans.pt_BR = extending/newtypes.po type = PO -[python-37.installing--index] +[python-37.library--xml_sax_utils] +trans.pt_BR = library/xml.sax.utils.po source_lang = en -trans.pt_BR = installing/index.po type = PO -[python-37.c-api--conversion] +[python-37.library--xmlrpc_client] +trans.pt_BR = library/xmlrpc.client.po source_lang = en -trans.pt_BR = c-api/conversion.po type = PO -[python-37.c-api--datetime] +[python-37.library--xmlrpc] +trans.pt_BR = library/xmlrpc.po source_lang = en -trans.pt_BR = c-api/datetime.po type = PO -[python-37.c-api--memory] +[python-37.library--xmlrpc_server] +trans.pt_BR = library/xmlrpc.server.po source_lang = en -trans.pt_BR = c-api/memory.po type = PO -[python-37.c-api--coro] +[python-37.library--zipapp] +trans.pt_BR = library/zipapp.po source_lang = en -trans.pt_BR = c-api/coro.po type = PO -[python-37.c-api--file] +[python-37.library--zipfile] +trans.pt_BR = library/zipfile.po source_lang = en -trans.pt_BR = c-api/file.po type = PO -[python-37.c-api--object] +[python-37.library--zipimport] +trans.pt_BR = library/zipimport.po source_lang = en -trans.pt_BR = c-api/object.po type = PO -[python-37.c-api--capsule] +[python-37.library--zlib] +trans.pt_BR = library/zlib.po source_lang = en -trans.pt_BR = c-api/capsule.po type = PO -[python-37.c-api--function] +[python-37.reference--compound_stmts] +trans.pt_BR = reference/compound_stmts.po source_lang = en -trans.pt_BR = c-api/function.po type = PO -[python-37.c-api--refcounting] +[python-37.reference--datamodel] +trans.pt_BR = reference/datamodel.po source_lang = en -trans.pt_BR = c-api/refcounting.po type = PO -[python-37.c-api--cell] +[python-37.reference--executionmodel] +trans.pt_BR = reference/executionmodel.po source_lang = en -trans.pt_BR = c-api/cell.po type = PO -[python-37.c-api--none] +[python-37.reference--expressions] +trans.pt_BR = reference/expressions.po source_lang = en -trans.pt_BR = c-api/none.po type = PO -[python-37.c-api--allocation] +[python-37.reference--grammar] +trans.pt_BR = reference/grammar.po source_lang = en -trans.pt_BR = c-api/allocation.po type = PO -[python-37.c-api--intro] +[python-37.reference--import] +trans.pt_BR = reference/import.po source_lang = en -trans.pt_BR = c-api/intro.po type = PO -[python-37.c-api--number] +[python-37.reference--index] +trans.pt_BR = reference/index.po source_lang = en -trans.pt_BR = c-api/number.po type = PO -[python-37.c-api--float] +[python-37.reference--introduction] +trans.pt_BR = reference/introduction.po source_lang = en -trans.pt_BR = c-api/float.po type = PO -[python-37.c-api--list] +[python-37.reference--lexical_analysis] +trans.pt_BR = reference/lexical_analysis.po source_lang = en -trans.pt_BR = c-api/list.po type = PO -[python-37.c-api--memoryview] +[python-37.reference--simple_stmts] +trans.pt_BR = reference/simple_stmts.po source_lang = en -trans.pt_BR = c-api/memoryview.po type = PO -[python-37.c-api--structures] +[python-37.reference--toplevel_components] +trans.pt_BR = reference/toplevel_components.po source_lang = en -trans.pt_BR = c-api/structures.po type = PO -[python-37.c-api--mapping] +[python-37.tutorial--appendix] +trans.pt_BR = tutorial/appendix.po source_lang = en -trans.pt_BR = c-api/mapping.po type = PO -[python-37.c-api--iterator] +[python-37.tutorial--appetite] +trans.pt_BR = tutorial/appetite.po source_lang = en -trans.pt_BR = c-api/iterator.po type = PO -[python-37.c-api--abstract] +[python-37.tutorial--classes] +trans.pt_BR = tutorial/classes.po source_lang = en -trans.pt_BR = c-api/abstract.po type = PO -[python-37.c-api--gen] +[python-37.tutorial--controlflow] +trans.pt_BR = tutorial/controlflow.po source_lang = en -trans.pt_BR = c-api/gen.po type = PO -[python-37.c-api--arg] +[python-37.tutorial--datastructures] +trans.pt_BR = tutorial/datastructures.po source_lang = en -trans.pt_BR = c-api/arg.po type = PO -[python-37.c-api--method] +[python-37.tutorial--errors] +trans.pt_BR = tutorial/errors.po source_lang = en -trans.pt_BR = c-api/method.po type = PO -[python-37.c-api--sequence] +[python-37.tutorial--floatingpoint] +trans.pt_BR = tutorial/floatingpoint.po source_lang = en -trans.pt_BR = c-api/sequence.po type = PO -[python-37.c-api--marshal] +[python-37.tutorial--index] +trans.pt_BR = tutorial/index.po source_lang = en -trans.pt_BR = c-api/marshal.po type = PO -[python-37.c-api--import] +[python-37.tutorial--inputoutput] +trans.pt_BR = tutorial/inputoutput.po source_lang = en -trans.pt_BR = c-api/import.po type = PO -[python-37.c-api--weakref] +[python-37.tutorial--interactive] +trans.pt_BR = tutorial/interactive.po source_lang = en -trans.pt_BR = c-api/weakref.po type = PO -[python-37.c-api--dict] +[python-37.tutorial--interpreter] +trans.pt_BR = tutorial/interpreter.po source_lang = en -trans.pt_BR = c-api/dict.po type = PO -[python-37.c-api--buffer] +[python-37.tutorial--introduction] +trans.pt_BR = tutorial/introduction.po source_lang = en -trans.pt_BR = c-api/buffer.po type = PO -[python-37.c-api--code] +[python-37.tutorial--modules] +trans.pt_BR = tutorial/modules.po source_lang = en -trans.pt_BR = c-api/code.po type = PO -[python-37.c-api--index] +[python-37.tutorial--stdlib] +trans.pt_BR = tutorial/stdlib.po source_lang = en -trans.pt_BR = c-api/index.po type = PO -[python-37.c-api--concrete] +[python-37.tutorial--stdlib2] +trans.pt_BR = tutorial/stdlib2.po source_lang = en -trans.pt_BR = c-api/concrete.po type = PO -[python-37.c-api--unicode] +[python-37.tutorial--venv] +trans.pt_BR = tutorial/venv.po source_lang = en -trans.pt_BR = c-api/unicode.po type = PO -[python-37.c-api--bytes] +[python-37.tutorial--whatnow] +trans.pt_BR = tutorial/whatnow.po source_lang = en -trans.pt_BR = c-api/bytes.po type = PO -[python-37.c-api--init] +[python-37.using--cmdline] +trans.pt_BR = using/cmdline.po source_lang = en -trans.pt_BR = c-api/init.po type = PO -[python-37.c-api--bool] +[python-37.using--editors] +trans.pt_BR = using/editors.po source_lang = en -trans.pt_BR = c-api/bool.po type = PO -[python-37.c-api--reflection] +[python-37.using--index] +trans.pt_BR = using/index.po source_lang = en -trans.pt_BR = c-api/reflection.po type = PO -[python-37.c-api--gcsupport] +[python-37.using--mac] +trans.pt_BR = using/mac.po source_lang = en -trans.pt_BR = c-api/gcsupport.po type = PO -[python-37.c-api--module] +[python-37.using--unix] +trans.pt_BR = using/unix.po source_lang = en -trans.pt_BR = c-api/module.po type = PO -[python-37.c-api--veryhigh] +[python-37.using--windows] +trans.pt_BR = using/windows.po source_lang = en -trans.pt_BR = c-api/veryhigh.po type = PO -[python-37.c-api--exceptions] +[python-37.whatsnew--2_0] +trans.pt_BR = whatsnew/2.0.po source_lang = en -trans.pt_BR = c-api/exceptions.po type = PO -[python-37.c-api--objimpl] +[python-37.whatsnew--2_1] +trans.pt_BR = whatsnew/2.1.po source_lang = en -trans.pt_BR = c-api/objimpl.po type = PO -[python-37.c-api--type] +[python-37.whatsnew--2_2] +trans.pt_BR = whatsnew/2.2.po source_lang = en -trans.pt_BR = c-api/type.po type = PO -[python-37.c-api--set] +[python-37.whatsnew--2_3] +trans.pt_BR = whatsnew/2.3.po source_lang = en -trans.pt_BR = c-api/set.po type = PO -[python-37.c-api--codec] +[python-37.whatsnew--2_4] +trans.pt_BR = whatsnew/2.4.po source_lang = en -trans.pt_BR = c-api/codec.po type = PO -[python-37.c-api--typeobj] +[python-37.whatsnew--2_5] +trans.pt_BR = whatsnew/2.5.po source_lang = en -trans.pt_BR = c-api/typeobj.po type = PO -[python-37.c-api--sys] +[python-37.whatsnew--2_6] +trans.pt_BR = whatsnew/2.6.po source_lang = en -trans.pt_BR = c-api/sys.po type = PO -[python-37.c-api--bytearray] +[python-37.whatsnew--2_7] +trans.pt_BR = whatsnew/2.7.po source_lang = en -trans.pt_BR = c-api/bytearray.po type = PO -[python-37.c-api--tuple] +[python-37.whatsnew--3_0] +trans.pt_BR = whatsnew/3.0.po source_lang = en -trans.pt_BR = c-api/tuple.po type = PO -[python-37.c-api--apiabiversion] +[python-37.whatsnew--3_1] +trans.pt_BR = whatsnew/3.1.po source_lang = en -trans.pt_BR = c-api/apiabiversion.po type = PO -[python-37.c-api--stable] +[python-37.whatsnew--3_2] +trans.pt_BR = whatsnew/3.2.po source_lang = en -trans.pt_BR = c-api/stable.po type = PO -[python-37.c-api--objbuffer] +[python-37.whatsnew--3_3] +trans.pt_BR = whatsnew/3.3.po source_lang = en -trans.pt_BR = c-api/objbuffer.po type = PO -[python-37.c-api--slice] +[python-37.whatsnew--3_4] +trans.pt_BR = whatsnew/3.4.po source_lang = en -trans.pt_BR = c-api/slice.po type = PO -[python-37.c-api--long] +[python-37.whatsnew--3_5] +trans.pt_BR = whatsnew/3.5.po source_lang = en -trans.pt_BR = c-api/long.po type = PO -[python-37.c-api--iter] +[python-37.whatsnew--3_6] +trans.pt_BR = whatsnew/3.6.po source_lang = en -trans.pt_BR = c-api/iter.po type = PO -[python-37.c-api--utilities] +[python-37.whatsnew--3_7] +trans.pt_BR = whatsnew/3.7.po source_lang = en -trans.pt_BR = c-api/utilities.po type = PO -[python-37.c-api--complex] +[python-37.whatsnew--changelog] +trans.pt_BR = whatsnew/changelog.po source_lang = en -trans.pt_BR = c-api/complex.po type = PO -[python-37.c-api--descriptor] +[python-37.whatsnew--index] +trans.pt_BR = whatsnew/index.po source_lang = en -trans.pt_BR = c-api/descriptor.po type = PO + diff --git a/about.po b/about.po index 2a17947f2..9ea71bc58 100644 --- a/about.po +++ b/about.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Welington Carlos , 2019 # belladonnatuk , 2019 # Adorilson Bezerra , 2019 # André Girol , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:39+0000\n" "Last-Translator: André Girol , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,8 +32,8 @@ msgstr "Sobre a Documentação" #: ../../about.rst:6 msgid "" -"These documents are generated from `reStructuredText`_ sources by `Sphinx`_," -" a document processor specifically written for the Python documentation." +"These documents are generated from `reStructuredText`_ sources by `Sphinx`_, " +"a document processor specifically written for the Python documentation." msgstr "" "Estes documentos são gerados a partir de fontes `reStructuredText`_ " "utilizando `Sphinx`_, um processador de documentos escrito especificamente " @@ -42,8 +43,8 @@ msgstr "" msgid "" "Development of the documentation and its toolchain is an entirely volunteer " "effort, just like Python itself. If you want to contribute, please take a " -"look at the :ref:`reporting-bugs` page for information on how to do so. New" -" volunteers are always welcome!" +"look at the :ref:`reporting-bugs` page for information on how to do so. New " +"volunteers are always welcome!" msgstr "" "Desenvolvimento da documentação e suas ferramentas é um esforço totalmente " "voluntário, como o Python em si. Se você quer contribuir, por favor dê uma " @@ -56,8 +57,8 @@ msgstr "Agradecimentos especiais para:" #: ../../about.rst:22 msgid "" -"Fred L. Drake, Jr., the creator of the original Python documentation toolset" -" and writer of much of the content;" +"Fred L. Drake, Jr., the creator of the original Python documentation toolset " +"and writer of much of the content;" msgstr "" "Fred L. Drake, Jr., o criador do primeiro conjunto de ferramentas para " "documentar o Python e escritor de boa parte do conteúdo;" @@ -72,13 +73,11 @@ msgstr "" #: ../../about.rst:26 msgid "" -"Fredrik Lundh for his `Alternative Python Reference " -"`_ project from which Sphinx got many good" -" ideas." +"Fredrik Lundh for his `Alternative Python Reference `_ project from which Sphinx got many good ideas." msgstr "" -"Fredrik Lundh por sua `Referência Alternativa para Python " -"`_ projeto do qual, Sphinx tirou muitas " -"idéias boas." +"Fredrik Lundh por sua `Referência Alternativa para Python `_ projeto do qual, Sphinx tirou muitas idéias boas." #: ../../about.rst:32 msgid "Contributors to the Python Documentation" diff --git a/bugs.po b/bugs.po index 23df1e8ba..9f4b35c01 100644 --- a/bugs.po +++ b/bugs.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Tiago Henrique , 2019 # André Girol , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-25 03:17+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,14 +36,14 @@ msgid "" "like to know of any deficiencies you find in Python." msgstr "" "Python é uma linguagem de programação madura que tem uma reputação " -"estabelecida por ser estável. Para manter esta reputação, os desenvolvedores" -" gostariam de saber de qualquer deficiência que você encontre em Python." +"estabelecida por ser estável. Para manter esta reputação, os desenvolvedores " +"gostariam de saber de qualquer deficiência que você encontre em Python." #: ../../bugs.rst:11 msgid "" "It can be sometimes faster to fix bugs yourself and contribute patches to " -"Python as it streamlines the process and involves less people. Learn how to " -":ref:`contribute `." +"Python as it streamlines the process and involves less people. Learn how to :" +"ref:`contribute `." msgstr "" "Às vezes, pode ser mais rápido você mesmo corrigir bugs e contribuir com " "patches para o Python, uma vez que agiliza o processo e envolve menos " @@ -60,9 +61,9 @@ msgid "" "tracker>`. If you have a suggestion on how to fix it, include that as well." msgstr "" "Se você encontrar um erro nesta documentação ou gostaria de propor alguma " -"melhoria, por favor envie um relatório de erro \"bug report\" para " -":ref:`tracker `. Se você possui uma sugestão de como " -"corrigi-lo, inclua ela também." +"melhoria, por favor envie um relatório de erro \"bug report\" para :ref:" +"`tracker `. Se você possui uma sugestão de como corrigi-" +"lo, inclua ela também." #: ../../bugs.rst:22 msgid "" @@ -87,9 +88,9 @@ msgstr "Usando o rastreador de defeitos" #: ../../bugs.rst:35 msgid "" -"Bug reports for Python itself should be submitted via the Python Bug Tracker" -" (https://bugs.python.org/). The bug tracker offers a Web form which allows" -" pertinent information to be entered and submitted to the developers." +"Bug reports for Python itself should be submitted via the Python Bug Tracker " +"(https://bugs.python.org/). The bug tracker offers a Web form which allows " +"pertinent information to be entered and submitted to the developers." msgstr "" "Os relatórios de erro da linguagem Python podem ser submetidos através do " "Python Bug Tracker (https://bugs.python.org/). O rastreador de defeitos " @@ -109,10 +110,10 @@ msgstr "" "O primeiro passo para preencher um relatório é determinar se o problema já " "foi reportado. A vantagem de se fazer isso, além de poupar o tempo dos " "desenvolvedores, é que você aprende o que foi feito para corrigi-lo; pode " -"ser que o problema já tenha sido corrigido para o próximo lançamento, ou que" -" seja necessária informação adicional (nesse caso você é bem vindo para " -"fornecer essa informação se você puder!). Para fazer isso, busque o banco de" -" dados de defeitos usando a caixa de busca no topo da página." +"ser que o problema já tenha sido corrigido para o próximo lançamento, ou que " +"seja necessária informação adicional (nesse caso você é bem vindo para " +"fornecer essa informação se você puder!). Para fazer isso, busque o banco de " +"dados de defeitos usando a caixa de busca no topo da página." #: ../../bugs.rst:46 msgid "" @@ -124,8 +125,8 @@ msgid "" msgstr "" "Se o problema que você está reportando já não estiver no rastreador de bug, " "volte ao rastreador de defeitos de Python e faça o login. Se você ainda não " -"tem uma conta, selecione o link \"Registrar\" ou, se você usa OpenID, um dos" -" logos OpenID na barra lateral. Não é possível reportar um defeito " +"tem uma conta, selecione o link \"Registrar\" ou, se você usa OpenID, um dos " +"logos OpenID na barra lateral. Não é possível reportar um defeito " "anonimamente." #: ../../bugs.rst:51 @@ -133,8 +134,8 @@ msgid "" "Being now logged in, you can submit a bug. Select the \"Create New\" link " "in the sidebar to open the bug reporting form." msgstr "" -"Já logado, você pode submeter um defeito. Selecione o link \"Create New\" na" -" barra lateral para abrir o formulário para reportar o \"bug\"." +"Já logado, você pode submeter um defeito. Selecione o link \"Create New\" na " +"barra lateral para abrir o formulário para reportar o \"bug\"." #: ../../bugs.rst:54 msgid "" @@ -150,13 +151,13 @@ msgstr "" #: ../../bugs.rst:59 msgid "" -"In the \"Comment\" field, describe the problem in detail, including what you" -" expected to happen and what did happen. Be sure to include whether any " -"extension modules were involved, and what hardware and software platform you" -" were using (including version information as appropriate)." +"In the \"Comment\" field, describe the problem in detail, including what you " +"expected to happen and what did happen. Be sure to include whether any " +"extension modules were involved, and what hardware and software platform you " +"were using (including version information as appropriate)." msgstr "" -"No campo \"Comment\", descreva o problema com detalhes, incluindo o que você" -" esperava que acontecesse e o que aconteceu. Esteja certo de incluir " +"No campo \"Comment\", descreva o problema com detalhes, incluindo o que você " +"esperava que acontecesse e o que aconteceu. Esteja certo de incluir " "quaisquer módulos de extensão envolvidos, e que hardware e plataforma de " "software você está usando (incluindo informações sobre versão quando " "pertinente)." @@ -173,24 +174,24 @@ msgstr "" #: ../../bugs.rst:73 msgid "" -"`How to Report Bugs Effectively " -"`_" +"`How to Report Bugs Effectively `_" msgstr "" -"`Como Reportar Bugs eficientemente " -"`_" +"`Como Reportar Bugs eficientemente `_" #: ../../bugs.rst:72 msgid "" -"Article which goes into some detail about how to create a useful bug report." -" This describes what kind of information is useful and why it is useful." +"Article which goes into some detail about how to create a useful bug report. " +"This describes what kind of information is useful and why it is useful." msgstr "" "Artigo que entra em algum detalhe sobre como criar um registro de bug " "(defeitos) útil. Descreve que tipo de informação é útil e por quê." #: ../../bugs.rst:76 msgid "" -"`Bug Report Writing Guidelines `_" +"`Bug Report Writing Guidelines `_" msgstr "" "`Guia para escrever relatório de defeitos `_" @@ -218,6 +219,6 @@ msgstr "" "Além de apenas reportar erros que encontrar, você é bem vindo a submeter " "pacotes para corrigi-los. Você pode encontrar mais informações em como " "começar a contribuir para o Python no `Python Developer's Guide`_. Se " -"possuir mais questões, o `core-mentorship mailing list`_é um lugar amigável" -" para toda e qualquer questão relativa ao processo de correção de problemas " +"possuir mais questões, o `core-mentorship mailing list`_é um lugar amigável " +"para toda e qualquer questão relativa ao processo de correção de problemas " "em Python." diff --git a/c-api/abstract.po b/c-api/abstract.po index ead7f411c..8c2fc5910 100644 --- a/c-api/abstract.po +++ b/c-api/abstract.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Erick Simões , 2019 # Noeme Matos , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Noeme Matos , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,18 +35,18 @@ msgid "" "apply, they will raise a Python exception." msgstr "" "As funções deste capítulo interagem com objetos Python de acordo com a sua " -"tipagem, ou de acordo com as classes dos tipos de objetos (Exemplo: todos os" -" tipos numéricos, todos os tipos de sequência). Quando usado em um objeto de" -" um tipo que não se aplica será lançada uma exceção do Python." +"tipagem, ou de acordo com as classes dos tipos de objetos (Exemplo: todos os " +"tipos numéricos, todos os tipos de sequência). Quando usado em um objeto de " +"um tipo que não se aplica será lançada uma exceção do Python." #: ../../c-api/abstract.rst:14 msgid "" "It is not possible to use these functions on objects that are not properly " -"initialized, such as a list object that has been created by " -":c:func:`PyList_New`, but whose items have not been set to some non-\\ " -"``NULL`` value yet." +"initialized, such as a list object that has been created by :c:func:" +"`PyList_New`, but whose items have not been set to some non-\\ ``NULL`` " +"value yet." msgstr "" "Não é possível usar essas funções em objetos que não estão propriamente " -"inicializados, tal como uma objeto de lista que foi criado por " -":c:func:`PyList_New`, mas do qual os itens não foram definidos como algum " -"valor non-\\ ``NULL`` ainda." +"inicializados, tal como uma objeto de lista que foi criado por :c:func:" +"`PyList_New`, mas do qual os itens não foram definidos como algum valor non-" +"\\ ``NULL`` ainda." diff --git a/c-api/allocation.po b/c-api/allocation.po index f0009d875..ed7fd42db 100644 --- a/c-api/allocation.po +++ b/c-api/allocation.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" "Last-Translator: Welington Carlos , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,8 +36,8 @@ msgid "" msgstr "" "Inicialize um objeto *op* recém alocado com seu tipo e sua referência " "inicial. Retorna o objeto incializado. Se * type * indica que o objeto " -"participa do detector de lixo cíclico, ele é adicionado ao grupo do detector" -" de objetos observados. Outros campos do objeto não são afetados." +"participa do detector de lixo cíclico, ele é adicionado ao grupo do detector " +"de objetos observados. Outros campos do objeto não são afetados." #: ../../c-api/allocation.rst:26 msgid "" @@ -51,55 +52,53 @@ msgid "" "Allocate a new Python object using the C structure type *TYPE* and the " "Python type object *type*. Fields not defined by the Python object header " "are not initialized; the object's reference count will be one. The size of " -"the memory allocation is determined from the " -":c:member:`~PyTypeObject.tp_basicsize` field of the type object." +"the memory allocation is determined from the :c:member:`~PyTypeObject." +"tp_basicsize` field of the type object." msgstr "" -"Aloque um novo objeto Python usando a estrutura C digite *TYPE* e o objecto" -" Python *type*. Campos não definidos no cabeçalho do objeto Python não são " +"Aloque um novo objeto Python usando a estrutura C digite *TYPE* e o objecto " +"Python *type*. Campos não definidos no cabeçalho do objeto Python não são " "inicializados; a contagem de referência do objeto será um deles. O tamanho " -"da alocação de memória é determinado do campo " -":c:member:`~PyTypeObject.tp_basicsize` do objeto tipo." +"da alocação de memória é determinado do campo :c:member:`~PyTypeObject." +"tp_basicsize` do objeto tipo." #: ../../c-api/allocation.rst:41 msgid "" "Allocate a new Python object using the C structure type *TYPE* and the " "Python type object *type*. Fields not defined by the Python object header " "are not initialized. The allocated memory allows for the *TYPE* structure " -"plus *size* fields of the size given by the " -":c:member:`~PyTypeObject.tp_itemsize` field of *type*. This is useful for " -"implementing objects like tuples, which are able to determine their size at " -"construction time. Embedding the array of fields into the same allocation " -"decreases the number of allocations, improving the memory management " -"efficiency." +"plus *size* fields of the size given by the :c:member:`~PyTypeObject." +"tp_itemsize` field of *type*. This is useful for implementing objects like " +"tuples, which are able to determine their size at construction time. " +"Embedding the array of fields into the same allocation decreases the number " +"of allocations, improving the memory management efficiency." msgstr "" -"Alocar um novo objeto Python usando o tipo de estrutura C *TYPE* e o tipo de" -" objeto Python *type*. Campos não definidos pelo cabeçalho do objeto Python " +"Alocar um novo objeto Python usando o tipo de estrutura C *TYPE* e o tipo de " +"objeto Python *type*. Campos não definidos pelo cabeçalho do objeto Python " "não são inicializados. A memória alocada permite a estrutura * TYPE * e os " -"campos * size * do tamanho dado pelo campo: c: member: `~ " -"PyTypeObject.tp_itemsize` de * type *. Isto é útil para implementar objetos " -"como tuplas, que são capazes de determinar seu tamanho em tempo de " -"construção. Incorporando o array de campos dentro da mesma alocação " -"diminuindo o numero de alocações, melhorando a eficiência de gerenciamento " -"de memória." +"campos * size * do tamanho dado pelo campo: c: member: `~ PyTypeObject." +"tp_itemsize` de * type *. Isto é útil para implementar objetos como tuplas, " +"que são capazes de determinar seu tamanho em tempo de construção. " +"Incorporando o array de campos dentro da mesma alocação diminuindo o numero " +"de alocações, melhorando a eficiência de gerenciamento de memória." #: ../../c-api/allocation.rst:53 msgid "" -"Releases memory allocated to an object using :c:func:`PyObject_New` or " -":c:func:`PyObject_NewVar`. This is normally called from the " -":c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type." -" The fields of the object should not be accessed after this call as the " -"memory is no longer a valid Python object." +"Releases memory allocated to an object using :c:func:`PyObject_New` or :c:" +"func:`PyObject_NewVar`. This is normally called from the :c:member:" +"`~PyTypeObject.tp_dealloc` handler specified in the object's type. The " +"fields of the object should not be accessed after this call as the memory is " +"no longer a valid Python object." msgstr "" -"Libera memória alocada para um objeto usando :c:func:`PyObject_New` ou " -":c:func:`PyObject_NewVar`. Isso é normalmente chamado por " -":c:member:`~PyTypeObject.tp_dealloc` manipulador especificado no tipo do " -"objeto. Os campos do objeto não devem ser acessados ​​após esta chamada, já " -"que a memória não é mais um objeto Python válido." +"Libera memória alocada para um objeto usando :c:func:`PyObject_New` ou :c:" +"func:`PyObject_NewVar`. Isso é normalmente chamado por :c:member:" +"`~PyTypeObject.tp_dealloc` manipulador especificado no tipo do objeto. Os " +"campos do objeto não devem ser acessados ​​após esta chamada, já que a memória " +"não é mais um objeto Python válido." #: ../../c-api/allocation.rst:62 msgid "" -"Object which is visible in Python as ``None``. This should only be accessed" -" using the :c:macro:`Py_None` macro, which evaluates to a pointer to this " +"Object which is visible in Python as ``None``. This should only be accessed " +"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this " "object." msgstr "" "Objeto que é visível em Python como ``None``. Isso só deve ser acessado " diff --git a/c-api/apiabiversion.po b/c-api/apiabiversion.po index 68be6def1..805ca2c48 100644 --- a/c-api/apiabiversion.po +++ b/c-api/apiabiversion.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Welington Carlos , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -123,5 +124,4 @@ msgstr "Portanto ``3.4.1a2`` é em versão hexadecimal ``0x030401a2``." #: ../../c-api/apiabiversion.rst:38 msgid "All the given macros are defined in :source:`Include/patchlevel.h`." msgstr "" -"Todas as macros fornecidas estão definidos em " -":source:`Include/patchlevel.h`." +"Todas as macros fornecidas estão definidos em :source:`Include/patchlevel.h`." diff --git a/c-api/arg.po b/c-api/arg.po index c9c7652eb..20e0767c3 100644 --- a/c-api/arg.po +++ b/c-api/arg.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Tiago Henrique , 2019 @@ -10,16 +10,20 @@ # Adson Rodrigues , 2019 # Rafael Marques , 2019 # Caio Carvalho , 2019 -# +# Miquéias Praxedes , 2019 +# Julia Rizza , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Caio Carvalho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,26 +37,24 @@ msgstr "Analisando argumentos e construindo valores" #: ../../c-api/arg.rst:8 msgid "" "These functions are useful when creating your own extensions functions and " -"methods. Additional information and examples are available in :ref" -":`extending-index`." +"methods. Additional information and examples are available in :ref:" +"`extending-index`." msgstr "" "Essas funções são úteis ao criar suas próprias funções e métodos. " -"Informações adicionais e exemplos estão disponíveis em:ref:`extending-" -"index`." +"Informações adicionais e exemplos estão disponíveis em:ref:`extending-index`." #: ../../c-api/arg.rst:12 msgid "" -"The first three of these functions described, :c:func:`PyArg_ParseTuple`, " -":c:func:`PyArg_ParseTupleAndKeywords`, and :c:func:`PyArg_Parse`, all use " +"The first three of these functions described, :c:func:`PyArg_ParseTuple`, :c:" +"func:`PyArg_ParseTupleAndKeywords`, and :c:func:`PyArg_Parse`, all use " "*format strings* which are used to tell the function about the expected " "arguments. The format strings use the same syntax for each of these " "functions." msgstr "" -"As três primeiras funções descritas, :c:func:`PyArg_ParseTuple`, " -":c:func:`PyArg_ParseTupleAndKeywords`, e :c:func:`PyArg_Parse`, todas usam o" -" *formato string* que são usados para contar a função sobre os argumentos " -"esperados. O formato string usa a mesma sintaxe para cada uma dessas " -"funções." +"As três primeiras funções descritas, :c:func:`PyArg_ParseTuple`, :c:func:" +"`PyArg_ParseTupleAndKeywords`, e :c:func:`PyArg_Parse`, todas usam o " +"*formato string* que são usados para contar a função sobre os argumentos " +"esperados. O formato string usa a mesma sintaxe para cada uma dessas funções." #: ../../c-api/arg.rst:19 msgid "Parsing arguments" @@ -85,12 +87,12 @@ msgstr "Strings and buffers" #: ../../c-api/arg.rst:33 msgid "" -"These formats allow accessing an object as a contiguous chunk of memory. You" -" don't have to provide raw storage for the returned unicode or bytes area." +"These formats allow accessing an object as a contiguous chunk of memory. You " +"don't have to provide raw storage for the returned unicode or bytes area." msgstr "" "Esses formatos permitem acessar um objeto como um pedaço contíguo de " -"memória. Você não precisa fornecer armazenamento bruto para a área retornada" -" unicode ou bytes." +"memória. Você não precisa fornecer armazenamento bruto para a área retornada " +"unicode ou bytes." #: ../../c-api/arg.rst:37 msgid "" @@ -109,13 +111,17 @@ msgid "" "However, when a :c:type:`Py_buffer` structure gets filled, the underlying " "buffer is locked so that the caller can subsequently use the buffer even " "inside a :c:type:`Py_BEGIN_ALLOW_THREADS` block without the risk of mutable " -"data being resized or destroyed. As a result, **you have to call** " -":c:func:`PyBuffer_Release` after you have finished processing the data (or " -"in any early abort case)." -msgstr "" -"No entanto, quando uma a estrutura de :c:type:`Py_buffer` é preenchida, o buffer subjacente é bloqueado para que o chamador possa subsequentemente usar o buffer mesmo dentro de um bloco \n" -":c:type:`Py_BEGIN_ALLOW_THREADS` sem o risco de dados mutáveis ​​serem redimensionados ou destruídos. Como resultado, ** você precisa chamar **\n" -":c:func:`PyBuffer_Release` depois de ter concluído o processamento dos dados (ou em qualquer caso de aborto inicial)." +"data being resized or destroyed. As a result, **you have to call** :c:func:" +"`PyBuffer_Release` after you have finished processing the data (or in any " +"early abort case)." +msgstr "" +"No entanto, quando uma a estrutura de :c:type:`Py_buffer` é preenchida, o " +"buffer subjacente é bloqueado para que o chamador possa subsequentemente " +"usar o buffer mesmo dentro de um bloco \n" +":c:type:`Py_BEGIN_ALLOW_THREADS` sem o risco de dados mutáveis ​​serem " +"redimensionados ou destruídos. Como resultado, ** você precisa chamar **\n" +":c:func:`PyBuffer_Release` depois de ter concluído o processamento dos dados " +"(ou em qualquer caso de aborto inicial)." #: ../../c-api/arg.rst:49 msgid "Unless otherwise stated, buffers are not NUL-terminated." @@ -125,19 +131,24 @@ msgstr "Salvo indicação em contrário, os buffers não são terminados em NUL. msgid "" "Some formats require a read-only :term:`bytes-like object`, and set a " "pointer instead of a buffer structure. They work by checking that the " -"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which" -" disallows mutable objects such as :class:`bytearray`." +"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which " +"disallows mutable objects such as :class:`bytearray`." msgstr "" +"Alguns formatos requerem um somente leitura: term: `bytes-like object` e " +"definem um ponteiro em vez de uma estrutura de buffer. Eles trabalham " +"verificando se o campo do objeto: c: member: `PyBufferProcs." +"bf_releasebuffer` é` `NULL``, o que não permite objetos mutáveis, como: " +"class:` bytearray`." #: ../../c-api/arg.rst:58 msgid "" "For all ``#`` variants of formats (``s#``, ``y#``, etc.), the type of the " "length argument (int or :c:type:`Py_ssize_t`) is controlled by defining the " -"macro :c:macro:`PY_SSIZE_T_CLEAN` before including :file:`Python.h`. If the" -" macro was defined, length is a :c:type:`Py_ssize_t` rather than an " -":c:type:`int`. This behavior will change in a future Python version to only " -"support :c:type:`Py_ssize_t` and drop :c:type:`int` support. It is best to " -"always define :c:macro:`PY_SSIZE_T_CLEAN`." +"macro :c:macro:`PY_SSIZE_T_CLEAN` before including :file:`Python.h`. If the " +"macro was defined, length is a :c:type:`Py_ssize_t` rather than an :c:type:" +"`int`. This behavior will change in a future Python version to only support :" +"c:type:`Py_ssize_t` and drop :c:type:`int` support. It is best to always " +"define :c:macro:`PY_SSIZE_T_CLEAN`." msgstr "" "Para todas as variantes `` # `` de formatos (`` s # ``, `` y # ``, etc.), o " "tipo do argumento length (int ou: c: type: `Py_ssize_t`) é controlado por " @@ -155,39 +166,39 @@ msgstr "``s`` (:class:`str`) [const char \\*]" #: ../../c-api/arg.rst:68 msgid "" "Convert a Unicode object to a C pointer to a character string. A pointer to " -"an existing string is stored in the character pointer variable whose address" -" you pass. The C string is NUL-terminated. The Python string must not " -"contain embedded null code points; if it does, a :exc:`ValueError` exception" -" is raised. Unicode objects are converted to C strings using ``'utf-8'`` " +"an existing string is stored in the character pointer variable whose address " +"you pass. The C string is NUL-terminated. The Python string must not " +"contain embedded null code points; if it does, a :exc:`ValueError` exception " +"is raised. Unicode objects are converted to C strings using ``'utf-8'`` " "encoding. If this conversion fails, a :exc:`UnicodeError` is raised." msgstr "" "Converte um objeto Unicode para um ponteiro C de um caractere de string. Um " "ponteiro para uma string existente é armazenado na variável do ponteiro do " "caractere cujo o endereço que você está passando. A string C é NUL-" -"terminated. A string Python não deve conter pontos de código nulo embutidos;" -" se isso acontecer, uma exceção \\:exc\\:`ValueError` é levantada. Objetos " +"terminated. A string Python não deve conter pontos de código nulo embutidos; " +"se isso acontecer, uma exceção \\:exc\\:`ValueError` é levantada. Objetos " "Unicode são convertidos para strings C usando a encodificação \"'utf-8'\". " "Se essa conversão falhar, uma exceção \\:exc\\`UnicodeError` é levantada." #: ../../c-api/arg.rst:77 msgid "" -"This format does not accept :term:`bytes-like objects `." -" If you want to accept filesystem paths and convert them to C character " -"strings, it is preferable to use the ``O&`` format with " -":c:func:`PyUnicode_FSConverter` as *converter*." +"This format does not accept :term:`bytes-like objects `. " +"If you want to accept filesystem paths and convert them to C character " +"strings, it is preferable to use the ``O&`` format with :c:func:" +"`PyUnicode_FSConverter` as *converter*." msgstr "" "Esse formato não aceita objetos \\:term\\:`bytes-like `. " "Se você quer aceitar caminhos de arquivos do sistema e convertê-los para " -"strings C, é preferível que use o formato ``O&`` com " -"\\:c\\:func\\:`PyUnicode_FSConverter` como *conversor*." +"strings C, é preferível que use o formato ``O&`` com \\:c\\:func\\:" +"`PyUnicode_FSConverter` como *conversor*." #: ../../c-api/arg.rst:83 ../../c-api/arg.rst:150 msgid "" "Previously, :exc:`TypeError` was raised when embedded null code points were " "encountered in the Python string." msgstr "" -"Anteriormente, a exceção \\:exc\\:`TypeError` era levantada quando pontos de" -" código nulo embutidos em strings Python eram encontrados." +"Anteriormente, a exceção \\:exc\\:`TypeError` era levantada quando pontos de " +"código nulo embutidos em strings Python eram encontrados." #: ../../c-api/arg.rst:91 msgid "``s*`` (:class:`str` or :term:`bytes-like object`) [Py_buffer]" @@ -236,6 +247,8 @@ msgid "" "Like ``s``, but the Python object may also be ``None``, in which case the C " "pointer is set to ``NULL``." msgstr "" +"Como `` s``, mas o objeto Python também pode ser `` None``, nesse caso o " +"ponteiro C é definido como `` NULL``." #: ../../c-api/arg.rst:106 msgid "" @@ -248,20 +261,24 @@ msgid "" "Like ``s*``, but the Python object may also be ``None``, in which case the " "``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``." msgstr "" +"Como `` s * ``, mas o objeto Python também pode ser `` None``, nesse caso o " +"membro `` buf`` da estrutura: c: type: `Py_buffer` é definido como` `NULL`` ." #: ../../c-api/arg.rst:110 msgid "" "``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) " -"[const char \\*, int]" +"[const char \\*, int or :c:type:`Py_ssize_t`]" msgstr "" -"``z#`` (:class:`str`, apenas leitura :term:`bytes-like object` ou``None``) " -"[const char \\*, int]" +"``z#`` (:class:`str`, :term:`bytes-like object` somente leitura ou ``None``) " +"[const char \\*, int ou :c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:109 msgid "" -"Like ``s#``, but the Python object may also be ``None``, in which case the C" -" pointer is set to ``NULL``." +"Like ``s#``, but the Python object may also be ``None``, in which case the C " +"pointer is set to ``NULL``." msgstr "" +"Como `` s # ``, mas o objeto Python também pode ser `` None``, nesse caso o " +"ponteiro C é definido como `` NULL``." #: ../../c-api/arg.rst:120 msgid "``y`` (read-only :term:`bytes-like object`) [const char \\*]" @@ -275,9 +292,9 @@ msgid "" "raised." msgstr "" "Este formato converte objetos do tipo byte para um ponteiro C para uma " -"cadeia de caracteres; não aceita objetos Unicode. O buffer de bytes não pode" -" conter bytes nulos incorporados; se isso ocorrer uma exceção " -":exc:`ValueError` será lançada." +"cadeia de caracteres; não aceita objetos Unicode. O buffer de bytes não pode " +"conter bytes nulos incorporados; se isso ocorrer uma exceção :exc:" +"`ValueError` será lançada." #: ../../c-api/arg.rst:118 msgid "" @@ -300,8 +317,12 @@ msgstr "" "byte. **Esta é a maneira recomendada para aceitar dados binários.**" #: ../../c-api/arg.rst:129 -msgid "``y#`` (read-only :term:`bytes-like object`) [const char \\*, int]" -msgstr "``y#`` (apenas leitura :term:`bytes-like object`) [const char \\*, int]" +msgid "" +"``y#`` (read-only :term:`bytes-like object`) [const char \\*, int or :c:type:" +"`Py_ssize_t`]" +msgstr "" +"``y#`` (:term:`bytes-like object` somente leitura) [const char \\*, int ou :" +"c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:128 msgid "" @@ -332,14 +353,14 @@ msgstr "``Y`` (:classe:`bytearray`) [PyByteArrayObject \\*]" #: ../../c-api/arg.rst:137 msgid "" "Requires that the Python object is a :class:`bytearray` object, without " -"attempting any conversion. Raises :exc:`TypeError` if the object is not a " -":class:`bytearray` object. The C variable may also be declared as " -":c:type:`PyObject\\*`." +"attempting any conversion. Raises :exc:`TypeError` if the object is not a :" +"class:`bytearray` object. The C variable may also be declared as :c:type:" +"`PyObject\\*`." msgstr "" "Requer que o objeto Python seja um objeto :classe:`bytearray`, sem aceitar " -"qualquer conversão. Lança :exc:`TypeError` se o objeto não é um objeto " -":classe:`bytearray`. A varíavel C apenas pode ser declarada como " -":c:tipo:`PyObject\\*`." +"qualquer conversão. Lança :exc:`TypeError` se o objeto não é um objeto :" +"classe:`bytearray`. A varíavel C apenas pode ser declarada como :c:tipo:" +"`PyObject\\*`." #: ../../c-api/arg.rst:156 msgid "``u`` (:class:`str`) [const Py_UNICODE \\*]" @@ -347,34 +368,36 @@ msgstr "``u`` (:class:`str`) [const Py_UNICODE \\*]" #: ../../c-api/arg.rst:142 msgid "" -"Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of" -" Unicode characters. You must pass the address of a :c:type:`Py_UNICODE` " +"Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of " +"Unicode characters. You must pass the address of a :c:type:`Py_UNICODE` " "pointer variable, which will be filled with the pointer to an existing " "Unicode buffer. Please note that the width of a :c:type:`Py_UNICODE` " "character depends on compilation options (it is either 16 or 32 bits). The " -"Python string must not contain embedded null code points; if it does, a " -":exc:`ValueError` exception is raised." +"Python string must not contain embedded null code points; if it does, a :exc:" +"`ValueError` exception is raised." msgstr "" "Converte um objeto Python Unicode para um ponteiro C para um buffer de " "caracteres Unicode terminado em NUL. Você deve passar o endereço de uma " "varíavel ponteiro :c:tipo:`Py_UNICODE`, que será preenchida com um " -"ponteiro para um buffer Unicode existente. Por favor, note que o comprimento" -" de um caracter :c:tipo:`Py_UNICODE` depende das opções de compilação (está " -"entre 16 ou 32 bits). A string Python não deve conter pontos de código nulos" -" incorporados, se isso ocorrer uma exceção :exc:`ValueError` será lançada." +"ponteiro para um buffer Unicode existente. Por favor, note que o comprimento " +"de um caracter :c:tipo:`Py_UNICODE` depende das opções de compilação (está " +"entre 16 ou 32 bits). A string Python não deve conter pontos de código nulos " +"incorporados, se isso ocorrer uma exceção :exc:`ValueError` será lançada." #: ../../c-api/arg.rst:157 ../../c-api/arg.rst:166 ../../c-api/arg.rst:174 #: ../../c-api/arg.rst:182 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsWideCharString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsWideCharString`." msgstr "" -"Parte do estilo antigo :c:type:`Py_UNICODE` API; por favor migre o uso para " -":c:func:`PyUnicode_AsWideCharString`." +"Parte do estilo antigo :c:type:`Py_UNICODE` API; por favor migre o uso para :" +"c:func:`PyUnicode_AsWideCharString`." #: ../../c-api/arg.rst:165 -msgid "``u#`` (:class:`str`) [const Py_UNICODE \\*, int]" -msgstr "``u#`` (:classe:`str`) [const Py_UNICODE \\*, int]" +msgid "" +"``u#`` (:class:`str`) [const Py_UNICODE \\*, int or :c:type:`Py_ssize_t`]" +msgstr "" +"``u#`` (:class:`str`) [const Py_UNICODE \\*, int ou :c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:159 msgid "" @@ -392,19 +415,27 @@ msgstr "``Z`` (:classe:`str` ou``None``) [const Py_UNICODE \\*]" #: ../../c-api/arg.rst:168 msgid "" -"Like ``u``, but the Python object may also be ``None``, in which case the " -":c:type:`Py_UNICODE` pointer is set to ``NULL``." +"Like ``u``, but the Python object may also be ``None``, in which case the :c:" +"type:`Py_UNICODE` pointer is set to ``NULL``." msgstr "" +"Como `` u``, mas o objeto Python também pode ser `` None``, nesse caso o " +"ponteiro: c: type: `Py_UNICODE` é definido como` `NULL``." #: ../../c-api/arg.rst:181 -msgid "``Z#`` (:class:`str` or ``None``) [const Py_UNICODE \\*, int]" -msgstr "``Z#`` (:classe:`str` ou``None``) [const Py_UNICODE \\*, int]" +msgid "" +"``Z#`` (:class:`str` or ``None``) [const Py_UNICODE \\*, int or :c:type:" +"`Py_ssize_t`]" +msgstr "" +"``Z#`` (:class:`str` ou ``None``) [const Py_UNICODE \\*, int ou :c:type:" +"`Py_ssize_t`]" #: ../../c-api/arg.rst:176 msgid "" -"Like ``u#``, but the Python object may also be ``None``, in which case the " -":c:type:`Py_UNICODE` pointer is set to ``NULL``." +"Like ``u#``, but the Python object may also be ``None``, in which case the :" +"c:type:`Py_UNICODE` pointer is set to ``NULL``." msgstr "" +"Como `` u # ``, mas o objeto Python também pode ser `` None``, nesse caso o " +"ponteiro: c: type: `Py_UNICODE` é definido como` `NULL``" #: ../../c-api/arg.rst:186 msgid "``U`` (:class:`str`) [PyObject \\*]" @@ -413,8 +444,8 @@ msgstr "``U`` (:classe:`str`) [PyObject \\*]" #: ../../c-api/arg.rst:184 msgid "" "Requires that the Python object is a Unicode object, without attempting any " -"conversion. Raises :exc:`TypeError` if the object is not a Unicode object." -" The C variable may also be declared as :c:type:`PyObject\\*`." +"conversion. Raises :exc:`TypeError` if the object is not a Unicode object. " +"The C variable may also be declared as :c:type:`PyObject\\*`." msgstr "" "Necessita que o objeto python seja um objeto Unicode, sem tentar alguma " "conversão. Lança :exc:`TypeError` se o objeto não for um objeto Unicode. A " @@ -428,8 +459,8 @@ msgstr "``w*`` (read-write :term:`bytes-like object`) [Py_buffer]" msgid "" "This format accepts any object which implements the read-write buffer " "interface. It fills a :c:type:`Py_buffer` structure provided by the caller. " -"The buffer may contain embedded null bytes. The caller have to call " -":c:func:`PyBuffer_Release` when it is done with the buffer." +"The buffer may contain embedded null bytes. The caller have to call :c:func:" +"`PyBuffer_Release` when it is done with the buffer." msgstr "" "Este formato aceita qualquer objeto que implemente a interface do buffer de " "leitura e gravação. Ele preenche uma estrutura: c: type: `Py_buffer` " @@ -453,21 +484,29 @@ msgstr "" #: ../../c-api/arg.rst:198 msgid "" "This format requires two arguments. The first is only used as input, and " -"must be a :c:type:`const char\\*` which points to the name of an encoding as" -" a NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is" -" used. An exception is raised if the named encoding is not known to Python." -" The second argument must be a :c:type:`char\\*\\*`; the value of the " -"pointer it references will be set to a buffer with the contents of the " -"argument text. The text will be encoded in the encoding specified by the " -"first argument." -msgstr "" +"must be a :c:type:`const char\\*` which points to the name of an encoding as " +"a NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is " +"used. An exception is raised if the named encoding is not known to Python. " +"The second argument must be a :c:type:`char\\*\\*`; the value of the pointer " +"it references will be set to a buffer with the contents of the argument " +"text. The text will be encoded in the encoding specified by the first " +"argument." +msgstr "" +"Este formato requer dois argumentos. O primeiro é usado apenas como entrada " +"e deve ser a: c: type: `const char \\ *` que aponta para o nome de uma " +"codificação como uma string terminada em NUL ou `` NULL``, nesse caso `` A " +"codificação 'utf-8' 'é usada. Uma exceção será gerada se a codificação " +"nomeada não for conhecida pelo Python. O segundo argumento deve ser a: c: " +"type: `char \\ * \\ *`; o valor do ponteiro a que ele faz referência será " +"definido como um buffer com o conteúdo do texto do argumento. O texto será " +"codificado na codificação especificada pelo primeiro argumento." #: ../../c-api/arg.rst:206 msgid "" ":c:func:`PyArg_ParseTuple` will allocate a buffer of the needed size, copy " "the encoded data into this buffer and adjust *\\*buffer* to reference the " -"newly allocated storage. The caller is responsible for calling " -":c:func:`PyMem_Free` to free the allocated buffer after use." +"newly allocated storage. The caller is responsible for calling :c:func:" +"`PyMem_Free` to free the allocated buffer after use." msgstr "" ": c: func: `PyArg_ParseTuple` alocará um buffer do tamanho necessário, " "copiará os dados codificados nesse buffer e ajustará *\\*buffer* para " @@ -488,23 +527,23 @@ msgid "" "recoding them. Instead, the implementation assumes that the byte string " "object uses the encoding passed in as parameter." msgstr "" -"O mesmo que `` es``, exceto que os objetos de cadeia de bytes são passados " -"​​sem os recodificar. Em vez disso, a implementação assume que o objeto de " +"O mesmo que `` es``, exceto que os objetos de cadeia de bytes são passados ​​" +"sem os recodificar. Em vez disso, a implementação assume que o objeto de " "cadeia de bytes usa a codificação passada como parâmetro." #: ../../c-api/arg.rst:245 msgid "" -"``es#`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, int " -"\\*buffer_length]" +"``es#`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, int or :c:" +"type:`Py_ssize_t` \\*buffer_length]" msgstr "" -"``es`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, int " -"\\*buffer_length]" +"``es#`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, int ou :c:" +"type:`Py_ssize_t` \\*buffer_length]" #: ../../c-api/arg.rst:217 msgid "" -"This variant on ``s#`` is used for encoding Unicode into a character buffer." -" Unlike the ``es`` format, this variant allows input data which contains NUL" -" characters." +"This variant on ``s#`` is used for encoding Unicode into a character buffer. " +"Unlike the ``es`` format, this variant allows input data which contains NUL " +"characters." msgstr "" "Essa variante em ``s#`` é usada para codificar Unicode em um buffer de " "caracteres. Diferente do formato ``es``, essa variante permite a entrada de " @@ -512,8 +551,8 @@ msgstr "" #: ../../c-api/arg.rst:221 msgid "" -"It requires three arguments. The first is only used as input, and must be a" -" :c:type:`const char\\*` which points to the name of an encoding as a NUL-" +"It requires three arguments. The first is only used as input, and must be " +"a :c:type:`const char\\*` which points to the name of an encoding as a NUL-" "terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is used. " "An exception is raised if the named encoding is not known to Python. The " "second argument must be a :c:type:`char\\*\\*`; the value of the pointer it " @@ -522,6 +561,16 @@ msgid "" "The third argument must be a pointer to an integer; the referenced integer " "will be set to the number of bytes in the output buffer." msgstr "" +"Requer três argumentos. O primeiro é usado apenas como entrada e deve ser a: " +"c: type: `const char \\ *` que aponta para o nome de uma codificação como " +"uma string terminada em NUL ou `` NULL``, nesse caso `` A codificação " +"'utf-8' 'é usada. Uma exceção será gerada se a codificação nomeada não for " +"conhecida pelo Python. O segundo argumento deve ser a: c: type: `char \\ * " +"\\ *`; o valor do ponteiro a que ele faz referência será definido como um " +"buffer com o conteúdo do texto do argumento. O texto será codificado na " +"codificação especificada pelo primeiro argumento. O terceiro argumento deve " +"ser um ponteiro para um número inteiro; o número inteiro referenciado será " +"definido como o número de bytes no buffer de saída." #: ../../c-api/arg.rst:231 msgid "There are two modes of operation:" @@ -530,20 +579,31 @@ msgstr "Há dois modos de operação:" #: ../../c-api/arg.rst:233 msgid "" "If *\\*buffer* points a ``NULL`` pointer, the function will allocate a " -"buffer of the needed size, copy the encoded data into this buffer and set " -"*\\*buffer* to reference the newly allocated storage. The caller is " +"buffer of the needed size, copy the encoded data into this buffer and set *" +"\\*buffer* to reference the newly allocated storage. The caller is " "responsible for calling :c:func:`PyMem_Free` to free the allocated buffer " "after usage." msgstr "" +"Se *\\*buffer* apontar um ponteiro ``NULL``, a função irá alocar um buffer " +"do tamanho necessário, copiar os dados codificados para dentro desse buffer " +"e configurar *\\*buffer* para referenciar o novo armazenamento alocado. O " +"chamador é responsável por chamar :c:func:`PyMem_Free` para liberar o buffer " +"alocado após o uso." #: ../../c-api/arg.rst:238 msgid "" "If *\\*buffer* points to a non-``NULL`` pointer (an already allocated " -"buffer), :c:func:`PyArg_ParseTuple` will use this location as the buffer and" -" interpret the initial value of *\\*buffer_length* as the buffer size. It " +"buffer), :c:func:`PyArg_ParseTuple` will use this location as the buffer and " +"interpret the initial value of *\\*buffer_length* as the buffer size. It " "will then copy the encoded data into the buffer and NUL-terminate it. If " "the buffer is not large enough, a :exc:`ValueError` will be set." msgstr "" +"Se *\\*buffer* apontar para um ponteiro que não seja ``NULL`` (um buffer já " +"alocado), :c:func:`PyArg_ParseTuple` irá usar essa localização como buffer e " +"interpretar o valor inicial de *\\*buffer_length* como sendo o tamanho do " +"buffer. Depois ela vai copiar os dados codificados para dentro do buffer e " +"terminá-lo com NUL. Se o buffer não for suficientemente grande, um :exc:" +"`ValueError` será definido." #: ../../c-api/arg.rst:244 msgid "" @@ -556,10 +616,10 @@ msgstr "" #: ../../c-api/arg.rst:250 msgid "" "``et#`` (:class:`str`, :class:`bytes` or :class:`bytearray`) [const char " -"\\*encoding, char \\*\\*buffer, int \\*buffer_length]" +"\\*encoding, char \\*\\*buffer, int or :c:type:`Py_ssize_t` \\*buffer_length]" msgstr "" -"``et#`` (:class:`str`, :class:`bytes` or :class:`bytearray`)[const char " -"\\*encoding, char \\*\\*buffer, int \\*buffer_length]" +"``et#`` (:class:`str`, :class:`bytes` ou :class:`bytearray`) [const char " +"\\*encoding, char \\*\\*buffer, int ou :c:type:`Py_ssize_t` \\*buffer_length]" #: ../../c-api/arg.rst:248 msgid "" @@ -567,8 +627,8 @@ msgid "" "recoding them. Instead, the implementation assumes that the byte string " "object uses the encoding passed in as parameter." msgstr "" -"O mesmo que ``es#``, exceto que os objetos de cadeia de bytes são passados " -"​​sem que sejam recodificados. Em vez disso, a implementação assume que o " +"O mesmo que ``es#``, exceto que os objetos de cadeia de bytes são passados ​​" +"sem que sejam recodificados. Em vez disso, a implementação assume que o " "objeto de cadeia de bytes usa a codificação passada como parâmetro." #: ../../c-api/arg.rst:253 @@ -581,11 +641,11 @@ msgstr "``b`` (:class:`int`) [char não assinada]" #: ../../c-api/arg.rst:256 msgid "" -"Convert a nonnegative Python integer to an unsigned tiny int, stored in a C " -":c:type:`unsigned char`." +"Convert a nonnegative Python integer to an unsigned tiny int, stored in a C :" +"c:type:`unsigned char`." msgstr "" -"Converta um inteiro Python não negativo em um pequeno inteiro (tiny int) não" -" assinado, armazenado em um C:c: type:`char não assinado`" +"Converta um inteiro Python não negativo em um pequeno inteiro (tiny int) não " +"assinado, armazenado em um C:c: type:`char não assinado`" #: ../../c-api/arg.rst:261 ../../c-api/arg.rst:600 msgid "``B`` (:class:`int`) [unsigned char]" @@ -693,11 +753,11 @@ msgstr "``c`` (:class:`bytes`or :class:`bytearray` de tamanho 1) [char]" #: ../../c-api/arg.rst:295 msgid "" -"Convert a Python byte, represented as a :class:`bytes` or :class:`bytearray`" -" object of length 1, to a C :c:type:`char`." +"Convert a Python byte, represented as a :class:`bytes` or :class:`bytearray` " +"object of length 1, to a C :c:type:`char`." msgstr "" -"Converta um byte Python, representado com uma :class:`byte` ou " -":class:`bytearray` objeto de tamanho 1, para uma C :c:type:`char`." +"Converta um byte Python, representado com uma :class:`byte` ou :class:" +"`bytearray` objeto de tamanho 1, para uma C :c:type:`char`." #: ../../c-api/arg.rst:298 msgid "Allow :class:`bytearray` objects." @@ -751,10 +811,13 @@ msgstr "``O`` (objeto) [PyObject\\*]" #: ../../c-api/arg.rst:318 msgid "" -"Store a Python object (without any conversion) in a C object pointer. The C" -" program thus receives the actual object that was passed. The object's " +"Store a Python object (without any conversion) in a C object pointer. The C " +"program thus receives the actual object that was passed. The object's " "reference count is not increased. The pointer stored is not ``NULL``." msgstr "" +"Armazena um objeto Python (sem qualquer conversão) em um ponteiro de objeto " +"C. O programa C então recebe o objeto real que foi passado. A contagem de " +"referência do objeto não é aumentada. O ponteiro armazenado não é ``NULL``." #: ../../c-api/arg.rst:327 msgid "``O!`` (object) [*typeobject*, PyObject \\*]" @@ -763,16 +826,16 @@ msgstr "``O!`` (objeto) [*typeobject*, PyObject \\*]" #: ../../c-api/arg.rst:323 msgid "" "Store a Python object in a C object pointer. This is similar to ``O``, but " -"takes two C arguments: the first is the address of a Python type object, the" -" second is the address of the C variable (of type :c:type:`PyObject\\*`) " -"into which the object pointer is stored. If the Python object does not have" -" the required type, :exc:`TypeError` is raised." +"takes two C arguments: the first is the address of a Python type object, the " +"second is the address of the C variable (of type :c:type:`PyObject\\*`) into " +"which the object pointer is stored. If the Python object does not have the " +"required type, :exc:`TypeError` is raised." msgstr "" "Armazene um objeto Python em um ponteiro de objeto C. Isso é similar ``O``, " "mas usa dois argumentos C: o primeiro é o endereço de um objeto do tipo " -"Python, o segundo é um endereço da variável C (de tipo :c:type:`PyObject\\*)" -" no qual o ponteiro do objeto está armazenado. Se o objeto Python não tiver " -"o tipo necessário, :​​exc:`TypeError` é gerado. " +"Python, o segundo é um endereço da variável C (de tipo :c:type:`PyObject\\*) " +"no qual o ponteiro do objeto está armazenado. Se o objeto Python não tiver o " +"tipo necessário, :​​exc:`TypeError` é gerado. " #: ../../c-api/arg.rst:352 ../../c-api/arg.rst:657 msgid "``O&`` (object) [*converter*, *anything*]" @@ -781,60 +844,69 @@ msgstr "``O&`` (objeto) [*converter*, *anything*]" #: ../../c-api/arg.rst:332 msgid "" "Convert a Python object to a C variable through a *converter* function. " -"This takes two arguments: the first is a function, the second is the address" -" of a C variable (of arbitrary type), converted to :c:type:`void \\*`. The " +"This takes two arguments: the first is a function, the second is the address " +"of a C variable (of arbitrary type), converted to :c:type:`void \\*`. The " "*converter* function in turn is called as follows::" msgstr "" "Converter um objeto Python em uma variável C através de uma função " -"*converter*. Isso leva dois argumentos: o primeiro é a função, o segundo é o" -" endereço da variável C (de tipo arbitrário), convertendo para :c:type:`void" -" \\*`. A função *converter* por sua vez, é chamada da seguinte maneira:" +"*converter*. Isso leva dois argumentos: o primeiro é a função, o segundo é o " +"endereço da variável C (de tipo arbitrário), convertendo para :c:type:`void " +"\\*`. A função *converter* por sua vez, é chamada da seguinte maneira:" #: ../../c-api/arg.rst:339 msgid "" -"where *object* is the Python object to be converted and *address* is the " -":c:type:`void\\*` argument that was passed to the :c:func:`PyArg_Parse\\*` " +"where *object* is the Python object to be converted and *address* is the :c:" +"type:`void\\*` argument that was passed to the :c:func:`PyArg_Parse\\*` " "function. The returned *status* should be ``1`` for a successful conversion " "and ``0`` if the conversion has failed. When the conversion fails, the " "*converter* function should raise an exception and leave the content of " "*address* unmodified." msgstr "" -"onde *object* é o objeto Python a ser convertido e *address* é o argumento " -":c:type:`void\\*` que foi passado para a função: c: func: `PyArg_Parse \\ " -"*`. O * status * retornado deve ser `` 1`` para uma conversão bem-sucedida e" -" `` 0`` se a conversão falhar. Quando a conversão falha, a função * " -"converter * deve gerar uma exceção e deixar o conteúdo de * endereço * " -"inalterado." +"onde *object* é o objeto Python a ser convertido e *address* é o argumento :" +"c:type:`void\\*` que foi passado para a função: c: func: `PyArg_Parse \\ *`. " +"O * status * retornado deve ser `` 1`` para uma conversão bem-sucedida e `` " +"0`` se a conversão falhar. Quando a conversão falha, a função * converter * " +"deve gerar uma exceção e deixar o conteúdo de * endereço * inalterado." #: ../../c-api/arg.rst:345 msgid "" "If the *converter* returns ``Py_CLEANUP_SUPPORTED``, it may get called a " -"second time if the argument parsing eventually fails, giving the converter a" -" chance to release any memory that it had already allocated. In this second " +"second time if the argument parsing eventually fails, giving the converter a " +"chance to release any memory that it had already allocated. In this second " "call, the *object* parameter will be ``NULL``; *address* will have the same " "value as in the original call." msgstr "" +"Se o * converter * retornar `` Py_CLEANUP_SUPPORTED``, ele poderá ser " +"chamado uma segunda vez se a análise do argumento eventualmente falhar, " +"dando ao conversor a chance de liberar qualquer memória que já havia " +"alocado. Nesta segunda chamada, o parâmetro * object * será `` NULL``; * " +"endereço * terá o mesmo valor que na chamada original." #: ../../c-api/arg.rst:351 msgid "``Py_CLEANUP_SUPPORTED`` was added." -msgstr "" +msgstr "109 `` Py_CLEANUP_SUPPORTED`` foi adicionado." #: ../../c-api/arg.rst:361 msgid "``p`` (:class:`bool`) [int]" -msgstr "" +msgstr "`` p`` (: class: `bool`) [int]" #: ../../c-api/arg.rst:355 msgid "" "Tests the value passed in for truth (a boolean **p**\\ redicate) and " "converts the result to its equivalent C true/false integer value. Sets the " "int to ``1`` if the expression was true and ``0`` if it was false. This " -"accepts any valid Python value. See :ref:`truth` for more information about" -" how Python tests values for truth." +"accepts any valid Python value. See :ref:`truth` for more information about " +"how Python tests values for truth." msgstr "" +"Testa o valor transmitido para a verdade (um booleano ** p ** \\ redicate) e " +"converte o resultado em seu valor inteiro C verdadeiro / falso equivalente. " +"Define o int como `` 1`` se a expressão for verdadeira e `` 0`` se for " +"falsa. Isso aceita qualquer valor válido do Python. Veja: ref: `truth` para " +"obter mais informações sobre como o Python testa valores para a verdade." #: ../../c-api/arg.rst:366 ../../c-api/arg.rst:660 msgid "``(items)`` (:class:`tuple`) [*matching-items*]" -msgstr "" +msgstr "``(items)`` (:class:`tuple`) [*matching-items*]" #: ../../c-api/arg.rst:364 msgid "" @@ -842,21 +914,33 @@ msgid "" "units in *items*. The C arguments must correspond to the individual format " "units in *items*. Format units for sequences may be nested." msgstr "" +"O objeto deve ser uma sequência Python cujo comprimento seja o número de " +"unidades de formato em * itens *. Os argumentos C devem corresponder às " +"unidades de formato individuais em * itens *. As unidades de formato para " +"sequências podem ser aninhadas." #: ../../c-api/arg.rst:368 msgid "" "It is possible to pass \"long\" integers (integers whose value exceeds the " "platform's :const:`LONG_MAX`) however no proper range checking is done --- " -"the most significant bits are silently truncated when the receiving field is" -" too small to receive the value (actually, the semantics are inherited from " +"the most significant bits are silently truncated when the receiving field is " +"too small to receive the value (actually, the semantics are inherited from " "downcasts in C --- your mileage may vary)." msgstr "" +"É possível passar inteiros \"long\" (inteiros em que o valor excede a " +"constante da plataforma :const:`LONG_MAX`) contudo nenhuma checagem de " +"intervalo é propriamente feita --- os bits mais significantes são " +"silenciosamente truncados quando o campo de recebimento é muito pequeno para " +"receber o valor (na verdade, a semântica é herdada de downcasts no C --- seu " +"raio de ação pode variar)." #: ../../c-api/arg.rst:374 msgid "" "A few other characters have a meaning in a format string. These may not " "occur inside nested parentheses. They are:" msgstr "" +"Alguns outros caracteres possuem significados na string de formatação. Isso " +"pode não ocorrer dentro de parênteses aninhados. Eles são:" #: ../../c-api/arg.rst:382 msgid "``|``" @@ -870,6 +954,11 @@ msgid "" "specified, :c:func:`PyArg_ParseTuple` does not touch the contents of the " "corresponding C variable(s)." msgstr "" +"Indica que os argumentos restantes na lista de argumentos do Python são " +"opcionais. As variáveis C correspondentes a argumentos opcionais devem ser " +"inicializadas para seus valores padrão --- quando um argumento opcional não " +"é especificado, :c:func:`PyArg_ParseTuple` não toca no conteúdo da(s) " +"variável(eis) C correspondente(s)." #: ../../c-api/arg.rst:391 msgid "``$``" @@ -879,13 +968,18 @@ msgstr "``$``" msgid "" ":c:func:`PyArg_ParseTupleAndKeywords` only: Indicates that the remaining " "arguments in the Python argument list are keyword-only. Currently, all " -"keyword-only arguments must also be optional arguments, so ``|`` must always" -" be specified before ``$`` in the format string." +"keyword-only arguments must also be optional arguments, so ``|`` must always " +"be specified before ``$`` in the format string." msgstr "" +":c:func:`PyArg_ParseTupleAndKeywords` apenas: Indica que os argumentos " +"restantes na lista de argumentos do Python são somente palavras-chave. " +"Atualmente, todos os argumentos somente palavra-chave devem ser também " +"argumentos opcionais, então ``|`` deve sempre ser especificado antes de ``" +"$`` na string de formatação." #: ../../c-api/arg.rst:396 msgid "``:``" -msgstr "" +msgstr "``:``" #: ../../c-api/arg.rst:394 msgid "" @@ -893,23 +987,32 @@ msgid "" "the function name in error messages (the \"associated value\" of the " "exception that :c:func:`PyArg_ParseTuple` raises)." msgstr "" +"A lista de unidades de formatação acaba aqui; a string após os dois pontos é " +"usada como o nome da função nas mensagens de erro (o \"valor associado\" da " +"exceção que :c:func:`PyArg_ParseTuple` levanta)." #: ../../c-api/arg.rst:401 msgid "``;``" -msgstr "" +msgstr "``;``" #: ../../c-api/arg.rst:399 msgid "" "The list of format units ends here; the string after the semicolon is used " -"as the error message *instead* of the default error message. ``:`` and " -"``;`` mutually exclude each other." +"as the error message *instead* of the default error message. ``:`` and ``;" +"`` mutually exclude each other." msgstr "" +"A lista de unidades de formatação acaba aqui; a string após o ponto e " +"vírgula é usada como a mensagem de erro *ao invés* da mensagem de erro " +"padrão. ``:`` e ``;`` se excluem mutuamente." #: ../../c-api/arg.rst:403 msgid "" "Note that any Python object references which are provided to the caller are " "*borrowed* references; do not decrement their reference count!" msgstr "" +"Note que quaisquer referências a objeto Python que são fornecidas ao " +"chamador são referências *emprestadas*; não decremente a contagem de " +"referências delas!" #: ../../c-api/arg.rst:406 msgid "" @@ -920,6 +1023,12 @@ msgid "" "values; they should match what is specified for the corresponding format " "unit in that case." msgstr "" +"Argumentos adicionais passados para essas funções devem ser endereços de " +"variáveis cujo tipo é determinado pela string de formatação; estes são " +"usados para armazenar valores vindos da tupla de entrada. Existem alguns " +"casos, como descrito na lista de unidades de formatação acima, onde esses " +"parâmetros são usados como valores de entrada; eles devem concordar com o " +"que é especificado para a unidade de formatação correspondente nesse caso." #: ../../c-api/arg.rst:412 msgid "" @@ -931,45 +1040,66 @@ msgid "" "addresses corresponding to that and the following format units are left " "untouched." msgstr "" +"Para a conversão funcionar, o objeto *arg* deve corresponder ao formato e o " +"formato deve estar completo. Em caso de sucesso, as funções :c:func:" +"`PyArg_Parse\\*` retornam verdadeiro, caso contrário retornam falso e " +"levantam uma exceção apropriada. Quando as funções :c:func:`PyArg_Parse\\*` " +"falham devido a uma falha de conversão em uma das unidades de formatação, as " +"variáveis nos endereços correspondentes àquela unidade e às unidades de " +"formatação seguintes são deixadas intocadas." #: ../../c-api/arg.rst:421 msgid "API Functions" -msgstr "" +msgstr "Funções da API" #: ../../c-api/arg.rst:425 msgid "" "Parse the parameters of a function that takes only positional parameters " -"into local variables. Returns true on success; on failure, it returns false" -" and raises the appropriate exception." +"into local variables. Returns true on success; on failure, it returns false " +"and raises the appropriate exception." msgstr "" +"Analisa os parâmetros de uma função que recebe apenas parâmetros posicionais " +"em variáveis locais. Retorna verdadeiro em caso de sucesso; em caso de " +"falha, retorna falso e levanta a exceção apropriada." #: ../../c-api/arg.rst:432 msgid "" "Identical to :c:func:`PyArg_ParseTuple`, except that it accepts a va_list " "rather than a variable number of arguments." msgstr "" +"Idêntico a :c:func:`PyArg_ParseTuple`, exceto que aceita uma va_list ao " +"invés de um número variável de argumentos." #: ../../c-api/arg.rst:438 msgid "" "Parse the parameters of a function that takes both positional and keyword " -"parameters into local variables. The *keywords* argument is a " -"``NULL``-terminated array of keyword parameter names. Empty names denote " -":ref:`positional-only parameters `. Returns true " -"on success; on failure, it returns false and raises the appropriate " -"exception." -msgstr "" +"parameters into local variables. The *keywords* argument is a ``NULL``-" +"terminated array of keyword parameter names. Empty names denote :ref:" +"`positional-only parameters `. Returns true on " +"success; on failure, it returns false and raises the appropriate exception." +msgstr "" +"Analisa os parâmetros de uma função que recebe ambos parâmetros posicionais " +"e de palavra reservada em variáveis locais. O argumento *keywords* é um " +"vetor terminado por ``NULL`` de nomes de parâmetros de palavra reservada. " +"Nomes vazios denotam :ref:`positional-only parameters `. Retorna verdadeiro em caso de sucesso; em caso de falha, " +"retorna falso e levanta a exceção apropriada." #: ../../c-api/arg.rst:445 msgid "" "Added support for :ref:`positional-only parameters `." msgstr "" +"Adicionado suporte para :ref:`positional-only parameters `." #: ../../c-api/arg.rst:452 msgid "" -"Identical to :c:func:`PyArg_ParseTupleAndKeywords`, except that it accepts a" -" va_list rather than a variable number of arguments." +"Identical to :c:func:`PyArg_ParseTupleAndKeywords`, except that it accepts a " +"va_list rather than a variable number of arguments." msgstr "" +"Idêntico a :c:func:`PyArg_ParseTupleAndKeywords`, exceto que aceita uma " +"va_list ao invés de um número variável de argumentos." #: ../../c-api/arg.rst:458 msgid "" @@ -977,17 +1107,27 @@ msgid "" "is only needed if :c:func:`PyArg_ParseTupleAndKeywords` is not used, since " "the latter already does this check." msgstr "" +"Garante que as chaves no dicionário de argumento de palavras reservadas são " +"strings. Isso só é necessário se :c:func:`PyArg_ParseTupleAndKeywords` não é " +"usado, já que o último já faz essa checagem." #: ../../c-api/arg.rst:468 msgid "" "Function used to deconstruct the argument lists of \"old-style\" functions " "--- these are functions which use the :const:`METH_OLDARGS` parameter " -"parsing method, which has been removed in Python 3. This is not recommended" -" for use in parameter parsing in new code, and most code in the standard " +"parsing method, which has been removed in Python 3. This is not recommended " +"for use in parameter parsing in new code, and most code in the standard " "interpreter has been modified to no longer use this for that purpose. It " "does remain a convenient way to decompose other tuples, however, and may " "continue to be used for that purpose." msgstr "" +"Função usada para desconstruir as listas de argumento de funções \"old-style" +"\" --- estas são funções que usam o método de análise de parâmetro :const:" +"`METH_OLDARGS`, que foi removido no Python 3. Isso não é recomendado para " +"uso de análise de parâmetro em código novo, e a maior parte do código no " +"interpretador padrão foi modificada para não usar mais isso para esse " +"propósito. Ela continua um modo conveniente de decompor outras tuplas, " +"contudo, e pode continuar a ser usada para esse propósito." #: ../../c-api/arg.rst:479 msgid "" @@ -1000,56 +1140,93 @@ msgid "" "equal. Additional arguments must be passed to the function, each of which " "should be a pointer to a :c:type:`PyObject\\*` variable; these will be " "filled in with the values from *args*; they will contain borrowed " -"references. The variables which correspond to optional parameters not given" -" by *args* will not be filled in; these should be initialized by the caller." -" This function returns true on success and false if *args* is not a tuple or" -" contains the wrong number of elements; an exception will be set if there " -"was a failure." -msgstr "" +"references. The variables which correspond to optional parameters not given " +"by *args* will not be filled in; these should be initialized by the caller. " +"This function returns true on success and false if *args* is not a tuple or " +"contains the wrong number of elements; an exception will be set if there was " +"a failure." +msgstr "" +"Uma forma mais simples de recuperar parâmetros que não usa a string de " +"formatação para especificar os tipos dos argumentos. Funções que usam esse " +"método para recuperar seus parâmetros devem ser declaradas como :const:" +"`METH_VARARGS` em tabelas de função ou método. A tupla contendo os " +"parâmetros reais deve ser passada como *args*; ela deve ser realmente uma " +"tupla. O tamanho da tupla deve ser pelo menos *min* e não mais que *max*; " +"*min* e *max* podem ser iguais. Argumentos adicionais devem ser passados " +"para a função, cada qual deve ser um ponteiro para uma variável :c:type:" +"`PyObject\\*`; estes serão preenchidos com os valores vindos de *args*; eles " +"vão conter referências emprestadas. As variáveis que corresponderem a " +"parâmetros opcionais não dados por *args* não serão preenchidas; estas devem " +"ser inicializadas pelo chamador. Essa função retorna verdadeiro em caso de " +"sucesso e falso se *args* não é uma tupla ou contém o número errado de " +"elementos; uma exceção será definida se houve uma falha." #: ../../c-api/arg.rst:493 msgid "" "This is an example of the use of this function, taken from the sources for " "the :mod:`_weakref` helper module for weak references::" msgstr "" +"Este é um exemplo do uso dessa função, tirado das fontes do módulo auxiliar " +"para referências fracas :mod:`_weakref`::" #: ../../c-api/arg.rst:509 msgid "" "The call to :c:func:`PyArg_UnpackTuple` in this example is entirely " "equivalent to this call to :c:func:`PyArg_ParseTuple`::" msgstr "" +"A chamada à :c:func:`PyArg_UnpackTuple` neste exemplo é inteiramente " +"equivalente à chamada para :c:func:`PyArg_ParseTuple`::" #: ../../c-api/arg.rst:517 msgid "Building values" -msgstr "" +msgstr "Construindo valores" #: ../../c-api/arg.rst:521 msgid "" -"Create a new value based on a format string similar to those accepted by the" -" :c:func:`PyArg_Parse\\*` family of functions and a sequence of values. " +"Create a new value based on a format string similar to those accepted by " +"the :c:func:`PyArg_Parse\\*` family of functions and a sequence of values. " "Returns the value or ``NULL`` in the case of an error; an exception will be " "raised if ``NULL`` is returned." msgstr "" +"Cria um novo valor baseado em uma string de formatação similar àquelas " +"aceitas pela família de funções :c:func:`PyArg_Parse\\*` e uma sequência de " +"valores. Retorna o valor ou ``NULL`` em caso de erro; uma exceção será " +"levantada se ``NULL`` for retornado." #: ../../c-api/arg.rst:526 msgid "" ":c:func:`Py_BuildValue` does not always build a tuple. It builds a tuple " "only if its format string contains two or more format units. If the format " "string is empty, it returns ``None``; if it contains exactly one format " -"unit, it returns whatever object is described by that format unit. To force" -" it to return a tuple of size 0 or one, parenthesize the format string." +"unit, it returns whatever object is described by that format unit. To force " +"it to return a tuple of size 0 or one, parenthesize the format string." msgstr "" +":c:func:`Py_BuildValue` não constrói sempre uma tupla. Ela constrói uma " +"tupla apenas se a sua string de formatação contém duas ou mais unidades de " +"formatação. Se a string de formatação estiver vazia, ela retorna ``None``; " +"se ela contém exatamente uma unidade de formatação, ela retorna qualquer que " +"seja o objeto que for descrito pela unidade de formatação. Para forçar ela a " +"retornar uma tupla de tamanho 0 ou um, use parênteses na string de " +"formatação." #: ../../c-api/arg.rst:532 msgid "" "When memory buffers are passed as parameters to supply data to build " "objects, as for the ``s`` and ``s#`` formats, the required data is copied. " "Buffers provided by the caller are never referenced by the objects created " -"by :c:func:`Py_BuildValue`. In other words, if your code invokes " -":c:func:`malloc` and passes the allocated memory to :c:func:`Py_BuildValue`," -" your code is responsible for calling :c:func:`free` for that memory once " -":c:func:`Py_BuildValue` returns." -msgstr "" +"by :c:func:`Py_BuildValue`. In other words, if your code invokes :c:func:" +"`malloc` and passes the allocated memory to :c:func:`Py_BuildValue`, your " +"code is responsible for calling :c:func:`free` for that memory once :c:func:" +"`Py_BuildValue` returns." +msgstr "" +"Quando buffers de memória são passados como parâmetros para fornecer dados " +"para construir objetos, como nos formatos ``s`` e ``s#``, os dados " +"necessários são copiados. Buffers fornecidos pelo chamador nunca são " +"referenciados pelos objetos criados por :c:func:`Py_BuildValue`. Em outras " +"palavras, se o seu código invoca :c:func:`malloc` e passa a memória alocada " +"para :c:func:`Py_BuildValue`, seu código é responsável por chamar :c:func:" +"`free` para aquela memória uma vez que :c:func:`Py_BuildValue` tiver " +"retornado." #: ../../c-api/arg.rst:540 msgid "" @@ -1058,27 +1235,42 @@ msgid "" "return; and the entry in [square] brackets is the type of the C value(s) to " "be passed." msgstr "" +"Na descrição a seguir, a forma entre aspas é a unidade de formatação; a " +"entrada em parênteses (arredondado) é o tipo do objeto Python que a unidade " +"de formatação irá retornar; e a entrada em colchetes [quadrado] é o tipo " +"do(s) valor(es) C a ser(em) passado(s)." #: ../../c-api/arg.rst:544 msgid "" "The characters space, tab, colon and comma are ignored in format strings " -"(but not within format units such as ``s#``). This can be used to make long" -" format strings a tad more readable." +"(but not within format units such as ``s#``). This can be used to make long " +"format strings a tad more readable." msgstr "" +"Os caracteres de espaço, tab, dois pontos e vírgula são ignorados em strings " +"de formatação (mas não dentro de unidades de formatação como ``s#``). Isso " +"pode ser usado para tornar strings de formatação longas um pouco mais " +"legíveis." #: ../../c-api/arg.rst:550 msgid "``s`` (:class:`str` or ``None``) [const char \\*]" -msgstr "" +msgstr "``s`` (:class:`str` ou ``None``) [const char \\*]" #: ../../c-api/arg.rst:549 msgid "" "Convert a null-terminated C string to a Python :class:`str` object using " "``'utf-8'`` encoding. If the C string pointer is ``NULL``, ``None`` is used." msgstr "" +"Converte uma string C terminada em NULL em um objeto Python :class:`str` " +"usando codificação ``'utf-8'``. Se o ponteiro da string C é ``NULL``, " +"``None`` é usado." #: ../../c-api/arg.rst:555 -msgid "``s#`` (:class:`str` or ``None``) [const char \\*, int]" +msgid "" +"``s#`` (:class:`str` or ``None``) [const char \\*, int or :c:type:" +"`Py_ssize_t`]" msgstr "" +"``s#`` (:class:`str` ou ``None``) [const char \\*, int ou :c:type:" +"`Py_ssize_t`]" #: ../../c-api/arg.rst:553 msgid "" @@ -1086,42 +1278,53 @@ msgid "" "``'utf-8'`` encoding. If the C string pointer is ``NULL``, the length is " "ignored and ``None`` is returned." msgstr "" +"Converte uma string C e seu tamanho em um objeto Python :class:`str` usando " +"a codificação ``'utf-8'``. Se o ponteiro da string C é ``NULL``, o tamanho é " +"ignorado e ``None`` é retornado." #: ../../c-api/arg.rst:559 msgid "``y`` (:class:`bytes`) [const char \\*]" -msgstr "" +msgstr "``y`` (:class:`bytes`) [const char \\*]" #: ../../c-api/arg.rst:558 msgid "" -"This converts a C string to a Python :class:`bytes` object. If the C string" -" pointer is ``NULL``, ``None`` is returned." +"This converts a C string to a Python :class:`bytes` object. If the C string " +"pointer is ``NULL``, ``None`` is returned." msgstr "" +"Isso converte uma string C para um objeto Python :class:`bytes`. Se o " +"ponteiro da string C é ``NULL``, ``None`` é retornado." #: ../../c-api/arg.rst:563 -msgid "``y#`` (:class:`bytes`) [const char \\*, int]" -msgstr "" +msgid "``y#`` (:class:`bytes`) [const char \\*, int or :c:type:`Py_ssize_t`]" +msgstr "``y#`` (:class:`bytes`) [const char \\*, int ou :c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:562 msgid "" "This converts a C string and its lengths to a Python object. If the C " "string pointer is ``NULL``, ``None`` is returned." msgstr "" +"Isso converte uma string C e seu tamanho para um objeto Python. Se o " +"ponteiro da string C é ``NULL``, ``None`` é retornado." #: ../../c-api/arg.rst:566 ../../c-api/arg.rst:582 msgid "Same as ``s``." -msgstr "" +msgstr "O mesmo de ``s``." #: ../../c-api/arg.rst:569 -msgid "``z#`` (:class:`str` or ``None``) [const char \\*, int]" +msgid "" +"``z#`` (:class:`str` or ``None``) [const char \\*, int or :c:type:" +"`Py_ssize_t`]" msgstr "" +"``z#`` (:class:`str` ou ``None``) [const char \\*, int ou :c:type:" +"`Py_ssize_t`]" #: ../../c-api/arg.rst:569 ../../c-api/arg.rst:585 msgid "Same as ``s#``." -msgstr "" +msgstr "O mesmo de ``s#``." #: ../../c-api/arg.rst:574 msgid "``u`` (:class:`str`) [const wchar_t \\*]" -msgstr "" +msgstr "``u`` (:class:`str`) [const wchar_t \\*]" #: ../../c-api/arg.rst:572 msgid "" @@ -1129,10 +1332,13 @@ msgid "" "UCS-4) data to a Python Unicode object. If the Unicode buffer pointer is " "``NULL``, ``None`` is returned." msgstr "" +"Converte um buffer terminado por null :c:type:`wchar_t` de dados Unicode " +"(UTF-16 ou UCS-4) para um objeto Python Unicode. Se o ponteiro do buffer " +"Unicode é ``NULL``, ``None`` é retornado." #: ../../c-api/arg.rst:579 -msgid "``u#`` (:class:`str`) [const wchar_t \\*, int]" -msgstr "" +msgid "``u#`` (:class:`str`) [const wchar_t \\*, int or :c:type:`Py_ssize_t`]" +msgstr "``u#`` (:class:`str`) [const wchar_t \\*, int ou :c:type:`Py_ssize_t`]" #: ../../c-api/arg.rst:577 msgid "" @@ -1140,94 +1346,123 @@ msgid "" "Unicode object. If the Unicode buffer pointer is ``NULL``, the length is " "ignored and ``None`` is returned." msgstr "" +"Converte um buffer de dados Unicode (UTF-17 ou UCS-4) e seu tamanho em um " +"objeto Python Unicode. Se o ponteiro do buffer Unicode é ``NULL``, o tamanho " +"é ignorado e ``None`` é retornado." #: ../../c-api/arg.rst:582 msgid "``U`` (:class:`str` or ``None``) [const char \\*]" -msgstr "" +msgstr "``U`` (:class:`str` ou ``None``) [const char \\*]" #: ../../c-api/arg.rst:585 -msgid "``U#`` (:class:`str` or ``None``) [const char \\*, int]" +msgid "" +"``U#`` (:class:`str` or ``None``) [const char \\*, int or :c:type:" +"`Py_ssize_t`]" msgstr "" +"``U#`` (:class:`str` ou ``None``) [const char \\*, int ou :c:type:" +"`Py_ssize_t`]" #: ../../c-api/arg.rst:588 msgid "Convert a plain C :c:type:`int` to a Python integer object." -msgstr "" +msgstr "Converte um simples :c:type:`int` do C em um objeto inteiro do Python." #: ../../c-api/arg.rst:591 msgid "``b`` (:class:`int`) [char]" -msgstr "" +msgstr "``b`` (:class:`int`) [char]" #: ../../c-api/arg.rst:591 msgid "Convert a plain C :c:type:`char` to a Python integer object." msgstr "" +"Converte um simples :c:type:`char` do C em um objeto inteiro do Python. " #: ../../c-api/arg.rst:594 msgid "Convert a plain C :c:type:`short int` to a Python integer object." msgstr "" +"Converte um simples :c:type:`short int` do C em um objeto inteiro do Python. " #: ../../c-api/arg.rst:597 msgid "Convert a C :c:type:`long int` to a Python integer object." msgstr "" +"Converte um simples :c:type:`long int` do C em um objeto inteiro do Python. " #: ../../c-api/arg.rst:600 msgid "Convert a C :c:type:`unsigned char` to a Python integer object." msgstr "" +"Converte um simples :c:type:`unsigned char` do C em um objeto inteiro do " +"Python. " #: ../../c-api/arg.rst:603 msgid "Convert a C :c:type:`unsigned short int` to a Python integer object." msgstr "" +"Converte um simples :c:type:`unsigned short int` do C em um objeto inteiro " +"do Python. " #: ../../c-api/arg.rst:606 msgid "Convert a C :c:type:`unsigned int` to a Python integer object." msgstr "" +"Converte um simples :c:type:`unsigned int` do C em um objeto inteiro do " +"Python. " #: ../../c-api/arg.rst:609 msgid "Convert a C :c:type:`unsigned long` to a Python integer object." msgstr "" +"Converte um simples :c:type:`unsigned long` do C em um objeto inteiro do " +"Python. " #: ../../c-api/arg.rst:612 msgid "Convert a C :c:type:`long long` to a Python integer object." msgstr "" +"Converte um simples :c:type:`long long` do C em um objeto inteiro do Python. " #: ../../c-api/arg.rst:615 msgid "Convert a C :c:type:`unsigned long long` to a Python integer object." msgstr "" +"Converte um simples :c:type:`unsigned long long` do C em um objeto inteiro " +"do Python. " #: ../../c-api/arg.rst:618 msgid "Convert a C :c:type:`Py_ssize_t` to a Python integer." -msgstr "" +msgstr "Converte um :c:type:`Py_ssize_t` do C em um objeto inteiro do Python. " #: ../../c-api/arg.rst:622 msgid "``c`` (:class:`bytes` of length 1) [char]" -msgstr "" +msgstr "``c`` (:class:`bytes` de tamanho 1) [char]" #: ../../c-api/arg.rst:621 msgid "" "Convert a C :c:type:`int` representing a byte to a Python :class:`bytes` " "object of length 1." msgstr "" +"Converte um :c:type:`int` representando um byte do C em um objeto :class:" +"`bytes` de tamanho 1 do Python. " #: ../../c-api/arg.rst:625 msgid "" "Convert a C :c:type:`int` representing a character to Python :class:`str` " "object of length 1." msgstr "" +"Converte um :c:type:`int` representando um caractere do C em um objeto :" +"class:`str` de comprimento 1 do Python. " #: ../../c-api/arg.rst:629 msgid "Convert a C :c:type:`double` to a Python floating point number." msgstr "" +"Converte um :c:type:`double` do C em um número ponto flutuante do Python. " #: ../../c-api/arg.rst:632 msgid "Convert a C :c:type:`float` to a Python floating point number." msgstr "" +"Converte um :c:type:`float` do C em um número ponto flutuante do Python. " #: ../../c-api/arg.rst:635 msgid "``D`` (:class:`complex`) [Py_complex \\*]" -msgstr "" +msgstr "``D`` (:class:`complex`) [Py_complex \\*]" #: ../../c-api/arg.rst:635 msgid "Convert a C :c:type:`Py_complex` structure to a Python complex number." msgstr "" +"Converte uma estrutura :c:type:`Py_complex` do C em um número complexo do " +"Python." #: ../../c-api/arg.rst:638 msgid "" @@ -1238,53 +1473,70 @@ msgid "" "return ``NULL`` but won't raise an exception. If no exception has been " "raised yet, :exc:`SystemError` is set." msgstr "" +"Passa um objeto Python intocado (exceto por sua contagem de referências, que " +"é incrementada por um). Se o objeto passado é um ponteiro ``NULL``, assume-" +"se que isso foi causado porque a chamada que produziu o argumento encontrou " +"um erro e definiu uma exceção. Portanto, :c:func:`Py_BuildValue` irá " +"retornar ``NULL`` mas não irá levantar uma exceção. Se nenhuma exceção foi " +"levantada ainda, :exc:`SystemError` é definida." #: ../../c-api/arg.rst:646 msgid "``S`` (object) [PyObject \\*]" -msgstr "" +msgstr "``S`` (object) [PyObject \\*]" #: ../../c-api/arg.rst:646 msgid "Same as ``O``." -msgstr "" +msgstr "O mesmo que ``O``." #: ../../c-api/arg.rst:651 msgid "``N`` (object) [PyObject \\*]" -msgstr "" +msgstr "``N`` (objeto) [PyObject \\*]" #: ../../c-api/arg.rst:649 msgid "" "Same as ``O``, except it doesn't increment the reference count on the " -"object. Useful when the object is created by a call to an object constructor" -" in the argument list." +"object. Useful when the object is created by a call to an object constructor " +"in the argument list." msgstr "" +"O mesmo que ``O``, exceto que não incrementa a contagem de referências do " +"objeto. Útil quando o objeto é criado por uma chamada a um construtor de " +"objeto na lista de argumento." #: ../../c-api/arg.rst:654 msgid "" "Convert *anything* to a Python object through a *converter* function. The " -"function is called with *anything* (which should be compatible with " -":c:type:`void \\*`) as its argument and should return a \"new\" Python " -"object, or ``NULL`` if an error occurred." +"function is called with *anything* (which should be compatible with :c:type:" +"`void \\*`) as its argument and should return a \"new\" Python object, or " +"``NULL`` if an error occurred." msgstr "" +"Converte *qualquer coisa* para um objeto Python através de uma função " +"*conversora*. A função é chamada com *qualquer coisa* (que deve ser " +"compatível com o :c:type:`void \\*`) como argumento e deve retornar um \"novo" +"\" objeto Python, ou ``NULL`` se um erro ocorreu." #: ../../c-api/arg.rst:660 msgid "" "Convert a sequence of C values to a Python tuple with the same number of " "items." msgstr "" +"Converte uma sequência de valores C para uma tupla Python com o mesmo número " +"de itens." #: ../../c-api/arg.rst:663 msgid "``[items]`` (:class:`list`) [*matching-items*]" -msgstr "" +msgstr "``[items]`` (:class:`list`) [*matching-items*]" #: ../../c-api/arg.rst:663 msgid "" "Convert a sequence of C values to a Python list with the same number of " "items." msgstr "" +"Converte uma sequência de valores C para uma lista Python com o mesmo número " +"de itens." #: ../../c-api/arg.rst:668 msgid "``{items}`` (:class:`dict`) [*matching-items*]" -msgstr "" +msgstr "``{items}`` (:class:`dict`) [*matching-items*]" #: ../../c-api/arg.rst:666 msgid "" @@ -1292,15 +1544,22 @@ msgid "" "consecutive C values adds one item to the dictionary, serving as key and " "value, respectively." msgstr "" +"Converte uma sequência de valores C para um dicionário Python. Cada par de " +"valores consecutivos do C adiciona um item ao dicionário, servindo como " +"chave e valor, respectivamente." #: ../../c-api/arg.rst:670 msgid "" "If there is an error in the format string, the :exc:`SystemError` exception " "is set and ``NULL`` returned." msgstr "" +"Se existir um erro na string de formatação, a exceção :exc:`SystemError` é " +"definida e ``NULL`` é retornado." #: ../../c-api/arg.rst:675 msgid "" "Identical to :c:func:`Py_BuildValue`, except that it accepts a va_list " "rather than a variable number of arguments." msgstr "" +"Idêntico a :c:func:`Py_BuildValue`, exceto que aceita uma va_list ao invés " +"de um número variável de argumentos." diff --git a/c-api/bool.po b/c-api/bool.po index dffd84ef8..4d00c4af8 100644 --- a/c-api/bool.po +++ b/c-api/bool.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +35,8 @@ msgid "" msgstr "" "Booleano em Python é implementado como uma subclasse de inteiros. Existem " "apenas dois tipos de booleanos: const: `Py_False` e: const:` Py_True`. Como " -"tal, as funções normais de criação e exclusão não se aplicam a booleanos. No" -" entanto, as seguintes macros estão disponíveis." +"tal, as funções normais de criação e exclusão não se aplicam a booleanos. No " +"entanto, as seguintes macros estão disponíveis." #: ../../c-api/bool.rst:16 msgid "Return true if *o* is of type :c:data:`PyBool_Type`." @@ -67,16 +68,16 @@ msgstr "" #: ../../c-api/bool.rst:39 msgid "" -"Return :const:`Py_True` from a function, properly incrementing its reference" -" count." +"Return :const:`Py_True` from a function, properly incrementing its reference " +"count." msgstr "" "Retornar: const: `Py_True` de uma função, incrementando adequadamente sua " "contagem de referência." #: ../../c-api/bool.rst:45 msgid "" -"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on" -" the truth value of *v*." +"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on " +"the truth value of *v*." msgstr "" "Retorne uma nova referência para: const: `Py_True` ou: const:` Py_False` " "dependendo do valor de verdade de * v *." diff --git a/c-api/buffer.po b/c-api/buffer.po index 073ec2c5f..63e450958 100644 --- a/c-api/buffer.po +++ b/c-api/buffer.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Julio Gadioli Soares , 2019 # felipe caridade , 2019 -# +# Julia Rizza , 2019 +# Danielle Farias , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Danielle Farias , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,16 +34,16 @@ msgstr "Protocolo de Buffer" #: ../../c-api/buffer.rst:18 msgid "" "Certain objects available in Python wrap access to an underlying memory " -"array or *buffer*. Such objects include the built-in :class:`bytes` and " -":class:`bytearray`, and some extension types like :class:`array.array`. " -"Third-party libraries may define their own types for special purposes, such " -"as image processing or numeric analysis." +"array or *buffer*. Such objects include the built-in :class:`bytes` and :" +"class:`bytearray`, and some extension types like :class:`array.array`. Third-" +"party libraries may define their own types for special purposes, such as " +"image processing or numeric analysis." msgstr "" "Certos objetos disponíveis em Python envolvem o acesso a uma matriz de " "memória subjacente ou * buffer *. Esses objetos incluem o built-in: class: " "`bytes` e: class:` bytearray`, e alguns tipos de extensão como: class: " -"`array.array`. As bibliotecas de terceiros podem definir seus próprios tipos" -" para fins especiais, como processamento de imagem ou análise numérica." +"`array.array`. As bibliotecas de terceiros podem definir seus próprios tipos " +"para fins especiais, como processamento de imagem ou análise numérica." #: ../../c-api/buffer.rst:24 msgid "" @@ -49,15 +52,15 @@ msgid "" "then desirable, in some situations, to access that buffer directly and " "without intermediate copying." msgstr "" -"Embora cada um desses tipos tenha sua própria semântica, eles compartilham a" -" característica comum de serem suportados por um buffer de memória " -"possivelmente grande. É desejável, em algumas situações, acessar esse buffer" -" diretamente e sem cópia intermediária." +"Embora cada um desses tipos tenha sua própria semântica, eles compartilham a " +"característica comum de serem suportados por um buffer de memória " +"possivelmente grande. É desejável, em algumas situações, acessar esse buffer " +"diretamente e sem cópia intermediária." #: ../../c-api/buffer.rst:29 msgid "" -"Python provides such a facility at the C level in the form of the " -":ref:`buffer protocol `. This protocol has two sides:" +"Python provides such a facility at the C level in the form of the :ref:" +"`buffer protocol `. This protocol has two sides:" msgstr "" "Python fornece essa facilidade no nível C sob a forma de: ref: `buffer " "protocol 1 '. Este protocolo tem dois lados:" @@ -74,12 +77,11 @@ msgstr "" #: ../../c-api/buffer.rst:38 msgid "" -"on the consumer side, several means are available to obtain a pointer to the" -" raw underlying data of an object (for example a method parameter)." +"on the consumer side, several means are available to obtain a pointer to the " +"raw underlying data of an object (for example a method parameter)." msgstr "" "do lado do consumidor, vários meios estão disponíveis para obter o ponteiro " -"para os dados subjacentes de um objeto (por exemplo, um parâmetro de " -"método)." +"para os dados subjacentes de um objeto (por exemplo, um parâmetro de método)." #: ../../c-api/buffer.rst:41 msgid "" @@ -95,24 +97,24 @@ msgstr "" #: ../../c-api/buffer.rst:45 msgid "" -"An example consumer of the buffer interface is the " -":meth:`~io.BufferedIOBase.write` method of file objects: any object that can" -" export a series of bytes through the buffer interface can be written to a " -"file. While :meth:`write` only needs read-only access to the internal " -"contents of the object passed to it, other methods such as " -":meth:`~io.BufferedIOBase.readinto` need write access to the contents of " -"their argument. The buffer interface allows objects to selectively allow or" -" reject exporting of read-write and read-only buffers." -msgstr "" -"Um exemplo de consumidor da interface de buffer é o método: " -"meth:`~io.BufferedIOBase.write` de objetos de arquivo: qualquer objeto que " -"pode exportar uma série de bytes através da interface de buffer pode ser " -"gravado em um arquivo. Enquanto: :meth:`write` só precisa de acesso somente " -"leitura aos conteúdos internos do objeto passado, outros métodos, tais como " -":meth:`~io.BufferedIOBase.readinto` precisam de acesso de gravação ao " -"conteúdo de seu argumento. A interface de buffer permite aos objetos " -"permitir ou rejeitar seletivamente a exportação de buffers de leitura-" -"gravação e somente leitura." +"An example consumer of the buffer interface is the :meth:`~io.BufferedIOBase." +"write` method of file objects: any object that can export a series of bytes " +"through the buffer interface can be written to a file. While :meth:`write` " +"only needs read-only access to the internal contents of the object passed to " +"it, other methods such as :meth:`~io.BufferedIOBase.readinto` need write " +"access to the contents of their argument. The buffer interface allows " +"objects to selectively allow or reject exporting of read-write and read-only " +"buffers." +msgstr "" +"Um exemplo de consumidor da interface de buffer é o método: meth:`~io." +"BufferedIOBase.write` de objetos de arquivo: qualquer objeto que pode " +"exportar uma série de bytes através da interface de buffer pode ser gravado " +"em um arquivo. Enquanto: :meth:`write` só precisa de acesso somente leitura " +"aos conteúdos internos do objeto passado, outros métodos, tais como :meth:" +"`~io.BufferedIOBase.readinto` precisam de acesso de gravação ao conteúdo de " +"seu argumento. A interface de buffer permite aos objetos permitir ou " +"rejeitar seletivamente a exportação de buffers de leitura-gravação e somente " +"leitura." #: ../../c-api/buffer.rst:53 msgid "" @@ -137,8 +139,8 @@ msgstr "" #: ../../c-api/buffer.rst:61 msgid "" "In both cases, :c:func:`PyBuffer_Release` must be called when the buffer " -"isn't needed anymore. Failure to do so could lead to various issues such as" -" resource leaks." +"isn't needed anymore. Failure to do so could lead to various issues such as " +"resource leaks." msgstr "" "Em ambos os casos, :c:func:`PyBuffer_Release` deve ser chamado quando o " "buffer não é mais necessário. A falta de tal pode levar a várias questões, " @@ -154,57 +156,56 @@ msgid "" "binary data from another object to the Python programmer. They can also be " "used as a zero-copy slicing mechanism. Using their ability to reference a " "block of memory, it is possible to expose any data to the Python programmer " -"quite easily. The memory could be a large, constant array in a C extension," -" it could be a raw block of memory for manipulation before passing to an " -"operating system library, or it could be used to pass around structured data" -" in its native, in-memory format." +"quite easily. The memory could be a large, constant array in a C extension, " +"it could be a raw block of memory for manipulation before passing to an " +"operating system library, or it could be used to pass around structured data " +"in its native, in-memory format." msgstr "" "As estruturas de buffer (ou simplesmente \"buffers\") são úteis como uma " "maneira de expor os dados binários de outro objeto para o programador " -"Python. Eles também podem ser usados como um mecanismo de cópia silenciosa." -" Usando sua capacidade de fazer referência a um bloco de memória, é possível" -" expor facilmente qualquer dado ao programador Python. A memória pode ser " -"uma matriz grande e constante em uma extensão C, pode ser um bloco bruto de " +"Python. Eles também podem ser usados como um mecanismo de cópia silenciosa. " +"Usando sua capacidade de fazer referência a um bloco de memória, é possível " +"expor facilmente qualquer dado ao programador Python. A memória pode ser uma " +"matriz grande e constante em uma extensão C, pode ser um bloco bruto de " "memória para manipulação antes de passar para uma biblioteca do sistema " -"operacional, ou pode ser usado para transmitir dados estruturados no formato" -" nativo e formato de memória ." +"operacional, ou pode ser usado para transmitir dados estruturados no formato " +"nativo e formato de memória ." #: ../../c-api/buffer.rst:80 msgid "" "Contrary to most data types exposed by the Python interpreter, buffers are " -"not :c:type:`PyObject` pointers but rather simple C structures. This allows" -" them to be created and copied very simply. When a generic wrapper around a" -" buffer is needed, a :ref:`memoryview ` object can be " +"not :c:type:`PyObject` pointers but rather simple C structures. This allows " +"them to be created and copied very simply. When a generic wrapper around a " +"buffer is needed, a :ref:`memoryview ` object can be " "created." msgstr "" "Ao contrário da maioria dos tipos de dados expostos pelo intérprete Python, " "os buffers não são ponteiros :c:type:`PyObject` mas sim estruturas C " "simples. Isso permite que eles sejam criados e copiados de forma muito " -"simples. Quando um invólucro genérico em torno de um buffer é necessário, um" -" objeto :ref:`memoryview 1` pode ser criado." +"simples. Quando um invólucro genérico em torno de um buffer é necessário, um " +"objeto :ref:`memoryview 1` pode ser criado." #: ../../c-api/buffer.rst:86 msgid "" "For short instructions how to write an exporting object, see :ref:`Buffer " -"Object Structures `. For obtaining a buffer, see " -":c:func:`PyObject_GetBuffer`." +"Object Structures `. For obtaining a buffer, see :c:func:" +"`PyObject_GetBuffer`." msgstr "" "Para obter instruções curtas sobre como escrever um objeto exportador, " -"consulte :ref:`Buffer Object Structures 1`. Para obter um buffer, veja " -":c:func:`PyObject_GetBuffer`." +"consulte :ref:`Buffer Object Structures 1`. Para obter um buffer, veja :c:" +"func:`PyObject_GetBuffer`." #: ../../c-api/buffer.rst:94 msgid "" "A pointer to the start of the logical structure described by the buffer " -"fields. This can be any location within the underlying physical memory block" -" of the exporter. For example, with negative :c:member:`~Py_buffer.strides` " +"fields. This can be any location within the underlying physical memory block " +"of the exporter. For example, with negative :c:member:`~Py_buffer.strides` " "the value may point to the end of the memory block." msgstr "" "Um ponteiro para o início da estrutura lógica descrita pelos campos do " "buffer. Este pode ser qualquer local dentro do bloco de memória física " -"subjacente do exportador. Por exemplo, com negativo " -":c:member:`~Py_buffer.strides` o valor pode apontar para o final do bloco de" -" memória." +"subjacente do exportador. Por exemplo, com negativo :c:member:`~Py_buffer." +"strides` o valor pode apontar para o final do bloco de memória." #: ../../c-api/buffer.rst:99 msgid "" @@ -217,17 +218,24 @@ msgstr "" #: ../../c-api/buffer.rst:104 msgid "" "A new reference to the exporting object. The reference is owned by the " -"consumer and automatically decremented and set to ``NULL`` by " -":c:func:`PyBuffer_Release`. The field is the equivalent of the return value " -"of any standard C-API function." +"consumer and automatically decremented and set to ``NULL`` by :c:func:" +"`PyBuffer_Release`. The field is the equivalent of the return value of any " +"standard C-API function." msgstr "" +"Uma nova referência ao objeto exportador. A referência é possuída pelo " +"consumidor e automaticamente decrementada e definida para ``NULL`` por :c:" +"func:`PyBuffer_Release`. O campo é o equivalente ao valor de retorno de " +"qualquer função padrão C-API." #: ../../c-api/buffer.rst:109 msgid "" -"As a special case, for *temporary* buffers that are wrapped by " -":c:func:`PyMemoryView_FromBuffer` or :c:func:`PyBuffer_FillInfo` this field " -"is ``NULL``. In general, exporting objects MUST NOT use this scheme." +"As a special case, for *temporary* buffers that are wrapped by :c:func:" +"`PyMemoryView_FromBuffer` or :c:func:`PyBuffer_FillInfo` this field is " +"``NULL``. In general, exporting objects MUST NOT use this scheme." msgstr "" +"Como um caso especial, para buffers *temporários* que são encapsulados por :" +"c:func:`PyMemoryView_FromBuffer` ou :c:func:`PyBuffer_FillInfo` esse campo é " +"``NULL``. Em geral, objetos exportadores NÃO DEVEM usar esse esquema." #: ../../c-api/buffer.rst:116 msgid "" @@ -236,63 +244,71 @@ msgid "" "that the logical structure would have if it were copied to a contiguous " "representation." msgstr "" -"``product(shape) * itemsize``. Para matrizes contíguas, este é o comprimento" -" do bloco de memória subjacente. Para matrizes não contíguas, é o " -"comprimento que a estrutura lógica teria se fosse copiado para uma " -"representação contígua." +"``product(shape) * itemsize``. Para matrizes contíguas, este é o comprimento " +"do bloco de memória subjacente. Para matrizes não contíguas, é o comprimento " +"que a estrutura lógica teria se fosse copiado para uma representação " +"contígua." #: ../../c-api/buffer.rst:121 msgid "" "Accessing ``((char *)buf)[0] up to ((char *)buf)[len-1]`` is only valid if " "the buffer has been obtained by a request that guarantees contiguity. In " -"most cases such a request will be :c:macro:`PyBUF_SIMPLE` or " -":c:macro:`PyBUF_WRITABLE`." +"most cases such a request will be :c:macro:`PyBUF_SIMPLE` or :c:macro:" +"`PyBUF_WRITABLE`." msgstr "" "Acessando ``((char *)buf)[0] up to ((char *)buf)[len-1]`` só é válido se o " "buffer tiver sido obtido por uma solicitação que garanta a contiguidade. Na " -"maioria dos casos, esse pedido será :c:macro:`PyBUF_SIMPLE` ou " -":c:macro:`PyBUF_WRITABLE`." +"maioria dos casos, esse pedido será :c:macro:`PyBUF_SIMPLE` ou :c:macro:" +"`PyBUF_WRITABLE`." #: ../../c-api/buffer.rst:127 msgid "" -"An indicator of whether the buffer is read-only. This field is controlled by" -" the :c:macro:`PyBUF_WRITABLE` flag." +"An indicator of whether the buffer is read-only. This field is controlled by " +"the :c:macro:`PyBUF_WRITABLE` flag." msgstr "" "Um indicador de se o buffer é somente leitura. Este campo é controlado pelo " "sinalizador :c:macro:`PyBUF_WRITABLE`." #: ../../c-api/buffer.rst:132 msgid "" -"Item size in bytes of a single element. Same as the value of " -":func:`struct.calcsize` called on non-``NULL`` :c:member:`~Py_buffer.format`" -" values." +"Item size in bytes of a single element. Same as the value of :func:`struct." +"calcsize` called on non-``NULL`` :c:member:`~Py_buffer.format` values." msgstr "" +"O tamanho do item em bytes de um único elemento. O mesmo que o valor de :" +"func:`struct.calcsize` chamado em valores não ``NULL`` de :c:member:" +"`~Py_buffer.format`." #: ../../c-api/buffer.rst:135 msgid "" -"Important exception: If a consumer requests a buffer without the " -":c:macro:`PyBUF_FORMAT` flag, :c:member:`~Py_buffer.format` will be set to " +"Important exception: If a consumer requests a buffer without the :c:macro:" +"`PyBUF_FORMAT` flag, :c:member:`~Py_buffer.format` will be set to " "``NULL``, but :c:member:`~Py_buffer.itemsize` still has the value for the " "original format." msgstr "" +"Exceção importante: Se um consumidor requisita um buffer sem flag :c:macro:" +"`PyBUF_FORMAT`, :c:member:`~Py_buffer.format` será definido como ``NULL``, " +"mas :c:member:`~Py_buffer.itemsize` ainda terá seu valor para o formato " +"original." #: ../../c-api/buffer.rst:140 msgid "" "If :c:member:`~Py_buffer.shape` is present, the equality ``product(shape) * " -"itemsize == len`` still holds and the consumer can use " -":c:member:`~Py_buffer.itemsize` to navigate the buffer." +"itemsize == len`` still holds and the consumer can use :c:member:`~Py_buffer." +"itemsize` to navigate the buffer." msgstr "" -"Se :c:member:`~Py_buffer.shape` está presente, a igualdade ``product(shape)" -" * itemsize == len`` ainda é válida e o usuário pode usar " -":c:member:`~Py_buffer.itemsize` para navegar o buffer." +"Se :c:member:`~Py_buffer.shape` está presente, a igualdade ``product(shape) " +"* itemsize == len`` ainda é válida e o usuário pode usar :c:member:" +"`~Py_buffer.itemsize` para navegar o buffer." #: ../../c-api/buffer.rst:144 msgid "" -"If :c:member:`~Py_buffer.shape` is ``NULL`` as a result of a " -":c:macro:`PyBUF_SIMPLE` or a :c:macro:`PyBUF_WRITABLE` request, the consumer" -" must disregard :c:member:`~Py_buffer.itemsize` and assume ``itemsize == " -"1``." +"If :c:member:`~Py_buffer.shape` is ``NULL`` as a result of a :c:macro:" +"`PyBUF_SIMPLE` or a :c:macro:`PyBUF_WRITABLE` request, the consumer must " +"disregard :c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``." msgstr "" +"Se:c:member:`~Py_buffer.shape` é *NULL* como resultado de uma :c:macro:" +"`PyBUF_SIMPLE` ou uma requisição :c:macro:`PyBUF_WRITABLE`, o consumidor " +"deve ignorar :c:member:`~Py_buffer.itemsize` e assumir ``itemsize == 1``." #: ../../c-api/buffer.rst:150 msgid "" @@ -300,6 +316,9 @@ msgid "" "the contents of a single item. If this is ``NULL``, ``\"B\"`` (unsigned " "bytes) is assumed." msgstr "" +"Uma string terminada por *NUL* no estilo de sintaxe de módulo :mod:`struct` " +"descrevendo os conteúdos de um único item. Se isso é ``NULL``, ``\"B\"`` " +"(unsigned bytes) é assumido." #: ../../c-api/buffer.rst:154 msgid "This field is controlled by the :c:macro:`PyBUF_FORMAT` flag." @@ -307,12 +326,16 @@ msgstr "Este campo é controlado pelo sinalizador :c:macro:`PyBUF_FORMAT`." #: ../../c-api/buffer.rst:158 msgid "" -"The number of dimensions the memory represents as an n-dimensional array. If" -" it is ``0``, :c:member:`~Py_buffer.buf` points to a single item " -"representing a scalar. In this case, :c:member:`~Py_buffer.shape`, " -":c:member:`~Py_buffer.strides` and :c:member:`~Py_buffer.suboffsets` MUST be" -" ``NULL``." +"The number of dimensions the memory represents as an n-dimensional array. If " +"it is ``0``, :c:member:`~Py_buffer.buf` points to a single item representing " +"a scalar. In this case, :c:member:`~Py_buffer.shape`, :c:member:`~Py_buffer." +"strides` and :c:member:`~Py_buffer.suboffsets` MUST be ``NULL``." msgstr "" +"O número de dimensões que a memória representa como um vetor n-dimensional. " +"Se é ``0``, :c:member:`~Py_buffer.buf` aponta para um único item " +"representando um escalar. Neste caso, :c:member:`~Py_buffer.shape`, :c:" +"member:`~Py_buffer.strides` e :c:member:`~Py_buffer.suboffsets` DEVEM ser " +"``NULL``." #: ../../c-api/buffer.rst:163 msgid "" @@ -322,25 +345,25 @@ msgid "" msgstr "" "A macro :c:macro:`PyBUF_MAX_NDIM` limita o número máximo de dimensões a 64. " "Os exportadores DEVEM respeitar esse limite, os consumidores de buffers " -"multidimensionais DEVEM ser capazes de lidar com dimensões " -":c:macro:`PyBUF_MAX_NDIM`." +"multidimensionais DEVEM ser capazes de lidar com dimensões :c:macro:" +"`PyBUF_MAX_NDIM`." #: ../../c-api/buffer.rst:169 msgid "" "An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim` " "indicating the shape of the memory as an n-dimensional array. Note that " -"``shape[0] * ... * shape[ndim-1] * itemsize`` MUST be equal to " -":c:member:`~Py_buffer.len`." +"``shape[0] * ... * shape[ndim-1] * itemsize`` MUST be equal to :c:member:" +"`~Py_buffer.len`." msgstr "" -"Uma matriz de :c:type:`Py_ssize_t` do comprimento " -":c:member:`~Py_buffer.ndim` indicando a forma da memória como uma matriz " -"n-dimensional. Observe que a forma ``shape[0] * ... * shape[ndim-1] * " -"itemsize`` DEVE ser igual a :c:member:`~Py_buffer.len`." +"Uma matriz de :c:type:`Py_ssize_t` do comprimento :c:member:`~Py_buffer." +"ndim` indicando a forma da memória como uma matriz n-dimensional. Observe " +"que a forma ``shape[0] * ... * shape[ndim-1] * itemsize`` DEVE ser igual a :" +"c:member:`~Py_buffer.len`." #: ../../c-api/buffer.rst:174 msgid "" -"Shape values are restricted to ``shape[n] >= 0``. The case ``shape[n] == 0``" -" requires special attention. See `complex arrays`_ for further information." +"Shape values are restricted to ``shape[n] >= 0``. The case ``shape[n] == 0`` " +"requires special attention. See `complex arrays`_ for further information." msgstr "" "Os valores da forma são restritos a ``shape[n] >= 0``. The case ``shape[n] " "== 0`` requer atenção especial. Veja `arrays complexos` para mais " @@ -353,11 +376,10 @@ msgstr "A forma de acesso a matriz é de somente leitura para o usuário." #: ../../c-api/buffer.rst:182 msgid "" "An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim` " -"giving the number of bytes to skip to get to a new element in each " -"dimension." +"giving the number of bytes to skip to get to a new element in each dimension." msgstr "" -"Uma matriz de :c:type:`Py_ssize_t` de comprimento:c:member:`~Py_buffer.ndim`" -" dando o número de bytes para saltar para obter um novo elemento em cada " +"Uma matriz de :c:type:`Py_ssize_t` de comprimento:c:member:`~Py_buffer.ndim` " +"dando o número de bytes para saltar para obter um novo elemento em cada " "dimensão." #: ../../c-api/buffer.rst:186 @@ -383,18 +405,20 @@ msgid "" "pointer after de-referencing. A suboffset value that is negative indicates " "that no de-referencing should occur (striding in a contiguous memory block)." msgstr "" -"Uma matriz de :c:type:`Py_ssize_t` de comprimento " -":c:member:`~Py_buffer.ndim`. If ``suboffsets[n] >= 0``, os valores " -"armazenados ao longo da n-ésima dimensão são ponteiros e o valor suboffset " -"determina quantos bytes para adicionar a cada ponteiro após desreferenciar. " -"Um valor de subconjunto que é negativo indica que não deve ocorrer " -"desratização (caminhar em um bloco de memória contíguo)." +"Uma matriz de :c:type:`Py_ssize_t` de comprimento :c:member:`~Py_buffer." +"ndim`. If ``suboffsets[n] >= 0``, os valores armazenados ao longo da n-ésima " +"dimensão são ponteiros e o valor suboffset determina quantos bytes para " +"adicionar a cada ponteiro após desreferenciar. Um valor de subconjunto que é " +"negativo indica que não deve ocorrer desratização (caminhar em um bloco de " +"memória contíguo)." #: ../../c-api/buffer.rst:201 msgid "" -"If all suboffsets are negative (i.e. no de-referencing is needed), then this" -" field must be ``NULL`` (the default value)." +"If all suboffsets are negative (i.e. no de-referencing is needed), then this " +"field must be ``NULL`` (the default value)." msgstr "" +"Se todos os subconjuntos forem negativos (ou seja, não é necessário fazer " +"referência), então este campo deve ser ``NULL`` (o valor padrão)." #: ../../c-api/buffer.rst:204 msgid "" @@ -403,8 +427,8 @@ msgid "" "of such an array." msgstr "" "Esse tipo de representação de matriz é usado pela Python Imaging Library " -"(PIL). Veja `complex arrays`_ para obter mais informações sobre como acessar" -" elementos dessa matriz.a matriz." +"(PIL). Veja `complex arrays`_ para obter mais informações sobre como acessar " +"elementos dessa matriz.a matriz." #: ../../c-api/buffer.rst:208 msgid "The suboffsets array is read-only for the consumer." @@ -420,8 +444,8 @@ msgstr "" "Isso é para uso interno pelo objeto exportador. Por exemplo, isso pode ser " "re-moldado como um número inteiro pelo exportador e usado para armazenar " "bandeiras sobre se os conjuntos de forma, passos e suboffsets devem ou não " -"ser liberados quando o buffer é liberado. O consumidor NÃO DEVE alterar esse" -" valor." +"ser liberados quando o buffer é liberado. O consumidor NÃO DEVE alterar esse " +"valor." #: ../../c-api/buffer.rst:221 msgid "Buffer request types" @@ -430,20 +454,19 @@ msgstr "Tipos de solicitação do buffer" #: ../../c-api/buffer.rst:223 msgid "" "Buffers are usually obtained by sending a buffer request to an exporting " -"object via :c:func:`PyObject_GetBuffer`. Since the complexity of the logical" -" structure of the memory can vary drastically, the consumer uses the *flags*" -" argument to specify the exact buffer type it can handle." +"object via :c:func:`PyObject_GetBuffer`. Since the complexity of the logical " +"structure of the memory can vary drastically, the consumer uses the *flags* " +"argument to specify the exact buffer type it can handle." msgstr "" -"Os buffers geralmente são obtidos enviando uma solicitação de buffer para um" -" objeto exportador via :c:func:`PyObject_GetBuffer`. Uma vez que a " +"Os buffers geralmente são obtidos enviando uma solicitação de buffer para um " +"objeto exportador via :c:func:`PyObject_GetBuffer`. Uma vez que a " "complexidade da estrutura lógica da memória pode variar drasticamente, o " "consumidor usa o argumento *flags* para especificar o tipo de buffer exato " "que pode manipular." #: ../../c-api/buffer.rst:228 msgid "" -"All :c:data:`Py_buffer` fields are unambiguously defined by the request " -"type." +"All :c:data:`Py_buffer` fields are unambiguously defined by the request type." msgstr "" "Todos :c:data:`Py_buffer` são inequivocamente definidos pelo tipo de " "solicitação." @@ -454,15 +477,15 @@ msgstr "campos independentes do pedido" #: ../../c-api/buffer.rst:233 msgid "" -"The following fields are not influenced by *flags* and must always be filled" -" in with the correct values: :c:member:`~Py_buffer.obj`, " -":c:member:`~Py_buffer.buf`, :c:member:`~Py_buffer.len`, " -":c:member:`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`." +"The following fields are not influenced by *flags* and must always be filled " +"in with the correct values: :c:member:`~Py_buffer.obj`, :c:member:" +"`~Py_buffer.buf`, :c:member:`~Py_buffer.len`, :c:member:`~Py_buffer." +"itemsize`, :c:member:`~Py_buffer.ndim`." msgstr "" "Os seguintes campos não são influenciados por *flags* e devem sempre ser " -"preenchidos com os valores corretos: :c:member:`~Py_buffer.obj`, " -":c:member:`~Py_buffer.buf`, :c:member:`~Py_buffer.len`, " -":c:member:`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`." +"preenchidos com os valores corretos: :c:member:`~Py_buffer.obj`, :c:member:" +"`~Py_buffer.buf`, :c:member:`~Py_buffer.len`, :c:member:`~Py_buffer." +"itemsize`, :c:member:`~Py_buffer.ndim`." #: ../../c-api/buffer.rst:239 msgid "readonly, format" @@ -482,27 +505,29 @@ msgstr "" #: ../../c-api/buffer.rst:250 msgid "" -"Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST be" -" filled in correctly. Otherwise, this field MUST be ``NULL``." +"Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST be " +"filled in correctly. Otherwise, this field MUST be ``NULL``." msgstr "" +"Controla o campo :c:member:`~Py_buffer.format`. Se configurado, este campo " +"DEVE ser preenchido corretamente. Caso contrário, este campo DEVE ser " +"``NULL``." #: ../../c-api/buffer.rst:254 msgid "" ":c:macro:`PyBUF_WRITABLE` can be \\|'d to any of the flags in the next " -"section. Since :c:macro:`PyBUF_SIMPLE` is defined as 0, " -":c:macro:`PyBUF_WRITABLE` can be used as a stand-alone flag to request a " -"simple writable buffer." +"section. Since :c:macro:`PyBUF_SIMPLE` is defined as 0, :c:macro:" +"`PyBUF_WRITABLE` can be used as a stand-alone flag to request a simple " +"writable buffer." msgstr "" -"::c:macro:`PyBUF_WRITABLE` pode ser \\|'d para qualquer um dos sinalizadores" -" na próxima seção. Uma vez que :c:macro:`PyBUF_WRITABLE` é definido como 0, " -":c:macro:`PyBUF_WRITABLE` pode ser usado como uma bandeira autônoma para " +"::c:macro:`PyBUF_WRITABLE` pode ser \\|'d para qualquer um dos sinalizadores " +"na próxima seção. Uma vez que :c:macro:`PyBUF_WRITABLE` é definido como 0, :" +"c:macro:`PyBUF_WRITABLE` pode ser usado como uma bandeira autônoma para " "solicitar um buffer simples gravável." #: ../../c-api/buffer.rst:258 msgid "" -":c:macro:`PyBUF_FORMAT` can be \\|'d to any of the flags except " -":c:macro:`PyBUF_SIMPLE`. The latter already implies format ``B`` (unsigned " -"bytes)." +":c:macro:`PyBUF_FORMAT` can be \\|'d to any of the flags except :c:macro:" +"`PyBUF_SIMPLE`. The latter already implies format ``B`` (unsigned bytes)." msgstr "" ":c:macro:`PyBUF_FORMAT` pode ser \\|'d para qualquer um dos sinalizadores, " "exceto :c:macro:`PyBUF_SIMPLE`. O último já implica o formato ``B`` (bytes " @@ -515,12 +540,12 @@ msgstr "forma, avanços, suboffsets" #: ../../c-api/buffer.rst:265 msgid "" "The flags that control the logical structure of the memory are listed in " -"decreasing order of complexity. Note that each flag contains all bits of the" -" flags below it." +"decreasing order of complexity. Note that each flag contains all bits of the " +"flags below it." msgstr "" "As bandeiras que controlam a estrutura lógica da memória estão listadas em " -"ordem decrescente de complexidade. Observe que cada bandeira contém todos os" -" bits das bandeiras abaixo." +"ordem decrescente de complexidade. Observe que cada bandeira contém todos os " +"bits das bandeiras abaixo." #: ../../c-api/buffer.rst:272 ../../c-api/buffer.rst:296 #: ../../c-api/buffer.rst:321 @@ -542,47 +567,35 @@ msgstr "Avanços" msgid "suboffsets" msgstr "" -#: ../../c-api/buffer.rst:274 ../../c-api/buffer.rst:274 -#: ../../c-api/buffer.rst:276 ../../c-api/buffer.rst:276 +#: ../../c-api/buffer.rst:274 ../../c-api/buffer.rst:276 #: ../../c-api/buffer.rst:278 ../../c-api/buffer.rst:298 -#: ../../c-api/buffer.rst:298 ../../c-api/buffer.rst:300 #: ../../c-api/buffer.rst:300 ../../c-api/buffer.rst:302 -#: ../../c-api/buffer.rst:302 ../../c-api/buffer.rst:304 -#: ../../c-api/buffer.rst:323 ../../c-api/buffer.rst:323 -#: ../../c-api/buffer.rst:323 ../../c-api/buffer.rst:325 -#: ../../c-api/buffer.rst:325 ../../c-api/buffer.rst:325 -#: ../../c-api/buffer.rst:327 ../../c-api/buffer.rst:327 -#: ../../c-api/buffer.rst:327 ../../c-api/buffer.rst:329 -#: ../../c-api/buffer.rst:329 ../../c-api/buffer.rst:329 -#: ../../c-api/buffer.rst:331 ../../c-api/buffer.rst:331 -#: ../../c-api/buffer.rst:333 ../../c-api/buffer.rst:333 -#: ../../c-api/buffer.rst:335 ../../c-api/buffer.rst:337 +#: ../../c-api/buffer.rst:304 ../../c-api/buffer.rst:323 +#: ../../c-api/buffer.rst:325 ../../c-api/buffer.rst:327 +#: ../../c-api/buffer.rst:329 ../../c-api/buffer.rst:331 +#: ../../c-api/buffer.rst:333 ../../c-api/buffer.rst:335 +#: ../../c-api/buffer.rst:337 msgid "yes" msgstr "sim" #: ../../c-api/buffer.rst:274 ../../c-api/buffer.rst:323 #: ../../c-api/buffer.rst:325 msgid "if needed" -msgstr "" +msgstr "se necessário" #: ../../c-api/buffer.rst:276 ../../c-api/buffer.rst:278 -#: ../../c-api/buffer.rst:278 ../../c-api/buffer.rst:280 -#: ../../c-api/buffer.rst:280 ../../c-api/buffer.rst:280 -#: ../../c-api/buffer.rst:298 ../../c-api/buffer.rst:300 -#: ../../c-api/buffer.rst:302 ../../c-api/buffer.rst:304 +#: ../../c-api/buffer.rst:280 ../../c-api/buffer.rst:298 +#: ../../c-api/buffer.rst:300 ../../c-api/buffer.rst:302 #: ../../c-api/buffer.rst:304 ../../c-api/buffer.rst:327 #: ../../c-api/buffer.rst:329 ../../c-api/buffer.rst:331 -#: ../../c-api/buffer.rst:331 ../../c-api/buffer.rst:333 #: ../../c-api/buffer.rst:333 ../../c-api/buffer.rst:335 -#: ../../c-api/buffer.rst:335 ../../c-api/buffer.rst:335 -#: ../../c-api/buffer.rst:337 ../../c-api/buffer.rst:337 #: ../../c-api/buffer.rst:337 msgid "NULL" -msgstr "" +msgstr "NULL" #: ../../c-api/buffer.rst:287 msgid "contiguity requests" -msgstr "" +msgstr "requisições contíguas" #: ../../c-api/buffer.rst:289 msgid "" @@ -590,6 +603,9 @@ msgid "" "with and without stride information. Without stride information, the buffer " "must be C-contiguous." msgstr "" +":term:`contiguity ` do C ou Fortran podem ser explicitamente " +"solicitadas, com ou sem informação de avanço. Sem informação de avanço, o " +"buffer deve ser C-contíguo." #: ../../c-api/buffer.rst:296 ../../c-api/buffer.rst:321 msgid "contig" @@ -598,19 +614,19 @@ msgstr "" #: ../../c-api/buffer.rst:298 ../../c-api/buffer.rst:304 #: ../../c-api/buffer.rst:335 ../../c-api/buffer.rst:337 msgid "C" -msgstr "" +msgstr "C" #: ../../c-api/buffer.rst:300 msgid "F" -msgstr "" +msgstr "F" #: ../../c-api/buffer.rst:302 msgid "C or F" -msgstr "" +msgstr "C ou F" #: ../../c-api/buffer.rst:309 msgid "compound requests" -msgstr "" +msgstr "requisições compostas" #: ../../c-api/buffer.rst:311 msgid "" @@ -618,12 +634,18 @@ msgid "" "the previous section. For convenience, the buffer protocol provides " "frequently used combinations as single flags." msgstr "" +"Todas as requisições possíveis foram completamente definidas por alguma " +"combinação dos sinalizadores na seção anterior. Por conveniência, o " +"protocolo do buffer fornece combinações frequentemente utilizadas como " +"sinalizadores únicos." #: ../../c-api/buffer.rst:315 msgid "" "In the following table *U* stands for undefined contiguity. The consumer " "would have to call :c:func:`PyBuffer_IsContiguous` to determine contiguity." msgstr "" +"Na seguinte tabela *U* siginifica contíguidade indefinida. O consumidor deve " +"chamar :c:func:`PyBuffer_IsContiguous` para determinar a contíguidade." #: ../../c-api/buffer.rst:321 msgid "readonly" @@ -655,46 +677,58 @@ msgstr "Arrays Complexos" #: ../../c-api/buffer.rst:345 msgid "NumPy-style: shape and strides" -msgstr "" +msgstr "NumPy-style: forma e avanços" #: ../../c-api/buffer.rst:347 msgid "" -"The logical structure of NumPy-style arrays is defined by " -":c:member:`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`, " -":c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides`." +"The logical structure of NumPy-style arrays is defined by :c:member:" +"`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`, :c:member:`~Py_buffer." +"shape` and :c:member:`~Py_buffer.strides`." msgstr "" +"A estrutura lógica de vetores do estilo NumPy é definida por :c:member:" +"`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`, :c:member:`~Py_buffer." +"shape` e :c:member:`~Py_buffer.strides`." #: ../../c-api/buffer.rst:350 msgid "" -"If ``ndim == 0``, the memory location pointed to by " -":c:member:`~Py_buffer.buf` is interpreted as a scalar of size " -":c:member:`~Py_buffer.itemsize`. In that case, both " -":c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are " -"``NULL``." +"If ``ndim == 0``, the memory location pointed to by :c:member:`~Py_buffer." +"buf` is interpreted as a scalar of size :c:member:`~Py_buffer.itemsize`. In " +"that case, both :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer." +"strides` are ``NULL``." msgstr "" +"Se ``ndim == 0``, a localização da memória apontada para :c:member:" +"`~Py_buffer.buf` é interpretada como um escalar de tamanho :c:member:" +"`~Py_buffer.itemsize`. Nesse caso, ambos :c:member:`~Py_buffer.shape` e :c:" +"member:`~Py_buffer.strides` são ``NULL``." #: ../../c-api/buffer.rst:354 msgid "" -"If :c:member:`~Py_buffer.strides` is ``NULL``, the array is interpreted as a" -" standard n-dimensional C-array. Otherwise, the consumer must access an " -"n-dimensional array as follows:" +"If :c:member:`~Py_buffer.strides` is ``NULL``, the array is interpreted as a " +"standard n-dimensional C-array. Otherwise, the consumer must access an n-" +"dimensional array as follows:" msgstr "" +"Se :c:member:`~Py_buffer.strides` é ``NULL``, o vetor é interpretado como um " +"vetor C n-dimensional padrão. Caso contrário, o consumidor deve acessar um " +"vetor n-dimensional como a seguir:" #: ../../c-api/buffer.rst:364 msgid "" "As noted above, :c:member:`~Py_buffer.buf` can point to any location within " -"the actual memory block. An exporter can check the validity of a buffer with" -" this function:" +"the actual memory block. An exporter can check the validity of a buffer with " +"this function:" msgstr "" +"Como notado acima, :c:member:`~Py_buffer.buf` pode apontar para qualquer " +"localização dentro do bloco de memória em si. Um exportador pode verificar a " +"validade de um buffer com essa função:" #: ../../c-api/buffer.rst:398 msgid "PIL-style: shape, strides and suboffsets" -msgstr "" +msgstr "Estilo-PIL: forma, avanços e suboffsets" #: ../../c-api/buffer.rst:400 msgid "" -"In addition to the regular items, PIL-style arrays can contain pointers that" -" must be followed in order to get to the next element in a dimension. For " +"In addition to the regular items, PIL-style arrays can contain pointers that " +"must be followed in order to get to the next element in a dimension. For " "example, the regular three-dimensional C-array ``char v[2][2][3]`` can also " "be viewed as an array of 2 pointers to 2 two-dimensional arrays: ``char " "(*v[2])[2][3]``. In suboffsets representation, those two pointers can be " @@ -723,9 +757,9 @@ msgstr "" #: ../../c-api/buffer.rst:439 msgid "" "Send a request to *exporter* to fill in *view* as specified by *flags*. If " -"the exporter cannot provide a buffer of the exact type, it MUST raise " -":c:data:`PyExc_BufferError`, set :c:member:`view->obj` to ``NULL`` and " -"return ``-1``." +"the exporter cannot provide a buffer of the exact type, it MUST raise :c:" +"data:`PyExc_BufferError`, set :c:member:`view->obj` to ``NULL`` and return " +"``-1``." msgstr "" #: ../../c-api/buffer.rst:444 @@ -740,28 +774,28 @@ msgstr "" #: ../../c-api/buffer.rst:449 msgid "" "Successful calls to :c:func:`PyObject_GetBuffer` must be paired with calls " -"to :c:func:`PyBuffer_Release`, similar to :c:func:`malloc` and " -":c:func:`free`. Thus, after the consumer is done with the buffer, " -":c:func:`PyBuffer_Release` must be called exactly once." +"to :c:func:`PyBuffer_Release`, similar to :c:func:`malloc` and :c:func:" +"`free`. Thus, after the consumer is done with the buffer, :c:func:" +"`PyBuffer_Release` must be called exactly once." msgstr "" #: ../../c-api/buffer.rst:457 msgid "" -"Release the buffer *view* and decrement the reference count for " -":c:member:`view->obj`. This function MUST be called when the buffer is no " -"longer being used, otherwise reference leaks may occur." +"Release the buffer *view* and decrement the reference count for :c:member:" +"`view->obj`. This function MUST be called when the buffer is no longer being " +"used, otherwise reference leaks may occur." msgstr "" #: ../../c-api/buffer.rst:461 msgid "" -"It is an error to call this function on a buffer that was not obtained via " -":c:func:`PyObject_GetBuffer`." +"It is an error to call this function on a buffer that was not obtained via :" +"c:func:`PyObject_GetBuffer`." msgstr "" #: ../../c-api/buffer.rst:467 msgid "" -"Return the implied :c:data:`~Py_buffer.itemsize` from " -":c:data:`~Py_buffer.format`. This function is not yet implemented." +"Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer." +"format`. This function is not yet implemented." msgstr "" #: ../../c-api/buffer.rst:473 @@ -820,13 +854,13 @@ msgstr "" #: ../../c-api/buffer.rst:517 msgid "" "On success, set :c:member:`view->obj` to a new reference to *exporter* and " -"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set " -":c:member:`view->obj` to ``NULL`` and return ``-1``;" +"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set :c:member:`view-" +">obj` to ``NULL`` and return ``-1``;" msgstr "" #: ../../c-api/buffer.rst:521 msgid "" -"If this function is used as part of a :ref:`getbufferproc `," -" *exporter* MUST be set to the exporting object and *flags* must be passed " +"If this function is used as part of a :ref:`getbufferproc `, " +"*exporter* MUST be set to the exporting object and *flags* must be passed " "unmodified. Otherwise, *exporter* MUST be ``NULL``." msgstr "" diff --git a/c-api/bytearray.po b/c-api/bytearray.po index 5506f22e4..a74bcd3b4 100644 --- a/c-api/bytearray.po +++ b/c-api/bytearray.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # msilvavieira, 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: msilvavieira, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -66,8 +68,8 @@ msgstr "Funções diretas da API" #: ../../c-api/bytearray.rst:42 msgid "" -"Return a new bytearray object from any object, *o*, that implements the " -":ref:`buffer protocol `." +"Return a new bytearray object from any object, *o*, that implements the :ref:" +"`buffer protocol `." msgstr "" "Retorna um novo objeto bytearray, *o*, que implementa o :ref:`buffer " "protocol`." @@ -77,6 +79,8 @@ msgid "" "Create a new bytearray object from *string* and its length, *len*. On " "failure, ``NULL`` is returned." msgstr "" +"Cria um novo objeto bytearray a partir de *string* e seu comprimento, *len*. " +"Em caso de falha, ``NULL`` é retornado." #: ../../c-api/bytearray.rst:56 msgid "" @@ -88,13 +92,16 @@ msgstr "" #: ../../c-api/bytearray.rst:61 msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer." msgstr "" +"Retorna o tamanho de *bytearray* após verificar se há um ponteiro ``NULL``." #: ../../c-api/bytearray.rst:66 msgid "" "Return the contents of *bytearray* as a char array after checking for a " -"``NULL`` pointer. The returned array always has an extra null byte " -"appended." +"``NULL`` pointer. The returned array always has an extra null byte appended." msgstr "" +"Retorna o conteúdo de *bytearray* como uma matriz de caracteres após " +"verificar um ponteiro ``NULL``. A matriz retornada sempre tem um byte nulo " +"extra acrescentado." #: ../../c-api/bytearray.rst:73 msgid "Resize the internal buffer of *bytearray* to *len*." diff --git a/c-api/bytes.po b/c-api/bytes.po index 6e0367220..21c4cd1d8 100644 --- a/c-api/bytes.po +++ b/c-api/bytes.po @@ -1,25 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 # Guilherme Soster , 2019 # Tiago Henrique , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Julio Gadioli Soares , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Julio Gadioli Soares , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,13 +42,12 @@ msgstr "" #: ../../c-api/bytes.rst:16 msgid "This subtype of :c:type:`PyObject` represents a Python bytes object." msgstr "" -"Esta é uma instância de :c:type:`PyObject` representando o tipo Python: " -"bytes" +"Esta é uma instância de :c:type:`PyObject` representando o tipo Python: bytes" #: ../../c-api/bytes.rst:21 msgid "" -"This instance of :c:type:`PyTypeObject` represents the Python bytes type; it" -" is the same object as :class:`bytes` in the Python layer." +"This instance of :c:type:`PyTypeObject` represents the Python bytes type; it " +"is the same object as :class:`bytes` in the Python layer." msgstr "" "Esta instância de: c: tipo: `PyTypeObject` representa o tipo de bytes " "Python; é o mesmo objeto que: classe: `bytes` na camada de Python." @@ -70,17 +70,23 @@ msgstr "" #: ../../c-api/bytes.rst:39 msgid "" -"Return a new bytes object with a copy of the string *v* as value on success," -" and ``NULL`` on failure. The parameter *v* must not be ``NULL``; it will " +"Return a new bytes object with a copy of the string *v* as value on success, " +"and ``NULL`` on failure. The parameter *v* must not be ``NULL``; it will " "not be checked." msgstr "" +"Retorna um novo objeto de bytes com uma cópia da string *v* como valor em " +"caso de sucesso e ``NULL`` em caso de falha. O parâmetro *v* não deve ser " +"``NULL`` e isso não será verificado." #: ../../c-api/bytes.rst:46 msgid "" "Return a new bytes object with a copy of the string *v* as value and length " -"*len* on success, and ``NULL`` on failure. If *v* is ``NULL``, the contents" -" of the bytes object are uninitialized." +"*len* on success, and ``NULL`` on failure. If *v* is ``NULL``, the contents " +"of the bytes object are uninitialized." msgstr "" +"Retorna um novo objeto de bytes com uma cópia da string *v* como valor e " +"comprimento *len* em caso de sucesso e ``NULL`` em caso de falha. Se *v* for " +"``NULL``, o conteúdo do objeto bytes não será inicializado." #: ../../c-api/bytes.rst:53 msgid "" @@ -91,11 +97,11 @@ msgid "" "characters in the *format* string. The following format characters are " "allowed:" msgstr "" -"Tome uma seqüência C :c:func:`printf`\\ -style *format* variáveis de números" -" e caracteres são os argumentos, calcule o tamanho do objeto de bytes Python" -" resultante e devolva um objeto bytes com os valores formatados nela. Os " -"argumentos da variável devem ser tipos C e devem corresponder exatamente aos" -" caracteres de formato na seqüência * format *. Os seguintes formatos são " +"Tome uma seqüência C :c:func:`printf`\\ -style *format* variáveis de números " +"e caracteres são os argumentos, calcule o tamanho do objeto de bytes Python " +"resultante e devolva um objeto bytes com os valores formatados nela. Os " +"argumentos da variável devem ser tipos C e devem corresponder exatamente aos " +"caracteres de formato na seqüência * format *. Os seguintes formatos são " "permitidos:" #: ../../c-api/bytes.rst:68 @@ -241,9 +247,9 @@ msgstr "const void\\*" #: ../../c-api/bytes.rst:102 msgid "" -"The hex representation of a C pointer. Mostly equivalent to " -"``printf(\"%p\")`` except that it is guaranteed to start with the literal " -"``0x`` regardless of what the platform's ``printf`` yields." +"The hex representation of a C pointer. Mostly equivalent to ``printf(\"%p" +"\")`` except that it is guaranteed to start with the literal ``0x`` " +"regardless of what the platform's ``printf`` yields." msgstr "" "A representação hexadecimal de um ponteiro C. Principalmente equivalente a " "``printf(\"%p\")`` exceto que é garantido que comece com o literal ``0x`` " @@ -251,12 +257,12 @@ msgstr "" #: ../../c-api/bytes.rst:111 msgid "" -"An unrecognized format character causes all the rest of the format string to" -" be copied as-is to the result object, and any extra arguments discarded." +"An unrecognized format character causes all the rest of the format string to " +"be copied as-is to the result object, and any extra arguments discarded." msgstr "" "Um caractere de formato não reconhecido faz com que todo o resto da " -"sequência de formato seja copiado como é para o objeto resultante e todos os" -" argumentos extras sejam descartados." +"sequência de formato seja copiado como é para o objeto resultante e todos os " +"argumentos extras sejam descartados." #: ../../c-api/bytes.rst:114 msgid "" @@ -271,16 +277,16 @@ msgid "" "Identical to :c:func:`PyBytes_FromFormat` except that it takes exactly two " "arguments." msgstr "" -"Idêntico a :c:func:`PyBytes_FromFormat` exceto que é preciso exatamente dois" -" argumentos." +"Idêntico a :c:func:`PyBytes_FromFormat` exceto que é preciso exatamente dois " +"argumentos." #: ../../c-api/bytes.rst:126 msgid "" "Return the bytes representation of object *o* that implements the buffer " "protocol." msgstr "" -"Retorna a representação de bytes do objeto *o* que implementa o protocolo de" -" buffer." +"Retorna a representação de bytes do objeto *o* que implementa o protocolo de " +"buffer." #: ../../c-api/bytes.rst:132 msgid "Return the length of the bytes in bytes object *o*." @@ -292,14 +298,21 @@ msgstr "Forma macro de :c:func:`PyBytes_Size` mas sem verificação de erro." #: ../../c-api/bytes.rst:142 msgid "" -"Return a pointer to the contents of *o*. The pointer refers to the internal" -" buffer of *o*, which consists of ``len(o) + 1`` bytes. The last byte in " -"the buffer is always null, regardless of whether there are any other null " -"bytes. The data must not be modified in any way, unless the object was just" -" created using ``PyBytes_FromStringAndSize(NULL, size)``. It must not be " -"deallocated. If *o* is not a bytes object at all, " -":c:func:`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`." +"Return a pointer to the contents of *o*. The pointer refers to the internal " +"buffer of *o*, which consists of ``len(o) + 1`` bytes. The last byte in the " +"buffer is always null, regardless of whether there are any other null " +"bytes. The data must not be modified in any way, unless the object was just " +"created using ``PyBytes_FromStringAndSize(NULL, size)``. It must not be " +"deallocated. If *o* is not a bytes object at all, :c:func:" +"`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`." msgstr "" +"Retorna um ponteiro para o conteúdo de *o*. O ponteiro se refere ao buffer " +"interno de *o*, que consiste em ``len(o) + 1`` bytes. O último byte no " +"buffer é sempre nulo, independentemente de haver outros bytes nulos. Os " +"dados não devem ser modificados de forma alguma, a menos que o objeto tenha " +"sido criado usando ``PyBytes_FromStringAndSize(NULL, size)``. Não deve ser " +"desalocado. Se *o* não é um objeto de bytes, :c:func:`PyBytes_AsString` " +"retorna ``NULL`` e levanta :exc:`TypeError`." #: ../../c-api/bytes.rst:154 msgid "Macro form of :c:func:`PyBytes_AsString` but without error checking." @@ -311,8 +324,8 @@ msgid "" "Return the null-terminated contents of the object *obj* through the output " "variables *buffer* and *length*." msgstr "" -"Retornar os conteúdos terminados nulos do objeto *obj* através das variáveis" -" de saída * buffer* e *length*." +"Retornar os conteúdos terminados nulos do objeto *obj* através das variáveis " +"de saída * buffer* e *length*." #: ../../c-api/bytes.rst:162 msgid "" @@ -320,6 +333,9 @@ msgid "" "bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is " "raised." msgstr "" +"Se *length* for ``NULL``, o objeto bytes não poderá conter bytes nulos " +"incorporados; se isso acontecer, a função retornará ``-1`` e a :exc:" +"`ValueError` será levantado." #: ../../c-api/bytes.rst:166 msgid "" @@ -347,18 +363,23 @@ msgstr "" #: ../../c-api/bytes.rst:180 msgid "" -"Create a new bytes object in *\\*bytes* containing the contents of *newpart*" -" appended to *bytes*; the caller will own the new reference. The reference " +"Create a new bytes object in *\\*bytes* containing the contents of *newpart* " +"appended to *bytes*; the caller will own the new reference. The reference " "to the old value of *bytes* will be stolen. If the new object cannot be " "created, the old reference to *bytes* will still be discarded and the value " -"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be " -"set." +"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be set." msgstr "" +"Cria um novo objeto de bytes em *\\*bytes* contendo o conteúdo de *newpart* " +"anexado a *bytes*; o invocador será o proprietário da nova referência. A " +"referência ao valor antigo de *bytes* será roubada. Se o novo objeto não " +"puder ser criado, a antiga referência a *bytes* ainda será descartada e o " +"valor de *\\*bytes* será definido como ``NULL``; a exceção apropriada será " +"definida." #: ../../c-api/bytes.rst:189 msgid "" -"Create a new bytes object in *\\*bytes* containing the contents of *newpart*" -" appended to *bytes*. This version decrements the reference count of " +"Create a new bytes object in *\\*bytes* containing the contents of *newpart* " +"appended to *bytes*. This version decrements the reference count of " "*newpart*." msgstr "" "Crie um novo objeto bytes em *\\*bytes* contendo o conteúdo de *newpart* " @@ -373,7 +394,17 @@ msgid "" "address of an existing bytes object as an lvalue (it may be written into), " "and the new size desired. On success, *\\*bytes* holds the resized bytes " "object and ``0`` is returned; the address in *\\*bytes* may differ from its " -"input value. If the reallocation fails, the original bytes object at " -"*\\*bytes* is deallocated, *\\*bytes* is set to ``NULL``, :exc:`MemoryError`" -" is set, and ``-1`` is returned." +"input value. If the reallocation fails, the original bytes object at *" +"\\*bytes* is deallocated, *\\*bytes* is set to ``NULL``, :exc:`MemoryError` " +"is set, and ``-1`` is returned." msgstr "" +"Uma maneira de redimensionar um objeto de bytes, mesmo que seja \"imutável" +"\". Use isso apenas para criar um novo objeto de bytes; não use isso se os " +"bytes já puderem ser conhecidos em outras partes do código. É um erro " +"invocar essa função se o refcount no objeto de bytes de entrada não for um. " +"Passe o endereço de um objeto de bytes existente como um lvalue (pode ser " +"gravado) e o novo tamanho desejado. Em caso de sucesso, *\\*bytes* mantém o " +"objeto de bytes redimensionados e ``0`` é retornado; o endereço em *" +"\\*bytes* pode diferir do seu valor de entrada. Se a realocação falhar, o " +"objeto de bytes originais em *\\*bytes* é desalocado, *\\*bytes* é definido " +"como ``NULL``, :exc:`MemoryError` é definido e ``-1`` é retornado." diff --git a/c-api/capsule.po b/c-api/capsule.po index ef55ce106..c65a2ddfb 100644 --- a/c-api/capsule.po +++ b/c-api/capsule.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Renan Lopes , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" "Last-Translator: Renan Lopes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,8 +38,8 @@ msgid "" "extension modules who need to pass an opaque value (as a :c:type:`void\\*` " "pointer) through Python code to other C code. It is often used to make a C " "function pointer defined in one module available to other modules, so the " -"regular import mechanism can be used to access C APIs defined in dynamically" -" loaded modules." +"regular import mechanism can be used to access C APIs defined in dynamically " +"loaded modules." msgstr "" #: ../../c-api/capsule.rst:27 @@ -81,8 +82,8 @@ msgstr "" #: ../../c-api/capsule.rst:54 msgid "" "If this capsule will be stored as an attribute of a module, the *name* " -"should be specified as ``modulename.attributename``. This will enable other" -" modules to import the capsule using :c:func:`PyCapsule_Import`." +"should be specified as ``modulename.attributename``. This will enable other " +"modules to import the capsule using :c:func:`PyCapsule_Import`." msgstr "" #: ../../c-api/capsule.rst:61 @@ -93,8 +94,8 @@ msgstr "" #: ../../c-api/capsule.rst:64 msgid "" -"The *name* parameter must compare exactly to the name stored in the capsule." -" If the name stored in the capsule is ``NULL``, the *name* passed in must " +"The *name* parameter must compare exactly to the name stored in the capsule. " +"If the name stored in the capsule is ``NULL``, the *name* passed in must " "also be ``NULL``. Python uses the C function :c:func:`strcmp` to compare " "capsule names." msgstr "" @@ -108,8 +109,8 @@ msgstr "" #: ../../c-api/capsule.rst:75 msgid "" "It is legal for a capsule to have a ``NULL`` destructor. This makes a " -"``NULL`` return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or " -":c:func:`PyErr_Occurred` to disambiguate." +"``NULL`` return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :" +"c:func:`PyErr_Occurred` to disambiguate." msgstr "" #: ../../c-api/capsule.rst:82 @@ -120,22 +121,22 @@ msgstr "" #: ../../c-api/capsule.rst:85 msgid "" -"It is legal for a capsule to have a ``NULL`` context. This makes a ``NULL``" -" return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or " -":c:func:`PyErr_Occurred` to disambiguate." +"It is legal for a capsule to have a ``NULL`` context. This makes a ``NULL`` " +"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :c:func:" +"`PyErr_Occurred` to disambiguate." msgstr "" #: ../../c-api/capsule.rst:92 msgid "" -"Return the current name stored in the capsule. On failure, set an exception" -" and return ``NULL``." +"Return the current name stored in the capsule. On failure, set an exception " +"and return ``NULL``." msgstr "" #: ../../c-api/capsule.rst:95 msgid "" "It is legal for a capsule to have a ``NULL`` name. This makes a ``NULL`` " -"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or " -":c:func:`PyErr_Occurred` to disambiguate." +"return code somewhat ambiguous; use :c:func:`PyCapsule_IsValid` or :c:func:" +"`PyErr_Occurred` to disambiguate." msgstr "" #: ../../c-api/capsule.rst:102 @@ -159,15 +160,15 @@ msgid "" "Determines whether or not *capsule* is a valid capsule. A valid capsule is " "non-``NULL``, passes :c:func:`PyCapsule_CheckExact`, has a non-``NULL`` " "pointer stored in it, and its internal name matches the *name* parameter. " -"(See :c:func:`PyCapsule_GetPointer` for information on how capsule names are" -" compared.)" +"(See :c:func:`PyCapsule_GetPointer` for information on how capsule names are " +"compared.)" msgstr "" #: ../../c-api/capsule.rst:121 msgid "" "In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls " -"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`)" -" are guaranteed to succeed." +"to any of the accessors (any function starting with :c:func:`PyCapsule_Get`) " +"are guaranteed to succeed." msgstr "" #: ../../c-api/capsule.rst:125 diff --git a/c-api/cell.po b/c-api/cell.po index f2e9442d3..bcc293d14 100644 --- a/c-api/cell.po +++ b/c-api/cell.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # felipe caridade , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,22 +30,21 @@ msgstr "Objeto Célula " #: ../../c-api/cell.rst:8 msgid "" "\"Cell\" objects are used to implement variables referenced by multiple " -"scopes. For each such variable, a cell object is created to store the value;" -" the local variables of each stack frame that references the value contains " -"a reference to the cells from outer scopes which also use that variable. " -"When the value is accessed, the value contained in the cell is used instead " -"of the cell object itself. This de-referencing of the cell object requires " +"scopes. For each such variable, a cell object is created to store the value; " +"the local variables of each stack frame that references the value contains a " +"reference to the cells from outer scopes which also use that variable. When " +"the value is accessed, the value contained in the cell is used instead of " +"the cell object itself. This de-referencing of the cell object requires " "support from the generated byte-code; these are not automatically de-" -"referenced when accessed. Cell objects are not likely to be useful " -"elsewhere." +"referenced when accessed. Cell objects are not likely to be useful elsewhere." msgstr "" -"Objetos \"Cell\" são usados ​​para implementar variáveis ​​referenciadas por" -" múltiplos escopos. Para cada variável, um objeto de célula é criado para " +"Objetos \"Cell\" são usados ​​para implementar variáveis ​​referenciadas por " +"múltiplos escopos. Para cada variável, um objeto de célula é criado para " "armazenar o valor; as variáveis ​​locais de cada quadro de pilha que " -"referencia o valor contém uma referência para as células de escopos externos" -" que também usam essa variável. Quando o valor é acessado, o valor contido " -"na célula é usado em vez do próprio objeto da célula. Essa des-referência do" -" objeto da célula requer suporte do código de bytes gerado; estes não são " +"referencia o valor contém uma referência para as células de escopos externos " +"que também usam essa variável. Quando o valor é acessado, o valor contido na " +"célula é usado em vez do próprio objeto da célula. Essa des-referência do " +"objeto da célula requer suporte do código de bytes gerado; estes não são " "automaticamente desprezados quando acessados. Objetos de células " "provavelmente não serão úteis em outro lugar." @@ -58,12 +59,15 @@ msgstr "O objeto de tipo correspondente aos objetos de célula." #: ../../c-api/cell.rst:30 msgid "Return true if *ob* is a cell object; *ob* must not be ``NULL``." msgstr "" +"Retorna true se *ob* for um objeto de célula; *ob* não deve ser ``NULL``." #: ../../c-api/cell.rst:35 msgid "" -"Create and return a new cell object containing the value *ob*. The parameter" -" may be ``NULL``." +"Create and return a new cell object containing the value *ob*. The parameter " +"may be ``NULL``." msgstr "" +"Cria e retorna um novo objeto de célula contendo o valor *ob*. O parâmetro " +"pode ser ``NULL``." #: ../../c-api/cell.rst:41 msgid "Return the contents of the cell *cell*." @@ -74,6 +78,8 @@ msgid "" "Return the contents of the cell *cell*, but without checking that *cell* is " "non-``NULL`` and a cell object." msgstr "" +"Retorna o conteúdo da célula *cell*, mas sem verificar se *cell* não é " +"``NULL`` e um objeto de célula." #: ../../c-api/cell.rst:52 msgid "" @@ -82,10 +88,17 @@ msgid "" "*cell* must be non-``NULL``; if it is not a cell object, ``-1`` will be " "returned. On success, ``0`` will be returned." msgstr "" +"Define o conteúdo do objeto da célula *cell* como *value*. Isso libera a " +"referência a qualquer conteúdo atual da célula. *value* pode ser ``NULL``. " +"*cell* não pode ser ``NULL``; se não for um objeto de célula, ``-1`` será " +"retornado. Em caso de sucesso, ``0`` será retornado." #: ../../c-api/cell.rst:60 msgid "" "Sets the value of the cell object *cell* to *value*. No reference counts " -"are adjusted, and no checks are made for safety; *cell* must be non-``NULL``" -" and must be a cell object." +"are adjusted, and no checks are made for safety; *cell* must be non-``NULL`` " +"and must be a cell object." msgstr "" +"Define o valor do objeto da célula *cell* como *value*. Nenhuma contagem de " +"referência é ajustada e nenhuma verificação é feita quanto à segurança; " +"*cell* não pode ser ``NULL`` e deve ser um objeto de célula." diff --git a/c-api/code.po b/c-api/code.po index 21638f5d3..f17b1bc49 100644 --- a/c-api/code.po +++ b/c-api/code.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,21 +34,21 @@ msgid "" "function." msgstr "" "Os objetos de código são um detalhe de baixo nível da implementação do " -"CPython. Cada um representa um pedaço de código executável que ainda não foi" -" vinculado a uma função." +"CPython. Cada um representa um pedaço de código executável que ainda não foi " +"vinculado a uma função." #: ../../c-api/code.rst:18 msgid "" -"The C structure of the objects used to describe code objects. The fields of" -" this type are subject to change at any time." +"The C structure of the objects used to describe code objects. The fields of " +"this type are subject to change at any time." msgstr "" -"A estrutura C dos objetos usados para descrever objetos de código. Os campos" -" deste tipo estão sujeitos a alterações a qualquer momento." +"A estrutura C dos objetos usados para descrever objetos de código. Os campos " +"deste tipo estão sujeitos a alterações a qualquer momento." #: ../../c-api/code.rst:24 msgid "" -"This is an instance of :c:type:`PyTypeObject` representing the Python " -":class:`code` type." +"This is an instance of :c:type:`PyTypeObject` representing the Python :class:" +"`code` type." msgstr "" "Esta é uma instância de: c: tipo: `PyTypeObject` representando o tipo " "Python: class:` code`." @@ -78,6 +79,6 @@ msgid "" "and first line number. It is illegal to :func:`exec` or :func:`eval` the " "resulting code object." msgstr "" -"Devolve um novo objeto de código vazio com o nome do arquivo especificado, o" -" nome da função e o número da primeira linha. É ilegal: func: `exec` ou: " -"func:` eval` o objeto de código resultante." +"Devolve um novo objeto de código vazio com o nome do arquivo especificado, o " +"nome da função e o número da primeira linha. É ilegal: func: `exec` ou: func:" +"` eval` o objeto de código resultante." diff --git a/c-api/codec.po b/c-api/codec.po index 0b10def84..c8abf4831 100644 --- a/c-api/codec.po +++ b/c-api/codec.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Rafael Fontenelle , 2019 # Tiago Henrique , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Tiago Henrique , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -55,9 +56,14 @@ msgstr "API de codificação baseada em codec genérico." msgid "" "*object* is passed through the encoder function found for the given " "*encoding* using the error handling method defined by *errors*. *errors* " -"may be ``NULL`` to use the default method defined for the codec. Raises a " -":exc:`LookupError` if no encoder can be found." +"may be ``NULL`` to use the default method defined for the codec. Raises a :" +"exc:`LookupError` if no encoder can be found." msgstr "" +"*object* é passado através da função de codificador encontrada para a " +"codificação fornecida por meio de *encoding*, usando o método de tratamento " +"de erros definido por *errors*. *errors* pode ser ``NULL`` para usar o " +"método padrão definido para o codec. Levanta um :exc:`LookupError` se nenhum " +"codificador puder ser encontrado." #: ../../c-api/codec.rst:29 msgid "Generic codec based decoding API." @@ -67,9 +73,14 @@ msgstr "API de decodificação baseada em decodificador genérico." msgid "" "*object* is passed through the decoder function found for the given " "*encoding* using the error handling method defined by *errors*. *errors* " -"may be ``NULL`` to use the default method defined for the codec. Raises a " -":exc:`LookupError` if no encoder can be found." +"may be ``NULL`` to use the default method defined for the codec. Raises a :" +"exc:`LookupError` if no encoder can be found." msgstr "" +"*object* é passado através da função de decodificador encontrada para a " +"codificação fornecida por meio de *encoding*, usando o método de tratamento " +"de erros definido por *errors*. *errors* pode ser ``NULL`` para usar o " +"método padrão definido para o codec. Levanta um :exc:`LookupError` se nenhum " +"codificador puder ser encontrado." #: ../../c-api/codec.rst:38 msgid "Codec lookup API" @@ -79,9 +90,14 @@ msgstr "API de pesquisa de codec" msgid "" "In the following functions, the *encoding* string is looked up converted to " "all lower-case characters, which makes encodings looked up through this " -"mechanism effectively case-insensitive. If no codec is found, a " -":exc:`KeyError` is set and ``NULL`` returned." +"mechanism effectively case-insensitive. If no codec is found, a :exc:" +"`KeyError` is set and ``NULL`` returned." msgstr "" +"Nas funções a seguir, a string *encoding* é pesquisada com todos os " +"caracteres sendo convertidos para minúsculo, o que faz com que as " +"codificações pesquisadas por esse mecanismo não façam distinção entre " +"maiúsculas e minúsculas. Se nenhum codec for encontrado, um :exc:`KeyError` " +"é definido e ``NULL`` é retornado." #: ../../c-api/codec.rst:47 msgid "Get an encoder function for the given *encoding*." @@ -116,8 +132,8 @@ msgid "" "Get a :class:`~codecs.StreamWriter` factory function for the given " "*encoding*." msgstr "" -"Busca uma função de fábrica :class:`~codecs.StreamWriter` para o *encoding*" -" dado." +"Busca uma função de fábrica :class:`~codecs.StreamWriter` para o *encoding* " +"dado." #: ../../c-api/codec.rst:71 msgid "Registry API for Unicode encoding error handlers" @@ -137,23 +153,23 @@ msgstr "" #: ../../c-api/codec.rst:80 msgid "" -"The callback gets a single argument, an instance of " -":exc:`UnicodeEncodeError`, :exc:`UnicodeDecodeError` or " -":exc:`UnicodeTranslateError` that holds information about the problematic " -"sequence of characters or bytes and their offset in the original string (see" -" :ref:`unicodeexceptions` for functions to extract this information). The " -"callback must either raise the given exception, or return a two-item tuple " -"containing the replacement for the problematic sequence, and an integer " -"giving the offset in the original string at which encoding/decoding should " -"be resumed." +"The callback gets a single argument, an instance of :exc:" +"`UnicodeEncodeError`, :exc:`UnicodeDecodeError` or :exc:" +"`UnicodeTranslateError` that holds information about the problematic " +"sequence of characters or bytes and their offset in the original string " +"(see :ref:`unicodeexceptions` for functions to extract this information). " +"The callback must either raise the given exception, or return a two-item " +"tuple containing the replacement for the problematic sequence, and an " +"integer giving the offset in the original string at which encoding/decoding " +"should be resumed." msgstr "" -"O retorno de chamada obtém um único argumento, uma instância de " -":exc:`UnicodeEncodeError`, :exc:`UnicodeDecodeError` ou " -":exc:`UnicodeTranslateError` que contém informações sobre a sequencia " +"O retorno de chamada obtém um único argumento, uma instância de :exc:" +"`UnicodeEncodeError`, :exc:`UnicodeDecodeError` ou :exc:" +"`UnicodeTranslateError` que contém informações sobre a sequencia " "problemática de caracteres ou bytes e seu deslocamento na string original " "(consulte :ref:`unicodeexceptions` para funções que extraem essa " -"informação). A função de retorno de chamada necessita lançar a exceção dada " -", ou retornar uma tupla de dois itens contendo a substituição para a " +"informação). A função de retorno de chamada necessita lançar a exceção " +"dada , ou retornar uma tupla de dois itens contendo a substituição para a " "sequência problemática, e um inteiro fornecendo o deslocamento na string " "original na qual a codificação/decodificação deve ser retomada." @@ -167,6 +183,9 @@ msgid "" "special case ``NULL`` can be passed, in which case the error handling " "callback for \"strict\" will be returned." msgstr "" +"Pesquise a função de retorno de chamada de tratamento de erros registrada em " +"*name*. Como um caso especial, ``NULL`` pode ser passado; nesse caso, o erro " +"no tratamento de retorno de chamada para \"strict\" será retornado." #: ../../c-api/codec.rst:100 msgid "Raise *exc* as an exception." @@ -189,8 +208,8 @@ msgid "" "Replace the unicode encode error with backslash escapes (``\\x``, ``\\u`` " "and ``\\U``)." msgstr "" -"Substitui o erro de unicode com escapes de barra invertida (``\\x``, ``\\u``" -" e ``\\U``)." +"Substitui o erro de unicode com escapes de barra invertida (``\\x``, ``\\u`` " +"e ``\\U``)." #: ../../c-api/codec.rst:121 msgid "Replace the unicode encode error with ``\\N{...}`` escapes." diff --git a/c-api/complex.po b/c-api/complex.po index e05c84a25..050c18c92 100644 --- a/c-api/complex.po +++ b/c-api/complex.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Renan Lopes , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Renan Lopes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,8 +30,8 @@ msgstr "Objetos de Números Complexos" #: ../../c-api/complex.rst:10 msgid "" "Python's complex number objects are implemented as two distinct types when " -"viewed from the C API: one is the Python object exposed to Python programs," -" and the other is a C structure which represents the actual complex number " +"viewed from the C API: one is the Python object exposed to Python programs, " +"and the other is a C structure which represents the actual complex number " "value. The API provides functions for working with both." msgstr "" @@ -58,56 +59,56 @@ msgid "" "Return the sum of two complex numbers, using the C :c:type:`Py_complex` " "representation." msgstr "" -"Retorna a soma de dois números complexos, utilizando a representação C " -":c:tipo:`Py_complex` " +"Retorna a soma de dois números complexos, utilizando a representação C :c:" +"tipo:`Py_complex` " #: ../../c-api/complex.rst:45 msgid "" -"Return the difference between two complex numbers, using the C " -":c:type:`Py_complex` representation." +"Return the difference between two complex numbers, using the C :c:type:" +"`Py_complex` representation." msgstr "" -"Retorna a diferença entre dois números complexos, utilizando a representação" -" C :c:tipo:`Py_complex` " +"Retorna a diferença entre dois números complexos, utilizando a representação " +"C :c:tipo:`Py_complex` " #: ../../c-api/complex.rst:51 msgid "" -"Return the negation of the complex number *complex*, using the C " -":c:type:`Py_complex` representation." +"Return the negation of the complex number *complex*, using the C :c:type:" +"`Py_complex` representation." msgstr "" -"Retorna a negação do número complexo *complex*, utilizando a representação C" -" :c:tipo:`Py_complex` " +"Retorna a negação do número complexo *complex*, utilizando a representação " +"C :c:tipo:`Py_complex` " #: ../../c-api/complex.rst:57 msgid "" "Return the product of two complex numbers, using the C :c:type:`Py_complex` " "representation." msgstr "" -"Retorna o produto de dois números complexos, utilizando a representação C " -":c:tipo:`Py_complex` " +"Retorna o produto de dois números complexos, utilizando a representação C :c:" +"tipo:`Py_complex` " #: ../../c-api/complex.rst:63 msgid "" -"Return the quotient of two complex numbers, using the C :c:type:`Py_complex`" -" representation." +"Return the quotient of two complex numbers, using the C :c:type:`Py_complex` " +"representation." msgstr "" -"Retorna o quociente de dois números complexos, utilizando a representação C " -":c:tipo:`Py_complex` " +"Retorna o quociente de dois números complexos, utilizando a representação C :" +"c:tipo:`Py_complex` " #: ../../c-api/complex.rst:66 msgid "" -"If *divisor* is null, this method returns zero and sets :c:data:`errno` to " -":c:data:`EDOM`." +"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :" +"c:data:`EDOM`." msgstr "" -"Se *divisor* é nulo, este método retorna zero e define :c:data:`errno` para " -":c:data:`EDOM`." +"Se *divisor* é nulo, este método retorna zero e define :c:data:`errno` para :" +"c:data:`EDOM`." #: ../../c-api/complex.rst:72 msgid "" -"Return the exponentiation of *num* by *exp*, using the C " -":c:type:`Py_complex` representation." +"Return the exponentiation of *num* by *exp*, using the C :c:type:" +"`Py_complex` representation." msgstr "" -"Retorna a exponenciação de *num* por *exp*, utilizando a representação C " -":c:tipo:`Py_complex` " +"Retorna a exponenciação de *num* por *exp*, utilizando a representação C :c:" +"tipo:`Py_complex` " #: ../../c-api/complex.rst:75 msgid "" @@ -121,22 +122,21 @@ msgstr "Números complexos como objetos Python" #: ../../c-api/complex.rst:85 msgid "" -"This subtype of :c:type:`PyObject` represents a Python complex number " -"object." +"This subtype of :c:type:`PyObject` represents a Python complex number object." msgstr "" "Este subtipo de :c:tipo:`PyObject` representa um objeto Python de número " "complexo" #: ../../c-api/complex.rst:90 msgid "" -"This instance of :c:type:`PyTypeObject` represents the Python complex number" -" type. It is the same object as :class:`complex` in the Python layer." +"This instance of :c:type:`PyTypeObject` represents the Python complex number " +"type. It is the same object as :class:`complex` in the Python layer." msgstr "" #: ../../c-api/complex.rst:96 msgid "" -"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of " -":c:type:`PyComplexObject`." +"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :" +"c:type:`PyComplexObject`." msgstr "" #: ../../c-api/complex.rst:102 @@ -170,6 +170,6 @@ msgstr "" #: ../../c-api/complex.rst:130 msgid "" "If *op* is not a Python complex number object but has a :meth:`__complex__` " -"method, this method will first be called to convert *op* to a Python complex" -" number object. Upon failure, this method returns ``-1.0`` as a real value." +"method, this method will first be called to convert *op* to a Python complex " +"number object. Upon failure, this method returns ``-1.0`` as a real value." msgstr "" diff --git a/c-api/concrete.po b/c-api/concrete.po index ea9a1c415..1083b11cf 100644 --- a/c-api/concrete.po +++ b/c-api/concrete.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,8 +52,7 @@ msgstr "" #: ../../c-api/concrete.rst:30 msgid "" -"This section describes Python type objects and the singleton object " -"``None``." +"This section describes Python type objects and the singleton object ``None``." msgstr "" #: ../../c-api/concrete.rst:41 @@ -66,8 +66,8 @@ msgstr "" #: ../../c-api/concrete.rst:60 msgid "" "Generic operations on sequence objects were discussed in the previous " -"chapter; this section deals with the specific kinds of sequence objects that" -" are intrinsic to the Python language." +"chapter; this section deals with the specific kinds of sequence objects that " +"are intrinsic to the Python language." msgstr "" #: ../../c-api/concrete.rst:78 diff --git a/c-api/contextvars.po b/c-api/contextvars.po index f149a87f3..6c2caafb5 100644 --- a/c-api/contextvars.po +++ b/c-api/contextvars.po @@ -1,135 +1,142 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Claudio Rogerio Carvalho Filho , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:39+0000\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/c-api/contextvars.rst:6 +#: ../../c-api/contextvars.rst:6 msgid "Context Variables Objects" msgstr "" -#: ../Doc/c-api/contextvars.rst:13 +#: ../../c-api/contextvars.rst:13 msgid "" "In Python 3.7.1 the signatures of all context variables C APIs were " "**changed** to use :c:type:`PyObject` pointers instead of :c:type:" "`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, e.g.::" msgstr "" -#: ../Doc/c-api/contextvars.rst:24 +#: ../../c-api/contextvars.rst:24 msgid "See :issue:`34762` for more details." msgstr "" -#: ../Doc/c-api/contextvars.rst:29 +#: ../../c-api/contextvars.rst:29 msgid "" "This section details the public C API for the :mod:`contextvars` module." msgstr "" -#: ../Doc/c-api/contextvars.rst:33 +#: ../../c-api/contextvars.rst:33 msgid "" "The C structure used to represent a :class:`contextvars.Context` object." msgstr "" -#: ../Doc/c-api/contextvars.rst:38 +#: ../../c-api/contextvars.rst:38 msgid "" "The C structure used to represent a :class:`contextvars.ContextVar` object." msgstr "" -#: ../Doc/c-api/contextvars.rst:43 +#: ../../c-api/contextvars.rst:43 msgid "The C structure used to represent a :class:`contextvars.Token` object." msgstr "" -#: ../Doc/c-api/contextvars.rst:47 +#: ../../c-api/contextvars.rst:47 msgid "The type object representing the *context* type." msgstr "" -#: ../Doc/c-api/contextvars.rst:51 +#: ../../c-api/contextvars.rst:51 msgid "The type object representing the *context variable* type." msgstr "" -#: ../Doc/c-api/contextvars.rst:55 +#: ../../c-api/contextvars.rst:55 msgid "The type object representing the *context variable token* type." msgstr "" -#: ../Doc/c-api/contextvars.rst:58 +#: ../../c-api/contextvars.rst:58 msgid "Type-check macros:" -msgstr "" +msgstr "Macros de verificação de tipo:" -#: ../Doc/c-api/contextvars.rst:62 +#: ../../c-api/contextvars.rst:62 msgid "" "Return true if *o* is of type :c:data:`PyContext_Type`. *o* must not be " -"*NULL*. This function always succeeds." +"``NULL``. This function always succeeds." msgstr "" -#: ../Doc/c-api/contextvars.rst:67 +#: ../../c-api/contextvars.rst:67 msgid "" "Return true if *o* is of type :c:data:`PyContextVar_Type`. *o* must not be " -"*NULL*. This function always succeeds." +"``NULL``. This function always succeeds." msgstr "" -#: ../Doc/c-api/contextvars.rst:72 +#: ../../c-api/contextvars.rst:72 msgid "" "Return true if *o* is of type :c:data:`PyContextToken_Type`. *o* must not be " -"*NULL*. This function always succeeds." +"``NULL``. This function always succeeds." msgstr "" -#: ../Doc/c-api/contextvars.rst:76 +#: ../../c-api/contextvars.rst:76 msgid "Context object management functions:" msgstr "" -#: ../Doc/c-api/contextvars.rst:80 +#: ../../c-api/contextvars.rst:80 msgid "" "Create a new empty context object. Returns ``NULL`` if an error has " "occurred." msgstr "" -#: ../Doc/c-api/contextvars.rst:85 +#: ../../c-api/contextvars.rst:85 msgid "" "Create a shallow copy of the passed *ctx* context object. Returns ``NULL`` " "if an error has occurred." msgstr "" -#: ../Doc/c-api/contextvars.rst:90 +#: ../../c-api/contextvars.rst:90 msgid "" "Create a shallow copy of the current thread context. Returns ``NULL`` if an " "error has occurred." msgstr "" -#: ../Doc/c-api/contextvars.rst:95 +#: ../../c-api/contextvars.rst:95 msgid "" "Set *ctx* as the current context for the current thread. Returns ``0`` on " "success, and ``-1`` on error." msgstr "" -#: ../Doc/c-api/contextvars.rst:100 +#: ../../c-api/contextvars.rst:100 msgid "" "Deactivate the *ctx* context and restore the previous context as the current " "context for the current thread. Returns ``0`` on success, and ``-1`` on " "error." msgstr "" -#: ../Doc/c-api/contextvars.rst:106 +#: ../../c-api/contextvars.rst:106 msgid "" "Clear the context variable free list. Return the total number of freed " "items. This function always succeeds." msgstr "" -#: ../Doc/c-api/contextvars.rst:110 +#: ../../c-api/contextvars.rst:110 msgid "Context variable functions:" msgstr "" -#: ../Doc/c-api/contextvars.rst:114 +#: ../../c-api/contextvars.rst:114 msgid "" "Create a new ``ContextVar`` object. The *name* parameter is used for " "introspection and debug purposes. The *def* parameter may optionally " @@ -137,42 +144,42 @@ msgid "" "occurred, this function returns ``NULL``." msgstr "" -#: ../Doc/c-api/contextvars.rst:121 +#: ../../c-api/contextvars.rst:121 msgid "" "Get the value of a context variable. Returns ``-1`` if an error has " "occurred during lookup, and ``0`` if no error occurred, whether or not a " "value was found." msgstr "" -#: ../Doc/c-api/contextvars.rst:125 +#: ../../c-api/contextvars.rst:125 msgid "" "If the context variable was found, *value* will be a pointer to it. If the " "context variable was *not* found, *value* will point to:" msgstr "" -#: ../Doc/c-api/contextvars.rst:128 +#: ../../c-api/contextvars.rst:128 msgid "*default_value*, if not ``NULL``;" msgstr "" -#: ../Doc/c-api/contextvars.rst:129 +#: ../../c-api/contextvars.rst:129 msgid "the default value of *var*, if not ``NULL``;" msgstr "" -#: ../Doc/c-api/contextvars.rst:130 +#: ../../c-api/contextvars.rst:130 msgid "``NULL``" -msgstr "" +msgstr "``NULL``" -#: ../Doc/c-api/contextvars.rst:132 +#: ../../c-api/contextvars.rst:132 msgid "If the value was found, the function will create a new reference to it." msgstr "" -#: ../Doc/c-api/contextvars.rst:136 +#: ../../c-api/contextvars.rst:136 msgid "" "Set the value of *var* to *value* in the current context. Returns a pointer " "to a :c:type:`PyObject` object, or ``NULL`` if an error has occurred." msgstr "" -#: ../Doc/c-api/contextvars.rst:142 +#: ../../c-api/contextvars.rst:142 msgid "" "Reset the state of the *var* context variable to that it was in before :c:" "func:`PyContextVar_Set` that returned the *token* was called. This function " diff --git a/c-api/conversion.po b/c-api/conversion.po index c99681081..d820b45b9 100644 --- a/c-api/conversion.po +++ b/c-api/conversion.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Raul Lima , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Raul Lima , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,15 +34,15 @@ msgstr "Funções para conversão de números e saída formatada de Strings. " #: ../../c-api/conversion.rst:13 msgid "" "Output not more than *size* bytes to *str* according to the format string " -"*format* and the extra arguments. See the Unix man page " -":manpage:`snprintf(2)`." +"*format* and the extra arguments. See the Unix man page :manpage:" +"`snprintf(2)`." msgstr "" #: ../../c-api/conversion.rst:19 msgid "" "Output not more than *size* bytes to *str* according to the format string " -"*format* and the variable argument list *va*. Unix man page " -":manpage:`vsnprintf(2)`." +"*format* and the variable argument list *va*. Unix man page :manpage:" +"`vsnprintf(2)`." msgstr "" #: ../../c-api/conversion.rst:23 @@ -69,8 +70,7 @@ msgstr "" #: ../../c-api/conversion.rst:37 msgid "" -"The return value (*rv*) for these functions should be interpreted as " -"follows:" +"The return value (*rv*) for these functions should be interpreted as follows:" msgstr "" #: ../../c-api/conversion.rst:39 @@ -89,8 +89,8 @@ msgstr "" #: ../../c-api/conversion.rst:47 msgid "" -"When ``rv < 0``, \"something bad happened.\" *str*[*size*-1] is ``'\\0'`` in" -" this case too, but the rest of *str* is undefined. The exact cause of the " +"When ``rv < 0``, \"something bad happened.\" *str*[*size*-1] is ``'\\0'`` in " +"this case too, but the rest of *str* is undefined. The exact cause of the " "error depends on the underlying platform." msgstr "" @@ -111,15 +111,15 @@ msgstr "" #: ../../c-api/conversion.rst:62 msgid "" -"If ``endptr`` is ``NULL``, convert the whole string. Raise " -":exc:`ValueError` and return ``-1.0`` if the string is not a valid " -"representation of a floating-point number." +"If ``endptr`` is ``NULL``, convert the whole string. Raise :exc:" +"`ValueError` and return ``-1.0`` if the string is not a valid representation " +"of a floating-point number." msgstr "" #: ../../c-api/conversion.rst:66 msgid "" -"If endptr is not ``NULL``, convert as much of the string as possible and set" -" ``*endptr`` to point to the first unconverted character. If no initial " +"If endptr is not ``NULL``, convert as much of the string as possible and set " +"``*endptr`` to point to the first unconverted character. If no initial " "segment of the string is the valid representation of a floating-point " "number, set ``*endptr`` to point to the beginning of the string, raise " "ValueError, and return ``-1.0``." @@ -152,8 +152,7 @@ msgstr "" msgid "" "*format_code* must be one of ``'e'``, ``'E'``, ``'f'``, ``'F'``, ``'g'``, " "``'G'`` or ``'r'``. For ``'r'``, the supplied *precision* must be 0 and is " -"ignored. The ``'r'`` format code specifies the standard :func:`repr` " -"format." +"ignored. The ``'r'`` format code specifies the standard :func:`repr` format." msgstr "" #: ../../c-api/conversion.rst:98 @@ -170,8 +169,8 @@ msgstr "" #: ../../c-api/conversion.rst:104 msgid "" -"``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look" -" like an integer." +"``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look " +"like an integer." msgstr "" #: ../../c-api/conversion.rst:107 @@ -191,8 +190,8 @@ msgstr "" #: ../../c-api/conversion.rst:115 msgid "" "The return value is a pointer to *buffer* with the converted string or " -"``NULL`` if the conversion failed. The caller is responsible for freeing the" -" returned string by calling :c:func:`PyMem_Free`." +"``NULL`` if the conversion failed. The caller is responsible for freeing the " +"returned string by calling :c:func:`PyMem_Free`." msgstr "" #: ../../c-api/conversion.rst:124 diff --git a/c-api/coro.po b/c-api/coro.po index 9b4623d5c..84c7cfa73 100644 --- a/c-api/coro.po +++ b/c-api/coro.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,6 +48,8 @@ msgid "" "Return true if *ob*'s type is :c:type:`PyCoro_Type`; *ob* must not be " "``NULL``." msgstr "" +"Retorna true se o tipo do *ob* é :c:type:`PyCoro_Type`; *ob* não deve ser " +"``NULL``." #: ../../c-api/coro.rst:31 msgid "" @@ -54,3 +58,7 @@ msgid "" "to *frame* is stolen by this function. The *frame* argument must not be " "``NULL``." msgstr "" +"Cria e retorna um novo objeto de coroutine com base no objeto *frame*, com " +"``__name__`` e ``__qualname__`` definido como *name* e *qualname*. Uma " +"referência a *frame* é roubada por esta função. O argumento *frame* não deve " +"ser ``NULL``." diff --git a/c-api/datetime.po b/c-api/datetime.po index 839d06f63..0ef210723 100644 --- a/c-api/datetime.po +++ b/c-api/datetime.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adjamilton Júnior , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Adjamilton Júnior , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,87 +31,116 @@ msgstr "Objetos DateTime" #: ../../c-api/datetime.rst:8 msgid "" "Various date and time objects are supplied by the :mod:`datetime` module. " -"Before using any of these functions, the header file :file:`datetime.h` must" -" be included in your source (note that this is not included by " -":file:`Python.h`), and the macro :c:macro:`PyDateTime_IMPORT` must be " -"invoked, usually as part of the module initialisation function. The macro " -"puts a pointer to a C structure into a static variable, " -":c:data:`PyDateTimeAPI`, that is used by the following macros." +"Before using any of these functions, the header file :file:`datetime.h` must " +"be included in your source (note that this is not included by :file:`Python." +"h`), and the macro :c:macro:`PyDateTime_IMPORT` must be invoked, usually as " +"part of the module initialisation function. The macro puts a pointer to a C " +"structure into a static variable, :c:data:`PyDateTimeAPI`, that is used by " +"the following macros." msgstr "" +"Vários objetos de data e hora são fornecidos pelo módulo :mod:`datetime`. " +"Antes de usar qualquer uma dessas funções, o arquivo de cabeçalho :file:" +"`datetime.h` deve ser incluído na sua fonte (observe que isso não é incluído " +"por :file:`Python.h`) e a macro :c:macro:`PyDateTime_IMPORT` deve ser " +"chamada, geralmente como parte da função de inicialização do módulo. A macro " +"coloca um ponteiro para uma estrutura C em uma variável estática, :c:data:" +"`PyDateTimeAPI`, usada pelas macros a seguir." #: ../../c-api/datetime.rst:16 msgid "Macro for access to the UTC singleton:" -msgstr "" +msgstr "Macro para acesso ao singleton UTC:" #: ../../c-api/datetime.rst:20 msgid "" -"Returns the time zone singleton representing UTC, the same object as " -":attr:`datetime.timezone.utc`." +"Returns the time zone singleton representing UTC, the same object as :attr:" +"`datetime.timezone.utc`." msgstr "" +"Retorna um singleton do fuso horário representando o UTC, o mesmo objeto " +"que :attr:`datetime.timezone.utc`." #: ../../c-api/datetime.rst:26 msgid "Type-check macros:" -msgstr "" +msgstr "Macros de verificação de tipo:" #: ../../c-api/datetime.rst:30 msgid "" -"Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype of" -" :c:data:`PyDateTime_DateType`. *ob* must not be ``NULL``." +"Return true if *ob* is of type :c:data:`PyDateTime_DateType` or a subtype " +"of :c:data:`PyDateTime_DateType`. *ob* must not be ``NULL``." msgstr "" +"Retorne true se *ob* for do tipo :c:data:`PyDateTime_DateType` ou um subtipo " +"de :c:data:`PyDateTime_DateType`. *ob* não deve ser ``NULL``." #: ../../c-api/datetime.rst:36 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_DateType`. *ob* must not " "be ``NULL``." msgstr "" +"Retorna true se *ob* for do tipo :c:data:`PyDateTime_DateType`. *ob* não " +"deve ser ``NULL``." #: ../../c-api/datetime.rst:42 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType` or a " "subtype of :c:data:`PyDateTime_DateTimeType`. *ob* must not be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_DateTimeType` ou um " +"subtipo de :c:data:`PyDateTime_DateTimeType`. *ob* não deve ser ``NULL``." #: ../../c-api/datetime.rst:48 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_DateTimeType`. *ob* must " "not be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_DateTimeType`. *ob* não " +"deve ser ``NULL``." #: ../../c-api/datetime.rst:54 msgid "" -"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype of" -" :c:data:`PyDateTime_TimeType`. *ob* must not be ``NULL``." +"Return true if *ob* is of type :c:data:`PyDateTime_TimeType` or a subtype " +"of :c:data:`PyDateTime_TimeType`. *ob* must not be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_TimeType` ou um subtipo " +"de :c:data:`PyDateTime_TimeType`. *ob* não deve ser ``NULL``." #: ../../c-api/datetime.rst:60 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_TimeType`. *ob* must not " "be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_TimeType`. *ob* não deve " +"ser ``NULL``." #: ../../c-api/datetime.rst:66 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_DeltaType` or a subtype " "of :c:data:`PyDateTime_DeltaType`. *ob* must not be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_DeltaType` ou um subtipo " +"de :c:data:`PyDateTime_DeltaType`. *ob* não deve ser ``NULL``." #: ../../c-api/datetime.rst:72 msgid "" -"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not" -" be ``NULL``." +"Return true if *ob* is of type :c:data:`PyDateTime_DeltaType`. *ob* must not " +"be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_DeltaType`. *ob* não deve " +"ser ``NULL``." #: ../../c-api/datetime.rst:78 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType` or a subtype " "of :c:data:`PyDateTime_TZInfoType`. *ob* must not be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_TZInfoType` ou um subtipo " +"de :c:data:`PyDateTime_TZInfoType`. *ob* não deve ser ``NULL``." #: ../../c-api/datetime.rst:84 msgid "" "Return true if *ob* is of type :c:data:`PyDateTime_TZInfoType`. *ob* must " "not be ``NULL``." msgstr "" +"Retorna true se *ob* é do tipo :c:data:`PyDateTime_TZInfoType`. *ob* não " +"deve ser ``NULL``." #: ../../c-api/datetime.rst:88 msgid "Macros to create objects:" @@ -156,31 +187,43 @@ msgstr "" #: ../../c-api/datetime.rst:125 msgid "" -"Return a :class:`datetime.timedelta` object representing the given number of" -" days, seconds and microseconds. Normalization is performed so that the " +"Return a :class:`datetime.timedelta` object representing the given number of " +"days, seconds and microseconds. Normalization is performed so that the " "resulting number of microseconds and seconds lie in the ranges documented " "for :class:`datetime.timedelta` objects." msgstr "" +"Retorna um objeto :class:`datetime.timedelta` representando o número " +"especificado de dias, segundos e microssegundos. A normalização é executada " +"para que o número resultante de microssegundos e segundos esteja nos " +"intervalos documentados para objetos de :class:`datetime.timedelta`." #: ../../c-api/datetime.rst:132 msgid "" "Return a :class:`datetime.timezone` object with an unnamed fixed offset " "represented by the *offset* argument." msgstr "" +"Retorne um objeto :class:`datetime.timezone` com um deslocamento fixo sem " +"nome representado pelo argumento *offset*." #: ../../c-api/datetime.rst:139 msgid "" "Return a :class:`datetime.timezone` object with a fixed offset represented " "by the *offset* argument and with tzname *name*." msgstr "" +"Retorna um objeto :class:`datetime.timezone` com um deslocamento fixo " +"representado pelo argumento *offset* e com tzname *name*." #: ../../c-api/datetime.rst:145 msgid "" "Macros to extract fields from date objects. The argument must be an " -"instance of :c:data:`PyDateTime_Date`, including subclasses (such as " -":c:data:`PyDateTime_DateTime`). The argument must not be ``NULL``, and the " -"type is not checked:" +"instance of :c:data:`PyDateTime_Date`, including subclasses (such as :c:data:" +"`PyDateTime_DateTime`). The argument must not be ``NULL``, and the type is " +"not checked:" msgstr "" +"Macros para extrair campos de objetos de data. O argumento deve ser uma " +"instância de :c:data:`PyDateTime_Date`, incluindo subclasses (como :c:data:" +"`PyDateTime_DateTime`). O argumento não deve ser ``NULL`` e o tipo não está " +"marcado:" #: ../../c-api/datetime.rst:152 msgid "Return the year, as a positive int." @@ -200,6 +243,9 @@ msgid "" "instance of :c:data:`PyDateTime_DateTime`, including subclasses. The " "argument must not be ``NULL``, and the type is not checked:" msgstr "" +"Macros para extrair campos de objetos de data e hora. O argumento deve ser " +"uma instância de :c:data:`PyDateTime_DateTime`, incluindo subclasses. O " +"argumento não deve ser ``NULL`` e o tipo não está verificado:" #: ../../c-api/datetime.rst:171 ../../c-api/datetime.rst:195 msgid "Return the hour, as an int from 0 through 23." @@ -223,6 +269,9 @@ msgid "" "instance of :c:data:`PyDateTime_Time`, including subclasses. The argument " "must not be ``NULL``, and the type is not checked:" msgstr "" +"Macros para extrair campos de objetos de tempo. O argumento deve ser uma " +"instância de :c:data:`PyDateTime_Time`, incluindo subclasses. O argumento " +"não deve ser ``NULL`` e o tipo não é verificado:" #: ../../c-api/datetime.rst:213 msgid "" @@ -230,6 +279,9 @@ msgid "" "instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument " "must not be ``NULL``, and the type is not checked:" msgstr "" +"Macros para extrair campos de objetos time delta. O argumento deve ser uma " +"instância de :c:data:`PyDateTime_Delta`, incluindo subclasses. O argumento " +"não deve ser ``NULL``, e o tipo não é checado:" #: ../../c-api/datetime.rst:219 msgid "Return the number of days, as an int from -999999999 to 999999999." @@ -245,16 +297,21 @@ msgstr "Retorna o número de microssegundos, como um inteiro de 0 a 999999." #: ../../c-api/datetime.rst:238 msgid "Macros for the convenience of modules implementing the DB API:" -msgstr "" +msgstr "Macros para a conveniência de módulos implementando a API de DB:" #: ../../c-api/datetime.rst:242 msgid "" "Create and return a new :class:`datetime.datetime` object given an argument " "tuple suitable for passing to :meth:`datetime.datetime.fromtimestamp()`." msgstr "" +"Cria e retorna um novo objeto :class:`datetime.datetime`, com uma tupla de " +"argumentos adequada para passar para :meth:`datetime.datetime." +"fromtimestamp()`." #: ../../c-api/datetime.rst:248 msgid "" "Create and return a new :class:`datetime.date` object given an argument " "tuple suitable for passing to :meth:`datetime.date.fromtimestamp()`." msgstr "" +"Cria e retorna um novo objeto :class:`datetime.date`, com uma tupla de " +"argumentos adequada para passar para :meth:`datetime.date.fromtimestamp()`." diff --git a/c-api/descriptor.po b/c-api/descriptor.po index ec4c9e5c0..50b1d682c 100644 --- a/c-api/descriptor.po +++ b/c-api/descriptor.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,8 +32,8 @@ msgid "" "\"Descriptors\" are objects that describe some attribute of an object. They " "are found in the dictionary of type objects." msgstr "" -"\"Descriptores\" são objetos que descrevem algum atributo de um objeto. Eles" -" são encontrados no dicionário de objetos de tipo." +"\"Descriptores\" são objetos que descrevem algum atributo de um objeto. Eles " +"são encontrados no dicionário de objetos de tipo." #: ../../c-api/descriptor.rst:15 msgid "The type object for the built-in descriptor types." @@ -39,10 +41,10 @@ msgstr "O tipo de objeto para os tipos de descritores builtins." #: ../../c-api/descriptor.rst:35 msgid "" -"Return true if the descriptor objects *descr* describes a data attribute, or" -" false if it describes a method. *descr* must be a descriptor object; there" -" is no error checking." +"Return true if the descriptor objects *descr* describes a data attribute, or " +"false if it describes a method. *descr* must be a descriptor object; there " +"is no error checking." msgstr "" "Retorna True se os objetos descritores *descr* descrevem um atributo de " -"dados, ou False se os mesmos descrevem um método. *descr* deve ser um objeto" -" descritor; não há verificação de erros." +"dados, ou False se os mesmos descrevem um método. *descr* deve ser um objeto " +"descritor; não há verificação de erros." diff --git a/c-api/dict.po b/c-api/dict.po index 92e8862d9..957296cd6 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -1,21 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Renan Lopes , 2019 -# +# Aline Balogh , 2020 +# Willian C Lopes , 2020 +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Renan Lopes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,23 +34,28 @@ msgstr "Objetos Dictionary" msgid "" "This subtype of :c:type:`PyObject` represents a Python dictionary object." msgstr "" +"Este subtipo do :c:type:`PyObject` representa um objeto dicionário Python." #: ../../c-api/dict.rst:18 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python dictionary " "type. This is the same object as :class:`dict` in the Python layer." msgstr "" +"Esta instância do :c:type:`PyTypeObject` representa o tipo do dicionário " +"Python. Este é o mesmo objeto :class:`dict` na camada do Python." #: ../../c-api/dict.rst:24 msgid "" "Return true if *p* is a dict object or an instance of a subtype of the dict " "type." msgstr "" +"Retorna verdadeiro se *p* é um objeto dict ou uma instância de um subtipo do " +"tipo dict." #: ../../c-api/dict.rst:30 msgid "" -"Return true if *p* is a dict object, but not an instance of a subtype of the" -" dict type." +"Return true if *p* is a dict object, but not an instance of a subtype of the " +"dict type." msgstr "" #: ../../c-api/dict.rst:36 @@ -55,14 +64,14 @@ msgstr "" #: ../../c-api/dict.rst:41 msgid "" -"Return a :class:`types.MappingProxyType` object for a mapping which enforces" -" read-only behavior. This is normally used to create a view to prevent " +"Return a :class:`types.MappingProxyType` object for a mapping which enforces " +"read-only behavior. This is normally used to create a view to prevent " "modification of the dictionary for non-dynamic class types." msgstr "" #: ../../c-api/dict.rst:48 msgid "Empty an existing dictionary of all key-value pairs." -msgstr "" +msgstr "Esvazie um dicionário existente de todos os pares chave-valor. " #: ../../c-api/dict.rst:53 msgid "" @@ -73,21 +82,20 @@ msgstr "" #: ../../c-api/dict.rst:60 msgid "Return a new dictionary that contains the same key-value pairs as *p*." -msgstr "" +msgstr "Retorna um novo dicionário que contém o mesmo chave-valor como *p*." #: ../../c-api/dict.rst:65 msgid "" -"Insert *value* into the dictionary *p* with a key of *key*. *key* must be " -":term:`hashable`; if it isn't, :exc:`TypeError` will be raised. Return ``0``" -" on success or ``-1`` on failure." +"Insert *value* into the dictionary *p* with a key of *key*. *key* must be :" +"term:`hashable`; if it isn't, :exc:`TypeError` will be raised. Return ``0`` " +"on success or ``-1`` on failure." msgstr "" #: ../../c-api/dict.rst:74 msgid "" -"Insert *value* into the dictionary *p* using *key* as a key. *key* should be" -" a :c:type:`const char\\*`. The key object is created using " -"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on " -"failure." +"Insert *value* into the dictionary *p* using *key* as a key. *key* should be " +"a :c:type:`const char\\*`. The key object is created using " +"``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on failure." msgstr "" #: ../../c-api/dict.rst:82 @@ -102,19 +110,21 @@ msgid "" "Remove the entry in dictionary *p* which has a key specified by the string " "*key*. Return ``0`` on success or ``-1`` on failure." msgstr "" +"Remove a entrada no dicionário *p*, que possui uma chave especificada pela " +"string *chave*. Retorna `` 0`` em caso de sucesso ou `` -1`` em caso de " +"falha." #: ../../c-api/dict.rst:95 msgid "" "Return the object from dictionary *p* which has a key *key*. Return " -"``NULL`` if the key *key* is not present, but *without* setting an " -"exception." +"``NULL`` if the key *key* is not present, but *without* setting an exception." msgstr "" #: ../../c-api/dict.rst:98 msgid "" -"Note that exceptions which occur while calling :meth:`__hash__` and " -":meth:`__eq__` methods will get suppressed. To get error reporting use " -":c:func:`PyDict_GetItemWithError()` instead." +"Note that exceptions which occur while calling :meth:`__hash__` and :meth:" +"`__eq__` methods will get suppressed. To get error reporting use :c:func:" +"`PyDict_GetItemWithError()` instead." msgstr "" #: ../../c-api/dict.rst:105 @@ -126,23 +136,22 @@ msgstr "" #: ../../c-api/dict.rst:113 msgid "" -"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a " -":c:type:`const char\\*`, rather than a :c:type:`PyObject\\*`." +"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:" +"type:`const char\\*`, rather than a :c:type:`PyObject\\*`." msgstr "" #: ../../c-api/dict.rst:116 msgid "" -"Note that exceptions which occur while calling :meth:`__hash__` and " -":meth:`__eq__` methods and creating a temporary string object will get " -"suppressed. To get error reporting use :c:func:`PyDict_GetItemWithError()` " -"instead." +"Note that exceptions which occur while calling :meth:`__hash__` and :meth:" +"`__eq__` methods and creating a temporary string object will get suppressed. " +"To get error reporting use :c:func:`PyDict_GetItemWithError()` instead." msgstr "" #: ../../c-api/dict.rst:124 msgid "" "This is the same as the Python-level :meth:`dict.setdefault`. If present, " -"it returns the value corresponding to *key* from the dictionary *p*. If the" -" key is not in the dict, it is inserted with value *defaultobj* and " +"it returns the value corresponding to *key* from the dictionary *p*. If the " +"key is not in the dict, it is inserted with value *defaultobj* and " "*defaultobj* is returned. This function evaluates the hash function of " "*key* only once, instead of evaluating it independently for the lookup and " "the insertion." @@ -150,8 +159,7 @@ msgstr "" #: ../../c-api/dict.rst:134 msgid "" -"Return a :c:type:`PyListObject` containing all the items from the " -"dictionary." +"Return a :c:type:`PyListObject` containing all the items from the dictionary." msgstr "" #: ../../c-api/dict.rst:139 @@ -175,16 +183,16 @@ msgstr "" #: ../../c-api/dict.rst:158 msgid "" -"Iterate over all key-value pairs in the dictionary *p*. The " -":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` " -"prior to the first call to this function to start the iteration; the " -"function returns true for each pair in the dictionary, and false once all " -"pairs have been reported. The parameters *pkey* and *pvalue* should either " -"point to :c:type:`PyObject\\*` variables that will be filled in with each " -"key and value, respectively, or may be ``NULL``. Any references returned " -"through them are borrowed. *ppos* should not be altered during iteration. " -"Its value represents offsets within the internal dictionary structure, and " -"since the structure is sparse, the offsets are not consecutive." +"Iterate over all key-value pairs in the dictionary *p*. The :c:type:" +"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the " +"first call to this function to start the iteration; the function returns " +"true for each pair in the dictionary, and false once all pairs have been " +"reported. The parameters *pkey* and *pvalue* should either point to :c:type:" +"`PyObject\\*` variables that will be filled in with each key and value, " +"respectively, or may be ``NULL``. Any references returned through them are " +"borrowed. *ppos* should not be altered during iteration. Its value " +"represents offsets within the internal dictionary structure, and since the " +"structure is sparse, the offsets are not consecutive." msgstr "" #: ../../c-api/dict.rst:169 @@ -202,19 +210,19 @@ msgstr "" msgid "" "Iterate over mapping object *b* adding key-value pairs to dictionary *a*. " "*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` " -"and :c:func:`PyObject_GetItem`. If *override* is true, existing pairs in *a*" -" will be replaced if a matching key is found in *b*, otherwise pairs will " -"only be added if there is not a matching key in *a*. Return ``0`` on success" -" or ``-1`` if an exception was raised." +"and :c:func:`PyObject_GetItem`. If *override* is true, existing pairs in *a* " +"will be replaced if a matching key is found in *b*, otherwise pairs will " +"only be added if there is not a matching key in *a*. Return ``0`` on success " +"or ``-1`` if an exception was raised." msgstr "" #: ../../c-api/dict.rst:214 msgid "" -"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to " -"``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall " -"back to the iterating over a sequence of key value pairs if the second " -"argument has no \"keys\" attribute. Return ``0`` on success or ``-1`` if an" -" exception was raised." +"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a." +"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back " +"to the iterating over a sequence of key value pairs if the second argument " +"has no \"keys\" attribute. Return ``0`` on success or ``-1`` if an " +"exception was raised." msgstr "" #: ../../c-api/dict.rst:223 @@ -223,10 +231,9 @@ msgid "" "*seq2* must be an iterable object producing iterable objects of length 2, " "viewed as key-value pairs. In case of duplicate keys, the last wins if " "*override* is true, else the first wins. Return ``0`` on success or ``-1`` " -"if an exception was raised. Equivalent Python (except for the return " -"value)::" +"if an exception was raised. Equivalent Python (except for the return value)::" msgstr "" #: ../../c-api/dict.rst:238 msgid "Clear the free list. Return the total number of freed items." -msgstr "" +msgstr "Limpe a lista livre. Retorna o número total de itens liberados." diff --git a/c-api/exceptions.po b/c-api/exceptions.po index 5c02cf57b..0bfb3d10a 100644 --- a/c-api/exceptions.po +++ b/c-api/exceptions.po @@ -1,24 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Misael borges , 2019 # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Richard Nixon , 2019 # Renan Lopes , 2019 -# +# Marco Rougeth , 2019 +# Willian C Lopes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Renan Lopes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Willian C Lopes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,17 +34,26 @@ msgstr "Manipulando Exceções" #: ../../c-api/exceptions.rst:10 msgid "" -"The functions described in this chapter will let you handle and raise Python" -" exceptions. It is important to understand some of the basics of Python " +"The functions described in this chapter will let you handle and raise Python " +"exceptions. It is important to understand some of the basics of Python " "exception handling. It works somewhat like the POSIX :c:data:`errno` " "variable: there is a global indicator (per thread) of the last error that " -"occurred. Most C API functions don't clear this on success, but will set it" -" to indicate the cause of the error on failure. Most C API functions also " -"return an error indicator, usually ``NULL`` if they are supposed to return a" -" pointer, or ``-1`` if they return an integer (exception: the " -":c:func:`PyArg_\\*` functions return ``1`` for success and ``0`` for " -"failure)." -msgstr "" +"occurred. Most C API functions don't clear this on success, but will set it " +"to indicate the cause of the error on failure. Most C API functions also " +"return an error indicator, usually ``NULL`` if they are supposed to return a " +"pointer, or ``-1`` if they return an integer (exception: the :c:func:`PyArg_" +"\\*` functions return ``1`` for success and ``0`` for failure)." +msgstr "" +"As funções descritas nesse capítulo permitem você tratar e gerar exceções em " +"Python. É importante entender alguns princípios básicos no tratamento de " +"exceção no Python. Funciona de forma parecida com a variável POSIX :c:data:" +"`errno` variable:: existe um indicador global (por thread) do último erro " +"ocorrido. A maioria das funções da API C não limpa isso com êxito, mas " +"indica a causa do erro na falha.\n" +"A maioria das funções da API retorna um indicador de erro, geralmente, \"NULL" +"\" se eles devem retornar um ponteiro, or \"-1\" se retornarem um número " +"inteiro (exception: the :c:func:`PyArg_\\*` functions return ``1`` em caso " +"de sucesso e ``0`` em caso de falha)" #: ../../c-api/exceptions.rst:20 msgid "" @@ -59,8 +71,8 @@ msgid "" "set it. It is responsible for either handling the error and clearing the " "exception or returning after cleaning up any resources it holds (such as " "object references or memory allocations); it should *not* continue normally " -"if it is not prepared to handle the error. If returning due to an error, it" -" is important to indicate to the caller that an error has been set. If the " +"if it is not prepared to handle the error. If returning due to an error, it " +"is important to indicate to the caller that an error has been set. If the " "error is not handled or carefully propagated, additional calls into the " "Python/C API may not behave as intended and may fail in mysterious ways." msgstr "" @@ -69,13 +81,13 @@ msgstr "" msgid "" "The error indicator is **not** the result of :func:`sys.exc_info()`. The " "former corresponds to an exception that is not yet caught (and is therefore " -"still propagating), while the latter returns an exception after it is caught" -" (and has therefore stopped propagating)." +"still propagating), while the latter returns an exception after it is caught " +"(and has therefore stopped propagating)." msgstr "" #: ../../c-api/exceptions.rst:44 msgid "Printing and clearing" -msgstr "" +msgstr "Impressão e limpeza " #: ../../c-api/exceptions.rst:49 msgid "" @@ -103,14 +115,14 @@ msgstr "" #: ../../c-api/exceptions.rst:63 msgid "" -"If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`, " -":data:`sys.last_value` and :data:`sys.last_traceback` will be set to the " +"If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`, :" +"data:`sys.last_value` and :data:`sys.last_traceback` will be set to the " "type, value and traceback of the printed exception, respectively." msgstr "" #: ../../c-api/exceptions.rst:70 msgid "Alias for ``PyErr_PrintEx(1)``." -msgstr "" +msgstr "Alias para``PyErr_PrintEx(1)``." #: ../../c-api/exceptions.rst:75 msgid "" @@ -123,13 +135,13 @@ msgstr "" #: ../../c-api/exceptions.rst:80 msgid "" "The function is called with a single argument *obj* that identifies the " -"context in which the unraisable exception occurred. If possible, the repr of" -" *obj* will be printed in the warning message." +"context in which the unraisable exception occurred. If possible, the repr of " +"*obj* will be printed in the warning message." msgstr "" #: ../../c-api/exceptions.rst:84 msgid "An exception must be set when calling this function." -msgstr "" +msgstr "Uma exceção deve ser definida ao chamar essa função." #: ../../c-api/exceptions.rst:88 msgid "Raising exceptions" @@ -141,12 +153,15 @@ msgid "" "convenience, some of these functions will always return a ``NULL`` pointer " "for use in a ``return`` statement." msgstr "" +"Essas funções ajudam a definir o indicador de erro do thread. Por " +"conveniência, algumas dessas funções sempre retornam um ponteiro ``NULL`` ao " +"usar instrução com ``return``." #: ../../c-api/exceptions.rst:97 msgid "" "This is the most common way to set the error indicator. The first argument " -"specifies the exception type; it is normally one of the standard exceptions," -" e.g. :c:data:`PyExc_RuntimeError`. You need not increment its reference " +"specifies the exception type; it is normally one of the standard exceptions, " +"e.g. :c:data:`PyExc_RuntimeError`. You need not increment its reference " "count. The second argument is an error message; it is decoded from " "``'utf-8``'." msgstr "" @@ -156,13 +171,15 @@ msgid "" "This function is similar to :c:func:`PyErr_SetString` but lets you specify " "an arbitrary Python object for the \"value\" of the exception." msgstr "" +"Essa função é semelhante à :c:func:`PyErr_SetString` mas permite especificar " +"um objeto Python arbitrário para o valor da exceção. " #: ../../c-api/exceptions.rst:111 msgid "" "This function sets the error indicator and returns ``NULL``. *exception* " "should be a Python exception class. The *format* and subsequent parameters " -"help format the error message; they have the same meaning and values as in " -":c:func:`PyUnicode_FromFormat`. *format* is an ASCII-encoded string." +"help format the error message; they have the same meaning and values as in :" +"c:func:`PyUnicode_FromFormat`. *format* is an ASCII-encoded string." msgstr "" #: ../../c-api/exceptions.rst:120 @@ -170,15 +187,17 @@ msgid "" "Same as :c:func:`PyErr_Format`, but taking a :c:type:`va_list` argument " "rather than a variable number of arguments." msgstr "" +"Igual a :c:func:`PyErr_Format`, mas usando o argumento :c:type:`va_list` em " +"vez de um número variável de argumentos. " #: ../../c-api/exceptions.rst:128 msgid "This is a shorthand for ``PyErr_SetObject(type, Py_None)``." -msgstr "" +msgstr "Isso é uma abreviação para ``PyErr_SetObject(type, Py_None)``." #: ../../c-api/exceptions.rst:133 msgid "" -"This is a shorthand for ``PyErr_SetString(PyExc_TypeError, message)``, where" -" *message* indicates that a built-in operation was invoked with an illegal " +"This is a shorthand for ``PyErr_SetString(PyExc_TypeError, message)``, where " +"*message* indicates that a built-in operation was invoked with an illegal " "argument. It is mostly for internal use." msgstr "" @@ -188,14 +207,17 @@ msgid "" "``NULL`` so an object allocation function can write ``return " "PyErr_NoMemory();`` when it runs out of memory." msgstr "" +"Essa é uma abreviação para ``PyErr_SetNone(PyExc_MemoryError)``; que retorna " +"``NULL``  para que uma função de aloção de objeto possa escrever ``return " +"PyErr_NoMemory();``  quando ficar sem memória." #: ../../c-api/exceptions.rst:149 msgid "" "This is a convenience function to raise an exception when a C library " "function has returned an error and set the C variable :c:data:`errno`. It " "constructs a tuple object whose first item is the integer :c:data:`errno` " -"value and whose second item is the corresponding error message (gotten from " -":c:func:`strerror`), and then calls ``PyErr_SetObject(type, object)``. On " +"value and whose second item is the corresponding error message (gotten from :" +"c:func:`strerror`), and then calls ``PyErr_SetObject(type, object)``. On " "Unix, when the :c:data:`errno` value is :const:`EINTR`, indicating an " "interrupted system call, this calls :c:func:`PyErr_CheckSignals`, and if " "that set the error indicator, leaves it set to that. The function always " @@ -228,13 +250,13 @@ msgstr "" #: ../../c-api/exceptions.rst:188 msgid "" "This is a convenience function to raise :exc:`WindowsError`. If called with " -"*ierr* of :c:data:`0`, the error code returned by a call to " -":c:func:`GetLastError` is used instead. It calls the Win32 function " -":c:func:`FormatMessage` to retrieve the Windows description of error code " -"given by *ierr* or :c:func:`GetLastError`, then it constructs a tuple object" -" whose first item is the *ierr* value and whose second item is the " -"corresponding error message (gotten from :c:func:`FormatMessage`), and then " -"calls ``PyErr_SetObject(PyExc_WindowsError, object)``. This function always " +"*ierr* of :c:data:`0`, the error code returned by a call to :c:func:" +"`GetLastError` is used instead. It calls the Win32 function :c:func:" +"`FormatMessage` to retrieve the Windows description of error code given by " +"*ierr* or :c:func:`GetLastError`, then it constructs a tuple object whose " +"first item is the *ierr* value and whose second item is the corresponding " +"error message (gotten from :c:func:`FormatMessage`), and then calls " +"``PyErr_SetObject(PyExc_WindowsError, object)``. This function always " "returns ``NULL``." msgstr "" @@ -242,7 +264,7 @@ msgstr "" #: ../../c-api/exceptions.rst:214 ../../c-api/exceptions.rst:222 #: ../../c-api/exceptions.rst:231 ../../c-api/exceptions.rst:240 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." #: ../../c-api/exceptions.rst:202 msgid "" @@ -256,6 +278,9 @@ msgid "" "filename is given as a C string. *filename* is decoded from the filesystem " "encoding (:func:`os.fsdecode`)." msgstr "" +"Similar à :c:func:`PyErr_SetFromWindowsErrWithFilenameObject`, mas o nome do " +"arquivo é dados como uma String C. O nome do arquivo é decodificado a " +"partir do sistema de arquivos (:func:`os.fsdecode`)." #: ../../c-api/exceptions.rst:219 msgid "" @@ -268,19 +293,23 @@ msgid "" "Similar to :c:func:`PyErr_SetExcFromWindowsErrWithFilenameObject`, but " "accepts a second filename object." msgstr "" +"Similar à :c:func:`PyErr_SetExcFromWindowsErrWithFilenameObject`, mas aceita " +"um segundo caminho do objeto." #: ../../c-api/exceptions.rst:237 msgid "" -"Similar to :c:func:`PyErr_SetFromWindowsErrWithFilename`, with an additional" -" parameter specifying the exception type to be raised." +"Similar to :c:func:`PyErr_SetFromWindowsErrWithFilename`, with an additional " +"parameter specifying the exception type to be raised." msgstr "" +"Similar à :c:func:`PyErr_SetFromWindowsErrWithFilename`, com um parâmetro " +"adicional especificando o tipo de exceção a ser gerado. " #: ../../c-api/exceptions.rst:245 msgid "" "This is a convenience function to raise :exc:`ImportError`. *msg* will be " "set as the exception's message string. *name* and *path*, both of which can " -"be ``NULL``, will be set as the :exc:`ImportError`'s respective ``name`` and" -" ``path`` attributes." +"be ``NULL``, will be set as the :exc:`ImportError`'s respective ``name`` and " +"``path`` attributes." msgstr "" #: ../../c-api/exceptions.rst:255 @@ -302,6 +331,7 @@ msgid "" "Like :c:func:`PyErr_SyntaxLocationEx`, but the col_offset parameter is " "omitted." msgstr "" +"Como :c:func:`PyErr_SyntaxLocationEx`, mas o parâmetro col_offset é omitido. " #: ../../c-api/exceptions.rst:279 msgid "" @@ -323,37 +353,37 @@ msgid "" "the user has specified that warnings are to be turned into errors, and in " "that case they will raise an exception. It is also possible that the " "functions raise an exception because of a problem with the warning " -"machinery. The return value is ``0`` if no exception is raised, or ``-1`` if" -" an exception is raised. (It is not possible to determine whether a warning" -" message is actually printed, nor what the reason is for the exception; this" -" is intentional.) If an exception is raised, the caller should do its " -"normal exception handling (for example, :c:func:`Py_DECREF` owned references" -" and return an error value)." +"machinery. The return value is ``0`` if no exception is raised, or ``-1`` if " +"an exception is raised. (It is not possible to determine whether a warning " +"message is actually printed, nor what the reason is for the exception; this " +"is intentional.) If an exception is raised, the caller should do its normal " +"exception handling (for example, :c:func:`Py_DECREF` owned references and " +"return an error value)." msgstr "" #: ../../c-api/exceptions.rst:303 msgid "" -"Issue a warning message. The *category* argument is a warning category (see" -" below) or ``NULL``; the *message* argument is a UTF-8 encoded string. " +"Issue a warning message. The *category* argument is a warning category (see " +"below) or ``NULL``; the *message* argument is a UTF-8 encoded string. " "*stack_level* is a positive number giving a number of stack frames; the " "warning will be issued from the currently executing line of code in that " -"stack frame. A *stack_level* of 1 is the function calling " -":c:func:`PyErr_WarnEx`, 2 is the function above that, and so forth." +"stack frame. A *stack_level* of 1 is the function calling :c:func:" +"`PyErr_WarnEx`, 2 is the function above that, and so forth." msgstr "" #: ../../c-api/exceptions.rst:310 msgid "" -"Warning categories must be subclasses of :c:data:`PyExc_Warning`; " -":c:data:`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`; the " -"default warning category is :c:data:`PyExc_RuntimeWarning`. The standard " -"Python warning categories are available as global variables whose names are " +"Warning categories must be subclasses of :c:data:`PyExc_Warning`; :c:data:" +"`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`; the default " +"warning category is :c:data:`PyExc_RuntimeWarning`. The standard Python " +"warning categories are available as global variables whose names are " "enumerated at :ref:`standardwarningcategories`." msgstr "" #: ../../c-api/exceptions.rst:316 msgid "" -"For information about warning control, see the documentation for the " -":mod:`warnings` module and the :option:`-W` option in the command line " +"For information about warning control, see the documentation for the :mod:" +"`warnings` module and the :option:`-W` option in the command line " "documentation. There is no C API for warning control." msgstr "" @@ -362,14 +392,15 @@ msgid "" "Much like :c:func:`PyErr_SetImportError` but this function allows for " "specifying a subclass of :exc:`ImportError` to raise." msgstr "" +"Muito parecido com :c:func:`PyErr_SetImportError` mas a função permite " +"especificar uma subclasse de :exc:`ImportError` para levantar uma exceção." #: ../../c-api/exceptions.rst:330 msgid "" "Issue a warning message with explicit control over all warning attributes. " -"This is a straightforward wrapper around the Python function " -":func:`warnings.warn_explicit`, see there for more information. The " -"*module* and *registry* arguments may be set to ``NULL`` to get the default " -"effect described there." +"This is a straightforward wrapper around the Python function :func:`warnings." +"warn_explicit`, see there for more information. The *module* and *registry* " +"arguments may be set to ``NULL`` to get the default effect described there." msgstr "" #: ../../c-api/exceptions.rst:341 @@ -381,15 +412,15 @@ msgstr "" #: ../../c-api/exceptions.rst:348 msgid "" -"Function similar to :c:func:`PyErr_WarnEx`, but use " -":c:func:`PyUnicode_FromFormat` to format the warning message. *format* is " -"an ASCII-encoded string." +"Function similar to :c:func:`PyErr_WarnEx`, but use :c:func:" +"`PyUnicode_FromFormat` to format the warning message. *format* is an ASCII-" +"encoded string." msgstr "" #: ../../c-api/exceptions.rst:357 msgid "" -"Function similar to :c:func:`PyErr_WarnFormat`, but *category* is " -":exc:`ResourceWarning` and pass *source* to :func:`warnings.WarningMessage`." +"Function similar to :c:func:`PyErr_WarnFormat`, but *category* is :exc:" +"`ResourceWarning` and it passes *source* to :func:`warnings.WarningMessage`." msgstr "" #: ../../c-api/exceptions.rst:364 @@ -399,19 +430,18 @@ msgstr "Consultando o indicador de erro" #: ../../c-api/exceptions.rst:368 msgid "" "Test whether the error indicator is set. If set, return the exception " -"*type* (the first argument to the last call to one of the " -":c:func:`PyErr_Set\\*` functions or to :c:func:`PyErr_Restore`). If not " -"set, return ``NULL``. You do not own a reference to the return value, so " -"you do not need to :c:func:`Py_DECREF` it." +"*type* (the first argument to the last call to one of the :c:func:`PyErr_Set" +"\\*` functions or to :c:func:`PyErr_Restore`). If not set, return " +"``NULL``. You do not own a reference to the return value, so you do not " +"need to :c:func:`Py_DECREF` it." msgstr "" #: ../../c-api/exceptions.rst:376 msgid "" -"Do not compare the return value to a specific exception; use " -":c:func:`PyErr_ExceptionMatches` instead, shown below. (The comparison " -"could easily fail since the exception may be an instance instead of a class," -" in the case of a class exception, or it may be a subclass of the expected " -"exception.)" +"Do not compare the return value to a specific exception; use :c:func:" +"`PyErr_ExceptionMatches` instead, shown below. (The comparison could easily " +"fail since the exception may be an instance instead of a class, in the case " +"of a class exception, or it may be a subclass of the expected exception.)" msgstr "" #: ../../c-api/exceptions.rst:384 @@ -441,16 +471,19 @@ msgstr "" #: ../../c-api/exceptions.rst:406 msgid "" "This function is normally only used by code that needs to catch exceptions " -"or by code that needs to save and restore the error indicator temporarily, " -"e.g.::" +"or by code that needs to save and restore the error indicator temporarily, e." +"g.::" msgstr "" +"Esta função, normalmente, é usada apenas pelo código que precisa capturar " +"exceções ou pelo código que precisa salvar e restaurar temporariamente o " +"indicador de erros. " #: ../../c-api/exceptions.rst:421 msgid "" "Set the error indicator from the three objects. If the error indicator is " "already set, it is cleared first. If the objects are ``NULL``, the error " -"indicator is cleared. Do not pass a ``NULL`` type and non-``NULL`` value or" -" traceback. The exception type should be a class. Do not pass an invalid " +"indicator is cleared. Do not pass a ``NULL`` type and non-``NULL`` value or " +"traceback. The exception type should be a class. Do not pass an invalid " "exception type or value. (Violating these rules will cause subtle problems " "later.) This call takes away a reference to each object: you must own a " "reference to each object before the call and after the call you no longer " @@ -500,8 +533,8 @@ msgstr "" #: ../../c-api/exceptions.rst:476 msgid "" -"Set the exception info, as known from ``sys.exc_info()``. This refers to an" -" exception that was *already caught*, not to an exception that was freshly " +"Set the exception info, as known from ``sys.exc_info()``. This refers to an " +"exception that was *already caught*, not to an exception that was freshly " "raised. This function steals the references of the arguments. To clear the " "exception state, pass ``NULL`` for all three arguments. For general rules " "about the three arguments, see :c:func:`PyErr_Restore`." @@ -523,9 +556,9 @@ msgstr "Tratamento de sinal" msgid "" "This function interacts with Python's signal handling. It checks whether a " "signal has been sent to the processes and if so, invokes the corresponding " -"signal handler. If the :mod:`signal` module is supported, this can invoke a" -" signal handler written in Python. In all cases, the default effect for " -":const:`SIGINT` is to raise the :exc:`KeyboardInterrupt` exception. If an " +"signal handler. If the :mod:`signal` module is supported, this can invoke a " +"signal handler written in Python. In all cases, the default effect for :" +"const:`SIGINT` is to raise the :exc:`KeyboardInterrupt` exception. If an " "exception is raised the error indicator is set and the function returns " "``-1``; otherwise the function returns ``0``. The error indicator may or " "may not be cleared if it was previously set." @@ -533,32 +566,35 @@ msgstr "" #: ../../c-api/exceptions.rst:519 msgid "" -"Simulate the effect of a :const:`SIGINT` signal arriving. The next time " -":c:func:`PyErr_CheckSignals` is called, the Python signal handler for " -":const:`SIGINT` will be called." +"Simulate the effect of a :const:`SIGINT` signal arriving. The next time :c:" +"func:`PyErr_CheckSignals` is called, the Python signal handler for :const:" +"`SIGINT` will be called." msgstr "" #: ../../c-api/exceptions.rst:523 msgid "" -"If :const:`SIGINT` isn't handled by Python (it was set to " -":data:`signal.SIG_DFL` or :data:`signal.SIG_IGN`), this function does " -"nothing." +"If :const:`SIGINT` isn't handled by Python (it was set to :data:`signal." +"SIG_DFL` or :data:`signal.SIG_IGN`), this function does nothing." msgstr "" #: ../../c-api/exceptions.rst:529 msgid "" -"This utility function specifies a file descriptor to which the signal number" -" is written as a single byte whenever a signal is received. *fd* must be " -"non-blocking. It returns the previous such file descriptor." +"This utility function specifies a file descriptor to which the signal number " +"is written as a single byte whenever a signal is received. *fd* must be non-" +"blocking. It returns the previous such file descriptor." msgstr "" #: ../../c-api/exceptions.rst:533 msgid "" "The value ``-1`` disables the feature; this is the initial state. This is " "equivalent to :func:`signal.set_wakeup_fd` in Python, but without any error " -"checking. *fd* should be a valid file descriptor. The function should only" -" be called from the main thread." +"checking. *fd* should be a valid file descriptor. The function should only " +"be called from the main thread." msgstr "" +"O valor ``-1`` desabilita o recurso; este é o estado inicial. Isso é " +"equivalente à :func:`signal.set_wakeup_fd` em Python, mas sem nenhuma " +"verificação de erro. *fd* deve ser um descritor de arquivo válido. A " +"função só deve ser chamada a partir da thread principal. " #: ../../c-api/exceptions.rst:538 msgid "On Windows, the function now also supports socket handles." @@ -583,8 +619,8 @@ msgid "" "(up to the last dot) of the *name* argument, and the class name is set to " "the last part (after the last dot). The *base* argument can be used to " "specify alternate base classes; it can either be only one class or a tuple " -"of classes. The *dict* argument can be used to specify a dictionary of class" -" variables and methods." +"of classes. The *dict* argument can be used to specify a dictionary of class " +"variables and methods." msgstr "" #: ../../c-api/exceptions.rst:562 @@ -607,16 +643,18 @@ msgstr "" #: ../../c-api/exceptions.rst:581 msgid "" -"Set the traceback associated with the exception to *tb*. Use ``Py_None`` to" -" clear it." +"Set the traceback associated with the exception to *tb*. Use ``Py_None`` to " +"clear it." msgstr "" +"Defina o retorno traceback (situação da pilha de execução) associado à " +"exceção como *tb*. Use ``Py_None`` para limpá-lo." #: ../../c-api/exceptions.rst:587 msgid "" "Return the context (another exception instance during whose handling *ex* " "was raised) associated with the exception as a new reference, as accessible " -"from Python through :attr:`__context__`. If there is no context associated," -" this returns ``NULL``." +"from Python through :attr:`__context__`. If there is no context associated, " +"this returns ``NULL``." msgstr "" #: ../../c-api/exceptions.rst:595 @@ -629,8 +667,8 @@ msgstr "" #: ../../c-api/exceptions.rst:602 msgid "" "Return the cause (either an exception instance, or :const:`None`, set by " -"``raise ... from ...``) associated with the exception as a new reference, as" -" accessible from Python through :attr:`__cause__`." +"``raise ... from ...``) associated with the exception as a new reference, as " +"accessible from Python through :attr:`__cause__`." msgstr "" #: ../../c-api/exceptions.rst:609 @@ -644,6 +682,8 @@ msgstr "" msgid "" ":attr:`__suppress_context__` is implicitly set to ``True`` by this function." msgstr "" +":attr:`__suppress_context__` para essa função é definido ``True`` , " +"implicitamente. " #: ../../c-api/exceptions.rst:619 msgid "Unicode Exception Objects" @@ -654,56 +694,63 @@ msgid "" "The following functions are used to create and modify Unicode exceptions " "from C." msgstr "" -"As seguintes funções são usadas para criar e modificar exceções Unicode de " -"C." +"As seguintes funções são usadas para criar e modificar exceções Unicode de C." #: ../../c-api/exceptions.rst:625 msgid "" "Create a :class:`UnicodeDecodeError` object with the attributes *encoding*, " -"*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are" -" UTF-8 encoded strings." +"*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are " +"UTF-8 encoded strings." msgstr "" #: ../../c-api/exceptions.rst:631 msgid "" "Create a :class:`UnicodeEncodeError` object with the attributes *encoding*, " -"*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are" -" UTF-8 encoded strings." +"*object*, *length*, *start*, *end* and *reason*. *encoding* and *reason* are " +"UTF-8 encoded strings." msgstr "" #: ../../c-api/exceptions.rst:637 msgid "" -"Create a :class:`UnicodeTranslateError` object with the attributes *object*," -" *length*, *start*, *end* and *reason*. *reason* is a UTF-8 encoded string." +"Create a :class:`UnicodeTranslateError` object with the attributes *object*, " +"*length*, *start*, *end* and *reason*. *reason* is a UTF-8 encoded string." msgstr "" #: ../../c-api/exceptions.rst:643 msgid "Return the *encoding* attribute of the given exception object." -msgstr "" +msgstr "Retorna o atributo * encoding* do objeto dado na exceção." #: ../../c-api/exceptions.rst:649 msgid "Return the *object* attribute of the given exception object." -msgstr "" +msgstr "Retorna o atributo * object * do objeto dado na exceção." #: ../../c-api/exceptions.rst:655 msgid "" -"Get the *start* attribute of the given exception object and place it into " -"*\\*start*. *start* must not be ``NULL``. Return ``0`` on success, ``-1`` " +"Get the *start* attribute of the given exception object and place it into *" +"\\*start*. *start* must not be ``NULL``. Return ``0`` on success, ``-1`` " "on failure." msgstr "" +"Obtenha o atributo *start* do objeto da exceção coloque-o em *\\*start*. " +"*start* must notnão deve ser ``NULL``. Retorna ``0`` se não der erro, " +"``-1`` caso dê erro.." #: ../../c-api/exceptions.rst:663 msgid "" "Set the *start* attribute of the given exception object to *start*. Return " "``0`` on success, ``-1`` on failure." msgstr "" +"Defina o atributo *start* dado no objeto de exceção *start*. Em caso de " +"sucesso, retorna ``0``, em caso de falha, retorna ``-1``." #: ../../c-api/exceptions.rst:670 msgid "" -"Get the *end* attribute of the given exception object and place it into " -"*\\*end*. *end* must not be ``NULL``. Return ``0`` on success, ``-1`` on " +"Get the *end* attribute of the given exception object and place it into *" +"\\*end*. *end* must not be ``NULL``. Return ``0`` on success, ``-1`` on " "failure." msgstr "" +"Obtenha o atributo *end* dado no objeto de exceção e coloque *\\*end*. O " +"*end* não deve ser ``NULL``. Em caso de sucesso, retorna ``0``, em caso de " +"falha, retorna ``-1``." #: ../../c-api/exceptions.rst:678 msgid "" @@ -713,7 +760,7 @@ msgstr "" #: ../../c-api/exceptions.rst:685 msgid "Return the *reason* attribute of the given exception object." -msgstr "" +msgstr "Retorna o atributo *reason* dado no objeto da exceção." #: ../../c-api/exceptions.rst:691 msgid "" @@ -736,12 +783,14 @@ msgstr "" #: ../../c-api/exceptions.rst:705 msgid "Marks a point where a recursive C-level call is about to be performed." msgstr "" +"Marca um ponto em que a chamada recursiva em nível C está prestes a ser " +"executada. " #: ../../c-api/exceptions.rst:707 msgid "" "If :const:`USE_STACKCHECK` is defined, this function checks if the OS stack " -"overflowed using :c:func:`PyOS_CheckStack`. In this is the case, it sets a " -":exc:`MemoryError` and returns a nonzero value." +"overflowed using :c:func:`PyOS_CheckStack`. In this is the case, it sets a :" +"exc:`MemoryError` and returns a nonzero value." msgstr "" #: ../../c-api/exceptions.rst:711 @@ -767,8 +816,8 @@ msgstr "" #: ../../c-api/exceptions.rst:724 msgid "" "Properly implementing :c:member:`~PyTypeObject.tp_repr` for container types " -"requires special recursion handling. In addition to protecting the stack, " -":c:member:`~PyTypeObject.tp_repr` also needs to track objects to prevent " +"requires special recursion handling. In addition to protecting the stack, :" +"c:member:`~PyTypeObject.tp_repr` also needs to track objects to prevent " "cycles. The following two functions facilitate this functionality. " "Effectively, these are the C equivalent to :func:`reprlib.recursive_repr`." msgstr "" @@ -778,14 +827,15 @@ msgid "" "Called at the beginning of the :c:member:`~PyTypeObject.tp_repr` " "implementation to detect cycles." msgstr "" +"Chamado no início da implementação :c:member:`~PyTypeObject.tp_repr` para " +"detectar ciclos. " #: ../../c-api/exceptions.rst:735 msgid "" "If the object has already been processed, the function returns a positive " "integer. In that case the :c:member:`~PyTypeObject.tp_repr` implementation " -"should return a string object indicating a cycle. As examples, " -":class:`dict` objects return ``{...}`` and :class:`list` objects return " -"``[...]``." +"should return a string object indicating a cycle. As examples, :class:" +"`dict` objects return ``{...}`` and :class:`list` objects return ``[...]``." msgstr "" #: ../../c-api/exceptions.rst:741 @@ -794,18 +844,25 @@ msgid "" "reached. In that case the :c:member:`~PyTypeObject.tp_repr` implementation " "should typically return ``NULL``." msgstr "" +"A função retornará um inteiro negativo se o limite da recursão for atingido. " +"Nesse caso a implementação :c:member:`~PyTypeObject.tp_repr` deverá, " +"normalmente,. retornar ``NULL``." #: ../../c-api/exceptions.rst:745 msgid "" -"Otherwise, the function returns zero and the " -":c:member:`~PyTypeObject.tp_repr` implementation can continue normally." +"Otherwise, the function returns zero and the :c:member:`~PyTypeObject." +"tp_repr` implementation can continue normally." msgstr "" +"Caso contrário, a função retorna zero e a implementação :c:member:" +"`~PyTypeObject.tp_repr` poderá continuar normalmente. " #: ../../c-api/exceptions.rst:750 msgid "" -"Ends a :c:func:`Py_ReprEnter`. Must be called once for each invocation of " -":c:func:`Py_ReprEnter` that returns zero." +"Ends a :c:func:`Py_ReprEnter`. Must be called once for each invocation of :" +"c:func:`Py_ReprEnter` that returns zero." msgstr "" +"Termina a :c:func:`Py_ReprEnter`. Deve ser chamado uma vez para cada chamada " +"de :c:func:`Py_ReprEnter` que retorna zero. " #: ../../c-api/exceptions.rst:757 msgid "Standard Exceptions" @@ -813,119 +870,119 @@ msgstr "Exceções Padrão" #: ../../c-api/exceptions.rst:759 msgid "" -"All standard Python exceptions are available as global variables whose names" -" are ``PyExc_`` followed by the Python exception name. These have the type " -":c:type:`PyObject\\*`; they are all class objects. For completeness, here " +"All standard Python exceptions are available as global variables whose names " +"are ``PyExc_`` followed by the Python exception name. These have the type :" +"c:type:`PyObject\\*`; they are all class objects. For completeness, here " "are all the variables:" msgstr "" #: ../../c-api/exceptions.rst:820 ../../c-api/exceptions.rst:953 -#: ../../c-api/exceptions.rst:1001 +#: ../../c-api/exceptions.rst:998 msgid "C Name" -msgstr "" +msgstr "C Name" -#: ../../c-api/exceptions.rst:820 ../../c-api/exceptions.rst:1001 +#: ../../c-api/exceptions.rst:820 ../../c-api/exceptions.rst:998 msgid "Python Name" -msgstr "" +msgstr "Python Name" #: ../../c-api/exceptions.rst:820 ../../c-api/exceptions.rst:953 -#: ../../c-api/exceptions.rst:1001 +#: ../../c-api/exceptions.rst:998 msgid "Notes" msgstr "Notas" #: ../../c-api/exceptions.rst:822 msgid ":c:data:`PyExc_BaseException`" -msgstr "" +msgstr ":c:data:`PyExc_BaseException`" #: ../../c-api/exceptions.rst:822 msgid ":exc:`BaseException`" -msgstr "" +msgstr ":exc:`BaseException`" #: ../../c-api/exceptions.rst:822 ../../c-api/exceptions.rst:824 #: ../../c-api/exceptions.rst:826 ../../c-api/exceptions.rst:872 -#: ../../c-api/exceptions.rst:884 ../../c-api/exceptions.rst:1003 +#: ../../c-api/exceptions.rst:884 ../../c-api/exceptions.rst:1000 msgid "\\(1)" msgstr "\\(1)" #: ../../c-api/exceptions.rst:824 msgid ":c:data:`PyExc_Exception`" -msgstr "" +msgstr ":c:data:`PyExc_Exception`" #: ../../c-api/exceptions.rst:824 msgid ":exc:`Exception`" -msgstr "" +msgstr ":exc:`Exception`" #: ../../c-api/exceptions.rst:826 msgid ":c:data:`PyExc_ArithmeticError`" -msgstr "" +msgstr ":c:data:`PyExc_ArithmeticError`" #: ../../c-api/exceptions.rst:826 msgid ":exc:`ArithmeticError`" -msgstr "" +msgstr ":exc:`ArithmeticError`" #: ../../c-api/exceptions.rst:828 msgid ":c:data:`PyExc_AssertionError`" -msgstr "" +msgstr ":c:data:`PyExc_AssertionError`" #: ../../c-api/exceptions.rst:828 msgid ":exc:`AssertionError`" -msgstr "" +msgstr ":exc:`AssertionError`" #: ../../c-api/exceptions.rst:830 msgid ":c:data:`PyExc_AttributeError`" -msgstr "" +msgstr ":c:data:`PyExc_AttributeError`" #: ../../c-api/exceptions.rst:830 msgid ":exc:`AttributeError`" -msgstr "" +msgstr ":exc:`AttributeError`" #: ../../c-api/exceptions.rst:832 msgid ":c:data:`PyExc_BlockingIOError`" -msgstr "" +msgstr ":c:data:`PyExc_BlockingIOError`" #: ../../c-api/exceptions.rst:832 msgid ":exc:`BlockingIOError`" -msgstr "" +msgstr ":exc:`BlockingIOError`" #: ../../c-api/exceptions.rst:834 msgid ":c:data:`PyExc_BrokenPipeError`" -msgstr "" +msgstr ":c:data:`PyExc_BrokenPipeError`" #: ../../c-api/exceptions.rst:834 msgid ":exc:`BrokenPipeError`" -msgstr "" +msgstr ":exc:`BrokenPipeError`" #: ../../c-api/exceptions.rst:836 msgid ":c:data:`PyExc_BufferError`" -msgstr "" +msgstr ":c:data:`PyExc_BufferError`" #: ../../c-api/exceptions.rst:836 msgid ":exc:`BufferError`" -msgstr "" +msgstr ":exc:`BufferError`" #: ../../c-api/exceptions.rst:838 msgid ":c:data:`PyExc_ChildProcessError`" -msgstr "" +msgstr ":c:data:`PyExc_ChildProcessError`" #: ../../c-api/exceptions.rst:838 msgid ":exc:`ChildProcessError`" -msgstr "" +msgstr ":exc:`ChildProcessError`" #: ../../c-api/exceptions.rst:840 msgid ":c:data:`PyExc_ConnectionAbortedError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionAbortedError`" #: ../../c-api/exceptions.rst:840 msgid ":exc:`ConnectionAbortedError`" -msgstr "" +msgstr ":exc:`ConnectionAbortedError`" #: ../../c-api/exceptions.rst:842 msgid ":c:data:`PyExc_ConnectionError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionError`" #: ../../c-api/exceptions.rst:842 msgid ":exc:`ConnectionError`" -msgstr "" +msgstr ":exc:`ConnectionError`" #: ../../c-api/exceptions.rst:844 msgid ":c:data:`PyExc_ConnectionRefusedError`" @@ -937,203 +994,203 @@ msgstr ":exc:`ConnectionRefusedError`" #: ../../c-api/exceptions.rst:846 msgid ":c:data:`PyExc_ConnectionResetError`" -msgstr "" +msgstr ":c:data:`PyExc_ConnectionResetError`" #: ../../c-api/exceptions.rst:846 msgid ":exc:`ConnectionResetError`" -msgstr "" +msgstr ":exc:`ConnectionResetError`" #: ../../c-api/exceptions.rst:848 msgid ":c:data:`PyExc_EOFError`" -msgstr "" +msgstr ":c:data:`PyExc_EOFError`" #: ../../c-api/exceptions.rst:848 msgid ":exc:`EOFError`" -msgstr "" +msgstr ":exc:`EOFError`" #: ../../c-api/exceptions.rst:850 msgid ":c:data:`PyExc_FileExistsError`" -msgstr "" +msgstr ":c:data:`PyExc_FileExistsError`" #: ../../c-api/exceptions.rst:850 msgid ":exc:`FileExistsError`" -msgstr "" +msgstr ":exc:`FileExistsError`" #: ../../c-api/exceptions.rst:852 msgid ":c:data:`PyExc_FileNotFoundError`" -msgstr "" +msgstr ":c:data:`PyExc_FileNotFoundError`" #: ../../c-api/exceptions.rst:852 msgid ":exc:`FileNotFoundError`" -msgstr "" +msgstr ":exc:`FileNotFoundError`" #: ../../c-api/exceptions.rst:854 msgid ":c:data:`PyExc_FloatingPointError`" -msgstr "" +msgstr ":c:data:`PyExc_FloatingPointError`" #: ../../c-api/exceptions.rst:854 msgid ":exc:`FloatingPointError`" -msgstr "" +msgstr ":exc:`FloatingPointError`" #: ../../c-api/exceptions.rst:856 msgid ":c:data:`PyExc_GeneratorExit`" -msgstr "" +msgstr ":c:data:`PyExc_GeneratorExit`" #: ../../c-api/exceptions.rst:856 msgid ":exc:`GeneratorExit`" -msgstr "" +msgstr ":exc:`GeneratorExit`" #: ../../c-api/exceptions.rst:858 msgid ":c:data:`PyExc_ImportError`" -msgstr "" +msgstr ":c:data:`PyExc_ImportError`" #: ../../c-api/exceptions.rst:858 msgid ":exc:`ImportError`" -msgstr "" +msgstr ":exc:`ImportError`" #: ../../c-api/exceptions.rst:860 msgid ":c:data:`PyExc_IndentationError`" -msgstr "" +msgstr ":c:data:`PyExc_IndentationError`" #: ../../c-api/exceptions.rst:860 msgid ":exc:`IndentationError`" -msgstr "" +msgstr ":exc:`IndentationError`" #: ../../c-api/exceptions.rst:862 msgid ":c:data:`PyExc_IndexError`" -msgstr "" +msgstr ":c:data:`PyExc_IndexError`" #: ../../c-api/exceptions.rst:862 msgid ":exc:`IndexError`" -msgstr "" +msgstr ":exc:`IndexError`" #: ../../c-api/exceptions.rst:864 msgid ":c:data:`PyExc_InterruptedError`" -msgstr "" +msgstr ":c:data:`PyExc_InterruptedError`" #: ../../c-api/exceptions.rst:864 msgid ":exc:`InterruptedError`" -msgstr "" +msgstr ":exc:`InterruptedError`" #: ../../c-api/exceptions.rst:866 msgid ":c:data:`PyExc_IsADirectoryError`" -msgstr "" +msgstr ":c:data:`PyExc_IsADirectoryError`" #: ../../c-api/exceptions.rst:866 msgid ":exc:`IsADirectoryError`" -msgstr "" +msgstr ":exc:`IsADirectoryError`" #: ../../c-api/exceptions.rst:868 msgid ":c:data:`PyExc_KeyError`" -msgstr "" +msgstr ":c:data:`PyExc_KeyError`" #: ../../c-api/exceptions.rst:868 msgid ":exc:`KeyError`" -msgstr "" +msgstr ":exc:`KeyError`" #: ../../c-api/exceptions.rst:870 msgid ":c:data:`PyExc_KeyboardInterrupt`" -msgstr "" +msgstr ":c:data:`PyExc_KeyboardInterrupt`" #: ../../c-api/exceptions.rst:870 msgid ":exc:`KeyboardInterrupt`" -msgstr "" +msgstr ":exc:`KeyboardInterrupt`" #: ../../c-api/exceptions.rst:872 msgid ":c:data:`PyExc_LookupError`" -msgstr "" +msgstr ":c:data:`PyExc_LookupError`" #: ../../c-api/exceptions.rst:872 msgid ":exc:`LookupError`" -msgstr "" +msgstr ":exc:`LookupError`" #: ../../c-api/exceptions.rst:874 msgid ":c:data:`PyExc_MemoryError`" -msgstr "" +msgstr ":c:data:`PyExc_MemoryError`" #: ../../c-api/exceptions.rst:874 msgid ":exc:`MemoryError`" -msgstr "" +msgstr ":exc:`MemoryError`" #: ../../c-api/exceptions.rst:876 msgid ":c:data:`PyExc_ModuleNotFoundError`" -msgstr "" +msgstr ":c:data:`PyExc_ModuleNotFoundError`" #: ../../c-api/exceptions.rst:876 msgid ":exc:`ModuleNotFoundError`" -msgstr "" +msgstr ":exc:`ModuleNotFoundError`" #: ../../c-api/exceptions.rst:878 msgid ":c:data:`PyExc_NameError`" -msgstr "" +msgstr ":c:data:`PyExc_NameError`" #: ../../c-api/exceptions.rst:878 msgid ":exc:`NameError`" -msgstr "" +msgstr ":exc:`NameError`" #: ../../c-api/exceptions.rst:880 msgid ":c:data:`PyExc_NotADirectoryError`" -msgstr "" +msgstr ":c:data:`PyExc_NotADirectoryError`" #: ../../c-api/exceptions.rst:880 msgid ":exc:`NotADirectoryError`" -msgstr "" +msgstr ":exc:`NotADirectoryError`" #: ../../c-api/exceptions.rst:882 msgid ":c:data:`PyExc_NotImplementedError`" -msgstr "" +msgstr ":c:data:`PyExc_NotImplementedError`" #: ../../c-api/exceptions.rst:882 msgid ":exc:`NotImplementedError`" -msgstr "" +msgstr ":exc:`NotImplementedError`" #: ../../c-api/exceptions.rst:884 msgid ":c:data:`PyExc_OSError`" -msgstr "" +msgstr ":c:data:`PyExc_OSError`" #: ../../c-api/exceptions.rst:884 msgid ":exc:`OSError`" -msgstr "" +msgstr ":exc:`OSError`" #: ../../c-api/exceptions.rst:886 msgid ":c:data:`PyExc_OverflowError`" -msgstr "" +msgstr ":c:data:`PyExc_OverflowError`" #: ../../c-api/exceptions.rst:886 msgid ":exc:`OverflowError`" -msgstr "" +msgstr ":exc:`OverflowError`" #: ../../c-api/exceptions.rst:888 msgid ":c:data:`PyExc_PermissionError`" -msgstr "" +msgstr ":c:data:`PyExc_PermissionError`" #: ../../c-api/exceptions.rst:888 msgid ":exc:`PermissionError`" -msgstr "" +msgstr ":exc:`PermissionError`" #: ../../c-api/exceptions.rst:890 msgid ":c:data:`PyExc_ProcessLookupError`" -msgstr "" +msgstr ":c:data:`PyExc_ProcessLookupError`" #: ../../c-api/exceptions.rst:890 msgid ":exc:`ProcessLookupError`" -msgstr "" +msgstr ":exc:`ProcessLookupError`" #: ../../c-api/exceptions.rst:892 msgid ":c:data:`PyExc_RecursionError`" -msgstr "" +msgstr ":c:data:`PyExc_RecursionError`" #: ../../c-api/exceptions.rst:892 msgid ":exc:`RecursionError`" -msgstr "" +msgstr ":exc:`RecursionError`" #: ../../c-api/exceptions.rst:894 msgid ":c:data:`PyExc_ReferenceError`" -msgstr "" +msgstr ":c:data:`PyExc_ReferenceError`" #: ../../c-api/exceptions.rst:894 msgid ":exc:`ReferenceError`" -msgstr "" +msgstr ":exc:`ReferenceError`" #: ../../c-api/exceptions.rst:894 msgid "\\(2)" @@ -1141,7 +1198,7 @@ msgstr "\\(2)" #: ../../c-api/exceptions.rst:896 msgid ":c:data:`PyExc_RuntimeError`" -msgstr "" +msgstr ":c:data:`PyExc_RuntimeError`" #: ../../c-api/exceptions.rst:896 msgid ":exc:`RuntimeError`" @@ -1149,160 +1206,167 @@ msgstr ":exc:`RuntimeError`" #: ../../c-api/exceptions.rst:898 msgid ":c:data:`PyExc_StopAsyncIteration`" -msgstr "" +msgstr ":c:data:`PyExc_StopAsyncIteration`" #: ../../c-api/exceptions.rst:898 msgid ":exc:`StopAsyncIteration`" -msgstr "" +msgstr ":exc:`StopAsyncIteration`" #: ../../c-api/exceptions.rst:900 msgid ":c:data:`PyExc_StopIteration`" -msgstr "" +msgstr ":c:data:`PyExc_StopIteration`" #: ../../c-api/exceptions.rst:900 msgid ":exc:`StopIteration`" -msgstr "" +msgstr ":exc:`StopIteration`" #: ../../c-api/exceptions.rst:902 msgid ":c:data:`PyExc_SyntaxError`" -msgstr "" +msgstr ":c:data:`PyExc_SyntaxError`" #: ../../c-api/exceptions.rst:902 msgid ":exc:`SyntaxError`" -msgstr "" +msgstr ":exc:`SyntaxError`" #: ../../c-api/exceptions.rst:904 msgid ":c:data:`PyExc_SystemError`" -msgstr "" +msgstr ":c:data:`PyExc_SystemError`" #: ../../c-api/exceptions.rst:904 msgid ":exc:`SystemError`" -msgstr "" +msgstr ":exc:`SystemError`" #: ../../c-api/exceptions.rst:906 msgid ":c:data:`PyExc_SystemExit`" -msgstr "" +msgstr ":c:data:`PyExc_SystemExit`" #: ../../c-api/exceptions.rst:906 msgid ":exc:`SystemExit`" -msgstr "" +msgstr ":exc:`SystemExit`" #: ../../c-api/exceptions.rst:908 msgid ":c:data:`PyExc_TabError`" -msgstr "" +msgstr ":c:data:`PyExc_TabError`" #: ../../c-api/exceptions.rst:908 msgid ":exc:`TabError`" -msgstr "" +msgstr ":exc:`TabError`" #: ../../c-api/exceptions.rst:910 msgid ":c:data:`PyExc_TimeoutError`" -msgstr "" +msgstr ":c:data:`PyExc_TimeoutError`" #: ../../c-api/exceptions.rst:910 msgid ":exc:`TimeoutError`" -msgstr "" +msgstr ":exc:`TimeoutError`" #: ../../c-api/exceptions.rst:912 msgid ":c:data:`PyExc_TypeError`" -msgstr "" +msgstr ":c:data:`PyExc_TypeError`" #: ../../c-api/exceptions.rst:912 msgid ":exc:`TypeError`" -msgstr "" +msgstr ":exc:`TypeError`" #: ../../c-api/exceptions.rst:914 msgid ":c:data:`PyExc_UnboundLocalError`" -msgstr "" +msgstr ":c:data:`PyExc_UnboundLocalError`" #: ../../c-api/exceptions.rst:914 msgid ":exc:`UnboundLocalError`" -msgstr "" +msgstr ":exc:`UnboundLocalError`" #: ../../c-api/exceptions.rst:916 msgid ":c:data:`PyExc_UnicodeDecodeError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeDecodeError`" #: ../../c-api/exceptions.rst:916 msgid ":exc:`UnicodeDecodeError`" -msgstr "" +msgstr ":exc:`UnicodeDecodeError`" #: ../../c-api/exceptions.rst:918 msgid ":c:data:`PyExc_UnicodeEncodeError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeEncodeError`" #: ../../c-api/exceptions.rst:918 msgid ":exc:`UnicodeEncodeError`" -msgstr "" +msgstr ":exc:`UnicodeEncodeError`" #: ../../c-api/exceptions.rst:920 msgid ":c:data:`PyExc_UnicodeError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeError`" #: ../../c-api/exceptions.rst:920 msgid ":exc:`UnicodeError`" -msgstr "" +msgstr ":exc:`UnicodeError`" #: ../../c-api/exceptions.rst:922 msgid ":c:data:`PyExc_UnicodeTranslateError`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeTranslateError`" #: ../../c-api/exceptions.rst:922 msgid ":exc:`UnicodeTranslateError`" -msgstr "" +msgstr ":exc:`UnicodeTranslateError`" #: ../../c-api/exceptions.rst:924 msgid ":c:data:`PyExc_ValueError`" -msgstr "" +msgstr ":c:data:`PyExc_ValueError`" #: ../../c-api/exceptions.rst:924 msgid ":exc:`ValueError`" -msgstr "" +msgstr ":exc:`ValueError`" #: ../../c-api/exceptions.rst:926 msgid ":c:data:`PyExc_ZeroDivisionError`" -msgstr "" +msgstr ":c:data:`PyExc_ZeroDivisionError`" #: ../../c-api/exceptions.rst:926 msgid ":exc:`ZeroDivisionError`" -msgstr "" +msgstr ":exc:`ZeroDivisionError`" #: ../../c-api/exceptions.rst:929 msgid "" -":c:data:`PyExc_BlockingIOError`, :c:data:`PyExc_BrokenPipeError`, " -":c:data:`PyExc_ChildProcessError`, :c:data:`PyExc_ConnectionError`, " -":c:data:`PyExc_ConnectionAbortedError`, " -":c:data:`PyExc_ConnectionRefusedError`, " -":c:data:`PyExc_ConnectionResetError`, :c:data:`PyExc_FileExistsError`, " -":c:data:`PyExc_FileNotFoundError`, :c:data:`PyExc_InterruptedError`, " -":c:data:`PyExc_IsADirectoryError`, :c:data:`PyExc_NotADirectoryError`, " -":c:data:`PyExc_PermissionError`, :c:data:`PyExc_ProcessLookupError` and " -":c:data:`PyExc_TimeoutError` were introduced following :pep:`3151`." -msgstr "" +":c:data:`PyExc_BlockingIOError`, :c:data:`PyExc_BrokenPipeError`, :c:data:" +"`PyExc_ChildProcessError`, :c:data:`PyExc_ConnectionError`, :c:data:" +"`PyExc_ConnectionAbortedError`, :c:data:`PyExc_ConnectionRefusedError`, :c:" +"data:`PyExc_ConnectionResetError`, :c:data:`PyExc_FileExistsError`, :c:data:" +"`PyExc_FileNotFoundError`, :c:data:`PyExc_InterruptedError`, :c:data:" +"`PyExc_IsADirectoryError`, :c:data:`PyExc_NotADirectoryError`, :c:data:" +"`PyExc_PermissionError`, :c:data:`PyExc_ProcessLookupError` and :c:data:" +"`PyExc_TimeoutError` were introduced following :pep:`3151`." +msgstr "" +":c:data:`PyExc_BlockingIOError`, :c:data:`PyExc_BrokenPipeError`, :c:data:" +"`PyExc_ChildProcessError`, :c:data:`PyExc_ConnectionError`, :c:data:" +"`PyExc_ConnectionAbortedError`, :c:data:`PyExc_ConnectionRefusedError`, :c:" +"data:`PyExc_ConnectionResetError`, :c:data:`PyExc_FileExistsError`, :c:data:" +"`PyExc_FileNotFoundError`, :c:data:`PyExc_InterruptedError`, :c:data:" +"`PyExc_IsADirectoryError`, :c:data:`PyExc_NotADirectoryError`, :c:data:" +"`PyExc_PermissionError`, :c:data:`PyExc_ProcessLookupError` and :c:data:" +"`PyExc_TimeoutError` were introduced following :pep:`3151`." #: ../../c-api/exceptions.rst:939 msgid ":c:data:`PyExc_StopAsyncIteration` and :c:data:`PyExc_RecursionError`." -msgstr "" +msgstr ":c:data:`PyExc_StopAsyncIteration` and :c:data:`PyExc_RecursionError`." #: ../../c-api/exceptions.rst:942 msgid ":c:data:`PyExc_ModuleNotFoundError`." -msgstr "" +msgstr ":c:data:`PyExc_ModuleNotFoundError`." #: ../../c-api/exceptions.rst:945 msgid "These are compatibility aliases to :c:data:`PyExc_OSError`:" -msgstr "" +msgstr "Esses são os aliases compatíveis para :c:data:`PyExc_OSError`:" #: ../../c-api/exceptions.rst:955 msgid ":c:data:`PyExc_EnvironmentError`" -msgstr "" +msgstr ":c:data:`PyExc_EnvironmentError`" #: ../../c-api/exceptions.rst:957 msgid ":c:data:`PyExc_IOError`" -msgstr "" +msgstr ":c:data:`PyExc_IOError`" #: ../../c-api/exceptions.rst:959 msgid ":c:data:`PyExc_WindowsError`" -msgstr "" +msgstr ":c:data:`PyExc_WindowsError`" #: ../../c-api/exceptions.rst:959 msgid "\\(3)" @@ -1312,7 +1376,7 @@ msgstr "\\(3)" msgid "These aliases used to be separate exception types." msgstr "Esses aliases costumavam ser tipos de exceção separados." -#: ../../c-api/exceptions.rst:965 ../../c-api/exceptions.rst:1029 +#: ../../c-api/exceptions.rst:965 ../../c-api/exceptions.rst:1026 msgid "Notes:" msgstr "Notas:" @@ -1321,119 +1385,117 @@ msgid "This is a base class for other standard exceptions." msgstr "Esta é uma classe base para outras exceções padrão." #: ../../c-api/exceptions.rst:971 -msgid "This is the same as :exc:`weakref.ReferenceError`." -msgstr "" - -#: ../../c-api/exceptions.rst:974 msgid "" "Only defined on Windows; protect code that uses this by testing that the " "preprocessor macro ``MS_WINDOWS`` is defined." msgstr "" +"Defina apenas no Windows; proteja o código que usa isso testando se a macro " +"do pré-processador ``MS_WINDOWS`` está definida. " -#: ../../c-api/exceptions.rst:980 +#: ../../c-api/exceptions.rst:977 msgid "Standard Warning Categories" -msgstr "" +msgstr "Categorias de aviso padrão" -#: ../../c-api/exceptions.rst:982 +#: ../../c-api/exceptions.rst:979 msgid "" "All standard Python warning categories are available as global variables " -"whose names are ``PyExc_`` followed by the Python exception name. These have" -" the type :c:type:`PyObject\\*`; they are all class objects. For " +"whose names are ``PyExc_`` followed by the Python exception name. These have " +"the type :c:type:`PyObject\\*`; they are all class objects. For " "completeness, here are all the variables:" msgstr "" -#: ../../c-api/exceptions.rst:1003 +#: ../../c-api/exceptions.rst:1000 msgid ":c:data:`PyExc_Warning`" -msgstr "" +msgstr ":c:data:`PyExc_Warning`" -#: ../../c-api/exceptions.rst:1003 +#: ../../c-api/exceptions.rst:1000 msgid ":exc:`Warning`" -msgstr "" +msgstr ":exc:`Warning`" -#: ../../c-api/exceptions.rst:1005 +#: ../../c-api/exceptions.rst:1002 msgid ":c:data:`PyExc_BytesWarning`" -msgstr "" +msgstr ":c:data:`PyExc_BytesWarning`" -#: ../../c-api/exceptions.rst:1005 +#: ../../c-api/exceptions.rst:1002 msgid ":exc:`BytesWarning`" msgstr ":exc:`BytesWarning`" -#: ../../c-api/exceptions.rst:1007 +#: ../../c-api/exceptions.rst:1004 msgid ":c:data:`PyExc_DeprecationWarning`" -msgstr "" +msgstr ":c:data:`PyExc_DeprecationWarning`" -#: ../../c-api/exceptions.rst:1007 +#: ../../c-api/exceptions.rst:1004 msgid ":exc:`DeprecationWarning`" -msgstr "" +msgstr ":exc:`DeprecationWarning`" -#: ../../c-api/exceptions.rst:1009 +#: ../../c-api/exceptions.rst:1006 msgid ":c:data:`PyExc_FutureWarning`" -msgstr "" +msgstr ":c:data:`PyExc_FutureWarning`" -#: ../../c-api/exceptions.rst:1009 +#: ../../c-api/exceptions.rst:1006 msgid ":exc:`FutureWarning`" -msgstr "" +msgstr ":exc:`FutureWarning`" -#: ../../c-api/exceptions.rst:1011 +#: ../../c-api/exceptions.rst:1008 msgid ":c:data:`PyExc_ImportWarning`" -msgstr "" +msgstr ":c:data:`PyExc_ImportWarning`" -#: ../../c-api/exceptions.rst:1011 +#: ../../c-api/exceptions.rst:1008 msgid ":exc:`ImportWarning`" -msgstr "" +msgstr ":exc:`ImportWarning`" -#: ../../c-api/exceptions.rst:1013 +#: ../../c-api/exceptions.rst:1010 msgid ":c:data:`PyExc_PendingDeprecationWarning`" -msgstr "" +msgstr ":c:data:`PyExc_PendingDeprecationWarning`" -#: ../../c-api/exceptions.rst:1013 +#: ../../c-api/exceptions.rst:1010 msgid ":exc:`PendingDeprecationWarning`" -msgstr "" +msgstr ":exc:`PendingDeprecationWarning`" -#: ../../c-api/exceptions.rst:1015 +#: ../../c-api/exceptions.rst:1012 msgid ":c:data:`PyExc_ResourceWarning`" -msgstr "" +msgstr ":c:data:`PyExc_ResourceWarning`" -#: ../../c-api/exceptions.rst:1015 +#: ../../c-api/exceptions.rst:1012 msgid ":exc:`ResourceWarning`" -msgstr "" +msgstr ":exc:`ResourceWarning`" -#: ../../c-api/exceptions.rst:1017 +#: ../../c-api/exceptions.rst:1014 msgid ":c:data:`PyExc_RuntimeWarning`" -msgstr "" +msgstr ":c:data:`PyExc_RuntimeWarning`" -#: ../../c-api/exceptions.rst:1017 +#: ../../c-api/exceptions.rst:1014 msgid ":exc:`RuntimeWarning`" -msgstr "" +msgstr ":exc:`RuntimeWarning`" -#: ../../c-api/exceptions.rst:1019 +#: ../../c-api/exceptions.rst:1016 msgid ":c:data:`PyExc_SyntaxWarning`" -msgstr "" +msgstr ":c:data:`PyExc_SyntaxWarning`" -#: ../../c-api/exceptions.rst:1019 +#: ../../c-api/exceptions.rst:1016 msgid ":exc:`SyntaxWarning`" -msgstr "" +msgstr ":exc:`SyntaxWarning`" -#: ../../c-api/exceptions.rst:1021 +#: ../../c-api/exceptions.rst:1018 msgid ":c:data:`PyExc_UnicodeWarning`" -msgstr "" +msgstr ":c:data:`PyExc_UnicodeWarning`" -#: ../../c-api/exceptions.rst:1021 +#: ../../c-api/exceptions.rst:1018 msgid ":exc:`UnicodeWarning`" -msgstr "" +msgstr ":exc:`UnicodeWarning`" -#: ../../c-api/exceptions.rst:1023 +#: ../../c-api/exceptions.rst:1020 msgid ":c:data:`PyExc_UserWarning`" -msgstr "" +msgstr ":c:data:`PyExc_UserWarning`" -#: ../../c-api/exceptions.rst:1023 +#: ../../c-api/exceptions.rst:1020 msgid ":exc:`UserWarning`" -msgstr "" +msgstr ":exc:`UserWarning`" -#: ../../c-api/exceptions.rst:1026 +#: ../../c-api/exceptions.rst:1023 msgid ":c:data:`PyExc_ResourceWarning`." -msgstr "" +msgstr ":c:data:`PyExc_ResourceWarning`." -#: ../../c-api/exceptions.rst:1032 +#: ../../c-api/exceptions.rst:1029 msgid "This is a base class for other standard warning categories." -msgstr "" +msgstr "Esta é uma classe base para outras categorias de aviso padrão." diff --git a/c-api/file.po b/c-api/file.po index 4089663e2..cace3a723 100644 --- a/c-api/file.po +++ b/c-api/file.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,12 +31,12 @@ msgstr "Objetos File" msgid "" "These APIs are a minimal emulation of the Python 2 C API for built-in file " "objects, which used to rely on the buffered I/O (:c:type:`FILE\\*`) support " -"from the C standard library. In Python 3, files and streams use the new " -":mod:`io` module, which defines several layers over the low-level unbuffered" -" I/O of the operating system. The functions described below are convenience" -" C wrappers over these new APIs, and meant mostly for internal error " -"reporting in the interpreter; third-party code is advised to access the " -":mod:`io` APIs instead." +"from the C standard library. In Python 3, files and streams use the new :" +"mod:`io` module, which defines several layers over the low-level unbuffered " +"I/O of the operating system. The functions described below are convenience " +"C wrappers over these new APIs, and meant mostly for internal error " +"reporting in the interpreter; third-party code is advised to access the :mod:" +"`io` APIs instead." msgstr "" #: ../../c-api/file.rst:22 @@ -43,8 +45,8 @@ msgid "" "file *fd*. The arguments *name*, *encoding*, *errors* and *newline* can be " "``NULL`` to use the defaults; *buffering* can be *-1* to use the default. " "*name* is ignored and kept for backward compatibility. Return ``NULL`` on " -"failure. For a more comprehensive description of the arguments, please refer" -" to the :func:`io.open` function documentation." +"failure. For a more comprehensive description of the arguments, please refer " +"to the :func:`io.open` function documentation." msgstr "" #: ../../c-api/file.rst:31 @@ -61,31 +63,31 @@ msgstr "" #: ../../c-api/file.rst:41 msgid "" "Return the file descriptor associated with *p* as an :c:type:`int`. If the " -"object is an integer, its value is returned. If not, the object's " -":meth:`~io.IOBase.fileno` method is called if it exists; the method must " -"return an integer, which is returned as the file descriptor value. Sets an " -"exception and returns ``-1`` on failure." +"object is an integer, its value is returned. If not, the object's :meth:" +"`~io.IOBase.fileno` method is called if it exists; the method must return an " +"integer, which is returned as the file descriptor value. Sets an exception " +"and returns ``-1`` on failure." msgstr "" #: ../../c-api/file.rst:52 msgid "" "Equivalent to ``p.readline([n])``, this function reads one line from the " -"object *p*. *p* may be a file object or any object with a " -":meth:`~io.IOBase.readline` method. If *n* is ``0``, exactly one line is " -"read, regardless of the length of the line. If *n* is greater than ``0``, " -"no more than *n* bytes will be read from the file; a partial line can be " -"returned. In both cases, an empty string is returned if the end of the file" -" is reached immediately. If *n* is less than ``0``, however, one line is " -"read regardless of length, but :exc:`EOFError` is raised if the end of the " -"file is reached immediately." +"object *p*. *p* may be a file object or any object with a :meth:`~io.IOBase." +"readline` method. If *n* is ``0``, exactly one line is read, regardless of " +"the length of the line. If *n* is greater than ``0``, no more than *n* " +"bytes will be read from the file; a partial line can be returned. In both " +"cases, an empty string is returned if the end of the file is reached " +"immediately. If *n* is less than ``0``, however, one line is read " +"regardless of length, but :exc:`EOFError` is raised if the end of the file " +"is reached immediately." msgstr "" #: ../../c-api/file.rst:67 msgid "" "Write object *obj* to file object *p*. The only supported flag for *flags* " -"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is written" -" instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure;" -" the appropriate exception will be set." +"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is written " +"instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure; " +"the appropriate exception will be set." msgstr "" #: ../../c-api/file.rst:75 diff --git a/c-api/float.po b/c-api/float.po index 69102481d..e53a6e8d0 100644 --- a/c-api/float.po +++ b/c-api/float.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,20 +29,19 @@ msgstr "Objetos de Ponto Flutuante" #: ../../c-api/float.rst:13 msgid "" -"This subtype of :c:type:`PyObject` represents a Python floating point " -"object." +"This subtype of :c:type:`PyObject` represents a Python floating point object." msgstr "" #: ../../c-api/float.rst:18 msgid "" -"This instance of :c:type:`PyTypeObject` represents the Python floating point" -" type. This is the same object as :class:`float` in the Python layer." +"This instance of :c:type:`PyTypeObject` represents the Python floating point " +"type. This is the same object as :class:`float` in the Python layer." msgstr "" #: ../../c-api/float.rst:24 msgid "" -"Return true if its argument is a :c:type:`PyFloatObject` or a subtype of " -":c:type:`PyFloatObject`." +"Return true if its argument is a :c:type:`PyFloatObject` or a subtype of :c:" +"type:`PyFloatObject`." msgstr "" #: ../../c-api/float.rst:30 @@ -62,36 +63,35 @@ msgstr "" #: ../../c-api/float.rst:47 msgid "" -"Return a C :c:type:`double` representation of the contents of *pyfloat*. If" -" *pyfloat* is not a Python floating point object but has a :meth:`__float__`" -" method, this method will first be called to convert *pyfloat* into a float." -" This method returns ``-1.0`` upon failure, so one should call " -":c:func:`PyErr_Occurred` to check for errors." +"Return a C :c:type:`double` representation of the contents of *pyfloat*. If " +"*pyfloat* is not a Python floating point object but has a :meth:`__float__` " +"method, this method will first be called to convert *pyfloat* into a float. " +"This method returns ``-1.0`` upon failure, so one should call :c:func:" +"`PyErr_Occurred` to check for errors." msgstr "" #: ../../c-api/float.rst:56 msgid "" -"Return a C :c:type:`double` representation of the contents of *pyfloat*, but" -" without error checking." +"Return a C :c:type:`double` representation of the contents of *pyfloat*, but " +"without error checking." msgstr "" #: ../../c-api/float.rst:62 msgid "" "Return a structseq instance which contains information about the precision, " -"minimum and maximum values of a float. It's a thin wrapper around the header" -" file :file:`float.h`." +"minimum and maximum values of a float. It's a thin wrapper around the header " +"file :file:`float.h`." msgstr "" #: ../../c-api/float.rst:69 msgid "" -"Return the maximum representable finite float *DBL_MAX* as C " -":c:type:`double`." +"Return the maximum representable finite float *DBL_MAX* as C :c:type:" +"`double`." msgstr "" #: ../../c-api/float.rst:74 msgid "" -"Return the minimum normalized positive float *DBL_MIN* as C " -":c:type:`double`." +"Return the minimum normalized positive float *DBL_MIN* as C :c:type:`double`." msgstr "" #: ../../c-api/float.rst:78 diff --git a/c-api/function.po b/c-api/function.po index 801c679b6..55e558c92 100644 --- a/c-api/function.po +++ b/c-api/function.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,17 +37,17 @@ msgstr "A estrutura C usada para funções." #: ../../c-api/function.rst:22 msgid "" "This is an instance of :c:type:`PyTypeObject` and represents the Python " -"function type. It is exposed to Python programmers as " -"``types.FunctionType``." +"function type. It is exposed to Python programmers as ``types." +"FunctionType``." msgstr "" "Esta é uma instância de: c: type:`PyTypeObject` e representa o tipo de " -"função Python. Está exposto aos programadores Python como " -"``types.FunctionType``." +"função Python. Está exposto aos programadores Python como ``types." +"FunctionType``." #: ../../c-api/function.rst:28 msgid "" -"Return true if *o* is a function object (has type " -":c:data:`PyFunction_Type`). The parameter must not be ``NULL``." +"Return true if *o* is a function object (has type :c:data:" +"`PyFunction_Type`). The parameter must not be ``NULL``." msgstr "" #: ../../c-api/function.rst:34 @@ -62,9 +63,9 @@ msgstr "" #: ../../c-api/function.rst:37 msgid "" "The function's docstring and name are retrieved from the code object. " -"*__module__* is retrieved from *globals*. The argument defaults, annotations" -" and closure are set to ``NULL``. *__qualname__* is set to the same value as" -" the function's name." +"*__module__* is retrieved from *globals*. The argument defaults, annotations " +"and closure are set to ``NULL``. *__qualname__* is set to the same value as " +"the function's name." msgstr "" #: ../../c-api/function.rst:44 @@ -80,8 +81,7 @@ msgid "Return the code object associated with the function object *op*." msgstr "Retornar o objeto de código associado ao objeto de função * op *." #: ../../c-api/function.rst:59 -msgid "" -"Return the globals dictionary associated with the function object *op*." +msgid "Return the globals dictionary associated with the function object *op*." msgstr "Retorna o dicionário global associado ao objeto de função * op *." #: ../../c-api/function.rst:64 diff --git a/c-api/gcsupport.po b/c-api/gcsupport.po index 013684f10..4a9e4f022 100644 --- a/c-api/gcsupport.po +++ b/c-api/gcsupport.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,11 +30,11 @@ msgstr "Suporte a Coleta de Lixo Cíclica" #: ../../c-api/gcsupport.rst:8 msgid "" "Python's support for detecting and collecting garbage which involves " -"circular references requires support from object types which are " -"\"containers\" for other objects which may also be containers. Types which " -"do not store references to other objects, or which only store references to " -"atomic types (such as numbers or strings), do not need to provide any " -"explicit support for garbage collection." +"circular references requires support from object types which are \"containers" +"\" for other objects which may also be containers. Types which do not store " +"references to other objects, or which only store references to atomic types " +"(such as numbers or strings), do not need to provide any explicit support " +"for garbage collection." msgstr "" #: ../../c-api/gcsupport.rst:15 @@ -69,14 +71,14 @@ msgstr "" #: ../../c-api/gcsupport.rst:39 msgid "" -"Analogous to :c:func:`PyObject_New` but for container objects with the " -":const:`Py_TPFLAGS_HAVE_GC` flag set." +"Analogous to :c:func:`PyObject_New` but for container objects with the :" +"const:`Py_TPFLAGS_HAVE_GC` flag set." msgstr "" #: ../../c-api/gcsupport.rst:45 msgid "" -"Analogous to :c:func:`PyObject_NewVar` but for container objects with the " -":const:`Py_TPFLAGS_HAVE_GC` flag set." +"Analogous to :c:func:`PyObject_NewVar` but for container objects with the :" +"const:`Py_TPFLAGS_HAVE_GC` flag set." msgstr "" #: ../../c-api/gcsupport.rst:51 @@ -113,8 +115,8 @@ msgstr "" #: ../../c-api/gcsupport.rst:75 msgid "" -"Before fields which refer to other containers are invalidated, " -":c:func:`PyObject_GC_UnTrack` must be called." +"Before fields which refer to other containers are invalidated, :c:func:" +"`PyObject_GC_UnTrack` must be called." msgstr "" #: ../../c-api/gcsupport.rst:78 @@ -124,24 +126,24 @@ msgstr "" #: ../../c-api/gcsupport.rst:83 msgid "" -"Releases memory allocated to an object using :c:func:`PyObject_GC_New` or " -":c:func:`PyObject_GC_NewVar`." +"Releases memory allocated to an object using :c:func:`PyObject_GC_New` or :c:" +"func:`PyObject_GC_NewVar`." msgstr "" #: ../../c-api/gcsupport.rst:89 msgid "" "Remove the object *op* from the set of container objects tracked by the " "collector. Note that :c:func:`PyObject_GC_Track` can be called again on " -"this object to add it back to the set of tracked objects. The deallocator " -"(:c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the " -"object before any of the fields used by the " -":c:member:`~PyTypeObject.tp_traverse` handler become invalid." +"this object to add it back to the set of tracked objects. The deallocator (:" +"c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the object " +"before any of the fields used by the :c:member:`~PyTypeObject.tp_traverse` " +"handler become invalid." msgstr "" #: ../../c-api/gcsupport.rst:98 msgid "" -"A macro version of :c:func:`PyObject_GC_UnTrack`. It should not be used for" -" extension modules." +"A macro version of :c:func:`PyObject_GC_UnTrack`. It should not be used for " +"extension modules." msgstr "" #: ../../c-api/gcsupport.rst:104 @@ -152,12 +154,12 @@ msgstr "" #: ../../c-api/gcsupport.rst:109 msgid "" -"Type of the visitor function passed to the " -":c:member:`~PyTypeObject.tp_traverse` handler. The function should be called" -" with an object to traverse as *object* and the third parameter to the " -":c:member:`~PyTypeObject.tp_traverse` handler as *arg*. The Python core " -"uses several visitor functions to implement cyclic garbage detection; it's " -"not expected that users will need to write their own visitor functions." +"Type of the visitor function passed to the :c:member:`~PyTypeObject." +"tp_traverse` handler. The function should be called with an object to " +"traverse as *object* and the third parameter to the :c:member:`~PyTypeObject." +"tp_traverse` handler as *arg*. The Python core uses several visitor " +"functions to implement cyclic garbage detection; it's not expected that " +"users will need to write their own visitor functions." msgstr "" #: ../../c-api/gcsupport.rst:116 @@ -178,10 +180,10 @@ msgstr "" #: ../../c-api/gcsupport.rst:128 msgid "" -"To simplify writing :c:member:`~PyTypeObject.tp_traverse` handlers, a " -":c:func:`Py_VISIT` macro is provided. In order to use this macro, the " -":c:member:`~PyTypeObject.tp_traverse` implementation must name its arguments" -" exactly *visit* and *arg*:" +"To simplify writing :c:member:`~PyTypeObject.tp_traverse` handlers, a :c:" +"func:`Py_VISIT` macro is provided. In order to use this macro, the :c:" +"member:`~PyTypeObject.tp_traverse` implementation must name its arguments " +"exactly *visit* and *arg*:" msgstr "" #: ../../c-api/gcsupport.rst:135 @@ -193,8 +195,8 @@ msgstr "" #: ../../c-api/gcsupport.rst:148 msgid "" -"The :c:member:`~PyTypeObject.tp_clear` handler must be of the " -":c:type:`inquiry` type, or ``NULL`` if the object is immutable." +"The :c:member:`~PyTypeObject.tp_clear` handler must be of the :c:type:" +"`inquiry` type, or ``NULL`` if the object is immutable." msgstr "" #: ../../c-api/gcsupport.rst:154 diff --git a/c-api/gen.po b/c-api/gen.po index 5e694ad43..998a40f40 100644 --- a/c-api/gen.po +++ b/c-api/gen.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,27 +31,34 @@ msgstr "Objeto Generator" msgid "" "Generator objects are what Python uses to implement generator iterators. " "They are normally created by iterating over a function that yields values, " -"rather than explicitly calling :c:func:`PyGen_New` or " -":c:func:`PyGen_NewWithQualName`." +"rather than explicitly calling :c:func:`PyGen_New` or :c:func:" +"`PyGen_NewWithQualName`." msgstr "" +"Objetos geradores são o que o Python usa para implementar iteradores " +"geradores. Eles são normalmente criados por iteração sobre uma função que " +"produz valores, em vez de invocar explicitamente :c:func:`PyGen_New` ou :c:" +"func:`PyGen_NewWithQualName`." #: ../../c-api/gen.rst:15 msgid "The C structure used for generator objects." -msgstr "" +msgstr "A estrutura C usada para objetos geradores." #: ../../c-api/gen.rst:20 msgid "The type object corresponding to generator objects." -msgstr "" +msgstr "O objeto de tipo correspondendo a objetos geradores." #: ../../c-api/gen.rst:25 msgid "Return true if *ob* is a generator object; *ob* must not be ``NULL``." msgstr "" +"Retorna true se *ob* for um objeto gerador; *ob* não deve ser ``NULL``." #: ../../c-api/gen.rst:30 msgid "" "Return true if *ob*'s type is :c:type:`PyGen_Type`; *ob* must not be " "``NULL``." msgstr "" +"Retorna true se o tipo de *ob* for :c:type:`PyGen_Type`; *ob* não deve ser " +"``NULL``." #: ../../c-api/gen.rst:35 msgid "" @@ -57,6 +66,9 @@ msgid "" "reference to *frame* is stolen by this function. The argument must not be " "``NULL``." msgstr "" +"Cria e retorna um novo objeto gerador com base no objeto *frame*. Uma " +"referência a *quadro* é roubada por esta função. O argumento não deve ser " +"``NULL``." #: ../../c-api/gen.rst:41 msgid "" @@ -65,3 +77,7 @@ msgid "" "to *frame* is stolen by this function. The *frame* argument must not be " "``NULL``." msgstr "" +"Cria e retorna um novo objeto gerador com base no objeto *frame*, com " +"``__name__`` e ``__qualname__`` definidos como *name* e *qualname*. Uma " +"referência a *frame* é roubada por esta função. O argumento *frame* não deve " +"ser ``NULL``." diff --git a/c-api/import.po b/c-api/import.po index 34b961592..7171b3107 100644 --- a/c-api/import.po +++ b/c-api/import.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Ozeas Santos , 2019 # Peterson Segatto Müller , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Peterson Segatto Müller , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,16 +30,16 @@ msgstr "Importando Módulos" #: ../../c-api/import.rst:16 msgid "" "This is a simplified interface to :c:func:`PyImport_ImportModuleEx` below, " -"leaving the *globals* and *locals* arguments set to ``NULL`` and *level* set" -" to 0. When the *name* argument contains a dot (when it specifies a " +"leaving the *globals* and *locals* arguments set to ``NULL`` and *level* set " +"to 0. When the *name* argument contains a dot (when it specifies a " "submodule of a package), the *fromlist* argument is set to the list " "``['*']`` so that the return value is the named module rather than the top-" -"level package containing it as would otherwise be the case. (Unfortunately," -" this has an additional side effect when *name* in fact specifies a " -"subpackage instead of a submodule: the submodules specified in the package's" -" ``__all__`` variable are loaded.) Return a new reference to the imported " -"module, or ``NULL`` with an exception set on failure. A failing import of a" -" module doesn't leave the module in :data:`sys.modules`." +"level package containing it as would otherwise be the case. (Unfortunately, " +"this has an additional side effect when *name* in fact specifies a " +"subpackage instead of a submodule: the submodules specified in the package's " +"``__all__`` variable are loaded.) Return a new reference to the imported " +"module, or ``NULL`` with an exception set on failure. A failing import of a " +"module doesn't leave the module in :data:`sys.modules`." msgstr "" #: ../../c-api/import.rst:28 ../../c-api/import.rst:89 @@ -46,8 +47,7 @@ msgid "This function always uses absolute imports." msgstr "Essas funções usam importações absolutas." #: ../../c-api/import.rst:33 -msgid "" -"This function is a deprecated alias of :c:func:`PyImport_ImportModule`." +msgid "This function is a deprecated alias of :c:func:`PyImport_ImportModule`." msgstr "Esta função tem um alias obsoleto: c: func: `PyImport_ImportModule`." #: ../../c-api/import.rst:35 @@ -59,13 +59,13 @@ msgid "" msgstr "" "Essa função falhava em alguns casos, quando o bloqueio de importação era " "mantido por outra thread. No Python 3.3, no entanto, o esquema de bloqueio " -"mudou passando a ser por módulo na maior parte, dessa forma, o comportamento" -" especial dessa função não é mais necessário." +"mudou passando a ser por módulo na maior parte, dessa forma, o comportamento " +"especial dessa função não é mais necessário." #: ../../c-api/import.rst:46 msgid "" -"Import a module. This is best described by referring to the built-in Python" -" function :func:`__import__`." +"Import a module. This is best described by referring to the built-in Python " +"function :func:`__import__`." msgstr "" "Importar um módulo. Isso é melhor demonstrado através da função interna do " "Python :func:`__import__`." @@ -73,24 +73,23 @@ msgstr "" #: ../../c-api/import.rst:49 ../../c-api/import.rst:65 msgid "" "The return value is a new reference to the imported module or top-level " -"package, or ``NULL`` with an exception set on failure. Like for " -":func:`__import__`, the return value when a submodule of a package was " -"requested is normally the top-level package, unless a non-empty *fromlist* " -"was given." +"package, or ``NULL`` with an exception set on failure. Like for :func:" +"`__import__`, the return value when a submodule of a package was requested " +"is normally the top-level package, unless a non-empty *fromlist* was given." msgstr "" #: ../../c-api/import.rst:55 msgid "" -"Failing imports remove incomplete module objects, like with " -":c:func:`PyImport_ImportModule`." +"Failing imports remove incomplete module objects, like with :c:func:" +"`PyImport_ImportModule`." msgstr "" -"As importações com falhas removem objetos incompletos do módulo, como em " -":c:func:`PyImport_ImportModule`." +"As importações com falhas removem objetos incompletos do módulo, como em :c:" +"func:`PyImport_ImportModule`." #: ../../c-api/import.rst:61 msgid "" -"Import a module. This is best described by referring to the built-in Python" -" function :func:`__import__`, as the standard :func:`__import__` function " +"Import a module. This is best described by referring to the built-in Python " +"function :func:`__import__`, as the standard :func:`__import__` function " "calls this function directly." msgstr "" "Importar um módulo. Isso é melhor descrito referindo-se à função interna do " @@ -102,8 +101,8 @@ msgid "" "Similar to :c:func:`PyImport_ImportModuleLevelObject`, but the name is a " "UTF-8 encoded string instead of a Unicode object." msgstr "" -"Semelhante para :c:func:`PyImport_ImportModuleLevelObject`, mas o nome é uma" -" string codificada em UTF-8 de um objeto Unicode." +"Semelhante para :c:func:`PyImport_ImportModuleLevelObject`, mas o nome é uma " +"string codificada em UTF-8 de um objeto Unicode." #: ../../c-api/import.rst:78 msgid "Negative values for *level* are no longer accepted." @@ -119,14 +118,14 @@ msgid "" msgstr "" "Essa é uma interface de alto nível que chama a atual \"função auxiliar de " "importação\" (com um *level* explícito de 0, significando importação " -"absoluta). Invoca a função :func:`__import__` a partir de ``__builtins__``" -" da global atual. Isso significa que a importação é feita usando quaisquer " +"absoluta). Invoca a função :func:`__import__` a partir de ``__builtins__`` " +"da global atual. Isso significa que a importação é feita usando quaisquer " "extras de importação instalados no ambiente atual." #: ../../c-api/import.rst:94 msgid "" -"Reload a module. Return a new reference to the reloaded module, or ``NULL``" -" with an exception set on failure (the module still exists in this case)." +"Reload a module. Return a new reference to the reloaded module, or ``NULL`` " +"with an exception set on failure (the module still exists in this case)." msgstr "" #: ../../c-api/import.rst:100 @@ -140,16 +139,16 @@ msgstr "" #: ../../c-api/import.rst:107 msgid "" "This function does not load or import the module; if the module wasn't " -"already loaded, you will get an empty module object. Use " -":c:func:`PyImport_ImportModule` or one of its variants to import a module. " -"Package structures implied by a dotted name for *name* are not created if " -"not already present." +"already loaded, you will get an empty module object. Use :c:func:" +"`PyImport_ImportModule` or one of its variants to import a module. Package " +"structures implied by a dotted name for *name* are not created if not " +"already present." msgstr "" "Esta função não carrega ou importa o módulo; se o módulo não foi carregado, " -"você receberá um objeto de módulo vazio. Utilize " -":c:func:`PyImport_ImportModule` ou uma de suas variações para importar um " -"módulo. Estruturas de pacotes implícitos através de um ponto no nome para a" -" *name* não são criados se não estiverem presentes." +"você receberá um objeto de módulo vazio. Utilize :c:func:" +"`PyImport_ImportModule` ou uma de suas variações para importar um módulo. " +"Estruturas de pacotes implícitos através de um ponto no nome para a *name* " +"não são criados se não estiverem presentes." #: ../../c-api/import.rst:117 msgid "" @@ -166,42 +165,41 @@ msgid "" "function :func:`compile`, load the module. Return a new reference to the " "module object, or ``NULL`` with an exception set if an error occurred. " "*name* is removed from :attr:`sys.modules` in error cases, even if *name* " -"was already in :attr:`sys.modules` on entry to " -":c:func:`PyImport_ExecCodeModule`. Leaving incompletely initialized modules" -" in :attr:`sys.modules` is dangerous, as imports of such modules have no way" -" to know that the module object is an unknown (and probably damaged with " -"respect to the module author's intents) state." +"was already in :attr:`sys.modules` on entry to :c:func:" +"`PyImport_ExecCodeModule`. Leaving incompletely initialized modules in :" +"attr:`sys.modules` is dangerous, as imports of such modules have no way to " +"know that the module object is an unknown (and probably damaged with respect " +"to the module author's intents) state." msgstr "" #: ../../c-api/import.rst:135 msgid "" -"The module's :attr:`__spec__` and :attr:`__loader__` will be set, if not set" -" already, with the appropriate values. The spec's loader will be set to the" -" module's ``__loader__`` (if set) and to an instance of " -":class:`SourceFileLoader` otherwise." +"The module's :attr:`__spec__` and :attr:`__loader__` will be set, if not set " +"already, with the appropriate values. The spec's loader will be set to the " +"module's ``__loader__`` (if set) and to an instance of :class:" +"`SourceFileLoader` otherwise." msgstr "" "O módulo :attr:`__spec__` e :attr:`__loader__` será definido, se não " -"estiver, com os valores apropriados. O carregador de especificações definirá" -" o módulo ``__loader__`` (se definido) e uma instância da classe " -":class:`SourceFileLoader` em caso contrário." +"estiver, com os valores apropriados. O carregador de especificações definirá " +"o módulo ``__loader__`` (se definido) e uma instância da classe :class:" +"`SourceFileLoader` em caso contrário." #: ../../c-api/import.rst:140 msgid "" -"The module's :attr:`__file__` attribute will be set to the code object's " -":c:member:`co_filename`. If applicable, :attr:`__cached__` will also be " -"set." +"The module's :attr:`__file__` attribute will be set to the code object's :c:" +"member:`co_filename`. If applicable, :attr:`__cached__` will also be set." msgstr "" "O atributo do módulo :attr:`__file__` poderá ser definido ao objeto do " -"código :c:member:`co_filename`. Se aplicável, :attr:`__cached__` também será" -" definido." +"código :c:member:`co_filename`. Se aplicável, :attr:`__cached__` também será " +"definido." #: ../../c-api/import.rst:144 msgid "" -"This function will reload the module if it was already imported. See " -":c:func:`PyImport_ReloadModule` for the intended way to reload a module." +"This function will reload the module if it was already imported. See :c:" +"func:`PyImport_ReloadModule` for the intended way to reload a module." msgstr "" -"Esta função poderá recarregar o módulo se este já foi importado. Veja " -":c:func:`PyImport_ReloadModule` para forma desejada de recarregar um módulo." +"Esta função poderá recarregar o módulo se este já foi importado. Veja :c:" +"func:`PyImport_ReloadModule` para forma desejada de recarregar um módulo." #: ../../c-api/import.rst:147 msgid "" @@ -214,11 +212,11 @@ msgstr "" #: ../../c-api/import.rst:150 msgid "" -"See also :c:func:`PyImport_ExecCodeModuleEx` and " -":c:func:`PyImport_ExecCodeModuleWithPathnames`." +"See also :c:func:`PyImport_ExecCodeModuleEx` and :c:func:" +"`PyImport_ExecCodeModuleWithPathnames`." msgstr "" -"Veja também :c:func:`PyImport_ExecCodeModuleEx` e " -":c:func:`PyImport_ExecCodeModuleWithPathnames`." +"Veja também :c:func:`PyImport_ExecCodeModuleEx` e :c:func:" +"`PyImport_ExecCodeModuleWithPathnames`." #: ../../c-api/import.rst:156 msgid "" @@ -235,8 +233,8 @@ msgstr "Veja também :c:func:`PyImport_ExecCodeModuleWithPathnames`." #: ../../c-api/import.rst:164 msgid "" "Like :c:func:`PyImport_ExecCodeModuleEx`, but the :attr:`__cached__` " -"attribute of the module object is set to *cpathname* if it is non-``NULL``." -" Of the three functions, this is the preferred one to use." +"attribute of the module object is set to *cpathname* if it is non-``NULL``. " +"Of the three functions, this is the preferred one to use." msgstr "" #: ../../c-api/import.rst:173 @@ -273,8 +271,8 @@ msgstr "" #: ../../c-api/import.rst:204 msgid "" -"Return the dictionary used for the module administration (a.k.a. " -"``sys.modules``). Note that this is a per-interpreter variable." +"Return the dictionary used for the module administration (a.k.a. ``sys." +"modules``). Note that this is a per-interpreter variable." msgstr "" #: ../../c-api/import.rst:209 @@ -288,12 +286,11 @@ msgstr "" msgid "" "Return a finder object for a :data:`sys.path`/:attr:`pkg.__path__` item " "*path*, possibly by fetching it from the :data:`sys.path_importer_cache` " -"dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook" -" is found that can handle the path item. Return ``None`` if no hook could; " +"dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook " +"is found that can handle the path item. Return ``None`` if no hook could; " "this tells our caller that the :term:`path based finder` could not find a " -"finder for this path item. Cache the result in " -":data:`sys.path_importer_cache`. Return a new reference to the finder " -"object." +"finder for this path item. Cache the result in :data:`sys." +"path_importer_cache`. Return a new reference to the finder object." msgstr "" #: ../../c-api/import.rst:228 @@ -312,9 +309,9 @@ msgstr "Finaliza o mecanismo de importação. Apenas para uso interno." msgid "" "Load a frozen module named *name*. Return ``1`` for success, ``0`` if the " "module is not found, and ``-1`` with an exception set if the initialization " -"failed. To access the imported module on a successful load, use " -":c:func:`PyImport_ImportModule`. (Note the misnomer --- this function would" -" reload the module if it was already imported.)" +"failed. To access the imported module on a successful load, use :c:func:" +"`PyImport_ImportModule`. (Note the misnomer --- this function would reload " +"the module if it was already imported.)" msgstr "" #: ../../c-api/import.rst:251 @@ -330,15 +327,15 @@ msgstr "" #: ../../c-api/import.rst:265 msgid "" "This is the structure type definition for frozen module descriptors, as " -"generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the" -" Python source distribution). Its definition, found in " -":file:`Include/import.h`, is::" +"generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the " +"Python source distribution). Its definition, found in :file:`Include/import." +"h`, is::" msgstr "" #: ../../c-api/import.rst:279 msgid "" -"This pointer is initialized to point to an array of :c:type:`struct _frozen`" -" records, terminated by one whose members are all ``NULL`` or zero. When a " +"This pointer is initialized to point to an array of :c:type:`struct _frozen` " +"records, terminated by one whose members are all ``NULL`` or zero. When a " "frozen module is imported, it is searched in this table. Third-party code " "could play tricks with this to provide a dynamically created collection of " "frozen modules." @@ -350,8 +347,8 @@ msgid "" "convenience wrapper around :c:func:`PyImport_ExtendInittab`, returning " "``-1`` if the table could not be extended. The new module can be imported " "by the name *name*, and uses the function *initfunc* as the initialization " -"function called on the first attempted import. This should be called before" -" :c:func:`Py_Initialize`." +"function called on the first attempted import. This should be called " +"before :c:func:`Py_Initialize`." msgstr "" #: ../../c-api/import.rst:297 @@ -359,18 +356,18 @@ msgid "" "Structure describing a single entry in the list of built-in modules. Each " "of these structures gives the name and initialization function for a module " "built into the interpreter. The name is an ASCII encoded string. Programs " -"which embed Python may use an array of these structures in conjunction with " -":c:func:`PyImport_ExtendInittab` to provide additional built-in modules. The" -" structure is defined in :file:`Include/import.h` as::" +"which embed Python may use an array of these structures in conjunction with :" +"c:func:`PyImport_ExtendInittab` to provide additional built-in modules. The " +"structure is defined in :file:`Include/import.h` as::" msgstr "" #: ../../c-api/import.rst:312 msgid "" "Add a collection of modules to the table of built-in modules. The *newtab* " -"array must end with a sentinel entry which contains ``NULL`` for the " -":attr:`name` field; failure to provide the sentinel value can result in a " -"memory fault. Returns ``0`` on success or ``-1`` if insufficient memory " -"could be allocated to extend the internal table. In the event of failure, " -"no modules are added to the internal table. This should be called before " -":c:func:`Py_Initialize`." +"array must end with a sentinel entry which contains ``NULL`` for the :attr:" +"`name` field; failure to provide the sentinel value can result in a memory " +"fault. Returns ``0`` on success or ``-1`` if insufficient memory could be " +"allocated to extend the internal table. In the event of failure, no modules " +"are added to the internal table. This should be called before :c:func:" +"`Py_Initialize`." msgstr "" diff --git a/c-api/index.po b/c-api/index.po index 6dfd106cd..22ebfacd2 100644 --- a/c-api/index.po +++ b/c-api/index.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Guilherme Soster , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Guilherme Soster , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,9 +30,12 @@ msgstr "Manual de referência da API Python/C" #: ../../c-api/index.rst:7 msgid "" "This manual documents the API used by C and C++ programmers who want to " -"write extension modules or embed Python. It is a companion to :ref" -":`extending-index`, which describes the general principles of extension " +"write extension modules or embed Python. It is a companion to :ref:" +"`extending-index`, which describes the general principles of extension " "writing but does not document the API functions in detail." msgstr "" -"Este manual documenta a API usada por programadores C e C++ que desejam escrever módulos de extensões ou embedar Python.\n" -"É um complemento para :ref:`extending-index`, que descreve os princípios gerais da escrita de extenções mas não documenta as funções da API em detalhes." +"Este manual documenta a API usada por programadores C e C++ que desejam " +"escrever módulos de extensões ou embedar Python.\n" +"É um complemento para :ref:`extending-index`, que descreve os princípios " +"gerais da escrita de extenções mas não documenta as funções da API em " +"detalhes." diff --git a/c-api/init.po b/c-api/init.po index 9a1007dad..7ef504fda 100644 --- a/c-api/init.po +++ b/c-api/init.po @@ -1,22 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Rafael Marques , 2019 -# +# Willian C Lopes , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Rafael Marques , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,6 +46,8 @@ msgstr "" msgid "" "The following functions can be safely called before Python is initialized:" msgstr "" +"As seguintes funções podem ser seguramente chamadas antes da inicialização " +"do Phyton. " #: ../../c-api/init.rst:22 msgid "Configuration functions:" @@ -106,7 +111,7 @@ msgstr "Funções Informativas:" #: ../../c-api/init.rst:40 msgid ":c:func:`Py_IsInitialized`" -msgstr "" +msgstr ":c:func:`Py_IsInitialized`" #: ../../c-api/init.rst:41 msgid ":c:func:`PyMem_GetAllocator`" @@ -166,54 +171,63 @@ msgstr ":c:func:`PyMem_RawFree`" #: ../../c-api/init.rst:62 msgid "" -"The following functions **should not be called** before " -":c:func:`Py_Initialize`: :c:func:`Py_EncodeLocale`, :c:func:`Py_GetPath`, " -":c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, " -":c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome`, " -":c:func:`Py_GetProgramName` and :c:func:`PyEval_InitThreads`." +"The following functions **should not be called** before :c:func:" +"`Py_Initialize`: :c:func:`Py_EncodeLocale`, :c:func:`Py_GetPath`, :c:func:" +"`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:func:" +"`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome`, :c:func:" +"`Py_GetProgramName` and :c:func:`PyEval_InitThreads`." msgstr "" +"As seguintes funções ** não devem ser chamadas ** antes :c:func:" +"`Py_Initialize`: :c:func:`Py_EncodeLocale`, :c:func:`Py_GetPath`, :c:func:" +"`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, :c:func:" +"`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome`, :c:func:" +"`Py_GetProgramName` and :c:func:`PyEval_InitThreads`." #: ../../c-api/init.rst:72 msgid "Global configuration variables" -msgstr "" +msgstr "Variáveis de configuração global" #: ../../c-api/init.rst:74 msgid "" "Python has variables for the global configuration to control different " -"features and options. By default, these flags are controlled by " -":ref:`command line options `." +"features and options. By default, these flags are controlled by :ref:" +"`command line options `." msgstr "" #: ../../c-api/init.rst:78 msgid "" "When a flag is set by an option, the value of the flag is the number of " -"times that the option was set. For example, ``-b`` sets " -":c:data:`Py_BytesWarningFlag` to 1 and ``-bb`` sets " -":c:data:`Py_BytesWarningFlag` to 2." +"times that the option was set. For example, ``-b`` sets :c:data:" +"`Py_BytesWarningFlag` to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to " +"2." msgstr "" #: ../../c-api/init.rst:84 msgid "" -"Issue a warning when comparing :class:`bytes` or :class:`bytearray` with " -":class:`str` or :class:`bytes` with :class:`int`. Issue an error if greater" -" or equal to ``2``." +"Issue a warning when comparing :class:`bytes` or :class:`bytearray` with :" +"class:`str` or :class:`bytes` with :class:`int`. Issue an error if greater " +"or equal to ``2``." msgstr "" #: ../../c-api/init.rst:88 msgid "Set by the :option:`-b` option." -msgstr "" +msgstr "Defina pela opção :option:`-b`." #: ../../c-api/init.rst:92 msgid "" "Turn on parser debugging output (for expert only, depending on compilation " "options)." msgstr "" +"Ative a saída de depuração do analisador (somente para especialistas, " +"dependendo das opções de compilação)." #: ../../c-api/init.rst:95 msgid "" "Set by the :option:`-d` option and the :envvar:`PYTHONDEBUG` environment " "variable." msgstr "" +"Configure com a opção :option:`-d` e a variável de ambiente :envvar:" +"`PYTHONDEBUG`." #: ../../c-api/init.rst:100 msgid "" @@ -229,14 +243,15 @@ msgstr "" #: ../../c-api/init.rst:108 msgid "" -"Suppress error messages when calculating the module search path in " -":c:func:`Py_GetPath`." +"Suppress error messages when calculating the module search path in :c:func:" +"`Py_GetPath`." msgstr "" #: ../../c-api/init.rst:111 -msgid "" -"Private flag used by ``_freeze_importlib`` and ``frozenmain`` programs." +msgid "Private flag used by ``_freeze_importlib`` and ``frozenmain`` programs." msgstr "" +"Sinalizador privado usado pelos programas ``_freeze_importlib`` and " +"``frozenmain``." #: ../../c-api/init.rst:115 msgid "" @@ -252,19 +267,19 @@ msgstr "" #: ../../c-api/init.rst:123 msgid "" -"Ignore all :envvar:`PYTHON*` environment variables, e.g. " -":envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." +"Ignore all :envvar:`PYTHON*` environment variables, e.g. :envvar:" +"`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." msgstr "" #: ../../c-api/init.rst:126 msgid "Set by the :option:`-E` and :option:`-I` options." -msgstr "" +msgstr "Defina pelas opções :option:`-E` and :option:`-I`." #: ../../c-api/init.rst:130 msgid "" "When a script is passed as first argument or the :option:`-c` option is " -"used, enter interactive mode after executing the script or the command, even" -" when :data:`sys.stdin` does not appear to be a terminal." +"used, enter interactive mode after executing the script or the command, even " +"when :data:`sys.stdin` does not appear to be a terminal." msgstr "" #: ../../c-api/init.rst:134 @@ -275,7 +290,7 @@ msgstr "" #: ../../c-api/init.rst:139 msgid "Set by the :option:`-i` option." -msgstr "" +msgstr "Defina pela opção :option:`-i`." #: ../../c-api/init.rst:143 msgid "" @@ -285,7 +300,7 @@ msgstr "" #: ../../c-api/init.rst:146 msgid "Set by the :option:`-I` option." -msgstr "" +msgstr "Defina pela opção :option:`-I`." #: ../../c-api/init.rst:152 msgid "" @@ -301,16 +316,16 @@ msgstr "" #: ../../c-api/init.rst:158 msgid "See :pep:`529` for more details." -msgstr "" +msgstr "Veja :pep:`529` para mais detalhes." #: ../../c-api/init.rst:160 ../../c-api/init.rst:172 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." #: ../../c-api/init.rst:164 msgid "" -"If the flag is non-zero, use :class:`io.FileIO` instead of " -":class:`WindowsConsoleIO` for :mod:`sys` standard streams." +"If the flag is non-zero, use :class:`io.FileIO` instead of :class:" +"`WindowsConsoleIO` for :mod:`sys` standard streams." msgstr "" #: ../../c-api/init.rst:167 @@ -321,30 +336,30 @@ msgstr "" #: ../../c-api/init.rst:170 msgid "See :pep:`528` for more details." -msgstr "" +msgstr "Veja :pep:`528` para mais detalhes. " #: ../../c-api/init.rst:176 msgid "" "Disable the import of the module :mod:`site` and the site-dependent " "manipulations of :data:`sys.path` that it entails. Also disable these " -"manipulations if :mod:`site` is explicitly imported later (call " -":func:`site.main` if you want them to be triggered)." +"manipulations if :mod:`site` is explicitly imported later (call :func:`site." +"main` if you want them to be triggered)." msgstr "" #: ../../c-api/init.rst:181 msgid "Set by the :option:`-S` option." -msgstr "" +msgstr "Defina pela opção :option:`-S`." #: ../../c-api/init.rst:185 msgid "" -"Don't add the :data:`user site-packages directory ` to " -":data:`sys.path`." +"Don't add the :data:`user site-packages directory ` to :data:" +"`sys.path`." msgstr "" #: ../../c-api/init.rst:188 msgid "" -"Set by the :option:`-s` and :option:`-I` options, and the " -":envvar:`PYTHONNOUSERSITE` environment variable." +"Set by the :option:`-s` and :option:`-I` options, and the :envvar:" +"`PYTHONNOUSERSITE` environment variable." msgstr "" #: ../../c-api/init.rst:193 @@ -357,14 +372,16 @@ msgstr "" msgid "" "Don't display the copyright and version messages even in interactive mode." msgstr "" +"Não exibe as mensagens de copyright e de versão nem mesmo no modo " +"interativo. " #: ../../c-api/init.rst:200 msgid "Set by the :option:`-q` option." -msgstr "" +msgstr "Defina pela opção :option:`-q`." #: ../../c-api/init.rst:206 msgid "Force the stdout and stderr streams to be unbuffered." -msgstr "" +msgstr "Force os fluxos stdout e stderr a não serem armazenados em buffer." #: ../../c-api/init.rst:208 msgid "" @@ -393,15 +410,15 @@ msgstr "Inicializando e encerrando o interpretador" #: ../../c-api/init.rst:241 msgid "" "Initialize the Python interpreter. In an application embedding Python, " -"this should be called before using any other Python/C API functions; see " -":ref:`Before Python Initialization ` for the few exceptions." +"this should be called before using any other Python/C API functions; see :" +"ref:`Before Python Initialization ` for the few exceptions." msgstr "" #: ../../c-api/init.rst:245 msgid "" "This initializes the table of loaded modules (``sys.modules``), and creates " -"the fundamental modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`. It" -" also initializes the module search path (``sys.path``). It does not set " +"the fundamental modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`. It " +"also initializes the module search path (``sys.path``). It does not set " "``sys.argv``; use :c:func:`PySys_SetArgvEx` for that. This is a no-op when " "called for a second time (without calling :c:func:`Py_FinalizeEx` first). " "There is no return value; it is a fatal error if the initialization fails." @@ -430,23 +447,23 @@ msgstr "" #: ../../c-api/init.rst:274 msgid "" "Undo all initializations made by :c:func:`Py_Initialize` and subsequent use " -"of Python/C API functions, and destroy all sub-interpreters (see " -":c:func:`Py_NewInterpreter` below) that were created and not yet destroyed " -"since the last call to :c:func:`Py_Initialize`. Ideally, this frees all " -"memory allocated by the Python interpreter. This is a no-op when called for" -" a second time (without calling :c:func:`Py_Initialize` again first). " -"Normally the return value is ``0``. If there were errors during " -"finalization (flushing buffered data), ``-1`` is returned." +"of Python/C API functions, and destroy all sub-interpreters (see :c:func:" +"`Py_NewInterpreter` below) that were created and not yet destroyed since the " +"last call to :c:func:`Py_Initialize`. Ideally, this frees all memory " +"allocated by the Python interpreter. This is a no-op when called for a " +"second time (without calling :c:func:`Py_Initialize` again first). Normally " +"the return value is ``0``. If there were errors during finalization " +"(flushing buffered data), ``-1`` is returned." msgstr "" #: ../../c-api/init.rst:283 msgid "" -"This function is provided for a number of reasons. An embedding application" -" might want to restart Python without having to restart the application " +"This function is provided for a number of reasons. An embedding application " +"might want to restart Python without having to restart the application " "itself. An application that has loaded the Python interpreter from a " "dynamically loadable library (or DLL) might want to free all memory " -"allocated by Python before unloading the DLL. During a hunt for memory leaks" -" in an application a developer might want to free all memory allocated by " +"allocated by Python before unloading the DLL. During a hunt for memory leaks " +"in an application a developer might want to free all memory allocated by " "Python before exiting from the application." msgstr "" @@ -456,10 +473,10 @@ msgid "" "done in random order; this may cause destructors (:meth:`__del__` methods) " "to fail when they depend on other objects (even functions) or modules. " "Dynamically loaded extension modules loaded by Python are not unloaded. " -"Small amounts of memory allocated by the Python interpreter may not be freed" -" (if you find a leak, please report it). Memory tied up in circular " -"references between objects is not freed. Some memory allocated by extension" -" modules may not be freed. Some extensions may not work properly if their " +"Small amounts of memory allocated by the Python interpreter may not be freed " +"(if you find a leak, please report it). Memory tied up in circular " +"references between objects is not freed. Some memory allocated by extension " +"modules may not be freed. Some extensions may not work properly if their " "initialization routine is called more than once; this can happen if an " "application calls :c:func:`Py_Initialize` and :c:func:`Py_FinalizeEx` more " "than once." @@ -484,14 +501,14 @@ msgstr "" #: ../../c-api/init.rst:326 msgid "" -"It overrides :envvar:`PYTHONIOENCODING` values, and allows embedding code to" -" control IO encoding when the environment variable does not work." +"It overrides :envvar:`PYTHONIOENCODING` values, and allows embedding code to " +"control IO encoding when the environment variable does not work." msgstr "" #: ../../c-api/init.rst:329 msgid "" -"*encoding* and/or *errors* may be ``NULL`` to use :envvar:`PYTHONIOENCODING`" -" and/or default values (depending on other settings)." +"*encoding* and/or *errors* may be ``NULL`` to use :envvar:`PYTHONIOENCODING` " +"and/or default values (depending on other settings)." msgstr "" #: ../../c-api/init.rst:333 @@ -518,8 +535,8 @@ msgid "" "the first time, if it is called at all. It tells the interpreter the value " "of the ``argv[0]`` argument to the :c:func:`main` function of the program " "(converted to wide characters). This is used by :c:func:`Py_GetPath` and " -"some other functions below to find the Python run-time libraries relative to" -" the interpreter executable. The default value is ``'python'``. The " +"some other functions below to find the Python run-time libraries relative to " +"the interpreter executable. The default value is ``'python'``. The " "argument should point to a zero-terminated wide character string in static " "storage whose contents will not change for the duration of the program's " "execution. No code in the Python interpreter will change the contents of " @@ -529,8 +546,8 @@ msgstr "" #: ../../c-api/init.rst:363 ../../c-api/init.rst:477 ../../c-api/init.rst:579 #: ../../c-api/init.rst:606 ../../c-api/init.rst:623 msgid "" -"Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a " -":c:type:`wchar_*` string." +"Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a :c:type:" +"`wchar_*` string." msgstr "" #: ../../c-api/init.rst:371 @@ -543,29 +560,29 @@ msgstr "" #: ../../c-api/init.rst:378 msgid "" "Return the *prefix* for installed platform-independent files. This is " -"derived through a number of complicated rules from the program name set with" -" :c:func:`Py_SetProgramName` and some environment variables; for example, if" -" the program name is ``'/usr/local/bin/python'``, the prefix is " -"``'/usr/local'``. The returned string points into static storage; the caller" -" should not modify its value. This corresponds to the :makevar:`prefix` " +"derived through a number of complicated rules from the program name set " +"with :c:func:`Py_SetProgramName` and some environment variables; for " +"example, if the program name is ``'/usr/local/bin/python'``, the prefix is " +"``'/usr/local'``. The returned string points into static storage; the caller " +"should not modify its value. This corresponds to the :makevar:`prefix` " "variable in the top-level :file:`Makefile` and the ``--prefix`` argument to " "the :program:`configure` script at build time. The value is available to " -"Python code as ``sys.prefix``. It is only useful on Unix. See also the next" -" function." +"Python code as ``sys.prefix``. It is only useful on Unix. See also the next " +"function." msgstr "" #: ../../c-api/init.rst:391 msgid "" "Return the *exec-prefix* for installed platform-*dependent* files. This is " -"derived through a number of complicated rules from the program name set with" -" :c:func:`Py_SetProgramName` and some environment variables; for example, if" -" the program name is ``'/usr/local/bin/python'``, the exec-prefix is " -"``'/usr/local'``. The returned string points into static storage; the " -"caller should not modify its value. This corresponds to the " -":makevar:`exec_prefix` variable in the top-level :file:`Makefile` and the " -"``--exec-prefix`` argument to the :program:`configure` script at build " -"time. The value is available to Python code as ``sys.exec_prefix``. It is " -"only useful on Unix." +"derived through a number of complicated rules from the program name set " +"with :c:func:`Py_SetProgramName` and some environment variables; for " +"example, if the program name is ``'/usr/local/bin/python'``, the exec-prefix " +"is ``'/usr/local'``. The returned string points into static storage; the " +"caller should not modify its value. This corresponds to the :makevar:" +"`exec_prefix` variable in the top-level :file:`Makefile` and the ``--exec-" +"prefix`` argument to the :program:`configure` script at build time. The " +"value is available to Python code as ``sys.exec_prefix``. It is only useful " +"on Unix." msgstr "" #: ../../c-api/init.rst:401 @@ -573,8 +590,8 @@ msgid "" "Background: The exec-prefix differs from the prefix when platform dependent " "files (such as executables and shared libraries) are installed in a " "different directory tree. In a typical installation, platform dependent " -"files may be installed in the :file:`/usr/local/plat` subtree while platform" -" independent may be installed in :file:`/usr/local`." +"files may be installed in the :file:`/usr/local/plat` subtree while platform " +"independent may be installed in :file:`/usr/local`." msgstr "" #: ../../c-api/init.rst:407 @@ -582,19 +599,19 @@ msgid "" "Generally speaking, a platform is a combination of hardware and software " "families, e.g. Sparc machines running the Solaris 2.x operating system are " "considered the same platform, but Intel machines running Solaris 2.x are " -"another platform, and Intel machines running Linux are yet another platform." -" Different major revisions of the same operating system generally also form" -" different platforms. Non-Unix operating systems are a different story; the" -" installation strategies on those systems are so different that the prefix " -"and exec-prefix are meaningless, and set to the empty string. Note that " -"compiled Python bytecode files are platform independent (but not independent" -" from the Python version by which they were compiled!)." +"another platform, and Intel machines running Linux are yet another " +"platform. Different major revisions of the same operating system generally " +"also form different platforms. Non-Unix operating systems are a different " +"story; the installation strategies on those systems are so different that " +"the prefix and exec-prefix are meaningless, and set to the empty string. " +"Note that compiled Python bytecode files are platform independent (but not " +"independent from the Python version by which they were compiled!)." msgstr "" #: ../../c-api/init.rst:418 msgid "" -"System administrators will know how to configure the :program:`mount` or " -":program:`automount` programs to share :file:`/usr/local` between platforms " +"System administrators will know how to configure the :program:`mount` or :" +"program:`automount` programs to share :file:`/usr/local` between platforms " "while having :file:`/usr/local/plat` be a different filesystem for each " "platform." msgstr "" @@ -614,20 +631,20 @@ msgid "" "name (set by :c:func:`Py_SetProgramName` above) and some environment " "variables. The returned string consists of a series of directory names " "separated by a platform dependent delimiter character. The delimiter " -"character is ``':'`` on Unix and Mac OS X, ``';'`` on Windows. The returned" -" string points into static storage; the caller should not modify its value." -" The list :data:`sys.path` is initialized with this value on interpreter " -"startup; it can be (and usually is) modified later to change the search path" -" for loading modules." +"character is ``':'`` on Unix and Mac OS X, ``';'`` on Windows. The returned " +"string points into static storage; the caller should not modify its value. " +"The list :data:`sys.path` is initialized with this value on interpreter " +"startup; it can be (and usually is) modified later to change the search path " +"for loading modules." msgstr "" #: ../../c-api/init.rst:464 msgid "" -"Set the default module search path. If this function is called before " -":c:func:`Py_Initialize`, then :c:func:`Py_GetPath` won't attempt to compute " -"a default search path but uses the one provided instead. This is useful if " -"Python is embedded by an application that has full knowledge of the location" -" of all modules. The path components should be separated by the platform " +"Set the default module search path. If this function is called before :c:" +"func:`Py_Initialize`, then :c:func:`Py_GetPath` won't attempt to compute a " +"default search path but uses the one provided instead. This is useful if " +"Python is embedded by an application that has full knowledge of the location " +"of all modules. The path components should be separated by the platform " "dependent delimiter character, which is ``':'`` on Unix and Mac OS X, " "``';'`` on Windows." msgstr "" @@ -635,9 +652,9 @@ msgstr "" #: ../../c-api/init.rst:472 msgid "" "This also causes :data:`sys.executable` to be set only to the raw program " -"name (see :c:func:`Py_SetProgramName`) and for :data:`sys.prefix` and " -":data:`sys.exec_prefix` to be empty. It is up to the caller to modify these" -" if required after calling :c:func:`Py_Initialize`." +"name (see :c:func:`Py_SetProgramName`) and for :data:`sys.prefix` and :data:" +"`sys.exec_prefix` to be empty. It is up to the caller to modify these if " +"required after calling :c:func:`Py_Initialize`." msgstr "" #: ../../c-api/init.rst:480 @@ -684,8 +701,8 @@ msgstr "" #: ../../c-api/init.rst:520 msgid "" -"The returned string points into static storage; the caller should not modify" -" its value. The value is available to Python code as ``sys.copyright``." +"The returned string points into static storage; the caller should not modify " +"its value. The value is available to Python code as ``sys.copyright``." msgstr "" #: ../../c-api/init.rst:526 @@ -696,15 +713,15 @@ msgstr "" #: ../../c-api/init.rst:533 ../../c-api/init.rst:547 msgid "" -"The returned string points into static storage; the caller should not modify" -" its value. The value is available to Python code as part of the variable " +"The returned string points into static storage; the caller should not modify " +"its value. The value is available to Python code as part of the variable " "``sys.version``." msgstr "" #: ../../c-api/init.rst:540 msgid "" -"Return information about the sequence number and build date and time of the" -" current Python interpreter instance, for example ::" +"Return information about the sequence number and build date and time of the " +"current Python interpreter instance, for example ::" msgstr "" #: ../../c-api/init.rst:559 @@ -728,15 +745,15 @@ msgstr "" #: ../../c-api/init.rst:571 msgid "" "If the name of an existing script is passed in ``argv[0]``, the absolute " -"path of the directory where the script is located is prepended to " -":data:`sys.path`." +"path of the directory where the script is located is prepended to :data:`sys." +"path`." msgstr "" #: ../../c-api/init.rst:574 msgid "" "Otherwise (that is, if *argc* is ``0`` or ``argv[0]`` doesn't point to an " -"existing file name), an empty string is prepended to :data:`sys.path`, which" -" is the same as prepending the current working directory (``\".\"``)." +"existing file name), an empty string is prepended to :data:`sys.path`, which " +"is the same as prepending the current working directory (``\".\"``)." msgstr "" #: ../../c-api/init.rst:583 @@ -750,15 +767,15 @@ msgstr "" #: ../../c-api/init.rst:588 msgid "" "On versions before 3.1.3, you can achieve the same effect by manually " -"popping the first :data:`sys.path` element after having called " -":c:func:`PySys_SetArgv`, for example using::" +"popping the first :data:`sys.path` element after having called :c:func:" +"`PySys_SetArgv`, for example using::" msgstr "" #: ../../c-api/init.rst:602 msgid "" "This function works like :c:func:`PySys_SetArgvEx` with *updatepath* set to " -"``1`` unless the :program:`python` interpreter was started with the " -":option:`-I`." +"``1`` unless the :program:`python` interpreter was started with the :option:" +"`-I`." msgstr "" #: ../../c-api/init.rst:609 @@ -782,8 +799,8 @@ msgstr "" #: ../../c-api/init.rst:629 msgid "" -"Return the default \"home\", that is, the value set by a previous call to " -":c:func:`Py_SetPythonHome`, or the value of the :envvar:`PYTHONHOME` " +"Return the default \"home\", that is, the value set by a previous call to :c:" +"func:`Py_SetPythonHome`, or the value of the :envvar:`PYTHONHOME` " "environment variable if it is set." msgstr "" @@ -805,10 +822,10 @@ msgstr "" #: ../../c-api/init.rst:654 msgid "" -"Therefore, the rule exists that only the thread that has acquired the " -":term:`GIL` may operate on Python objects or call Python/C API functions. In" -" order to emulate concurrency of execution, the interpreter regularly tries " -"to switch threads (see :func:`sys.setswitchinterval`). The lock is also " +"Therefore, the rule exists that only the thread that has acquired the :term:" +"`GIL` may operate on Python objects or call Python/C API functions. In order " +"to emulate concurrency of execution, the interpreter regularly tries to " +"switch threads (see :func:`sys.setswitchinterval`). The lock is also " "released around potentially blocking I/O operations like reading or writing " "a file, so that other Python threads can run in the meantime." msgstr "" @@ -837,9 +854,9 @@ msgstr "" #: ../../c-api/init.rst:692 msgid "" -"The :c:macro:`Py_BEGIN_ALLOW_THREADS` macro opens a new block and declares a" -" hidden local variable; the :c:macro:`Py_END_ALLOW_THREADS` macro closes the" -" block." +"The :c:macro:`Py_BEGIN_ALLOW_THREADS` macro opens a new block and declares a " +"hidden local variable; the :c:macro:`Py_END_ALLOW_THREADS` macro closes the " +"block." msgstr "" #: ../../c-api/init.rst:696 @@ -873,9 +890,9 @@ msgstr "" #: ../../c-api/init.rst:730 msgid "" -"When threads are created using the dedicated Python APIs (such as the " -":mod:`threading` module), a thread state is automatically associated to them" -" and the code showed above is therefore correct. However, when threads are " +"When threads are created using the dedicated Python APIs (such as the :mod:" +"`threading` module), a thread state is automatically associated to them and " +"the code showed above is therefore correct. However, when threads are " "created from C (for example by a third-party library with its own thread " "management), they don't hold the GIL, nor is there a thread state structure " "for them." @@ -887,8 +904,8 @@ msgid "" "of a callback API provided by the aforementioned third-party library), you " "must first register these threads with the interpreter by creating a thread " "state data structure, then acquiring the GIL, and finally storing their " -"thread state pointer, before you can start using the Python/C API. When you" -" are done, you should reset the thread state pointer, release the GIL, and " +"thread state pointer, before you can start using the Python/C API. When you " +"are done, you should reset the thread state pointer, release the GIL, and " "finally free the thread state data structure." msgstr "" @@ -903,29 +920,29 @@ msgstr "" msgid "" "Note that the :c:func:`PyGILState_\\*` functions assume there is only one " "global interpreter (created automatically by :c:func:`Py_Initialize`). " -"Python supports the creation of additional interpreters (using " -":c:func:`Py_NewInterpreter`), but mixing multiple interpreters and the " -":c:func:`PyGILState_\\*` API is unsupported." +"Python supports the creation of additional interpreters (using :c:func:" +"`Py_NewInterpreter`), but mixing multiple interpreters and the :c:func:" +"`PyGILState_\\*` API is unsupported." msgstr "" #: ../../c-api/init.rst:765 msgid "" -"Another important thing to note about threads is their behaviour in the face" -" of the C :c:func:`fork` call. On most systems with :c:func:`fork`, after a " +"Another important thing to note about threads is their behaviour in the face " +"of the C :c:func:`fork` call. On most systems with :c:func:`fork`, after a " "process forks only the thread that issued the fork will exist. That also " "means any locks held by other threads will never be released. Python solves " "this for :func:`os.fork` by acquiring the locks it uses internally before " -"the fork, and releasing them afterwards. In addition, it resets any :ref" -":`lock-objects` in the child. When extending or embedding Python, there is " -"no way to inform Python of additional (non-Python) locks that need to be " -"acquired before or reset after a fork. OS facilities such as " -":c:func:`pthread_atfork` would need to be used to accomplish the same thing." -" Additionally, when extending or embedding Python, calling :c:func:`fork` " +"the fork, and releasing them afterwards. In addition, it resets any :ref:" +"`lock-objects` in the child. When extending or embedding Python, there is no " +"way to inform Python of additional (non-Python) locks that need to be " +"acquired before or reset after a fork. OS facilities such as :c:func:" +"`pthread_atfork` would need to be used to accomplish the same thing. " +"Additionally, when extending or embedding Python, calling :c:func:`fork` " "directly rather than through :func:`os.fork` (and returning to or calling " "into Python) may result in a deadlock by one of Python's internal locks " -"being held by a thread that is defunct after the fork. " -":c:func:`PyOS_AfterFork_Child` tries to reset the necessary locks, but is " -"not always able to." +"being held by a thread that is defunct after the fork. :c:func:" +"`PyOS_AfterFork_Child` tries to reset the necessary locks, but is not always " +"able to." msgstr "" #: ../../c-api/init.rst:784 @@ -965,9 +982,8 @@ msgstr "" msgid "" "Initialize and acquire the global interpreter lock. It should be called in " "the main thread before creating a second thread or engaging in any other " -"thread operations such as ``PyEval_ReleaseThread(tstate)``. It is not needed" -" before calling :c:func:`PyEval_SaveThread` or " -":c:func:`PyEval_RestoreThread`." +"thread operations such as ``PyEval_ReleaseThread(tstate)``. It is not needed " +"before calling :c:func:`PyEval_SaveThread` or :c:func:`PyEval_RestoreThread`." msgstr "" #: ../../c-api/init.rst:822 @@ -1017,8 +1033,8 @@ msgid "" "Calling this function from a thread when the runtime is finalizing will " "terminate the thread, even if the thread was not created by Python. You can " "use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to check if the " -"interpreter is in process of being finalized before calling this function to" -" avoid unwanted termination." +"interpreter is in process of being finalized before calling this function to " +"avoid unwanted termination." msgstr "" #: ../../c-api/init.rst:868 @@ -1054,21 +1070,21 @@ msgid "" "of the current state of Python, or of the global interpreter lock. This may " "be called as many times as desired by a thread as long as each call is " "matched with a call to :c:func:`PyGILState_Release`. In general, other " -"thread-related APIs may be used between :c:func:`PyGILState_Ensure` and " -":c:func:`PyGILState_Release` calls as long as the thread state is restored " -"to its previous state before the Release(). For example, normal usage of " -"the :c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS` " -"macros is acceptable." +"thread-related APIs may be used between :c:func:`PyGILState_Ensure` and :c:" +"func:`PyGILState_Release` calls as long as the thread state is restored to " +"its previous state before the Release(). For example, normal usage of the :" +"c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS` macros " +"is acceptable." msgstr "" #: ../../c-api/init.rst:902 msgid "" -"The return value is an opaque \"handle\" to the thread state when " -":c:func:`PyGILState_Ensure` was called, and must be passed to " -":c:func:`PyGILState_Release` to ensure Python is left in the same state. " -"Even though recursive calls are allowed, these handles *cannot* be shared - " -"each unique call to :c:func:`PyGILState_Ensure` must save the handle for its" -" call to :c:func:`PyGILState_Release`." +"The return value is an opaque \"handle\" to the thread state when :c:func:" +"`PyGILState_Ensure` was called, and must be passed to :c:func:" +"`PyGILState_Release` to ensure Python is left in the same state. Even though " +"recursive calls are allowed, these handles *cannot* be shared - each unique " +"call to :c:func:`PyGILState_Ensure` must save the handle for its call to :c:" +"func:`PyGILState_Release`." msgstr "" #: ../../c-api/init.rst:909 @@ -1080,22 +1096,22 @@ msgstr "" #: ../../c-api/init.rst:921 msgid "" "Release any resources previously acquired. After this call, Python's state " -"will be the same as it was prior to the corresponding " -":c:func:`PyGILState_Ensure` call (but generally this state will be unknown " -"to the caller, hence the use of the GILState API)." +"will be the same as it was prior to the corresponding :c:func:" +"`PyGILState_Ensure` call (but generally this state will be unknown to the " +"caller, hence the use of the GILState API)." msgstr "" #: ../../c-api/init.rst:926 msgid "" -"Every call to :c:func:`PyGILState_Ensure` must be matched by a call to " -":c:func:`PyGILState_Release` on the same thread." +"Every call to :c:func:`PyGILState_Ensure` must be matched by a call to :c:" +"func:`PyGILState_Release` on the same thread." msgstr "" #: ../../c-api/init.rst:932 msgid "" "Get the current thread state for this thread. May return ``NULL`` if no " -"GILState API has been used on the current thread. Note that the main thread" -" always has such a thread-state, even if no auto-thread-state call has been " +"GILState API has been used on the current thread. Note that the main thread " +"always has such a thread-state, even if no auto-thread-state call has been " "made on the main thread. This is mainly a helper/diagnostic function." msgstr "" @@ -1103,11 +1119,11 @@ msgstr "" msgid "" "Return ``1`` if the current thread is holding the GIL and ``0`` otherwise. " "This function can be called from any thread at any time. Only if it has had " -"its Python thread state initialized and currently is holding the GIL will it" -" return ``1``. This is mainly a helper/diagnostic function. It can be " -"useful for example in callback contexts or memory allocation functions when " -"knowing that the GIL is locked can allow the caller to perform sensitive " -"actions or otherwise behave differently." +"its Python thread state initialized and currently is holding the GIL will it " +"return ``1``. This is mainly a helper/diagnostic function. It can be useful " +"for example in callback contexts or memory allocation functions when knowing " +"that the GIL is locked can allow the caller to perform sensitive actions or " +"otherwise behave differently." msgstr "" #: ../../c-api/init.rst:952 @@ -1118,30 +1134,30 @@ msgstr "" #: ../../c-api/init.rst:958 msgid "" -"This macro expands to ``{ PyThreadState *_save; _save = " -"PyEval_SaveThread();``. Note that it contains an opening brace; it must be " -"matched with a following :c:macro:`Py_END_ALLOW_THREADS` macro. See above " -"for further discussion of this macro." +"This macro expands to ``{ PyThreadState *_save; _save = PyEval_SaveThread();" +"``. Note that it contains an opening brace; it must be matched with a " +"following :c:macro:`Py_END_ALLOW_THREADS` macro. See above for further " +"discussion of this macro." msgstr "" #: ../../c-api/init.rst:966 msgid "" "This macro expands to ``PyEval_RestoreThread(_save); }``. Note that it " -"contains a closing brace; it must be matched with an earlier " -":c:macro:`Py_BEGIN_ALLOW_THREADS` macro. See above for further discussion " -"of this macro." +"contains a closing brace; it must be matched with an earlier :c:macro:" +"`Py_BEGIN_ALLOW_THREADS` macro. See above for further discussion of this " +"macro." msgstr "" #: ../../c-api/init.rst:974 msgid "" -"This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent to " -":c:macro:`Py_END_ALLOW_THREADS` without the closing brace." +"This macro expands to ``PyEval_RestoreThread(_save);``: it is equivalent to :" +"c:macro:`Py_END_ALLOW_THREADS` without the closing brace." msgstr "" #: ../../c-api/init.rst:980 msgid "" -"This macro expands to ``_save = PyEval_SaveThread();``: it is equivalent to " -":c:macro:`Py_BEGIN_ALLOW_THREADS` without the opening brace and variable " +"This macro expands to ``_save = PyEval_SaveThread();``: it is equivalent to :" +"c:macro:`Py_BEGIN_ALLOW_THREADS` without the opening brace and variable " "declaration." msgstr "" @@ -1160,8 +1176,8 @@ msgstr "" #: ../../c-api/init.rst:996 msgid "" -"Create a new interpreter state object. The global interpreter lock need not" -" be held, but may be held if it is necessary to serialize calls to this " +"Create a new interpreter state object. The global interpreter lock need not " +"be held, but may be held if it is necessary to serialize calls to this " "function." msgstr "" @@ -1174,8 +1190,8 @@ msgstr "" #: ../../c-api/init.rst:1009 msgid "" "Destroy an interpreter state object. The global interpreter lock need not " -"be held. The interpreter state must have been reset with a previous call to" -" :c:func:`PyInterpreterState_Clear`." +"be held. The interpreter state must have been reset with a previous call " +"to :c:func:`PyInterpreterState_Clear`." msgstr "" #: ../../c-api/init.rst:1016 @@ -1187,21 +1203,21 @@ msgstr "" #: ../../c-api/init.rst:1023 msgid "" -"Reset all information in a thread state object. The global interpreter lock" -" must be held." +"Reset all information in a thread state object. The global interpreter lock " +"must be held." msgstr "" #: ../../c-api/init.rst:1029 msgid "" "Destroy a thread state object. The global interpreter lock need not be " -"held. The thread state must have been reset with a previous call to " -":c:func:`PyThreadState_Clear`." +"held. The thread state must have been reset with a previous call to :c:func:" +"`PyThreadState_Clear`." msgstr "" #: ../../c-api/init.rst:1036 msgid "" -"Return the interpreter's unique ID. If there was any error in doing so then" -" ``-1`` is returned and an error is set." +"Return the interpreter's unique ID. If there was any error in doing so then " +"``-1`` is returned and an error is set." msgstr "" #: ../../c-api/init.rst:1044 @@ -1209,8 +1225,8 @@ msgid "" "Return a dictionary in which extensions can store thread-specific state " "information. Each extension should use a unique key to use to store state " "in the dictionary. It is okay to call this function when no current thread " -"state is available. If this function returns ``NULL``, no exception has been" -" raised and the caller should assume no current thread state is available." +"state is available. If this function returns ``NULL``, no exception has been " +"raised and the caller should assume no current thread state is available." msgstr "" #: ../../c-api/init.rst:1053 @@ -1220,15 +1236,15 @@ msgid "" "This function does not steal any references to *exc*. To prevent naive " "misuse, you must write your own C extension to call this. Must be called " "with the GIL held. Returns the number of thread states modified; this is " -"normally one, but will be zero if the thread id isn't found. If *exc* is " -":const:`NULL`, the pending exception (if any) for the thread is cleared. " -"This raises no exceptions." +"normally one, but will be zero if the thread id isn't found. If *exc* is :" +"const:`NULL`, the pending exception (if any) for the thread is cleared. This " +"raises no exceptions." msgstr "" #: ../../c-api/init.rst:1061 msgid "" -"The type of the *id* parameter changed from :c:type:`long` to " -":c:type:`unsigned long`." +"The type of the *id* parameter changed from :c:type:`long` to :c:type:" +"`unsigned long`." msgstr "" #: ../../c-api/init.rst:1067 @@ -1267,8 +1283,8 @@ msgstr "" #: ../../c-api/init.rst:1092 msgid "" -"This function does not update the current thread state. Please use " -":c:func:`PyEval_RestoreThread` or :c:func:`PyEval_AcquireThread` instead." +"This function does not update the current thread state. Please use :c:func:" +"`PyEval_RestoreThread` or :c:func:`PyEval_AcquireThread` instead." msgstr "" #: ../../c-api/init.rst:1100 @@ -1279,8 +1295,8 @@ msgstr "" #: ../../c-api/init.rst:1102 msgid "" -"This function does not update the current thread state. Please use " -":c:func:`PyEval_SaveThread` or :c:func:`PyEval_ReleaseThread` instead." +"This function does not update the current thread state. Please use :c:func:" +"`PyEval_SaveThread` or :c:func:`PyEval_ReleaseThread` instead." msgstr "" #: ../../c-api/init.rst:1111 @@ -1292,9 +1308,9 @@ msgid "" "While in most uses, you will only embed a single Python interpreter, there " "are cases where you need to create several independent interpreters in the " "same process and perhaps even in the same thread. Sub-interpreters allow " -"you to do that. You can switch between sub-interpreters using the " -":c:func:`PyThreadState_Swap` function. You can create and destroy them " -"using the following functions:" +"you to do that. You can switch between sub-interpreters using the :c:func:" +"`PyThreadState_Swap` function. You can create and destroy them using the " +"following functions:" msgstr "" #: ../../c-api/init.rst:1131 @@ -1302,26 +1318,26 @@ msgid "" "Create a new sub-interpreter. This is an (almost) totally separate " "environment for the execution of Python code. In particular, the new " "interpreter has separate, independent versions of all imported modules, " -"including the fundamental modules :mod:`builtins`, :mod:`__main__` and " -":mod:`sys`. The table of loaded modules (``sys.modules``) and the module " -"search path (``sys.path``) are also separate. The new environment has no " -"``sys.argv`` variable. It has new standard I/O stream file objects " -"``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` (however these refer to the" -" same underlying file descriptors)." +"including the fundamental modules :mod:`builtins`, :mod:`__main__` and :mod:" +"`sys`. The table of loaded modules (``sys.modules``) and the module search " +"path (``sys.path``) are also separate. The new environment has no ``sys." +"argv`` variable. It has new standard I/O stream file objects ``sys.stdin``, " +"``sys.stdout`` and ``sys.stderr`` (however these refer to the same " +"underlying file descriptors)." msgstr "" #: ../../c-api/init.rst:1141 msgid "" "The return value points to the first thread state created in the new sub-" "interpreter. This thread state is made in the current thread state. Note " -"that no actual thread is created; see the discussion of thread states below." -" If creation of the new interpreter is unsuccessful, ``NULL`` is returned; " -"no exception is set since the exception state is stored in the current " -"thread state and there may not be a current thread state. (Like all other " -"Python/C API functions, the global interpreter lock must be held before " -"calling this function and is still held when it returns; however, unlike " -"most other Python/C API functions, there needn't be a current thread state " -"on entry.)" +"that no actual thread is created; see the discussion of thread states " +"below. If creation of the new interpreter is unsuccessful, ``NULL`` is " +"returned; no exception is set since the exception state is stored in the " +"current thread state and there may not be a current thread state. (Like all " +"other Python/C API functions, the global interpreter lock must be held " +"before calling this function and is still held when it returns; however, " +"unlike most other Python/C API functions, there needn't be a current thread " +"state on entry.)" msgstr "" #: ../../c-api/init.rst:1156 @@ -1329,13 +1345,13 @@ msgid "" "Extension modules are shared between (sub-)interpreters as follows: the " "first time a particular extension is imported, it is initialized normally, " "and a (shallow) copy of its module's dictionary is squirreled away. When " -"the same extension is imported by another (sub-)interpreter, a new module is" -" initialized and filled with the contents of this copy; the extension's " +"the same extension is imported by another (sub-)interpreter, a new module is " +"initialized and filled with the contents of this copy; the extension's " "``init`` function is not called. Note that this is different from what " "happens when an extension is imported after the interpreter has been " -"completely re-initialized by calling :c:func:`Py_FinalizeEx` and " -":c:func:`Py_Initialize`; in that case, the extension's ``initmodule`` " -"function *is* called again." +"completely re-initialized by calling :c:func:`Py_FinalizeEx` and :c:func:" +"`Py_Initialize`; in that case, the extension's ``initmodule`` function *is* " +"called again." msgstr "" #: ../../c-api/init.rst:1173 @@ -1343,10 +1359,11 @@ msgid "" "Destroy the (sub-)interpreter represented by the given thread state. The " "given thread state must be the current thread state. See the discussion of " "thread states below. When the call returns, the current thread state is " -"``NULL``. All thread states associated with this interpreter are destroyed." -" (The global interpreter lock must be held before calling this function and" -" is still held when it returns.) :c:func:`Py_FinalizeEx` will destroy all " -"sub-interpreters that haven't been explicitly destroyed at that point." +"``NULL``. All thread states associated with this interpreter are " +"destroyed. (The global interpreter lock must be held before calling this " +"function and is still held when it returns.) :c:func:`Py_FinalizeEx` will " +"destroy all sub-interpreters that haven't been explicitly destroyed at that " +"point." msgstr "" #: ../../c-api/init.rst:1183 @@ -1360,14 +1377,14 @@ msgid "" "low-level file operations like :func:`os.close` they can (accidentally or " "maliciously) affect each other's open files. Because of the way extensions " "are shared between (sub-)interpreters, some extensions may not work " -"properly; this is especially likely when the extension makes use of (static)" -" global variables, or when the extension manipulates its module's dictionary" -" after its initialization. It is possible to insert objects created in one " +"properly; this is especially likely when the extension makes use of (static) " +"global variables, or when the extension manipulates its module's dictionary " +"after its initialization. It is possible to insert objects created in one " "sub-interpreter into a namespace of another sub-interpreter; this should be " "done with great care to avoid sharing user-defined functions, methods, " "instances or classes between sub-interpreters, since import operations " -"executed by such objects may affect the wrong (sub-)interpreter's dictionary" -" of loaded modules." +"executed by such objects may affect the wrong (sub-)interpreter's dictionary " +"of loaded modules." msgstr "" #: ../../c-api/init.rst:1199 @@ -1376,10 +1393,10 @@ msgid "" "APIs is delicate, because these APIs assume a bijection between Python " "thread states and OS-level threads, an assumption broken by the presence of " "sub-interpreters. It is highly recommended that you don't switch sub-" -"interpreters between a pair of matching :c:func:`PyGILState_Ensure` and " -":c:func:`PyGILState_Release` calls. Furthermore, extensions (such as " -":mod:`ctypes`) using these APIs to allow calling of Python code from non-" -"Python created threads will probably be broken when using sub-interpreters." +"interpreters between a pair of matching :c:func:`PyGILState_Ensure` and :c:" +"func:`PyGILState_Release` calls. Furthermore, extensions (such as :mod:" +"`ctypes`) using these APIs to allow calling of Python code from non-Python " +"created threads will probably be broken when using sub-interpreters." msgstr "" #: ../../c-api/init.rst:1210 @@ -1389,15 +1406,15 @@ msgstr "" #: ../../c-api/init.rst:1212 msgid "" "A mechanism is provided to make asynchronous notifications to the main " -"interpreter thread. These notifications take the form of a function pointer" -" and a void pointer argument." +"interpreter thread. These notifications take the form of a function pointer " +"and a void pointer argument." msgstr "" #: ../../c-api/init.rst:1221 msgid "" "Schedule a function to be called from the main interpreter thread. On " -"success, ``0`` is returned and *func* is queued for being called in the main" -" thread. On failure, ``-1`` is returned without setting any exception." +"success, ``0`` is returned and *func* is queued for being called in the main " +"thread. On failure, ``-1`` is returned without setting any exception." msgstr "" #: ../../c-api/init.rst:1225 @@ -1414,8 +1431,8 @@ msgstr "" #: ../../c-api/init.rst:1231 msgid "" -"with the main thread holding the :term:`global interpreter lock` (*func* can" -" therefore use the full C API)." +"with the main thread holding the :term:`global interpreter lock` (*func* can " +"therefore use the full C API)." msgstr "" #: ../../c-api/init.rst:1234 @@ -1438,8 +1455,8 @@ msgid "" "no guarantee that *func* will be called as quick as possible. If the main " "thread is busy executing a system call, *func* won't be called before the " "system call returns. This function is generally **not** suitable for " -"calling Python code from arbitrary C threads. Instead, use the " -":ref:`PyGILState API`." +"calling Python code from arbitrary C threads. Instead, use the :ref:" +"`PyGILState API`." msgstr "" #: ../../c-api/init.rst:1255 @@ -1456,8 +1473,8 @@ msgstr "" #: ../../c-api/init.rst:1264 msgid "" "This C interface allows the profiling or tracing code to avoid the overhead " -"of calling through Python-level callable objects, making a direct C function" -" call instead. The essential attributes of the facility have not changed; " +"of calling through Python-level callable objects, making a direct C function " +"call instead. The essential attributes of the facility have not changed; " "the interface allows trace functions to be installed per-thread, and the " "basic events reported to the trace function are the same as had been " "reported to the Python-level trace functions in previous versions." @@ -1467,12 +1484,11 @@ msgstr "" msgid "" "The type of the trace function registered using :c:func:`PyEval_SetProfile` " "and :c:func:`PyEval_SetTrace`. The first parameter is the object passed to " -"the registration function as *obj*, *frame* is the frame object to which the" -" event pertains, *what* is one of the constants :const:`PyTrace_CALL`, " -":const:`PyTrace_EXCEPTION`, :const:`PyTrace_LINE`, :const:`PyTrace_RETURN`, " -":const:`PyTrace_C_CALL`, :const:`PyTrace_C_EXCEPTION`, " -":const:`PyTrace_C_RETURN`, or :const:`PyTrace_OPCODE`, and *arg* depends on " -"the value of *what*:" +"the registration function as *obj*, *frame* is the frame object to which the " +"event pertains, *what* is one of the constants :const:`PyTrace_CALL`, :const:" +"`PyTrace_EXCEPTION`, :const:`PyTrace_LINE`, :const:`PyTrace_RETURN`, :const:" +"`PyTrace_C_CALL`, :const:`PyTrace_C_EXCEPTION`, :const:`PyTrace_C_RETURN`, " +"or :const:`PyTrace_OPCODE`, and *arg* depends on the value of *what*:" msgstr "" #: ../../c-api/init.rst:1283 @@ -1485,7 +1501,7 @@ msgstr "" #: ../../c-api/init.rst:1285 msgid ":const:`PyTrace_CALL`" -msgstr "" +msgstr ":const:`PyTrace_CALL`" #: ../../c-api/init.rst:1285 ../../c-api/init.rst:1290 #: ../../c-api/init.rst:1301 @@ -1494,7 +1510,7 @@ msgstr "" #: ../../c-api/init.rst:1287 msgid ":const:`PyTrace_EXCEPTION`" -msgstr "" +msgstr ":const:`PyTrace_EXCEPTION`" #: ../../c-api/init.rst:1287 msgid "Exception information as returned by :func:`sys.exc_info`." @@ -1502,11 +1518,11 @@ msgstr "" #: ../../c-api/init.rst:1290 msgid ":const:`PyTrace_LINE`" -msgstr "" +msgstr ":const:`PyTrace_LINE`" #: ../../c-api/init.rst:1292 msgid ":const:`PyTrace_RETURN`" -msgstr "" +msgstr ":const:`PyTrace_RETURN`" #: ../../c-api/init.rst:1292 msgid "" @@ -1515,7 +1531,7 @@ msgstr "" #: ../../c-api/init.rst:1295 msgid ":const:`PyTrace_C_CALL`" -msgstr "" +msgstr ":const:`PyTrace_C_CALL`" #: ../../c-api/init.rst:1295 ../../c-api/init.rst:1297 #: ../../c-api/init.rst:1299 @@ -1524,15 +1540,15 @@ msgstr "" #: ../../c-api/init.rst:1297 msgid ":const:`PyTrace_C_EXCEPTION`" -msgstr "" +msgstr ":const:`PyTrace_C_EXCEPTION`" #: ../../c-api/init.rst:1299 msgid ":const:`PyTrace_C_RETURN`" -msgstr "" +msgstr ":const:`PyTrace_C_RETURN`" #: ../../c-api/init.rst:1301 msgid ":const:`PyTrace_OPCODE`" -msgstr "" +msgstr ":const:`PyTrace_OPCODE`" #: ../../c-api/init.rst:1306 msgid "" @@ -1559,8 +1575,8 @@ msgstr "" msgid "" "The value passed as the *what* parameter to a :c:type:`Py_tracefunc` " "function (but not a profiling function) when a line-number event is being " -"reported. It may be disabled for a frame by setting :attr:`f_trace_lines` to" -" *0* on that frame." +"reported. It may be disabled for a frame by setting :attr:`f_trace_lines` to " +"*0* on that frame." msgstr "" #: ../../c-api/init.rst:1333 @@ -1591,30 +1607,29 @@ msgstr "" msgid "" "The value for the *what* parameter to :c:type:`Py_tracefunc` functions (but " "not profiling functions) when a new opcode is about to be executed. This " -"event is not emitted by default: it must be explicitly requested by setting " -":attr:`f_trace_opcodes` to *1* on the frame." +"event is not emitted by default: it must be explicitly requested by setting :" +"attr:`f_trace_opcodes` to *1* on the frame." msgstr "" #: ../../c-api/init.rst:1365 msgid "" "Set the profiler function to *func*. The *obj* parameter is passed to the " -"function as its first parameter, and may be any Python object, or ``NULL``." -" If the profile function needs to maintain state, using a different value " -"for *obj* for each thread provides a convenient and thread-safe place to " -"store it. The profile function is called for all monitored events except " -":const:`PyTrace_LINE` :const:`PyTrace_OPCODE` and " -":const:`PyTrace_EXCEPTION`." +"function as its first parameter, and may be any Python object, or ``NULL``. " +"If the profile function needs to maintain state, using a different value for " +"*obj* for each thread provides a convenient and thread-safe place to store " +"it. The profile function is called for all monitored events except :const:" +"`PyTrace_LINE` :const:`PyTrace_OPCODE` and :const:`PyTrace_EXCEPTION`." msgstr "" #: ../../c-api/init.rst:1375 msgid "" -"Set the tracing function to *func*. This is similar to " -":c:func:`PyEval_SetProfile`, except the tracing function does receive line-" -"number events and per-opcode events, but does not receive any event related " -"to C function objects being called. Any trace function registered using " -":c:func:`PyEval_SetTrace` will not receive :const:`PyTrace_C_CALL`, " -":const:`PyTrace_C_EXCEPTION` or :const:`PyTrace_C_RETURN` as a value for the" -" *what* parameter." +"Set the tracing function to *func*. This is similar to :c:func:" +"`PyEval_SetProfile`, except the tracing function does receive line-number " +"events and per-opcode events, but does not receive any event related to C " +"function objects being called. Any trace function registered using :c:func:" +"`PyEval_SetTrace` will not receive :const:`PyTrace_C_CALL`, :const:" +"`PyTrace_C_EXCEPTION` or :const:`PyTrace_C_RETURN` as a value for the *what* " +"parameter." msgstr "" #: ../../c-api/init.rst:1385 @@ -1638,8 +1653,8 @@ msgstr "" #: ../../c-api/init.rst:1405 msgid "" -"Return the next interpreter state object after *interp* from the list of all" -" such objects." +"Return the next interpreter state object after *interp* from the list of all " +"such objects." msgstr "" #: ../../c-api/init.rst:1411 @@ -1650,8 +1665,8 @@ msgstr "" #: ../../c-api/init.rst:1417 msgid "" -"Return the next thread state object after *tstate* from the list of all such" -" objects belonging to the same :c:type:`PyInterpreterState` object." +"Return the next thread state object after *tstate* from the list of all such " +"objects belonging to the same :c:type:`PyInterpreterState` object." msgstr "" #: ../../c-api/init.rst:1424 @@ -1670,23 +1685,22 @@ msgstr "" #: ../../c-api/init.rst:1435 msgid "" -"The GIL does *not* need to be held when calling these functions; they supply" -" their own locking." +"The GIL does *not* need to be held when calling these functions; they supply " +"their own locking." msgstr "" #: ../../c-api/init.rst:1438 msgid "" -"Note that :file:`Python.h` does not include the declaration of the TLS APIs," -" you need to include :file:`pythread.h` to use thread-local storage." +"Note that :file:`Python.h` does not include the declaration of the TLS APIs, " +"you need to include :file:`pythread.h` to use thread-local storage." msgstr "" #: ../../c-api/init.rst:1442 msgid "" -"None of these API functions handle memory management on behalf of the " -":c:type:`void\\*` values. You need to allocate and deallocate them " -"yourself. If the :c:type:`void\\*` values happen to be " -":c:type:`PyObject\\*`, these functions don't do refcount operations on them " -"either." +"None of these API functions handle memory management on behalf of the :c:" +"type:`void\\*` values. You need to allocate and deallocate them yourself. " +"If the :c:type:`void\\*` values happen to be :c:type:`PyObject\\*`, these " +"functions don't do refcount operations on them either." msgstr "" #: ../../c-api/init.rst:1450 @@ -1720,8 +1734,8 @@ msgstr "" #: ../../c-api/init.rst:1474 msgid "" -"This macro expands to the initializer for :c:type:`Py_tss_t` variables. Note" -" that this macro won't be defined with :ref:`Py_LIMITED_API `." +"This macro expands to the initializer for :c:type:`Py_tss_t` variables. Note " +"that this macro won't be defined with :ref:`Py_LIMITED_API `." msgstr "" #: ../../c-api/init.rst:1479 @@ -1737,16 +1751,15 @@ msgstr "" #: ../../c-api/init.rst:1488 msgid "" -"Return a value which is the same state as a value initialized with " -":c:macro:`Py_tss_NEEDS_INIT`, or ``NULL`` in the case of dynamic allocation " -"failure." +"Return a value which is the same state as a value initialized with :c:macro:" +"`Py_tss_NEEDS_INIT`, or ``NULL`` in the case of dynamic allocation failure." msgstr "" #: ../../c-api/init.rst:1495 msgid "" "Free the given *key* allocated by :c:func:`PyThread_tss_alloc`, after first " -"calling :c:func:`PyThread_tss_delete` to ensure any associated thread locals" -" have been unassigned. This is a no-op if the *key* argument is `NULL`." +"calling :c:func:`PyThread_tss_delete` to ensure any associated thread locals " +"have been unassigned. This is a no-op if the *key* argument is `NULL`." msgstr "" #: ../../c-api/init.rst:1501 @@ -1762,20 +1775,20 @@ msgstr "Métodos" msgid "" "The parameter *key* of these functions must not be ``NULL``. Moreover, the " "behaviors of :c:func:`PyThread_tss_set` and :c:func:`PyThread_tss_get` are " -"undefined if the given :c:type:`Py_tss_t` has not been initialized by " -":c:func:`PyThread_tss_create`." +"undefined if the given :c:type:`Py_tss_t` has not been initialized by :c:" +"func:`PyThread_tss_create`." msgstr "" #: ../../c-api/init.rst:1516 msgid "" -"Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized" -" by :c:func:`PyThread_tss_create`." +"Return a non-zero value if the given :c:type:`Py_tss_t` has been initialized " +"by :c:func:`PyThread_tss_create`." msgstr "" #: ../../c-api/init.rst:1522 msgid "" -"Return a zero value on successful initialization of a TSS key. The behavior" -" is undefined if the value pointed to by the *key* argument is not " +"Return a zero value on successful initialization of a TSS key. The behavior " +"is undefined if the value pointed to by the *key* argument is not " "initialized by :c:macro:`Py_tss_NEEDS_INIT`. This function can be called " "repeatedly on the same key -- calling it on an already initialized key is a " "no-op and immediately returns success." @@ -1785,23 +1798,23 @@ msgstr "" msgid "" "Destroy a TSS key to forget the values associated with the key across all " "threads, and change the key's initialization state to uninitialized. A " -"destroyed key is able to be initialized again by " -":c:func:`PyThread_tss_create`. This function can be called repeatedly on the" -" same key -- calling it on an already destroyed key is a no-op." +"destroyed key is able to be initialized again by :c:func:" +"`PyThread_tss_create`. This function can be called repeatedly on the same " +"key -- calling it on an already destroyed key is a no-op." msgstr "" #: ../../c-api/init.rst:1540 msgid "" -"Return a zero value to indicate successfully associating a :c:type:`void\\*`" -" value with a TSS key in the current thread. Each thread has a distinct " +"Return a zero value to indicate successfully associating a :c:type:`void\\*` " +"value with a TSS key in the current thread. Each thread has a distinct " "mapping of the key to a :c:type:`void\\*` value." msgstr "" #: ../../c-api/init.rst:1547 msgid "" "Return the :c:type:`void\\*` value associated with a TSS key in the current " -"thread. This returns ``NULL`` if no value is associated with the key in the" -" current thread." +"thread. This returns ``NULL`` if no value is associated with the key in the " +"current thread." msgstr "" #: ../../c-api/init.rst:1555 @@ -1825,6 +1838,6 @@ msgstr "" #: ../../c-api/init.rst:1567 msgid "" -"Due to the compatibility problem noted above, this version of the API should" -" not be used in new code." +"Due to the compatibility problem noted above, this version of the API should " +"not be used in new code." msgstr "" diff --git a/c-api/intro.po b/c-api/intro.po index bde90eceb..bef5fc7a5 100644 --- a/c-api/intro.po +++ b/c-api/intro.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Ruan Aragão , 2019 # Leticia Portella , 2019 # felipe caridade , 2019 -# +# Italo Penaforte , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-27 13:44+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Italo Penaforte , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,39 +32,39 @@ msgstr "Introdução" #: ../../c-api/intro.rst:10 msgid "" -"The Application Programmer's Interface to Python gives C and C++ programmers" -" access to the Python interpreter at a variety of levels. The API is " -"equally usable from C++, but for brevity it is generally referred to as the " -"Python/C API. There are two fundamentally different reasons for using the " -"Python/C API. The first reason is to write *extension modules* for specific " -"purposes; these are C modules that extend the Python interpreter. This is " -"probably the most common use. The second reason is to use Python as a " -"component in a larger application; this technique is generally referred to " -"as :dfn:`embedding` Python in an application." +"The Application Programmer's Interface to Python gives C and C++ programmers " +"access to the Python interpreter at a variety of levels. The API is equally " +"usable from C++, but for brevity it is generally referred to as the Python/C " +"API. There are two fundamentally different reasons for using the Python/C " +"API. The first reason is to write *extension modules* for specific purposes; " +"these are C modules that extend the Python interpreter. This is probably " +"the most common use. The second reason is to use Python as a component in a " +"larger application; this technique is generally referred to as :dfn:" +"`embedding` Python in an application." msgstr "" #: ../../c-api/intro.rst:20 msgid "" -"Writing an extension module is a relatively well-understood process, where a" -" \"cookbook\" approach works well. There are several tools that automate " -"the process to some extent. While people have embedded Python in other " +"Writing an extension module is a relatively well-understood process, where a " +"\"cookbook\" approach works well. There are several tools that automate the " +"process to some extent. While people have embedded Python in other " "applications since its early existence, the process of embedding Python is " "less straightforward than writing an extension." msgstr "" -"Escrever um módulo de extensão é um processo relativamente bem compreendido," -" no qual uma abordagem de \"livro de receitas\" funciona bem. Existem várias" -" ferramentas que automatizam o processo até certo ponto. Embora as pessoas " +"Escrever um módulo de extensão é um processo relativamente bem compreendido, " +"no qual uma abordagem de \"livro de receitas\" funciona bem. Existem várias " +"ferramentas que automatizam o processo até certo ponto. Embora as pessoas " "tenham incorporado o Python em outros aplicativos desde sua existência " -"inicial, o processo de incorporação do Python é menos direto do que escrever" -" uma extensão." +"inicial, o processo de incorporação do Python é menos direto do que escrever " +"uma extensão." #: ../../c-api/intro.rst:26 msgid "" "Many API functions are useful independent of whether you're embedding or " "extending Python; moreover, most applications that embed Python will need " "to provide a custom extension as well, so it's probably a good idea to " -"become familiar with writing an extension before attempting to embed Python" -" in a real application." +"become familiar with writing an extension before attempting to embed Python " +"in a real application." msgstr "" #: ../../c-api/intro.rst:34 @@ -91,15 +93,15 @@ msgstr "" #: ../../c-api/intro.rst:54 msgid "" "This implies inclusion of the following standard headers: ````, " -"````, ````, ````, ```` and " -"```` (if available)." +"````, ````, ````, ```` and ```` (if available)." msgstr "" #: ../../c-api/intro.rst:60 msgid "" "Since Python may define some pre-processor definitions which affect the " -"standard headers on some systems, you *must* include :file:`Python.h` before" -" any standard headers are included." +"standard headers on some systems, you *must* include :file:`Python.h` before " +"any standard headers are included." msgstr "" #: ../../c-api/intro.rst:64 @@ -113,45 +115,45 @@ msgid "" "All user visible names defined by Python.h (except those defined by the " "included standard headers) have one of the prefixes ``Py`` or ``_Py``. " "Names beginning with ``_Py`` are for internal use by the Python " -"implementation and should not be used by extension writers. Structure member" -" names do not have a reserved prefix." +"implementation and should not be used by extension writers. Structure member " +"names do not have a reserved prefix." msgstr "" #: ../../c-api/intro.rst:74 msgid "" "User code should never define names that begin with ``Py`` or ``_Py``. This " "confuses the reader, and jeopardizes the portability of the user code to " -"future Python versions, which may define additional names beginning with one" -" of these prefixes." +"future Python versions, which may define additional names beginning with one " +"of these prefixes." msgstr "" #: ../../c-api/intro.rst:79 msgid "" "The header files are typically installed with Python. On Unix, these are " -"located in the directories :file:`{prefix}/include/pythonversion/` and " -":file:`{exec_prefix}/include/pythonversion/`, where :envvar:`prefix` and " -":envvar:`exec_prefix` are defined by the corresponding parameters to " -"Python's :program:`configure` script and *version* is ``'%d.%d' % " -"sys.version_info[:2]``. On Windows, the headers are installed in " -":file:`{prefix}/include`, where :envvar:`prefix` is the installation " -"directory specified to the installer." +"located in the directories :file:`{prefix}/include/pythonversion/` and :file:" +"`{exec_prefix}/include/pythonversion/`, where :envvar:`prefix` and :envvar:" +"`exec_prefix` are defined by the corresponding parameters to Python's :" +"program:`configure` script and *version* is ``'%d.%d' % sys." +"version_info[:2]``. On Windows, the headers are installed in :file:" +"`{prefix}/include`, where :envvar:`prefix` is the installation directory " +"specified to the installer." msgstr "" #: ../../c-api/intro.rst:88 msgid "" "To include the headers, place both directories (if different) on your " "compiler's search path for includes. Do *not* place the parent directories " -"on the search path and then use ``#include ``; this will" -" break on multi-platform builds since the platform independent headers under" -" :envvar:`prefix` include the platform specific headers from " -":envvar:`exec_prefix`." +"on the search path and then use ``#include ``; this will " +"break on multi-platform builds since the platform independent headers under :" +"envvar:`prefix` include the platform specific headers from :envvar:" +"`exec_prefix`." msgstr "" #: ../../c-api/intro.rst:95 msgid "" -"C++ users should note that although the API is defined entirely using C, the" -" header files properly declare the entry points to be ``extern \"C\"``. As a" -" result, there is no need to do anything special to use the API from C++." +"C++ users should note that although the API is defined entirely using C, the " +"header files properly declare the entry points to be ``extern \"C\"``. As a " +"result, there is no need to do anything special to use the API from C++." msgstr "" #: ../../c-api/intro.rst:101 @@ -168,9 +170,9 @@ msgstr "" #: ../../c-api/intro.rst:110 msgid "" -"Use this when you have a code path that you do not expect to be reached. For" -" example, in the ``default:`` clause in a ``switch`` statement for which all" -" possible values are covered in ``case`` statements. Use this in places " +"Use this when you have a code path that you do not expect to be reached. For " +"example, in the ``default:`` clause in a ``switch`` statement for which all " +"possible values are covered in ``case`` statements. Use this in places " "where you might be tempted to put an ``assert(0)`` or ``abort()`` call." msgstr "" @@ -188,8 +190,7 @@ msgstr "Retorna o valor máximo entre ``x`` e ``y``." #: ../../c-api/intro.rst:137 msgid "" -"Convert ``x`` to a C string. E.g. ``Py_STRINGIFY(123)`` returns " -"``\"123\"``." +"Convert ``x`` to a C string. E.g. ``Py_STRINGIFY(123)`` returns ``\"123\"``." msgstr "" #: ../../c-api/intro.rst:144 @@ -214,51 +215,79 @@ msgid "" "warnings, e.g. ``PyObject* func(PyObject *Py_UNUSED(ignored))``." msgstr "" -#: ../../c-api/intro.rst:169 +#: ../../c-api/intro.rst:167 +msgid "" +"Creates a variable with name ``name`` that can be used in docstrings. If " +"Python is built without docstrings, the value will be empty." +msgstr "" + +#: ../../c-api/intro.rst:170 +msgid "" +"Use :c:macro:`PyDoc_STRVAR` for docstrings to support building Python " +"without docstrings, as specified in :pep:`7`." +msgstr "" + +#: ../../c-api/intro.rst:173 ../../c-api/intro.rst:191 +msgid "Example::" +msgstr "Exemplo::" + +#: ../../c-api/intro.rst:185 +msgid "" +"Creates a docstring for the given input string or an empty string if " +"docstrings are disabled." +msgstr "" + +#: ../../c-api/intro.rst:188 +msgid "" +"Use :c:macro:`PyDoc_STR` in specifying docstrings to support building Python " +"without docstrings, as specified in :pep:`7`." +msgstr "" + +#: ../../c-api/intro.rst:202 msgid "Objects, Types and Reference Counts" msgstr "Objetos, tipos e contagens de referência" -#: ../../c-api/intro.rst:173 +#: ../../c-api/intro.rst:206 msgid "" "Most Python/C API functions have one or more arguments as well as a return " "value of type :c:type:`PyObject\\*`. This type is a pointer to an opaque " "data type representing an arbitrary Python object. Since all Python object " -"types are treated the same way by the Python language in most situations " -"(e.g., assignments, scope rules, and argument passing), it is only fitting " -"that they should be represented by a single C type. Almost all Python " -"objects live on the heap: you never declare an automatic or static variable " -"of type :c:type:`PyObject`, only pointer variables of type " -":c:type:`PyObject\\*` can be declared. The sole exception are the type " -"objects; since these must never be deallocated, they are typically static " -":c:type:`PyTypeObject` objects." +"types are treated the same way by the Python language in most situations (e." +"g., assignments, scope rules, and argument passing), it is only fitting that " +"they should be represented by a single C type. Almost all Python objects " +"live on the heap: you never declare an automatic or static variable of type :" +"c:type:`PyObject`, only pointer variables of type :c:type:`PyObject\\*` can " +"be declared. The sole exception are the type objects; since these must " +"never be deallocated, they are typically static :c:type:`PyTypeObject` " +"objects." msgstr "" -#: ../../c-api/intro.rst:184 +#: ../../c-api/intro.rst:217 msgid "" -"All Python objects (even Python integers) have a :dfn:`type` and a " -":dfn:`reference count`. An object's type determines what kind of object it " -"is (e.g., an integer, a list, or a user-defined function; there are many " -"more as explained in :ref:`types`). For each of the well-known types there " -"is a macro to check whether an object is of that type; for instance, " -"``PyList_Check(a)`` is true if (and only if) the object pointed to by *a* is" -" a Python list." +"All Python objects (even Python integers) have a :dfn:`type` and a :dfn:" +"`reference count`. An object's type determines what kind of object it is (e." +"g., an integer, a list, or a user-defined function; there are many more as " +"explained in :ref:`types`). For each of the well-known types there is a " +"macro to check whether an object is of that type; for instance, " +"``PyList_Check(a)`` is true if (and only if) the object pointed to by *a* is " +"a Python list." msgstr "" -#: ../../c-api/intro.rst:195 +#: ../../c-api/intro.rst:228 msgid "Reference Counts" msgstr "Contagens de referência" -#: ../../c-api/intro.rst:197 +#: ../../c-api/intro.rst:230 msgid "" "The reference count is important because today's computers have a finite " "(and often severely limited) memory size; it counts how many different " -"places there are that have a reference to an object. Such a place could be" -" another object, or a global (or static) C variable, or a local variable in" -" some C function. When an object's reference count becomes zero, the object" -" is deallocated. If it contains references to other objects, their " +"places there are that have a reference to an object. Such a place could be " +"another object, or a global (or static) C variable, or a local variable in " +"some C function. When an object's reference count becomes zero, the object " +"is deallocated. If it contains references to other objects, their " "reference count is decremented. Those other objects may be deallocated in " -"turn, if this decrement makes their reference count become zero, and so on." -" (There's an obvious problem with objects that reference each other here; " +"turn, if this decrement makes their reference count become zero, and so on. " +"(There's an obvious problem with objects that reference each other here; " "for now, the solution is \"don't do that.\")" msgstr "" "A contagem de referência é importante porque os computadores de hoje têm um " @@ -268,20 +297,20 @@ msgstr "" "variável local em alguma função C. Quando a contagem de referência de um " "objeto se torna zero, o objeto é desalocado. Se contiver referências a " "outros objetos, sua contagem de referência será diminuída. Esses outros " -"objetos podem ser desalocados, por sua vez, se esse decremento fizer com que" -" sua contagem de referência se torne zero e assim por diante. (Há um " -"problema óbvio com objetos que fazem referência um ao outro aqui; por " -"enquanto, a solução é \"não faça isso\")." +"objetos podem ser desalocados, por sua vez, se esse decremento fizer com que " +"sua contagem de referência se torne zero e assim por diante. (Há um problema " +"óbvio com objetos que fazem referência um ao outro aqui; por enquanto, a " +"solução é \"não faça isso\")." -#: ../../c-api/intro.rst:212 +#: ../../c-api/intro.rst:245 msgid "" "Reference counts are always manipulated explicitly. The normal way is to " "use the macro :c:func:`Py_INCREF` to increment an object's reference count " -"by one, and :c:func:`Py_DECREF` to decrement it by one. The " -":c:func:`Py_DECREF` macro is considerably more complex than the incref one, " -"since it must check whether the reference count becomes zero and then cause " -"the object's deallocator to be called. The deallocator is a function pointer" -" contained in the object's type structure. The type-specific deallocator " +"by one, and :c:func:`Py_DECREF` to decrement it by one. The :c:func:" +"`Py_DECREF` macro is considerably more complex than the incref one, since it " +"must check whether the reference count becomes zero and then cause the " +"object's deallocator to be called. The deallocator is a function pointer " +"contained in the object's type structure. The type-specific deallocator " "takes care of decrementing the reference counts for other objects contained " "in the object if this is a compound object type, such as a list, as well as " "performing any additional finalization that's needed. There's no chance " @@ -291,37 +320,35 @@ msgid "" "reference count increment is a simple operation." msgstr "" -#: ../../c-api/intro.rst:226 +#: ../../c-api/intro.rst:259 msgid "" "It is not necessary to increment an object's reference count for every " "local variable that contains a pointer to an object. In theory, the " "object's reference count goes up by one when the variable is made to point " "to it and it goes down by one when the variable goes out of scope. " -"However, these two cancel each other out, so at the end the reference count" -" hasn't changed. The only real reason to use the reference count is to " +"However, these two cancel each other out, so at the end the reference count " +"hasn't changed. The only real reason to use the reference count is to " "prevent the object from being deallocated as long as our variable is " "pointing to it. If we know that there is at least one other reference to " "the object that lives at least as long as our variable, there is no need to " "increment the reference count temporarily. An important situation where " -"this arises is in objects that are passed as arguments to C functions in an" -" extension module that are called from Python; the call mechanism " -"guarantees to hold a reference to every argument for the duration of the " -"call." +"this arises is in objects that are passed as arguments to C functions in an " +"extension module that are called from Python; the call mechanism guarantees " +"to hold a reference to every argument for the duration of the call." msgstr "" -#: ../../c-api/intro.rst:240 +#: ../../c-api/intro.rst:273 msgid "" -"However, a common pitfall is to extract an object from a list and hold on to" -" it for a while without incrementing its reference count. Some other " +"However, a common pitfall is to extract an object from a list and hold on to " +"it for a while without incrementing its reference count. Some other " "operation might conceivably remove the object from the list, decrementing " "its reference count and possible deallocating it. The real danger is that " "innocent-looking operations may invoke arbitrary Python code which could do " "this; there is a code path which allows control to flow back to the user " -"from a :c:func:`Py_DECREF`, so almost any operation is potentially " -"dangerous." +"from a :c:func:`Py_DECREF`, so almost any operation is potentially dangerous." msgstr "" -#: ../../c-api/intro.rst:248 +#: ../../c-api/intro.rst:281 msgid "" "A safe approach is to always use the generic operations (functions whose " "name begins with ``PyObject_``, ``PyNumber_``, ``PySequence_`` or " @@ -331,11 +358,11 @@ msgid "" "becomes second nature." msgstr "" -#: ../../c-api/intro.rst:258 +#: ../../c-api/intro.rst:291 msgid "Reference Count Details" msgstr "Detalhes da contagem de referência" -#: ../../c-api/intro.rst:260 +#: ../../c-api/intro.rst:293 msgid "" "The reference count behavior of functions in the Python/C API is best " "explained in terms of *ownership of references*. Ownership pertains to " @@ -343,8 +370,8 @@ msgid "" "shared). \"Owning a reference\" means being responsible for calling " "Py_DECREF on it when the reference is no longer needed. Ownership can also " "be transferred, meaning that the code that receives ownership of the " -"reference then becomes responsible for eventually decref'ing it by calling " -":c:func:`Py_DECREF` or :c:func:`Py_XDECREF` when it's no longer needed---or " +"reference then becomes responsible for eventually decref'ing it by calling :" +"c:func:`Py_DECREF` or :c:func:`Py_XDECREF` when it's no longer needed---or " "passing on this responsibility (usually to its caller). When a function " "passes ownership of a reference on to its caller, the caller is said to " "receive a *new* reference. When no ownership is transferred, the caller is " @@ -352,7 +379,7 @@ msgid "" "reference." msgstr "" -#: ../../c-api/intro.rst:273 +#: ../../c-api/intro.rst:306 msgid "" "Conversely, when a calling function passes in a reference to an object, " "there are two possibilities: the function *steals* a reference to the " @@ -361,244 +388,240 @@ msgid "" "reference, and you are not responsible for it any longer." msgstr "" -#: ../../c-api/intro.rst:283 +#: ../../c-api/intro.rst:316 msgid "" -"Few functions steal references; the two notable exceptions are " -":c:func:`PyList_SetItem` and :c:func:`PyTuple_SetItem`, which steal a " -"reference to the item (but not to the tuple or list into which the item is " -"put!). These functions were designed to steal a reference because of a " -"common idiom for populating a tuple or list with newly created objects; for " -"example, the code to create the tuple ``(1, 2, \"three\")`` could look like " -"this (forgetting about error handling for the moment; a better way to code " -"this is shown below)::" +"Few functions steal references; the two notable exceptions are :c:func:" +"`PyList_SetItem` and :c:func:`PyTuple_SetItem`, which steal a reference to " +"the item (but not to the tuple or list into which the item is put!). These " +"functions were designed to steal a reference because of a common idiom for " +"populating a tuple or list with newly created objects; for example, the code " +"to create the tuple ``(1, 2, \"three\")`` could look like this (forgetting " +"about error handling for the moment; a better way to code this is shown " +"below)::" msgstr "" -#: ../../c-api/intro.rst:298 +#: ../../c-api/intro.rst:331 msgid "" -"Here, :c:func:`PyLong_FromLong` returns a new reference which is immediately" -" stolen by :c:func:`PyTuple_SetItem`. When you want to keep using an object" -" although the reference to it will be stolen, use :c:func:`Py_INCREF` to " -"grab another reference before calling the reference-stealing function." +"Here, :c:func:`PyLong_FromLong` returns a new reference which is immediately " +"stolen by :c:func:`PyTuple_SetItem`. When you want to keep using an object " +"although the reference to it will be stolen, use :c:func:`Py_INCREF` to grab " +"another reference before calling the reference-stealing function." msgstr "" -#: ../../c-api/intro.rst:303 +#: ../../c-api/intro.rst:336 msgid "" "Incidentally, :c:func:`PyTuple_SetItem` is the *only* way to set tuple " -"items; :c:func:`PySequence_SetItem` and :c:func:`PyObject_SetItem` refuse to" -" do this since tuples are an immutable data type. You should only use " -":c:func:`PyTuple_SetItem` for tuples that you are creating yourself." +"items; :c:func:`PySequence_SetItem` and :c:func:`PyObject_SetItem` refuse to " +"do this since tuples are an immutable data type. You should only use :c:" +"func:`PyTuple_SetItem` for tuples that you are creating yourself." msgstr "" -#: ../../c-api/intro.rst:308 +#: ../../c-api/intro.rst:341 msgid "" -"Equivalent code for populating a list can be written using " -":c:func:`PyList_New` and :c:func:`PyList_SetItem`." +"Equivalent code for populating a list can be written using :c:func:" +"`PyList_New` and :c:func:`PyList_SetItem`." msgstr "" -#: ../../c-api/intro.rst:311 +#: ../../c-api/intro.rst:344 msgid "" "However, in practice, you will rarely use these ways of creating and " -"populating a tuple or list. There's a generic function, " -":c:func:`Py_BuildValue`, that can create most common objects from C values, " -"directed by a :dfn:`format string`. For example, the above two blocks of " -"code could be replaced by the following (which also takes care of the error " -"checking)::" +"populating a tuple or list. There's a generic function, :c:func:" +"`Py_BuildValue`, that can create most common objects from C values, directed " +"by a :dfn:`format string`. For example, the above two blocks of code could " +"be replaced by the following (which also takes care of the error checking)::" msgstr "" -#: ../../c-api/intro.rst:322 +#: ../../c-api/intro.rst:355 msgid "" "It is much more common to use :c:func:`PyObject_SetItem` and friends with " "items whose references you are only borrowing, like arguments that were " "passed in to the function you are writing. In that case, their behaviour " "regarding reference counts is much saner, since you don't have to increment " -"a reference count so you can give a reference away (\"have it be stolen\")." -" For example, this function sets all items of a list (actually, any mutable" -" sequence) to a given item::" +"a reference count so you can give a reference away (\"have it be stolen\"). " +"For example, this function sets all items of a list (actually, any mutable " +"sequence) to a given item::" msgstr "" -#: ../../c-api/intro.rst:352 +#: ../../c-api/intro.rst:385 msgid "" "The situation is slightly different for function return values. While " "passing a reference to most functions does not change your ownership " -"responsibilities for that reference, many functions that return a reference" -" to an object give you ownership of the reference. The reason is simple: in " +"responsibilities for that reference, many functions that return a reference " +"to an object give you ownership of the reference. The reason is simple: in " "many cases, the returned object is created on the fly, and the reference " "you get is the only reference to the object. Therefore, the generic " -"functions that return object references, like :c:func:`PyObject_GetItem` and" -" :c:func:`PySequence_GetItem`, always return a new reference (the caller " +"functions that return object references, like :c:func:`PyObject_GetItem` " +"and :c:func:`PySequence_GetItem`, always return a new reference (the caller " "becomes the owner of the reference)." msgstr "" -#: ../../c-api/intro.rst:361 +#: ../../c-api/intro.rst:394 msgid "" "It is important to realize that whether you own a reference returned by a " -"function depends on which function you call only --- *the plumage* (the type" -" of the object passed as an argument to the function) *doesn't enter into " -"it!* Thus, if you extract an item from a list using " -":c:func:`PyList_GetItem`, you don't own the reference --- but if you obtain " -"the same item from the same list using :c:func:`PySequence_GetItem` (which " -"happens to take exactly the same arguments), you do own a reference to the " -"returned object." +"function depends on which function you call only --- *the plumage* (the type " +"of the object passed as an argument to the function) *doesn't enter into it!" +"* Thus, if you extract an item from a list using :c:func:`PyList_GetItem`, " +"you don't own the reference --- but if you obtain the same item from the " +"same list using :c:func:`PySequence_GetItem` (which happens to take exactly " +"the same arguments), you do own a reference to the returned object." msgstr "" -#: ../../c-api/intro.rst:373 +#: ../../c-api/intro.rst:406 msgid "" "Here is an example of how you could write a function that computes the sum " "of the items in a list of integers; once using :c:func:`PyList_GetItem`, " "and once using :c:func:`PySequence_GetItem`. ::" msgstr "" -#: ../../c-api/intro.rst:437 +#: ../../c-api/intro.rst:470 msgid "Types" msgstr "Tipos" -#: ../../c-api/intro.rst:439 +#: ../../c-api/intro.rst:472 msgid "" -"There are few other data types that play a significant role in the Python/C" -" API; most are simple C types such as :c:type:`int`, :c:type:`long`, " -":c:type:`double` and :c:type:`char\\*`. A few structure types are used to " -"describe static tables used to list the functions exported by a module or " -"the data attributes of a new object type, and another is used to describe " -"the value of a complex number. These will be discussed together with the " -"functions that use them." +"There are few other data types that play a significant role in the Python/C " +"API; most are simple C types such as :c:type:`int`, :c:type:`long`, :c:type:" +"`double` and :c:type:`char\\*`. A few structure types are used to describe " +"static tables used to list the functions exported by a module or the data " +"attributes of a new object type, and another is used to describe the value " +"of a complex number. These will be discussed together with the functions " +"that use them." msgstr "" -#: ../../c-api/intro.rst:451 +#: ../../c-api/intro.rst:484 msgid "Exceptions" msgstr "Exceções" -#: ../../c-api/intro.rst:453 +#: ../../c-api/intro.rst:486 msgid "" "The Python programmer only needs to deal with exceptions if specific error " "handling is required; unhandled exceptions are automatically propagated to " -"the caller, then to the caller's caller, and so on, until they reach the " -"top-level interpreter, where they are reported to the user accompanied by a" -" stack traceback." +"the caller, then to the caller's caller, and so on, until they reach the top-" +"level interpreter, where they are reported to the user accompanied by a " +"stack traceback." msgstr "" -#: ../../c-api/intro.rst:461 +#: ../../c-api/intro.rst:494 msgid "" "For C programmers, however, error checking always has to be explicit. All " -"functions in the Python/C API can raise exceptions, unless an explicit claim" -" is made otherwise in a function's documentation. In general, when a " +"functions in the Python/C API can raise exceptions, unless an explicit claim " +"is made otherwise in a function's documentation. In general, when a " "function encounters an error, it sets an exception, discards any object " "references that it owns, and returns an error indicator. If not documented " "otherwise, this indicator is either ``NULL`` or ``-1``, depending on the " "function's return type. A few functions return a Boolean true/false result, " -"with false indicating an error. Very few functions return no explicit error" -" indicator or have an ambiguous return value, and require explicit testing " +"with false indicating an error. Very few functions return no explicit error " +"indicator or have an ambiguous return value, and require explicit testing " "for errors with :c:func:`PyErr_Occurred`. These exceptions are always " "explicitly documented." msgstr "" -#: ../../c-api/intro.rst:476 +#: ../../c-api/intro.rst:509 msgid "" "Exception state is maintained in per-thread storage (this is equivalent to " -"using global storage in an unthreaded application). A thread can be in one" -" of two states: an exception has occurred, or not. The function " -":c:func:`PyErr_Occurred` can be used to check for this: it returns a " -"borrowed reference to the exception type object when an exception has " -"occurred, and ``NULL`` otherwise. There are a number of functions to set " -"the exception state: :c:func:`PyErr_SetString` is the most common (though " -"not the most general) function to set the exception state, and " -":c:func:`PyErr_Clear` clears the exception state." +"using global storage in an unthreaded application). A thread can be in one " +"of two states: an exception has occurred, or not. The function :c:func:" +"`PyErr_Occurred` can be used to check for this: it returns a borrowed " +"reference to the exception type object when an exception has occurred, and " +"``NULL`` otherwise. There are a number of functions to set the exception " +"state: :c:func:`PyErr_SetString` is the most common (though not the most " +"general) function to set the exception state, and :c:func:`PyErr_Clear` " +"clears the exception state." msgstr "" -#: ../../c-api/intro.rst:486 +#: ../../c-api/intro.rst:519 msgid "" "The full exception state consists of three objects (all of which can be " "``NULL``): the exception type, the corresponding exception value, and the " -"traceback. These have the same meanings as the Python result of " -"``sys.exc_info()``; however, they are not the same: the Python objects " -"represent the last exception being handled by a Python :keyword:`try` ... " -":keyword:`except` statement, while the C level exception state only exists " -"while an exception is being passed on between C functions until it reaches " -"the Python bytecode interpreter's main loop, which takes care of " -"transferring it to ``sys.exc_info()`` and friends." -msgstr "" - -#: ../../c-api/intro.rst:498 -msgid "" -"Note that starting with Python 1.5, the preferred, thread-safe way to access" -" the exception state from Python code is to call the function " -":func:`sys.exc_info`, which returns the per-thread exception state for " -"Python code. Also, the semantics of both ways to access the exception state" -" have changed so that a function which catches an exception will save and " -"restore its thread's exception state so as to preserve the exception state " -"of its caller. This prevents common bugs in exception handling code caused " -"by an innocent-looking function overwriting the exception being handled; it " -"also reduces the often unwanted lifetime extension for objects that are " +"traceback. These have the same meanings as the Python result of ``sys." +"exc_info()``; however, they are not the same: the Python objects represent " +"the last exception being handled by a Python :keyword:`try` ... :keyword:" +"`except` statement, while the C level exception state only exists while an " +"exception is being passed on between C functions until it reaches the Python " +"bytecode interpreter's main loop, which takes care of transferring it to " +"``sys.exc_info()`` and friends." +msgstr "" + +#: ../../c-api/intro.rst:531 +msgid "" +"Note that starting with Python 1.5, the preferred, thread-safe way to access " +"the exception state from Python code is to call the function :func:`sys." +"exc_info`, which returns the per-thread exception state for Python code. " +"Also, the semantics of both ways to access the exception state have changed " +"so that a function which catches an exception will save and restore its " +"thread's exception state so as to preserve the exception state of its " +"caller. This prevents common bugs in exception handling code caused by an " +"innocent-looking function overwriting the exception being handled; it also " +"reduces the often unwanted lifetime extension for objects that are " "referenced by the stack frames in the traceback." msgstr "" -#: ../../c-api/intro.rst:509 +#: ../../c-api/intro.rst:542 msgid "" "As a general principle, a function that calls another function to perform " -"some task should check whether the called function raised an exception, and" -" if so, pass the exception state on to its caller. It should discard any " +"some task should check whether the called function raised an exception, and " +"if so, pass the exception state on to its caller. It should discard any " "object references that it owns, and return an error indicator, but it " "should *not* set another exception --- that would overwrite the exception " "that was just raised, and lose important information about the exact cause " "of the error." msgstr "" -#: ../../c-api/intro.rst:518 +#: ../../c-api/intro.rst:551 msgid "" -"A simple example of detecting exceptions and passing them on is shown in the" -" :c:func:`sum_sequence` example above. It so happens that this example " -"doesn't need to clean up any owned references when it detects an error. The" -" following example function shows some error cleanup. First, to remind you " +"A simple example of detecting exceptions and passing them on is shown in " +"the :c:func:`sum_sequence` example above. It so happens that this example " +"doesn't need to clean up any owned references when it detects an error. The " +"following example function shows some error cleanup. First, to remind you " "why you like Python, we show the equivalent Python code::" msgstr "" -#: ../../c-api/intro.rst:533 +#: ../../c-api/intro.rst:566 msgid "Here is the corresponding C code, in all its glory::" msgstr "" -#: ../../c-api/intro.rst:585 +#: ../../c-api/intro.rst:618 msgid "" "This example represents an endorsed use of the ``goto`` statement in C! It " -"illustrates the use of :c:func:`PyErr_ExceptionMatches` and " -":c:func:`PyErr_Clear` to handle specific exceptions, and the use of " -":c:func:`Py_XDECREF` to dispose of owned references that may be ``NULL`` " -"(note the ``'X'`` in the name; :c:func:`Py_DECREF` would crash when " -"confronted with a ``NULL`` reference). It is important that the variables " -"used to hold owned references are initialized to ``NULL`` for this to work; " -"likewise, the proposed return value is initialized to ``-1`` (failure) and " -"only set to success after the final call made is successful." +"illustrates the use of :c:func:`PyErr_ExceptionMatches` and :c:func:" +"`PyErr_Clear` to handle specific exceptions, and the use of :c:func:" +"`Py_XDECREF` to dispose of owned references that may be ``NULL`` (note the " +"``'X'`` in the name; :c:func:`Py_DECREF` would crash when confronted with a " +"``NULL`` reference). It is important that the variables used to hold owned " +"references are initialized to ``NULL`` for this to work; likewise, the " +"proposed return value is initialized to ``-1`` (failure) and only set to " +"success after the final call made is successful." msgstr "" -#: ../../c-api/intro.rst:599 +#: ../../c-api/intro.rst:632 msgid "Embedding Python" msgstr "Incorporando Python" -#: ../../c-api/intro.rst:601 +#: ../../c-api/intro.rst:634 msgid "" -"The one important task that only embedders (as opposed to extension writers)" -" of the Python interpreter have to worry about is the initialization, and " -"possibly the finalization, of the Python interpreter. Most functionality of" -" the interpreter can only be used after the interpreter has been " -"initialized." +"The one important task that only embedders (as opposed to extension writers) " +"of the Python interpreter have to worry about is the initialization, and " +"possibly the finalization, of the Python interpreter. Most functionality of " +"the interpreter can only be used after the interpreter has been initialized." msgstr "" -#: ../../c-api/intro.rst:614 +#: ../../c-api/intro.rst:647 msgid "" "The basic initialization function is :c:func:`Py_Initialize`. This " -"initializes the table of loaded modules, and creates the fundamental modules" -" :mod:`builtins`, :mod:`__main__`, and :mod:`sys`. It also initializes the " -"module search path (``sys.path``)." +"initializes the table of loaded modules, and creates the fundamental " +"modules :mod:`builtins`, :mod:`__main__`, and :mod:`sys`. It also " +"initializes the module search path (``sys.path``)." msgstr "" -#: ../../c-api/intro.rst:621 +#: ../../c-api/intro.rst:654 msgid "" -":c:func:`Py_Initialize` does not set the \"script argument list\" " -"(``sys.argv``). If this variable is needed by Python code that will be " -"executed later, it must be set explicitly with a call to " -"``PySys_SetArgvEx(argc, argv, updatepath)`` after the call to " -":c:func:`Py_Initialize`." +":c:func:`Py_Initialize` does not set the \"script argument list\" (``sys." +"argv``). If this variable is needed by Python code that will be executed " +"later, it must be set explicitly with a call to ``PySys_SetArgvEx(argc, " +"argv, updatepath)`` after the call to :c:func:`Py_Initialize`." msgstr "" -#: ../../c-api/intro.rst:626 +#: ../../c-api/intro.rst:659 msgid "" "On most systems (in particular, on Unix and Windows, although the details " "are slightly different), :c:func:`Py_Initialize` calculates the module " @@ -610,75 +633,74 @@ msgid "" "on the shell command search path (the environment variable :envvar:`PATH`)." msgstr "" -#: ../../c-api/intro.rst:635 +#: ../../c-api/intro.rst:668 msgid "" -"For instance, if the Python executable is found in " -":file:`/usr/local/bin/python`, it will assume that the libraries are in " -":file:`/usr/local/lib/python{X.Y}`. (In fact, this particular path is also " -"the \"fallback\" location, used when no executable file named :file:`python`" -" is found along :envvar:`PATH`.) The user can override this behavior by " -"setting the environment variable :envvar:`PYTHONHOME`, or insert additional " -"directories in front of the standard path by setting :envvar:`PYTHONPATH`." +"For instance, if the Python executable is found in :file:`/usr/local/bin/" +"python`, it will assume that the libraries are in :file:`/usr/local/lib/" +"python{X.Y}`. (In fact, this particular path is also the \"fallback\" " +"location, used when no executable file named :file:`python` is found along :" +"envvar:`PATH`.) The user can override this behavior by setting the " +"environment variable :envvar:`PYTHONHOME`, or insert additional directories " +"in front of the standard path by setting :envvar:`PYTHONPATH`." msgstr "" -#: ../../c-api/intro.rst:650 +#: ../../c-api/intro.rst:683 msgid "" "The embedding application can steer the search by calling " -"``Py_SetProgramName(file)`` *before* calling :c:func:`Py_Initialize`. Note" -" that :envvar:`PYTHONHOME` still overrides this and :envvar:`PYTHONPATH` is " +"``Py_SetProgramName(file)`` *before* calling :c:func:`Py_Initialize`. Note " +"that :envvar:`PYTHONHOME` still overrides this and :envvar:`PYTHONPATH` is " "still inserted in front of the standard path. An application that requires " -"total control has to provide its own implementation of :c:func:`Py_GetPath`," -" :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, and " -":c:func:`Py_GetProgramFullPath` (all defined in :file:`Modules/getpath.c`)." +"total control has to provide its own implementation of :c:func:" +"`Py_GetPath`, :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix`, and :c:" +"func:`Py_GetProgramFullPath` (all defined in :file:`Modules/getpath.c`)." msgstr "" -#: ../../c-api/intro.rst:660 +#: ../../c-api/intro.rst:693 msgid "" "Sometimes, it is desirable to \"uninitialize\" Python. For instance, the " -"application may want to start over (make another call to " -":c:func:`Py_Initialize`) or the application is simply done with its use of " -"Python and wants to free memory allocated by Python. This can be " -"accomplished by calling :c:func:`Py_FinalizeEx`. The function " -":c:func:`Py_IsInitialized` returns true if Python is currently in the " -"initialized state. More information about these functions is given in a " -"later chapter. Notice that :c:func:`Py_FinalizeEx` does *not* free all " -"memory allocated by the Python interpreter, e.g. memory allocated by " -"extension modules currently cannot be released." -msgstr "" - -#: ../../c-api/intro.rst:674 +"application may want to start over (make another call to :c:func:" +"`Py_Initialize`) or the application is simply done with its use of Python " +"and wants to free memory allocated by Python. This can be accomplished by " +"calling :c:func:`Py_FinalizeEx`. The function :c:func:`Py_IsInitialized` " +"returns true if Python is currently in the initialized state. More " +"information about these functions is given in a later chapter. Notice that :" +"c:func:`Py_FinalizeEx` does *not* free all memory allocated by the Python " +"interpreter, e.g. memory allocated by extension modules currently cannot be " +"released." +msgstr "" + +#: ../../c-api/intro.rst:707 msgid "Debugging Builds" msgstr "Construções de Depuração" -#: ../../c-api/intro.rst:676 +#: ../../c-api/intro.rst:709 msgid "" "Python can be built with several macros to enable extra checks of the " "interpreter and extension modules. These checks tend to add a large amount " "of overhead to the runtime so they are not enabled by default." msgstr "" -#: ../../c-api/intro.rst:680 +#: ../../c-api/intro.rst:713 msgid "" -"A full list of the various types of debugging builds is in the file " -":file:`Misc/SpecialBuilds.txt` in the Python source distribution. Builds are" -" available that support tracing of reference counts, debugging the memory " +"A full list of the various types of debugging builds is in the file :file:" +"`Misc/SpecialBuilds.txt` in the Python source distribution. Builds are " +"available that support tracing of reference counts, debugging the memory " "allocator, or low-level profiling of the main interpreter loop. Only the " "most frequently-used builds will be described in the remainder of this " "section." msgstr "" -#: ../../c-api/intro.rst:686 +#: ../../c-api/intro.rst:719 msgid "" "Compiling the interpreter with the :c:macro:`Py_DEBUG` macro defined " -"produces what is generally meant by \"a debug build\" of Python. " -":c:macro:`Py_DEBUG` is enabled in the Unix build by adding ``--with-" -"pydebug`` to the :file:`./configure` command. It is also implied by the " -"presence of the not-Python-specific :c:macro:`_DEBUG` macro. When " -":c:macro:`Py_DEBUG` is enabled in the Unix build, compiler optimization is " -"disabled." +"produces what is generally meant by \"a debug build\" of Python. :c:macro:" +"`Py_DEBUG` is enabled in the Unix build by adding ``--with-pydebug`` to the :" +"file:`./configure` command. It is also implied by the presence of the not-" +"Python-specific :c:macro:`_DEBUG` macro. When :c:macro:`Py_DEBUG` is " +"enabled in the Unix build, compiler optimization is disabled." msgstr "" -#: ../../c-api/intro.rst:693 +#: ../../c-api/intro.rst:726 msgid "" "In addition to the reference count debugging described below, the following " "extra checks are performed:" @@ -686,15 +708,15 @@ msgstr "" "Além da depuração de contagem de referência descrita abaixo, as seguintes " "verificações extras são executadas:" -#: ../../c-api/intro.rst:696 +#: ../../c-api/intro.rst:729 msgid "Extra checks are added to the object allocator." msgstr "Verificações extras são adicionadas ao alocador de objeto." -#: ../../c-api/intro.rst:698 +#: ../../c-api/intro.rst:731 msgid "Extra checks are added to the parser and compiler." msgstr "Verificações extras são adicionadas ao analisador e ao compilador." -#: ../../c-api/intro.rst:700 +#: ../../c-api/intro.rst:733 msgid "" "Downcasts from wide types to narrow types are checked for loss of " "information." @@ -702,25 +724,25 @@ msgstr "" "Downcasts de tipos amplos para tipos restritos são verificados quanto à " "perda de informações." -#: ../../c-api/intro.rst:702 +#: ../../c-api/intro.rst:735 msgid "" "A number of assertions are added to the dictionary and set implementations. " "In addition, the set object acquires a :meth:`test_c_api` method." msgstr "" -#: ../../c-api/intro.rst:705 +#: ../../c-api/intro.rst:738 msgid "Sanity checks of the input arguments are added to frame creation." msgstr "" "As verificações de integridade dos argumentos de entrada são adicionadas à " "criação de quadros." -#: ../../c-api/intro.rst:707 +#: ../../c-api/intro.rst:740 msgid "" "The storage for ints is initialized with a known invalid pattern to catch " "reference to uninitialized digits." msgstr "" -#: ../../c-api/intro.rst:710 +#: ../../c-api/intro.rst:743 msgid "" "Low-level tracing and extra exception checking are added to the runtime " "virtual machine." @@ -728,30 +750,30 @@ msgstr "" "O rastreamento de baixo nível e a verificação de exceções extras são " "adicionados à máquina virtual de tempo de execução." -#: ../../c-api/intro.rst:713 +#: ../../c-api/intro.rst:746 msgid "Extra checks are added to the memory arena implementation." msgstr "" "Verificações extras são adicionadas à implementação da arena de memória." -#: ../../c-api/intro.rst:715 +#: ../../c-api/intro.rst:748 msgid "Extra debugging is added to the thread module." msgstr "Depuração extra é adicionada ao módulo de thread." -#: ../../c-api/intro.rst:717 +#: ../../c-api/intro.rst:750 msgid "There may be additional checks not mentioned here." msgstr "Pode haver verificações adicionais não mencionadas aqui." -#: ../../c-api/intro.rst:719 +#: ../../c-api/intro.rst:752 msgid "" "Defining :c:macro:`Py_TRACE_REFS` enables reference tracing. When defined, " "a circular doubly linked list of active objects is maintained by adding two " "extra fields to every :c:type:`PyObject`. Total allocations are tracked as " -"well. Upon exit, all existing references are printed. (In interactive mode" -" this happens after every statement run by the interpreter.) Implied by " -":c:macro:`Py_DEBUG`." +"well. Upon exit, all existing references are printed. (In interactive mode " +"this happens after every statement run by the interpreter.) Implied by :c:" +"macro:`Py_DEBUG`." msgstr "" -#: ../../c-api/intro.rst:725 +#: ../../c-api/intro.rst:758 msgid "" "Please refer to :file:`Misc/SpecialBuilds.txt` in the Python source " "distribution for more detailed information." diff --git a/c-api/iter.po b/c-api/iter.po index 0022cdbcf..27dd5e948 100644 --- a/c-api/iter.po +++ b/c-api/iter.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Italo Penaforte , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,6 +43,10 @@ msgid "" "values, returns ``NULL`` with no exception set. If an error occurs while " "retrieving the item, returns ``NULL`` and passes along the exception." msgstr "" +"Retorna o próximo valor da iteração *o*. O objeto deve ser um iterador (cabe " +"ao chamador verificar isso). Se não houver valores restantes, retorna " +"``NULL`` sem nenhuma exceção. Se ocorrer um erro ao recuperar o item, " +"retornará ``NULL`` e passará a exceção." #: ../../c-api/iter.rst:22 msgid "" diff --git a/c-api/iterator.po b/c-api/iterator.po index f16da3388..e4864404e 100644 --- a/c-api/iterator.po +++ b/c-api/iterator.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,23 +29,32 @@ msgstr "Objeto Iterator" #: ../../c-api/iterator.rst:8 msgid "" -"Python provides two general-purpose iterator objects. The first, a sequence" -" iterator, works with an arbitrary sequence supporting the " -":meth:`__getitem__` method. The second works with a callable object and a " +"Python provides two general-purpose iterator objects. The first, a sequence " +"iterator, works with an arbitrary sequence supporting the :meth:" +"`__getitem__` method. The second works with a callable object and a " "sentinel value, calling the callable for each item in the sequence, and " "ending the iteration when the sentinel value is returned." msgstr "" +"O Python fornece dois objetos iteradores de uso geral. O primeiro, um " +"iterador de sequência, trabalha com uma sequência arbitrária que suporta o " +"método :meth:`__getitem__`. O segundo funciona com um objeto que pode ser " +"chamado e um valor de sentinela, chamando o que pode ser chamado para cada " +"item na sequência e finalizando a iteração quando o valor de sentinela é " +"retornado." #: ../../c-api/iterator.rst:17 msgid "" -"Type object for iterator objects returned by :c:func:`PySeqIter_New` and the" -" one-argument form of the :func:`iter` built-in function for built-in " +"Type object for iterator objects returned by :c:func:`PySeqIter_New` and the " +"one-argument form of the :func:`iter` built-in function for built-in " "sequence types." msgstr "" +"Objeto de tipo para objetos iteradores retornados por :c:func:" +"`PySeqIter_New` e a forma de um argumento da função embutida :func:`iter` " +"para tipos de sequência embutidos." #: ../../c-api/iterator.rst:24 msgid "Return true if the type of *op* is :c:data:`PySeqIter_Type`." -msgstr "" +msgstr "Retorna true se o tipo de *op* for :c:data:`PySeqIter_Type`." #: ../../c-api/iterator.rst:29 msgid "" @@ -51,16 +62,22 @@ msgid "" "iteration ends when the sequence raises :exc:`IndexError` for the " "subscripting operation." msgstr "" +"Retorna um iterador que funcione com um objeto de sequência geral, *seq*. A " +"iteração termina quando a sequência levanta :exc:`IndexError` para a " +"operação de assinatura." #: ../../c-api/iterator.rst:36 msgid "" "Type object for iterator objects returned by :c:func:`PyCallIter_New` and " "the two-argument form of the :func:`iter` built-in function." msgstr "" +"Objeto de tipo para objetos iteradores retornados por :c:func:" +"`PyCallIter_New` e a forma de dois argumentos da função embutida :func:" +"`iter`." #: ../../c-api/iterator.rst:42 msgid "Return true if the type of *op* is :c:data:`PyCallIter_Type`." -msgstr "" +msgstr "Retorna true se o tipo de *op* é :c:data:`PyCallIter_Type`." #: ../../c-api/iterator.rst:47 msgid "" @@ -69,3 +86,7 @@ msgid "" "should return the next item in the iteration. When *callable* returns a " "value equal to *sentinel*, the iteration will be terminated." msgstr "" +"Retorna um novo iterador. O primeiro parâmetro, *callable*, pode ser " +"qualquer objeto chamável do Python que possa ser chamado sem parâmetros; " +"cada chamada deve retornar o próximo item na iteração. Quando *callable* " +"retorna um valor igual a *sentinel*, a iteração será encerrada." diff --git a/c-api/list.po b/c-api/list.po index 5ea85349a..a56892623 100644 --- a/c-api/list.po +++ b/c-api/list.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Livia Cavalcanti , 2019 -# +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Livia Cavalcanti , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,8 +46,8 @@ msgstr "" #: ../../c-api/list.rst:30 msgid "" -"Return true if *p* is a list object, but not an instance of a subtype of the" -" list type." +"Return true if *p* is a list object, but not an instance of a subtype of the " +"list type." msgstr "" #: ../../c-api/list.rst:36 @@ -55,9 +57,9 @@ msgstr "" #: ../../c-api/list.rst:40 msgid "" "If *len* is greater than zero, the returned list object's items are set to " -"``NULL``. Thus you cannot use abstract API functions such as " -":c:func:`PySequence_SetItem` or expose the object to Python code before " -"setting all items to a real object with :c:func:`PyList_SetItem`." +"``NULL``. Thus you cannot use abstract API functions such as :c:func:" +"`PySequence_SetItem` or expose the object to Python code before setting all " +"items to a real object with :c:func:`PyList_SetItem`." msgstr "" #: ../../c-api/list.rst:50 @@ -72,10 +74,10 @@ msgstr "" #: ../../c-api/list.rst:61 msgid "" -"Return the object at position *index* in the list pointed to by *list*. The" -" position must be non-negative; indexing from the end of the list is not " -"supported. If *index* is out of bounds (<0 or >=len(list)), return ``NULL``" -" and set an :exc:`IndexError` exception." +"Return the object at position *index* in the list pointed to by *list*. The " +"position must be non-negative; indexing from the end of the list is not " +"supported. If *index* is out of bounds (<0 or >=len(list)), return ``NULL`` " +"and set an :exc:`IndexError` exception." msgstr "" #: ../../c-api/list.rst:69 @@ -94,8 +96,8 @@ msgid "" "This function \"steals\" a reference to *item* and discards a reference to " "an item already in the list at the affected position." msgstr "" -"Esta função \"rouba\" uma referência para o *item* e descarta uma referência" -" para um item já presente na lista na posição afetada." +"Esta função \"rouba\" uma referência para o *item* e descarta uma referência " +"para um item já presente na lista na posição afetada." #: ../../c-api/list.rst:86 msgid "" @@ -108,9 +110,9 @@ msgstr "" #: ../../c-api/list.rst:91 msgid "" -"This macro \"steals\" a reference to *item*, and, unlike " -":c:func:`PyList_SetItem`, does *not* discard a reference to any item that is" -" being replaced; any reference in *list* at position *i* will be leaked." +"This macro \"steals\" a reference to *item*, and, unlike :c:func:" +"`PyList_SetItem`, does *not* discard a reference to any item that is being " +"replaced; any reference in *list* at position *i* will be leaked." msgstr "" #: ../../c-api/list.rst:99 @@ -156,8 +158,8 @@ msgid "" "failure. This is the equivalent of ``list.reverse()``." msgstr "" "Inverte os termos de *list* no mesmo lugar. Retorna ``0`` em caso de " -"sucesso, e ``-1`` em caso de falha. Isso é o equivalente de " -"``list.reverse()``." +"sucesso, e ``-1`` em caso de falha. Isso é o equivalente de ``list." +"reverse()``." #: ../../c-api/list.rst:143 msgid "" @@ -169,4 +171,4 @@ msgstr "" #: ../../c-api/list.rst:149 msgid "Clear the free list. Return the total number of freed items." -msgstr "" +msgstr "Limpe a lista livre. Retorna o número total de itens liberados." diff --git a/c-api/long.po b/c-api/long.po index bfa8b18e9..da81f8761 100644 --- a/c-api/long.po +++ b/c-api/long.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,8 +50,8 @@ msgstr "" #: ../../c-api/long.rst:29 msgid "" -"Return true if its argument is a :c:type:`PyLongObject` or a subtype of " -":c:type:`PyLongObject`." +"Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:" +"type:`PyLongObject`." msgstr "" #: ../../c-api/long.rst:35 @@ -69,20 +70,20 @@ msgid "" "The current implementation keeps an array of integer objects for all " "integers between ``-5`` and ``256``, when you create an int in that range " "you actually just get back a reference to the existing object. So it should " -"be possible to change the value of ``1``. I suspect the behaviour of Python" -" in this case is undefined. :-)" +"be possible to change the value of ``1``. I suspect the behaviour of Python " +"in this case is undefined. :-)" msgstr "" #: ../../c-api/long.rst:52 msgid "" -"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`," -" or ``NULL`` on failure." +"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`, " +"or ``NULL`` on failure." msgstr "" #: ../../c-api/long.rst:58 msgid "" -"Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or" -" ``NULL`` on failure." +"Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or " +"``NULL`` on failure." msgstr "" #: ../../c-api/long.rst:64 @@ -112,36 +113,36 @@ msgstr "" #: ../../c-api/long.rst:88 msgid "" "Return a new :c:type:`PyLongObject` based on the string value in *str*, " -"which is interpreted according to the radix in *base*. If *pend* is " -"non-``NULL``, *\\*pend* will point to the first character in *str* which " -"follows the representation of the number. If *base* is ``0``, *str* is " -"interpreted using the :ref:`integers` definition; in this case, leading " -"zeros in a non-zero decimal number raises a :exc:`ValueError`. If *base* is " -"not ``0``, it must be between ``2`` and ``36``, inclusive. Leading spaces " -"and single underscores after a base specifier and between digits are " -"ignored. If there are no digits, :exc:`ValueError` will be raised." +"which is interpreted according to the radix in *base*. If *pend* is non-" +"``NULL``, *\\*pend* will point to the first character in *str* which follows " +"the representation of the number. If *base* is ``0``, *str* is interpreted " +"using the :ref:`integers` definition; in this case, leading zeros in a non-" +"zero decimal number raises a :exc:`ValueError`. If *base* is not ``0``, it " +"must be between ``2`` and ``36``, inclusive. Leading spaces and single " +"underscores after a base specifier and between digits are ignored. If there " +"are no digits, :exc:`ValueError` will be raised." msgstr "" #: ../../c-api/long.rst:101 msgid "" -"Convert a sequence of Unicode digits to a Python integer value. The Unicode" -" string is first encoded to a byte string using " -":c:func:`PyUnicode_EncodeDecimal` and then converted using " -":c:func:`PyLong_FromString`." +"Convert a sequence of Unicode digits to a Python integer value. The Unicode " +"string is first encoded to a byte string using :c:func:" +"`PyUnicode_EncodeDecimal` and then converted using :c:func:" +"`PyLong_FromString`." msgstr "" #: ../../c-api/long.rst:107 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyLong_FromUnicodeObject`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyLong_FromUnicodeObject`." msgstr "" #: ../../c-api/long.rst:112 msgid "" "Convert a sequence of Unicode digits in the string *u* to a Python integer " -"value. The Unicode string is first encoded to a byte string using " -":c:func:`PyUnicode_EncodeDecimal` and then converted using " -":c:func:`PyLong_FromString`." +"value. The Unicode string is first encoded to a byte string using :c:func:" +"`PyUnicode_EncodeDecimal` and then converted using :c:func:" +"`PyLong_FromString`." msgstr "" #: ../../c-api/long.rst:122 @@ -157,24 +158,23 @@ msgid "" "(if present) to convert it to a :c:type:`PyLongObject`." msgstr "" -#: ../../c-api/long.rst:137 ../../c-api/long.rst:166 +#: ../../c-api/long.rst:137 msgid "" -"Raise :exc:`OverflowError` if the value of *obj* is out of range for a " -":c:type:`long`." +"Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" +"type:`long`." msgstr "" #: ../../c-api/long.rst:140 ../../c-api/long.rst:154 ../../c-api/long.rst:169 #: ../../c-api/long.rst:183 ../../c-api/long.rst:200 -msgid "" -"Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." +msgid "Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" #: ../../c-api/long.rst:149 msgid "" -"If the value of *obj* is greater than :const:`LONG_MAX` or less than " -":const:`LONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, and " -"return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other " -"exception occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." +"If the value of *obj* is greater than :const:`LONG_MAX` or less than :const:" +"`LONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, and return " +"``-1``; otherwise, set *\\*overflow* to ``0``. If any other exception " +"occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." msgstr "" #: ../../c-api/long.rst:162 ../../c-api/long.rst:174 @@ -184,10 +184,16 @@ msgid "" "(if present) to convert it to a :c:type:`PyLongObject`." msgstr "" +#: ../../c-api/long.rst:166 +msgid "" +"Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" +"type:`long long`." +msgstr "" + #: ../../c-api/long.rst:178 msgid "" -"If the value of *obj* is greater than :const:`PY_LLONG_MAX` or less than " -":const:`PY_LLONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, " +"If the value of *obj* is greater than :const:`PY_LLONG_MAX` or less than :" +"const:`PY_LLONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, " "and return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other " "exception occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." msgstr "" @@ -200,8 +206,8 @@ msgstr "" #: ../../c-api/long.rst:197 msgid "" -"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a " -":c:type:`Py_ssize_t`." +"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" +"type:`Py_ssize_t`." msgstr "" #: ../../c-api/long.rst:209 @@ -212,8 +218,8 @@ msgstr "" #: ../../c-api/long.rst:212 msgid "" -"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a " -":c:type:`unsigned long`." +"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" +"type:`unsigned long`." msgstr "" #: ../../c-api/long.rst:215 @@ -224,14 +230,14 @@ msgstr "" #: ../../c-api/long.rst:225 msgid "" -"Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an" -" instance of :c:type:`PyLongObject`." +"Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an " +"instance of :c:type:`PyLongObject`." msgstr "" #: ../../c-api/long.rst:228 msgid "" -"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a " -":c:type:`size_t`." +"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" +"type:`size_t`." msgstr "" #: ../../c-api/long.rst:231 @@ -248,14 +254,14 @@ msgstr "" #: ../../c-api/long.rst:243 msgid "" -"Raise :exc:`OverflowError` if the value of *pylong* is out of range for an " -":c:type:`unsigned long long`." +"Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :" +"c:type:`unsigned long long`." msgstr "" #: ../../c-api/long.rst:246 msgid "" -"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to" -" disambiguate." +"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to " +"disambiguate." msgstr "" #: ../../c-api/long.rst:249 @@ -265,15 +271,15 @@ msgstr "" #: ../../c-api/long.rst:255 msgid "" -"Return a C :c:type:`unsigned long` representation of *obj*. If *obj* is not" -" an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` " -"method (if present) to convert it to a :c:type:`PyLongObject`." +"Return a C :c:type:`unsigned long` representation of *obj*. If *obj* is not " +"an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method " +"(if present) to convert it to a :c:type:`PyLongObject`." msgstr "" #: ../../c-api/long.rst:259 msgid "" -"If the value of *obj* is out of range for an :c:type:`unsigned long`, return" -" the reduction of that value modulo ``ULONG_MAX + 1``." +"If the value of *obj* is out of range for an :c:type:`unsigned long`, return " +"the reduction of that value modulo ``ULONG_MAX + 1``." msgstr "" #: ../../c-api/long.rst:262 @@ -285,8 +291,8 @@ msgstr "" #: ../../c-api/long.rst:268 msgid "" "Return a C :c:type:`unsigned long long` representation of *obj*. If *obj* " -"is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__`" -" method (if present) to convert it to a :c:type:`PyLongObject`." +"is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` " +"method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" #: ../../c-api/long.rst:272 @@ -303,14 +309,14 @@ msgstr "" #: ../../c-api/long.rst:281 msgid "" -"Return a C :c:type:`double` representation of *pylong*. *pylong* must be an" -" instance of :c:type:`PyLongObject`." +"Return a C :c:type:`double` representation of *pylong*. *pylong* must be an " +"instance of :c:type:`PyLongObject`." msgstr "" #: ../../c-api/long.rst:284 msgid "" -"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a " -":c:type:`double`." +"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" +"type:`double`." msgstr "" #: ../../c-api/long.rst:287 @@ -320,10 +326,10 @@ msgstr "" #: ../../c-api/long.rst:292 msgid "" -"Convert a Python integer *pylong* to a C :c:type:`void` pointer. If *pylong*" -" cannot be converted, an :exc:`OverflowError` will be raised. This is only " -"assured to produce a usable :c:type:`void` pointer for values created with " -":c:func:`PyLong_FromVoidPtr`." +"Convert a Python integer *pylong* to a C :c:type:`void` pointer. If *pylong* " +"cannot be converted, an :exc:`OverflowError` will be raised. This is only " +"assured to produce a usable :c:type:`void` pointer for values created with :" +"c:func:`PyLong_FromVoidPtr`." msgstr "" #: ../../c-api/long.rst:297 diff --git a/c-api/mapping.po b/c-api/mapping.po index 1ba70e9c5..984e20084 100644 --- a/c-api/mapping.po +++ b/c-api/mapping.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,90 +29,90 @@ msgstr "Protocolo de Mapeamento" #: ../../c-api/mapping.rst:8 msgid "" -"See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and " -":c:func:`PyObject_DelItem`." +"See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and :c:func:" +"`PyObject_DelItem`." msgstr "" #: ../../c-api/mapping.rst:14 msgid "" "Return ``1`` if the object provides mapping protocol or supports slicing, " -"and ``0`` otherwise. Note that it returns ``1`` for Python classes with a " -":meth:`__getitem__` method since in general case it is impossible to " -"determine what the type of keys it supports. This function always succeeds." +"and ``0`` otherwise. Note that it returns ``1`` for Python classes with a :" +"meth:`__getitem__` method since in general case it is impossible to " +"determine what type of keys it supports. This function always succeeds." msgstr "" -#: ../../c-api/mapping.rst:26 +#: ../../c-api/mapping.rst:25 msgid "" "Returns the number of keys in object *o* on success, and ``-1`` on failure. " "This is equivalent to the Python expression ``len(o)``." msgstr "" -#: ../../c-api/mapping.rst:32 +#: ../../c-api/mapping.rst:31 msgid "" "Return element of *o* corresponding to the string *key* or ``NULL`` on " "failure. This is the equivalent of the Python expression ``o[key]``. See " "also :c:func:`PyObject_GetItem`." msgstr "" -#: ../../c-api/mapping.rst:39 +#: ../../c-api/mapping.rst:38 msgid "" "Map the string *key* to the value *v* in object *o*. Returns ``-1`` on " -"failure. This is the equivalent of the Python statement ``o[key] = v``. See" -" also :c:func:`PyObject_SetItem`." +"failure. This is the equivalent of the Python statement ``o[key] = v``. See " +"also :c:func:`PyObject_SetItem`." msgstr "" -#: ../../c-api/mapping.rst:46 +#: ../../c-api/mapping.rst:45 msgid "" "Remove the mapping for the object *key* from the object *o*. Return ``-1`` " -"on failure. This is equivalent to the Python statement ``del o[key]``. This" -" is an alias of :c:func:`PyObject_DelItem`." +"on failure. This is equivalent to the Python statement ``del o[key]``. This " +"is an alias of :c:func:`PyObject_DelItem`." msgstr "" -#: ../../c-api/mapping.rst:53 +#: ../../c-api/mapping.rst:52 msgid "" "Remove the mapping for the string *key* from the object *o*. Return ``-1`` " "on failure. This is equivalent to the Python statement ``del o[key]``." msgstr "" -#: ../../c-api/mapping.rst:59 ../../c-api/mapping.rst:70 +#: ../../c-api/mapping.rst:58 ../../c-api/mapping.rst:69 msgid "" "Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. " "This is equivalent to the Python expression ``key in o``. This function " "always succeeds." msgstr "" -#: ../../c-api/mapping.rst:63 +#: ../../c-api/mapping.rst:62 msgid "" "Note that exceptions which occur while calling the :meth:`__getitem__` " -"method will get suppressed. To get error reporting use " -":c:func:`PyObject_GetItem()` instead." +"method will get suppressed. To get error reporting use :c:func:" +"`PyObject_GetItem()` instead." msgstr "" -#: ../../c-api/mapping.rst:74 +#: ../../c-api/mapping.rst:73 msgid "" "Note that exceptions which occur while calling the :meth:`__getitem__` " "method and creating a temporary string object will get suppressed. To get " "error reporting use :c:func:`PyMapping_GetItemString()` instead." msgstr "" -#: ../../c-api/mapping.rst:81 +#: ../../c-api/mapping.rst:80 msgid "" "On success, return a list of the keys in object *o*. On failure, return " "``NULL``." msgstr "" -#: ../../c-api/mapping.rst:84 ../../c-api/mapping.rst:93 -#: ../../c-api/mapping.rst:102 +#: ../../c-api/mapping.rst:83 ../../c-api/mapping.rst:92 +#: ../../c-api/mapping.rst:101 msgid "Previously, the function returned a list or a tuple." msgstr "" -#: ../../c-api/mapping.rst:90 +#: ../../c-api/mapping.rst:89 msgid "" "On success, return a list of the values in object *o*. On failure, return " "``NULL``." msgstr "" -#: ../../c-api/mapping.rst:99 +#: ../../c-api/mapping.rst:98 msgid "" "On success, return a list of the items in object *o*, where each item is a " "tuple containing a key-value pair. On failure, return ``NULL``." diff --git a/c-api/marshal.po b/c-api/marshal.po index 1c282c4ee..070e70c72 100644 --- a/c-api/marshal.po +++ b/c-api/marshal.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,15 +30,21 @@ msgstr "Suporte a Troca de D'ados" #: ../../c-api/marshal.rst:8 msgid "" "These routines allow C code to work with serialized objects using the same " -"data format as the :mod:`marshal` module. There are functions to write data" -" into the serialization format, and additional functions that can be used to" -" read the data back. Files used to store marshalled data must be opened in " +"data format as the :mod:`marshal` module. There are functions to write data " +"into the serialization format, and additional functions that can be used to " +"read the data back. Files used to store marshalled data must be opened in " "binary mode." msgstr "" +"Essas rotinas permitem que o código C trabalhe com objetos serializados " +"usando o mesmo formato de dados que o módulo :mod:`marshal`. Existem funções " +"para gravar dados no formato de serialização e funções adicionais que podem " +"ser usadas para ler os dados novamente. Os arquivos usados para armazenar " +"dados empacotados devem ser abertos no modo binário." #: ../../c-api/marshal.rst:14 msgid "Numeric values are stored with the least significant byte first." msgstr "" +"Os valores numéricos são armazenados primeiro com o byte menos significativo." #: ../../c-api/marshal.rst:16 msgid "" @@ -45,6 +53,11 @@ msgid "" "unmarshalling. Version 2 uses a binary format for floating point numbers. " "``Py_MARSHAL_VERSION`` indicates the current file format (currently 2)." msgstr "" +"O módulo possui suporte a duas versões do formato de dados: a versão 0 é a " +"versão histórica, a versão 1 compartilha sequências de caracteres internas " +"no arquivo e após a desserialização. A versão 2 usa um formato binário para " +"números de ponto flutuante. ``Py_MARSHAL_VERSION`` indica o formato do " +"arquivo atual (atualmente 2)." #: ../../c-api/marshal.rst:24 msgid "" @@ -52,55 +65,77 @@ msgid "" "the least-significant 32 bits of *value*; regardless of the size of the " "native :c:type:`long` type. *version* indicates the file format." msgstr "" +"Aplica *marshalling* em um inteiro :c:type:`long`, *value*, para *file*. " +"Isso escreverá apenas os 32 bits menos significativos de *value*; " +"independentemente do tamanho do tipo nativo :c:type:`long`. *version* indica " +"o formato do arquivo." #: ../../c-api/marshal.rst:31 msgid "" "Marshal a Python object, *value*, to *file*. *version* indicates the file " "format." msgstr "" +"Aplica *marshalling* em um objeto Python, *value*, para *file*. *version* " +"indica o formato do arquivo." #: ../../c-api/marshal.rst:37 msgid "" "Return a bytes object containing the marshalled representation of *value*. " "*version* indicates the file format." msgstr "" +"Retorna um objeto de bytes que contém a representação pós-*marshalling* de " +"*value*. *version* indica o formato do arquivo." #: ../../c-api/marshal.rst:41 msgid "The following functions allow marshalled values to be read back in." msgstr "" +"As seguintes funções permitem que os valores pós-*marshalling* sejam lidos " +"novamente." #: ../../c-api/marshal.rst:46 msgid "" -"Return a C :c:type:`long` from the data stream in a :c:type:`FILE\\*` opened" -" for reading. Only a 32-bit value can be read in using this function, " +"Return a C :c:type:`long` from the data stream in a :c:type:`FILE\\*` opened " +"for reading. Only a 32-bit value can be read in using this function, " "regardless of the native size of :c:type:`long`." msgstr "" +"Retorna um :c:type:`long` C do fluxo de dados em um :c:type:`FILE\\*` aberto " +"para leitura. Somente um valor de 32 bits pode ser lido usando essa função, " +"independentemente do tamanho nativo de :c:type:`long`." #: ../../c-api/marshal.rst:50 ../../c-api/marshal.rst:60 msgid "" "On error, sets the appropriate exception (:exc:`EOFError`) and returns " "``-1``." msgstr "" +"Em caso de erro, define a exceção apropriada (:exc:`EOFError`) e retorna " +"``-1``." #: ../../c-api/marshal.rst:56 msgid "" "Return a C :c:type:`short` from the data stream in a :c:type:`FILE\\*` " -"opened for reading. Only a 16-bit value can be read in using this function," -" regardless of the native size of :c:type:`short`." +"opened for reading. Only a 16-bit value can be read in using this function, " +"regardless of the native size of :c:type:`short`." msgstr "" +"Retorna um :c:type:`short` C do fluxo de dados em um :c:type:`FILE\\*` " +"aberto para leitura. Somente um valor de 16 bits pode ser lido usando essa " +"função, independentemente do tamanho nativo de :c:type:`short`." #: ../../c-api/marshal.rst:66 msgid "" "Return a Python object from the data stream in a :c:type:`FILE\\*` opened " "for reading." msgstr "" +"Retorna um objeto Python do fluxo de dados em um :c:type:`FILE\\*` aberto " +"para leitura." #: ../../c-api/marshal.rst:69 ../../c-api/marshal.rst:83 #: ../../c-api/marshal.rst:92 msgid "" -"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError`" -" or :exc:`TypeError`) and returns ``NULL``." +"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` " +"or :exc:`TypeError`) and returns ``NULL``." msgstr "" +"Em caso de erro, define a exceção apropriada (:exc:`EOFError`, :exc:" +"`ValueError` ou :exc:`TypeError`) e retorna ``NULL``." #: ../../c-api/marshal.rst:75 msgid "" @@ -112,9 +147,18 @@ msgid "" "file. Only use these variant if you are certain that you won't be reading " "anything else from the file." msgstr "" +"Retorna um objeto Python do fluxo de dados em um :c:type:`FILE\\*` aberto " +"para leitura. Diferentemente de :c:func:`PyMarshal_ReadObjectFromFile`, essa " +"função presume que nenhum objeto adicional será lido do arquivo, permitindo " +"que ele carregue agressivamente os dados do arquivo na memória, para que a " +"desserialização possa operar a partir de dados na memória em vez de ler um " +"byte por vez do arquivo. Use essas variantes apenas se tiver certeza de que " +"não estará lendo mais nada do arquivo." #: ../../c-api/marshal.rst:89 msgid "" "Return a Python object from the data stream in a byte buffer containing " "*len* bytes pointed to by *data*." msgstr "" +"Retorna um objeto Python do fluxo de dados em um buffer de bytes contendo " +"*len* bytes apontados por *data*." diff --git a/c-api/memory.po b/c-api/memory.po index c10ef13e6..a1fbbf8a0 100644 --- a/c-api/memory.po +++ b/c-api/memory.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -60,21 +61,21 @@ msgid "" "It is important to understand that the management of the Python heap is " "performed by the interpreter itself and that the user has no control over " "it, even if they regularly manipulate object pointers to memory blocks " -"inside that heap. The allocation of heap space for Python objects and other" -" internal buffers is performed on demand by the Python memory manager " -"through the Python/C API functions listed in this document." +"inside that heap. The allocation of heap space for Python objects and other " +"internal buffers is performed on demand by the Python memory manager through " +"the Python/C API functions listed in this document." msgstr "" #: ../../c-api/memory.rst:49 msgid "" -"To avoid memory corruption, extension writers should never try to operate on" -" Python objects with the functions exported by the C library: " -":c:func:`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`. " -"This will result in mixed calls between the C allocator and the Python " -"memory manager with fatal consequences, because they implement different " -"algorithms and operate on different heaps. However, one may safely allocate" -" and release memory blocks with the C library allocator for individual " -"purposes, as shown in the following example::" +"To avoid memory corruption, extension writers should never try to operate on " +"Python objects with the functions exported by the C library: :c:func:" +"`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`. This will " +"result in mixed calls between the C allocator and the Python memory manager " +"with fatal consequences, because they implement different algorithms and " +"operate on different heaps. However, one may safely allocate and release " +"memory blocks with the C library allocator for individual purposes, as shown " +"in the following example::" msgstr "" #: ../../c-api/memory.rst:68 @@ -91,8 +92,8 @@ msgid "" "memory manager. For example, this is required when the interpreter is " "extended with new object types written in C. Another reason for using the " "Python heap is the desire to *inform* the Python memory manager about the " -"memory needs of the extension module. Even when the requested memory is used" -" exclusively for internal, highly-specific purposes, delegating all memory " +"memory needs of the extension module. Even when the requested memory is used " +"exclusively for internal, highly-specific purposes, delegating all memory " "requests to the Python memory manager causes the interpreter to have a more " "accurate image of its memory footprint as a whole. Consequently, under " "certain circumstances, the Python memory manager may or may not trigger " @@ -104,8 +105,8 @@ msgstr "" #: ../../c-api/memory.rst:88 msgid "" -"The :envvar:`PYTHONMALLOC` environment variable can be used to configure the" -" memory allocators used by Python." +"The :envvar:`PYTHONMALLOC` environment variable can be used to configure the " +"memory allocators used by Python." msgstr "" #: ../../c-api/memory.rst:91 @@ -128,10 +129,10 @@ msgstr "" #: ../../c-api/memory.rst:103 msgid "" -"The :ref:`default raw memory allocator ` uses the" -" following functions: :c:func:`malloc`, :c:func:`calloc`, :c:func:`realloc` " -"and :c:func:`free`; call ``malloc(1)`` (or ``calloc(1, 1)``) when requesting" -" zero bytes." +"The :ref:`default raw memory allocator ` uses the " +"following functions: :c:func:`malloc`, :c:func:`calloc`, :c:func:`realloc` " +"and :c:func:`free`; call ``malloc(1)`` (or ``calloc(1, 1)``) when requesting " +"zero bytes." msgstr "" #: ../../c-api/memory.rst:112 ../../c-api/memory.rst:183 @@ -179,9 +180,9 @@ msgstr "" #: ../../c-api/memory.rst:142 msgid "" -"Unless *p* is ``NULL``, it must have been returned by a previous call to " -":c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or " -":c:func:`PyMem_RawCalloc`." +"Unless *p* is ``NULL``, it must have been returned by a previous call to :c:" +"func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or :c:func:" +"`PyMem_RawCalloc`." msgstr "" #: ../../c-api/memory.rst:146 @@ -192,9 +193,9 @@ msgstr "" #: ../../c-api/memory.rst:152 msgid "" -"Frees the memory block pointed to by *p*, which must have been returned by a" -" previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or " -":c:func:`PyMem_RawCalloc`. Otherwise, or if ``PyMem_RawFree(p)`` has been " +"Frees the memory block pointed to by *p*, which must have been returned by a " +"previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or :c:" +"func:`PyMem_RawCalloc`. Otherwise, or if ``PyMem_RawFree(p)`` has been " "called before, undefined behavior occurs." msgstr "" @@ -210,14 +211,14 @@ msgstr "Interface da Memória" #: ../../c-api/memory.rst:165 ../../c-api/memory.rst:271 msgid "" "The following function sets, modeled after the ANSI C standard, but " -"specifying behavior when requesting zero bytes, are available for allocating" -" and releasing memory from the Python heap." +"specifying behavior when requesting zero bytes, are available for allocating " +"and releasing memory from the Python heap." msgstr "" #: ../../c-api/memory.rst:169 msgid "" -"The :ref:`default memory allocator ` uses the " -":ref:`pymalloc memory allocator `." +"The :ref:`default memory allocator ` uses the :" +"ref:`pymalloc memory allocator `." msgstr "" #: ../../c-api/memory.rst:174 ../../c-api/memory.rst:280 @@ -254,8 +255,8 @@ msgstr "" #: ../../c-api/memory.rst:213 msgid "" -"Unless *p* is ``NULL``, it must have been returned by a previous call to " -":c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or :c:func:`PyMem_Calloc`." +"Unless *p* is ``NULL``, it must have been returned by a previous call to :c:" +"func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or :c:func:`PyMem_Calloc`." msgstr "" #: ../../c-api/memory.rst:216 @@ -266,16 +267,16 @@ msgstr "" #: ../../c-api/memory.rst:222 msgid "" -"Frees the memory block pointed to by *p*, which must have been returned by a" -" previous call to :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or " -":c:func:`PyMem_Calloc`. Otherwise, or if ``PyMem_Free(p)`` has been called " -"before, undefined behavior occurs." +"Frees the memory block pointed to by *p*, which must have been returned by a " +"previous call to :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc` or :c:func:" +"`PyMem_Calloc`. Otherwise, or if ``PyMem_Free(p)`` has been called before, " +"undefined behavior occurs." msgstr "" #: ../../c-api/memory.rst:229 msgid "" -"The following type-oriented macros are provided for convenience. Note that" -" *TYPE* refers to any C type." +"The following type-oriented macros are provided for convenience. Note that " +"*TYPE* refers to any C type." msgstr "" #: ../../c-api/memory.rst:235 @@ -295,8 +296,8 @@ msgstr "" #: ../../c-api/memory.rst:247 msgid "" -"This is a C preprocessor macro; *p* is always reassigned. Save the original" -" value of *p* to avoid losing memory when handling errors." +"This is a C preprocessor macro; *p* is always reassigned. Save the original " +"value of *p* to avoid losing memory when handling errors." msgstr "" #: ../../c-api/memory.rst:253 @@ -341,8 +342,8 @@ msgstr "" #: ../../c-api/memory.rst:275 msgid "" -"The :ref:`default object allocator ` uses the " -":ref:`pymalloc memory allocator `." +"The :ref:`default object allocator ` uses the :" +"ref:`pymalloc memory allocator `." msgstr "" #: ../../c-api/memory.rst:288 @@ -368,9 +369,9 @@ msgstr "" #: ../../c-api/memory.rst:315 msgid "" -"Unless *p* is ``NULL``, it must have been returned by a previous call to " -":c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or " -":c:func:`PyObject_Calloc`." +"Unless *p* is ``NULL``, it must have been returned by a previous call to :c:" +"func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:func:" +"`PyObject_Calloc`." msgstr "" #: ../../c-api/memory.rst:318 @@ -381,9 +382,9 @@ msgstr "" #: ../../c-api/memory.rst:324 msgid "" -"Frees the memory block pointed to by *p*, which must have been returned by a" -" previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or " -":c:func:`PyObject_Calloc`. Otherwise, or if ``PyObject_Free(p)`` has been " +"Frees the memory block pointed to by *p*, which must have been returned by a " +"previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:" +"func:`PyObject_Calloc`. Otherwise, or if ``PyObject_Free(p)`` has been " "called before, undefined behavior occurs." msgstr "" @@ -421,16 +422,15 @@ msgstr "" #: ../../c-api/memory.rst:342 msgid "``\"pymalloc\"``" -msgstr "" +msgstr "``\"pymalloc\"``" #: ../../c-api/memory.rst:342 ../../c-api/memory.rst:344 -#: ../../c-api/memory.rst:344 ../../c-api/memory.rst:344 msgid "``malloc``" -msgstr "" +msgstr "``malloc``" -#: ../../c-api/memory.rst:342 ../../c-api/memory.rst:342 +#: ../../c-api/memory.rst:342 msgid "``pymalloc``" -msgstr "" +msgstr "``pymalloc``" #: ../../c-api/memory.rst:343 msgid "Debug build" @@ -438,14 +438,13 @@ msgstr "" #: ../../c-api/memory.rst:343 msgid "``\"pymalloc_debug\"``" -msgstr "" +msgstr "``\"pymalloc_debug\"``" #: ../../c-api/memory.rst:343 ../../c-api/memory.rst:345 -#: ../../c-api/memory.rst:345 ../../c-api/memory.rst:345 msgid "``malloc`` + debug" msgstr "" -#: ../../c-api/memory.rst:343 ../../c-api/memory.rst:343 +#: ../../c-api/memory.rst:343 msgid "``pymalloc`` + debug" msgstr "" @@ -455,7 +454,7 @@ msgstr "" #: ../../c-api/memory.rst:344 msgid "``\"malloc\"``" -msgstr "" +msgstr "``\"malloc\"``" #: ../../c-api/memory.rst:345 msgid "Debug build, without pymalloc" @@ -463,7 +462,7 @@ msgstr "" #: ../../c-api/memory.rst:345 msgid "``\"malloc_debug\"``" -msgstr "" +msgstr "``\"malloc_debug\"``" #: ../../c-api/memory.rst:348 msgid "Legend:" @@ -475,8 +474,8 @@ msgstr "" #: ../../c-api/memory.rst:351 msgid "" -"``malloc``: system allocators from the standard C library, C functions: " -":c:func:`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`" +"``malloc``: system allocators from the standard C library, C functions: :c:" +"func:`malloc`, :c:func:`calloc`, :c:func:`realloc` and :c:func:`free`" msgstr "" #: ../../c-api/memory.rst:353 @@ -484,7 +483,8 @@ msgid "``pymalloc``: :ref:`pymalloc memory allocator `" msgstr "" #: ../../c-api/memory.rst:354 -msgid "\"+ debug\": with debug hooks installed by :c:func:`PyMem_SetupDebugHooks`" +msgid "" +"\"+ debug\": with debug hooks installed by :c:func:`PyMem_SetupDebugHooks`" msgstr "" #: ../../c-api/memory.rst:358 @@ -547,8 +547,8 @@ msgstr "" #: ../../c-api/memory.rst:382 msgid "" -"The :c:type:`PyMemAllocator` structure was renamed to " -":c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added." +"The :c:type:`PyMemAllocator` structure was renamed to :c:type:" +"`PyMemAllocatorEx` and a new ``calloc`` field was added." msgstr "" #: ../../c-api/memory.rst:389 @@ -632,8 +632,8 @@ msgstr "" #: ../../c-api/memory.rst:434 msgid "" "If the new allocator is not a hook (does not call the previous allocator), " -"the :c:func:`PyMem_SetupDebugHooks` function must be called to reinstall the" -" debug hooks on top on the new allocator." +"the :c:func:`PyMem_SetupDebugHooks` function must be called to reinstall the " +"debug hooks on top on the new allocator." msgstr "" #: ../../c-api/memory.rst:441 @@ -668,16 +668,16 @@ msgstr "" #: ../../c-api/memory.rst:453 msgid "" "Check that the :term:`GIL ` is held when allocator " -"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and " -":c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called" +"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and :" +"c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called" msgstr "" #: ../../c-api/memory.rst:458 msgid "" "On error, the debug hooks use the :mod:`tracemalloc` module to get the " "traceback where a memory block was allocated. The traceback is only " -"displayed if :mod:`tracemalloc` is tracing Python memory allocations and the" -" memory block was traced." +"displayed if :mod:`tracemalloc` is tracing Python memory allocations and the " +"memory block was traced." msgstr "" #: ../../c-api/memory.rst:463 @@ -693,15 +693,15 @@ msgid "" "This function now also works on Python compiled in release mode. On error, " "the debug hooks now use :mod:`tracemalloc` to get the traceback where a " "memory block was allocated. The debug hooks now also check if the GIL is " -"held when functions of :c:data:`PYMEM_DOMAIN_OBJ` and " -":c:data:`PYMEM_DOMAIN_MEM` domains are called." +"held when functions of :c:data:`PYMEM_DOMAIN_OBJ` and :c:data:" +"`PYMEM_DOMAIN_MEM` domains are called." msgstr "" #: ../../c-api/memory.rst:475 msgid "" -"Byte patterns ``0xCB`` (``CLEANBYTE``), ``0xDB`` (``DEADBYTE``) and ``0xFB``" -" (``FORBIDDENBYTE``) have been replaced with ``0xCD``, ``0xDD`` and ``0xFD``" -" to use the same values than Windows CRT debug ``malloc()`` and ``free()``." +"Byte patterns ``0xCB`` (``CLEANBYTE``), ``0xDB`` (``DEADBYTE``) and ``0xFB`` " +"(``FORBIDDENBYTE``) have been replaced with ``0xCD``, ``0xDD`` and ``0xFD`` " +"to use the same values than Windows CRT debug ``malloc()`` and ``free()``." msgstr "" #: ../../c-api/memory.rst:485 @@ -712,16 +712,16 @@ msgstr "" msgid "" "Python has a *pymalloc* allocator optimized for small objects (smaller or " "equal to 512 bytes) with a short lifetime. It uses memory mappings called " -"\"arenas\" with a fixed size of 256 KiB. It falls back to " -":c:func:`PyMem_RawMalloc` and :c:func:`PyMem_RawRealloc` for allocations " -"larger than 512 bytes." +"\"arenas\" with a fixed size of 256 KiB. It falls back to :c:func:" +"`PyMem_RawMalloc` and :c:func:`PyMem_RawRealloc` for allocations larger than " +"512 bytes." msgstr "" #: ../../c-api/memory.rst:492 msgid "" "*pymalloc* is the :ref:`default allocator ` of " -"the :c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and " -":c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains." +"the :c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) and :c:data:" +"`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains." msgstr "" #: ../../c-api/memory.rst:496 @@ -778,6 +778,30 @@ msgstr "" msgid "tracemalloc C API" msgstr "" +#: ../../c-api/memory.rst:538 +msgid "Track an allocated memory block in the :mod:`tracemalloc` module." +msgstr "" + +#: ../../c-api/memory.rst:540 +msgid "" +"Return ``0`` on success, return ``-1`` on error (failed to allocate memory " +"to store the trace). Return ``-2`` if tracemalloc is disabled." +msgstr "" + +#: ../../c-api/memory.rst:543 +msgid "If memory block is already tracked, update the existing trace." +msgstr "" + +#: ../../c-api/memory.rst:547 +msgid "" +"Untrack an allocated memory block in the :mod:`tracemalloc` module. Do " +"nothing if the block was not tracked." +msgstr "" + +#: ../../c-api/memory.rst:550 +msgid "Return ``-2`` if tracemalloc is disabled, otherwise return ``0``." +msgstr "" + #: ../../c-api/memory.rst:556 msgid "Examples" msgstr "Exemplos" @@ -785,8 +809,8 @@ msgstr "Exemplos" #: ../../c-api/memory.rst:558 msgid "" "Here is the example from section :ref:`memoryoverview`, rewritten so that " -"the I/O buffer is allocated from the Python heap by using the first function" -" set::" +"the I/O buffer is allocated from the Python heap by using the first function " +"set::" msgstr "" #: ../../c-api/memory.rst:571 @@ -799,20 +823,19 @@ msgid "" "functions belonging to the same set. Indeed, it is required to use the same " "memory API family for a given memory block, so that the risk of mixing " "different allocators is reduced to a minimum. The following code sequence " -"contains two errors, one of which is labeled as *fatal* because it mixes two" -" different allocators operating on different heaps. ::" +"contains two errors, one of which is labeled as *fatal* because it mixes two " +"different allocators operating on different heaps. ::" msgstr "" #: ../../c-api/memory.rst:598 msgid "" "In addition to the functions aimed at handling raw memory blocks from the " -"Python heap, objects in Python are allocated and released with " -":c:func:`PyObject_New`, :c:func:`PyObject_NewVar` and " -":c:func:`PyObject_Del`." +"Python heap, objects in Python are allocated and released with :c:func:" +"`PyObject_New`, :c:func:`PyObject_NewVar` and :c:func:`PyObject_Del`." msgstr "" #: ../../c-api/memory.rst:602 msgid "" -"These will be explained in the next chapter on defining and implementing new" -" object types in C." +"These will be explained in the next chapter on defining and implementing new " +"object types in C." msgstr "" diff --git a/c-api/memoryview.po b/c-api/memoryview.po index 7ed506ca1..2aea7834e 100644 --- a/c-api/memoryview.po +++ b/c-api/memoryview.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,9 +30,12 @@ msgstr "Objetos MemoryView" #: ../../c-api/memoryview.rst:11 msgid "" "A :class:`memoryview` object exposes the C level :ref:`buffer interface " -"` as a Python object which can then be passed around like any" -" other object." +"` as a Python object which can then be passed around like any " +"other object." msgstr "" +"Um objeto de :class:`memoryview` expõe a :ref:`interface de buffer " +"` a nível de C como um objeto Python que pode ser passado " +"como qualquer outro objeto." #: ../../c-api/memoryview.rst:18 msgid "" @@ -39,12 +44,18 @@ msgid "" "will be read/write, otherwise it may be either read-only or read/write at " "the discretion of the exporter." msgstr "" +"Cria um objeto de memoryview a partir de um objeto que fornece a interface " +"do buffer. Se *obj* tiver suportea exportações de buffer graváveis, o objeto " +"memoryview será de leitura/gravação; caso contrário, poderá ser somente " +"leitura ou leitura/gravação, a critério do exportador." #: ../../c-api/memoryview.rst:25 msgid "" -"Create a memoryview object using *mem* as the underlying buffer. *flags* can" -" be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`." +"Create a memoryview object using *mem* as the underlying buffer. *flags* can " +"be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`." msgstr "" +"Cria um objeto de memoryview usando *mem* como o buffer subjacente. *flags* " +"pode ser um dos seguintes :c:macro:`PyBUF_READ` ou :c:macro:`PyBUF_WRITE`." #: ../../c-api/memoryview.rst:32 msgid "" @@ -52,6 +63,9 @@ msgid "" "simple byte buffers, :c:func:`PyMemoryView_FromMemory` is the preferred " "function." msgstr "" +"Cria um objeto de memoryview envolvendo a estrutura de buffer *view* " +"fornecida. Para buffers de bytes simples, :c:func:`PyMemoryView_FromMemory` " +"é a função preferida." #: ../../c-api/memoryview.rst:38 msgid "" @@ -61,12 +75,19 @@ msgid "" "original memory. Otherwise, a copy is made and the memoryview points to a " "new bytes object." msgstr "" +"Cria um objeto de memoryview para um pedaço :term:`contiguous` de memória " +"(na ordem 'C' ou 'F'ortran, representada por *order*) a partir de um objeto " +"que define a interface do buffer. Se a memória for contígua, o objeto de " +"memoryview apontará para a memória original. Caso contrário, é feita uma " +"cópia e a visualização da memória aponta para um novo objeto de bytes." #: ../../c-api/memoryview.rst:47 msgid "" -"Return true if the object *obj* is a memoryview object. It is not currently" -" allowed to create subclasses of :class:`memoryview`." +"Return true if the object *obj* is a memoryview object. It is not currently " +"allowed to create subclasses of :class:`memoryview`." msgstr "" +"Retorna true se o objeto *obj* for um objeto de memoryview. Atualmente, não " +"é permitido criar subclasses de :class:`memoryview`." #: ../../c-api/memoryview.rst:53 msgid "" @@ -74,11 +95,18 @@ msgid "" "*mview* **must** be a memoryview instance; this macro doesn't check its " "type, you must do it yourself or you will risk crashes." msgstr "" +"Retorna um ponteiro para a cópia privada da memória do buffer do exportador. " +"*mview* **deve** ser uma instância de memoryview; Se essa macro não " +"verificar seu tipo, faça você mesmo ou corre o risco de travar." #: ../../c-api/memoryview.rst:59 msgid "" -"Return either a pointer to the exporting object that the memoryview is based" -" on or ``NULL`` if the memoryview has been created by one of the functions " -":c:func:`PyMemoryView_FromMemory` or :c:func:`PyMemoryView_FromBuffer`. " -"*mview* **must** be a memoryview instance." +"Return either a pointer to the exporting object that the memoryview is based " +"on or ``NULL`` if the memoryview has been created by one of the functions :c:" +"func:`PyMemoryView_FromMemory` or :c:func:`PyMemoryView_FromBuffer`. *mview* " +"**must** be a memoryview instance." msgstr "" +"Retorna um ponteiro para o objeto de exportação no qual a memória é baseada " +"ou ``NULL`` se a memória tiver sido criada por uma das funções :c:func:" +"`PyMemoryView_FromMemory` ou :c:func:`PyMemoryView_FromBuffer`. *mview* " +"**deve** ser uma instância de memoryview." diff --git a/c-api/method.po b/c-api/method.po index 2057aff69..ebd760765 100644 --- a/c-api/method.po +++ b/c-api/method.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,8 +42,8 @@ msgstr "" #: ../../c-api/method.rst:23 msgid "" -"Return true if *o* is an instance method object (has type " -":c:data:`PyInstanceMethod_Type`). The parameter must not be ``NULL``." +"Return true if *o* is an instance method object (has type :c:data:" +"`PyInstanceMethod_Type`). The parameter must not be ``NULL``." msgstr "" #: ../../c-api/method.rst:29 @@ -86,9 +88,9 @@ msgstr "" #: ../../c-api/method.rst:72 msgid "" -"Return a new method object, with *func* being any callable object and *self*" -" the instance the method should be bound. *func* is the function that will " -"be called when the method is called. *self* must not be ``NULL``." +"Return a new method object, with *func* being any callable object and *self* " +"the instance the method should be bound. *func* is the function that will be " +"called when the method is called. *self* must not be ``NULL``." msgstr "" #: ../../c-api/method.rst:79 @@ -102,7 +104,7 @@ msgstr "" #: ../../c-api/method.rst:89 msgid "Return the instance associated with the method *meth*." -msgstr "" +msgstr "Retorna a instância associada com o método *meth*" #: ../../c-api/method.rst:94 msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking." @@ -110,4 +112,4 @@ msgstr "" #: ../../c-api/method.rst:99 msgid "Clear the free list. Return the total number of freed items." -msgstr "" +msgstr "Limpe a lista livre. Retorna o número total de itens liberados." diff --git a/c-api/module.po b/c-api/module.po index 8191da437..521fb5937 100644 --- a/c-api/module.po +++ b/c-api/module.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-06 03:59+0000\n" +"POT-Creation-Date: 2020-04-27 13:44+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,23 +34,22 @@ msgid "" msgstr "" #: ../../c-api/module.rst:21 -msgid "" -"Return true if *p* is a module object, or a subtype of a module object." +msgid "Return true if *p* is a module object, or a subtype of a module object." msgstr "" #: ../../c-api/module.rst:26 msgid "" -"Return true if *p* is a module object, but not a subtype of " -":c:data:`PyModule_Type`." +"Return true if *p* is a module object, but not a subtype of :c:data:" +"`PyModule_Type`." msgstr "" #: ../../c-api/module.rst:39 msgid "" "Return a new module object with the :attr:`__name__` attribute set to " -"*name*. The module's :attr:`__name__`, :attr:`__doc__`, :attr:`__package__`," -" and :attr:`__loader__` attributes are filled in (all but :attr:`__name__` " -"are set to ``None``); the caller is responsible for providing a " -":attr:`__file__` attribute." +"*name*. The module's :attr:`__name__`, :attr:`__doc__`, :attr:`__package__`, " +"and :attr:`__loader__` attributes are filled in (all but :attr:`__name__` " +"are set to ``None``); the caller is responsible for providing a :attr:" +"`__file__` attribute." msgstr "" #: ../../c-api/module.rst:47 @@ -71,9 +72,9 @@ msgstr "" #: ../../c-api/module.rst:66 msgid "" -"It is recommended extensions use other :c:func:`PyModule_\\*` and " -":c:func:`PyObject_\\*` functions rather than directly manipulate a module's " -":attr:`~object.__dict__`." +"It is recommended extensions use other :c:func:`PyModule_\\*` and :c:func:" +"`PyObject_\\*` functions rather than directly manipulate a module's :attr:" +"`~object.__dict__`." msgstr "" #: ../../c-api/module.rst:77 @@ -92,8 +93,8 @@ msgstr "" #: ../../c-api/module.rst:90 msgid "" "Return the \"state\" of the module, that is, a pointer to the block of " -"memory allocated at module creation time, or ``NULL``. See " -":c:member:`PyModuleDef.m_size`." +"memory allocated at module creation time, or ``NULL``. See :c:member:" +"`PyModuleDef.m_size`." msgstr "" #: ../../c-api/module.rst:97 @@ -104,8 +105,8 @@ msgstr "" #: ../../c-api/module.rst:107 msgid "" -"Return the name of the file from which *module* was loaded using *module*'s " -":attr:`__file__` attribute. If this is not defined, or if it is not a " +"Return the name of the file from which *module* was loaded using *module*'s :" +"attr:`__file__` attribute. If this is not defined, or if it is not a " "unicode string, raise :exc:`SystemError` and return ``NULL``; otherwise " "return a reference to a Unicode object." msgstr "" @@ -128,25 +129,24 @@ msgstr "" #: ../../c-api/module.rst:130 msgid "" -"Modules objects are usually created from extension modules (shared libraries" -" which export an initialization function), or compiled-in modules (where the" -" initialization function is added using :c:func:`PyImport_AppendInittab`). " +"Modules objects are usually created from extension modules (shared libraries " +"which export an initialization function), or compiled-in modules (where the " +"initialization function is added using :c:func:`PyImport_AppendInittab`). " "See :ref:`building` or :ref:`extending-with-embedding` for details." msgstr "" #: ../../c-api/module.rst:135 msgid "" -"The initialization function can either pass a module definition instance to " -":c:func:`PyModule_Create`, and return the resulting module object, or " -"request \"multi-phase initialization\" by returning the definition struct " -"itself." +"The initialization function can either pass a module definition instance to :" +"c:func:`PyModule_Create`, and return the resulting module object, or request " +"\"multi-phase initialization\" by returning the definition struct itself." msgstr "" #: ../../c-api/module.rst:141 msgid "" -"The module definition struct, which holds all information needed to create a" -" module object. There is usually only one statically initialized variable of" -" this type for each module." +"The module definition struct, which holds all information needed to create a " +"module object. There is usually only one statically initialized variable of " +"this type for each module." msgstr "" #: ../../c-api/module.rst:147 @@ -159,8 +159,8 @@ msgstr "" #: ../../c-api/module.rst:155 msgid "" -"Docstring for the module; usually a docstring variable created with " -":c:func:`PyDoc_STRVAR` is used." +"Docstring for the module; usually a docstring variable created with :c:macro:" +"`PyDoc_STRVAR` is used." msgstr "" #: ../../c-api/module.rst:160 @@ -197,15 +197,15 @@ msgstr "" #: ../../c-api/module.rst:180 msgid "" -"A pointer to a table of module-level functions, described by " -":c:type:`PyMethodDef` values. Can be ``NULL`` if no functions are present." +"A pointer to a table of module-level functions, described by :c:type:" +"`PyMethodDef` values. Can be ``NULL`` if no functions are present." msgstr "" #: ../../c-api/module.rst:185 msgid "" -"An array of slot definitions for multi-phase initialization, terminated by a" -" ``{0, NULL}`` entry. When using single-phase initialization, *m_slots* must" -" be ``NULL``." +"An array of slot definitions for multi-phase initialization, terminated by a " +"``{0, NULL}`` entry. When using single-phase initialization, *m_slots* must " +"be ``NULL``." msgstr "" #: ../../c-api/module.rst:191 @@ -218,24 +218,24 @@ msgstr "" msgid "" "A traversal function to call during GC traversal of the module object, or " "``NULL`` if not needed. This function may be called before module state is " -"allocated (:c:func:`PyModule_GetState()` may return `NULL`), and before the " -":c:member:`Py_mod_exec` function is executed." +"allocated (:c:func:`PyModule_GetState()` may return `NULL`), and before the :" +"c:member:`Py_mod_exec` function is executed." msgstr "" #: ../../c-api/module.rst:205 msgid "" "A clear function to call during GC clearing of the module object, or " "``NULL`` if not needed. This function may be called before module state is " -"allocated (:c:func:`PyModule_GetState()` may return `NULL`), and before the " -":c:member:`Py_mod_exec` function is executed." +"allocated (:c:func:`PyModule_GetState()` may return `NULL`), and before the :" +"c:member:`Py_mod_exec` function is executed." msgstr "" #: ../../c-api/module.rst:212 msgid "" "A function to call during deallocation of the module object, or ``NULL`` if " -"not needed. This function may be called before module state is allocated " -"(:c:func:`PyModule_GetState()` may return `NULL`), and before the " -":c:member:`Py_mod_exec` function is executed." +"not needed. This function may be called before module state is allocated (:c:" +"func:`PyModule_GetState()` may return `NULL`), and before the :c:member:" +"`Py_mod_exec` function is executed." msgstr "" #: ../../c-api/module.rst:218 @@ -252,15 +252,15 @@ msgstr "" #: ../../c-api/module.rst:226 msgid "" "Create a new module object, given the definition in *def*. This behaves " -"like :c:func:`PyModule_Create2` with *module_api_version* set to " -":const:`PYTHON_API_VERSION`." +"like :c:func:`PyModule_Create2` with *module_api_version* set to :const:" +"`PYTHON_API_VERSION`." msgstr "" #: ../../c-api/module.rst:233 msgid "" "Create a new module object, given the definition in *def*, assuming the API " -"version *module_api_version*. If that version does not match the version of" -" the running interpreter, a :exc:`RuntimeWarning` is emitted." +"version *module_api_version*. If that version does not match the version of " +"the running interpreter, a :exc:`RuntimeWarning` is emitted." msgstr "" #: ../../c-api/module.rst:239 @@ -272,8 +272,8 @@ msgstr "" #: ../../c-api/module.rst:242 msgid "" "Before it is returned from in the initialization function, the resulting " -"module object is typically populated using functions like " -":c:func:`PyModule_AddObject`." +"module object is typically populated using functions like :c:func:" +"`PyModule_AddObject`." msgstr "" #: ../../c-api/module.rst:248 @@ -283,11 +283,11 @@ msgstr "" #: ../../c-api/module.rst:250 msgid "" "An alternate way to specify extensions is to request \"multi-phase " -"initialization\". Extension modules created this way behave more like Python" -" modules: the initialization is split between the *creation phase*, when the" -" module object is created, and the *execution phase*, when it is populated. " -"The distinction is similar to the :py:meth:`__new__` and :py:meth:`__init__`" -" methods of classes." +"initialization\". Extension modules created this way behave more like Python " +"modules: the initialization is split between the *creation phase*, when the " +"module object is created, and the *execution phase*, when it is populated. " +"The distinction is similar to the :py:meth:`__new__` and :py:meth:`__init__` " +"methods of classes." msgstr "" #: ../../c-api/module.rst:257 @@ -298,25 +298,24 @@ msgid "" "normal garbage collection -- as with Python modules. By default, multiple " "modules created from the same definition should be independent: changes to " "one should not affect the others. This means that all state should be " -"specific to the module object (using e.g. using " -":c:func:`PyModule_GetState`), or its contents (such as the module's " -":attr:`__dict__` or individual classes created with " -":c:func:`PyType_FromSpec`)." +"specific to the module object (using e.g. using :c:func:" +"`PyModule_GetState`), or its contents (such as the module's :attr:`__dict__` " +"or individual classes created with :c:func:`PyType_FromSpec`)." msgstr "" #: ../../c-api/module.rst:267 msgid "" -"All modules created using multi-phase initialization are expected to support" -" :ref:`sub-interpreters `. Making sure multiple " -"modules are independent is typically enough to achieve this." +"All modules created using multi-phase initialization are expected to " +"support :ref:`sub-interpreters `. Making sure " +"multiple modules are independent is typically enough to achieve this." msgstr "" #: ../../c-api/module.rst:271 msgid "" "To request multi-phase initialization, the initialization function " -"(PyInit_modulename) returns a :c:type:`PyModuleDef` instance with non-empty " -":c:member:`~PyModuleDef.m_slots`. Before it is returned, the ``PyModuleDef``" -" instance must be initialized with the following function:" +"(PyInit_modulename) returns a :c:type:`PyModuleDef` instance with non-empty :" +"c:member:`~PyModuleDef.m_slots`. Before it is returned, the ``PyModuleDef`` " +"instance must be initialized with the following function:" msgstr "" #: ../../c-api/module.rst:278 @@ -381,19 +380,19 @@ msgstr "" msgid "" "If ``Py_mod_create`` is not specified, the import machinery will create a " "normal module object using :c:func:`PyModule_New`. The name is taken from " -"*spec*, not the definition, to allow extension modules to dynamically adjust" -" to their place in the module hierarchy and be imported under different " -"names through symlinks, all while sharing a single module definition." +"*spec*, not the definition, to allow extension modules to dynamically adjust " +"to their place in the module hierarchy and be imported under different names " +"through symlinks, all while sharing a single module definition." msgstr "" #: ../../c-api/module.rst:329 msgid "" -"There is no requirement for the returned object to be an instance of " -":c:type:`PyModule_Type`. Any type can be used, as long as it supports " -"setting and getting import-related attributes. However, only " -"``PyModule_Type`` instances may be returned if the ``PyModuleDef`` has " -"non-``NULL`` ``m_traverse``, ``m_clear``, ``m_free``; non-zero ``m_size``; " -"or slots other than ``Py_mod_create``." +"There is no requirement for the returned object to be an instance of :c:type:" +"`PyModule_Type`. Any type can be used, as long as it supports setting and " +"getting import-related attributes. However, only ``PyModule_Type`` instances " +"may be returned if the ``PyModuleDef`` has non-``NULL`` ``m_traverse``, " +"``m_clear``, ``m_free``; non-zero ``m_size``; or slots other than " +"``Py_mod_create``." msgstr "" #: ../../c-api/module.rst:338 @@ -437,14 +436,14 @@ msgstr "" msgid "" "Create a new module object, given the definition in *module* and the " "ModuleSpec *spec*, assuming the API version *module_api_version*. If that " -"version does not match the version of the running interpreter, a " -":exc:`RuntimeWarning` is emitted." +"version does not match the version of the running interpreter, a :exc:" +"`RuntimeWarning` is emitted." msgstr "" #: ../../c-api/module.rst:375 msgid "" -"Most uses of this function should be using :c:func:`PyModule_FromDefAndSpec`" -" instead; only use this if you are sure you need it." +"Most uses of this function should be using :c:func:`PyModule_FromDefAndSpec` " +"instead; only use this if you are sure you need it." msgstr "" #: ../../c-api/module.rst:382 @@ -464,8 +463,8 @@ msgid "" "*module*. Refer to the :c:type:`PyMethodDef` documentation for details on " "individual entries (due to the lack of a shared module namespace, module " "level \"functions\" implemented in C typically receive the module as their " -"first parameter, making them similar to instance methods on Python classes)." -" This function is called automatically when creating a module from " +"first parameter, making them similar to instance methods on Python classes). " +"This function is called automatically when creating a module from " "``PyModuleDef``, using either ``PyModule_Create`` or " "``PyModule_FromDefAndSpec``." msgstr "" @@ -476,8 +475,8 @@ msgstr "" #: ../../c-api/module.rst:411 msgid "" -"The module initialization function (if using single phase initialization) or" -" a function called from a module execution slot (if using multi-phase " +"The module initialization function (if using single phase initialization) or " +"a function called from a module execution slot (if using multi-phase " "initialization), can use the following functions to help initialize the " "module state:" msgstr "" @@ -497,8 +496,8 @@ msgstr "" #: ../../c-api/module.rst:427 msgid "" -"This means that its return value must be checked, and calling code must " -":c:func:`Py_DECREF` *value* manually on error. Example usage::" +"This means that its return value must be checked, and calling code must :c:" +"func:`Py_DECREF` *value* manually on error. Example usage::" msgstr "" #: ../../c-api/module.rst:439 @@ -519,8 +518,8 @@ msgstr "" msgid "" "Add an int constant to *module*. The name and the value are taken from " "*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int " -"constant *AF_INET* with the value of *AF_INET* to *module*. Return ``-1`` on" -" error, ``0`` on success." +"constant *AF_INET* with the value of *AF_INET* to *module*. Return ``-1`` on " +"error, ``0`` on success." msgstr "" #: ../../c-api/module.rst:461 @@ -557,8 +556,8 @@ msgstr "" #: ../../c-api/module.rst:483 msgid "" "Attaches the module object passed to the function to the interpreter state. " -"This allows the module object to be accessible via " -":c:func:`PyState_FindModule`." +"This allows the module object to be accessible via :c:func:" +"`PyState_FindModule`." msgstr "" #: ../../c-api/module.rst:486 diff --git a/c-api/none.po b/c-api/none.po index 98b6819b3..a4c255fcf 100644 --- a/c-api/none.po +++ b/c-api/none.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,15 +29,15 @@ msgstr "O Objeto ``None``" #: ../../c-api/none.rst:10 msgid "" -"Note that the :c:type:`PyTypeObject` for ``None`` is not directly exposed in" -" the Python/C API. Since ``None`` is a singleton, testing for object " -"identity (using ``==`` in C) is sufficient. There is no " -":c:func:`PyNone_Check` function for the same reason." +"Note that the :c:type:`PyTypeObject` for ``None`` is not directly exposed in " +"the Python/C API. Since ``None`` is a singleton, testing for object " +"identity (using ``==`` in C) is sufficient. There is no :c:func:" +"`PyNone_Check` function for the same reason." msgstr "" "Observe que o :c:type:`PyTypeObject` para ``None`` não está diretamente " -"exposto pela API Python/C. Como ``None`` é um singleton, é suficiente testar" -" a identidade do objeto (usando ``==`` em C). Não há nenhuma função " -":c:func:`PyNone_Check` pela mesma razão." +"exposto pela API Python/C. Como ``None`` é um singleton, é suficiente testar " +"a identidade do objeto (usando ``==`` em C). Não há nenhuma função :c:func:" +"`PyNone_Check` pela mesma razão." #: ../../c-api/none.rst:18 msgid "" diff --git a/c-api/number.po b/c-api/number.po index 1101237ff..7e5b188ee 100644 --- a/c-api/number.po +++ b/c-api/number.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Erick Simões , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Erick Simões , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,13 +31,13 @@ msgid "" "Returns ``1`` if the object *o* provides numeric protocols, and false " "otherwise. This function always succeeds." msgstr "" -"Retorna ``1`` se o objeto *o* prover um número de protocolo, caso contrário," -" retorna falso. Esta função sempre tem sucesso." +"Retorna ``1`` se o objeto *o* prover um número de protocolo, caso contrário, " +"retorna falso. Esta função sempre tem sucesso." #: ../../c-api/number.rst:17 msgid "" -"Returns the result of adding *o1* and *o2*, or ``NULL`` on failure. This is" -" the equivalent of the Python expression ``o1 + o2``." +"Returns the result of adding *o1* and *o2*, or ``NULL`` on failure. This is " +"the equivalent of the Python expression ``o1 + o2``." msgstr "" #: ../../c-api/number.rst:23 @@ -53,8 +54,8 @@ msgstr "" #: ../../c-api/number.rst:35 msgid "" -"Returns the result of matrix multiplication on *o1* and *o2*, or ``NULL`` on" -" failure. This is the equivalent of the Python expression ``o1 @ o2``." +"Returns the result of matrix multiplication on *o1* and *o2*, or ``NULL`` on " +"failure. This is the equivalent of the Python expression ``o1 @ o2``." msgstr "" #: ../../c-api/number.rst:43 @@ -65,11 +66,11 @@ msgstr "" #: ../../c-api/number.rst:49 msgid "" -"Return a reasonable approximation for the mathematical value of *o1* divided" -" by *o2*, or ``NULL`` on failure. The return value is \"approximate\" " -"because binary floating point numbers are approximate; it is not possible to" -" represent all real numbers in base two. This function can return a " -"floating point value when passed two integers." +"Return a reasonable approximation for the mathematical value of *o1* divided " +"by *o2*, or ``NULL`` on failure. The return value is \"approximate\" " +"because binary floating point numbers are approximate; it is not possible to " +"represent all real numbers in base two. This function can return a floating " +"point value when passed two integers." msgstr "" #: ../../c-api/number.rst:58 @@ -80,14 +81,14 @@ msgstr "" #: ../../c-api/number.rst:66 msgid "" -"See the built-in function :func:`divmod`. Returns ``NULL`` on failure. This" -" is the equivalent of the Python expression ``divmod(o1, o2)``." +"See the built-in function :func:`divmod`. Returns ``NULL`` on failure. This " +"is the equivalent of the Python expression ``divmod(o1, o2)``." msgstr "" #: ../../c-api/number.rst:74 msgid "" -"See the built-in function :func:`pow`. Returns ``NULL`` on failure. This is" -" the equivalent of the Python expression ``pow(o1, o2, o3)``, where *o3* is " +"See the built-in function :func:`pow`. Returns ``NULL`` on failure. This is " +"the equivalent of the Python expression ``pow(o1, o2, o3)``, where *o3* is " "optional. If *o3* is to be ignored, pass :c:data:`Py_None` in its place " "(passing ``NULL`` for *o3* would cause an illegal memory access)." msgstr "" @@ -124,8 +125,8 @@ msgstr "" #: ../../c-api/number.rst:114 msgid "" -"Returns the result of right shifting *o1* by *o2* on success, or ``NULL`` on" -" failure. This is the equivalent of the Python expression ``o1 >> o2``." +"Returns the result of right shifting *o1* by *o2* on success, or ``NULL`` on " +"failure. This is the equivalent of the Python expression ``o1 >> o2``." msgstr "" #: ../../c-api/number.rst:120 @@ -136,8 +137,8 @@ msgstr "" #: ../../c-api/number.rst:126 msgid "" -"Returns the \"bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL``" -" on failure. This is the equivalent of the Python expression ``o1 ^ o2``." +"Returns the \"bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL`` " +"on failure. This is the equivalent of the Python expression ``o1 ^ o2``." msgstr "" #: ../../c-api/number.rst:132 @@ -169,8 +170,8 @@ msgstr "" #: ../../c-api/number.rst:159 msgid "" -"Returns the result of matrix multiplication on *o1* and *o2*, or ``NULL`` on" -" failure. The operation is done *in-place* when *o1* supports it. This is " +"Returns the result of matrix multiplication on *o1* and *o2*, or ``NULL`` on " +"failure. The operation is done *in-place* when *o1* supports it. This is " "the equivalent of the Python statement ``o1 @= o2``." msgstr "" @@ -183,28 +184,28 @@ msgstr "" #: ../../c-api/number.rst:175 msgid "" -"Return a reasonable approximation for the mathematical value of *o1* divided" -" by *o2*, or ``NULL`` on failure. The return value is \"approximate\" " -"because binary floating point numbers are approximate; it is not possible to" -" represent all real numbers in base two. This function can return a " -"floating point value when passed two integers. The operation is done *in-" -"place* when *o1* supports it." +"Return a reasonable approximation for the mathematical value of *o1* divided " +"by *o2*, or ``NULL`` on failure. The return value is \"approximate\" " +"because binary floating point numbers are approximate; it is not possible to " +"represent all real numbers in base two. This function can return a floating " +"point value when passed two integers. The operation is done *in-place* when " +"*o1* supports it." msgstr "" #: ../../c-api/number.rst:184 msgid "" -"Returns the remainder of dividing *o1* by *o2*, or ``NULL`` on failure. The" -" operation is done *in-place* when *o1* supports it. This is the equivalent" -" of the Python statement ``o1 %= o2``." +"Returns the remainder of dividing *o1* by *o2*, or ``NULL`` on failure. The " +"operation is done *in-place* when *o1* supports it. This is the equivalent " +"of the Python statement ``o1 %= o2``." msgstr "" #: ../../c-api/number.rst:193 msgid "" "See the built-in function :func:`pow`. Returns ``NULL`` on failure. The " "operation is done *in-place* when *o1* supports it. This is the equivalent " -"of the Python statement ``o1 **= o2`` when o3 is :c:data:`Py_None`, or an " -"in-place variant of ``pow(o1, o2, o3)`` otherwise. If *o3* is to be ignored," -" pass :c:data:`Py_None` in its place (passing ``NULL`` for *o3* would cause " +"of the Python statement ``o1 **= o2`` when o3 is :c:data:`Py_None`, or an in-" +"place variant of ``pow(o1, o2, o3)`` otherwise. If *o3* is to be ignored, " +"pass :c:data:`Py_None` in its place (passing ``NULL`` for *o3* would cause " "an illegal memory access)." msgstr "" @@ -217,8 +218,8 @@ msgstr "" #: ../../c-api/number.rst:209 msgid "" -"Returns the result of right shifting *o1* by *o2* on success, or ``NULL`` on" -" failure. The operation is done *in-place* when *o1* supports it. This is " +"Returns the result of right shifting *o1* by *o2* on success, or ``NULL`` on " +"failure. The operation is done *in-place* when *o1* supports it. This is " "the equivalent of the Python statement ``o1 >>= o2``." msgstr "" @@ -231,8 +232,8 @@ msgstr "" #: ../../c-api/number.rst:223 msgid "" -"Returns the \"bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL``" -" on failure. The operation is done *in-place* when *o1* supports it. This " +"Returns the \"bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL`` " +"on failure. The operation is done *in-place* when *o1* supports it. This " "is the equivalent of the Python statement ``o1 ^= o2``." msgstr "" @@ -257,17 +258,17 @@ msgstr "" #: ../../c-api/number.rst:253 msgid "" -"Returns the *o* converted to a Python int on success or ``NULL`` with a " -":exc:`TypeError` exception raised on failure." +"Returns the *o* converted to a Python int on success or ``NULL`` with a :exc:" +"`TypeError` exception raised on failure." msgstr "" #: ../../c-api/number.rst:259 msgid "" "Returns the integer *n* converted to base *base* as a string. The *base* " -"argument must be one of 2, 8, 10, or 16. For base 2, 8, or 16, the returned" -" string is prefixed with a base marker of ``'0b'``, ``'0o'``, or ``'0x'``, " -"respectively. If *n* is not a Python int, it is converted with " -":c:func:`PyNumber_Index` first." +"argument must be one of 2, 8, 10, or 16. For base 2, 8, or 16, the returned " +"string is prefixed with a base marker of ``'0b'``, ``'0o'``, or ``'0x'``, " +"respectively. If *n* is not a Python int, it is converted with :c:func:" +"`PyNumber_Index` first." msgstr "" #: ../../c-api/number.rst:268 @@ -280,8 +281,8 @@ msgstr "" msgid "" "If *o* can be converted to a Python int but the attempt to convert to a " "Py_ssize_t value would raise an :exc:`OverflowError`, then the *exc* " -"argument is the type of exception that will be raised (usually " -":exc:`IndexError` or :exc:`OverflowError`). If *exc* is ``NULL``, then the " +"argument is the type of exception that will be raised (usually :exc:" +"`IndexError` or :exc:`OverflowError`). If *exc* is ``NULL``, then the " "exception is cleared and the value is clipped to ``PY_SSIZE_T_MIN`` for a " "negative integer or ``PY_SSIZE_T_MAX`` for a positive integer." msgstr "" @@ -289,6 +290,6 @@ msgstr "" #: ../../c-api/number.rst:281 msgid "" "Returns ``1`` if *o* is an index integer (has the nb_index slot of the " -"tp_as_number structure filled in), and ``0`` otherwise. This function always" -" succeeds." +"tp_as_number structure filled in), and ``0`` otherwise. This function always " +"succeeds." msgstr "" diff --git a/c-api/objbuffer.po b/c-api/objbuffer.po index fe724f067..efe222576 100644 --- a/c-api/objbuffer.po +++ b/c-api/objbuffer.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-08 11:02+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,46 +29,69 @@ msgstr "Protocolo de Buffer Antigo" #: ../../c-api/objbuffer.rst:8 msgid "" -"These functions were part of the \"old buffer protocol\" API in Python 2. In" -" Python 3, this protocol doesn't exist anymore but the functions are still " +"These functions were part of the \"old buffer protocol\" API in Python 2. In " +"Python 3, this protocol doesn't exist anymore but the functions are still " "exposed to ease porting 2.x code. They act as a compatibility wrapper " "around the :ref:`new buffer protocol `, but they don't give " "you control over the lifetime of the resources acquired when a buffer is " "exported." msgstr "" +"Essas funções faziam parte da API do \"protocolo de buffer antigo\" no " +"Python 2. No Python 3, esse protocolo não existe mais, mas as funções ainda " +"estão expostas para facilitar a portabilidade do código 2.x. Eles atuam como " +"um wrapper de compatibilidade em torno do :ref:`novo protocolo de buffer " +"`, mas não oferecem controle sobre a vida útil dos recursos " +"adquiridos quando um buffer é exportado." #: ../../c-api/objbuffer.rst:15 msgid "" "Therefore, it is recommended that you call :c:func:`PyObject_GetBuffer` (or " -"the ``y*`` or ``w*`` :ref:`format codes ` with the " -":c:func:`PyArg_ParseTuple` family of functions) to get a buffer view over an" -" object, and :c:func:`PyBuffer_Release` when the buffer view can be " -"released." +"the ``y*`` or ``w*`` :ref:`format codes ` with the :c:func:" +"`PyArg_ParseTuple` family of functions) to get a buffer view over an object, " +"and :c:func:`PyBuffer_Release` when the buffer view can be released." msgstr "" +"Portanto, é recomendável que você chame :c:func:`PyObject_GetBuffer` (ou os :" +"ref:`códigos de formatação ` ``y*`` ou ``w*`` com o família de " +"funções de :c:func:`PyArg_ParseTuple`) para obter uma visão de buffer sobre " +"um objeto e :c:func:`PyBuffer_Release` quando a visão de buffer puder ser " +"liberada." #: ../../c-api/objbuffer.rst:23 msgid "" "Returns a pointer to a read-only memory location usable as character-based " "input. The *obj* argument must support the single-segment character buffer " "interface. On success, returns ``0``, sets *buffer* to the memory location " -"and *buffer_len* to the buffer length. Returns ``-1`` and sets a " -":exc:`TypeError` on error." +"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:" +"`TypeError` on error." msgstr "" +"Retorna um ponteiro para um local de memória somente leitura utilizável como " +"entrada baseada em caracteres. O argumento *obj* deve ter suporte a " +"interface do buffer de caracteres de segmento único. Em caso de sucesso, " +"retorna ``0``, define *buffer* com local da memória e *buffer_len* com o " +"tamanho do buffer. Retorna ``-1`` e define a :exc:`TypeError` em caso de " +"erro." #: ../../c-api/objbuffer.rst:32 msgid "" "Returns a pointer to a read-only memory location containing arbitrary data. " "The *obj* argument must support the single-segment readable buffer " "interface. On success, returns ``0``, sets *buffer* to the memory location " -"and *buffer_len* to the buffer length. Returns ``-1`` and sets a " -":exc:`TypeError` on error." +"and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:" +"`TypeError` on error." msgstr "" +"Retorna um ponteiro para um local de memória somente leitura que contém " +"dados arbitrários. O argumento *obj* deve ter suporte à interface de buffer " +"legível de segmento único. Em caso de sucesso, retorna ``0``, define " +"*buffer* com o local da memória e *buffer_len* com o tamanho do buffer. " +"Retorna ``-1`` e define a :exc:`TypeError` em caso de erro." #: ../../c-api/objbuffer.rst:41 msgid "" "Returns ``1`` if *o* supports the single-segment readable buffer interface. " "Otherwise returns ``0``. This function always succeeds." msgstr "" +"Retorna ``1`` se *o* tiver suporte a interface de buffer legível de segmento " +"único. Caso contrário, retorna ``0``. Esta função sempre tem sucesso." #: ../../c-api/objbuffer.rst:44 msgid "" @@ -74,11 +99,19 @@ msgid "" "which occur while calling corresponding functions will get suppressed. To " "get error reporting use :c:func:`PyObject_GetBuffer()` instead." msgstr "" +"Observe que esta função tenta obter e liberar um buffer, e as exceções que " +"ocorrem ao chamar as funções correspondentes serão suprimidas. Para obter o " +"relatório de erros, use :c:func:`PyObject_GetBuffer()` em vez disso." #: ../../c-api/objbuffer.rst:51 msgid "" "Returns a pointer to a writable memory location. The *obj* argument must " -"support the single-segment, character buffer interface. On success, returns" -" ``0``, sets *buffer* to the memory location and *buffer_len* to the buffer " +"support the single-segment, character buffer interface. On success, returns " +"``0``, sets *buffer* to the memory location and *buffer_len* to the buffer " "length. Returns ``-1`` and sets a :exc:`TypeError` on error." msgstr "" +"Retorna um ponteiro para um local de memória gravável. O argumento *obj* " +"deve ter suporte a interface de buffer de caracteres de segmento único. Em " +"caso de sucesso, retorna ``0``, define *buffer* com o local da memória e " +"*buffer_len* com o comprimento do buffer. Retorna ``-1`` e define a :exc:" +"`TypeError` em caso de erro." diff --git a/c-api/object.po b/c-api/object.po index 8a9cc1f2a..635574d8a 100644 --- a/c-api/object.po +++ b/c-api/object.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,23 +51,23 @@ msgstr "" #: ../../c-api/object.rst:32 ../../c-api/object.rst:43 msgid "" "Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. " -"This is equivalent to the Python expression ``hasattr(o, attr_name)``. This" -" function always succeeds." +"This is equivalent to the Python expression ``hasattr(o, attr_name)``. This " +"function always succeeds." msgstr "" #: ../../c-api/object.rst:36 msgid "" -"Note that exceptions which occur while calling :meth:`__getattr__` and " -":meth:`__getattribute__` methods will get suppressed. To get error reporting" -" use :c:func:`PyObject_GetAttr()` instead." +"Note that exceptions which occur while calling :meth:`__getattr__` and :meth:" +"`__getattribute__` methods will get suppressed. To get error reporting use :" +"c:func:`PyObject_GetAttr()` instead." msgstr "" #: ../../c-api/object.rst:47 msgid "" -"Note that exceptions which occur while calling :meth:`__getattr__` and " -":meth:`__getattribute__` methods and creating a temporary string object will" -" get suppressed. To get error reporting use " -":c:func:`PyObject_GetAttrString()` instead." +"Note that exceptions which occur while calling :meth:`__getattr__` and :meth:" +"`__getattribute__` methods and creating a temporary string object will get " +"suppressed. To get error reporting use :c:func:`PyObject_GetAttrString()` " +"instead." msgstr "" #: ../../c-api/object.rst:55 @@ -86,9 +88,9 @@ msgstr "" msgid "" "Generic attribute getter function that is meant to be put into a type " "object's ``tp_getattro`` slot. It looks for a descriptor in the dictionary " -"of classes in the object's MRO as well as an attribute in the object's " -":attr:`~object.__dict__` (if present). As outlined in :ref:`descriptors`, " -"data descriptors take preference over instance attributes, while non-data " +"of classes in the object's MRO as well as an attribute in the object's :attr:" +"`~object.__dict__` (if present). As outlined in :ref:`descriptors`, data " +"descriptors take preference over instance attributes, while non-data " "descriptors don't. Otherwise, an :exc:`AttributeError` is raised." msgstr "" @@ -96,8 +98,7 @@ msgstr "" msgid "" "Set the value of the attribute named *attr_name*, for object *o*, to the " "value *v*. Raise an exception and return ``-1`` on failure; return ``0`` on " -"success. This is the equivalent of the Python statement ``o.attr_name = " -"v``." +"success. This is the equivalent of the Python statement ``o.attr_name = v``." msgstr "" #: ../../c-api/object.rst:84 @@ -114,8 +115,8 @@ msgstr "" #: ../../c-api/object.rst:101 msgid "" -"Generic attribute setter and deleter function that is meant to be put into a" -" type object's :c:member:`~PyTypeObject.tp_setattro` slot. It looks for a " +"Generic attribute setter and deleter function that is meant to be put into a " +"type object's :c:member:`~PyTypeObject.tp_setattro` slot. It looks for a " "data descriptor in the dictionary of classes in the object's MRO, and if " "found it takes preference over setting or deleting the attribute in the " "instance dictionary. Otherwise, the attribute is set or deleted in the " @@ -144,24 +145,24 @@ msgstr "" #: ../../c-api/object.rst:141 msgid "" -"Compare the values of *o1* and *o2* using the operation specified by *opid*," -" which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, " -":const:`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``, " -"``<=``, ``==``, ``!=``, ``>``, or ``>=`` respectively. This is the " -"equivalent of the Python expression ``o1 op o2``, where ``op`` is the " -"operator corresponding to *opid*. Returns the value of the comparison on " -"success, or ``NULL`` on failure." +"Compare the values of *o1* and *o2* using the operation specified by *opid*, " +"which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, :const:" +"`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``, ``<=``, " +"``==``, ``!=``, ``>``, or ``>=`` respectively. This is the equivalent of the " +"Python expression ``o1 op o2``, where ``op`` is the operator corresponding " +"to *opid*. Returns the value of the comparison on success, or ``NULL`` on " +"failure." msgstr "" #: ../../c-api/object.rst:151 msgid "" -"Compare the values of *o1* and *o2* using the operation specified by *opid*," -" which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, " -":const:`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``, " -"``<=``, ``==``, ``!=``, ``>``, or ``>=`` respectively. Returns ``-1`` on " -"error, ``0`` if the result is false, ``1`` otherwise. This is the equivalent" -" of the Python expression ``o1 op o2``, where ``op`` is the operator " -"corresponding to *opid*." +"Compare the values of *o1* and *o2* using the operation specified by *opid*, " +"which must be one of :const:`Py_LT`, :const:`Py_LE`, :const:`Py_EQ`, :const:" +"`Py_NE`, :const:`Py_GT`, or :const:`Py_GE`, corresponding to ``<``, ``<=``, " +"``==``, ``!=``, ``>``, or ``>=`` respectively. Returns ``-1`` on error, " +"``0`` if the result is false, ``1`` otherwise. This is the equivalent of the " +"Python expression ``o1 op o2``, where ``op`` is the operator corresponding " +"to *opid*." msgstr "" #: ../../c-api/object.rst:160 @@ -180,17 +181,17 @@ msgstr "" #: ../../c-api/object.rst:171 ../../c-api/object.rst:195 msgid "" -"This function now includes a debug assertion to help ensure that it does not" -" silently discard an active exception." +"This function now includes a debug assertion to help ensure that it does not " +"silently discard an active exception." msgstr "" #: ../../c-api/object.rst:179 msgid "" "As :c:func:`PyObject_Repr`, compute a string representation of object *o*, " -"but escape the non-ASCII characters in the string returned by " -":c:func:`PyObject_Repr` with ``\\x``, ``\\u`` or ``\\U`` escapes. This " -"generates a string similar to that returned by :c:func:`PyObject_Repr` in " -"Python 2. Called by the :func:`ascii` built-in function." +"but escape the non-ASCII characters in the string returned by :c:func:" +"`PyObject_Repr` with ``\\x``, ``\\u`` or ``\\U`` escapes. This generates a " +"string similar to that returned by :c:func:`PyObject_Repr` in Python 2. " +"Called by the :func:`ascii` built-in function." msgstr "" #: ../../c-api/object.rst:190 @@ -205,8 +206,8 @@ msgstr "" msgid "" "Compute a bytes representation of object *o*. ``NULL`` is returned on " "failure and a bytes object on success. This is equivalent to the Python " -"expression ``bytes(o)``, when *o* is not an integer. Unlike ``bytes(o)``, a" -" TypeError is raised when *o* is an integer instead of a zero-initialized " +"expression ``bytes(o)``, when *o* is not an integer. Unlike ``bytes(o)``, a " +"TypeError is raised when *o* is an integer instead of a zero-initialized " "bytes object." msgstr "" @@ -225,17 +226,17 @@ msgstr "" #: ../../c-api/object.rst:219 msgid "" -"If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to" -" determine the subclass status as described in :pep:`3119`. Otherwise, " -"*derived* is a subclass of *cls* if it is a direct or indirect subclass, " -"i.e. contained in ``cls.__mro__``." +"If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to " +"determine the subclass status as described in :pep:`3119`. Otherwise, " +"*derived* is a subclass of *cls* if it is a direct or indirect subclass, i." +"e. contained in ``cls.__mro__``." msgstr "" #: ../../c-api/object.rst:224 msgid "" "Normally only class objects, i.e. instances of :class:`type` or a derived " -"class, are considered classes. However, objects can override this by having" -" a :attr:`__bases__` attribute (which must be a tuple of base classes)." +"class, are considered classes. However, objects can override this by having " +"a :attr:`__bases__` attribute (which must be a tuple of base classes)." msgstr "" #: ../../c-api/object.rst:231 @@ -246,15 +247,15 @@ msgstr "" #: ../../c-api/object.rst:238 msgid "" -"If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to" -" determine the subclass status as described in :pep:`3119`. Otherwise, " +"If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to " +"determine the subclass status as described in :pep:`3119`. Otherwise, " "*inst* is an instance of *cls* if its class is a subclass of *cls*." msgstr "" #: ../../c-api/object.rst:242 msgid "" -"An instance *inst* can override what is considered its class by having a " -":attr:`__class__` attribute." +"An instance *inst* can override what is considered its class by having a :" +"attr:`__class__` attribute." msgstr "" #: ../../c-api/object.rst:245 @@ -316,8 +317,8 @@ msgstr "" #: ../../c-api/object.rst:293 msgid "" -"Note that if you only pass :c:type:`PyObject \\*` args, " -":c:func:`PyObject_CallFunctionObjArgs` is a faster alternative." +"Note that if you only pass :c:type:`PyObject \\*` args, :c:func:" +"`PyObject_CallFunctionObjArgs` is a faster alternative." msgstr "" #: ../../c-api/object.rst:296 @@ -337,14 +338,14 @@ msgstr "" #: ../../c-api/object.rst:311 msgid "" -"This is the equivalent of the Python expression: ``obj.name(arg1, arg2, " -"...)``." +"This is the equivalent of the Python expression: ``obj.name(arg1, " +"arg2, ...)``." msgstr "" #: ../../c-api/object.rst:314 msgid "" -"Note that if you only pass :c:type:`PyObject \\*` args, " -":c:func:`PyObject_CallMethodObjArgs` is a faster alternative." +"Note that if you only pass :c:type:`PyObject \\*` args, :c:func:" +"`PyObject_CallMethodObjArgs` is a faster alternative." msgstr "" #: ../../c-api/object.rst:317 @@ -353,15 +354,15 @@ msgstr "" #: ../../c-api/object.rst:323 msgid "" -"Call a callable Python object *callable*, with a variable number of " -":c:type:`PyObject\\*` arguments. The arguments are provided as a variable " -"number of parameters followed by ``NULL``." +"Call a callable Python object *callable*, with a variable number of :c:type:" +"`PyObject\\*` arguments. The arguments are provided as a variable number of " +"parameters followed by ``NULL``." msgstr "" #: ../../c-api/object.rst:330 msgid "" -"This is the equivalent of the Python expression: ``callable(arg1, arg2, " -"...)``." +"This is the equivalent of the Python expression: ``callable(arg1, " +"arg2, ...)``." msgstr "" #: ../../c-api/object.rst:336 @@ -380,8 +381,8 @@ msgstr "" #: ../../c-api/object.rst:352 msgid "" -"The return type is now Py_hash_t. This is a signed integer the same size as" -" Py_ssize_t." +"The return type is now Py_hash_t. This is a signed integer the same size as " +"Py_ssize_t." msgstr "" #: ../../c-api/object.rst:359 @@ -412,8 +413,8 @@ msgid "" "type of object *o*. On failure, raises :exc:`SystemError` and returns " "``NULL``. This is equivalent to the Python expression ``type(o)``. This " "function increments the reference count of the return value. There's really " -"no reason to use this function instead of the common expression " -"``o->ob_type``, which returns a pointer of type :c:type:`PyTypeObject\\*`, " +"no reason to use this function instead of the common expression ``o-" +">ob_type``, which returns a pointer of type :c:type:`PyTypeObject\\*`, " "except when the incremented reference count is needed." msgstr "" @@ -447,8 +448,8 @@ msgstr "" #: ../../c-api/object.rst:426 msgid "" -"Map the object *key* to the value *v*. Raise an exception and return ``-1``" -" on failure; return ``0`` on success. This is the equivalent of the Python " +"Map the object *key* to the value *v*. Raise an exception and return ``-1`` " +"on failure; return ``0`` on success. This is the equivalent of the Python " "statement ``o[key] = v``." msgstr "" @@ -464,8 +465,8 @@ msgid "" "(possibly empty) list of strings appropriate for the object argument, or " "``NULL`` if there was an error. If the argument is ``NULL``, this is like " "the Python ``dir()``, returning the names of the current locals; in this " -"case, if no execution frame is active then ``NULL`` is returned but " -":c:func:`PyErr_Occurred` will return false." +"case, if no execution frame is active then ``NULL`` is returned but :c:func:" +"`PyErr_Occurred` will return false." msgstr "" #: ../../c-api/object.rst:448 diff --git a/c-api/objimpl.po b/c-api/objimpl.po index 6c4de799e..15972e5d8 100644 --- a/c-api/objimpl.po +++ b/c-api/objimpl.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/c-api/refcounting.po b/c-api/refcounting.po index 0ca6b08b9..4db313ea4 100644 --- a/c-api/refcounting.po +++ b/c-api/refcounting.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +36,8 @@ msgstr "" #: ../../c-api/refcounting.rst:16 msgid "" "Increment the reference count for object *o*. The object must not be " -"``NULL``; if you aren't sure that it isn't ``NULL``, use " -":c:func:`Py_XINCREF`." +"``NULL``; if you aren't sure that it isn't ``NULL``, use :c:func:" +"`Py_XINCREF`." msgstr "" #: ../../c-api/refcounting.rst:22 @@ -47,22 +49,22 @@ msgstr "" #: ../../c-api/refcounting.rst:28 msgid "" "Decrement the reference count for object *o*. The object must not be " -"``NULL``; if you aren't sure that it isn't ``NULL``, use " -":c:func:`Py_XDECREF`. If the reference count reaches zero, the object's " -"type's deallocation function (which must not be ``NULL``) is invoked." +"``NULL``; if you aren't sure that it isn't ``NULL``, use :c:func:" +"`Py_XDECREF`. If the reference count reaches zero, the object's type's " +"deallocation function (which must not be ``NULL``) is invoked." msgstr "" #: ../../c-api/refcounting.rst:35 msgid "" -"The deallocation function can cause arbitrary Python code to be invoked " -"(e.g. when a class instance with a :meth:`__del__` method is deallocated). " -"While exceptions in such code are not propagated, the executed code has free" -" access to all Python global variables. This means that any object that is " -"reachable from a global variable should be in a consistent state before " -":c:func:`Py_DECREF` is invoked. For example, code to delete an object from " -"a list should copy a reference to the deleted object in a temporary " -"variable, update the list data structure, and then call :c:func:`Py_DECREF` " -"for the temporary variable." +"The deallocation function can cause arbitrary Python code to be invoked (e." +"g. when a class instance with a :meth:`__del__` method is deallocated). " +"While exceptions in such code are not propagated, the executed code has free " +"access to all Python global variables. This means that any object that is " +"reachable from a global variable should be in a consistent state before :c:" +"func:`Py_DECREF` is invoked. For example, code to delete an object from a " +"list should copy a reference to the deleted object in a temporary variable, " +"update the list data structure, and then call :c:func:`Py_DECREF` for the " +"temporary variable." msgstr "" #: ../../c-api/refcounting.rst:47 @@ -78,8 +80,8 @@ msgid "" "in which case the macro has no effect; otherwise the effect is the same as " "for :c:func:`Py_DECREF`, except that the argument is also set to ``NULL``. " "The warning for :c:func:`Py_DECREF` does not apply with respect to the " -"object passed because the macro carefully uses a temporary variable and sets" -" the argument to ``NULL`` before decrementing its reference count." +"object passed because the macro carefully uses a temporary variable and sets " +"the argument to ``NULL`` before decrementing its reference count." msgstr "" #: ../../c-api/refcounting.rst:61 @@ -92,14 +94,13 @@ msgstr "" msgid "" "The following functions are for runtime dynamic embedding of Python: " "``Py_IncRef(PyObject *o)``, ``Py_DecRef(PyObject *o)``. They are simply " -"exported function versions of :c:func:`Py_XINCREF` and :c:func:`Py_XDECREF`," -" respectively." +"exported function versions of :c:func:`Py_XINCREF` and :c:func:`Py_XDECREF`, " +"respectively." msgstr "" #: ../../c-api/refcounting.rst:70 msgid "" "The following functions or macros are only for use within the interpreter " -"core: :c:func:`_Py_Dealloc`, :c:func:`_Py_ForgetReference`, " -":c:func:`_Py_NewReference`, as well as the global variable " -":c:data:`_Py_RefTotal`." +"core: :c:func:`_Py_Dealloc`, :c:func:`_Py_ForgetReference`, :c:func:" +"`_Py_NewReference`, as well as the global variable :c:data:`_Py_RefTotal`." msgstr "" diff --git a/c-api/reflection.po b/c-api/reflection.po index 4cebca4f2..c38df2589 100644 --- a/c-api/reflection.po +++ b/c-api/reflection.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Ruan Aragão , 2019 # Italo Penaforte , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,18 +42,24 @@ msgid "" "Return a dictionary of the local variables in the current execution frame, " "or ``NULL`` if no frame is currently executing." msgstr "" +"Retorna um dicionário das variáveis locais no quadro de execução atual ou " +"``NULL`` se nenhum quadro estiver sendo executado no momento." #: ../../c-api/reflection.rst:22 msgid "" "Return a dictionary of the global variables in the current execution frame, " "or ``NULL`` if no frame is currently executing." msgstr "" +"Retorna um dicionário das variáveis globais no quadro de execução atual ou " +"``NULL`` se nenhum quadro estiver sendo executado no momento." #: ../../c-api/reflection.rst:28 msgid "" "Return the current thread state's frame, which is ``NULL`` if no frame is " "currently executing." msgstr "" +"Retorna o quadro do estado atual da thread, que é ``NULL`` se nenhum quadro " +"estiver em execução no momento." #: ../../c-api/reflection.rst:34 msgid "Return the line number that *frame* is currently executing." @@ -62,15 +70,15 @@ msgid "" "Return the name of *func* if it is a function, class or instance object, " "else the name of *func*\\s type." msgstr "" -"Retorna o nome de * func * se for uma função, classe ou objeto de instância," -" senão o nome do tipo * func * \\ s." +"Retorna o nome de * func * se for uma função, classe ou objeto de instância, " +"senão o nome do tipo * func * \\ s." #: ../../c-api/reflection.rst:45 msgid "" "Return a description string, depending on the type of *func*. Return values " "include \"()\" for functions and methods, \" constructor\", \" instance\", " -"and \" object\". Concatenated with the result of " -":c:func:`PyEval_GetFuncName`, the result will be a description of *func*." +"and \" object\". Concatenated with the result of :c:func:" +"`PyEval_GetFuncName`, the result will be a description of *func*." msgstr "" "Retornar uma seqüência de caracteres de descrição, dependendo do tipo de * " "func *. Os valores de retorno incluem \"()\" para funções e métodos, " diff --git a/c-api/sequence.po b/c-api/sequence.po index 69af564eb..aa96b671c 100644 --- a/c-api/sequence.po +++ b/c-api/sequence.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -63,8 +65,8 @@ msgstr "" #: ../../c-api/sequence.rst:48 msgid "" "Return the result of repeating sequence object *o* *count* times, or " -"``NULL`` on failure. The operation is done *in-place* when *o* supports it." -" This is the equivalent of the Python expression ``o *= count``." +"``NULL`` on failure. The operation is done *in-place* when *o* supports " +"it. This is the equivalent of the Python expression ``o *= count``." msgstr "" #: ../../c-api/sequence.rst:55 @@ -95,21 +97,20 @@ msgstr "" #: ../../c-api/sequence.rst:78 msgid "" -"Delete the *i*\\ th element of object *o*. Returns ``-1`` on failure. This" -" is the equivalent of the Python statement ``del o[i]``." +"Delete the *i*\\ th element of object *o*. Returns ``-1`` on failure. This " +"is the equivalent of the Python statement ``del o[i]``." msgstr "" #: ../../c-api/sequence.rst:84 msgid "" -"Assign the sequence object *v* to the slice in sequence object *o* from *i1*" -" to *i2*. This is the equivalent of the Python statement ``o[i1:i2] = v``." +"Assign the sequence object *v* to the slice in sequence object *o* from *i1* " +"to *i2*. This is the equivalent of the Python statement ``o[i1:i2] = v``." msgstr "" #: ../../c-api/sequence.rst:90 msgid "" "Delete the slice in sequence object *o* from *i1* to *i2*. Returns ``-1`` " -"on failure. This is the equivalent of the Python statement ``del " -"o[i1:i2]``." +"on failure. This is the equivalent of the Python statement ``del o[i1:i2]``." msgstr "" #: ../../c-api/sequence.rst:96 @@ -134,9 +135,9 @@ msgstr "" #: ../../c-api/sequence.rst:116 msgid "" -"Return a list object with the same contents as the sequence or iterable *o*," -" or ``NULL`` on failure. The returned list is guaranteed to be new. This " -"is equivalent to the Python expression ``list(o)``." +"Return a list object with the same contents as the sequence or iterable *o*, " +"or ``NULL`` on failure. The returned list is guaranteed to be new. This is " +"equivalent to the Python expression ``list(o)``." msgstr "" #: ../../c-api/sequence.rst:125 @@ -150,38 +151,37 @@ msgstr "" #: ../../c-api/sequence.rst:133 msgid "" "Return the sequence or iterable *o* as an object usable by the other " -"``PySequence_Fast*`` family of functions. If the object is not a sequence or" -" iterable, raises :exc:`TypeError` with *m* as the message text. Returns " +"``PySequence_Fast*`` family of functions. If the object is not a sequence or " +"iterable, raises :exc:`TypeError` with *m* as the message text. Returns " "``NULL`` on failure." msgstr "" #: ../../c-api/sequence.rst:138 msgid "" -"The ``PySequence_Fast*`` functions are thus named because they assume *o* is" -" a :c:type:`PyTupleObject` or a :c:type:`PyListObject` and access the data " +"The ``PySequence_Fast*`` functions are thus named because they assume *o* is " +"a :c:type:`PyTupleObject` or a :c:type:`PyListObject` and access the data " "fields of *o* directly." msgstr "" #: ../../c-api/sequence.rst:142 msgid "" -"As a CPython implementation detail, if *o* is already a sequence or list, it" -" will be returned." +"As a CPython implementation detail, if *o* is already a sequence or list, it " +"will be returned." msgstr "" #: ../../c-api/sequence.rst:148 msgid "" -"Returns the length of *o*, assuming that *o* was returned by " -":c:func:`PySequence_Fast` and that *o* is not ``NULL``. The size can also " -"be gotten by calling :c:func:`PySequence_Size` on *o*, but " -":c:func:`PySequence_Fast_GET_SIZE` is faster because it can assume *o* is a " -"list or tuple." +"Returns the length of *o*, assuming that *o* was returned by :c:func:" +"`PySequence_Fast` and that *o* is not ``NULL``. The size can also be gotten " +"by calling :c:func:`PySequence_Size` on *o*, but :c:func:" +"`PySequence_Fast_GET_SIZE` is faster because it can assume *o* is a list or " +"tuple." msgstr "" #: ../../c-api/sequence.rst:157 msgid "" -"Return the *i*\\ th element of *o*, assuming that *o* was returned by " -":c:func:`PySequence_Fast`, *o* is not ``NULL``, and that *i* is within " -"bounds." +"Return the *i*\\ th element of *o*, assuming that *o* was returned by :c:" +"func:`PySequence_Fast`, *o* is not ``NULL``, and that *i* is within bounds." msgstr "" #: ../../c-api/sequence.rst:163 @@ -192,15 +192,15 @@ msgstr "" #: ../../c-api/sequence.rst:166 msgid "" -"Note, if a list gets resized, the reallocation may relocate the items array." -" So, only use the underlying array pointer in contexts where the sequence " +"Note, if a list gets resized, the reallocation may relocate the items array. " +"So, only use the underlying array pointer in contexts where the sequence " "cannot change." msgstr "" #: ../../c-api/sequence.rst:173 msgid "" -"Return the *i*\\ th element of *o* or ``NULL`` on failure. Faster form of " -":c:func:`PySequence_GetItem` but without checking that " -":c:func:`PySequence_Check` on *o* is true and without adjustment for " -"negative indices." +"Return the *i*\\ th element of *o* or ``NULL`` on failure. Faster form of :c:" +"func:`PySequence_GetItem` but without checking that :c:func:" +"`PySequence_Check` on *o* is true and without adjustment for negative " +"indices." msgstr "" diff --git a/c-api/set.po b/c-api/set.po index da521a347..461328533 100644 --- a/c-api/set.po +++ b/c-api/set.po @@ -1,20 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Lucas Sanches , 2019 +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,38 +32,40 @@ msgstr "Objeto Set" msgid "" "This section details the public API for :class:`set` and :class:`frozenset` " "objects. Any functionality not listed below is best accessed using the " -"either the abstract object protocol (including " -":c:func:`PyObject_CallMethod`, :c:func:`PyObject_RichCompareBool`, " -":c:func:`PyObject_Hash`, :c:func:`PyObject_Repr`, :c:func:`PyObject_IsTrue`," -" :c:func:`PyObject_Print`, and :c:func:`PyObject_GetIter`) or the abstract " -"number protocol (including :c:func:`PyNumber_And`, " -":c:func:`PyNumber_Subtract`, :c:func:`PyNumber_Or`, :c:func:`PyNumber_Xor`, " -":c:func:`PyNumber_InPlaceAnd`, :c:func:`PyNumber_InPlaceSubtract`, " -":c:func:`PyNumber_InPlaceOr`, and :c:func:`PyNumber_InPlaceXor`)." +"either the abstract object protocol (including :c:func:" +"`PyObject_CallMethod`, :c:func:`PyObject_RichCompareBool`, :c:func:" +"`PyObject_Hash`, :c:func:`PyObject_Repr`, :c:func:`PyObject_IsTrue`, :c:func:" +"`PyObject_Print`, and :c:func:`PyObject_GetIter`) or the abstract number " +"protocol (including :c:func:`PyNumber_And`, :c:func:`PyNumber_Subtract`, :c:" +"func:`PyNumber_Or`, :c:func:`PyNumber_Xor`, :c:func:`PyNumber_InPlaceAnd`, :" +"c:func:`PyNumber_InPlaceSubtract`, :c:func:`PyNumber_InPlaceOr`, and :c:func:" +"`PyNumber_InPlaceXor`)." msgstr "" #: ../../c-api/set.rst:29 msgid "" "This subtype of :c:type:`PyObject` is used to hold the internal data for " -"both :class:`set` and :class:`frozenset` objects. It is like a " -":c:type:`PyDictObject` in that it is a fixed size for small sets (much like " -"tuple storage) and will point to a separate, variable sized block of memory " -"for medium and large sized sets (much like list storage). None of the fields" -" of this structure should be considered public and are subject to change. " -"All access should be done through the documented API rather than by " -"manipulating the values in the structure." +"both :class:`set` and :class:`frozenset` objects. It is like a :c:type:" +"`PyDictObject` in that it is a fixed size for small sets (much like tuple " +"storage) and will point to a separate, variable sized block of memory for " +"medium and large sized sets (much like list storage). None of the fields of " +"this structure should be considered public and are subject to change. All " +"access should be done through the documented API rather than by manipulating " +"the values in the structure." msgstr "" #: ../../c-api/set.rst:40 msgid "" -"This is an instance of :c:type:`PyTypeObject` representing the Python " -":class:`set` type." +"This is an instance of :c:type:`PyTypeObject` representing the Python :class:" +"`set` type." msgstr "" +"Essa é uma instância de :c:type:`PyTypeObject` representando a classe Python " +"do tipo `set`" #: ../../c-api/set.rst:46 msgid "" -"This is an instance of :c:type:`PyTypeObject` representing the Python " -":class:`frozenset` type." +"This is an instance of :c:type:`PyTypeObject` representing the Python :class:" +"`frozenset` type." msgstr "" #: ../../c-api/set.rst:49 @@ -82,8 +87,8 @@ msgstr "" #: ../../c-api/set.rst:64 msgid "" -"Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or" -" an instance of a subtype." +"Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or " +"an instance of a subtype." msgstr "" #: ../../c-api/set.rst:70 @@ -102,30 +107,30 @@ msgstr "" msgid "" "Return a new :class:`set` containing objects returned by the *iterable*. " "The *iterable* may be ``NULL`` to create a new empty set. Return the new " -"set on success or ``NULL`` on failure. Raise :exc:`TypeError` if *iterable*" -" is not actually iterable. The constructor is also useful for copying a set" -" (``c=set(s)``)." +"set on success or ``NULL`` on failure. Raise :exc:`TypeError` if *iterable* " +"is not actually iterable. The constructor is also useful for copying a set " +"(``c=set(s)``)." msgstr "" #: ../../c-api/set.rst:91 msgid "" "Return a new :class:`frozenset` containing objects returned by the " -"*iterable*. The *iterable* may be ``NULL`` to create a new empty frozenset." -" Return the new set on success or ``NULL`` on failure. Raise " -":exc:`TypeError` if *iterable* is not actually iterable." +"*iterable*. The *iterable* may be ``NULL`` to create a new empty frozenset. " +"Return the new set on success or ``NULL`` on failure. Raise :exc:" +"`TypeError` if *iterable* is not actually iterable." msgstr "" #: ../../c-api/set.rst:97 msgid "" -"The following functions and macros are available for instances of " -":class:`set` or :class:`frozenset` or instances of their subtypes." +"The following functions and macros are available for instances of :class:" +"`set` or :class:`frozenset` or instances of their subtypes." msgstr "" #: ../../c-api/set.rst:105 msgid "" -"Return the length of a :class:`set` or :class:`frozenset` object. Equivalent" -" to ``len(anyset)``. Raises a :exc:`PyExc_SystemError` if *anyset* is not a" -" :class:`set`, :class:`frozenset`, or an instance of a subtype." +"Return the length of a :class:`set` or :class:`frozenset` object. Equivalent " +"to ``len(anyset)``. Raises a :exc:`PyExc_SystemError` if *anyset* is not a :" +"class:`set`, :class:`frozenset`, or an instance of a subtype." msgstr "" #: ../../c-api/set.rst:112 @@ -137,9 +142,9 @@ msgid "" "Return ``1`` if found, ``0`` if not found, and ``-1`` if an error is " "encountered. Unlike the Python :meth:`__contains__` method, this function " "does not automatically convert unhashable sets into temporary frozensets. " -"Raise a :exc:`TypeError` if the *key* is unhashable. Raise " -":exc:`PyExc_SystemError` if *anyset* is not a :class:`set`, " -":class:`frozenset`, or an instance of a subtype." +"Raise a :exc:`TypeError` if the *key* is unhashable. Raise :exc:" +"`PyExc_SystemError` if *anyset* is not a :class:`set`, :class:`frozenset`, " +"or an instance of a subtype." msgstr "" #: ../../c-api/set.rst:126 @@ -149,8 +154,8 @@ msgid "" "values of brand new frozensets before they are exposed to other code). " "Return ``0`` on success or ``-1`` on failure. Raise a :exc:`TypeError` if " "the *key* is unhashable. Raise a :exc:`MemoryError` if there is no room to " -"grow. Raise a :exc:`SystemError` if *set* is not an instance of " -":class:`set` or its subtype." +"grow. Raise a :exc:`SystemError` if *set* is not an instance of :class:" +"`set` or its subtype." msgstr "" #: ../../c-api/set.rst:135 @@ -161,12 +166,12 @@ msgstr "" #: ../../c-api/set.rst:141 msgid "" -"Return ``1`` if found and removed, ``0`` if not found (no action taken), and" -" ``-1`` if an error is encountered. Does not raise :exc:`KeyError` for " +"Return ``1`` if found and removed, ``0`` if not found (no action taken), and " +"``-1`` if an error is encountered. Does not raise :exc:`KeyError` for " "missing keys. Raise a :exc:`TypeError` if the *key* is unhashable. Unlike " -"the Python :meth:`~set.discard` method, this function does not automatically" -" convert unhashable sets into temporary frozensets. Raise " -":exc:`PyExc_SystemError` if *set* is not an instance of :class:`set` or its " +"the Python :meth:`~set.discard` method, this function does not automatically " +"convert unhashable sets into temporary frozensets. Raise :exc:" +"`PyExc_SystemError` if *set* is not an instance of :class:`set` or its " "subtype." msgstr "" @@ -180,8 +185,8 @@ msgstr "" #: ../../c-api/set.rst:159 msgid "Empty an existing set of all elements." -msgstr "" +msgstr "Limpa todos os elementos de um set existente" #: ../../c-api/set.rst:164 msgid "Clear the free list. Return the total number of freed items." -msgstr "" +msgstr "Limpe a lista livre. Retorna o número total de itens liberados." diff --git a/c-api/slice.po b/c-api/slice.po index 30df760fc..2c3e2f36a 100644 --- a/c-api/slice.po +++ b/c-api/slice.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,8 +51,8 @@ msgstr "" #: ../../c-api/slice.rst:31 msgid "" "Retrieve the start, stop and step indices from the slice object *slice*, " -"assuming a sequence of length *length*. Treats indices greater than *length*" -" as errors." +"assuming a sequence of length *length*. Treats indices greater than *length* " +"as errors." msgstr "" #: ../../c-api/slice.rst:35 @@ -73,8 +75,8 @@ msgstr "" msgid "" "Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, " "stop, and step indices from the slice object *slice* assuming a sequence of " -"length *length*, and store the length of the slice in *slicelength*. Out of" -" bounds indices are clipped in a manner consistent with the handling of " +"length *length*, and store the length of the slice in *slicelength*. Out of " +"bounds indices are clipped in a manner consistent with the handling of " "normal slices." msgstr "" @@ -84,9 +86,9 @@ msgstr "" #: ../../c-api/slice.rst:57 msgid "" -"This function is considered not safe for resizable sequences. Its invocation" -" should be replaced by a combination of :c:func:`PySlice_Unpack` and " -":c:func:`PySlice_AdjustIndices` where ::" +"This function is considered not safe for resizable sequences. Its invocation " +"should be replaced by a combination of :c:func:`PySlice_Unpack` and :c:func:" +"`PySlice_AdjustIndices` where ::" msgstr "" #: ../../c-api/slice.rst:65 @@ -96,17 +98,17 @@ msgstr "" #: ../../c-api/slice.rst:76 msgid "" "If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` " -"and ``0x03060000`` (not including) or ``0x03060100`` or higher " -":c:func:`!PySlice_GetIndicesEx` is implemented as a macro using " -":c:func:`!PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`. Arguments " -"*start*, *stop* and *step* are evaluated more than once." +"and ``0x03060000`` (not including) or ``0x03060100`` or higher :c:func:`!" +"PySlice_GetIndicesEx` is implemented as a macro using :c:func:`!" +"PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`. Arguments *start*, " +"*stop* and *step* are evaluated more than once." msgstr "" #: ../../c-api/slice.rst:83 msgid "" "If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or " -"between ``0x03060000`` and ``0x03060100`` (not including) " -":c:func:`!PySlice_GetIndicesEx` is a deprecated function." +"between ``0x03060000`` and ``0x03060100`` (not including) :c:func:`!" +"PySlice_GetIndicesEx` is a deprecated function." msgstr "" #: ../../c-api/slice.rst:91 @@ -114,8 +116,8 @@ msgid "" "Extract the start, stop and step data members from a slice object as C " "integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to " "``PY_SSIZE_T_MAX``, silently boost the start and stop values less than " -"``PY_SSIZE_T_MIN`` to ``PY_SSIZE_T_MIN``, and silently boost the step values" -" less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``." +"``PY_SSIZE_T_MIN`` to ``PY_SSIZE_T_MIN``, and silently boost the step values " +"less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``." msgstr "" #: ../../c-api/slice.rst:97 @@ -141,7 +143,7 @@ msgstr "" #: ../../c-api/slice.rst:120 msgid "" -"The Python ``Ellipsis`` object. This object has no methods. It needs to be" -" treated just like any other object with respect to reference counts. Like " -":c:data:`Py_None` it is a singleton object." +"The Python ``Ellipsis`` object. This object has no methods. It needs to be " +"treated just like any other object with respect to reference counts. Like :" +"c:data:`Py_None` it is a singleton object." msgstr "" diff --git a/c-api/stable.po b/c-api/stable.po index 3e94f76dc..bd5a9e72b 100644 --- a/c-api/stable.po +++ b/c-api/stable.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,8 +30,8 @@ msgstr "Interface binária de aplicativo estável" #: ../../c-api/stable.rst:9 msgid "" "Traditionally, the C API of Python will change with every release. Most " -"changes will be source-compatible, typically by only adding API, rather than" -" changing existing API or removing API (although some interfaces do get " +"changes will be source-compatible, typically by only adding API, rather than " +"changing existing API or removing API (although some interfaces do get " "removed after being deprecated first)." msgstr "" "Tradicionalmente, a API C do Python mudará com cada versão. A maioria das " @@ -39,8 +41,8 @@ msgstr "" #: ../../c-api/stable.rst:14 msgid "" -"Unfortunately, the API compatibility does not extend to binary compatibility" -" (the ABI). The reason is primarily the evolution of struct definitions, " +"Unfortunately, the API compatibility does not extend to binary compatibility " +"(the ABI). The reason is primarily the evolution of struct definitions, " "where addition of a new field, or changing the type of a field, might not " "break the API, but can break the ABI. As a consequence, extension modules " "need to be recompiled for every Python release (although an exception is " @@ -51,8 +53,8 @@ msgstr "" "Infelizmente, a compatibilidade da API não se estende à compatibilidade " "binária (o ABI). O motivo é principalmente a evolução das definições de " "estrutura, onde a adição de um novo campo, ou a alteração do tipo de um " -"campo, pode não quebrar a API, mas pode quebrar o ABI. Como consequência, os" -" módulos de extensão precisam ser recompilados para cada versão do Python " +"campo, pode não quebrar a API, mas pode quebrar o ABI. Como consequência, os " +"módulos de extensão precisam ser recompilados para cada versão do Python " "(embora exista uma exceção no Unix quando nenhuma das interfaces afetadas é " "usada). Além disso, no Windows, os módulos de extensão se conectam com um " "pythonXY.dll específico e precisam ser recompilados para vincular com um " @@ -61,13 +63,13 @@ msgstr "" #: ../../c-api/stable.rst:23 msgid "" "Since Python 3.2, a subset of the API has been declared to guarantee a " -"stable ABI. Extension modules wishing to use this API (called \"limited " -"API\") need to define ``Py_LIMITED_API``. A number of interpreter details " -"then become hidden from the extension module; in return, a module is built " -"that works on any 3.x version (x>=2) without recompilation." +"stable ABI. Extension modules wishing to use this API (called \"limited API" +"\") need to define ``Py_LIMITED_API``. A number of interpreter details then " +"become hidden from the extension module; in return, a module is built that " +"works on any 3.x version (x>=2) without recompilation." msgstr "" -"Desde o Python 3.2, um subconjunto da API foi declarado para garantir um ABI" -" estável. Os módulos de extensão que desejam usar esta API (chamada \"API " +"Desde o Python 3.2, um subconjunto da API foi declarado para garantir um ABI " +"estável. Os módulos de extensão que desejam usar esta API (chamada \"API " "limitada\") precisam definir ``Py_LIMITED_API``. Uma série de detalhes do " "intérprete ficam escondidos do módulo de extensão; em troca, um módulo é " "construído que funciona em qualquer versão 3.x (x> = 2) sem recompilação." @@ -76,27 +78,27 @@ msgstr "" msgid "" "In some cases, the stable ABI needs to be extended with new functions. " "Extension modules wishing to use these new APIs need to set " -"``Py_LIMITED_API`` to the ``PY_VERSION_HEX`` value (see " -":ref:`apiabiversion`) of the minimum Python version they want to support " -"(e.g. ``0x03030000`` for Python 3.3). Such modules will work on all " -"subsequent Python releases, but fail to load (because of missing symbols) on" -" the older releases." +"``Py_LIMITED_API`` to the ``PY_VERSION_HEX`` value (see :ref:" +"`apiabiversion`) of the minimum Python version they want to support (e.g. " +"``0x03030000`` for Python 3.3). Such modules will work on all subsequent " +"Python releases, but fail to load (because of missing symbols) on the older " +"releases." msgstr "" "Em alguns casos, a ABI estável deve ser estendida com novas funções. Os " "módulos de extensão que desejam usar essas novas APIs precisam definir " -"``Py_LIMITED_API`` para o ``PY_VERSION_HEX`` valor (veja: " -"ref:`apiabiversion`) da versão mínima do Python que eles querem suportar " -"(por exemplo,``0x03030000`` para Python 3.3). Esses módulos funcionarão em " -"todas as versões subsequentes do Python, mas não carregarão (por causa dos " +"``Py_LIMITED_API`` para o ``PY_VERSION_HEX`` valor (veja: ref:" +"`apiabiversion`) da versão mínima do Python que eles querem suportar (por " +"exemplo,``0x03030000`` para Python 3.3). Esses módulos funcionarão em todas " +"as versões subsequentes do Python, mas não carregarão (por causa dos " "símbolos que faltam) nos lançamentos mais antigos." #: ../../c-api/stable.rst:36 msgid "" "As of Python 3.2, the set of functions available to the limited API is " -"documented in :pep:`384`. In the C API documentation, API elements that are" -" not part of the limited API are marked as \"Not part of the limited API.\"" +"documented in :pep:`384`. In the C API documentation, API elements that are " +"not part of the limited API are marked as \"Not part of the limited API.\"" msgstr "" "A partir do Python 3.2, o conjunto de funções disponíveis para a API " "limitada está documentado em :pep:`384`. Na documentação da API C, os " -"elementos da API que não fazem parte da API limitada são marcados como \"Não" -" faz parte da API limitada\"." +"elementos da API que não fazem parte da API limitada são marcados como \"Não " +"faz parte da API limitada\"." diff --git a/c-api/structures.po b/c-api/structures.po index 32ce40786..d57591b72 100644 --- a/c-api/structures.po +++ b/c-api/structures.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Julio Gadioli Soares , 2019 # Juliana Karoline , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Juliana Karoline , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,13 +48,13 @@ msgstr "" #: ../../c-api/structures.rst:21 msgid "" -"All object types are extensions of this type. This is a type which contains" -" the information Python needs to treat a pointer to an object as an object." -" In a normal \"release\" build, it contains only the object's reference " -"count and a pointer to the corresponding type object. Nothing is actually " -"declared to be a :c:type:`PyObject`, but every pointer to a Python object " -"can be cast to a :c:type:`PyObject*`. Access to the members must be done by" -" using the macros :c:macro:`Py_REFCNT` and :c:macro:`Py_TYPE`." +"All object types are extensions of this type. This is a type which contains " +"the information Python needs to treat a pointer to an object as an object. " +"In a normal \"release\" build, it contains only the object's reference count " +"and a pointer to the corresponding type object. Nothing is actually declared " +"to be a :c:type:`PyObject`, but every pointer to a Python object can be cast " +"to a :c:type:`PyObject*`. Access to the members must be done by using the " +"macros :c:macro:`Py_REFCNT` and :c:macro:`Py_TYPE`." msgstr "" #: ../../c-api/structures.rst:33 @@ -76,8 +78,8 @@ msgstr "" #: ../../c-api/structures.rst:52 msgid "" -"This is a macro used when declaring new types which represent objects with a" -" length that varies from instance to instance. The PyObject_VAR_HEAD macro " +"This is a macro used when declaring new types which represent objects with a " +"length that varies from instance to instance. The PyObject_VAR_HEAD macro " "expands to::" msgstr "" @@ -105,15 +107,15 @@ msgstr "" #: ../../c-api/structures.rst:88 msgid "" -"This is a macro which expands to initialization values for a new " -":c:type:`PyObject` type. This macro expands to::" +"This is a macro which expands to initialization values for a new :c:type:" +"`PyObject` type. This macro expands to::" msgstr "" #: ../../c-api/structures.rst:97 msgid "" -"This is a macro which expands to initialization values for a new " -":c:type:`PyVarObject` type, including the :attr:`ob_size` field. This macro " -"expands to::" +"This is a macro which expands to initialization values for a new :c:type:" +"`PyVarObject` type, including the :attr:`ob_size` field. This macro expands " +"to::" msgstr "" #: ../../c-api/structures.rst:107 @@ -128,20 +130,20 @@ msgstr "" #: ../../c-api/structures.rst:117 msgid "" -"Type of the functions used to implement Python callables in C with signature" -" :const:`METH_VARARGS | METH_KEYWORDS`." +"Type of the functions used to implement Python callables in C with " +"signature :const:`METH_VARARGS | METH_KEYWORDS`." msgstr "" #: ../../c-api/structures.rst:123 msgid "" -"Type of the functions used to implement Python callables in C with signature" -" :const:`METH_FASTCALL`." +"Type of the functions used to implement Python callables in C with " +"signature :const:`METH_FASTCALL`." msgstr "" #: ../../c-api/structures.rst:129 msgid "" -"Type of the functions used to implement Python callables in C with signature" -" :const:`METH_FASTCALL | METH_KEYWORDS`." +"Type of the functions used to implement Python callables in C with " +"signature :const:`METH_FASTCALL | METH_KEYWORDS`." msgstr "" #: ../../c-api/structures.rst:135 @@ -167,7 +169,7 @@ msgstr "Significado" #: ../../c-api/structures.rst:141 msgid ":attr:`ml_name`" -msgstr "" +msgstr ":attr:`ml_name`" #: ../../c-api/structures.rst:141 ../../c-api/structures.rst:149 #: ../../c-api/structures.rst:281 ../../c-api/structures.rst:294 @@ -182,7 +184,7 @@ msgstr "" #: ../../c-api/structures.rst:143 msgid ":attr:`ml_meth`" -msgstr "" +msgstr ":attr:`ml_meth`" #: ../../c-api/structures.rst:143 msgid "PyCFunction" @@ -194,7 +196,7 @@ msgstr "" #: ../../c-api/structures.rst:146 msgid ":attr:`ml_flags`" -msgstr "" +msgstr ":attr:`ml_flags`" #: ../../c-api/structures.rst:146 ../../c-api/structures.rst:283 #: ../../c-api/structures.rst:290 ../../c-api/structures.rst:306 @@ -207,7 +209,7 @@ msgstr "" #: ../../c-api/structures.rst:149 msgid ":attr:`ml_doc`" -msgstr "" +msgstr ":attr:`ml_doc`" #: ../../c-api/structures.rst:149 ../../c-api/structures.rst:294 msgid "points to the contents of the docstring" @@ -232,20 +234,19 @@ msgstr "" #: ../../c-api/structures.rst:164 msgid "" -"There are four basic calling conventions for positional arguments and two of" -" them can be combined with :const:`METH_KEYWORDS` to support also keyword " +"There are four basic calling conventions for positional arguments and two of " +"them can be combined with :const:`METH_KEYWORDS` to support also keyword " "arguments. So there are a total of 6 calling conventions:" msgstr "" #: ../../c-api/structures.rst:170 msgid "" -"This is the typical calling convention, where the methods have the type " -":c:type:`PyCFunction`. The function expects two :c:type:`PyObject\\*` " -"values. The first one is the *self* object for methods; for module " -"functions, it is the module object. The second parameter (often called " -"*args*) is a tuple object representing all arguments. This parameter is " -"typically processed using :c:func:`PyArg_ParseTuple` or " -":c:func:`PyArg_UnpackTuple`." +"This is the typical calling convention, where the methods have the type :c:" +"type:`PyCFunction`. The function expects two :c:type:`PyObject\\*` values. " +"The first one is the *self* object for methods; for module functions, it is " +"the module object. The second parameter (often called *args*) is a tuple " +"object representing all arguments. This parameter is typically processed " +"using :c:func:`PyArg_ParseTuple` or :c:func:`PyArg_UnpackTuple`." msgstr "" #: ../../c-api/structures.rst:180 @@ -260,10 +261,10 @@ msgstr "" #: ../../c-api/structures.rst:189 msgid "" "Fast calling convention supporting only positional arguments. The methods " -"have the type :c:type:`_PyCFunctionFast`. The first parameter is *self*, the" -" second parameter is a C array of :c:type:`PyObject\\*` values indicating " -"the arguments and the third parameter is the number of arguments (the length" -" of the array)." +"have the type :c:type:`_PyCFunctionFast`. The first parameter is *self*, the " +"second parameter is a C array of :c:type:`PyObject\\*` values indicating the " +"arguments and the third parameter is the number of arguments (the length of " +"the array)." msgstr "" #: ../../c-api/structures.rst:195 ../../c-api/structures.rst:210 @@ -292,8 +293,8 @@ msgstr "" #: ../../c-api/structures.rst:226 msgid "" -"Methods with a single object argument can be listed with the :const:`METH_O`" -" flag, instead of invoking :c:func:`PyArg_ParseTuple` with a ``\"O\"`` " +"Methods with a single object argument can be listed with the :const:`METH_O` " +"flag, instead of invoking :c:func:`PyArg_ParseTuple` with a ``\"O\"`` " "argument. They have the type :c:type:`PyCFunction`, with the *self* " "parameter, and a :c:type:`PyObject\\*` parameter representing the single " "argument." @@ -309,9 +310,9 @@ msgstr "" #: ../../c-api/structures.rst:242 msgid "" -"The method will be passed the type object as the first parameter rather than" -" an instance of the type. This is used to create *class methods*, similar " -"to what is created when using the :func:`classmethod` built-in function." +"The method will be passed the type object as the first parameter rather than " +"an instance of the type. This is used to create *class methods*, similar to " +"what is created when using the :func:`classmethod` built-in function." msgstr "" #: ../../c-api/structures.rst:252 @@ -332,12 +333,12 @@ msgid "" "The method will be loaded in place of existing definitions. Without " "*METH_COEXIST*, the default is to skip repeated definitions. Since slot " "wrappers are loaded before the method table, the existence of a " -"*sq_contains* slot, for example, would generate a wrapped method named " -":meth:`__contains__` and preclude the loading of a corresponding PyCFunction" -" with the same name. With the flag defined, the PyCFunction will be loaded " -"in place of the wrapper object and will co-exist with the slot. This is " -"helpful because calls to PyCFunctions are optimized more than wrapper object" -" calls." +"*sq_contains* slot, for example, would generate a wrapped method named :meth:" +"`__contains__` and preclude the loading of a corresponding PyCFunction with " +"the same name. With the flag defined, the PyCFunction will be loaded in " +"place of the wrapper object and will co-exist with the slot. This is " +"helpful because calls to PyCFunctions are optimized more than wrapper object " +"calls." msgstr "" #: ../../c-api/structures.rst:275 @@ -348,7 +349,7 @@ msgstr "" #: ../../c-api/structures.rst:281 msgid ":attr:`name`" -msgstr "" +msgstr ":attr:`name`" #: ../../c-api/structures.rst:281 msgid "name of the member" @@ -356,7 +357,7 @@ msgstr "" #: ../../c-api/structures.rst:283 msgid ":attr:`!type`" -msgstr "" +msgstr ":attr:`!type`" #: ../../c-api/structures.rst:283 msgid "the type of the member in the C struct" @@ -364,7 +365,7 @@ msgstr "" #: ../../c-api/structures.rst:286 msgid ":attr:`offset`" -msgstr "" +msgstr ":attr:`offset`" #: ../../c-api/structures.rst:286 ../../c-api/structures.rst:322 msgid "Py_ssize_t" @@ -377,7 +378,7 @@ msgstr "" #: ../../c-api/structures.rst:290 msgid ":attr:`flags`" -msgstr "" +msgstr ":attr:`flags`" #: ../../c-api/structures.rst:290 msgid "flag bits indicating if the field should be read-only or writable" @@ -385,7 +386,7 @@ msgstr "" #: ../../c-api/structures.rst:294 msgid ":attr:`doc`" -msgstr "" +msgstr ":attr:`doc`" #: ../../c-api/structures.rst:298 msgid "" @@ -525,27 +526,27 @@ msgstr "" #: ../../c-api/structures.rst:325 msgid "" -":c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` differ in that " -":c:macro:`T_OBJECT` returns ``None`` if the member is ``NULL`` and " -":c:macro:`T_OBJECT_EX` raises an :exc:`AttributeError`. Try to use " -":c:macro:`T_OBJECT_EX` over :c:macro:`T_OBJECT` because " -":c:macro:`T_OBJECT_EX` handles use of the :keyword:`del` statement on that " -"attribute more correctly than :c:macro:`T_OBJECT`." +":c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` differ in that :c:macro:" +"`T_OBJECT` returns ``None`` if the member is ``NULL`` and :c:macro:" +"`T_OBJECT_EX` raises an :exc:`AttributeError`. Try to use :c:macro:" +"`T_OBJECT_EX` over :c:macro:`T_OBJECT` because :c:macro:`T_OBJECT_EX` " +"handles use of the :keyword:`del` statement on that attribute more correctly " +"than :c:macro:`T_OBJECT`." msgstr "" #: ../../c-api/structures.rst:332 msgid "" ":attr:`flags` can be ``0`` for write and read access or :c:macro:`READONLY` " -"for read-only access. Using :c:macro:`T_STRING` for :attr:`type` implies " -":c:macro:`READONLY`. :c:macro:`T_STRING` data is interpreted as UTF-8. Only" -" :c:macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` members can be deleted. " -"(They are set to ``NULL``)." +"for read-only access. Using :c:macro:`T_STRING` for :attr:`type` implies :c:" +"macro:`READONLY`. :c:macro:`T_STRING` data is interpreted as UTF-8. Only :c:" +"macro:`T_OBJECT` and :c:macro:`T_OBJECT_EX` members can be deleted. (They " +"are set to ``NULL``)." msgstr "" #: ../../c-api/structures.rst:341 msgid "" -"Structure to define property-like access for a type. See also description of" -" the :c:member:`PyTypeObject.tp_getset` slot." +"Structure to define property-like access for a type. See also description of " +"the :c:member:`PyTypeObject.tp_getset` slot." msgstr "" #: ../../c-api/structures.rst:347 @@ -578,8 +579,8 @@ msgstr "" #: ../../c-api/structures.rst:351 msgid "" -"optional C function to set or delete the attribute, if omitted the attribute" -" is readonly" +"optional C function to set or delete the attribute, if omitted the attribute " +"is readonly" msgstr "" #: ../../c-api/structures.rst:355 @@ -611,8 +612,8 @@ msgstr "" #: ../../c-api/structures.rst:367 msgid "" -"It should return a new reference on success or ``NULL`` with a set exception" -" on failure." +"It should return a new reference on success or ``NULL`` with a set exception " +"on failure." msgstr "" #: ../../c-api/structures.rst:370 diff --git a/c-api/sys.po b/c-api/sys.po index c4122c9b4..4411250af 100644 --- a/c-api/sys.po +++ b/c-api/sys.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,22 +28,22 @@ msgstr "Utilitários do Sistema Operacional" #: ../../c-api/sys.rst:10 msgid "" -"Return the file system representation for *path*. If the object is a " -":class:`str` or :class:`bytes` object, then its reference count is " -"incremented. If the object implements the :class:`os.PathLike` interface, " -"then :meth:`~os.PathLike.__fspath__` is returned as long as it is a " -":class:`str` or :class:`bytes` object. Otherwise :exc:`TypeError` is raised " -"and ``NULL`` is returned." +"Return the file system representation for *path*. If the object is a :class:" +"`str` or :class:`bytes` object, then its reference count is incremented. If " +"the object implements the :class:`os.PathLike` interface, then :meth:`~os." +"PathLike.__fspath__` is returned as long as it is a :class:`str` or :class:" +"`bytes` object. Otherwise :exc:`TypeError` is raised and ``NULL`` is " +"returned." msgstr "" #: ../../c-api/sys.rst:22 msgid "" "Return true (nonzero) if the standard I/O file *fp* with name *filename* is " "deemed interactive. This is the case for files for which " -"``isatty(fileno(fp))`` is true. If the global flag " -":c:data:`Py_InteractiveFlag` is true, this function also returns true if the" -" *filename* pointer is ``NULL`` or if the name is equal to one of the " -"strings ``''`` or ``'???'``." +"``isatty(fileno(fp))`` is true. If the global flag :c:data:" +"`Py_InteractiveFlag` is true, this function also returns true if the " +"*filename* pointer is ``NULL`` or if the name is equal to one of the strings " +"``''`` or ``'???'``." msgstr "" #: ../../c-api/sys.rst:31 @@ -55,8 +56,8 @@ msgstr "" #: ../../c-api/sys.rst:41 msgid "" -"Function to update some internal state after a process fork. This should be" -" called from the parent process after calling :c:func:`fork` or any similar " +"Function to update some internal state after a process fork. This should be " +"called from the parent process after calling :c:func:`fork` or any similar " "function that clones the current process, regardless of whether process " "cloning was successful. Only available on systems where :c:func:`fork` is " "defined." @@ -66,24 +67,24 @@ msgstr "" msgid "" "Function to update internal interpreter state after a process fork. This " "must be called from the child process after calling :c:func:`fork`, or any " -"similar function that clones the current process, if there is any chance the" -" process will call back into the Python interpreter. Only available on " +"similar function that clones the current process, if there is any chance the " +"process will call back into the Python interpreter. Only available on " "systems where :c:func:`fork` is defined." msgstr "" #: ../../c-api/sys.rst:61 msgid "" -":func:`os.register_at_fork` allows registering custom Python functions to be" -" called by :c:func:`PyOS_BeforeFork()`, :c:func:`PyOS_AfterFork_Parent` and" -" :c:func:`PyOS_AfterFork_Child`." +":func:`os.register_at_fork` allows registering custom Python functions to be " +"called by :c:func:`PyOS_BeforeFork()`, :c:func:`PyOS_AfterFork_Parent` and :" +"c:func:`PyOS_AfterFork_Child`." msgstr "" #: ../../c-api/sys.rst:68 msgid "" "Function to update some internal state after a process fork; this should be " "called in the new process if the Python interpreter will continue to be " -"used. If a new executable is loaded into the new process, this function does" -" not need to be called." +"used. If a new executable is loaded into the new process, this function does " +"not need to be called." msgstr "" "Função para atualizar algum estado interno após um processo de garfo; Isso " "deve ser chamado no novo processo se o intérprete do Python continuar a ser " @@ -98,8 +99,8 @@ msgstr "" msgid "" "Return true when the interpreter runs out of stack space. This is a " "reliable check, but is only available when :const:`USE_STACKCHECK` is " -"defined (currently on Windows using the Microsoft Visual C++ compiler). " -":const:`USE_STACKCHECK` will be defined automatically; you should never " +"defined (currently on Windows using the Microsoft Visual C++ compiler). :" +"const:`USE_STACKCHECK` will be defined automatically; you should never " "change the definition in your own code." msgstr "" "Retornar verdadeiro quando o intérprete ficar sem espaço de pilha. Esta é " @@ -112,32 +113,31 @@ msgstr "" msgid "" "Return the current signal handler for signal *i*. This is a thin wrapper " "around either :c:func:`sigaction` or :c:func:`signal`. Do not call those " -"functions directly! :c:type:`PyOS_sighandler_t` is a typedef alias for " -":c:type:`void (\\*)(int)`." +"functions directly! :c:type:`PyOS_sighandler_t` is a typedef alias for :c:" +"type:`void (\\*)(int)`." msgstr "" -"Retorna o manipulador de sinal atual para o sinal * i *. Este é um invólucro" -" fino em torno de: c: func: `sigaction` ou: c: func:` signal`. Não ligue " -"para essas funções diretamente! : C: digite: `PyOS_sighandler_t` é um alias " -"de typedef para: c: digite:` void (\\ *) (int) `." +"Retorna o manipulador de sinal atual para o sinal * i *. Este é um invólucro " +"fino em torno de: c: func: `sigaction` ou: c: func:` signal`. Não ligue para " +"essas funções diretamente! : C: digite: `PyOS_sighandler_t` é um alias de " +"typedef para: c: digite:` void (\\ *) (int) `." #: ../../c-api/sys.rst:96 msgid "" "Set the signal handler for signal *i* to be *h*; return the old signal " -"handler. This is a thin wrapper around either :c:func:`sigaction` or " -":c:func:`signal`. Do not call those functions directly! " -":c:type:`PyOS_sighandler_t` is a typedef alias for :c:type:`void " -"(\\*)(int)`." +"handler. This is a thin wrapper around either :c:func:`sigaction` or :c:func:" +"`signal`. Do not call those functions directly! :c:type:" +"`PyOS_sighandler_t` is a typedef alias for :c:type:`void (\\*)(int)`." msgstr "" "Defina o manipulador de sinal para que o sinal * i * seja * h *; Devolva o " "antigo manipulador de sinal. Este é um invólucro fino em torno de: c: func: " -"`sigaction` ou: c: func:` signal`. Não ligue para essas funções diretamente!" -" : C: digite: `PyOS_sighandler_t` é um alias de typedef para: c: digite:` " -"void (\\ *) (int) `." +"`sigaction` ou: c: func:` signal`. Não ligue para essas funções " +"diretamente! : C: digite: `PyOS_sighandler_t` é um alias de typedef para: c: " +"digite:` void (\\ *) (int) `." #: ../../c-api/sys.rst:103 msgid "" -"Decode a byte string from the locale encoding with the :ref:`surrogateescape" -" error handler `: undecodable bytes are decoded as " +"Decode a byte string from the locale encoding with the :ref:`surrogateescape " +"error handler `: undecodable bytes are decoded as " "characters in range U+DC80..U+DCFF. If a byte sequence can be decoded as a " "surrogate character, escape the bytes using the surrogateescape error " "handler instead of decoding them." @@ -158,8 +158,8 @@ msgstr "" #: ../../c-api/sys.rst:113 ../../c-api/sys.rst:154 msgid "" "``ASCII`` if the ``LC_CTYPE`` locale is ``\"C\"``, ``nl_langinfo(CODESET)`` " -"returns the ``ASCII`` encoding (or an alias), and :c:func:`mbstowcs` and " -":c:func:`wcstombs` functions uses the ``ISO-8859-1`` encoding." +"returns the ``ASCII`` encoding (or an alias), and :c:func:`mbstowcs` and :c:" +"func:`wcstombs` functions uses the ``ISO-8859-1`` encoding." msgstr "" #: ../../c-api/sys.rst:117 ../../c-api/sys.rst:158 @@ -168,9 +168,9 @@ msgstr "" #: ../../c-api/sys.rst:119 msgid "" -"Return a pointer to a newly allocated wide character string, use " -":c:func:`PyMem_RawFree` to free the memory. If size is not ``NULL``, write " -"the number of wide characters excluding the null character into ``*size``" +"Return a pointer to a newly allocated wide character string, use :c:func:" +"`PyMem_RawFree` to free the memory. If size is not ``NULL``, write the " +"number of wide characters excluding the null character into ``*size``" msgstr "" #: ../../c-api/sys.rst:123 @@ -193,8 +193,8 @@ msgstr "" #: ../../c-api/sys.rst:135 msgid "" -"The :c:func:`PyUnicode_DecodeFSDefaultAndSize` and " -":c:func:`PyUnicode_DecodeLocaleAndSize` functions." +"The :c:func:`PyUnicode_DecodeFSDefaultAndSize` and :c:func:" +"`PyUnicode_DecodeLocaleAndSize` functions." msgstr "" #: ../../c-api/sys.rst:140 ../../c-api/sys.rst:172 @@ -203,9 +203,9 @@ msgstr "" #: ../../c-api/sys.rst:146 msgid "" -"Encode a wide character string to the locale encoding with the " -":ref:`surrogateescape error handler `: surrogate characters" -" in the range U+DC80..U+DCFF are converted to bytes 0x80..0xFF." +"Encode a wide character string to the locale encoding with the :ref:" +"`surrogateescape error handler `: surrogate characters in " +"the range U+DC80..U+DCFF are converted to bytes 0x80..0xFF." msgstr "" #: ../../c-api/sys.rst:160 @@ -233,8 +233,8 @@ msgstr "" #: ../../c-api/sys.rst:177 msgid "" -"The :c:func:`PyUnicode_EncodeFSDefault` and :c:func:`PyUnicode_EncodeLocale`" -" functions." +"The :c:func:`PyUnicode_EncodeFSDefault` and :c:func:`PyUnicode_EncodeLocale` " +"functions." msgstr "" #: ../../c-api/sys.rst:182 @@ -249,8 +249,8 @@ msgstr "" msgid "" "These are utility functions that make functionality from the :mod:`sys` " "module accessible to C code. They all work with the current interpreter " -"thread's :mod:`sys` module's dict, which is contained in the internal thread" -" state structure." +"thread's :mod:`sys` module's dict, which is contained in the internal thread " +"state structure." msgstr "" #: ../../c-api/sys.rst:197 @@ -262,8 +262,8 @@ msgstr "" #: ../../c-api/sys.rst:202 msgid "" "Set *name* in the :mod:`sys` module to *v* unless *v* is ``NULL``, in which " -"case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``" -" on error." +"case *name* is deleted from the sys module. Returns ``0`` on success, ``-1`` " +"on error." msgstr "" #: ../../c-api/sys.rst:208 @@ -274,8 +274,8 @@ msgstr "" #: ../../c-api/sys.rst:213 msgid "" -"Append *s* to :data:`sys.warnoptions`. This function must be called prior to" -" :c:func:`Py_Initialize` in order to affect the warnings filter list." +"Append *s* to :data:`sys.warnoptions`. This function must be called prior " +"to :c:func:`Py_Initialize` in order to affect the warnings filter list." msgstr "" #: ../../c-api/sys.rst:218 @@ -285,17 +285,17 @@ msgstr "" #: ../../c-api/sys.rst:220 msgid "" "Note: this function is not currently usable from outside the CPython " -"implementation, as it must be called prior to the implicit import of " -":mod:`warnings` in :c:func:`Py_Initialize` to be effective, but can't be " -"called until enough of the runtime has been initialized to permit the " -"creation of Unicode objects." +"implementation, as it must be called prior to the implicit import of :mod:" +"`warnings` in :c:func:`Py_Initialize` to be effective, but can't be called " +"until enough of the runtime has been initialized to permit the creation of " +"Unicode objects." msgstr "" #: ../../c-api/sys.rst:228 msgid "" "Set :data:`sys.path` to a list object of paths found in *path* which should " -"be a list of paths separated with the platform's search path delimiter " -"(``:`` on Unix, ``;`` on Windows)." +"be a list of paths separated with the platform's search path delimiter (``:" +"`` on Unix, ``;`` on Windows)." msgstr "" #: ../../c-api/sys.rst:234 @@ -329,15 +329,15 @@ msgstr "" #: ../../c-api/sys.rst:255 msgid "" -"Function similar to PySys_WriteStdout() but format the message using " -":c:func:`PyUnicode_FromFormatV` and don't truncate the message to an " -"arbitrary length." +"Function similar to PySys_WriteStdout() but format the message using :c:func:" +"`PyUnicode_FromFormatV` and don't truncate the message to an arbitrary " +"length." msgstr "" #: ../../c-api/sys.rst:263 msgid "" -"As :c:func:`PySys_FormatStdout`, but write to :data:`sys.stderr` or *stderr*" -" instead." +"As :c:func:`PySys_FormatStdout`, but write to :data:`sys.stderr` or *stderr* " +"instead." msgstr "" #: ../../c-api/sys.rst:270 @@ -349,9 +349,8 @@ msgstr "" #: ../../c-api/sys.rst:278 msgid "" -"Return the current dictionary of :option:`-X` options, similarly to " -":data:`sys._xoptions`. On error, ``NULL`` is returned and an exception is " -"set." +"Return the current dictionary of :option:`-X` options, similarly to :data:" +"`sys._xoptions`. On error, ``NULL`` is returned and an exception is set." msgstr "" #: ../../c-api/sys.rst:288 @@ -361,18 +360,18 @@ msgstr "" #: ../../c-api/sys.rst:295 msgid "" "Print a fatal error message and kill the process. No cleanup is performed. " -"This function should only be invoked when a condition is detected that would" -" make it dangerous to continue using the Python interpreter; e.g., when the " +"This function should only be invoked when a condition is detected that would " +"make it dangerous to continue using the Python interpreter; e.g., when the " "object administration appears to be corrupted. On Unix, the standard C " -"library function :c:func:`abort` is called which will attempt to produce a " -":file:`core` file." +"library function :c:func:`abort` is called which will attempt to produce a :" +"file:`core` file." msgstr "" #: ../../c-api/sys.rst:309 msgid "" -"Exit the current process. This calls :c:func:`Py_FinalizeEx` and then calls" -" the standard C library function ``exit(status)``. If " -":c:func:`Py_FinalizeEx` indicates an error, the exit status is set to 120." +"Exit the current process. This calls :c:func:`Py_FinalizeEx` and then calls " +"the standard C library function ``exit(status)``. If :c:func:" +"`Py_FinalizeEx` indicates an error, the exit status is set to 120." msgstr "" #: ../../c-api/sys.rst:313 @@ -387,6 +386,6 @@ msgid "" "registration is successful, :c:func:`Py_AtExit` returns ``0``; on failure, " "it returns ``-1``. The cleanup function registered last is called first. " "Each cleanup function will be called at most once. Since Python's internal " -"finalization will have completed before the cleanup function, no Python APIs" -" should be called by *func*." +"finalization will have completed before the cleanup function, no Python APIs " +"should be called by *func*." msgstr "" diff --git a/c-api/tuple.po b/c-api/tuple.po index 09745fa77..aae0d396d 100644 --- a/c-api/tuple.po +++ b/c-api/tuple.po @@ -1,22 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Juliana Karoline , 2019 -# +# Alexandre B A Villares, 2020 +# Marco Rougeth , 2020 +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:40+0000\n" -"Last-Translator: Juliana Karoline , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,24 +34,31 @@ msgstr "Objeto Tuple" #: ../../c-api/tuple.rst:13 msgid "This subtype of :c:type:`PyObject` represents a Python tuple object." msgstr "" +"Este subtipo de :c:type:`PyObject` representa um objeto tupla em Python." #: ../../c-api/tuple.rst:18 msgid "" -"This instance of :c:type:`PyTypeObject` represents the Python tuple type; it" -" is the same object as :class:`tuple` in the Python layer." +"This instance of :c:type:`PyTypeObject` represents the Python tuple type; it " +"is the same object as :class:`tuple` in the Python layer." msgstr "" +"Esta instância de :c:type:`PyTypeObject`  representa o tipo tupla de Python; " +"é o mesmo objeto que :class:`tuple` na camada Python." #: ../../c-api/tuple.rst:24 msgid "" "Return true if *p* is a tuple object or an instance of a subtype of the " "tuple type." msgstr "" +"Devolve verdadeiro se *p* é um objeto tupla ou uma instância de um subtipo " +"do tipo tupla." #: ../../c-api/tuple.rst:30 msgid "" "Return true if *p* is a tuple object, but not an instance of a subtype of " "the tuple type." msgstr "" +"Devolve verdadeiro se *p* é um objeto tupla, mas não uma instância de um " +"subtipo do tipo tupla." #: ../../c-api/tuple.rst:36 msgid "Return a new tuple object of size *len*, or ``NULL`` on failure." @@ -84,8 +95,8 @@ msgstr "" #: ../../c-api/tuple.rst:70 msgid "" -"Return the slice of the tuple pointed to by *p* between *low* and *high*, or" -" ``NULL`` on failure. This is the equivalent of the Python expression " +"Return the slice of the tuple pointed to by *p* between *low* and *high*, or " +"``NULL`` on failure. This is the equivalent of the Python expression " "``p[low:high]``. Indexing from the end of the list is not supported." msgstr "" @@ -110,30 +121,29 @@ msgstr "" #: ../../c-api/tuple.rst:94 msgid "" -"This macro \"steals\" a reference to *o*, and, unlike " -":c:func:`PyTuple_SetItem`, does *not* discard a reference to any item that " -"is being replaced; any reference in the tuple at position *pos* will be " -"leaked." +"This macro \"steals\" a reference to *o*, and, unlike :c:func:" +"`PyTuple_SetItem`, does *not* discard a reference to any item that is being " +"replaced; any reference in the tuple at position *pos* will be leaked." msgstr "" #: ../../c-api/tuple.rst:102 msgid "" "Can be used to resize a tuple. *newsize* will be the new length of the " "tuple. Because tuples are *supposed* to be immutable, this should only be " -"used if there is only one reference to the object. Do *not* use this if the" -" tuple may already be known to some other part of the code. The tuple will " -"always grow or shrink at the end. Think of this as destroying the old tuple" -" and creating a new one, only more efficiently. Returns ``0`` on success. " +"used if there is only one reference to the object. Do *not* use this if the " +"tuple may already be known to some other part of the code. The tuple will " +"always grow or shrink at the end. Think of this as destroying the old tuple " +"and creating a new one, only more efficiently. Returns ``0`` on success. " "Client code should never assume that the resulting value of ``*p`` will be " -"the same as before calling this function. If the object referenced by ``*p``" -" is replaced, the original ``*p`` is destroyed. On failure, returns ``-1`` " -"and sets ``*p`` to ``NULL``, and raises :exc:`MemoryError` or " -":exc:`SystemError`." +"the same as before calling this function. If the object referenced by ``*p`` " +"is replaced, the original ``*p`` is destroyed. On failure, returns ``-1`` " +"and sets ``*p`` to ``NULL``, and raises :exc:`MemoryError` or :exc:" +"`SystemError`." msgstr "" #: ../../c-api/tuple.rst:116 msgid "Clear the free list. Return the total number of freed items." -msgstr "" +msgstr "Limpe a lista livre. Retorna o número total de itens liberados." #: ../../c-api/tuple.rst:120 msgid "Struct Sequence Objects" @@ -141,17 +151,17 @@ msgstr "" #: ../../c-api/tuple.rst:122 msgid "" -"Struct sequence objects are the C equivalent of " -":func:`~collections.namedtuple` objects, i.e. a sequence whose items can " -"also be accessed through attributes. To create a struct sequence, you first " -"have to create a specific struct sequence type." +"Struct sequence objects are the C equivalent of :func:`~collections." +"namedtuple` objects, i.e. a sequence whose items can also be accessed " +"through attributes. To create a struct sequence, you first have to create a " +"specific struct sequence type." msgstr "" #: ../../c-api/tuple.rst:129 msgid "" "Create a new struct sequence type from the data in *desc*, described below. " -"Instances of the resulting type can be created with " -":c:func:`PyStructSequence_New`." +"Instances of the resulting type can be created with :c:func:" +"`PyStructSequence_New`." msgstr "" #: ../../c-api/tuple.rst:135 @@ -195,7 +205,7 @@ msgstr "" #: ../../c-api/tuple.rst:155 ../../c-api/tuple.rst:181 msgid "``doc``" -msgstr "" +msgstr "``doc``" #: ../../c-api/tuple.rst:155 msgid "pointer to docstring for the type or ``NULL`` to omit" @@ -203,7 +213,7 @@ msgstr "" #: ../../c-api/tuple.rst:158 msgid "``fields``" -msgstr "" +msgstr "``fields``" #: ../../c-api/tuple.rst:158 msgid "``PyStructSequence_Field *``" @@ -215,11 +225,11 @@ msgstr "" #: ../../c-api/tuple.rst:161 msgid "``n_in_sequence``" -msgstr "" +msgstr "``n_in_sequence``" #: ../../c-api/tuple.rst:161 msgid "``int``" -msgstr "" +msgstr "``int``" #: ../../c-api/tuple.rst:161 msgid "number of fields visible to the Python side (if used as tuple)" @@ -227,16 +237,16 @@ msgstr "" #: ../../c-api/tuple.rst:168 msgid "" -"Describes a field of a struct sequence. As a struct sequence is modeled as a" -" tuple, all fields are typed as :c:type:`PyObject\\*`. The index in the " -":attr:`fields` array of the :c:type:`PyStructSequence_Desc` determines which" -" field of the struct sequence is described." +"Describes a field of a struct sequence. As a struct sequence is modeled as a " +"tuple, all fields are typed as :c:type:`PyObject\\*`. The index in the :" +"attr:`fields` array of the :c:type:`PyStructSequence_Desc` determines which " +"field of the struct sequence is described." msgstr "" #: ../../c-api/tuple.rst:176 msgid "" -"name for the field or ``NULL`` to end the list of named fields, set to " -":c:data:`PyStructSequence_UnnamedField` to leave unnamed" +"name for the field or ``NULL`` to end the list of named fields, set to :c:" +"data:`PyStructSequence_UnnamedField` to leave unnamed" msgstr "" #: ../../c-api/tuple.rst:181 @@ -249,8 +259,8 @@ msgstr "" #: ../../c-api/tuple.rst:192 msgid "" -"Creates an instance of *type*, which must have been created with " -":c:func:`PyStructSequence_NewType`." +"Creates an instance of *type*, which must have been created with :c:func:" +"`PyStructSequence_NewType`." msgstr "" #: ../../c-api/tuple.rst:198 @@ -265,9 +275,9 @@ msgstr "" #: ../../c-api/tuple.rst:209 msgid "" -"Sets the field at index *pos* of the struct sequence *p* to value *o*. Like" -" :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand new " -"instances." +"Sets the field at index *pos* of the struct sequence *p* to value *o*. " +"Like :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand " +"new instances." msgstr "" #: ../../c-api/tuple.rst:215 ../../c-api/tuple.rst:224 diff --git a/c-api/type.po b/c-api/type.po index e17574830..d4e1e5558 100644 --- a/c-api/type.po +++ b/c-api/type.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,14 +32,14 @@ msgstr "" #: ../../c-api/type.rst:18 msgid "" -"This is the type object for type objects; it is the same object as " -":class:`type` in the Python layer." +"This is the type object for type objects; it is the same object as :class:" +"`type` in the Python layer." msgstr "" #: ../../c-api/type.rst:24 msgid "" -"Return true if the object *o* is a type object, including instances of types" -" derived from the standard type object. Return false in all other cases." +"Return true if the object *o* is a type object, including instances of types " +"derived from the standard type object. Return false in all other cases." msgstr "" #: ../../c-api/type.rst:30 @@ -55,8 +56,8 @@ msgstr "" msgid "" "Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This " "function is primarily meant for use with `Py_LIMITED_API`; the individual " -"flag bits are guaranteed to be stable across Python releases, but access to " -":c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API." +"flag bits are guaranteed to be stable across Python releases, but access to :" +"c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API." msgstr "" #: ../../c-api/type.rst:47 @@ -66,8 +67,8 @@ msgstr "" #: ../../c-api/type.rst:53 msgid "" "Invalidate the internal lookup cache for the type and all of its subtypes. " -"This function must be called after any manual modification of the attributes" -" or base classes of the type." +"This function must be called after any manual modification of the attributes " +"or base classes of the type." msgstr "" #: ../../c-api/type.rst:60 @@ -78,8 +79,8 @@ msgstr "" #: ../../c-api/type.rst:66 msgid "" -"Return true if the type object includes support for the cycle detector; this" -" tests the type flag :const:`Py_TPFLAGS_HAVE_GC`." +"Return true if the type object includes support for the cycle detector; this " +"tests the type flag :const:`Py_TPFLAGS_HAVE_GC`." msgstr "" #: ../../c-api/type.rst:72 @@ -88,10 +89,9 @@ msgstr "" #: ../../c-api/type.rst:74 msgid "" -"This function only checks for actual subtypes, which means that " -":meth:`~class.__subclasscheck__` is not called on *b*. Call " -":c:func:`PyObject_IsSubclass` to do the same check that :func:`issubclass` " -"would do." +"This function only checks for actual subtypes, which means that :meth:" +"`~class.__subclasscheck__` is not called on *b*. Call :c:func:" +"`PyObject_IsSubclass` to do the same check that :func:`issubclass` would do." msgstr "" #: ../../c-api/type.rst:82 @@ -104,14 +104,14 @@ msgstr "" #: ../../c-api/type.rst:88 msgid "" "Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type " -"object. Create a new instance using the type's " -":c:member:`~PyTypeObject.tp_alloc` slot." +"object. Create a new instance using the type's :c:member:`~PyTypeObject." +"tp_alloc` slot." msgstr "" #: ../../c-api/type.rst:93 msgid "" -"Finalize a type object. This should be called on all type objects to finish" -" their initialization. This function is responsible for adding inherited " +"Finalize a type object. This should be called on all type objects to finish " +"their initialization. This function is responsible for adding inherited " "slots from a type's base class. Return ``0`` on success, or return ``-1`` " "and sets an exception on error." msgstr "" @@ -124,8 +124,8 @@ msgstr "" #: ../../c-api/type.rst:104 msgid "" -"Creates and returns a heap type object from the *spec*. In addition to that," -" the created heap type contains all types contained by the *bases* tuple as " +"Creates and returns a heap type object from the *spec*. In addition to that, " +"the created heap type contains all types contained by the *bases* tuple as " "base types. This allows the caller to reference other heap types as base " "types." msgstr "" @@ -134,6 +134,6 @@ msgstr "" msgid "" "Return the function pointer stored in the given slot. If the result is " "``NULL``, this indicates that either the slot is ``NULL``, or that the " -"function was called with invalid parameters. Callers will typically cast the" -" result pointer into the appropriate function type." +"function was called with invalid parameters. Callers will typically cast the " +"result pointer into the appropriate function type." msgstr "" diff --git a/c-api/typeobj.po b/c-api/typeobj.po index b6711f5a4..0942b50ed 100644 --- a/c-api/typeobj.po +++ b/c-api/typeobj.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # (Douglas da Silva) , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,18 +32,18 @@ msgstr "Objetos de tipo" #: ../../c-api/typeobj.rst:8 msgid "" "Perhaps one of the most important structures of the Python object system is " -"the structure that defines a new type: the :c:type:`PyTypeObject` structure." -" Type objects can be handled using any of the :c:func:`PyObject_\\*` or " -":c:func:`PyType_\\*` functions, but do not offer much that's interesting to " -"most Python applications. These objects are fundamental to how objects " -"behave, so they are very important to the interpreter itself and to any " -"extension module that implements new types." -msgstr "" -"Talvez uma das estruturas mais importantes do sistema de objetos Python seja" -" a estrutura que define um novo tipo: a estrutura :c:type:`PyTypeObject`. " -"Objetos de tipo podem ser manipulados usando qualquer uma das funções " -":c:func:`PyObject_\\*` ou :c:func:`PyType_\\*`, mas não oferecem muita coisa" -" interessante para a maioria dos aplicativos Python. Esses objetos são " +"the structure that defines a new type: the :c:type:`PyTypeObject` " +"structure. Type objects can be handled using any of the :c:func:`PyObject_" +"\\*` or :c:func:`PyType_\\*` functions, but do not offer much that's " +"interesting to most Python applications. These objects are fundamental to " +"how objects behave, so they are very important to the interpreter itself and " +"to any extension module that implements new types." +msgstr "" +"Talvez uma das estruturas mais importantes do sistema de objetos Python seja " +"a estrutura que define um novo tipo: a estrutura :c:type:`PyTypeObject`. " +"Objetos de tipo podem ser manipulados usando qualquer uma das funções :c:" +"func:`PyObject_\\*` ou :c:func:`PyType_\\*`, mas não oferecem muita coisa " +"interessante para a maioria dos aplicativos Python. Esses objetos são " "fundamentais para o comportamento dos objetos, portanto, são muito " "importantes para o próprio intepretador e para qualquer módulo de extensão " "que implemente novos tipos." @@ -51,8 +52,8 @@ msgstr "" msgid "" "Type objects are fairly large compared to most of the standard types. The " "reason for the size is that each type object stores a large number of " -"values, mostly C function pointers, each of which implements a small part of" -" the type's functionality. The fields of the type object are examined in " +"values, mostly C function pointers, each of which implements a small part of " +"the type's functionality. The fields of the type object are examined in " "detail in this section. The fields will be described in the order in which " "they occur in the structure." msgstr "" @@ -73,19 +74,19 @@ msgstr "" #: ../../c-api/typeobj.rst:28 msgid "" -"The structure definition for :c:type:`PyTypeObject` can be found in " -":file:`Include/object.h`. For convenience of reference, this repeats the " +"The structure definition for :c:type:`PyTypeObject` can be found in :file:" +"`Include/object.h`. For convenience of reference, this repeats the " "definition found there:" msgstr "" #: ../../c-api/typeobj.rst:35 msgid "" -"The type object structure extends the :c:type:`PyVarObject` structure. The " -":attr:`ob_size` field is used for dynamic types (created by " -":func:`type_new`, usually called from a class statement). Note that " -":c:data:`PyType_Type` (the metatype) initializes " -":c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e. " -"type objects) *must* have the :attr:`ob_size` field." +"The type object structure extends the :c:type:`PyVarObject` structure. The :" +"attr:`ob_size` field is used for dynamic types (created by :func:" +"`type_new`, usually called from a class statement). Note that :c:data:" +"`PyType_Type` (the metatype) initializes :c:member:`~PyTypeObject." +"tp_itemsize`, which means that its instances (i.e. type objects) *must* have " +"the :attr:`ob_size` field." msgstr "" #: ../../c-api/typeobj.rst:45 @@ -132,18 +133,18 @@ msgstr "" #: ../../c-api/typeobj.rst:81 msgid "" -"This should be done before any instances of the type are created. " -":c:func:`PyType_Ready` checks if :attr:`ob_type` is ``NULL``, and if so, " -"initializes it to the :attr:`ob_type` field of the base class. " -":c:func:`PyType_Ready` will not change this field if it is non-zero." +"This should be done before any instances of the type are created. :c:func:" +"`PyType_Ready` checks if :attr:`ob_type` is ``NULL``, and if so, initializes " +"it to the :attr:`ob_type` field of the base class. :c:func:`PyType_Ready` " +"will not change this field if it is non-zero." msgstr "" #: ../../c-api/typeobj.rst:86 ../../c-api/typeobj.rst:188 #: ../../c-api/typeobj.rst:255 ../../c-api/typeobj.rst:322 -#: ../../c-api/typeobj.rst:340 ../../c-api/typeobj.rst:682 -#: ../../c-api/typeobj.rst:699 ../../c-api/typeobj.rst:779 -#: ../../c-api/typeobj.rst:874 ../../c-api/typeobj.rst:967 -#: ../../c-api/typeobj.rst:1022 +#: ../../c-api/typeobj.rst:340 ../../c-api/typeobj.rst:694 +#: ../../c-api/typeobj.rst:711 ../../c-api/typeobj.rst:791 +#: ../../c-api/typeobj.rst:886 ../../c-api/typeobj.rst:979 +#: ../../c-api/typeobj.rst:1034 msgid "This field is inherited by subtypes." msgstr "" @@ -161,9 +162,9 @@ msgid "" "module name, followed by a dot, followed by the type name; for built-in " "types, it should be just the type name. If the module is a submodule of a " "package, the full package name is part of the full module name. For " -"example, a type named :class:`T` defined in module :mod:`M` in subpackage " -":mod:`Q` in package :mod:`P` should have the " -":c:member:`~PyTypeObject.tp_name` initializer ``\"P.Q.M.T\"``." +"example, a type named :class:`T` defined in module :mod:`M` in subpackage :" +"mod:`Q` in package :mod:`P` should have the :c:member:`~PyTypeObject." +"tp_name` initializer ``\"P.Q.M.T\"``." msgstr "" #: ../../c-api/typeobj.rst:107 @@ -176,18 +177,18 @@ msgstr "" #: ../../c-api/typeobj.rst:111 msgid "" "For statically allocated type objects, the tp_name field should contain a " -"dot. Everything before the last dot is made accessible as the " -":attr:`__module__` attribute, and everything after the last dot is made " -"accessible as the :attr:`~definition.__name__` attribute." +"dot. Everything before the last dot is made accessible as the :attr:" +"`__module__` attribute, and everything after the last dot is made accessible " +"as the :attr:`~definition.__name__` attribute." msgstr "" #: ../../c-api/typeobj.rst:116 msgid "" "If no dot is present, the entire :c:member:`~PyTypeObject.tp_name` field is " -"made accessible as the :attr:`~definition.__name__` attribute, and the " -":attr:`__module__` attribute is undefined (unless explicitly set in the " -"dictionary, as explained above). This means your type will be impossible to" -" pickle. Additionally, it will not be listed in module documentations " +"made accessible as the :attr:`~definition.__name__` attribute, and the :attr:" +"`__module__` attribute is undefined (unless explicitly set in the " +"dictionary, as explained above). This means your type will be impossible to " +"pickle. Additionally, it will not be listed in module documentations " "created with pydoc." msgstr "" @@ -198,8 +199,8 @@ msgstr "" #: ../../c-api/typeobj.rst:130 msgid "" -"There are two kinds of types: types with fixed-length instances have a zero " -":c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length " +"There are two kinds of types: types with fixed-length instances have a zero :" +"c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length " "instances have a non-zero :c:member:`~PyTypeObject.tp_itemsize` field. For " "a type with fixed-length instances, all instances have the same size, given " "in :c:member:`~PyTypeObject.tp_basicsize`." @@ -207,13 +208,12 @@ msgstr "" #: ../../c-api/typeobj.rst:135 msgid "" -"For a type with variable-length instances, the instances must have an " -":attr:`ob_size` field, and the instance size is " -":c:member:`~PyTypeObject.tp_basicsize` plus N times " -":c:member:`~PyTypeObject.tp_itemsize`, where N is the \"length\" of the " -"object. The value of N is typically stored in the instance's " -":attr:`ob_size` field. There are exceptions: for example, ints use a " -"negative :attr:`ob_size` to indicate a negative number, and N is " +"For a type with variable-length instances, the instances must have an :attr:" +"`ob_size` field, and the instance size is :c:member:`~PyTypeObject." +"tp_basicsize` plus N times :c:member:`~PyTypeObject.tp_itemsize`, where N is " +"the \"length\" of the object. The value of N is typically stored in the " +"instance's :attr:`ob_size` field. There are exceptions: for example, ints " +"use a negative :attr:`ob_size` to indicate a negative number, and N is " "``abs(ob_size)`` there. Also, the presence of an :attr:`ob_size` field in " "the instance layout doesn't mean that the instance structure is variable-" "length (for example, the structure for the list type has fixed-length " @@ -222,33 +222,33 @@ msgstr "" #: ../../c-api/typeobj.rst:146 msgid "" -"The basic size includes the fields in the instance declared by the macro " -":c:macro:`PyObject_HEAD` or :c:macro:`PyObject_VAR_HEAD` (whichever is used " -"to declare the instance struct) and this in turn includes the " -":attr:`_ob_prev` and :attr:`_ob_next` fields if they are present. This " -"means that the only correct way to get an initializer for the " -":c:member:`~PyTypeObject.tp_basicsize` is to use the ``sizeof`` operator on " -"the struct used to declare the instance layout. The basic size does not " -"include the GC header size." +"The basic size includes the fields in the instance declared by the macro :c:" +"macro:`PyObject_HEAD` or :c:macro:`PyObject_VAR_HEAD` (whichever is used to " +"declare the instance struct) and this in turn includes the :attr:`_ob_prev` " +"and :attr:`_ob_next` fields if they are present. This means that the only " +"correct way to get an initializer for the :c:member:`~PyTypeObject." +"tp_basicsize` is to use the ``sizeof`` operator on the struct used to " +"declare the instance layout. The basic size does not include the GC header " +"size." msgstr "" #: ../../c-api/typeobj.rst:154 msgid "" "These fields are inherited separately by subtypes. If the base type has a " "non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is generally not safe to " -"set :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a" -" subtype (though this depends on the implementation of the base type)." +"set :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a " +"subtype (though this depends on the implementation of the base type)." msgstr "" #: ../../c-api/typeobj.rst:159 msgid "" "A note about alignment: if the variable items require a particular " -"alignment, this should be taken care of by the value of " -":c:member:`~PyTypeObject.tp_basicsize`. Example: suppose a type implements " -"an array of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is " -"``sizeof(double)``. It is the programmer's responsibility that " -":c:member:`~PyTypeObject.tp_basicsize` is a multiple of ``sizeof(double)`` " -"(assuming this is the alignment requirement for ``double``)." +"alignment, this should be taken care of by the value of :c:member:" +"`~PyTypeObject.tp_basicsize`. Example: suppose a type implements an array " +"of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is ``sizeof(double)``. " +"It is the programmer's responsibility that :c:member:`~PyTypeObject." +"tp_basicsize` is a multiple of ``sizeof(double)`` (assuming this is the " +"alignment requirement for ``double``)." msgstr "" #: ../../c-api/typeobj.rst:169 @@ -260,21 +260,21 @@ msgstr "" #: ../../c-api/typeobj.rst:173 msgid "" -"The destructor function is called by the :c:func:`Py_DECREF` and " -":c:func:`Py_XDECREF` macros when the new reference count is zero. At this " -"point, the instance is still in existence, but there are no references to " -"it. The destructor function should free all references which the instance " -"owns, free all memory buffers owned by the instance (using the freeing " -"function corresponding to the allocation function used to allocate the " -"buffer), and finally (as its last action) call the type's " -":c:member:`~PyTypeObject.tp_free` function. If the type is not subtypable " -"(doesn't have the :const:`Py_TPFLAGS_BASETYPE` flag bit set), it is " -"permissible to call the object deallocator directly instead of via " -":c:member:`~PyTypeObject.tp_free`. The object deallocator should be the one" -" used to allocate the instance; this is normally :c:func:`PyObject_Del` if " -"the instance was allocated using :c:func:`PyObject_New` or " -":c:func:`PyObject_VarNew`, or :c:func:`PyObject_GC_Del` if the instance was " -"allocated using :c:func:`PyObject_GC_New` or :c:func:`PyObject_GC_NewVar`." +"The destructor function is called by the :c:func:`Py_DECREF` and :c:func:" +"`Py_XDECREF` macros when the new reference count is zero. At this point, " +"the instance is still in existence, but there are no references to it. The " +"destructor function should free all references which the instance owns, free " +"all memory buffers owned by the instance (using the freeing function " +"corresponding to the allocation function used to allocate the buffer), and " +"finally (as its last action) call the type's :c:member:`~PyTypeObject." +"tp_free` function. If the type is not subtypable (doesn't have the :const:" +"`Py_TPFLAGS_BASETYPE` flag bit set), it is permissible to call the object " +"deallocator directly instead of via :c:member:`~PyTypeObject.tp_free`. The " +"object deallocator should be the one used to allocate the instance; this is " +"normally :c:func:`PyObject_Del` if the instance was allocated using :c:func:" +"`PyObject_New` or :c:func:`PyObject_VarNew`, or :c:func:`PyObject_GC_Del` if " +"the instance was allocated using :c:func:`PyObject_GC_New` or :c:func:" +"`PyObject_GC_NewVar`." msgstr "" #: ../../c-api/typeobj.rst:193 @@ -287,20 +287,19 @@ msgstr "" #: ../../c-api/typeobj.rst:200 msgid "" -"This field is deprecated. When it is defined, it should point to a function" -" that acts the same as the :c:member:`~PyTypeObject.tp_getattro` function, " +"This field is deprecated. When it is defined, it should point to a function " +"that acts the same as the :c:member:`~PyTypeObject.tp_getattro` function, " "but taking a C string instead of a Python string object to give the " "attribute name. The signature is ::" msgstr "" #: ../../c-api/typeobj.rst:206 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_getattro`: a subtype inherits both " -":c:member:`~PyTypeObject.tp_getattr` and " -":c:member:`~PyTypeObject.tp_getattro` from its base type when the subtype's " -":c:member:`~PyTypeObject.tp_getattr` and " -":c:member:`~PyTypeObject.tp_getattro` are both ``NULL``." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_getattro`: a subtype inherits both :c:member:`~PyTypeObject.tp_getattr` " +"and :c:member:`~PyTypeObject.tp_getattro` from its base type when the " +"subtype's :c:member:`~PyTypeObject.tp_getattr` and :c:member:`~PyTypeObject." +"tp_getattro` are both ``NULL``." msgstr "" #: ../../c-api/typeobj.rst:213 ../../c-api/typeobj.rst:358 @@ -310,8 +309,8 @@ msgstr "" #: ../../c-api/typeobj.rst:215 msgid "" -"This field is deprecated. When it is defined, it should point to a function" -" that acts the same as the :c:member:`~PyTypeObject.tp_setattro` function, " +"This field is deprecated. When it is defined, it should point to a function " +"that acts the same as the :c:member:`~PyTypeObject.tp_setattro` function, " "but taking a C string instead of a Python string object to give the " "attribute name. The signature is ::" msgstr "" @@ -319,11 +318,11 @@ msgstr "" #: ../../c-api/typeobj.rst:221 msgid "" "The *v* argument is set to ``NULL`` to delete the attribute. This field is " -"inherited by subtypes together with :c:member:`~PyTypeObject.tp_setattro`: a" -" subtype inherits both :c:member:`~PyTypeObject.tp_setattr` and " -":c:member:`~PyTypeObject.tp_setattro` from its base type when the subtype's " -":c:member:`~PyTypeObject.tp_setattr` and " -":c:member:`~PyTypeObject.tp_setattro` are both ``NULL``." +"inherited by subtypes together with :c:member:`~PyTypeObject.tp_setattro`: a " +"subtype inherits both :c:member:`~PyTypeObject.tp_setattr` and :c:member:" +"`~PyTypeObject.tp_setattro` from its base type when the subtype's :c:member:" +"`~PyTypeObject.tp_setattr` and :c:member:`~PyTypeObject.tp_setattro` are " +"both ``NULL``." msgstr "" #: ../../c-api/typeobj.rst:229 @@ -339,8 +338,8 @@ msgstr "" #: ../../c-api/typeobj.rst:241 msgid "" -"An optional pointer to a function that implements the built-in function " -":func:`repr`." +"An optional pointer to a function that implements the built-in function :" +"func:`repr`." msgstr "" #: ../../c-api/typeobj.rst:244 @@ -363,8 +362,8 @@ msgstr "" #: ../../c-api/typeobj.rst:259 msgid "" "Pointer to an additional structure that contains fields relevant only to " -"objects which implement the number protocol. These fields are documented in" -" :ref:`number-structs`." +"objects which implement the number protocol. These fields are documented " +"in :ref:`number-structs`." msgstr "" #: ../../c-api/typeobj.rst:263 @@ -382,8 +381,8 @@ msgstr "" #: ../../c-api/typeobj.rst:273 msgid "" -"The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the" -" contained fields are inherited individually." +"The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the " +"contained fields are inherited individually." msgstr "" #: ../../c-api/typeobj.rst:279 @@ -401,67 +400,66 @@ msgstr "" #: ../../c-api/typeobj.rst:291 msgid "" -"An optional pointer to a function that implements the built-in function " -":func:`hash`." +"An optional pointer to a function that implements the built-in function :" +"func:`hash`." msgstr "" #: ../../c-api/typeobj.rst:294 msgid "" "The signature is the same as for :c:func:`PyObject_Hash`; it must return a " "value of the type Py_hash_t. The value ``-1`` should not be returned as a " -"normal return value; when an error occurs during the computation of the hash" -" value, the function should set an exception and return ``-1``." +"normal return value; when an error occurs during the computation of the hash " +"value, the function should set an exception and return ``-1``." msgstr "" #: ../../c-api/typeobj.rst:299 msgid "" -"This field can be set explicitly to :c:func:`PyObject_HashNotImplemented` to" -" block inheritance of the hash method from a parent type. This is " -"interpreted as the equivalent of ``__hash__ = None`` at the Python level, " -"causing ``isinstance(o, collections.Hashable)`` to correctly return " -"``False``. Note that the converse is also true - setting ``__hash__ = None``" -" on a class at the Python level will result in the ``tp_hash`` slot being " -"set to :c:func:`PyObject_HashNotImplemented`." +"This field can be set explicitly to :c:func:`PyObject_HashNotImplemented` to " +"block inheritance of the hash method from a parent type. This is interpreted " +"as the equivalent of ``__hash__ = None`` at the Python level, causing " +"``isinstance(o, collections.Hashable)`` to correctly return ``False``. Note " +"that the converse is also true - setting ``__hash__ = None`` on a class at " +"the Python level will result in the ``tp_hash`` slot being set to :c:func:" +"`PyObject_HashNotImplemented`." msgstr "" #: ../../c-api/typeobj.rst:307 msgid "" -"When this field is not set, an attempt to take the hash of the object raises" -" :exc:`TypeError`." +"When this field is not set, an attempt to take the hash of the object " +"raises :exc:`TypeError`." msgstr "" #: ../../c-api/typeobj.rst:310 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_richcompare`: a subtype inherits both of " -":c:member:`~PyTypeObject.tp_richcompare` and " -":c:member:`~PyTypeObject.tp_hash`, when the subtype's " -":c:member:`~PyTypeObject.tp_richcompare` and " -":c:member:`~PyTypeObject.tp_hash` are both ``NULL``." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_richcompare`: a subtype inherits both of :c:member:`~PyTypeObject." +"tp_richcompare` and :c:member:`~PyTypeObject.tp_hash`, when the subtype's :c:" +"member:`~PyTypeObject.tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` " +"are both ``NULL``." msgstr "" #: ../../c-api/typeobj.rst:318 msgid "" "An optional pointer to a function that implements calling the object. This " -"should be ``NULL`` if the object is not callable. The signature is the same" -" as for :c:func:`PyObject_Call`." +"should be ``NULL`` if the object is not callable. The signature is the same " +"as for :c:func:`PyObject_Call`." msgstr "" #: ../../c-api/typeobj.rst:327 msgid "" -"An optional pointer to a function that implements the built-in operation " -":func:`str`. (Note that :class:`str` is a type now, and :func:`str` calls " -"the constructor for that type. This constructor calls " -":c:func:`PyObject_Str` to do the actual work, and :c:func:`PyObject_Str` " -"will call this handler.)" +"An optional pointer to a function that implements the built-in operation :" +"func:`str`. (Note that :class:`str` is a type now, and :func:`str` calls " +"the constructor for that type. This constructor calls :c:func:" +"`PyObject_Str` to do the actual work, and :c:func:`PyObject_Str` will call " +"this handler.)" msgstr "" #: ../../c-api/typeobj.rst:332 msgid "" "The signature is the same as for :c:func:`PyObject_Str`; it must return a " "string or a Unicode object. This function should return a \"friendly\" " -"string representation of the object, as this is the representation that will" -" be used, among other things, by the :func:`print` function." +"string representation of the object, as this is the representation that will " +"be used, among other things, by the :func:`print` function." msgstr "" #: ../../c-api/typeobj.rst:337 @@ -483,30 +481,28 @@ msgstr "" #: ../../c-api/typeobj.rst:351 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_getattr`: a subtype inherits both " -":c:member:`~PyTypeObject.tp_getattr` and " -":c:member:`~PyTypeObject.tp_getattro` from its base type when the subtype's " -":c:member:`~PyTypeObject.tp_getattr` and " -":c:member:`~PyTypeObject.tp_getattro` are both ``NULL``." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_getattr`: a subtype inherits both :c:member:`~PyTypeObject.tp_getattr` " +"and :c:member:`~PyTypeObject.tp_getattro` from its base type when the " +"subtype's :c:member:`~PyTypeObject.tp_getattr` and :c:member:`~PyTypeObject." +"tp_getattro` are both ``NULL``." msgstr "" #: ../../c-api/typeobj.rst:360 msgid "" -"The signature is the same as for :c:func:`PyObject_SetAttr`, but setting *v*" -" to ``NULL`` to delete an attribute must be supported. It is usually " +"The signature is the same as for :c:func:`PyObject_SetAttr`, but setting *v* " +"to ``NULL`` to delete an attribute must be supported. It is usually " "convenient to set this field to :c:func:`PyObject_GenericSetAttr`, which " "implements the normal way of setting object attributes." msgstr "" #: ../../c-api/typeobj.rst:365 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_setattr`: a subtype inherits both " -":c:member:`~PyTypeObject.tp_setattr` and " -":c:member:`~PyTypeObject.tp_setattro` from its base type when the subtype's " -":c:member:`~PyTypeObject.tp_setattr` and " -":c:member:`~PyTypeObject.tp_setattro` are both ``NULL``." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_setattr`: a subtype inherits both :c:member:`~PyTypeObject.tp_setattr` " +"and :c:member:`~PyTypeObject.tp_setattro` from its base type when the " +"subtype's :c:member:`~PyTypeObject.tp_setattr` and :c:member:`~PyTypeObject." +"tp_setattro` are both ``NULL``." msgstr "" #: ../../c-api/typeobj.rst:372 @@ -526,38 +522,36 @@ msgstr "" msgid "" "This field is a bit mask of various flags. Some flags indicate variant " "semantics for certain situations; others are used to indicate that certain " -"fields in the type object (or in the extension structures referenced via " -":c:member:`~PyTypeObject.tp_as_number`, " -":c:member:`~PyTypeObject.tp_as_sequence`, " -":c:member:`~PyTypeObject.tp_as_mapping`, and " -":c:member:`~PyTypeObject.tp_as_buffer`) that were historically not always " -"present are valid; if such a flag bit is clear, the type fields it guards " -"must not be accessed and must be considered to have a zero or ``NULL`` value" -" instead." +"fields in the type object (or in the extension structures referenced via :c:" +"member:`~PyTypeObject.tp_as_number`, :c:member:`~PyTypeObject." +"tp_as_sequence`, :c:member:`~PyTypeObject.tp_as_mapping`, and :c:member:" +"`~PyTypeObject.tp_as_buffer`) that were historically not always present are " +"valid; if such a flag bit is clear, the type fields it guards must not be " +"accessed and must be considered to have a zero or ``NULL`` value instead." msgstr "" #: ../../c-api/typeobj.rst:390 msgid "" "Inheritance of this field is complicated. Most flag bits are inherited " -"individually, i.e. if the base type has a flag bit set, the subtype inherits" -" this flag bit. The flag bits that pertain to extension structures are " +"individually, i.e. if the base type has a flag bit set, the subtype inherits " +"this flag bit. The flag bits that pertain to extension structures are " "strictly inherited if the extension structure is inherited, i.e. the base " "type's value of the flag bit is copied into the subtype together with a " "pointer to the extension structure. The :const:`Py_TPFLAGS_HAVE_GC` flag " -"bit is inherited together with the :c:member:`~PyTypeObject.tp_traverse` and" -" :c:member:`~PyTypeObject.tp_clear` fields, i.e. if the " -":const:`Py_TPFLAGS_HAVE_GC` flag bit is clear in the subtype and the " -":c:member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject.tp_clear`" -" fields in the subtype exist and have ``NULL`` values." +"bit is inherited together with the :c:member:`~PyTypeObject.tp_traverse` " +"and :c:member:`~PyTypeObject.tp_clear` fields, i.e. if the :const:" +"`Py_TPFLAGS_HAVE_GC` flag bit is clear in the subtype and the :c:member:" +"`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject.tp_clear` fields in " +"the subtype exist and have ``NULL`` values." msgstr "" #: ../../c-api/typeobj.rst:401 msgid "" "The following bit masks are currently defined; these can be ORed together " -"using the ``|`` operator to form the value of the " -":c:member:`~PyTypeObject.tp_flags` field. The macro " -":c:func:`PyType_HasFeature` takes a type and a flags value, *tp* and *f*, " -"and checks whether ``tp->tp_flags & f`` is non-zero." +"using the ``|`` operator to form the value of the :c:member:`~PyTypeObject." +"tp_flags` field. The macro :c:func:`PyType_HasFeature` takes a type and a " +"flags value, *tp* and *f*, and checks whether ``tp->tp_flags & f`` is non-" +"zero." msgstr "" #: ../../c-api/typeobj.rst:409 @@ -565,22 +559,22 @@ msgid "" "This bit is set when the type object itself is allocated on the heap. In " "this case, the :attr:`ob_type` field of its instances is considered a " "reference to the type, and the type object is INCREF'ed when a new instance " -"is created, and DECREF'ed when an instance is destroyed (this does not apply" -" to instances of subtypes; only the type referenced by the instance's " -"ob_type gets INCREF'ed or DECREF'ed)." +"is created, and DECREF'ed when an instance is destroyed (this does not apply " +"to instances of subtypes; only the type referenced by the instance's ob_type " +"gets INCREF'ed or DECREF'ed)." msgstr "" #: ../../c-api/typeobj.rst:419 msgid "" -"This bit is set when the type can be used as the base type of another type." -" If this bit is clear, the type cannot be subtyped (similar to a \"final\" " +"This bit is set when the type can be used as the base type of another type. " +"If this bit is clear, the type cannot be subtyped (similar to a \"final\" " "class in Java)." msgstr "" #: ../../c-api/typeobj.rst:426 msgid "" -"This bit is set when the type object has been fully initialized by " -":c:func:`PyType_Ready`." +"This bit is set when the type object has been fully initialized by :c:func:" +"`PyType_Ready`." msgstr "" #: ../../c-api/typeobj.rst:432 @@ -591,20 +585,20 @@ msgstr "" #: ../../c-api/typeobj.rst:438 msgid "" -"This bit is set when the object supports garbage collection. If this bit is" -" set, instances must be created using :c:func:`PyObject_GC_New` and " -"destroyed using :c:func:`PyObject_GC_Del`. More information in section :ref" -":`supporting-cycle-detection`. This bit also implies that the GC-related " -"fields :c:member:`~PyTypeObject.tp_traverse` and " -":c:member:`~PyTypeObject.tp_clear` are present in the type object." +"This bit is set when the object supports garbage collection. If this bit is " +"set, instances must be created using :c:func:`PyObject_GC_New` and destroyed " +"using :c:func:`PyObject_GC_Del`. More information in section :ref:" +"`supporting-cycle-detection`. This bit also implies that the GC-related " +"fields :c:member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject." +"tp_clear` are present in the type object." msgstr "" #: ../../c-api/typeobj.rst:448 msgid "" "This is a bitmask of all the bits that pertain to the existence of certain " "fields in the type object and its extension structures. Currently, it " -"includes the following bits: :const:`Py_TPFLAGS_HAVE_STACKLESS_EXTENSION`, " -":const:`Py_TPFLAGS_HAVE_VERSION_TAG`." +"includes the following bits: :const:`Py_TPFLAGS_HAVE_STACKLESS_EXTENSION`, :" +"const:`Py_TPFLAGS_HAVE_VERSION_TAG`." msgstr "" #: ../../c-api/typeobj.rst:463 @@ -612,10 +606,9 @@ msgid "" "These flags are used by functions such as :c:func:`PyLong_Check` to quickly " "determine if a type is a subclass of a built-in type; such specific checks " "are faster than a generic check, like :c:func:`PyObject_IsInstance`. Custom " -"types that inherit from built-ins should have their " -":c:member:`~PyTypeObject.tp_flags` set appropriately, or the code that " -"interacts with such types will behave differently depending on what kind of " -"check is used." +"types that inherit from built-ins should have their :c:member:`~PyTypeObject." +"tp_flags` set appropriately, or the code that interacts with such types will " +"behave differently depending on what kind of check is used." msgstr "" #: ../../c-api/typeobj.rst:474 @@ -637,20 +630,20 @@ msgstr "" #: ../../c-api/typeobj.rst:491 msgid "" -"An optional pointer to a traversal function for the garbage collector. This" -" is only used if the :const:`Py_TPFLAGS_HAVE_GC` flag bit is set. More " -"information about Python's garbage collection scheme can be found in section" -" :ref:`supporting-cycle-detection`." +"An optional pointer to a traversal function for the garbage collector. This " +"is only used if the :const:`Py_TPFLAGS_HAVE_GC` flag bit is set. More " +"information about Python's garbage collection scheme can be found in " +"section :ref:`supporting-cycle-detection`." msgstr "" #: ../../c-api/typeobj.rst:496 msgid "" "The :c:member:`~PyTypeObject.tp_traverse` pointer is used by the garbage " -"collector to detect reference cycles. A typical implementation of a " -":c:member:`~PyTypeObject.tp_traverse` function simply calls " -":c:func:`Py_VISIT` on each of the instance's members that are Python " -"objects. For example, this is function :c:func:`local_traverse` from the " -":mod:`_thread` extension module::" +"collector to detect reference cycles. A typical implementation of a :c:" +"member:`~PyTypeObject.tp_traverse` function simply calls :c:func:`Py_VISIT` " +"on each of the instance's members that are Python objects that the instance " +"owns. For example, this is function :c:func:`local_traverse` from the :mod:" +"`_thread` extension module::" msgstr "" #: ../../c-api/typeobj.rst:511 @@ -668,45 +661,56 @@ msgid "" "module's :func:`~gc.get_referents` function will include it." msgstr "" -#: ../../c-api/typeobj.rst:519 +#: ../../c-api/typeobj.rst:520 msgid "" -"Note that :c:func:`Py_VISIT` requires the *visit* and *arg* parameters to " -":c:func:`local_traverse` to have these specific names; don't name them just " +"When implementing :c:member:`~PyTypeObject.tp_traverse`, only the members " +"that the instance *owns* (by having strong references to them) must be " +"visited. For instance, if an object supports weak references via the :c:" +"member:`~PyTypeObject.tp_weaklist` slot, the pointer supporting the linked " +"list (what *tp_weaklist* points to) must **not** be visited as the instance " +"does not directly own the weak references to itself (the weakreference list " +"is there to support the weak reference machinery, but the instance has no " +"strong reference to the elements inside it, as they are allowed to be " +"removed even if the instance is still alive)." +msgstr "" + +#: ../../c-api/typeobj.rst:531 +msgid "" +"Note that :c:func:`Py_VISIT` requires the *visit* and *arg* parameters to :c:" +"func:`local_traverse` to have these specific names; don't name them just " "anything." msgstr "" -#: ../../c-api/typeobj.rst:523 +#: ../../c-api/typeobj.rst:535 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_clear` and the :const:`Py_TPFLAGS_HAVE_GC` flag " -"bit: the flag bit, :c:member:`~PyTypeObject.tp_traverse`, and " -":c:member:`~PyTypeObject.tp_clear` are all inherited from the base type if " -"they are all zero in the subtype." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_clear` and the :const:`Py_TPFLAGS_HAVE_GC` flag bit: the flag bit, :c:" +"member:`~PyTypeObject.tp_traverse`, and :c:member:`~PyTypeObject.tp_clear` " +"are all inherited from the base type if they are all zero in the subtype." msgstr "" -#: ../../c-api/typeobj.rst:531 +#: ../../c-api/typeobj.rst:543 msgid "" "An optional pointer to a clear function for the garbage collector. This is " "only used if the :const:`Py_TPFLAGS_HAVE_GC` flag bit is set." msgstr "" -#: ../../c-api/typeobj.rst:534 +#: ../../c-api/typeobj.rst:546 msgid "" "The :c:member:`~PyTypeObject.tp_clear` member function is used to break " -"reference cycles in cyclic garbage detected by the garbage collector. Taken" -" together, all :c:member:`~PyTypeObject.tp_clear` functions in the system " +"reference cycles in cyclic garbage detected by the garbage collector. Taken " +"together, all :c:member:`~PyTypeObject.tp_clear` functions in the system " "must combine to break all reference cycles. This is subtle, and if in any " "doubt supply a :c:member:`~PyTypeObject.tp_clear` function. For example, " "the tuple type does not implement a :c:member:`~PyTypeObject.tp_clear` " "function, because it's possible to prove that no reference cycle can be " -"composed entirely of tuples. Therefore the " -":c:member:`~PyTypeObject.tp_clear` functions of other types must be " -"sufficient to break any cycle containing a tuple. This isn't immediately " -"obvious, and there's rarely a good reason to avoid implementing " -":c:member:`~PyTypeObject.tp_clear`." +"composed entirely of tuples. Therefore the :c:member:`~PyTypeObject." +"tp_clear` functions of other types must be sufficient to break any cycle " +"containing a tuple. This isn't immediately obvious, and there's rarely a " +"good reason to avoid implementing :c:member:`~PyTypeObject.tp_clear`." msgstr "" -#: ../../c-api/typeobj.rst:544 +#: ../../c-api/typeobj.rst:556 msgid "" "Implementations of :c:member:`~PyTypeObject.tp_clear` should drop the " "instance's references to those of its members that may be Python objects, " @@ -714,148 +718,144 @@ msgid "" "example::" msgstr "" -#: ../../c-api/typeobj.rst:558 +#: ../../c-api/typeobj.rst:570 msgid "" "The :c:func:`Py_CLEAR` macro should be used, because clearing references is " "delicate: the reference to the contained object must not be decremented " -"until after the pointer to the contained object is set to ``NULL``. This is" -" because decrementing the reference count may cause the contained object to " +"until after the pointer to the contained object is set to ``NULL``. This is " +"because decrementing the reference count may cause the contained object to " "become trash, triggering a chain of reclamation activity that may include " "invoking arbitrary Python code (due to finalizers, or weakref callbacks, " "associated with the contained object). If it's possible for such code to " "reference *self* again, it's important that the pointer to the contained " "object be ``NULL`` at that time, so that *self* knows the contained object " -"can no longer be used. The :c:func:`Py_CLEAR` macro performs the operations" -" in a safe order." +"can no longer be used. The :c:func:`Py_CLEAR` macro performs the operations " +"in a safe order." msgstr "" -#: ../../c-api/typeobj.rst:569 +#: ../../c-api/typeobj.rst:581 msgid "" -"Because the goal of :c:member:`~PyTypeObject.tp_clear` functions is to break" -" reference cycles, it's not necessary to clear contained objects like Python" -" strings or Python integers, which can't participate in reference cycles. On" -" the other hand, it may be convenient to clear all contained Python objects," -" and write the type's :c:member:`~PyTypeObject.tp_dealloc` function to " +"Because the goal of :c:member:`~PyTypeObject.tp_clear` functions is to break " +"reference cycles, it's not necessary to clear contained objects like Python " +"strings or Python integers, which can't participate in reference cycles. On " +"the other hand, it may be convenient to clear all contained Python objects, " +"and write the type's :c:member:`~PyTypeObject.tp_dealloc` function to " "invoke :c:member:`~PyTypeObject.tp_clear`." msgstr "" -#: ../../c-api/typeobj.rst:575 +#: ../../c-api/typeobj.rst:587 msgid "" "More information about Python's garbage collection scheme can be found in " "section :ref:`supporting-cycle-detection`." msgstr "" -#: ../../c-api/typeobj.rst:578 +#: ../../c-api/typeobj.rst:590 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_traverse` and the :const:`Py_TPFLAGS_HAVE_GC` " -"flag bit: the flag bit, :c:member:`~PyTypeObject.tp_traverse`, and " -":c:member:`~PyTypeObject.tp_clear` are all inherited from the base type if " -"they are all zero in the subtype." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_traverse` and the :const:`Py_TPFLAGS_HAVE_GC` flag bit: the flag bit, :c:" +"member:`~PyTypeObject.tp_traverse`, and :c:member:`~PyTypeObject.tp_clear` " +"are all inherited from the base type if they are all zero in the subtype." msgstr "" -#: ../../c-api/typeobj.rst:586 +#: ../../c-api/typeobj.rst:598 msgid "" "An optional pointer to the rich comparison function, whose signature is " "``PyObject *tp_richcompare(PyObject *a, PyObject *b, int op)``. The first " -"parameter is guaranteed to be an instance of the type that is defined by " -":c:type:`PyTypeObject`." +"parameter is guaranteed to be an instance of the type that is defined by :c:" +"type:`PyTypeObject`." msgstr "" -#: ../../c-api/typeobj.rst:591 +#: ../../c-api/typeobj.rst:603 msgid "" -"The function should return the result of the comparison (usually ``Py_True``" -" or ``Py_False``). If the comparison is undefined, it must return " -"``Py_NotImplemented``, if another error occurred it must return ``NULL`` and" -" set an exception condition." +"The function should return the result of the comparison (usually ``Py_True`` " +"or ``Py_False``). If the comparison is undefined, it must return " +"``Py_NotImplemented``, if another error occurred it must return ``NULL`` and " +"set an exception condition." msgstr "" -#: ../../c-api/typeobj.rst:598 +#: ../../c-api/typeobj.rst:610 msgid "" "If you want to implement a type for which only a limited set of comparisons " "makes sense (e.g. ``==`` and ``!=``, but not ``<`` and friends), directly " "raise :exc:`TypeError` in the rich comparison function." msgstr "" -#: ../../c-api/typeobj.rst:602 +#: ../../c-api/typeobj.rst:614 msgid "" -"This field is inherited by subtypes together with " -":c:member:`~PyTypeObject.tp_hash`: a subtype inherits " -":c:member:`~PyTypeObject.tp_richcompare` and " -":c:member:`~PyTypeObject.tp_hash` when the subtype's " -":c:member:`~PyTypeObject.tp_richcompare` and " -":c:member:`~PyTypeObject.tp_hash` are both ``NULL``." +"This field is inherited by subtypes together with :c:member:`~PyTypeObject." +"tp_hash`: a subtype inherits :c:member:`~PyTypeObject.tp_richcompare` and :c:" +"member:`~PyTypeObject.tp_hash` when the subtype's :c:member:`~PyTypeObject." +"tp_richcompare` and :c:member:`~PyTypeObject.tp_hash` are both ``NULL``." msgstr "" -#: ../../c-api/typeobj.rst:607 +#: ../../c-api/typeobj.rst:619 msgid "" -"The following constants are defined to be used as the third argument for " -":c:member:`~PyTypeObject.tp_richcompare` and for " -":c:func:`PyObject_RichCompare`:" +"The following constants are defined to be used as the third argument for :c:" +"member:`~PyTypeObject.tp_richcompare` and for :c:func:`PyObject_RichCompare`:" msgstr "" -#: ../../c-api/typeobj.rst:611 +#: ../../c-api/typeobj.rst:623 msgid "Constant" msgstr "Constante" -#: ../../c-api/typeobj.rst:611 +#: ../../c-api/typeobj.rst:623 msgid "Comparison" msgstr "Comparação" -#: ../../c-api/typeobj.rst:613 +#: ../../c-api/typeobj.rst:625 msgid ":const:`Py_LT`" msgstr ":const:`Py_LT`" -#: ../../c-api/typeobj.rst:613 +#: ../../c-api/typeobj.rst:625 msgid "``<``" msgstr "``<``" -#: ../../c-api/typeobj.rst:615 +#: ../../c-api/typeobj.rst:627 msgid ":const:`Py_LE`" msgstr ":const:`Py_LE`" -#: ../../c-api/typeobj.rst:615 +#: ../../c-api/typeobj.rst:627 msgid "``<=``" msgstr "``<=``" -#: ../../c-api/typeobj.rst:617 +#: ../../c-api/typeobj.rst:629 msgid ":const:`Py_EQ`" msgstr ":const:`Py_EQ`" -#: ../../c-api/typeobj.rst:617 +#: ../../c-api/typeobj.rst:629 msgid "``==``" msgstr "``==``" -#: ../../c-api/typeobj.rst:619 +#: ../../c-api/typeobj.rst:631 msgid ":const:`Py_NE`" msgstr ":const:`Py_NE`" -#: ../../c-api/typeobj.rst:619 +#: ../../c-api/typeobj.rst:631 msgid "``!=``" msgstr "``!=``" -#: ../../c-api/typeobj.rst:621 +#: ../../c-api/typeobj.rst:633 msgid ":const:`Py_GT`" msgstr ":const:`Py_GT`" -#: ../../c-api/typeobj.rst:621 +#: ../../c-api/typeobj.rst:633 msgid "``>``" msgstr "``>``" -#: ../../c-api/typeobj.rst:623 +#: ../../c-api/typeobj.rst:635 msgid ":const:`Py_GE`" msgstr ":const:`Py_GE`" -#: ../../c-api/typeobj.rst:623 +#: ../../c-api/typeobj.rst:635 msgid "``>=``" msgstr "``>=``" -#: ../../c-api/typeobj.rst:626 +#: ../../c-api/typeobj.rst:638 msgid "" "The following macro is defined to ease writing rich comparison functions:" msgstr "" -#: ../../c-api/typeobj.rst:630 +#: ../../c-api/typeobj.rst:642 msgid "" "Return ``Py_True`` or ``Py_False`` from the function, depending on the " "result of a comparison. VAL_A and VAL_B must be orderable by C comparison " @@ -863,226 +863,227 @@ msgid "" "specifies the requested operation, as for :c:func:`PyObject_RichCompare`." msgstr "" -#: ../../c-api/typeobj.rst:636 +#: ../../c-api/typeobj.rst:648 msgid "The return value's reference count is properly incremented." msgstr "" -#: ../../c-api/typeobj.rst:638 +#: ../../c-api/typeobj.rst:650 msgid "On error, sets an exception and returns NULL from the function." msgstr "" -#: ../../c-api/typeobj.rst:645 +#: ../../c-api/typeobj.rst:657 msgid "" "If the instances of this type are weakly referenceable, this field is " "greater than zero and contains the offset in the instance structure of the " "weak reference list head (ignoring the GC header, if present); this offset " "is used by :c:func:`PyObject_ClearWeakRefs` and the :c:func:`PyWeakref_\\*` " -"functions. The instance structure needs to include a field of type " -":c:type:`PyObject\\*` which is initialized to ``NULL``." +"functions. The instance structure needs to include a field of type :c:type:" +"`PyObject\\*` which is initialized to ``NULL``." msgstr "" -#: ../../c-api/typeobj.rst:652 +#: ../../c-api/typeobj.rst:664 msgid "" "Do not confuse this field with :c:member:`~PyTypeObject.tp_weaklist`; that " "is the list head for weak references to the type object itself." msgstr "" -#: ../../c-api/typeobj.rst:655 +#: ../../c-api/typeobj.rst:667 msgid "" "This field is inherited by subtypes, but see the rules listed below. A " "subtype may override this offset; this means that the subtype uses a " "different weak reference list head than the base type. Since the list head " -"is always found via :c:member:`~PyTypeObject.tp_weaklistoffset`, this should" -" not be a problem." +"is always found via :c:member:`~PyTypeObject.tp_weaklistoffset`, this should " +"not be a problem." msgstr "" -#: ../../c-api/typeobj.rst:660 +#: ../../c-api/typeobj.rst:672 msgid "" "When a type defined by a class statement has no :attr:`~object.__slots__` " "declaration, and none of its base types are weakly referenceable, the type " "is made weakly referenceable by adding a weak reference list head slot to " -"the instance layout and setting the " -":c:member:`~PyTypeObject.tp_weaklistoffset` of that slot's offset." +"the instance layout and setting the :c:member:`~PyTypeObject." +"tp_weaklistoffset` of that slot's offset." msgstr "" -#: ../../c-api/typeobj.rst:665 +#: ../../c-api/typeobj.rst:677 msgid "" -"When a type's :attr:`__slots__` declaration contains a slot named " -":attr:`__weakref__`, that slot becomes the weak reference list head for " -"instances of the type, and the slot's offset is stored in the type's " -":c:member:`~PyTypeObject.tp_weaklistoffset`." +"When a type's :attr:`__slots__` declaration contains a slot named :attr:" +"`__weakref__`, that slot becomes the weak reference list head for instances " +"of the type, and the slot's offset is stored in the type's :c:member:" +"`~PyTypeObject.tp_weaklistoffset`." msgstr "" -#: ../../c-api/typeobj.rst:670 +#: ../../c-api/typeobj.rst:682 msgid "" -"When a type's :attr:`__slots__` declaration does not contain a slot named " -":attr:`__weakref__`, the type inherits its " -":c:member:`~PyTypeObject.tp_weaklistoffset` from its base type." +"When a type's :attr:`__slots__` declaration does not contain a slot named :" +"attr:`__weakref__`, the type inherits its :c:member:`~PyTypeObject." +"tp_weaklistoffset` from its base type." msgstr "" -#: ../../c-api/typeobj.rst:676 +#: ../../c-api/typeobj.rst:688 msgid "" "An optional pointer to a function that returns an iterator for the object. " "Its presence normally signals that the instances of this type are iterable " "(although sequences may be iterable without this function)." msgstr "" -#: ../../c-api/typeobj.rst:680 +#: ../../c-api/typeobj.rst:692 msgid "This function has the same signature as :c:func:`PyObject_GetIter`." msgstr "" -#: ../../c-api/typeobj.rst:687 +#: ../../c-api/typeobj.rst:699 msgid "" -"An optional pointer to a function that returns the next item in an iterator." -" When the iterator is exhausted, it must return ``NULL``; a " -":exc:`StopIteration` exception may or may not be set. When another error " -"occurs, it must return ``NULL`` too. Its presence signals that the " -"instances of this type are iterators." +"An optional pointer to a function that returns the next item in an iterator. " +"When the iterator is exhausted, it must return ``NULL``; a :exc:" +"`StopIteration` exception may or may not be set. When another error occurs, " +"it must return ``NULL`` too. Its presence signals that the instances of " +"this type are iterators." msgstr "" -#: ../../c-api/typeobj.rst:693 +#: ../../c-api/typeobj.rst:705 msgid "" "Iterator types should also define the :c:member:`~PyTypeObject.tp_iter` " "function, and that function should return the iterator instance itself (not " "a new iterator instance)." msgstr "" -#: ../../c-api/typeobj.rst:697 +#: ../../c-api/typeobj.rst:709 msgid "This function has the same signature as :c:func:`PyIter_Next`." msgstr "" -#: ../../c-api/typeobj.rst:704 +#: ../../c-api/typeobj.rst:716 msgid "" -"An optional pointer to a static ``NULL``-terminated array of " -":c:type:`PyMethodDef` structures, declaring regular methods of this type." +"An optional pointer to a static ``NULL``-terminated array of :c:type:" +"`PyMethodDef` structures, declaring regular methods of this type." msgstr "" -#: ../../c-api/typeobj.rst:707 +#: ../../c-api/typeobj.rst:719 msgid "" -"For each entry in the array, an entry is added to the type's dictionary (see" -" :c:member:`~PyTypeObject.tp_dict` below) containing a method descriptor." +"For each entry in the array, an entry is added to the type's dictionary " +"(see :c:member:`~PyTypeObject.tp_dict` below) containing a method descriptor." msgstr "" -#: ../../c-api/typeobj.rst:710 +#: ../../c-api/typeobj.rst:722 msgid "" "This field is not inherited by subtypes (methods are inherited through a " "different mechanism)." msgstr "" -#: ../../c-api/typeobj.rst:716 +#: ../../c-api/typeobj.rst:728 msgid "" -"An optional pointer to a static ``NULL``-terminated array of " -":c:type:`PyMemberDef` structures, declaring regular data members (fields or " -"slots) of instances of this type." +"An optional pointer to a static ``NULL``-terminated array of :c:type:" +"`PyMemberDef` structures, declaring regular data members (fields or slots) " +"of instances of this type." msgstr "" -#: ../../c-api/typeobj.rst:720 +#: ../../c-api/typeobj.rst:732 msgid "" -"For each entry in the array, an entry is added to the type's dictionary (see" -" :c:member:`~PyTypeObject.tp_dict` below) containing a member descriptor." +"For each entry in the array, an entry is added to the type's dictionary " +"(see :c:member:`~PyTypeObject.tp_dict` below) containing a member descriptor." msgstr "" -#: ../../c-api/typeobj.rst:723 +#: ../../c-api/typeobj.rst:735 msgid "" "This field is not inherited by subtypes (members are inherited through a " "different mechanism)." msgstr "" -#: ../../c-api/typeobj.rst:729 +#: ../../c-api/typeobj.rst:741 msgid "" -"An optional pointer to a static ``NULL``-terminated array of " -":c:type:`PyGetSetDef` structures, declaring computed attributes of instances" -" of this type." +"An optional pointer to a static ``NULL``-terminated array of :c:type:" +"`PyGetSetDef` structures, declaring computed attributes of instances of this " +"type." msgstr "" -#: ../../c-api/typeobj.rst:732 +#: ../../c-api/typeobj.rst:744 msgid "" -"For each entry in the array, an entry is added to the type's dictionary (see" -" :c:member:`~PyTypeObject.tp_dict` below) containing a getset descriptor." +"For each entry in the array, an entry is added to the type's dictionary " +"(see :c:member:`~PyTypeObject.tp_dict` below) containing a getset descriptor." msgstr "" -#: ../../c-api/typeobj.rst:735 +#: ../../c-api/typeobj.rst:747 msgid "" "This field is not inherited by subtypes (computed attributes are inherited " "through a different mechanism)." msgstr "" -#: ../../c-api/typeobj.rst:741 +#: ../../c-api/typeobj.rst:753 msgid "" -"An optional pointer to a base type from which type properties are inherited." -" At this level, only single inheritance is supported; multiple inheritance " -"require dynamically creating a type object by calling the metatype." +"An optional pointer to a base type from which type properties are " +"inherited. At this level, only single inheritance is supported; multiple " +"inheritance require dynamically creating a type object by calling the " +"metatype." msgstr "" -#: ../../c-api/typeobj.rst:745 +#: ../../c-api/typeobj.rst:757 msgid "" "This field is not inherited by subtypes (obviously), but it defaults to " -"``&PyBaseObject_Type`` (which to Python programmers is known as the type " -":class:`object`)." +"``&PyBaseObject_Type`` (which to Python programmers is known as the type :" +"class:`object`)." msgstr "" -#: ../../c-api/typeobj.rst:752 +#: ../../c-api/typeobj.rst:764 msgid "The type's dictionary is stored here by :c:func:`PyType_Ready`." msgstr "" -#: ../../c-api/typeobj.rst:754 +#: ../../c-api/typeobj.rst:766 msgid "" -"This field should normally be initialized to ``NULL`` before PyType_Ready is" -" called; it may also be initialized to a dictionary containing initial " +"This field should normally be initialized to ``NULL`` before PyType_Ready is " +"called; it may also be initialized to a dictionary containing initial " "attributes for the type. Once :c:func:`PyType_Ready` has initialized the " "type, extra attributes for the type may be added to this dictionary only if " "they don't correspond to overloaded operations (like :meth:`__add__`)." msgstr "" -#: ../../c-api/typeobj.rst:760 +#: ../../c-api/typeobj.rst:772 msgid "" "This field is not inherited by subtypes (though the attributes defined in " "here are inherited through a different mechanism)." msgstr "" -#: ../../c-api/typeobj.rst:765 +#: ../../c-api/typeobj.rst:777 msgid "" -"It is not safe to use :c:func:`PyDict_SetItem` on or otherwise modify " -":c:member:`~PyTypeObject.tp_dict` with the dictionary C-API." +"It is not safe to use :c:func:`PyDict_SetItem` on or otherwise modify :c:" +"member:`~PyTypeObject.tp_dict` with the dictionary C-API." msgstr "" -#: ../../c-api/typeobj.rst:771 +#: ../../c-api/typeobj.rst:783 msgid "An optional pointer to a \"descriptor get\" function." msgstr "" -#: ../../c-api/typeobj.rst:773 ../../c-api/typeobj.rst:787 -#: ../../c-api/typeobj.rst:859 ../../c-api/typeobj.rst:881 -#: ../../c-api/typeobj.rst:912 +#: ../../c-api/typeobj.rst:785 ../../c-api/typeobj.rst:799 +#: ../../c-api/typeobj.rst:871 ../../c-api/typeobj.rst:893 +#: ../../c-api/typeobj.rst:924 msgid "The function signature is ::" msgstr "" -#: ../../c-api/typeobj.rst:784 +#: ../../c-api/typeobj.rst:796 msgid "" "An optional pointer to a function for setting and deleting a descriptor's " "value." msgstr "" -#: ../../c-api/typeobj.rst:791 +#: ../../c-api/typeobj.rst:803 msgid "" "The *value* argument is set to ``NULL`` to delete the value. This field is " "inherited by subtypes." msgstr "" -#: ../../c-api/typeobj.rst:799 +#: ../../c-api/typeobj.rst:811 msgid "" "If the instances of this type have a dictionary containing instance " "variables, this field is non-zero and contains the offset in the instances " -"of the type of the instance variable dictionary; this offset is used by " -":c:func:`PyObject_GenericGetAttr`." +"of the type of the instance variable dictionary; this offset is used by :c:" +"func:`PyObject_GenericGetAttr`." msgstr "" -#: ../../c-api/typeobj.rst:804 +#: ../../c-api/typeobj.rst:816 msgid "" "Do not confuse this field with :c:member:`~PyTypeObject.tp_dict`; that is " "the dictionary for attributes of the type object itself." msgstr "" -#: ../../c-api/typeobj.rst:807 +#: ../../c-api/typeobj.rst:819 msgid "" "If the value of this field is greater than zero, it specifies the offset " "from the start of the instance structure. If the value is less than zero, " @@ -1093,53 +1094,52 @@ msgid "" "or :class:`tuple`. Note that the :c:member:`~PyTypeObject.tp_basicsize` " "field should account for the dictionary added to the end in that case, even " "though the dictionary is not included in the basic object layout. On a " -"system with a pointer size of 4 bytes, " -":c:member:`~PyTypeObject.tp_dictoffset` should be set to ``-4`` to indicate " -"that the dictionary is at the very end of the structure." +"system with a pointer size of 4 bytes, :c:member:`~PyTypeObject." +"tp_dictoffset` should be set to ``-4`` to indicate that the dictionary is at " +"the very end of the structure." msgstr "" -#: ../../c-api/typeobj.rst:819 +#: ../../c-api/typeobj.rst:831 msgid "" -"The real dictionary offset in an instance can be computed from a negative " -":c:member:`~PyTypeObject.tp_dictoffset` as follows::" +"The real dictionary offset in an instance can be computed from a negative :c:" +"member:`~PyTypeObject.tp_dictoffset` as follows::" msgstr "" -#: ../../c-api/typeobj.rst:826 +#: ../../c-api/typeobj.rst:838 msgid "" -"where :c:member:`~PyTypeObject.tp_basicsize`, " -":c:member:`~PyTypeObject.tp_itemsize` and " -":c:member:`~PyTypeObject.tp_dictoffset` are taken from the type object, and " -":attr:`ob_size` is taken from the instance. The absolute value is taken " -"because ints use the sign of :attr:`ob_size` to store the sign of the " -"number. (There's never a need to do this calculation yourself; it is done " -"for you by :c:func:`_PyObject_GetDictPtr`.)" +"where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject." +"tp_itemsize` and :c:member:`~PyTypeObject.tp_dictoffset` are taken from the " +"type object, and :attr:`ob_size` is taken from the instance. The absolute " +"value is taken because ints use the sign of :attr:`ob_size` to store the " +"sign of the number. (There's never a need to do this calculation yourself; " +"it is done for you by :c:func:`_PyObject_GetDictPtr`.)" msgstr "" -#: ../../c-api/typeobj.rst:832 +#: ../../c-api/typeobj.rst:844 msgid "" "This field is inherited by subtypes, but see the rules listed below. A " "subtype may override this offset; this means that the subtype instances " "store the dictionary at a difference offset than the base type. Since the " -"dictionary is always found via :c:member:`~PyTypeObject.tp_dictoffset`, this" -" should not be a problem." +"dictionary is always found via :c:member:`~PyTypeObject.tp_dictoffset`, this " +"should not be a problem." msgstr "" -#: ../../c-api/typeobj.rst:837 +#: ../../c-api/typeobj.rst:849 msgid "" "When a type defined by a class statement has no :attr:`~object.__slots__` " -"declaration, and none of its base types has an instance variable dictionary," -" a dictionary slot is added to the instance layout and the " -":c:member:`~PyTypeObject.tp_dictoffset` is set to that slot's offset." +"declaration, and none of its base types has an instance variable dictionary, " +"a dictionary slot is added to the instance layout and the :c:member:" +"`~PyTypeObject.tp_dictoffset` is set to that slot's offset." msgstr "" -#: ../../c-api/typeobj.rst:842 +#: ../../c-api/typeobj.rst:854 msgid "" "When a type defined by a class statement has a :attr:`__slots__` " "declaration, the type inherits its :c:member:`~PyTypeObject.tp_dictoffset` " "from its base type." msgstr "" -#: ../../c-api/typeobj.rst:845 +#: ../../c-api/typeobj.rst:857 msgid "" "(Adding a slot named :attr:`~object.__dict__` to the :attr:`__slots__` " "declaration does not have the expected effect, it just causes confusion. " @@ -1147,258 +1147,258 @@ msgid "" "though.)" msgstr "" -#: ../../c-api/typeobj.rst:852 +#: ../../c-api/typeobj.rst:864 msgid "An optional pointer to an instance initialization function." msgstr "" -#: ../../c-api/typeobj.rst:854 +#: ../../c-api/typeobj.rst:866 msgid "" -"This function corresponds to the :meth:`__init__` method of classes. Like " -":meth:`__init__`, it is possible to create an instance without calling " -":meth:`__init__`, and it is possible to reinitialize an instance by calling " -"its :meth:`__init__` method again." +"This function corresponds to the :meth:`__init__` method of classes. Like :" +"meth:`__init__`, it is possible to create an instance without calling :meth:" +"`__init__`, and it is possible to reinitialize an instance by calling its :" +"meth:`__init__` method again." msgstr "" -#: ../../c-api/typeobj.rst:863 +#: ../../c-api/typeobj.rst:875 msgid "" "The self argument is the instance to be initialized; the *args* and *kwds* " -"arguments represent positional and keyword arguments of the call to " -":meth:`__init__`." +"arguments represent positional and keyword arguments of the call to :meth:" +"`__init__`." msgstr "" -#: ../../c-api/typeobj.rst:867 +#: ../../c-api/typeobj.rst:879 msgid "" "The :c:member:`~PyTypeObject.tp_init` function, if not ``NULL``, is called " -"when an instance is created normally by calling its type, after the type's " -":c:member:`~PyTypeObject.tp_new` function has returned an instance of the " +"when an instance is created normally by calling its type, after the type's :" +"c:member:`~PyTypeObject.tp_new` function has returned an instance of the " "type. If the :c:member:`~PyTypeObject.tp_new` function returns an instance " -"of some other type that is not a subtype of the original type, no " -":c:member:`~PyTypeObject.tp_init` function is called; if " -":c:member:`~PyTypeObject.tp_new` returns an instance of a subtype of the " -"original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called." +"of some other type that is not a subtype of the original type, no :c:member:" +"`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject." +"tp_new` returns an instance of a subtype of the original type, the " +"subtype's :c:member:`~PyTypeObject.tp_init` is called." msgstr "" -#: ../../c-api/typeobj.rst:879 +#: ../../c-api/typeobj.rst:891 msgid "An optional pointer to an instance allocation function." msgstr "" -#: ../../c-api/typeobj.rst:885 +#: ../../c-api/typeobj.rst:897 msgid "" "The purpose of this function is to separate memory allocation from memory " -"initialization. It should return a pointer to a block of memory of adequate" -" length for the instance, suitably aligned, and initialized to zeros, but " +"initialization. It should return a pointer to a block of memory of adequate " +"length for the instance, suitably aligned, and initialized to zeros, but " "with :attr:`ob_refcnt` set to ``1`` and :attr:`ob_type` set to the type " "argument. If the type's :c:member:`~PyTypeObject.tp_itemsize` is non-zero, " -"the object's :attr:`ob_size` field should be initialized to *nitems* and the" -" length of the allocated memory block should be ``tp_basicsize + " +"the object's :attr:`ob_size` field should be initialized to *nitems* and the " +"length of the allocated memory block should be ``tp_basicsize + " "nitems*tp_itemsize``, rounded up to a multiple of ``sizeof(void*)``; " -"otherwise, *nitems* is not used and the length of the block should be " -":c:member:`~PyTypeObject.tp_basicsize`." +"otherwise, *nitems* is not used and the length of the block should be :c:" +"member:`~PyTypeObject.tp_basicsize`." msgstr "" -#: ../../c-api/typeobj.rst:895 +#: ../../c-api/typeobj.rst:907 msgid "" "Do not use this function to do any other instance initialization, not even " -"to allocate additional memory; that should be done by " -":c:member:`~PyTypeObject.tp_new`." +"to allocate additional memory; that should be done by :c:member:" +"`~PyTypeObject.tp_new`." msgstr "" -#: ../../c-api/typeobj.rst:898 +#: ../../c-api/typeobj.rst:910 msgid "" "This field is inherited by static subtypes, but not by dynamic subtypes " -"(subtypes created by a class statement); in the latter, this field is always" -" set to :c:func:`PyType_GenericAlloc`, to force a standard heap allocation " +"(subtypes created by a class statement); in the latter, this field is always " +"set to :c:func:`PyType_GenericAlloc`, to force a standard heap allocation " "strategy. That is also the recommended value for statically defined types." msgstr "" -#: ../../c-api/typeobj.rst:906 +#: ../../c-api/typeobj.rst:918 msgid "An optional pointer to an instance creation function." msgstr "" -#: ../../c-api/typeobj.rst:908 +#: ../../c-api/typeobj.rst:920 msgid "" "If this function is ``NULL`` for a particular type, that type cannot be " -"called to create new instances; presumably there is some other way to create" -" instances, like a factory function." +"called to create new instances; presumably there is some other way to create " +"instances, like a factory function." msgstr "" -#: ../../c-api/typeobj.rst:916 +#: ../../c-api/typeobj.rst:928 msgid "" -"The subtype argument is the type of the object being created; the *args* and" -" *kwds* arguments represent positional and keyword arguments of the call to " -"the type. Note that subtype doesn't have to equal the type whose " -":c:member:`~PyTypeObject.tp_new` function is called; it may be a subtype of " -"that type (but not an unrelated type)." +"The subtype argument is the type of the object being created; the *args* and " +"*kwds* arguments represent positional and keyword arguments of the call to " +"the type. Note that subtype doesn't have to equal the type whose :c:member:" +"`~PyTypeObject.tp_new` function is called; it may be a subtype of that type " +"(but not an unrelated type)." msgstr "" -#: ../../c-api/typeobj.rst:922 +#: ../../c-api/typeobj.rst:934 msgid "" -"The :c:member:`~PyTypeObject.tp_new` function should call " -"``subtype->tp_alloc(subtype, nitems)`` to allocate space for the object, and" -" then do only as much further initialization as is absolutely necessary. " +"The :c:member:`~PyTypeObject.tp_new` function should call ``subtype-" +">tp_alloc(subtype, nitems)`` to allocate space for the object, and then do " +"only as much further initialization as is absolutely necessary. " "Initialization that can safely be ignored or repeated should be placed in " -"the :c:member:`~PyTypeObject.tp_init` handler. A good rule of thumb is that" -" for immutable types, all initialization should take place in " -":c:member:`~PyTypeObject.tp_new`, while for mutable types, most " -"initialization should be deferred to :c:member:`~PyTypeObject.tp_init`." +"the :c:member:`~PyTypeObject.tp_init` handler. A good rule of thumb is that " +"for immutable types, all initialization should take place in :c:member:" +"`~PyTypeObject.tp_new`, while for mutable types, most initialization should " +"be deferred to :c:member:`~PyTypeObject.tp_init`." msgstr "" -#: ../../c-api/typeobj.rst:930 +#: ../../c-api/typeobj.rst:942 msgid "" "This field is inherited by subtypes, except it is not inherited by static " "types whose :c:member:`~PyTypeObject.tp_base` is ``NULL`` or " "``&PyBaseObject_Type``." msgstr "" -#: ../../c-api/typeobj.rst:936 +#: ../../c-api/typeobj.rst:948 msgid "" -"An optional pointer to an instance deallocation function. Its signature is " -":c:type:`freefunc`::" +"An optional pointer to an instance deallocation function. Its signature is :" +"c:type:`freefunc`::" msgstr "" -#: ../../c-api/typeobj.rst:941 +#: ../../c-api/typeobj.rst:953 msgid "" -"An initializer that is compatible with this signature is " -":c:func:`PyObject_Free`." +"An initializer that is compatible with this signature is :c:func:" +"`PyObject_Free`." msgstr "" -#: ../../c-api/typeobj.rst:943 +#: ../../c-api/typeobj.rst:955 msgid "" "This field is inherited by static subtypes, but not by dynamic subtypes " -"(subtypes created by a class statement); in the latter, this field is set to" -" a deallocator suitable to match :c:func:`PyType_GenericAlloc` and the value" -" of the :const:`Py_TPFLAGS_HAVE_GC` flag bit." +"(subtypes created by a class statement); in the latter, this field is set to " +"a deallocator suitable to match :c:func:`PyType_GenericAlloc` and the value " +"of the :const:`Py_TPFLAGS_HAVE_GC` flag bit." msgstr "" -#: ../../c-api/typeobj.rst:951 +#: ../../c-api/typeobj.rst:963 msgid "An optional pointer to a function called by the garbage collector." msgstr "" -#: ../../c-api/typeobj.rst:953 +#: ../../c-api/typeobj.rst:965 msgid "" "The garbage collector needs to know whether a particular object is " "collectible or not. Normally, it is sufficient to look at the object's " -"type's :c:member:`~PyTypeObject.tp_flags` field, and check the " -":const:`Py_TPFLAGS_HAVE_GC` flag bit. But some types have a mixture of " -"statically and dynamically allocated instances, and the statically allocated" -" instances are not collectible. Such types should define this function; it " -"should return ``1`` for a collectible instance, and ``0`` for a non-" -"collectible instance. The signature is ::" +"type's :c:member:`~PyTypeObject.tp_flags` field, and check the :const:" +"`Py_TPFLAGS_HAVE_GC` flag bit. But some types have a mixture of statically " +"and dynamically allocated instances, and the statically allocated instances " +"are not collectible. Such types should define this function; it should " +"return ``1`` for a collectible instance, and ``0`` for a non-collectible " +"instance. The signature is ::" msgstr "" -#: ../../c-api/typeobj.rst:963 +#: ../../c-api/typeobj.rst:975 msgid "" -"(The only example of this are types themselves. The metatype, " -":c:data:`PyType_Type`, defines this function to distinguish between " -"statically and dynamically allocated types.)" +"(The only example of this are types themselves. The metatype, :c:data:" +"`PyType_Type`, defines this function to distinguish between statically and " +"dynamically allocated types.)" msgstr "" -#: ../../c-api/typeobj.rst:972 +#: ../../c-api/typeobj.rst:984 msgid "Tuple of base types." msgstr "" -#: ../../c-api/typeobj.rst:974 +#: ../../c-api/typeobj.rst:986 msgid "" "This is set for types created by a class statement. It should be ``NULL`` " "for statically defined types." msgstr "" -#: ../../c-api/typeobj.rst:977 +#: ../../c-api/typeobj.rst:989 msgid "This field is not inherited." msgstr "" -#: ../../c-api/typeobj.rst:982 +#: ../../c-api/typeobj.rst:994 msgid "" "Tuple containing the expanded set of base types, starting with the type " "itself and ending with :class:`object`, in Method Resolution Order." msgstr "" -#: ../../c-api/typeobj.rst:985 +#: ../../c-api/typeobj.rst:997 msgid "" -"This field is not inherited; it is calculated fresh by " -":c:func:`PyType_Ready`." +"This field is not inherited; it is calculated fresh by :c:func:" +"`PyType_Ready`." msgstr "" -#: ../../c-api/typeobj.rst:990 +#: ../../c-api/typeobj.rst:1002 msgid "" -"An optional pointer to an instance finalization function. Its signature is " -":c:type:`destructor`::" +"An optional pointer to an instance finalization function. Its signature is :" +"c:type:`destructor`::" msgstr "" -#: ../../c-api/typeobj.rst:995 +#: ../../c-api/typeobj.rst:1007 msgid "" "If :c:member:`~PyTypeObject.tp_finalize` is set, the interpreter calls it " "once when finalizing an instance. It is called either from the garbage " "collector (if the instance is part of an isolated reference cycle) or just " -"before the object is deallocated. Either way, it is guaranteed to be called" -" before attempting to break reference cycles, ensuring that it finds the " +"before the object is deallocated. Either way, it is guaranteed to be called " +"before attempting to break reference cycles, ensuring that it finds the " "object in a sane state." msgstr "" -#: ../../c-api/typeobj.rst:1002 +#: ../../c-api/typeobj.rst:1014 msgid "" ":c:member:`~PyTypeObject.tp_finalize` should not mutate the current " "exception status; therefore, a recommended way to write a non-trivial " "finalizer is::" msgstr "" -#: ../../c-api/typeobj.rst:1019 +#: ../../c-api/typeobj.rst:1031 msgid "" -"For this field to be taken into account (even through inheritance), you must" -" also set the :const:`Py_TPFLAGS_HAVE_FINALIZE` flags bit." +"For this field to be taken into account (even through inheritance), you must " +"also set the :const:`Py_TPFLAGS_HAVE_FINALIZE` flags bit." msgstr "" -#: ../../c-api/typeobj.rst:1026 +#: ../../c-api/typeobj.rst:1038 msgid "\"Safe object finalization\" (:pep:`442`)" msgstr "\"Safe object finalization\" (:pep:`442`)" -#: ../../c-api/typeobj.rst:1031 +#: ../../c-api/typeobj.rst:1043 msgid "Unused. Not inherited. Internal use only." msgstr "" -#: ../../c-api/typeobj.rst:1036 +#: ../../c-api/typeobj.rst:1048 msgid "" "List of weak references to subclasses. Not inherited. Internal use only." msgstr "" -#: ../../c-api/typeobj.rst:1041 +#: ../../c-api/typeobj.rst:1053 msgid "" "Weak reference list head, for weak references to this type object. Not " "inherited. Internal use only." msgstr "" -#: ../../c-api/typeobj.rst:1044 +#: ../../c-api/typeobj.rst:1056 msgid "" -"The remaining fields are only defined if the feature test macro " -":const:`COUNT_ALLOCS` is defined, and are for internal use only. They are " +"The remaining fields are only defined if the feature test macro :const:" +"`COUNT_ALLOCS` is defined, and are for internal use only. They are " "documented here for completeness. None of these fields are inherited by " "subtypes." msgstr "" -#: ../../c-api/typeobj.rst:1052 +#: ../../c-api/typeobj.rst:1064 msgid "Number of allocations." msgstr "" -#: ../../c-api/typeobj.rst:1057 +#: ../../c-api/typeobj.rst:1069 msgid "Number of frees." msgstr "" -#: ../../c-api/typeobj.rst:1062 +#: ../../c-api/typeobj.rst:1074 msgid "Maximum simultaneously allocated objects." msgstr "" -#: ../../c-api/typeobj.rst:1067 +#: ../../c-api/typeobj.rst:1079 msgid "" -"Pointer to the next type object with a non-zero " -":c:member:`~PyTypeObject.tp_allocs` field." +"Pointer to the next type object with a non-zero :c:member:`~PyTypeObject." +"tp_allocs` field." msgstr "" -#: ../../c-api/typeobj.rst:1069 +#: ../../c-api/typeobj.rst:1081 msgid "" "Also, note that, in a garbage collected Python, tp_dealloc may be called " -"from any Python thread, not just the thread which created the object (if the" -" object becomes part of a refcount cycle, that cycle might be collected by a" -" garbage collection on any thread). This is not a problem for Python API " +"from any Python thread, not just the thread which created the object (if the " +"object becomes part of a refcount cycle, that cycle might be collected by a " +"garbage collection on any thread). This is not a problem for Python API " "calls, since the thread on which tp_dealloc is called will own the Global " "Interpreter Lock (GIL). However, if the object being destroyed in turn " "destroys objects from some other C or C++ library, care should be taken to " @@ -1406,22 +1406,22 @@ msgid "" "will not violate any assumptions of the library." msgstr "" -#: ../../c-api/typeobj.rst:1083 +#: ../../c-api/typeobj.rst:1095 msgid "Number Object Structures" msgstr "" -#: ../../c-api/typeobj.rst:1090 +#: ../../c-api/typeobj.rst:1102 msgid "" "This structure holds pointers to the functions which an object uses to " "implement the number protocol. Each function is used by the function of " "similar name documented in the :ref:`number` section." msgstr "" -#: ../../c-api/typeobj.rst:1094 ../../c-api/typeobj.rst:1381 +#: ../../c-api/typeobj.rst:1106 ../../c-api/typeobj.rst:1393 msgid "Here is the structure definition::" msgstr "" -#: ../../c-api/typeobj.rst:1141 +#: ../../c-api/typeobj.rst:1153 msgid "" "Binary and ternary functions must check the type of all their operands, and " "implement the necessary conversions (at least one of the operands is an " @@ -1431,81 +1431,80 @@ msgid "" "and set an exception." msgstr "" -#: ../../c-api/typeobj.rst:1150 +#: ../../c-api/typeobj.rst:1162 msgid "" "The :c:data:`nb_reserved` field should always be ``NULL``. It was " "previously called :c:data:`nb_long`, and was renamed in Python 3.0.1." msgstr "" -#: ../../c-api/typeobj.rst:1158 +#: ../../c-api/typeobj.rst:1170 msgid "Mapping Object Structures" msgstr "" -#: ../../c-api/typeobj.rst:1165 +#: ../../c-api/typeobj.rst:1177 msgid "" "This structure holds pointers to the functions which an object uses to " "implement the mapping protocol. It has three members:" msgstr "" -#: ../../c-api/typeobj.rst:1170 +#: ../../c-api/typeobj.rst:1182 msgid "" -"This function is used by :c:func:`PyMapping_Size` and " -":c:func:`PyObject_Size`, and has the same signature. This slot may be set " -"to ``NULL`` if the object has no defined length." +"This function is used by :c:func:`PyMapping_Size` and :c:func:" +"`PyObject_Size`, and has the same signature. This slot may be set to " +"``NULL`` if the object has no defined length." msgstr "" -#: ../../c-api/typeobj.rst:1176 +#: ../../c-api/typeobj.rst:1188 msgid "" -"This function is used by :c:func:`PyObject_GetItem` and " -":c:func:`PySequence_GetSlice`, and has the same signature as " -":c:func:`!PyObject_GetItem`. This slot must be filled for the " -":c:func:`PyMapping_Check` function to return ``1``, it can be ``NULL`` " -"otherwise." +"This function is used by :c:func:`PyObject_GetItem` and :c:func:" +"`PySequence_GetSlice`, and has the same signature as :c:func:`!" +"PyObject_GetItem`. This slot must be filled for the :c:func:" +"`PyMapping_Check` function to return ``1``, it can be ``NULL`` otherwise." msgstr "" -#: ../../c-api/typeobj.rst:1184 +#: ../../c-api/typeobj.rst:1196 msgid "" -"This function is used by :c:func:`PyObject_SetItem`, " -":c:func:`PyObject_DelItem`, :c:func:`PyObject_SetSlice` and " -":c:func:`PyObject_DelSlice`. It has the same signature as " -":c:func:`!PyObject_SetItem`, but *v* can also be set to ``NULL`` to delete " -"an item. If this slot is ``NULL``, the object does not support item " -"assignment and deletion." +"This function is used by :c:func:`PyObject_SetItem`, :c:func:" +"`PyObject_DelItem`, :c:func:`PyObject_SetSlice` and :c:func:" +"`PyObject_DelSlice`. It has the same signature as :c:func:`!" +"PyObject_SetItem`, but *v* can also be set to ``NULL`` to delete an item. " +"If this slot is ``NULL``, the object does not support item assignment and " +"deletion." msgstr "" -#: ../../c-api/typeobj.rst:1195 +#: ../../c-api/typeobj.rst:1207 msgid "Sequence Object Structures" msgstr "" -#: ../../c-api/typeobj.rst:1202 +#: ../../c-api/typeobj.rst:1214 msgid "" "This structure holds pointers to the functions which an object uses to " "implement the sequence protocol." msgstr "" -#: ../../c-api/typeobj.rst:1207 +#: ../../c-api/typeobj.rst:1219 msgid "" -"This function is used by :c:func:`PySequence_Size` and " -":c:func:`PyObject_Size`, and has the same signature. It is also used for " -"handling negative indices via the :c:member:`~PySequenceMethods.sq_item` and" -" the :c:member:`~PySequenceMethods.sq_ass_item` slots." +"This function is used by :c:func:`PySequence_Size` and :c:func:" +"`PyObject_Size`, and has the same signature. It is also used for handling " +"negative indices via the :c:member:`~PySequenceMethods.sq_item` and the :c:" +"member:`~PySequenceMethods.sq_ass_item` slots." msgstr "" -#: ../../c-api/typeobj.rst:1214 +#: ../../c-api/typeobj.rst:1226 msgid "" "This function is used by :c:func:`PySequence_Concat` and has the same " "signature. It is also used by the ``+`` operator, after trying the numeric " "addition via the :c:member:`~PyNumberMethods.nb_add` slot." msgstr "" -#: ../../c-api/typeobj.rst:1220 +#: ../../c-api/typeobj.rst:1232 msgid "" "This function is used by :c:func:`PySequence_Repeat` and has the same " "signature. It is also used by the ``*`` operator, after trying numeric " "multiplication via the :c:member:`~PyNumberMethods.nb_multiply` slot." msgstr "" -#: ../../c-api/typeobj.rst:1226 +#: ../../c-api/typeobj.rst:1238 msgid "" "This function is used by :c:func:`PySequence_GetItem` and has the same " "signature. It is also used by :c:func:`PyObject_GetItem`, after trying the " @@ -1514,118 +1513,116 @@ msgid "" "``1``, it can be ``NULL`` otherwise." msgstr "" -#: ../../c-api/typeobj.rst:1232 +#: ../../c-api/typeobj.rst:1244 msgid "" "Negative indexes are handled as follows: if the :attr:`sq_length` slot is " "filled, it is called and the sequence length is used to compute a positive " -"index which is passed to :attr:`sq_item`. If :attr:`sq_length` is ``NULL``," -" the index is passed as is to the function." +"index which is passed to :attr:`sq_item`. If :attr:`sq_length` is ``NULL``, " +"the index is passed as is to the function." msgstr "" -#: ../../c-api/typeobj.rst:1239 +#: ../../c-api/typeobj.rst:1251 msgid "" "This function is used by :c:func:`PySequence_SetItem` and has the same " -"signature. It is also used by :c:func:`PyObject_SetItem` and " -":c:func:`PyObject_DelItem`, after trying the item assignment and deletion " -"via the :c:member:`~PyMappingMethods.mp_ass_subscript` slot. This slot may " -"be left to ``NULL`` if the object does not support item assignment and " -"deletion." +"signature. It is also used by :c:func:`PyObject_SetItem` and :c:func:" +"`PyObject_DelItem`, after trying the item assignment and deletion via the :c:" +"member:`~PyMappingMethods.mp_ass_subscript` slot. This slot may be left to " +"``NULL`` if the object does not support item assignment and deletion." msgstr "" -#: ../../c-api/typeobj.rst:1248 +#: ../../c-api/typeobj.rst:1260 msgid "" "This function may be used by :c:func:`PySequence_Contains` and has the same " -"signature. This slot may be left to ``NULL``, in this case " -":c:func:`!PySequence_Contains` simply traverses the sequence until it finds " -"a match." +"signature. This slot may be left to ``NULL``, in this case :c:func:`!" +"PySequence_Contains` simply traverses the sequence until it finds a match." msgstr "" -#: ../../c-api/typeobj.rst:1255 +#: ../../c-api/typeobj.rst:1267 msgid "" -"This function is used by :c:func:`PySequence_InPlaceConcat` and has the same" -" signature. It should modify its first operand, and return it. This slot " +"This function is used by :c:func:`PySequence_InPlaceConcat` and has the same " +"signature. It should modify its first operand, and return it. This slot " "may be left to ``NULL``, in this case :c:func:`!PySequence_InPlaceConcat` " "will fall back to :c:func:`PySequence_Concat`. It is also used by the " -"augmented assignment ``+=``, after trying numeric in-place addition via the " -":c:member:`~PyNumberMethods.nb_inplace_add` slot." +"augmented assignment ``+=``, after trying numeric in-place addition via the :" +"c:member:`~PyNumberMethods.nb_inplace_add` slot." msgstr "" -#: ../../c-api/typeobj.rst:1264 +#: ../../c-api/typeobj.rst:1276 msgid "" -"This function is used by :c:func:`PySequence_InPlaceRepeat` and has the same" -" signature. It should modify its first operand, and return it. This slot " +"This function is used by :c:func:`PySequence_InPlaceRepeat` and has the same " +"signature. It should modify its first operand, and return it. This slot " "may be left to ``NULL``, in this case :c:func:`!PySequence_InPlaceRepeat` " "will fall back to :c:func:`PySequence_Repeat`. It is also used by the " "augmented assignment ``*=``, after trying numeric in-place multiplication " "via the :c:member:`~PyNumberMethods.nb_inplace_multiply` slot." msgstr "" -#: ../../c-api/typeobj.rst:1275 +#: ../../c-api/typeobj.rst:1287 msgid "Buffer Object Structures" msgstr "" -#: ../../c-api/typeobj.rst:1283 +#: ../../c-api/typeobj.rst:1295 msgid "" "This structure holds pointers to the functions required by the :ref:`Buffer " "protocol `. The protocol defines how an exporter object can " "expose its internal data to consumer objects." msgstr "" -#: ../../c-api/typeobj.rst:1289 ../../c-api/typeobj.rst:1338 -#: ../../c-api/typeobj.rst:1391 ../../c-api/typeobj.rst:1402 -#: ../../c-api/typeobj.rst:1413 +#: ../../c-api/typeobj.rst:1301 ../../c-api/typeobj.rst:1350 +#: ../../c-api/typeobj.rst:1403 ../../c-api/typeobj.rst:1414 +#: ../../c-api/typeobj.rst:1425 msgid "The signature of this function is::" msgstr "" -#: ../../c-api/typeobj.rst:1293 +#: ../../c-api/typeobj.rst:1305 msgid "" "Handle a request to *exporter* to fill in *view* as specified by *flags*. " "Except for point (3), an implementation of this function MUST take these " "steps:" msgstr "" -#: ../../c-api/typeobj.rst:1297 +#: ../../c-api/typeobj.rst:1309 msgid "" "Check if the request can be met. If not, raise :c:data:`PyExc_BufferError`, " "set :c:data:`view->obj` to ``NULL`` and return ``-1``." msgstr "" -#: ../../c-api/typeobj.rst:1300 +#: ../../c-api/typeobj.rst:1312 msgid "Fill in the requested fields." msgstr "" -#: ../../c-api/typeobj.rst:1302 +#: ../../c-api/typeobj.rst:1314 msgid "Increment an internal counter for the number of exports." msgstr "" -#: ../../c-api/typeobj.rst:1304 +#: ../../c-api/typeobj.rst:1316 msgid "" "Set :c:data:`view->obj` to *exporter* and increment :c:data:`view->obj`." msgstr "" -#: ../../c-api/typeobj.rst:1306 +#: ../../c-api/typeobj.rst:1318 msgid "Return ``0``." msgstr "Retorna ``0``." -#: ../../c-api/typeobj.rst:1308 +#: ../../c-api/typeobj.rst:1320 msgid "" "If *exporter* is part of a chain or tree of buffer providers, two main " "schemes can be used:" msgstr "" -#: ../../c-api/typeobj.rst:1311 +#: ../../c-api/typeobj.rst:1323 msgid "" -"Re-export: Each member of the tree acts as the exporting object and sets " -":c:data:`view->obj` to a new reference to itself." +"Re-export: Each member of the tree acts as the exporting object and sets :c:" +"data:`view->obj` to a new reference to itself." msgstr "" -#: ../../c-api/typeobj.rst:1314 +#: ../../c-api/typeobj.rst:1326 msgid "" "Redirect: The buffer request is redirected to the root object of the tree. " "Here, :c:data:`view->obj` will be a new reference to the root object." msgstr "" -#: ../../c-api/typeobj.rst:1318 +#: ../../c-api/typeobj.rst:1330 msgid "" "The individual fields of *view* are described in section :ref:`Buffer " "structure `, the rules how an exporter must react to " @@ -1633,28 +1630,28 @@ msgid "" "types>`." msgstr "" -#: ../../c-api/typeobj.rst:1323 +#: ../../c-api/typeobj.rst:1335 msgid "" "All memory pointed to in the :c:type:`Py_buffer` structure belongs to the " -"exporter and must remain valid until there are no consumers left. " -":c:member:`~Py_buffer.format`, :c:member:`~Py_buffer.shape`, " -":c:member:`~Py_buffer.strides`, :c:member:`~Py_buffer.suboffsets` and " -":c:member:`~Py_buffer.internal` are read-only for the consumer." +"exporter and must remain valid until there are no consumers left. :c:member:" +"`~Py_buffer.format`, :c:member:`~Py_buffer.shape`, :c:member:`~Py_buffer." +"strides`, :c:member:`~Py_buffer.suboffsets` and :c:member:`~Py_buffer." +"internal` are read-only for the consumer." msgstr "" -#: ../../c-api/typeobj.rst:1330 +#: ../../c-api/typeobj.rst:1342 msgid "" ":c:func:`PyBuffer_FillInfo` provides an easy way of exposing a simple bytes " "buffer while dealing correctly with all request types." msgstr "" -#: ../../c-api/typeobj.rst:1333 +#: ../../c-api/typeobj.rst:1345 msgid "" ":c:func:`PyObject_GetBuffer` is the interface for the consumer that wraps " "this function." msgstr "" -#: ../../c-api/typeobj.rst:1342 +#: ../../c-api/typeobj.rst:1354 msgid "" "Handle a request to release the resources of the buffer. If no resources " "need to be released, :c:member:`PyBufferProcs.bf_releasebuffer` may be " @@ -1662,15 +1659,15 @@ msgid "" "these optional steps:" msgstr "" -#: ../../c-api/typeobj.rst:1347 +#: ../../c-api/typeobj.rst:1359 msgid "Decrement an internal counter for the number of exports." msgstr "" -#: ../../c-api/typeobj.rst:1349 +#: ../../c-api/typeobj.rst:1361 msgid "If the counter is ``0``, free all memory associated with *view*." msgstr "" -#: ../../c-api/typeobj.rst:1351 +#: ../../c-api/typeobj.rst:1363 msgid "" "The exporter MUST use the :c:member:`~Py_buffer.internal` field to keep " "track of buffer-specific resources. This field is guaranteed to remain " @@ -1678,53 +1675,53 @@ msgid "" "*view* argument." msgstr "" -#: ../../c-api/typeobj.rst:1357 +#: ../../c-api/typeobj.rst:1369 msgid "" "This function MUST NOT decrement :c:data:`view->obj`, since that is done " "automatically in :c:func:`PyBuffer_Release` (this scheme is useful for " "breaking reference cycles)." msgstr "" -#: ../../c-api/typeobj.rst:1362 +#: ../../c-api/typeobj.rst:1374 msgid "" -":c:func:`PyBuffer_Release` is the interface for the consumer that wraps this" -" function." +":c:func:`PyBuffer_Release` is the interface for the consumer that wraps this " +"function." msgstr "" -#: ../../c-api/typeobj.rst:1370 +#: ../../c-api/typeobj.rst:1382 msgid "Async Object Structures" msgstr "" -#: ../../c-api/typeobj.rst:1378 +#: ../../c-api/typeobj.rst:1390 msgid "" -"This structure holds pointers to the functions required to implement " -":term:`awaitable` and :term:`asynchronous iterator` objects." +"This structure holds pointers to the functions required to implement :term:" +"`awaitable` and :term:`asynchronous iterator` objects." msgstr "" -#: ../../c-api/typeobj.rst:1395 +#: ../../c-api/typeobj.rst:1407 msgid "" "The returned object must be an iterator, i.e. :c:func:`PyIter_Check` must " "return ``1`` for it." msgstr "" -#: ../../c-api/typeobj.rst:1398 +#: ../../c-api/typeobj.rst:1410 msgid "" "This slot may be set to ``NULL`` if an object is not an :term:`awaitable`." msgstr "" -#: ../../c-api/typeobj.rst:1406 +#: ../../c-api/typeobj.rst:1418 msgid "" "Must return an :term:`awaitable` object. See :meth:`__anext__` for details." msgstr "" -#: ../../c-api/typeobj.rst:1408 +#: ../../c-api/typeobj.rst:1420 msgid "" "This slot may be set to ``NULL`` if an object does not implement " "asynchronous iteration protocol." msgstr "" -#: ../../c-api/typeobj.rst:1417 +#: ../../c-api/typeobj.rst:1429 msgid "" -"Must return an :term:`awaitable` object. See :meth:`__anext__` for details." -" This slot may be set to ``NULL``." +"Must return an :term:`awaitable` object. See :meth:`__anext__` for details. " +"This slot may be set to ``NULL``." msgstr "" diff --git a/c-api/unicode.po b/c-api/unicode.po index fe5dbd90f..98691b5aa 100644 --- a/c-api/unicode.po +++ b/c-api/unicode.po @@ -1,24 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Juliana Karoline , 2019 # Rafael Fontenelle , 2019 # Tiago Henrique , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Julio Gadioli Soares , 2019 -# +# Sheila Gomes , 2019 +# Marco Rougeth , 2020 +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:41+0000\n" -"Last-Translator: Julio Gadioli Soares , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,8 +57,8 @@ msgstr "" #: ../../c-api/unicode.rst:25 msgid "" -"Due to the transition between the old APIs and the new APIs, Unicode objects" -" can internally be in two states depending on how they were created:" +"Due to the transition between the old APIs and the new APIs, Unicode objects " +"can internally be in two states depending on how they were created:" msgstr "" #: ../../c-api/unicode.rst:28 @@ -67,9 +71,9 @@ msgstr "" #: ../../c-api/unicode.rst:32 msgid "" "\"legacy\" Unicode objects have been created through one of the deprecated " -"APIs (typically :c:func:`PyUnicode_FromUnicode`) and only bear the " -":c:type:`Py_UNICODE*` representation; you will have to call " -":c:func:`PyUnicode_READY` on them before calling any other API." +"APIs (typically :c:func:`PyUnicode_FromUnicode`) and only bear the :c:type:" +"`Py_UNICODE*` representation; you will have to call :c:func:" +"`PyUnicode_READY` on them before calling any other API." msgstr "" #: ../../c-api/unicode.rst:39 @@ -78,8 +82,8 @@ msgstr "" #: ../../c-api/unicode.rst:41 msgid "" -"These are the basic Unicode object types used for the Unicode implementation" -" in Python:" +"These are the basic Unicode object types used for the Unicode implementation " +"in Python:" msgstr "" #: ../../c-api/unicode.rst:48 @@ -111,14 +115,14 @@ msgstr "" #: ../../c-api/unicode.rst:79 msgid "" -"This instance of :c:type:`PyTypeObject` represents the Python Unicode type." -" It is exposed to Python code as ``str``." +"This instance of :c:type:`PyTypeObject` represents the Python Unicode type. " +"It is exposed to Python code as ``str``." msgstr "" #: ../../c-api/unicode.rst:83 msgid "" -"The following APIs are really C macros and can be used to do fast checks and" -" to access internal read-only data of Unicode objects:" +"The following APIs are really C macros and can be used to do fast checks and " +"to access internal read-only data of Unicode objects:" msgstr "" #: ../../c-api/unicode.rst:88 @@ -155,9 +159,9 @@ msgstr "" msgid "" "Return a pointer to the canonical representation cast to UCS1, UCS2 or UCS4 " "integer types for direct character access. No checks are performed if the " -"canonical representation has the correct character size; use " -":c:func:`PyUnicode_KIND` to select the right macro. Make sure " -":c:func:`PyUnicode_READY` has been called before accessing this." +"canonical representation has the correct character size; use :c:func:" +"`PyUnicode_KIND` to select the right macro. Make sure :c:func:" +"`PyUnicode_READY` has been called before accessing this." msgstr "" #: ../../c-api/unicode.rst:137 @@ -168,8 +172,7 @@ msgstr "" msgid "" "Return one of the PyUnicode kind constants (see above) that indicate how " "many bytes per character this Unicode object uses to store its data. *o* " -"has to be a Unicode object in the \"canonical\" representation (not " -"checked)." +"has to be a Unicode object in the \"canonical\" representation (not checked)." msgstr "" #: ../../c-api/unicode.rst:155 @@ -180,25 +183,25 @@ msgstr "" #: ../../c-api/unicode.rst:164 msgid "" -"Write into a canonical representation *data* (as obtained with " -":c:func:`PyUnicode_DATA`). This macro does not do any sanity checks and is " -"intended for usage in loops. The caller should cache the *kind* value and " -"*data* pointer as obtained from other macro calls. *index* is the index in " -"the string (starts at 0) and *value* is the new code point value which " -"should be written to that location." +"Write into a canonical representation *data* (as obtained with :c:func:" +"`PyUnicode_DATA`). This macro does not do any sanity checks and is intended " +"for usage in loops. The caller should cache the *kind* value and *data* " +"pointer as obtained from other macro calls. *index* is the index in the " +"string (starts at 0) and *value* is the new code point value which should be " +"written to that location." msgstr "" #: ../../c-api/unicode.rst:176 msgid "" -"Read a code point from a canonical representation *data* (as obtained with " -":c:func:`PyUnicode_DATA`). No checks or ready calls are performed." +"Read a code point from a canonical representation *data* (as obtained with :" +"c:func:`PyUnicode_DATA`). No checks or ready calls are performed." msgstr "" #: ../../c-api/unicode.rst:184 msgid "" -"Read a character from a Unicode object *o*, which must be in the " -"\"canonical\" representation. This is less efficient than " -":c:func:`PyUnicode_READ` if you do multiple consecutive reads." +"Read a character from a Unicode object *o*, which must be in the \"canonical" +"\" representation. This is less efficient than :c:func:`PyUnicode_READ` if " +"you do multiple consecutive reads." msgstr "" #: ../../c-api/unicode.rst:193 @@ -210,7 +213,7 @@ msgstr "" #: ../../c-api/unicode.rst:202 msgid "Clear the free list. Return the total number of freed items." -msgstr "" +msgstr "Limpe a lista livre. Retorna o número total de itens liberados." #: ../../c-api/unicode.rst:207 msgid "" @@ -221,8 +224,8 @@ msgstr "" #: ../../c-api/unicode.rst:213 ../../c-api/unicode.rst:223 msgid "" -"Part of the old-style Unicode API, please migrate to using " -":c:func:`PyUnicode_GET_LENGTH`." +"Part of the old-style Unicode API, please migrate to using :c:func:" +"`PyUnicode_GET_LENGTH`." msgstr "" #: ../../c-api/unicode.rst:218 @@ -243,17 +246,17 @@ msgstr "" #: ../../c-api/unicode.rst:236 msgid "" -"This macro is now inefficient -- because in many cases the " -":c:type:`Py_UNICODE` representation does not exist and needs to be created " -"-- and can fail (return ``NULL`` with an exception set). Try to port the " -"code to use the new :c:func:`PyUnicode_nBYTE_DATA` macros or use " -":c:func:`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`." +"This macro is now inefficient -- because in many cases the :c:type:" +"`Py_UNICODE` representation does not exist and needs to be created -- and " +"can fail (return ``NULL`` with an exception set). Try to port the code to " +"use the new :c:func:`PyUnicode_nBYTE_DATA` macros or use :c:func:" +"`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`." msgstr "" #: ../../c-api/unicode.rst:245 msgid "" -"Part of the old-style Unicode API, please migrate to using the " -":c:func:`PyUnicode_nBYTE_DATA` family of macros." +"Part of the old-style Unicode API, please migrate to using the :c:func:" +"`PyUnicode_nBYTE_DATA` family of macros." msgstr "" #: ../../c-api/unicode.rst:249 @@ -293,8 +296,7 @@ msgid "" msgstr "" #: ../../c-api/unicode.rst:283 -msgid "" -"Return ``1`` or ``0`` depending on whether *ch* is a decimal character." +msgid "Return ``1`` or ``0`` depending on whether *ch* is a decimal character." msgstr "" #: ../../c-api/unicode.rst:288 @@ -302,8 +304,7 @@ msgid "Return ``1`` or ``0`` depending on whether *ch* is a digit character." msgstr "" #: ../../c-api/unicode.rst:293 -msgid "" -"Return ``1`` or ``0`` depending on whether *ch* is a numeric character." +msgid "Return ``1`` or ``0`` depending on whether *ch* is a numeric character." msgstr "" #: ../../c-api/unicode.rst:298 @@ -313,8 +314,7 @@ msgstr "" #: ../../c-api/unicode.rst:303 msgid "" -"Return ``1`` or ``0`` depending on whether *ch* is an alphanumeric " -"character." +"Return ``1`` or ``0`` depending on whether *ch* is an alphanumeric character." msgstr "" #: ../../c-api/unicode.rst:308 @@ -324,8 +324,8 @@ msgid "" "character database as \"Other\" or \"Separator\", excepting the ASCII space " "(0x20) which is considered printable. (Note that printable characters in " "this context are those which should not be escaped when :func:`repr` is " -"invoked on a string. It has no bearing on the handling of strings written to" -" :data:`sys.stdout` or :data:`sys.stderr`.)" +"invoked on a string. It has no bearing on the handling of strings written " +"to :data:`sys.stdout` or :data:`sys.stderr`.)" msgstr "" #: ../../c-api/unicode.rst:317 @@ -357,8 +357,8 @@ msgstr "" #: ../../c-api/unicode.rst:352 msgid "" -"Return the character *ch* converted to a single digit integer. Return ``-1``" -" if this is not possible. This macro does not raise exceptions." +"Return the character *ch* converted to a single digit integer. Return ``-1`` " +"if this is not possible. This macro does not raise exceptions." msgstr "" #: ../../c-api/unicode.rst:358 @@ -403,8 +403,8 @@ msgstr "" #: ../../c-api/unicode.rst:391 msgid "" "Create a new Unicode object. *maxchar* should be the true maximum code " -"point to be placed in the string. As an approximation, it can be rounded up" -" to the nearest value in the sequence 127, 255, 65535, 1114111." +"point to be placed in the string. As an approximation, it can be rounded up " +"to the nearest value in the sequence 127, 255, 65535, 1114111." msgstr "" #: ../../c-api/unicode.rst:395 @@ -415,10 +415,10 @@ msgstr "" #: ../../c-api/unicode.rst:404 msgid "" -"Create a new Unicode object with the given *kind* (possible values are " -":c:macro:`PyUnicode_1BYTE_KIND` etc., as returned by " -":c:func:`PyUnicode_KIND`). The *buffer* must point to an array of *size* " -"units of 1, 2 or 4 bytes per character, as given by the kind." +"Create a new Unicode object with the given *kind* (possible values are :c:" +"macro:`PyUnicode_1BYTE_KIND` etc., as returned by :c:func:" +"`PyUnicode_KIND`). The *buffer* must point to an array of *size* units of " +"1, 2 or 4 bytes per character, as given by the kind." msgstr "" #: ../../c-api/unicode.rst:414 @@ -431,15 +431,14 @@ msgstr "" #: ../../c-api/unicode.rst:419 msgid "" -"If *u* is ``NULL``, this function behaves like " -":c:func:`PyUnicode_FromUnicode` with the buffer set to ``NULL``. This usage" -" is deprecated in favor of :c:func:`PyUnicode_New`." +"If *u* is ``NULL``, this function behaves like :c:func:" +"`PyUnicode_FromUnicode` with the buffer set to ``NULL``. This usage is " +"deprecated in favor of :c:func:`PyUnicode_New`." msgstr "" #: ../../c-api/unicode.rst:426 msgid "" -"Create a Unicode object from a UTF-8 encoded null-terminated char buffer " -"*u*." +"Create a Unicode object from a UTF-8 encoded null-terminated char buffer *u*." msgstr "" #: ../../c-api/unicode.rst:432 @@ -522,7 +521,7 @@ msgstr "Equivalente a ``printf(\"%ld\")``. [1]_" #: ../../c-api/unicode.rst:463 msgid ":attr:`%li`" -msgstr "" +msgstr ":attr:`%li`" #: ../../c-api/unicode.rst:463 msgid "Equivalent to ``printf(\"%li\")``. [1]_" @@ -542,7 +541,7 @@ msgstr "Equivalente a ``printf(\"%lu\")``. [1]_" #: ../../c-api/unicode.rst:469 msgid ":attr:`%lld`" -msgstr "" +msgstr ":attr:`%lld`" #: ../../c-api/unicode.rst:469 ../../c-api/unicode.rst:472 msgid "long long" @@ -554,7 +553,7 @@ msgstr "" #: ../../c-api/unicode.rst:472 msgid ":attr:`%lli`" -msgstr "" +msgstr ":attr:`%lli`" #: ../../c-api/unicode.rst:472 msgid "Equivalent to ``printf(\"%lli\")``. [1]_" @@ -562,7 +561,7 @@ msgstr "" #: ../../c-api/unicode.rst:475 msgid ":attr:`%llu`" -msgstr "" +msgstr ":attr:`%llu`" #: ../../c-api/unicode.rst:475 msgid "unsigned long long" @@ -586,7 +585,7 @@ msgstr "Equivalente a ``printf(\"%zd\")``. [1]_" #: ../../c-api/unicode.rst:481 msgid ":attr:`%zi`" -msgstr "" +msgstr ":attr:`%zi`" #: ../../c-api/unicode.rst:481 msgid "Equivalent to ``printf(\"%zi\")``. [1]_" @@ -642,9 +641,9 @@ msgstr "const void\\*" #: ../../c-api/unicode.rst:496 msgid "" -"The hex representation of a C pointer. Mostly equivalent to " -"``printf(\"%p\")`` except that it is guaranteed to start with the literal " -"``0x`` regardless of what the platform's ``printf`` yields." +"The hex representation of a C pointer. Mostly equivalent to ``printf(\"%p" +"\")`` except that it is guaranteed to start with the literal ``0x`` " +"regardless of what the platform's ``printf`` yields." msgstr "" "A representação hexadecimal de um ponteiro C. Principalmente equivalente a " "``printf(\"%p\")`` exceto que é garantido que comece com o literal ``0x`` " @@ -652,7 +651,7 @@ msgstr "" #: ../../c-api/unicode.rst:504 msgid ":attr:`%A`" -msgstr "" +msgstr ":attr:`%A`" #: ../../c-api/unicode.rst:504 ../../c-api/unicode.rst:507 #: ../../c-api/unicode.rst:516 ../../c-api/unicode.rst:519 @@ -665,7 +664,7 @@ msgstr "" #: ../../c-api/unicode.rst:507 msgid ":attr:`%U`" -msgstr "" +msgstr ":attr:`%U`" #: ../../c-api/unicode.rst:507 msgid "A Unicode object." @@ -673,7 +672,7 @@ msgstr "" #: ../../c-api/unicode.rst:509 msgid ":attr:`%V`" -msgstr "" +msgstr ":attr:`%V`" #: ../../c-api/unicode.rst:509 msgid "PyObject\\*, const char\\*" @@ -688,7 +687,7 @@ msgstr "" #: ../../c-api/unicode.rst:516 msgid ":attr:`%S`" -msgstr "" +msgstr ":attr:`%S`" #: ../../c-api/unicode.rst:516 msgid "The result of calling :c:func:`PyObject_Str`." @@ -696,7 +695,7 @@ msgstr "" #: ../../c-api/unicode.rst:519 msgid ":attr:`%R`" -msgstr "" +msgstr ":attr:`%R`" #: ../../c-api/unicode.rst:519 msgid "The result of calling :c:func:`PyObject_Repr`." @@ -704,8 +703,8 @@ msgstr "" #: ../../c-api/unicode.rst:523 msgid "" -"An unrecognized format character causes all the rest of the format string to" -" be copied as-is to the result string, and any extra arguments discarded." +"An unrecognized format character causes all the rest of the format string to " +"be copied as-is to the result string, and any extra arguments discarded." msgstr "" #: ../../c-api/unicode.rst:527 @@ -733,14 +732,14 @@ msgstr "" #: ../../c-api/unicode.rst:542 msgid "" -"Support width and precision formatter for ``\"%s\"``, ``\"%A\"``, " -"``\"%U\"``, ``\"%V\"``, ``\"%S\"``, ``\"%R\"`` added." +"Support width and precision formatter for ``\"%s\"``, ``\"%A\"``, ``\"%U" +"\"``, ``\"%V\"``, ``\"%S\"``, ``\"%R\"`` added." msgstr "" #: ../../c-api/unicode.rst:549 msgid "" -"Identical to :c:func:`PyUnicode_FromFormat` except that it takes exactly two" -" arguments." +"Identical to :c:func:`PyUnicode_FromFormat` except that it takes exactly two " +"arguments." msgstr "" #: ../../c-api/unicode.rst:556 @@ -750,15 +749,15 @@ msgstr "" #: ../../c-api/unicode.rst:558 msgid "" ":class:`bytes`, :class:`bytearray` and other :term:`bytes-like objects " -"` are decoded according to the given *encoding* and using" -" the error handling defined by *errors*. Both can be ``NULL`` to have the " +"` are decoded according to the given *encoding* and using " +"the error handling defined by *errors*. Both can be ``NULL`` to have the " "interface use the default values (see :ref:`builtincodecs` for details)." msgstr "" #: ../../c-api/unicode.rst:564 msgid "" -"All other objects, including Unicode objects, cause a :exc:`TypeError` to be" -" set." +"All other objects, including Unicode objects, cause a :exc:`TypeError` to be " +"set." msgstr "" #: ../../c-api/unicode.rst:567 @@ -774,15 +773,15 @@ msgstr "" #: ../../c-api/unicode.rst:584 msgid "" "Copy characters from one Unicode object into another. This function " -"performs character conversion when necessary and falls back to " -":c:func:`memcpy` if possible. Returns ``-1`` and sets an exception on " -"error, otherwise returns the number of copied characters." +"performs character conversion when necessary and falls back to :c:func:" +"`memcpy` if possible. Returns ``-1`` and sets an exception on error, " +"otherwise returns the number of copied characters." msgstr "" #: ../../c-api/unicode.rst:595 msgid "" -"Fill a string with a character: write *fill_char* into " -"``unicode[start:start+length]``." +"Fill a string with a character: write *fill_char* into ``unicode[start:start" +"+length]``." msgstr "" #: ../../c-api/unicode.rst:598 @@ -799,9 +798,9 @@ msgstr "" #: ../../c-api/unicode.rst:610 msgid "" -"Write a character to a string. The string must have been created through " -":c:func:`PyUnicode_New`. Since Unicode strings are supposed to be " -"immutable, the string must not be shared, or have been hashed yet." +"Write a character to a string. The string must have been created through :c:" +"func:`PyUnicode_New`. Since Unicode strings are supposed to be immutable, " +"the string must not be shared, or have been hashed yet." msgstr "" #: ../../c-api/unicode.rst:614 @@ -834,10 +833,10 @@ msgstr "" #: ../../c-api/unicode.rst:652 msgid "" -"Copy the string *u* into a new UCS4 buffer that is allocated using " -":c:func:`PyMem_Malloc`. If this fails, ``NULL`` is returned with a " -":exc:`MemoryError` set. The returned buffer always has an extra null code " -"point appended." +"Copy the string *u* into a new UCS4 buffer that is allocated using :c:func:" +"`PyMem_Malloc`. If this fails, ``NULL`` is returned with a :exc:" +"`MemoryError` set. The returned buffer always has an extra null code point " +"appended." msgstr "" #: ../../c-api/unicode.rst:661 @@ -856,53 +855,52 @@ msgstr "" msgid "" "Create a Unicode object from the Py_UNICODE buffer *u* of the given size. " "*u* may be ``NULL`` which causes the contents to be undefined. It is the " -"user's responsibility to fill in the needed data. The buffer is copied into" -" the new object." +"user's responsibility to fill in the needed data. The buffer is copied into " +"the new object." msgstr "" #: ../../c-api/unicode.rst:677 msgid "" "If the buffer is not ``NULL``, the return value might be a shared object. " -"Therefore, modification of the resulting Unicode object is only allowed when" -" *u* is ``NULL``." +"Therefore, modification of the resulting Unicode object is only allowed when " +"*u* is ``NULL``." msgstr "" #: ../../c-api/unicode.rst:681 msgid "" -"If the buffer is ``NULL``, :c:func:`PyUnicode_READY` must be called once the" -" string content has been filled before using any of the access macros such " +"If the buffer is ``NULL``, :c:func:`PyUnicode_READY` must be called once the " +"string content has been filled before using any of the access macros such " "as :c:func:`PyUnicode_KIND`." msgstr "" #: ../../c-api/unicode.rst:685 msgid "" -"Please migrate to using :c:func:`PyUnicode_FromKindAndData`, " -":c:func:`PyUnicode_FromWideChar` or :c:func:`PyUnicode_New`." +"Please migrate to using :c:func:`PyUnicode_FromKindAndData`, :c:func:" +"`PyUnicode_FromWideChar` or :c:func:`PyUnicode_New`." msgstr "" #: ../../c-api/unicode.rst:691 msgid "" -"Return a read-only pointer to the Unicode object's internal " -":c:type:`Py_UNICODE` buffer, or ``NULL`` on error. This will create the " -":c:type:`Py_UNICODE*` representation of the object if it is not yet " -"available. The buffer is always terminated with an extra null code point. " -"Note that the resulting :c:type:`Py_UNICODE` string may also contain " -"embedded null code points, which would cause the string to be truncated when" -" used in most C functions." +"Return a read-only pointer to the Unicode object's internal :c:type:" +"`Py_UNICODE` buffer, or ``NULL`` on error. This will create the :c:type:" +"`Py_UNICODE*` representation of the object if it is not yet available. The " +"buffer is always terminated with an extra null code point. Note that the " +"resulting :c:type:`Py_UNICODE` string may also contain embedded null code " +"points, which would cause the string to be truncated when used in most C " +"functions." msgstr "" #: ../../c-api/unicode.rst:699 msgid "" -"Please migrate to using :c:func:`PyUnicode_AsUCS4`, " -":c:func:`PyUnicode_AsWideChar`, :c:func:`PyUnicode_ReadChar` or similar new " -"APIs." +"Please migrate to using :c:func:`PyUnicode_AsUCS4`, :c:func:" +"`PyUnicode_AsWideChar`, :c:func:`PyUnicode_ReadChar` or similar new APIs." msgstr "" #: ../../c-api/unicode.rst:706 msgid "" -"Create a Unicode object by replacing all decimal digits in " -":c:type:`Py_UNICODE` buffer of the given *size* by ASCII digits 0--9 " -"according to their decimal value. Return ``NULL`` if an exception occurs." +"Create a Unicode object by replacing all decimal digits in :c:type:" +"`Py_UNICODE` buffer of the given *size* by ASCII digits 0--9 according to " +"their decimal value. Return ``NULL`` if an exception occurs." msgstr "" #: ../../c-api/unicode.rst:713 @@ -942,8 +940,8 @@ msgstr "" #: ../../c-api/unicode.rst:746 msgid "" "Copy an instance of a Unicode subtype to a new true Unicode object if " -"necessary. If *obj* is already a true Unicode object (not a subtype), return" -" the reference with incremented refcount." +"necessary. If *obj* is already a true Unicode object (not a subtype), return " +"the reference with incremented refcount." msgstr "" #: ../../c-api/unicode.rst:750 @@ -964,16 +962,16 @@ msgstr "" #: ../../c-api/unicode.rst:763 msgid "" "Decode a string from UTF-8 on Android, or from the current locale encoding " -"on other platforms. The supported error handlers are ``\"strict\"`` and " -"``\"surrogateescape\"`` (:pep:`383`). The decoder uses ``\"strict\"`` error " +"on other platforms. The supported error handlers are ``\"strict\"`` and ``" +"\"surrogateescape\"`` (:pep:`383`). The decoder uses ``\"strict\"`` error " "handler if *errors* is ``NULL``. *str* must end with a null character but " "cannot contain embedded null characters." msgstr "" #: ../../c-api/unicode.rst:770 msgid "" -"Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` to decode a string from " -":c:data:`Py_FileSystemDefaultEncoding` (the locale encoding read at Python " +"Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` to decode a string from :c:" +"data:`Py_FileSystemDefaultEncoding` (the locale encoding read at Python " "startup)." msgstr "" @@ -988,9 +986,9 @@ msgstr "" #: ../../c-api/unicode.rst:782 msgid "" "The function now also uses the current locale encoding for the " -"``surrogateescape`` error handler, except on Android. Previously, " -":c:func:`Py_DecodeLocale` was used for the ``surrogateescape``, and the " -"current locale encoding was used for ``strict``." +"``surrogateescape`` error handler, except on Android. Previously, :c:func:" +"`Py_DecodeLocale` was used for the ``surrogateescape``, and the current " +"locale encoding was used for ``strict``." msgstr "" #: ../../c-api/unicode.rst:791 @@ -1002,17 +1000,16 @@ msgstr "" #: ../../c-api/unicode.rst:799 msgid "" "Encode a Unicode object to UTF-8 on Android, or to the current locale " -"encoding on other platforms. The supported error handlers are ``\"strict\"``" -" and ``\"surrogateescape\"`` (:pep:`383`). The encoder uses ``\"strict\"`` " +"encoding on other platforms. The supported error handlers are ``\"strict\"`` " +"and ``\"surrogateescape\"`` (:pep:`383`). The encoder uses ``\"strict\"`` " "error handler if *errors* is ``NULL``. Return a :class:`bytes` object. " "*unicode* cannot contain embedded null characters." msgstr "" #: ../../c-api/unicode.rst:806 msgid "" -"Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to " -":c:data:`Py_FileSystemDefaultEncoding` (the locale encoding read at Python " -"startup)." +"Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to :c:data:" +"`Py_FileSystemDefaultEncoding` (the locale encoding read at Python startup)." msgstr "" #: ../../c-api/unicode.rst:814 ../../c-api/unicode.rst:918 @@ -1022,9 +1019,9 @@ msgstr "" #: ../../c-api/unicode.rst:818 msgid "" "The function now also uses the current locale encoding for the " -"``surrogateescape`` error handler, except on Android. Previously, " -":c:func:`Py_EncodeLocale` was used for the ``surrogateescape``, and the " -"current locale encoding was used for ``strict``." +"``surrogateescape`` error handler, except on Android. Previously, :c:func:" +"`Py_EncodeLocale` was used for the ``surrogateescape``, and the current " +"locale encoding was used for ``strict``." msgstr "" #: ../../c-api/unicode.rst:827 @@ -1033,47 +1030,47 @@ msgstr "" #: ../../c-api/unicode.rst:829 msgid "" -"To encode and decode file names and other environment strings, " -":c:data:`Py_FileSystemDefaultEncoding` should be used as the encoding, and " -":c:data:`Py_FileSystemDefaultEncodeErrors` should be used as the error " -"handler (:pep:`383` and :pep:`529`). To encode file names to :class:`bytes` " -"during argument parsing, the ``\"O&\"`` converter should be used, passing " -":c:func:`PyUnicode_FSConverter` as the conversion function:" +"To encode and decode file names and other environment strings, :c:data:" +"`Py_FileSystemDefaultEncoding` should be used as the encoding, and :c:data:" +"`Py_FileSystemDefaultEncodeErrors` should be used as the error handler (:pep:" +"`383` and :pep:`529`). To encode file names to :class:`bytes` during " +"argument parsing, the ``\"O&\"`` converter should be used, passing :c:func:" +"`PyUnicode_FSConverter` as the conversion function:" msgstr "" #: ../../c-api/unicode.rst:838 msgid "" "ParseTuple converter: encode :class:`str` objects -- obtained directly or " -"through the :class:`os.PathLike` interface -- to :class:`bytes` using " -":c:func:`PyUnicode_EncodeFSDefault`; :class:`bytes` objects are output as-" -"is. *result* must be a :c:type:`PyBytesObject*` which must be released when " -"it is no longer used." +"through the :class:`os.PathLike` interface -- to :class:`bytes` using :c:" +"func:`PyUnicode_EncodeFSDefault`; :class:`bytes` objects are output as-is. " +"*result* must be a :c:type:`PyBytesObject*` which must be released when it " +"is no longer used." msgstr "" #: ../../c-api/unicode.rst:846 ../../c-api/unicode.rst:863 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../c-api/unicode.rst:849 msgid "" -"To decode file names to :class:`str` during argument parsing, the ``\"O&\"``" -" converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the " +"To decode file names to :class:`str` during argument parsing, the ``\"O&\"`` " +"converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the " "conversion function:" msgstr "" #: ../../c-api/unicode.rst:855 msgid "" "ParseTuple converter: decode :class:`bytes` objects -- obtained either " -"directly or indirectly through the :class:`os.PathLike` interface -- to " -":class:`str` using :c:func:`PyUnicode_DecodeFSDefaultAndSize`; :class:`str` " +"directly or indirectly through the :class:`os.PathLike` interface -- to :" +"class:`str` using :c:func:`PyUnicode_DecodeFSDefaultAndSize`; :class:`str` " "objects are output as-is. *result* must be a :c:type:`PyUnicodeObject*` " "which must be released when it is no longer used." msgstr "" #: ../../c-api/unicode.rst:869 msgid "" -"Decode a string using :c:data:`Py_FileSystemDefaultEncoding` and the " -":c:data:`Py_FileSystemDefaultEncodeErrors` error handler." +"Decode a string using :c:data:`Py_FileSystemDefaultEncoding` and the :c:data:" +"`Py_FileSystemDefaultEncodeErrors` error handler." msgstr "" #: ../../c-api/unicode.rst:872 ../../c-api/unicode.rst:893 @@ -1086,9 +1083,9 @@ msgstr "" #: ../../c-api/unicode.rst:875 msgid "" ":c:data:`Py_FileSystemDefaultEncoding` is initialized at startup from the " -"locale encoding and cannot be modified later. If you need to decode a string" -" from the current locale encoding, use " -":c:func:`PyUnicode_DecodeLocaleAndSize`." +"locale encoding and cannot be modified later. If you need to decode a string " +"from the current locale encoding, use :c:func:" +"`PyUnicode_DecodeLocaleAndSize`." msgstr "" #: ../../c-api/unicode.rst:884 ../../c-api/unicode.rst:898 @@ -1098,29 +1095,28 @@ msgstr "" #: ../../c-api/unicode.rst:890 msgid "" -"Decode a null-terminated string using :c:data:`Py_FileSystemDefaultEncoding`" -" and the :c:data:`Py_FileSystemDefaultEncodeErrors` error handler." +"Decode a null-terminated string using :c:data:`Py_FileSystemDefaultEncoding` " +"and the :c:data:`Py_FileSystemDefaultEncodeErrors` error handler." msgstr "" #: ../../c-api/unicode.rst:896 msgid "" -"Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` if you know the string " -"length." +"Use :c:func:`PyUnicode_DecodeFSDefaultAndSize` if you know the string length." msgstr "" #: ../../c-api/unicode.rst:904 msgid "" -"Encode a Unicode object to :c:data:`Py_FileSystemDefaultEncoding` with the " -":c:data:`Py_FileSystemDefaultEncodeErrors` error handler, and return " -":class:`bytes`. Note that the resulting :class:`bytes` object may contain " -"null bytes." +"Encode a Unicode object to :c:data:`Py_FileSystemDefaultEncoding` with the :" +"c:data:`Py_FileSystemDefaultEncodeErrors` error handler, and return :class:" +"`bytes`. Note that the resulting :class:`bytes` object may contain null " +"bytes." msgstr "" #: ../../c-api/unicode.rst:912 msgid "" ":c:data:`Py_FileSystemDefaultEncoding` is initialized at startup from the " -"locale encoding and cannot be modified later. If you need to encode a string" -" to the current locale encoding, use :c:func:`PyUnicode_EncodeLocale`." +"locale encoding and cannot be modified later. If you need to encode a string " +"to the current locale encoding, use :c:func:`PyUnicode_EncodeLocale`." msgstr "" #: ../../c-api/unicode.rst:926 @@ -1134,22 +1130,21 @@ msgstr "" #: ../../c-api/unicode.rst:932 msgid "" "Create a Unicode object from the :c:type:`wchar_t` buffer *w* of the given " -"*size*. Passing ``-1`` as the *size* indicates that the function must itself" -" compute the length, using wcslen. Return ``NULL`` on failure." +"*size*. Passing ``-1`` as the *size* indicates that the function must itself " +"compute the length, using wcslen. Return ``NULL`` on failure." msgstr "" #: ../../c-api/unicode.rst:940 msgid "" "Copy the Unicode object contents into the :c:type:`wchar_t` buffer *w*. At " "most *size* :c:type:`wchar_t` characters are copied (excluding a possibly " -"trailing null termination character). Return the number of " -":c:type:`wchar_t` characters copied or ``-1`` in case of an error. Note " -"that the resulting :c:type:`wchar_t*` string may or may not be null-" -"terminated. It is the responsibility of the caller to make sure that the " -":c:type:`wchar_t*` string is null-terminated in case this is required by the" -" application. Also, note that the :c:type:`wchar_t*` string might contain " -"null characters, which would cause the string to be truncated when used with" -" most C functions." +"trailing null termination character). Return the number of :c:type:" +"`wchar_t` characters copied or ``-1`` in case of an error. Note that the " +"resulting :c:type:`wchar_t*` string may or may not be null-terminated. It " +"is the responsibility of the caller to make sure that the :c:type:`wchar_t*` " +"string is null-terminated in case this is required by the application. Also, " +"note that the :c:type:`wchar_t*` string might contain null characters, which " +"would cause the string to be truncated when used with most C functions." msgstr "" #: ../../c-api/unicode.rst:953 @@ -1159,16 +1154,15 @@ msgid "" "number of wide characters (excluding the trailing null termination " "character) into *\\*size*. Note that the resulting :c:type:`wchar_t` string " "might contain null characters, which would cause the string to be truncated " -"when used with most C functions. If *size* is ``NULL`` and the " -":c:type:`wchar_t*` string contains null characters a :exc:`ValueError` is " -"raised." +"when used with most C functions. If *size* is ``NULL`` and the :c:type:" +"`wchar_t*` string contains null characters a :exc:`ValueError` is raised." msgstr "" #: ../../c-api/unicode.rst:961 msgid "" -"Returns a buffer allocated by :c:func:`PyMem_Alloc` (use " -":c:func:`PyMem_Free` to free it) on success. On error, returns ``NULL`` and " -"*\\*size* is undefined. Raises a :exc:`MemoryError` if memory allocation is " +"Returns a buffer allocated by :c:func:`PyMem_Alloc` (use :c:func:" +"`PyMem_Free` to free it) on success. On error, returns ``NULL`` and *" +"\\*size* is undefined. Raises a :exc:`MemoryError` if memory allocation is " "failed." msgstr "" @@ -1197,20 +1191,20 @@ msgstr "" #: ../../c-api/unicode.rst:985 msgid "" -"Setting encoding to ``NULL`` causes the default encoding to be used which is" -" ASCII. The file system calls should use :c:func:`PyUnicode_FSConverter` " -"for encoding file names. This uses the variable " -":c:data:`Py_FileSystemDefaultEncoding` internally. This variable should be " -"treated as read-only: on some systems, it will be a pointer to a static " -"string, on others, it will change at run-time (such as when the application " -"invokes setlocale)." +"Setting encoding to ``NULL`` causes the default encoding to be used which is " +"ASCII. The file system calls should use :c:func:`PyUnicode_FSConverter` for " +"encoding file names. This uses the variable :c:data:" +"`Py_FileSystemDefaultEncoding` internally. This variable should be treated " +"as read-only: on some systems, it will be a pointer to a static string, on " +"others, it will change at run-time (such as when the application invokes " +"setlocale)." msgstr "" #: ../../c-api/unicode.rst:993 msgid "" -"Error handling is set by errors which may also be set to ``NULL`` meaning to" -" use the default handling defined for the codec. Default error handling for" -" all built-in codecs is \"strict\" (:exc:`ValueError` is raised)." +"Error handling is set by errors which may also be set to ``NULL`` meaning to " +"use the default handling defined for the codec. Default error handling for " +"all built-in codecs is \"strict\" (:exc:`ValueError` is raised)." msgstr "" #: ../../c-api/unicode.rst:997 @@ -1256,8 +1250,8 @@ msgstr "" #: ../../c-api/unicode.rst:1038 ../../c-api/unicode.rst:1295 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1042 @@ -1270,8 +1264,8 @@ msgstr "" #: ../../c-api/unicode.rst:1049 msgid "" -"Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string" -" *s*. Return ``NULL`` if an exception was raised by the codec." +"Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string " +"*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1056 @@ -1293,8 +1287,8 @@ msgstr "" msgid "" "Return a pointer to the UTF-8 encoding of the Unicode object, and store the " "size of the encoded representation (in bytes) in *size*. The *size* " -"argument can be ``NULL``; in this case no size will be stored. The returned" -" buffer always has an extra null byte appended (not included in *size*), " +"argument can be ``NULL``; in this case no size will be stored. The returned " +"buffer always has an extra null byte appended (not included in *size*), " "regardless of whether there are any other null code points." msgstr "" @@ -1328,9 +1322,9 @@ msgstr "" #: ../../c-api/unicode.rst:1109 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsUTF8String`, :c:func:`PyUnicode_AsUTF8AndSize` or " -":c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsUTF8String`, :c:func:`PyUnicode_AsUTF8AndSize` or :c:func:" +"`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1113 @@ -1364,8 +1358,8 @@ msgstr "" #: ../../c-api/unicode.rst:1137 ../../c-api/unicode.rst:1211 msgid "" -"After completion, *\\*byteorder* is set to the current byte order at the end" -" of input data." +"After completion, *\\*byteorder* is set to the current byte order at the end " +"of input data." msgstr "" #: ../../c-api/unicode.rst:1140 ../../c-api/unicode.rst:1214 @@ -1380,8 +1374,8 @@ msgstr "" #: ../../c-api/unicode.rst:1148 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF32`. If " -"*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF32Stateful` will not" -" treat trailing incomplete UTF-32 byte sequences (such as a number of bytes " +"*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF32Stateful` will not " +"treat trailing incomplete UTF-32 byte sequences (such as a number of bytes " "not divisible by four) as an error. Those bytes will not be decoded and the " "number of bytes that have been decoded will be stored in *consumed*." msgstr "" @@ -1395,8 +1389,8 @@ msgstr "" #: ../../c-api/unicode.rst:1165 msgid "" -"Return a Python bytes object holding the UTF-32 encoded value of the Unicode" -" data in *s*. Output is written according to the following byte order::" +"Return a Python bytes object holding the UTF-32 encoded value of the Unicode " +"data in *s*. Output is written according to the following byte order::" msgstr "" #: ../../c-api/unicode.rst:1172 ../../c-api/unicode.rst:1246 @@ -1413,8 +1407,8 @@ msgstr "" #: ../../c-api/unicode.rst:1182 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1186 @@ -1444,8 +1438,8 @@ msgstr "" #: ../../c-api/unicode.rst:1222 msgid "" "If *consumed* is ``NULL``, behave like :c:func:`PyUnicode_DecodeUTF16`. If " -"*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF16Stateful` will not" -" treat trailing incomplete UTF-16 byte sequences (such as an odd number of " +"*consumed* is not ``NULL``, :c:func:`PyUnicode_DecodeUTF16Stateful` will not " +"treat trailing incomplete UTF-16 byte sequences (such as an odd number of " "bytes or a split surrogate pair) as an error. Those bytes will not be " "decoded and the number of bytes that have been decoded will be stored in " "*consumed*." @@ -1460,21 +1454,21 @@ msgstr "" #: ../../c-api/unicode.rst:1239 msgid "" -"Return a Python bytes object holding the UTF-16 encoded value of the Unicode" -" data in *s*. Output is written according to the following byte order::" +"Return a Python bytes object holding the UTF-16 encoded value of the Unicode " +"data in *s*. Output is written according to the following byte order::" msgstr "" #: ../../c-api/unicode.rst:1249 msgid "" "If ``Py_UNICODE_WIDE`` is defined, a single :c:type:`Py_UNICODE` value may " -"get represented as a surrogate pair. If it is not defined, each " -":c:type:`Py_UNICODE` values is interpreted as a UCS-2 character." +"get represented as a surrogate pair. If it is not defined, each :c:type:" +"`Py_UNICODE` values is interpreted as a UCS-2 character." msgstr "" #: ../../c-api/unicode.rst:1257 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1261 @@ -1487,8 +1481,8 @@ msgstr "" #: ../../c-api/unicode.rst:1268 msgid "" -"Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string" -" *s*. Return ``NULL`` if an exception was raised by the codec." +"Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string " +"*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1275 @@ -1502,8 +1496,8 @@ msgstr "" #: ../../c-api/unicode.rst:1284 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given size using UTF-7 and " -"return a Python bytes object. Return ``NULL`` if an exception was raised by" -" the codec." +"return a Python bytes object. Return ``NULL`` if an exception was raised by " +"the codec." msgstr "" #: ../../c-api/unicode.rst:1288 @@ -1525,8 +1519,7 @@ msgstr "" #: ../../c-api/unicode.rst:1307 msgid "" "Create a Unicode object by decoding *size* bytes of the Unicode-Escape " -"encoded string *s*. Return ``NULL`` if an exception was raised by the " -"codec." +"encoded string *s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1313 @@ -1545,8 +1538,8 @@ msgstr "" #: ../../c-api/unicode.rst:1325 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsUnicodeEscapeString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsUnicodeEscapeString`." msgstr "" #: ../../c-api/unicode.rst:1329 @@ -1560,8 +1553,7 @@ msgstr "" #: ../../c-api/unicode.rst:1337 msgid "" "Create a Unicode object by decoding *size* bytes of the Raw-Unicode-Escape " -"encoded string *s*. Return ``NULL`` if an exception was raised by the " -"codec." +"encoded string *s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1343 @@ -1573,16 +1565,16 @@ msgstr "" #: ../../c-api/unicode.rst:1351 msgid "" -"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-" -"Unicode-Escape and return a bytes object. Return ``NULL`` if an exception " -"was raised by the codec." +"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-Unicode-" +"Escape and return a bytes object. Return ``NULL`` if an exception was " +"raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1357 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsRawUnicodeEscapeString` or " -":c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsRawUnicodeEscapeString` or :c:func:" +"`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1361 @@ -1610,15 +1602,15 @@ msgstr "" #: ../../c-api/unicode.rst:1382 msgid "" -"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Latin-1 and" -" return a Python bytes object. Return ``NULL`` if an exception was raised " -"by the codec." +"Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Latin-1 and " +"return a Python bytes object. Return ``NULL`` if an exception was raised by " +"the codec." msgstr "" #: ../../c-api/unicode.rst:1389 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsLatin1String` or :c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsLatin1String` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1393 @@ -1633,8 +1625,8 @@ msgstr "" #: ../../c-api/unicode.rst:1401 msgid "" -"Create a Unicode object by decoding *size* bytes of the ASCII encoded string" -" *s*. Return ``NULL`` if an exception was raised by the codec." +"Create a Unicode object by decoding *size* bytes of the ASCII encoded string " +"*s*. Return ``NULL`` if an exception was raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1407 @@ -1647,14 +1639,14 @@ msgstr "" #: ../../c-api/unicode.rst:1414 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using ASCII and " -"return a Python bytes object. Return ``NULL`` if an exception was raised by" -" the codec." +"return a Python bytes object. Return ``NULL`` if an exception was raised by " +"the codec." msgstr "" #: ../../c-api/unicode.rst:1421 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsASCIIString` or :c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsASCIIString` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1425 @@ -1666,8 +1658,8 @@ msgid "" "This codec is special in that it can be used to implement many different " "codecs (and this is in fact what was done to obtain most of the standard " "codecs included in the :mod:`encodings` package). The codec uses mapping to " -"encode and decode characters. The mapping objects provided must support the" -" :meth:`__getitem__` mapping interface; dictionaries and sequences work " +"encode and decode characters. The mapping objects provided must support " +"the :meth:`__getitem__` mapping interface; dictionaries and sequences work " "well." msgstr "" @@ -1695,8 +1687,8 @@ msgstr "" #: ../../c-api/unicode.rst:1453 msgid "" "Encode a Unicode object using the given *mapping* object and return the " -"result as a bytes object. Error handling is \"strict\". Return ``NULL`` if" -" an exception was raised by the codec." +"result as a bytes object. Error handling is \"strict\". Return ``NULL`` if " +"an exception was raised by the codec." msgstr "" #: ../../c-api/unicode.rst:1457 @@ -1716,8 +1708,8 @@ msgstr "" #: ../../c-api/unicode.rst:1473 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsCharmapString` or :c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsCharmapString` or :c:func:`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1476 @@ -1727,8 +1719,8 @@ msgstr "" #: ../../c-api/unicode.rst:1481 msgid "" "Translate a Unicode object using the given *mapping* object and return the " -"resulting Unicode object. Return ``NULL`` if an exception was raised by the" -" codec." +"resulting Unicode object. Return ``NULL`` if an exception was raised by the " +"codec." msgstr "" #: ../../c-api/unicode.rst:1485 @@ -1748,8 +1740,8 @@ msgstr "" #: ../../c-api/unicode.rst:1501 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_Translate`. or :ref:`generic codec based API `" msgstr "" @@ -1789,22 +1781,22 @@ msgstr "" #: ../../c-api/unicode.rst:1536 msgid "" "Encode the Unicode object using the specified code page and return a Python " -"bytes object. Return ``NULL`` if an exception was raised by the codec. Use " -":c:data:`CP_ACP` code page to get the MBCS encoder." +"bytes object. Return ``NULL`` if an exception was raised by the codec. Use :" +"c:data:`CP_ACP` code page to get the MBCS encoder." msgstr "" #: ../../c-api/unicode.rst:1545 msgid "" "Encode the :c:type:`Py_UNICODE` buffer of the given *size* using MBCS and " -"return a Python bytes object. Return ``NULL`` if an exception was raised by" -" the codec." +"return a Python bytes object. Return ``NULL`` if an exception was raised by " +"the codec." msgstr "" #: ../../c-api/unicode.rst:1552 msgid "" -"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using " -":c:func:`PyUnicode_AsMBCSString`, :c:func:`PyUnicode_EncodeCodePage` or " -":c:func:`PyUnicode_AsEncodedString`." +"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" +"func:`PyUnicode_AsMBCSString`, :c:func:`PyUnicode_EncodeCodePage` or :c:func:" +"`PyUnicode_AsEncodedString`." msgstr "" #: ../../c-api/unicode.rst:1556 @@ -1908,8 +1900,8 @@ msgstr "" #: ../../c-api/unicode.rst:1650 msgid "" -"Return the number of non-overlapping occurrences of *substr* in " -"``str[start:end]``. Return ``-1`` if an error occurred." +"Return the number of non-overlapping occurrences of *substr* in ``str[start:" +"end]``. Return ``-1`` if an error occurred." msgstr "" #: ../../c-api/unicode.rst:1657 @@ -1927,8 +1919,8 @@ msgstr "" #: ../../c-api/unicode.rst:1667 msgid "" -"This function returns ``-1`` upon failure, so one should call " -":c:func:`PyErr_Occurred` to check for errors." +"This function returns ``-1`` upon failure, so one should call :c:func:" +"`PyErr_Occurred` to check for errors." msgstr "" #: ../../c-api/unicode.rst:1673 @@ -1961,8 +1953,8 @@ msgstr "" #: ../../c-api/unicode.rst:1689 msgid "" -"Possible values for *op* are :const:`Py_GT`, :const:`Py_GE`, :const:`Py_EQ`," -" :const:`Py_NE`, :const:`Py_LT`, and :const:`Py_LE`." +"Possible values for *op* are :const:`Py_GT`, :const:`Py_GE`, :const:" +"`Py_EQ`, :const:`Py_NE`, :const:`Py_LT`, and :const:`Py_LE`." msgstr "" #: ../../c-api/unicode.rst:1695 @@ -1973,8 +1965,8 @@ msgstr "" #: ../../c-api/unicode.rst:1701 msgid "" -"Check whether *element* is contained in *container* and return true or false" -" accordingly." +"Check whether *element* is contained in *container* and return true or false " +"accordingly." msgstr "" #: ../../c-api/unicode.rst:1704 @@ -1987,19 +1979,19 @@ msgstr "" msgid "" "Intern the argument *\\*string* in place. The argument must be the address " "of a pointer variable pointing to a Python Unicode string object. If there " -"is an existing interned string that is the same as *\\*string*, it sets " -"*\\*string* to it (decrementing the reference count of the old string object" -" and incrementing the reference count of the interned string object), " +"is an existing interned string that is the same as *\\*string*, it sets *" +"\\*string* to it (decrementing the reference count of the old string object " +"and incrementing the reference count of the interned string object), " "otherwise it leaves *\\*string* alone and interns it (incrementing its " "reference count). (Clarification: even though there is a lot of talk about " -"reference counts, think of this function as reference-count-neutral; you own" -" the object after the call if and only if you owned it before the call.)" +"reference counts, think of this function as reference-count-neutral; you own " +"the object after the call if and only if you owned it before the call.)" msgstr "" #: ../../c-api/unicode.rst:1723 msgid "" -"A combination of :c:func:`PyUnicode_FromString` and " -":c:func:`PyUnicode_InternInPlace`, returning either a new Unicode string " -"object that has been interned, or a new (\"owned\") reference to an earlier " -"interned string object with the same value." +"A combination of :c:func:`PyUnicode_FromString` and :c:func:" +"`PyUnicode_InternInPlace`, returning either a new Unicode string object that " +"has been interned, or a new (\"owned\") reference to an earlier interned " +"string object with the same value." msgstr "" diff --git a/c-api/utilities.po b/c-api/utilities.po index 1fc3b09db..a2331bf6e 100644 --- a/c-api/utilities.po +++ b/c-api/utilities.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/c-api/veryhigh.po b/c-api/veryhigh.po index d1fe3698e..f77a24698 100644 --- a/c-api/veryhigh.po +++ b/c-api/veryhigh.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:39+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,24 +30,24 @@ msgstr "A camada de Mais Alto Nível" #: ../../c-api/veryhigh.rst:10 msgid "" "The functions in this chapter will let you execute Python source code given " -"in a file or a buffer, but they will not let you interact in a more detailed" -" way with the interpreter." +"in a file or a buffer, but they will not let you interact in a more detailed " +"way with the interpreter." msgstr "" #: ../../c-api/veryhigh.rst:14 msgid "" "Several of these functions accept a start symbol from the grammar as a " -"parameter. The available start symbols are :const:`Py_eval_input`, " -":const:`Py_file_input`, and :const:`Py_single_input`. These are described " +"parameter. The available start symbols are :const:`Py_eval_input`, :const:" +"`Py_file_input`, and :const:`Py_single_input`. These are described " "following the functions which accept them as parameters." msgstr "" #: ../../c-api/veryhigh.rst:19 msgid "" -"Note also that several of these functions take :c:type:`FILE\\*` parameters." -" One particular issue which needs to be handled carefully is that the " -":c:type:`FILE` structure for different C libraries can be different and " -"incompatible. Under Windows (at least), it is possible for dynamically " +"Note also that several of these functions take :c:type:`FILE\\*` " +"parameters. One particular issue which needs to be handled carefully is " +"that the :c:type:`FILE` structure for different C libraries can be different " +"and incompatible. Under Windows (at least), it is possible for dynamically " "linked extensions to actually use different libraries, so care should be " "taken that :c:type:`FILE\\*` parameters are only passed to these functions " "if it is certain that they were created by the same library that the Python " @@ -93,11 +95,11 @@ msgstr "" #: ../../c-api/veryhigh.rst:65 msgid "" "If *fp* refers to a file associated with an interactive device (console or " -"terminal input or Unix pseudo-terminal), return the value of " -":c:func:`PyRun_InteractiveLoop`, otherwise return the result of " -":c:func:`PyRun_SimpleFile`. *filename* is decoded from the filesystem " -"encoding (:func:`sys.getfilesystemencoding`). If *filename* is ``NULL``, " -"this function uses ``\"???\"`` as the filename." +"terminal input or Unix pseudo-terminal), return the value of :c:func:" +"`PyRun_InteractiveLoop`, otherwise return the result of :c:func:" +"`PyRun_SimpleFile`. *filename* is decoded from the filesystem encoding (:" +"func:`sys.getfilesystemencoding`). If *filename* is ``NULL``, this function " +"uses ``\"???\"`` as the filename." msgstr "" #: ../../c-api/veryhigh.rst:75 @@ -108,8 +110,8 @@ msgstr "" #: ../../c-api/veryhigh.rst:81 msgid "" -"Executes the Python source code from *command* in the :mod:`__main__` module" -" according to the *flags* argument. If :mod:`__main__` does not already " +"Executes the Python source code from *command* in the :mod:`__main__` module " +"according to the *flags* argument. If :mod:`__main__` does not already " "exist, it is created. Returns ``0`` on success or ``-1`` if an exception " "was raised. If there was an error, there is no way to get the exception " "information. For the meaning of *flags*, see below." @@ -137,23 +139,23 @@ msgstr "" #: ../../c-api/veryhigh.rst:106 msgid "" "Similar to :c:func:`PyRun_SimpleStringFlags`, but the Python source code is " -"read from *fp* instead of an in-memory string. *filename* should be the name" -" of the file, it is decoded from the filesystem encoding " -"(:func:`sys.getfilesystemencoding`). If *closeit* is true, the file is " -"closed before PyRun_SimpleFileExFlags returns." +"read from *fp* instead of an in-memory string. *filename* should be the name " +"of the file, it is decoded from the filesystem encoding (:func:`sys." +"getfilesystemencoding`). If *closeit* is true, the file is closed before " +"PyRun_SimpleFileExFlags returns." msgstr "" #: ../../c-api/veryhigh.rst:113 msgid "" -"On Windows, *fp* should be opened as binary mode (e.g. ``fopen(filename, " -"\"rb\")``. Otherwise, Python may not handle script file with LF line ending " +"On Windows, *fp* should be opened as binary mode (e.g. ``fopen(filename, \"rb" +"\")``. Otherwise, Python may not handle script file with LF line ending " "correctly." msgstr "" #: ../../c-api/veryhigh.rst:119 msgid "" -"This is a simplified interface to :c:func:`PyRun_InteractiveOneFlags` below," -" leaving *flags* set to ``NULL``." +"This is a simplified interface to :c:func:`PyRun_InteractiveOneFlags` below, " +"leaving *flags* set to ``NULL``." msgstr "" #: ../../c-api/veryhigh.rst:125 @@ -168,8 +170,8 @@ msgstr "" msgid "" "Returns ``0`` when the input was executed successfully, ``-1`` if there was " "an exception, or an error code from the :file:`errcode.h` include file " -"distributed as part of Python if there was a parse error. (Note that " -":file:`errcode.h` is not included by :file:`Python.h`, so must be included " +"distributed as part of Python if there was a parse error. (Note that :file:" +"`errcode.h` is not included by :file:`Python.h`, so must be included " "specifically if needed.)" msgstr "" @@ -183,9 +185,9 @@ msgstr "" msgid "" "Read and execute statements from a file associated with an interactive " "device until EOF is reached. The user will be prompted using ``sys.ps1`` " -"and ``sys.ps2``. *filename* is decoded from the filesystem encoding " -"(:func:`sys.getfilesystemencoding`). Returns ``0`` at EOF or a negative " -"number upon failure." +"and ``sys.ps2``. *filename* is decoded from the filesystem encoding (:func:" +"`sys.getfilesystemencoding`). Returns ``0`` at EOF or a negative number " +"upon failure." msgstr "" #: ../../c-api/veryhigh.rst:154 @@ -202,38 +204,38 @@ msgstr "" msgid "" "Can be set to point to a function with the prototype ``char *func(FILE " "*stdin, FILE *stdout, char *prompt)``, overriding the default function used " -"to read a single line of input at the interpreter's prompt. The function is" -" expected to output the string *prompt* if it's not ``NULL``, and then read " -"a line of input from the provided standard input file, returning the " -"resulting string. For example, The :mod:`readline` module sets this hook to" -" provide line-editing and tab-completion features." +"to read a single line of input at the interpreter's prompt. The function is " +"expected to output the string *prompt* if it's not ``NULL``, and then read a " +"line of input from the provided standard input file, returning the resulting " +"string. For example, The :mod:`readline` module sets this hook to provide " +"line-editing and tab-completion features." msgstr "" #: ../../c-api/veryhigh.rst:174 msgid "" -"The result must be a string allocated by :c:func:`PyMem_RawMalloc` or " -":c:func:`PyMem_RawRealloc`, or ``NULL`` if an error occurred." +"The result must be a string allocated by :c:func:`PyMem_RawMalloc` or :c:" +"func:`PyMem_RawRealloc`, or ``NULL`` if an error occurred." msgstr "" #: ../../c-api/veryhigh.rst:177 msgid "" -"The result must be allocated by :c:func:`PyMem_RawMalloc` or " -":c:func:`PyMem_RawRealloc`, instead of being allocated by " -":c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`." +"The result must be allocated by :c:func:`PyMem_RawMalloc` or :c:func:" +"`PyMem_RawRealloc`, instead of being allocated by :c:func:`PyMem_Malloc` or :" +"c:func:`PyMem_Realloc`." msgstr "" #: ../../c-api/veryhigh.rst:185 msgid "" -"This is a simplified interface to " -":c:func:`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename*" -" set to ``NULL`` and *flags* set to ``0``." +"This is a simplified interface to :c:func:" +"`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename* set to " +"``NULL`` and *flags* set to ``0``." msgstr "" #: ../../c-api/veryhigh.rst:192 msgid "" -"This is a simplified interface to " -":c:func:`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename*" -" set to ``NULL``." +"This is a simplified interface to :c:func:" +"`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename* set to " +"``NULL``." msgstr "" #: ../../c-api/veryhigh.rst:199 @@ -253,23 +255,23 @@ msgstr "" #: ../../c-api/veryhigh.rst:214 msgid "" -"Similar to :c:func:`PyParser_SimpleParseStringFlagsFilename`, but the Python" -" source code is read from *fp* instead of an in-memory string." +"Similar to :c:func:`PyParser_SimpleParseStringFlagsFilename`, but the Python " +"source code is read from *fp* instead of an in-memory string." msgstr "" #: ../../c-api/veryhigh.rst:220 msgid "" -"This is a simplified interface to :c:func:`PyRun_StringFlags` below, leaving" -" *flags* set to ``NULL``." +"This is a simplified interface to :c:func:`PyRun_StringFlags` below, leaving " +"*flags* set to ``NULL``." msgstr "" #: ../../c-api/veryhigh.rst:226 msgid "" "Execute Python source code from *str* in the context specified by the " -"objects *globals* and *locals* with the compiler flags specified by *flags*." -" *globals* must be a dictionary; *locals* can be any object that implements" -" the mapping protocol. The parameter *start* specifies the start token that" -" should be used to parse the source code." +"objects *globals* and *locals* with the compiler flags specified by " +"*flags*. *globals* must be a dictionary; *locals* can be any object that " +"implements the mapping protocol. The parameter *start* specifies the start " +"token that should be used to parse the source code." msgstr "" #: ../../c-api/veryhigh.rst:232 @@ -280,29 +282,29 @@ msgstr "" #: ../../c-api/veryhigh.rst:238 msgid "" -"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving" -" *closeit* set to ``0`` and *flags* set to ``NULL``." +"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving " +"*closeit* set to ``0`` and *flags* set to ``NULL``." msgstr "" #: ../../c-api/veryhigh.rst:244 msgid "" -"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving" -" *flags* set to ``NULL``." +"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving " +"*flags* set to ``NULL``." msgstr "" #: ../../c-api/veryhigh.rst:250 msgid "" -"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving" -" *closeit* set to ``0``." +"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving " +"*closeit* set to ``0``." msgstr "" #: ../../c-api/veryhigh.rst:256 msgid "" "Similar to :c:func:`PyRun_StringFlags`, but the Python source code is read " "from *fp* instead of an in-memory string. *filename* should be the name of " -"the file, it is decoded from the filesystem encoding " -"(:func:`sys.getfilesystemencoding`). If *closeit* is true, the file is " -"closed before :c:func:`PyRun_FileExFlags` returns." +"the file, it is decoded from the filesystem encoding (:func:`sys." +"getfilesystemencoding`). If *closeit* is true, the file is closed before :c:" +"func:`PyRun_FileExFlags` returns." msgstr "" #: ../../c-api/veryhigh.rst:265 @@ -321,11 +323,11 @@ msgstr "" msgid "" "Parse and compile the Python source code in *str*, returning the resulting " "code object. The start token is given by *start*; this can be used to " -"constrain the code which can be compiled and should be " -":const:`Py_eval_input`, :const:`Py_file_input`, or :const:`Py_single_input`." -" The filename specified by *filename* is used to construct the code object " -"and may appear in tracebacks or :exc:`SyntaxError` exception messages. This" -" returns ``NULL`` if the code cannot be parsed or compiled." +"constrain the code which can be compiled and should be :const:" +"`Py_eval_input`, :const:`Py_file_input`, or :const:`Py_single_input`. The " +"filename specified by *filename* is used to construct the code object and " +"may appear in tracebacks or :exc:`SyntaxError` exception messages. This " +"returns ``NULL`` if the code cannot be parsed or compiled." msgstr "" #: ../../c-api/veryhigh.rst:285 @@ -345,9 +347,9 @@ msgstr "" #: ../../c-api/veryhigh.rst:303 msgid "" -"This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the" -" code object, and global and local variables. The other arguments are set " -"to ``NULL``." +"This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the " +"code object, and global and local variables. The other arguments are set to " +"``NULL``." msgstr "" #: ../../c-api/veryhigh.rst:310 @@ -361,14 +363,14 @@ msgstr "" #: ../../c-api/veryhigh.rst:319 msgid "" -"The C structure of the objects used to describe frame objects. The fields of" -" this type are subject to change at any time." +"The C structure of the objects used to describe frame objects. The fields of " +"this type are subject to change at any time." msgstr "" #: ../../c-api/veryhigh.rst:325 msgid "" -"Evaluate an execution frame. This is a simplified interface to " -":c:func:`PyEval_EvalFrameEx`, for backward compatibility." +"Evaluate an execution frame. This is a simplified interface to :c:func:" +"`PyEval_EvalFrameEx`, for backward compatibility." msgstr "" #: ../../c-api/veryhigh.rst:331 @@ -377,20 +379,20 @@ msgid "" "literally 2000 lines long. The code object associated with the execution " "frame *f* is executed, interpreting bytecode and executing calls as needed. " "The additional *throwflag* parameter can mostly be ignored - if true, then " -"it causes an exception to immediately be thrown; this is used for the " -":meth:`~generator.throw` methods of generator objects." +"it causes an exception to immediately be thrown; this is used for the :meth:" +"`~generator.throw` methods of generator objects." msgstr "" #: ../../c-api/veryhigh.rst:338 msgid "" -"This function now includes a debug assertion to help ensure that it does not" -" silently discard an active exception." +"This function now includes a debug assertion to help ensure that it does not " +"silently discard an active exception." msgstr "" #: ../../c-api/veryhigh.rst:345 msgid "" -"This function changes the flags of the current evaluation frame, and returns" -" true on success, false on failure." +"This function changes the flags of the current evaluation frame, and returns " +"true on success, false on failure." msgstr "" #: ../../c-api/veryhigh.rst:353 @@ -401,16 +403,16 @@ msgstr "" #: ../../c-api/veryhigh.rst:361 msgid "" -"The start symbol from the Python grammar for sequences of statements as read" -" from a file or other source; for use with :c:func:`Py_CompileString`. This" -" is the symbol to use when compiling arbitrarily long Python source code." +"The start symbol from the Python grammar for sequences of statements as read " +"from a file or other source; for use with :c:func:`Py_CompileString`. This " +"is the symbol to use when compiling arbitrarily long Python source code." msgstr "" #: ../../c-api/veryhigh.rst:370 msgid "" "The start symbol from the Python grammar for a single statement; for use " -"with :c:func:`Py_CompileString`. This is the symbol used for the interactive" -" interpreter loop." +"with :c:func:`Py_CompileString`. This is the symbol used for the interactive " +"interpreter loop." msgstr "" #: ../../c-api/veryhigh.rst:377 @@ -423,9 +425,9 @@ msgstr "" #: ../../c-api/veryhigh.rst:382 msgid "" -"Whenever ``PyCompilerFlags *flags`` is ``NULL``, :attr:`cf_flags` is treated" -" as equal to ``0``, and any modification due to ``from __future__ import`` " -"is discarded. ::" +"Whenever ``PyCompilerFlags *flags`` is ``NULL``, :attr:`cf_flags` is treated " +"as equal to ``0``, and any modification due to ``from __future__ import`` is " +"discarded. ::" msgstr "" #: ../../c-api/veryhigh.rst:393 diff --git a/c-api/weakref.po b/c-api/weakref.po index 7d5efa124..9400a0e03 100644 --- a/c-api/weakref.po +++ b/c-api/weakref.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -52,15 +54,24 @@ msgstr "Retornar True se *ob* for um objeto proxy." #: ../../c-api/weakref.rst:31 msgid "" -"Return a weak reference object for the object *ob*. This will always return" -" a new reference, but is not guaranteed to create a new object; an existing " +"Return a weak reference object for the object *ob*. This will always return " +"a new reference, but is not guaranteed to create a new object; an existing " "reference object may be returned. The second parameter, *callback*, can be " -"a callable object that receives notification when *ob* is garbage collected;" -" it should accept a single parameter, which will be the weak reference " -"object itself. *callback* may also be ``None`` or ``NULL``. If *ob* is not " -"a weakly-referencable object, or if *callback* is not callable, ``None``, or" -" ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`." +"a callable object that receives notification when *ob* is garbage collected; " +"it should accept a single parameter, which will be the weak reference object " +"itself. *callback* may also be ``None`` or ``NULL``. If *ob* is not a " +"weakly-referencable object, or if *callback* is not callable, ``None``, or " +"``NULL``, this will return ``NULL`` and raise :exc:`TypeError`." msgstr "" +"Retorna um objeto de referência fraco para o objeto *ob*. Isso sempre " +"retornará uma nova referência, mas não é garantido para criar um novo " +"objeto; um objeto de referência existente pode ser retornado. O segundo " +"parâmetro, *callback*, pode ser um objeto invocável que recebe notificação " +"quando *ob* for lixo coletado; ele deve aceitar um único parâmetro, que será " +"o objeto de referência fraco propriamente dito. *callback* também pode ser " +"``None`` ou ``NULL``. Se *ob* não for um objeto fracamente referenciável, ou " +"se *callback* não for invocado, ``None``, ou ``NULL``, isso retornará " +"``NULL`` e levantará a :exc:`TypeError`." #: ../../c-api/weakref.rst:43 msgid "" @@ -73,14 +84,23 @@ msgid "" "*ob* is not a weakly-referencable object, or if *callback* is not callable, " "``None``, or ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`." msgstr "" +"Retorna um objeto de proxy de referência fraco para o objeto *ob*. Isso " +"sempre retornará uma nova referência, mas não é garantido para criar um novo " +"objeto; um objeto de proxy existente pode ser retornado. O segundo " +"parâmetro, *callback*, pode ser um objeto invocável que recebe notificação " +"quando *ob* for lixo coletado; ele deve aceitar um único parâmetro, que será " +"o objeto de referência fraco propriamente dito. *callback* também pode ser " +"``None`` ou ``NULL``. Se *ob* não for um objeto fracamente referenciável, ou " +"se *callback* não for invocado, ``None``, ou ``NULL``, isso retornará " +"``NULL`` e levantará a :exc:`TypeError`." #: ../../c-api/weakref.rst:55 msgid "" "Return the referenced object from a weak reference, *ref*. If the referent " "is no longer live, returns :const:`Py_None`." msgstr "" -"Retorna o objeto referenciado de uma referência fraca, *ref*. Se o referente" -" não estiver mais em tempo real, retorna :const:`Py_None`." +"Retorna o objeto referenciado de uma referência fraca, *ref*. Se o referente " +"não estiver mais em tempo real, retorna :const:`Py_None`." #: ../../c-api/weakref.rst:60 msgid "" @@ -89,8 +109,8 @@ msgid "" "except if you know that it cannot be destroyed while you are still using it." msgstr "" "Esta função retorna **referência emprestada** ao objeto referenciado. Isso " -"significa que você deve sempre invocar :c:func:`Py_INCREF` no objeto, exceto" -" se você souber que não pode ser destruído enquanto você ainda está usando." +"significa que você deve sempre invocar :c:func:`Py_INCREF` no objeto, exceto " +"se você souber que não pode ser destruído enquanto você ainda está usando." #: ../../c-api/weakref.rst:68 msgid "" diff --git a/contents.po b/contents.po index d7522c354..7089f7459 100644 --- a/contents.po +++ b/contents.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Erick Simões , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" "Last-Translator: Erick Simões , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/copyright.po b/copyright.po index b78fb3969..5b6b58aee 100644 --- a/copyright.po +++ b/copyright.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Ademar Nowasky Junior , 2019 -# Rafael Marques , 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-03 10:20+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,9 +34,9 @@ msgid "Python and this documentation is:" msgstr "Python e essa documentação é:" #: ../../copyright.rst:7 -msgid "Copyright © 2001-2019 Python Software Foundation. All rights reserved." +msgid "Copyright © 2001-2020 Python Software Foundation. All rights reserved." msgstr "" -"Copyright © 2001-2019 Python Software Foundation. Todos os direitos " +"Copyright © 2001-2020 Python Software Foundation. Todos os direitos " "reservados." #: ../../copyright.rst:9 diff --git a/distributing/index.po b/distributing/index.po index bff760edf..c0b31cc13 100644 --- a/distributing/index.po +++ b/distributing/index.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 # Ruan Aragão , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-24 03:53+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Ruan Aragão , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,9 +40,8 @@ msgstr "distutils-sig@python.org" #: ../../distributing/index.rst:10 msgid "" "As a popular open source development project, Python has an active " -"supporting community of contributors and users that also make their software" -" available for other Python developers to use under open source license " -"terms." +"supporting community of contributors and users that also make their software " +"available for other Python developers to use under open source license terms." msgstr "" "Como um projeto popular de desenvolvimento open source, Python tem uma " "comunidade de apoio ativa de colaboradores e usuários, que também fazem o " @@ -50,13 +51,13 @@ msgstr "" #: ../../distributing/index.rst:14 msgid "" "This allows Python users to share and collaborate effectively, benefiting " -"from the solutions others have already created to common (and sometimes even" -" rare!) problems, as well as potentially contributing their own solutions to" -" the common pool." +"from the solutions others have already created to common (and sometimes even " +"rare!) problems, as well as potentially contributing their own solutions to " +"the common pool." msgstr "" "Isso permite aos usuários Python compartilhar e colaborar efetivamente, se " -"beneficiando das soluções que outros já tenham criado para os problemas mais" -" comuns (em alguns casos até mesmo os raros), bem como potencialmente " +"beneficiando das soluções que outros já tenham criado para os problemas mais " +"comuns (em alguns casos até mesmo os raros), bem como potencialmente " "contribuindo com suas próprias soluções para o conjunto de soluções comuns." #: ../../distributing/index.rst:19 @@ -103,32 +104,38 @@ msgid "" "issue trackers on both `GitHub `__ and `Bitbucket " "`__." msgstr "" +"o `Python Packaging Authority `__ é o grupo de " +"desenvolvedores e autores de documentação responsáveis pela manutenção e " +"evolução das ferramentas de empacotamento padrão e pelos padrões de " +"metadados e formato de arquivo associados. Eles mantêm uma variedade de " +"ferramentas, documentação e rastreadores de problemas no `GitHub `__ e `Bitbucket `__." #: ../../distributing/index.rst:44 msgid "" ":mod:`distutils` is the original build and distribution system first added " -"to the Python standard library in 1998. While direct use of :mod:`distutils`" -" is being phased out, it still laid the foundation for the current packaging" -" and distribution infrastructure, and it not only remains part of the " +"to the Python standard library in 1998. While direct use of :mod:`distutils` " +"is being phased out, it still laid the foundation for the current packaging " +"and distribution infrastructure, and it not only remains part of the " "standard library, but its name lives on in other ways (such as the name of " "the mailing list used to coordinate Python packaging standards development)." msgstr "" ":mod:`distutils` é o primeiro sistema de construção e distribuição " -"adicionado na biblioteca padrão do Python, em 1998. Embora o uso direto do " -":mod:`distutils` esteja sendo eliminado, ele estabelece as bases para a " +"adicionado na biblioteca padrão do Python, em 1998. Embora o uso direto do :" +"mod:`distutils` esteja sendo eliminado, ele estabelece as bases para a " "infraestrutura atual de empacotamento e distribuição, e não somente " -"permanece como parte da biblioteca padrão, mas seu nome continua sendo usado" -" de outras maneiras (como o nome da lista de e-mail usada para coordenar o " +"permanece como parte da biblioteca padrão, mas seu nome continua sendo usado " +"de outras maneiras (como o nome da lista de e-mail usada para coordenar o " "desenvolvimento dos padrões de empacotamento Python)." #: ../../distributing/index.rst:51 msgid "" "`setuptools`_ is a (largely) drop-in replacement for :mod:`distutils` first " -"published in 2004. Its most notable addition over the unmodified " -":mod:`distutils` tools was the ability to declare dependencies on other " -"packages. It is currently recommended as a more regularly updated " -"alternative to :mod:`distutils` that offers consistent support for more " -"recent packaging standards across a wide range of Python versions." +"published in 2004. Its most notable addition over the unmodified :mod:" +"`distutils` tools was the ability to declare dependencies on other packages. " +"It is currently recommended as a more regularly updated alternative to :mod:" +"`distutils` that offers consistent support for more recent packaging " +"standards across a wide range of Python versions." msgstr "" "`setuptools`_ é um substituto (em grande parte) para :mod:`distutils`, " "publicado pela primeira vez em 2004. Sua adição mais notável sobre as " @@ -142,13 +149,13 @@ msgstr "" msgid "" "`wheel`_ (in this context) is a project that adds the ``bdist_wheel`` " "command to :mod:`distutils`/`setuptools`_. This produces a cross platform " -"binary packaging format (called \"wheels\" or \"wheel files\" and defined in" -" :pep:`427`) that allows Python libraries, even those including binary " +"binary packaging format (called \"wheels\" or \"wheel files\" and defined " +"in :pep:`427`) that allows Python libraries, even those including binary " "extensions, to be installed on a system without needing to be built locally." msgstr "" "`wheel`_ (nesse contexto) é um projeto que adiciona o comando " -"``bdist_wheel`` ao :mod:`distutils`/`setuptools`_. Isso produz um formato de" -" pacote binário, portável entre várias plataformas (chamado \"wheels\" ou " +"``bdist_wheel`` ao :mod:`distutils`/`setuptools`_. Isso produz um formato de " +"pacote binário, portável entre várias plataformas (chamado \"wheels\" ou " "\"wheel files\" e definido no :pep:`427`), permitindo que bibliotecas " "Python, mesmo aquelas incluindo extensões binárias, sejam instaladas em um " "sistema, sem precisarem ser construídas localmente." @@ -171,16 +178,16 @@ msgstr "" msgid "" "Open source licensing is a way of explicitly granting such permission in a " "relatively consistent way, allowing developers to share and collaborate " -"efficiently by making common solutions to various problems freely available." -" This leaves many developers free to spend more time focusing on the " -"problems that are relatively unique to their specific situation." +"efficiently by making common solutions to various problems freely available. " +"This leaves many developers free to spend more time focusing on the problems " +"that are relatively unique to their specific situation." msgstr "" "O licenciamento de código aberto é uma forma de conceder explicitamente tal " "permissão, de maneira relativamente consistente, permitindo aos " "desenvolvedores compartilhar e colaborar de forma eficiente, criando " "soluções comuns para vários problemas disponíveis gratuitamente. Isso " -"permite que os desenvolvedores dediquem mais tempo focados nos problemas que" -" são relativamente exclusivos para sua situação específica." +"permite que os desenvolvedores dediquem mais tempo focados nos problemas que " +"são relativamente exclusivos para sua situação específica." #: ../../distributing/index.rst:80 msgid "" @@ -189,9 +196,9 @@ msgid "" "back to that common pool of software if they choose to do so." msgstr "" "As ferramentas de distribuição fornecidas com o Python são projetadas para " -"tornar razoavelmente simples, para os desenvolvedores, fazerem suas próprias" -" contribuições, de volta para esse conjunto comum de software, se optarem " -"por fazê-lo." +"tornar razoavelmente simples, para os desenvolvedores, fazerem suas próprias " +"contribuições, de volta para esse conjunto comum de software, se optarem por " +"fazê-lo." #: ../../distributing/index.rst:84 msgid "" @@ -209,8 +216,8 @@ msgstr "Instalando as ferramentas" #: ../../distributing/index.rst:92 msgid "" -"The standard library does not include build tools that support modern Python" -" packaging standards, as the core development team has found that it is " +"The standard library does not include build tools that support modern Python " +"packaging standards, as the core development team has found that it is " "important to have standard tools that work consistently, even on older " "versions of Python." msgstr "" @@ -241,8 +248,8 @@ msgid "" "system PATH environment variable was selected when installing Python." msgstr "" "Para usuários Windows, essas instruções assumem que a opção de ajustar a " -"variável de ambiente do sistema, PATH, foi selecionado durante a instalação" -" do Python." +"variável de ambiente do sistema, PATH, foi selecionado durante a instalação " +"do Python." #: ../../distributing/index.rst:111 msgid "" @@ -261,8 +268,8 @@ msgid "" "The Python Packaging User Guide covers the various key steps and elements " "involved in creating and publishing a project:" msgstr "" -"O \"Python Packaging User Guide\" abrange as várias etapas e elementos-chave" -" envolvidos na criação e publicação de um projeto:" +"O \"Python Packaging User Guide\" abrange as várias etapas e elementos-chave " +"envolvidos na criação e publicação de um projeto:" #: ../../distributing/index.rst:128 msgid "`Project structure`_" @@ -294,13 +301,16 @@ msgstr "Não é um tema fácil, mas aqui estão algumas dicas:" #: ../../distributing/index.rst:150 msgid "check the Python Packaging Index to see if the name is already in use" -msgstr "verifique o \"Python Packaging Index\" para ver se o nome já está em uso" +msgstr "" +"verifique o \"Python Packaging Index\" para ver se o nome já está em uso" #: ../../distributing/index.rst:151 msgid "" "check popular hosting sites like GitHub, Bitbucket, etc to see if there is " "already a project with that name" msgstr "" +"verifique sites de hospedagem populares como GitHub, Bitbucket etc. para ver " +"se já existe um projeto com esse nome" #: ../../distributing/index.rst:153 msgid "check what comes up in a web search for the name you're considering" @@ -325,8 +335,8 @@ msgstr "... crio e distribuo extensões binárias?" #: ../../distributing/index.rst:162 msgid "" "This is actually quite a complex topic, with a variety of alternatives " -"available depending on exactly what you're aiming to achieve. See the Python" -" Packaging User Guide for more information and recommendations." +"available depending on exactly what you're aiming to achieve. See the Python " +"Packaging User Guide for more information and recommendations." msgstr "" "Este é realmente um tema bastante complexo, com uma variedade de " "alternativas disponíveis, dependendo exatamente do que você pretende " @@ -335,8 +345,8 @@ msgstr "" #: ../../distributing/index.rst:168 msgid "" -"`Python Packaging User Guide: Binary Extensions " -"`__" +"`Python Packaging User Guide: Binary Extensions `__" msgstr "" -"`Python Packaging User Guide: Binary Extensions " -"`__" +"`Python Packaging User Guide: Binary Extensions `__" diff --git a/distutils/apiref.po b/distutils/apiref.po index b4889834b..e2f45e7f5 100644 --- a/distutils/apiref.po +++ b/distutils/apiref.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # And Past , 2019 # Hildeberto Abreu Magalhães , 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # felipe caridade , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,9 +38,8 @@ msgstr ":mod:`distutils.core` --- funcionalidade principal Distutils" msgid "" "The :mod:`distutils.core` module is the only module that needs to be " "installed to use the Distutils. It provides the :func:`setup` (which is " -"called from the setup script). Indirectly provides the " -":class:`distutils.dist.Distribution` and :class:`distutils.cmd.Command` " -"class." +"called from the setup script). Indirectly provides the :class:`distutils." +"dist.Distribution` and :class:`distutils.cmd.Command` class." msgstr "" "O módulo :mod:`distutils.core` é o único módulo que necessita ser instalado " "para usar Distutils. Provê a função :func:`setup` (que é chamada do script " @@ -140,12 +140,12 @@ msgstr "*maintainer*" #: ../../distutils/apiref.rst:51 msgid "" "The name of the current maintainer, if different from the author. Note that " -"if the maintainer is provided, distutils will use it as the author in :file" -":`PKG-INFO`" +"if the maintainer is provided, distutils will use it as the author in :file:" +"`PKG-INFO`" msgstr "" "O nome do mantenedor atual, se for diferente do autor. Observe que s o " -"mantenedor for fornecido, distutils vai usá-lo como autor, no arquivo :file" -":`PKG-INFO`" +"mantenedor for fornecido, distutils vai usá-lo como autor, no arquivo :file:" +"`PKG-INFO`" #: ../../distutils/apiref.rst:58 msgid "*maintainer_email*" @@ -229,11 +229,11 @@ msgstr "Uma lista de categorias para o pacote" #: ../../distutils/apiref.rst:80 msgid "" -"a list of strings; valid classifiers are listed on `PyPI " -"`_." +"a list of strings; valid classifiers are listed on `PyPI `_." msgstr "" -"uma lista de strings; classificadores válidos são listados no `PyPI " -"`_." +"uma lista de strings; classificadores válidos são listados no `PyPI `_." #: ../../distutils/apiref.rst:83 msgid "*distclass*" @@ -330,18 +330,18 @@ msgstr "Um mapeamento do pacote para nomes de diretórios" #: ../../distutils/apiref.rst:117 msgid "" -"Run a setup script in a somewhat controlled environment, and return the " -":class:`distutils.dist.Distribution` instance that drives things. This is " +"Run a setup script in a somewhat controlled environment, and return the :" +"class:`distutils.dist.Distribution` instance that drives things. This is " "useful if you need to find out the distribution meta-data (passed as " -"keyword args from *script* to :func:`setup`), or the contents of the config" -" files or command-line." +"keyword args from *script* to :func:`setup`), or the contents of the config " +"files or command-line." msgstr "" #: ../../distutils/apiref.rst:123 msgid "" -"*script_name* is a file that will be read and run with :func:`exec`. " -"``sys.argv[0]`` will be replaced with *script* for the duration of the call." -" *script_args* is a list of strings; if supplied, ``sys.argv[1:]`` will be " +"*script_name* is a file that will be read and run with :func:`exec`. ``sys." +"argv[0]`` will be replaced with *script* for the duration of the call. " +"*script_args* is a list of strings; if supplied, ``sys.argv[1:]`` will be " "replaced by *script_args* for the duration of the call." msgstr "" @@ -371,8 +371,8 @@ msgstr "*config*" #: ../../distutils/apiref.rst:139 msgid "" -"Stop after config files have been parsed (and their data stored in the " -":class:`Distribution` instance)" +"Stop after config files have been parsed (and their data stored in the :" +"class:`Distribution` instance)" msgstr "" #: ../../distutils/apiref.rst:143 @@ -402,9 +402,9 @@ msgid "" msgstr "" #: ../../distutils/apiref.rst:157 -msgid "" -":class:`~distutils.extension.Extension` from :mod:`distutils.extension`" +msgid ":class:`~distutils.extension.Extension` from :mod:`distutils.extension`" msgstr "" +":class:`~distutils.extension.Extension` from :mod:`distutils.extension`" #: ../../distutils/apiref.rst:159 msgid ":class:`~distutils.cmd.Command` from :mod:`distutils.cmd`" @@ -412,7 +412,7 @@ msgstr ":class:`~distutils.cmd.Command` de :mod:`distutils.cmd`" #: ../../distutils/apiref.rst:161 msgid ":class:`~distutils.dist.Distribution` from :mod:`distutils.dist`" -msgstr "" +msgstr ":class:`~distutils.dist.Distribution` from :mod:`distutils.dist`" #: ../../distutils/apiref.rst:163 msgid "" @@ -438,11 +438,11 @@ msgstr "" #: ../../distutils/apiref.rst:183 msgid "" -"list of source filenames, relative to the distribution root (where the setup" -" script lives), in Unix form (slash-separated) for portability. Source files" -" may be C, C++, SWIG (.i), platform-specific resource files, or whatever " -"else is recognized by the :command:`build_ext` command as source for a " -"Python extension." +"list of source filenames, relative to the distribution root (where the setup " +"script lives), in Unix form (slash-separated) for portability. Source files " +"may be C, C++, SWIG (.i), platform-specific resource files, or whatever else " +"is recognized by the :command:`build_ext` command as source for a Python " +"extension." msgstr "" #: ../../distutils/apiref.rst:197 @@ -511,8 +511,8 @@ msgstr "" #: ../../distutils/apiref.rst:230 msgid "" -"list of extra files to link with (eg. object files not implied by 'sources'," -" static library that must be explicitly specified, binary resource files, " +"list of extra files to link with (eg. object files not implied by 'sources', " +"static library that must be explicitly specified, binary resource files, " "etc.)" msgstr "" @@ -614,8 +614,8 @@ msgstr "" #: ../../distutils/apiref.rst:307 msgid "" "This module provides the abstract base class for the :class:`CCompiler` " -"classes. A :class:`CCompiler` instance can be used for all the compile and" -" link steps needed to build a single project. Methods are provided to set " +"classes. A :class:`CCompiler` instance can be used for all the compile and " +"link steps needed to build a single project. Methods are provided to set " "options for the compiler --- macro definitions, include directories, link " "path, libraries and the like." msgstr "" @@ -627,19 +627,19 @@ msgstr "" #: ../../distutils/apiref.rst:318 msgid "" "Generate linker options for searching library directories and linking with " -"specific libraries. *libraries* and *library_dirs* are, respectively, lists" -" of library names (not filenames!) and search directories. Returns a list " -"of command-line options suitable for use with some compiler (depending on " -"the two format strings passed in)." +"specific libraries. *libraries* and *library_dirs* are, respectively, lists " +"of library names (not filenames!) and search directories. Returns a list of " +"command-line options suitable for use with some compiler (depending on the " +"two format strings passed in)." msgstr "" #: ../../distutils/apiref.rst:327 msgid "" -"Generate C pre-processor options (:option:`!-D`, :option:`!-U`, " -":option:`!-I`) as used by at least two types of compilers: the typical Unix " -"compiler and Visual C++. *macros* is the usual thing, a list of 1- or " -"2-tuples, where ``(name,)`` means undefine (:option:`!-U`) macro *name*, and" -" ``(name, value)`` means define (:option:`!-D`) macro *name* to *value*. " +"Generate C pre-processor options (:option:`!-D`, :option:`!-U`, :option:`!-" +"I`) as used by at least two types of compilers: the typical Unix compiler " +"and Visual C++. *macros* is the usual thing, a list of 1- or 2-tuples, where " +"``(name,)`` means undefine (:option:`!-U`) macro *name*, and ``(name, " +"value)`` means define (:option:`!-D`) macro *name* to *value*. " "*include_dirs* is just a list of directory names to be added to the header " "file search path (:option:`!-I`). Returns a list of command-line options " "suitable for either Unix compilers or Visual C++." @@ -652,8 +652,8 @@ msgstr "" #: ../../distutils/apiref.rst:341 msgid "" "*osname* should be one of the standard Python OS names (i.e. the ones " -"returned by ``os.name``) and *platform* the common value returned by " -"``sys.platform`` for the platform in question." +"returned by ``os.name``) and *platform* the common value returned by ``sys." +"platform`` for the platform in question." msgstr "" #: ../../distutils/apiref.rst:345 @@ -666,11 +666,11 @@ msgstr "" msgid "" "Factory function to generate an instance of some CCompiler subclass for the " "supplied platform/compiler combination. *plat* defaults to ``os.name`` (eg. " -"``'posix'``, ``'nt'``), and *compiler* defaults to the default compiler for" -" that platform. Currently only ``'posix'`` and ``'nt'`` are supported, and " -"the default compilers are \"traditional Unix interface\" " -"(:class:`UnixCCompiler` class) and Visual C++ (:class:`MSVCCompiler` class)." -" Note that it's perfectly possible to ask for a Unix compiler object under " +"``'posix'``, ``'nt'``), and *compiler* defaults to the default compiler for " +"that platform. Currently only ``'posix'`` and ``'nt'`` are supported, and " +"the default compilers are \"traditional Unix interface\" (:class:" +"`UnixCCompiler` class) and Visual C++ (:class:`MSVCCompiler` class). Note " +"that it's perfectly possible to ask for a Unix compiler object under " "Windows, and a Microsoft compiler object under Unix---if you supply a value " "for *compiler*, *plat* is ignored." msgstr "" @@ -690,9 +690,9 @@ msgstr "" #: ../../distutils/apiref.rst:377 msgid "" -"The basic idea behind a compiler abstraction class is that each instance can" -" be used for all the compile/link steps in building a single project. Thus," -" attributes common to all of those compile and link steps --- include " +"The basic idea behind a compiler abstraction class is that each instance can " +"be used for all the compile/link steps in building a single project. Thus, " +"attributes common to all of those compile and link steps --- include " "directories, macros to define, libraries to link against, etc. --- are " "attributes of the compiler instance. To allow for variability in how " "individual files are treated, most of those attributes may be varied on a " @@ -702,8 +702,8 @@ msgstr "" #: ../../distutils/apiref.rst:385 msgid "" "The constructor for each subclass creates an instance of the Compiler " -"object. Flags are *verbose* (show verbose output), *dry_run* (don't actually" -" execute the steps) and *force* (rebuild everything, regardless of " +"object. Flags are *verbose* (show verbose output), *dry_run* (don't actually " +"execute the steps) and *force* (rebuild everything, regardless of " "dependencies). All of these flags default to ``0`` (off). Note that you " "probably don't want to instantiate :class:`CCompiler` or one of its " "subclasses directly - use the :func:`distutils.CCompiler.new_compiler` " @@ -718,26 +718,26 @@ msgstr "" #: ../../distutils/apiref.rst:398 msgid "" -"Add *dir* to the list of directories that will be searched for header files." -" The compiler is instructed to search directories in the order in which they" -" are supplied by successive calls to :meth:`add_include_dir`." +"Add *dir* to the list of directories that will be searched for header files. " +"The compiler is instructed to search directories in the order in which they " +"are supplied by successive calls to :meth:`add_include_dir`." msgstr "" #: ../../distutils/apiref.rst:405 msgid "" "Set the list of directories that will be searched to *dirs* (a list of " "strings). Overrides any preceding calls to :meth:`add_include_dir`; " -"subsequent calls to :meth:`add_include_dir` add to the list passed to " -":meth:`set_include_dirs`. This does not affect any list of standard include " +"subsequent calls to :meth:`add_include_dir` add to the list passed to :meth:" +"`set_include_dirs`. This does not affect any list of standard include " "directories that the compiler may search by default." msgstr "" #: ../../distutils/apiref.rst:414 msgid "" "Add *libname* to the list of libraries that will be included in all links " -"driven by this compiler object. Note that *libname* should \\*not\\* be the" -" name of a file containing a library, but the name of the library itself: " -"the actual filename will be inferred by the linker, the compiler, or the " +"driven by this compiler object. Note that *libname* should \\*not\\* be the " +"name of a file containing a library, but the name of the library itself: the " +"actual filename will be inferred by the linker, the compiler, or the " "compiler class (depending on the platform)." msgstr "" @@ -745,23 +745,23 @@ msgstr "" msgid "" "The linker will be instructed to link against libraries in the order they " "were supplied to :meth:`add_library` and/or :meth:`set_libraries`. It is " -"perfectly valid to duplicate library names; the linker will be instructed to" -" link against libraries as many times as they are mentioned." +"perfectly valid to duplicate library names; the linker will be instructed to " +"link against libraries as many times as they are mentioned." msgstr "" #: ../../distutils/apiref.rst:428 msgid "" "Set the list of libraries to be included in all links driven by this " -"compiler object to *libnames* (a list of strings). This does not affect any" -" standard system libraries that the linker may include by default." +"compiler object to *libnames* (a list of strings). This does not affect any " +"standard system libraries that the linker may include by default." msgstr "" #: ../../distutils/apiref.rst:435 msgid "" "Add *dir* to the list of directories that will be searched for libraries " -"specified to :meth:`add_library` and :meth:`set_libraries`. The linker will" -" be instructed to search for libraries in the order they are supplied to " -":meth:`add_library_dir` and/or :meth:`set_library_dirs`." +"specified to :meth:`add_library` and :meth:`set_libraries`. The linker will " +"be instructed to search for libraries in the order they are supplied to :" +"meth:`add_library_dir` and/or :meth:`set_library_dirs`." msgstr "" #: ../../distutils/apiref.rst:443 @@ -796,8 +796,8 @@ msgstr "" msgid "" "Undefine a preprocessor macro for all compilations driven by this compiler " "object. If the same macro is defined by :meth:`define_macro` and undefined " -"by :meth:`undefine_macro` the last call takes precedence (including multiple" -" redefinitions or undefinitions). If the macro is redefined/undefined on a " +"by :meth:`undefine_macro` the last call takes precedence (including multiple " +"redefinitions or undefinitions). If the macro is redefined/undefined on a " "per-compilation basis (ie. in the call to :meth:`compile`), then that takes " "precedence." msgstr "" @@ -831,9 +831,9 @@ msgstr "" #: ../../distutils/apiref.rst:507 msgid "" -"Search the specified list of directories for a static or shared library file" -" *lib* and return the full path to that file. If *debug* is true, look for " -"a debugging version (if that makes sense on the current platform). Return " +"Search the specified list of directories for a static or shared library file " +"*lib* and return the full path to that file. If *debug* is true, look for a " +"debugging version (if that makes sense on the current platform). Return " "``None`` if *lib* wasn't found in any of the specified directories." msgstr "" @@ -853,8 +853,8 @@ msgstr "" #: ../../distutils/apiref.rst:529 msgid "" -"Return the compiler option to add *lib* to the list of libraries linked into" -" the shared library or executable." +"Return the compiler option to add *lib* to the list of libraries linked into " +"the shared library or executable." msgstr "" #: ../../distutils/apiref.rst:535 @@ -866,8 +866,8 @@ msgstr "" #: ../../distutils/apiref.rst:541 msgid "" "Define the executables (and options for them) that will be run to perform " -"the various stages of compilation. The exact set of executables that may be" -" specified here depends on the compiler class (via the 'executables' class " +"the various stages of compilation. The exact set of executables that may be " +"specified here depends on the compiler class (via the 'executables' class " "attribute), but most will have:" msgstr "" @@ -922,8 +922,8 @@ msgstr "" #: ../../distutils/apiref.rst:570 msgid "" -"Compile one or more source files. Generates object files (e.g. transforms a" -" :file:`.c` file to a :file:`.o` file.)" +"Compile one or more source files. Generates object files (e.g. transforms " +"a :file:`.c` file to a :file:`.o` file.)" msgstr "" #: ../../distutils/apiref.rst:573 @@ -938,19 +938,19 @@ msgstr "" #: ../../distutils/apiref.rst:580 msgid "" -"If *output_dir* is given, object files will be put under it, while retaining" -" their original path component. That is, :file:`foo/bar.c` normally " -"compiles to :file:`foo/bar.o` (for a Unix implementation); if *output_dir* " -"is *build*, then it would compile to :file:`build/foo/bar.o`." +"If *output_dir* is given, object files will be put under it, while retaining " +"their original path component. That is, :file:`foo/bar.c` normally compiles " +"to :file:`foo/bar.o` (for a Unix implementation); if *output_dir* is " +"*build*, then it would compile to :file:`build/foo/bar.o`." msgstr "" #: ../../distutils/apiref.rst:585 msgid "" -"*macros*, if given, must be a list of macro definitions. A macro definition" -" is either a ``(name, value)`` 2-tuple or a ``(name,)`` 1-tuple. The former " +"*macros*, if given, must be a list of macro definitions. A macro definition " +"is either a ``(name, value)`` 2-tuple or a ``(name,)`` 1-tuple. The former " "defines a macro; if the value is ``None``, the macro is defined without an " -"explicit value. The 1-tuple case undefines a macro. Later " -"definitions/redefinitions/undefinitions take precedence." +"explicit value. The 1-tuple case undefines a macro. Later definitions/" +"redefinitions/undefinitions take precedence." msgstr "" #: ../../distutils/apiref.rst:591 @@ -992,23 +992,22 @@ msgstr "" msgid "" "Link a bunch of stuff together to create a static library file. The \"bunch " "of stuff\" consists of the list of object files supplied as *objects*, the " -"extra object files supplied to :meth:`add_link_object` and/or " -":meth:`set_link_objects`, the libraries supplied to :meth:`add_library` " -"and/or :meth:`set_libraries`, and the libraries supplied as *libraries* (if " -"any)." +"extra object files supplied to :meth:`add_link_object` and/or :meth:" +"`set_link_objects`, the libraries supplied to :meth:`add_library` and/or :" +"meth:`set_libraries`, and the libraries supplied as *libraries* (if any)." msgstr "" #: ../../distutils/apiref.rst:620 msgid "" -"*output_libname* should be a library name, not a filename; the filename will" -" be inferred from the library name. *output_dir* is the directory where the" -" library file will be put." +"*output_libname* should be a library name, not a filename; the filename will " +"be inferred from the library name. *output_dir* is the directory where the " +"library file will be put." msgstr "" #: ../../distutils/apiref.rst:626 msgid "" -"*debug* is a boolean; if true, debugging information will be included in the" -" library (note that on most platforms, it is the compile step where this " +"*debug* is a boolean; if true, debugging information will be included in the " +"library (note that on most platforms, it is the compile step where this " "matters: the *debug* flag is included here just for consistency)." msgstr "" @@ -1040,8 +1039,8 @@ msgstr "" msgid "" "*libraries* is a list of libraries to link against. These are library " "names, not filenames, since they're translated into filenames in a platform-" -"specific way (eg. *foo* becomes :file:`libfoo.a` on Unix and :file:`foo.lib`" -" on DOS/Windows). However, they can include a directory component, which " +"specific way (eg. *foo* becomes :file:`libfoo.a` on Unix and :file:`foo.lib` " +"on DOS/Windows). However, they can include a directory component, which " "means the linker will look in that specific directory rather than searching " "all the normal locations." msgstr "" @@ -1050,11 +1049,11 @@ msgstr "" msgid "" "*library_dirs*, if supplied, should be a list of directories to search for " "libraries that were specified as bare library names (ie. no directory " -"component). These are on top of the system default and those supplied to " -":meth:`add_library_dir` and/or :meth:`set_library_dirs`. " +"component). These are on top of the system default and those supplied to :" +"meth:`add_library_dir` and/or :meth:`set_library_dirs`. " "*runtime_library_dirs* is a list of directories that will be embedded into " -"the shared library and used to search for other shared libraries that " -"\\*it\\* depends on at run-time. (This may only be relevant on Unix.)" +"the shared library and used to search for other shared libraries that \\*it" +"\\* depends on at run-time. (This may only be relevant on Unix.)" msgstr "" #: ../../distutils/apiref.rst:660 @@ -1066,9 +1065,9 @@ msgstr "" #: ../../distutils/apiref.rst:663 msgid "" "*debug* is as for :meth:`compile` and :meth:`create_static_lib`, with the " -"slight distinction that it actually matters on most platforms (as opposed to" -" :meth:`create_static_lib`, which includes a *debug* flag mostly for form's " -"sake)." +"slight distinction that it actually matters on most platforms (as opposed " +"to :meth:`create_static_lib`, which includes a *debug* flag mostly for " +"form's sake)." msgstr "" #: ../../distutils/apiref.rst:668 @@ -1099,8 +1098,8 @@ msgstr "" #: ../../distutils/apiref.rst:694 msgid "" "Link a shared object. *output_filename* is the name of the shared object " -"that will be created, while *objects* is a list of object filenames to link" -" in. Other arguments are as for the :meth:`link` method." +"that will be created, while *objects* is a list of object filenames to link " +"in. Other arguments are as for the :meth:`link` method." msgstr "" #: ../../distutils/apiref.rst:701 @@ -1108,10 +1107,9 @@ msgid "" "Preprocess a single C/C++ source file, named in *source*. Output will be " "written to file named *output_file*, or *stdout* if *output_file* not " "supplied. *macros* is a list of macro definitions as for :meth:`compile`, " -"which will augment the macros set with :meth:`define_macro` and " -":meth:`undefine_macro`. *include_dirs* is a list of directory names that " -"will be added to the default list, in the same way as " -":meth:`add_include_dir`." +"which will augment the macros set with :meth:`define_macro` and :meth:" +"`undefine_macro`. *include_dirs* is a list of directory names that will be " +"added to the default list, in the same way as :meth:`add_include_dir`." msgstr "" #: ../../distutils/apiref.rst:708 @@ -1165,13 +1163,12 @@ msgstr "" #: ../../distutils/apiref.rst:755 msgid "" -"Invokes :func:`distutils.dir_util.mkpath`. This creates a directory and any" -" missing ancestor directories." +"Invokes :func:`distutils.dir_util.mkpath`. This creates a directory and any " +"missing ancestor directories." msgstr "" #: ../../distutils/apiref.rst:761 -msgid "" -"Invokes :meth:`distutils.file_util.move_file`. Renames *src* to *dst*." +msgid "Invokes :meth:`distutils.file_util.move_file`. Renames *src* to *dst*." msgstr "" #: ../../distutils/apiref.rst:766 @@ -1184,8 +1181,8 @@ msgstr "" #: ../../distutils/apiref.rst:776 msgid "" -"If the *debug* flag is set on this :class:`CCompiler` instance, print *msg*" -" to standard output, otherwise do nothing." +"If the *debug* flag is set on this :class:`CCompiler` instance, print *msg* " +"to standard output, otherwise do nothing." msgstr "" #: ../../distutils/apiref.rst:788 @@ -1194,9 +1191,8 @@ msgstr "" #: ../../distutils/apiref.rst:794 msgid "" -"This module provides the :class:`UnixCCompiler` class, a subclass of " -":class:`CCompiler` that handles the typical Unix-style command-line C " -"compiler:" +"This module provides the :class:`UnixCCompiler` class, a subclass of :class:" +"`CCompiler` that handles the typical Unix-style command-line C compiler:" msgstr "" #: ../../distutils/apiref.rst:797 @@ -1227,8 +1223,8 @@ msgstr "" #: ../../distutils/apiref.rst:810 msgid "" -"link static library handled by :program:`ar` command (possibly with " -":program:`ranlib`)" +"link static library handled by :program:`ar` command (possibly with :program:" +"`ranlib`)" msgstr "" #: ../../distutils/apiref.rst:813 @@ -1252,12 +1248,11 @@ msgstr "" msgid "" ":class:`MSVCCompiler` will normally choose the right compiler, linker etc. " "on its own. To override this choice, the environment variables " -"*DISTUTILS_USE_SDK* and *MSSdk* must be both set. *MSSdk* indicates that the" -" current environment has been setup by the SDK's ``SetEnv.Cmd`` script, or " +"*DISTUTILS_USE_SDK* and *MSSdk* must be both set. *MSSdk* indicates that the " +"current environment has been setup by the SDK's ``SetEnv.Cmd`` script, or " "that the environment variables had been registered when the SDK was " -"installed; *DISTUTILS_USE_SDK* indicates that the distutils user has made an" -" explicit choice to override the compiler selection by " -":class:`MSVCCompiler`." +"installed; *DISTUTILS_USE_SDK* indicates that the distutils user has made an " +"explicit choice to override the compiler selection by :class:`MSVCCompiler`." msgstr "" #: ../../distutils/apiref.rst:840 @@ -1266,8 +1261,8 @@ msgstr "" #: ../../distutils/apiref.rst:845 msgid "" -"This module provides :class:`BorlandCCompiler`, a subclass of the abstract " -":class:`CCompiler` class for the Borland C++ compiler." +"This module provides :class:`BorlandCCompiler`, a subclass of the abstract :" +"class:`CCompiler` class for the Borland C++ compiler." msgstr "" #: ../../distutils/apiref.rst:850 @@ -1276,9 +1271,9 @@ msgstr "" #: ../../distutils/apiref.rst:855 msgid "" -"This module provides the :class:`CygwinCCompiler` class, a subclass of " -":class:`UnixCCompiler` that handles the Cygwin port of the GNU C compiler to" -" Windows. It also contains the Mingw32CCompiler class which handles the " +"This module provides the :class:`CygwinCCompiler` class, a subclass of :" +"class:`UnixCCompiler` that handles the Cygwin port of the GNU C compiler to " +"Windows. It also contains the Mingw32CCompiler class which handles the " "mingw32 port of GCC (same as cygwin in no-cygwin mode)." msgstr "" @@ -1295,11 +1290,11 @@ msgstr "" #: ../../distutils/apiref.rst:874 msgid "" "Create an archive file (eg. ``zip`` or ``tar``). *base_name* is the name " -"of the file to create, minus any format-specific extension; *format* is the" -" archive format: one of ``zip``, ``tar``, ``gztar``, ``bztar``, ``xztar``, " -"or ``ztar``. *root_dir* is a directory that will be the root directory of " -"the archive; ie. we typically ``chdir`` into *root_dir* before creating the" -" archive. *base_dir* is the directory where we start archiving from; ie. " +"of the file to create, minus any format-specific extension; *format* is the " +"archive format: one of ``zip``, ``tar``, ``gztar``, ``bztar``, ``xztar``, or " +"``ztar``. *root_dir* is a directory that will be the root directory of the " +"archive; ie. we typically ``chdir`` into *root_dir* before creating the " +"archive. *base_dir* is the directory where we start archiving from; ie. " "*base_dir* will be the common prefix of all files and directories in the " "archive. *root_dir* and *base_dir* both default to the current directory. " "Returns the name of the archive file." @@ -1311,12 +1306,12 @@ msgstr "" #: ../../distutils/apiref.rst:890 msgid "" -"'Create an (optional compressed) archive as a tar file from all files in and" -" under *base_dir*. *compress* must be ``'gzip'`` (the default), ``'bzip2'``," -" ``'xz'``, ``'compress'``, or ``None``. For the ``'compress'`` method the " +"'Create an (optional compressed) archive as a tar file from all files in and " +"under *base_dir*. *compress* must be ``'gzip'`` (the default), ``'bzip2'``, " +"``'xz'``, ``'compress'``, or ``None``. For the ``'compress'`` method the " "compression utility named by :program:`compress` must be on the default " -"program search path, so this is probably Unix-specific. The output tar file" -" will be named :file:`base_dir.tar`, possibly plus the appropriate " +"program search path, so this is probably Unix-specific. The output tar file " +"will be named :file:`base_dir.tar`, possibly plus the appropriate " "compression extension (``.gz``, ``.bz2``, ``.xz`` or ``.Z``). Return the " "output filename." msgstr "" @@ -1328,11 +1323,11 @@ msgstr "" #: ../../distutils/apiref.rst:905 msgid "" "Create a zip file from all files in and under *base_dir*. The output zip " -"file will be named *base_name* + :file:`.zip`. Uses either the " -":mod:`zipfile` Python module (if available) or the InfoZIP :file:`zip` " -"utility (if installed and found on the default search path). If neither " -"tool is available, raises :exc:`DistutilsExecError`. Returns the name of " -"the output zip file." +"file will be named *base_name* + :file:`.zip`. Uses either the :mod:" +"`zipfile` Python module (if available) or the InfoZIP :file:`zip` utility " +"(if installed and found on the default search path). If neither tool is " +"available, raises :exc:`DistutilsExecError`. Returns the name of the " +"output zip file." msgstr "" #: ../../distutils/apiref.rst:913 @@ -1350,16 +1345,16 @@ msgstr "" msgid "" "Return true if *source* exists and is more recently modified than *target*, " "or if *source* exists and *target* doesn't. Return false if both exist and " -"*target* is the same age or newer than *source*. Raise " -":exc:`DistutilsFileError` if *source* does not exist." +"*target* is the same age or newer than *source*. Raise :exc:" +"`DistutilsFileError` if *source* does not exist." msgstr "" #: ../../distutils/apiref.rst:934 msgid "" "Walk two filename lists in parallel, testing if each source is newer than " "its corresponding target. Return a pair of lists (*sources*, *targets*) " -"where source is newer than target, according to the semantics of " -":func:`newer`." +"where source is newer than target, according to the semantics of :func:" +"`newer`." msgstr "" #: ../../distutils/apiref.rst:943 @@ -1367,13 +1362,13 @@ msgid "" "Return true if *target* is out-of-date with respect to any file listed in " "*sources*. In other words, if *target* exists and is newer than every file " "in *sources*, return false; otherwise return true. *missing* controls what " -"we do when a source file is missing; the default (``'error'``) is to blow up" -" with an :exc:`OSError` from inside :func:`os.stat`; if it is ``'ignore'``," -" we silently drop any missing source files; if it is ``'newer'``, any " -"missing source files make us assume that *target* is out-of-date (this is " -"handy in \"dry-run\" mode: it'll make you pretend to carry out commands that" -" wouldn't work because inputs are missing, but that doesn't matter because " -"you're not actually going to run the commands)." +"we do when a source file is missing; the default (``'error'``) is to blow up " +"with an :exc:`OSError` from inside :func:`os.stat`; if it is ``'ignore'``, " +"we silently drop any missing source files; if it is ``'newer'``, any missing " +"source files make us assume that *target* is out-of-date (this is handy in " +"\"dry-run\" mode: it'll make you pretend to carry out commands that wouldn't " +"work because inputs are missing, but that doesn't matter because you're not " +"actually going to run the commands)." msgstr "" #: ../../distutils/apiref.rst:956 @@ -1390,11 +1385,11 @@ msgstr "" msgid "" "Create a directory and any missing ancestor directories. If the directory " "already exists (or if *name* is the empty string, which means the current " -"directory, which of course exists), then do nothing. Raise " -":exc:`DistutilsFileError` if unable to create some directory along the way " -"(eg. some sub-path exists, but is a file rather than a directory). If " -"*verbose* is true, print a one-line summary of each mkdir to stdout. Return" -" the list of directories actually created." +"directory, which of course exists), then do nothing. Raise :exc:" +"`DistutilsFileError` if unable to create some directory along the way (eg. " +"some sub-path exists, but is a file rather than a directory). If *verbose* " +"is true, print a one-line summary of each mkdir to stdout. Return the list " +"of directories actually created." msgstr "" #: ../../distutils/apiref.rst:979 @@ -1402,39 +1397,39 @@ msgid "" "Create all the empty directories under *base_dir* needed to put *files* " "there. *base_dir* is just the name of a directory which doesn't necessarily " "exist yet; *files* is a list of filenames to be interpreted relative to " -"*base_dir*. *base_dir* + the directory portion of every file in *files* will" -" be created if it doesn't already exist. *mode*, *verbose* and *dry_run* " +"*base_dir*. *base_dir* + the directory portion of every file in *files* will " +"be created if it doesn't already exist. *mode*, *verbose* and *dry_run* " "flags are as for :func:`mkpath`." msgstr "" #: ../../distutils/apiref.rst:989 msgid "" -"Copy an entire directory tree *src* to a new location *dst*. Both *src* and" -" *dst* must be directory names. If *src* is not a directory, raise " -":exc:`DistutilsFileError`. If *dst* does not exist, it is created with " -":func:`mkpath`. The end result of the copy is that every file in *src* is " -"copied to *dst*, and directories under *src* are recursively copied to " -"*dst*. Return the list of files that were copied or might have been copied, " -"using their output name. The return value is unaffected by *update* or " -"*dry_run*: it is simply the list of all files under *src*, with the names " -"changed to be under *dst*." +"Copy an entire directory tree *src* to a new location *dst*. Both *src* and " +"*dst* must be directory names. If *src* is not a directory, raise :exc:" +"`DistutilsFileError`. If *dst* does not exist, it is created with :func:" +"`mkpath`. The end result of the copy is that every file in *src* is copied " +"to *dst*, and directories under *src* are recursively copied to *dst*. " +"Return the list of files that were copied or might have been copied, using " +"their output name. The return value is unaffected by *update* or *dry_run*: " +"it is simply the list of all files under *src*, with the names changed to be " +"under *dst*." msgstr "" #: ../../distutils/apiref.rst:999 msgid "" -"*preserve_mode* and *preserve_times* are the same as for " -":func:`distutils.file_util.copy_file`; note that they only apply to regular " -"files, not to directories. If *preserve_symlinks* is true, symlinks will be" -" copied as symlinks (on platforms that support them!); otherwise (the " -"default), the destination of the symlink will be copied. *update* and " -"*verbose* are the same as for :func:`copy_file`." +"*preserve_mode* and *preserve_times* are the same as for :func:`distutils." +"file_util.copy_file`; note that they only apply to regular files, not to " +"directories. If *preserve_symlinks* is true, symlinks will be copied as " +"symlinks (on platforms that support them!); otherwise (the default), the " +"destination of the symlink will be copied. *update* and *verbose* are the " +"same as for :func:`copy_file`." msgstr "" #: ../../distutils/apiref.rst:1007 msgid "" -"Files in *src* that begin with :file:`.nfs` are skipped (more information on" -" these files is available in answer D2 of the `NFS FAQ page " -"`_)." +"Files in *src* that begin with :file:`.nfs` are skipped (more information on " +"these files is available in answer D2 of the `NFS FAQ page `_)." msgstr "" #: ../../distutils/apiref.rst:1011 @@ -1473,8 +1468,8 @@ msgstr "" #: ../../distutils/apiref.rst:1042 msgid "" "*link* allows you to make hard links (using :func:`os.link`) or symbolic " -"links (using :func:`os.symlink`) instead of copying: set it to ``'hard'`` or" -" ``'sym'``; if it is ``None`` (the default), files are copied. Don't set " +"links (using :func:`os.symlink`) instead of copying: set it to ``'hard'`` or " +"``'sym'``; if it is ``None`` (the default), files are copied. Don't set " "*link* on systems that don't support it: :func:`copy_file` doesn't check if " "hard or symbolic linking is available. It uses :func:`_copy_file_contents` " "to copy file contents." @@ -1483,8 +1478,8 @@ msgstr "" #: ../../distutils/apiref.rst:1049 msgid "" "Return a tuple ``(dest_name, copied)``: *dest_name* is the actual name of " -"the output file, and *copied* is true if the file was copied (or would have" -" been copied, if *dry_run* true)." +"the output file, and *copied* is true if the file was copied (or would have " +"been copied, if *dry_run* true)." msgstr "" #: ../../distutils/apiref.rst:1063 @@ -1512,8 +1507,8 @@ msgstr "" #: ../../distutils/apiref.rst:1086 msgid "" -"This module contains other assorted bits and pieces that don't fit into any" -" other utility module." +"This module contains other assorted bits and pieces that don't fit into any " +"other utility module." msgstr "" #: ../../distutils/apiref.rst:1092 @@ -1532,15 +1527,15 @@ msgstr "" #: ../../distutils/apiref.rst:1101 msgid "``linux-i586``" -msgstr "" +msgstr "``linux-i586``" #: ../../distutils/apiref.rst:1102 msgid "``linux-alpha``" -msgstr "" +msgstr "``linux-alpha``" #: ../../distutils/apiref.rst:1103 msgid "``solaris-2.6-sun4u``" -msgstr "" +msgstr "``solaris-2.6-sun4u``" #: ../../distutils/apiref.rst:1105 msgid "For non-POSIX platforms, currently just returns ``sys.platform``." @@ -1549,16 +1544,16 @@ msgstr "" #: ../../distutils/apiref.rst:1107 msgid "" "For Mac OS X systems the OS version reflects the minimal version on which " -"binaries will run (that is, the value of ``MACOSX_DEPLOYMENT_TARGET`` during" -" the build of Python), not the OS version of the current system." +"binaries will run (that is, the value of ``MACOSX_DEPLOYMENT_TARGET`` during " +"the build of Python), not the OS version of the current system." msgstr "" #: ../../distutils/apiref.rst:1111 msgid "" "For universal binary builds on Mac OS X the architecture value reflects the " "universal binary status instead of the architecture of the current " -"processor. For 32-bit universal binaries the architecture is ``fat``, for " -"64-bit universal binaries the architecture is ``fat64``, and for 4-way " +"processor. For 32-bit universal binaries the architecture is ``fat``, for 64-" +"bit universal binaries the architecture is ``fat64``, and for 4-way " "universal binaries the architecture is ``universal``. Starting from Python " "2.7 and Python 3.2 the architecture ``fat3`` is used for a 3-way universal " "build (ppc, i386, x86_64) and ``intel`` is used for a universal build with " @@ -1571,19 +1566,19 @@ msgstr "" #: ../../distutils/apiref.rst:1122 msgid "``macosx-10.3-ppc``" -msgstr "" +msgstr "``macosx-10.3-ppc``" #: ../../distutils/apiref.rst:1124 msgid "``macosx-10.3-fat``" -msgstr "" +msgstr "``macosx-10.3-fat``" #: ../../distutils/apiref.rst:1126 msgid "``macosx-10.5-universal``" -msgstr "" +msgstr "``macosx-10.5-universal``" #: ../../distutils/apiref.rst:1128 msgid "``macosx-10.6-intel``" -msgstr "" +msgstr "``macosx-10.6-intel``" #: ../../distutils/apiref.rst:1133 msgid "" @@ -1605,8 +1600,8 @@ msgstr "" #: ../../distutils/apiref.rst:1150 msgid "" -"Ensure that 'os.environ' has all the environment variables we guarantee that" -" users can use in config files, command-line options, etc. Currently this " +"Ensure that 'os.environ' has all the environment variables we guarantee that " +"users can use in config files, command-line options, etc. Currently this " "includes:" msgstr "" @@ -1616,34 +1611,34 @@ msgstr "" #: ../../distutils/apiref.rst:1155 msgid "" -":envvar:`PLAT` - description of the current platform, including hardware and" -" OS (see :func:`get_platform`)" +":envvar:`PLAT` - description of the current platform, including hardware and " +"OS (see :func:`get_platform`)" msgstr "" #: ../../distutils/apiref.rst:1161 msgid "" "Perform shell/Perl-style variable substitution on *s*. Every occurrence of " "``$`` followed by a name is considered a variable, and variable is " -"substituted by the value found in the *local_vars* dictionary, or in " -"``os.environ`` if it's not in *local_vars*. *os.environ* is first " -"checked/augmented to guarantee that it contains certain values: see " -":func:`check_environ`. Raise :exc:`ValueError` for any variables not found " -"in either *local_vars* or ``os.environ``." +"substituted by the value found in the *local_vars* dictionary, or in ``os." +"environ`` if it's not in *local_vars*. *os.environ* is first checked/" +"augmented to guarantee that it contains certain values: see :func:" +"`check_environ`. Raise :exc:`ValueError` for any variables not found in " +"either *local_vars* or ``os.environ``." msgstr "" #: ../../distutils/apiref.rst:1168 msgid "" -"Note that this is not a fully-fledged string interpolation function. A valid" -" ``$variable`` can consist only of upper and lower case letters, numbers and" -" an underscore. No { } or ( ) style quoting is available." +"Note that this is not a fully-fledged string interpolation function. A valid " +"``$variable`` can consist only of upper and lower case letters, numbers and " +"an underscore. No { } or ( ) style quoting is available." msgstr "" #: ../../distutils/apiref.rst:1175 msgid "" "Split a string up according to Unix shell-like rules for quotes and " "backslashes. In short: words are delimited by spaces, as long as those " -"spaces are not escaped by a backslash, or inside a quoted string. Single and" -" double quotes are equivalent, and the quote characters can be backslash-" +"spaces are not escaped by a backslash, or inside a quoted string. Single and " +"double quotes are equivalent, and the quote characters can be backslash-" "escaped. The backslash is stripped from any two-character escape sequence, " "leaving only the escaped character. The quote characters are stripped from " "any quoted string. Returns a list of words." @@ -1651,9 +1646,9 @@ msgstr "" #: ../../distutils/apiref.rst:1188 msgid "" -"Perform some action that affects the outside world (for instance, writing to" -" the filesystem). Such actions are special because they are disabled by the" -" *dry_run* flag. This method takes care of all that bureaucracy for you; " +"Perform some action that affects the outside world (for instance, writing to " +"the filesystem). Such actions are special because they are disabled by the " +"*dry_run* flag. This method takes care of all that bureaucracy for you; " "all you have to do is supply the function to call and an argument tuple for " "it (to embody the \"external action\" being performed), and an optional " "message to print." @@ -1666,16 +1661,16 @@ msgstr "" #: ../../distutils/apiref.rst:1199 msgid "" "True values are ``y``, ``yes``, ``t``, ``true``, ``on`` and ``1``; false " -"values are ``n``, ``no``, ``f``, ``false``, ``off`` and ``0``. Raises " -":exc:`ValueError` if *val* is anything else." +"values are ``n``, ``no``, ``f``, ``false``, ``off`` and ``0``. Raises :exc:" +"`ValueError` if *val* is anything else." msgstr "" #: ../../distutils/apiref.rst:1206 msgid "" -"Byte-compile a collection of Python source files to :file:`.pyc` files in a " -":file:`__pycache__` subdirectory (see :pep:`3147` and :pep:`488`). " -"*py_files* is a list of files to compile; any files that don't end in " -":file:`.py` are silently skipped. *optimize* must be one of the following:" +"Byte-compile a collection of Python source files to :file:`.pyc` files in a :" +"file:`__pycache__` subdirectory (see :pep:`3147` and :pep:`488`). *py_files* " +"is a list of files to compile; any files that don't end in :file:`.py` are " +"silently skipped. *optimize* must be one of the following:" msgstr "" #: ../../distutils/apiref.rst:1211 @@ -1801,8 +1796,8 @@ msgstr "" #: ../../distutils/apiref.rst:1318 msgid "" -"options have help strings, so :func:`fancy_getopt` could potentially create" -" a complete usage summary" +"options have help strings, so :func:`fancy_getopt` could potentially create " +"a complete usage summary" msgstr "" #: ../../distutils/apiref.rst:1321 @@ -1819,12 +1814,12 @@ msgstr "" #: ../../distutils/apiref.rst:1329 msgid "" "Wrapper function. *options* is a list of ``(long_option, short_option, " -"help_string)`` 3-tuples as described in the constructor for " -":class:`FancyGetopt`. *negative_opt* should be a dictionary mapping option " -"names to option names, both the key and value should be in the *options* " -"list. *object* is an object which will be used to store values (see the " -":meth:`getopt` method of the :class:`FancyGetopt` class). *args* is the " -"argument list. Will use ``sys.argv[1:]`` if you pass ``None`` as *args*." +"help_string)`` 3-tuples as described in the constructor for :class:" +"`FancyGetopt`. *negative_opt* should be a dictionary mapping option names to " +"option names, both the key and value should be in the *options* list. " +"*object* is an object which will be used to store values (see the :meth:" +"`getopt` method of the :class:`FancyGetopt` class). *args* is the argument " +"list. Will use ``sys.argv[1:]`` if you pass ``None`` as *args*." msgstr "" #: ../../distutils/apiref.rst:1340 @@ -1841,8 +1836,8 @@ msgstr "" msgid "" "If an option takes an argument, its *long_option* should have ``'='`` " "appended; *short_option* should just be a single character, no ``':'`` in " -"any case. *short_option* should be ``None`` if a *long_option* doesn't have" -" a corresponding *short_option*. All option tuples must have long options." +"any case. *short_option* should be ``None`` if a *long_option* doesn't have " +"a corresponding *short_option*. All option tuples must have long options." msgstr "" #: ../../distutils/apiref.rst:1353 @@ -1859,15 +1854,15 @@ msgid "" "is ``None`` or not supplied, creates a new :class:`OptionDummy` instance, " "stores option values there, and returns a tuple ``(args, object)``. If " "*object* is supplied, it is modified in place and :func:`getopt` just " -"returns *args*; in both cases, the returned *args* is a modified copy of the" -" passed-in *args* list, which is left untouched." +"returns *args*; in both cases, the returned *args* is a modified copy of the " +"passed-in *args* list, which is left untouched." msgstr "" #: ../../distutils/apiref.rst:1372 msgid "" -"Returns the list of ``(option, value)`` tuples processed by the previous run" -" of :meth:`getopt` Raises :exc:`RuntimeError` if :meth:`getopt` hasn't been" -" called yet." +"Returns the list of ``(option, value)`` tuples processed by the previous run " +"of :meth:`getopt` Raises :exc:`RuntimeError` if :meth:`getopt` hasn't been " +"called yet." msgstr "" #: ../../distutils/apiref.rst:1379 @@ -1901,8 +1896,8 @@ msgstr "" #: ../../distutils/apiref.rst:1411 msgid "" "This module provides the :func:`spawn` function, a front-end to various " -"platform-specific functions for launching another program in a sub-process." -" Also provides :func:`find_executable` to search the path for a given " +"platform-specific functions for launching another program in a sub-process. " +"Also provides :func:`find_executable` to search the path for a given " "executable name." msgstr "" @@ -1945,9 +1940,9 @@ msgstr "" #: ../../distutils/apiref.rst:1458 msgid "" "Return a set of variable definitions. If there are no arguments, this " -"returns a dictionary mapping names of configuration variables to values. If" -" arguments are provided, they should be strings, and the return value will " -"be a sequence giving the associated values. If a given name does not have a " +"returns a dictionary mapping names of configuration variables to values. If " +"arguments are provided, they should be strings, and the return value will be " +"a sequence giving the associated values. If a given name does not have a " "corresponding value, ``None`` will be included for that variable." msgstr "" @@ -1961,19 +1956,19 @@ msgstr "" #: ../../distutils/apiref.rst:1475 msgid "" -"Return the full path name of the :file:`Makefile` used to build Python. For" -" Unix, this will be a file generated by the :program:`configure` script; the" -" meaning for other platforms will vary. The file is a platform-specific " -"text file, if it exists. This function is only useful on POSIX platforms." +"Return the full path name of the :file:`Makefile` used to build Python. For " +"Unix, this will be a file generated by the :program:`configure` script; the " +"meaning for other platforms will vary. The file is a platform-specific text " +"file, if it exists. This function is only useful on POSIX platforms." msgstr "" #: ../../distutils/apiref.rst:1483 msgid "" "Return the directory for either the general or platform-dependent C include " -"files. If *plat_specific* is true, the platform-dependent include directory" -" is returned; if false or omitted, the platform-independent directory is " -"returned. If *prefix* is given, it is used as either the prefix instead of " -":const:`PREFIX`, or as the exec-prefix instead of :const:`EXEC_PREFIX` if " +"files. If *plat_specific* is true, the platform-dependent include directory " +"is returned; if false or omitted, the platform-independent directory is " +"returned. If *prefix* is given, it is used as either the prefix instead of :" +"const:`PREFIX`, or as the exec-prefix instead of :const:`EXEC_PREFIX` if " "*plat_specific* is true." msgstr "" @@ -1983,10 +1978,10 @@ msgid "" "installation. If *plat_specific* is true, the platform-dependent include " "directory is returned; if false or omitted, the platform-independent " "directory is returned. If *prefix* is given, it is used as either the " -"prefix instead of :const:`PREFIX`, or as the exec-prefix instead of " -":const:`EXEC_PREFIX` if *plat_specific* is true. If *standard_lib* is true," -" the directory for the standard library is returned rather than the " -"directory for the installation of third-party extensions." +"prefix instead of :const:`PREFIX`, or as the exec-prefix instead of :const:" +"`EXEC_PREFIX` if *plat_specific* is true. If *standard_lib* is true, the " +"directory for the standard library is returned rather than the directory for " +"the installation of third-party extensions." msgstr "" #: ../../distutils/apiref.rst:1502 @@ -1997,16 +1992,16 @@ msgstr "" #: ../../distutils/apiref.rst:1508 msgid "" -"Do any platform-specific customization of a " -":class:`distutils.ccompiler.CCompiler` instance." +"Do any platform-specific customization of a :class:`distutils.ccompiler." +"CCompiler` instance." msgstr "" #: ../../distutils/apiref.rst:1511 msgid "" "This function is only needed on Unix at this time, but should be called " "consistently to support forward-compatibility. It inserts the information " -"that varies across Unix flavors and is stored in Python's :file:`Makefile`." -" This information includes the selected compiler, compiler and linker " +"that varies across Unix flavors and is stored in Python's :file:`Makefile`. " +"This information includes the selected compiler, compiler and linker " "options, and the extension used by the linker for shared objects." msgstr "" @@ -2040,9 +2035,9 @@ msgid "" "This class provides a file-like object that takes care of all the things " "you commonly want to do when processing a text file that has some line-by-" "line syntax: strip comments (as long as ``#`` is your comment character), " -"skip blank lines, join adjacent lines by escaping the newline (ie. backslash" -" at end of line), strip leading and/or trailing whitespace. All of these " -"are optional and independently controllable." +"skip blank lines, join adjacent lines by escaping the newline (ie. backslash " +"at end of line), strip leading and/or trailing whitespace. All of these are " +"optional and independently controllable." msgstr "" #: ../../distutils/apiref.rst:1550 @@ -2057,17 +2052,17 @@ msgstr "" msgid "" ":class:`TextFile` instances are create with either *filename*, *file*, or " "both. :exc:`RuntimeError` is raised if both are ``None``. *filename* should " -"be a string, and *file* a file object (or something that provides " -":meth:`readline` and :meth:`close` methods). It is recommended that you " -"supply at least *filename*, so that :class:`TextFile` can include it in " -"warning messages. If *file* is not supplied, :class:`TextFile` creates its " -"own using the :func:`open` built-in function." +"be a string, and *file* a file object (or something that provides :meth:" +"`readline` and :meth:`close` methods). It is recommended that you supply " +"at least *filename*, so that :class:`TextFile` can include it in warning " +"messages. If *file* is not supplied, :class:`TextFile` creates its own " +"using the :func:`open` built-in function." msgstr "" #: ../../distutils/apiref.rst:1563 msgid "" -"The options are all boolean, and affect the values returned by " -":meth:`readline`" +"The options are all boolean, and affect the values returned by :meth:" +"`readline`" msgstr "" #: ../../distutils/apiref.rst:1568 @@ -2112,8 +2107,8 @@ msgstr "" #: ../../distutils/apiref.rst:1579 msgid "" -"strip trailing whitespace (including line terminator!) from each line before" -" returning it." +"strip trailing whitespace (including line terminator!) from each line before " +"returning it." msgstr "" #: ../../distutils/apiref.rst:1584 @@ -2124,8 +2119,8 @@ msgstr "" msgid "" "skip lines that are empty \\*after\\* stripping comments and whitespace. " "(If both lstrip_ws and rstrip_ws are false, then some lines may consist of " -"solely whitespace: these will \\*not\\* be skipped, even if *skip_blanks* is" -" true.)" +"solely whitespace: these will \\*not\\* be skipped, even if *skip_blanks* is " +"true.)" msgstr "" #: ../../distutils/apiref.rst:1594 @@ -2152,9 +2147,9 @@ msgstr "" #: ../../distutils/apiref.rst:1612 msgid "" -"Note that since *rstrip_ws* can strip the trailing newline, the semantics of" -" :meth:`readline` must differ from those of the built-in file object's " -":meth:`readline` method! In particular, :meth:`readline` returns ``None`` " +"Note that since *rstrip_ws* can strip the trailing newline, the semantics " +"of :meth:`readline` must differ from those of the built-in file object's :" +"meth:`readline` method! In particular, :meth:`readline` returns ``None`` " "for end-of-file: an empty string might just be a blank line (or an all-" "whitespace line), if *rstrip_ws* is true but *skip_blanks* is not." msgstr "" @@ -2167,8 +2162,8 @@ msgstr "" #: ../../distutils/apiref.rst:1627 msgid "" -"Close the current file and forget everything we know about it (including the" -" filename and the current line number)." +"Close the current file and forget everything we know about it (including the " +"filename and the current line number)." msgstr "" #: ../../distutils/apiref.rst:1633 @@ -2177,15 +2172,15 @@ msgid "" "current file. If the current logical line in the file spans multiple " "physical lines, the warning refers to the whole range, such as ``\"lines " "3-5\"``. If *line* is supplied, it overrides the current line number; it " -"may be a list or tuple to indicate a range of physical lines, or an integer" -" for a single physical line." +"may be a list or tuple to indicate a range of physical lines, or an integer " +"for a single physical line." msgstr "" #: ../../distutils/apiref.rst:1643 msgid "" "Read and return a single logical line from the current file (or from an " -"internal buffer if lines have previously been \"unread\" with " -":meth:`unreadline`). If the *join_lines* option is true, this may involve " +"internal buffer if lines have previously been \"unread\" with :meth:" +"`unreadline`). If the *join_lines* option is true, this may involve " "reading multiple physical lines concatenated into a single string. Updates " "the current line number, so calling :meth:`warn` after :meth:`readline` " "emits a warning about the physical line(s) just read. Returns ``None`` on " @@ -2195,18 +2190,18 @@ msgstr "" #: ../../distutils/apiref.rst:1654 msgid "" -"Read and return the list of all logical lines remaining in the current file." -" This updates the current line number to the last line of the file." +"Read and return the list of all logical lines remaining in the current file. " +"This updates the current line number to the last line of the file." msgstr "" #: ../../distutils/apiref.rst:1660 msgid "" "Push *line* (a string) onto an internal buffer that will be checked by " -"future :meth:`readline` calls. Handy for implementing a parser with line-" -"at-a-time lookahead. Note that lines that are \"unread\" with " -":meth:`unreadline` are not subsequently re-cleansed (whitespace stripped, " -"or whatever) when read with :meth:`readline`. If multiple calls are made to " -":meth:`unreadline` before a call to :meth:`readline`, the lines will be " +"future :meth:`readline` calls. Handy for implementing a parser with line-at-" +"a-time lookahead. Note that lines that are \"unread\" with :meth:" +"`unreadline` are not subsequently re-cleansed (whitespace stripped, or " +"whatever) when read with :meth:`readline`. If multiple calls are made to :" +"meth:`unreadline` before a call to :meth:`readline`, the lines will be " "returned most in most recent first order." msgstr "" @@ -2224,24 +2219,24 @@ msgstr "" #: ../../distutils/apiref.rst:1696 msgid "" -"Abstract base class for defining command classes, the \"worker bees\" of the" -" Distutils. A useful analogy for command classes is to think of them as " -"subroutines with local variables called *options*. The options are declared" -" in :meth:`initialize_options` and defined (given their final values) in " -":meth:`finalize_options`, both of which must be defined by every command " +"Abstract base class for defining command classes, the \"worker bees\" of the " +"Distutils. A useful analogy for command classes is to think of them as " +"subroutines with local variables called *options*. The options are declared " +"in :meth:`initialize_options` and defined (given their final values) in :" +"meth:`finalize_options`, both of which must be defined by every command " "class. The distinction between the two is necessary because option values " "might come from the outside world (command line, config file, ...), and any " "options dependent on other options must be computed after these outside " -"influences have been processed --- hence :meth:`finalize_options`. The body" -" of the subroutine, where it does all its work based on the values of its " +"influences have been processed --- hence :meth:`finalize_options`. The body " +"of the subroutine, where it does all its work based on the values of its " "options, is the :meth:`run` method, which must also be implemented by every " "command class." msgstr "" #: ../../distutils/apiref.rst:1709 msgid "" -"The class constructor takes a single argument *dist*, a " -":class:`~distutils.core.Distribution` instance." +"The class constructor takes a single argument *dist*, a :class:`~distutils." +"core.Distribution` instance." msgstr "" #: ../../distutils/apiref.rst:1714 @@ -2255,15 +2250,14 @@ msgstr "" #: ../../distutils/apiref.rst:1718 msgid "" "A new command lives in a module in the :mod:`distutils.command` package. " -"There is a sample template in that directory called " -":file:`command_template`. Copy this file to a new module with the same name" -" as the new command you're implementing. This module should implement a " -"class with the same name as the module (and the command). So, for instance," -" to create the command ``peel_banana`` (so that users can run ``setup.py " -"peel_banana``), you'd copy :file:`command_template` to " -":file:`distutils/command/peel_banana.py`, then edit it so that it's " -"implementing the class :class:`peel_banana`, a subclass of " -":class:`distutils.cmd.Command`." +"There is a sample template in that directory called :file:" +"`command_template`. Copy this file to a new module with the same name as " +"the new command you're implementing. This module should implement a class " +"with the same name as the module (and the command). So, for instance, to " +"create the command ``peel_banana`` (so that users can run ``setup.py " +"peel_banana``), you'd copy :file:`command_template` to :file:`distutils/" +"command/peel_banana.py`, then edit it so that it's implementing the class :" +"class:`peel_banana`, a subclass of :class:`distutils.cmd.Command`." msgstr "" #: ../../distutils/apiref.rst:1728 @@ -2275,9 +2269,9 @@ msgid "" "Set default values for all the options that this command supports. Note " "that these defaults may be overridden by other commands, by the setup " "script, by config files, or by the command-line. Thus, this is not the " -"place to code dependencies between options; generally, " -":meth:`initialize_options` implementations are just a bunch of ``self.foo = " -"None`` assignments." +"place to code dependencies between options; generally, :meth:" +"`initialize_options` implementations are just a bunch of ``self.foo = None`` " +"assignments." msgstr "" #: ../../distutils/apiref.rst:1741 @@ -2294,8 +2288,8 @@ msgstr "" msgid "" "A command's raison d'etre: carry out the action it exists to perform, " "controlled by the options initialized in :meth:`initialize_options`, " -"customized by other commands, the setup script, the command-line, and config" -" files, and finalized in :meth:`finalize_options`. All terminal output and " +"customized by other commands, the setup script, the command-line, and config " +"files, and finalized in :meth:`finalize_options`. All terminal output and " "filesystem interaction should be done by :meth:`run`." msgstr "" @@ -2330,8 +2324,7 @@ msgstr "" #: ../../distutils/apiref.rst:1798 msgid "" -":mod:`distutils.command.bdist_packager` --- Abstract base class for " -"packagers" +":mod:`distutils.command.bdist_packager` --- Abstract base class for packagers" msgstr "" #: ../../distutils/apiref.rst:1808 @@ -2393,8 +2386,8 @@ msgstr "" msgid "" "Alternative implementation of build_py which also runs the 2to3 conversion " "library on each .py file that is going to be installed. To use this in a " -"setup.py file for a distribution that is designed to run with both Python " -"2.x and 3.x, add::" +"setup.py file for a distribution that is designed to run with both Python 2." +"x and 3.x, add::" msgstr "" #: ../../distutils/apiref.rst:1916 @@ -2416,8 +2409,8 @@ msgstr "" #: ../../distutils/apiref.rst:1939 msgid "" -"This command removes the temporary files created by :command:`build` and its" -" subcommands, like intermediary compiled object files. With the ``--all`` " +"This command removes the temporary files created by :command:`build` and its " +"subcommands, like intermediary compiled object files. With the ``--all`` " "option, the complete build directory will be removed." msgstr "" @@ -2442,14 +2435,13 @@ msgstr "" #: ../../distutils/apiref.rst:1978 msgid "" -":mod:`distutils.command.install_headers` --- Install C/C++ header files from" -" a package" +":mod:`distutils.command.install_headers` --- Install C/C++ header files from " +"a package" msgstr "" #: ../../distutils/apiref.rst:1988 msgid "" -":mod:`distutils.command.install_lib` --- Install library files from a " -"package" +":mod:`distutils.command.install_lib` --- Install library files from a package" msgstr "" #: ../../distutils/apiref.rst:1998 @@ -2476,7 +2468,7 @@ msgstr "" #: ../../distutils/apiref.rst:2027 msgid "" -"The ``check`` command performs some tests on the meta-data of a package. For" -" example, it verifies that all required meta-data are provided as the " +"The ``check`` command performs some tests on the meta-data of a package. For " +"example, it verifies that all required meta-data are provided as the " "arguments passed to the :func:`setup` function." msgstr "" diff --git a/distutils/builtdist.po b/distutils/builtdist.po index 384d178ad..d3688c078 100644 --- a/distutils/builtdist.po +++ b/distutils/builtdist.po @@ -1,25 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Otávio Carneiro , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-02 11:48+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,17 +34,17 @@ msgstr "Criando Built Distributions" #: ../../distutils/builtdist.rst:7 msgid "" "A \"built distribution\" is what you're probably used to thinking of either " -"as a \"binary package\" or an \"installer\" (depending on your background)." -" It's not necessarily binary, though, because it might contain only Python " +"as a \"binary package\" or an \"installer\" (depending on your background). " +"It's not necessarily binary, though, because it might contain only Python " "source code and/or byte-code; and we don't call it a package, because that " -"word is already spoken for in Python. (And \"installer\" is a term specific" -" to the world of mainstream desktop systems.)" +"word is already spoken for in Python. (And \"installer\" is a term specific " +"to the world of mainstream desktop systems.)" msgstr "" #: ../../distutils/builtdist.rst:14 msgid "" -"A built distribution is how you make life as easy as possible for installers" -" of your module distribution: for users of RPM-based Linux systems, it's a " +"A built distribution is how you make life as easy as possible for installers " +"of your module distribution: for users of RPM-based Linux systems, it's a " "binary RPM; for Windows users, it's an executable installer; for Debian-" "based Linux users, it's a Debian package; and so forth. Obviously, no one " "person will be able to create built distributions for every platform under " @@ -56,12 +57,12 @@ msgstr "" #: ../../distutils/builtdist.rst:24 msgid "" -"Of course, the module developer could be their own packager; or the packager" -" could be a volunteer \"out there\" somewhere who has access to a platform " +"Of course, the module developer could be their own packager; or the packager " +"could be a volunteer \"out there\" somewhere who has access to a platform " "which the original developer does not; or it could be software periodically " "grabbing new source distributions and turning them into built distributions " -"for as many platforms as the software has access to. Regardless of who they" -" are, a packager uses the setup script and the :command:`bdist` command " +"for as many platforms as the software has access to. Regardless of who they " +"are, a packager uses the setup script and the :command:`bdist` command " "family to generate built distributions." msgstr "" @@ -76,21 +77,21 @@ msgid "" "then the Distutils builds my module distribution (the Distutils itself in " "this case), does a \"fake\" installation (also in the :file:`build` " "directory), and creates the default type of built distribution for my " -"platform. The default format for built distributions is a \"dumb\" tar file" -" on Unix, and a simple executable installer on Windows. (That tar file is " +"platform. The default format for built distributions is a \"dumb\" tar file " +"on Unix, and a simple executable installer on Windows. (That tar file is " "considered \"dumb\" because it has to be unpacked in a specific location to " "work.)" msgstr "" #: ../../distutils/builtdist.rst:44 msgid "" -"Thus, the above command on a Unix system creates " -":file:`Distutils-1.0.{plat}.tar.gz`; unpacking this tarball from the right " -"place installs the Distutils just as though you had downloaded the source " -"distribution and run ``python setup.py install``. (The \"right place\" is " -"either the root of the filesystem or Python's :file:`{prefix}` directory, " -"depending on the options given to the :command:`bdist_dumb` command; the " -"default is to make dumb distributions relative to :file:`{prefix}`.)" +"Thus, the above command on a Unix system creates :file:`Distutils-1.0.{plat}." +"tar.gz`; unpacking this tarball from the right place installs the Distutils " +"just as though you had downloaded the source distribution and run ``python " +"setup.py install``. (The \"right place\" is either the root of the " +"filesystem or Python's :file:`{prefix}` directory, depending on the options " +"given to the :command:`bdist_dumb` command; the default is to make dumb " +"distributions relative to :file:`{prefix}`.)" msgstr "" #: ../../distutils/builtdist.rst:52 @@ -107,8 +108,8 @@ msgstr "" #: ../../distutils/builtdist.rst:60 msgid "" "The :command:`bdist` command has a :option:`!--formats` option, similar to " -"the :command:`sdist` command, which you can use to select the types of built" -" distribution to generate: for example, ::" +"the :command:`sdist` command, which you can use to select the types of built " +"distribution to generate: for example, ::" msgstr "" #: ../../distutils/builtdist.rst:66 @@ -136,7 +137,7 @@ msgstr "Notas" #: ../../distutils/builtdist.rst:75 msgid "``gztar``" -msgstr "" +msgstr "``gztar``" #: ../../distutils/builtdist.rst:75 msgid "gzipped tar file (:file:`.tar.gz`)" @@ -148,7 +149,7 @@ msgstr "\\(1)" #: ../../distutils/builtdist.rst:78 msgid "``bztar``" -msgstr "" +msgstr "``bztar``" #: ../../distutils/builtdist.rst:78 msgid "bzipped tar file (:file:`.tar.bz2`)" @@ -156,7 +157,7 @@ msgstr "" #: ../../distutils/builtdist.rst:81 msgid "``xztar``" -msgstr "" +msgstr "``xztar``" #: ../../distutils/builtdist.rst:81 msgid "xzipped tar file (:file:`.tar.xz`)" @@ -164,7 +165,7 @@ msgstr "" #: ../../distutils/builtdist.rst:84 msgid "``ztar``" -msgstr "" +msgstr "``ztar``" #: ../../distutils/builtdist.rst:84 msgid "compressed tar file (:file:`.tar.Z`)" @@ -176,7 +177,7 @@ msgstr "\\(3)" #: ../../distutils/builtdist.rst:87 msgid "``tar``" -msgstr "" +msgstr "``tar``" #: ../../distutils/builtdist.rst:87 msgid "tar file (:file:`.tar`)" @@ -184,7 +185,7 @@ msgstr "" #: ../../distutils/builtdist.rst:89 msgid "``zip``" -msgstr "" +msgstr "``zip``" #: ../../distutils/builtdist.rst:89 msgid "zip file (:file:`.zip`)" @@ -196,7 +197,7 @@ msgstr "" #: ../../distutils/builtdist.rst:91 msgid "``rpm``" -msgstr "" +msgstr "``rpm``" #: ../../distutils/builtdist.rst:91 msgid "RPM" @@ -216,7 +217,7 @@ msgstr "" #: ../../distutils/builtdist.rst:95 msgid "``sdux``" -msgstr "" +msgstr "``sdux``" #: ../../distutils/builtdist.rst:95 msgid "HP-UX :program:`swinstall`" @@ -224,7 +225,7 @@ msgstr "" #: ../../distutils/builtdist.rst:97 msgid "``wininst``" -msgstr "" +msgstr "``wininst``" #: ../../distutils/builtdist.rst:97 msgid "self-extracting ZIP file for Windows" @@ -236,7 +237,7 @@ msgstr "\\(4)" #: ../../distutils/builtdist.rst:100 msgid "``msi``" -msgstr "" +msgstr "``msi``" #: ../../distutils/builtdist.rst:100 msgid "Microsoft Installer." @@ -270,20 +271,20 @@ msgstr "" #: ../../distutils/builtdist.rst:123 msgid "" -"requires external :program:`rpm` utility, version 3.0.4 or better (use ``rpm" -" --version`` to find out which version you have)" +"requires external :program:`rpm` utility, version 3.0.4 or better (use ``rpm " +"--version`` to find out which version you have)" msgstr "" #: ../../distutils/builtdist.rst:126 msgid "" "You don't have to use the :command:`bdist` command with the :option:`!--" "formats` option; you can also use the command that directly implements the " -"format you're interested in. Some of these :command:`bdist` \"sub-" -"commands\" actually generate several similar formats; for instance, the " -":command:`bdist_dumb` command generates all the \"dumb\" archive formats " -"(``tar``, ``gztar``, ``bztar``, ``xztar``, ``ztar``, and ``zip``), and " -":command:`bdist_rpm` generates both binary and source RPMs. The " -":command:`bdist` sub-commands, and the formats generated by each, are:" +"format you're interested in. Some of these :command:`bdist` \"sub-commands" +"\" actually generate several similar formats; for instance, the :command:" +"`bdist_dumb` command generates all the \"dumb\" archive formats (``tar``, " +"``gztar``, ``bztar``, ``xztar``, ``ztar``, and ``zip``), and :command:" +"`bdist_rpm` generates both binary and source RPMs. The :command:`bdist` sub-" +"commands, and the formats generated by each, are:" msgstr "" #: ../../distutils/builtdist.rst:136 @@ -296,7 +297,7 @@ msgstr "" #: ../../distutils/builtdist.rst:138 msgid ":command:`bdist_dumb`" -msgstr "" +msgstr ":command:`bdist_dumb`" #: ../../distutils/builtdist.rst:138 msgid "tar, gztar, bztar, xztar, ztar, zip" @@ -304,7 +305,7 @@ msgstr "" #: ../../distutils/builtdist.rst:140 msgid ":command:`bdist_rpm`" -msgstr "" +msgstr ":command:`bdist_rpm`" #: ../../distutils/builtdist.rst:140 msgid "rpm, srpm" @@ -312,7 +313,7 @@ msgstr "" #: ../../distutils/builtdist.rst:142 msgid ":command:`bdist_wininst`" -msgstr "" +msgstr ":command:`bdist_wininst`" #: ../../distutils/builtdist.rst:142 msgid "wininst" @@ -320,7 +321,7 @@ msgstr "" #: ../../distutils/builtdist.rst:144 msgid ":command:`bdist_msi`" -msgstr "" +msgstr ":command:`bdist_msi`" #: ../../distutils/builtdist.rst:144 msgid "msi" @@ -349,8 +350,8 @@ msgstr "" #: ../../distutils/builtdist.rst:172 msgid "" -"The usual way to create an RPM of your module distribution is to run the " -":command:`bdist_rpm` command::" +"The usual way to create an RPM of your module distribution is to run the :" +"command:`bdist_rpm` command::" msgstr "" #: ../../distutils/builtdist.rst:177 @@ -368,11 +369,11 @@ msgstr "" #: ../../distutils/builtdist.rst:188 msgid "" "Creating RPM packages is driven by a :file:`.spec` file, much as using the " -"Distutils is driven by the setup script. To make your life easier, the " -":command:`bdist_rpm` command normally creates a :file:`.spec` file based on " +"Distutils is driven by the setup script. To make your life easier, the :" +"command:`bdist_rpm` command normally creates a :file:`.spec` file based on " "the information you supply in the setup script, on the command line, and in " -"any Distutils configuration files. Various options and sections in the " -":file:`.spec` file are derived from options in the setup script as follows:" +"any Distutils configuration files. Various options and sections in the :" +"file:`.spec` file are derived from options in the setup script as follows:" msgstr "" #: ../../distutils/builtdist.rst:196 ../../distutils/builtdist.rst:220 @@ -464,7 +465,7 @@ msgstr "Release" #: ../../distutils/builtdist.rst:223 msgid "``release``" -msgstr "" +msgstr "``release``" #: ../../distutils/builtdist.rst:223 msgid "\"1\"" @@ -476,7 +477,7 @@ msgstr "" #: ../../distutils/builtdist.rst:225 msgid "``group``" -msgstr "" +msgstr "``group``" #: ../../distutils/builtdist.rst:225 msgid "\"Development/Libraries\"" @@ -484,7 +485,7 @@ msgstr "" #: ../../distutils/builtdist.rst:227 msgid "``vendor``" -msgstr "" +msgstr "``vendor``" #: ../../distutils/builtdist.rst:227 msgid "(see above)" @@ -496,7 +497,7 @@ msgstr "" #: ../../distutils/builtdist.rst:229 msgid "``packager``" -msgstr "" +msgstr "``packager``" #: ../../distutils/builtdist.rst:229 ../../distutils/builtdist.rst:231 #: ../../distutils/builtdist.rst:233 ../../distutils/builtdist.rst:235 @@ -511,7 +512,7 @@ msgstr "" #: ../../distutils/builtdist.rst:231 msgid "``provides``" -msgstr "" +msgstr "``provides``" #: ../../distutils/builtdist.rst:233 msgid "Requires" @@ -519,7 +520,7 @@ msgstr "" #: ../../distutils/builtdist.rst:233 msgid "``requires``" -msgstr "" +msgstr "``requires``" #: ../../distutils/builtdist.rst:235 msgid "Conflicts" @@ -527,7 +528,7 @@ msgstr "" #: ../../distutils/builtdist.rst:235 msgid "``conflicts``" -msgstr "" +msgstr "``conflicts``" #: ../../distutils/builtdist.rst:237 msgid "Obsoletes" @@ -535,7 +536,7 @@ msgstr "" #: ../../distutils/builtdist.rst:237 msgid "``obsoletes``" -msgstr "" +msgstr "``obsoletes``" #: ../../distutils/builtdist.rst:239 msgid "Distribution" @@ -543,7 +544,7 @@ msgstr "" #: ../../distutils/builtdist.rst:239 msgid "``distribution_name``" -msgstr "" +msgstr "``distribution_name``" #: ../../distutils/builtdist.rst:241 msgid "BuildRequires" @@ -551,7 +552,7 @@ msgstr "" #: ../../distutils/builtdist.rst:241 msgid "``build_requires``" -msgstr "" +msgstr "``build_requires``" #: ../../distutils/builtdist.rst:243 msgid "Icon" @@ -559,18 +560,18 @@ msgstr "" #: ../../distutils/builtdist.rst:243 msgid "``icon``" -msgstr "" +msgstr "``icon``" #: ../../distutils/builtdist.rst:246 msgid "" "Obviously, supplying even a few of these options on the command-line would " "be tedious and error-prone, so it's usually best to put them in the setup " -"configuration file, :file:`setup.cfg`\\ ---see section :ref:`setup-config`." -" If you distribute or package many Python module distributions, you might " +"configuration file, :file:`setup.cfg`\\ ---see section :ref:`setup-config`. " +"If you distribute or package many Python module distributions, you might " "want to put options that apply to all of them in your personal Distutils " -"configuration file (:file:`~/.pydistutils.cfg`). If you want to temporarily" -" disable this file, you can pass the :option:`!--no-user-cfg` option to " -":file:`setup.py`." +"configuration file (:file:`~/.pydistutils.cfg`). If you want to temporarily " +"disable this file, you can pass the :option:`!--no-user-cfg` option to :file:" +"`setup.py`." msgstr "" #: ../../distutils/builtdist.rst:254 @@ -604,13 +605,13 @@ msgstr "" #: ../../distutils/builtdist.rst:269 msgid "" -"If you wish, you can separate these three steps. You can use the :option" -":`!--spec-only` option to make :command:`bdist_rpm` just create the " -":file:`.spec` file and exit; in this case, the :file:`.spec` file will be " -"written to the \"distribution directory\"---normally :file:`dist/`, but " -"customizable with the :option:`!--dist-dir` option. (Normally, the " -":file:`.spec` file winds up deep in the \"build tree,\" in a temporary " -"directory created by :command:`bdist_rpm`.)" +"If you wish, you can separate these three steps. You can use the :option:" +"`!--spec-only` option to make :command:`bdist_rpm` just create the :file:`." +"spec` file and exit; in this case, the :file:`.spec` file will be written to " +"the \"distribution directory\"---normally :file:`dist/`, but customizable " +"with the :option:`!--dist-dir` option. (Normally, the :file:`.spec` file " +"winds up deep in the \"build tree,\" in a temporary directory created by :" +"command:`bdist_rpm`.)" msgstr "" #: ../../distutils/builtdist.rst:297 @@ -640,26 +641,26 @@ msgstr "" msgid "" "If you have a pure module distribution (only containing pure Python modules " "and packages), the resulting installer will be version independent and have " -"a name like :file:`foo-1.0.win32.exe`. Note that creating ``wininst`` binary" -" distributions in only supported on Windows systems." +"a name like :file:`foo-1.0.win32.exe`. Note that creating ``wininst`` binary " +"distributions in only supported on Windows systems." msgstr "" #: ../../distutils/builtdist.rst:319 msgid "" -"If you have a non-pure distribution, the extensions can only be created on a" -" Windows platform, and will be Python version dependent. The installer " -"filename will reflect this and now has the form " -":file:`foo-1.0.win32-py2.0.exe`. You have to create a separate installer " -"for every Python version you want to support." +"If you have a non-pure distribution, the extensions can only be created on a " +"Windows platform, and will be Python version dependent. The installer " +"filename will reflect this and now has the form :file:`foo-1.0.win32-py2.0." +"exe`. You have to create a separate installer for every Python version you " +"want to support." msgstr "" #: ../../distutils/builtdist.rst:325 msgid "" "The installer will try to compile pure modules into :term:`bytecode` after " "installation on the target system in normal and optimizing mode. If you " -"don't want this to happen for some reason, you can run the " -":command:`bdist_wininst` command with the :option:`!--no-target-compile` " -"and/or the :option:`!--no-target-optimize` option." +"don't want this to happen for some reason, you can run the :command:" +"`bdist_wininst` command with the :option:`!--no-target-compile` and/or the :" +"option:`!--no-target-optimize` option." msgstr "" #: ../../distutils/builtdist.rst:331 @@ -673,8 +674,8 @@ msgstr "" msgid "" "The installer will also display a large title on the desktop background " "window when it is run, which is constructed from the name of your " -"distribution and the version number. This can be changed to another text by" -" using the :option:`!--title` option." +"distribution and the version number. This can be changed to another text by " +"using the :option:`!--title` option." msgstr "" #: ../../distutils/builtdist.rst:340 @@ -692,8 +693,8 @@ msgstr "" msgid "" "Starting with Python 2.6, distutils is capable of cross-compiling between " "Windows platforms. In practice, this means that with the correct tools " -"installed, you can use a 32bit version of Windows to create 64bit extensions" -" and vice-versa." +"installed, you can use a 32bit version of Windows to create 64bit extensions " +"and vice-versa." msgstr "" #: ../../distutils/builtdist.rst:353 @@ -717,22 +718,22 @@ msgstr "" #: ../../distutils/builtdist.rst:366 msgid "" -"To cross-compile, you must download the Python source code and cross-compile" -" Python itself for the platform you are targeting - it is not possible from " -"a binary installation of Python (as the .lib etc file for other platforms " -"are not included.) In practice, this means the user of a 32 bit operating " -"system will need to use Visual Studio 2008 to open the " -":file:`PCbuild/PCbuild.sln` solution in the Python source tree and build the" -" \"x64\" configuration of the 'pythoncore' project before cross-compiling " -"extensions is possible." +"To cross-compile, you must download the Python source code and cross-compile " +"Python itself for the platform you are targeting - it is not possible from a " +"binary installation of Python (as the .lib etc file for other platforms are " +"not included.) In practice, this means the user of a 32 bit operating " +"system will need to use Visual Studio 2008 to open the :file:`PCbuild/" +"PCbuild.sln` solution in the Python source tree and build the \"x64\" " +"configuration of the 'pythoncore' project before cross-compiling extensions " +"is possible." msgstr "" #: ../../distutils/builtdist.rst:375 msgid "" -"Note that by default, Visual Studio 2008 does not install 64bit compilers or" -" tools. You may need to reexecute the Visual Studio setup process and " -"select these tools (using Control Panel->[Add/Remove] Programs is a " -"convenient way to check or modify your existing install.)" +"Note that by default, Visual Studio 2008 does not install 64bit compilers or " +"tools. You may need to reexecute the Visual Studio setup process and select " +"these tools (using Control Panel->[Add/Remove] Programs is a convenient way " +"to check or modify your existing install.)" msgstr "" #: ../../distutils/builtdist.rst:383 @@ -750,22 +751,22 @@ msgstr "" #: ../../distutils/builtdist.rst:390 msgid "" "This script will be run at installation time on the target system after all " -"the files have been copied, with ``argv[1]`` set to :option:`!-install`, and" -" again at uninstallation time before the files are removed with ``argv[1]`` " +"the files have been copied, with ``argv[1]`` set to :option:`!-install`, and " +"again at uninstallation time before the files are removed with ``argv[1]`` " "set to :option:`!-remove`." msgstr "" #: ../../distutils/builtdist.rst:395 msgid "" -"The installation script runs embedded in the windows installer, every output" -" (``sys.stdout``, ``sys.stderr``) is redirected into a buffer and will be " +"The installation script runs embedded in the windows installer, every output " +"(``sys.stdout``, ``sys.stderr``) is redirected into a buffer and will be " "displayed in the GUI after the script has finished." msgstr "" #: ../../distutils/builtdist.rst:399 msgid "" -"Some functions especially useful in this context are available as additional" -" built-in functions in the installation script." +"Some functions especially useful in this context are available as additional " +"built-in functions in the installation script." msgstr "" #: ../../distutils/builtdist.rst:406 @@ -779,8 +780,8 @@ msgstr "" #: ../../distutils/builtdist.rst:414 msgid "" "This function can be used to retrieve special folder locations on Windows " -"like the Start Menu or the Desktop. It returns the full path to the folder." -" *csidl_string* must be one of the following strings::" +"like the Start Menu or the Desktop. It returns the full path to the folder. " +"*csidl_string* must be one of the following strings::" msgstr "" #: ../../distutils/builtdist.rst:434 @@ -802,8 +803,8 @@ msgid "" "specifies the command line arguments, if any. *workdir* is the working " "directory for the program. *iconpath* is the file containing the icon for " "the shortcut, and *iconindex* is the index of the icon in the file " -"*iconpath*. Again, for details consult the Microsoft documentation for the " -":class:`IShellLink` interface." +"*iconpath*. Again, for details consult the Microsoft documentation for the :" +"class:`IShellLink` interface." msgstr "" #: ../../distutils/builtdist.rst:454 diff --git a/distutils/commandref.po b/distutils/commandref.po index c4af9869e..56e6b8baa 100644 --- a/distutils/commandref.po +++ b/distutils/commandref.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,13 +34,13 @@ msgstr "" #: ../../distutils/commandref.rst:24 msgid "" "The install command ensures that the build commands have been run and then " -"runs the subcommands :command:`install_lib`, :command:`install_data` and " -":command:`install_scripts`." +"runs the subcommands :command:`install_lib`, :command:`install_data` and :" +"command:`install_scripts`." msgstr "" #: ../../distutils/commandref.rst:35 msgid ":command:`install_data`" -msgstr "" +msgstr ":command:`install_data`" #: ../../distutils/commandref.rst:37 msgid "This command installs all data files provided with the distribution." @@ -46,7 +48,7 @@ msgstr "" #: ../../distutils/commandref.rst:43 msgid ":command:`install_scripts`" -msgstr "" +msgstr ":command:`install_scripts`" #: ../../distutils/commandref.rst:45 msgid "This command installs all (Python) scripts in the distribution." @@ -70,7 +72,7 @@ msgstr "Description (descrição)" #: ../../distutils/commandref.rst:63 msgid ":command:`include pat1 pat2 ...`" -msgstr "" +msgstr ":command:`include pat1 pat2 ...`" #: ../../distutils/commandref.rst:63 msgid "include all files matching any of the listed patterns" @@ -78,7 +80,7 @@ msgstr "" #: ../../distutils/commandref.rst:66 msgid ":command:`exclude pat1 pat2 ...`" -msgstr "" +msgstr ":command:`exclude pat1 pat2 ...`" #: ../../distutils/commandref.rst:66 msgid "exclude all files matching any of the listed patterns" @@ -86,7 +88,7 @@ msgstr "" #: ../../distutils/commandref.rst:69 msgid ":command:`recursive-include dir pat1 pat2 ...`" -msgstr "" +msgstr ":command:`recursive-include dir pat1 pat2 ...`" #: ../../distutils/commandref.rst:69 msgid "include all files under *dir* matching any of the listed patterns" @@ -94,7 +96,7 @@ msgstr "" #: ../../distutils/commandref.rst:72 msgid ":command:`recursive-exclude dir pat1 pat2 ...`" -msgstr "" +msgstr ":command:`recursive-exclude dir pat1 pat2 ...`" #: ../../distutils/commandref.rst:72 msgid "exclude all files under *dir* matching any of the listed patterns" @@ -102,7 +104,7 @@ msgstr "" #: ../../distutils/commandref.rst:75 msgid ":command:`global-include pat1 pat2 ...`" -msgstr "" +msgstr ":command:`global-include pat1 pat2 ...`" #: ../../distutils/commandref.rst:75 msgid "" @@ -112,7 +114,7 @@ msgstr "" #: ../../distutils/commandref.rst:78 msgid ":command:`global-exclude pat1 pat2 ...`" -msgstr "" +msgstr ":command:`global-exclude pat1 pat2 ...`" #: ../../distutils/commandref.rst:78 msgid "" @@ -122,7 +124,7 @@ msgstr "" #: ../../distutils/commandref.rst:81 msgid ":command:`prune dir`" -msgstr "" +msgstr ":command:`prune dir`" #: ../../distutils/commandref.rst:81 msgid "exclude all files under *dir*" @@ -130,7 +132,7 @@ msgstr "" #: ../../distutils/commandref.rst:83 msgid ":command:`graft dir`" -msgstr "" +msgstr ":command:`graft dir`" #: ../../distutils/commandref.rst:83 msgid "include all files under *dir*" @@ -140,8 +142,8 @@ msgstr "" msgid "" "The patterns here are Unix-style \"glob\" patterns: ``*`` matches any " "sequence of regular filename characters, ``?`` matches any single regular " -"filename character, and ``[range]`` matches any of the characters in *range*" -" (e.g., ``a-z``, ``a-zA-Z``, ``a-f0-9_.``). The definition of \"regular " +"filename character, and ``[range]`` matches any of the characters in *range* " +"(e.g., ``a-z``, ``a-zA-Z``, ``a-f0-9_.``). The definition of \"regular " "filename character\" is platform-specific: on Unix it is anything except " "slash; on Windows anything except backslash or colon." msgstr "" diff --git a/distutils/configfile.po b/distutils/configfile.po index 09ae2da87..268283766 100644 --- a/distutils/configfile.po +++ b/distutils/configfile.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,12 +29,12 @@ msgstr "" #: ../../distutils/configfile.rst:7 msgid "" "Often, it's not possible to write down everything needed to build a " -"distribution *a priori*: you may need to get some information from the user," -" or from the user's system, in order to proceed. As long as that " -"information is fairly simple---a list of directories to search for C header " -"files or libraries, for example---then providing a configuration file, " -":file:`setup.cfg`, for users to edit is a cheap and easy way to solicit it." -" Configuration files also let you provide default values for any command " +"distribution *a priori*: you may need to get some information from the user, " +"or from the user's system, in order to proceed. As long as that information " +"is fairly simple---a list of directories to search for C header files or " +"libraries, for example---then providing a configuration file, :file:`setup." +"cfg`, for users to edit is a cheap and easy way to solicit it. " +"Configuration files also let you provide default values for any command " "option, which the installer can then override either on the command-line or " "by editing the config file." msgstr "" @@ -51,20 +52,20 @@ msgstr "" #: ../../distutils/configfile.rst:30 msgid "" -"installers can override some of what you put in :file:`setup.py` by editing " -":file:`setup.cfg`" +"installers can override some of what you put in :file:`setup.py` by editing :" +"file:`setup.cfg`" msgstr "" #: ../../distutils/configfile.rst:33 msgid "" -"you can provide non-standard defaults for options that are not easily set in" -" :file:`setup.py`" +"you can provide non-standard defaults for options that are not easily set " +"in :file:`setup.py`" msgstr "" #: ../../distutils/configfile.rst:36 msgid "" -"installers can override anything in :file:`setup.cfg` using the command-line" -" options to :file:`setup.py`" +"installers can override anything in :file:`setup.cfg` using the command-line " +"options to :file:`setup.py`" msgstr "" #: ../../distutils/configfile.rst:39 @@ -73,8 +74,8 @@ msgstr "" #: ../../distutils/configfile.rst:47 msgid "" -"where *command* is one of the Distutils commands (e.g. :command:`build_py`, " -":command:`install`), and *option* is one of the options that command " +"where *command* is one of the Distutils commands (e.g. :command:`build_py`, :" +"command:`install`), and *option* is one of the options that command " "supports. Any number of options can be supplied for each command, and any " "number of command sections can be included in the file. Blank lines are " "ignored, as are comments, which run from a ``'#'`` character until the end " @@ -121,16 +122,16 @@ msgid "" "place would break installation of the module distribution. In certain " "peculiar cases, though, modules are built right in their installation " "directory, so this is conceivably a useful ability. (Distributing " -"extensions that expect to be built in their installation directory is almost" -" always a bad idea, though.)" +"extensions that expect to be built in their installation directory is almost " +"always a bad idea, though.)" msgstr "" #: ../../distutils/configfile.rst:107 msgid "" "Another example: certain commands take a lot of options that don't change " "from run to run; for example, :command:`bdist_rpm` needs to know everything " -"required to generate a \"spec\" file for creating an RPM distribution. Some" -" of this information comes from the setup script, and some is automatically " +"required to generate a \"spec\" file for creating an RPM distribution. Some " +"of this information comes from the setup script, and some is automatically " "generated by the Distutils (such as the list of files installed). But some " "of it has to be supplied as options to :command:`bdist_rpm`, which would be " "very tedious to do on the command-line for every run. Hence, here is a " diff --git a/distutils/examples.po b/distutils/examples.po index 68e4ffcb2..493ac8565 100644 --- a/distutils/examples.po +++ b/distutils/examples.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Richard Nixon , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" -"Last-Translator: Richard Nixon , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,23 +32,27 @@ msgstr "Exemplos" #: ../../distutils/examples.rst:7 msgid "" "This chapter provides a number of basic examples to help get started with " -"distutils. Additional information about using distutils can be found in the" -" Distutils Cookbook." +"distutils. Additional information about using distutils can be found in the " +"Distutils Cookbook." msgstr "" +"Este capítulo fornece vários exemplos básicos para ajudar a começar com " +"distutils. Informações adicionais sobre o uso de distutils podem ser " +"encontradas no Distutils Cookbook." #: ../../distutils/examples.rst:14 -msgid "" -"`Distutils Cookbook `_" +msgid "`Distutils Cookbook `_" msgstr "" +"`Distutils Cookbook `_" #: ../../distutils/examples.rst:15 msgid "" "Collection of recipes showing how to achieve more control over distutils." msgstr "" +"Coleção de receitas mostrando como obter mais controle sobre distutils." #: ../../distutils/examples.rst:21 msgid "Pure Python distribution (by module)" -msgstr "" +msgstr "Distribuição Python pura (por módulo)" #: ../../distutils/examples.rst:23 msgid "" @@ -54,12 +60,18 @@ msgid "" "live in a particular package, you can specify them individually using the " "``py_modules`` option in the setup script." msgstr "" +"Se você está apenas distribuindo alguns módulos, especialmente se eles não " +"residem em um pacote específico, você pode especificá-los individualmente " +"usando a opção ``py_modules`` no script de instalação." #: ../../distutils/examples.rst:27 msgid "" "In the simplest case, you'll have two files to worry about: a setup script " "and the single module you're distributing, :file:`foo.py` in this example::" msgstr "" +"No caso mais simples, você terá dois arquivos com os quais se preocupar: um " +"script de instalação e o único módulo que você está distribuindo :file:`foo." +"py` neste exemplo::" #: ../../distutils/examples.rst:34 msgid "" @@ -67,15 +79,23 @@ msgid "" "root directory.) A minimal setup script to describe this situation would " "be::" msgstr "" +"(Em todos os diagramas desta seção, ** se refere ao diretório raiz da " +"distribuição.) Um script de instalação mínimo para descrever essa situação " +"seria::" #: ../../distutils/examples.rst:43 msgid "" "Note that the name of the distribution is specified independently with the " "``name`` option, and there's no rule that says it has to be the same as the " -"name of the sole module in the distribution (although that's probably a good" -" convention to follow). However, the distribution name is used to generate " +"name of the sole module in the distribution (although that's probably a good " +"convention to follow). However, the distribution name is used to generate " "filenames, so you should stick to letters, digits, underscores, and hyphens." msgstr "" +"Observe que o nome da distribuição é especificado independentemente com a " +"opção ``name``, e não existe uma regra que diga que deve ser igual ao nome " +"do único módulo na distribuição (embora seja provavelmente uma boa convenção " +"a seguir ) No entanto, o nome da distribuição é usado para gerar nomes de " +"arquivos, portanto, você deve usar letras, dígitos, sublinhados e hífenes." #: ../../distutils/examples.rst:49 msgid "" @@ -83,10 +103,13 @@ msgid "" "eg. if you're distributing modules :mod:`foo` and :mod:`bar`, your setup " "might look like this::" msgstr "" +"Como ``py_modules`` é uma lista, é claro que você pode especificar vários " +"módulos, por exemplo. se você estiver distribuindo os módulos :mod:`foo` e :" +"mod:`bar`, sua configuração poderá ser assim::" #: ../../distutils/examples.rst:58 msgid "and the setup script might be ::" -msgstr "" +msgstr "e o script de configuração pode ser ::" #: ../../distutils/examples.rst:66 msgid "" @@ -94,10 +117,13 @@ msgid "" "enough modules to do that, it's probably easier to specify modules by " "package rather than listing them individually." msgstr "" +"Você pode colocar os arquivos fonte do módulo em outro diretório, mas se " +"você tiver módulos suficientes para fazer isso, provavelmente será mais " +"fácil especificar módulos por pacote do que listá-los individualmente." #: ../../distutils/examples.rst:74 msgid "Pure Python distribution (by package)" -msgstr "" +msgstr "Distribuição Python pura (por pacote)" #: ../../distutils/examples.rst:76 msgid "" @@ -105,9 +131,16 @@ msgid "" "are in multiple packages, it's probably easier to specify whole packages " "rather than individual modules. This works even if your modules are not in " "a package; you can just tell the Distutils to process modules from the root " -"package, and that works the same as any other package (except that you don't" -" have to have an :file:`__init__.py` file)." +"package, and that works the same as any other package (except that you don't " +"have to have an :file:`__init__.py` file)." msgstr "" +"Se você tiver mais do que alguns módulos para distribuir, especialmente se " +"estiverem em vários pacotes, provavelmente será mais fácil especificar " +"pacotes inteiros do que módulos individuais. Isso funciona mesmo que seus " +"módulos não estejam em um pacote; você pode simplesmente dizer ao Distutils " +"para processar os módulos do pacote raiz, e isso funciona da mesma forma que " +"em qualquer outro pacote (exceto que você não precisa ter um arquivo :file:" +"`__init__.py`)." #: ../../distutils/examples.rst:83 msgid "The setup script from the last example could also be written as ::" @@ -116,72 +149,92 @@ msgstr "" #: ../../distutils/examples.rst:91 msgid "(The empty string stands for the root package.)" -msgstr "" +msgstr "(A string vazia representa o pacote raiz.)" #: ../../distutils/examples.rst:93 msgid "" "If those two files are moved into a subdirectory, but remain in the root " "package, e.g.::" msgstr "" +"Se esses dois arquivos forem movidos para um subdiretório, mas permanecerem " +"no pacote raiz, por exemplo::" #: ../../distutils/examples.rst:101 msgid "" "then you would still specify the root package, but you have to tell the " "Distutils where source files in the root package live::" msgstr "" +"você ainda especificaria o pacote raiz, mas precisará informar ao Distutils " +"onde estão os arquivos fonte no pacote raiz::" #: ../../distutils/examples.rst:111 msgid "" "More typically, though, you will want to distribute multiple modules in the " -"same package (or in sub-packages). For example, if the :mod:`foo` and " -":mod:`bar` modules belong in package :mod:`foobar`, one way to layout your " -"source tree is ::" +"same package (or in sub-packages). For example, if the :mod:`foo` and :mod:" +"`bar` modules belong in package :mod:`foobar`, one way to layout your source " +"tree is ::" msgstr "" +"Mais tipicamente, porém, você deseja distribuir vários módulos no mesmo " +"pacote (ou em subpacotes). Por exemplo, se os módulos :mod:`foo` e :mod:" +"`bar` pertencem ao pacote :mod:`foobar`, uma maneira de fazer o layout da " +"sua árvore de fontes é ::" #: ../../distutils/examples.rst:123 msgid "" "This is in fact the default layout expected by the Distutils, and the one " "that requires the least work to describe in your setup script::" msgstr "" +"Na verdade, esse é o layout padrão esperado pelo Distutils e o que exige " +"menos trabalho para descrever no seu script de instalação::" #: ../../distutils/examples.rst:132 msgid "" "If you want to put modules in directories not named for their package, then " -"you need to use the ``package_dir`` option again. For example, if the " -":file:`src` directory holds modules in the :mod:`foobar` package::" +"you need to use the ``package_dir`` option again. For example, if the :file:" +"`src` directory holds modules in the :mod:`foobar` package::" msgstr "" +"Se você quiser colocar módulos em diretórios não nomeados para o pacote, " +"precisará usar a opção ``package_dir`` novamente. Por exemplo, se o " +"diretório :file:`src` contiver módulos no pacote :mod:`foobar`::" #: ../../distutils/examples.rst:143 msgid "an appropriate setup script would be ::" -msgstr "" +msgstr "um script de instalação apropriado seria ::" #: ../../distutils/examples.rst:152 msgid "" "Or, you might put modules from your main package right in the distribution " "root::" msgstr "" +"Ou, você pode colocar módulos do seu pacote principal diretamente na raiz da " +"distribuição::" #: ../../distutils/examples.rst:161 msgid "in which case your setup script would be ::" -msgstr "" +msgstr "nesse caso, seu script de instalação seria ::" #: ../../distutils/examples.rst:170 msgid "(The empty string also stands for the current directory.)" -msgstr "" +msgstr "(A string vazia também representa o diretório atual.)" #: ../../distutils/examples.rst:172 msgid "" "If you have sub-packages, they must be explicitly listed in ``packages``, " -"but any entries in ``package_dir`` automatically extend to sub-packages. (In" -" other words, the Distutils does *not* scan your source tree, trying to " -"figure out which directories correspond to Python packages by looking for " -":file:`__init__.py` files.) Thus, if the default layout grows a sub-" -"package::" -msgstr "" +"but any entries in ``package_dir`` automatically extend to sub-packages. (In " +"other words, the Distutils does *not* scan your source tree, trying to " +"figure out which directories correspond to Python packages by looking for :" +"file:`__init__.py` files.) Thus, if the default layout grows a sub-package::" +msgstr "" +"Se você possui subpacotes, eles devem ser listados explicitamente em " +"``packages``, mas qualquer entrada em ``package_dir`` se estende " +"automaticamente aos subpacotes. (Em outras palavras, o Distutils *não* varre " +"sua árvore de fontes, tentando descobrir quais diretórios correspondem aos " +"pacotes Python procurando :file:`__init__.py`.) Portanto, se o layout padrão " +"aumentar um subpacote::" #: ../../distutils/examples.rst:188 msgid "then the corresponding setup script would be ::" -msgstr "" +msgstr "então o script de instalação correspondente seria ::" #: ../../distutils/examples.rst:200 msgid "Single extension module" @@ -194,23 +247,31 @@ msgid "" "only affects the source for pure Python modules. The simplest case, a " "single extension module in a single C source file, is::" msgstr "" +"Os módulos de extensão são especificados usando a opção ``ext_modules``. " +"``package_dir`` não afeta onde os arquivos de origem das extensões são " +"encontrados; isso afeta apenas a fonte dos módulos Python puros. O caso mais " +"simples, um único módulo de extensão em um único arquivo de origem C, é::" #: ../../distutils/examples.rst:211 msgid "" "If the :mod:`foo` extension belongs in the root package, the setup script " "for this could be ::" msgstr "" +"Se a extensão :mod:`foo` pertencer ao pacote raiz, o script de instalação " +"para isso pode ser ::" #: ../../distutils/examples.rst:221 -msgid "" -"If the extension actually belongs in a package, say :mod:`foopkg`, then" +msgid "If the extension actually belongs in a package, say :mod:`foopkg`, then" msgstr "" +"Se a extensão realmente pertence a um pacote, diga :mod:`foopkg`, então" #: ../../distutils/examples.rst:223 msgid "" -"With exactly the same source tree layout, this extension can be put in the " -":mod:`foopkg` package simply by changing the name of the extension::" +"With exactly the same source tree layout, this extension can be put in the :" +"mod:`foopkg` package simply by changing the name of the extension::" msgstr "" +"Com exatamente o mesmo layout da árvore de fontes, esta extensão pode ser " +"colocada no pacote :mod:`foopkg` simplesmente alterando o nome da extensão::" #: ../../distutils/examples.rst:234 msgid "Checking a package" @@ -221,12 +282,16 @@ msgid "" "The ``check`` command allows you to verify if your package meta-data meet " "the minimum requirements to build a distribution." msgstr "" +"O comando ``check`` permite verificar se os metadados do seu pacote atendem " +"aos requisitos mínimos para compilar uma distribuição." #: ../../distutils/examples.rst:239 msgid "" "To run it, just call it using your :file:`setup.py` script. If something is " "missing, ``check`` will display a warning." msgstr "" +"Para executá-lo, basta chamá-lo usando o script :file:`setup.py`. Se algo " +"estiver faltando, ``check`` exibirá um aviso." #: ../../distutils/examples.rst:242 msgid "Let's take an example with a simple script::" @@ -234,24 +299,29 @@ msgstr "Vamos dar um exemplo com um script simples::" #: ../../distutils/examples.rst:248 msgid "Running the ``check`` command will display some warnings:" -msgstr "" +msgstr "A execução do comando ``check`` exibirá alguns avisos:" #: ../../distutils/examples.rst:259 msgid "" -"If you use the reStructuredText syntax in the ``long_description`` field and" -" `docutils`_ is installed you can check if the syntax is fine with the " +"If you use the reStructuredText syntax in the ``long_description`` field and " +"`docutils`_ is installed you can check if the syntax is fine with the " "``check`` command, using the ``restructuredtext`` option." msgstr "" +"Se você usar a sintaxe reStructuredText no campo ``long_description`` e o " +"`docutils`_ estiver instalado, poderá verificar se a sintaxe está correta " +"com o comando ``check``, usando a opção ``restructuredtext``." #: ../../distutils/examples.rst:263 msgid "For example, if the :file:`setup.py` script is changed like this::" -msgstr "" +msgstr "Por exemplo, se o script :file:`setup.py` for alterado assim::" #: ../../distutils/examples.rst:278 msgid "" -"Where the long description is broken, ``check`` will be able to detect it by" -" using the :mod:`docutils` parser:" +"Where the long description is broken, ``check`` will be able to detect it by " +"using the :mod:`docutils` parser:" msgstr "" +"Onde a descrição longa está quebrada, ``check`` poderá detectá-la usando o " +"analisador :mod:`docutils`::" #: ../../distutils/examples.rst:289 msgid "Reading the metadata" @@ -263,29 +333,43 @@ msgid "" "that allows you to query the metadata fields of a project through the " "``setup.py`` script of a given project:" msgstr "" +"A função :func:`distutils.core.setup` fornece uma interface de linha de " +"comando que permite consultar os campos de metadados de um projeto através " +"do script ``setup.py`` de um projeto fornecido:" #: ../../distutils/examples.rst:300 msgid "" -"This call reads the ``name`` metadata by running the " -":func:`distutils.core.setup` function. Although, when a source or binary " -"distribution is created with Distutils, the metadata fields are written in a" -" static file called :file:`PKG-INFO`. When a Distutils-based project is " -"installed in Python, the :file:`PKG-INFO` file is copied alongside the " -"modules and packages of the distribution under :file:`NAME-VERSION-pyX.X" -".egg-info`, where ``NAME`` is the name of the project, ``VERSION`` its " -"version as defined in the Metadata, and ``pyX.X`` the major and minor " -"version of Python like ``2.7`` or ``3.2``." -msgstr "" +"This call reads the ``name`` metadata by running the :func:`distutils.core." +"setup` function. Although, when a source or binary distribution is created " +"with Distutils, the metadata fields are written in a static file called :" +"file:`PKG-INFO`. When a Distutils-based project is installed in Python, the :" +"file:`PKG-INFO` file is copied alongside the modules and packages of the " +"distribution under :file:`NAME-VERSION-pyX.X.egg-info`, where ``NAME`` is " +"the name of the project, ``VERSION`` its version as defined in the Metadata, " +"and ``pyX.X`` the major and minor version of Python like ``2.7`` or ``3.2``." +msgstr "" +"Essa chamada lê os metadados ``name`` executando a função :func:`distutils." +"core.setup`. Embora, quando uma distribuição de origem ou binária é criada " +"com o Distutils, os campos de metadados sejam gravados em um arquivo " +"estático chamado :file:`PKG-INFO`. Quando um projeto baseado no Distutils é " +"instalado no Python, o arquivo :file:`PKG-INFO` é copiado juntamente com os " +"módulos e pacotes da distribuição em :file:`NOME-VERSÃO-pyX.X.egg-info`, em " +"que ``NOME`` é o nome do projeto, ``VERSÃO`` sua versão conforme definida " +"nos metadados e ``pyX.X`` a versão principal e secundária do Python, como " +"``2.7`` ou ``3.2``." #: ../../distutils/examples.rst:310 msgid "" -"You can read back this static file, by using the " -":class:`distutils.dist.DistributionMetadata` class and its " -":func:`read_pkg_file` method::" +"You can read back this static file, by using the :class:`distutils.dist." +"DistributionMetadata` class and its :func:`read_pkg_file` method::" msgstr "" +"Você pode ler novamente esse arquivo estático usando a classe :class:" +"`distutils.dist.DistributionMetadata` e seu método :func:`read_pkg_file`::" #: ../../distutils/examples.rst:324 msgid "" "Notice that the class can also be instantiated with a metadata file path to " "loads its values::" msgstr "" +"Observe que a classe também pode ser instanciada com um caminho de arquivo " +"de metadados para carregar seus valores::" diff --git a/distutils/extending.po b/distutils/extending.po index 563c26fd2..e5c638e3d 100644 --- a/distutils/extending.po +++ b/distutils/extending.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,101 +29,159 @@ msgstr "Estendendo Distutils" #: ../../distutils/extending.rst:7 msgid "" -"Distutils can be extended in various ways. Most extensions take the form of" -" new commands or replacements for existing commands. New commands may be " +"Distutils can be extended in various ways. Most extensions take the form of " +"new commands or replacements for existing commands. New commands may be " "written to support new types of platform-specific packaging, for example, " "while replacements for existing commands may be made to modify details of " "how the command operates on a package." msgstr "" +"Distutils podem ser estendidos de várias maneiras. A maioria das extensões " +"assume a forma de novos comandos ou substituições de comandos existentes. " +"Novos comandos podem ser gravados para dar suporte a novos tipos de pacotes " +"específicos da plataforma, por exemplo, enquanto substituições de comandos " +"existentes podem ser feitas para modificar detalhes de como o comando opera " +"em um pacote." #: ../../distutils/extending.rst:13 msgid "" "Most extensions of the distutils are made within :file:`setup.py` scripts " -"that want to modify existing commands; many simply add a few file extensions" -" that should be copied into packages in addition to :file:`.py` files as a " +"that want to modify existing commands; many simply add a few file extensions " +"that should be copied into packages in addition to :file:`.py` files as a " "convenience." msgstr "" +"A maioria das extensões dos distutils é feita dentro de scripts :file:`setup." +"py` que desejam modificar comandos existentes; muitos simplesmente adicionam " +"algumas extensões de arquivo que devem ser copiadas em pacotes, além de :" +"file:`.py` como uma conveniência." #: ../../distutils/extending.rst:18 msgid "" -"Most distutils command implementations are subclasses of the " -":class:`distutils.cmd.Command` class. New commands may directly inherit " -"from :class:`Command`, while replacements often derive from :class:`Command`" -" indirectly, directly subclassing the command they are replacing. Commands " +"Most distutils command implementations are subclasses of the :class:" +"`distutils.cmd.Command` class. New commands may directly inherit from :" +"class:`Command`, while replacements often derive from :class:`Command` " +"indirectly, directly subclassing the command they are replacing. Commands " "are required to derive from :class:`Command`." msgstr "" +"A maioria das implementações de comando distutils são subclasses da classe :" +"class:`distutils.cmd.Command`. Novos comandos podem herdar diretamente de :" +"class:`Command`, enquanto substituições geralmente derivam de :class:" +"`Command` indiretamente, subclassificando diretamente o comando que eles " +"estão substituindo. Os comandos são necessários para derivar de :class:" +"`Command`." #: ../../distutils/extending.rst:33 msgid "Integrating new commands" -msgstr "" +msgstr "Integrando novos comandos" #: ../../distutils/extending.rst:35 msgid "" "There are different ways to integrate new command implementations into " "distutils. The most difficult is to lobby for the inclusion of the new " -"features in distutils itself, and wait for (and require) a version of Python" -" that provides that support. This is really hard for many reasons." +"features in distutils itself, and wait for (and require) a version of Python " +"that provides that support. This is really hard for many reasons." msgstr "" +"Existem diferentes maneiras de integrar novas implementações de comando nos " +"distutils. O mais difícil é fazer lobby para a inclusão dos novos recursos " +"no próprio distutils e aguardar (e exigir) uma versão do Python que forneça " +"esse suporte. Isso é realmente difícil por vários motivos." #: ../../distutils/extending.rst:40 msgid "" "The most common, and possibly the most reasonable for most needs, is to " -"include the new implementations with your :file:`setup.py` script, and cause" -" the :func:`distutils.core.setup` function use them::" +"include the new implementations with your :file:`setup.py` script, and cause " +"the :func:`distutils.core.setup` function use them::" msgstr "" +"O mais comum, e possivelmente o mais razoável para a maioria das " +"necessidades, é incluir as novas implementações com o script :file:`setup." +"py` e fazer com que a função :func:`distutils.core.setup` use-as::" #: ../../distutils/extending.rst:55 msgid "" "This approach is most valuable if the new implementations must be used to " -"use a particular package, as everyone interested in the package will need to" -" have the new command implementation." +"use a particular package, as everyone interested in the package will need to " +"have the new command implementation." msgstr "" +"Essa abordagem é mais valiosa se as novas implementações precisarem ser " +"usadas para usar um pacote específico, pois todos os interessados no pacote " +"precisarão ter a nova implementação de comando." #: ../../distutils/extending.rst:59 msgid "" "Beginning with Python 2.4, a third option is available, intended to allow " -"new commands to be added which can support existing :file:`setup.py` scripts" -" without requiring modifications to the Python installation. This is " +"new commands to be added which can support existing :file:`setup.py` scripts " +"without requiring modifications to the Python installation. This is " "expected to allow third-party extensions to provide support for additional " "packaging systems, but the commands can be used for anything distutils " "commands can be used for. A new configuration option, ``command_packages`` " "(command-line option :option:`!--command-packages`), can be used to specify " "additional packages to be searched for modules implementing commands. Like " "all distutils options, this can be specified on the command line or in a " -"configuration file. This option can only be set in the ``[global]`` section" -" of a configuration file, or before any commands on the command line. If " -"set in a configuration file, it can be overridden from the command line; " -"setting it to an empty string on the command line causes the default to be " -"used. This should never be set in a configuration file provided with a " -"package." +"configuration file. This option can only be set in the ``[global]`` section " +"of a configuration file, or before any commands on the command line. If set " +"in a configuration file, it can be overridden from the command line; setting " +"it to an empty string on the command line causes the default to be used. " +"This should never be set in a configuration file provided with a package." msgstr "" +"A partir do Python 2.4, uma terceira opção está disponível, destinada a " +"permitir que novos comandos sejam adicionados, os quais podem ter suporte a " +"scripts :file:`setup.py` existentes sem exigir modificações na instalação do " +"Python. Espera-se que isso permita que extensões de terceiros forneçam " +"suporte a sistemas de empacotamento adicionais, mas os comandos podem ser " +"usados ​​para qualquer coisa em que os comandos distutils possam ser usados. " +"Uma nova opção de configuração, ``command_packages`` (opção da linha de " +"comando :option:`!--command-packages`), pode ser usada para especificar " +"pacotes adicionais a serem pesquisados ​​por módulos que implementam comandos. " +"Como todas as opções do distutils, isso pode ser especificado na linha de " +"comando ou em um arquivo de configuração. Esta opção só pode ser definida na " +"seção ``[global]`` de um arquivo de configuração ou antes de qualquer " +"comando na linha de comando. Se definido em um arquivo de configuração, ele " +"poderá ser substituído na linha de comando; defini-lo como uma sequência " +"vazia na linha de comando faz com que o padrão seja usado. Isso nunca deve " +"ser definido em um arquivo de configuração fornecido com um pacote." #: ../../distutils/extending.rst:74 msgid "" "This new option can be used to add any number of packages to the list of " -"packages searched for command implementations; multiple package names should" -" be separated by commas. When not specified, the search is only performed " -"in the :mod:`distutils.command` package. When :file:`setup.py` is run with " -"the option ``--command-packages distcmds,buildcmds``, however, the packages " -":mod:`distutils.command`, :mod:`distcmds`, and :mod:`buildcmds` will be " -"searched in that order. New commands are expected to be implemented in " -"modules of the same name as the command by classes sharing the same name. " -"Given the example command line option above, the command " -":command:`bdist_openpkg` could be implemented by the class " -":class:`distcmds.bdist_openpkg.bdist_openpkg` or " -":class:`buildcmds.bdist_openpkg.bdist_openpkg`." +"packages searched for command implementations; multiple package names should " +"be separated by commas. When not specified, the search is only performed in " +"the :mod:`distutils.command` package. When :file:`setup.py` is run with the " +"option ``--command-packages distcmds,buildcmds``, however, the packages :mod:" +"`distutils.command`, :mod:`distcmds`, and :mod:`buildcmds` will be searched " +"in that order. New commands are expected to be implemented in modules of " +"the same name as the command by classes sharing the same name. Given the " +"example command line option above, the command :command:`bdist_openpkg` " +"could be implemented by the class :class:`distcmds.bdist_openpkg." +"bdist_openpkg` or :class:`buildcmds.bdist_openpkg.bdist_openpkg`." msgstr "" +"Esta nova opção pode ser usada para adicionar qualquer número de pacotes à " +"lista de pacotes pesquisados para implementações de comandos; vários nomes " +"de pacotes devem ser separados por vírgulas. Quando não especificada, a " +"pesquisa é realizada apenas no pacote :mod:`distutils.command`. Quando :file:" +"`setup.py` é executado com a opção ``--command-packages distcmds," +"buildcmds``, no entanto, os pacotes :mod:`distutils.command`, :mod:" +"`distcmds` e :mod:`buildcmds` será pesquisado nessa ordem. Espera-se que " +"novos comandos sejam implementados em módulos com o mesmo nome que o comando " +"por classes que compartilham o mesmo nome. Dada a opção de linha de comando " +"de exemplo acima, o comando :command:`bdist_openpkg` pode ser implementado " +"pela classe :class:`distcmds.bdist_openpkg.bdist_openpkg` ou :class:" +"`buildcmds.bdist_openpkg.bdist_openpkg`." #: ../../distutils/extending.rst:88 msgid "Adding new distribution types" -msgstr "" +msgstr "Adicionando novos tipos de distribuição" #: ../../distutils/extending.rst:90 msgid "" "Commands that create distributions (files in the :file:`dist/` directory) " -"need to add ``(command, filename)`` pairs to " -"``self.distribution.dist_files`` so that :command:`upload` can upload it to " -"PyPI. The *filename* in the pair contains no path information, only the " -"name of the file itself. In dry-run mode, pairs should still be added to " -"represent what would have been created." +"need to add ``(command, filename)`` pairs to ``self.distribution." +"dist_files`` so that :command:`upload` can upload it to PyPI. The " +"*filename* in the pair contains no path information, only the name of the " +"file itself. In dry-run mode, pairs should still be added to represent what " +"would have been created." msgstr "" +"Os comandos que criam distribuições (arquivos no diretório :file:`dist/`) " +"precisam adicionar pares ``(command, filename)`` ao ``self.distribution." +"dist_files`` para que :command:`upload` possa ser carregado para o PyPI. O " +"*nome do arquivo* no par não contém informações de caminho, apenas o nome do " +"próprio arquivo. No modo de execução a seco, os pares ainda devem ser " +"adicionados para representar o que teria sido criado." diff --git a/distutils/index.po b/distutils/index.po index ac87c52cd..1ad07b923 100644 --- a/distutils/index.po +++ b/distutils/index.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Rafael Marques , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Rafael Marques , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -59,11 +60,11 @@ msgid "" "Distutils to make Python modules and extensions easily available to a wider " "audience with very little overhead for build/release/install mechanics." msgstr "" -"Este documento descreve os utilitários Python de Distribuição " -"(\"Distutils\") do ponto de vista do desenvolvedor do módulo, que descrevem " -"como usar o Distutils para fazer módulos Python e extensões facilmente " -"disponíveis a um público mais amplo, com muito pouca sobrecarga para " -"construção/revisão/instalação." +"Este documento descreve os utilitários Python de Distribuição (\"Distutils" +"\") do ponto de vista do desenvolvedor do módulo, que descrevem como usar o " +"Distutils para fazer módulos Python e extensões facilmente disponíveis a um " +"público mais amplo, com muito pouca sobrecarga para construção/revisão/" +"instalação." #: ../../distutils/index.rst:22 msgid "" @@ -71,12 +72,11 @@ msgid "" "extensions that are provided as part of this version of Python. Third party " "tools offer easier to use and more secure alternatives. Refer to the `quick " "recommendations section `__ in the Python Packaging User Guide for more " -"information." +"recommendations/>`__ in the Python Packaging User Guide for more information." msgstr "" "Este guia cobre apenas as ferramentas básicas para construir e distribuir " "extensões que são fornecidas como parte desta versão do Python. Ferramentas " "de terceiros oferecem alternativas mais fáceis de usar e mais seguras. " -"Consulte a `seção de recomendações rápidas " -"`__ no Guia do " -"Usuário de Pacotes Python para maiores informações" +"Consulte a `seção de recomendações rápidas `__ no Guia do Usuário de Pacotes Python para " +"maiores informações" diff --git a/distutils/introduction.po b/distutils/introduction.po index 6c32cd3dd..95a135958 100644 --- a/distutils/introduction.po +++ b/distutils/introduction.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # felipe caridade , 2019 -# +# Bruno Caldas , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Bruno Caldas , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,8 +32,8 @@ msgstr "Uma Introdução ao Distutils" msgid "" "This document covers using the Distutils to distribute your Python modules, " "concentrating on the role of developer/distributor: if you're looking for " -"information on installing Python modules, you should refer to the :ref" -":`install-index` chapter." +"information on installing Python modules, you should refer to the :ref:" +"`install-index` chapter." msgstr "" "Este documento trata do uso do Distutils tornando possível a distribuição " "dos seus módulos Python, podendo assim, concentrar-se no seu papel de " @@ -73,7 +75,7 @@ msgstr "(opcional) crie uma ou mais distribuições build (binárias)" #: ../../distutils/introduction.rst:31 msgid "Each of these tasks is covered in this document." -msgstr "" +msgstr "Cada uma dessas tarefas são tratadas neste documento." #: ../../distutils/introduction.rst:33 msgid "" @@ -95,8 +97,8 @@ msgstr "Um Exemplo Simples" #: ../../distutils/introduction.rst:49 msgid "" "The setup script is usually quite simple, although since it's written in " -"Python, there are no arbitrary limits to what you can do with it, though you" -" should be careful about putting arbitrarily expensive operations in your " +"Python, there are no arbitrary limits to what you can do with it, though you " +"should be careful about putting arbitrarily expensive operations in your " "setup script. Unlike, say, Autoconf-style configure scripts, the setup " "script may be run multiple times in the course of building and installing " "your module distribution." @@ -104,8 +106,8 @@ msgstr "" #: ../../distutils/introduction.rst:56 msgid "" -"If all you want to do is distribute a module called :mod:`foo`, contained in" -" a file :file:`foo.py`, then your setup script can be as simple as this::" +"If all you want to do is distribute a module called :mod:`foo`, contained in " +"a file :file:`foo.py`, then your setup script can be as simple as this::" msgstr "" #: ../../distutils/introduction.rst:65 @@ -157,15 +159,15 @@ msgstr "" msgid "" ":command:`sdist` will create an archive file (e.g., tarball on Unix, ZIP " "file on Windows) containing your setup script :file:`setup.py`, and your " -"module :file:`foo.py`. The archive file will be named :file:`foo-1.0.tar.gz`" -" (or :file:`.zip`), and will unpack into a directory :file:`foo-1.0`." +"module :file:`foo.py`. The archive file will be named :file:`foo-1.0.tar.gz` " +"(or :file:`.zip`), and will unpack into a directory :file:`foo-1.0`." msgstr "" #: ../../distutils/introduction.rst:97 msgid "" -"If an end-user wishes to install your :mod:`foo` module, all they have to do" -" is download :file:`foo-1.0.tar.gz` (or :file:`.zip`), unpack it, and---from" -" the :file:`foo-1.0` directory---run ::" +"If an end-user wishes to install your :mod:`foo` module, all they have to do " +"is download :file:`foo-1.0.tar.gz` (or :file:`.zip`), unpack it, and---from " +"the :file:`foo-1.0` directory---run ::" msgstr "" #: ../../distutils/introduction.rst:103 @@ -176,18 +178,18 @@ msgstr "" #: ../../distutils/introduction.rst:106 msgid "" -"This simple example demonstrates some fundamental concepts of the Distutils." -" First, both developers and installers have the same basic user interface, " -"i.e. the setup script. The difference is which Distutils *commands* they " -"use: the :command:`sdist` command is almost exclusively for module " -"developers, while :command:`install` is more often for installers (although " -"most developers will want to install their own code occasionally)." +"This simple example demonstrates some fundamental concepts of the Distutils. " +"First, both developers and installers have the same basic user interface, i." +"e. the setup script. The difference is which Distutils *commands* they use: " +"the :command:`sdist` command is almost exclusively for module developers, " +"while :command:`install` is more often for installers (although most " +"developers will want to install their own code occasionally)." msgstr "" #: ../../distutils/introduction.rst:113 msgid "" -"If you want to make things really easy for your users, you can create one or" -" more built distributions for them. For instance, if you are running on a " +"If you want to make things really easy for your users, you can create one or " +"more built distributions for them. For instance, if you are running on a " "Windows machine, and want to make things easy for other Windows users, you " "can create an executable installer (the most appropriate type of built " "distribution for this platform) with the :command:`bdist_wininst` command. " @@ -202,11 +204,10 @@ msgstr "" #: ../../distutils/introduction.rst:124 msgid "" -"Other useful built distribution formats are RPM, implemented by the " -":command:`bdist_rpm` command, Solaris :program:`pkgtool` " -"(:command:`bdist_pkgtool`), and HP-UX :program:`swinstall` " -"(:command:`bdist_sdux`). For example, the following command will create an " -"RPM file called :file:`foo-1.0.noarch.rpm`::" +"Other useful built distribution formats are RPM, implemented by the :command:" +"`bdist_rpm` command, Solaris :program:`pkgtool` (:command:`bdist_pkgtool`), " +"and HP-UX :program:`swinstall` (:command:`bdist_sdux`). For example, the " +"following command will create an RPM file called :file:`foo-1.0.noarch.rpm`::" msgstr "" #: ../../distutils/introduction.rst:132 @@ -262,13 +263,13 @@ msgstr "módulo de extensão" #: ../../distutils/introduction.rst:163 msgid "" -"a module written in the low-level language of the Python implementation: " -"C/C++ for Python, Java for Jython. Typically contained in a single " -"dynamically loadable pre-compiled file, e.g. a shared object (:file:`.so`) " -"file for Python extensions on Unix, a DLL (given the :file:`.pyd` extension)" -" for Python extensions on Windows, or a Java class file for Jython " -"extensions. (Note that currently, the Distutils only handles C/C++ " -"extensions for Python.)" +"a module written in the low-level language of the Python implementation: C/C+" +"+ for Python, Java for Jython. Typically contained in a single dynamically " +"loadable pre-compiled file, e.g. a shared object (:file:`.so`) file for " +"Python extensions on Unix, a DLL (given the :file:`.pyd` extension) for " +"Python extensions on Windows, or a Java class file for Jython extensions. " +"(Note that currently, the Distutils only handles C/C++ extensions for " +"Python.)" msgstr "" #: ../../distutils/introduction.rst:173 @@ -278,8 +279,8 @@ msgstr "pacote" #: ../../distutils/introduction.rst:171 msgid "" "a module that contains other modules; typically contained in a directory in " -"the filesystem and distinguished from other directories by the presence of a" -" file :file:`__init__.py`." +"the filesystem and distinguished from other directories by the presence of a " +"file :file:`__init__.py`." msgstr "" #: ../../distutils/introduction.rst:183 @@ -291,10 +292,10 @@ msgid "" "the root of the hierarchy of packages. (This isn't really a package, since " "it doesn't have an :file:`__init__.py` file. But we have to call it " "something.) The vast majority of the standard library is in the root " -"package, as are many small, standalone third-party modules that don't belong" -" to a larger module collection. Unlike regular packages, modules in the root" -" package can be found in many directories: in fact, every directory listed " -"in ``sys.path`` contributes modules to the root package." +"package, as are many small, standalone third-party modules that don't belong " +"to a larger module collection. Unlike regular packages, modules in the root " +"package can be found in many directories: in fact, every directory listed in " +"``sys.path`` contributes modules to the root package." msgstr "" #: ../../distutils/introduction.rst:188 @@ -313,12 +314,11 @@ msgstr "" #: ../../distutils/introduction.rst:194 msgid "" -"a collection of Python modules distributed together as a single downloadable" -" resource and meant to be installed *en masse*. Examples of some well-known" -" module distributions are NumPy, SciPy, Pillow, or mxBase. (This would be " -"called a *package*, except that term is already taken in the Python context:" -" a single module distribution may contain zero, one, or many Python " -"packages.)" +"a collection of Python modules distributed together as a single downloadable " +"resource and meant to be installed *en masse*. Examples of some well-known " +"module distributions are NumPy, SciPy, Pillow, or mxBase. (This would be " +"called a *package*, except that term is already taken in the Python context: " +"a single module distribution may contain zero, one, or many Python packages.)" msgstr "" #: ../../distutils/introduction.rst:203 diff --git a/distutils/packageindex.po b/distutils/packageindex.po index 55c1048bd..1904e0ed7 100644 --- a/distutils/packageindex.po +++ b/distutils/packageindex.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # felipe caridade , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-24 11:30+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,8 +31,8 @@ msgstr "O Python Package Index (PyPI)" #: ../../distutils/packageindex.rst:9 msgid "" "The `Python Package Index (PyPI)`_ stores metadata describing distributions " -"packaged with distutils and other publishing tools, as well the distribution" -" archives themselves." +"packaged with distutils and other publishing tools, as well the distribution " +"archives themselves." msgstr "" "O `Python Package Index (PyPI)` _ armazena metadados descrevendo " "distribuições empacotadas com distutils e outras ferramentas de publicação, " @@ -38,6 +40,8 @@ msgstr "" #: ../../distutils/packageindex.rst:13 msgid "" -"References to up to date PyPI documentation can be found at :ref" -":`publishing-python-packages`." +"References to up to date PyPI documentation can be found at :ref:`publishing-" +"python-packages`." msgstr "" +"As referências à documentação atualizada do PyPI podem ser encontradas em :" +"ref:`publishing-python-packages`." diff --git a/distutils/setupscript.po b/distutils/setupscript.po index 6f4b70e97..62fb6494a 100644 --- a/distutils/setupscript.po +++ b/distutils/setupscript.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-11 11:25+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,12 +33,12 @@ msgstr "Escrevendo o Script de Configuração" msgid "" "The setup script is the centre of all activity in building, distributing, " "and installing modules using the Distutils. The main purpose of the setup " -"script is to describe your module distribution to the Distutils, so that the" -" various commands that operate on your modules do the right thing. As we " -"saw in section :ref:`distutils-simple-example` above, the setup script " -"consists mainly of a call to :func:`setup`, and most information supplied to" -" the Distutils by the module developer is supplied as keyword arguments to " -":func:`setup`." +"script is to describe your module distribution to the Distutils, so that the " +"various commands that operate on your modules do the right thing. As we saw " +"in section :ref:`distutils-simple-example` above, the setup script consists " +"mainly of a call to :func:`setup`, and most information supplied to the " +"Distutils by the module developer is supplied as keyword arguments to :func:" +"`setup`." msgstr "" #: ../../distutils/setupscript.rst:15 @@ -55,8 +57,8 @@ msgid "" "distribution presented in section :ref:`distutils-simple-example`: more " "metadata, and the specification of pure Python modules by package, rather " "than by module. This is important since the Distutils consist of a couple " -"of dozen modules split into (so far) two packages; an explicit list of every" -" module would be tedious to generate and difficult to maintain. For more " +"of dozen modules split into (so far) two packages; an explicit list of every " +"module would be tedious to generate and difficult to maintain. For more " "information on the additional meta-data, see section :ref:`meta-data`." msgstr "" @@ -73,8 +75,8 @@ msgstr "" #: ../../distutils/setupscript.rst:51 msgid "" -"This, of course, only applies to pathnames given to Distutils functions. If" -" you, for example, use standard Python functions such as :func:`glob.glob` " +"This, of course, only applies to pathnames given to Distutils functions. If " +"you, for example, use standard Python functions such as :func:`glob.glob` " "or :func:`os.listdir` to specify files, you should be careful to write " "portable code instead of hardcoding path separators::" msgstr "" @@ -88,15 +90,15 @@ msgid "" "The ``packages`` option tells the Distutils to process (build, distribute, " "install, etc.) all pure Python modules found in each package mentioned in " "the ``packages`` list. In order to do this, of course, there has to be a " -"correspondence between package names and directories in the filesystem. The" -" default correspondence is the most obvious one, i.e. package " -":mod:`distutils` is found in the directory :file:`distutils` relative to the" -" distribution root. Thus, when you say ``packages = ['foo']`` in your setup " -"script, you are promising that the Distutils will find a file " -":file:`foo/__init__.py` (which might be spelled differently on your system, " -"but you get the idea) relative to the directory where your setup script " -"lives. If you break this promise, the Distutils will issue a warning but " -"still process the broken package anyway." +"correspondence between package names and directories in the filesystem. The " +"default correspondence is the most obvious one, i.e. package :mod:" +"`distutils` is found in the directory :file:`distutils` relative to the " +"distribution root. Thus, when you say ``packages = ['foo']`` in your setup " +"script, you are promising that the Distutils will find a file :file:`foo/" +"__init__.py` (which might be spelled differently on your system, but you get " +"the idea) relative to the directory where your setup script lives. If you " +"break this promise, the Distutils will issue a warning but still process the " +"broken package anyway." msgstr "" #: ../../distutils/setupscript.rst:77 @@ -104,25 +106,25 @@ msgid "" "If you use a different convention to lay out your source directory, that's " "no problem: you just have to supply the ``package_dir`` option to tell the " "Distutils about your convention. For example, say you keep all Python " -"source under :file:`lib`, so that modules in the \"root package\" (i.e., not" -" in any package at all) are in :file:`lib`, modules in the :mod:`foo` " -"package are in :file:`lib/foo`, and so forth. Then you would put ::" +"source under :file:`lib`, so that modules in the \"root package\" (i.e., not " +"in any package at all) are in :file:`lib`, modules in the :mod:`foo` package " +"are in :file:`lib/foo`, and so forth. Then you would put ::" msgstr "" #: ../../distutils/setupscript.rst:86 msgid "" -"in your setup script. The keys to this dictionary are package names, and an" -" empty package name stands for the root package. The values are directory " +"in your setup script. The keys to this dictionary are package names, and an " +"empty package name stands for the root package. The values are directory " "names relative to your distribution root. In this case, when you say " -"``packages = ['foo']``, you are promising that the file " -":file:`lib/foo/__init__.py` exists." +"``packages = ['foo']``, you are promising that the file :file:`lib/foo/" +"__init__.py` exists." msgstr "" #: ../../distutils/setupscript.rst:91 msgid "" -"Another possible convention is to put the :mod:`foo` package right in " -":file:`lib`, the :mod:`foo.bar` package in :file:`lib/bar`, etc. This would" -" be written in the setup script as ::" +"Another possible convention is to put the :mod:`foo` package right in :file:" +"`lib`, the :mod:`foo.bar` package in :file:`lib/bar`, etc. This would be " +"written in the setup script as ::" msgstr "" #: ../../distutils/setupscript.rst:97 @@ -130,8 +132,8 @@ msgid "" "A ``package: dir`` entry in the ``package_dir`` dictionary implicitly " "applies to all packages below *package*, so the :mod:`foo.bar` case is " "automatically handled here. In this example, having ``packages = ['foo', " -"'foo.bar']`` tells the Distutils to look for :file:`lib/__init__.py` and " -":file:`lib/bar/__init__.py`. (Keep in mind that although ``package_dir`` " +"'foo.bar']`` tells the Distutils to look for :file:`lib/__init__.py` and :" +"file:`lib/bar/__init__.py`. (Keep in mind that although ``package_dir`` " "applies recursively, you must explicitly list all packages in ``packages``: " "the Distutils will *not* recursively scan your source tree looking for any " "directory with an :file:`__init__.py` file.)" @@ -143,9 +145,9 @@ msgstr "" #: ../../distutils/setupscript.rst:112 msgid "" -"For a small module distribution, you might prefer to list all modules rather" -" than listing packages---especially the case of a single module that goes in" -" the \"root package\" (i.e., no package at all). This simplest case was " +"For a small module distribution, you might prefer to list all modules rather " +"than listing packages---especially the case of a single module that goes in " +"the \"root package\" (i.e., no package at all). This simplest case was " "shown in section :ref:`distutils-simple-example`; here is a slightly more " "involved example::" msgstr "" @@ -154,9 +156,9 @@ msgstr "" msgid "" "This describes two modules, one of them in the \"root\" package, the other " "in the :mod:`pkg` package. Again, the default package/directory layout " -"implies that these two modules can be found in :file:`mod1.py` and " -":file:`pkg/mod2.py`, and that :file:`pkg/__init__.py` exists as well. And " -"again, you can override the package/directory correspondence using the " +"implies that these two modules can be found in :file:`mod1.py` and :file:" +"`pkg/mod2.py`, and that :file:`pkg/__init__.py` exists as well. And again, " +"you can override the package/directory correspondence using the " "``package_dir`` option." msgstr "" @@ -177,12 +179,12 @@ msgstr "" #: ../../distutils/setupscript.rst:140 msgid "" "All of this is done through another keyword argument to :func:`setup`, the " -"``ext_modules`` option. ``ext_modules`` is just a list of " -":class:`~distutils.core.Extension` instances, each of which describes a " -"single extension module. Suppose your distribution includes a single " -"extension, called :mod:`foo` and implemented by :file:`foo.c`. If no " -"additional instructions to the compiler/linker are needed, describing this " -"extension is quite simple::" +"``ext_modules`` option. ``ext_modules`` is just a list of :class:" +"`~distutils.core.Extension` instances, each of which describes a single " +"extension module. Suppose your distribution includes a single extension, " +"called :mod:`foo` and implemented by :file:`foo.c`. If no additional " +"instructions to the compiler/linker are needed, describing this extension is " +"quite simple::" msgstr "" #: ../../distutils/setupscript.rst:150 @@ -207,8 +209,8 @@ msgstr "" #: ../../distutils/setupscript.rst:169 msgid "" "The first argument to the :class:`~distutils.core.Extension` constructor is " -"always the name of the extension, including any package names. For example," -" ::" +"always the name of the extension, including any package names. For " +"example, ::" msgstr "" #: ../../distutils/setupscript.rst:174 @@ -225,15 +227,15 @@ msgstr "" #: ../../distutils/setupscript.rst:183 msgid "" -"If you have a number of extensions all in the same package (or all under the" -" same base package), use the ``ext_package`` keyword argument to " -":func:`setup`. For example, ::" +"If you have a number of extensions all in the same package (or all under the " +"same base package), use the ``ext_package`` keyword argument to :func:" +"`setup`. For example, ::" msgstr "" #: ../../distutils/setupscript.rst:193 msgid "" -"will compile :file:`foo.c` to the extension :mod:`pkg.foo`, and " -":file:`bar.c` to :mod:`pkg.subpkg.bar`." +"will compile :file:`foo.c` to the extension :mod:`pkg.foo`, and :file:`bar." +"c` to :mod:`pkg.subpkg.bar`." msgstr "" #: ../../distutils/setupscript.rst:198 @@ -242,9 +244,9 @@ msgstr "" #: ../../distutils/setupscript.rst:200 msgid "" -"The second argument to the :class:`~distutils.core.Extension` constructor is" -" a list of source files. Since the Distutils currently only support C, C++," -" and Objective-C extensions, these are normally C/C++/Objective-C source " +"The second argument to the :class:`~distutils.core.Extension` constructor is " +"a list of source files. Since the Distutils currently only support C, C++, " +"and Objective-C extensions, these are normally C/C++/Objective-C source " "files. (Be sure to use appropriate extensions to distinguish C++ source " "files: :file:`.cc` and :file:`.cpp` seem to be recognized by both Unix and " "Windows compilers.)" @@ -252,9 +254,9 @@ msgstr "" #: ../../distutils/setupscript.rst:207 msgid "" -"However, you can also include SWIG interface (:file:`.i`) files in the list;" -" the :command:`build_ext` command knows how to deal with SWIG extensions: it" -" will run SWIG on the interface file and compile the resulting C/C++ file " +"However, you can also include SWIG interface (:file:`.i`) files in the list; " +"the :command:`build_ext` command knows how to deal with SWIG extensions: it " +"will run SWIG on the interface file and compile the resulting C/C++ file " "into your extension." msgstr "" @@ -272,9 +274,9 @@ msgstr "" msgid "" "On some platforms, you can include non-source files that are processed by " "the compiler and included in your extension. Currently, this just means " -"Windows message text (:file:`.mc`) files and resource definition " -"(:file:`.rc`) files for Visual C++. These will be compiled to binary " -"resource (:file:`.res`) files and linked into the executable." +"Windows message text (:file:`.mc`) files and resource definition (:file:`." +"rc`) files for Visual C++. These will be compiled to binary resource (:file:" +"`.res`) files and linked into the executable." msgstr "" #: ../../distutils/setupscript.rst:235 @@ -297,8 +299,8 @@ msgstr "" #: ../../distutils/setupscript.rst:246 msgid "" "You can specify absolute directories there; if you know that your extension " -"will only be built on Unix systems with X11R6 installed to :file:`/usr`, you" -" can get away with ::" +"will only be built on Unix systems with X11R6 installed to :file:`/usr`, you " +"can get away with ::" msgstr "" #: ../../distutils/setupscript.rst:252 @@ -312,19 +314,19 @@ msgid "" "If you need to include header files from some other Python extension, you " "can take advantage of the fact that header files are installed in a " "consistent way by the Distutils :command:`install_headers` command. For " -"example, the Numerical Python header files are installed (on a standard Unix" -" installation) to :file:`/usr/local/include/python1.5/Numerical`. (The exact" -" location will differ according to your platform and Python installation.) " -"Since the Python include directory---\\ :file:`/usr/local/include/python1.5`" -" in this case---is always included in the search path when building Python " +"example, the Numerical Python header files are installed (on a standard Unix " +"installation) to :file:`/usr/local/include/python1.5/Numerical`. (The exact " +"location will differ according to your platform and Python installation.) " +"Since the Python include directory---\\ :file:`/usr/local/include/python1.5` " +"in this case---is always included in the search path when building Python " "extensions, the best approach is to write C code like ::" msgstr "" #: ../../distutils/setupscript.rst:269 msgid "" "If you must put the :file:`Numerical` include directory right into your " -"header search path, though, you can find that directory using the Distutils " -":mod:`distutils.sysconfig` module::" +"header search path, though, you can find that directory using the Distutils :" +"mod:`distutils.sysconfig` module::" msgstr "" #: ../../distutils/setupscript.rst:279 @@ -341,8 +343,8 @@ msgid "" "value)`` tuples, where ``name`` is the name of the macro to define (a " "string) and ``value`` is its value: either a string or ``None``. (Defining " "a macro ``FOO`` to ``None`` is the equivalent of a bare ``#define FOO`` in " -"your C source: with most compilers, this sets ``FOO`` to the string ``1``.)" -" ``undef_macros`` is just a list of macros to undefine." +"your C source: with most compilers, this sets ``FOO`` to the string ``1``.) " +"``undef_macros`` is just a list of macros to undefine." msgstr "" #: ../../distutils/setupscript.rst:291 @@ -391,8 +393,7 @@ msgstr "Outras opções" #: ../../distutils/setupscript.rst:337 msgid "" -"There are still some other options which can be used to handle special " -"cases." +"There are still some other options which can be used to handle special cases." msgstr "" #: ../../distutils/setupscript.rst:339 @@ -426,8 +427,8 @@ msgstr "" #: ../../distutils/setupscript.rst:356 msgid "" -"The ``depends`` option is a list of files that the extension depends on (for" -" example header files). The build command will call the compiler on the " +"The ``depends`` option is a list of files that the extension depends on (for " +"example header files). The build command will call the compiler on the " "sources to rebuild extension if any on this files has been modified since " "the previous build." msgstr "" @@ -454,16 +455,16 @@ msgstr "Isso pode ser pacotes ou módulos obsoletos." #: ../../distutils/setupscript.rst:372 msgid "" -"These relationships can be specified using keyword arguments to the " -":func:`distutils.core.setup` function." +"These relationships can be specified using keyword arguments to the :func:" +"`distutils.core.setup` function." msgstr "" #: ../../distutils/setupscript.rst:375 msgid "" "Dependencies on other Python modules and packages can be specified by " "supplying the *requires* keyword argument to :func:`setup`. The value must " -"be a list of strings. Each string specifies a package that is required, and" -" optionally what versions are sufficient." +"be a list of strings. Each string specifies a package that is required, and " +"optionally what versions are sufficient." msgstr "" #: ../../distutils/setupscript.rst:380 @@ -520,8 +521,8 @@ msgstr "" msgid "" "Now that we can specify dependencies, we also need to be able to specify " "what we provide that other distributions can require. This is done using " -"the *provides* keyword argument to :func:`setup`. The value for this keyword" -" is a list of strings, each of which names a Python module or package, and " +"the *provides* keyword argument to :func:`setup`. The value for this keyword " +"is a list of strings, each of which names a Python module or package, and " "optionally identifies the version. If the version is not specified, it is " "assumed to match that of the distribution." msgstr "" @@ -552,12 +553,12 @@ msgstr "" #: ../../distutils/setupscript.rst:425 msgid "" -"A package can declare that it obsoletes other packages using the *obsoletes*" -" keyword argument. The value for this is similar to that of the *requires* " +"A package can declare that it obsoletes other packages using the *obsoletes* " +"keyword argument. The value for this is similar to that of the *requires* " "keyword: a list of strings giving module or package specifiers. Each " -"specifier consists of a module or package name optionally followed by one or" -" more version qualifiers. Version qualifiers are given in parentheses after" -" the module or package name." +"specifier consists of a module or package name optionally followed by one or " +"more version qualifiers. Version qualifiers are given in parentheses after " +"the module or package name." msgstr "" #: ../../distutils/setupscript.rst:432 @@ -573,26 +574,26 @@ msgstr "" #: ../../distutils/setupscript.rst:441 msgid "" -"So far we have been dealing with pure and non-pure Python modules, which are" -" usually not run by themselves but imported by scripts." +"So far we have been dealing with pure and non-pure Python modules, which are " +"usually not run by themselves but imported by scripts." msgstr "" #: ../../distutils/setupscript.rst:444 msgid "" -"Scripts are files containing Python source code, intended to be started from" -" the command line. Scripts don't require Distutils to do anything very " -"complicated. The only clever feature is that if the first line of the script" -" starts with ``#!`` and contains the word \"python\", the Distutils will " +"Scripts are files containing Python source code, intended to be started from " +"the command line. Scripts don't require Distutils to do anything very " +"complicated. The only clever feature is that if the first line of the script " +"starts with ``#!`` and contains the word \"python\", the Distutils will " "adjust the first line to refer to the current interpreter location. By " -"default, it is replaced with the current interpreter location. The " -":option:`!--executable` (or :option:`!-e`) option will allow the interpreter" -" path to be explicitly overridden." +"default, it is replaced with the current interpreter location. The :option:" +"`!--executable` (or :option:`!-e`) option will allow the interpreter path to " +"be explicitly overridden." msgstr "" #: ../../distutils/setupscript.rst:452 msgid "" -"The ``scripts`` option simply is a list of files to be handled in this way." -" From the PyXML setup script::" +"The ``scripts`` option simply is a list of files to be handled in this way. " +"From the PyXML setup script::" msgstr "" #: ../../distutils/setupscript.rst:459 @@ -609,17 +610,17 @@ msgstr "" msgid "" "Often, additional files need to be installed into a package. These files " "are often data that's closely related to the package's implementation, or " -"text files containing documentation that might be of interest to programmers" -" using the package. These files are called :dfn:`package data`." +"text files containing documentation that might be of interest to programmers " +"using the package. These files are called :dfn:`package data`." msgstr "" #: ../../distutils/setupscript.rst:474 msgid "" "Package data can be added to packages using the ``package_data`` keyword " "argument to the :func:`setup` function. The value must be a mapping from " -"package name to a list of relative path names that should be copied into the" -" package. The paths are interpreted as relative to the directory containing" -" the package (information from the ``package_dir`` mapping is used if " +"package name to a list of relative path names that should be copied into the " +"package. The paths are interpreted as relative to the directory containing " +"the package (information from the ``package_dir`` mapping is used if " "appropriate); that is, the files are expected to be part of the package in " "the source directories. They may contain glob patterns as well." msgstr "" @@ -673,14 +674,14 @@ msgstr "" msgid "" "Each file name in *files* is interpreted relative to the :file:`setup.py` " "script at the top of the package source distribution. Note that you can " -"specify the directory where the data files will be installed, but you cannot" -" rename the data files themselves." +"specify the directory where the data files will be installed, but you cannot " +"rename the data files themselves." msgstr "" #: ../../distutils/setupscript.rst:537 msgid "" -"The *directory* should be a relative path. It is interpreted relative to the" -" installation prefix (Python's ``sys.prefix`` for system installations; " +"The *directory* should be a relative path. It is interpreted relative to the " +"installation prefix (Python's ``sys.prefix`` for system installations; " "``site.USER_BASE`` for user installations). Distutils allows *directory* to " "be an absolute installation path, but this is discouraged since it is " "incompatible with the wheel packaging format. No directory information from " @@ -691,10 +692,10 @@ msgstr "" #: ../../distutils/setupscript.rst:545 msgid "" "You can specify the ``data_files`` options as a simple sequence of files " -"without specifying a target directory, but this is not recommended, and the " -":command:`install` command will print a warning in this case. To install " -"data files directly in the target directory, an empty string should be given" -" as the directory." +"without specifying a target directory, but this is not recommended, and the :" +"command:`install` command will print a warning in this case. To install data " +"files directly in the target directory, an empty string should be given as " +"the directory." msgstr "" #: ../../distutils/setupscript.rst:551 @@ -875,7 +876,7 @@ msgstr "" #: ../../distutils/setupscript.rst:597 msgid "``keywords``" -msgstr "" +msgstr "``keywords``" #: ../../distutils/setupscript.rst:597 msgid "a list of keywords" @@ -921,10 +922,9 @@ msgstr "" #: ../../distutils/setupscript.rst:619 msgid "" "The ``license`` field is a text indicating the license covering the package " -"where the license is not a selection from the \"License\" Trove classifiers." -" See the ``Classifier`` field. Notice that there's a ``licence`` " -"distribution option which is deprecated but still acts as an alias for " -"``license``." +"where the license is not a selection from the \"License\" Trove classifiers. " +"See the ``Classifier`` field. Notice that there's a ``licence`` distribution " +"option which is deprecated but still acts as an alias for ``license``." msgstr "" #: ../../distutils/setupscript.rst:626 @@ -938,8 +938,8 @@ msgstr "" #: ../../distutils/setupscript.rst:633 msgid "" -"To preserve backward compatibility, this field also accepts a string. If you" -" pass a comma-separated string ``'foo, bar'``, it will be converted to " +"To preserve backward compatibility, this field also accepts a string. If you " +"pass a comma-separated string ``'foo, bar'``, it will be converted to " "``['foo', 'bar']``, Otherwise, it will be converted to a list of one string." msgstr "" @@ -957,8 +957,8 @@ msgstr "'long string'" #: ../../distutils/setupscript.rst:642 msgid "" -"Multiple lines of plain text in reStructuredText format (see " -"http://docutils.sourceforge.net/)." +"Multiple lines of plain text in reStructuredText format (see http://docutils." +"sourceforge.net/)." msgstr "" #: ../../distutils/setupscript.rst:646 @@ -972,8 +972,8 @@ msgstr "Veja abaixo." #: ../../distutils/setupscript.rst:648 msgid "" "Encoding the version information is an art in itself. Python packages " -"generally adhere to the version format *major.minor[.patch][sub]*. The major" -" number is 0 for initial, experimental releases of software. It is " +"generally adhere to the version format *major.minor[.patch][sub]*. The major " +"number is 0 for initial, experimental releases of software. It is " "incremented for releases that represent major milestones in a package. The " "minor number is incremented when important new features are added to the " "package. The patch number increments when bug-fix releases are made. " @@ -1026,8 +1026,8 @@ msgid "" "simple error message before the script is terminated. The motivation for " "this behaviour is to not confuse administrators who don't know much about " "Python and are trying to install a package. If they get a big long " -"traceback from deep inside the guts of Distutils, they may think the package" -" or the Python installation is broken because they don't read all the way " +"traceback from deep inside the guts of Distutils, they may think the package " +"or the Python installation is broken because they don't read all the way " "down to the bottom and see that it's a permission problem." msgstr "" @@ -1037,6 +1037,6 @@ msgid "" "failure. For this purpose, the :envvar:`DISTUTILS_DEBUG` environment " "variable can be set to anything except an empty string, and distutils will " "now print detailed information about what it is doing, dump the full " -"traceback when an exception occurs, and print the whole command line when an" -" external program (like a C compiler) fails." +"traceback when an exception occurs, and print the whole command line when an " +"external program (like a C compiler) fails." msgstr "" diff --git a/distutils/sourcedist.po b/distutils/sourcedist.po index ba93edce6..e1b7b4ad0 100644 --- a/distutils/sourcedist.po +++ b/distutils/sourcedist.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,17 +31,16 @@ msgstr "Criando uma Distribuição Fonte" #: ../../distutils/sourcedist.rst:7 msgid "" -"As shown in section :ref:`distutils-simple-example`, you use the " -":command:`sdist` command to create a source distribution. In the simplest " -"case, ::" +"As shown in section :ref:`distutils-simple-example`, you use the :command:" +"`sdist` command to create a source distribution. In the simplest case, ::" msgstr "" #: ../../distutils/sourcedist.rst:12 msgid "" "(assuming you haven't specified any :command:`sdist` options in the setup " "script or config file), :command:`sdist` creates the archive of the default " -"format for the current platform. The default format is a gzip'ed tar file " -"(:file:`.tar.gz`) on Unix, and ZIP file on Windows." +"format for the current platform. The default format is a gzip'ed tar file (:" +"file:`.tar.gz`) on Unix, and ZIP file on Windows." msgstr "" #: ../../distutils/sourcedist.rst:17 @@ -49,8 +50,7 @@ msgid "" msgstr "" #: ../../distutils/sourcedist.rst:22 -msgid "" -"to create a gzipped tarball and a zip file. The available formats are:" +msgid "to create a gzipped tarball and a zip file. The available formats are:" msgstr "" #: ../../distutils/sourcedist.rst:25 @@ -67,7 +67,7 @@ msgstr "Notas" #: ../../distutils/sourcedist.rst:27 msgid "``zip``" -msgstr "" +msgstr "``zip``" #: ../../distutils/sourcedist.rst:27 msgid "zip file (:file:`.zip`)" @@ -79,7 +79,7 @@ msgstr "" #: ../../distutils/sourcedist.rst:29 msgid "``gztar``" -msgstr "" +msgstr "``gztar``" #: ../../distutils/sourcedist.rst:29 msgid "gzip'ed tar file (:file:`.tar.gz`)" @@ -91,7 +91,7 @@ msgstr "\\(2)" #: ../../distutils/sourcedist.rst:32 msgid "``bztar``" -msgstr "" +msgstr "``bztar``" #: ../../distutils/sourcedist.rst:32 msgid "bzip2'ed tar file (:file:`.tar.bz2`)" @@ -99,7 +99,7 @@ msgstr "" #: ../../distutils/sourcedist.rst:35 msgid "``xztar``" -msgstr "" +msgstr "``xztar``" #: ../../distutils/sourcedist.rst:35 msgid "xz'ed tar file (:file:`.tar.xz`)" @@ -107,7 +107,7 @@ msgstr "" #: ../../distutils/sourcedist.rst:38 msgid "``ztar``" -msgstr "" +msgstr "``ztar``" #: ../../distutils/sourcedist.rst:38 msgid "compressed tar file (:file:`.tar.Z`)" @@ -119,7 +119,7 @@ msgstr "\\(4)" #: ../../distutils/sourcedist.rst:41 msgid "``tar``" -msgstr "" +msgstr "``tar``" #: ../../distutils/sourcedist.rst:41 msgid "tar file (:file:`.tar`)" @@ -150,8 +150,7 @@ msgstr "" #: ../../distutils/sourcedist.rst:60 msgid "" "requires the :program:`compress` program. Notice that this format is now " -"pending for deprecation and will be removed in the future versions of " -"Python." +"pending for deprecation and will be removed in the future versions of Python." msgstr "" #: ../../distutils/sourcedist.rst:63 @@ -162,8 +161,7 @@ msgid "" msgstr "" #: ../../distutils/sourcedist.rst:67 -msgid "" -"For example, if you want all files of the archive to be owned by root::" +msgid "For example, if you want all files of the archive to be owned by root::" msgstr "" #: ../../distutils/sourcedist.rst:75 @@ -198,14 +196,14 @@ msgstr "" msgid "" "anything that looks like a test script: :file:`test/test\\*.py` (currently, " "the Distutils don't do anything with test scripts except include them in " -"source distributions, but in the future there will be a standard for testing" -" Python module distributions)" +"source distributions, but in the future there will be a standard for testing " +"Python module distributions)" msgstr "" #: ../../distutils/sourcedist.rst:98 msgid "" -"Any of the standard README files (:file:`README`, :file:`README.txt`, or " -":file:`README.rst`), :file:`setup.py` (or whatever you called your setup " +"Any of the standard README files (:file:`README`, :file:`README.txt`, or :" +"file:`README.rst`), :file:`setup.py` (or whatever you called your setup " "script), and :file:`setup.cfg`." msgstr "" @@ -226,9 +224,9 @@ msgid "" "Sometimes this is enough, but usually you will want to specify additional " "files to distribute. The typical way to do this is to write a *manifest " "template*, called :file:`MANIFEST.in` by default. The manifest template is " -"just a list of instructions for how to generate your manifest file, " -":file:`MANIFEST`, which is the exact list of files to include in your source" -" distribution. The :command:`sdist` command processes this template and " +"just a list of instructions for how to generate your manifest file, :file:" +"`MANIFEST`, which is the exact list of files to include in your source " +"distribution. The :command:`sdist` command processes this template and " "generates a manifest based on its instructions and what it finds in the " "filesystem." msgstr "" @@ -243,9 +241,9 @@ msgstr "" #: ../../distutils/sourcedist.rst:121 msgid "" -"An existing generated :file:`MANIFEST` will be regenerated without " -":command:`sdist` comparing its modification time to the one of " -":file:`MANIFEST.in` or :file:`setup.py`." +"An existing generated :file:`MANIFEST` will be regenerated without :command:" +"`sdist` comparing its modification time to the one of :file:`MANIFEST.in` " +"or :file:`setup.py`." msgstr "" #: ../../distutils/sourcedist.rst:126 @@ -256,31 +254,30 @@ msgstr "" #: ../../distutils/sourcedist.rst:130 msgid "" -":command:`sdist` will read a :file:`MANIFEST` file if no :file:`MANIFEST.in`" -" exists, like it used to do." +":command:`sdist` will read a :file:`MANIFEST` file if no :file:`MANIFEST.in` " +"exists, like it used to do." msgstr "" #: ../../distutils/sourcedist.rst:134 msgid "" -":file:`README.rst` is now included in the list of distutils standard " -"READMEs." +":file:`README.rst` is now included in the list of distutils standard READMEs." msgstr "" #: ../../distutils/sourcedist.rst:138 msgid "" -"The manifest template has one command per line, where each command specifies" -" a set of files to include or exclude from the source distribution. For an " +"The manifest template has one command per line, where each command specifies " +"a set of files to include or exclude from the source distribution. For an " "example, again we turn to the Distutils' own manifest template:" msgstr "" #: ../../distutils/sourcedist.rst:148 msgid "" "The meanings should be fairly clear: include all files in the distribution " -"root matching :file:`\\*.txt`, all files anywhere under the :file:`examples`" -" directory matching :file:`\\*.txt` or :file:`\\*.py`, and exclude all " +"root matching :file:`\\*.txt`, all files anywhere under the :file:`examples` " +"directory matching :file:`\\*.txt` or :file:`\\*.py`, and exclude all " "directories matching :file:`examples/sample?/build`. All of this is done " -"*after* the standard include set, so you can exclude files from the standard" -" set with explicit instructions in the manifest template. (Or, you can use " +"*after* the standard include set, so you can exclude files from the standard " +"set with explicit instructions in the manifest template. (Or, you can use " "the :option:`!--no-defaults` option to disable the standard set entirely.) " "There are several other commands available in the manifest template mini-" "language; see section :ref:`sdist-cmd`." @@ -291,8 +288,8 @@ msgid "" "The order of commands in the manifest template matters: initially, we have " "the list of default files as described above, and each command in the " "template adds to or removes from that list of files. Once we have fully " -"processed the manifest template, we remove files that should not be included" -" in the source distribution:" +"processed the manifest template, we remove files that should not be included " +"in the source distribution:" msgstr "" #: ../../distutils/sourcedist.rst:164 @@ -301,37 +298,36 @@ msgstr "" #: ../../distutils/sourcedist.rst:166 msgid "" -"all files in directories named :file:`RCS`, :file:`CVS`, :file:`.svn`, " -":file:`.hg`, :file:`.git`, :file:`.bzr` or :file:`_darcs`" +"all files in directories named :file:`RCS`, :file:`CVS`, :file:`.svn`, :file:" +"`.hg`, :file:`.git`, :file:`.bzr` or :file:`_darcs`" msgstr "" #: ../../distutils/sourcedist.rst:169 msgid "" -"Now we have our complete list of files, which is written to the manifest for" -" future reference, and then used to build the source distribution " -"archive(s)." +"Now we have our complete list of files, which is written to the manifest for " +"future reference, and then used to build the source distribution archive(s)." msgstr "" #: ../../distutils/sourcedist.rst:172 msgid "" "You can disable the default set of included files with the :option:`!--no-" -"defaults` option, and you can disable the standard exclude set with :option" -":`!--no-prune`." +"defaults` option, and you can disable the standard exclude set with :option:" +"`!--no-prune`." msgstr "" #: ../../distutils/sourcedist.rst:176 msgid "" -"Following the Distutils' own manifest template, let's trace how the " -":command:`sdist` command builds the list of files to include in the " -"Distutils source distribution:" +"Following the Distutils' own manifest template, let's trace how the :command:" +"`sdist` command builds the list of files to include in the Distutils source " +"distribution:" msgstr "" #: ../../distutils/sourcedist.rst:180 msgid "" -"include all Python source files in the :file:`distutils` and " -":file:`distutils/command` subdirectories (because packages corresponding to " -"those two directories were mentioned in the ``packages`` option in the setup" -" script---see section :ref:`setup-script`)" +"include all Python source files in the :file:`distutils` and :file:" +"`distutils/command` subdirectories (because packages corresponding to those " +"two directories were mentioned in the ``packages`` option in the setup " +"script---see section :ref:`setup-script`)" msgstr "" #: ../../distutils/sourcedist.rst:185 @@ -346,9 +342,8 @@ msgstr "" #: ../../distutils/sourcedist.rst:190 msgid "" -"include :file:`\\*.txt` in the distribution root (this will find " -":file:`README.txt` a second time, but such redundancies are weeded out " -"later)" +"include :file:`\\*.txt` in the distribution root (this will find :file:" +"`README.txt` a second time, but such redundancies are weeded out later)" msgstr "" #: ../../distutils/sourcedist.rst:193 @@ -359,16 +354,16 @@ msgstr "" #: ../../distutils/sourcedist.rst:196 msgid "" -"exclude all files in the sub-trees starting at directories matching " -":file:`examples/sample?/build`\\ ---this may exclude files included by the " +"exclude all files in the sub-trees starting at directories matching :file:" +"`examples/sample?/build`\\ ---this may exclude files included by the " "previous two steps, so it's important that the ``prune`` command in the " "manifest template comes after the ``recursive-include`` command" msgstr "" #: ../../distutils/sourcedist.rst:201 msgid "" -"exclude the entire :file:`build` tree, and any :file:`RCS`, :file:`CVS`, " -":file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` and :file:`_darcs` " +"exclude the entire :file:`build` tree, and any :file:`RCS`, :file:`CVS`, :" +"file:`.svn`, :file:`.hg`, :file:`.git`, :file:`.bzr` and :file:`_darcs` " "directories" msgstr "" @@ -392,9 +387,9 @@ msgstr "" #: ../../distutils/sourcedist.rst:218 msgid "" -"if the manifest file (:file:`MANIFEST` by default) exists and the first line" -" does not have a comment indicating it is generated from " -":file:`MANIFEST.in`, then it is used as is, unaltered" +"if the manifest file (:file:`MANIFEST` by default) exists and the first line " +"does not have a comment indicating it is generated from :file:`MANIFEST.in`, " +"then it is used as is, unaltered" msgstr "" #: ../../distutils/sourcedist.rst:222 @@ -405,20 +400,20 @@ msgstr "" #: ../../distutils/sourcedist.rst:225 msgid "" -"if neither :file:`MANIFEST` nor :file:`MANIFEST.in` exist, create a manifest" -" with just the default file set" +"if neither :file:`MANIFEST` nor :file:`MANIFEST.in` exist, create a manifest " +"with just the default file set" msgstr "" #: ../../distutils/sourcedist.rst:228 msgid "" -"use the list of files now in :file:`MANIFEST` (either just generated or read" -" in) to create the source distribution archive(s)" +"use the list of files now in :file:`MANIFEST` (either just generated or read " +"in) to create the source distribution archive(s)" msgstr "" #: ../../distutils/sourcedist.rst:231 msgid "" -"There are a couple of options that modify this behaviour. First, use the " -":option:`!--no-defaults` and :option:`!--no-prune` to disable the standard " +"There are a couple of options that modify this behaviour. First, use the :" +"option:`!--no-defaults` and :option:`!--no-prune` to disable the standard " "\"include\" and \"exclude\" sets." msgstr "" diff --git a/distutils/uploading.po b/distutils/uploading.po index a8d9a7a1d..a539264a0 100644 --- a/distutils/uploading.po +++ b/distutils/uploading.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-24 11:30+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,6 +29,8 @@ msgstr "Fazendo upload de pacotes para o índice de pacotes" #: ../../distutils/uploading.rst:7 msgid "" -"References to up to date PyPI documentation can be found at :ref" -":`publishing-python-packages`." +"References to up to date PyPI documentation can be found at :ref:`publishing-" +"python-packages`." msgstr "" +"As referências à documentação atualizada do PyPI podem ser encontradas em :" +"ref:`publishing-python-packages`." diff --git a/extending/building.po b/extending/building.po index 09876f0f6..afa5e99e2 100644 --- a/extending/building.po +++ b/extending/building.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,16 +28,16 @@ msgstr "Construindo Extensões C e C++" #: ../../extending/building.rst:9 msgid "" -"A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux," -" ``.pyd`` on Windows), which exports an *initialization function*." +"A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux, " +"``.pyd`` on Windows), which exports an *initialization function*." msgstr "" #: ../../extending/building.rst:12 msgid "" -"To be importable, the shared library must be available on " -":envvar:`PYTHONPATH`, and must be named after the module name, with an " -"appropriate extension. When using distutils, the correct filename is " -"generated automatically." +"To be importable, the shared library must be available on :envvar:" +"`PYTHONPATH`, and must be named after the module name, with an appropriate " +"extension. When using distutils, the correct filename is generated " +"automatically." msgstr "" #: ../../extending/building.rst:16 @@ -53,8 +54,8 @@ msgstr "" msgid "" "For modules with ASCII-only names, the function must be named " "``PyInit_``, with ```` replaced by the name of the " -"module. When using :ref:`multi-phase-initialization`, non-ASCII module names" -" are allowed. In this case, the initialization function name is " +"module. When using :ref:`multi-phase-initialization`, non-ASCII module names " +"are allowed. In this case, the initialization function name is " "``PyInitU_``, with ```` encoded using Python's " "*punycode* encoding with hyphens replaced by underscores. In Python::" msgstr "" @@ -62,10 +63,10 @@ msgstr "" #: ../../extending/building.rst:39 msgid "" "It is possible to export multiple modules from a single shared library by " -"defining multiple initialization functions. However, importing them requires" -" using symbolic links or a custom importer, because by default only the " -"function corresponding to the filename is found. See the *\"Multiple modules" -" in one library\"* section in :pep:`489` for details." +"defining multiple initialization functions. However, importing them requires " +"using symbolic links or a custom importer, because by default only the " +"function corresponding to the filename is found. See the *\"Multiple modules " +"in one library\"* section in :pep:`489` for details." msgstr "" #: ../../extending/building.rst:49 @@ -99,21 +100,21 @@ msgstr "" #: ../../extending/building.rst:82 msgid "" -"In the :file:`setup.py`, all execution is performed by calling the ``setup``" -" function. This takes a variable number of keyword arguments, of which the " +"In the :file:`setup.py`, all execution is performed by calling the ``setup`` " +"function. This takes a variable number of keyword arguments, of which the " "example above uses only a subset. Specifically, the example specifies meta-" -"information to build packages, and it specifies the contents of the package." -" Normally, a package will contain additional modules, like Python source " -"modules, documentation, subpackages, etc. Please refer to the distutils " -"documentation in :ref:`distutils-index` to learn more about the features of " -"distutils; this section explains building extension modules only." +"information to build packages, and it specifies the contents of the " +"package. Normally, a package will contain additional modules, like Python " +"source modules, documentation, subpackages, etc. Please refer to the " +"distutils documentation in :ref:`distutils-index` to learn more about the " +"features of distutils; this section explains building extension modules only." msgstr "" #: ../../extending/building.rst:91 msgid "" "It is common to pre-compute arguments to :func:`setup`, to better structure " -"the driver script. In the example above, the ``ext_modules`` argument to " -":func:`~distutils.core.setup` is a list of extension modules, each of which " +"the driver script. In the example above, the ``ext_modules`` argument to :" +"func:`~distutils.core.setup` is a list of extension modules, each of which " "is an instance of the :class:`~distutils.extension.Extension`. In the " "example, the instance defines an extension named ``demo`` which is build by " "compiling a single source file, :file:`demo.c`." @@ -129,10 +130,10 @@ msgstr "" #: ../../extending/building.rst:127 msgid "" "In this example, :func:`~distutils.core.setup` is called with additional " -"meta-information, which is recommended when distribution packages have to be" -" built. For the extension itself, it specifies preprocessor defines, include" -" directories, library directories, and libraries. Depending on the compiler," -" distutils passes this information in different ways to the compiler. For " +"meta-information, which is recommended when distribution packages have to be " +"built. For the extension itself, it specifies preprocessor defines, include " +"directories, library directories, and libraries. Depending on the compiler, " +"distutils passes this information in different ways to the compiler. For " "example, on Unix, this may result in the compilation commands ::" msgstr "" @@ -154,8 +155,7 @@ msgstr "" #: ../../extending/building.rst:150 msgid "" -"End-users will typically want to install the module, they do so by running " -"::" +"End-users will typically want to install the module, they do so by running ::" msgstr "" #: ../../extending/building.rst:154 @@ -166,13 +166,13 @@ msgstr "" #: ../../extending/building.rst:158 msgid "" "In some cases, additional files need to be included in a source " -"distribution; this is done through a :file:`MANIFEST.in` file; see " -":ref:`manifest` for details." +"distribution; this is done through a :file:`MANIFEST.in` file; see :ref:" +"`manifest` for details." msgstr "" #: ../../extending/building.rst:161 msgid "" -"If the source distribution has been build successfully, maintainers can also" -" create binary distributions. Depending on the platform, one of the " -"following commands can be used to do so. ::" +"If the source distribution has been build successfully, maintainers can also " +"create binary distributions. Depending on the platform, one of the following " +"commands can be used to do so. ::" msgstr "" diff --git a/extending/embedding.po b/extending/embedding.po index f594a64a9..b65e8398c 100644 --- a/extending/embedding.po +++ b/extending/embedding.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,23 +29,23 @@ msgstr "Incorporando o Python numa Outra Aplicação" #: ../../extending/embedding.rst:10 msgid "" -"The previous chapters discussed how to extend Python, that is, how to extend" -" the functionality of Python by attaching a library of C functions to it. " -"It is also possible to do it the other way around: enrich your C/C++ " +"The previous chapters discussed how to extend Python, that is, how to extend " +"the functionality of Python by attaching a library of C functions to it. It " +"is also possible to do it the other way around: enrich your C/C++ " "application by embedding Python in it. Embedding provides your application " "with the ability to implement some of the functionality of your application " "in Python rather than C or C++. This can be used for many purposes; one " "example would be to allow users to tailor the application to their needs by " -"writing some scripts in Python. You can also use it yourself if some of the" -" functionality can be written in Python more easily." +"writing some scripts in Python. You can also use it yourself if some of the " +"functionality can be written in Python more easily." msgstr "" #: ../../extending/embedding.rst:20 msgid "" "Embedding Python is similar to extending it, but not quite. The difference " -"is that when you extend Python, the main program of the application is still" -" the Python interpreter, while if you embed Python, the main program may " -"have nothing to do with Python --- instead, some parts of the application " +"is that when you extend Python, the main program of the application is still " +"the Python interpreter, while if you embed Python, the main program may have " +"nothing to do with Python --- instead, some parts of the application " "occasionally call the Python interpreter to run some Python code." msgstr "" @@ -51,10 +53,10 @@ msgstr "" msgid "" "So if you are embedding Python, you are providing your own main program. " "One of the things this main program has to do is initialize the Python " -"interpreter. At the very least, you have to call the function " -":c:func:`Py_Initialize`. There are optional calls to pass command line " -"arguments to Python. Then later you can call the interpreter from any part " -"of the application." +"interpreter. At the very least, you have to call the function :c:func:" +"`Py_Initialize`. There are optional calls to pass command line arguments to " +"Python. Then later you can call the interpreter from any part of the " +"application." msgstr "" #: ../../extending/embedding.rst:32 @@ -69,7 +71,7 @@ msgstr "" #: ../../extending/embedding.rst:42 msgid ":ref:`c-api-index`" -msgstr "" +msgstr ":ref:`c-api-index`" #: ../../extending/embedding.rst:42 msgid "" @@ -91,17 +93,17 @@ msgstr "" #: ../../extending/embedding.rst:78 msgid "" -"The :c:func:`Py_SetProgramName` function should be called before " -":c:func:`Py_Initialize` to inform the interpreter about paths to Python run-" -"time libraries. Next, the Python interpreter is initialized with " -":c:func:`Py_Initialize`, followed by the execution of a hard-coded Python " -"script that prints the date and time. Afterwards, the " -":c:func:`Py_FinalizeEx` call shuts the interpreter down, followed by the end" -" of the program. In a real program, you may want to get the Python script " -"from another source, perhaps a text-editor routine, a file, or a database. " -"Getting the Python code from a file can better be done by using the " -":c:func:`PyRun_SimpleFile` function, which saves you the trouble of " -"allocating memory space and loading the file contents." +"The :c:func:`Py_SetProgramName` function should be called before :c:func:" +"`Py_Initialize` to inform the interpreter about paths to Python run-time " +"libraries. Next, the Python interpreter is initialized with :c:func:" +"`Py_Initialize`, followed by the execution of a hard-coded Python script " +"that prints the date and time. Afterwards, the :c:func:`Py_FinalizeEx` call " +"shuts the interpreter down, followed by the end of the program. In a real " +"program, you may want to get the Python script from another source, perhaps " +"a text-editor routine, a file, or a database. Getting the Python code from " +"a file can better be done by using the :c:func:`PyRun_SimpleFile` function, " +"which saves you the trouble of allocating memory space and loading the file " +"contents." msgstr "" #: ../../extending/embedding.rst:93 @@ -121,8 +123,8 @@ msgstr "" msgid "" "It should be noted that extending Python and embedding Python is quite the " "same activity, despite the different intent. Most topics discussed in the " -"previous chapters are still valid. To show this, consider what the extension" -" code from Python to C really does:" +"previous chapters are still valid. To show this, consider what the extension " +"code from Python to C really does:" msgstr "" #: ../../extending/embedding.rst:105 @@ -166,8 +168,8 @@ msgstr "" #: ../../extending/embedding.rst:125 msgid "" "This chapter will not discuss how to convert data from Python to C and vice " -"versa. Also, proper use of references and dealing with errors is assumed to" -" be understood. Since these aspects do not differ from extending the " +"versa. Also, proper use of references and dealing with errors is assumed to " +"be understood. Since these aspects do not differ from extending the " "interpreter, you can refer to earlier chapters for the required information." msgstr "" @@ -177,10 +179,10 @@ msgstr "" #: ../../extending/embedding.rst:136 msgid "" -"The first program aims to execute a function in a Python script. Like in the" -" section about the very high level interface, the Python interpreter does " -"not directly interact with the application (but that will change in the next" -" section)." +"The first program aims to execute a function in a Python script. Like in the " +"section about the very high level interface, the Python interpreter does not " +"directly interact with the application (but that will change in the next " +"section)." msgstr "" #: ../../extending/embedding.rst:141 @@ -209,19 +211,19 @@ msgstr "" #: ../../extending/embedding.rst:178 msgid "" -"After initializing the interpreter, the script is loaded using " -":c:func:`PyImport_Import`. This routine needs a Python string as its " -"argument, which is constructed using the :c:func:`PyUnicode_FromString` data" -" conversion routine. ::" +"After initializing the interpreter, the script is loaded using :c:func:" +"`PyImport_Import`. This routine needs a Python string as its argument, " +"which is constructed using the :c:func:`PyUnicode_FromString` data " +"conversion routine. ::" msgstr "" #: ../../extending/embedding.rst:191 msgid "" -"Once the script is loaded, the name we're looking for is retrieved using " -":c:func:`PyObject_GetAttrString`. If the name exists, and the object " -"returned is callable, you can safely assume that it is a function. The " -"program then proceeds by constructing a tuple of arguments as normal. The " -"call to the Python function is then made with::" +"Once the script is loaded, the name we're looking for is retrieved using :c:" +"func:`PyObject_GetAttrString`. If the name exists, and the object returned " +"is callable, you can safely assume that it is a function. The program then " +"proceeds by constructing a tuple of arguments as normal. The call to the " +"Python function is then made with::" msgstr "" #: ../../extending/embedding.rst:199 @@ -255,9 +257,9 @@ msgstr "" #: ../../extending/embedding.rst:252 msgid "" -"These two lines initialize the ``numargs`` variable, and make the " -":func:`emb.numargs` function accessible to the embedded Python interpreter. " -"With these extensions, the Python script can do things like" +"These two lines initialize the ``numargs`` variable, and make the :func:`emb." +"numargs` function accessible to the embedded Python interpreter. With these " +"extensions, the Python script can do things like" msgstr "" #: ../../extending/embedding.rst:261 @@ -275,8 +277,8 @@ msgid "" "It is also possible to embed Python in a C++ program; precisely how this is " "done will depend on the details of the C++ system used; in general you will " "need to write the main program in C++, and use the C++ compiler to compile " -"and link your program. There is no need to recompile Python itself using " -"C++." +"and link your program. There is no need to recompile Python itself using C+" +"+." msgstr "" #: ../../extending/embedding.rst:282 @@ -293,11 +295,11 @@ msgstr "" #: ../../extending/embedding.rst:290 msgid "" -"To find out the required compiler and linker flags, you can execute the " -":file:`python{X.Y}-config` script which is generated as part of the " +"To find out the required compiler and linker flags, you can execute the :" +"file:`python{X.Y}-config` script which is generated as part of the " "installation process (a :file:`python3-config` script may also be " -"available). This script has several options, of which the following will be" -" directly useful to you:" +"available). This script has several options, of which the following will be " +"directly useful to you:" msgstr "" #: ../../extending/embedding.rst:296 @@ -322,12 +324,12 @@ msgstr "" #: ../../extending/embedding.rst:318 msgid "" -"If this procedure doesn't work for you (it is not guaranteed to work for all" -" Unix-like platforms; however, we welcome :ref:`bug reports `) you will have to read your system's documentation about dynamic " -"linking and/or examine Python's :file:`Makefile` (use " -":func:`sysconfig.get_makefile_filename` to find its location) and " -"compilation options. In this case, the :mod:`sysconfig` module is a useful " -"tool to programmatically extract the configuration values that you will want" -" to combine together. For example:" +"linking and/or examine Python's :file:`Makefile` (use :func:`sysconfig." +"get_makefile_filename` to find its location) and compilation options. In " +"this case, the :mod:`sysconfig` module is a useful tool to programmatically " +"extract the configuration values that you will want to combine together. " +"For example:" msgstr "" diff --git a/extending/extending.po b/extending/extending.po index 5a8723151..2ad067847 100644 --- a/extending/extending.po +++ b/extending/extending.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 # felipe caridade , 2019 # Mariana Costa , 2019 -# +# Julia Rizza , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Mariana Costa , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Julia Rizza , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "Extendendo Python com C ou C++" #: ../../extending/extending.rst:10 msgid "" "It is quite easy to add new built-in modules to Python, if you know how to " -"program in C. Such :dfn:`extension modules` can do two things that can't be" -" done directly in Python: they can implement new built-in object types, and " +"program in C. Such :dfn:`extension modules` can do two things that can't be " +"done directly in Python: they can implement new built-in object types, and " "they can call C library functions and system calls." msgstr "" "É muito fácil adicionar novos módulos internos ao Python, se você souber " @@ -45,9 +47,9 @@ msgstr "" #: ../../extending/extending.rst:15 msgid "" "To support extensions, the Python API (Application Programmers Interface) " -"defines a set of functions, macros and variables that provide access to most" -" aspects of the Python run-time system. The Python API is incorporated in a" -" C source file by including the header ``\"Python.h\"``." +"defines a set of functions, macros and variables that provide access to most " +"aspects of the Python run-time system. The Python API is incorporated in a " +"C source file by including the header ``\"Python.h\"``." msgstr "" #: ../../extending/extending.rst:20 @@ -77,9 +79,9 @@ msgstr "Um Exemplo Simples" #: ../../extending/extending.rst:42 msgid "" -"Let's create an extension module called ``spam`` (the favorite food of Monty" -" Python fans...) and let's say we want to create a Python interface to the C" -" library function :c:func:`system` [#]_. This function takes a null-" +"Let's create an extension module called ``spam`` (the favorite food of Monty " +"Python fans...) and let's say we want to create a Python interface to the C " +"library function :c:func:`system` [#]_. This function takes a null-" "terminated character string as argument and returns an integer. We want " "this function to be callable from Python as follows:" msgstr "" @@ -87,9 +89,9 @@ msgstr "" #: ../../extending/extending.rst:53 msgid "" "Begin by creating a file :file:`spammodule.c`. (Historically, if a module " -"is called ``spam``, the C file containing its implementation is called " -":file:`spammodule.c`; if the module name is very long, like ``spammify``, " -"the module name can be just :file:`spammify.c`.)" +"is called ``spam``, the C file containing its implementation is called :file:" +"`spammodule.c`; if the module name is very long, like ``spammify``, the " +"module name can be just :file:`spammify.c`.)" msgstr "" #: ../../extending/extending.rst:58 @@ -105,8 +107,8 @@ msgstr "" #: ../../extending/extending.rst:68 msgid "" "Since Python may define some pre-processor definitions which affect the " -"standard headers on some systems, you *must* include :file:`Python.h` before" -" any standard headers are included." +"standard headers on some systems, you *must* include :file:`Python.h` before " +"any standard headers are included." msgstr "" #: ../../extending/extending.rst:72 @@ -117,13 +119,13 @@ msgstr "" #: ../../extending/extending.rst:75 msgid "" -"All user-visible symbols defined by :file:`Python.h` have a prefix of ``Py``" -" or ``PY``, except those defined in standard header files. For convenience, " -"and since they are used extensively by the Python interpreter, " -"``\"Python.h\"`` includes a few standard header files: ````, " -"````, ````, and ````. If the latter header " -"file does not exist on your system, it declares the functions " -":c:func:`malloc`, :c:func:`free` and :c:func:`realloc` directly." +"All user-visible symbols defined by :file:`Python.h` have a prefix of ``Py`` " +"or ``PY``, except those defined in standard header files. For convenience, " +"and since they are used extensively by the Python interpreter, ``\"Python.h" +"\"`` includes a few standard header files: ````, ````, " +"````, and ````. If the latter header file does not exist " +"on your system, it declares the functions :c:func:`malloc`, :c:func:`free` " +"and :c:func:`realloc` directly." msgstr "" #: ../../extending/extending.rst:83 @@ -135,10 +137,10 @@ msgstr "" #: ../../extending/extending.rst:99 msgid "" -"There is a straightforward translation from the argument list in Python (for" -" example, the single expression ``\"ls -l\"``) to the arguments passed to " -"the C function. The C function always has two arguments, conventionally " -"named *self* and *args*." +"There is a straightforward translation from the argument list in Python (for " +"example, the single expression ``\"ls -l\"``) to the arguments passed to the " +"C function. The C function always has two arguments, conventionally named " +"*self* and *args*." msgstr "" #: ../../extending/extending.rst:104 @@ -177,15 +179,15 @@ msgstr "" msgid "" "An important convention throughout the Python interpreter is the following: " "when a function fails, it should set an exception condition and return an " -"error value (usually a ``NULL`` pointer). Exceptions are stored in a static" -" global variable inside the interpreter; if this variable is ``NULL`` no " +"error value (usually a ``NULL`` pointer). Exceptions are stored in a static " +"global variable inside the interpreter; if this variable is ``NULL`` no " "exception has occurred. A second global variable stores the \"associated " -"value\" of the exception (the second argument to :keyword:`raise`). A third" -" variable contains the stack traceback in case the error originated in " -"Python code. These three variables are the C equivalents of the result in " -"Python of :meth:`sys.exc_info` (see the section on module :mod:`sys` in the " -"Python Library Reference). It is important to know about them to understand" -" how errors are passed around." +"value\" of the exception (the second argument to :keyword:`raise`). A third " +"variable contains the stack traceback in case the error originated in Python " +"code. These three variables are the C equivalents of the result in Python " +"of :meth:`sys.exc_info` (see the section on module :mod:`sys` in the Python " +"Library Reference). It is important to know about them to understand how " +"errors are passed around." msgstr "" #: ../../extending/extending.rst:139 @@ -205,43 +207,43 @@ msgstr "" #: ../../extending/extending.rst:147 msgid "" -"Another useful function is :c:func:`PyErr_SetFromErrno`, which only takes an" -" exception argument and constructs the associated value by inspection of the" -" global variable :c:data:`errno`. The most general function is " -":c:func:`PyErr_SetObject`, which takes two object arguments, the exception " -"and its associated value. You don't need to :c:func:`Py_INCREF` the objects" -" passed to any of these functions." +"Another useful function is :c:func:`PyErr_SetFromErrno`, which only takes an " +"exception argument and constructs the associated value by inspection of the " +"global variable :c:data:`errno`. The most general function is :c:func:" +"`PyErr_SetObject`, which takes two object arguments, the exception and its " +"associated value. You don't need to :c:func:`Py_INCREF` the objects passed " +"to any of these functions." msgstr "" #: ../../extending/extending.rst:154 msgid "" -"You can test non-destructively whether an exception has been set with " -":c:func:`PyErr_Occurred`. This returns the current exception object, or " -"``NULL`` if no exception has occurred. You normally don't need to call " -":c:func:`PyErr_Occurred` to see whether an error occurred in a function " -"call, since you should be able to tell from the return value." +"You can test non-destructively whether an exception has been set with :c:" +"func:`PyErr_Occurred`. This returns the current exception object, or " +"``NULL`` if no exception has occurred. You normally don't need to call :c:" +"func:`PyErr_Occurred` to see whether an error occurred in a function call, " +"since you should be able to tell from the return value." msgstr "" #: ../../extending/extending.rst:160 msgid "" "When a function *f* that calls another function *g* detects that the latter " -"fails, *f* should itself return an error value (usually ``NULL`` or ``-1``)." -" It should *not* call one of the :c:func:`PyErr_\\*` functions --- one has " -"already been called by *g*. *f*'s caller is then supposed to also return an " -"error indication to *its* caller, again *without* calling " -":c:func:`PyErr_\\*`, and so on --- the most detailed cause of the error was " -"already reported by the function that first detected it. Once the error " -"reaches the Python interpreter's main loop, this aborts the currently " -"executing Python code and tries to find an exception handler specified by " -"the Python programmer." +"fails, *f* should itself return an error value (usually ``NULL`` or " +"``-1``). It should *not* call one of the :c:func:`PyErr_\\*` functions --- " +"one has already been called by *g*. *f*'s caller is then supposed to also " +"return an error indication to *its* caller, again *without* calling :c:func:" +"`PyErr_\\*`, and so on --- the most detailed cause of the error was already " +"reported by the function that first detected it. Once the error reaches the " +"Python interpreter's main loop, this aborts the currently executing Python " +"code and tries to find an exception handler specified by the Python " +"programmer." msgstr "" #: ../../extending/extending.rst:170 msgid "" -"(There are situations where a module can actually give a more detailed error" -" message by calling another :c:func:`PyErr_\\*` function, and in such cases " -"it is fine to do so. As a general rule, however, this is not necessary, and" -" can cause information about the cause of the error to be lost: most " +"(There are situations where a module can actually give a more detailed error " +"message by calling another :c:func:`PyErr_\\*` function, and in such cases " +"it is fine to do so. As a general rule, however, this is not necessary, and " +"can cause information about the cause of the error to be lost: most " "operations can fail for a variety of reasons.)" msgstr "" @@ -251,18 +253,16 @@ msgid "" "condition must be cleared explicitly by calling :c:func:`PyErr_Clear`. The " "only time C code should call :c:func:`PyErr_Clear` is if it doesn't want to " "pass the error on to the interpreter but wants to handle it completely by " -"itself (possibly by trying something else, or pretending nothing went " -"wrong)." +"itself (possibly by trying something else, or pretending nothing went wrong)." msgstr "" #: ../../extending/extending.rst:182 msgid "" -"Every failing :c:func:`malloc` call must be turned into an exception --- the" -" direct caller of :c:func:`malloc` (or :c:func:`realloc`) must call " -":c:func:`PyErr_NoMemory` and return a failure indicator itself. All the " -"object-creating functions (for example, :c:func:`PyLong_FromLong`) already " -"do this, so this note is only relevant to those who call :c:func:`malloc` " -"directly." +"Every failing :c:func:`malloc` call must be turned into an exception --- the " +"direct caller of :c:func:`malloc` (or :c:func:`realloc`) must call :c:func:" +"`PyErr_NoMemory` and return a failure indicator itself. All the object-" +"creating functions (for example, :c:func:`PyLong_FromLong`) already do this, " +"so this note is only relevant to those who call :c:func:`malloc` directly." msgstr "" #: ../../extending/extending.rst:188 @@ -275,8 +275,8 @@ msgstr "" #: ../../extending/extending.rst:192 msgid "" -"Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or " -":c:func:`Py_DECREF` calls for objects you have already created) when you " +"Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or :" +"c:func:`Py_DECREF` calls for objects you have already created) when you " "return an error indicator!" msgstr "" @@ -284,27 +284,25 @@ msgstr "" msgid "" "The choice of which exception to raise is entirely yours. There are " "predeclared C objects corresponding to all built-in Python exceptions, such " -"as :c:data:`PyExc_ZeroDivisionError`, which you can use directly. Of course," -" you should choose exceptions wisely --- don't use :c:data:`PyExc_TypeError`" -" to mean that a file couldn't be opened (that should probably be " -":c:data:`PyExc_IOError`). If something's wrong with the argument list, the " -":c:func:`PyArg_ParseTuple` function usually raises " -":c:data:`PyExc_TypeError`. If you have an argument whose value must be in a" -" particular range or must satisfy other conditions, " -":c:data:`PyExc_ValueError` is appropriate." +"as :c:data:`PyExc_ZeroDivisionError`, which you can use directly. Of course, " +"you should choose exceptions wisely --- don't use :c:data:`PyExc_TypeError` " +"to mean that a file couldn't be opened (that should probably be :c:data:" +"`PyExc_IOError`). If something's wrong with the argument list, the :c:func:" +"`PyArg_ParseTuple` function usually raises :c:data:`PyExc_TypeError`. If " +"you have an argument whose value must be in a particular range or must " +"satisfy other conditions, :c:data:`PyExc_ValueError` is appropriate." msgstr "" #: ../../extending/extending.rst:206 msgid "" -"You can also define a new exception that is unique to your module. For this," -" you usually declare a static object variable at the beginning of your " -"file::" +"You can also define a new exception that is unique to your module. For this, " +"you usually declare a static object variable at the beginning of your file::" msgstr "" #: ../../extending/extending.rst:211 msgid "" -"and initialize it in your module's initialization function " -"(:c:func:`PyInit_spam`) with an exception object::" +"and initialize it in your module's initialization function (:c:func:" +"`PyInit_spam`) with an exception object::" msgstr "" #: ../../extending/extending.rst:235 @@ -319,11 +317,11 @@ msgstr "" msgid "" "Note also that the :c:data:`SpamError` variable retains a reference to the " "newly created exception class; this is intentional! Since the exception " -"could be removed from the module by external code, an owned reference to the" -" class is needed to ensure that it will not be discarded, causing " -":c:data:`SpamError` to become a dangling pointer. Should it become a " -"dangling pointer, C code which raises the exception could cause a core dump " -"or other unintended side effects." +"could be removed from the module by external code, an owned reference to the " +"class is needed to ensure that it will not be discarded, causing :c:data:" +"`SpamError` to become a dangling pointer. Should it become a dangling " +"pointer, C code which raises the exception could cause a core dump or other " +"unintended side effects." msgstr "" #: ../../extending/extending.rst:247 @@ -334,8 +332,8 @@ msgstr "" #: ../../extending/extending.rst:250 msgid "" -"The :exc:`spam.error` exception can be raised in your extension module using" -" a call to :c:func:`PyErr_SetString` as shown below::" +"The :exc:`spam.error` exception can be raised in your extension module using " +"a call to :c:func:`PyErr_SetString` as shown below::" msgstr "" #: ../../extending/extending.rst:273 @@ -367,9 +365,8 @@ msgstr "" #: ../../extending/extending.rst:294 msgid "" -"Our :func:`spam.system` function must return the value of :c:data:`sts` as a" -" Python object. This is done using the function :c:func:`PyLong_FromLong`. " -"::" +"Our :func:`spam.system` function must return the value of :c:data:`sts` as a " +"Python object. This is done using the function :c:func:`PyLong_FromLong`. ::" msgstr "" #: ../../extending/extending.rst:299 @@ -382,8 +379,8 @@ msgstr "" msgid "" "If you have a C function that returns no useful argument (a function " "returning :c:type:`void`), the corresponding Python function must return " -"``None``. You need this idiom to do so (which is implemented by the " -":c:macro:`Py_RETURN_NONE` macro)::" +"``None``. You need this idiom to do so (which is implemented by the :c:" +"macro:`Py_RETURN_NONE` macro)::" msgstr "" #: ../../extending/extending.rst:310 @@ -399,15 +396,15 @@ msgstr "" #: ../../extending/extending.rst:320 msgid "" -"I promised to show how :c:func:`spam_system` is called from Python programs." -" First, we need to list its name and address in a \"method table\"::" +"I promised to show how :c:func:`spam_system` is called from Python programs. " +"First, we need to list its name and address in a \"method table\"::" msgstr "" #: ../../extending/extending.rst:331 msgid "" "Note the third entry (``METH_VARARGS``). This is a flag telling the " -"interpreter the calling convention to be used for the C function. It should" -" normally always be ``METH_VARARGS`` or ``METH_VARARGS | METH_KEYWORDS``; a " +"interpreter the calling convention to be used for the C function. It should " +"normally always be ``METH_VARARGS`` or ``METH_VARARGS | METH_KEYWORDS``; a " "value of ``0`` means that an obsolete variant of :c:func:`PyArg_ParseTuple` " "is used." msgstr "" @@ -415,17 +412,16 @@ msgstr "" #: ../../extending/extending.rst:336 msgid "" "When using only ``METH_VARARGS``, the function should expect the Python-" -"level parameters to be passed in as a tuple acceptable for parsing via " -":c:func:`PyArg_ParseTuple`; more information on this function is provided " -"below." +"level parameters to be passed in as a tuple acceptable for parsing via :c:" +"func:`PyArg_ParseTuple`; more information on this function is provided below." msgstr "" #: ../../extending/extending.rst:340 msgid "" "The :const:`METH_KEYWORDS` bit may be set in the third field if keyword " "arguments should be passed to the function. In this case, the C function " -"should accept a third ``PyObject *`` parameter which will be a dictionary of" -" keywords. Use :c:func:`PyArg_ParseTupleAndKeywords` to parse the arguments " +"should accept a third ``PyObject *`` parameter which will be a dictionary of " +"keywords. Use :c:func:`PyArg_ParseTupleAndKeywords` to parse the arguments " "to such a function." msgstr "" @@ -437,9 +433,9 @@ msgstr "" #: ../../extending/extending.rst:357 msgid "" "This structure, in turn, must be passed to the interpreter in the module's " -"initialization function. The initialization function must be named " -":c:func:`PyInit_name`, where *name* is the name of the module, and should be" -" the only non-\\ ``static`` item defined in the module file::" +"initialization function. The initialization function must be named :c:func:" +"`PyInit_name`, where *name* is the name of the module, and should be the " +"only non-\\ ``static`` item defined in the module file::" msgstr "" #: ../../extending/extending.rst:368 @@ -451,25 +447,24 @@ msgstr "" #: ../../extending/extending.rst:372 msgid "" -"When the Python program imports module :mod:`spam` for the first time, " -":c:func:`PyInit_spam` is called. (See below for comments about embedding " +"When the Python program imports module :mod:`spam` for the first time, :c:" +"func:`PyInit_spam` is called. (See below for comments about embedding " "Python.) It calls :c:func:`PyModule_Create`, which returns a module object, " "and inserts built-in function objects into the newly created module based " "upon the table (an array of :c:type:`PyMethodDef` structures) found in the " -"module definition. :c:func:`PyModule_Create` returns a pointer to the module" -" object that it creates. It may abort with a fatal error for certain " -"errors, or return ``NULL`` if the module could not be initialized " -"satisfactorily. The init function must return the module object to its " -"caller, so that it then gets inserted into ``sys.modules``." +"module definition. :c:func:`PyModule_Create` returns a pointer to the module " +"object that it creates. It may abort with a fatal error for certain errors, " +"or return ``NULL`` if the module could not be initialized satisfactorily. " +"The init function must return the module object to its caller, so that it " +"then gets inserted into ``sys.modules``." msgstr "" #: ../../extending/extending.rst:383 msgid "" "When embedding Python, the :c:func:`PyInit_spam` function is not called " "automatically unless there's an entry in the :c:data:`PyImport_Inittab` " -"table. To add the module to the initialization table, use " -":c:func:`PyImport_AppendInittab`, optionally followed by an import of the " -"module::" +"table. To add the module to the initialization table, use :c:func:" +"`PyImport_AppendInittab`, optionally followed by an import of the module::" msgstr "" #: ../../extending/extending.rst:419 @@ -492,8 +487,8 @@ msgstr "" msgid "" "Unlike our ``spam`` example, ``xxmodule`` uses *multi-phase initialization* " "(new in Python 3.5), where a PyModuleDef structure is returned from " -"``PyInit_spam``, and creation of the module is left to the import machinery." -" For details on multi-phase initialization, see :PEP:`489`." +"``PyInit_spam``, and creation of the module is left to the import machinery. " +"For details on multi-phase initialization, see :PEP:`489`." msgstr "" #: ../../extending/extending.rst:440 @@ -505,10 +500,9 @@ msgid "" "There are two more things to do before you can use your new extension: " "compiling and linking it with the Python system. If you use dynamic " "loading, the details may depend on the style of dynamic loading your system " -"uses; see the chapters about building extension modules (chapter " -":ref:`building`) and additional information that pertains only to building " -"on Windows (chapter :ref:`building-on-windows`) for more information about " -"this." +"uses; see the chapters about building extension modules (chapter :ref:" +"`building`) and additional information that pertains only to building on " +"Windows (chapter :ref:`building-on-windows`) for more information about this." msgstr "" #: ../../extending/extending.rst:449 @@ -526,8 +520,8 @@ msgid "" "and rebuild the interpreter by running :program:`make` in the toplevel " "directory. You can also run :program:`make` in the :file:`Modules/` " "subdirectory, but then you must first rebuild :file:`Makefile` there by " -"running ':program:`make` Makefile'. (This is necessary each time you change" -" the :file:`Setup` file.)" +"running ':program:`make` Makefile'. (This is necessary each time you change " +"the :file:`Setup` file.)" msgstr "" #: ../../extending/extending.rst:466 @@ -542,20 +536,20 @@ msgstr "" #: ../../extending/extending.rst:479 msgid "" -"So far we have concentrated on making C functions callable from Python. The" -" reverse is also useful: calling Python functions from C. This is especially" -" the case for libraries that support so-called \"callback\" functions. If a" -" C interface makes use of callbacks, the equivalent Python often needs to " +"So far we have concentrated on making C functions callable from Python. The " +"reverse is also useful: calling Python functions from C. This is especially " +"the case for libraries that support so-called \"callback\" functions. If a " +"C interface makes use of callbacks, the equivalent Python often needs to " "provide a callback mechanism to the Python programmer; the implementation " -"will require calling the Python callback functions from a C callback. Other" -" uses are also imaginable." +"will require calling the Python callback functions from a C callback. Other " +"uses are also imaginable." msgstr "" #: ../../extending/extending.rst:487 msgid "" "Fortunately, the Python interpreter is easily called recursively, and there " -"is a standard interface to call a Python function. (I won't dwell on how to" -" call the Python parser with a particular string as input --- if you're " +"is a standard interface to call a Python function. (I won't dwell on how to " +"call the Python parser with a particular string as input --- if you're " "interested, have a look at the implementation of the :option:`-c` command " "line option in :file:`Modules/main.c` from the Python source code.)" msgstr "" @@ -563,8 +557,8 @@ msgstr "" #: ../../extending/extending.rst:493 msgid "" "Calling a Python function is easy. First, the Python program must somehow " -"pass you the Python function object. You should provide a function (or some" -" other interface) to do this. When this function is called, save a pointer " +"pass you the Python function object. You should provide a function (or some " +"other interface) to do this. When this function is called, save a pointer " "to the Python function object (be careful to :c:func:`Py_INCREF` it!) in a " "global variable --- or wherever you see fit. For example, the following " "function might be part of a module definition::" @@ -572,58 +566,57 @@ msgstr "" #: ../../extending/extending.rst:523 msgid "" -"This function must be registered with the interpreter using the " -":const:`METH_VARARGS` flag; this is described in section :ref:`methodtable`." -" The :c:func:`PyArg_ParseTuple` function and its arguments are documented " -"in section :ref:`parsetuple`." +"This function must be registered with the interpreter using the :const:" +"`METH_VARARGS` flag; this is described in section :ref:`methodtable`. The :" +"c:func:`PyArg_ParseTuple` function and its arguments are documented in " +"section :ref:`parsetuple`." msgstr "" #: ../../extending/extending.rst:528 msgid "" -"The macros :c:func:`Py_XINCREF` and :c:func:`Py_XDECREF` increment/decrement" -" the reference count of an object and are safe in the presence of ``NULL`` " -"pointers (but note that *temp* will not be ``NULL`` in this context). More" -" info on them in section :ref:`refcounts`." +"The macros :c:func:`Py_XINCREF` and :c:func:`Py_XDECREF` increment/decrement " +"the reference count of an object and are safe in the presence of ``NULL`` " +"pointers (but note that *temp* will not be ``NULL`` in this context). More " +"info on them in section :ref:`refcounts`." msgstr "" #: ../../extending/extending.rst:535 msgid "" -"Later, when it is time to call the function, you call the C function " -":c:func:`PyObject_CallObject`. This function has two arguments, both " -"pointers to arbitrary Python objects: the Python function, and the argument " -"list. The argument list must always be a tuple object, whose length is the " -"number of arguments. To call the Python function with no arguments, pass in" -" ``NULL``, or an empty tuple; to call it with one argument, pass a singleton" -" tuple. :c:func:`Py_BuildValue` returns a tuple when its format string " -"consists of zero or more format codes between parentheses. For example::" +"Later, when it is time to call the function, you call the C function :c:func:" +"`PyObject_CallObject`. This function has two arguments, both pointers to " +"arbitrary Python objects: the Python function, and the argument list. The " +"argument list must always be a tuple object, whose length is the number of " +"arguments. To call the Python function with no arguments, pass in ``NULL``, " +"or an empty tuple; to call it with one argument, pass a singleton tuple. :c:" +"func:`Py_BuildValue` returns a tuple when its format string consists of zero " +"or more format codes between parentheses. For example::" msgstr "" #: ../../extending/extending.rst:555 msgid "" ":c:func:`PyObject_CallObject` returns a Python object pointer: this is the " "return value of the Python function. :c:func:`PyObject_CallObject` is " -"\"reference-count-neutral\" with respect to its arguments. In the example a" -" new tuple was created to serve as the argument list, which is " -":c:func:`Py_DECREF`\\ -ed immediately after the " -":c:func:`PyObject_CallObject` call." +"\"reference-count-neutral\" with respect to its arguments. In the example a " +"new tuple was created to serve as the argument list, which is :c:func:" +"`Py_DECREF`\\ -ed immediately after the :c:func:`PyObject_CallObject` call." msgstr "" #: ../../extending/extending.rst:562 msgid "" -"The return value of :c:func:`PyObject_CallObject` is \"new\": either it is a" -" brand new object, or it is an existing object whose reference count has " -"been incremented. So, unless you want to save it in a global variable, you " -"should somehow :c:func:`Py_DECREF` the result, even (especially!) if you are" -" not interested in its value." +"The return value of :c:func:`PyObject_CallObject` is \"new\": either it is a " +"brand new object, or it is an existing object whose reference count has been " +"incremented. So, unless you want to save it in a global variable, you " +"should somehow :c:func:`Py_DECREF` the result, even (especially!) if you are " +"not interested in its value." msgstr "" #: ../../extending/extending.rst:568 msgid "" "Before you do this, however, it is important to check that the return value " "isn't ``NULL``. If it is, the Python function terminated by raising an " -"exception. If the C code that called :c:func:`PyObject_CallObject` is called" -" from Python, it should now return an error indication to its Python caller," -" so the interpreter can print a stack trace, or the calling Python code can " +"exception. If the C code that called :c:func:`PyObject_CallObject` is called " +"from Python, it should now return an error indication to its Python caller, " +"so the interpreter can print a stack trace, or the calling Python code can " "handle the exception. If this is not possible or desirable, the exception " "should be cleared by calling :c:func:`PyErr_Clear`. For example::" msgstr "" @@ -632,12 +625,12 @@ msgstr "" msgid "" "Depending on the desired interface to the Python callback function, you may " "also have to provide an argument list to :c:func:`PyObject_CallObject`. In " -"some cases the argument list is also provided by the Python program, through" -" the same interface that specified the callback function. It can then be " +"some cases the argument list is also provided by the Python program, through " +"the same interface that specified the callback function. It can then be " "saved and used in the same manner as the function object. In other cases, " "you may have to construct a new tuple to pass as the argument list. The " -"simplest way to do this is to call :c:func:`Py_BuildValue`. For example, if" -" you want to pass an integral event code, you might use the following code::" +"simplest way to do this is to call :c:func:`Py_BuildValue`. For example, if " +"you want to pass an integral event code, you might use the following code::" msgstr "" #: ../../extending/extending.rst:600 @@ -650,10 +643,9 @@ msgstr "" #: ../../extending/extending.rst:604 msgid "" -"You may also call a function with keyword arguments by using " -":c:func:`PyObject_Call`, which supports arguments and keyword arguments. As" -" in the above example, we use :c:func:`Py_BuildValue` to construct the " -"dictionary. ::" +"You may also call a function with keyword arguments by using :c:func:" +"`PyObject_Call`, which supports arguments and keyword arguments. As in the " +"above example, we use :c:func:`Py_BuildValue` to construct the dictionary. ::" msgstr "" #: ../../extending/extending.rst:622 @@ -666,9 +658,9 @@ msgstr "" #: ../../extending/extending.rst:630 msgid "" -"The *arg* argument must be a tuple object containing an argument list passed" -" from Python to a C function. The *format* argument must be a format " -"string, whose syntax is explained in :ref:`arg-parsing` in the Python/C API " +"The *arg* argument must be a tuple object containing an argument list passed " +"from Python to a C function. The *format* argument must be a format string, " +"whose syntax is explained in :ref:`arg-parsing` in the Python/C API " "Reference Manual. The remaining arguments must be addresses of variables " "whose type is determined by the format string." msgstr "" @@ -686,6 +678,9 @@ msgid "" "Note that any Python object references which are provided to the caller are " "*borrowed* references; do not decrement their reference count!" msgstr "" +"Note que quaisquer referências a objeto Python que são fornecidas ao " +"chamador são referências *emprestadas*; não decremente a contagem de " +"referências delas!" #: ../../extending/extending.rst:644 msgid "Some example calls::" @@ -702,21 +697,21 @@ msgstr "" #: ../../extending/extending.rst:723 msgid "" -"The *arg* and *format* parameters are identical to those of the " -":c:func:`PyArg_ParseTuple` function. The *kwdict* parameter is the " -"dictionary of keywords received as the third parameter from the Python " -"runtime. The *kwlist* parameter is a ``NULL``-terminated list of strings " -"which identify the parameters; the names are matched with the type " -"information from *format* from left to right. On success, " -":c:func:`PyArg_ParseTupleAndKeywords` returns true, otherwise it returns " -"false and raises an appropriate exception." +"The *arg* and *format* parameters are identical to those of the :c:func:" +"`PyArg_ParseTuple` function. The *kwdict* parameter is the dictionary of " +"keywords received as the third parameter from the Python runtime. The " +"*kwlist* parameter is a ``NULL``-terminated list of strings which identify " +"the parameters; the names are matched with the type information from " +"*format* from left to right. On success, :c:func:" +"`PyArg_ParseTupleAndKeywords` returns true, otherwise it returns false and " +"raises an appropriate exception." msgstr "" #: ../../extending/extending.rst:733 msgid "" "Nested tuples cannot be parsed when using keyword arguments! Keyword " -"parameters passed in which are not present in the *kwlist* will cause " -":exc:`TypeError` to be raised." +"parameters passed in which are not present in the *kwlist* will cause :exc:" +"`TypeError` to be raised." msgstr "" #: ../../extending/extending.rst:739 @@ -737,10 +732,10 @@ msgstr "" #: ../../extending/extending.rst:801 msgid "" -"It recognizes a set of format units similar to the ones recognized by " -":c:func:`PyArg_ParseTuple`, but the arguments (which are input to the " -"function, not output) must not be pointers, just values. It returns a new " -"Python object, suitable for returning from a C function called from Python." +"It recognizes a set of format units similar to the ones recognized by :c:" +"func:`PyArg_ParseTuple`, but the arguments (which are input to the function, " +"not output) must not be pointers, just values. It returns a new Python " +"object, suitable for returning from a C function called from Python." msgstr "" #: ../../extending/extending.rst:806 @@ -749,9 +744,9 @@ msgid "" "its first argument to be a tuple (since Python argument lists are always " "represented as tuples internally), :c:func:`Py_BuildValue` does not always " "build a tuple. It builds a tuple only if its format string contains two or " -"more format units. If the format string is empty, it returns ``None``; if it" -" contains exactly one format unit, it returns whatever object is described " -"by that format unit. To force it to return a tuple of size 0 or one, " +"more format units. If the format string is empty, it returns ``None``; if it " +"contains exactly one format unit, it returns whatever object is described by " +"that format unit. To force it to return a tuple of size 0 or one, " "parenthesize the format string." msgstr "" @@ -767,8 +762,8 @@ msgstr "Contagens de referência" #: ../../extending/extending.rst:842 msgid "" "In languages like C or C++, the programmer is responsible for dynamic " -"allocation and deallocation of memory on the heap. In C, this is done using" -" the functions :c:func:`malloc` and :c:func:`free`. In C++, the operators " +"allocation and deallocation of memory on the heap. In C, this is done using " +"the functions :c:func:`malloc` and :c:func:`free`. In C++, the operators " "``new`` and ``delete`` are used with essentially the same meaning and we'll " "restrict the following discussion to the C case." msgstr "" @@ -776,13 +771,13 @@ msgstr "" #: ../../extending/extending.rst:848 msgid "" "Every block of memory allocated with :c:func:`malloc` should eventually be " -"returned to the pool of available memory by exactly one call to " -":c:func:`free`. It is important to call :c:func:`free` at the right time. " -"If a block's address is forgotten but :c:func:`free` is not called for it, " -"the memory it occupies cannot be reused until the program terminates. This " -"is called a :dfn:`memory leak`. On the other hand, if a program calls " -":c:func:`free` for a block and then continues to use the block, it creates a" -" conflict with re-use of the block through another :c:func:`malloc` call. " +"returned to the pool of available memory by exactly one call to :c:func:" +"`free`. It is important to call :c:func:`free` at the right time. If a " +"block's address is forgotten but :c:func:`free` is not called for it, the " +"memory it occupies cannot be reused until the program terminates. This is " +"called a :dfn:`memory leak`. On the other hand, if a program calls :c:func:" +"`free` for a block and then continues to use the block, it creates a " +"conflict with re-use of the block through another :c:func:`malloc` call. " "This is called :dfn:`using freed memory`. It has the same bad consequences " "as referencing uninitialized data --- core dumps, wrong results, mysterious " "crashes." @@ -797,12 +792,12 @@ msgid "" "and can return prematurely from the function. It's easy to forget to free " "the allocated memory block when taking this premature exit, especially when " "it is added later to the code. Such leaks, once introduced, often go " -"undetected for a long time: the error exit is taken only in a small fraction" -" of all calls, and most modern machines have plenty of virtual memory, so " -"the leak only becomes apparent in a long-running process that uses the " -"leaking function frequently. Therefore, it's important to prevent leaks " -"from happening by having a coding convention or strategy that minimizes this" -" kind of errors." +"undetected for a long time: the error exit is taken only in a small fraction " +"of all calls, and most modern machines have plenty of virtual memory, so the " +"leak only becomes apparent in a long-running process that uses the leaking " +"function frequently. Therefore, it's important to prevent leaks from " +"happening by having a coding convention or strategy that minimizes this kind " +"of errors." msgstr "" #: ../../extending/extending.rst:872 @@ -811,8 +806,8 @@ msgid "" "needs a strategy to avoid memory leaks as well as the use of freed memory. " "The chosen method is called :dfn:`reference counting`. The principle is " "simple: every object contains a counter, which is incremented when a " -"reference to the object is stored somewhere, and which is decremented when a" -" reference to it is deleted. When the counter reaches zero, the last " +"reference to the object is stored somewhere, and which is decremented when a " +"reference to it is deleted. When the counter reaches zero, the last " "reference to the object has been deleted and the object is freed." msgstr "" @@ -823,20 +818,20 @@ msgid "" "strategy, hence my use of \"automatic\" to distinguish the two.) The big " "advantage of automatic garbage collection is that the user doesn't need to " "call :c:func:`free` explicitly. (Another claimed advantage is an " -"improvement in speed or memory usage --- this is no hard fact however.) The" -" disadvantage is that for C, there is no truly portable automatic garbage " +"improvement in speed or memory usage --- this is no hard fact however.) The " +"disadvantage is that for C, there is no truly portable automatic garbage " "collector, while reference counting can be implemented portably (as long as " "the functions :c:func:`malloc` and :c:func:`free` are available --- which " -"the C Standard guarantees). Maybe some day a sufficiently portable automatic" -" garbage collector will be available for C. Until then, we'll have to live " +"the C Standard guarantees). Maybe some day a sufficiently portable automatic " +"garbage collector will be available for C. Until then, we'll have to live " "with reference counts." msgstr "" #: ../../extending/extending.rst:892 msgid "" -"While Python uses the traditional reference counting implementation, it also" -" offers a cycle detector that works to detect reference cycles. This allows" -" applications to not worry about creating direct or indirect circular " +"While Python uses the traditional reference counting implementation, it also " +"offers a cycle detector that works to detect reference cycles. This allows " +"applications to not worry about creating direct or indirect circular " "references; these are the weakness of garbage collection implemented using " "only reference counting. Reference cycles consist of objects which contain " "(possibly indirect) references to themselves, so that each object in the " @@ -849,14 +844,13 @@ msgstr "" #: ../../extending/extending.rst:903 msgid "" "The cycle detector is able to detect garbage cycles and can reclaim them. " -"The :mod:`gc` module exposes a way to run the detector (the " -":func:`~gc.collect` function), as well as configuration interfaces and the " -"ability to disable the detector at runtime. The cycle detector is " -"considered an optional component; though it is included by default, it can " -"be disabled at build time using the :option:`!--without-cycle-gc` option to " -"the :program:`configure` script on Unix platforms (including Mac OS X). If " -"the cycle detector is disabled in this way, the :mod:`gc` module will not be" -" available." +"The :mod:`gc` module exposes a way to run the detector (the :func:`~gc." +"collect` function), as well as configuration interfaces and the ability to " +"disable the detector at runtime. The cycle detector is considered an " +"optional component; though it is included by default, it can be disabled at " +"build time using the :option:`!--without-cycle-gc` option to the :program:" +"`configure` script on Unix platforms (including Mac OS X). If the cycle " +"detector is disabled in this way, the :mod:`gc` module will not be available." msgstr "" #: ../../extending/extending.rst:917 @@ -866,8 +860,8 @@ msgstr "" #: ../../extending/extending.rst:919 msgid "" "There are two macros, ``Py_INCREF(x)`` and ``Py_DECREF(x)``, which handle " -"the incrementing and decrementing of the reference count. " -":c:func:`Py_DECREF` also frees the object when the count reaches zero. For " +"the incrementing and decrementing of the reference count. :c:func:" +"`Py_DECREF` also frees the object when the count reaches zero. For " "flexibility, it doesn't call :c:func:`free` directly --- rather, it makes a " "call through a function pointer in the object's :dfn:`type object`. For " "this purpose (and others), every object also contains a pointer to its type " @@ -879,12 +873,12 @@ msgid "" "The big question now remains: when to use ``Py_INCREF(x)`` and " "``Py_DECREF(x)``? Let's first introduce some terms. Nobody \"owns\" an " "object; however, you can :dfn:`own a reference` to an object. An object's " -"reference count is now defined as the number of owned references to it. The" -" owner of a reference is responsible for calling :c:func:`Py_DECREF` when " -"the reference is no longer needed. Ownership of a reference can be " -"transferred. There are three ways to dispose of an owned reference: pass it" -" on, store it, or call :c:func:`Py_DECREF`. Forgetting to dispose of an " -"owned reference creates a memory leak." +"reference count is now defined as the number of owned references to it. The " +"owner of a reference is responsible for calling :c:func:`Py_DECREF` when the " +"reference is no longer needed. Ownership of a reference can be " +"transferred. There are three ways to dispose of an owned reference: pass it " +"on, store it, or call :c:func:`Py_DECREF`. Forgetting to dispose of an owned " +"reference creates a memory leak." msgstr "" #: ../../extending/extending.rst:935 @@ -898,22 +892,22 @@ msgstr "" #: ../../extending/extending.rst:941 msgid "" -"The advantage of borrowing over owning a reference is that you don't need to" -" take care of disposing of the reference on all possible paths through the " -"code --- in other words, with a borrowed reference you don't run the risk of" -" leaking when a premature exit is taken. The disadvantage of borrowing over" -" owning is that there are some subtle situations where in seemingly correct " +"The advantage of borrowing over owning a reference is that you don't need to " +"take care of disposing of the reference on all possible paths through the " +"code --- in other words, with a borrowed reference you don't run the risk of " +"leaking when a premature exit is taken. The disadvantage of borrowing over " +"owning is that there are some subtle situations where in seemingly correct " "code a borrowed reference can be used after the owner from which it was " "borrowed has in fact disposed of it." msgstr "" #: ../../extending/extending.rst:949 msgid "" -"A borrowed reference can be changed into an owned reference by calling " -":c:func:`Py_INCREF`. This does not affect the status of the owner from " -"which the reference was borrowed --- it creates a new owned reference, and " -"gives full owner responsibilities (the new owner must dispose of the " -"reference properly, as well as the previous owner)." +"A borrowed reference can be changed into an owned reference by calling :c:" +"func:`Py_INCREF`. This does not affect the status of the owner from which " +"the reference was borrowed --- it creates a new owned reference, and gives " +"full owner responsibilities (the new owner must dispose of the reference " +"properly, as well as the previous owner)." msgstr "" #: ../../extending/extending.rst:959 @@ -922,8 +916,8 @@ msgstr "" #: ../../extending/extending.rst:961 msgid "" -"Whenever an object reference is passed into or out of a function, it is part" -" of the function's interface specification whether ownership is transferred " +"Whenever an object reference is passed into or out of a function, it is part " +"of the function's interface specification whether ownership is transferred " "with the reference or not." msgstr "" @@ -931,55 +925,56 @@ msgstr "" msgid "" "Most functions that return a reference to an object pass on ownership with " "the reference. In particular, all functions whose function it is to create " -"a new object, such as :c:func:`PyLong_FromLong` and :c:func:`Py_BuildValue`," -" pass ownership to the receiver. Even if the object is not actually new, " -"you still receive ownership of a new reference to that object. For " -"instance, :c:func:`PyLong_FromLong` maintains a cache of popular values and " -"can return a reference to a cached item." +"a new object, such as :c:func:`PyLong_FromLong` and :c:func:`Py_BuildValue`, " +"pass ownership to the receiver. Even if the object is not actually new, you " +"still receive ownership of a new reference to that object. For instance, :c:" +"func:`PyLong_FromLong` maintains a cache of popular values and can return a " +"reference to a cached item." msgstr "" #: ../../extending/extending.rst:973 msgid "" "Many functions that extract objects from other objects also transfer " -"ownership with the reference, for instance :c:func:`PyObject_GetAttrString`." -" The picture is less clear, here, however, since a few common routines are " -"exceptions: :c:func:`PyTuple_GetItem`, :c:func:`PyList_GetItem`, " -":c:func:`PyDict_GetItem`, and :c:func:`PyDict_GetItemString` all return " -"references that you borrow from the tuple, list or dictionary." +"ownership with the reference, for instance :c:func:" +"`PyObject_GetAttrString`. The picture is less clear, here, however, since a " +"few common routines are exceptions: :c:func:`PyTuple_GetItem`, :c:func:" +"`PyList_GetItem`, :c:func:`PyDict_GetItem`, and :c:func:" +"`PyDict_GetItemString` all return references that you borrow from the tuple, " +"list or dictionary." msgstr "" #: ../../extending/extending.rst:980 msgid "" -"The function :c:func:`PyImport_AddModule` also returns a borrowed reference," -" even though it may actually create the object it returns: this is possible " +"The function :c:func:`PyImport_AddModule` also returns a borrowed reference, " +"even though it may actually create the object it returns: this is possible " "because an owned reference to the object is stored in ``sys.modules``." msgstr "" #: ../../extending/extending.rst:984 msgid "" "When you pass an object reference into another function, in general, the " -"function borrows the reference from you --- if it needs to store it, it will" -" use :c:func:`Py_INCREF` to become an independent owner. There are exactly " -"two important exceptions to this rule: :c:func:`PyTuple_SetItem` and " -":c:func:`PyList_SetItem`. These functions take over ownership of the item " -"passed to them --- even if they fail! (Note that :c:func:`PyDict_SetItem` " -"and friends don't take over ownership --- they are \"normal.\")" +"function borrows the reference from you --- if it needs to store it, it will " +"use :c:func:`Py_INCREF` to become an independent owner. There are exactly " +"two important exceptions to this rule: :c:func:`PyTuple_SetItem` and :c:func:" +"`PyList_SetItem`. These functions take over ownership of the item passed to " +"them --- even if they fail! (Note that :c:func:`PyDict_SetItem` and friends " +"don't take over ownership --- they are \"normal.\")" msgstr "" #: ../../extending/extending.rst:992 msgid "" "When a C function is called from Python, it borrows references to its " "arguments from the caller. The caller owns a reference to the object, so " -"the borrowed reference's lifetime is guaranteed until the function returns." -" Only when such a borrowed reference must be stored or passed on, it must " -"be turned into an owned reference by calling :c:func:`Py_INCREF`." +"the borrowed reference's lifetime is guaranteed until the function returns. " +"Only when such a borrowed reference must be stored or passed on, it must be " +"turned into an owned reference by calling :c:func:`Py_INCREF`." msgstr "" #: ../../extending/extending.rst:998 msgid "" "The object reference returned from a C function that is called from Python " -"must be an owned reference --- ownership is transferred from the function to" -" its caller." +"must be an owned reference --- ownership is transferred from the function to " +"its caller." msgstr "" #: ../../extending/extending.rst:1006 @@ -996,16 +991,16 @@ msgstr "" #: ../../extending/extending.rst:1012 msgid "" -"The first and most important case to know about is using :c:func:`Py_DECREF`" -" on an unrelated object while borrowing a reference to a list item. For " +"The first and most important case to know about is using :c:func:`Py_DECREF` " +"on an unrelated object while borrowing a reference to a list item. For " "instance::" msgstr "" #: ../../extending/extending.rst:1024 msgid "" "This function first borrows a reference to ``list[0]``, then replaces " -"``list[1]`` with the value ``0``, and finally prints the borrowed reference." -" Looks harmless, right? But it's not!" +"``list[1]`` with the value ``0``, and finally prints the borrowed reference. " +"Looks harmless, right? But it's not!" msgstr "" #: ../../extending/extending.rst:1028 @@ -1037,17 +1032,17 @@ msgstr "" #: ../../extending/extending.rst:1057 msgid "" -"This is a true story. An older version of Python contained variants of this" -" bug and someone spent a considerable amount of time in a C debugger to " +"This is a true story. An older version of Python contained variants of this " +"bug and someone spent a considerable amount of time in a C debugger to " "figure out why his :meth:`__del__` methods would fail..." msgstr "" #: ../../extending/extending.rst:1061 msgid "" -"The second case of problems with a borrowed reference is a variant involving" -" threads. Normally, multiple threads in the Python interpreter can't get in" -" each other's way, because there is a global lock protecting Python's entire" -" object space. However, it is possible to temporarily release this lock " +"The second case of problems with a borrowed reference is a variant involving " +"threads. Normally, multiple threads in the Python interpreter can't get in " +"each other's way, because there is a global lock protecting Python's entire " +"object space. However, it is possible to temporarily release this lock " "using the macro :c:macro:`Py_BEGIN_ALLOW_THREADS`, and to re-acquire it " "using :c:macro:`Py_END_ALLOW_THREADS`. This is common around blocking I/O " "calls, to let other threads use the processor while waiting for the I/O to " @@ -1061,12 +1056,12 @@ msgstr "" #: ../../extending/extending.rst:1086 msgid "" -"In general, functions that take object references as arguments do not expect" -" you to pass them ``NULL`` pointers, and will dump core (or cause later core" -" dumps) if you do so. Functions that return object references generally " -"return ``NULL`` only to indicate that an exception occurred. The reason for" -" not testing for ``NULL`` arguments is that functions often pass the objects" -" they receive on to other function --- if each function were to test for " +"In general, functions that take object references as arguments do not expect " +"you to pass them ``NULL`` pointers, and will dump core (or cause later core " +"dumps) if you do so. Functions that return object references generally " +"return ``NULL`` only to indicate that an exception occurred. The reason for " +"not testing for ``NULL`` arguments is that functions often pass the objects " +"they receive on to other function --- if each function were to test for " "``NULL``, there would be a lot of redundant tests and the code would run " "more slowly." msgstr "" @@ -1074,15 +1069,15 @@ msgstr "" #: ../../extending/extending.rst:1094 msgid "" "It is better to test for ``NULL`` only at the \"source:\" when a pointer " -"that may be ``NULL`` is received, for example, from :c:func:`malloc` or from" -" a function that may raise an exception." +"that may be ``NULL`` is received, for example, from :c:func:`malloc` or from " +"a function that may raise an exception." msgstr "" #: ../../extending/extending.rst:1098 msgid "" "The macros :c:func:`Py_INCREF` and :c:func:`Py_DECREF` do not check for " -"``NULL`` pointers --- however, their variants :c:func:`Py_XINCREF` and " -":c:func:`Py_XDECREF` do." +"``NULL`` pointers --- however, their variants :c:func:`Py_XINCREF` and :c:" +"func:`Py_XDECREF` do." msgstr "" #: ../../extending/extending.rst:1102 @@ -1096,15 +1091,15 @@ msgstr "" #: ../../extending/extending.rst:1108 msgid "" -"The C function calling mechanism guarantees that the argument list passed to" -" C functions (``args`` in the examples) is never ``NULL`` --- in fact it " +"The C function calling mechanism guarantees that the argument list passed to " +"C functions (``args`` in the examples) is never ``NULL`` --- in fact it " "guarantees that it is always a tuple [#]_." msgstr "" #: ../../extending/extending.rst:1112 msgid "" -"It is a severe error to ever let a ``NULL`` pointer \"escape\" to the Python" -" user." +"It is a severe error to ever let a ``NULL`` pointer \"escape\" to the Python " +"user." msgstr "" #: ../../extending/extending.rst:1123 @@ -1113,15 +1108,15 @@ msgstr "" #: ../../extending/extending.rst:1125 msgid "" -"It is possible to write extension modules in C++. Some restrictions apply." -" If the main program (the Python interpreter) is compiled and linked by the" -" C compiler, global or static objects with constructors cannot be used. " -"This is not a problem if the main program is linked by the C++ compiler. " +"It is possible to write extension modules in C++. Some restrictions apply. " +"If the main program (the Python interpreter) is compiled and linked by the C " +"compiler, global or static objects with constructors cannot be used. This " +"is not a problem if the main program is linked by the C++ compiler. " "Functions that will be called by the Python interpreter (in particular, " -"module initialization functions) have to be declared using ``extern \"C\"``." -" It is unnecessary to enclose the Python header files in ``extern \"C\" " -"{...}`` --- they use this form already if the symbol ``__cplusplus`` is " -"defined (all recent C++ compilers define this symbol)." +"module initialization functions) have to be declared using ``extern \"C\"``. " +"It is unnecessary to enclose the Python header files in ``extern \"C\" {...}" +"`` --- they use this form already if the symbol ``__cplusplus`` is defined " +"(all recent C++ compilers define this symbol)." msgstr "" #: ../../extending/extending.rst:1139 @@ -1135,8 +1130,8 @@ msgid "" "other extension modules. For example, an extension module could implement a " "type \"collection\" which works like lists without order. Just like the " "standard Python list type has a C API which permits extension modules to " -"create and manipulate lists, this new collection type should have a set of C" -" functions for direct manipulation from other extension modules." +"create and manipulate lists, this new collection type should have a set of C " +"functions for direct manipulation from other extension modules." msgstr "" #: ../../extending/extending.rst:1152 @@ -1145,14 +1140,14 @@ msgid "" "them ``static``, of course), provide an appropriate header file, and " "document the C API. And in fact this would work if all extension modules " "were always linked statically with the Python interpreter. When modules are " -"used as shared libraries, however, the symbols defined in one module may not" -" be visible to another module. The details of visibility depend on the " +"used as shared libraries, however, the symbols defined in one module may not " +"be visible to another module. The details of visibility depend on the " "operating system; some systems use one global namespace for the Python " -"interpreter and all extension modules (Windows, for example), whereas others" -" require an explicit list of imported symbols at module link time (AIX is " -"one example), or offer a choice of different strategies (most Unices). And " -"even if symbols are globally visible, the module whose functions one wishes " -"to call might not have been loaded yet!" +"interpreter and all extension modules (Windows, for example), whereas others " +"require an explicit list of imported symbols at module link time (AIX is one " +"example), or offer a choice of different strategies (most Unices). And even " +"if symbols are globally visible, the module whose functions one wishes to " +"call might not have been loaded yet!" msgstr "" #: ../../extending/extending.rst:1164 @@ -1169,12 +1164,12 @@ msgstr "" msgid "" "Python provides a special mechanism to pass C-level information (pointers) " "from one extension module to another one: Capsules. A Capsule is a Python " -"data type which stores a pointer (:c:type:`void \\*`). Capsules can only be" -" created and accessed via their C API, but they can be passed around like " -"any other Python object. In particular, they can be assigned to a name in " -"an extension module's namespace. Other extension modules can then import " -"this module, retrieve the value of this name, and then retrieve the pointer " -"from the Capsule." +"data type which stores a pointer (:c:type:`void \\*`). Capsules can only be " +"created and accessed via their C API, but they can be passed around like any " +"other Python object. In particular, they can be assigned to a name in an " +"extension module's namespace. Other extension modules can then import this " +"module, retrieve the value of this name, and then retrieve the pointer from " +"the Capsule." msgstr "" #: ../../extending/extending.rst:1179 @@ -1182,9 +1177,9 @@ msgid "" "There are many ways in which Capsules can be used to export the C API of an " "extension module. Each function could get its own Capsule, or all C API " "pointers could be stored in an array whose address is published in a " -"Capsule. And the various tasks of storing and retrieving the pointers can be" -" distributed in different ways between the module providing the code and the" -" client modules." +"Capsule. And the various tasks of storing and retrieving the pointers can be " +"distributed in different ways between the module providing the code and the " +"client modules." msgstr "" #: ../../extending/extending.rst:1185 @@ -1193,8 +1188,8 @@ msgid "" "The function :c:func:`PyCapsule_New` takes a name parameter (:c:type:`const " "char \\*`); you're permitted to pass in a ``NULL`` name, but we strongly " "encourage you to specify a name. Properly named Capsules provide a degree " -"of runtime type-safety; there is no feasible way to tell one unnamed Capsule" -" from another." +"of runtime type-safety; there is no feasible way to tell one unnamed Capsule " +"from another." msgstr "" #: ../../extending/extending.rst:1192 @@ -1207,8 +1202,8 @@ msgstr "" msgid "" "The convenience function :c:func:`PyCapsule_Import` makes it easy to load a " "C API provided via a Capsule, but only if the Capsule's name matches this " -"convention. This behavior gives C API users a high degree of certainty that" -" the Capsule they load contains the correct C API." +"convention. This behavior gives C API users a high degree of certainty that " +"the Capsule they load contains the correct C API." msgstr "" #: ../../extending/extending.rst:1202 @@ -1217,9 +1212,9 @@ msgid "" "on the writer of the exporting module, which is appropriate for commonly " "used library modules. It stores all C API pointers (just one in the " "example!) in an array of :c:type:`void` pointers which becomes the value of " -"a Capsule. The header file corresponding to the module provides a macro that" -" takes care of importing the module and retrieving its C API pointers; " -"client modules only have to call this macro before accessing the C API." +"a Capsule. The header file corresponding to the module provides a macro that " +"takes care of importing the module and retrieving its C API pointers; client " +"modules only have to call this macro before accessing the C API." msgstr "" #: ../../extending/extending.rst:1210 @@ -1229,8 +1224,7 @@ msgid "" "does not call the C library function :c:func:`system` directly, but a " "function :c:func:`PySpam_System`, which would of course do something more " "complicated in reality (such as adding \"spam\" to every command). This " -"function :c:func:`PySpam_System` is also exported to other extension " -"modules." +"function :c:func:`PySpam_System` is also exported to other extension modules." msgstr "" #: ../../extending/extending.rst:1217 @@ -1253,46 +1247,46 @@ msgstr "" #: ../../extending/extending.rst:1249 msgid "" -"The ``#define`` is used to tell the header file that it is being included in" -" the exporting module, not a client module. Finally, the module's " +"The ``#define`` is used to tell the header file that it is being included in " +"the exporting module, not a client module. Finally, the module's " "initialization function must take care of initializing the C API pointer " "array::" msgstr "" #: ../../extending/extending.rst:1279 msgid "" -"Note that ``PySpam_API`` is declared ``static``; otherwise the pointer array" -" would disappear when :func:`PyInit_spam` terminates!" +"Note that ``PySpam_API`` is declared ``static``; otherwise the pointer array " +"would disappear when :func:`PyInit_spam` terminates!" msgstr "" #: ../../extending/extending.rst:1282 msgid "" -"The bulk of the work is in the header file :file:`spammodule.h`, which looks" -" like this::" +"The bulk of the work is in the header file :file:`spammodule.h`, which looks " +"like this::" msgstr "" #: ../../extending/extending.rst:1333 msgid "" -"All that a client module must do in order to have access to the function " -":c:func:`PySpam_System` is to call the function (or rather macro) " -":c:func:`import_spam` in its initialization function::" +"All that a client module must do in order to have access to the function :c:" +"func:`PySpam_System` is to call the function (or rather macro) :c:func:" +"`import_spam` in its initialization function::" msgstr "" #: ../../extending/extending.rst:1351 msgid "" -"The main disadvantage of this approach is that the file :file:`spammodule.h`" -" is rather complicated. However, the basic structure is the same for each " +"The main disadvantage of this approach is that the file :file:`spammodule.h` " +"is rather complicated. However, the basic structure is the same for each " "function that is exported, so it has to be learned only once." msgstr "" #: ../../extending/extending.rst:1355 msgid "" -"Finally it should be mentioned that Capsules offer additional functionality," -" which is especially useful for memory allocation and deallocation of the " +"Finally it should be mentioned that Capsules offer additional functionality, " +"which is especially useful for memory allocation and deallocation of the " "pointer stored in a Capsule. The details are described in the Python/C API " -"Reference Manual in the section :ref:`capsules` and in the implementation of" -" Capsules (files :file:`Include/pycapsule.h` and :file:`Objects/pycapsule.c`" -" in the Python source code distribution)." +"Reference Manual in the section :ref:`capsules` and in the implementation of " +"Capsules (files :file:`Include/pycapsule.h` and :file:`Objects/pycapsule.c` " +"in the Python source code distribution)." msgstr "" #: ../../extending/extending.rst:1363 @@ -1301,8 +1295,8 @@ msgstr "Notas de rodapé" #: ../../extending/extending.rst:1364 msgid "" -"An interface for this function already exists in the standard module " -":mod:`os` --- it was chosen as a simple and straightforward example." +"An interface for this function already exists in the standard module :mod:" +"`os` --- it was chosen as a simple and straightforward example." msgstr "" #: ../../extending/extending.rst:1367 diff --git a/extending/index.po b/extending/index.po index 9bdff5622..45f712d87 100644 --- a/extending/index.po +++ b/extending/index.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,13 +37,13 @@ msgid "" "extension modules so that they can be loaded dynamically (at run time) into " "the interpreter, if the underlying operating system supports this feature." msgstr "" -"Neste documento descreveremos o desenvolvimento de módulos com C ou C++ para" -" adicionar recursos ao interpretador Python criando novos módulos. Esses " +"Neste documento descreveremos o desenvolvimento de módulos com C ou C++ para " +"adicionar recursos ao interpretador Python criando novos módulos. Esses " "módulos podem não somente definir novas funções, mas também novos tipos de " "objetos e seu conjunto de métodos. O documento também descreve como " -"incorporar o intérprete do Python em outro aplicativo, de forma a utiliza-lo" -" como sendo um idiota estendido. Por fim, estudaremos como podemos compilar " -"e fazer a vinculação dos módulos de extensão para que estes possam ser " +"incorporar o intérprete do Python em outro aplicativo, de forma a utiliza-lo " +"como sendo um idiota estendido. Por fim, estudaremos como podemos compilar e " +"fazer a vinculação dos módulos de extensão para que estes possam ser " "carregados dinamicamente (em tempo de execução) pelo intérprete, caso o " "sistema operacional subjacente suportar esse recurso." @@ -49,48 +51,66 @@ msgstr "" msgid "" "This document assumes basic knowledge about Python. For an informal " "introduction to the language, see :ref:`tutorial-index`. :ref:`reference-" -"index` gives a more formal definition of the language. :ref:`library-index`" -" documents the existing object types, functions and modules (both built-in " +"index` gives a more formal definition of the language. :ref:`library-index` " +"documents the existing object types, functions and modules (both built-in " "and written in Python) that give the language its wide application range." msgstr "" +"Este documento pressupõe conhecimentos básicos sobre Python. Para uma " +"introdução informal à linguagem, consulte :ref:`tutorial-index`. :ref:" +"`reference-index` fornece uma definição mais formal da linguagem. :ref:" +"`library-index` documenta os tipos, funções e módulos de objetos existentes " +"(embutidos e escritos em Python) que dão à linguagem sua ampla gama de " +"aplicações." #: ../../extending/index.rst:21 msgid "" -"For a detailed description of the whole Python/C API, see the separate " -":ref:`c-api-index`." +"For a detailed description of the whole Python/C API, see the separate :ref:" +"`c-api-index`." msgstr "" +"Para uma descrição detalhada de toda a API Python/C, consulte o :ref:`c-api-" +"index` separado." #: ../../extending/index.rst:26 msgid "Recommended third party tools" -msgstr "" +msgstr "Ferramentas de terceiros recomendadas" #: ../../extending/index.rst:28 msgid "" "This guide only covers the basic tools for creating extensions provided as " -"part of this version of CPython. Third party tools like `Cython " -"`_, `cffi `_, `SWIG " -"`_ and `Numba `_ offer both " -"simpler and more sophisticated approaches to creating C and C++ extensions " -"for Python." +"part of this version of CPython. Third party tools like `Cython `_, `cffi `_, `SWIG `_ and `Numba `_ offer both simpler and " +"more sophisticated approaches to creating C and C++ extensions for Python." msgstr "" +"Esse guia cobre apenas as ferramentas básicas para a criação de extensões " +"fornecidas como parte desta versão do CPython. Ferramentas de terceiros como " +"`Cython `_, `cffi `_, `SWIG " +"`_ e `Numba `_ oferecem " +"abordagens mais simples e sofisticadas para criar extensões C e C++ para " +"Python." #: ../../extending/index.rst:40 msgid "" -"`Python Packaging User Guide: Binary Extensions " -"`_" +"`Python Packaging User Guide: Binary Extensions `_" msgstr "" +"`Python Packaging User Guide: Binary Extensions `_" #: ../../extending/index.rst:38 msgid "" -"The Python Packaging User Guide not only covers several available tools that" -" simplify the creation of binary extensions, but also discusses the various " -"reasons why creating an extension module may be desirable in the first " -"place." +"The Python Packaging User Guide not only covers several available tools that " +"simplify the creation of binary extensions, but also discusses the various " +"reasons why creating an extension module may be desirable in the first place." msgstr "" +"O Guia do Usuário de Empacotamento do Python não abrange apenas várias " +"ferramentas disponíveis que simplificam a criação de extensões binárias, mas " +"também discute os vários motivos pelos quais a criação de um módulo de " +"extensão pode ser desejável em primeiro lugar." #: ../../extending/index.rst:45 msgid "Creating extensions without third party tools" -msgstr "" +msgstr "Criando extensões sem ferramentas de terceiros" #: ../../extending/index.rst:47 msgid "" @@ -99,15 +119,23 @@ msgid "" "those tools, rather than being a recommended way to create your own C " "extensions." msgstr "" +"Esta seção do guia aborda a criação de extensões C e C++ sem assistência de " +"ferramentas de terceiros. Destina-se principalmente aos criadores dessas " +"ferramentas, em vez de ser uma maneira recomendada de criar suas próprias " +"extensões C." #: ../../extending/index.rst:63 msgid "Embedding the CPython runtime in a larger application" -msgstr "" +msgstr "Incorporando o tempo de execução do CPython em uma aplicação maior" #: ../../extending/index.rst:65 msgid "" "Sometimes, rather than creating an extension that runs inside the Python " "interpreter as the main application, it is desirable to instead embed the " -"CPython runtime inside a larger application. This section covers some of the" -" details involved in doing that successfully." +"CPython runtime inside a larger application. This section covers some of the " +"details involved in doing that successfully." msgstr "" +"Às vezes, em vez de criar uma extensão que é executada dentro do " +"interpretador Python como a aplicação principal, é desejável incorporar o " +"tempo de execução do CPython em uma aplicação maior. Esta seção aborda " +"alguns dos detalhes envolvidos para fazer isso com êxito." diff --git a/extending/newtypes.po b/extending/newtypes.po index 2c44695ca..03b9dec90 100644 --- a/extending/newtypes.po +++ b/extending/newtypes.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,20 +31,20 @@ msgstr "" #: ../../extending/newtypes.rst:9 msgid "" -"This section aims to give a quick fly-by on the various type methods you can" -" implement and what they do." +"This section aims to give a quick fly-by on the various type methods you can " +"implement and what they do." msgstr "" #: ../../extending/newtypes.rst:12 msgid "" -"Here is the definition of :c:type:`PyTypeObject`, with some fields only used" -" in debug builds omitted:" +"Here is the definition of :c:type:`PyTypeObject`, with some fields only used " +"in debug builds omitted:" msgstr "" #: ../../extending/newtypes.rst:18 msgid "" -"Now that's a *lot* of methods. Don't worry too much though -- if you have a" -" type you want to define, the chances are very good that you will only " +"Now that's a *lot* of methods. Don't worry too much though -- if you have a " +"type you want to define, the chances are very good that you will only " "implement a handful of these." msgstr "" @@ -66,9 +69,9 @@ msgstr "" msgid "" "These fields tell the runtime how much memory to allocate when new objects " "of this type are created. Python has some built-in support for variable " -"length structures (think: strings, tuples) which is where the " -":c:member:`~PyTypeObject.tp_itemsize` field comes in. This will be dealt " -"with later. ::" +"length structures (think: strings, tuples) which is where the :c:member:" +"`~PyTypeObject.tp_itemsize` field comes in. This will be dealt with " +"later. ::" msgstr "" #: ../../extending/newtypes.rst:44 @@ -92,8 +95,8 @@ msgid "" "This function is called when the reference count of the instance of your " "type is reduced to zero and the Python interpreter wants to reclaim it. If " "your type has memory to free or other clean-up to perform, you can put it " -"here. The object itself needs to be freed here as well. Here is an example" -" of this function::" +"here. The object itself needs to be freed here as well. Here is an example " +"of this function::" msgstr "" #: ../../extending/newtypes.rst:81 @@ -106,23 +109,22 @@ msgid "" "already been set. Any actions which a deallocator performs which may cause " "additional Python code to be executed may detect that an exception has been " "set. This can lead to misleading errors from the interpreter. The proper " -"way to protect against this is to save a pending exception before performing" -" the unsafe action, and restoring it when done. This can be done using the " -":c:func:`PyErr_Fetch` and :c:func:`PyErr_Restore` functions::" +"way to protect against this is to save a pending exception before performing " +"the unsafe action, and restoring it when done. This can be done using the :" +"c:func:`PyErr_Fetch` and :c:func:`PyErr_Restore` functions::" msgstr "" #: ../../extending/newtypes.rst:120 msgid "" "There are limitations to what you can safely do in a deallocator function. " -"First, if your type supports garbage collection (using " -":c:member:`~PyTypeObject.tp_traverse` and/or " -":c:member:`~PyTypeObject.tp_clear`), some of the object's members can have " -"been cleared or finalized by the time :c:member:`~PyTypeObject.tp_dealloc` " -"is called. Second, in :c:member:`~PyTypeObject.tp_dealloc`, your object is " -"in an unstable state: its reference count is equal to zero. Any call to a " -"non-trivial object or API (as in the example above) might end up calling " -":c:member:`~PyTypeObject.tp_dealloc` again, causing a double free and a " -"crash." +"First, if your type supports garbage collection (using :c:member:" +"`~PyTypeObject.tp_traverse` and/or :c:member:`~PyTypeObject.tp_clear`), some " +"of the object's members can have been cleared or finalized by the time :c:" +"member:`~PyTypeObject.tp_dealloc` is called. Second, in :c:member:" +"`~PyTypeObject.tp_dealloc`, your object is in an unstable state: its " +"reference count is equal to zero. Any call to a non-trivial object or API " +"(as in the example above) might end up calling :c:member:`~PyTypeObject." +"tp_dealloc` again, causing a double free and a crash." msgstr "" #: ../../extending/newtypes.rst:129 @@ -143,35 +145,33 @@ msgstr "" #: ../../extending/newtypes.rst:143 msgid "" "In Python, there are two ways to generate a textual representation of an " -"object: the :func:`repr` function, and the :func:`str` function. (The " -":func:`print` function just calls :func:`str`.) These handlers are both " -"optional." +"object: the :func:`repr` function, and the :func:`str` function. (The :func:" +"`print` function just calls :func:`str`.) These handlers are both optional." msgstr "" #: ../../extending/newtypes.rst:152 msgid "" "The :c:member:`~PyTypeObject.tp_repr` handler should return a string object " -"containing a representation of the instance for which it is called. Here is" -" a simple example::" +"containing a representation of the instance for which it is called. Here is " +"a simple example::" msgstr "" #: ../../extending/newtypes.rst:163 msgid "" "If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the " -"interpreter will supply a representation that uses the type's " -":c:member:`~PyTypeObject.tp_name` and a uniquely-identifying value for the " -"object." +"interpreter will supply a representation that uses the type's :c:member:" +"`~PyTypeObject.tp_name` and a uniquely-identifying value for the object." msgstr "" #: ../../extending/newtypes.rst:167 msgid "" -"The :c:member:`~PyTypeObject.tp_str` handler is to :func:`str` what the " -":c:member:`~PyTypeObject.tp_repr` handler described above is to " -":func:`repr`; that is, it is called when Python code calls :func:`str` on an" -" instance of your object. Its implementation is very similar to the " -":c:member:`~PyTypeObject.tp_repr` function, but the resulting string is " -"intended for human consumption. If :c:member:`~PyTypeObject.tp_str` is not " -"specified, the :c:member:`~PyTypeObject.tp_repr` handler is used instead." +"The :c:member:`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:" +"member:`~PyTypeObject.tp_repr` handler described above is to :func:`repr`; " +"that is, it is called when Python code calls :func:`str` on an instance of " +"your object. Its implementation is very similar to the :c:member:" +"`~PyTypeObject.tp_repr` function, but the resulting string is intended for " +"human consumption. If :c:member:`~PyTypeObject.tp_str` is not specified, " +"the :c:member:`~PyTypeObject.tp_repr` handler is used instead." msgstr "" #: ../../extending/newtypes.rst:174 @@ -196,16 +196,15 @@ msgstr "" msgid "" "Python supports two pairs of attribute handlers; a type that supports " "attributes only needs to implement the functions for one pair. The " -"difference is that one pair takes the name of the attribute as a " -":c:type:`char\\*`, while the other accepts a :c:type:`PyObject\\*`. Each " -"type can use whichever pair makes more sense for the implementation's " -"convenience. ::" +"difference is that one pair takes the name of the attribute as a :c:type:" +"`char\\*`, while the other accepts a :c:type:`PyObject\\*`. Each type can " +"use whichever pair makes more sense for the implementation's convenience. ::" msgstr "" #: ../../extending/newtypes.rst:206 msgid "" -"If accessing attributes of an object is always a simple operation (this will" -" be explained shortly), there are generic implementations which can be used " +"If accessing attributes of an object is always a simple operation (this will " +"be explained shortly), there are generic implementations which can be used " "to provide the :c:type:`PyObject\\*` version of the attribute management " "functions. The actual need for type-specific attribute handlers almost " "completely disappeared starting with Python 2.2, though there are many " @@ -231,8 +230,8 @@ msgstr "" #: ../../extending/newtypes.rst:225 msgid "" -"No special processing is needed to record that an attribute was looked up or" -" set, nor do actions need to be taken based on the value." +"No special processing is needed to record that an attribute was looked up or " +"set, nor do actions need to be taken based on the value." msgstr "" #: ../../extending/newtypes.rst:228 @@ -247,11 +246,10 @@ msgid "" "the type object to create :term:`descriptor`\\s which are placed in the " "dictionary of the type object. Each descriptor controls access to one " "attribute of the instance object. Each of the tables is optional; if all " -"three are ``NULL``, instances of the type will only have attributes that are" -" inherited from their base type, and should leave the " -":c:member:`~PyTypeObject.tp_getattro` and " -":c:member:`~PyTypeObject.tp_setattro` fields ``NULL`` as well, allowing the " -"base type to handle attributes." +"three are ``NULL``, instances of the type will only have attributes that are " +"inherited from their base type, and should leave the :c:member:" +"`~PyTypeObject.tp_getattro` and :c:member:`~PyTypeObject.tp_setattro` fields " +"``NULL`` as well, allowing the base type to handle attributes." msgstr "" #: ../../extending/newtypes.rst:239 @@ -260,17 +258,17 @@ msgstr "" #: ../../extending/newtypes.rst:245 msgid "" -"If :c:member:`~PyTypeObject.tp_methods` is not ``NULL``, it must refer to an" -" array of :c:type:`PyMethodDef` structures. Each entry in the table is an " +"If :c:member:`~PyTypeObject.tp_methods` is not ``NULL``, it must refer to an " +"array of :c:type:`PyMethodDef` structures. Each entry in the table is an " "instance of this structure::" msgstr "" #: ../../extending/newtypes.rst:256 msgid "" -"One entry should be defined for each method provided by the type; no entries" -" are needed for methods inherited from a base type. One additional entry is" -" needed at the end; it is a sentinel that marks the end of the array. The " -":attr:`ml_name` field of the sentinel must be ``NULL``." +"One entry should be defined for each method provided by the type; no entries " +"are needed for methods inherited from a base type. One additional entry is " +"needed at the end; it is a sentinel that marks the end of the array. The :" +"attr:`ml_name` field of the sentinel must be ``NULL``." msgstr "" #: ../../extending/newtypes.rst:261 @@ -287,15 +285,15 @@ msgid "" "added to the type which will be able to extract a value from the instance " "structure. The :attr:`type` field should contain one of the type codes " "defined in the :file:`structmember.h` header; the value will be used to " -"determine how to convert Python values to and from C values. The " -":attr:`flags` field is used to store flags which control how the attribute " -"can be accessed." +"determine how to convert Python values to and from C values. The :attr:" +"`flags` field is used to store flags which control how the attribute can be " +"accessed." msgstr "" #: ../../extending/newtypes.rst:280 msgid "" -"The following flag constants are defined in :file:`structmember.h`; they may" -" be combined using bitwise-OR." +"The following flag constants are defined in :file:`structmember.h`; they may " +"be combined using bitwise-OR." msgstr "" #: ../../extending/newtypes.rst:284 @@ -308,7 +306,7 @@ msgstr "Significado" #: ../../extending/newtypes.rst:286 msgid ":const:`READONLY`" -msgstr "" +msgstr ":const:`READONLY`" #: ../../extending/newtypes.rst:286 msgid "Never writable." @@ -316,7 +314,7 @@ msgstr "" #: ../../extending/newtypes.rst:288 msgid ":const:`READ_RESTRICTED`" -msgstr "" +msgstr ":const:`READ_RESTRICTED`" #: ../../extending/newtypes.rst:288 msgid "Not readable in restricted mode." @@ -324,7 +322,7 @@ msgstr "" #: ../../extending/newtypes.rst:290 msgid ":const:`WRITE_RESTRICTED`" -msgstr "" +msgstr ":const:`WRITE_RESTRICTED`" #: ../../extending/newtypes.rst:290 msgid "Not writable in restricted mode." @@ -332,7 +330,7 @@ msgstr "" #: ../../extending/newtypes.rst:292 msgid ":const:`RESTRICTED`" -msgstr "" +msgstr ":const:`RESTRICTED`" #: ../../extending/newtypes.rst:292 msgid "Not readable or writable in restricted mode." @@ -343,9 +341,9 @@ msgid "" "An interesting advantage of using the :c:member:`~PyTypeObject.tp_members` " "table to build descriptors that are used at runtime is that any attribute " "defined this way can have an associated doc string simply by providing the " -"text in the table. An application can use the introspection API to retrieve" -" the descriptor from the class object, and get the doc string using its " -":attr:`__doc__` attribute." +"text in the table. An application can use the introspection API to retrieve " +"the descriptor from the class object, and get the doc string using its :attr:" +"`__doc__` attribute." msgstr "" #: ../../extending/newtypes.rst:307 @@ -361,8 +359,8 @@ msgstr "" #: ../../extending/newtypes.rst:323 msgid "" "For simplicity, only the :c:type:`char\\*` version will be demonstrated " -"here; the type of the name parameter is the only difference between the " -":c:type:`char\\*` and :c:type:`PyObject\\*` flavors of the interface. This " +"here; the type of the name parameter is the only difference between the :c:" +"type:`char\\*` and :c:type:`PyObject\\*` flavors of the interface. This " "example effectively does the same thing as the generic example above, but " "does not use the generic support added in Python 2.2. It explains how the " "handler functions are called, so that if you do need to extend their " @@ -378,15 +376,15 @@ msgstr "" #: ../../extending/newtypes.rst:335 msgid "Here is an example::" -msgstr "" +msgstr "Aqui está um exemplo::" #: ../../extending/newtypes.rst:351 msgid "" -"The :c:member:`~PyTypeObject.tp_setattr` handler is called when the " -":meth:`__setattr__` or :meth:`__delattr__` method of a class instance would " -"be called. When an attribute should be deleted, the third parameter will be" -" ``NULL``. Here is an example that simply raises an exception; if this were" -" really all you wanted, the :c:member:`~PyTypeObject.tp_setattr` handler " +"The :c:member:`~PyTypeObject.tp_setattr` handler is called when the :meth:" +"`__setattr__` or :meth:`__delattr__` method of a class instance would be " +"called. When an attribute should be deleted, the third parameter will be " +"``NULL``. Here is an example that simply raises an exception; if this were " +"really all you wanted, the :c:member:`~PyTypeObject.tp_setattr` handler " "should be set to ``NULL``. ::" msgstr "" @@ -398,8 +396,8 @@ msgstr "" msgid "" "The :c:member:`~PyTypeObject.tp_richcompare` handler is called when " "comparisons are needed. It is analogous to the :ref:`rich comparison " -"methods `, like :meth:`__lt__`, and also called by " -":c:func:`PyObject_RichCompare` and :c:func:`PyObject_RichCompareBool`." +"methods `, like :meth:`__lt__`, and also called by :c:func:" +"`PyObject_RichCompare` and :c:func:`PyObject_RichCompareBool`." msgstr "" #: ../../extending/newtypes.rst:376 @@ -425,8 +423,8 @@ msgstr "" #: ../../extending/newtypes.rst:416 msgid "" -"Python supports a variety of *abstract* 'protocols;' the specific interfaces" -" provided to use these interfaces are documented in :ref:`abstract`." +"Python supports a variety of *abstract* 'protocols;' the specific interfaces " +"provided to use these interfaces are documented in :ref:`abstract`." msgstr "" #: ../../extending/newtypes.rst:420 @@ -435,8 +433,8 @@ msgid "" "of the Python implementation. In particular, the number, mapping, and " "sequence protocols have been part of Python since the beginning. Other " "protocols have been added over time. For protocols which depend on several " -"handler routines from the type implementation, the older protocols have been" -" defined as optional blocks of handlers referenced by the type object. For " +"handler routines from the type implementation, the older protocols have been " +"defined as optional blocks of handlers referenced by the type object. For " "newer protocols there are additional slots in the main type object, with a " "flag bit being set to indicate that the slots are present and should be " "checked by the interpreter. (The flag bit does not indicate that the slot " @@ -448,11 +446,11 @@ msgstr "" msgid "" "If you wish your object to be able to act like a number, a sequence, or a " "mapping object, then you place the address of a structure that implements " -"the C type :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, or " -":c:type:`PyMappingMethods`, respectively. It is up to you to fill in this " +"the C type :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, or :c:" +"type:`PyMappingMethods`, respectively. It is up to you to fill in this " "structure with appropriate values. You can find examples of the use of each " -"of these in the :file:`Objects` directory of the Python source distribution." -" ::" +"of these in the :file:`Objects` directory of the Python source " +"distribution. ::" msgstr "" #: ../../extending/newtypes.rst:444 @@ -483,24 +481,23 @@ msgstr "" #: ../../extending/newtypes.rst:472 msgid "" -"*self* is the instance of the data type which is the subject of the call. If" -" the call is ``obj1('hello')``, then *self* is ``obj1``." +"*self* is the instance of the data type which is the subject of the call. If " +"the call is ``obj1('hello')``, then *self* is ``obj1``." msgstr "" #: ../../extending/newtypes.rst:475 msgid "" -"*args* is a tuple containing the arguments to the call. You can use " -":c:func:`PyArg_ParseTuple` to extract the arguments." +"*args* is a tuple containing the arguments to the call. You can use :c:func:" +"`PyArg_ParseTuple` to extract the arguments." msgstr "" #: ../../extending/newtypes.rst:478 msgid "" -"*kwds* is a dictionary of keyword arguments that were passed. If this is " -"non-``NULL`` and you support keyword arguments, use " -":c:func:`PyArg_ParseTupleAndKeywords` to extract the arguments. If you do " -"not want to support keyword arguments and this is non-``NULL``, raise a " -":exc:`TypeError` with a message saying that keyword arguments are not " -"supported." +"*kwds* is a dictionary of keyword arguments that were passed. If this is non-" +"``NULL`` and you support keyword arguments, use :c:func:" +"`PyArg_ParseTupleAndKeywords` to extract the arguments. If you do not want " +"to support keyword arguments and this is non-``NULL``, raise a :exc:" +"`TypeError` with a message saying that keyword arguments are not supported." msgstr "" #: ../../extending/newtypes.rst:484 @@ -513,48 +510,46 @@ msgid "" "take exactly one parameter, the instance for which they are being called, " "and return a new reference. In the case of an error, they should set an " "exception and return ``NULL``. :c:member:`~PyTypeObject.tp_iter` " -"corresponds to the Python :meth:`__iter__` method, while " -":c:member:`~PyTypeObject.tp_iternext` corresponds to the Python " -":meth:`~iterator.__next__` method." +"corresponds to the Python :meth:`__iter__` method, while :c:member:" +"`~PyTypeObject.tp_iternext` corresponds to the Python :meth:`~iterator." +"__next__` method." msgstr "" #: ../../extending/newtypes.rst:517 msgid "" -"Any :term:`iterable` object must implement the " -":c:member:`~PyTypeObject.tp_iter` handler, which must return an " -":term:`iterator` object. Here the same guidelines apply as for Python " -"classes:" +"Any :term:`iterable` object must implement the :c:member:`~PyTypeObject." +"tp_iter` handler, which must return an :term:`iterator` object. Here the " +"same guidelines apply as for Python classes:" msgstr "" #: ../../extending/newtypes.rst:521 msgid "" "For collections (such as lists and tuples) which can support multiple " -"independent iterators, a new iterator should be created and returned by each" -" call to :c:member:`~PyTypeObject.tp_iter`." +"independent iterators, a new iterator should be created and returned by each " +"call to :c:member:`~PyTypeObject.tp_iter`." msgstr "" #: ../../extending/newtypes.rst:524 msgid "" -"Objects which can only be iterated over once (usually due to side effects of" -" iteration, such as file objects) can implement " -":c:member:`~PyTypeObject.tp_iter` by returning a new reference to themselves" -" -- and should also therefore implement the " -":c:member:`~PyTypeObject.tp_iternext` handler." +"Objects which can only be iterated over once (usually due to side effects of " +"iteration, such as file objects) can implement :c:member:`~PyTypeObject." +"tp_iter` by returning a new reference to themselves -- and should also " +"therefore implement the :c:member:`~PyTypeObject.tp_iternext` handler." msgstr "" #: ../../extending/newtypes.rst:529 msgid "" -"Any :term:`iterator` object should implement both " -":c:member:`~PyTypeObject.tp_iter` and :c:member:`~PyTypeObject.tp_iternext`." -" An iterator's :c:member:`~PyTypeObject.tp_iter` handler should return a " -"new reference to the iterator. Its :c:member:`~PyTypeObject.tp_iternext` " -"handler should return a new reference to the next object in the iteration, " -"if there is one. If the iteration has reached the end, " -":c:member:`~PyTypeObject.tp_iternext` may return ``NULL`` without setting an" -" exception, or it may set :exc:`StopIteration` *in addition* to returning " -"``NULL``; avoiding the exception can yield slightly better performance. If " -"an actual error occurs, :c:member:`~PyTypeObject.tp_iternext` should always " -"set an exception and return ``NULL``." +"Any :term:`iterator` object should implement both :c:member:`~PyTypeObject." +"tp_iter` and :c:member:`~PyTypeObject.tp_iternext`. An iterator's :c:member:" +"`~PyTypeObject.tp_iter` handler should return a new reference to the " +"iterator. Its :c:member:`~PyTypeObject.tp_iternext` handler should return a " +"new reference to the next object in the iteration, if there is one. If the " +"iteration has reached the end, :c:member:`~PyTypeObject.tp_iternext` may " +"return ``NULL`` without setting an exception, or it may set :exc:" +"`StopIteration` *in addition* to returning ``NULL``; avoiding the exception " +"can yield slightly better performance. If an actual error occurs, :c:member:" +"`~PyTypeObject.tp_iternext` should always set an exception and return " +"``NULL``." msgstr "" #: ../../extending/newtypes.rst:545 @@ -580,10 +575,10 @@ msgstr "" #: ../../extending/newtypes.rst:556 msgid "" -"Include a :c:type:`PyObject\\*` field in the C object structure dedicated to" -" the weak reference mechanism. The object's constructor should leave it " -"``NULL`` (which is automatic when using the default " -":c:member:`~PyTypeObject.tp_alloc`)." +"Include a :c:type:`PyObject\\*` field in the C object structure dedicated to " +"the weak reference mechanism. The object's constructor should leave it " +"``NULL`` (which is automatic when using the default :c:member:`~PyTypeObject." +"tp_alloc`)." msgstr "" #: ../../extending/newtypes.rst:561 @@ -606,8 +601,8 @@ msgstr "" #: ../../extending/newtypes.rst:581 msgid "" "The only further addition is that ``tp_dealloc`` needs to clear any weak " -"references (by calling :c:func:`PyObject_ClearWeakRefs`) if the field is " -"non-``NULL``::" +"references (by calling :c:func:`PyObject_ClearWeakRefs`) if the field is non-" +"``NULL``::" msgstr "" #: ../../extending/newtypes.rst:597 diff --git a/extending/newtypes_tutorial.po b/extending/newtypes_tutorial.po index 224dd76b5..7e23dc66d 100644 --- a/extending/newtypes_tutorial.po +++ b/extending/newtypes_tutorial.po @@ -1,26 +1,34 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Claudio Rogerio Carvalho Filho , 2019 +# Adorilson Bezerra , 2019 +# felipe caridade , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:36+0000\n" +"Last-Translator: felipe caridade , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/extending/newtypes_tutorial.rst:7 +#: ../../extending/newtypes_tutorial.rst:7 msgid "Defining Extension Types: Tutorial" -msgstr "" +msgstr "Definindo Tipos de Extensão: Tutorial" -#: ../Doc/extending/newtypes_tutorial.rst:14 +#: ../../extending/newtypes_tutorial.rst:14 msgid "" "Python allows the writer of a C extension module to define new types that " "can be manipulated from Python code, much like the built-in :class:`str` " @@ -28,12 +36,18 @@ msgid "" "pattern, but there are some details that you need to understand before you " "can get started. This document is a gentle introduction to the topic." msgstr "" +"O Python permite que o gravador de um módulo de extensão C defina novos " +"tipos que podem ser manipulados a partir do código Python, da mesma forma " +"que os tipos built-in: classe: `str` e: classe:` list`. O código para todos " +"os tipos de extensão segue um padrão, mas há alguns detalhes que você " +"precisa entender antes de começar. Este documento é uma introdução suave ao " +"tópico." -#: ../Doc/extending/newtypes_tutorial.rst:24 +#: ../../extending/newtypes_tutorial.rst:24 msgid "The Basics" -msgstr "" +msgstr "O básico" -#: ../Doc/extending/newtypes_tutorial.rst:26 +#: ../../extending/newtypes_tutorial.rst:26 msgid "" "The :term:`CPython` runtime sees all Python objects as variables of type :c:" "type:`PyObject\\*`, which serves as a \"base type\" for all Python objects. " @@ -45,20 +59,22 @@ msgid "" "functions are called \"type methods\"." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:35 +#: ../../extending/newtypes_tutorial.rst:35 msgid "" "So, if you want to define a new extension type, you need to create a new " "type object." msgstr "" +"Então, se você quiser definir um novo tipo de extensão, você precisa criar " +"um novo objeto de tipo." -#: ../Doc/extending/newtypes_tutorial.rst:38 +#: ../../extending/newtypes_tutorial.rst:38 msgid "" "This sort of thing can only be explained by example, so here's a minimal, " "but complete, module that defines a new type named :class:`Custom` inside a " "C extension module :mod:`custom`:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:43 +#: ../../extending/newtypes_tutorial.rst:43 msgid "" "What we're showing here is the traditional way of defining *static* " "extension types. It should be adequate for most uses. The C API also " @@ -66,36 +82,39 @@ msgid "" "`PyType_FromSpec` function, which isn't covered in this tutorial." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:50 +#: ../../extending/newtypes_tutorial.rst:50 msgid "" "Now that's quite a bit to take in at once, but hopefully bits will seem " "familiar from the previous chapter. This file defines three things:" msgstr "" +"Agora isso é um pouco para ser absorvido de uma só vez, mas esperamos que os " +"bits pareçam familiares no capítulo anterior. Este arquivo define três " +"coisas:" -#: ../Doc/extending/newtypes_tutorial.rst:53 +#: ../../extending/newtypes_tutorial.rst:53 msgid "" "What a :class:`Custom` **object** contains: this is the ``CustomObject`` " "struct, which is allocated once for each :class:`Custom` instance." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:55 +#: ../../extending/newtypes_tutorial.rst:55 msgid "" "How the :class:`Custom` **type** behaves: this is the ``CustomType`` struct, " "which defines a set of flags and function pointers that the interpreter " "inspects when specific operations are requested." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:58 +#: ../../extending/newtypes_tutorial.rst:58 msgid "" "How to initialize the :mod:`custom` module: this is the ``PyInit_custom`` " "function and the associated ``custommodule`` struct." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:61 +#: ../../extending/newtypes_tutorial.rst:61 msgid "The first bit is::" -msgstr "" +msgstr "O primeiro bit é ::" -#: ../Doc/extending/newtypes_tutorial.rst:67 +#: ../../extending/newtypes_tutorial.rst:67 msgid "" "This is what a Custom object will contain. ``PyObject_HEAD`` is mandatory " "at the start of each object struct and defines a field called ``ob_base`` of " @@ -105,31 +124,31 @@ msgid "" "abstract away the layout and to enable additional fields in debug builds." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:75 +#: ../../extending/newtypes_tutorial.rst:75 msgid "" "There is no semicolon above after the :c:macro:`PyObject_HEAD` macro. Be " "wary of adding one by accident: some compilers will complain." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:78 +#: ../../extending/newtypes_tutorial.rst:78 msgid "" "Of course, objects generally store additional data besides the standard " "``PyObject_HEAD`` boilerplate; for example, here is the definition for " "standard Python floats::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:87 +#: ../../extending/newtypes_tutorial.rst:87 msgid "The second bit is the definition of the type object. ::" -msgstr "" +msgstr "O segundo bit é a definição do objeto de tipo. ::" -#: ../Doc/extending/newtypes_tutorial.rst:99 +#: ../../extending/newtypes_tutorial.rst:100 msgid "" "We recommend using C99-style designated initializers as above, to avoid " "listing all the :c:type:`PyTypeObject` fields that you don't care about and " "also to avoid caring about the fields' declaration order." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:103 +#: ../../extending/newtypes_tutorial.rst:104 msgid "" "The actual definition of :c:type:`PyTypeObject` in :file:`object.h` has many " "more :ref:`fields ` than the definition above. The remaining " @@ -137,23 +156,23 @@ msgid "" "to not specify them explicitly unless you need them." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:108 +#: ../../extending/newtypes_tutorial.rst:109 msgid "We're going to pick it apart, one field at a time::" -msgstr "" +msgstr "Vamos separá-lo, um campo de cada vez ::" -#: ../Doc/extending/newtypes_tutorial.rst:112 +#: ../../extending/newtypes_tutorial.rst:113 msgid "" "This line is mandatory boilerplate to initialize the ``ob_base`` field " "mentioned above. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:117 +#: ../../extending/newtypes_tutorial.rst:118 msgid "" "The name of our type. This will appear in the default textual " "representation of our objects and in some error messages, for example:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:127 +#: ../../extending/newtypes_tutorial.rst:128 msgid "" "Note that the name is a dotted name that includes both the module name and " "the name of the type within the module. The module in this case is :mod:" @@ -162,14 +181,14 @@ msgid "" "type compatible with the :mod:`pydoc` and :mod:`pickle` modules. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:136 +#: ../../extending/newtypes_tutorial.rst:137 msgid "" "This is so that Python knows how much memory to allocate when creating new :" "class:`Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is only " "used for variable-sized objects and should otherwise be zero." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:142 +#: ../../extending/newtypes_tutorial.rst:143 msgid "" "If you want your type to be subclassable from Python, and your type has the " "same :c:member:`~PyTypeObject.tp_basicsize` as its base type, you may have " @@ -183,23 +202,23 @@ msgid "" "your base type, and therefore increasing its size." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:152 +#: ../../extending/newtypes_tutorial.rst:153 msgid "We set the class flags to :const:`Py_TPFLAGS_DEFAULT`. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:156 +#: ../../extending/newtypes_tutorial.rst:157 msgid "" "All types should include this constant in their flags. It enables all of " "the members defined until at least Python 3.3. If you need further members, " "you will need to OR the corresponding flags." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:160 +#: ../../extending/newtypes_tutorial.rst:161 msgid "" "We provide a doc string for the type in :c:member:`~PyTypeObject.tp_doc`. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:164 +#: ../../extending/newtypes_tutorial.rst:165 msgid "" "To enable object creation, we have to provide a :c:member:`~PyTypeObject." "tp_new` handler. This is the equivalent of the Python method :meth:" @@ -208,53 +227,55 @@ msgid "" "`PyType_GenericNew`. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:171 +#: ../../extending/newtypes_tutorial.rst:172 msgid "" "Everything else in the file should be familiar, except for some code in :c:" "func:`PyInit_custom`::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:177 +#: ../../extending/newtypes_tutorial.rst:178 msgid "" "This initializes the :class:`Custom` type, filling in a number of members to " "the appropriate default values, including :attr:`ob_type` that we initially " -"set to *NULL*. ::" +"set to ``NULL``. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:183 +#: ../../extending/newtypes_tutorial.rst:189 msgid "" "This adds the type to the module dictionary. This allows us to create :" "class:`Custom` instances by calling the :class:`Custom` class:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:191 +#: ../../extending/newtypes_tutorial.rst:197 msgid "" "That's it! All that remains is to build it; put the above code in a file " "called :file:`custom.c` and:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:200 +#: ../../extending/newtypes_tutorial.rst:206 msgid "in a file called :file:`setup.py`; then typing" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:206 +#: ../../extending/newtypes_tutorial.rst:212 msgid "" "at a shell should produce a file :file:`custom.so` in a subdirectory; move " "to that directory and fire up Python --- you should be able to ``import " "custom`` and play around with Custom objects." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:210 +#: ../../extending/newtypes_tutorial.rst:216 msgid "That wasn't so hard, was it?" -msgstr "" +msgstr "Isso não foi tão difícil, foi?" -#: ../Doc/extending/newtypes_tutorial.rst:212 +#: ../../extending/newtypes_tutorial.rst:218 msgid "" "Of course, the current Custom type is pretty uninteresting. It has no data " "and doesn't do anything. It can't even be subclassed." msgstr "" +"Naturalmente, o tipo personalizado atual é bastante desinteressante. Não tem " +"dados e não faz nada. Não pode nem ser subclassificado." -#: ../Doc/extending/newtypes_tutorial.rst:216 +#: ../../extending/newtypes_tutorial.rst:222 msgid "" "While this documentation showcases the standard :mod:`distutils` module for " "building C extensions, it is recommended in real-world use cases to use the " @@ -264,32 +285,34 @@ msgid "" "packages/>`_." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:224 +#: ../../extending/newtypes_tutorial.rst:230 msgid "Adding data and methods to the Basic example" -msgstr "" +msgstr "Adicionando dados e métodos ao exemplo básico" -#: ../Doc/extending/newtypes_tutorial.rst:226 +#: ../../extending/newtypes_tutorial.rst:232 msgid "" "Let's extend the basic example to add some data and methods. Let's also " "make the type usable as a base class. We'll create a new module, :mod:" "`custom2` that adds these capabilities:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:233 +#: ../../extending/newtypes_tutorial.rst:239 msgid "This version of the module has a number of changes." -msgstr "" +msgstr "Esta versão do módulo possui várias alterações." -#: ../Doc/extending/newtypes_tutorial.rst:235 +#: ../../extending/newtypes_tutorial.rst:241 msgid "We've added an extra include::" -msgstr "" +msgstr "Nós adicionamos uma inclusão extra ::" -#: ../Doc/extending/newtypes_tutorial.rst:239 +#: ../../extending/newtypes_tutorial.rst:245 msgid "" "This include provides declarations that we use to handle attributes, as " "described a bit later." msgstr "" +"Esta inclusão fornece declarações que usamos para manipular atributos, " +"conforme descrito um pouco mais tarde." -#: ../Doc/extending/newtypes_tutorial.rst:242 +#: ../../extending/newtypes_tutorial.rst:248 msgid "" "The :class:`Custom` type now has three data attributes in its C struct, " "*first*, *last*, and *number*. The *first* and *last* variables are Python " @@ -297,32 +320,32 @@ msgid "" "integer." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:246 +#: ../../extending/newtypes_tutorial.rst:252 msgid "The object structure is updated accordingly::" -msgstr "" +msgstr "A estrutura do objeto é atualizada de acordo ::" -#: ../Doc/extending/newtypes_tutorial.rst:255 +#: ../../extending/newtypes_tutorial.rst:261 msgid "" "Because we now have data to manage, we have to be more careful about object " "allocation and deallocation. At a minimum, we need a deallocation method::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:266 +#: ../../extending/newtypes_tutorial.rst:272 msgid "which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:270 +#: ../../extending/newtypes_tutorial.rst:276 msgid "" "This method first clears the reference counts of the two Python attributes. :" -"c:func:`Py_XDECREF` correctly handles the case where its argument is *NULL* " -"(which might happen here if ``tp_new`` failed midway). It then calls the :c:" -"member:`~PyTypeObject.tp_free` member of the object's type (computed by " -"``Py_TYPE(self)``) to free the object's memory. Note that the object's type " -"might not be :class:`CustomType`, because the object may be an instance of a " -"subclass." +"c:func:`Py_XDECREF` correctly handles the case where its argument is " +"``NULL`` (which might happen here if ``tp_new`` failed midway). It then " +"calls the :c:member:`~PyTypeObject.tp_free` member of the object's type " +"(computed by ``Py_TYPE(self)``) to free the object's memory. Note that the " +"object's type might not be :class:`CustomType`, because the object may be an " +"instance of a subclass." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:279 +#: ../../extending/newtypes_tutorial.rst:285 msgid "" "The explicit cast to ``destructor`` above is needed because we defined " "``Custom_dealloc`` to take a ``CustomObject *`` argument, but the " @@ -331,17 +354,17 @@ msgid "" "oriented polymorphism, in C!" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:285 +#: ../../extending/newtypes_tutorial.rst:291 msgid "" "We want to make sure that the first and last names are initialized to empty " "strings, so we provide a ``tp_new`` implementation::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:309 +#: ../../extending/newtypes_tutorial.rst:315 msgid "and install it in the :c:member:`~PyTypeObject.tp_new` member::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:313 +#: ../../extending/newtypes_tutorial.rst:319 msgid "" "The ``tp_new`` handler is responsible for creating (as opposed to " "initializing) objects of the type. It is exposed in Python as the :meth:" @@ -349,10 +372,10 @@ msgid "" "indeed many extension types will simply reuse :c:func:`PyType_GenericNew` as " "done in the first version of the ``Custom`` type above. In this case, we " "use the ``tp_new`` handler to initialize the ``first`` and ``last`` " -"attributes to non-*NULL* default values." +"attributes to non-``NULL`` default values." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:321 +#: ../../extending/newtypes_tutorial.rst:327 msgid "" "``tp_new`` is passed the type being instantiated (not necessarily " "``CustomType``, if a subclass is instantiated) and any arguments passed when " @@ -362,25 +385,25 @@ msgid "" "k.a. ``tp_init`` in C or ``__init__`` in Python) methods." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:329 +#: ../../extending/newtypes_tutorial.rst:335 msgid "" "``tp_new`` shouldn't call ``tp_init`` explicitly, as the interpreter will do " "it itself." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:332 +#: ../../extending/newtypes_tutorial.rst:338 msgid "" "The ``tp_new`` implementation calls the :c:member:`~PyTypeObject.tp_alloc` " "slot to allocate memory::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:337 +#: ../../extending/newtypes_tutorial.rst:343 msgid "" "Since memory allocation may fail, we must check the :c:member:`~PyTypeObject." -"tp_alloc` result against *NULL* before proceeding." +"tp_alloc` result against ``NULL`` before proceeding." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:341 +#: ../../extending/newtypes_tutorial.rst:347 msgid "" "We didn't fill the :c:member:`~PyTypeObject.tp_alloc` slot ourselves. " "Rather :c:func:`PyType_Ready` fills it for us by inheriting it from our base " @@ -388,7 +411,7 @@ msgid "" "allocation strategy." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:347 +#: ../../extending/newtypes_tutorial.rst:353 msgid "" "If you are creating a co-operative :c:member:`~PyTypeObject.tp_new` (one " "that calls a base type's :c:member:`~PyTypeObject.tp_new` or :meth:" @@ -401,17 +424,17 @@ msgid "" "subclasses without getting a :exc:`TypeError`.)" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:357 +#: ../../extending/newtypes_tutorial.rst:363 msgid "" "We also define an initialization function which accepts arguments to provide " "initial values for our instance::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:386 +#: ../../extending/newtypes_tutorial.rst:392 msgid "by filling the :c:member:`~PyTypeObject.tp_init` slot. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:390 +#: ../../extending/newtypes_tutorial.rst:396 msgid "" "The :c:member:`~PyTypeObject.tp_init` slot is exposed in Python as the :meth:" "`__init__` method. It is used to initialize an object after it's created. " @@ -419,7 +442,7 @@ msgid "" "return either ``0`` on success or ``-1`` on error." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:395 +#: ../../extending/newtypes_tutorial.rst:401 msgid "" "Unlike the ``tp_new`` handler, there is no guarantee that ``tp_init`` is " "called at all (for example, the :mod:`pickle` module by default doesn't " @@ -430,7 +453,7 @@ msgid "" "``first`` member like this::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:409 +#: ../../extending/newtypes_tutorial.rst:415 msgid "" "But this would be risky. Our type doesn't restrict the type of the " "``first`` member, so it could be any kind of object. It could have a " @@ -440,66 +463,70 @@ msgid "" "and modifies our object." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:416 +#: ../../extending/newtypes_tutorial.rst:422 msgid "" "To be paranoid and protect ourselves against this possibility, we almost " "always reassign members before decrementing their reference counts. When " "don't we have to do this?" msgstr "" +"Para sermos paranóicos e nos protegermos contra essa possibilidade, quase " +"sempre realocamos os membros antes de decrementar suas contagens de " +"referência. Quando não temos que fazer isso?" -#: ../Doc/extending/newtypes_tutorial.rst:420 +#: ../../extending/newtypes_tutorial.rst:426 msgid "when we absolutely know that the reference count is greater than 1;" msgstr "" +"quando sabemos absolutamente que a contagem de referência é maior que 1;" -#: ../Doc/extending/newtypes_tutorial.rst:422 +#: ../../extending/newtypes_tutorial.rst:428 msgid "" "when we know that deallocation of the object [#]_ will neither release the :" "term:`GIL` nor cause any calls back into our type's code;" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:425 +#: ../../extending/newtypes_tutorial.rst:431 msgid "" "when decrementing a reference count in a :c:member:`~PyTypeObject." "tp_dealloc` handler on a type which doesn't support cyclic garbage " "collection [#]_." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:428 +#: ../../extending/newtypes_tutorial.rst:434 msgid "" "We want to expose our instance variables as attributes. There are a number " "of ways to do that. The simplest way is to define member definitions::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:441 +#: ../../extending/newtypes_tutorial.rst:447 msgid "" "and put the definitions in the :c:member:`~PyTypeObject.tp_members` slot::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:445 +#: ../../extending/newtypes_tutorial.rst:451 msgid "" "Each member definition has a member name, type, offset, access flags and " "documentation string. See the :ref:`Generic-Attribute-Management` section " "below for details." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:449 +#: ../../extending/newtypes_tutorial.rst:455 msgid "" "A disadvantage of this approach is that it doesn't provide a way to restrict " "the types of objects that can be assigned to the Python attributes. We " "expect the first and last names to be strings, but any Python objects can be " "assigned. Further, the attributes can be deleted, setting the C pointers to " -"*NULL*. Even though we can make sure the members are initialized to non-" -"*NULL* values, the members can be set to *NULL* if the attributes are " +"``NULL``. Even though we can make sure the members are initialized to non-" +"``NULL`` values, the members can be set to ``NULL`` if the attributes are " "deleted." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:456 +#: ../../extending/newtypes_tutorial.rst:462 msgid "" "We define a single method, :meth:`Custom.name()`, that outputs the objects " "name as the concatenation of the first and last names. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:473 +#: ../../extending/newtypes_tutorial.rst:479 msgid "" "The method is implemented as a C function that takes a :class:`Custom` (or :" "class:`Custom` subclass) instance as the first argument. Methods always " @@ -509,32 +536,34 @@ msgid "" "method is equivalent to the Python method:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:485 +#: ../../extending/newtypes_tutorial.rst:491 msgid "" "Note that we have to check for the possibility that our :attr:`first` and :" -"attr:`last` members are *NULL*. This is because they can be deleted, in " -"which case they are set to *NULL*. It would be better to prevent deletion " +"attr:`last` members are ``NULL``. This is because they can be deleted, in " +"which case they are set to ``NULL``. It would be better to prevent deletion " "of these attributes and to restrict the attribute values to be strings. " "We'll see how to do that in the next section." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:491 +#: ../../extending/newtypes_tutorial.rst:497 msgid "" "Now that we've defined the method, we need to create an array of method " "definitions::" msgstr "" +"Agora que definimos o método, precisamos criar uma array de definições de " +"métodos:" -#: ../Doc/extending/newtypes_tutorial.rst:501 +#: ../../extending/newtypes_tutorial.rst:507 msgid "" "(note that we used the :const:`METH_NOARGS` flag to indicate that the method " "is expecting no arguments other than *self*)" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:504 +#: ../../extending/newtypes_tutorial.rst:510 msgid "and assign it to the :c:member:`~PyTypeObject.tp_methods` slot::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:508 +#: ../../extending/newtypes_tutorial.rst:514 msgid "" "Finally, we'll make our type usable as a base class for subclassing. We've " "written our methods carefully so far so that they don't make any assumptions " @@ -542,22 +571,22 @@ msgid "" "to add the :const:`Py_TPFLAGS_BASETYPE` to our class flag definition::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:515 +#: ../../extending/newtypes_tutorial.rst:521 msgid "" "We rename :c:func:`PyInit_custom` to :c:func:`PyInit_custom2`, update the " "module name in the :c:type:`PyModuleDef` struct, and update the full class " "name in the :c:type:`PyTypeObject` struct." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:519 +#: ../../extending/newtypes_tutorial.rst:525 msgid "Finally, we update our :file:`setup.py` file to build the new module:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:532 +#: ../../extending/newtypes_tutorial.rst:538 msgid "Providing finer control over data attributes" -msgstr "" +msgstr "Fornecendo controle mais preciso sobre atributos de dados" -#: ../Doc/extending/newtypes_tutorial.rst:534 +#: ../../extending/newtypes_tutorial.rst:540 msgid "" "In this section, we'll provide finer control over how the :attr:`first` and :" "attr:`last` attributes are set in the :class:`Custom` example. In the " @@ -566,14 +595,14 @@ msgid "" "make sure that these attributes always contain strings." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:543 +#: ../../extending/newtypes_tutorial.rst:549 msgid "" "To provide greater control, over the :attr:`first` and :attr:`last` " "attributes, we'll use custom getter and setter functions. Here are the " "functions for getting and setting the :attr:`first` attribute::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:574 +#: ../../extending/newtypes_tutorial.rst:580 msgid "" "The getter function is passed a :class:`Custom` object and a \"closure\", " "which is a void pointer. In this case, the closure is ignored. (The " @@ -583,68 +612,68 @@ msgid "" "data in the closure.)" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:580 +#: ../../extending/newtypes_tutorial.rst:586 msgid "" "The setter function is passed the :class:`Custom` object, the new value, and " -"the closure. The new value may be *NULL*, in which case the attribute is " +"the closure. The new value may be ``NULL``, in which case the attribute is " "being deleted. In our setter, we raise an error if the attribute is deleted " "or if its new value is not a string." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:585 +#: ../../extending/newtypes_tutorial.rst:591 msgid "We create an array of :c:type:`PyGetSetDef` structures::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:595 +#: ../../extending/newtypes_tutorial.rst:601 msgid "and register it in the :c:member:`~PyTypeObject.tp_getset` slot::" -msgstr "" +msgstr "e registra isso num slot :c:member:`~PyTypeObject.tp_getset`::" -#: ../Doc/extending/newtypes_tutorial.rst:599 +#: ../../extending/newtypes_tutorial.rst:605 msgid "" "The last item in a :c:type:`PyGetSetDef` structure is the \"closure\" " "mentioned above. In this case, we aren't using a closure, so we just pass " -"*NULL*." +"``NULL``." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:602 +#: ../../extending/newtypes_tutorial.rst:608 msgid "We also remove the member definitions for these attributes::" -msgstr "" +msgstr "Também removemos as definições de membros para esses atributos:" -#: ../Doc/extending/newtypes_tutorial.rst:610 +#: ../../extending/newtypes_tutorial.rst:616 msgid "" "We also need to update the :c:member:`~PyTypeObject.tp_init` handler to only " "allow strings [#]_ to be passed::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:639 +#: ../../extending/newtypes_tutorial.rst:645 msgid "" "With these changes, we can assure that the ``first`` and ``last`` members " -"are never *NULL* so we can remove checks for *NULL* values in almost all " +"are never ``NULL`` so we can remove checks for ``NULL`` values in almost all " "cases. This means that most of the :c:func:`Py_XDECREF` calls can be " "converted to :c:func:`Py_DECREF` calls. The only place we can't change " "these calls is in the ``tp_dealloc`` implementation, where there is the " "possibility that the initialization of these members failed in ``tp_new``." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:646 +#: ../../extending/newtypes_tutorial.rst:652 msgid "" "We also rename the module initialization function and module name in the " "initialization function, as we did before, and we add an extra definition to " "the :file:`setup.py` file." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:652 +#: ../../extending/newtypes_tutorial.rst:658 msgid "Supporting cyclic garbage collection" -msgstr "" +msgstr "Apoiando a coleta de lixo cíclica" -#: ../Doc/extending/newtypes_tutorial.rst:654 +#: ../../extending/newtypes_tutorial.rst:660 msgid "" "Python has a :term:`cyclic garbage collector (GC) ` that " "can identify unneeded objects even when their reference counts are not zero. " "This can happen when objects are involved in cycles. For example, consider:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:664 +#: ../../extending/newtypes_tutorial.rst:670 msgid "" "In this example, we create a list that contains itself. When we delete it, " "it still has a reference from itself. Its reference count doesn't drop to " @@ -652,7 +681,7 @@ msgid "" "out that the list is garbage and free it." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:669 +#: ../../extending/newtypes_tutorial.rst:675 msgid "" "In the second version of the :class:`Custom` example, we allowed any kind of " "object to be stored in the :attr:`first` or :attr:`last` attributes [#]_. " @@ -661,7 +690,7 @@ msgid "" "reasons, :class:`Custom` objects can participate in cycles:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:683 +#: ../../extending/newtypes_tutorial.rst:689 msgid "" "To allow a :class:`Custom` instance participating in a reference cycle to be " "properly detected and collected by the cyclic GC, our :class:`Custom` type " @@ -669,13 +698,13 @@ msgid "" "slots:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:690 +#: ../../extending/newtypes_tutorial.rst:696 msgid "" "First, the traversal method lets the cyclic GC know about subobjects that " "could participate in cycles::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:710 +#: ../../extending/newtypes_tutorial.rst:716 msgid "" "For each subobject that can participate in cycles, we need to call the :c:" "func:`visit` function, which is passed to the traversal method. The :c:func:" @@ -684,47 +713,47 @@ msgid "" "be returned if it is non-zero." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:716 +#: ../../extending/newtypes_tutorial.rst:722 msgid "" "Python provides a :c:func:`Py_VISIT` macro that automates calling visit " "functions. With :c:func:`Py_VISIT`, we can minimize the amount of " "boilerplate in ``Custom_traverse``::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:729 +#: ../../extending/newtypes_tutorial.rst:735 msgid "" "The :c:member:`~PyTypeObject.tp_traverse` implementation must name its " "arguments exactly *visit* and *arg* in order to use :c:func:`Py_VISIT`." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:732 +#: ../../extending/newtypes_tutorial.rst:738 msgid "" "Second, we need to provide a method for clearing any subobjects that can " "participate in cycles::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:743 +#: ../../extending/newtypes_tutorial.rst:749 msgid "" "Notice the use of the :c:func:`Py_CLEAR` macro. It is the recommended and " "safe way to clear data attributes of arbitrary types while decrementing " "their reference counts. If you were to call :c:func:`Py_XDECREF` instead on " -"the attribute before setting it to *NULL*, there is a possibility that the " +"the attribute before setting it to ``NULL``, there is a possibility that the " "attribute's destructor would call back into code that reads the attribute " "again (*especially* if there is a reference cycle)." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:751 +#: ../../extending/newtypes_tutorial.rst:757 msgid "You could emulate :c:func:`Py_CLEAR` by writing::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:758 +#: ../../extending/newtypes_tutorial.rst:764 msgid "" "Nevertheless, it is much easier and less error-prone to always use :c:func:" "`Py_CLEAR` when deleting an attribute. Don't try to micro-optimize at the " "expense of robustness!" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:762 +#: ../../extending/newtypes_tutorial.rst:768 msgid "" "The deallocator ``Custom_dealloc`` may call arbitrary code when clearing " "attributes. It means the circular GC can be triggered inside the function. " @@ -734,12 +763,12 @@ msgid "" "`PyObject_GC_UnTrack` and ``Custom_clear``::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:777 +#: ../../extending/newtypes_tutorial.rst:783 msgid "" "Finally, we add the :const:`Py_TPFLAGS_HAVE_GC` flag to the class flags::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:781 +#: ../../extending/newtypes_tutorial.rst:787 msgid "" "That's pretty much it. If we had written custom :c:member:`~PyTypeObject." "tp_alloc` or :c:member:`~PyTypeObject.tp_free` handlers, we'd need to modify " @@ -747,11 +776,11 @@ msgid "" "automatically provided." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:787 +#: ../../extending/newtypes_tutorial.rst:793 msgid "Subclassing other types" -msgstr "" +msgstr "Subclassificando outros tipos" -#: ../Doc/extending/newtypes_tutorial.rst:789 +#: ../../extending/newtypes_tutorial.rst:795 msgid "" "It is possible to create new extension types that are derived from existing " "types. It is easiest to inherit from the built in types, since an extension " @@ -759,7 +788,7 @@ msgid "" "share these :c:type:`PyTypeObject` structures between extension modules." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:794 +#: ../../extending/newtypes_tutorial.rst:800 msgid "" "In this example we will create a :class:`SubList` type that inherits from " "the built-in :class:`list` type. The new type will be completely compatible " @@ -767,34 +796,34 @@ msgid "" "that increases an internal counter:" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:814 +#: ../../extending/newtypes_tutorial.rst:820 msgid "" "As you can see, the source code closely resembles the :class:`Custom` " "examples in previous sections. We will break down the main differences " "between them. ::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:822 +#: ../../extending/newtypes_tutorial.rst:828 msgid "" "The primary difference for derived type objects is that the base type's " "object structure must be the first value. The base type will already " "include the :c:func:`PyObject_HEAD` at the beginning of its structure." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:826 +#: ../../extending/newtypes_tutorial.rst:832 msgid "" "When a Python object is a :class:`SubList` instance, its ``PyObject *`` " "pointer can be safely cast to both ``PyListObject *`` and ``SubListObject " "*``::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:838 +#: ../../extending/newtypes_tutorial.rst:844 msgid "" "We see above how to call through to the :attr:`__init__` method of the base " "type." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:841 +#: ../../extending/newtypes_tutorial.rst:847 msgid "" "This pattern is important when writing a type with custom :c:member:" "`~PyTypeObject.tp_new` and :c:member:`~PyTypeObject.tp_dealloc` members. " @@ -803,7 +832,7 @@ msgid "" "the base class handle it by calling its own :c:member:`~PyTypeObject.tp_new`." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:847 +#: ../../extending/newtypes_tutorial.rst:853 msgid "" "The :c:type:`PyTypeObject` struct supports a :c:member:`~PyTypeObject." "tp_base` specifying the type's concrete base class. Due to cross-platform " @@ -812,7 +841,7 @@ msgid "" "function::" msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:870 +#: ../../extending/newtypes_tutorial.rst:881 msgid "" "Before calling :c:func:`PyType_Ready`, the type structure must have the :c:" "member:`~PyTypeObject.tp_base` slot filled in. When we are deriving an " @@ -821,29 +850,31 @@ msgid "" "from the base type will be inherited." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:876 +#: ../../extending/newtypes_tutorial.rst:887 msgid "" "After that, calling :c:func:`PyType_Ready` and adding the type object to the " "module is the same as with the basic :class:`Custom` examples." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:881 +#: ../../extending/newtypes_tutorial.rst:892 msgid "Footnotes" -msgstr "" +msgstr "Notas de rodapé" -#: ../Doc/extending/newtypes_tutorial.rst:882 +#: ../../extending/newtypes_tutorial.rst:893 msgid "" "This is true when we know that the object is a basic type, like a string or " "a float." msgstr "" +"Isso é verdade quando sabemos que o objeto é um tipo básico, como uma string " +"ou um float." -#: ../Doc/extending/newtypes_tutorial.rst:885 +#: ../../extending/newtypes_tutorial.rst:896 msgid "" "We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler in " "this example, because our type doesn't support garbage collection." msgstr "" -#: ../Doc/extending/newtypes_tutorial.rst:888 +#: ../../extending/newtypes_tutorial.rst:899 msgid "" "We now know that the first and last members are strings, so perhaps we could " "be less careful about decrementing their reference counts, however, we " @@ -852,10 +883,19 @@ msgid "" "deallocating an instance of a string subclass won't call back into our " "objects." msgstr "" +"Agora sabemos que o primeiro e último membros são strings, então talvez " +"pudéssemos ter menos cuidado com a diminuição de suas contagens de " +"referência, no entanto, aceitamos instâncias de subclasses de string. Mesmo " +"que a desalocação de cadeias normais não retorne aos nossos objetos, não " +"podemos garantir que a desalocação de uma instância de uma subclasse de " +"cadeias de caracteres não retornará aos nossos objetos." -#: ../Doc/extending/newtypes_tutorial.rst:894 +#: ../../extending/newtypes_tutorial.rst:905 msgid "" "Also, even with our attributes restricted to strings instances, the user " "could pass arbitrary :class:`str` subclasses and therefore still create " "reference cycles." msgstr "" +"Além disso, mesmo com nossos atributos restritos a instâncias de strings, o " +"usuário poderia passar arbitrariamente subclasses: classe: `str` e, " +"portanto, ainda criar ciclos de referência." diff --git a/extending/windows.po b/extending/windows.po index 97a886e25..fd78a629c 100644 --- a/extending/windows.po +++ b/extending/windows.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # felipe caridade , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" "Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,8 +30,8 @@ msgstr "Construindo Extensões C e C++ no Windows" #: ../../extending/windows.rst:10 msgid "" "This chapter briefly explains how to create a Windows extension module for " -"Python using Microsoft Visual C++, and follows with more detailed background" -" information on how it works. The explanatory material is useful for both " +"Python using Microsoft Visual C++, and follows with more detailed background " +"information on how it works. The explanatory material is useful for both " "the Windows programmer learning to build Python extensions and the Unix " "programmer interested in producing software which can be successfully built " "on both Unix and Windows." @@ -40,8 +41,8 @@ msgstr "" msgid "" "Module authors are encouraged to use the distutils approach for building " "extension modules, instead of the one described in this section. You will " -"still need the C compiler that was used to build Python; typically Microsoft" -" Visual C++." +"still need the C compiler that was used to build Python; typically Microsoft " +"Visual C++." msgstr "" "Os autores de módulos são encorajados a usar a abordagem distutils para " "construir módulos de extensão, em vez daquele descrito nesta seção. Você " @@ -92,8 +93,8 @@ msgstr "" #: ../../extending/windows.rst:57 msgid "" "In Unix, a shared object (:file:`.so`) file contains code to be used by the " -"program, and also the names of functions and data that it expects to find in" -" the program. When the file is joined to the program, all references to " +"program, and also the names of functions and data that it expects to find in " +"the program. When the file is joined to the program, all references to " "those functions and data in the file's code are changed to point to the " "actual locations in the program where the functions and data are placed in " "memory. This is basically a link operation." @@ -104,53 +105,52 @@ msgid "" "In Windows, a dynamic-link library (:file:`.dll`) file has no dangling " "references. Instead, an access to functions or data goes through a lookup " "table. So the DLL code does not have to be fixed up at runtime to refer to " -"the program's memory; instead, the code already uses the DLL's lookup table," -" and the lookup table is modified at runtime to point to the functions and " +"the program's memory; instead, the code already uses the DLL's lookup table, " +"and the lookup table is modified at runtime to point to the functions and " "data." msgstr "" #: ../../extending/windows.rst:70 msgid "" "In Unix, there is only one type of library file (:file:`.a`) which contains " -"code from several object files (:file:`.o`). During the link step to create" -" a shared object file (:file:`.so`), the linker may find that it doesn't " -"know where an identifier is defined. The linker will look for it in the " -"object files in the libraries; if it finds it, it will include all the code " -"from that object file." +"code from several object files (:file:`.o`). During the link step to create " +"a shared object file (:file:`.so`), the linker may find that it doesn't know " +"where an identifier is defined. The linker will look for it in the object " +"files in the libraries; if it finds it, it will include all the code from " +"that object file." msgstr "" #: ../../extending/windows.rst:76 msgid "" "In Windows, there are two types of library, a static library and an import " -"library (both called :file:`.lib`). A static library is like a Unix " -":file:`.a` file; it contains code to be included as necessary. An import " -"library is basically used only to reassure the linker that a certain " -"identifier is legal, and will be present in the program when the DLL is " -"loaded. So the linker uses the information from the import library to build" -" the lookup table for using identifiers that are not included in the DLL. " -"When an application or a DLL is linked, an import library may be generated, " -"which will need to be used for all future DLLs that depend on the symbols in" -" the application or DLL." +"library (both called :file:`.lib`). A static library is like a Unix :file:`." +"a` file; it contains code to be included as necessary. An import library is " +"basically used only to reassure the linker that a certain identifier is " +"legal, and will be present in the program when the DLL is loaded. So the " +"linker uses the information from the import library to build the lookup " +"table for using identifiers that are not included in the DLL. When an " +"application or a DLL is linked, an import library may be generated, which " +"will need to be used for all future DLLs that depend on the symbols in the " +"application or DLL." msgstr "" #: ../../extending/windows.rst:86 msgid "" "Suppose you are building two dynamic-load modules, B and C, which should " -"share another block of code A. On Unix, you would *not* pass :file:`A.a` to" -" the linker for :file:`B.so` and :file:`C.so`; that would cause it to be " -"included twice, so that B and C would each have their own copy. In Windows," -" building :file:`A.dll` will also build :file:`A.lib`. You *do* pass " -":file:`A.lib` to the linker for B and C. :file:`A.lib` does not contain " -"code; it just contains information which will be used at runtime to access " -"A's code." +"share another block of code A. On Unix, you would *not* pass :file:`A.a` to " +"the linker for :file:`B.so` and :file:`C.so`; that would cause it to be " +"included twice, so that B and C would each have their own copy. In Windows, " +"building :file:`A.dll` will also build :file:`A.lib`. You *do* pass :file:" +"`A.lib` to the linker for B and C. :file:`A.lib` does not contain code; it " +"just contains information which will be used at runtime to access A's code." msgstr "" #: ../../extending/windows.rst:94 msgid "" "In Windows, using an import library is sort of like using ``import spam``; " "it gives you access to spam's names, but does not create a separate copy. " -"On Unix, linking with a library is more like ``from spam import *``; it does" -" create a separate copy." +"On Unix, linking with a library is more like ``from spam import *``; it does " +"create a separate copy." msgstr "" #: ../../extending/windows.rst:103 @@ -160,8 +160,8 @@ msgstr "Usando DLLs na prática" #: ../../extending/windows.rst:108 msgid "" "Windows Python is built in Microsoft Visual C++; using other compilers may " -"or may not work (though Borland seems to). The rest of this section is " -"MSVC++ specific." +"or may not work (though Borland seems to). The rest of this section is MSVC+" +"+ specific." msgstr "" #: ../../extending/windows.rst:112 @@ -175,21 +175,21 @@ msgstr "" msgid "" "The first command created three files: :file:`spam.obj`, :file:`spam.dll` " "and :file:`spam.lib`. :file:`Spam.dll` does not contain any Python " -"functions (such as :c:func:`PyArg_ParseTuple`), but it does know how to find" -" the Python code thanks to :file:`pythonXY.lib`." +"functions (such as :c:func:`PyArg_ParseTuple`), but it does know how to find " +"the Python code thanks to :file:`pythonXY.lib`." msgstr "" #: ../../extending/windows.rst:124 msgid "" -"The second command created :file:`ni.dll` (and :file:`.obj` and " -":file:`.lib`), which knows how to find the necessary functions from spam, " -"and also from the Python executable." +"The second command created :file:`ni.dll` (and :file:`.obj` and :file:`." +"lib`), which knows how to find the necessary functions from spam, and also " +"from the Python executable." msgstr "" #: ../../extending/windows.rst:128 msgid "" -"Not every identifier is exported to the lookup table. If you want any other" -" modules (including Python) to be able to see your identifiers, you have to " +"Not every identifier is exported to the lookup table. If you want any other " +"modules (including Python) to be able to see your identifiers, you have to " "say ``_declspec(dllexport)``, as in ``void _declspec(dllexport) " "initspam(void)`` or ``PyObject _declspec(dllexport) *NiGetSpamData(void)``." msgstr "" diff --git a/faq/design.po b/faq/design.po index 491689007..4ea3d8677 100644 --- a/faq/design.po +++ b/faq/design.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Fernando, 2019 -# +# Amanda Savluchinske , 2019 +# Aline Balogh , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: Fernando, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Aline Balogh , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,8 +49,8 @@ msgstr "" #: ../../faq/design.rst:17 msgid "" -"Since there are no begin/end brackets there cannot be a disagreement between" -" grouping perceived by the parser and the human reader. Occasionally C " +"Since there are no begin/end brackets there cannot be a disagreement between " +"grouping perceived by the parser and the human reader. Occasionally C " "programmers will encounter a fragment of code like this::" msgstr "" @@ -61,11 +64,11 @@ msgstr "" #: ../../faq/design.rst:31 msgid "" -"Because there are no begin/end brackets, Python is much less prone to " -"coding-style conflicts. In C there are many different ways to place the " -"braces. If you're used to reading and writing code that uses one style, you " -"will feel at least slightly uneasy when reading (or being required to write)" -" another style." +"Because there are no begin/end brackets, Python is much less prone to coding-" +"style conflicts. In C there are many different ways to place the braces. If " +"you're used to reading and writing code that uses one style, you will feel " +"at least slightly uneasy when reading (or being required to write) another " +"style." msgstr "" #: ../../faq/design.rst:36 @@ -73,8 +76,8 @@ msgid "" "Many coding styles place begin/end brackets on a line by themselves. This " "makes programs considerably longer and wastes valuable screen space, making " "it harder to get a good overview of a program. Ideally, a function should " -"fit on one screen (say, 20--30 lines). 20 lines of Python can do a lot more" -" work than 20 lines of C. This is not solely due to the lack of begin/end " +"fit on one screen (say, 20--30 lines). 20 lines of Python can do a lot more " +"work than 20 lines of C. This is not solely due to the lack of begin/end " "brackets -- the lack of declarations and the high-level data types are also " "responsible -- but the indentation-based syntax certainly helps." msgstr "" @@ -82,18 +85,20 @@ msgstr "" #: ../../faq/design.rst:46 msgid "Why am I getting strange results with simple arithmetic operations?" msgstr "" +"Por que eu estou recebendo resultados estranhos com simples operações " +"aritméticas?" #: ../../faq/design.rst:48 msgid "See the next question." -msgstr "" +msgstr "Veja a próxima questão." #: ../../faq/design.rst:52 msgid "Why are floating-point calculations so inaccurate?" -msgstr "" +msgstr "Por que o calculo de pontos flutuantes são tão imprecisos?" #: ../../faq/design.rst:54 msgid "Users are often surprised by results like this::" -msgstr "" +msgstr "Usuários frequentemente são surpresos por resultados como este::" #: ../../faq/design.rst:59 msgid "" @@ -101,16 +106,18 @@ msgid "" "Python, and much more to do with how the underlying platform handles " "floating-point numbers." msgstr "" +"e pensam que isto é um bug do Python. Não é não. Isto tem pouco a ver com o " +"Python, e muito mais a ver com como a estrutura da plataforma lida com " +"números em ponto flutuante." #: ../../faq/design.rst:63 msgid "" -"The :class:`float` type in CPython uses a C ``double`` for storage. A " -":class:`float` object's value is stored in binary floating-point with a " -"fixed precision (typically 53 bits) and Python uses C operations, which in " -"turn rely on the hardware implementation in the processor, to perform " -"floating-point operations. This means that as far as floating-point " -"operations are concerned, Python behaves like many popular languages " -"including C and Java." +"The :class:`float` type in CPython uses a C ``double`` for storage. A :" +"class:`float` object's value is stored in binary floating-point with a fixed " +"precision (typically 53 bits) and Python uses C operations, which in turn " +"rely on the hardware implementation in the processor, to perform floating-" +"point operations. This means that as far as floating-point operations are " +"concerned, Python behaves like many popular languages including C and Java." msgstr "" #: ../../faq/design.rst:70 @@ -118,6 +125,8 @@ msgid "" "Many numbers that can be written easily in decimal notation cannot be " "expressed exactly in binary floating-point. For example, after::" msgstr "" +"Muitos números podem ser escritos facilmente em notação decimal, mas não " +"podem ser expressados exatamente em ponto flutuante binário. " #: ../../faq/design.rst:75 msgid "" @@ -125,10 +134,13 @@ msgid "" "value ``1.2``, but is not exactly equal to it. On a typical machine, the " "actual stored value is::" msgstr "" +"o valor armazenado para ``x`` é uma (ótima) aproximação para o valor decimal " +"``1.2``, mas não é exatamente igual. Em uma máquina típica, o valor real " +"armazenado é::" #: ../../faq/design.rst:81 msgid "which is exactly::" -msgstr "" +msgstr "que é exatamente::" #: ../../faq/design.rst:85 msgid "" @@ -144,16 +156,16 @@ msgstr "" #: ../../faq/design.rst:93 msgid "Why are Python strings immutable?" -msgstr "" +msgstr "Por que strings do Python são imutáveis?" #: ../../faq/design.rst:95 msgid "There are several advantages." -msgstr "" +msgstr "Existem várias vantagens." #: ../../faq/design.rst:97 msgid "" -"One is performance: knowing that a string is immutable means we can allocate" -" space for it at creation time, and the storage requirements are fixed and " +"One is performance: knowing that a string is immutable means we can allocate " +"space for it at creation time, and the storage requirements are fixed and " "unchanging. This is also one of the reasons for the distinction between " "tuples and lists." msgstr "" @@ -161,26 +173,30 @@ msgstr "" #: ../../faq/design.rst:102 msgid "" "Another advantage is that strings in Python are considered as \"elemental\" " -"as numbers. No amount of activity will change the value 8 to anything else," -" and in Python, no amount of activity will change the string \"eight\" to " +"as numbers. No amount of activity will change the value 8 to anything else, " +"and in Python, no amount of activity will change the string \"eight\" to " "anything else." msgstr "" #: ../../faq/design.rst:110 msgid "Why must 'self' be used explicitly in method definitions and calls?" msgstr "" +"Por que o 'self' deve ser usado explicitamente em definições de método e " +"chamadas?" #: ../../faq/design.rst:112 msgid "" "The idea was borrowed from Modula-3. It turns out to be very useful, for a " "variety of reasons." msgstr "" +"A ideia foi emprestada do Modula-2. Acontece dela ser muito útil, por vários " +"motivos." #: ../../faq/design.rst:115 msgid "" "First, it's more obvious that you are using a method or instance attribute " -"instead of a local variable. Reading ``self.x`` or ``self.meth()`` makes it" -" absolutely clear that an instance variable or method is used even if you " +"instead of a local variable. Reading ``self.x`` or ``self.meth()`` makes it " +"absolutely clear that an instance variable or method is used even if you " "don't know the class definition by heart. In C++, you can sort of tell by " "the lack of a local variable declaration (assuming globals are rare or " "easily recognizable) -- but in Python, there are no local variable " @@ -192,13 +208,13 @@ msgstr "" #: ../../faq/design.rst:125 msgid "" "Second, it means that no special syntax is necessary if you want to " -"explicitly reference or call the method from a particular class. In C++, if" -" you want to use a method from a base class which is overridden in a derived" -" class, you have to use the ``::`` operator -- in Python you can write " +"explicitly reference or call the method from a particular class. In C++, if " +"you want to use a method from a base class which is overridden in a derived " +"class, you have to use the ``::`` operator -- in Python you can write " "``baseclass.methodname(self, )``. This is particularly " -"useful for :meth:`__init__` methods, and in general in cases where a derived" -" class method wants to extend the base class method of the same name and " -"thus has to call the base class method somehow." +"useful for :meth:`__init__` methods, and in general in cases where a derived " +"class method wants to extend the base class method of the same name and thus " +"has to call the base class method somehow." msgstr "" #: ../../faq/design.rst:134 @@ -209,8 +225,8 @@ msgid "" "explicitly declared global), there has to be some way to tell the " "interpreter that an assignment was meant to assign to an instance variable " "instead of to a local variable, and it should preferably be syntactic (for " -"efficiency reasons). C++ does this through declarations, but Python doesn't" -" have declarations and it would be a pity having to introduce them just for " +"efficiency reasons). C++ does this through declarations, but Python doesn't " +"have declarations and it would be a pity having to introduce them just for " "this purpose. Using the explicit ``self.var`` solves this nicely. " "Similarly, for using instance variables, having to write ``self.var`` means " "that references to unqualified names inside a method don't have to search " @@ -221,7 +237,7 @@ msgstr "" #: ../../faq/design.rst:150 msgid "Why can't I use an assignment in an expression?" -msgstr "" +msgstr "Por que não posso usar uma atribuição em uma expressão?" #: ../../faq/design.rst:152 msgid "" @@ -271,16 +287,16 @@ msgstr "" #: ../../faq/design.rst:201 msgid "" "The problem with this is that if you change your mind about exactly how you " -"get the next line (e.g. you want to change it into ``sys.stdin.readline()``)" -" you have to remember to change two places in your program -- the second " +"get the next line (e.g. you want to change it into ``sys.stdin.readline()``) " +"you have to remember to change two places in your program -- the second " "occurrence is hidden at the bottom of the loop." msgstr "" #: ../../faq/design.rst:206 msgid "" "The best approach is to use iterators, making it possible to loop through " -"objects using the ``for`` statement. For example, :term:`file objects ` support the iterator protocol, so you can write simply::" +"objects using the ``for`` statement. For example, :term:`file objects ` support the iterator protocol, so you can write simply::" msgstr "" #: ../../faq/design.rst:216 @@ -288,10 +304,12 @@ msgid "" "Why does Python use methods for some functionality (e.g. list.index()) but " "functions for other (e.g. len(list))?" msgstr "" +"Por que o Python usa métodos para algumas funcionalidades (ex: list.index()) " +"mas funções para outras (ex: len(list))?" #: ../../faq/design.rst:218 msgid "As Guido said:" -msgstr "" +msgstr "Como Guido disse:" #: ../../faq/design.rst:220 msgid "" @@ -305,23 +323,24 @@ msgstr "" #: ../../faq/design.rst:227 msgid "" "(b) When I read code that says len(x) I *know* that it is asking for the " -"length of something. This tells me two things: the result is an integer, and" -" the argument is some kind of container. To the contrary, when I read " -"x.len(), I have to already know that x is some kind of container " -"implementing an interface or inheriting from a class that has a standard " -"len(). Witness the confusion we occasionally have when a class that is not " -"implementing a mapping has a get() or keys() method, or something that isn't" -" a file has a write() method." +"length of something. This tells me two things: the result is an integer, and " +"the argument is some kind of container. To the contrary, when I read x." +"len(), I have to already know that x is some kind of container implementing " +"an interface or inheriting from a class that has a standard len(). Witness " +"the confusion we occasionally have when a class that is not implementing a " +"mapping has a get() or keys() method, or something that isn't a file has a " +"write() method." msgstr "" #: ../../faq/design.rst:254 -msgid "" -"https://mail.python.org/pipermail/python-3000/2006-November/004643.html" +msgid "https://mail.python.org/pipermail/python-3000/2006-November/004643.html" msgstr "" #: ../../faq/design.rst:240 msgid "Why is join() a string method instead of a list or tuple method?" msgstr "" +"Por que o join() é um método de string em vez de ser um método de lista ou " +"tupla?" #: ../../faq/design.rst:242 msgid "" @@ -331,21 +350,26 @@ msgid "" "methods have been widely accepted, but the one which appears to make some " "programmers feel uncomfortable is::" msgstr "" +"Strings se tornaram muito parecidas com outros tipos padrão a partir do " +"Python 1.6, quando métodos que dão a mesma funcionalidade que sempre esteve " +"disponível utilizando as funções do módulo de string foram adicionados. A " +"maior parte desses novos métodos foram amplamente aceitos, mas o que parece " +"deixar alguns programadores desconfortáveis é::" #: ../../faq/design.rst:250 msgid "which gives the result::" -msgstr "" +msgstr "que dá o resultado::" #: ../../faq/design.rst:254 msgid "There are two common arguments against this usage." -msgstr "" +msgstr "Existem dois argumentos comuns contra esse uso." #: ../../faq/design.rst:256 msgid "" "The first runs along the lines of: \"It looks really ugly using a method of " "a string literal (string constant)\", to which the answer is that it might, " -"but a string literal is just a fixed value. If the methods are to be allowed" -" on names bound to strings there is no logical reason to make them " +"but a string literal is just a fixed value. If the methods are to be allowed " +"on names bound to strings there is no logical reason to make them " "unavailable on literals." msgstr "" @@ -353,9 +377,8 @@ msgstr "" msgid "" "The second objection is typically cast as: \"I am really telling a sequence " "to join its members together with a string constant\". Sadly, you aren't. " -"For some reason there seems to be much less difficulty with having " -":meth:`~str.split` as a string method, since in that case it is easy to see " -"that ::" +"For some reason there seems to be much less difficulty with having :meth:" +"`~str.split` as a string method, since in that case it is easy to see that ::" msgstr "" #: ../../faq/design.rst:269 @@ -366,8 +389,8 @@ msgstr "" #: ../../faq/design.rst:272 msgid "" -":meth:`~str.join` is a string method because in using it you are telling the" -" separator string to iterate over a sequence of strings and insert itself " +":meth:`~str.join` is a string method because in using it you are telling the " +"separator string to iterate over a sequence of strings and insert itself " "between adjacent elements. This method can be used with any argument which " "obeys the rules for sequence objects, including any new classes you might " "define yourself. Similar methods exist for bytes and bytearray objects." @@ -375,20 +398,26 @@ msgstr "" #: ../../faq/design.rst:280 msgid "How fast are exceptions?" -msgstr "" +msgstr "O quão rápidas são as exceções?" #: ../../faq/design.rst:282 msgid "" "A try/except block is extremely efficient if no exceptions are raised. " -"Actually catching an exception is expensive. In versions of Python prior to" -" 2.0 it was common to use this idiom::" +"Actually catching an exception is expensive. In versions of Python prior to " +"2.0 it was common to use this idiom::" msgstr "" +"Um bloco de try/except é extremamente eficiente se nenhuma exceção for " +"levantada. Na verdade, capturar uma exceção custa caro. Em versões do Python " +"anteriores a 2.0 era como utilizar esse idioma::" #: ../../faq/design.rst:292 msgid "" "This only made sense when you expected the dict to have the key almost all " "the time. If that wasn't the case, you coded it like this::" msgstr "" +"Isso somente fazia sentido quando você esperava que o dicionário tivesse uma " +"chave quase que toda vez. Se esse não fosse o caso, você escrevia desta " +"maneira::" #: ../../faq/design.rst:300 msgid "" @@ -399,14 +428,14 @@ msgstr "" #: ../../faq/design.rst:306 msgid "Why isn't there a switch or case statement in Python?" -msgstr "" +msgstr "Por que não existe uma instrução de switch ou case no Python?" #: ../../faq/design.rst:308 msgid "" "You can do this easily enough with a sequence of ``if... elif... elif... " "else``. There have been some proposals for switch statement syntax, but " -"there is no consensus (yet) on whether and how to do range tests. See " -":pep:`275` for complete details and the current status." +"there is no consensus (yet) on whether and how to do range tests. See :pep:" +"`275` for complete details and the current status." msgstr "" #: ../../faq/design.rst:313 @@ -418,8 +447,8 @@ msgstr "" #: ../../faq/design.rst:327 msgid "" -"For calling methods on objects, you can simplify yet further by using the " -":func:`getattr` built-in to retrieve methods with a particular name::" +"For calling methods on objects, you can simplify yet further by using the :" +"func:`getattr` built-in to retrieve methods with a particular name::" msgstr "" #: ../../faq/design.rst:339 @@ -446,14 +475,14 @@ msgstr "" #: ../../faq/design.rst:352 msgid "" -"Answer 2: Fortunately, there is `Stackless Python `_, which has a completely redesigned " +"Answer 2: Fortunately, there is `Stackless Python `_, which has a completely redesigned " "interpreter loop that avoids the C stack." msgstr "" #: ../../faq/design.rst:357 msgid "Why can't lambda expressions contain statements?" -msgstr "" +msgstr "Por que expressões lambda não podem conter instruções?" #: ../../faq/design.rst:359 msgid "" @@ -463,6 +492,12 @@ msgid "" "other languages, where they add functionality, Python lambdas are only a " "shorthand notation if you're too lazy to define a function." msgstr "" +"Expressões lambda no Python não podem conter instruções porque o framework " +"sintático do Python não consegue lidar com instruções aninhadas dentro de " +"expressões. No entanto, no Python, isso não é um problema sério. " +"Diferentemente das formas de lambda em outras linguagens, onde elas " +"adicionam funcionalidade, lambdas de Python são apenas notações " +"simplificadas se você tiver muita preguiça de definir uma função." #: ../../faq/design.rst:365 msgid "" @@ -473,23 +508,31 @@ msgid "" "(which is exactly the same type of object that a lambda expression yields) " "is assigned!" msgstr "" +"Funções já são objetos de primeira classe em Python, e podem ser declaradas " +"em um escopo local. Portanto a única vantagem de usar um lambda em vez de " +"uma função definida localmente é que você não precisa inventar um nome para " +"a função -- mas esta só é uma variável local para a qual o objeto da função " +"(que é exatamente do mesmo tipo de um objeto que uma expressão lambda " +"carrega) é atribuído." #: ../../faq/design.rst:373 msgid "Can Python be compiled to machine code, C or some other language?" msgstr "" +"O Python pode ser compilado para linguagem de máquina, C ou alguma outra " +"linguagem?" #: ../../faq/design.rst:375 msgid "" "`Cython `_ compiles a modified version of Python with " "optional annotations into C extensions. `Nuitka `_ " "is an up-and-coming compiler of Python into C++ code, aiming to support the " -"full Python language. For compiling to Java you can consider `VOC " -"`_." +"full Python language. For compiling to Java you can consider `VOC `_." msgstr "" #: ../../faq/design.rst:383 msgid "How does Python manage memory?" -msgstr "" +msgstr "Como o Python gerencia memória?" #: ../../faq/design.rst:385 msgid "" @@ -505,8 +548,8 @@ msgstr "" #: ../../faq/design.rst:393 msgid "" "Other implementations (such as `Jython `_ or `PyPy " -"`_), however, can rely on a different mechanism such as" -" a full-blown garbage collector. This difference can cause some subtle " +"`_), however, can rely on a different mechanism such as " +"a full-blown garbage collector. This difference can cause some subtle " "porting problems if your Python code depends on the behavior of the " "reference counting implementation." msgstr "" @@ -520,27 +563,29 @@ msgstr "" #: ../../faq/design.rst:406 msgid "" "Indeed, using CPython's reference counting and destructor scheme, each new " -"assignment to *f* closes the previous file. With a traditional GC, however," -" those file objects will only get collected (and closed) at varying and " +"assignment to *f* closes the previous file. With a traditional GC, however, " +"those file objects will only get collected (and closed) at varying and " "possibly long intervals." msgstr "" #: ../../faq/design.rst:411 msgid "" -"If you want to write code that will work with any Python implementation, you" -" should explicitly close the file or use the :keyword:`with` statement; this" -" will work regardless of memory management scheme::" +"If you want to write code that will work with any Python implementation, you " +"should explicitly close the file or use the :keyword:`with` statement; this " +"will work regardless of memory management scheme::" msgstr "" #: ../../faq/design.rst:421 msgid "Why doesn't CPython use a more traditional garbage collection scheme?" msgstr "" +"Por que o CPython não usa uma forma mais tradicional de esquema de coleta de " +"lixo?" #: ../../faq/design.rst:423 msgid "" -"For one thing, this is not a C standard feature and hence it's not portable." -" (Yes, we know about the Boehm GC library. It has bits of assembler code " -"for *most* common platforms, not for all of them, and although it is mostly " +"For one thing, this is not a C standard feature and hence it's not portable. " +"(Yes, we know about the Boehm GC library. It has bits of assembler code for " +"*most* common platforms, not for all of them, and although it is mostly " "transparent, it isn't completely transparent; patches are required to get " "Python to work with it.)" msgstr "" @@ -557,44 +602,44 @@ msgstr "" #: ../../faq/design.rst:438 msgid "Why isn't all memory freed when CPython exits?" -msgstr "" +msgstr "Por que toda memória não é liberada quando o CPython fecha?" #: ../../faq/design.rst:440 msgid "" "Objects referenced from the global namespaces of Python modules are not " -"always deallocated when Python exits. This may happen if there are circular" -" references. There are also certain bits of memory that are allocated by " -"the C library that are impossible to free (e.g. a tool like Purify will " -"complain about these). Python is, however, aggressive about cleaning up " -"memory on exit and does try to destroy every single object." +"always deallocated when Python exits. This may happen if there are circular " +"references. There are also certain bits of memory that are allocated by the " +"C library that are impossible to free (e.g. a tool like Purify will complain " +"about these). Python is, however, aggressive about cleaning up memory on " +"exit and does try to destroy every single object." msgstr "" #: ../../faq/design.rst:447 msgid "" -"If you want to force Python to delete certain things on deallocation use the" -" :mod:`atexit` module to run a function that will force those deletions." +"If you want to force Python to delete certain things on deallocation use " +"the :mod:`atexit` module to run a function that will force those deletions." msgstr "" #: ../../faq/design.rst:452 msgid "Why are there separate tuple and list data types?" -msgstr "" +msgstr "Por que existem tipos de dados separados para tuplas e listas?" #: ../../faq/design.rst:454 msgid "" "Lists and tuples, while similar in many respects, are generally used in " "fundamentally different ways. Tuples can be thought of as being similar to " -"Pascal records or C structs; they're small collections of related data which" -" may be of different types which are operated on as a group. For example, a" -" Cartesian coordinate is appropriately represented as a tuple of two or " -"three numbers." +"Pascal records or C structs; they're small collections of related data which " +"may be of different types which are operated on as a group. For example, a " +"Cartesian coordinate is appropriately represented as a tuple of two or three " +"numbers." msgstr "" #: ../../faq/design.rst:461 msgid "" "Lists, on the other hand, are more like arrays in other languages. They " -"tend to hold a varying number of objects all of which have the same type and" -" which are operated on one-by-one. For example, ``os.listdir('.')`` returns" -" a list of strings representing the files in the current directory. " +"tend to hold a varying number of objects all of which have the same type and " +"which are operated on one-by-one. For example, ``os.listdir('.')`` returns " +"a list of strings representing the files in the current directory. " "Functions which operate on this output would generally not break if you " "added another file or two to the directory." msgstr "" @@ -610,7 +655,7 @@ msgstr "" #: ../../faq/design.rst:475 msgid "How are lists implemented in CPython?" -msgstr "" +msgstr "Como as listas são implementadas no CPython?" #: ../../faq/design.rst:477 msgid "" @@ -636,7 +681,7 @@ msgstr "" #: ../../faq/design.rst:491 msgid "How are dictionaries implemented in CPython?" -msgstr "" +msgstr "Como são os dicionários implementados no CPython?" #: ../../faq/design.rst:493 msgid "" @@ -651,17 +696,17 @@ msgid "" "Dictionaries work by computing a hash code for each key stored in the " "dictionary using the :func:`hash` built-in function. The hash code varies " "widely depending on the key and a per-process seed; for example, \"Python\" " -"could hash to -539294296 while \"python\", a string that differs by a single" -" bit, could hash to 1142331976. The hash code is then used to calculate a " -"location in an internal array where the value will be stored. Assuming that" -" you're storing keys that all have different hash values, this means that " +"could hash to -539294296 while \"python\", a string that differs by a single " +"bit, could hash to 1142331976. The hash code is then used to calculate a " +"location in an internal array where the value will be stored. Assuming that " +"you're storing keys that all have different hash values, this means that " "dictionaries take constant time -- O(1), in Big-O notation -- to retrieve a " "key." msgstr "" #: ../../faq/design.rst:508 msgid "Why must dictionary keys be immutable?" -msgstr "" +msgstr "Por que chaves de dicionário devem ser imutáveis?" #: ../../faq/design.rst:510 msgid "" @@ -679,14 +724,14 @@ msgstr "" #: ../../faq/design.rst:519 msgid "" "If you want a dictionary indexed with a list, simply convert the list to a " -"tuple first; the function ``tuple(L)`` creates a tuple with the same entries" -" as the list ``L``. Tuples are immutable and can therefore be used as " +"tuple first; the function ``tuple(L)`` creates a tuple with the same entries " +"as the list ``L``. Tuples are immutable and can therefore be used as " "dictionary keys." msgstr "" #: ../../faq/design.rst:523 msgid "Some unacceptable solutions that have been proposed:" -msgstr "" +msgstr "Algumas soluções inaceitáveis que foram propostas:" #: ../../faq/design.rst:525 msgid "" @@ -698,30 +743,30 @@ msgstr "" msgid "" "would raise a :exc:`KeyError` exception because the id of the ``[1, 2]`` " "used in the second line differs from that in the first line. In other " -"words, dictionary keys should be compared using ``==``, not using " -":keyword:`is`." +"words, dictionary keys should be compared using ``==``, not using :keyword:" +"`is`." msgstr "" #: ../../faq/design.rst:535 msgid "" -"Make a copy when using a list as a key. This doesn't work because the list," -" being a mutable object, could contain a reference to itself, and then the " +"Make a copy when using a list as a key. This doesn't work because the list, " +"being a mutable object, could contain a reference to itself, and then the " "copying code would run into an infinite loop." msgstr "" #: ../../faq/design.rst:539 msgid "" "Allow lists as keys but tell the user not to modify them. This would allow " -"a class of hard-to-track bugs in programs when you forgot or modified a list" -" by accident. It also invalidates an important invariant of dictionaries: " +"a class of hard-to-track bugs in programs when you forgot or modified a list " +"by accident. It also invalidates an important invariant of dictionaries: " "every value in ``d.keys()`` is usable as a key of the dictionary." msgstr "" #: ../../faq/design.rst:544 msgid "" -"Mark lists as read-only once they are used as a dictionary key. The problem" -" is that it's not just the top-level object that could change its value; you" -" could use a tuple containing a list as a key. Entering anything as a key " +"Mark lists as read-only once they are used as a dictionary key. The problem " +"is that it's not just the top-level object that could change its value; you " +"could use a tuple containing a list as a key. Entering anything as a key " "into a dictionary would require marking all objects reachable from there as " "read-only -- and again, self-referential objects could cause an infinite " "loop." @@ -733,8 +778,8 @@ msgid "" "risk: You can wrap a mutable structure inside a class instance which has " "both a :meth:`__eq__` and a :meth:`__hash__` method. You must then make " "sure that the hash value for all such wrapper objects that reside in a " -"dictionary (or other hash based structure), remain fixed while the object is" -" in the dictionary (or other structure). ::" +"dictionary (or other hash based structure), remain fixed while the object is " +"in the dictionary (or other structure). ::" msgstr "" #: ../../faq/design.rst:574 @@ -746,11 +791,11 @@ msgstr "" #: ../../faq/design.rst:578 msgid "" -"Furthermore it must always be the case that if ``o1 == o2`` (ie " -"``o1.__eq__(o2) is True``) then ``hash(o1) == hash(o2)`` (ie, " -"``o1.__hash__() == o2.__hash__()``), regardless of whether the object is in " -"a dictionary or not. If you fail to meet these restrictions dictionaries " -"and other hash based structures will misbehave." +"Furthermore it must always be the case that if ``o1 == o2`` (ie ``o1." +"__eq__(o2) is True``) then ``hash(o1) == hash(o2)`` (ie, ``o1.__hash__() == " +"o2.__hash__()``), regardless of whether the object is in a dictionary or " +"not. If you fail to meet these restrictions dictionaries and other hash " +"based structures will misbehave." msgstr "" #: ../../faq/design.rst:583 @@ -763,7 +808,7 @@ msgstr "" #: ../../faq/design.rst:590 msgid "Why doesn't list.sort() return the sorted list?" -msgstr "" +msgstr "Por que lista.sort() não retorna a lista ordenada?" #: ../../faq/design.rst:592 msgid "" @@ -774,6 +819,12 @@ msgid "" "when you need a sorted copy but also need to keep the unsorted version " "around." msgstr "" +"Em situações nas quais performance importa, fazer uma cópia da lista só para " +"ordenar seria desperdício. Portanto, :meth:`list.sort` ordena a lista. De " +"forma a lembrá-lo desse fato, isso não retorna a lista ordenada. Desta " +"forma, você não vai ser confundido a acidentalmente sobrescrever uma lista " +"quando você precisar de uma cópia ordenada mas também precisar manter a " +"versão não ordenada." #: ../../faq/design.rst:598 msgid "" @@ -782,6 +833,10 @@ msgid "" "it and returns it. For example, here's how to iterate over the keys of a " "dictionary in sorted order::" msgstr "" +"Se você quiser retornar uma nova lista, use a função embutida :func:`sorted` " +"ao invés. Essa função cria uma nova lista a partir de um iterável provido, o " +"ordena e retorna. Por exemplo, aqui é como se itera em cima das chaves de um " +"dicionário de maneira ordenada::" #: ../../faq/design.rst:608 msgid "How do you specify and enforce an interface spec in Python?" @@ -789,20 +844,20 @@ msgstr "" #: ../../faq/design.rst:610 msgid "" -"An interface specification for a module as provided by languages such as C++" -" and Java describes the prototypes for the methods and functions of the " -"module. Many feel that compile-time enforcement of interface specifications" -" helps in the construction of large programs." +"An interface specification for a module as provided by languages such as C++ " +"and Java describes the prototypes for the methods and functions of the " +"module. Many feel that compile-time enforcement of interface specifications " +"helps in the construction of large programs." msgstr "" #: ../../faq/design.rst:615 msgid "" "Python 2.6 adds an :mod:`abc` module that lets you define Abstract Base " "Classes (ABCs). You can then use :func:`isinstance` and :func:`issubclass` " -"to check whether an instance or a class implements a particular ABC. The " -":mod:`collections.abc` module defines a set of useful ABCs such as " -":class:`~collections.abc.Iterable`, :class:`~collections.abc.Container`, and" -" :class:`~collections.abc.MutableMapping`." +"to check whether an instance or a class implements a particular ABC. The :" +"mod:`collections.abc` module defines a set of useful ABCs such as :class:" +"`~collections.abc.Iterable`, :class:`~collections.abc.Container`, and :class:" +"`~collections.abc.MutableMapping`." msgstr "" #: ../../faq/design.rst:622 @@ -818,30 +873,30 @@ msgid "" "as a module interface specification and a set of examples. Many Python " "modules can be run as a script to provide a simple \"self test.\" Even " "modules which use complex external interfaces can often be tested in " -"isolation using trivial \"stub\" emulations of the external interface. The " -":mod:`doctest` and :mod:`unittest` modules or third-party test frameworks " -"can be used to construct exhaustive test suites that exercise every line of " -"code in a module." +"isolation using trivial \"stub\" emulations of the external interface. The :" +"mod:`doctest` and :mod:`unittest` modules or third-party test frameworks can " +"be used to construct exhaustive test suites that exercise every line of code " +"in a module." msgstr "" #: ../../faq/design.rst:634 msgid "" "An appropriate testing discipline can help build large complex applications " -"in Python as well as having interface specifications would. In fact, it can" -" be better because an interface specification cannot test certain properties" -" of a program. For example, the :meth:`append` method is expected to add " -"new elements to the end of some internal list; an interface specification " -"cannot test that your :meth:`append` implementation will actually do this " +"in Python as well as having interface specifications would. In fact, it can " +"be better because an interface specification cannot test certain properties " +"of a program. For example, the :meth:`append` method is expected to add new " +"elements to the end of some internal list; an interface specification cannot " +"test that your :meth:`append` implementation will actually do this " "correctly, but it's trivial to check this property in a test suite." msgstr "" #: ../../faq/design.rst:642 msgid "" "Writing test suites is very helpful, and you might want to design your code " -"with an eye to making it easily tested. One increasingly popular technique," -" test-directed development, calls for writing parts of the test suite first," -" before you write any of the actual code. Of course Python allows you to be" -" sloppy and not write test cases at all." +"with an eye to making it easily tested. One increasingly popular technique, " +"test-directed development, calls for writing parts of the test suite first, " +"before you write any of the actual code. Of course Python allows you to be " +"sloppy and not write test cases at all." msgstr "" #: ../../faq/design.rst:650 @@ -858,13 +913,15 @@ msgstr "" #: ../../faq/design.rst:667 msgid "" -"This doesn't allow you to jump into the middle of a loop, but that's usually" -" considered an abuse of goto anyway. Use sparingly." +"This doesn't allow you to jump into the middle of a loop, but that's usually " +"considered an abuse of goto anyway. Use sparingly." msgstr "" #: ../../faq/design.rst:672 msgid "Why can't raw strings (r-strings) end with a backslash?" msgstr "" +"Por que strings brutas (r-strings) não podem terminar com uma barra " +"invertida?" #: ../../faq/design.rst:674 msgid "" @@ -878,8 +935,8 @@ msgid "" "Raw strings were designed to ease creating input for processors (chiefly " "regular expression engines) that want to do their own backslash escape " "processing. Such processors consider an unmatched trailing backslash to be " -"an error anyway, so raw strings disallow that. In return, they allow you to" -" pass on the string quote character by escaping it with a backslash. These " +"an error anyway, so raw strings disallow that. In return, they allow you to " +"pass on the string quote character by escaping it with a backslash. These " "rules work well when r-strings are used for their intended purpose." msgstr "" @@ -897,6 +954,7 @@ msgstr "" #: ../../faq/design.rst:698 msgid "Why doesn't Python have a \"with\" statement for attribute assignments?" msgstr "" +"Por que o Python não tem uma instrução \"with\" para atribuição de atributos?" #: ../../faq/design.rst:700 msgid "" @@ -916,6 +974,10 @@ msgid "" "assigned to. This is the main point of static typing -- the compiler " "*always* knows the scope of every variable at compile time." msgstr "" +"Outras linguagens, como Object Pascal, Delphi, e C++, usam tipos estáticos, " +"então é possível saber, de maneira não ambígua, que membro está sendo " +"atribuído. Esse é o principal ponto da tipagem estática -- o compilador " +"*sempre* sabe o escopo de toda variável em tempo de compilação." #: ../../faq/design.rst:715 msgid "" @@ -925,6 +987,11 @@ msgid "" "simple reading, what attribute is being referenced: a local one, a global " "one, or a member attribute?" msgstr "" +"O Python usa tipos dinâmicos. É impossível saber com antecedência que " +"atributo vai ser referenciado em tempo de execução. Atributos membro podem " +"ser adicionados ou removidos de objetos dinamicamente. Isso torna impossível " +"saber, de uma leitura simples, que atributo está sendo referenciado: um " +"atributo local, um atributo global ou um atributo membro?" #: ../../faq/design.rst:721 msgid "For instance, take the following incomplete snippet::" @@ -945,10 +1012,13 @@ msgid "" "code volume) can, however, easily be achieved in Python by assignment. " "Instead of::" msgstr "" +"O benefício primário do \"with\" e funcionalidades similares da linguagem " +"(redução de volume de código) pode, entretanto, ser facilmente alcançado no " +"Python por atribuição. Em vez de::" #: ../../faq/design.rst:740 msgid "write this::" -msgstr "" +msgstr "escreva isso::" #: ../../faq/design.rst:747 msgid "" @@ -956,16 +1026,22 @@ msgid "" "bindings are resolved at run-time in Python, and the second version only " "needs to perform the resolution once." msgstr "" +"Isso também tem o efeito colateral de aumentar a velocidade de execução por " +"que ligações de nome são resolvidas a tempo de execução em Python, e a " +"segunda versão só precisa performar a resolução uma vez." #: ../../faq/design.rst:753 msgid "Why are colons required for the if/while/def/class statements?" msgstr "" +"Por que dois pontos são necessários para as instruções de if/while/def/class?" #: ../../faq/design.rst:755 msgid "" "The colon is required primarily to enhance readability (one of the results " "of the experimental ABC language). Consider this::" msgstr "" +"Os dois pontos são obrigatórios primeiramente para melhorar a leitura (um " +"dos resultados da linguagem experimental ABC). Considere isso::" #: ../../faq/design.rst:761 msgid "versus ::" @@ -977,6 +1053,9 @@ msgid "" "colon sets off the example in this FAQ answer; it's a standard usage in " "English." msgstr "" +"Note como a segunda é ligeiramente mais fácil de ler. Note com mais atenção " +"como os dois pontos iniciam o exemplo nessa resposta de perguntas " +"frequentes; é um uso padrão em Português." #: ../../faq/design.rst:769 msgid "" @@ -985,44 +1064,60 @@ msgid "" "needs to be increased instead of having to do a more elaborate parsing of " "the program text." msgstr "" +"Outro motivo menor é que os dois pontos deixam mais fácil para os editores " +"com realce de sintaxe; eles podem procurar por dois pontos para decidir " +"quando indentação precisa ser aumentada em vez de precisarem fazer uma " +"análise mais elaborada do texto do programa." #: ../../faq/design.rst:775 msgid "Why does Python allow commas at the end of lists and tuples?" -msgstr "" +msgstr "Por que o Python permite vírgulas ao final de listas e tuplas?" #: ../../faq/design.rst:777 msgid "" "Python lets you add a trailing comma at the end of lists, tuples, and " "dictionaries::" msgstr "" +"O Python deixa você adicionar uma vírgula ao final de listas, tuplas e " +"dicionários::" #: ../../faq/design.rst:788 msgid "There are several reasons to allow this." -msgstr "" +msgstr "Existem várias razões para permitir isso." #: ../../faq/design.rst:790 msgid "" -"When you have a literal value for a list, tuple, or dictionary spread across" -" multiple lines, it's easier to add more elements because you don't have to " +"When you have a literal value for a list, tuple, or dictionary spread across " +"multiple lines, it's easier to add more elements because you don't have to " "remember to add a comma to the previous line. The lines can also be " "reordered without creating a syntax error." msgstr "" +"Quando você possui um valor literal para uma lista, tupla, ou dicionário " +"disposta através de múltiplas linhas, é mais fácil adicionar mais elementos " +"porque você não precisa lembrar de adicionar uma vírgula na linha anterior. " +"As linhas também podem ser reordenadas sem criar um erro de sintaxe." #: ../../faq/design.rst:795 msgid "" "Accidentally omitting the comma can lead to errors that are hard to " "diagnose. For example::" msgstr "" +"Acidentalmente omitir a vírgula pode levar a erros que são difíceis de " +"diagnosticar. Por exemplo::" #: ../../faq/design.rst:805 msgid "" "This list looks like it has four elements, but it actually contains three: " -"\"fee\", \"fiefoo\" and \"fum\". Always adding the comma avoids this source" -" of error." +"\"fee\", \"fiefoo\" and \"fum\". Always adding the comma avoids this source " +"of error." msgstr "" +"Essa lista parece ter quatro elementos, mas na verdade contém três: \"fee\", " +"\"fiefoo\" e \"fum\". Sempre adicionar a vírgula evita essa fonte de erro." #: ../../faq/design.rst:808 msgid "" "Allowing the trailing comma may also make programmatic code generation " "easier." msgstr "" +"Permitir a vírgula no final também pode deixar a geração de código " +"programático mais fácil." diff --git a/faq/extending.po b/faq/extending.po index fe231593e..a566063e9 100644 --- a/faq/extending.po +++ b/faq/extending.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Rogério Araújo , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" "Last-Translator: Rogério Araújo , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,12 +38,12 @@ msgstr "Posso criar minhas próprias funções em C?" #: ../../faq/extending.rst:18 msgid "" "Yes, you can create built-in modules containing functions, variables, " -"exceptions and even new types in C. This is explained in the document :ref" -":`extending-index`." +"exceptions and even new types in C. This is explained in the document :ref:" +"`extending-index`." msgstr "" "Sim, você pode construir módulos embutidos contendo funções, variáveis, " -"exceções e até mesmo novos tipos em C. Isso é explicado no documento :ref" -":`extending-index`." +"exceções e até mesmo novos tipos em C. Isso é explicado no documento :ref:" +"`extending-index`." #: ../../faq/extending.rst:22 msgid "Most intermediate or advanced Python books will also cover this topic." @@ -56,8 +57,8 @@ msgstr "" #: ../../faq/extending.rst:28 msgid "" -"Yes, using the C compatibility features found in C++. Place ``extern \"C\" " -"{ ... }`` around the Python include files and put ``extern \"C\"`` before " +"Yes, using the C compatibility features found in C++. Place ``extern \"C" +"\" { ... }`` around the Python include files and put ``extern \"C\"`` before " "each function that is going to be called by the Python interpreter. Global " "or static C++ objects with constructors are probably not a good idea." msgstr "" @@ -74,11 +75,11 @@ msgstr "" #: ../../faq/extending.rst:44 msgid "" -"`Cython `_ and its relative `Pyrex " -"`_ are compilers" -" that accept a slightly modified form of Python and generate the " -"corresponding C code. Cython and Pyrex make it possible to write an " -"extension without having to learn Python's C API." +"`Cython `_ and its relative `Pyrex `_ are compilers that accept a " +"slightly modified form of Python and generate the corresponding C code. " +"Cython and Pyrex make it possible to write an extension without having to " +"learn Python's C API." msgstr "" #: ../../faq/extending.rst:50 @@ -86,11 +87,10 @@ msgid "" "If you need to interface to some C or C++ library for which no Python " "extension currently exists, you can try wrapping the library's data types " "and functions with a tool such as `SWIG `_. `SIP " -"`__, `CXX " -"`_ `Boost " -"`_, or `Weave " -"`_ are also alternatives for wrapping C++ " -"libraries." +"`__, `CXX `_ `Boost `_, or `Weave `_ are also alternatives " +"for wrapping C++ libraries." msgstr "" #: ../../faq/extending.rst:61 @@ -102,8 +102,8 @@ msgid "" "The highest-level function to do this is :c:func:`PyRun_SimpleString` which " "takes a single string argument to be executed in the context of the module " "``__main__`` and returns ``0`` for success and ``-1`` when an exception " -"occurred (including :exc:`SyntaxError`). If you want more control, use " -":c:func:`PyRun_String`; see the source for :c:func:`PyRun_SimpleString` in " +"occurred (including :exc:`SyntaxError`). If you want more control, use :c:" +"func:`PyRun_String`; see the source for :c:func:`PyRun_SimpleString` in " "``Python/pythonrun.c``." msgstr "" @@ -113,9 +113,9 @@ msgstr "" #: ../../faq/extending.rst:74 msgid "" -"Call the function :c:func:`PyRun_String` from the previous question with the" -" start symbol :c:data:`Py_eval_input`; it parses an expression, evaluates it" -" and returns its value." +"Call the function :c:func:`PyRun_String` from the previous question with the " +"start symbol :c:data:`Py_eval_input`; it parses an expression, evaluates it " +"and returns its value." msgstr "" #: ../../faq/extending.rst:80 @@ -126,33 +126,33 @@ msgstr "" msgid "" "That depends on the object's type. If it's a tuple, :c:func:`PyTuple_Size` " "returns its length and :c:func:`PyTuple_GetItem` returns the item at a " -"specified index. Lists have similar functions, :c:func:`PyListSize` and " -":c:func:`PyList_GetItem`." +"specified index. Lists have similar functions, :c:func:`PyListSize` and :c:" +"func:`PyList_GetItem`." msgstr "" #: ../../faq/extending.rst:87 msgid "" -"For bytes, :c:func:`PyBytes_Size` returns its length and " -":c:func:`PyBytes_AsStringAndSize` provides a pointer to its value and its " -"length. Note that Python bytes objects may contain null bytes so C's " -":c:func:`strlen` should not be used." +"For bytes, :c:func:`PyBytes_Size` returns its length and :c:func:" +"`PyBytes_AsStringAndSize` provides a pointer to its value and its length. " +"Note that Python bytes objects may contain null bytes so C's :c:func:" +"`strlen` should not be used." msgstr "" #: ../../faq/extending.rst:92 msgid "" "To test the type of an object, first make sure it isn't ``NULL``, and then " -"use :c:func:`PyBytes_Check`, :c:func:`PyTuple_Check`, " -":c:func:`PyList_Check`, etc." +"use :c:func:`PyBytes_Check`, :c:func:`PyTuple_Check`, :c:func:" +"`PyList_Check`, etc." msgstr "" #: ../../faq/extending.rst:95 msgid "" -"There is also a high-level API to Python objects which is provided by the " -"so-called 'abstract' interface -- read ``Include/abstract.h`` for further " -"details. It allows interfacing with any kind of Python sequence using calls" -" like :c:func:`PySequence_Length`, :c:func:`PySequence_GetItem`, etc. as " -"well as many other useful protocols such as numbers " -"(:c:func:`PyNumber_Index` et al.) and mappings in the PyMapping APIs." +"There is also a high-level API to Python objects which is provided by the so-" +"called 'abstract' interface -- read ``Include/abstract.h`` for further " +"details. It allows interfacing with any kind of Python sequence using calls " +"like :c:func:`PySequence_Length`, :c:func:`PySequence_GetItem`, etc. as well " +"as many other useful protocols such as numbers (:c:func:`PyNumber_Index` et " +"al.) and mappings in the PyMapping APIs." msgstr "" #: ../../faq/extending.rst:104 @@ -190,8 +190,8 @@ msgstr "" #: ../../faq/extending.rst:135 msgid "" -"Note that since :c:func:`PyObject_CallObject` *always* wants a tuple for the" -" argument list, to call a function without arguments, pass \"()\" for the " +"Note that since :c:func:`PyObject_CallObject` *always* wants a tuple for the " +"argument list, to call a function without arguments, pass \"()\" for the " "format, and to call a function with one argument, surround the argument in " "parentheses, e.g. \"(i)\"." msgstr "" @@ -228,11 +228,11 @@ msgstr "" #: ../../faq/extending.rst:188 msgid "" -"If the module hasn't been imported yet (i.e. it is not yet present in " -":data:`sys.modules`), this initializes the module; otherwise it simply " -"returns the value of ``sys.modules[\"\"]``. Note that it " -"doesn't enter the module into any namespace -- it only ensures it has been " -"initialized and is stored in :data:`sys.modules`." +"If the module hasn't been imported yet (i.e. it is not yet present in :data:" +"`sys.modules`), this initializes the module; otherwise it simply returns the " +"value of ``sys.modules[\"\"]``. Note that it doesn't enter the " +"module into any namespace -- it only ensures it has been initialized and is " +"stored in :data:`sys.modules`." msgstr "" #: ../../faq/extending.rst:194 @@ -271,8 +271,8 @@ msgstr "" #: ../../faq/extending.rst:218 msgid "" -"Setup must end in a newline, if there is no newline there, the build process" -" fails. (Fixing this requires some ugly shell script hackery, and this bug " +"Setup must end in a newline, if there is no newline there, the build process " +"fails. (Fixing this requires some ugly shell script hackery, and this bug " "is so minor that it doesn't seem worth the effort.)" msgstr "" @@ -302,9 +302,9 @@ msgstr "" #: ../../faq/extending.rst:249 msgid "" -"Most packaged versions of Python don't include the " -":file:`/usr/lib/python2.{x}/config/` directory, which contains various files" -" required for compiling Python extensions." +"Most packaged versions of Python don't include the :file:`/usr/lib/python2." +"{x}/config/` directory, which contains various files required for compiling " +"Python extensions." msgstr "" #: ../../faq/extending.rst:253 @@ -321,9 +321,9 @@ msgstr "" #: ../../faq/extending.rst:261 msgid "" -"Sometimes you want to emulate the Python interactive interpreter's behavior," -" where it gives you a continuation prompt when the input is incomplete (e.g." -" you typed the start of an \"if\" statement or you didn't close your " +"Sometimes you want to emulate the Python interactive interpreter's behavior, " +"where it gives you a continuation prompt when the input is incomplete (e.g. " +"you typed the start of an \"if\" statement or you didn't close your " "parentheses or triple string quotes), but it gives you a syntax error " "message immediately when the input is invalid." msgstr "" @@ -346,23 +346,23 @@ msgstr "" #: ../../faq/extending.rst:276 msgid "" "However sometimes you have to run the embedded Python interpreter in the " -"same thread as your rest application and you can't allow the " -":c:func:`PyRun_InteractiveLoop` to stop while waiting for user input. The " -"one solution then is to call :c:func:`PyParser_ParseString` and test for " -"``e.error`` equal to ``E_EOF``, which means the input is incomplete. Here's" -" a sample code fragment, untested, inspired by code from Alex Farber::" +"same thread as your rest application and you can't allow the :c:func:" +"`PyRun_InteractiveLoop` to stop while waiting for user input. The one " +"solution then is to call :c:func:`PyParser_ParseString` and test for ``e." +"error`` equal to ``E_EOF``, which means the input is incomplete. Here's a " +"sample code fragment, untested, inspired by code from Alex Farber::" msgstr "" #: ../../faq/extending.rst:310 msgid "" -"Another solution is trying to compile the received string with " -":c:func:`Py_CompileString`. If it compiles without errors, try to execute " -"the returned code object by calling :c:func:`PyEval_EvalCode`. Otherwise " -"save the input for later. If the compilation fails, find out if it's an " -"error or just more input is required - by extracting the message string from" -" the exception tuple and comparing it to the string \"unexpected EOF while " -"parsing\". Here is a complete example using the GNU readline library (you " -"may want to ignore **SIGINT** while calling readline())::" +"Another solution is trying to compile the received string with :c:func:" +"`Py_CompileString`. If it compiles without errors, try to execute the " +"returned code object by calling :c:func:`PyEval_EvalCode`. Otherwise save " +"the input for later. If the compilation fails, find out if it's an error or " +"just more input is required - by extracting the message string from the " +"exception tuple and comparing it to the string \"unexpected EOF while parsing" +"\". Here is a complete example using the GNU readline library (you may want " +"to ignore **SIGINT** while calling readline())::" msgstr "" #: ../../faq/extending.rst:432 @@ -371,10 +371,9 @@ msgstr "" #: ../../faq/extending.rst:434 msgid "" -"To dynamically load g++ extension modules, you must recompile Python, relink" -" it using g++ (change LINKCC in the Python Modules Makefile), and link your " -"extension module using g++ (e.g., ``g++ -shared -o mymodule.so " -"mymodule.o``)." +"To dynamically load g++ extension modules, you must recompile Python, relink " +"it using g++ (change LINKCC in the Python Modules Makefile), and link your " +"extension module using g++ (e.g., ``g++ -shared -o mymodule.so mymodule.o``)." msgstr "" #: ../../faq/extending.rst:440 @@ -385,14 +384,13 @@ msgstr "" #: ../../faq/extending.rst:442 msgid "" -"Yes, you can inherit from built-in classes such as :class:`int`, " -":class:`list`, :class:`dict`, etc." +"Yes, you can inherit from built-in classes such as :class:`int`, :class:" +"`list`, :class:`dict`, etc." msgstr "" #: ../../faq/extending.rst:445 msgid "" -"The Boost Python Library (BPL, " -"http://www.boost.org/libs/python/doc/index.html) provides a way of doing " -"this from C++ (i.e. you can inherit from an extension class written in C++ " -"using the BPL)." +"The Boost Python Library (BPL, http://www.boost.org/libs/python/doc/index." +"html) provides a way of doing this from C++ (i.e. you can inherit from an " +"extension class written in C++ using the BPL)." msgstr "" diff --git a/faq/general.po b/faq/general.po index f60290442..9aedd1f69 100644 --- a/faq/general.po +++ b/faq/general.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Gustavo de Carvalho Sales , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Bruno Leuenroth , 2019 # felipe caridade , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-27 10:59+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" "Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,21 +43,21 @@ msgstr "O que é Python?" #: ../../faq/general.rst:18 msgid "" -"Python is an interpreted, interactive, object-oriented programming language." -" It incorporates modules, exceptions, dynamic typing, very high level " -"dynamic data types, and classes. Python combines remarkable power with very" -" clear syntax. It has interfaces to many system calls and libraries, as well" -" as to various window systems, and is extensible in C or C++. It is also " -"usable as an extension language for applications that need a programmable " -"interface. Finally, Python is portable: it runs on many Unix variants, on " -"the Mac, and on Windows 2000 and later." -msgstr "" -"O Python é uma linguagem de programação interpretada, interativa e orientada" -" a objetos. O mesmo incorporou módulos, exceções, tipagem dinâmica, tipos de" -" dados dinâmicos de alto nível e classes. O Python fornece ao desenvolvedor " +"Python is an interpreted, interactive, object-oriented programming " +"language. It incorporates modules, exceptions, dynamic typing, very high " +"level dynamic data types, and classes. Python combines remarkable power " +"with very clear syntax. It has interfaces to many system calls and " +"libraries, as well as to various window systems, and is extensible in C or C+" +"+. It is also usable as an extension language for applications that need a " +"programmable interface. Finally, Python is portable: it runs on many Unix " +"variants, on the Mac, and on Windows 2000 and later." +msgstr "" +"O Python é uma linguagem de programação interpretada, interativa e orientada " +"a objetos. O mesmo incorporou módulos, exceções, tipagem dinâmica, tipos de " +"dados dinâmicos de alto nível e classes. O Python fornece ao desenvolvedor " "um poder notável aliado a uma sintaxe simples de clara. Possui interfaces " -"para muitas chamadas e bibliotecas do sistema, bem como para vários sistemas" -" de janelas, e é extensível através de linguagem como o C ou C ++. Também é " +"para muitas chamadas e bibliotecas do sistema, bem como para vários sistemas " +"de janelas, e é extensível através de linguagem como o C ou C ++. Também é " "utilizado como linguagem de extensão para aplicativos que precisam de uma " "interface programável. Finalmente, o Python é portátil: o mesmo pode ser " "executado em várias variantes do Unix, no Mac e no Windows 2000 ou versões " @@ -68,10 +69,10 @@ msgid "" "to Python `_ links to other " "introductory tutorials and resources for learning Python." msgstr "" -"Para saber mais, inicie pelo nosso tutorial :ref:`tutorial-index`. Os links" -" do `Beginner's Guide to Python " -"`_ para outros tutoriais " -"introdutórios e recursos da linguagem Python." +"Para saber mais, inicie pelo nosso tutorial :ref:`tutorial-index`. Os links " +"do `Beginner's Guide to Python `_ para outros tutoriais introdutórios e recursos da " +"linguagem Python." #: ../../faq/general.rst:33 msgid "What is the Python Software Foundation?" @@ -89,17 +90,17 @@ msgstr "" "lucrativos que detém os direitos autorais sobre as versões 2.1 do Python e " "as mais recentes. A missão do PSF é avançar a tecnologia de código aberto " "relacionada à linguagem de programação Python e divulgar a utilização do " -"Python. A página inicial do PSF pode ser acessada pelo link a seguir " -"https://www.python.org/psf/." +"Python. A página inicial do PSF pode ser acessada pelo link a seguir https://" +"www.python.org/psf/." #: ../../faq/general.rst:41 msgid "" "Donations to the PSF are tax-exempt in the US. If you use Python and find " -"it helpful, please contribute via `the PSF donation page " -"`_." +"it helpful, please contribute via `the PSF donation page `_." msgstr "" -"Doações para o PSF estão isentas de impostos nos EUA. Se utilizares o Python" -" e achares útil, contribua através da página de doação do PSF `the PSF " +"Doações para o PSF estão isentas de impostos nos EUA. Se utilizares o Python " +"e achares útil, contribua através da página de doação do PSF `the PSF " "donation page `_." #: ../../faq/general.rst:47 @@ -109,17 +110,17 @@ msgstr "Existem restrições de direitos autorais sobre o uso do Python?" #: ../../faq/general.rst:49 msgid "" "You can do anything you want with the source, as long as you leave the " -"copyrights in and display those copyrights in any documentation about Python" -" that you produce. If you honor the copyright rules, it's OK to use Python " +"copyrights in and display those copyrights in any documentation about Python " +"that you produce. If you honor the copyright rules, it's OK to use Python " "for commercial use, to sell copies of Python in source or binary form " "(modified or unmodified), or to sell products that incorporate Python in " "some form. We would still like to know about all commercial use of Python, " "of course." msgstr "" "Podemos fazer tudo o que quisermos com os fontes, desde que deixemos os " -"direitos autorais e exibimos esses direitos em qualquer documentação sobre o" -" Python que produzirmos. Se honrarmos as regras dos direitos autorais, não " -"há quaisquer problema em utilizar o Python em versões comerciais, vende-lo " +"direitos autorais e exibimos esses direitos em qualquer documentação sobre o " +"Python que produzirmos. Se honrarmos as regras dos direitos autorais, não há " +"quaisquer problema em utilizar o Python em versões comerciais, vende-lo " "cópia-lo na forma de código fonte ou o seu binária (modificado ou não " "modificado), ou para vender produtos que incorporem o Python de alguma " "forma. Ainda gostaríamos de saber sobre todo o uso comercial de Python, é " @@ -136,8 +137,8 @@ msgstr "" #: ../../faq/general.rst:59 msgid "" "The Python logo is trademarked, and in certain cases permission is required " -"to use it. Consult `the Trademark Usage Policy " -"`__ for more information." +"to use it. Consult `the Trademark Usage Policy `__ for more information." msgstr "" "O logotipo do Python é marca registrada e, em certos casos, é necessária " "permissão para usá-la. Consulte a Política de Uso da Marca comercial `the " @@ -159,35 +160,35 @@ msgstr "" #: ../../faq/general.rst:70 msgid "" "I had extensive experience with implementing an interpreted language in the " -"ABC group at CWI, and from working with this group I had learned a lot about" -" language design. This is the origin of many Python features, including the" -" use of indentation for statement grouping and the inclusion of very-high-" +"ABC group at CWI, and from working with this group I had learned a lot about " +"language design. This is the origin of many Python features, including the " +"use of indentation for statement grouping and the inclusion of very-high-" "level data types (although the details are all different in Python)." msgstr "" "Eu tive vasta experiência na implementação de linguagens interpretada no " "grupo ABC da CWI e, ao trabalhar com esse grupo, aprendi muito sobre o " "design de linguagens. Este é a origem de muitos recursos do Python, " "incluindo o uso da indentação para o agrupamento de instruções e a inclusão " -"de tipos de dados de alto nível (embora existam diversos detalhes diferentes" -" em Python)." +"de tipos de dados de alto nível (embora existam diversos detalhes diferentes " +"em Python)." #: ../../faq/general.rst:77 msgid "" "I had a number of gripes about the ABC language, but also liked many of its " "features. It was impossible to extend the ABC language (or its " -"implementation) to remedy my complaints -- in fact its lack of extensibility" -" was one of its biggest problems. I had some experience with using " -"Modula-2+ and talked with the designers of Modula-3 and read the Modula-3 " -"report. Modula-3 is the origin of the syntax and semantics used for " -"exceptions, and some other Python features." +"implementation) to remedy my complaints -- in fact its lack of extensibility " +"was one of its biggest problems. I had some experience with using Modula-2+ " +"and talked with the designers of Modula-3 and read the Modula-3 report. " +"Modula-3 is the origin of the syntax and semantics used for exceptions, and " +"some other Python features." msgstr "" "Eu tinha uma série de queixas sobre a língua ABC, mas também havia gostado " -"de muitos das suas características. Era impossível estender o idioma ABC (ou" -" melhorar a implementação) para remediar minhas queixas - na verdade, a " -"falta de extensibilidade era um dos maiores problemas. Eu tinha alguma " -"experiência com o uso de Modula-2+ e conversei com os designers do Modula-3 " -"e li o relatório do Modula-3. Modula-3 foi a origem da sintaxe e semântica " -"usada nas exceções, e alguns outros recursos do Python." +"de muitos das suas características. Era impossível estender o idioma ABC (ou " +"melhorar a implementação) para remediar minhas queixas - na verdade, a falta " +"de extensibilidade era um dos maiores problemas. Eu tinha alguma experiência " +"com o uso de Modula-2+ e conversei com os designers do Modula-3 e li o " +"relatório do Modula-3. Modula-3 foi a origem da sintaxe e semântica usada " +"nas exceções, e alguns outros recursos do Python." #: ../../faq/general.rst:85 msgid "" @@ -203,8 +204,8 @@ msgstr "" "escrevendo programas em C ou Bourne Shell Scripts, uma vez que o Amoeba " "tinha a sua própria interface de chamada do sistema, que não era facilmente " "acessível a partir do Shell Bourne. Minha experiência com o tratamento de " -"erros em Amoeba me conscientizou da importância das exceções como um recurso" -" das linguagem de programação." +"erros em Amoeba me conscientizou da importância das exceções como um recurso " +"das linguagem de programação." #: ../../faq/general.rst:92 msgid "" @@ -213,10 +214,10 @@ msgid "" "would be foolish to write an Amoeba-specific language, so I decided that I " "needed a language that was generally extensible." msgstr "" -"Percebi que uma linguagem de Script com uma sintaxe semelhante a do ABC, mas" -" com acesso às chamadas do sistema Amoeba, preencheria a necessidade. " -"Percebi também que seria uma boa escrever uma linguagem específica do ameba," -" então, decidi que precisava de uma linguagem realmente extensível." +"Percebi que uma linguagem de Script com uma sintaxe semelhante a do ABC, mas " +"com acesso às chamadas do sistema Amoeba, preencheria a necessidade. Percebi " +"também que seria uma boa escrever uma linguagem específica do ameba, então, " +"decidi que precisava de uma linguagem realmente extensível." #: ../../faq/general.rst:97 msgid "" @@ -256,13 +257,13 @@ msgstr "" msgid "" "The language comes with a large standard library that covers areas such as " "string processing (regular expressions, Unicode, calculating differences " -"between files), Internet protocols (HTTP, FTP, SMTP, XML-RPC, POP, IMAP, CGI" -" programming), software engineering (unit testing, logging, profiling, " +"between files), Internet protocols (HTTP, FTP, SMTP, XML-RPC, POP, IMAP, CGI " +"programming), software engineering (unit testing, logging, profiling, " "parsing Python code), and operating system interfaces (system calls, " -"filesystems, TCP/IP sockets). Look at the table of contents for :ref" -":`library-index` to get an idea of what's available. A wide variety of " -"third-party extensions are also available. Consult `the Python Package " -"Index `_ to find packages of interest to you." +"filesystems, TCP/IP sockets). Look at the table of contents for :ref:" +"`library-index` to get an idea of what's available. A wide variety of third-" +"party extensions are also available. Consult `the Python Package Index " +"`_ to find packages of interest to you." msgstr "" "A linguagem vem com uma larga biblioteca padrão que cobre áreas como " "processamento de cadeias de caracteres (expressões regulares, Unicode, " @@ -271,8 +272,8 @@ msgstr "" "unitários, logging, análise de desempenho, parsing de código Python), e " "interfaces do sistema operacional (chamadas de sistema, sistemas de " "arquivos, sockets TCP/IP). Veja a tabela de conteúdo :ref:`library-index` " -"para ter uma ideia do que está disponível. Uma grande variedade de extensões" -" de terceiros também está disponível. Consulte `o Índice de Pacotes Python " +"para ter uma ideia do que está disponível. Uma grande variedade de extensões " +"de terceiros também está disponível. Consulte `o Índice de Pacotes Python " "`_ para encontrar pacotes que possam interessar a você." #: ../../faq/general.rst:125 @@ -281,8 +282,8 @@ msgstr "Como funciona o esquema de numeração de versões do Python?" #: ../../faq/general.rst:127 msgid "" -"Python versions are numbered A.B.C or A.B. A is the major version number --" -" it is only incremented for really major changes in the language. B is the " +"Python versions are numbered A.B.C or A.B. A is the major version number -- " +"it is only incremented for really major changes in the language. B is the " "minor version number, incremented for less earth-shattering changes. C is " "the micro-level -- it is incremented for each bugfix release. See :pep:`6` " "for more information about bugfix releases." @@ -296,13 +297,13 @@ msgstr "" #: ../../faq/general.rst:133 msgid "" -"Not all releases are bugfix releases. In the run-up to a new major release," -" a series of development releases are made, denoted as alpha, beta, or " -"release candidate. Alphas are early releases in which interfaces aren't yet" -" finalized; it's not unexpected to see an interface change between two alpha" -" releases. Betas are more stable, preserving existing interfaces but " -"possibly adding new modules, and release candidates are frozen, making no " -"changes except as needed to fix critical bugs." +"Not all releases are bugfix releases. In the run-up to a new major release, " +"a series of development releases are made, denoted as alpha, beta, or " +"release candidate. Alphas are early releases in which interfaces aren't yet " +"finalized; it's not unexpected to see an interface change between two alpha " +"releases. Betas are more stable, preserving existing interfaces but possibly " +"adding new modules, and release candidates are frozen, making no changes " +"except as needed to fix critical bugs." msgstr "" "Nem todos as versões são lançamentos de bugfix. Na corrida por uma nova " "versão principal, uma série de lançamentos de desenvolvimento são feitas, " @@ -333,14 +334,14 @@ msgstr "" #: ../../faq/general.rst:148 msgid "" -"You may also find version numbers with a \"+\" suffix, e.g. \"2.2+\". These" -" are unreleased versions, built directly from the CPython development " +"You may also find version numbers with a \"+\" suffix, e.g. \"2.2+\". These " +"are unreleased versions, built directly from the CPython development " "repository. In practice, after a final minor release is made, the version " "is incremented to the next minor version, which becomes the \"a0\" version, " "e.g. \"2.4a0\"." msgstr "" -"Também podemos encontrar números de versão com um sufixo \"+\", por exemplo," -" \"2.2+\". Estas são versões não lançadas, construídas diretamente do " +"Também podemos encontrar números de versão com um sufixo \"+\", por exemplo, " +"\"2.2+\". Estas são versões não lançadas, construídas diretamente do " "repositório de desenvolvimento do CPython. Na prática, após uma última " "versão menor, a versão é incrementada para a próxima versão secundária, que " "se torna a versão \"a0\", por exemplo, \"2.4a0\"." @@ -350,8 +351,8 @@ msgid "" "See also the documentation for :data:`sys.version`, :data:`sys.hexversion`, " "and :data:`sys.version_info`." msgstr "" -"Veja também a documentação para :data:`sys.version`, :data:`sys.hexversion`," -" e :data:`sys.version_info`." +"Veja também a documentação para :data:`sys.version`, :data:`sys.hexversion`, " +"e :data:`sys.version_info`." #: ../../faq/general.rst:158 msgid "How do I obtain a copy of the Python source?" @@ -360,8 +361,8 @@ msgstr "Como faço para obter uma cópia dos fonte do Python?" #: ../../faq/general.rst:160 msgid "" "The latest Python source distribution is always available from python.org, " -"at https://www.python.org/downloads/. The latest development sources can be" -" obtained at https://github.com/python/cpython/." +"at https://www.python.org/downloads/. The latest development sources can be " +"obtained at https://github.com/python/cpython/." msgstr "" "A última distribuição fonte do Python sempre está disponível no python.org, " "em https://www.python.org/downloads/. As últimas fontes de desenvolvimento " @@ -386,9 +387,9 @@ msgid "" "`__ for more information on getting the " "source code and compiling it." msgstr "" -"Consulte a seção Introdução do Guia do Desenvolvedor Python " -"`__ para obter mais informações sobre " -"como obter o código-fonte e compilá-lo." +"Consulte a seção Introdução do Guia do Desenvolvedor Python `__ para obter mais informações sobre como obter " +"o código-fonte e compilá-lo." #: ../../faq/general.rst:175 msgid "How do I get documentation on Python?" @@ -402,14 +403,14 @@ msgid "" msgstr "" "A documentação padrão para a versão atualmente estável do Python está " "disponível em https://docs.python.org/3/. Em PDF, texto simples e versões " -"HTML para download também estão disponíveis em " -"https://docs.python.org/3/download.html." +"HTML para download também estão disponíveis em https://docs.python.org/3/" +"download.html." #: ../../faq/general.rst:183 msgid "" "The documentation is written in reStructuredText and processed by `the " -"Sphinx documentation tool `__. The reStructuredText" -" source for the documentation is part of the Python source distribution." +"Sphinx documentation tool `__. The reStructuredText " +"source for the documentation is part of the Python source distribution." msgstr "" "A documentação é escrita em reStructuredText e processada pela `the Sphinx " "documentation tool `__. Os fonte do " @@ -430,55 +431,52 @@ msgstr "" #: ../../faq/general.rst:194 msgid "" -"Consult `the Beginner's Guide " -"`_ to find information for " -"beginning Python programmers, including lists of tutorials." +"Consult `the Beginner's Guide `_ to find information for beginning Python programmers, " +"including lists of tutorials." msgstr "" -"Consulte o Guia do Iniciante `the Beginner's Guide " -"`_ para encontrar informações " -"referewntes a quem está começando agora na programação Python, incluindo uma" -" lista com tutoriais." +"Consulte o Guia do Iniciante `the Beginner's Guide `_ para encontrar informações referewntes a quem está " +"começando agora na programação Python, incluindo uma lista com tutoriais." #: ../../faq/general.rst:199 msgid "Is there a newsgroup or mailing list devoted to Python?" -msgstr "" -"Existe um grupo de discussão ou lista de discussão dedicada ao Python?" +msgstr "Existe um grupo de discussão ou lista de discussão dedicada ao Python?" #: ../../faq/general.rst:201 msgid "" "There is a newsgroup, :newsgroup:`comp.lang.python`, and a mailing list, " "`python-list `_. The " "newsgroup and mailing list are gatewayed into each other -- if you can read " -"news it's unnecessary to subscribe to the mailing list. " -":newsgroup:`comp.lang.python` is high-traffic, receiving hundreds of " -"postings every day, and Usenet readers are often more able to cope with this" -" volume." +"news it's unnecessary to subscribe to the mailing list. :newsgroup:`comp." +"lang.python` is high-traffic, receiving hundreds of postings every day, and " +"Usenet readers are often more able to cope with this volume." msgstr "" "Existe um grupo de notícias :newsgroup:`comp.lang.python`, e uma lista de " "discussão, ` python-list `_. O grupo de discussão e a lista de endereços são entregues - se " "poderes ler as notícias, não será necessário se inscrever na lista de " -"endereços. :newsgroup:`comp.lang.python` possui bastante postagem, recebendo" -" centenas de postagens todos os dias, e os leitores do Usenet geralmente são" -" mais capazes de lidar com esse volume." +"endereços. :newsgroup:`comp.lang.python` possui bastante postagem, recebendo " +"centenas de postagens todos os dias, e os leitores do Usenet geralmente são " +"mais capazes de lidar com esse volume." #: ../../faq/general.rst:208 msgid "" -"Announcements of new software releases and events can be found in " -"comp.lang.python.announce, a low-traffic moderated list that receives about " -"five postings per day. It's available as `the python-announce mailing list " +"Announcements of new software releases and events can be found in comp.lang." +"python.announce, a low-traffic moderated list that receives about five " +"postings per day. It's available as `the python-announce mailing list " "`_." msgstr "" "Os anúncios de novas versões e eventos de software podem ser encontrados em " "comp.lang.python.announce, uma lista moderada de baixo tráfego que recebe " -"cerca de cinco postagens por dia. Está disponível como `the python-announce" -" mailing list `_." #: ../../faq/general.rst:213 msgid "" -"More info about other mailing lists and newsgroups can be found at " -"https://www.python.org/community/lists/." +"More info about other mailing lists and newsgroups can be found at https://" +"www.python.org/community/lists/." msgstr "" "Mais informações sobre outras listas de discussão e Newsgroups podem ser " "encontradas em https://www.python.org/community/lists/." @@ -489,21 +487,20 @@ msgstr "Como faço para obter uma versão de teste beta do Python?" #: ../../faq/general.rst:220 msgid "" -"Alpha and beta releases are available from " -"https://www.python.org/downloads/. All releases are announced on the " -"comp.lang.python and comp.lang.python.announce newsgroups and on the Python " -"home page at https://www.python.org/; an RSS feed of news is available." +"Alpha and beta releases are available from https://www.python.org/" +"downloads/. All releases are announced on the comp.lang.python and comp." +"lang.python.announce newsgroups and on the Python home page at https://www." +"python.org/; an RSS feed of news is available." msgstr "" -"As versões Alpha e beta estão disponíveis em " -"https://www.python.org/downloads/. Todos os lançamentos são anunciados nos " -"grupos de notícias comp.lang.python e comp.lang.python.announce e na página " -"inicial do Python em https://www.python.org/; um feed RSS de notícias está " -"disponível." +"As versões Alpha e beta estão disponíveis em https://www.python.org/" +"downloads/. Todos os lançamentos são anunciados nos grupos de notícias comp." +"lang.python e comp.lang.python.announce e na página inicial do Python em " +"https://www.python.org/; um feed RSS de notícias está disponível." #: ../../faq/general.rst:225 msgid "" -"You can also access the development version of Python through Git. See `The" -" Python Developer's Guide `_ for details." +"You can also access the development version of Python through Git. See `The " +"Python Developer's Guide `_ for details." msgstr "" "Você também pode acessar a versão de desenvolvimento do Python através do " "Git. Veja `O Guia do Desenvolvedor Python ` _ " @@ -527,16 +524,16 @@ msgid "" "us to contact you if we have follow-up questions. It will also enable " "Roundup to send you updates as we act on your bug. If you had previously " "used SourceForge to report bugs to Python, you can obtain your Roundup " -"password through Roundup's `password reset procedure " -"`_." +"password through Roundup's `password reset procedure `_." msgstr "" -"Você deve ter uma conta em Roundup para poder enviar um bug report; Isso nos" -" permite contactá-lo se tivermos mais perguntas a serem feitas. Também " +"Você deve ter uma conta em Roundup para poder enviar um bug report; Isso nos " +"permite contactá-lo se tivermos mais perguntas a serem feitas. Também " "permitirá que o Roundup lhe envie atualizações à medida que trabalhamos na " "correção do bug por você relatado. Se tiveres usado o SourceForge " "anteriormente para relatar erros do Python, você pode obter sua senha do " -"Roundup através do `password reset procedure " -"`_." +"Roundup através do `password reset procedure `_." #: ../../faq/general.rst:241 msgid "" @@ -584,8 +581,8 @@ msgid "" "at https://wiki.python.org/moin/PythonBooks for a list." msgstr "" "Sim, há muitos publicados e muitos outros que estão sendo nesse momento " -"escritos!! Veja o wiki python.org em " -"https://wiki.python.org/moin/PythonBooks para obter uma listagem." +"escritos!! Veja o wiki python.org em https://wiki.python.org/moin/" +"PythonBooks para obter uma listagem." #: ../../faq/general.rst:264 msgid "" @@ -603,12 +600,12 @@ msgstr "Onde está armazenado o site www.python.org?" #: ../../faq/general.rst:271 msgid "" "The Python project's infrastructure is located all over the world and is " -"managed by the Python Infrastructure Team. Details `here " -"`__." +"managed by the Python Infrastructure Team. Details `here `__." msgstr "" "A infraestrutura do projeto Python está localizada em todo o mundo e é " -"gerenciada pela equipe de infraestrutura do Python. Detalhes `aqui " -"` __." +"gerenciada pela equipe de infraestrutura do Python. Detalhes `aqui ` __." #: ../../faq/general.rst:276 msgid "Why is it called Python?" @@ -617,16 +614,16 @@ msgstr "Por que o nome Python?" #: ../../faq/general.rst:278 msgid "" "When he began implementing Python, Guido van Rossum was also reading the " -"published scripts from `\"Monty Python's Flying Circus\" " -"`__, a BBC comedy series from " -"the 1970s. Van Rossum thought he needed a name that was short, unique, and " -"slightly mysterious, so he decided to call the language Python." +"published scripts from `\"Monty Python's Flying Circus\" `__, a BBC comedy series from the 1970s. " +"Van Rossum thought he needed a name that was short, unique, and slightly " +"mysterious, so he decided to call the language Python." msgstr "" "Quando o Guido van Rossum começou a implementar o Python, o mesmo também " "estava lendo os scripts publicados do `\"Monty Python's Flying Circus\" " -"`__, uma série de comédia da BBC" -" da década de 1970. Van Rossum pensou que precisava de um nome curto, único " -"e ligeiramente misterioso, então resolveu chamar a sua linguagem de Python." +"`__, uma série de comédia da BBC " +"da década de 1970. Van Rossum pensou que precisava de um nome curto, único e " +"ligeiramente misterioso, então resolveu chamar a sua linguagem de Python." #: ../../faq/general.rst:286 msgid "Do I have to like \"Monty Python's Flying Circus\"?" @@ -656,12 +653,12 @@ msgstr "" #: ../../faq/general.rst:301 msgid "" -"The developers issue \"bugfix\" releases of older versions, so the stability" -" of existing releases gradually improves. Bugfix releases, indicated by a " +"The developers issue \"bugfix\" releases of older versions, so the stability " +"of existing releases gradually improves. Bugfix releases, indicated by a " "third component of the version number (e.g. 3.5.3, 3.6.2), are managed for " "stability; only fixes for known problems are included in a bugfix release, " -"and it's guaranteed that interfaces will remain the same throughout a series" -" of bugfix releases." +"and it's guaranteed that interfaces will remain the same throughout a series " +"of bugfix releases." msgstr "" "Os desenvolvedores lançam versões \"bugfix\" de versões mais antigas, então " "a estabilidade dos lançamentos existentes melhora gradualmente. As " @@ -669,24 +666,23 @@ msgstr "" "número da versão (por exemplo, 3.5.3, 3.6.2), são gerenciadas para " "estabilidade; somente correções para problemas conhecidos são incluídas em " "uma versão de correções de erros, e é garantido que as interfaces " -"permanecerão as mesmas durante uma série de liberações de correções de " -"erros." +"permanecerão as mesmas durante uma série de liberações de correções de erros." #: ../../faq/general.rst:308 msgid "" "The latest stable releases can always be found on the `Python download page " "`_. There are two production-ready " "versions of Python: 2.x and 3.x. The recommended version is 3.x, which is " -"supported by most widely used libraries. Although 2.x is still widely used," -" `it will not be maintained after January 1, 2020 " -"`_." +"supported by most widely used libraries. Although 2.x is still widely used, " +"`it will not be maintained after January 1, 2020 `_." msgstr "" "As últimas versões estáveis ​​sempre podem ser encontradas na página de " "download do Python `_. Existem duas " -"versões prontas para produção do Python: 2.xe 3.x. A versão recomendada é " -"3.x, que é suportada pelas bibliotecas mais usadas. Embora 2.x ainda seja " -"amplamente utilizado, `não será mantido após 1 de janeiro de 2020 " -"` _." +"versões prontas para produção do Python: 2.xe 3.x. A versão recomendada é 3." +"x, que é suportada pelas bibliotecas mais usadas. Embora 2.x ainda seja " +"amplamente utilizado, `não será mantido após 1 de janeiro de 2020 ` _." #: ../../faq/general.rst:315 msgid "How many people are using Python?" @@ -706,15 +702,15 @@ msgid "" "it's available from many different sites and packaged with many Linux " "distributions, so download statistics don't tell the whole story either." msgstr "" -"O Python está disponível para download gratuito, portanto, não há números de" -" vendas, e o mesmo está disponível em vários diferentes sites e é empacotado" -" em muitas distribuições Linux, portanto, utilizar as estatísticas de " +"O Python está disponível para download gratuito, portanto, não há números de " +"vendas, e o mesmo está disponível em vários diferentes sites e é empacotado " +"em muitas distribuições Linux, portanto, utilizar as estatísticas de " "downloads não seria a melhor forma para contabilizarmos a base de usuários." #: ../../faq/general.rst:324 msgid "" -"The comp.lang.python newsgroup is very active, but not all Python users post" -" to the group or even read it." +"The comp.lang.python newsgroup is very active, but not all Python users post " +"to the group or even read it." msgstr "" "O grupo de notícias comp.lang.python é bastante ativo, mas nem todos os " "usuários Python postam no grupo ou mesmo o leem regularmente." @@ -726,37 +722,36 @@ msgstr "Exizte algum projeto significativo feito em Python?" #: ../../faq/general.rst:331 msgid "" "See https://www.python.org/about/success for a list of projects that use " -"Python. Consulting the proceedings for `past Python conferences " -"`_ will reveal contributions " -"from many different companies and organizations." +"Python. Consulting the proceedings for `past Python conferences `_ will reveal contributions from many " +"different companies and organizations." msgstr "" -"Veja a lista em https://www.python.org/about/success para obter uma listagem" -" de projetos que usam o Python. Consultar os procedimentos para as " -"conferências passadas do Python, `past Python conferences " -"`_ revelará as contribuições de" -" várias empresas e de diferentes organizações." +"Veja a lista em https://www.python.org/about/success para obter uma listagem " +"de projetos que usam o Python. Consultar os procedimentos para as " +"conferências passadas do Python, `past Python conferences `_ revelará as contribuições de várias " +"empresas e de diferentes organizações." #: ../../faq/general.rst:336 msgid "" "High-profile Python projects include `the Mailman mailing list manager " -"`_ and `the Zope application server " -"`_. Several Linux distributions, most notably `Red Hat" -" `_, have written part or all of their installer and" -" system administration software in Python. Companies that use Python " -"internally include Google, Yahoo, and Lucasfilm Ltd." +"`_ and `the Zope application server `_. Several Linux distributions, most notably `Red Hat `_, have written part or all of their installer and system " +"administration software in Python. Companies that use Python internally " +"include Google, Yahoo, and Lucasfilm Ltd." msgstr "" "Os projetos Python de alto perfil incluem o gerenciador da lista e-mail " "Mailman `the Mailman mailing list manager `_ e o " -"servidor de aplicativos Zope `the Zope application server " -"`_. Várias distribuições Linux, mais notavelmente o " -"`Red Hat `_, escreveram parte ou a totalidade do " -"seus instaladores e software de administração do sistema em Python. Empresas" -" que usam Python internamente incluem Google, Yahoo e Lucasfilm Ltd." +"servidor de aplicativos Zope `the Zope application server `_. Várias distribuições Linux, mais notavelmente o `Red Hat `_, escreveram parte ou a totalidade do seus instaladores e " +"software de administração do sistema em Python. Empresas que usam Python " +"internamente incluem Google, Yahoo e Lucasfilm Ltd." #: ../../faq/general.rst:345 msgid "What new developments are expected for Python in the future?" -msgstr "" -"Quais são os novos desenvolvimentos esperados para o Python no futuro?" +msgstr "Quais são os novos desenvolvimentos esperados para o Python no futuro?" #: ../../faq/general.rst:347 msgid "" @@ -769,18 +764,18 @@ msgstr "" "Consulte https://www.python.org/dev/peps/ para ver a lista de propostas de " "aprimoramento do python (PEPs). As PEPs são documentos de design que " "descrevem novos recurso que foram sugerido para o Python, fornecendo uma " -"especificação técnica concisa e a sua lógica. Procure uma PEP intitulado de" -" \"Python X.Y Release Schedule\", onde X.Y é uma versão que ainda não foi " +"especificação técnica concisa e a sua lógica. Procure uma PEP intitulado de " +"\"Python X.Y Release Schedule\", onde X.Y é uma versão que ainda não foi " "lançada publicamente." #: ../../faq/general.rst:353 msgid "" -"New development is discussed on `the python-dev mailing list " -"`_." +"New development is discussed on `the python-dev mailing list `_." msgstr "" "Novos desenvolvimentos são discutido na lista de discussão do python-dev " -"`the python-dev mailing list `_." +"`the python-dev mailing list `_." #: ../../faq/general.rst:358 msgid "Is it reasonable to propose incompatible changes to Python?" @@ -790,8 +785,8 @@ msgstr "É razoável propor mudanças incompatíveis com o Python?" msgid "" "In general, no. There are already millions of lines of Python code around " "the world, so any change in the language that invalidates more than a very " -"small fraction of existing programs has to be frowned upon. Even if you can" -" provide a conversion program, there's still the problem of updating all " +"small fraction of existing programs has to be frowned upon. Even if you can " +"provide a conversion program, there's still the problem of updating all " "documentation; many books have been written about Python, and we don't want " "to invalidate them all at a single stroke." msgstr "" @@ -826,8 +821,8 @@ msgstr "Sim." msgid "" "It is still common to start students with a procedural and statically typed " "language such as Pascal, C, or a subset of C++ or Java. Students may be " -"better served by learning Python as their first language. Python has a very" -" simple and consistent syntax and a large standard library and, most " +"better served by learning Python as their first language. Python has a very " +"simple and consistent syntax and a large standard library and, most " "importantly, using Python in a beginning programming course lets students " "concentrate on important programming skills such as problem decomposition " "and data type design. With Python, students can be quickly introduced to " @@ -837,14 +832,14 @@ msgstr "" "Ainda é bastante comum que os alunos iniciem com uma linguagem procedura e " "estaticamente tipada como Pascal e o C ou um subconjunto do C++ ou do Java. " "Os alunos podem ser melhor atendidos ao aprender Python como sua primeira " -"língua. O Python possui uma sintaxe muito simples e consistente e uma grande" -" quantidade de bibliotecas padrão e, o mais importante, o uso do Python em " -"um curso de programação para iniciantes permite aos alunos se concentrarem " -"em habilidades de programação importantes, como a decomposição do problema e" -" o design do tipo de dados. Com o Python, os alunos podem ser introduzidos " +"língua. O Python possui uma sintaxe muito simples e consistente e uma grande " +"quantidade de bibliotecas padrão e, o mais importante, o uso do Python em um " +"curso de programação para iniciantes permite aos alunos se concentrarem em " +"habilidades de programação importantes, como a decomposição do problema e o " +"design do tipo de dados. Com o Python, os alunos podem ser introduzidos " "rapidamente em conceitos básicos, como loops e procedimentos. Provavelmente " -"os mesmos até poderão trabalhar com objetos definidos por ele mesmos logo em" -" seu primeiro curso." +"os mesmos até poderão trabalhar com objetos definidos por ele mesmos logo em " +"seu primeiro curso." #: ../../faq/general.rst:387 msgid "" @@ -857,8 +852,8 @@ msgid "" "necessarily the best topic to address in the students' first programming " "course." msgstr "" -"Para um aluno que nunca programou antes, usar um idioma estaticamente tipado" -" parece não que não é natural. O mesmo apresenta uma complexidade adicional " +"Para um aluno que nunca programou antes, usar um idioma estaticamente tipado " +"parece não que não é natural. O mesmo apresenta uma complexidade adicional " "que o aluno deverá dominar e geralmente retarda o ritmo do curso. Os alunos " "estão tentando aprender a pensar como um computador, decompor problemas, " "projetar interfaces consistentes e encapsular dados. Embora aprender a usar " @@ -878,8 +873,8 @@ msgid "" "students about code reuse. Third-party modules such as PyGame are also " "helpful in extending the students' reach." msgstr "" -"Muitos outros aspectos do Python fazem do mesmo uma excelente linguagem para" -" quem está aprendendo a programar. Como o Java, o Python possui uma " +"Muitos outros aspectos do Python fazem do mesmo uma excelente linguagem para " +"quem está aprendendo a programar. Como o Java, o Python possui uma " "biblioteca padrão grande para que o estudantes possam receber projetos de " "programação muito cedo no curso e que possam *fazer* trabalhos úteis. As " "atribuições não estão restritas à calculadora padrão de quatro funções e " @@ -915,26 +910,25 @@ msgid "" "There are also good IDEs for Python. IDLE is a cross-platform IDE for " "Python that is written in Python using Tkinter. PythonWin is a Windows-" "specific IDE. Emacs users will be happy to know that there is a very good " -"Python mode for Emacs. All of these programming environments provide syntax" -" highlighting, auto-indenting, and access to the interactive interpreter " -"while coding. Consult `the Python wiki " -"`_ for a full list of Python " -"editing environments." +"Python mode for Emacs. All of these programming environments provide syntax " +"highlighting, auto-indenting, and access to the interactive interpreter " +"while coding. Consult `the Python wiki `_ for a full list of Python editing environments." msgstr "" "Há também boas IDEs para o Python. O IDLE é uma IDE multiplataforma para o " "Python e que foi escrito em Python usando o Tkinter. O PythonWin é uma IDE " -"específica para o Windows. Os usuários do Emacs estarão felizes em saber que" -" existe um ótimo modo Python para Emacs. Todos esses ambientes de " -"programação fornecem destaque de sintaxe, recuo automático e acesso ao " -"intérprete interativo durante o tempo de desenvolvimento. Consulte `o wiki " -"do Python `_ para obter uma " -"lista completa dos ambientes de desenvolvimento para o Python." +"específica para o Windows. Os usuários do Emacs estarão felizes em saber que " +"existe um ótimo modo Python para Emacs. Todos esses ambientes de programação " +"fornecem destaque de sintaxe, recuo automático e acesso ao intérprete " +"interativo durante o tempo de desenvolvimento. Consulte `o wiki do Python " +"`_ para obter uma lista completa " +"dos ambientes de desenvolvimento para o Python." #: ../../faq/general.rst:444 msgid "" "If you want to discuss Python's use in education, you may be interested in " -"joining `the edu-sig mailing list " -"`_." +"joining `the edu-sig mailing list `_." msgstr "" "Se você quiseres discutir o uso do Python na educação, poderás estar " "interessado em se juntar à lista de discussão edu-sig `the edu-sig mailing " diff --git a/faq/gui.po b/faq/gui.po index 42b7a1d21..7b8ded773 100644 --- a/faq/gui.po +++ b/faq/gui.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-29 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,12 +44,12 @@ msgstr "" #: ../../faq/gui.rst:20 msgid "" -"Depending on what platform(s) you are aiming at, there are several. Some of" -" them haven't been ported to Python 3 yet. At least `Tkinter`_ and `Qt`_ " -"are known to be Python 3-compatible." +"Depending on what platform(s) you are aiming at, there are several. Some of " +"them haven't been ported to Python 3 yet. At least `Tkinter`_ and `Qt`_ are " +"known to be Python 3-compatible." msgstr "" -"Dependendo da plataforma (s) que você está apontando, existem vários. Alguns" -" deles ainda não foram portados para o Python 3. Pelo menos, 'Tkinter`_ e " +"Dependendo da plataforma (s) que você está apontando, existem vários. Alguns " +"deles ainda não foram portados para o Python 3. Pelo menos, 'Tkinter`_ e " "`Qt`_ são conhecidos como compatíveis com Python 3." #: ../../faq/gui.rst:27 @@ -56,16 +58,16 @@ msgstr "Tkinter" #: ../../faq/gui.rst:29 msgid "" -"Standard builds of Python include an object-oriented interface to the Tcl/Tk" -" widget set, called :ref:`tkinter `. This is probably the easiest " -"to install (since it comes included with most `binary distributions " -"`_ of Python) and use. For more info " -"about Tk, including pointers to the source, see the `Tcl/Tk home page " -"`_. Tcl/Tk is fully portable to the Mac OS X, Windows, " -"and Unix platforms." +"Standard builds of Python include an object-oriented interface to the Tcl/Tk " +"widget set, called :ref:`tkinter `. This is probably the easiest " +"to install (since it comes included with most `binary distributions `_ of Python) and use. For more info about Tk, " +"including pointers to the source, see the `Tcl/Tk home page `_. Tcl/Tk is fully portable to the Mac OS X, Windows, and Unix " +"platforms." msgstr "" -"As versões padrão do Python incluem uma interface orientada a objetos para o" -" conjunto de widgets Tcl / Tk, chamado: ref: `tkinter 1`. Este é " +"As versões padrão do Python incluem uma interface orientada a objetos para o " +"conjunto de widgets Tcl / Tk, chamado: ref: `tkinter 1`. Este é " "provavelmente o mais fácil de instalar (uma vez que vem incluído na maioria " "das \"distribuições binárias ` _ of " "Python) e uso. Para obter mais informações sobre o Tk, incluindo ponteiros " @@ -85,20 +87,25 @@ msgid "" "targets. Language bindings are available for a number of languages " "including Python, Perl, Ruby, etc." msgstr "" -"WxWidgets (https://www.wxwidgets.org) é uma biblioteca de classe GUI livre e" -" portátil escrita em C ++ que fornece uma aparência e sensação nativas em " +"WxWidgets (https://www.wxwidgets.org) é uma biblioteca de classe GUI livre e " +"portátil escrita em C ++ que fornece uma aparência e sensação nativas em " "várias plataformas, com Windows, Mac OS X, GTK, X11, todos listados como " "Metas estáveis atuais. As ligações de idiomas estão disponíveis para vários " "idiomas, incluindo Python, Perl, Ruby, etc." #: ../../faq/gui.rst:46 msgid "" -"`wxPython `_ is the Python binding for wxwidgets." -" While it often lags slightly behind the official wxWidgets releases, it " -"also offers a number of features via pure Python extensions that are not " +"`wxPython `_ is the Python binding for wxwidgets. " +"While it often lags slightly behind the official wxWidgets releases, it also " +"offers a number of features via pure Python extensions that are not " "available in other language bindings. There is an active wxPython user and " "developer community." msgstr "" +"`wxPython `_ é a ligação do Python para wxwidgets. " +"Embora muitas vezes fique um pouco atrás dos lançamentos oficiais do " +"wxWidgets, também oferece vários recursos por meio de extensões Python puras " +"que não estão disponíveis em outras associações de linguagem. Há uma " +"comunidade ativa de usuários e desenvolvedores do wxPython." #: ../../faq/gui.rst:52 msgid "" @@ -116,32 +123,31 @@ msgstr "Qt" #: ../../faq/gui.rst:60 msgid "" -"There are bindings available for the Qt toolkit (using either `PyQt " -"`_ or `PySide " -"`_) and for KDE (`PyKDE4 " -"`__). PyQt is " -"currently more mature than PySide, but you must buy a PyQt license from " -"`Riverbank Computing `_ if you want to write proprietary applications. PySide is free for " -"all applications." +"There are bindings available for the Qt toolkit (using either `PyQt `_ or `PySide `_) and for KDE (`PyKDE4 `__). PyQt is currently more mature than PySide, but you must " +"buy a PyQt license from `Riverbank Computing `_ if you want to write proprietary " +"applications. PySide is free for all applications." msgstr "" "Existem ligações disponíveis para o kit de ferramentas Qt (usando PyQt " -" `_ ou` PySide " -" `_) e Para o KDE (`PyKDE4 " -"` __). O PyQt é " -"atualmente mais maduro do que o PySide, mas você deve comprar uma licença " -"PyQt da `Riverbank Computing ` _ se você deseja escrever aplicativos proprietários. PySide é" -" gratuito para todas as aplicações." +" `_ ou` PySide `_) e Para o KDE (`PyKDE4 ` __). O PyQt é atualmente mais maduro do que " +"o PySide, mas você deve comprar uma licença PyQt da `Riverbank Computing " +"` _ se você " +"deseja escrever aplicativos proprietários. PySide é gratuito para todas as " +"aplicações." #: ../../faq/gui.rst:67 msgid "" -"Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses" -" are available from `The Qt Company `_." +"Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses " +"are available from `The Qt Company `_." msgstr "" "Qt 4.5 para cima é licenciado sob a licença LGPL; Além disso, as licenças " -"comerciais estão disponíveis na `The Qt Company " -"` _." +"comerciais estão disponíveis na `The Qt Company ` _." #: ../../faq/gui.rst:71 msgid "Gtk+" @@ -149,17 +155,23 @@ msgstr "Gtk+" #: ../../faq/gui.rst:73 msgid "" -"The `GObject introspection bindings " -"`_ for Python allow you to write " -"GTK+ 3 applications. There is also a `Python GTK+ 3 Tutorial `_." +"The `GObject introspection bindings `_ for Python allow you to write GTK+ 3 applications. There is " +"also a `Python GTK+ 3 Tutorial `_." msgstr "" +"As `ligações de introspecção de GObject `_ para o Python permitem escrever aplicativos GTK+ 3. Há também " +"um tutorial `Python GTK+ 3 `_." #: ../../faq/gui.rst:77 msgid "" "The older PyGtk bindings for the `Gtk+ 2 toolkit `_ " "have been implemented by James Henstridge; see ." msgstr "" +"As ligações PyGtk mais antigas para o `kit de ferramentas GTK+ 2 `_ foram implementadas por James Henstridge; veja ." #: ../../faq/gui.rst:81 msgid "Kivy" @@ -190,8 +202,8 @@ msgstr "FLTK" #: ../../faq/gui.rst:93 msgid "" "Python bindings for `the FLTK toolkit `_, a simple yet " -"powerful and mature cross-platform windowing system, are available from `the" -" PyFLTK project `_." +"powerful and mature cross-platform windowing system, are available from `the " +"PyFLTK project `_." msgstr "" "As ligações Python para `the FLTK toolkit ` _, um " "sistema de janelas multiplataforma simples, porém poderoso e maduro, estão " @@ -202,8 +214,7 @@ msgid "OpenGL" msgstr "OpenGL" #: ../../faq/gui.rst:100 -msgid "" -"For OpenGL bindings, see `PyOpenGL `_." +msgid "For OpenGL bindings, see `PyOpenGL `_." msgstr "" "Para ligações OpenGL, veja `PyOpenGL ` _." @@ -214,10 +225,11 @@ msgstr "" #: ../../faq/gui.rst:106 msgid "" -"By installing the `PyObjc Objective-C bridge " -"`_, Python programs can use Mac OS X's " -"Cocoa libraries." +"By installing the `PyObjc Objective-C bridge `_, Python programs can use Mac OS X's Cocoa libraries." msgstr "" +"Instalando a `ponte PyObjc Objective-C `_, " +"os programas Python podem usar as bibliotecas Cocoa do Mac OS X." #: ../../faq/gui.rst:110 msgid "" @@ -250,8 +262,8 @@ msgstr "" #: ../../faq/gui.rst:125 msgid "" "One solution is to ship the application with the Tcl and Tk libraries, and " -"point to them at run-time using the :envvar:`TCL_LIBRARY` and " -":envvar:`TK_LIBRARY` environment variables." +"point to them at run-time using the :envvar:`TCL_LIBRARY` and :envvar:" +"`TK_LIBRARY` environment variables." msgstr "" "Uma solução é enviar o aplicativo com as bibliotecas Tcl e Tk e apontá-las " "em tempo de execução usando as variáveis de ambiente: envvar: `TCL_LIBRARY` " @@ -259,10 +271,10 @@ msgstr "" #: ../../faq/gui.rst:129 msgid "" -"To get truly stand-alone applications, the Tcl scripts that form the library" -" have to be integrated into the application as well. One tool supporting " -"that is SAM (stand-alone modules), which is part of the Tix distribution " -"(http://tix.sourceforge.net/)." +"To get truly stand-alone applications, the Tcl scripts that form the library " +"have to be integrated into the application as well. One tool supporting that " +"is SAM (stand-alone modules), which is part of the Tix distribution (http://" +"tix.sourceforge.net/)." msgstr "" "Para obter aplicativos verdadeiramente autônomos, os scripts Tcl que formam " "a biblioteca também precisam ser integrados no aplicativo. Uma ferramenta " @@ -271,14 +283,13 @@ msgstr "" #: ../../faq/gui.rst:134 msgid "" -"Build Tix with SAM enabled, perform the appropriate call to " -":c:func:`Tclsam_init`, etc. inside Python's :file:`Modules/tkappinit.c`, and" -" link with libtclsam and libtksam (you might include the Tix libraries as " -"well)." +"Build Tix with SAM enabled, perform the appropriate call to :c:func:" +"`Tclsam_init`, etc. inside Python's :file:`Modules/tkappinit.c`, and link " +"with libtclsam and libtksam (you might include the Tix libraries as well)." msgstr "" "Crie o Tix com SAM habilitado, execute a chamada apropriada para: c: func: " -"`Tclsam_init`, etc. dentro do arquivo Python:` Módulos / tkappinit.c` e link" -" com libtclsam e libtksam (você também pode incluir as bibliotecas Tix) )." +"`Tclsam_init`, etc. dentro do arquivo Python:` Módulos / tkappinit.c` e link " +"com libtclsam e libtksam (você também pode incluir as bibliotecas Tix) )." #: ../../faq/gui.rst:141 msgid "Can I have Tk events handled while waiting for I/O?" @@ -289,8 +300,8 @@ msgid "" "On platforms other than Windows, yes, and you don't even need threads! But " "you'll have to restructure your I/O code a bit. Tk has the equivalent of " "Xt's :c:func:`XtAddInput()` call, which allows you to register a callback " -"function which will be called from the Tk mainloop when I/O is possible on a" -" file descriptor. See :ref:`tkinter-file-handlers`." +"function which will be called from the Tk mainloop when I/O is possible on a " +"file descriptor. See :ref:`tkinter-file-handlers`." msgstr "" "Em plataformas diferentes do Windows, sim, e você nem precisa de threads! " "Mas você terá que reestruturar seu código de E / S um pouco. O Tk tem o " @@ -305,8 +316,8 @@ msgstr "Não consigo obter ligações chave para trabalhar em Tkinter: por quê? #: ../../faq/gui.rst:153 msgid "" -"An often-heard complaint is that event handlers bound to events with the " -":meth:`bind` method don't get handled even when the appropriate key is " +"An often-heard complaint is that event handlers bound to events with the :" +"meth:`bind` method don't get handled even when the appropriate key is " "pressed." msgstr "" "Uma queixa frequentemente ouvida é que os manipuladores de eventos " @@ -320,7 +331,7 @@ msgid "" "focus command. Usually a widget is given the keyboard focus by clicking in " "it (but not for labels; see the takefocus option)." msgstr "" -"A causa mais comum é que o widget para o qual a ligação se aplica não possui" -" \"foco no teclado\". Confira a documentação do Tk para o comando de foco. " +"A causa mais comum é que o widget para o qual a ligação se aplica não possui " +"\"foco no teclado\". Confira a documentação do Tk para o comando de foco. " "Normalmente, um widget é dado o foco do teclado clicando nele (mas não para " "rótulos, veja a opção takefocus)." diff --git a/faq/index.po b/faq/index.po index 448188d9d..40f08fb66 100644 --- a/faq/index.po +++ b/faq/index.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Ruan Aragão , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" "Last-Translator: Ruan Aragão , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/faq/installed.po b/faq/installed.po index b656013d4..3c94312f6 100644 --- a/faq/installed.po +++ b/faq/installed.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Tiago Henrique , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Bruno Leuenroth , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" "Last-Translator: Bruno Leuenroth , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,9 +35,9 @@ msgstr "O que é Python?" #: ../../faq/installed.rst:8 msgid "" "Python is a programming language. It's used for many different " -"applications. It's used in some high schools and colleges as an introductory" -" programming language because Python is easy to learn, but it's also used by" -" professional software developers at places such as Google, NASA, and " +"applications. It's used in some high schools and colleges as an introductory " +"programming language because Python is easy to learn, but it's also used by " +"professional software developers at places such as Google, NASA, and " "Lucasfilm Ltd." msgstr "" "Python é uma linguagem de programação. É usada para muitas e diversas " @@ -50,8 +51,8 @@ msgid "" "If you wish to learn more about Python, start with the `Beginner's Guide to " "Python `_." msgstr "" -"Se você quiser aprender mais sobre Python, comece com o `Beginner's Guide to" -" Python `_." +"Se você quiser aprender mais sobre Python, comece com o `Beginner's Guide to " +"Python `_." #: ../../faq/installed.rst:18 msgid "Why is Python installed on my machine?" @@ -72,9 +73,9 @@ msgid "" "installed it; you'll have to figure out who's been using the machine and " "might have installed it." msgstr "" -"Possivelmente outro usuário do computador pretendia aprender programação e o" -" instalou; você terá que descobrir quem estava usando a máquina e pode o ter" -" instalado." +"Possivelmente outro usuário do computador pretendia aprender programação e o " +"instalou; você terá que descobrir quem estava usando a máquina e pode o ter " +"instalado." #: ../../faq/installed.rst:26 msgid "" @@ -83,10 +84,10 @@ msgid "" "applications, from GUI programs to network servers and administrative " "scripts." msgstr "" -"Um aplicativo de terceiros pode ter sido instalado na máquina e sido escrito" -" em Python e incluído uma instalação do Python. Há muitos desses " -"aplicativos, desde programas com interface gráfica até servidores de rede e " -"scripts administrativos." +"Um aplicativo de terceiros pode ter sido instalado na máquina e sido escrito " +"em Python e incluído uma instalação do Python. Há muitos desses aplicativos, " +"desde programas com interface gráfica até servidores de rede e scripts " +"administrativos." #: ../../faq/installed.rst:29 msgid "" @@ -96,8 +97,8 @@ msgid "" msgstr "" "Algumas máquinas Windows já possuem o Python instalado. No presente momento " "nós temos conhecimento de computadores da Hewlett-Packard e da Compaq que " -"incluem Python. Aparentemente algumas das ferramentas administrativas da " -"HP/Compaq são escritas em Python." +"incluem Python. Aparentemente algumas das ferramentas administrativas da HP/" +"Compaq são escritas em Python." #: ../../faq/installed.rst:32 msgid "" @@ -106,8 +107,8 @@ msgid "" "installation." msgstr "" "Muitos sistemas operacionais derivados do Unix, como Mac OS X e algumas " -"distribuições Linux, possuem o python instalado por padrão; está incluído na" -" instalação base." +"distribuições Linux, possuem o python instalado por padrão; está incluído na " +"instalação base." #: ../../faq/installed.rst:38 msgid "Can I delete Python?" @@ -120,8 +121,7 @@ msgstr "Isso depende de como o Python veio." #: ../../faq/installed.rst:42 msgid "" "If someone installed it deliberately, you can remove it without hurting " -"anything. On Windows, use the Add/Remove Programs icon in the Control " -"Panel." +"anything. On Windows, use the Add/Remove Programs icon in the Control Panel." msgstr "" "Se alguém o instalou deliberadamente, você pode removê-lo sem machucar " "ninguém. No Windows use o Adicionar ou remover programas que se encontra no " @@ -146,6 +146,6 @@ msgid "" msgstr "" "Se o Python veio junto com seu sistema operacional, removê-lo não é " "recomendado. Se você o remover, qualquer ferramenta que tenha sido escrita " -"em Python não vão mais funcionar, e algumas delas podem ser importantes para" -" você. A reinstalação do sistema inteiro seria necessária para consertar as " +"em Python não vão mais funcionar, e algumas delas podem ser importantes para " +"você. A reinstalação do sistema inteiro seria necessária para consertar as " "coisas de novo." diff --git a/faq/library.po b/faq/library.po index bc8e4f491..517ee1584 100644 --- a/faq/library.po +++ b/faq/library.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adson Rodrigues , 2019 # Alexandre B A Villares, 2019 -# +# Mariana Costa , 2019 +# Willian C Lopes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: Alexandre B A Villares, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Willian C Lopes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -52,15 +55,15 @@ msgstr "" #: ../../faq/library.rst:21 msgid "" -"For third-party packages, search the `Python Package Index " -"`_ or try `Google `_ or another " -"Web search engine. Searching for \"Python\" plus a keyword or two for your " -"topic of interest will usually find something helpful." +"For third-party packages, search the `Python Package Index `_ or try `Google `_ or another Web search " +"engine. Searching for \"Python\" plus a keyword or two for your topic of " +"interest will usually find something helpful." msgstr "" -"Para pacotes de terceiros, pesquise no `Python Package Index " -"`_ ou tente no `Google `_ ou " -"outro buscador na Web. Pesquisando por \"Python\" mais uma ou duas palavras-" -"chave do seu tópico de interesse geralmente encontrará algo útil." +"Para pacotes de terceiros, pesquise no `Python Package Index `_ ou tente no `Google `_ ou outro buscador na " +"Web. Pesquisando por \"Python\" mais uma ou duas palavras-chave do seu " +"tópico de interesse geralmente encontrará algo útil." #: ../../faq/library.rst:28 msgid "Where is the math.py (socket.py, regex.py, etc.) source file?" @@ -70,14 +73,19 @@ msgstr "Onde está o código fonte do math.py (socket.py, regex.py, etc.)?" msgid "" "If you can't find a source file for a module it may be a built-in or " "dynamically loaded module implemented in C, C++ or other compiled language. " -"In this case you may not have the source file or it may be something like " -":file:`mathmodule.c`, somewhere in a C source directory (not on the Python " +"In this case you may not have the source file or it may be something like :" +"file:`mathmodule.c`, somewhere in a C source directory (not on the Python " "Path)." msgstr "" +"Se você não conseguir encontrar um arquivo de origem para um módulo, ele " +"pode ser um módulo interno ou carregado dinamicamente, implementado em C, C +" +"+ ou outra linguagem compilada. Nesse caso, você pode não ter o arquivo de " +"origem ou pode ser algo como: file: `mathmodule.c`, em algum lugar do " +"diretório de origem C (não no caminho do Python)." #: ../../faq/library.rst:35 msgid "There are (at least) three kinds of modules in Python:" -msgstr "" +msgstr "Existem (pelo menos) três tipos de módulos no Python:" #: ../../faq/library.rst:37 msgid "modules written in Python (.py);" @@ -95,6 +103,8 @@ msgid "" "modules written in C and linked with the interpreter; to get a list of " "these, type::" msgstr "" +"módulos escritos em C e vinculados ao interpretador; para obter uma dessas " +"listas, digite:" #: ../../faq/library.rst:47 msgid "How do I make a Python script executable on Unix?" @@ -102,28 +112,37 @@ msgstr "Como tornar um script Python executável no Unix?" #: ../../faq/library.rst:49 msgid "" -"You need to do two things: the script file's mode must be executable and the" -" first line must begin with ``#!`` followed by the path of the Python " +"You need to do two things: the script file's mode must be executable and the " +"first line must begin with ``#!`` followed by the path of the Python " "interpreter." msgstr "" +"Você precisa fazer duas coisas: o arquivo do script deve ser executável e a " +"primeira linha deve começar com \"#!\" seguido do caminho do interpretador " +"Python" #: ../../faq/library.rst:53 msgid "" "The first is done by executing ``chmod +x scriptfile`` or perhaps ``chmod " "755 scriptfile``." msgstr "" +"O primeiro a se fazer é executar o ``chmod +x scriptfile`` ou, talvez, o " +"``chmod 755 scriptfile``." #: ../../faq/library.rst:56 msgid "" -"The second can be done in a number of ways. The most straightforward way is" -" to write ::" +"The second can be done in a number of ways. The most straightforward way is " +"to write ::" msgstr "" +"A segunda coisa pode ser feita de várias maneiras. A maneira mais direta é " +"escrever ::" #: ../../faq/library.rst:61 msgid "" -"as the very first line of your file, using the pathname for where the Python" -" interpreter is installed on your platform." +"as the very first line of your file, using the pathname for where the Python " +"interpreter is installed on your platform." msgstr "" +"como a primeira linha do seu arquivo, usando o endereço do caminho onde o " +"interpretador Python está instalado. " #: ../../faq/library.rst:64 msgid "" @@ -132,6 +151,10 @@ msgid "" "variants support the following, assuming the Python interpreter is in a " "directory on the user's :envvar:`PATH`::" msgstr "" +"Se você deseja que o script seja independente de onde o interpretador Python " +"mora, você pode usar o programa: program: `env`. Quase todas as variantes do " +"Unix suportam o seguinte, assumindo que o interpretador Python esteja em um " +"diretório do usuário: enviar: `PATH` ::" #: ../../faq/library.rst:71 msgid "" @@ -139,12 +162,15 @@ msgid "" "scripts is often very minimal, so you need to use the actual absolute " "pathname of the interpreter." msgstr "" +"Não faça isso para CGI scripts. A variável :envvar:`PATH` para CGI scripts " +"é normalmente muito pequena, portanto, você precisa usar o caminho completo " +"do interpretador" #: ../../faq/library.rst:75 msgid "" -"Occasionally, a user's environment is so full that the " -":program:`/usr/bin/env` program fails; or there's no env program at all. In" -" that case, you can try the following hack (due to Alex Rezinsky):" +"Occasionally, a user's environment is so full that the :program:`/usr/bin/" +"env` program fails; or there's no env program at all. In that case, you can " +"try the following hack (due to Alex Rezinsky):" msgstr "" #: ../../faq/library.rst:86 @@ -152,10 +178,12 @@ msgid "" "The minor disadvantage is that this defines the script's __doc__ string. " "However, you can fix that by adding ::" msgstr "" +"Uma pequena desvantagem é que isso define o script's __doc__ string. " +"Entretanto, você pode corrigir isso adicionando ::" #: ../../faq/library.rst:94 msgid "Is there a curses/termcap package for Python?" -msgstr "" +msgstr "Existe um pacote de curses/termcap para Python?" #: ../../faq/library.rst:98 msgid "" @@ -171,8 +199,8 @@ msgid "" "additional functions from ncurses and SYSV curses such as colour, " "alternative character set support, pads, and mouse support. This means the " "module isn't compatible with operating systems that only have BSD curses, " -"but there don't seem to be any currently maintained OSes that fall into this" -" category." +"but there don't seem to be any currently maintained OSes that fall into this " +"category." msgstr "" #: ../../faq/library.rst:109 @@ -180,38 +208,44 @@ msgid "" "For Windows: use `the consolelib module `_." msgstr "" +"Para Windows: use o módulo \"consolelib\" `_." #: ../../faq/library.rst:114 msgid "Is there an equivalent to C's onexit() in Python?" -msgstr "" +msgstr "Existe a função onexit() equivalente ao C no Python?" #: ../../faq/library.rst:116 msgid "" -"The :mod:`atexit` module provides a register function that is similar to C's" -" :c:func:`onexit`." +"The :mod:`atexit` module provides a register function that is similar to " +"C's :c:func:`onexit`." msgstr "" +"O módulo :mod:`atexit` fornece uma função de registro similar ao C's :c:func:" +"`onexit`." #: ../../faq/library.rst:121 msgid "Why don't my signal handlers work?" -msgstr "" +msgstr "Por que o meu manipulador de sinal não funciona?" #: ../../faq/library.rst:123 msgid "" "The most common problem is that the signal handler is declared with the " "wrong argument list. It is called as ::" msgstr "" +"O maior problema é que o manipulador de sinal é declarado com uma lista de " +"argumentos incorretos. Isso é chamado como ::" #: ../../faq/library.rst:128 msgid "so it should be declared with two arguments::" -msgstr "" +msgstr "portanto, isso deve ser declarado com dois argumentos ::" #: ../../faq/library.rst:135 msgid "Common tasks" -msgstr "" +msgstr "Tarefas comuns" #: ../../faq/library.rst:138 msgid "How do I test a Python program or component?" -msgstr "" +msgstr "Como testar um programa ou componente Python?" #: ../../faq/library.rst:140 msgid "" @@ -219,12 +253,17 @@ msgid "" "examples in the docstrings for a module and runs them, comparing the output " "with the expected output given in the docstring." msgstr "" +"A Python vem com dois frameworks de testes. O :mod:doctest busca por " +"exemplos na docstring de um módulo e os executa, comparando o resultado com " +"a saída esperada informada na docstring." #: ../../faq/library.rst:144 msgid "" "The :mod:`unittest` module is a fancier testing framework modelled on Java " "and Smalltalk testing frameworks." msgstr "" +"O módulo :mod:`unittest` é uma estrutura de teste mais sofisticada, modelada " +"nas estruturas de teste do Java e do Smalltalk. " #: ../../faq/library.rst:147 msgid "" @@ -239,11 +278,11 @@ msgstr "" #: ../../faq/library.rst:155 msgid "The \"global main logic\" of your program may be as simple as ::" -msgstr "" +msgstr "A lógica principal do seu programa pode tão simples quanto ::" #: ../../faq/library.rst:160 msgid "at the bottom of the main module of your program." -msgstr "" +msgstr "no botão do módulo principal do seus programa. " #: ../../faq/library.rst:162 msgid "" @@ -251,16 +290,16 @@ msgid "" "class behaviours you should write test functions that exercise the " "behaviours. A test suite that automates a sequence of tests can be " "associated with each module. This sounds like a lot of work, but since " -"Python is so terse and flexible it's surprisingly easy. You can make coding" -" much more pleasant and fun by writing your test functions in parallel with " +"Python is so terse and flexible it's surprisingly easy. You can make coding " +"much more pleasant and fun by writing your test functions in parallel with " "the \"production code\", since this makes it easy to find bugs and even " "design flaws earlier." msgstr "" #: ../../faq/library.rst:170 msgid "" -"\"Support modules\" that are not intended to be the main module of a program" -" may include a self-test of the module. ::" +"\"Support modules\" that are not intended to be the main module of a program " +"may include a self-test of the module. ::" msgstr "" #: ../../faq/library.rst:176 @@ -269,42 +308,47 @@ msgid "" "when the external interfaces are unavailable by using \"fake\" interfaces " "implemented in Python." msgstr "" +"Até mesmo quando as interfaces externas não estiverem disponíveis, os " +"programas que interagem com interfaces externas complexas podem ser testados " +"usando as interfaces 'fakes' implementadas no Python." #: ../../faq/library.rst:182 msgid "How do I create documentation from doc strings?" -msgstr "" +msgstr "Como faço para criar uma documentação de doc strings? " #: ../../faq/library.rst:184 msgid "" "The :mod:`pydoc` module can create HTML from the doc strings in your Python " "source code. An alternative for creating API documentation purely from " -"docstrings is `epydoc `_. `Sphinx `_ can also include docstring content." +"docstrings is `epydoc `_. `Sphinx `_ can also include docstring content." msgstr "" #: ../../faq/library.rst:191 msgid "How do I get a single keypress at a time?" -msgstr "" +msgstr "Como faço para pressionar uma tecla de cada vez?" #: ../../faq/library.rst:193 msgid "" "For Unix variants there are several solutions. It's straightforward to do " "this using curses, but curses is a fairly large module to learn." msgstr "" +"Para variantes do Unix existem várias soluções. Apesar de ser um módulo " +"grande para aprender, é simples fazer isso usando o módulo curses. " #: ../../faq/library.rst:237 msgid "Threads" -msgstr "" +msgstr "Threads" #: ../../faq/library.rst:240 msgid "How do I program using threads?" -msgstr "" +msgstr "Como faço para programar usando threads" #: ../../faq/library.rst:242 msgid "" "Be sure to use the :mod:`threading` module and not the :mod:`_thread` " -"module. The :mod:`threading` module builds convenient abstractions on top of" -" the low-level primitives provided by the :mod:`_thread` module." +"module. The :mod:`threading` module builds convenient abstractions on top of " +"the low-level primitives provided by the :mod:`_thread` module." msgstr "" #: ../../faq/library.rst:246 @@ -312,41 +356,50 @@ msgid "" "Aahz has a set of slides from his threading tutorial that are helpful; see " "http://www.pythoncraft.com/OSCON2001/." msgstr "" +"Aahz tem um conjunto de tutoriais threading que são úteis; veja em: http://" +"www.pythoncraft.com/OSCON2001/." #: ../../faq/library.rst:251 msgid "None of my threads seem to run: why?" -msgstr "" +msgstr "Nenhuma de minhas threads parece funcionar, por quê?" #: ../../faq/library.rst:253 msgid "" "As soon as the main thread exits, all threads are killed. Your main thread " "is running too quickly, giving the threads no time to do any work." msgstr "" +"Assim que a thread principal acaba, todas as threads são eliminadas. Sua " +"thread principal está sendo executado tão rápida que não está dando tempo " +"para realizar qualquer trabalho." #: ../../faq/library.rst:256 msgid "" "A simple fix is to add a sleep to the end of the program that's long enough " "for all the threads to finish::" msgstr "" +"Uma solução simples é adicionar um tempo de espera no final do programa até " +"que todos os threads sejam concluídos::" #: ../../faq/library.rst:271 msgid "" -"But now (on many platforms) the threads don't run in parallel, but appear to" -" run sequentially, one at a time! The reason is that the OS thread " -"scheduler doesn't start a new thread until the previous thread is blocked." +"But now (on many platforms) the threads don't run in parallel, but appear to " +"run sequentially, one at a time! The reason is that the OS thread scheduler " +"doesn't start a new thread until the previous thread is blocked." msgstr "" #: ../../faq/library.rst:275 msgid "A simple fix is to add a tiny sleep to the start of the run function::" msgstr "" +"Uma solução simples é adicionar um pequeno tempo de espera ( método \"sleep" +"\") no início da função ::" #: ../../faq/library.rst:288 msgid "" "Instead of trying to guess a good delay value for :func:`time.sleep`, it's " -"better to use some kind of semaphore mechanism. One idea is to use the " -":mod:`queue` module to create a queue object, let each thread append a token" -" to the queue when it finishes, and let the main thread read as many tokens " -"from the queue as there are threads." +"better to use some kind of semaphore mechanism. One idea is to use the :mod:" +"`queue` module to create a queue object, let each thread append a token to " +"the queue when it finishes, and let the main thread read as many tokens from " +"the queue as there are threads." msgstr "" #: ../../faq/library.rst:296 @@ -363,29 +416,31 @@ msgstr "" msgid "" "Or, if you want fine control over the dispatching algorithm, you can write " "your own logic manually. Use the :mod:`queue` module to create a queue " -"containing a list of jobs. The :class:`~queue.Queue` class maintains a list" -" of objects and has a ``.put(obj)`` method that adds items to the queue and " -"a ``.get()`` method to return them. The class will take care of the locking" -" necessary to ensure that each job is handed out exactly once." +"containing a list of jobs. The :class:`~queue.Queue` class maintains a list " +"of objects and has a ``.put(obj)`` method that adds items to the queue and a " +"``.get()`` method to return them. The class will take care of the locking " +"necessary to ensure that each job is handed out exactly once." msgstr "" #: ../../faq/library.rst:308 msgid "Here's a trivial example::" -msgstr "" +msgstr "Aqui está um exemplo simples:: " #: ../../faq/library.rst:346 msgid "When run, this will produce the following output:" -msgstr "" +msgstr "Quando executado, isso produzirá a seguinte saída:" #: ../../faq/library.rst:364 msgid "" -"Consult the module's documentation for more details; the " -":class:`~queue.Queue` class provides a featureful interface." +"Consult the module's documentation for more details; the :class:`~queue." +"Queue` class provides a featureful interface." msgstr "" +"Consulte a documentação dos módulos para mais detalhes; a classe :`~queue." +"Queue` fornece uma interface com recursos. " #: ../../faq/library.rst:369 msgid "What kinds of global value mutation are thread-safe?" -msgstr "" +msgstr "Que tipos de variáveis globais mutáveis são seguras para thread?" #: ../../faq/library.rst:371 msgid "" @@ -399,8 +454,8 @@ msgstr "" #: ../../faq/library.rst:378 msgid "" -"In theory, this means an exact accounting requires an exact understanding of" -" the PVM bytecode implementation. In practice, it means that operations on " +"In theory, this means an exact accounting requires an exact understanding of " +"the PVM bytecode implementation. In practice, it means that operations on " "shared variables of built-in data types (ints, lists, dicts, etc) that " "\"look atomic\" really are." msgstr "" @@ -413,19 +468,19 @@ msgstr "" #: ../../faq/library.rst:398 msgid "These aren't::" -msgstr "" +msgstr "Esses não são::" #: ../../faq/library.rst:405 msgid "" -"Operations that replace other objects may invoke those other objects' " -":meth:`__del__` method when their reference count reaches zero, and that can" -" affect things. This is especially true for the mass updates to " -"dictionaries and lists. When in doubt, use a mutex!" +"Operations that replace other objects may invoke those other objects' :meth:" +"`__del__` method when their reference count reaches zero, and that can " +"affect things. This is especially true for the mass updates to dictionaries " +"and lists. When in doubt, use a mutex!" msgstr "" #: ../../faq/library.rst:412 msgid "Can't we get rid of the Global Interpreter Lock?" -msgstr "" +msgstr "Não podemos remover o Bloqueio Global do interpretador? " #: ../../faq/library.rst:416 msgid "" @@ -440,22 +495,22 @@ msgid "" "Back in the days of Python 1.5, Greg Stein actually implemented a " "comprehensive patch set (the \"free threading\" patches) that removed the " "GIL and replaced it with fine-grained locking. Adam Olsen recently did a " -"similar experiment in his `python-safethread " -"`_ project. " -"Unfortunately, both experiments exhibited a sharp drop in single-thread " -"performance (at least 30% slower), due to the amount of fine-grained locking" -" necessary to compensate for the removal of the GIL." +"similar experiment in his `python-safethread `_ project. Unfortunately, both experiments " +"exhibited a sharp drop in single-thread performance (at least 30% slower), " +"due to the amount of fine-grained locking necessary to compensate for the " +"removal of the GIL." msgstr "" #: ../../faq/library.rst:429 msgid "" "This doesn't mean that you can't make good use of Python on multi-CPU " "machines! You just have to be creative with dividing the work up between " -"multiple *processes* rather than multiple *threads*. The " -":class:`~concurrent.futures.ProcessPoolExecutor` class in the new " -":mod:`concurrent.futures` module provides an easy way of doing so; the " -":mod:`multiprocessing` module provides a lower-level API in case you want " -"more control over dispatching of tasks." +"multiple *processes* rather than multiple *threads*. The :class:" +"`~concurrent.futures.ProcessPoolExecutor` class in the new :mod:`concurrent." +"futures` module provides an easy way of doing so; the :mod:`multiprocessing` " +"module provides a lower-level API in case you want more control over " +"dispatching of tasks." msgstr "" #: ../../faq/library.rst:437 @@ -463,8 +518,8 @@ msgid "" "Judicious use of C extensions will also help; if you use a C extension to " "perform a time-consuming task, the extension can release the GIL while the " "thread of execution is in the C code and allow other threads to get some " -"work done. Some standard library modules such as :mod:`zlib` and " -":mod:`hashlib` already do this." +"work done. Some standard library modules such as :mod:`zlib` and :mod:" +"`hashlib` already do this." msgstr "" #: ../../faq/library.rst:443 @@ -473,9 +528,9 @@ msgid "" "rather than truly global; interpreters then wouldn't be able to share " "objects. Unfortunately, this isn't likely to happen either. It would be a " "tremendous amount of work, because many object implementations currently " -"have global state. For example, small integers and short strings are cached;" -" these caches would have to be moved to the interpreter state. Other object" -" types have their own free list; these free lists would have to be moved to " +"have global state. For example, small integers and short strings are cached; " +"these caches would have to be moved to the interpreter state. Other object " +"types have their own free list; these free lists would have to be moved to " "the interpreter state. And so on." msgstr "" @@ -489,9 +544,12 @@ msgstr "" #: ../../faq/library.rst:457 msgid "" -"And finally, once you have multiple interpreters not sharing any state, what" -" have you gained over running each interpreter in a separate process?" +"And finally, once you have multiple interpreters not sharing any state, what " +"have you gained over running each interpreter in a separate process?" msgstr "" +"E finalmente, uma vez que você tem vários interpretadores que não " +"compartilham seu estado, o que você ganhou ao executar processos separados " +"em cada interpretador?" #: ../../faq/library.rst:462 msgid "Input and Output" @@ -499,15 +557,17 @@ msgstr "Entrada e Saída" #: ../../faq/library.rst:465 msgid "How do I delete a file? (And other file questions...)" -msgstr "" +msgstr "Como faço para excluir um arquivo? (E outras perguntas sobre arquivos)" #: ../../faq/library.rst:467 msgid "" "Use ``os.remove(filename)`` or ``os.unlink(filename)``; for documentation, " -"see the :mod:`os` module. The two functions are identical; " -":func:`~os.unlink` is simply the name of the Unix system call for this " -"function." +"see the :mod:`os` module. The two functions are identical; :func:`~os." +"unlink` is simply the name of the Unix system call for this function." msgstr "" +"Use ``os.remove(filename)`` ou ``os.unlink(filename)``;para documentação, " +"veja o módulo :mod:`os`. As duas funções são idênticas; :func:`~os.unlink` é " +"simplesmente o nome da chamada do sistema para esta função no Unix." #: ../../faq/library.rst:471 msgid "" @@ -520,42 +580,42 @@ msgstr "" #: ../../faq/library.rst:477 msgid "To rename a file, use ``os.rename(old_path, new_path)``." -msgstr "" +msgstr "Para renomear um arquivos, use ``os.rename(old_path, new_path)``." #: ../../faq/library.rst:479 msgid "" "To truncate a file, open it using ``f = open(filename, \"rb+\")``, and use " "``f.truncate(offset)``; offset defaults to the current seek position. " -"There's also ``os.ftruncate(fd, offset)`` for files opened with " -":func:`os.open`, where *fd* is the file descriptor (a small integer)." +"There's also ``os.ftruncate(fd, offset)`` for files opened with :func:`os." +"open`, where *fd* is the file descriptor (a small integer)." msgstr "" #: ../../faq/library.rst:484 msgid "" "The :mod:`shutil` module also contains a number of functions to work on " -"files including :func:`~shutil.copyfile`, :func:`~shutil.copytree`, and " -":func:`~shutil.rmtree`." +"files including :func:`~shutil.copyfile`, :func:`~shutil.copytree`, and :" +"func:`~shutil.rmtree`." msgstr "" #: ../../faq/library.rst:490 msgid "How do I copy a file?" -msgstr "" +msgstr "Como eu copio um arquivo?" #: ../../faq/library.rst:492 msgid "" -"The :mod:`shutil` module contains a :func:`~shutil.copyfile` function. Note" -" that on MacOS 9 it doesn't copy the resource fork and Finder info." +"The :mod:`shutil` module contains a :func:`~shutil.copyfile` function. Note " +"that on MacOS 9 it doesn't copy the resource fork and Finder info." msgstr "" #: ../../faq/library.rst:497 msgid "How do I read (or write) binary data?" -msgstr "" +msgstr "Como leio (ou escrevo) dados binários?" #: ../../faq/library.rst:499 msgid "" -"To read or write complex binary data formats, it's best to use the " -":mod:`struct` module. It allows you to take a string containing binary data" -" (usually numbers) and convert it to Python objects; and vice versa." +"To read or write complex binary data formats, it's best to use the :mod:" +"`struct` module. It allows you to take a string containing binary data " +"(usually numbers) and convert it to Python objects; and vice versa." msgstr "" #: ../../faq/library.rst:503 @@ -588,39 +648,40 @@ msgstr "" #: ../../faq/library.rst:529 msgid "I can't seem to use os.read() on a pipe created with os.popen(); why?" msgstr "" +"Porque não consigo usar os os.read() em um pipe criado com os.popen(); " #: ../../faq/library.rst:531 msgid "" ":func:`os.read` is a low-level function which takes a file descriptor, a " -"small integer representing the opened file. :func:`os.popen` creates a " -"high-level file object, the same type returned by the built-in :func:`open` " -"function. Thus, to read *n* bytes from a pipe *p* created with " -":func:`os.popen`, you need to use ``p.read(n)``." +"small integer representing the opened file. :func:`os.popen` creates a high-" +"level file object, the same type returned by the built-in :func:`open` " +"function. Thus, to read *n* bytes from a pipe *p* created with :func:`os." +"popen`, you need to use ``p.read(n)``." msgstr "" #: ../../faq/library.rst:618 msgid "How do I access the serial (RS232) port?" -msgstr "" +msgstr "Como acesso a porta serial RS232?" #: ../../faq/library.rst:620 msgid "For Win32, POSIX (Linux, BSD, etc.), Jython:" -msgstr "" +msgstr "Para Win32, POSIX (Linux, BSD, etc.), Jython:" #: ../../faq/library.rst:622 msgid "http://pyserial.sourceforge.net" -msgstr "" +msgstr "http://pyserial.sourceforge.net" #: ../../faq/library.rst:624 msgid "For Unix, see a Usenet post by Mitch Chapman:" -msgstr "" +msgstr "Para Unix, veja uma postagem da Usenet de Mitch Chapman:" #: ../../faq/library.rst:626 msgid "https://groups.google.com/groups?selm=34A04430.CF9@ohioee.com" -msgstr "" +msgstr "https://groups.google.com/groups?selm=34A04430.CF9@ohioee.com" #: ../../faq/library.rst:630 msgid "Why doesn't closing sys.stdout (stdin, stderr) really close it?" -msgstr "" +msgstr "Por que o sys.stdout (stdin, stderr) não fecha?" #: ../../faq/library.rst:632 msgid "" @@ -639,30 +700,30 @@ msgstr "" #: ../../faq/library.rst:641 msgid "" -"But stdin, stdout and stderr are treated specially by Python, because of the" -" special status also given to them by C. Running ``sys.stdout.close()`` " -"marks the Python-level file object as being closed, but does *not* close the" -" associated C file descriptor." +"But stdin, stdout and stderr are treated specially by Python, because of the " +"special status also given to them by C. Running ``sys.stdout.close()`` " +"marks the Python-level file object as being closed, but does *not* close the " +"associated C file descriptor." msgstr "" #: ../../faq/library.rst:646 msgid "" -"To close the underlying C file descriptor for one of these three, you should" -" first be sure that's what you really want to do (e.g., you may confuse " +"To close the underlying C file descriptor for one of these three, you should " +"first be sure that's what you really want to do (e.g., you may confuse " "extension modules trying to do I/O). If it is, use :func:`os.close`::" msgstr "" #: ../../faq/library.rst:654 msgid "Or you can use the numeric constants 0, 1 and 2, respectively." -msgstr "" +msgstr "Ou você pode usar as constantes numérias 0, 1 e 2, respectivamente. " #: ../../faq/library.rst:658 msgid "Network/Internet Programming" -msgstr "" +msgstr "Programação Rede / Internet" #: ../../faq/library.rst:661 msgid "What WWW tools are there for Python?" -msgstr "" +msgstr "Quais ferramentas WWW existem no Python?" #: ../../faq/library.rst:663 msgid "" @@ -673,9 +734,11 @@ msgstr "" #: ../../faq/library.rst:669 msgid "" -"A summary of available frameworks is maintained by Paul Boddie at " -"https://wiki.python.org/moin/WebProgramming\\ ." +"A summary of available frameworks is maintained by Paul Boddie at https://" +"wiki.python.org/moin/WebProgramming\\ ." msgstr "" +"Um resumo dos frameworks disponíveis é disponibilizado por Paul Boddie em " +"https://wiki.python.org/moin/WebProgramming\\ ." #: ../../faq/library.rst:672 msgid "" @@ -685,77 +748,85 @@ msgstr "" #: ../../faq/library.rst:677 msgid "How can I mimic CGI form submission (METHOD=POST)?" -msgstr "" +msgstr "Como submeter o envio do formulário mimic CGI (METHOD=POST)?" #: ../../faq/library.rst:679 msgid "" -"I would like to retrieve web pages that are the result of POSTing a form. Is" -" there existing code that would let me do this easily?" +"I would like to retrieve web pages that are the result of POSTing a form. Is " +"there existing code that would let me do this easily?" msgstr "" +"Gostaria de recuperar páginas da WEB resultantes de um formulário POST. " +"Existe algum código que consigo fazer isso facilmente? " #: ../../faq/library.rst:682 msgid "Yes. Here's a simple example that uses urllib.request::" -msgstr "" +msgstr "Sim. Aqui está um exemplo simples que usa urllib.request::" #: ../../faq/library.rst:697 msgid "" -"Note that in general for percent-encoded POST operations, query strings must" -" be quoted using :func:`urllib.parse.urlencode`. For example, to send " +"Note that in general for percent-encoded POST operations, query strings must " +"be quoted using :func:`urllib.parse.urlencode`. For example, to send " "``name=Guy Steele, Jr.``::" msgstr "" #: ../../faq/library.rst:705 msgid ":ref:`urllib-howto` for extensive examples." -msgstr "" +msgstr ":ref:`urllib-howto` para mais exemplos. " #: ../../faq/library.rst:709 msgid "What module should I use to help with generating HTML?" -msgstr "" +msgstr "Qual módulo devo usar para ajudar na geração do HTML?" #: ../../faq/library.rst:713 msgid "" "You can find a collection of useful links on the `Web Programming wiki page " "`_." msgstr "" +"Você pode encontrar uma coleção de links úteis na página wiki de programação " +"da Web `_." #: ../../faq/library.rst:718 msgid "How do I send mail from a Python script?" -msgstr "" +msgstr "Como envio um e-mail de um script Python?" #: ../../faq/library.rst:720 msgid "Use the standard library module :mod:`smtplib`." -msgstr "" +msgstr "Use a biblioteca padrão do módulo :mod:`smtplib`." #: ../../faq/library.rst:722 msgid "" -"Here's a very simple interactive mail sender that uses it. This method will" -" work on any host that supports an SMTP listener. ::" +"Here's a very simple interactive mail sender that uses it. This method will " +"work on any host that supports an SMTP listener. ::" msgstr "" +"Aqui está um remetente de email interativo muito simples. Este método " +"funcionará em qualquer host que suporte o protocolo SMTP. ::" #: ../../faq/library.rst:742 msgid "" -"A Unix-only alternative uses sendmail. The location of the sendmail program" -" varies between systems; sometimes it is ``/usr/lib/sendmail``, sometimes " -"``/usr/sbin/sendmail``. The sendmail manual page will help you out. Here's" -" some sample code::" +"A Unix-only alternative uses sendmail. The location of the sendmail program " +"varies between systems; sometimes it is ``/usr/lib/sendmail``, sometimes ``/" +"usr/sbin/sendmail``. The sendmail manual page will help you out. Here's " +"some sample code::" msgstr "" #: ../../faq/library.rst:762 msgid "How do I avoid blocking in the connect() method of a socket?" -msgstr "" +msgstr "Como evito o bloqueio do método connect() de um soquete?" #: ../../faq/library.rst:764 msgid "" "The :mod:`select` module is commonly used to help with asynchronous I/O on " "sockets." msgstr "" +"O módulo :mod:`select`é normalmente usado para ajudar com E/S assíncrona nos " +"soquetes." #: ../../faq/library.rst:767 msgid "" "To prevent the TCP connect from blocking, you can set the socket to non-" "blocking mode. Then when you do the ``connect()``, you will either connect " -"immediately (unlikely) or get an exception that contains the error number as" -" ``.errno``. ``errno.EINPROGRESS`` indicates that the connection is in " +"immediately (unlikely) or get an exception that contains the error number as " +"``.errno``. ``errno.EINPROGRESS`` indicates that the connection is in " "progress, but hasn't finished yet. Different OSes will return different " "values, so you're going to have to check what's returned on your system." msgstr "" @@ -770,19 +841,18 @@ msgstr "" #: ../../faq/library.rst:780 msgid "" -"The :mod:`asyncore` module presents a framework-like approach to the problem" -" of writing non-blocking networking code. The third-party `Twisted " -"`_ library is a popular and feature-rich " -"alternative." +"The :mod:`asyncore` module presents a framework-like approach to the problem " +"of writing non-blocking networking code. The third-party `Twisted `_ library is a popular and feature-rich alternative." msgstr "" #: ../../faq/library.rst:787 msgid "Databases" -msgstr "" +msgstr "Base de Dados" #: ../../faq/library.rst:790 msgid "Are there any interfaces to database packages in Python?" -msgstr "" +msgstr "Existem interfaces para banco de dados em Python?" #: ../../faq/library.rst:792 msgid "Yes." @@ -790,61 +860,66 @@ msgstr "Sim." #: ../../faq/library.rst:794 msgid "" -"Interfaces to disk-based hashes such as :mod:`DBM ` and :mod:`GDBM" -" ` are also included with standard Python. There is also the " -":mod:`sqlite3` module, which provides a lightweight disk-based relational " +"Interfaces to disk-based hashes such as :mod:`DBM ` and :mod:`GDBM " +"` are also included with standard Python. There is also the :mod:" +"`sqlite3` module, which provides a lightweight disk-based relational " "database." msgstr "" #: ../../faq/library.rst:799 msgid "" "Support for most relational databases is available. See the " -"`DatabaseProgramming wiki page " -"`_ for details." +"`DatabaseProgramming wiki page `_ for details." msgstr "" +"Suporte para a maioria dos bancos de dados relacionais está disponível. " +"Para mais detalhes, veja a página wike de programação de banco de dados em " +"https://wiki.python.org/moin/DatabaseProgramming>` " #: ../../faq/library.rst:805 msgid "How do you implement persistent objects in Python?" -msgstr "" +msgstr "Como você implementa objetos persistentes no Python?" #: ../../faq/library.rst:807 msgid "" "The :mod:`pickle` library module solves this in a very general way (though " -"you still can't store things like open files, sockets or windows), and the " -":mod:`shelve` library module uses pickle and (g)dbm to create persistent " +"you still can't store things like open files, sockets or windows), and the :" +"mod:`shelve` library module uses pickle and (g)dbm to create persistent " "mappings containing arbitrary Python objects." msgstr "" #: ../../faq/library.rst:814 msgid "Mathematics and Numerics" -msgstr "" +msgstr "Matemáticos e Numéricos" #: ../../faq/library.rst:817 msgid "How do I generate random numbers in Python?" -msgstr "" +msgstr "Como gero número aleatórios no Python?" #: ../../faq/library.rst:819 msgid "" "The standard module :mod:`random` implements a random number generator. " "Usage is simple::" msgstr "" +"O módulo padrão :mod:`random` implementa um gerador de números aleatórios. " +"O uso é simples ::" #: ../../faq/library.rst:825 msgid "This returns a random floating point number in the range [0, 1)." -msgstr "" +msgstr "Isso retorna um número flutuante aleatório no intervalo [0, 1)." #: ../../faq/library.rst:827 msgid "" "There are also many other specialized generators in this module, such as:" -msgstr "" +msgstr "Existem também muitos outros geradores aleatórios neste módulo, como:" #: ../../faq/library.rst:829 msgid "``randrange(a, b)`` chooses an integer in the range [a, b)." -msgstr "" +msgstr "``randrange(a, b)`` escolhe um número inteiro entre [a, b)." #: ../../faq/library.rst:830 msgid "``uniform(a, b)`` chooses a floating point number in the range [a, b)." -msgstr "" +msgstr "``uniform(a, b)`` escolhe um número float no intervalo [a, b)." #: ../../faq/library.rst:831 msgid "" @@ -854,10 +929,12 @@ msgstr "" #: ../../faq/library.rst:833 msgid "Some higher-level functions operate on sequences directly, such as:" msgstr "" +"Algumas funções de nível elevado operam diretamente em sequencia, como: " #: ../../faq/library.rst:835 msgid "``choice(S)`` chooses random element from a given sequence" msgstr "" +"``choice(S)`` escolhe um elemento aleatório de uma determinada sequência " #: ../../faq/library.rst:836 msgid "``shuffle(L)`` shuffles a list in-place, i.e. permutes it randomly" @@ -868,3 +945,5 @@ msgid "" "There's also a ``Random`` class you can instantiate to create independent " "multiple random number generators." msgstr "" +"Existe também uma classe `Random`` que você pode instanciar para criar " +"vários geradores de números aleatórios independentes." diff --git a/faq/programming.po b/faq/programming.po index f771fd20e..0ebb7dc24 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Tiago Henrique , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Aline Balogh , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-30 03:20+0000\n" +"POT-Creation-Date: 2020-04-27 13:44+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Aline Balogh , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -48,14 +50,16 @@ msgstr "Sim." #: ../../faq/programming.rst:19 msgid "" -"Several debuggers for Python are described below, and the built-in function " -":func:`breakpoint` allows you to drop into any of them." +"Several debuggers for Python are described below, and the built-in function :" +"func:`breakpoint` allows you to drop into any of them." msgstr "" +"Varios depuradores para Python estão descritos abaixo, e a função interna :" +"func:`breakpoint` permite que você caia em qualquer um deles." #: ../../faq/programming.rst:22 msgid "" -"The pdb module is a simple but adequate console-mode debugger for Python. It" -" is part of the standard Python library, and is :mod:`documented in the " +"The pdb module is a simple but adequate console-mode debugger for Python. It " +"is part of the standard Python library, and is :mod:`documented in the " "Library Reference Manual `. You can also write your own debugger by " "using the code for pdb as an example." msgstr "" @@ -71,26 +75,25 @@ msgid "" "Python distribution (normally available as Tools/scripts/idle), includes a " "graphical debugger." msgstr "" -"O Ambiente de Desenvolvimento Interativo IDLE, que faz parte da distribuição" -" padrão do Python (normalmente disponível em Tools/scripts/idle), inclui um " +"O Ambiente de Desenvolvimento Interativo IDLE, que faz parte da distribuição " +"padrão do Python (normalmente disponível em Tools/scripts/idle), inclui um " "depurador gráfico." #: ../../faq/programming.rst:31 msgid "" "PythonWin is a Python IDE that includes a GUI debugger based on pdb. The " -"Pythonwin debugger colors breakpoints and has quite a few cool features such" -" as debugging non-Pythonwin programs. Pythonwin is available as part of the" -" `Python for Windows Extensions " -"`__ project and as a part of the " -"ActivePython distribution (see https://www.activestate.com/activepython\\ )." +"Pythonwin debugger colors breakpoints and has quite a few cool features such " +"as debugging non-Pythonwin programs. Pythonwin is available as part of the " +"`Python for Windows Extensions `__ project and as a part of the ActivePython distribution (see https://www." +"activestate.com/activepython\\ )." msgstr "" "O PythonWin é uma IDE feita para o Python que inclui um depurador de GUI " "baseado no pdb. O depurador Pythonwin colora os pontos de interrupção e tem " -"alguns recursos legais, como a depuração de programas que não são Pythonwin." -" O Pythonwin está disponível como parte do projeto `Python for Windows " +"alguns recursos legais, como a depuração de programas que não são Pythonwin. " +"O Pythonwin está disponível como parte do projeto `Python for Windows " "Extensions `__ e como parte da " -"distribuição ActivePython (veja https://www.activestate.com/activepython\\ " -")." +"distribuição ActivePython (veja https://www.activestate.com/activepython\\ )." #: ../../faq/programming.rst:38 msgid "" @@ -116,13 +119,13 @@ msgstr "" #: ../../faq/programming.rst:47 msgid "" -"Pydb is a version of the standard Python debugger pdb, modified for use with" -" DDD (Data Display Debugger), a popular graphical debugger front end. Pydb " +"Pydb is a version of the standard Python debugger pdb, modified for use with " +"DDD (Data Display Debugger), a popular graphical debugger front end. Pydb " "can be found at http://bashdb.sourceforge.net/pydb/ and DDD can be found at " "https://www.gnu.org/software/ddd." msgstr "" -"Pydb é uma versão do pdb padrão do depurador Python, modificado para uso com" -" o DDD (depurador de exibição de dados), um front-end popular do depurador " +"Pydb é uma versão do pdb padrão do depurador Python, modificado para uso com " +"o DDD (depurador de exibição de dados), um front-end popular do depurador " "gráfico. Pydb pode ser encontrado em http://bashdb.sourceforge.net/pydb/ e " "DDD pode ser encontrado em https://www.gnu.org/software/ddd." @@ -131,8 +134,8 @@ msgid "" "There are a number of commercial Python IDEs that include graphical " "debuggers. They include:" msgstr "" -"Há uma série de IDE comerciais para desenvolvimento com o Python que incluem" -" depuradores gráficos. Dentre tantas temos:" +"Há uma série de IDE comerciais para desenvolvimento com o Python que incluem " +"depuradores gráficos. Dentre tantas temos:" #: ../../faq/programming.rst:55 msgid "Wing IDE (https://wingware.com/)" @@ -165,8 +168,8 @@ msgstr "" #: ../../faq/programming.rst:69 msgid "" "`Pylint `_ is another tool that checks if a module " -"satisfies a coding standard, and also makes it possible to write plug-ins to" -" add a custom feature. In addition to the bug checking that PyChecker " +"satisfies a coding standard, and also makes it possible to write plug-ins to " +"add a custom feature. In addition to the bug checking that PyChecker " "performs, Pylint offers some additional features such as checking line " "length, whether variable names are well-formed according to your coding " "standard, whether declared interfaces are fully implemented, and more. " @@ -178,20 +181,22 @@ msgstr "" "PyChecker executa, o Pylint oferece alguns recursos adicionais, como a " "verificação do comprimento da linha, se os nomes das variáveis estão bem " "formados e de acordo com padrão internacional de codificação, se as " -"interfaces declaradas foram totalmente implementadas e muito mais. O " -"https://docs.pylint.org/ fornece uma lista completa dos recursos do Pylint." +"interfaces declaradas foram totalmente implementadas e muito mais. O https://" +"docs.pylint.org/ fornece uma lista completa dos recursos do Pylint." #: ../../faq/programming.rst:77 msgid "" -"Static type checkers such as `Mypy `_, `Pyre `_, and `Pytype `_ can " +"Static type checkers such as `Mypy `_, `Pyre `_, and `Pytype `_ can " "check type hints in Python source code." msgstr "" +"Verificadores de tipo estático como `Mypy `_, `Pyre " +"`_, and `Pytype `_ podem verificar as dicas de tipo no código-fonte Python." #: ../../faq/programming.rst:84 msgid "How can I create a stand-alone binary from a Python script?" -msgstr "" -"Como posso criar um binário independente a partir de um script Python?" +msgstr "Como posso criar um binário independente a partir de um script Python?" #: ../../faq/programming.rst:86 msgid "" @@ -201,22 +206,22 @@ msgid "" "determine the set of modules required by a program and bind these modules " "together with a Python binary to produce a single executable." msgstr "" -"Não precisas possui a capacidade de compilar o código Python para C se o que" -" desejas é um programa autônomo que os usuários possam baixar e executar sem" -" ter que instalar a distribuição Python primeiro. Existem várias ferramentas" -" que determinam o conjunto de módulos exigidos por um programa e vinculam " -"esses módulos junto com o binário do Python para produzir um único " +"Você não precisa possuir a capacidade de compilar o código Python para C se " +"o que deseja é um programa autônomo que os usuários possam baixar e executar " +"sem ter que instalar a distribuição Python primeiro. Existem várias " +"ferramentas que determinam o conjunto de módulos exigidos por um programa e " +"vinculam esses módulos junto com o binário do Python para produzir um único " "executável." #: ../../faq/programming.rst:92 msgid "" "One is to use the freeze tool, which is included in the Python source tree " "as ``Tools/freeze``. It converts Python byte code to C arrays; a C compiler " -"you can embed all your modules into a new program, which is then linked with" -" the standard Python modules." +"you can embed all your modules into a new program, which is then linked with " +"the standard Python modules." msgstr "" -"Um deles é usar a ferramenta de freeze, que está inclusa na árvore de origem" -" do Python como ``Tools/freeze``. A mesma converte o código bytecode do " +"Um deles é usar a ferramenta de freeze, que está inclusa na árvore de origem " +"do Python como ``Tools/freeze``. A mesma converte o código bytecode do " "Python em matrizes C; com um compilador C poderás incorporar todos os " "módulos em um novo programa, que será então vinculado aos módulos padrão do " "Python." @@ -224,21 +229,33 @@ msgstr "" #: ../../faq/programming.rst:97 msgid "" "It works by scanning your source recursively for import statements (in both " -"forms) and looking for the modules in the standard Python path as well as in" -" the source directory (for built-in modules). It then turns the bytecode " -"for modules written in Python into C code (array initializers that can be " -"turned into code objects using the marshal module) and creates a custom-made" -" config file that only contains those built-in modules which are actually " -"used in the program. It then compiles the generated C code and links it " -"with the rest of the Python interpreter to form a self-contained binary " -"which acts exactly like your script." -msgstr "" +"forms) and looking for the modules in the standard Python path as well as in " +"the source directory (for built-in modules). It then turns the bytecode for " +"modules written in Python into C code (array initializers that can be turned " +"into code objects using the marshal module) and creates a custom-made config " +"file that only contains those built-in modules which are actually used in " +"the program. It then compiles the generated C code and links it with the " +"rest of the Python interpreter to form a self-contained binary which acts " +"exactly like your script." +msgstr "" +"Ela funciona escaneando seu código recursivamente pelas instruções de " +"importação (ambas as formas) e procurando pelos módulos no caminho padrão do " +"Python e também no diretório fonte (para módulos internos). Então torna o " +"bytecode de módulos escritos em Python em código C (inicializadores de vetor " +"que podem ser transformado em objetos código usando o módulo marshal) e cria " +"um arquivo de configurações customizado que só contém aqueles módulos " +"internos que são na realidade usados no programa. A ferramenta então compila " +"os códigos gerados em C e liga como o resto do interpretador Python para " +"formar um binário autônomo que age exatamente como seu script." #: ../../faq/programming.rst:106 msgid "" "Obviously, freeze requires a C compiler. There are several other utilities " "which don't. One is Thomas Heller's py2exe (Windows only) at" msgstr "" +"Obviamente, freeze requer um compilador C. Exitem diversos outros serviços " +"que não requerem o compilador C. Uma opção é Thomas Heller's py2exe (Somente " +"no Windows)" #: ../../faq/programming.rst:109 msgid "http://www.py2exe.org/" @@ -246,9 +263,11 @@ msgstr "http://www.py2exe.org/" #: ../../faq/programming.rst:111 msgid "" -"Another tool is Anthony Tuininga's `cx_Freeze `_." +"Another tool is Anthony Tuininga's `cx_Freeze `_." msgstr "" +"Uma outra ferramenta é Anthony Tuininga's `cx_Freeze `_." #: ../../faq/programming.rst:115 msgid "Are there coding standards or a style guide for Python programs?" @@ -276,9 +295,9 @@ msgstr "" #: ../../faq/programming.rst:127 msgid "" -"It can be a surprise to get the UnboundLocalError in previously working code" -" when it is modified by adding an assignment statement somewhere in the body" -" of a function." +"It can be a surprise to get the UnboundLocalError in previously working code " +"when it is modified by adding an assignment statement somewhere in the body " +"of a function." msgstr "" "Talvez você se surpreenda ao receber UnboundLocalError num código que " "anteriormente funcionava quando este for modificado e adicionando uma " @@ -307,16 +326,16 @@ msgid "" msgstr "" "Isso acontece devido ao fato de que quando realizamos uma tarefa numa " "variável de um determinado escopo, essa variável torna-se-á local desse " -"escopo acabando por esconder qualquer variável similar que foi mencionada no" -" escopo externo. Uma vez que a última declaração de foo atribuir um novo " +"escopo acabando por esconder qualquer variável similar que foi mencionada no " +"escopo externo. Uma vez que a última declaração de foo atribuir um novo " "valor a ``x``, o compilador o reconhecera como uma variável local. " -"Conseqüentemente, quando o ``print (x)`` anterior tentar imprimir a variável" -" local não inicializada acabará resultando num." +"Conseqüentemente, quando o ``print (x)`` anterior tentar imprimir a variável " +"local não inicializada acabará resultando num." #: ../../faq/programming.rst:160 msgid "" -"In the example above you can access the outer scope variable by declaring it" -" global:" +"In the example above you can access the outer scope variable by declaring it " +"global:" msgstr "" "No exemplo acima, podemos acessar a variável do escopo externo declarando-o " "globalmente:" @@ -324,8 +343,8 @@ msgstr "" #: ../../faq/programming.rst:171 msgid "" "This explicit declaration is required in order to remind you that (unlike " -"the superficially analogous situation with class and instance variables) you" -" are actually modifying the value of the variable in the outer scope:" +"the superficially analogous situation with class and instance variables) you " +"are actually modifying the value of the variable in the outer scope:" msgstr "" "Esta declaração explícita é necessária para lembrá-lo de que (ao contrário " "da situação superficialmente análoga com variáveis de classe e instância), " @@ -360,10 +379,10 @@ msgid "" "Though a bit surprising at first, a moment's consideration explains this. " "On one hand, requiring :keyword:`global` for assigned variables provides a " "bar against unintended side-effects. On the other hand, if ``global`` was " -"required for all global references, you'd be using ``global`` all the time." -" You'd have to declare as global every reference to a built-in function or " -"to a component of an imported module. This clutter would defeat the " -"usefulness of the ``global`` declaration for identifying side-effects." +"required for all global references, you'd be using ``global`` all the time. " +"You'd have to declare as global every reference to a built-in function or to " +"a component of an imported module. This clutter would defeat the usefulness " +"of the ``global`` declaration for identifying side-effects." msgstr "" #: ../../faq/programming.rst:211 @@ -399,14 +418,14 @@ msgid "" "This happens because ``x`` is not local to the lambdas, but is defined in " "the outer scope, and it is accessed when the lambda is called --- not when " "it is defined. At the end of the loop, the value of ``x`` is ``4``, so all " -"the functions now return ``4**2``, i.e. ``16``. You can also verify this by" -" changing the value of ``x`` and see how the results of the lambdas change::" +"the functions now return ``4**2``, i.e. ``16``. You can also verify this by " +"changing the value of ``x`` and see how the results of the lambdas change::" msgstr "" "Isso acontece porque ``x`` não é local para o lambdas, mas é definido no " "escopo externo, e é acessado quando o lambda for chamado --- não quando é " "definido. No final do loop, o valor de ``x`` será ``4``, e então, todas as " -"funções agora retornarão ``4**2``, ou seja, ``16``. Também poderás verificar" -" isso alterando o valor de ``x`` e vendo como os resultados dos lambdas " +"funções agora retornarão ``4**2``, ou seja, ``16``. Também poderás verificar " +"isso alterando o valor de ``x`` e vendo como os resultados dos lambdas " "mudam::" #: ../../faq/programming.rst:240 @@ -421,16 +440,16 @@ msgstr "" msgid "" "Here, ``n=x`` creates a new variable ``n`` local to the lambda and computed " "when the lambda is defined so that it has the same value that ``x`` had at " -"that point in the loop. This means that the value of ``n`` will be ``0`` in" -" the first lambda, ``1`` in the second, ``2`` in the third, and so on. " +"that point in the loop. This means that the value of ``n`` will be ``0`` in " +"the first lambda, ``1`` in the second, ``2`` in the third, and so on. " "Therefore each lambda will now return the correct result::" msgstr "" "Aqui, ``n=x`` cria uma nova variável ``n`` local para o lambda e calculada " "quando o lambda será definido para que ele tenha o mesmo valor que ``x`` " -"tenha nesse ponto no loop. Isso significa que o valor de ``n`` será ``0`` no" -" primeiro \"ciclo\" do lambda, ``1`` no segundo \"ciclo\", ``2`` no " -"terceiro, e assim por diante. Portanto, cada lambda agora retornará o " -"resultado correto::" +"tenha nesse ponto no loop. Isso significa que o valor de ``n`` será ``0`` no " +"primeiro \"ciclo\" do lambda, ``1`` no segundo \"ciclo\", ``2`` no terceiro, " +"e assim por diante. Portanto, cada lambda agora retornará o resultado " +"correto::" #: ../../faq/programming.rst:258 msgid "" @@ -448,17 +467,17 @@ msgstr "Como definir variáveis globais dentro de módulos?" msgid "" "The canonical way to share information across modules within a single " "program is to create a special module (often called config or cfg). Just " -"import the config module in all modules of your application; the module then" -" becomes available as a global name. Because there is only one instance of " -"each module, any changes made to the module object get reflected everywhere." -" For example:" +"import the config module in all modules of your application; the module then " +"becomes available as a global name. Because there is only one instance of " +"each module, any changes made to the module object get reflected " +"everywhere. For example:" msgstr "" "A maneira canônica de compartilhar informações entre módulos dentro de um " -"único programa é criando um módulo especial (geralmente chamado de config ou" -" cfg). Basta importar o módulo de configuração em todos os módulos da sua " +"único programa é criando um módulo especial (geralmente chamado de config ou " +"cfg). Basta importar o módulo de configuração em todos os módulos da sua " "aplicação; O módulo ficará disponível como um nome global. Como há apenas " -"uma instância de cada módulo, todas as alterações feitas no objeto do módulo" -" se refletem em todos os lugares. Por exemplo:" +"uma instância de cada módulo, todas as alterações feitas no objeto do módulo " +"se refletem em todos os lugares. Por exemplo:" #: ../../faq/programming.rst:271 msgid "config.py::" @@ -477,8 +496,8 @@ msgid "" "Note that using a module is also the basis for implementing the Singleton " "design pattern, for the same reason." msgstr "" -"Observe o uso de um único módulo também é, por definição, a implementação do" -" Design Patterns Singleton!" +"Observe o uso de um único módulo também é, por definição, a implementação do " +"Design Patterns Singleton!" #: ../../faq/programming.rst:291 msgid "What are the \"best practices\" for using import in a module?" @@ -544,14 +563,14 @@ msgstr "" msgid "" "Circular imports are fine where both modules use the \"import \" " "form of import. They fail when the 2nd module wants to grab a name out of " -"the first (\"from module import name\") and the import is at the top level." -" That's because names in the 1st are not yet available, because the first " +"the first (\"from module import name\") and the import is at the top level. " +"That's because names in the 1st are not yet available, because the first " "module is busy importing the 2nd." msgstr "" "As importações circulares estão bem onde ambos os módulos utilizam a forma " "de importação \"import 1\". Eles falham quando o 2º módulo quer pegar um " -"nome do primeiro (\"from module import name\") e a importação está no nível" -" superior. Isso porque os nomes no primeiro ainda não estão disponíveis, " +"nome do primeiro (\"from module import name\") e a importação está no nível " +"superior. Isso porque os nomes no primeiro ainda não estão disponíveis, " "porque o primeiro módulo está ocupado importando o 2º." #: ../../faq/programming.rst:318 @@ -562,18 +581,18 @@ msgid "" "module can do its import." msgstr "" "Nesse caso, se o segundo módulo for usado apenas numa função, a importação " -"pode ser facilmente movida para dentro do escopo dessa função. No momento em" -" que a importação for chamada, o primeiro módulo terá finalizado a " +"pode ser facilmente movida para dentro do escopo dessa função. No momento em " +"que a importação for chamada, o primeiro módulo terá finalizado a " "inicialização e o segundo módulo poderá ser importado sem maiores " "complicações." #: ../../faq/programming.rst:323 msgid "" "It may also be necessary to move imports out of the top level of code if " -"some of the modules are platform-specific. In that case, it may not even be" -" possible to import all of the modules at the top of the file. In this " -"case, importing the correct modules in the corresponding platform-specific " -"code is a good option." +"some of the modules are platform-specific. In that case, it may not even be " +"possible to import all of the modules at the top of the file. In this case, " +"importing the correct modules in the corresponding platform-specific code is " +"a good option." msgstr "" "Também poderá ser necessário mover as importações para fora do nível " "superior do código se alguns dos módulos forem específicos de uma " @@ -586,23 +605,23 @@ msgstr "" msgid "" "Only move imports into a local scope, such as inside a function definition, " "if it's necessary to solve a problem such as avoiding a circular import or " -"are trying to reduce the initialization time of a module. This technique is" -" especially helpful if many of the imports are unnecessary depending on how " +"are trying to reduce the initialization time of a module. This technique is " +"especially helpful if many of the imports are unnecessary depending on how " "the program executes. You may also want to move imports into a function if " -"the modules are only ever used in that function. Note that loading a module" -" the first time may be expensive because of the one time initialization of " +"the modules are only ever used in that function. Note that loading a module " +"the first time may be expensive because of the one time initialization of " "the module, but loading a module multiple times is virtually free, costing " "only a couple of dictionary lookups. Even if the module name has gone out " "of scope, the module is probably available in :data:`sys.modules`." msgstr "" -"Apenas mova as importações para um escopo local, como dentro da definição de" -" função, se for necessário resolver algum tipo de problema, como exemplo, " +"Apenas mova as importações para um escopo local, como dentro da definição de " +"função, se for necessário resolver algum tipo de problema, como exemplo, " "evitar importações circulares ou tentar reduzir o tempo de inicialização do " "módulo. Esta técnica é especialmente útil se muitas das importações forem " "desnecessárias, dependendo de como o programa é executado. Também podemos " "desejar mover as importações para uma função se os módulos forem usados " -"somente nessa função. Note que carregar um módulo pela primeira vez pode ser" -" demorado devido ao tempo de inicialização de cada módulo, no entanto, " +"somente nessa função. Note que carregar um módulo pela primeira vez pode ser " +"demorado devido ao tempo de inicialização de cada módulo, no entanto, " "carregar um módulo várias vezes é praticamente imperceptível, tendo somente " "o custo de processamento de pesquisas no dicionário de nomes. Mesmo que o " "nome do módulo tenha saído do escopo, o módulo provavelmente estará " @@ -623,8 +642,8 @@ msgstr "" #: ../../faq/programming.rst:350 msgid "" "The first time you call this function, ``mydict`` contains a single item. " -"The second time, ``mydict`` contains two items because when ``foo()`` begins" -" executing, ``mydict`` starts out with an item already in it." +"The second time, ``mydict`` contains two items because when ``foo()`` begins " +"executing, ``mydict`` starts out with an item already in it." msgstr "" "A primeira vez que chamares essa função, ``mydict`` irá conter um único " "item. A segunda vez, ``mydict`` irá conter dois itens, porque quando " @@ -640,9 +659,9 @@ msgid "" "this changed object." msgstr "" "Muitas vezes, espera-se que ao invocar uma função seja criado novos objetos " -"referente aos valores padrão. Isso não é o que acontecerá. Os valores padrão" -" são criados exatamente uma vez, quando a função está sendo definida. Se " -"esse objeto for alterado, como o dicionário neste exemplo, as chamadas " +"referente aos valores padrão. Isso não é o que acontecerá. Os valores padrão " +"são criados exatamente uma vez, quando a função está sendo definida. Se esse " +"objeto for alterado, como o dicionário neste exemplo, as chamadas " "subsequentes para a essa função se referirão a este objeto alterado." #: ../../faq/programming.rst:359 @@ -666,8 +685,8 @@ msgstr "" "Por causa desse recurso, é uma boa prática de programação para evitar o uso " "de objetos mutáveis contendo valores padrão. Em vez disso, utilize ``None`` " "como o valor padrão e dentro da função, verifique se o parâmetro é ``None`` " -"e crie uma nova lista /dicionário/ o que quer que seja. Por exemplo, escreva" -" o seguinte código::" +"e crie uma nova lista /dicionário/ o que quer que seja. Por exemplo, escreva " +"o seguinte código::" #: ../../faq/programming.rst:371 msgid "but::" @@ -683,8 +702,8 @@ msgid "" msgstr "" "Esse recurso pode ser útil. Quando tiveres uma função que consome muito " "tempo para calcular, uma técnica comum é armazenar em cache os parâmetros e " -"o valor resultante de cada chamada para a função e retornar o valor em cache" -" se o mesmo valor for solicitado novamente. Isso se chama \"memoizing\", e " +"o valor resultante de cada chamada para a função e retornar o valor em cache " +"se o mesmo valor for solicitado novamente. Isso se chama \"memoizing\", e " "pode ser implementado da seguinte forma::" #: ../../faq/programming.rst:392 @@ -712,8 +731,8 @@ msgstr "" "Preceda os argumentos com o uso de especificadores (asteriscos) ``* `` ou " "``** `` na lista de parâmetros da função; Isso faz com que os argumentos " "posicionais como uma tupla e os keyword arguments sejam passados como um " -"dicionário. Poderás, também, passar esses argumentos ao invocar outra função" -" usando ``* `` e `` **``::" +"dicionário. Poderás, também, passar esses argumentos ao invocar outra função " +"usando ``* `` e `` **``::" #: ../../faq/programming.rst:418 msgid "What is the difference between arguments and parameters?" @@ -723,8 +742,8 @@ msgstr "Qual a diferença entre argumentos e parâmetros?" msgid "" ":term:`Parameters ` are defined by the names that appear in a " "function definition, whereas :term:`arguments ` are the values " -"actually passed to a function when calling it. Parameters define what types" -" of arguments a function can accept. For example, given the function " +"actually passed to a function when calling it. Parameters define what types " +"of arguments a function can accept. For example, given the function " "definition::" msgstr "" ":term:`Parameters 1` são definidos pelos nomes que aparecem na definição da " @@ -735,11 +754,11 @@ msgstr "" #: ../../faq/programming.rst:428 msgid "" -"*foo*, *bar* and *kwargs* are parameters of ``func``. However, when calling" -" ``func``, for example::" +"*foo*, *bar* and *kwargs* are parameters of ``func``. However, when calling " +"``func``, for example::" msgstr "" -"*foo*, *bar* e *kwargs* são parâmetros de ``func``. Dessa forma, ao invocar" -" ``func``, por exemplo::" +"*foo*, *bar* e *kwargs* são parâmetros de ``func``. Dessa forma, ao invocar " +"``func``, por exemplo::" #: ../../faq/programming.rst:433 msgid "the values ``42``, ``314``, and ``somevar`` are arguments." @@ -771,11 +790,11 @@ msgid "" "the same object ``x`` refers to. This means that there is only one object " "(the list), and both ``x`` and ``y`` refer to it." msgstr "" -"As variáveis são simplesmente nomes que referem-se a objetos. Ao escrevermos" -" ``y=x`` não criará uma cópia da lista - criará uma nova variável ``y`` que " +"As variáveis são simplesmente nomes que referem-se a objetos. Ao escrevermos " +"``y=x`` não criará uma cópia da lista - criará uma nova variável ``y`` que " "irá se referir ao mesmo objeto que ``x`` está se referindo. Isso significa " -"que existe apenas um objeto (lista), e ambos nomes (variáveis) ``x`` e ``y``" -" estão associados ao mesmo." +"que existe apenas um objeto (lista), e ambos nomes (variáveis) ``x`` e ``y`` " +"estão associados ao mesmo." #: ../../faq/programming.rst:457 msgid "" @@ -790,10 +809,10 @@ msgid "" "has changed from ``[]`` to ``[10]``. Since both the variables refer to the " "same object, using either name accesses the modified value ``[10]``." msgstr "" -"Após invocar para :meth:`~list.append`, o conteúdo do objeto mutável " -"alterou-se de ``[]`` para ``[10]``. Uma vez que ambas as variáveis referem-" -"se ao mesmo objeto, usar qualquer um dos nomes acessará o valor modificado " -"``[10] ``." +"Após invocar para :meth:`~list.append`, o conteúdo do objeto mutável alterou-" +"se de ``[]`` para ``[10]``. Uma vez que ambas as variáveis referem-se ao " +"mesmo objeto, usar qualquer um dos nomes acessará o valor modificado ``[10] " +"``." #: ../../faq/programming.rst:463 msgid "If we instead assign an immutable object to ``x``::" @@ -801,38 +820,38 @@ msgstr "Se por acaso, atribuímos um objeto imutável a ``x``::" #: ../../faq/programming.rst:473 msgid "" -"we can see that in this case ``x`` and ``y`` are not equal anymore. This is" -" because integers are :term:`immutable`, and when we do ``x = x + 1`` we are" -" not mutating the int ``5`` by incrementing its value; instead, we are " +"we can see that in this case ``x`` and ``y`` are not equal anymore. This is " +"because integers are :term:`immutable`, and when we do ``x = x + 1`` we are " +"not mutating the int ``5`` by incrementing its value; instead, we are " "creating a new object (the int ``6``) and assigning it to ``x`` (that is, " "changing which object ``x`` refers to). After this assignment we have two " "objects (the ints ``6`` and ``5``) and two variables that refer to them " "(``x`` now refers to ``6`` but ``y`` still refers to ``5``)." msgstr "" -"veremos que nesse caso ``x`` e ``y`` não são mais iguais. Isso ocorre porque" -" os números inteiros são :term:`immutable`, e quando fizermos ``x=x+1`` não " +"veremos que nesse caso ``x`` e ``y`` não são mais iguais. Isso ocorre porque " +"os números inteiros são :term:`immutable`, e quando fizermos ``x=x+1`` não " "estaremos mudando o int ``5`` e incrementando o seu valor; em vez disso, " "estamos criando um novo objeto (o int ``6``) e associando ``x`` (isto é, " -"mudando para o objeto no qual ``x`` se refere). Após esta tarefa, temos dois" -" objetos (os ints ``6`` e ``5``) e duas variáveis que referem-se a elas " +"mudando para o objeto no qual ``x`` se refere). Após esta tarefa, temos dois " +"objetos (os ints ``6`` e ``5``) e duas variáveis que referem-se a elas " "(``x`` agora se refere a ``6`` mas ``y`` ainda refere-se a ``5``)." #: ../../faq/programming.rst:481 msgid "" "Some operations (for example ``y.append(10)`` and ``y.sort()``) mutate the " "object, whereas superficially similar operations (for example ``y = y + " -"[10]`` and ``sorted(y)``) create a new object. In general in Python (and in" -" all cases in the standard library) a method that mutates an object will " -"return ``None`` to help avoid getting the two types of operations confused." -" So if you mistakenly write ``y.sort()`` thinking it will give you a sorted" -" copy of ``y``, you'll instead end up with ``None``, which will likely cause" -" your program to generate an easily diagnosed error." +"[10]`` and ``sorted(y)``) create a new object. In general in Python (and in " +"all cases in the standard library) a method that mutates an object will " +"return ``None`` to help avoid getting the two types of operations confused. " +"So if you mistakenly write ``y.sort()`` thinking it will give you a sorted " +"copy of ``y``, you'll instead end up with ``None``, which will likely cause " +"your program to generate an easily diagnosed error." msgstr "" #: ../../faq/programming.rst:490 msgid "" -"However, there is one class of operations where the same operation sometimes" -" has different behaviors with different types: the augmented assignment " +"However, there is one class of operations where the same operation sometimes " +"has different behaviors with different types: the augmented assignment " "operators. For example, ``+=`` mutates lists but not tuples or ints " "(``a_list += [1, 2, 3]`` is equivalent to ``a_list.extend([1, 2, 3])`` and " "mutates ``a_list``, whereas ``some_tuple += (1, 2, 3)`` and ``some_int += " @@ -860,18 +879,18 @@ msgid "" "but operations that transform that value into a new value always return a " "new object." msgstr "" -"Caso tenhamos um objeto imutável (:class:`str`, :class:`int`, " -":class:`tuple`, etc.), todas as variáveis que se referem as mesmas sempre " -"verão o mesmo valor, mas as operações que transformam-se nesses valores " -"sempre retornarão novos objetos." +"Caso tenhamos um objeto imutável (:class:`str`, :class:`int`, :class:" +"`tuple`, etc.), todas as variáveis que se referem as mesmas sempre verão o " +"mesmo valor, mas as operações que transformam-se nesses valores sempre " +"retornarão novos objetos." #: ../../faq/programming.rst:507 msgid "" "If you want to know if two variables refer to the same object or not, you " "can use the :keyword:`is` operator, or the built-in function :func:`id`." msgstr "" -"Se quiseres saber se duas variáveis se referem ao mesmo objeto ou não, podes" -" usar a palavra-chave :keyword:`is`, ou a função builtin :func:`id`." +"Se quiseres saber se duas variáveis se referem ao mesmo objeto ou não, podes " +"usar a palavra-chave :keyword:`is`, ou a função builtin :func:`id`." #: ../../faq/programming.rst:512 msgid "How do I write a function with output parameters (call by reference)?" @@ -882,8 +901,8 @@ msgstr "" msgid "" "Remember that arguments are passed by assignment in Python. Since " "assignment just creates references to objects, there's no alias between an " -"argument name in the caller and callee, and so no call-by-reference per se." -" You can achieve the desired effect in a number of ways." +"argument name in the caller and callee, and so no call-by-reference per se. " +"You can achieve the desired effect in a number of ways." msgstr "" "Lembre-se de que os argumentos são passados por atribuição em Python. Uma " "vez que a tarefa apenas cria referências a objetos, não existe \"alias\" " @@ -937,8 +956,8 @@ msgstr "Como fazer uma função de ordem superior em Python?" msgid "" "You have two choices: you can use nested scopes or you can use callable " "objects. For example, suppose you wanted to define ``linear(a,b)`` which " -"returns a function ``f(x)`` that computes the value ``a*x+b``. Using nested" -" scopes::" +"returns a function ``f(x)`` that computes the value ``a*x+b``. Using nested " +"scopes::" msgstr "" "Existem duas opções: podes usar escopos aninhados ou poderás usar objetos " "invocáveis. Por exemplo, suponha que desejasses definir que ``linear(a,b)`` " @@ -964,8 +983,8 @@ msgid "" "callables can share their signature via inheritance::" msgstr "" "A abordagem do objeto invocável tem a desvantagem de que é um pouco mais " -"lento e resulta num código ligeiramente mais longo. No entanto, note que uma" -" coleção de callables pode compartilhar sua assinatura via herança::" +"lento e resulta num código ligeiramente mais longo. No entanto, note que uma " +"coleção de callables pode compartilhar sua assinatura via herança::" #: ../../faq/programming.rst:612 msgid "Object can encapsulate state for several methods::" @@ -973,8 +992,8 @@ msgstr "Objetos podem encapsular o estado para vários métodos::" #: ../../faq/programming.rst:630 msgid "" -"Here ``inc()``, ``dec()`` and ``reset()`` act like functions which share the" -" same counting variable." +"Here ``inc()``, ``dec()`` and ``reset()`` act like functions which share the " +"same counting variable." msgstr "" "Aqui ``inc()``, ``dec()`` e ``reset()`` funcionam como funções que " "compartilham a mesma variável contadora." @@ -988,17 +1007,17 @@ msgid "" "In general, try :func:`copy.copy` or :func:`copy.deepcopy` for the general " "case. Not all objects can be copied, but most can." msgstr "" -"Basicamente, tente utilizar a função :func:`copy.copy` ou a função " -":func:`copy.deepcopy` para casos gerais. Nem todos os objetos podem ser " -"copiados, mas a maioria poderá." +"Basicamente, tente utilizar a função :func:`copy.copy` ou a função :func:" +"`copy.deepcopy` para casos gerais. Nem todos os objetos podem ser copiados, " +"mas a maioria poderá." #: ../../faq/programming.rst:640 msgid "" -"Some objects can be copied more easily. Dictionaries have a " -":meth:`~dict.copy` method::" +"Some objects can be copied more easily. Dictionaries have a :meth:`~dict." +"copy` method::" msgstr "" -"Alguns objetos podem ser copiados com mais facilidade. Os dicionários têm um" -" método :meth:`~dict.copy`::" +"Alguns objetos podem ser copiados com mais facilidade. Os dicionários têm um " +"método :meth:`~dict.copy`::" #: ../../faq/programming.rst:645 msgid "Sequences can be copied by slicing::" @@ -1014,8 +1033,8 @@ msgid "" "alphabetized list of the names containing the instance attributes and " "methods and attributes defined by its class." msgstr "" -"Para uma instância X de uma classe definida pelo usuário, ``dir(x)`` retorna" -" uma lista organizada alfabeticamente dos nomes contidos, os atributos da " +"Para uma instância X de uma classe definida pelo usuário, ``dir(x)`` retorna " +"uma lista organizada alfabeticamente dos nomes contidos, os atributos da " "instância e os métodos e atributos definidos por sua classe." #: ../../faq/programming.rst:659 @@ -1037,10 +1056,10 @@ msgid "" "instance of class A. However, it is impossible to say whether the " "instance's name is a or b, since both names are bound to the same value." msgstr "" -"Provavelmente, a classe tem um nome: mesmo que seja vinculada a dois nomes e" -" invocada através do nome B, a instância criada ainda é relatada como uma " -"instância da classe A. No entanto, é impossível dizer se o nome da instância" -" é A ou B, uma vez que ambos os nomes estão vinculados ao mesmo valor." +"Provavelmente, a classe tem um nome: mesmo que seja vinculada a dois nomes e " +"invocada através do nome B, a instância criada ainda é relatada como uma " +"instância da classe A. No entanto, é impossível dizer se o nome da instância " +"é A ou B, uma vez que ambos os nomes estão vinculados ao mesmo valor." #: ../../faq/programming.rst:682 msgid "" @@ -1051,8 +1070,8 @@ msgid "" msgstr "" "De um modo geral, não deveria ser necessário que o seu código \"conheça os " "nomes\" de valores específicos. A menos que escrevas deliberadamente " -"programas introspectivos, isso geralmente é uma indicação de que uma mudança" -" de abordagem pode ser benéfica." +"programas introspectivos, isso geralmente é uma indicação de que uma mudança " +"de abordagem pode ser benéfica." #: ../../faq/programming.rst:687 msgid "" @@ -1135,8 +1154,8 @@ msgstr "" #: ../../faq/programming.rst:743 msgid "" -"Yes. Usually this is done by nesting :keyword:`lambda` within " -":keyword:`!lambda`. See the following three examples, due to Ulf Bartelt::" +"Yes. Usually this is done by nesting :keyword:`lambda` within :keyword:`!" +"lambda`. See the following three examples, due to Ulf Bartelt::" msgstr "" #: ../../faq/programming.rst:770 @@ -1149,12 +1168,12 @@ msgstr "" #: ../../faq/programming.rst:778 msgid "" -"A slash in the argument list of a function denotes that the parameters prior" -" to it are positional-only. Positional-only parameters are the ones without" -" an externally-usable name. Upon calling a function that accepts " -"positional-only parameters, arguments are mapped to parameters based solely " -"on their position. For example, :func:`pow` is a function that accepts " -"positional-only parameters. Its documentation looks like this::" +"A slash in the argument list of a function denotes that the parameters prior " +"to it are positional-only. Positional-only parameters are the ones without " +"an externally-usable name. Upon calling a function that accepts positional-" +"only parameters, arguments are mapped to parameters based solely on their " +"position. For example, :func:`pow` is a function that accepts positional-" +"only parameters. Its documentation looks like this::" msgstr "" #: ../../faq/programming.rst:794 @@ -1235,12 +1254,12 @@ msgstr "Como faço para converter uma String em um número?" #: ../../faq/programming.rst:856 msgid "" "For integers, use the built-in :func:`int` type constructor, e.g. " -"``int('144') == 144``. Similarly, :func:`float` converts to floating-point," -" e.g. ``float('144') == 144.0``." +"``int('144') == 144``. Similarly, :func:`float` converts to floating-point, " +"e.g. ``float('144') == 144.0``." msgstr "" -"Para inteiros, use o tipo built-in :func:`int`, por exemplo, ``int('144') ==" -" 144``. Da mesma forma, :func:`float` converterá para um valor do tipo ponto" -" flutuante, por exemplo ``float('144') == 144.0``." +"Para inteiros, use o tipo built-in :func:`int`, por exemplo, ``int('144') == " +"144``. Da mesma forma, :func:`float` converterá para um valor do tipo ponto " +"flutuante, por exemplo ``float('144') == 144.0``." #: ../../faq/programming.rst:860 msgid "" @@ -1265,8 +1284,8 @@ msgstr "" #: ../../faq/programming.rst:873 msgid "" ":func:`eval` also has the effect of interpreting numbers as Python " -"expressions, so that e.g. ``eval('09')`` gives a syntax error because Python" -" does not allow leading '0' in a decimal number (except '0')." +"expressions, so that e.g. ``eval('09')`` gives a syntax error because Python " +"does not allow leading '0' in a decimal number (except '0')." msgstr "" #: ../../faq/programming.rst:879 @@ -1276,11 +1295,11 @@ msgstr "Como faço para converter um número numa string?" #: ../../faq/programming.rst:881 msgid "" "To convert, e.g., the number 144 to the string '144', use the built-in type " -"constructor :func:`str`. If you want a hexadecimal or octal representation," -" use the built-in functions :func:`hex` or :func:`oct`. For fancy " -"formatting, see the :ref:`f-strings` and :ref:`formatstrings` sections, e.g." -" ``\"{:04d}\".format(144)`` yields ``'0144'`` and " -"``\"{:.3f}\".format(1.0/3.0)`` yields ``'0.333'``." +"constructor :func:`str`. If you want a hexadecimal or octal representation, " +"use the built-in functions :func:`hex` or :func:`oct`. For fancy " +"formatting, see the :ref:`f-strings` and :ref:`formatstrings` sections, e.g. " +"``\"{:04d}\".format(144)`` yields ``'0144'`` and ``\"{:.3f}\"." +"format(1.0/3.0)`` yields ``'0.333'``." msgstr "" "Para converter, por exemplo, o número 144 para a string '144', use o tipo " "builtin :func:`str`. Caso queiras uma representação hexadecimal ou octal, " @@ -1296,8 +1315,8 @@ msgstr "Como faço para modificar uma string no lugar?" #: ../../faq/programming.rst:892 msgid "" "You can't, because strings are immutable. In most situations, you should " -"simply construct a new string from the various parts you want to assemble it" -" from. However, if you need an object with the ability to modify in-place " +"simply construct a new string from the various parts you want to assemble it " +"from. However, if you need an object with the ability to modify in-place " "unicode data, try using an :class:`io.StringIO` object or the :mod:`array` " "module::" msgstr "" @@ -1305,8 +1324,8 @@ msgstr "" "situações, você simplesmente deve construir uma nova string a partir das " "várias partes das quais desejas que a sua nova String tenha. No entanto, se " "precisares de um objeto com a capacidade de modificar dados Unicode " -"localmente, tente usar a classe :class:`io.StringIO` ou o módulo " -":mod:`array`::" +"localmente, tente usar a classe :class:`io.StringIO` ou o módulo :mod:" +"`array`::" #: ../../faq/programming.rst:922 msgid "How do I use strings to call functions/methods?" @@ -1318,8 +1337,8 @@ msgstr "Existem várias técnicas." #: ../../faq/programming.rst:926 msgid "" -"The best is to use a dictionary that maps strings to functions. The primary" -" advantage of this technique is that the strings do not need to match the " +"The best is to use a dictionary that maps strings to functions. The primary " +"advantage of this technique is that the strings do not need to match the " "names of the functions. This is also the primary technique used to emulate " "a case construct::" msgstr "" @@ -1362,8 +1381,8 @@ msgstr "" #: ../../faq/programming.rst:980 msgid "" -"Is there an equivalent to Perl's chomp() for removing trailing newlines from" -" strings?" +"Is there an equivalent to Perl's chomp() for removing trailing newlines from " +"strings?" msgstr "" "Existe um equivalente em Perl ``chomp()`` para remover linhas novas de uma " "String?" @@ -1372,9 +1391,9 @@ msgstr "" msgid "" "You can use ``S.rstrip(\"\\r\\n\")`` to remove all occurrences of any line " "terminator from the end of the string ``S`` without removing other trailing " -"whitespace. If the string ``S`` represents more than one line, with several" -" empty lines at the end, the line terminators for all the blank lines will " -"be removed::" +"whitespace. If the string ``S`` represents more than one line, with several " +"empty lines at the end, the line terminators for all the blank lines will be " +"removed::" msgstr "" "Podes utilizar ``S.rstrip(\"\\r\\n\")`` para remover todas as ocorrência de " "qualquer terminador de linha que esteja no final da String``S`` sem remover " @@ -1387,8 +1406,8 @@ msgid "" "Since this is typically only desired when reading text one line at a time, " "using ``S.rstrip()`` this way works well." msgstr "" -"Geralmente isso só é desejado ao ler um texto linha por linha, usando " -"``S.rstrip()`` dessa maneira funciona bem." +"Geralmente isso só é desejado ao ler um texto linha por linha, usando ``S." +"rstrip()`` dessa maneira funciona bem." #: ../../faq/programming.rst:999 msgid "Is there a scanf() or sscanf() equivalent?" @@ -1402,8 +1421,8 @@ msgstr "Não como tal." msgid "" "For simple input parsing, the easiest approach is usually to split the line " "into whitespace-delimited words using the :meth:`~str.split` method of " -"string objects and then convert decimal strings to numeric values using " -":func:`int` or :func:`float`. ``split()`` supports an optional \"sep\" " +"string objects and then convert decimal strings to numeric values using :" +"func:`int` or :func:`float`. ``split()`` supports an optional \"sep\" " "parameter which is useful if the line uses something other than whitespace " "as a separator." msgstr "" @@ -1452,15 +1471,13 @@ msgstr "" #: ../../faq/programming.rst:1028 msgid "" "Performance characteristics vary across Python implementations. This FAQ " -"focusses on :term:`CPython`." +"focuses on :term:`CPython`." msgstr "" -"As características relacionadas ao desempenho variam em todas as " -"implementações do Python. Esta FAQ foca somente nisso :term:`CPython`." #: ../../faq/programming.rst:1030 msgid "" -"Behaviour can vary across operating systems, especially when talking about " -"I/O or multi-threading." +"Behaviour can vary across operating systems, especially when talking about I/" +"O or multi-threading." msgstr "" "O comportamento pode variar em cada Sistemas Operacionais, especialmente " "quando estivermos tratando de I/o ou multi-threading." @@ -1483,8 +1500,8 @@ msgstr "" #: ../../faq/programming.rst:1036 msgid "" -"It is highly recommended to have good code coverage (through unit testing or" -" any other technique) before potentially introducing regressions hidden in " +"It is highly recommended to have good code coverage (through unit testing or " +"any other technique) before potentially introducing regressions hidden in " "sophisticated optimizations." msgstr "" "É altamente recomendável ter boa cobertura de código (através de testes de " @@ -1498,8 +1515,8 @@ msgid "" "performance levels:" msgstr "" "Dito isto, existem muitos truques para acelerar nossos códigos Python. Aqui " -"estão alguns dos principais tópicos e que geralmente ajudam a atingir níveis" -" de desempenho aceitáveis:" +"estão alguns dos principais tópicos e que geralmente ajudam a atingir níveis " +"de desempenho aceitáveis:" #: ../../faq/programming.rst:1044 msgid "" @@ -1513,16 +1530,16 @@ msgid "" "Use the right data structures. Study documentation for the :ref:`bltin-" "types` and the :mod:`collections` module." msgstr "" -"Use as estruturas de dados corretas. Documentação de estudo para :ref" -":`bltin-types` e o módulo :mod:`collections`." +"Use as estruturas de dados corretas. Documentação de estudo para :ref:`bltin-" +"types` e o módulo :mod:`collections`." #: ../../faq/programming.rst:1051 msgid "" "When the standard library provides a primitive for doing something, it is " "likely (although not guaranteed) to be faster than any alternative you may " "come up with. This is doubly true for primitives written in C, such as " -"builtins and some extension types. For example, be sure to use either the " -":meth:`list.sort` built-in method or the related :func:`sorted` function to " +"builtins and some extension types. For example, be sure to use either the :" +"meth:`list.sort` built-in method or the related :func:`sorted` function to " "do sorting (and see the :ref:`sortinghowto` for examples of moderately " "advanced usage)." msgstr "" @@ -1531,16 +1548,16 @@ msgstr "" "alternativa que possa surgir. Isso geralmente é verdade para os tipos " "primitivos escritos em C, como os builtins e alguns tipos de extensão. Por " "exemplo, certifique-se de usar o método interno :meth:`list.sort` ou a " -"função relacionada :func:`sorted` para fazer a ordenação (e veja " -":ref:`sortinghowto` para exemplos de uso moderadamente avançado)." +"função relacionada :func:`sorted` para fazer a ordenação (e veja :ref:" +"`sortinghowto` para exemplos de uso moderadamente avançado)." #: ../../faq/programming.rst:1059 msgid "" "Abstractions tend to create indirections and force the interpreter to work " -"more. If the levels of indirection outweigh the amount of useful work done," -" your program will be slower. You should avoid excessive abstraction, " -"especially under the form of tiny functions or methods (which are also often" -" detrimental to readability)." +"more. If the levels of indirection outweigh the amount of useful work done, " +"your program will be slower. You should avoid excessive abstraction, " +"especially under the form of tiny functions or methods (which are also often " +"detrimental to readability)." msgstr "" "As abstrações tendem a criar indireções e forçar o intérprete a trabalhar " "mais. Se os níveis de indireção superarem a quantidade de trabalho útil " @@ -1550,8 +1567,8 @@ msgstr "" #: ../../faq/programming.rst:1065 msgid "" -"If you have reached the limit of what pure Python can allow, there are tools" -" to take you further away. For example, `Cython `_ can " +"If you have reached the limit of what pure Python can allow, there are tools " +"to take you further away. For example, `Cython `_ can " "compile a slightly modified version of Python code into a C extension, and " "can be used on many different platforms. Cython can take advantage of " "compilation (and optional type annotations) to make your code significantly " @@ -1560,22 +1577,22 @@ msgid "" "yourself." msgstr "" "Se você atingiu o limite do que Python puro pode permitir, existem " -"ferramentas para levá-lo mais longe. Por exemplo, o `Cython " -"`_ pode compilar uma versão ligeiramente modificada do " -"código Python numa extensão C e pode ser usado em muitas plataformas " -"diferentes. O Cython pode tirar proveito da compilação (e anotações tipo " -"opcional) para tornar o seu código significativamente mais rápido do que " -"quando interpretado. Se você está confiante em suas habilidades de " -"programação C, também podes escrever seus módulos em C :ref:`write a C " -"extension module `." +"ferramentas para levá-lo mais longe. Por exemplo, o `Cython `_ pode compilar uma versão ligeiramente modificada do código Python " +"numa extensão C e pode ser usado em muitas plataformas diferentes. O Cython " +"pode tirar proveito da compilação (e anotações tipo opcional) para tornar o " +"seu código significativamente mais rápido do que quando interpretado. Se " +"você está confiante em suas habilidades de programação C, também podes " +"escrever seus módulos em C :ref:`write a C extension module `." #: ../../faq/programming.rst:1075 msgid "" -"The wiki page devoted to `performance tips " -"`_." +"The wiki page devoted to `performance tips `_." msgstr "" -"A página wiki dedicada a dicas de performance `performance tips " -"`_." +"A página wiki dedicada a dicas de performance `performance tips `_." #: ../../faq/programming.rst:1081 msgid "What is the most efficient way to concatenate many strings together?" @@ -1589,8 +1606,8 @@ msgid "" "quadratic in the total string length." msgstr "" "A classe :class:`str` e a classe :class:`bytes` são objetos imutáveis, " -"portanto, concatenar muitas Strings em é ineficiente, pois cada concatenação" -" criará um novo objeto String. No caso geral, o custo total do tempo de " +"portanto, concatenar muitas Strings em é ineficiente, pois cada concatenação " +"criará um novo objeto String. No caso geral, o custo total do tempo de " "execução é quadrático no comprimento total da String." #: ../../faq/programming.rst:1088 @@ -1612,9 +1629,9 @@ msgid "" "extend a :class:`bytearray` object using in-place concatenation (the ``+=`` " "operator)::" msgstr "" -"Para juntar vários objetos :class:`bytes`, a linguagem recomendada estender" -" uma classe :class:`bytearray` usando a concatenação in-place (com o " -"operador ``+=``)::" +"Para juntar vários objetos :class:`bytes`, a linguagem recomendada estender " +"uma classe :class:`bytearray` usando a concatenação in-place (com o operador " +"``+=``)::" #: ../../faq/programming.rst:1107 msgid "Sequences (Tuples/Lists)" @@ -1629,8 +1646,8 @@ msgid "" "The type constructor ``tuple(seq)`` converts any sequence (actually, any " "iterable) into a tuple with the same items in the same order." msgstr "" -"O construtor de tipo ``tuple(seq)`` converte qualquer sequência (na verdade," -" qualquer iterável) numa tupla com os mesmos itens na mesma ordem." +"O construtor de tipo ``tuple(seq)`` converte qualquer sequência (na verdade, " +"qualquer iterável) numa tupla com os mesmos itens na mesma ordem." #: ../../faq/programming.rst:1115 msgid "" @@ -1641,8 +1658,8 @@ msgid "" msgstr "" "Por exemplo, ``tuple([1, 2, 3])`` yields ``(1, 2, 3)`` e ``tuple('abc')`` " "yields ``('a', 'b', 'c')``. Se o argumento for uma tupla, a mesma não faz " -"uma cópia, mas retorna o mesmo objeto, por isso é barato invocar a função " -":func:`tuple` quando você não tiver certeza que determinado objeto já é uma " +"uma cópia, mas retorna o mesmo objeto, por isso é barato invocar a função :" +"func:`tuple` quando você não tiver certeza que determinado objeto já é uma " "tupla." #: ../../faq/programming.rst:1120 @@ -1710,14 +1727,14 @@ msgstr "https://code.activestate.com/recipes/52560/" #: ../../faq/programming.rst:1163 msgid "" -"If you don't mind reordering the list, sort it and then scan from the end of" -" the list, deleting duplicates as you go::" +"If you don't mind reordering the list, sort it and then scan from the end of " +"the list, deleting duplicates as you go::" msgstr "" #: ../../faq/programming.rst:1175 msgid "" -"If all elements of the list may be used as set keys (i.e. they are all " -":term:`hashable`) this is often faster ::" +"If all elements of the list may be used as set keys (i.e. they are all :term:" +"`hashable`) this is often faster ::" msgstr "" #: ../../faq/programming.rst:1180 @@ -1744,8 +1761,8 @@ msgstr "" #: ../../faq/programming.rst:1194 msgid "" "The ``array`` module also provides methods for creating arrays of fixed " -"types with compact representations, but they are slower to index than lists." -" Also note that the Numeric extensions and others define array-like " +"types with compact representations, but they are slower to index than " +"lists. Also note that the Numeric extensions and others define array-like " "structures with various characteristics as well." msgstr "" @@ -1788,8 +1805,7 @@ msgstr "" "A razão é que replicar uma lista com ``*`` não cria cópias, ela apenas cria " "referências aos objetos existentes. O ``*3`` cria uma lista contendo 3 " "referências para a mesma lista que contém 2 itens cada. Mudanças numa linha " -"serão mostradas em todas as linhas, o que certamente não é o que você " -"deseja." +"serão mostradas em todas as linhas, o que certamente não é o que você deseja." #: ../../faq/programming.rst:1246 msgid "" @@ -1809,8 +1825,8 @@ msgstr "" #: ../../faq/programming.rst:1259 msgid "" -"Or, you can use an extension that provides a matrix datatype; `NumPy " -"`_ is the best known." +"Or, you can use an extension that provides a matrix datatype; `NumPy `_ is the best known." msgstr "" "Ou, você pode usar uma extensão que forneça um tipo de dados de Array; " "`NumPy `_ is the best known." @@ -1832,8 +1848,8 @@ msgstr "" #: ../../faq/programming.rst:1275 msgid "" "This is because of a combination of the fact that augmented assignment " -"operators are *assignment* operators, and the difference between mutable and" -" immutable objects in Python." +"operators are *assignment* operators, and the difference between mutable and " +"immutable objects in Python." msgstr "" #: ../../faq/programming.rst:1279 @@ -1874,8 +1890,8 @@ msgstr "" #: ../../faq/programming.rst:1317 msgid "" -"The exception is a bit more surprising, and even more surprising is the fact" -" that even though there was an error, the append worked::" +"The exception is a bit more surprising, and even more surprising is the fact " +"that even though there was an error, the append worked::" msgstr "" #: ../../faq/programming.rst:1323 @@ -1944,9 +1960,9 @@ msgstr "Uma alternativa para o último passo é::" msgid "" "If you find this more legible, you might prefer to use this instead of the " "final list comprehension. However, it is almost twice as slow for long " -"lists. Why? First, the ``append()`` operation has to reallocate memory, and" -" while it uses some tricks to avoid doing that each time, it still has to do" -" it occasionally, and that costs quite a bit. Second, the expression " +"lists. Why? First, the ``append()`` operation has to reallocate memory, and " +"while it uses some tricks to avoid doing that each time, it still has to do " +"it occasionally, and that costs quite a bit. Second, the expression " "\"result.append\" requires an extra attribute lookup, and third, there's a " "speed reduction from having to make all those function calls." msgstr "" @@ -1983,9 +1999,9 @@ msgstr "O que é um método?" #: ../../faq/programming.rst:1421 msgid "" -"A method is a function on some object ``x`` that you normally call as " -"``x.name(arguments...)``. Methods are defined as functions inside the class" -" definition::" +"A method is a function on some object ``x`` that you normally call as ``x." +"name(arguments...)``. Methods are defined as functions inside the class " +"definition::" msgstr "" #: ../../faq/programming.rst:1431 @@ -1995,8 +2011,8 @@ msgstr "O que é o self?" #: ../../faq/programming.rst:1433 msgid "" "Self is merely a conventional name for the first argument of a method. A " -"method defined as ``meth(self, a, b, c)`` should be called as ``x.meth(a, b," -" c)`` for some instance ``x`` of the class in which the definition occurs; " +"method defined as ``meth(self, a, b, c)`` should be called as ``x.meth(a, b, " +"c)`` for some instance ``x`` of the class in which the definition occurs; " "the called method will think it is called as ``meth(x, a, b, c)``." msgstr "" @@ -2006,8 +2022,8 @@ msgstr "Veja também :ref:`why-self`." #: ../../faq/programming.rst:1442 msgid "" -"How do I check if an object is an instance of a given class or of a subclass" -" of it?" +"How do I check if an object is an instance of a given class or of a subclass " +"of it?" msgstr "" #: ../../faq/programming.rst:1444 @@ -2015,8 +2031,8 @@ msgid "" "Use the built-in function ``isinstance(obj, cls)``. You can check if an " "object is an instance of any of a number of classes by providing a tuple " "instead of a single class, e.g. ``isinstance(obj, (class1, class2, ...))``, " -"and can also check whether an object is one of Python's built-in types, e.g." -" ``isinstance(obj, str)`` or ``isinstance(obj, (int, float, complex))``." +"and can also check whether an object is one of Python's built-in types, e.g. " +"``isinstance(obj, str)`` or ``isinstance(obj, (int, float, complex))``." msgstr "" #: ../../faq/programming.rst:1450 @@ -2044,32 +2060,32 @@ msgid "" "Delegation is an object oriented technique (also called a design pattern). " "Let's say you have an object ``x`` and want to change the behaviour of just " "one of its methods. You can create a new class that provides a new " -"implementation of the method you're interested in changing and delegates all" -" other methods to the corresponding method of ``x``." +"implementation of the method you're interested in changing and delegates all " +"other methods to the corresponding method of ``x``." msgstr "" #: ../../faq/programming.rst:1487 msgid "" "Python programmers can easily implement delegation. For example, the " -"following class implements a class that behaves like a file but converts all" -" written data to uppercase::" +"following class implements a class that behaves like a file but converts all " +"written data to uppercase::" msgstr "" #: ../../faq/programming.rst:1502 msgid "" "Here the ``UpperOut`` class redefines the ``write()`` method to convert the " -"argument string to uppercase before calling the underlying " -"``self.__outfile.write()`` method. All other methods are delegated to the " -"underlying ``self.__outfile`` object. The delegation is accomplished via " -"the ``__getattr__`` method; consult :ref:`the language reference ` for more information about controlling attribute access." +"argument string to uppercase before calling the underlying ``self._outfile." +"write()`` method. All other methods are delegated to the underlying ``self." +"_outfile`` object. The delegation is accomplished via the ``__getattr__`` " +"method; consult :ref:`the language reference ` for more " +"information about controlling attribute access." msgstr "" #: ../../faq/programming.rst:1509 msgid "" "Note that for more general cases delegation can get trickier. When " -"attributes must be set as well as retrieved, the class must define a " -":meth:`__setattr__` method too, and it must do so carefully. The basic " +"attributes must be set as well as retrieved, the class must define a :meth:" +"`__setattr__` method too, and it must do so carefully. The basic " "implementation of :meth:`__setattr__` is roughly equivalent to the " "following::" msgstr "" @@ -2094,9 +2110,9 @@ msgstr "" msgid "" "For version prior to 3.0, you may be using classic classes: For a class " "definition such as ``class Derived(Base): ...`` you can call method " -"``meth()`` defined in ``Base`` (or one of ``Base``'s base classes) as " -"``Base.meth(self, arguments...)``. Here, ``Base.meth`` is an unbound " -"method, so you need to provide the ``self`` argument." +"``meth()`` defined in ``Base`` (or one of ``Base``'s base classes) as ``Base." +"meth(self, arguments...)``. Here, ``Base.meth`` is an unbound method, so " +"you need to provide the ``self`` argument." msgstr "" #: ../../faq/programming.rst:1541 @@ -2108,8 +2124,8 @@ msgid "" "You could define an alias for the base class, assign the real base class to " "it before your class definition, and use the alias throughout your class. " "Then all you have to change is the value assigned to the alias. " -"Incidentally, this trick is also handy if you want to decide dynamically " -"(e.g. depending on availability of resources) which base class to use. " +"Incidentally, this trick is also handy if you want to decide dynamically (e." +"g. depending on availability of resources) which base class to use. " "Example::" msgstr "" @@ -2139,8 +2155,8 @@ msgstr "" #: ../../faq/programming.rst:1579 msgid "" "Caution: within a method of C, an assignment like ``self.count = 42`` " -"creates a new and unrelated instance named \"count\" in ``self``'s own dict." -" Rebinding of a class-static data name must always specify the class " +"creates a new and unrelated instance named \"count\" in ``self``'s own " +"dict. Rebinding of a class-static data name must always specify the class " "whether inside a method or not::" msgstr "" @@ -2150,8 +2166,8 @@ msgstr "Métodos estáticos são possíveis::" #: ../../faq/programming.rst:1594 msgid "" -"However, a far more straightforward way to get the effect of a static method" -" is via a simple module-level function::" +"However, a far more straightforward way to get the effect of a static method " +"is via a simple module-level function::" msgstr "" #: ../../faq/programming.rst:1600 @@ -2187,8 +2203,8 @@ msgstr "Isso não é inteiramente equivalente, mas já está bem próximo." #: ../../faq/programming.rst:1631 msgid "You could also try a variable-length argument list, e.g. ::" msgstr "" -"Você também pode tentar uma lista de argumentos de comprimento variável, por" -" exemplo::" +"Você também pode tentar uma lista de argumentos de comprimento variável, por " +"exemplo::" #: ../../faq/programming.rst:1636 msgid "The same approach works for all method definitions." @@ -2211,14 +2227,13 @@ msgstr "" #: ../../faq/programming.rst:1648 msgid "" "This doesn't guarantee privacy: an outside user can still deliberately " -"access the \"_classname__spam\" attribute, and private values are visible in" -" the object's ``__dict__``. Many Python programmers never bother to use " +"access the \"_classname__spam\" attribute, and private values are visible in " +"the object's ``__dict__``. Many Python programmers never bother to use " "private variable names at all." msgstr "" #: ../../faq/programming.rst:1655 -msgid "" -"My class defines __del__ but it is not called when I delete the object." +msgid "My class defines __del__ but it is not called when I delete the object." msgstr "" #: ../../faq/programming.rst:1657 @@ -2228,32 +2243,32 @@ msgstr "Há várias razões possíveis para isto." #: ../../faq/programming.rst:1659 msgid "" "The del statement does not necessarily call :meth:`__del__` -- it simply " -"decrements the object's reference count, and if this reaches zero " -":meth:`__del__` is called." +"decrements the object's reference count, and if this reaches zero :meth:" +"`__del__` is called." msgstr "" #: ../../faq/programming.rst:1663 msgid "" -"If your data structures contain circular links (e.g. a tree where each child" -" has a parent reference and each parent has a list of children) the " -"reference counts will never go back to zero. Once in a while Python runs an" -" algorithm to detect such cycles, but the garbage collector might run some " -"time after the last reference to your data structure vanishes, so your " -":meth:`__del__` method may be called at an inconvenient and random time. " -"This is inconvenient if you're trying to reproduce a problem. Worse, the " -"order in which object's :meth:`__del__` methods are executed is arbitrary. " -"You can run :func:`gc.collect` to force a collection, but there *are* " -"pathological cases where objects will never be collected." +"If your data structures contain circular links (e.g. a tree where each child " +"has a parent reference and each parent has a list of children) the reference " +"counts will never go back to zero. Once in a while Python runs an algorithm " +"to detect such cycles, but the garbage collector might run some time after " +"the last reference to your data structure vanishes, so your :meth:`__del__` " +"method may be called at an inconvenient and random time. This is " +"inconvenient if you're trying to reproduce a problem. Worse, the order in " +"which object's :meth:`__del__` methods are executed is arbitrary. You can " +"run :func:`gc.collect` to force a collection, but there *are* pathological " +"cases where objects will never be collected." msgstr "" #: ../../faq/programming.rst:1674 msgid "" "Despite the cycle collector, it's still a good idea to define an explicit " "``close()`` method on objects to be called whenever you're done with them. " -"The ``close()`` method can then remove attributes that refer to subobjects." -" Don't call :meth:`__del__` directly -- :meth:`__del__` should call " -"``close()`` and ``close()`` should make sure that it can be called more than" -" once for the same object." +"The ``close()`` method can then remove attributes that refer to subobjects. " +"Don't call :meth:`__del__` directly -- :meth:`__del__` should call " +"``close()`` and ``close()`` should make sure that it can be called more than " +"once for the same object." msgstr "" #: ../../faq/programming.rst:1681 @@ -2290,14 +2305,14 @@ msgid "" "The :func:`id` builtin returns an integer that is guaranteed to be unique " "during the lifetime of the object. Since in CPython, this is the object's " "memory address, it happens frequently that after an object is deleted from " -"memory, the next freshly created object is allocated at the same position in" -" memory. This is illustrated by this example:" +"memory, the next freshly created object is allocated at the same position in " +"memory. This is illustrated by this example:" msgstr "" #: ../../faq/programming.rst:1720 msgid "" -"The two ids belong to different integer objects that are created before, and" -" deleted immediately after execution of the ``id()`` call. To be sure that " +"The two ids belong to different integer objects that are created before, and " +"deleted immediately after execution of the ``id()`` call. To be sure that " "objects whose id you want to examine are still alive, create another " "reference to the object:" msgstr "" @@ -2318,8 +2333,7 @@ msgid "" "subdirectory of the directory containing the ``.py`` file. The ``.pyc`` " "file will have a filename that starts with the same name as the ``.py`` " "file, and ends with ``.pyc``, with a middle component that depends on the " -"particular ``python`` binary that created it. (See :pep:`3147` for " -"details.)" +"particular ``python`` binary that created it. (See :pep:`3147` for details.)" msgstr "" #: ../../faq/programming.rst:1746 @@ -2334,40 +2348,40 @@ msgstr "" #: ../../faq/programming.rst:1751 msgid "" "Unless the :envvar:`PYTHONDONTWRITEBYTECODE` environment variable is set, " -"creation of a .pyc file is automatic if you're importing a module and Python" -" has the ability (permissions, free space, etc...) to create a " +"creation of a .pyc file is automatic if you're importing a module and Python " +"has the ability (permissions, free space, etc...) to create a " "``__pycache__`` subdirectory and write the compiled module to that " "subdirectory." msgstr "" #: ../../faq/programming.rst:1756 msgid "" -"Running Python on a top level script is not considered an import and no " -"``.pyc`` will be created. For example, if you have a top-level module " -"``foo.py`` that imports another module ``xyz.py``, when you run ``foo`` (by " -"typing ``python foo.py`` as a shell command), a ``.pyc`` will be created for" -" ``xyz`` because ``xyz`` is imported, but no ``.pyc`` file will be created " +"Running Python on a top level script is not considered an import and no ``." +"pyc`` will be created. For example, if you have a top-level module ``foo." +"py`` that imports another module ``xyz.py``, when you run ``foo`` (by typing " +"``python foo.py`` as a shell command), a ``.pyc`` will be created for " +"``xyz`` because ``xyz`` is imported, but no ``.pyc`` file will be created " "for ``foo`` since ``foo.py`` isn't being imported." msgstr "" #: ../../faq/programming.rst:1763 msgid "" -"If you need to create a ``.pyc`` file for ``foo`` -- that is, to create a " -"``.pyc`` file for a module that is not imported -- you can, using the " -":mod:`py_compile` and :mod:`compileall` modules." +"If you need to create a ``.pyc`` file for ``foo`` -- that is, to create a ``." +"pyc`` file for a module that is not imported -- you can, using the :mod:" +"`py_compile` and :mod:`compileall` modules." msgstr "" #: ../../faq/programming.rst:1767 msgid "" -"The :mod:`py_compile` module can manually compile any module. One way is to" -" use the ``compile()`` function in that module interactively::" +"The :mod:`py_compile` module can manually compile any module. One way is to " +"use the ``compile()`` function in that module interactively::" msgstr "" #: ../../faq/programming.rst:1773 msgid "" "This will write the ``.pyc`` to a ``__pycache__`` subdirectory in the same " -"location as ``foo.py`` (or you can override that with the optional parameter" -" ``cfile``)." +"location as ``foo.py`` (or you can override that with the optional parameter " +"``cfile``)." msgstr "" #: ../../faq/programming.rst:1777 @@ -2446,8 +2460,8 @@ msgstr "bar.foo_var = foo.foo_var" #: ../../faq/programming.rst:1828 msgid "" -"The last step fails, because Python isn't done with interpreting ``foo`` yet" -" and the global symbol dictionary for ``foo`` is still empty." +"The last step fails, because Python isn't done with interpreting ``foo`` yet " +"and the global symbol dictionary for ``foo`` is still empty." msgstr "" #: ../../faq/programming.rst:1831 @@ -2462,8 +2476,8 @@ msgstr "" #: ../../faq/programming.rst:1836 msgid "" -"Guido van Rossum recommends avoiding all uses of ``from import " -"...``, and placing all code inside functions. Initializations of global " +"Guido van Rossum recommends avoiding all uses of ``from import ..." +"``, and placing all code inside functions. Initializations of global " "variables and class variables should use constants or built-in functions " "only. This means everything from an imported module is referenced as " "``.``." @@ -2526,8 +2540,8 @@ msgid "" "For reasons of efficiency as well as consistency, Python only reads the " "module file on the first time a module is imported. If it didn't, in a " "program consisting of many modules where each one imports the same basic " -"module, the basic module would be parsed and re-parsed many times. To force" -" re-reading of a changed module, do this::" +"module, the basic module would be parsed and re-parsed many times. To force " +"re-reading of a changed module, do this::" msgstr "" #: ../../faq/programming.rst:1879 @@ -2546,6 +2560,6 @@ msgstr "" #: ../../faq/programming.rst:1897 msgid "" -"The nature of the problem is made clear if you print out the \"identity\" of" -" the class objects::" +"The nature of the problem is made clear if you print out the \"identity\" of " +"the class objects::" msgstr "" diff --git a/faq/windows.po b/faq/windows.po index 5a3663a75..a40da062c 100644 --- a/faq/windows.po +++ b/faq/windows.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Raul Lima , 2019 # Hortencia_Arliane , 2019 -# +# Amanda Savluchinske , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-25 10:57+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: Hortencia_Arliane , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,8 +42,8 @@ msgstr "Como faço para executar um programa Python no Windows?" #: ../../faq/windows.rst:24 msgid "" "This is not necessarily a straightforward question. If you are already " -"familiar with running programs from the Windows command line then everything" -" will seem obvious; otherwise, you might need a little more guidance." +"familiar with running programs from the Windows command line then everything " +"will seem obvious; otherwise, you might need a little more guidance." msgstr "" "Esta não são necessariamente uma questão direta. Se já estas familiarizado " "com a execução de programas através das linha de comando do Windows, então " @@ -49,12 +52,12 @@ msgstr "" #: ../../faq/windows.rst:28 msgid "" -"Unless you use some sort of integrated development environment, you will end" -" up *typing* Windows commands into what is variously referred to as a \"DOS " -"window\" or \"Command prompt window\". Usually you can create such a window" -" from your search bar by searching for ``cmd``. You should be able to " -"recognize when you have started such a window because you will see a Windows" -" \"command prompt\", which usually looks like this:" +"Unless you use some sort of integrated development environment, you will end " +"up *typing* Windows commands into what is variously referred to as a \"DOS " +"window\" or \"Command prompt window\". Usually you can create such a window " +"from your search bar by searching for ``cmd``. You should be able to " +"recognize when you have started such a window because you will see a Windows " +"\"command prompt\", which usually looks like this:" msgstr "" "A menos que você use algum tipo de Ambiente de Desenvolvimento Integrado, " "você vai acabar digitando os comandos do Windows no que é chamado \"Windows " @@ -74,8 +77,8 @@ msgstr "" #: ../../faq/windows.rst:46 msgid "" "depending on how your computer has been set up and what else you have " -"recently done with it. Once you have started such a window, you are well on" -" the way to running Python programs." +"recently done with it. Once you have started such a window, you are well on " +"the way to running Python programs." msgstr "" "Dependendo de como seu computador foi configurado e o que mais você tem " "feito com ele recentemente. Uma vez que você tenha iniciado a janela, você " @@ -83,14 +86,13 @@ msgstr "" #: ../../faq/windows.rst:50 msgid "" -"You need to realize that your Python scripts have to be processed by another" -" program called the Python *interpreter*. The interpreter reads your " -"script, compiles it into bytecodes, and then executes the bytecodes to run " -"your program. So, how do you arrange for the interpreter to handle your " -"Python?" +"You need to realize that your Python scripts have to be processed by another " +"program called the Python *interpreter*. The interpreter reads your script, " +"compiles it into bytecodes, and then executes the bytecodes to run your " +"program. So, how do you arrange for the interpreter to handle your Python?" msgstr "" -"Você deve notar que seu código Python deve ser processado por outro programa" -" chamado Interpretador. O interpretador lê o seus código, compila em " +"Você deve notar que seu código Python deve ser processado por outro programa " +"chamado Interpretador. O interpretador lê o seus código, compila em " "bytecodes, e depois executa os bytecodes para rodar o seu programa." #: ../../faq/windows.rst:55 @@ -111,11 +113,10 @@ msgstr "Você depois deve ver algo como:" #: ../../faq/windows.rst:72 msgid "" -"You have started the interpreter in \"interactive mode\". That means you can" -" enter Python statements or expressions interactively and have them executed" -" or evaluated while you wait. This is one of Python's strongest features. " -"Check it by entering a few expressions of your choice and seeing the " -"results:" +"You have started the interpreter in \"interactive mode\". That means you can " +"enter Python statements or expressions interactively and have them executed " +"or evaluated while you wait. This is one of Python's strongest features. " +"Check it by entering a few expressions of your choice and seeing the results:" msgstr "" "Você iniciou o interpretador no \"modo interativo\". Que significa que você " "pode inserir instruções ou expressões Python interativamente e executa-las " @@ -125,22 +126,34 @@ msgstr "" #: ../../faq/windows.rst:84 msgid "" -"Many people use the interactive mode as a convenient yet highly programmable" -" calculator. When you want to end your interactive Python session, call the" -" :func:`exit` function or hold the :kbd:`Ctrl` key down while you enter a " -":kbd:`Z`, then hit the \":kbd:`Enter`\" key to get back to your Windows " -"command prompt." +"Many people use the interactive mode as a convenient yet highly programmable " +"calculator. When you want to end your interactive Python session, call the :" +"func:`exit` function or hold the :kbd:`Ctrl` key down while you enter a :kbd:" +"`Z`, then hit the \":kbd:`Enter`\" key to get back to your Windows command " +"prompt." msgstr "" +"Muitas pessoas usam o modo interativo como uma calculadora conveniente, mas " +"altamente programável. Quando quiser encerrar sua sessão interativa do " +"Python, chame a função: func: `exit` ou mantenha pressionada a tecla: kbd:` " +"Ctrl` enquanto você digita a: kbd: `Z` e pressione a tecla\": kbd: `Enter `` " +"para voltar ao prompt de comando do Windows." #: ../../faq/windows.rst:90 msgid "" -"You may also find that you have a Start-menu entry such as " -":menuselection:`Start --> Programs --> Python 3.x --> Python (command line)`" -" that results in you seeing the ``>>>`` prompt in a new window. If so, the " -"window will disappear after you call the :func:`exit` function or enter the " -":kbd:`Ctrl-Z` character; Windows is running a single \"python\" command in " -"the window, and closes it when you terminate the interpreter." -msgstr "" +"You may also find that you have a Start-menu entry such as :menuselection:" +"`Start --> Programs --> Python 3.x --> Python (command line)` that results " +"in you seeing the ``>>>`` prompt in a new window. If so, the window will " +"disappear after you call the :func:`exit` function or enter the :kbd:`Ctrl-" +"Z` character; Windows is running a single \"python\" command in the window, " +"and closes it when you terminate the interpreter." +msgstr "" +"Você também pode descobrir que você tem um item no Menu Iniciar como :" +"menuselection:`Iniciar--> Programas--> Python 3.x --> Python (linha de " +"comando)` que resultará em você vendo o prompt ``>>>`` em uma nova janela. " +"Se acontecer isso, a janela desaparecerá depois que você chamar a função :" +"func:`exit` ou inserir o caractere :kbd:`Ctrl-Z`; o Windows está executando " +"um único comando \"python\" na janela, e fecha quando você termina o " +"interpretador." #: ../../faq/windows.rst:97 msgid "" @@ -150,12 +163,19 @@ msgid "" "and is named ``hello.py``, and your command prompt is nicely opened in your " "home directory so you're seeing something similar to::" msgstr "" +"Agora que sabemos que o comando ``py`` é reconhecido, você pode dar seu " +"script Python para ele. Você terá que dar um caminho absoluto ou relativo " +"para o script Python. Vamos dizer que seu script Python está localizado no " +"seu desktop e se chama ``hello.py``, e seu prompt de comando está aberto no " +"seu diretório raiz de forma que você está vendo algo similar a::" #: ../../faq/windows.rst:106 msgid "" -"So now you'll ask the ``py`` command to give your script to Python by typing" -" ``py`` followed by your script path::" +"So now you'll ask the ``py`` command to give your script to Python by typing " +"``py`` followed by your script path::" msgstr "" +"Então agora você solicitará o comando `` py`` para fornecer seu script para " +"Python, digitando `` py`` seguido pelo seu caminho de script:" #: ../../faq/windows.rst:114 msgid "How do I make Python scripts executable?" @@ -167,10 +187,17 @@ msgid "" "extension with a file type (Python.File) and gives that file type an open " "command that runs the interpreter (``D:\\Program Files\\Python\\python.exe " "\"%1\" %*``). This is enough to make scripts executable from the command " -"prompt as 'foo.py'. If you'd rather be able to execute the script by simple" -" typing 'foo' with no extension you need to add .py to the PATHEXT " +"prompt as 'foo.py'. If you'd rather be able to execute the script by simple " +"typing 'foo' with no extension you need to add .py to the PATHEXT " "environment variable." msgstr "" +"No Windows, o instalador padrão do Python já associa a extensão .py com o " +"tipo de arquivo (Python.File) e dá àquele tipo de arquivo um comando aberto " +"que executa o interpretador (``D:\\Arquivos de Programas\\Python\\python.exe " +"\"%1\" %*``). Isso é o bastante para fazer scripts executáveis pelo prompt " +"de comando como 'foo.py'. Se você preferir executar o script simplesmente " +"digitando 'foo' sem extensão você precisa adicionar .py à variável de " +"ambiente PATHEXT." #: ../../faq/windows.rst:124 msgid "Why does Python sometimes take so long to start?" @@ -194,11 +221,18 @@ msgid "" "The problem may be caused by a misconfiguration of virus checking software " "on the problem machine. Some virus scanners have been known to introduce " "startup overhead of two orders of magnitude when the scanner is configured " -"to monitor all reads from the filesystem. Try checking the configuration of" -" virus scanning software on your systems to ensure that they are indeed " -"configured identically. McAfee, when configured to scan all file system read" -" activity, is a particular offender." -msgstr "" +"to monitor all reads from the filesystem. Try checking the configuration of " +"virus scanning software on your systems to ensure that they are indeed " +"configured identically. McAfee, when configured to scan all file system read " +"activity, is a particular offender." +msgstr "" +"O problema pode ser causado por uma desconfiguração de software antivírus na " +"máquina problemática. Alguns antivírus são conhecidos por introduzir " +"sobrecarga de duas ordens de magnitude no início quando estão configurados " +"para monitoras todas as leituras do sistema de arquivos. Tente verificar a " +"configuração do antivírus nos seus sistemas para assegurar que eles estão de " +"fato configurados identicamente. O McAfee, quando configurado para escanear " +"todo a atividade do sistema de arquivos, é um ofensor conhecido." #: ../../faq/windows.rst:141 msgid "How do I make an executable from a Python script?" @@ -212,6 +246,12 @@ msgid "" "extension for building Python 2.x-based executables, does not yet support " "Python 3 but a version that does is in development." msgstr "" +"Veja `cx_Freeze `_ para uma " +"extensão de distutils que permite criar executáveis de interface gráfica e " +"de console a partir de código Python. `py2exe `_, a " +"extensão mais popular para a criação de executáveis baseados no Python 2.x, " +"ainda não é compatível com o Python 3, mas existe uma versão em " +"desenvolvimento." #: ../../faq/windows.rst:151 msgid "Is a ``*.pyd`` file the same as a DLL?" @@ -221,11 +261,18 @@ msgstr "Um arquivo ''*.pyd'' é o mesmo que um DLL? " msgid "" "Yes, .pyd files are dll's, but there are a few differences. If you have a " "DLL named ``foo.pyd``, then it must have a function ``PyInit_foo()``. You " -"can then write Python \"import foo\", and Python will search for foo.pyd (as" -" well as foo.py, foo.pyc) and if it finds it, will attempt to call " +"can then write Python \"import foo\", and Python will search for foo.pyd (as " +"well as foo.py, foo.pyc) and if it finds it, will attempt to call " "``PyInit_foo()`` to initialize it. You do not link your .exe with foo.lib, " "as that would cause Windows to require the DLL to be present." msgstr "" +"Sim, os arquivos .pyd são dll, mas existem algumas diferenças. Se você " +"possui uma DLL chamada ``foo.pyd``, ela deve ter a função ``PyInit_foo()``. " +"Você pode escrever \"import foo\" do Python, e o Python procurará por foo." +"pyd (assim como foo.py, foo.pyc) e, se o encontrar, tentará chamar " +"``PyInit_foo()`` para inicializá-lo. Você não vincula seu arquivo .exe ao " +"arquivo foo.lib, pois isso faria com que o Windows exigisse a presença da " +"DLL." #: ../../faq/windows.rst:160 msgid "" @@ -252,18 +299,24 @@ msgstr "" #: ../../faq/windows.rst:173 msgid "" -"Do _not_ build Python into your .exe file directly. On Windows, Python must" -" be a DLL to handle importing modules that are themselves DLL's. (This is " +"Do _not_ build Python into your .exe file directly. On Windows, Python must " +"be a DLL to handle importing modules that are themselves DLL's. (This is " "the first key undocumented fact.) Instead, link to :file:`python{NN}.dll`; " "it is typically installed in ``C:\\Windows\\System``. *NN* is the Python " "version, a number such as \"33\" for Python 3.3." msgstr "" +"_Não_ compile o Python diretamente em seu arquivo .exe. No Windows, o Python " +"deve ser uma DLL para manipular os módulos de importação que são eles " +"próprios. (Este é o primeiro fato chave não documentado.) Em vez disso, " +"vincule a :file:`python{NN}.dll`; normalmente é instalado em ``C:\\Windows" +"\\System``. *NN* é a versão do Python, um número como \"33\" para o Python " +"3.3." #: ../../faq/windows.rst:179 msgid "" "You can link to Python in two different ways. Load-time linking means " -"linking against :file:`python{NN}.lib`, while run-time linking means linking" -" against :file:`python{NN}.dll`. (General note: :file:`python{NN}.lib` is " +"linking against :file:`python{NN}.lib`, while run-time linking means linking " +"against :file:`python{NN}.dll`. (General note: :file:`python{NN}.lib` is " "the so-called \"import lib\" corresponding to :file:`python{NN}.dll`. It " "merely defines symbols for the linker.)" msgstr "" @@ -274,15 +327,23 @@ msgid "" "time. Your code must load :file:`python{NN}.dll` using the Windows " "``LoadLibraryEx()`` routine. The code must also use access routines and " "data in :file:`python{NN}.dll` (that is, Python's C API's) using pointers " -"obtained by the Windows ``GetProcAddress()`` routine. Macros can make using" -" these pointers transparent to any C code that calls routines in Python's C " +"obtained by the Windows ``GetProcAddress()`` routine. Macros can make using " +"these pointers transparent to any C code that calls routines in Python's C " "API." msgstr "" +"A vinculação em tempo de execução simplifica bastante as opções de " +"vinculação; tudo acontece em tempo de execução. Seu código deve carregar :" +"file:`python{NN}.dll` usando a rotina ``LoadLibraryEx()`` do Windows. O " +"código também deve usar rotinas de acesso e dados em :file:`python{NN}.dll` " +"(ou seja, as APIs C do Python) usando ponteiros obtidos pela rotina " +"``GetProcAddress()`` do Windows. As macros podem tornar o uso desses " +"ponteiros transparente para qualquer código C que chama rotinas na API C do " +"Python." #: ../../faq/windows.rst:192 msgid "" -"Borland note: convert :file:`python{NN}.lib` to OMF format using " -"Coff2Omf.exe first." +"Borland note: convert :file:`python{NN}.lib` to OMF format using Coff2Omf." +"exe first." msgstr "" "Nota de Borland: convert :file:'python{NN}.lib' ao formato OMF usando " "Coff2Omf.exe primeiramente." @@ -304,6 +365,11 @@ msgid "" "classes, as you should, the init function will be called initleoc(). This " "initializes a mostly hidden helper class used by the shadow class." msgstr "" +"O SWIG criará uma função init (uma função C) cujo nome depende do nome do " +"módulo de extensão. Por exemplo, se o nome do módulo for leo, a função init " +"será chamada initleo(). Se você usa classes de sombra SWIG, como deveria, a " +"função init será chamada initleoc(). Isso inicializa uma classe auxiliar " +"principalmente oculta usada pela classe shadow." #: ../../faq/windows.rst:209 msgid "" @@ -311,18 +377,26 @@ msgid "" "calling the initialization function is equivalent to importing the module " "into Python! (This is the second key undocumented fact.)" msgstr "" +"O motivo pelo qual você pode vincular o código C na etapa 2 ao seu arquivo ." +"exe é que chamar a função de inicialização equivale a importar o módulo para " +"o Python! (Este é o segundo fato não documentado importante.)" #: ../../faq/windows.rst:213 msgid "" "In short, you can use the following code to initialize the Python " "interpreter with your extension module." msgstr "" +"Em suma, você pode utilizar o código a seguir para inicializar o " +"interpretador Python com seu módulo de extensão." #: ../../faq/windows.rst:224 msgid "" -"There are two problems with Python's C API which will become apparent if you" -" use a compiler other than MSVC, the compiler used to build pythonNN.dll." +"There are two problems with Python's C API which will become apparent if you " +"use a compiler other than MSVC, the compiler used to build pythonNN.dll." msgstr "" +"Existem dois problemas com a API C do Python que se tornarão aparentes se " +"você utiliza um compilador que não seja o MSVC, o compilador utilizado no " +"pythonNN.dll." #: ../../faq/windows.rst:227 msgid "" @@ -337,6 +411,8 @@ msgid "" "Problem 2: SWIG generates the following code when generating wrappers to " "void functions:" msgstr "" +"Problema 2: SWIG gera o seguinte código ao gerar envólucros para funções sem " +"retornos:" #: ../../faq/windows.rst:241 msgid "" @@ -351,6 +427,9 @@ msgid "" "automatically, though I have not been able to get this to work (I'm a " "complete SWIG newbie)." msgstr "" +"Pode ser possível usar o comando ``%typemap`` do SWIG para fazer a alteração " +"automaticamente, embora eu não tenha conseguido fazer isso funcionar (eu sou " +"um completo novato em SWIG)." #: ../../faq/windows.rst:253 msgid "" @@ -363,33 +442,54 @@ msgid "" "is a Python object (defined in your extension module) that contains read() " "and write() methods." msgstr "" +"Usar um script de shell do Python para criar uma janela do interpretador " +"Python de dentro da aplicação do Windows não é uma boa ideia; a janela " +"resultante será independente do sistema de janelas da sua aplicação. Em vez " +"disso, você (ou a classe wxPythonWindow) deve criar uma janela \"nativa\" do " +"interpretador. É fácil conectar essa janela ao interpretador Python. Você " +"pode redirecionar a E/S do Python para qualquer objeto que suporte leitura e " +"gravação; portanto, tudo que você precisa é de um objeto Python (definido no " +"seu módulo de extensão) que contenha métodos read() e write()." #: ../../faq/windows.rst:262 msgid "How do I keep editors from inserting tabs into my Python source?" msgstr "" +"Como eu impeço editores de adicionarem espaços na minha source do Python?" #: ../../faq/windows.rst:264 msgid "" -"The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`," -" recommends 4 spaces for distributed Python code; this is also the Emacs " +"The FAQ does not recommend using tabs, and the Python style guide, :pep:`8`, " +"recommends 4 spaces for distributed Python code; this is also the Emacs " "python-mode default." msgstr "" +"As perguntas frequentes não recomendam a utilização de tabulações, e o guia " +"de estilo Python, \\:pep\\:`8`, recomenda 4 espaços para código de Python " +"distribuído; esse também é o padrão do python-mode do Emacs." #: ../../faq/windows.rst:268 msgid "" "Under any editor, mixing tabs and spaces is a bad idea. MSVC is no " -"different in this respect, and is easily configured to use spaces: Take " -":menuselection:`Tools --> Options --> Tabs`, and for file type \"Default\" " +"different in this respect, and is easily configured to use spaces: Take :" +"menuselection:`Tools --> Options --> Tabs`, and for file type \"Default\" " "set \"Tab size\" and \"Indent size\" to 4, and select the \"Insert spaces\" " "radio button." msgstr "" +"Sob qualquer editor, misturar tabulações e espaços é uma má ideia. O MSVC " +"não é diferente nesse aspecto e é facilmente configurado para usar espaços: " +"Selecione :menuselection:`Tools --> Options --> Tabs` e, para o tipo de " +"arquivo \"Default\", defina \"Tab size\" e \"Indent size\" para 4 e " +"selecione o botão de opção \"Insert spaces\"." #: ../../faq/windows.rst:273 msgid "" "Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs and " -"spaces are causing problems in leading whitespace. You may also run the " -":mod:`tabnanny` module to check a directory tree in batch mode." +"spaces are causing problems in leading whitespace. You may also run the :mod:" +"`tabnanny` module to check a directory tree in batch mode." msgstr "" +"O Python levanta :exc:`IndentationError` ou :exc:`TabError` se tabulações e " +"espaços misturados estiverem causando problemas no espaço em branco à " +"esquerda. Você também pode executar o módulo :mod:`tabnanny` para verificar " +"uma árvore de diretórios no modo em lote." #: ../../faq/windows.rst:280 msgid "How do I check for a keypress without blocking?" diff --git a/glossary.po b/glossary.po index 0234dbd59..646f5c4fb 100644 --- a/glossary.po +++ b/glossary.po @@ -1,26 +1,29 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 -# Rafael Fontenelle , 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # felipe caridade , 2019 # Alexandre B A Villares, 2019 # Adorilson Bezerra , 2019 -# +# Aline Balogh , 2019 +# Rafael Fontenelle , 2020 +# Vinicius Gubiani Ferreira , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-01 03:39+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:39+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinicius Gubiani Ferreira , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,8 +44,7 @@ msgid "" "examples which can be executed interactively in the interpreter." msgstr "" "O prompt padrão do shell interativo do Python. Normalmente visto em " -"exemplos de código que podem ser executados interativamente no " -"interpretador." +"exemplos de código que podem ser executados interativamente no interpretador." #: ../../glossary.rst:14 msgid "``...``" @@ -52,8 +54,8 @@ msgstr "``...``" msgid "" "The default Python prompt of the interactive shell when entering the code " "for an indented code block, when within a pair of matching left and right " -"delimiters (parentheses, square brackets, curly braces or triple quotes), or" -" after specifying a decorator." +"delimiters (parentheses, square brackets, curly braces or triple quotes), or " +"after specifying a decorator." msgstr "" "O prompt padrão do shell interativo do Python ao inserir o código para um " "bloco de código recuado, quando dentro de um par de delimitadores " @@ -77,12 +79,12 @@ msgstr "" #: ../../glossary.rst:26 msgid "" "2to3 is available in the standard library as :mod:`lib2to3`; a standalone " -"entry point is provided as :file:`Tools/scripts/2to3`. See " -":ref:`2to3-reference`." +"entry point is provided as :file:`Tools/scripts/2to3`. See :ref:`2to3-" +"reference`." msgstr "" -"O 2to3 está disponível na biblioteca padrão como :mod:`lib2to3`; um ponto de" -" entrada é disponibilizado como :file:`Tools/scripts/2to3`. Veja " -":ref:`2to3-reference`." +"O 2to3 está disponível na biblioteca padrão como :mod:`lib2to3`; um ponto de " +"entrada é disponibilizado como :file:`Tools/scripts/2to3`. Veja :ref:`2to3-" +"reference`." #: ../../glossary.rst:29 msgid "abstract base class" @@ -91,12 +93,12 @@ msgstr "classe base abstrata" #: ../../glossary.rst:31 msgid "" "Abstract base classes complement :term:`duck-typing` by providing a way to " -"define interfaces when other techniques like :func:`hasattr` would be clumsy" -" or subtly wrong (for example with :ref:`magic methods `). " -"ABCs introduce virtual subclasses, which are classes that don't inherit from" -" a class but are still recognized by :func:`isinstance` and " -":func:`issubclass`; see the :mod:`abc` module documentation. Python comes " -"with many built-in ABCs for data structures (in the :mod:`collections.abc` " +"define interfaces when other techniques like :func:`hasattr` would be clumsy " +"or subtly wrong (for example with :ref:`magic methods `). " +"ABCs introduce virtual subclasses, which are classes that don't inherit from " +"a class but are still recognized by :func:`isinstance` and :func:" +"`issubclass`; see the :mod:`abc` module documentation. Python comes with " +"many built-in ABCs for data structures (in the :mod:`collections.abc` " "module), numbers (in the :mod:`numbers` module), streams (in the :mod:`io` " "module), import finders and loaders (in the :mod:`importlib.abc` module). " "You can create your own ABCs with the :mod:`abc` module." @@ -105,13 +107,12 @@ msgstr "" "maneira de definir interfaces quando outras técnicas, como :func:`hasattr`, " "seriam desajeitadas ou sutilmente erradas (por exemplo, com :ref:`métodos " "mágicos`). ABCs introduzem subclasses virtuais, que são classes que não " -"herdam de uma classe mas ainda são reconhecidas por :func:`isinstance` e " -":func:`issubclass`; veja a documentação do módulo :mod:`abc`. O Python vem " -"com muitas ABCs internas para estruturas de dados (no módulo " -":mod:`collections.abc`), números (no módulo :mod:`numbers`), fluxos (no " -"módulo :mod:`io`) , localizadores e carregadores de importação (no módulo " -":mod:`importlib.abc`). Você pode criar suas próprias ABCs com o módulo: " -"mod:`abc`." +"herdam de uma classe mas ainda são reconhecidas por :func:`isinstance` e :" +"func:`issubclass`; veja a documentação do módulo :mod:`abc`. O Python vem " +"com muitas ABCs internas para estruturas de dados (no módulo :mod:" +"`collections.abc`), números (no módulo :mod:`numbers`), fluxos (no módulo :" +"mod:`io`) , localizadores e carregadores de importação (no módulo :mod:" +"`importlib.abc`). Você pode criar suas próprias ABCs com o módulo: mod:`abc`." #: ../../glossary.rst:42 msgid "annotation" @@ -122,8 +123,8 @@ msgid "" "A label associated with a variable, a class attribute or a function " "parameter or return value, used by convention as a :term:`type hint`." msgstr "" -"Um rótulo associado a uma variável, um atributo de classe ou um parâmetro de" -" função ou valor de retorno, usado por convenção como: term: `type hint`." +"Um rótulo associado a uma variável, um atributo de classe ou um parâmetro de " +"função ou valor de retorno, usado por convenção como: term: `type hint`." #: ../../glossary.rst:48 msgid "" @@ -132,18 +133,18 @@ msgid "" "in the :attr:`__annotations__` special attribute of modules, classes, and " "functions, respectively." msgstr "" -"Anotações de variáveis ​​locais não podem ser acessadas em tempo de " -"execução, mas anotações de variáveis ​​globais, atributos de classe e " -"funções são armazenadas no atributo especial: attr: `__annotations__` de " -"módulos, classes e funções, respectivamente." +"Anotações de variáveis ​​locais não podem ser acessadas em tempo de execução, " +"mas anotações de variáveis ​​globais, atributos de classe e funções são " +"armazenadas no atributo especial: attr: `__annotations__` de módulos, " +"classes e funções, respectivamente." #: ../../glossary.rst:54 msgid "" -"See :term:`variable annotation`, :term:`function annotation`, :pep:`484` and" -" :pep:`526`, which describe this functionality." +"See :term:`variable annotation`, :term:`function annotation`, :pep:`484` " +"and :pep:`526`, which describe this functionality." msgstr "" -"Ver :term:`variable annotation`, :term:`function annotation`, :pep:`484` e " -":pep:`526`, que descrevem esta funcionalidade" +"Ver :term:`variable annotation`, :term:`function annotation`, :pep:`484` e :" +"pep:`526`, que descrevem esta funcionalidade" #: ../../glossary.rst:56 msgid "argument" @@ -165,16 +166,16 @@ msgid "" "following calls to :func:`complex`::" msgstr "" ":dfn:`argumento nomeado`: um argumento precedido por um identificador (por " -"exemplo, ``nome=``) na chamada de uma função ou passada como um valor em um" -" dicionário precedido por ``**``. Por exemplo, ``3`` e ``5`` são ambos " +"exemplo, ``nome=``) na chamada de uma função ou passada como um valor em um " +"dicionário precedido por ``**``. Por exemplo, ``3`` e ``5`` são ambos " "argumentos nomeados na chamada da função :func:`complex` a seguir::" #: ../../glossary.rst:69 msgid "" ":dfn:`positional argument`: an argument that is not a keyword argument. " "Positional arguments can appear at the beginning of an argument list and/or " -"be passed as elements of an :term:`iterable` preceded by ``*``. For example," -" ``3`` and ``5`` are both positional arguments in the following calls::" +"be passed as elements of an :term:`iterable` preceded by ``*``. For example, " +"``3`` and ``5`` are both positional arguments in the following calls::" msgstr "" ":dfn:`argumento posicional`: um argumento que não é um argumento nomeado. " "Argumentos posicionais podem aparecer no início da lista de argumentos e/ou " @@ -196,12 +197,12 @@ msgstr "" #: ../../glossary.rst:83 msgid "" -"See also the :term:`parameter` glossary entry, the FAQ question on :ref:`the" -" difference between arguments and parameters `, " +"See also the :term:`parameter` glossary entry, the FAQ question on :ref:`the " +"difference between arguments and parameters `, " "and :pep:`362`." msgstr "" -"Veja também o termo :term:`parâmetro` no glossário, a pergunta " -":ref:`the difference between arguments and parameters ` no glossário, a pergunta :" +"ref:`the difference between arguments and parameters ` na FAQ, e :pep:`362`." #: ../../glossary.rst:86 @@ -214,6 +215,9 @@ msgid "" "statement by defining :meth:`__aenter__` and :meth:`__aexit__` methods. " "Introduced by :pep:`492`." msgstr "" +" Um objeto que controla o ambiente visto numa instrução :keyword:`async " +"with` por meio da definição dos métodos :meth:`__aenter__` e :meth:" +"`__aexit__`. Introduzido pela :pep:`492`." #: ../../glossary.rst:91 msgid "asynchronous generator" @@ -226,6 +230,10 @@ msgid "" "that it contains :keyword:`yield` expressions for producing a series of " "values usable in an :keyword:`async for` loop." msgstr "" +" Uma função que retorna um :term:`asynchronous generator iterator`. É " +"parecida com uma função de corrotina definida com :keyword:`async def` " +"exceto pelo fato de conter instruções :keyword:`yield` para produzir uma " +"série de valores que podem ser usados em um laço :keyword:`async for`." #: ../../glossary.rst:98 msgid "" @@ -242,6 +250,8 @@ msgid "" "An asynchronous generator function may contain :keyword:`await` expressions " "as well as :keyword:`async for`, and :keyword:`async with` statements." msgstr "" +"Uma função geradora assíncrona pode conter expressões :keyword:`await` e " +"também :keyword:`async for` e :keyword:`async with`." #: ../../glossary.rst:105 msgid "asynchronous generator iterator" @@ -253,20 +263,28 @@ msgstr "Um objeto criado por uma função :term:`asynchronous generator`." #: ../../glossary.rst:109 msgid "" -"This is an :term:`asynchronous iterator` which when called using the " -":meth:`__anext__` method returns an awaitable object which will execute the " -"body of the asynchronous generator function until the next :keyword:`yield` " +"This is an :term:`asynchronous iterator` which when called using the :meth:" +"`__anext__` method returns an awaitable object which will execute the body " +"of the asynchronous generator function until the next :keyword:`yield` " "expression." msgstr "" +"Este é um :term:`iterador assíncrono` que, quando chamado usando o método :" +"meth:`__anext__`, retorna um objeto aguardável que executará o corpo da " +"função de gerador assíncrono até a próxima expressão :keyword:`yield`." #: ../../glossary.rst:114 msgid "" "Each :keyword:`yield` temporarily suspends processing, remembering the " "location execution state (including local variables and pending try-" -"statements). When the *asynchronous generator iterator* effectively resumes" -" with another awaitable returned by :meth:`__anext__`, it picks up where it " +"statements). When the *asynchronous generator iterator* effectively resumes " +"with another awaitable returned by :meth:`__anext__`, it picks up where it " "left off. See :pep:`492` and :pep:`525`." msgstr "" +"Cada :keyword:`yield` suspende temporariamente o processamento, lembrando o " +"estado de execução do local (incluindo variáveis locais e instruções de " +"tentativa pendentes). Quando o *iterador do gerador assíncrono* efetivamente " +"é retomado com outro retorno esperado por :meth:`__anext__`, ele inicia de " +"onde parou. Veja :pep:`492` e :pep:`525`." #: ../../glossary.rst:119 msgid "asynchronous iterable" @@ -278,6 +296,9 @@ msgid "" "return an :term:`asynchronous iterator` from its :meth:`__aiter__` method. " "Introduced by :pep:`492`." msgstr "" +"Um objeto que pode ser usado em uma instrução :keyword:`async for`. Deve " +"retornar um :term:`iterador assíncrono` do seu método :meth:`__aiter__`. " +"Introduzido por :pep:`492`." #: ../../glossary.rst:124 msgid "asynchronous iterator" @@ -286,11 +307,16 @@ msgstr "iterador assíncrono" #: ../../glossary.rst:126 msgid "" "An object that implements the :meth:`__aiter__` and :meth:`__anext__` " -"methods. ``__anext__`` must return an :term:`awaitable` object. " -":keyword:`async for` resolves the awaitables returned by an asynchronous " -"iterator's :meth:`__anext__` method until it raises a " -":exc:`StopAsyncIteration` exception. Introduced by :pep:`492`." +"methods. ``__anext__`` must return an :term:`awaitable` object. :keyword:" +"`async for` resolves the awaitables returned by an asynchronous iterator's :" +"meth:`__anext__` method until it raises a :exc:`StopAsyncIteration` " +"exception. Introduced by :pep:`492`." msgstr "" +"Um objeto que implementa os métodos :meth:`__aiter__` e :meth:`__anext__`. " +"``__anext__`` deve retornar um objeto :term:`aguardável `. :" +"keyword:`async for` resolve os aguardáveis retornados por um método :meth:" +"`__anext__` do iterador assíncrono até que ele levante uma exceção :exc:" +"`StopAsyncIteration`. Introduzido pela :pep:`492`." #: ../../glossary.rst:131 msgid "attribute" @@ -299,8 +325,8 @@ msgstr "atributo" #: ../../glossary.rst:133 msgid "" "A value associated with an object which is referenced by name using dotted " -"expressions. For example, if an object *o* has an attribute *a* it would be" -" referenced as *o.a*." +"expressions. For example, if an object *o* has an attribute *a* it would be " +"referenced as *o.a*." msgstr "" "Um valor associado a um objeto que é referenciado pelo nome separado por um " "ponto. Por exemplo, se um objeto *o* tem um atributo *a* esse seria " @@ -312,10 +338,13 @@ msgstr "aguardável" #: ../../glossary.rst:138 msgid "" -"An object that can be used in an :keyword:`await` expression. Can be a " -":term:`coroutine` or an object with an :meth:`__await__` method. See also " -":pep:`492`." +"An object that can be used in an :keyword:`await` expression. Can be a :" +"term:`coroutine` or an object with an :meth:`__await__` method. See also :" +"pep:`492`." msgstr "" +"Um objeto que pode ser usado em uma expressão :keyword:`await`. Pode ser " +"uma :term:`coroutine` ou um objeto com um método :meth:`__await__`. Veja " +"também a :pep:`492`." #: ../../glossary.rst:141 msgid "BDFL" @@ -323,9 +352,12 @@ msgstr "BDFL" #: ../../glossary.rst:143 msgid "" -"Benevolent Dictator For Life, a.k.a. `Guido van Rossum " -"`_, Python's creator." +"Benevolent Dictator For Life, a.k.a. `Guido van Rossum `_, Python's creator." msgstr "" +"Abreviação da expressão da língua inglesa \"Benevolent Dictator for Life" +"\" (em português, \"Ditador Benevolente Vitalício\"), referindo-se a `Guido " +"van Rossum `_, criador do Python." #: ../../glossary.rst:145 msgid "binary file" @@ -335,40 +367,60 @@ msgstr "arquivo binário" msgid "" "A :term:`file object` able to read and write :term:`bytes-like objects " "`. Examples of binary files are files opened in binary " -"mode (``'rb'``, ``'wb'`` or ``'rb+'``), :data:`sys.stdin.buffer`, " -":data:`sys.stdout.buffer`, and instances of :class:`io.BytesIO` and " -":class:`gzip.GzipFile`." +"mode (``'rb'``, ``'wb'`` or ``'rb+'``), :data:`sys.stdin.buffer`, :data:`sys." +"stdout.buffer`, and instances of :class:`io.BytesIO` and :class:`gzip." +"GzipFile`." msgstr "" +"Um :term:`objeto arquivo ` capaz de ler e gravar em :term:" +"`objetos byte ou similar `. Exemplos de arquivos binários " +"são arquivos abertos no modo binário (``'rb'``, ``'wb'`` ou ``'rb+'``), :" +"data:`sys.stdin.buffer`, :data:`sys.stdout.buffer` e instâncias de :class:" +"`io.BytesIO` e :class:`gzip.GzipFile`." #: ../../glossary.rst:154 msgid "" -"See also :term:`text file` for a file object able to read and write " -":class:`str` objects." +"See also :term:`text file` for a file object able to read and write :class:" +"`str` objects." msgstr "" +"Veja também :term:`arquivo texto ` para um arquivo objeto capaz " +"de ler e gravar em objetos :class:`str`." #: ../../glossary.rst:156 msgid "bytes-like object" -msgstr "" +msgstr "objeto byte ou similar" #: ../../glossary.rst:158 msgid "" -"An object that supports the :ref:`bufferobjects` and can export a " -"C-:term:`contiguous` buffer. This includes all :class:`bytes`, " -":class:`bytearray`, and :class:`array.array` objects, as well as many common" -" :class:`memoryview` objects. Bytes-like objects can be used for various " -"operations that work with binary data; these include compression, saving to " -"a binary file, and sending over a socket." +"An object that supports the :ref:`bufferobjects` and can export a C-:term:" +"`contiguous` buffer. This includes all :class:`bytes`, :class:`bytearray`, " +"and :class:`array.array` objects, as well as many common :class:`memoryview` " +"objects. Bytes-like objects can be used for various operations that work " +"with binary data; these include compression, saving to a binary file, and " +"sending over a socket." msgstr "" +"Um objeto que suporta o :ref:`bufferobjects` e pode exportar um buffer C :" +"term:`contíguo `. Isso inclui todos os objetos :class:`bytes`, :" +"class:`bytearray` e :class:`array.array`, além de muitos objetos comuns :" +"class:`memoryview`. Objetos byte ou similar podem ser usados para várias " +"operações que funcionam com dados binários; isso inclui compactação, " +"salvamento em um arquivo binário e envio por um soquete." #: ../../glossary.rst:165 msgid "" -"Some operations need the binary data to be mutable. The documentation often" -" refers to these as \"read-write bytes-like objects\". Example mutable " -"buffer objects include :class:`bytearray` and a :class:`memoryview` of a " -":class:`bytearray`. Other operations require the binary data to be stored in" -" immutable objects (\"read-only bytes-like objects\"); examples of these " +"Some operations need the binary data to be mutable. The documentation often " +"refers to these as \"read-write bytes-like objects\". Example mutable " +"buffer objects include :class:`bytearray` and a :class:`memoryview` of a :" +"class:`bytearray`. Other operations require the binary data to be stored in " +"immutable objects (\"read-only bytes-like objects\"); examples of these " "include :class:`bytes` and a :class:`memoryview` of a :class:`bytes` object." msgstr "" +"Algumas operações precisam que os dados binários sejam mutáveis. A " +"documentação geralmente se refere a eles como \"objetos byte ou similiar " +"para leitura-escrita\". Exemplos de objetos de buffer mutável incluem :class:" +"`bytearray` e um :class:`memoryview` de um :class:`bytearray`. Outras " +"operações exigem que os dados binários sejam armazenados em objetos " +"imutáveis (\"objetos byte ou similar para somente leitura\"); exemplos disso " +"incluem :class:`bytes` e a :class:`memoryview` de um objeto :class:`bytes`." #: ../../glossary.rst:173 msgid "bytecode" @@ -376,14 +428,14 @@ msgstr "bytecode" #: ../../glossary.rst:175 msgid "" -"Python source code is compiled into bytecode, the internal representation of" -" a Python program in the CPython interpreter. The bytecode is also cached " -"in ``.pyc`` files so that executing the same file is faster the second time " -"(recompilation from source to bytecode can be avoided). This \"intermediate" -" language\" is said to run on a :term:`virtual machine` that executes the " +"Python source code is compiled into bytecode, the internal representation of " +"a Python program in the CPython interpreter. The bytecode is also cached in " +"``.pyc`` files so that executing the same file is faster the second time " +"(recompilation from source to bytecode can be avoided). This \"intermediate " +"language\" is said to run on a :term:`virtual machine` that executes the " "machine code corresponding to each bytecode. Do note that bytecodes are not " -"expected to work between different Python virtual machines, nor to be stable" -" between Python releases." +"expected to work between different Python virtual machines, nor to be stable " +"between Python releases." msgstr "" " O código-fonte Python é compilado para bytecode, a representação interna\n" " de um programa em Python no interpretador CPython. O bytecode também é\n" @@ -397,8 +449,8 @@ msgstr "" #: ../../glossary.rst:185 msgid "" -"A list of bytecode instructions can be found in the documentation for " -":ref:`the dis module `." +"A list of bytecode instructions can be found in the documentation for :ref:" +"`the dis module `." msgstr "" " Uma lista de instruções bytecode pode ser encontrada na documentação\n" " para :ref:`o módulo dis `." @@ -425,6 +477,8 @@ msgid "" "A variable defined in a class and intended to be modified only at class " "level (i.e., not in an instance of the class)." msgstr "" +"Uma variável definida em uma classe e destinada a ser modificada apenas no " +"nível da classe (ou seja, não em uma instância da classe)." #: ../../glossary.rst:196 msgid "coercion" @@ -435,12 +489,21 @@ msgid "" "The implicit conversion of an instance of one type to another during an " "operation which involves two arguments of the same type. For example, " "``int(3.15)`` converts the floating point number to the integer ``3``, but " -"in ``3+4.5``, each argument is of a different type (one int, one float), and" -" both must be converted to the same type before they can be added or it will" -" raise a :exc:`TypeError`. Without coercion, all arguments of even " +"in ``3+4.5``, each argument is of a different type (one int, one float), and " +"both must be converted to the same type before they can be added or it will " +"raise a :exc:`TypeError`. Without coercion, all arguments of even " "compatible types would have to be normalized to the same value by the " "programmer, e.g., ``float(3)+4.5`` rather than just ``3+4.5``." msgstr "" +"A conversão implícita de uma instância de um tipo para outro durante uma " +"operação que envolve dois argumentos do mesmo tipo. Por exemplo, " +"``int(3.15)`` converte o número do ponto flutuante no número inteiro ``3``, " +"mas em ``3+4.5``, cada argumento é de um tipo diferente (um int, um float), " +"e ambos devem ser convertidos para o mesmo tipo antes de poderem ser " +"adicionados ou isso levantará um :exc:`TypeError`. Sem coerção, todos os " +"argumentos de tipos compatíveis teriam que ser normalizados com o mesmo " +"valor pelo programador, por exemplo, ``float(3)+4.5`` em vez de apenas " +"``3+4.5``." #: ../../glossary.rst:206 msgid "complex number" @@ -455,9 +518,8 @@ msgid "" "support for complex numbers, which are written with this latter notation; " "the imaginary part is written with a ``j`` suffix, e.g., ``3+1j``. To get " "access to complex equivalents of the :mod:`math` module, use :mod:`cmath`. " -"Use of complex numbers is a fairly advanced mathematical feature. If you're" -" not aware of a need for them, it's almost certain you can safely ignore " -"them." +"Use of complex numbers is a fairly advanced mathematical feature. If you're " +"not aware of a need for them, it's almost certain you can safely ignore them." msgstr "" " Uma extensão ao familiar sistema de números reais em que todos os números\n" " são expressos como uma soma de uma parte real e uma parte imaginária.\n" @@ -477,8 +539,8 @@ msgstr "gerenciador de contexto" #: ../../glossary.rst:220 msgid "" -"An object which controls the environment seen in a :keyword:`with` statement" -" by defining :meth:`__enter__` and :meth:`__exit__` methods. See :pep:`343`." +"An object which controls the environment seen in a :keyword:`with` statement " +"by defining :meth:`__enter__` and :meth:`__exit__` methods. See :pep:`343`." msgstr "" " Um objeto que controla o ambiente visto numa instrução :keyword:`with`\n" " por meio da definição dos métodos :meth:`__enter__` e :meth:`__exit__`.\n" @@ -486,17 +548,24 @@ msgstr "" #: ../../glossary.rst:223 msgid "context variable" -msgstr "" +msgstr "variável de contexto" #: ../../glossary.rst:225 msgid "" -"A variable which can have different values depending on its context. This is" -" similar to Thread-Local Storage in which each execution thread may have a " +"A variable which can have different values depending on its context. This is " +"similar to Thread-Local Storage in which each execution thread may have a " "different value for a variable. However, with context variables, there may " "be several contexts in one execution thread and the main usage for context " "variables is to keep track of variables in concurrent asynchronous tasks. " "See :mod:`contextvars`." msgstr "" +"Uma variável que pode ter valores diferentes, dependendo do seu contexto. " +"Isso é semelhante ao armazenamento local do encadeamento, no qual cada " +"encadeamento de execução pode ter um valor diferente para uma variável. No " +"entanto, com variáveis de contexto, pode haver vários contextos em um " +"encadeamento de execução e o principal uso para variáveis de contexto é " +"acompanhar as variáveis em tarefas assíncronas simultâneas. Veja :mod:" +"`contextvars`." #: ../../glossary.rst:232 msgid "contiguous" @@ -506,12 +575,19 @@ msgstr "contíguo" msgid "" "A buffer is considered contiguous exactly if it is either *C-contiguous* or " "*Fortran contiguous*. Zero-dimensional buffers are C and Fortran " -"contiguous. In one-dimensional arrays, the items must be laid out in memory" -" next to each other, in order of increasing indexes starting from zero. In " -"multidimensional C-contiguous arrays, the last index varies the fastest when" -" visiting items in order of memory address. However, in Fortran contiguous " +"contiguous. In one-dimensional arrays, the items must be laid out in memory " +"next to each other, in order of increasing indexes starting from zero. In " +"multidimensional C-contiguous arrays, the last index varies the fastest when " +"visiting items in order of memory address. However, in Fortran contiguous " "arrays, the first index varies the fastest." msgstr "" +"Um buffer é considerado contíguo exatamente se for *contíguo C * ou " +"*contíguo Fortran *. Os buffers de dimensão zero são contíguos C e Fortran. " +"Em matrizes unidimensionais, os itens devem ser dispostos na memória " +"próximos um do outro, em ordem crescente de índices, começando do zero. Em " +"matrizes multidimensionais contíguas C, o último índice varia mais " +"rapidamente ao visitar itens em ordem de endereço de memória. No entanto, " +"nas matrizes contíguas do Fortran, o primeiro índice varia mais rapidamente." #: ../../glossary.rst:244 msgid "coroutine" @@ -524,6 +600,10 @@ msgid "" "entered, exited, and resumed at many different points. They can be " "implemented with the :keyword:`async def` statement. See also :pep:`492`." msgstr "" +"Coroutines são uma forma mais generalizada de sub-rotinas. Sub-routinas tem " +"a entrada iniciada em um ponto, e a saída em outro ponto. Coroutines podem " +"entrar, sair, e continuar em muitos pontos diferentes. Elas podem ser " +"implementadas com a instrução :keyword:`async def`. Veja também :pep:`492`." #: ../../glossary.rst:251 msgid "coroutine function" @@ -532,10 +612,14 @@ msgstr "função de co-rotina" #: ../../glossary.rst:253 msgid "" "A function which returns a :term:`coroutine` object. A coroutine function " -"may be defined with the :keyword:`async def` statement, and may contain " -":keyword:`await`, :keyword:`async for`, and :keyword:`async with` keywords." -" These were introduced by :pep:`492`." +"may be defined with the :keyword:`async def` statement, and may contain :" +"keyword:`await`, :keyword:`async for`, and :keyword:`async with` keywords. " +"These were introduced by :pep:`492`." msgstr "" +"Uma função que retorna um objeto do tipo :term:`coroutine`. Uma função " +"coroutine pode ser definida com a instrução :keyword:`async def`, e pode " +"conter as palavras chaves :keyword:`await`, :keyword:`async for`, e :keyword:" +"`async with`. Isso foi introduzido pela :pep:`492`." #: ../../glossary.rst:258 msgid "CPython" @@ -544,8 +628,8 @@ msgstr "CPython" #: ../../glossary.rst:260 msgid "" "The canonical implementation of the Python programming language, as " -"distributed on `python.org `_. The term \"CPython\"" -" is used when necessary to distinguish this implementation from others such " +"distributed on `python.org `_. The term \"CPython\" " +"is used when necessary to distinguish this implementation from others such " "as Jython or IronPython." msgstr "" " A implementação canônica da linguagem de programação Python, como " @@ -578,11 +662,11 @@ msgstr "" #: ../../glossary.rst:281 msgid "" "The same concept exists for classes, but is less commonly used there. See " -"the documentation for :ref:`function definitions ` and :ref:`class" -" definitions ` for more about decorators." +"the documentation for :ref:`function definitions ` and :ref:`class " +"definitions ` for more about decorators." msgstr "" -"O mesmo conceito existe para as classes, mas não é comumente utilizado. Veja" -" a documentação de :ref:`function definitions ` e :ref:`class " +"O mesmo conceito existe para as classes, mas não é comumente utilizado. Veja " +"a documentação de :ref:`function definitions ` e :ref:`class " "definitions ` para obter mais informações sobre decoradores." #: ../../glossary.rst:284 @@ -591,18 +675,20 @@ msgstr "descritor" #: ../../glossary.rst:286 msgid "" -"Any object which defines the methods :meth:`__get__`, :meth:`__set__`, or " -":meth:`__delete__`. When a class attribute is a descriptor, its special " +"Any object which defines the methods :meth:`__get__`, :meth:`__set__`, or :" +"meth:`__delete__`. When a class attribute is a descriptor, its special " "binding behavior is triggered upon attribute lookup. Normally, using *a.b* " "to get, set or delete an attribute looks up the object named *b* in the " "class dictionary for *a*, but if *b* is a descriptor, the respective " -"descriptor method gets called. Understanding descriptors is a key to a deep" -" understanding of Python because they are the basis for many features " -"including functions, methods, properties, class methods, static methods, and" -" reference to super classes." -msgstr "" -"Qualquer objeto *new-style* que define os métodos :meth:`__get__`, .. XXX: traduzir ou manter \"objeto *new-style*\"?\n" -" :meth:`__set__`, ou :meth:`__delete__`. Quando um atributo de classe é .. XXX: revisar contexto\n" +"descriptor method gets called. Understanding descriptors is a key to a deep " +"understanding of Python because they are the basis for many features " +"including functions, methods, properties, class methods, static methods, and " +"reference to super classes." +msgstr "" +"Qualquer objeto *new-style* que define os métodos :meth:`__get__`, .. XXX: " +"traduzir ou manter \"objeto *new-style*\"?\n" +" :meth:`__set__`, ou :meth:`__delete__`. Quando um atributo de classe é .. " +"XXX: revisar contexto\n" " um descritor, seu comportamento especial associado é disparado no acesso\n" " a um atributo. Normalmente, ao se utilizar *a.b* para se obter, atribuir\n" " ou excluir um atributo dispara uma busca no objeto chamado *b* no\n" @@ -616,8 +702,8 @@ msgstr "" msgid "" "For more information about descriptors' methods, see :ref:`descriptors`." msgstr "" -"Para obter mais informações sobre os métodos dos descritores, veja: " -":ref:`descriptors`." +"Para obter mais informações sobre os métodos dos descritores, veja: :ref:" +"`descriptors`." #: ../../glossary.rst:297 msgid "dictionary" @@ -626,13 +712,13 @@ msgstr "dicionário" #: ../../glossary.rst:299 msgid "" "An associative array, where arbitrary keys are mapped to values. The keys " -"can be any object with :meth:`__hash__` and :meth:`__eq__` methods. Called a" -" hash in Perl." +"can be any object with :meth:`__hash__` and :meth:`__eq__` methods. Called a " +"hash in Perl." msgstr "" "Um Array associativo em que chaves arbitrárias são mapeadas para valores. " -"As chaves podem ser quaisquer objetos que possuam os métodos " -":meth:`__hash__` e :meth:`__eq__`. Dicionários são estruturas chamadas de " -"hash na linguagem Perl." +"As chaves podem ser quaisquer objetos que possuam os métodos :meth:" +"`__hash__` e :meth:`__eq__`. Dicionários são estruturas chamadas de hash na " +"linguagem Perl." #: ../../glossary.rst:302 msgid "dictionary view" @@ -640,18 +726,18 @@ msgstr "visualização de dicionário" #: ../../glossary.rst:304 msgid "" -"The objects returned from :meth:`dict.keys`, :meth:`dict.values`, and " -":meth:`dict.items` are called dictionary views. They provide a dynamic view " -"on the dictionary’s entries, which means that when the dictionary changes, " -"the view reflects these changes. To force the dictionary view to become a " -"full list use ``list(dictview)``. See :ref:`dict-views`." +"The objects returned from :meth:`dict.keys`, :meth:`dict.values`, and :meth:" +"`dict.items` are called dictionary views. They provide a dynamic view on the " +"dictionary’s entries, which means that when the dictionary changes, the view " +"reflects these changes. To force the dictionary view to become a full list " +"use ``list(dictview)``. See :ref:`dict-views`." msgstr "" -"Os objetos retornados por :meth:`dict.keys`, :meth:`dict.values` e " -":meth:`dict.items` são chamados de Views de Dicionário. Eles fornecem uma " -"visualização dinâmica das entradas do dicionário, o que significa que quando" -" o dicionário é alterado, a View reflete essas alterações. Para forçar a " -"View do dicionário a se tornar uma lista completa use ``list(dictview)``. " -"Veja: ref:`dict-views`." +"Os objetos retornados por :meth:`dict.keys`, :meth:`dict.values` e :meth:" +"`dict.items` são chamados de Views de Dicionário. Eles fornecem uma " +"visualização dinâmica das entradas do dicionário, o que significa que quando " +"o dicionário é alterado, a View reflete essas alterações. Para forçar a View " +"do dicionário a se tornar uma lista completa use ``list(dictview)``. Veja: " +"ref:`dict-views`." #: ../../glossary.rst:310 msgid "docstring" @@ -668,8 +754,8 @@ msgstr "" "Uma string literal que aparece como primeira expressão numa classe, função " "ou módulo. Ainda que sejam ignoradas quando a suíte é executada, é " "reconhecida pelo compilador que a coloca no atributo :attr:`__doc__` da " -"classe, função ou módulo que a encapsula. Como ficam disponíveis por meio de" -" introspecção, docstrings são o lugar canônico para documentação do objeto." +"classe, função ou módulo que a encapsula. Como ficam disponíveis por meio de " +"introspecção, docstrings são o lugar canônico para documentação do objeto." #: ../../glossary.rst:318 msgid "duck-typing" @@ -679,17 +765,18 @@ msgstr "duck-typing (tipagem pato)" msgid "" "A programming style which does not look at an object's type to determine if " "it has the right interface; instead, the method or attribute is simply " -"called or used (\"If it looks like a duck and quacks like a duck, it must be" -" a duck.\") By emphasizing interfaces rather than specific types, well-" -"designed code improves its flexibility by allowing polymorphic substitution." -" Duck-typing avoids tests using :func:`type` or :func:`isinstance`. (Note," -" however, that duck-typing can be complemented with :term:`abstract base " -"classes `.) Instead, it typically employs " -":func:`hasattr` tests or :term:`EAFP` programming." +"called or used (\"If it looks like a duck and quacks like a duck, it must be " +"a duck.\") By emphasizing interfaces rather than specific types, well-" +"designed code improves its flexibility by allowing polymorphic " +"substitution. Duck-typing avoids tests using :func:`type` or :func:" +"`isinstance`. (Note, however, that duck-typing can be complemented with :" +"term:`abstract base classes `.) Instead, it typically " +"employs :func:`hasattr` tests or :term:`EAFP` programming." msgstr "" " Um estilo de programação que não verifica o tipo do objeto para determinar\n" " se ele possui a interface correta; em vez disso, o método ou atributo é\n" -" simplesmente chamado ou utilizado (\"Se se parece com um pato e grasna como\n" +" simplesmente chamado ou utilizado (\"Se se parece com um pato e grasna " +"como\n" " um pato, então deve ser um pato.\") Enfatizando interfaces ao invés de\n" " tipos específicos, o código bem desenvolvido aprimora sua flexibilidade\n" " por permitir substituição polimórfica. Tipagem pato evita necessidade de\n" @@ -731,9 +818,16 @@ msgid "" "attribute access, operators or function calls which all return a value. In " "contrast to many other languages, not all language constructs are " "expressions. There are also :term:`statement`\\s which cannot be used as " -"expressions, such as :keyword:`while`. Assignments are also statements, not" -" expressions." +"expressions, such as :keyword:`while`. Assignments are also statements, not " +"expressions." msgstr "" +"Uma parte da sintaxe que pode ser avaliada para algum valor. Em outras " +"palavras, uma expressão é a acumulação de elementos de expressão como " +"literais, nomes, atributos de acesso, operadores ou chamadas de funções, " +"todos os quais retornam um valor. Em contraste com muitas outras linguagens, " +"nem todas as contruções de linguagem são expressões. Também existem :term:" +"`statement`, os quais não podem ser usadas como expressões, como por " +"exemplo :keyword:`while`. Atribuições também são instruções, não expressões." #: ../../glossary.rst:346 msgid "extension module" @@ -741,11 +835,11 @@ msgstr "módulo de extensão" #: ../../glossary.rst:348 msgid "" -"A module written in C or C++, using Python's C API to interact with the core" -" and with user code." +"A module written in C or C++, using Python's C API to interact with the core " +"and with user code." msgstr "" -"Um módulo escrito em C ou C++, usando a API C de Python para interagir tanto" -" com código de usuário quanto do núcleo." +"Um módulo escrito em C ou C++, usando a API C de Python para interagir tanto " +"com código de usuário quanto do núcleo." #: ../../glossary.rst:350 msgid "f-string" @@ -753,13 +847,13 @@ msgstr "f-string" #: ../../glossary.rst:352 msgid "" -"String literals prefixed with ``'f'`` or ``'F'`` are commonly called " -"\"f-strings\" which is short for :ref:`formatted string literals " -"`. See also :pep:`498`." +"String literals prefixed with ``'f'`` or ``'F'`` are commonly called \"f-" +"strings\" which is short for :ref:`formatted string literals `. " +"See also :pep:`498`." msgstr "" -"Literais string prefixadas com ``'f'`` ou ``'F'`` são conhecidas como " -"\"f-strings\" que é uma abreviação de :ref:`formatted string literals`. Veja" -" também :pep:`498`." +"Literais string prefixadas com ``'f'`` ou ``'F'`` são conhecidas como \"f-" +"strings\" que é uma abreviação de :ref:`formatted string literals`. Veja " +"também :pep:`498`." #: ../../glossary.rst:355 msgid "file object" @@ -770,30 +864,30 @@ msgid "" "An object exposing a file-oriented API (with methods such as :meth:`read()` " "or :meth:`write()`) to an underlying resource. Depending on the way it was " "created, a file object can mediate access to a real on-disk file or to " -"another type of storage or communication device (for example standard " -"input/output, in-memory buffers, sockets, pipes, etc.). File objects are " -"also called :dfn:`file-like objects` or :dfn:`streams`." -msgstr "" -"Um objeto que expõe uma API orientada a arquivos (com métodos tais como " -":meth:`read()` ou :meth:`write()`) para um recurso subjacente. Dependendo da" -" maneira como foi criado, um objeto arquivo pode mediar o acesso a um " -"arquivo real no disco ou outro tipo de dispositivo de armazenamento ou de " +"another type of storage or communication device (for example standard input/" +"output, in-memory buffers, sockets, pipes, etc.). File objects are also " +"called :dfn:`file-like objects` or :dfn:`streams`." +msgstr "" +"Um objeto que expõe uma API orientada a arquivos (com métodos tais como :" +"meth:`read()` ou :meth:`write()`) para um recurso subjacente. Dependendo da " +"maneira como foi criado, um objeto arquivo pode mediar o acesso a um arquivo " +"real no disco ou outro tipo de dispositivo de armazenamento ou de " "comunicação (por exemplo a entrada/saída padrão, buffers em memória, " "sockets, pipes, etc.). Objetos arquivo também são chamados de :dfn:`file-" "like objects` ou :dfn:`streams`." #: ../../glossary.rst:365 msgid "" -"There are actually three categories of file objects: raw :term:`binary files" -" `, buffered :term:`binary files ` and :term:`text" -" files `. Their interfaces are defined in the :mod:`io` module. " +"There are actually three categories of file objects: raw :term:`binary files " +"`, buffered :term:`binary files ` and :term:`text " +"files `. Their interfaces are defined in the :mod:`io` module. " "The canonical way to create a file object is by using the :func:`open` " "function." msgstr "" "Atualmente há três categorias de objetos arquivo: arquivos binários raw, .. " "XXX: sugestões para \"raw\" e \"bufferizados\"? arquivos binários " -"bufferizados e arquivos texto. Suas interfaces estão definidas no módulo " -":mod:`io`. A forma canônica de se criar um objeto arquivo é por meio da " +"bufferizados e arquivos texto. Suas interfaces estão definidas no módulo :" +"mod:`io`. A forma canônica de se criar um objeto arquivo é por meio da " "função :func:`open`." #: ../../glossary.rst:370 @@ -814,8 +908,8 @@ msgid "" "imported." msgstr "" " Um objeto que tenta encontrar o :term:`loader` para um módulo. Ele deve .. " -"XXX: manter ou traduzir \"finder\"? implementar um método chamado " -":meth:`find_module`. Veja :pep:`302` para mais detalhes." +"XXX: manter ou traduzir \"finder\"? implementar um método chamado :meth:" +"`find_module`. Veja :pep:`302` para mais detalhes." #: ../../glossary.rst:378 msgid "" @@ -823,6 +917,9 @@ msgid "" "` for use with :data:`sys.meta_path`, and :term:`path " "entry finders ` for use with :data:`sys.path_hooks`." msgstr "" +"Desde o Python 3.3, existem dois tipos de localizadores: :term:`meta path " +"finders ` para uso com :data:`sys.meta_path`, e :term:" +"`path entry finders ` para uso com :data:`sys.path_hooks`." #: ../../glossary.rst:382 msgid "See :pep:`302`, :pep:`420` and :pep:`451` for much more detail." @@ -855,8 +952,8 @@ msgstr "function (função)" msgid "" "A series of statements which returns some value to a caller. It can also be " "passed zero or more :term:`arguments ` which may be used in the " -"execution of the body. See also :term:`parameter`, :term:`method`, and the " -":ref:`function` section." +"execution of the body. See also :term:`parameter`, :term:`method`, and the :" +"ref:`function` section." msgstr "" " Um conjunto de instruções que devolve algum valor para quem a invoca.\n" " Uma função pode receber zero ou mais argumentos que podem ser usados na\n" @@ -876,8 +973,8 @@ msgid "" "for example, this function is expected to take two :class:`int` arguments " "and is also expected to have an :class:`int` return value::" msgstr "" -"Anotações de função são comumente usados por :term:`type hints `:" -" por exemplo, essa função espera receber dois argumentos :class:`int` e " +"Anotações de função são comumente usados por :term:`type hints `: " +"por exemplo, essa função espera receber dois argumentos :class:`int` e " "também é esperado que devolva um valor :class:`int`::" #: ../../glossary.rst:408 @@ -927,6 +1024,10 @@ msgid "" "that is able to detect and break reference cycles. The garbage collector " "can be controlled using the :mod:`gc` module." msgstr "" +"O processo de liberar a memória quando ela não é mais utilizada. Python " +"executa a liberação da memória através da contagem de referências e um " +"coletor de lixo cíclico que é capaz de detectar e interromper referências " +"cíclicas. O coletor de lixo pode ser controlado usando o módulo :mod:`gc`." #: ../../glossary.rst:432 msgid "generator" @@ -972,8 +1073,8 @@ msgstr "" "Cada :keyword:`yield` suspende temporariamente o processamento, memorizando " "o estado da execução local (incluindo variáveis locais e instruções try " "pendentes). Quando o *iterador gerador* retorna, ele se recupera do último " -"ponto onde estava (em contrapartida as funções que iniciam uma nova execução" -" a cada vez que são invocadas)." +"ponto onde estava (em contrapartida as funções que iniciam uma nova execução " +"a cada vez que são invocadas)." #: ../../glossary.rst:453 msgid "generator expression" @@ -982,10 +1083,14 @@ msgstr "generator expression" #: ../../glossary.rst:455 msgid "" "An expression that returns an iterator. It looks like a normal expression " -"followed by a :keyword:`!for` clause defining a loop variable, range, and an" -" optional :keyword:`!if` clause. The combined expression generates values " +"followed by a :keyword:`!for` clause defining a loop variable, range, and an " +"optional :keyword:`!if` clause. The combined expression generates values " "for an enclosing function::" msgstr "" +"Uma expressão que retorna um iterador. Parece uma expressão normal, seguido " +"de uma cláusula :keyword:`!for` definindo uma variável de loop, um range, e " +"uma cláusula :keyword:`!if` opcional. A expressão combinada gera valores " +"para uma função encapsuladora::" #: ../../glossary.rst:462 msgid "generic function" @@ -997,12 +1102,17 @@ msgid "" "for different types. Which implementation should be used during a call is " "determined by the dispatch algorithm." msgstr "" +"Uma função composta por multiplas funções implementando a mesma operação " +"para diferentes tipos. Qual implementação deverá ser usada durante a " +"execução é determinada pelo algoritmo de despacho." #: ../../glossary.rst:468 msgid "" -"See also the :term:`single dispatch` glossary entry, the " -":func:`functools.singledispatch` decorator, and :pep:`443`." +"See also the :term:`single dispatch` glossary entry, the :func:`functools." +"singledispatch` decorator, and :pep:`443`." msgstr "" +"Veja também a entrada :term:`single dispatch` no glossário, o decorador :" +"func:`functools.singledispatch`, e a :pep:`443`." #: ../../glossary.rst:471 msgid "GIL" @@ -1037,9 +1147,9 @@ msgstr "" #: ../../glossary.rst:485 msgid "" "However, some extension modules, either standard or third-party, are " -"designed so as to release the GIL when doing computationally-intensive tasks" -" such as compression or hashing. Also, the GIL is always released when " -"doing I/O." +"designed so as to release the GIL when doing computationally-intensive tasks " +"such as compression or hashing. Also, the GIL is always released when doing " +"I/O." msgstr "" " No entanto, alguns módulos de extensão, tanto da biblioteca padrão quanto\n" " de terceiros, são desenvolvidos de forma a liberar o GIL ao realizar\n" @@ -1063,7 +1173,7 @@ msgstr "" #: ../../glossary.rst:496 msgid "hash-based pyc" -msgstr "" +msgstr "pyc baseado em hash" #: ../../glossary.rst:498 msgid "" @@ -1071,6 +1181,9 @@ msgid "" "of the corresponding source file to determine its validity. See :ref:`pyc-" "invalidation`." msgstr "" +"Um arquivo de cache em bytecode que usa hash ao invés do tempo (no qual o " +"arquivo de código-fonte foi modificado pela última vez) para determinar a " +"sua validade. Veja :ref:`pyc-invalidation`." #: ../../glossary.rst:501 msgid "hashable" @@ -1100,13 +1213,20 @@ msgstr "" #: ../../glossary.rst:511 msgid "" -"Most of Python's immutable built-in objects are hashable; mutable containers" -" (such as lists or dictionaries) are not; immutable containers (such as " +"Most of Python's immutable built-in objects are hashable; mutable containers " +"(such as lists or dictionaries) are not; immutable containers (such as " "tuples and frozensets) are only hashable if their elements are hashable. " -"Objects which are instances of user-defined classes are hashable by default." -" They all compare unequal (except with themselves), and their hash value is" -" derived from their :func:`id`." -msgstr "" +"Objects which are instances of user-defined classes are hashable by " +"default. They all compare unequal (except with themselves), and their hash " +"value is derived from their :func:`id`." +msgstr "" +"A maioria dos objetos embutidos imutáveis do Python são hasheáveis; " +"containers mutáveis (tais como listas ou dicionários) não são; containers " +"imutáveis (tais como tuplas e frozensets) são hasheáveis apenas se os seus " +"elementos são hasheáveis. Objetos que são instâncias de classes definidas " +"pelo usuário são hasheáveis por padrão. Todos eles comparam de forma " +"desigual (exceto entre si mesmos), e o seu valor hash é derivado a partir do " +"seu :func:`id`." #: ../../glossary.rst:518 msgid "IDLE" @@ -1135,9 +1255,9 @@ msgid "" "dictionary." msgstr "" "Um objeto que possui um valor fixo. Objetos imutáveis incluem números, " -"strings e tuplas. Estes objetos não podem ser alterados. Um novo objeto deve" -" ser criado se um valor diferente tiver de ser armazenado. Objetos imutáveis" -" têm um papel importante em lugares onde um valor constante de hash seja " +"strings e tuplas. Estes objetos não podem ser alterados. Um novo objeto deve " +"ser criado se um valor diferente tiver de ser armazenado. Objetos imutáveis " +"têm um papel importante em lugares onde um valor constante de hash seja " "necessário, como por exemplo uma chave em um dicionário." #: ../../glossary.rst:530 @@ -1146,11 +1266,16 @@ msgstr "import path" #: ../../glossary.rst:532 msgid "" -"A list of locations (or :term:`path entries `) that are searched" -" by the :term:`path based finder` for modules to import. During import, this" -" list of locations usually comes from :data:`sys.path`, but for subpackages " +"A list of locations (or :term:`path entries `) that are searched " +"by the :term:`path based finder` for modules to import. During import, this " +"list of locations usually comes from :data:`sys.path`, but for subpackages " "it may also come from the parent package's ``__path__`` attribute." msgstr "" +"Uma lista de localizações (ou :term:`path entries `) que são " +"buscadas pelo :term:`path based finder` por módulos para importar. Durante a " +"importação, esta lista de localizações usualmente vem a partir de :data:`sys." +"path`, mas para sub-pacotes ela também pode vir do atributo ``__path__`` de " +"pacotes-pai." #: ../../glossary.rst:537 msgid "importing" @@ -1170,8 +1295,8 @@ msgstr "importer" #: ../../glossary.rst:543 msgid "" -"An object that both finds and loads a module; both a :term:`finder` and " -":term:`loader` object." +"An object that both finds and loads a module; both a :term:`finder` and :" +"term:`loader` object." msgstr "" "Um objeto que localiza e carrega um módulo; Tanto um :term:`finder` e o " "objeto :term:`loader`." @@ -1203,20 +1328,19 @@ msgstr "interpretado " #: ../../glossary.rst:555 msgid "" "Python is an interpreted language, as opposed to a compiled one, though the " -"distinction can be blurry because of the presence of the bytecode compiler." -" This means that source files can be run directly without explicitly " -"creating an executable which is then run. Interpreted languages typically " -"have a shorter development/debug cycle than compiled ones, though their " -"programs generally also run more slowly. See also :term:`interactive`." -msgstr "" -"Python é uma linguagem interpretada, em oposição àquelas que são compiladas," -" embora esta distinção possa ser nebulosa devido à presença do compilador de" -" bytecode. Isto significa que os arquivos-fontes podem ser executados " +"distinction can be blurry because of the presence of the bytecode compiler. " +"This means that source files can be run directly without explicitly creating " +"an executable which is then run. Interpreted languages typically have a " +"shorter development/debug cycle than compiled ones, though their programs " +"generally also run more slowly. See also :term:`interactive`." +msgstr "" +"Python é uma linguagem interpretada, em oposição àquelas que são compiladas, " +"embora esta distinção possa ser nebulosa devido à presença do compilador de " +"bytecode. Isto significa que os arquivos-fontes podem ser executados " "diretamente sem necessidade explícita de se criar um arquivo executável. " -"Linguagens interpretadas normalmente têm um ciclo de " -"desenvolvimento/depuração mais curto que as linguagens compiladas, apesar de" -" seus programas geralmente serem executados mais lentamente. Veja também " -":term:`interativo`." +"Linguagens interpretadas normalmente têm um ciclo de desenvolvimento/" +"depuração mais curto que as linguagens compiladas, apesar de seus programas " +"geralmente serem executados mais lentamente. Veja também :term:`interativo`." #: ../../glossary.rst:562 msgid "interpreter shutdown" @@ -1224,21 +1348,32 @@ msgstr "interpreter shutdown" #: ../../glossary.rst:564 msgid "" -"When asked to shut down, the Python interpreter enters a special phase where" -" it gradually releases all allocated resources, such as modules and various " -"critical internal structures. It also makes several calls to the " -":term:`garbage collector `. This can trigger the " -"execution of code in user-defined destructors or weakref callbacks. Code " -"executed during the shutdown phase can encounter various exceptions as the " -"resources it relies on may not function anymore (common examples are library" -" modules or the warnings machinery)." -msgstr "" +"When asked to shut down, the Python interpreter enters a special phase where " +"it gradually releases all allocated resources, such as modules and various " +"critical internal structures. It also makes several calls to the :term:" +"`garbage collector `. This can trigger the execution of " +"code in user-defined destructors or weakref callbacks. Code executed during " +"the shutdown phase can encounter various exceptions as the resources it " +"relies on may not function anymore (common examples are library modules or " +"the warnings machinery)." +msgstr "" +"Quando solicitado para desligar, o interpretador Python entra em uma fase " +"especial, onde ele gradualmente libera todos os recursos alocados, tais como " +"módulos e várias estruturas internas críticas. Ele também faz diversas " +"chamadas para o :term:`garbage collector `. Isto pode " +"disparar a execução de código em destrutores definidos pelo usuário ou " +"callbacks de referência fraca. Código executado durante a fase de " +"desligamento pode encontrar diversas exceções, pois os recursos que ele " +"depende podem não funcionar mais (exemplos comuns são os módulos de " +"bibliotecas, ou os mecanismos de avisos)." #: ../../glossary.rst:573 msgid "" "The main reason for interpreter shutdown is that the ``__main__`` module or " "the script being run has finished executing." msgstr "" +"A principal razão para o interpretador desligar, é que o módulo ``__main__`` " +"ou o script sendo executado terminou sua execução." #: ../../glossary.rst:575 msgid "iterable" @@ -1248,40 +1383,39 @@ msgstr "iterável" msgid "" "An object capable of returning its members one at a time. Examples of " "iterables include all sequence types (such as :class:`list`, :class:`str`, " -"and :class:`tuple`) and some non-sequence types like :class:`dict`, " -":term:`file objects `, and objects of any classes you define " -"with an :meth:`__iter__` method or with a :meth:`__getitem__` method that " -"implements :term:`Sequence` semantics." +"and :class:`tuple`) and some non-sequence types like :class:`dict`, :term:" +"`file objects `, and objects of any classes you define with an :" +"meth:`__iter__` method or with a :meth:`__getitem__` method that implements :" +"term:`Sequence` semantics." msgstr "" "Um objeto capaz de retornar seus membros um de cada vez. Exemplos de " -"iteráveis incluem todos os tipos de sequência (tais como :class:`list`, " -":class:`str` e :class:`tuple`) e alguns tipos de não-sequência, como o " -":class:`dict`, :term:`file objects `, além dos objetos de " -"quaisquer classes que você definir com um método :meth:`__iter__` ou " -":meth:`__getitem__` que implementam a semântica de :term:`sequência` ." +"iteráveis incluem todos os tipos de sequência (tais como :class:`list`, :" +"class:`str` e :class:`tuple`) e alguns tipos de não-sequência, como o :class:" +"`dict`, :term:`file objects `, além dos objetos de quaisquer " +"classes que você definir com um método :meth:`__iter__` ou :meth:" +"`__getitem__` que implementam a semântica de :term:`sequência` ." #: ../../glossary.rst:584 msgid "" "Iterables can be used in a :keyword:`for` loop and in many other places " "where a sequence is needed (:func:`zip`, :func:`map`, ...). When an " -"iterable object is passed as an argument to the built-in function " -":func:`iter`, it returns an iterator for the object. This iterator is good " -"for one pass over the set of values. When using iterables, it is usually " -"not necessary to call :func:`iter` or deal with iterator objects yourself. " -"The ``for`` statement does that automatically for you, creating a temporary " +"iterable object is passed as an argument to the built-in function :func:" +"`iter`, it returns an iterator for the object. This iterator is good for " +"one pass over the set of values. When using iterables, it is usually not " +"necessary to call :func:`iter` or deal with iterator objects yourself. The " +"``for`` statement does that automatically for you, creating a temporary " "unnamed variable to hold the iterator for the duration of the loop. See " "also :term:`iterator`, :term:`sequence`, and :term:`generator`." msgstr "" "Iteráveis podem ser usados em um laço :keyword:`for` e em vários outros " "lugares em que uma sequência é necessária (:func:`zip`, :func:`map`, ...). " -"Quando um objeto iterável é passado como argumento para a função nativa " -":func:`iter`, ela retorna um iterador para o objeto. Este iterador é " -"adequado para se varrer todo o conjunto de valores. Ao usar iteráveis, " -"normalmente não é necessário chamar :func:`iter` ou lidar com os objetos " -"iteradores em si. A instrução ``for`` faz isso automaticamente para você, " -"criando uma variável temporária para armazenar o iterador durante a execução" -" do laço. Veja também :term:`iterador`, :term:`sequência`, e " -":term:`gerador`." +"Quando um objeto iterável é passado como argumento para a função nativa :" +"func:`iter`, ela retorna um iterador para o objeto. Este iterador é adequado " +"para se varrer todo o conjunto de valores. Ao usar iteráveis, normalmente " +"não é necessário chamar :func:`iter` ou lidar com os objetos iteradores em " +"si. A instrução ``for`` faz isso automaticamente para você, criando uma " +"variável temporária para armazenar o iterador durante a execução do laço. " +"Veja também :term:`iterador`, :term:`sequência`, e :term:`gerador`." #: ../../glossary.rst:594 msgid "iterator" @@ -1289,36 +1423,36 @@ msgstr "iterador" #: ../../glossary.rst:596 msgid "" -"An object representing a stream of data. Repeated calls to the iterator's " -":meth:`~iterator.__next__` method (or passing it to the built-in function " -":func:`next`) return successive items in the stream. When no more data are " +"An object representing a stream of data. Repeated calls to the iterator's :" +"meth:`~iterator.__next__` method (or passing it to the built-in function :" +"func:`next`) return successive items in the stream. When no more data are " "available a :exc:`StopIteration` exception is raised instead. At this " -"point, the iterator object is exhausted and any further calls to its " -":meth:`__next__` method just raise :exc:`StopIteration` again. Iterators " -"are required to have an :meth:`__iter__` method that returns the iterator " -"object itself so every iterator is also iterable and may be used in most " -"places where other iterables are accepted. One notable exception is code " -"which attempts multiple iteration passes. A container object (such as a " -":class:`list`) produces a fresh new iterator each time you pass it to the " -":func:`iter` function or use it in a :keyword:`for` loop. Attempting this " -"with an iterator will just return the same exhausted iterator object used in" -" the previous iteration pass, making it appear like an empty container." -msgstr "" -"Um objeto que representa um fluxo de dados. Repetidas chamadas ao método " -":meth:`~iterator.__next__` de um iterador (ou passando o objeto para a " -"função nativa :func:`next`) vão retornar itens sucessivos do fluxo. Quando " -"não houver mais dados disponíveis uma exceção :exc:`StopIteration` exception" -" será levantada. Neste ponto, o objeto iterador se esgotou e quaisquer " +"point, the iterator object is exhausted and any further calls to its :meth:" +"`__next__` method just raise :exc:`StopIteration` again. Iterators are " +"required to have an :meth:`__iter__` method that returns the iterator object " +"itself so every iterator is also iterable and may be used in most places " +"where other iterables are accepted. One notable exception is code which " +"attempts multiple iteration passes. A container object (such as a :class:" +"`list`) produces a fresh new iterator each time you pass it to the :func:" +"`iter` function or use it in a :keyword:`for` loop. Attempting this with an " +"iterator will just return the same exhausted iterator object used in the " +"previous iteration pass, making it appear like an empty container." +msgstr "" +"Um objeto que representa um fluxo de dados. Repetidas chamadas ao método :" +"meth:`~iterator.__next__` de um iterador (ou passando o objeto para a função " +"nativa :func:`next`) vão retornar itens sucessivos do fluxo. Quando não " +"houver mais dados disponíveis uma exceção :exc:`StopIteration` exception " +"será levantada. Neste ponto, o objeto iterador se esgotou e quaisquer " "chamadas subsequentes a seu método :meth:`__next__` vão apenas levantar a " -"exceção :exc:`StopIteration` novamente. Iteradores precisam ter um método " -":meth:`__iter__` que retorne o objeto iterador em si, de forma que todo " -"iterador também é iterável e pode ser usado na maioria dos lugares em que um" -" iterável é requerido. Uma notável exceção é código que tenta realizar " -"passagens em múltiplas iterações. Um objeto contêiner (como uma " -":class:`list`) produz um novo iterador a cada vez que você passá-lo para a " -"função :func:`iter` ou utilizá-lo em um laço :keyword:`for`. Tentar isso " -"com o mesmo iterador apenas iria retornar o mesmo objeto iterador esgotado " -"já utilizado na iteração anterior, como se fosse um contêiner vazio." +"exceção :exc:`StopIteration` novamente. Iteradores precisam ter um método :" +"meth:`__iter__` que retorne o objeto iterador em si, de forma que todo " +"iterador também é iterável e pode ser usado na maioria dos lugares em que um " +"iterável é requerido. Uma notável exceção é código que tenta realizar " +"passagens em múltiplas iterações. Um objeto contêiner (como uma :class:" +"`list`) produz um novo iterador a cada vez que você passá-lo para a função :" +"func:`iter` ou utilizá-lo em um laço :keyword:`for`. Tentar isso com o " +"mesmo iterador apenas iria retornar o mesmo objeto iterador esgotado já " +"utilizado na iteração anterior, como se fosse um contêiner vazio." #: ../../glossary.rst:611 msgid "More information can be found in :ref:`typeiter`." @@ -1330,8 +1464,8 @@ msgstr "Função chave" #: ../../glossary.rst:614 msgid "" -"A key function or collation function is a callable that returns a value used" -" for sorting or ordering. For example, :func:`locale.strxfrm` is used to " +"A key function or collation function is a callable that returns a value used " +"for sorting or ordering. For example, :func:`locale.strxfrm` is used to " "produce a sort key that is aware of locale specific sort conventions." msgstr "" " Uma função chave ou função colação é algo que retorna um valor utilizado\n" @@ -1341,10 +1475,10 @@ msgstr "" #: ../../glossary.rst:619 msgid "" -"A number of tools in Python accept key functions to control how elements are" -" ordered or grouped. They include :func:`min`, :func:`max`, :func:`sorted`," -" :meth:`list.sort`, :func:`heapq.merge`, :func:`heapq.nsmallest`, " -":func:`heapq.nlargest`, and :func:`itertools.groupby`." +"A number of tools in Python accept key functions to control how elements are " +"ordered or grouped. They include :func:`min`, :func:`max`, :func:`sorted`, :" +"meth:`list.sort`, :func:`heapq.merge`, :func:`heapq.nsmallest`, :func:`heapq." +"nlargest`, and :func:`itertools.groupby`." msgstr "" " Uma porção de ferramentas em Python aceitam funções chave para controlar\n" " como os elementos são ordenados ou agrupados. Algumas delas incluem\n" @@ -1354,24 +1488,23 @@ msgstr "" #: ../../glossary.rst:625 msgid "" -"There are several ways to create a key function. For example. the " -":meth:`str.lower` method can serve as a key function for case insensitive " -"sorts. Alternatively, a key function can be built from a :keyword:`lambda` " +"There are several ways to create a key function. For example. the :meth:" +"`str.lower` method can serve as a key function for case insensitive sorts. " +"Alternatively, a key function can be built from a :keyword:`lambda` " "expression such as ``lambda r: (r[0], r[2])``. Also, the :mod:`operator` " -"module provides three key function constructors: " -":func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and " -":func:`~operator.methodcaller`. See the :ref:`Sorting HOW TO " -"` for examples of how to create and use key functions." -msgstr "" -" Há várias maneiras de se criar funções chave. Por exemplo, o método " -":meth:`str.lower` pode servir como uma função chave para ordenações " -"insensíveis à caixa. Alternativamente, uma função chave ad-hoc pode ser " -"construída a partir de uma expressão :keyword:`lambda`, como ``lambda r: " -"(r[0], r[2])``. Além disso, o módulo :mod:`operator` dispõe de três " -"construtores para funções chave: :func:`~operator.attrgetter`, " -":func:`~operator.itemgetter` e o :func:`~operator.methodcaller`. Consulte o " -":ref:`Sorting HOW TO ` para ver exemplos de como criar e " -"utilizar funções chave." +"module provides three key function constructors: :func:`~operator." +"attrgetter`, :func:`~operator.itemgetter`, and :func:`~operator." +"methodcaller`. See the :ref:`Sorting HOW TO ` for examples of " +"how to create and use key functions." +msgstr "" +" Há várias maneiras de se criar funções chave. Por exemplo, o método :meth:" +"`str.lower` pode servir como uma função chave para ordenações insensíveis à " +"caixa. Alternativamente, uma função chave ad-hoc pode ser construída a " +"partir de uma expressão :keyword:`lambda`, como ``lambda r: (r[0], r[2])``. " +"Além disso, o módulo :mod:`operator` dispõe de três construtores para " +"funções chave: :func:`~operator.attrgetter`, :func:`~operator.itemgetter` e " +"o :func:`~operator.methodcaller`. Consulte o :ref:`Sorting HOW TO " +"` para ver exemplos de como criar e utilizar funções chave." #: ../../glossary.rst:633 msgid "keyword argument" @@ -1387,10 +1520,13 @@ msgstr "lambda" #: ../../glossary.rst:638 msgid "" -"An anonymous inline function consisting of a single :term:`expression` which" -" is evaluated when the function is called. The syntax to create a lambda " +"An anonymous inline function consisting of a single :term:`expression` which " +"is evaluated when the function is called. The syntax to create a lambda " "function is ``lambda [parameters]: expression``" msgstr "" +"Uma função de linha anônima consistindo de uma única :term:`expression`, que " +"é avaliada quando a função é chamada. A sintaxe para criar uma função lambda " +"é ``lambda [parameters]: expression``" #: ../../glossary.rst:641 msgid "LBYL" @@ -1398,9 +1534,9 @@ msgstr "LBYL" #: ../../glossary.rst:643 msgid "" -"Look before you leap. This coding style explicitly tests for pre-conditions" -" before making calls or lookups. This style contrasts with the :term:`EAFP`" -" approach and is characterized by the presence of many :keyword:`if` " +"Look before you leap. This coding style explicitly tests for pre-conditions " +"before making calls or lookups. This style contrasts with the :term:`EAFP` " +"approach and is characterized by the presence of many :keyword:`if` " "statements." msgstr "" " Iniciais da expressão em inglês \"look before you leap\", que significa " @@ -1418,9 +1554,9 @@ msgid "" "This issue can be solved with locks or by using the EAFP approach." msgstr "" "In a multi-threaded environment, the LBYL approach can risk introducing a " -"race condition between \"the looking\" and \"the leaping\". For example, the" -" code, ``if key in mapping: return mapping[key]`` can fail if another thread" -" removes *key* from *mapping* after the test, but before the lookup. This " +"race condition between \"the looking\" and \"the leaping\". For example, the " +"code, ``if key in mapping: return mapping[key]`` can fail if another thread " +"removes *key* from *mapping* after the test, but before the lookup. This " "issue can be solved with locks or by using the EAFP approach." #: ../../glossary.rst:653 @@ -1433,6 +1569,9 @@ msgid "" "array in other languages than to a linked list since access to elements is " "O(1)." msgstr "" +"Uma :term:`sequence` embutida no Python. Apesar do seu nome, é mais próximo " +"de um vetor em outras linguagens do que uma lista encadeada, como o acesso " +"aos elementos é da ordem O(1)." #: ../../glossary.rst:658 msgid "list comprehension" @@ -1459,15 +1598,15 @@ msgstr "carregador" #: ../../glossary.rst:668 msgid "" -"An object that loads a module. It must define a method named " -":meth:`load_module`. A loader is typically returned by a :term:`finder`. See" -" :pep:`302` for details and :class:`importlib.abc.Loader` for an " -":term:`abstract base class`." +"An object that loads a module. It must define a method named :meth:" +"`load_module`. A loader is typically returned by a :term:`finder`. See :pep:" +"`302` for details and :class:`importlib.abc.Loader` for an :term:`abstract " +"base class`." msgstr "" -" Um objeto que carrega um módulo. Deve definir um método chamado " -":meth:`load_module`. Um loader é normalmente devolvido por um " -":term:`finder`. Veja a :pep:`302` para detalhes e " -":class:`importlib.abc.Loader` para um :term:`abstract base class`." +" Um objeto que carrega um módulo. Deve definir um método chamado :meth:" +"`load_module`. Um loader é normalmente devolvido por um :term:`finder`. Veja " +"a :pep:`302` para detalhes e :class:`importlib.abc.Loader` para um :term:" +"`abstract base class`." #: ../../glossary.rst:672 msgid "magic method" @@ -1484,11 +1623,11 @@ msgstr "mapeando" #: ../../glossary.rst:679 msgid "" "A container object that supports arbitrary key lookups and implements the " -"methods specified in the :class:`~collections.abc.Mapping` or " -":class:`~collections.abc.MutableMapping` :ref:`abstract base classes " -"`. Examples include :class:`dict`, " -":class:`collections.defaultdict`, :class:`collections.OrderedDict` and " -":class:`collections.Counter`." +"methods specified in the :class:`~collections.abc.Mapping` or :class:" +"`~collections.abc.MutableMapping` :ref:`abstract base classes `. Examples include :class:`dict`, :class:" +"`collections.defaultdict`, :class:`collections.OrderedDict` and :class:" +"`collections.Counter`." msgstr "" "  Um objeto conteiner que suporta buscas por chaves arbitrárias e\n" " implementa os métodos especificados em :class:`~collections.Mapping` ou\n" @@ -1507,12 +1646,17 @@ msgid "" "finders are related to, but different from :term:`path entry finders `." msgstr "" +"Um :term:`finder` retornado por uma busca de :data:`sys.meta_path`. Meta " +"localizadores de diretórios são relacionados a, mas diferentes de :term:" +"`path entry finders `." #: ../../glossary.rst:691 msgid "" "See :class:`importlib.abc.MetaPathFinder` for the methods that meta path " "finders implement." msgstr "" +"Veja :class:`importlib.abc.MetaPathFinder` para os métodos que meta " +"localizadores de diretórios implementam." #: ../../glossary.rst:693 msgid "metaclass" @@ -1530,8 +1674,17 @@ msgid "" "access, adding thread-safety, tracking object creation, implementing " "singletons, and many other tasks." msgstr "" -"A classe de uma classe. Definições de classe criam um nome de classe, um dicionário de classe e uma lista de classes base. A metaclasse é responsável por receber estes três argumentos e criar a classe. A\n" -" maioria das linguagens de programação orientadas a objetos provê uma implementação default. O que torna o Python especial é o fato de ser possível criar metaclasses personalizadas. A maioria dos usuários nunca vai precisar deste recurso, mas quando houver necessidade, metaclasses possibilitam soluções poderosas e elegantes. Metaclasses têm sido utilizadas para gerar registros de acesso a atributos, para incluir proteção contra acesso concorrente, rastrear a criação de objetos, implementar singletons, dentre muitas outras tarefas." +"A classe de uma classe. Definições de classe criam um nome de classe, um " +"dicionário de classe e uma lista de classes base. A metaclasse é responsável " +"por receber estes três argumentos e criar a classe. A\n" +" maioria das linguagens de programação orientadas a objetos provê uma " +"implementação default. O que torna o Python especial é o fato de ser " +"possível criar metaclasses personalizadas. A maioria dos usuários nunca vai " +"precisar deste recurso, mas quando houver necessidade, metaclasses " +"possibilitam soluções poderosas e elegantes. Metaclasses têm sido utilizadas " +"para gerar registros de acesso a atributos, para incluir proteção contra " +"acesso concorrente, rastrear a criação de objetos, implementar singletons, " +"dentre muitas outras tarefas." #: ../../glossary.rst:705 msgid "More information can be found in :ref:`metaclasses`." @@ -1544,12 +1697,12 @@ msgstr "method (método)" #: ../../glossary.rst:708 msgid "" "A function which is defined inside a class body. If called as an attribute " -"of an instance of that class, the method will get the instance object as its" -" first :term:`argument` (which is usually called ``self``). See " -":term:`function` and :term:`nested scope`." +"of an instance of that class, the method will get the instance object as its " +"first :term:`argument` (which is usually called ``self``). See :term:" +"`function` and :term:`nested scope`." msgstr "" -" Uma função que é definida dentro do corpo de uma classe. Se chamada como um" -" atributo de uma instância daquela classe, o método receberá a instância do " +" Uma função que é definida dentro do corpo de uma classe. Se chamada como um " +"atributo de uma instância daquela classe, o método receberá a instância do " "objeto como seu primeiro :term:`argumento` (que comumente é chamado de " "``self``). Veja :term:`função` e :term:`nested scope`." @@ -1560,9 +1713,9 @@ msgstr "method resolution order (ordem de resolução de método)" #: ../../glossary.rst:714 msgid "" "Method Resolution Order is the order in which base classes are searched for " -"a member during lookup. See `The Python 2.3 Method Resolution Order " -"`_ for details of the " -"algorithm used by the Python interpreter since the 2.3 release." +"a member during lookup. See `The Python 2.3 Method Resolution Order `_ for details of the algorithm " +"used by the Python interpreter since the 2.3 release." msgstr "" " Ordem de resolução de métodos é a ordem em que os membros de uma classe " "base são buscados durante a pesquisa. Veja `A ordem de resolução de métodos " @@ -1579,8 +1732,8 @@ msgid "" "into Python by the process of :term:`importing`." msgstr "" "Um objeto que serve como uma unidade organizacional de código Python. Os " -"módulos têm um namespace contendo objetos Python arbitrários. Os módulos são" -" carregados pelo Python através do processo de: term: `importing`." +"módulos têm um namespace contendo objetos Python arbitrários. Os módulos são " +"carregados pelo Python através do processo de: term: `importing`." #: ../../glossary.rst:724 msgid "See also :term:`package`." @@ -1592,12 +1745,12 @@ msgstr "module spec (módulo spec)" #: ../../glossary.rst:727 msgid "" -"A namespace containing the import-related information used to load a module." -" An instance of :class:`importlib.machinery.ModuleSpec`." +"A namespace containing the import-related information used to load a module. " +"An instance of :class:`importlib.machinery.ModuleSpec`." msgstr "" "Uma namespace que contém as informações relacionadas à importação usadas " -"para carregar um módulo. Uma instância de " -"class:`importlib.machinery.ModuleSpec`." +"para carregar um módulo. Uma instância de class:`importlib.machinery." +"ModuleSpec`." #: ../../glossary.rst:729 msgid "MRO" @@ -1613,11 +1766,11 @@ msgstr "mutable (mutável)" #: ../../glossary.rst:734 msgid "" -"Mutable objects can change their value but keep their :func:`id`. See also " -":term:`immutable`." +"Mutable objects can change their value but keep their :func:`id`. See also :" +"term:`immutable`." msgstr "" -"Objeto mutável é aquele que pode modificar seus valor mas manter seu " -":func:`id`. Veja também :term:`immutable`." +"Objeto mutável é aquele que pode modificar seus valor mas manter seu :func:" +"`id`. Veja também :term:`immutable`." #: ../../glossary.rst:736 msgid "named tuple" @@ -1629,23 +1782,36 @@ msgid "" "tuple and whose indexable elements are also accessible using named " "attributes. The type or class may have other features as well." msgstr "" +"O termo \"tupla nomeada\" é aplicado a qualquer tipo ou classe que herda de " +"tupla e cujos elementos indexáveis também são acessíveis usando atributos " +"nomeados. O tipo ou classe pode ter outras funcionalidades também." #: ../../glossary.rst:742 msgid "" -"Several built-in types are named tuples, including the values returned by " -":func:`time.localtime` and :func:`os.stat`. Another example is " -":data:`sys.float_info`::" +"Several built-in types are named tuples, including the values returned by :" +"func:`time.localtime` and :func:`os.stat`. Another example is :data:`sys." +"float_info`::" msgstr "" +"Diversos tipos embutidos são tuplas nomeadas, incluindo os valores " +"retornados por :func:`time.localtime` e :func:`os.stat`. Outro exemplo é :" +"data:`sys.float_info`::" #: ../../glossary.rst:753 msgid "" "Some named tuples are built-in types (such as the above examples). " "Alternatively, a named tuple can be created from a regular class definition " "that inherits from :class:`tuple` and that defines named fields. Such a " -"class can be written by hand or it can be created with the factory function " -":func:`collections.namedtuple`. The latter technique also adds some extra " +"class can be written by hand or it can be created with the factory function :" +"func:`collections.namedtuple`. The latter technique also adds some extra " "methods that may not be found in hand-written or built-in named tuples." msgstr "" +"Algumas tuplas nomeadas são tipos embutidos (tal como os exemplos acima). " +"Alternativamente, uma tupla nomeada pode ser criada a partir da definição de " +"uma classe regular, que herde de :class:`tuple` e que defina campos " +"nomeados. Tal classe pode ser escrita a mão, ou ela pode ser criada com uma " +"função factory :func:`collections.namedtuple`. A segunda técnica também " +"adiciona alguns métodos extras, que podem não ser encontrados quando foi " +"escrita manualmente, ou em tuplas nomeadas embutidas." #: ../../glossary.rst:760 msgid "namespace" @@ -1655,25 +1821,24 @@ msgstr "namespace" msgid "" "The place where a variable is stored. Namespaces are implemented as " "dictionaries. There are the local, global and built-in namespaces as well " -"as nested namespaces in objects (in methods). Namespaces support modularity" -" by preventing naming conflicts. For instance, the functions " -":func:`builtins.open <.open>` and :func:`os.open` are distinguished by their" -" namespaces. Namespaces also aid readability and maintainability by making " -"it clear which module implements a function. For instance, writing " -":func:`random.seed` or :func:`itertools.islice` makes it clear that those " -"functions are implemented by the :mod:`random` and :mod:`itertools` modules," -" respectively." +"as nested namespaces in objects (in methods). Namespaces support modularity " +"by preventing naming conflicts. For instance, the functions :func:`builtins." +"open <.open>` and :func:`os.open` are distinguished by their namespaces. " +"Namespaces also aid readability and maintainability by making it clear which " +"module implements a function. For instance, writing :func:`random.seed` or :" +"func:`itertools.islice` makes it clear that those functions are implemented " +"by the :mod:`random` and :mod:`itertools` modules, respectively." msgstr "" "O lugar em que uma variável é armazenada. Namespaces são implementados como " "dicionários. Existem os namespaces local, global e nativo, bem como " "namespaces aninhados em objetos (em métodos). Namespaces suportam " -"modularidade ao previnir conflitos de nomes. Por exemplo, as funções " -":func:`__builtin__.open` e :func:`os.open` são diferenciadas por seus " -"namespaces. Namespaces também auxiliam na legibilidade e na manutenibilidade" -" ao torar mais claro quais módulos implementam uma função. Escrever " -":func:`random.seed` ou :func:`itertools.izip`, por exemplo, deixa claro que " -"estas funções são implementadas pelos módulos :mod:`random` e " -":mod:`itertools` respectivamente." +"modularidade ao previnir conflitos de nomes. Por exemplo, as funções :func:" +"`__builtin__.open` e :func:`os.open` são diferenciadas por seus namespaces. " +"Namespaces também auxiliam na legibilidade e na manutenibilidade ao torar " +"mais claro quais módulos implementam uma função. Escrever :func:`random." +"seed` ou :func:`itertools.izip`, por exemplo, deixa claro que estas funções " +"são implementadas pelos módulos :mod:`random` e :mod:`itertools` " +"respectivamente." #: ../../glossary.rst:772 msgid "namespace package" @@ -1686,6 +1851,10 @@ msgid "" "specifically are not like a :term:`regular package` because they have no " "``__init__.py`` file." msgstr "" +"Um :term:`package` :pep:`420` que serve apenas como container para sub " +"pacotes. Pacotes de namespaces podem não ter representação física, e " +"especificamente não são como um :term:`regular package` porque eles não tem " +"um arquivo ``__init__.py``." #: ../../glossary.rst:779 msgid "See also :term:`module`." @@ -1704,6 +1873,13 @@ msgid "" "the innermost scope. Likewise, global variables read and write to the " "global namespace. The :keyword:`nonlocal` allows writing to outer scopes." msgstr "" +"A habilidade de referir-se a uma variável em uma definição de fechamento. " +"Por exemplo, uma função definida dentro de outra pode referenciar variáveis " +"da função externa. Perceba que escopos aninhados por padrão funcionam apenas " +"por referência e não por atribuição. Variáveis locais podem ler e escrever " +"no escopo mais interno. De forma similar, variáveis globais podem ler e " +"escrever para o namespace global. O :keyword:`nonlocal` permite escrita para " +"escopos externos." #: ../../glossary.rst:789 msgid "new-style class" @@ -1713,9 +1889,14 @@ msgstr "new-style class (novo estilo de classes)" msgid "" "Old name for the flavor of classes now used for all class objects. In " "earlier Python versions, only new-style classes could use Python's newer, " -"versatile features like :attr:`~object.__slots__`, descriptors, properties, " -":meth:`__getattribute__`, class methods, and static methods." +"versatile features like :attr:`~object.__slots__`, descriptors, properties, :" +"meth:`__getattribute__`, class methods, and static methods." msgstr "" +"Antigo nome para o tipo de classes agora usado para todos os objetos de " +"classes. Em versões anteriores do Python, apenas classes com o novo estilo " +"podiam usar recursos novos e versáteis do Python, tais como :attr:`~object." +"__slots__`, descritores, propriedades, :meth:`__getattribute__`, métodos de " +"classe, e métodos estáticos." #: ../../glossary.rst:795 msgid "object" @@ -1737,11 +1918,11 @@ msgstr "pacote" #: ../../glossary.rst:802 msgid "" "A Python :term:`module` which can contain submodules or recursively, " -"subpackages. Technically, a package is a Python module with an ``__path__``" -" attribute." +"subpackages. Technically, a package is a Python module with an ``__path__`` " +"attribute." msgstr "" -"Um :term:`module` Python é capaz de conter submódulos ou recursivamente, " -"sub-pacotes. Tecnicamente, um pacote é um módulo Python com um atributo " +"Um :term:`module` Python é capaz de conter submódulos ou recursivamente, sub-" +"pacotes. Tecnicamente, um pacote é um módulo Python com um atributo " "``__path__``." #: ../../glossary.rst:806 @@ -1769,19 +1950,19 @@ msgid "" "`. This is the default kind of parameter, for example *foo* and " "*bar* in the following::" msgstr "" -":dfn:`posicional-ou-nomeado`: especifica um argumento que pode ser tanto " -":term:`posicional ` quanto :term:`nomeado `. Esse é o " +":dfn:`posicional-ou-nomeado`: especifica um argumento que pode ser tanto :" +"term:`posicional ` quanto :term:`nomeado `. Esse é o " "tipo padrão de parâmetro, por exemplo *foo* e *bar* a seguir::" #: ../../glossary.rst:822 msgid "" ":dfn:`positional-only`: specifies an argument that can be supplied only by " "position. Python has no syntax for defining positional-only parameters. " -"However, some built-in functions have positional-only parameters (e.g. " -":func:`abs`)." +"However, some built-in functions have positional-only parameters (e.g. :func:" +"`abs`)." msgstr "" -":dfn:`somente-posicional`: especifica um argumento que pode ser passado para" -" a função somente por posição. Python não possui sintaxe para definir " +":dfn:`somente-posicional`: especifica um argumento que pode ser passado para " +"a função somente por posição. Python não possui sintaxe para definir " "parâmetros somente-posicionais. Contudo, algumas funções embutidas possuem " "argumentos somente-posicionais (por exemplo, :func:`abs`)." @@ -1794,8 +1975,8 @@ msgid "" "following::" msgstr "" ":dfn:`somente-nomeado`: especifica um argumento que pode ser passado para a " -"função somente por nome. Parâmetros somente-nomeados podem ser definidos com" -" um simples parâmetro var-posicional ou um ``*`` antes deles na lista de " +"função somente por nome. Parâmetros somente-nomeados podem ser definidos com " +"um simples parâmetro var-posicional ou um ``*`` antes deles na lista de " "parâmetros na definição da função, por exemplo *kw_only1* and *kw_only2* a " "seguir::" @@ -1809,13 +1990,13 @@ msgid "" msgstr "" ":dfn:`var-posicional`: especifica quem uma sequência arbitrária de " "argumentos posicionais pode ser fornecida (em adição a qualquer argumento " -"posicional já aceito por outros parâmetros). Tal parâmetro pode ser definido" -" colocando um ``*`` antes do nome, por exemplo *args* a seguir::" +"posicional já aceito por outros parâmetros). Tal parâmetro pode ser definido " +"colocando um ``*`` antes do nome, por exemplo *args* a seguir::" #: ../../glossary.rst:845 msgid "" -":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be" -" provided (in addition to any keyword arguments already accepted by other " +":dfn:`var-keyword`: specifies that arbitrarily many keyword arguments can be " +"provided (in addition to any keyword arguments already accepted by other " "parameters). Such a parameter can be defined by prepending the parameter " "name with ``**``, for example *kwargs* in the example above." msgstr "" @@ -1829,20 +2010,20 @@ msgid "" "Parameters can specify both optional and required arguments, as well as " "default values for some optional arguments." msgstr "" -"Parâmetros podem especificar tanto argumentos opcionais quanto obrigatórios," -" assim como valores padrões para alguns argumentos opcionais." +"Parâmetros podem especificar tanto argumentos opcionais quanto obrigatórios, " +"assim como valores padrões para alguns argumentos opcionais." #: ../../glossary.rst:854 msgid "" "See also the :term:`argument` glossary entry, the FAQ question on :ref:`the " "difference between arguments and parameters `, " -"the :class:`inspect.Parameter` class, the :ref:`function` section, and " -":pep:`362`." +"the :class:`inspect.Parameter` class, the :ref:`function` section, and :pep:" +"`362`." msgstr "" "Veja o termo :term:`argument` no glossario, a questão :ref:` sobre a " -"diferença entre argumentos e parâmetros ` na FAQ," -" a classe :class:`inspect.Parameter`, a seçã :ref:`função`, e " -":pep:`362`." +"diferença entre argumentos e parâmetros ` na FAQ, " +"a classe :class:`inspect.Parameter`, a seçã :ref:`função`, e :pep:" +"`362`." #: ../../glossary.rst:858 msgid "path entry" @@ -1862,21 +2043,21 @@ msgstr "path entry finder (localizador de entrada de path)" #: ../../glossary.rst:864 msgid "" -"A :term:`finder` returned by a callable on :data:`sys.path_hooks` (i.e. a " -":term:`path entry hook`) which knows how to locate modules given a " -":term:`path entry`." +"A :term:`finder` returned by a callable on :data:`sys.path_hooks` (i.e. a :" +"term:`path entry hook`) which knows how to locate modules given a :term:" +"`path entry`." msgstr "" "Um :term:`finder` retornado por um callable em :data:`sys.path_hooks` (ou " -"seja, um :term:`path entry hook`) que sabe como localizar os módulos " -":term:`path entry`." +"seja, um :term:`path entry hook`) que sabe como localizar os módulos :term:" +"`path entry`." #: ../../glossary.rst:868 msgid "" "See :class:`importlib.abc.PathEntryFinder` for the methods that path entry " "finders implement." msgstr "" -"Veja :class:`importlib.abc.PathEntryFinder` para os métodos implementadores" -" da entrada do path." +"Veja :class:`importlib.abc.PathEntryFinder` para os métodos implementadores " +"da entrada do path." #: ../../glossary.rst:870 msgid "path entry hook" @@ -1889,8 +2070,8 @@ msgid "" "entry`." msgstr "" "Um callable na lista :data:`sys.path_hook` que retorna um :term:`path entry " -"finder` caso saiba como encontrar módulos em um local específico :term:`path" -" entry`." +"finder` caso saiba como encontrar módulos em um local específico :term:`path " +"entry`." #: ../../glossary.rst:875 msgid "path based finder" @@ -1901,24 +2082,32 @@ msgid "" "One of the default :term:`meta path finders ` which " "searches an :term:`import path` for modules." msgstr "" -"Uma das opções padrãot :term:`meta path finders ` que será" -" procurado por módulos :term:`import path`." +"Uma das opções padrãot :term:`meta path finders ` que será " +"procurado por módulos :term:`import path`." #: ../../glossary.rst:879 msgid "path-like object" -msgstr "" +msgstr "objeto caminho ou similar" #: ../../glossary.rst:881 msgid "" -"An object representing a file system path. A path-like object is either a " -":class:`str` or :class:`bytes` object representing a path, or an object " -"implementing the :class:`os.PathLike` protocol. An object that supports the " -":class:`os.PathLike` protocol can be converted to a :class:`str` or " -":class:`bytes` file system path by calling the :func:`os.fspath` function; " -":func:`os.fsdecode` and :func:`os.fsencode` can be used to guarantee a " -":class:`str` or :class:`bytes` result instead, respectively. Introduced by " -":pep:`519`." -msgstr "" +"An object representing a file system path. A path-like object is either a :" +"class:`str` or :class:`bytes` object representing a path, or an object " +"implementing the :class:`os.PathLike` protocol. An object that supports the :" +"class:`os.PathLike` protocol can be converted to a :class:`str` or :class:" +"`bytes` file system path by calling the :func:`os.fspath` function; :func:" +"`os.fsdecode` and :func:`os.fsencode` can be used to guarantee a :class:" +"`str` or :class:`bytes` result instead, respectively. Introduced by :pep:" +"`519`." +msgstr "" +"Um objeto representando um arquivo de caminho do sistema. Um objeto caminho " +"ou similar é ou um objeto :class:`str` ou :class:`bytes` representando um " +"caminho, ou um objeto implementando o protocolo :class:`os.PathLike`. Um " +"objeto que suporta o protocolo :class:`os.PathLike` pode ser convertido para " +"um arquivo de caminho do sistema :class:`str` ou :class:`bytes`, através da " +"chamada da função :func:`os.fspath`; :func:`os.fsdecode` e :func:`os." +"fsencode` podem ser usadas para garantir um :class:`str` ou :class:`bytes` " +"como resultado, respectivamente. Introduzido na :pep:`519`." #: ../../glossary.rst:889 msgid "PEP" @@ -1931,6 +2120,10 @@ msgid "" "or its processes or environment. PEPs should provide a concise technical " "specification and a rationale for proposed features." msgstr "" +"Proposta de melhoria do Python. Uma PEP é um documento de design que fornece " +"informação para a comunidade Python, ou descreve uma nova funcionalidade " +"para o Python ou seus predecessores ou ambientes. PEPs devem prover uma " +"especificação técnica concisa e um racional para funcionalidades propostas." #: ../../glossary.rst:897 msgid "" @@ -1940,6 +2133,11 @@ msgid "" "responsible for building consensus within the community and documenting " "dissenting opinions." msgstr "" +"PEPs tem a intenção de ser os mecanismos primários para propor novas " +"funcionalidades significativas, para coletar opiniões da comunidade sobre um " +"problema, e para documentar as decisões de design que foram adicionadas ao " +"Python. O autor da PEP é responsável por construir um consenso dentro da " +"comunidade e documentar opiniões dissidentes." #: ../../glossary.rst:903 msgid "See :pep:`1`." @@ -1970,12 +2168,20 @@ msgstr "API provisória" msgid "" "A provisional API is one which has been deliberately excluded from the " "standard library's backwards compatibility guarantees. While major changes " -"to such interfaces are not expected, as long as they are marked provisional," -" backwards incompatible changes (up to and including removal of the " +"to such interfaces are not expected, as long as they are marked provisional, " +"backwards incompatible changes (up to and including removal of the " "interface) may occur if deemed necessary by core developers. Such changes " -"will not be made gratuitously -- they will occur only if serious fundamental" -" flaws are uncovered that were missed prior to the inclusion of the API." -msgstr "" +"will not be made gratuitously -- they will occur only if serious fundamental " +"flaws are uncovered that were missed prior to the inclusion of the API." +msgstr "" +"Uma API provisória é uma API que foi deliberadamente excluída das " +"bibliotecas padrões com compatibilidade retroativa garantida. Enquanto " +"mudanças maiores para tais interfaces não são esperadas, contanto que elas " +"sejam marcadas como provisórias, mudanças retroativas incompatíveis (até e " +"incluindo a remoção da interface) podem ocorrer se consideradas necessárias " +"pelos desenvolvedores principais. Tais mudanças não serão feitas " +"gratuitamente -- elas irão ocorrer apenas se sérias falhas fundamentais " +"forem descobertas, que foram esquecidas anteriormente a inclusão da API." #: ../../glossary.rst:922 msgid "" @@ -1983,6 +2189,10 @@ msgid "" "\"solution of last resort\" - every attempt will still be made to find a " "backwards compatible resolution to any identified problems." msgstr "" +"Mesmo para APIs provisórias, mudanças retroativas incompatíveis são vistas " +"como uma \"solução em último caso\" - cada tentativa ainda será feita para " +"encontrar uma resolução retroativa compatível para quaisquer problemas " +"encontrados." #: ../../glossary.rst:926 msgid "" @@ -1990,6 +2200,9 @@ msgid "" "without locking in problematic design errors for extended periods of time. " "See :pep:`411` for more details." msgstr "" +"Esse processo permite que a biblioteca padrão continue a evoluir com o " +"passar do tempo, sem se prender em erros de design problemáticos por " +"períodos de tempo prolongados. Veja :pep:`411` para mais detalhes." #: ../../glossary.rst:929 msgid "provisional package" @@ -2006,8 +2219,8 @@ msgstr "Python 3000" #: ../../glossary.rst:934 msgid "" "Nickname for the Python 3.x release line (coined long ago when the release " -"of version 3 was something in the distant future.) This is also abbreviated" -" \"Py3k\"." +"of version 3 was something in the distant future.) This is also abbreviated " +"\"Py3k\"." msgstr "" "Apelido para a versão do Python 3.x linha de lançamento (cunhado há muito " "tempo, quando o lançamento da versão 3 era algo em um futuro muito " @@ -2019,16 +2232,16 @@ msgstr "Pythonic" #: ../../glossary.rst:939 msgid "" -"An idea or piece of code which closely follows the most common idioms of the" -" Python language, rather than implementing code using concepts common to " +"An idea or piece of code which closely follows the most common idioms of the " +"Python language, rather than implementing code using concepts common to " "other languages. For example, a common idiom in Python is to loop over all " "elements of an iterable using a :keyword:`for` statement. Many other " "languages don't have this type of construct, so people unfamiliar with " "Python sometimes use a numerical counter instead::" msgstr "" "Uma ideia ou um pedaço de código que segue de perto os idiomas mais comuns " -"da linguagem Python, ao invés de implementar códigos usando conceitos comuns" -" a outros idiomas. Por exemplo, um idioma comum em Python é fazer um loop " +"da linguagem Python, ao invés de implementar códigos usando conceitos comuns " +"a outros idiomas. Por exemplo, um idioma comum em Python é fazer um loop " "sobre todos os elementos de uma iterável usando a instrução: `for` " "statement. Muitas outras línguas não têm esse tipo de construção, então as " "pessoas que não estão familiarizadas com o Python usam um contador numérico:" @@ -2051,14 +2264,14 @@ msgstr "" "Um nome pontilhado (quando 2 termos são ligados por um ponto) que mostra o " "\"path\" do escopo global de um módulo para uma classe, função ou método " "definido num determinado módulo, conforme definido pela :pep:`3155`. Para " -"funções e classes de nível superior, o nome qualificado é o mesmo que o nome" -" do objeto::" +"funções e classes de nível superior, o nome qualificado é o mesmo que o nome " +"do objeto::" #: ../../glossary.rst:972 msgid "" "When used to refer to modules, the *fully qualified name* means the entire " -"dotted path to the module, including any parent packages, e.g. " -"``email.mime.text``::" +"dotted path to the module, including any parent packages, e.g. ``email.mime." +"text``::" msgstr "" "Quando usado para se referir a módulos, o *fully qualified name* significa " "todo o caminho pontilhado para o módulo, incluindo quaisquer pacotes pai, " @@ -2077,6 +2290,12 @@ msgid "" "function that programmers can call to return the reference count for a " "particular object." msgstr "" +"O número de refrências para um objeto. Quando a contagem de referências de " +"um objeto atinge zero, ele é desalocado. Contagem de referências geralmente " +"não é visível no código Python, mas é um elemento chave da implementação :" +"term:`CPython`. O módulo :mod:`sys` define a função :func:`~sys.getrefcount` " +"que programadores podem chamar para retornar a contagem de referências para " +"um objeto em particular." #: ../../glossary.rst:987 msgid "regular package" @@ -2084,8 +2303,8 @@ msgstr "regular package" #: ../../glossary.rst:989 msgid "" -"A traditional :term:`package`, such as a directory containing an " -"``__init__.py`` file." +"A traditional :term:`package`, such as a directory containing an ``__init__." +"py`` file." msgstr "" "Um :term:`package` tradicional, como um diretório contendo um arquivo " "``__init __. py``." @@ -2106,6 +2325,12 @@ msgid "" "cases where there are large numbers of instances in a memory-critical " "application." msgstr "" +"A declaração dentro de uma classe que salva memória através de pré-" +"declarações de espaço para atributos des instâncias, e eliminando " +"dicionários de instâncias. Apesar de popular, a técnica é um tanto quanto " +"complicada de acertar, e é melhor se for reservada para casos raros, onde " +"existe uma grande quantidade de instâncias em uma aplicação onde a memória é " +"crítica." #: ../../glossary.rst:1000 msgid "sequence" @@ -2114,36 +2339,35 @@ msgstr "sequência" #: ../../glossary.rst:1002 msgid "" "An :term:`iterable` which supports efficient element access using integer " -"indices via the :meth:`__getitem__` special method and defines a " -":meth:`__len__` method that returns the length of the sequence. Some built-" -"in sequence types are :class:`list`, :class:`str`, :class:`tuple`, and " -":class:`bytes`. Note that :class:`dict` also supports :meth:`__getitem__` " -"and :meth:`__len__`, but is considered a mapping rather than a sequence " -"because the lookups use arbitrary :term:`immutable` keys rather than " -"integers." +"indices via the :meth:`__getitem__` special method and defines a :meth:" +"`__len__` method that returns the length of the sequence. Some built-in " +"sequence types are :class:`list`, :class:`str`, :class:`tuple`, and :class:" +"`bytes`. Note that :class:`dict` also supports :meth:`__getitem__` and :meth:" +"`__len__`, but is considered a mapping rather than a sequence because the " +"lookups use arbitrary :term:`immutable` keys rather than integers." msgstr "" "Um :term:`iterable` com suporte para acesso eficiente a seus elementos " "através de índices inteiros via método especial :meth:`__getitem__` e que " "define o método :meth:`__len__`  que devolve o tamanho da sequência. Alguns " -"tipos de sequência nativos são: :class:`list`, :class:`str`, :class:`tuple`," -" e :class:`bytes`. Note que :class:`dict` também tem suporte para " -":meth:`__getitem__` e :meth:`__len__`, mas é considerado um mapa e não uma " +"tipos de sequência nativos são: :class:`list`, :class:`str`, :class:`tuple`, " +"e :class:`bytes`. Note que :class:`dict` também tem suporte para :meth:" +"`__getitem__` e :meth:`__len__`, mas é considerado um mapa e não uma " "sequência porque a busca usa uma chave :term:`imutável` arbitrária em vez " "de inteiros." #: ../../glossary.rst:1011 msgid "" "The :class:`collections.abc.Sequence` abstract base class defines a much " -"richer interface that goes beyond just :meth:`__getitem__` and " -":meth:`__len__`, adding :meth:`count`, :meth:`index`, :meth:`__contains__`, " -"and :meth:`__reversed__`. Types that implement this expanded interface can " -"be registered explicitly using :func:`~abc.register`." +"richer interface that goes beyond just :meth:`__getitem__` and :meth:" +"`__len__`, adding :meth:`count`, :meth:`index`, :meth:`__contains__`, and :" +"meth:`__reversed__`. Types that implement this expanded interface can be " +"registered explicitly using :func:`~abc.register`." msgstr "" "A classe base abstrata :class:`collections.abc.Sequence` define uma " -"interface mais rica que vai além de apenas :meth:`__getitem__` e " -":meth:`__len__`, adicionando :meth:`count`, :meth:`index`, " -":meth:`__contains__`, e :meth:`__reversed__`. Tipos que implementam essa " -"interface podem ser explicitamente registrados usando :func:`~abc.register`." +"interface mais rica que vai além de apenas :meth:`__getitem__` e :meth:" +"`__len__`, adicionando :meth:`count`, :meth:`index`, :meth:`__contains__`, " +"e :meth:`__reversed__`. Tipos que implementam essa interface podem ser " +"explicitamente registrados usando :func:`~abc.register`." #: ../../glossary.rst:1018 msgid "single dispatch" @@ -2168,10 +2392,10 @@ msgid "" "when several are given, such as in ``variable_name[1:3:5]``. The bracket " "(subscript) notation uses :class:`slice` objects internally." msgstr "" -"Um objeto geralmente contendo uma parte de uma :term:`sequence`. Uma fatia é" -" criada usando a notação de subscrito ``[]`` pode conter também até dois " -"pontos entre números, como em ``variable_name[1:3:5]``. A notação de suporte" -" (subscrito) utiliza objetos :class:`slice` internamente." +"Um objeto geralmente contendo uma parte de uma :term:`sequence`. Uma fatia é " +"criada usando a notação de subscrito ``[]`` pode conter também até dois " +"pontos entre números, como em ``variable_name[1:3:5]``. A notação de suporte " +"(subscrito) utiliza objetos :class:`slice` internamente." #: ../../glossary.rst:1028 msgid "special method" @@ -2181,9 +2405,13 @@ msgstr "método especial" msgid "" "A method that is called implicitly by Python to execute a certain operation " "on a type, such as addition. Such methods have names starting and ending " -"with double underscores. Special methods are documented in " -":ref:`specialnames`." +"with double underscores. Special methods are documented in :ref:" +"`specialnames`." msgstr "" +"Um método que é chamado implicitamente pelo Python para executar uma certa " +"operação em um tipo, como uma adição por exemplo. Tais métodos tem nomes " +"iniciando e terminando com dois underscores. Métodos especiais sestão " +"documentados em :ref:`specialnames`." #: ../../glossary.rst:1036 msgid "statement" @@ -2191,10 +2419,13 @@ msgstr "declaração" #: ../../glossary.rst:1038 msgid "" -"A statement is part of a suite (a \"block\" of code). A statement is either" -" an :term:`expression` or one of several constructs with a keyword, such as " -":keyword:`if`, :keyword:`while` or :keyword:`for`." +"A statement is part of a suite (a \"block\" of code). A statement is either " +"an :term:`expression` or one of several constructs with a keyword, such as :" +"keyword:`if`, :keyword:`while` or :keyword:`for`." msgstr "" +"Uma instrução é parte de uma suíte (um \"bloco\" de código). Uma instrução é " +"ou uma :term:`expression` ou uma de várias construções com uma palavra-" +"chave, tal como :keyword:`if`, :keyword:`while` ou :keyword:`for`." #: ../../glossary.rst:1041 msgid "text encoding" @@ -2211,21 +2442,21 @@ msgstr "arquivo texto" #: ../../glossary.rst:1046 msgid "" "A :term:`file object` able to read and write :class:`str` objects. Often, a " -"text file actually accesses a byte-oriented datastream and handles the " -":term:`text encoding` automatically. Examples of text files are files opened" -" in text mode (``'r'`` or ``'w'``), :data:`sys.stdin`, :data:`sys.stdout`, " -"and instances of :class:`io.StringIO`." +"text file actually accesses a byte-oriented datastream and handles the :term:" +"`text encoding` automatically. Examples of text files are files opened in " +"text mode (``'r'`` or ``'w'``), :data:`sys.stdin`, :data:`sys.stdout`, and " +"instances of :class:`io.StringIO`." msgstr "" "Um :term:`file object` apto a ler e escrever objetos :class:`str`. " "Geralmente, um arquivo texto, na verdade, acesse um fluxo de dados de bytes " "e captura o :term:`text encoding` automaticamente. Exemplos de arquivos " -"texto são: arquivos abertos em modo texto (``'r'`` or ``'w'``), " -":data:`sys.stdin`, :data:`sys.stdout`, e instâncias de :class:`io.StringIO`." +"texto são: arquivos abertos em modo texto (``'r'`` or ``'w'``), :data:`sys." +"stdin`, :data:`sys.stdout`, e instâncias de :class:`io.StringIO`." #: ../../glossary.rst:1053 msgid "" -"See also :term:`binary file` for a file object able to read and write :term" -":`bytes-like objects `." +"See also :term:`binary file` for a file object able to read and write :term:" +"`bytes-like objects `." msgstr "" "Veja também :term:`binary file` para um objeto arquivo apto a ler e " "escrever :term:`bytes-like objects `." @@ -2244,6 +2475,13 @@ msgid "" "continuation character, making them especially useful when writing " "docstrings." msgstr "" +"Uma string que está definida com três ocorrências de aspas duplas (\") ou " +"apóstrofes ('). Enquanto elas não fornecem nenhuma funcionalidade não " +"disponível com strings de aspas simples, elas são úteis para inúmeras " +"razões. Elas permitem que você inclua aspas simples e duplas não encerradas " +"dentro de uma string, e elas podem utilizar múltiplas linhas sem o uso de " +"caracteres de continuação, fazendo-as especialmente úteis quando escrevemos " +"documentação em docstrings." #: ../../glossary.rst:1064 msgid "type" @@ -2252,10 +2490,12 @@ msgstr "tipo" #: ../../glossary.rst:1066 msgid "" "The type of a Python object determines what kind of object it is; every " -"object has a type. An object's type is accessible as its " -":attr:`~instance.__class__` attribute or can be retrieved with " -"``type(obj)``." +"object has a type. An object's type is accessible as its :attr:`~instance." +"__class__` attribute or can be retrieved with ``type(obj)``." msgstr "" +"O tipo de um objeto Python determina qual tipo de objeto ele é; todos " +"objetos tem um tipo. Um tipo de objeto é acessivel pelo atributo :attr:" +"`~instance.__class__` ou pode ser recuperado com ``type(obj)``." #: ../../glossary.rst:1070 msgid "type alias" @@ -2264,20 +2504,24 @@ msgstr "tipo alias" #: ../../glossary.rst:1072 msgid "A synonym for a type, created by assigning the type to an identifier." msgstr "" +"Um sinônimo para tipo, criado através da atribuição do tipo para um " +"identificador." #: ../../glossary.rst:1074 msgid "" "Type aliases are useful for simplifying :term:`type hints `. For " "example::" msgstr "" +"Tipos alias são úteis para simplificar :term:`type hints `. Por " +"exemplo::" #: ../../glossary.rst:1083 msgid "could be made more readable like this::" -msgstr "" +msgstr "pode tornar-se mais legível desta forma::" #: ../../glossary.rst:1092 ../../glossary.rst:1106 msgid "See :mod:`typing` and :pep:`484`, which describe this functionality." -msgstr "" +msgstr "Veja :mod:`typing` e :pep:`484`, o qual descreve esta funcionalidade." #: ../../glossary.rst:1093 msgid "type hint" @@ -2288,6 +2532,8 @@ msgid "" "An :term:`annotation` that specifies the expected type for a variable, a " "class attribute, or a function parameter or return value." msgstr "" +"Uma :term:`annotation` que especifica o tipo esperado para uma variável, um " +"atributo de classe, ou um parâmetro de função ou um valor de retorno." #: ../../glossary.rst:1098 msgid "" @@ -2295,25 +2541,36 @@ msgid "" "to static type analysis tools, and aid IDEs with code completion and " "refactoring." msgstr "" +"Dicas de tipo são opcionais e não são forçadas pelo Python, mas elas são " +"úteis para ferramentas de análise estática de tipos, e ajudam IDEs a " +"completar e refatorar código." #: ../../glossary.rst:1102 msgid "" "Type hints of global variables, class attributes, and functions, but not " "local variables, can be accessed using :func:`typing.get_type_hints`." msgstr "" +"Dicas de tipos de variáveis globais, atributos de classes, e funções, mas " +"não de variáveis locais, podem ser acessadas usando :func:`typing." +"get_type_hints`." #: ../../glossary.rst:1107 msgid "universal newlines" -msgstr "" +msgstr "Novas linhas universais" #: ../../glossary.rst:1109 msgid "" "A manner of interpreting text streams in which all of the following are " "recognized as ending a line: the Unix end-of-line convention ``'\\n'``, the " -"Windows convention ``'\\r\\n'``, and the old Macintosh convention ``'\\r'``." -" See :pep:`278` and :pep:`3116`, as well as :func:`bytes.splitlines` for an" -" additional use." +"Windows convention ``'\\r\\n'``, and the old Macintosh convention " +"``'\\r'``. See :pep:`278` and :pep:`3116`, as well as :func:`bytes." +"splitlines` for an additional use." msgstr "" +"Uma maneira de interpretar fluxos de textos, na qual todos estes são " +"reconhecidos como caracteres de encerramento de linha: a convenção para fim-" +"de-linha no Unix ``'\\n'``, a convenção no Windows ``'\\r\\n'``, e a antiga " +"convenção no Macintosh ``'\\r'``. Veja :pep:`278` e :pep:`3116`, bem como :" +"func:`bytes.splitlines` para uso adicional." #: ../../glossary.rst:1114 msgid "variable annotation" @@ -2321,18 +2578,22 @@ msgstr "anotação variável" #: ../../glossary.rst:1116 msgid "An :term:`annotation` of a variable or a class attribute." -msgstr "" +msgstr "Uma :term:`annotation` de uma variável ou um atributo de classe." #: ../../glossary.rst:1118 msgid "" "When annotating a variable or a class attribute, assignment is optional::" msgstr "" +"Ao fazer uma anotação de uma variável ou atributo de classe, a atribuição é " +"opcional::" #: ../../glossary.rst:1123 msgid "" "Variable annotations are usually used for :term:`type hints `: " "for example this variable is expected to take :class:`int` values::" msgstr "" +"Variable annotations are usually used for :term:`type hints `: " +"for example this variable is expected to take :class:`int` values::" #: ../../glossary.rst:1129 msgid "Variable annotation syntax is explained in section :ref:`annassign`." @@ -2344,6 +2605,8 @@ msgid "" "See :term:`function annotation`, :pep:`484` and :pep:`526`, which describe " "this functionality." msgstr "" +"Veja :term:`function annotation`, :pep:`484` e :pep:`526`, que descrevem " +"esta funcionalidade." #: ../../glossary.rst:1133 msgid "virtual environment" @@ -2373,8 +2636,8 @@ msgid "" "A computer defined entirely in software. Python's virtual machine executes " "the :term:`bytecode` emitted by the bytecode compiler." msgstr "" -"Um computador definido inteiramente em software. A máquina virtual de Python" -" executa o :term:`bytecode` emitido pelo compilador de bytecode." +"Um computador definido inteiramente em software. A máquina virtual de Python " +"executa o :term:`bytecode` emitido pelo compilador de bytecode." #: ../../glossary.rst:1145 msgid "Zen of Python" diff --git a/howto/argparse.po b/howto/argparse.po index 5585acc06..a2fb4f8cf 100644 --- a/howto/argparse.po +++ b/howto/argparse.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Humberto Rocha , 2019 -# +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Humberto Rocha , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,7 +30,7 @@ msgstr "Tutorial de Argparse" #: ../../howto/argparse.rst:0 msgid "author" -msgstr "" +msgstr "autor" #: ../../howto/argparse.rst:5 msgid "Tshepang Lekhonkhobe" @@ -45,16 +47,16 @@ msgstr "" #: ../../howto/argparse.rst:14 msgid "" -"There are two other modules that fulfill the same task, namely :mod:`getopt`" -" (an equivalent for :c:func:`getopt` from the C language) and the deprecated" -" :mod:`optparse`. Note also that :mod:`argparse` is based on " -":mod:`optparse`, and therefore very similar in terms of usage." +"There are two other modules that fulfill the same task, namely :mod:`getopt` " +"(an equivalent for :c:func:`getopt` from the C language) and the deprecated :" +"mod:`optparse`. Note also that :mod:`argparse` is based on :mod:`optparse`, " +"and therefore very similar in terms of usage." msgstr "" -"Existem outros dois módulos que cumprem esta mesma tarefa, chamados " -":mod:`getopt` (equivalente ao :c:func:`getopt` da linguagem C) e outro que " -"hoje está descontinuado :mod:`optparse`. Note também que o :mod:`argparse` é" -" baseado no módulo :mod:`optparse`, e, portanto, possui bastante " -"similaridade em termos de uso." +"Existem outros dois módulos que cumprem esta mesma tarefa, chamados :mod:" +"`getopt` (equivalente ao :c:func:`getopt` da linguagem C) e outro que hoje " +"está descontinuado :mod:`optparse`. Note também que o :mod:`argparse` é " +"baseado no módulo :mod:`optparse`, e, portanto, possui bastante similaridade " +"em termos de uso." #: ../../howto/argparse.rst:22 msgid "Concepts" @@ -70,8 +72,7 @@ msgstr "" #: ../../howto/argparse.rst:46 msgid "A few concepts we can learn from the four commands:" -msgstr "" -"Alguns conceitos que podemos aprender a partir destes quatro comandos:" +msgstr "Alguns conceitos que podemos aprender a partir destes quatro comandos:" #: ../../howto/argparse.rst:48 msgid "" @@ -85,9 +86,9 @@ msgstr "" msgid "" "If we want beyond what it provides by default, we tell it a bit more. In " "this case, we want it to display a different directory, ``pypy``. What we " -"did is specify what is known as a positional argument. It's named so because" -" the program should know what to do with the value, solely based on where it" -" appears on the command line. This concept is more relevant to a command " +"did is specify what is known as a positional argument. It's named so because " +"the program should know what to do with the value, solely based on where it " +"appears on the command line. This concept is more relevant to a command " "like :command:`cp`, whose most basic usage is ``cp SRC DEST``. The first " "position is *what you want copied,* and the second position is *where you " "want it copied to*." @@ -103,8 +104,8 @@ msgstr "" #: ../../howto/argparse.rst:64 msgid "" "That's a snippet of the help text. It's very useful in that you can come " -"across a program you have never used before, and can figure out how it works" -" simply by reading its help text." +"across a program you have never used before, and can figure out how it works " +"simply by reading its help text." msgstr "" "Esse é um trecho do texto de ajuda. É muito útil que possas encontrar um " "programa que nunca usastes antes e poder descobrir como o mesmo funciona " @@ -153,8 +154,8 @@ msgid "" msgstr "" "A opção ``--help``, que também pode ser encurtada para ``-h``, é a única " "opção que obtemos livremente (ou seja, não é necessário determina-la). " -"Determinar qualquer outra coisa resulta num erro. Mas mesmo assim, recebemos" -" uma mensagem de utilização bastante útil, também de graça." +"Determinar qualquer outra coisa resulta num erro. Mas mesmo assim, recebemos " +"uma mensagem de utilização bastante útil, também de graça." #: ../../howto/argparse.rst:110 msgid "Introducing Positional arguments" @@ -174,8 +175,8 @@ msgstr "Aqui está o que acontecerá:" #: ../../howto/argparse.rst:140 msgid "" -"We've added the :meth:`add_argument` method, which is what we use to specify" -" which command-line options the program is willing to accept. In this case, " +"We've added the :meth:`add_argument` method, which is what we use to specify " +"which command-line options the program is willing to accept. In this case, " "I've named it ``echo`` so that it's in line with its function." msgstr "" "Nós adicionamos o método :meth:`add_argument`, cujo o mesmo usamos para " @@ -209,8 +210,8 @@ msgid "" "Note however that, although the help display looks nice and all, it " "currently is not as helpful as it can be. For example we see that we got " "``echo`` as a positional argument, but we don't know what it does, other " -"than by guessing or by reading the source code. So, let's make it a bit more" -" useful::" +"than by guessing or by reading the source code. So, let's make it a bit more " +"useful::" msgstr "" #: ../../howto/argparse.rst:165 @@ -223,9 +224,9 @@ msgstr "" #: ../../howto/argparse.rst:196 msgid "" -"That didn't go so well. That's because :mod:`argparse` treats the options we" -" give it as strings, unless we tell it otherwise. So, let's tell " -":mod:`argparse` to treat that input as an integer::" +"That didn't go so well. That's because :mod:`argparse` treats the options we " +"give it as strings, unless we tell it otherwise. So, let's tell :mod:" +"`argparse` to treat that input as an integer::" msgstr "" #: ../../howto/argparse.rst:217 @@ -240,8 +241,8 @@ msgstr "" #: ../../howto/argparse.rst:224 msgid "" -"So far we have been playing with positional arguments. Let us have a look on" -" how to add optional ones::" +"So far we have been playing with positional arguments. Let us have a look on " +"how to add optional ones::" msgstr "" #: ../../howto/argparse.rst:234 ../../howto/argparse.rst:280 @@ -257,11 +258,11 @@ msgstr "" #: ../../howto/argparse.rst:257 msgid "" -"To show that the option is actually optional, there is no error when running" -" the program without it. Note that by default, if an optional argument isn't" -" used, the relevant variable, in this case :attr:`args.verbosity`, is given " -"``None`` as a value, which is the reason it fails the truth test of the " -":keyword:`if` statement." +"To show that the option is actually optional, there is no error when running " +"the program without it. Note that by default, if an optional argument isn't " +"used, the relevant variable, in this case :attr:`args.verbosity`, is given " +"``None`` as a value, which is the reason it fails the truth test of the :" +"keyword:`if` statement." msgstr "" #: ../../howto/argparse.rst:263 @@ -270,8 +271,8 @@ msgstr "" #: ../../howto/argparse.rst:265 msgid "" -"When using the ``--verbosity`` option, one must also specify some value, any" -" value." +"When using the ``--verbosity`` option, one must also specify some value, any " +"value." msgstr "" #: ../../howto/argparse.rst:268 @@ -285,15 +286,15 @@ msgstr "" msgid "" "The option is now more of a flag than something that requires a value. We " "even changed the name of the option to match that idea. Note that we now " -"specify a new keyword, ``action``, and give it the value ``\"store_true\"``." -" This means that, if the option is specified, assign the value ``True`` to " -":data:`args.verbose`. Not specifying it implies ``False``." +"specify a new keyword, ``action``, and give it the value ``\"store_true\"``. " +"This means that, if the option is specified, assign the value ``True`` to :" +"data:`args.verbose`. Not specifying it implies ``False``." msgstr "" #: ../../howto/argparse.rst:305 msgid "" -"It complains when you specify a value, in true spirit of what flags actually" -" are." +"It complains when you specify a value, in true spirit of what flags actually " +"are." msgstr "" #: ../../howto/argparse.rst:308 @@ -347,8 +348,8 @@ msgstr "" #: ../../howto/argparse.rst:412 msgid "" -"These all look good except the last one, which exposes a bug in our program." -" Let's fix it by restricting the values the ``--verbosity`` option can " +"These all look good except the last one, which exposes a bug in our program. " +"Let's fix it by restricting the values the ``--verbosity`` option can " "accept::" msgstr "" @@ -437,8 +438,8 @@ msgid "" "We've just introduced yet another keyword, ``default``. We've set it to " "``0`` in order to make it comparable to the other int values. Remember that " "by default, if an optional argument isn't specified, it gets the ``None`` " -"value, and that cannot be compared to an int value (hence the " -":exc:`TypeError` exception)." +"value, and that cannot be compared to an int value (hence the :exc:" +"`TypeError` exception)." msgstr "" #: ../../howto/argparse.rst:582 @@ -479,12 +480,12 @@ msgstr "Opções Conflitantes" #: ../../howto/argparse.rst:669 msgid "" -"So far, we have been working with two methods of an " -":class:`argparse.ArgumentParser` instance. Let's introduce a third one, " -":meth:`add_mutually_exclusive_group`. It allows for us to specify options " -"that conflict with each other. Let's also change the rest of the program so " -"that the new functionality makes more sense: we'll introduce the ``--quiet``" -" option, which will be the opposite of the ``--verbose`` one::" +"So far, we have been working with two methods of an :class:`argparse." +"ArgumentParser` instance. Let's introduce a third one, :meth:" +"`add_mutually_exclusive_group`. It allows for us to specify options that " +"conflict with each other. Let's also change the rest of the program so that " +"the new functionality makes more sense: we'll introduce the ``--quiet`` " +"option, which will be the opposite of the ``--verbose`` one::" msgstr "" #: ../../howto/argparse.rst:695 @@ -502,14 +503,14 @@ msgstr "" #: ../../howto/argparse.rst:717 msgid "" -"Before we conclude, you probably want to tell your users the main purpose of" -" your program, just in case they don't know::" +"Before we conclude, you probably want to tell your users the main purpose of " +"your program, just in case they don't know::" msgstr "" #: ../../howto/argparse.rst:738 msgid "" -"Note that slight difference in the usage text. Note the ``[-v | -q]``, which" -" tells us that we can either use ``-v`` or ``-q``, but not both at the same " +"Note that slight difference in the usage text. Note the ``[-v | -q]``, which " +"tells us that we can either use ``-v`` or ``-q``, but not both at the same " "time:" msgstr "" diff --git a/howto/clinic.po b/howto/clinic.po index 23d3e0709..05085d2e8 100644 --- a/howto/clinic.po +++ b/howto/clinic.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Misael borges , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Juliana Karoline , 2019 # (Douglas da Silva) , 2019 -# +# Hemílio Lauro , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: (Douglas da Silva) , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,7 +33,7 @@ msgstr "How-To - Clínica de Argumento" #: ../../howto/clinic.rst:0 msgid "author" -msgstr "" +msgstr "autor" #: ../../howto/clinic.rst:7 msgid "Larry Hastings" @@ -44,8 +46,8 @@ msgstr "Resumo" #: ../../howto/clinic.rst:12 msgid "" "Argument Clinic is a preprocessor for CPython C files. Its purpose is to " -"automate all the boilerplate involved with writing argument parsing code for" -" \"builtins\". This document shows you how to convert your first C function " +"automate all the boilerplate involved with writing argument parsing code for " +"\"builtins\". This document shows you how to convert your first C function " "to work with Argument Clinic, and then introduces some advanced topics on " "Argument Clinic usage." msgstr "" @@ -69,19 +71,19 @@ msgstr "" msgid "" "Argument Clinic's primary goal is to take over responsibility for all " "argument parsing code inside CPython. This means that, when you convert a " -"function to work with Argument Clinic, that function should no longer do any" -" of its own argument parsing—the code generated by Argument Clinic should be" -" a \"black box\" to you, where CPython calls in at the top, and your code " +"function to work with Argument Clinic, that function should no longer do any " +"of its own argument parsing—the code generated by Argument Clinic should be " +"a \"black box\" to you, where CPython calls in at the top, and your code " "gets called at the bottom, with ``PyObject *args`` (and maybe ``PyObject " "*kwargs``) magically converted into the C variables and types you need." msgstr "" #: ../../howto/clinic.rst:41 msgid "" -"In order for Argument Clinic to accomplish its primary goal, it must be easy" -" to use. Currently, working with CPython's argument parsing library is a " -"chore, requiring maintaining redundant information in a surprising number of" -" places. When you use Argument Clinic, you don't have to repeat yourself." +"In order for Argument Clinic to accomplish its primary goal, it must be easy " +"to use. Currently, working with CPython's argument parsing library is a " +"chore, requiring maintaining redundant information in a surprising number of " +"places. When you use Argument Clinic, you don't have to repeat yourself." msgstr "" #: ../../howto/clinic.rst:47 @@ -90,11 +92,10 @@ msgid "" "their problem—and without creating new problems of its own. So it's " "paramount that Argument Clinic generate correct code. It'd be nice if the " "code was faster, too, but at the very least it should not introduce a major " -"speed regression. (Eventually Argument Clinic *should* make a major speedup" -" possible—we could rewrite its code generator to produce tailor-made " -"argument parsing code, rather than calling the general-purpose CPython " -"argument parsing library. That would make for the fastest argument parsing " -"possible!)" +"speed regression. (Eventually Argument Clinic *should* make a major speedup " +"possible—we could rewrite its code generator to produce tailor-made argument " +"parsing code, rather than calling the general-purpose CPython argument " +"parsing library. That would make for the fastest argument parsing possible!)" msgstr "" #: ../../howto/clinic.rst:59 @@ -114,11 +115,11 @@ msgstr "" #: ../../howto/clinic.rst:70 msgid "" -"One idea you should keep in mind, as you work with Argument Clinic: the more" -" information you give it, the better job it'll be able to do. Argument " -"Clinic is admittedly relatively simple right now. But as it evolves it will" -" get more sophisticated, and it should be able to do many interesting and " -"smart things with all the information you give it." +"One idea you should keep in mind, as you work with Argument Clinic: the more " +"information you give it, the better job it'll be able to do. Argument Clinic " +"is admittedly relatively simple right now. But as it evolves it will get " +"more sophisticated, and it should be able to do many interesting and smart " +"things with all the information you give it." msgstr "" #: ../../howto/clinic.rst:80 @@ -127,9 +128,8 @@ msgstr "" #: ../../howto/clinic.rst:82 msgid "" -"Argument Clinic ships with CPython; you'll find it in " -"``Tools/clinic/clinic.py``. If you run that script, specifying a C file as " -"an argument:" +"Argument Clinic ships with CPython; you'll find it in ``Tools/clinic/clinic." +"py``. If you run that script, specifying a C file as an argument:" msgstr "" #: ../../howto/clinic.rst:89 @@ -154,8 +154,8 @@ msgstr "" #: ../../howto/clinic.rst:107 msgid "" "When Argument Clinic parses one of these blocks, it generates output. This " -"output is rewritten into the C file immediately after the block, followed by" -" a comment containing a checksum. The Argument Clinic block now looks like " +"output is rewritten into the C file immediately after the block, followed by " +"a comment containing a checksum. The Argument Clinic block now looks like " "this:" msgstr "" @@ -211,8 +211,8 @@ msgstr "" msgid "" "All the text collectively, from the start line to the checksum line " "inclusively, is the *block*. (A block that hasn't been successfully " -"processed by Argument Clinic yet doesn't have output or a checksum line, but" -" it's still considered a block.)" +"processed by Argument Clinic yet doesn't have output or a checksum line, but " +"it's still considered a block.)" msgstr "" #: ../../howto/clinic.rst:143 @@ -222,12 +222,12 @@ msgstr "" #: ../../howto/clinic.rst:145 msgid "" "The best way to get a sense of how Argument Clinic works is to convert a " -"function to work with it. Here, then, are the bare minimum steps you'd need" -" to follow to convert a function to work with Argument Clinic. Note that " -"for code you plan to check in to CPython, you really should take the " -"conversion farther, using some of the advanced concepts you'll see later on " -"in the document (like \"return converters\" and \"self converters\"). But " -"we'll keep it simple for this walkthrough so you can learn." +"function to work with it. Here, then, are the bare minimum steps you'd need " +"to follow to convert a function to work with Argument Clinic. Note that for " +"code you plan to check in to CPython, you really should take the conversion " +"farther, using some of the advanced concepts you'll see later on in the " +"document (like \"return converters\" and \"self converters\"). But we'll " +"keep it simple for this walkthrough so you can learn." msgstr "" #: ../../howto/clinic.rst:154 @@ -242,31 +242,30 @@ msgstr "" #: ../../howto/clinic.rst:159 msgid "" -"Find a Python builtin that calls either :c:func:`PyArg_ParseTuple` or " -":c:func:`PyArg_ParseTupleAndKeywords`, and hasn't been converted to work " -"with Argument Clinic yet. For my example I'm using " -"``_pickle.Pickler.dump()``." +"Find a Python builtin that calls either :c:func:`PyArg_ParseTuple` or :c:" +"func:`PyArg_ParseTupleAndKeywords`, and hasn't been converted to work with " +"Argument Clinic yet. For my example I'm using ``_pickle.Pickler.dump()``." msgstr "" #: ../../howto/clinic.rst:164 msgid "" -"If the call to the ``PyArg_Parse`` function uses any of the following format" -" units:" +"If the call to the ``PyArg_Parse`` function uses any of the following format " +"units:" msgstr "" #: ../../howto/clinic.rst:176 msgid "" -"or if it has multiple calls to :c:func:`PyArg_ParseTuple`, you should choose" -" a different function. Argument Clinic *does* support all of these " +"or if it has multiple calls to :c:func:`PyArg_ParseTuple`, you should choose " +"a different function. Argument Clinic *does* support all of these " "scenarios. But these are advanced topics—let's do something simpler for " "your first function." msgstr "" #: ../../howto/clinic.rst:181 msgid "" -"Also, if the function has multiple calls to :c:func:`PyArg_ParseTuple` or " -":c:func:`PyArg_ParseTupleAndKeywords` where it supports different types for " -"the same argument, or if the function uses something besides PyArg_Parse " +"Also, if the function has multiple calls to :c:func:`PyArg_ParseTuple` or :c:" +"func:`PyArg_ParseTupleAndKeywords` where it supports different types for the " +"same argument, or if the function uses something besides PyArg_Parse " "functions to parse its arguments, it probably isn't suitable for conversion " "to Argument Clinic. Argument Clinic doesn't support generic functions or " "polymorphic parameters." @@ -280,15 +279,14 @@ msgstr "" msgid "" "Cut the docstring and paste it in between the ``[clinic]`` lines, removing " "all the junk that makes it a properly quoted C string. When you're done you " -"should have just the text, based at the left margin, with no line wider than" -" 80 characters. (Argument Clinic will preserve indents inside the " -"docstring.)" +"should have just the text, based at the left margin, with no line wider than " +"80 characters. (Argument Clinic will preserve indents inside the docstring.)" msgstr "" #: ../../howto/clinic.rst:199 msgid "" -"If the old docstring had a first line that looked like a function signature," -" throw that line away. (The docstring doesn't need it anymore—when you use " +"If the old docstring had a first line that looked like a function signature, " +"throw that line away. (The docstring doesn't need it anymore—when you use " "``help()`` on your builtin in the future, the first line will be built " "automatically based on the function's signature.)" msgstr "" @@ -310,8 +308,8 @@ msgstr "" #: ../../howto/clinic.rst:216 msgid "" -"(Our example docstring consists solely of a summary line, so the sample code" -" doesn't have to change for this step.)" +"(Our example docstring consists solely of a summary line, so the sample code " +"doesn't have to change for this step.)" msgstr "" #: ../../howto/clinic.rst:219 @@ -328,16 +326,16 @@ msgid "" "If this is the first time that module or class has been used with Argument " "Clinic in this C file, you must declare the module and/or class. Proper " "Argument Clinic hygiene prefers declaring these in a separate block " -"somewhere near the top of the C file, in the same way that include files and" -" statics go at the top. (In our sample code we'll just show the two blocks " +"somewhere near the top of the C file, in the same way that include files and " +"statics go at the top. (In our sample code we'll just show the two blocks " "next to each other.)" msgstr "" #: ../../howto/clinic.rst:242 msgid "" "The name of the class and module should be the same as the one seen by " -"Python. Check the name defined in the :c:type:`PyModuleDef` or " -":c:type:`PyTypeObject` as appropriate." +"Python. Check the name defined in the :c:type:`PyModuleDef` or :c:type:" +"`PyTypeObject` as appropriate." msgstr "" #: ../../howto/clinic.rst:246 @@ -418,22 +416,22 @@ msgstr "" #: ../../howto/clinic.rst:336 msgid "" -"If the existing C function calls :c:func:`PyArg_ParseTuple` (as opposed to " -":c:func:`PyArg_ParseTupleAndKeywords`), then all its arguments are " -"positional-only." +"If the existing C function calls :c:func:`PyArg_ParseTuple` (as opposed to :" +"c:func:`PyArg_ParseTupleAndKeywords`), then all its arguments are positional-" +"only." msgstr "" #: ../../howto/clinic.rst:340 msgid "" -"To mark all parameters as positional-only in Argument Clinic, add a ``/`` on" -" a line by itself after the last parameter, indented the same as the " +"To mark all parameters as positional-only in Argument Clinic, add a ``/`` on " +"a line by itself after the last parameter, indented the same as the " "parameter lines." msgstr "" #: ../../howto/clinic.rst:344 msgid "" -"Currently this is all-or-nothing; either all parameters are positional-only," -" or none of them are. (In the future Argument Clinic may relax this " +"Currently this is all-or-nothing; either all parameters are positional-only, " +"or none of them are. (In the future Argument Clinic may relax this " "restriction.)" msgstr "" @@ -446,11 +444,11 @@ msgstr "" #: ../../howto/clinic.rst:368 msgid "" "Here's how to add a per-parameter docstring. The first line of the per-" -"parameter docstring must be indented further than the parameter definition." -" The left margin of this first line establishes the left margin for the " -"whole per-parameter docstring; all the text you write will be outdented by " -"this amount. You can write as much text as you like, across multiple lines " -"if you wish." +"parameter docstring must be indented further than the parameter definition. " +"The left margin of this first line establishes the left margin for the whole " +"per-parameter docstring; all the text you write will be outdented by this " +"amount. You can write as much text as you like, across multiple lines if " +"you wish." msgstr "" #: ../../howto/clinic.rst:392 @@ -483,32 +481,31 @@ msgstr "" #: ../../howto/clinic.rst:424 msgid "" "First, ensure both places use the same argument-parsing function. The " -"existing code must call either :c:func:`PyArg_ParseTuple` or " -":c:func:`PyArg_ParseTupleAndKeywords`; ensure that the code generated by " -"Argument Clinic calls the *exact* same function." +"existing code must call either :c:func:`PyArg_ParseTuple` or :c:func:" +"`PyArg_ParseTupleAndKeywords`; ensure that the code generated by Argument " +"Clinic calls the *exact* same function." msgstr "" #: ../../howto/clinic.rst:430 msgid "" -"Second, the format string passed in to :c:func:`PyArg_ParseTuple` or " -":c:func:`PyArg_ParseTupleAndKeywords` should be *exactly* the same as the " -"hand-written one in the existing function, up to the colon or semi-colon." +"Second, the format string passed in to :c:func:`PyArg_ParseTuple` or :c:func:" +"`PyArg_ParseTupleAndKeywords` should be *exactly* the same as the hand-" +"written one in the existing function, up to the colon or semi-colon." msgstr "" #: ../../howto/clinic.rst:435 msgid "" "(Argument Clinic always generates its format strings with a ``:`` followed " -"by the name of the function. If the existing code's format string ends with" -" ``;``, to provide usage help, this change is harmless—don't worry about " -"it.)" +"by the name of the function. If the existing code's format string ends with " +"``;``, to provide usage help, this change is harmless—don't worry about it.)" msgstr "" #: ../../howto/clinic.rst:440 msgid "" "Third, for parameters whose format units require two arguments (like a " "length variable, or an encoding string, or a pointer to a conversion " -"function), ensure that the second argument is *exactly* the same between the" -" two invocations." +"function), ensure that the second argument is *exactly* the same between the " +"two invocations." msgstr "" #: ../../howto/clinic.rst:445 @@ -520,15 +517,15 @@ msgstr "" #: ../../howto/clinic.rst:452 msgid "" -"This static structure should be *exactly* the same as the existing static " -":c:type:`PyMethodDef` structure for this builtin." +"This static structure should be *exactly* the same as the existing static :c:" +"type:`PyMethodDef` structure for this builtin." msgstr "" #: ../../howto/clinic.rst:455 msgid "" "If any of these items differ in *any way*, adjust your Argument Clinic " -"function specification and rerun ``Tools/clinic/clinic.py`` until they *are*" -" the same." +"function specification and rerun ``Tools/clinic/clinic.py`` until they *are* " +"the same." msgstr "" #: ../../howto/clinic.rst:460 @@ -544,8 +541,8 @@ msgstr "" #: ../../howto/clinic.rst:468 msgid "" -"Let's reiterate, just because it's kind of weird. Your code should now look" -" like this::" +"Let's reiterate, just because it's kind of weird. Your code should now look " +"like this::" msgstr "" #: ../../howto/clinic.rst:477 @@ -560,8 +557,8 @@ msgid "" "Remember the macro with the :c:type:`PyMethodDef` structure for this " "function? Find the existing :c:type:`PyMethodDef` structure for this " "function and replace it with a reference to the macro. (If the builtin is " -"at module scope, this will probably be very near the end of the file; if the" -" builtin is a class method, this will probably be below but relatively near " +"at module scope, this will probably be very near the end of the file; if the " +"builtin is a class method, this will probably be below but relatively near " "to the implementation.)" msgstr "" @@ -631,8 +628,8 @@ msgstr "" #: ../../howto/clinic.rst:570 msgid "" -"In case you're curious, this is implemented in ``from_builtin()`` in " -"``Lib/inspect.py``." +"In case you're curious, this is implemented in ``from_builtin()`` in ``Lib/" +"inspect.py``." msgstr "" #: ../../howto/clinic.rst:573 @@ -653,8 +650,8 @@ msgid "" "names used for the C functions. Just add the keyword ``\"as\"`` to your " "function declaration line, followed by the function name you wish to use. " "Argument Clinic will use that function name for the base (generated) " -"function, then add ``\"_impl\"`` to the end and use that for the name of the" -" impl function." +"function, then add ``\"_impl\"`` to the end and use that for the name of the " +"impl function." msgstr "" #: ../../howto/clinic.rst:588 @@ -693,11 +690,11 @@ msgstr "" #: ../../howto/clinic.rst:623 msgid "" -"To convert a function parsing its arguments with " -":c:func:`PyArg_UnpackTuple`, simply write out all the arguments, specifying " -"each as an ``object``. You may specify the ``type`` argument to cast the " -"type as appropriate. All arguments should be marked positional-only (add a " -"``/`` on a line by itself after the last argument)." +"To convert a function parsing its arguments with :c:func:" +"`PyArg_UnpackTuple`, simply write out all the arguments, specifying each as " +"an ``object``. You may specify the ``type`` argument to cast the type as " +"appropriate. All arguments should be marked positional-only (add a ``/`` on " +"a line by itself after the last argument)." msgstr "" #: ../../howto/clinic.rst:629 @@ -723,16 +720,16 @@ msgstr "" #: ../../howto/clinic.rst:642 msgid "" -"While functions using this approach can often be converted to use " -":c:func:`PyArg_ParseTupleAndKeywords`, optional arguments, and default " -"values, it's not always possible. Some of these legacy functions have " -"behaviors :c:func:`PyArg_ParseTupleAndKeywords` doesn't directly support. " -"The most obvious example is the builtin function ``range()``, which has an " -"optional argument on the *left* side of its required argument! Another " -"example is ``curses.window.addch()``, which has a group of two arguments " -"that must always be specified together. (The arguments are called ``x`` and" -" ``y``; if you call the function passing in ``x``, you must also pass in " -"``y``—and if you don't pass in ``x`` you may not pass in ``y`` either.)" +"While functions using this approach can often be converted to use :c:func:" +"`PyArg_ParseTupleAndKeywords`, optional arguments, and default values, it's " +"not always possible. Some of these legacy functions have behaviors :c:func:" +"`PyArg_ParseTupleAndKeywords` doesn't directly support. The most obvious " +"example is the builtin function ``range()``, which has an optional argument " +"on the *left* side of its required argument! Another example is ``curses." +"window.addch()``, which has a group of two arguments that must always be " +"specified together. (The arguments are called ``x`` and ``y``; if you call " +"the function passing in ``x``, you must also pass in ``y``—and if you don't " +"pass in ``x`` you may not pass in ``y`` either.)" msgstr "" #: ../../howto/clinic.rst:654 @@ -742,8 +739,7 @@ msgid "" "Argument Clinic supports this alternate approach to parsing, using what are " "called *optional groups*. Optional groups are groups of arguments that must " "all be passed in together. They can be to the left or the right of the " -"required arguments. They can *only* be used with positional-only " -"parameters." +"required arguments. They can *only* be used with positional-only parameters." msgstr "" #: ../../howto/clinic.rst:662 @@ -753,15 +749,15 @@ msgid "" "other approach for parsing arguments should *almost never* be converted to " "Argument Clinic using optional groups. Functions using optional groups " "currently cannot have accurate signatures in Python, because Python just " -"doesn't understand the concept. Please avoid using optional groups wherever" -" possible." +"doesn't understand the concept. Please avoid using optional groups wherever " +"possible." msgstr "" #: ../../howto/clinic.rst:671 msgid "" "To specify an optional group, add a ``[`` on a line by itself before the " -"parameters you wish to group together, and a ``]`` on a line by itself after" -" these parameters. As an example, here's how ``curses.window.addch`` uses " +"parameters you wish to group together, and a ``]`` on a line by itself after " +"these parameters. As an example, here's how ``curses.window.addch`` uses " "optional groups to make the first two parameters and the last parameter " "optional::" msgstr "" @@ -774,8 +770,8 @@ msgstr "Notas:" msgid "" "For every optional group, one additional parameter will be passed into the " "impl function representing the group. The parameter will be an int named " -"``group_{direction}_{number}``, where ``{direction}`` is either ``right`` or" -" ``left`` depending on whether the group is before or after the required " +"``group_{direction}_{number}``, where ``{direction}`` is either ``right`` or " +"``left`` depending on whether the group is before or after the required " "parameters, and ``{number}`` is a monotonically increasing number (starting " "at 1) indicating how far away the group is from the required parameters. " "When the impl is called, this parameter will be set to zero if this group " @@ -791,8 +787,8 @@ msgstr "" #: ../../howto/clinic.rst:716 msgid "" -"In the case of ambiguity, the argument parsing code favors parameters on the" -" left (before the required parameters)." +"In the case of ambiguity, the argument parsing code favors parameters on the " +"left (before the required parameters)." msgstr "" #: ../../howto/clinic.rst:719 @@ -852,8 +848,8 @@ msgstr "" #: ../../howto/clinic.rst:750 msgid "" "In a nutshell, the syntax for Argument Clinic (non-legacy) converters looks " -"like a Python function call. However, if there are no explicit arguments to" -" the function (all functions take their default values), you may omit the " +"like a Python function call. However, if there are no explicit arguments to " +"the function (all functions take their default values), you may omit the " "parentheses. Thus ``bool`` and ``bool()`` are exactly the same converters." msgstr "" @@ -865,19 +861,19 @@ msgstr "" #: ../../howto/clinic.rst:764 ../../howto/clinic.rst:1246 msgid "``c_default``" -msgstr "" +msgstr "``c_default``" #: ../../howto/clinic.rst:760 msgid "" "The default value for this parameter when defined in C. Specifically, this " -"will be the initializer for the variable declared in the \"parse function\"." -" See :ref:`the section on default values ` for how to use " -"this. Specified as a string." +"will be the initializer for the variable declared in the \"parse function" +"\". See :ref:`the section on default values ` for how to " +"use this. Specified as a string." msgstr "" #: ../../howto/clinic.rst:769 msgid "``annotation``" -msgstr "" +msgstr "``annotation``" #: ../../howto/clinic.rst:767 msgid "" @@ -887,13 +883,13 @@ msgstr "" #: ../../howto/clinic.rst:771 msgid "" -"In addition, some converters accept additional arguments. Here is a list of" -" these arguments, along with their meanings:" +"In addition, some converters accept additional arguments. Here is a list of " +"these arguments, along with their meanings:" msgstr "" #: ../../howto/clinic.rst:780 msgid "``accept``" -msgstr "" +msgstr "``accept``" #: ../../howto/clinic.rst:775 msgid "" @@ -909,23 +905,23 @@ msgstr "" #: ../../howto/clinic.rst:785 msgid "``bitwise``" -msgstr "" +msgstr "``bitwise``" #: ../../howto/clinic.rst:783 msgid "" "Only supported for unsigned integers. The native integer value of this " -"Python argument will be written to the parameter without any range checking," -" even for negative values." +"Python argument will be written to the parameter without any range checking, " +"even for negative values." msgstr "" #: ../../howto/clinic.rst:790 ../../howto/clinic.rst:1260 msgid "``converter``" -msgstr "" +msgstr "``converter``" #: ../../howto/clinic.rst:788 msgid "" -"Only supported by the ``object`` converter. Specifies the name of a :ref:`C" -" \"converter function\" ` to use to convert this object to a " +"Only supported by the ``object`` converter. Specifies the name of a :ref:`C " +"\"converter function\" ` to use to convert this object to a " "native type." msgstr "" @@ -941,28 +937,28 @@ msgstr "" #: ../../howto/clinic.rst:799 msgid "``subclass_of``" -msgstr "" +msgstr "``subclass_of``" #: ../../howto/clinic.rst:798 msgid "" -"Only supported for the ``object`` converter. Requires that the Python value" -" be a subclass of a Python type, as expressed in C." +"Only supported for the ``object`` converter. Requires that the Python value " +"be a subclass of a Python type, as expressed in C." msgstr "" #: ../../howto/clinic.rst:804 ../../howto/clinic.rst:1232 msgid "``type``" -msgstr "" +msgstr "``type``" #: ../../howto/clinic.rst:802 msgid "" "Only supported for the ``object`` and ``self`` converters. Specifies the C " -"type that will be used to declare the variable. Default value is " -"``\"PyObject *\"``." +"type that will be used to declare the variable. Default value is ``" +"\"PyObject *\"``." msgstr "" #: ../../howto/clinic.rst:810 msgid "``zeroes``" -msgstr "" +msgstr "``zeroes``" #: ../../howto/clinic.rst:807 msgid "" @@ -985,9 +981,9 @@ msgstr "" #: ../../howto/clinic.rst:820 msgid "" -"Below is a table showing the mapping of legacy converters into real Argument" -" Clinic converters. On the left is the legacy converter, on the right is " -"the text you'd replace it with." +"Below is a table showing the mapping of legacy converters into real Argument " +"Clinic converters. On the left is the legacy converter, on the right is the " +"text you'd replace it with." msgstr "" #: ../../howto/clinic.rst:825 @@ -996,7 +992,7 @@ msgstr "``'B'``" #: ../../howto/clinic.rst:825 msgid "``unsigned_char(bitwise=True)``" -msgstr "" +msgstr "``unsigned_char(bitwise=True)``" #: ../../howto/clinic.rst:826 msgid "``'b'``" @@ -1004,7 +1000,7 @@ msgstr "``'b'``" #: ../../howto/clinic.rst:826 msgid "``unsigned_char``" -msgstr "" +msgstr "``unsigned_char``" #: ../../howto/clinic.rst:827 msgid "``'c'``" @@ -1012,15 +1008,15 @@ msgstr "``'c'``" #: ../../howto/clinic.rst:827 msgid "``char``" -msgstr "" +msgstr "``char``" #: ../../howto/clinic.rst:828 msgid "``'C'``" -msgstr "" +msgstr "``'C'``" #: ../../howto/clinic.rst:828 msgid "``int(accept={str})``" -msgstr "" +msgstr "``int(accept={str})``" #: ../../howto/clinic.rst:829 msgid "``'d'``" @@ -1028,7 +1024,7 @@ msgstr "``'d'``" #: ../../howto/clinic.rst:829 msgid "``double``" -msgstr "" +msgstr "``double``" #: ../../howto/clinic.rst:830 msgid "``'D'``" @@ -1036,19 +1032,19 @@ msgstr "``'D'``" #: ../../howto/clinic.rst:830 msgid "``Py_complex``" -msgstr "" +msgstr "``Py_complex``" #: ../../howto/clinic.rst:831 msgid "``'es'``" -msgstr "" +msgstr "``'es'``" #: ../../howto/clinic.rst:831 msgid "``str(encoding='name_of_encoding')``" -msgstr "" +msgstr "``str(encoding='name_of_encoding')``" #: ../../howto/clinic.rst:832 msgid "``'es#'``" -msgstr "" +msgstr "``'es#'``" #: ../../howto/clinic.rst:832 msgid "``str(encoding='name_of_encoding', zeroes=True)``" @@ -1056,7 +1052,7 @@ msgstr "" #: ../../howto/clinic.rst:833 msgid "``'et'``" -msgstr "" +msgstr "``'et'``" #: ../../howto/clinic.rst:833 msgid "``str(encoding='name_of_encoding', accept={bytes, bytearray, str})``" @@ -1064,7 +1060,7 @@ msgstr "" #: ../../howto/clinic.rst:834 msgid "``'et#'``" -msgstr "" +msgstr "``'et#'``" #: ../../howto/clinic.rst:834 msgid "" @@ -1078,7 +1074,7 @@ msgstr "``'f'``" #: ../../howto/clinic.rst:835 msgid "``float``" -msgstr "" +msgstr "``float``" #: ../../howto/clinic.rst:836 msgid "``'h'``" @@ -1086,7 +1082,7 @@ msgstr "``'h'``" #: ../../howto/clinic.rst:836 msgid "``short``" -msgstr "" +msgstr "``short``" #: ../../howto/clinic.rst:837 msgid "``'H'``" @@ -1094,7 +1090,7 @@ msgstr "``'H'``" #: ../../howto/clinic.rst:837 msgid "``unsigned_short(bitwise=True)``" -msgstr "" +msgstr "``unsigned_short(bitwise=True)``" #: ../../howto/clinic.rst:838 msgid "``'i'``" @@ -1102,7 +1098,7 @@ msgstr "``'i'``" #: ../../howto/clinic.rst:838 msgid "``int``" -msgstr "" +msgstr "``int``" #: ../../howto/clinic.rst:839 msgid "``'I'``" @@ -1110,23 +1106,23 @@ msgstr "``'I'``" #: ../../howto/clinic.rst:839 msgid "``unsigned_int(bitwise=True)``" -msgstr "" +msgstr "``unsigned_int(bitwise=True)``" #: ../../howto/clinic.rst:840 msgid "``'k'``" -msgstr "" +msgstr "``'k'``" #: ../../howto/clinic.rst:840 msgid "``unsigned_long(bitwise=True)``" -msgstr "" +msgstr "``unsigned_long(bitwise=True)``" #: ../../howto/clinic.rst:841 msgid "``'K'``" -msgstr "" +msgstr "``'K'``" #: ../../howto/clinic.rst:841 msgid "``unsigned_long_long(bitwise=True)``" -msgstr "" +msgstr "``unsigned_long_long(bitwise=True)``" #: ../../howto/clinic.rst:842 msgid "``'l'``" @@ -1134,7 +1130,7 @@ msgstr "``'l'``" #: ../../howto/clinic.rst:842 msgid "``long``" -msgstr "" +msgstr "``long``" #: ../../howto/clinic.rst:843 msgid "``'L'``" @@ -1146,51 +1142,51 @@ msgstr "" #: ../../howto/clinic.rst:844 msgid "``'n'``" -msgstr "" +msgstr "``'n'``" #: ../../howto/clinic.rst:844 msgid "``Py_ssize_t``" -msgstr "" +msgstr "``Py_ssize_t``" #: ../../howto/clinic.rst:845 msgid "``'O'``" -msgstr "" +msgstr "``'O'``" #: ../../howto/clinic.rst:845 msgid "``object``" -msgstr "" +msgstr "``object``" #: ../../howto/clinic.rst:846 msgid "``'O!'``" -msgstr "" +msgstr "``'O!'``" #: ../../howto/clinic.rst:846 msgid "``object(subclass_of='&PySomething_Type')``" -msgstr "" +msgstr "``object(subclass_of='&PySomething_Type')``" #: ../../howto/clinic.rst:847 msgid "``'O&'``" -msgstr "" +msgstr "``'O&'``" #: ../../howto/clinic.rst:847 msgid "``object(converter='name_of_c_function')``" -msgstr "" +msgstr "``object(converter='name_of_c_function')``" #: ../../howto/clinic.rst:848 msgid "``'p'``" -msgstr "" +msgstr "``'p'``" #: ../../howto/clinic.rst:848 msgid "``bool``" -msgstr "" +msgstr "``bool``" #: ../../howto/clinic.rst:849 msgid "``'S'``" -msgstr "" +msgstr "``'S'``" #: ../../howto/clinic.rst:849 msgid "``PyBytesObject``" -msgstr "" +msgstr "``PyBytesObject``" #: ../../howto/clinic.rst:850 msgid "``'s'``" @@ -1198,19 +1194,19 @@ msgstr "``'s'``" #: ../../howto/clinic.rst:850 msgid "``str``" -msgstr "" +msgstr "``str``" #: ../../howto/clinic.rst:851 msgid "``'s#'``" -msgstr "" +msgstr "``'s#'``" #: ../../howto/clinic.rst:851 msgid "``str(zeroes=True)``" -msgstr "" +msgstr "``str(zeroes=True)``" #: ../../howto/clinic.rst:852 msgid "``'s*'``" -msgstr "" +msgstr "``'s*'``" #: ../../howto/clinic.rst:852 msgid "``Py_buffer(accept={buffer, str})``" @@ -1222,7 +1218,7 @@ msgstr "``'U'``" #: ../../howto/clinic.rst:853 msgid "``unicode``" -msgstr "" +msgstr "``unicode``" #: ../../howto/clinic.rst:854 msgid "``'u'``" @@ -1230,43 +1226,43 @@ msgstr "``'u'``" #: ../../howto/clinic.rst:854 msgid "``Py_UNICODE``" -msgstr "" +msgstr "``Py_UNICODE``" #: ../../howto/clinic.rst:855 msgid "``'u#'``" -msgstr "" +msgstr "``'u#'``" #: ../../howto/clinic.rst:855 msgid "``Py_UNICODE(zeroes=True)``" -msgstr "" +msgstr "``Py_UNICODE(zeroes=True)``" #: ../../howto/clinic.rst:856 msgid "``'w*'``" -msgstr "" +msgstr "``'w*'``" #: ../../howto/clinic.rst:856 msgid "``Py_buffer(accept={rwbuffer})``" -msgstr "" +msgstr "``Py_buffer(accept={rwbuffer})``" #: ../../howto/clinic.rst:857 msgid "``'Y'``" -msgstr "" +msgstr "``'Y'``" #: ../../howto/clinic.rst:857 msgid "``PyByteArrayObject``" -msgstr "" +msgstr "``PyByteArrayObject``" #: ../../howto/clinic.rst:858 msgid "``'y'``" -msgstr "" +msgstr "``'y'``" #: ../../howto/clinic.rst:858 msgid "``str(accept={bytes})``" -msgstr "" +msgstr "``str(accept={bytes})``" #: ../../howto/clinic.rst:859 msgid "``'y#'``" -msgstr "" +msgstr "``'y#'``" #: ../../howto/clinic.rst:859 msgid "``str(accept={robuffer}, zeroes=True)``" @@ -1274,15 +1270,15 @@ msgstr "" #: ../../howto/clinic.rst:860 msgid "``'y*'``" -msgstr "" +msgstr "``'y*'``" #: ../../howto/clinic.rst:860 msgid "``Py_buffer``" -msgstr "" +msgstr "``Py_buffer``" #: ../../howto/clinic.rst:861 msgid "``'Z'``" -msgstr "" +msgstr "``'Z'``" #: ../../howto/clinic.rst:861 msgid "``Py_UNICODE(accept={str, NoneType})``" @@ -1290,7 +1286,7 @@ msgstr "" #: ../../howto/clinic.rst:862 msgid "``'Z#'``" -msgstr "" +msgstr "``'Z#'``" #: ../../howto/clinic.rst:862 msgid "``Py_UNICODE(accept={str, NoneType}, zeroes=True)``" @@ -1298,7 +1294,7 @@ msgstr "" #: ../../howto/clinic.rst:863 msgid "``'z'``" -msgstr "" +msgstr "``'z'``" #: ../../howto/clinic.rst:863 msgid "``str(accept={str, NoneType})``" @@ -1306,7 +1302,7 @@ msgstr "" #: ../../howto/clinic.rst:864 msgid "``'z#'``" -msgstr "" +msgstr "``'z#'``" #: ../../howto/clinic.rst:864 msgid "``str(accept={str, NoneType}, zeroes=True)``" @@ -1314,7 +1310,7 @@ msgstr "" #: ../../howto/clinic.rst:865 msgid "``'z*'``" -msgstr "" +msgstr "``'z*'``" #: ../../howto/clinic.rst:865 msgid "``Py_buffer(accept={buffer, str, NoneType})``" @@ -1328,10 +1324,10 @@ msgstr "" #: ../../howto/clinic.rst:881 msgid "" -"Argument Clinic will show you all the converters it has available. For each" -" converter it'll show you all the parameters it accepts, along with the " -"default value for each parameter. Just run ``Tools/clinic/clinic.py " -"--converters`` to see the full list." +"Argument Clinic will show you all the converters it has available. For each " +"converter it'll show you all the parameters it accepts, along with the " +"default value for each parameter. Just run ``Tools/clinic/clinic.py --" +"converters`` to see the full list." msgstr "" #: ../../howto/clinic.rst:887 @@ -1340,10 +1336,10 @@ msgstr "" #: ../../howto/clinic.rst:889 msgid "" -"When using the ``Py_buffer`` converter (or the ``'s*'``, ``'w*'``, ``'*y'``," -" or ``'z*'`` legacy converters), you *must* not call " -":c:func:`PyBuffer_Release` on the provided buffer. Argument Clinic generates" -" code that does it for you (in the parsing function)." +"When using the ``Py_buffer`` converter (or the ``'s*'``, ``'w*'``, ``'*y'``, " +"or ``'z*'`` legacy converters), you *must* not call :c:func:" +"`PyBuffer_Release` on the provided buffer. Argument Clinic generates code " +"that does it for you (in the parsing function)." msgstr "" #: ../../howto/clinic.rst:897 @@ -1378,10 +1374,10 @@ msgstr "" #: ../../howto/clinic.rst:916 msgid "" -"One possible problem with using Argument Clinic: it takes away some possible" -" flexibility for the format units starting with ``e``. When writing a " -"``PyArg_Parse`` call by hand, you could theoretically decide at runtime what" -" encoding string to pass in to :c:func:`PyArg_ParseTuple`. But now this " +"One possible problem with using Argument Clinic: it takes away some possible " +"flexibility for the format units starting with ``e``. When writing a " +"``PyArg_Parse`` call by hand, you could theoretically decide at runtime what " +"encoding string to pass in to :c:func:`PyArg_ParseTuple`. But now this " "string must be hard-coded at Argument-Clinic-preprocessing-time. This " "limitation is deliberate; it made supporting this format unit much easier, " "and may allow for future optimizations. This restriction doesn't seem " @@ -1405,8 +1401,8 @@ msgstr "" #: ../../howto/clinic.rst:948 msgid "" -"There's also special support for a default value of ``NULL``, and for simple" -" expressions, documented in the following sections." +"There's also special support for a default value of ``NULL``, and for simple " +"expressions, documented in the following sections." msgstr "" #: ../../howto/clinic.rst:953 @@ -1431,8 +1427,8 @@ msgstr "" msgid "" "The default value for a parameter can be more than just a literal value. It " "can be an entire expression, using math operators and looking up attributes " -"on objects. However, this support isn't exactly simple, because of some " -"non-obvious semantics." +"on objects. However, this support isn't exactly simple, because of some non-" +"obvious semantics." msgstr "" #: ../../howto/clinic.rst:970 @@ -1441,10 +1437,10 @@ msgstr "" #: ../../howto/clinic.rst:976 msgid "" -"``sys.maxsize`` can have different values on different platforms. Therefore" -" Argument Clinic can't simply evaluate that expression locally and hard-code" -" it in C. So it stores the default in such a way that it will get evaluated" -" at runtime, when the user asks for the function's signature." +"``sys.maxsize`` can have different values on different platforms. Therefore " +"Argument Clinic can't simply evaluate that expression locally and hard-code " +"it in C. So it stores the default in such a way that it will get evaluated " +"at runtime, when the user asks for the function's signature." msgstr "" #: ../../howto/clinic.rst:981 @@ -1456,19 +1452,19 @@ msgstr "" #: ../../howto/clinic.rst:989 msgid "" -"If the symbol isn't found in the current module, it fails over to looking in" -" ``sys.modules``. That's how it can find ``sys.maxsize`` for example. " +"If the symbol isn't found in the current module, it fails over to looking in " +"``sys.modules``. That's how it can find ``sys.maxsize`` for example. " "(Since you don't know in advance what modules the user will load into their " -"interpreter, it's best to restrict yourself to modules that are preloaded by" -" Python itself.)" +"interpreter, it's best to restrict yourself to modules that are preloaded by " +"Python itself.)" msgstr "" #: ../../howto/clinic.rst:994 msgid "" "Evaluating default values only at runtime means Argument Clinic can't " "compute the correct equivalent C default value. So you need to tell it " -"explicitly. When you use an expression, you must also specify the equivalent" -" expression in C, using the ``c_default`` parameter to the converter:" +"explicitly. When you use an expression, you must also specify the equivalent " +"expression in C, using the ``c_default`` parameter to the converter:" msgstr "" #: ../../howto/clinic.rst:1003 @@ -1481,8 +1477,8 @@ msgstr "" #: ../../howto/clinic.rst:1008 msgid "" -"Finally, because expressions must be representable as static C values, there" -" are many restrictions on legal expressions. Here's a list of Python " +"Finally, because expressions must be representable as static C values, there " +"are many restrictions on legal expressions. Here's a list of Python " "features you're not permitted to use:" msgstr "" @@ -1515,8 +1511,8 @@ msgid "" "By default the impl function Argument Clinic generates for you returns " "``PyObject *``. But your C function often computes some C type, then " "converts it into the ``PyObject *`` at the last moment. Argument Clinic " -"handles converting your inputs from Python types into native C types—why not" -" have it convert your return value from a native C type into a Python type " +"handles converting your inputs from Python types into native C types—why not " +"have it convert your return value from a native C type into a Python type " "too?" msgstr "" @@ -1529,8 +1525,8 @@ msgstr "" #: ../../howto/clinic.rst:1033 msgid "" -"The syntax for return converters is similar to that of parameter converters." -" You specify the return converter like it was a return annotation on the " +"The syntax for return converters is similar to that of parameter converters. " +"You specify the return converter like it was a return annotation on the " "function itself. Return converters behave much the same as parameter " "converters; they take arguments, the arguments are all keyword-only, and if " "you're not changing any of the default arguments you can omit the " @@ -1545,15 +1541,15 @@ msgstr "" #: ../../howto/clinic.rst:1042 msgid "" -"There's one additional complication when using return converters: how do you" -" indicate an error has occurred? Normally, a function returns a valid " -"(non-``NULL``) pointer for success, and ``NULL`` for failure. But if you " -"use an integer return converter, all integers are valid. How can Argument " -"Clinic detect an error? Its solution: each return converter implicitly " -"looks for a special value that indicates an error. If you return that " -"value, and an error has been set (``PyErr_Occurred()`` returns a true " -"value), then the generated code will propagate the error. Otherwise it will" -" encode the value you return like normal." +"There's one additional complication when using return converters: how do you " +"indicate an error has occurred? Normally, a function returns a valid (non-" +"``NULL``) pointer for success, and ``NULL`` for failure. But if you use an " +"integer return converter, all integers are valid. How can Argument Clinic " +"detect an error? Its solution: each return converter implicitly looks for a " +"special value that indicates an error. If you return that value, and an " +"error has been set (``PyErr_Occurred()`` returns a true value), then the " +"generated code will propagate the error. Otherwise it will encode the value " +"you return like normal." msgstr "" #: ../../howto/clinic.rst:1051 @@ -1563,8 +1559,8 @@ msgstr "" #: ../../howto/clinic.rst:1066 msgid "" "None of these take parameters. For the first three, return -1 to indicate " -"error. For ``DecodeFSDefault``, the return type is ``const char *``; return" -" a ``NULL`` pointer to indicate an error." +"error. For ``DecodeFSDefault``, the return type is ``const char *``; return " +"a ``NULL`` pointer to indicate an error." msgstr "" #: ../../howto/clinic.rst:1070 @@ -1634,9 +1630,9 @@ msgstr "" #: ../../howto/clinic.rst:1113 msgid "" -"(The functions can be in different modules or classes. I wrote " -"``module.class`` in the sample just to illustrate that you must use the full" -" path to *both* functions.)" +"(The functions can be in different modules or classes. I wrote ``module." +"class`` in the sample just to illustrate that you must use the full path to " +"*both* functions.)" msgstr "" #: ../../howto/clinic.rst:1117 @@ -1647,8 +1643,8 @@ msgstr "" #: ../../howto/clinic.rst:1120 msgid "" -"Also, the function you are cloning from must have been previously defined in" -" the current file." +"Also, the function you are cloning from must have been previously defined in " +"the current file." msgstr "" #: ../../howto/clinic.rst:1124 @@ -1657,8 +1653,8 @@ msgstr "" #: ../../howto/clinic.rst:1126 msgid "" -"The rest of the advanced topics require you to write Python code which lives" -" inside your C file and modifies Argument Clinic's runtime state. This is " +"The rest of the advanced topics require you to write Python code which lives " +"inside your C file and modifies Argument Clinic's runtime state. This is " "simple: you simply define a Python block." msgstr "" @@ -1671,8 +1667,8 @@ msgstr "" #: ../../howto/clinic.rst:1137 msgid "" "All the code inside the Python block is executed at the time it's parsed. " -"All text written to stdout inside the block is redirected into the " -"\"output\" after the block." +"All text written to stdout inside the block is redirected into the \"output" +"\" after the block." msgstr "" #: ../../howto/clinic.rst:1141 @@ -1692,21 +1688,21 @@ msgid "" "the \"pointer to an instance\" you specified when you declared the type. " "However, you can override Argument Clinic's converter and specify one " "yourself. Just add your own ``self`` parameter as the first parameter in a " -"block, and ensure that its converter is an instance of ``self_converter`` or" -" a subclass thereof." +"block, and ensure that its converter is an instance of ``self_converter`` or " +"a subclass thereof." msgstr "" #: ../../howto/clinic.rst:1163 msgid "" -"What's the point? This lets you override the type of ``self``, or give it a" -" different default name." +"What's the point? This lets you override the type of ``self``, or give it a " +"different default name." msgstr "" #: ../../howto/clinic.rst:1166 msgid "" -"How do you specify the custom type you want to cast ``self`` to? If you only" -" have one or two functions with the same type for ``self``, you can directly" -" use Argument Clinic's existing ``self`` converter, passing in the type you " +"How do you specify the custom type you want to cast ``self`` to? If you only " +"have one or two functions with the same type for ``self``, you can directly " +"use Argument Clinic's existing ``self`` converter, passing in the type you " "want to use as the ``type`` parameter::" msgstr "" @@ -1741,8 +1737,8 @@ msgstr "" #: ../../howto/clinic.rst:1219 msgid "" -"You shouldn't subclass ``CConverter.__init__``. Instead, you should write a" -" ``converter_init()`` function. ``converter_init()`` always accepts a " +"You shouldn't subclass ``CConverter.__init__``. Instead, you should write a " +"``converter_init()`` function. ``converter_init()`` always accepts a " "``self`` parameter; after that, all additional parameters *must* be keyword-" "only. Any arguments passed in to the converter in Argument Clinic will be " "passed along to your ``converter_init()``." @@ -1767,13 +1763,13 @@ msgstr "``default``" #: ../../howto/clinic.rst:1235 msgid "" -"The Python default value for this parameter, as a Python value. Or the magic" -" value ``unspecified`` if there is no default." +"The Python default value for this parameter, as a Python value. Or the magic " +"value ``unspecified`` if there is no default." msgstr "" #: ../../howto/clinic.rst:1241 msgid "``py_default``" -msgstr "" +msgstr "``py_default``" #: ../../howto/clinic.rst:1239 msgid "" @@ -1783,23 +1779,23 @@ msgstr "" #: ../../howto/clinic.rst:1244 msgid "" -"``default`` as it should appear in C code, as a string. Or ``None`` if there" -" is no default." +"``default`` as it should appear in C code, as a string. Or ``None`` if there " +"is no default." msgstr "" #: ../../howto/clinic.rst:1257 msgid "``c_ignored_default``" -msgstr "" +msgstr "``c_ignored_default``" #: ../../howto/clinic.rst:1249 msgid "" "The default value used to initialize the C variable when there is no " "default, but not specifying a default may result in an \"uninitialized " -"variable\" warning. This can easily happen when using option " -"groups—although properly-written code will never actually use this value, " -"the variable does get passed in to the impl, and the C compiler will " -"complain about the \"use\" of the uninitialized value. This value should " -"always be a non-empty string." +"variable\" warning. This can easily happen when using option groups—" +"although properly-written code will never actually use this value, the " +"variable does get passed in to the impl, and the C compiler will complain " +"about the \"use\" of the uninitialized value. This value should always be a " +"non-empty string." msgstr "" #: ../../howto/clinic.rst:1260 @@ -1808,7 +1804,7 @@ msgstr "" #: ../../howto/clinic.rst:1265 msgid "``impl_by_reference``" -msgstr "" +msgstr "``impl_by_reference``" #: ../../howto/clinic.rst:1263 msgid "" @@ -1818,7 +1814,7 @@ msgstr "" #: ../../howto/clinic.rst:1271 msgid "``parse_by_reference``" -msgstr "" +msgstr "``parse_by_reference``" #: ../../howto/clinic.rst:1268 msgid "" @@ -1828,8 +1824,8 @@ msgstr "" #: ../../howto/clinic.rst:1273 msgid "" -"Here's the simplest example of a custom converter, from " -"``Modules/zlibmodule.c``::" +"Here's the simplest example of a custom converter, from ``Modules/zlibmodule." +"c``::" msgstr "" #: ../../howto/clinic.rst:1284 @@ -1863,9 +1859,9 @@ msgstr "" msgid "" "Return converters must subclass ``CReturnConverter``. There are no examples " "yet of custom return converters, because they are not widely used yet. If " -"you wish to write your own return converter, please read " -"``Tools/clinic/clinic.py``, specifically the implementation of " -"``CReturnConverter`` and all its subclasses." +"you wish to write your own return converter, please read ``Tools/clinic/" +"clinic.py``, specifically the implementation of ``CReturnConverter`` and all " +"its subclasses." msgstr "" #: ../../howto/clinic.rst:1310 @@ -1978,9 +1974,9 @@ msgid "" "of statement the field is. Field names that end in ``\"_prototype\"`` " "represent forward declarations of that thing, without the actual body/data " "of the thing; field names that end in ``\"_definition\"`` represent the " -"actual definition of the thing, with the body/data of the thing. " -"(``\"methoddef\"`` is special, it's the only one that ends with " -"``\"_define\"``, representing that it's a preprocessor #define.)" +"actual definition of the thing, with the body/data of the thing. (``" +"\"methoddef\"`` is special, it's the only one that ends with ``\"_define" +"\"``, representing that it's a preprocessor #define.)" msgstr "" #: ../../howto/clinic.rst:1431 @@ -1996,38 +1992,38 @@ msgstr "" #: ../../howto/clinic.rst:1405 ../../howto/clinic.rst:1480 #: ../../howto/clinic.rst:1558 msgid "``block``" -msgstr "" +msgstr "``block``" #: ../../howto/clinic.rst:1404 msgid "" -"The default destination: printed in the output section of the current Clinic" -" block." +"The default destination: printed in the output section of the current Clinic " +"block." msgstr "" #: ../../howto/clinic.rst:1411 ../../howto/clinic.rst:1507 #: ../../howto/clinic.rst:1561 msgid "``buffer``" -msgstr "" +msgstr "``buffer``" #: ../../howto/clinic.rst:1408 msgid "" -"A text buffer where you can save text for later. Text sent here is appended" -" to the end of any existing text. It's an error to have any text left in " -"the buffer when Clinic finishes processing a file." +"A text buffer where you can save text for later. Text sent here is appended " +"to the end of any existing text. It's an error to have any text left in the " +"buffer when Clinic finishes processing a file." msgstr "" #: ../../howto/clinic.rst:1422 ../../howto/clinic.rst:1493 #: ../../howto/clinic.rst:1587 msgid "``file``" -msgstr "" +msgstr "``file``" #: ../../howto/clinic.rst:1414 msgid "" -"A separate \"clinic file\" that will be created automatically by Clinic. The" -" filename chosen for the file is ``{basename}.clinic{extension}``, where " -"``basename`` and ``extension`` were assigned the output from " -"``os.path.splitext()`` run on the current file. (Example: the ``file`` " -"destination for ``_pickle.c`` would be written to ``_pickle.clinic.c``.)" +"A separate \"clinic file\" that will be created automatically by Clinic. The " +"filename chosen for the file is ``{basename}.clinic{extension}``, where " +"``basename`` and ``extension`` were assigned the output from ``os.path." +"splitext()`` run on the current file. (Example: the ``file`` destination " +"for ``_pickle.c`` would be written to ``_pickle.clinic.c``.)" msgstr "" #: ../../howto/clinic.rst:1421 @@ -2039,26 +2035,25 @@ msgstr "" #: ../../howto/clinic.rst:1427 ../../howto/clinic.rst:1520 #: ../../howto/clinic.rst:1591 msgid "``two-pass``" -msgstr "" +msgstr "``two-pass``" #: ../../howto/clinic.rst:1425 msgid "" "A buffer like ``buffer``. However, a two-pass buffer can only be dumped " -"once, and it prints out all text sent to it during all processing, even from" -" Clinic blocks *after* the dumping point." +"once, and it prints out all text sent to it during all processing, even from " +"Clinic blocks *after* the dumping point." msgstr "" #: ../../howto/clinic.rst:1431 ../../howto/clinic.rst:1554 msgid "``suppress``" -msgstr "" +msgstr "``suppress``" #: ../../howto/clinic.rst:1430 msgid "The text is suppressed—thrown away." msgstr "" #: ../../howto/clinic.rst:1433 -msgid "" -"Clinic defines five new directives that let you reconfigure its output." +msgid "Clinic defines five new directives that let you reconfigure its output." msgstr "" #: ../../howto/clinic.rst:1435 @@ -2120,8 +2115,8 @@ msgstr "" msgid "" "Designed to write everything to the \"clinic file\" that it can. You then " "``#include`` this file near the top of your file. You may need to rearrange " -"your file to make this work, though usually this just means creating forward" -" declarations for various ``typedef`` and ``PyTypeObject`` definitions." +"your file to make this work, though usually this just means creating forward " +"declarations for various ``typedef`` and ``PyTypeObject`` definitions." msgstr "" #: ../../howto/clinic.rst:1489 @@ -2169,7 +2164,7 @@ msgstr "" #: ../../howto/clinic.rst:1531 msgid "``partial-buffer``" -msgstr "" +msgstr "``partial-buffer``" #: ../../howto/clinic.rst:1523 msgid "" @@ -2243,7 +2238,7 @@ msgstr "" #: ../../howto/clinic.rst:1572 msgid "{path}" -msgstr "" +msgstr "{path}" #: ../../howto/clinic.rst:1573 msgid "The full path to the file, including directory and full filename." @@ -2288,8 +2283,8 @@ msgstr "" #: ../../howto/clinic.rst:1585 msgid "" "If there are no periods in the filename, {basename} and {filename} are the " -"same, and {extension} is empty. \"{basename}{extension}\" is always exactly" -" the same as \"{filename}\".\"" +"same, and {extension} is empty. \"{basename}{extension}\" is always exactly " +"the same as \"{filename}\".\"" msgstr "" #: ../../howto/clinic.rst:1590 @@ -2352,8 +2347,8 @@ msgid "" "This tells Clinic that the current contents of the output should be kept, " "unmodified. This is used internally by Clinic when dumping output into " "``file`` files; wrapping it in a Clinic block lets Clinic use its existing " -"checksum functionality to ensure the file was not modified by hand before it" -" gets overwritten." +"checksum functionality to ensure the file was not modified by hand before it " +"gets overwritten." msgstr "" #: ../../howto/clinic.rst:1636 @@ -2363,8 +2358,8 @@ msgstr "" #: ../../howto/clinic.rst:1638 msgid "" "If you're converting a function that isn't available on all platforms, " -"there's a trick you can use to make life a little easier. The existing code" -" probably looks like this::" +"there's a trick you can use to make life a little easier. The existing code " +"probably looks like this::" msgstr "" #: ../../howto/clinic.rst:1649 @@ -2381,15 +2376,15 @@ msgstr "" #: ../../howto/clinic.rst:1672 msgid "" -"Then, remove those three lines from the ``PyMethodDef`` structure, replacing" -" them with the macro Argument Clinic generated:" +"Then, remove those three lines from the ``PyMethodDef`` structure, replacing " +"them with the macro Argument Clinic generated:" msgstr "" #: ../../howto/clinic.rst:1679 msgid "" -"(You can find the real name for this macro inside the generated code. Or you" -" can calculate it yourself: it's the name of your function as defined on the" -" first line of your block, but with periods changed to underscores, " +"(You can find the real name for this macro inside the generated code. Or you " +"can calculate it yourself: it's the name of your function as defined on the " +"first line of your block, but with periods changed to underscores, " "uppercased, and ``\"_METHODDEF\"`` added to the end.)" msgstr "" @@ -2401,8 +2396,8 @@ msgstr "" #: ../../howto/clinic.rst:1687 msgid "" -"Here's where Argument Clinic gets very clever. It actually detects that the" -" Argument Clinic block might be deactivated by the ``#ifdef``. When that " +"Here's where Argument Clinic gets very clever. It actually detects that the " +"Argument Clinic block might be deactivated by the ``#ifdef``. When that " "happens, it generates a little extra code that looks like this::" msgstr "" diff --git a/howto/cporting.po b/howto/cporting.po index 9168a3d09..349890567 100644 --- a/howto/cporting.po +++ b/howto/cporting.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,7 +30,7 @@ msgstr "Portando Módulos de Extensão para o Python 3" #: ../../howto/cporting.rst:0 msgid "author" -msgstr "" +msgstr "autor" #: ../../howto/cporting.rst:9 msgid "Benjamin Peterson" @@ -42,8 +44,8 @@ msgstr "Resumo" msgid "" "Although changing the C-API was not one of Python 3's objectives, the many " "Python-level changes made leaving Python 2's API intact impossible. In " -"fact, some changes such as :func:`int` and :func:`long` unification are more" -" obvious on the C level. This document endeavors to document " +"fact, some changes such as :func:`int` and :func:`long` unification are more " +"obvious on the C level. This document endeavors to document " "incompatibilities and how they can be worked around." msgstr "" @@ -53,8 +55,8 @@ msgstr "" #: ../../howto/cporting.rst:25 msgid "" -"The easiest way to compile only some code for Python 3 is to check if " -":c:macro:`PY_MAJOR_VERSION` is greater than or equal to 3. ::" +"The easiest way to compile only some code for Python 3 is to check if :c:" +"macro:`PY_MAJOR_VERSION` is greater than or equal to 3. ::" msgstr "" #: ../../howto/cporting.rst:32 @@ -79,17 +81,17 @@ msgstr "" #: ../../howto/cporting.rst:46 msgid "" -"Python 3's :func:`str` type is equivalent to Python 2's :func:`unicode`; the" -" C functions are called ``PyUnicode_*`` for both. The old 8-bit string type" -" has become :func:`bytes`, with C functions called ``PyBytes_*``. Python " -"2.6 and later provide a compatibility header, :file:`bytesobject.h`, mapping" -" ``PyBytes`` names to ``PyString`` ones. For best compatibility with Python" -" 3, :c:type:`PyUnicode` should be used for textual data and " -":c:type:`PyBytes` for binary data. It's also important to remember that " -":c:type:`PyBytes` and :c:type:`PyUnicode` in Python 3 are not " -"interchangeable like :c:type:`PyString` and :c:type:`PyUnicode` are in " -"Python 2. The following example shows best practices with regards to " -":c:type:`PyUnicode`, :c:type:`PyString`, and :c:type:`PyBytes`. ::" +"Python 3's :func:`str` type is equivalent to Python 2's :func:`unicode`; the " +"C functions are called ``PyUnicode_*`` for both. The old 8-bit string type " +"has become :func:`bytes`, with C functions called ``PyBytes_*``. Python 2.6 " +"and later provide a compatibility header, :file:`bytesobject.h`, mapping " +"``PyBytes`` names to ``PyString`` ones. For best compatibility with Python " +"3, :c:type:`PyUnicode` should be used for textual data and :c:type:`PyBytes` " +"for binary data. It's also important to remember that :c:type:`PyBytes` " +"and :c:type:`PyUnicode` in Python 3 are not interchangeable like :c:type:" +"`PyString` and :c:type:`PyUnicode` are in Python 2. The following example " +"shows best practices with regards to :c:type:`PyUnicode`, :c:type:" +"`PyString`, and :c:type:`PyBytes`. ::" msgstr "" #: ../../howto/cporting.rst:95 @@ -110,11 +112,11 @@ msgstr "" #: ../../howto/cporting.rst:106 msgid "" -"Python 3 has a revamped extension module initialization system. (See " -":pep:`3121`.) Instead of storing module state in globals, they should be " -"stored in an interpreter specific structure. Creating modules that act " -"correctly in both Python 2 and Python 3 is tricky. The following simple " -"example demonstrates how. ::" +"Python 3 has a revamped extension module initialization system. (See :pep:" +"`3121`.) Instead of storing module state in globals, they should be stored " +"in an interpreter specific structure. Creating modules that act correctly " +"in both Python 2 and Python 3 is tricky. The following simple example " +"demonstrates how. ::" msgstr "" #: ../../howto/cporting.rst:197 @@ -123,18 +125,18 @@ msgstr "" #: ../../howto/cporting.rst:199 msgid "" -"The :c:type:`Capsule` object was introduced in Python 3.1 and 2.7 to replace" -" :c:type:`CObject`. CObjects were useful, but the :c:type:`CObject` API was" -" problematic: it didn't permit distinguishing between valid CObjects, which " -"allowed mismatched CObjects to crash the interpreter, and some of its APIs " -"relied on undefined behavior in C. (For further reading on the rationale " -"behind Capsules, please see :issue:`5630`.)" +"The :c:type:`Capsule` object was introduced in Python 3.1 and 2.7 to " +"replace :c:type:`CObject`. CObjects were useful, but the :c:type:`CObject` " +"API was problematic: it didn't permit distinguishing between valid CObjects, " +"which allowed mismatched CObjects to crash the interpreter, and some of its " +"APIs relied on undefined behavior in C. (For further reading on the " +"rationale behind Capsules, please see :issue:`5630`.)" msgstr "" #: ../../howto/cporting.rst:206 msgid "" -"If you're currently using CObjects, and you want to migrate to 3.1 or newer," -" you'll need to switch to Capsules. :c:type:`CObject` was deprecated in 3.1 " +"If you're currently using CObjects, and you want to migrate to 3.1 or newer, " +"you'll need to switch to Capsules. :c:type:`CObject` was deprecated in 3.1 " "and 2.7 and completely removed in Python 3.2. If you only support 2.7, or " "3.1 and above, you can simply switch to :c:type:`Capsule`. If you need to " "support Python 3.0, or versions of Python earlier than 2.7, you'll have to " @@ -153,11 +155,10 @@ msgstr "" #: ../../howto/cporting.rst:223 msgid "" -":file:`capsulethunk.h` simulates Capsules using CObjects. However, " -":c:type:`CObject` provides no place to store the capsule's \"name\". As a " -"result the simulated :c:type:`Capsule` objects created by " -":file:`capsulethunk.h` behave slightly differently from real Capsules. " -"Specifically:" +":file:`capsulethunk.h` simulates Capsules using CObjects. However, :c:type:" +"`CObject` provides no place to store the capsule's \"name\". As a result " +"the simulated :c:type:`Capsule` objects created by :file:`capsulethunk.h` " +"behave slightly differently from real Capsules. Specifically:" msgstr "" #: ../../howto/cporting.rst:228 @@ -166,9 +167,9 @@ msgstr "" #: ../../howto/cporting.rst:230 msgid "" -"The name parameter passed in to :c:func:`PyCapsule_IsValid` and " -":c:func:`PyCapsule_GetPointer` is ignored, and no error checking of the name" -" is performed." +"The name parameter passed in to :c:func:`PyCapsule_IsValid` and :c:func:" +"`PyCapsule_GetPointer` is ignored, and no error checking of the name is " +"performed." msgstr "" #: ../../howto/cporting.rst:234 @@ -177,17 +178,16 @@ msgstr "" #: ../../howto/cporting.rst:236 msgid "" -":c:func:`PyCapsule_SetName` always raises an exception and returns failure." -" (Since there's no way to store a name in a CObject, noisy failure of " -":c:func:`PyCapsule_SetName` was deemed preferable to silent failure here. " -"If this is inconvenient, feel free to modify your local copy as you see " -"fit.)" +":c:func:`PyCapsule_SetName` always raises an exception and returns failure. " +"(Since there's no way to store a name in a CObject, noisy failure of :c:func:" +"`PyCapsule_SetName` was deemed preferable to silent failure here. If this " +"is inconvenient, feel free to modify your local copy as you see fit.)" msgstr "" #: ../../howto/cporting.rst:243 msgid "" -"You can find :file:`capsulethunk.h` in the Python source distribution as " -":source:`Doc/includes/capsulethunk.h`. We also include it here for your " +"You can find :file:`capsulethunk.h` in the Python source distribution as :" +"source:`Doc/includes/capsulethunk.h`. We also include it here for your " "convenience:" msgstr "" diff --git a/howto/curses.po b/howto/curses.po index 81ae310e0..cd4ffa8b8 100644 --- a/howto/curses.po +++ b/howto/curses.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 # Otávio Carneiro , 2019 -# +# Aline Balogh , 2019 +# Márcio Almeida , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Otávio Carneiro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Márcio Almeida , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -65,26 +68,31 @@ msgid "" "The curses library supplies a terminal-independent screen-painting and " "keyboard-handling facility for text-based terminals; such terminals include " "VT100s, the Linux console, and the simulated terminal provided by various " -"programs. Display terminals support various control codes to perform common" -" operations such as moving the cursor, scrolling the screen, and erasing " -"areas. Different terminals use widely differing codes, and often have their" -" own minor quirks." -msgstr "" -"A biblioteca curses fornece formas que facilitam a impressão no terminal e o tratamento de entrada do teclado para interfaces baseados em texto; tais como interfaces produzidas para terminais incluindo VT100s, o console Linux, e terminais fornecidos por vários programas. Terminais visuais suportam vários códigos de controle para executar várias operações comuns como mover o cursor, apagar áreas e rolagem de tela. \n" -"Diferentes terminais usam uma gama de diferentes códigos, e frequentemente têm suas próprias peculiaridades." +"programs. Display terminals support various control codes to perform common " +"operations such as moving the cursor, scrolling the screen, and erasing " +"areas. Different terminals use widely differing codes, and often have their " +"own minor quirks." +msgstr "" +"A biblioteca curses fornece formas que facilitam a impressão no terminal e o " +"tratamento de entrada do teclado para interfaces baseados em texto; tais " +"como interfaces produzidas para terminais incluindo VT100s, o console Linux, " +"e terminais fornecidos por vários programas. Terminais visuais suportam " +"vários códigos de controle para executar várias operações comuns como mover " +"o cursor, apagar áreas e rolagem de tela. \n" +"Diferentes terminais usam uma gama de diferentes códigos, e frequentemente " +"têm suas próprias peculiaridades." #: ../../howto/curses.rst:28 msgid "" "In a world of graphical displays, one might ask \"why bother\"? It's true " "that character-cell display terminals are an obsolete technology, but there " "are niches in which being able to do fancy things with them are still " -"valuable. One niche is on small-footprint or embedded Unixes that don't run" -" an X server. Another is tools such as OS installers and kernel " -"configurators that may have to run before any graphical support is " -"available." +"valuable. One niche is on small-footprint or embedded Unixes that don't run " +"an X server. Another is tools such as OS installers and kernel " +"configurators that may have to run before any graphical support is available." msgstr "" -"No mundo dos displays gráficos, uma pergunta pode vir à tona \"por que isso," -" jovem?\". É verdade que os terminais de exibição de caracteres são uma " +"No mundo dos displays gráficos, uma pergunta pode vir à tona \"por que isso, " +"jovem?\". É verdade que os terminais de exibição de caracteres são uma " "tecnologia obsoleta, mas há nichos nos quais a capacidade de fazer coisas " "sofisticadas com eles continua sendo valorizada. Um nicho são os programas " "de small-footprint ou os Unixes embarcados, os quais não rodas um servidor " @@ -101,29 +109,39 @@ msgid "" "various ways---adding text, erasing it, changing its appearance---and the " "curses library will figure out what control codes need to be sent to the " "terminal to produce the right output. curses doesn't provide many user-" -"interface concepts such as buttons, checkboxes, or dialogs; if you need such" -" features, consider a user interface library such as `Urwid " -"`_." -msgstr "" +"interface concepts such as buttons, checkboxes, or dialogs; if you need such " +"features, consider a user interface library such as `Urwid `_." +msgstr "" +"A biblioteca curses fornece funcionalidade bastante básica, proporcionando " +"ao programador uma abstração de um monitor contendo janelas de texto não " +"sobrepostas. Os conteúdos de uma janela podem ser modificados de diversas " +"formas --- adicionando texto, apagando-o, modificando sua aparência --- e a " +"biblioteca curses irá descobrir quais códigos de controle precisam ser " +"enviados ao terminal para produzir a saída correta. A biblioteca curses não " +"fornece muitos conceitos de interface de usuário como botões, caixas de " +"seleção ou diálogos; se você necessitar dessas funcionalidades, considere " +"uma biblioteca de interface de usuário como `Urwid `_." #: ../../howto/curses.rst:46 msgid "" "The curses library was originally written for BSD Unix; the later System V " "versions of Unix from AT&T added many enhancements and new functions. BSD " -"curses is no longer maintained, having been replaced by ncurses, which is an" -" open-source implementation of the AT&T interface. If you're using an open-" +"curses is no longer maintained, having been replaced by ncurses, which is an " +"open-source implementation of the AT&T interface. If you're using an open-" "source Unix such as Linux or FreeBSD, your system almost certainly uses " "ncurses. Since most current commercial Unix versions are based on System V " "code, all the functions described here will probably be available. The " "older versions of curses carried by some proprietary Unixes may not support " "everything, though." msgstr "" -"A biblioteca curses foi originalmente escrita para BSD Unix; as versões mais" -" recentes do System V do Unix da AT&T adicionaram muitos aprimoramentos e " +"A biblioteca curses foi originalmente escrita para BSD Unix; as versões mais " +"recentes do System V do Unix da AT&T adicionaram muitos aprimoramentos e " "novas funções. BSD curses não é mais mantida, tendo sido substituída por " "ncursess, que é uma implementação de código aberto da interface da AT&T. Se " -"você estiver usando um sistema operacional de código aberto baseado em Unix," -" tal como Linux ou FreeBSD, seu sistema provavelmente usa ncurses. Uma vez " +"você estiver usando um sistema operacional de código aberto baseado em Unix, " +"tal como Linux ou FreeBSD, seu sistema provavelmente usa ncurses. Uma vez " "que a maioria das versões comerciais do Unix são baseadas no código do " "sistema V, todas as funções descritas aqui provavelmente estarão " "disponíveis. No entanto, as versões antigas de curses carregadas por alguns " @@ -133,11 +151,17 @@ msgstr "" msgid "" "The Windows version of Python doesn't include the :mod:`curses` module. A " "ported version called `UniCurses `_ is " -"available. You could also try `the Console module `_ written by Fredrik Lundh, which doesn't use the same " +"available. You could also try `the Console module `_ written by Fredrik Lundh, which doesn't use the same " "API as curses but provides cursor-addressable text output and full support " "for mouse and keyboard input." msgstr "" +"A versão do Python para Windows não inclui o módulo :mod:`curses`. Uma " +"versão portada chamada `UniCurses `_ " +"está disponível. Você também pode tentar `the Console module `_ escrito por Fredrik Lundh, que não utiliza a " +"mesma API que a biblioteca curses mas fornece saída de texto endereçada ao " +"cursor e suporte completo a entradas via mouse e teclado." #: ../../howto/curses.rst:66 msgid "The Python curses module" @@ -147,12 +171,19 @@ msgstr "O módulo curses de Python" msgid "" "The Python module is a fairly simple wrapper over the C functions provided " "by curses; if you're already familiar with curses programming in C, it's " -"really easy to transfer that knowledge to Python. The biggest difference is" -" that the Python interface makes things simpler by merging different C " -"functions such as :c:func:`addstr`, :c:func:`mvaddstr`, and " -":c:func:`mvwaddstr` into a single :meth:`~curses.window.addstr` method. " -"You'll see this covered in more detail later." -msgstr "" +"really easy to transfer that knowledge to Python. The biggest difference is " +"that the Python interface makes things simpler by merging different C " +"functions such as :c:func:`addstr`, :c:func:`mvaddstr`, and :c:func:" +"`mvwaddstr` into a single :meth:`~curses.window.addstr` method. You'll see " +"this covered in more detail later." +msgstr "" +"O módulo Python é um pacote bastante simplessobre as funções em C fornecidas " +"pela curses; se você já está familiarizado com a programação de curses em C, " +"é muito fácil de transferir esse conhecimento para Python. A aior diferença " +"é que a interface Python torna as coisas mais simples por mesclar diferentes " +"funões em C como :c:func:`addstr`, :c:func:`mvaddstr`, e :c:func:`mvwaddstr` " +"num único método :meth:`~curses.window.addstr`. Você verá isso em mais " +"detalhes posteriormente." #: ../../howto/curses.rst:76 msgid "" @@ -181,17 +212,19 @@ msgid "" msgstr "" "Antes de qualquer coisa, curses precisa ser inicializada. Isto é feito " "chamando a função :func:`~curses.initscr`, a qual irá determinar o tipo de " -"terminal, e creat várias estruturas de dados internas. Se for bem sucedida, " -":func:`initscr` retorna um objeto janela representando a tela inteira; isso " -"é geralmente chamado ``stdscr`` depois do nome da variável C correspondente." +"terminal, e creat várias estruturas de dados internas. Se for bem sucedida, :" +"func:`initscr` retorna um objeto janela representando a tela inteira; isso é " +"geralmente chamado ``stdscr`` depois do nome da variável C correspondente." #: ../../howto/curses.rst:96 msgid "" "Usually curses applications turn off automatic echoing of keys to the " -"screen, in order to be able to read keys and only display them under certain" -" circumstances. This requires calling the :func:`~curses.noecho` function. " -"::" +"screen, in order to be able to read keys and only display them under certain " +"circumstances. This requires calling the :func:`~curses.noecho` function. ::" msgstr "" +"Geralmente aplicações curses desativam saídas automáticas de chaves para a " +"tela, para que seja possível ler chaves e somente exibi-las sob certas " +"circunstâncias. Isto requer a chamada da função :func:`~curses.noecho`. ::" #: ../../howto/curses.rst:103 msgid "" @@ -199,44 +232,67 @@ msgid "" "requiring the Enter key to be pressed; this is called cbreak mode, as " "opposed to the usual buffered input mode. ::" msgstr "" +"Aplicações também irão comumente precisar reagir a chaves instantaneamente, " +"sem requisitar que a tecla Enter seja pressionada; isto é chamado de modo " +"cbreak, ao contrário do modo de entrada buferizada usual. ::" #: ../../howto/curses.rst:109 msgid "" -"Terminals usually return special keys, such as the cursor keys or navigation" -" keys such as Page Up and Home, as a multibyte escape sequence. While you " +"Terminals usually return special keys, such as the cursor keys or navigation " +"keys such as Page Up and Home, as a multibyte escape sequence. While you " "could write your application to expect such sequences and process them " -"accordingly, curses can do it for you, returning a special value such as " -":const:`curses.KEY_LEFT`. To get curses to do the job, you'll have to " -"enable keypad mode. ::" +"accordingly, curses can do it for you, returning a special value such as :" +"const:`curses.KEY_LEFT`. To get curses to do the job, you'll have to enable " +"keypad mode. ::" msgstr "" +"Terminais geralmente retornam teclas especiais, como as teclas de cursor ou " +"de navegação como Page Up e Home, como uma sequência de escape mutibyte. " +"Enquanto você poderia escrever sua aplicação para esperar essas sequências e " +"processá-las de acordo, curses pode fazer isto para você, retornando um " +"valor especial como :const:`curses.KEY_LEFT`. Para permitir que curses faça " +"esse trabalho, você precisará habilitar o modo keypad. ::" #: ../../howto/curses.rst:118 msgid "" "Terminating a curses application is much easier than starting one. You'll " "need to call::" msgstr "" +"Finalizar uma aplicação curses é mais facil do que iniciar uma. Você " +"precisará executar:" #: ../../howto/curses.rst:125 msgid "" -"to reverse the curses-friendly terminal settings. Then call the " -":func:`~curses.endwin` function to restore the terminal to its original " -"operating mode. ::" +"to reverse the curses-friendly terminal settings. Then call the :func:" +"`~curses.endwin` function to restore the terminal to its original operating " +"mode. ::" msgstr "" +"para reverter as configurações de terminal amigáveis da curses. Então chame " +"a função :func:`~curses.endwin` para restaurar o terminal para seu modo de " +"operação original. ::" #: ../../howto/curses.rst:131 msgid "" -"A common problem when debugging a curses application is to get your terminal" -" messed up when the application dies without restoring the terminal to its " -"previous state. In Python this commonly happens when your code is buggy and" -" raises an uncaught exception. Keys are no longer echoed to the screen when" -" you type them, for example, which makes using the shell difficult." +"A common problem when debugging a curses application is to get your terminal " +"messed up when the application dies without restoring the terminal to its " +"previous state. In Python this commonly happens when your code is buggy and " +"raises an uncaught exception. Keys are no longer echoed to the screen when " +"you type them, for example, which makes using the shell difficult." msgstr "" +"Um problema comum ao debugar uma aplicação curses é deixar seu terminal " +"bagunçado quando a aplicação para sem restaurar o terminal ao seu estado " +"anterior. Em Python isto comumente acontece quando seu código está com " +"problemas e eleva uma exceção não capturada. As teclas não são mais enviadas " +"para a tela quando você as digita, por exemplo, o que torna difícil utilizar " +"o shell." #: ../../howto/curses.rst:137 msgid "" "In Python you can avoid these complications and make debugging much easier " "by importing the :func:`curses.wrapper` function and using it like this::" msgstr "" +"No Python você pode evitar essas complicações e fazer depurações de forma " +"mais simples importando a função :func:`curses.wrapper` e utilizando-a desta " +"forma::" #: ../../howto/curses.rst:156 msgid "" @@ -244,16 +300,25 @@ msgid "" "initializations described above, also initializing colors if color support " "is present. :func:`wrapper` then runs your provided callable. Once the " "callable returns, :func:`wrapper` will restore the original state of the " -"terminal. The callable is called inside a :keyword:`try`...\\ " -":keyword:`except` that catches exceptions, restores the state of the " -"terminal, and then re-raises the exception. Therefore your terminal won't " -"be left in a funny state on exception and you'll be able to read the " -"exception's message and traceback." -msgstr "" +"terminal. The callable is called inside a :keyword:`try`...\\ :keyword:" +"`except` that catches exceptions, restores the state of the terminal, and " +"then re-raises the exception. Therefore your terminal won't be left in a " +"funny state on exception and you'll be able to read the exception's message " +"and traceback." +msgstr "" +"A função :func:`~curses.wrapper` pega um objeto chamável e faz as " +"inicializações descritas acima, também inicializando cores se o suporte a " +"cores estiver presente. :func:`wrapper` então executa seu objeto chamável " +"fornecido. Uma vez que ele retorna, :func:`wrapper` irá restaurar o estado " +"original do terminal. O objeto chamável é chamado dentro de uma :keyword:" +"`try`...\\ :keyword:`except` que captura exceções, restaura o estado do " +"terminal, e então re-eleva o estado do terminal, e então re-eleva a exceção. " +"Portanto, seu terminal não será deixado num estado engraçado numa exceção e " +"você poderá ler as mensagens e rastreamentos da exceção." #: ../../howto/curses.rst:168 msgid "Windows and Pads" -msgstr "" +msgstr "Janelas e Pads" #: ../../howto/curses.rst:170 msgid "" @@ -261,16 +326,25 @@ msgid "" "rectangular area of the screen, and supports methods to display text, erase " "it, allow the user to input strings, and so forth." msgstr "" +"Janelas são a abstração mais básica em curses. Uma objeto janela representa " +"uma área retangular da tela, e suporta métodos para exibir texto, apagá-lo, " +"e permitir ai usuário inserir strings, e assim por diante." #: ../../howto/curses.rst:174 msgid "" "The ``stdscr`` object returned by the :func:`~curses.initscr` function is a " "window object that covers the entire screen. Many programs may need only " "this single window, but you might wish to divide the screen into smaller " -"windows, in order to redraw or clear them separately. The " -":func:`~curses.newwin` function creates a new window of a given size, " -"returning the new window object. ::" +"windows, in order to redraw or clear them separately. The :func:`~curses." +"newwin` function creates a new window of a given size, returning the new " +"window object. ::" msgstr "" +"O objeto ``stdscr`` retornado pela função :func:`~curses.initscr` é um " +"objeto janela que cobre a tela inteira. Muitos programas podem precisar " +"apenas desta janela única, mas você poderia desejar dividir a tela em " +"janelas menores, a fim de redesenhá-las ou limpá-las separadamente. A " +"função :func:`~curses.newwin` cria uma nova janela de um dado tamanho, " +"retornando o novo objeto janela. ::" #: ../../howto/curses.rst:185 msgid "" @@ -281,44 +355,69 @@ msgid "" "difference from most other computer applications, but it's been part of " "curses since it was first written, and it's too late to change things now." msgstr "" +"Note que o sistema de coordenadas utilizado na curses é incomum. Coordenadas " +"geralmente são passadas na ordem *y,x*, e o canto superior-esquerdo da " +"janela é a coordenada (0,0). Isto quebra a convenção normal para tratar " +"coordenadas onde a coordenada *x* vem primeiro. Isto é uma diferença infeliz " +"da maioria das aplicações computacionais, mas tem sido parte da curses desde " +"que ela foi inicialmente escrita, e agora é tarde demais para mudar isso." #: ../../howto/curses.rst:193 msgid "" -"Your application can determine the size of the screen by using the " -":data:`curses.LINES` and :data:`curses.COLS` variables to obtain the *y* and" -" *x* sizes. Legal coordinates will then extend from ``(0,0)`` to " -"``(curses.LINES - 1, curses.COLS - 1)``." +"Your application can determine the size of the screen by using the :data:" +"`curses.LINES` and :data:`curses.COLS` variables to obtain the *y* and *x* " +"sizes. Legal coordinates will then extend from ``(0,0)`` to ``(curses.LINES " +"- 1, curses.COLS - 1)``." msgstr "" +"Sua aplicação pode determinar o tamanho da tela usando as variáveis :data:" +"`curses.LINES` e :data:`curses.COLS` para obter os tamanhos *y* e *x*. " +"Coordenadas legais estenderão de ``(0,0)`` a ``(curses.LINES - 1, curses." +"COLS - 1)``." #: ../../howto/curses.rst:198 msgid "" "When you call a method to display or erase text, the effect doesn't " -"immediately show up on the display. Instead you must call the " -":meth:`~curses.window.refresh` method of window objects to update the " -"screen." +"immediately show up on the display. Instead you must call the :meth:" +"`~curses.window.refresh` method of window objects to update the screen." msgstr "" +"Quando você chamar um método para exibir ou apagar texto, o efeito não é " +"exibido imediatamente na tela. Em vez disso você deve chamar o método :meth:" +"`~curses.window.refresh` dos objetos janela para atualizar a tela." #: ../../howto/curses.rst:203 msgid "" "This is because curses was originally written with slow 300-baud terminal " "connections in mind; with these terminals, minimizing the time required to " -"redraw the screen was very important. Instead curses accumulates changes to" -" the screen and displays them in the most efficient manner when you call " -":meth:`refresh`. For example, if your program displays some text in a " -"window and then clears the window, there's no need to send the original text" -" because they're never visible." -msgstr "" +"redraw the screen was very important. Instead curses accumulates changes to " +"the screen and displays them in the most efficient manner when you call :" +"meth:`refresh`. For example, if your program displays some text in a window " +"and then clears the window, there's no need to send the original text " +"because they're never visible." +msgstr "" +"Isto é porque curses foi escrita originalmente com conexões de terminal " +"lentas de 300-baud em mente; com esses terminais, minimizar o tempo " +"necessário para redesenhar a tela era muito importante. Em vez disso curses " +"acumula mudanças para a tela e as exibe da maneira mais eficiente quando " +"você chamar :meth:`refresh`. Por exemplo, se seu programa exibir algum texto " +"numa janela e então limpar a janela, não há a necessidade de enviar o texto " +"original porque eles nunca estão visíveis." #: ../../howto/curses.rst:212 msgid "" "In practice, explicitly telling curses to redraw a window doesn't really " "complicate programming with curses much. Most programs go into a flurry of " "activity, and then pause waiting for a keypress or some other action on the " -"part of the user. All you have to do is to be sure that the screen has been" -" redrawn before pausing to wait for user input, by first calling " -"``stdscr.refresh()`` or the :meth:`refresh` method of some other relevant " -"window." -msgstr "" +"part of the user. All you have to do is to be sure that the screen has been " +"redrawn before pausing to wait for user input, by first calling ``stdscr." +"refresh()`` or the :meth:`refresh` method of some other relevant window." +msgstr "" +"Na prática, dizer a curses explicitamente para redesenhar uma janela não " +"complica muito a programação com curses. A maioria dos programas entra em " +"uma onda de atividade, e então pausa aguardando por uma tecla pressionada ou " +"alguma outra ação da parte do usuário. Tudo o que você tem de fazer é ter " +"certeza de que a tela foi redesenhada antes da pausa para aguardar a entrada " +"do usuário, ao chamar primeiro ``stdscr.refresh()`` ou o método :meth:" +"`refresh` de alguma outra janela relevante." #: ../../howto/curses.rst:220 msgid "" @@ -328,6 +427,10 @@ msgid "" "giving the coordinates of the on-screen area where a subsection of the pad " "will be displayed. ::" msgstr "" +"Um pad é um caso especial de janela; ele pode ser mais largo que a tela " +"atual, e apenas uma porção do pad exibido por vez. Criar um pad requer sua " +"altura e largura, enquanto atualizar o pad requer dar as coordenadas da área " +"na tela onde uma subseção do pad será exibida. ::" #: ../../howto/curses.rst:241 msgid "" @@ -337,31 +440,47 @@ msgid "" "Beyond that difference, pads are exactly like ordinary windows and support " "the same methods." msgstr "" +"A chamada :meth:`refresh` exibe uma seção do bloco no retângulo estendendo " +"da coordenada (5,5) para a coordenada (20,75) na tela; o canto superior " +"esquerdo da seção exibida é a coordenada (0,0) no bloco. Além dessa " +"diferença, blocos são exatamente como janelas comuns e suportam os mesmos " +"métodos." #: ../../howto/curses.rst:247 msgid "" "If you have multiple windows and pads on screen there is a more efficient " -"way to update the screen and prevent annoying screen flicker as each part of" -" the screen gets updated. :meth:`refresh` actually does two things:" +"way to update the screen and prevent annoying screen flicker as each part of " +"the screen gets updated. :meth:`refresh` actually does two things:" msgstr "" +"Se você tiver muitas janelas e blocos na tela há um modo mais eficiente de " +"atualizar a tela e prevenir piscadas irritantes como se parte da tela fosse " +"atualizada. :meth:`refresh` na realidade faz duas coisas:" #: ../../howto/curses.rst:252 msgid "" -"Calls the :meth:`~curses.window.noutrefresh` method of each window to update" -" an underlying data structure representing the desired state of the screen." +"Calls the :meth:`~curses.window.noutrefresh` method of each window to update " +"an underlying data structure representing the desired state of the screen." msgstr "" +"Chama o método :meth:`~curses.window.noutrefresh` de cada janela para " +"atualizar uma estrutura de dados subjacente representando o estado desejado " +"da tela." #: ../../howto/curses.rst:255 msgid "" "Calls the function :func:`~curses.doupdate` function to change the physical " "screen to match the desired state recorded in the data structure." msgstr "" +"Chama a função :func:`~curses.doupdate` para modificar a tela física para " +"corresponder com o estado original na estrutura de dados." #: ../../howto/curses.rst:258 msgid "" "Instead you can call :meth:`noutrefresh` on a number of windows to update " "the data structure, and then call :func:`doupdate` to update the screen." msgstr "" +"Em vez disso você pode chamar :meth:`noutrefresh` sobre um número de janelas " +"para atualizar a estrutura de dados, e então chamar :func:`doupdate` para " +"atualizar a tela." #: ../../howto/curses.rst:264 msgid "Displaying Text" @@ -369,26 +488,37 @@ msgstr "Exibindo texto" #: ../../howto/curses.rst:266 msgid "" -"From a C programmer's point of view, curses may sometimes look like a twisty" -" maze of functions, all subtly different. For example, :c:func:`addstr` " +"From a C programmer's point of view, curses may sometimes look like a twisty " +"maze of functions, all subtly different. For example, :c:func:`addstr` " "displays a string at the current cursor location in the ``stdscr`` window, " "while :c:func:`mvaddstr` moves to a given y,x coordinate first before " "displaying the string. :c:func:`waddstr` is just like :c:func:`addstr`, but " -"allows specifying a window to use instead of using ``stdscr`` by default. " -":c:func:`mvwaddstr` allows specifying both a window and a coordinate." -msgstr "" +"allows specifying a window to use instead of using ``stdscr`` by default. :c:" +"func:`mvwaddstr` allows specifying both a window and a coordinate." +msgstr "" +"Do ponto de vista de um programador C, curses à vezes pode parecer como um " +"labirinto sinuoso de funções, todas ligeiramente diferentes. Por exemplo, :c:" +"func:`addstr` exibe uma string na localização atual do cursor na janela " +"``stdscr``, enquanto :c:func:`mvaddstr` move para uma dada coordenada y,x " +"primeiro antes de exibir a string. :c:func:`waddstr` é como :c:func:" +"`addstr`, mas permite especificar uma janela para utilizar em vez de usar " +"``stdscr`` por padrão. :c:func:`mvwaddstr` permite especificar tanto uma " +"janela quanto uma coordenada." #: ../../howto/curses.rst:275 msgid "" "Fortunately the Python interface hides all these details. ``stdscr`` is a " -"window object like any other, and methods such as " -":meth:`~curses.window.addstr` accept multiple argument forms. Usually there" -" are four different forms." +"window object like any other, and methods such as :meth:`~curses.window." +"addstr` accept multiple argument forms. Usually there are four different " +"forms." msgstr "" +"Felizmente, a interface do Python oculta todos estes detalhes. ``stdscr`` é " +"um objeto de janela como qualquer outro, e métodos como :meth:`~curses." +"window.addstr` aceitam múltiplas formas de argumentos." #: ../../howto/curses.rst:281 msgid "Form" -msgstr "" +msgstr "Forma" #: ../../howto/curses.rst:281 ../../howto/curses.rst:350 msgid "Description" @@ -396,39 +526,43 @@ msgstr "Description (descrição)" #: ../../howto/curses.rst:283 msgid "*str* or *ch*" -msgstr "" +msgstr "*str* ou *ch*" #: ../../howto/curses.rst:283 msgid "Display the string *str* or character *ch* at the current position" -msgstr "" +msgstr "Mosta a string *str* ou caractere *ch* na posição atual." #: ../../howto/curses.rst:286 msgid "*str* or *ch*, *attr*" -msgstr "" +msgstr "*str* ou *ch*, *attr*" #: ../../howto/curses.rst:286 msgid "" "Display the string *str* or character *ch*, using attribute *attr* at the " "current position" msgstr "" +"Mostra a string *str* ou caractere *ch*, usando o atributo *attr* na posição " +"atual." #: ../../howto/curses.rst:290 msgid "*y*, *x*, *str* or *ch*" -msgstr "" +msgstr "*y*, *x*, *str* ou *ch*" #: ../../howto/curses.rst:290 msgid "Move to position *y,x* within the window, and display *str* or *ch*" -msgstr "" +msgstr "Move para a posição *y,x* dentro da janela, e exibe *str* ou *ch*" #: ../../howto/curses.rst:293 msgid "*y*, *x*, *str* or *ch*, *attr*" -msgstr "" +msgstr "*y*, *x*, *str* ou *ch*, *attr*" #: ../../howto/curses.rst:293 msgid "" "Move to position *y,x* within the window, and display *str* or *ch*, using " "attribute *attr*" msgstr "" +"Mover para a posição *y,x* dentro da janela, e exibir *str* ou *ch*, usando " +"o atributo*attr*" #: ../../howto/curses.rst:297 msgid "" @@ -436,21 +570,33 @@ msgid "" "underline, reverse code, or in color. They'll be explained in more detail " "in the next subsection." msgstr "" +"Atributos permitem exibir texto de formas destacadas como negrito, " +"sublinhado, código invertido, ou colorido. Elas serão explicadas em mais " +"detalhes na próxima subseção." #: ../../howto/curses.rst:302 msgid "" -"The :meth:`~curses.window.addstr` method takes a Python string or bytestring" -" as the value to be displayed. The contents of bytestrings are sent to the " +"The :meth:`~curses.window.addstr` method takes a Python string or bytestring " +"as the value to be displayed. The contents of bytestrings are sent to the " "terminal as-is. Strings are encoded to bytes using the value of the " "window's :attr:`encoding` attribute; this defaults to the default system " "encoding as returned by :func:`locale.getpreferredencoding`." msgstr "" +"O método :meth:`~curses.window.addstr` recebe uma string ou bytestring " +"Python como valor a ser exibido. os conteúdos de bytestrings são enviados ao " +"terminal tal como estão. Strings são codificadas em bytes usando o valor do " +"atributo :attr:`encoding` da janela; esta predefinição corresponde à " +"codificação padrão do sistema como retornado por :func:`locale." +"getpreferredencoding`." #: ../../howto/curses.rst:309 msgid "" "The :meth:`~curses.window.addch` methods take a character, which can be " "either a string of length 1, a bytestring of length 1, or an integer." msgstr "" +"Os métodos :meth:`~curses.window.addch` pegam um caractere, que pode ser " +"tanto uma string de comprimento 1, um bytestring de comprimento 1, ou um " +"inteiro." #: ../../howto/curses.rst:312 msgid "" @@ -459,38 +605,55 @@ msgid "" "symbol, and :const:`ACS_ULCORNER` is the upper left corner of a box (handy " "for drawing borders). You can also use the appropriate Unicode character." msgstr "" +"Constantes são providas para caracteres de extensão; estas constantes são " +"inteiros maiores que 255. Por exemplo, :const:`ACS_PLMINUS` é um símbolo de " +"+/-, e :const:`ACS_ULCORNER` é o canto superior esquerdo de uma caixa (útil " +"para desenhar bordas). Você pode usar o caractere Unicode apropriado." #: ../../howto/curses.rst:318 msgid "" "Windows remember where the cursor was left after the last operation, so if " "you leave out the *y,x* coordinates, the string or character will be " "displayed wherever the last operation left off. You can also move the " -"cursor with the ``move(y,x)`` method. Because some terminals always display" -" a flashing cursor, you may want to ensure that the cursor is positioned in " -"some location where it won't be distracting; it can be confusing to have the" -" cursor blinking at some apparently random location." -msgstr "" +"cursor with the ``move(y,x)`` method. Because some terminals always display " +"a flashing cursor, you may want to ensure that the cursor is positioned in " +"some location where it won't be distracting; it can be confusing to have the " +"cursor blinking at some apparently random location." +msgstr "" +"Janelas lembram onde o cursor estava após a última operação, então se você " +"omitir as coordenadas *y,x*, a string ou caractere serão exibidos onde quer " +"que a última operação foi deixada. Você também pode mover o cursos com o " +"método ``move(y,x)``. Porque alguns terminais sempre exibem um cursos " +"piscando, você pode querer garantir que o cursor está posicionado em algum " +"local onde ele não será uma distração; pode ser confuso ter o cursor " +"piscando em um local aparentemente aleatório." #: ../../howto/curses.rst:326 msgid "" "If your application doesn't need a blinking cursor at all, you can call " "``curs_set(False)`` to make it invisible. For compatibility with older " -"curses versions, there's a ``leaveok(bool)`` function that's a synonym for " -":func:`~curses.curs_set`. When *bool* is true, the curses library will " +"curses versions, there's a ``leaveok(bool)`` function that's a synonym for :" +"func:`~curses.curs_set`. When *bool* is true, the curses library will " "attempt to suppress the flashing cursor, and you won't need to worry about " "leaving it in odd locations." msgstr "" +"Se sua aplicação não necessita de forma alguma de um cursor piscando, você " +"pode chamar ``curs_set(False)`` para torná-lo invisível. Para " +"compatibilidade com versões anteriores de curses, há a função " +"``leaveok(bool)`` que é um sinônimo para :func:`~curses.curs_set`. Quando " +"*bool* é verdadeiro, a biblioteca curses tentará suprimir o cursor piscando, " +"e você não precisará se preocupar ao deixá-lo em localizações incomuns." #: ../../howto/curses.rst:335 msgid "Attributes and Color" -msgstr "" +msgstr "Atributos e Cores" #: ../../howto/curses.rst:337 msgid "" -"Characters can be displayed in different ways. Status lines in a text-based" -" application are commonly shown in reverse video, or a text viewer may need " -"to highlight certain words. curses supports this by allowing you to specify" -" an attribute for each cell on the screen." +"Characters can be displayed in different ways. Status lines in a text-based " +"application are commonly shown in reverse video, or a text viewer may need " +"to highlight certain words. curses supports this by allowing you to specify " +"an attribute for each cell on the screen." msgstr "" #: ../../howto/curses.rst:342 @@ -509,7 +672,7 @@ msgstr "Atributo" #: ../../howto/curses.rst:352 msgid ":const:`A_BLINK`" -msgstr "" +msgstr ":const:`A_BLINK`" #: ../../howto/curses.rst:352 msgid "Blinking text" @@ -517,7 +680,7 @@ msgstr "" #: ../../howto/curses.rst:354 msgid ":const:`A_BOLD`" -msgstr "" +msgstr ":const:`A_BOLD`" #: ../../howto/curses.rst:354 msgid "Extra bright or bold text" @@ -525,7 +688,7 @@ msgstr "" #: ../../howto/curses.rst:356 msgid ":const:`A_DIM`" -msgstr "" +msgstr ":const:`A_DIM`" #: ../../howto/curses.rst:356 msgid "Half bright text" @@ -533,7 +696,7 @@ msgstr "" #: ../../howto/curses.rst:358 msgid ":const:`A_REVERSE`" -msgstr "" +msgstr ":const:`A_REVERSE`" #: ../../howto/curses.rst:358 msgid "Reverse-video text" @@ -574,9 +737,9 @@ msgid "" "after calling :func:`~curses.initscr`, to initialize the default color set " "(the :func:`curses.wrapper` function does this automatically). Once that's " "done, the :func:`~curses.has_colors` function returns TRUE if the terminal " -"in use can actually display color. (Note: curses uses the American spelling" -" 'color', instead of the Canadian/British spelling 'colour'. If you're used" -" to the British spelling, you'll have to resign yourself to misspelling it " +"in use can actually display color. (Note: curses uses the American spelling " +"'color', instead of the Canadian/British spelling 'colour'. If you're used " +"to the British spelling, you'll have to resign yourself to misspelling it " "for the sake of these functions.)" msgstr "" @@ -584,10 +747,10 @@ msgstr "" msgid "" "The curses library maintains a finite number of color pairs, containing a " "foreground (or text) color and a background color. You can get the " -"attribute value corresponding to a color pair with the " -":func:`~curses.color_pair` function; this can be bitwise-OR'ed with other " -"attributes such as :const:`A_REVERSE`, but again, such combinations are not " -"guaranteed to work on all terminals." +"attribute value corresponding to a color pair with the :func:`~curses." +"color_pair` function; this can be bitwise-OR'ed with other attributes such " +"as :const:`A_REVERSE`, but again, such combinations are not guaranteed to " +"work on all terminals." msgstr "" #: ../../howto/curses.rst:393 @@ -604,11 +767,11 @@ msgstr "" #: ../../howto/curses.rst:403 msgid "" -"Colors are numbered, and :func:`start_color` initializes 8 basic colors when" -" it activates color mode. They are: 0:black, 1:red, 2:green, 3:yellow, " -"4:blue, 5:magenta, 6:cyan, and 7:white. The :mod:`curses` module defines " -"named constants for each of these colors: :const:`curses.COLOR_BLACK`, " -":const:`curses.COLOR_RED`, and so forth." +"Colors are numbered, and :func:`start_color` initializes 8 basic colors when " +"it activates color mode. They are: 0:black, 1:red, 2:green, 3:yellow, 4:" +"blue, 5:magenta, 6:cyan, and 7:white. The :mod:`curses` module defines " +"named constants for each of these colors: :const:`curses.COLOR_BLACK`, :" +"const:`curses.COLOR_RED`, and so forth." msgstr "" #: ../../howto/curses.rst:409 @@ -629,23 +792,23 @@ msgid "" "Very fancy terminals can change the definitions of the actual colors to a " "given RGB value. This lets you change color 1, which is usually red, to " "purple or blue or any other color you like. Unfortunately, the Linux " -"console doesn't support this, so I'm unable to try it out, and can't provide" -" any examples. You can check if your terminal can do this by calling " -":func:`~curses.can_change_color`, which returns ``True`` if the capability " -"is there. If you're lucky enough to have such a talented terminal, consult " +"console doesn't support this, so I'm unable to try it out, and can't provide " +"any examples. You can check if your terminal can do this by calling :func:" +"`~curses.can_change_color`, which returns ``True`` if the capability is " +"there. If you're lucky enough to have such a talented terminal, consult " "your system's man pages for more information." msgstr "" #: ../../howto/curses.rst:431 msgid "User Input" -msgstr "" +msgstr "Entrada de usuário" #: ../../howto/curses.rst:433 msgid "" -"The C curses library offers only very simple input mechanisms. Python's " -":mod:`curses` module adds a basic text-input widget. (Other libraries such " -"as `Urwid `_ have more extensive " -"collections of widgets.)" +"The C curses library offers only very simple input mechanisms. Python's :mod:" +"`curses` module adds a basic text-input widget. (Other libraries such as " +"`Urwid `_ have more extensive collections " +"of widgets.)" msgstr "" #: ../../howto/curses.rst:438 @@ -656,29 +819,28 @@ msgstr "" msgid "" ":meth:`~curses.window.getch` refreshes the screen and then waits for the " "user to hit a key, displaying the key if :func:`~curses.echo` has been " -"called earlier. You can optionally specify a coordinate to which the cursor" -" should be moved before pausing." +"called earlier. You can optionally specify a coordinate to which the cursor " +"should be moved before pausing." msgstr "" #: ../../howto/curses.rst:445 msgid "" ":meth:`~curses.window.getkey` does the same thing but converts the integer " -"to a string. Individual characters are returned as 1-character strings, and" -" special keys such as function keys return longer strings containing a key " +"to a string. Individual characters are returned as 1-character strings, and " +"special keys such as function keys return longer strings containing a key " "name such as ``KEY_UP`` or ``^G``." msgstr "" #: ../../howto/curses.rst:450 msgid "" -"It's possible to not wait for the user using the " -":meth:`~curses.window.nodelay` window method. After ``nodelay(True)``, " -":meth:`getch` and :meth:`getkey` for the window become non-blocking. To " -"signal that no input is ready, :meth:`getch` returns ``curses.ERR`` (a value" -" of -1) and :meth:`getkey` raises an exception. There's also a " -":func:`~curses.halfdelay` function, which can be used to (in effect) set a " -"timer on each :meth:`getch`; if no input becomes available within a " -"specified delay (measured in tenths of a second), curses raises an " -"exception." +"It's possible to not wait for the user using the :meth:`~curses.window." +"nodelay` window method. After ``nodelay(True)``, :meth:`getch` and :meth:" +"`getkey` for the window become non-blocking. To signal that no input is " +"ready, :meth:`getch` returns ``curses.ERR`` (a value of -1) and :meth:" +"`getkey` raises an exception. There's also a :func:`~curses.halfdelay` " +"function, which can be used to (in effect) set a timer on each :meth:" +"`getch`; if no input becomes available within a specified delay (measured in " +"tenths of a second), curses raises an exception." msgstr "" #: ../../howto/curses.rst:460 @@ -686,9 +848,9 @@ msgid "" "The :meth:`getch` method returns an integer; if it's between 0 and 255, it " "represents the ASCII code of the key pressed. Values greater than 255 are " "special keys such as Page Up, Home, or the cursor keys. You can compare the " -"value returned to constants such as :const:`curses.KEY_PPAGE`, " -":const:`curses.KEY_HOME`, or :const:`curses.KEY_LEFT`. The main loop of " -"your program may look something like this::" +"value returned to constants such as :const:`curses.KEY_PPAGE`, :const:" +"`curses.KEY_HOME`, or :const:`curses.KEY_LEFT`. The main loop of your " +"program may look something like this::" msgstr "" #: ../../howto/curses.rst:476 @@ -703,20 +865,19 @@ msgstr "" #: ../../howto/curses.rst:483 msgid "" -"There's also a method to retrieve an entire string, " -":meth:`~curses.window.getstr`. It isn't used very often, because its " -"functionality is quite limited; the only editing keys available are the " -"backspace key and the Enter key, which terminates the string. It can " -"optionally be limited to a fixed number of characters. ::" +"There's also a method to retrieve an entire string, :meth:`~curses.window." +"getstr`. It isn't used very often, because its functionality is quite " +"limited; the only editing keys available are the backspace key and the Enter " +"key, which terminates the string. It can optionally be limited to a fixed " +"number of characters. ::" msgstr "" #: ../../howto/curses.rst:494 msgid "" "The :mod:`curses.textpad` module supplies a text box that supports an Emacs-" -"like set of keybindings. Various methods of the " -":class:`~curses.textpad.Textbox` class support editing with input validation" -" and gathering the edit results either with or without trailing spaces. " -"Here's an example::" +"like set of keybindings. Various methods of the :class:`~curses.textpad." +"Textbox` class support editing with input validation and gathering the edit " +"results either with or without trailing spaces. Here's an example::" msgstr "" #: ../../howto/curses.rst:518 @@ -726,14 +887,14 @@ msgstr "" #: ../../howto/curses.rst:522 msgid "For More Information" -msgstr "" +msgstr "Para mais informações" #: ../../howto/curses.rst:524 msgid "" "This HOWTO doesn't cover some advanced topics, such as reading the contents " "of the screen or capturing mouse events from an xterm instance, but the " -"Python library page for the :mod:`curses` module is now reasonably complete." -" You should browse it next." +"Python library page for the :mod:`curses` module is now reasonably " +"complete. You should browse it next." msgstr "" #: ../../howto/curses.rst:529 @@ -741,8 +902,8 @@ msgid "" "If you're in doubt about the detailed behavior of the curses functions, " "consult the manual pages for your curses implementation, whether it's " "ncurses or a proprietary Unix vendor's. The manual pages will document any " -"quirks, and provide complete lists of all the functions, attributes, and " -":const:`ACS_\\*` characters available to you." +"quirks, and provide complete lists of all the functions, attributes, and :" +"const:`ACS_\\*` characters available to you." msgstr "" #: ../../howto/curses.rst:536 @@ -751,9 +912,8 @@ msgid "" "Python interface. Often this isn't because they're difficult to implement, " "but because no one has needed them yet. Also, Python doesn't yet support " "the menu library associated with ncurses. Patches adding support for these " -"would be welcome; see `the Python Developer's Guide " -"`_ to learn more about submitting patches to " -"Python." +"would be welcome; see `the Python Developer's Guide `_ to learn more about submitting patches to Python." msgstr "" #: ../../howto/curses.rst:544 @@ -773,14 +933,14 @@ msgstr "" #: ../../howto/curses.rst:548 msgid "" -"`\"Use curses... don't swear\" " -"`_: video of a PyCon 2013 talk " -"on controlling terminals using curses or Urwid." +"`\"Use curses... don't swear\" `_: video of a PyCon 2013 talk on controlling terminals using " +"curses or Urwid." msgstr "" #: ../../howto/curses.rst:550 msgid "" -"`\"Console Applications with Urwid\" `_: video of a PyCon CA 2012 talk " +"`\"Console Applications with Urwid\" `_: video of a PyCon CA 2012 talk " "demonstrating some applications written using Urwid." msgstr "" diff --git a/howto/descriptor.po b/howto/descriptor.po index b883960eb..0dcab75ff 100644 --- a/howto/descriptor.po +++ b/howto/descriptor.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -74,18 +76,18 @@ msgstr "Definição e Introdução" msgid "" "In general, a descriptor is an object attribute with \"binding behavior\", " "one whose attribute access has been overridden by methods in the descriptor " -"protocol. Those methods are :meth:`__get__`, :meth:`__set__`, and " -":meth:`__delete__`. If any of those methods are defined for an object, it " -"is said to be a descriptor." +"protocol. Those methods are :meth:`__get__`, :meth:`__set__`, and :meth:" +"`__delete__`. If any of those methods are defined for an object, it is said " +"to be a descriptor." msgstr "" #: ../../howto/descriptor.rst:32 msgid "" "The default behavior for attribute access is to get, set, or delete the " "attribute from an object's dictionary. For instance, ``a.x`` has a lookup " -"chain starting with ``a.__dict__['x']``, then ``type(a).__dict__['x']``, and" -" continuing through the base classes of ``type(a)`` excluding metaclasses. " -"If the looked-up value is an object defining one of the descriptor methods, " +"chain starting with ``a.__dict__['x']``, then ``type(a).__dict__['x']``, and " +"continuing through the base classes of ``type(a)`` excluding metaclasses. If " +"the looked-up value is an object defining one of the descriptor methods, " "then Python may override the default behavior and invoke the descriptor " "method instead. Where this occurs in the precedence chain depends on which " "descriptor methods were defined." @@ -94,9 +96,9 @@ msgstr "" #: ../../howto/descriptor.rst:41 msgid "" "Descriptors are a powerful, general purpose protocol. They are the " -"mechanism behind properties, methods, static methods, class methods, and " -":func:`super()`. They are used throughout Python itself to implement the new" -" style classes introduced in version 2.2. Descriptors simplify the " +"mechanism behind properties, methods, static methods, class methods, and :" +"func:`super()`. They are used throughout Python itself to implement the new " +"style classes introduced in version 2.2. Descriptors simplify the " "underlying C-code and offer a flexible set of new tools for everyday Python " "programs." msgstr "" @@ -135,17 +137,17 @@ msgstr "" #: ../../howto/descriptor.rst:66 msgid "" "Data and non-data descriptors differ in how overrides are calculated with " -"respect to entries in an instance's dictionary. If an instance's dictionary" -" has an entry with the same name as a data descriptor, the data descriptor " +"respect to entries in an instance's dictionary. If an instance's dictionary " +"has an entry with the same name as a data descriptor, the data descriptor " "takes precedence. If an instance's dictionary has an entry with the same " "name as a non-data descriptor, the dictionary entry takes precedence." msgstr "" #: ../../howto/descriptor.rst:72 msgid "" -"To make a read-only data descriptor, define both :meth:`__get__` and " -":meth:`__set__` with the :meth:`__set__` raising an :exc:`AttributeError` " -"when called. Defining the :meth:`__set__` method with an exception raising " +"To make a read-only data descriptor, define both :meth:`__get__` and :meth:" +"`__set__` with the :meth:`__set__` raising an :exc:`AttributeError` when " +"called. Defining the :meth:`__set__` method with an exception raising " "placeholder is enough to make it a data descriptor." msgstr "" @@ -155,8 +157,8 @@ msgstr "Invoking Descriptors" #: ../../howto/descriptor.rst:81 msgid "" -"A descriptor can be called directly by its method name. For example, " -"``d.__get__(obj)``." +"A descriptor can be called directly by its method name. For example, ``d." +"__get__(obj)``." msgstr "" #: ../../howto/descriptor.rst:84 @@ -179,9 +181,9 @@ msgid "" "transforms ``b.x`` into ``type(b).__dict__['x'].__get__(b, type(b))``. The " "implementation works through a precedence chain that gives data descriptors " "priority over instance variables, instance variables priority over non-data " -"descriptors, and assigns lowest priority to :meth:`__getattr__` if provided." -" The full C implementation can be found in " -":c:func:`PyObject_GenericGetAttr()` in :source:`Objects/object.c`." +"descriptors, and assigns lowest priority to :meth:`__getattr__` if provided. " +"The full C implementation can be found in :c:func:" +"`PyObject_GenericGetAttr()` in :source:`Objects/object.c`." msgstr "" #: ../../howto/descriptor.rst:99 @@ -200,8 +202,7 @@ msgid "descriptors are invoked by the :meth:`__getattribute__` method" msgstr "" #: ../../howto/descriptor.rst:113 -msgid "" -"overriding :meth:`__getattribute__` prevents automatic descriptor calls" +msgid "overriding :meth:`__getattribute__` prevents automatic descriptor calls" msgstr "" #: ../../howto/descriptor.rst:114 @@ -220,30 +221,29 @@ msgstr "" #: ../../howto/descriptor.rst:119 msgid "" -"The object returned by ``super()`` also has a custom " -":meth:`__getattribute__` method for invoking descriptors. The call " -"``super(B, obj).m()`` searches ``obj.__class__.__mro__`` for the base class " -"``A`` immediately following ``B`` and then returns " -"``A.__dict__['m'].__get__(obj, B)``. If not a descriptor, ``m`` is returned" -" unchanged. If not in the dictionary, ``m`` reverts to a search using " -":meth:`object.__getattribute__`." +"The object returned by ``super()`` also has a custom :meth:" +"`__getattribute__` method for invoking descriptors. The call ``super(B, " +"obj).m()`` searches ``obj.__class__.__mro__`` for the base class ``A`` " +"immediately following ``B`` and then returns ``A.__dict__['m'].__get__(obj, " +"B)``. If not a descriptor, ``m`` is returned unchanged. If not in the " +"dictionary, ``m`` reverts to a search using :meth:`object.__getattribute__`." msgstr "" #: ../../howto/descriptor.rst:126 msgid "" -"The implementation details are in :c:func:`super_getattro()` in " -":source:`Objects/typeobject.c`. and a pure Python equivalent can be found " -"in `Guido's Tutorial`_." +"The implementation details are in :c:func:`super_getattro()` in :source:" +"`Objects/typeobject.c`. and a pure Python equivalent can be found in " +"`Guido's Tutorial`_." msgstr "" #: ../../howto/descriptor.rst:132 msgid "" -"The details above show that the mechanism for descriptors is embedded in the" -" :meth:`__getattribute__()` methods for :class:`object`, :class:`type`, and " -":func:`super`. Classes inherit this machinery when they derive from " -":class:`object` or if they have a meta-class providing similar " -"functionality. Likewise, classes can turn-off descriptor invocation by " -"overriding :meth:`__getattribute__()`." +"The details above show that the mechanism for descriptors is embedded in " +"the :meth:`__getattribute__()` methods for :class:`object`, :class:`type`, " +"and :func:`super`. Classes inherit this machinery when they derive from :" +"class:`object` or if they have a meta-class providing similar functionality. " +"Likewise, classes can turn-off descriptor invocation by overriding :meth:" +"`__getattribute__()`." msgstr "" #: ../../howto/descriptor.rst:141 @@ -253,15 +253,15 @@ msgstr "Exemplo de Descriptor" #: ../../howto/descriptor.rst:143 msgid "" "The following code creates a class whose objects are data descriptors which " -"print a message for each get or set. Overriding :meth:`__getattribute__` is" -" alternate approach that could do this for every attribute. However, this " +"print a message for each get or set. Overriding :meth:`__getattribute__` is " +"alternate approach that could do this for every attribute. However, this " "descriptor is useful for monitoring just a few chosen attributes::" msgstr "" #: ../../howto/descriptor.rst:181 msgid "" -"The protocol is simple and offers exciting possibilities. Several use cases" -" are so common that they have been packaged into individual function calls. " +"The protocol is simple and offers exciting possibilities. Several use cases " +"are so common that they have been packaged into individual function calls. " "Properties, bound methods, static methods, and class methods are all based " "on the descriptor protocol." msgstr "" @@ -273,8 +273,7 @@ msgstr "Propriedades" #: ../../howto/descriptor.rst:190 msgid "" "Calling :func:`property` is a succinct way of building a data descriptor " -"that triggers function calls upon access to an attribute. Its signature " -"is::" +"that triggers function calls upon access to an attribute. Its signature is::" msgstr "" #: ../../howto/descriptor.rst:195 @@ -319,10 +318,10 @@ msgstr "" msgid "" "Class dictionaries store methods as functions. In a class definition, " "methods are written using :keyword:`def` or :keyword:`lambda`, the usual " -"tools for creating functions. Methods only differ from regular functions in" -" that the first argument is reserved for the object instance. By Python " -"convention, the instance reference is called *self* but may be called *this*" -" or any other variable name." +"tools for creating functions. Methods only differ from regular functions in " +"that the first argument is reserved for the object instance. By Python " +"convention, the instance reference is called *self* but may be called *this* " +"or any other variable name." msgstr "" #: ../../howto/descriptor.rst:275 @@ -335,8 +334,7 @@ msgstr "" #: ../../howto/descriptor.rst:288 msgid "" -"Running the interpreter shows how the function descriptor works in " -"practice::" +"Running the interpreter shows how the function descriptor works in practice::" msgstr "" #: ../../howto/descriptor.rst:326 @@ -353,8 +351,8 @@ msgstr "" msgid "" "To recap, functions have a :meth:`__get__` method so that they can be " "converted to a method when accessed as attributes. The non-data descriptor " -"transforms an ``obj.f(*args)`` call into ``f(obj, *args)``. Calling " -"``klass.f(*args)`` becomes ``f(*args)``." +"transforms an ``obj.f(*args)`` call into ``f(obj, *args)``. Calling ``klass." +"f(*args)`` becomes ``f(*args)``." msgstr "" #: ../../howto/descriptor.rst:336 @@ -382,7 +380,6 @@ msgid "f(obj, \\*args)" msgstr "f(obj, \\*args)" #: ../../howto/descriptor.rst:342 ../../howto/descriptor.rst:344 -#: ../../howto/descriptor.rst:344 msgid "f(\\*args)" msgstr "f(\\*args)" @@ -405,10 +402,10 @@ msgstr "f(klass, \\*args)" #: ../../howto/descriptor.rst:349 msgid "" "Static methods return the underlying function without changes. Calling " -"either ``c.f`` or ``C.f`` is the equivalent of a direct lookup into " -"``object.__getattribute__(c, \"f\")`` or ``object.__getattribute__(C, " -"\"f\")``. As a result, the function becomes identically accessible from " -"either an object or a class." +"either ``c.f`` or ``C.f`` is the equivalent of a direct lookup into ``object." +"__getattribute__(c, \"f\")`` or ``object.__getattribute__(C, \"f\")``. As a " +"result, the function becomes identically accessible from either an object or " +"a class." msgstr "" #: ../../howto/descriptor.rst:355 @@ -423,9 +420,9 @@ msgid "" "experimental data. The class provides normal methods for computing the " "average, mean, median, and other descriptive statistics that depend on the " "data. However, there may be useful functions which are conceptually related " -"but do not depend on the data. For instance, ``erf(x)`` is handy conversion" -" routine that comes up in statistical work but does not directly depend on a" -" particular dataset. It can be called either from an object or the class: " +"but do not depend on the data. For instance, ``erf(x)`` is handy conversion " +"routine that comes up in statistical work but does not directly depend on a " +"particular dataset. It can be called either from an object or the class: " "``s.erf(1.5) --> .9332`` or ``Sample.erf(1.5) --> .9332``." msgstr "" @@ -437,8 +434,8 @@ msgstr "" #: ../../howto/descriptor.rst:380 msgid "" -"Using the non-data descriptor protocol, a pure Python version of " -":func:`staticmethod` would look like this::" +"Using the non-data descriptor protocol, a pure Python version of :func:" +"`staticmethod` would look like this::" msgstr "" #: ../../howto/descriptor.rst:392 @@ -463,6 +460,6 @@ msgstr "" #: ../../howto/descriptor.rst:428 msgid "" -"Using the non-data descriptor protocol, a pure Python version of " -":func:`classmethod` would look like this::" +"Using the non-data descriptor protocol, a pure Python version of :func:" +"`classmethod` would look like this::" msgstr "" diff --git a/howto/functional.po b/howto/functional.po index d25feef27..e31362595 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Otávio Carneiro , 2019 # Raphael Mendonça, 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,14 +50,14 @@ msgstr "0.32" msgid "" "In this document, we'll take a tour of Python's features suitable for " "implementing programs in a functional style. After an introduction to the " -"concepts of functional programming, we'll look at language features such as " -":term:`iterator`\\s and :term:`generator`\\s and relevant library modules " +"concepts of functional programming, we'll look at language features such as :" +"term:`iterator`\\s and :term:`generator`\\s and relevant library modules " "such as :mod:`itertools` and :mod:`functools`." msgstr "" "Nesse documento, nós vamos passear pelos recursos do Python que servem para " "implementar programas de forma funcional. Após uma introdução dos conceitos " -"da programação funcional, nós veremos as propriedades da linguagem como " -":term:`iterator`\\s e :term:`generator`\\s e bibliotecas de módulos " +"da programação funcional, nós veremos as propriedades da linguagem como :" +"term:`iterator`\\s e :term:`generator`\\s e bibliotecas de módulos " "relevantes como um :mod:`itertools` e :mod:`functools`." #: ../../howto/functional.rst:16 @@ -65,9 +66,9 @@ msgstr "Introdução" #: ../../howto/functional.rst:18 msgid "" -"This section explains the basic concept of functional programming; if you're" -" just interested in learning about Python language features, skip to the " -"next section on :ref:`functional-howto-iterators`." +"This section explains the basic concept of functional programming; if you're " +"just interested in learning about Python language features, skip to the next " +"section on :ref:`functional-howto-iterators`." msgstr "" "Essa seção explica o conceito básico da programação funcional; se você está " "interessado em aprender sobre os recursos da linguagem Python, pule essa " @@ -75,8 +76,7 @@ msgstr "" #: ../../howto/functional.rst:22 msgid "" -"Programming languages support decomposing problems in several different " -"ways:" +"Programming languages support decomposing problems in several different ways:" msgstr "" "As linguagens de programação suportam decompor problemas de diversas " "maneiras diferentes:" @@ -84,26 +84,26 @@ msgstr "" #: ../../howto/functional.rst:24 msgid "" "Most programming languages are **procedural**: programs are lists of " -"instructions that tell the computer what to do with the program's input. C," -" Pascal, and even Unix shells are procedural languages." +"instructions that tell the computer what to do with the program's input. C, " +"Pascal, and even Unix shells are procedural languages." msgstr "" -"A Maioria das linguagens de programação são **procedural**: os programas são" -" listas de instruções que dizem ao computador o que fazer com as entradas do" -" programa. C, Pascal, e mesmo o Unix shells são linguagens procedurais." +"A Maioria das linguagens de programação são **procedural**: os programas são " +"listas de instruções que dizem ao computador o que fazer com as entradas do " +"programa. C, Pascal, e mesmo o Unix shells são linguagens procedurais." #: ../../howto/functional.rst:28 msgid "" "In **declarative** languages, you write a specification that describes the " "problem to be solved, and the language implementation figures out how to " -"perform the computation efficiently. SQL is the declarative language you're" -" most likely to be familiar with; a SQL query describes the data set you " -"want to retrieve, and the SQL engine decides whether to scan tables or use " +"perform the computation efficiently. SQL is the declarative language you're " +"most likely to be familiar with; a SQL query describes the data set you want " +"to retrieve, and the SQL engine decides whether to scan tables or use " "indexes, which subclauses should be performed first, etc." msgstr "" "Em linguagens **declarativas**, você escreve uma especificação que descreve " "o problema a ser resolvido, e a implementação do idioma descreve como " -"executar a computação de forma eficiente. O SQL é o idioma declarativo com o" -" qual provavelmente você está familiarizado; Uma consulta SQL descreve o " +"executar a computação de forma eficiente. O SQL é o idioma declarativo com o " +"qual provavelmente você está familiarizado; Uma consulta SQL descreve o " "conjunto de dados que deseja recuperar e o mecanismo SQL decide se deseja " "escanear tabelas ou usar índices, quais subcláusulas devem ser realizadas " "primeiro, etc." @@ -113,8 +113,8 @@ msgid "" "**Object-oriented** programs manipulate collections of objects. Objects " "have internal state and support methods that query or modify this internal " "state in some way. Smalltalk and Java are object-oriented languages. C++ " -"and Python are languages that support object-oriented programming, but don't" -" force the use of object-oriented features." +"and Python are languages that support object-oriented programming, but don't " +"force the use of object-oriented features." msgstr "" "Os programas ** orientados a objetos ** manipulam coleções de objetos. Os " "objetos têm estado interno e métodos de suporte que consultam ou modificam " @@ -140,12 +140,12 @@ msgstr "" msgid "" "The designers of some computer languages choose to emphasize one particular " "approach to programming. This often makes it difficult to write programs " -"that use a different approach. Other languages are multi-paradigm languages" -" that support several different approaches. Lisp, C++, and Python are multi-" +"that use a different approach. Other languages are multi-paradigm languages " +"that support several different approaches. Lisp, C++, and Python are multi-" "paradigm; you can write programs or libraries that are largely procedural, " "object-oriented, or functional in all of these languages. In a large " -"program, different sections might be written using different approaches; the" -" GUI might be object-oriented while the processing logic is procedural or " +"program, different sections might be written using different approaches; the " +"GUI might be object-oriented while the processing logic is procedural or " "functional, for example." msgstr "" "Os designers de algumas linguagens de computadores escolhem enfatizar uma " @@ -164,27 +164,27 @@ msgid "" "In a functional program, input flows through a set of functions. Each " "function operates on its input and produces some output. Functional style " "discourages functions with side effects that modify internal state or make " -"other changes that aren't visible in the function's return value. Functions" -" that have no side effects at all are called **purely functional**. " -"Avoiding side effects means not using data structures that get updated as a " -"program runs; every function's output must only depend on its input." +"other changes that aren't visible in the function's return value. Functions " +"that have no side effects at all are called **purely functional**. Avoiding " +"side effects means not using data structures that get updated as a program " +"runs; every function's output must only depend on its input." msgstr "" "Em um programa funcional, a entrada flui através de um conjunto de funções. " "Cada função opera em sua entrada e produz alguma saída. O estilo funcional " -"desencoraja funções com efeitos colaterais que modificam o estado interno ou" -" fazem outras alterações que não são visíveis no valor de retorno da função." -" As funções que não têm efeitos colaterais são chamadas ** puramente " +"desencoraja funções com efeitos colaterais que modificam o estado interno ou " +"fazem outras alterações que não são visíveis no valor de retorno da função. " +"As funções que não têm efeitos colaterais são chamadas ** puramente " "funcionais **. Evitar efeitos colaterais significa não usar estruturas de " -"dados que sejam atualizadas à medida que um programa é executado; A saída de" -" cada função só deve depender da sua entrada." +"dados que sejam atualizadas à medida que um programa é executado; A saída de " +"cada função só deve depender da sua entrada." #: ../../howto/functional.rst:66 msgid "" "Some languages are very strict about purity and don't even have assignment " -"statements such as ``a=3`` or ``c = a + b``, but it's difficult to avoid all" -" side effects. Printing to the screen or writing to a disk file are side " -"effects, for example. For example, in Python a call to the :func:`print` or" -" :func:`time.sleep` function both return no useful value; they're only " +"statements such as ``a=3`` or ``c = a + b``, but it's difficult to avoid all " +"side effects. Printing to the screen or writing to a disk file are side " +"effects, for example. For example, in Python a call to the :func:`print` " +"or :func:`time.sleep` function both return no useful value; they're only " "called for their side effects of sending some text to the screen or pausing " "execution for a second." msgstr "" @@ -235,8 +235,8 @@ msgstr "" #: ../../howto/functional.rst:89 msgid "" -"Functional design may seem like an odd constraint to work under. Why should" -" you avoid objects and side effects? There are theoretical and practical " +"Functional design may seem like an odd constraint to work under. Why should " +"you avoid objects and side effects? There are theoretical and practical " "advantages to the functional style:" msgstr "" "O design funcional pode parecer uma restrição estranha para trabalhar por " @@ -301,9 +301,9 @@ msgstr "" "invariantes **, propriedades dos dados de entrada e das variáveis do " "programa que são sempre verdadeiras. Para cada linha de código, você mostra " "que se os invariantes X e Y forem verdadeiros ** antes de ** a linha for " -"executada, os invariantes X 'e Y' ligeiramente diferentes são verdadeiros **" -" após ** a linha é executada. Isso continua até chegar ao final do programa," -" em que ponto as invariantes devem corresponder às condições desejadas na " +"executada, os invariantes X 'e Y' ligeiramente diferentes são verdadeiros ** " +"após ** a linha é executada. Isso continua até chegar ao final do programa, " +"em que ponto as invariantes devem corresponder às condições desejadas na " "saída do programa." #: ../../howto/functional.rst:120 @@ -331,10 +331,10 @@ msgid "" msgstr "" "Infelizmente, os programas de prova corretas são praticamente impraticáveis " "e não relevantes para o Python software. Mesmo os programas triviais exigem " -"provas de várias páginas; A prova de correção para um programa moderadamente" -" complicado seria enorme, e poucos ou nenhum dos programas que você usa " -"diariamente (o intérprete Python, seu analisador XML, seu navegador) poderia" -" ser comprovado correto. Mesmo que você tenha anotado ou gerado uma prova, " +"provas de várias páginas; A prova de correção para um programa moderadamente " +"complicado seria enorme, e poucos ou nenhum dos programas que você usa " +"diariamente (o intérprete Python, seu analisador XML, seu navegador) poderia " +"ser comprovado correto. Mesmo que você tenha anotado ou gerado uma prova, " "então haveria a questão de verificar a prova; Talvez haja um erro nisso, e " "você acredita erroneamente que você provou o programa corretamente." @@ -354,8 +354,7 @@ msgstr "" "quebrar seu problema em pequenos pedaços. Os programas são mais modulares " "como resultado. É mais fácil especificar e escrever uma pequena função que " "faz uma coisa do que uma grande função que realiza uma transformação " -"complicada. Pequenas funções também são mais fáceis de ler e verificar " -"erros." +"complicada. Pequenas funções também são mais fáceis de ler e verificar erros." #: ../../howto/functional.rst:146 msgid "Ease of debugging and testing" @@ -368,16 +367,16 @@ msgstr "Testar e depurar um programa de estilo funcional é mais fácil." #: ../../howto/functional.rst:150 msgid "" "Debugging is simplified because functions are generally small and clearly " -"specified. When a program doesn't work, each function is an interface point" -" where you can check that the data are correct. You can look at the " +"specified. When a program doesn't work, each function is an interface point " +"where you can check that the data are correct. You can look at the " "intermediate inputs and outputs to quickly isolate the function that's " "responsible for a bug." msgstr "" "A depuração é simplificada porque as funções são geralmente pequenas e " "claramente especificadas. Quando um programa não funciona, cada função é um " -"ponto de interface onde você pode verificar se os dados estão corretos. Você" -" pode observar as entradas e saídas intermediárias para isolar rapidamente a" -" função responsável por um erro." +"ponto de interface onde você pode verificar se os dados estão corretos. Você " +"pode observar as entradas e saídas intermediárias para isolar rapidamente a " +"função responsável por um erro." #: ../../howto/functional.rst:155 msgid "" @@ -386,8 +385,8 @@ msgid "" "before running a test; instead you only have to synthesize the right input " "and then check that the output matches expectations." msgstr "" -"O teste é mais fácil porque cada função é um assunto potencial para um teste" -" unitário. As funções não dependem do estado do sistema que precisa ser " +"O teste é mais fácil porque cada função é um assunto potencial para um teste " +"unitário. As funções não dependem do estado do sistema que precisa ser " "replicado antes de executar um teste; Em vez disso, você só precisa " "sintetizar a entrada certa e depois verificar se o resultado corresponde às " "expectativas." @@ -402,8 +401,8 @@ msgid "" "functions with varying inputs and outputs. Some of these functions will be " "unavoidably specialized to a particular application, but others will be " "useful in a wide variety of programs. For example, a function that takes a " -"directory path and returns all the XML files in the directory, or a function" -" that takes a filename and returns its contents, can be applied to many " +"directory path and returns all the XML files in the directory, or a function " +"that takes a filename and returns its contents, can be applied to many " "different situations." msgstr "" "À medida que você trabalha em um programa de estilo funcional, você " @@ -417,13 +416,12 @@ msgstr "" #: ../../howto/functional.rst:171 msgid "" "Over time you'll form a personal library of utilities. Often you'll " -"assemble new programs by arranging existing functions in a new configuration" -" and writing a few functions specialized for the current task." +"assemble new programs by arranging existing functions in a new configuration " +"and writing a few functions specialized for the current task." msgstr "" -"Com o tempo você formará uma biblioteca pessoal de utilitários. Muitas vezes" -" você montará novos programas organizando funções existentes em uma nova " -"configuração e escrevendo algumas funções especializadas para a tarefa " -"atual." +"Com o tempo você formará uma biblioteca pessoal de utilitários. Muitas vezes " +"você montará novos programas organizando funções existentes em uma nova " +"configuração e escrevendo algumas funções especializadas para a tarefa atual." #: ../../howto/functional.rst:179 msgid "Iterators" @@ -441,20 +439,19 @@ msgstr "" msgid "" "An iterator is an object representing a stream of data; this object returns " "the data one element at a time. A Python iterator must support a method " -"called :meth:`~iterator.__next__` that takes no arguments and always returns" -" the next element of the stream. If there are no more elements in the " +"called :meth:`~iterator.__next__` that takes no arguments and always returns " +"the next element of the stream. If there are no more elements in the " "stream, :meth:`~iterator.__next__` must raise the :exc:`StopIteration` " "exception. Iterators don't have to be finite, though; it's perfectly " "reasonable to write an iterator that produces an infinite stream of data." msgstr "" "Um iterador é um objeto que representa um fluxo de dados; Este objeto " "retorna os dados um elemento por vez. Um iterador Python deve suportar um " -"método chamado: meth: `iterator .__ next__` que não leva argumentos e sempre" -" retorna o próximo elemento do fluxo. Se não houver mais elementos no " -"fluxo,: meth: `iterator .__ next__` deve aumentar a exceção: exc:` " -"StopIteration`. Os iteradores não precisam ser finitos; no entanto, é " -"perfeitamente razoável escrever um iterador que produza um fluxo infinito de" -" dados." +"método chamado: meth: `iterator .__ next__` que não leva argumentos e sempre " +"retorna o próximo elemento do fluxo. Se não houver mais elementos no fluxo,: " +"meth: `iterator .__ next__` deve aumentar a exceção: exc:` StopIteration`. " +"Os iteradores não precisam ser finitos; no entanto, é perfeitamente razoável " +"escrever um iterador que produza um fluxo infinito de dados." #: ../../howto/functional.rst:192 msgid "" @@ -462,8 +459,8 @@ msgid "" "return an iterator that will return the object's contents or elements, " "raising :exc:`TypeError` if the object doesn't support iteration. Several " "of Python's built-in data types support iteration, the most common being " -"lists and dictionaries. An object is called :term:`iterable` if you can get" -" an iterator for it." +"lists and dictionaries. An object is called :term:`iterable` if you can get " +"an iterator for it." msgstr "" "A função built-in: func: `iter` leva um objeto arbitrário e tenta retornar " "um iterador que retornará os conteúdos ou elementos do objeto, caso o " @@ -483,18 +480,18 @@ msgid "" "Y``, Y must be an iterator or some object for which :func:`iter` can create " "an iterator. These two statements are equivalent::" msgstr "" -"Python espera objetos iteráveis em vários contextos diferentes, sendo o mais" -" importante a palavra-chave: `for` statement. Na declaração `` para X em " -"Y``, Y deve ser um iterador ou algum objeto para o qual: func: `iter` pode " -"criar um iterador. Estas duas declarações são equivalentes ::" +"Python espera objetos iteráveis em vários contextos diferentes, sendo o mais " +"importante a palavra-chave: `for` statement. Na declaração `` para X em Y``, " +"Y deve ser um iterador ou algum objeto para o qual: func: `iter` pode criar " +"um iterador. Estas duas declarações são equivalentes ::" #: ../../howto/functional.rst:229 msgid "" "Iterators can be materialized as lists or tuples by using the :func:`list` " "or :func:`tuple` constructor functions:" msgstr "" -"Iteradores também podem ser materializados como listas ou tuplas, utilizando" -" o construtor de funções :func:`list` ou :func:`tuple` :" +"Iteradores também podem ser materializados como listas ou tuplas, utilizando " +"o construtor de funções :func:`list` ou :func:`tuple` :" #: ../../howto/functional.rst:238 msgid "" @@ -507,16 +504,16 @@ msgstr "" #: ../../howto/functional.rst:247 msgid "" "Built-in functions such as :func:`max` and :func:`min` can take a single " -"iterator argument and will return the largest or smallest element. The " -"``\"in\"`` and ``\"not in\"`` operators also support iterators: ``X in " +"iterator argument and will return the largest or smallest element. The ``" +"\"in\"`` and ``\"not in\"`` operators also support iterators: ``X in " "iterator`` is true if X is found in the stream returned by the iterator. " -"You'll run into obvious problems if the iterator is infinite; :func:`max`, " -":func:`min` will never return, and if the element X never appears in the " +"You'll run into obvious problems if the iterator is infinite; :func:`max`, :" +"func:`min` will never return, and if the element X never appears in the " "stream, the ``\"in\"`` and ``\"not in\"`` operators won't return either." msgstr "" -"Funções integradas, tais como: func: `max` e: func:` min` podem ter um único" -" argumento de iterador e retornarão o elemento maior ou menor. Os operadores" -" `` \"in\" `` e `` \"not in\" `` também aceitam iteradores: `` X in " +"Funções integradas, tais como: func: `max` e: func:` min` podem ter um único " +"argumento de iterador e retornarão o elemento maior ou menor. Os operadores " +"`` \"in\" `` e `` \"not in\" `` também aceitam iteradores: `` X in " "iterator`` é verdadeiro se X for encontrado no fluxo retornado pelo " "iterador. Você enfrentará problemas óbvios se o iterador for infinito; : " "Func: `max`,: func:` min` nunca retornará, e se o elemento X nunca aparecer " @@ -529,16 +526,16 @@ msgid "" "objects can optionally provide these additional capabilities, but the " "iterator protocol only specifies the :meth:`~iterator.__next__` method. " "Functions may therefore consume all of the iterator's output, and if you " -"need to do something different with the same stream, you'll have to create a" -" new iterator." +"need to do something different with the same stream, you'll have to create a " +"new iterator." msgstr "" "Observe que você só pode avançar em um iterador; Não há como obter o " "elemento anterior, redefinir o iterador ou fazer uma cópia dele. Os objetos " "Iterator podem opcionalmente fornecer esses recursos adicionais, mas o " "protocolo do iterador especifica apenas o método: meth: `iterator .__ " -"next__`. As funções podem, portanto, consumir toda a saída do iterador, e se" -" você precisa fazer algo diferente com o mesmo fluxo, você terá que criar um" -" novo iterador." +"next__`. As funções podem, portanto, consumir toda a saída do iterador, e se " +"você precisa fazer algo diferente com o mesmo fluxo, você terá que criar um " +"novo iterador." #: ../../howto/functional.rst:265 msgid "Data Types That Support Iterators" @@ -550,22 +547,22 @@ msgid "" "Python sequence type, such as strings, will automatically support creation " "of an iterator." msgstr "" -"Já vimos como listas e tuplas suportam iteradores. De fato, qualquer tipo de" -" seqüência de Python, como strings, suportará automaticamente a criação de " -"um iterador." +"Já vimos como listas e tuplas suportam iteradores. De fato, qualquer tipo de " +"seqüência de Python, como strings, suportará automaticamente a criação de um " +"iterador." #: ../../howto/functional.rst:271 msgid "" -"Calling :func:`iter` on a dictionary returns an iterator that will loop over" -" the dictionary's keys::" +"Calling :func:`iter` on a dictionary returns an iterator that will loop over " +"the dictionary's keys::" msgstr "" "Chamando: func: `iter` em um dicionário retorna um iterador que irá " "percorrer as chaves do dicionário ::" #: ../../howto/functional.rst:291 msgid "" -"Note that starting with Python 3.7, dictionary iteration order is guaranteed" -" to be the same as the insertion order. In earlier versions, the behaviour " +"Note that starting with Python 3.7, dictionary iteration order is guaranteed " +"to be the same as the insertion order. In earlier versions, the behaviour " "was unspecified and could vary between implementations." msgstr "" @@ -573,12 +570,11 @@ msgstr "" msgid "" "Applying :func:`iter` to a dictionary always loops over the keys, but " "dictionaries have methods that return other iterators. If you want to " -"iterate over values or key/value pairs, you can explicitly call the " -":meth:`~dict.values` or :meth:`~dict.items` methods to get an appropriate " -"iterator." +"iterate over values or key/value pairs, you can explicitly call the :meth:" +"`~dict.values` or :meth:`~dict.items` methods to get an appropriate iterator." msgstr "" -"Aplicando: func: `iter` para um dicionário sempre percorre as teclas, mas os" -" dicionários têm métodos que retornam outros iteradores. Se você deseja " +"Aplicando: func: `iter` para um dicionário sempre percorre as teclas, mas os " +"dicionários têm métodos que retornam outros iteradores. Se você deseja " "iterar sobre valores ou pares de chave / valor, você pode chamar " "explicitamente os métodos: meth: `~ dict.values` ou: meth:` ~ dict.items` " "para obter um iterador apropriado." @@ -597,9 +593,9 @@ msgid "" "method until there are no more lines in the file. This means you can read " "each line of a file like this::" msgstr "" -"Os arquivos também suportam a iteração chamando o método: meth: `~ " -"io.TextIOBase.readline` até que não haja mais linhas no arquivo. Isso " -"significa que você pode ler cada linha de um arquivo como este ::" +"Os arquivos também suportam a iteração chamando o método: meth: `~ io." +"TextIOBase.readline` até que não haja mais linhas no arquivo. Isso significa " +"que você pode ler cada linha de um arquivo como este ::" #: ../../howto/functional.rst:316 msgid "" @@ -622,27 +618,28 @@ msgid "" "containing a given substring." msgstr "" "Duas operações comuns na saída de um iterador são 1) executando alguma " -"operação para cada elemento, 2) selecionando um subconjunto de elementos que" -" atendam a alguma condição. Por exemplo, com uma lista de cadeias de " +"operação para cada elemento, 2) selecionando um subconjunto de elementos que " +"atendam a alguma condição. Por exemplo, com uma lista de cadeias de " "caracteres, você pode querer retirar o espaço em branco de cada linha ou " "extrair todas as seqüências de caracteres que contenham uma determinada " "substring." #: ../../howto/functional.rst:334 msgid "" -"List comprehensions and generator expressions (short form: \"listcomps\" and" -" \"genexps\") are a concise notation for such operations, borrowed from the " -"functional programming language Haskell (https://www.haskell.org/). You can" -" strip all the whitespace from a stream of strings with the following code::" +"List comprehensions and generator expressions (short form: \"listcomps\" and " +"\"genexps\") are a concise notation for such operations, borrowed from the " +"functional programming language Haskell (https://www.haskell.org/). You can " +"strip all the whitespace from a stream of strings with the following code::" msgstr "" "As compreensões da lista e as expressões do gerador (formulário curto: " "\"listcomps\" e \"genexps\") são uma notação concisa para tais operações, " -"emprestado da linguagem de programação funcional Haskell " -"(https://www.haskell.org/). Você pode tirar todos os espaços em branco de um" -" fluxo de strings com o seguinte código ::" +"emprestado da linguagem de programação funcional Haskell (https://www." +"haskell.org/). Você pode tirar todos os espaços em branco de um fluxo de " +"strings com o seguinte código ::" #: ../../howto/functional.rst:347 -msgid "You can select only certain elements by adding an ``\"if\"`` condition::" +msgid "" +"You can select only certain elements by adding an ``\"if\"`` condition::" msgstr "" "Você pode selecionar apenas determinados elementos adicionando uma condição " "`` \"if\" `` ::" @@ -653,15 +650,15 @@ msgid "" "a list containing the resulting lines, not an iterator. Generator " "expressions return an iterator that computes the values as necessary, not " "needing to materialize all the values at once. This means that list " -"comprehensions aren't useful if you're working with iterators that return an" -" infinite stream or a very large amount of data. Generator expressions are " +"comprehensions aren't useful if you're working with iterators that return an " +"infinite stream or a very large amount of data. Generator expressions are " "preferable in these situations." msgstr "" "Com uma lista de compreensão, você recebe uma lista Python; `` " "Stripped_list`` é uma lista contendo as linhas resultantes, e não um " "iterador. As expressões do gerador retornam um iterador que calcula os " -"valores conforme necessário, não precisando materializar todos os valores ao" -" mesmo tempo. Isso significa que as compreensões da lista não são úteis se " +"valores conforme necessário, não precisando materializar todos os valores ao " +"mesmo tempo. Isso significa que as compreensões da lista não são úteis se " "você estiver trabalhando com iteradores que retornam um fluxo infinito ou " "uma quantidade muito grande de dados. As expressões do gerador são " "preferíveis nessas situações." @@ -693,17 +690,17 @@ msgid "" msgstr "" "Os elementos do resultado gerado serão os valores sucessivos de `` " "expression``. As cláusulas `` if`` são todas opcionais; Se presente, `` " -"expression`` só é avaliado e adicionado ao resultado quando `` condition`` é" -" verdadeiro." +"expression`` só é avaliado e adicionado ao resultado quando `` condition`` é " +"verdadeiro." #: ../../howto/functional.rst:379 msgid "" "Generator expressions always have to be written inside parentheses, but the " -"parentheses signalling a function call also count. If you want to create an" -" iterator that will be immediately passed to a function you can write::" +"parentheses signalling a function call also count. If you want to create an " +"iterator that will be immediately passed to a function you can write::" msgstr "" -"As expressões do gerador sempre devem ser escritas dentro de parênteses, mas" -" os parênteses que sinalizam uma chamada de função também contam. Se você " +"As expressões do gerador sempre devem ser escritas dentro de parênteses, mas " +"os parênteses que sinalizam uma chamada de função também contam. Se você " "quiser criar um iterador que será imediatamente passado para uma função, " "você pode escrever ::" @@ -711,8 +708,8 @@ msgstr "" msgid "" "The ``for...in`` clauses contain the sequences to be iterated over. The " "sequences do not have to be the same length, because they are iterated over " -"from left to right, **not** in parallel. For each element in ``sequence1``," -" ``sequence2`` is looped over from the beginning. ``sequence3`` is then " +"from left to right, **not** in parallel. For each element in ``sequence1``, " +"``sequence2`` is looped over from the beginning. ``sequence3`` is then " "looped over for each resulting pair of elements from ``sequence1`` and " "``sequence2``." msgstr "" @@ -738,16 +735,16 @@ msgid "" "the lengths of all the sequences. If you have two lists of length 3, the " "output list is 9 elements long:" msgstr "" -"Isso significa que, quando existem várias cláusulas `` for ... in``, mas não" -" `` if``, o comprimento da saída resultante será igual ao produto dos " +"Isso significa que, quando existem várias cláusulas `` for ... in``, mas não " +"`` if``, o comprimento da saída resultante será igual ao produto dos " "comprimentos de todas as sequências. Se você tiver duas listas de " "comprimento 3, a lista de saída tem 9 elementos de comprimento:" #: ../../howto/functional.rst:420 msgid "" "To avoid introducing an ambiguity into Python's grammar, if ``expression`` " -"is creating a tuple, it must be surrounded with parentheses. The first list" -" comprehension below is a syntax error, while the second one is correct::" +"is creating a tuple, it must be surrounded with parentheses. The first list " +"comprehension below is a syntax error, while the second one is correct::" msgstr "" "Para evitar a introdução de uma ambigüidade na gramática de Python, se `` " "expression`` estiver criando uma tupla, ela deve estar cercada de " @@ -780,8 +777,8 @@ msgid "" "function where it left off? This is what generators provide; they can be " "thought of as resumable functions." msgstr "" -"Você está sem dúvida familiarizado com o funcionamento das funções regulares" -" em Python ou C. Quando você chama uma função, ela recebe um espaço de nome " +"Você está sem dúvida familiarizado com o funcionamento das funções regulares " +"em Python ou C. Quando você chama uma função, ela recebe um espaço de nome " "privado onde suas variáveis locais são criadas. Quando a função atinge uma " "instrução `` return``, as variáveis locais são destruídas e o valor " "retornado ao chamador. Uma chamada posterior para a mesma função cria um " @@ -816,8 +813,8 @@ msgid "" "method, the function will resume executing." msgstr "" "Quando você chama uma função de gerador, não retorna um único valor; Em vez " -"disso, ele retorna um objeto gerador que suporte o protocolo do iterador. Ao" -" executar a expressão `` yield``, o gerador exibe o valor de `` i``, " +"disso, ele retorna um objeto gerador que suporte o protocolo do iterador. Ao " +"executar a expressão `` yield``, o gerador exibe o valor de `` i``, " "semelhante a uma instrução `` return``. A grande diferença entre `` yield`` " "e uma declaração `` return`` é que, ao atingir um `` yield``, o estado de " "execução do gerador é suspenso e as variáveis locais são preservadas. Na " @@ -842,8 +839,8 @@ msgid "" "procession of values ends and the generator cannot yield any further values." msgstr "" "Dentro de uma função de gerador, `` return value`` faz com que `` " -"StopIteration (value) `` seja gerado a partir do método: meth: `~ generator " -".__ next__`. Uma vez que isso acontece, ou a parte inferior da função é " +"StopIteration (value) `` seja gerado a partir do método: meth: `~ generator ." +"__ next__`. Uma vez que isso acontece, ou a parte inferior da função é " "alcançada, a procissão dos valores termina e o gerador não pode render mais " "valores." @@ -858,28 +855,28 @@ msgid "" msgstr "" "Você pode conseguir o efeito de geradores manualmente, escrevendo sua " "própria classe e armazenando todas as variáveis locais do gerador como " -"variáveis de instância. Por exemplo, retornar uma lista de inteiros pode ser" -" feito configurando ``self.count`` para 0, e tendo o método: `iterator .__ " +"variáveis de instância. Por exemplo, retornar uma lista de inteiros pode ser " +"feito configurando ``self.count`` para 0, e tendo o método: `iterator .__ " "next__` incrementar o método ``self.count`` e devolvê-lo. No entanto, para " -"um gerador moderadamente complicado, escrever uma classe correspondente pode" -" ser muito mais complicado." +"um gerador moderadamente complicado, escrever uma classe correspondente pode " +"ser muito mais complicado." #: ../../howto/functional.rst:498 msgid "" -"The test suite included with Python's library, " -":source:`Lib/test/test_generators.py`, contains a number of more interesting" -" examples. Here's one generator that implements an in-order traversal of a " -"tree using generators recursively. ::" +"The test suite included with Python's library, :source:`Lib/test/" +"test_generators.py`, contains a number of more interesting examples. Here's " +"one generator that implements an in-order traversal of a tree using " +"generators recursively. ::" msgstr "" -"O conjunto de teste incluído na biblioteca do Python,: source: " -"`lib/test/test_generators.py`, contém vários exemplos mais interessantes. " -"Aqui está um gerador que implementa uma passagem em ordem de uma árvore " -"usando geradores de forma recursiva. ::" +"O conjunto de teste incluído na biblioteca do Python,: source: `lib/test/" +"test_generators.py`, contém vários exemplos mais interessantes. Aqui está um " +"gerador que implementa uma passagem em ordem de uma árvore usando geradores " +"de forma recursiva. ::" #: ../../howto/functional.rst:514 msgid "" -"Two other examples in ``test_generators.py`` produce solutions for the " -"N-Queens problem (placing N queens on an NxN chess board so that no queen " +"Two other examples in ``test_generators.py`` produce solutions for the N-" +"Queens problem (placing N queens on an NxN chess board so that no queen " "threatens another) and the Knight's Tour (finding a route that takes a " "knight to every square of an NxN chessboard without visiting any square " "twice)." @@ -887,8 +884,8 @@ msgstr "" "Dois outros exemplos no ``test_generators.py`` produzem soluções para o " "problema N-Queens (colocando N rainhas em um tabuleiro de xadrez NxN para " "que nenhuma rainha ameaça a outra) e o Knight's Tour (encontrando uma rota " -"que leva um cavaleiro para cada quadrado de um xadrez NxN sem visitar nenhum" -" quadrado duas vezes)." +"que leva um cavaleiro para cada quadrado de um xadrez NxN sem visitar nenhum " +"quadrado duas vezes)." #: ../../howto/functional.rst:522 msgid "Passing values into a generator" @@ -897,8 +894,8 @@ msgstr "Passando valores para um geador" #: ../../howto/functional.rst:524 msgid "" "In Python 2.4 and earlier, generators only produced output. Once a " -"generator's code was invoked to create an iterator, there was no way to pass" -" any new information into the function when its execution is resumed. You " +"generator's code was invoked to create an iterator, there was no way to pass " +"any new information into the function when its execution is resumed. You " "could hack together this ability by making the generator look at a global " "variable or by passing in some mutable object that callers then modify, but " "these approaches are messy." @@ -912,13 +909,13 @@ msgstr "" #: ../../howto/functional.rst:531 msgid "" -"In Python 2.5 there's a simple way to pass values into a generator. " -":keyword:`yield` became an expression, returning a value that can be " -"assigned to a variable or otherwise operated on::" +"In Python 2.5 there's a simple way to pass values into a generator. :keyword:" +"`yield` became an expression, returning a value that can be assigned to a " +"variable or otherwise operated on::" msgstr "" -"No Python 2.5 há uma maneira simples de passar valores para um gerador. " -":Palavra-chave:`yield` tornou-se uma expressão, retornando um valor que pode" -" ser atribuído a uma variável ou operado de outra forma::" +"No Python 2.5 há uma maneira simples de passar valores para um gerador. :" +"Palavra-chave:`yield` tornou-se uma expressão, retornando um valor que pode " +"ser atribuído a uma variável ou operado de outra forma::" #: ../../howto/functional.rst:537 msgid "" @@ -950,14 +947,13 @@ msgstr "" msgid "" "Values are sent into a generator by calling its :meth:`send(value) " "` method. This method resumes the generator's code and the " -"``yield`` expression returns the specified value. If the regular " -":meth:`~generator.__next__` method is called, the ``yield`` returns " -"``None``." +"``yield`` expression returns the specified value. If the regular :meth:" +"`~generator.__next__` method is called, the ``yield`` returns ``None``." msgstr "" "Os valores são enviados para um gerador chamando seu método :meth:`send " "(value) `. Este método retoma o código do gerador e a " -"expressão ``yield`` retorna o valor especificado. Se o método regular: meth:" -" `~ generator .__ next__` for chamado, o ``yield`` retorna``None``." +"expressão ``yield`` retorna o valor especificado. Se o método regular: meth: " +"`~ generator .__ next__` for chamado, o ``yield`` retorna``None``." #: ../../howto/functional.rst:553 msgid "" @@ -991,8 +987,8 @@ msgstr "" #: ../../howto/functional.rst:593 msgid "" -":meth:`throw(type, value=None, traceback=None) ` is used to" -" raise an exception inside the generator; the exception is raised by the " +":meth:`throw(type, value=None, traceback=None) ` is used to " +"raise an exception inside the generator; the exception is raised by the " "``yield`` expression where the generator's execution is paused." msgstr "" @@ -1000,18 +996,18 @@ msgstr "" msgid "" ":meth:`~generator.close` raises a :exc:`GeneratorExit` exception inside the " "generator to terminate the iteration. On receiving this exception, the " -"generator's code must either raise :exc:`GeneratorExit` or " -":exc:`StopIteration`; catching the exception and doing anything else is " -"illegal and will trigger a :exc:`RuntimeError`. :meth:`~generator.close` " -"will also be called by Python's garbage collector when the generator is " -"garbage-collected." +"generator's code must either raise :exc:`GeneratorExit` or :exc:" +"`StopIteration`; catching the exception and doing anything else is illegal " +"and will trigger a :exc:`RuntimeError`. :meth:`~generator.close` will also " +"be called by Python's garbage collector when the generator is garbage-" +"collected." msgstr "" #: ../../howto/functional.rst:605 msgid "" "If you need to run cleanup code when a :exc:`GeneratorExit` occurs, I " -"suggest using a ``try: ... finally:`` suite instead of catching " -":exc:`GeneratorExit`." +"suggest using a ``try: ... finally:`` suite instead of catching :exc:" +"`GeneratorExit`." msgstr "" #: ../../howto/functional.rst:608 @@ -1040,20 +1036,18 @@ msgstr "" #: ../../howto/functional.rst:622 msgid "" -"Two of Python's built-in functions, :func:`map` and :func:`filter` duplicate" -" the features of generator expressions:" +"Two of Python's built-in functions, :func:`map` and :func:`filter` duplicate " +"the features of generator expressions:" msgstr "" #: ../../howto/functional.rst:634 msgid "" -":func:`map(f, iterA, iterB, ...) ` returns an iterator over the " -"sequence" +":func:`map(f, iterA, iterB, ...) ` returns an iterator over the sequence" msgstr "" #: ../../howto/functional.rst:626 msgid "" -"``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2], iterB[2]), " -"...``." +"``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2], iterB[2]), ...``." msgstr "" #: ../../howto/functional.rst:636 @@ -1064,8 +1058,8 @@ msgstr "" #: ../../howto/functional.rst:638 msgid "" ":func:`filter(predicate, iter) ` returns an iterator over all the " -"sequence elements that meet a certain condition, and is similarly duplicated" -" by list comprehensions. A **predicate** is a function that returns the " +"sequence elements that meet a certain condition, and is similarly duplicated " +"by list comprehensions. A **predicate** is a function that returns the " "truth value of some condition; for use with :func:`filter`, the predicate " "must take a single value." msgstr "" @@ -1090,8 +1084,8 @@ msgstr "" #: ../../howto/functional.rst:675 msgid "" ":func:`sorted(iterable, key=None, reverse=False) ` collects all the " -"elements of the iterable into a list, sorts the list, and returns the sorted" -" result. The *key* and *reverse* arguments are passed through to the " +"elements of the iterable into a list, sorts the list, and returns the sorted " +"result. The *key* and *reverse* arguments are passed through to the " "constructed list's :meth:`~list.sort` method. ::" msgstr "" @@ -1103,8 +1097,8 @@ msgstr "" #: ../../howto/functional.rst:693 msgid "" "The :func:`any(iter) ` and :func:`all(iter) ` built-ins look at " -"the truth values of an iterable's contents. :func:`any` returns ``True`` if" -" any element in the iterable is a true value, and :func:`all` returns " +"the truth values of an iterable's contents. :func:`any` returns ``True`` if " +"any element in the iterable is a true value, and :func:`all` returns " "``True`` if all of the elements are true values:" msgstr "" @@ -1124,8 +1118,8 @@ msgstr "" #: ../../howto/functional.rst:723 msgid "" -"This iterator is intended to be used with iterables that are all of the same" -" length. If the iterables are of different lengths, the resulting stream " +"This iterator is intended to be used with iterables that are all of the same " +"length. If the iterables are of different lengths, the resulting stream " "will be the same length as the shortest iterable. ::" msgstr "" @@ -1182,25 +1176,25 @@ msgstr "" #: ../../howto/functional.rst:763 msgid "" -":func:`itertools.cycle(iter) ` saves a copy of the contents" -" of a provided iterable and returns a new iterator that returns its elements" -" from first to last. The new iterator will repeat these elements " +":func:`itertools.cycle(iter) ` saves a copy of the contents " +"of a provided iterable and returns a new iterator that returns its elements " +"from first to last. The new iterator will repeat these elements " "infinitely. ::" msgstr "" #: ../../howto/functional.rst:770 msgid "" ":func:`itertools.repeat(elem, [n]) ` returns the provided " -"element *n* times, or returns the element endlessly if *n* is not provided. " -"::" +"element *n* times, or returns the element endlessly if *n* is not " +"provided. ::" msgstr "" #: ../../howto/functional.rst:778 msgid "" ":func:`itertools.chain(iterA, iterB, ...) ` takes an " "arbitrary number of iterables as input, and returns all the elements of the " -"first iterator, then all the elements of the second, and so on, until all of" -" the iterables have been exhausted. ::" +"first iterator, then all the elements of the second, and so on, until all of " +"the iterables have been exhausted. ::" msgstr "" #: ../../howto/functional.rst:786 @@ -1231,18 +1225,17 @@ msgstr "" #: ../../howto/functional.rst:821 msgid "" "The :mod:`operator` module contains a set of functions corresponding to " -"Python's operators. Some examples are :func:`operator.add(a, b) " -"` (adds two values), :func:`operator.ne(a, b) ` " -"(same as ``a != b``), and :func:`operator.attrgetter('id') " -"` (returns a callable that fetches the ``.id`` " -"attribute)." +"Python's operators. Some examples are :func:`operator.add(a, b) ` (adds two values), :func:`operator.ne(a, b) ` (same as " +"``a != b``), and :func:`operator.attrgetter('id') ` " +"(returns a callable that fetches the ``.id`` attribute)." msgstr "" #: ../../howto/functional.rst:827 msgid "" ":func:`itertools.starmap(func, iter) ` assumes that the " -"iterable will return a stream of tuples, and calls *func* using these tuples" -" as the arguments::" +"iterable will return a stream of tuples, and calls *func* using these tuples " +"as the arguments::" msgstr "" #: ../../howto/functional.rst:839 @@ -1299,10 +1292,9 @@ msgstr "" msgid "" "The elements within each tuple remain in the same order as *iterable* " "returned them. For example, the number 1 is always before 2, 3, 4, or 5 in " -"the examples above. A similar function, " -":func:`itertools.permutations(iterable, r=None) `, " -"removes this constraint on the order, returning all possible arrangements of" -" length *r*::" +"the examples above. A similar function, :func:`itertools." +"permutations(iterable, r=None) `, removes this " +"constraint on the order, returning all possible arrangements of length *r*::" msgstr "" #: ../../howto/functional.rst:919 @@ -1325,11 +1317,11 @@ msgstr "" #: ../../howto/functional.rst:932 msgid "" -"The :func:`itertools.combinations_with_replacement(iterable, r) " -"` function relaxes a different " -"constraint: elements can be repeated within a single tuple. Conceptually an" -" element is selected for the first position of each tuple and then is " -"replaced before the second element is selected. ::" +"The :func:`itertools.combinations_with_replacement(iterable, r) ` function relaxes a different constraint: " +"elements can be repeated within a single tuple. Conceptually an element is " +"selected for the first position of each tuple and then is replaced before " +"the second element is selected. ::" msgstr "" #: ../../howto/functional.rst:947 @@ -1348,9 +1340,8 @@ msgstr "" #: ../../howto/functional.rst:954 msgid "" ":func:`~itertools.groupby` collects all the consecutive elements from the " -"underlying iterable that have the same key value, and returns a stream of " -"2-tuples containing a key value and an iterator for the elements with that " -"key." +"underlying iterable that have the same key value, and returns a stream of 2-" +"tuples containing a key value and an iterator for the elements with that key." msgstr "" #: ../../howto/functional.rst:982 @@ -1369,16 +1360,16 @@ msgstr "" msgid "" "The :mod:`functools` module in Python 2.5 contains some higher-order " "functions. A **higher-order function** takes one or more functions as input " -"and returns a new function. The most useful tool in this module is the " -":func:`functools.partial` function." +"and returns a new function. The most useful tool in this module is the :" +"func:`functools.partial` function." msgstr "" #: ../../howto/functional.rst:996 msgid "" "For programs written in a functional style, you'll sometimes want to " "construct variants of existing functions that have some of the parameters " -"filled in. Consider a Python function ``f(a, b, c)``; you may wish to create" -" a new function ``g(b, c)`` that's equivalent to ``f(1, b, c)``; you're " +"filled in. Consider a Python function ``f(a, b, c)``; you may wish to create " +"a new function ``g(b, c)`` that's equivalent to ``f(1, b, c)``; you're " "filling in a value for one of ``f()``'s parameters. This is called " "\"partial function application\"." msgstr "" @@ -1387,8 +1378,8 @@ msgstr "" msgid "" "The constructor for :func:`~functools.partial` takes the arguments " "``(function, arg1, arg2, ..., kwarg1=value1, kwarg2=value2)``. The " -"resulting object is callable, so you can just call it to invoke ``function``" -" with the filled-in arguments." +"resulting object is callable, so you can just call it to invoke ``function`` " +"with the filled-in arguments." msgstr "" #: ../../howto/functional.rst:1007 @@ -1399,37 +1390,36 @@ msgstr "Aqui está um pequeno mas bem realístico exemplo::" msgid "" ":func:`functools.reduce(func, iter, [initial_value]) ` " "cumulatively performs an operation on all the iterable's elements and, " -"therefore, can't be applied to infinite iterables. *func* must be a function" -" that takes two elements and returns a single value. " -":func:`functools.reduce` takes the first two elements A and B returned by " -"the iterator and calculates ``func(A, B)``. It then requests the third " -"element, C, calculates ``func(func(A, B), C)``, combines this result with " -"the fourth element returned, and continues until the iterable is exhausted." -" If the iterable returns no values at all, a :exc:`TypeError` exception is " -"raised. If the initial value is supplied, it's used as a starting point and" -" ``func(initial_value, A)`` is the first calculation. ::" +"therefore, can't be applied to infinite iterables. *func* must be a function " +"that takes two elements and returns a single value. :func:`functools." +"reduce` takes the first two elements A and B returned by the iterator and " +"calculates ``func(A, B)``. It then requests the third element, C, " +"calculates ``func(func(A, B), C)``, combines this result with the fourth " +"element returned, and continues until the iterable is exhausted. If the " +"iterable returns no values at all, a :exc:`TypeError` exception is raised. " +"If the initial value is supplied, it's used as a starting point and " +"``func(initial_value, A)`` is the first calculation. ::" msgstr "" #: ../../howto/functional.rst:1043 msgid "" -"If you use :func:`operator.add` with :func:`functools.reduce`, you'll add up" -" all the elements of the iterable. This case is so common that there's a " +"If you use :func:`operator.add` with :func:`functools.reduce`, you'll add up " +"all the elements of the iterable. This case is so common that there's a " "special built-in called :func:`sum` to compute it:" msgstr "" #: ../../howto/functional.rst:1055 msgid "" -"For many uses of :func:`functools.reduce`, though, it can be clearer to just" -" write the obvious :keyword:`for` loop::" +"For many uses of :func:`functools.reduce`, though, it can be clearer to just " +"write the obvious :keyword:`for` loop::" msgstr "" #: ../../howto/functional.rst:1067 msgid "" -"A related function is :func:`itertools.accumulate(iterable, " -"func=operator.add) `. It performs the same " -"calculation, but instead of returning only the final result, " -":func:`accumulate` returns an iterator that also yields each partial " -"result::" +"A related function is :func:`itertools.accumulate(iterable, func=operator." +"add) `. It performs the same calculation, but instead " +"of returning only the final result, :func:`accumulate` returns an iterator " +"that also yields each partial result::" msgstr "" #: ../../howto/functional.rst:1080 @@ -1450,8 +1440,8 @@ msgstr "Algumas funcionalidades desse módulo são:" #: ../../howto/functional.rst:1089 msgid "" -"Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, ``abs()``," -" ..." +"Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, " +"``abs()``, ..." msgstr "" #: ../../howto/functional.rst:1090 @@ -1487,8 +1477,8 @@ msgstr "" #: ../../howto/functional.rst:1104 msgid "" -"If there's a Python built-in or a module function that's suitable, you don't" -" need to define a new function at all::" +"If there's a Python built-in or a module function that's suitable, you don't " +"need to define a new function at all::" msgstr "" #: ../../howto/functional.rst:1110 @@ -1502,8 +1492,8 @@ msgstr "" #: ../../howto/functional.rst:1119 msgid "" -"An alternative is to just use the ``def`` statement and define a function in" -" the usual way::" +"An alternative is to just use the ``def`` statement and define a function in " +"the usual way::" msgstr "" #: ../../howto/functional.rst:1128 @@ -1517,17 +1507,17 @@ msgid "" "One reason for my preference is that ``lambda`` is quite limited in the " "functions it can define. The result has to be computable as a single " "expression, which means you can't have multiway ``if... elif... else`` " -"comparisons or ``try... except`` statements. If you try to do too much in a" -" ``lambda`` statement, you'll end up with an overly complicated expression " +"comparisons or ``try... except`` statements. If you try to do too much in a " +"``lambda`` statement, you'll end up with an overly complicated expression " "that's hard to read. Quick, what's the following code doing? ::" msgstr "" "Um dos motivos da minha preferência é que `` lambda`` é bastante limitado " -"nas funções que pode definir. O resultado deve ser computável como uma única" -" expressão, o que significa que você não pode ter comparações multi-canais " -"`` if ... elif ... else`` ou `` try ... except``. Se você tentar fazer muito" -" em uma declaração `` lambda``, você acabará com uma expressão " -"excessivamente complicada que é difícil de ler. Rápido, o que o seguinte " -"código está fazendo? ::" +"nas funções que pode definir. O resultado deve ser computável como uma única " +"expressão, o que significa que você não pode ter comparações multi-canais `` " +"if ... elif ... else`` ou `` try ... except``. Se você tentar fazer muito em " +"uma declaração `` lambda``, você acabará com uma expressão excessivamente " +"complicada que é difícil de ler. Rápido, o que o seguinte código está " +"fazendo? ::" #: ../../howto/functional.rst:1141 msgid "" @@ -1559,11 +1549,11 @@ msgstr "" #: ../../howto/functional.rst:1163 msgid "" -"Fredrik Lundh once suggested the following set of rules for refactoring uses" -" of ``lambda``:" +"Fredrik Lundh once suggested the following set of rules for refactoring uses " +"of ``lambda``:" msgstr "" -"Fredrik Lundh sugeriu uma vez o seguinte conjunto de regras para refatoração" -" de usos de `` lambda``:" +"Fredrik Lundh sugeriu uma vez o seguinte conjunto de regras para refatoração " +"de usos de `` lambda``:" #: ../../howto/functional.rst:1166 msgid "Write a lambda function." @@ -1575,8 +1565,8 @@ msgstr "Escreva um comentário explicando o que o lambda faz." #: ../../howto/functional.rst:1168 msgid "" -"Study the comment for a while, and think of a name that captures the essence" -" of the comment." +"Study the comment for a while, and think of a name that captures the essence " +"of the comment." msgstr "" "Estude o comentário por um tempo e pense em um nome que capture a essência " "do comentário." @@ -1604,9 +1594,9 @@ msgstr "Histórico de Revisão e Reconhecimentos" #: ../../howto/functional.rst:1180 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Ian Bicking, Nick Coghlan, Nick Efford, Raymond Hettinger, Jim Jewett, Mike" -" Krell, Leandro Lameiro, Jussi Salmela, Collin Winter, Blake Winton." +"suggestions, corrections and assistance with various drafts of this article: " +"Ian Bicking, Nick Coghlan, Nick Efford, Raymond Hettinger, Jim Jewett, Mike " +"Krell, Leandro Lameiro, Jussi Salmela, Collin Winter, Blake Winton." msgstr "" "O autor agradece as seguintes pessoas por oferecer sugestões, correções e " "assistência com vários rascunhos deste artigo: Ian Bicking, Nick Coghlan, " @@ -1641,8 +1631,8 @@ msgid "" "Version 0.30: Adds a section on the ``functional`` module written by Collin " "Winter; adds short section on the operator module; a few other edits." msgstr "" -"Versão 0.30: Adiciona uma seção no módulo `` functional`` escrito por Collin" -" Winter; Adiciona seção curta no módulo do operador; Algumas outras edições." +"Versão 0.30: Adiciona uma seção no módulo `` functional`` escrito por Collin " +"Winter; Adiciona seção curta no módulo do operador; Algumas outras edições." #: ../../howto/functional.rst:1199 msgid "References" @@ -1654,21 +1644,21 @@ msgstr "Geral" #: ../../howto/functional.rst:1204 msgid "" -"**Structure and Interpretation of Computer Programs**, by Harold Abelson and" -" Gerald Jay Sussman with Julie Sussman. Full text at " -"https://mitpress.mit.edu/sicp/. In this classic textbook of computer " -"science, chapters 2 and 3 discuss the use of sequences and streams to " -"organize the data flow inside a program. The book uses Scheme for its " -"examples, but many of the design approaches described in these chapters are " -"applicable to functional-style Python code." +"**Structure and Interpretation of Computer Programs**, by Harold Abelson and " +"Gerald Jay Sussman with Julie Sussman. Full text at https://mitpress.mit." +"edu/sicp/. In this classic textbook of computer science, chapters 2 and 3 " +"discuss the use of sequences and streams to organize the data flow inside a " +"program. The book uses Scheme for its examples, but many of the design " +"approaches described in these chapters are applicable to functional-style " +"Python code." msgstr "" "** Estrutura e Interpretação de Programas de Computador **, de Harold " -"Abelson e Gerald Jay Sussman com Julie Sussman. Texto completo em " -"https://mitpress.mit.edu/sicp/. Neste clássico livro de informática, os " -"capítulos 2 e 3 discutem o uso de seqüências e fluxos para organizar o fluxo" -" de dados dentro de um programa. O livro usa o Esquema para seus exemplos, " -"mas muitas das abordagens de design descritas nestes capítulos são " -"aplicáveis ao código Python de estilo funcional." +"Abelson e Gerald Jay Sussman com Julie Sussman. Texto completo em https://" +"mitpress.mit.edu/sicp/. Neste clássico livro de informática, os capítulos 2 " +"e 3 discutem o uso de seqüências e fluxos para organizar o fluxo de dados " +"dentro de um programa. O livro usa o Esquema para seus exemplos, mas muitas " +"das abordagens de design descritas nestes capítulos são aplicáveis ao código " +"Python de estilo funcional." #: ../../howto/functional.rst:1212 msgid "" @@ -1706,8 +1696,8 @@ msgstr "Python-specific" msgid "" "http://gnosis.cx/TPiP/: The first chapter of David Mertz's book :title-" "reference:`Text Processing in Python` discusses functional programming for " -"text processing, in the section titled \"Utilizing Higher-Order Functions in" -" Text Processing\"." +"text processing, in the section titled \"Utilizing Higher-Order Functions in " +"Text Processing\"." msgstr "" "http://gnosis.cx/TPiP/: O primeiro capítulo do livro de David Mertz :title-" "reference:`Text Processing in Python` onde discute programação funcional " @@ -1717,19 +1707,10 @@ msgstr "" #: ../../howto/functional.rst:1230 msgid "" "Mertz also wrote a 3-part series of articles on functional programming for " -"IBM's DeveloperWorks site; see `part 1 " -"`__, " -"`part 2 " -"`__, " -"and `part 3 " -"`__," -msgstr "" -"Mertz também escreveu uma série de artigos de 3 partes sobre programação " -"funcional para o site IBM's DeveloperWorks; Veja `parte 1 " -"` __, " -"`parte 2 `__ e` part 3 " -" `__," +"IBM's DeveloperWorks site; see `part 1 `__, `part 2 `__, and " +"`part 3 `__," +msgstr "" #: ../../howto/functional.rst:1238 msgid "Python documentation" diff --git a/howto/index.po b/howto/index.po index b7a6b3e30..9eeac20ee 100644 --- a/howto/index.po +++ b/howto/index.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,10 +29,10 @@ msgstr "Python HOWTOs" #: ../../howto/index.rst:5 msgid "" -"Python HOWTOs are documents that cover a single, specific topic, and attempt" -" to cover it fairly completely. Modelled on the Linux Documentation " -"Project's HOWTO collection, this collection is an effort to foster " -"documentation that's more detailed than the Python Library Reference." +"Python HOWTOs are documents that cover a single, specific topic, and attempt " +"to cover it fairly completely. Modelled on the Linux Documentation Project's " +"HOWTO collection, this collection is an effort to foster documentation " +"that's more detailed than the Python Library Reference." msgstr "" "HOWTOs do Python são documentos que cobrem um único tópico específico e " "tentam explica-lo completamente. Modelado na coleção HOWTO do Projeto de " diff --git a/howto/instrumentation.po b/howto/instrumentation.po index 8e00e2fec..2b7e786f7 100644 --- a/howto/instrumentation.po +++ b/howto/instrumentation.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -26,9 +28,9 @@ msgstr "" msgid "Instrumenting CPython with DTrace and SystemTap" msgstr "Instrumentando o CPython com DTrace e SystemTap" -#: ../../howto/instrumentation.rst:0 ../../howto/instrumentation.rst:0 +#: ../../howto/instrumentation.rst:0 msgid "author" -msgstr "" +msgstr "autor" #: ../../howto/instrumentation.rst:9 msgid "David Malcolm" @@ -59,9 +61,9 @@ msgstr "" #: ../../howto/instrumentation.rst:20 msgid "" -"As of Python 3.6, CPython can be built with embedded \"markers\", also known" -" as \"probes\", that can be observed by a DTrace or SystemTap script, making" -" it easier to monitor what the CPython processes on a system are doing." +"As of Python 3.6, CPython can be built with embedded \"markers\", also known " +"as \"probes\", that can be observed by a DTrace or SystemTap script, making " +"it easier to monitor what the CPython processes on a system are doing." msgstr "" #: ../../howto/instrumentation.rst:27 @@ -180,8 +182,7 @@ msgstr "" #: ../../howto/instrumentation.rst:253 msgid "" -"and the remainder indicates the call/return hierarchy as the script " -"executes." +"and the remainder indicates the call/return hierarchy as the script executes." msgstr "" #: ../../howto/instrumentation.rst:255 @@ -212,8 +213,8 @@ msgstr "" #: ../../howto/instrumentation.rst:282 msgid "" "The filename, function name, and line number are provided back to the " -"tracing script as positional arguments, which must be accessed using " -"``$arg1``, ``$arg2``, ``$arg3``:" +"tracing script as positional arguments, which must be accessed using ``" +"$arg1``, ``$arg2``, ``$arg3``:" msgstr "" #: ../../howto/instrumentation.rst:286 @@ -234,8 +235,8 @@ msgstr "" #: ../../howto/instrumentation.rst:295 msgid "" -"This marker is the converse of :c:func:`function__entry`, and indicates that" -" execution of a Python function has ended (either via ``return``, or via an " +"This marker is the converse of :c:func:`function__entry`, and indicates that " +"execution of a Python function has ended (either via ``return``, or via an " "exception). It is only triggered for pure-Python (bytecode) functions." msgstr "" @@ -268,14 +269,14 @@ msgstr "" #: ../../howto/instrumentation.rst:321 msgid "" -"Fires before :mod:`importlib` attempts to find and load the module. ``arg0``" -" is the module name." +"Fires before :mod:`importlib` attempts to find and load the module. ``arg0`` " +"is the module name." msgstr "" #: ../../howto/instrumentation.rst:328 msgid "" -"Fires after :mod:`importlib`'s find_and_load function is called. ``arg0`` is" -" the module name, ``arg1`` indicates if module was successfully loaded." +"Fires after :mod:`importlib`'s find_and_load function is called. ``arg0`` is " +"the module name, ``arg1`` indicates if module was successfully loaded." msgstr "" #: ../../howto/instrumentation.rst:336 @@ -284,9 +285,9 @@ msgstr "" #: ../../howto/instrumentation.rst:338 msgid "" -"The higher-level way to use the SystemTap integration is to use a " -"\"tapset\": SystemTap's equivalent of a library, which hides some of the " -"lower-level details of the static markers." +"The higher-level way to use the SystemTap integration is to use a \"tapset" +"\": SystemTap's equivalent of a library, which hides some of the lower-level " +"details of the static markers." msgstr "" #: ../../howto/instrumentation.rst:342 @@ -295,15 +296,14 @@ msgstr "" #: ../../howto/instrumentation.rst:365 msgid "" -"If this file is installed in SystemTap's tapset directory (e.g. " -"``/usr/share/systemtap/tapset``), then these additional probepoints become " -"available:" +"If this file is installed in SystemTap's tapset directory (e.g. ``/usr/share/" +"systemtap/tapset``), then these additional probepoints become available:" msgstr "" #: ../../howto/instrumentation.rst:371 msgid "" -"This probe point indicates that execution of a Python function has begun. It" -" is only triggered for pure-Python (bytecode) functions." +"This probe point indicates that execution of a Python function has begun. It " +"is only triggered for pure-Python (bytecode) functions." msgstr "" #: ../../howto/instrumentation.rst:376 @@ -327,7 +327,7 @@ msgstr "" #: ../../howto/instrumentation.rst:403 msgid "" -"The following script uses the tapset above to provide a top-like view of all" -" running CPython code, showing the top 20 most frequently-entered bytecode " +"The following script uses the tapset above to provide a top-like view of all " +"running CPython code, showing the top 20 most frequently-entered bytecode " "frames, each second, across the whole system:" msgstr "" diff --git a/howto/ipaddress.po b/howto/ipaddress.po index bb1ff8f51..eb904f936 100644 --- a/howto/ipaddress.po +++ b/howto/ipaddress.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Cauê Baasch de Souza , 2019 # Misael borges , 2019 -# +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,9 +29,9 @@ msgstr "" msgid "An introduction to the ipaddress module" msgstr "Uma introdução ao módulo ipaddress" -#: ../../howto/ipaddress.rst:0 ../../howto/ipaddress.rst:0 +#: ../../howto/ipaddress.rst:0 msgid "author" -msgstr "" +msgstr "autor" #: ../../howto/ipaddress.rst:11 msgid "Peter Moody" @@ -51,10 +53,15 @@ msgid "" "an overview of how :mod:`ipaddress` represents IP network addressing " "concepts." msgstr "" +"Este documento tem como objetivo prover uma suave introdução ao módulo :mod:" +"`ipaddress`. Ele é direcionado primeiramente para usuários que ainda não são " +"familiarizados com a terminologia de rede IP, mas tambem pode ser útil para " +"engenheiros de rede que querem uma visão geral de como :mod:`ipaddress` " +"representa os conceitos de endereçamento de rede IP." #: ../../howto/ipaddress.rst:24 msgid "Creating Address/Network/Interface objects" -msgstr "" +msgstr "Criando objetos de Endereço/Rede/Interface" #: ../../howto/ipaddress.rst:26 msgid "" @@ -76,6 +83,13 @@ msgid "" "addresses to handle the needs of the whole world, especially given the " "increasing number of devices with direct connections to the internet." msgstr "" +"Para leitores que não estão particularmente familiarizados com endereçamento " +"IP, é importante saber que o Protocolo de Internet está atualmente no " +"processo de mudança da versão 4 para a versão 6 do protocolo. Esta " +"transição está ocorrendo em grande parte porque a versão 4 do protocolo não " +"fornece endereços suficientes para atender as necessidades do mundo todo, " +"especialmente considerando o crescente número de dispositivos com conexões " +"diretas a internet." #: ../../howto/ipaddress.rst:41 msgid "" @@ -117,27 +131,27 @@ msgstr "" #: ../../howto/ipaddress.rst:84 msgid "" -"Host addresses are usually grouped together into IP networks, so " -":mod:`ipaddress` provides a way to create, inspect and manipulate network " -"definitions. IP network objects are constructed from strings that define the" -" range of host addresses that are part of that network. The simplest form " -"for that information is a \"network address/network prefix\" pair, where the" -" prefix defines the number of leading bits that are compared to determine " +"Host addresses are usually grouped together into IP networks, so :mod:" +"`ipaddress` provides a way to create, inspect and manipulate network " +"definitions. IP network objects are constructed from strings that define the " +"range of host addresses that are part of that network. The simplest form for " +"that information is a \"network address/network prefix\" pair, where the " +"prefix defines the number of leading bits that are compared to determine " "whether or not an address is part of the network and the network address " "defines the expected value of those bits." msgstr "" #: ../../howto/ipaddress.rst:93 msgid "" -"As for addresses, a factory function is provided that determines the correct" -" IP version automatically::" +"As for addresses, a factory function is provided that determines the correct " +"IP version automatically::" msgstr "" #: ../../howto/ipaddress.rst:101 msgid "" -"Network objects cannot have any host bits set. The practical effect of this" -" is that ``192.0.2.1/24`` does not describe a network. Such definitions are" -" referred to as interface objects since the ip-on-a-network notation is " +"Network objects cannot have any host bits set. The practical effect of this " +"is that ``192.0.2.1/24`` does not describe a network. Such definitions are " +"referred to as interface objects since the ip-on-a-network notation is " "commonly used to describe network interfaces of a computer on a given " "network and are described further in the next section." msgstr "" @@ -160,9 +174,8 @@ msgstr "" #: ../../howto/ipaddress.rst:129 msgid "" -"As with addresses, creation of a particular kind of network can be forced by" -" calling the class constructor directly instead of using the factory " -"function." +"As with addresses, creation of a particular kind of network can be forced by " +"calling the class constructor directly instead of using the factory function." msgstr "" #: ../../howto/ipaddress.rst:135 @@ -173,13 +186,13 @@ msgstr "" msgid "" "As mentioned just above, if you need to describe an address on a particular " "network, neither the address nor the network classes are sufficient. " -"Notation like ``192.0.2.1/24`` is commonly used by network engineers and the" -" people who write tools for firewalls and routers as shorthand for \"the " -"host ``192.0.2.1`` on the network ``192.0.2.0/24``\", Accordingly, " -":mod:`ipaddress` provides a set of hybrid classes that associate an address " -"with a particular network. The interface for creation is identical to that " -"for defining network objects, except that the address portion isn't " -"constrained to being a network address." +"Notation like ``192.0.2.1/24`` is commonly used by network engineers and the " +"people who write tools for firewalls and routers as shorthand for \"the host " +"``192.0.2.1`` on the network ``192.0.2.0/24``\", Accordingly, :mod:" +"`ipaddress` provides a set of hybrid classes that associate an address with " +"a particular network. The interface for creation is identical to that for " +"defining network objects, except that the address portion isn't constrained " +"to being a network address." msgstr "" #: ../../howto/ipaddress.rst:152 @@ -194,10 +207,9 @@ msgstr "" #: ../../howto/ipaddress.rst:159 msgid "" -"You've gone to the trouble of creating an " -"IPv(4|6)(Address|Network|Interface) object, so you probably want to get " -"information about it. :mod:`ipaddress` tries to make doing this easy and " -"intuitive." +"You've gone to the trouble of creating an IPv(4|6)(Address|Network|" +"Interface) object, so you probably want to get information about it. :mod:" +"`ipaddress` tries to make doing this easy and intuitive." msgstr "" #: ../../howto/ipaddress.rst:163 @@ -218,8 +230,8 @@ msgstr "" #: ../../howto/ipaddress.rst:205 msgid "" -"Obtaining the netmask (i.e. set bits corresponding to the network prefix) or" -" the hostmask (any bits that are not part of the netmask):" +"Obtaining the netmask (i.e. set bits corresponding to the network prefix) or " +"the hostmask (any bits that are not part of the netmask):" msgstr "" #: ../../howto/ipaddress.rst:220 @@ -240,8 +252,8 @@ msgstr "" #: ../../howto/ipaddress.rst:240 msgid "" -"It's sometimes useful to treat networks as lists. This means it is possible" -" to index them like this::" +"It's sometimes useful to treat networks as lists. This means it is possible " +"to index them like this::" msgstr "" #: ../../howto/ipaddress.rst:253 @@ -291,16 +303,16 @@ msgid "" "factory functions, any errors will be reported as :exc:`ValueError` with a " "generic error message that simply says the passed in value was not " "recognized as an object of that type. The lack of a specific error is " -"because it's necessary to know whether the value is *supposed* to be IPv4 or" -" IPv6 in order to provide more detail on why it has been rejected." +"because it's necessary to know whether the value is *supposed* to be IPv4 or " +"IPv6 in order to provide more detail on why it has been rejected." msgstr "" #: ../../howto/ipaddress.rst:305 msgid "" "To support use cases where it is useful to have access to this additional " -"detail, the individual class constructors actually raise the " -":exc:`ValueError` subclasses :exc:`ipaddress.AddressValueError` and " -":exc:`ipaddress.NetmaskValueError` to indicate exactly which part of the " +"detail, the individual class constructors actually raise the :exc:" +"`ValueError` subclasses :exc:`ipaddress.AddressValueError` and :exc:" +"`ipaddress.NetmaskValueError` to indicate exactly which part of the " "definition failed to parse correctly." msgstr "" diff --git a/howto/logging-cookbook.po b/howto/logging-cookbook.po index f4708bfeb..f6562087c 100644 --- a/howto/logging-cookbook.po +++ b/howto/logging-cookbook.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Katyanna Moura , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Katyanna Moura , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,11 +52,12 @@ msgstr "Usando logging em vários módulos" msgid "" "Multiple calls to ``logging.getLogger('someLogger')`` return a reference to " "the same logger object. This is true not only within the same module, but " -"also across modules as long as it is in the same Python interpreter process." -" It is true for references to the same object; additionally, application " -"code can define and configure a parent logger in one module and create (but " -"not configure) a child logger in a separate module, and all logger calls to " -"the child will pass up to the parent. Here is a main module::" +"also across modules as long as it is in the same Python interpreter " +"process. It is true for references to the same object; additionally, " +"application code can define and configure a parent logger in one module and " +"create (but not configure) a child logger in a separate module, and all " +"logger calls to the child will pass up to the parent. Here is a main " +"module::" msgstr "" #: ../../howto/logging-cookbook.rst:55 @@ -91,13 +94,13 @@ msgstr "" #: ../../howto/logging-cookbook.rst:160 msgid "" -"Loggers are plain Python objects. The :meth:`~Logger.addHandler` method has" -" no minimum or maximum quota for the number of handlers you may add. " +"Loggers are plain Python objects. The :meth:`~Logger.addHandler` method has " +"no minimum or maximum quota for the number of handlers you may add. " "Sometimes it will be beneficial for an application to log all messages of " "all severities to a text file while simultaneously logging errors or above " -"to the console. To set this up, simply configure the appropriate handlers." -" The logging calls in the application code will remain unchanged. Here is " -"a slight modification to the previous simple module-based configuration " +"to the console. To set this up, simply configure the appropriate handlers. " +"The logging calls in the application code will remain unchanged. Here is a " +"slight modification to the previous simple module-based configuration " "example::" msgstr "" @@ -115,8 +118,8 @@ msgid "" "using many ``print`` statements for debugging, use ``logger.debug``: Unlike " "the print statements, which you will have to delete or comment out later, " "the logger.debug statements can remain intact in the source code and remain " -"dormant until you need them again. At that time, the only change that needs" -" to happen is to modify the severity level of the logger and/or handler to " +"dormant until you need them again. At that time, the only change that needs " +"to happen is to modify the severity level of the logger and/or handler to " "debug." msgstr "" @@ -126,11 +129,11 @@ msgstr "" #: ../../howto/logging-cookbook.rst:209 msgid "" -"Let's say you want to log to console and file with different message formats" -" and in differing circumstances. Say you want to log messages with levels of" -" DEBUG and higher to file, and those messages at level INFO and higher to " -"the console. Let's also assume that the file should contain timestamps, but " -"the console messages should not. Here's how you can achieve this::" +"Let's say you want to log to console and file with different message formats " +"and in differing circumstances. Say you want to log messages with levels of " +"DEBUG and higher to file, and those messages at level INFO and higher to the " +"console. Let's also assume that the file should contain timestamps, but the " +"console messages should not. Here's how you can achieve this::" msgstr "" #: ../../howto/logging-cookbook.rst:247 @@ -158,15 +161,14 @@ msgid "Configuration server example" msgstr "" #: ../../howto/logging-cookbook.rst:276 -msgid "" -"Here is an example of a module using the logging configuration server::" +msgid "Here is an example of a module using the logging configuration server::" msgstr "" #: ../../howto/logging-cookbook.rst:307 msgid "" "And here is a script that takes a filename and sends that file to the " -"server, properly preceded with the binary-encoded length, as the new logging" -" configuration::" +"server, properly preceded with the binary-encoded length, as the new logging " +"configuration::" msgstr "" #: ../../howto/logging-cookbook.rst:330 @@ -176,44 +178,44 @@ msgstr "" #: ../../howto/logging-cookbook.rst:334 msgid "" "Sometimes you have to get your logging handlers to do their work without " -"blocking the thread you're logging from. This is common in Web applications," -" though of course it also occurs in other scenarios." +"blocking the thread you're logging from. This is common in Web applications, " +"though of course it also occurs in other scenarios." msgstr "" #: ../../howto/logging-cookbook.rst:338 msgid "" -"A common culprit which demonstrates sluggish behaviour is the " -":class:`SMTPHandler`: sending emails can take a long time, for a number of " -"reasons outside the developer's control (for example, a poorly performing " -"mail or network infrastructure). But almost any network-based handler can " -"block: Even a :class:`SocketHandler` operation may do a DNS query under the " -"hood which is too slow (and this query can be deep in the socket library " -"code, below the Python layer, and outside your control)." +"A common culprit which demonstrates sluggish behaviour is the :class:" +"`SMTPHandler`: sending emails can take a long time, for a number of reasons " +"outside the developer's control (for example, a poorly performing mail or " +"network infrastructure). But almost any network-based handler can block: " +"Even a :class:`SocketHandler` operation may do a DNS query under the hood " +"which is too slow (and this query can be deep in the socket library code, " +"below the Python layer, and outside your control)." msgstr "" #: ../../howto/logging-cookbook.rst:346 msgid "" "One solution is to use a two-part approach. For the first part, attach only " -"a :class:`QueueHandler` to those loggers which are accessed from " -"performance-critical threads. They simply write to their queue, which can be" -" sized to a large enough capacity or initialized with no upper bound to " -"their size. The write to the queue will typically be accepted quickly, " -"though you will probably need to catch the :exc:`queue.Full` exception as a " -"precaution in your code. If you are a library developer who has performance-" -"critical threads in their code, be sure to document this (together with a " -"suggestion to attach only ``QueueHandlers`` to your loggers) for the benefit" -" of other developers who will use your code." +"a :class:`QueueHandler` to those loggers which are accessed from performance-" +"critical threads. They simply write to their queue, which can be sized to a " +"large enough capacity or initialized with no upper bound to their size. The " +"write to the queue will typically be accepted quickly, though you will " +"probably need to catch the :exc:`queue.Full` exception as a precaution in " +"your code. If you are a library developer who has performance-critical " +"threads in their code, be sure to document this (together with a suggestion " +"to attach only ``QueueHandlers`` to your loggers) for the benefit of other " +"developers who will use your code." msgstr "" #: ../../howto/logging-cookbook.rst:357 msgid "" "The second part of the solution is :class:`QueueListener`, which has been " -"designed as the counterpart to :class:`QueueHandler`. A " -":class:`QueueListener` is very simple: it's passed a queue and some " -"handlers, and it fires up an internal thread which listens to its queue for " -"LogRecords sent from ``QueueHandlers`` (or any other source of " -"``LogRecords``, for that matter). The ``LogRecords`` are removed from the " -"queue and passed to the handlers for processing." +"designed as the counterpart to :class:`QueueHandler`. A :class:" +"`QueueListener` is very simple: it's passed a queue and some handlers, and " +"it fires up an internal thread which listens to its queue for LogRecords " +"sent from ``QueueHandlers`` (or any other source of ``LogRecords``, for that " +"matter). The ``LogRecords`` are removed from the queue and passed to the " +"handlers for processing." msgstr "" #: ../../howto/logging-cookbook.rst:365 @@ -221,8 +223,8 @@ msgid "" "The advantage of having a separate :class:`QueueListener` class is that you " "can use the same instance to service multiple ``QueueHandlers``. This is " "more resource-friendly than, say, having threaded versions of the existing " -"handler classes, which would eat up one thread per handler for no particular" -" benefit." +"handler classes, which would eat up one thread per handler for no particular " +"benefit." msgstr "" #: ../../howto/logging-cookbook.rst:370 @@ -252,14 +254,14 @@ msgstr "" #: ../../howto/logging-cookbook.rst:409 msgid "" "Let's say you want to send logging events across a network, and handle them " -"at the receiving end. A simple way of doing this is attaching a " -":class:`SocketHandler` instance to the root logger at the sending end::" +"at the receiving end. A simple way of doing this is attaching a :class:" +"`SocketHandler` instance to the root logger at the sending end::" msgstr "" #: ../../howto/logging-cookbook.rst:437 msgid "" -"At the receiving end, you can set up a receiver using the " -":mod:`socketserver` module. Here is a basic working example::" +"At the receiving end, you can set up a receiver using the :mod:" +"`socketserver` module. Here is a basic working example::" msgstr "" #: ../../howto/logging-cookbook.rst:525 @@ -273,8 +275,8 @@ msgid "" "Note that there are some security issues with pickle in some scenarios. If " "these affect you, you can use an alternative serialization scheme by " "overriding the :meth:`~handlers.SocketHandler.makePickle` method and " -"implementing your alternative there, as well as adapting the above script to" -" use your alternative serialization." +"implementing your alternative there, as well as adapting the above script to " +"use your alternative serialization." msgstr "" #: ../../howto/logging-cookbook.rst:547 @@ -289,12 +291,12 @@ msgid "" "information in the log (e.g. remote client's username, or IP address). " "Although you could use the *extra* parameter to achieve this, it's not " "always convenient to pass the information in this way. While it might be " -"tempting to create :class:`Logger` instances on a per-connection basis, this" -" is not a good idea because these instances are not garbage collected. While" -" this is not a problem in practice, when the number of :class:`Logger` " +"tempting to create :class:`Logger` instances on a per-connection basis, this " +"is not a good idea because these instances are not garbage collected. While " +"this is not a problem in practice, when the number of :class:`Logger` " "instances is dependent on the level of granularity you want to use in " -"logging an application, it could be hard to manage if the number of " -":class:`Logger` instances becomes effectively unbounded." +"logging an application, it could be hard to manage if the number of :class:" +"`Logger` instances becomes effectively unbounded." msgstr "" #: ../../howto/logging-cookbook.rst:564 @@ -305,28 +307,28 @@ msgstr "" msgid "" "An easy way in which you can pass contextual information to be output along " "with logging event information is to use the :class:`LoggerAdapter` class. " -"This class is designed to look like a :class:`Logger`, so that you can call " -":meth:`debug`, :meth:`info`, :meth:`warning`, :meth:`error`, " -":meth:`exception`, :meth:`critical` and :meth:`log`. These methods have the " -"same signatures as their counterparts in :class:`Logger`, so you can use the" -" two types of instances interchangeably." +"This class is designed to look like a :class:`Logger`, so that you can call :" +"meth:`debug`, :meth:`info`, :meth:`warning`, :meth:`error`, :meth:" +"`exception`, :meth:`critical` and :meth:`log`. These methods have the same " +"signatures as their counterparts in :class:`Logger`, so you can use the two " +"types of instances interchangeably." msgstr "" #: ../../howto/logging-cookbook.rst:574 msgid "" -"When you create an instance of :class:`LoggerAdapter`, you pass it a " -":class:`Logger` instance and a dict-like object which contains your " -"contextual information. When you call one of the logging methods on an " -"instance of :class:`LoggerAdapter`, it delegates the call to the underlying " -"instance of :class:`Logger` passed to its constructor, and arranges to pass " -"the contextual information in the delegated call. Here's a snippet from the " -"code of :class:`LoggerAdapter`::" +"When you create an instance of :class:`LoggerAdapter`, you pass it a :class:" +"`Logger` instance and a dict-like object which contains your contextual " +"information. When you call one of the logging methods on an instance of :" +"class:`LoggerAdapter`, it delegates the call to the underlying instance of :" +"class:`Logger` passed to its constructor, and arranges to pass the " +"contextual information in the delegated call. Here's a snippet from the code " +"of :class:`LoggerAdapter`::" msgstr "" #: ../../howto/logging-cookbook.rst:590 msgid "" -"The :meth:`~LoggerAdapter.process` method of :class:`LoggerAdapter` is where" -" the contextual information is added to the logging output. It's passed the " +"The :meth:`~LoggerAdapter.process` method of :class:`LoggerAdapter` is where " +"the contextual information is added to the logging output. It's passed the " "message and keyword arguments of the logging call, and it passes back " "(potentially) modified versions of these to use in the call to the " "underlying logger. The default implementation of this method leaves the " @@ -341,11 +343,10 @@ msgid "" "The advantage of using 'extra' is that the values in the dict-like object " "are merged into the :class:`LogRecord` instance's __dict__, allowing you to " "use customized strings with your :class:`Formatter` instances which know " -"about the keys of the dict-like object. If you need a different method, e.g." -" if you want to prepend or append the contextual information to the message " -"string, you just need to subclass :class:`LoggerAdapter` and override " -":meth:`~LoggerAdapter.process` to do what you need. Here is a simple " -"example::" +"about the keys of the dict-like object. If you need a different method, e.g. " +"if you want to prepend or append the contextual information to the message " +"string, you just need to subclass :class:`LoggerAdapter` and override :meth:" +"`~LoggerAdapter.process` to do what you need. Here is a simple example::" msgstr "" #: ../../howto/logging-cookbook.rst:615 @@ -377,23 +378,23 @@ msgstr "" #: ../../howto/logging-cookbook.rst:637 msgid "" -"You can also add contextual information to log output using a user-defined " -":class:`Filter`. ``Filter`` instances are allowed to modify the " +"You can also add contextual information to log output using a user-defined :" +"class:`Filter`. ``Filter`` instances are allowed to modify the " "``LogRecords`` passed to them, including adding additional attributes which " -"can then be output using a suitable format string, or if needed a custom " -":class:`Formatter`." +"can then be output using a suitable format string, or if needed a custom :" +"class:`Formatter`." msgstr "" #: ../../howto/logging-cookbook.rst:642 msgid "" "For example in a web application, the request being processed (or at least, " -"the interesting parts of it) can be stored in a threadlocal " -"(:class:`threading.local`) variable, and then accessed from a ``Filter`` to " -"add, say, information from the request - say, the remote IP address and " -"remote user's username - to the ``LogRecord``, using the attribute names " -"'ip' and 'user' as in the ``LoggerAdapter`` example above. In that case, the" -" same format string can be used to get similar output to that shown above. " -"Here's an example script::" +"the interesting parts of it) can be stored in a threadlocal (:class:" +"`threading.local`) variable, and then accessed from a ``Filter`` to add, " +"say, information from the request - say, the remote IP address and remote " +"user's username - to the ``LogRecord``, using the attribute names 'ip' and " +"'user' as in the ``LoggerAdapter`` example above. In that case, the same " +"format string can be used to get similar output to that shown above. Here's " +"an example script::" msgstr "" #: ../../howto/logging-cookbook.rst:688 @@ -408,28 +409,28 @@ msgstr "" msgid "" "Although logging is thread-safe, and logging to a single file from multiple " "threads in a single process *is* supported, logging to a single file from " -"*multiple processes* is *not* supported, because there is no standard way to" -" serialize access to a single file across multiple processes in Python. If " +"*multiple processes* is *not* supported, because there is no standard way to " +"serialize access to a single file across multiple processes in Python. If " "you need to log to a single file from multiple processes, one way of doing " -"this is to have all the processes log to a :class:`~handlers.SocketHandler`," -" and have a separate process which implements a socket server which reads " +"this is to have all the processes log to a :class:`~handlers.SocketHandler`, " +"and have a separate process which implements a socket server which reads " "from the socket and logs to file. (If you prefer, you can dedicate one " -"thread in one of the existing processes to perform this function.) " -":ref:`This section ` documents this approach in more detail" -" and includes a working socket receiver which can be used as a starting " -"point for you to adapt in your own applications." +"thread in one of the existing processes to perform this function.) :ref:" +"`This section ` documents this approach in more detail and " +"includes a working socket receiver which can be used as a starting point for " +"you to adapt in your own applications." msgstr "" #: ../../howto/logging-cookbook.rst:724 msgid "" -"If you are using a recent version of Python which includes the " -":mod:`multiprocessing` module, you could write your own handler which uses " -"the :class:`~multiprocessing.Lock` class from this module to serialize " -"access to the file from your processes. The existing :class:`FileHandler` " -"and subclasses do not make use of :mod:`multiprocessing` at present, though " -"they may do so in the future. Note that at present, the " -":mod:`multiprocessing` module does not provide working lock functionality on" -" all platforms (see https://bugs.python.org/issue3770)." +"If you are using a recent version of Python which includes the :mod:" +"`multiprocessing` module, you could write your own handler which uses the :" +"class:`~multiprocessing.Lock` class from this module to serialize access to " +"the file from your processes. The existing :class:`FileHandler` and " +"subclasses do not make use of :mod:`multiprocessing` at present, though they " +"may do so in the future. Note that at present, the :mod:`multiprocessing` " +"module does not provide working lock functionality on all platforms (see " +"https://bugs.python.org/issue3770)." msgstr "" #: ../../howto/logging-cookbook.rst:735 @@ -438,13 +439,13 @@ msgid "" "all logging events to one of the processes in your multi-process " "application. The following example script demonstrates how you can do this; " "in the example a separate listener process listens for events sent by other " -"processes and logs them according to its own logging configuration. Although" -" the example only demonstrates one way of doing it (for example, you may " -"want to use a listener thread rather than a separate listener process -- the" -" implementation would be analogous) it does allow for completely different " +"processes and logs them according to its own logging configuration. Although " +"the example only demonstrates one way of doing it (for example, you may want " +"to use a listener thread rather than a separate listener process -- the " +"implementation would be analogous) it does allow for completely different " "logging configurations for the listener and the other processes in your " -"application, and can be used as the basis for code meeting your own specific" -" requirements::" +"application, and can be used as the basis for code meeting your own specific " +"requirements::" msgstr "" #: ../../howto/logging-cookbook.rst:851 @@ -492,26 +493,26 @@ msgstr "" #: ../../howto/logging-cookbook.rst:993 msgid "" -"Sometimes you want to let a log file grow to a certain size, then open a new" -" file and log to that. You may want to keep a certain number of these files," -" and when that many files have been created, rotate the files so that the " +"Sometimes you want to let a log file grow to a certain size, then open a new " +"file and log to that. You may want to keep a certain number of these files, " +"and when that many files have been created, rotate the files so that the " "number of files and the size of the files both remain bounded. For this " -"usage pattern, the logging package provides a " -":class:`~handlers.RotatingFileHandler`::" +"usage pattern, the logging package provides a :class:`~handlers." +"RotatingFileHandler`::" msgstr "" #: ../../howto/logging-cookbook.rst:1025 msgid "" -"The result should be 6 separate files, each with part of the log history for" -" the application:" +"The result should be 6 separate files, each with part of the log history for " +"the application:" msgstr "" #: ../../howto/logging-cookbook.rst:1037 msgid "" "The most current file is always :file:`logging_rotatingfile_example.out`, " "and each time it reaches the size limit it is renamed with the suffix " -"``.1``. Each of the existing backup files is renamed to increment the suffix" -" (``.1`` becomes ``.2``, etc.) and the ``.6`` file is erased." +"``.1``. Each of the existing backup files is renamed to increment the suffix " +"(``.1`` becomes ``.2``, etc.) and the ``.6`` file is erased." msgstr "" #: ../../howto/logging-cookbook.rst:1042 @@ -528,9 +529,9 @@ msgstr "" msgid "" "When logging was added to the Python standard library, the only way of " "formatting messages with variable content was to use the %-formatting " -"method. Since then, Python has gained two new formatting approaches: " -":class:`string.Template` (added in Python 2.4) and :meth:`str.format` (added" -" in Python 2.6)." +"method. Since then, Python has gained two new formatting approaches: :class:" +"`string.Template` (added in Python 2.4) and :meth:`str.format` (added in " +"Python 2.6)." msgstr "" #: ../../howto/logging-cookbook.rst:1056 @@ -538,11 +539,11 @@ msgid "" "Logging (as of 3.2) provides improved support for these two additional " "formatting styles. The :class:`Formatter` class been enhanced to take an " "additional, optional keyword parameter named ``style``. This defaults to " -"``'%'``, but other possible values are ``'{'`` and ``'$'``, which correspond" -" to the other two formatting styles. Backwards compatibility is maintained " -"by default (as you would expect), but by explicitly specifying a style " -"parameter, you get the ability to specify format strings which work with " -":meth:`str.format` or :class:`string.Template`. Here's an example console " +"``'%'``, but other possible values are ``'{'`` and ``'$'``, which correspond " +"to the other two formatting styles. Backwards compatibility is maintained by " +"default (as you would expect), but by explicitly specifying a style " +"parameter, you get the ability to specify format strings which work with :" +"meth:`str.format` or :class:`string.Template`. Here's an example console " "session to show the possibilities:" msgstr "" @@ -561,28 +562,28 @@ msgid "" "logging call (e.g. the ``exc_info`` keyword parameter to indicate that " "traceback information should be logged, or the ``extra`` keyword parameter " "to indicate additional contextual information to be added to the log). So " -"you cannot directly make logging calls using :meth:`str.format` or " -":class:`string.Template` syntax, because internally the logging package uses" -" %-formatting to merge the format string and the variable arguments. There " -"would be no changing this while preserving backward compatibility, since all" -" logging calls which are out there in existing code will be using %-format " +"you cannot directly make logging calls using :meth:`str.format` or :class:" +"`string.Template` syntax, because internally the logging package uses %-" +"formatting to merge the format string and the variable arguments. There " +"would be no changing this while preserving backward compatibility, since all " +"logging calls which are out there in existing code will be using %-format " "strings." msgstr "" #: ../../howto/logging-cookbook.rst:1111 msgid "" -"There is, however, a way that you can use {}- and $- formatting to construct" -" your individual log messages. Recall that for a message you can use an " +"There is, however, a way that you can use {}- and $- formatting to construct " +"your individual log messages. Recall that for a message you can use an " "arbitrary object as a message format string, and that the logging package " -"will call ``str()`` on that object to get the actual format string. Consider" -" the following two classes::" +"will call ``str()`` on that object to get the actual format string. Consider " +"the following two classes::" msgstr "" #: ../../howto/logging-cookbook.rst:1135 msgid "" -"Either of these can be used in place of a format string, to allow {}- or " -"$-formatting to be used to build the actual \"message\" part which appears " -"in the formatted log output in place of \"%(message)s\" or \"{message}\" or " +"Either of these can be used in place of a format string, to allow {}- or $-" +"formatting to be used to build the actual \"message\" part which appears in " +"the formatted log output in place of \"%(message)s\" or \"{message}\" or " "\"$message\". It's a little unwieldy to use the class names whenever you " "want to log something, but it's quite palatable if you use an alias such as " "__ (double underscore --- not to be confused with _, the single underscore " @@ -607,9 +608,9 @@ msgstr "" msgid "" "One thing to note is that you pay no significant performance penalty with " "this approach: the actual formatting happens not when you make the logging " -"call, but when (and if) the logged message is actually about to be output to" -" a log by a handler. So the only slightly unusual thing which might trip you" -" up is that the parentheses go around the format string and the arguments, " +"call, but when (and if) the logged message is actually about to be output to " +"a log by a handler. So the only slightly unusual thing which might trip you " +"up is that the parentheses go around the format string and the arguments, " "not just the format string. That's because the __ notation is just syntax " "sugar for a constructor call to one of the XXXMessage classes." msgstr "" @@ -632,13 +633,13 @@ msgstr "Personalizando o ``LogRecord``" #: ../../howto/logging-cookbook.rst:1219 msgid "" -"Every logging event is represented by a :class:`LogRecord` instance. When an" -" event is logged and not filtered out by a logger's level, a " -":class:`LogRecord` is created, populated with information about the event " -"and then passed to the handlers for that logger (and its ancestors, up to " -"and including the logger where further propagation up the hierarchy is " -"disabled). Before Python 3.2, there were only two places where this creation" -" was done:" +"Every logging event is represented by a :class:`LogRecord` instance. When an " +"event is logged and not filtered out by a logger's level, a :class:" +"`LogRecord` is created, populated with information about the event and then " +"passed to the handlers for that logger (and its ancestors, up to and " +"including the logger where further propagation up the hierarchy is " +"disabled). Before Python 3.2, there were only two places where this creation " +"was done:" msgstr "" #: ../../howto/logging-cookbook.rst:1226 @@ -652,21 +653,21 @@ msgid "" ":func:`makeLogRecord`, which is called with a dictionary containing " "attributes to be added to the LogRecord. This is typically invoked when a " "suitable dictionary has been received over the network (e.g. in pickle form " -"via a :class:`~handlers.SocketHandler`, or in JSON form via an " -":class:`~handlers.HTTPHandler`)." +"via a :class:`~handlers.SocketHandler`, or in JSON form via an :class:" +"`~handlers.HTTPHandler`)." msgstr "" #: ../../howto/logging-cookbook.rst:1235 msgid "" -"This has usually meant that if you need to do anything special with a " -":class:`LogRecord`, you've had to do one of the following." +"This has usually meant that if you need to do anything special with a :class:" +"`LogRecord`, you've had to do one of the following." msgstr "" #: ../../howto/logging-cookbook.rst:1238 msgid "" -"Create your own :class:`Logger` subclass, which overrides " -":meth:`Logger.makeRecord`, and set it using :func:`~logging.setLoggerClass` " -"before any loggers that you care about are instantiated." +"Create your own :class:`Logger` subclass, which overrides :meth:`Logger." +"makeRecord`, and set it using :func:`~logging.setLoggerClass` before any " +"loggers that you care about are instantiated." msgstr "" #: ../../howto/logging-cookbook.rst:1241 @@ -686,8 +687,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1250 msgid "" -"The second approach works reasonably well for many cases, but does not allow" -" you to e.g. use a specialized subclass of :class:`LogRecord`. Library " +"The second approach works reasonably well for many cases, but does not allow " +"you to e.g. use a specialized subclass of :class:`LogRecord`. Library " "developers can set a suitable filter on their loggers, but they would have " "to remember to do this every time they introduced a new logger (which they " "would do simply by adding new packages or modules and doing ::" @@ -698,35 +699,35 @@ msgid "" "at module level). It's probably one too many things to think about. " "Developers could also add the filter to a :class:`~logging.NullHandler` " "attached to their top-level logger, but this would not be invoked if an " -"application developer attached a handler to a lower-level library logger ---" -" so output from that handler would not reflect the intentions of the library" -" developer." +"application developer attached a handler to a lower-level library logger --- " +"so output from that handler would not reflect the intentions of the library " +"developer." msgstr "" #: ../../howto/logging-cookbook.rst:1264 msgid "" "In Python 3.2 and later, :class:`~logging.LogRecord` creation is done " -"through a factory, which you can specify. The factory is just a callable you" -" can set with :func:`~logging.setLogRecordFactory`, and interrogate with " -":func:`~logging.getLogRecordFactory`. The factory is invoked with the same " -"signature as the :class:`~logging.LogRecord` constructor, as " -":class:`LogRecord` is the default setting for the factory." +"through a factory, which you can specify. The factory is just a callable you " +"can set with :func:`~logging.setLogRecordFactory`, and interrogate with :" +"func:`~logging.getLogRecordFactory`. The factory is invoked with the same " +"signature as the :class:`~logging.LogRecord` constructor, as :class:" +"`LogRecord` is the default setting for the factory." msgstr "" #: ../../howto/logging-cookbook.rst:1271 msgid "" "This approach allows a custom factory to control all aspects of LogRecord " "creation. For example, you could return a subclass, or just add some " -"additional attributes to the record once created, using a pattern similar to" -" this::" +"additional attributes to the record once created, using a pattern similar to " +"this::" msgstr "" #: ../../howto/logging-cookbook.rst:1284 msgid "" "This pattern allows different libraries to chain factories together, and as " "long as they don't overwrite each other's attributes or unintentionally " -"overwrite the attributes provided as standard, there should be no surprises." -" However, it should be borne in mind that each link in the chain adds run-" +"overwrite the attributes provided as standard, there should be no surprises. " +"However, it should be borne in mind that each link in the chain adds run-" "time overhead to all logging operations, and the technique should only be " "used when the use of a :class:`Filter` does not provide the desired result." msgstr "" @@ -737,8 +738,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1297 msgid "" -"You can use a :class:`QueueHandler` subclass to send messages to other kinds" -" of queues, for example a ZeroMQ 'publish' socket. In the example below,the " +"You can use a :class:`QueueHandler` subclass to send messages to other kinds " +"of queues, for example a ZeroMQ 'publish' socket. In the example below,the " "socket is created separately and passed to the handler (as its 'queue')::" msgstr "" @@ -755,8 +756,7 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1336 msgid "" "You can also subclass :class:`QueueListener` to get messages from other " -"kinds of queues, for example a ZeroMQ 'subscribe' socket. Here's an " -"example::" +"kinds of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::" msgstr "" #: ../../howto/logging-cookbook.rst:1355 @@ -773,11 +773,11 @@ msgstr "Módulo :mod:`logging.config`" #: ../../howto/logging-cookbook.rst:1358 msgid "Configuration API for the logging module." -msgstr "" +msgstr "API de configuração para o módulo logging." #: ../../howto/logging-cookbook.rst:1361 msgid "Module :mod:`logging.handlers`" -msgstr "" +msgstr "Módulo :mod:`logging.handlers`" #: ../../howto/logging-cookbook.rst:1361 msgid "Useful handlers included with the logging module." @@ -785,11 +785,11 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1363 msgid ":ref:`A basic logging tutorial `" -msgstr "" +msgstr ":ref:`A basic logging tutorial `" #: ../../howto/logging-cookbook.rst:1365 msgid ":ref:`A more advanced logging tutorial `" -msgstr "" +msgstr ":ref:`A more advanced logging tutorial `" #: ../../howto/logging-cookbook.rst:1369 msgid "An example dictionary-based configuration" @@ -798,10 +798,9 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1371 msgid "" "Below is an example of a logging configuration dictionary - it's taken from " -"the `documentation on the Django project " -"`_. This dictionary is passed to :func:`~config.dictConfig` to put " -"the configuration into effect::" +"the `documentation on the Django project `_. This dictionary is passed to :" +"func:`~config.dictConfig` to put the configuration into effect::" msgstr "" #: ../../howto/logging-cookbook.rst:1427 @@ -843,20 +842,20 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1466 msgid "" "In the example, the main process spawns a listener process and some worker " -"processes. Each of the main process, the listener and the workers have three" -" separate configurations (the workers all share the same configuration). We " +"processes. Each of the main process, the listener and the workers have three " +"separate configurations (the workers all share the same configuration). We " "can see logging in the main process, how the workers log to a QueueHandler " "and how the listener implements a QueueListener and a more complex logging " -"configuration, and arranges to dispatch events received via the queue to the" -" handlers specified in the configuration. Note that these configurations are" -" purely illustrative, but you should be able to adapt this example to your " +"configuration, and arranges to dispatch events received via the queue to the " +"handlers specified in the configuration. Note that these configurations are " +"purely illustrative, but you should be able to adapt this example to your " "own scenario." msgstr "" #: ../../howto/logging-cookbook.rst:1476 msgid "" -"Here's the script - the docstrings and the comments hopefully explain how it" -" works::" +"Here's the script - the docstrings and the comments hopefully explain how it " +"works::" msgstr "" #: ../../howto/logging-cookbook.rst:1688 @@ -874,8 +873,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1696 msgid "" -"In Python 3.1, code was added to :class:`~logging.handlers.SysLogHandler` to" -" insert a BOM into the message, but unfortunately, it was implemented " +"In Python 3.1, code was added to :class:`~logging.handlers.SysLogHandler` to " +"insert a BOM into the message, but unfortunately, it was implemented " "incorrectly, with the BOM appearing at the beginning of the message and " "hence not allowing any pure-ASCII component to appear before it." msgstr "" @@ -891,9 +890,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1708 msgid "" -"Attach a :class:`~logging.Formatter` instance to your " -":class:`~logging.handlers.SysLogHandler` instance, with a format string such" -" as::" +"Attach a :class:`~logging.Formatter` instance to your :class:`~logging." +"handlers.SysLogHandler` instance, with a format string such as::" msgstr "" #: ../../howto/logging-cookbook.rst:1714 @@ -904,16 +902,16 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1717 msgid "" -"Replace the ASCII section with whatever placeholders you like, but make sure" -" that the data that appears in there after substitution is always ASCII " -"(that way, it will remain unchanged after UTF-8 encoding)." +"Replace the ASCII section with whatever placeholders you like, but make sure " +"that the data that appears in there after substitution is always ASCII (that " +"way, it will remain unchanged after UTF-8 encoding)." msgstr "" #: ../../howto/logging-cookbook.rst:1721 msgid "" -"Replace the Unicode section with whatever placeholders you like; if the data" -" which appears there after substitution contains characters outside the " -"ASCII range, that's fine -- it will be encoded using UTF-8." +"Replace the Unicode section with whatever placeholders you like; if the data " +"which appears there after substitution contains characters outside the ASCII " +"range, that's fine -- it will be encoded using UTF-8." msgstr "" #: ../../howto/logging-cookbook.rst:1725 @@ -933,8 +931,8 @@ msgstr "" msgid "" "Although most logging messages are intended for reading by humans, and thus " "not readily machine-parseable, there might be circumstances where you want " -"to output messages in a structured format which *is* capable of being parsed" -" by a program (without needing complex regular expressions to parse the log " +"to output messages in a structured format which *is* capable of being parsed " +"by a program (without needing complex regular expressions to parse the log " "message). This is straightforward to achieve using the logging package. " "There are a number of ways in which this could be achieved, but the " "following is a simple approach which uses JSON to serialise the event in a " @@ -970,16 +968,15 @@ msgid "" "There are times when you want to customize logging handlers in particular " "ways, and if you use :func:`dictConfig` you may be able to do this without " "subclassing. As an example, consider that you may want to set the ownership " -"of a log file. On POSIX, this is easily done using :func:`shutil.chown`, but" -" the file handlers in the stdlib don't offer built-in support. You can " +"of a log file. On POSIX, this is easily done using :func:`shutil.chown`, but " +"the file handlers in the stdlib don't offer built-in support. You can " "customize handler creation using a plain function such as::" msgstr "" #: ../../howto/logging-cookbook.rst:1838 msgid "" -"You can then specify, in a logging configuration passed to " -":func:`dictConfig`, that a logging handler be created by calling this " -"function::" +"You can then specify, in a logging configuration passed to :func:" +"`dictConfig`, that a logging handler be created by calling this function::" msgstr "" #: ../../howto/logging-cookbook.rst:1871 @@ -995,11 +992,11 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1928 msgid "" -"Note that this example uses Python 3.3 because that's where " -":func:`shutil.chown` makes an appearance. This approach should work with any" -" Python version that supports :func:`dictConfig` - namely, Python 2.7, 3.2 " -"or later. With pre-3.3 versions, you would need to implement the actual " -"ownership change using e.g. :func:`os.chown`." +"Note that this example uses Python 3.3 because that's where :func:`shutil." +"chown` makes an appearance. This approach should work with any Python " +"version that supports :func:`dictConfig` - namely, Python 2.7, 3.2 or later. " +"With pre-3.3 versions, you would need to implement the actual ownership " +"change using e.g. :func:`os.chown`." msgstr "" #: ../../howto/logging-cookbook.rst:1934 @@ -1015,10 +1012,9 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1943 msgid "" "where ``project.util`` can be replaced with the actual name of the package " -"where the function resides. In the above working script, using " -"``'ext://__main__.owned_file_handler'`` should work. Here, the actual " -"callable is resolved by :func:`dictConfig` from the ``ext://`` " -"specification." +"where the function resides. In the above working script, using ``'ext://" +"__main__.owned_file_handler'`` should work. Here, the actual callable is " +"resolved by :func:`dictConfig` from the ``ext://`` specification." msgstr "" #: ../../howto/logging-cookbook.rst:1948 @@ -1031,8 +1027,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:1952 msgid "" "Of course, the approach could also be extended to types of handler other " -"than a :class:`~logging.FileHandler` - for example, one of the rotating file" -" handlers, or a different type of handler altogether." +"than a :class:`~logging.FileHandler` - for example, one of the rotating file " +"handlers, or a different type of handler altogether." msgstr "" #: ../../howto/logging-cookbook.rst:1962 @@ -1056,30 +1052,29 @@ msgid "" "positional parameters for the actual logging message itself, with keyword " "parameters used only for determining options for how to handle the logging " "call (e.g. the ``exc_info`` keyword parameter to indicate that traceback " -"information should be logged, or the ``extra`` keyword parameter to indicate" -" additional contextual information to be added to the log). So you cannot " -"directly make logging calls using :meth:`str.format` or " -":class:`string.Template` syntax, because internally the logging package uses" -" %-formatting to merge the format string and the variable arguments. There " -"would no changing this while preserving backward compatibility, since all " -"logging calls which are out there in existing code will be using %-format " -"strings." +"information should be logged, or the ``extra`` keyword parameter to indicate " +"additional contextual information to be added to the log). So you cannot " +"directly make logging calls using :meth:`str.format` or :class:`string." +"Template` syntax, because internally the logging package uses %-formatting " +"to merge the format string and the variable arguments. There would no " +"changing this while preserving backward compatibility, since all logging " +"calls which are out there in existing code will be using %-format strings." msgstr "" #: ../../howto/logging-cookbook.rst:1983 msgid "" "There have been suggestions to associate format styles with specific " "loggers, but that approach also runs into backward compatibility problems " -"because any existing code could be using a given logger name and using " -"%-formatting." +"because any existing code could be using a given logger name and using %-" +"formatting." msgstr "" #: ../../howto/logging-cookbook.rst:1987 msgid "" -"For logging to work interoperably between any third-party libraries and your" -" code, decisions about formatting need to be made at the level of the " -"individual logging call. This opens up a couple of ways in which alternative" -" formatting styles can be accommodated." +"For logging to work interoperably between any third-party libraries and your " +"code, decisions about formatting need to be made at the level of the " +"individual logging call. This opens up a couple of ways in which alternative " +"formatting styles can be accommodated." msgstr "" #: ../../howto/logging-cookbook.rst:1994 @@ -1096,15 +1091,15 @@ msgid "" "method. The base class implementation of this method is where the ``msg % " "args`` formatting happens, and where you can substitute your alternate " "formatting; however, you should be careful to support all formatting styles " -"and allow %-formatting as the default, to ensure interoperability with other" -" code. Care should also be taken to call ``str(self.msg)``, just as the base" -" implementation does." +"and allow %-formatting as the default, to ensure interoperability with other " +"code. Care should also be taken to call ``str(self.msg)``, just as the base " +"implementation does." msgstr "" #: ../../howto/logging-cookbook.rst:2007 msgid "" -"Refer to the reference documentation on :func:`setLogRecordFactory` and " -":class:`LogRecord` for more information." +"Refer to the reference documentation on :func:`setLogRecordFactory` and :" +"class:`LogRecord` for more information." msgstr "" #: ../../howto/logging-cookbook.rst:2012 @@ -1113,29 +1108,29 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2014 msgid "" -"There is another, perhaps simpler way that you can use {}- and $- formatting" -" to construct your individual log messages. You may recall (from :ref" -":`arbitrary-object-messages`) that when logging you can use an arbitrary " -"object as a message format string, and that the logging package will call " -":func:`str` on that object to get the actual format string. Consider the " +"There is another, perhaps simpler way that you can use {}- and $- formatting " +"to construct your individual log messages. You may recall (from :ref:" +"`arbitrary-object-messages`) that when logging you can use an arbitrary " +"object as a message format string, and that the logging package will call :" +"func:`str` on that object to get the actual format string. Consider the " "following two classes::" msgstr "" #: ../../howto/logging-cookbook.rst:2039 msgid "" -"Either of these can be used in place of a format string, to allow {}- or " -"$-formatting to be used to build the actual \"message\" part which appears " -"in the formatted log output in place of “%(message)s” or “{message}” or " -"“$message”. If you find it a little unwieldy to use the class names whenever" -" you want to log something, you can make it more palatable if you use an " +"Either of these can be used in place of a format string, to allow {}- or $-" +"formatting to be used to build the actual \"message\" part which appears in " +"the formatted log output in place of “%(message)s” or “{message}” or " +"“$message”. If you find it a little unwieldy to use the class names whenever " +"you want to log something, you can make it more palatable if you use an " "alias such as ``M`` or ``_`` for the message (or perhaps ``__``, if you are " "using ``_`` for localization)." msgstr "" #: ../../howto/logging-cookbook.rst:2047 msgid "" -"Examples of this approach are given below. Firstly, formatting with " -":meth:`str.format`::" +"Examples of this approach are given below. Firstly, formatting with :meth:" +"`str.format`::" msgstr "" #: ../../howto/logging-cookbook.rst:2061 @@ -1146,9 +1141,9 @@ msgstr "" msgid "" "One thing to note is that you pay no significant performance penalty with " "this approach: the actual formatting happens not when you make the logging " -"call, but when (and if) the logged message is actually about to be output to" -" a log by a handler. So the only slightly unusual thing which might trip you" -" up is that the parentheses go around the format string and the arguments, " +"call, but when (and if) the logged message is actually about to be output to " +"a log by a handler. So the only slightly unusual thing which might trip you " +"up is that the parentheses go around the format string and the arguments, " "not just the format string. That’s because the __ notation is just syntax " "sugar for a constructor call to one of the ``XXXMessage`` classes shown " "above." @@ -1160,23 +1155,23 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2084 msgid "" -"You *can* configure filters using :func:`~logging.config.dictConfig`, though" -" it might not be obvious at first glance how to do it (hence this recipe). " +"You *can* configure filters using :func:`~logging.config.dictConfig`, though " +"it might not be obvious at first glance how to do it (hence this recipe). " "Since :class:`~logging.Filter` is the only filter class included in the " "standard library, and it is unlikely to cater to many requirements (it's " -"only there as a base class), you will typically need to define your own " -":class:`~logging.Filter` subclass with an overridden " -":meth:`~logging.Filter.filter` method. To do this, specify the ``()`` key in" -" the configuration dictionary for the filter, specifying a callable which " -"will be used to create the filter (a class is the most obvious, but you can " -"provide any callable which returns a :class:`~logging.Filter` instance). " -"Here is a complete example::" +"only there as a base class), you will typically need to define your own :" +"class:`~logging.Filter` subclass with an overridden :meth:`~logging.Filter." +"filter` method. To do this, specify the ``()`` key in the configuration " +"dictionary for the filter, specifying a callable which will be used to " +"create the filter (a class is the most obvious, but you can provide any " +"callable which returns a :class:`~logging.Filter` instance). Here is a " +"complete example::" msgstr "" #: ../../howto/logging-cookbook.rst:2137 msgid "" -"This example shows how you can pass configuration data to the callable which" -" constructs the instance, in the form of keyword parameters. When run, the " +"This example shows how you can pass configuration data to the callable which " +"constructs the instance, in the form of keyword parameters. When run, the " "above script will print:" msgstr "" @@ -1190,8 +1185,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2149 msgid "" -"If you can't refer to the callable directly in the configuration (e.g. if it" -" lives in a different module, and you can't import it directly where the " +"If you can't refer to the callable directly in the configuration (e.g. if it " +"lives in a different module, and you can't import it directly where the " "configuration dictionary is), you can use the form ``ext://...`` as " "described in :ref:`logging-config-dict-externalobj`. For example, you could " "have used the text ``'ext://__main__.MyFilter'`` instead of ``MyFilter`` in " @@ -1226,8 +1221,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2215 msgid "" "While the above treatment is simplistic, it points the way to how exception " -"information can be formatted to your liking. The :mod:`traceback` module may" -" be helpful for more specialized needs." +"information can be formatted to your liking. The :mod:`traceback` module may " +"be helpful for more specialized needs." msgstr "" #: ../../howto/logging-cookbook.rst:2222 @@ -1240,12 +1235,12 @@ msgid "" "rendered in an audible rather than a visible format. This is easy to do if " "you have text-to-speech (TTS) functionality available in your system, even " "if it doesn't have a Python binding. Most TTS systems have a command line " -"program you can run, and this can be invoked from a handler using " -":mod:`subprocess`. It's assumed here that TTS command line programs won't " -"expect to interact with users or take a long time to complete, and that the " +"program you can run, and this can be invoked from a handler using :mod:" +"`subprocess`. It's assumed here that TTS command line programs won't expect " +"to interact with users or take a long time to complete, and that the " "frequency of logged messages will be not so high as to swamp the user with " -"messages, and that it's acceptable to have the messages spoken one at a time" -" rather than concurrently, The example implementation below waits for one " +"messages, and that it's acceptable to have the messages spoken one at a time " +"rather than concurrently, The example implementation below waits for one " "message to be spoken before the next is processed, and this might cause " "other handlers to be kept waiting. Here is a short example showing the " "approach, which assumes that the ``espeak`` TTS package is available::" @@ -1270,8 +1265,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2278 msgid "" -"There might be situations where you want to log messages in a temporary area" -" and only output them if a certain condition occurs. For example, you may " +"There might be situations where you want to log messages in a temporary area " +"and only output them if a certain condition occurs. For example, you may " "want to start logging debug events in a function, and if the function " "completes without errors, you don't want to clutter the log with the " "collected debug information, but if there is an error, you want all the " @@ -1287,14 +1282,14 @@ msgid "" "events are ``flushed`` - passed to another handler (the ``target`` handler) " "for processing. By default, the ``MemoryHandler`` flushed when its buffer " "gets filled up or an event whose level is greater than or equal to a " -"specified threshold is seen. You can use this recipe with a more specialised" -" subclass of ``MemoryHandler`` if you want custom flushing behavior." +"specified threshold is seen. You can use this recipe with a more specialised " +"subclass of ``MemoryHandler`` if you want custom flushing behavior." msgstr "" #: ../../howto/logging-cookbook.rst:2295 msgid "" -"The example script has a simple function, ``foo``, which just cycles through" -" all the logging levels, writing to ``sys.stderr`` to say what level it's " +"The example script has a simple function, ``foo``, which just cycles through " +"all the logging levels, writing to ``sys.stderr`` to say what level it's " "about to log at, and then actually logging a message at that level. You can " "pass a parameter to ``foo`` which, if true, will log at ERROR and CRITICAL " "levels - otherwise, it only logs at DEBUG, INFO and WARNING levels." @@ -1307,9 +1302,9 @@ msgid "" "parameter and attaches a memory handler for the duration of the call to the " "decorated function. The decorator can be additionally parameterised using a " "target handler, a level at which flushing should occur, and a capacity for " -"the buffer (number of records buffered). These default to a " -":class:`~logging.StreamHandler` which writes to ``sys.stderr``, " -"``logging.ERROR`` and ``100`` respectively." +"the buffer (number of records buffered). These default to a :class:`~logging." +"StreamHandler` which writes to ``sys.stderr``, ``logging.ERROR`` and ``100`` " +"respectively." msgstr "" #: ../../howto/logging-cookbook.rst:2309 @@ -1323,8 +1318,8 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2402 msgid "" "As you can see, actual logging output only occurs when an event is logged " -"whose severity is ERROR or greater, but in that case, any previous events at" -" lower severities are also logged." +"whose severity is ERROR or greater, but in that case, any previous events at " +"lower severities are also logged." msgstr "" #: ../../howto/logging-cookbook.rst:2406 @@ -1343,10 +1338,10 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2427 msgid "" -"and you can then use the ``UTCFormatter`` in your code instead of " -":class:`~logging.Formatter`. If you want to do that via configuration, you " -"can use the :func:`~logging.config.dictConfig` API with an approach " -"illustrated by the following complete example::" +"and you can then use the ``UTCFormatter`` in your code instead of :class:" +"`~logging.Formatter`. If you want to do that via configuration, you can use " +"the :func:`~logging.config.dictConfig` API with an approach illustrated by " +"the following complete example::" msgstr "" #: ../../howto/logging-cookbook.rst:2470 @@ -1367,19 +1362,19 @@ msgstr "" msgid "" "There are times when it would be useful to temporarily change the logging " "configuration and revert it back after doing something. For this, a context " -"manager is the most obvious way of saving and restoring the logging context." -" Here is a simple example of such a context manager, which allows you to " +"manager is the most obvious way of saving and restoring the logging context. " +"Here is a simple example of such a context manager, which allows you to " "optionally change the logging level and add a logging handler purely in the " "scope of the context manager::" msgstr "" #: ../../howto/logging-cookbook.rst:2519 msgid "" -"If you specify a level value, the logger's level is set to that value in the" -" scope of the with block covered by the context manager. If you specify a " -"handler, it is added to the logger on entry to the block and removed on exit" -" from the block. You can also ask the manager to close the handler for you " -"on block exit - you could do this if you don't need the handler any more." +"If you specify a level value, the logger's level is set to that value in the " +"scope of the with block covered by the context manager. If you specify a " +"handler, it is added to the logger on entry to the block and removed on exit " +"from the block. You can also ask the manager to close the handler for you on " +"block exit - you could do this if you don't need the handler any more." msgstr "" #: ../../howto/logging-cookbook.rst:2525 @@ -1391,15 +1386,14 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2543 msgid "" "We initially set the logger's level to ``INFO``, so message #1 appears and " -"message #2 doesn't. We then change the level to ``DEBUG`` temporarily in the" -" following ``with`` block, and so message #3 appears. After the block exits," -" the logger's level is restored to ``INFO`` and so message #4 doesn't " -"appear. In the next ``with`` block, we set the level to ``DEBUG`` again but " -"also add a handler writing to ``sys.stdout``. Thus, message #5 appears twice" -" on the console (once via ``stderr`` and once via ``stdout``). After the " -"``with`` statement's completion, the status is as it was before so message " -"#6 appears (like message #1) whereas message #7 doesn't (just like message " -"#2)." +"message #2 doesn't. We then change the level to ``DEBUG`` temporarily in the " +"following ``with`` block, and so message #3 appears. After the block exits, " +"the logger's level is restored to ``INFO`` and so message #4 doesn't appear. " +"In the next ``with`` block, we set the level to ``DEBUG`` again but also add " +"a handler writing to ``sys.stdout``. Thus, message #5 appears twice on the " +"console (once via ``stderr`` and once via ``stdout``). After the ``with`` " +"statement's completion, the status is as it was before so message #6 appears " +"(like message #1) whereas message #7 doesn't (just like message #2)." msgstr "" #: ../../howto/logging-cookbook.rst:2553 @@ -1425,6 +1419,118 @@ msgstr "" #: ../../howto/logging-cookbook.rst:2584 msgid "" "Of course, the approach described here can be generalised, for example to " -"attach logging filters temporarily. Note that the above code works in Python" -" 2 as well as Python 3." +"attach logging filters temporarily. Note that the above code works in Python " +"2 as well as Python 3." +msgstr "" + +#: ../../howto/logging-cookbook.rst:2592 +msgid "A CLI application starter template" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2594 +msgid "Here's an example which shows how you can:" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2596 +msgid "Use a logging level based on command-line arguments" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2597 +msgid "" +"Dispatch to multiple subcommands in separate files, all logging at the same " +"level in a consistent way" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2599 +msgid "Make use of simple, minimal configuration" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2601 +msgid "" +"Suppose we have a command-line application whose job is to stop, start or " +"restart some services. This could be organised for the purposes of " +"illustration as a file ``app.py`` that is the main script for the " +"application, with individual commands implemented in ``start.py``, ``stop." +"py`` and ``restart.py``. Suppose further that we want to control the " +"verbosity of the application via a command-line argument, defaulting to " +"``logging.INFO``. Here's one way that ``app.py`` could be written::" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2650 +msgid "" +"And the ``start``, ``stop`` and ``restart`` commands can be implemented in " +"separate modules, like so for starting::" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2663 +msgid "and thus for stopping::" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2684 +msgid "and similarly for restarting::" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2705 +msgid "" +"If we run this application with the default log level, we get output like " +"this:" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2718 +msgid "" +"The first word is the logging level, and the second word is the module or " +"package name of the place where the event was logged." +msgstr "" + +#: ../../howto/logging-cookbook.rst:2721 +msgid "" +"If we change the logging level, then we can change the information sent to " +"the log. For example, if we want more information:" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2738 +msgid "And if we want less:" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2746 +msgid "" +"In this case, the commands don't print anything to the console, since " +"nothing at ``WARNING`` level or above is logged by them." +msgstr "" + +#: ../../howto/logging-cookbook.rst:2752 +msgid "A Qt GUI for logging" +msgstr "" + +#: ../../howto/logging-cookbook.rst:2754 +msgid "" +"A question that comes up from time to time is about how to log to a GUI " +"application. The `Qt `_ framework is a popular cross-" +"platform UI framework with Python bindings using `PySide2 `_ or `PyQt5 `_ libraries." +msgstr "" + +#: ../../howto/logging-cookbook.rst:2760 +msgid "" +"The following example shows how to log to a Qt GUI. This introduces a simple " +"``QtHandler`` class which takes a callable, which should be a slot in the " +"main thread that does GUI updates. A worker thread is also created to show " +"how you can log to the GUI from both the UI itself (via a button for manual " +"logging) as well as a worker thread doing work in the background (here, just " +"logging messages at random levels with random short delays in between)." +msgstr "" + +#: ../../howto/logging-cookbook.rst:2767 +msgid "" +"The worker thread is implemented using Qt's ``QThread`` class rather than " +"the :mod:`threading` module, as there are circumstances where one has to use " +"``QThread``, which offers better integration with other ``Qt`` components." +msgstr "" + +#: ../../howto/logging-cookbook.rst:2771 +msgid "" +"The code should work with recent releases of either ``PySide2`` or " +"``PyQt5``. You should be able to adapt the approach to earlier versions of " +"Qt. Please refer to the comments in the code snippet for more detailed " +"information." msgstr "" diff --git a/howto/logging.po b/howto/logging.po index 2b3f3bdb6..b1548d482 100644 --- a/howto/logging.po +++ b/howto/logging.po @@ -1,23 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Leticia Portella , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Katyanna Moura , 2019 -# +# Hildeberto Abreu Magalhães , 2019 +# Aline Balogh , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:27+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Katyanna Moura , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,12 +48,19 @@ msgstr "Tutorial Básico de Logging" msgid "" "Logging is a means of tracking events that happen when some software runs. " "The software's developer adds logging calls to their code to indicate that " -"certain events have occurred. An event is described by a descriptive message" -" which can optionally contain variable data (i.e. data that is potentially " +"certain events have occurred. An event is described by a descriptive message " +"which can optionally contain variable data (i.e. data that is potentially " "different for each occurrence of the event). Events also have an importance " -"which the developer ascribes to the event; the importance can also be called" -" the *level* or *severity*." +"which the developer ascribes to the event; the importance can also be called " +"the *level* or *severity*." msgstr "" +"Logging é uma maneira de rastrear eventos que acontecem quando algum " +"software executa. O desenvolvedor de software adiciona chamadas de logging " +"no código para indicar que determinado evento ocorreu. Um evento é descrito " +"por uma mensagem descritiva que pode opcionalmente conter o dado de uma " +"variavel (ex.: dado que é potencialmente diferente pra cada ocorrencia do " +"evento). Eventos também tem um peso que o desenvolvedor atribui para o " +"evento; o peso pode também ser chamada de \"niveis\" ou \"severidade\". " #: ../../howto/logging.rst:23 msgid "When to use logging" @@ -58,11 +69,15 @@ msgstr "Quando usar logging" #: ../../howto/logging.rst:25 msgid "" "Logging provides a set of convenience functions for simple logging usage. " -"These are :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and " -":func:`critical`. To determine when to use logging, see the table below, " -"which states, for each of a set of common tasks, the best tool to use for " -"it." +"These are :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :" +"func:`critical`. To determine when to use logging, see the table below, " +"which states, for each of a set of common tasks, the best tool to use for it." msgstr "" +"Logging provê um conjunto de funções convenientes para o uso simples de " +"logging. Estas funções são :func:`debug`, :func:`info`, :func:`warning`, :" +"func:`error` and :func:`critical`. Para determinar quando usar logging, " +"consulte a tabela abaixo, qual estado, para cada conjunto de tarefas comuns, " +"qual a melhor ferramenta para usar." #: ../../howto/logging.rst:31 msgid "Task you want to perform" @@ -74,8 +89,7 @@ msgstr "A melhor ferramenta para a tarefa" #: ../../howto/logging.rst:33 msgid "" -"Display console output for ordinary usage of a command line script or " -"program" +"Display console output for ordinary usage of a command line script or program" msgstr "" "Exibir saída do console para uso ordinário de um script de linha de comando " "ou programa." @@ -109,12 +123,16 @@ msgid "" ":func:`warnings.warn` in library code if the issue is avoidable and the " "client application should be modified to eliminate the warning" msgstr "" +":func:`warnings.warn` na biblioteca de codigo se o problema é evitavel e a " +"aplicação client deve ser modificada para eliminar o alerta." #: ../../howto/logging.rst:47 msgid "" ":func:`logging.warning` if there is nothing the client application can do " "about the situation, but the event should still be noted" msgstr "" +":func:`logging.warning` se nada pode ser feito pela aplicação client sobre o " +"ocorrido, mas mesmo assim o evento deve ser notificado" #: ../../howto/logging.rst:52 msgid "Report an error regarding a particular runtime event" @@ -132,9 +150,11 @@ msgstr "Relatar supress" #: ../../howto/logging.rst:55 msgid "" -":func:`logging.error`, :func:`logging.exception` or :func:`logging.critical`" -" as appropriate for the specific error and application domain" +":func:`logging.error`, :func:`logging.exception` or :func:`logging.critical` " +"as appropriate for the specific error and application domain" msgstr "" +":func:`logging.error`, :func:`logging.exception` ou :func:`logging.critical` " +"conforme apropriado para o erro especifico e domínio da aplicação" #: ../../howto/logging.rst:62 msgid "" @@ -142,10 +162,13 @@ msgid "" "they are used to track. The standard levels and their applicability are " "described below (in increasing order of severity):" msgstr "" +"As funções logging são nomeadas por nível ou severidade dos eventos que eles " +"costumam rastrear. Os níveis padrões e suas aplicações são descritas abaixo " +"(em ordem crescente de severidade):" #: ../../howto/logging.rst:69 ../../howto/logging.rst:846 msgid "Level" -msgstr "" +msgstr "Nível" #: ../../howto/logging.rst:69 msgid "When it's used" @@ -180,6 +203,9 @@ msgid "" "problem in the near future (e.g. 'disk space low'). The software is still " "working as expected." msgstr "" +"Uma indicação que algo inesperado acontenceu, ou um indicativo que algum " +"problema em um futuro próximo (ex.: 'pouco espaço em disco'). O software " +"está ainda funcionando como esperado." #: ../../howto/logging.rst:82 ../../howto/logging.rst:850 msgid "``ERROR``" @@ -207,10 +233,13 @@ msgstr "" #: ../../howto/logging.rst:89 msgid "" -"The default level is ``WARNING``, which means that only events of this level" -" and above will be tracked, unless the logging package is configured to do " +"The default level is ``WARNING``, which means that only events of this level " +"and above will be tracked, unless the logging package is configured to do " "otherwise." msgstr "" +"O nível padrão é ``WARNING``, que significa que só eventos deste nível e " +"acima serão rastreados, a não ser que o pacote logging esteja configurado " +"para fazer de outra forma." #: ../../howto/logging.rst:93 msgid "" @@ -218,6 +247,9 @@ msgid "" "of handling tracked events is to print them to the console. Another common " "way is to write them to a disk file." msgstr "" +"Eventos que são rastreados podem ser tratados de diferentes formas. O jeito " +"mais simples de lidar com eventos rastreados é exibi-los no console. Outra " +"maneira comum é grava-los em um arquivo de disco." #: ../../howto/logging.rst:101 msgid "A simple example" @@ -234,12 +266,18 @@ msgstr "Se você digitar essas linhas no script e executá-lo, você verá:" #: ../../howto/logging.rst:115 msgid "" "printed out on the console. The ``INFO`` message doesn't appear because the " -"default level is ``WARNING``. The printed message includes the indication of" -" the level and the description of the event provided in the logging call, " -"i.e. 'Watch out!'. Don't worry about the 'root' part for now: it will be " +"default level is ``WARNING``. The printed message includes the indication of " +"the level and the description of the event provided in the logging call, i." +"e. 'Watch out!'. Don't worry about the 'root' part for now: it will be " "explained later. The actual output can be formatted quite flexibly if you " "need that; formatting options will also be explained later." msgstr "" +"exibido no console. A mensagem ``INFO`` não aparece porque o nível padrão é " +"``WARNING``. A mensagem exibida inclui a indicação do nível e uma descrição " +"do evento informado na chamada ao logging, ex.: \"Cuidado!\". Não se " +"preocupe sobre entender tudo agora. Isto será explicado mais tarde. A saída " +"pode ser formatada de forma bastante flexivel se você precisar; opções de " +"formatação serão também explicadas posteriormente." #: ../../howto/logging.rst:124 msgid "Logging to a file" @@ -252,11 +290,15 @@ msgid "" "Python interpreter, and don't just continue from the session described " "above::" msgstr "" +"Um situação bem comum é gravar os eventos de logging em um arquivo, portanto " +"vamos dar um olhada nisto na sequência. Tenha certeza de tentar os seguintes " +"comandos em um novo interpretador Python, e não apenas continuar da sessão " +"que foi descrita acima:: " #: ../../howto/logging.rst:136 msgid "" -"And now if we open the file and look at what we have, we should find the log" -" messages:" +"And now if we open the file and look at what we have, we should find the log " +"messages:" msgstr "" "E agora se nós abrirmos o arquivo e olharmos o que temos, deveremos " "encontrar essas mensagens de log:" @@ -267,17 +309,24 @@ msgid "" "threshold for tracking. In this case, because we set the threshold to " "``DEBUG``, all of the messages were printed." msgstr "" +"Este exemplo também mostra como você pode configurar o nível do logging que " +"age como um limiar para o rastreamento. Neste caso, por causa que definimos " +"o limiar como ``DEBUG``, todas as mensagens foram exibidas." #: ../../howto/logging.rst:149 msgid "" "If you want to set the logging level from a command-line option such as:" msgstr "" +"Se você quer definir o nível de logging a partir de uma opção da linha de " +"comando como:" #: ../../howto/logging.rst:155 msgid "" "and you have the value of the parameter passed for ``--log`` in some " "variable *loglevel*, you can use::" msgstr "" +"e você tem o valor do parametro passado pelo ``--log`` em alguma variavel " +"*loglevel*, você pode usar::" #: ../../howto/logging.rst:160 msgid "" @@ -285,28 +334,43 @@ msgid "" "argument. You may want to error check any user input value, perhaps as in " "the following example::" msgstr "" +"para pegar o valor que você passara para a :func:`basicConfig` via o *level* " +"argumento. Você pode querer verificar qualquer erros introduzidos pelo " +"usuário, talvez como no exemplo a seguir:: " #: ../../howto/logging.rst:172 msgid "" -"The call to :func:`basicConfig` should come *before* any calls to " -":func:`debug`, :func:`info` etc. As it's intended as a one-off simple " +"The call to :func:`basicConfig` should come *before* any calls to :func:" +"`debug`, :func:`info` etc. As it's intended as a one-off simple " "configuration facility, only the first call will actually do anything: " "subsequent calls are effectively no-ops." msgstr "" +"A chamada a :func:`basicConfig` deve vir *antes* de qualquer chamada para :" +"func:`debug`, :func:`info` etc. Como isto pretende ser um simples " +"facilitador de configuração, apenas a primeira chamada irá realmente fazer " +"algo: As próximas chamadas não serão efetivamente operacionais." #: ../../howto/logging.rst:177 msgid "" -"If you run the above script several times, the messages from successive runs" -" are appended to the file *example.log*. If you want each run to start " +"If you run the above script several times, the messages from successive runs " +"are appended to the file *example.log*. If you want each run to start " "afresh, not remembering the messages from earlier runs, you can specify the " "*filemode* argument, by changing the call in the above example to::" msgstr "" +"Se você executar o script acima diversas vezes, as mensagens das sucessivas " +"execuções serão acrescentadas ao arquivo *example.log*. Se você quer que " +"cada execução seja iniciada novamente, não guardando as mensagens das " +"execuções anteriores, você pode especificar o *filemode* argumento, mudando " +"a chamada no exemplo acima::" #: ../../howto/logging.rst:184 msgid "" "The output will be the same as before, but the log file is no longer " "appended to, so the messages from earlier runs are lost." msgstr "" +"A saída será a mesma de antes, mas o arquivo de log não será mais " +"incrementado, desta forma as mensagens de execuções anteriores serão " +"perdidas." #: ../../howto/logging.rst:189 msgid "Logging from multiple modules" @@ -328,22 +392,31 @@ msgstr "Se você rodar *myapp.py*, deverá ver isso em *myapp.log*:" msgid "" "which is hopefully what you were expecting to see. You can generalize this " "to multiple modules, using the pattern in *mylib.py*. Note that for this " -"simple usage pattern, you won't know, by looking in the log file, *where* in" -" your application your messages came from, apart from looking at the event " -"description. If you want to track the location of your messages, you'll need" -" to refer to the documentation beyond the tutorial level -- see :ref" -":`logging-advanced-tutorial`." -msgstr "" +"simple usage pattern, you won't know, by looking in the log file, *where* in " +"your application your messages came from, apart from looking at the event " +"description. If you want to track the location of your messages, you'll need " +"to refer to the documentation beyond the tutorial level -- see :ref:`logging-" +"advanced-tutorial`." +msgstr "" +"que é com sorte o que você espera ver. Você pode generalizar isto para " +"multiplos módulos, usando o padrão da *mylib.py*. Note que para este uso " +"deste simples padrão, você não saberá, olhando no arquivo de log, onde na " +"sua aplicação suas mensagens vieram, independente de olhar a descrição do " +"evento. Se você quer rastrear a localização das suas mensagens, você " +"precisará consultar a documentação além do tutorial de níveis -- veja :ref:" +"`logging-advanced-tutorial`." #: ../../howto/logging.rst:233 msgid "Logging variable data" -msgstr "" +msgstr "Logging dados de uma variável" #: ../../howto/logging.rst:235 msgid "" "To log variable data, use a format string for the event description message " "and append the variable data as arguments. For example::" msgstr "" +"Para logar o dado de uma variável, use o format string na mensagem " +"descritiva do evento e adicione a variável como argumento. Exemplo::" #: ../../howto/logging.rst:241 msgid "will display:" @@ -358,6 +431,13 @@ msgid "" "options *are* supported, but exploring them is outside the scope of this " "tutorial: see :ref:`formatting-styles` for more information." msgstr "" +"Como você pode ver, para combinar uma variável de dados na mensagem " +"descritiva do evento usamos o velho, %-s estilo de formatação de string. " +"Isto é usado para garantir compatibilidade com as versões anteriores: o " +"pacote logging pré-data novas opções de formatação como :meth:`str.format` " +"e :class:`string.Template`. Estas novas opções de formatação são suportadas, " +"mas explora-las esta fora do escopo deste tutorial: veja :ref:`formatting-" +"styles`  para mais informações." #: ../../howto/logging.rst:256 msgid "Changing the format of displayed messages" @@ -368,8 +448,8 @@ msgid "" "To change the format which is used to display messages, you need to specify " "the format you want to use::" msgstr "" -"Para mudar o formato usado para exibir mensagens, você precisa especificar o" -" formato que quer usar:" +"Para mudar o formato usado para exibir mensagens, você precisa especificar o " +"formato que quer usar:" #: ../../howto/logging.rst:267 msgid "which would print:" @@ -378,12 +458,18 @@ msgstr "que vai exibir:" #: ../../howto/logging.rst:275 msgid "" "Notice that the 'root' which appeared in earlier examples has disappeared. " -"For a full set of things that can appear in format strings, you can refer to" -" the documentation for :ref:`logrecord-attributes`, but for simple usage, " -"you just need the *levelname* (severity), *message* (event description, " +"For a full set of things that can appear in format strings, you can refer to " +"the documentation for :ref:`logrecord-attributes`, but for simple usage, you " +"just need the *levelname* (severity), *message* (event description, " "including variable data) and perhaps to display when the event occurred. " "This is described in the next section." msgstr "" +"Note que a palavra 'root' que apareceu nos exemplos anteriores desapareceu. " +"Para todas as configurações que possam aparecer na formatação de strings, " +"você pode consultar a documentação :ref:`logrecord-attributes`, mas para " +"uso simples, você só precisa do *levelname* (severidade), *message* " +"(descrição do evento, incluíndo a variável com dados) e talvez exibir quando " +"o evento ocorreu. Isto esta descrito na próxima seção:" #: ../../howto/logging.rst:284 msgid "Displaying the date/time in messages" @@ -394,6 +480,8 @@ msgid "" "To display the date and time of an event, you would place '%(asctime)s' in " "your format string::" msgstr "" +"Para exibir a data e hora de um evento, você pode colocar '%(asctime)s' no " +"seu formato string::" #: ../../howto/logging.rst:293 msgid "which should print something like this:" @@ -401,10 +489,13 @@ msgstr "que deve exibir algo assim:" #: ../../howto/logging.rst:299 msgid "" -"The default format for date/time display (shown above) is like ISO8601 or " -":rfc:`3339`. If you need more control over the formatting of the date/time, " +"The default format for date/time display (shown above) is like ISO8601 or :" +"rfc:`3339`. If you need more control over the formatting of the date/time, " "provide a *datefmt* argument to ``basicConfig``, as in this example::" msgstr "" +"O formato padrão para data/hora (mostrado abaixo) é como a ISO8601 ou :rfc:" +"`3339`. Se você precisa de mais controle sobre a formatação de data/hora, " +"informe o *datefmt* argumento para ``basicConfig``, como neste exemplo:: " #: ../../howto/logging.rst:307 msgid "which would display something like this:" @@ -412,11 +503,11 @@ msgstr "que deve exibir algo assim:" #: ../../howto/logging.rst:313 msgid "" -"The format of the *datefmt* argument is the same as supported by " -":func:`time.strftime`." +"The format of the *datefmt* argument is the same as supported by :func:`time." +"strftime`." msgstr "" -"O formato do argumento *datefmt* é o mesmo suportado por " -":func:`time.strftime`." +"O formato do argumento *datefmt* é o mesmo suportado por :func:`time." +"strftime`." #: ../../howto/logging.rst:318 msgid "Next Steps" @@ -430,16 +521,25 @@ msgid "" "time in reading the following sections. If you're ready for that, grab some " "of your favourite beverage and carry on." msgstr "" +"Concluímos aqui o tutorial básico. Isto deve ser o bastante para você " +"começar a trabalhar com logging. Existe muito mais que o pacote de logging " +"pode oferecer, mas para ter o melhor disto, você precisará investir um pouco " +"mais do seu tempo lendo as próximas seções. Se você está pronto para isso, " +"pegue sua bebida favorita e continue." #: ../../howto/logging.rst:326 msgid "" -"If your logging needs are simple, then use the above examples to incorporate" -" logging into your own scripts, and if you run into problems or don't " +"If your logging needs are simple, then use the above examples to incorporate " +"logging into your own scripts, and if you run into problems or don't " "understand something, please post a question on the comp.lang.python Usenet " -"group (available at " -"https://groups.google.com/forum/#!forum/comp.lang.python) and you should " -"receive help before too long." +"group (available at https://groups.google.com/forum/#!forum/comp.lang." +"python) and you should receive help before too long." msgstr "" +"Se sua necessidade de logging é simples, então use os exemplos acima para " +"incorporar o logging nos seus scripts, se você encontrar algum problema ou " +"não entender algo, por favor envie um pergunta no comp.lang.python Usenet " +"grupo (disponível no https://groups.google.com/forum/#!forum/comp.lang." +"python) e você deverá receber ajuda assim que possível." #: ../../howto/logging.rst:332 msgid "" @@ -460,32 +560,41 @@ msgid "" "The logging library takes a modular approach and offers several categories " "of components: loggers, handlers, filters, and formatters." msgstr "" +"A biblioteca de logging tem uma abordagem modular e oferece algumas " +"categorias de componentes: loggers, handlers, filters, e formatters." #: ../../howto/logging.rst:345 msgid "Loggers expose the interface that application code directly uses." -msgstr "" +msgstr "Loggers expõem a interface que o código da aplicação usa diretamente." #: ../../howto/logging.rst:346 msgid "" "Handlers send the log records (created by loggers) to the appropriate " "destination." msgstr "" +"Handlers enviam os registros do evento (criados por loggers) aos destinos " +"apropriados." #: ../../howto/logging.rst:348 msgid "" "Filters provide a finer grained facility for determining which log records " "to output." msgstr "" +"Filters fornecem uma facilidade granular para determinar quais registros de " +"eventos enviar à saída." #: ../../howto/logging.rst:350 msgid "Formatters specify the layout of log records in the final output." msgstr "" +"Formatters especificam o layout dos registros de eventos na saída final." #: ../../howto/logging.rst:352 msgid "" "Log event information is passed between loggers, handlers, filters and " "formatters in a :class:`LogRecord` instance." msgstr "" +"Uma informação de um evento de log é passada entre loggers, handlers, " +"filters e formatters em uma instância de uma :class:`LogRecord`" #: ../../howto/logging.rst:355 msgid "" @@ -497,26 +606,38 @@ msgid "" "want, and indicate the area of an application in which a logged message " "originates." msgstr "" +"Logging é executada chamando métodos nas instâncias da :class:`Logger` " +"classe (também chamado de :dfn:`loggers`). Cada instância tem um nome, e " +"eles são conceitualmente organizados em uma hierarquia de espaço de " +"nomes(namespaces) usando pontos como separadores. Por exemplo, um logger " +"nomeado com 'scan' é o pai do logger 'scan.text', 'scan.html' e 'scan.pdf'. " +"Você pode nomear o logger do jeito que preferir, e indicar a área de uma " +"aplicação em que uma mensagem de log origina." #: ../../howto/logging.rst:362 msgid "" "A good convention to use when naming loggers is to use a module-level " "logger, in each module which uses logging, named as follows::" msgstr "" +"Uma boa convenção para usar quando nomear loggers é usar um módulo-level " +"logger, em cada módulo que usa o logging, nomeado como sugerido abaixo:" #: ../../howto/logging.rst:367 msgid "" "This means that logger names track the package/module hierarchy, and it's " "intuitively obvious where events are logged just from the logger name." msgstr "" +"Isto significa que o nome de um logger rastreia a hierarquia do pacote/" +"módulo, e isto é obviamente intuitivo onde os eventos estão sendo " +"registrados apenas pelo nome do logger." #: ../../howto/logging.rst:370 msgid "" "The root of the hierarchy of loggers is called the root logger. That's the " -"logger used by the functions :func:`debug`, :func:`info`, :func:`warning`, " -":func:`error` and :func:`critical`, which just call the same-named method of" -" the root logger. The functions and the methods have the same signatures. " -"The root logger's name is printed as 'root' in the logged output." +"logger used by the functions :func:`debug`, :func:`info`, :func:`warning`, :" +"func:`error` and :func:`critical`, which just call the same-named method of " +"the root logger. The functions and the methods have the same signatures. The " +"root logger's name is printed as 'root' in the logged output." msgstr "" #: ../../howto/logging.rst:376 @@ -534,10 +655,10 @@ msgstr "" msgid "" "By default, no destination is set for any logging messages. You can specify " "a destination (such as console or file) by using :func:`basicConfig` as in " -"the tutorial examples. If you call the functions :func:`debug`, " -":func:`info`, :func:`warning`, :func:`error` and :func:`critical`, they will" -" check to see if no destination is set; and if one is not set, they will set" -" a destination of the console (``sys.stderr``) and a default format for the " +"the tutorial examples. If you call the functions :func:`debug`, :func:" +"`info`, :func:`warning`, :func:`error` and :func:`critical`, they will check " +"to see if no destination is set; and if one is not set, they will set a " +"destination of the console (``sys.stderr``) and a default format for the " "displayed message before delegating to the root logger to do the actual " "message output." msgstr "" @@ -549,8 +670,8 @@ msgstr "O formato padrão definido por :func:`basicConfig` para mensagens é:" #: ../../howto/logging.rst:397 msgid "" "You can change this by passing a format string to :func:`basicConfig` with " -"the *format* keyword argument. For all options regarding how a format string" -" is constructed, see :ref:`formatter-objects`." +"the *format* keyword argument. For all options regarding how a format string " +"is constructed, see :ref:`formatter-objects`." msgstr "" #: ../../howto/logging.rst:402 @@ -573,8 +694,8 @@ msgid "" "methods to application code so that applications can log messages at " "runtime. Second, logger objects determine which log messages to act upon " "based upon severity (the default filtering facility) or filter objects. " -"Third, logger objects pass along relevant log messages to all interested log" -" handlers." +"Third, logger objects pass along relevant log messages to all interested log " +"handlers." msgstr "" #: ../../howto/logging.rst:418 @@ -601,8 +722,8 @@ msgstr "" #: ../../howto/logging.rst:429 msgid "" ":meth:`Logger.addHandler` and :meth:`Logger.removeHandler` add and remove " -"handler objects from the logger object. Handlers are covered in more detail" -" in :ref:`handler-basic`." +"handler objects from the logger object. Handlers are covered in more detail " +"in :ref:`handler-basic`." msgstr "" #: ../../howto/logging.rst:433 @@ -620,29 +741,27 @@ msgstr "" #: ../../howto/logging.rst:440 msgid "" -"With the logger object configured, the following methods create log " -"messages:" +"With the logger object configured, the following methods create log messages:" msgstr "" #: ../../howto/logging.rst:442 msgid "" -":meth:`Logger.debug`, :meth:`Logger.info`, :meth:`Logger.warning`, " -":meth:`Logger.error`, and :meth:`Logger.critical` all create log records " -"with a message and a level that corresponds to their respective method " -"names. The message is actually a format string, which may contain the " -"standard string substitution syntax of ``%s``, ``%d``, ``%f``, and so on. " -"The rest of their arguments is a list of objects that correspond with the " -"substitution fields in the message. With regard to ``**kwargs``, the " -"logging methods care only about a keyword of ``exc_info`` and use it to " -"determine whether to log exception information." +":meth:`Logger.debug`, :meth:`Logger.info`, :meth:`Logger.warning`, :meth:" +"`Logger.error`, and :meth:`Logger.critical` all create log records with a " +"message and a level that corresponds to their respective method names. The " +"message is actually a format string, which may contain the standard string " +"substitution syntax of ``%s``, ``%d``, ``%f``, and so on. The rest of their " +"arguments is a list of objects that correspond with the substitution fields " +"in the message. With regard to ``**kwargs``, the logging methods care only " +"about a keyword of ``exc_info`` and use it to determine whether to log " +"exception information." msgstr "" #: ../../howto/logging.rst:452 msgid "" -":meth:`Logger.exception` creates a log message similar to " -":meth:`Logger.error`. The difference is that :meth:`Logger.exception` dumps" -" a stack trace along with it. Call this method only from an exception " -"handler." +":meth:`Logger.exception` creates a log message similar to :meth:`Logger." +"error`. The difference is that :meth:`Logger.exception` dumps a stack trace " +"along with it. Call this method only from an exception handler." msgstr "" #: ../../howto/logging.rst:456 @@ -657,8 +776,8 @@ msgstr "" msgid "" ":func:`getLogger` returns a reference to a logger instance with the " "specified name if it is provided, or ``root`` if not. The names are period-" -"separated hierarchical structures. Multiple calls to :func:`getLogger` with" -" the same name will return a reference to the same logger object. Loggers " +"separated hierarchical structures. Multiple calls to :func:`getLogger` with " +"the same name will return a reference to the same logger object. Loggers " "that are further down in the hierarchical list are children of loggers " "higher up in the list. For example, given a logger with a name of ``foo``, " "loggers with names of ``foo.bar``, ``foo.bar.baz``, and ``foo.bam`` are all " @@ -680,8 +799,8 @@ msgstr "" #: ../../howto/logging.rst:476 msgid "" "Child loggers propagate messages up to the handlers associated with their " -"ancestor loggers. Because of this, it is unnecessary to define and configure" -" handlers for all the loggers an application uses. It is sufficient to " +"ancestor loggers. Because of this, it is unnecessary to define and configure " +"handlers for all the loggers an application uses. It is sufficient to " "configure handlers for a top-level logger and create child loggers as " "needed. (You can, however, turn off propagation by setting the *propagate* " "attribute of a logger to ``False``.)" @@ -707,8 +826,8 @@ msgstr "" #: ../../howto/logging.rst:499 msgid "" "The standard library includes quite a few handler types (see :ref:`useful-" -"handlers`); the tutorials use mainly :class:`StreamHandler` and " -":class:`FileHandler` in its examples." +"handlers`); the tutorials use mainly :class:`StreamHandler` and :class:" +"`FileHandler` in its examples." msgstr "" #: ../../howto/logging.rst:503 @@ -722,8 +841,8 @@ msgstr "" #: ../../howto/logging.rst:508 msgid "" "The :meth:`~Handler.setLevel` method, just as in logger objects, specifies " -"the lowest severity that will be dispatched to the appropriate destination." -" Why are there two :func:`setLevel` methods? The level set in the logger " +"the lowest severity that will be dispatched to the appropriate destination. " +"Why are there two :func:`setLevel` methods? The level set in the logger " "determines which severity of messages it will pass to its handlers. The " "level set in each handler determines which messages that handler will send " "on." @@ -731,8 +850,8 @@ msgstr "" #: ../../howto/logging.rst:514 msgid "" -":meth:`~Handler.setFormatter` selects a Formatter object for this handler to" -" use." +":meth:`~Handler.setFormatter` selects a Formatter object for this handler to " +"use." msgstr "" #: ../../howto/logging.rst:517 @@ -743,10 +862,10 @@ msgstr "" #: ../../howto/logging.rst:520 msgid "" -"Application code should not directly instantiate and use instances of " -":class:`Handler`. Instead, the :class:`Handler` class is a base class that " -"defines the interface that all handlers should have and establishes some " -"default behavior that child classes can use (or override)." +"Application code should not directly instantiate and use instances of :class:" +"`Handler`. Instead, the :class:`Handler` class is a base class that defines " +"the interface that all handlers should have and establishes some default " +"behavior that child classes can use (or override)." msgstr "" #: ../../howto/logging.rst:527 @@ -765,21 +884,21 @@ msgstr "" #: ../../howto/logging.rst:538 msgid "" -"If there is no message format string, the default is to use the raw message." -" If there is no date format string, the default date format is:" +"If there is no message format string, the default is to use the raw " +"message. If there is no date format string, the default date format is:" msgstr "" #: ../../howto/logging.rst:545 msgid "" -"with the milliseconds tacked on at the end. The ``style`` is one of `%`, '{'" -" or '$'. If one of these is not specified, then '%' will be used." +"with the milliseconds tacked on at the end. The ``style`` is one of `%`, '{' " +"or '$'. If one of these is not specified, then '%' will be used." msgstr "" #: ../../howto/logging.rst:548 msgid "" "If the ``style`` is '%', the message format string uses ``%()s`` styled string substitution; the possible keys are documented in " -":ref:`logrecord-attributes`. If the style is '{', the message format string " +"key>)s`` styled string substitution; the possible keys are documented in :" +"ref:`logrecord-attributes`. If the style is '{', the message format string " "is assumed to be compatible with :meth:`str.format` (using keyword " "arguments), while if the style is '$' then the message format string should " "conform to what is expected by :meth:`string.Template.substitute`." @@ -800,12 +919,11 @@ msgstr "" msgid "" "Formatters use a user-configurable function to convert the creation time of " "a record to a tuple. By default, :func:`time.localtime` is used; to change " -"this for a particular formatter instance, set the ``converter`` attribute of" -" the instance to a function with the same signature as " -":func:`time.localtime` or :func:`time.gmtime`. To change it for all " -"formatters, for example if you want all logging times to be shown in GMT, " -"set the ``converter`` attribute in the Formatter class (to ``time.gmtime`` " -"for GMT display)." +"this for a particular formatter instance, set the ``converter`` attribute of " +"the instance to a function with the same signature as :func:`time.localtime` " +"or :func:`time.gmtime`. To change it for all formatters, for example if you " +"want all logging times to be shown in GMT, set the ``converter`` attribute " +"in the Formatter class (to ``time.gmtime`` for GMT display)." msgstr "" #: ../../howto/logging.rst:574 @@ -818,8 +936,8 @@ msgstr "Programadores podem configurar logging de três formas:" #: ../../howto/logging.rst:580 msgid "" -"Creating loggers, handlers, and formatters explicitly using Python code that" -" calls the configuration methods listed above." +"Creating loggers, handlers, and formatters explicitly using Python code that " +"calls the configuration methods listed above." msgstr "" #: ../../howto/logging.rst:582 @@ -830,8 +948,8 @@ msgstr "" #: ../../howto/logging.rst:584 msgid "" -"Creating a dictionary of configuration information and passing it to the " -":func:`dictConfig` function." +"Creating a dictionary of configuration information and passing it to the :" +"func:`dictConfig` function." msgstr "" #: ../../howto/logging.rst:587 @@ -874,51 +992,51 @@ msgid "" "The :func:`fileConfig` function takes a default parameter, " "``disable_existing_loggers``, which defaults to ``True`` for reasons of " "backward compatibility. This may or may not be what you want, since it will " -"cause any non-root loggers existing before the :func:`fileConfig` call to be" -" disabled unless they (or an ancestor) are explicitly named in the " +"cause any non-root loggers existing before the :func:`fileConfig` call to be " +"disabled unless they (or an ancestor) are explicitly named in the " "configuration. Please refer to the reference documentation for more " "information, and specify ``False`` for this parameter if you wish." msgstr "" #: ../../howto/logging.rst:703 msgid "" -"The dictionary passed to :func:`dictConfig` can also specify a Boolean value" -" with key ``disable_existing_loggers``, which if not specified explicitly in" -" the dictionary also defaults to being interpreted as ``True``. This leads " -"to the logger-disabling behaviour described above, which may not be what you" -" want - in which case, provide the key explicitly with a value of ``False``." +"The dictionary passed to :func:`dictConfig` can also specify a Boolean value " +"with key ``disable_existing_loggers``, which if not specified explicitly in " +"the dictionary also defaults to being interpreted as ``True``. This leads to " +"the logger-disabling behaviour described above, which may not be what you " +"want - in which case, provide the key explicitly with a value of ``False``." msgstr "" #: ../../howto/logging.rst:713 msgid "" "Note that the class names referenced in config files need to be either " "relative to the logging module, or absolute values which can be resolved " -"using normal import mechanisms. Thus, you could use either " -":class:`~logging.handlers.WatchedFileHandler` (relative to the logging " -"module) or ``mypackage.mymodule.MyHandler`` (for a class defined in package " -"``mypackage`` and module ``mymodule``, where ``mypackage`` is available on " -"the Python import path)." +"using normal import mechanisms. Thus, you could use either :class:`~logging." +"handlers.WatchedFileHandler` (relative to the logging module) or ``mypackage." +"mymodule.MyHandler`` (for a class defined in package ``mypackage`` and " +"module ``mymodule``, where ``mypackage`` is available on the Python import " +"path)." msgstr "" #: ../../howto/logging.rst:721 msgid "" -"In Python 3.2, a new means of configuring logging has been introduced, using" -" dictionaries to hold configuration information. This provides a superset of" -" the functionality of the config-file-based approach outlined above, and is " +"In Python 3.2, a new means of configuring logging has been introduced, using " +"dictionaries to hold configuration information. This provides a superset of " +"the functionality of the config-file-based approach outlined above, and is " "the recommended configuration method for new applications and deployments. " "Because a Python dictionary is used to hold configuration information, and " "since you can populate that dictionary using different means, you have more " "options for configuration. For example, you can use a configuration file in " -"JSON format, or, if you have access to YAML processing functionality, a file" -" in YAML format, to populate the configuration dictionary. Or, of course, " -"you can construct the dictionary in Python code, receive it in pickled form " -"over a socket, or use whatever approach makes sense for your application." +"JSON format, or, if you have access to YAML processing functionality, a file " +"in YAML format, to populate the configuration dictionary. Or, of course, you " +"can construct the dictionary in Python code, receive it in pickled form over " +"a socket, or use whatever approach makes sense for your application." msgstr "" #: ../../howto/logging.rst:733 msgid "" -"Here's an example of the same configuration as above, in YAML format for the" -" new dictionary-based approach:" +"Here's an example of the same configuration as above, in YAML format for the " +"new dictionary-based approach:" msgstr "" #: ../../howto/logging.rst:757 @@ -961,10 +1079,10 @@ msgstr "Em Python 3.2 e posteriores, o comportamente é como o seguinte:" #: ../../howto/logging.rst:778 msgid "" -"The event is output using a 'handler of last resort', stored in " -"``logging.lastResort``. This internal handler is not associated with any " -"logger, and acts like a :class:`~logging.StreamHandler` which writes the " -"event description message to the current value of ``sys.stderr`` (therefore " +"The event is output using a 'handler of last resort', stored in ``logging." +"lastResort``. This internal handler is not associated with any logger, and " +"acts like a :class:`~logging.StreamHandler` which writes the event " +"description message to the current value of ``sys.stderr`` (therefore " "respecting any redirections which may be in effect). No formatting is done " "on the message - just the bare event description message is printed. The " "handler's level is set to ``WARNING``, so all events at this and greater " @@ -987,32 +1105,32 @@ msgid "" "document how the library uses logging - for example, the names of loggers " "used. Some consideration also needs to be given to its logging " "configuration. If the using application does not use logging, and library " -"code makes logging calls, then (as described in the previous section) events" -" of severity ``WARNING`` and greater will be printed to ``sys.stderr``. This" -" is regarded as the best default behaviour." +"code makes logging calls, then (as described in the previous section) events " +"of severity ``WARNING`` and greater will be printed to ``sys.stderr``. This " +"is regarded as the best default behaviour." msgstr "" #: ../../howto/logging.rst:802 msgid "" -"If for some reason you *don't* want these messages printed in the absence of" -" any logging configuration, you can attach a do-nothing handler to the top-" +"If for some reason you *don't* want these messages printed in the absence of " +"any logging configuration, you can attach a do-nothing handler to the top-" "level logger for your library. This avoids the message being printed, since " "a handler will always be found for the library's events: it just doesn't " "produce any output. If the library user configures logging for application " -"use, presumably that configuration will add some handlers, and if levels are" -" suitably configured then logging calls made in library code will send " -"output to those handlers, as normal." +"use, presumably that configuration will add some handlers, and if levels are " +"suitably configured then logging calls made in library code will send output " +"to those handlers, as normal." msgstr "" #: ../../howto/logging.rst:811 msgid "" -"A do-nothing handler is included in the logging package: " -":class:`~logging.NullHandler` (since Python 3.1). An instance of this " -"handler could be added to the top-level logger of the logging namespace used" -" by the library (*if* you want to prevent your library's logged events being" -" output to ``sys.stderr`` in the absence of logging configuration). If all " -"logging by a library *foo* is done using loggers with names matching " -"'foo.x', 'foo.x.y', etc. then the code::" +"A do-nothing handler is included in the logging package: :class:`~logging." +"NullHandler` (since Python 3.1). An instance of this handler could be added " +"to the top-level logger of the logging namespace used by the library (*if* " +"you want to prevent your library's logged events being output to ``sys." +"stderr`` in the absence of logging configuration). If all logging by a " +"library *foo* is done using loggers with names matching 'foo.x', 'foo.x.y', " +"etc. then the code::" msgstr "" #: ../../howto/logging.rst:822 @@ -1024,14 +1142,13 @@ msgstr "" #: ../../howto/logging.rst:826 msgid "" -"It is strongly advised that you *do not add any handlers other than* " -":class:`~logging.NullHandler` *to your library's loggers*. This is because " -"the configuration of handlers is the prerogative of the application " -"developer who uses your library. The application developer knows their " -"target audience and what handlers are most appropriate for their " -"application: if you add handlers 'under the hood', you might well interfere " -"with their ability to carry out unit tests and deliver logs which suit their" -" requirements." +"It is strongly advised that you *do not add any handlers other than* :class:" +"`~logging.NullHandler` *to your library's loggers*. This is because the " +"configuration of handlers is the prerogative of the application developer " +"who uses your library. The application developer knows their target audience " +"and what handlers are most appropriate for their application: if you add " +"handlers 'under the hood', you might well interfere with their ability to " +"carry out unit tests and deliver logs which suit their requirements." msgstr "" #: ../../howto/logging.rst:837 @@ -1040,8 +1157,8 @@ msgstr "" #: ../../howto/logging.rst:839 msgid "" -"The numeric values of logging levels are given in the following table. These" -" are primarily of interest if you want to define your own levels, and need " +"The numeric values of logging levels are given in the following table. These " +"are primarily of interest if you want to define your own levels, and need " "them to have specific values relative to the predefined levels. If you " "define a level with the same numeric value, it overwrites the predefined " "value; the predefined name is lost." @@ -1091,20 +1208,20 @@ msgstr "" #: ../../howto/logging.rst:868 msgid "" -"Logging messages are encoded as instances of the :class:`~logging.LogRecord`" -" class. When a logger decides to actually log an event, a " -":class:`~logging.LogRecord` instance is created from the logging message." +"Logging messages are encoded as instances of the :class:`~logging.LogRecord` " +"class. When a logger decides to actually log an event, a :class:`~logging." +"LogRecord` instance is created from the logging message." msgstr "" #: ../../howto/logging.rst:872 msgid "" -"Logging messages are subjected to a dispatch mechanism through the use of " -":dfn:`handlers`, which are instances of subclasses of the :class:`Handler` " +"Logging messages are subjected to a dispatch mechanism through the use of :" +"dfn:`handlers`, which are instances of subclasses of the :class:`Handler` " "class. Handlers are responsible for ensuring that a logged message (in the " "form of a :class:`LogRecord`) ends up in a particular location (or set of " -"locations) which is useful for the target audience for that message (such as" -" end users, support desk staff, system administrators, developers). Handlers" -" are passed :class:`LogRecord` instances intended for particular " +"locations) which is useful for the target audience for that message (such as " +"end users, support desk staff, system administrators, developers). Handlers " +"are passed :class:`LogRecord` instances intended for particular " "destinations. Each logger can have zero, one or more handlers associated " "with it (via the :meth:`~Logger.addHandler` method of :class:`Logger`). In " "addition to any handlers directly associated with a logger, *all handlers " @@ -1117,10 +1234,10 @@ msgstr "" msgid "" "Just as for loggers, handlers can have levels associated with them. A " "handler's level acts as a filter in the same way as a logger's level does. " -"If a handler decides to actually dispatch an event, the " -":meth:`~Handler.emit` method is used to send the message to its destination." -" Most user-defined subclasses of :class:`Handler` will need to override this" -" :meth:`~Handler.emit`." +"If a handler decides to actually dispatch an event, the :meth:`~Handler." +"emit` method is used to send the message to its destination. Most user-" +"defined subclasses of :class:`Handler` will need to override this :meth:" +"`~Handler.emit`." msgstr "" #: ../../howto/logging.rst:895 @@ -1131,9 +1248,9 @@ msgstr "" msgid "" "Defining your own levels is possible, but should not be necessary, as the " "existing levels have been chosen on the basis of practical experience. " -"However, if you are convinced that you need custom levels, great care should" -" be exercised when doing this, and it is possibly *a very bad idea to define" -" custom levels if you are developing a library*. That's because if multiple " +"However, if you are convinced that you need custom levels, great care should " +"be exercised when doing this, and it is possibly *a very bad idea to define " +"custom levels if you are developing a library*. That's because if multiple " "library authors all define their own custom levels, there is a chance that " "the logging output from such multiple libraries used together will be " "difficult for the using developer to control and/or interpret, because a " @@ -1166,8 +1283,8 @@ msgstr "" msgid "" ":class:`~handlers.BaseRotatingHandler` is the base class for handlers that " "rotate log files at a certain point. It is not meant to be instantiated " -"directly. Instead, use :class:`~handlers.RotatingFileHandler` or " -":class:`~handlers.TimedRotatingFileHandler`." +"directly. Instead, use :class:`~handlers.RotatingFileHandler` or :class:" +"`~handlers.TimedRotatingFileHandler`." msgstr "" #: ../../howto/logging.rst:925 @@ -1196,8 +1313,8 @@ msgstr "" #: ../../howto/logging.rst:937 msgid "" -":class:`~handlers.SMTPHandler` instances send messages to a designated email" -" address." +":class:`~handlers.SMTPHandler` instances send messages to a designated email " +"address." msgstr "" #: ../../howto/logging.rst:940 @@ -1240,8 +1357,8 @@ msgstr "" #: ../../howto/logging.rst:960 msgid "" -":class:`NullHandler` instances do nothing with error messages. They are used" -" by library developers who want to use logging, but want to avoid the 'No " +":class:`NullHandler` instances do nothing with error messages. They are used " +"by library developers who want to use logging, but want to avoid the 'No " "handlers could be found for logger XXX' message which can be displayed if " "the library user has not configured logging. See :ref:`library-config` for " "more information." @@ -1259,33 +1376,33 @@ msgstr "A classe :class:`~handlers.QueueHandler`." msgid "" "The :class:`NullHandler`, :class:`StreamHandler` and :class:`FileHandler` " "classes are defined in the core logging package. The other handlers are " -"defined in a sub-module, :mod:`logging.handlers`. (There is also another " -"sub-module, :mod:`logging.config`, for configuration functionality.)" +"defined in a sub-module, :mod:`logging.handlers`. (There is also another sub-" +"module, :mod:`logging.config`, for configuration functionality.)" msgstr "" #: ../../howto/logging.rst:977 msgid "" -"Logged messages are formatted for presentation through instances of the " -":class:`Formatter` class. They are initialized with a format string suitable" -" for use with the % operator and a dictionary." +"Logged messages are formatted for presentation through instances of the :" +"class:`Formatter` class. They are initialized with a format string suitable " +"for use with the % operator and a dictionary." msgstr "" #: ../../howto/logging.rst:981 msgid "" -"For formatting multiple messages in a batch, instances of " -":class:`~handlers.BufferingFormatter` can be used. In addition to the format" -" string (which is applied to each message in the batch), there is provision " -"for header and trailer format strings." +"For formatting multiple messages in a batch, instances of :class:`~handlers." +"BufferingFormatter` can be used. In addition to the format string (which is " +"applied to each message in the batch), there is provision for header and " +"trailer format strings." msgstr "" #: ../../howto/logging.rst:986 msgid "" "When filtering based on logger level and/or handler level is not enough, " -"instances of :class:`Filter` can be added to both :class:`Logger` and " -":class:`Handler` instances (through their :meth:`~Handler.addFilter` " -"method). Before deciding to process a message further, both loggers and " -"handlers consult all their filters for permission. If any filter returns a " -"false value, the message is not processed further." +"instances of :class:`Filter` can be added to both :class:`Logger` and :class:" +"`Handler` instances (through their :meth:`~Handler.addFilter` method). " +"Before deciding to process a message further, both loggers and handlers " +"consult all their filters for permission. If any filter returns a false " +"value, the message is not processed further." msgstr "" #: ../../howto/logging.rst:993 @@ -1304,31 +1421,30 @@ msgid "" "The logging package is designed to swallow exceptions which occur while " "logging in production. This is so that errors which occur while handling " "logging events - such as logging misconfiguration, network or other similar " -"errors - do not cause the application using logging to terminate " -"prematurely." +"errors - do not cause the application using logging to terminate prematurely." msgstr "" #: ../../howto/logging.rst:1008 msgid "" ":class:`SystemExit` and :class:`KeyboardInterrupt` exceptions are never " "swallowed. Other exceptions which occur during the :meth:`~Handler.emit` " -"method of a :class:`Handler` subclass are passed to its " -":meth:`~Handler.handleError` method." +"method of a :class:`Handler` subclass are passed to its :meth:`~Handler." +"handleError` method." msgstr "" #: ../../howto/logging.rst:1013 msgid "" -"The default implementation of :meth:`~Handler.handleError` in " -":class:`Handler` checks to see if a module-level variable, " -":data:`raiseExceptions`, is set. If set, a traceback is printed to " -":data:`sys.stderr`. If not set, the exception is swallowed." +"The default implementation of :meth:`~Handler.handleError` in :class:" +"`Handler` checks to see if a module-level variable, :data:`raiseExceptions`, " +"is set. If set, a traceback is printed to :data:`sys.stderr`. If not set, " +"the exception is swallowed." msgstr "" #: ../../howto/logging.rst:1018 msgid "" "The default value of :data:`raiseExceptions` is ``True``. This is because " -"during development, you typically want to be notified of any exceptions that" -" occur. It's advised that you set :data:`raiseExceptions` to ``False`` for " +"during development, you typically want to be notified of any exceptions that " +"occur. It's advised that you set :data:`raiseExceptions` to ``False`` for " "production usage." msgstr "" @@ -1338,14 +1454,14 @@ msgstr "Usando objetos arbitrários como mensagens" #: ../../howto/logging.rst:1030 msgid "" -"In the preceding sections and examples, it has been assumed that the message" -" passed when logging the event is a string. However, this is not the only " -"possibility. You can pass an arbitrary object as a message, and its " -":meth:`~object.__str__` method will be called when the logging system needs " -"to convert it to a string representation. In fact, if you want to, you can " -"avoid computing a string representation altogether - for example, the " -":class:`~handlers.SocketHandler` emits an event by pickling it and sending " -"it over the wire." +"In the preceding sections and examples, it has been assumed that the message " +"passed when logging the event is a string. However, this is not the only " +"possibility. You can pass an arbitrary object as a message, and its :meth:" +"`~object.__str__` method will be called when the logging system needs to " +"convert it to a string representation. In fact, if you want to, you can " +"avoid computing a string representation altogether - for example, the :class:" +"`~handlers.SocketHandler` emits an event by pickling it and sending it over " +"the wire." msgstr "" #: ../../howto/logging.rst:1041 @@ -1357,16 +1473,16 @@ msgid "" "Formatting of message arguments is deferred until it cannot be avoided. " "However, computing the arguments passed to the logging method can also be " "expensive, and you may want to avoid doing it if the logger will just throw " -"away your event. To decide what to do, you can call the " -":meth:`~Logger.isEnabledFor` method which takes a level argument and returns" -" true if the event would be created by the Logger for that level of call. " -"You can write code like this::" +"away your event. To decide what to do, you can call the :meth:`~Logger." +"isEnabledFor` method which takes a level argument and returns true if the " +"event would be created by the Logger for that level of call. You can write " +"code like this::" msgstr "" #: ../../howto/logging.rst:1055 msgid "" -"so that if the logger's threshold is set above ``DEBUG``, the calls to " -":func:`expensive_func1` and :func:`expensive_func2` are never made." +"so that if the logger's threshold is set above ``DEBUG``, the calls to :func:" +"`expensive_func1` and :func:`expensive_func2` are never made." msgstr "" #: ../../howto/logging.rst:1058 @@ -1376,8 +1492,8 @@ msgid "" "only set high up in the logger hierarchy). In such cases (or if you want to " "avoid calling a method in tight loops), you can cache the result of a call " "to :meth:`~Logger.isEnabledFor` in a local or instance variable, and use " -"that instead of calling the method each time. Such a cached value would only" -" need to be recomputed when the logging configuration changes dynamically " +"that instead of calling the method each time. Such a cached value would only " +"need to be recomputed when the logging configuration changes dynamically " "while the application is running (which is not all that common)." msgstr "" @@ -1403,10 +1519,10 @@ msgstr "" #: ../../howto/logging.rst:1075 msgid "" -"Set ``logging._srcfile`` to ``None``. This avoids calling " -":func:`sys._getframe`, which may help to speed up your code in environments " -"like PyPy (which can't speed up code that uses :func:`sys._getframe`), if " -"and when PyPy supports Python 3.x." +"Set ``logging._srcfile`` to ``None``. This avoids calling :func:`sys." +"_getframe`, which may help to speed up your code in environments like PyPy " +"(which can't speed up code that uses :func:`sys._getframe`), if and when " +"PyPy supports Python 3.x." msgstr "" #: ../../howto/logging.rst:1083 @@ -1446,11 +1562,11 @@ msgstr "Módulo :mod:`logging.config`" #: ../../howto/logging.rst:1098 msgid "Configuration API for the logging module." -msgstr "" +msgstr "API de configuração para o módulo logging." #: ../../howto/logging.rst:1101 msgid "Module :mod:`logging.handlers`" -msgstr "" +msgstr "Módulo :mod:`logging.handlers`" #: ../../howto/logging.rst:1101 msgid "Useful handlers included with the logging module." @@ -1458,4 +1574,4 @@ msgstr "" #: ../../howto/logging.rst:1103 msgid ":ref:`A logging cookbook `" -msgstr "" +msgstr ":ref:`A logging cookbook `" diff --git a/howto/pyporting.po b/howto/pyporting.po index 28a224089..9827dcd22 100644 --- a/howto/pyporting.po +++ b/howto/pyporting.po @@ -1,22 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Sheila Gomes , 2019 +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,7 +32,7 @@ msgstr "Portando códigos do Python 2 para o Python 3" #: ../../howto/pyporting.rst:0 msgid "author" -msgstr "" +msgstr "autor" #: ../../howto/pyporting.rst:7 msgid "Brett Cannon" @@ -72,8 +75,8 @@ msgstr "" #: ../../howto/pyporting.rst:29 msgid "" -"To make your project be single-source Python 2/3 compatible, the basic steps" -" are:" +"To make your project be single-source Python 2/3 compatible, the basic steps " +"are:" msgstr "" #: ../../howto/pyporting.rst:32 @@ -104,8 +107,8 @@ msgstr "" #: ../../howto/pyporting.rst:39 msgid "" -"Use caniusepython3_ to find out which of your dependencies are blocking your" -" use of Python 3 (``pip install caniusepython3``)" +"Use caniusepython3_ to find out which of your dependencies are blocking your " +"use of Python 3 (``pip install caniusepython3``)" msgstr "" #: ../../howto/pyporting.rst:41 @@ -138,21 +141,21 @@ msgstr "" #: ../../howto/pyporting.rst:58 msgid "" "Another key point is that modernizing your Python 2 code to also support " -"Python 3 is largely automated for you. While you might have to make some API" -" decisions thanks to Python 3 clarifying text data versus binary data, the " +"Python 3 is largely automated for you. While you might have to make some API " +"decisions thanks to Python 3 clarifying text data versus binary data, the " "lower-level work is now mostly done for you and thus can at least benefit " "from the automated changes immediately." msgstr "" #: ../../howto/pyporting.rst:64 msgid "" -"Keep those key points in mind while you read on about the details of porting" -" your code to support Python 2 & 3 simultaneously." +"Keep those key points in mind while you read on about the details of porting " +"your code to support Python 2 & 3 simultaneously." msgstr "" #: ../../howto/pyporting.rst:69 msgid "Drop support for Python 2.6 and older" -msgstr "" +msgstr "Desativa suporte para Python 2.6 e anteriores" #: ../../howto/pyporting.rst:71 msgid "" @@ -175,12 +178,12 @@ msgstr "" #: ../../howto/pyporting.rst:83 msgid "" "But you should aim for only supporting Python 2.7. Python 2.6 is no longer " -"freely supported and thus is not receiving bugfixes. This means **you** will" -" have to work around any issues you come across with Python 2.6. There are " -"also some tools mentioned in this HOWTO which do not support Python 2.6 " -"(e.g., Pylint_), and this will become more commonplace as time goes on. It " -"will simply be easier for you if you only support the versions of Python " -"that you have to support." +"freely supported and thus is not receiving bugfixes. This means **you** will " +"have to work around any issues you come across with Python 2.6. There are " +"also some tools mentioned in this HOWTO which do not support Python 2.6 (e." +"g., Pylint_), and this will become more commonplace as time goes on. It will " +"simply be easier for you if you only support the versions of Python that you " +"have to support." msgstr "" #: ../../howto/pyporting.rst:92 @@ -193,9 +196,9 @@ msgid "" "In your ``setup.py`` file you should have the proper `trove classifier`_ " "specifying what versions of Python you support. As your project does not " "support Python 3 yet you should at least have ``Programming Language :: " -"Python :: 2 :: Only`` specified. Ideally you should also specify each " -"major/minor version of Python that you do support, e.g. ``Programming " -"Language :: Python :: 2.7``." +"Python :: 2 :: Only`` specified. Ideally you should also specify each major/" +"minor version of Python that you do support, e.g. ``Programming Language :: " +"Python :: 2.7``." msgstr "" #: ../../howto/pyporting.rst:103 @@ -209,20 +212,20 @@ msgid "" "rule of thumb is that if you want to be confident enough in your test suite " "that any failures that appear after having tools rewrite your code are " "actual bugs in the tools and not in your code. If you want a number to aim " -"for, try to get over 80% coverage (and don't feel bad if you find it hard to" -" get better than 90% coverage). If you don't already have a tool to measure " +"for, try to get over 80% coverage (and don't feel bad if you find it hard to " +"get better than 90% coverage). If you don't already have a tool to measure " "test coverage then coverage.py_ is recommended." msgstr "" #: ../../howto/pyporting.rst:118 msgid "" -"Once you have your code well-tested you are ready to begin porting your code" -" to Python 3! But to fully understand how your code is going to change and " +"Once you have your code well-tested you are ready to begin porting your code " +"to Python 3! But to fully understand how your code is going to change and " "what you want to look out for while you code, you will want to learn what " "changes Python 3 makes in terms of Python 2. Typically the two best ways of " -"doing that is reading the `\"What's New\"`_ doc for each release of Python 3" -" and the `Porting to Python 3`_ book (which is free online). There is also a" -" handy `cheat sheet`_ from the Python-Future project." +"doing that is reading the :ref:`\"What's New\" ` doc for " +"each release of Python 3 and the `Porting to Python 3`_ book (which is free " +"online). There is also a handy `cheat sheet`_ from the Python-Future project." msgstr "" #: ../../howto/pyporting.rst:128 @@ -231,13 +234,13 @@ msgstr "" #: ../../howto/pyporting.rst:130 msgid "" -"Once you feel like you know what is different in Python 3 compared to Python" -" 2, it's time to update your code! You have a choice between two tools in " +"Once you feel like you know what is different in Python 3 compared to Python " +"2, it's time to update your code! You have a choice between two tools in " "porting your code automatically: Futurize_ and Modernize_. Which tool you " "choose will depend on how much like Python 3 you want your code to be. " "Futurize_ does its best to make Python 3 idioms and practices exist in " -"Python 2, e.g. backporting the ``bytes`` type from Python 3 so that you have" -" semantic parity between the major versions of Python. Modernize_, on the " +"Python 2, e.g. backporting the ``bytes`` type from Python 3 so that you have " +"semantic parity between the major versions of Python. Modernize_, on the " "other hand, is more conservative and targets a Python 2/3 subset of Python, " "directly relying on six_ to help provide compatibility. As Python 3 is the " "future, it might be best to consider Futurize to begin adjusting to any new " @@ -246,8 +249,8 @@ msgstr "" #: ../../howto/pyporting.rst:142 msgid "" -"Regardless of which tool you choose, they will update your code to run under" -" Python 3 while staying compatible with the version of Python 2 you started " +"Regardless of which tool you choose, they will update your code to run under " +"Python 3 while staying compatible with the version of Python 2 you started " "with. Depending on how conservative you want to be, you may want to run the " "tool over your test suite first and visually inspect the diff to make sure " "the transformation is accurate. After you have transformed your test suite " @@ -263,11 +266,11 @@ msgid "" "manually to get full Python 3 support (which of these steps are necessary " "vary between the tools). Read the documentation for the tool you choose to " "use to see what it fixes by default and what it can do optionally to know " -"what will (not) be fixed for you and what you may have to fix on your own " -"(e.g. using ``io.open()`` over the built-in ``open()`` function is off by " -"default in Modernize). Luckily, though, there are only a couple of things to" -" watch out for which can be considered large issues that may be hard to " -"debug if not watched for." +"what will (not) be fixed for you and what you may have to fix on your own (e." +"g. using ``io.open()`` over the built-in ``open()`` function is off by " +"default in Modernize). Luckily, though, there are only a couple of things to " +"watch out for which can be considered large issues that may be hard to debug " +"if not watched for." msgstr "" #: ../../howto/pyporting.rst:162 @@ -278,11 +281,11 @@ msgstr "Divisão" msgid "" "In Python 3, ``5 / 2 == 2.5`` and not ``2``; all division between ``int`` " "values result in a ``float``. This change has actually been planned since " -"Python 2.2 which was released in 2002. Since then users have been encouraged" -" to add ``from __future__ import division`` to any and all files which use " -"the ``/`` and ``//`` operators or to be running the interpreter with the " -"``-Q`` flag. If you have not been doing this then you will need to go " -"through your code and do two things:" +"Python 2.2 which was released in 2002. Since then users have been encouraged " +"to add ``from __future__ import division`` to any and all files which use " +"the ``/`` and ``//`` operators or to be running the interpreter with the ``-" +"Q`` flag. If you have not been doing this then you will need to go through " +"your code and do two things:" msgstr "" #: ../../howto/pyporting.rst:172 @@ -299,9 +302,8 @@ msgstr "" msgid "" "The reason that ``/`` isn't simply translated to ``//`` automatically is " "that if an object defines a ``__truediv__`` method but not ``__floordiv__`` " -"then your code would begin to fail (e.g. a user-defined class that uses " -"``/`` to signify some operation but not ``//`` for the same thing or at " -"all)." +"then your code would begin to fail (e.g. a user-defined class that uses ``/" +"`` to signify some operation but not ``//`` for the same thing or at all)." msgstr "" #: ../../howto/pyporting.rst:183 @@ -334,11 +336,11 @@ msgstr "" #: ../../howto/pyporting.rst:203 msgid "" -"To start, you will need to decide which APIs take text and which take binary" -" (it is **highly** recommended you don't design APIs that can take both due " +"To start, you will need to decide which APIs take text and which take binary " +"(it is **highly** recommended you don't design APIs that can take both due " "to the difficulty of keeping the code working; as stated earlier it is " -"difficult to do well). In Python 2 this means making sure the APIs that take" -" text can work with ``unicode`` and those that work with binary data work " +"difficult to do well). In Python 2 this means making sure the APIs that take " +"text can work with ``unicode`` and those that work with binary data work " "with the ``bytes`` type from Python 3 (which is a subset of ``str`` in " "Python 2 and acts as an alias for ``bytes`` type in Python 2). Usually the " "biggest issue is realizing which methods exist on which types in Python 2 & " @@ -346,9 +348,9 @@ msgid "" "Python 3, for binary that's ``str``/``bytes`` in Python 2 and ``bytes`` in " "Python 3). The following table lists the **unique** methods of each data " "type across Python 2 & 3 (e.g., the ``decode()`` method is usable on the " -"equivalent binary data type in either Python 2 or 3, but it can't be used by" -" the textual data type consistently between Python 2 and 3 because ``str`` " -"in Python 3 doesn't have the method). Do note that as of Python 3.5 the " +"equivalent binary data type in either Python 2 or 3, but it can't be used by " +"the textual data type consistently between Python 2 and 3 because ``str`` in " +"Python 3 doesn't have the method). Do note that as of Python 3.5 the " "``__mod__`` method was added to the bytes type." msgstr "" @@ -388,19 +390,18 @@ msgstr "" msgid "" "Making the distinction easier to handle can be accomplished by encoding and " "decoding between binary data and text at the edge of your code. This means " -"that when you receive text in binary data, you should immediately decode it." -" And if your code needs to send text as binary data then encode it as late " -"as possible. This allows your code to work with only text internally and " -"thus eliminates having to keep track of what type of data you are working " -"with." +"that when you receive text in binary data, you should immediately decode it. " +"And if your code needs to send text as binary data then encode it as late as " +"possible. This allows your code to work with only text internally and thus " +"eliminates having to keep track of what type of data you are working with." msgstr "" #: ../../howto/pyporting.rst:240 msgid "" "The next issue is making sure you know whether the string literals in your " "code represent text or binary data. You should add a ``b`` prefix to any " -"literal that presents binary data. For text you should add a ``u`` prefix to" -" the text literal. (there is a :mod:`__future__` import to force all " +"literal that presents binary data. For text you should add a ``u`` prefix to " +"the text literal. (there is a :mod:`__future__` import to force all " "unspecified literals to be Unicode, but usage has shown it isn't as " "effective as adding a ``b`` or ``u`` prefix to all literals explicitly)" msgstr "" @@ -410,17 +411,17 @@ msgid "" "As part of this dichotomy you also need to be careful about opening files. " "Unless you have been working on Windows, there is a chance you have not " "always bothered to add the ``b`` mode when opening a binary file (e.g., " -"``rb`` for binary reading). Under Python 3, binary files and text files are" -" clearly distinct and mutually incompatible; see the :mod:`io` module for " +"``rb`` for binary reading). Under Python 3, binary files and text files are " +"clearly distinct and mutually incompatible; see the :mod:`io` module for " "details. Therefore, you **must** make a decision of whether a file will be " "used for binary access (allowing binary data to be read and/or written) or " "textual access (allowing text data to be read and/or written). You should " -"also use :func:`io.open` for opening files instead of the built-in " -":func:`open` function as the :mod:`io` module is consistent from Python 2 to" -" 3 while the built-in :func:`open` function is not (in Python 3 it's " -"actually :func:`io.open`). Do not bother with the outdated practice of using" -" :func:`codecs.open` as that's only necessary for keeping compatibility with" -" Python 2.5." +"also use :func:`io.open` for opening files instead of the built-in :func:" +"`open` function as the :mod:`io` module is consistent from Python 2 to 3 " +"while the built-in :func:`open` function is not (in Python 3 it's actually :" +"func:`io.open`). Do not bother with the outdated practice of using :func:" +"`codecs.open` as that's only necessary for keeping compatibility with Python " +"2.5." msgstr "" #: ../../howto/pyporting.rst:261 @@ -431,21 +432,21 @@ msgid "" "== '3'``. But in Python 3, an integer argument to ``bytes`` will give you a " "bytes object as long as the integer specified, filled with null bytes: " "``bytes(3) == b'\\x00\\x00\\x00'``. A similar worry is necessary when " -"passing a bytes object to ``str``. In Python 2 you just get the bytes object" -" back: ``str(b'3') == b'3'``. But in Python 3 you get the string " +"passing a bytes object to ``str``. In Python 2 you just get the bytes object " +"back: ``str(b'3') == b'3'``. But in Python 3 you get the string " "representation of the bytes object: ``str(b'3') == \"b'3'\"``." msgstr "" #: ../../howto/pyporting.rst:271 msgid "" -"Finally, the indexing of binary data requires careful handling (slicing does" -" **not** require any special handling). In Python 2, ``b'123'[1] == b'2'`` " +"Finally, the indexing of binary data requires careful handling (slicing does " +"**not** require any special handling). In Python 2, ``b'123'[1] == b'2'`` " "while in Python 3 ``b'123'[1] == 50``. Because binary data is simply a " "collection of binary numbers, Python 3 returns the integer value for the " "byte you index on. But in Python 2 because ``bytes == str``, indexing " "returns a one-item slice of bytes. The six_ project has a function named " -"``six.indexbytes()`` which will return an integer like in Python 3: " -"``six.indexbytes(b'123', 1)``." +"``six.indexbytes()`` which will return an integer like in Python 3: ``six." +"indexbytes(b'123', 1)``." msgstr "" #: ../../howto/pyporting.rst:280 @@ -494,24 +495,24 @@ msgid "" "Inevitably you will have code that has to choose what to do based on what " "version of Python is running. The best way to do this is with feature " "detection of whether the version of Python you're running under supports " -"what you need. If for some reason that doesn't work then you should make the" -" version check be against Python 2 and not Python 3. To help explain this, " +"what you need. If for some reason that doesn't work then you should make the " +"version check be against Python 2 and not Python 3. To help explain this, " "let's look at an example." msgstr "" #: ../../howto/pyporting.rst:305 msgid "" -"Let's pretend that you need access to a feature of importlib_ that is " +"Let's pretend that you need access to a feature of :mod:`importlib` that is " "available in Python's standard library since Python 3.3 and available for " "Python 2 through importlib2_ on PyPI. You might be tempted to write code to " -"access e.g. the ``importlib.abc`` module by doing the following::" +"access e.g. the :mod:`importlib.abc` module by doing the following::" msgstr "" #: ../../howto/pyporting.rst:317 msgid "" -"The problem with this code is what happens when Python 4 comes out? It would" -" be better to treat Python 2 as the exceptional case instead of Python 3 and" -" assume that future Python versions will be more compatible with Python 3 " +"The problem with this code is what happens when Python 4 comes out? It would " +"be better to treat Python 2 as the exceptional case instead of Python 3 and " +"assume that future Python versions will be more compatible with Python 3 " "than Python 2::" msgstr "" @@ -528,10 +529,10 @@ msgstr "" #: ../../howto/pyporting.rst:342 msgid "" -"Once you have fully translated your code to be compatible with Python 3, you" -" will want to make sure your code doesn't regress and stop working under " -"Python 3. This is especially true if you have a dependency which is blocking" -" you from actually running under Python 3 at the moment." +"Once you have fully translated your code to be compatible with Python 3, you " +"will want to make sure your code doesn't regress and stop working under " +"Python 3. This is especially true if you have a dependency which is blocking " +"you from actually running under Python 3 at the moment." msgstr "" #: ../../howto/pyporting.rst:347 @@ -568,8 +569,8 @@ msgid "" "to care about whether your dependencies have also been ported. The " "caniusepython3_ project was created to help you determine which projects -- " "directly or indirectly -- are blocking you from supporting Python 3. There " -"is both a command-line tool as well as a web interface at " -"https://caniusepython3.com." +"is both a command-line tool as well as a web interface at https://" +"caniusepython3.com." msgstr "" #: ../../howto/pyporting.rst:377 @@ -635,11 +636,11 @@ msgstr "" msgid "" "Another way to help port your code is to use a static type checker like " "mypy_ or pytype_ on your code. These tools can be used to analyze your code " -"as if it's being run under Python 2, then you can run the tool a second time" -" as if your code is running under Python 3. By running a static type checker" -" twice like this you can discover if you're e.g. misusing binary data type " -"in one version of Python compared to another. If you add optional type hints" -" to your code you can also explicitly state whether your APIs use textual or" -" binary data, helping to make sure everything functions as expected in both " +"as if it's being run under Python 2, then you can run the tool a second time " +"as if your code is running under Python 3. By running a static type checker " +"twice like this you can discover if you're e.g. misusing binary data type in " +"one version of Python compared to another. If you add optional type hints to " +"your code you can also explicitly state whether your APIs use textual or " +"binary data, helping to make sure everything functions as expected in both " "versions of Python." msgstr "" diff --git a/howto/regex.po b/howto/regex.po index f5b727b43..4e0586b8c 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Welington Carlos , 2019 # Ruan Aragão , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-02-20 10:40+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Leticia Portella , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -48,8 +50,8 @@ msgid "" "the corresponding section in the Library Reference." msgstr "" "Este documento é um tutorial introdutório sobre expressões regulares em " -"Python com o módulo :mod:`re`. Ele provê uma introdução mais tranquila que" -" a seção correspondente à documentação do módulo. " +"Python com o módulo :mod:`re`. Ele provê uma introdução mais tranquila que " +"a seção correspondente à documentação do módulo. " #: ../../howto/regex.rst:24 msgid "Introduction" @@ -69,12 +71,17 @@ msgid "" msgstr "" "As expressões regulares (chamadas de REs, regexes, ou padrões de regex)\n" "são, essencialmente, uma pequena linguagem de programação, altamente\n" -"especializada, embutida dentro do Python e disponibilizadas através do módulo\n" -"re. Utilizando esta pequena linguagem, você especifica as regras para o conjunto de\n" +"especializada, embutida dentro do Python e disponibilizadas através do " +"módulo\n" +"re. Utilizando esta pequena linguagem, você especifica as regras para o " +"conjunto de\n" "possíveis strings com as quais você deseja corresponder, este conjunto pode\n" -"conter frases em inglês, endereços de e-mail, comandos TeX ou qualquer coisa que você\n" -"queira. Você pode então fazer perguntas como \"Será que esta string corresponde\n" -"ao padrão?\" ou \"Existe uma correspondência para o padrão em qualquer lugar nesta\n" +"conter frases em inglês, endereços de e-mail, comandos TeX ou qualquer coisa " +"que você\n" +"queira. Você pode então fazer perguntas como \"Será que esta string " +"corresponde\n" +"ao padrão?\" ou \"Existe uma correspondência para o padrão em qualquer lugar " +"nesta\n" "string?\". Você também pode usar REs para modificar uma string ou dividi-la\n" "de várias maneiras." @@ -88,29 +95,39 @@ msgid "" "requires that you have a good understanding of the matching engine's " "internals." msgstr "" -"Padrões de expressões regulares são compilados em uma série de bytecodes que são\n" -"então executados por um mecanismo de correspondência escrito em C. Para uso avançado,\n" -"pode ser necessário prestar muita atenção à forma como o mecanismo irá executar\n" -"uma RE informada, e escrever a RE de uma certa maneira, a fim de produzir um bytecode que seja\n" -"executado de forma mais rápida. A otimização não é abordada neste documento, porque ela requer que\n" +"Padrões de expressões regulares são compilados em uma série de bytecodes que " +"são\n" +"então executados por um mecanismo de correspondência escrito em C. Para uso " +"avançado,\n" +"pode ser necessário prestar muita atenção à forma como o mecanismo irá " +"executar\n" +"uma RE informada, e escrever a RE de uma certa maneira, a fim de produzir um " +"bytecode que seja\n" +"executado de forma mais rápida. A otimização não é abordada neste documento, " +"porque ela requer que\n" "você tenha um bom entendimento interno do mecanismo de correspondência." #: ../../howto/regex.rst:42 msgid "" "The regular expression language is relatively small and restricted, so not " -"all possible string processing tasks can be done using regular expressions." -" There are also tasks that *can* be done with regular expressions, but the " +"all possible string processing tasks can be done using regular expressions. " +"There are also tasks that *can* be done with regular expressions, but the " "expressions turn out to be very complicated. In these cases, you may be " "better off writing Python code to do the processing; while Python code will " "be slower than an elaborate regular expression, it will also probably be " "more understandable." msgstr "" -"A linguagem de expressão regular é relativamente pequena e restrita, por isso nem\n" -"todas as tarefas de processamento de strings possíveis podem ser feitas usando\n" -"expressões regulares. Existem também tarefas que podem ser feitas com expressões\n" -"regulares, mas as expressões acabam por ser tornar muito complicadas. Nestes casos, pode\n" +"A linguagem de expressão regular é relativamente pequena e restrita, por " +"isso nem\n" +"todas as tarefas de processamento de strings possíveis podem ser feitas " +"usando\n" +"expressões regulares. Existem também tarefas que podem ser feitas com " +"expressões\n" +"regulares, mas as expressões acabam por ser tornar muito complicadas. Nestes " +"casos, pode\n" "ser melhor para você escrever um código Python para fazer o processamento;\n" -"embora um código Python seja mais lento do que uma expressão regular elaborada,\n" +"embora um código Python seja mais lento do que uma expressão regular " +"elaborada,\n" "ele provavelmente será mais compreensível." #: ../../howto/regex.rst:51 @@ -123,8 +140,10 @@ msgid "" "Since regular expressions are used to operate on strings, we'll begin with " "the most common task: matching characters." msgstr "" -"Vamos começar por aprender sobre as expressões regulares mais simples possíveis.\n" -"Como as expressões regulares são usadas para operar em strings, vamos começar\n" +"Vamos começar por aprender sobre as expressões regulares mais simples " +"possíveis.\n" +"Como as expressões regulares são usadas para operar em strings, vamos " +"começar\n" "com a tarefa mais comum: de correspondência caracteres." #: ../../howto/regex.rst:57 @@ -133,8 +152,10 @@ msgid "" "expressions (deterministic and non-deterministic finite automata), you can " "refer to almost any textbook on writing compilers." msgstr "" -"Para uma explicação detalhada da ciência da computação referente a expressões\n" -"regulares (autômatos finitos determinísticos e não-determinístico), você pode consultar\n" +"Para uma explicação detalhada da ciência da computação referente a " +"expressões\n" +"regulares (autômatos finitos determinísticos e não-determinístico), você " +"pode consultar\n" "a praticamente qualquer livro sobre a escrita de compiladores." #: ../../howto/regex.rst:63 @@ -148,23 +169,30 @@ msgid "" "can enable a case-insensitive mode that would let this RE match ``Test`` or " "``TEST`` as well; more about this later.)" msgstr "" -"A maioria das letras e caracteres simplesmente irão corresponder entre si. Por exemplo, a expressão regular ``teste``\n" -"irá combinar com a string ``teste`` totalmente. (Você pode habilitar o modo de maiúsculas e minúsculas que faria com que\n" -"a RE corresponder com ``Test`` ou ``TEST`` também; veremos mais sobre isso mais adiante.)" +"A maioria das letras e caracteres simplesmente irão corresponder entre si. " +"Por exemplo, a expressão regular ``teste``\n" +"irá combinar com a string ``teste`` totalmente. (Você pode habilitar o modo " +"de maiúsculas e minúsculas que faria com que\n" +"a RE corresponder com ``Test`` ou ``TEST`` também; veremos mais sobre isso " +"mais adiante.)" #: ../../howto/regex.rst:70 msgid "" -"There are exceptions to this rule; some characters are special " -":dfn:`metacharacters`, and don't match themselves. Instead, they signal " -"that some out-of-the-ordinary thing should be matched, or they affect other " +"There are exceptions to this rule; some characters are special :dfn:" +"`metacharacters`, and don't match themselves. Instead, they signal that " +"some out-of-the-ordinary thing should be matched, or they affect other " "portions of the RE by repeating them or changing their meaning. Much of " "this document is devoted to discussing various metacharacters and what they " "do." msgstr "" -"Há exceções a essa regra, alguns caracteres são metacaracteres especiais, e não se\n" -"correspondem. Em vez disso, eles sinalizam que alguma coisa fora do normal deve\n" -"ser correspondida, ou eles afetam outras partes da RE, repetindo-as ou alterando seus\n" -"significados. Grande parte deste documento é dedicada à discussão de vários metacaracteres\n" +"Há exceções a essa regra, alguns caracteres são metacaracteres especiais, e " +"não se\n" +"correspondem. Em vez disso, eles sinalizam que alguma coisa fora do normal " +"deve\n" +"ser correspondida, ou eles afetam outras partes da RE, repetindo-as ou " +"alterando seus\n" +"significados. Grande parte deste documento é dedicada à discussão de vários " +"metacaracteres\n" "e o que eles fazem." #: ../../howto/regex.rst:76 @@ -177,22 +205,29 @@ msgstr "" #: ../../howto/regex.rst:83 msgid "" -"The first metacharacters we'll look at are ``[`` and ``]``. They're used for" -" specifying a character class, which is a set of characters that you wish to" -" match. Characters can be listed individually, or a range of characters can" -" be indicated by giving two characters and separating them by a ``'-'``. " -"For example, ``[abc]`` will match any of the characters ``a``, ``b``, or " -"``c``; this is the same as ``[a-c]``, which uses a range to express the same" -" set of characters. If you wanted to match only lowercase letters, your RE " -"would be ``[a-z]``." -msgstr "" -"O primeiro metacaractere que vamos olhar são os colchetes, ``[`` e ``]``. Eles são usados para\n" -"especificar uma classe de caracteres, que é um conjunto de caracteres que você\n" -"deseja corresponder. Os caracteres podem ser listados individualmente, ou um\n" -"intervalo de caracteres pode ser indicado informando dois caracteres e separando-os por\n" -"um ``-``. Por exemplo, ``[abc]`` irá corresponder a qualquer dos caracteres ``a``, ``b``, ``c`` ou, o que\n" -"é o mesmo que ``[a-c]``, que usa um intervalo de expressar o mesmo conjunto de\n" -"caracteres. Se você quiser corresponder apenas letras minúsculas, a RE seria ``[a-z]``." +"The first metacharacters we'll look at are ``[`` and ``]``. They're used for " +"specifying a character class, which is a set of characters that you wish to " +"match. Characters can be listed individually, or a range of characters can " +"be indicated by giving two characters and separating them by a ``'-'``. For " +"example, ``[abc]`` will match any of the characters ``a``, ``b``, or ``c``; " +"this is the same as ``[a-c]``, which uses a range to express the same set of " +"characters. If you wanted to match only lowercase letters, your RE would be " +"``[a-z]``." +msgstr "" +"O primeiro metacaractere que vamos olhar são os colchetes, ``[`` e ``]``. " +"Eles são usados para\n" +"especificar uma classe de caracteres, que é um conjunto de caracteres que " +"você\n" +"deseja corresponder. Os caracteres podem ser listados individualmente, ou " +"um\n" +"intervalo de caracteres pode ser indicado informando dois caracteres e " +"separando-os por\n" +"um ``-``. Por exemplo, ``[abc]`` irá corresponder a qualquer dos caracteres " +"``a``, ``b``, ``c`` ou, o que\n" +"é o mesmo que ``[a-c]``, que usa um intervalo de expressar o mesmo conjunto " +"de\n" +"caracteres. Se você quiser corresponder apenas letras minúsculas, a RE seria " +"``[a-z]``." #: ../../howto/regex.rst:92 msgid "" @@ -201,19 +236,22 @@ msgid "" "is usually a metacharacter, but inside a character class it's stripped of " "its special nature." msgstr "" -"Metacaracteres não são ativos dentro classes ``[ ]``. Por exemplo, ``[akm$]`` irá\n" -"corresponder a qualquer um dos caracteres ``a``, ``k``, ``m``, ou ``$``; ``$`` é geralmente um\n" -"metacaractere, mas dentro de uma classe de caracteres ele é despojado de sua natureza\n" +"Metacaracteres não são ativos dentro classes ``[ ]``. Por exemplo, ``[akm" +"$]`` irá\n" +"corresponder a qualquer um dos caracteres ``a``, ``k``, ``m``, ou ``$``; ``" +"$`` é geralmente um\n" +"metacaractere, mas dentro de uma classe de caracteres ele é despojado de sua " +"natureza\n" "especial." #: ../../howto/regex.rst:97 msgid "" -"You can match the characters not listed within the class by " -":dfn:`complementing` the set. This is indicated by including a ``'^'`` as " -"the first character of the class. For example, ``[^5]`` will match any " -"character except ``'5'``. If the caret appears elsewhere in a character " -"class, it does not have special meaning. For example: ``[5^]`` will match " -"either a ``'5'`` or a ``'^'``." +"You can match the characters not listed within the class by :dfn:" +"`complementing` the set. This is indicated by including a ``'^'`` as the " +"first character of the class. For example, ``[^5]`` will match any character " +"except ``'5'``. If the caret appears elsewhere in a character class, it " +"does not have special meaning. For example: ``[5^]`` will match either a " +"``'5'`` or a ``'^'``." msgstr "" #: ../../howto/regex.rst:103 @@ -225,18 +263,22 @@ msgid "" "need to match a ``[`` or ``\\``, you can precede them with a backslash to " "remove their special meaning: ``\\[`` or ``\\\\``." msgstr "" -"Talvez o metacaractere mais importante é a barra invertida, ``\\``. Como as strings literais em\n" -"Python, a barra invertida pode ser seguida por vários caracteres para sinalizar várias\n" -"sequências especiais. Ela também é usada para ``escapar`` todos os metacaracteres,\n" +"Talvez o metacaractere mais importante é a barra invertida, ``\\``. Como as " +"strings literais em\n" +"Python, a barra invertida pode ser seguida por vários caracteres para " +"sinalizar várias\n" +"sequências especiais. Ela também é usada para ``escapar`` todos os " +"metacaracteres,\n" "e assim, você poder combiná-los em padrões; por exemplo, se você precisa\n" -"fazer correspondência a um ``[`` ou ``\\``, você pode precedê-los com uma barra invertida para\n" +"fazer correspondência a um ``[`` ou ``\\``, você pode precedê-los com uma " +"barra invertida para\n" "remover seu significado especial: ``\\[`` ou ``\\\\``." #: ../../howto/regex.rst:110 msgid "" "Some of the special sequences beginning with ``'\\'`` represent predefined " -"sets of characters that are often useful, such as the set of digits, the set" -" of letters, or the set of anything that isn't whitespace." +"sets of characters that are often useful, such as the set of digits, the set " +"of letters, or the set of anything that isn't whitespace." msgstr "" "Algumas das sequências especiais que começam com ``'\\'`` representam " "conjuntos de caracteres predefinidos que são frequentemente úteis, como o " @@ -246,33 +288,33 @@ msgstr "" #: ../../howto/regex.rst:115 msgid "" "Let's take an example: ``\\w`` matches any alphanumeric character. If the " -"regex pattern is expressed in bytes, this is equivalent to the class " -"``[a-zA-Z0-9_]``. If the regex pattern is a string, ``\\w`` will match all " -"the characters marked as letters in the Unicode database provided by the " -":mod:`unicodedata` module. You can use the more restricted definition of " -"``\\w`` in a string pattern by supplying the :const:`re.ASCII` flag when " -"compiling the regular expression." +"regex pattern is expressed in bytes, this is equivalent to the class ``[a-zA-" +"Z0-9_]``. If the regex pattern is a string, ``\\w`` will match all the " +"characters marked as letters in the Unicode database provided by the :mod:" +"`unicodedata` module. You can use the more restricted definition of ``\\w`` " +"in a string pattern by supplying the :const:`re.ASCII` flag when compiling " +"the regular expression." msgstr "" "Vejamos um exemplo: ``\\w`` corresponde a qualquer caractere alfanumérico. " -"Se o padrão regex for expresso em bytes, isso é equivalente à classe " -"``[a-zA-Z0-9_] ``. Se o padrão regex for uma string, ``\\w`` combinará todos" -" os caracteres marcados como letras no banco de dados Unicode fornecido pelo" -" módulo :mod:`unicodedata`. Você pode usar a definição mais restrita de " -"``\\w`` em um padrão de sequência, fornecendo o sinalizador " -":const:`re.ASCII` ao compilar a expressão regular." +"Se o padrão regex for expresso em bytes, isso é equivalente à classe ``[a-zA-" +"Z0-9_] ``. Se o padrão regex for uma string, ``\\w`` combinará todos os " +"caracteres marcados como letras no banco de dados Unicode fornecido pelo " +"módulo :mod:`unicodedata`. Você pode usar a definição mais restrita de ``" +"\\w`` em um padrão de sequência, fornecendo o sinalizador :const:`re.ASCII` " +"ao compilar a expressão regular." #: ../../howto/regex.rst:123 msgid "" "The following list of special sequences isn't complete. For a complete list " -"of sequences and expanded class definitions for Unicode string patterns, see" -" the last part of :ref:`Regular Expression Syntax ` in the " +"of sequences and expanded class definitions for Unicode string patterns, see " +"the last part of :ref:`Regular Expression Syntax ` in the " "Standard Library reference. In general, the Unicode versions match any " "character that's in the appropriate category in the Unicode database." msgstr "" "A lista a seguir de sequências especiais não está completa. Para obter uma " -"lista completa das sequências e definições de classe expandidas para padrões" -" de Strings Unicode, veja a última parte de :ref:`Regular Expression Syntax" -" 1` na referência da Biblioteca Padrão. Em geral, as versões Unicode " +"lista completa das sequências e definições de classe expandidas para padrões " +"de Strings Unicode, veja a última parte de :ref:`Regular Expression Syntax " +"1` na referência da Biblioteca Padrão. Em geral, as versões Unicode " "correspondem a qualquer caractere que esteja na categoria apropriada do " "banco de dados Unicode." @@ -303,11 +345,11 @@ msgstr "``\\s``" #: ../../howto/regex.rst:137 msgid "" -"Matches any whitespace character; this is equivalent to the class ``[ " -"\\t\\n\\r\\f\\v]``." +"Matches any whitespace character; this is equivalent to the class ``[ \\t\\n" +"\\r\\f\\v]``." msgstr "" -"corresponde a qualquer caractere ``espaço-em-branco``, o que é equivalente à" -" classe ``[\\t\\n\\r\\f\\v]``." +"corresponde a qualquer caractere ``espaço-em-branco``, o que é equivalente à " +"classe ``[\\t\\n\\r\\f\\v]``." #: ../../howto/regex.rst:142 msgid "``\\S``" @@ -327,8 +369,8 @@ msgstr "``\\w``" #: ../../howto/regex.rst:145 msgid "" -"Matches any alphanumeric character; this is equivalent to the class " -"``[a-zA-Z0-9_]``." +"Matches any alphanumeric character; this is equivalent to the class ``[a-zA-" +"Z0-9_]``." msgstr "" "corresponde a qualquer caractere ``alfanumérico``, o que é equivalente à " "classe ``[azA-Z0-9_]``." @@ -342,8 +384,8 @@ msgid "" "Matches any non-alphanumeric character; this is equivalent to the class " "``[^a-zA-Z0-9_]``." msgstr "" -"corresponde a qualquer caractere ``não-alfanumérico``, o que é equivalente à" -" classe ``[^a-zA-Z0-9_]``." +"corresponde a qualquer caractere ``não-alfanumérico``, o que é equivalente à " +"classe ``[^a-zA-Z0-9_]``." #: ../../howto/regex.rst:152 msgid "" @@ -351,15 +393,17 @@ msgid "" "``[\\s,.]`` is a character class that will match any whitespace character, " "or ``','`` or ``'.'``." msgstr "" -"Estas sequências podem ser incluídas dentro de uma classe caractere. Por exemplo,\n" -"``[\\s,.]`` É uma classe caractere que irá corresponder a qualquer caractere ``espaço-em-branco``, ou ``,`` ou ``.``." +"Estas sequências podem ser incluídas dentro de uma classe caractere. Por " +"exemplo,\n" +"``[\\s,.]`` É uma classe caractere que irá corresponder a qualquer caractere " +"``espaço-em-branco``, ou ``,`` ou ``.``." #: ../../howto/regex.rst:156 msgid "" "The final metacharacter in this section is ``.``. It matches anything " -"except a newline character, and there's an alternate mode " -"(:const:`re.DOTALL`) where it will match even a newline. ``.`` is often " -"used where you want to match \"any character\"." +"except a newline character, and there's an alternate mode (:const:`re." +"DOTALL`) where it will match even a newline. ``.`` is often used where you " +"want to match \"any character\"." msgstr "" #: ../../howto/regex.rst:163 @@ -369,15 +413,19 @@ msgstr "Repetindo Coisas" #: ../../howto/regex.rst:165 msgid "" "Being able to match varying sets of characters is the first thing regular " -"expressions can do that isn't already possible with the methods available on" -" strings. However, if that was the only additional capability of regexes, " +"expressions can do that isn't already possible with the methods available on " +"strings. However, if that was the only additional capability of regexes, " "they wouldn't be much of an advance. Another capability is that you can " "specify that portions of the RE must be repeated a certain number of times." msgstr "" -"Ser capaz de corresponder com variados conjuntos de caracteres é a primeira coisa que as\n" -"expressões regulares podem fazer que ainda não é possível com os métodos disponíveis\n" -"para strings. No entanto, se essa fosse a única capacidade adicional das expressões\n" -"regulares, elas não seriam um avanço relevante. Outro recurso que você pode especificar é que\n" +"Ser capaz de corresponder com variados conjuntos de caracteres é a primeira " +"coisa que as\n" +"expressões regulares podem fazer que ainda não é possível com os métodos " +"disponíveis\n" +"para strings. No entanto, se essa fosse a única capacidade adicional das " +"expressões\n" +"regulares, elas não seriam um avanço relevante. Outro recurso que você pode " +"especificar é que\n" "partes do RE devem ser repetidas um certo número de vezes." #: ../../howto/regex.rst:171 @@ -401,8 +449,10 @@ msgid "" "portions of the pattern don't match, the matching engine will then back up " "and try again with fewer repetitions." msgstr "" -"Repetições, tais como ``*`` são gananciosas; ao repetir a RE, o motor de correspondência\n" -"vai tentar repeti-la tantas vezes quanto possível. Se porções posteriores do padrão\n" +"Repetições, tais como ``*`` são gananciosas; ao repetir a RE, o motor de " +"correspondência\n" +"vai tentar repeti-la tantas vezes quanto possível. Se porções posteriores do " +"padrão\n" "não corresponderem, o motor de correspondência, em seguida, volta e tenta\n" "novamente com algumas repetições." @@ -488,11 +538,11 @@ msgstr "5" #: ../../howto/regex.rst:205 msgid "" -"Try ``b`` again, but the current position is at the last character, which is" -" a ``'d'``." +"Try ``b`` again, but the current position is at the last character, which is " +"a ``'d'``." msgstr "" -"Tenta ``b`` novamente, mas a posição corrente é a do último caractere, que é" -" um ``d``." +"Tenta ``b`` novamente, mas a posição corrente é a do último caractere, que é " +"um ``d``." #: ../../howto/regex.rst:209 ../../howto/regex.rst:213 msgid "6" @@ -518,11 +568,11 @@ msgstr "" #: ../../howto/regex.rst:219 msgid "" -"The end of the RE has now been reached, and it has matched ``'abcb'``. This" -" demonstrates how the matching engine goes as far as it can at first, and if" -" no match is found it will then progressively back up and retry the rest of " -"the RE again and again. It will back up until it has tried zero matches for" -" ``[bcd]*``, and if that subsequently fails, the engine will conclude that " +"The end of the RE has now been reached, and it has matched ``'abcb'``. This " +"demonstrates how the matching engine goes as far as it can at first, and if " +"no match is found it will then progressively back up and retry the rest of " +"the RE again and again. It will back up until it has tried zero matches for " +"``[bcd]*``, and if that subsequently fails, the engine will conclude that " "the string doesn't match the RE at all." msgstr "" @@ -538,8 +588,8 @@ msgstr "" #: ../../howto/regex.rst:233 msgid "" -"There are two more repeating qualifiers. The question mark character, " -"``?``, matches either once or zero times; you can think of it as marking " +"There are two more repeating qualifiers. The question mark character, ``?" +"``, matches either once or zero times; you can think of it as marking " "something as being optional. For example, ``home-?brew`` matches either " "``'homebrew'`` or ``'home-brew'``." msgstr "" @@ -548,9 +598,9 @@ msgstr "" msgid "" "The most complicated repeated qualifier is ``{m,n}``, where *m* and *n* are " "decimal integers. This qualifier means there must be at least *m* " -"repetitions, and at most *n*. For example, ``a/{1,3}b`` will match " -"``'a/b'``, ``'a//b'``, and ``'a///b'``. It won't match ``'ab'``, which has " -"no slashes, or ``'a////b'``, which has four." +"repetitions, and at most *n*. For example, ``a/{1,3}b`` will match ``'a/" +"b'``, ``'a//b'``, and ``'a///b'``. It won't match ``'ab'``, which has no " +"slashes, or ``'a////b'``, which has four." msgstr "" #: ../../howto/regex.rst:244 @@ -569,8 +619,10 @@ msgid "" "shorter and easier to read." msgstr "" "Os leitores de uma inclinação reducionista podem notar que os três outros\n" -"qualificadores podem todos serem expressos utilizando esta notação. ``{0,}`` é o mesmo que ``*``,\n" -"``{1,}`` é equivalente a ``+``, e ``{0,1}`` é o mesmo que ``?``. É melhor usar ``*``, ``+`` ou ``?`` quando\n" +"qualificadores podem todos serem expressos utilizando esta notação. ``{0,}`` " +"é o mesmo que ``*``,\n" +"``{1,}`` é equivalente a ``+``, e ``{0,1}`` é o mesmo que ``?``. É melhor " +"usar ``*``, ``+`` ou ``?`` quando\n" "puder, simplesmente porque eles são mais curtos e fáceis de ler." #: ../../howto/regex.rst:256 @@ -579,13 +631,14 @@ msgstr "Usando expressões regulares" #: ../../howto/regex.rst:258 msgid "" -"Now that we've looked at some simple regular expressions, how do we actually" -" use them in Python? The :mod:`re` module provides an interface to the " -"regular expression engine, allowing you to compile REs into objects and then" -" perform matches with them." +"Now that we've looked at some simple regular expressions, how do we actually " +"use them in Python? The :mod:`re` module provides an interface to the " +"regular expression engine, allowing you to compile REs into objects and then " +"perform matches with them." msgstr "" "Agora que nós vimos algumas expressões regulares simples, como nós\n" -"realmente as usamos em Python? O módulo re fornece uma interface para o mecanismo\n" +"realmente as usamos em Python? O módulo re fornece uma interface para o " +"mecanismo\n" "de expressão regular, permitindo compilar REs em objetos e, em seguida,\n" "executar comparações com eles." @@ -599,43 +652,54 @@ msgid "" "for various operations such as searching for pattern matches or performing " "string substitutions. ::" msgstr "" -"As expressões regulares são compiladas em objetos padrão, que têm métodos para\n" -"várias operações, tais como a procura por padrões de correspondência ou realizar substituições de\n" +"As expressões regulares são compiladas em objetos padrão, que têm métodos " +"para\n" +"várias operações, tais como a procura por padrões de correspondência ou " +"realizar substituições de\n" "strings." #: ../../howto/regex.rst:276 msgid "" -":func:`re.compile` also accepts an optional *flags* argument, used to enable" -" various special features and syntax variations. We'll go over the " -"available settings later, but for now a single example will do::" +":func:`re.compile` also accepts an optional *flags* argument, used to enable " +"various special features and syntax variations. We'll go over the available " +"settings later, but for now a single example will do::" msgstr "" -":func:`re.compile()` também aceita flags opcionais como argumentos, utilizados para\n" -"habilitar vários recursos especiais e variações de sintaxe. Nós vamos ver todas as\n" -"configurações disponíveis mais tarde, mas por agora, um único exemplo vai servir:" +":func:`re.compile()` também aceita flags opcionais como argumentos, " +"utilizados para\n" +"habilitar vários recursos especiais e variações de sintaxe. Nós vamos ver " +"todas as\n" +"configurações disponíveis mais tarde, mas por agora, um único exemplo vai " +"servir:" #: ../../howto/regex.rst:282 msgid "" "The RE is passed to :func:`re.compile` as a string. REs are handled as " -"strings because regular expressions aren't part of the core Python language," -" and no special syntax was created for expressing them. (There are " +"strings because regular expressions aren't part of the core Python language, " +"and no special syntax was created for expressing them. (There are " "applications that don't need REs at all, so there's no need to bloat the " "language specification by including them.) Instead, the :mod:`re` module is " -"simply a C extension module included with Python, just like the " -":mod:`socket` or :mod:`zlib` modules." +"simply a C extension module included with Python, just like the :mod:" +"`socket` or :mod:`zlib` modules." msgstr "" "A RE é passada para ``re.compile()`` como uma string. REs são tratadas como\n" -"strings porque as expressões regulares não são parte do núcleo da linguagem Python,\n" -"e nenhuma sintaxe especial foi criada para expressá-las. (Existem aplicações que não\n" -"necessitam de REs nenhuma, por isso não há necessidade de inchar a especificação\n" -"da linguagem, incluindo-as.) Em vez disso, o módulo ``re`` é simplesmente um módulo\n" -"de extensão C incluído no Python, assim como os módulos de ``socket`` ou ``zlib``." +"strings porque as expressões regulares não são parte do núcleo da linguagem " +"Python,\n" +"e nenhuma sintaxe especial foi criada para expressá-las. (Existem aplicações " +"que não\n" +"necessitam de REs nenhuma, por isso não há necessidade de inchar a " +"especificação\n" +"da linguagem, incluindo-as.) Em vez disso, o módulo ``re`` é simplesmente um " +"módulo\n" +"de extensão C incluído no Python, assim como os módulos de ``socket`` ou " +"``zlib``." #: ../../howto/regex.rst:289 msgid "" "Putting REs in strings keeps the Python language simpler, but has one " "disadvantage which is the topic of the next section." msgstr "" -"Colocando REs em strings mantém a linguagem Python mais simples, mas tem uma\n" +"Colocando REs em strings mantém a linguagem Python mais simples, mas tem " +"uma\n" "desvantagem, que é o tema da próxima seção." #: ../../howto/regex.rst:296 @@ -650,8 +714,10 @@ msgid "" "usage of the same character for the same purpose in string literals." msgstr "" "Como afirmado anteriormente, expressões regulares usam o caractere de barra\n" -"invertida ``\\`` para indicar formas especiais ou para permitir que caracteres especiais\n" -"sejam usados sem invocar o seu significado especial. Isso entra em conflito com o uso\n" +"invertida ``\\`` para indicar formas especiais ou para permitir que " +"caracteres especiais\n" +"sejam usados sem invocar o seu significado especial. Isso entra em conflito " +"com o uso\n" "pelo Python do mesmo caractere para o mesmo propósito nas strings literais." #: ../../howto/regex.rst:303 @@ -661,17 +727,23 @@ msgid "" "program code, start with the desired string to be matched. Next, you must " "escape any backslashes and other metacharacters by preceding them with a " "backslash, resulting in the string ``\\\\section``. The resulting string " -"that must be passed to :func:`re.compile` must be ``\\\\section``. However," -" to express this as a Python string literal, both backslashes must be " -"escaped *again*." -msgstr "" -"Vamos dizer que você quer escrever uma RE que corresponde com a string ``\\section``, que\n" -"pode ser encontrada em um arquivo LaTeX. Para descobrir o que escrever no código\n" -"do programa, comece com a string que se deseja corresponder. Em seguida, você\n" +"that must be passed to :func:`re.compile` must be ``\\\\section``. However, " +"to express this as a Python string literal, both backslashes must be escaped " +"*again*." +msgstr "" +"Vamos dizer que você quer escrever uma RE que corresponde com a string ``" +"\\section``, que\n" +"pode ser encontrada em um arquivo LaTeX. Para descobrir o que escrever no " +"código\n" +"do programa, comece com a string que se deseja corresponder. Em seguida, " +"você\n" "deve preceder qualquer barra invertida e outros metacaracteres com\n" -"uma barra invertida, tendo como resultado a string ``\\\\section``. A string resultante que deve ser\n" -"passada para ``re.compile()`` deve ser ``\\\\section``. No entanto, para expressar isso\n" -"como uma string literal Python, ambas as barras invertidas devem ser precedidas com uma barra invertida\n" +"uma barra invertida, tendo como resultado a string ``\\\\section``. A string " +"resultante que deve ser\n" +"passada para ``re.compile()`` deve ser ``\\\\section``. No entanto, para " +"expressar isso\n" +"como uma string literal Python, ambas as barras invertidas devem ser " +"precedidas com uma barra invertida\n" "novamente." #: ../../howto/regex.rst:312 @@ -712,38 +784,46 @@ msgid "" "the RE string, because the regular expression must be ``\\\\``, and each " "backslash must be expressed as ``\\\\`` inside a regular Python string " "literal. In REs that feature backslashes repeatedly, this leads to lots of " -"repeated backslashes and makes the resulting strings difficult to " -"understand." -msgstr "" -"Em suma, para corresponder com uma barra invertida literal, tem de se escrever ``\\\\\\\\``\n" -"como a string da RE, porque a expressão regular deve ser ``\\\\``, e cada barra invertida\n" -"deve ser expressa como ``\\\\`` dentro de uma string literal Python normal. Em REs que\n" -"apresentam barras invertidas repetidas vezes, isso leva a um monte de barras\n" +"repeated backslashes and makes the resulting strings difficult to understand." +msgstr "" +"Em suma, para corresponder com uma barra invertida literal, tem de se " +"escrever ``\\\\\\\\``\n" +"como a string da RE, porque a expressão regular deve ser ``\\\\``, e cada " +"barra invertida\n" +"deve ser expressa como ``\\\\`` dentro de uma string literal Python normal. " +"Em REs que\n" +"apresentam barras invertidas repetidas vezes, isso leva a um monte de " +"barras\n" "invertidas repetidas e faz as strings resultantes difíceis de entender." #: ../../howto/regex.rst:327 msgid "" -"The solution is to use Python's raw string notation for regular expressions;" -" backslashes are not handled in any special way in a string literal prefixed" -" with ``'r'``, so ``r\"\\n\"`` is a two-character string containing ``'\\'``" -" and ``'n'``, while ``\"\\n\"`` is a one-character string containing a " -"newline. Regular expressions will often be written in Python code using this" -" raw string notation." -msgstr "" -"A solução é usar a notação de string crua (raw) do Python para expressões regulares;\n" -"barras invertidas não são tratadas de nenhuma forma especial em uma string literal\n" -"se prefixada com ``r``, então ``r\"\\n\"`` é uma string de dois caracteres contendo ``\\`` e\n" -"``n``, enquanto ``\"\\n\"`` é uma string de um único caractere contendo uma nova linha. As\n" -"expressões regulares, muitas vezes, são escritas no código Python usando esta\n" +"The solution is to use Python's raw string notation for regular expressions; " +"backslashes are not handled in any special way in a string literal prefixed " +"with ``'r'``, so ``r\"\\n\"`` is a two-character string containing ``'\\'`` " +"and ``'n'``, while ``\"\\n\"`` is a one-character string containing a " +"newline. Regular expressions will often be written in Python code using this " +"raw string notation." +msgstr "" +"A solução é usar a notação de string crua (raw) do Python para expressões " +"regulares;\n" +"barras invertidas não são tratadas de nenhuma forma especial em uma string " +"literal\n" +"se prefixada com ``r``, então ``r\"\\n\"`` é uma string de dois caracteres " +"contendo ``\\`` e\n" +"``n``, enquanto ``\"\\n\"`` é uma string de um único caractere contendo uma " +"nova linha. As\n" +"expressões regulares, muitas vezes, são escritas no código Python usando " +"esta\n" "notação de string crua (raw)." #: ../../howto/regex.rst:333 msgid "" -"In addition, special escape sequences that are valid in regular expressions," -" but not valid as Python string literals, now result in a " -":exc:`DeprecationWarning` and will eventually become a :exc:`SyntaxError`, " -"which means the sequences will be invalid if raw string notation or escaping" -" the backslashes isn't used." +"In addition, special escape sequences that are valid in regular expressions, " +"but not valid as Python string literals, now result in a :exc:" +"`DeprecationWarning` and will eventually become a :exc:`SyntaxError`, which " +"means the sequences will be invalid if raw string notation or escaping the " +"backslashes isn't used." msgstr "" #: ../../howto/regex.rst:341 @@ -785,9 +865,12 @@ msgid "" "the most significant ones will be covered here; consult the :mod:`re` docs " "for a complete listing." msgstr "" -"Uma vez que você tem um objeto que representa uma expressão regular compilada, o\n" -"que você faz com ele? Objetos padrão têm vários métodos e atributos. Apenas os\n" -"mais significativos serão vistos aqui; consulte a documentação do módulo ``re`` para uma lista\n" +"Uma vez que você tem um objeto que representa uma expressão regular " +"compilada, o\n" +"que você faz com ele? Objetos padrão têm vários métodos e atributos. Apenas " +"os\n" +"mais significativos serão vistos aqui; consulte a documentação do módulo " +"``re`` para uma lista\n" "completa." #: ../../howto/regex.rst:360 ../../howto/regex.rst:418 @@ -834,8 +917,8 @@ msgstr "``finditer()``" #: ../../howto/regex.rst:371 msgid "" -"Find all substrings where the RE matches, and returns them as an " -":term:`iterator`." +"Find all substrings where the RE matches, and returns them as an :term:" +"`iterator`." msgstr "" "Encontra todas as substrings onde a RE corresponde, e as retorna como um " "iterator." @@ -851,8 +934,8 @@ msgstr "" #: ../../howto/regex.rst:380 msgid "" "You can learn about this by interactively experimenting with the :mod:`re` " -"module. If you have :mod:`tkinter` available, you may also want to look at " -":source:`Tools/demo/redemo.py`, a demonstration program included with the " +"module. If you have :mod:`tkinter` available, you may also want to look at :" +"source:`Tools/demo/redemo.py`, a demonstration program included with the " "Python distribution. It allows you to enter REs and strings, and displays " "whether the RE matches or fails. :file:`redemo.py` can be quite useful when " "trying to debug a complicated RE." @@ -860,34 +943,34 @@ msgstr "" #: ../../howto/regex.rst:387 msgid "" -"This HOWTO uses the standard Python interpreter for its examples. First, run" -" the Python interpreter, import the :mod:`re` module, and compile a RE::" +"This HOWTO uses the standard Python interpreter for its examples. First, run " +"the Python interpreter, import the :mod:`re` module, and compile a RE::" msgstr "" -"Este HOWTO usa o interpretador Python padrão para seus exemplos. Primeiro, execute o interpretador Python, importe o\n" +"Este HOWTO usa o interpretador Python padrão para seus exemplos. Primeiro, " +"execute o interpretador Python, importe o\n" "modulo ``re``, e compile uma RE" #: ../../howto/regex.rst:395 msgid "" "Now, you can try matching various strings against the RE ``[a-z]+``. An " "empty string shouldn't match at all, since ``+`` means 'one or more " -"repetitions'. :meth:`~re.Pattern.match` should return ``None`` in this case," -" which will cause the interpreter to print no output. You can explicitly " +"repetitions'. :meth:`~re.Pattern.match` should return ``None`` in this case, " +"which will cause the interpreter to print no output. You can explicitly " "print the result of :meth:`!match` to make this clear. ::" msgstr "" #: ../../howto/regex.rst:405 msgid "" "Now, let's try it on a string that it should match, such as ``tempo``. In " -"this case, :meth:`~re.Pattern.match` will return a :ref:`match object " -"`, so you should store the result in a variable for later " -"use. ::" +"this case, :meth:`~re.Pattern.match` will return a :ref:`match object `, so you should store the result in a variable for later use. ::" msgstr "" #: ../../howto/regex.rst:413 msgid "" "Now you can query the :ref:`match object ` for information " -"about the matching string. Match object instances also have several methods" -" and attributes; the most important ones are:" +"about the matching string. Match object instances also have several methods " +"and attributes; the most important ones are:" msgstr "" #: ../../howto/regex.rst:420 @@ -929,46 +1012,47 @@ msgstr "Experimentando estes métodos teremos seus significado esclarecidos:" #: ../../howto/regex.rst:439 msgid "" -":meth:`~re.Match.group` returns the substring that was matched by the RE. " -":meth:`~re.Match.start` and :meth:`~re.Match.end` return the starting and " -"ending index of the match. :meth:`~re.Match.span` returns both start and end" -" indexes in a single tuple. Since the :meth:`~re.Pattern.match` method only" -" checks if the RE matches at the start of a string, :meth:`!start` will " +":meth:`~re.Match.group` returns the substring that was matched by the RE. :" +"meth:`~re.Match.start` and :meth:`~re.Match.end` return the starting and " +"ending index of the match. :meth:`~re.Match.span` returns both start and end " +"indexes in a single tuple. Since the :meth:`~re.Pattern.match` method only " +"checks if the RE matches at the start of a string, :meth:`!start` will " "always be zero. However, the :meth:`~re.Pattern.search` method of patterns " -"scans through the string, so the match may not start at zero in that case. " -"::" +"scans through the string, so the match may not start at zero in that " +"case. ::" msgstr "" #: ../../howto/regex.rst:456 msgid "" -"In actual programs, the most common style is to store the :ref:`match object" -" ` in a variable, and then check if it was ``None``. This " +"In actual programs, the most common style is to store the :ref:`match object " +"` in a variable, and then check if it was ``None``. This " "usually looks like::" msgstr "" "Nos programas reais, o estilo mais comum é armazenar o MatchObject em uma\n" -"variável e, em seguida, verificar se ela é 'None'. Isso geralmente se parece com:" +"variável e, em seguida, verificar se ela é 'None'. Isso geralmente se parece " +"com:" #: ../../howto/regex.rst:467 msgid "" -"Two pattern methods return all of the matches for a pattern. " -":meth:`~re.Pattern.findall` returns a list of matching strings::" +"Two pattern methods return all of the matches for a pattern. :meth:`~re." +"Pattern.findall` returns a list of matching strings::" msgstr "" #: ../../howto/regex.rst:474 msgid "" -"The ``r`` prefix, making the literal a raw string literal, is needed in this" -" example because escape sequences in a normal \"cooked\" string literal that" -" are not recognized by Python, as opposed to regular expressions, now result" -" in a :exc:`DeprecationWarning` and will eventually become a " -":exc:`SyntaxError`. See :ref:`the-backslash-plague`." +"The ``r`` prefix, making the literal a raw string literal, is needed in this " +"example because escape sequences in a normal \"cooked\" string literal that " +"are not recognized by Python, as opposed to regular expressions, now result " +"in a :exc:`DeprecationWarning` and will eventually become a :exc:" +"`SyntaxError`. See :ref:`the-backslash-plague`." msgstr "" #: ../../howto/regex.rst:480 msgid "" ":meth:`~re.Pattern.findall` has to create the entire list before it can be " "returned as the result. The :meth:`~re.Pattern.finditer` method returns a " -"sequence of :ref:`match object ` instances as an " -":term:`iterator`::" +"sequence of :ref:`match object ` instances as an :term:" +"`iterator`::" msgstr "" #: ../../howto/regex.rst:496 @@ -977,9 +1061,9 @@ msgstr "Funções de Nível de Módulo" #: ../../howto/regex.rst:498 msgid "" -"You don't have to create a pattern object and call its methods; the " -":mod:`re` module also provides top-level functions called :func:`~re.match`," -" :func:`~re.search`, :func:`~re.findall`, :func:`~re.sub`, and so forth. " +"You don't have to create a pattern object and call its methods; the :mod:" +"`re` module also provides top-level functions called :func:`~re.match`, :" +"func:`~re.search`, :func:`~re.findall`, :func:`~re.sub`, and so forth. " "These functions take the same arguments as the corresponding pattern method " "with the RE string added as the first argument, and still return either " "``None`` or a :ref:`match object ` instance. ::" @@ -988,8 +1072,8 @@ msgstr "" #: ../../howto/regex.rst:510 msgid "" "Under the hood, these functions simply create a pattern object for you and " -"call the appropriate method on it. They also store the compiled object in a" -" cache, so future calls using the same RE won't need to parse the pattern " +"call the appropriate method on it. They also store the compiled object in a " +"cache, so future calls using the same RE won't need to parse the pattern " "again and again." msgstr "" @@ -1009,19 +1093,24 @@ msgstr "Flags de Compilação" msgid "" "Compilation flags let you modify some aspects of how regular expressions " "work. Flags are available in the :mod:`re` module under two names, a long " -"name such as :const:`IGNORECASE` and a short, one-letter form such as " -":const:`I`. (If you're familiar with Perl's pattern modifiers, the one-" -"letter forms use the same letters; the short form of :const:`re.VERBOSE` is " -":const:`re.X`, for example.) Multiple flags can be specified by bitwise OR-" -"ing them; ``re.I | re.M`` sets both the :const:`I` and :const:`M` flags, for" -" example." -msgstr "" -"Flags de compilação permitem modificar alguns aspectos de como as expressões\n" -"regulares funcionam. Flags estão disponíveis no módulo ``rev`` sob dois nomes, um\n" -"nome longo, tal como ``IGNORECASE`` e um curto, na forma de uma letra, como ``I``. (Se você\n" +"name such as :const:`IGNORECASE` and a short, one-letter form such as :const:" +"`I`. (If you're familiar with Perl's pattern modifiers, the one-letter " +"forms use the same letters; the short form of :const:`re.VERBOSE` is :const:" +"`re.X`, for example.) Multiple flags can be specified by bitwise OR-ing " +"them; ``re.I | re.M`` sets both the :const:`I` and :const:`M` flags, for " +"example." +msgstr "" +"Flags de compilação permitem modificar alguns aspectos de como as " +"expressões\n" +"regulares funcionam. Flags estão disponíveis no módulo ``rev`` sob dois " +"nomes, um\n" +"nome longo, tal como ``IGNORECASE`` e um curto, na forma de uma letra, como " +"``I``. (Se você\n" "estiver familiarizado com o padrão dos modificadores do Perl, o nome curto\n" -"usa as mesmas letras; o forma abreviada de ``re.VERBOSE`` é ``re.X``, por exemplo)\n" -"Várias flags podem ser especificadas como um vetor intercalado por ``OU(|)``; ``re.I |re.M`` define as flags\n" +"usa as mesmas letras; o forma abreviada de ``re.VERBOSE`` é ``re.X``, por " +"exemplo)\n" +"Várias flags podem ser especificadas como um vetor intercalado por " +"``OU(|)``; ``re.I |re.M`` define as flags\n" "``I`` e ``M``, por exemplo." #: ../../howto/regex.rst:533 @@ -1029,7 +1118,8 @@ msgid "" "Here's a table of the available flags, followed by a more detailed " "explanation of each one." msgstr "" -"Aqui está uma tabela das flags disponíveis, seguida por uma explicação mais detalhada\n" +"Aqui está uma tabela das flags disponíveis, seguida por uma explicação mais " +"detalhada\n" "de cada uma:" #: ../../howto/regex.rst:537 @@ -1042,7 +1132,7 @@ msgstr "Significado" #: ../../howto/regex.rst:539 msgid ":const:`ASCII`, :const:`A`" -msgstr "" +msgstr ":const:`ASCII`, :const:`A`" #: ../../howto/regex.rst:539 msgid "" @@ -1096,16 +1186,16 @@ msgstr "" #: ../../howto/regex.rst:562 msgid "" "Perform case-insensitive matching; character class and literal strings will " -"match letters by ignoring case. For example, ``[A-Z]`` will match lowercase" -" letters, too. Full Unicode matching also works unless the :const:`ASCII` " -"flag is used to disable non-ASCII matches. When the Unicode patterns " -"``[a-z]`` or ``[A-Z]`` are used in combination with the :const:`IGNORECASE` " -"flag, they will match the 52 ASCII letters and 4 additional non-ASCII " -"letters: 'İ' (U+0130, Latin capital letter I with dot above), 'ı' (U+0131, " -"Latin small letter dotless i), 'ſ' (U+017F, Latin small letter long s) and " -"'K' (U+212A, Kelvin sign). ``Spam`` will match ``'Spam'``, ``'spam'``, " -"``'spAM'``, or ``'ſpam'`` (the latter is matched only in Unicode mode). This" -" lowercasing doesn't take the current locale into account; it will if you " +"match letters by ignoring case. For example, ``[A-Z]`` will match lowercase " +"letters, too. Full Unicode matching also works unless the :const:`ASCII` " +"flag is used to disable non-ASCII matches. When the Unicode patterns ``[a-" +"z]`` or ``[A-Z]`` are used in combination with the :const:`IGNORECASE` flag, " +"they will match the 52 ASCII letters and 4 additional non-ASCII letters: " +"'İ' (U+0130, Latin capital letter I with dot above), 'ı' (U+0131, Latin " +"small letter dotless i), 'ſ' (U+017F, Latin small letter long s) and 'K' (U" +"+212A, Kelvin sign). ``Spam`` will match ``'Spam'``, ``'spam'``, " +"``'spAM'``, or ``'ſpam'`` (the latter is matched only in Unicode mode). This " +"lowercasing doesn't take the current locale into account; it will if you " "also set the :const:`LOCALE` flag." msgstr "" @@ -1126,8 +1216,8 @@ msgid "" "C functions will tell the program that the byte corresponding to ``é`` " "should also be considered a letter. Setting the :const:`LOCALE` flag when " "compiling a regular expression will cause the resulting compiled object to " -"use these C functions for ``\\w``; this is slower, but also enables ``\\w+``" -" to match French words as you'd expect. The use of this flag is discouraged " +"use these C functions for ``\\w``; this is slower, but also enables ``\\w+`` " +"to match French words as you'd expect. The use of this flag is discouraged " "in Python 3 as the locale mechanism is very unreliable, it only handles one " "\"culture\" at a time, and it only works with 8-bit locales. Unicode " "matching is already enabled by default in Python 3 for Unicode (str) " @@ -1139,24 +1229,29 @@ msgid "" "(``^`` and ``$`` haven't been explained yet; they'll be introduced in " "section :ref:`more-metacharacters`.)" msgstr "" -"(``^`` e ``$`` ainda não foram explicados, eles serão comentados na seção ``Mais\n" +"(``^`` e ``$`` ainda não foram explicados, eles serão comentados na seção " +"``Mais\n" "Metacaracteres``.)" #: ../../howto/regex.rst:608 msgid "" -"Usually ``^`` matches only at the beginning of the string, and ``$`` matches" -" only at the end of the string and immediately before the newline (if any) " -"at the end of the string. When this flag is specified, ``^`` matches at the " -"beginning of the string and at the beginning of each line within the string," -" immediately following each newline. Similarly, the ``$`` metacharacter " +"Usually ``^`` matches only at the beginning of the string, and ``$`` matches " +"only at the end of the string and immediately before the newline (if any) at " +"the end of the string. When this flag is specified, ``^`` matches at the " +"beginning of the string and at the beginning of each line within the string, " +"immediately following each newline. Similarly, the ``$`` metacharacter " "matches either at the end of the string and at the end of each line " "(immediately preceding each newline)." msgstr "" -"Normalmente ``^`` corresponde apenas ao início da string e ``$`` corresponde apenas ao\n" -"final da string, e imediatamente antes da nova linha (se existir) no final da string.\n" -"Quando esta flag é especificada, o ``^`` corresponde ao início da string e ao início de\n" +"Normalmente ``^`` corresponde apenas ao início da string e ``$`` corresponde " +"apenas ao\n" +"final da string, e imediatamente antes da nova linha (se existir) no final " +"da string.\n" +"Quando esta flag é especificada, o ``^`` corresponde ao início da string e " +"ao início de\n" "cada linha dentro da string, imediatamente após cada nova linha. Da mesma\n" -"forma, o metacaractere ``$`` corresponde tanto ao final da string e ao final de cada linha\n" +"forma, o metacaractere ``$`` corresponde tanto ao final da string e ao final " +"de cada linha\n" "(imediatamente antes de cada nova linha)." #: ../../howto/regex.rst:621 @@ -1164,8 +1259,10 @@ msgid "" "Makes the ``'.'`` special character match any character at all, including a " "newline; without this flag, ``'.'`` will match anything *except* a newline." msgstr "" -"Faz o caractere especial ``.`` corresponder com qualquer caractere que seja, incluindo o\n" -"nova linha; sem esta flag, ``.`` irá corresponder a qualquer coisa, exceto o nova linha." +"Faz o caractere especial ``.`` corresponder com qualquer caractere que seja, " +"incluindo o\n" +"nova linha; sem esta flag, ``.`` irá corresponder a qualquer coisa, exceto o " +"nova linha." #: ../../howto/regex.rst:629 msgid "" @@ -1180,18 +1277,23 @@ msgid "" "granting you more flexibility in how you can format them. When this flag " "has been specified, whitespace within the RE string is ignored, except when " "the whitespace is in a character class or preceded by an unescaped " -"backslash; this lets you organize and indent the RE more clearly. This flag" -" also lets you put comments within a RE that will be ignored by the engine; " +"backslash; this lets you organize and indent the RE more clearly. This flag " +"also lets you put comments within a RE that will be ignored by the engine; " "comments are marked by a ``'#'`` that's neither in a character class or " "preceded by an unescaped backslash." msgstr "" "Esta flag permite escrever expressões regulares mais legíveis,\n" "permitindo mais flexibilidade na maneira de formatá-la. Quando esta flag\n" -"é especificada, o espaço em branco dentro da string RE é ignorado, exceto quando o\n" -"espaço em branco está em uma classe de caracteres ou precedido por uma barra\n" -"invertida não \"escapada\"; isto permite organizar e formatar a RE de maneira mais clara. Esta\n" -"flag também permite que se coloque comentários dentro de uma RE que serão ignorados pelo\n" -"mecanismo; os comentários são marcados por um \"#\" que não está nem em uma classe de\n" +"é especificada, o espaço em branco dentro da string RE é ignorado, exceto " +"quando o\n" +"espaço em branco está em uma classe de caracteres ou precedido por uma " +"barra\n" +"invertida não \"escapada\"; isto permite organizar e formatar a RE de " +"maneira mais clara. Esta\n" +"flag também permite que se coloque comentários dentro de uma RE que serão " +"ignorados pelo\n" +"mecanismo; os comentários são marcados por um \"#\" que não está nem em uma " +"classe de\n" "caracteres nem precedido por uma barra invertida não \"escapada\"." #: ../../howto/regex.rst:647 @@ -1212,8 +1314,10 @@ msgid "" "has been used to break up the RE into smaller pieces, but it's still more " "difficult to understand than the version using :const:`re.VERBOSE`." msgstr "" -"No exemplo acima, a concatenação automática de strings literais em Python foi\n" -"usada para quebrar a RE em partes menores, mas ainda é mais difícil de entender\n" +"No exemplo acima, a concatenação automática de strings literais em Python " +"foi\n" +"usada para quebrar a RE em partes menores, mas ainda é mais difícil de " +"entender\n" "do que a versão que usa :const:`re.VERBOSE`." #: ../../howto/regex.rst:672 @@ -1222,12 +1326,13 @@ msgstr "Mais Poder dos Padrões" #: ../../howto/regex.rst:674 msgid "" -"So far we've only covered a part of the features of regular expressions. In" -" this section, we'll cover some new metacharacters, and how to use groups to" -" retrieve portions of the text that was matched." +"So far we've only covered a part of the features of regular expressions. In " +"this section, we'll cover some new metacharacters, and how to use groups to " +"retrieve portions of the text that was matched." msgstr "" "Até agora, cobrimos apenas uma parte dos recursos das expressões regulares.\n" -"Nesta seção, vamos abordar alguns metacaracteres novos, e como usar grupos para\n" +"Nesta seção, vamos abordar alguns metacaracteres novos, e como usar grupos " +"para\n" "recuperar partes do texto que teve correspondência." #: ../../howto/regex.rst:682 @@ -1239,25 +1344,31 @@ msgid "" "There are some metacharacters that we haven't covered yet. Most of them " "will be covered in this section." msgstr "" -"Existem alguns metacaracteres que nós ainda não vimos. A maioria deles serão referenciados\n" +"Existem alguns metacaracteres que nós ainda não vimos. A maioria deles serão " +"referenciados\n" "nesta seção." #: ../../howto/regex.rst:687 msgid "" "Some of the remaining metacharacters to be discussed are :dfn:`zero-width " "assertions`. They don't cause the engine to advance through the string; " -"instead, they consume no characters at all, and simply succeed or fail. For" -" example, ``\\b`` is an assertion that the current position is located at a " -"word boundary; the position isn't changed by the ``\\b`` at all. This means" -" that zero-width assertions should never be repeated, because if they match " +"instead, they consume no characters at all, and simply succeed or fail. For " +"example, ``\\b`` is an assertion that the current position is located at a " +"word boundary; the position isn't changed by the ``\\b`` at all. This means " +"that zero-width assertions should never be repeated, because if they match " "once at a given location, they can obviously be matched an infinite number " "of times." msgstr "" -"Alguns dos metacaracteres restantes a serem discutidos são como uma afirmação de ``largura zero`` (zero-width assertions). Eles\n" -"não fazem com que o mecanismo avance pela string; ao contrário, eles não consomem\n" -"nenhum caractere, e simplesmente tem sucesso ou falha. Por exemplo, ``\\b`` é\n" -"uma afirmação de que a posição atual está localizada nas bordas de uma palavra; a\n" -"posição não é alterada de nenhuma maneira por ``\\b``. Isto significa que afirmações de ``largura zero``\n" +"Alguns dos metacaracteres restantes a serem discutidos são como uma " +"afirmação de ``largura zero`` (zero-width assertions). Eles\n" +"não fazem com que o mecanismo avance pela string; ao contrário, eles não " +"consomem\n" +"nenhum caractere, e simplesmente tem sucesso ou falha. Por exemplo, ``\\b`` " +"é\n" +"uma afirmação de que a posição atual está localizada nas bordas de uma " +"palavra; a\n" +"posição não é alterada de nenhuma maneira por ``\\b``. Isto significa que " +"afirmações de ``largura zero``\n" "nunca devem ser repetidas, porque se elas combinam uma vez em um\n" "determinado local, elas podem, obviamente, combinar um número infinito de\n" "vezes." @@ -1271,8 +1382,8 @@ msgid "" "Alternation, or the \"or\" operator. If *A* and *B* are regular " "expressions, ``A|B`` will match any string that matches either *A* or *B*. " "``|`` has very low precedence in order to make it work reasonably when " -"you're alternating multi-character strings. ``Crow|Servo`` will match either" -" ``'Crow'`` or ``'Servo'``, not ``'Cro'``, a ``'w'`` or an ``'S'``, and " +"you're alternating multi-character strings. ``Crow|Servo`` will match either " +"``'Crow'`` or ``'Servo'``, not ``'Cro'``, a ``'w'`` or an ``'S'``, and " "``'ervo'``." msgstr "" @@ -1281,7 +1392,8 @@ msgid "" "To match a literal ``'|'``, use ``\\|``, or enclose it inside a character " "class, as in ``[|]``." msgstr "" -"Para corresponder com um ``|`` literal, use ``\\|``, ou coloque ele dentro de uma classe de\n" +"Para corresponder com um ``|`` literal, use ``\\|``, ou coloque ele dentro " +"de uma classe de\n" "caracteres, como em ``[|]``." #: ../../howto/regex.rst:718 @@ -1291,20 +1403,23 @@ msgstr "``^``" #: ../../howto/regex.rst:706 msgid "" "Matches at the beginning of lines. Unless the :const:`MULTILINE` flag has " -"been set, this will only match at the beginning of the string. In " -":const:`MULTILINE` mode, this also matches immediately after each newline " -"within the string." -msgstr "" -"Corresponde ao início de linha. A menos que a flag MULTILINE tenha sido definida,\n" -"isso só irá corresponder ao início da string. No modo MULTILINE, isso também\n" +"been set, this will only match at the beginning of the string. In :const:" +"`MULTILINE` mode, this also matches immediately after each newline within " +"the string." +msgstr "" +"Corresponde ao início de linha. A menos que a flag MULTILINE tenha sido " +"definida,\n" +"isso só irá corresponder ao início da string. No modo MULTILINE, isso " +"também\n" "corresponde imediatamente após cada nova linha de dentro da string." #: ../../howto/regex.rst:710 msgid "" -"For example, if you wish to match the word ``From`` only at the beginning of" -" a line, the RE to use is ``^From``. ::" +"For example, if you wish to match the word ``From`` only at the beginning of " +"a line, the RE to use is ``^From``. ::" msgstr "" -"Por exemplo, para ter correspondência com a palavra ``From`` apenas no início de uma linha, a\n" +"Por exemplo, para ter correspondência com a palavra ``From`` apenas no " +"início de uma linha, a\n" "RE a ser usada é ``^From``." #: ../../howto/regex.rst:718 @@ -1320,7 +1435,8 @@ msgid "" "Matches at the end of a line, which is defined as either the end of the " "string, or any location followed by a newline character. ::" msgstr "" -"Corresponde ao fim de uma linha, que tanto é definido como o fim de uma string, ou qualquer local seguido por um\n" +"Corresponde ao fim de uma linha, que tanto é definido como o fim de uma " +"string, ou qualquer local seguido por um\n" "caractere de nova linha." #: ../../howto/regex.rst:731 @@ -1328,7 +1444,8 @@ msgid "" "To match a literal ``'$'``, use ``\\$`` or enclose it inside a character " "class, as in ``[$]``." msgstr "" -"Para corresponder com um ``$`` literal, use ``\\$`` ou coloque-o dentro de uma classe de\n" +"Para corresponder com um ``$`` literal, use ``\\$`` ou coloque-o dentro de " +"uma classe de\n" "caracteres, como em ``[$]``." #: ../../howto/regex.rst:738 @@ -1340,12 +1457,15 @@ msgid "" "Matches only at the start of the string. When not in :const:`MULTILINE` " "mode, ``\\A`` and ``^`` are effectively the same. In :const:`MULTILINE` " "mode, they're different: ``\\A`` still matches only at the beginning of the " -"string, but ``^`` may match at any location inside the string that follows a" -" newline character." -msgstr "" -"Corresponde apenas com o início da string. Quando não estiver em modo MULTILINE, ``\\A``\n" -"e ``^`` são efetivamente a mesma coisa. No modo MULTILINE, eles são diferentes: ``\\A`` continua a\n" -"corresponder apenas com o início da string, mas ``^`` pode corresponder com qualquer localização de dentro da string, que\n" +"string, but ``^`` may match at any location inside the string that follows a " +"newline character." +msgstr "" +"Corresponde apenas com o início da string. Quando não estiver em modo " +"MULTILINE, ``\\A``\n" +"e ``^`` são efetivamente a mesma coisa. No modo MULTILINE, eles são " +"diferentes: ``\\A`` continua a\n" +"corresponder apenas com o início da string, mas ``^`` pode corresponder com " +"qualquer localização de dentro da string, que\n" "seja posterior a um caractere nova linha." #: ../../howto/regex.rst:741 @@ -1363,13 +1483,16 @@ msgstr "``\\b``" #: ../../howto/regex.rst:744 msgid "" "Word boundary. This is a zero-width assertion that matches only at the " -"beginning or end of a word. A word is defined as a sequence of alphanumeric" -" characters, so the end of a word is indicated by whitespace or a non-" +"beginning or end of a word. A word is defined as a sequence of alphanumeric " +"characters, so the end of a word is indicated by whitespace or a non-" "alphanumeric character." msgstr "" -"Borda de palavra. Esta é uma afirmação de ``largura zero`` que corresponde apenas ao\n" -"início ou ao final de uma palavra. Uma palavra é definida como uma sequência de\n" -"caracteres alfanuméricos, de modo que o fim de uma palavra é indicado por espaços\n" +"Borda de palavra. Esta é uma afirmação de ``largura zero`` que corresponde " +"apenas ao\n" +"início ou ao final de uma palavra. Uma palavra é definida como uma sequência " +"de\n" +"caracteres alfanuméricos, de modo que o fim de uma palavra é indicado por " +"espaços\n" "em branco ou um caractere não alfanumérico." #: ../../howto/regex.rst:749 @@ -1377,34 +1500,43 @@ msgid "" "The following example matches ``class`` only when it's a complete word; it " "won't match when it's contained inside another word. ::" msgstr "" -"O exemplo a seguir corresponde a ``class`` apenas quando é a palavra exata; ele\n" +"O exemplo a seguir corresponde a ``class`` apenas quando é a palavra exata; " +"ele\n" "não irá corresponder quando for contido dentro de uma outra palavra." #: ../../howto/regex.rst:760 msgid "" "There are two subtleties you should remember when using this special " "sequence. First, this is the worst collision between Python's string " -"literals and regular expression sequences. In Python's string literals, " -"``\\b`` is the backspace character, ASCII value 8. If you're not using raw " +"literals and regular expression sequences. In Python's string literals, ``" +"\\b`` is the backspace character, ASCII value 8. If you're not using raw " "strings, then Python will convert the ``\\b`` to a backspace, and your RE " -"won't match as you expect it to. The following example looks the same as our" -" previous RE, but omits the ``'r'`` in front of the RE string. ::" -msgstr "" -"Há duas sutilezas você deve lembrar ao usar essa sequência especial. Em primeiro\n" -"lugar, esta é a pior colisão entre strings literais do Python e sequências de expressão\n" -"regular. Nas strings literais do Python, ``\\b`` é o caractere backspace, o valor ASCII 8. Se\n" -"você não estiver usando strings cruas (raw), então Python irá converter o ``\\b`` em um\n" -"backspace e sua RE não irá funcionar da maneira que você espera. O exemplo a\n" -"seguir parece igual a nossa RE anterior, mas omite o ``r`` na frente da string RE." +"won't match as you expect it to. The following example looks the same as our " +"previous RE, but omits the ``'r'`` in front of the RE string. ::" +msgstr "" +"Há duas sutilezas você deve lembrar ao usar essa sequência especial. Em " +"primeiro\n" +"lugar, esta é a pior colisão entre strings literais do Python e sequências " +"de expressão\n" +"regular. Nas strings literais do Python, ``\\b`` é o caractere backspace, o " +"valor ASCII 8. Se\n" +"você não estiver usando strings cruas (raw), então Python irá converter o ``" +"\\b`` em um\n" +"backspace e sua RE não irá funcionar da maneira que você espera. O exemplo " +"a\n" +"seguir parece igual a nossa RE anterior, mas omite o ``r`` na frente da " +"string RE." #: ../../howto/regex.rst:774 msgid "" -"Second, inside a character class, where there's no use for this assertion, " -"``\\b`` represents the backspace character, for compatibility with Python's " +"Second, inside a character class, where there's no use for this assertion, ``" +"\\b`` represents the backspace character, for compatibility with Python's " "string literals." msgstr "" -"Além disso, dentro de uma classe de caracteres, onde não há nenhum uso para esta\n" -"afirmação, ``\\b`` representa o caractere backspace, para compatibilidade com strings\n" +"Além disso, dentro de uma classe de caracteres, onde não há nenhum uso para " +"esta\n" +"afirmação, ``\\b`` representa o caractere backspace, para compatibilidade " +"com strings\n" "literais do Python" #: ../../howto/regex.rst:781 @@ -1413,10 +1545,11 @@ msgstr "``\\B``" #: ../../howto/regex.rst:779 msgid "" -"Another zero-width assertion, this is the opposite of ``\\b``, only matching" -" when the current position is not at a word boundary." +"Another zero-width assertion, this is the opposite of ``\\b``, only matching " +"when the current position is not at a word boundary." msgstr "" -"Outra afirmação de ``largura zero``; isto é o oposto de ``\\b``, correspondendo apenas quando\n" +"Outra afirmação de ``largura zero``; isto é o oposto de ``\\b``, " +"correspondendo apenas quando\n" "a posição corrente não é de uma borda de palavra." #: ../../howto/regex.rst:784 @@ -1427,8 +1560,8 @@ msgstr "Agrupamento" msgid "" "Frequently you need to obtain more information than just whether the RE " "matched or not. Regular expressions are often used to dissect strings by " -"writing a RE divided into several subgroups which match different components" -" of interest. For example, an RFC-822 header line is divided into a header " +"writing a RE divided into several subgroups which match different components " +"of interest. For example, an RFC-822 header line is divided into a header " "name and a value, separated by a ``':'``, like this:" msgstr "" @@ -1438,13 +1571,18 @@ msgid "" "header line, and has one group which matches the header name, and another " "group which matches the header's value." msgstr "" -"Isto pode ser gerenciado ao escrever uma expressão regular que corresponde com uma\n" -"linha inteira de cabeçalho, e tem um grupo que corresponde ao nome do cabeçalho, e\n" +"Isto pode ser gerenciado ao escrever uma expressão regular que corresponde " +"com uma\n" +"linha inteira de cabeçalho, e tem um grupo que corresponde ao nome do " +"cabeçalho, e\n" "um outro grupo, que corresponde ao valor do cabeçalho.\n" -"Os grupos são marcados pelos metacaracteres ``(`` e ``)``. ``(`` e ``)`` têm muito do\n" +"Os grupos são marcados pelos metacaracteres ``(`` e ``)``. ``(`` e ``)`` têm " +"muito do\n" "mesmo significado que eles têm em expressões matemáticas; eles agrupam as\n" -"expressões contidas dentro deles, e você pode repetir o conteúdo de um grupo com\n" -"um qualificador de repetição, como ``*``, ``+``, ``?``, ou ``{m,n}``. Por exemplo, ``(ab)*`` irá\n" +"expressões contidas dentro deles, e você pode repetir o conteúdo de um grupo " +"com\n" +"um qualificador de repetição, como ``*``, ``+``, ``?``, ou ``{m,n}``. Por " +"exemplo, ``(ab)*`` irá\n" "corresponder a zero ou mais repetições de ``ab``." #: ../../howto/regex.rst:803 @@ -1452,14 +1590,18 @@ msgid "" "Groups are marked by the ``'('``, ``')'`` metacharacters. ``'('`` and " "``')'`` have much the same meaning as they do in mathematical expressions; " "they group together the expressions contained inside them, and you can " -"repeat the contents of a group with a repeating qualifier, such as ``*``, " -"``+``, ``?``, or ``{m,n}``. For example, ``(ab)*`` will match zero or more " +"repeat the contents of a group with a repeating qualifier, such as ``*``, ``" +"+``, ``?``, or ``{m,n}``. For example, ``(ab)*`` will match zero or more " "repetitions of ``ab``. ::" msgstr "" -"Grupos indicados com ``(`` e ``)`` também capturam o índice inicial e final do texto que\n" -"eles correspondem; isso pode ser obtido por meio da passagem de um argumento para\n" -"``group()``, ``start()``, ``end()``, e ``span()``. Os grupos são numerados começando com\n" -"0. O grupo 0 está sempre presente; é toda a RE, logo, todos os métodos MatchObject têm\n" +"Grupos indicados com ``(`` e ``)`` também capturam o índice inicial e final " +"do texto que\n" +"eles correspondem; isso pode ser obtido por meio da passagem de um argumento " +"para\n" +"``group()``, ``start()``, ``end()``, e ``span()``. Os grupos são numerados " +"começando com\n" +"0. O grupo 0 está sempre presente; é toda a RE, logo, todos os métodos " +"MatchObject têm\n" "o grupo 0 como seu argumento padrão. Mais tarde veremos como expressar\n" "grupos que não capturam a extensão de texto com a qual eles correspondem." @@ -1467,12 +1609,12 @@ msgstr "" msgid "" "Groups indicated with ``'('``, ``')'`` also capture the starting and ending " "index of the text that they match; this can be retrieved by passing an " -"argument to :meth:`~re.Match.group`, :meth:`~re.Match.start`, " -":meth:`~re.Match.end`, and :meth:`~re.Match.span`. Groups are numbered " -"starting with 0. Group 0 is always present; it's the whole RE, so " -":ref:`match object ` methods all have group 0 as their " -"default argument. Later we'll see how to express groups that don't capture " -"the span of text that they match. ::" +"argument to :meth:`~re.Match.group`, :meth:`~re.Match.start`, :meth:`~re." +"Match.end`, and :meth:`~re.Match.span`. Groups are numbered starting with " +"0. Group 0 is always present; it's the whole RE, so :ref:`match object " +"` methods all have group 0 as their default argument. Later " +"we'll see how to express groups that don't capture the span of text that " +"they match. ::" msgstr "" #: ../../howto/regex.rst:830 @@ -1481,7 +1623,8 @@ msgid "" "nested; to determine the number, just count the opening parenthesis " "characters, going from left to right. ::" msgstr "" -"Subgrupos são numerados a partir da esquerda para a direita, de forma crescente a partir de 1.\n" +"Subgrupos são numerados a partir da esquerda para a direita, de forma " +"crescente a partir de 1.\n" "Os grupos podem ser aninhados; para determinar o número, basta contar os\n" "caracteres de abertura de parêntese - ``(``, indo da esquerda para a direita." @@ -1508,12 +1651,16 @@ msgid "" "including arbitrary characters in a string, so be sure to use a raw string " "when incorporating backreferences in a RE." msgstr "" -"Referências anteriores em um padrão permitem que você especifique que o conteúdo\n" +"Referências anteriores em um padrão permitem que você especifique que o " +"conteúdo\n" "de um grupo capturado anteriormente também deve ser encontrado na posição\n" -"atual na sequência. Por exemplo, ``\\1`` terá sucesso se o conteúdo exato do grupo 1\n" -"puder ser encontrado na posição atual, e falhar caso contrário. Lembre-se que as strings\n" +"atual na sequência. Por exemplo, ``\\1`` terá sucesso se o conteúdo exato do " +"grupo 1\n" +"puder ser encontrado na posição atual, e falhar caso contrário. Lembre-se " +"que as strings\n" "literais do Python também usam a barra invertida seguida por números para\n" -"permitir a inclusão de caracteres arbitrários em uma string, por isso certifique-se de usar\n" +"permitir a inclusão de caracteres arbitrários em uma string, por isso " +"certifique-se de usar\n" "strings cruas (raw) ao incorporar referências anteriores em uma RE." #: ../../howto/regex.rst:863 @@ -1527,9 +1674,12 @@ msgid "" "you'll soon find out that they're *very* useful when performing string " "substitutions." msgstr "" -"Referências anteriores como esta não são, geralmente, muito úteis apenas para fazer pesquisa percorrendo\n" -"uma string — existem alguns formatos de texto que repetem dados dessa forma —\n" -"mas em breve você irá descobrir que elas são muito úteis para realizar substituições de\n" +"Referências anteriores como esta não são, geralmente, muito úteis apenas " +"para fazer pesquisa percorrendo\n" +"uma string — existem alguns formatos de texto que repetem dados dessa forma " +"—\n" +"mas em breve você irá descobrir que elas são muito úteis para realizar " +"substituições de\n" "strings." #: ../../howto/regex.rst:875 @@ -1545,17 +1695,19 @@ msgid "" "expression extensions, so we'll look at that first." msgstr "" "REs elaboradas podem usar muitos grupos, tanto para capturar substrings de\n" -"interesse, quanto para agrupar e estruturar a própria RE. Em REs complexas, torna-se difícil\n" +"interesse, quanto para agrupar e estruturar a própria RE. Em REs complexas, " +"torna-se difícil\n" "manter o controle dos números dos grupos. Existem dois recursos que ajudam\n" -"a lidar com esse problema. Ambos usam uma sintaxe comum para extensões de expressão\n" +"a lidar com esse problema. Ambos usam uma sintaxe comum para extensões de " +"expressão\n" "regular, então vamos olhar para isso em primeiro lugar." #: ../../howto/regex.rst:883 msgid "" "Perl 5 is well known for its powerful additions to standard regular " "expressions. For these new features the Perl developers couldn't choose new " -"single-keystroke metacharacters or new special sequences beginning with " -"``\\`` without making Perl's regular expressions confusingly different from " +"single-keystroke metacharacters or new special sequences beginning with ``" +"\\`` without making Perl's regular expressions confusingly different from " "standard REs. If they chose ``&`` as a new metacharacter, for example, old " "expressions would be assuming that ``&`` was a regular character and " "wouldn't have escaped it by writing ``\\&`` or ``[&]``." @@ -1565,24 +1717,30 @@ msgstr "" msgid "" "The solution chosen by the Perl developers was to use ``(?...)`` as the " "extension syntax. ``?`` immediately after a parenthesis was a syntax error " -"because the ``?`` would have nothing to repeat, so this didn't introduce any" -" compatibility problems. The characters immediately after the ``?`` " +"because the ``?`` would have nothing to repeat, so this didn't introduce any " +"compatibility problems. The characters immediately after the ``?`` " "indicate what extension is being used, so ``(?=foo)`` is one thing (a " "positive lookahead assertion) and ``(?:foo)`` is something else (a non-" "capturing group containing the subexpression ``foo``)." msgstr "" -"A solução escolhida pelos desenvolvedores do Perl foi usar ``(?...)`` como uma sintaxe de\n" -"extensão. Um ``?`` imediatamente após um parêntese era um erro de sintaxe porque o ``?``\n" -"não teria nada a repetir, de modo que isso não introduz quaisquer problemas de\n" -"compatibilidade. Os caracteres imediatamente após um ``?`` indicam que a extensão está\n" -"sendo usada, então ``(?=foo)`` é uma coisa (uma afirmação ``lookahead`` positiva) e\n" -"``(?:foo)`` é outra coisa (um grupo de não captura contendo a subexpressão ``foo``)." +"A solução escolhida pelos desenvolvedores do Perl foi usar ``(?...)`` como " +"uma sintaxe de\n" +"extensão. Um ``?`` imediatamente após um parêntese era um erro de sintaxe " +"porque o ``?``\n" +"não teria nada a repetir, de modo que isso não introduz quaisquer problemas " +"de\n" +"compatibilidade. Os caracteres imediatamente após um ``?`` indicam que a " +"extensão está\n" +"sendo usada, então ``(?=foo)`` é uma coisa (uma afirmação ``lookahead`` " +"positiva) e\n" +"``(?:foo)`` é outra coisa (um grupo de não captura contendo a subexpressão " +"``foo``)." #: ../../howto/regex.rst:898 msgid "" -"Python supports several of Perl's extensions and adds an extension syntax to" -" Perl's extension syntax. If the first character after the question mark is" -" a ``P``, you know that it's an extension that's specific to Python." +"Python supports several of Perl's extensions and adds an extension syntax to " +"Perl's extension syntax. If the first character after the question mark is " +"a ``P``, you know that it's an extension that's specific to Python." msgstr "" #: ../../howto/regex.rst:903 @@ -1611,14 +1769,21 @@ msgid "" "performance difference in searching between capturing and non-capturing " "groups; neither form is any faster than the other." msgstr "" -"Exceto pelo fato de que não é possível recuperar o conteúdo sobre o qual o grupo\n" -"corresponde, um grupo de não captura se comporta exatamente da mesma forma que um\n" -"grupo de captura; você pode colocar qualquer coisa dentro dele, repeti-lo com um\n" -"metacaractere de repetição, como o '*', e aninhá-lo dentro de outros grupos (de captura ou\n" -"não captura). ``(?:...)`` é particularmente útil para modificar um padrão existente,\n" +"Exceto pelo fato de que não é possível recuperar o conteúdo sobre o qual o " +"grupo\n" +"corresponde, um grupo de não captura se comporta exatamente da mesma forma " +"que um\n" +"grupo de captura; você pode colocar qualquer coisa dentro dele, repeti-lo " +"com um\n" +"metacaractere de repetição, como o '*', e aninhá-lo dentro de outros grupos " +"(de captura ou\n" +"não captura). ``(?:...)`` é particularmente útil para modificar um padrão " +"existente,\n" "já que você pode adicionar novos grupos sem alterar a forma como todos os\n" -"outros grupos estão numerados. Deve ser mencionado que não há diferença de desempenho na\n" -"busca entre grupos de captura e grupos de não captura; uma forma não é mais rápida\n" +"outros grupos estão numerados. Deve ser mencionado que não há diferença de " +"desempenho na\n" +"busca entre grupos de captura e grupos de não captura; uma forma não é mais " +"rápida\n" "que outra." #: ../../howto/regex.rst:927 @@ -1626,29 +1791,32 @@ msgid "" "A more significant feature is named groups: instead of referring to them by " "numbers, groups can be referenced by a name." msgstr "" -"Uma característica mais significativa são os grupos nomeados: em vez de se referir a\n" +"Uma característica mais significativa são os grupos nomeados: em vez de se " +"referir a\n" "eles por números, os grupos podem ser referenciados por um nome." #: ../../howto/regex.rst:930 msgid "" -"The syntax for a named group is one of the Python-specific extensions: " -"``(?P...)``. *name* is, obviously, the name of the group. Named " -"groups behave exactly like capturing groups, and additionally associate a " -"name with a group. The :ref:`match object ` methods that " -"deal with capturing groups all accept either integers that refer to the " -"group by number or strings that contain the desired group's name. Named " -"groups are still given numbers, so you can retrieve information about a " -"group in two ways::" +"The syntax for a named group is one of the Python-specific extensions: ``(?" +"P...)``. *name* is, obviously, the name of the group. Named groups " +"behave exactly like capturing groups, and additionally associate a name with " +"a group. The :ref:`match object ` methods that deal with " +"capturing groups all accept either integers that refer to the group by " +"number or strings that contain the desired group's name. Named groups are " +"still given numbers, so you can retrieve information about a group in two " +"ways::" msgstr "" #: ../../howto/regex.rst:945 msgid "" "Named groups are handy because they let you use easily-remembered names, " -"instead of having to remember numbers. Here's an example RE from the " -":mod:`imaplib` module::" +"instead of having to remember numbers. Here's an example RE from the :mod:" +"`imaplib` module::" msgstr "" -"Os grupos nomeados são úteis porque eles permitem que você use nomes de fácil\n" -"lembrança, em vez de ter que lembrar de números. Aqui está um exemplo de RE usando o\n" +"Os grupos nomeados são úteis porque eles permitem que você use nomes de " +"fácil\n" +"lembrança, em vez de ter que lembrar de números. Aqui está um exemplo de RE " +"usando o\n" "módulo ``imaplib``::" #: ../../howto/regex.rst:956 @@ -1656,18 +1824,19 @@ msgid "" "It's obviously much easier to retrieve ``m.group('zonem')``, instead of " "having to remember to retrieve group 9." msgstr "" -"É obviamente muito mais fácil fazer referência a ``m.group('zonem')``, do que ter que se\n" +"É obviamente muito mais fácil fazer referência a ``m.group('zonem')``, do " +"que ter que se\n" "lembrar de capturar o grupo 9." #: ../../howto/regex.rst:959 msgid "" "The syntax for backreferences in an expression such as ``(...)\\1`` refers " -"to the number of the group. There's naturally a variant that uses the group" -" name instead of the number. This is another Python extension: ``(?P=name)``" -" indicates that the contents of the group called *name* should again be " +"to the number of the group. There's naturally a variant that uses the group " +"name instead of the number. This is another Python extension: ``(?P=name)`` " +"indicates that the contents of the group called *name* should again be " "matched at the current point. The regular expression for finding doubled " -"words, ``\\b(\\w+)\\s+\\1\\b`` can also be written as " -"``\\b(?P\\w+)\\s+(?P=word)\\b``::" +"words, ``\\b(\\w+)\\s+\\1\\b`` can also be written as ``\\b(?P\\w+)\\s" +"+(?P=word)\\b``::" msgstr "" #: ../../howto/regex.rst:972 @@ -1680,8 +1849,10 @@ msgid "" "assertions are available in both positive and negative form, and look like " "this:" msgstr "" -"Outra afirmação de \"largura zero\" é a afirmação lookahead. Afirmações LookAhead\n" -"estão disponíveis tanto na forma positiva quanto na negativa, e se parece com isto:" +"Outra afirmação de \"largura zero\" é a afirmação lookahead. Afirmações " +"LookAhead\n" +"estão disponíveis tanto na forma positiva quanto na negativa, e se parece " +"com isto:" #: ../../howto/regex.rst:982 msgid "``(?=...)``" @@ -1690,15 +1861,19 @@ msgstr "``(?=...)``" #: ../../howto/regex.rst:978 msgid "" "Positive lookahead assertion. This succeeds if the contained regular " -"expression, represented here by ``...``, successfully matches at the current" -" location, and fails otherwise. But, once the contained expression has been " +"expression, represented here by ``...``, successfully matches at the current " +"location, and fails otherwise. But, once the contained expression has been " "tried, the matching engine doesn't advance at all; the rest of the pattern " "is tried right where the assertion started." msgstr "" -"Afirmação lookahead positiva. Retorna sucesso se a expressão regular informada, aqui\n" -"representada por ``...``, corresponde com o conteúdo da localização atual, e retorna falha caso contrário.\n" -"Mas, uma vez que a expressão informada tenha sido testada, o mecanismo de correspondência não\n" -"faz qualquer avanço; o resto do padrão é tentado no mesmo local de onde a afirmação foi iniciada." +"Afirmação lookahead positiva. Retorna sucesso se a expressão regular " +"informada, aqui\n" +"representada por ``...``, corresponde com o conteúdo da localização atual, e " +"retorna falha caso contrário.\n" +"Mas, uma vez que a expressão informada tenha sido testada, o mecanismo de " +"correspondência não\n" +"faz qualquer avanço; o resto do padrão é tentado no mesmo local de onde a " +"afirmação foi iniciada." #: ../../howto/regex.rst:987 msgid "``(?!...)``" @@ -1710,18 +1885,22 @@ msgid "" "assertion; it succeeds if the contained expression *doesn't* match at the " "current position in the string." msgstr "" -"Afirmação lookahead negativa. É o oposto da afirmação positiva; será bem-sucedida se\n" -"a expressão informada não corresponder com o conteúdo da posição atual na string." +"Afirmação lookahead negativa. É o oposto da afirmação positiva; será bem-" +"sucedida se\n" +"a expressão informada não corresponder com o conteúdo da posição atual na " +"string." #: ../../howto/regex.rst:989 msgid "" "To make this concrete, let's look at a case where a lookahead is useful. " -"Consider a simple pattern to match a filename and split it apart into a base" -" name and an extension, separated by a ``.``. For example, in ``news.rc``, " +"Consider a simple pattern to match a filename and split it apart into a base " +"name and an extension, separated by a ``.``. For example, in ``news.rc``, " "``news`` is the base name, and ``rc`` is the filename's extension." msgstr "" -"Para tornar isto concreto, vamos olhar para um caso em que um lookahead é útil.\n" -"Considere um padrão simples para corresponder com um nome de arquivo e divida-o em pedaços,\n" +"Para tornar isto concreto, vamos olhar para um caso em que um lookahead é " +"útil.\n" +"Considere um padrão simples para corresponder com um nome de arquivo e " +"divida-o em pedaços,\n" "um nome base e uma extensão, separados por um ``.``. Por exemplo, em\n" "``news.rc,news`` é o nome base, e ``rc`` é a extensão do nome de arquivo." @@ -1737,8 +1916,8 @@ msgstr "``.*[.].*$``" msgid "" "Notice that the ``.`` needs to be treated specially because it's a " "metacharacter, so it's inside a character class to only match that specific " -"character. Also notice the trailing ``$``; this is added to ensure that all" -" the rest of the string must be included in the extension. This regular " +"character. Also notice the trailing ``$``; this is added to ensure that all " +"the rest of the string must be included in the extension. This regular " "expression matches ``foo.bar`` and ``autoexec.bat`` and ``sendmail.cf`` and " "``printers.conf``." msgstr "" @@ -1749,16 +1928,18 @@ msgid "" "filenames where the extension is not ``bat``? Some incorrect attempts:" msgstr "" "Agora, considere complicar um pouco o problema; e se você desejar\n" -"corresponder com nomes de arquivos onde a extensão não é ``bat``? Algumas tentativas\n" +"corresponder com nomes de arquivos onde a extensão não é ``bat``? Algumas " +"tentativas\n" "incorretas::" #: ../../howto/regex.rst:1008 msgid "" "``.*[.][^b].*$`` The first attempt above tries to exclude ``bat`` by " -"requiring that the first character of the extension is not a ``b``. This is" -" wrong, because the pattern also doesn't match ``foo.bar``." +"requiring that the first character of the extension is not a ``b``. This is " +"wrong, because the pattern also doesn't match ``foo.bar``." msgstr "" -"``.*[.][^b].*$`` A primeira tentativa acima tenta excluir bat, exigindo que o primeiro caractere da\n" +"``.*[.][^b].*$`` A primeira tentativa acima tenta excluir bat, exigindo que " +"o primeiro caractere da\n" "extensão não é um b. Isso é errado, porque o padrão também não corresponde\n" "``foo.bar``::" @@ -1771,16 +1952,20 @@ msgid "" "The expression gets messier when you try to patch up the first solution by " "requiring one of the following cases to match: the first character of the " "extension isn't ``b``; the second character isn't ``a``; or the third " -"character isn't ``t``. This accepts ``foo.bar`` and rejects " -"``autoexec.bat``, but it requires a three-letter extension and won't accept " -"a filename with a two-letter extension such as ``sendmail.cf``. We'll " -"complicate the pattern again in an effort to fix it." +"character isn't ``t``. This accepts ``foo.bar`` and rejects ``autoexec." +"bat``, but it requires a three-letter extension and won't accept a filename " +"with a two-letter extension such as ``sendmail.cf``. We'll complicate the " +"pattern again in an effort to fix it." msgstr "" "A expressão fica mais confusa se você tentar remendar a primeira solução,\n" -"exigindo que uma das seguintes situações corresponda: o primeiro caractere da extensão não é ``b``; o\n" -"segundo caractere não é ``a``; ou o terceiro caractere não é ``t``. Isso aceita\n" -"``foo.bar`` e rejeita ``autoexec.bat``, mas requer uma extensão de três letras e não\n" -"aceitará um nome de arquivo com uma extensão de duas letras, tal como ``sendmail.cf``.\n" +"exigindo que uma das seguintes situações corresponda: o primeiro caractere " +"da extensão não é ``b``; o\n" +"segundo caractere não é ``a``; ou o terceiro caractere não é ``t``. Isso " +"aceita\n" +"``foo.bar`` e rejeita ``autoexec.bat``, mas requer uma extensão de três " +"letras e não\n" +"aceitará um nome de arquivo com uma extensão de duas letras, tal como " +"``sendmail.cf``.\n" "Nós iremos complicar o padrão novamente em um esforço para corrigi-lo::" #: ../../howto/regex.rst:1022 @@ -1793,8 +1978,10 @@ msgid "" "order to allow matching extensions shorter than three characters, such as " "``sendmail.cf``." msgstr "" -"Na terceira tentativa, a segunda e terceira letras são todas consideradas opcionais, a fim de\n" -"permitir correspondência com as extensões mais curtas do que três caracteres, tais como\n" +"Na terceira tentativa, a segunda e terceira letras são todas consideradas " +"opcionais, a fim de\n" +"permitir correspondência com as extensões mais curtas do que três " +"caracteres, tais como\n" "``sendmail.cf``." #: ../../howto/regex.rst:1028 @@ -1804,8 +1991,10 @@ msgid "" "``bat`` and ``exe`` as extensions, the pattern would get even more " "complicated and confusing." msgstr "" -"O padrão está ficando realmente muito complicado agora, o que faz com que seja difícil de ler e\n" -"compreender. Pior ainda, se o problema mudar e você quiser excluir tanto ``bat`` quanto ``exe``\n" +"O padrão está ficando realmente muito complicado agora, o que faz com que " +"seja difícil de ler e\n" +"compreender. Pior ainda, se o problema mudar e você quiser excluir tanto " +"``bat`` quanto ``exe``\n" "como extensões, o padrão iria ficar ainda mais complicado e confuso." #: ../../howto/regex.rst:1033 @@ -1815,15 +2004,18 @@ msgstr "Um lookahead negativo elimina toda esta confusão::" #: ../../howto/regex.rst:1035 msgid "" "``.*[.](?!bat$)[^.]*$`` The negative lookahead means: if the expression " -"``bat`` doesn't match at this point, try the rest of the pattern; if " -"``bat$`` does match, the whole pattern will fail. The trailing ``$`` is " -"required to ensure that something like ``sample.batch``, where the extension" -" only starts with ``bat``, will be allowed. The ``[^.]*`` makes sure that " -"the pattern works when there are multiple dots in the filename." -msgstr "" -"``.*[.](?!bat$).*$`` O lookahead negativo significa: se a expressão ``bat`` não corresponder até este momento,\n" -"tente o resto do padrão; se ``bat$`` tem correspondência, todo o padrão irá falhar. O\n" -"final ``$`` é necessário para garantir que algo como ``sample.batch``, onde a extensão\n" +"``bat`` doesn't match at this point, try the rest of the pattern; if ``bat" +"$`` does match, the whole pattern will fail. The trailing ``$`` is required " +"to ensure that something like ``sample.batch``, where the extension only " +"starts with ``bat``, will be allowed. The ``[^.]*`` makes sure that the " +"pattern works when there are multiple dots in the filename." +msgstr "" +"``.*[.](?!bat$).*$`` O lookahead negativo significa: se a expressão ``bat`` " +"não corresponder até este momento,\n" +"tente o resto do padrão; se ``bat$`` tem correspondência, todo o padrão irá " +"falhar. O\n" +"final ``$`` é necessário para garantir que algo como ``sample.batch``, onde " +"a extensão\n" "só começa com o ``bat``, será permitido." #: ../../howto/regex.rst:1042 @@ -1832,8 +2024,10 @@ msgid "" "alternative inside the assertion. The following pattern excludes filenames " "that end in either ``bat`` or ``exe``:" msgstr "" -"Excluir uma outra extensão de nome de arquivo agora é fácil; basta fazer a adição de uma\n" -"alternativa dentro da afirmação. O padrão a seguir exclui os nomes de arquivos que\n" +"Excluir uma outra extensão de nome de arquivo agora é fácil; basta fazer a " +"adição de uma\n" +"alternativa dentro da afirmação. O padrão a seguir exclui os nomes de " +"arquivos que\n" "terminam com ``bat`` ou ``exe``::" #: ../../howto/regex.rst:1046 @@ -1850,8 +2044,10 @@ msgid "" "Regular expressions are also commonly used to modify strings in various " "ways, using the following pattern methods:" msgstr "" -"Até este ponto, nós simplesmente realizamos pesquisas em uma string estática. As\n" -"expressões regulares também são comumente usadas para modificar strings através de várias\n" +"Até este ponto, nós simplesmente realizamos pesquisas em uma string " +"estática. As\n" +"expressões regulares também são comumente usadas para modificar strings " +"através de várias\n" "maneiras, usando os seguintes métodos padrão:" #: ../../howto/regex.rst:1059 @@ -1861,8 +2057,8 @@ msgstr "``split()``" #: ../../howto/regex.rst:1059 msgid "Split the string into a list, splitting it wherever the RE matches" msgstr "" -"Divide a string em uma lista, dividindo-a onde quer que haja correspondência" -" com a RE " +"Divide a string em uma lista, dividindo-a onde quer que haja correspondência " +"com a RE " #: ../../howto/regex.rst:1062 msgid "``sub()``" @@ -1893,9 +2089,9 @@ msgstr "Dividindo as Strings" #: ../../howto/regex.rst:1074 msgid "" "The :meth:`~re.Pattern.split` method of a pattern splits a string apart " -"wherever the RE matches, returning a list of the pieces. It's similar to the" -" :meth:`~str.split` method of strings but provides much more generality in " -"the delimiters that you can split by; string :meth:`!split` only supports " +"wherever the RE matches, returning a list of the pieces. It's similar to " +"the :meth:`~str.split` method of strings but provides much more generality " +"in the delimiters that you can split by; string :meth:`!split` only supports " "splitting by whitespace or by a fixed string. As you'd expect, there's a " "module-level :func:`re.split` function, too." msgstr "" @@ -1903,13 +2099,16 @@ msgstr "" #: ../../howto/regex.rst:1085 msgid "" "Split *string* by the matches of the regular expression. If capturing " -"parentheses are used in the RE, then their contents will also be returned as" -" part of the resulting list. If *maxsplit* is nonzero, at most *maxsplit* " +"parentheses are used in the RE, then their contents will also be returned as " +"part of the resulting list. If *maxsplit* is nonzero, at most *maxsplit* " "splits are performed." msgstr "" -"Divide a string usando a correspondência com uma expressão regular. Se os parênteses de\n" -"captura forem utilizados na RE, então seu conteúdo também será retornado como\n" -"parte da lista resultante. Se maxsplit é diferente de zero, um número de divisões\n" +"Divide a string usando a correspondência com uma expressão regular. Se os " +"parênteses de\n" +"captura forem utilizados na RE, então seu conteúdo também será retornado " +"como\n" +"parte da lista resultante. Se maxsplit é diferente de zero, um número de " +"divisões\n" "``maxsplit`` será executado." #: ../../howto/regex.rst:1090 @@ -1920,20 +2119,24 @@ msgid "" "the following example, the delimiter is any sequence of non-alphanumeric " "characters. ::" msgstr "" -"Você pode limitar o número de divisões feitas, passando um valor para maxsplit.\n" -"Quando ``maxsplit`` é diferente de zero, um determinado número de divisões ``maxsplit`` será executado, e o\n" -"restante da string é retornado como o elemento final da lista. No exemplo a seguir, o\n" +"Você pode limitar o número de divisões feitas, passando um valor para " +"maxsplit.\n" +"Quando ``maxsplit`` é diferente de zero, um determinado número de divisões " +"``maxsplit`` será executado, e o\n" +"restante da string é retornado como o elemento final da lista. No exemplo a " +"seguir, o\n" "delimitador é qualquer sequência de caracteres não alfanuméricos." #: ../../howto/regex.rst:1102 msgid "" -"Sometimes you're not only interested in what the text between delimiters is," -" but also need to know what the delimiter was. If capturing parentheses are" -" used in the RE, then their values are also returned as part of the list. " +"Sometimes you're not only interested in what the text between delimiters is, " +"but also need to know what the delimiter was. If capturing parentheses are " +"used in the RE, then their values are also returned as part of the list. " "Compare the following calls::" msgstr "" "Às vezes, você não está apenas interessado no que o texto que está entre\n" -"delimitadores contém, mas também precisa saber qual o delimitador foi usado. Se os parênteses\n" +"delimitadores contém, mas também precisa saber qual o delimitador foi usado. " +"Se os parênteses\n" "de captura são utilizados na RE, então os respectivos valores são também\n" "retornados como parte da lista. Compare as seguintes chamadas:" @@ -1963,8 +2166,10 @@ msgid "" "occurrences of the RE in *string* by the replacement *replacement*. If the " "pattern isn't found, *string* is returned unchanged." msgstr "" -"Retorna a string obtida substituindo as ocorrências mais à esquerda não sobrepostas\n" -"da RE em ``string`` pela substituição ``replacement``. Se o padrão não for encontrado, a\n" +"Retorna a string obtida substituindo as ocorrências mais à esquerda não " +"sobrepostas\n" +"da RE em ``string`` pela substituição ``replacement``. Se o padrão não for " +"encontrado, a\n" "``string`` é retornada inalterada." #: ../../howto/regex.rst:1139 @@ -1973,8 +2178,10 @@ msgid "" "to be replaced; *count* must be a non-negative integer. The default value " "of 0 means to replace all occurrences." msgstr "" -"O argumento opcional ``count`` é o número máximo de ocorrências do padrão a ser\n" -"substituído; ``count`` deve ser um número inteiro não negativo. O valor padrão ``0``\n" +"O argumento opcional ``count`` é o número máximo de ocorrências do padrão a " +"ser\n" +"substituído; ``count`` deve ser um número inteiro não negativo. O valor " +"padrão ``0``\n" "significa para substituir todas as ocorrências." #: ../../howto/regex.rst:1143 @@ -1985,9 +2192,9 @@ msgstr "" #: ../../howto/regex.rst:1152 msgid "" -"The :meth:`~re.Pattern.subn` method does the same work, but returns a " -"2-tuple containing the new string value and the number of replacements that" -" were performed::" +"The :meth:`~re.Pattern.subn` method does the same work, but returns a 2-" +"tuple containing the new string value and the number of replacements that " +"were performed::" msgstr "" #: ../../howto/regex.rst:1161 @@ -2000,9 +2207,9 @@ msgstr "" msgid "" "If *replacement* is a string, any backslash escapes in it are processed. " "That is, ``\\n`` is converted to a single newline character, ``\\r`` is " -"converted to a carriage return, and so forth. Unknown escapes such as " -"``\\&`` are left alone. Backreferences, such as ``\\6``, are replaced with " -"the substring matched by the corresponding group in the RE. This lets you " +"converted to a carriage return, and so forth. Unknown escapes such as ``" +"\\&`` are left alone. Backreferences, such as ``\\6``, are replaced with the " +"substring matched by the corresponding group in the RE. This lets you " "incorporate portions of the original text in the resulting replacement " "string." msgstr "" @@ -2012,40 +2219,50 @@ msgid "" "This example matches the word ``section`` followed by a string enclosed in " "``{``, ``}``, and changes ``section`` to ``subsection``::" msgstr "" -"Este exemplo corresponde com a palavra ``section``, seguida por uma string colocada entre\n" +"Este exemplo corresponde com a palavra ``section``, seguida por uma string " +"colocada entre\n" "``{, }`` e altera ``section`` para ``subsection``:" #: ../../howto/regex.rst:1182 msgid "" -"There's also a syntax for referring to named groups as defined by the " -"``(?P...)`` syntax. ``\\g`` will use the substring matched by " -"the group named ``name``, and ``\\g`` uses the corresponding group" -" number. ``\\g<2>`` is therefore equivalent to ``\\2``, but isn't ambiguous" -" in a replacement string such as ``\\g<2>0``. (``\\20`` would be " -"interpreted as a reference to group 20, not a reference to group 2 followed " -"by the literal character ``'0'``.) The following substitutions are all " -"equivalent, but use all three variations of the replacement string. ::" +"There's also a syntax for referring to named groups as defined by the ``(?" +"P...)`` syntax. ``\\g`` will use the substring matched by the " +"group named ``name``, and ``\\g`` uses the corresponding group " +"number. ``\\g<2>`` is therefore equivalent to ``\\2``, but isn't ambiguous " +"in a replacement string such as ``\\g<2>0``. (``\\20`` would be interpreted " +"as a reference to group 20, not a reference to group 2 followed by the " +"literal character ``'0'``.) The following substitutions are all equivalent, " +"but use all three variations of the replacement string. ::" msgstr "" "Há também uma sintaxe para se referir a grupos nomeados como definido pela\n" -"sintaxe ``(?P...)``. ``\\g`` usará a substring correspondida pelo grupo\n" -"com nome ``name`` e ``\\g`` utiliza o número do grupo correspondente. ``.\\g<2>`` é,\n" -"portanto, equivalente a ``\\2``, mas não é ambígua em uma string de substituição (replacement), tal\n" -"como ``\\g<2>0``. (``\\20`` seria interpretado como uma referência ao grupo de ``20``, e não\n" -"uma referência ao grupo ``2`` seguido pelo caractere literal ``0``). As seguintes substituições são todas equivalentes, são usadas todas as três variações da string de\n" +"sintaxe ``(?P...)``. ``\\g`` usará a substring correspondida " +"pelo grupo\n" +"com nome ``name`` e ``\\g`` utiliza o número do grupo " +"correspondente. ``.\\g<2>`` é,\n" +"portanto, equivalente a ``\\2``, mas não é ambígua em uma string de " +"substituição (replacement), tal\n" +"como ``\\g<2>0``. (``\\20`` seria interpretado como uma referência ao grupo " +"de ``20``, e não\n" +"uma referência ao grupo ``2`` seguido pelo caractere literal ``0``). As " +"seguintes substituições são todas equivalentes, são usadas todas as três " +"variações da string de\n" "substituição (replacement)." #: ../../howto/regex.rst:1199 msgid "" -"*replacement* can also be a function, which gives you even more control. If" -" *replacement* is a function, the function is called for every non-" -"overlapping occurrence of *pattern*. On each call, the function is passed a" -" :ref:`match object ` argument for the match and can use this" -" information to compute the desired replacement string and return it." +"*replacement* can also be a function, which gives you even more control. If " +"*replacement* is a function, the function is called for every non-" +"overlapping occurrence of *pattern*. On each call, the function is passed " +"a :ref:`match object ` argument for the match and can use " +"this information to compute the desired replacement string and return it." msgstr "" -"A substituição (replacement) também pode ser uma função, o que dá a você ainda mais controle. Se a\n" -"substituição (replacement) é uma função, a função é chamada para cada ocorrência não\n" +"A substituição (replacement) também pode ser uma função, o que dá a você " +"ainda mais controle. Se a\n" +"substituição (replacement) é uma função, a função é chamada para cada " +"ocorrência não\n" "sobreposta de padrão. Em cada chamada, a função passa o argumento\n" -"MatchObject para a correspondência e pode usar esta informação para calcular a\n" +"MatchObject para a correspondência e pode usar esta informação para calcular " +"a\n" "string de substituição desejada e fazer seu retorno." #: ../../howto/regex.rst:1205 @@ -2060,16 +2277,20 @@ msgstr "" msgid "" "When using the module-level :func:`re.sub` function, the pattern is passed " "as the first argument. The pattern may be provided as an object or as a " -"string; if you need to specify regular expression flags, you must either use" -" a pattern object as the first parameter, or use embedded modifiers in the " +"string; if you need to specify regular expression flags, you must either use " +"a pattern object as the first parameter, or use embedded modifiers in the " "pattern string, e.g. ``sub(\"(?i)b+\", \"x\", \"bbbb BBBB\")`` returns ``'x " "x'``." msgstr "" -"Ao utilizar a função de nível de módulo ``re.sub()``, o padrão é passado como o primeiro\n" -"argumento. O padrão pode ser fornecido como um objeto ou como uma string; se\n" -"você precisa especificar flags de expressões regulares, você deve usar um objeto\n" +"Ao utilizar a função de nível de módulo ``re.sub()``, o padrão é passado " +"como o primeiro\n" +"argumento. O padrão pode ser fornecido como um objeto ou como uma string; " +"se\n" +"você precisa especificar flags de expressões regulares, você deve usar um " +"objeto\n" "padrão como o primeiro parâmetro, ou usar modificadores embutidos na string\n" -"padrão, por exemplo, ``sub(\"(?i)b+\", \"x\", \"bbbb BBBB\")`` retorna ``x x``." +"padrão, por exemplo, ``sub(\"(?i)b+\", \"x\", \"bbbb BBBB\")`` retorna ``x " +"x``." #: ../../howto/regex.rst:1225 msgid "Common Problems" @@ -2079,12 +2300,15 @@ msgstr "Problemas Comuns" msgid "" "Regular expressions are a powerful tool for some applications, but in some " "ways their behaviour isn't intuitive and at times they don't behave the way " -"you may expect them to. This section will point out some of the most common" -" pitfalls." -msgstr "" -"Expressões regulares são uma ferramenta poderosa para algumas aplicações, mas de\n" -"certa forma o seu comportamento não é intuitivo, e às vezes, as RE não se comportam\n" -"da maneira que você espera que elas se comportem. Esta seção irá apontar algumas das\n" +"you may expect them to. This section will point out some of the most common " +"pitfalls." +msgstr "" +"Expressões regulares são uma ferramenta poderosa para algumas aplicações, " +"mas de\n" +"certa forma o seu comportamento não é intuitivo, e às vezes, as RE não se " +"comportam\n" +"da maneira que você espera que elas se comportem. Esta seção irá apontar " +"algumas das\n" "armadilhas mais comuns." #: ../../howto/regex.rst:1233 @@ -2094,13 +2318,13 @@ msgstr "Usando String Methods" #: ../../howto/regex.rst:1235 msgid "" "Sometimes using the :mod:`re` module is a mistake. If you're matching a " -"fixed string, or a single character class, and you're not using any " -":mod:`re` features such as the :const:`~re.IGNORECASE` flag, then the full " -"power of regular expressions may not be required. Strings have several " -"methods for performing operations with fixed strings and they're usually " -"much faster, because the implementation is a single small C loop that's been" -" optimized for the purpose, instead of the large, more generalized regular " -"expression engine." +"fixed string, or a single character class, and you're not using any :mod:" +"`re` features such as the :const:`~re.IGNORECASE` flag, then the full power " +"of regular expressions may not be required. Strings have several methods for " +"performing operations with fixed strings and they're usually much faster, " +"because the implementation is a single small C loop that's been optimized " +"for the purpose, instead of the large, more generalized regular expression " +"engine." msgstr "" #: ../../howto/regex.rst:1243 @@ -2108,20 +2332,20 @@ msgid "" "One example might be replacing a single fixed string with another one; for " "example, you might replace ``word`` with ``deed``. :func:`re.sub` seems " "like the function to use for this, but consider the :meth:`~str.replace` " -"method. Note that :meth:`!replace` will also replace ``word`` inside words," -" turning ``swordfish`` into ``sdeedfish``, but the naive RE ``word`` would " +"method. Note that :meth:`!replace` will also replace ``word`` inside words, " +"turning ``swordfish`` into ``sdeedfish``, but the naive RE ``word`` would " "have done that, too. (To avoid performing the substitution on parts of " -"words, the pattern would have to be ``\\bword\\b``, in order to require that" -" ``word`` have a word boundary on either side. This takes the job beyond " -":meth:`!replace`'s abilities.)" +"words, the pattern would have to be ``\\bword\\b``, in order to require that " +"``word`` have a word boundary on either side. This takes the job beyond :" +"meth:`!replace`'s abilities.)" msgstr "" #: ../../howto/regex.rst:1252 msgid "" "Another common task is deleting every occurrence of a single character from " "a string or replacing it with another single character. You might do this " -"with something like ``re.sub('\\n', ' ', S)``, but :meth:`~str.translate` is" -" capable of doing both tasks and will be faster than any regular expression " +"with something like ``re.sub('\\n', ' ', S)``, but :meth:`~str.translate` is " +"capable of doing both tasks and will be faster than any regular expression " "operation can be." msgstr "" @@ -2130,7 +2354,8 @@ msgid "" "In short, before turning to the :mod:`re` module, consider whether your " "problem can be solved with a faster and simpler string method." msgstr "" -"Em suma, antes de recorrer ao o módulo ``re``, considere se o seu problema pode ser\n" +"Em suma, antes de recorrer ao o módulo ``re``, considere se o seu problema " +"pode ser\n" "resolvido com um método string mais rápido e mais simples." #: ../../howto/regex.rst:1263 @@ -2155,23 +2380,28 @@ msgstr "" #: ../../howto/regex.rst:1284 msgid "" -"Sometimes you'll be tempted to keep using :func:`re.match`, and just add " -"``.*`` to the front of your RE. Resist this temptation and use " -":func:`re.search` instead. The regular expression compiler does some " -"analysis of REs in order to speed up the process of looking for a match. " -"One such analysis figures out what the first character of a match must be; " -"for example, a pattern starting with ``Crow`` must match starting with a " -"``'C'``. The analysis lets the engine quickly scan through the string " -"looking for the starting character, only trying the full match if a ``'C'`` " -"is found." -msgstr "" -"Às vezes, você vai ficar tentado a continuar usando ``re.match()``, e apenas adicionar ``.*`` ao início de sua RE.\n" +"Sometimes you'll be tempted to keep using :func:`re.match`, and just add ``." +"*`` to the front of your RE. Resist this temptation and use :func:`re." +"search` instead. The regular expression compiler does some analysis of REs " +"in order to speed up the process of looking for a match. One such analysis " +"figures out what the first character of a match must be; for example, a " +"pattern starting with ``Crow`` must match starting with a ``'C'``. The " +"analysis lets the engine quickly scan through the string looking for the " +"starting character, only trying the full match if a ``'C'`` is found." +msgstr "" +"Às vezes, você vai ficar tentado a continuar usando ``re.match()``, e apenas " +"adicionar ``.*`` ao início de sua RE.\n" "Resista a essa tentação e use ``re.search()`` em vez disso. O\n" -"compilador de expressão regular faz alguma análise das REs, a fim de acelerar o\n" -"processo de procura de uma correspondência. Tal análise descobre o que o primeiro\n" -"caractere de uma string deve ser; por exemplo, um padrão começando com ``Crow``\n" -"deve corresponder com algo iniciando com ``C``. A análise permite que o mecanismo faça a varredura rapidamente através\n" -"da string a procura do caractere inicial, apenas tentando a combinação completa se um ``C`` for encontrado." +"compilador de expressão regular faz alguma análise das REs, a fim de " +"acelerar o\n" +"processo de procura de uma correspondência. Tal análise descobre o que o " +"primeiro\n" +"caractere de uma string deve ser; por exemplo, um padrão começando com " +"``Crow``\n" +"deve corresponder com algo iniciando com ``C``. A análise permite que o " +"mecanismo faça a varredura rapidamente através\n" +"da string a procura do caractere inicial, apenas tentando a combinação " +"completa se um ``C`` for encontrado." #: ../../howto/regex.rst:1293 msgid "" @@ -2179,8 +2409,10 @@ msgid "" "the string and then backtracking to find a match for the rest of the RE. " "Use :func:`re.search` instead." msgstr "" -"Adicionar um ``.*`` evita essa otimização, sendo necessário a varredura até o final da string e, em seguida, retroceder\n" -"para encontrar uma correspondência para o resto da RE. Use ``re.search()`` em vez disso." +"Adicionar um ``.*`` evita essa otimização, sendo necessário a varredura até " +"o final da string e, em seguida, retroceder\n" +"para encontrar uma correspondência para o resto da RE. Use ``re.search()`` " +"em vez disso." #: ../../howto/regex.rst:1299 msgid "Greedy versus Non-Greedy" @@ -2190,20 +2422,24 @@ msgstr "Gulosos versus não Gulosos" msgid "" "When repeating a regular expression, as in ``a*``, the resulting action is " "to consume as much of the pattern as possible. This fact often bites you " -"when you're trying to match a pair of balanced delimiters, such as the angle" -" brackets surrounding an HTML tag. The naive pattern for matching a single " +"when you're trying to match a pair of balanced delimiters, such as the angle " +"brackets surrounding an HTML tag. The naive pattern for matching a single " "HTML tag doesn't work because of the greedy nature of ``.*``. ::" msgstr "" -"Ao repetir uma expressão regular, como em ``a*``, a ação resultante é consumir o tanto do\n" -"padrão quanto possível. Este fato, muitas vezes derruba você quando você está tentando\n" -"corresponder com um par de delimitadores balanceados, tal como os colchetes que cercam uma tag\n" -"HTML. O padrão ingênuo para combinar uma única tag HTML não funciona por causa\n" +"Ao repetir uma expressão regular, como em ``a*``, a ação resultante é " +"consumir o tanto do\n" +"padrão quanto possível. Este fato, muitas vezes derruba você quando você " +"está tentando\n" +"corresponder com um par de delimitadores balanceados, tal como os colchetes " +"que cercam uma tag\n" +"HTML. O padrão ingênuo para combinar uma única tag HTML não funciona por " +"causa\n" "da natureza gulosa de ``.*``." #: ../../howto/regex.rst:1315 msgid "" -"The RE matches the ``'<'`` in ``''``, and the ``.*`` consumes the rest" -" of the string. There's still more left in the RE, though, and the ``>`` " +"The RE matches the ``'<'`` in ``''``, and the ``.*`` consumes the rest " +"of the string. There's still more left in the RE, though, and the ``>`` " "can't match at the end of the string, so the regular expression engine has " "to backtrack character by character until it finds a match for the ``>``. " "The final match extends from the ``'<'`` in ``''`` to the ``'>'`` in " @@ -2212,16 +2448,20 @@ msgstr "" #: ../../howto/regex.rst:1322 msgid "" -"In this case, the solution is to use the non-greedy qualifiers ``*?``, " -"``+?``, ``??``, or ``{m,n}?``, which match as *little* text as possible. In" -" the above example, the ``'>'`` is tried immediately after the first ``'<'``" -" matches, and when it fails, the engine advances a character at a time, " +"In this case, the solution is to use the non-greedy qualifiers ``*?``, ``+?" +"``, ``??``, or ``{m,n}?``, which match as *little* text as possible. In the " +"above example, the ``'>'`` is tried immediately after the first ``'<'`` " +"matches, and when it fails, the engine advances a character at a time, " "retrying the ``'>'`` at every step. This produces just the right result::" msgstr "" -"Neste caso, a solução é usar os qualificadores não-gulosos ``*?, +?,??``, or ``{m,n}?``,\n" -"que corresponde com o mínimo de texto possível. No exemplo acima, o ``>`` é tentado\n" -"imediatamente após a primeira correspondência de ``<``, e quando ele falhar, o mecanismo avança\n" -"um caractere de cada vez, experimentado ``>`` a cada passo. Isso produz justamente o\n" +"Neste caso, a solução é usar os qualificadores não-gulosos ``*?, +?,??``, or " +"``{m,n}?``,\n" +"que corresponde com o mínimo de texto possível. No exemplo acima, o ``>`` é " +"tentado\n" +"imediatamente após a primeira correspondência de ``<``, e quando ele falhar, " +"o mecanismo avança\n" +"um caractere de cada vez, experimentado ``>`` a cada passo. Isso produz " +"justamente o\n" "resultado correto:" #: ../../howto/regex.rst:1331 @@ -2233,9 +2473,13 @@ msgid "" "patterns will be *very* complicated. Use an HTML or XML parser module for " "such tasks.)" msgstr "" -"(Note que a análise de HTML ou XML com expressões regulares é dolorosa. Padrões\n" -"\"sujos e rápidos\" irão lidar com casos comuns, mas HTML e XML tem casos especiais\n" -"que irão quebrar expressões regulares óbvias; com o tempo, expressões regulares que você venha a escrever para lidar com todos os casos possíveis, se tornarão um padrão muito\n" +"(Note que a análise de HTML ou XML com expressões regulares é dolorosa. " +"Padrões\n" +"\"sujos e rápidos\" irão lidar com casos comuns, mas HTML e XML tem casos " +"especiais\n" +"que irão quebrar expressões regulares óbvias; com o tempo, expressões " +"regulares que você venha a escrever para lidar com todos os casos possíveis, " +"se tornarão um padrão muito\n" "complicado. Use um módulo de análise de HTML ou XML para tais tarefas.)" #: ../../howto/regex.rst:1339 @@ -2245,12 +2489,14 @@ msgstr "Usando re.VERBOSE" #: ../../howto/regex.rst:1341 msgid "" "By now you've probably noticed that regular expressions are a very compact " -"notation, but they're not terribly readable. REs of moderate complexity can" -" become lengthy collections of backslashes, parentheses, and metacharacters," -" making them difficult to read and understand." -msgstr "" -"Nesse momento, você provavelmente deve ter notado que as expressões regulares são de uma notação\n" -"muito compacta, mas não é possível dizer que são legíveis. REs de complexidade\n" +"notation, but they're not terribly readable. REs of moderate complexity can " +"become lengthy collections of backslashes, parentheses, and metacharacters, " +"making them difficult to read and understand." +msgstr "" +"Nesse momento, você provavelmente deve ter notado que as expressões " +"regulares são de uma notação\n" +"muito compacta, mas não é possível dizer que são legíveis. REs de " +"complexidade\n" "moderada podem se tornar longas coleções de barras invertidas, parênteses e\n" "metacaracteres, fazendo com que se tornem difíceis de ler e compreender." @@ -2266,17 +2512,23 @@ msgid "" "The ``re.VERBOSE`` flag has several effects. Whitespace in the regular " "expression that *isn't* inside a character class is ignored. This means " "that an expression such as ``dog | cat`` is equivalent to the less readable " -"``dog|cat``, but ``[a b]`` will still match the characters ``'a'``, ``'b'``," -" or a space. In addition, you can also put comments inside a RE; comments " +"``dog|cat``, but ``[a b]`` will still match the characters ``'a'``, ``'b'``, " +"or a space. In addition, you can also put comments inside a RE; comments " "extend from a ``#`` character to the next newline. When used with triple-" "quoted strings, this enables REs to be formatted more neatly::" msgstr "" -"A flag ``re.VERBOSE`` produz vários efeitos. Espaço em branco na expressão regular que\n" -"não está dentro de uma classe de caracteres é ignorado. Isto significa que uma\n" -"expressão como ``dog | cat`` é equivalente ao menos legível ``dog|cat``, mas ``[a b]``\n" -"ainda vai coincidir com os caracteres ``a``, ``b``, ou um ``espaço``. Além disso, você\n" -"também pode colocar comentários dentro de uma RE; comentários se estendem de um\n" -"caractere ``#`` até a próxima nova linha. Quando usados junto com strings de aspas\n" +"A flag ``re.VERBOSE`` produz vários efeitos. Espaço em branco na expressão " +"regular que\n" +"não está dentro de uma classe de caracteres é ignorado. Isto significa que " +"uma\n" +"expressão como ``dog | cat`` é equivalente ao menos legível ``dog|cat``, mas " +"``[a b]``\n" +"ainda vai coincidir com os caracteres ``a``, ``b``, ou um ``espaço``. Além " +"disso, você\n" +"também pode colocar comentários dentro de uma RE; comentários se estendem de " +"um\n" +"caractere ``#`` até a próxima nova linha. Quando usados junto com strings de " +"aspas\n" "triplas, isso permite as REs serem formatadas mais ordenadamente::" #: ../../howto/regex.rst:1367 @@ -2294,9 +2546,11 @@ msgid "" "encountered that weren't covered here? If so, please send suggestions for " "improvements to the author." msgstr "" -"Expressões regulares são um tópico complicado. Esse documento ajudou você a compreendê-las?\n" +"Expressões regulares são um tópico complicado. Esse documento ajudou você a " +"compreendê-las?\n" "Existem partes que foram pouco claras, ou situações que você vivenciou\n" -"que não foram abordadas aqui? Se assim for, por favor, envie sugestões de melhorias\n" +"que não foram abordadas aqui? Se assim for, por favor, envie sugestões de " +"melhorias\n" "para o autor. " #: ../../howto/regex.rst:1380 diff --git a/howto/sockets.po b/howto/sockets.po index ffb9529de..8810342a3 100644 --- a/howto/sockets.po +++ b/howto/sockets.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,8 +46,8 @@ msgid "" "misunderstood technologies around. This is a 10,000 foot overview of " "sockets. It's not really a tutorial - you'll still have work to do in " "getting things operational. It doesn't cover the fine points (and there are " -"a lot of them), but I hope it will give you enough background to begin using" -" them decently." +"a lot of them), but I hope it will give you enough background to begin using " +"them decently." msgstr "" "Os soquetes são usados em quase todos os lugares, mas são uma das " "tecnologias mais mal compreendidas. Esta é uma visão geral contendo 10.000 " @@ -64,16 +66,16 @@ msgid "" "at least 99% of the sockets in use. And I'll only talk about STREAM (i.e. " "TCP) sockets - unless you really know what you're doing (in which case this " "HOWTO isn't for you!), you'll get better behavior and performance from a " -"STREAM socket than anything else. I will try to clear up the mystery of what" -" a socket is, as well as some hints on how to work with blocking and non-" +"STREAM socket than anything else. I will try to clear up the mystery of what " +"a socket is, as well as some hints on how to work with blocking and non-" "blocking sockets. But I'll start by talking about blocking sockets. You'll " "need to know how they work before dealing with non-blocking sockets." msgstr "" "Só trataremos dos soquetes INET (ou seja, IPv4), no entanto, os mesmos " "representam ao menos 99% dos soquetes que estão atualmente em uso. Só " "estudaremos os soquetes STREAM (ou seja, TCP) - a menos que você realmente " -"saiba o que está fazendo (nesse caso, este HOWTO não é para você!), terás um" -" melhor conhecimento sobre o comportamento e o desempenho dos soquetes " +"saiba o que está fazendo (nesse caso, este HOWTO não é para você!), terás um " +"melhor conhecimento sobre o comportamento e o desempenho dos soquetes " "STREAM do que qualquer outra coisa. Tentarei aclarar o mistério sobre o que " "realmente é um soquete, bem como, apresentarei dicas de como trabalhar com " "soquetes bloqueantes e os não bloqueantes. Começaremos o estundo falando da " @@ -86,17 +88,17 @@ msgid "" "mean a number of subtly different things, depending on context. So first, " "let's make a distinction between a \"client\" socket - an endpoint of a " "conversation, and a \"server\" socket, which is more like a switchboard " -"operator. The client application (your browser, for example) uses \"client\"" -" sockets exclusively; the web server it's talking to uses both \"server\" " +"operator. The client application (your browser, for example) uses \"client\" " +"sockets exclusively; the web server it's talking to uses both \"server\" " "sockets and \"client\" sockets." msgstr "" "Parte do problema em compreender o funcionamento se dá pelo fato de que o " "\"soquete\" pode ter significados que são sutilmente diferentes, dependendo " "do contexto. Então, primeiro, vamos fazer uma distinção entre um soquete " "\"cliente\" - o ponto final de uma conversa e um soquete \"servidor\", que " -"mais parece como um operador de painel. O aplicativo Cliente (seu navegador," -" por exemplo) usa soquetes \"cliente\" exclusivos; O servidor Web com o qual" -" conversamos faz uso de soquetes \"servidor\" e soquetes de \"cliente\"." +"mais parece como um operador de painel. O aplicativo Cliente (seu navegador, " +"por exemplo) usa soquetes \"cliente\" exclusivos; O servidor Web com o qual " +"conversamos faz uso de soquetes \"servidor\" e soquetes de \"cliente\"." #: ../../howto/sockets.rst:40 msgid "History" @@ -117,12 +119,12 @@ msgstr "" #: ../../howto/sockets.rst:47 msgid "" "They were invented in Berkeley as part of the BSD flavor of Unix. They " -"spread like wildfire with the Internet. With good reason --- the combination" -" of sockets with INET makes talking to arbitrary machines around the world " +"spread like wildfire with the Internet. With good reason --- the combination " +"of sockets with INET makes talking to arbitrary machines around the world " "unbelievably easy (at least compared to other schemes)." msgstr "" -"Os mesmos foram criados em Berkeley como parte do saboroso BSD do Unix. Eles" -" se espalharam como um \"incêndios\" na Internet. Por uma boa razão --- a " +"Os mesmos foram criados em Berkeley como parte do saboroso BSD do Unix. Eles " +"se espalharam como um \"incêndios\" na Internet. Por uma boa razão --- a " "combinação do uso de soquetes com o INET permite conversas com as mais " "variadas máquinas existentes ao redor do mundo de uma forma incrivelmente " "fácil (pelo menos, em comparação com outras tecnologias semelhantes)." @@ -143,14 +145,14 @@ msgstr "" msgid "" "When the ``connect`` completes, the socket ``s`` can be used to send in a " "request for the text of the page. The same socket will read the reply, and " -"then be destroyed. That's right, destroyed. Client sockets are normally only" -" used for one exchange (or a small set of sequential exchanges)." +"then be destroyed. That's right, destroyed. Client sockets are normally only " +"used for one exchange (or a small set of sequential exchanges)." msgstr "" "Quando a ``connect`` (conexão) foi estabelecida, o socket ``s`` pode ser " "utilizado para enviar uma solicitação de texto para a página. O mesmo " -"soquete é que irá ler a resposta e, em seguida, o mesmo será destruído. Isso" -" mesmo, será destruído. Os soquetes de Clientes normalmente são usados " -"apenas numa única transação (troca) (ou um pequeno conjunto sequencial de " +"soquete é que irá ler a resposta e, em seguida, o mesmo será destruído. Isso " +"mesmo, será destruído. Os soquetes de Clientes normalmente são usados apenas " +"numa única transação (troca) (ou um pequeno conjunto sequencial de " "transações)." #: ../../howto/sockets.rst:70 @@ -158,31 +160,31 @@ msgid "" "What happens in the web server is a bit more complex. First, the web server " "creates a \"server socket\"::" msgstr "" -"O que acontece no lado do servidor Web é um pouco mais complexo. Primeiro, o" -" Servidor Web cria um \"soquete tipo servidor\"::" +"O que acontece no lado do servidor Web é um pouco mais complexo. Primeiro, o " +"Servidor Web cria um \"soquete tipo servidor\"::" #: ../../howto/sockets.rst:80 msgid "" "A couple things to notice: we used ``socket.gethostname()`` so that the " -"socket would be visible to the outside world. If we had used " -"``s.bind(('localhost', 80))`` or ``s.bind(('127.0.0.1', 80))`` we would " -"still have a \"server\" socket, but one that was only visible within the " -"same machine. ``s.bind(('', 80))`` specifies that the socket is reachable " -"by any address the machine happens to have." +"socket would be visible to the outside world. If we had used ``s." +"bind(('localhost', 80))`` or ``s.bind(('127.0.0.1', 80))`` we would still " +"have a \"server\" socket, but one that was only visible within the same " +"machine. ``s.bind(('', 80))`` specifies that the socket is reachable by any " +"address the machine happens to have." msgstr "" "Algumas coisas que deves observar: usamos ``socket.gethostname()`` para que " -"o soquete esteja visível ao mundo exterior. Se tivéssemos usado " -"``s.bind(('localhost', 80))`` ou ``s.bind(('127.0.0.1', 80))`` ainda " -"teríamos um soquete do tipo \"servidor\", mas o mesmo só estaria visível " -"dentro do computador em que está sendo executado. ``s.bind(('', 80))`` " -"determina que o soquete estará acessível por qualquer computador que possuas" -" o endereço IP do computador." +"o soquete esteja visível ao mundo exterior. Se tivéssemos usado ``s." +"bind(('localhost', 80))`` ou ``s.bind(('127.0.0.1', 80))`` ainda teríamos um " +"soquete do tipo \"servidor\", mas o mesmo só estaria visível dentro do " +"computador em que está sendo executado. ``s.bind(('', 80))`` determina que o " +"soquete estará acessível por qualquer computador que possuas o endereço IP " +"do computador." #: ../../howto/sockets.rst:87 msgid "" "A second thing to note: low number ports are usually reserved for \"well " -"known\" services (HTTP, SNMP etc). If you're playing around, use a nice high" -" number (4 digits)." +"known\" services (HTTP, SNMP etc). If you're playing around, use a nice high " +"number (4 digits)." msgstr "" "Uma segunda coisa que precisas observar é: as portas baixas, normalmente " "estão reservadas para serviços \"bem conhecidos\", tais como (HTTP, SNMP " @@ -191,8 +193,8 @@ msgstr "" #: ../../howto/sockets.rst:91 msgid "" -"Finally, the argument to ``listen`` tells the socket library that we want it" -" to queue up as many as 5 connect requests (the normal max) before refusing " +"Finally, the argument to ``listen`` tells the socket library that we want it " +"to queue up as many as 5 connect requests (the normal max) before refusing " "outside connections. If the rest of the code is written properly, that " "should be plenty." msgstr "" @@ -203,8 +205,8 @@ msgstr "" #: ../../howto/sockets.rst:95 msgid "" -"Now that we have a \"server\" socket, listening on port 80, we can enter the" -" mainloop of the web server::" +"Now that we have a \"server\" socket, listening on port 80, we can enter the " +"mainloop of the web server::" msgstr "" "Agora que temos um Socket tipo \"servidor\", que está ouvindo a porta 80, " "podemos entrar no mainloop do servidor web::" @@ -217,29 +219,27 @@ msgid "" "multiplex between our \"server\" socket and any active ``clientsocket``\\ s " "using ``select``. More about that later. The important thing to understand " "now is this: this is *all* a \"server\" socket does. It doesn't send any " -"data. It doesn't receive any data. It just produces \"client\" sockets. Each" -" ``clientsocket`` is created in response to some *other* \"client\" socket " +"data. It doesn't receive any data. It just produces \"client\" sockets. Each " +"``clientsocket`` is created in response to some *other* \"client\" socket " "doing a ``connect()`` to the host and port we're bound to. As soon as we've " -"created that ``clientsocket``, we go back to listening for more connections." -" The two \"clients\" are free to chat it up - they are using some " -"dynamically allocated port which will be recycled when the conversation " -"ends." +"created that ``clientsocket``, we go back to listening for more connections. " +"The two \"clients\" are free to chat it up - they are using some dynamically " +"allocated port which will be recycled when the conversation ends." msgstr "" "Na verdade, existem 3 formas gerais nas quais este loop pode ser " "implementado - despachando um handle que lide com o ``clientsocket``, " -"criando um novo processo que funcione com o ``clientsocket``, ou reestruture" -" o aplicativo para trabalhar com Sockets não bloqueáveis e multiplexar entre" -" os nossos Socket tipo \"servidor\" e qualquer ``cliente`` ativo que faça " -"uso do ``select``. Trataremos mais sobre isso posteriormente. O importante " -"que temos que saber neste momento é isso: isso é *tudo* o que um Socket tipo" -" \"Servidor\" irá fazer. O mesmo não enviar quaisquer dado. Não recebe " -"dados. Apenas produz Sockets \"cliente\". Cada ``clientsocket`` será criado " -"em resposta a algum *outro* Socket \"cliente\" que fará uma ``connect()`` ao" -" um determinado host numa determinada porta que estamos vinculados. Será " -"dessa forma que criamos aquele \"cliente\", voltaremos a ouvir mais " -"conexões. Os dois \"clientes\" são livres para conversar - eles estão usando" -" uma porta alocada dinamicamente que será descartada quando a conversa " -"terminar." +"criando um novo processo que funcione com o ``clientsocket``, ou reestruture " +"o aplicativo para trabalhar com Sockets não bloqueáveis e multiplexar entre " +"os nossos Socket tipo \"servidor\" e qualquer ``cliente`` ativo que faça uso " +"do ``select``. Trataremos mais sobre isso posteriormente. O importante que " +"temos que saber neste momento é isso: isso é *tudo* o que um Socket tipo " +"\"Servidor\" irá fazer. O mesmo não enviar quaisquer dado. Não recebe dados. " +"Apenas produz Sockets \"cliente\". Cada ``clientsocket`` será criado em " +"resposta a algum *outro* Socket \"cliente\" que fará uma ``connect()`` ao um " +"determinado host numa determinada porta que estamos vinculados. Será dessa " +"forma que criamos aquele \"cliente\", voltaremos a ouvir mais conexões. Os " +"dois \"clientes\" são livres para conversar - eles estão usando uma porta " +"alocada dinamicamente que será descartada quando a conversa terminar." #: ../../howto/sockets.rst:121 msgid "IPC" @@ -253,16 +253,16 @@ msgid "" "a shortcut around a couple of layers of network code and be quite a bit " "faster." msgstr "" -"Se precisas que o IPC seja rápido entre dois processos numa máquina, deverás" -" procurar por pipes ou compartilhamento de memória. Se decidires usar os " +"Se precisas que o IPC seja rápido entre dois processos numa máquina, deverás " +"procurar por pipes ou compartilhamento de memória. Se decidires usar os " "soquetes AF_INET, vincule o soquete \"servidor\" a ``'localhost'```. Na " "maioria das plataformas, isso levará um atalho em torno de algumas camadas " "de código de rede e funcionará um pouco mais rápido." #: ../../howto/sockets.rst:129 msgid "" -"The :mod:`multiprocessing` integrates cross-platform IPC into a higher-level" -" API." +"The :mod:`multiprocessing` integrates cross-platform IPC into a higher-level " +"API." msgstr "" "A módulo :mod:`multiprocessing` faz a integração do IPC de forma " "multiplataforma numa API de nível superior." @@ -273,18 +273,18 @@ msgstr "Usando um Socket" #: ../../howto/sockets.rst:136 msgid "" -"The first thing to note, is that the web browser's \"client\" socket and the" -" web server's \"client\" socket are identical beasts. That is, this is a " +"The first thing to note, is that the web browser's \"client\" socket and the " +"web server's \"client\" socket are identical beasts. That is, this is a " "\"peer to peer\" conversation. Or to put it another way, *as the designer, " -"you will have to decide what the rules of etiquette are for a conversation*." -" Normally, the ``connect``\\ ing socket starts the conversation, by sending " -"in a request, or perhaps a signon. But that's a design decision - it's not a" -" rule of sockets." +"you will have to decide what the rules of etiquette are for a conversation*. " +"Normally, the ``connect``\\ ing socket starts the conversation, by sending " +"in a request, or perhaps a signon. But that's a design decision - it's not a " +"rule of sockets." msgstr "" "A primeira coisa que precisamos observar, é que o soquete \"cliente\" do " -"navegador e o soquete \"cliente\" do servidor Web são \"animais\" idênticos." -" Ou seja, esta é uma conversa \"peer to peer\". Ou, em outras palavras, " -"*como designer, terás que decidir quais são as regras da etiqueta para uma " +"navegador e o soquete \"cliente\" do servidor Web são \"animais\" idênticos. " +"Ou seja, esta é uma conversa \"peer to peer\". Ou, em outras palavras, *como " +"designer, terás que decidir quais são as regras da etiqueta para uma " "conversa*. Normalmente, o soquete ``connect``ando inicia a conversa, " "enviando uma solicitação ou talvez um sinal. Mas essa é uma decisão de " "design - não é uma regra de soquetes." @@ -295,25 +295,25 @@ msgid "" "``send`` and ``recv``, or you can transform your client socket into a file-" "like beast and use ``read`` and ``write``. The latter is the way Java " "presents its sockets. I'm not going to talk about it here, except to warn " -"you that you need to use ``flush`` on sockets. These are buffered \"files\"," -" and a common mistake is to ``write`` something, and then ``read`` for a " +"you that you need to use ``flush`` on sockets. These are buffered \"files\", " +"and a common mistake is to ``write`` something, and then ``read`` for a " "reply. Without a ``flush`` in there, you may wait forever for the reply, " "because the request may still be in your output buffer." msgstr "" "Agora, há dois conjuntos de verbos que podemos usar na comunicação. Podemos " "usar ``send`` e ``recv``, ou podemos transformar o seu soquete cliente numa " "\"besta\" semelhante a um arquivo e usar ``read`` e ``write``. O último é o " -"modo como Java apresenta seus soquetes. Não tratarei disso aqui, exceto para" -" avisar que precisas usar o ``flush`` com soquetes. Estes são \"arquivos\" " -"em buffer e um erro comum é \"escrever\" algo e, em seguida, \"ler\" uma " +"modo como Java apresenta seus soquetes. Não tratarei disso aqui, exceto para " +"avisar que precisas usar o ``flush`` com soquetes. Estes são \"arquivos\" em " +"buffer e um erro comum é \"escrever\" algo e, em seguida, \"ler\" uma " "resposta. Sem que haja um ``flush`` lá dentro, poderás esperar eternamente " "pela resposta, porque o pedido ainda poderá estar no buffer de saída." #: ../../howto/sockets.rst:152 msgid "" "Now we come to the major stumbling block of sockets - ``send`` and ``recv`` " -"operate on the network buffers. They do not necessarily handle all the bytes" -" you hand them (or expect from them), because their major focus is handling " +"operate on the network buffers. They do not necessarily handle all the bytes " +"you hand them (or expect from them), because their major focus is handling " "the network buffers. In general, they return when the associated network " "buffers have been filled (``send``) or emptied (``recv``). They then tell " "you how many bytes they handled. It is *your* responsibility to call them " @@ -322,11 +322,11 @@ msgstr "" "Agora, chegamos ao principal obstáculo no uso dos sockets - ``send`` e " "``recv`` operam nos buffers de rede. Eles não lidam necessariamente com " "todos os bytes que você os entrega (ou esperam deles), porque o foco " -"principal deles é lidar com os buffers de rede. Em geral, os mesmos retornam" -" quando os buffers de rede associados foram preenchidos (``send``) ou " +"principal deles é lidar com os buffers de rede. Em geral, os mesmos retornam " +"quando os buffers de rede associados foram preenchidos (``send``) ou " "esvaziados (``recv``). Eles então lhe dizem quantos bytes eles trataram. É " -"*sua* responsabilidade chamá-los novamente até que a sua mensagem tenha sido" -" completamente tratada." +"*sua* responsabilidade chamá-los novamente até que a sua mensagem tenha sido " +"completamente tratada." #: ../../howto/sockets.rst:160 msgid "" @@ -337,30 +337,30 @@ msgid "" msgstr "" "Quando um ``recv`` retornar 0 bytes, significa que o outro lado finalizou a " "conexão (ou está no processo de fechamento) da conexão. Não receberás mais " -"dados nesta conexão. Pra sempre. Poderás enviar dados com sucesso; Falaremos" -" mais sobre isso posteriormente." +"dados nesta conexão. Pra sempre. Poderás enviar dados com sucesso; Falaremos " +"mais sobre isso posteriormente." #: ../../howto/sockets.rst:165 msgid "" -"A protocol like HTTP uses a socket for only one transfer. The client sends a" -" request, then reads a reply. That's it. The socket is discarded. This " -"means that a client can detect the end of the reply by receiving 0 bytes." +"A protocol like HTTP uses a socket for only one transfer. The client sends a " +"request, then reads a reply. That's it. The socket is discarded. This means " +"that a client can detect the end of the reply by receiving 0 bytes." msgstr "" -"Um protocolo como o HTTP utiliza um soquete para apenas uma transferência. O" -" cliente envia uma solicitação e depois lê uma resposta. É isso aí. O " -"soquete é descartado. Isso significa que um cliente pode detectar o final da" -" resposta ao receber 0 bytes." +"Um protocolo como o HTTP utiliza um soquete para apenas uma transferência. O " +"cliente envia uma solicitação e depois lê uma resposta. É isso aí. O soquete " +"é descartado. Isso significa que um cliente pode detectar o final da " +"resposta ao receber 0 bytes." #: ../../howto/sockets.rst:169 msgid "" "But if you plan to reuse your socket for further transfers, you need to " "realize that *there is no* :abbr:`EOT (End of Transfer)` *on a socket.* I " -"repeat: if a socket ``send`` or ``recv`` returns after handling 0 bytes, the" -" connection has been broken. If the connection has *not* been broken, you " +"repeat: if a socket ``send`` or ``recv`` returns after handling 0 bytes, the " +"connection has been broken. If the connection has *not* been broken, you " "may wait on a ``recv`` forever, because the socket will *not* tell you that " "there's nothing more to read (for now). Now if you think about that a bit, " -"you'll come to realize a fundamental truth of sockets: *messages must either" -" be fixed length* (yuck), *or be delimited* (shrug), *or indicate how long " +"you'll come to realize a fundamental truth of sockets: *messages must either " +"be fixed length* (yuck), *or be delimited* (shrug), *or indicate how long " "they are* (much better), *or end by shutting down the connection*. The " "choice is entirely yours, (but some ways are righter than others)." msgstr "" @@ -374,8 +374,8 @@ msgstr "" #: ../../howto/sockets.rst:217 msgid "" "The sending code here is usable for almost any messaging scheme - in Python " -"you send strings, and you can use ``len()`` to determine its length (even if" -" it has embedded ``\\0`` characters). It's mostly the receiving code that " +"you send strings, and you can use ``len()`` to determine its length (even if " +"it has embedded ``\\0`` characters). It's mostly the receiving code that " "gets more complex. (And in C, it's not much worse, except you can't use " "``strlen`` if the message has embedded ``\\0``\\ s.)" msgstr "" @@ -385,8 +385,8 @@ msgid "" "The easiest enhancement is to make the first character of the message an " "indicator of message type, and have the type determine the length. Now you " "have two ``recv``\\ s - the first to get (at least) that first character so " -"you can look up the length, and the second in a loop to get the rest. If you" -" decide to go the delimited route, you'll be receiving in some arbitrary " +"you can look up the length, and the second in a loop to get the rest. If you " +"decide to go the delimited route, you'll be receiving in some arbitrary " "chunk size, (4096 or 8192 is frequently a good match for network buffer " "sizes), and scanning what you've received for a delimiter." msgstr "" @@ -405,8 +405,8 @@ msgid "" "Prefixing the message with its length (say, as 5 numeric characters) gets " "more complex, because (believe it or not), you may not get all 5 characters " "in one ``recv``. In playing around, you'll get away with it; but in high " -"network loads, your code will very quickly break unless you use two ``recv``" -" loops - the first to determine the length, the second to get the data part " +"network loads, your code will very quickly break unless you use two ``recv`` " +"loops - the first to determine the length, the second to get the data part " "of the message. Nasty. This is also when you'll discover that ``send`` does " "not always manage to get rid of everything in one pass. And despite having " "read this, you will eventually get bit by it!" @@ -427,21 +427,21 @@ msgstr "Dados Binários" msgid "" "It is perfectly possible to send binary data over a socket. The major " "problem is that not all machines use the same formats for binary data. For " -"example, a Motorola chip will represent a 16 bit integer with the value 1 as" -" the two hex bytes 00 01. Intel and DEC, however, are byte-reversed - that " +"example, a Motorola chip will represent a 16 bit integer with the value 1 as " +"the two hex bytes 00 01. Intel and DEC, however, are byte-reversed - that " "same 1 is 01 00. Socket libraries have calls for converting 16 and 32 bit " -"integers - ``ntohl, htonl, ntohs, htons`` where \"n\" means *network* and " -"\"h\" means *host*, \"s\" means *short* and \"l\" means *long*. Where " -"network order is host order, these do nothing, but where the machine is " -"byte-reversed, these swap the bytes around appropriately." +"integers - ``ntohl, htonl, ntohs, htons`` where \"n\" means *network* and \"h" +"\" means *host*, \"s\" means *short* and \"l\" means *long*. Where network " +"order is host order, these do nothing, but where the machine is byte-" +"reversed, these swap the bytes around appropriately." msgstr "" #: ../../howto/sockets.rst:264 msgid "" -"In these days of 32 bit machines, the ascii representation of binary data is" -" frequently smaller than the binary representation. That's because a " -"surprising amount of the time, all those longs have the value 0, or maybe 1." -" The string \"0\" would be two bytes, while binary is four. Of course, this " +"In these days of 32 bit machines, the ascii representation of binary data is " +"frequently smaller than the binary representation. That's because a " +"surprising amount of the time, all those longs have the value 0, or maybe 1. " +"The string \"0\" would be two bytes, while binary is four. Of course, this " "doesn't fit well with fixed-length messages. Decisions, decisions." msgstr "" @@ -454,8 +454,8 @@ msgid "" "Strictly speaking, you're supposed to use ``shutdown`` on a socket before " "you ``close`` it. The ``shutdown`` is an advisory to the socket at the " "other end. Depending on the argument you pass it, it can mean \"I'm not " -"going to send anymore, but I'll still listen\", or \"I'm not listening, good" -" riddance!\". Most socket libraries, however, are so used to programmers " +"going to send anymore, but I'll still listen\", or \"I'm not listening, good " +"riddance!\". Most socket libraries, however, are so used to programmers " "neglecting to use this piece of etiquette that normally a ``close`` is the " "same as ``shutdown(); close()``. So in most situations, an explicit " "``shutdown`` is not needed." @@ -491,12 +491,12 @@ msgid "" "the other side comes down hard (without doing a ``close``). Your socket is " "likely to hang. TCP is a reliable protocol, and it will wait a long, long " "time before giving up on a connection. If you're using threads, the entire " -"thread is essentially dead. There's not much you can do about it. As long as" -" you aren't doing something dumb, like holding a lock while doing a blocking" -" read, the thread isn't really consuming much in the way of resources. Do " +"thread is essentially dead. There's not much you can do about it. As long as " +"you aren't doing something dumb, like holding a lock while doing a blocking " +"read, the thread isn't really consuming much in the way of resources. Do " "*not* try to kill the thread - part of the reason that threads are more " -"efficient than processes is that they avoid the overhead associated with the" -" automatic recycling of resources. In other words, if you do manage to kill " +"efficient than processes is that they avoid the overhead associated with the " +"automatic recycling of resources. In other words, if you do manage to kill " "the thread, your whole process is likely to be screwed up." msgstr "" @@ -518,8 +518,8 @@ msgid "" "it's more complex, (for one thing, you'll need to choose between the BSD " "flavor ``O_NONBLOCK`` and the almost indistinguishable Posix flavor " "``O_NDELAY``, which is completely different from ``TCP_NODELAY``), but it's " -"the exact same idea. You do this after creating the socket, but before using" -" it. (Actually, if you're nuts, you can switch back and forth.)" +"the exact same idea. You do this after creating the socket, but before using " +"it. (Actually, if you're nuts, you can switch back and forth.)" msgstr "" #: ../../howto/sockets.rst:327 @@ -534,8 +534,8 @@ msgstr "" "A principal diferença mecânica é que ``send``, ``recv``, ``connect`` e " "``accept`` podem retornar sem terem feito nada. Terás (claro) uma série de " "escolhas. Poderás verificar o código de retorno e os códigos de erro que " -"geralmente nos deixam loucos. Se não acreditas em mim, tente alguma vez. Seu" -" aplicativo vai crescendo, buggy e sugam CPU. Então, vamos ignorar as " +"geralmente nos deixam loucos. Se não acreditas em mim, tente alguma vez. Seu " +"aplicativo vai crescendo, buggy e sugam CPU. Então, vamos ignorar as " "soluções mortas no cérebro e fazê-lo direito." #: ../../howto/sockets.rst:334 @@ -573,14 +573,14 @@ msgid "" "as-we-ever-get-in-this-business that a ``recv`` on that socket will return " "*something*. Same idea for the writable list. You'll be able to send " "*something*. Maybe not all you want to, but *something* is better than " -"nothing. (Actually, any reasonably healthy socket will return as writable -" -" it just means outbound network buffer space is available.)" +"nothing. (Actually, any reasonably healthy socket will return as writable - " +"it just means outbound network buffer space is available.)" msgstr "" #: ../../howto/sockets.rst:366 msgid "" -"If you have a \"server\" socket, put it in the potential_readers list. If it" -" comes out in the readable list, your ``accept`` will (almost certainly) " +"If you have a \"server\" socket, put it in the potential_readers list. If it " +"comes out in the readable list, your ``accept`` will (almost certainly) " "work. If you have created a new socket to ``connect`` to someone else, put " "it in the potential_writers list. If it shows up in the writable list, you " "have a decent chance that it has connected." @@ -590,8 +590,8 @@ msgstr "" msgid "" "Actually, ``select`` can be handy even with blocking sockets. It's one way " "of determining whether you will block - the socket returns as readable when " -"there's something in the buffers. However, this still doesn't help with the" -" problem of determining whether the other end is done, or just busy with " +"there's something in the buffers. However, this still doesn't help with the " +"problem of determining whether the other end is done, or just busy with " "something else." msgstr "" @@ -599,7 +599,7 @@ msgstr "" msgid "" "**Portability alert**: On Unix, ``select`` works both with the sockets and " "files. Don't try this on Windows. On Windows, ``select`` works with sockets " -"only. Also note that in C, many of the more advanced socket options are done" -" differently on Windows. In fact, on Windows I usually use threads (which " +"only. Also note that in C, many of the more advanced socket options are done " +"differently on Windows. In fact, on Windows I usually use threads (which " "work very, very well) with my sockets." msgstr "" diff --git a/howto/sorting.po b/howto/sorting.po index 89923c2a6..6182a82d3 100644 --- a/howto/sorting.po +++ b/howto/sorting.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Otávio Carneiro , 2019 -# +# Lucas Sanches , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Otávio Carneiro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,7 +35,7 @@ msgstr "Autor" #: ../../howto/sorting.rst:6 msgid "Andrew Dalke and Raymond Hettinger" -msgstr "" +msgstr "Andrew Dalke e Raymond Hettinger" #: ../../howto/sorting.rst:0 msgid "Release" @@ -40,58 +43,74 @@ msgstr "Release" #: ../../howto/sorting.rst:7 msgid "0.1" -msgstr "" +msgstr "0.1" #: ../../howto/sorting.rst:10 msgid "" -"Python lists have a built-in :meth:`list.sort` method that modifies the list" -" in-place. There is also a :func:`sorted` built-in function that builds a " +"Python lists have a built-in :meth:`list.sort` method that modifies the list " +"in-place. There is also a :func:`sorted` built-in function that builds a " "new sorted list from an iterable." msgstr "" +"As listas em Python possuem um método embutido :meth:`list.sort` que " +"modifica a lista em si. Há também a função embutida :func:`sorted` que " +"constrói uma nova lista ordenada à partir de um iterável. " #: ../../howto/sorting.rst:14 msgid "" "In this document, we explore the various techniques for sorting data using " "Python." msgstr "" +"Neste documento, exploramos várias técnicas para ordenar dados utilizando " +"Python." #: ../../howto/sorting.rst:18 msgid "Sorting Basics" -msgstr "" +msgstr "Básico de Ordenação" #: ../../howto/sorting.rst:20 msgid "" -"A simple ascending sort is very easy: just call the :func:`sorted` function." -" It returns a new sorted list::" +"A simple ascending sort is very easy: just call the :func:`sorted` function. " +"It returns a new sorted list::" msgstr "" +"Uma simples ordenação ascendente é muito fácil: apenas chame a função :func:" +"`sorted. Isso retornará uma nova lista ordenada." #: ../../howto/sorting.rst:26 msgid "" -"You can also use the :meth:`list.sort` method. It modifies the list in-place" -" (and returns ``None`` to avoid confusion). Usually it's less convenient " -"than :func:`sorted` - but if you don't need the original list, it's slightly" -" more efficient." +"You can also use the :meth:`list.sort` method. It modifies the list in-place " +"(and returns ``None`` to avoid confusion). Usually it's less convenient " +"than :func:`sorted` - but if you don't need the original list, it's slightly " +"more efficient." msgstr "" +"Você também pode utilizar o método :meth:`list.sort`. Isso modifica a lista " +"em si (e retorna ``None`` para evitar confusão). Usualmente este método é " +"menos conveniente que a função :func:`sorted` - mas se você não precisará da " +"lista original, esta maneira é levemente mais eficiente." #: ../../howto/sorting.rst:36 msgid "" "Another difference is that the :meth:`list.sort` method is only defined for " "lists. In contrast, the :func:`sorted` function accepts any iterable." msgstr "" +"Outra diferença é que o método :meth:`list.sort é aplicável apenas às " +"listas. Em contrapartida, a função :func:`sorted` aceita qualquer iterável." #: ../../howto/sorting.rst:43 msgid "Key Functions" -msgstr "" +msgstr "Funções Chave" #: ../../howto/sorting.rst:45 msgid "" "Both :meth:`list.sort` and :func:`sorted` have a *key* parameter to specify " "a function to be called on each list element prior to making comparisons." msgstr "" +"Tanto o método :meth:`list.sort` quanto a função :func:`sorted` possuem um " +"parâmetro *key* que especifica uma função a ser chamada para cada elemento " +"da lista antes de ser realizada a comparação." #: ../../howto/sorting.rst:48 msgid "For example, here's a case-insensitive string comparison:" -msgstr "" +msgstr "Por exemplo, aqui há uma comparação case-insensitive de strings." #: ../../howto/sorting.rst:53 msgid "" @@ -99,43 +118,59 @@ msgid "" "argument and returns a key to use for sorting purposes. This technique is " "fast because the key function is called exactly once for each input record." msgstr "" +"O valor do parâmetro *key* deve ser uma função que recebe um único argumento " +"e retorna uma chave à ser utilizada com o propósito de ordenação. Esta " +"técnica é rápida porque a função chave é chamada exatamente uma vez para " +"cada entrada de registro." #: ../../howto/sorting.rst:57 msgid "" "A common pattern is to sort complex objects using some of the object's " "indices as keys. For example:" msgstr "" +"Uma padrão comum é ordenar objetos complexos utilizando algum índice do " +"objeto como chave. Por exemplo:" #: ../../howto/sorting.rst:68 msgid "" "The same technique works for objects with named attributes. For example:" msgstr "" +"A mesma técnica funciona com objetos que possuem atributos nomeados. Por " +"exemplo:" #: ../../howto/sorting.rst:87 msgid "Operator Module Functions" -msgstr "" +msgstr "Funções do Módulo Operator" #: ../../howto/sorting.rst:89 msgid "" "The key-function patterns shown above are very common, so Python provides " -"convenience functions to make accessor functions easier and faster. The " -":mod:`operator` module has :func:`~operator.itemgetter`, " -":func:`~operator.attrgetter`, and a :func:`~operator.methodcaller` function." +"convenience functions to make accessor functions easier and faster. The :mod:" +"`operator` module has :func:`~operator.itemgetter`, :func:`~operator." +"attrgetter`, and a :func:`~operator.methodcaller` function." msgstr "" +"O padrão de chave-função mostrado acima é muito comum, por isso, Python " +"provê funções convenientes para tornar as funções de acesso mais fáceis e " +"rápidas. O módulo :mod:`operator` tem as funções :func:`~operator." +"itemgetter`, :func:`~operator.attrgetter`, e :func:`~operator.methodcaller`" #: ../../howto/sorting.rst:94 msgid "Using those functions, the above examples become simpler and faster:" msgstr "" +"Usando estas funções, os exemplos acima se tornam mais simples e mais " +"rápidos:" #: ../../howto/sorting.rst:104 msgid "" -"The operator module functions allow multiple levels of sorting. For example," -" to sort by *grade* then by *age*:" +"The operator module functions allow multiple levels of sorting. For example, " +"to sort by *grade* then by *age*:" msgstr "" +"As funções do módulo operator permite múltiplos níveis de ordenação. Por " +"exemplo, ordenar por *grade* e então por *age*:" #: ../../howto/sorting.rst:114 msgid "Ascending and Descending" -msgstr "" +msgstr "Ascendente e Descendente" #: ../../howto/sorting.rst:116 msgid "" @@ -143,24 +178,32 @@ msgid "" "a boolean value. This is used to flag descending sorts. For example, to get " "the student data in reverse *age* order:" msgstr "" +"Tanto o método :meth:`list.sort` quanto a função :func:`sorted` aceitam um " +"valor booleano para o parâmetro *reverse*. Essa flag é utilizada para " +"ordenações descendentes. Por exemplo, para retornar os dados de estudantes " +"pela ordem inversa de *age*:" #: ../../howto/sorting.rst:127 msgid "Sort Stability and Complex Sorts" -msgstr "" +msgstr "Estabilidade de Ordenação e Ordenações Complexas" #: ../../howto/sorting.rst:129 msgid "" -"Sorts are guaranteed to be `stable " -"`_\\. That means " -"that when multiple records have the same key, their original order is " -"preserved." +"Sorts are guaranteed to be `stable `_\\. That means that when multiple records have " +"the same key, their original order is preserved." msgstr "" +"Ordenações são garantidas de serem `estáveis `_\\. Isso significa que quando múltiplos " +"registros possuem a mesma chave, eles terão sua ordem original preservada." #: ../../howto/sorting.rst:137 msgid "" "Notice how the two records for *blue* retain their original order so that " "``('blue', 1)`` is guaranteed to precede ``('blue', 2)``." msgstr "" +"Observe como os dois registros de *blue* permanecem em sua ordem original de " +"forma que ``('blue',1)`` é garantido de preceder ``('blue',2)``." #: ../../howto/sorting.rst:140 msgid "" @@ -168,6 +211,10 @@ msgid "" "steps. For example, to sort the student data by descending *grade* and then " "ascending *age*, do the *age* sort first and then sort again using *grade*:" msgstr "" +"Esta maravilhosa propriedade permite que você construa ordenações complexas " +"em uma série de passos de ordenação. Por exemplo, para ordenar os registros " +"de estudante por ordem descendente de *grade* e então ascendente de *age*, " +"primeiro ordene *age* e depois ordene novamente utilizando *grade*:" #: ../../howto/sorting.rst:148 msgid "" @@ -175,54 +222,72 @@ msgid "" "Python does multiple sorts efficiently because it can take advantage of any " "ordering already present in a dataset." msgstr "" +"O algoritmo `Timsort`_ utilizado no " +"Python realiza múltiplas ordenações de maneira eficiente, pois se aproveita " +"de qualquer ordenação já presente no conjunto de dados." #: ../../howto/sorting.rst:153 msgid "The Old Way Using Decorate-Sort-Undecorate" -msgstr "" +msgstr "A velha maneira utilizando Decorate-Sort-Undecorate" #: ../../howto/sorting.rst:155 msgid "This idiom is called Decorate-Sort-Undecorate after its three steps:" msgstr "" +"Esse item idiomático, chamado de Decorate-Sort-Undecorate, é realizado em " +"três passos:" #: ../../howto/sorting.rst:157 msgid "" "First, the initial list is decorated with new values that control the sort " "order." msgstr "" +"Primeiro, a lista inicial é decorada com novos valores que controlarão a " +"ordem em que ocorrerá a ordenação" #: ../../howto/sorting.rst:159 msgid "Second, the decorated list is sorted." -msgstr "" +msgstr "Segundo, a lista decorada é ordenada." #: ../../howto/sorting.rst:161 msgid "" -"Finally, the decorations are removed, creating a list that contains only the" -" initial values in the new order." +"Finally, the decorations are removed, creating a list that contains only the " +"initial values in the new order." msgstr "" +"Finalmente, os valores decorados são removidos, criando uma lista que contém " +"apenas os valores iniciais na nova ordenação." #: ../../howto/sorting.rst:164 msgid "" "For example, to sort the student data by *grade* using the DSU approach:" msgstr "" +"Por exemplo, para ordenar os dados dos estudantes por *grade* usando a " +"abordagem DSU:" #: ../../howto/sorting.rst:171 msgid "" "This idiom works because tuples are compared lexicographically; the first " -"items are compared; if they are the same then the second items are compared," -" and so on." +"items are compared; if they are the same then the second items are compared, " +"and so on." msgstr "" +"Esse padrão idiomático funciona porque tuplas são comparadas " +"léxicograficamente; os primeiros itens são comparados; se eles são " +"semelhantes, então os segundos itens são comparados e assim sucessivamente." #: ../../howto/sorting.rst:175 msgid "" "It is not strictly necessary in all cases to include the index *i* in the " "decorated list, but including it gives two benefits:" msgstr "" +"Não é estritamente necessário incluir o índice *i* em todos os casos de " +"listas decoradas, mas fazer assim traz dois benefícios:" #: ../../howto/sorting.rst:178 msgid "" "The sort is stable -- if two items have the same key, their order will be " "preserved in the sorted list." msgstr "" +"A ordenação é estável - se dois itens tem a mesma chave, suas ordens serão " +"preservadas na lista ordenada" #: ../../howto/sorting.rst:181 msgid "" @@ -231,31 +296,45 @@ msgid "" "example the original list could contain complex numbers which cannot be " "sorted directly." msgstr "" +"Os itens originais não precisarão ser comparados porque a ordenação de " +"tuplas decoradas será determinada por no máximo os primeiros dois itens. " +"Então, por exemplo, a lista original poderia conter números complexos que " +"não poderão ser ordenados diretamente." #: ../../howto/sorting.rst:186 msgid "" -"Another name for this idiom is `Schwartzian transform " -"`_\\, after Randal L. " -"Schwartz, who popularized it among Perl programmers." +"Another name for this idiom is `Schwartzian transform `_\\, after Randal L. Schwartz, who " +"popularized it among Perl programmers." msgstr "" +"Outro nome para este padrão idiomático é `Schwartzian transform `_ de Randal L. Schwartz, que " +"popularizou isto entre os programadores Perl." #: ../../howto/sorting.rst:190 msgid "" "Now that Python sorting provides key-functions, this technique is not often " "needed." msgstr "" +"Agora que a ordenação do Python prevê funções-chave, essa técnica não se faz " +"mais necessária." #: ../../howto/sorting.rst:194 msgid "The Old Way Using the *cmp* Parameter" -msgstr "" +msgstr "O método antigo utilizando o parâmetro *cmp*" #: ../../howto/sorting.rst:196 msgid "" -"Many constructs given in this HOWTO assume Python 2.4 or later. Before that," -" there was no :func:`sorted` builtin and :meth:`list.sort` took no keyword " -"arguments. Instead, all of the Py2.x versions supported a *cmp* parameter to" -" handle user specified comparison functions." +"Many constructs given in this HOWTO assume Python 2.4 or later. Before that, " +"there was no :func:`sorted` builtin and :meth:`list.sort` took no keyword " +"arguments. Instead, all of the Py2.x versions supported a *cmp* parameter to " +"handle user specified comparison functions." msgstr "" +"Muitos construtores apresentados neste HOWTO assumem o uso do Python 2.4 ou " +"superior. Antes disso, não havia a função embutida :func:`sorted` e o " +"método :meth:`list.sort` não recebia o argumento de palavra-chave. Apesar " +"disso, todas as versões do Py2.x suportam o parâmetro *cmp* para lidar com a " +"função de comparação especificada pelo usuário. " #: ../../howto/sorting.rst:201 msgid "" @@ -263,6 +342,9 @@ msgid "" "effort to simplify and unify the language, eliminating the conflict between " "rich comparisons and the :meth:`__cmp__` magic method)." msgstr "" +"No Py3.0, o parâmetro *cmp* foi removido totalmente (como parte de um grande " +"esforço para simplificar e unificar a linguagem, eliminando o conflito entre " +"comparações enriquecidas e o método mágico :meth:`__cmp__`)" #: ../../howto/sorting.rst:205 msgid "" @@ -271,10 +353,15 @@ msgid "" "then return a negative value for less-than, return zero if they are equal, " "or return a positive value for greater-than. For example, we can do:" msgstr "" +"No Py2.x, ordenação permite uma função opcional que pode ser invocada para " +"fazer comparações. Esta função pode receber dois argumentos para serem " +"comparados e retorna um valor negativo para o menor-que, retorna zero se " +"eles são iguais, ou retorna um valor positivo para o maior-que. Por exemplo, " +"podemos fazer:" #: ../../howto/sorting.rst:215 msgid "Or you can reverse the order of comparison with:" -msgstr "" +msgstr "Ou podemos inverter a ordem de comparação com:" #: ../../howto/sorting.rst:222 msgid "" @@ -282,41 +369,57 @@ msgid "" "have the user supplying a comparison function and you need to convert that " "to a key function. The following wrapper makes that easy to do::" msgstr "" +"Quando migrando o código do Python 2.x para o 3.x, pode surgir a situação em " +"que há o usuário suprindo a função de comparação e é necessário converter " +"isso em uma função chave. O seguinte empacotamento torna isso fácil de fazer:" #: ../../howto/sorting.rst:245 msgid "To convert to a key function, just wrap the old comparison function:" msgstr "" +"Para converter a função chave, apenas empacote a velha função de comparação:" #: ../../howto/sorting.rst:256 msgid "" -"In Python 3.2, the :func:`functools.cmp_to_key` function was added to the " -":mod:`functools` module in the standard library." +"In Python 3.2, the :func:`functools.cmp_to_key` function was added to the :" +"mod:`functools` module in the standard library." msgstr "" +"No Python 3.2, a função :func:`functools.cmp_to_key` foi adicionada ao " +"módulo :mod:`functools` na biblioteca padrão." #: ../../howto/sorting.rst:260 msgid "Odd and Ends" -msgstr "" +msgstr "Ímpares e extremidades" #: ../../howto/sorting.rst:262 msgid "" -"For locale aware sorting, use :func:`locale.strxfrm` for a key function or " -":func:`locale.strcoll` for a comparison function." +"For locale aware sorting, use :func:`locale.strxfrm` for a key function or :" +"func:`locale.strcoll` for a comparison function." msgstr "" +"Para ordenação com reconhecimento de localidade, use :func:`locale.strxfrm` " +"para uma função chave ou :func:`locale.strcoll` para uma função de " +"comparação." #: ../../howto/sorting.rst:265 msgid "" -"The *reverse* parameter still maintains sort stability (so that records with" -" equal keys retain the original order). Interestingly, that effect can be " +"The *reverse* parameter still maintains sort stability (so that records with " +"equal keys retain the original order). Interestingly, that effect can be " "simulated without the parameter by using the builtin :func:`reversed` " "function twice:" msgstr "" +"O parâmetro *reverse* ainda mantém a estabilidade da ordenação (para que os " +"registros com chaves iguais mantenham a ordem original). Curiosamente, esse " +"efeito pode ser simulado sem o parâmetro usando a função embutida :func:" +"`reversed` duas vezes:" #: ../../howto/sorting.rst:277 msgid "" "The sort routines are guaranteed to use :meth:`__lt__` when making " -"comparisons between two objects. So, it is easy to add a standard sort order" -" to a class by defining an :meth:`__lt__` method::" +"comparisons between two objects. So, it is easy to add a standard sort order " +"to a class by defining an :meth:`__lt__` method::" msgstr "" +"As rotinas de ordenação são garantidas para usar :meth:`__lt__` ao fazer " +"comparações entre dois objetos. Portanto, é fácil adicionar uma ordem de " +"ordenação padrão a uma classe, definindo um método :meth:`__lt__`::" #: ../../howto/sorting.rst:285 msgid "" @@ -325,3 +428,8 @@ msgid "" "grades are stored in a dictionary, they can be used to sort a separate list " "of student names:" msgstr "" +"As funções principais não precisam depender diretamente dos objetos que " +"estão sendo ordenados. Uma função principal também pode acessar recursos " +"externos. Por exemplo, se as notas dos alunos estiverem armazenadas em um " +"dicionário, elas poderão ser usadas para ordenar uma lista separada de nomes " +"de alunos:" diff --git a/howto/unicode.po b/howto/unicode.po index 6c260f570..50929cc42 100644 --- a/howto/unicode.po +++ b/howto/unicode.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Otávio Carneiro , 2019 # Victor Matheus Castro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-18 11:29+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:38+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Victor Matheus Castro , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -58,29 +60,29 @@ msgstr "Definições" #: ../../howto/unicode.rst:20 msgid "" "Today's programs need to be able to handle a wide variety of characters. " -"Applications are often internationalized to display messages and output in a" -" variety of user-selectable languages; the same program might need to output" -" an error message in English, French, Japanese, Hebrew, or Russian. Web " +"Applications are often internationalized to display messages and output in a " +"variety of user-selectable languages; the same program might need to output " +"an error message in English, French, Japanese, Hebrew, or Russian. Web " "content can be written in any of these languages and can also include a " -"variety of emoji symbols. Python's string type uses the Unicode Standard for" -" representing characters, which lets Python programs work with all these " +"variety of emoji symbols. Python's string type uses the Unicode Standard for " +"representing characters, which lets Python programs work with all these " "different possible characters." msgstr "" "Os programas de hoje precisam lidar com uma grande variedade de caracteres. " "Aplicações são frequentemente internacionalizadas para mostrar mensagens e " -"gerar saídas em uma variedade de idiomas selecionáveis por usuários; o mesmo" -" programa precisar apresentar mensagens de erro em inglês, francês, japonês," -" hebraico ou russo. Conteúdo da web pode ser escrito em qualquer um desses " -"idiomas e ainda incluir uma variedade de emojis. O tipo string do Python usa" -" o padrão Unicode para representação de caracteres, o que permite aos " +"gerar saídas em uma variedade de idiomas selecionáveis por usuários; o mesmo " +"programa precisar apresentar mensagens de erro em inglês, francês, japonês, " +"hebraico ou russo. Conteúdo da web pode ser escrito em qualquer um desses " +"idiomas e ainda incluir uma variedade de emojis. O tipo string do Python usa " +"o padrão Unicode para representação de caracteres, o que permite aos " "programas em Python funcionar com todos estes diferentes caracteres." #: ../../howto/unicode.rst:30 msgid "" "Unicode (https://www.unicode.org/) is a specification that aims to list " "every character used by human languages and give each character its own " -"unique code. The Unicode specifications are continually revised and updated" -" to add new languages and symbols." +"unique code. The Unicode specifications are continually revised and updated " +"to add new languages and symbols." msgstr "" "Unicode (https://www.unicode.org/) é a especificação que visa listar cada " "caractere utilizado pelos idiomas humanos e dar a cada caractere um código " @@ -92,9 +94,9 @@ msgid "" "A **character** is the smallest possible component of a text. 'A', 'B', " "'C', etc., are all different characters. So are 'È' and 'Í'. Characters " "vary depending on the language or context you're talking about. For " -"example, there's a character for \"Roman Numeral One\", 'Ⅰ', that's separate" -" from the uppercase letter 'I'. They'll usually look the same, but these " -"are two different characters that have different meanings." +"example, there's a character for \"Roman Numeral One\", 'Ⅰ', that's separate " +"from the uppercase letter 'I'. They'll usually look the same, but these are " +"two different characters that have different meanings." msgstr "" #: ../../howto/unicode.rst:42 @@ -102,8 +104,8 @@ msgid "" "The Unicode standard describes how characters are represented by **code " "points**. A code point value is an integer in the range 0 to 0x10FFFF " "(about 1.1 million values, with some 110 thousand assigned so far). In the " -"standard and in this document, a code point is written using the notation " -"``U+265E`` to mean the character with value ``0x265e`` (9,822 in decimal)." +"standard and in this document, a code point is written using the notation ``U" +"+265E`` to mean the character with value ``0x265e`` (9,822 in decimal)." msgstr "" #: ../../howto/unicode.rst:49 @@ -118,8 +120,8 @@ msgstr "" msgid "" "Strictly, these definitions imply that it's meaningless to say 'this is " "character ``U+265E``'. ``U+265E`` is a code point, which represents some " -"particular character; in this case, it represents the character 'BLACK CHESS" -" KNIGHT', '♞'. In informal contexts, this distinction between code points " +"particular character; in this case, it represents the character 'BLACK CHESS " +"KNIGHT', '♞'. In informal contexts, this distinction between code points " "and characters will sometimes be forgotten." msgstr "" @@ -132,13 +134,13 @@ msgid "" "to worry about glyphs; figuring out the correct glyph to display is " "generally the job of a GUI toolkit or a terminal's font renderer." msgstr "" -"Um caracter é representado na tela ou no papel como um conjunto de elementos" -" gráficos que é chamado de **glifo**. O glifo para o A maiúsculo, por " -"exemplo, são dois traços diagonais e um traço horizontal, embora os detalhes" -" exatos dependem da fonte utilizada. Na maior parte do código Python não é " +"Um caracter é representado na tela ou no papel como um conjunto de elementos " +"gráficos que é chamado de **glifo**. O glifo para o A maiúsculo, por " +"exemplo, são dois traços diagonais e um traço horizontal, embora os detalhes " +"exatos dependem da fonte utilizada. Na maior parte do código Python não é " "preciso se preocupar com glifos; descobrir qual o glifo correto a ser " -"mostrado é normalmente parte do trabalho da ferramenta GUI ou do responsável" -" pela renderização de fontes no terminal." +"mostrado é normalmente parte do trabalho da ferramenta GUI ou do responsável " +"pela renderização de fontes no terminal." #: ../../howto/unicode.rst:86 msgid "Encodings" @@ -150,8 +152,8 @@ msgid "" "points, which are numbers from 0 through ``0x10FFFF`` (1,114,111 decimal). " "This sequence of code points needs to be represented in memory as a set of " "**code units**, and **code units** are then mapped to 8-bit bytes. The " -"rules for translating a Unicode string into a sequence of bytes are called a" -" **character encoding**, or just an **encoding**." +"rules for translating a Unicode string into a sequence of bytes are called a " +"**character encoding**, or just an **encoding**." msgstr "" #: ../../howto/unicode.rst:96 @@ -175,8 +177,8 @@ msgstr "" #: ../../howto/unicode.rst:111 msgid "" -"It's very wasteful of space. In most texts, the majority of the code points" -" are less than 127, or less than 255, so a lot of space is occupied by " +"It's very wasteful of space. In most texts, the majority of the code points " +"are less than 127, or less than 255, so a lot of space is occupied by " "``0x00`` bytes. The above string takes 24 bytes compared to the 6 bytes " "needed for an ASCII representation. Increased RAM usage doesn't matter too " "much (desktop computers have gigabytes of RAM, and strings aren't usually " @@ -193,8 +195,8 @@ msgstr "" #: ../../howto/unicode.rst:119 msgid "" -"It's not compatible with existing C functions such as ``strlen()``, so a new" -" family of wide string functions would need to be used." +"It's not compatible with existing C functions such as ``strlen()``, so a new " +"family of wide string functions would need to be used." msgstr "" "Ela não é compatível com as funções de C existentes, como ``strlen()``, " "então uma série de novas funções de string serão necessárias." @@ -216,8 +218,7 @@ msgstr "" #: ../../howto/unicode.rst:131 msgid "" -"If the code point is < 128, it's represented by the corresponding byte " -"value." +"If the code point is < 128, it's represented by the corresponding byte value." msgstr "" #: ../../howto/unicode.rst:132 @@ -237,10 +238,10 @@ msgstr "Ela pode lidar com qualquer ponto de código Unicode." #: ../../howto/unicode.rst:138 msgid "" "A Unicode string is turned into a sequence of bytes that contains embedded " -"zero bytes only where they represent the null character (U+0000). This means" -" that UTF-8 strings can be processed by C functions such as ``strcpy()`` and" -" sent through protocols that can't handle zero bytes for anything other than" -" end-of-string markers." +"zero bytes only where they represent the null character (U+0000). This means " +"that UTF-8 strings can be processed by C functions such as ``strcpy()`` and " +"sent through protocols that can't handle zero bytes for anything other than " +"end-of-string markers." msgstr "" #: ../../howto/unicode.rst:143 @@ -278,9 +279,9 @@ msgstr "Referências" msgid "" "The `Unicode Consortium site `_ has character " "charts, a glossary, and PDF versions of the Unicode specification. Be " -"prepared for some difficult reading. `A chronology " -"`_ of the origin and development of Unicode" -" is also available on the site." +"prepared for some difficult reading. `A chronology `_ of the origin and development of Unicode is also available on " +"the site." msgstr "" #: ../../howto/unicode.rst:164 @@ -299,12 +300,11 @@ msgstr "" #: ../../howto/unicode.rst:172 msgid "" -"Another `good introductory article " -"`_ was written by Joel Spolsky. If this " -"introduction didn't make things clear to you, you should try reading this " -"alternate article before continuing." +"Another `good introductory article `_ was " +"written by Joel Spolsky. If this introduction didn't make things clear to " +"you, you should try reading this alternate article before continuing." msgstr "" #: ../../howto/unicode.rst:177 @@ -349,10 +349,10 @@ msgstr "" #: ../../howto/unicode.rst:211 msgid "" -"If you can't enter a particular character in your editor or want to keep the" -" source code ASCII-only for some reason, you can also use escape sequences " -"in string literals. (Depending on your system, you may see the actual " -"capital-delta glyph instead of a \\u escape.) ::" +"If you can't enter a particular character in your editor or want to keep the " +"source code ASCII-only for some reason, you can also use escape sequences in " +"string literals. (Depending on your system, you may see the actual capital-" +"delta glyph instead of a \\u escape.) ::" msgstr "" #: ../../howto/unicode.rst:223 @@ -365,8 +365,8 @@ msgstr "" #: ../../howto/unicode.rst:227 msgid "" "The *errors* argument specifies the response when the input string can't be " -"converted according to the encoding's rules. Legal values for this argument" -" are ``'strict'`` (raise a :exc:`UnicodeDecodeError` exception), " +"converted according to the encoding's rules. Legal values for this argument " +"are ``'strict'`` (raise a :exc:`UnicodeDecodeError` exception), " "``'replace'`` (use ``U+FFFD``, ``REPLACEMENT CHARACTER``), ``'ignore'`` " "(just leave the character out of the Unicode result), or " "``'backslashreplace'`` (inserts a ``\\xNN`` escape sequence). The following " @@ -376,19 +376,19 @@ msgstr "" #: ../../howto/unicode.rst:247 msgid "" "Encodings are specified as strings containing the encoding's name. Python " -"comes with roughly 100 different encodings; see the Python Library Reference" -" at :ref:`standard-encodings` for a list. Some encodings have multiple " +"comes with roughly 100 different encodings; see the Python Library Reference " +"at :ref:`standard-encodings` for a list. Some encodings have multiple " "names; for example, ``'latin-1'``, ``'iso_8859_1'`` and ``'8859``' are all " "synonyms for the same encoding." msgstr "" #: ../../howto/unicode.rst:253 msgid "" -"One-character Unicode strings can also be created with the :func:`chr` " -"built-in function, which takes integers and returns a Unicode string of " -"length 1 that contains the corresponding code point. The reverse operation " -"is the built-in :func:`ord` function that takes a one-character Unicode " -"string and returns the code point value::" +"One-character Unicode strings can also be created with the :func:`chr` built-" +"in function, which takes integers and returns a Unicode string of length 1 " +"that contains the corresponding code point. The reverse operation is the " +"built-in :func:`ord` function that takes a one-character Unicode string and " +"returns the code point value::" msgstr "" #: ../../howto/unicode.rst:265 @@ -404,11 +404,11 @@ msgstr "" #: ../../howto/unicode.rst:271 msgid "" -"The *errors* parameter is the same as the parameter of the " -":meth:`~bytes.decode` method but supports a few more possible handlers. As " -"well as ``'strict'``, ``'ignore'``, and ``'replace'`` (which in this case " -"inserts a question mark instead of the unencodable character), there is also" -" ``'xmlcharrefreplace'`` (inserts an XML character reference), " +"The *errors* parameter is the same as the parameter of the :meth:`~bytes." +"decode` method but supports a few more possible handlers. As well as " +"``'strict'``, ``'ignore'``, and ``'replace'`` (which in this case inserts a " +"question mark instead of the unencodable character), there is also " +"``'xmlcharrefreplace'`` (inserts an XML character reference), " "``backslashreplace`` (inserts a ``\\uNNNN`` escape sequence) and " "``namereplace`` (inserts a ``\\N{...}`` escape sequence)." msgstr "" @@ -419,8 +419,8 @@ msgstr "" #: ../../howto/unicode.rst:300 msgid "" -"The low-level routines for registering and accessing the available encodings" -" are found in the :mod:`codecs` module. Implementing new encodings also " +"The low-level routines for registering and accessing the available encodings " +"are found in the :mod:`codecs` module. Implementing new encodings also " "requires understanding the :mod:`codecs` module. However, the encoding and " "decoding functions returned by this module are usually more low-level than " "is comfortable, and writing new encodings is a specialized task, so the " @@ -433,8 +433,8 @@ msgstr "" #: ../../howto/unicode.rst:311 msgid "" -"In Python source code, specific Unicode code points can be written using the" -" ``\\u`` escape sequence, which is followed by four hex digits giving the " +"In Python source code, specific Unicode code points can be written using the " +"``\\u`` escape sequence, which is followed by four hex digits giving the " "code point. The ``\\U`` escape sequence is similar, but expects eight hex " "digits, not four::" msgstr "" @@ -442,8 +442,8 @@ msgstr "" #: ../../howto/unicode.rst:323 msgid "" "Using escape sequences for code points greater than 127 is fine in small " -"doses, but becomes an annoyance if you're using many accented characters, as" -" you would in a program with messages in French or some other accent-using " +"doses, but becomes an annoyance if you're using many accented characters, as " +"you would in a program with messages in French or some other accent-using " "language. You can also assemble strings using the :func:`chr` built-in " "function, but this is even more tedious." msgstr "" @@ -459,15 +459,15 @@ msgstr "" #: ../../howto/unicode.rst:334 msgid "" "Python supports writing source code in UTF-8 by default, but you can use " -"almost any encoding if you declare the encoding being used. This is done by" -" including a special comment as either the first or second line of the " -"source file::" +"almost any encoding if you declare the encoding being used. This is done by " +"including a special comment as either the first or second line of the source " +"file::" msgstr "" #: ../../howto/unicode.rst:344 msgid "" -"The syntax is inspired by Emacs's notation for specifying variables local to" -" a file. Emacs supports many different variables, but Python only supports " +"The syntax is inspired by Emacs's notation for specifying variables local to " +"a file. Emacs supports many different variables, but Python only supports " "'coding'. The ``-*-`` symbols indicate to Emacs that the comment is " "special; they have no significance to Python but are a convention. Python " "looks for ``coding: name`` or ``coding=name`` in the comment." @@ -475,8 +475,8 @@ msgstr "" #: ../../howto/unicode.rst:350 msgid "" -"If you don't include such a comment, the default encoding used will be UTF-8" -" as already mentioned. See also :pep:`263` for more information." +"If you don't include such a comment, the default encoding used will be UTF-8 " +"as already mentioned. See also :pep:`263` for more information." msgstr "" #: ../../howto/unicode.rst:355 @@ -507,15 +507,15 @@ msgstr "Quando executado, isso imprime:" #: ../../howto/unicode.rst:390 msgid "" -"The category codes are abbreviations describing the nature of the character." -" These are grouped into categories such as \"Letter\", \"Number\", " +"The category codes are abbreviations describing the nature of the character. " +"These are grouped into categories such as \"Letter\", \"Number\", " "\"Punctuation\", or \"Symbol\", which in turn are broken up into " "subcategories. To take the codes from the above output, ``'Ll'`` means " "'Letter, lowercase', ``'No'`` means \"Number, other\", ``'Mn'`` is \"Mark, " "nonspacing\", and ``'So'`` is \"Symbol, other\". See `the General Category " -"Values section of the Unicode Character Database documentation " -"`_ for a list " -"of category codes." +"Values section of the Unicode Character Database documentation `_ for a list of category " +"codes." msgstr "" #: ../../howto/unicode.rst:401 @@ -524,31 +524,31 @@ msgstr "Comparando Strings" #: ../../howto/unicode.rst:403 msgid "" -"Unicode adds some complication to comparing strings, because the same set of" -" characters can be represented by different sequences of code points. For " -"example, a letter like 'ê' can be represented as a single code point U+00EA," -" or as U+0065 U+0302, which is the code point for 'e' followed by a code " -"point for 'COMBINING CIRCUMFLEX ACCENT'. These will produce the same output" -" when printed, but one is a string of length 1 and the other is of length 2." +"Unicode adds some complication to comparing strings, because the same set of " +"characters can be represented by different sequences of code points. For " +"example, a letter like 'ê' can be represented as a single code point U+00EA, " +"or as U+0065 U+0302, which is the code point for 'e' followed by a code " +"point for 'COMBINING CIRCUMFLEX ACCENT'. These will produce the same output " +"when printed, but one is a string of length 1 and the other is of length 2." msgstr "" #: ../../howto/unicode.rst:411 msgid "" "One tool for a case-insensitive comparison is the :meth:`~str.casefold` " -"string method that converts a string to a case-insensitive form following an" -" algorithm described by the Unicode Standard. This algorithm has special " +"string method that converts a string to a case-insensitive form following an " +"algorithm described by the Unicode Standard. This algorithm has special " "handling for characters such as the German letter 'ß' (code point U+00DF), " "which becomes the pair of lowercase letters 'ss'." msgstr "" #: ../../howto/unicode.rst:424 msgid "" -"A second tool is the :mod:`unicodedata` module's " -":func:`~unicodedata.normalize` function that converts strings to one of " -"several normal forms, where letters followed by a combining character are " -"replaced with single characters. :func:`normalize` can be used to perform " -"string comparisons that won't falsely report inequality if two strings use " -"combining characters differently:" +"A second tool is the :mod:`unicodedata` module's :func:`~unicodedata." +"normalize` function that converts strings to one of several normal forms, " +"where letters followed by a combining character are replaced with single " +"characters. :func:`normalize` can be used to perform string comparisons " +"that won't falsely report inequality if two strings use combining characters " +"differently:" msgstr "" #: ../../howto/unicode.rst:447 @@ -568,8 +568,8 @@ msgstr "" #: ../../howto/unicode.rst:476 msgid "" -"This will print ``True``. (Why is :func:`NFD` invoked twice? Because there" -" are a few characters that make :meth:`casefold` return a non-normalized " +"This will print ``True``. (Why is :func:`NFD` invoked twice? Because there " +"are a few characters that make :meth:`casefold` return a non-normalized " "string, so the result needs to be normalized again. See section 3.13 of the " "Unicode Standard for a discussion and an example.)" msgstr "" @@ -581,24 +581,24 @@ msgstr "Expressões Regulares Unicode" #: ../../howto/unicode.rst:485 msgid "" "The regular expressions supported by the :mod:`re` module can be provided " -"either as bytes or strings. Some of the special character sequences such as" -" ``\\d`` and ``\\w`` have different meanings depending on whether the " -"pattern is supplied as bytes or a string. For example, ``\\d`` will match " -"the characters ``[0-9]`` in bytes but in strings will match any character " -"that's in the ``'Nd'`` category." +"either as bytes or strings. Some of the special character sequences such as " +"``\\d`` and ``\\w`` have different meanings depending on whether the pattern " +"is supplied as bytes or a string. For example, ``\\d`` will match the " +"characters ``[0-9]`` in bytes but in strings will match any character that's " +"in the ``'Nd'`` category." msgstr "" #: ../../howto/unicode.rst:492 msgid "" -"The string in this example has the number 57 written in both Thai and Arabic" -" numerals::" +"The string in this example has the number 57 written in both Thai and Arabic " +"numerals::" msgstr "" #: ../../howto/unicode.rst:502 msgid "" -"When executed, ``\\d+`` will match the Thai numerals and print them out. If" -" you supply the :const:`re.ASCII` flag to :func:`~re.compile`, ``\\d+`` will" -" match the substring \"57\" instead." +"When executed, ``\\d+`` will match the Thai numerals and print them out. If " +"you supply the :const:`re.ASCII` flag to :func:`~re.compile`, ``\\d+`` will " +"match the substring \"57\" instead." msgstr "" #: ../../howto/unicode.rst:506 @@ -614,9 +614,8 @@ msgstr "" #: ../../howto/unicode.rst:519 msgid "" -"`Processing Text Files in Python 3 `_, " -"by Nick Coghlan." +"`Processing Text Files in Python 3 `_, by Nick Coghlan." msgstr "" #: ../../howto/unicode.rst:520 @@ -627,8 +626,8 @@ msgstr "" #: ../../howto/unicode.rst:522 msgid "" -"The :class:`str` type is described in the Python library reference at " -":ref:`textseq`." +"The :class:`str` type is described in the Python library reference at :ref:" +"`textseq`." msgstr "" #: ../../howto/unicode.rst:525 @@ -654,16 +653,16 @@ msgstr "" #: ../../howto/unicode.rst:539 msgid "" -"Once you've written some code that works with Unicode data, the next problem" -" is input/output. How do you get Unicode strings into your program, and how" -" do you convert Unicode into a form suitable for storage or transmission?" +"Once you've written some code that works with Unicode data, the next problem " +"is input/output. How do you get Unicode strings into your program, and how " +"do you convert Unicode into a form suitable for storage or transmission?" msgstr "" #: ../../howto/unicode.rst:543 msgid "" "It's possible that you may not need to do anything depending on your input " -"sources and output destinations; you should check whether the libraries used" -" in your application support Unicode natively. XML parsers often return " +"sources and output destinations; you should check whether the libraries used " +"in your application support Unicode natively. XML parsers often return " "Unicode data, for example. Many relational databases also support Unicode-" "valued columns and can return Unicode values from an SQL query." msgstr "" @@ -679,28 +678,28 @@ msgstr "" #: ../../howto/unicode.rst:554 msgid "" -"One problem is the multi-byte nature of encodings; one Unicode character can" -" be represented by several bytes. If you want to read the file in " -"arbitrary-sized chunks (say, 1024 or 4096 bytes), you need to write error-" -"handling code to catch the case where only part of the bytes encoding a " -"single Unicode character are read at the end of a chunk. One solution would" -" be to read the entire file into memory and then perform the decoding, but " -"that prevents you from working with files that are extremely large; if you " -"need to read a 2 GiB file, you need 2 GiB of RAM. (More, really, since for " -"at least a moment you'd need to have both the encoded string and its Unicode" -" version in memory.)" +"One problem is the multi-byte nature of encodings; one Unicode character can " +"be represented by several bytes. If you want to read the file in arbitrary-" +"sized chunks (say, 1024 or 4096 bytes), you need to write error-handling " +"code to catch the case where only part of the bytes encoding a single " +"Unicode character are read at the end of a chunk. One solution would be to " +"read the entire file into memory and then perform the decoding, but that " +"prevents you from working with files that are extremely large; if you need " +"to read a 2 GiB file, you need 2 GiB of RAM. (More, really, since for at " +"least a moment you'd need to have both the encoded string and its Unicode " +"version in memory.)" msgstr "" #: ../../howto/unicode.rst:564 msgid "" "The solution would be to use the low-level decoding interface to catch the " -"case of partial coding sequences. The work of implementing this has already" -" been done for you: the built-in :func:`open` function can return a file-" -"like object that assumes the file's contents are in a specified encoding and" -" accepts Unicode parameters for methods such as :meth:`~io.TextIOBase.read` " +"case of partial coding sequences. The work of implementing this has already " +"been done for you: the built-in :func:`open` function can return a file-like " +"object that assumes the file's contents are in a specified encoding and " +"accepts Unicode parameters for methods such as :meth:`~io.TextIOBase.read` " "and :meth:`~io.TextIOBase.write`. This works through :func:`open`\\'s " -"*encoding* and *errors* parameters which are interpreted just like those in " -":meth:`str.encode` and :meth:`bytes.decode`." +"*encoding* and *errors* parameters which are interpreted just like those in :" +"meth:`str.encode` and :meth:`bytes.decode`." msgstr "" #: ../../howto/unicode.rst:573 @@ -730,9 +729,9 @@ msgstr "" msgid "" "In some areas, it is also convention to use a \"BOM\" at the start of UTF-8 " "encoded files; the name is misleading since UTF-8 is not byte-order " -"dependent. The mark simply announces that the file is encoded in UTF-8. For" -" reading such files, use the 'utf-8-sig' codec to automatically skip the " -"mark if present." +"dependent. The mark simply announces that the file is encoded in UTF-8. For " +"reading such files, use the 'utf-8-sig' codec to automatically skip the mark " +"if present." msgstr "" #: ../../howto/unicode.rst:603 @@ -769,12 +768,12 @@ msgstr "" #: ../../howto/unicode.rst:628 msgid "" "The :func:`os.listdir` function returns filenames, which raises an issue: " -"should it return the Unicode version of filenames, or should it return bytes" -" containing the encoded versions? :func:`os.listdir` can do both, depending" -" on whether you provided the directory path as bytes or a Unicode string. " -"If you pass a Unicode string as the path, filenames will be decoded using " -"the filesystem's encoding and a list of Unicode strings will be returned, " -"while passing a byte path will return the filenames as bytes. For example, " +"should it return the Unicode version of filenames, or should it return bytes " +"containing the encoded versions? :func:`os.listdir` can do both, depending " +"on whether you provided the directory path as bytes or a Unicode string. If " +"you pass a Unicode string as the path, filenames will be decoded using the " +"filesystem's encoding and a list of Unicode strings will be returned, while " +"passing a byte path will return the filenames as bytes. For example, " "assuming the default filesystem encoding is UTF-8, running the following " "program::" msgstr "" @@ -829,8 +828,8 @@ msgstr "" #: ../../howto/unicode.rst:679 msgid "" "When using data coming from a web browser or some other untrusted source, a " -"common technique is to check for illegal characters in a string before using" -" the string in a generated command line or storing it in a database. If " +"common technique is to check for illegal characters in a string before using " +"the string in a generated command line or storing it in a database. If " "you're doing this, be careful to check the decoded string, not the encoded " "bytes data; some encodings may have interesting properties, such as not " "being bijective or not being fully ASCII-compatible. This is especially " @@ -862,8 +861,8 @@ msgstr "" #: ../../howto/unicode.rst:712 msgid "" "What can you do if you need to make a change to a file, but don't know the " -"file's encoding? If you know the encoding is ASCII-compatible and only want" -" to examine or modify the ASCII parts, you can open the file with the " +"file's encoding? If you know the encoding is ASCII-compatible and only want " +"to examine or modify the ASCII parts, you can open the file with the " "``surrogateescape`` error handler::" msgstr "" @@ -877,18 +876,17 @@ msgstr "" #: ../../howto/unicode.rst:736 msgid "" -"One section of `Mastering Python 3 Input/Output " -"`_, a PyCon" -" 2010 talk by David Beazley, discusses text processing and binary data " -"handling." +"One section of `Mastering Python 3 Input/Output `_, a PyCon 2010 talk by David " +"Beazley, discusses text processing and binary data handling." msgstr "" #: ../../howto/unicode.rst:740 msgid "" "The `PDF slides for Marc-André Lemburg's presentation \"Writing Unicode-" -"aware Applications in Python\" `_ discuss questions of" -" character encodings as well as how to internationalize and localize an " +"aware Applications in Python\" `_ discuss questions of " +"character encodings as well as how to internationalize and localize an " "application. These slides cover Python 2.x only." msgstr "" diff --git a/howto/urllib2.po b/howto/urllib2.po index e84b7fd75..22af83e28 100644 --- a/howto/urllib2.po +++ b/howto/urllib2.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Otávio Carneiro , 2019 # Adorilson Bezerra , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:37+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,12 +41,12 @@ msgstr "`Michael Foord `_" #: ../../howto/urllib2.rst:11 msgid "" "There is a French translation of an earlier revision of this HOWTO, " -"available at `urllib2 - Le Manuel manquant " -"`_." +"available at `urllib2 - Le Manuel manquant `_." msgstr "" "Há uma tradução francesa de uma revisão anterior deste COMO FAZER, " -"disponível em `urllib2 - Le Manuel manquant " -"`_." +"disponível em `urllib2 - Le Manuel manquant `_." #: ../../howto/urllib2.rst:18 msgid "Introduction" @@ -60,11 +62,11 @@ msgstr "" #: ../../howto/urllib2.rst:25 msgid "" -"`Basic Authentication " -"`_" +"`Basic Authentication `_" msgstr "" -"`Autenticação Básica " -"`_" +"`Autenticação Básica `_" #: ../../howto/urllib2.rst:27 msgid "A tutorial on *Basic Authentication*, with examples in Python." @@ -98,8 +100,8 @@ msgstr "" #: ../../howto/urllib2.rst:41 msgid "" -"For straightforward situations *urlopen* is very easy to use. But as soon as" -" you encounter errors or non-trivial cases when opening HTTP URLs, you will " +"For straightforward situations *urlopen* is very easy to use. But as soon as " +"you encounter errors or non-trivial cases when opening HTTP URLs, you will " "need some understanding of the HyperText Transfer Protocol. The most " "comprehensive and authoritative reference to HTTP is :rfc:`2616`. This is a " "technical document and not intended to be easy to read. This HOWTO aims to " @@ -107,14 +109,14 @@ msgid "" "through. It is not intended to replace the :mod:`urllib.request` docs, but " "is supplementary to them." msgstr "" -"Para situações simples \"urlopen\" é muito fácil de usar. Mas assim que você" -" se depara com erros ou casos não triviais ao abrir URLs HTTP, você vai " -"precisar entender um pouco mais do HyperText Transfer Protocol. A literatura" -" de referência mais reconhecida e compreensível para o HTTP é :rfc:`2616`. " -"Ela é um documento técnico e não foi feita para ser fácil de ler. Este HOWTO" -" busca ilustrar o uso de *urllib* com detalhes suficientes sobre HTTP para " -"te permitir seguir adiante. Ele não tem a intenção de substituir a " -"documentação do :mod:`urllib.request`, mas é suplementar a ela." +"Para situações simples \"urlopen\" é muito fácil de usar. Mas assim que você " +"se depara com erros ou casos não triviais ao abrir URLs HTTP, você vai " +"precisar entender um pouco mais do HyperText Transfer Protocol. A literatura " +"de referência mais reconhecida e compreensível para o HTTP é :rfc:`2616`. " +"Ela é um documento técnico e não foi feita para ser fácil de ler. Este HOWTO " +"busca ilustrar o uso de *urllib* com detalhes suficientes sobre HTTP para te " +"permitir seguir adiante. Ele não tem a intenção de substituir a documentação " +"do :mod:`urllib.request`, mas é suplementar a ela." #: ../../howto/urllib2.rst:51 msgid "Fetching URLs" @@ -127,14 +129,14 @@ msgstr "O modo mais simples de usar urllib.request é o seguinte::" #: ../../howto/urllib2.rst:59 msgid "" "If you wish to retrieve a resource via URL and store it in a temporary " -"location, you can do so via the :func:`shutil.copyfileobj` and " -":func:`tempfile.NamedTemporaryFile` functions::" +"location, you can do so via the :func:`shutil.copyfileobj` and :func:" +"`tempfile.NamedTemporaryFile` functions::" msgstr "" #: ../../howto/urllib2.rst:74 msgid "" -"Many uses of urllib will be that simple (note that instead of an 'http:' URL" -" we could have used a URL starting with 'ftp:', 'file:', etc.). However, " +"Many uses of urllib will be that simple (note that instead of an 'http:' URL " +"we could have used a URL starting with 'ftp:', 'file:', etc.). However, " "it's the purpose of this tutorial to explain the more complicated cases, " "concentrating on HTTP." msgstr "" @@ -155,8 +157,8 @@ msgid "" msgstr "" "HTTP é baseado em solicitações (requests) e respostas (responses) - o " "cliente faz solicitações e os servidores mandam respostas. urllib.request " -"espelha isto com um objeto ``Request`` que representa a solicitação HTTP que" -" você está fazendo. Na sua forma mais simples, você cria um objeto Request " +"espelha isto com um objeto ``Request`` que representa a solicitação HTTP que " +"você está fazendo. Na sua forma mais simples, você cria um objeto Request " "que especifica a URL que você quer acessar. Chamar ``urlopen`` com este " "objeto Request retorna um objeto de resposta para a URL solicitada. Essa " "resposta é um objeto similar a um arquivo, o que significa que você pode, " @@ -176,8 +178,8 @@ msgid "" "In the case of HTTP, there are two extra things that Request objects allow " "you to do: First, you can pass data to be sent to the server. Second, you " "can pass extra information (\"metadata\") *about* the data or the about " -"request itself, to the server - this information is sent as HTTP " -"\"headers\". Let's look at each of these in turn." +"request itself, to the server - this information is sent as HTTP \"headers" +"\". Let's look at each of these in turn." msgstr "" #: ../../howto/urllib2.rst:105 @@ -187,10 +189,10 @@ msgstr "" #: ../../howto/urllib2.rst:107 msgid "" "Sometimes you want to send data to a URL (often the URL will refer to a CGI " -"(Common Gateway Interface) script or other web application). With HTTP, this" -" is often done using what's known as a **POST** request. This is often what " -"your browser does when you submit a HTML form that you filled in on the web." -" Not all POSTs have to come from forms: you can use a POST to transmit " +"(Common Gateway Interface) script or other web application). With HTTP, this " +"is often done using what's known as a **POST** request. This is often what " +"your browser does when you submit a HTML form that you filled in on the web. " +"Not all POSTs have to come from forms: you can use a POST to transmit " "arbitrary data to your own application. In the common case of HTML forms, " "the data needs to be encoded in a standard way, and then passed to the " "Request object as the ``data`` argument. The encoding is done using a " @@ -200,21 +202,21 @@ msgstr "" #: ../../howto/urllib2.rst:131 msgid "" "Note that other encodings are sometimes required (e.g. for file upload from " -"HTML forms - see `HTML Specification, Form Submission `_ for more details)." +"HTML forms - see `HTML Specification, Form Submission `_ for more details)." msgstr "" #: ../../howto/urllib2.rst:136 msgid "" -"If you do not pass the ``data`` argument, urllib uses a **GET** request. One" -" way in which GET and POST requests differ is that POST requests often have " +"If you do not pass the ``data`` argument, urllib uses a **GET** request. One " +"way in which GET and POST requests differ is that POST requests often have " "\"side-effects\": they change the state of the system in some way (for " "example by placing an order with the website for a hundredweight of tinned " -"spam to be delivered to your door). Though the HTTP standard makes it clear" -" that POSTs are intended to *always* cause side-effects, and GET requests " +"spam to be delivered to your door). Though the HTTP standard makes it clear " +"that POSTs are intended to *always* cause side-effects, and GET requests " "*never* to cause side-effects, nothing prevents a GET request from having " -"side-effects, nor a POST requests from having no side-effects. Data can also" -" be passed in an HTTP GET request by encoding it in the URL itself." +"side-effects, nor a POST requests from having no side-effects. Data can also " +"be passed in an HTTP GET request by encoding it in the URL itself." msgstr "" #: ../../howto/urllib2.rst:146 @@ -226,6 +228,8 @@ msgid "" "Notice that the full URL is created by adding a ``?`` to the URL, followed " "by the encoded values." msgstr "" +"Observe que o URL completo é criado pela adição de um ``? `` ao URL, seguido " +"pelos valores codificados." #: ../../howto/urllib2.rst:165 msgid "Headers" @@ -241,8 +245,8 @@ msgstr "" msgid "" "Some websites [#]_ dislike being browsed by programs, or send different " "versions to different browsers [#]_. By default urllib identifies itself as " -"``Python-urllib/x.y`` (where ``x`` and ``y`` are the major and minor version" -" numbers of the Python release, e.g. ``Python-urllib/2.5``), which may " +"``Python-urllib/x.y`` (where ``x`` and ``y`` are the major and minor version " +"numbers of the Python release, e.g. ``Python-urllib/2.5``), which may " "confuse the site, or just plain not work. The way a browser identifies " "itself is through the ``User-Agent`` header [#]_. When you create a Request " "object you can pass a dictionary of headers in. The following example makes " @@ -263,9 +267,9 @@ msgstr "Tratamento de exceções" #: ../../howto/urllib2.rst:204 msgid "" -"*urlopen* raises :exc:`URLError` when it cannot handle a response (though as" -" usual with Python APIs, built-in exceptions such as :exc:`ValueError`, " -":exc:`TypeError` etc. may also be raised)." +"*urlopen* raises :exc:`URLError` when it cannot handle a response (though as " +"usual with Python APIs, built-in exceptions such as :exc:`ValueError`, :exc:" +"`TypeError` etc. may also be raised)." msgstr "" #: ../../howto/urllib2.rst:208 @@ -275,8 +279,7 @@ msgid "" msgstr "" #: ../../howto/urllib2.rst:211 -msgid "" -"The exception classes are exported from the :mod:`urllib.error` module." +msgid "The exception classes are exported from the :mod:`urllib.error` module." msgstr "" #: ../../howto/urllib2.rst:214 @@ -307,8 +310,8 @@ msgid "" "(for example, if the response is a \"redirection\" that requests the client " "fetch the document from a different URL, urllib will handle that for you). " "For those it can't handle, urlopen will raise an :exc:`HTTPError`. Typical " -"errors include '404' (page not found), '403' (request forbidden), and '401' " -"(authentication required)." +"errors include '404' (page not found), '403' (request forbidden), and " +"'401' (authentication required)." msgstr "" #: ../../howto/urllib2.rst:242 @@ -343,10 +346,10 @@ msgstr "" #: ../../howto/urllib2.rst:326 msgid "" "When an error is raised the server responds by returning an HTTP error code " -"*and* an error page. You can use the :exc:`HTTPError` instance as a response" -" on the page returned. This means that as well as the code attribute, it " -"also has read, geturl, and info, methods as returned by the " -"``urllib.response`` module::" +"*and* an error page. You can use the :exc:`HTTPError` instance as a response " +"on the page returned. This means that as well as the code attribute, it also " +"has read, geturl, and info, methods as returned by the ``urllib.response`` " +"module::" msgstr "" #: ../../howto/urllib2.rst:346 @@ -380,8 +383,8 @@ msgstr "" #: ../../howto/urllib2.rst:401 msgid "" "The response returned by urlopen (or the :exc:`HTTPError` instance) has two " -"useful methods :meth:`info` and :meth:`geturl` and is defined in the module " -":mod:`urllib.response`.." +"useful methods :meth:`info` and :meth:`geturl` and is defined in the module :" +"mod:`urllib.response`.." msgstr "" #: ../../howto/urllib2.rst:405 @@ -395,14 +398,14 @@ msgstr "" #: ../../howto/urllib2.rst:409 msgid "" "**info** - this returns a dictionary-like object that describes the page " -"fetched, particularly the headers sent by the server. It is currently an " -":class:`http.client.HTTPMessage` instance." +"fetched, particularly the headers sent by the server. It is currently an :" +"class:`http.client.HTTPMessage` instance." msgstr "" #: ../../howto/urllib2.rst:413 msgid "" -"Typical headers include 'Content-length', 'Content-type', and so on. See the" -" `Quick Reference to HTTP Headers `_ for a " +"Typical headers include 'Content-length', 'Content-type', and so on. See the " +"`Quick Reference to HTTP Headers `_ for a " "useful listing of HTTP headers with brief explanations of their meaning and " "use." msgstr "" @@ -425,22 +428,22 @@ msgstr "" #: ../../howto/urllib2.rst:430 msgid "" "You will want to create openers if you want to fetch URLs with specific " -"handlers installed, for example to get an opener that handles cookies, or to" -" get an opener that does not handle redirections." +"handlers installed, for example to get an opener that handles cookies, or to " +"get an opener that does not handle redirections." msgstr "" #: ../../howto/urllib2.rst:434 msgid "" -"To create an opener, instantiate an ``OpenerDirector``, and then call " -"``.add_handler(some_handler_instance)`` repeatedly." +"To create an opener, instantiate an ``OpenerDirector``, and then call ``." +"add_handler(some_handler_instance)`` repeatedly." msgstr "" #: ../../howto/urllib2.rst:437 msgid "" -"Alternatively, you can use ``build_opener``, which is a convenience function" -" for creating opener objects with a single function call. ``build_opener`` " -"adds several handlers by default, but provides a quick way to add more " -"and/or override the default handlers." +"Alternatively, you can use ``build_opener``, which is a convenience function " +"for creating opener objects with a single function call. ``build_opener`` " +"adds several handlers by default, but provides a quick way to add more and/" +"or override the default handlers." msgstr "" #: ../../howto/urllib2.rst:442 @@ -452,8 +455,8 @@ msgstr "" #: ../../howto/urllib2.rst:445 msgid "" "``install_opener`` can be used to make an ``opener`` object the (global) " -"default opener. This means that calls to ``urlopen`` will use the opener you" -" have installed." +"default opener. This means that calls to ``urlopen`` will use the opener you " +"have installed." msgstr "" #: ../../howto/urllib2.rst:449 @@ -472,8 +475,8 @@ msgid "" "To illustrate creating and installing a handler we will use the " "``HTTPBasicAuthHandler``. For a more detailed discussion of this subject -- " "including an explanation of how Basic Authentication works - see the `Basic " -"Authentication Tutorial " -"`_." +"Authentication Tutorial `_." msgstr "" #: ../../howto/urllib2.rst:463 @@ -492,8 +495,8 @@ msgstr "" msgid "" "The client should then retry the request with the appropriate name and " "password for the realm included as a header in the request. This is 'basic " -"authentication'. In order to simplify this process we can create an instance" -" of ``HTTPBasicAuthHandler`` and an opener to use this handler." +"authentication'. In order to simplify this process we can create an instance " +"of ``HTTPBasicAuthHandler`` and an opener to use this handler." msgstr "" #: ../../howto/urllib2.rst:480 @@ -501,12 +504,12 @@ msgid "" "The ``HTTPBasicAuthHandler`` uses an object called a password manager to " "handle the mapping of URLs and realms to passwords and usernames. If you " "know what the realm is (from the authentication header sent by the server), " -"then you can use a ``HTTPPasswordMgr``. Frequently one doesn't care what the" -" realm is. In that case, it is convenient to use " +"then you can use a ``HTTPPasswordMgr``. Frequently one doesn't care what the " +"realm is. In that case, it is convenient to use " "``HTTPPasswordMgrWithDefaultRealm``. This allows you to specify a default " -"username and password for a URL. This will be supplied in the absence of you" -" providing an alternative combination for a specific realm. We indicate this" -" by providing ``None`` as the realm argument to the ``add_password`` method." +"username and password for a URL. This will be supplied in the absence of you " +"providing an alternative combination for a specific realm. We indicate this " +"by providing ``None`` as the realm argument to the ``add_password`` method." msgstr "" #: ../../howto/urllib2.rst:490 @@ -518,8 +521,8 @@ msgstr "" #: ../../howto/urllib2.rst:515 msgid "" "In the above example we only supplied our ``HTTPBasicAuthHandler`` to " -"``build_opener``. By default openers have the handlers for normal situations" -" -- ``ProxyHandler`` (if a proxy setting such as an :envvar:`http_proxy` " +"``build_opener``. By default openers have the handlers for normal situations " +"-- ``ProxyHandler`` (if a proxy setting such as an :envvar:`http_proxy` " "environment variable is set), ``UnknownHandler``, ``HTTPHandler``, " "``HTTPDefaultErrorHandler``, ``HTTPRedirectHandler``, ``FTPHandler``, " "``FileHandler``, ``DataHandler``, ``HTTPErrorProcessor``." @@ -528,10 +531,10 @@ msgstr "" #: ../../howto/urllib2.rst:522 msgid "" "``top_level_url`` is in fact *either* a full URL (including the 'http:' " -"scheme component and the hostname and optionally the port number) e.g. " -"``\"http://example.com/\"`` *or* an \"authority\" (i.e. the hostname, " -"optionally including the port number) e.g. ``\"example.com\"`` or " -"``\"example.com:8080\"`` (the latter example includes a port number). The " +"scheme component and the hostname and optionally the port number) e.g. ``" +"\"http://example.com/\"`` *or* an \"authority\" (i.e. the hostname, " +"optionally including the port number) e.g. ``\"example.com\"`` or ``" +"\"example.com:8080\"`` (the latter example includes a port number). The " "authority, if present, must NOT contain the \"userinfo\" component - for " "example ``\"joe:password@example.com\"`` is not correct." msgstr "" @@ -543,8 +546,8 @@ msgstr "Proxies" #: ../../howto/urllib2.rst:534 msgid "" "**urllib** will auto-detect your proxy settings and use those. This is " -"through the ``ProxyHandler``, which is part of the normal handler chain when" -" a proxy setting is detected. Normally that's a good thing, but there are " +"through the ``ProxyHandler``, which is part of the normal handler chain when " +"a proxy setting is detected. Normally that's a good thing, but there are " "occasions when it may not be helpful [#]_. One way to do this is to setup " "our own ``ProxyHandler``, with no proxies defined. This is done using " "similar steps to setting up a `Basic Authentication`_ handler: ::" @@ -553,8 +556,8 @@ msgstr "" #: ../../howto/urllib2.rst:547 msgid "" "Currently ``urllib.request`` *does not* support fetching of ``https`` " -"locations through a proxy. However, this can be enabled by extending " -"urllib.request as shown in the recipe [#]_." +"locations through a proxy. However, this can be enabled by extending urllib." +"request as shown in the recipe [#]_." msgstr "" #: ../../howto/urllib2.rst:553 @@ -576,11 +579,11 @@ msgstr "" #: ../../howto/urllib2.rst:563 msgid "" "As of Python 2.3 you can specify how long a socket should wait for a " -"response before timing out. This can be useful in applications which have to" -" fetch web pages. By default the socket module has *no timeout* and can " -"hang. Currently, the socket timeout is not exposed at the http.client or " -"urllib.request levels. However, you can set the default timeout globally for" -" all sockets using ::" +"response before timing out. This can be useful in applications which have to " +"fetch web pages. By default the socket module has *no timeout* and can hang. " +"Currently, the socket timeout is not exposed at the http.client or urllib." +"request levels. However, you can set the default timeout globally for all " +"sockets using ::" msgstr "" #: ../../howto/urllib2.rst:586 @@ -604,8 +607,8 @@ msgstr "" #: ../../howto/urllib2.rst:594 msgid "" -"The user agent for MSIE 6 is *'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT" -" 5.1; SV1; .NET CLR 1.1.4322)'*" +"The user agent for MSIE 6 is *'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT " +"5.1; SV1; .NET CLR 1.1.4322)'*" msgstr "" #: ../../howto/urllib2.rst:596 @@ -624,6 +627,6 @@ msgstr "" #: ../../howto/urllib2.rst:603 msgid "" -"urllib opener for SSL proxy (CONNECT method): `ASPN Cookbook Recipe " -"`_." +"urllib opener for SSL proxy (CONNECT method): `ASPN Cookbook Recipe `_." msgstr "" diff --git a/install/index.po b/install/index.po index 098e487b7..83b94f2db 100644 --- a/install/index.po +++ b/install/index.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Ruan Aragão , 2019 @@ -13,16 +13,19 @@ # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Rafael Marques , 2019 -# +# Rafael Fontenelle , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" -"Last-Translator: Rafael Marques , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,7 +46,7 @@ msgstr "" #: ../../install/index.rst:15 msgid ":ref:`installing-index`" -msgstr "" +msgstr ":ref:`installing-index`" #: ../../install/index.rst:16 msgid "The up to date module installation documentations" @@ -52,8 +55,8 @@ msgstr "" #: ../../install/index.rst:28 msgid "" "This document describes the Python Distribution Utilities (\"Distutils\") " -"from the end-user's point-of-view, describing how to extend the capabilities" -" of a standard Python installation by building and installing third-party " +"from the end-user's point-of-view, describing how to extend the capabilities " +"of a standard Python installation by building and installing third-party " "Python modules and extensions." msgstr "" @@ -63,15 +66,14 @@ msgid "" "extensions that are provided as part of this version of Python. Third party " "tools offer easier to use and more secure alternatives. Refer to the `quick " "recommendations section `__ in the Python Packaging User Guide for more " -"information." +"recommendations/>`__ in the Python Packaging User Guide for more information." msgstr "" "Este guia cobre apenas as ferramentas básicas para construir e distribuir " "extensões que são fornecidas como parte desta versão do Python. Ferramentas " "de terceiros oferecem alternativas mais fáceis de usar e mais seguras. " -"Consulte a `seção de recomendações rápidas " -"`__ no Guia do " -"Usuário de Pacotes Python para maiores informações" +"Consulte a `seção de recomendações rápidas `__ no Guia do Usuário de Pacotes Python para " +"maiores informações" #: ../../install/index.rst:47 msgid "Introduction" @@ -80,16 +82,16 @@ msgstr "Introdução" #: ../../install/index.rst:49 msgid "" "Although Python's extensive standard library covers many programming needs, " -"there often comes a time when you need to add some new functionality to your" -" Python installation in the form of third-party modules. This might be " -"necessary to support your own programming, or to support an application that" -" you want to use and that happens to be written in Python." +"there often comes a time when you need to add some new functionality to your " +"Python installation in the form of third-party modules. This might be " +"necessary to support your own programming, or to support an application that " +"you want to use and that happens to be written in Python." msgstr "" #: ../../install/index.rst:55 msgid "" -"In the past, there has been little support for adding third-party modules to" -" an existing Python installation. With the introduction of the Python " +"In the past, there has been little support for adding third-party modules to " +"an existing Python installation. With the introduction of the Python " "Distribution Utilities (Distutils for short) in Python 2.0, this changed." msgstr "" @@ -102,8 +104,8 @@ msgid "" "Python to read this document; there will be some brief forays into using " "Python's interactive mode to explore your installation, but that's it. If " "you're looking for information on how to distribute your own Python modules " -"so that others may use them, see the :ref:`distutils-index` manual. :ref" -":`debug-setup-script` may also be of interest." +"so that others may use them, see the :ref:`distutils-index` manual. :ref:" +"`debug-setup-script` may also be of interest." msgstr "" #: ../../install/index.rst:73 @@ -112,8 +114,8 @@ msgstr "" #: ../../install/index.rst:75 msgid "" -"In the best case, someone will have prepared a special version of the module" -" distribution you want to install that is targeted specifically at your " +"In the best case, someone will have prepared a special version of the module " +"distribution you want to install that is targeted specifically at your " "platform and is installed just like any other software on your platform. " "For example, the module developer might make an executable installer " "available for Windows users, an RPM package for users of RPM-based Linux " @@ -125,8 +127,8 @@ msgstr "" msgid "" "In that case, you would download the installer appropriate to your platform " "and do the obvious thing with it: run it if it's an executable installer, " -"``rpm --install`` it if it's an RPM, etc. You don't need to run Python or a" -" setup script, you don't need to compile anything---you might not even need " +"``rpm --install`` it if it's an RPM, etc. You don't need to run Python or a " +"setup script, you don't need to compile anything---you might not even need " "to read any instructions (although it's always a good idea to do so anyway)." msgstr "" @@ -147,31 +149,30 @@ msgstr "" #: ../../install/index.rst:103 msgid "" -"If you download a module source distribution, you can tell pretty quickly if" -" it was packaged and distributed in the standard way, i.e. using the " +"If you download a module source distribution, you can tell pretty quickly if " +"it was packaged and distributed in the standard way, i.e. using the " "Distutils. First, the distribution's name and version number will be " -"featured prominently in the name of the downloaded archive, e.g. " -":file:`foo-1.0.tar.gz` or :file:`widget-0.9.7.zip`. Next, the archive will " -"unpack into a similarly-named directory: :file:`foo-1.0` or " -":file:`widget-0.9.7`. Additionally, the distribution will contain a setup " -"script :file:`setup.py`, and a file named :file:`README.txt` or possibly " -"just :file:`README`, which should explain that building and installing the " -"module distribution is a simple matter of running one command from a " -"terminal::" +"featured prominently in the name of the downloaded archive, e.g. :file:" +"`foo-1.0.tar.gz` or :file:`widget-0.9.7.zip`. Next, the archive will unpack " +"into a similarly-named directory: :file:`foo-1.0` or :file:`widget-0.9.7`. " +"Additionally, the distribution will contain a setup script :file:`setup.py`, " +"and a file named :file:`README.txt` or possibly just :file:`README`, which " +"should explain that building and installing the module distribution is a " +"simple matter of running one command from a terminal::" msgstr "" #: ../../install/index.rst:116 msgid "" -"For Windows, this command should be run from a command prompt window " -"(:menuselection:`Start --> Accessories`)::" +"For Windows, this command should be run from a command prompt window (:" +"menuselection:`Start --> Accessories`)::" msgstr "" #: ../../install/index.rst:121 msgid "" -"If all these things are true, then you already know how to build and install" -" the modules you've just downloaded: Run the command above. Unless you need" -" to install things in a non-standard way or customize the build process, you" -" don't really need this manual. Or rather, the above command is everything " +"If all these things are true, then you already know how to build and install " +"the modules you've just downloaded: Run the command above. Unless you need " +"to install things in a non-standard way or customize the build process, you " +"don't really need this manual. Or rather, the above command is everything " "you need to get out of this manual." msgstr "" @@ -182,8 +183,8 @@ msgstr "" #: ../../install/index.rst:133 msgid "" "As described in section :ref:`inst-new-standard`, building and installing a " -"module distribution using the Distutils is usually one simple command to run" -" from a terminal::" +"module distribution using the Distutils is usually one simple command to run " +"from a terminal::" msgstr "" #: ../../install/index.rst:143 @@ -202,11 +203,11 @@ msgstr "" #: ../../install/index.rst:154 msgid "" "On Windows, you'd probably download :file:`foo-1.0.zip`. If you downloaded " -"the archive file to :file:`C:\\\\Temp`, then it would unpack into " -":file:`C:\\\\Temp\\\\foo-1.0`; you can use either an archive manipulator " -"with a graphical user interface (such as WinZip) or a command-line tool " -"(such as :program:`unzip` or :program:`pkunzip`) to unpack the archive. " -"Then, open a command prompt window and run::" +"the archive file to :file:`C:\\\\Temp`, then it would unpack into :file:`C:\\" +"\\Temp\\\\foo-1.0`; you can use either an archive manipulator with a " +"graphical user interface (such as WinZip) or a command-line tool (such as :" +"program:`unzip` or :program:`pkunzip`) to unpack the archive. Then, open a " +"command prompt window and run::" msgstr "" #: ../../install/index.rst:168 @@ -215,8 +216,8 @@ msgstr "" #: ../../install/index.rst:170 msgid "" -"Running ``setup.py install`` builds and installs all modules in one run. If" -" you prefer to work incrementally---especially useful if you want to " +"Running ``setup.py install`` builds and installs all modules in one run. If " +"you prefer to work incrementally---especially useful if you want to " "customize the build process, or if things are going wrong---you can use the " "setup script to do one thing at a time. This is particularly helpful when " "the build and install will be done by different users---for example, you " @@ -254,10 +255,10 @@ msgstr "" #: ../../install/index.rst:200 msgid "" "As implied above, the :command:`build` command is responsible for putting " -"the files to install into a *build directory*. By default, this is " -":file:`build` under the distribution root; if you're excessively concerned " -"with speed, or want to keep the source tree pristine, you can change the " -"build directory with the :option:`!--build-base` option. For example::" +"the files to install into a *build directory*. By default, this is :file:" +"`build` under the distribution root; if you're excessively concerned with " +"speed, or want to keep the source tree pristine, you can change the build " +"directory with the :option:`!--build-base` option. For example::" msgstr "" #: ../../install/index.rst:208 @@ -278,18 +279,18 @@ msgid "" "directory, is used for \"pure module distributions\"---that is, module " "distributions that include only pure Python modules. If a module " "distribution contains any extensions (modules written in C/C++), then the " -"second form, with two ```` directories, is used. In that case, the " -":file:`temp.{plat}` directory holds temporary files generated by the " -"compile/link process that don't actually get installed. In either case, the" -" :file:`lib` (or :file:`lib.{plat}`) directory contains all Python modules " -"(pure Python and extensions) that will be installed." +"second form, with two ```` directories, is used. In that case, the :" +"file:`temp.{plat}` directory holds temporary files generated by the compile/" +"link process that don't actually get installed. In either case, the :file:" +"`lib` (or :file:`lib.{plat}`) directory contains all Python modules (pure " +"Python and extensions) that will be installed." msgstr "" #: ../../install/index.rst:229 msgid "" "In the future, more directories will be added to handle Python scripts, " -"documentation, binary executables, and whatever else is needed to handle the" -" job of installing Python modules and applications." +"documentation, binary executables, and whatever else is needed to handle the " +"job of installing Python modules and applications." msgstr "" #: ../../install/index.rst:237 @@ -299,10 +300,10 @@ msgstr "Como a instalação funciona" #: ../../install/index.rst:239 msgid "" "After the :command:`build` command runs (whether you run it explicitly, or " -"the :command:`install` command does it for you), the work of the " -":command:`install` command is relatively simple: all it has to do is copy " -"everything under :file:`build/lib` (or :file:`build/lib.{plat}`) to your " -"chosen installation directory." +"the :command:`install` command does it for you), the work of the :command:" +"`install` command is relatively simple: all it has to do is copy everything " +"under :file:`build/lib` (or :file:`build/lib.{plat}`) to your chosen " +"installation directory." msgstr "" #: ../../install/index.rst:245 @@ -339,11 +340,11 @@ msgstr "" #: ../../install/index.rst:257 ../../install/index.rst:470 msgid ":file:`{prefix}/lib/python{X.Y}/site-packages`" -msgstr "" +msgstr ":file:`{prefix}/lib/python{X.Y}/site-packages`" #: ../../install/index.rst:257 ../../install/index.rst:259 msgid ":file:`/usr/local/lib/python{X.Y}/site-packages`" -msgstr "" +msgstr ":file:`/usr/local/lib/python{X.Y}/site-packages`" #: ../../install/index.rst:257 ../../install/index.rst:259 #: ../../install/index.rst:783 @@ -356,7 +357,7 @@ msgstr "" #: ../../install/index.rst:259 ../../install/index.rst:471 msgid ":file:`{exec-prefix}/lib/python{X.Y}/site-packages`" -msgstr "" +msgstr ":file:`{exec-prefix}/lib/python{X.Y}/site-packages`" #: ../../install/index.rst:261 msgid "Windows" @@ -364,11 +365,11 @@ msgstr "Windows" #: ../../install/index.rst:261 ../../install/index.rst:522 msgid ":file:`{prefix}\\\\Lib\\\\site-packages`" -msgstr "" +msgstr ":file:`{prefix}\\\\Lib\\\\site-packages`" #: ../../install/index.rst:261 msgid ":file:`C:\\\\Python{XY}\\\\Lib\\\\site-packages`" -msgstr "" +msgstr ":file:`C:\\\\Python{XY}\\\\Lib\\\\site-packages`" #: ../../install/index.rst:261 ../../install/index.rst:785 msgid "\\(2)" @@ -380,17 +381,17 @@ msgstr "Notas:" #: ../../install/index.rst:267 msgid "" -"Most Linux distributions include Python as a standard part of the system, so" -" :file:`{prefix}` and :file:`{exec-prefix}` are usually both :file:`/usr` on" -" Linux. If you build Python yourself on Linux (or any Unix-like system), " -"the default :file:`{prefix}` and :file:`{exec-prefix}` are " -":file:`/usr/local`." +"Most Linux distributions include Python as a standard part of the system, " +"so :file:`{prefix}` and :file:`{exec-prefix}` are usually both :file:`/usr` " +"on Linux. If you build Python yourself on Linux (or any Unix-like system), " +"the default :file:`{prefix}` and :file:`{exec-prefix}` are :file:`/usr/" +"local`." msgstr "" #: ../../install/index.rst:273 msgid "" -"The default installation directory on Windows was :file:`C:\\\\Program " -"Files\\\\Python` under Python 1.6a1, 1.5.2, and earlier." +"The default installation directory on Windows was :file:`C:\\\\Program Files" +"\\\\Python` under Python 1.6a1, 1.5.2, and earlier." msgstr "" #: ../../install/index.rst:276 @@ -398,20 +399,20 @@ msgid "" ":file:`{prefix}` and :file:`{exec-prefix}` stand for the directories that " "Python is installed to, and where it finds its libraries at run-time. They " "are always the same under Windows, and very often the same under Unix and " -"Mac OS X. You can find out what your Python installation uses for " -":file:`{prefix}` and :file:`{exec-prefix}` by running Python in interactive " -"mode and typing a few simple commands. Under Unix, just type ``python`` at " -"the shell prompt. Under Windows, choose :menuselection:`Start --> Programs " -"--> Python X.Y --> Python (command line)`. Once the interpreter is " -"started, you type Python code at the prompt. For example, on my Linux " -"system, I type the three Python statements shown below, and get the output " -"as shown, to find out my :file:`{prefix}` and :file:`{exec-prefix}`:" +"Mac OS X. You can find out what your Python installation uses for :file:" +"`{prefix}` and :file:`{exec-prefix}` by running Python in interactive mode " +"and typing a few simple commands. Under Unix, just type ``python`` at the " +"shell prompt. Under Windows, choose :menuselection:`Start --> Programs --> " +"Python X.Y --> Python (command line)`. Once the interpreter is started, " +"you type Python code at the prompt. For example, on my Linux system, I type " +"the three Python statements shown below, and get the output as shown, to " +"find out my :file:`{prefix}` and :file:`{exec-prefix}`:" msgstr "" #: ../../install/index.rst:298 msgid "" -"A few other placeholders are used in this document: :file:`{X.Y}` stands for" -" the version of Python, for example ``3.2``; :file:`{abiflags}` will be " +"A few other placeholders are used in this document: :file:`{X.Y}` stands for " +"the version of Python, for example ``3.2``; :file:`{abiflags}` will be " "replaced by the value of :data:`sys.abiflags` or the empty string for " "platforms which don't define ABI flags; :file:`{distname}` will be replaced " "by the name of the module distribution being installed. Dots and " @@ -437,8 +438,8 @@ msgid "" "Often, it is necessary or desirable to install modules to a location other " "than the standard location for third-party Python modules. For example, on " "a Unix system you might not have permission to write to the standard third-" -"party module directory. Or you might wish to try out a module before making" -" it a standard part of your local Python installation. This is especially " +"party module directory. Or you might wish to try out a module before making " +"it a standard part of your local Python installation. This is especially " "true when upgrading a distribution already present: you want to make sure " "your existing base of scripts still works with the new version before " "actually upgrading." @@ -448,17 +449,17 @@ msgstr "" msgid "" "The Distutils :command:`install` command is designed to make installing " "module distributions to an alternate location simple and painless. The " -"basic idea is that you supply a base directory for the installation, and the" -" :command:`install` command picks a set of directories (called an " -"*installation scheme*) under this base directory in which to install files." -" The details differ across platforms, so read whichever of the following " +"basic idea is that you supply a base directory for the installation, and " +"the :command:`install` command picks a set of directories (called an " +"*installation scheme*) under this base directory in which to install files. " +"The details differ across platforms, so read whichever of the following " "sections applies to you." msgstr "" #: ../../install/index.rst:334 msgid "" -"Note that the various alternate installation schemes are mutually exclusive:" -" you can pass ``--user``, or ``--home``, or ``--prefix`` and ``--exec-" +"Note that the various alternate installation schemes are mutually exclusive: " +"you can pass ``--user``, or ``--home``, or ``--prefix`` and ``--exec-" "prefix``, or ``--install-base`` and ``--install-platbase``, but you can't " "mix from these groups." msgstr "" @@ -477,9 +478,9 @@ msgstr "" #: ../../install/index.rst:351 msgid "" "Files will be installed into subdirectories of :data:`site.USER_BASE` " -"(written as :file:`{userbase}` hereafter). This scheme installs pure Python" -" modules and extension modules in the same location (also known as " -":data:`site.USER_SITE`). Here are the values for UNIX, including Mac OS X:" +"(written as :file:`{userbase}` hereafter). This scheme installs pure Python " +"modules and extension modules in the same location (also known as :data:" +"`site.USER_SITE`). Here are the values for UNIX, including Mac OS X:" msgstr "" #: ../../install/index.rst:357 ../../install/index.rst:368 @@ -502,7 +503,7 @@ msgstr "" #: ../../install/index.rst:359 msgid ":file:`{userbase}/lib/python{X.Y}/site-packages`" -msgstr "" +msgstr ":file:`{userbase}/lib/python{X.Y}/site-packages`" #: ../../install/index.rst:360 ../../install/index.rst:371 #: ../../install/index.rst:422 ../../install/index.rst:472 @@ -532,7 +533,7 @@ msgstr "Cabeçalhos do C" #: ../../install/index.rst:362 msgid ":file:`{userbase}/include/python{X.Y}{abiflags}/{distname}`" -msgstr "" +msgstr ":file:`{userbase}/include/python{X.Y}{abiflags}/{distname}`" #: ../../install/index.rst:365 msgid "And here are the values used on Windows:" @@ -555,16 +556,16 @@ msgid "" "The advantage of using this scheme compared to the other ones described " "below is that the user site-packages directory is under normal conditions " "always included in :data:`sys.path` (see :mod:`site` for more information), " -"which means that there is no additional step to perform after running the " -":file:`setup.py` script to finalize the installation." +"which means that there is no additional step to perform after running the :" +"file:`setup.py` script to finalize the installation." msgstr "" #: ../../install/index.rst:382 msgid "" -"The :command:`build_ext` command also has a ``--user`` option to add " -":file:`{userbase}/include` to the compiler search path for header files and " -":file:`{userbase}/lib` to the compiler search path for libraries as well as " -"to the runtime search path for shared C libraries (rpath)." +"The :command:`build_ext` command also has a ``--user`` option to add :file:" +"`{userbase}/include` to the compiler search path for header files and :file:" +"`{userbase}/lib` to the compiler search path for libraries as well as to the " +"runtime search path for shared C libraries (rpath)." msgstr "" #: ../../install/index.rst:391 @@ -575,9 +576,9 @@ msgstr "" msgid "" "The idea behind the \"home scheme\" is that you build and maintain a " "personal stash of Python modules. This scheme's name is derived from the " -"idea of a \"home\" directory on Unix, since it's not unusual for a Unix user" -" to make their home directory have a layout similar to :file:`/usr/` or " -":file:`/usr/local/`. This scheme can be used by anyone, regardless of the " +"idea of a \"home\" directory on Unix, since it's not unusual for a Unix user " +"to make their home directory have a layout similar to :file:`/usr/` or :file:" +"`/usr/local/`. This scheme can be used by anyone, regardless of the " "operating system they are installing for." msgstr "" @@ -588,40 +589,40 @@ msgstr "" #: ../../install/index.rst:404 msgid "" "where you can supply any directory you like for the :option:`!--home` " -"option. On Unix, lazy typists can just type a tilde (``~``); the " -":command:`install` command will expand this to your home directory::" +"option. On Unix, lazy typists can just type a tilde (``~``); the :command:" +"`install` command will expand this to your home directory::" msgstr "" #: ../../install/index.rst:410 msgid "" "To make Python find the distributions installed with this scheme, you may " -"have to :ref:`modify Python's search path ` or edit " -":mod:`sitecustomize` (see :mod:`site`) to call :func:`site.addsitedir` or " -"edit :data:`sys.path`." +"have to :ref:`modify Python's search path ` or edit :mod:" +"`sitecustomize` (see :mod:`site`) to call :func:`site.addsitedir` or edit :" +"data:`sys.path`." msgstr "" #: ../../install/index.rst:415 msgid "" -"The :option:`!--home` option defines the installation base directory. Files" -" are installed to the following directories under the installation base as " +"The :option:`!--home` option defines the installation base directory. Files " +"are installed to the following directories under the installation base as " "follows:" msgstr "" #: ../../install/index.rst:421 msgid ":file:`{home}/lib/python`" -msgstr "" +msgstr ":file:`{home}/lib/python`" #: ../../install/index.rst:422 msgid ":file:`{home}/bin`" -msgstr "" +msgstr ":file:`{home}/bin`" #: ../../install/index.rst:423 msgid ":file:`{home}`" -msgstr "" +msgstr ":file:`{home}`" #: ../../install/index.rst:424 msgid ":file:`{home}/include/python/{distname}`" -msgstr "" +msgstr ":file:`{home}/include/python/{distname}`" #: ../../install/index.rst:427 msgid "(Mentally replace slashes with backslashes if you're on Windows.)" @@ -633,13 +634,13 @@ msgstr "" #: ../../install/index.rst:435 msgid "" -"The \"prefix scheme\" is useful when you wish to use one Python installation" -" to perform the build/install (i.e., to run the setup script), but install " +"The \"prefix scheme\" is useful when you wish to use one Python installation " +"to perform the build/install (i.e., to run the setup script), but install " "modules into the third-party module directory of a different Python " -"installation (or something that looks like a different Python installation)." -" If this sounds a trifle unusual, it is---that's why the user and home " -"schemes come before. However, there are at least two known cases where the " -"prefix scheme will be useful." +"installation (or something that looks like a different Python " +"installation). If this sounds a trifle unusual, it is---that's why the user " +"and home schemes come before. However, there are at least two known cases " +"where the prefix scheme will be useful." msgstr "" #: ../../install/index.rst:442 @@ -658,8 +659,8 @@ msgid "" "a remote directory is different from the name used to read it: for example, " "the Python interpreter accessed as :file:`/usr/local/bin/python` might " "search for modules in :file:`/usr/local/lib/python2.{X}`, but those modules " -"would have to be installed to, say, " -":file:`/mnt/{@server}/export/lib/python2.{X}`. This could be done with ::" +"would have to be installed to, say, :file:`/mnt/{@server}/export/lib/python2." +"{X}`. This could be done with ::" msgstr "" #: ../../install/index.rst:460 @@ -683,20 +684,20 @@ msgstr "" #: ../../install/index.rst:472 msgid ":file:`{prefix}/bin`" -msgstr "" +msgstr ":file:`{prefix}/bin`" #: ../../install/index.rst:473 ../../install/index.rst:524 msgid ":file:`{prefix}`" -msgstr "" +msgstr ":file:`{prefix}`" #: ../../install/index.rst:474 msgid ":file:`{prefix}/include/python{X.Y}{abiflags}/{distname}`" -msgstr "" +msgstr ":file:`{prefix}/include/python{X.Y}{abiflags}/{distname}`" #: ../../install/index.rst:477 msgid "" -"There is no requirement that :option:`!--prefix` or :option:`!--exec-prefix`" -" actually point to an alternate Python installation; if the directories " +"There is no requirement that :option:`!--prefix` or :option:`!--exec-prefix` " +"actually point to an alternate Python installation; if the directories " "listed above do not already exist, they are created at installation time." msgstr "" @@ -704,9 +705,9 @@ msgstr "" msgid "" "Incidentally, the real reason the prefix scheme is important is simply that " "a standard Unix installation uses the prefix scheme, but with :option:`!--" -"prefix` and :option:`!--exec-prefix` supplied by Python itself as " -"``sys.prefix`` and ``sys.exec_prefix``. Thus, you might think you'll never " -"use the prefix scheme, but every time you run ``python setup.py install`` " +"prefix` and :option:`!--exec-prefix` supplied by Python itself as ``sys." +"prefix`` and ``sys.exec_prefix``. Thus, you might think you'll never use " +"the prefix scheme, but every time you run ``python setup.py install`` " "without any other options, you're using it." msgstr "" @@ -717,11 +718,11 @@ msgid "" "files (:file:`Python.h` and friends) installed with the Python interpreter " "used to run the setup script will be used in compiling extensions. It is " "your responsibility to ensure that the interpreter used to run extensions " -"installed in this way is compatible with the interpreter used to build them." -" The best way to do this is to ensure that the two interpreters are the " -"same version of Python (possibly different builds, or possibly copies of the" -" same build). (Of course, if your :option:`!--prefix` and :option:`!--exec-" -"prefix` don't even point to an alternate Python installation, this is " +"installed in this way is compatible with the interpreter used to build " +"them. The best way to do this is to ensure that the two interpreters are " +"the same version of Python (possibly different builds, or possibly copies of " +"the same build). (Of course, if your :option:`!--prefix` and :option:`!--" +"exec-prefix` don't even point to an alternate Python installation, this is " "immaterial.)" msgstr "" @@ -732,9 +733,9 @@ msgstr "" #: ../../install/index.rst:505 msgid "" "Windows has no concept of a user's home directory, and since the standard " -"Python installation under Windows is simpler than under Unix, the :option:`!" -"--prefix` option has traditionally been used to install additional packages " -"in separate locations on Windows. ::" +"Python installation under Windows is simpler than under Unix, the :option:" +"`!--prefix` option has traditionally been used to install additional " +"packages in separate locations on Windows. ::" msgstr "" #: ../../install/index.rst:512 @@ -745,19 +746,19 @@ msgstr "" #: ../../install/index.rst:514 msgid "" -"The installation base is defined by the :option:`!--prefix` option; the " -":option:`!--exec-prefix` option is not supported under Windows, which means " +"The installation base is defined by the :option:`!--prefix` option; the :" +"option:`!--exec-prefix` option is not supported under Windows, which means " "that pure Python modules and extension modules are installed into the same " "location. Files are installed as follows:" msgstr "" #: ../../install/index.rst:523 msgid ":file:`{prefix}\\\\Scripts`" -msgstr "" +msgstr ":file:`{prefix}\\\\Scripts`" #: ../../install/index.rst:525 msgid ":file:`{prefix}\\\\Include\\\\{distname}`" -msgstr "" +msgstr ":file:`{prefix}\\\\Include\\\\{distname}`" #: ../../install/index.rst:532 msgid "Custom Installation" @@ -765,11 +766,11 @@ msgstr "Instalação customizada" #: ../../install/index.rst:534 msgid "" -"Sometimes, the alternate installation schemes described in section :ref" -":`inst-alt-install` just don't do what you want. You might want to tweak " +"Sometimes, the alternate installation schemes described in section :ref:" +"`inst-alt-install` just don't do what you want. You might want to tweak " "just one or two directories while keeping everything under the same base " -"directory, or you might want to completely redefine the installation scheme." -" In either case, you're creating a *custom installation scheme*." +"directory, or you might want to completely redefine the installation " +"scheme. In either case, you're creating a *custom installation scheme*." msgstr "" #: ../../install/index.rst:540 @@ -785,11 +786,11 @@ msgstr "" #: ../../install/index.rst:547 msgid "``--install-purelib``" -msgstr "" +msgstr "``--install-purelib``" #: ../../install/index.rst:548 msgid "``--install-platlib``" -msgstr "" +msgstr "``--install-platlib``" #: ../../install/index.rst:549 msgid "all modules" @@ -797,27 +798,27 @@ msgstr "todos os módulos" #: ../../install/index.rst:549 msgid "``--install-lib``" -msgstr "" +msgstr "``--install-lib``" #: ../../install/index.rst:550 msgid "``--install-scripts``" -msgstr "" +msgstr "``--install-scripts``" #: ../../install/index.rst:551 msgid "``--install-data``" -msgstr "" +msgstr "``--install-data``" #: ../../install/index.rst:552 msgid "``--install-headers``" -msgstr "" +msgstr "``--install-headers``" #: ../../install/index.rst:555 msgid "" "These override options can be relative, absolute, or explicitly defined in " "terms of one of the installation base directories. (There are two " "installation base directories, and they are normally the same---they only " -"differ when you use the Unix \"prefix scheme\" and supply different " -"``--prefix`` and ``--exec-prefix`` options; using ``--install-lib`` will " +"differ when you use the Unix \"prefix scheme\" and supply different ``--" +"prefix`` and ``--exec-prefix`` options; using ``--install-lib`` will " "override values computed or given for ``--install-purelib`` and ``--install-" "platlib``, and is recommended for schemes that don't make a difference " "between Python and extension modules.)" @@ -845,16 +846,16 @@ msgstr "" #: ../../install/index.rst:581 msgid "" -"(This performs an installation using the \"prefix scheme,\" where the prefix" -" is whatever your Python interpreter was installed with--- " -":file:`/usr/local/python` in this case.)" +"(This performs an installation using the \"prefix scheme\", where the prefix " +"is whatever your Python interpreter was installed with--- :file:`/usr/local/" +"python` in this case.)" msgstr "" #: ../../install/index.rst:585 msgid "" "If you maintain Python on Windows, you might want third-party modules to " -"live in a subdirectory of :file:`{prefix}`, rather than right in " -":file:`{prefix}` itself. This is almost as easy as customizing the script " +"live in a subdirectory of :file:`{prefix}`, rather than right in :file:" +"`{prefix}` itself. This is almost as easy as customizing the script " "installation directory---you just have to remember that there are two types " "of modules to worry about, Python and extension modules, which can " "conveniently be both controlled by one option::" @@ -864,19 +865,19 @@ msgstr "" msgid "" "The specified installation directory is relative to :file:`{prefix}`. Of " "course, you also have to ensure that this directory is in Python's module " -"search path, such as by putting a :file:`.pth` file in a site directory (see" -" :mod:`site`). See section :ref:`inst-search-path` to find out how to " +"search path, such as by putting a :file:`.pth` file in a site directory " +"(see :mod:`site`). See section :ref:`inst-search-path` to find out how to " "modify Python's search path." msgstr "" #: ../../install/index.rst:600 msgid "" -"If you want to define an entire installation scheme, you just have to supply" -" all of the installation directory options. The recommended way to do this " -"is to supply relative paths; for example, if you want to maintain all Python" -" module-related files under :file:`python` in your home directory, and you " -"want a separate directory for each platform that you use your home directory" -" from, you might define the following installation scheme::" +"If you want to define an entire installation scheme, you just have to supply " +"all of the installation directory options. The recommended way to do this " +"is to supply relative paths; for example, if you want to maintain all Python " +"module-related files under :file:`python` in your home directory, and you " +"want a separate directory for each platform that you use your home directory " +"from, you might define the following installation scheme::" msgstr "" #: ../../install/index.rst:613 @@ -885,8 +886,8 @@ msgstr "" #: ../../install/index.rst:621 msgid "" -"``$PLAT`` is not (necessarily) an environment variable---it will be expanded" -" by the Distutils as it parses your command line options, just as it does " +"``$PLAT`` is not (necessarily) an environment variable---it will be expanded " +"by the Distutils as it parses your command line options, just as it does " "when parsing your configuration file(s)." msgstr "" @@ -910,9 +911,9 @@ msgstr "" #: ../../install/index.rst:654 msgid "" -"would install pure modules to :file:`/tmp/python/lib` in the first case, and" -" to :file:`/tmp/lib` in the second case. (For the second case, you probably" -" want to supply an installation base of :file:`/tmp/python`.)" +"would install pure modules to :file:`/tmp/python/lib` in the first case, and " +"to :file:`/tmp/lib` in the second case. (For the second case, you probably " +"want to supply an installation base of :file:`/tmp/python`.)" msgstr "" #: ../../install/index.rst:658 @@ -945,8 +946,8 @@ msgid "" "When the Python interpreter executes an :keyword:`import` statement, it " "searches for both Python code and extension modules along a search path. A " "default value for the path is configured into the Python binary when the " -"interpreter is built. You can determine the path by importing the :mod:`sys`" -" module and printing the value of ``sys.path``. ::" +"interpreter is built. You can determine the path by importing the :mod:`sys` " +"module and printing the value of ``sys.path``. ::" msgstr "" #: ../../install/index.rst:701 @@ -956,14 +957,13 @@ msgstr "" #: ../../install/index.rst:703 msgid "" -"The expected convention for locally installed packages is to put them in the" -" :file:`{...}/site-packages/` directory, but you may want to install Python " -"modules into some arbitrary directory. For example, your site may have a " -"convention of keeping all software related to the web server under " -":file:`/www`. Add-on Python modules might then belong in " -":file:`/www/python`, and in order to import them, this directory must be " -"added to ``sys.path``. There are several different ways to add the " -"directory." +"The expected convention for locally installed packages is to put them in " +"the :file:`{...}/site-packages/` directory, but you may want to install " +"Python modules into some arbitrary directory. For example, your site may " +"have a convention of keeping all software related to the web server under :" +"file:`/www`. Add-on Python modules might then belong in :file:`/www/python`, " +"and in order to import them, this directory must be added to ``sys.path``. " +"There are several different ways to add the directory." msgstr "" #: ../../install/index.rst:711 @@ -971,8 +971,8 @@ msgid "" "The most convenient way is to add a path configuration file to a directory " "that's already on Python's path, usually to the :file:`.../site-packages/` " "directory. Path configuration files have an extension of :file:`.pth`, and " -"each line must contain a single path that will be appended to ``sys.path``." -" (Because the new paths are appended to ``sys.path``, modules in the added " +"each line must contain a single path that will be appended to ``sys.path``. " +"(Because the new paths are appended to ``sys.path``, modules in the added " "directories will not override standard modules. This means you can't use " "this mechanism for installing fixed versions of standard modules.)" msgstr "" @@ -980,16 +980,16 @@ msgstr "" #: ../../install/index.rst:719 msgid "" "Paths can be absolute or relative, in which case they're relative to the " -"directory containing the :file:`.pth` file. See the documentation of the " -":mod:`site` module for more information." +"directory containing the :file:`.pth` file. See the documentation of the :" +"mod:`site` module for more information." msgstr "" #: ../../install/index.rst:723 msgid "" "A slightly less convenient way is to edit the :file:`site.py` file in " "Python's standard library, and modify ``sys.path``. :file:`site.py` is " -"automatically imported when the Python interpreter is executed, unless the " -":option:`-S` switch is supplied to suppress this behaviour. So you could " +"automatically imported when the Python interpreter is executed, unless the :" +"option:`-S` switch is supplied to suppress this behaviour. So you could " "simply edit :file:`site.py` and add two lines to it:" msgstr "" @@ -1003,22 +1003,21 @@ msgstr "" #: ../../install/index.rst:739 msgid "" -"There are two environment variables that can modify ``sys.path``. " -":envvar:`PYTHONHOME` sets an alternate value for the prefix of the Python " -"installation. For example, if :envvar:`PYTHONHOME` is set to " -"``/www/python``, the search path will be set to ``['', " -"'/www/python/lib/pythonX.Y/', '/www/python/lib/pythonX.Y/plat-linux2', " -"...]``." +"There are two environment variables that can modify ``sys.path``. :envvar:" +"`PYTHONHOME` sets an alternate value for the prefix of the Python " +"installation. For example, if :envvar:`PYTHONHOME` is set to ``/www/" +"python``, the search path will be set to ``['', '/www/python/lib/pythonX." +"Y/', '/www/python/lib/pythonX.Y/plat-linux2', ...]``." msgstr "" #: ../../install/index.rst:745 msgid "" -"The :envvar:`PYTHONPATH` variable can be set to a list of paths that will be" -" added to the beginning of ``sys.path``. For example, if " -":envvar:`PYTHONPATH` is set to ``/www/python:/opt/py``, the search path will" -" begin with ``['/www/python', '/opt/py']``. (Note that directories must " -"exist in order to be added to ``sys.path``; the :mod:`site` module removes " -"paths that don't exist.)" +"The :envvar:`PYTHONPATH` variable can be set to a list of paths that will be " +"added to the beginning of ``sys.path``. For example, if :envvar:" +"`PYTHONPATH` is set to ``/www/python:/opt/py``, the search path will begin " +"with ``['/www/python', '/opt/py']``. (Note that directories must exist in " +"order to be added to ``sys.path``; the :mod:`site` module removes paths that " +"don't exist.)" msgstr "" #: ../../install/index.rst:752 @@ -1034,8 +1033,8 @@ msgstr "" #: ../../install/index.rst:761 msgid "" "As mentioned above, you can use Distutils configuration files to record " -"personal or site preferences for any Distutils options. That is, any option" -" to any command can be stored in one of two or three (depending on your " +"personal or site preferences for any Distutils options. That is, any option " +"to any command can be stored in one of two or three (depending on your " "platform) configuration files, which will be consulted before the command-" "line is parsed. This means that configuration files will override default " "values, and the command-line will in turn override configuration files. " @@ -1064,7 +1063,7 @@ msgstr "" #: ../../install/index.rst:783 msgid ":file:`{prefix}/lib/python{ver}/distutils/distutils.cfg`" -msgstr "" +msgstr ":file:`{prefix}/lib/python{ver}/distutils/distutils.cfg`" #: ../../install/index.rst:785 ../../install/index.rst:797 msgid "personal" @@ -1072,7 +1071,7 @@ msgstr "" #: ../../install/index.rst:785 msgid ":file:`$HOME/.pydistutils.cfg`" -msgstr "" +msgstr ":file:`$HOME/.pydistutils.cfg`" #: ../../install/index.rst:787 ../../install/index.rst:799 msgid "local" @@ -1080,7 +1079,7 @@ msgstr "" #: ../../install/index.rst:787 ../../install/index.rst:799 msgid ":file:`setup.cfg`" -msgstr "" +msgstr ":file:`setup.cfg`" #: ../../install/index.rst:787 ../../install/index.rst:799 msgid "\\(3)" @@ -1092,7 +1091,7 @@ msgstr "" #: ../../install/index.rst:795 msgid ":file:`{prefix}\\\\Lib\\\\distutils\\\\distutils.cfg`" -msgstr "" +msgstr ":file:`{prefix}\\\\Lib\\\\distutils\\\\distutils.cfg`" #: ../../install/index.rst:795 msgid "\\(4)" @@ -1100,7 +1099,7 @@ msgstr "\\(4)" #: ../../install/index.rst:797 msgid ":file:`%HOME%\\\\pydistutils.cfg`" -msgstr "" +msgstr ":file:`%HOME%\\\\pydistutils.cfg`" #: ../../install/index.rst:797 msgid "\\(5)" @@ -1114,10 +1113,10 @@ msgstr "" #: ../../install/index.rst:808 msgid "" -"Strictly speaking, the system-wide configuration file lives in the directory" -" where the Distutils are installed; under Python 1.6 and later on Unix, this" -" is as shown. For Python 1.5.2, the Distutils will normally be installed to " -":file:`{prefix}/lib/python1.5/site-packages/distutils`, so the system " +"Strictly speaking, the system-wide configuration file lives in the directory " +"where the Distutils are installed; under Python 1.6 and later on Unix, this " +"is as shown. For Python 1.5.2, the Distutils will normally be installed to :" +"file:`{prefix}/lib/python1.5/site-packages/distutils`, so the system " "configuration file should be put there under Python 1.5.2." msgstr "" @@ -1125,8 +1124,8 @@ msgstr "" msgid "" "On Unix, if the :envvar:`HOME` environment variable is not defined, the " "user's home directory will be determined with the :func:`getpwuid` function " -"from the standard :mod:`pwd` module. This is done by the " -":func:`os.path.expanduser` function used by Distutils." +"from the standard :mod:`pwd` module. This is done by the :func:`os.path." +"expanduser` function used by Distutils." msgstr "" #: ../../install/index.rst:821 @@ -1137,20 +1136,20 @@ msgstr "" #: ../../install/index.rst:824 msgid "" "(See also note (1).) Under Python 1.6 and later, Python's default " -"\"installation prefix\" is :file:`C:\\\\Python`, so the system configuration" -" file is normally :file:`C:\\\\Python\\\\Lib\\\\distutils\\\\distutils.cfg`." -" Under Python 1.5.2, the default prefix was :file:`C:\\\\Program " -"Files\\\\Python`, and the Distutils were not part of the standard library---" -"so the system configuration file would be :file:`C:\\\\Program " -"Files\\\\Python\\\\distutils\\\\distutils.cfg` in a standard Python 1.5.2 " -"installation under Windows." +"\"installation prefix\" is :file:`C:\\\\Python`, so the system configuration " +"file is normally :file:`C:\\\\Python\\\\Lib\\\\distutils\\\\distutils.cfg`. " +"Under Python 1.5.2, the default prefix was :file:`C:\\\\Program Files\\" +"\\Python`, and the Distutils were not part of the standard library---so the " +"system configuration file would be :file:`C:\\\\Program Files\\\\Python\\" +"\\distutils\\\\distutils.cfg` in a standard Python 1.5.2 installation under " +"Windows." msgstr "" #: ../../install/index.rst:833 msgid "" -"On Windows, if the :envvar:`HOME` environment variable is not defined, " -":envvar:`USERPROFILE` then :envvar:`HOMEDRIVE` and :envvar:`HOMEPATH` will " -"be tried. This is done by the :func:`os.path.expanduser` function used by " +"On Windows, if the :envvar:`HOME` environment variable is not defined, :" +"envvar:`USERPROFILE` then :envvar:`HOMEDRIVE` and :envvar:`HOMEPATH` will be " +"tried. This is done by the :func:`os.path.expanduser` function used by " "Distutils." msgstr "" @@ -1185,8 +1184,8 @@ msgstr "" #: ../../install/index.rst:864 msgid "" -"You could override the default \"build base\" directory and make the " -":command:`build\\*` commands always forcibly rebuild all files with the " +"You could override the default \"build base\" directory and make the :" +"command:`build\\*` commands always forcibly rebuild all files with the " "following:" msgstr "" @@ -1196,8 +1195,8 @@ msgstr "" #: ../../install/index.rst:878 msgid "" -"except that including the :command:`build` command on the command-line means" -" that command will be run. Including a particular command in config files " +"except that including the :command:`build` command on the command-line means " +"that command will be run. Including a particular command in config files " "has no such implication; it only means that if the command is run, the " "options in the config file will apply. (Or if other commands that derive " "values from it are run, they will use the values in the config file.)" @@ -1205,14 +1204,14 @@ msgstr "" #: ../../install/index.rst:884 msgid "" -"You can find out the complete list of options for any command using the " -":option:`!--help` option, e.g.::" +"You can find out the complete list of options for any command using the :" +"option:`!--help` option, e.g.::" msgstr "" #: ../../install/index.rst:889 msgid "" -"and you can find out the complete list of global options by using :option:`!" -"--help` without a command::" +"and you can find out the complete list of global options by using :option:" +"`!--help` without a command::" msgstr "" #: ../../install/index.rst:894 @@ -1281,8 +1280,8 @@ msgid "" "*sourcefile* is anything that's likely to be a source code file, at least " "judging by the filename. Filenames ending in :file:`.c` are assumed to be " "written in C, filenames ending in :file:`.C`, :file:`.cc`, and :file:`.c++` " -"are assumed to be C++, and filenames ending in :file:`.m` or :file:`.mm` are" -" assumed to be in Objective C." +"are assumed to be C++, and filenames ending in :file:`.m` or :file:`.mm` are " +"assumed to be in Objective C." msgstr "" #: ../../install/index.rst:946 @@ -1306,8 +1305,8 @@ msgstr "" #: ../../install/index.rst:958 msgid "" -"must be linked with the math library :file:`libm.a` on your platform, simply" -" add :option:`!-lm` to the line::" +"must be linked with the math library :file:`libm.a` on your platform, simply " +"add :option:`!-lm` to the line::" msgstr "" #: ../../install/index.rst:963 @@ -1320,11 +1319,11 @@ msgstr "" msgid "" "The next option after :option:`!-Xcompiler` and :option:`!-Xlinker` will be " "appended to the proper command line, so in the above example the compiler " -"will be passed the :option:`!-o32` option, and the linker will be passed " -":option:`!-shared`. If a compiler option requires an argument, you'll have " -"to supply multiple :option:`!-Xcompiler` options; for example, to pass ``-x " -"c++`` the :file:`Setup` file would have to contain ``-Xcompiler -x " -"-Xcompiler c++``." +"will be passed the :option:`!-o32` option, and the linker will be passed :" +"option:`!-shared`. If a compiler option requires an argument, you'll have " +"to supply multiple :option:`!-Xcompiler` options; for example, to pass ``-x c" +"++`` the :file:`Setup` file would have to contain ``-Xcompiler -x -Xcompiler " +"c++``." msgstr "" #: ../../install/index.rst:975 @@ -1349,14 +1348,14 @@ msgid "" "object file format (OMF) is different from the format used by the Python " "version you can download from the Python or ActiveState Web site. (Python " "is built with Microsoft Visual C++, which uses COFF as the object file " -"format.) For this reason you have to convert Python's library " -":file:`python25.lib` into the Borland format. You can do this as follows:" +"format.) For this reason you have to convert Python's library :file:" +"`python25.lib` into the Borland format. You can do this as follows:" msgstr "" #: ../../install/index.rst:1007 msgid "" -"The :file:`coff2omf` program comes with the Borland compiler. The file " -":file:`python25.lib` is in the :file:`Libs` directory of your Python " +"The :file:`coff2omf` program comes with the Borland compiler. The file :" +"file:`python25.lib` is in the :file:`Libs` directory of your Python " "installation. If your extension uses other libraries (zlib, ...) you have " "to convert them too." msgstr "" @@ -1370,10 +1369,10 @@ msgstr "" #: ../../install/index.rst:1015 msgid "" "How does Distutils manage to use these libraries with their changed names? " -"If the extension needs a library (eg. :file:`foo`) Distutils checks first if" -" it finds a library with suffix :file:`_bcpp` (eg. :file:`foo_bcpp.lib`) and" -" then uses this library. In the case it doesn't find such a special library" -" it uses the default name (:file:`foo.lib`.) [#]_" +"If the extension needs a library (eg. :file:`foo`) Distutils checks first if " +"it finds a library with suffix :file:`_bcpp` (eg. :file:`foo_bcpp.lib`) and " +"then uses this library. In the case it doesn't find such a special library " +"it uses the default name (:file:`foo.lib`.) [#]_" msgstr "" #: ../../install/index.rst:1021 @@ -1395,14 +1394,14 @@ msgstr "" #: ../../install/index.rst:1033 msgid "" -"Information about the free C++ compiler from Borland, including links to the" -" download pages." +"Information about the free C++ compiler from Borland, including links to the " +"download pages." msgstr "" #: ../../install/index.rst:1037 msgid "" -"`Creating Python Extensions Using Borland's Free Compiler " -"`_" +"`Creating Python Extensions Using Borland's Free Compiler `_" msgstr "" #: ../../install/index.rst:1037 @@ -1417,8 +1416,8 @@ msgstr "" #: ../../install/index.rst:1044 msgid "" -"This section describes the necessary steps to use Distutils with the GNU " -"C/C++ compilers in their Cygwin and MinGW distributions. [#]_ For a Python " +"This section describes the necessary steps to use Distutils with the GNU C/C+" +"+ compilers in their Cygwin and MinGW distributions. [#]_ For a Python " "interpreter that was built with Cygwin, everything should work without any " "of these following steps." msgstr "" @@ -1459,10 +1458,10 @@ msgstr "" #: ../../install/index.rst:1071 msgid "" "These compilers require some special libraries. This task is more complex " -"than for Borland's C++, because there is no program to convert the library." -" First you have to create a list of symbols which the Python DLL exports. " -"(You can find a good program for this task at " -"https://sourceforge.net/projects/mingw/files/MinGW/Extension/pexports/)." +"than for Borland's C++, because there is no program to convert the library. " +"First you have to create a list of symbols which the Python DLL exports. " +"(You can find a good program for this task at https://sourceforge.net/" +"projects/mingw/files/MinGW/Extension/pexports/)." msgstr "" #: ../../install/index.rst:1084 @@ -1481,22 +1480,22 @@ msgstr "" #: ../../install/index.rst:1093 msgid "" -"The resulting library has to be placed in the same directory as " -":file:`python25.lib`. (Should be the :file:`libs` directory under your " -"Python installation directory.)" +"The resulting library has to be placed in the same directory as :file:" +"`python25.lib`. (Should be the :file:`libs` directory under your Python " +"installation directory.)" msgstr "" #: ../../install/index.rst:1097 msgid "" -"If your extension uses other libraries (zlib,...) you might have to convert" -" them too. The converted files have to reside in the same directories as the" -" normal libraries do." +"If your extension uses other libraries (zlib,...) you might have to convert " +"them too. The converted files have to reside in the same directories as the " +"normal libraries do." msgstr "" #: ../../install/index.rst:1104 msgid "" -"`Building Python modules on MS Windows platform with MinGW " -"`_" +"`Building Python modules on MS Windows platform with MinGW `_" msgstr "" #: ../../install/index.rst:1105 @@ -1522,6 +1521,6 @@ msgstr "" #: ../../install/index.rst:1116 msgid "" -"Then you have no POSIX emulation available, but you also don't need " -":file:`cygwin1.dll`." +"Then you have no POSIX emulation available, but you also don't need :file:" +"`cygwin1.dll`." msgstr "" diff --git a/installing/index.po b/installing/index.po index 55326e7fc..bd6c26663 100644 --- a/installing/index.po +++ b/installing/index.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 # Ruan Aragão , 2019 # José Ramon Fragoso da Silva , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-24 03:53+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" -"Last-Translator: José Ramon Fragoso da Silva , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,9 +41,8 @@ msgstr "distutils-sig@python.org" #: ../../installing/index.rst:11 msgid "" "As a popular open source development project, Python has an active " -"supporting community of contributors and users that also make their software" -" available for other Python developers to use under open source license " -"terms." +"supporting community of contributors and users that also make their software " +"available for other Python developers to use under open source license terms." msgstr "" "Como um projeto popular de desenvolvimento open source, Python tem uma " "comunidade de apoio ativa de colaboradores e usuários, que também fazem o " @@ -51,20 +52,20 @@ msgstr "" #: ../../installing/index.rst:15 msgid "" "This allows Python users to share and collaborate effectively, benefiting " -"from the solutions others have already created to common (and sometimes even" -" rare!) problems, as well as potentially contributing their own solutions to" -" the common pool." +"from the solutions others have already created to common (and sometimes even " +"rare!) problems, as well as potentially contributing their own solutions to " +"the common pool." msgstr "" "Isso permite aos usuários Python compartilhar e colaborar efetivamente, se " -"beneficiando das soluções que outros já tenham criado para os problemas mais" -" comuns (em alguns casos até mesmo os raros), bem como potencialmente " +"beneficiando das soluções que outros já tenham criado para os problemas mais " +"comuns (em alguns casos até mesmo os raros), bem como potencialmente " "contribuindo com suas próprias soluções para o conjunto de soluções comuns." #: ../../installing/index.rst:20 msgid "" "This guide covers the installation part of the process. For a guide to " -"creating and sharing your own Python projects, refer to the " -":ref:`distribution guide `." +"creating and sharing your own Python projects, refer to the :ref:" +"`distribution guide `." msgstr "" "Este guia cobre a parte do processo de instalação. Para um guia sobre como " "criar e compartilhar seus próprios projetos Python, refira-se à :ref:` guia " @@ -134,8 +135,8 @@ msgstr "" msgid "" "``distutils`` is the original build and distribution system first added to " "the Python standard library in 1998. While direct use of ``distutils`` is " -"being phased out, it still laid the foundation for the current packaging and" -" distribution infrastructure, and it not only remains part of the standard " +"being phased out, it still laid the foundation for the current packaging and " +"distribution infrastructure, and it not only remains part of the standard " "library, but its name lives on in other ways (such as the name of the " "mailing list used to coordinate Python packaging standards development)." msgstr "" @@ -143,20 +144,26 @@ msgstr "" #: ../../installing/index.rst:65 msgid "" "``pyvenv`` was the recommended tool for creating virtual environments for " -"Python 3.3 and 3.4, and is `deprecated in Python 3.6 " -"`_." +"Python 3.3 and 3.4, and is `deprecated in Python 3.6 `_." msgstr "" +"``pyvenv`` era a ferramenta recomendada para criar ambientes virtuais para " +"Python 3.3 e 3.4, e foi `descontinuado no Python 3.6 `_." #: ../../installing/index.rst:70 msgid "" "The use of ``venv`` is now recommended for creating virtual environments." msgstr "" +"O uso de ``venv`` agora é recomendado para a criação de ambientes virtuais." #: ../../installing/index.rst:75 msgid "" "`Python Packaging User Guide: Creating and using virtual environments " "`__" msgstr "" +"`Python Packaging User Guide: Creating and using virtual environments " +"`__" #: ../../installing/index.rst:80 msgid "Basic usage" @@ -191,8 +198,8 @@ msgstr "" msgid "" "It's also possible to specify an exact or minimum version directly on the " "command line. When using comparator operators such as ``>``, ``<`` or some " -"other special character which get interpreted by shell, the package name and" -" the version should be enclosed within double quotes::" +"other special character which get interpreted by shell, the package name and " +"the version should be enclosed within double quotes::" msgstr "" #: ../../installing/index.rst:107 @@ -204,9 +211,8 @@ msgstr "" #: ../../installing/index.rst:113 msgid "" -"More information and resources regarding ``pip`` and its capabilities can be" -" found in the `Python Packaging User Guide " -"`__." +"More information and resources regarding ``pip`` and its capabilities can be " +"found in the `Python Packaging User Guide `__." msgstr "" #: ../../installing/index.rst:116 @@ -243,9 +249,8 @@ msgstr "" #: ../../installing/index.rst:140 msgid "" -"`Python Packaging User Guide: Requirements for Installing Packages " -"`__" +"`Python Packaging User Guide: Requirements for Installing Packages `__" msgstr "" #: ../../installing/index.rst:147 @@ -264,8 +269,8 @@ msgstr "" #: ../../installing/index.rst:156 msgid "" -"A number of scientific Python packages have complex binary dependencies, and" -" aren't currently easy to install using ``pip`` directly. At this point in " +"A number of scientific Python packages have complex binary dependencies, and " +"aren't currently easy to install using ``pip`` directly. At this point in " "time, it will often be easier for users to install these packages by `other " "means `__ rather than attempting to " "install them with ``pip``." @@ -273,8 +278,8 @@ msgstr "" #: ../../installing/index.rst:164 msgid "" -"`Python Packaging User Guide: Installing Scientific Packages " -"`__" +"`Python Packaging User Guide: Installing Scientific Packages `__" msgstr "" #: ../../installing/index.rst:169 @@ -327,15 +332,15 @@ msgstr "" #: ../../installing/index.rst:217 msgid "" -"It is possible that ``pip`` does not get installed by default. One potential" -" fix is::" +"It is possible that ``pip`` does not get installed by default. One potential " +"fix is::" msgstr "" #: ../../installing/index.rst:221 msgid "" -"There are also additional resources for `installing pip. " -"`__" +"There are also additional resources for `installing pip. `__" msgstr "" #: ../../installing/index.rst:226 @@ -345,8 +350,8 @@ msgstr "" #: ../../installing/index.rst:228 msgid "" "Python has typically relied heavily on source based distribution, with end " -"users being expected to compile extension modules from source as part of the" -" installation process." +"users being expected to compile extension modules from source as part of the " +"installation process." msgstr "" #: ../../installing/index.rst:232 @@ -360,14 +365,14 @@ msgstr "" #: ../../installing/index.rst:238 msgid "" -"Some of the solutions for installing `scientific software " -"`__ that are not yet available as " -"pre-built ``wheel`` files may also help with obtaining other binary " -"extensions without needing to build them locally." +"Some of the solutions for installing `scientific software `__ that are not yet available as pre-built ``wheel`` " +"files may also help with obtaining other binary extensions without needing " +"to build them locally." msgstr "" #: ../../installing/index.rst:245 msgid "" -"`Python Packaging User Guide: Binary Extensions " -"`__" +"`Python Packaging User Guide: Binary Extensions `__" msgstr "" diff --git a/library/2to3.po b/library/2to3.po index 930cc5e5a..1cfd07d99 100644 --- a/library/2to3.po +++ b/library/2to3.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Octavio von Sydow , 2019 # Rafael S. Meneses , 2019 # Sheila Gomes , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" "Last-Translator: Sheila Gomes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,16 +32,16 @@ msgstr "2to3 - Tradução Automatizada de Código Python 2 para 3" #: ../../library/2to3.rst:8 msgid "" "2to3 is a Python program that reads Python 2.x source code and applies a " -"series of *fixers* to transform it into valid Python 3.x code. The standard" -" library contains a rich set of fixers that will handle almost all code. " +"series of *fixers* to transform it into valid Python 3.x code. The standard " +"library contains a rich set of fixers that will handle almost all code. " "2to3 supporting library :mod:`lib2to3` is, however, a flexible and generic " -"library, so it is possible to write your own fixers for 2to3. " -":mod:`lib2to3` could also be adapted to custom applications in which Python " -"code needs to be edited automatically." +"library, so it is possible to write your own fixers for 2to3. :mod:" +"`lib2to3` could also be adapted to custom applications in which Python code " +"needs to be edited automatically." msgstr "" "2to3 é um programa Python que lê código fonte Python 2.x e aplica uma série " -"de *fixers* para transformá-lo em código válido para a versão do Python 3.x." -" A biblioteca padrão contém um conjunto rico de *fixers* que lidarão com " +"de *fixers* para transformá-lo em código válido para a versão do Python 3.x. " +"A biblioteca padrão contém um conjunto rico de *fixers* que lidarão com " "quase todos os códigos. A biblioteca de suporte :mod:`lib2to3` é, no " "entanto, uma biblioteca genérica e flexível, por isso é possível escrever " "seus próprios fixers para o 2to3. O módulo :mod:`lib2to3` também pode er " @@ -57,13 +58,13 @@ msgid "" "is also located in the :file:`Tools/scripts` directory of the Python root." msgstr "" "O 2to3 geralmente será instalado junto com o interpretador Python como se " -"fosse um script. Ele também está localizado no diretório " -":file:`Tools/scripts` na raiz da instalação do Python." +"fosse um script. Ele também está localizado no diretório :file:`Tools/" +"scripts` na raiz da instalação do Python." #: ../../library/2to3.rst:25 msgid "" -"2to3's basic arguments are a list of files or directories to transform. The" -" directories are recursively traversed for Python sources." +"2to3's basic arguments are a list of files or directories to transform. The " +"directories are recursively traversed for Python sources." msgstr "" "Os argumentos básicos de 2to3 são uma lista de arquivos ou diretórios a " "serem transformados. Os diretórios são recursivamente percorridos pelos " @@ -82,13 +83,13 @@ msgstr "" #: ../../library/2to3.rst:42 msgid "" -"A diff against the original source file is printed. 2to3 can also write the" -" needed modifications right back to the source file. (A backup of the " +"A diff against the original source file is printed. 2to3 can also write the " +"needed modifications right back to the source file. (A backup of the " "original file is made unless :option:`!-n` is also given.) Writing the " "changes back is enabled with the :option:`!-w` flag:" msgstr "" -"É impresso um diff contra o arquivo original. O 2to3 também pode escrever as" -" modificações necessárias de volta ao arquivo de origem. (Um backup do " +"É impresso um diff contra o arquivo original. O 2to3 também pode escrever as " +"modificações necessárias de volta ao arquivo de origem. (Um backup do " "arquivo original sempre será feito, salvo se a opção: :option:`!-n` for " "utilizada.) Escrever as alterações de volta está disponível com o uso do " "flag :option:`!-w` flag:" @@ -108,18 +109,18 @@ msgstr "" #: ../../library/2to3.rst:61 msgid "" -"By default, 2to3 runs a set of :ref:`predefined fixers <2to3-fixers>`. The " -":option:`!-l` flag lists all available fixers. An explicit set of fixers to" -" run can be given with :option:`!-f`. Likewise the :option:`!-x` explicitly" -" disables a fixer. The following example runs only the ``imports`` and " +"By default, 2to3 runs a set of :ref:`predefined fixers <2to3-fixers>`. The :" +"option:`!-l` flag lists all available fixers. An explicit set of fixers to " +"run can be given with :option:`!-f`. Likewise the :option:`!-x` explicitly " +"disables a fixer. The following example runs only the ``imports`` and " "``has_key`` fixers:" msgstr "" -"Por padrão, 2to3 executa um conjunto de :ref:`predefined fixers " -"<2to3-fixers>`. A opção de flag :option:`!-l` lista todos os fixers " -"disponíveis. Um conjunto explícito de fixers para executação pode ser " -"fornecido com a opção: :option:`!-f`. Da mesma forma, a opção :option:`!-x` " -"desabilita explicitamente um fixers. O exemplo a seguir executa apenas os " -"fixadores ``imports`` e ``has_key``:" +"Por padrão, 2to3 executa um conjunto de :ref:`predefined fixers <2to3-" +"fixers>`. A opção de flag :option:`!-l` lista todos os fixers disponíveis. " +"Um conjunto explícito de fixers para executação pode ser fornecido com a " +"opção: :option:`!-f`. Da mesma forma, a opção :option:`!-x` desabilita " +"explicitamente um fixers. O exemplo a seguir executa apenas os fixadores " +"``imports`` e ``has_key``:" #: ../../library/2to3.rst:70 msgid "This command runs every fixer except the ``apply`` fixer:" @@ -143,8 +144,8 @@ msgstr "Observe como a passagem de ``all`` permite todos os fixers padrão." #: ../../library/2to3.rst:86 msgid "" "Sometimes 2to3 will find a place in your source code that needs to be " -"changed, but 2to3 cannot fix automatically. In this case, 2to3 will print a" -" warning beneath the diff for a file. You should address the warning in " +"changed, but 2to3 cannot fix automatically. In this case, 2to3 will print a " +"warning beneath the diff for a file. You should address the warning in " "order to have compliant 3.x code." msgstr "" "Às vezes, 2to3 encontrará um lugar em seu código-fonte que precisa ser " @@ -154,13 +155,13 @@ msgstr "" #: ../../library/2to3.rst:91 msgid "" -"2to3 can also refactor doctests. To enable this mode, use the :option:`!-d`" -" flag. Note that *only* doctests will be refactored. This also doesn't " +"2to3 can also refactor doctests. To enable this mode, use the :option:`!-d` " +"flag. Note that *only* doctests will be refactored. This also doesn't " "require the module to be valid Python. For example, doctest like examples " "in a reST document could also be refactored with this option." msgstr "" -"O 2to3 também pode refatorar o doctests. Para ativar este modo, use o flag " -":option:`!-d`. Observe que os doctests *somente* serão refatorados. Isso " +"O 2to3 também pode refatorar o doctests. Para ativar este modo, use o flag :" +"option:`!-d`. Observe que os doctests *somente* serão refatorados. Isso " "também não exige que o módulo Python seja válido. Por exemplo, os exemplos " "doctest como em um documento reST também podem ser refatorados com esta " "opção." @@ -178,25 +179,25 @@ msgid "" "Since some print statements can be parsed as function calls or statements, " "2to3 cannot always read files containing the print function. When 2to3 " "detects the presence of the ``from __future__ import print_function`` " -"compiler directive, it modifies its internal grammar to interpret " -":func:`print` as a function. This change can also be enabled manually with " -"the :option:`!-p` flag. Use :option:`!-p` to run fixers on code that " -"already has had its print statements converted." +"compiler directive, it modifies its internal grammar to interpret :func:" +"`print` as a function. This change can also be enabled manually with the :" +"option:`!-p` flag. Use :option:`!-p` to run fixers on code that already has " +"had its print statements converted." msgstr "" "Uma vez que algumas declarações de impressão podem ser analisadas como " "chamadas de função ou declarações, 2to3 nem sempre pode ler arquivos que " "contêm a função de impressão. Quando 2to3 detecta a presença da diretiva de " "compilação ``from __future__ import print_function``, ele modifica sua " "gramática interna para interpretar funções :func:`print` como uma função. " -"Esta alteração também pode ser ativada manualmente com o flag :option:`!-p`." -" Use o flag :option:`!-p` para executar fixadores no código que já tiveram " +"Esta alteração também pode ser ativada manualmente com o flag :option:`!-p`. " +"Use o flag :option:`!-p` para executar fixadores no código que já tiveram " "suas declarações impressas convertidas." #: ../../library/2to3.rst:107 msgid "" "The :option:`!-o` or :option:`!--output-dir` option allows specification of " -"an alternate directory for processed output files to be written to. The " -":option:`!-n` flag is required when using this as backup files do not make " +"an alternate directory for processed output files to be written to. The :" +"option:`!-n` flag is required when using this as backup files do not make " "sense when not overwriting the input files." msgstr "" "A opção :option:`!-o` ou :option:`!--output-dir` permite especificar um " @@ -276,10 +277,8 @@ msgstr "" "**kwargs)`` é convertido para ``function(*args, **kwargs)``." #: ../../library/2to3.rst:161 -msgid "" -"Replaces deprecated :mod:`unittest` method names with the correct ones." -msgstr "" -"Substitui o nome de método obsoleto :mod:`unittest` pelo nome correto." +msgid "Replaces deprecated :mod:`unittest` method names with the correct ones." +msgstr "Substitui o nome de método obsoleto :mod:`unittest` pelo nome correto." #: ../../library/2to3.rst:164 ../../library/2to3.rst:352 msgid "From" @@ -383,22 +382,22 @@ msgstr "" #: ../../library/2to3.rst:204 msgid "" -"Fixes dictionary iteration methods. :meth:`dict.iteritems` is converted to " -":meth:`dict.items`, :meth:`dict.iterkeys` to :meth:`dict.keys`, and " -":meth:`dict.itervalues` to :meth:`dict.values`. Similarly, " -":meth:`dict.viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues` " -"are converted respectively to :meth:`dict.items`, :meth:`dict.keys` and " -":meth:`dict.values`. It also wraps existing usages of :meth:`dict.items`, " -":meth:`dict.keys`, and :meth:`dict.values` in a call to :class:`list`." +"Fixes dictionary iteration methods. :meth:`dict.iteritems` is converted to :" +"meth:`dict.items`, :meth:`dict.iterkeys` to :meth:`dict.keys`, and :meth:" +"`dict.itervalues` to :meth:`dict.values`. Similarly, :meth:`dict." +"viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues` are converted " +"respectively to :meth:`dict.items`, :meth:`dict.keys` and :meth:`dict." +"values`. It also wraps existing usages of :meth:`dict.items`, :meth:`dict." +"keys`, and :meth:`dict.values` in a call to :class:`list`." msgstr "" "Corrige os métodos de iteração de dicionário. :meth:`dict.iteritems` é " -"convertido para :meth:`dict.items`, :meth:`dict.iterkeys` para " -":meth:`dict.keys`, e :meth:`dict.itervalues` para :meth:`dict.values`. " -"Similarmente temos o método, :meth:`dict.viewitems`, :meth:`dict.viewkeys` e" -" :meth:`dict.viewvalues` que são convertidos respectivamente para " -":meth:`dict.items`, :meth:`dict.keys` e :meth:`dict.values`. Também " -"encapsula os usos existentes de :meth:`dict.items`, :meth:`dict.keys`, e " -":meth:`dict.values` em uma chamada para :class:`list`." +"convertido para :meth:`dict.items`, :meth:`dict.iterkeys` para :meth:`dict." +"keys`, e :meth:`dict.itervalues` para :meth:`dict.values`. Similarmente " +"temos o método, :meth:`dict.viewitems`, :meth:`dict.viewkeys` e :meth:`dict." +"viewvalues` que são convertidos respectivamente para :meth:`dict.items`, :" +"meth:`dict.keys` e :meth:`dict.values`. Também encapsula os usos existentes " +"de :meth:`dict.items`, :meth:`dict.keys`, e :meth:`dict.values` em uma " +"chamada para :class:`list`." #: ../../library/2to3.rst:214 msgid "Converts ``except X, T`` to ``except X as T``." @@ -421,14 +420,14 @@ msgid "" "Changes assignment of :attr:`sys.exitfunc` to use of the :mod:`atexit` " "module." msgstr "" -"Mudança de declaração de :attr:`sys.exitfunc` para usar o módulo " -":mod:`atexit`." +"Mudança de declaração de :attr:`sys.exitfunc` para usar o módulo :mod:" +"`atexit`." #: ../../library/2to3.rst:232 msgid "Wraps :func:`filter` usage in a :class:`list` call." msgstr "" -"Encapsula a função :func:`filter` usando uma chamada para a classe " -":class:`list`." +"Encapsula a função :func:`filter` usando uma chamada para a classe :class:" +"`list`." #: ../../library/2to3.rst:236 msgid "" @@ -455,14 +454,14 @@ msgid "" "This optional fixer performs several transformations that make Python code " "more idiomatic. Type comparisons like ``type(x) is SomeClass`` and " "``type(x) == SomeClass`` are converted to ``isinstance(x, SomeClass)``. " -"``while 1`` becomes ``while True``. This fixer also tries to make use of " -":func:`sorted` in appropriate places. For example, this block ::" +"``while 1`` becomes ``while True``. This fixer also tries to make use of :" +"func:`sorted` in appropriate places. For example, this block ::" msgstr "" -"Este fixer opcional executa várias transformações que tornam o código Python" -" mais idiomático. Comparações de tipo como ``type(x) is SomeClass`` e " +"Este fixer opcional executa várias transformações que tornam o código Python " +"mais idiomático. Comparações de tipo como ``type(x) is SomeClass`` e " "``type(x) == SomeClass`` são convertidas para ``isinstance(x, SomeClass)``. " -"``while 1`` vira ``while True``. Este fixer também tenta usar :func:`sorted`" -" nos lugares apropriados. Por exemplo, este bloco ::" +"``while 1`` vira ``while True``. Este fixer também tenta usar :func:`sorted` " +"nos lugares apropriados. Por exemplo, este bloco ::" #: ../../library/2to3.rst:262 msgid "is changed to ::" @@ -506,24 +505,23 @@ msgstr "" #: ../../library/2to3.rst:296 msgid "" -"Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and " -":func:`itertools.imap`. Imports of :func:`itertools.ifilterfalse` are also " +"Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and :" +"func:`itertools.imap`. Imports of :func:`itertools.ifilterfalse` are also " "changed to :func:`itertools.filterfalse`." msgstr "" -"Remove importações de :func:`itertools.ifilter`, :func:`itertools.izip`, e " -":func:`itertools.imap`. Importações de :func:`itertools.ifilterfalse` " -"também são alteradas para :func:`itertools.filterfalse`." +"Remove importações de :func:`itertools.ifilter`, :func:`itertools.izip`, e :" +"func:`itertools.imap`. Importações de :func:`itertools.ifilterfalse` também " +"são alteradas para :func:`itertools.filterfalse`." #: ../../library/2to3.rst:302 msgid "" -"Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and " -":func:`itertools.imap` to their built-in equivalents. " -":func:`itertools.ifilterfalse` is changed to :func:`itertools.filterfalse`." +"Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and :" +"func:`itertools.imap` to their built-in equivalents. :func:`itertools." +"ifilterfalse` is changed to :func:`itertools.filterfalse`." msgstr "" -"Altera o uso de :func:`itertools.ifilter`, :func:`itertools.izip`, e " -":func:`itertools.imap` para os seus equivalentes incorporados. " -":func:`itertools.ifilterfalse` é alterado para " -":func:`itertools.filterfalse`." +"Altera o uso de :func:`itertools.ifilter`, :func:`itertools.izip`, e :func:" +"`itertools.imap` para os seus equivalentes incorporados. :func:`itertools." +"ifilterfalse` é alterado para :func:`itertools.filterfalse`." #: ../../library/2to3.rst:308 msgid "Renames :class:`long` to :class:`int`." @@ -531,8 +529,8 @@ msgstr "Renomeia a classe :class:`long` para :class:`int`." #: ../../library/2to3.rst:312 msgid "" -"Wraps :func:`map` in a :class:`list` call. It also changes ``map(None, x)``" -" to ``list(x)``. Using ``from future_builtins import map`` disables this " +"Wraps :func:`map` in a :class:`list` call. It also changes ``map(None, x)`` " +"to ``list(x)``. Using ``from future_builtins import map`` disables this " "fixer." msgstr "" "Encapsula a função :func:`map` numa chamada a classe :class:`list`. Isso " @@ -561,13 +559,13 @@ msgstr "Converte a sintaxe antiga \"diferente\", ``<>``, para ``!=``." #: ../../library/2to3.rst:332 msgid "" -"Converts the use of iterator's :meth:`~iterator.next` methods to the " -":func:`next` function. It also renames :meth:`next` methods to " -":meth:`~iterator.__next__`." +"Converts the use of iterator's :meth:`~iterator.next` methods to the :func:" +"`next` function. It also renames :meth:`next` methods to :meth:`~iterator." +"__next__`." msgstr "" -"Converte o uso de métodos de iterador :meth:`~iterator.next` para a função " -":func:`next`. Também renomeia métodos :meth:`next` para " -":meth:`~iterator.__next__`." +"Converte o uso de métodos de iterador :meth:`~iterator.next` para a função :" +"func:`next`. Também renomeia métodos :meth:`next` para :meth:`~iterator." +"__next__`." #: ../../library/2to3.rst:338 msgid "Renames :meth:`__nonzero__` to :meth:`~object.__bool__`." @@ -662,12 +660,11 @@ msgstr "Converte a declaração ``print`` para a função :func:`print`." msgid "" "Converts ``raise E, V`` to ``raise E(V)``, and ``raise E, V, T`` to ``raise " "E(V).with_traceback(T)``. If ``E`` is a tuple, the translation will be " -"incorrect because substituting tuples for exceptions has been removed in " -"3.0." +"incorrect because substituting tuples for exceptions has been removed in 3.0." msgstr "" "Converte ``raise E, V`` para ``raise E(V)``, e ``raise E, V, T`` para " -"``raise E(V).with_traceback(T)``. Se ``E`` for uma tupla, a tradução ficará" -" incorreta porque a substituição de tuplas por exceções foi removida no " +"``raise E(V).with_traceback(T)``. Se ``E`` for uma tupla, a tradução ficará " +"incorreta porque a substituição de tuplas por exceções foi removida no " "Python 3x." #: ../../library/2to3.rst:380 @@ -704,11 +701,11 @@ msgstr "Renomeia :exc:`StandardError` para :exc:`Exception`." #: ../../library/2to3.rst:409 msgid "" -"Changes the deprecated :data:`sys.exc_value`, :data:`sys.exc_type`, " -":data:`sys.exc_traceback` to use :func:`sys.exc_info`." +"Changes the deprecated :data:`sys.exc_value`, :data:`sys.exc_type`, :data:" +"`sys.exc_traceback` to use :func:`sys.exc_info`." msgstr "" -"Altera o obsoleto :data:`sys.exc_value`, :data:`sys.exc_type`, " -":data:`sys.exc_traceback` para utilizar agora a função :func:`sys.exc_info`." +"Altera o obsoleto :data:`sys.exc_value`, :data:`sys.exc_type`, :data:`sys." +"exc_traceback` para utilizar agora a função :func:`sys.exc_info`." #: ../../library/2to3.rst:414 msgid "Fixes the API change in generator's :meth:`throw` method." @@ -727,8 +724,8 @@ msgid "" "Fixes code broken from the removal of some members in the :mod:`types` " "module." msgstr "" -"Corrige o código quebrado pela remoção de alguns membros no módulo " -":mod:`types`." +"Corrige o código quebrado pela remoção de alguns membros no módulo :mod:" +"`types`." #: ../../library/2to3.rst:428 msgid "Renames :class:`unicode` to :class:`str`." diff --git a/library/__future__.po b/library/__future__.po index aa9028d5c..a6ad0eae4 100644 --- a/library/__future__.po +++ b/library/__future__.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Italo Penaforte , 2019 # Octavio von Sydow , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" "Last-Translator: Octavio von Sydow , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,9 +46,9 @@ msgstr "" #: ../../library/__future__.rst:16 msgid "" -"To ensure that :ref:`future statements ` run under releases prior to" -" 2.1 at least yield runtime exceptions (the import of :mod:`__future__` will" -" fail, because there was no module of that name prior to 2.1)." +"To ensure that :ref:`future statements ` run under releases prior to " +"2.1 at least yield runtime exceptions (the import of :mod:`__future__` will " +"fail, because there was no module of that name prior to 2.1)." msgstr "" "Para garantir que: ref: `future statements 1 'executado em versões " "anteriores a 2.1, pelo menos, processar exceções de tempo de execução (a " @@ -56,15 +57,15 @@ msgstr "" #: ../../library/__future__.rst:20 msgid "" -"To document when incompatible changes were introduced, and when they will be" -" --- or were --- made mandatory. This is a form of executable " -"documentation, and can be inspected programmatically via importing " -":mod:`__future__` and examining its contents." +"To document when incompatible changes were introduced, and when they will be " +"--- or were --- made mandatory. This is a form of executable documentation, " +"and can be inspected programmatically via importing :mod:`__future__` and " +"examining its contents." msgstr "" "Para documentar quando as mudanças incompatíveis foram introduzidas, e " "quando elas serão --- ou foram --- obrigatórias. Esta é uma forma de " -"documentação executável e pode ser inspecionada programaticamente através da" -" importação: mod: `__future__` e examinando seus conteúdos." +"documentação executável e pode ser inspecionada programaticamente através da " +"importação: mod: `__future__` e examinando seus conteúdos." #: ../../library/__future__.rst:25 msgid "Each statement in :file:`__future__.py` is of the form::" @@ -72,8 +73,8 @@ msgstr "Cada declaração em: file:. `__future __ py` é da forma ::" #: ../../library/__future__.rst:31 msgid "" -"where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both" -" are 5-tuples of the same form as :data:`sys.version_info`::" +"where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both " +"are 5-tuples of the same form as :data:`sys.version_info`::" msgstr "" "Onde, normalmente, * OpcionalRelease * é inferior a *MandatoryRelease*, e " "ambos são 5-tuplas da mesma forma que: dados: `sys.version_info` ::" @@ -104,8 +105,8 @@ msgid "" msgstr "" "Senão *MandatoryRelease* registra quando o recurso se tornou parte do " "idioma; Em versões em ou depois disso, os módulos não precisam mais de uma " -"declaração futura para usar o recurso em questão, mas podem continuar a usar" -" essas importações." +"declaração futura para usar o recurso em questão, mas podem continuar a usar " +"essas importações." #: ../../library/__future__.rst:51 msgid "" @@ -117,8 +118,8 @@ msgstr "" #: ../../library/__future__.rst:54 msgid "" -"Instances of class :class:`_Feature` have two corresponding methods, " -":meth:`getOptionalRelease` and :meth:`getMandatoryRelease`." +"Instances of class :class:`_Feature` have two corresponding methods, :meth:" +"`getOptionalRelease` and :meth:`getMandatoryRelease`." msgstr "" "Instâncias de classe: classe: `_Feature` tem dois métodos correspondentes,: " "meth:` getOptionalRelease` e: meth: `getMandatoryRelease`." @@ -127,13 +128,13 @@ msgstr "" msgid "" "*CompilerFlag* is the (bitfield) flag that should be passed in the fourth " "argument to the built-in function :func:`compile` to enable the feature in " -"dynamically compiled code. This flag is stored in the :attr:`compiler_flag`" -" attribute on :class:`_Feature` instances." +"dynamically compiled code. This flag is stored in the :attr:`compiler_flag` " +"attribute on :class:`_Feature` instances." msgstr "" "*CompilerFlag* é o sinalizador (bitfield) que deve ser passado no quarto " "argumento para a função incorporada: func: `compile` para habilitar o " -"recurso no código compilado dinamicamente. Este sinalizador é armazenado em:" -" attr: `compiler_flag` atributo em: classe:` _Feature` instâncias." +"recurso no código compilado dinamicamente. Este sinalizador é armazenado em: " +"attr: `compiler_flag` atributo em: classe:` _Feature` instâncias." #: ../../library/__future__.rst:62 msgid "" diff --git a/library/__main__.po b/library/__main__.po index 0a5d481db..aaf5e624c 100644 --- a/library/__main__.po +++ b/library/__main__.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Octavio von Sydow , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" "Last-Translator: Octavio von Sydow , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,20 +41,20 @@ msgstr "" #: ../../library/__main__.rst:14 msgid "" "A module can discover whether or not it is running in the main scope by " -"checking its own ``__name__``, which allows a common idiom for conditionally" -" executing code in a module when it is run as a script or with ``python -m``" -" but not when it is imported::" +"checking its own ``__name__``, which allows a common idiom for conditionally " +"executing code in a module when it is run as a script or with ``python -m`` " +"but not when it is imported::" msgstr "" "Um módulo pode verificar se está ou não rodando no escopo principal, " "verificando seu próprio ``__name__``, o que permite expressões para " -"executar condicionalmente o código em um módulo quando esse executa como um" -" script ou com ``python -m`` mas não quando esse é importado::" +"executar condicionalmente o código em um módulo quando esse executa como um " +"script ou com ``python -m`` mas não quando esse é importado::" #: ../../library/__main__.rst:23 msgid "" -"For a package, the same effect can be achieved by including a " -"``__main__.py`` module, the contents of which will be executed when the " -"module is run with ``-m``." +"For a package, the same effect can be achieved by including a ``__main__." +"py`` module, the contents of which will be executed when the module is run " +"with ``-m``." msgstr "" "Para um pacote, o mesmo resultado pode ser obtido incluindo um módulo " "``__main__.py`` , o conteúdo desse será executado quando rodar o módulo com " diff --git a/library/_dummy_thread.po b/library/_dummy_thread.po index 73bc7982d..0408028b8 100644 --- a/library/_dummy_thread.po +++ b/library/_dummy_thread.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +37,8 @@ msgid "" "Python now always has threading enabled. Please use :mod:`_thread` (or, " "better, :mod:`threading`) instead." msgstr "" -"O Python agora sempre tem a segmentação ativada. Por favor, use " -":mod:`_thread` (ou. melhor, :mod:`threading`)." +"O Python agora sempre tem a segmentação ativada. Por favor, use :mod:" +"`_thread` (ou. melhor, :mod:`threading`)." #: ../../library/_dummy_thread.rst:15 msgid "" diff --git a/library/_thread.po b/library/_thread.po index 38a270622..183803739 100644 --- a/library/_thread.po +++ b/library/_thread.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Jose Rafael Amaral , 2019 # Octavio von Sydow , 2019 -# Sheila Gomes , 2019 # Fabio Aragao , 2019 -# +# Sheila Gomes , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-25 11:30+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Fabio Aragao , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -93,17 +95,16 @@ msgstr "" #: ../../library/_thread.rst:59 msgid "" -"If :data:`signal.SIGINT` isn't handled by Python (it was set to " -":data:`signal.SIG_DFL` or :data:`signal.SIG_IGN`), this function does " -"nothing." +"If :data:`signal.SIGINT` isn't handled by Python (it was set to :data:" +"`signal.SIG_DFL` or :data:`signal.SIG_IGN`), this function does nothing." msgstr "" -"Se :data:`signal.SIGINT` não for manipulado pelo Python (foi definido como " -":data:`signal.SIG_DFL` ou :data:`signal.SIG_IGN`), essa função não faz nada." +"Se :data:`signal.SIGINT` não for manipulado pelo Python (foi definido como :" +"data:`signal.SIG_DFL` ou :data:`signal.SIG_IGN`), essa função não faz nada." #: ../../library/_thread.rst:66 msgid "" -"Raise the :exc:`SystemExit` exception. When not caught, this will cause the" -" thread to exit silently." +"Raise the :exc:`SystemExit` exception. When not caught, this will cause the " +"thread to exit silently." msgstr "" "Gera a exceção:exc:`SystemExit`. Quando não for detectada, o thread sairá " "silenciosamente." @@ -125,20 +126,20 @@ msgid "" "created." msgstr "" "Retorna o 'identificador de thread' do thread atual. Este é um número " -"inteiro diferente de zero. Seu valor não tem significado direto; pretende-se" -" que seja um cookie mágico para ser usado, por exemplo, para indexar um " +"inteiro diferente de zero. Seu valor não tem significado direto; pretende-se " +"que seja um cookie mágico para ser usado, por exemplo, para indexar um " "dicionário de dados específicos do thread. identificadores de thread podem " "ser reciclados quando um thread sai e outro é criado." #: ../../library/_thread.rst:94 msgid "" "Return the thread stack size used when creating new threads. The optional " -"*size* argument specifies the stack size to be used for subsequently created" -" threads, and must be 0 (use platform or configured default) or a positive " +"*size* argument specifies the stack size to be used for subsequently created " +"threads, and must be 0 (use platform or configured default) or a positive " "integer value of at least 32,768 (32 KiB). If *size* is not specified, 0 is " -"used. If changing the thread stack size is unsupported, a " -":exc:`RuntimeError` is raised. If the specified stack size is invalid, a " -":exc:`ValueError` is raised and the stack size is unmodified. 32 KiB is " +"used. If changing the thread stack size is unsupported, a :exc:" +"`RuntimeError` is raised. If the specified stack size is invalid, a :exc:" +"`ValueError` is raised and the stack size is unmodified. 32 KiB is " "currently the minimum supported stack size value to guarantee sufficient " "stack space for the interpreter itself. Note that some platforms may have " "particular restrictions on values for the stack size, such as requiring a " @@ -148,37 +149,54 @@ msgid "" "stack size is the suggested approach in the absence of more specific " "information)." msgstr "" +"Retorna o tamanho da pilha de threads usado ao criar novos threads. O " +"argumento opcional *size* especifica o tamanho da pilha a ser usado para " +"threads criados posteriormente e deve ser 0 (usar plataforma ou padrão " +"configurado) ou um valor inteiro positivo de pelo menos 32.768 (32 KiB). Se " +"*size* não for especificado, 0 será usado. Se a alteração do tamanho da " +"pilha de threads não for suportada, um :exc: `RuntimeError` será gerado. Se " +"o tamanho da pilha especificado for inválido, um :exc: `ValueError` será " +"aumentado e o tamanho da pilha não será modificado. Atualmente, 0 KiB é o " +"valor mínimo de tamanho de pilha suportado para garantir espaço suficiente " +"para o próprio intérprete. Observe que algumas plataformas podem ter " +"restrições específicas sobre valores para o tamanho da pilha, como exigir um " +"tamanho mínimo de pilha> 32 KiB ou exigir alocação em múltiplos do tamanho " +"da página de memória do sistema - a documentação da plataforma deve ser " +"consultada para obter mais informações (4 páginas KiB são comuns; usar " +"múltiplos de 4096 para o tamanho da pilha é a abordagem sugerida na ausência " +"de informações mais específicas)." #: ../../library/_thread.rst:109 msgid "" ":ref:`Availability `: Windows, systems with POSIX threads." msgstr "" +":ref:`Availability `: Windows, systems with POSIX threads." #: ../../library/_thread.rst:114 msgid "" -"The maximum value allowed for the *timeout* parameter of " -":meth:`Lock.acquire`. Specifying a timeout greater than this value will " -"raise an :exc:`OverflowError`." +"The maximum value allowed for the *timeout* parameter of :meth:`Lock." +"acquire`. Specifying a timeout greater than this value will raise an :exc:" +"`OverflowError`." msgstr "" -"O valor máximo permitido para o parâmetro * timeout * de :meth: " -"`Lock.acquire`. A especificação de um tempo limite maior que esse valor " -"gerará um: exc: `OverflowError`." +"O valor máximo permitido para o parâmetro * timeout * de :meth: `Lock." +"acquire`. A especificação de um tempo limite maior que esse valor gerará um: " +"exc: `OverflowError`." #: ../../library/_thread.rst:121 msgid "Lock objects have the following methods:" -msgstr "" +msgstr "Os objetos de bloqueio têm os seguintes métodos:" #: ../../library/_thread.rst:126 msgid "" "Without any optional argument, this method acquires the lock " -"unconditionally, if necessary waiting until it is released by another thread" -" (only one thread at a time can acquire a lock --- that's their reason for " +"unconditionally, if necessary waiting until it is released by another thread " +"(only one thread at a time can acquire a lock --- that's their reason for " "existence)." msgstr "" "Sem nenhum argumento opcional, esse método adquire o bloqueio " "incondicionalmente, se necessário, aguardando até que seja liberado por " -"outro encadeamento (apenas um encadeamento por vez pode adquirir um bloqueio" -" - esse é o motivo da sua existência)." +"outro encadeamento (apenas um encadeamento por vez pode adquirir um bloqueio " +"- esse é o motivo da sua existência)." #: ../../library/_thread.rst:130 msgid "" @@ -199,15 +217,15 @@ msgid "" "*timeout* argument specifies an unbounded wait. You cannot specify a " "*timeout* if *waitflag* is zero." msgstr "" -"Se o argumento de ponto flutuante *timeout* estiver presente e positivo, ele" -" especificará o tempo máximo de espera em segundos antes de retornar. Um " +"Se o argumento de ponto flutuante *timeout* estiver presente e positivo, ele " +"especificará o tempo máximo de espera em segundos antes de retornar. Um " "argumento negativo *timeout* especifica uma espera ilimitada. Você não pode " "especificar um *timeout* se *waitflag* for zero." #: ../../library/_thread.rst:140 msgid "" -"The return value is ``True`` if the lock is acquired successfully, ``False``" -" if not." +"The return value is ``True`` if the lock is acquired successfully, ``False`` " +"if not." msgstr "" "O valor de retorno é ``True`` se o bloqueio for adquirido com sucesso, se " "não ``False``." @@ -219,28 +237,35 @@ msgstr "O parâmetro *timeout* é novo." #: ../../library/_thread.rst:146 msgid "Lock acquires can now be interrupted by signals on POSIX." msgstr "" +"As aquisições de bloqueio agora podem ser interrompidas por sinais no POSIX." #: ../../library/_thread.rst:152 msgid "" "Releases the lock. The lock must have been acquired earlier, but not " "necessarily by the same thread." msgstr "" +"Libera o bloqueio. O bloqueio deve ter sido adquirido anteriormente, mas não " +"necessariamente pela mesma thread." #: ../../library/_thread.rst:158 msgid "" "Return the status of the lock: ``True`` if it has been acquired by some " "thread, ``False`` if not." msgstr "" +"Retorna o status do bloqueio: ``True`` se tiver sido adquirido por alguma " +"thread, ``False`` se não for o caso." #: ../../library/_thread.rst:161 msgid "" -"In addition to these methods, lock objects can also be used via the " -":keyword:`with` statement, e.g.::" +"In addition to these methods, lock objects can also be used via the :keyword:" +"`with` statement, e.g.::" msgstr "" +"Além desses métodos, os objetos de bloqueio também podem ser usados através " +"da instrução :keyword:`with`, por exemplo::" #: ../../library/_thread.rst:171 msgid "**Caveats:**" -msgstr "" +msgstr "**Ressalvas:**" #: ../../library/_thread.rst:175 msgid "" @@ -248,26 +273,38 @@ msgid "" "exception will be received by an arbitrary thread. (When the :mod:`signal` " "module is available, interrupts always go to the main thread.)" msgstr "" +"Threads interagem estranhamente com interrupções: a exceção :exc:" +"`KeyboardInterrupt` será recebida por uma thread arbitrário. (Quando o " +"módulo :mod:`signal` está disponível, as interrupções sempre vão para a " +"thread principal.)" #: ../../library/_thread.rst:179 msgid "" "Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is " "equivalent to calling :func:`_thread.exit`." msgstr "" +"Chamar :func:`sys.exit` ou levantar a exceção :exc:`SystemExit` é o " +"equivalente a chamar :func:`_thread.exit`." #: ../../library/_thread.rst:182 msgid "" -"It is not possible to interrupt the :meth:`acquire` method on a lock --- the" -" :exc:`KeyboardInterrupt` exception will happen after the lock has been " +"It is not possible to interrupt the :meth:`acquire` method on a lock --- " +"the :exc:`KeyboardInterrupt` exception will happen after the lock has been " "acquired." msgstr "" +"Não é possível interromper o método :meth:`acquire` em um bloqueio --- a " +"exceção :exc:`KeyboardInterrupt` ocorrerá após o bloqueio ter sido adquirido." #: ../../library/_thread.rst:185 msgid "" "When the main thread exits, it is system defined whether the other threads " -"survive. On most systems, they are killed without executing :keyword:`try` " -"... :keyword:`finally` clauses or executing object destructors." +"survive. On most systems, they are killed without executing :keyword:" +"`try` ... :keyword:`finally` clauses or executing object destructors." msgstr "" +"Quando a thread principal se encerra, é definido pelo sistema se as outras " +"threads sobrevivem. Na maioria dos sistemas, elas são eliminadas sem " +"executar cláusulas :keyword:`try` ... :keyword:`finally` ou executar " +"destruidores de objetos." #: ../../library/_thread.rst:190 msgid "" @@ -275,3 +312,6 @@ msgid "" "that :keyword:`try` ... :keyword:`finally` clauses are honored), and the " "standard I/O files are not flushed." msgstr "" +"Quando a thread principal é encerrada, ela não realiza nenhuma limpeza usual " +"(exceto que as cláusulas :keyword:`try` ... :keyword:`finally` são honradas) " +"e os arquivos de E/S padrão não são liberados." diff --git a/library/abc.po b/library/abc.po index 52268a819..32a85e963 100644 --- a/library/abc.po +++ b/library/abc.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 # Bonifacio de Oliveira , 2019 +# Alexsandro Felix , 2019 # Lilian Corrêa , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" "Last-Translator: Lilian Corrêa , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,10 +37,9 @@ msgstr "**Código Fonte:** :source:`Lib/abc.py`" #: ../../library/abc.rst:15 msgid "" "This module provides the infrastructure for defining :term:`abstract base " -"classes ` (ABCs) in Python, as outlined in :pep:`3119`;" -" see the PEP for why this was added to Python. (See also :pep:`3141` and the" -" :mod:`numbers` module regarding a type hierarchy for numbers based on " -"ABCs.)" +"classes ` (ABCs) in Python, as outlined in :pep:`3119`; " +"see the PEP for why this was added to Python. (See also :pep:`3141` and the :" +"mod:`numbers` module regarding a type hierarchy for numbers based on ABCs.)" msgstr "" "Este módulo fornece a infraestrutura para definir :term:`abstract base " "classes` (CBAs) em Python, como delineado em :pep:`3119`; veja o PEP para " @@ -49,10 +50,10 @@ msgstr "" #: ../../library/abc.rst:20 msgid "" "The :mod:`collections` module has some concrete classes that derive from " -"ABCs; these can, of course, be further derived. In addition, the " -":mod:`collections.abc` submodule has some ABCs that can be used to test " -"whether a class or instance provides a particular interface, for example, if" -" it is hashable or if it is a mapping." +"ABCs; these can, of course, be further derived. In addition, the :mod:" +"`collections.abc` submodule has some ABCs that can be used to test whether a " +"class or instance provides a particular interface, for example, if it is " +"hashable or if it is a mapping." msgstr "" "O módulo :mod:`collections` tem algumas classes concretas que derivam de " "CBAs; essas podem, evidentemente, ser ainda mais derivadas. Além disso, o " @@ -71,13 +72,13 @@ msgstr "" #: ../../library/abc.rst:32 msgid "" -"A helper class that has :class:`ABCMeta` as its metaclass. With this class," -" an abstract base class can be created by simply deriving from :class:`ABC` " +"A helper class that has :class:`ABCMeta` as its metaclass. With this class, " +"an abstract base class can be created by simply deriving from :class:`ABC` " "avoiding sometimes confusing metaclass usage, for example::" msgstr "" "Uma classe auxiliar que tem :classe:`ABCMeta` como sua metaclasse. Com essa " -"classe, uma classe base abstrata pode ser criada simplesmente derivando da " -":classe:`ABC` evitando às vezes confundir o uso da metaclasse, por exemplo: " +"classe, uma classe base abstrata pode ser criada simplesmente derivando da :" +"classe:`ABC` evitando às vezes confundir o uso da metaclasse, por exemplo: " #: ../../library/abc.rst:41 msgid "" @@ -89,9 +90,9 @@ msgid "" msgstr "" "Note que o tipo de classe :class:`ABC` ainda é :classe:`ABCMeta`, portanto " "herdando da :classe:`ABC` requer as precauções usuais a respeito do uso da " -"metaclasse, como herança múltipla pode levar a conflitos de metaclasse. " -"Pode-se também definir uma classe base abstrata ao passar a palavra " -"reservada da metaclasse e usar :classe:`ABCMeta` diretamente, por exemplo: " +"metaclasse, como herança múltipla pode levar a conflitos de metaclasse. Pode-" +"se também definir uma classe base abstrata ao passar a palavra reservada da " +"metaclasse e usar :classe:`ABCMeta` diretamente, por exemplo: " #: ../../library/abc.rst:57 msgid "Metaclass for defining Abstract Base Classes (ABCs)." @@ -99,10 +100,10 @@ msgstr "Metaclasse para definir Classe Base Abstrata (CBAs)." #: ../../library/abc.rst:59 msgid "" -"Use this metaclass to create an ABC. An ABC can be subclassed directly, and" -" then acts as a mix-in class. You can also register unrelated concrete " -"classes (even built-in classes) and unrelated ABCs as \"virtual subclasses\"" -" -- these and their descendants will be considered subclasses of the " +"Use this metaclass to create an ABC. An ABC can be subclassed directly, and " +"then acts as a mix-in class. You can also register unrelated concrete " +"classes (even built-in classes) and unrelated ABCs as \"virtual subclasses\" " +"-- these and their descendants will be considered subclasses of the " "registering ABC by the built-in :func:`issubclass` function, but the " "registering ABC won't show up in their MRO (Method Resolution Order) nor " "will method implementations defined by the registering ABC be callable (not " @@ -110,8 +111,8 @@ msgid "" msgstr "" "Use esta metaclasse para criar uma CBA. Uma CBA pode ser diretamente " "subclasseada, e então agir como uma classe misturada. Você também pode " -"registrar classes concretas não relacionadas (até mesmo classes embutidas) e" -" CBAs não relacionadas como \"subclasses virtuais\" -- estas e suas " +"registrar classes concretas não relacionadas (até mesmo classes embutidas) e " +"CBAs não relacionadas como \"subclasses virtuais\" -- estas e suas " "descendentes serão consideradas subclasses da CBA de registro pela função " "embutida :func:`issubclass`, mas a CBA de registro não irá aparecer na ORM " "(Ordem de Resolução do Método) e nem as implementações do método definidas " @@ -122,14 +123,13 @@ msgid "" "Classes created with a metaclass of :class:`ABCMeta` have the following " "method:" msgstr "" -"Classes criadas com a metaclasse de :classe:`ABCMeta` tem o seguinte método:" -" " +"Classes criadas com a metaclasse de :classe:`ABCMeta` tem o seguinte método: " #: ../../library/abc.rst:72 -msgid "Register *subclass* as a \"virtual subclass\" of this ABC. For example::" +msgid "" +"Register *subclass* as a \"virtual subclass\" of this ABC. For example::" msgstr "" -"Registrar *subclasse* como uma \"subclasse virtual\" desta CBA. Por exemplo:" -" " +"Registrar *subclasse* como uma \"subclasse virtual\" desta CBA. Por exemplo: " #: ../../library/abc.rst:85 msgid "Returns the registered subclass, to allow usage as a class decorator." @@ -139,11 +139,11 @@ msgstr "" #: ../../library/abc.rst:88 msgid "" -"To detect calls to :meth:`register`, you can use the :func:`get_cache_token`" -" function." +"To detect calls to :meth:`register`, you can use the :func:`get_cache_token` " +"function." msgstr "" -"Para detectar chamadas para :meth:`register`, você pode usar a função " -":func:`get_cache_token`. " +"Para detectar chamadas para :meth:`register`, você pode usar a função :func:" +"`get_cache_token`. " #: ../../library/abc.rst:92 msgid "You can also override this method in an abstract base class:" @@ -157,9 +157,9 @@ msgstr "(Deve obrigatoriamente ser definido como um método de classe.)" msgid "" "Check whether *subclass* is considered a subclass of this ABC. This means " "that you can customize the behavior of ``issubclass`` further without the " -"need to call :meth:`register` on every class you want to consider a subclass" -" of the ABC. (This class method is called from the " -":meth:`__subclasscheck__` method of the ABC.)" +"need to call :meth:`register` on every class you want to consider a subclass " +"of the ABC. (This class method is called from the :meth:`__subclasscheck__` " +"method of the ABC.)" msgstr "" "Cheque se a *subclasse* é considerada uma subclasse desta CBA. Isto " "significa que você pode customizar ainda mais o comportamento da " @@ -170,63 +170,62 @@ msgstr "" #: ../../library/abc.rst:104 msgid "" "This method should return ``True``, ``False`` or ``NotImplemented``. If it " -"returns ``True``, the *subclass* is considered a subclass of this ABC. If it" -" returns ``False``, the *subclass* is not considered a subclass of this ABC," -" even if it would normally be one. If it returns ``NotImplemented``, the " +"returns ``True``, the *subclass* is considered a subclass of this ABC. If it " +"returns ``False``, the *subclass* is not considered a subclass of this ABC, " +"even if it would normally be one. If it returns ``NotImplemented``, the " "subclass check is continued with the usual mechanism." msgstr "" "Este método deve retornar ``True``, ``False`` ou ``NotImplemented``. Se " "retornar ``True``, a *subclasse* é considerada uma subclasse desta CBA. Se " -"retornar ``False``, a *subclasse* não é considerada uma subclasse desta CBA," -" mesmo que normalmente seria uma. Se retornar ``NotImplemented``, a " +"retornar ``False``, a *subclasse* não é considerada uma subclasse desta CBA, " +"mesmo que normalmente seria uma. Se retornar ``NotImplemented``, a " "verificação da subclasse é continuada com o mecanismo usual. " #: ../../library/abc.rst:114 msgid "" "For a demonstration of these concepts, look at this example ABC definition::" msgstr "" -"Para uma demonstração destes conceitos, veja este exemplo de definição CBA::" -" " +"Para uma demonstração destes conceitos, veja este exemplo de definição CBA:: " #: ../../library/abc.rst:143 msgid "" -"The ABC ``MyIterable`` defines the standard iterable method, " -":meth:`~iterator.__iter__`, as an abstract method. The implementation given" -" here can still be called from subclasses. The :meth:`get_iterator` method " -"is also part of the ``MyIterable`` abstract base class, but it does not have" -" to be overridden in non-abstract derived classes." +"The ABC ``MyIterable`` defines the standard iterable method, :meth:" +"`~iterator.__iter__`, as an abstract method. The implementation given here " +"can still be called from subclasses. The :meth:`get_iterator` method is " +"also part of the ``MyIterable`` abstract base class, but it does not have to " +"be overridden in non-abstract derived classes." msgstr "" -"A CBA ``Mylterable`` define o método iterável padrão, " -":meth:`~iterator.__iter__`, como um método abstrato. A implementação dada " -"aqui pode ainda ser chamada da subclasse. O método :meth:`get_iterator` é " -"também parte da classe base abstrata ``MyIterable``, mas não precisa ser " -"substituído nas classes derivadas não abstratas. " +"A CBA ``Mylterable`` define o método iterável padrão, :meth:`~iterator." +"__iter__`, como um método abstrato. A implementação dada aqui pode ainda ser " +"chamada da subclasse. O método :meth:`get_iterator` é também parte da classe " +"base abstrata ``MyIterable``, mas não precisa ser substituído nas classes " +"derivadas não abstratas. " #: ../../library/abc.rst:149 msgid "" "The :meth:`__subclasshook__` class method defined here says that any class " -"that has an :meth:`~iterator.__iter__` method in its " -":attr:`~object.__dict__` (or in that of one of its base classes, accessed " -"via the :attr:`~class.__mro__` list) is considered a ``MyIterable`` too." +"that has an :meth:`~iterator.__iter__` method in its :attr:`~object." +"__dict__` (or in that of one of its base classes, accessed via the :attr:" +"`~class.__mro__` list) is considered a ``MyIterable`` too." msgstr "" "O método de classe :meth:`__subclasshook__` definido aqui diz que qualquer " -"classe que tenha um método :meth:`~iterador.__iter__` em seu " -":attr:`~objeto.__dict__` (ou no de uma de suas classes base, acessados via " -"lista :attr:`~classe.__mro__`) é considerado uma ``MyIterable`` também. " +"classe que tenha um método :meth:`~iterador.__iter__` em seu :attr:`~objeto." +"__dict__` (ou no de uma de suas classes base, acessados via lista :attr:" +"`~classe.__mro__`) é considerado uma ``MyIterable`` também. " #: ../../library/abc.rst:154 msgid "" "Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``, " -"even though it does not define an :meth:`~iterator.__iter__` method (it uses" -" the old-style iterable protocol, defined in terms of :meth:`__len__` and " -":meth:`__getitem__`). Note that this will not make ``get_iterator`` " +"even though it does not define an :meth:`~iterator.__iter__` method (it uses " +"the old-style iterable protocol, defined in terms of :meth:`__len__` and :" +"meth:`__getitem__`). Note that this will not make ``get_iterator`` " "available as a method of ``Foo``, so it is provided separately." msgstr "" "Finalmente, a última linha faz de ``Foo`` uma subclasse virtual da " "``MyIterable``, apesar de não definir um método :meth:`~iterador.__iter__` " "(ela usa o protocolo iterável antigo, definido em termos de :meth:`__len__` " -"e :meth:`__getitem__`). Note que isto não fará o ``get_iterator`` disponível" -" como um método de ``Foo``, então ele é fornecido separadamente." +"e :meth:`__getitem__`). Note que isto não fará o ``get_iterator`` disponível " +"como um método de ``Foo``, então ele é fornecido separadamente." #: ../../library/abc.rst:163 msgid "The :mod:`abc` module also provides the following decorator:" @@ -238,28 +237,28 @@ msgstr "Um decorator indicando métodos abstratos." #: ../../library/abc.rst:169 msgid "" -"Using this decorator requires that the class's metaclass is :class:`ABCMeta`" -" or is derived from it. A class that has a metaclass derived from " -":class:`ABCMeta` cannot be instantiated unless all of its abstract methods " -"and properties are overridden. The abstract methods can be called using any" -" of the normal 'super' call mechanisms. :func:`abstractmethod` may be used " -"to declare abstract methods for properties and descriptors." -msgstr "" -"Usar este decorador requer que a metaclasse da classe seja :classe:`ABCMeta`" -" ou seja derivada desta. Uma classe que tem uma metaclasse derivada de " -":classe:`ABCMeta` não pode ser instanciada a menos que todos os seus métodos" -" abstratos e propriedades estejam substituídos. Os métodos abstratos podem " -"ser chamados usando qualquer um dos mechanismos normais de 'super' chamadas." -" :func:`abstractmethod` pode ser usado para declarar métodos abstratos para " -"propriedades e descritores. " +"Using this decorator requires that the class's metaclass is :class:`ABCMeta` " +"or is derived from it. A class that has a metaclass derived from :class:" +"`ABCMeta` cannot be instantiated unless all of its abstract methods and " +"properties are overridden. The abstract methods can be called using any of " +"the normal 'super' call mechanisms. :func:`abstractmethod` may be used to " +"declare abstract methods for properties and descriptors." +msgstr "" +"Usar este decorador requer que a metaclasse da classe seja :classe:`ABCMeta` " +"ou seja derivada desta. Uma classe que tem uma metaclasse derivada de :" +"classe:`ABCMeta` não pode ser instanciada a menos que todos os seus métodos " +"abstratos e propriedades estejam substituídos. Os métodos abstratos podem " +"ser chamados usando qualquer um dos mechanismos normais de 'super' " +"chamadas. :func:`abstractmethod` pode ser usado para declarar métodos " +"abstratos para propriedades e descritores. " #: ../../library/abc.rst:176 msgid "" "Dynamically adding abstract methods to a class, or attempting to modify the " "abstraction status of a method or class once it is created, are not " -"supported. The :func:`abstractmethod` only affects subclasses derived using" -" regular inheritance; \"virtual subclasses\" registered with the ABC's " -":meth:`register` method are not affected." +"supported. The :func:`abstractmethod` only affects subclasses derived using " +"regular inheritance; \"virtual subclasses\" registered with the ABC's :meth:" +"`register` method are not affected." msgstr "" "Adicionar dinamicamente métodos abstratos a uma classe, ou tentar modificar " "o status de abstração de um método ou classe uma vez que estejam criados, " @@ -274,17 +273,22 @@ msgid "" "the following usage examples::" msgstr "" "Quando :func:`abstractmethod` é aplicado em combinação com outros " -"descriptores de método, ele deve ser aplicado como o decorador mais interno," -" como mostrado nos seguintes exemplos de uso:: " +"descriptores de método, ele deve ser aplicado como o decorador mais interno, " +"como mostrado nos seguintes exemplos de uso:: " #: ../../library/abc.rst:216 msgid "" "In order to correctly interoperate with the abstract base class machinery, " -"the descriptor must identify itself as abstract using " -":attr:`__isabstractmethod__`. In general, this attribute should be ``True`` " -"if any of the methods used to compose the descriptor are abstract. For " -"example, Python's built-in :class:`property` does the equivalent of::" +"the descriptor must identify itself as abstract using :attr:" +"`__isabstractmethod__`. In general, this attribute should be ``True`` if any " +"of the methods used to compose the descriptor are abstract. For example, " +"Python's built-in :class:`property` does the equivalent of::" msgstr "" +"Para que interopere corretamente com o maquinário da classe base abstrata, o " +"descritor precisa identificar-se como abstrato usando :attr:" +"`__isabstractmethod__`. No geral, este atributo deve ser ``True`` se algum " +"dos métodos usados para compor o descritor for abstrato. Por exemplo, a :" +"classe:`property` embutida do Python faz o equivalente a:: " #: ../../library/abc.rst:231 msgid "" @@ -294,11 +298,14 @@ msgid "" "point for a super-call in a framework that uses cooperative multiple-" "inheritance." msgstr "" +"Diferente de métodos abstratos Java, esses métodos abstratos podem ter uma " +"implementação. Esta implementação pode ser chamada via mecanismo da :func:" +"`super` da classe que a substitui. Isto pode ser útil como um ponto final " +"para uma super chamada em um framework que usa herança múltipla cooperativa. " #: ../../library/abc.rst:239 msgid "The :mod:`abc` module also supports the following legacy decorators:" -msgstr "" -"O módulo :mod:`abc` também suporta os seguintes decoradores herdados: " +msgstr "O módulo :mod:`abc` também suporta os seguintes decoradores herdados: " #: ../../library/abc.rst:244 msgid "" @@ -313,11 +320,13 @@ msgid "" "A subclass of the built-in :func:`classmethod`, indicating an abstract " "classmethod. Otherwise it is similar to :func:`abstractmethod`." msgstr "" +"Uma subclasse da :func:`classmethod` embutida, indicando um método de classe " +"abstrato. Caso contrário, é similar à :func:`abstractmethod`." #: ../../library/abc.rst:251 msgid "" -"This special case is deprecated, as the :func:`classmethod` decorator is now" -" correctly identified as abstract when applied to an abstract method::" +"This special case is deprecated, as the :func:`classmethod` decorator is now " +"correctly identified as abstract when applied to an abstract method::" msgstr "" "Este caso especial está depreciado, pois o decorador da :func:`classmethod` " "está agora corretamente identificado como abstrato quando aplicado a um " @@ -325,8 +334,8 @@ msgstr "" #: ../../library/abc.rst:265 msgid "" -"It is now possible to use :class:`staticmethod` with :func:`abstractmethod`," -" making this decorator redundant." +"It is now possible to use :class:`staticmethod` with :func:`abstractmethod`, " +"making this decorator redundant." msgstr "" "Agora é possível usar :classe:`staticmethod` com :func:`abstractmethod`, " "tornando redundante este decorador. " @@ -336,29 +345,31 @@ msgid "" "A subclass of the built-in :func:`staticmethod`, indicating an abstract " "staticmethod. Otherwise it is similar to :func:`abstractmethod`." msgstr "" -"Uma subclasse da :func:`staticmethod` embutida, indicando um método estático" -" abstrato. Caso contrário, ela é similar à :func:`abstractmethod`. " +"Uma subclasse da :func:`staticmethod` embutida, indicando um método estático " +"abstrato. Caso contrário, ela é similar à :func:`abstractmethod`. " #: ../../library/abc.rst:272 msgid "" "This special case is deprecated, as the :func:`staticmethod` decorator is " "now correctly identified as abstract when applied to an abstract method::" msgstr "" +"Este caso especial está descontinuado, pois o decorador da :func:" +"`staticmethod` está agora corretamente identificado como abstrato quando " +"aplicado a um método abstrato:: " #: ../../library/abc.rst:285 msgid "" -"It is now possible to use :class:`property`, :meth:`property.getter`, " -":meth:`property.setter` and :meth:`property.deleter` with " -":func:`abstractmethod`, making this decorator redundant." +"It is now possible to use :class:`property`, :meth:`property.getter`, :meth:" +"`property.setter` and :meth:`property.deleter` with :func:`abstractmethod`, " +"making this decorator redundant." msgstr "" -"Agora é possível usar :classe:`property`, :meth:`property.getter`, " -":meth:`property.setter` e :meth:`property.deleter` com " -":func:`abstractmethod`, tornando redundante este decorador. " +"Agora é possível usar :classe:`property`, :meth:`property.getter`, :meth:" +"`property.setter` e :meth:`property.deleter` com :func:`abstractmethod`, " +"tornando redundante este decorador. " #: ../../library/abc.rst:290 msgid "" -"A subclass of the built-in :func:`property`, indicating an abstract " -"property." +"A subclass of the built-in :func:`property`, indicating an abstract property." msgstr "" "Uma subclasse da :func:`property` embutida, indicando uma propriedade " "abstrata." @@ -368,6 +379,9 @@ msgid "" "This special case is deprecated, as the :func:`property` decorator is now " "correctly identified as abstract when applied to an abstract method::" msgstr "" +"Este caso especial está descontinuado, pois o decorador da :func:`property` " +"está agora corretamente identificado como abstrato quando aplicado a um " +"método abstrato:: " #: ../../library/abc.rst:303 msgid "" @@ -375,27 +389,36 @@ msgid "" "write abstract property by appropriately marking one or more of the " "underlying methods as abstract::" msgstr "" +"O exemplo acima define uma propriedade somente leitura; você também pode " +"definir uma propriedade abstrata de leitura e gravação marcando " +"apropriadamente um ou mais dos métodos subjacentes como abstratos:: " #: ../../library/abc.rst:317 msgid "" "If only some components are abstract, only those components need to be " "updated to create a concrete property in a subclass::" msgstr "" +"Se apenas alguns componentes são abstratos, apenas estes componentes " +"precisam ser atualizados para criar uma propriedade concreta em uma " +"subclasse:: " #: ../../library/abc.rst:326 msgid "The :mod:`abc` module also provides the following functions:" -msgstr "" +msgstr "O módulo: mod: `abc` também fornece as seguintes funções:" #: ../../library/abc.rst:330 msgid "Returns the current abstract base class cache token." -msgstr "" +msgstr "Retorna o token de cache da classe base abstrata atual." #: ../../library/abc.rst:332 msgid "" "The token is an opaque object (that supports equality testing) identifying " -"the current version of the abstract base class cache for virtual subclasses." -" The token changes with every call to :meth:`ABCMeta.register` on any ABC." +"the current version of the abstract base class cache for virtual subclasses. " +"The token changes with every call to :meth:`ABCMeta.register` on any ABC." msgstr "" +"O token é um objeto opaco (que suporta teste de igualdade) identificando a " +"versão atual do cache da classe base abstrata para subclasses virtuais. O " +"token muda a cada chamada ao :meth:`ABCMeta.register` em qualquer CBA. " #: ../../library/abc.rst:340 msgid "Footnotes" @@ -406,3 +429,5 @@ msgid "" "C++ programmers should note that Python's virtual base class concept is not " "the same as C++'s." msgstr "" +"Programadores C++ devem notar que o conceito da casse base virtual do Python " +"não é o mesmo que o de C++. " diff --git a/library/aifc.po b/library/aifc.po index f2c860bd9..717604703 100644 --- a/library/aifc.po +++ b/library/aifc.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,10 +37,10 @@ msgid "" "samples in a file. AIFF-C is a newer version of the format that includes " "the ability to compress the audio data." msgstr "" -"Este módulo fornece suporte para leitura e gravação de arquivos AIFF e " -"AIFF-C. AIFF significa Audio Interchange File Format, um formato para " -"armazenar amostras de áudio digital em um arquivo. AIFF-C é uma versão mais " -"recente do formato que inclui a capacidade de compactar os dados de áudio." +"Este módulo fornece suporte para leitura e gravação de arquivos AIFF e AIFF-" +"C. AIFF significa Audio Interchange File Format, um formato para armazenar " +"amostras de áudio digital em um arquivo. AIFF-C é uma versão mais recente do " +"formato que inclui a capacidade de compactar os dados de áudio." #: ../../library/aifc.rst:21 msgid "" @@ -52,8 +53,8 @@ msgid "" "samplesize * framerate`` bytes." msgstr "" "Arquivos de áudio têm vários parâmetros que descrevem os dados de áudio. A " -"taxa de amostragem ou taxa de quadros é o número de vezes por segundo em que" -" o som é amostrado. O número de canais indica se o áudio é mono, estéreo ou " +"taxa de amostragem ou taxa de quadros é o número de vezes por segundo em que " +"o som é amostrado. O número de canais indica se o áudio é mono, estéreo ou " "quadro. Cada quadro consiste em uma amostra por canal. O tamanho da amostra " "é o tamanho em bytes de cada amostra. Assim, um quadro consiste em " "``nchannels * samplesize`` bytes e um segundo de áudio consiste em " @@ -61,15 +62,15 @@ msgstr "" #: ../../library/aifc.rst:29 msgid "" -"For example, CD quality audio has a sample size of two bytes (16 bits), uses" -" two channels (stereo) and has a frame rate of 44,100 frames/second. This " +"For example, CD quality audio has a sample size of two bytes (16 bits), uses " +"two channels (stereo) and has a frame rate of 44,100 frames/second. This " "gives a frame size of 4 bytes (2\\*2), and a second's worth occupies " "2\\*2\\*44100 bytes (176,400 bytes)." msgstr "" "Por exemplo, o áudio com qualidade de CD tem um tamanho de amostra de dois " "bytes (16 bits), usa dois canais (estéreo) e tem uma taxa de quadros de " -"44.100 quadros/segundo. Isto dá um tamanho de quadro de 4 bytes (2\\*2), e o" -" valor de um segundo ocupa 2\\*2\\*44100 bytes (176.400 bytes)." +"44.100 quadros/segundo. Isto dá um tamanho de quadro de 4 bytes (2\\*2), e o " +"valor de um segundo ocupa 2\\*2\\*44100 bytes (176.400 bytes)." #: ../../library/aifc.rst:34 msgid "Module :mod:`aifc` defines the following function:" @@ -83,22 +84,22 @@ msgid "" "must be opened for reading, or ``'w'`` or ``'wb'`` when the file must be " "opened for writing. If omitted, ``file.mode`` is used if it exists, " "otherwise ``'rb'`` is used. When used for writing, the file object should " -"be seekable, unless you know ahead of time how many samples you are going to" -" write in total and use :meth:`writeframesraw` and :meth:`setnframes`. The " -":func:`.open` function may be used in a :keyword:`with` statement. When the" -" :keyword:`!with` block completes, the :meth:`~aifc.close` method is called." +"be seekable, unless you know ahead of time how many samples you are going to " +"write in total and use :meth:`writeframesraw` and :meth:`setnframes`. The :" +"func:`.open` function may be used in a :keyword:`with` statement. When the :" +"keyword:`!with` block completes, the :meth:`~aifc.close` method is called." msgstr "" "Abre um arquivo AIFF ou AIFF-C e retorna uma instância de objeto com os " "métodos descritos abaixo. O argumento *file* é uma string nomeando um " -"arquivo ou um :term:`objeto de arquivo`. *mode* deve ser ``'r'`` ou ``'rb'``" -" quando o arquivo deve ser aberto para leitura, ou ``'w'`` ou ``'wb'`` " -"quando o arquivo deve ser aberto para escrita. Se omitido, ``file.mode`` é " -"usado se existir, caso contrário ``'rb'`` é usado. Quando usado para " -"escrita, o objeto de arquivo deve ser pesquisável, a menos que você saiba " -"com antecedência quantas amostras você irá escrever no total e usar " -":meth:`writeframesraw` e :meth:`setnframes`. A função :func:`.open` pode ser" -" usada em um bloco de instrução :keyword:`with`. Quando o bloco " -":keyword:`!with` é concluído, o método :meth:`~aifc.close` é chamado." +"arquivo ou um :term:`objeto de arquivo`. *mode* deve ser ``'r'`` ou ``'rb'`` " +"quando o arquivo deve ser aberto para leitura, ou ``'w'`` ou ``'wb'`` quando " +"o arquivo deve ser aberto para escrita. Se omitido, ``file.mode`` é usado se " +"existir, caso contrário ``'rb'`` é usado. Quando usado para escrita, o " +"objeto de arquivo deve ser pesquisável, a menos que você saiba com " +"antecedência quantas amostras você irá escrever no total e usar :meth:" +"`writeframesraw` e :meth:`setnframes`. A função :func:`.open` pode ser usada " +"em um bloco de instrução :keyword:`with`. Quando o bloco :keyword:`!with` é " +"concluído, o método :meth:`~aifc.close` é chamado." #: ../../library/aifc.rst:50 msgid "Support for the :keyword:`with` statement was added." @@ -106,11 +107,11 @@ msgstr "Suporte para a instrução :keyword:`with` foi adicionado." #: ../../library/aifc.rst:53 msgid "" -"Objects returned by :func:`.open` when a file is opened for reading have the" -" following methods:" +"Objects returned by :func:`.open` when a file is opened for reading have the " +"following methods:" msgstr "" -"Objetos retornados por :func:`.open` quando um arquivo é aberto para leitura" -" têm os seguintes métodos:" +"Objetos retornados por :func:`.open` quando um arquivo é aberto para leitura " +"têm os seguintes métodos:" #: ../../library/aifc.rst:59 msgid "Return the number of audio channels (1 for mono, 2 for stereo)." @@ -139,33 +140,33 @@ msgstr "" #: ../../library/aifc.rst:86 msgid "" -"Return a bytes array convertible to a human-readable description of the type" -" of compression used in the audio file. For AIFF files, the returned value " +"Return a bytes array convertible to a human-readable description of the type " +"of compression used in the audio file. For AIFF files, the returned value " "is ``b'not compressed'``." msgstr "" -"Retorna um array de bytes convertível para uma descrição legível por humanos" -" do tipo de compactação usado no arquivo de áudio. Para arquivos AIFF, o " +"Retorna um array de bytes convertível para uma descrição legível por humanos " +"do tipo de compactação usado no arquivo de áudio. Para arquivos AIFF, o " "valor retornado é ``b'not compressed'``." #: ../../library/aifc.rst:93 msgid "" "Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " -"framerate, nframes, comptype, compname)``, equivalent to output of the " -":meth:`get\\*` methods." +"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:" +"`get\\*` methods." msgstr "" "Retorna a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " -"framerate, nframes, comptype, compname)``, equivalente à saída dos métodos " -":meth:`get\\*`." +"framerate, nframes, comptype, compname)``, equivalente à saída dos métodos :" +"meth:`get\\*`." #: ../../library/aifc.rst:100 msgid "" -"Return a list of markers in the audio file. A marker consists of a tuple of" -" three elements. The first is the mark ID (an integer), the second is the " +"Return a list of markers in the audio file. A marker consists of a tuple of " +"three elements. The first is the mark ID (an integer), the second is the " "mark position in frames from the beginning of the data (an integer), the " "third is the name of the mark (a string)." msgstr "" -"Retorna uma lista de marcadores no arquivo de áudio. Um marcador consiste em" -" uma tupla de três elementos. O primeiro é o ID da marca (um inteiro), o " +"Retorna uma lista de marcadores no arquivo de áudio. Um marcador consiste em " +"uma tupla de três elementos. O primeiro é o ID da marca (um inteiro), o " "segundo é a posição da marca nos quadros desde o início dos dados (um " "inteiro), o terceiro é o nome da marca (uma string)." @@ -179,8 +180,8 @@ msgstr "" #: ../../library/aifc.rst:114 msgid "" -"Read and return the next *nframes* frames from the audio file. The returned" -" data is a string containing for each frame the uncompressed samples of all " +"Read and return the next *nframes* frames from the audio file. The returned " +"data is a string containing for each frame the uncompressed samples of all " "channels." msgstr "" "Lê e retorna os próximos *nframes* quadros do arquivo de áudio. Os dados " @@ -205,26 +206,26 @@ msgstr "Retorna o número do quadro atual." #: ../../library/aifc.rst:137 msgid "" -"Close the AIFF file. After calling this method, the object can no longer be" -" used." +"Close the AIFF file. After calling this method, the object can no longer be " +"used." msgstr "" "Fecha o arquivo AIFF. Depois de chamar esse método, o objeto não pode mais " "ser usado." #: ../../library/aifc.rst:140 msgid "" -"Objects returned by :func:`.open` when a file is opened for writing have all" -" the above methods, except for :meth:`readframes` and :meth:`setpos`. In " +"Objects returned by :func:`.open` when a file is opened for writing have all " +"the above methods, except for :meth:`readframes` and :meth:`setpos`. In " "addition the following methods exist. The :meth:`get\\*` methods can only " "be called after the corresponding :meth:`set\\*` methods have been called. " "Before the first :meth:`writeframes` or :meth:`writeframesraw`, all " "parameters except for the number of frames must be filled in." msgstr "" -"Objetos retornados por :func:`.open` quando um arquivo é aberto para escrita" -" possuem todos os métodos acima, exceto :meth:`readframes` e :meth:`setpos`." -" Além disso, os seguintes métodos existem. Os métodos :meth:`get\\*` só " -"podem ser chamados após os métodos :meth:`set\\*` correspondentes terem sido" -" chamados. Antes do primeiro :meth:`writeframes` ou :meth:`writeframesraw`, " +"Objetos retornados por :func:`.open` quando um arquivo é aberto para escrita " +"possuem todos os métodos acima, exceto :meth:`readframes` e :meth:`setpos`. " +"Além disso, os seguintes métodos existem. Os métodos :meth:`get\\*` só podem " +"ser chamados após os métodos :meth:`set\\*` correspondentes terem sido " +"chamados. Antes do primeiro :meth:`writeframes` ou :meth:`writeframesraw`, " "todos os parâmetros, exceto o número de quadros, devem ser preenchidos." #: ../../library/aifc.rst:150 @@ -240,8 +241,8 @@ msgstr "" #: ../../library/aifc.rst:156 msgid "" "Create an AIFF-C file. The default is that an AIFF-C file is created, " -"unless the name of the file ends in ``'.aiff'`` in which case the default is" -" an AIFF file." +"unless the name of the file ends in ``'.aiff'`` in which case the default is " +"an AIFF file." msgstr "" "Cria um arquivo AIFF-C. O padrão é que um arquivo AIFF-C seja criado, a " "menos que o nome do arquivo termine em ``'.aiff'``, caso em que o padrão é " @@ -278,8 +279,8 @@ msgid "" "the following compression types are supported: ``b'NONE'``, ``b'ULAW'``, " "``b'ALAW'``, ``b'G722'``." msgstr "" -"Especifica o tipo de compactação. Se não for especificado, os dados de áudio" -" não serão compactados. Em arquivos AIFF, a compactação não é possível. O " +"Especifica o tipo de compactação. Se não for especificado, os dados de áudio " +"não serão compactados. Em arquivos AIFF, a compactação não é possível. O " "parâmetro de nome deve ser uma descrição legível por humanos do tipo de " "compressão como uma array de bytes, o parâmetro de tipo deve ser uma array " "de bytes de tamanho 4. Atualmente, há suporte aos seguintes tipos de " @@ -287,28 +288,28 @@ msgstr "" #: ../../library/aifc.rst:199 msgid "" -"Set all the above parameters at once. The argument is a tuple consisting of" -" the various parameters. This means that it is possible to use the result " -"of a :meth:`getparams` call as argument to :meth:`setparams`." +"Set all the above parameters at once. The argument is a tuple consisting of " +"the various parameters. This means that it is possible to use the result of " +"a :meth:`getparams` call as argument to :meth:`setparams`." msgstr "" "Define todos os parâmetros acima de uma só vez. O argumento é uma tupla que " "consiste em vários parâmetros. Isto significa que é possível usar o " -"resultado de uma chamada de :meth:`getparams` como argumento para " -":meth:`setparams`." +"resultado de uma chamada de :meth:`getparams` como argumento para :meth:" +"`setparams`." #: ../../library/aifc.rst:206 msgid "" "Add a mark with the given id (larger than 0), and the given name at the " "given position. This method can be called at any time before :meth:`close`." msgstr "" -"Adiciona uma marca com o ID fornecido (maior que 0) e o nome dado na posição" -" determinada. Este método pode ser chamado a qualquer momento antes de " -":meth:`close`." +"Adiciona uma marca com o ID fornecido (maior que 0) e o nome dado na posição " +"determinada. Este método pode ser chamado a qualquer momento antes de :meth:" +"`close`." #: ../../library/aifc.rst:212 msgid "" -"Return the current write position in the output file. Useful in combination" -" with :meth:`setmark`." +"Return the current write position in the output file. Useful in combination " +"with :meth:`setmark`." msgstr "" "Retorna a posição atual de escrita no arquivo de saída. Útil em combinação " "com :meth:`setmark`." @@ -330,8 +331,8 @@ msgid "" "Like :meth:`writeframes`, except that the header of the audio file is not " "updated." msgstr "" -"Semelhante a :meth:`writeframes`, exceto que o cabeçalho do arquivo de áudio" -" não é atualizado." +"Semelhante a :meth:`writeframes`, exceto que o cabeçalho do arquivo de áudio " +"não é atualizado." #: ../../library/aifc.rst:236 msgid "" diff --git a/library/allos.po b/library/allos.po index 45330a430..86cf18a77 100644 --- a/library/allos.po +++ b/library/allos.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,14 +29,14 @@ msgstr "Serviços Genéricos do Sistema Operacional" #: ../../library/allos.rst:7 msgid "" -"The modules described in this chapter provide interfaces to operating system" -" features that are available on (almost) all operating systems, such as " -"files and a clock. The interfaces are generally modeled after the Unix or C" -" interfaces, but they are available on most other systems as well. Here's " -"an overview:" +"The modules described in this chapter provide interfaces to operating system " +"features that are available on (almost) all operating systems, such as files " +"and a clock. The interfaces are generally modeled after the Unix or C " +"interfaces, but they are available on most other systems as well. Here's an " +"overview:" msgstr "" "Os módulos descritos neste capítulo fornecem interfaces aos recursos do " "sistema operacional e que estão disponíveis em (quase) todos os sistemas " "operacionais, como arquivos e um relógio. As interfaces geralmente são " -"modeladas após as interfaces Unix ou C, mas elas também estão disponíveis na" -" maioria dos outros sistemas. Aqui temos uma visão geral:" +"modeladas após as interfaces Unix ou C, mas elas também estão disponíveis na " +"maioria dos outros sistemas. Aqui temos uma visão geral:" diff --git a/library/archiving.po b/library/archiving.po index 1abe9b404..c59f6ce93 100644 --- a/library/archiving.po +++ b/library/archiving.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,10 +32,10 @@ msgstr "Compressão de Dados e Arquivamento" msgid "" "The modules described in this chapter support data compression with the " "zlib, gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-" -"format archives. See also :ref:`archiving-operations` provided by the " -":mod:`shutil` module." +"format archives. See also :ref:`archiving-operations` provided by the :mod:" +"`shutil` module." msgstr "" "Os módulos descritos neste capítulo suportam a compressão de dados com os " "algoritmos zlib, gzip, bzip2 e lzma e a criação de arquivos ZIP e tar. " -"Consulte também :ref:`archiving-operations` fornecido pelo módulo " -":mod:`shutil`." +"Consulte também :ref:`archiving-operations` fornecido pelo módulo :mod:" +"`shutil`." diff --git a/library/argparse.po b/library/argparse.po index be9a0fb05..71c7d41dd 100644 --- a/library/argparse.po +++ b/library/argparse.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # felipe caridade , 2019 # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-07 03:42+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,27 +43,27 @@ msgstr "Tutorial" #: ../../library/argparse.rst:18 msgid "" "This page contains the API reference information. For a more gentle " -"introduction to Python command-line parsing, have a look at the " -":ref:`argparse tutorial `." +"introduction to Python command-line parsing, have a look at the :ref:" +"`argparse tutorial `." msgstr "" "Esta página contém informações da API de Referência. Para uma introdução " -"mais prática para o parser de linha de comando Python, acesse :ref:`argparse" -" tutorial `." +"mais prática para o parser de linha de comando Python, acesse :ref:`argparse " +"tutorial `." #: ../../library/argparse.rst:22 msgid "" -"The :mod:`argparse` module makes it easy to write user-friendly command-line" -" interfaces. The program defines what arguments it requires, and " -":mod:`argparse` will figure out how to parse those out of :data:`sys.argv`." -" The :mod:`argparse` module also automatically generates help and usage " -"messages and issues errors when users give the program invalid arguments." +"The :mod:`argparse` module makes it easy to write user-friendly command-line " +"interfaces. The program defines what arguments it requires, and :mod:" +"`argparse` will figure out how to parse those out of :data:`sys.argv`. The :" +"mod:`argparse` module also automatically generates help and usage messages " +"and issues errors when users give the program invalid arguments." msgstr "" "O módulo :mod:`argparse` torna fácil a escrita de interfaces de linha de " -"comando amigáveis. O programa define quais argumentos são necessários e " -":mod:`argparse` descobrirá como analisá-lo e interpretá-los a partir do " -":data:`sys.argv`. O módulo :mod:`argparse` também gera automaticamente o " -"texto ajuda, mensagens de uso e error emitidos quando o usuário prover " -"argumentos inválidos para o programa." +"comando amigáveis. O programa define quais argumentos são necessários e :mod:" +"`argparse` descobrirá como analisá-lo e interpretá-los a partir do :data:" +"`sys.argv`. O módulo :mod:`argparse` também gera automaticamente o texto " +"ajuda, mensagens de uso e error emitidos quando o usuário prover argumentos " +"inválidos para o programa." #: ../../library/argparse.rst:30 msgid "Example" @@ -81,14 +82,14 @@ msgid "" "Assuming the Python code above is saved into a file called ``prog.py``, it " "can be run at the command line and provides useful help messages:" msgstr "" -"Assumindo que o código Python acima está salvo em um arquivo chamado " -"``prog.py``, pode-se executá-lo pela linha de comando e obter mensagens de " -"ajuda úteis:" +"Assumindo que o código Python acima está salvo em um arquivo chamado ``prog." +"py``, pode-se executá-lo pela linha de comando e obter mensagens de ajuda " +"úteis:" #: ../../library/argparse.rst:64 msgid "" -"When run with the appropriate arguments, it prints either the sum or the max" -" of the command-line integers:" +"When run with the appropriate arguments, it prints either the sum or the max " +"of the command-line integers:" msgstr "" "Quando executado com argumentos apropriados, a soma ou o maior número dos " "números digitados na linha de comando:" @@ -107,11 +108,11 @@ msgstr "Criando um parser" #: ../../library/argparse.rst:89 msgid "" -"The first step in using the :mod:`argparse` is creating an " -":class:`ArgumentParser` object::" +"The first step in using the :mod:`argparse` is creating an :class:" +"`ArgumentParser` object::" msgstr "" -"O primeiro passo ao utilizar o :mod:`argparse` é criar um objeto " -":class:`ArgumentParser`::" +"O primeiro passo ao utilizar o :mod:`argparse` é criar um objeto :class:" +"`ArgumentParser`::" #: ../../library/argparse.rst:94 msgid "" @@ -130,24 +131,24 @@ msgid "" "Filling an :class:`ArgumentParser` with information about program arguments " "is done by making calls to the :meth:`~ArgumentParser.add_argument` method. " "Generally, these calls tell the :class:`ArgumentParser` how to take the " -"strings on the command line and turn them into objects. This information is" -" stored and used when :meth:`~ArgumentParser.parse_args` is called. For " +"strings on the command line and turn them into objects. This information is " +"stored and used when :meth:`~ArgumentParser.parse_args` is called. For " "example::" msgstr "" "O preenchimento de :class:`ArgumentParser` com informações sobre os " -"argumentos do programa é feito por chamadas ao método " -":meth:`~ArgumentParser.add_argument`. Geralmente, estas chamadas informam ao" -" :class:`ArgumentParser` como traduzir strings da linha de comando e torná-" -"los em objetos. Esta informação é armazenada e utilizada quando o método " -":meth:`~ArgumentParser.parse_args` é invocado. Por exemplo::" +"argumentos do programa é feito por chamadas ao método :meth:`~ArgumentParser." +"add_argument`. Geralmente, estas chamadas informam ao :class:" +"`ArgumentParser` como traduzir strings da linha de comando e torná-los em " +"objetos. Esta informação é armazenada e utilizada quando o método :meth:" +"`~ArgumentParser.parse_args` é invocado. Por exemplo::" #: ../../library/argparse.rst:113 msgid "" -"Later, calling :meth:`~ArgumentParser.parse_args` will return an object with" -" two attributes, ``integers`` and ``accumulate``. The ``integers`` " -"attribute will be a list of one or more ints, and the ``accumulate`` " -"attribute will be either the :func:`sum` function, if ``--sum`` was " -"specified at the command line, or the :func:`max` function if it was not." +"Later, calling :meth:`~ArgumentParser.parse_args` will return an object with " +"two attributes, ``integers`` and ``accumulate``. The ``integers`` attribute " +"will be a list of one or more ints, and the ``accumulate`` attribute will be " +"either the :func:`sum` function, if ``--sum`` was specified at the command " +"line, or the :func:`max` function if it was not." msgstr "" "Em seguida, a chamada ao método :meth:`~ArgumentParser.parse_args` irá " "retornar um objeto com dois atributos, ``integers`` e ``accumulate``. O " @@ -161,11 +162,11 @@ msgstr "Análise de argumentos" #: ../../library/argparse.rst:123 msgid "" -":class:`ArgumentParser` parses arguments through the " -":meth:`~ArgumentParser.parse_args` method. This will inspect the command " -"line, convert each argument to the appropriate type and then invoke the " -"appropriate action. In most cases, this means a simple :class:`Namespace` " -"object will be built up from attributes parsed out of the command line::" +":class:`ArgumentParser` parses arguments through the :meth:`~ArgumentParser." +"parse_args` method. This will inspect the command line, convert each " +"argument to the appropriate type and then invoke the appropriate action. In " +"most cases, this means a simple :class:`Namespace` object will be built up " +"from attributes parsed out of the command line::" msgstr "" #: ../../library/argparse.rst:132 @@ -181,8 +182,8 @@ msgstr "Objetos ArgumentParser" #: ../../library/argparse.rst:147 msgid "" -"Create a new :class:`ArgumentParser` object. All parameters should be passed" -" as keyword arguments. Each parameter has its own more detailed description " +"Create a new :class:`ArgumentParser` object. All parameters should be passed " +"as keyword arguments. Each parameter has its own more detailed description " "below, but in short they are:" msgstr "" @@ -197,8 +198,7 @@ msgid "" msgstr "" #: ../../library/argparse.rst:156 -msgid "" -"description_ - Text to display before the argument help (default: none)" +msgid "description_ - Text to display before the argument help (default: none)" msgstr "" #: ../../library/argparse.rst:158 @@ -246,8 +246,8 @@ msgstr "" #: ../../library/argparse.rst:179 msgid "" -"allow_abbrev_ - Allows long options to be abbreviated if the abbreviation is" -" unambiguous. (default: ``True``)" +"allow_abbrev_ - Allows long options to be abbreviated if the abbreviation is " +"unambiguous. (default: ``True``)" msgstr "" #: ../../library/argparse.rst:182 @@ -264,11 +264,11 @@ msgstr "prog" #: ../../library/argparse.rst:191 msgid "" -"By default, :class:`ArgumentParser` objects use ``sys.argv[0]`` to determine" -" how to display the name of the program in help messages. This default is " -"almost always desirable because it will make the help messages match how the" -" program was invoked on the command line. For example, consider a file " -"named ``myprogram.py`` with the following code::" +"By default, :class:`ArgumentParser` objects use ``sys.argv[0]`` to determine " +"how to display the name of the program in help messages. This default is " +"almost always desirable because it will make the help messages match how the " +"program was invoked on the command line. For example, consider a file named " +"``myprogram.py`` with the following code::" msgstr "" #: ../../library/argparse.rst:202 @@ -286,8 +286,8 @@ msgstr "" #: ../../library/argparse.rst:231 msgid "" "Note that the program name, whether determined from ``sys.argv[0]`` or from " -"the ``prog=`` argument, is available to help messages using the ``%(prog)s``" -" format specifier." +"the ``prog=`` argument, is available to help messages using the ``%(prog)s`` " +"format specifier." msgstr "" #: ../../library/argparse.rst:248 @@ -356,11 +356,11 @@ msgstr "parents" msgid "" "Sometimes, several parsers share a common set of arguments. Rather than " "repeating the definitions of these arguments, a single parser with all the " -"shared arguments and passed to ``parents=`` argument to " -":class:`ArgumentParser` can be used. The ``parents=`` argument takes a list" -" of :class:`ArgumentParser` objects, collects all the positional and " -"optional actions from them, and adds these actions to the " -":class:`ArgumentParser` object being constructed::" +"shared arguments and passed to ``parents=`` argument to :class:" +"`ArgumentParser` can be used. The ``parents=`` argument takes a list of :" +"class:`ArgumentParser` objects, collects all the positional and optional " +"actions from them, and adds these actions to the :class:`ArgumentParser` " +"object being constructed::" msgstr "" #: ../../library/argparse.rst:355 @@ -384,16 +384,16 @@ msgstr "formatter_class" #: ../../library/argparse.rst:368 msgid "" ":class:`ArgumentParser` objects allow the help formatting to be customized " -"by specifying an alternate formatting class. Currently, there are four such" -" classes:" +"by specifying an alternate formatting class. Currently, there are four such " +"classes:" msgstr "" #: ../../library/argparse.rst:377 msgid "" ":class:`RawDescriptionHelpFormatter` and :class:`RawTextHelpFormatter` give " -"more control over how textual descriptions are displayed. By default, " -":class:`ArgumentParser` objects line-wrap the description_ and epilog_ texts" -" in command-line help messages::" +"more control over how textual descriptions are displayed. By default, :class:" +"`ArgumentParser` objects line-wrap the description_ and epilog_ texts in " +"command-line help messages::" msgstr "" #: ../../library/argparse.rst:402 @@ -431,16 +431,16 @@ msgstr "prefix_chars" #: ../../library/argparse.rst:474 msgid "" "Most command-line options will use ``-`` as the prefix, e.g. ``-f/--foo``. " -"Parsers that need to support different or additional prefix characters, e.g." -" for options like ``+f`` or ``/foo``, may specify them using the " +"Parsers that need to support different or additional prefix characters, e.g. " +"for options like ``+f`` or ``/foo``, may specify them using the " "``prefix_chars=`` argument to the ArgumentParser constructor::" msgstr "" #: ../../library/argparse.rst:486 msgid "" "The ``prefix_chars=`` argument defaults to ``'-'``. Supplying a set of " -"characters that does not include ``-`` will cause ``-f/--foo`` options to be" -" disallowed." +"characters that does not include ``-`` will cause ``-f/--foo`` options to be " +"disallowed." msgstr "" #: ../../library/argparse.rst:492 @@ -449,22 +449,22 @@ msgstr "fromfile_prefix_chars" #: ../../library/argparse.rst:494 msgid "" -"Sometimes, for example when dealing with a particularly long argument lists," -" it may make sense to keep the list of arguments in a file rather than " -"typing it out at the command line. If the ``fromfile_prefix_chars=`` " -"argument is given to the :class:`ArgumentParser` constructor, then arguments" -" that start with any of the specified characters will be treated as files, " -"and will be replaced by the arguments they contain. For example::" +"Sometimes, for example when dealing with a particularly long argument lists, " +"it may make sense to keep the list of arguments in a file rather than typing " +"it out at the command line. If the ``fromfile_prefix_chars=`` argument is " +"given to the :class:`ArgumentParser` constructor, then arguments that start " +"with any of the specified characters will be treated as files, and will be " +"replaced by the arguments they contain. For example::" msgstr "" #: ../../library/argparse.rst:508 msgid "" -"Arguments read from a file must by default be one per line (but see also " -":meth:`~ArgumentParser.convert_arg_line_to_args`) and are treated as if they" -" were in the same place as the original file referencing argument on the " +"Arguments read from a file must by default be one per line (but see also :" +"meth:`~ArgumentParser.convert_arg_line_to_args`) and are treated as if they " +"were in the same place as the original file referencing argument on the " "command line. So in the example above, the expression ``['-f', 'foo', " -"'@args.txt']`` is considered equivalent to the expression ``['-f', 'foo', " -"'-f', 'bar']``." +"'@args.txt']`` is considered equivalent to the expression ``['-f', 'foo', '-" +"f', 'bar']``." msgstr "" #: ../../library/argparse.rst:514 @@ -479,15 +479,14 @@ msgstr "argument_default" #: ../../library/argparse.rst:521 msgid "" -"Generally, argument defaults are specified either by passing a default to " -":meth:`~ArgumentParser.add_argument` or by calling the " -":meth:`~ArgumentParser.set_defaults` methods with a specific set of name-" -"value pairs. Sometimes however, it may be useful to specify a single " -"parser-wide default for arguments. This can be accomplished by passing the " -"``argument_default=`` keyword argument to :class:`ArgumentParser`. For " -"example, to globally suppress attribute creation on " -":meth:`~ArgumentParser.parse_args` calls, we supply " -"``argument_default=SUPPRESS``::" +"Generally, argument defaults are specified either by passing a default to :" +"meth:`~ArgumentParser.add_argument` or by calling the :meth:`~ArgumentParser." +"set_defaults` methods with a specific set of name-value pairs. Sometimes " +"however, it may be useful to specify a single parser-wide default for " +"arguments. This can be accomplished by passing the ``argument_default=`` " +"keyword argument to :class:`ArgumentParser`. For example, to globally " +"suppress attribute creation on :meth:`~ArgumentParser.parse_args` calls, we " +"supply ``argument_default=SUPPRESS``::" msgstr "" #: ../../library/argparse.rst:541 @@ -496,14 +495,13 @@ msgstr "allow_abbrev" #: ../../library/argparse.rst:543 msgid "" -"Normally, when you pass an argument list to the " -":meth:`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`, it " -":ref:`recognizes abbreviations ` of long options." +"Normally, when you pass an argument list to the :meth:`~ArgumentParser." +"parse_args` method of an :class:`ArgumentParser`, it :ref:`recognizes " +"abbreviations ` of long options." msgstr "" #: ../../library/argparse.rst:547 -msgid "" -"This feature can be disabled by setting ``allow_abbrev`` to ``False``::" +msgid "This feature can be disabled by setting ``allow_abbrev`` to ``False``::" msgstr "" #: ../../library/argparse.rst:560 @@ -520,18 +518,18 @@ msgstr "" #: ../../library/argparse.rst:574 msgid "" -"Sometimes (e.g. when using parents_) it may be useful to simply override any" -" older arguments with the same option string. To get this behavior, the " -"value ``'resolve'`` can be supplied to the ``conflict_handler=`` argument of" -" :class:`ArgumentParser`::" +"Sometimes (e.g. when using parents_) it may be useful to simply override any " +"older arguments with the same option string. To get this behavior, the " +"value ``'resolve'`` can be supplied to the ``conflict_handler=`` argument " +"of :class:`ArgumentParser`::" msgstr "" #: ../../library/argparse.rst:590 msgid "" "Note that :class:`ArgumentParser` objects only remove an action if all of " -"its option strings are overridden. So, in the example above, the old " -"``-f/--foo`` action is retained as the ``-f`` action, because only the " -"``--foo`` option string was overridden." +"its option strings are overridden. So, in the example above, the old ``-f/--" +"foo`` action is retained as the ``-f`` action, because only the ``--foo`` " +"option string was overridden." msgstr "" #: ../../library/argparse.rst:597 @@ -554,16 +552,16 @@ msgstr "" #: ../../library/argparse.rst:620 msgid "" "Occasionally, it may be useful to disable the addition of this help option. " -"This can be achieved by passing ``False`` as the ``add_help=`` argument to " -":class:`ArgumentParser`::" +"This can be achieved by passing ``False`` as the ``add_help=`` argument to :" +"class:`ArgumentParser`::" msgstr "" #: ../../library/argparse.rst:632 msgid "" "The help option is typically ``-h/--help``. The exception to this is if the " -"``prefix_chars=`` is specified and does not include ``-``, in which case " -"``-h`` and ``--help`` are not valid options. In this case, the first " -"character in ``prefix_chars`` is used to prefix the help options::" +"``prefix_chars=`` is specified and does not include ``-``, in which case ``-" +"h`` and ``--help`` are not valid options. In this case, the first character " +"in ``prefix_chars`` is used to prefix the help options::" msgstr "" #: ../../library/argparse.rst:647 @@ -614,8 +612,8 @@ msgstr "" #: ../../library/argparse.rst:673 msgid "" -"required_ - Whether or not the command-line option may be omitted (optionals" -" only)." +"required_ - Whether or not the command-line option may be omitted (optionals " +"only)." msgstr "" #: ../../library/argparse.rst:676 @@ -628,8 +626,8 @@ msgstr "" #: ../../library/argparse.rst:680 msgid "" -"dest_ - The name of the attribute to be added to the object returned by " -":meth:`parse_args`." +"dest_ - The name of the attribute to be added to the object returned by :" +"meth:`parse_args`." msgstr "" #: ../../library/argparse.rst:687 @@ -640,16 +638,16 @@ msgstr "" msgid "" "The :meth:`~ArgumentParser.add_argument` method must know whether an " "optional argument, like ``-f`` or ``--foo``, or a positional argument, like " -"a list of filenames, is expected. The first arguments passed to " -":meth:`~ArgumentParser.add_argument` must therefore be either a series of " -"flags, or a simple argument name. For example, an optional argument could " -"be created like::" +"a list of filenames, is expected. The first arguments passed to :meth:" +"`~ArgumentParser.add_argument` must therefore be either a series of flags, " +"or a simple argument name. For example, an optional argument could be " +"created like::" msgstr "" "O método :meth:`~ArgumentParser.add_argument` define quando um argumento " "opcional, como ``-f`` ou ``--foo``, ou um argumento posicional, como uma " "lista de nomes de arquivos, é esperada. Os primeiros argumentos passados ao " -"método :meth:`~ArgumentParser.add_argument` devem ser uma série de flags, ou" -" um simples nome de argumento. Por exemplo, um argumento opcional deve ser " +"método :meth:`~ArgumentParser.add_argument` devem ser uma série de flags, ou " +"um simples nome de argumento. Por exemplo, um argumento opcional deve ser " "criado como::" #: ../../library/argparse.rst:698 @@ -710,17 +708,21 @@ msgid "" "``'append_const'`` - This stores a list, and appends the value specified by " "the const_ keyword argument to the list. (Note that the const_ keyword " "argument defaults to ``None``.) The ``'append_const'`` action is typically " -"useful when multiple arguments need to store constants to the same list. For" -" example::" +"useful when multiple arguments need to store constants to the same list. For " +"example::" msgstr "" #: ../../library/argparse.rst:777 msgid "" -"``'count'`` - This counts the number of times a keyword argument occurs. For" -" example, this is useful for increasing verbosity levels::" +"``'count'`` - This counts the number of times a keyword argument occurs. For " +"example, this is useful for increasing verbosity levels::" msgstr "" #: ../../library/argparse.rst:785 +msgid "Note, the *default* will be ``None`` unless explicitly set to *0*." +msgstr "" + +#: ../../library/argparse.rst:787 msgid "" "``'help'`` - This prints a complete help message for all the options in the " "current parser and then exits. By default a help action is automatically " @@ -728,14 +730,14 @@ msgid "" "output is created." msgstr "" -#: ../../library/argparse.rst:790 +#: ../../library/argparse.rst:792 msgid "" -"``'version'`` - This expects a ``version=`` keyword argument in the " -":meth:`~ArgumentParser.add_argument` call, and prints version information " -"and exits when invoked::" +"``'version'`` - This expects a ``version=`` keyword argument in the :meth:" +"`~ArgumentParser.add_argument` call, and prints version information and " +"exits when invoked::" msgstr "" -#: ../../library/argparse.rst:800 +#: ../../library/argparse.rst:802 msgid "" "You may also specify an arbitrary action by passing an Action subclass or " "other object that implements the same interface. The recommended way to do " @@ -743,39 +745,39 @@ msgid "" "optionally the ``__init__`` method." msgstr "" -#: ../../library/argparse.rst:805 +#: ../../library/argparse.rst:807 msgid "An example of a custom action::" msgstr "Um exemplo de uma ação personalizada:" -#: ../../library/argparse.rst:825 +#: ../../library/argparse.rst:827 msgid "For more details, see :class:`Action`." msgstr "Para mais detalhes, veja :class:`Action`." -#: ../../library/argparse.rst:828 +#: ../../library/argparse.rst:830 msgid "nargs" msgstr "nargs" -#: ../../library/argparse.rst:830 +#: ../../library/argparse.rst:832 msgid "" -"ArgumentParser objects usually associate a single command-line argument with" -" a single action to be taken. The ``nargs`` keyword argument associates a " +"ArgumentParser objects usually associate a single command-line argument with " +"a single action to be taken. The ``nargs`` keyword argument associates a " "different number of command-line arguments with a single action. The " "supported values are:" msgstr "" -#: ../../library/argparse.rst:835 +#: ../../library/argparse.rst:837 msgid "" "``N`` (an integer). ``N`` arguments from the command line will be gathered " "together into a list. For example::" msgstr "" -#: ../../library/argparse.rst:844 +#: ../../library/argparse.rst:846 msgid "" "Note that ``nargs=1`` produces a list of one item. This is different from " "the default, in which the item is produced by itself." msgstr "" -#: ../../library/argparse.rst:849 +#: ../../library/argparse.rst:851 msgid "" "``'?'``. One argument will be consumed from the command line if possible, " "and produced as a single item. If no command-line argument is present, the " @@ -785,35 +787,35 @@ msgid "" "produced. Some examples to illustrate this::" msgstr "" -#: ../../library/argparse.rst:866 +#: ../../library/argparse.rst:868 msgid "" "One of the more common uses of ``nargs='?'`` is to allow optional input and " "output files::" msgstr "" -#: ../../library/argparse.rst:883 +#: ../../library/argparse.rst:885 msgid "" -"``'*'``. All command-line arguments present are gathered into a list. Note" -" that it generally doesn't make much sense to have more than one positional " +"``'*'``. All command-line arguments present are gathered into a list. Note " +"that it generally doesn't make much sense to have more than one positional " "argument with ``nargs='*'``, but multiple optional arguments with " "``nargs='*'`` is possible. For example::" msgstr "" -#: ../../library/argparse.rst:897 +#: ../../library/argparse.rst:899 msgid "" "``'+'``. Just like ``'*'``, all command-line args present are gathered into " -"a list. Additionally, an error message will be generated if there wasn't at" -" least one command-line argument present. For example::" +"a list. Additionally, an error message will be generated if there wasn't at " +"least one command-line argument present. For example::" msgstr "" -#: ../../library/argparse.rst:911 +#: ../../library/argparse.rst:913 msgid "" "``argparse.REMAINDER``. All the remaining command-line arguments are " "gathered into a list. This is commonly useful for command line utilities " "that dispatch to other command line utilities::" msgstr "" -#: ../../library/argparse.rst:922 +#: ../../library/argparse.rst:924 msgid "" "If the ``nargs`` keyword argument is not provided, the number of arguments " "consumed is determined by the action_. Generally this means a single " @@ -821,11 +823,11 @@ msgid "" "be produced." msgstr "" -#: ../../library/argparse.rst:928 +#: ../../library/argparse.rst:930 msgid "const" msgstr "const" -#: ../../library/argparse.rst:930 +#: ../../library/argparse.rst:932 msgid "" "The ``const`` argument of :meth:`~ArgumentParser.add_argument` is used to " "hold constant values that are not read from the command line but are " @@ -833,16 +835,15 @@ msgid "" "common uses of it are:" msgstr "" -#: ../../library/argparse.rst:934 +#: ../../library/argparse.rst:936 msgid "" "When :meth:`~ArgumentParser.add_argument` is called with " "``action='store_const'`` or ``action='append_const'``. These actions add " -"the ``const`` value to one of the attributes of the object returned by " -":meth:`~ArgumentParser.parse_args`. See the action_ description for " -"examples." +"the ``const`` value to one of the attributes of the object returned by :meth:" +"`~ArgumentParser.parse_args`. See the action_ description for examples." msgstr "" -#: ../../library/argparse.rst:939 +#: ../../library/argparse.rst:941 msgid "" "When :meth:`~ArgumentParser.add_argument` is called with option strings " "(like ``-f`` or ``--foo``) and ``nargs='?'``. This creates an optional " @@ -852,69 +853,68 @@ msgid "" "instead. See the nargs_ description for examples." msgstr "" -#: ../../library/argparse.rst:946 +#: ../../library/argparse.rst:948 msgid "" "With the ``'store_const'`` and ``'append_const'`` actions, the ``const`` " "keyword argument must be given. For other actions, it defaults to ``None``." msgstr "" -#: ../../library/argparse.rst:951 +#: ../../library/argparse.rst:953 msgid "default" msgstr "default" -#: ../../library/argparse.rst:953 +#: ../../library/argparse.rst:955 msgid "" "All optional arguments and some positional arguments may be omitted at the " -"command line. The ``default`` keyword argument of " -":meth:`~ArgumentParser.add_argument`, whose value defaults to ``None``, " -"specifies what value should be used if the command-line argument is not " -"present. For optional arguments, the ``default`` value is used when the " -"option string was not present at the command line::" +"command line. The ``default`` keyword argument of :meth:`~ArgumentParser." +"add_argument`, whose value defaults to ``None``, specifies what value should " +"be used if the command-line argument is not present. For optional arguments, " +"the ``default`` value is used when the option string was not present at the " +"command line::" msgstr "" -#: ../../library/argparse.rst:967 +#: ../../library/argparse.rst:969 msgid "" "If the ``default`` value is a string, the parser parses the value as if it " "were a command-line argument. In particular, the parser applies any type_ " -"conversion argument, if provided, before setting the attribute on the " -":class:`Namespace` return value. Otherwise, the parser uses the value as " -"is::" +"conversion argument, if provided, before setting the attribute on the :class:" +"`Namespace` return value. Otherwise, the parser uses the value as is::" msgstr "" -#: ../../library/argparse.rst:978 +#: ../../library/argparse.rst:980 msgid "" "For positional arguments with nargs_ equal to ``?`` or ``*``, the " "``default`` value is used when no command-line argument was present::" msgstr "" -#: ../../library/argparse.rst:989 +#: ../../library/argparse.rst:991 msgid "" "Providing ``default=argparse.SUPPRESS`` causes no attribute to be added if " "the command-line argument was not present::" msgstr "" -#: ../../library/argparse.rst:1001 +#: ../../library/argparse.rst:1003 msgid "type" msgstr "tipo" -#: ../../library/argparse.rst:1003 +#: ../../library/argparse.rst:1005 msgid "" "By default, :class:`ArgumentParser` objects read command-line arguments in " "as simple strings. However, quite often the command-line string should " -"instead be interpreted as another type, like a :class:`float` or " -":class:`int`. The ``type`` keyword argument of " -":meth:`~ArgumentParser.add_argument` allows any necessary type-checking and " -"type conversions to be performed. Common built-in types and functions can " -"be used directly as the value of the ``type`` argument::" +"instead be interpreted as another type, like a :class:`float` or :class:" +"`int`. The ``type`` keyword argument of :meth:`~ArgumentParser." +"add_argument` allows any necessary type-checking and type conversions to be " +"performed. Common built-in types and functions can be used directly as the " +"value of the ``type`` argument::" msgstr "" -#: ../../library/argparse.rst:1016 +#: ../../library/argparse.rst:1018 msgid "" -"See the section on the default_ keyword argument for information on when the" -" ``type`` argument is applied to default arguments." +"See the section on the default_ keyword argument for information on when the " +"``type`` argument is applied to default arguments." msgstr "" -#: ../../library/argparse.rst:1019 +#: ../../library/argparse.rst:1021 msgid "" "To ease the use of various types of files, the argparse module provides the " "factory FileType which takes the ``mode=``, ``bufsize=``, ``encoding=`` and " @@ -922,27 +922,27 @@ msgid "" "``FileType('w')`` can be used to create a writable file::" msgstr "" -#: ../../library/argparse.rst:1029 +#: ../../library/argparse.rst:1031 msgid "" "``type=`` can take any callable that takes a single string argument and " "returns the converted value::" msgstr "" -#: ../../library/argparse.rst:1048 +#: ../../library/argparse.rst:1050 msgid "" "The choices_ keyword argument may be more convenient for type checkers that " "simply check against a range of values::" msgstr "" -#: ../../library/argparse.rst:1059 +#: ../../library/argparse.rst:1061 msgid "See the choices_ section for more details." msgstr "" -#: ../../library/argparse.rst:1063 +#: ../../library/argparse.rst:1065 msgid "choices" msgstr "choices" -#: ../../library/argparse.rst:1065 +#: ../../library/argparse.rst:1067 msgid "" "Some command-line arguments should be selected from a restricted set of " "values. These can be handled by passing a container object as the *choices* " @@ -951,25 +951,25 @@ msgid "" "be displayed if the argument was not one of the acceptable values::" msgstr "" -#: ../../library/argparse.rst:1080 +#: ../../library/argparse.rst:1082 msgid "" "Note that inclusion in the *choices* container is checked after any type_ " -"conversions have been performed, so the type of the objects in the *choices*" -" container should match the type_ specified::" +"conversions have been performed, so the type of the objects in the *choices* " +"container should match the type_ specified::" msgstr "" -#: ../../library/argparse.rst:1092 +#: ../../library/argparse.rst:1094 msgid "" "Any object that supports the ``in`` operator can be passed as the *choices* " "value, so :class:`dict` objects, :class:`set` objects, custom containers, " "etc. are all supported." msgstr "" -#: ../../library/argparse.rst:1098 +#: ../../library/argparse.rst:1100 msgid "required" msgstr "required" -#: ../../library/argparse.rst:1100 +#: ../../library/argparse.rst:1102 msgid "" "In general, the :mod:`argparse` module assumes that flags like ``-f`` and " "``--bar`` indicate *optional* arguments, which can always be omitted at the " @@ -977,24 +977,24 @@ msgid "" "the ``required=`` keyword argument to :meth:`~ArgumentParser.add_argument`::" msgstr "" -#: ../../library/argparse.rst:1113 +#: ../../library/argparse.rst:1115 msgid "" -"As the example shows, if an option is marked as ``required``, " -":meth:`~ArgumentParser.parse_args` will report an error if that option is " -"not present at the command line." +"As the example shows, if an option is marked as ``required``, :meth:" +"`~ArgumentParser.parse_args` will report an error if that option is not " +"present at the command line." msgstr "" -#: ../../library/argparse.rst:1119 +#: ../../library/argparse.rst:1121 msgid "" "Required options are generally considered bad form because users expect " "*options* to be *optional*, and thus they should be avoided when possible." msgstr "" -#: ../../library/argparse.rst:1124 +#: ../../library/argparse.rst:1126 msgid "help" msgstr "help" -#: ../../library/argparse.rst:1126 +#: ../../library/argparse.rst:1128 msgid "" "The ``help`` value is a string containing a brief description of the " "argument. When a user requests help (usually by using ``-h`` or ``--help`` " @@ -1002,76 +1002,76 @@ msgid "" "each argument::" msgstr "" -#: ../../library/argparse.rst:1146 +#: ../../library/argparse.rst:1148 msgid "" "The ``help`` strings can include various format specifiers to avoid " "repetition of things like the program name or the argument default_. The " -"available specifiers include the program name, ``%(prog)s`` and most keyword" -" arguments to :meth:`~ArgumentParser.add_argument`, e.g. ``%(default)s``, " -"``%(type)s``, etc.::" +"available specifiers include the program name, ``%(prog)s`` and most keyword " +"arguments to :meth:`~ArgumentParser.add_argument`, e.g. ``%(default)s``, ``" +"%(type)s``, etc.::" msgstr "" -#: ../../library/argparse.rst:1163 +#: ../../library/argparse.rst:1165 msgid "" "As the help string supports %-formatting, if you want a literal ``%`` to " "appear in the help string, you must escape it as ``%%``." msgstr "" -#: ../../library/argparse.rst:1166 +#: ../../library/argparse.rst:1168 msgid "" ":mod:`argparse` supports silencing the help entry for certain options, by " "setting the ``help`` value to ``argparse.SUPPRESS``::" msgstr "" -#: ../../library/argparse.rst:1179 +#: ../../library/argparse.rst:1181 msgid "metavar" msgstr "metavar" -#: ../../library/argparse.rst:1181 +#: ../../library/argparse.rst:1183 msgid "" "When :class:`ArgumentParser` generates help messages, it needs some way to " -"refer to each expected argument. By default, ArgumentParser objects use the" -" dest_ value as the \"name\" of each object. By default, for positional " +"refer to each expected argument. By default, ArgumentParser objects use the " +"dest_ value as the \"name\" of each object. By default, for positional " "argument actions, the dest_ value is used directly, and for optional " "argument actions, the dest_ value is uppercased. So, a single positional " "argument with ``dest='bar'`` will be referred to as ``bar``. A single " -"optional argument ``--foo`` that should be followed by a single command-line" -" argument will be referred to as ``FOO``. An example::" +"optional argument ``--foo`` that should be followed by a single command-line " +"argument will be referred to as ``FOO``. An example::" msgstr "" -#: ../../library/argparse.rst:1205 +#: ../../library/argparse.rst:1207 msgid "An alternative name can be specified with ``metavar``::" msgstr "" -#: ../../library/argparse.rst:1222 +#: ../../library/argparse.rst:1224 msgid "" "Note that ``metavar`` only changes the *displayed* name - the name of the " "attribute on the :meth:`~ArgumentParser.parse_args` object is still " "determined by the dest_ value." msgstr "" -#: ../../library/argparse.rst:1226 +#: ../../library/argparse.rst:1228 msgid "" "Different values of ``nargs`` may cause the metavar to be used multiple " "times. Providing a tuple to ``metavar`` specifies a different display for " "each of the arguments::" msgstr "" -#: ../../library/argparse.rst:1243 +#: ../../library/argparse.rst:1245 msgid "dest" msgstr "dest" -#: ../../library/argparse.rst:1245 +#: ../../library/argparse.rst:1247 msgid "" "Most :class:`ArgumentParser` actions add some value as an attribute of the " "object returned by :meth:`~ArgumentParser.parse_args`. The name of this " -"attribute is determined by the ``dest`` keyword argument of " -":meth:`~ArgumentParser.add_argument`. For positional argument actions, " -"``dest`` is normally supplied as the first argument to " -":meth:`~ArgumentParser.add_argument`::" +"attribute is determined by the ``dest`` keyword argument of :meth:" +"`~ArgumentParser.add_argument`. For positional argument actions, ``dest`` " +"is normally supplied as the first argument to :meth:`~ArgumentParser." +"add_argument`::" msgstr "" -#: ../../library/argparse.rst:1257 +#: ../../library/argparse.rst:1259 msgid "" "For optional argument actions, the value of ``dest`` is normally inferred " "from the option strings. :class:`ArgumentParser` generates the value of " @@ -1083,22 +1083,22 @@ msgid "" "below illustrate this behavior::" msgstr "" -#: ../../library/argparse.rst:1274 +#: ../../library/argparse.rst:1276 msgid "``dest`` allows a custom attribute name to be provided::" msgstr "" -#: ../../library/argparse.rst:1282 +#: ../../library/argparse.rst:1284 msgid "Action classes" msgstr "" -#: ../../library/argparse.rst:1284 +#: ../../library/argparse.rst:1286 msgid "" -"Action classes implement the Action API, a callable which returns a callable" -" which processes arguments from the command-line. Any object which follows " +"Action classes implement the Action API, a callable which returns a callable " +"which processes arguments from the command-line. Any object which follows " "this API may be passed as the ``action`` parameter to :meth:`add_argument`." msgstr "" -#: ../../library/argparse.rst:1293 +#: ../../library/argparse.rst:1295 msgid "" "Action objects are used by an ArgumentParser to represent the information " "needed to parse a single argument from one or more strings from the command " @@ -1107,127 +1107,127 @@ msgid "" "the ``action`` itself." msgstr "" -#: ../../library/argparse.rst:1299 +#: ../../library/argparse.rst:1301 msgid "" "Instances of Action (or return value of any callable to the ``action`` " -"parameter) should have attributes \"dest\", \"option_strings\", \"default\"," -" \"type\", \"required\", \"help\", etc. defined. The easiest way to ensure " +"parameter) should have attributes \"dest\", \"option_strings\", \"default\", " +"\"type\", \"required\", \"help\", etc. defined. The easiest way to ensure " "these attributes are defined is to call ``Action.__init__``." msgstr "" -#: ../../library/argparse.rst:1304 +#: ../../library/argparse.rst:1306 msgid "" "Action instances should be callable, so subclasses must override the " "``__call__`` method, which should accept four parameters:" msgstr "" -#: ../../library/argparse.rst:1307 +#: ../../library/argparse.rst:1309 msgid "``parser`` - The ArgumentParser object which contains this action." msgstr "" -#: ../../library/argparse.rst:1309 +#: ../../library/argparse.rst:1311 msgid "" -"``namespace`` - The :class:`Namespace` object that will be returned by " -":meth:`~ArgumentParser.parse_args`. Most actions add an attribute to this " -"object using :func:`setattr`." +"``namespace`` - The :class:`Namespace` object that will be returned by :meth:" +"`~ArgumentParser.parse_args`. Most actions add an attribute to this object " +"using :func:`setattr`." msgstr "" -#: ../../library/argparse.rst:1313 +#: ../../library/argparse.rst:1315 msgid "" "``values`` - The associated command-line arguments, with any type " "conversions applied. Type conversions are specified with the type_ keyword " "argument to :meth:`~ArgumentParser.add_argument`." msgstr "" -#: ../../library/argparse.rst:1317 +#: ../../library/argparse.rst:1319 msgid "" "``option_string`` - The option string that was used to invoke this action. " -"The ``option_string`` argument is optional, and will be absent if the action" -" is associated with a positional argument." +"The ``option_string`` argument is optional, and will be absent if the action " +"is associated with a positional argument." msgstr "" -#: ../../library/argparse.rst:1321 +#: ../../library/argparse.rst:1323 msgid "" "The ``__call__`` method may perform arbitrary actions, but will typically " "set attributes on the ``namespace`` based on ``dest`` and ``values``." msgstr "" -#: ../../library/argparse.rst:1326 +#: ../../library/argparse.rst:1328 msgid "The parse_args() method" msgstr "" -#: ../../library/argparse.rst:1330 +#: ../../library/argparse.rst:1332 msgid "" "Convert argument strings to objects and assign them as attributes of the " "namespace. Return the populated namespace." msgstr "" -#: ../../library/argparse.rst:1333 +#: ../../library/argparse.rst:1335 msgid "" "Previous calls to :meth:`add_argument` determine exactly what objects are " -"created and how they are assigned. See the documentation for " -":meth:`add_argument` for details." +"created and how they are assigned. See the documentation for :meth:" +"`add_argument` for details." msgstr "" -#: ../../library/argparse.rst:1337 +#: ../../library/argparse.rst:1339 msgid "" -"args_ - List of strings to parse. The default is taken from " -":data:`sys.argv`." +"args_ - List of strings to parse. The default is taken from :data:`sys." +"argv`." msgstr "" -#: ../../library/argparse.rst:1340 +#: ../../library/argparse.rst:1342 msgid "" -"namespace_ - An object to take the attributes. The default is a new empty " -":class:`Namespace` object." +"namespace_ - An object to take the attributes. The default is a new empty :" +"class:`Namespace` object." msgstr "" -#: ../../library/argparse.rst:1345 +#: ../../library/argparse.rst:1347 msgid "Option value syntax" msgstr "" -#: ../../library/argparse.rst:1347 +#: ../../library/argparse.rst:1349 msgid "" "The :meth:`~ArgumentParser.parse_args` method supports several ways of " "specifying the value of an option (if it takes one). In the simplest case, " "the option and its value are passed as two separate arguments::" msgstr "" -#: ../../library/argparse.rst:1359 +#: ../../library/argparse.rst:1361 msgid "" "For long options (options with names longer than a single character), the " -"option and value can also be passed as a single command-line argument, using" -" ``=`` to separate them::" +"option and value can also be passed as a single command-line argument, using " +"``=`` to separate them::" msgstr "" -#: ../../library/argparse.rst:1366 +#: ../../library/argparse.rst:1368 msgid "" "For short options (options only one character long), the option and its " "value can be concatenated::" msgstr "" -#: ../../library/argparse.rst:1372 +#: ../../library/argparse.rst:1374 msgid "" "Several short options can be joined together, using only a single ``-`` " "prefix, as long as only the last option (or none of them) requires a value::" msgstr "" -#: ../../library/argparse.rst:1384 +#: ../../library/argparse.rst:1386 msgid "Invalid arguments" msgstr "Argumentos inválidos" -#: ../../library/argparse.rst:1386 +#: ../../library/argparse.rst:1388 msgid "" "While parsing the command line, :meth:`~ArgumentParser.parse_args` checks " -"for a variety of errors, including ambiguous options, invalid types, invalid" -" options, wrong number of positional arguments, etc. When it encounters " -"such an error, it exits and prints the error along with a usage message::" +"for a variety of errors, including ambiguous options, invalid types, invalid " +"options, wrong number of positional arguments, etc. When it encounters such " +"an error, it exits and prints the error along with a usage message::" msgstr "" -#: ../../library/argparse.rst:1412 +#: ../../library/argparse.rst:1414 msgid "Arguments containing ``-``" msgstr "Argumentos contendo ``-``" -#: ../../library/argparse.rst:1414 +#: ../../library/argparse.rst:1416 msgid "" "The :meth:`~ArgumentParser.parse_args` method attempts to give errors " "whenever the user has clearly made a mistake, but some situations are " @@ -1239,7 +1239,7 @@ msgid "" "negative numbers::" msgstr "" -#: ../../library/argparse.rst:1452 +#: ../../library/argparse.rst:1454 msgid "" "If you have positional arguments that must begin with ``-`` and don't look " "like negative numbers, you can insert the pseudo-argument ``'--'`` which " @@ -1247,28 +1247,28 @@ msgid "" "positional argument::" msgstr "" -#: ../../library/argparse.rst:1463 +#: ../../library/argparse.rst:1465 msgid "Argument abbreviations (prefix matching)" msgstr "" -#: ../../library/argparse.rst:1465 +#: ../../library/argparse.rst:1467 msgid "" "The :meth:`~ArgumentParser.parse_args` method :ref:`by default " "` allows long options to be abbreviated to a prefix, if the " "abbreviation is unambiguous (the prefix matches a unique option)::" msgstr "" -#: ../../library/argparse.rst:1480 +#: ../../library/argparse.rst:1482 msgid "" -"An error is produced for arguments that could produce more than one options." -" This feature can be disabled by setting :ref:`allow_abbrev` to ``False``." +"An error is produced for arguments that could produce more than one options. " +"This feature can be disabled by setting :ref:`allow_abbrev` to ``False``." msgstr "" -#: ../../library/argparse.rst:1486 +#: ../../library/argparse.rst:1488 msgid "Beyond ``sys.argv``" msgstr "Além do ``sys.argv``" -#: ../../library/argparse.rst:1488 +#: ../../library/argparse.rst:1490 msgid "" "Sometimes it may be useful to have an ArgumentParser parse arguments other " "than those of :data:`sys.argv`. This can be accomplished by passing a list " @@ -1276,116 +1276,117 @@ msgid "" "testing at the interactive prompt::" msgstr "" -#: ../../library/argparse.rst:1508 +#: ../../library/argparse.rst:1510 msgid "The Namespace object" msgstr "O objeto Namespace" -#: ../../library/argparse.rst:1512 +#: ../../library/argparse.rst:1514 msgid "" -"Simple class used by default by :meth:`~ArgumentParser.parse_args` to create" -" an object holding attributes and return it." +"Simple class used by default by :meth:`~ArgumentParser.parse_args` to create " +"an object holding attributes and return it." msgstr "" -#: ../../library/argparse.rst:1515 +#: ../../library/argparse.rst:1517 msgid "" "This class is deliberately simple, just an :class:`object` subclass with a " "readable string representation. If you prefer to have dict-like view of the " "attributes, you can use the standard Python idiom, :func:`vars`::" msgstr "" -#: ../../library/argparse.rst:1525 +#: ../../library/argparse.rst:1527 msgid "" "It may also be useful to have an :class:`ArgumentParser` assign attributes " -"to an already existing object, rather than a new :class:`Namespace` object." -" This can be achieved by specifying the ``namespace=`` keyword argument::" +"to an already existing object, rather than a new :class:`Namespace` object. " +"This can be achieved by specifying the ``namespace=`` keyword argument::" msgstr "" -#: ../../library/argparse.rst:1541 +#: ../../library/argparse.rst:1543 msgid "Other utilities" msgstr "" -#: ../../library/argparse.rst:1544 +#: ../../library/argparse.rst:1546 msgid "Sub-commands" msgstr "Sub-comandos" -#: ../../library/argparse.rst:1551 +#: ../../library/argparse.rst:1553 msgid "" "Many programs split up their functionality into a number of sub-commands, " "for example, the ``svn`` program can invoke sub-commands like ``svn " "checkout``, ``svn update``, and ``svn commit``. Splitting up functionality " "this way can be a particularly good idea when a program performs several " -"different functions which require different kinds of command-line arguments." -" :class:`ArgumentParser` supports the creation of such sub-commands with the" -" :meth:`add_subparsers` method. The :meth:`add_subparsers` method is " -"normally called with no arguments and returns a special action object. This" -" object has a single method, :meth:`~ArgumentParser.add_parser`, which takes" -" a command name and any :class:`ArgumentParser` constructor arguments, and " -"returns an :class:`ArgumentParser` object that can be modified as usual." +"different functions which require different kinds of command-line " +"arguments. :class:`ArgumentParser` supports the creation of such sub-" +"commands with the :meth:`add_subparsers` method. The :meth:`add_subparsers` " +"method is normally called with no arguments and returns a special action " +"object. This object has a single method, :meth:`~ArgumentParser." +"add_parser`, which takes a command name and any :class:`ArgumentParser` " +"constructor arguments, and returns an :class:`ArgumentParser` object that " +"can be modified as usual." msgstr "" -#: ../../library/argparse.rst:1563 +#: ../../library/argparse.rst:1565 msgid "Description of parameters:" msgstr "Descrição de parâmetros:" -#: ../../library/argparse.rst:1565 +#: ../../library/argparse.rst:1567 msgid "" "title - title for the sub-parser group in help output; by default " "\"subcommands\" if description is provided, otherwise uses title for " "positional arguments" msgstr "" -#: ../../library/argparse.rst:1569 +#: ../../library/argparse.rst:1571 msgid "" "description - description for the sub-parser group in help output, by " "default ``None``" msgstr "" -#: ../../library/argparse.rst:1572 +#: ../../library/argparse.rst:1574 msgid "" "prog - usage information that will be displayed with sub-command help, by " "default the name of the program and any positional arguments before the " "subparser argument" msgstr "" -#: ../../library/argparse.rst:1576 +#: ../../library/argparse.rst:1578 msgid "" "parser_class - class which will be used to create sub-parser instances, by " "default the class of the current parser (e.g. ArgumentParser)" msgstr "" -#: ../../library/argparse.rst:1579 +#: ../../library/argparse.rst:1581 msgid "" "action_ - the basic type of action to be taken when this argument is " "encountered at the command line" msgstr "" -#: ../../library/argparse.rst:1582 +#: ../../library/argparse.rst:1584 msgid "" "dest_ - name of the attribute under which sub-command name will be stored; " "by default ``None`` and no value is stored" msgstr "" -#: ../../library/argparse.rst:1585 +#: ../../library/argparse.rst:1587 msgid "" "required_ - Whether or not a subcommand must be provided, by default " "``False`` (added in 3.7)" msgstr "" -#: ../../library/argparse.rst:1588 +#: ../../library/argparse.rst:1590 msgid "help_ - help for sub-parser group in help output, by default ``None``" msgstr "" -#: ../../library/argparse.rst:1590 +#: ../../library/argparse.rst:1592 msgid "" "metavar_ - string presenting available sub-commands in help; by default it " "is ``None`` and presents sub-commands in form {cmd1, cmd2, ..}" msgstr "" -#: ../../library/argparse.rst:1593 +#: ../../library/argparse.rst:1595 msgid "Some example usage::" msgstr "Alguns exemplos de uso:" -#: ../../library/argparse.rst:1614 +#: ../../library/argparse.rst:1616 msgid "" "Note that the object returned by :meth:`parse_args` will only contain " "attributes for the main parser and the subparser that was selected by the " @@ -1395,30 +1396,30 @@ msgid "" "``baz`` attributes are present." msgstr "" -#: ../../library/argparse.rst:1621 +#: ../../library/argparse.rst:1623 msgid "" "Similarly, when a help message is requested from a subparser, only the help " "for that particular parser will be printed. The help message will not " "include parent parser or sibling parser messages. (A help message for each " -"subparser command, however, can be given by supplying the ``help=`` argument" -" to :meth:`add_parser` as above.)" +"subparser command, however, can be given by supplying the ``help=`` argument " +"to :meth:`add_parser` as above.)" msgstr "" -#: ../../library/argparse.rst:1657 +#: ../../library/argparse.rst:1659 msgid "" "The :meth:`add_subparsers` method also supports ``title`` and " "``description`` keyword arguments. When either is present, the subparser's " "commands will appear in their own group in the help output. For example::" msgstr "" -#: ../../library/argparse.rst:1678 +#: ../../library/argparse.rst:1680 msgid "" "Furthermore, ``add_parser`` supports an additional ``aliases`` argument, " "which allows multiple strings to refer to the same subparser. This example, " "like ``svn``, aliases ``co`` as a shorthand for ``checkout``::" msgstr "" -#: ../../library/argparse.rst:1689 +#: ../../library/argparse.rst:1691 msgid "" "One particularly effective way of handling sub-commands is to combine the " "use of the :meth:`add_subparsers` method with calls to :meth:`set_defaults` " @@ -1426,7 +1427,7 @@ msgid "" "example::" msgstr "" -#: ../../library/argparse.rst:1726 +#: ../../library/argparse.rst:1728 msgid "" "This way, you can let :meth:`parse_args` do the job of calling the " "appropriate function after argument parsing is complete. Associating " @@ -1436,169 +1437,168 @@ msgid "" "argument to the :meth:`add_subparsers` call will work::" msgstr "" -#: ../../library/argparse.rst:1742 +#: ../../library/argparse.rst:1744 msgid "New *required* keyword argument." msgstr "" -#: ../../library/argparse.rst:1747 +#: ../../library/argparse.rst:1749 msgid "FileType objects" msgstr "Objetos FileType" -#: ../../library/argparse.rst:1751 +#: ../../library/argparse.rst:1753 msgid "" -"The :class:`FileType` factory creates objects that can be passed to the type" -" argument of :meth:`ArgumentParser.add_argument`. Arguments that have " -":class:`FileType` objects as their type will open command-line arguments as " -"files with the requested modes, buffer sizes, encodings and error handling " -"(see the :func:`open` function for more details)::" +"The :class:`FileType` factory creates objects that can be passed to the type " +"argument of :meth:`ArgumentParser.add_argument`. Arguments that have :class:" +"`FileType` objects as their type will open command-line arguments as files " +"with the requested modes, buffer sizes, encodings and error handling (see " +"the :func:`open` function for more details)::" msgstr "" -#: ../../library/argparse.rst:1763 +#: ../../library/argparse.rst:1765 msgid "" "FileType objects understand the pseudo-argument ``'-'`` and automatically " "convert this into ``sys.stdin`` for readable :class:`FileType` objects and " "``sys.stdout`` for writable :class:`FileType` objects::" msgstr "" -#: ../../library/argparse.rst:1772 +#: ../../library/argparse.rst:1774 msgid "The *encodings* and *errors* keyword arguments." msgstr "" -#: ../../library/argparse.rst:1777 +#: ../../library/argparse.rst:1779 msgid "Argument groups" msgstr "Grupos de Argumentos" -#: ../../library/argparse.rst:1781 +#: ../../library/argparse.rst:1783 msgid "" "By default, :class:`ArgumentParser` groups command-line arguments into " "\"positional arguments\" and \"optional arguments\" when displaying help " "messages. When there is a better conceptual grouping of arguments than this " -"default one, appropriate groups can be created using the " -":meth:`add_argument_group` method::" +"default one, appropriate groups can be created using the :meth:" +"`add_argument_group` method::" msgstr "" -#: ../../library/argparse.rst:1798 +#: ../../library/argparse.rst:1800 msgid "" -"The :meth:`add_argument_group` method returns an argument group object which" -" has an :meth:`~ArgumentParser.add_argument` method just like a regular " -":class:`ArgumentParser`. When an argument is added to the group, the parser" -" treats it just like a normal argument, but displays the argument in a " +"The :meth:`add_argument_group` method returns an argument group object which " +"has an :meth:`~ArgumentParser.add_argument` method just like a regular :" +"class:`ArgumentParser`. When an argument is added to the group, the parser " +"treats it just like a normal argument, but displays the argument in a " "separate group for help messages. The :meth:`add_argument_group` method " "accepts *title* and *description* arguments which can be used to customize " "this display::" msgstr "" -#: ../../library/argparse.rst:1824 +#: ../../library/argparse.rst:1826 msgid "" "Note that any arguments not in your user-defined groups will end up back in " "the usual \"positional arguments\" and \"optional arguments\" sections." msgstr "" -#: ../../library/argparse.rst:1829 +#: ../../library/argparse.rst:1831 msgid "Mutual exclusion" msgstr "Exclusão Mútua" -#: ../../library/argparse.rst:1833 +#: ../../library/argparse.rst:1835 msgid "" "Create a mutually exclusive group. :mod:`argparse` will make sure that only " "one of the arguments in the mutually exclusive group was present on the " "command line::" msgstr "" -#: ../../library/argparse.rst:1849 +#: ../../library/argparse.rst:1851 msgid "" "The :meth:`add_mutually_exclusive_group` method also accepts a *required* " "argument, to indicate that at least one of the mutually exclusive arguments " "is required::" msgstr "" -#: ../../library/argparse.rst:1861 +#: ../../library/argparse.rst:1863 msgid "" "Note that currently mutually exclusive argument groups do not support the " -"*title* and *description* arguments of " -":meth:`~ArgumentParser.add_argument_group`." +"*title* and *description* arguments of :meth:`~ArgumentParser." +"add_argument_group`." msgstr "" -#: ../../library/argparse.rst:1867 +#: ../../library/argparse.rst:1869 msgid "Parser defaults" msgstr "" -#: ../../library/argparse.rst:1871 +#: ../../library/argparse.rst:1873 msgid "" -"Most of the time, the attributes of the object returned by " -":meth:`parse_args` will be fully determined by inspecting the command-line " +"Most of the time, the attributes of the object returned by :meth:" +"`parse_args` will be fully determined by inspecting the command-line " "arguments and the argument actions. :meth:`set_defaults` allows some " "additional attributes that are determined without any inspection of the " "command line to be added::" msgstr "" -#: ../../library/argparse.rst:1883 +#: ../../library/argparse.rst:1885 msgid "" "Note that parser-level defaults always override argument-level defaults::" msgstr "" -#: ../../library/argparse.rst:1891 +#: ../../library/argparse.rst:1893 msgid "" "Parser-level defaults can be particularly useful when working with multiple " "parsers. See the :meth:`~ArgumentParser.add_subparsers` method for an " "example of this type." msgstr "" -#: ../../library/argparse.rst:1897 +#: ../../library/argparse.rst:1899 msgid "" -"Get the default value for a namespace attribute, as set by either " -":meth:`~ArgumentParser.add_argument` or by " -":meth:`~ArgumentParser.set_defaults`::" +"Get the default value for a namespace attribute, as set by either :meth:" +"`~ArgumentParser.add_argument` or by :meth:`~ArgumentParser.set_defaults`::" msgstr "" -#: ../../library/argparse.rst:1908 +#: ../../library/argparse.rst:1910 msgid "Printing help" msgstr "Imprimindo a ajuda" -#: ../../library/argparse.rst:1910 +#: ../../library/argparse.rst:1912 msgid "" "In most typical applications, :meth:`~ArgumentParser.parse_args` will take " "care of formatting and printing any usage or error messages. However, " "several formatting methods are available:" msgstr "" -#: ../../library/argparse.rst:1916 +#: ../../library/argparse.rst:1918 msgid "" "Print a brief description of how the :class:`ArgumentParser` should be " "invoked on the command line. If *file* is ``None``, :data:`sys.stdout` is " "assumed." msgstr "" -#: ../../library/argparse.rst:1922 +#: ../../library/argparse.rst:1924 msgid "" "Print a help message, including the program usage and information about the " "arguments registered with the :class:`ArgumentParser`. If *file* is " "``None``, :data:`sys.stdout` is assumed." msgstr "" -#: ../../library/argparse.rst:1926 +#: ../../library/argparse.rst:1928 msgid "" -"There are also variants of these methods that simply return a string instead" -" of printing it:" +"There are also variants of these methods that simply return a string instead " +"of printing it:" msgstr "" -#: ../../library/argparse.rst:1931 +#: ../../library/argparse.rst:1933 msgid "" -"Return a string containing a brief description of how the " -":class:`ArgumentParser` should be invoked on the command line." +"Return a string containing a brief description of how the :class:" +"`ArgumentParser` should be invoked on the command line." msgstr "" -#: ../../library/argparse.rst:1936 +#: ../../library/argparse.rst:1938 msgid "" "Return a string containing a help message, including the program usage and " "information about the arguments registered with the :class:`ArgumentParser`." msgstr "" -#: ../../library/argparse.rst:1941 +#: ../../library/argparse.rst:1943 msgid "Partial parsing" msgstr "Análise parcial" -#: ../../library/argparse.rst:1945 +#: ../../library/argparse.rst:1947 msgid "" "Sometimes a script may only parse a few of the command-line arguments, " "passing the remaining arguments on to another script or program. In these " @@ -1609,68 +1609,68 @@ msgid "" "remaining argument strings." msgstr "" -#: ../../library/argparse.rst:1961 +#: ../../library/argparse.rst:1963 msgid "" -":ref:`Prefix matching ` rules apply to " -":meth:`parse_known_args`. The parser may consume an option even if it's just" -" a prefix of one of its known options, instead of leaving it in the " -"remaining arguments list." +":ref:`Prefix matching ` rules apply to :meth:" +"`parse_known_args`. The parser may consume an option even if it's just a " +"prefix of one of its known options, instead of leaving it in the remaining " +"arguments list." msgstr "" -#: ../../library/argparse.rst:1968 +#: ../../library/argparse.rst:1970 msgid "Customizing file parsing" msgstr "" -#: ../../library/argparse.rst:1972 +#: ../../library/argparse.rst:1974 msgid "" -"Arguments that are read from a file (see the *fromfile_prefix_chars* keyword" -" argument to the :class:`ArgumentParser` constructor) are read one argument " +"Arguments that are read from a file (see the *fromfile_prefix_chars* keyword " +"argument to the :class:`ArgumentParser` constructor) are read one argument " "per line. :meth:`convert_arg_line_to_args` can be overridden for fancier " "reading." msgstr "" -#: ../../library/argparse.rst:1977 +#: ../../library/argparse.rst:1979 msgid "" "This method takes a single argument *arg_line* which is a string read from " "the argument file. It returns a list of arguments parsed from this string. " "The method is called once per line read from the argument file, in order." msgstr "" -#: ../../library/argparse.rst:1981 +#: ../../library/argparse.rst:1983 msgid "" "A useful override of this method is one that treats each space-separated " "word as an argument. The following example demonstrates how to do this::" msgstr "" -#: ../../library/argparse.rst:1990 +#: ../../library/argparse.rst:1992 msgid "Exiting methods" msgstr "Métodos existentes" -#: ../../library/argparse.rst:1994 +#: ../../library/argparse.rst:1996 msgid "" -"This method terminates the program, exiting with the specified *status* and," -" if given, it prints a *message* before that." +"This method terminates the program, exiting with the specified *status* and, " +"if given, it prints a *message* before that." msgstr "" -#: ../../library/argparse.rst:1999 +#: ../../library/argparse.rst:2001 msgid "" "This method prints a usage message including the *message* to the standard " "error and terminates the program with a status code of 2." msgstr "" -#: ../../library/argparse.rst:2004 +#: ../../library/argparse.rst:2006 msgid "Intermixed parsing" msgstr "" -#: ../../library/argparse.rst:2009 +#: ../../library/argparse.rst:2011 msgid "" -"A number of Unix commands allow the user to intermix optional arguments with" -" positional arguments. The :meth:`~ArgumentParser.parse_intermixed_args` " -"and :meth:`~ArgumentParser.parse_known_intermixed_args` methods support this" -" parsing style." +"A number of Unix commands allow the user to intermix optional arguments with " +"positional arguments. The :meth:`~ArgumentParser.parse_intermixed_args` " +"and :meth:`~ArgumentParser.parse_known_intermixed_args` methods support this " +"parsing style." msgstr "" -#: ../../library/argparse.rst:2014 +#: ../../library/argparse.rst:2016 msgid "" "These parsers do not support all the argparse features, and will raise " "exceptions if unsupported features are used. In particular, subparsers, " @@ -1678,28 +1678,27 @@ msgid "" "optionals and positionals are not supported." msgstr "" -#: ../../library/argparse.rst:2019 +#: ../../library/argparse.rst:2021 msgid "" -"The following example shows the difference between " -":meth:`~ArgumentParser.parse_known_args` and " -":meth:`~ArgumentParser.parse_intermixed_args`: the former returns ``['2', " -"'3']`` as unparsed arguments, while the latter collects all the positionals " -"into ``rest``. ::" +"The following example shows the difference between :meth:`~ArgumentParser." +"parse_known_args` and :meth:`~ArgumentParser.parse_intermixed_args`: the " +"former returns ``['2', '3']`` as unparsed arguments, while the latter " +"collects all the positionals into ``rest``. ::" msgstr "" -#: ../../library/argparse.rst:2034 +#: ../../library/argparse.rst:2036 msgid "" -":meth:`~ArgumentParser.parse_known_intermixed_args` returns a two item tuple" -" containing the populated namespace and the list of remaining argument " +":meth:`~ArgumentParser.parse_known_intermixed_args` returns a two item tuple " +"containing the populated namespace and the list of remaining argument " "strings. :meth:`~ArgumentParser.parse_intermixed_args` raises an error if " "there are any remaining unparsed argument strings." msgstr "" -#: ../../library/argparse.rst:2044 +#: ../../library/argparse.rst:2046 msgid "Upgrading optparse code" msgstr "" -#: ../../library/argparse.rst:2046 +#: ../../library/argparse.rst:2048 msgid "" "Originally, the :mod:`argparse` module had attempted to maintain " "compatibility with :mod:`optparse`. However, :mod:`optparse` was difficult " @@ -1710,88 +1709,87 @@ msgid "" "compatibility." msgstr "" -#: ../../library/argparse.rst:2053 +#: ../../library/argparse.rst:2055 msgid "" "The :mod:`argparse` module improves on the standard library :mod:`optparse` " "module in a number of ways including:" msgstr "" -#: ../../library/argparse.rst:2056 +#: ../../library/argparse.rst:2058 msgid "Handling positional arguments." msgstr "" -#: ../../library/argparse.rst:2057 +#: ../../library/argparse.rst:2059 msgid "Supporting sub-commands." msgstr "" -#: ../../library/argparse.rst:2058 +#: ../../library/argparse.rst:2060 msgid "Allowing alternative option prefixes like ``+`` and ``/``." msgstr "" -#: ../../library/argparse.rst:2059 +#: ../../library/argparse.rst:2061 msgid "Handling zero-or-more and one-or-more style arguments." msgstr "" -#: ../../library/argparse.rst:2060 +#: ../../library/argparse.rst:2062 msgid "Producing more informative usage messages." msgstr "" -#: ../../library/argparse.rst:2061 +#: ../../library/argparse.rst:2063 msgid "Providing a much simpler interface for custom ``type`` and ``action``." msgstr "" -#: ../../library/argparse.rst:2063 +#: ../../library/argparse.rst:2065 msgid "A partial upgrade path from :mod:`optparse` to :mod:`argparse`:" msgstr "" -#: ../../library/argparse.rst:2065 +#: ../../library/argparse.rst:2067 msgid "" -"Replace all :meth:`optparse.OptionParser.add_option` calls with " -":meth:`ArgumentParser.add_argument` calls." +"Replace all :meth:`optparse.OptionParser.add_option` calls with :meth:" +"`ArgumentParser.add_argument` calls." msgstr "" -#: ../../library/argparse.rst:2068 +#: ../../library/argparse.rst:2070 msgid "" -"Replace ``(options, args) = parser.parse_args()`` with ``args = " -"parser.parse_args()`` and add additional :meth:`ArgumentParser.add_argument`" -" calls for the positional arguments. Keep in mind that what was previously " -"called ``options``, now in the :mod:`argparse` context is called ``args``." +"Replace ``(options, args) = parser.parse_args()`` with ``args = parser." +"parse_args()`` and add additional :meth:`ArgumentParser.add_argument` calls " +"for the positional arguments. Keep in mind that what was previously called " +"``options``, now in the :mod:`argparse` context is called ``args``." msgstr "" -#: ../../library/argparse.rst:2073 +#: ../../library/argparse.rst:2075 msgid "" -"Replace :meth:`optparse.OptionParser.disable_interspersed_args` by using " -":meth:`~ArgumentParser.parse_intermixed_args` instead of " -":meth:`~ArgumentParser.parse_args`." +"Replace :meth:`optparse.OptionParser.disable_interspersed_args` by using :" +"meth:`~ArgumentParser.parse_intermixed_args` instead of :meth:" +"`~ArgumentParser.parse_args`." msgstr "" -#: ../../library/argparse.rst:2077 +#: ../../library/argparse.rst:2079 msgid "" "Replace callback actions and the ``callback_*`` keyword arguments with " "``type`` or ``action`` arguments." msgstr "" -#: ../../library/argparse.rst:2080 +#: ../../library/argparse.rst:2082 msgid "" "Replace string names for ``type`` keyword arguments with the corresponding " "type objects (e.g. int, float, complex, etc)." msgstr "" -#: ../../library/argparse.rst:2083 +#: ../../library/argparse.rst:2085 msgid "" -"Replace :class:`optparse.Values` with :class:`Namespace` and " -":exc:`optparse.OptionError` and :exc:`optparse.OptionValueError` with " -":exc:`ArgumentError`." +"Replace :class:`optparse.Values` with :class:`Namespace` and :exc:`optparse." +"OptionError` and :exc:`optparse.OptionValueError` with :exc:`ArgumentError`." msgstr "" -#: ../../library/argparse.rst:2087 +#: ../../library/argparse.rst:2089 msgid "" "Replace strings with implicit arguments such as ``%default`` or ``%prog`` " "with the standard Python syntax to use dictionaries to format strings, that " "is, ``%(default)s`` and ``%(prog)s``." msgstr "" -#: ../../library/argparse.rst:2091 +#: ../../library/argparse.rst:2093 msgid "" "Replace the OptionParser constructor ``version`` argument with a call to " "``parser.add_argument('--version', action='version', version=', YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 # Juliana Karoline , 2019 # Bonifacio de Oliveira , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-23 03:16+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: Bonifacio de Oliveira , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,18 +32,18 @@ msgstr ":mod:`array`--- Arrays eficientes de valores numéricos" #: ../../library/array.rst:11 msgid "" -"This module defines an object type which can compactly represent an array of" -" basic values: characters, integers, floating point numbers. Arrays are " +"This module defines an object type which can compactly represent an array of " +"basic values: characters, integers, floating point numbers. Arrays are " "sequence types and behave very much like lists, except that the type of " "objects stored in them is constrained. The type is specified at object " -"creation time by using a :dfn:`type code`, which is a single character. The" -" following type codes are defined:" +"creation time by using a :dfn:`type code`, which is a single character. The " +"following type codes are defined:" msgstr "" "Esse módulo define um tipo de objeto que pode representar compactamente um " "array de valores básicos: caracteres, inteiros, números de ponto flutuante. " "Arrays são tipos de sequência e funcionam bem parecidamente com listas, " -"porém o tipo dos objetos armazenados é restringido. O tipo é especificado na" -" criação do objeto usando um type code, que é um único caractere. Os " +"porém o tipo dos objetos armazenados é restringido. O tipo é especificado na " +"criação do objeto usando um type code, que é um único caractere. Os " "seguintes type codes são definidos: " #: ../../library/array.rst:19 @@ -193,8 +194,7 @@ msgstr "unsigned long long" msgid "``'f'``" msgstr "``'f'``" -#: ../../library/array.rst:43 ../../library/array.rst:43 -#: ../../library/array.rst:45 +#: ../../library/array.rst:43 ../../library/array.rst:45 msgid "float" msgstr "float" @@ -212,9 +212,9 @@ msgstr "Notas:" #: ../../library/array.rst:51 msgid "" -"The ``'u'`` type code corresponds to Python's obsolete unicode character " -"(:c:type:`Py_UNICODE` which is :c:type:`wchar_t`). Depending on the " -"platform, it can be 16 bits or 32 bits." +"The ``'u'`` type code corresponds to Python's obsolete unicode character (:c:" +"type:`Py_UNICODE` which is :c:type:`wchar_t`). Depending on the platform, it " +"can be 16 bits or 32 bits." msgstr "" "O ``'u'`` corresponde ao obsoleto caractere unicode (:c:type:`Py_UNICODE` " "que é :c:type:`wchar_t`). Dependendo da plataforma, pode ser de 16 bits ou " @@ -234,8 +234,8 @@ msgid "" "can be accessed through the :attr:`itemsize` attribute." msgstr "" "A representação dos valores é definida pela arquitetura da máquina, mais " -"especificamente da implementação do C. O tamanho real pode ser acessado pelo" -" atributo :attr:`itemsize`" +"especificamente da implementação do C. O tamanho real pode ser acessado pelo " +"atributo :attr:`itemsize`" #: ../../library/array.rst:64 msgid "The module defines the following type:" @@ -253,13 +253,13 @@ msgstr "" #: ../../library/array.rst:74 msgid "" -"If given a list or string, the initializer is passed to the new array's " -":meth:`fromlist`, :meth:`frombytes`, or :meth:`fromunicode` method (see " +"If given a list or string, the initializer is passed to the new array's :" +"meth:`fromlist`, :meth:`frombytes`, or :meth:`fromunicode` method (see " "below) to add initial items to the array. Otherwise, the iterable " "initializer is passed to the :meth:`extend` method." msgstr "" -"Se passado uma lista ou string, o inicializador é passado para os métodos " -":meth:`fromlist`, :meth:`frombytes`, ou :meth:`fromunicode` (ver abaixo) do " +"Se passado uma lista ou string, o inicializador é passado para os métodos :" +"meth:`fromlist`, :meth:`frombytes`, ou :meth:`fromunicode` (ver abaixo) do " "novo array para adicionar itens iniciais ao array. Caso contrário, o " "inicializador iterável é passado para o método :meth:`extend`." @@ -269,10 +269,10 @@ msgstr "String com todos os types codes disponíveis." #: ../../library/array.rst:84 msgid "" -"Array objects support the ordinary sequence operations of indexing, slicing," -" concatenation, and multiplication. When using slice assignment, the " -"assigned value must be an array object with the same type code; in all other" -" cases, :exc:`TypeError` is raised. Array objects also implement the buffer " +"Array objects support the ordinary sequence operations of indexing, slicing, " +"concatenation, and multiplication. When using slice assignment, the " +"assigned value must be an array object with the same type code; in all other " +"cases, :exc:`TypeError` is raised. Array objects also implement the buffer " "interface, and may be used wherever :term:`bytes-like objects ` are supported." msgstr "" @@ -297,21 +297,21 @@ msgstr "Adiciona um novo item com valor *x* ao final do array." msgid "" "Return a tuple ``(address, length)`` giving the current memory address and " "the length in elements of the buffer used to hold array's contents. The " -"size of the memory buffer in bytes can be computed as " -"``array.buffer_info()[1] * array.itemsize``. This is occasionally useful " -"when working with low-level (and inherently unsafe) I/O interfaces that " -"require memory addresses, such as certain :c:func:`ioctl` operations. The " -"returned numbers are valid as long as the array exists and no length-" -"changing operations are applied to it." +"size of the memory buffer in bytes can be computed as ``array.buffer_info()" +"[1] * array.itemsize``. This is occasionally useful when working with low-" +"level (and inherently unsafe) I/O interfaces that require memory addresses, " +"such as certain :c:func:`ioctl` operations. The returned numbers are valid " +"as long as the array exists and no length-changing operations are applied to " +"it." msgstr "" -"Retorna uma tupla ``(address, length)`` com o endereço corrente da memória e" -" o tamanho em elementos do buffer usado para armazenar conteúdos do array. " -"O tamanho do buffer da memória em bytes pode ser computado como " -"``array.buffer_info()[1] * array.itemsize``. Isso é ocasionalmente útil " -"quando se está trabalhando com interfaces I/O de baixo nível (inerentemente " -"inseguras) que precisam de endereços de memória, como algumas operações " -":c:func:`ioctl`. Os números retornados são válidos enquanto o array existir " -"e nenhuma operação de alteração de tamanho for aplicada a ele." +"Retorna uma tupla ``(address, length)`` com o endereço corrente da memória e " +"o tamanho em elementos do buffer usado para armazenar conteúdos do array. O " +"tamanho do buffer da memória em bytes pode ser computado como ``array." +"buffer_info()[1] * array.itemsize``. Isso é ocasionalmente útil quando se " +"está trabalhando com interfaces I/O de baixo nível (inerentemente inseguras) " +"que precisam de endereços de memória, como algumas operações :c:func:" +"`ioctl`. Os números retornados são válidos enquanto o array existir e " +"nenhuma operação de alteração de tamanho for aplicada a ele." #: ../../library/array.rst:119 msgid "" @@ -330,8 +330,8 @@ msgstr "" #: ../../library/array.rst:128 msgid "" "\"Byteswap\" all items of the array. This is only supported for values " -"which are 1, 2, 4, or 8 bytes in size; for other types of values, " -":exc:`RuntimeError` is raised. It is useful when reading data from a file " +"which are 1, 2, 4, or 8 bytes in size; for other types of values, :exc:" +"`RuntimeError` is raised. It is useful when reading data from a file " "written on a machine with a different byte order." msgstr "" @@ -342,21 +342,20 @@ msgstr "Retorna a quantidade de ocorrências de *x* no array." #: ../../library/array.rst:141 msgid "" "Append items from *iterable* to the end of the array. If *iterable* is " -"another array, it must have *exactly* the same type code; if not, " -":exc:`TypeError` will be raised. If *iterable* is not an array, it must be " -"iterable and its elements must be the right type to be appended to the " -"array." +"another array, it must have *exactly* the same type code; if not, :exc:" +"`TypeError` will be raised. If *iterable* is not an array, it must be " +"iterable and its elements must be the right type to be appended to the array." msgstr "" -"Acrescenta os itens em *iterable* ao final do array. Se *iterable* for outro" -" array, ele deve ter *exatamente* o mesmo type code; senão, ocorrerá um " -":exc:`TypeError`. Se *iterable* não for um array, ele deve ser iterável e " -"seus elementos devem ser do tipo correto para ser acrescentado ao array, " +"Acrescenta os itens em *iterable* ao final do array. Se *iterable* for outro " +"array, ele deve ter *exatamente* o mesmo type code; senão, ocorrerá um :exc:" +"`TypeError`. Se *iterable* não for um array, ele deve ser iterável e seus " +"elementos devem ser do tipo correto para ser acrescentado ao array, " #: ../../library/array.rst:149 msgid "" "Appends items from the string, interpreting the string as an array of " -"machine values (as if it had been read from a file using the " -":meth:`fromfile` method)." +"machine values (as if it had been read from a file using the :meth:" +"`fromfile` method)." msgstr "" "Adiciona itens da string, interpretando a string como um array (como se " "tivesse sido lido de um arquivo usando o método :meth:`fromfile`)." @@ -369,23 +368,23 @@ msgstr "" #: ../../library/array.rst:158 msgid "" "Read *n* items (as machine values) from the :term:`file object` *f* and " -"append them to the end of the array. If less than *n* items are available, " -":exc:`EOFError` is raised, but the items that were available are still " +"append them to the end of the array. If less than *n* items are available, :" +"exc:`EOFError` is raised, but the items that were available are still " "inserted into the array. *f* must be a real built-in file object; something " "else with a :meth:`read` method won't do." msgstr "" #: ../../library/array.rst:167 msgid "" -"Append items from the list. This is equivalent to ``for x in list: " -"a.append(x)`` except that if there is a type error, the array is unchanged." +"Append items from the list. This is equivalent to ``for x in list: a." +"append(x)`` except that if there is a type error, the array is unchanged." msgstr "" #: ../../library/array.rst:173 msgid "Deprecated alias for :meth:`frombytes`." msgstr "Alias deprecado para :meth:`frombytes`." -#: ../../library/array.rst:178 +#: ../../library/array.rst:180 msgid "" "Extends this array with data from the given unicode string. The array must " "be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use " @@ -393,99 +392,98 @@ msgid "" "array of some other type." msgstr "" -#: ../../library/array.rst:186 +#: ../../library/array.rst:188 msgid "" "Return the smallest *i* such that *i* is the index of the first occurrence " "of *x* in the array." msgstr "" -#: ../../library/array.rst:192 +#: ../../library/array.rst:194 msgid "" "Insert a new item with value *x* in the array before position *i*. Negative " "values are treated as being relative to the end of the array." msgstr "" -#: ../../library/array.rst:198 +#: ../../library/array.rst:200 msgid "" "Removes the item with the index *i* from the array and returns it. The " "optional argument defaults to ``-1``, so that by default the last item is " "removed and returned." msgstr "" -#: ../../library/array.rst:205 +#: ../../library/array.rst:207 msgid "Remove the first occurrence of *x* from the array." msgstr "Remove a primeira ocorrência de *x* da array." -#: ../../library/array.rst:210 +#: ../../library/array.rst:212 msgid "Reverse the order of the items in the array." msgstr "Inverte a ordem dos itens na array." -#: ../../library/array.rst:215 +#: ../../library/array.rst:217 msgid "" "Convert the array to an array of machine values and return the bytes " "representation (the same sequence of bytes that would be written to a file " "by the :meth:`tofile` method.)" msgstr "" -#: ../../library/array.rst:219 +#: ../../library/array.rst:221 msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity." msgstr "" -#: ../../library/array.rst:225 +#: ../../library/array.rst:227 msgid "Write all items (as machine values) to the :term:`file object` *f*." msgstr "" -#: ../../library/array.rst:230 +#: ../../library/array.rst:232 msgid "Convert the array to an ordinary list with the same items." msgstr "Converte a array para uma lista comum com os mesmos itens." -#: ../../library/array.rst:235 +#: ../../library/array.rst:237 msgid "Deprecated alias for :meth:`tobytes`." msgstr "" -#: ../../library/array.rst:240 +#: ../../library/array.rst:244 msgid "" "Convert the array to a unicode string. The array must be a type ``'u'`` " -"array; otherwise a :exc:`ValueError` is raised. Use " -"``array.tobytes().decode(enc)`` to obtain a unicode string from an array of " -"some other type." +"array; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()." +"decode(enc)`` to obtain a unicode string from an array of some other type." msgstr "" -#: ../../library/array.rst:245 +#: ../../library/array.rst:249 msgid "" "When an array object is printed or converted to a string, it is represented " "as ``array(typecode, initializer)``. The *initializer* is omitted if the " "array is empty, otherwise it is a string if the *typecode* is ``'u'``, " "otherwise it is a list of numbers. The string is guaranteed to be able to " -"be converted back to an array with the same type and value using " -":func:`eval`, so long as the :class:`~array.array` class has been imported " -"using ``from array import array``. Examples::" +"be converted back to an array with the same type and value using :func:" +"`eval`, so long as the :class:`~array.array` class has been imported using " +"``from array import array``. Examples::" msgstr "" -#: ../../library/array.rst:262 +#: ../../library/array.rst:266 msgid "Module :mod:`struct`" msgstr "Modulo :mod:`struct`" -#: ../../library/array.rst:262 +#: ../../library/array.rst:266 msgid "Packing and unpacking of heterogeneous binary data." msgstr "" -#: ../../library/array.rst:266 +#: ../../library/array.rst:270 msgid "Module :mod:`xdrlib`" msgstr "Módulo :mod:`xdrlib`" -#: ../../library/array.rst:265 +#: ../../library/array.rst:269 msgid "" "Packing and unpacking of External Data Representation (XDR) data as used in " "some remote procedure call systems." msgstr "" -#: ../../library/array.rst:269 +#: ../../library/array.rst:273 msgid "`The Numerical Python Documentation `_" msgstr "" -#: ../../library/array.rst:269 +#: ../../library/array.rst:273 msgid "" -"The Numeric Python extension (NumPy) defines another array type; see " -"http://www.numpy.org/ for further information about Numerical Python." +"The Numeric Python extension (NumPy) defines another array type; see http://" +"www.numpy.org/ for further information about Numerical Python." msgstr "" diff --git a/library/ast.po b/library/ast.po index f780ab551..b91d13115 100644 --- a/library/ast.po +++ b/library/ast.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Cauê Baasch de Souza , 2019 -# Rafael Fontenelle , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-30 03:20+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,25 +39,25 @@ msgid "" "what the current grammar looks like." msgstr "" "O módulo :mod:`ast` ajuda os aplicativos Python a processar árvores da " -"gramática de sintaxe abstrata do Python. A sintaxe abstrata em si pode mudar" -" em cada lançamento do Python; este módulo ajuda a descobrir " +"gramática de sintaxe abstrata do Python. A sintaxe abstrata em si pode mudar " +"em cada lançamento do Python; este módulo ajuda a descobrir " "programaticamente como é a gramática atual." #: ../../library/ast.rst:19 msgid "" -"An abstract syntax tree can be generated by passing " -":data:`ast.PyCF_ONLY_AST` as a flag to the :func:`compile` built-in " -"function, or using the :func:`parse` helper provided in this module. The " -"result will be a tree of objects whose classes all inherit from " -":class:`ast.AST`. An abstract syntax tree can be compiled into a Python " -"code object using the built-in :func:`compile` function." +"An abstract syntax tree can be generated by passing :data:`ast." +"PyCF_ONLY_AST` as a flag to the :func:`compile` built-in function, or using " +"the :func:`parse` helper provided in this module. The result will be a tree " +"of objects whose classes all inherit from :class:`ast.AST`. An abstract " +"syntax tree can be compiled into a Python code object using the built-in :" +"func:`compile` function." msgstr "" -"Uma árvore de sintaxe abstrata pode ser gerada passando " -":data:`ast.PyCF_ONLY_AST` como um sinalizador para a função interna " -":func:`compile`, ou usando o auxiliar :func:`parse` fornecido neste módulo. " -"O resultado será uma árvore de objetos cujas classes herdam de " -":class:`ast.AST`. Uma árvore de sintaxe abstrata pode ser compilada em um " -"objeto de código Python usando a função interna :func:`compile`." +"Uma árvore de sintaxe abstrata pode ser gerada passando :data:`ast." +"PyCF_ONLY_AST` como um sinalizador para a função interna :func:`compile`, ou " +"usando o auxiliar :func:`parse` fornecido neste módulo. O resultado será uma " +"árvore de objetos cujas classes herdam de :class:`ast.AST`. Uma árvore de " +"sintaxe abstrata pode ser compilada em um objeto de código Python usando a " +"função interna :func:`compile`." #: ../../library/ast.rst:27 msgid "Node classes" @@ -65,30 +66,30 @@ msgstr "Classes de nó" #: ../../library/ast.rst:31 msgid "" "This is the base of all AST node classes. The actual node classes are " -"derived from the :file:`Parser/Python.asdl` file, which is reproduced " -":ref:`below `. They are defined in the :mod:`_ast` C " -"module and re-exported in :mod:`ast`." +"derived from the :file:`Parser/Python.asdl` file, which is reproduced :ref:" +"`below `. They are defined in the :mod:`_ast` C module " +"and re-exported in :mod:`ast`." msgstr "" "Esta é a base de todas as classes de nós AST. As classes de nós reais são " -"derivadas do arquivo :file:`Parser/Python.asdl`, o qual é reproduzido " -":ref:`abaixo `. Elas são definidas no módulo C :mod:`_ast`" -" e reexportadas em :mod:`ast`." +"derivadas do arquivo :file:`Parser/Python.asdl`, o qual é reproduzido :ref:" +"`abaixo `. Elas são definidas no módulo C :mod:`_ast` e " +"reexportadas em :mod:`ast`." #: ../../library/ast.rst:36 msgid "" "There is one class defined for each left-hand side symbol in the abstract " -"grammar (for example, :class:`ast.stmt` or :class:`ast.expr`). In addition," -" there is one class defined for each constructor on the right-hand side; " +"grammar (for example, :class:`ast.stmt` or :class:`ast.expr`). In addition, " +"there is one class defined for each constructor on the right-hand side; " "these classes inherit from the classes for the left-hand side trees. For " -"example, :class:`ast.BinOp` inherits from :class:`ast.expr`. For production" -" rules with alternatives (aka \"sums\"), the left-hand side class is " +"example, :class:`ast.BinOp` inherits from :class:`ast.expr`. For production " +"rules with alternatives (aka \"sums\"), the left-hand side class is " "abstract: only instances of specific constructor nodes are ever created." msgstr "" "Há uma classe definida para cada símbolo do lado esquerdo na gramática " "abstrata (por exemplo, :class:`ast.stmt` ou :class:`ast.expr`). Além disso, " "existe uma classe definida para cada construtor no lado direito; essas " -"classes herdam das classes para as árvores do lado esquerdo. Por exemplo, " -":class:`ast.BinOp` herda de :class:`ast.expr`. Para regras de produção com " +"classes herdam das classes para as árvores do lado esquerdo. Por exemplo, :" +"class:`ast.BinOp` herda de :class:`ast.expr`. Para regras de produção com " "alternativas (\"somas\"), a classe do lado esquerdo é abstrata: apenas " "instâncias de nós construtores específicos são criadas." @@ -97,8 +98,8 @@ msgid "" "Each concrete class has an attribute :attr:`_fields` which gives the names " "of all child nodes." msgstr "" -"Cada classe concreta possui um atributo :attr:`_fields` que fornece os nomes" -" de todos os nós filhos." +"Cada classe concreta possui um atributo :attr:`_fields` que fornece os nomes " +"de todos os nós filhos." #: ../../library/ast.rst:52 msgid "" @@ -106,33 +107,32 @@ msgid "" "the type as defined in the grammar. For example, :class:`ast.BinOp` " "instances have an attribute :attr:`left` of type :class:`ast.expr`." msgstr "" -"Cada instância de uma classe concreta tem um atributo para cada nó filho, do" -" tipo definido na gramática. Por exemplo, as instâncias :class:`ast.BinOp` " +"Cada instância de uma classe concreta tem um atributo para cada nó filho, do " +"tipo definido na gramática. Por exemplo, as instâncias :class:`ast.BinOp` " "possuem um atributo :attr:`left` do tipo :class:`ast.expr`." #: ../../library/ast.rst:56 msgid "" "If these attributes are marked as optional in the grammar (using a question " -"mark), the value might be ``None``. If the attributes can have zero-or-more" -" values (marked with an asterisk), the values are represented as Python " +"mark), the value might be ``None``. If the attributes can have zero-or-more " +"values (marked with an asterisk), the values are represented as Python " "lists. All possible attributes must be present and have valid values when " "compiling an AST with :func:`compile`." msgstr "" -"Se estes atributos estiverem marcados como opcionais na gramática (usando um" -" ponto de interrogação), o valor pode ser ``None``. Se os atributos puderem " +"Se estes atributos estiverem marcados como opcionais na gramática (usando um " +"ponto de interrogação), o valor pode ser ``None``. Se os atributos puderem " "ter valor zero ou mais (marcados com um asterisco), os valores serão " "representados como listas do Python. Todos os atributos possíveis devem " -"estar presentes e ter valores válidos ao compilar uma AST com " -":func:`compile`." +"estar presentes e ter valores válidos ao compilar uma AST com :func:" +"`compile`." #: ../../library/ast.rst:65 msgid "" -"Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have " -":attr:`lineno` and :attr:`col_offset` attributes. The :attr:`lineno` is the" -" line number of source text (1-indexed so the first line is line 1) and the " -":attr:`col_offset` is the UTF-8 byte offset of the first token that " -"generated the node. The UTF-8 offset is recorded because the parser uses " -"UTF-8 internally." +"Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have :attr:" +"`lineno` and :attr:`col_offset` attributes. The :attr:`lineno` is the line " +"number of source text (1-indexed so the first line is line 1) and the :attr:" +"`col_offset` is the UTF-8 byte offset of the first token that generated the " +"node. The UTF-8 offset is recorded because the parser uses UTF-8 internally." msgstr "" "Instâncias das subclasses :class:`ast.expr` e :class:`ast.stmt` possuem " "atributos :attr:`lineno` e :attr:`col_offset`. O :attr:`lineno` é o número " @@ -153,8 +153,8 @@ msgid "" "If there are positional arguments, there must be as many as there are items " "in :attr:`T._fields`; they will be assigned as attributes of these names." msgstr "" -"Se houver argumentos posicionais, deve haver tantos quanto houver itens em " -":attr:`T._fields`; eles serão atribuídos como atributos desses nomes." +"Se houver argumentos posicionais, deve haver tantos quanto houver itens em :" +"attr:`T._fields`; eles serão atribuídos como atributos desses nomes." #: ../../library/ast.rst:76 msgid "" @@ -206,9 +206,8 @@ msgstr "" #: ../../library/ast.rst:120 ../../library/ast.rst:138 msgid "" -"It is possible to crash the Python interpreter with a sufficiently " -"large/complex string due to stack depth limitations in Python's AST " -"compiler." +"It is possible to crash the Python interpreter with a sufficiently large/" +"complex string due to stack depth limitations in Python's AST compiler." msgstr "" "É possível travar o interpretador Python com uma string suficientemente " "grande/complexa devido às limitações de profundidade da pilha no compilador " @@ -218,25 +217,25 @@ msgstr "" msgid "" "Safely evaluate an expression node or a string containing a Python literal " "or container display. The string or node provided may only consist of the " -"following Python literal structures: strings, bytes, numbers, tuples, lists," -" dicts, sets, booleans, and ``None``." +"following Python literal structures: strings, bytes, numbers, tuples, lists, " +"dicts, sets, booleans, and ``None``." msgstr "" "Avalia com segurança um nó de expressão ou uma string contendo um literal " "Python ou exibição de contêiner. A string ou o nó fornecido pode consistir " -"apenas nas seguintes estruturas literais de Python: strings, bytes, números," -" tuplas, listas, dicts, conjuntos, booleanos e ``None``." +"apenas nas seguintes estruturas literais de Python: strings, bytes, números, " +"tuplas, listas, dicts, conjuntos, booleanos e ``None``." #: ../../library/ast.rst:132 msgid "" -"This can be used for safely evaluating strings containing Python values from" -" untrusted sources without the need to parse the values oneself. It is not " -"capable of evaluating arbitrarily complex expressions, for example involving" -" operators or indexing." +"This can be used for safely evaluating strings containing Python values from " +"untrusted sources without the need to parse the values oneself. It is not " +"capable of evaluating arbitrarily complex expressions, for example involving " +"operators or indexing." msgstr "" "Isso pode ser usado para avaliar com segurança strings contendo valores " -"Python de fontes não confiáveis sem a necessidade de analisar os valores por" -" si próprio. Não é capaz de avaliar expressões arbitrariamente complexas, " -"por exemplo, envolvendo operadores ou indexação." +"Python de fontes não confiáveis sem a necessidade de analisar os valores por " +"si próprio. Não é capaz de avaliar expressões arbitrariamente complexas, por " +"exemplo, envolvendo operadores ou indexação." #: ../../library/ast.rst:142 msgid "Now allows bytes and set literals." @@ -244,14 +243,14 @@ msgstr "Agora permite bytes e literais de conjuntos." #: ../../library/ast.rst:148 msgid "" -"Return the docstring of the given *node* (which must be a " -":class:`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or " -":class:`Module` node), or ``None`` if it has no docstring. If *clean* is " -"true, clean up the docstring's indentation with :func:`inspect.cleandoc`." +"Return the docstring of the given *node* (which must be a :class:" +"`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`, or :class:" +"`Module` node), or ``None`` if it has no docstring. If *clean* is true, " +"clean up the docstring's indentation with :func:`inspect.cleandoc`." msgstr "" -"Retorna a docstring do *nó* dado (que deve ser um nó :class:`FunctionDef`, " -":class:`AsyncFunctionDef`, :class:`ClassDef` ou :class:`Module`) ou ``None``" -" se não tiver uma docstring. Se *clean* for verdadeiro, limpa o recuo da " +"Retorna a docstring do *nó* dado (que deve ser um nó :class:`FunctionDef`, :" +"class:`AsyncFunctionDef`, :class:`ClassDef` ou :class:`Module`) ou ``None`` " +"se não tiver uma docstring. Se *clean* for verdadeiro, limpa o recuo da " "docstring com :func:`inspect.cleandoc`." #: ../../library/ast.rst:154 @@ -260,19 +259,18 @@ msgstr "Não há suporte a :class:`AsyncFunctionDef`." #: ../../library/ast.rst:160 msgid "" -"When you compile a node tree with :func:`compile`, the compiler expects " -":attr:`lineno` and :attr:`col_offset` attributes for every node that " -"supports them. This is rather tedious to fill in for generated nodes, so " -"this helper adds these attributes recursively where not already set, by " -"setting them to the values of the parent node. It works recursively " -"starting at *node*." +"When you compile a node tree with :func:`compile`, the compiler expects :" +"attr:`lineno` and :attr:`col_offset` attributes for every node that supports " +"them. This is rather tedious to fill in for generated nodes, so this helper " +"adds these attributes recursively where not already set, by setting them to " +"the values of the parent node. It works recursively starting at *node*." msgstr "" "Quando você compila uma árvore de nós com :func:`compile`, o compilador " "espera atributos :attr:` lineno` e :attr:`col_offset` para cada nó que os " "suporta. Isso é tedioso para preencher nós gerados, portanto, esse auxiliar " "adiciona esses atributos recursivamente, onde ainda não estão definidos, " -"definindo-os para os valores do nó pai. Ele funciona recursivamente a partir" -" do *node*." +"definindo-os para os valores do nó pai. Ele funciona recursivamente a partir " +"do *node*." #: ../../library/ast.rst:169 msgid "" @@ -280,13 +278,12 @@ msgid "" "*n*. This is useful to \"move code\" to a different location in a file." msgstr "" "Incrementa o número da linha de cada nó na árvore, começando em *node* por " -"*n*. Isso é útil para \"mover código\" para um local diferente em um " -"arquivo." +"*n*. Isso é útil para \"mover código\" para um local diferente em um arquivo." #: ../../library/ast.rst:175 msgid "" -"Copy source location (:attr:`lineno` and :attr:`col_offset`) from *old_node*" -" to *new_node* if possible, and return *new_node*." +"Copy source location (:attr:`lineno` and :attr:`col_offset`) from *old_node* " +"to *new_node* if possible, and return *new_node*." msgstr "" "Copia o local de origem (:attr:`lineno` e :attr:`col_offset`) de *old_node* " "para *new_node* se possível, e retorna *new_node*." @@ -296,8 +293,8 @@ msgid "" "Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` " "that is present on *node*." msgstr "" -"Produz uma tupla de ``(fieldname, value)`` para cada campo em " -"``node._fields`` que esteja presente em *node*." +"Produz uma tupla de ``(fieldname, value)`` para cada campo em ``node." +"_fields`` que esteja presente em *node*." #: ../../library/ast.rst:187 msgid "" @@ -324,8 +321,8 @@ msgid "" "visitor function for every node found. This function may return a value " "which is forwarded by the :meth:`visit` method." msgstr "" -"Uma classe base de visitante de nó que percorre a árvore de sintaxe abstrata" -" e chama uma função de visitante para cada nó encontrado. Esta função pode " +"Uma classe base de visitante de nó que percorre a árvore de sintaxe abstrata " +"e chama uma função de visitante para cada nó encontrado. Esta função pode " "retornar um valor que é encaminhado pelo método :meth:`visit`." #: ../../library/ast.rst:204 @@ -338,13 +335,13 @@ msgstr "" #: ../../library/ast.rst:209 msgid "" -"Visit a node. The default implementation calls the method called " -":samp:`self.visit_{classname}` where *classname* is the name of the node " -"class, or :meth:`generic_visit` if that method doesn't exist." +"Visit a node. The default implementation calls the method called :samp:" +"`self.visit_{classname}` where *classname* is the name of the node class, " +"or :meth:`generic_visit` if that method doesn't exist." msgstr "" -"Visita um nó. A implementação padrão chama o método chamado " -":samp:`self.visit_{nomedaclasse}` sendo *nomedaclasse* o nome da classe do " -"nó, ou :meth:`generic_visit` se aquele método não existir." +"Visita um nó. A implementação padrão chama o método chamado :samp:`self." +"visit_{nomedaclasse}` sendo *nomedaclasse* o nome da classe do nó, ou :meth:" +"`generic_visit` se aquele método não existir." #: ../../library/ast.rst:215 msgid "This visitor calls :meth:`visit` on all children of the node." @@ -353,30 +350,29 @@ msgstr "Este visitante chama :meth:`visit` em todos os filhos do nó." #: ../../library/ast.rst:217 msgid "" "Note that child nodes of nodes that have a custom visitor method won't be " -"visited unless the visitor calls :meth:`generic_visit` or visits them " -"itself." +"visited unless the visitor calls :meth:`generic_visit` or visits them itself." msgstr "" "Observe que nós filhos de nós que possuem um método de visitante " -"personalizado não serão visitados, a menos que o visitante chame " -":meth:`generic_visit` ou os visite por conta própria." +"personalizado não serão visitados, a menos que o visitante chame :meth:" +"`generic_visit` ou os visite por conta própria." #: ../../library/ast.rst:221 msgid "" "Don't use the :class:`NodeVisitor` if you want to apply changes to nodes " -"during traversal. For this a special visitor exists " -"(:class:`NodeTransformer`) that allows modifications." +"during traversal. For this a special visitor exists (:class:" +"`NodeTransformer`) that allows modifications." msgstr "" "Não use o :class:`NodeVisitor` se você quiser aplicar mudanças nos nós " -"durante a travessia. Para isso existe um visitante especial " -"(:class:`NodeTransformer`) que permite modificações." +"durante a travessia. Para isso existe um visitante especial (:class:" +"`NodeTransformer`) que permite modificações." #: ../../library/ast.rst:228 msgid "" "A :class:`NodeVisitor` subclass that walks the abstract syntax tree and " "allows modification of nodes." msgstr "" -"A subclasse :class:`NodeVisitor` que percorre a árvore de sintaxe abstrata e" -" permite a modificação de nós." +"A subclasse :class:`NodeVisitor` que percorre a árvore de sintaxe abstrata e " +"permite a modificação de nós." #: ../../library/ast.rst:231 msgid "" @@ -394,8 +390,8 @@ msgstr "" #: ../../library/ast.rst:237 msgid "" -"Here is an example transformer that rewrites all occurrences of name lookups" -" (``foo``) to ``data['foo']``::" +"Here is an example transformer that rewrites all occurrences of name lookups " +"(``foo``) to ``data['foo']``::" msgstr "" "Aqui está um exemplo de transformador que rescreve todas as ocorrências de " "procuras por nome (``foo``) para ``data['foo']``::" @@ -406,9 +402,9 @@ msgid "" "either transform the child nodes yourself or call the :meth:`generic_visit` " "method for the node first." msgstr "" -"Tenha em mente que, se o nó em que você está operando tiver nós filhos, você" -" deve transformar os nós filhos por conta própria ou chamar o método " -":meth:`generic_visit` para o nó primeiro." +"Tenha em mente que, se o nó em que você está operando tiver nós filhos, você " +"deve transformar os nós filhos por conta própria ou chamar o método :meth:" +"`generic_visit` para o nó primeiro." #: ../../library/ast.rst:253 msgid "" @@ -421,28 +417,40 @@ msgstr "" "nós em vez de apenas um único nó." #: ../../library/ast.rst:257 +msgid "" +"If :class:`NodeTransformer` introduces new nodes (that weren't part of " +"original tree) without giving them location information (such as :attr:" +"`lineno`), :func:`fix_missing_locations` should be called with the new sub-" +"tree to recalculate the location information::" +msgstr "" +"Se :class:`NodeTransformer` introduz novos nós (que não faziam parte da " +"árvore original) sem fornecer informações de localização (como :attr:" +"`lineno`), :func:`fix_missing_locations` deve ser chamado com o novo " +"subárvore para recalcular as informações de localização::" + +#: ../../library/ast.rst:265 msgid "Usually you use the transformer like this::" msgstr "Normalmente você usa o transformador assim::" -#: ../../library/ast.rst:264 +#: ../../library/ast.rst:272 msgid "" "Return a formatted dump of the tree in *node*. This is mainly useful for " -"debugging purposes. If *annotate_fields* is true (by default), the returned" -" string will show the names and the values for fields. If *annotate_fields* " +"debugging purposes. If *annotate_fields* is true (by default), the returned " +"string will show the names and the values for fields. If *annotate_fields* " "is false, the result string will be more compact by omitting unambiguous " "field names. Attributes such as line numbers and column offsets are not " "dumped by default. If this is wanted, *include_attributes* can be set to " "true." msgstr "" -"Retorne um despejo formatado da árvore em *node*. Isso é útil principalmente" -" para fins de depuração. Se *annotate_fields* for verdadeiro (por padrão), a" -" sequência retornada mostrará os nomes e os valores para os campos. Se " -"*annotate_fields* for falso, a sequência de resultados será mais compacta ao" -" omitir nomes de campos não ambíguos. Atributos como números de linha e " -"deslocamentos de coluna não são despejados por padrão. Se isso for desejado," -" *include_attributes* pode ser definido como verdadeiro." +"Retorne um despejo formatado da árvore em *node*. Isso é útil principalmente " +"para fins de depuração. Se *annotate_fields* for verdadeiro (por padrão), a " +"sequência retornada mostrará os nomes e os valores para os campos. Se " +"*annotate_fields* for falso, a sequência de resultados será mais compacta ao " +"omitir nomes de campos não ambíguos. Atributos como números de linha e " +"deslocamentos de coluna não são despejados por padrão. Se isso for desejado, " +"*include_attributes* pode ser definido como verdadeiro." -#: ../../library/ast.rst:274 +#: ../../library/ast.rst:282 msgid "" "`Green Tree Snakes `_, an external " "documentation resource, has good details on working with Python ASTs." diff --git a/library/asynchat.po b/library/asynchat.po index ea5d39ab8..4e634d2d3 100644 --- a/library/asynchat.po +++ b/library/asynchat.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" "Last-Translator: (Douglas da Silva) , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,12 +47,12 @@ msgid "" "asynchronous clients and servers and making it easier to handle protocols " "whose elements are terminated by arbitrary strings, or are of variable " "length. :mod:`asynchat` defines the abstract class :class:`async_chat` that " -"you subclass, providing implementations of the :meth:`collect_incoming_data`" -" and :meth:`found_terminator` methods. It uses the same asynchronous loop as" -" :mod:`asyncore`, and the two types of channel, :class:`asyncore.dispatcher`" -" and :class:`asynchat.async_chat`, can freely be mixed in the channel map. " -"Typically an :class:`asyncore.dispatcher` server channel generates new " -":class:`asynchat.async_chat` channel objects as it receives incoming " +"you subclass, providing implementations of the :meth:`collect_incoming_data` " +"and :meth:`found_terminator` methods. It uses the same asynchronous loop as :" +"mod:`asyncore`, and the two types of channel, :class:`asyncore.dispatcher` " +"and :class:`asynchat.async_chat`, can freely be mixed in the channel map. " +"Typically an :class:`asyncore.dispatcher` server channel generates new :" +"class:`asynchat.async_chat` channel objects as it receives incoming " "connection requests." msgstr "" @@ -67,10 +68,10 @@ msgstr "" #: ../../library/asynchat.rst:44 msgid "" "Like :class:`asyncore.dispatcher`, :class:`async_chat` defines a set of " -"events that are generated by an analysis of socket conditions after a " -":c:func:`select` call. Once the polling loop has been started the " -":class:`async_chat` object's methods are called by the event-processing " -"framework with no action on the part of the programmer." +"events that are generated by an analysis of socket conditions after a :c:" +"func:`select` call. Once the polling loop has been started the :class:" +"`async_chat` object's methods are called by the event-processing framework " +"with no action on the part of the programmer." msgstr "" #: ../../library/asynchat.rst:50 @@ -90,13 +91,13 @@ msgstr "" #: ../../library/asynchat.rst:63 msgid "" "Unlike :class:`asyncore.dispatcher`, :class:`async_chat` allows you to " -"define a :abbr:`FIFO (first-in, first-out)` queue of *producers*. A producer" -" need have only one method, :meth:`more`, which should return data to be " +"define a :abbr:`FIFO (first-in, first-out)` queue of *producers*. A producer " +"need have only one method, :meth:`more`, which should return data to be " "transmitted on the channel. The producer indicates exhaustion (*i.e.* that " -"it contains no more data) by having its :meth:`more` method return the empty" -" bytes object. At this point the :class:`async_chat` object removes the " -"producer from the queue and starts using the next producer, if any. When the" -" producer queue is empty the :meth:`handle_write` method does nothing. You " +"it contains no more data) by having its :meth:`more` method return the empty " +"bytes object. At this point the :class:`async_chat` object removes the " +"producer from the queue and starts using the next producer, if any. When the " +"producer queue is empty the :meth:`handle_write` method does nothing. You " "use the channel object's :meth:`set_terminator` method to describe how to " "recognize the end of, or an important breakpoint in, an incoming " "transmission from the remote endpoint." @@ -104,23 +105,23 @@ msgstr "" #: ../../library/asynchat.rst:76 msgid "" -"To build a functioning :class:`async_chat` subclass your input methods " -":meth:`collect_incoming_data` and :meth:`found_terminator` must handle the " +"To build a functioning :class:`async_chat` subclass your input methods :" +"meth:`collect_incoming_data` and :meth:`found_terminator` must handle the " "data that the channel receives asynchronously. The methods are described " "below." msgstr "" #: ../../library/asynchat.rst:84 msgid "" -"Pushes a ``None`` on to the producer queue. When this producer is popped off" -" the queue it causes the channel to be closed." +"Pushes a ``None`` on to the producer queue. When this producer is popped off " +"the queue it causes the channel to be closed." msgstr "" #: ../../library/asynchat.rst:90 msgid "" "Called with *data* holding an arbitrary amount of received data. The " -"default method, which must be overridden, raises a " -":exc:`NotImplementedError` exception." +"default method, which must be overridden, raises a :exc:" +"`NotImplementedError` exception." msgstr "" #: ../../library/asynchat.rst:97 @@ -145,23 +146,23 @@ msgstr "" msgid "" "Pushes data on to the channel's queue to ensure its transmission. This is " "all you need to do to have the channel write the data out to the network, " -"although it is possible to use your own producers in more complex schemes to" -" implement encryption and chunking, for example." +"although it is possible to use your own producers in more complex schemes to " +"implement encryption and chunking, for example." msgstr "" #: ../../library/asynchat.rst:124 msgid "" "Takes a producer object and adds it to the producer queue associated with " "the channel. When all currently-pushed producers have been exhausted the " -"channel will consume this producer's data by calling its :meth:`more` method" -" and send the data to the remote endpoint." +"channel will consume this producer's data by calling its :meth:`more` method " +"and send the data to the remote endpoint." msgstr "" #: ../../library/asynchat.rst:132 msgid "" "Sets the terminating condition to be recognized on the channel. ``term`` " -"may be any of three types of value, corresponding to three different ways to" -" handle incoming protocol data." +"may be any of three types of value, corresponding to three different ways to " +"handle incoming protocol data." msgstr "" #: ../../library/asynchat.rst:137 @@ -202,8 +203,8 @@ msgstr "" #: ../../library/asynchat.rst:150 msgid "" -"Note that any data following the terminator will be available for reading by" -" the channel after :meth:`found_terminator` is called." +"Note that any data following the terminator will be available for reading by " +"the channel after :meth:`found_terminator` is called." msgstr "" #: ../../library/asynchat.rst:157 @@ -212,25 +213,25 @@ msgstr "" #: ../../library/asynchat.rst:159 msgid "" -"The following partial example shows how HTTP requests can be read with " -":class:`async_chat`. A web server might create an " -":class:`http_request_handler` object for each incoming client connection. " -"Notice that initially the channel terminator is set to match the blank line " -"at the end of the HTTP headers, and a flag indicates that the headers are " -"being read." +"The following partial example shows how HTTP requests can be read with :" +"class:`async_chat`. A web server might create an :class:" +"`http_request_handler` object for each incoming client connection. Notice " +"that initially the channel terminator is set to match the blank line at the " +"end of the HTTP headers, and a flag indicates that the headers are being " +"read." msgstr "" #: ../../library/asynchat.rst:166 msgid "" "Once the headers have been read, if the request is of type POST (indicating " -"that further data are present in the input stream) then the ``Content-" -"Length:`` header is used to set a numeric terminator to read the right " -"amount of data from the channel." +"that further data are present in the input stream) then the ``Content-Length:" +"`` header is used to set a numeric terminator to read the right amount of " +"data from the channel." msgstr "" #: ../../library/asynchat.rst:171 msgid "" -"The :meth:`handle_request` method is called once all relevant input has been" -" marshalled, after setting the channel terminator to ``None`` to ensure that" -" any extraneous data sent by the web client are ignored. ::" +"The :meth:`handle_request` method is called once all relevant input has been " +"marshalled, after setting the channel terminator to ``None`` to ensure that " +"any extraneous data sent by the web client are ignored. ::" msgstr "" diff --git a/library/asyncio-api-index.po b/library/asyncio-api-index.po index 8d6805575..d761948f8 100644 --- a/library/asyncio-api-index.po +++ b/library/asyncio-api-index.po @@ -1,396 +1,405 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Raphael Mendonça, 2019 +# Claudio Rogerio Carvalho Filho , 2019 +# Leticia Portella , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:16+0000\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/asyncio-api-index.rst:6 +#: ../../library/asyncio-api-index.rst:6 msgid "High-level API Index" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:8 +#: ../../library/asyncio-api-index.rst:8 msgid "This page lists all high-level async/await enabled asyncio APIs." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:12 +#: ../../library/asyncio-api-index.rst:12 msgid "Tasks" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:14 +#: ../../library/asyncio-api-index.rst:14 msgid "" "Utilities to run asyncio programs, create Tasks, and await on multiple " "things with timeouts." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:21 +#: ../../library/asyncio-api-index.rst:21 msgid ":func:`run`" -msgstr "" +msgstr ":func:`run`" -#: ../Doc/library/asyncio-api-index.rst:22 +#: ../../library/asyncio-api-index.rst:22 msgid "Create event loop, run a coroutine, close the loop." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:24 +#: ../../library/asyncio-api-index.rst:24 msgid ":func:`create_task`" -msgstr "" +msgstr ":func:`create_task`" -#: ../Doc/library/asyncio-api-index.rst:25 +#: ../../library/asyncio-api-index.rst:25 msgid "Start an asyncio Task." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:27 +#: ../../library/asyncio-api-index.rst:27 msgid "``await`` :func:`sleep`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:28 +#: ../../library/asyncio-api-index.rst:28 msgid "Sleep for a number of seconds." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:30 +#: ../../library/asyncio-api-index.rst:30 msgid "``await`` :func:`gather`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:31 +#: ../../library/asyncio-api-index.rst:31 msgid "Schedule and wait for things concurrently." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:33 +#: ../../library/asyncio-api-index.rst:33 msgid "``await`` :func:`wait_for`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:34 +#: ../../library/asyncio-api-index.rst:34 msgid "Run with a timeout." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:36 +#: ../../library/asyncio-api-index.rst:36 msgid "``await`` :func:`shield`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:37 +#: ../../library/asyncio-api-index.rst:37 msgid "Shield from cancellation." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:39 +#: ../../library/asyncio-api-index.rst:39 msgid "``await`` :func:`wait`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:40 +#: ../../library/asyncio-api-index.rst:40 msgid "Monitor for completion." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:42 +#: ../../library/asyncio-api-index.rst:42 msgid ":func:`current_task`" -msgstr "" +msgstr ":func:`current_task`" -#: ../Doc/library/asyncio-api-index.rst:43 +#: ../../library/asyncio-api-index.rst:43 msgid "Return the current Task." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:45 +#: ../../library/asyncio-api-index.rst:45 msgid ":func:`all_tasks`" -msgstr "" +msgstr ":func:`all_tasks`" -#: ../Doc/library/asyncio-api-index.rst:46 +#: ../../library/asyncio-api-index.rst:46 msgid "Return all tasks for an event loop." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:48 +#: ../../library/asyncio-api-index.rst:48 msgid ":class:`Task`" -msgstr "" +msgstr ":class:`Task`" -#: ../Doc/library/asyncio-api-index.rst:49 +#: ../../library/asyncio-api-index.rst:49 msgid "Task object." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:51 +#: ../../library/asyncio-api-index.rst:51 msgid ":func:`run_coroutine_threadsafe`" -msgstr "" +msgstr ":func:`run_coroutine_threadsafe`" -#: ../Doc/library/asyncio-api-index.rst:52 +#: ../../library/asyncio-api-index.rst:52 msgid "Schedule a coroutine from another OS thread." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:54 +#: ../../library/asyncio-api-index.rst:54 msgid "``for in`` :func:`as_completed`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:55 +#: ../../library/asyncio-api-index.rst:55 msgid "Monitor for completion with a ``for`` loop." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:59 -#: ../Doc/library/asyncio-api-index.rst:95 -#: ../Doc/library/asyncio-api-index.rst:119 -#: ../Doc/library/asyncio-api-index.rst:155 -#: ../Doc/library/asyncio-api-index.rst:188 -#: ../Doc/library/asyncio-api-index.rst:213 +#: ../../library/asyncio-api-index.rst:59 +#: ../../library/asyncio-api-index.rst:95 +#: ../../library/asyncio-api-index.rst:119 +#: ../../library/asyncio-api-index.rst:155 +#: ../../library/asyncio-api-index.rst:188 +#: ../../library/asyncio-api-index.rst:213 msgid "Examples" -msgstr "" +msgstr "Exemplos" -#: ../Doc/library/asyncio-api-index.rst:60 +#: ../../library/asyncio-api-index.rst:60 msgid "" ":ref:`Using asyncio.gather() to run things in parallel " "`." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:63 +#: ../../library/asyncio-api-index.rst:63 msgid "" ":ref:`Using asyncio.wait_for() to enforce a timeout " "`." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:66 +#: ../../library/asyncio-api-index.rst:66 msgid ":ref:`Cancellation `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:68 +#: ../../library/asyncio-api-index.rst:68 msgid ":ref:`Using asyncio.sleep() `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:70 +#: ../../library/asyncio-api-index.rst:70 msgid "See also the main :ref:`Tasks documentation page `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:74 +#: ../../library/asyncio-api-index.rst:74 msgid "Queues" msgstr "Filas" -#: ../Doc/library/asyncio-api-index.rst:76 +#: ../../library/asyncio-api-index.rst:76 msgid "" "Queues should be used to distribute work amongst multiple asyncio Tasks, " "implement connection pools, and pub/sub patterns." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:84 +#: ../../library/asyncio-api-index.rst:84 msgid ":class:`Queue`" -msgstr "" +msgstr ":class:`Queue`" -#: ../Doc/library/asyncio-api-index.rst:85 +#: ../../library/asyncio-api-index.rst:85 msgid "A FIFO queue." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:87 +#: ../../library/asyncio-api-index.rst:87 msgid ":class:`PriorityQueue`" -msgstr "" +msgstr ":class:`PriorityQueue`" -#: ../Doc/library/asyncio-api-index.rst:88 +#: ../../library/asyncio-api-index.rst:88 msgid "A priority queue." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:90 +#: ../../library/asyncio-api-index.rst:90 msgid ":class:`LifoQueue`" -msgstr "" +msgstr ":class:`LifoQueue`" -#: ../Doc/library/asyncio-api-index.rst:91 +#: ../../library/asyncio-api-index.rst:91 msgid "A LIFO queue." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:96 +#: ../../library/asyncio-api-index.rst:96 msgid "" ":ref:`Using asyncio.Queue to distribute workload between several Tasks " "`." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:99 +#: ../../library/asyncio-api-index.rst:99 msgid "See also the :ref:`Queues documentation page `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:103 +#: ../../library/asyncio-api-index.rst:103 msgid "Subprocesses" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:105 +#: ../../library/asyncio-api-index.rst:105 msgid "Utilities to spawn subprocesses and run shell commands." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:111 +#: ../../library/asyncio-api-index.rst:111 msgid "``await`` :func:`create_subprocess_exec`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:112 +#: ../../library/asyncio-api-index.rst:112 msgid "Create a subprocess." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:114 +#: ../../library/asyncio-api-index.rst:114 msgid "``await`` :func:`create_subprocess_shell`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:115 +#: ../../library/asyncio-api-index.rst:115 msgid "Run a shell command." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:120 +#: ../../library/asyncio-api-index.rst:120 msgid ":ref:`Executing a shell command `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:122 +#: ../../library/asyncio-api-index.rst:122 msgid "See also the :ref:`subprocess APIs ` documentation." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:127 +#: ../../library/asyncio-api-index.rst:127 msgid "Streams" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:129 +#: ../../library/asyncio-api-index.rst:129 msgid "High-level APIs to work with network IO." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:135 +#: ../../library/asyncio-api-index.rst:135 msgid "``await`` :func:`open_connection`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:136 +#: ../../library/asyncio-api-index.rst:136 msgid "Establish a TCP connection." -msgstr "" +msgstr "Estabelece uma conexão TCP." -#: ../Doc/library/asyncio-api-index.rst:138 +#: ../../library/asyncio-api-index.rst:138 msgid "``await`` :func:`open_unix_connection`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:139 +#: ../../library/asyncio-api-index.rst:139 msgid "Establish a Unix socket connection." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:141 +#: ../../library/asyncio-api-index.rst:141 msgid "``await`` :func:`start_server`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:142 +#: ../../library/asyncio-api-index.rst:142 msgid "Start a TCP server." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:144 +#: ../../library/asyncio-api-index.rst:144 msgid "``await`` :func:`start_unix_server`" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:145 +#: ../../library/asyncio-api-index.rst:145 msgid "Start a Unix socket server." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:147 +#: ../../library/asyncio-api-index.rst:147 msgid ":class:`StreamReader`" -msgstr "" +msgstr ":class:`StreamReader`" -#: ../Doc/library/asyncio-api-index.rst:148 +#: ../../library/asyncio-api-index.rst:148 msgid "High-level async/await object to receive network data." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:150 +#: ../../library/asyncio-api-index.rst:150 msgid ":class:`StreamWriter`" -msgstr "" +msgstr ":class:`StreamWriter`" -#: ../Doc/library/asyncio-api-index.rst:151 +#: ../../library/asyncio-api-index.rst:151 msgid "High-level async/await object to send network data." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:156 +#: ../../library/asyncio-api-index.rst:156 msgid ":ref:`Example TCP client `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:158 +#: ../../library/asyncio-api-index.rst:158 msgid "See also the :ref:`streams APIs ` documentation." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:163 +#: ../../library/asyncio-api-index.rst:163 msgid "Synchronization" msgstr "" -#: ../Doc/library/asyncio-api-index.rst:165 +#: ../../library/asyncio-api-index.rst:165 msgid "Threading-like synchronization primitives that can be used in Tasks." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:171 +#: ../../library/asyncio-api-index.rst:171 msgid ":class:`Lock`" -msgstr "" +msgstr ":class:`Lock`" -#: ../Doc/library/asyncio-api-index.rst:172 +#: ../../library/asyncio-api-index.rst:172 msgid "A mutex lock." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:174 +#: ../../library/asyncio-api-index.rst:174 msgid ":class:`Event`" -msgstr "" +msgstr ":class:`Event`" -#: ../Doc/library/asyncio-api-index.rst:175 +#: ../../library/asyncio-api-index.rst:175 msgid "An event object." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:177 +#: ../../library/asyncio-api-index.rst:177 msgid ":class:`Condition`" -msgstr "" +msgstr ":class:`Condition`" -#: ../Doc/library/asyncio-api-index.rst:178 +#: ../../library/asyncio-api-index.rst:178 msgid "A condition object." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:180 +#: ../../library/asyncio-api-index.rst:180 msgid ":class:`Semaphore`" -msgstr "" +msgstr ":class:`Semaphore`" -#: ../Doc/library/asyncio-api-index.rst:181 +#: ../../library/asyncio-api-index.rst:181 msgid "A semaphore." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:183 +#: ../../library/asyncio-api-index.rst:183 msgid ":class:`BoundedSemaphore`" -msgstr "" +msgstr ":class:`BoundedSemaphore`" -#: ../Doc/library/asyncio-api-index.rst:184 +#: ../../library/asyncio-api-index.rst:184 msgid "A bounded semaphore." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:189 +#: ../../library/asyncio-api-index.rst:189 msgid ":ref:`Using asyncio.Event `." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:191 +#: ../../library/asyncio-api-index.rst:191 msgid "" "See also the documentation of asyncio :ref:`synchronization primitives " "`." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:196 +#: ../../library/asyncio-api-index.rst:196 msgid "Exceptions" msgstr "Exceções" -#: ../Doc/library/asyncio-api-index.rst:203 +#: ../../library/asyncio-api-index.rst:203 msgid ":exc:`asyncio.TimeoutError`" -msgstr "" +msgstr ":exc:`asyncio.TimeoutError`" -#: ../Doc/library/asyncio-api-index.rst:204 +#: ../../library/asyncio-api-index.rst:204 msgid "" "Raised on timeout by functions like :func:`wait_for`. Keep in mind that " "``asyncio.TimeoutError`` is **unrelated** to the built-in :exc:" "`TimeoutError` exception." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:208 +#: ../../library/asyncio-api-index.rst:208 msgid ":exc:`asyncio.CancelledError`" -msgstr "" +msgstr ":exc:`asyncio.CancelledError`" -#: ../Doc/library/asyncio-api-index.rst:209 +#: ../../library/asyncio-api-index.rst:209 msgid "Raised when a Task is cancelled. See also :meth:`Task.cancel`." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:214 +#: ../../library/asyncio-api-index.rst:214 msgid "" ":ref:`Handling CancelledError to run code on cancellation request " "`." msgstr "" -#: ../Doc/library/asyncio-api-index.rst:217 +#: ../../library/asyncio-api-index.rst:217 msgid "" "See also the full list of :ref:`asyncio-specific exceptions `." diff --git a/library/asyncio-dev.po b/library/asyncio-dev.po index e2f1f67b9..f8d974b49 100644 --- a/library/asyncio-dev.po +++ b/library/asyncio-dev.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-05 03:24+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,8 +53,7 @@ msgid "There are several ways to enable asyncio debug mode:" msgstr "" #: ../../library/asyncio-dev.rst:26 -msgid "" -"Setting the :envvar:`PYTHONASYNCIODEBUG` environment variable to ``1``." +msgid "Setting the :envvar:`PYTHONASYNCIODEBUG` environment variable to ``1``." msgstr "" #: ../../library/asyncio-dev.rst:28 @@ -73,9 +74,9 @@ msgstr "" #: ../../library/asyncio-dev.rst:36 msgid "" -"setting the log level of the :ref:`asyncio logger ` to " -":py:data:`logging.DEBUG`, for example the following snippet of code can be " -"run at startup of the application::" +"setting the log level of the :ref:`asyncio logger ` to :py:" +"data:`logging.DEBUG`, for example the following snippet of code can be run " +"at startup of the application::" msgstr "" #: ../../library/asyncio-dev.rst:42 @@ -91,16 +92,16 @@ msgstr "" #: ../../library/asyncio-dev.rst:49 msgid "" -"asyncio checks for :ref:`coroutines that were not awaited ` and logs them; this mitigates the \"forgotten " -"await\" pitfall." +"asyncio checks for :ref:`coroutines that were not awaited ` and logs them; this mitigates the \"forgotten await\" " +"pitfall." msgstr "" #: ../../library/asyncio-dev.rst:53 msgid "" -"Many non-threadsafe asyncio APIs (such as :meth:`loop.call_soon` and " -":meth:`loop.call_at` methods) raise an exception if they are called from a " -"wrong thread." +"Many non-threadsafe asyncio APIs (such as :meth:`loop.call_soon` and :meth:" +"`loop.call_at` methods) raise an exception if they are called from a wrong " +"thread." msgstr "" #: ../../library/asyncio-dev.rst:57 @@ -111,9 +112,9 @@ msgstr "" #: ../../library/asyncio-dev.rst:60 msgid "" -"Callbacks taking longer than 100ms are logged. The " -":attr:`loop.slow_callback_duration` attribute can be used to set the minimum" -" execution duration in seconds that is considered \"slow\"." +"Callbacks taking longer than 100ms are logged. The :attr:`loop." +"slow_callback_duration` attribute can be used to set the minimum execution " +"duration in seconds that is considered \"slow\"." msgstr "" #: ../../library/asyncio-dev.rst:68 @@ -131,8 +132,8 @@ msgstr "" #: ../../library/asyncio-dev.rst:76 msgid "" -"To schedule a callback from a different OS thread, the " -":meth:`loop.call_soon_threadsafe` method should be used. Example::" +"To schedule a callback from a different OS thread, the :meth:`loop." +"call_soon_threadsafe` method should be used. Example::" msgstr "" #: ../../library/asyncio-dev.rst:81 @@ -145,23 +146,23 @@ msgstr "" #: ../../library/asyncio-dev.rst:89 msgid "" -"To schedule a coroutine object from a different OS thread, the " -":func:`run_coroutine_threadsafe` function should be used. It returns a " -":class:`concurrent.futures.Future` to access the result::" +"To schedule a coroutine object from a different OS thread, the :func:" +"`run_coroutine_threadsafe` function should be used. It returns a :class:" +"`concurrent.futures.Future` to access the result::" msgstr "" #: ../../library/asyncio-dev.rst:102 msgid "" -"To handle signals and to execute subprocesses, the event loop must be run in" -" the main thread." +"To handle signals and to execute subprocesses, the event loop must be run in " +"the main thread." msgstr "" #: ../../library/asyncio-dev.rst:105 msgid "" -"The :meth:`loop.run_in_executor` method can be used with a " -":class:`concurrent.futures.ThreadPoolExecutor` to execute blocking code in a" -" different OS thread without blocking the OS thread that the event loop runs" -" in." +"The :meth:`loop.run_in_executor` method can be used with a :class:" +"`concurrent.futures.ThreadPoolExecutor` to execute blocking code in a " +"different OS thread without blocking the OS thread that the event loop runs " +"in." msgstr "" #: ../../library/asyncio-dev.rst:114 @@ -205,8 +206,8 @@ msgstr "" #: ../../library/asyncio-dev.rst:146 msgid "" "When a coroutine function is called, but not awaited (e.g. ``coro()`` " -"instead of ``await coro()``) or the coroutine is not scheduled with " -":meth:`asyncio.create_task`, asyncio will emit a :exc:`RuntimeWarning`::" +"instead of ``await coro()``) or the coroutine is not scheduled with :meth:" +"`asyncio.create_task`, asyncio will emit a :exc:`RuntimeWarning`::" msgstr "" #: ../../library/asyncio-dev.rst:161 ../../library/asyncio-dev.rst:206 @@ -219,8 +220,8 @@ msgstr "" #: ../../library/asyncio-dev.rst:179 msgid "" -"The usual fix is to either await the coroutine or call the " -":meth:`asyncio.create_task` function::" +"The usual fix is to either await the coroutine or call the :meth:`asyncio." +"create_task` function::" msgstr "" #: ../../library/asyncio-dev.rst:187 @@ -241,6 +242,6 @@ msgstr "" #: ../../library/asyncio-dev.rst:217 msgid "" -":ref:`Enable the debug mode ` to get the traceback where" -" the task was created::" +":ref:`Enable the debug mode ` to get the traceback where " +"the task was created::" msgstr "" diff --git a/library/asyncio-eventloop.po b/library/asyncio-eventloop.po index 786d2eecb..bf072a5ca 100644 --- a/library/asyncio-eventloop.po +++ b/library/asyncio-eventloop.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-19 11:12+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -70,117 +72,121 @@ msgid "" msgstr "" #: ../../library/asyncio-eventloop.rst:37 +msgid "Get the current event loop." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:39 msgid "" -"Get the current event loop. If there is no current event loop set in the " -"current OS thread and :func:`set_event_loop` has not yet been called, " -"asyncio will create a new event loop and set it as the current one." +"If there is no current event loop set in the current OS thread, the OS " +"thread is main, and :func:`set_event_loop` has not yet been called, asyncio " +"will create a new event loop and set it as the current one." msgstr "" -#: ../../library/asyncio-eventloop.rst:42 +#: ../../library/asyncio-eventloop.rst:44 msgid "" "Because this function has rather complex behavior (especially when custom " -"event loop policies are in use), using the :func:`get_running_loop` function" -" is preferred to :func:`get_event_loop` in coroutines and callbacks." +"event loop policies are in use), using the :func:`get_running_loop` function " +"is preferred to :func:`get_event_loop` in coroutines and callbacks." msgstr "" -#: ../../library/asyncio-eventloop.rst:47 +#: ../../library/asyncio-eventloop.rst:49 msgid "" "Consider also using the :func:`asyncio.run` function instead of using lower " "level functions to manually create and close an event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:52 +#: ../../library/asyncio-eventloop.rst:54 msgid "Set *loop* as a current event loop for the current OS thread." msgstr "" -#: ../../library/asyncio-eventloop.rst:56 +#: ../../library/asyncio-eventloop.rst:58 msgid "Create a new event loop object." msgstr "" -#: ../../library/asyncio-eventloop.rst:58 +#: ../../library/asyncio-eventloop.rst:60 msgid "" "Note that the behaviour of :func:`get_event_loop`, :func:`set_event_loop`, " "and :func:`new_event_loop` functions can be altered by :ref:`setting a " "custom event loop policy `." msgstr "" -#: ../../library/asyncio-eventloop.rst:64 +#: ../../library/asyncio-eventloop.rst:66 msgid "Contents" msgstr "Conteúdo" -#: ../../library/asyncio-eventloop.rst:65 +#: ../../library/asyncio-eventloop.rst:67 msgid "This documentation page contains the following sections:" msgstr "" -#: ../../library/asyncio-eventloop.rst:67 +#: ../../library/asyncio-eventloop.rst:69 msgid "" "The `Event Loop Methods`_ section is the reference documentation of the " "event loop APIs;" msgstr "" -#: ../../library/asyncio-eventloop.rst:70 +#: ../../library/asyncio-eventloop.rst:72 msgid "" -"The `Callback Handles`_ section documents the :class:`Handle` and " -":class:`TimerHandle` instances which are returned from scheduling methods " -"such as :meth:`loop.call_soon` and :meth:`loop.call_later`;" +"The `Callback Handles`_ section documents the :class:`Handle` and :class:" +"`TimerHandle` instances which are returned from scheduling methods such as :" +"meth:`loop.call_soon` and :meth:`loop.call_later`;" msgstr "" -#: ../../library/asyncio-eventloop.rst:74 +#: ../../library/asyncio-eventloop.rst:76 msgid "" "The `Server Objects`_ section documents types returned from event loop " "methods like :meth:`loop.create_server`;" msgstr "" -#: ../../library/asyncio-eventloop.rst:77 +#: ../../library/asyncio-eventloop.rst:79 msgid "" -"The `Event Loop Implementations`_ section documents the " -":class:`SelectorEventLoop` and :class:`ProactorEventLoop` classes;" +"The `Event Loop Implementations`_ section documents the :class:" +"`SelectorEventLoop` and :class:`ProactorEventLoop` classes;" msgstr "" -#: ../../library/asyncio-eventloop.rst:80 +#: ../../library/asyncio-eventloop.rst:82 msgid "" "The `Examples`_ section showcases how to work with some event loop APIs." msgstr "" -#: ../../library/asyncio-eventloop.rst:87 +#: ../../library/asyncio-eventloop.rst:89 msgid "Event Loop Methods" msgstr "" -#: ../../library/asyncio-eventloop.rst:89 +#: ../../library/asyncio-eventloop.rst:91 msgid "Event loops have **low-level** APIs for the following:" msgstr "" -#: ../../library/asyncio-eventloop.rst:97 +#: ../../library/asyncio-eventloop.rst:99 msgid "Running and stopping the loop" msgstr "" -#: ../../library/asyncio-eventloop.rst:101 +#: ../../library/asyncio-eventloop.rst:103 msgid "Run until the *future* (an instance of :class:`Future`) has completed." msgstr "" -#: ../../library/asyncio-eventloop.rst:104 +#: ../../library/asyncio-eventloop.rst:106 msgid "" "If the argument is a :ref:`coroutine object ` it is implicitly " "scheduled to run as a :class:`asyncio.Task`." msgstr "" -#: ../../library/asyncio-eventloop.rst:107 +#: ../../library/asyncio-eventloop.rst:109 msgid "Return the Future's result or raise its exception." msgstr "" -#: ../../library/asyncio-eventloop.rst:111 +#: ../../library/asyncio-eventloop.rst:113 msgid "Run the event loop until :meth:`stop` is called." msgstr "" -#: ../../library/asyncio-eventloop.rst:113 +#: ../../library/asyncio-eventloop.rst:115 msgid "" "If :meth:`stop` is called before :meth:`run_forever()` is called, the loop " "will poll the I/O selector once with a timeout of zero, run all callbacks " -"scheduled in response to I/O events (and those that were already scheduled)," -" and then exit." +"scheduled in response to I/O events (and those that were already scheduled), " +"and then exit." msgstr "" -#: ../../library/asyncio-eventloop.rst:118 +#: ../../library/asyncio-eventloop.rst:120 msgid "" "If :meth:`stop` is called while :meth:`run_forever` is running, the loop " "will run the current batch of callbacks and then exit. Note that new " @@ -189,41 +195,41 @@ msgid "" "called." msgstr "" -#: ../../library/asyncio-eventloop.rst:126 +#: ../../library/asyncio-eventloop.rst:128 msgid "Stop the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:130 +#: ../../library/asyncio-eventloop.rst:132 msgid "Return ``True`` if the event loop is currently running." msgstr "" -#: ../../library/asyncio-eventloop.rst:134 +#: ../../library/asyncio-eventloop.rst:136 msgid "Return ``True`` if the event loop was closed." msgstr "" -#: ../../library/asyncio-eventloop.rst:138 +#: ../../library/asyncio-eventloop.rst:140 msgid "Close the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:140 +#: ../../library/asyncio-eventloop.rst:142 msgid "" "The loop must not be running when this function is called. Any pending " "callbacks will be discarded." msgstr "" -#: ../../library/asyncio-eventloop.rst:143 +#: ../../library/asyncio-eventloop.rst:145 msgid "" -"This method clears all queues and shuts down the executor, but does not wait" -" for the executor to finish." +"This method clears all queues and shuts down the executor, but does not wait " +"for the executor to finish." msgstr "" -#: ../../library/asyncio-eventloop.rst:146 +#: ../../library/asyncio-eventloop.rst:148 msgid "" "This method is idempotent and irreversible. No other methods should be " "called after the event loop is closed." msgstr "" -#: ../../library/asyncio-eventloop.rst:151 +#: ../../library/asyncio-eventloop.rst:153 msgid "" "Schedule all currently open :term:`asynchronous generator` objects to close " "with an :meth:`~agen.aclose()` call. After calling this method, the event " @@ -231,289 +237,288 @@ msgid "" "should be used to reliably finalize all scheduled asynchronous generators." msgstr "" -#: ../../library/asyncio-eventloop.rst:157 +#: ../../library/asyncio-eventloop.rst:159 msgid "" -"Note that there is no need to call this function when :func:`asyncio.run` is" -" used." +"Note that there is no need to call this function when :func:`asyncio.run` is " +"used." msgstr "" -#: ../../library/asyncio-eventloop.rst:160 -#: ../../library/asyncio-eventloop.rst:1001 -#: ../../library/asyncio-eventloop.rst:1363 +#: ../../library/asyncio-eventloop.rst:162 +#: ../../library/asyncio-eventloop.rst:1017 +#: ../../library/asyncio-eventloop.rst:1379 msgid "Example::" msgstr "Exemplo::" -#: ../../library/asyncio-eventloop.rst:172 +#: ../../library/asyncio-eventloop.rst:174 msgid "Scheduling callbacks" msgstr "" -#: ../../library/asyncio-eventloop.rst:176 +#: ../../library/asyncio-eventloop.rst:178 msgid "" "Schedule a *callback* to be called with *args* arguments at the next " "iteration of the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:179 +#: ../../library/asyncio-eventloop.rst:181 msgid "" "Callbacks are called in the order in which they are registered. Each " "callback will be called exactly once." msgstr "" -#: ../../library/asyncio-eventloop.rst:182 -#: ../../library/asyncio-eventloop.rst:245 +#: ../../library/asyncio-eventloop.rst:184 +#: ../../library/asyncio-eventloop.rst:247 msgid "" -"An optional keyword-only *context* argument allows specifying a custom " -":class:`contextvars.Context` for the *callback* to run in. The current " +"An optional keyword-only *context* argument allows specifying a custom :" +"class:`contextvars.Context` for the *callback* to run in. The current " "context is used when no *context* is provided." msgstr "" -#: ../../library/asyncio-eventloop.rst:186 +#: ../../library/asyncio-eventloop.rst:188 msgid "" "An instance of :class:`asyncio.Handle` is returned, which can be used later " "to cancel the callback." msgstr "" -#: ../../library/asyncio-eventloop.rst:189 +#: ../../library/asyncio-eventloop.rst:191 msgid "This method is not thread-safe." msgstr "" -#: ../../library/asyncio-eventloop.rst:193 +#: ../../library/asyncio-eventloop.rst:195 msgid "" "A thread-safe variant of :meth:`call_soon`. Must be used to schedule " "callbacks *from another thread*." msgstr "" -#: ../../library/asyncio-eventloop.rst:196 +#: ../../library/asyncio-eventloop.rst:198 msgid "" "See the :ref:`concurrency and multithreading ` " "section of the documentation." msgstr "" -#: ../../library/asyncio-eventloop.rst:199 -#: ../../library/asyncio-eventloop.rst:249 -#: ../../library/asyncio-eventloop.rst:269 +#: ../../library/asyncio-eventloop.rst:201 +#: ../../library/asyncio-eventloop.rst:251 +#: ../../library/asyncio-eventloop.rst:271 msgid "" "The *context* keyword-only parameter was added. See :pep:`567` for more " "details." msgstr "" -#: ../../library/asyncio-eventloop.rst:207 +#: ../../library/asyncio-eventloop.rst:209 msgid "" "Most :mod:`asyncio` scheduling functions don't allow passing keyword " "arguments. To do that, use :func:`functools.partial`::" msgstr "" -#: ../../library/asyncio-eventloop.rst:214 +#: ../../library/asyncio-eventloop.rst:216 msgid "" "Using partial objects is usually more convenient than using lambdas, as " "asyncio can render partial objects better in debug and error messages." msgstr "" -#: ../../library/asyncio-eventloop.rst:222 +#: ../../library/asyncio-eventloop.rst:224 msgid "Scheduling delayed callbacks" msgstr "" -#: ../../library/asyncio-eventloop.rst:224 +#: ../../library/asyncio-eventloop.rst:226 msgid "" "Event loop provides mechanisms to schedule callback functions to be called " -"at some point in the future. Event loop uses monotonic clocks to track " -"time." +"at some point in the future. Event loop uses monotonic clocks to track time." msgstr "" -#: ../../library/asyncio-eventloop.rst:231 +#: ../../library/asyncio-eventloop.rst:233 msgid "" "Schedule *callback* to be called after the given *delay* number of seconds " "(can be either an int or a float)." msgstr "" -#: ../../library/asyncio-eventloop.rst:234 -#: ../../library/asyncio-eventloop.rst:266 +#: ../../library/asyncio-eventloop.rst:236 +#: ../../library/asyncio-eventloop.rst:268 msgid "" -"An instance of :class:`asyncio.TimerHandle` is returned which can be used to" -" cancel the callback." +"An instance of :class:`asyncio.TimerHandle` is returned which can be used to " +"cancel the callback." msgstr "" -#: ../../library/asyncio-eventloop.rst:237 +#: ../../library/asyncio-eventloop.rst:239 msgid "" "*callback* will be called exactly once. If two callbacks are scheduled for " "exactly the same time, the order in which they are called is undefined." msgstr "" -#: ../../library/asyncio-eventloop.rst:241 +#: ../../library/asyncio-eventloop.rst:243 msgid "" "The optional positional *args* will be passed to the callback when it is " -"called. If you want the callback to be called with keyword arguments use " -":func:`functools.partial`." +"called. If you want the callback to be called with keyword arguments use :" +"func:`functools.partial`." msgstr "" -#: ../../library/asyncio-eventloop.rst:253 +#: ../../library/asyncio-eventloop.rst:255 msgid "" "In Python 3.7.0 and earlier with the default event loop implementation, the " "*delay* could not exceed one day. This has been fixed in Python 3.7.1." msgstr "" -#: ../../library/asyncio-eventloop.rst:260 +#: ../../library/asyncio-eventloop.rst:262 msgid "" "Schedule *callback* to be called at the given absolute timestamp *when* (an " "int or a float), using the same time reference as :meth:`loop.time`." msgstr "" -#: ../../library/asyncio-eventloop.rst:264 +#: ../../library/asyncio-eventloop.rst:266 msgid "This method's behavior is the same as :meth:`call_later`." msgstr "" -#: ../../library/asyncio-eventloop.rst:273 +#: ../../library/asyncio-eventloop.rst:275 msgid "" "In Python 3.7.0 and earlier with the default event loop implementation, the " "difference between *when* and the current time could not exceed one day. " "This has been fixed in Python 3.7.1." msgstr "" -#: ../../library/asyncio-eventloop.rst:280 +#: ../../library/asyncio-eventloop.rst:282 msgid "" "Return the current time, as a :class:`float` value, according to the event " "loop's internal monotonic clock." msgstr "" -#: ../../library/asyncio-eventloop.rst:284 +#: ../../library/asyncio-eventloop.rst:286 msgid "" "In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) " "should not exceed one day. This has been fixed in Python 3.8." msgstr "" -#: ../../library/asyncio-eventloop.rst:290 +#: ../../library/asyncio-eventloop.rst:292 msgid "The :func:`asyncio.sleep` function." msgstr "" -#: ../../library/asyncio-eventloop.rst:294 +#: ../../library/asyncio-eventloop.rst:296 msgid "Creating Futures and Tasks" msgstr "" -#: ../../library/asyncio-eventloop.rst:298 +#: ../../library/asyncio-eventloop.rst:300 msgid "Create an :class:`asyncio.Future` object attached to the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:300 +#: ../../library/asyncio-eventloop.rst:302 msgid "" "This is the preferred way to create Futures in asyncio. This lets third-" "party event loops provide alternative implementations of the Future object " "(with better performance or instrumentation)." msgstr "" -#: ../../library/asyncio-eventloop.rst:308 +#: ../../library/asyncio-eventloop.rst:310 msgid "" "Schedule the execution of a :ref:`coroutine`. Return a :class:`Task` object." msgstr "" -#: ../../library/asyncio-eventloop.rst:311 +#: ../../library/asyncio-eventloop.rst:313 msgid "" "Third-party event loops can use their own subclass of :class:`Task` for " -"interoperability. In this case, the result type is a subclass of " -":class:`Task`." +"interoperability. In this case, the result type is a subclass of :class:" +"`Task`." msgstr "" -#: ../../library/asyncio-eventloop.rst:317 +#: ../../library/asyncio-eventloop.rst:319 msgid "Set a task factory that will be used by :meth:`loop.create_task`." msgstr "" -#: ../../library/asyncio-eventloop.rst:320 +#: ../../library/asyncio-eventloop.rst:322 msgid "" "If *factory* is ``None`` the default task factory will be set. Otherwise, " -"*factory* must be a *callable* with the signature matching ``(loop, coro)``," -" where *loop* is a reference to the active event loop, and *coro* is a " -"coroutine object. The callable must return a " -":class:`asyncio.Future`-compatible object." +"*factory* must be a *callable* with the signature matching ``(loop, coro)``, " +"where *loop* is a reference to the active event loop, and *coro* is a " +"coroutine object. The callable must return a :class:`asyncio.Future`-" +"compatible object." msgstr "" -#: ../../library/asyncio-eventloop.rst:328 +#: ../../library/asyncio-eventloop.rst:330 msgid "Return a task factory or ``None`` if the default one is in use." msgstr "" -#: ../../library/asyncio-eventloop.rst:332 +#: ../../library/asyncio-eventloop.rst:334 msgid "Opening network connections" msgstr "" -#: ../../library/asyncio-eventloop.rst:340 +#: ../../library/asyncio-eventloop.rst:342 msgid "" -"Open a streaming transport connection to a given address specified by *host*" -" and *port*." +"Open a streaming transport connection to a given address specified by *host* " +"and *port*." msgstr "" -#: ../../library/asyncio-eventloop.rst:343 +#: ../../library/asyncio-eventloop.rst:345 msgid "" -"The socket family can be either :py:data:`~socket.AF_INET` or " -":py:data:`~socket.AF_INET6` depending on *host* (or the *family* argument, " -"if provided)." +"The socket family can be either :py:data:`~socket.AF_INET` or :py:data:" +"`~socket.AF_INET6` depending on *host* (or the *family* argument, if " +"provided)." msgstr "" -#: ../../library/asyncio-eventloop.rst:347 +#: ../../library/asyncio-eventloop.rst:349 msgid "The socket type will be :py:data:`~socket.SOCK_STREAM`." msgstr "" -#: ../../library/asyncio-eventloop.rst:349 -#: ../../library/asyncio-eventloop.rst:917 +#: ../../library/asyncio-eventloop.rst:351 #: ../../library/asyncio-eventloop.rst:933 +#: ../../library/asyncio-eventloop.rst:949 msgid "" "*protocol_factory* must be a callable returning an :ref:`asyncio protocol " "` implementation." msgstr "" -#: ../../library/asyncio-eventloop.rst:352 +#: ../../library/asyncio-eventloop.rst:354 msgid "" "This method will try to establish the connection in the background. When " "successful, it returns a ``(transport, protocol)`` pair." msgstr "" -#: ../../library/asyncio-eventloop.rst:355 +#: ../../library/asyncio-eventloop.rst:357 msgid "The chronological synopsis of the underlying operation is as follows:" msgstr "" -#: ../../library/asyncio-eventloop.rst:357 +#: ../../library/asyncio-eventloop.rst:359 msgid "" "The connection is established and a :ref:`transport ` is " "created for it." msgstr "" -#: ../../library/asyncio-eventloop.rst:360 +#: ../../library/asyncio-eventloop.rst:362 msgid "" -"*protocol_factory* is called without arguments and is expected to return a " -":ref:`protocol ` instance." +"*protocol_factory* is called without arguments and is expected to return a :" +"ref:`protocol ` instance." msgstr "" -#: ../../library/asyncio-eventloop.rst:363 +#: ../../library/asyncio-eventloop.rst:365 msgid "" -"The protocol instance is coupled with the transport by calling its " -":meth:`~BaseProtocol.connection_made` method." +"The protocol instance is coupled with the transport by calling its :meth:" +"`~BaseProtocol.connection_made` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:366 +#: ../../library/asyncio-eventloop.rst:368 msgid "A ``(transport, protocol)`` tuple is returned on success." msgstr "" -#: ../../library/asyncio-eventloop.rst:368 +#: ../../library/asyncio-eventloop.rst:370 msgid "" "The created transport is an implementation-dependent bidirectional stream." msgstr "" -#: ../../library/asyncio-eventloop.rst:371 -#: ../../library/asyncio-eventloop.rst:445 +#: ../../library/asyncio-eventloop.rst:373 +#: ../../library/asyncio-eventloop.rst:462 msgid "Other arguments:" msgstr "" -#: ../../library/asyncio-eventloop.rst:373 +#: ../../library/asyncio-eventloop.rst:375 msgid "" "*ssl*: if given and not false, a SSL/TLS transport is created (by default a " "plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` " -"object, this context is used to create the transport; if *ssl* is " -":const:`True`, a default context returned from " -":func:`ssl.create_default_context` is used." +"object, this context is used to create the transport; if *ssl* is :const:" +"`True`, a default context returned from :func:`ssl.create_default_context` " +"is used." msgstr "" -#: ../../library/asyncio-eventloop.rst:379 +#: ../../library/asyncio-eventloop.rst:381 msgid ":ref:`SSL/TLS security considerations `" -msgstr "" +msgstr ":ref:`SSL/TLS security considerations `" -#: ../../library/asyncio-eventloop.rst:381 +#: ../../library/asyncio-eventloop.rst:383 msgid "" "*server_hostname* sets or overrides the hostname that the target server's " "certificate will be matched against. Should only be passed if *ssl* is not " @@ -524,105 +529,127 @@ msgid "" "potential man-in-the-middle attacks)." msgstr "" -#: ../../library/asyncio-eventloop.rst:389 +#: ../../library/asyncio-eventloop.rst:391 msgid "" "*family*, *proto*, *flags* are the optional address family, protocol and " -"flags to be passed through to getaddrinfo() for *host* resolution. If given," -" these should all be integers from the corresponding :mod:`socket` module " +"flags to be passed through to getaddrinfo() for *host* resolution. If given, " +"these should all be integers from the corresponding :mod:`socket` module " "constants." msgstr "" -#: ../../library/asyncio-eventloop.rst:394 +#: ../../library/asyncio-eventloop.rst:396 msgid "" -"*sock*, if given, should be an existing, already connected " -":class:`socket.socket` object to be used by the transport. If *sock* is " -"given, none of *host*, *port*, *family*, *proto*, *flags* and *local_addr* " -"should be specified." +"*sock*, if given, should be an existing, already connected :class:`socket." +"socket` object to be used by the transport. If *sock* is given, none of " +"*host*, *port*, *family*, *proto*, *flags* and *local_addr* should be " +"specified." msgstr "" -#: ../../library/asyncio-eventloop.rst:399 +#: ../../library/asyncio-eventloop.rst:401 msgid "" -"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind" -" the socket to locally. The *local_host* and *local_port* are looked up " +"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " +"the socket to locally. The *local_host* and *local_port* are looked up " "using ``getaddrinfo()``, similarly to *host* and *port*." msgstr "" -#: ../../library/asyncio-eventloop.rst:403 -#: ../../library/asyncio-eventloop.rst:726 +#: ../../library/asyncio-eventloop.rst:405 +#: ../../library/asyncio-eventloop.rst:742 msgid "" "*ssl_handshake_timeout* is (for a TLS connection) the time in seconds to " "wait for the TLS handshake to complete before aborting the connection. " "``60.0`` seconds if ``None`` (default)." msgstr "" -#: ../../library/asyncio-eventloop.rst:409 -#: ../../library/asyncio-eventloop.rst:511 -#: ../../library/asyncio-eventloop.rst:664 +#: ../../library/asyncio-eventloop.rst:411 +#: ../../library/asyncio-eventloop.rst:527 +#: ../../library/asyncio-eventloop.rst:680 msgid "The *ssl_handshake_timeout* parameter." msgstr "" -#: ../../library/asyncio-eventloop.rst:413 -#: ../../library/asyncio-eventloop.rst:594 +#: ../../library/asyncio-eventloop.rst:415 +#: ../../library/asyncio-eventloop.rst:610 msgid "" "The socket option :py:data:`~socket.TCP_NODELAY` is set by default for all " "TCP connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:418 -#: ../../library/asyncio-eventloop.rst:599 +#: ../../library/asyncio-eventloop.rst:420 +#: ../../library/asyncio-eventloop.rst:615 msgid "Added support for SSL/TLS in :class:`ProactorEventLoop`." msgstr "" -#: ../../library/asyncio-eventloop.rst:422 +#: ../../library/asyncio-eventloop.rst:424 msgid "" "The :func:`open_connection` function is a high-level alternative API. It " -"returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be" -" used directly in async/await code." +"returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be " +"used directly in async/await code." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:435 +msgid "" +"The parameter *reuse_address* is no longer supported, as using :py:data:" +"`~sockets.SO_REUSEADDR` poses a significant security concern for UDP. " +"Explicitly passing ``reuse_address=True`` will raise an exception." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:439 +msgid "" +"When multiple processes with differing UIDs assign sockets to an indentical " +"UDP socket address with ``SO_REUSEADDR``, incoming packets can become " +"randomly distributed among the sockets." msgstr "" -#: ../../library/asyncio-eventloop.rst:432 +#: ../../library/asyncio-eventloop.rst:443 +msgid "" +"For supported platforms, *reuse_port* can be used as a replacement for " +"similar functionality. With *reuse_port*, :py:data:`~sockets.SO_REUSEPORT` " +"is used instead, which specifically prevents processes with differing UIDs " +"from assigning sockets to the same socket address." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:449 msgid "Create a datagram connection." msgstr "" -#: ../../library/asyncio-eventloop.rst:434 +#: ../../library/asyncio-eventloop.rst:451 msgid "" -"The socket family can be either :py:data:`~socket.AF_INET`, " -":py:data:`~socket.AF_INET6`, or :py:data:`~socket.AF_UNIX`, depending on " -"*host* (or the *family* argument, if provided)." +"The socket family can be either :py:data:`~socket.AF_INET`, :py:data:" +"`~socket.AF_INET6`, or :py:data:`~socket.AF_UNIX`, depending on *host* (or " +"the *family* argument, if provided)." msgstr "" -#: ../../library/asyncio-eventloop.rst:438 +#: ../../library/asyncio-eventloop.rst:455 msgid "The socket type will be :py:data:`~socket.SOCK_DGRAM`." msgstr "" -#: ../../library/asyncio-eventloop.rst:440 -#: ../../library/asyncio-eventloop.rst:536 -#: ../../library/asyncio-eventloop.rst:647 +#: ../../library/asyncio-eventloop.rst:457 +#: ../../library/asyncio-eventloop.rst:552 +#: ../../library/asyncio-eventloop.rst:663 msgid "" "*protocol_factory* must be a callable returning a :ref:`protocol ` implementation." msgstr "" -#: ../../library/asyncio-eventloop.rst:443 -#: ../../library/asyncio-eventloop.rst:497 +#: ../../library/asyncio-eventloop.rst:460 +#: ../../library/asyncio-eventloop.rst:513 msgid "A tuple of ``(transport, protocol)`` is returned on success." msgstr "" -#: ../../library/asyncio-eventloop.rst:447 +#: ../../library/asyncio-eventloop.rst:464 msgid "" -"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind" -" the socket to locally. The *local_host* and *local_port* are looked up " +"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind " +"the socket to locally. The *local_host* and *local_port* are looked up " "using :meth:`getaddrinfo`." msgstr "" -#: ../../library/asyncio-eventloop.rst:451 +#: ../../library/asyncio-eventloop.rst:468 msgid "" "*remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to " -"connect the socket to a remote address. The *remote_host* and *remote_port*" -" are looked up using :meth:`getaddrinfo`." +"connect the socket to a remote address. The *remote_host* and *remote_port* " +"are looked up using :meth:`getaddrinfo`." msgstr "" -#: ../../library/asyncio-eventloop.rst:455 +#: ../../library/asyncio-eventloop.rst:472 msgid "" "*family*, *proto*, *flags* are the optional address family, protocol and " "flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If " @@ -630,432 +657,436 @@ msgid "" "module constants." msgstr "" -#: ../../library/asyncio-eventloop.rst:460 -#: ../../library/asyncio-eventloop.rst:568 -msgid "" -"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` " -"state, without waiting for its natural timeout to expire. If not specified " -"will automatically be set to ``True`` on Unix." -msgstr "" - -#: ../../library/asyncio-eventloop.rst:465 +#: ../../library/asyncio-eventloop.rst:477 msgid "" -"*reuse_port* tells the kernel to allow this endpoint to be bound to the same" -" port as other existing endpoints are bound to, so long as they all set this" -" flag when being created. This option is not supported on Windows and some " +"*reuse_port* tells the kernel to allow this endpoint to be bound to the same " +"port as other existing endpoints are bound to, so long as they all set this " +"flag when being created. This option is not supported on Windows and some " "Unixes. If the :py:data:`~socket.SO_REUSEPORT` constant is not defined then " "this capability is unsupported." msgstr "" -#: ../../library/asyncio-eventloop.rst:471 +#: ../../library/asyncio-eventloop.rst:483 msgid "" "*allow_broadcast* tells the kernel to allow this endpoint to send messages " "to the broadcast address." msgstr "" -#: ../../library/asyncio-eventloop.rst:474 +#: ../../library/asyncio-eventloop.rst:486 msgid "" "*sock* can optionally be specified in order to use a preexisting, already " "connected, :class:`socket.socket` object to be used by the transport. If " -"specified, *local_addr* and *remote_addr* should be omitted (must be " -":const:`None`)." +"specified, *local_addr* and *remote_addr* should be omitted (must be :const:" +"`None`)." msgstr "" -#: ../../library/asyncio-eventloop.rst:479 +#: ../../library/asyncio-eventloop.rst:491 msgid "" "On Windows, with :class:`ProactorEventLoop`, this method is not supported." msgstr "" -#: ../../library/asyncio-eventloop.rst:481 +#: ../../library/asyncio-eventloop.rst:493 msgid "" -"See :ref:`UDP echo client protocol ` and " -":ref:`UDP echo server protocol ` examples." +"See :ref:`UDP echo client protocol ` and :" +"ref:`UDP echo server protocol ` examples." msgstr "" -#: ../../library/asyncio-eventloop.rst:484 +#: ../../library/asyncio-eventloop.rst:496 msgid "" "The *family*, *proto*, *flags*, *reuse_address*, *reuse_port, " "*allow_broadcast*, and *sock* parameters were added." msgstr "" -#: ../../library/asyncio-eventloop.rst:492 +#: ../../library/asyncio-eventloop.rst:500 +msgid "" +"The *reuse_address* parameter is no longer supported due to security " +"concerns." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:508 msgid "Create a Unix connection." msgstr "" -#: ../../library/asyncio-eventloop.rst:494 +#: ../../library/asyncio-eventloop.rst:510 msgid "" -"The socket family will be :py:data:`~socket.AF_UNIX`; socket type will be " -":py:data:`~socket.SOCK_STREAM`." +"The socket family will be :py:data:`~socket.AF_UNIX`; socket type will be :" +"py:data:`~socket.SOCK_STREAM`." msgstr "" -#: ../../library/asyncio-eventloop.rst:499 +#: ../../library/asyncio-eventloop.rst:515 msgid "" "*path* is the name of a Unix domain socket and is required, unless a *sock* " -"parameter is specified. Abstract Unix sockets, :class:`str`, " -":class:`bytes`, and :class:`~pathlib.Path` paths are supported." +"parameter is specified. Abstract Unix sockets, :class:`str`, :class:" +"`bytes`, and :class:`~pathlib.Path` paths are supported." msgstr "" -#: ../../library/asyncio-eventloop.rst:504 +#: ../../library/asyncio-eventloop.rst:520 msgid "" "See the documentation of the :meth:`loop.create_connection` method for " "information about arguments to this method." msgstr "" -#: ../../library/asyncio-eventloop.rst:508 -#: ../../library/asyncio-eventloop.rst:628 -#: ../../library/asyncio-eventloop.rst:984 +#: ../../library/asyncio-eventloop.rst:524 +#: ../../library/asyncio-eventloop.rst:644 +#: ../../library/asyncio-eventloop.rst:1000 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilidade `: Unix." -#: ../../library/asyncio-eventloop.rst:515 +#: ../../library/asyncio-eventloop.rst:531 msgid "The *path* parameter can now be a :term:`path-like object`." msgstr "" -#: ../../library/asyncio-eventloop.rst:519 +#: ../../library/asyncio-eventloop.rst:535 msgid "Creating network servers" msgstr "" -#: ../../library/asyncio-eventloop.rst:529 +#: ../../library/asyncio-eventloop.rst:545 msgid "" "Create a TCP server (socket type :data:`~socket.SOCK_STREAM`) listening on " "*port* of the *host* address." msgstr "" -#: ../../library/asyncio-eventloop.rst:532 +#: ../../library/asyncio-eventloop.rst:548 msgid "Returns a :class:`Server` object." msgstr "" -#: ../../library/asyncio-eventloop.rst:534 +#: ../../library/asyncio-eventloop.rst:550 msgid "Arguments:" msgstr "" -#: ../../library/asyncio-eventloop.rst:539 +#: ../../library/asyncio-eventloop.rst:555 msgid "" "The *host* parameter can be set to several types which determine where the " "server would be listening:" msgstr "" -#: ../../library/asyncio-eventloop.rst:542 +#: ../../library/asyncio-eventloop.rst:558 msgid "" -"If *host* is a string, the TCP server is bound to a single network interface" -" specified by *host*." +"If *host* is a string, the TCP server is bound to a single network interface " +"specified by *host*." msgstr "" -#: ../../library/asyncio-eventloop.rst:545 +#: ../../library/asyncio-eventloop.rst:561 msgid "" "If *host* is a sequence of strings, the TCP server is bound to all network " "interfaces specified by the sequence." msgstr "" -#: ../../library/asyncio-eventloop.rst:548 +#: ../../library/asyncio-eventloop.rst:564 msgid "" "If *host* is an empty string or ``None``, all interfaces are assumed and a " "list of multiple sockets will be returned (most likely one for IPv4 and " "another one for IPv6)." msgstr "" -#: ../../library/asyncio-eventloop.rst:552 +#: ../../library/asyncio-eventloop.rst:568 msgid "" -"*family* can be set to either :data:`socket.AF_INET` or " -":data:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not " -"set, the *family* will be determined from host name (defaults to " -":data:`~socket.AF_UNSPEC`)." +"*family* can be set to either :data:`socket.AF_INET` or :data:`~socket." +"AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* " +"will be determined from host name (defaults to :data:`~socket.AF_UNSPEC`)." msgstr "" -#: ../../library/asyncio-eventloop.rst:557 +#: ../../library/asyncio-eventloop.rst:573 msgid "*flags* is a bitmask for :meth:`getaddrinfo`." msgstr "" -#: ../../library/asyncio-eventloop.rst:559 +#: ../../library/asyncio-eventloop.rst:575 msgid "" "*sock* can optionally be specified in order to use a preexisting socket " "object. If specified, *host* and *port* must not be specified." msgstr "" -#: ../../library/asyncio-eventloop.rst:562 +#: ../../library/asyncio-eventloop.rst:578 msgid "" -"*backlog* is the maximum number of queued connections passed to " -":meth:`~socket.socket.listen` (defaults to 100)." +"*backlog* is the maximum number of queued connections passed to :meth:" +"`~socket.socket.listen` (defaults to 100)." msgstr "" -#: ../../library/asyncio-eventloop.rst:565 +#: ../../library/asyncio-eventloop.rst:581 msgid "" "*ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over " "the accepted connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:573 +#: ../../library/asyncio-eventloop.rst:584 msgid "" -"*reuse_port* tells the kernel to allow this endpoint to be bound to the same" -" port as other existing endpoints are bound to, so long as they all set this" -" flag when being created. This option is not supported on Windows." +"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` " +"state, without waiting for its natural timeout to expire. If not specified " +"will automatically be set to ``True`` on Unix." msgstr "" -#: ../../library/asyncio-eventloop.rst:578 +#: ../../library/asyncio-eventloop.rst:589 +msgid "" +"*reuse_port* tells the kernel to allow this endpoint to be bound to the same " +"port as other existing endpoints are bound to, so long as they all set this " +"flag when being created. This option is not supported on Windows." +msgstr "" + +#: ../../library/asyncio-eventloop.rst:594 msgid "" "*ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait " "for the TLS handshake to complete before aborting the connection. ``60.0`` " "seconds if ``None`` (default)." msgstr "" -#: ../../library/asyncio-eventloop.rst:582 +#: ../../library/asyncio-eventloop.rst:598 msgid "" "*start_serving* set to ``True`` (the default) causes the created server to " "start accepting connections immediately. When set to ``False``, the user " -"should await on :meth:`Server.start_serving` or :meth:`Server.serve_forever`" -" to make the server to start accepting connections." +"should await on :meth:`Server.start_serving` or :meth:`Server.serve_forever` " +"to make the server to start accepting connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:590 +#: ../../library/asyncio-eventloop.rst:606 msgid "Added *ssl_handshake_timeout* and *start_serving* parameters." msgstr "" -#: ../../library/asyncio-eventloop.rst:603 +#: ../../library/asyncio-eventloop.rst:619 msgid "The *host* parameter can be a sequence of strings." msgstr "" -#: ../../library/asyncio-eventloop.rst:607 +#: ../../library/asyncio-eventloop.rst:623 msgid "" "The :func:`start_server` function is a higher-level alternative API that " "returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can " "be used in an async/await code." msgstr "" -#: ../../library/asyncio-eventloop.rst:616 +#: ../../library/asyncio-eventloop.rst:632 msgid "" -"Similar to :meth:`loop.create_server` but works with the " -":py:data:`~socket.AF_UNIX` socket family." +"Similar to :meth:`loop.create_server` but works with the :py:data:`~socket." +"AF_UNIX` socket family." msgstr "" -#: ../../library/asyncio-eventloop.rst:619 +#: ../../library/asyncio-eventloop.rst:635 msgid "" -"*path* is the name of a Unix domain socket, and is required, unless a *sock*" -" argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`," -" and :class:`~pathlib.Path` paths are supported." +"*path* is the name of a Unix domain socket, and is required, unless a *sock* " +"argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, " +"and :class:`~pathlib.Path` paths are supported." msgstr "" -#: ../../library/asyncio-eventloop.rst:624 +#: ../../library/asyncio-eventloop.rst:640 msgid "" "See the documentation of the :meth:`loop.create_server` method for " "information about arguments to this method." msgstr "" -#: ../../library/asyncio-eventloop.rst:631 +#: ../../library/asyncio-eventloop.rst:647 msgid "The *ssl_handshake_timeout* and *start_serving* parameters." msgstr "" -#: ../../library/asyncio-eventloop.rst:635 +#: ../../library/asyncio-eventloop.rst:651 msgid "The *path* parameter can now be a :class:`~pathlib.Path` object." msgstr "" -#: ../../library/asyncio-eventloop.rst:640 +#: ../../library/asyncio-eventloop.rst:656 msgid "Wrap an already accepted connection into a transport/protocol pair." msgstr "" -#: ../../library/asyncio-eventloop.rst:642 +#: ../../library/asyncio-eventloop.rst:658 msgid "" "This method can be used by servers that accept connections outside of " "asyncio but that use asyncio to handle them." msgstr "" -#: ../../library/asyncio-eventloop.rst:645 -#: ../../library/asyncio-eventloop.rst:712 +#: ../../library/asyncio-eventloop.rst:661 +#: ../../library/asyncio-eventloop.rst:728 msgid "Parameters:" msgstr "" -#: ../../library/asyncio-eventloop.rst:650 +#: ../../library/asyncio-eventloop.rst:666 msgid "" "*sock* is a preexisting socket object returned from :meth:`socket.accept " "`." msgstr "" -#: ../../library/asyncio-eventloop.rst:653 +#: ../../library/asyncio-eventloop.rst:669 msgid "" "*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the " "accepted connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:656 +#: ../../library/asyncio-eventloop.rst:672 msgid "" "*ssl_handshake_timeout* is (for an SSL connection) the time in seconds to " "wait for the SSL handshake to complete before aborting the connection. " "``60.0`` seconds if ``None`` (default)." msgstr "" -#: ../../library/asyncio-eventloop.rst:660 +#: ../../library/asyncio-eventloop.rst:676 msgid "Returns a ``(transport, protocol)`` pair." msgstr "" -#: ../../library/asyncio-eventloop.rst:670 +#: ../../library/asyncio-eventloop.rst:686 msgid "Transferring files" msgstr "" -#: ../../library/asyncio-eventloop.rst:675 +#: ../../library/asyncio-eventloop.rst:691 msgid "" "Send a *file* over a *transport*. Return the total number of bytes sent." msgstr "" -#: ../../library/asyncio-eventloop.rst:678 +#: ../../library/asyncio-eventloop.rst:694 msgid "The method uses high-performance :meth:`os.sendfile` if available." msgstr "" -#: ../../library/asyncio-eventloop.rst:680 +#: ../../library/asyncio-eventloop.rst:696 msgid "*file* must be a regular file object opened in binary mode." msgstr "" -#: ../../library/asyncio-eventloop.rst:682 -#: ../../library/asyncio-eventloop.rst:872 +#: ../../library/asyncio-eventloop.rst:698 +#: ../../library/asyncio-eventloop.rst:888 msgid "" "*offset* tells from where to start reading the file. If specified, *count* " "is the total number of bytes to transmit as opposed to sending the file " -"until EOF is reached. File position is always updated, even when this method" -" raises an error, and :meth:`file.tell() ` can be used to " +"until EOF is reached. File position is always updated, even when this method " +"raises an error, and :meth:`file.tell() ` can be used to " "obtain the actual number of bytes sent." msgstr "" -#: ../../library/asyncio-eventloop.rst:689 +#: ../../library/asyncio-eventloop.rst:705 msgid "" "*fallback* set to ``True`` makes asyncio to manually read and send the file " -"when the platform does not support the sendfile system call (e.g. Windows or" -" SSL socket on Unix)." +"when the platform does not support the sendfile system call (e.g. Windows or " +"SSL socket on Unix)." msgstr "" -#: ../../library/asyncio-eventloop.rst:693 +#: ../../library/asyncio-eventloop.rst:709 msgid "" "Raise :exc:`SendfileNotAvailableError` if the system does not support the " "*sendfile* syscall and *fallback* is ``False``." msgstr "" -#: ../../library/asyncio-eventloop.rst:700 +#: ../../library/asyncio-eventloop.rst:716 msgid "TLS Upgrade" msgstr "" -#: ../../library/asyncio-eventloop.rst:706 +#: ../../library/asyncio-eventloop.rst:722 msgid "Upgrade an existing transport-based connection to TLS." msgstr "" -#: ../../library/asyncio-eventloop.rst:708 +#: ../../library/asyncio-eventloop.rst:724 msgid "" "Return a new transport instance, that the *protocol* must start using " "immediately after the *await*. The *transport* instance passed to the " "*start_tls* method should never be used again." msgstr "" -#: ../../library/asyncio-eventloop.rst:714 +#: ../../library/asyncio-eventloop.rst:730 msgid "" -"*transport* and *protocol* instances that methods like " -":meth:`~loop.create_server` and :meth:`~loop.create_connection` return." +"*transport* and *protocol* instances that methods like :meth:`~loop." +"create_server` and :meth:`~loop.create_connection` return." msgstr "" -#: ../../library/asyncio-eventloop.rst:718 +#: ../../library/asyncio-eventloop.rst:734 msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`." msgstr "" -#: ../../library/asyncio-eventloop.rst:720 +#: ../../library/asyncio-eventloop.rst:736 msgid "" "*server_side* pass ``True`` when a server-side connection is being upgraded " "(like the one created by :meth:`~loop.create_server`)." msgstr "" -#: ../../library/asyncio-eventloop.rst:723 +#: ../../library/asyncio-eventloop.rst:739 msgid "" "*server_hostname*: sets or overrides the host name that the target server's " "certificate will be matched against." msgstr "" -#: ../../library/asyncio-eventloop.rst:734 +#: ../../library/asyncio-eventloop.rst:750 msgid "Watching file descriptors" msgstr "" -#: ../../library/asyncio-eventloop.rst:738 +#: ../../library/asyncio-eventloop.rst:754 msgid "" "Start monitoring the *fd* file descriptor for read availability and invoke " "*callback* with the specified arguments once *fd* is available for reading." msgstr "" -#: ../../library/asyncio-eventloop.rst:744 +#: ../../library/asyncio-eventloop.rst:760 msgid "Stop monitoring the *fd* file descriptor for read availability." msgstr "" -#: ../../library/asyncio-eventloop.rst:748 +#: ../../library/asyncio-eventloop.rst:764 msgid "" "Start monitoring the *fd* file descriptor for write availability and invoke " "*callback* with the specified arguments once *fd* is available for writing." msgstr "" -#: ../../library/asyncio-eventloop.rst:752 -#: ../../library/asyncio-eventloop.rst:971 +#: ../../library/asyncio-eventloop.rst:768 +#: ../../library/asyncio-eventloop.rst:987 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *callback*." msgstr "" -#: ../../library/asyncio-eventloop.rst:757 +#: ../../library/asyncio-eventloop.rst:773 msgid "Stop monitoring the *fd* file descriptor for write availability." msgstr "" -#: ../../library/asyncio-eventloop.rst:759 +#: ../../library/asyncio-eventloop.rst:775 msgid "" -"See also :ref:`Platform Support ` section for some" -" limitations of these methods." +"See also :ref:`Platform Support ` section for some " +"limitations of these methods." msgstr "" -#: ../../library/asyncio-eventloop.rst:764 +#: ../../library/asyncio-eventloop.rst:780 msgid "Working with socket objects directly" msgstr "" -#: ../../library/asyncio-eventloop.rst:766 +#: ../../library/asyncio-eventloop.rst:782 msgid "" -"In general, protocol implementations that use transport-based APIs such as " -":meth:`loop.create_connection` and :meth:`loop.create_server` are faster " -"than implementations that work with sockets directly. However, there are " -"some use cases when performance is not critical, and working with " -":class:`~socket.socket` objects directly is more convenient." +"In general, protocol implementations that use transport-based APIs such as :" +"meth:`loop.create_connection` and :meth:`loop.create_server` are faster than " +"implementations that work with sockets directly. However, there are some use " +"cases when performance is not critical, and working with :class:`~socket." +"socket` objects directly is more convenient." msgstr "" -#: ../../library/asyncio-eventloop.rst:775 +#: ../../library/asyncio-eventloop.rst:791 msgid "" -"Receive up to *nbytes* from *sock*. Asynchronous version of " -":meth:`socket.recv() `." +"Receive up to *nbytes* from *sock*. Asynchronous version of :meth:`socket." +"recv() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:778 +#: ../../library/asyncio-eventloop.rst:794 msgid "Return the received data as a bytes object." msgstr "" -#: ../../library/asyncio-eventloop.rst:780 -#: ../../library/asyncio-eventloop.rst:794 -#: ../../library/asyncio-eventloop.rst:809 -#: ../../library/asyncio-eventloop.rst:822 -#: ../../library/asyncio-eventloop.rst:848 -#: ../../library/asyncio-eventloop.rst:886 +#: ../../library/asyncio-eventloop.rst:796 +#: ../../library/asyncio-eventloop.rst:810 +#: ../../library/asyncio-eventloop.rst:825 +#: ../../library/asyncio-eventloop.rst:838 +#: ../../library/asyncio-eventloop.rst:864 +#: ../../library/asyncio-eventloop.rst:902 msgid "*sock* must be a non-blocking socket." msgstr "" -#: ../../library/asyncio-eventloop.rst:782 +#: ../../library/asyncio-eventloop.rst:798 msgid "" "Even though this method was always documented as a coroutine method, " -"releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this" -" is an ``async def`` method." +"releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this " +"is an ``async def`` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:789 +#: ../../library/asyncio-eventloop.rst:805 msgid "" -"Receive data from *sock* into the *buf* buffer. Modeled after the blocking " -":meth:`socket.recv_into() ` method." +"Receive data from *sock* into the *buf* buffer. Modeled after the blocking :" +"meth:`socket.recv_into() ` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:792 +#: ../../library/asyncio-eventloop.rst:808 msgid "Return the number of bytes written to the buffer." msgstr "" -#: ../../library/asyncio-eventloop.rst:800 +#: ../../library/asyncio-eventloop.rst:816 msgid "" -"Send *data* to the *sock* socket. Asynchronous version of " -":meth:`socket.sendall() `." +"Send *data* to the *sock* socket. Asynchronous version of :meth:`socket." +"sendall() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:803 +#: ../../library/asyncio-eventloop.rst:819 msgid "" "This method continues to send to the socket until either all data in *data* " "has been sent or an error occurs. ``None`` is returned on success. On " @@ -1064,43 +1095,43 @@ msgid "" "the connection." msgstr "" -#: ../../library/asyncio-eventloop.rst:811 +#: ../../library/asyncio-eventloop.rst:827 msgid "" "Even though the method was always documented as a coroutine method, before " "Python 3.7 it returned an :class:`Future`. Since Python 3.7, this is an " "``async def`` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:818 +#: ../../library/asyncio-eventloop.rst:834 msgid "Connect *sock* to a remote socket at *address*." msgstr "" -#: ../../library/asyncio-eventloop.rst:820 +#: ../../library/asyncio-eventloop.rst:836 msgid "" "Asynchronous version of :meth:`socket.connect() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:824 +#: ../../library/asyncio-eventloop.rst:840 msgid "" "``address`` no longer needs to be resolved. ``sock_connect`` will try to " -"check if the *address* is already resolved by calling " -":func:`socket.inet_pton`. If not, :meth:`loop.getaddrinfo` will be used to " -"resolve the *address*." +"check if the *address* is already resolved by calling :func:`socket." +"inet_pton`. If not, :meth:`loop.getaddrinfo` will be used to resolve the " +"*address*." msgstr "" -#: ../../library/asyncio-eventloop.rst:833 +#: ../../library/asyncio-eventloop.rst:849 msgid "" ":meth:`loop.create_connection` and :func:`asyncio.open_connection() " "`." msgstr "" -#: ../../library/asyncio-eventloop.rst:839 +#: ../../library/asyncio-eventloop.rst:855 msgid "" "Accept a connection. Modeled after the blocking :meth:`socket.accept() " "` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:842 +#: ../../library/asyncio-eventloop.rst:858 msgid "" "The socket must be bound to an address and listening for connections. The " "return value is a pair ``(conn, address)`` where *conn* is a *new* socket " @@ -1108,132 +1139,132 @@ msgid "" "the address bound to the socket on the other end of the connection." msgstr "" -#: ../../library/asyncio-eventloop.rst:850 +#: ../../library/asyncio-eventloop.rst:866 msgid "" "Even though the method was always documented as a coroutine method, before " "Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an " "``async def`` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:857 +#: ../../library/asyncio-eventloop.rst:873 msgid ":meth:`loop.create_server` and :func:`start_server`." msgstr "" -#: ../../library/asyncio-eventloop.rst:862 +#: ../../library/asyncio-eventloop.rst:878 msgid "" "Send a file using high-performance :mod:`os.sendfile` if possible. Return " "the total number of bytes sent." msgstr "" -#: ../../library/asyncio-eventloop.rst:865 +#: ../../library/asyncio-eventloop.rst:881 msgid "" "Asynchronous version of :meth:`socket.sendfile() `." msgstr "" -#: ../../library/asyncio-eventloop.rst:867 +#: ../../library/asyncio-eventloop.rst:883 msgid "" -"*sock* must be a non-blocking :const:`socket.SOCK_STREAM` " -":class:`~socket.socket`." +"*sock* must be a non-blocking :const:`socket.SOCK_STREAM` :class:`~socket." +"socket`." msgstr "" -#: ../../library/asyncio-eventloop.rst:870 +#: ../../library/asyncio-eventloop.rst:886 msgid "*file* must be a regular file object open in binary mode." msgstr "" -#: ../../library/asyncio-eventloop.rst:879 +#: ../../library/asyncio-eventloop.rst:895 msgid "" "*fallback*, when set to ``True``, makes asyncio manually read and send the " "file when the platform does not support the sendfile syscall (e.g. Windows " "or SSL socket on Unix)." msgstr "" -#: ../../library/asyncio-eventloop.rst:883 +#: ../../library/asyncio-eventloop.rst:899 msgid "" "Raise :exc:`SendfileNotAvailableError` if the system does not support " "*sendfile* syscall and *fallback* is ``False``." msgstr "" -#: ../../library/asyncio-eventloop.rst:892 +#: ../../library/asyncio-eventloop.rst:908 msgid "DNS" msgstr "" -#: ../../library/asyncio-eventloop.rst:897 +#: ../../library/asyncio-eventloop.rst:913 msgid "Asynchronous version of :meth:`socket.getaddrinfo`." msgstr "" -#: ../../library/asyncio-eventloop.rst:901 +#: ../../library/asyncio-eventloop.rst:917 msgid "Asynchronous version of :meth:`socket.getnameinfo`." msgstr "" -#: ../../library/asyncio-eventloop.rst:903 +#: ../../library/asyncio-eventloop.rst:919 msgid "" "Both *getaddrinfo* and *getnameinfo* methods were always documented to " -"return a coroutine, but prior to Python 3.7 they were, in fact, returning " -":class:`asyncio.Future` objects. Starting with Python 3.7 both methods are " +"return a coroutine, but prior to Python 3.7 they were, in fact, returning :" +"class:`asyncio.Future` objects. Starting with Python 3.7 both methods are " "coroutines." msgstr "" -#: ../../library/asyncio-eventloop.rst:911 +#: ../../library/asyncio-eventloop.rst:927 msgid "Working with pipes" msgstr "" -#: ../../library/asyncio-eventloop.rst:915 +#: ../../library/asyncio-eventloop.rst:931 msgid "Register the read end of *pipe* in the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:920 +#: ../../library/asyncio-eventloop.rst:936 msgid "*pipe* is a :term:`file-like object `." msgstr "" -#: ../../library/asyncio-eventloop.rst:922 +#: ../../library/asyncio-eventloop.rst:938 msgid "" -"Return pair ``(transport, protocol)``, where *transport* supports the " -":class:`ReadTransport` interface and *protocol* is an object instantiated by" -" the *protocol_factory*." +"Return pair ``(transport, protocol)``, where *transport* supports the :class:" +"`ReadTransport` interface and *protocol* is an object instantiated by the " +"*protocol_factory*." msgstr "" -#: ../../library/asyncio-eventloop.rst:926 #: ../../library/asyncio-eventloop.rst:942 +#: ../../library/asyncio-eventloop.rst:958 msgid "" "With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-" "blocking mode." msgstr "" -#: ../../library/asyncio-eventloop.rst:931 +#: ../../library/asyncio-eventloop.rst:947 msgid "Register the write end of *pipe* in the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:936 +#: ../../library/asyncio-eventloop.rst:952 msgid "*pipe* is :term:`file-like object `." msgstr "" -#: ../../library/asyncio-eventloop.rst:938 +#: ../../library/asyncio-eventloop.rst:954 msgid "" -"Return pair ``(transport, protocol)``, where *transport* supports " -":class:`WriteTransport` interface and *protocol* is an object instantiated " -"by the *protocol_factory*." +"Return pair ``(transport, protocol)``, where *transport* supports :class:" +"`WriteTransport` interface and *protocol* is an object instantiated by the " +"*protocol_factory*." msgstr "" -#: ../../library/asyncio-eventloop.rst:947 +#: ../../library/asyncio-eventloop.rst:963 msgid "" ":class:`SelectorEventLoop` does not support the above methods on Windows. " "Use :class:`ProactorEventLoop` instead for Windows." msgstr "" -#: ../../library/asyncio-eventloop.rst:952 +#: ../../library/asyncio-eventloop.rst:968 msgid "" "The :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` methods." msgstr "" -#: ../../library/asyncio-eventloop.rst:957 +#: ../../library/asyncio-eventloop.rst:973 msgid "Unix signals" msgstr "" -#: ../../library/asyncio-eventloop.rst:961 +#: ../../library/asyncio-eventloop.rst:977 msgid "Set *callback* as the handler for the *signum* signal." msgstr "" -#: ../../library/asyncio-eventloop.rst:963 +#: ../../library/asyncio-eventloop.rst:979 msgid "" "The callback will be invoked by *loop*, along with other queued callbacks " "and runnable coroutines of that event loop. Unlike signal handlers " @@ -1241,247 +1272,243 @@ msgid "" "function is allowed to interact with the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:968 +#: ../../library/asyncio-eventloop.rst:984 msgid "" "Raise :exc:`ValueError` if the signal number is invalid or uncatchable. " "Raise :exc:`RuntimeError` if there is a problem setting up the handler." msgstr "" -#: ../../library/asyncio-eventloop.rst:974 +#: ../../library/asyncio-eventloop.rst:990 msgid "" -"Like :func:`signal.signal`, this function must be invoked in the main " -"thread." +"Like :func:`signal.signal`, this function must be invoked in the main thread." msgstr "" -#: ../../library/asyncio-eventloop.rst:979 +#: ../../library/asyncio-eventloop.rst:995 msgid "Remove the handler for the *sig* signal." msgstr "" -#: ../../library/asyncio-eventloop.rst:981 +#: ../../library/asyncio-eventloop.rst:997 msgid "" "Return ``True`` if the signal handler was removed, or ``False`` if no " "handler was set for the given signal." msgstr "" -#: ../../library/asyncio-eventloop.rst:988 +#: ../../library/asyncio-eventloop.rst:1004 msgid "The :mod:`signal` module." msgstr "" -#: ../../library/asyncio-eventloop.rst:992 +#: ../../library/asyncio-eventloop.rst:1008 msgid "Executing code in thread or process pools" msgstr "" -#: ../../library/asyncio-eventloop.rst:996 +#: ../../library/asyncio-eventloop.rst:1012 msgid "Arrange for *func* to be called in the specified executor." msgstr "" -#: ../../library/asyncio-eventloop.rst:998 +#: ../../library/asyncio-eventloop.rst:1014 msgid "" "The *executor* argument should be an :class:`concurrent.futures.Executor` " "instance. The default executor is used if *executor* is ``None``." msgstr "" -#: ../../library/asyncio-eventloop.rst:1042 +#: ../../library/asyncio-eventloop.rst:1058 msgid "This method returns a :class:`asyncio.Future` object." msgstr "" -#: ../../library/asyncio-eventloop.rst:1044 +#: ../../library/asyncio-eventloop.rst:1060 msgid "" "Use :func:`functools.partial` :ref:`to pass keyword arguments ` to *func*." msgstr "" -#: ../../library/asyncio-eventloop.rst:1047 +#: ../../library/asyncio-eventloop.rst:1063 msgid "" -":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the" -" thread pool executor it creates, instead leaving it up to the thread pool " +":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the " +"thread pool executor it creates, instead leaving it up to the thread pool " "executor (:class:`~concurrent.futures.ThreadPoolExecutor`) to set the " "default." msgstr "" -#: ../../library/asyncio-eventloop.rst:1056 +#: ../../library/asyncio-eventloop.rst:1072 msgid "" "Set *executor* as the default executor used by :meth:`run_in_executor`. " -"*executor* should be an instance of " -":class:`~concurrent.futures.ThreadPoolExecutor`." +"*executor* should be an instance of :class:`~concurrent.futures." +"ThreadPoolExecutor`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1060 +#: ../../library/asyncio-eventloop.rst:1076 msgid "" -"Using an executor that is not an instance of " -":class:`~concurrent.futures.ThreadPoolExecutor` is deprecated and will " -"trigger an error in Python 3.9." +"Using an executor that is not an instance of :class:`~concurrent.futures." +"ThreadPoolExecutor` is deprecated and will trigger an error in Python 3.9." msgstr "" -#: ../../library/asyncio-eventloop.rst:1065 +#: ../../library/asyncio-eventloop.rst:1081 msgid "" -"*executor* must be an instance of " -":class:`concurrent.futures.ThreadPoolExecutor`." +"*executor* must be an instance of :class:`concurrent.futures." +"ThreadPoolExecutor`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1070 +#: ../../library/asyncio-eventloop.rst:1086 msgid "Error Handling API" msgstr "" -#: ../../library/asyncio-eventloop.rst:1072 +#: ../../library/asyncio-eventloop.rst:1088 msgid "Allows customizing how exceptions are handled in the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:1076 +#: ../../library/asyncio-eventloop.rst:1092 msgid "Set *handler* as the new event loop exception handler." msgstr "" -#: ../../library/asyncio-eventloop.rst:1078 +#: ../../library/asyncio-eventloop.rst:1094 msgid "" "If *handler* is ``None``, the default exception handler will be set. " -"Otherwise, *handler* must be a callable with the signature matching ``(loop," -" context)``, where ``loop`` is a reference to the active event loop, and " +"Otherwise, *handler* must be a callable with the signature matching ``(loop, " +"context)``, where ``loop`` is a reference to the active event loop, and " "``context`` is a ``dict`` object containing the details of the exception " -"(see :meth:`call_exception_handler` documentation for details about " -"context)." +"(see :meth:`call_exception_handler` documentation for details about context)." msgstr "" -#: ../../library/asyncio-eventloop.rst:1088 +#: ../../library/asyncio-eventloop.rst:1104 msgid "" "Return the current exception handler, or ``None`` if no custom exception " "handler was set." msgstr "" -#: ../../library/asyncio-eventloop.rst:1095 +#: ../../library/asyncio-eventloop.rst:1111 msgid "Default exception handler." msgstr "" -#: ../../library/asyncio-eventloop.rst:1097 +#: ../../library/asyncio-eventloop.rst:1113 msgid "" "This is called when an exception occurs and no exception handler is set. " "This can be called by a custom exception handler that wants to defer to the " "default handler behavior." msgstr "" -#: ../../library/asyncio-eventloop.rst:1101 +#: ../../library/asyncio-eventloop.rst:1117 msgid "" -"*context* parameter has the same meaning as in " -":meth:`call_exception_handler`." +"*context* parameter has the same meaning as in :meth:" +"`call_exception_handler`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1106 +#: ../../library/asyncio-eventloop.rst:1122 msgid "Call the current event loop exception handler." msgstr "" -#: ../../library/asyncio-eventloop.rst:1108 +#: ../../library/asyncio-eventloop.rst:1124 msgid "" "*context* is a ``dict`` object containing the following keys (new keys may " "be introduced in future Python versions):" msgstr "" -#: ../../library/asyncio-eventloop.rst:1111 +#: ../../library/asyncio-eventloop.rst:1127 msgid "'message': Error message;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1112 +#: ../../library/asyncio-eventloop.rst:1128 msgid "'exception' (optional): Exception object;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1113 +#: ../../library/asyncio-eventloop.rst:1129 msgid "'future' (optional): :class:`asyncio.Future` instance;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1114 +#: ../../library/asyncio-eventloop.rst:1130 msgid "'handle' (optional): :class:`asyncio.Handle` instance;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1115 +#: ../../library/asyncio-eventloop.rst:1131 msgid "'protocol' (optional): :ref:`Protocol ` instance;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1116 +#: ../../library/asyncio-eventloop.rst:1132 msgid "'transport' (optional): :ref:`Transport ` instance;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1117 +#: ../../library/asyncio-eventloop.rst:1133 msgid "'socket' (optional): :class:`socket.socket` instance." msgstr "" -#: ../../library/asyncio-eventloop.rst:1121 +#: ../../library/asyncio-eventloop.rst:1137 msgid "" "This method should not be overloaded in subclassed event loops. For custom " "exception handling, use the :meth:`set_exception_handler()` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:1126 +#: ../../library/asyncio-eventloop.rst:1142 msgid "Enabling debug mode" msgstr "" -#: ../../library/asyncio-eventloop.rst:1130 +#: ../../library/asyncio-eventloop.rst:1146 msgid "Get the debug mode (:class:`bool`) of the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:1132 +#: ../../library/asyncio-eventloop.rst:1148 msgid "" -"The default value is ``True`` if the environment variable " -":envvar:`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False`` " -"otherwise." +"The default value is ``True`` if the environment variable :envvar:" +"`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False`` otherwise." msgstr "" -#: ../../library/asyncio-eventloop.rst:1138 +#: ../../library/asyncio-eventloop.rst:1154 msgid "Set the debug mode of the event loop." msgstr "" -#: ../../library/asyncio-eventloop.rst:1142 +#: ../../library/asyncio-eventloop.rst:1158 msgid "" "The new ``-X dev`` command line option can now also be used to enable the " "debug mode." msgstr "" -#: ../../library/asyncio-eventloop.rst:1147 +#: ../../library/asyncio-eventloop.rst:1163 msgid "The :ref:`debug mode of asyncio `." msgstr "" -#: ../../library/asyncio-eventloop.rst:1151 +#: ../../library/asyncio-eventloop.rst:1167 msgid "Running Subprocesses" msgstr "" -#: ../../library/asyncio-eventloop.rst:1153 +#: ../../library/asyncio-eventloop.rst:1169 msgid "" -"Methods described in this subsections are low-level. In regular async/await" -" code consider using the high-level :func:`asyncio.create_subprocess_shell` " +"Methods described in this subsections are low-level. In regular async/await " +"code consider using the high-level :func:`asyncio.create_subprocess_shell` " "and :func:`asyncio.create_subprocess_exec` convenience functions instead." msgstr "" -#: ../../library/asyncio-eventloop.rst:1160 +#: ../../library/asyncio-eventloop.rst:1176 msgid "" -"The default asyncio event loop on **Windows** does not support subprocesses." -" See :ref:`Subprocess Support on Windows ` for " +"The default asyncio event loop on **Windows** does not support subprocesses. " +"See :ref:`Subprocess Support on Windows ` for " "details." msgstr "" -#: ../../library/asyncio-eventloop.rst:1168 +#: ../../library/asyncio-eventloop.rst:1184 msgid "" "Create a subprocess from one or more string arguments specified by *args*." msgstr "" -#: ../../library/asyncio-eventloop.rst:1171 +#: ../../library/asyncio-eventloop.rst:1187 msgid "*args* must be a list of strings represented by:" msgstr "" -#: ../../library/asyncio-eventloop.rst:1173 +#: ../../library/asyncio-eventloop.rst:1189 msgid ":class:`str`;" msgstr "" -#: ../../library/asyncio-eventloop.rst:1174 +#: ../../library/asyncio-eventloop.rst:1190 msgid "" "or :class:`bytes`, encoded to the :ref:`filesystem encoding `." msgstr "" -#: ../../library/asyncio-eventloop.rst:1177 +#: ../../library/asyncio-eventloop.rst:1193 msgid "" -"The first string specifies the program executable, and the remaining strings" -" specify the arguments. Together, string arguments form the ``argv`` of the" -" program." +"The first string specifies the program executable, and the remaining strings " +"specify the arguments. Together, string arguments form the ``argv`` of the " +"program." msgstr "" -#: ../../library/asyncio-eventloop.rst:1181 +#: ../../library/asyncio-eventloop.rst:1197 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=False`` and the list of strings passed as the first " @@ -1489,100 +1516,100 @@ msgid "" "which is list of strings, *subprocess_exec* takes multiple string arguments." msgstr "" -#: ../../library/asyncio-eventloop.rst:1187 +#: ../../library/asyncio-eventloop.rst:1203 msgid "" -"The *protocol_factory* must be a callable returning a subclass of the " -":class:`asyncio.SubprocessProtocol` class." +"The *protocol_factory* must be a callable returning a subclass of the :class:" +"`asyncio.SubprocessProtocol` class." msgstr "" -#: ../../library/asyncio-eventloop.rst:1190 +#: ../../library/asyncio-eventloop.rst:1206 msgid "Other parameters:" msgstr "" -#: ../../library/asyncio-eventloop.rst:1192 +#: ../../library/asyncio-eventloop.rst:1208 msgid "" "*stdin*: either a file-like object representing a pipe to be connected to " -"the subprocess's standard input stream using " -":meth:`~loop.connect_write_pipe`, or the :const:`subprocess.PIPE` constant " -"(default). By default a new pipe will be created and connected." +"the subprocess's standard input stream using :meth:`~loop." +"connect_write_pipe`, or the :const:`subprocess.PIPE` constant (default). By " +"default a new pipe will be created and connected." msgstr "" -#: ../../library/asyncio-eventloop.rst:1198 +#: ../../library/asyncio-eventloop.rst:1214 msgid "" -"*stdout*: either a file-like object representing the pipe to be connected to" -" the subprocess's standard output stream using " -":meth:`~loop.connect_read_pipe`, or the :const:`subprocess.PIPE` constant " -"(default). By default a new pipe will be created and connected." +"*stdout*: either a file-like object representing the pipe to be connected to " +"the subprocess's standard output stream using :meth:`~loop." +"connect_read_pipe`, or the :const:`subprocess.PIPE` constant (default). By " +"default a new pipe will be created and connected." msgstr "" -#: ../../library/asyncio-eventloop.rst:1204 +#: ../../library/asyncio-eventloop.rst:1220 msgid "" -"*stderr*: either a file-like object representing the pipe to be connected to" -" the subprocess's standard error stream using " -":meth:`~loop.connect_read_pipe`, or one of :const:`subprocess.PIPE` " -"(default) or :const:`subprocess.STDOUT` constants." +"*stderr*: either a file-like object representing the pipe to be connected to " +"the subprocess's standard error stream using :meth:`~loop." +"connect_read_pipe`, or one of :const:`subprocess.PIPE` (default) or :const:" +"`subprocess.STDOUT` constants." msgstr "" -#: ../../library/asyncio-eventloop.rst:1210 +#: ../../library/asyncio-eventloop.rst:1226 msgid "" -"By default a new pipe will be created and connected. When " -":const:`subprocess.STDOUT` is specified, the subprocess' standard error " -"stream will be connected to the same pipe as the standard output stream." +"By default a new pipe will be created and connected. When :const:`subprocess." +"STDOUT` is specified, the subprocess' standard error stream will be " +"connected to the same pipe as the standard output stream." msgstr "" -#: ../../library/asyncio-eventloop.rst:1215 +#: ../../library/asyncio-eventloop.rst:1231 msgid "" "All other keyword arguments are passed to :class:`subprocess.Popen` without " "interpretation, except for *bufsize*, *universal_newlines* and *shell*, " "which should not be specified at all." msgstr "" -#: ../../library/asyncio-eventloop.rst:1219 +#: ../../library/asyncio-eventloop.rst:1235 msgid "" -"See the constructor of the :class:`subprocess.Popen` class for documentation" -" on other arguments." +"See the constructor of the :class:`subprocess.Popen` class for documentation " +"on other arguments." msgstr "" -#: ../../library/asyncio-eventloop.rst:1222 +#: ../../library/asyncio-eventloop.rst:1238 msgid "" "Returns a pair of ``(transport, protocol)``, where *transport* conforms to " "the :class:`asyncio.SubprocessTransport` base class and *protocol* is an " "object instantiated by the *protocol_factory*." msgstr "" -#: ../../library/asyncio-eventloop.rst:1230 +#: ../../library/asyncio-eventloop.rst:1246 msgid "" -"Create a subprocess from *cmd*, which can be a :class:`str` or a " -":class:`bytes` string encoded to the :ref:`filesystem encoding `, using the platform's \"shell\" syntax." msgstr "" -#: ../../library/asyncio-eventloop.rst:1235 +#: ../../library/asyncio-eventloop.rst:1251 msgid "" "This is similar to the standard library :class:`subprocess.Popen` class " "called with ``shell=True``." msgstr "" -#: ../../library/asyncio-eventloop.rst:1238 +#: ../../library/asyncio-eventloop.rst:1254 msgid "" -"The *protocol_factory* must be a callable returning a subclass of the " -":class:`SubprocessProtocol` class." +"The *protocol_factory* must be a callable returning a subclass of the :class:" +"`SubprocessProtocol` class." msgstr "" -#: ../../library/asyncio-eventloop.rst:1241 +#: ../../library/asyncio-eventloop.rst:1257 msgid "" "See :meth:`~loop.subprocess_exec` for more details about the remaining " "arguments." msgstr "" -#: ../../library/asyncio-eventloop.rst:1244 +#: ../../library/asyncio-eventloop.rst:1260 msgid "" "Returns a pair of ``(transport, protocol)``, where *transport* conforms to " "the :class:`SubprocessTransport` base class and *protocol* is an object " "instantiated by the *protocol_factory*." msgstr "" -#: ../../library/asyncio-eventloop.rst:1249 +#: ../../library/asyncio-eventloop.rst:1265 msgid "" "It is the application's responsibility to ensure that all whitespace and " "special characters are quoted appropriately to avoid `shell injection " @@ -1592,283 +1619,282 @@ msgid "" "used to construct shell commands." msgstr "" -#: ../../library/asyncio-eventloop.rst:1258 +#: ../../library/asyncio-eventloop.rst:1274 msgid "Callback Handles" msgstr "" -#: ../../library/asyncio-eventloop.rst:1262 +#: ../../library/asyncio-eventloop.rst:1278 msgid "" -"A callback wrapper object returned by :meth:`loop.call_soon`, " -":meth:`loop.call_soon_threadsafe`." +"A callback wrapper object returned by :meth:`loop.call_soon`, :meth:`loop." +"call_soon_threadsafe`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1267 +#: ../../library/asyncio-eventloop.rst:1283 msgid "" -"Cancel the callback. If the callback has already been canceled or executed," -" this method has no effect." +"Cancel the callback. If the callback has already been canceled or executed, " +"this method has no effect." msgstr "" -#: ../../library/asyncio-eventloop.rst:1272 +#: ../../library/asyncio-eventloop.rst:1288 msgid "Return ``True`` if the callback was cancelled." msgstr "" -#: ../../library/asyncio-eventloop.rst:1278 +#: ../../library/asyncio-eventloop.rst:1294 msgid "" -"A callback wrapper object returned by :meth:`loop.call_later`, and " -":meth:`loop.call_at`." +"A callback wrapper object returned by :meth:`loop.call_later`, and :meth:" +"`loop.call_at`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1281 +#: ../../library/asyncio-eventloop.rst:1297 msgid "This class is a subclass of :class:`Handle`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1285 +#: ../../library/asyncio-eventloop.rst:1301 msgid "Return a scheduled callback time as :class:`float` seconds." msgstr "" -#: ../../library/asyncio-eventloop.rst:1287 +#: ../../library/asyncio-eventloop.rst:1303 msgid "" -"The time is an absolute timestamp, using the same time reference as " -":meth:`loop.time`." +"The time is an absolute timestamp, using the same time reference as :meth:" +"`loop.time`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1294 +#: ../../library/asyncio-eventloop.rst:1310 msgid "Server Objects" msgstr "" -#: ../../library/asyncio-eventloop.rst:1296 +#: ../../library/asyncio-eventloop.rst:1312 msgid "" -"Server objects are created by :meth:`loop.create_server`, " -":meth:`loop.create_unix_server`, :func:`start_server`, and " -":func:`start_unix_server` functions." +"Server objects are created by :meth:`loop.create_server`, :meth:`loop." +"create_unix_server`, :func:`start_server`, and :func:`start_unix_server` " +"functions." msgstr "" -#: ../../library/asyncio-eventloop.rst:1300 +#: ../../library/asyncio-eventloop.rst:1316 msgid "Do not instantiate the class directly." msgstr "" -#: ../../library/asyncio-eventloop.rst:1304 +#: ../../library/asyncio-eventloop.rst:1320 msgid "" -"*Server* objects are asynchronous context managers. When used in an ``async" -" with`` statement, it's guaranteed that the Server object is closed and not " +"*Server* objects are asynchronous context managers. When used in an ``async " +"with`` statement, it's guaranteed that the Server object is closed and not " "accepting new connections when the ``async with`` statement is completed::" msgstr "" -#: ../../library/asyncio-eventloop.rst:1317 +#: ../../library/asyncio-eventloop.rst:1333 msgid "Server object is an asynchronous context manager since Python 3.7." msgstr "" -#: ../../library/asyncio-eventloop.rst:1322 +#: ../../library/asyncio-eventloop.rst:1338 msgid "" "Stop serving: close listening sockets and set the :attr:`sockets` attribute " "to ``None``." msgstr "" -#: ../../library/asyncio-eventloop.rst:1325 +#: ../../library/asyncio-eventloop.rst:1341 msgid "" "The sockets that represent existing incoming client connections are left " "open." msgstr "" -#: ../../library/asyncio-eventloop.rst:1328 +#: ../../library/asyncio-eventloop.rst:1344 msgid "" "The server is closed asynchronously, use the :meth:`wait_closed` coroutine " "to wait until the server is closed." msgstr "" -#: ../../library/asyncio-eventloop.rst:1333 +#: ../../library/asyncio-eventloop.rst:1349 msgid "Return the event loop associated with the server object." msgstr "" -#: ../../library/asyncio-eventloop.rst:1339 +#: ../../library/asyncio-eventloop.rst:1355 msgid "Start accepting connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:1341 +#: ../../library/asyncio-eventloop.rst:1357 msgid "" "This method is idempotent, so it can be called when the server is already " "being serving." msgstr "" -#: ../../library/asyncio-eventloop.rst:1344 +#: ../../library/asyncio-eventloop.rst:1360 msgid "" -"The *start_serving* keyword-only parameter to :meth:`loop.create_server` and" -" :meth:`asyncio.start_server` allows creating a Server object that is not " +"The *start_serving* keyword-only parameter to :meth:`loop.create_server` " +"and :meth:`asyncio.start_server` allows creating a Server object that is not " "accepting connections initially. In this case ``Server.start_serving()``, " "or :meth:`Server.serve_forever` can be used to make the Server start " "accepting connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:1355 +#: ../../library/asyncio-eventloop.rst:1371 msgid "" "Start accepting connections until the coroutine is cancelled. Cancellation " "of ``serve_forever`` task causes the server to be closed." msgstr "" -#: ../../library/asyncio-eventloop.rst:1359 +#: ../../library/asyncio-eventloop.rst:1375 msgid "" "This method can be called if the server is already accepting connections. " "Only one ``serve_forever`` task can exist per one *Server* object." msgstr "" -#: ../../library/asyncio-eventloop.rst:1381 +#: ../../library/asyncio-eventloop.rst:1397 msgid "Return ``True`` if the server is accepting new connections." msgstr "" -#: ../../library/asyncio-eventloop.rst:1387 +#: ../../library/asyncio-eventloop.rst:1403 msgid "Wait until the :meth:`close` method completes." msgstr "" -#: ../../library/asyncio-eventloop.rst:1391 +#: ../../library/asyncio-eventloop.rst:1407 msgid "" "List of :class:`socket.socket` objects the server is listening on, or " "``None`` if the server is closed." msgstr "" -#: ../../library/asyncio-eventloop.rst:1394 +#: ../../library/asyncio-eventloop.rst:1410 msgid "" "Prior to Python 3.7 ``Server.sockets`` used to return an internal list of " "server sockets directly. In 3.7 a copy of that list is returned." msgstr "" -#: ../../library/asyncio-eventloop.rst:1403 +#: ../../library/asyncio-eventloop.rst:1419 msgid "Event Loop Implementations" msgstr "" -#: ../../library/asyncio-eventloop.rst:1405 +#: ../../library/asyncio-eventloop.rst:1421 msgid "" -"asyncio ships with two different event loop implementations: " -":class:`SelectorEventLoop` and :class:`ProactorEventLoop`." +"asyncio ships with two different event loop implementations: :class:" +"`SelectorEventLoop` and :class:`ProactorEventLoop`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1408 +#: ../../library/asyncio-eventloop.rst:1424 msgid "" "By default asyncio is configured to use :class:`SelectorEventLoop` on all " "platforms." msgstr "" -#: ../../library/asyncio-eventloop.rst:1414 +#: ../../library/asyncio-eventloop.rst:1430 msgid "An event loop based on the :mod:`selectors` module." msgstr "" -#: ../../library/asyncio-eventloop.rst:1416 +#: ../../library/asyncio-eventloop.rst:1432 msgid "" "Uses the most efficient *selector* available for the given platform. It is " "also possible to manually configure the exact selector implementation to be " "used::" msgstr "" -#: ../../library/asyncio-eventloop.rst:1428 +#: ../../library/asyncio-eventloop.rst:1444 msgid ":ref:`Availability `: Unix, Windows." msgstr ":ref:`Disponibilidade`: Unix, Windows." -#: ../../library/asyncio-eventloop.rst:1433 +#: ../../library/asyncio-eventloop.rst:1449 msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)." msgstr "" -#: ../../library/asyncio-eventloop.rst:1436 +#: ../../library/asyncio-eventloop.rst:1452 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." -#: ../../library/asyncio-eventloop.rst:1437 +#: ../../library/asyncio-eventloop.rst:1453 msgid "An example how to use :class:`ProactorEventLoop` on Windows::" msgstr "" -#: ../../library/asyncio-eventloop.rst:1448 +#: ../../library/asyncio-eventloop.rst:1464 msgid "" "`MSDN documentation on I/O Completion Ports `_." msgstr "" -#: ../../library/asyncio-eventloop.rst:1454 +#: ../../library/asyncio-eventloop.rst:1470 msgid "Abstract base class for asyncio-compliant event loops." msgstr "" -#: ../../library/asyncio-eventloop.rst:1456 +#: ../../library/asyncio-eventloop.rst:1472 msgid "" -"The :ref:`Event Loop Methods ` section lists all methods" -" that an alternative implementation of ``AbstractEventLoop`` should have " +"The :ref:`Event Loop Methods ` section lists all methods " +"that an alternative implementation of ``AbstractEventLoop`` should have " "defined." msgstr "" -#: ../../library/asyncio-eventloop.rst:1462 +#: ../../library/asyncio-eventloop.rst:1478 msgid "Examples" msgstr "Exemplos" -#: ../../library/asyncio-eventloop.rst:1464 +#: ../../library/asyncio-eventloop.rst:1480 msgid "" "Note that all examples in this section **purposefully** show how to use the " -"low-level event loop APIs, such as :meth:`loop.run_forever` and " -":meth:`loop.call_soon`. Modern asyncio applications rarely need to be " -"written this way; consider using the high-level functions like " -":func:`asyncio.run`." +"low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop." +"call_soon`. Modern asyncio applications rarely need to be written this way; " +"consider using the high-level functions like :func:`asyncio.run`." msgstr "" -#: ../../library/asyncio-eventloop.rst:1474 +#: ../../library/asyncio-eventloop.rst:1490 msgid "Hello World with call_soon()" msgstr "" -#: ../../library/asyncio-eventloop.rst:1476 +#: ../../library/asyncio-eventloop.rst:1492 msgid "" "An example using the :meth:`loop.call_soon` method to schedule a callback. " "The callback displays ``\"Hello World\"`` and then stops the event loop::" msgstr "" -#: ../../library/asyncio-eventloop.rst:1500 +#: ../../library/asyncio-eventloop.rst:1516 msgid "" "A similar :ref:`Hello World ` example created with a coroutine " "and the :func:`run` function." msgstr "" -#: ../../library/asyncio-eventloop.rst:1507 +#: ../../library/asyncio-eventloop.rst:1523 msgid "Display the current date with call_later()" msgstr "" -#: ../../library/asyncio-eventloop.rst:1509 +#: ../../library/asyncio-eventloop.rst:1525 msgid "" "An example of a callback displaying the current date every second. The " "callback uses the :meth:`loop.call_later` method to reschedule itself after " "5 seconds, and then stops the event loop::" msgstr "" -#: ../../library/asyncio-eventloop.rst:1537 +#: ../../library/asyncio-eventloop.rst:1553 msgid "" -"A similar :ref:`current date ` example created with a" -" coroutine and the :func:`run` function." +"A similar :ref:`current date ` example created with a " +"coroutine and the :func:`run` function." msgstr "" -#: ../../library/asyncio-eventloop.rst:1544 +#: ../../library/asyncio-eventloop.rst:1560 msgid "Watch a file descriptor for read events" msgstr "" -#: ../../library/asyncio-eventloop.rst:1546 +#: ../../library/asyncio-eventloop.rst:1562 msgid "" -"Wait until a file descriptor received some data using the " -":meth:`loop.add_reader` method and then close the event loop::" +"Wait until a file descriptor received some data using the :meth:`loop." +"add_reader` method and then close the event loop::" msgstr "" -#: ../../library/asyncio-eventloop.rst:1584 +#: ../../library/asyncio-eventloop.rst:1600 msgid "" "A similar :ref:`example ` using " "transports, protocols, and the :meth:`loop.create_connection` method." msgstr "" -#: ../../library/asyncio-eventloop.rst:1588 +#: ../../library/asyncio-eventloop.rst:1604 msgid "" "Another similar :ref:`example ` " "using the high-level :func:`asyncio.open_connection` function and streams." msgstr "" -#: ../../library/asyncio-eventloop.rst:1596 +#: ../../library/asyncio-eventloop.rst:1612 msgid "Set signal handlers for SIGINT and SIGTERM" msgstr "" -#: ../../library/asyncio-eventloop.rst:1598 +#: ../../library/asyncio-eventloop.rst:1614 msgid "(This ``signals`` example only works on Unix.)" msgstr "" -#: ../../library/asyncio-eventloop.rst:1600 +#: ../../library/asyncio-eventloop.rst:1616 msgid "" -"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using" -" the :meth:`loop.add_signal_handler` method::" +"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using " +"the :meth:`loop.add_signal_handler` method::" msgstr "" diff --git a/library/asyncio-eventloops.po b/library/asyncio-eventloops.po deleted file mode 100644 index 5ac883cad..000000000 --- a/library/asyncio-eventloops.po +++ /dev/null @@ -1,338 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -# Translators: -# felipe caridade , 2019 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.7\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-30 05:56+0900\n" -"PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: ../../library/asyncio-eventloops.rst:4 -msgid "Event loops" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:6 -msgid "**Source code:** :source:`Lib/asyncio/events.py`" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:9 -msgid "Event loop functions" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:11 -msgid "" -"The following functions are convenient shortcuts to accessing the methods of" -" the global policy. Note that this provides access to the default policy, " -"unless an alternative policy was set by calling " -":func:`set_event_loop_policy` earlier in the execution of the process." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:18 -msgid "Equivalent to calling ``get_event_loop_policy().get_event_loop()``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:22 -msgid "" -"Equivalent to calling ``get_event_loop_policy().set_event_loop(loop)``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:26 -msgid "Equivalent to calling ``get_event_loop_policy().new_event_loop()``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:30 -msgid "" -"Return the running event loop in the current OS thread. If there is no " -"running event loop a :exc:`RuntimeError` is raised." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:39 -msgid "Available event loops" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:41 -msgid "" -"asyncio currently provides two implementations of event loops: " -":class:`SelectorEventLoop` and :class:`ProactorEventLoop`." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:46 -msgid "" -"Event loop based on the :mod:`selectors` module. Subclass of " -":class:`AbstractEventLoop`." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:49 -msgid "Use the most efficient selector available on the platform." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:51 -msgid "" -"On Windows, only sockets are supported (ex: pipes are not supported): see " -"the `MSDN documentation of select `_." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:57 -msgid "" -"Proactor event loop for Windows using \"I/O Completion Ports\" aka IOCP. " -"Subclass of :class:`AbstractEventLoop`." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:60 -msgid "Availability: Windows." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:64 -msgid "" -"`MSDN documentation on I/O Completion Ports `_." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:67 -msgid "Example to use a :class:`ProactorEventLoop` on Windows::" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:78 -msgid "Platform support" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:80 -msgid "" -"The :mod:`asyncio` module has been designed to be portable, but each " -"platform still has subtle differences and may not support all :mod:`asyncio`" -" features." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:84 -msgid "Windows" -msgstr "Windows" - -#: ../../library/asyncio-eventloops.rst:86 -msgid "Common limits of Windows event loops:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:88 -msgid "" -":meth:`~AbstractEventLoop.create_unix_connection` and " -":meth:`~AbstractEventLoop.create_unix_server` are not supported: the socket " -"family :data:`socket.AF_UNIX` is specific to UNIX" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:91 -msgid "" -":meth:`~AbstractEventLoop.add_signal_handler` and " -":meth:`~AbstractEventLoop.remove_signal_handler` are not supported" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:93 -msgid "" -":meth:`EventLoopPolicy.set_child_watcher` is not supported. " -":class:`ProactorEventLoop` supports subprocesses. It has only one " -"implementation to watch child processes, there is no need to configure it." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:97 -msgid ":class:`SelectorEventLoop` specific limits:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:99 -msgid "" -":class:`~selectors.SelectSelector` is used which only supports sockets and " -"is limited to 512 sockets." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:101 -msgid "" -":meth:`~AbstractEventLoop.add_reader` and " -":meth:`~AbstractEventLoop.add_writer` only accept file descriptors of " -"sockets" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:103 -msgid "" -"Pipes are not supported (ex: :meth:`~AbstractEventLoop.connect_read_pipe`, " -":meth:`~AbstractEventLoop.connect_write_pipe`)" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:106 -msgid "" -":ref:`Subprocesses ` are not supported (ex: " -":meth:`~AbstractEventLoop.subprocess_exec`, " -":meth:`~AbstractEventLoop.subprocess_shell`)" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:110 -msgid ":class:`ProactorEventLoop` specific limits:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:112 -msgid "" -":meth:`~AbstractEventLoop.create_datagram_endpoint` (UDP) is not supported" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:113 -msgid "" -":meth:`~AbstractEventLoop.add_reader` and " -":meth:`~AbstractEventLoop.add_writer` are not supported" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:116 -msgid "" -"The resolution of the monotonic clock on Windows is usually around 15.6 " -"msec. The best resolution is 0.5 msec. The resolution depends on the " -"hardware (availability of `HPET " -"`_) and on the " -"Windows configuration. See :ref:`asyncio delayed calls `." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:124 -msgid ":class:`ProactorEventLoop` now supports SSL." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:128 -msgid "Mac OS X" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:130 -msgid "" -"Character devices like PTY are only well supported since Mavericks (Mac OS " -"10.9). They are not supported at all on Mac OS 10.5 and older." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:133 -msgid "" -"On Mac OS 10.6, 10.7 and 10.8, the default event loop is " -":class:`SelectorEventLoop` which uses :class:`selectors.KqueueSelector`. " -":class:`selectors.KqueueSelector` does not support character devices on " -"these versions. The :class:`SelectorEventLoop` can be used with " -":class:`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to " -"support character devices on these versions of Mac OS X. Example::" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:149 -msgid "Event loop policies and the default policy" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:151 -msgid "" -"Event loop management is abstracted with a *policy* pattern, to provide " -"maximal flexibility for custom platforms and frameworks. Throughout the " -"execution of a process, a single global policy object manages the event " -"loops available to the process based on the calling context. A policy is an " -"object implementing the :class:`AbstractEventLoopPolicy` interface." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:157 -msgid "" -"For most users of :mod:`asyncio`, policies never have to be dealt with " -"explicitly, since the default global policy is sufficient (see below)." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:160 -msgid "" -"The module-level functions :func:`get_event_loop` and :func:`set_event_loop`" -" provide convenient access to event loops managed by the default policy." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:166 -msgid "Event loop policy interface" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:168 -msgid "An event loop policy must implement the following interface:" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:172 -msgid "Event loop policy." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:176 -msgid "Get the event loop for the current context." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:178 -msgid "" -"Returns an event loop object implementing the :class:`AbstractEventLoop` " -"interface. In case called from coroutine, it returns the currently running " -"event loop." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:182 -msgid "" -"Raises an exception in case no event loop has been set for the current " -"context and the current policy does not specify to create one. It must never" -" return ``None``." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:190 -msgid "Set the event loop for the current context to *loop*." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:194 -msgid "" -"Create and return a new event loop object according to this policy's rules." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:197 -msgid "" -"If there's need to set this loop as the event loop for the current context, " -":meth:`set_event_loop` must be called explicitly." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:201 -msgid "" -"The default policy defines context as the current thread, and manages an " -"event loop per thread that interacts with :mod:`asyncio`. An exception to " -"this rule happens when :meth:`~AbstractEventLoopPolicy.get_event_loop` is " -"called from a running future/coroutine, in which case it will return the " -"current loop running that future/coroutine." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:207 -msgid "" -"If the current thread doesn't already have an event loop associated with it," -" the default policy's :meth:`~AbstractEventLoopPolicy.get_event_loop` method" -" creates one when called from the main thread, but raises " -":exc:`RuntimeError` otherwise." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:214 -msgid "Access to the global loop policy" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:218 -msgid "Get the current event loop policy." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:222 -msgid "" -"Set the current event loop policy. If *policy* is ``None``, the default " -"policy is restored." -msgstr "" - -#: ../../library/asyncio-eventloops.rst:227 -msgid "Customizing the event loop policy" -msgstr "" - -#: ../../library/asyncio-eventloops.rst:229 -msgid "" -"To implement a new event loop policy, it is recommended you subclass the " -"concrete default event loop policy :class:`DefaultEventLoopPolicy` and " -"override the methods for which you want to change behavior, for example::" -msgstr "" diff --git a/library/asyncio-exceptions.po b/library/asyncio-exceptions.po index eaac353a1..f1159b977 100644 --- a/library/asyncio-exceptions.po +++ b/library/asyncio-exceptions.po @@ -1,101 +1,107 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Leticia Portella , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:31+0000\n" +"Last-Translator: Leticia Portella , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/asyncio-exceptions.rst:8 +#: ../../library/asyncio-exceptions.rst:8 msgid "Exceptions" -msgstr "" +msgstr "Exceções" -#: ../Doc/library/asyncio-exceptions.rst:13 +#: ../../library/asyncio-exceptions.rst:13 msgid "The operation has exceeded the given deadline." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:16 +#: ../../library/asyncio-exceptions.rst:16 msgid "" "This exception is different from the builtin :exc:`TimeoutError` exception." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:22 +#: ../../library/asyncio-exceptions.rst:22 msgid "The operation has been cancelled." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:24 +#: ../../library/asyncio-exceptions.rst:24 msgid "" "This exception can be caught to perform custom operations when asyncio Tasks " "are cancelled. In almost all situations the exception must be re-raised." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:30 +#: ../../library/asyncio-exceptions.rst:30 msgid "" "This exception is a subclass of :exc:`Exception`, so it can be accidentally " "suppressed by an overly broad ``try..except`` block::" msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:40 +#: ../../library/asyncio-exceptions.rst:40 msgid "Instead, the following pattern should be used::" msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:52 +#: ../../library/asyncio-exceptions.rst:52 msgid "Invalid internal state of :class:`Task` or :class:`Future`." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:54 +#: ../../library/asyncio-exceptions.rst:54 msgid "" "Can be raised in situations like setting a result value for a *Future* " "object that already has a result value set." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:60 +#: ../../library/asyncio-exceptions.rst:60 msgid "" "The \"sendfile\" syscall is not available for the given socket or file type." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:63 +#: ../../library/asyncio-exceptions.rst:63 msgid "A subclass of :exc:`RuntimeError`." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:68 +#: ../../library/asyncio-exceptions.rst:68 msgid "The requested read operation did not complete fully." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:70 +#: ../../library/asyncio-exceptions.rst:70 msgid "Raised by the :ref:`asyncio stream APIs`." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:72 +#: ../../library/asyncio-exceptions.rst:72 msgid "This exception is a subclass of :exc:`EOFError`." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:76 +#: ../../library/asyncio-exceptions.rst:76 msgid "The total number (:class:`int`) of expected bytes." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:80 +#: ../../library/asyncio-exceptions.rst:80 msgid "A string of :class:`bytes` read before the end of stream was reached." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:85 +#: ../../library/asyncio-exceptions.rst:85 msgid "Reached the buffer size limit while looking for a separator." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:87 +#: ../../library/asyncio-exceptions.rst:87 msgid "Raised by the :ref:`asyncio stream APIs `." msgstr "" -#: ../Doc/library/asyncio-exceptions.rst:91 +#: ../../library/asyncio-exceptions.rst:91 msgid "The total number of to be consumed bytes." msgstr "" diff --git a/library/asyncio-future.po b/library/asyncio-future.po index 114793104..5ef663088 100644 --- a/library/asyncio-future.po +++ b/library/asyncio-future.po @@ -1,118 +1,125 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:10+0000\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/asyncio-future.rst:8 +#: ../../library/asyncio-future.rst:8 msgid "Futures" msgstr "" -#: ../Doc/library/asyncio-future.rst:10 +#: ../../library/asyncio-future.rst:10 msgid "" "*Future* objects are used to bridge **low-level callback-based code** with " "high-level async/await code." msgstr "" -#: ../Doc/library/asyncio-future.rst:15 +#: ../../library/asyncio-future.rst:15 msgid "Future Functions" msgstr "" -#: ../Doc/library/asyncio-future.rst:19 +#: ../../library/asyncio-future.rst:19 msgid "Return ``True`` if *obj* is either of:" msgstr "" -#: ../Doc/library/asyncio-future.rst:21 +#: ../../library/asyncio-future.rst:21 msgid "an instance of :class:`asyncio.Future`," msgstr "" -#: ../Doc/library/asyncio-future.rst:22 +#: ../../library/asyncio-future.rst:22 msgid "an instance of :class:`asyncio.Task`," msgstr "" -#: ../Doc/library/asyncio-future.rst:23 +#: ../../library/asyncio-future.rst:23 msgid "a Future-like object with a ``_asyncio_future_blocking`` attribute." msgstr "" -#: ../Doc/library/asyncio-future.rst:31 +#: ../../library/asyncio-future.rst:31 msgid "Return:" msgstr "" -#: ../Doc/library/asyncio-future.rst:33 +#: ../../library/asyncio-future.rst:33 msgid "" "*obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a " "Future-like object (:func:`isfuture` is used for the test.)" msgstr "" -#: ../Doc/library/asyncio-future.rst:37 +#: ../../library/asyncio-future.rst:37 msgid "" "a :class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:" -"`iscoroutine` is used for the test.)" +"`iscoroutine` is used for the test); in this case the coroutine will be " +"scheduled by ``ensure_future()``." msgstr "" -#: ../Doc/library/asyncio-future.rst:40 +#: ../../library/asyncio-future.rst:42 msgid "" "a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:" "func:`inspect.isawaitable` is used for the test.)" msgstr "" -#: ../Doc/library/asyncio-future.rst:43 +#: ../../library/asyncio-future.rst:45 msgid "If *obj* is neither of the above a :exc:`TypeError` is raised." msgstr "" -#: ../Doc/library/asyncio-future.rst:47 +#: ../../library/asyncio-future.rst:49 msgid "" "See also the :func:`create_task` function which is the preferred way for " "creating new Tasks." msgstr "" -#: ../Doc/library/asyncio-future.rst:50 +#: ../../library/asyncio-future.rst:52 msgid "The function accepts any :term:`awaitable` object." msgstr "" -#: ../Doc/library/asyncio-future.rst:56 +#: ../../library/asyncio-future.rst:58 msgid "" "Wrap a :class:`concurrent.futures.Future` object in a :class:`asyncio." "Future` object." msgstr "" -#: ../Doc/library/asyncio-future.rst:61 +#: ../../library/asyncio-future.rst:63 msgid "Future Object" msgstr "" -#: ../Doc/library/asyncio-future.rst:65 +#: ../../library/asyncio-future.rst:67 msgid "" "A Future represents an eventual result of an asynchronous operation. Not " "thread-safe." msgstr "" -#: ../Doc/library/asyncio-future.rst:68 +#: ../../library/asyncio-future.rst:70 msgid "" "Future is an :term:`awaitable` object. Coroutines can await on Future " "objects until they either have a result or an exception set, or until they " "are cancelled." msgstr "" -#: ../Doc/library/asyncio-future.rst:72 +#: ../../library/asyncio-future.rst:74 msgid "" "Typically Futures are used to enable low-level callback-based code (e.g. in " "protocols implemented using asyncio :ref:`transports `) to interoperate with high-level async/await code." msgstr "" -#: ../Doc/library/asyncio-future.rst:77 +#: ../../library/asyncio-future.rst:79 msgid "" "The rule of thumb is to never expose Future objects in user-facing APIs, and " "the recommended way to create a Future object is to call :meth:`loop." @@ -120,182 +127,184 @@ msgid "" "their own optimized implementations of a Future object." msgstr "" -#: ../Doc/library/asyncio-future.rst:83 +#: ../../library/asyncio-future.rst:85 msgid "Added support for the :mod:`contextvars` module." msgstr "" -#: ../Doc/library/asyncio-future.rst:88 +#: ../../library/asyncio-future.rst:90 msgid "Return the result of the Future." msgstr "" -#: ../Doc/library/asyncio-future.rst:90 +#: ../../library/asyncio-future.rst:92 msgid "" "If the Future is *done* and has a result set by the :meth:`set_result` " "method, the result value is returned." msgstr "" -#: ../Doc/library/asyncio-future.rst:93 +#: ../../library/asyncio-future.rst:95 msgid "" "If the Future is *done* and has an exception set by the :meth:" "`set_exception` method, this method raises the exception." msgstr "" -#: ../Doc/library/asyncio-future.rst:96 ../Doc/library/asyncio-future.rst:181 +#: ../../library/asyncio-future.rst:98 ../../library/asyncio-future.rst:183 msgid "" "If the Future has been *cancelled*, this method raises a :exc:" "`CancelledError` exception." msgstr "" +"Se o futuro foi *cancelled*, este método levanta uma exceção :exc:" +"`CancelledError`." -#: ../Doc/library/asyncio-future.rst:99 +#: ../../library/asyncio-future.rst:101 msgid "" "If the Future's result isn't yet available, this method raises a :exc:" "`InvalidStateError` exception." msgstr "" -#: ../Doc/library/asyncio-future.rst:104 +#: ../../library/asyncio-future.rst:106 msgid "Mark the Future as *done* and set its result." msgstr "" -#: ../Doc/library/asyncio-future.rst:106 ../Doc/library/asyncio-future.rst:113 +#: ../../library/asyncio-future.rst:108 ../../library/asyncio-future.rst:115 msgid "" "Raises a :exc:`InvalidStateError` error if the Future is already *done*." msgstr "" -#: ../Doc/library/asyncio-future.rst:111 +#: ../../library/asyncio-future.rst:113 msgid "Mark the Future as *done* and set an exception." msgstr "" -#: ../Doc/library/asyncio-future.rst:118 +#: ../../library/asyncio-future.rst:120 msgid "Return ``True`` if the Future is *done*." msgstr "" -#: ../Doc/library/asyncio-future.rst:120 +#: ../../library/asyncio-future.rst:122 msgid "" "A Future is *done* if it was *cancelled* or if it has a result or an " "exception set with :meth:`set_result` or :meth:`set_exception` calls." msgstr "" -#: ../Doc/library/asyncio-future.rst:126 +#: ../../library/asyncio-future.rst:128 msgid "Return ``True`` if the Future was *cancelled*." msgstr "" -#: ../Doc/library/asyncio-future.rst:128 +#: ../../library/asyncio-future.rst:130 msgid "" "The method is usually used to check if a Future is not *cancelled* before " "setting a result or an exception for it::" msgstr "" -#: ../Doc/library/asyncio-future.rst:136 +#: ../../library/asyncio-future.rst:138 msgid "Add a callback to be run when the Future is *done*." msgstr "" -#: ../Doc/library/asyncio-future.rst:138 +#: ../../library/asyncio-future.rst:140 msgid "The *callback* is called with the Future object as its only argument." msgstr "" -#: ../Doc/library/asyncio-future.rst:141 +#: ../../library/asyncio-future.rst:143 msgid "" "If the Future is already *done* when this method is called, the callback is " "scheduled with :meth:`loop.call_soon`." msgstr "" -#: ../Doc/library/asyncio-future.rst:144 +#: ../../library/asyncio-future.rst:146 msgid "" "An optional keyword-only *context* argument allows specifying a custom :" "class:`contextvars.Context` for the *callback* to run in. The current " "context is used when no *context* is provided." msgstr "" -#: ../Doc/library/asyncio-future.rst:148 +#: ../../library/asyncio-future.rst:150 msgid "" ":func:`functools.partial` can be used to pass parameters to the callback, e." "g.::" msgstr "" -#: ../Doc/library/asyncio-future.rst:155 +#: ../../library/asyncio-future.rst:157 msgid "" "The *context* keyword-only parameter was added. See :pep:`567` for more " "details." msgstr "" -#: ../Doc/library/asyncio-future.rst:161 +#: ../../library/asyncio-future.rst:163 msgid "Remove *callback* from the callbacks list." msgstr "" -#: ../Doc/library/asyncio-future.rst:163 +#: ../../library/asyncio-future.rst:165 msgid "" "Returns the number of callbacks removed, which is typically 1, unless a " "callback was added more than once." msgstr "" -#: ../Doc/library/asyncio-future.rst:168 +#: ../../library/asyncio-future.rst:170 msgid "Cancel the Future and schedule callbacks." msgstr "" -#: ../Doc/library/asyncio-future.rst:170 +#: ../../library/asyncio-future.rst:172 msgid "" "If the Future is already *done* or *cancelled*, return ``False``. Otherwise, " "change the Future's state to *cancelled*, schedule the callbacks, and return " "``True``." msgstr "" -#: ../Doc/library/asyncio-future.rst:176 +#: ../../library/asyncio-future.rst:178 msgid "Return the exception that was set on this Future." msgstr "" -#: ../Doc/library/asyncio-future.rst:178 +#: ../../library/asyncio-future.rst:180 msgid "" "The exception (or ``None`` if no exception was set) is returned only if the " "Future is *done*." msgstr "" -#: ../Doc/library/asyncio-future.rst:184 +#: ../../library/asyncio-future.rst:186 msgid "" "If the Future isn't *done* yet, this method raises an :exc:" "`InvalidStateError` exception." msgstr "" -#: ../Doc/library/asyncio-future.rst:189 +#: ../../library/asyncio-future.rst:191 msgid "Return the event loop the Future object is bound to." msgstr "" -#: ../Doc/library/asyncio-future.rst:196 +#: ../../library/asyncio-future.rst:198 msgid "" "This example creates a Future object, creates and schedules an asynchronous " "Task to set result for the Future, and waits until the Future has a result::" msgstr "" -#: ../Doc/library/asyncio-future.rst:231 +#: ../../library/asyncio-future.rst:233 msgid "" "The Future object was designed to mimic :class:`concurrent.futures.Future`. " "Key differences include:" msgstr "" -#: ../Doc/library/asyncio-future.rst:234 +#: ../../library/asyncio-future.rst:236 msgid "" "unlike asyncio Futures, :class:`concurrent.futures.Future` instances cannot " "be awaited." msgstr "" -#: ../Doc/library/asyncio-future.rst:237 +#: ../../library/asyncio-future.rst:239 msgid "" ":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` do not " "accept the *timeout* argument." msgstr "" -#: ../Doc/library/asyncio-future.rst:240 +#: ../../library/asyncio-future.rst:242 msgid "" ":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` raise an :" "exc:`InvalidStateError` exception when the Future is not *done*." msgstr "" -#: ../Doc/library/asyncio-future.rst:244 +#: ../../library/asyncio-future.rst:246 msgid "" "Callbacks registered with :meth:`asyncio.Future.add_done_callback` are not " "called immediately. They are scheduled with :meth:`loop.call_soon` instead." msgstr "" -#: ../Doc/library/asyncio-future.rst:248 +#: ../../library/asyncio-future.rst:250 msgid "" "asyncio Future is not compatible with the :func:`concurrent.futures.wait` " "and :func:`concurrent.futures.as_completed` functions." diff --git a/library/asyncio-llapi-index.po b/library/asyncio-llapi-index.po index f8598f3b8..83e3a280b 100644 --- a/library/asyncio-llapi-index.po +++ b/library/asyncio-llapi-index.po @@ -1,984 +1,1000 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Raphael Mendonça, 2019 +# Claudio Rogerio Carvalho Filho , 2019 +# msilvavieira, 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:20+0000\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/asyncio-llapi-index.rst:6 +#: ../../library/asyncio-llapi-index.rst:6 msgid "Low-level API Index" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:8 +#: ../../library/asyncio-llapi-index.rst:8 msgid "This page lists all low-level asyncio APIs." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:12 +#: ../../library/asyncio-llapi-index.rst:12 msgid "Obtaining the Event Loop" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:18 +#: ../../library/asyncio-llapi-index.rst:18 msgid ":func:`asyncio.get_running_loop`" -msgstr "" +msgstr ":func:`asyncio.get_running_loop`" -#: ../Doc/library/asyncio-llapi-index.rst:19 +#: ../../library/asyncio-llapi-index.rst:19 msgid "The **preferred** function to get the running event loop." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:21 +#: ../../library/asyncio-llapi-index.rst:21 msgid ":func:`asyncio.get_event_loop`" -msgstr "" +msgstr ":func:`asyncio.get_event_loop`" -#: ../Doc/library/asyncio-llapi-index.rst:22 +#: ../../library/asyncio-llapi-index.rst:22 msgid "Get an event loop instance (current or via the policy)." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:24 +#: ../../library/asyncio-llapi-index.rst:24 msgid ":func:`asyncio.set_event_loop`" -msgstr "" +msgstr ":func:`asyncio.set_event_loop`" -#: ../Doc/library/asyncio-llapi-index.rst:25 +#: ../../library/asyncio-llapi-index.rst:25 msgid "Set the event loop as current via the current policy." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:27 +#: ../../library/asyncio-llapi-index.rst:27 msgid ":func:`asyncio.new_event_loop`" -msgstr "" +msgstr ":func:`asyncio.new_event_loop`" -#: ../Doc/library/asyncio-llapi-index.rst:28 +#: ../../library/asyncio-llapi-index.rst:28 msgid "Create a new event loop." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:32 -#: ../Doc/library/asyncio-llapi-index.rst:260 +#: ../../library/asyncio-llapi-index.rst:32 +#: ../../library/asyncio-llapi-index.rst:260 msgid "Examples" -msgstr "" +msgstr "Exemplos" -#: ../Doc/library/asyncio-llapi-index.rst:33 +#: ../../library/asyncio-llapi-index.rst:33 msgid ":ref:`Using asyncio.get_running_loop() `." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:37 +#: ../../library/asyncio-llapi-index.rst:37 msgid "Event Loop Methods" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:39 +#: ../../library/asyncio-llapi-index.rst:39 msgid "" "See also the main documentation section about the :ref:`event loop methods " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:42 +#: ../../library/asyncio-llapi-index.rst:42 msgid "Lifecycle" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:47 +#: ../../library/asyncio-llapi-index.rst:47 msgid ":meth:`loop.run_until_complete`" -msgstr "" +msgstr ":meth:`loop.run_until_complete`" -#: ../Doc/library/asyncio-llapi-index.rst:48 +#: ../../library/asyncio-llapi-index.rst:48 msgid "Run a Future/Task/awaitable until complete." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:50 +#: ../../library/asyncio-llapi-index.rst:50 msgid ":meth:`loop.run_forever`" -msgstr "" +msgstr ":meth:`loop.run_forever`" -#: ../Doc/library/asyncio-llapi-index.rst:51 +#: ../../library/asyncio-llapi-index.rst:51 msgid "Run the event loop forever." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:53 +#: ../../library/asyncio-llapi-index.rst:53 msgid ":meth:`loop.stop`" -msgstr "" +msgstr ":meth:`loop.stop`" -#: ../Doc/library/asyncio-llapi-index.rst:54 +#: ../../library/asyncio-llapi-index.rst:54 msgid "Stop the event loop." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:56 +#: ../../library/asyncio-llapi-index.rst:56 msgid ":meth:`loop.close`" -msgstr "" +msgstr ":meth:`loop.close`" -#: ../Doc/library/asyncio-llapi-index.rst:57 +#: ../../library/asyncio-llapi-index.rst:57 msgid "Close the event loop." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:59 +#: ../../library/asyncio-llapi-index.rst:59 msgid ":meth:`loop.is_running()`" -msgstr "" +msgstr ":meth:`loop.is_running()`" -#: ../Doc/library/asyncio-llapi-index.rst:60 +#: ../../library/asyncio-llapi-index.rst:60 msgid "Return ``True`` if the event loop is running." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:62 +#: ../../library/asyncio-llapi-index.rst:62 msgid ":meth:`loop.is_closed()`" -msgstr "" +msgstr ":meth:`loop.is_closed()`" -#: ../Doc/library/asyncio-llapi-index.rst:63 +#: ../../library/asyncio-llapi-index.rst:63 msgid "Return ``True`` if the event loop is closed." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:65 +#: ../../library/asyncio-llapi-index.rst:65 msgid "``await`` :meth:`loop.shutdown_asyncgens`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:66 +#: ../../library/asyncio-llapi-index.rst:66 msgid "Close asynchronous generators." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:69 +#: ../../library/asyncio-llapi-index.rst:69 msgid "Debugging" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:74 +#: ../../library/asyncio-llapi-index.rst:74 msgid ":meth:`loop.set_debug`" -msgstr "" +msgstr ":meth:`loop.set_debug`" -#: ../Doc/library/asyncio-llapi-index.rst:75 +#: ../../library/asyncio-llapi-index.rst:75 msgid "Enable or disable the debug mode." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:77 +#: ../../library/asyncio-llapi-index.rst:77 msgid ":meth:`loop.get_debug`" -msgstr "" +msgstr ":meth:`loop.get_debug`" -#: ../Doc/library/asyncio-llapi-index.rst:78 +#: ../../library/asyncio-llapi-index.rst:78 msgid "Get the current debug mode." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:81 +#: ../../library/asyncio-llapi-index.rst:81 msgid "Scheduling Callbacks" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:86 +#: ../../library/asyncio-llapi-index.rst:86 msgid ":meth:`loop.call_soon`" -msgstr "" +msgstr ":meth:`loop.call_soon`" -#: ../Doc/library/asyncio-llapi-index.rst:87 +#: ../../library/asyncio-llapi-index.rst:87 msgid "Invoke a callback soon." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:89 +#: ../../library/asyncio-llapi-index.rst:89 msgid ":meth:`loop.call_soon_threadsafe`" -msgstr "" +msgstr ":meth:`loop.call_soon_threadsafe`" -#: ../Doc/library/asyncio-llapi-index.rst:90 +#: ../../library/asyncio-llapi-index.rst:90 msgid "A thread-safe variant of :meth:`loop.call_soon`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:92 +#: ../../library/asyncio-llapi-index.rst:92 msgid ":meth:`loop.call_later`" -msgstr "" +msgstr ":meth:`loop.call_later`" -#: ../Doc/library/asyncio-llapi-index.rst:93 +#: ../../library/asyncio-llapi-index.rst:93 msgid "Invoke a callback *after* the given time." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:95 +#: ../../library/asyncio-llapi-index.rst:95 msgid ":meth:`loop.call_at`" -msgstr "" +msgstr ":meth:`loop.call_at`" -#: ../Doc/library/asyncio-llapi-index.rst:96 +#: ../../library/asyncio-llapi-index.rst:96 msgid "Invoke a callback *at* the given time." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:99 +#: ../../library/asyncio-llapi-index.rst:99 msgid "Thread/Process Pool" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:104 +#: ../../library/asyncio-llapi-index.rst:104 msgid "``await`` :meth:`loop.run_in_executor`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:105 +#: ../../library/asyncio-llapi-index.rst:105 msgid "" "Run a CPU-bound or other blocking function in a :mod:`concurrent.futures` " "executor." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:108 +#: ../../library/asyncio-llapi-index.rst:108 msgid ":meth:`loop.set_default_executor`" -msgstr "" +msgstr ":meth:`loop.set_default_executor`" -#: ../Doc/library/asyncio-llapi-index.rst:109 +#: ../../library/asyncio-llapi-index.rst:109 msgid "Set the default executor for :meth:`loop.run_in_executor`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:112 +#: ../../library/asyncio-llapi-index.rst:112 msgid "Tasks and Futures" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:117 +#: ../../library/asyncio-llapi-index.rst:117 msgid ":meth:`loop.create_future`" -msgstr "" +msgstr ":meth:`loop.create_future`" -#: ../Doc/library/asyncio-llapi-index.rst:118 +#: ../../library/asyncio-llapi-index.rst:118 msgid "Create a :class:`Future` object." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:120 +#: ../../library/asyncio-llapi-index.rst:120 msgid ":meth:`loop.create_task`" -msgstr "" +msgstr ":meth:`loop.create_task`" -#: ../Doc/library/asyncio-llapi-index.rst:121 +#: ../../library/asyncio-llapi-index.rst:121 msgid "Schedule coroutine as a :class:`Task`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:123 +#: ../../library/asyncio-llapi-index.rst:123 msgid ":meth:`loop.set_task_factory`" -msgstr "" +msgstr ":meth:`loop.set_task_factory`" -#: ../Doc/library/asyncio-llapi-index.rst:124 +#: ../../library/asyncio-llapi-index.rst:124 msgid "" "Set a factory used by :meth:`loop.create_task` to create :class:`Tasks " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:127 +#: ../../library/asyncio-llapi-index.rst:127 msgid ":meth:`loop.get_task_factory`" -msgstr "" +msgstr ":meth:`loop.get_task_factory`" -#: ../Doc/library/asyncio-llapi-index.rst:128 +#: ../../library/asyncio-llapi-index.rst:128 msgid "" "Get the factory :meth:`loop.create_task` uses to create :class:`Tasks " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:132 +#: ../../library/asyncio-llapi-index.rst:132 msgid "DNS" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:137 +#: ../../library/asyncio-llapi-index.rst:137 msgid "``await`` :meth:`loop.getaddrinfo`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:138 +#: ../../library/asyncio-llapi-index.rst:138 msgid "Asynchronous version of :meth:`socket.getaddrinfo`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:140 +#: ../../library/asyncio-llapi-index.rst:140 msgid "``await`` :meth:`loop.getnameinfo`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:141 +#: ../../library/asyncio-llapi-index.rst:141 msgid "Asynchronous version of :meth:`socket.getnameinfo`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:144 +#: ../../library/asyncio-llapi-index.rst:144 msgid "Networking and IPC" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:149 +#: ../../library/asyncio-llapi-index.rst:149 msgid "``await`` :meth:`loop.create_connection`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:150 +#: ../../library/asyncio-llapi-index.rst:150 msgid "Open a TCP connection." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:152 +#: ../../library/asyncio-llapi-index.rst:152 msgid "``await`` :meth:`loop.create_server`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:153 +#: ../../library/asyncio-llapi-index.rst:153 msgid "Create a TCP server." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:155 +#: ../../library/asyncio-llapi-index.rst:155 msgid "``await`` :meth:`loop.create_unix_connection`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:156 +#: ../../library/asyncio-llapi-index.rst:156 msgid "Open a Unix socket connection." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:158 +#: ../../library/asyncio-llapi-index.rst:158 msgid "``await`` :meth:`loop.create_unix_server`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:159 +#: ../../library/asyncio-llapi-index.rst:159 msgid "Create a Unix socket server." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:161 +#: ../../library/asyncio-llapi-index.rst:161 msgid "``await`` :meth:`loop.connect_accepted_socket`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:162 +#: ../../library/asyncio-llapi-index.rst:162 msgid "Wrap a :class:`~socket.socket` into a ``(transport, protocol)`` pair." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:165 +#: ../../library/asyncio-llapi-index.rst:165 msgid "``await`` :meth:`loop.create_datagram_endpoint`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:166 +#: ../../library/asyncio-llapi-index.rst:166 msgid "Open a datagram (UDP) connection." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:168 +#: ../../library/asyncio-llapi-index.rst:168 msgid "``await`` :meth:`loop.sendfile`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:169 +#: ../../library/asyncio-llapi-index.rst:169 msgid "Send a file over a transport." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:171 +#: ../../library/asyncio-llapi-index.rst:171 msgid "``await`` :meth:`loop.start_tls`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:172 +#: ../../library/asyncio-llapi-index.rst:172 msgid "Upgrade an existing connection to TLS." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:174 +#: ../../library/asyncio-llapi-index.rst:174 msgid "``await`` :meth:`loop.connect_read_pipe`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:175 +#: ../../library/asyncio-llapi-index.rst:175 msgid "Wrap a read end of a pipe into a ``(transport, protocol)`` pair." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:177 +#: ../../library/asyncio-llapi-index.rst:177 msgid "``await`` :meth:`loop.connect_write_pipe`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:178 +#: ../../library/asyncio-llapi-index.rst:178 msgid "Wrap a write end of a pipe into a ``(transport, protocol)`` pair." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:181 +#: ../../library/asyncio-llapi-index.rst:181 msgid "Sockets" -msgstr "" +msgstr "Sockets" -#: ../Doc/library/asyncio-llapi-index.rst:186 +#: ../../library/asyncio-llapi-index.rst:186 msgid "``await`` :meth:`loop.sock_recv`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:187 +#: ../../library/asyncio-llapi-index.rst:187 msgid "Receive data from the :class:`~socket.socket`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:189 +#: ../../library/asyncio-llapi-index.rst:189 msgid "``await`` :meth:`loop.sock_recv_into`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:190 +#: ../../library/asyncio-llapi-index.rst:190 msgid "Receive data from the :class:`~socket.socket` into a buffer." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:192 +#: ../../library/asyncio-llapi-index.rst:192 msgid "``await`` :meth:`loop.sock_sendall`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:193 +#: ../../library/asyncio-llapi-index.rst:193 msgid "Send data to the :class:`~socket.socket`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:195 +#: ../../library/asyncio-llapi-index.rst:195 msgid "``await`` :meth:`loop.sock_connect`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:196 +#: ../../library/asyncio-llapi-index.rst:196 msgid "Connect the :class:`~socket.socket`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:198 +#: ../../library/asyncio-llapi-index.rst:198 msgid "``await`` :meth:`loop.sock_accept`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:199 +#: ../../library/asyncio-llapi-index.rst:199 msgid "Accept a :class:`~socket.socket` connection." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:201 +#: ../../library/asyncio-llapi-index.rst:201 msgid "``await`` :meth:`loop.sock_sendfile`" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:202 +#: ../../library/asyncio-llapi-index.rst:202 msgid "Send a file over the :class:`~socket.socket`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:204 +#: ../../library/asyncio-llapi-index.rst:204 msgid ":meth:`loop.add_reader`" -msgstr "" +msgstr ":meth:`loop.add_reader`" -#: ../Doc/library/asyncio-llapi-index.rst:205 +#: ../../library/asyncio-llapi-index.rst:205 msgid "Start watching a file descriptor for read availability." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:207 +#: ../../library/asyncio-llapi-index.rst:207 msgid ":meth:`loop.remove_reader`" -msgstr "" +msgstr ":meth:`loop.remove_reader`" -#: ../Doc/library/asyncio-llapi-index.rst:208 +#: ../../library/asyncio-llapi-index.rst:208 msgid "Stop watching a file descriptor for read availability." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:210 +#: ../../library/asyncio-llapi-index.rst:210 msgid ":meth:`loop.add_writer`" -msgstr "" +msgstr ":meth:`loop.add_writer`" -#: ../Doc/library/asyncio-llapi-index.rst:211 +#: ../../library/asyncio-llapi-index.rst:211 msgid "Start watching a file descriptor for write availability." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:213 +#: ../../library/asyncio-llapi-index.rst:213 msgid ":meth:`loop.remove_writer`" -msgstr "" +msgstr ":meth:`loop.remove_writer`" -#: ../Doc/library/asyncio-llapi-index.rst:214 +#: ../../library/asyncio-llapi-index.rst:214 msgid "Stop watching a file descriptor for write availability." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:217 +#: ../../library/asyncio-llapi-index.rst:217 msgid "Unix Signals" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:222 +#: ../../library/asyncio-llapi-index.rst:222 msgid ":meth:`loop.add_signal_handler`" -msgstr "" +msgstr ":meth:`loop.add_signal_handler`" -#: ../Doc/library/asyncio-llapi-index.rst:223 +#: ../../library/asyncio-llapi-index.rst:223 msgid "Add a handler for a :mod:`signal`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:225 +#: ../../library/asyncio-llapi-index.rst:225 msgid ":meth:`loop.remove_signal_handler`" -msgstr "" +msgstr ":meth:`loop.remove_signal_handler`" -#: ../Doc/library/asyncio-llapi-index.rst:226 +#: ../../library/asyncio-llapi-index.rst:226 msgid "Remove a handler for a :mod:`signal`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:229 +#: ../../library/asyncio-llapi-index.rst:229 msgid "Subprocesses" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:234 +#: ../../library/asyncio-llapi-index.rst:234 msgid ":meth:`loop.subprocess_exec`" -msgstr "" +msgstr ":meth:`loop.subprocess_exec`" -#: ../Doc/library/asyncio-llapi-index.rst:235 +#: ../../library/asyncio-llapi-index.rst:235 msgid "Spawn a subprocess." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:237 +#: ../../library/asyncio-llapi-index.rst:237 msgid ":meth:`loop.subprocess_shell`" -msgstr "" +msgstr ":meth:`loop.subprocess_shell`" -#: ../Doc/library/asyncio-llapi-index.rst:238 +#: ../../library/asyncio-llapi-index.rst:238 msgid "Spawn a subprocess from a shell command." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:241 +#: ../../library/asyncio-llapi-index.rst:241 msgid "Error Handling" msgstr "Tratamento de erros" -#: ../Doc/library/asyncio-llapi-index.rst:246 +#: ../../library/asyncio-llapi-index.rst:246 msgid ":meth:`loop.call_exception_handler`" -msgstr "" +msgstr ":meth:`loop.call_exception_handler`" -#: ../Doc/library/asyncio-llapi-index.rst:247 +#: ../../library/asyncio-llapi-index.rst:247 msgid "Call the exception handler." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:249 +#: ../../library/asyncio-llapi-index.rst:249 msgid ":meth:`loop.set_exception_handler`" -msgstr "" +msgstr ":meth:`loop.set_exception_handler`" -#: ../Doc/library/asyncio-llapi-index.rst:250 +#: ../../library/asyncio-llapi-index.rst:250 msgid "Set a new exception handler." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:252 +#: ../../library/asyncio-llapi-index.rst:252 msgid ":meth:`loop.get_exception_handler`" -msgstr "" +msgstr ":meth:`loop.get_exception_handler`" -#: ../Doc/library/asyncio-llapi-index.rst:253 +#: ../../library/asyncio-llapi-index.rst:253 msgid "Get the current exception handler." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:255 +#: ../../library/asyncio-llapi-index.rst:255 msgid ":meth:`loop.default_exception_handler`" -msgstr "" +msgstr ":meth:`loop.default_exception_handler`" -#: ../Doc/library/asyncio-llapi-index.rst:256 +#: ../../library/asyncio-llapi-index.rst:256 msgid "The default exception handler implementation." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:261 +#: ../../library/asyncio-llapi-index.rst:261 msgid "" ":ref:`Using asyncio.get_event_loop() and loop.run_forever() " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:264 +#: ../../library/asyncio-llapi-index.rst:264 msgid ":ref:`Using loop.call_later() `." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:266 +#: ../../library/asyncio-llapi-index.rst:266 msgid "" "Using ``loop.create_connection()`` to implement :ref:`an echo-client " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:269 +#: ../../library/asyncio-llapi-index.rst:269 msgid "" "Using ``loop.create_connection()`` to :ref:`connect a socket " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:272 +#: ../../library/asyncio-llapi-index.rst:272 msgid "" ":ref:`Using add_reader() to watch an FD for read events " "`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:275 +#: ../../library/asyncio-llapi-index.rst:275 msgid ":ref:`Using loop.add_signal_handler() `." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:277 +#: ../../library/asyncio-llapi-index.rst:277 msgid ":ref:`Using loop.subprocess_exec() `." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:281 +#: ../../library/asyncio-llapi-index.rst:281 msgid "Transports" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:283 +#: ../../library/asyncio-llapi-index.rst:283 msgid "All transports implement the following methods:" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:289 +#: ../../library/asyncio-llapi-index.rst:289 msgid ":meth:`transport.close() `" -msgstr "" +msgstr ":meth:`transport.close() `" -#: ../Doc/library/asyncio-llapi-index.rst:290 +#: ../../library/asyncio-llapi-index.rst:290 msgid "Close the transport." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:292 +#: ../../library/asyncio-llapi-index.rst:292 msgid ":meth:`transport.is_closing() `" -msgstr "" +msgstr ":meth:`transport.is_closing() `" -#: ../Doc/library/asyncio-llapi-index.rst:293 +#: ../../library/asyncio-llapi-index.rst:293 msgid "Return ``True`` if the transport is closing or is closed." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:295 +#: ../../library/asyncio-llapi-index.rst:295 msgid ":meth:`transport.get_extra_info() `" -msgstr "" +msgstr ":meth:`transport.get_extra_info() `" -#: ../Doc/library/asyncio-llapi-index.rst:296 +#: ../../library/asyncio-llapi-index.rst:296 msgid "Request for information about the transport." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:298 +#: ../../library/asyncio-llapi-index.rst:298 msgid ":meth:`transport.set_protocol() `" -msgstr "" +msgstr ":meth:`transport.set_protocol() `" -#: ../Doc/library/asyncio-llapi-index.rst:299 +#: ../../library/asyncio-llapi-index.rst:299 msgid "Set a new protocol." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:301 +#: ../../library/asyncio-llapi-index.rst:301 msgid ":meth:`transport.get_protocol() `" -msgstr "" +msgstr ":meth:`transport.get_protocol() `" -#: ../Doc/library/asyncio-llapi-index.rst:302 +#: ../../library/asyncio-llapi-index.rst:302 msgid "Return the current protocol." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:305 +#: ../../library/asyncio-llapi-index.rst:305 msgid "" "Transports that can receive data (TCP and Unix connections, pipes, etc). " "Returned from methods like :meth:`loop.create_connection`, :meth:`loop." "create_unix_connection`, :meth:`loop.connect_read_pipe`, etc:" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:310 +#: ../../library/asyncio-llapi-index.rst:310 msgid "Read Transports" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:315 +#: ../../library/asyncio-llapi-index.rst:315 msgid ":meth:`transport.is_reading() `" -msgstr "" +msgstr ":meth:`transport.is_reading() `" -#: ../Doc/library/asyncio-llapi-index.rst:316 +#: ../../library/asyncio-llapi-index.rst:316 msgid "Return ``True`` if the transport is receiving." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:318 +#: ../../library/asyncio-llapi-index.rst:318 msgid ":meth:`transport.pause_reading() `" -msgstr "" +msgstr ":meth:`transport.pause_reading() `" -#: ../Doc/library/asyncio-llapi-index.rst:319 +#: ../../library/asyncio-llapi-index.rst:319 msgid "Pause receiving." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:321 +#: ../../library/asyncio-llapi-index.rst:321 msgid ":meth:`transport.resume_reading() `" -msgstr "" +msgstr ":meth:`transport.resume_reading() `" -#: ../Doc/library/asyncio-llapi-index.rst:322 +#: ../../library/asyncio-llapi-index.rst:322 msgid "Resume receiving." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:325 +#: ../../library/asyncio-llapi-index.rst:325 msgid "" "Transports that can Send data (TCP and Unix connections, pipes, etc). " "Returned from methods like :meth:`loop.create_connection`, :meth:`loop." "create_unix_connection`, :meth:`loop.connect_write_pipe`, etc:" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:330 +#: ../../library/asyncio-llapi-index.rst:330 msgid "Write Transports" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:335 +#: ../../library/asyncio-llapi-index.rst:335 msgid ":meth:`transport.write() `" -msgstr "" +msgstr ":meth:`transport.write() `" -#: ../Doc/library/asyncio-llapi-index.rst:336 +#: ../../library/asyncio-llapi-index.rst:336 msgid "Write data to the transport." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:338 +#: ../../library/asyncio-llapi-index.rst:338 msgid ":meth:`transport.writelines() `" -msgstr "" +msgstr ":meth:`transport.writelines() `" -#: ../Doc/library/asyncio-llapi-index.rst:339 +#: ../../library/asyncio-llapi-index.rst:339 msgid "Write buffers to the transport." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:341 +#: ../../library/asyncio-llapi-index.rst:341 msgid ":meth:`transport.can_write_eof() `" -msgstr "" +msgstr ":meth:`transport.can_write_eof() `" -#: ../Doc/library/asyncio-llapi-index.rst:342 +#: ../../library/asyncio-llapi-index.rst:342 msgid "Return :const:`True` if the transport supports sending EOF." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:344 +#: ../../library/asyncio-llapi-index.rst:344 msgid ":meth:`transport.write_eof() `" -msgstr "" +msgstr ":meth:`transport.write_eof() `" -#: ../Doc/library/asyncio-llapi-index.rst:345 +#: ../../library/asyncio-llapi-index.rst:345 msgid "Close and send EOF after flushing buffered data." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:347 +#: ../../library/asyncio-llapi-index.rst:347 msgid ":meth:`transport.abort() `" -msgstr "" +msgstr ":meth:`transport.abort() `" -#: ../Doc/library/asyncio-llapi-index.rst:348 -#: ../Doc/library/asyncio-llapi-index.rst:370 +#: ../../library/asyncio-llapi-index.rst:348 +#: ../../library/asyncio-llapi-index.rst:370 msgid "Close the transport immediately." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:350 +#: ../../library/asyncio-llapi-index.rst:350 msgid "" ":meth:`transport.get_write_buffer_size() `" msgstr "" +":meth:`transport.get_write_buffer_size() `" -#: ../Doc/library/asyncio-llapi-index.rst:352 +#: ../../library/asyncio-llapi-index.rst:352 msgid "Return high and low water marks for write flow control." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:354 +#: ../../library/asyncio-llapi-index.rst:354 msgid "" ":meth:`transport.set_write_buffer_limits() `" msgstr "" +":meth:`transport.set_write_buffer_limits() `" -#: ../Doc/library/asyncio-llapi-index.rst:356 +#: ../../library/asyncio-llapi-index.rst:356 msgid "Set new high and low water marks for write flow control." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:359 +#: ../../library/asyncio-llapi-index.rst:359 msgid "Transports returned by :meth:`loop.create_datagram_endpoint`:" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:361 +#: ../../library/asyncio-llapi-index.rst:361 msgid "Datagram Transports" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:366 +#: ../../library/asyncio-llapi-index.rst:366 msgid ":meth:`transport.sendto() `" -msgstr "" +msgstr ":meth:`transport.sendto() `" -#: ../Doc/library/asyncio-llapi-index.rst:367 +#: ../../library/asyncio-llapi-index.rst:367 msgid "Send data to the remote peer." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:369 +#: ../../library/asyncio-llapi-index.rst:369 msgid ":meth:`transport.abort() `" -msgstr "" +msgstr ":meth:`transport.abort() `" -#: ../Doc/library/asyncio-llapi-index.rst:373 +#: ../../library/asyncio-llapi-index.rst:373 msgid "" "Low-level transport abstraction over subprocesses. Returned by :meth:`loop." "subprocess_exec` and :meth:`loop.subprocess_shell`:" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:377 +#: ../../library/asyncio-llapi-index.rst:377 msgid "Subprocess Transports" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:382 +#: ../../library/asyncio-llapi-index.rst:382 msgid ":meth:`transport.get_pid() `" -msgstr "" +msgstr ":meth:`transport.get_pid() `" -#: ../Doc/library/asyncio-llapi-index.rst:383 +#: ../../library/asyncio-llapi-index.rst:383 msgid "Return the subprocess process id." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:385 +#: ../../library/asyncio-llapi-index.rst:385 msgid "" ":meth:`transport.get_pipe_transport() `" msgstr "" +":meth:`transport.get_pipe_transport() `" -#: ../Doc/library/asyncio-llapi-index.rst:387 +#: ../../library/asyncio-llapi-index.rst:387 msgid "" "Return the transport for the requested communication pipe (*stdin*, " "*stdout*, or *stderr*)." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:390 +#: ../../library/asyncio-llapi-index.rst:390 msgid ":meth:`transport.get_returncode() `" msgstr "" +":meth:`transport.get_returncode() `" -#: ../Doc/library/asyncio-llapi-index.rst:391 +#: ../../library/asyncio-llapi-index.rst:391 msgid "Return the subprocess return code." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:393 +#: ../../library/asyncio-llapi-index.rst:393 msgid ":meth:`transport.kill() `" -msgstr "" +msgstr ":meth:`transport.kill() `" -#: ../Doc/library/asyncio-llapi-index.rst:394 +#: ../../library/asyncio-llapi-index.rst:394 msgid "Kill the subprocess." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:396 +#: ../../library/asyncio-llapi-index.rst:396 msgid ":meth:`transport.send_signal() `" -msgstr "" +msgstr ":meth:`transport.send_signal() `" -#: ../Doc/library/asyncio-llapi-index.rst:397 +#: ../../library/asyncio-llapi-index.rst:397 msgid "Send a signal to the subprocess." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:399 +#: ../../library/asyncio-llapi-index.rst:399 msgid ":meth:`transport.terminate() `" -msgstr "" +msgstr ":meth:`transport.terminate() `" -#: ../Doc/library/asyncio-llapi-index.rst:400 +#: ../../library/asyncio-llapi-index.rst:400 msgid "Stop the subprocess." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:402 +#: ../../library/asyncio-llapi-index.rst:402 msgid ":meth:`transport.close() `" -msgstr "" +msgstr ":meth:`transport.close() `" -#: ../Doc/library/asyncio-llapi-index.rst:403 +#: ../../library/asyncio-llapi-index.rst:403 msgid "Kill the subprocess and close all pipes." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:407 +#: ../../library/asyncio-llapi-index.rst:407 msgid "Protocols" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:409 +#: ../../library/asyncio-llapi-index.rst:409 msgid "Protocol classes can implement the following **callback methods**:" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:415 +#: ../../library/asyncio-llapi-index.rst:415 msgid "``callback`` :meth:`connection_made() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:416 +#: ../../library/asyncio-llapi-index.rst:416 msgid "Called when a connection is made." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:418 +#: ../../library/asyncio-llapi-index.rst:418 msgid "``callback`` :meth:`connection_lost() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:419 +#: ../../library/asyncio-llapi-index.rst:419 msgid "Called when the connection is lost or closed." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:421 +#: ../../library/asyncio-llapi-index.rst:421 msgid "``callback`` :meth:`pause_writing() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:422 +#: ../../library/asyncio-llapi-index.rst:422 msgid "Called when the transport's buffer goes over the high water mark." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:424 +#: ../../library/asyncio-llapi-index.rst:424 msgid "``callback`` :meth:`resume_writing() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:425 +#: ../../library/asyncio-llapi-index.rst:425 msgid "Called when the transport's buffer drains below the low water mark." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:428 +#: ../../library/asyncio-llapi-index.rst:428 msgid "Streaming Protocols (TCP, Unix Sockets, Pipes)" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:433 +#: ../../library/asyncio-llapi-index.rst:433 msgid "``callback`` :meth:`data_received() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:434 +#: ../../library/asyncio-llapi-index.rst:434 msgid "Called when some data is received." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:436 +#: ../../library/asyncio-llapi-index.rst:436 msgid "``callback`` :meth:`eof_received() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:437 -#: ../Doc/library/asyncio-llapi-index.rst:452 +#: ../../library/asyncio-llapi-index.rst:437 +#: ../../library/asyncio-llapi-index.rst:452 msgid "Called when an EOF is received." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:440 +#: ../../library/asyncio-llapi-index.rst:440 msgid "Buffered Streaming Protocols" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:445 +#: ../../library/asyncio-llapi-index.rst:445 msgid "``callback`` :meth:`get_buffer() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:446 +#: ../../library/asyncio-llapi-index.rst:446 msgid "Called to allocate a new receive buffer." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:448 +#: ../../library/asyncio-llapi-index.rst:448 msgid "``callback`` :meth:`buffer_updated() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:449 +#: ../../library/asyncio-llapi-index.rst:449 msgid "Called when the buffer was updated with the received data." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:451 +#: ../../library/asyncio-llapi-index.rst:451 msgid "``callback`` :meth:`eof_received() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:455 +#: ../../library/asyncio-llapi-index.rst:455 msgid "Datagram Protocols" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:460 +#: ../../library/asyncio-llapi-index.rst:460 msgid "" "``callback`` :meth:`datagram_received() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:462 +#: ../../library/asyncio-llapi-index.rst:462 msgid "Called when a datagram is received." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:464 +#: ../../library/asyncio-llapi-index.rst:464 msgid "``callback`` :meth:`error_received() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:465 +#: ../../library/asyncio-llapi-index.rst:465 msgid "" "Called when a previous send or receive operation raises an :class:`OSError`." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:469 +#: ../../library/asyncio-llapi-index.rst:469 msgid "Subprocess Protocols" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:474 +#: ../../library/asyncio-llapi-index.rst:474 msgid "" "``callback`` :meth:`pipe_data_received() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:476 +#: ../../library/asyncio-llapi-index.rst:476 msgid "" "Called when the child process writes data into its *stdout* or *stderr* pipe." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:479 +#: ../../library/asyncio-llapi-index.rst:479 msgid "" "``callback`` :meth:`pipe_connection_lost() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:481 +#: ../../library/asyncio-llapi-index.rst:481 msgid "" "Called when one of the pipes communicating with the child process is closed." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:484 +#: ../../library/asyncio-llapi-index.rst:484 msgid "" "``callback`` :meth:`process_exited() `" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:486 +#: ../../library/asyncio-llapi-index.rst:486 msgid "Called when the child process has exited." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:490 +#: ../../library/asyncio-llapi-index.rst:490 msgid "Event Loop Policies" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:492 +#: ../../library/asyncio-llapi-index.rst:492 msgid "" "Policies is a low-level mechanism to alter the behavior of functions like :" "func:`asyncio.get_event_loop`. See also the main :ref:`policies section " "` for more details." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:498 +#: ../../library/asyncio-llapi-index.rst:498 msgid "Accessing Policies" msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:503 +#: ../../library/asyncio-llapi-index.rst:503 msgid ":meth:`asyncio.get_event_loop_policy`" -msgstr "" +msgstr ":meth:`asyncio.get_event_loop_policy`" -#: ../Doc/library/asyncio-llapi-index.rst:504 +#: ../../library/asyncio-llapi-index.rst:504 msgid "Return the current process-wide policy." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:506 +#: ../../library/asyncio-llapi-index.rst:506 msgid ":meth:`asyncio.set_event_loop_policy`" -msgstr "" +msgstr ":meth:`asyncio.set_event_loop_policy`" -#: ../Doc/library/asyncio-llapi-index.rst:507 +#: ../../library/asyncio-llapi-index.rst:507 msgid "Set a new process-wide policy." msgstr "" -#: ../Doc/library/asyncio-llapi-index.rst:509 +#: ../../library/asyncio-llapi-index.rst:509 msgid ":class:`AbstractEventLoopPolicy`" -msgstr "" +msgstr ":class:`AbstractEventLoopPolicy`" -#: ../Doc/library/asyncio-llapi-index.rst:510 +#: ../../library/asyncio-llapi-index.rst:510 msgid "Base class for policy objects." msgstr "" diff --git a/library/asyncio-platforms.po b/library/asyncio-platforms.po index 7b52bf04f..4716ae243 100644 --- a/library/asyncio-platforms.po +++ b/library/asyncio-platforms.po @@ -1,106 +1,112 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# felipe caridade , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:27+0000\n" +"Last-Translator: felipe caridade , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/asyncio-platforms.rst:9 +#: ../../library/asyncio-platforms.rst:9 msgid "Platform Support" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:11 +#: ../../library/asyncio-platforms.rst:11 msgid "" "The :mod:`asyncio` module is designed to be portable, but some platforms " "have subtle differences and limitations due to the platforms' underlying " "architecture and capabilities." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:17 +#: ../../library/asyncio-platforms.rst:17 msgid "All Platforms" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:19 +#: ../../library/asyncio-platforms.rst:19 msgid "" ":meth:`loop.add_reader` and :meth:`loop.add_writer` cannot be used to " "monitor file I/O." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:24 +#: ../../library/asyncio-platforms.rst:24 msgid "Windows" -msgstr "" +msgstr "Windows" -#: ../Doc/library/asyncio-platforms.rst:26 +#: ../../library/asyncio-platforms.rst:26 msgid "All event loops on Windows do not support the following methods:" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:28 +#: ../../library/asyncio-platforms.rst:28 msgid "" ":meth:`loop.create_unix_connection` and :meth:`loop.create_unix_server` are " "not supported. The :data:`socket.AF_UNIX` socket family is specific to Unix." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:32 +#: ../../library/asyncio-platforms.rst:32 msgid "" ":meth:`loop.add_signal_handler` and :meth:`loop.remove_signal_handler` are " "not supported." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:35 +#: ../../library/asyncio-platforms.rst:35 msgid ":class:`SelectorEventLoop` has the following limitations:" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:37 +#: ../../library/asyncio-platforms.rst:37 msgid "" ":class:`~selectors.SelectSelector` is used to wait on socket events: it " "supports sockets and is limited to 512 sockets." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:40 +#: ../../library/asyncio-platforms.rst:40 msgid "" ":meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket " "handles (e.g. pipe file descriptors are not supported)." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:43 +#: ../../library/asyncio-platforms.rst:43 msgid "" "Pipes are not supported, so the :meth:`loop.connect_read_pipe` and :meth:" "`loop.connect_write_pipe` methods are not implemented." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:46 +#: ../../library/asyncio-platforms.rst:46 msgid "" ":ref:`Subprocesses ` are not supported, i.e. :meth:`loop." "subprocess_exec` and :meth:`loop.subprocess_shell` methods are not " "implemented." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:50 +#: ../../library/asyncio-platforms.rst:50 msgid ":class:`ProactorEventLoop` has the following limitations:" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:52 +#: ../../library/asyncio-platforms.rst:52 msgid "The :meth:`loop.create_datagram_endpoint` method is not supported." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:55 +#: ../../library/asyncio-platforms.rst:55 msgid "" "The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not " "supported." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:58 +#: ../../library/asyncio-platforms.rst:58 msgid "" "The resolution of the monotonic clock on Windows is usually around 15.6 " "msec. The best resolution is 0.5 msec. The resolution depends on the " @@ -108,36 +114,36 @@ msgid "" "High_Precision_Event_Timer>`_) and on the Windows configuration." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:68 +#: ../../library/asyncio-platforms.rst:68 msgid "Subprocess Support on Windows" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:70 +#: ../../library/asyncio-platforms.rst:70 msgid "" ":class:`SelectorEventLoop` on Windows does not support subproceses. On " "Windows, :class:`ProactorEventLoop` should be used instead::" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:81 +#: ../../library/asyncio-platforms.rst:81 msgid "" "The :meth:`policy.set_child_watcher() ` function is also not supported, as :class:" "`ProactorEventLoop` has a different mechanism to watch child processes." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:88 +#: ../../library/asyncio-platforms.rst:88 msgid "macOS" -msgstr "" +msgstr "macOS" -#: ../Doc/library/asyncio-platforms.rst:90 +#: ../../library/asyncio-platforms.rst:90 msgid "Modern macOS versions are fully supported." msgstr "" -#: ../Doc/library/asyncio-platforms.rst:93 +#: ../../library/asyncio-platforms.rst:93 msgid "macOS <= 10.8" msgstr "" -#: ../Doc/library/asyncio-platforms.rst:94 +#: ../../library/asyncio-platforms.rst:94 msgid "" "On macOS 10.6, 10.7 and 10.8, the default event loop uses :class:`selectors." "KqueueSelector`, which does not support character devices on these " diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 21fadddd3..d1faa8ec7 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -1,169 +1,176 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Sheila Gomes , 2019 +# Marco Rougeth , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 02:45+0000\n" +"Last-Translator: Marco Rougeth , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/asyncio-policy.rst:8 +#: ../../library/asyncio-policy.rst:8 msgid "Policies" msgstr "" -#: ../Doc/library/asyncio-policy.rst:10 +#: ../../library/asyncio-policy.rst:10 msgid "" "An event loop policy is a global per-process object that controls the " "management of the event loop. Each event loop has a default policy, which " "can be changed and customized using the policy API." msgstr "" -#: ../Doc/library/asyncio-policy.rst:14 +#: ../../library/asyncio-policy.rst:14 msgid "" "A policy defines the notion of *context* and manages a separate event loop " "per context. The default policy defines *context* to be the current thread." msgstr "" -#: ../Doc/library/asyncio-policy.rst:18 +#: ../../library/asyncio-policy.rst:18 msgid "" "By using a custom event loop policy, the behavior of :func:" "`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` " "functions can be customized." msgstr "" -#: ../Doc/library/asyncio-policy.rst:22 +#: ../../library/asyncio-policy.rst:22 msgid "" "Policy objects should implement the APIs defined in the :class:" "`AbstractEventLoopPolicy` abstract base class." msgstr "" -#: ../Doc/library/asyncio-policy.rst:27 +#: ../../library/asyncio-policy.rst:27 msgid "Getting and Setting the Policy" msgstr "" -#: ../Doc/library/asyncio-policy.rst:29 +#: ../../library/asyncio-policy.rst:29 msgid "" "The following functions can be used to get and set the policy for the " "current process:" msgstr "" -#: ../Doc/library/asyncio-policy.rst:34 +#: ../../library/asyncio-policy.rst:34 msgid "Return the current process-wide policy." msgstr "" -#: ../Doc/library/asyncio-policy.rst:38 +#: ../../library/asyncio-policy.rst:38 msgid "Set the current process-wide policy to *policy*." msgstr "" -#: ../Doc/library/asyncio-policy.rst:40 +#: ../../library/asyncio-policy.rst:40 msgid "If *policy* is set to ``None``, the default policy is restored." msgstr "" -#: ../Doc/library/asyncio-policy.rst:44 +#: ../../library/asyncio-policy.rst:44 msgid "Policy Objects" msgstr "" -#: ../Doc/library/asyncio-policy.rst:46 +#: ../../library/asyncio-policy.rst:46 msgid "The abstract event loop policy base class is defined as follows:" msgstr "" -#: ../Doc/library/asyncio-policy.rst:50 +#: ../../library/asyncio-policy.rst:50 msgid "An abstract base class for asyncio policies." msgstr "" -#: ../Doc/library/asyncio-policy.rst:54 +#: ../../library/asyncio-policy.rst:54 msgid "Get the event loop for the current context." msgstr "" -#: ../Doc/library/asyncio-policy.rst:56 +#: ../../library/asyncio-policy.rst:56 msgid "" "Return an event loop object implementing the :class:`AbstractEventLoop` " "interface." msgstr "" -#: ../Doc/library/asyncio-policy.rst:59 ../Doc/library/asyncio-policy.rst:71 +#: ../../library/asyncio-policy.rst:59 ../../library/asyncio-policy.rst:71 msgid "This method should never return ``None``." msgstr "" -#: ../Doc/library/asyncio-policy.rst:65 +#: ../../library/asyncio-policy.rst:65 msgid "Set the event loop for the current context to *loop*." msgstr "" -#: ../Doc/library/asyncio-policy.rst:69 +#: ../../library/asyncio-policy.rst:69 msgid "Create and return a new event loop object." msgstr "" -#: ../Doc/library/asyncio-policy.rst:75 +#: ../../library/asyncio-policy.rst:75 msgid "Get a child process watcher object." msgstr "" -#: ../Doc/library/asyncio-policy.rst:77 +#: ../../library/asyncio-policy.rst:77 msgid "" "Return a watcher object implementing the :class:`AbstractChildWatcher` " "interface." msgstr "" -#: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86 +#: ../../library/asyncio-policy.rst:80 ../../library/asyncio-policy.rst:86 msgid "This function is Unix specific." msgstr "" -#: ../Doc/library/asyncio-policy.rst:84 -msgid "Get the current child process watcher to *watcher*." +#: ../../library/asyncio-policy.rst:84 +msgid "Set the current child process watcher to *watcher*." msgstr "" -#: ../Doc/library/asyncio-policy.rst:89 +#: ../../library/asyncio-policy.rst:89 msgid "asyncio ships with the following built-in policies:" msgstr "" -#: ../Doc/library/asyncio-policy.rst:94 +#: ../../library/asyncio-policy.rst:94 msgid "" "The default asyncio policy. Uses :class:`SelectorEventLoop` on both Unix " "and Windows platforms." msgstr "" -#: ../Doc/library/asyncio-policy.rst:97 +#: ../../library/asyncio-policy.rst:97 msgid "" "There is no need to install the default policy manually. asyncio is " "configured to use the default policy automatically." msgstr "" -#: ../Doc/library/asyncio-policy.rst:103 +#: ../../library/asyncio-policy.rst:103 msgid "" "An alternative event loop policy that uses the :class:`ProactorEventLoop` " "event loop implementation." msgstr "" -#: ../Doc/library/asyncio-policy.rst:106 +#: ../../library/asyncio-policy.rst:106 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." -#: ../Doc/library/asyncio-policy.rst:110 +#: ../../library/asyncio-policy.rst:110 msgid "Process Watchers" msgstr "" -#: ../Doc/library/asyncio-policy.rst:112 +#: ../../library/asyncio-policy.rst:112 msgid "" "A process watcher allows customization of how an event loop monitors child " "processes on Unix. Specifically, the event loop needs to know when a child " "process has exited." msgstr "" -#: ../Doc/library/asyncio-policy.rst:116 +#: ../../library/asyncio-policy.rst:116 msgid "" "In asyncio, child processes are created with :func:`create_subprocess_exec` " "and :meth:`loop.subprocess_exec` functions." msgstr "" -#: ../Doc/library/asyncio-policy.rst:120 +#: ../../library/asyncio-policy.rst:120 msgid "" "asyncio defines the :class:`AbstractChildWatcher` abstract base class, which " "child watchers should implement, and has two different implementations: :" @@ -171,119 +178,119 @@ msgid "" "`FastChildWatcher`." msgstr "" -#: ../Doc/library/asyncio-policy.rst:125 +#: ../../library/asyncio-policy.rst:125 msgid "" "See also the :ref:`Subprocess and Threads ` " "section." msgstr "" -#: ../Doc/library/asyncio-policy.rst:128 +#: ../../library/asyncio-policy.rst:128 msgid "" "The following two functions can be used to customize the child process " "watcher implementation used by the asyncio event loop:" msgstr "" -#: ../Doc/library/asyncio-policy.rst:133 +#: ../../library/asyncio-policy.rst:133 msgid "Return the current child watcher for the current policy." msgstr "" -#: ../Doc/library/asyncio-policy.rst:137 +#: ../../library/asyncio-policy.rst:137 msgid "" "Set the current child watcher to *watcher* for the current policy. " "*watcher* must implement methods defined in the :class:" "`AbstractChildWatcher` base class." msgstr "" -#: ../Doc/library/asyncio-policy.rst:142 +#: ../../library/asyncio-policy.rst:142 msgid "" "Third-party event loops implementations might not support custom child " "watchers. For such event loops, using :func:`set_child_watcher` might be " "prohibited or have no effect." msgstr "" -#: ../Doc/library/asyncio-policy.rst:150 +#: ../../library/asyncio-policy.rst:150 msgid "Register a new child handler." msgstr "" -#: ../Doc/library/asyncio-policy.rst:152 +#: ../../library/asyncio-policy.rst:152 msgid "" "Arrange for ``callback(pid, returncode, *args)`` to be called when a process " "with PID equal to *pid* terminates. Specifying another callback for the " "same process replaces the previous handler." msgstr "" -#: ../Doc/library/asyncio-policy.rst:157 +#: ../../library/asyncio-policy.rst:157 msgid "The *callback* callable must be thread-safe." msgstr "" -#: ../Doc/library/asyncio-policy.rst:161 +#: ../../library/asyncio-policy.rst:161 msgid "Removes the handler for process with PID equal to *pid*." -msgstr "" +msgstr "Remove o manipulador para processo com PID igual a *pid*." -#: ../Doc/library/asyncio-policy.rst:163 +#: ../../library/asyncio-policy.rst:163 msgid "" "The function returns ``True`` if the handler was successfully removed, " "``False`` if there was nothing to remove." msgstr "" -#: ../Doc/library/asyncio-policy.rst:168 +#: ../../library/asyncio-policy.rst:168 msgid "Attach the watcher to an event loop." msgstr "" -#: ../Doc/library/asyncio-policy.rst:170 +#: ../../library/asyncio-policy.rst:170 msgid "" "If the watcher was previously attached to an event loop, then it is first " "detached before attaching to the new loop." msgstr "" -#: ../Doc/library/asyncio-policy.rst:173 +#: ../../library/asyncio-policy.rst:173 msgid "Note: loop may be ``None``." msgstr "" -#: ../Doc/library/asyncio-policy.rst:177 +#: ../../library/asyncio-policy.rst:177 msgid "Close the watcher." msgstr "" -#: ../Doc/library/asyncio-policy.rst:179 +#: ../../library/asyncio-policy.rst:179 msgid "" "This method has to be called to ensure that underlying resources are cleaned-" "up." msgstr "" -#: ../Doc/library/asyncio-policy.rst:184 +#: ../../library/asyncio-policy.rst:184 msgid "" "This implementation avoids disrupting other code spawning processes by " "polling every process explicitly on a :py:data:`SIGCHLD` signal." msgstr "" -#: ../Doc/library/asyncio-policy.rst:187 +#: ../../library/asyncio-policy.rst:187 msgid "" "This is a safe solution but it has a significant overhead when handling a " "big number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)." msgstr "" -#: ../Doc/library/asyncio-policy.rst:191 +#: ../../library/asyncio-policy.rst:191 msgid "asyncio uses this safe implementation by default." msgstr "" -#: ../Doc/library/asyncio-policy.rst:195 +#: ../../library/asyncio-policy.rst:195 msgid "" "This implementation reaps every terminated processes by calling ``os." "waitpid(-1)`` directly, possibly breaking other code spawning processes and " "waiting for their termination." msgstr "" -#: ../Doc/library/asyncio-policy.rst:199 +#: ../../library/asyncio-policy.rst:199 msgid "" "There is no noticeable overhead when handling a big number of children " "(*O(1)* each time a child terminates)." msgstr "" -#: ../Doc/library/asyncio-policy.rst:204 +#: ../../library/asyncio-policy.rst:204 msgid "Custom Policies" msgstr "" -#: ../Doc/library/asyncio-policy.rst:206 +#: ../../library/asyncio-policy.rst:206 msgid "" "To implement a new event loop policy, it is recommended to subclass :class:" "`DefaultEventLoopPolicy` and override the methods for which custom behavior " diff --git a/library/asyncio-protocol.po b/library/asyncio-protocol.po index 0194cda12..3c9271584 100644 --- a/library/asyncio-protocol.po +++ b/library/asyncio-protocol.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-18 03:30+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" "Last-Translator: Ruan Aragão , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -56,37 +57,37 @@ msgstr "Introdução" #: ../../library/asyncio-protocol.rst:26 msgid "" "At the highest level, the transport is concerned with *how* bytes are " -"transmitted, while the protocol determines *which* bytes to transmit (and to" -" some extent when)." +"transmitted, while the protocol determines *which* bytes to transmit (and to " +"some extent when)." msgstr "" #: ../../library/asyncio-protocol.rst:30 msgid "" "A different way of saying the same thing: a transport is an abstraction for " -"a socket (or similar I/O endpoint) while a protocol is an abstraction for an" -" application, from the transport's point of view." +"a socket (or similar I/O endpoint) while a protocol is an abstraction for an " +"application, from the transport's point of view." msgstr "" #: ../../library/asyncio-protocol.rst:35 msgid "" -"Yet another view is the transport and protocol interfaces together define an" -" abstract interface for using network I/O and interprocess I/O." +"Yet another view is the transport and protocol interfaces together define an " +"abstract interface for using network I/O and interprocess I/O." msgstr "" #: ../../library/asyncio-protocol.rst:39 msgid "" "There is always a 1:1 relationship between transport and protocol objects: " -"the protocol calls transport methods to send data, while the transport calls" -" protocol methods to pass it data that has been received." +"the protocol calls transport methods to send data, while the transport calls " +"protocol methods to pass it data that has been received." msgstr "" #: ../../library/asyncio-protocol.rst:44 msgid "" -"Most of connection oriented event loop methods (such as " -":meth:`loop.create_connection`) usually accept a *protocol_factory* argument" -" used to create a *Protocol* object for an accepted connection, represented " -"by a *Transport* object. Such methods usually return a tuple of " -"``(transport, protocol)``." +"Most of connection oriented event loop methods (such as :meth:`loop." +"create_connection`) usually accept a *protocol_factory* argument used to " +"create a *Protocol* object for an accepted connection, represented by a " +"*Transport* object. Such methods usually return a tuple of ``(transport, " +"protocol)``." msgstr "" #: ../../library/asyncio-protocol.rst:51 @@ -99,16 +100,16 @@ msgstr "" #: ../../library/asyncio-protocol.rst:54 msgid "" -"The `Transports`_ section documents asyncio :class:`BaseTransport`, " -":class:`ReadTransport`, :class:`WriteTransport`, :class:`Transport`, " -":class:`DatagramTransport`, and :class:`SubprocessTransport` classes." +"The `Transports`_ section documents asyncio :class:`BaseTransport`, :class:" +"`ReadTransport`, :class:`WriteTransport`, :class:`Transport`, :class:" +"`DatagramTransport`, and :class:`SubprocessTransport` classes." msgstr "" #: ../../library/asyncio-protocol.rst:59 msgid "" -"The `Protocols`_ section documents asyncio :class:`BaseProtocol`, " -":class:`Protocol`, :class:`BufferedProtocol`, :class:`DatagramProtocol`, and" -" :class:`SubprocessProtocol` classes." +"The `Protocols`_ section documents asyncio :class:`BaseProtocol`, :class:" +"`Protocol`, :class:`BufferedProtocol`, :class:`DatagramProtocol`, and :class:" +"`SubprocessProtocol` classes." msgstr "" #: ../../library/asyncio-protocol.rst:63 @@ -150,8 +151,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:89 msgid "" -"Base class for all transports. Contains methods that all asyncio transports" -" share." +"Base class for all transports. Contains methods that all asyncio transports " +"share." msgstr "" #: ../../library/asyncio-protocol.rst:94 @@ -160,9 +161,9 @@ msgstr "" #: ../../library/asyncio-protocol.rst:96 msgid "" -"Instances of the *WriteTransport* class are returned from the " -":meth:`loop.connect_write_pipe` event loop method and are also used by " -"subprocess-related methods like :meth:`loop.subprocess_exec`." +"Instances of the *WriteTransport* class are returned from the :meth:`loop." +"connect_write_pipe` event loop method and are also used by subprocess-" +"related methods like :meth:`loop.subprocess_exec`." msgstr "" #: ../../library/asyncio-protocol.rst:103 @@ -171,9 +172,9 @@ msgstr "" #: ../../library/asyncio-protocol.rst:105 msgid "" -"Instances of the *ReadTransport* class are returned from the " -":meth:`loop.connect_read_pipe` event loop method and are also used by " -"subprocess-related methods like :meth:`loop.subprocess_exec`." +"Instances of the *ReadTransport* class are returned from the :meth:`loop." +"connect_read_pipe` event loop method and are also used by subprocess-related " +"methods like :meth:`loop.subprocess_exec`." msgstr "" #: ../../library/asyncio-protocol.rst:112 @@ -191,9 +192,9 @@ msgstr "" #: ../../library/asyncio-protocol.rst:119 msgid "" "Instances of the *Transport* class are returned from or used by event loop " -"methods like :meth:`loop.create_connection`, " -":meth:`loop.create_unix_connection`, :meth:`loop.create_server`, " -":meth:`loop.sendfile`, etc." +"methods like :meth:`loop.create_connection`, :meth:`loop." +"create_unix_connection`, :meth:`loop.create_server`, :meth:`loop.sendfile`, " +"etc." msgstr "" #: ../../library/asyncio-protocol.rst:127 @@ -202,8 +203,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:129 msgid "" -"Instances of the *DatagramTransport* class are returned from the " -":meth:`loop.create_datagram_endpoint` event loop method." +"Instances of the *DatagramTransport* class are returned from the :meth:`loop." +"create_datagram_endpoint` event loop method." msgstr "" #: ../../library/asyncio-protocol.rst:135 @@ -240,8 +241,7 @@ msgid "Return ``True`` if the transport is closing or is closed." msgstr "" #: ../../library/asyncio-protocol.rst:163 -msgid "" -"Return information about the transport or underlying resources it uses." +msgid "Return information about the transport or underlying resources it uses." msgstr "" #: ../../library/asyncio-protocol.rst:166 @@ -259,8 +259,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:174 msgid "" -"For example, the following code attempts to get the underlying socket object" -" of the transport::" +"For example, the following code attempts to get the underlying socket object " +"of the transport::" msgstr "" #: ../../library/asyncio-protocol.rst:181 @@ -283,8 +283,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:191 msgid "" -"``'sockname'``: the socket's own address, result of " -":meth:`socket.socket.getsockname`" +"``'sockname'``: the socket's own address, result of :meth:`socket.socket." +"getsockname`" msgstr "" #: ../../library/asyncio-protocol.rst:194 @@ -294,8 +294,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:196 msgid "" "``'compression'``: the compression algorithm being used as a string, or " -"``None`` if the connection isn't compressed; result of " -":meth:`ssl.SSLSocket.compression`" +"``None`` if the connection isn't compressed; result of :meth:`ssl.SSLSocket." +"compression`" msgstr "" #: ../../library/asyncio-protocol.rst:200 @@ -307,8 +307,7 @@ msgstr "" #: ../../library/asyncio-protocol.rst:205 msgid "" -"``'peercert'``: peer certificate; result of " -":meth:`ssl.SSLSocket.getpeercert`" +"``'peercert'``: peer certificate; result of :meth:`ssl.SSLSocket.getpeercert`" msgstr "" #: ../../library/asyncio-protocol.rst:208 @@ -342,8 +341,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:225 msgid "" -"Switching protocol should only be done when both protocols are documented to" -" support the switch." +"Switching protocol should only be done when both protocols are documented to " +"support the switch." msgstr "" #: ../../library/asyncio-protocol.rst:230 @@ -392,14 +391,14 @@ msgstr "" msgid "" "Close the transport immediately, without waiting for pending operations to " "complete. Buffered data will be lost. No more data will be received. The " -"protocol's :meth:`protocol.connection_lost() `" -" method will eventually be called with :const:`None` as its argument." +"protocol's :meth:`protocol.connection_lost() ` " +"method will eventually be called with :const:`None` as its argument." msgstr "" #: ../../library/asyncio-protocol.rst:276 msgid "" -"Return :const:`True` if the transport supports " -":meth:`~WriteTransport.write_eof`, :const:`False` if not." +"Return :const:`True` if the transport supports :meth:`~WriteTransport." +"write_eof`, :const:`False` if not." msgstr "" #: ../../library/asyncio-protocol.rst:281 @@ -422,9 +421,9 @@ msgstr "" #: ../../library/asyncio-protocol.rst:297 msgid "" -"These two values (measured in number of bytes) control when the protocol's " -":meth:`protocol.pause_writing() ` and " -":meth:`protocol.resume_writing() ` methods are " +"These two values (measured in number of bytes) control when the protocol's :" +"meth:`protocol.pause_writing() ` and :meth:" +"`protocol.resume_writing() ` methods are " "called. If specified, the low watermark must be less than or equal to the " "high watermark. Neither *high* nor *low* can be negative." msgstr "" @@ -432,20 +431,20 @@ msgstr "" #: ../../library/asyncio-protocol.rst:305 msgid "" ":meth:`~BaseProtocol.pause_writing` is called when the buffer size becomes " -"greater than or equal to the *high* value. If writing has been paused, " -":meth:`~BaseProtocol.resume_writing` is called when the buffer size becomes " -"less than or equal to the *low* value." +"greater than or equal to the *high* value. If writing has been paused, :meth:" +"`~BaseProtocol.resume_writing` is called when the buffer size becomes less " +"than or equal to the *low* value." msgstr "" #: ../../library/asyncio-protocol.rst:310 msgid "" "The defaults are implementation-specific. If only the high watermark is " "given, the low watermark defaults to an implementation-specific value less " -"than or equal to the high watermark. Setting *high* to zero forces *low* to" -" zero as well, and causes :meth:`~BaseProtocol.pause_writing` to be called " -"whenever the buffer becomes non-empty. Setting *low* to zero causes " -":meth:`~BaseProtocol.resume_writing` to be called only once the buffer is " -"empty. Use of zero for either limit is generally sub-optimal as it reduces " +"than or equal to the high watermark. Setting *high* to zero forces *low* to " +"zero as well, and causes :meth:`~BaseProtocol.pause_writing` to be called " +"whenever the buffer becomes non-empty. Setting *low* to zero causes :meth:" +"`~BaseProtocol.resume_writing` to be called only once the buffer is empty. " +"Use of zero for either limit is generally sub-optimal as it reduces " "opportunities for doing I/O and computation concurrently." msgstr "" @@ -479,8 +478,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:343 msgid "" -"This method can raise :exc:`NotImplementedError` if the transport (e.g. SSL)" -" doesn't support half-closed connections." +"This method can raise :exc:`NotImplementedError` if the transport (e.g. SSL) " +"doesn't support half-closed connections." msgstr "" #: ../../library/asyncio-protocol.rst:348 @@ -498,8 +497,8 @@ msgstr "" msgid "" "Close the transport immediately, without waiting for pending operations to " "complete. Buffered data will be lost. No more data will be received. The " -"protocol's :meth:`protocol.connection_lost() `" -" method will eventually be called with :const:`None` as its argument." +"protocol's :meth:`protocol.connection_lost() ` " +"method will eventually be called with :const:`None` as its argument." msgstr "" #: ../../library/asyncio-protocol.rst:372 @@ -512,26 +511,26 @@ msgstr "" #: ../../library/asyncio-protocol.rst:380 msgid "" -"Return the transport for the communication pipe corresponding to the integer" -" file descriptor *fd*:" +"Return the transport for the communication pipe corresponding to the integer " +"file descriptor *fd*:" msgstr "" #: ../../library/asyncio-protocol.rst:383 msgid "" -"``0``: readable streaming transport of the standard input (*stdin*), or " -":const:`None` if the subprocess was not created with ``stdin=PIPE``" +"``0``: readable streaming transport of the standard input (*stdin*), or :" +"const:`None` if the subprocess was not created with ``stdin=PIPE``" msgstr "" #: ../../library/asyncio-protocol.rst:385 msgid "" -"``1``: writable streaming transport of the standard output (*stdout*), or " -":const:`None` if the subprocess was not created with ``stdout=PIPE``" +"``1``: writable streaming transport of the standard output (*stdout*), or :" +"const:`None` if the subprocess was not created with ``stdout=PIPE``" msgstr "" #: ../../library/asyncio-protocol.rst:387 msgid "" -"``2``: writable streaming transport of the standard error (*stderr*), or " -":const:`None` if the subprocess was not created with ``stderr=PIPE``" +"``2``: writable streaming transport of the standard error (*stderr*), or :" +"const:`None` if the subprocess was not created with ``stderr=PIPE``" msgstr "" #: ../../library/asyncio-protocol.rst:389 @@ -541,8 +540,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:393 msgid "" "Return the subprocess return code as an integer or :const:`None` if it " -"hasn't returned, which is similar to the :attr:`subprocess.Popen.returncode`" -" attribute." +"hasn't returned, which is similar to the :attr:`subprocess.Popen.returncode` " +"attribute." msgstr "" #: ../../library/asyncio-protocol.rst:399 @@ -561,8 +560,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:408 msgid "" -"Send the *signal* number to the subprocess, as in " -":meth:`subprocess.Popen.send_signal`." +"Send the *signal* number to the subprocess, as in :meth:`subprocess.Popen." +"send_signal`." msgstr "" #: ../../library/asyncio-protocol.rst:413 @@ -572,8 +571,7 @@ msgstr "" #: ../../library/asyncio-protocol.rst:415 msgid "" "On POSIX systems, this method sends SIGTERM to the subprocess. On Windows, " -"the Windows API function TerminateProcess() is called to stop the " -"subprocess." +"the Windows API function TerminateProcess() is called to stop the subprocess." msgstr "" #: ../../library/asyncio-protocol.rst:419 @@ -619,14 +617,13 @@ msgstr "" #: ../../library/asyncio-protocol.rst:453 msgid "" -"The base class for implementing streaming protocols (TCP, Unix sockets, " -"etc)." +"The base class for implementing streaming protocols (TCP, Unix sockets, etc)." msgstr "" #: ../../library/asyncio-protocol.rst:458 msgid "" -"A base class for implementing streaming protocols with manual control of the" -" receive buffer." +"A base class for implementing streaming protocols with manual control of the " +"receive buffer." msgstr "" #: ../../library/asyncio-protocol.rst:463 @@ -635,8 +632,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:467 msgid "" -"The base class for implementing protocols communicating with child processes" -" (unidirectional pipes)." +"The base class for implementing protocols communicating with child processes " +"(unidirectional pipes)." msgstr "" #: ../../library/asyncio-protocol.rst:472 @@ -691,8 +688,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:504 msgid "" -"See the documentation of the :meth:`~WriteTransport.set_write_buffer_limits`" -" method for more details." +"See the documentation of the :meth:`~WriteTransport.set_write_buffer_limits` " +"method for more details." msgstr "" #: ../../library/asyncio-protocol.rst:509 @@ -705,9 +702,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:515 msgid "" -"If the buffer size equals the high watermark, " -":meth:`~BaseProtocol.pause_writing` is not called: the buffer size must go " -"strictly over." +"If the buffer size equals the high watermark, :meth:`~BaseProtocol." +"pause_writing` is not called: the buffer size must go strictly over." msgstr "" #: ../../library/asyncio-protocol.rst:519 @@ -723,11 +719,11 @@ msgstr "" #: ../../library/asyncio-protocol.rst:528 msgid "" -"Event methods, such as :meth:`loop.create_server`, " -":meth:`loop.create_unix_server`, :meth:`loop.create_connection`, " -":meth:`loop.create_unix_connection`, :meth:`loop.connect_accepted_socket`, " -":meth:`loop.connect_read_pipe`, and :meth:`loop.connect_write_pipe` accept " -"factories that return streaming protocols." +"Event methods, such as :meth:`loop.create_server`, :meth:`loop." +"create_unix_server`, :meth:`loop.create_connection`, :meth:`loop." +"create_unix_connection`, :meth:`loop.connect_accepted_socket`, :meth:`loop." +"connect_read_pipe`, and :meth:`loop.connect_write_pipe` accept factories " +"that return streaming protocols." msgstr "" #: ../../library/asyncio-protocol.rst:536 @@ -739,9 +735,9 @@ msgstr "" #: ../../library/asyncio-protocol.rst:539 msgid "" "Whether the data is buffered, chunked or reassembled depends on the " -"transport. In general, you shouldn't rely on specific semantics and instead" -" make your parsing generic and flexible. However, data is always received in" -" the correct order." +"transport. In general, you shouldn't rely on specific semantics and instead " +"make your parsing generic and flexible. However, data is always received in " +"the correct order." msgstr "" #: ../../library/asyncio-protocol.rst:544 @@ -766,8 +762,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:558 msgid "" -"This method may return a false value (including ``None``), in which case the" -" transport will close itself. Conversely, if this method returns a true " +"This method may return a false value (including ``None``), in which case the " +"transport will close itself. Conversely, if this method returns a true " "value, the protocol used determines whether to close the transport. Since " "the default implementation returns ``None``, it implicitly closes the " "connection." @@ -792,8 +788,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:582 msgid "" "**Important:** this has been added to asyncio in Python 3.7 *on a " -"provisional basis*! This is as an experimental API that might be changed or" -" removed completely in Python 3.8." +"provisional basis*! This is as an experimental API that might be changed or " +"removed completely in Python 3.8." msgstr "" #: ../../library/asyncio-protocol.rst:587 @@ -805,10 +801,10 @@ msgstr "" #: ../../library/asyncio-protocol.rst:590 msgid "" "``BufferedProtocol`` implementations allow explicit manual allocation and " -"control of the receive buffer. Event loops can then use the buffer provided" -" by the protocol to avoid unnecessary data copies. This can result in " -"noticeable performance improvement for protocols that receive big amounts of" -" data. Sophisticated protocol implementations can significantly reduce the " +"control of the receive buffer. Event loops can then use the buffer provided " +"by the protocol to avoid unnecessary data copies. This can result in " +"noticeable performance improvement for protocols that receive big amounts of " +"data. Sophisticated protocol implementations can significantly reduce the " "number of buffer allocations." msgstr "" @@ -845,17 +841,17 @@ msgstr "" #: ../../library/asyncio-protocol.rst:620 msgid "" -"See the documentation of the :meth:`protocol.eof_received() " -"` method." +"See the documentation of the :meth:`protocol.eof_received() ` method." msgstr "" #: ../../library/asyncio-protocol.rst:624 msgid "" ":meth:`~BufferedProtocol.get_buffer` can be called an arbitrary number of " "times during a connection. However, :meth:`protocol.eof_received() " -"` is called at most once and, if called, " -":meth:`~BufferedProtocol.get_buffer` and " -":meth:`~BufferedProtocol.buffer_updated` won't be called after it." +"` is called at most once and, if called, :meth:" +"`~BufferedProtocol.get_buffer` and :meth:`~BufferedProtocol.buffer_updated` " +"won't be called after it." msgstr "" #: ../../library/asyncio-protocol.rst:643 @@ -870,15 +866,15 @@ msgstr "" #: ../../library/asyncio-protocol.rst:650 msgid "" -"Called when a datagram is received. *data* is a bytes object containing the" -" incoming data. *addr* is the address of the peer sending the data; the " +"Called when a datagram is received. *data* is a bytes object containing the " +"incoming data. *addr* is the address of the peer sending the data; the " "exact format depends on the transport." msgstr "" #: ../../library/asyncio-protocol.rst:656 msgid "" -"Called when a previous send or receive operation raises an :class:`OSError`." -" *exc* is the :class:`OSError` instance." +"Called when a previous send or receive operation raises an :class:" +"`OSError`. *exc* is the :class:`OSError` instance." msgstr "" #: ../../library/asyncio-protocol.rst:659 @@ -891,16 +887,16 @@ msgstr "" #: ../../library/asyncio-protocol.rst:666 msgid "" "On BSD systems (macOS, FreeBSD, etc.) flow control is not supported for " -"datagram protocols, because there is no reliable way to detect send failures" -" caused by writing too many packets." +"datagram protocols, because there is no reliable way to detect send failures " +"caused by writing too many packets." msgstr "" #: ../../library/asyncio-protocol.rst:670 msgid "" -"The socket always appears 'ready' and excess packets are dropped. An " -":class:`OSError` with ``errno`` set to :const:`errno.ENOBUFS` may or may not" -" be raised; if it is raised, it will be reported to " -":meth:`DatagramProtocol.error_received` but otherwise ignored." +"The socket always appears 'ready' and excess packets are dropped. An :class:" +"`OSError` with ``errno`` set to :const:`errno.ENOBUFS` may or may not be " +"raised; if it is raised, it will be reported to :meth:`DatagramProtocol." +"error_received` but otherwise ignored." msgstr "" #: ../../library/asyncio-protocol.rst:679 @@ -910,8 +906,8 @@ msgstr "" #: ../../library/asyncio-protocol.rst:681 msgid "" "Datagram Protocol instances should be constructed by protocol factories " -"passed to the :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell`" -" methods." +"passed to the :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` " +"methods." msgstr "" #: ../../library/asyncio-protocol.rst:687 @@ -1009,15 +1005,15 @@ msgstr "" #: ../../library/asyncio-protocol.rst:975 msgid "" "The :ref:`watch a file descriptor for read events " -"` example uses the low-level " -":meth:`loop.add_reader` method to register an FD." +"` example uses the low-level :meth:`loop." +"add_reader` method to register an FD." msgstr "" #: ../../library/asyncio-protocol.rst:979 msgid "" "The :ref:`register an open socket to wait for data using streams " -"` example uses high-level streams" -" created by the :func:`open_connection` function in a coroutine." +"` example uses high-level streams " +"created by the :func:`open_connection` function in a coroutine." msgstr "" #: ../../library/asyncio-protocol.rst:986 diff --git a/library/asyncio-queue.po b/library/asyncio-queue.po index 6246e0d51..6d711283b 100644 --- a/library/asyncio-queue.po +++ b/library/asyncio-queue.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-18 10:27+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" "Last-Translator: Leticia Portella , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +37,8 @@ msgstr "" #: ../../library/asyncio-queue.rst:13 msgid "" -"Note that methods of asyncio queues don't have a *timeout* parameter; use " -":func:`asyncio.wait_for` function to do queue operations with a timeout." +"Note that methods of asyncio queues don't have a *timeout* parameter; use :" +"func:`asyncio.wait_for` function to do queue operations with a timeout." msgstr "" #: ../../library/asyncio-queue.rst:17 @@ -61,8 +62,8 @@ msgstr "" #: ../../library/asyncio-queue.rst:31 msgid "" -"Unlike the standard library threading :mod:`queue`, the size of the queue is" -" always known and can be returned by calling the :meth:`qsize` method." +"Unlike the standard library threading :mod:`queue`, the size of the queue is " +"always known and can be returned by calling the :meth:`qsize` method." msgstr "" #: ../../library/asyncio-queue.rst:35 @@ -83,8 +84,8 @@ msgstr "" #: ../../library/asyncio-queue.rst:49 msgid "" -"If the queue was initialized with ``maxsize=0`` (the default), then " -":meth:`full()` never returns ``True``." +"If the queue was initialized with ``maxsize=0`` (the default), then :meth:" +"`full()` never returns ``True``." msgstr "" #: ../../library/asyncio-queue.rst:54 @@ -95,8 +96,7 @@ msgstr "" #: ../../library/asyncio-queue.rst:59 msgid "" -"Return an item if one is immediately available, else raise " -":exc:`QueueEmpty`." +"Return an item if one is immediately available, else raise :exc:`QueueEmpty`." msgstr "" #: ../../library/asyncio-queue.rst:64 @@ -106,10 +106,10 @@ msgstr "" #: ../../library/asyncio-queue.rst:66 msgid "" "The count of unfinished tasks goes up whenever an item is added to the " -"queue. The count goes down whenever a consumer coroutine calls " -":meth:`task_done` to indicate that the item was retrieved and all work on it" -" is complete. When the count of unfinished tasks drops to zero, " -":meth:`join` unblocks." +"queue. The count goes down whenever a consumer coroutine calls :meth:" +"`task_done` to indicate that the item was retrieved and all work on it is " +"complete. When the count of unfinished tasks drops to zero, :meth:`join` " +"unblocks." msgstr "" #: ../../library/asyncio-queue.rst:74 @@ -136,16 +136,16 @@ msgstr "" #: ../../library/asyncio-queue.rst:91 msgid "" -"Used by queue consumers. For each :meth:`~Queue.get` used to fetch a task, a" -" subsequent call to :meth:`task_done` tells the queue that the processing on" -" the task is complete." +"Used by queue consumers. For each :meth:`~Queue.get` used to fetch a task, a " +"subsequent call to :meth:`task_done` tells the queue that the processing on " +"the task is complete." msgstr "" #: ../../library/asyncio-queue.rst:95 msgid "" "If a :meth:`join` is currently blocking, it will resume when all items have " -"been processed (meaning that a :meth:`task_done` call was received for every" -" item that had been :meth:`~Queue.put` into the queue)." +"been processed (meaning that a :meth:`task_done` call was received for every " +"item that had been :meth:`~Queue.put` into the queue)." msgstr "" #: ../../library/asyncio-queue.rst:100 @@ -174,8 +174,8 @@ msgstr "" #: ../../library/asyncio-queue.rst:121 msgid "" -"A variant of :class:`Queue` that retrieves most recently added entries first" -" (last in, first out)." +"A variant of :class:`Queue` that retrieves most recently added entries first " +"(last in, first out)." msgstr "" #: ../../library/asyncio-queue.rst:126 @@ -184,8 +184,8 @@ msgstr "Exceções" #: ../../library/asyncio-queue.rst:130 msgid "" -"This exception is raised when the :meth:`~Queue.get_nowait` method is called" -" on an empty queue." +"This exception is raised when the :meth:`~Queue.get_nowait` method is called " +"on an empty queue." msgstr "" #: ../../library/asyncio-queue.rst:136 diff --git a/library/asyncio-stream.po b/library/asyncio-stream.po index a77352be0..7388b3fe0 100644 --- a/library/asyncio-stream.po +++ b/library/asyncio-stream.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Cássio Nomura , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" "Last-Translator: Cássio Nomura , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,8 +40,7 @@ msgstr "" "chamadas ou protocolos de baixo nível." #: ../../library/asyncio-stream.rst:15 -msgid "" -"Here is an example of a TCP echo client written using asyncio streams::" +msgid "Here is an example of a TCP echo client written using asyncio streams::" msgstr "" #: ../../library/asyncio-stream.rst:37 @@ -65,8 +65,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:54 msgid "" -"The returned *reader* and *writer* objects are instances of " -":class:`StreamReader` and :class:`StreamWriter` classes." +"The returned *reader* and *writer* objects are instances of :class:" +"`StreamReader` and :class:`StreamWriter` classes." msgstr "" #: ../../library/asyncio-stream.rst:57 @@ -77,14 +77,14 @@ msgstr "" #: ../../library/asyncio-stream.rst:60 ../../library/asyncio-stream.rst:93 msgid "" -"*limit* determines the buffer size limit used by the returned " -":class:`StreamReader` instance. By default the *limit* is set to 64 KiB." +"*limit* determines the buffer size limit used by the returned :class:" +"`StreamReader` instance. By default the *limit* is set to 64 KiB." msgstr "" #: ../../library/asyncio-stream.rst:64 msgid "" -"The rest of the arguments are passed directly to " -":meth:`loop.create_connection`." +"The rest of the arguments are passed directly to :meth:`loop." +"create_connection`." msgstr "" #: ../../library/asyncio-stream.rst:69 ../../library/asyncio-stream.rst:122 @@ -131,8 +131,7 @@ msgstr "" #: ../../library/asyncio-stream.rst:111 msgid "" -"Establish a Unix socket connection and return a pair of ``(reader, " -"writer)``." +"Establish a Unix socket connection and return a pair of ``(reader, writer)``." msgstr "" #: ../../library/asyncio-stream.rst:114 @@ -179,8 +178,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:162 msgid "" -"It is not recommended to instantiate *StreamReader* objects directly; use " -":func:`open_connection` and :func:`start_server` instead." +"It is not recommended to instantiate *StreamReader* objects directly; use :" +"func:`open_connection` and :func:`start_server` instead." msgstr "" #: ../../library/asyncio-stream.rst:168 @@ -196,7 +195,8 @@ msgid "" msgstr "" #: ../../library/asyncio-stream.rst:176 -msgid "Read one line, where \"line\" is a sequence of bytes ending with ``\\n``." +msgid "" +"Read one line, where \"line\" is a sequence of bytes ending with ``\\n``." msgstr "" #: ../../library/asyncio-stream.rst:179 @@ -234,22 +234,21 @@ msgstr "" #: ../../library/asyncio-stream.rst:201 msgid "" -"If the amount of data read exceeds the configured stream limit, a " -":exc:`LimitOverrunError` exception is raised, and the data is left in the " +"If the amount of data read exceeds the configured stream limit, a :exc:" +"`LimitOverrunError` exception is raised, and the data is left in the " "internal buffer and can be read again." msgstr "" #: ../../library/asyncio-stream.rst:205 msgid "" -"If EOF is reached before the complete separator is found, an " -":exc:`IncompleteReadError` exception is raised, and the internal buffer is " +"If EOF is reached before the complete separator is found, an :exc:" +"`IncompleteReadError` exception is raised, and the internal buffer is " "reset. The :attr:`IncompleteReadError.partial` attribute may contain a " "portion of the separator." msgstr "" #: ../../library/asyncio-stream.rst:214 -msgid "" -"Return ``True`` if the buffer is empty and :meth:`feed_eof` was called." +msgid "Return ``True`` if the buffer is empty and :meth:`feed_eof` was called." msgstr "" #: ../../library/asyncio-stream.rst:219 @@ -258,20 +257,19 @@ msgstr "" #: ../../library/asyncio-stream.rst:223 msgid "" -"Represents a writer object that provides APIs to write data to the IO " -"stream." +"Represents a writer object that provides APIs to write data to the IO stream." msgstr "" #: ../../library/asyncio-stream.rst:226 msgid "" -"It is not recommended to instantiate *StreamWriter* objects directly; use " -":func:`open_connection` and :func:`start_server` instead." +"It is not recommended to instantiate *StreamWriter* objects directly; use :" +"func:`open_connection` and :func:`start_server` instead." msgstr "" #: ../../library/asyncio-stream.rst:232 msgid "" -"Return *True* if the underlying transport supports the :meth:`write_eof` " -"method, *False* otherwise." +"Return ``True`` if the underlying transport supports the :meth:`write_eof` " +"method, ``False`` otherwise." msgstr "" #: ../../library/asyncio-stream.rst:237 @@ -285,8 +283,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:246 msgid "" -"Access optional transport information; see " -":meth:`BaseTransport.get_extra_info` for details." +"Access optional transport information; see :meth:`BaseTransport." +"get_extra_info` for details." msgstr "" #: ../../library/asyncio-stream.rst:251 @@ -305,22 +303,21 @@ msgstr "" #: ../../library/asyncio-stream.rst:260 msgid "" -"This method is not subject to flow control. Calls to ``writelines()`` should" -" be followed by :meth:`drain`." +"This method is not subject to flow control. Calls to ``writelines()`` should " +"be followed by :meth:`drain`." msgstr "" #: ../../library/asyncio-stream.rst:265 -msgid "" -"Wait until it is appropriate to resume writing to the stream. Example::" +msgid "Wait until it is appropriate to resume writing to the stream. Example::" msgstr "" #: ../../library/asyncio-stream.rst:271 msgid "" "This is a flow control method that interacts with the underlying IO write " "buffer. When the size of the buffer reaches the high watermark, *drain()* " -"blocks until the size of the buffer is drained down to the low watermark and" -" writing can be resumed. When there is nothing to wait for, the " -":meth:`drain` returns immediately." +"blocks until the size of the buffer is drained down to the low watermark and " +"writing can be resumed. When there is nothing to wait for, the :meth:" +"`drain` returns immediately." msgstr "" #: ../../library/asyncio-stream.rst:280 @@ -338,8 +335,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:293 msgid "" -"Should be called after :meth:`close` to wait until the underlying connection" -" is closed." +"Should be called after :meth:`close` to wait until the underlying connection " +"is closed." msgstr "" #: ../../library/asyncio-stream.rst:300 @@ -357,8 +354,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:329 msgid "" "The :ref:`TCP echo client protocol " -"` example uses the low-level " -":meth:`loop.create_connection` method." +"` example uses the low-level :meth:" +"`loop.create_connection` method." msgstr "" #: ../../library/asyncio-stream.rst:336 @@ -372,8 +369,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:371 msgid "" "The :ref:`TCP echo server protocol " -"` example uses the " -":meth:`loop.create_server` method." +"` example uses the :meth:`loop." +"create_server` method." msgstr "" #: ../../library/asyncio-stream.rst:376 @@ -399,8 +396,8 @@ msgstr "" #: ../../library/asyncio-stream.rst:430 msgid "" -"Coroutine waiting until a socket receives data using the " -":func:`open_connection` function::" +"Coroutine waiting until a socket receives data using the :func:" +"`open_connection` function::" msgstr "" #: ../../library/asyncio-stream.rst:464 @@ -413,6 +410,6 @@ msgstr "" #: ../../library/asyncio-stream.rst:468 msgid "" "The :ref:`watch a file descriptor for read events " -"` example uses the low-level " -":meth:`loop.add_reader` method to watch a file descriptor." +"` example uses the low-level :meth:`loop." +"add_reader` method to watch a file descriptor." msgstr "" diff --git a/library/asyncio-subprocess.po b/library/asyncio-subprocess.po index c7d933529..93402780e 100644 --- a/library/asyncio-subprocess.po +++ b/library/asyncio-subprocess.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -66,8 +68,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:80 msgid "" "The *limit* argument sets the buffer limit for :class:`StreamReader` " -"wrappers for :attr:`Process.stdout` and :attr:`Process.stderr` (if " -":attr:`subprocess.PIPE` is passed to *stdout* and *stderr* arguments)." +"wrappers for :attr:`Process.stdout` and :attr:`Process.stderr` (if :attr:" +"`subprocess.PIPE` is passed to *stdout* and *stderr* arguments)." msgstr "" #: ../../library/asyncio-subprocess.rst:69 @@ -102,18 +104,18 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:100 msgid "" "The default asyncio event loop implementation on **Windows** does not " -"support subprocesses. Subprocesses are available for Windows if a " -":class:`ProactorEventLoop` is used. See :ref:`Subprocess Support on Windows " +"support subprocesses. Subprocesses are available for Windows if a :class:" +"`ProactorEventLoop` is used. See :ref:`Subprocess Support on Windows " "` for details." msgstr "" #: ../../library/asyncio-subprocess.rst:108 msgid "" -"asyncio also has the following *low-level* APIs to work with subprocesses: " -":meth:`loop.subprocess_exec`, :meth:`loop.subprocess_shell`, " -":meth:`loop.connect_read_pipe`, :meth:`loop.connect_write_pipe`, as well as " -"the :ref:`Subprocess Transports ` and " -":ref:`Subprocess Protocols `." +"asyncio also has the following *low-level* APIs to work with subprocesses: :" +"meth:`loop.subprocess_exec`, :meth:`loop.subprocess_shell`, :meth:`loop." +"connect_read_pipe`, :meth:`loop.connect_write_pipe`, as well as the :ref:" +"`Subprocess Transports ` and :ref:`Subprocess " +"Protocols `." msgstr "" #: ../../library/asyncio-subprocess.rst:116 @@ -126,17 +128,17 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:122 msgid "" -"If *PIPE* is passed to *stdin* argument, the :attr:`Process.stdin " -"` attribute will point to a " -":class:`StreamWriter` instance." +"If *PIPE* is passed to *stdin* argument, the :attr:`Process.stdin ` attribute will point to a :class:`StreamWriter` " +"instance." msgstr "" #: ../../library/asyncio-subprocess.rst:126 msgid "" -"If *PIPE* is passed to *stdout* or *stderr* arguments, the " -":attr:`Process.stdout ` and " -":attr:`Process.stderr ` attributes will " -"point to :class:`StreamReader` instances." +"If *PIPE* is passed to *stdout* or *stderr* arguments, the :attr:`Process." +"stdout ` and :attr:`Process.stderr " +"` attributes will point to :class:" +"`StreamReader` instances." msgstr "" #: ../../library/asyncio-subprocess.rst:133 @@ -147,9 +149,9 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:138 msgid "" -"Special value that can be used as the *stdin*, *stdout* or *stderr* argument" -" to process creation functions. It indicates that the special file " -":data:`os.devnull` will be used for the corresponding subprocess stream." +"Special value that can be used as the *stdin*, *stdout* or *stderr* argument " +"to process creation functions. It indicates that the special file :data:`os." +"devnull` will be used for the corresponding subprocess stream." msgstr "" #: ../../library/asyncio-subprocess.rst:144 @@ -166,35 +168,34 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:153 msgid "" -"An object that wraps OS processes created by the " -":func:`create_subprocess_exec` and :func:`create_subprocess_shell` " -"functions." +"An object that wraps OS processes created by the :func:" +"`create_subprocess_exec` and :func:`create_subprocess_shell` functions." msgstr "" #: ../../library/asyncio-subprocess.rst:157 msgid "" -"This class is designed to have a similar API to the " -":class:`subprocess.Popen` class, but there are some notable differences:" +"This class is designed to have a similar API to the :class:`subprocess." +"Popen` class, but there are some notable differences:" msgstr "" #: ../../library/asyncio-subprocess.rst:161 msgid "" -"unlike Popen, Process instances do not have an equivalent to the " -":meth:`~subprocess.Popen.poll` method;" +"unlike Popen, Process instances do not have an equivalent to the :meth:" +"`~subprocess.Popen.poll` method;" msgstr "" #: ../../library/asyncio-subprocess.rst:164 msgid "" -"the :meth:`~asyncio.subprocess.Process.communicate` and " -":meth:`~asyncio.subprocess.Process.wait` methods don't have a *timeout* " -"parameter: use the :func:`wait_for` function;" +"the :meth:`~asyncio.subprocess.Process.communicate` and :meth:`~asyncio." +"subprocess.Process.wait` methods don't have a *timeout* parameter: use the :" +"func:`wait_for` function;" msgstr "" #: ../../library/asyncio-subprocess.rst:168 msgid "" "the :meth:`Process.wait() ` method is " -"asynchronous, whereas :meth:`subprocess.Popen.wait` method is implemented as" -" a blocking busy loop;" +"asynchronous, whereas :meth:`subprocess.Popen.wait` method is implemented as " +"a blocking busy loop;" msgstr "" #: ../../library/asyncio-subprocess.rst:172 @@ -222,8 +223,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:187 msgid "" "This method can deadlock when using ``stdout=PIPE`` or ``stderr=PIPE`` and " -"the child process generates so much output that it blocks waiting for the OS" -" pipe buffer to accept more data. Use the :meth:`communicate` method when " +"the child process generates so much output that it blocks waiting for the OS " +"pipe buffer to accept more data. Use the :meth:`communicate` method when " "using pipes to avoid this condition." msgstr "" @@ -255,8 +256,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:206 msgid "" -"If either :exc:`BrokenPipeError` or :exc:`ConnectionResetError` exception is" -" raised when writing *input* into *stdin*, the exception is ignored. This " +"If either :exc:`BrokenPipeError` or :exc:`ConnectionResetError` exception is " +"raised when writing *input* into *stdin*, the exception is ignored. This " "condition occurs when the process exits before all data are written into " "*stdin*." msgstr "" @@ -271,8 +272,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:217 msgid "" -"Note, that the data read is buffered in memory, so do not use this method if" -" the data size is large or unlimited." +"Note, that the data read is buffered in memory, so do not use this method if " +"the data size is large or unlimited." msgstr "" #: ../../library/asyncio-subprocess.rst:222 @@ -283,8 +284,7 @@ msgstr "" msgid "" "On Windows, :py:data:`SIGTERM` is an alias for :meth:`terminate`. " "``CTRL_C_EVENT`` and ``CTRL_BREAK_EVENT`` can be sent to processes started " -"with a *creationflags* parameter which includes " -"``CREATE_NEW_PROCESS_GROUP``." +"with a *creationflags* parameter which includes ``CREATE_NEW_PROCESS_GROUP``." msgstr "" #: ../../library/asyncio-subprocess.rst:233 @@ -318,8 +318,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:252 msgid "" -"Standard input stream (:class:`StreamWriter`) or ``None`` if the process was" -" created with ``stdin=None``." +"Standard input stream (:class:`StreamWriter`) or ``None`` if the process was " +"created with ``stdin=None``." msgstr "" #: ../../library/asyncio-subprocess.rst:257 @@ -330,8 +330,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:262 msgid "" -"Standard error stream (:class:`StreamReader`) or ``None`` if the process was" -" created with ``stderr=None``." +"Standard error stream (:class:`StreamReader`) or ``None`` if the process was " +"created with ``stderr=None``." msgstr "" #: ../../library/asyncio-subprocess.rst:267 @@ -383,8 +383,8 @@ msgstr "" #: ../../library/asyncio-subprocess.rst:301 msgid "" "The child watcher must be instantiated in the main thread before executing " -"subprocesses from other threads. Call the :func:`get_child_watcher` function" -" in the main thread to instantiate the child watcher." +"subprocesses from other threads. Call the :func:`get_child_watcher` function " +"in the main thread to instantiate the child watcher." msgstr "" #: ../../library/asyncio-subprocess.rst:306 @@ -405,8 +405,8 @@ msgstr "Exemplos" #: ../../library/asyncio-subprocess.rst:318 msgid "" -"An example using the :class:`~asyncio.subprocess.Process` class to control a" -" subprocess and the :class:`StreamReader` class to read from its standard " +"An example using the :class:`~asyncio.subprocess.Process` class to control a " +"subprocess and the :class:`StreamReader` class to read from its standard " "output." msgstr "" diff --git a/library/asyncio-sync.po b/library/asyncio-sync.po index 7f18ea335..2f391adce 100644 --- a/library/asyncio-sync.po +++ b/library/asyncio-sync.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Italo Penaforte , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-30 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:10+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,23 +52,23 @@ msgstr "" #: ../../library/asyncio-sync.rst:22 msgid ":class:`Lock`" -msgstr "" +msgstr ":class:`Lock`" #: ../../library/asyncio-sync.rst:23 msgid ":class:`Event`" -msgstr "" +msgstr ":class:`Event`" #: ../../library/asyncio-sync.rst:24 msgid ":class:`Condition`" -msgstr "" +msgstr ":class:`Condition`" #: ../../library/asyncio-sync.rst:25 msgid ":class:`Semaphore`" -msgstr "" +msgstr ":class:`Semaphore`" #: ../../library/asyncio-sync.rst:26 msgid ":class:`BoundedSemaphore`" -msgstr "" +msgstr ":class:`BoundedSemaphore`" #: ../../library/asyncio-sync.rst:33 msgid "Lock" @@ -83,8 +85,7 @@ msgid "" msgstr "" #: ../../library/asyncio-sync.rst:42 -msgid "" -"The preferred way to use a Lock is an :keyword:`async with` statement::" +msgid "The preferred way to use a Lock is an :keyword:`async with` statement::" msgstr "" #: ../../library/asyncio-sync.rst:51 ../../library/asyncio-sync.rst:185 @@ -146,10 +147,10 @@ msgstr "" #: ../../library/asyncio-sync.rst:99 msgid "" -"An Event object manages an internal flag that can be set to *true* with the " -":meth:`set` method and reset to *false* with the :meth:`clear` method. The " -":meth:`wait` method blocks until the flag is set to *true*. The flag is set" -" to *false* initially." +"An Event object manages an internal flag that can be set to *true* with the :" +"meth:`set` method and reset to *false* with the :meth:`clear` method. The :" +"meth:`wait` method blocks until the flag is set to *true*. The flag is set " +"to *false* initially." msgstr "" #: ../../library/asyncio-sync.rst:106 @@ -204,17 +205,17 @@ msgstr "" #: ../../library/asyncio-sync.rst:166 msgid "" -"In essence, a Condition object combines the functionality of an " -":class:`Event` and a :class:`Lock`. It is possible to have multiple " -"Condition objects share one Lock, which allows coordinating exclusive access" -" to a shared resource between different tasks interested in particular " -"states of that shared resource." +"In essence, a Condition object combines the functionality of an :class:" +"`Event` and a :class:`Lock`. It is possible to have multiple Condition " +"objects share one Lock, which allows coordinating exclusive access to a " +"shared resource between different tasks interested in particular states of " +"that shared resource." msgstr "" #: ../../library/asyncio-sync.rst:172 msgid "" -"The optional *lock* argument must be a :class:`Lock` object or ``None``. In" -" the latter case a new Lock object is created automatically." +"The optional *lock* argument must be a :class:`Lock` object or ``None``. In " +"the latter case a new Lock object is created automatically." msgstr "" #: ../../library/asyncio-sync.rst:176 @@ -271,8 +272,8 @@ msgstr "" #: ../../library/asyncio-sync.rst:238 msgid "" -"If the calling task has not acquired the lock when this method is called, a " -":exc:`RuntimeError` is raised." +"If the calling task has not acquired the lock when this method is called, a :" +"exc:`RuntimeError` is raised." msgstr "" #: ../../library/asyncio-sync.rst:241 @@ -302,17 +303,17 @@ msgstr "" #: ../../library/asyncio-sync.rst:262 msgid "" -"A semaphore manages an internal counter which is decremented by each " -":meth:`acquire` call and incremented by each :meth:`release` call. The " -"counter can never go below zero; when :meth:`acquire` finds that it is zero," -" it blocks, waiting until some task calls :meth:`release`." +"A semaphore manages an internal counter which is decremented by each :meth:" +"`acquire` call and incremented by each :meth:`release` call. The counter can " +"never go below zero; when :meth:`acquire` finds that it is zero, it blocks, " +"waiting until some task calls :meth:`release`." msgstr "" #: ../../library/asyncio-sync.rst:268 msgid "" "The optional *value* argument gives the initial value for the internal " -"counter (``1`` by default). If the given value is less than ``0`` a " -":exc:`ValueError` is raised." +"counter (``1`` by default). If the given value is less than ``0`` a :exc:" +"`ValueError` is raised." msgstr "" #: ../../library/asyncio-sync.rst:272 @@ -326,9 +327,9 @@ msgstr "" #: ../../library/asyncio-sync.rst:296 msgid "" -"If the internal counter is greater than zero, decrement it by one and return" -" ``True`` immediately. If it is zero, wait until a :meth:`release` is " -"called and return ``True``." +"If the internal counter is greater than zero, decrement it by one and return " +"``True`` immediately. If it is zero, wait until a :meth:`release` is called " +"and return ``True``." msgstr "" #: ../../library/asyncio-sync.rst:302 @@ -337,8 +338,8 @@ msgstr "" #: ../../library/asyncio-sync.rst:306 msgid "" -"Release a semaphore, incrementing the internal counter by one. Can wake up a" -" task waiting to acquire the semaphore." +"Release a semaphore, incrementing the internal counter by one. Can wake up a " +"task waiting to acquire the semaphore." msgstr "" #: ../../library/asyncio-sync.rst:309 @@ -357,14 +358,14 @@ msgstr "" #: ../../library/asyncio-sync.rst:320 msgid "" -"Bounded Semaphore is a version of :class:`Semaphore` that raises a " -":exc:`ValueError` in :meth:`~Semaphore.release` if it increases the internal" -" counter above the initial *value*." +"Bounded Semaphore is a version of :class:`Semaphore` that raises a :exc:" +"`ValueError` in :meth:`~Semaphore.release` if it increases the internal " +"counter above the initial *value*." msgstr "" #: ../../library/asyncio-sync.rst:330 msgid "" -"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or " -":keyword:`with` statement (``with await lock``, ``with (yield from lock)``) " -"is deprecated. Use ``async with lock`` instead." +"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or :keyword:" +"`with` statement (``with await lock``, ``with (yield from lock)``) is " +"deprecated. Use ``async with lock`` instead." msgstr "" diff --git a/library/asyncio-task.po b/library/asyncio-task.po index 58c8aef69..9f756d52d 100644 --- a/library/asyncio-task.po +++ b/library/asyncio-task.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-01 03:39+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -55,14 +57,14 @@ msgstr "" #: ../../library/asyncio-task.rst:45 msgid "" -"The :func:`asyncio.run` function to run the top-level entry point \"main()\"" -" function (see the above example.)" +"The :func:`asyncio.run` function to run the top-level entry point \"main()\" " +"function (see the above example.)" msgstr "" #: ../../library/asyncio-task.rst:48 msgid "" -"Awaiting on a coroutine. The following snippet of code will print \"hello\"" -" after waiting for 1 second, and then print \"world\" after waiting for " +"Awaiting on a coroutine. The following snippet of code will print \"hello\" " +"after waiting for 1 second, and then print \"world\" after waiting for " "*another* 2 seconds::" msgstr "" @@ -94,8 +96,8 @@ msgstr "" #: ../../library/asyncio-task.rst:112 msgid "" -"We say that an object is an **awaitable** object if it can be used in an " -":keyword:`await` expression. Many asyncio APIs are designed to accept " +"We say that an object is an **awaitable** object if it can be used in an :" +"keyword:`await` expression. Many asyncio APIs are designed to accept " "awaitables." msgstr "" @@ -142,9 +144,8 @@ msgstr "" #: ../../library/asyncio-task.rst:159 msgid "" -"When a coroutine is wrapped into a *Task* with functions like " -":func:`asyncio.create_task` the coroutine is automatically scheduled to run " -"soon::" +"When a coroutine is wrapped into a *Task* with functions like :func:`asyncio." +"create_task` the coroutine is automatically scheduled to run soon::" msgstr "" #: ../../library/asyncio-task.rst:181 @@ -165,8 +166,8 @@ msgstr "" #: ../../library/asyncio-task.rst:188 msgid "" -"Future objects in asyncio are needed to allow callback-based code to be used" -" with async/await." +"Future objects in asyncio are needed to allow callback-based code to be used " +"with async/await." msgstr "" #: ../../library/asyncio-task.rst:191 @@ -177,14 +178,14 @@ msgstr "" #: ../../library/asyncio-task.rst:194 msgid "" -"Future objects, sometimes exposed by libraries and some asyncio APIs, can be" -" awaited::" +"Future objects, sometimes exposed by libraries and some asyncio APIs, can be " +"awaited::" msgstr "" #: ../../library/asyncio-task.rst:206 msgid "" -"A good example of a low-level function that returns a Future object is " -":meth:`loop.run_in_executor`." +"A good example of a low-level function that returns a Future object is :meth:" +"`loop.run_in_executor`." msgstr "" #: ../../library/asyncio-task.rst:211 @@ -197,14 +198,14 @@ msgstr "" #: ../../library/asyncio-task.rst:217 msgid "" -"This function runs the passed coroutine, taking care of managing the asyncio" -" event loop and *finalizing asynchronous generators*." +"This function runs the passed coroutine, taking care of managing the asyncio " +"event loop and *finalizing asynchronous generators*." msgstr "" #: ../../library/asyncio-task.rst:221 msgid "" -"This function cannot be called when another asyncio event loop is running in" -" the same thread." +"This function cannot be called when another asyncio event loop is running in " +"the same thread." msgstr "" #: ../../library/asyncio-task.rst:224 @@ -225,8 +226,8 @@ msgstr "Exemplo::" #: ../../library/asyncio-task.rst:238 msgid "" -"**Important:** this function has been added to asyncio in Python 3.7 on a " -":term:`provisional basis `." +"**Important:** this function has been added to asyncio in Python 3.7 on a :" +"term:`provisional basis `." msgstr "" #: ../../library/asyncio-task.rst:244 @@ -241,8 +242,8 @@ msgstr "" #: ../../library/asyncio-task.rst:251 msgid "" -"The task is executed in the loop returned by :func:`get_running_loop`, " -":exc:`RuntimeError` is raised if there is no running loop in current thread." +"The task is executed in the loop returned by :func:`get_running_loop`, :exc:" +"`RuntimeError` is raised if there is no running loop in current thread." msgstr "" #: ../../library/asyncio-task.rst:255 @@ -278,8 +279,7 @@ msgstr "" #: ../../library/asyncio-task.rst:291 msgid "" -"Example of coroutine displaying the current date every second for 5 " -"seconds::" +"Example of coroutine displaying the current date every second for 5 seconds::" msgstr "" #: ../../library/asyncio-task.rst:310 @@ -294,8 +294,8 @@ msgstr "" #: ../../library/asyncio-task.rst:317 msgid "" -"If any awaitable in *aws* is a coroutine, it is automatically scheduled as a" -" Task." +"If any awaitable in *aws* is a coroutine, it is automatically scheduled as a " +"Task." msgstr "" #: ../../library/asyncio-task.rst:320 @@ -307,10 +307,10 @@ msgstr "" #: ../../library/asyncio-task.rst:324 msgid "" -"If *return_exceptions* is ``False`` (default), the first raised exception is" -" immediately propagated to the task that awaits on ``gather()``. Other " -"awaitables in the *aws* sequence **won't be cancelled** and will continue to" -" run." +"If *return_exceptions* is ``False`` (default), the first raised exception is " +"immediately propagated to the task that awaits on ``gather()``. Other " +"awaitables in the *aws* sequence **won't be cancelled** and will continue to " +"run." msgstr "" #: ../../library/asyncio-task.rst:329 @@ -345,8 +345,8 @@ msgstr "" #: ../../library/asyncio-task.rst:387 msgid "" -"Protect an :ref:`awaitable object ` from being " -":meth:`cancelled `." +"Protect an :ref:`awaitable object ` from being :meth:" +"`cancelled `." msgstr "" #: ../../library/asyncio-task.rst:390 ../../library/asyncio-task.rst:427 @@ -366,8 +366,8 @@ msgid "" "*except* that if the coroutine containing it is cancelled, the Task running " "in ``something()`` is not cancelled. From the point of view of " "``something()``, the cancellation did not happen. Although its caller is " -"still cancelled, so the \"await\" expression still raises a " -":exc:`CancelledError`." +"still cancelled, so the \"await\" expression still raises a :exc:" +"`CancelledError`." msgstr "" #: ../../library/asyncio-task.rst:406 @@ -395,20 +395,20 @@ msgstr "" #: ../../library/asyncio-task.rst:429 msgid "" -"*timeout* can either be ``None`` or a float or int number of seconds to wait" -" for. If *timeout* is ``None``, block until the future completes." +"*timeout* can either be ``None`` or a float or int number of seconds to wait " +"for. If *timeout* is ``None``, block until the future completes." msgstr "" #: ../../library/asyncio-task.rst:433 msgid "" -"If a timeout occurs, it cancels the task and raises " -":exc:`asyncio.TimeoutError`." +"If a timeout occurs, it cancels the task and raises :exc:`asyncio." +"TimeoutError`." msgstr "" #: ../../library/asyncio-task.rst:436 msgid "" -"To avoid the task :meth:`cancellation `, wrap it in " -":func:`shield`." +"To avoid the task :meth:`cancellation `, wrap it in :func:" +"`shield`." msgstr "" #: ../../library/asyncio-task.rst:439 @@ -439,9 +439,9 @@ msgstr "" #: ../../library/asyncio-task.rst:485 msgid "" -"If any awaitable in *aws* is a coroutine, it is automatically scheduled as a" -" Task. Passing coroutines objects to ``wait()`` directly is deprecated as " -"it leads to :ref:`confusing behavior `." +"If any awaitable in *aws* is a coroutine, it is automatically scheduled as a " +"Task. Passing coroutines objects to ``wait()`` directly is deprecated as it " +"leads to :ref:`confusing behavior `." msgstr "" #: ../../library/asyncio-task.rst:490 @@ -454,21 +454,21 @@ msgstr "Utilização::" #: ../../library/asyncio-task.rst:499 msgid "" -"*timeout* (a float or int), if specified, can be used to control the maximum" -" number of seconds to wait before returning." +"*timeout* (a float or int), if specified, can be used to control the maximum " +"number of seconds to wait before returning." msgstr "" #: ../../library/asyncio-task.rst:502 msgid "" "Note that this function does not raise :exc:`asyncio.TimeoutError`. Futures " -"or Tasks that aren't done when the timeout occurs are simply returned in the" -" second set." +"or Tasks that aren't done when the timeout occurs are simply returned in the " +"second set." msgstr "" #: ../../library/asyncio-task.rst:506 msgid "" -"*return_when* indicates when this function should return. It must be one of" -" the following constants:" +"*return_when* indicates when this function should return. It must be one of " +"the following constants:" msgstr "" #: ../../library/asyncio-task.rst:512 @@ -481,7 +481,7 @@ msgstr "Description (descrição)" #: ../../library/asyncio-task.rst:514 msgid ":const:`FIRST_COMPLETED`" -msgstr "" +msgstr ":const:`FIRST_COMPLETED`" #: ../../library/asyncio-task.rst:514 msgid "The function will return when any future finishes or is cancelled." @@ -489,13 +489,13 @@ msgstr "" #: ../../library/asyncio-task.rst:517 msgid ":const:`FIRST_EXCEPTION`" -msgstr "" +msgstr ":const:`FIRST_EXCEPTION`" #: ../../library/asyncio-task.rst:517 msgid "" "The function will return when any future finishes by raising an exception. " -"If no future raises an exception then it is equivalent to " -":const:`ALL_COMPLETED`." +"If no future raises an exception then it is equivalent to :const:" +"`ALL_COMPLETED`." msgstr "" #: ../../library/asyncio-task.rst:523 @@ -531,8 +531,8 @@ msgstr "" msgid "" "Run :ref:`awaitable objects ` in the *aws* set " "concurrently. Return an iterator of :class:`Future` objects. Each Future " -"object returned represents the earliest result from the set of the remaining" -" awaitables." +"object returned represents the earliest result from the set of the remaining " +"awaitables." msgstr "" #: ../../library/asyncio-task.rst:568 @@ -575,8 +575,8 @@ msgstr "" #: ../../library/asyncio-task.rst:617 msgid "" -"Unlike other asyncio functions this function requires the *loop* argument to" -" be passed explicitly." +"Unlike other asyncio functions this function requires the *loop* argument to " +"be passed explicitly." msgstr "" #: ../../library/asyncio-task.rst:624 @@ -596,8 +596,7 @@ msgid "" msgstr "" #: ../../library/asyncio-task.rst:640 -msgid "" -"Return a set of not yet finished :class:`Task` objects run by the loop." +msgid "Return a set of not yet finished :class:`Task` objects run by the loop." msgstr "" #: ../../library/asyncio-task.rst:643 @@ -648,15 +647,15 @@ msgstr "" #: ../../library/asyncio-task.rst:678 msgid "" -":meth:`cancelled` can be used to check if the Task was cancelled. The method" -" returns ``True`` if the wrapped coroutine did not suppress the " -":exc:`CancelledError` exception and was actually cancelled." +":meth:`cancelled` can be used to check if the Task was cancelled. The method " +"returns ``True`` if the wrapped coroutine did not suppress the :exc:" +"`CancelledError` exception and was actually cancelled." msgstr "" #: ../../library/asyncio-task.rst:683 msgid "" -":class:`asyncio.Task` inherits from :class:`Future` all of its APIs except " -":meth:`Future.set_result` and :meth:`Future.set_exception`." +":class:`asyncio.Task` inherits from :class:`Future` all of its APIs except :" +"meth:`Future.set_result` and :meth:`Future.set_exception`." msgstr "" #: ../../library/asyncio-task.rst:687 @@ -684,10 +683,10 @@ msgstr "" msgid "" "The coroutine then has a chance to clean up or even deny the request by " "suppressing the exception with a :keyword:`try` ... ... ``except " -"CancelledError`` ... :keyword:`finally` block. Therefore, unlike " -":meth:`Future.cancel`, :meth:`Task.cancel` does not guarantee that the Task " -"will be cancelled, although suppressing cancellation completely is not " -"common and is actively discouraged." +"CancelledError`` ... :keyword:`finally` block. Therefore, unlike :meth:" +"`Future.cancel`, :meth:`Task.cancel` does not guarantee that the Task will " +"be cancelled, although suppressing cancellation completely is not common and " +"is actively discouraged." msgstr "" #: ../../library/asyncio-task.rst:711 @@ -702,9 +701,9 @@ msgstr "" #: ../../library/asyncio-task.rst:752 msgid "" -"The Task is *cancelled* when the cancellation was requested with " -":meth:`cancel` and the wrapped coroutine propagated the " -":exc:`CancelledError` exception thrown into it." +"The Task is *cancelled* when the cancellation was requested with :meth:" +"`cancel` and the wrapped coroutine propagated the :exc:`CancelledError` " +"exception thrown into it." msgstr "" #: ../../library/asyncio-task.rst:758 @@ -729,14 +728,14 @@ msgstr "" #: ../../library/asyncio-task.rst:771 ../../library/asyncio-task.rst:785 msgid "" -"If the Task has been *cancelled*, this method raises a :exc:`CancelledError`" -" exception." +"If the Task has been *cancelled*, this method raises a :exc:`CancelledError` " +"exception." msgstr "" #: ../../library/asyncio-task.rst:774 msgid "" -"If the Task's result isn't yet available, this method raises a " -":exc:`InvalidStateError` exception." +"If the Task's result isn't yet available, this method raises a :exc:" +"`InvalidStateError` exception." msgstr "" #: ../../library/asyncio-task.rst:779 @@ -745,14 +744,14 @@ msgstr "" #: ../../library/asyncio-task.rst:781 msgid "" -"If the wrapped coroutine raised an exception that exception is returned. If" -" the wrapped coroutine returned normally this method returns ``None``." +"If the wrapped coroutine raised an exception that exception is returned. If " +"the wrapped coroutine returned normally this method returns ``None``." msgstr "" #: ../../library/asyncio-task.rst:788 msgid "" -"If the Task isn't *done* yet, this method raises an :exc:`InvalidStateError`" -" exception." +"If the Task isn't *done* yet, this method raises an :exc:`InvalidStateError` " +"exception." msgstr "" #: ../../library/asyncio-task.rst:793 @@ -786,8 +785,8 @@ msgstr "" msgid "" "If the wrapped coroutine is not done, this returns the stack where it is " "suspended. If the coroutine has completed successfully or was cancelled, " -"this returns an empty list. If the coroutine was terminated by an exception," -" this returns the list of traceback frames." +"this returns an empty list. If the coroutine was terminated by an exception, " +"this returns the list of traceback frames." msgstr "" #: ../../library/asyncio-task.rst:819 @@ -841,8 +840,8 @@ msgstr "" #: ../../library/asyncio-task.rst:850 msgid "" -"This method is **deprecated** and will be removed in Python 3.9. Use the " -":func:`asyncio.all_tasks` function instead." +"This method is **deprecated** and will be removed in Python 3.9. Use the :" +"func:`asyncio.all_tasks` function instead." msgstr "" #: ../../library/asyncio-task.rst:855 @@ -857,8 +856,8 @@ msgstr "" #: ../../library/asyncio-task.rst:860 msgid "" -"This method is **deprecated** and will be removed in Python 3.9. Use the " -":func:`asyncio.current_task` function instead." +"This method is **deprecated** and will be removed in Python 3.9. Use the :" +"func:`asyncio.current_task` function instead." msgstr "" #: ../../library/asyncio-task.rst:868 @@ -874,15 +873,14 @@ msgstr "" #: ../../library/asyncio-task.rst:875 msgid "" "Generator-based coroutines predate async/await syntax. They are Python " -"generators that use ``yield from`` expressions to await on Futures and other" -" coroutines." +"generators that use ``yield from`` expressions to await on Futures and other " +"coroutines." msgstr "" #: ../../library/asyncio-task.rst:879 msgid "" -"Generator-based coroutines should be decorated with " -":func:`@asyncio.coroutine `, although this is not " -"enforced." +"Generator-based coroutines should be decorated with :func:`@asyncio." +"coroutine `, although this is not enforced." msgstr "" #: ../../library/asyncio-task.rst:886 @@ -897,8 +895,7 @@ msgstr "" #: ../../library/asyncio-task.rst:898 msgid "" -"This decorator is **deprecated** and is scheduled for removal in Python " -"3.10." +"This decorator is **deprecated** and is scheduled for removal in Python 3.10." msgstr "" #: ../../library/asyncio-task.rst:901 @@ -911,8 +908,8 @@ msgstr "" #: ../../library/asyncio-task.rst:908 msgid "" -"This method is different from :func:`inspect.iscoroutine` because it returns" -" ``True`` for generator-based coroutines." +"This method is different from :func:`inspect.iscoroutine` because it returns " +"``True`` for generator-based coroutines." msgstr "" #: ../../library/asyncio-task.rst:913 @@ -921,7 +918,7 @@ msgstr "" #: ../../library/asyncio-task.rst:916 msgid "" -"This method is different from :func:`inspect.iscoroutinefunction` because it" -" returns ``True`` for generator-based coroutine functions decorated with " -":func:`@coroutine `." +"This method is different from :func:`inspect.iscoroutinefunction` because it " +"returns ``True`` for generator-based coroutine functions decorated with :" +"func:`@coroutine `." msgstr "" diff --git a/library/asyncio.po b/library/asyncio.po index 6846733ca..1229592b2 100644 --- a/library/asyncio.po +++ b/library/asyncio.po @@ -1,40 +1,30 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-29 10:51+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../../library/asyncio.rst:66 ../../library/asyncio.rst:66 -msgid "High-level APIs" -msgstr "APIs de alto nível" - -#: ../../library/asyncio.rst:77 ../../library/asyncio.rst:77 -msgid "Low-level APIs" -msgstr "APIs de baixo nível" - -#: ../../library/asyncio.rst:87 ../../library/asyncio.rst:87 -msgid "Guides and Tutorials" -msgstr "Guias e Tutoriais" - #: ../../library/asyncio.rst:2 msgid ":mod:`asyncio` --- Asynchronous I/O" msgstr ":mod:`asyncio` --- E/S assíncrona" @@ -57,8 +47,8 @@ msgid "" "that provide high-performance network and web-servers, database connection " "libraries, distributed task queues, etc." msgstr "" -"O asyncio é usado como uma base para várias estruturas assíncronas do Python" -" que fornecem rede e servidores web de alto desempenho, bibliotecas de " +"O asyncio é usado como uma base para várias estruturas assíncronas do Python " +"que fornecem rede e servidores web de alto desempenho, bibliotecas de " "conexão de banco de dados, filas de tarefas distribuídas etc." #: ../../library/asyncio.rst:30 @@ -102,19 +92,19 @@ msgid "" "Additionally, there are **low-level** APIs for *library and framework " "developers* to:" msgstr "" -"Além disso, há APIs de **baixo nível** para *desenvolvedores de biblioteca e" -" framework* para:" +"Além disso, há APIs de **baixo nível** para *desenvolvedores de biblioteca e " +"framework* para:" #: ../../library/asyncio.rst:49 msgid "" "create and manage :ref:`event loops `, which provide " -"asynchronous APIs for :meth:`networking `, running " -":meth:`subprocesses `, handling :meth:`OS signals " -"`, etc;" +"asynchronous APIs for :meth:`networking `, running :meth:" +"`subprocesses `, handling :meth:`OS signals `, etc;" msgstr "" -"criar e gerenciar :ref:`loops de eventos `, que fornecem" -" APIs assíncronas para :meth:`networking `, executando " -":meth:`subprocesses `, lidando com :meth:`OS signals " +"criar e gerenciar :ref:`loops de eventos `, que fornecem " +"APIs assíncronas para :meth:`networking `, executando :" +"meth:`subprocesses `, lidando com :meth:`OS signals " "`, etc;" #: ../../library/asyncio.rst:54 @@ -127,8 +117,8 @@ msgstr "" #: ../../library/asyncio.rst:57 msgid "" -":ref:`bridge ` callback-based libraries and code with " -"async/await syntax." +":ref:`bridge ` callback-based libraries and code with async/" +"await syntax." msgstr "" ":ref:`fazer uma ponte ` sobre bibliotecas baseadas em " "chamadas e codificar com a sintaxe de async/await." @@ -136,3 +126,15 @@ msgstr "" #: ../../library/asyncio.rst:65 msgid "Reference" msgstr "Referência" + +#: ../../library/asyncio.rst:66 +msgid "High-level APIs" +msgstr "APIs de alto nível" + +#: ../../library/asyncio.rst:77 +msgid "Low-level APIs" +msgstr "APIs de baixo nível" + +#: ../../library/asyncio.rst:87 +msgid "Guides and Tutorials" +msgstr "Guias e Tutoriais" diff --git a/library/asyncore.po b/library/asyncore.po index 75161bd87..889bcecaa 100644 --- a/library/asyncore.po +++ b/library/asyncore.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -60,8 +62,8 @@ msgstr "" #: ../../library/asyncore.rst:37 msgid "" -"If your operating system supports the :c:func:`select` system call in its " -"I/O library (and nearly all do), then you can use it to juggle multiple " +"If your operating system supports the :c:func:`select` system call in its I/" +"O library (and nearly all do), then you can use it to juggle multiple " "communication channels at once; doing other work while your I/O is taking " "place in the \"background.\" Although this strategy can seem strange and " "complex, especially at first, it is in many ways easier to understand and " @@ -75,10 +77,10 @@ msgstr "" #: ../../library/asyncore.rst:48 msgid "" "The basic idea behind both modules is to create one or more network " -"*channels*, instances of class :class:`asyncore.dispatcher` and " -":class:`asynchat.async_chat`. Creating the channels adds them to a global " -"map, used by the :func:`loop` function if you do not provide it with your " -"own *map*." +"*channels*, instances of class :class:`asyncore.dispatcher` and :class:" +"`asynchat.async_chat`. Creating the channels adds them to a global map, " +"used by the :func:`loop` function if you do not provide it with your own " +"*map*." msgstr "" #: ../../library/asyncore.rst:54 @@ -91,12 +93,12 @@ msgstr "" #: ../../library/asyncore.rst:61 msgid "" -"Enter a polling loop that terminates after count passes or all open channels" -" have been closed. All arguments are optional. The *count* parameter " +"Enter a polling loop that terminates after count passes or all open channels " +"have been closed. All arguments are optional. The *count* parameter " "defaults to ``None``, resulting in the loop terminating only when all " "channels have been closed. The *timeout* argument sets the timeout " -"parameter for the appropriate :func:`~select.select` or :func:`~select.poll`" -" call, measured in seconds; the default is 30 seconds. The *use_poll* " +"parameter for the appropriate :func:`~select.select` or :func:`~select.poll` " +"call, measured in seconds; the default is 30 seconds. The *use_poll* " "parameter, if true, indicates that :func:`~select.poll` should be used in " "preference to :func:`~select.select` (the default is ``False``)." msgstr "" @@ -105,9 +107,9 @@ msgstr "" msgid "" "The *map* parameter is a dictionary whose items are the channels to watch. " "As channels are closed they are deleted from their map. If *map* is " -"omitted, a global map is used. Channels (instances of " -":class:`asyncore.dispatcher`, :class:`asynchat.async_chat` and subclasses " -"thereof) can freely be mixed in the map." +"omitted, a global map is used. Channels (instances of :class:`asyncore." +"dispatcher`, :class:`asynchat.async_chat` and subclasses thereof) can freely " +"be mixed in the map." msgstr "" #: ../../library/asyncore.rst:79 @@ -139,7 +141,7 @@ msgstr "Description (descrição)" #: ../../library/asyncore.rst:95 msgid "``handle_connect()``" -msgstr "" +msgstr "``handle_connect()``" #: ../../library/asyncore.rst:95 msgid "Implied by the first read or write event" @@ -147,7 +149,7 @@ msgstr "" #: ../../library/asyncore.rst:98 msgid "``handle_close()``" -msgstr "" +msgstr "``handle_close()``" #: ../../library/asyncore.rst:98 msgid "Implied by a read event with no data available" @@ -155,7 +157,7 @@ msgstr "" #: ../../library/asyncore.rst:101 msgid "``handle_accepted()``" -msgstr "" +msgstr "``handle_accepted()``" #: ../../library/asyncore.rst:101 msgid "Implied by a read event on a listening socket" @@ -163,16 +165,16 @@ msgstr "" #: ../../library/asyncore.rst:105 msgid "" -"During asynchronous processing, each mapped channel's :meth:`readable` and " -":meth:`writable` methods are used to determine whether the channel's socket " -"should be added to the list of channels :c:func:`select`\\ ed or " -":c:func:`poll`\\ ed for read and write events." +"During asynchronous processing, each mapped channel's :meth:`readable` and :" +"meth:`writable` methods are used to determine whether the channel's socket " +"should be added to the list of channels :c:func:`select`\\ ed or :c:func:" +"`poll`\\ ed for read and write events." msgstr "" #: ../../library/asyncore.rst:110 msgid "" -"Thus, the set of channel events is larger than the basic socket events. The" -" full set of methods that can be overridden in your subclass follows:" +"Thus, the set of channel events is larger than the basic socket events. The " +"full set of methods that can be overridden in your subclass follows:" msgstr "" #: ../../library/asyncore.rst:116 @@ -215,25 +217,25 @@ msgstr "" msgid "" "Called on listening channels (passive openers) when a connection can be " "established with a new remote endpoint that has issued a :meth:`connect` " -"call for the local endpoint. Deprecated in version 3.2; use " -":meth:`handle_accepted` instead." +"call for the local endpoint. Deprecated in version 3.2; use :meth:" +"`handle_accepted` instead." msgstr "" #: ../../library/asyncore.rst:167 msgid "" "Called on listening channels (passive openers) when a connection has been " "established with a new remote endpoint that has issued a :meth:`connect` " -"call for the local endpoint. *sock* is a *new* socket object usable to send" -" and receive data on the connection, and *addr* is the address bound to the " +"call for the local endpoint. *sock* is a *new* socket object usable to send " +"and receive data on the connection, and *addr* is the address bound to the " "socket on the other end of the connection." msgstr "" #: ../../library/asyncore.rst:178 msgid "" "Called each time around the asynchronous loop to determine whether a " -"channel's socket should be added to the list on which read events can occur." -" The default method simply returns ``True``, indicating that by default, " -"all channels will be interested in read events." +"channel's socket should be added to the list on which read events can " +"occur. The default method simply returns ``True``, indicating that by " +"default, all channels will be interested in read events." msgstr "" #: ../../library/asyncore.rst:186 @@ -280,59 +282,59 @@ msgstr "" #: ../../library/asyncore.rst:223 msgid "" -"Note that :meth:`recv` may raise :exc:`BlockingIOError` , even though " -":func:`select.select` or :func:`select.poll` has reported the socket ready " -"for reading." +"Note that :meth:`recv` may raise :exc:`BlockingIOError` , even though :func:" +"`select.select` or :func:`select.poll` has reported the socket ready for " +"reading." msgstr "" #: ../../library/asyncore.rst:230 msgid "" -"Listen for connections made to the socket. The *backlog* argument specifies" -" the maximum number of queued connections and should be at least 1; the " +"Listen for connections made to the socket. The *backlog* argument specifies " +"the maximum number of queued connections and should be at least 1; the " "maximum value is system-dependent (usually 5)." msgstr "" #: ../../library/asyncore.rst:237 msgid "" "Bind the socket to *address*. The socket must not already be bound. (The " -"format of *address* depends on the address family --- refer to the " -":mod:`socket` documentation for more information.) To mark the socket as " -"re-usable (setting the :const:`SO_REUSEADDR` option), call the " -":class:`dispatcher` object's :meth:`set_reuse_addr` method." +"format of *address* depends on the address family --- refer to the :mod:" +"`socket` documentation for more information.) To mark the socket as re-" +"usable (setting the :const:`SO_REUSEADDR` option), call the :class:" +"`dispatcher` object's :meth:`set_reuse_addr` method." msgstr "" #: ../../library/asyncore.rst:246 msgid "" "Accept a connection. The socket must be bound to an address and listening " -"for connections. The return value can be either ``None`` or a pair ``(conn," -" address)`` where *conn* is a *new* socket object usable to send and receive" -" data on the connection, and *address* is the address bound to the socket on" -" the other end of the connection. When ``None`` is returned it means the " +"for connections. The return value can be either ``None`` or a pair ``(conn, " +"address)`` where *conn* is a *new* socket object usable to send and receive " +"data on the connection, and *address* is the address bound to the socket on " +"the other end of the connection. When ``None`` is returned it means the " "connection didn't take place, in which case the server should just ignore " "this event and keep listening for further incoming connections." msgstr "" #: ../../library/asyncore.rst:258 msgid "" -"Close the socket. All future operations on the socket object will fail. The" -" remote end-point will receive no more data (after queued data is flushed)." -" Sockets are automatically closed when they are garbage-collected." +"Close the socket. All future operations on the socket object will fail. The " +"remote end-point will receive no more data (after queued data is flushed). " +"Sockets are automatically closed when they are garbage-collected." msgstr "" #: ../../library/asyncore.rst:266 msgid "" -"A :class:`dispatcher` subclass which adds simple buffered output capability," -" useful for simple clients. For more sophisticated usage use " -":class:`asynchat.async_chat`." +"A :class:`dispatcher` subclass which adds simple buffered output capability, " +"useful for simple clients. For more sophisticated usage use :class:`asynchat." +"async_chat`." msgstr "" #: ../../library/asyncore.rst:272 msgid "" "A file_dispatcher takes a file descriptor or :term:`file object` along with " -"an optional map argument and wraps it for use with the :c:func:`poll` or " -":c:func:`loop` functions. If provided a file object or anything with a " -":c:func:`fileno` method, that method will be called and passed to the " -":class:`file_wrapper` constructor." +"an optional map argument and wraps it for use with the :c:func:`poll` or :c:" +"func:`loop` functions. If provided a file object or anything with a :c:func:" +"`fileno` method, that method will be called and passed to the :class:" +"`file_wrapper` constructor." msgstr "" #: ../../library/asyncore.rst:278 ../../library/asyncore.rst:287 @@ -342,9 +344,9 @@ msgstr ":ref:`Disponibilidade `: Unix." #: ../../library/asyncore.rst:282 msgid "" "A file_wrapper takes an integer file descriptor and calls :func:`os.dup` to " -"duplicate the handle so that the original handle may be closed independently" -" of the file_wrapper. This class implements sufficient methods to emulate a" -" socket for use by the :class:`file_dispatcher` class." +"duplicate the handle so that the original handle may be closed independently " +"of the file_wrapper. This class implements sufficient methods to emulate a " +"socket for use by the :class:`file_dispatcher` class." msgstr "" #: ../../library/asyncore.rst:293 diff --git a/library/atexit.po b/library/atexit.po index 1a029d3d4..b32ca4ce2 100644 --- a/library/atexit.po +++ b/library/atexit.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,10 +39,10 @@ msgid "" msgstr "" "O módulo :mod:`atexit` define funções para registrar e cancelar o registro " "de funções de limpeza. As funções assim registradas são executadas " -"automaticamente após a conclusão normal do intérprete. O módulo " -":mod:`atexit` executa essas funções na ordem *reversa* na qual foram " -"registradas; se você inscrever ``A``, ``B`` e ``C``, no momento do término " -"do interpretador, eles serão executados na ordem ``C``, ``B``, ``A`` ." +"automaticamente após a conclusão normal do intérprete. O módulo :mod:" +"`atexit` executa essas funções na ordem *reversa* na qual foram registradas; " +"se você inscrever ``A``, ``B`` e ``C``, no momento do término do " +"interpretador, eles serão executados na ordem ``C``, ``B``, ``A`` ." #: ../../library/atexit.rst:19 msgid "" @@ -50,23 +52,23 @@ msgid "" msgstr "" "**Nota:** As funções registradas através deste módulo não são invocadas " "quando o programa é morto por um sinal não tratado pelo Python, quando um " -"erro interno fatal do Python é detectado ou quando a função :func:`os._exit`" -" é invocada." +"erro interno fatal do Python é detectado ou quando a função :func:`os._exit` " +"é invocada." #: ../../library/atexit.rst:23 msgid "" "When used with C-API subinterpreters, registered functions are local to the " "interpreter they were registered in." msgstr "" -"Quando usadas com os subinterpretadores de C-API, as funções registradas são" -" locais para o interpretador em que foram registradas." +"Quando usadas com os subinterpretadores de C-API, as funções registradas são " +"locais para o interpretador em que foram registradas." #: ../../library/atexit.rst:29 msgid "" "Register *func* as a function to be executed at termination. Any optional " -"arguments that are to be passed to *func* must be passed as arguments to " -":func:`register`. It is possible to register the same function and " -"arguments more than once." +"arguments that are to be passed to *func* must be passed as arguments to :" +"func:`register`. It is possible to register the same function and arguments " +"more than once." msgstr "" "Registre *func* como uma função a ser executada no término. Qualquer o " "argumento opcional que deve ser passado para *func* for passado como " @@ -89,13 +91,13 @@ msgstr "" #: ../../library/atexit.rst:40 msgid "" -"If an exception is raised during execution of the exit handlers, a traceback" -" is printed (unless :exc:`SystemExit` is raised) and the exception " +"If an exception is raised during execution of the exit handlers, a traceback " +"is printed (unless :exc:`SystemExit` is raised) and the exception " "information is saved. After all exit handlers have had a chance to run the " "last exception to be raised is re-raised." msgstr "" -"Se uma exceção é levantada durante a execução dos manipuladores de saída, um" -" traceback é impresso (a menos que :exc:`SystemExit` seja levantado) e as " +"Se uma exceção é levantada durante a execução dos manipuladores de saída, um " +"traceback é impresso (a menos que :exc:`SystemExit` seja levantado) e as " "informações de exceção sejam salvas. Depois de todos os manipuladores de " "saída terem tido a chance de executar a última exceção a ser levantada, é " "levantada novamente." @@ -109,11 +111,10 @@ msgstr "" #: ../../library/atexit.rst:51 msgid "" -"Remove *func* from the list of functions to be run at interpreter shutdown." -" After calling :func:`unregister`, *func* is guaranteed not to be called " -"when the interpreter shuts down, even if it was registered more than once. " -":func:`unregister` silently does nothing if *func* was not previously " -"registered." +"Remove *func* from the list of functions to be run at interpreter shutdown. " +"After calling :func:`unregister`, *func* is guaranteed not to be called when " +"the interpreter shuts down, even if it was registered more than once. :func:" +"`unregister` silently does nothing if *func* was not previously registered." msgstr "" "Remove *func* da lista de funções a serem executadas no desligamento do " "interpretador. Depois de chamar :func:`unregister`, *func* tem garantia de " @@ -130,8 +131,8 @@ msgid "" "Useful example of :mod:`atexit` to read and write :mod:`readline` history " "files." msgstr "" -"Exemplo útil de :mod:`atexit` para ler e escrever arquivos de histórico de " -":mod:`readline`." +"Exemplo útil de :mod:`atexit` para ler e escrever arquivos de histórico de :" +"mod:`readline`." #: ../../library/atexit.rst:68 msgid ":mod:`atexit` Example" @@ -140,9 +141,9 @@ msgstr "Exemplo do :mod:`atexit`" #: ../../library/atexit.rst:70 msgid "" "The following simple example demonstrates how a module can initialize a " -"counter from a file when it is imported and save the counter's updated value" -" automatically when the program terminates without relying on the " -"application making an explicit call into this module at termination. ::" +"counter from a file when it is imported and save the counter's updated value " +"automatically when the program terminates without relying on the application " +"making an explicit call into this module at termination. ::" msgstr "" "O exemplo simples a seguir demonstra como um módulo pode inicializar um " "contador de um arquivo quando ele é importado e salvar automaticamente o " diff --git a/library/audioop.po b/library/audioop.po index 9735d5fd2..d6a78f8d6 100644 --- a/library/audioop.po +++ b/library/audioop.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +37,8 @@ msgstr "" #: ../../library/audioop.rst:14 msgid "" -"Support for 24-bit samples was added. All functions now accept any :term" -":`bytes-like object`. String input now results in an immediate error." +"Support for 24-bit samples was added. All functions now accept any :term:" +"`bytes-like object`. String input now results in an immediate error." msgstr "" #: ../../library/audioop.rst:25 @@ -47,8 +48,8 @@ msgstr "" #: ../../library/audioop.rst:29 msgid "" -"A few of the more complicated operations only take 16-bit samples, otherwise" -" the sample size (in bytes) is always a parameter of the operation." +"A few of the more complicated operations only take 16-bit samples, otherwise " +"the sample size (in bytes) is always a parameter of the operation." msgstr "" #: ../../library/audioop.rst:32 @@ -64,23 +65,23 @@ msgstr "" #: ../../library/audioop.rst:43 msgid "" "Return a fragment which is the addition of the two samples passed as " -"parameters. *width* is the sample width in bytes, either ``1``, ``2``, ``3``" -" or ``4``. Both fragments should have the same length. Samples are " +"parameters. *width* is the sample width in bytes, either ``1``, ``2``, ``3`` " +"or ``4``. Both fragments should have the same length. Samples are " "truncated in case of overflow." msgstr "" #: ../../library/audioop.rst:50 msgid "" "Decode an Intel/DVI ADPCM coded fragment to a linear fragment. See the " -"description of :func:`lin2adpcm` for details on ADPCM coding. Return a tuple" -" ``(sample, newstate)`` where the sample has the width specified in *width*." +"description of :func:`lin2adpcm` for details on ADPCM coding. Return a tuple " +"``(sample, newstate)`` where the sample has the width specified in *width*." msgstr "" #: ../../library/audioop.rst:57 msgid "" "Convert sound fragments in a-LAW encoding to linearly encoded sound " -"fragments. a-LAW encoding always uses 8 bits samples, so *width* refers only" -" to the sample width of the output fragment here." +"fragments. a-LAW encoding always uses 8 bits samples, so *width* refers only " +"to the sample width of the output fragment here." msgstr "" #: ../../library/audioop.rst:64 @@ -127,8 +128,8 @@ msgid "" "Try to match *reference* as well as possible to a portion of *fragment* " "(which should be the longer fragment). This is (conceptually) done by " "taking slices out of *fragment*, using :func:`findfactor` to compute the " -"best match, and minimizing the result. The fragments should both contain " -"2-byte samples. Return a tuple ``(offset, factor)`` where *offset* is the " +"best match, and minimizing the result. The fragments should both contain 2-" +"byte samples. Return a tuple ``(offset, factor)`` where *offset* is the " "(integer) offset into *fragment* where the optimal match started and " "*factor* is the (floating-point) factor as per :func:`findfactor`." msgstr "" @@ -136,9 +137,8 @@ msgstr "" #: ../../library/audioop.rst:115 msgid "" "Search *fragment* for a slice of length *length* samples (not bytes!) with " -"maximum energy, i.e., return *i* for which " -"``rms(fragment[i*2:(i+length)*2])`` is maximal. The fragments should both " -"contain 2-byte samples." +"maximum energy, i.e., return *i* for which ``rms(fragment[i*2:(i" +"+length)*2])`` is maximal. The fragments should both contain 2-byte samples." msgstr "" #: ../../library/audioop.rst:119 @@ -162,15 +162,15 @@ msgstr "" msgid "" "*state* is a tuple containing the state of the coder. The coder returns a " "tuple ``(adpcmfrag, newstate)``, and the *newstate* should be passed to the " -"next call of :func:`lin2adpcm`. In the initial call, ``None`` can be passed" -" as the state. *adpcmfrag* is the ADPCM coded fragment packed 2 4-bit values" -" per byte." +"next call of :func:`lin2adpcm`. In the initial call, ``None`` can be passed " +"as the state. *adpcmfrag* is the ADPCM coded fragment packed 2 4-bit values " +"per byte." msgstr "" #: ../../library/audioop.rst:142 msgid "" -"Convert samples in the audio fragment to a-LAW encoding and return this as a" -" bytes object. a-LAW is an audio encoding format whereby you get a dynamic " +"Convert samples in the audio fragment to a-LAW encoding and return this as a " +"bytes object. a-LAW is an audio encoding format whereby you get a dynamic " "range of about 13 bits using only 8 bit samples. It is used by the Sun " "audio hardware, among others." msgstr "" @@ -194,8 +194,8 @@ msgstr "" #: ../../library/audioop.rst:167 msgid "" -"Convert samples in the audio fragment to u-LAW encoding and return this as a" -" bytes object. u-LAW is an audio encoding format whereby you get a dynamic " +"Convert samples in the audio fragment to u-LAW encoding and return this as a " +"bytes object. u-LAW is an audio encoding format whereby you get a dynamic " "range of about 14 bits using only 8 bit samples. It is used by the Sun " "audio hardware, among others." msgstr "" @@ -229,8 +229,8 @@ msgstr "" #: ../../library/audioop.rst:199 msgid "" "*state* is a tuple containing the state of the converter. The converter " -"returns a tuple ``(newfragment, newstate)``, and *newstate* should be passed" -" to the next call of :func:`ratecv`. The initial call should pass ``None`` " +"returns a tuple ``(newfragment, newstate)``, and *newstate* should be passed " +"to the next call of :func:`ratecv`. The initial call should pass ``None`` " "as the state." msgstr "" @@ -256,8 +256,8 @@ msgstr "" #: ../../library/audioop.rst:221 msgid "" "Convert a stereo fragment to a mono fragment. The left channel is " -"multiplied by *lfactor* and the right channel by *rfactor* before adding the" -" two channels to give a mono signal." +"multiplied by *lfactor* and the right channel by *rfactor* before adding the " +"two channels to give a mono signal." msgstr "" #: ../../library/audioop.rst:228 @@ -270,8 +270,8 @@ msgstr "" #: ../../library/audioop.rst:235 msgid "" "Convert sound fragments in u-LAW encoding to linearly encoded sound " -"fragments. u-LAW encoding always uses 8 bits samples, so *width* refers only" -" to the sample width of the output fragment here." +"fragments. u-LAW encoding always uses 8 bits samples, so *width* refers only " +"to the sample width of the output fragment here." msgstr "" #: ../../library/audioop.rst:239 @@ -289,8 +289,8 @@ msgid "" "protocol to be stateless (i.e. to be able to tolerate packet loss) you " "should not only transmit the data but also the state. Note that you should " "send the *initial* state (the one you passed to :func:`lin2adpcm`) along to " -"the decoder, not the final state (as returned by the coder). If you want to" -" use :class:`struct.Struct` to store the state in binary you can code the " +"the decoder, not the final state (as returned by the coder). If you want to " +"use :class:`struct.Struct` to store the state in binary you can code the " "first element (the predicted value) in 16 bits and the second (the delta " "index) in 8." msgstr "" @@ -298,14 +298,14 @@ msgstr "" #: ../../library/audioop.rst:261 msgid "" "The ADPCM coders have never been tried against other ADPCM coders, only " -"against themselves. It could well be that I misinterpreted the standards in" -" which case they will not be interoperable with the respective standards." +"against themselves. It could well be that I misinterpreted the standards in " +"which case they will not be interoperable with the respective standards." msgstr "" #: ../../library/audioop.rst:265 msgid "" -"The :func:`find\\*` routines might look a bit funny at first sight. They are" -" primarily meant to do echo cancellation. A reasonably fast way to do this " -"is to pick the most energetic piece of the output sample, locate that in the" -" input sample and subtract the whole output sample from the input sample::" +"The :func:`find\\*` routines might look a bit funny at first sight. They are " +"primarily meant to do echo cancellation. A reasonably fast way to do this " +"is to pick the most energetic piece of the output sample, locate that in the " +"input sample and subtract the whole output sample from the input sample::" msgstr "" diff --git a/library/base64.po b/library/base64.po index 81b3e38de..5d901fec5 100644 --- a/library/base64.po +++ b/library/base64.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Bonifacio de Oliveira , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" "Last-Translator: Bonifacio de Oliveira , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,15 +46,15 @@ msgstr "" msgid "" "The :rfc:`3548` encodings are suitable for encoding binary data so that it " "can safely sent by email, used as parts of URLs, or included as part of an " -"HTTP POST request. The encoding algorithm is not the same as the " -":program:`uuencode` program." +"HTTP POST request. The encoding algorithm is not the same as the :program:" +"`uuencode` program." msgstr "" #: ../../library/base64.rst:27 msgid "" "There are two interfaces provided by this module. The modern interface " -"supports encoding :term:`bytes-like objects ` to ASCII " -":class:`bytes`, and decoding :term:`bytes-like objects ` " +"supports encoding :term:`bytes-like objects ` to ASCII :" +"class:`bytes`, and decoding :term:`bytes-like objects ` " "or strings containing ASCII to :class:`bytes`. Both base-64 alphabets " "defined in :rfc:`3548` (normal, and URL- and filesystem-safe) are supported." msgstr "" @@ -64,14 +65,14 @@ msgid "" "provide functions for encoding and decoding to and from :term:`file objects " "`. It only supports the Base64 standard alphabet, and it adds " "newlines every 76 characters as per :rfc:`2045`. Note that if you are " -"looking for :rfc:`2045` support you probably want to be looking at the " -":mod:`email` package instead." +"looking for :rfc:`2045` support you probably want to be looking at the :mod:" +"`email` package instead." msgstr "" #: ../../library/base64.rst:41 msgid "" -"ASCII-only Unicode strings are now accepted by the decoding functions of the" -" modern interface." +"ASCII-only Unicode strings are now accepted by the decoding functions of the " +"modern interface." msgstr "" "Strings Unicode exclusivamente ASCII agora são aceitas pelas funções de " "decodificação da interface moderna." @@ -89,15 +90,15 @@ msgstr "A interface moderna oferece:" #: ../../library/base64.rst:53 msgid "" -"Encode the :term:`bytes-like object` *s* using Base64 and return the encoded" -" :class:`bytes`." +"Encode the :term:`bytes-like object` *s* using Base64 and return the " +"encoded :class:`bytes`." msgstr "" #: ../../library/base64.rst:56 msgid "" -"Optional *altchars* must be a :term:`bytes-like object` of at least length 2" -" (additional characters are ignored) which specifies an alternative alphabet" -" for the ``+`` and ``/`` characters. This allows an application to e.g. " +"Optional *altchars* must be a :term:`bytes-like object` of at least length 2 " +"(additional characters are ignored) which specifies an alternative alphabet " +"for the ``+`` and ``/`` characters. This allows an application to e.g. " "generate URL or filesystem safe Base64 strings. The default is ``None``, " "for which the standard Base64 alphabet is used." msgstr "" @@ -122,10 +123,10 @@ msgstr "" #: ../../library/base64.rst:75 msgid "" -"If *validate* is ``False`` (the default), characters that are neither in the" -" normal base-64 alphabet nor the alternative alphabet are discarded prior to" -" the padding check. If *validate* is ``True``, these non-alphabet " -"characters in the input result in a :exc:`binascii.Error`." +"If *validate* is ``False`` (the default), characters that are neither in the " +"normal base-64 alphabet nor the alternative alphabet are discarded prior to " +"the padding check. If *validate* is ``True``, these non-alphabet characters " +"in the input result in a :exc:`binascii.Error`." msgstr "" #: ../../library/base64.rst:84 @@ -143,23 +144,23 @@ msgstr "" #: ../../library/base64.rst:96 msgid "" "Encode :term:`bytes-like object` *s* using the URL- and filesystem-safe " -"alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of " -"``/`` in the standard Base64 alphabet, and return the encoded " -":class:`bytes`. The result can still contain ``=``." +"alphabet, which substitutes ``-`` instead of ``+`` and ``_`` instead of ``/" +"`` in the standard Base64 alphabet, and return the encoded :class:`bytes`. " +"The result can still contain ``=``." msgstr "" #: ../../library/base64.rst:105 msgid "" "Decode :term:`bytes-like object` or ASCII string *s* using the URL- and " -"filesystem-safe alphabet, which substitutes ``-`` instead of ``+`` and ``_``" -" instead of ``/`` in the standard Base64 alphabet, and return the decoded " -":class:`bytes`." +"filesystem-safe alphabet, which substitutes ``-`` instead of ``+`` and ``_`` " +"instead of ``/`` in the standard Base64 alphabet, and return the decoded :" +"class:`bytes`." msgstr "" #: ../../library/base64.rst:114 msgid "" -"Encode the :term:`bytes-like object` *s* using Base32 and return the encoded" -" :class:`bytes`." +"Encode the :term:`bytes-like object` *s* using Base32 and return the " +"encoded :class:`bytes`." msgstr "" #: ../../library/base64.rst:120 @@ -179,8 +180,8 @@ msgstr "" #: ../../library/base64.rst:127 msgid "" ":rfc:`3548` allows for optional mapping of the digit 0 (zero) to the letter " -"O (oh), and for optional mapping of the digit 1 (one) to either the letter I" -" (eye) or letter L (el). The optional argument *map01* when not ``None``, " +"O (oh), and for optional mapping of the digit 1 (one) to either the letter I " +"(eye) or letter L (el). The optional argument *map01* when not ``None``, " "specifies which letter the digit 1 should be mapped to (when *map01* is not " "``None``, the digit 0 is always mapped to the letter O). For security " "purposes the default is ``None``, so that 0 and 1 are not allowed in the " @@ -195,8 +196,8 @@ msgstr "" #: ../../library/base64.rst:141 msgid "" -"Encode the :term:`bytes-like object` *s* using Base16 and return the encoded" -" :class:`bytes`." +"Encode the :term:`bytes-like object` *s* using Base16 and return the " +"encoded :class:`bytes`." msgstr "" #: ../../library/base64.rst:147 @@ -233,27 +234,27 @@ msgstr "" #: ../../library/base64.rst:175 msgid "" -"*adobe* controls whether the encoded byte sequence is framed with ``<~`` and" -" ``~>``, which is used by the Adobe implementation." +"*adobe* controls whether the encoded byte sequence is framed with ``<~`` and " +"``~>``, which is used by the Adobe implementation." msgstr "" #: ../../library/base64.rst:183 msgid "" -"Decode the Ascii85 encoded :term:`bytes-like object` or ASCII string *b* and" -" return the decoded :class:`bytes`." +"Decode the Ascii85 encoded :term:`bytes-like object` or ASCII string *b* and " +"return the decoded :class:`bytes`." msgstr "" #: ../../library/base64.rst:186 msgid "" "*foldspaces* is a flag that specifies whether the 'y' short sequence should " -"be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature" -" is not supported by the \"standard\" Ascii85 encoding." +"be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature " +"is not supported by the \"standard\" Ascii85 encoding." msgstr "" #: ../../library/base64.rst:190 msgid "" -"*adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e." -" is framed with <~ and ~>)." +"*adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. " +"is framed with <~ and ~>)." msgstr "" "*adobe* controla se a entrada está no formato Adobe Ascii85 (ou seja, " "cercada por <~ e ~>)." @@ -310,18 +311,17 @@ msgstr "" #: ../../library/base64.rst:247 msgid "" "Encode the contents of the binary *input* file and write the resulting " -"base64 encoded data to the *output* file. *input* and *output* must be " -":term:`file objects `. *input* will be read until " -"``input.read()`` returns an empty bytes object. :func:`encode` inserts a " -"newline character (``b'\\n'``) after every 76 bytes of the output, as well " -"as ensuring that the output always ends with a newline, as per :rfc:`2045` " -"(MIME)." +"base64 encoded data to the *output* file. *input* and *output* must be :term:" +"`file objects `. *input* will be read until ``input.read()`` " +"returns an empty bytes object. :func:`encode` inserts a newline character " +"(``b'\\n'``) after every 76 bytes of the output, as well as ensuring that " +"the output always ends with a newline, as per :rfc:`2045` (MIME)." msgstr "" #: ../../library/base64.rst:257 msgid "" -"Encode the :term:`bytes-like object` *s*, which can contain arbitrary binary" -" data, and return :class:`bytes` containing the base64-encoded data, with " +"Encode the :term:`bytes-like object` *s*, which can contain arbitrary binary " +"data, and return :class:`bytes` containing the base64-encoded data, with " "newlines (``b'\\n'``) inserted after every 76 bytes of output, and ensuring " "that there is a trailing newline, as per :rfc:`2045` (MIME)." msgstr "" diff --git a/library/bdb.po b/library/bdb.po index 13dd6afe3..d3f4a03cb 100644 --- a/library/bdb.po +++ b/library/bdb.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -57,15 +59,15 @@ msgstr "" msgid "" "Breakpoints are indexed by number through a list called :attr:`bpbynumber` " "and by ``(file, line)`` pairs through :attr:`bplist`. The former points to " -"a single instance of class :class:`Breakpoint`. The latter points to a list" -" of such instances since there may be more than one breakpoint per line." +"a single instance of class :class:`Breakpoint`. The latter points to a list " +"of such instances since there may be more than one breakpoint per line." msgstr "" #: ../../library/bdb.rst:33 msgid "" "When creating a breakpoint, its associated filename should be in canonical " -"form. If a *funcname* is defined, a breakpoint hit will be counted when the" -" first line of that function is executed. A conditional breakpoint always " +"form. If a *funcname* is defined, a breakpoint hit will be counted when the " +"first line of that function is executed. A conditional breakpoint always " "counts a hit." msgstr "" @@ -75,9 +77,9 @@ msgstr "" #: ../../library/bdb.rst:42 msgid "" -"Delete the breakpoint from the list associated to a file/line. If it is the" -" last breakpoint in that position, it also deletes the entry for the " -"file/line." +"Delete the breakpoint from the list associated to a file/line. If it is the " +"last breakpoint in that position, it also deletes the entry for the file/" +"line." msgstr "" #: ../../library/bdb.rst:49 @@ -131,17 +133,17 @@ msgstr "" #: ../../library/bdb.rst:81 msgid "" "This class takes care of the details of the trace facility; a derived class " -"should implement user interaction. The standard debugger class " -"(:class:`pdb.Pdb`) is an example." +"should implement user interaction. The standard debugger class (:class:`pdb." +"Pdb`) is an example." msgstr "" #: ../../library/bdb.rst:85 msgid "" -"The *skip* argument, if given, must be an iterable of glob-style module name" -" patterns. The debugger will not step into frames that originate in a " -"module that matches one of these patterns. Whether a frame is considered to " -"originate in a certain module is determined by the ``__name__`` in the frame" -" globals." +"The *skip* argument, if given, must be an iterable of glob-style module name " +"patterns. The debugger will not step into frames that originate in a module " +"that matches one of these patterns. Whether a frame is considered to " +"originate in a certain module is determined by the ``__name__`` in the frame " +"globals." msgstr "" #: ../../library/bdb.rst:91 @@ -156,14 +158,14 @@ msgstr "" #: ../../library/bdb.rst:98 msgid "" "Auxiliary method for getting a filename in a canonical form, that is, as a " -"case-normalized (on case-insensitive filesystems) absolute path, stripped of" -" surrounding angle brackets." +"case-normalized (on case-insensitive filesystems) absolute path, stripped of " +"surrounding angle brackets." msgstr "" #: ../../library/bdb.rst:104 msgid "" -"Set the :attr:`botframe`, :attr:`stopframe`, :attr:`returnframe` and " -":attr:`quitting` attributes with values ready to start debugging." +"Set the :attr:`botframe`, :attr:`stopframe`, :attr:`returnframe` and :attr:" +"`quitting` attributes with values ready to start debugging." msgstr "" #: ../../library/bdb.rst:109 @@ -174,9 +176,9 @@ msgstr "" #: ../../library/bdb.rst:112 msgid "" -"The default implementation decides how to dispatch a frame, depending on the" -" type of event (passed as a string) that is about to be executed. *event* " -"can be one of the following:" +"The default implementation decides how to dispatch a frame, depending on the " +"type of event (passed as a string) that is about to be executed. *event* can " +"be one of the following:" msgstr "" #: ../../library/bdb.rst:116 @@ -222,44 +224,44 @@ msgstr "" #: ../../library/bdb.rst:130 msgid "" "See the documentation for :func:`sys.settrace` for more information on the " -"trace function. For more information on code and frame objects, refer to " -":ref:`types`." +"trace function. For more information on code and frame objects, refer to :" +"ref:`types`." msgstr "" #: ../../library/bdb.rst:136 msgid "" -"If the debugger should stop on the current line, invoke the " -":meth:`user_line` method (which should be overridden in subclasses). Raise a" -" :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can" -" be set from :meth:`user_line`). Return a reference to the " -":meth:`trace_dispatch` method for further tracing in that scope." +"If the debugger should stop on the current line, invoke the :meth:" +"`user_line` method (which should be overridden in subclasses). Raise a :exc:" +"`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can be " +"set from :meth:`user_line`). Return a reference to the :meth:" +"`trace_dispatch` method for further tracing in that scope." msgstr "" #: ../../library/bdb.rst:144 msgid "" -"If the debugger should stop on this function call, invoke the " -":meth:`user_call` method (which should be overridden in subclasses). Raise a" -" :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can" -" be set from :meth:`user_call`). Return a reference to the " -":meth:`trace_dispatch` method for further tracing in that scope." +"If the debugger should stop on this function call, invoke the :meth:" +"`user_call` method (which should be overridden in subclasses). Raise a :exc:" +"`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can be " +"set from :meth:`user_call`). Return a reference to the :meth:" +"`trace_dispatch` method for further tracing in that scope." msgstr "" #: ../../library/bdb.rst:152 msgid "" -"If the debugger should stop on this function return, invoke the " -":meth:`user_return` method (which should be overridden in subclasses). Raise" -" a :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which " -"can be set from :meth:`user_return`). Return a reference to the " -":meth:`trace_dispatch` method for further tracing in that scope." +"If the debugger should stop on this function return, invoke the :meth:" +"`user_return` method (which should be overridden in subclasses). Raise a :" +"exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can " +"be set from :meth:`user_return`). Return a reference to the :meth:" +"`trace_dispatch` method for further tracing in that scope." msgstr "" #: ../../library/bdb.rst:160 msgid "" -"If the debugger should stop at this exception, invokes the " -":meth:`user_exception` method (which should be overridden in subclasses). " -"Raise a :exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set " -"(which can be set from :meth:`user_exception`). Return a reference to the " -":meth:`trace_dispatch` method for further tracing in that scope." +"If the debugger should stop at this exception, invokes the :meth:" +"`user_exception` method (which should be overridden in subclasses). Raise a :" +"exc:`BdbQuit` exception if the :attr:`Bdb.quitting` flag is set (which can " +"be set from :meth:`user_exception`). Return a reference to the :meth:" +"`trace_dispatch` method for further tracing in that scope." msgstr "" #: ../../library/bdb.rst:166 @@ -270,8 +272,8 @@ msgstr "" #: ../../library/bdb.rst:171 msgid "" -"This method checks if the *frame* is somewhere below :attr:`botframe` in the" -" call stack. :attr:`botframe` is the frame in which debugging started." +"This method checks if the *frame* is somewhere below :attr:`botframe` in the " +"call stack. :attr:`botframe` is the frame in which debugging started." msgstr "" #: ../../library/bdb.rst:176 @@ -302,8 +304,8 @@ msgstr "" #: ../../library/bdb.rst:196 msgid "" -"This method is called from :meth:`dispatch_line` when either " -":meth:`stop_here` or :meth:`break_here` yields ``True``." +"This method is called from :meth:`dispatch_line` when either :meth:" +"`stop_here` or :meth:`break_here` yields ``True``." msgstr "" #: ../../library/bdb.rst:201 @@ -314,8 +316,8 @@ msgstr "" #: ../../library/bdb.rst:206 msgid "" -"This method is called from :meth:`dispatch_exception` when :meth:`stop_here`" -" yields ``True``." +"This method is called from :meth:`dispatch_exception` when :meth:`stop_here` " +"yields ``True``." msgstr "" #: ../../library/bdb.rst:211 @@ -352,14 +354,14 @@ msgstr "" #: ../../library/bdb.rst:238 msgid "" -"Start debugging from *frame*. If *frame* is not specified, debugging starts" -" from caller's frame." +"Start debugging from *frame*. If *frame* is not specified, debugging starts " +"from caller's frame." msgstr "" #: ../../library/bdb.rst:243 msgid "" -"Stop only at breakpoints or when finished. If there are no breakpoints, set" -" the system trace function to ``None``." +"Stop only at breakpoints or when finished. If there are no breakpoints, set " +"the system trace function to ``None``." msgstr "" #: ../../library/bdb.rst:248 @@ -377,8 +379,8 @@ msgstr "" #: ../../library/bdb.rst:258 msgid "" -"Set a new breakpoint. If the *lineno* line doesn't exist for the *filename*" -" passed as argument, return an error message. The *filename* should be in " +"Set a new breakpoint. If the *lineno* line doesn't exist for the *filename* " +"passed as argument, return an error message. The *filename* should be in " "canonical form, as described in the :meth:`canonic` method." msgstr "" @@ -390,15 +392,15 @@ msgstr "" #: ../../library/bdb.rst:269 msgid "" -"Delete the breakpoint which has the index *arg* in the " -":attr:`Breakpoint.bpbynumber`. If *arg* is not numeric or out of range, " -"return an error message." +"Delete the breakpoint which has the index *arg* in the :attr:`Breakpoint." +"bpbynumber`. If *arg* is not numeric or out of range, return an error " +"message." msgstr "" #: ../../library/bdb.rst:275 msgid "" -"Delete all breakpoints in *filename*. If none were set, an error message is" -" returned." +"Delete all breakpoints in *filename*. If none were set, an error message is " +"returned." msgstr "" #: ../../library/bdb.rst:280 @@ -407,8 +409,8 @@ msgstr "" #: ../../library/bdb.rst:284 msgid "" -"Return a breakpoint specified by the given number. If *arg* is a string, it" -" will be converted to a number. If *arg* is a non-numeric string, if the " +"Return a breakpoint specified by the given number. If *arg* is a string, it " +"will be converted to a number. If *arg* is a non-numeric string, if the " "given breakpoint never existed or has been deleted, a :exc:`ValueError` is " "raised." msgstr "" @@ -424,8 +426,7 @@ msgid "" msgstr "" #: ../../library/bdb.rst:302 -msgid "" -"Return all breakpoints in *filename*, or an empty list if none are set." +msgid "Return all breakpoints in *filename*, or an empty list if none are set." msgstr "" #: ../../library/bdb.rst:306 @@ -440,8 +441,8 @@ msgstr "" #: ../../library/bdb.rst:314 msgid "" -"Get a list of records for a frame and all higher (calling) and lower frames," -" and the size of the higher part." +"Get a list of records for a frame and all higher (calling) and lower frames, " +"and the size of the higher part." msgstr "" #: ../../library/bdb.rst:319 @@ -516,9 +517,9 @@ msgstr "" #: ../../library/bdb.rst:365 msgid "" -"Determine if there is an effective (active) breakpoint at this line of code." -" Return a tuple of the breakpoint and a boolean that indicates if it is ok " -"to delete a temporary breakpoint. Return ``(None, None)`` if there is no " +"Determine if there is an effective (active) breakpoint at this line of code. " +"Return a tuple of the breakpoint and a boolean that indicates if it is ok to " +"delete a temporary breakpoint. Return ``(None, None)`` if there is no " "matching breakpoint." msgstr "" diff --git a/library/binary.po b/library/binary.po index 80f0a906f..9169e2456 100644 --- a/library/binary.po +++ b/library/binary.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,8 +30,8 @@ msgstr "Serviços de Dados Binários" #: ../../library/binary.rst:7 msgid "" -"The modules described in this chapter provide some basic services operations" -" for manipulation of binary data. Other operations on binary data, " +"The modules described in this chapter provide some basic services operations " +"for manipulation of binary data. Other operations on binary data, " "specifically in relation to file formats and network protocols, are " "described in the relevant sections." msgstr "" @@ -45,8 +47,8 @@ msgid "" "(for example, :mod:`difflib`)." msgstr "" "Algumas bibliotecas descritas em :ref:`textservices` também funcionam com " -"formatos binários compatíveis com ASCII (por exemplo :mod:`re`) ou com todos" -" os dados binários (por exemplo :mod:`difflib`)." +"formatos binários compatíveis com ASCII (por exemplo :mod:`re`) ou com todos " +"os dados binários (por exemplo :mod:`difflib`)." #: ../../library/binary.rst:16 msgid "" diff --git a/library/binascii.po b/library/binascii.po index 8ff7625e8..9a014485c 100644 --- a/library/binascii.po +++ b/library/binascii.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,23 +30,22 @@ msgstr "" msgid "" "The :mod:`binascii` module contains a number of methods to convert between " "binary and various ASCII-encoded binary representations. Normally, you will " -"not use these functions directly but use wrapper modules like :mod:`uu`, " -":mod:`base64`, or :mod:`binhex` instead. The :mod:`binascii` module contains" -" low-level functions written in C for greater speed that are used by the " +"not use these functions directly but use wrapper modules like :mod:`uu`, :" +"mod:`base64`, or :mod:`binhex` instead. The :mod:`binascii` module contains " +"low-level functions written in C for greater speed that are used by the " "higher-level modules." msgstr "" #: ../../library/binascii.rst:24 msgid "" -"``a2b_*`` functions accept Unicode strings containing only ASCII characters." -" Other functions only accept :term:`bytes-like objects ` " +"``a2b_*`` functions accept Unicode strings containing only ASCII characters. " +"Other functions only accept :term:`bytes-like objects ` " "(such as :class:`bytes`, :class:`bytearray` and other objects that support " "the buffer protocol)." msgstr "" #: ../../library/binascii.rst:29 -msgid "" -"ASCII-only unicode strings are now accepted by the ``a2b_*`` functions." +msgid "ASCII-only unicode strings are now accepted by the ``a2b_*`` functions." msgstr "" #: ../../library/binascii.rst:33 @@ -50,8 +54,8 @@ msgstr "" #: ../../library/binascii.rst:38 msgid "" -"Convert a single line of uuencoded data back to binary and return the binary" -" data. Lines normally contain 45 (binary) bytes, except for the last line. " +"Convert a single line of uuencoded data back to binary and return the binary " +"data. Lines normally contain 45 (binary) bytes, except for the last line. " "Line data may be followed by whitespace." msgstr "" @@ -76,8 +80,8 @@ msgstr "" #: ../../library/binascii.rst:61 msgid "" "Convert binary data to a line of ASCII characters in base64 coding. The " -"return value is the converted line, including a newline char if *newline* is" -" true. The output of this function conforms to :rfc:`3548`." +"return value is the converted line, including a newline char if *newline* is " +"true. The output of this function conforms to :rfc:`3548`." msgstr "" #: ../../library/binascii.rst:65 @@ -88,8 +92,7 @@ msgstr "" msgid "" "Convert a block of quoted-printable data back to binary and return the " "binary data. More than one line may be passed at a time. If the optional " -"argument *header* is present and true, underscores will be decoded as " -"spaces." +"argument *header* is present and true, underscores will be decoded as spaces." msgstr "" #: ../../library/binascii.rst:78 @@ -99,8 +102,8 @@ msgid "" "argument *quotetabs* is present and true, all tabs and spaces will be " "encoded. If the optional argument *istext* is present and true, newlines " "are not encoded but trailing whitespace will be encoded. If the optional " -"argument *header* is present and true, spaces will be encoded as underscores" -" per :rfc:`1522`. If the optional argument *header* is present and false, " +"argument *header* is present and true, spaces will be encoded as underscores " +"per :rfc:`1522`. If the optional argument *header* is present and false, " "newline characters will be encoded as well; otherwise linefeed conversion " "might corrupt the binary data stream." msgstr "" @@ -109,8 +112,8 @@ msgstr "" msgid "" "Convert binhex4 formatted ASCII data to binary, without doing RLE-" "decompression. The string should contain a complete number of binary bytes, " -"or (in case of the last portion of the binhex4 data) have the remaining bits" -" zero." +"or (in case of the last portion of the binhex4 data) have the remaining bits " +"zero." msgstr "" #: ../../library/binascii.rst:98 @@ -132,17 +135,17 @@ msgstr "" #: ../../library/binascii.rst:115 msgid "" -"Perform hexbin4 binary-to-ASCII translation and return the resulting string." -" The argument should already be RLE-coded, and have a length divisible by 3 " +"Perform hexbin4 binary-to-ASCII translation and return the resulting string. " +"The argument should already be RLE-coded, and have a length divisible by 3 " "(except possibly the last fragment)." msgstr "" #: ../../library/binascii.rst:122 msgid "" "Compute a 16-bit CRC value of *data*, starting with *value* as the initial " -"CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16`" -" + *x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is" -" used in the binhex4 format." +"CRC, and return the result. This uses the CRC-CCITT polynomial *x*:sup:`16` " +"+ *x*:sup:`12` + *x*:sup:`5` + 1, often represented as 0x1021. This CRC is " +"used in the binhex4 format." msgstr "" #: ../../library/binascii.rst:130 @@ -150,14 +153,14 @@ msgid "" "Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC " "of *value*. The default initial CRC is zero. The algorithm is consistent " "with the ZIP file checksum. Since the algorithm is designed for use as a " -"checksum algorithm, it is not suitable for use as a general hash algorithm." -" Use as follows::" +"checksum algorithm, it is not suitable for use as a general hash algorithm. " +"Use as follows::" msgstr "" #: ../../library/binascii.rst:142 msgid "" -"The result is always unsigned. To generate the same numeric value across all" -" Python versions and platforms, use ``crc32(data) & 0xffffffff``." +"The result is always unsigned. To generate the same numeric value across all " +"Python versions and platforms, use ``crc32(data) & 0xffffffff``." msgstr "" #: ../../library/binascii.rst:151 @@ -175,8 +178,8 @@ msgstr "" #: ../../library/binascii.rst:161 msgid "" -"Return the binary data represented by the hexadecimal string *hexstr*. This" -" function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even " +"Return the binary data represented by the hexadecimal string *hexstr*. This " +"function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even " "number of hexadecimal digits (which can be upper or lower case), otherwise " "an :exc:`Error` exception is raised." msgstr "" @@ -184,8 +187,8 @@ msgstr "" #: ../../library/binascii.rst:166 msgid "" "Similar functionality (accepting only text string arguments, but more " -"liberal towards whitespace) is also accessible using the " -":meth:`bytes.fromhex` class method." +"liberal towards whitespace) is also accessible using the :meth:`bytes." +"fromhex` class method." msgstr "" #: ../../library/binascii.rst:172 @@ -200,7 +203,7 @@ msgstr "" #: ../../library/binascii.rst:185 msgid "Module :mod:`base64`" -msgstr "" +msgstr "Módulo :mod:`base64`" #: ../../library/binascii.rst:184 msgid "" diff --git a/library/binhex.po b/library/binhex.po index d35cdc614..ccb9af554 100644 --- a/library/binhex.po +++ b/library/binhex.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Misael borges , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" "Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,20 +54,20 @@ msgid "" msgstr "" "Converte um arquivo binário com o nome de arquivo *input* para o arquivo " "binhex *output*. O parâmetro *output* pode ser um nome de arquivo ou um " -"objeto semelhante a um arquivo (qualquer objeto que suporte um método " -":meth:`write` e :meth:`close`)." +"objeto semelhante a um arquivo (qualquer objeto que suporte um método :meth:" +"`write` e :meth:`close`)." #: ../../library/binhex.rst:26 msgid "" "Decode a binhex file *input*. *input* may be a filename or a file-like " -"object supporting :meth:`read` and :meth:`close` methods. The resulting file" -" is written to a file named *output*, unless the argument is ``None`` in " +"object supporting :meth:`read` and :meth:`close` methods. The resulting file " +"is written to a file named *output*, unless the argument is ``None`` in " "which case the output filename is read from the binhex file." msgstr "" -"Decodifica um arquivo binhex *input*. *input* pode ser um nome de arquivo ou" -" um objeto de arquivo com suporte aos métodos :meth:`read` e :meth:`close`. " -"O arquivo resultante é gravado em um arquivo chamado *output*, a menos que o" -" argumento seja ``None``, caso em que o nome do arquivo de saída é lido a " +"Decodifica um arquivo binhex *input*. *input* pode ser um nome de arquivo ou " +"um objeto de arquivo com suporte aos métodos :meth:`read` e :meth:`close`. O " +"arquivo resultante é gravado em um arquivo chamado *output*, a menos que o " +"argumento seja ``None``, caso em que o nome do arquivo de saída é lido a " "partir do arquivo binhex." #: ../../library/binhex.rst:31 @@ -80,8 +81,8 @@ msgid "" "input is not properly encoded binhex data." msgstr "" "Exceção levantada quando algo não pode ser codificado usando o formato " -"binhex (por exemplo, um nome de arquivo é muito longo para caber no campo de" -" nome de arquivo) ou quando a entrada não consiste em dados binhex " +"binhex (por exemplo, um nome de arquivo é muito longo para caber no campo de " +"nome de arquivo) ou quando a entrada não consiste em dados binhex " "corretamente codificados." #: ../../library/binhex.rst:43 diff --git a/library/bisect.po b/library/bisect.po index f6de21806..35323b307 100644 --- a/library/bisect.po +++ b/library/bisect.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,9 +36,9 @@ msgid "" "This module provides support for maintaining a list in sorted order without " "having to sort the list after each insertion. For long lists of items with " "expensive comparison operations, this can be an improvement over the more " -"common approach. The module is called :mod:`bisect` because it uses a basic" -" bisection algorithm to do its work. The source code may be most useful as " -"a working example of the algorithm (the boundary conditions are already " +"common approach. The module is called :mod:`bisect` because it uses a basic " +"bisection algorithm to do its work. The source code may be most useful as a " +"working example of the algorithm (the boundary conditions are already " "right!)." msgstr "" @@ -48,17 +50,17 @@ msgstr "" msgid "" "Locate the insertion point for *x* in *a* to maintain sorted order. The " "parameters *lo* and *hi* may be used to specify a subset of the list which " -"should be considered; by default the entire list is used. If *x* is already" -" present in *a*, the insertion point will be before (to the left of) any " +"should be considered; by default the entire list is used. If *x* is already " +"present in *a*, the insertion point will be before (to the left of) any " "existing entries. The return value is suitable for use as the first " "parameter to ``list.insert()`` assuming that *a* is already sorted." msgstr "" #: ../../library/bisect.rst:33 msgid "" -"The returned insertion point *i* partitions the array *a* into two halves so" -" that ``all(val < x for val in a[lo:i])`` for the left side and ``all(val >=" -" x for val in a[i:hi])`` for the right side." +"The returned insertion point *i* partitions the array *a* into two halves so " +"that ``all(val < x for val in a[lo:i])`` for the left side and ``all(val >= " +"x for val in a[i:hi])`` for the right side." msgstr "" #: ../../library/bisect.rst:40 @@ -69,17 +71,17 @@ msgstr "" #: ../../library/bisect.rst:43 msgid "" -"The returned insertion point *i* partitions the array *a* into two halves so" -" that ``all(val <= x for val in a[lo:i])`` for the left side and ``all(val >" -" x for val in a[i:hi])`` for the right side." +"The returned insertion point *i* partitions the array *a* into two halves so " +"that ``all(val <= x for val in a[lo:i])`` for the left side and ``all(val > " +"x for val in a[i:hi])`` for the right side." msgstr "" #: ../../library/bisect.rst:49 msgid "" -"Insert *x* in *a* in sorted order. This is equivalent to " -"``a.insert(bisect.bisect_left(a, x, lo, hi), x)`` assuming that *a* is " -"already sorted. Keep in mind that the O(log n) search is dominated by the " -"slow O(n) insertion step." +"Insert *x* in *a* in sorted order. This is equivalent to ``a.insert(bisect." +"bisect_left(a, x, lo, hi), x)`` assuming that *a* is already sorted. Keep " +"in mind that the O(log n) search is dominated by the slow O(n) insertion " +"step." msgstr "" #: ../../library/bisect.rst:57 @@ -90,11 +92,11 @@ msgstr "" #: ../../library/bisect.rst:62 msgid "" -"`SortedCollection recipe " -"`_ that uses " -"bisect to build a full-featured collection class with straight-forward " -"search methods and support for a key-function. The keys are precomputed to " -"save unnecessary calls to the key function during searches." +"`SortedCollection recipe `_ that uses bisect to build a full-featured collection " +"class with straight-forward search methods and support for a key-function. " +"The keys are precomputed to save unnecessary calls to the key function " +"during searches." msgstr "" #: ../../library/bisect.rst:70 @@ -117,20 +119,20 @@ msgstr "" msgid "" "The :func:`bisect` function can be useful for numeric table lookups. This " "example uses :func:`bisect` to look up a letter grade for an exam score " -"(say) based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80" -" to 89 is a 'B', and so on::" +"(say) based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80 " +"to 89 is a 'B', and so on::" msgstr "" #: ../../library/bisect.rst:130 msgid "" -"Unlike the :func:`sorted` function, it does not make sense for the " -":func:`bisect` functions to have *key* or *reversed* arguments because that " -"would lead to an inefficient design (successive calls to bisect functions " -"would not \"remember\" all of the previous key lookups)." +"Unlike the :func:`sorted` function, it does not make sense for the :func:" +"`bisect` functions to have *key* or *reversed* arguments because that would " +"lead to an inefficient design (successive calls to bisect functions would " +"not \"remember\" all of the previous key lookups)." msgstr "" #: ../../library/bisect.rst:135 msgid "" -"Instead, it is better to search a list of precomputed keys to find the index" -" of the record in question::" +"Instead, it is better to search a list of precomputed keys to find the index " +"of the record in question::" msgstr "" diff --git a/library/builtins.po b/library/builtins.po index 294c0c35b..9479d7386 100644 --- a/library/builtins.po +++ b/library/builtins.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,12 +31,12 @@ msgstr ":mod:`builtins` --- Objetos Built-in" #: ../../library/builtins.rst:9 msgid "" "This module provides direct access to all 'built-in' identifiers of Python; " -"for example, ``builtins.open`` is the full name for the built-in function " -":func:`open`. See :ref:`built-in-funcs` and :ref:`built-in-consts` for " +"for example, ``builtins.open`` is the full name for the built-in function :" +"func:`open`. See :ref:`built-in-funcs` and :ref:`built-in-consts` for " "documentation." msgstr "" -"Este módulo fornece acesso direto a todos os identificadores \"built-in\" do" -" Python; Por exemplo, ``builtins.open`` é o nome completo para a função " +"Este módulo fornece acesso direto a todos os identificadores \"built-in\" do " +"Python; Por exemplo, ``builtins.open`` é o nome completo para a função " "interna :func:`open`. Veja :ref:`built-in-funcs` e :ref:` built-in-consts` " "para documentação." @@ -58,13 +59,13 @@ msgstr "" msgid "" "As an implementation detail, most modules have the name ``__builtins__`` " "made available as part of their globals. The value of ``__builtins__`` is " -"normally either this module or the value of this module's " -":attr:`~object.__dict__` attribute. Since this is an implementation detail, " -"it may not be used by alternate implementations of Python." +"normally either this module or the value of this module's :attr:`~object." +"__dict__` attribute. Since this is an implementation detail, it may not be " +"used by alternate implementations of Python." msgstr "" "Como um detalhe de implementação, a maioria dos módulos tem o nome " "``__builtins__`` disponibilizados como parte de seus globais. O valor de " -"``__builtins__`` normalmente, este é o módulo ou o valor desse módulo " -":attr:`~object.__dict__` atributo. Uma vez que este é um detalhe de " +"``__builtins__`` normalmente, este é o módulo ou o valor desse módulo :attr:" +"`~object.__dict__` atributo. Uma vez que este é um detalhe de " "implementação, ele não pode ser usado por implementações alternativas do " "Python." diff --git a/library/bz2.po b/library/bz2.po index 61d3402f8..c60ccf7b5 100644 --- a/library/bz2.po +++ b/library/bz2.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-14 11:26+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -70,15 +72,15 @@ msgstr "" #: ../../library/bz2.rst:36 msgid "" -"Open a bzip2-compressed file in binary or text mode, returning a :term:`file" -" object`." +"Open a bzip2-compressed file in binary or text mode, returning a :term:`file " +"object`." msgstr "" #: ../../library/bz2.rst:39 msgid "" -"As with the constructor for :class:`BZ2File`, the *filename* argument can be" -" an actual filename (a :class:`str` or :class:`bytes` object), or an " -"existing file object to read from or write to." +"As with the constructor for :class:`BZ2File`, the *filename* argument can be " +"an actual filename (a :class:`str` or :class:`bytes` object), or an existing " +"file object to read from or write to." msgstr "" #: ../../library/bz2.rst:43 @@ -90,8 +92,8 @@ msgstr "" #: ../../library/bz2.rst:47 msgid "" -"The *compresslevel* argument is an integer from 1 to 9, as for the " -":class:`BZ2File` constructor." +"The *compresslevel* argument is an integer from 1 to 9, as for the :class:" +"`BZ2File` constructor." msgstr "" #: ../../library/bz2.rst:50 @@ -101,11 +103,15 @@ msgid "" "this case, the *encoding*, *errors* and *newline* arguments must not be " "provided." msgstr "" +"Para o modo binário, esta função é equivalente a :class:`BZ2File` " +"constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. Neste " +"caso, os argumentos *encoding*, *errors* e *newline* não devem ser " +"fornecidos." #: ../../library/bz2.rst:55 msgid "" -"For text mode, a :class:`BZ2File` object is created, and wrapped in an " -":class:`io.TextIOWrapper` instance with the specified encoding, error " +"For text mode, a :class:`BZ2File` object is created, and wrapped in an :" +"class:`io.TextIOWrapper` instance with the specified encoding, error " "handling behavior, and line ending(s)." msgstr "" @@ -115,7 +121,7 @@ msgstr "" #: ../../library/bz2.rst:64 ../../library/bz2.rst:134 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/bz2.rst:70 msgid "Open a bzip2-compressed file in binary mode." @@ -130,10 +136,10 @@ msgstr "" #: ../../library/bz2.rst:76 msgid "" -"The *mode* argument can be either ``'r'`` for reading (default), ``'w'`` for" -" overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. " -"These can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'``" -" respectively." +"The *mode* argument can be either ``'r'`` for reading (default), ``'w'`` for " +"overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These " +"can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'`` " +"respectively." msgstr "" #: ../../library/bz2.rst:81 @@ -161,9 +167,9 @@ msgstr "" #: ../../library/bz2.rst:93 msgid "" -":class:`BZ2File` provides all of the members specified by the " -":class:`io.BufferedIOBase`, except for :meth:`detach` and :meth:`truncate`. " -"Iteration and the :keyword:`with` statement are supported." +":class:`BZ2File` provides all of the members specified by the :class:`io." +"BufferedIOBase`, except for :meth:`detach` and :meth:`truncate`. Iteration " +"and the :keyword:`with` statement are supported." msgstr "" #: ../../library/bz2.rst:97 @@ -173,15 +179,15 @@ msgstr "" #: ../../library/bz2.rst:101 msgid "" "Return buffered data without advancing the file position. At least one byte " -"of data will be returned (unless at EOF). The exact number of bytes returned" -" is unspecified." +"of data will be returned (unless at EOF). The exact number of bytes returned " +"is unspecified." msgstr "" #: ../../library/bz2.rst:105 msgid "" -"While calling :meth:`peek` does not change the file position of the " -":class:`BZ2File`, it may change the position of the underlying file object " -"(e.g. if the :class:`BZ2File` was constructed by passing a file object for " +"While calling :meth:`peek` does not change the file position of the :class:" +"`BZ2File`, it may change the position of the underlying file object (e.g. if " +"the :class:`BZ2File` was constructed by passing a file object for " "*filename*)." msgstr "" @@ -191,8 +197,8 @@ msgstr "Suporte para a instrução :keyword:`with` foi adicionado." #: ../../library/bz2.rst:115 msgid "" -"The :meth:`fileno`, :meth:`readable`, :meth:`seekable`, :meth:`writable`, " -":meth:`read1` and :meth:`readinto` methods were added." +"The :meth:`fileno`, :meth:`readable`, :meth:`seekable`, :meth:`writable`, :" +"meth:`read1` and :meth:`readinto` methods were added." msgstr "" #: ../../library/bz2.rst:119 @@ -232,20 +238,20 @@ msgstr "" #: ../../library/bz2.rst:152 msgid "" -"Provide data to the compressor object. Returns a chunk of compressed data if" -" possible, or an empty byte string otherwise." +"Provide data to the compressor object. Returns a chunk of compressed data if " +"possible, or an empty byte string otherwise." msgstr "" #: ../../library/bz2.rst:155 msgid "" -"When you have finished providing data to the compressor, call the " -":meth:`flush` method to finish the compression process." +"When you have finished providing data to the compressor, call the :meth:" +"`flush` method to finish the compression process." msgstr "" #: ../../library/bz2.rst:161 msgid "" -"Finish the compression process. Returns the compressed data left in internal" -" buffers." +"Finish the compression process. Returns the compressed data left in internal " +"buffers." msgstr "" #: ../../library/bz2.rst:164 @@ -255,9 +261,9 @@ msgstr "" #: ../../library/bz2.rst:169 msgid "" -"Create a new decompressor object. This object may be used to decompress data" -" incrementally. For one-shot compression, use the :func:`decompress` " -"function instead." +"Create a new decompressor object. This object may be used to decompress data " +"incrementally. For one-shot compression, use the :func:`decompress` function " +"instead." msgstr "" #: ../../library/bz2.rst:174 @@ -270,9 +276,9 @@ msgstr "" #: ../../library/bz2.rst:181 msgid "" -"Decompress *data* (a :term:`bytes-like object`), returning uncompressed data" -" as bytes. Some of *data* may be buffered internally, for use in later calls" -" to :meth:`decompress`. The returned data should be concatenated with the " +"Decompress *data* (a :term:`bytes-like object`), returning uncompressed data " +"as bytes. Some of *data* may be buffered internally, for use in later calls " +"to :meth:`decompress`. The returned data should be concatenated with the " "output of any previous calls to :meth:`decompress`." msgstr "" @@ -288,15 +294,15 @@ msgstr "" #: ../../library/bz2.rst:194 msgid "" "If all of the input data was decompressed and returned (either because this " -"was less than *max_length* bytes, or because *max_length* was negative), the" -" :attr:`~.needs_input` attribute will be set to ``True``." +"was less than *max_length* bytes, or because *max_length* was negative), " +"the :attr:`~.needs_input` attribute will be set to ``True``." msgstr "" #: ../../library/bz2.rst:199 msgid "" "Attempting to decompress data after the end of stream is reached raises an " -"`EOFError`. Any data found after the end of the stream is ignored and saved" -" in the :attr:`~.unused_data` attribute." +"`EOFError`. Any data found after the end of the stream is ignored and saved " +"in the :attr:`~.unused_data` attribute." msgstr "" #: ../../library/bz2.rst:203 @@ -313,8 +319,8 @@ msgstr "" #: ../../library/bz2.rst:217 msgid "" -"If this attribute is accessed before the end of the stream has been reached," -" its value will be ``b''``." +"If this attribute is accessed before the end of the stream has been reached, " +"its value will be ``b''``." msgstr "" #: ../../library/bz2.rst:222 @@ -373,8 +379,8 @@ msgstr "" #: ../../library/bz2.rst:300 msgid "" -"The example above uses a very \"nonrandom\" stream of data (a stream of " -"`b\"z\"` chunks). Random data tends to compress poorly, while ordered, " +"The example above uses a very \"nonrandom\" stream of data (a stream of `b\"z" +"\"` chunks). Random data tends to compress poorly, while ordered, " "repetitive data usually yields a high compression ratio." msgstr "" diff --git a/library/calendar.po b/library/calendar.po index 94167dcc5..b6f7af275 100644 --- a/library/calendar.po +++ b/library/calendar.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,8 +36,8 @@ msgid "" "This module allows you to output calendars like the Unix :program:`cal` " "program, and provides additional useful functions related to the calendar. " "By default, these calendars have Monday as the first day of the week, and " -"Sunday as the last (the European convention). Use :func:`setfirstweekday` to" -" set the first day of the week to Sunday (6) or to any other weekday. " +"Sunday as the last (the European convention). Use :func:`setfirstweekday` to " +"set the first day of the week to Sunday (6) or to any other weekday. " "Parameters that specify dates are given as integers. For related " "functionality, see also the :mod:`datetime` and :mod:`time` modules." msgstr "" @@ -47,8 +48,8 @@ msgid "" "the current Gregorian calendar extended indefinitely in both directions. " "This matches the definition of the \"proleptic Gregorian\" calendar in " "Dershowitz and Reingold's book \"Calendrical Calculations\", where it's the " -"base calendar for all computations. Zero and negative years are interpreted" -" as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is 2 BC, " +"base calendar for all computations. Zero and negative years are interpreted " +"as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is 2 BC, " "and so on." msgstr "" @@ -71,9 +72,9 @@ msgstr "" #: ../../library/calendar.rst:45 msgid "" -"Return an iterator for the week day numbers that will be used for one week." -" The first value from the iterator will be the same as the value of the " -":attr:`firstweekday` property." +"Return an iterator for the week day numbers that will be used for one week. " +"The first value from the iterator will be the same as the value of the :attr:" +"`firstweekday` property." msgstr "" #: ../../library/calendar.rst:52 @@ -86,52 +87,52 @@ msgstr "" #: ../../library/calendar.rst:60 msgid "" -"Return an iterator for the month *month* in the year *year* similar to " -":meth:`itermonthdates`, but not restricted by the :class:`datetime.date` " -"range. Days returned will simply be day of the month numbers. For the days " -"outside of the specified month, the day number is ``0``." +"Return an iterator for the month *month* in the year *year* similar to :meth:" +"`itermonthdates`, but not restricted by the :class:`datetime.date` range. " +"Days returned will simply be day of the month numbers. For the days outside " +"of the specified month, the day number is ``0``." msgstr "" #: ../../library/calendar.rst:68 msgid "" -"Return an iterator for the month *month* in the year *year* similar to " -":meth:`itermonthdates`, but not restricted by the :class:`datetime.date` " -"range. Days returned will be tuples consisting of a day of the month number " -"and a week day number." +"Return an iterator for the month *month* in the year *year* similar to :meth:" +"`itermonthdates`, but not restricted by the :class:`datetime.date` range. " +"Days returned will be tuples consisting of a day of the month number and a " +"week day number." msgstr "" #: ../../library/calendar.rst:76 msgid "" -"Return an iterator for the month *month* in the year *year* similar to " -":meth:`itermonthdates`, but not restricted by the :class:`datetime.date` " -"range. Days returned will be tuples consisting of a year, a month and a day " -"of the month numbers." +"Return an iterator for the month *month* in the year *year* similar to :meth:" +"`itermonthdates`, but not restricted by the :class:`datetime.date` range. " +"Days returned will be tuples consisting of a year, a month and a day of the " +"month numbers." msgstr "" #: ../../library/calendar.rst:86 msgid "" -"Return an iterator for the month *month* in the year *year* similar to " -":meth:`itermonthdates`, but not restricted by the :class:`datetime.date` " -"range. Days returned will be tuples consisting of a year, a month, a day of " -"the month, and a day of the week numbers." +"Return an iterator for the month *month* in the year *year* similar to :meth:" +"`itermonthdates`, but not restricted by the :class:`datetime.date` range. " +"Days returned will be tuples consisting of a year, a month, a day of the " +"month, and a day of the week numbers." msgstr "" #: ../../library/calendar.rst:96 msgid "" -"Return a list of the weeks in the month *month* of the *year* as full weeks." -" Weeks are lists of seven :class:`datetime.date` objects." +"Return a list of the weeks in the month *month* of the *year* as full " +"weeks. Weeks are lists of seven :class:`datetime.date` objects." msgstr "" #: ../../library/calendar.rst:102 msgid "" -"Return a list of the weeks in the month *month* of the *year* as full weeks." -" Weeks are lists of seven tuples of day numbers and weekday numbers." +"Return a list of the weeks in the month *month* of the *year* as full " +"weeks. Weeks are lists of seven tuples of day numbers and weekday numbers." msgstr "" #: ../../library/calendar.rst:109 msgid "" -"Return a list of the weeks in the month *month* of the *year* as full weeks." -" Weeks are lists of seven day numbers." +"Return a list of the weeks in the month *month* of the *year* as full " +"weeks. Weeks are lists of seven day numbers." msgstr "" #: ../../library/calendar.rst:115 @@ -144,15 +145,15 @@ msgstr "" #: ../../library/calendar.rst:123 msgid "" -"Return the data for the specified year ready for formatting (similar to " -":meth:`yeardatescalendar`). Entries in the week lists are tuples of day " +"Return the data for the specified year ready for formatting (similar to :" +"meth:`yeardatescalendar`). Entries in the week lists are tuples of day " "numbers and weekday numbers. Day numbers outside this month are zero." msgstr "" #: ../../library/calendar.rst:130 msgid "" -"Return the data for the specified year ready for formatting (similar to " -":meth:`yeardatescalendar`). Entries in the week lists are day numbers. Day " +"Return the data for the specified year ready for formatting (similar to :" +"meth:`yeardatescalendar`). Entries in the week lists are day numbers. Day " "numbers outside this month are zero." msgstr "" @@ -169,8 +170,8 @@ msgid "" "Return a month's calendar in a multi-line string. If *w* is provided, it " "specifies the width of the date columns, which are centered. If *l* is " "given, it specifies the number of lines that each week will use. Depends on " -"the first weekday as specified in the constructor or set by the " -":meth:`setfirstweekday` method." +"the first weekday as specified in the constructor or set by the :meth:" +"`setfirstweekday` method." msgstr "" #: ../../library/calendar.rst:152 @@ -182,9 +183,9 @@ msgid "" "Return a *m*-column calendar for an entire year as a multi-line string. " "Optional parameters *w*, *l*, and *c* are for date column width, lines per " "week, and number of spaces between month columns, respectively. Depends on " -"the first weekday as specified in the constructor or set by the " -":meth:`setfirstweekday` method. The earliest year for which a calendar can " -"be generated is platform-dependent." +"the first weekday as specified in the constructor or set by the :meth:" +"`setfirstweekday` method. The earliest year for which a calendar can be " +"generated is platform-dependent." msgstr "" #: ../../library/calendar.rst:167 @@ -216,8 +217,8 @@ msgstr "" msgid "" "Return a year's calendar as a complete HTML page. *width* (defaulting to 3) " "specifies the number of months per row. *css* is the name for the cascading " -"style sheet to be used. :const:`None` can be passed if no style sheet should" -" be used. *encoding* specifies the encoding to be used for the output " +"style sheet to be used. :const:`None` can be passed if no style sheet should " +"be used. *encoding* specifies the encoding to be used for the output " "(defaulting to the system default encoding)." msgstr "" @@ -258,20 +259,20 @@ msgstr "" #: ../../library/calendar.rst:240 msgid "" -"The CSS class for the whole month's table (used by :meth:`formatmonth`). The" -" default value is ``\"month\"``." +"The CSS class for the whole month's table (used by :meth:`formatmonth`). The " +"default value is ``\"month\"``." msgstr "" #: ../../library/calendar.rst:248 msgid "" -"The CSS class for the whole year's table of tables (used by " -":meth:`formatyear`). The default value is ``\"year\"``." +"The CSS class for the whole year's table of tables (used by :meth:" +"`formatyear`). The default value is ``\"year\"``." msgstr "" #: ../../library/calendar.rst:256 msgid "" -"The CSS class for the table head for the whole year (used by " -":meth:`formatyear`). The default value is ``\"year\"``." +"The CSS class for the table head for the whole year (used by :meth:" +"`formatyear`). The default value is ``\"year\"``." msgstr "" #: ../../library/calendar.rst:262 @@ -288,17 +289,17 @@ msgstr "" #: ../../library/calendar.rst:280 msgid "" "This subclass of :class:`TextCalendar` can be passed a locale name in the " -"constructor and will return month and weekday names in the specified locale." -" If this locale includes an encoding all strings containing month and " -"weekday names will be returned as unicode." +"constructor and will return month and weekday names in the specified locale. " +"If this locale includes an encoding all strings containing month and weekday " +"names will be returned as unicode." msgstr "" #: ../../library/calendar.rst:288 msgid "" "This subclass of :class:`HTMLCalendar` can be passed a locale name in the " -"constructor and will return month and weekday names in the specified locale." -" If this locale includes an encoding all strings containing month and " -"weekday names will be returned as unicode." +"constructor and will return month and weekday names in the specified locale. " +"If this locale includes an encoding all strings containing month and weekday " +"names will be returned as unicode." msgstr "" #: ../../library/calendar.rst:295 @@ -310,17 +311,16 @@ msgid "" msgstr "" #: ../../library/calendar.rst:300 -msgid "" -"For simple text calendars this module provides the following functions." +msgid "For simple text calendars this module provides the following functions." msgstr "" +"Para simples calendários de texto, este módulo fornece as seguintes funções." #: ../../library/calendar.rst:304 msgid "" "Sets the weekday (``0`` is Monday, ``6`` is Sunday) to start each week. The " -"values :const:`MONDAY`, :const:`TUESDAY`, :const:`WEDNESDAY`, " -":const:`THURSDAY`, :const:`FRIDAY`, :const:`SATURDAY`, and :const:`SUNDAY` " -"are provided for convenience. For example, to set the first weekday to " -"Sunday::" +"values :const:`MONDAY`, :const:`TUESDAY`, :const:`WEDNESDAY`, :const:" +"`THURSDAY`, :const:`FRIDAY`, :const:`SATURDAY`, and :const:`SUNDAY` are " +"provided for convenience. For example, to set the first weekday to Sunday::" msgstr "" #: ../../library/calendar.rst:315 @@ -334,8 +334,8 @@ msgstr "" #: ../../library/calendar.rst:325 msgid "" -"Returns the number of leap years in the range from *y1* to *y2* (exclusive)," -" where *y1* and *y2* are years." +"Returns the number of leap years in the range from *y1* to *y2* (exclusive), " +"where *y1* and *y2* are years." msgstr "" #: ../../library/calendar.rst:328 @@ -373,8 +373,8 @@ msgstr "" #: ../../library/calendar.rst:363 msgid "" -"Returns a month's calendar in a multi-line string using the " -":meth:`formatmonth` of the :class:`TextCalendar` class." +"Returns a month's calendar in a multi-line string using the :meth:" +"`formatmonth` of the :class:`TextCalendar` class." msgstr "" #: ../../library/calendar.rst:369 @@ -391,10 +391,10 @@ msgstr "" #: ../../library/calendar.rst:380 msgid "" "An unrelated but handy function that takes a time tuple such as returned by " -"the :func:`~time.gmtime` function in the :mod:`time` module, and returns the" -" corresponding Unix timestamp value, assuming an epoch of 1970, and the " -"POSIX encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each " -"others' inverse." +"the :func:`~time.gmtime` function in the :mod:`time` module, and returns the " +"corresponding Unix timestamp value, assuming an epoch of 1970, and the POSIX " +"encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each others' " +"inverse." msgstr "" #: ../../library/calendar.rst:387 @@ -413,8 +413,8 @@ msgstr "" #: ../../library/calendar.rst:401 msgid "" -"An array that represents the months of the year in the current locale. This" -" follows normal convention of January being month number 1, so it has a " +"An array that represents the months of the year in the current locale. This " +"follows normal convention of January being month number 1, so it has a " "length of 13 and ``month_name[0]`` is the empty string." msgstr "" diff --git a/library/cgi.po b/library/cgi.po index 7a4d00f48..62672d76b 100644 --- a/library/cgi.po +++ b/library/cgi.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -54,8 +55,8 @@ msgstr "" #: ../../library/cgi.rst:33 msgid "" "Most often, CGI scripts live in the server's special :file:`cgi-bin` " -"directory. The HTTP server places all sorts of information about the request" -" (such as the client's hostname, the requested URL, the query string, and " +"directory. The HTTP server places all sorts of information about the request " +"(such as the client's hostname, the requested URL, the query string, and " "lots of other goodies) in the script's shell environment, executes the " "script, and sends the script's output back to the client." msgstr "" @@ -67,8 +68,8 @@ msgid "" "\"query string\" part of the URL. This module is intended to take care of " "the different cases and provide a simpler interface to the Python script. " "It also provides a number of utilities that help in debugging scripts, and " -"the latest addition is support for file uploads from a form (if your browser" -" supports it)." +"the latest addition is support for file uploads from a form (if your browser " +"supports it)." msgstr "" #: ../../library/cgi.rst:46 @@ -108,20 +109,20 @@ msgstr "" #: ../../library/cgi.rst:83 msgid "" -"It's very helpful to use this feature during script development. The reports" -" produced by :mod:`cgitb` provide information that can save you a lot of " -"time in tracking down bugs. You can always remove the ``cgitb`` line later " -"when you have tested your script and are confident that it works correctly." +"It's very helpful to use this feature during script development. The reports " +"produced by :mod:`cgitb` provide information that can save you a lot of time " +"in tracking down bugs. You can always remove the ``cgitb`` line later when " +"you have tested your script and are confident that it works correctly." msgstr "" #: ../../library/cgi.rst:88 msgid "" "To get at submitted form data, use the :class:`FieldStorage` class. If the " -"form contains non-ASCII characters, use the *encoding* keyword parameter set" -" to the value of the encoding defined for the document. It is usually " -"contained in the META tag in the HEAD section of the HTML document or by the" -" :mailheader:`Content-Type` header). This reads the form contents from the " -"standard input or the environment (depending on the value of various " +"form contains non-ASCII characters, use the *encoding* keyword parameter set " +"to the value of the encoding defined for the document. It is usually " +"contained in the META tag in the HEAD section of the HTML document or by " +"the :mailheader:`Content-Type` header). This reads the form contents from " +"the standard input or the environment (depending on the value of various " "environment variables set according to the CGI standard). Since it may " "consume standard input, it should be instantiated only once." msgstr "" @@ -133,51 +134,51 @@ msgid "" "supports the standard dictionary method :meth:`~dict.keys` and the built-in " "function :func:`len`. Form fields containing empty strings are ignored and " "do not appear in the dictionary; to keep such values, provide a true value " -"for the optional *keep_blank_values* keyword parameter when creating the " -":class:`FieldStorage` instance." +"for the optional *keep_blank_values* keyword parameter when creating the :" +"class:`FieldStorage` instance." msgstr "" #: ../../library/cgi.rst:105 msgid "" -"For instance, the following code (which assumes that the :mailheader" -":`Content-Type` header and blank line have already been printed) checks that" -" the fields ``name`` and ``addr`` are both set to a non-empty string::" +"For instance, the following code (which assumes that the :mailheader:" +"`Content-Type` header and blank line have already been printed) checks that " +"the fields ``name`` and ``addr`` are both set to a non-empty string::" msgstr "" #: ../../library/cgi.rst:119 msgid "" -"Here the fields, accessed through ``form[key]``, are themselves instances of" -" :class:`FieldStorage` (or :class:`MiniFieldStorage`, depending on the form " -"encoding). The :attr:`~FieldStorage.value` attribute of the instance yields " -"the string value of the field. The :meth:`~FieldStorage.getvalue` method " -"returns this string value directly; it also accepts an optional second " -"argument as a default to return if the requested key is not present." +"Here the fields, accessed through ``form[key]``, are themselves instances " +"of :class:`FieldStorage` (or :class:`MiniFieldStorage`, depending on the " +"form encoding). The :attr:`~FieldStorage.value` attribute of the instance " +"yields the string value of the field. The :meth:`~FieldStorage.getvalue` " +"method returns this string value directly; it also accepts an optional " +"second argument as a default to return if the requested key is not present." msgstr "" #: ../../library/cgi.rst:126 msgid "" "If the submitted form data contains more than one field with the same name, " -"the object retrieved by ``form[key]`` is not a :class:`FieldStorage` or " -":class:`MiniFieldStorage` instance but a list of such instances. Similarly," -" in this situation, ``form.getvalue(key)`` would return a list of strings. " -"If you expect this possibility (when your HTML form contains multiple fields" -" with the same name), use the :meth:`~FieldStorage.getlist` method, which " -"always returns a list of values (so that you do not need to special-case the" -" single item case). For example, this code concatenates any number of " +"the object retrieved by ``form[key]`` is not a :class:`FieldStorage` or :" +"class:`MiniFieldStorage` instance but a list of such instances. Similarly, " +"in this situation, ``form.getvalue(key)`` would return a list of strings. If " +"you expect this possibility (when your HTML form contains multiple fields " +"with the same name), use the :meth:`~FieldStorage.getlist` method, which " +"always returns a list of values (so that you do not need to special-case the " +"single item case). For example, this code concatenates any number of " "username fields, separated by commas::" msgstr "" #: ../../library/cgi.rst:139 msgid "" -"If a field represents an uploaded file, accessing the value via the " -":attr:`~FieldStorage.value` attribute or the :meth:`~FieldStorage.getvalue` " -"method reads the entire file in memory as bytes. This may not be what you " -"want. You can test for an uploaded file by testing either the " -":attr:`~FieldStorage.filename` attribute or the :attr:`~FieldStorage.file` " -"attribute. You can then read the data from the :attr:`!file` attribute " -"before it is automatically closed as part of the garbage collection of the " -":class:`FieldStorage` instance (the :func:`~io.RawIOBase.read` and " -":func:`~io.IOBase.readline` methods will return bytes)::" +"If a field represents an uploaded file, accessing the value via the :attr:" +"`~FieldStorage.value` attribute or the :meth:`~FieldStorage.getvalue` method " +"reads the entire file in memory as bytes. This may not be what you want. " +"You can test for an uploaded file by testing either the :attr:`~FieldStorage." +"filename` attribute or the :attr:`~FieldStorage.file` attribute. You can " +"then read the data from the :attr:`!file` attribute before it is " +"automatically closed as part of the garbage collection of the :class:" +"`FieldStorage` instance (the :func:`~io.RawIOBase.read` and :func:`~io." +"IOBase.readline` methods will return bytes)::" msgstr "" #: ../../library/cgi.rst:159 @@ -198,27 +199,26 @@ msgstr "" msgid "" "The file upload draft standard entertains the possibility of uploading " "multiple files from one field (using a recursive :mimetype:`multipart/\\*` " -"encoding). When this occurs, the item will be a dictionary-like " -":class:`FieldStorage` item. This can be determined by testing its " -":attr:`!type` attribute, which should be :mimetype:`multipart/form-data` (or" -" perhaps another MIME type matching :mimetype:`multipart/\\*`). In this " -"case, it can be iterated over recursively just like the top-level form " -"object." +"encoding). When this occurs, the item will be a dictionary-like :class:" +"`FieldStorage` item. This can be determined by testing its :attr:`!type` " +"attribute, which should be :mimetype:`multipart/form-data` (or perhaps " +"another MIME type matching :mimetype:`multipart/\\*`). In this case, it can " +"be iterated over recursively just like the top-level form object." msgstr "" #: ../../library/cgi.rst:175 msgid "" "When a form is submitted in the \"old\" format (as the query string or as a " -"single data part of type :mimetype:`application/x-www-form-urlencoded`), the" -" items will actually be instances of the class :class:`MiniFieldStorage`. " -"In this case, the :attr:`!list`, :attr:`!file`, and :attr:`filename` " -"attributes are always ``None``." +"single data part of type :mimetype:`application/x-www-form-urlencoded`), the " +"items will actually be instances of the class :class:`MiniFieldStorage`. In " +"this case, the :attr:`!list`, :attr:`!file`, and :attr:`filename` attributes " +"are always ``None``." msgstr "" #: ../../library/cgi.rst:180 msgid "" -"A form submitted via POST that also has a query string will contain both " -":class:`FieldStorage` and :class:`MiniFieldStorage` items." +"A form submitted via POST that also has a query string will contain both :" +"class:`FieldStorage` and :class:`MiniFieldStorage` items." msgstr "" #: ../../library/cgi.rst:183 @@ -229,8 +229,8 @@ msgstr "" #: ../../library/cgi.rst:187 msgid "" -"Added support for the context management protocol to the " -":class:`FieldStorage` class." +"Added support for the context management protocol to the :class:" +"`FieldStorage` class." msgstr "" #: ../../library/cgi.rst:193 @@ -239,12 +239,12 @@ msgstr "" #: ../../library/cgi.rst:195 msgid "" -"The previous section explains how to read CGI form data using the " -":class:`FieldStorage` class. This section describes a higher level " -"interface which was added to this class to allow one to do it in a more " -"readable and intuitive way. The interface doesn't make the techniques " -"described in previous sections obsolete --- they are still useful to process" -" file uploads efficiently, for example." +"The previous section explains how to read CGI form data using the :class:" +"`FieldStorage` class. This section describes a higher level interface which " +"was added to this class to allow one to do it in a more readable and " +"intuitive way. The interface doesn't make the techniques described in " +"previous sections obsolete --- they are still useful to process file uploads " +"efficiently, for example." msgstr "" #: ../../library/cgi.rst:204 @@ -268,45 +268,45 @@ msgstr "" #: ../../library/cgi.rst:223 msgid "" -"In most situations, however, there's only one form control with a particular" -" name in a form and then you expect and need only one value associated with " +"In most situations, however, there's only one form control with a particular " +"name in a form and then you expect and need only one value associated with " "this name. So you write a script containing for example this code::" msgstr "" #: ../../library/cgi.rst:229 msgid "" -"The problem with the code is that you should never expect that a client will" -" provide valid input to your scripts. For example, if a curious user " -"appends another ``user=foo`` pair to the query string, then the script would" -" crash, because in this situation the ``getvalue(\"user\")`` method call " -"returns a list instead of a string. Calling the :meth:`~str.upper` method " -"on a list is not valid (since lists do not have a method of this name) and " -"results in an :exc:`AttributeError` exception." +"The problem with the code is that you should never expect that a client will " +"provide valid input to your scripts. For example, if a curious user appends " +"another ``user=foo`` pair to the query string, then the script would crash, " +"because in this situation the ``getvalue(\"user\")`` method call returns a " +"list instead of a string. Calling the :meth:`~str.upper` method on a list " +"is not valid (since lists do not have a method of this name) and results in " +"an :exc:`AttributeError` exception." msgstr "" #: ../../library/cgi.rst:237 msgid "" "Therefore, the appropriate way to read form data values was to always use " -"the code which checks whether the obtained value is a single value or a list" -" of values. That's annoying and leads to less readable scripts." +"the code which checks whether the obtained value is a single value or a list " +"of values. That's annoying and leads to less readable scripts." msgstr "" #: ../../library/cgi.rst:241 msgid "" -"A more convenient approach is to use the methods " -":meth:`~FieldStorage.getfirst` and :meth:`~FieldStorage.getlist` provided by" -" this higher level interface." +"A more convenient approach is to use the methods :meth:`~FieldStorage." +"getfirst` and :meth:`~FieldStorage.getlist` provided by this higher level " +"interface." msgstr "" #: ../../library/cgi.rst:247 msgid "" -"This method always returns only one value associated with form field *name*." -" The method returns only the first value in case that more values were " -"posted under such name. Please note that the order in which the values are " -"received may vary from browser to browser and should not be counted on. [#]_" -" If no such form field or value exists then the method returns the value " -"specified by the optional parameter *default*. This parameter defaults to " -"``None`` if not specified." +"This method always returns only one value associated with form field *name*. " +"The method returns only the first value in case that more values were posted " +"under such name. Please note that the order in which the values are " +"received may vary from browser to browser and should not be counted on. " +"[#]_ If no such form field or value exists then the method returns the " +"value specified by the optional parameter *default*. This parameter " +"defaults to ``None`` if not specified." msgstr "" #: ../../library/cgi.rst:258 @@ -333,23 +333,21 @@ msgstr "" #: ../../library/cgi.rst:282 msgid "" -"Parse a query in the environment or from a file (the file defaults to " -"``sys.stdin``). The *keep_blank_values* and *strict_parsing* parameters are" -" passed to :func:`urllib.parse.parse_qs` unchanged." +"Parse a query in the environment or from a file (the file defaults to ``sys." +"stdin``). The *keep_blank_values* and *strict_parsing* parameters are " +"passed to :func:`urllib.parse.parse_qs` unchanged." msgstr "" #: ../../library/cgi.rst:289 msgid "" -"This function is deprecated in this module. Use " -":func:`urllib.parse.parse_qs` instead. It is maintained here only for " -"backward compatibility." +"This function is deprecated in this module. Use :func:`urllib.parse." +"parse_qs` instead. It is maintained here only for backward compatibility." msgstr "" #: ../../library/cgi.rst:295 msgid "" -"This function is deprecated in this module. Use " -":func:`urllib.parse.parse_qsl` instead. It is maintained here only for " -"backward compatibility." +"This function is deprecated in this module. Use :func:`urllib.parse." +"parse_qsl` instead. It is maintained here only for backward compatibility." msgstr "" #: ../../library/cgi.rst:301 @@ -370,8 +368,8 @@ msgstr "" #: ../../library/cgi.rst:310 msgid "" "This is easy to use but not much good if you are expecting megabytes to be " -"uploaded --- in that case, use the :class:`FieldStorage` class instead which" -" is much more flexible." +"uploaded --- in that case, use the :class:`FieldStorage` class instead which " +"is much more flexible." msgstr "" #: ../../library/cgi.rst:314 @@ -430,8 +428,8 @@ msgstr "" #: ../../library/cgi.rst:372 msgid "" -"There's one important rule: if you invoke an external program (via the " -":func:`os.system` or :func:`os.popen` functions. or others with similar " +"There's one important rule: if you invoke an external program (via the :func:" +"`os.system` or :func:`os.popen` functions. or others with similar " "functionality), make very sure you don't pass arbitrary strings received " "from the client to the shell. This is a well-known security hole whereby " "clever hackers anywhere on the Web can exploit a gullible CGI script to " @@ -452,8 +450,8 @@ msgstr "" #: ../../library/cgi.rst:388 msgid "" -"Read the documentation for your HTTP server and check with your local system" -" administrator to find the directory where CGI scripts should be installed; " +"Read the documentation for your HTTP server and check with your local system " +"administrator to find the directory where CGI scripts should be installed; " "usually this is in a directory :file:`cgi-bin` in the server tree." msgstr "" @@ -466,22 +464,23 @@ msgid "" msgstr "" #: ../../library/cgi.rst:399 -msgid "Make sure the Python interpreter exists and is executable by \"others\"." +msgid "" +"Make sure the Python interpreter exists and is executable by \"others\"." msgstr "" #: ../../library/cgi.rst:401 msgid "" "Make sure that any files your script needs to read or write are readable or " -"writable, respectively, by \"others\" --- their mode should be ``0o644`` for" -" readable and ``0o666`` for writable. This is because, for security " -"reasons, the HTTP server executes your script as user \"nobody\", without " -"any special privileges. It can only read (write, execute) files that " -"everybody can read (write, execute). The current directory at execution " -"time is also different (it is usually the server's cgi-bin directory) and " -"the set of environment variables is also different from what you get when " -"you log in. In particular, don't count on the shell's search path for " -"executables (:envvar:`PATH`) or the Python module search path " -"(:envvar:`PYTHONPATH`) to be set to anything interesting." +"writable, respectively, by \"others\" --- their mode should be ``0o644`` for " +"readable and ``0o666`` for writable. This is because, for security reasons, " +"the HTTP server executes your script as user \"nobody\", without any special " +"privileges. It can only read (write, execute) files that everybody can read " +"(write, execute). The current directory at execution time is also different " +"(it is usually the server's cgi-bin directory) and the set of environment " +"variables is also different from what you get when you log in. In " +"particular, don't count on the shell's search path for executables (:envvar:" +"`PATH`) or the Python module search path (:envvar:`PYTHONPATH`) to be set to " +"anything interesting." msgstr "" #: ../../library/cgi.rst:412 @@ -510,15 +509,15 @@ msgid "" "Unfortunately, a CGI script will generally not run when you try it from the " "command line, and a script that works perfectly from the command line may " "fail mysteriously when run from the server. There's one reason why you " -"should still test your script from the command line: if it contains a syntax" -" error, the Python interpreter won't execute it at all, and the HTTP server " +"should still test your script from the command line: if it contains a syntax " +"error, the Python interpreter won't execute it at all, and the HTTP server " "will most likely send a cryptic error to the client." msgstr "" #: ../../library/cgi.rst:436 msgid "" -"Assuming your script has no syntax errors, yet it does not work, you have no" -" choice but to read the next section." +"Assuming your script has no syntax errors, yet it does not work, you have no " +"choice but to read the next section." msgstr "" #: ../../library/cgi.rst:441 @@ -534,8 +533,8 @@ msgid "" "CGI script. When invoked as a script, the file will dump its environment " "and the contents of the form in HTML form. Give it the right mode etc, and " "send it a request. If it's installed in the standard :file:`cgi-bin` " -"directory, it should be possible to send it a request by entering a URL into" -" your browser of the form:" +"directory, it should be possible to send it a request by entering a URL into " +"your browser of the form:" msgstr "" #: ../../library/cgi.rst:458 @@ -552,14 +551,14 @@ msgstr "" #: ../../library/cgi.rst:467 msgid "" -"The next step could be to call the :mod:`cgi` module's :func:`test` function" -" from your script: replace its main code with the single statement ::" +"The next step could be to call the :mod:`cgi` module's :func:`test` function " +"from your script: replace its main code with the single statement ::" msgstr "" #: ../../library/cgi.rst:472 msgid "" -"This should produce the same results as those gotten from installing the " -":file:`cgi.py` file itself." +"This should produce the same results as those gotten from installing the :" +"file:`cgi.py` file itself." msgstr "" #: ../../library/cgi.rst:475 @@ -568,15 +567,15 @@ msgid "" "reason: of a typo in a module name, a file that can't be opened, etc.), the " "Python interpreter prints a nice traceback and exits. While the Python " "interpreter will still do this when your CGI script raises an exception, " -"most likely the traceback will end up in one of the HTTP server's log files," -" or be discarded altogether." +"most likely the traceback will end up in one of the HTTP server's log files, " +"or be discarded altogether." msgstr "" #: ../../library/cgi.rst:482 msgid "" "Fortunately, once you have managed to get your script to execute *some* " -"code, you can easily send tracebacks to the Web browser using the " -":mod:`cgitb` module. If you haven't done so already, just add the lines::" +"code, you can easily send tracebacks to the Web browser using the :mod:" +"`cgitb` module. If you haven't done so already, just add the lines::" msgstr "" #: ../../library/cgi.rst:489 @@ -596,11 +595,11 @@ msgstr "" #: ../../library/cgi.rst:502 msgid "" "This relies on the Python interpreter to print the traceback. The content " -"type of the output is set to plain text, which disables all HTML processing." -" If your script works, the raw HTML will be displayed by your client. If " -"it raises an exception, most likely after the first two lines have been " -"printed, a traceback will be displayed. Because no HTML interpretation is " -"going on, the traceback will be readable." +"type of the output is set to plain text, which disables all HTML " +"processing. If your script works, the raw HTML will be displayed by your " +"client. If it raises an exception, most likely after the first two lines " +"have been printed, a traceback will be displayed. Because no HTML " +"interpretation is going on, the traceback will be readable." msgstr "" #: ../../library/cgi.rst:511 @@ -663,8 +662,8 @@ msgstr "Notas de rodapé" #: ../../library/cgi.rst:542 msgid "" -"Note that some recent versions of the HTML specification do state what order" -" the field values should be supplied in, but knowing whether a request was " +"Note that some recent versions of the HTML specification do state what order " +"the field values should be supplied in, but knowing whether a request was " "received from a conforming browser, or even from a browser at all, is " "tedious and error-prone." msgstr "" diff --git a/library/cgitb.po b/library/cgitb.po index d02f52915..79fadcf7f 100644 --- a/library/cgitb.po +++ b/library/cgitb.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,17 +41,27 @@ msgid "" "display extensive traceback information in HTML for CGI scripts. It was " "later generalized to also display this information in plain text.) After " "this module is activated, if an uncaught exception occurs, a detailed, " -"formatted report will be displayed. The report includes a traceback showing" -" excerpts of the source code for each level, as well as the values of the " +"formatted report will be displayed. The report includes a traceback showing " +"excerpts of the source code for each level, as well as the values of the " "arguments and local variables to currently running functions, to help you " "debug the problem. Optionally, you can save this information to a file " "instead of sending it to the browser." msgstr "" +"O módulo :mod:`cgitb` fornece um tratador de exceção especial para scripts " +"Python. (Seu nome é um pouco enganador. Ele foi originalmente projetado para " +"exibir informações abrangentes de rastreamento em HTML para scripts CGI. " +"Posteriormente, foi generalizado também para exibir essas informações em " +"texto sem formatação.) Após esse módulo ser ativado, se ocorrer uma exceção " +"não detectada, um relatório detalhado e formatado será exibido. O relatório " +"inclui um traceback mostrando trechos do código-fonte para cada nível, bem " +"como os valores dos argumentos e variáveis locais das funções atualmente em " +"execução, para ajudá-lo a depurar o problema. Opcionalmente, você pode " +"salvar essas informações em um arquivo em vez de enviá-las para o navegador." #: ../../library/cgitb.rst:30 -msgid "" -"To enable this feature, simply add this to the top of your CGI script::" +msgid "To enable this feature, simply add this to the top of your CGI script::" msgstr "" +"Para habilitar esse recurso, basta adicioná-lo ao topo do seu script CGI::" #: ../../library/cgitb.rst:35 msgid "" @@ -57,28 +69,39 @@ msgid "" "displayed in the browser and whether the report is logged to a file for " "later analysis." msgstr "" +"As opções da função :func:`enable` controlam se o relatório é exibido no " +"navegador e se o relatório é registrado em um arquivo para análise posterior." #: ../../library/cgitb.rst:44 msgid "" "This function causes the :mod:`cgitb` module to take over the interpreter's " -"default handling for exceptions by setting the value of " -":attr:`sys.excepthook`." +"default handling for exceptions by setting the value of :attr:`sys." +"excepthook`." msgstr "" -"Esta função faz com que o módulo :mod:`cgitb` assumir o tratamento padrão do" -" interpretador para exceções definindo o valor de :attr:`sys.excepthook`." +"Esta função faz com que o módulo :mod:`cgitb` assumir o tratamento padrão do " +"interpretador para exceções definindo o valor de :attr:`sys.excepthook`." #: ../../library/cgitb.rst:47 msgid "" -"The optional argument *display* defaults to ``1`` and can be set to ``0`` to" -" suppress sending the traceback to the browser. If the argument *logdir* is " +"The optional argument *display* defaults to ``1`` and can be set to ``0`` to " +"suppress sending the traceback to the browser. If the argument *logdir* is " "present, the traceback reports are written to files. The value of *logdir* " "should be a directory where these files will be placed. The optional " "argument *context* is the number of lines of context to display around the " -"current line of source code in the traceback; this defaults to ``5``. If the" -" optional argument *format* is ``\"html\"``, the output is formatted as " -"HTML. Any other value forces plain text output. The default value is " -"``\"html\"``." +"current line of source code in the traceback; this defaults to ``5``. If the " +"optional argument *format* is ``\"html\"``, the output is formatted as " +"HTML. Any other value forces plain text output. The default value is ``" +"\"html\"``." msgstr "" +"O argumento opcional *display* é padronizado como ``1`` e pode ser definido " +"como ``0`` para suprimir o envio do traceback ao navegador. Se o argumento " +"*logdir* estiver presente, os relatórios de traceback serão gravados nos " +"arquivos. O valor de *logdir* deve ser um diretório em que esses arquivos " +"serão colocados. O argumento opcional *context* é o número de linhas de " +"contexto a serem exibidas em torno da linha atual do código-fonte no " +"traceback; o padrão é ``5``. Se o argumento opcional *format* for ``\"html" +"\"``, a saída será formatada como HTML. Qualquer outro valor força a saída " +"de texto sem formatação. O valor padrão é ``\"html\"``." #: ../../library/cgitb.rst:59 msgid "" @@ -88,6 +111,11 @@ msgid "" "is the number of lines of context to display around the current line of " "source code in the traceback; this defaults to ``5``." msgstr "" +"Esta função lida com a exceção descrita por *info* (uma tupla com 3 tuplas " +"contendo o resultado de :func:`sys.exc_info`), formatando seu retorno como " +"texto e retornando o resultado como uma string. O argumento opcional " +"*context* é o número de linhas de contexto a serem exibidas em torno da " +"linha atual do código-fonte no traceback; o padrão é ``5``." #: ../../library/cgitb.rst:68 msgid "" @@ -97,14 +125,27 @@ msgid "" "is the number of lines of context to display around the current line of " "source code in the traceback; this defaults to ``5``." msgstr "" +"Esta função lida com a exceção descrita por *info* (uma tupla com 3 tuplas " +"contendo o resultado de :func:`sys.exc_info`), formatando seu retorno como " +"HTML e retornando o resultado como uma string. O argumento opcional " +"*context* é o número de linhas de contexto a serem exibidas em torno da " +"linha atual do código-fonte no traceback; o padrão é ``5``." #: ../../library/cgitb.rst:77 msgid "" -"This function handles an exception using the default settings (that is, show" -" a report in the browser, but don't log to a file). This can be used when " +"This function handles an exception using the default settings (that is, show " +"a report in the browser, but don't log to a file). This can be used when " "you've caught an exception and want to report it using :mod:`cgitb`. The " "optional *info* argument should be a 3-tuple containing an exception type, " -"exception value, and traceback object, exactly like the tuple returned by " -":func:`sys.exc_info`. If the *info* argument is not supplied, the current " +"exception value, and traceback object, exactly like the tuple returned by :" +"func:`sys.exc_info`. If the *info* argument is not supplied, the current " "exception is obtained from :func:`sys.exc_info`." msgstr "" +"Essa função trata uma exceção usando as configurações padrão (ou seja, " +"mostra um relatório no navegador, mas não faz logon em um arquivo). Isso " +"pode ser usado quando você capturou uma exceção e deseja denunciá-la usando :" +"mod:`cgitb`. O argumento opcional *info* deve ser uma tupla de três, " +"contendo um tipo de exceção, um valor de exceção e um objeto de traceback " +"exatamente como a tupla retornada por :func:`sys.exc_info`. Se o argumento " +"*info* não for fornecido, a exceção atual será obtida em :func:`sys." +"exc_info`." diff --git a/library/chunk.po b/library/chunk.po index 596a4ff48..19ae9006d 100644 --- a/library/chunk.po +++ b/library/chunk.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -59,7 +60,6 @@ msgid "0" msgstr "0" #: ../../library/chunk.rst:31 ../../library/chunk.rst:33 -#: ../../library/chunk.rst:33 msgid "4" msgstr "4" @@ -107,10 +107,10 @@ msgstr "" #: ../../library/chunk.rst:50 msgid "" -"Usually an IFF-type file consists of one or more chunks. The proposed usage" -" of the :class:`Chunk` class defined here is to instantiate an instance at " -"the start of each chunk and read from the instance until it reaches the end," -" after which a new instance can be instantiated. At the end of the file, " +"Usually an IFF-type file consists of one or more chunks. The proposed usage " +"of the :class:`Chunk` class defined here is to instantiate an instance at " +"the start of each chunk and read from the instance until it reaches the end, " +"after which a new instance can be instantiated. At the end of the file, " "creating a new instance will fail with an :exc:`EOFError` exception." msgstr "" @@ -118,17 +118,17 @@ msgstr "" msgid "" "Class which represents a chunk. The *file* argument is expected to be a " "file-like object. An instance of this class is specifically allowed. The " -"only method that is needed is :meth:`~io.IOBase.read`. If the methods " -":meth:`~io.IOBase.seek` and :meth:`~io.IOBase.tell` are present and don't " -"raise an exception, they are also used. If these methods are present and " -"raise an exception, they are expected to not have altered the object. If " -"the optional argument *align* is true, chunks are assumed to be aligned on " -"2-byte boundaries. If *align* is false, no alignment is assumed. The " -"default value is true. If the optional argument *bigendian* is false, the " -"chunk size is assumed to be in little-endian order. This is needed for WAVE " -"audio files. The default value is true. If the optional argument " -"*inclheader* is true, the size given in the chunk header includes the size " -"of the header. The default value is false." +"only method that is needed is :meth:`~io.IOBase.read`. If the methods :meth:" +"`~io.IOBase.seek` and :meth:`~io.IOBase.tell` are present and don't raise an " +"exception, they are also used. If these methods are present and raise an " +"exception, they are expected to not have altered the object. If the " +"optional argument *align* is true, chunks are assumed to be aligned on 2-" +"byte boundaries. If *align* is false, no alignment is assumed. The default " +"value is true. If the optional argument *bigendian* is false, the chunk " +"size is assumed to be in little-endian order. This is needed for WAVE audio " +"files. The default value is true. If the optional argument *inclheader* is " +"true, the size given in the chunk header includes the size of the header. " +"The default value is false." msgstr "" #: ../../library/chunk.rst:73 @@ -152,9 +152,9 @@ msgstr "" #: ../../library/chunk.rst:92 msgid "" -"The remaining methods will raise :exc:`OSError` if called after the " -":meth:`close` method has been called. Before Python 3.3, they used to raise" -" :exc:`IOError`, now an alias of :exc:`OSError`." +"The remaining methods will raise :exc:`OSError` if called after the :meth:" +"`close` method has been called. Before Python 3.3, they used to raise :exc:" +"`IOError`, now an alias of :exc:`OSError`." msgstr "" #: ../../library/chunk.rst:99 @@ -166,8 +166,8 @@ msgid "" "Set the chunk's current position. The *whence* argument is optional and " "defaults to ``0`` (absolute file positioning); other values are ``1`` (seek " "relative to the current position) and ``2`` (seek relative to the file's " -"end). There is no return value. If the underlying file does not allow seek," -" only forward seeks are allowed." +"end). There is no return value. If the underlying file does not allow seek, " +"only forward seeks are allowed." msgstr "" #: ../../library/chunk.rst:113 @@ -186,9 +186,9 @@ msgstr "" #: ../../library/chunk.rst:127 msgid "" "Skip to the end of the chunk. All further calls to :meth:`read` for the " -"chunk will return ``b''``. If you are not interested in the contents of the" -" chunk, this method should be called so that the file points to the start of" -" the next chunk." +"chunk will return ``b''``. If you are not interested in the contents of the " +"chunk, this method should be called so that the file points to the start of " +"the next chunk." msgstr "" #: ../../library/chunk.rst:134 diff --git a/library/cmath.po b/library/cmath.po index 04f1006b8..a615504d2 100644 --- a/library/cmath.po +++ b/library/cmath.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-18 11:29+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,9 +41,9 @@ msgstr "" #: ../../library/cmath.rst:18 msgid "" "On platforms with hardware and system-level support for signed zeros, " -"functions involving branch cuts are continuous on *both* sides of the branch" -" cut: the sign of the zero distinguishes one side of the branch cut from the" -" other. On platforms that do not support signed zeros the continuity is as " +"functions involving branch cuts are continuous on *both* sides of the branch " +"cut: the sign of the zero distinguishes one side of the branch cut from the " +"other. On platforms that do not support signed zeros the continuity is as " "specified below." msgstr "" @@ -52,15 +54,15 @@ msgstr "" #: ../../library/cmath.rst:28 msgid "" "A Python complex number ``z`` is stored internally using *rectangular* or " -"*Cartesian* coordinates. It is completely determined by its *real part* " -"``z.real`` and its *imaginary part* ``z.imag``. In other words::" +"*Cartesian* coordinates. It is completely determined by its *real part* ``z." +"real`` and its *imaginary part* ``z.imag``. In other words::" msgstr "" #: ../../library/cmath.rst:35 msgid "" "*Polar coordinates* give an alternative way to represent a complex number. " -"In polar coordinates, a complex number *z* is defined by the modulus *r* and" -" the phase angle *phi*. The modulus *r* is the distance from *z* to the " +"In polar coordinates, a complex number *z* is defined by the modulus *r* and " +"the phase angle *phi*. The modulus *r* is the distance from *z* to the " "origin, while the phase *phi* is the counterclockwise angle, measured in " "radians, from the positive x-axis to the line segment that joins the origin " "to *z*." @@ -76,8 +78,8 @@ msgstr "" msgid "" "Return the phase of *x* (also known as the *argument* of *x*), as a float. " "``phase(x)`` is equivalent to ``math.atan2(x.imag, x.real)``. The result " -"lies in the range [-\\ *π*, *π*], and the branch cut for this operation lies" -" along the negative real axis, continuous from above. On systems with " +"lies in the range [-\\ *π*, *π*], and the branch cut for this operation lies " +"along the negative real axis, continuous from above. On systems with " "support for signed zeros (which includes most systems in current use), this " "means that the sign of the result is the same as the sign of ``x.imag``, " "even when ``x.imag`` is zero::" @@ -86,14 +88,14 @@ msgstr "" #: ../../library/cmath.rst:64 msgid "" "The modulus (absolute value) of a complex number *x* can be computed using " -"the built-in :func:`abs` function. There is no separate :mod:`cmath` module" -" function for this operation." +"the built-in :func:`abs` function. There is no separate :mod:`cmath` module " +"function for this operation." msgstr "" #: ../../library/cmath.rst:71 msgid "" -"Return the representation of *x* in polar coordinates. Returns a pair ``(r," -" phi)`` where *r* is the modulus of *x* and phi is the phase of *x*. " +"Return the representation of *x* in polar coordinates. Returns a pair ``(r, " +"phi)`` where *r* is the modulus of *x* and phi is the phase of *x*. " "``polar(x)`` is equivalent to ``(abs(x), phase(x))``." msgstr "" @@ -122,8 +124,8 @@ msgstr "" #: ../../library/cmath.rst:101 msgid "" -"Return the base-10 logarithm of *x*. This has the same branch cut as " -":func:`log`." +"Return the base-10 logarithm of *x*. This has the same branch cut as :func:" +"`log`." msgstr "" #: ../../library/cmath.rst:107 @@ -187,9 +189,9 @@ msgstr "" #: ../../library/cmath.rst:167 msgid "" -"Return the inverse hyperbolic tangent of *x*. There are two branch cuts: One" -" extends from ``1`` along the real axis to ``∞``, continuous from below. The" -" other extends from ``-1`` along the real axis to ``-∞``, continuous from " +"Return the inverse hyperbolic tangent of *x*. There are two branch cuts: One " +"extends from ``1`` along the real axis to ``∞``, continuous from below. The " +"other extends from ``-1`` along the real axis to ``-∞``, continuous from " "above." msgstr "" @@ -313,13 +315,13 @@ msgstr "" #: ../../library/cmath.rst:296 msgid "" "Note that the selection of functions is similar, but not identical, to that " -"in module :mod:`math`. The reason for having two modules is that some users" -" aren't interested in complex numbers, and perhaps don't even know what they" -" are. They would rather have ``math.sqrt(-1)`` raise an exception than " -"return a complex number. Also note that the functions defined in " -":mod:`cmath` always return a complex number, even if the answer can be " -"expressed as a real number (in which case the complex number has an " -"imaginary part of zero)." +"in module :mod:`math`. The reason for having two modules is that some users " +"aren't interested in complex numbers, and perhaps don't even know what they " +"are. They would rather have ``math.sqrt(-1)`` raise an exception than " +"return a complex number. Also note that the functions defined in :mod:" +"`cmath` always return a complex number, even if the answer can be expressed " +"as a real number (in which case the complex number has an imaginary part of " +"zero)." msgstr "" #: ../../library/cmath.rst:304 @@ -329,13 +331,13 @@ msgid "" "It is assumed that if you need to compute with complex functions, you will " "understand about branch cuts. Consult almost any (not too elementary) book " "on complex variables for enlightenment. For information of the proper " -"choice of branch cuts for numerical purposes, a good reference should be the" -" following:" +"choice of branch cuts for numerical purposes, a good reference should be the " +"following:" msgstr "" #: ../../library/cmath.rst:314 msgid "" "Kahan, W: Branch cuts for complex elementary functions; or, Much ado about " -"nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the" -" art in numerical analysis. Clarendon Press (1987) pp165--211." +"nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the " +"art in numerical analysis. Clarendon Press (1987) pp165--211." msgstr "" diff --git a/library/cmd.po b/library/cmd.po index 85d8f1a31..b593dadae 100644 --- a/library/cmd.po +++ b/library/cmd.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,6 +26,7 @@ msgstr "" #: ../../library/cmd.rst:2 msgid ":mod:`cmd` --- Support for line-oriented command interpreters" msgstr "" +":mod:`cmd` --- Suporte para interpretadores de comando orientado a linhas" #: ../../library/cmd.rst:9 msgid "**Source code:** :source:`Lib/cmd.py`" @@ -31,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/cmd.py`" #: ../../library/cmd.rst:13 msgid "" -"The :class:`Cmd` class provides a simple framework for writing line-oriented" -" command interpreters. These are often useful for test harnesses, " +"The :class:`Cmd` class provides a simple framework for writing line-oriented " +"command interpreters. These are often useful for test harnesses, " "administrative tools, and prototypes that will later be wrapped in a more " "sophisticated interface." msgstr "" @@ -49,8 +52,8 @@ msgstr "" #: ../../library/cmd.rst:25 msgid "" "The optional argument *completekey* is the :mod:`readline` name of a " -"completion key; it defaults to :kbd:`Tab`. If *completekey* is not " -":const:`None` and :mod:`readline` is available, command completion is done " +"completion key; it defaults to :kbd:`Tab`. If *completekey* is not :const:" +"`None` and :mod:`readline` is available, command completion is done " "automatically." msgstr "" @@ -58,14 +61,14 @@ msgstr "" msgid "" "The optional arguments *stdin* and *stdout* specify the input and output " "file objects that the Cmd instance or subclass instance will use for input " -"and output. If not specified, they will default to :data:`sys.stdin` and " -":data:`sys.stdout`." +"and output. If not specified, they will default to :data:`sys.stdin` and :" +"data:`sys.stdout`." msgstr "" #: ../../library/cmd.rst:34 msgid "" -"If you want a given *stdin* to be used, make sure to set the instance's " -":attr:`use_rawinput` attribute to ``False``, otherwise *stdin* will be " +"If you want a given *stdin* to be used, make sure to set the instance's :" +"attr:`use_rawinput` attribute to ``False``, otherwise *stdin* will be " "ignored." msgstr "" @@ -92,11 +95,11 @@ msgstr "" #: ../../library/cmd.rst:56 msgid "" -"If the :mod:`readline` module is loaded, input will automatically inherit " -":program:`bash`\\ -like history-list editing (e.g. :kbd:`Control-P` scrolls " -"back to the last command, :kbd:`Control-N` forward to the next one, " -":kbd:`Control-F` moves the cursor to the right non-destructively, " -":kbd:`Control-B` moves the cursor to the left non-destructively, etc.)." +"If the :mod:`readline` module is loaded, input will automatically inherit :" +"program:`bash`\\ -like history-list editing (e.g. :kbd:`Control-P` scrolls " +"back to the last command, :kbd:`Control-N` forward to the next one, :kbd:" +"`Control-F` moves the cursor to the right non-destructively, :kbd:`Control-" +"B` moves the cursor to the left non-destructively, etc.)." msgstr "" #: ../../library/cmd.rst:62 @@ -105,8 +108,8 @@ msgstr "" #: ../../library/cmd.rst:68 msgid "" -"An interpreter instance will recognize a command name ``foo`` if and only if" -" it has a method :meth:`do_foo`. As a special case, a line beginning with " +"An interpreter instance will recognize a command name ``foo`` if and only if " +"it has a method :meth:`do_foo`. As a special case, a line beginning with " "the character ``'?'`` is dispatched to the method :meth:`do_help`. As " "another special case, a line beginning with the character ``'!'`` is " "dispatched to the method :meth:`do_shell` (if such a method is defined)." @@ -122,8 +125,8 @@ msgstr "" #: ../../library/cmd.rst:78 msgid "" "If completion is enabled, completing commands will be done automatically, " -"and completing of commands args is done by calling :meth:`complete_foo` with" -" arguments *text*, *line*, *begidx*, and *endidx*. *text* is the string " +"and completing of commands args is done by calling :meth:`complete_foo` with " +"arguments *text*, *line*, *begidx*, and *endidx*. *text* is the string " "prefix we are attempting to match: all returned matches must begin with it. " "*line* is the current input line with leading whitespace removed, *begidx* " "and *endidx* are the beginning and ending indexes of the prefix text, which " @@ -134,19 +137,19 @@ msgstr "" #: ../../library/cmd.rst:86 msgid "" "All subclasses of :class:`Cmd` inherit a predefined :meth:`do_help`. This " -"method, called with an argument ``'bar'``, invokes the corresponding method " -":meth:`help_bar`, and if that is not present, prints the docstring of " -":meth:`do_bar`, if available. With no argument, :meth:`do_help` lists all " -"available help topics (that is, all commands with corresponding " -":meth:`help_\\*` methods or commands that have docstrings), and also lists " -"any undocumented commands." +"method, called with an argument ``'bar'``, invokes the corresponding method :" +"meth:`help_bar`, and if that is not present, prints the docstring of :meth:" +"`do_bar`, if available. With no argument, :meth:`do_help` lists all " +"available help topics (that is, all commands with corresponding :meth:`help_" +"\\*` methods or commands that have docstrings), and also lists any " +"undocumented commands." msgstr "" #: ../../library/cmd.rst:97 msgid "" "Interpret the argument as though it had been typed in response to the " -"prompt. This may be overridden, but should not normally need to be; see the " -":meth:`precmd` and :meth:`postcmd` methods for useful execution hooks. The " +"prompt. This may be overridden, but should not normally need to be; see the :" +"meth:`precmd` and :meth:`postcmd` methods for useful execution hooks. The " "return value is a flag indicating whether interpretation of commands by the " "interpreter should stop. If there is a :meth:`do_\\*` method for the " "command *str*, the return value of that method is returned, otherwise the " @@ -161,37 +164,35 @@ msgstr "" #: ../../library/cmd.rst:114 msgid "" -"Method called on an input line when the command prefix is not recognized. If" -" this method is not overridden, it prints an error message and returns." +"Method called on an input line when the command prefix is not recognized. If " +"this method is not overridden, it prints an error message and returns." msgstr "" #: ../../library/cmd.rst:120 msgid "" -"Method called to complete an input line when no command-specific " -":meth:`complete_\\*` method is available. By default, it returns an empty " -"list." +"Method called to complete an input line when no command-specific :meth:" +"`complete_\\*` method is available. By default, it returns an empty list." msgstr "" #: ../../library/cmd.rst:126 msgid "" -"Hook method executed just before the command line *line* is interpreted, but" -" after the input prompt is generated and issued. This method is a stub in " -":class:`Cmd`; it exists to be overridden by subclasses. The return value is" -" used as the command which will be executed by the :meth:`onecmd` method; " +"Hook method executed just before the command line *line* is interpreted, but " +"after the input prompt is generated and issued. This method is a stub in :" +"class:`Cmd`; it exists to be overridden by subclasses. The return value is " +"used as the command which will be executed by the :meth:`onecmd` method; " "the :meth:`precmd` implementation may re-write the command or simply return " "*line* unchanged." msgstr "" #: ../../library/cmd.rst:136 msgid "" -"Hook method executed just after a command dispatch is finished. This method" -" is a stub in :class:`Cmd`; it exists to be overridden by subclasses. " -"*line* is the command line which was executed, and *stop* is a flag which " -"indicates whether execution will be terminated after the call to " -":meth:`postcmd`; this will be the return value of the :meth:`onecmd` method." -" The return value of this method will be used as the new value for the " -"internal flag which corresponds to *stop*; returning false will cause " -"interpretation to continue." +"Hook method executed just after a command dispatch is finished. This method " +"is a stub in :class:`Cmd`; it exists to be overridden by subclasses. *line* " +"is the command line which was executed, and *stop* is a flag which indicates " +"whether execution will be terminated after the call to :meth:`postcmd`; this " +"will be the return value of the :meth:`onecmd` method. The return value of " +"this method will be used as the new value for the internal flag which " +"corresponds to *stop*; returning false will cause interpretation to continue." msgstr "" #: ../../library/cmd.rst:147 @@ -225,35 +226,34 @@ msgstr "" #: ../../library/cmd.rst:176 msgid "" -"A list of queued input lines. The cmdqueue list is checked in " -":meth:`cmdloop` when new input is needed; if it is nonempty, its elements " -"will be processed in order, as if entered at the prompt." +"A list of queued input lines. The cmdqueue list is checked in :meth:" +"`cmdloop` when new input is needed; if it is nonempty, its elements will be " +"processed in order, as if entered at the prompt." msgstr "" #: ../../library/cmd.rst:183 msgid "" -"A string to issue as an intro or banner. May be overridden by giving the " -":meth:`cmdloop` method an argument." +"A string to issue as an intro or banner. May be overridden by giving the :" +"meth:`cmdloop` method an argument." msgstr "" #: ../../library/cmd.rst:189 msgid "" -"The header to issue if the help output has a section for documented " -"commands." +"The header to issue if the help output has a section for documented commands." msgstr "" #: ../../library/cmd.rst:194 msgid "" -"The header to issue if the help output has a section for miscellaneous help" -" topics (that is, there are :meth:`help_\\*` methods without corresponding " -":meth:`do_\\*` methods)." +"The header to issue if the help output has a section for miscellaneous help " +"topics (that is, there are :meth:`help_\\*` methods without corresponding :" +"meth:`do_\\*` methods)." msgstr "" #: ../../library/cmd.rst:201 msgid "" "The header to issue if the help output has a section for undocumented " -"commands (that is, there are :meth:`do_\\*` methods without corresponding " -":meth:`help_\\*` methods)." +"commands (that is, there are :meth:`do_\\*` methods without corresponding :" +"meth:`help_\\*` methods)." msgstr "" #: ../../library/cmd.rst:208 @@ -265,11 +265,11 @@ msgstr "" #: ../../library/cmd.rst:214 msgid "" "A flag, defaulting to true. If true, :meth:`cmdloop` uses :func:`input` to " -"display a prompt and read the next command; if false, " -":meth:`sys.stdout.write` and :meth:`sys.stdin.readline` are used. (This " -"means that by importing :mod:`readline`, on systems that support it, the " -"interpreter will automatically support :program:`Emacs`\\ -like line editing" -" and command-history keystrokes.)" +"display a prompt and read the next command; if false, :meth:`sys.stdout." +"write` and :meth:`sys.stdin.readline` are used. (This means that by " +"importing :mod:`readline`, on systems that support it, the interpreter will " +"automatically support :program:`Emacs`\\ -like line editing and command-" +"history keystrokes.)" msgstr "" #: ../../library/cmd.rst:224 @@ -278,8 +278,8 @@ msgstr "" #: ../../library/cmd.rst:228 msgid "" -"The :mod:`cmd` module is mainly useful for building custom shells that let a" -" user work with a program interactively." +"The :mod:`cmd` module is mainly useful for building custom shells that let a " +"user work with a program interactively." msgstr "" #: ../../library/cmd.rst:231 @@ -290,19 +290,19 @@ msgstr "" #: ../../library/cmd.rst:234 msgid "" -"Basic turtle commands such as :meth:`~turtle.forward` are added to a " -":class:`Cmd` subclass with method named :meth:`do_forward`. The argument is" -" converted to a number and dispatched to the turtle module. The docstring " -"is used in the help utility provided by the shell." +"Basic turtle commands such as :meth:`~turtle.forward` are added to a :class:" +"`Cmd` subclass with method named :meth:`do_forward`. The argument is " +"converted to a number and dispatched to the turtle module. The docstring is " +"used in the help utility provided by the shell." msgstr "" #: ../../library/cmd.rst:239 msgid "" "The example also includes a basic record and playback facility implemented " "with the :meth:`~Cmd.precmd` method which is responsible for converting the " -"input to lowercase and writing the commands to a file. The " -":meth:`do_playback` method reads the file and adds the recorded commands to " -"the :attr:`cmdqueue` for immediate playback::" +"input to lowercase and writing the commands to a file. The :meth:" +"`do_playback` method reads the file and adds the recorded commands to the :" +"attr:`cmdqueue` for immediate playback::" msgstr "" #: ../../library/cmd.rst:320 diff --git a/library/code.po b/library/code.po index c33ef9ab2..7bbd318e8 100644 --- a/library/code.po +++ b/library/code.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,16 +45,16 @@ msgstr "" #: ../../library/code.rst:18 msgid "" "This class deals with parsing and interpreter state (the user's namespace); " -"it does not deal with input buffering or prompting or input file naming (the" -" filename is always passed in explicitly). The optional *locals* argument " +"it does not deal with input buffering or prompting or input file naming (the " +"filename is always passed in explicitly). The optional *locals* argument " "specifies the dictionary in which code will be executed; it defaults to a " "newly created dictionary with key ``'__name__'`` set to ``'__console__'`` " "and key ``'__doc__'`` set to ``None``." msgstr "" "Esta classe trata de analisar e interpretar o estado (espaço de nome do " "usuário); o mesmo não lida com buffer de entrada ou solicitação ou nomeação " -"de arquivo de entrada (o nome do arquivo é sempre passado explicitamente). O" -" argumento opcional *local* especifica o dicionário no qual o código será " +"de arquivo de entrada (o nome do arquivo é sempre passado explicitamente). O " +"argumento opcional *local* especifica o dicionário no qual o código será " "executado; ele é padrão para um dicionário recém-criado com a chave " "``'__name__'`` set to ``'__console__'`` and key ``'__doc__'`` definido com " "``None``." @@ -60,19 +62,19 @@ msgstr "" #: ../../library/code.rst:28 msgid "" "Closely emulate the behavior of the interactive Python interpreter. This " -"class builds on :class:`InteractiveInterpreter` and adds prompting using the" -" familiar ``sys.ps1`` and ``sys.ps2``, and input buffering." +"class builds on :class:`InteractiveInterpreter` and adds prompting using the " +"familiar ``sys.ps1`` and ``sys.ps2``, and input buffering." msgstr "" #: ../../library/code.rst:35 msgid "" "Convenience function to run a read-eval-print loop. This creates a new " "instance of :class:`InteractiveConsole` and sets *readfunc* to be used as " -"the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is" -" provided, it is passed to the :class:`InteractiveConsole` constructor for " -"use as the default namespace for the interpreter loop. The :meth:`interact`" -" method of the instance is then run with *banner* and *exitmsg* passed as " -"the banner and exit message to use, if provided. The console object is " +"the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is " +"provided, it is passed to the :class:`InteractiveConsole` constructor for " +"use as the default namespace for the interpreter loop. The :meth:`interact` " +"method of the instance is then run with *banner* and *exitmsg* passed as the " +"banner and exit message to use, if provided. The console object is " "discarded after use." msgstr "" @@ -83,11 +85,11 @@ msgstr "" #: ../../library/code.rst:50 msgid "" "This function is useful for programs that want to emulate Python's " -"interpreter main loop (a.k.a. the read-eval-print loop). The tricky part is" -" to determine when the user has entered an incomplete command that can be " +"interpreter main loop (a.k.a. the read-eval-print loop). The tricky part is " +"to determine when the user has entered an incomplete command that can be " "completed by entering more text (as opposed to a complete command or a " -"syntax error). This function *almost* always makes the same decision as the" -" real interpreter main loop." +"syntax error). This function *almost* always makes the same decision as the " +"real interpreter main loop." msgstr "" #: ../../library/code.rst:57 @@ -100,8 +102,8 @@ msgstr "" #: ../../library/code.rst:62 msgid "" -"Returns a code object (the same as ``compile(source, filename, symbol)``) if" -" the command is complete and valid; ``None`` if the command is incomplete; " +"Returns a code object (the same as ``compile(source, filename, symbol)``) if " +"the command is complete and valid; ``None`` if the command is incomplete; " "raises :exc:`SyntaxError` if the command is complete and contains a syntax " "error, or raises :exc:`OverflowError` or :exc:`ValueError` if the command " "contains an invalid literal." @@ -115,48 +117,48 @@ msgstr "Objetos de Intérprete Interativo" msgid "" "Compile and run some source in the interpreter. Arguments are the same as " "for :func:`compile_command`; the default for *filename* is ``''``, " -"and for *symbol* is ``'single'``. One several things can happen:" +"and for *symbol* is ``'single'``. One of several things can happen:" msgstr "" #: ../../library/code.rst:81 msgid "" -"The input is incorrect; :func:`compile_command` raised an exception " -"(:exc:`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be " -"printed by calling the :meth:`showsyntaxerror` method. :meth:`runsource` " -"returns ``False``." +"The input is incorrect; :func:`compile_command` raised an exception (:exc:" +"`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be printed " +"by calling the :meth:`showsyntaxerror` method. :meth:`runsource` returns " +"``False``." msgstr "" #: ../../library/code.rst:86 msgid "" -"The input is incomplete, and more input is required; :func:`compile_command`" -" returned ``None``. :meth:`runsource` returns ``True``." +"The input is incomplete, and more input is required; :func:`compile_command` " +"returned ``None``. :meth:`runsource` returns ``True``." msgstr "" #: ../../library/code.rst:89 msgid "" "The input is complete; :func:`compile_command` returned a code object. The " -"code is executed by calling the :meth:`runcode` (which also handles run-time" -" exceptions, except for :exc:`SystemExit`). :meth:`runsource` returns " +"code is executed by calling the :meth:`runcode` (which also handles run-time " +"exceptions, except for :exc:`SystemExit`). :meth:`runsource` returns " "``False``." msgstr "" #: ../../library/code.rst:93 msgid "" -"The return value can be used to decide whether to use ``sys.ps1`` or " -"``sys.ps2`` to prompt the next line." +"The return value can be used to decide whether to use ``sys.ps1`` or ``sys." +"ps2`` to prompt the next line." msgstr "" #: ../../library/code.rst:99 msgid "" "Execute a code object. When an exception occurs, :meth:`showtraceback` is " -"called to display a traceback. All exceptions are caught except " -":exc:`SystemExit`, which is allowed to propagate." +"called to display a traceback. All exceptions are caught except :exc:" +"`SystemExit`, which is allowed to propagate." msgstr "" #: ../../library/code.rst:103 msgid "" -"A note about :exc:`KeyboardInterrupt`: this exception may occur elsewhere in" -" this code, and may not always be caught. The caller should be prepared to " +"A note about :exc:`KeyboardInterrupt`: this exception may occur elsewhere in " +"this code, and may not always be caught. The caller should be prepared to " "deal with it." msgstr "" @@ -195,26 +197,26 @@ msgstr "Objetos de Console Interativos" #: ../../library/code.rst:138 msgid "" -"The :class:`InteractiveConsole` class is a subclass of " -":class:`InteractiveInterpreter`, and so offers all the methods of the " -"interpreter objects as well as the following additions." +"The :class:`InteractiveConsole` class is a subclass of :class:" +"`InteractiveInterpreter`, and so offers all the methods of the interpreter " +"objects as well as the following additions." msgstr "" #: ../../library/code.rst:145 msgid "" "Closely emulate the interactive Python console. The optional *banner* " "argument specify the banner to print before the first interaction; by " -"default it prints a banner similar to the one printed by the standard Python" -" interpreter, followed by the class name of the console object in " -"parentheses (so as not to confuse this with the real interpreter -- since " -"it's so close!)." +"default it prints a banner similar to the one printed by the standard Python " +"interpreter, followed by the class name of the console object in parentheses " +"(so as not to confuse this with the real interpreter -- since it's so " +"close!)." msgstr "" #: ../../library/code.rst:151 msgid "" "The optional *exitmsg* argument specifies an exit message printed when " -"exiting. Pass the empty string to suppress the exit message. If *exitmsg* is" -" not given or ``None``, a default message is printed." +"exiting. Pass the empty string to suppress the exit message. If *exitmsg* is " +"not given or ``None``, a default message is printed." msgstr "" #: ../../library/code.rst:155 @@ -231,11 +233,11 @@ msgid "" "trailing newline; it may have internal newlines. The line is appended to a " "buffer and the interpreter's :meth:`runsource` method is called with the " "concatenated contents of the buffer as source. If this indicates that the " -"command was executed or invalid, the buffer is reset; otherwise, the command" -" is incomplete, and the buffer is left as it was after the line was " -"appended. The return value is ``True`` if more input is required, ``False``" -" if the line was dealt with in some way (this is the same as " -":meth:`runsource`)." +"command was executed or invalid, the buffer is reset; otherwise, the command " +"is incomplete, and the buffer is left as it was after the line was " +"appended. The return value is ``True`` if more input is required, ``False`` " +"if the line was dealt with in some way (this is the same as :meth:" +"`runsource`)." msgstr "" #: ../../library/code.rst:176 @@ -245,7 +247,7 @@ msgstr "" #: ../../library/code.rst:181 msgid "" "Write a prompt and read a line. The returned line does not include the " -"trailing newline. When the user enters the EOF key sequence, " -":exc:`EOFError` is raised. The base implementation reads from ``sys.stdin``;" -" a subclass may replace this with a different implementation." +"trailing newline. When the user enters the EOF key sequence, :exc:" +"`EOFError` is raised. The base implementation reads from ``sys.stdin``; a " +"subclass may replace this with a different implementation." msgstr "" diff --git a/library/codecs.po b/library/codecs.po index 2bb2cc0e1..a46ba5441 100644 --- a/library/codecs.po +++ b/library/codecs.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-02 03:40+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,10 +38,10 @@ msgid "" "decoders) and provides access to the internal Python codec registry, which " "manages the codec and error handling lookup process. Most standard codecs " "are :term:`text encodings `, which encode text to bytes, but " -"there are also codecs provided that encode text to text, and bytes to bytes." -" Custom codecs may encode and decode between arbitrary types, but some " -"module features are restricted to use specifically with :term:`text " -"encodings `, or with codecs that encode to :class:`bytes`." +"there are also codecs provided that encode text to text, and bytes to bytes. " +"Custom codecs may encode and decode between arbitrary types, but some module " +"features are restricted to use specifically with :term:`text encodings `, or with codecs that encode to :class:`bytes`." msgstr "" #: ../../library/codecs.rst:33 @@ -55,9 +57,9 @@ msgstr "" #: ../../library/codecs.rst:40 msgid "" "*Errors* may be given to set the desired error handling scheme. The default " -"error handler is ``'strict'`` meaning that encoding errors raise " -":exc:`ValueError` (or a more codec specific subclass, such as " -":exc:`UnicodeEncodeError`). Refer to :ref:`codec-base-classes` for more " +"error handler is ``'strict'`` meaning that encoding errors raise :exc:" +"`ValueError` (or a more codec specific subclass, such as :exc:" +"`UnicodeEncodeError`). Refer to :ref:`codec-base-classes` for more " "information on codec error handling." msgstr "" @@ -68,9 +70,9 @@ msgstr "" #: ../../library/codecs.rst:50 msgid "" "*Errors* may be given to set the desired error handling scheme. The default " -"error handler is ``'strict'`` meaning that decoding errors raise " -":exc:`ValueError` (or a more codec specific subclass, such as " -":exc:`UnicodeDecodeError`). Refer to :ref:`codec-base-classes` for more " +"error handler is ``'strict'`` meaning that decoding errors raise :exc:" +"`ValueError` (or a more codec specific subclass, such as :exc:" +"`UnicodeDecodeError`). Refer to :ref:`codec-base-classes` for more " "information on codec error handling." msgstr "" @@ -80,16 +82,16 @@ msgstr "" #: ../../library/codecs.rst:60 msgid "" -"Looks up the codec info in the Python codec registry and returns a " -":class:`CodecInfo` object as defined below." +"Looks up the codec info in the Python codec registry and returns a :class:" +"`CodecInfo` object as defined below." msgstr "" #: ../../library/codecs.rst:63 msgid "" "Encodings are first looked up in the registry's cache. If not found, the " "list of registered search functions is scanned. If no :class:`CodecInfo` " -"object is found, a :exc:`LookupError` is raised. Otherwise, the " -":class:`CodecInfo` object is stored in the cache and returned to the caller." +"object is found, a :exc:`LookupError` is raised. Otherwise, the :class:" +"`CodecInfo` object is stored in the cache and returned to the caller." msgstr "" #: ../../library/codecs.rst:70 @@ -105,25 +107,25 @@ msgstr "" #: ../../library/codecs.rst:82 msgid "" "The stateless encoding and decoding functions. These must be functions or " -"methods which have the same interface as the :meth:`~Codec.encode` and " -":meth:`~Codec.decode` methods of Codec instances (see :ref:`Codec Interface " -"`). The functions or methods are expected to work in a " -"stateless mode." +"methods which have the same interface as the :meth:`~Codec.encode` and :meth:" +"`~Codec.decode` methods of Codec instances (see :ref:`Codec Interface `). The functions or methods are expected to work in a stateless " +"mode." msgstr "" #: ../../library/codecs.rst:92 msgid "" "Incremental encoder and decoder classes or factory functions. These have to " -"provide the interface defined by the base classes " -":class:`IncrementalEncoder` and :class:`IncrementalDecoder`, respectively. " +"provide the interface defined by the base classes :class:" +"`IncrementalEncoder` and :class:`IncrementalDecoder`, respectively. " "Incremental codecs can maintain state." msgstr "" #: ../../library/codecs.rst:101 msgid "" -"Stream writer and reader classes or factory functions. These have to provide" -" the interface defined by the base classes :class:`StreamWriter` and " -":class:`StreamReader`, respectively. Stream codecs can maintain state." +"Stream writer and reader classes or factory functions. These have to provide " +"the interface defined by the base classes :class:`StreamWriter` and :class:" +"`StreamReader`, respectively. Stream codecs can maintain state." msgstr "" #: ../../library/codecs.rst:106 @@ -173,14 +175,14 @@ msgstr "" #: ../../library/codecs.rst:143 msgid "" -"Look up the codec for the given encoding and return its " -":class:`StreamReader` class or factory function." +"Look up the codec for the given encoding and return its :class:" +"`StreamReader` class or factory function." msgstr "" #: ../../library/codecs.rst:151 msgid "" -"Look up the codec for the given encoding and return its " -":class:`StreamWriter` class or factory function." +"Look up the codec for the given encoding and return its :class:" +"`StreamWriter` class or factory function." msgstr "" #: ../../library/codecs.rst:156 @@ -192,8 +194,8 @@ msgstr "" #: ../../library/codecs.rst:161 msgid "" "Register a codec search function. Search functions are expected to take one " -"argument, being the encoding name in all lower case letters, and return a " -":class:`CodecInfo` object. In case a search function cannot find a given " +"argument, being the encoding name in all lower case letters, and return a :" +"class:`CodecInfo` object. In case a search function cannot find a given " "encoding, it should return ``None``." msgstr "" @@ -213,17 +215,17 @@ msgstr "" #: ../../library/codecs.rst:179 msgid "" -"Open an encoded file using the given *mode* and return an instance of " -":class:`StreamReaderWriter`, providing transparent encoding/decoding. The " -"default file mode is ``'r'``, meaning to open the file in read mode." +"Open an encoded file using the given *mode* and return an instance of :class:" +"`StreamReaderWriter`, providing transparent encoding/decoding. The default " +"file mode is ``'r'``, meaning to open the file in read mode." msgstr "" #: ../../library/codecs.rst:185 msgid "" "Underlying encoded files are always opened in binary mode. No automatic " "conversion of ``'\\n'`` is done on reading and writing. The *mode* argument " -"may be any binary mode acceptable to the built-in :func:`open` function; the" -" ``'b'`` is automatically added." +"may be any binary mode acceptable to the built-in :func:`open` function; the " +"``'b'`` is automatically added." msgstr "" #: ../../library/codecs.rst:190 @@ -242,8 +244,8 @@ msgstr "" #: ../../library/codecs.rst:197 msgid "" -"*buffering* has the same meaning as for the built-in :func:`open` function." -" It defaults to line buffered." +"*buffering* has the same meaning as for the built-in :func:`open` function. " +"It defaults to line buffered." msgstr "" #: ../../library/codecs.rst:203 @@ -299,8 +301,8 @@ msgstr "" msgid "" "This function requires that the codec accept :class:`bytes` objects to " "decode. Therefore it does not support text-to-text encoders such as " -"``rot_13``, although ``rot_13`` may be used equivalently with " -":func:`iterencode`." +"``rot_13``, although ``rot_13`` may be used equivalently with :func:" +"`iterencode`." msgstr "" #: ../../library/codecs.rst:245 @@ -314,11 +316,11 @@ msgid "" "These constants define various byte sequences, being Unicode byte order " "marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 data " "streams to indicate the byte order used, and in UTF-8 as a Unicode " -"signature. :const:`BOM_UTF16` is either :const:`BOM_UTF16_BE` or " -":const:`BOM_UTF16_LE` depending on the platform's native byte order, " -":const:`BOM` is an alias for :const:`BOM_UTF16`, :const:`BOM_LE` for " -":const:`BOM_UTF16_LE` and :const:`BOM_BE` for :const:`BOM_UTF16_BE`. The " -"others represent the BOM in UTF-8 and UTF-32 encodings." +"signature. :const:`BOM_UTF16` is either :const:`BOM_UTF16_BE` or :const:" +"`BOM_UTF16_LE` depending on the platform's native byte order, :const:`BOM` " +"is an alias for :const:`BOM_UTF16`, :const:`BOM_LE` for :const:" +"`BOM_UTF16_LE` and :const:`BOM_BE` for :const:`BOM_UTF16_BE`. The others " +"represent the BOM in UTF-8 and UTF-32 encodings." msgstr "" #: ../../library/codecs.rst:274 @@ -328,17 +330,17 @@ msgstr "" #: ../../library/codecs.rst:276 msgid "" "The :mod:`codecs` module defines a set of base classes which define the " -"interfaces for working with codec objects, and can also be used as the basis" -" for custom codec implementations." +"interfaces for working with codec objects, and can also be used as the basis " +"for custom codec implementations." msgstr "" #: ../../library/codecs.rst:280 msgid "" "Each codec has to define four interfaces to make it usable as codec in " "Python: stateless encoder, stateless decoder, stream reader and stream " -"writer. The stream reader and writers typically reuse the stateless " -"encoder/decoder to implement the file protocols. Codec authors also need to " -"define how the codec will handle encoding and decoding errors." +"writer. The stream reader and writers typically reuse the stateless encoder/" +"decoder to implement the file protocols. Codec authors also need to define " +"how the codec will handle encoding and decoding errors." msgstr "" #: ../../library/codecs.rst:291 @@ -366,7 +368,7 @@ msgstr "Significado" #: ../../library/codecs.rst:303 msgid "``'strict'``" -msgstr "" +msgstr "``'strict'``" #: ../../library/codecs.rst:303 msgid "" @@ -376,7 +378,7 @@ msgstr "" #: ../../library/codecs.rst:307 msgid "``'ignore'``" -msgstr "" +msgstr "``'ignore'``" #: ../../library/codecs.rst:307 msgid "" @@ -392,18 +394,18 @@ msgstr "" #: ../../library/codecs.rst:326 msgid "``'replace'``" -msgstr "" +msgstr "``'replace'``" #: ../../library/codecs.rst:326 msgid "" -"Replace with a suitable replacement marker; Python will use the official " -"``U+FFFD`` REPLACEMENT CHARACTER for the built-in codecs on decoding, and " -"'?' on encoding. Implemented in :func:`replace_errors`." +"Replace with a suitable replacement marker; Python will use the official ``U" +"+FFFD`` REPLACEMENT CHARACTER for the built-in codecs on decoding, and '?' " +"on encoding. Implemented in :func:`replace_errors`." msgstr "" #: ../../library/codecs.rst:333 msgid "``'xmlcharrefreplace'``" -msgstr "" +msgstr "``'xmlcharrefreplace'``" #: ../../library/codecs.rst:333 msgid "" @@ -413,17 +415,17 @@ msgstr "" #: ../../library/codecs.rst:337 msgid "``'backslashreplace'``" -msgstr "" +msgstr "``'backslashreplace'``" #: ../../library/codecs.rst:337 msgid "" -"Replace with backslashed escape sequences. Implemented in " -":func:`backslashreplace_errors`." +"Replace with backslashed escape sequences. Implemented in :func:" +"`backslashreplace_errors`." msgstr "" #: ../../library/codecs.rst:341 msgid "``'namereplace'``" -msgstr "" +msgstr "``'namereplace'``" #: ../../library/codecs.rst:341 msgid "" @@ -433,14 +435,14 @@ msgstr "" #: ../../library/codecs.rst:345 msgid "``'surrogateescape'``" -msgstr "" +msgstr "``'surrogateescape'``" #: ../../library/codecs.rst:345 msgid "" -"On decoding, replace byte with individual surrogate code ranging from " -"``U+DC80`` to ``U+DCFF``. This code will then be turned back into the same " -"byte when the ``'surrogateescape'`` error handler is used when encoding the " -"data. (See :pep:`383` for more.)" +"On decoding, replace byte with individual surrogate code ranging from ``U" +"+DC80`` to ``U+DCFF``. This code will then be turned back into the same byte " +"when the ``'surrogateescape'`` error handler is used when encoding the data. " +"(See :pep:`383` for more.)" msgstr "" #: ../../library/codecs.rst:354 @@ -501,18 +503,17 @@ msgstr "" #: ../../library/codecs.rst:386 msgid "" -"For encoding, *error_handler* will be called with a " -":exc:`UnicodeEncodeError` instance, which contains information about the " -"location of the error. The error handler must either raise this or a " -"different exception, or return a tuple with a replacement for the " -"unencodable part of the input and a position where encoding should continue." -" The replacement may be either :class:`str` or :class:`bytes`. If the " -"replacement is bytes, the encoder will simply copy them into the output " -"buffer. If the replacement is a string, the encoder will encode the " -"replacement. Encoding continues on original input at the specified position." -" Negative position values will be treated as being relative to the end of " -"the input string. If the resulting position is out of bound an " -":exc:`IndexError` will be raised." +"For encoding, *error_handler* will be called with a :exc:" +"`UnicodeEncodeError` instance, which contains information about the location " +"of the error. The error handler must either raise this or a different " +"exception, or return a tuple with a replacement for the unencodable part of " +"the input and a position where encoding should continue. The replacement may " +"be either :class:`str` or :class:`bytes`. If the replacement is bytes, the " +"encoder will simply copy them into the output buffer. If the replacement is " +"a string, the encoder will encode the replacement. Encoding continues on " +"original input at the specified position. Negative position values will be " +"treated as being relative to the end of the input string. If the resulting " +"position is out of bound an :exc:`IndexError` will be raised." msgstr "" #: ../../library/codecs.rst:398 @@ -524,8 +525,8 @@ msgstr "" #: ../../library/codecs.rst:403 msgid "" -"Previously registered error handlers (including the standard error handlers)" -" can be looked up by name:" +"Previously registered error handlers (including the standard error handlers) " +"can be looked up by name:" msgstr "" #: ../../library/codecs.rst:408 @@ -550,9 +551,9 @@ msgstr "" #: ../../library/codecs.rst:423 msgid "" -"Implements the ``'replace'`` error handling (for :term:`text encodings ` only): substitutes ``'?'`` for encoding errors (to be encoded by" -" the codec), and ``'\\ufffd'`` (the Unicode replacement character) for " +"Implements the ``'replace'`` error handling (for :term:`text encodings ` only): substitutes ``'?'`` for encoding errors (to be encoded by " +"the codec), and ``'\\ufffd'`` (the Unicode replacement character) for " "decoding errors." msgstr "" @@ -564,8 +565,8 @@ msgstr "" #: ../../library/codecs.rst:437 msgid "" -"Implements the ``'xmlcharrefreplace'`` error handling (for encoding with " -":term:`text encodings ` only): the unencodable character is " +"Implements the ``'xmlcharrefreplace'`` error handling (for encoding with :" +"term:`text encodings ` only): the unencodable character is " "replaced by an appropriate XML character reference." msgstr "" @@ -578,8 +579,8 @@ msgstr "" #: ../../library/codecs.rst:450 msgid "" -"Implements the ``'namereplace'`` error handling (for encoding with " -":term:`text encodings ` only): the unencodable character is " +"Implements the ``'namereplace'`` error handling (for encoding with :term:" +"`text encodings ` only): the unencodable character is " "replaced by a ``\\N{...}`` escape sequence." msgstr "" @@ -596,9 +597,9 @@ msgstr "" #: ../../library/codecs.rst:468 msgid "" "Encodes the object *input* and returns a tuple (output object, length " -"consumed). For instance, :term:`text encoding` converts a string object to a" -" bytes object using a particular character set encoding (e.g., ``cp1252`` or" -" ``iso-8859-1``)." +"consumed). For instance, :term:`text encoding` converts a string object to a " +"bytes object using a particular character set encoding (e.g., ``cp1252`` or " +"``iso-8859-1``)." msgstr "" #: ../../library/codecs.rst:473 ../../library/codecs.rst:495 @@ -609,9 +610,9 @@ msgstr "" #: ../../library/codecs.rst:476 msgid "" -"The method may not store state in the :class:`Codec` instance. Use " -":class:`StreamWriter` for codecs which have to keep state in order to make " -"encoding efficient." +"The method may not store state in the :class:`Codec` instance. Use :class:" +"`StreamWriter` for codecs which have to keep state in order to make encoding " +"efficient." msgstr "" #: ../../library/codecs.rst:480 @@ -630,16 +631,16 @@ msgstr "" #: ../../library/codecs.rst:491 msgid "" -"For text encodings and bytes-to-bytes codecs, *input* must be a bytes object" -" or one which provides the read-only buffer interface -- for example, buffer" -" objects and memory mapped files." +"For text encodings and bytes-to-bytes codecs, *input* must be a bytes object " +"or one which provides the read-only buffer interface -- for example, buffer " +"objects and memory mapped files." msgstr "" #: ../../library/codecs.rst:498 msgid "" -"The method may not store state in the :class:`Codec` instance. Use " -":class:`StreamReader` for codecs which have to keep state in order to make " -"decoding efficient." +"The method may not store state in the :class:`Codec` instance. Use :class:" +"`StreamReader` for codecs which have to keep state in order to make decoding " +"efficient." msgstr "" #: ../../library/codecs.rst:502 @@ -655,20 +656,20 @@ msgstr "" #: ../../library/codecs.rst:509 msgid "" "The :class:`IncrementalEncoder` and :class:`IncrementalDecoder` classes " -"provide the basic interface for incremental encoding and decoding. " -"Encoding/decoding the input isn't done with one call to the stateless " -"encoder/decoder function, but with multiple calls to the " -":meth:`~IncrementalEncoder.encode`/:meth:`~IncrementalDecoder.decode` method" -" of the incremental encoder/decoder. The incremental encoder/decoder keeps " -"track of the encoding/decoding process during method calls." +"provide the basic interface for incremental encoding and decoding. Encoding/" +"decoding the input isn't done with one call to the stateless encoder/decoder " +"function, but with multiple calls to the :meth:`~IncrementalEncoder.encode`/:" +"meth:`~IncrementalDecoder.decode` method of the incremental encoder/decoder. " +"The incremental encoder/decoder keeps track of the encoding/decoding process " +"during method calls." msgstr "" #: ../../library/codecs.rst:517 msgid "" -"The joined output of calls to the " -":meth:`~IncrementalEncoder.encode`/:meth:`~IncrementalDecoder.decode` method" -" is the same as if all the single inputs were joined into one, and this " -"input was encoded/decoded with the stateless encoder/decoder." +"The joined output of calls to the :meth:`~IncrementalEncoder.encode`/:meth:" +"`~IncrementalDecoder.decode` method is the same as if all the single inputs " +"were joined into one, and this input was encoded/decoded with the stateless " +"encoder/decoder." msgstr "" #: ../../library/codecs.rst:526 @@ -679,8 +680,7 @@ msgstr "" msgid "" "The :class:`IncrementalEncoder` class is used for encoding an input in " "multiple steps. It defines the following methods which every incremental " -"encoder must define in order to be compatible with the Python codec " -"registry." +"encoder must define in order to be compatible with the Python codec registry." msgstr "" #: ../../library/codecs.rst:535 @@ -690,8 +690,8 @@ msgstr "" #: ../../library/codecs.rst:537 msgid "" "All incremental encoders must provide this constructor interface. They are " -"free to add additional keyword arguments, but only the ones defined here are" -" used by the Python codec registry." +"free to add additional keyword arguments, but only the ones defined here are " +"used by the Python codec registry." msgstr "" #: ../../library/codecs.rst:541 @@ -705,31 +705,31 @@ msgstr "" msgid "" "The *errors* argument will be assigned to an attribute of the same name. " "Assigning to this attribute makes it possible to switch between different " -"error handling strategies during the lifetime of the " -":class:`IncrementalEncoder` object." +"error handling strategies during the lifetime of the :class:" +"`IncrementalEncoder` object." msgstr "" #: ../../library/codecs.rst:553 msgid "" "Encodes *object* (taking the current state of the encoder into account) and " -"returns the resulting encoded object. If this is the last call to " -":meth:`encode` *final* must be true (the default is false)." +"returns the resulting encoded object. If this is the last call to :meth:" +"`encode` *final* must be true (the default is false)." msgstr "" #: ../../library/codecs.rst:560 msgid "" -"Reset the encoder to the initial state. The output is discarded: call " -"``.encode(object, final=True)``, passing an empty byte or text string if " +"Reset the encoder to the initial state. The output is discarded: call ``." +"encode(object, final=True)``, passing an empty byte or text string if " "necessary, to reset the encoder and to get the output." msgstr "" #: ../../library/codecs.rst:567 msgid "" "Return the current state of the encoder which must be an integer. The " -"implementation should make sure that ``0`` is the most common state. (States" -" that are more complicated than integers can be converted into an integer by" -" marshaling/pickling the state and encoding the bytes of the resulting " -"string into an integer.)" +"implementation should make sure that ``0`` is the most common state. (States " +"that are more complicated than integers can be converted into an integer by " +"marshaling/pickling the state and encoding the bytes of the resulting string " +"into an integer.)" msgstr "" #: ../../library/codecs.rst:576 @@ -746,8 +746,7 @@ msgstr "" msgid "" "The :class:`IncrementalDecoder` class is used for decoding an input in " "multiple steps. It defines the following methods which every incremental " -"decoder must define in order to be compatible with the Python codec " -"registry." +"decoder must define in order to be compatible with the Python codec registry." msgstr "" #: ../../library/codecs.rst:592 @@ -757,8 +756,8 @@ msgstr "" #: ../../library/codecs.rst:594 msgid "" "All incremental decoders must provide this constructor interface. They are " -"free to add additional keyword arguments, but only the ones defined here are" -" used by the Python codec registry." +"free to add additional keyword arguments, but only the ones defined here are " +"used by the Python codec registry." msgstr "" #: ../../library/codecs.rst:598 @@ -772,19 +771,19 @@ msgstr "" msgid "" "The *errors* argument will be assigned to an attribute of the same name. " "Assigning to this attribute makes it possible to switch between different " -"error handling strategies during the lifetime of the " -":class:`IncrementalDecoder` object." +"error handling strategies during the lifetime of the :class:" +"`IncrementalDecoder` object." msgstr "" #: ../../library/codecs.rst:610 msgid "" "Decodes *object* (taking the current state of the decoder into account) and " -"returns the resulting decoded object. If this is the last call to " -":meth:`decode` *final* must be true (the default is false). If *final* is " -"true the decoder must decode the input completely and must flush all " -"buffers. If this isn't possible (e.g. because of incomplete byte sequences " -"at the end of the input) it must initiate error handling just like in the " -"stateless case (which might raise an exception)." +"returns the resulting decoded object. If this is the last call to :meth:" +"`decode` *final* must be true (the default is false). If *final* is true the " +"decoder must decode the input completely and must flush all buffers. If this " +"isn't possible (e.g. because of incomplete byte sequences at the end of the " +"input) it must initiate error handling just like in the stateless case " +"(which might raise an exception)." msgstr "" #: ../../library/codecs.rst:621 @@ -840,9 +839,9 @@ msgstr "" #: ../../library/codecs.rst:668 msgid "" -"All stream writers must provide this constructor interface. They are free to" -" add additional keyword arguments, but only the ones defined here are used " -"by the Python codec registry." +"All stream writers must provide this constructor interface. They are free to " +"add additional keyword arguments, but only the ones defined here are used by " +"the Python codec registry." msgstr "" #: ../../library/codecs.rst:672 @@ -873,8 +872,8 @@ msgstr "" #: ../../library/codecs.rst:690 msgid "" "Writes the concatenated list of strings to the stream (possibly by reusing " -"the :meth:`write` method). The standard bytes-to-bytes codecs do not support" -" this method." +"the :meth:`write` method). The standard bytes-to-bytes codecs do not support " +"this method." msgstr "" #: ../../library/codecs.rst:697 @@ -884,8 +883,8 @@ msgstr "" #: ../../library/codecs.rst:699 msgid "" "Calling this method should ensure that the data on the output is put into a " -"clean state that allows appending of new fresh data without having to rescan" -" the whole stream to recover state." +"clean state that allows appending of new fresh data without having to rescan " +"the whole stream to recover state." msgstr "" #: ../../library/codecs.rst:704 @@ -911,9 +910,9 @@ msgstr "" #: ../../library/codecs.rst:722 msgid "" -"All stream readers must provide this constructor interface. They are free to" -" add additional keyword arguments, but only the ones defined here are used " -"by the Python codec registry." +"All stream readers must provide this constructor interface. They are free to " +"add additional keyword arguments, but only the ones defined here are used by " +"the Python codec registry." msgstr "" #: ../../library/codecs.rst:726 @@ -939,8 +938,8 @@ msgstr "" #: ../../library/codecs.rst:737 msgid "" -"The set of allowed values for the *errors* argument can be extended with " -":func:`register_error`." +"The set of allowed values for the *errors* argument can be extended with :" +"func:`register_error`." msgstr "" #: ../../library/codecs.rst:743 @@ -949,17 +948,17 @@ msgstr "" #: ../../library/codecs.rst:745 msgid "" -"The *chars* argument indicates the number of decoded code points or bytes to" -" return. The :func:`read` method will never return more data than requested," -" but it might return less, if there is not enough available." +"The *chars* argument indicates the number of decoded code points or bytes to " +"return. The :func:`read` method will never return more data than requested, " +"but it might return less, if there is not enough available." msgstr "" #: ../../library/codecs.rst:750 msgid "" "The *size* argument indicates the approximate maximum number of encoded " "bytes or code points to read for decoding. The decoder can modify this " -"setting as appropriate. The default value -1 indicates to read and decode as" -" much as possible. This parameter is intended to prevent having to decode " +"setting as appropriate. The default value -1 indicates to read and decode as " +"much as possible. This parameter is intended to prevent having to decode " "huge files in one step." msgstr "" @@ -989,8 +988,7 @@ msgstr "" #: ../../library/codecs.rst:774 msgid "" -"If *keepends* is false line-endings will be stripped from the lines " -"returned." +"If *keepends* is false line-endings will be stripped from the lines returned." msgstr "" #: ../../library/codecs.rst:780 @@ -1001,14 +999,14 @@ msgstr "" #: ../../library/codecs.rst:783 msgid "" -"Line-endings are implemented using the codec's :meth:`decode` method and are" -" included in the list entries if *keepends* is true." +"Line-endings are implemented using the codec's :meth:`decode` method and are " +"included in the list entries if *keepends* is true." msgstr "" #: ../../library/codecs.rst:786 msgid "" -"*sizehint*, if given, is passed as the *size* argument to the stream's " -":meth:`read` method." +"*sizehint*, if given, is passed as the *size* argument to the stream's :meth:" +"`read` method." msgstr "" #: ../../library/codecs.rst:792 @@ -1039,23 +1037,23 @@ msgstr "" #: ../../library/codecs.rst:809 ../../library/codecs.rst:833 msgid "" -"The design is such that one can use the factory functions returned by the " -":func:`lookup` function to construct the instance." +"The design is such that one can use the factory functions returned by the :" +"func:`lookup` function to construct the instance." msgstr "" #: ../../library/codecs.rst:815 msgid "" -"Creates a :class:`StreamReaderWriter` instance. *stream* must be a file-like" -" object. *Reader* and *Writer* must be factory functions or classes " -"providing the :class:`StreamReader` and :class:`StreamWriter` interface " -"resp. Error handling is done in the same way as defined for the stream " -"readers and writers." +"Creates a :class:`StreamReaderWriter` instance. *stream* must be a file-like " +"object. *Reader* and *Writer* must be factory functions or classes providing " +"the :class:`StreamReader` and :class:`StreamWriter` interface resp. Error " +"handling is done in the same way as defined for the stream readers and " +"writers." msgstr "" #: ../../library/codecs.rst:820 msgid "" -":class:`StreamReaderWriter` instances define the combined interfaces of " -":class:`StreamReader` and :class:`StreamWriter` classes. They inherit all " +":class:`StreamReaderWriter` instances define the combined interfaces of :" +"class:`StreamReader` and :class:`StreamWriter` classes. They inherit all " "other methods and attributes from the underlying stream." msgstr "" @@ -1072,15 +1070,15 @@ msgstr "" #: ../../library/codecs.rst:839 msgid "" "Creates a :class:`StreamRecoder` instance which implements a two-way " -"conversion: *encode* and *decode* work on the frontend — the data visible to" -" code calling :meth:`read` and :meth:`write`, while *Reader* and *Writer* " +"conversion: *encode* and *decode* work on the frontend — the data visible to " +"code calling :meth:`read` and :meth:`write`, while *Reader* and *Writer* " "work on the backend — the data in *stream*." msgstr "" #: ../../library/codecs.rst:844 msgid "" -"You can use these objects to do transparent transcodings, e.g., from Latin-1" -" to UTF-8 and back." +"You can use these objects to do transparent transcodings, e.g., from Latin-1 " +"to UTF-8 and back." msgstr "" #: ../../library/codecs.rst:847 @@ -1097,15 +1095,15 @@ msgstr "" #: ../../library/codecs.rst:854 msgid "" -"Error handling is done in the same way as defined for the stream readers and" -" writers." +"Error handling is done in the same way as defined for the stream readers and " +"writers." msgstr "" #: ../../library/codecs.rst:858 msgid "" -":class:`StreamRecoder` instances define the combined interfaces of " -":class:`StreamReader` and :class:`StreamWriter` classes. They inherit all " -"other methods and attributes from the underlying stream." +":class:`StreamRecoder` instances define the combined interfaces of :class:" +"`StreamReader` and :class:`StreamWriter` classes. They inherit all other " +"methods and attributes from the underlying stream." msgstr "" #: ../../library/codecs.rst:866 @@ -1114,15 +1112,14 @@ msgstr "" #: ../../library/codecs.rst:868 msgid "" -"Strings are stored internally as sequences of code points in range " -"``0x0``--``0x10FFFF``. (See :pep:`393` for more details about the " -"implementation.) Once a string object is used outside of CPU and memory, " -"endianness and how these arrays are stored as bytes become an issue. As with" -" other codecs, serialising a string into a sequence of bytes is known as " -"*encoding*, and recreating the string from the sequence of bytes is known as" -" *decoding*. There are a variety of different text serialisation codecs, " -"which are collectivity referred to as :term:`text encodings `." +"Strings are stored internally as sequences of code points in range ``0x0``--" +"``0x10FFFF``. (See :pep:`393` for more details about the implementation.) " +"Once a string object is used outside of CPU and memory, endianness and how " +"these arrays are stored as bytes become an issue. As with other codecs, " +"serialising a string into a sequence of bytes is known as *encoding*, and " +"recreating the string from the sequence of bytes is known as *decoding*. " +"There are a variety of different text serialisation codecs, which are " +"collectivity referred to as :term:`text encodings `." msgstr "" #: ../../library/codecs.rst:878 @@ -1152,37 +1149,37 @@ msgid "" "defined in Unicode. A simple and straightforward way that can store each " "Unicode code point, is to store each code point as four consecutive bytes. " "There are two possibilities: store the bytes in big endian or in little " -"endian order. These two encodings are called ``UTF-32-BE`` and ``UTF-32-LE``" -" respectively. Their disadvantage is that if e.g. you use ``UTF-32-BE`` on a" -" little endian machine you will always have to swap bytes on encoding and " +"endian order. These two encodings are called ``UTF-32-BE`` and ``UTF-32-LE`` " +"respectively. Their disadvantage is that if e.g. you use ``UTF-32-BE`` on a " +"little endian machine you will always have to swap bytes on encoding and " "decoding. ``UTF-32`` avoids this problem: bytes will always be in natural " "endianness. When these bytes are read by a CPU with a different endianness, " -"then bytes have to be swapped though. To be able to detect the endianness of" -" a ``UTF-16`` or ``UTF-32`` byte sequence, there's the so called BOM (\"Byte" -" Order Mark\"). This is the Unicode character ``U+FEFF``. This character can" -" be prepended to every ``UTF-16`` or ``UTF-32`` byte sequence. The byte " +"then bytes have to be swapped though. To be able to detect the endianness of " +"a ``UTF-16`` or ``UTF-32`` byte sequence, there's the so called BOM (\"Byte " +"Order Mark\"). This is the Unicode character ``U+FEFF``. This character can " +"be prepended to every ``UTF-16`` or ``UTF-32`` byte sequence. The byte " "swapped version of this character (``0xFFFE``) is an illegal character that " "may not appear in a Unicode text. So when the first character in an " "``UTF-16`` or ``UTF-32`` byte sequence appears to be a ``U+FFFE`` the bytes " -"have to be swapped on decoding. Unfortunately the character ``U+FEFF`` had a" -" second purpose as a ``ZERO WIDTH NO-BREAK SPACE``: a character that has no " +"have to be swapped on decoding. Unfortunately the character ``U+FEFF`` had a " +"second purpose as a ``ZERO WIDTH NO-BREAK SPACE``: a character that has no " "width and doesn't allow a word to be split. It can e.g. be used to give " -"hints to a ligature algorithm. With Unicode 4.0 using ``U+FEFF`` as a ``ZERO" -" WIDTH NO-BREAK SPACE`` has been deprecated (with ``U+2060`` (``WORD " +"hints to a ligature algorithm. With Unicode 4.0 using ``U+FEFF`` as a ``ZERO " +"WIDTH NO-BREAK SPACE`` has been deprecated (with ``U+2060`` (``WORD " "JOINER``) assuming this role). Nevertheless Unicode software still must be " -"able to handle ``U+FEFF`` in both roles: as a BOM it's a device to determine" -" the storage layout of the encoded bytes, and vanishes once the byte " -"sequence has been decoded into a string; as a ``ZERO WIDTH NO-BREAK SPACE`` " -"it's a normal character that will be decoded like any other." +"able to handle ``U+FEFF`` in both roles: as a BOM it's a device to determine " +"the storage layout of the encoded bytes, and vanishes once the byte sequence " +"has been decoded into a string; as a ``ZERO WIDTH NO-BREAK SPACE`` it's a " +"normal character that will be decoded like any other." msgstr "" #: ../../library/codecs.rst:919 msgid "" "There's another encoding that is able to encoding the full range of Unicode " "characters: UTF-8. UTF-8 is an 8-bit encoding, which means there are no " -"issues with byte order in UTF-8. Each byte in a UTF-8 byte sequence consists" -" of two parts: marker bits (the most significant bits) and payload bits. The" -" marker bits are a sequence of zero to four ``1`` bits followed by a ``0`` " +"issues with byte order in UTF-8. Each byte in a UTF-8 byte sequence consists " +"of two parts: marker bits (the most significant bits) and payload bits. The " +"marker bits are a sequence of zero to four ``1`` bits followed by a ``0`` " "bit. Unicode characters are encoded like this (with x being payload bits, " "which when concatenated give the Unicode character):" msgstr "" @@ -1244,14 +1241,14 @@ msgid "" "Without external information it's impossible to reliably determine which " "encoding was used for encoding a string. Each charmap encoding can decode " "any random byte sequence. However that's not possible with UTF-8, as UTF-8 " -"byte sequences have a structure that doesn't allow arbitrary byte sequences." -" To increase the reliability with which a UTF-8 encoding can be detected, " -"Microsoft invented a variant of UTF-8 (that Python 2.5 calls " -"``\"utf-8-sig\"``) for its Notepad program: Before any of the Unicode " -"characters is written to the file, a UTF-8 encoded BOM (which looks like " -"this as a byte sequence: ``0xef``, ``0xbb``, ``0xbf``) is written. As it's " -"rather improbable that any charmap encoded file starts with these byte " -"values (which would e.g. map to" +"byte sequences have a structure that doesn't allow arbitrary byte sequences. " +"To increase the reliability with which a UTF-8 encoding can be detected, " +"Microsoft invented a variant of UTF-8 (that Python 2.5 calls ``\"utf-8-sig" +"\"``) for its Notepad program: Before any of the Unicode characters is " +"written to the file, a UTF-8 encoded BOM (which looks like this as a byte " +"sequence: ``0xef``, ``0xbb``, ``0xbf``) is written. As it's rather " +"improbable that any charmap encoded file starts with these byte values " +"(which would e.g. map to" msgstr "" #: ../../library/codecs.rst:0 @@ -1268,9 +1265,9 @@ msgstr "" #: ../../library/codecs.rst:961 msgid "" -"in iso-8859-1), this increases the probability that a ``utf-8-sig`` encoding" -" can be correctly guessed from the byte sequence. So here the BOM is not " -"used to be able to determine the byte order used for generating the byte " +"in iso-8859-1), this increases the probability that a ``utf-8-sig`` encoding " +"can be correctly guessed from the byte sequence. So here the BOM is not used " +"to be able to determine the byte order used for generating the byte " "sequence, but as a signature that helps in guessing the encoding. On " "encoding the utf-8-sig codec will write ``0xef``, ``0xbb``, ``0xbf`` as the " "first three bytes to the file. On decoding ``utf-8-sig`` will skip those " @@ -1297,12 +1294,11 @@ msgstr "" #: ../../library/codecs.rst:986 msgid "" "Some common encodings can bypass the codecs lookup machinery to improve " -"performance. These optimization opportunities are only recognized by CPython" -" for a limited set of (case insensitive) aliases: utf-8, utf8, latin-1, " -"latin1, iso-8859-1, iso8859-1, mbcs (Windows only), ascii, us-ascii, utf-16," -" utf16, utf-32, utf32, and the same using underscores instead of dashes. " -"Using alternative aliases for these encodings may result in slower " -"execution." +"performance. These optimization opportunities are only recognized by CPython " +"for a limited set of (case insensitive) aliases: utf-8, utf8, latin-1, " +"latin1, iso-8859-1, iso8859-1, mbcs (Windows only), ascii, us-ascii, utf-16, " +"utf16, utf-32, utf32, and the same using underscores instead of dashes. " +"Using alternative aliases for these encodings may result in slower execution." msgstr "" #: ../../library/codecs.rst:994 @@ -2279,8 +2275,8 @@ msgstr "" #: ../../library/codecs.rst:1263 msgid "" -"The following codecs provide :class:`str` to :class:`bytes` encoding and " -":term:`bytes-like object` to :class:`str` decoding, similar to the Unicode " +"The following codecs provide :class:`str` to :class:`bytes` encoding and :" +"term:`bytes-like object` to :class:`str` decoding, similar to the Unicode " "text encodings." msgstr "" @@ -2338,8 +2334,8 @@ msgstr "" #: ../../library/codecs.rst:1294 msgid "" -"Latin-1 encoding with ``\\uXXXX`` and ``\\UXXXXXXXX`` for other code points." -" Existing backslashes are not escaped in any way. It is used in the Python " +"Latin-1 encoding with ``\\uXXXX`` and ``\\UXXXXXXXX`` for other code points. " +"Existing backslashes are not escaped in any way. It is used in the Python " "pickle protocol." msgstr "" @@ -2384,8 +2380,8 @@ msgstr "" #: ../../library/codecs.rst:1335 msgid "" -"The following codecs provide binary transforms: :term:`bytes-like object` to" -" :class:`bytes` mappings. They are not supported by :meth:`bytes.decode` " +"The following codecs provide binary transforms: :term:`bytes-like object` " +"to :class:`bytes` mappings. They are not supported by :meth:`bytes.decode` " "(which only produces :class:`str` output)." msgstr "" @@ -2414,7 +2410,7 @@ msgstr "" #: ../../library/codecs.rst:1345 msgid ":meth:`base64.encodebytes` / :meth:`base64.decodebytes`" -msgstr "" +msgstr ":meth:`base64.encodebytes` / :meth:`base64.decodebytes`" #: ../../library/codecs.rst:1356 msgid "bz2_codec" @@ -2430,7 +2426,7 @@ msgstr "" #: ../../library/codecs.rst:1356 msgid ":meth:`bz2.compress` / :meth:`bz2.decompress`" -msgstr "" +msgstr ":meth:`bz2.compress` / :meth:`bz2.decompress`" #: ../../library/codecs.rst:1359 msgid "hex_codec" @@ -2447,7 +2443,7 @@ msgstr "" #: ../../library/codecs.rst:1359 msgid ":meth:`binascii.b2a_hex` / :meth:`binascii.a2b_hex`" -msgstr "" +msgstr ":meth:`binascii.b2a_hex` / :meth:`binascii.a2b_hex`" #: ../../library/codecs.rst:1364 msgid "quopri_codec" @@ -2463,7 +2459,7 @@ msgstr "" #: ../../library/codecs.rst:1364 msgid ":meth:`quopri.encode` with ``quotetabs=True`` / :meth:`quopri.decode`" -msgstr "" +msgstr ":meth:`quopri.encode` with ``quotetabs=True`` / :meth:`quopri.decode`" #: ../../library/codecs.rst:1368 msgid "uu_codec" @@ -2479,7 +2475,7 @@ msgstr "" #: ../../library/codecs.rst:1368 msgid ":meth:`uu.encode` / :meth:`uu.decode`" -msgstr "" +msgstr ":meth:`uu.encode` / :meth:`uu.decode`" #: ../../library/codecs.rst:1371 msgid "zlib_codec" @@ -2495,7 +2491,7 @@ msgstr "" #: ../../library/codecs.rst:1371 msgid ":meth:`zlib.compress` / :meth:`zlib.decompress`" -msgstr "" +msgstr ":meth:`zlib.compress` / :meth:`zlib.decompress`" #: ../../library/codecs.rst:1375 msgid "" @@ -2518,8 +2514,8 @@ msgstr "" #: ../../library/codecs.rst:1391 msgid "" -"The following codec provides a text transform: a :class:`str` to " -":class:`str` mapping. It is not supported by :meth:`str.encode` (which only " +"The following codec provides a text transform: a :class:`str` to :class:" +"`str` mapping. It is not supported by :meth:`str.encode` (which only " "produces :class:`bytes` output)." msgstr "" @@ -2559,38 +2555,38 @@ msgstr "" #: ../../library/codecs.rst:1424 msgid "" "These RFCs together define a protocol to support non-ASCII characters in " -"domain names. A domain name containing non-ASCII characters (such as " -"``www.Alliancefrançaise.nu``) is converted into an ASCII-compatible encoding" -" (ACE, such as ``www.xn--alliancefranaise-npb.nu``). The ACE form of the " -"domain name is then used in all places where arbitrary characters are not " -"allowed by the protocol, such as DNS queries, HTTP :mailheader:`Host` " -"fields, and so on. This conversion is carried out in the application; if " -"possible invisible to the user: The application should transparently convert" -" Unicode domain labels to IDNA on the wire, and convert back ACE labels to " -"Unicode before presenting them to the user." +"domain names. A domain name containing non-ASCII characters (such as ``www." +"Alliancefrançaise.nu``) is converted into an ASCII-compatible encoding (ACE, " +"such as ``www.xn--alliancefranaise-npb.nu``). The ACE form of the domain " +"name is then used in all places where arbitrary characters are not allowed " +"by the protocol, such as DNS queries, HTTP :mailheader:`Host` fields, and so " +"on. This conversion is carried out in the application; if possible invisible " +"to the user: The application should transparently convert Unicode domain " +"labels to IDNA on the wire, and convert back ACE labels to Unicode before " +"presenting them to the user." msgstr "" #: ../../library/codecs.rst:1435 msgid "" "Python supports this conversion in several ways: the ``idna`` codec " -"performs conversion between Unicode and ACE, separating an input string into" -" labels based on the separator characters defined in :rfc:`section 3.1 of " -"RFC 3490 <3490#section-3.1>` and converting each label to ACE as required, " -"and conversely separating an input byte string into labels based on the " -"``.`` separator and converting any ACE labels found into unicode. " -"Furthermore, the :mod:`socket` module transparently converts Unicode host " -"names to ACE, so that applications need not be concerned about converting " -"host names themselves when they pass them to the socket module. On top of " -"that, modules that have host names as function parameters, such as " -":mod:`http.client` and :mod:`ftplib`, accept Unicode host names " -"(:mod:`http.client` then also transparently sends an IDNA hostname in the " -":mailheader:`Host` field if it sends that field at all)." +"performs conversion between Unicode and ACE, separating an input string into " +"labels based on the separator characters defined in :rfc:`section 3.1 of RFC " +"3490 <3490#section-3.1>` and converting each label to ACE as required, and " +"conversely separating an input byte string into labels based on the ``.`` " +"separator and converting any ACE labels found into unicode. Furthermore, " +"the :mod:`socket` module transparently converts Unicode host names to ACE, " +"so that applications need not be concerned about converting host names " +"themselves when they pass them to the socket module. On top of that, modules " +"that have host names as function parameters, such as :mod:`http.client` and :" +"mod:`ftplib`, accept Unicode host names (:mod:`http.client` then also " +"transparently sends an IDNA hostname in the :mailheader:`Host` field if it " +"sends that field at all)." msgstr "" #: ../../library/codecs.rst:1448 msgid "" -"When receiving host names from the wire (such as in reverse name lookup), no" -" automatic conversion to Unicode is performed: applications wishing to " +"When receiving host names from the wire (such as in reverse name lookup), no " +"automatic conversion to Unicode is performed: applications wishing to " "present such host names to the user should decode them to Unicode." msgstr "" @@ -2610,8 +2606,8 @@ msgstr "" #: ../../library/codecs.rst:1466 msgid "" -"Convert a label to ASCII, as specified in :rfc:`3490`. ``UseSTD3ASCIIRules``" -" is assumed to be false." +"Convert a label to ASCII, as specified in :rfc:`3490`. ``UseSTD3ASCIIRules`` " +"is assumed to be false." msgstr "" #: ../../library/codecs.rst:1472 @@ -2636,8 +2632,8 @@ msgstr "" #: ../../library/codecs.rst:1488 msgid "" -"Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used" -" to encode, and ``'ignore'`` to decode." +"Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used " +"to encode, and ``'ignore'`` to decode." msgstr "" #: ../../library/codecs.rst:1494 diff --git a/library/codeop.po b/library/codeop.po index e0b31e01e..1229e7827 100644 --- a/library/codeop.po +++ b/library/codeop.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,8 +37,8 @@ msgid "" "The :mod:`codeop` module provides utilities upon which the Python read-eval-" "print loop can be emulated, as is done in the :mod:`code` module. As a " "result, you probably don't want to use the module directly; if you want to " -"include such a loop in your program you probably want to use the :mod:`code`" -" module instead." +"include such a loop in your program you probably want to use the :mod:`code` " +"module instead." msgstr "" #: ../../library/codeop.rst:20 @@ -57,8 +59,8 @@ msgstr "" #: ../../library/codeop.rst:28 msgid "" -"The :mod:`codeop` module provides a way of doing each of these things, and a" -" way of doing them both." +"The :mod:`codeop` module provides a way of doing each of these things, and a " +"way of doing them both." msgstr "" #: ../../library/codeop.rst:31 @@ -76,15 +78,15 @@ msgstr "" #: ../../library/codeop.rst:41 msgid "" -"If there is a problem with *source*, an exception will be raised. " -":exc:`SyntaxError` is raised if there is invalid Python syntax, and " -":exc:`OverflowError` or :exc:`ValueError` if there is an invalid literal." +"If there is a problem with *source*, an exception will be raised. :exc:" +"`SyntaxError` is raised if there is invalid Python syntax, and :exc:" +"`OverflowError` or :exc:`ValueError` if there is an invalid literal." msgstr "" #: ../../library/codeop.rst:45 msgid "" -"The *symbol* argument determines whether *source* is compiled as a statement" -" (``'single'``, the default) or as an :term:`expression` (``'eval'``). Any " +"The *symbol* argument determines whether *source* is compiled as a statement " +"(``'single'``, the default) or as an :term:`expression` (``'eval'``). Any " "other value will cause :exc:`ValueError` to be raised." msgstr "" @@ -92,25 +94,24 @@ msgstr "" msgid "" "It is possible (but not likely) that the parser stops parsing with a " "successful outcome before reaching the end of the source; in this case, " -"trailing symbols may be ignored instead of causing an error. For example, a" -" backslash followed by two newlines may be followed by arbitrary garbage. " +"trailing symbols may be ignored instead of causing an error. For example, a " +"backslash followed by two newlines may be followed by arbitrary garbage. " "This will be fixed once the API for the parser is better." msgstr "" #: ../../library/codeop.rst:60 msgid "" -"Instances of this class have :meth:`__call__` methods identical in signature" -" to the built-in function :func:`compile`, but with the difference that if " -"the instance compiles program text containing a :mod:`__future__` statement," -" the instance 'remembers' and compiles all subsequent program texts with the" -" statement in force." +"Instances of this class have :meth:`__call__` methods identical in signature " +"to the built-in function :func:`compile`, but with the difference that if " +"the instance compiles program text containing a :mod:`__future__` statement, " +"the instance 'remembers' and compiles all subsequent program texts with the " +"statement in force." msgstr "" #: ../../library/codeop.rst:69 msgid "" -"Instances of this class have :meth:`__call__` methods identical in signature" -" to :func:`compile_command`; the difference is that if the instance compiles" -" program text containing a ``__future__`` statement, the instance " -"'remembers' and compiles all subsequent program texts with the statement in " -"force." +"Instances of this class have :meth:`__call__` methods identical in signature " +"to :func:`compile_command`; the difference is that if the instance compiles " +"program text containing a ``__future__`` statement, the instance 'remembers' " +"and compiles all subsequent program texts with the statement in force." msgstr "" diff --git a/library/collections.abc.po b/library/collections.abc.po index fc9c29260..f67a93725 100644 --- a/library/collections.abc.po +++ b/library/collections.abc.po @@ -1,20 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# Vinícius Muniz de Melo , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinícius Muniz de Melo , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,11 +26,13 @@ msgstr "" #: ../../library/collections.abc.rst:2 msgid ":mod:`collections.abc` --- Abstract Base Classes for Containers" -msgstr "" +msgstr ":mod:`collections.abc` --- Classes Base Abstratas para Contêineres" #: ../../library/collections.abc.rst:10 msgid "Formerly, this module was part of the :mod:`collections` module." msgstr "" +"Formerly, this module was part of the :mod:`collections` module.\n" +"Anteriormente, esse módulo fazia parte do módelu :mod:`collections`." #: ../../library/collections.abc.rst:13 msgid "**Source code:** :source:`Lib/_collections_abc.py`" @@ -39,291 +44,310 @@ msgid "" "that can be used to test whether a class provides a particular interface; " "for example, whether it is hashable or whether it is a mapping." msgstr "" +"Esse módulo fornece :term:`classes base abstratas ` que " +"podem ser usadas para testar se uma classe fornece uma interface específica; " +"por exemplo, se é hashable ou se é um mapeamento." #: ../../library/collections.abc.rst:31 msgid "Collections Abstract Base Classes" -msgstr "" +msgstr "Coleções Abstratas Classes Base " #: ../../library/collections.abc.rst:33 msgid "" "The collections module offers the following :term:`ABCs `:" msgstr "" +"O módulo de coleções oferece o seguinte :term:`ABCs `:" #: ../../library/collections.abc.rst:38 msgid "ABC" -msgstr "" +msgstr "ABC" #: ../../library/collections.abc.rst:38 msgid "Inherits from" -msgstr "" +msgstr "Herda de" #: ../../library/collections.abc.rst:38 msgid "Abstract Methods" -msgstr "" +msgstr "Métodos Abstratos" #: ../../library/collections.abc.rst:38 msgid "Mixin Methods" -msgstr "" +msgstr "Métodos Mixin" #: ../../library/collections.abc.rst:40 msgid ":class:`Container`" -msgstr "" +msgstr ":class:`Container`" #: ../../library/collections.abc.rst:40 msgid "``__contains__``" -msgstr "" +msgstr "``__contains__``" #: ../../library/collections.abc.rst:41 msgid ":class:`Hashable`" -msgstr "" +msgstr ":class:`Hashable`" #: ../../library/collections.abc.rst:41 msgid "``__hash__``" -msgstr "" +msgstr "``__hash__``" #: ../../library/collections.abc.rst:42 ../../library/collections.abc.rst:43 #: ../../library/collections.abc.rst:44 msgid ":class:`Iterable`" -msgstr "" +msgstr ":class:`Iterable`" #: ../../library/collections.abc.rst:42 ../../library/collections.abc.rst:43 msgid "``__iter__``" -msgstr "" +msgstr "``__iter__``" #: ../../library/collections.abc.rst:43 ../../library/collections.abc.rst:45 msgid ":class:`Iterator`" -msgstr "" +msgstr ":class:`Iterator`" #: ../../library/collections.abc.rst:43 msgid "``__next__``" -msgstr "" +msgstr "``__next__``" #: ../../library/collections.abc.rst:44 msgid ":class:`Reversible`" -msgstr "" +msgstr ":class:`Reversible`" #: ../../library/collections.abc.rst:44 msgid "``__reversed__``" -msgstr "" +msgstr "``__reversed__``" #: ../../library/collections.abc.rst:45 msgid ":class:`Generator`" -msgstr "" +msgstr ":class:`Generator`" #: ../../library/collections.abc.rst:45 ../../library/collections.abc.rst:93 msgid "``send``, ``throw``" -msgstr "" +msgstr "``send``, ``throw``" #: ../../library/collections.abc.rst:45 msgid "``close``, ``__iter__``, ``__next__``" -msgstr "" +msgstr "``close``, ``__iter__``, ``__next__``" #: ../../library/collections.abc.rst:46 ../../library/collections.abc.rst:85 msgid ":class:`Sized`" -msgstr "" +msgstr ":class:`Sized`" #: ../../library/collections.abc.rst:46 ../../library/collections.abc.rst:85 msgid "``__len__``" -msgstr "" +msgstr "``__len__``" #: ../../library/collections.abc.rst:47 msgid ":class:`Callable`" -msgstr "" +msgstr ":class:`Callable`" #: ../../library/collections.abc.rst:47 msgid "``__call__``" -msgstr "" +msgstr "``__call__``" #: ../../library/collections.abc.rst:48 ../../library/collections.abc.rst:64 #: ../../library/collections.abc.rst:74 msgid ":class:`Collection`" -msgstr "" +msgstr ":class:`Collection`" #: ../../library/collections.abc.rst:48 msgid ":class:`Sized`, :class:`Iterable`, :class:`Container`" -msgstr "" +msgstr ":class:`Sized`, :class:`Iterable`, :class:`Container`" #: ../../library/collections.abc.rst:48 ../../library/collections.abc.rst:64 msgid "``__contains__``, ``__iter__``, ``__len__``" -msgstr "" +msgstr "``__contains__``, ``__iter__``, ``__len__``" #: ../../library/collections.abc.rst:52 ../../library/collections.abc.rst:55 #: ../../library/collections.abc.rst:61 msgid ":class:`Sequence`" -msgstr "" +msgstr ":class:`Sequence`" #: ../../library/collections.abc.rst:52 msgid ":class:`Reversible`, :class:`Collection`" -msgstr "" +msgstr ":class:`Reversible`, :class:`Collection`" #: ../../library/collections.abc.rst:52 ../../library/collections.abc.rst:61 msgid "``__getitem__``, ``__len__``" -msgstr "" +msgstr "``__getitem__``, ``__len__``" #: ../../library/collections.abc.rst:52 msgid "" "``__contains__``, ``__iter__``, ``__reversed__``, ``index``, and ``count``" msgstr "" +"``__contains__``, ``__iter__``, ``__reversed__``, ``index``, and ``count``" #: ../../library/collections.abc.rst:55 msgid ":class:`MutableSequence`" -msgstr "" +msgstr ":class:`MutableSequence`" #: ../../library/collections.abc.rst:55 msgid "" "``__getitem__``, ``__setitem__``, ``__delitem__``, ``__len__``, ``insert``" msgstr "" +"``__getitem__``, ``__setitem__``, ``__delitem__``, ``__len__``, ``insert``" #: ../../library/collections.abc.rst:55 msgid "" -"Inherited :class:`Sequence` methods and ``append``, ``reverse``, ``extend``," -" ``pop``, ``remove``, and ``__iadd__``" +"Inherited :class:`Sequence` methods and ``append``, ``reverse``, ``extend``, " +"``pop``, ``remove``, and ``__iadd__``" msgstr "" +"Herda os métodos da :class:`Sequence` e ``append``, ``reverse``, ``extend``, " +"``pop``, ``remove``, e ``__iadd__``" #: ../../library/collections.abc.rst:61 msgid ":class:`ByteString`" -msgstr "" +msgstr ":class:`ByteString`" #: ../../library/collections.abc.rst:61 msgid "Inherited :class:`Sequence` methods" -msgstr "" +msgstr "Herdado :class:`Sequence` métodos" #: ../../library/collections.abc.rst:64 ../../library/collections.abc.rst:68 msgid ":class:`Set`" -msgstr "" +msgstr ":class:`Set`" #: ../../library/collections.abc.rst:64 msgid "" "``__le__``, ``__lt__``, ``__eq__``, ``__ne__``, ``__gt__``, ``__ge__``, " "``__and__``, ``__or__``, ``__sub__``, ``__xor__``, and ``isdisjoint``" msgstr "" +"``__le__``, ``__lt__``, ``__eq__``, ``__ne__``, ``__gt__``, ``__ge__``, " +"``__and__``, ``__or__``, ``__sub__``, ``__xor__``, e ``isdisjoint``" #: ../../library/collections.abc.rst:68 msgid ":class:`MutableSet`" -msgstr "" +msgstr ":class:`MutableSet`" #: ../../library/collections.abc.rst:68 msgid "``__contains__``, ``__iter__``, ``__len__``, ``add``, ``discard``" -msgstr "" +msgstr "``__contains__``, ``__iter__``, ``__len__``, ``add``, ``discard``" #: ../../library/collections.abc.rst:68 msgid "" "Inherited :class:`Set` methods and ``clear``, ``pop``, ``remove``, " "``__ior__``, ``__iand__``, ``__ixor__``, and ``__isub__``" msgstr "" +"Herdado :class:`Set` métodos e ``clear``, ``pop``, ``remove``, ``__ior__``, " +"``__iand__``, ``__ixor__``, e ``__isub__``" #: ../../library/collections.abc.rst:74 ../../library/collections.abc.rst:78 msgid ":class:`Mapping`" -msgstr "" +msgstr ":class:`Mapping`" #: ../../library/collections.abc.rst:74 msgid "``__getitem__``, ``__iter__``, ``__len__``" -msgstr "" +msgstr "``__getitem__``, ``__iter__``, ``__len__``" #: ../../library/collections.abc.rst:74 msgid "" "``__contains__``, ``keys``, ``items``, ``values``, ``get``, ``__eq__``, and " "``__ne__``" msgstr "" +"``__contains__``, ``keys``, ``items``, ``values``, ``get``, ``__eq__``, e " +"``__ne__``" #: ../../library/collections.abc.rst:78 msgid ":class:`MutableMapping`" -msgstr "" +msgstr ":class:`MutableMapping`" #: ../../library/collections.abc.rst:78 msgid "" "``__getitem__``, ``__setitem__``, ``__delitem__``, ``__iter__``, ``__len__``" msgstr "" +"``__getitem__``, ``__setitem__``, ``__delitem__``, ``__iter__``, ``__len__``" #: ../../library/collections.abc.rst:78 msgid "" "Inherited :class:`Mapping` methods and ``pop``, ``popitem``, ``clear``, " "``update``, and ``setdefault``" msgstr "" +"Herdado :class:`Mapping` métodos e ``pop``, ``popitem``, ``clear``, " +"``update``, e ``setdefault``" #: ../../library/collections.abc.rst:85 msgid ":class:`MappingView`" -msgstr "" +msgstr ":class:`MappingView`" #: ../../library/collections.abc.rst:86 msgid ":class:`ItemsView`" -msgstr "" +msgstr ":class:`ItemsView`" #: ../../library/collections.abc.rst:86 ../../library/collections.abc.rst:88 msgid ":class:`MappingView`, :class:`Set`" -msgstr "" +msgstr ":class:`MappingView`, :class:`Set`" #: ../../library/collections.abc.rst:86 ../../library/collections.abc.rst:88 #: ../../library/collections.abc.rst:90 msgid "``__contains__``, ``__iter__``" -msgstr "" +msgstr "``__contains__``, ``__iter__``" #: ../../library/collections.abc.rst:88 msgid ":class:`KeysView`" -msgstr "" +msgstr ":class:`KeysView`" #: ../../library/collections.abc.rst:90 msgid ":class:`ValuesView`" -msgstr "" +msgstr ":class:`ValuesView`" #: ../../library/collections.abc.rst:90 msgid ":class:`MappingView`, :class:`Collection`" -msgstr "" +msgstr ":class:`MappingView`, :class:`Collection`" #: ../../library/collections.abc.rst:92 ../../library/collections.abc.rst:93 msgid ":class:`Awaitable`" -msgstr "" +msgstr ":class:`Awaitable`" #: ../../library/collections.abc.rst:92 msgid "``__await__``" -msgstr "" +msgstr "``__await__``" #: ../../library/collections.abc.rst:93 msgid ":class:`Coroutine`" -msgstr "" +msgstr ":class:`Coroutine`" #: ../../library/collections.abc.rst:93 msgid "``close``" -msgstr "" +msgstr "``close``" #: ../../library/collections.abc.rst:94 ../../library/collections.abc.rst:95 msgid ":class:`AsyncIterable`" -msgstr "" +msgstr ":class:`AsyncIterable`" #: ../../library/collections.abc.rst:94 ../../library/collections.abc.rst:95 msgid "``__aiter__``" -msgstr "" +msgstr "``__aiter__``" #: ../../library/collections.abc.rst:95 ../../library/collections.abc.rst:96 msgid ":class:`AsyncIterator`" -msgstr "" +msgstr ":class:`AsyncIterator`" #: ../../library/collections.abc.rst:95 msgid "``__anext__``" -msgstr "" +msgstr "``__anext__``" #: ../../library/collections.abc.rst:96 msgid ":class:`AsyncGenerator`" -msgstr "" +msgstr ":class:`AsyncGenerator`" #: ../../library/collections.abc.rst:96 msgid "``asend``, ``athrow``" -msgstr "" +msgstr "``asend``, ``athrow``" #: ../../library/collections.abc.rst:96 msgid "``aclose``, ``__aiter__``, ``__anext__``" -msgstr "" +msgstr "``aclose``, ``__aiter__``, ``__anext__``" #: ../../library/collections.abc.rst:105 msgid "" -"ABCs for classes that provide respectively the methods :meth:`__contains__`," -" :meth:`__hash__`, :meth:`__len__`, and :meth:`__call__`." +"ABCs for classes that provide respectively the methods :meth:" +"`__contains__`, :meth:`__hash__`, :meth:`__len__`, and :meth:`__call__`." msgstr "" +"ABCs para classes que fornecem respectivamente os métodos :meth:" +"`__contains__`, :meth:`__hash__`, :meth:`__len__`, e :meth:`__call__`." #: ../../library/collections.abc.rst:110 msgid "ABC for classes that provide the :meth:`__iter__` method." -msgstr "" +msgstr "ABC para classes que fornecem o método :meth:`__iter__`." #: ../../library/collections.abc.rst:112 msgid "" @@ -333,62 +357,84 @@ msgid "" "only reliable way to determine whether an object is :term:`iterable` is to " "call ``iter(obj)``." msgstr "" +"A verificação ``isinstance(obj, Iterable)`` detecta classes que são " +"registradas como :class:`Iterable` ou que possuem um método :meth:" +"`__iter__`, mas que não detecta classes que iteram com o método :meth:" +"`__getitem__`. A única maneira confiável de determinar se um objeto é :term:" +"`iterable` é chamar ``iter(obj)``." #: ../../library/collections.abc.rst:120 msgid "ABC for sized iterable container classes." -msgstr "" +msgstr "ABC para classes de contêineres iteráveis de tamanho." #: ../../library/collections.abc.rst:126 msgid "" -"ABC for classes that provide the :meth:`~iterator.__iter__` and " -":meth:`~iterator.__next__` methods. See also the definition of " -":term:`iterator`." +"ABC for classes that provide the :meth:`~iterator.__iter__` and :meth:" +"`~iterator.__next__` methods. See also the definition of :term:`iterator`." msgstr "" +"ABC para classes que fornecem os métodos :meth:`~iterator.__iter__` e " +"métodos :meth:`~iterator.__next__`. Veja também a definição de :term:" +"`iterator`." #: ../../library/collections.abc.rst:132 msgid "" "ABC for iterable classes that also provide the :meth:`__reversed__` method." msgstr "" +"ABC para classes iteráveis que também fornecem o método :meth:`__reversed__`." #: ../../library/collections.abc.rst:139 msgid "" "ABC for generator classes that implement the protocol defined in :pep:`342` " -"that extends iterators with the :meth:`~generator.send`, " -":meth:`~generator.throw` and :meth:`~generator.close` methods. See also the " -"definition of :term:`generator`." +"that extends iterators with the :meth:`~generator.send`, :meth:`~generator." +"throw` and :meth:`~generator.close` methods. See also the definition of :" +"term:`generator`." msgstr "" +"ABC para classes geradores que implementam o protocolo definido em :pep:" +"`342` que estende os iteradores com os métodos :meth:`~generator.send`, :" +"meth:`~generator.throw` e :meth:`~generator.close`. Veja também a definição " +"de :term:`generator`." #: ../../library/collections.abc.rst:150 msgid "ABCs for read-only and mutable :term:`sequences `." -msgstr "" +msgstr "ABCs para sequências somente de leitura e mutável :term:` `." #: ../../library/collections.abc.rst:152 msgid "" -"Implementation note: Some of the mixin methods, such as :meth:`__iter__`, " -":meth:`__reversed__` and :meth:`index`, make repeated calls to the " +"Implementation note: Some of the mixin methods, such as :meth:`__iter__`, :" +"meth:`__reversed__` and :meth:`index`, make repeated calls to the " "underlying :meth:`__getitem__` method. Consequently, if :meth:`__getitem__` " "is implemented with constant access speed, the mixin methods will have " -"linear performance; however, if the underlying method is linear (as it would" -" be with a linked list), the mixins will have quadratic performance and will" -" likely need to be overridden." -msgstr "" +"linear performance; however, if the underlying method is linear (as it would " +"be with a linked list), the mixins will have quadratic performance and will " +"likely need to be overridden." +msgstr "" +"Nota de implementação: Alguns dos métodos mixin, como :meth:`__iter__`, :" +"meth:`__reversed__` e :meth:`index`, fazem chamadas repetidas para o método " +"subjacente :meth:`__getitem__`. Consequentemente, se :meth:`__getitem__` for " +"implementado com velocidade de acesso constante, os métodos mixin terão " +"desempenho linear; no entanto se o método subjacente for linear (como seria " +"com uma lista encadeada), os mixins terão desempenho quadrático e " +"provavelmente precisarão ser substituídos." #: ../../library/collections.abc.rst:161 msgid "The index() method added support for *stop* and *start* arguments." msgstr "" +"O método index() adicionou suporte para os argumentos *stop* e *start*." #: ../../library/collections.abc.rst:168 msgid "ABCs for read-only and mutable sets." -msgstr "" +msgstr "ABCs para sets somente leitura e mutável." #: ../../library/collections.abc.rst:173 msgid "ABCs for read-only and mutable :term:`mappings `." -msgstr "" +msgstr "ABCs para somente leitura e mutável :term:`mappings `." #: ../../library/collections.abc.rst:180 msgid "" "ABCs for mapping, items, keys, and values :term:`views `." msgstr "" +"ABCs para mapeamento, itens, chaves e valores :term:`views `." #: ../../library/collections.abc.rst:184 msgid "" @@ -396,90 +442,134 @@ msgid "" "expressions. Custom implementations must provide the :meth:`__await__` " "method." msgstr "" +"ABC para objetos :term:`awaitable`, que podem ser usados em expressões de :" +"keyword:`await`. Implementações personalizadas devem fornecer o método :meth:" +"`__await__` method." #: ../../library/collections.abc.rst:188 msgid "" -":term:`Coroutine` objects and instances of the " -":class:`~collections.abc.Coroutine` ABC are all instances of this ABC." +":term:`Coroutine` objects and instances of the :class:`~collections.abc." +"Coroutine` ABC are all instances of this ABC." msgstr "" +":term:`Coroutine` objetos e instâncias do :class:`~collections.abc." +"Coroutine` ABC são todas instâncias dessa ABC." #: ../../library/collections.abc.rst:192 msgid "" -"In CPython, generator-based coroutines (generators decorated with " -":func:`types.coroutine` or :func:`asyncio.coroutine`) are *awaitables*, even" -" though they do not have an :meth:`__await__` method. Using " -"``isinstance(gencoro, Awaitable)`` for them will return ``False``. Use " -":func:`inspect.isawaitable` to detect them." +"In CPython, generator-based coroutines (generators decorated with :func:" +"`types.coroutine` or :func:`asyncio.coroutine`) are *awaitables*, even " +"though they do not have an :meth:`__await__` method. Using " +"``isinstance(gencoro, Awaitable)`` for them will return ``False``. Use :func:" +"`inspect.isawaitable` to detect them." msgstr "" +"No CPython, as corotinas baseados em gerador (geradoras decorados com :func:" +"`types.coroutine` ou :func:`asyncio.coroutine`) são *awaitables*, embora não " +"possuam o método :meth:`__await__`. Usar ``isinstance(gencoro, Awaitable)`` " +"para eles retornará ``False``. Use :func:`inspect.isawaitable` para detectá-" +"los." #: ../../library/collections.abc.rst:202 msgid "" "ABC for coroutine compatible classes. These implement the following " -"methods, defined in :ref:`coroutine-objects`: :meth:`~coroutine.send`, " -":meth:`~coroutine.throw`, and :meth:`~coroutine.close`. Custom " -"implementations must also implement :meth:`__await__`. All " -":class:`Coroutine` instances are also instances of :class:`Awaitable`. See " -"also the definition of :term:`coroutine`." -msgstr "" +"methods, defined in :ref:`coroutine-objects`: :meth:`~coroutine.send`, :meth:" +"`~coroutine.throw`, and :meth:`~coroutine.close`. Custom implementations " +"must also implement :meth:`__await__`. All :class:`Coroutine` instances are " +"also instances of :class:`Awaitable`. See also the definition of :term:" +"`coroutine`." +msgstr "" +"ABC para classes compatíveis com coroutine. Eles implementam os seguintes " +"métodos, definidos em :ref:`coroutine-objects`: :meth:`~coroutine.send`, :" +"meth:`~coroutine.throw`, e :meth:`~coroutine.close`. Implementações " +"personalizadas também devem implementar :meth:`__await__`. Todas as " +"instâncias :class:`Coroutine` também são instâncias de :class:`Awaitable`. " +"Veja também a definição de :term:`coroutine`." #: ../../library/collections.abc.rst:210 msgid "" -"In CPython, generator-based coroutines (generators decorated with " -":func:`types.coroutine` or :func:`asyncio.coroutine`) are *awaitables*, even" -" though they do not have an :meth:`__await__` method. Using " -"``isinstance(gencoro, Coroutine)`` for them will return ``False``. Use " -":func:`inspect.isawaitable` to detect them." +"In CPython, generator-based coroutines (generators decorated with :func:" +"`types.coroutine` or :func:`asyncio.coroutine`) are *awaitables*, even " +"though they do not have an :meth:`__await__` method. Using " +"``isinstance(gencoro, Coroutine)`` for them will return ``False``. Use :func:" +"`inspect.isawaitable` to detect them." msgstr "" +"Em CPython, as corotinas baseadas em gerador (geradores decorados com :func:" +"`types.coroutine` ou :func:`asyncio.coroutine`) são *awaitables*, embora não " +"possuam o método :meth:`__await__`. Usar ``isinstance(gencoro, Coroutine)`` " +"para eles retornará ``False``. Use :func:`inspect.isawaitable` para detectá-" +"los." #: ../../library/collections.abc.rst:220 msgid "" "ABC for classes that provide ``__aiter__`` method. See also the definition " "of :term:`asynchronous iterable`." msgstr "" +"ABC para classes que fornecem o método ``__aiter__``. Veja também a " +"definição de :term:`asynchronous iterable`." #: ../../library/collections.abc.rst:227 msgid "" "ABC for classes that provide ``__aiter__`` and ``__anext__`` methods. See " "also the definition of :term:`asynchronous iterator`." msgstr "" +"ABC para classes que fornecem os métodos ``__aiter__`` e ``__anext__``. " +"Veja também a definição de :term:`asynchronous iterator`." #: ../../library/collections.abc.rst:234 msgid "" "ABC for asynchronous generator classes that implement the protocol defined " "in :pep:`525` and :pep:`492`." msgstr "" +"ABC para classes de gerador assíncrono que implementam o protocolo definido " +"em :pep:`525` e :pep:`492`." #: ../../library/collections.abc.rst:240 msgid "" "These ABCs allow us to ask classes or instances if they provide particular " "functionality, for example::" msgstr "" +"Esses ABCs nos permitem perguntar a classes ou instâncias se elas fornecem " +"funcionalidades específicas, por exemplo::" #: ../../library/collections.abc.rst:247 msgid "" -"Several of the ABCs are also useful as mixins that make it easier to develop" -" classes supporting container APIs. For example, to write a class " -"supporting the full :class:`Set` API, it is only necessary to supply the " -"three underlying abstract methods: :meth:`__contains__`, :meth:`__iter__`, " -"and :meth:`__len__`. The ABC supplies the remaining methods such as " -":meth:`__and__` and :meth:`isdisjoint`::" +"Several of the ABCs are also useful as mixins that make it easier to develop " +"classes supporting container APIs. For example, to write a class supporting " +"the full :class:`Set` API, it is only necessary to supply the three " +"underlying abstract methods: :meth:`__contains__`, :meth:`__iter__`, and :" +"meth:`__len__`. The ABC supplies the remaining methods such as :meth:" +"`__and__` and :meth:`isdisjoint`::" msgstr "" +"Vários ABCS também são úteis como mixins que facilitam o desenvolvimento de " +"classes que suportam APIs de contêiner. Por exemplo, para escrever uma " +"classe que suporte toda a API :class:`Set` , é necessário fornecer apenas os " +"três métodos abstratos subjacentes: :meth:`__contains__`, :meth:`__iter__`, " +"e :meth:`__len__`. O ABC fornece os métodos restantes, como :meth:`__and__` " +"e :meth:`isdisjoint`::" #: ../../library/collections.abc.rst:276 msgid "Notes on using :class:`Set` and :class:`MutableSet` as a mixin:" -msgstr "" +msgstr "Notas sobre o uso de :class:`Set` e :class:`MutableSet` como um mixin:" #: ../../library/collections.abc.rst:279 msgid "" "Since some set operations create new sets, the default mixin methods need a " "way to create new instances from an iterable. The class constructor is " "assumed to have a signature in the form ``ClassName(iterable)``. That " -"assumption is factored-out to an internal classmethod called " -":meth:`_from_iterable` which calls ``cls(iterable)`` to produce a new set. " -"If the :class:`Set` mixin is being used in a class with a different " -"constructor signature, you will need to override :meth:`_from_iterable` with" -" a classmethod that can construct new instances from an iterable argument." -msgstr "" +"assumption is factored-out to an internal classmethod called :meth:" +"`_from_iterable` which calls ``cls(iterable)`` to produce a new set. If the :" +"class:`Set` mixin is being used in a class with a different constructor " +"signature, you will need to override :meth:`_from_iterable` with a " +"classmethod that can construct new instances from an iterable argument." +msgstr "" +"Como algumas operações de conjunto criam novos conjuntos, os métodos de " +"mixin padrão precisam de uma maneira de criar novas instâncias a partir de " +"uma iterável. Supõe-se que a classe construtor tenha uma assinatura no " +"formato ``ClassName(iterable)``. Essa suposição é fatorada em um método de " +"classe interno chamado: :meth:`_from_iterable` que chama ``cls(iterable)`` " +"para produzir um novo conjunto. Se o mixin :class:`Set` estiver sendo usado " +"em uma classe com uma assinatura de construtor diferente, você precisará " +"substituir :meth:`_from_iterable` por um método de classe que possa " +"construir novas instâncias a partir de um argumento iterável." #: ../../library/collections.abc.rst:290 msgid "" @@ -487,22 +577,33 @@ msgid "" "fixed), redefine :meth:`__le__` and :meth:`__ge__`, then the other " "operations will automatically follow suit." msgstr "" +"Para substituir as comparações (presumivelmente para velocidade, já que a " +"semântica é fixa), redefina :meth:`__le__` e :meth:`__ge__`, então as outras " +"operações seguirão o exemplo automaticamente." #: ../../library/collections.abc.rst:295 msgid "" "The :class:`Set` mixin provides a :meth:`_hash` method to compute a hash " "value for the set; however, :meth:`__hash__` is not defined because not all " "sets are hashable or immutable. To add set hashability using mixins, " -"inherit from both :meth:`Set` and :meth:`Hashable`, then define ``__hash__ =" -" Set._hash``." +"inherit from both :meth:`Set` and :meth:`Hashable`, then define ``__hash__ = " +"Set._hash``." msgstr "" +"O mixin :class:`Set` fornece um método :meth:`_hash` para calcular um valor " +"de hash para o conjunto; no entanto, :meth:`__hash__` não pe definido porque " +"nem todos os conjuntos são encadeados ou imutáveis. Para adicionar " +"capacidade de encadeamento em conjuntos usando mixin, herde de ambos :meth:" +"`Set` e :meth:`Hashable`, e então defina ``__hash__ = Set._hash``." #: ../../library/collections.abc.rst:303 msgid "" "`OrderedSet recipe `_ for an " "example built on :class:`MutableSet`." msgstr "" +"`OrderedSet receita `_ para um " +"exemplo baseado em :class:`MutableSet`." #: ../../library/collections.abc.rst:306 msgid "For more about ABCs, see the :mod:`abc` module and :pep:`3119`." msgstr "" +"Para mais informações sobre ABCs, consulte o módulo :mod:`abc` e :pep:`3119`." diff --git a/library/collections.po b/library/collections.po index 5b68bfbfd..ac81aeaf3 100644 --- a/library/collections.po +++ b/library/collections.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-10 03:44+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,12 +36,12 @@ msgstr "**Source code:** :source:`Lib/collections/__init__.py`" #: ../../library/collections.rst:20 msgid "" "This module implements specialized container datatypes providing " -"alternatives to Python's general purpose built-in containers, :class:`dict`," -" :class:`list`, :class:`set`, and :class:`tuple`." +"alternatives to Python's general purpose built-in containers, :class:" +"`dict`, :class:`list`, :class:`set`, and :class:`tuple`." msgstr "" "Este módulo implementa tipos de dados de contêiner especializados que " -"fornecem alternativas aos contêineres integrados de uso geral do Python, " -":class:`dict`, :class:`list`, :class:`set`, and :class:`tuple`." +"fornecem alternativas aos contêineres integrados de uso geral do Python, :" +"class:`dict`, :class:`list`, :class:`set`, and :class:`tuple`." #: ../../library/collections.rst:25 msgid ":func:`namedtuple`" @@ -81,8 +83,7 @@ msgstr ":class:`OrderedDict`" #: ../../library/collections.rst:29 msgid "dict subclass that remembers the order entries were added" -msgstr "" -"Subclasse de Dict que lembra a ordem que as entradas foram adicionadas" +msgstr "Subclasse de Dict que lembra a ordem que as entradas foram adicionadas" #: ../../library/collections.rst:30 msgid ":class:`defaultdict`" @@ -101,8 +102,8 @@ msgstr ":class:`UserDict`" #: ../../library/collections.rst:31 msgid "wrapper around dictionary objects for easier dict subclassing" msgstr "" -"Envoltório em torno de objetos de dictionary para uma subclasse de dict mais" -" fácil" +"Envoltório em torno de objetos de dictionary para uma subclasse de dict mais " +"fácil" #: ../../library/collections.rst:32 msgid ":class:`UserList`" @@ -123,8 +124,8 @@ msgstr "Invólucro em torno de objetos strings para uma subclasse mais fácil" #: ../../library/collections.rst:41 msgid "" -"Moved :ref:`collections-abstract-base-classes` to the :mod:`collections.abc`" -" module. For backwards compatibility, they continue to be visible in this " +"Moved :ref:`collections-abstract-base-classes` to the :mod:`collections.abc` " +"module. For backwards compatibility, they continue to be visible in this " "module through Python 3.8." msgstr "" @@ -139,9 +140,9 @@ msgid "" "than creating a new dictionary and running multiple :meth:`~dict.update` " "calls." msgstr "" -"Uma classe :class:`ChainMap` é fornecido para ligar rapidamente uma série de" -" mapeamentos para que eles possam ser tratados como uma única unidade. " -"Muitas vezes é muito mais rápido do que criar um novo dicionário e executar " +"Uma classe :class:`ChainMap` é fornecido para ligar rapidamente uma série de " +"mapeamentos para que eles possam ser tratados como uma única unidade. Muitas " +"vezes é muito mais rápido do que criar um novo dicionário e executar " "múltiplas chamadas :meth:`~dict.update` " #: ../../library/collections.rst:51 @@ -200,21 +201,21 @@ msgstr "" #: ../../library/collections.rst:75 msgid "" -"A user updateable list of mappings. The list is ordered from first-searched" -" to last-searched. It is the only stored state and can be modified to " -"change which mappings are searched. The list should always contain at least" -" one mapping." +"A user updateable list of mappings. The list is ordered from first-searched " +"to last-searched. It is the only stored state and can be modified to change " +"which mappings are searched. The list should always contain at least one " +"mapping." msgstr "" -"Uma lista de mapeamentos atualizáveis ​​pelo usuário. A lista é ordenada " -"desde o primeiro pesquisado até a última pesquisado. É o único estado " -"armazenado e pode ser modificado para alterar quais mapeamentos são " -"pesquisados. A lista deve sempre conter pelo menos um mapeamento." +"Uma lista de mapeamentos atualizáveis ​​pelo usuário. A lista é ordenada desde " +"o primeiro pesquisado até a última pesquisado. É o único estado armazenado e " +"pode ser modificado para alterar quais mapeamentos são pesquisados. A lista " +"deve sempre conter pelo menos um mapeamento." #: ../../library/collections.rst:82 msgid "" "Returns a new :class:`ChainMap` containing a new map followed by all of the " -"maps in the current instance. If ``m`` is specified, it becomes the new map" -" at the front of the list of mappings; if not specified, an empty dict is " +"maps in the current instance. If ``m`` is specified, it becomes the new map " +"at the front of the list of mappings; if not specified, an empty dict is " "used, so that a call to ``d.new_child()`` is equivalent to: ``ChainMap({}, " "*d.maps)``. This method is used for creating subcontexts that can be " "updated without altering values in any of the parent mappings." @@ -232,18 +233,18 @@ msgstr "O parâmetro opcional \"m\" foi adicionado." #: ../../library/collections.rst:95 msgid "" -"Property returning a new :class:`ChainMap` containing all of the maps in the" -" current instance except the first one. This is useful for skipping the " -"first map in the search. Use cases are similar to those for the " -":keyword:`nonlocal` keyword used in :term:`nested scopes `. " -"The use cases also parallel those for the built-in :func:`super` function. " -"A reference to ``d.parents`` is equivalent to: ``ChainMap(*d.maps[1:])``." +"Property returning a new :class:`ChainMap` containing all of the maps in the " +"current instance except the first one. This is useful for skipping the " +"first map in the search. Use cases are similar to those for the :keyword:" +"`nonlocal` keyword used in :term:`nested scopes `. The use " +"cases also parallel those for the built-in :func:`super` function. A " +"reference to ``d.parents`` is equivalent to: ``ChainMap(*d.maps[1:])``." msgstr "" #: ../../library/collections.rst:103 msgid "" -"Note, the iteration order of a :class:`ChainMap()` is determined by scanning" -" the mappings last to first::" +"Note, the iteration order of a :class:`ChainMap()` is determined by scanning " +"the mappings last to first::" msgstr "" #: ../../library/collections.rst:111 @@ -254,34 +255,32 @@ msgstr "" #: ../../library/collections.rst:121 msgid "" -"The `MultiContext class " -"`_" -" in the Enthought `CodeTools package " -"`_ has options to support writing to" -" any mapping in the chain." +"The `MultiContext class `_ in the Enthought `CodeTools package " +"`_ has options to support writing to " +"any mapping in the chain." msgstr "" #: ../../library/collections.rst:127 msgid "" -"Django's `Context class " -"`_ " -"for templating is a read-only chain of mappings. It also features pushing " -"and popping of contexts similar to the " -":meth:`~collections.ChainMap.new_child` method and the " -":attr:`~collections.ChainMap.parents` property." +"Django's `Context class `_ for templating is a read-only chain of mappings. It " +"also features pushing and popping of contexts similar to the :meth:" +"`~collections.ChainMap.new_child` method and the :attr:`~collections." +"ChainMap.parents` property." msgstr "" #: ../../library/collections.rst:134 msgid "" -"The `Nested Contexts recipe `_" -" has options to control whether writes and other mutations apply only to the" -" first mapping or to any mapping in the chain." +"The `Nested Contexts recipe `_ " +"has options to control whether writes and other mutations apply only to the " +"first mapping or to any mapping in the chain." msgstr "" #: ../../library/collections.rst:139 msgid "" -"A `greatly simplified read-only version of Chainmap " -"`_." +"A `greatly simplified read-only version of Chainmap `_." msgstr "" #: ../../library/collections.rst:144 @@ -311,8 +310,8 @@ msgstr "" #: ../../library/collections.rst:190 msgid "" -"The :class:`ChainMap` class only makes updates (writes and deletions) to the" -" first mapping in the chain while lookups will search the full chain. " +"The :class:`ChainMap` class only makes updates (writes and deletions) to the " +"first mapping in the chain while lookups will search the full chain. " "However, if deep writes and deletions are desired, it is easy to make a " "subclass that updates keys found deeper in the chain::" msgstr "" @@ -330,10 +329,10 @@ msgstr "" #: ../../library/collections.rst:242 msgid "" "A :class:`Counter` is a :class:`dict` subclass for counting hashable " -"objects. It is a collection where elements are stored as dictionary keys and" -" their counts are stored as dictionary values. Counts are allowed to be any" -" integer value including zero or negative counts. The :class:`Counter` " -"class is similar to bags or multisets in other languages." +"objects. It is a collection where elements are stored as dictionary keys and " +"their counts are stored as dictionary values. Counts are allowed to be any " +"integer value including zero or negative counts. The :class:`Counter` class " +"is similar to bags or multisets in other languages." msgstr "" #: ../../library/collections.rst:248 @@ -362,15 +361,15 @@ msgstr "" #: ../../library/collections.rst:277 msgid "" -"Return an iterator over elements repeating each as many times as its count." -" Elements are returned in arbitrary order. If an element's count is less " +"Return an iterator over elements repeating each as many times as its count. " +"Elements are returned in arbitrary order. If an element's count is less " "than one, :meth:`elements` will ignore it." msgstr "" #: ../../library/collections.rst:287 msgid "" -"Return a list of the *n* most common elements and their counts from the most" -" common to the least. If *n* is omitted or ``None``, :meth:`most_common` " +"Return a list of the *n* most common elements and their counts from the most " +"common to the least. If *n* is omitted or ``None``, :meth:`most_common` " "returns *all* elements in the counter. Elements with equal counts are " "ordered arbitrarily:" msgstr "" @@ -395,9 +394,9 @@ msgstr "" #: ../../library/collections.rst:318 msgid "" "Elements are counted from an *iterable* or added-in from another *mapping* " -"(or counter). Like :meth:`dict.update` but adds counts instead of replacing" -" them. Also, the *iterable* is expected to be a sequence of elements, not a" -" sequence of ``(key, value)`` pairs." +"(or counter). Like :meth:`dict.update` but adds counts instead of replacing " +"them. Also, the *iterable* is expected to be a sequence of elements, not a " +"sequence of ``(key, value)`` pairs." msgstr "" #: ../../library/collections.rst:323 @@ -409,9 +408,9 @@ msgid "" "Several mathematical operations are provided for combining :class:`Counter` " "objects to produce multisets (counters that have counts greater than zero). " "Addition and subtraction combine counters by adding or subtracting the " -"counts of corresponding elements. Intersection and union return the minimum" -" and maximum of corresponding counts. Each operation can accept inputs with" -" signed counts, but the output will exclude results with counts of zero or " +"counts of corresponding elements. Intersection and union return the minimum " +"and maximum of corresponding counts. Each operation can accept inputs with " +"signed counts, but the output will exclude results with counts of zero or " "less." msgstr "" @@ -428,10 +427,10 @@ msgstr "" #: ../../library/collections.rst:367 msgid "" -"Counters were primarily designed to work with positive integers to represent" -" running counts; however, care was taken to not unnecessarily preclude use " -"cases needing other types or negative values. To help with those use cases," -" this section documents the minimum range and type restrictions." +"Counters were primarily designed to work with positive integers to represent " +"running counts; however, care was taken to not unnecessarily preclude use " +"cases needing other types or negative values. To help with those use cases, " +"this section documents the minimum range and type restrictions." msgstr "" #: ../../library/collections.rst:372 @@ -451,9 +450,9 @@ msgstr "" msgid "" "For in-place operations such as ``c[key] += 1``, the value type need only " "support addition and subtraction. So fractions, floats, and decimals would " -"work and negative values are supported. The same is also true for " -":meth:`~Counter.update` and :meth:`~Counter.subtract` which allow negative " -"and zero values for both inputs and outputs." +"work and negative values are supported. The same is also true for :meth:" +"`~Counter.update` and :meth:`~Counter.subtract` which allow negative and " +"zero values for both inputs and outputs." msgstr "" #: ../../library/collections.rst:384 @@ -472,8 +471,8 @@ msgstr "" #: ../../library/collections.rst:394 msgid "" -"`Bag class `_ in Smalltalk." +"`Bag class `_ in Smalltalk." msgstr "" #: ../../library/collections.rst:397 @@ -483,11 +482,11 @@ msgstr "" #: ../../library/collections.rst:399 msgid "" -"`C++ multisets `_ tutorial with examples." +"`C++ multisets `_ tutorial with examples." msgstr "" -"Tutorial com exemplos `C++ multisets `_." +"Tutorial com exemplos `C++ multisets `_." #: ../../library/collections.rst:402 msgid "" @@ -509,8 +508,8 @@ msgstr "Objetos :class:`deque`" #: ../../library/collections.rst:417 msgid "" "Returns a new deque object initialized left-to-right (using :meth:`append`) " -"with data from *iterable*. If *iterable* is not specified, the new deque is" -" empty." +"with data from *iterable*. If *iterable* is not specified, the new deque is " +"empty." msgstr "" #: ../../library/collections.rst:420 @@ -531,13 +530,13 @@ msgstr "" #: ../../library/collections.rst:431 msgid "" -"If *maxlen* is not specified or is ``None``, deques may grow to an arbitrary" -" length. Otherwise, the deque is bounded to the specified maximum length. " +"If *maxlen* is not specified or is ``None``, deques may grow to an arbitrary " +"length. Otherwise, the deque is bounded to the specified maximum length. " "Once a bounded length deque is full, when new items are added, a " "corresponding number of items are discarded from the opposite end. Bounded " "length deques provide functionality similar to the ``tail`` filter in Unix. " -"They are also useful for tracking transactions and other pools of data where" -" only the most recent activity is of interest." +"They are also useful for tracking transactions and other pools of data where " +"only the most recent activity is of interest." msgstr "" #: ../../library/collections.rst:440 @@ -590,8 +589,8 @@ msgstr "" #: ../../library/collections.rst:497 msgid "" -"If the insertion would cause a bounded deque to grow beyond *maxlen*, an " -":exc:`IndexError` is raised." +"If the insertion would cause a bounded deque to grow beyond *maxlen*, an :" +"exc:`IndexError` is raised." msgstr "" #: ../../library/collections.rst:505 @@ -602,14 +601,14 @@ msgstr "" #: ../../library/collections.rst:511 msgid "" -"Remove and return an element from the left side of the deque. If no elements" -" are present, raises an :exc:`IndexError`." +"Remove and return an element from the left side of the deque. If no elements " +"are present, raises an :exc:`IndexError`." msgstr "" #: ../../library/collections.rst:517 msgid "" -"Remove the first occurrence of *value*. If not found, raises a " -":exc:`ValueError`." +"Remove the first occurrence of *value*. If not found, raises a :exc:" +"`ValueError`." msgstr "" #: ../../library/collections.rst:523 @@ -624,8 +623,8 @@ msgstr "" #: ../../library/collections.rst:533 msgid "" -"When the deque is not empty, rotating one step to the right is equivalent to" -" ``d.appendleft(d.pop())``, and rotating one step to the left is equivalent " +"When the deque is not empty, rotating one step to the right is equivalent to " +"``d.appendleft(d.pop())``, and rotating one step to the left is equivalent " "to ``d.append(d.popleft())``." msgstr "" @@ -641,9 +640,9 @@ msgstr "" msgid "" "In addition to the above, deques support iteration, pickling, ``len(d)``, " "``reversed(d)``, ``copy.copy(d)``, ``copy.deepcopy(d)``, membership testing " -"with the :keyword:`in` operator, and subscript references such as ``d[-1]``." -" Indexed access is O(1) at both ends but slows to O(n) in the middle. For " -"fast random access, use lists instead." +"with the :keyword:`in` operator, and subscript references such as " +"``d[-1]``. Indexed access is O(1) at both ends but slows to O(n) in the " +"middle. For fast random access, use lists instead." msgstr "" #: ../../library/collections.rst:553 @@ -672,18 +671,18 @@ msgstr "" #: ../../library/collections.rst:625 msgid "" -"Another approach to using deques is to maintain a sequence of recently added" -" elements by appending to the right and popping to the left::" +"Another approach to using deques is to maintain a sequence of recently added " +"elements by appending to the right and popping to the left::" msgstr "" #: ../../library/collections.rst:640 msgid "" "A `round-robin scheduler `_ can be implemented with input iterators stored in a " -":class:`deque`. Values are yielded from the active iterator in position " -"zero. If that iterator is exhausted, it can be removed with " -":meth:`~deque.popleft`; otherwise, it can be cycled back to the end with the" -" :meth:`~deque.rotate` method::" +"robin_scheduling>`_ can be implemented with input iterators stored in a :" +"class:`deque`. Values are yielded from the active iterator in position " +"zero. If that iterator is exhausted, it can be removed with :meth:`~deque." +"popleft`; otherwise, it can be cycled back to the end with the :meth:`~deque." +"rotate` method::" msgstr "" #: ../../library/collections.rst:659 @@ -695,13 +694,12 @@ msgstr "" #: ../../library/collections.rst:668 msgid "" -"To implement :class:`deque` slicing, use a similar approach applying " -":meth:`~deque.rotate` to bring a target element to the left side of the " -"deque. Remove old entries with :meth:`~deque.popleft`, add new entries with " -":meth:`~deque.extend`, and then reverse the rotation. With minor variations " -"on that approach, it is easy to implement Forth style stack manipulations " -"such as ``dup``, ``drop``, ``swap``, ``over``, ``pick``, ``rot``, and " -"``roll``." +"To implement :class:`deque` slicing, use a similar approach applying :meth:" +"`~deque.rotate` to bring a target element to the left side of the deque. " +"Remove old entries with :meth:`~deque.popleft`, add new entries with :meth:" +"`~deque.extend`, and then reverse the rotation. With minor variations on " +"that approach, it is easy to implement Forth style stack manipulations such " +"as ``dup``, ``drop``, ``swap``, ``over``, ``pick``, ``rot``, and ``roll``." msgstr "" #: ../../library/collections.rst:678 @@ -710,30 +708,30 @@ msgstr "" #: ../../library/collections.rst:682 msgid "" -"Returns a new dictionary-like object. :class:`defaultdict` is a subclass of" -" the built-in :class:`dict` class. It overrides one method and adds one " +"Returns a new dictionary-like object. :class:`defaultdict` is a subclass of " +"the built-in :class:`dict` class. It overrides one method and adds one " "writable instance variable. The remaining functionality is the same as for " "the :class:`dict` class and is not documented here." msgstr "" #: ../../library/collections.rst:687 msgid "" -"The first argument provides the initial value for the " -":attr:`default_factory` attribute; it defaults to ``None``. All remaining " +"The first argument provides the initial value for the :attr:" +"`default_factory` attribute; it defaults to ``None``. All remaining " "arguments are treated the same as if they were passed to the :class:`dict` " "constructor, including keyword arguments." msgstr "" #: ../../library/collections.rst:693 msgid "" -":class:`defaultdict` objects support the following method in addition to the" -" standard :class:`dict` operations:" +":class:`defaultdict` objects support the following method in addition to the " +"standard :class:`dict` operations:" msgstr "" #: ../../library/collections.rst:698 msgid "" -"If the :attr:`default_factory` attribute is ``None``, this raises a " -":exc:`KeyError` exception with the *key* as argument." +"If the :attr:`default_factory` attribute is ``None``, this raises a :exc:" +"`KeyError` exception with the *key* as argument." msgstr "" #: ../../library/collections.rst:701 @@ -751,17 +749,17 @@ msgstr "" #: ../../library/collections.rst:708 msgid "" -"This method is called by the :meth:`__getitem__` method of the :class:`dict`" -" class when the requested key is not found; whatever it returns or raises is" -" then returned or raised by :meth:`__getitem__`." +"This method is called by the :meth:`__getitem__` method of the :class:`dict` " +"class when the requested key is not found; whatever it returns or raises is " +"then returned or raised by :meth:`__getitem__`." msgstr "" #: ../../library/collections.rst:712 msgid "" -"Note that :meth:`__missing__` is *not* called for any operations besides " -":meth:`__getitem__`. This means that :meth:`get` will, like normal " -"dictionaries, return ``None`` as a default rather than using " -":attr:`default_factory`." +"Note that :meth:`__missing__` is *not* called for any operations besides :" +"meth:`__getitem__`. This means that :meth:`get` will, like normal " +"dictionaries, return ``None`` as a default rather than using :attr:" +"`default_factory`." msgstr "" #: ../../library/collections.rst:718 @@ -788,42 +786,42 @@ msgstr "" #: ../../library/collections.rst:742 msgid "" "When each key is encountered for the first time, it is not already in the " -"mapping; so an entry is automatically created using the " -":attr:`~defaultdict.default_factory` function which returns an empty " -":class:`list`. The :meth:`list.append` operation then attaches the value to" -" the new list. When keys are encountered again, the look-up proceeds " -"normally (returning the list for that key) and the :meth:`list.append` " -"operation adds another value to the list. This technique is simpler and " -"faster than an equivalent technique using :meth:`dict.setdefault`:" +"mapping; so an entry is automatically created using the :attr:`~defaultdict." +"default_factory` function which returns an empty :class:`list`. The :meth:" +"`list.append` operation then attaches the value to the new list. When keys " +"are encountered again, the look-up proceeds normally (returning the list for " +"that key) and the :meth:`list.append` operation adds another value to the " +"list. This technique is simpler and faster than an equivalent technique " +"using :meth:`dict.setdefault`:" msgstr "" #: ../../library/collections.rst:757 msgid "" -"Setting the :attr:`~defaultdict.default_factory` to :class:`int` makes the " -":class:`defaultdict` useful for counting (like a bag or multiset in other " +"Setting the :attr:`~defaultdict.default_factory` to :class:`int` makes the :" +"class:`defaultdict` useful for counting (like a bag or multiset in other " "languages):" msgstr "" #: ../../library/collections.rst:769 msgid "" -"When a letter is first encountered, it is missing from the mapping, so the " -":attr:`~defaultdict.default_factory` function calls :func:`int` to supply a " -"default count of zero. The increment operation then builds up the count for" -" each letter." +"When a letter is first encountered, it is missing from the mapping, so the :" +"attr:`~defaultdict.default_factory` function calls :func:`int` to supply a " +"default count of zero. The increment operation then builds up the count for " +"each letter." msgstr "" #: ../../library/collections.rst:773 msgid "" -"The function :func:`int` which always returns zero is just a special case of" -" constant functions. A faster and more flexible way to create constant " +"The function :func:`int` which always returns zero is just a special case of " +"constant functions. A faster and more flexible way to create constant " "functions is to use a lambda function which can supply any constant value " "(not just zero):" msgstr "" #: ../../library/collections.rst:785 msgid "" -"Setting the :attr:`~defaultdict.default_factory` to :class:`set` makes the " -":class:`defaultdict` useful for building a dictionary of sets:" +"Setting the :attr:`~defaultdict.default_factory` to :class:`set` makes the :" +"class:`defaultdict` useful for building a dictionary of sets:" msgstr "" #: ../../library/collections.rst:798 @@ -841,11 +839,10 @@ msgstr "" #: ../../library/collections.rst:806 msgid "" "Returns a new tuple subclass named *typename*. The new subclass is used to " -"create tuple-like objects that have fields accessible by attribute lookup as" -" well as being indexable and iterable. Instances of the subclass also have " -"a helpful docstring (with typename and field_names) and a helpful " -":meth:`__repr__` method which lists the tuple contents in a ``name=value`` " -"format." +"create tuple-like objects that have fields accessible by attribute lookup as " +"well as being indexable and iterable. Instances of the subclass also have a " +"helpful docstring (with typename and field_names) and a helpful :meth:" +"`__repr__` method which lists the tuple contents in a ``name=value`` format." msgstr "" #: ../../library/collections.rst:812 @@ -859,25 +856,24 @@ msgstr "" msgid "" "Any valid Python identifier may be used for a fieldname except for names " "starting with an underscore. Valid identifiers consist of letters, digits, " -"and underscores but do not start with a digit or underscore and cannot be a " -":mod:`keyword` such as *class*, *for*, *return*, *global*, *pass*, or " -"*raise*." +"and underscores but do not start with a digit or underscore and cannot be a :" +"mod:`keyword` such as *class*, *for*, *return*, *global*, *pass*, or *raise*." msgstr "" #: ../../library/collections.rst:822 msgid "" "If *rename* is true, invalid fieldnames are automatically replaced with " "positional names. For example, ``['abc', 'def', 'ghi', 'abc']`` is " -"converted to ``['abc', '_1', 'ghi', '_3']``, eliminating the keyword ``def``" -" and the duplicate fieldname ``abc``." +"converted to ``['abc', '_1', 'ghi', '_3']``, eliminating the keyword ``def`` " +"and the duplicate fieldname ``abc``." msgstr "" #: ../../library/collections.rst:827 msgid "" "*defaults* can be ``None`` or an :term:`iterable` of default values. Since " "fields with a default value must come after any fields without a default, " -"the *defaults* are applied to the rightmost parameters. For example, if the" -" fieldnames are ``['x', 'y', 'z']`` and the defaults are ``(1, 2)``, then " +"the *defaults* are applied to the rightmost parameters. For example, if the " +"fieldnames are ``['x', 'y', 'z']`` and the defaults are ``(1, 2)``, then " "``x`` will be a required argument, ``y`` will default to ``1``, and ``z`` " "will default to ``2``." msgstr "" @@ -925,15 +921,14 @@ msgstr "" #: ../../library/collections.rst:889 msgid "" -"In addition to the methods inherited from tuples, named tuples support three" -" additional methods and two attributes. To prevent conflicts with field " +"In addition to the methods inherited from tuples, named tuples support three " +"additional methods and two attributes. To prevent conflicts with field " "names, the method and attribute names start with an underscore." msgstr "" #: ../../library/collections.rst:895 msgid "" -"Class method that makes a new instance from an existing sequence or " -"iterable." +"Class method that makes a new instance from an existing sequence or iterable." msgstr "" #: ../../library/collections.rst:905 @@ -948,8 +943,8 @@ msgstr "" #: ../../library/collections.rst:919 msgid "" -"Return a new instance of the named tuple replacing specified fields with new" -" values::" +"Return a new instance of the named tuple replacing specified fields with new " +"values::" msgstr "" #: ../../library/collections.rst:931 @@ -964,8 +959,8 @@ msgstr "" #: ../../library/collections.rst:956 msgid "" -"To retrieve a field whose name is stored in a string, use the " -":func:`getattr` function:" +"To retrieve a field whose name is stored in a string, use the :func:" +"`getattr` function:" msgstr "" #: ../../library/collections.rst:962 @@ -997,8 +992,8 @@ msgstr "" #: ../../library/collections.rst:996 msgid "" -"Docstrings can be customized by making direct assignments to the ``__doc__``" -" fields:" +"Docstrings can be customized by making direct assignments to the ``__doc__`` " +"fields:" msgstr "" #: ../../library/collections.rst:1005 @@ -1013,8 +1008,9 @@ msgstr "" #: ../../library/collections.rst:1019 msgid "" -"See :class:`typing.NamedTuple` for a way to add type hints for named tuples." -" It also provides an elegant notation using the :keyword:`class` keyword::" +"See :class:`typing.NamedTuple` for a way to add type hints for named " +"tuples. It also provides an elegant notation using the :keyword:`class` " +"keyword::" msgstr "" #: ../../library/collections.rst:1028 @@ -1038,8 +1034,7 @@ msgid "" "Ordered dictionaries are just like regular dictionaries but have some extra " "capabilities relating to ordering operations. They have become less " "important now that the built-in :class:`dict` class gained the ability to " -"remember insertion order (this new behavior became guaranteed in Python " -"3.7)." +"remember insertion order (this new behavior became guaranteed in Python 3.7)." msgstr "" #: ../../library/collections.rst:1044 @@ -1063,9 +1058,8 @@ msgstr "" msgid "" "Algorithmically, :class:`OrderedDict` can handle frequent reordering " "operations better than :class:`dict`. This makes it suitable for tracking " -"recent accesses (for example in an `LRU cache " -"`_)." +"recent accesses (for example in an `LRU cache `_)." msgstr "" #: ../../library/collections.rst:1058 @@ -1099,8 +1093,8 @@ msgstr "" msgid "" "The :meth:`popitem` method for ordered dictionaries returns and removes a " "(key, value) pair. The pairs are returned in :abbr:`LIFO (last-in, first-" -"out)` order if *last* is true or :abbr:`FIFO (first-in, first-out)` order if" -" false." +"out)` order if *last* is true or :abbr:`FIFO (first-in, first-out)` order if " +"false." msgstr "" #: ../../library/collections.rst:1085 @@ -1120,23 +1114,22 @@ msgstr "" msgid "" "Equality tests between :class:`OrderedDict` objects are order-sensitive and " "are implemented as ``list(od1.items())==list(od2.items())``. Equality tests " -"between :class:`OrderedDict` objects and other " -":class:`~collections.abc.Mapping` objects are order-insensitive like regular" -" dictionaries. This allows :class:`OrderedDict` objects to be substituted " -"anywhere a regular dictionary is used." +"between :class:`OrderedDict` objects and other :class:`~collections.abc." +"Mapping` objects are order-insensitive like regular dictionaries. This " +"allows :class:`OrderedDict` objects to be substituted anywhere a regular " +"dictionary is used." msgstr "" #: ../../library/collections.rst:1110 msgid "" -"The items, keys, and values :term:`views ` of " -":class:`OrderedDict` now support reverse iteration using :func:`reversed`." +"The items, keys, and values :term:`views ` of :class:" +"`OrderedDict` now support reverse iteration using :func:`reversed`." msgstr "" #: ../../library/collections.rst:1114 msgid "" "With the acceptance of :pep:`468`, order is retained for keyword arguments " -"passed to the :class:`OrderedDict` constructor and its :meth:`update` " -"method." +"passed to the :class:`OrderedDict` constructor and its :meth:`update` method." msgstr "" #: ../../library/collections.rst:1120 @@ -1145,16 +1138,16 @@ msgstr "" #: ../../library/collections.rst:1122 msgid "" -"It is straightforward to create an ordered dictionary variant that remembers" -" the order the keys were *last* inserted. If a new entry overwrites an " +"It is straightforward to create an ordered dictionary variant that remembers " +"the order the keys were *last* inserted. If a new entry overwrites an " "existing entry, the original insertion position is changed and moved to the " "end::" msgstr "" #: ../../library/collections.rst:1134 msgid "" -"An :class:`OrderedDict` would also be useful for implementing variants of " -":func:`functools.lru_cache`::" +"An :class:`OrderedDict` would also be useful for implementing variants of :" +"func:`functools.lru_cache`::" msgstr "" #: ../../library/collections.rst:1157 @@ -1172,16 +1165,16 @@ msgstr "" #: ../../library/collections.rst:1167 msgid "" "Class that simulates a dictionary. The instance's contents are kept in a " -"regular dictionary, which is accessible via the :attr:`data` attribute of " -":class:`UserDict` instances. If *initialdata* is provided, :attr:`data` is " +"regular dictionary, which is accessible via the :attr:`data` attribute of :" +"class:`UserDict` instances. If *initialdata* is provided, :attr:`data` is " "initialized with its contents; note that a reference to *initialdata* will " "not be kept, allowing it be used for other purposes." msgstr "" #: ../../library/collections.rst:1173 msgid "" -"In addition to supporting the methods and operations of mappings, " -":class:`UserDict` instances provide the following attribute:" +"In addition to supporting the methods and operations of mappings, :class:" +"`UserDict` instances provide the following attribute:" msgstr "" #: ../../library/collections.rst:1178 @@ -1195,10 +1188,10 @@ msgstr "" #: ../../library/collections.rst:1186 msgid "" -"This class acts as a wrapper around list objects. It is a useful base class" -" for your own list-like classes which can inherit from them and override " -"existing methods or add new ones. In this way, one can add new behaviors to" -" lists." +"This class acts as a wrapper around list objects. It is a useful base class " +"for your own list-like classes which can inherit from them and override " +"existing methods or add new ones. In this way, one can add new behaviors to " +"lists." msgstr "" #: ../../library/collections.rst:1191 @@ -1211,22 +1204,22 @@ msgstr "" #: ../../library/collections.rst:1197 msgid "" "Class that simulates a list. The instance's contents are kept in a regular " -"list, which is accessible via the :attr:`data` attribute of " -":class:`UserList` instances. The instance's contents are initially set to a" -" copy of *list*, defaulting to the empty list ``[]``. *list* can be any " -"iterable, for example a real Python list or a :class:`UserList` object." +"list, which is accessible via the :attr:`data` attribute of :class:" +"`UserList` instances. The instance's contents are initially set to a copy " +"of *list*, defaulting to the empty list ``[]``. *list* can be any iterable, " +"for example a real Python list or a :class:`UserList` object." msgstr "" #: ../../library/collections.rst:1203 msgid "" -"In addition to supporting the methods and operations of mutable sequences, " -":class:`UserList` instances provide the following attribute:" +"In addition to supporting the methods and operations of mutable sequences, :" +"class:`UserList` instances provide the following attribute:" msgstr "" #: ../../library/collections.rst:1208 msgid "" -"A real :class:`list` object used to store the contents of the " -":class:`UserList` class." +"A real :class:`list` object used to store the contents of the :class:" +"`UserList` class." msgstr "" #: ../../library/collections.rst:1211 @@ -1241,8 +1234,8 @@ msgstr "" #: ../../library/collections.rst:1218 msgid "" -"If a derived class does not wish to comply with this requirement, all of the" -" special methods supported by this class will need to be overridden; please " +"If a derived class does not wish to comply with this requirement, all of the " +"special methods supported by this class will need to be overridden; please " "consult the sources for information about the methods which need to be " "provided in that case." msgstr "" @@ -1254,30 +1247,30 @@ msgstr "" #: ../../library/collections.rst:1226 msgid "" "The class, :class:`UserString` acts as a wrapper around string objects. The " -"need for this class has been partially supplanted by the ability to subclass" -" directly from :class:`str`; however, this class can be easier to work with " +"need for this class has been partially supplanted by the ability to subclass " +"directly from :class:`str`; however, this class can be easier to work with " "because the underlying string is accessible as an attribute." msgstr "" #: ../../library/collections.rst:1234 msgid "" "Class that simulates a string object. The instance's content is kept in a " -"regular string object, which is accessible via the :attr:`data` attribute of" -" :class:`UserString` instances. The instance's contents are initially set " +"regular string object, which is accessible via the :attr:`data` attribute " +"of :class:`UserString` instances. The instance's contents are initially set " "to a copy of *seq*. The *seq* argument can be any object which can be " "converted into a string using the built-in :func:`str` function." msgstr "" #: ../../library/collections.rst:1241 msgid "" -"In addition to supporting the methods and operations of strings, " -":class:`UserString` instances provide the following attribute:" +"In addition to supporting the methods and operations of strings, :class:" +"`UserString` instances provide the following attribute:" msgstr "" #: ../../library/collections.rst:1246 msgid "" -"A real :class:`str` object used to store the contents of the " -":class:`UserString` class." +"A real :class:`str` object used to store the contents of the :class:" +"`UserString` class." msgstr "" #: ../../library/collections.rst:1249 diff --git a/library/colorsys.po b/library/colorsys.po index a8b7530b0..8e20ac92e 100644 --- a/library/colorsys.po +++ b/library/colorsys.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,49 +35,60 @@ msgstr "**Código Fonte:** :source:`Lib/colorsys.py`" #: ../../library/colorsys.rst:13 msgid "" -"The :mod:`colorsys` module defines bidirectional conversions of color values" -" between colors expressed in the RGB (Red Green Blue) color space used in " +"The :mod:`colorsys` module defines bidirectional conversions of color values " +"between colors expressed in the RGB (Red Green Blue) color space used in " "computer monitors and three other coordinate systems: YIQ, HLS (Hue " -"Lightness Saturation) and HSV (Hue Saturation Value). Coordinates in all of" -" these color spaces are floating point values. In the YIQ space, the Y " +"Lightness Saturation) and HSV (Hue Saturation Value). Coordinates in all of " +"these color spaces are floating point values. In the YIQ space, the Y " "coordinate is between 0 and 1, but the I and Q coordinates can be positive " "or negative. In all other spaces, the coordinates are all between 0 and 1." msgstr "" +"O módulo :mod:`colorsys` define conversões bidirecionais de valores de cores " +"entre cores expressas no espaço de cores RGB (Red Green Blue) usado em " +"monitores de computador e três outros sistemas de coordenadas: YIQ, HLS (Hue " +"Lightness Saturation) e HSV (Hue Saturation Value). As coordenadas em todos " +"esses espaços de cores são valores de ponto flutuante. No espaço YIQ, a " +"coordenada Y está entre 0 e 1, mas as coordenadas I e Q podem ser positivas " +"ou negativas. Em todos os outros espaços, as coordenadas estão todas entre 0 " +"e 1." #: ../../library/colorsys.rst:23 msgid "" -"More information about color spaces can be found at " -"http://poynton.ca/ColorFAQ.html and " -"https://www.cambridgeincolour.com/tutorials/color-spaces.htm." +"More information about color spaces can be found at http://poynton.ca/" +"ColorFAQ.html and https://www.cambridgeincolour.com/tutorials/color-spaces." +"htm." msgstr "" +"Mais informações sobre espaços de cores podem ser encontradas em http://" +"poynton.ca/ColorFAQ.html e https://www.cambridgeincolour.com/tutorials/color-" +"spaces.htm." #: ../../library/colorsys.rst:27 msgid "The :mod:`colorsys` module defines the following functions:" -msgstr "" +msgstr "O módulo :mod:`colorsys` define as seguintes funções:" #: ../../library/colorsys.rst:32 msgid "Convert the color from RGB coordinates to YIQ coordinates." -msgstr "" +msgstr "Converte a cor de coordenadas RGB para coordenadas YIQ." #: ../../library/colorsys.rst:37 msgid "Convert the color from YIQ coordinates to RGB coordinates." -msgstr "" +msgstr "Converte a cor de coordenadas YIQ para coordenadas RGB." #: ../../library/colorsys.rst:42 msgid "Convert the color from RGB coordinates to HLS coordinates." -msgstr "" +msgstr "Converte a cor de coordenadas RGB para coordenadas HLS." #: ../../library/colorsys.rst:47 msgid "Convert the color from HLS coordinates to RGB coordinates." -msgstr "" +msgstr "Converte a cor de coordenadas HLS para coordenadas RGB." #: ../../library/colorsys.rst:52 msgid "Convert the color from RGB coordinates to HSV coordinates." -msgstr "" +msgstr "Converte a cor de coordenadas RGB para coordenadas HSV." #: ../../library/colorsys.rst:57 msgid "Convert the color from HSV coordinates to RGB coordinates." -msgstr "" +msgstr "Converte a cor de coordenadas HSV para coordenadas RGB." #: ../../library/colorsys.rst:59 msgid "Example::" diff --git a/library/compileall.po b/library/compileall.po index 6736d2812..d66d69b11 100644 --- a/library/compileall.po +++ b/library/compileall.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-06 10:46+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/compileall.py`" #: ../../library/compileall.rst:11 msgid "" "This module provides some utility functions to support installing Python " -"libraries. These functions compile Python source files in a directory tree." -" This module can be used to create the cached byte-code files at library " +"libraries. These functions compile Python source files in a directory tree. " +"This module can be used to create the cached byte-code files at library " "installation time, which makes them available for use even by users who " "don't have write permission to the library directories." msgstr "" @@ -50,8 +52,8 @@ msgstr "" #: ../../library/compileall.rst:29 msgid "" -"Positional arguments are files to compile or directories that contain source" -" files, traversed recursively. If no argument is given, behave as if the " +"Positional arguments are files to compile or directories that contain source " +"files, traversed recursively. If no argument is given, behave as if the " "command line was ``-l ``." msgstr "" @@ -67,8 +69,8 @@ msgstr "" #: ../../library/compileall.rst:44 msgid "" -"Do not print the list of files compiled. If passed once, error messages will" -" still be printed. If passed twice (``-qq``), all output is suppressed." +"Do not print the list of files compiled. If passed once, error messages will " +"still be printed. If passed twice (``-qq``), all output is suppressed." msgstr "" #: ../../library/compileall.rst:49 @@ -96,8 +98,8 @@ msgstr "" #: ../../library/compileall.rst:68 msgid "" "Write the byte-code files to their legacy locations and names, which may " -"overwrite byte-code files created by another version of Python. The default" -" is to write files to their :pep:`3147` locations and names, which allows " +"overwrite byte-code files created by another version of Python. The default " +"is to write files to their :pep:`3147` locations and names, which allows " "byte-code files from multiple versions of Python to coexist." msgstr "" @@ -105,27 +107,27 @@ msgstr "" msgid "" "Control the maximum recursion level for subdirectories. If this is given, " "then ``-l`` option will not be taken into account. :program:`python -m " -"compileall -r 0` is equivalent to :program:`python -m compileall" -" -l`." +"compileall -r 0` is equivalent to :program:`python -m compileall " +" -l`." msgstr "" #: ../../library/compileall.rst:82 msgid "" -"Use *N* workers to compile the files within the given directory. If ``0`` is" -" used, then the result of :func:`os.cpu_count()` will be used." +"Use *N* workers to compile the files within the given directory. If ``0`` is " +"used, then the result of :func:`os.cpu_count()` will be used." msgstr "" #: ../../library/compileall.rst:88 msgid "" "Control how the generated byte-code files are invalidated at runtime. The " -"``timestamp`` value, means that ``.pyc`` files with the source timestamp and" -" size embedded will be generated. The ``checked-hash`` and ``unchecked-" -"hash`` values cause hash-based pycs to be generated. Hash-based pycs embed a" -" hash of the source file contents rather than a timestamp. See :ref:`pyc-" +"``timestamp`` value, means that ``.pyc`` files with the source timestamp and " +"size embedded will be generated. The ``checked-hash`` and ``unchecked-hash`` " +"values cause hash-based pycs to be generated. Hash-based pycs embed a hash " +"of the source file contents rather than a timestamp. See :ref:`pyc-" "invalidation` for more information on how Python validates bytecode cache " -"files at runtime. The default is ``timestamp`` if the " -":envvar:`SOURCE_DATE_EPOCH` environment variable is not set, and ``checked-" -"hash`` if the ``SOURCE_DATE_EPOCH`` environment variable is set." +"files at runtime. The default is ``timestamp`` if the :envvar:" +"`SOURCE_DATE_EPOCH` environment variable is not set, and ``checked-hash`` if " +"the ``SOURCE_DATE_EPOCH`` environment variable is set." msgstr "" #: ../../library/compileall.rst:99 @@ -156,9 +158,9 @@ msgstr "" #: ../../library/compileall.rst:120 msgid "" -"Recursively descend the directory tree named by *dir*, compiling all " -":file:`.py` files along the way. Return a true value if all the files " -"compiled successfully, and a false value otherwise." +"Recursively descend the directory tree named by *dir*, compiling all :file:`." +"py` files along the way. Return a true value if all the files compiled " +"successfully, and a false value otherwise." msgstr "" #: ../../library/compileall.rst:124 @@ -178,15 +180,15 @@ msgstr "" #: ../../library/compileall.rst:133 msgid "" -"If *force* is true, modules are re-compiled even if the timestamps are up to" -" date." +"If *force* is true, modules are re-compiled even if the timestamps are up to " +"date." msgstr "" #: ../../library/compileall.rst:136 msgid "" "If *rx* is given, its search method is called on the complete path to each " -"file considered for compilation, and if it returns a true value, the file is" -" skipped." +"file considered for compilation, and if it returns a true value, the file is " +"skipped." msgstr "" #: ../../library/compileall.rst:140 ../../library/compileall.rst:197 @@ -199,8 +201,8 @@ msgstr "" #: ../../library/compileall.rst:144 ../../library/compileall.rst:201 msgid "" "If *legacy* is true, byte-code files are written to their legacy locations " -"and names, which may overwrite byte-code files created by another version of" -" Python. The default is to write files to their :pep:`3147` locations and " +"and names, which may overwrite byte-code files created by another version of " +"Python. The default is to write files to their :pep:`3147` locations and " "names, which allows byte-code files from multiple versions of Python to " "coexist." msgstr "" @@ -216,15 +218,15 @@ msgid "" "The argument *workers* specifies how many workers are used to compile files " "in parallel. The default is to not use multiple workers. If the platform " "can't use multiple workers and *workers* argument is given, then sequential " -"compilation will be used as a fallback. If *workers* is lower than ``0``, a" -" :exc:`ValueError` will be raised." +"compilation will be used as a fallback. If *workers* is lower than ``0``, " +"a :exc:`ValueError` will be raised." msgstr "" #: ../../library/compileall.rst:159 ../../library/compileall.rst:210 msgid "" -"*invalidation_mode* should be a member of the " -":class:`py_compile.PycInvalidationMode` enum and controls how the generated " -"pycs are invalidated at runtime." +"*invalidation_mode* should be a member of the :class:`py_compile." +"PycInvalidationMode` enum and controls how the generated pycs are " +"invalidated at runtime." msgstr "" #: ../../library/compileall.rst:163 ../../library/compileall.rst:236 @@ -243,13 +245,13 @@ msgstr "" #: ../../library/compileall.rst:172 ../../library/compileall.rst:219 #: ../../library/compileall.rst:242 msgid "" -"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no" -" matter what the value of *optimize* is." +"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no " +"matter what the value of *optimize* is." msgstr "" #: ../../library/compileall.rst:176 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/compileall.rst:179 ../../library/compileall.rst:223 #: ../../library/compileall.rst:246 @@ -273,9 +275,9 @@ msgstr "" #: ../../library/compileall.rst:193 msgid "" -"If *rx* is given, its search method is passed the full path name to the file" -" being compiled, and if it returns a true value, the file is not compiled " -"and ``True`` is returned." +"If *rx* is given, its search method is passed the full path name to the file " +"being compiled, and if it returns a true value, the file is not compiled and " +"``True`` is returned." msgstr "" #: ../../library/compileall.rst:228 @@ -288,9 +290,9 @@ msgstr "" #: ../../library/compileall.rst:231 msgid "" "If *skip_curdir* is true (the default), the current directory is not " -"included in the search. All other parameters are passed to the " -":func:`compile_dir` function. Note that unlike the other compile functions," -" ``maxlevels`` defaults to ``0``." +"included in the search. All other parameters are passed to the :func:" +"`compile_dir` function. Note that unlike the other compile functions, " +"``maxlevels`` defaults to ``0``." msgstr "" #: ../../library/compileall.rst:249 diff --git a/library/concurrency.po b/library/concurrency.po index e94a7e8cb..a3b79eca2 100644 --- a/library/concurrency.po +++ b/library/concurrency.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" "Last-Translator: Hildeberto Abreu Magalhães , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,16 +30,16 @@ msgstr "Execução Concorrente" #: ../../library/concurrency.rst:7 msgid "" "The modules described in this chapter provide support for concurrent " -"execution of code. The appropriate choice of tool will depend on the task to" -" be executed (CPU bound vs IO bound) and preferred style of development " +"execution of code. The appropriate choice of tool will depend on the task to " +"be executed (CPU bound vs IO bound) and preferred style of development " "(event driven cooperative multitasking vs preemptive multitasking). Here's " "an overview:" msgstr "" "Os módulos descritos neste capítulo fornecem suporte a execução simultânea " "de código. A escolha apropriada da ferramenta dependerá da tarefa a ser " "executada (CPU bound ou IO bound) e do estilo de desenvolvimento " -"preferencial (multitarefa cooperativa orientada a eventos versus multitarefa" -" preemptiva). Eis uma visão geral:" +"preferencial (multitarefa cooperativa orientada a eventos versus multitarefa " +"preemptiva). Eis uma visão geral:" #: ../../library/concurrency.rst:25 msgid "The following are support modules for some of the above services:" diff --git a/library/concurrent.futures.po b/library/concurrent.futures.po index 23662b0f1..364905689 100644 --- a/library/concurrent.futures.po +++ b/library/concurrent.futures.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-15 11:43+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,11 +30,11 @@ msgstr ":mod:`concurrent.futures` --- Iniciando tarefas em paralelo" #: ../../library/concurrent.futures.rst:9 msgid "" -"**Source code:** :source:`Lib/concurrent/futures/thread.py` and " -":source:`Lib/concurrent/futures/process.py`" +"**Source code:** :source:`Lib/concurrent/futures/thread.py` and :source:`Lib/" +"concurrent/futures/process.py`" msgstr "" -"**Código-fonte:** :source:`Lib/concurrent/futures/thread.py` e " -":source:`Lib/concurrent/futures/process.py`" +"**Código-fonte:** :source:`Lib/concurrent/futures/thread.py` e :source:`Lib/" +"concurrent/futures/process.py`" #: ../../library/concurrent.futures.rst:14 msgid "" @@ -42,10 +44,10 @@ msgstr "" #: ../../library/concurrent.futures.rst:17 msgid "" -"The asynchronous execution can be performed with threads, using " -":class:`ThreadPoolExecutor`, or separate processes, using " -":class:`ProcessPoolExecutor`. Both implement the same interface, which is " -"defined by the abstract :class:`Executor` class." +"The asynchronous execution can be performed with threads, using :class:" +"`ThreadPoolExecutor`, or separate processes, using :class:" +"`ProcessPoolExecutor`. Both implement the same interface, which is defined " +"by the abstract :class:`Executor` class." msgstr "" #: ../../library/concurrent.futures.rst:24 @@ -54,15 +56,15 @@ msgstr "" #: ../../library/concurrent.futures.rst:28 msgid "" -"An abstract class that provides methods to execute calls asynchronously. It" -" should not be used directly, but through its concrete subclasses." +"An abstract class that provides methods to execute calls asynchronously. It " +"should not be used directly, but through its concrete subclasses." msgstr "" #: ../../library/concurrent.futures.rst:33 msgid "" "Schedules the callable, *fn*, to be executed as ``fn(*args **kwargs)`` and " -"returns a :class:`Future` object representing the execution of the callable." -" ::" +"returns a :class:`Future` object representing the execution of the " +"callable. ::" msgstr "" #: ../../library/concurrent.futures.rst:43 @@ -81,8 +83,8 @@ msgstr "" #: ../../library/concurrent.futures.rst:50 msgid "" -"The returned iterator raises a :exc:`concurrent.futures.TimeoutError` if " -":meth:`~iterator.__next__` is called and the result isn't available after " +"The returned iterator raises a :exc:`concurrent.futures.TimeoutError` if :" +"meth:`~iterator.__next__` is called and the result isn't available after " "*timeout* seconds from the original call to :meth:`Executor.map`. *timeout* " "can be an int or a float. If *timeout* is not specified or ``None``, there " "is no limit to the wait time." @@ -111,15 +113,15 @@ msgstr "" #: ../../library/concurrent.futures.rst:72 msgid "" "Signal the executor that it should free any resources that it is using when " -"the currently pending futures are done executing. Calls to " -":meth:`Executor.submit` and :meth:`Executor.map` made after shutdown will " -"raise :exc:`RuntimeError`." +"the currently pending futures are done executing. Calls to :meth:`Executor." +"submit` and :meth:`Executor.map` made after shutdown will raise :exc:" +"`RuntimeError`." msgstr "" #: ../../library/concurrent.futures.rst:77 msgid "" -"If *wait* is ``True`` then this method will not return until all the pending" -" futures are done executing and the resources associated with the executor " +"If *wait* is ``True`` then this method will not return until all the pending " +"futures are done executing and the resources associated with the executor " "have been freed. If *wait* is ``False`` then this method will return " "immediately and the resources associated with the executor will be freed " "when all pending futures are done executing. Regardless of the value of " @@ -129,10 +131,9 @@ msgstr "" #: ../../library/concurrent.futures.rst:85 msgid "" -"You can avoid having to call this method explicitly if you use the " -":keyword:`with` statement, which will shutdown the :class:`Executor` " -"(waiting as if :meth:`Executor.shutdown` were called with *wait* set to " -"``True``)::" +"You can avoid having to call this method explicitly if you use the :keyword:" +"`with` statement, which will shutdown the :class:`Executor` (waiting as if :" +"meth:`Executor.shutdown` were called with *wait* set to ``True``)::" msgstr "" #: ../../library/concurrent.futures.rst:99 @@ -164,25 +165,25 @@ msgstr "" #: ../../library/concurrent.futures.rst:140 msgid "" "*initializer* is an optional callable that is called at the start of each " -"worker thread; *initargs* is a tuple of arguments passed to the initializer." -" Should *initializer* raise an exception, all currently pending jobs will " -"raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, as well as any " -"attempt to submit more jobs to the pool." +"worker thread; *initargs* is a tuple of arguments passed to the " +"initializer. Should *initializer* raise an exception, all currently pending " +"jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, as " +"well as any attempt to submit more jobs to the pool." msgstr "" #: ../../library/concurrent.futures.rst:146 msgid "" "If *max_workers* is ``None`` or not given, it will default to the number of " -"processors on the machine, multiplied by ``5``, assuming that " -":class:`ThreadPoolExecutor` is often used to overlap I/O instead of CPU work" -" and the number of workers should be higher than the number of workers for " -":class:`ProcessPoolExecutor`." +"processors on the machine, multiplied by ``5``, assuming that :class:" +"`ThreadPoolExecutor` is often used to overlap I/O instead of CPU work and " +"the number of workers should be higher than the number of workers for :class:" +"`ProcessPoolExecutor`." msgstr "" #: ../../library/concurrent.futures.rst:154 msgid "" -"The *thread_name_prefix* argument was added to allow users to control the " -":class:`threading.Thread` names for worker threads created by the pool for " +"The *thread_name_prefix* argument was added to allow users to control the :" +"class:`threading.Thread` names for worker threads created by the pool for " "easier debugging." msgstr "" @@ -201,11 +202,11 @@ msgstr "" #: ../../library/concurrent.futures.rst:200 msgid "" -"The :class:`ProcessPoolExecutor` class is an :class:`Executor` subclass that" -" uses a pool of processes to execute calls asynchronously. " -":class:`ProcessPoolExecutor` uses the :mod:`multiprocessing` module, which " -"allows it to side-step the :term:`Global Interpreter Lock` but also means " -"that only picklable objects can be executed and returned." +"The :class:`ProcessPoolExecutor` class is an :class:`Executor` subclass that " +"uses a pool of processes to execute calls asynchronously. :class:" +"`ProcessPoolExecutor` uses the :mod:`multiprocessing` module, which allows " +"it to side-step the :term:`Global Interpreter Lock` but also means that only " +"picklable objects can be executed and returned." msgstr "" #: ../../library/concurrent.futures.rst:206 @@ -230,8 +231,8 @@ msgid "" "raised. On Windows, *max_workers* must be equal or lower than ``61``. If it " "is not then :exc:`ValueError` will be raised. If *max_workers* is ``None``, " "then the default chosen will be at most ``61``, even if more processors are " -"available. *mp_context* can be a multiprocessing context or None. It will be" -" used to launch the workers. If *mp_context* is ``None`` or not given, the " +"available. *mp_context* can be a multiprocessing context or None. It will be " +"used to launch the workers. If *mp_context* is ``None`` or not given, the " "default multiprocessing context is used." msgstr "" @@ -239,15 +240,15 @@ msgstr "" msgid "" "*initializer* is an optional callable that is called at the start of each " "worker process; *initargs* is a tuple of arguments passed to the " -"initializer. Should *initializer* raise an exception, all currently pending" -" jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`, as " +"initializer. Should *initializer* raise an exception, all currently pending " +"jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`, as " "well any attempt to submit more jobs to the pool." msgstr "" #: ../../library/concurrent.futures.rst:233 msgid "" -"When one of the worker processes terminates abruptly, a " -":exc:`BrokenProcessPool` error is now raised. Previously, behaviour was " +"When one of the worker processes terminates abruptly, a :exc:" +"`BrokenProcessPool` error is now raised. Previously, behaviour was " "undefined but operations on the executor or its futures would often freeze " "or deadlock." msgstr "" @@ -304,12 +305,11 @@ msgstr "" #: ../../library/concurrent.futures.rst:317 msgid "" -"Return the value returned by the call. If the call hasn't yet completed then" -" this method will wait up to *timeout* seconds. If the call hasn't " -"completed in *timeout* seconds, then a " -":exc:`concurrent.futures.TimeoutError` will be raised. *timeout* can be an " -"int or float. If *timeout* is not specified or ``None``, there is no limit " -"to the wait time." +"Return the value returned by the call. If the call hasn't yet completed then " +"this method will wait up to *timeout* seconds. If the call hasn't completed " +"in *timeout* seconds, then a :exc:`concurrent.futures.TimeoutError` will be " +"raised. *timeout* can be an int or float. If *timeout* is not specified or " +"``None``, there is no limit to the wait time." msgstr "" #: ../../library/concurrent.futures.rst:324 @@ -327,10 +327,9 @@ msgstr "" msgid "" "Return the exception raised by the call. If the call hasn't yet completed " "then this method will wait up to *timeout* seconds. If the call hasn't " -"completed in *timeout* seconds, then a " -":exc:`concurrent.futures.TimeoutError` will be raised. *timeout* can be an " -"int or float. If *timeout* is not specified or ``None``, there is no limit " -"to the wait time." +"completed in *timeout* seconds, then a :exc:`concurrent.futures." +"TimeoutError` will be raised. *timeout* can be an int or float. If " +"*timeout* is not specified or ``None``, there is no limit to the wait time." msgstr "" #: ../../library/concurrent.futures.rst:341 @@ -348,9 +347,9 @@ msgstr "" msgid "" "Added callables are called in the order that they were added and are always " "called in a thread belonging to the process that added them. If the " -"callable raises an :exc:`Exception` subclass, it will be logged and ignored." -" If the callable raises a :exc:`BaseException` subclass, the behavior is " -"undefined." +"callable raises an :exc:`Exception` subclass, it will be logged and " +"ignored. If the callable raises a :exc:`BaseException` subclass, the " +"behavior is undefined." msgstr "" #: ../../library/concurrent.futures.rst:355 @@ -361,8 +360,8 @@ msgstr "" #: ../../library/concurrent.futures.rst:358 msgid "" -"The following :class:`Future` methods are meant for use in unit tests and " -":class:`Executor` implementations." +"The following :class:`Future` methods are meant for use in unit tests and :" +"class:`Executor` implementations." msgstr "" #: ../../library/concurrent.futures.rst:363 @@ -374,10 +373,10 @@ msgstr "" #: ../../library/concurrent.futures.rst:367 msgid "" -"If the method returns ``False`` then the :class:`Future` was cancelled, i.e." -" :meth:`Future.cancel` was called and returned `True`. Any threads waiting " -"on the :class:`Future` completing (i.e. through :func:`as_completed` or " -":func:`wait`) will be woken up." +"If the method returns ``False`` then the :class:`Future` was cancelled, i." +"e. :meth:`Future.cancel` was called and returned `True`. Any threads " +"waiting on the :class:`Future` completing (i.e. through :func:`as_completed` " +"or :func:`wait`) will be woken up." msgstr "" #: ../../library/concurrent.futures.rst:372 @@ -389,8 +388,8 @@ msgstr "" #: ../../library/concurrent.futures.rst:376 msgid "" -"This method can only be called once and cannot be called after " -":meth:`Future.set_result` or :meth:`Future.set_exception` have been called." +"This method can only be called once and cannot be called after :meth:`Future." +"set_result` or :meth:`Future.set_exception` have been called." msgstr "" #: ../../library/concurrent.futures.rst:382 @@ -407,8 +406,8 @@ msgstr "" #: ../../library/concurrent.futures.rst:390 msgid "" -"Sets the result of the work associated with the :class:`Future` to the " -":class:`Exception` *exception*." +"Sets the result of the work associated with the :class:`Future` to the :" +"class:`Exception` *exception*." msgstr "" #: ../../library/concurrent.futures.rst:398 @@ -417,12 +416,12 @@ msgstr "" #: ../../library/concurrent.futures.rst:402 msgid "" -"Wait for the :class:`Future` instances (possibly created by different " -":class:`Executor` instances) given by *fs* to complete. Returns a named " -"2-tuple of sets. The first set, named ``done``, contains the futures that " -"completed (finished or cancelled futures) before the wait completed. The " -"second set, named ``not_done``, contains the futures that did not complete " -"(pending or running futures)." +"Wait for the :class:`Future` instances (possibly created by different :class:" +"`Executor` instances) given by *fs* to complete. Returns a named 2-tuple of " +"sets. The first set, named ``done``, contains the futures that completed " +"(finished or cancelled futures) before the wait completed. The second set, " +"named ``not_done``, contains the futures that did not complete (pending or " +"running futures)." msgstr "" #: ../../library/concurrent.futures.rst:409 @@ -434,8 +433,8 @@ msgstr "" #: ../../library/concurrent.futures.rst:413 msgid "" -"*return_when* indicates when this function should return. It must be one of" -" the following constants:" +"*return_when* indicates when this function should return. It must be one of " +"the following constants:" msgstr "" #: ../../library/concurrent.futures.rst:419 @@ -448,7 +447,7 @@ msgstr "Description (descrição)" #: ../../library/concurrent.futures.rst:421 msgid ":const:`FIRST_COMPLETED`" -msgstr "" +msgstr ":const:`FIRST_COMPLETED`" #: ../../library/concurrent.futures.rst:421 msgid "The function will return when any future finishes or is cancelled." @@ -456,13 +455,13 @@ msgstr "" #: ../../library/concurrent.futures.rst:424 msgid ":const:`FIRST_EXCEPTION`" -msgstr "" +msgstr ":const:`FIRST_EXCEPTION`" #: ../../library/concurrent.futures.rst:424 msgid "" "The function will return when any future finishes by raising an exception. " -"If no future raises an exception then it is equivalent to " -":const:`ALL_COMPLETED`." +"If no future raises an exception then it is equivalent to :const:" +"`ALL_COMPLETED`." msgstr "" #: ../../library/concurrent.futures.rst:430 @@ -478,13 +477,13 @@ msgid "" "Returns an iterator over the :class:`Future` instances (possibly created by " "different :class:`Executor` instances) given by *fs* that yields futures as " "they complete (finished or cancelled futures). Any futures given by *fs* " -"that are duplicated will be returned once. Any futures that completed before" -" :func:`as_completed` is called will be yielded first. The returned " -"iterator raises a :exc:`concurrent.futures.TimeoutError` if " -":meth:`~iterator.__next__` is called and the result isn't available after " -"*timeout* seconds from the original call to :func:`as_completed`. *timeout*" -" can be an int or float. If *timeout* is not specified or ``None``, there is" -" no limit to the wait time." +"that are duplicated will be returned once. Any futures that completed " +"before :func:`as_completed` is called will be yielded first. The returned " +"iterator raises a :exc:`concurrent.futures.TimeoutError` if :meth:`~iterator." +"__next__` is called and the result isn't available after *timeout* seconds " +"from the original call to :func:`as_completed`. *timeout* can be an int or " +"float. If *timeout* is not specified or ``None``, there is no limit to the " +"wait time." msgstr "" #: ../../library/concurrent.futures.rst:450 @@ -518,15 +517,15 @@ msgstr "" #: ../../library/concurrent.futures.rst:479 msgid "" -"Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class" -" is raised when one of the workers of a :class:`ThreadPoolExecutor` has " +"Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class " +"is raised when one of the workers of a :class:`ThreadPoolExecutor` has " "failed initializing." msgstr "" #: ../../library/concurrent.futures.rst:489 msgid "" -"Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly " -":exc:`RuntimeError`), this exception class is raised when one of the workers" -" of a :class:`ProcessPoolExecutor` has terminated in a non-clean fashion " -"(for example, if it was killed from the outside)." +"Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly :exc:" +"`RuntimeError`), this exception class is raised when one of the workers of " +"a :class:`ProcessPoolExecutor` has terminated in a non-clean fashion (for " +"example, if it was killed from the outside)." msgstr "" diff --git a/library/concurrent.po b/library/concurrent.po index c592a65f6..7b310626a 100644 --- a/library/concurrent.po +++ b/library/concurrent.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/configparser.po b/library/configparser.po index e37e66a6b..39bb4a33c 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -98,8 +99,8 @@ msgstr "" #: ../../library/configparser.rst:133 msgid "" "As we can see above, the API is pretty straightforward. The only bit of " -"magic involves the ``DEFAULT`` section which provides default values for all" -" other sections [1]_. Note also that keys in sections are case-insensitive " +"magic involves the ``DEFAULT`` section which provides default values for all " +"other sections [1]_. Note also that keys in sections are case-insensitive " "and stored in lowercase [1]_." msgstr "" @@ -116,8 +117,8 @@ msgstr "" #: ../../library/configparser.rst:153 msgid "" -"Since this task is so common, config parsers provide a range of handy getter" -" methods to handle integers, floats and booleans. The last one is the most " +"Since this task is so common, config parsers provide a range of handy getter " +"methods to handle integers, floats and booleans. The last one is the most " "interesting because simply passing the value to ``bool()`` would do no good " "since ``bool('False')`` is still ``True``. This is why config parsers also " "provide :meth:`~ConfigParser.getboolean`. This method is case-insensitive " @@ -156,15 +157,15 @@ msgstr "" msgid "" "One more thing to be aware of is that the parser-level :meth:`get` method " "provides a custom, more complex interface, maintained for backwards " -"compatibility. When using this method, a fallback value can be provided via" -" the ``fallback`` keyword-only argument:" +"compatibility. When using this method, a fallback value can be provided via " +"the ``fallback`` keyword-only argument:" msgstr "" #: ../../library/configparser.rst:213 msgid "" -"The same ``fallback`` argument can be used with the " -":meth:`~ConfigParser.getint`, :meth:`~ConfigParser.getfloat` and " -":meth:`~ConfigParser.getboolean` methods, for example:" +"The same ``fallback`` argument can be used with the :meth:`~ConfigParser." +"getint`, :meth:`~ConfigParser.getfloat` and :meth:`~ConfigParser.getboolean` " +"methods, for example:" msgstr "" #: ../../library/configparser.rst:229 @@ -175,13 +176,12 @@ msgstr "" msgid "" "A configuration file consists of sections, each led by a ``[section]`` " "header, followed by key/value entries separated by a specific string (``=`` " -"or ``:`` by default [1]_). By default, section names are case sensitive but" -" keys are not [1]_. Leading and trailing whitespace is removed from keys " -"and values. Values can be omitted, in which case the key/value delimiter may" -" also be left out. Values can also span multiple lines, as long as they are" -" indented deeper than the first line of the value. Depending on the " -"parser's mode, blank lines may be treated as parts of multiline values or " -"ignored." +"or ``:`` by default [1]_). By default, section names are case sensitive but " +"keys are not [1]_. Leading and trailing whitespace is removed from keys and " +"values. Values can be omitted, in which case the key/value delimiter may " +"also be left out. Values can also span multiple lines, as long as they are " +"indented deeper than the first line of the value. Depending on the parser's " +"mode, blank lines may be treated as parts of multiline values or ignored." msgstr "" #: ../../library/configparser.rst:240 @@ -208,8 +208,8 @@ msgstr "" #: ../../library/configparser.rst:302 msgid "" -"The default implementation used by :class:`ConfigParser`. It enables values" -" to contain format strings which refer to other values in the same section, " +"The default implementation used by :class:`ConfigParser`. It enables values " +"to contain format strings which refer to other values in the same section, " "or values in the special default section [1]_. Additional default values " "can be provided on initialization." msgstr "" @@ -226,9 +226,9 @@ msgstr "" #: ../../library/configparser.rst:326 msgid "" -"With ``interpolation`` set to ``None``, the parser would simply return " -"``%(my_dir)s/Pictures`` as the value of ``my_pictures`` and " -"``%(home_dir)s/lumberjack`` as the value of ``my_dir``." +"With ``interpolation`` set to ``None``, the parser would simply return ``" +"%(my_dir)s/Pictures`` as the value of ``my_pictures`` and ``%(home_dir)s/" +"lumberjack`` as the value of ``my_dir``." msgstr "" #: ../../library/configparser.rst:334 @@ -236,9 +236,9 @@ msgid "" "An alternative handler for interpolation which implements a more advanced " "syntax, used for instance in ``zc.buildout``. Extended interpolation is " "using ``${section:option}`` to denote a value from a foreign section. " -"Interpolation can span multiple levels. For convenience, if the " -"``section:`` part is omitted, interpolation defaults to the current section " -"(and possibly the default values from the special section)." +"Interpolation can span multiple levels. For convenience, if the ``section:" +"`` part is omitted, interpolation defaults to the current section (and " +"possibly the default values from the special section)." msgstr "" #: ../../library/configparser.rst:341 @@ -258,41 +258,41 @@ msgstr "" #: ../../library/configparser.rst:380 msgid "" "Mapping protocol access is a generic name for functionality that enables " -"using custom objects as if they were dictionaries. In case of " -":mod:`configparser`, the mapping interface implementation is using the " +"using custom objects as if they were dictionaries. In case of :mod:" +"`configparser`, the mapping interface implementation is using the " "``parser['section']['option']`` notation." msgstr "" #: ../../library/configparser.rst:385 msgid "" "``parser['section']`` in particular returns a proxy for the section's data " -"in the parser. This means that the values are not copied but they are taken" -" from the original parser on demand. What's even more important is that " -"when values are changed on a section proxy, they are actually mutated in the" -" original parser." +"in the parser. This means that the values are not copied but they are taken " +"from the original parser on demand. What's even more important is that when " +"values are changed on a section proxy, they are actually mutated in the " +"original parser." msgstr "" #: ../../library/configparser.rst:391 msgid "" ":mod:`configparser` objects behave as close to actual dictionaries as " -"possible. The mapping interface is complete and adheres to the " -":class:`~collections.abc.MutableMapping` ABC. However, there are a few " -"differences that should be taken into account:" +"possible. The mapping interface is complete and adheres to the :class:" +"`~collections.abc.MutableMapping` ABC. However, there are a few differences " +"that should be taken into account:" msgstr "" #: ../../library/configparser.rst:396 msgid "" -"By default, all keys in sections are accessible in a case-insensitive manner" -" [1]_. E.g. ``for option in parser[\"section\"]`` yields only " -"``optionxform``'ed option key names. This means lowercased keys by default." -" At the same time, for a section that holds the key ``'a'``, both " +"By default, all keys in sections are accessible in a case-insensitive manner " +"[1]_. E.g. ``for option in parser[\"section\"]`` yields only " +"``optionxform``'ed option key names. This means lowercased keys by " +"default. At the same time, for a section that holds the key ``'a'``, both " "expressions return ``True``::" msgstr "" #: ../../library/configparser.rst:404 msgid "" -"All sections include ``DEFAULTSECT`` values as well which means that " -"``.clear()`` on a section may not leave the section visibly empty. This is " +"All sections include ``DEFAULTSECT`` values as well which means that ``." +"clear()`` on a section may not leave the section visibly empty. This is " "because default values cannot be deleted from the section (because " "technically they are not there). If they are overridden in the section, " "deleting causes the default value to be visible again. Trying to delete a " @@ -317,8 +317,8 @@ msgstr "" #: ../../library/configparser.rst:419 msgid "" -"``parser.get(section, option, **kwargs)`` - the second argument is **not** a" -" fallback value. Note however that the section-level ``get()`` methods are " +"``parser.get(section, option, **kwargs)`` - the second argument is **not** a " +"fallback value. Note however that the section-level ``get()`` methods are " "compatible both with the mapping protocol and the classic configparser API." msgstr "" @@ -326,17 +326,17 @@ msgstr "" msgid "" "``parser.items()`` is compatible with the mapping protocol (returns a list " "of *section_name*, *section_proxy* pairs including the DEFAULTSECT). " -"However, this method can also be invoked with arguments: " -"``parser.items(section, raw, vars)``. The latter call returns a list of " -"*option*, *value* pairs for a specified ``section``, with all interpolations" -" expanded (unless ``raw=True`` is provided)." +"However, this method can also be invoked with arguments: ``parser." +"items(section, raw, vars)``. The latter call returns a list of *option*, " +"*value* pairs for a specified ``section``, with all interpolations expanded " +"(unless ``raw=True`` is provided)." msgstr "" #: ../../library/configparser.rst:430 msgid "" "The mapping protocol is implemented on top of the existing legacy API so " -"that subclasses overriding the original interface still should have mappings" -" working as expected." +"that subclasses overriding the original interface still should have mappings " +"working as expected." msgstr "" #: ../../library/configparser.rst:436 @@ -345,11 +345,11 @@ msgstr "" #: ../../library/configparser.rst:438 msgid "" -"There are nearly as many INI format variants as there are applications using" -" it. :mod:`configparser` goes a long way to provide support for the largest " +"There are nearly as many INI format variants as there are applications using " +"it. :mod:`configparser` goes a long way to provide support for the largest " "sensible set of INI styles available. The default functionality is mainly " -"dictated by historical background and it's very likely that you will want to" -" customize some of the features." +"dictated by historical background and it's very likely that you will want to " +"customize some of the features." msgstr "" #: ../../library/configparser.rst:444 @@ -372,8 +372,8 @@ msgstr "" #: ../../library/configparser.rst:454 msgid "" -"Hint: if you want to specify default values for a specific section, use " -":meth:`read_dict` before you read the actual file." +"Hint: if you want to specify default values for a specific section, use :" +"meth:`read_dict` before you read the actual file." msgstr "" #: ../../library/configparser.rst:457 @@ -398,8 +398,8 @@ msgstr "" #: ../../library/configparser.rst:468 msgid "" "Please note: there are ways to add a set of key-value pairs in a single " -"operation. When you use a regular dictionary in those operations, the order" -" of the keys will be ordered because dict preserves order from Python 3.7. " +"operation. When you use a regular dictionary in those operations, the order " +"of the keys will be ordered because dict preserves order from Python 3.7. " "For example:" msgstr "" @@ -410,8 +410,8 @@ msgstr "" #: ../../library/configparser.rst:493 msgid "" "Some configuration files are known to include settings without values, but " -"which otherwise conform to the syntax supported by :mod:`configparser`. The" -" *allow_no_value* parameter to the constructor can be used to indicate that " +"which otherwise conform to the syntax supported by :mod:`configparser`. The " +"*allow_no_value* parameter to the constructor can be used to indicate that " "such values should be accepted:" msgstr "" @@ -428,8 +428,8 @@ msgstr "" #: ../../library/configparser.rst:534 msgid "" -"See also the *space_around_delimiters* argument to " -":meth:`ConfigParser.write`." +"See also the *space_around_delimiters* argument to :meth:`ConfigParser." +"write`." msgstr "" #: ../../library/configparser.rst:537 @@ -473,8 +473,8 @@ msgstr "*strict*, o valor padrão é: ``True``" #: ../../library/configparser.rst:600 msgid "" "When set to ``True``, the parser will not allow for any section or option " -"duplicates while reading from a single source (using :meth:`read_file`, " -":meth:`read_string` or :meth:`read_dict`). It is recommended to use strict " +"duplicates while reading from a single source (using :meth:`read_file`, :" +"meth:`read_string` or :meth:`read_dict`). It is recommended to use strict " "parsers in new applications." msgstr "" @@ -509,11 +509,11 @@ msgstr "" #: ../../library/configparser.rst:632 msgid "" -"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: " -"``\"DEFAULT\"``)" +"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: ``" +"\"DEFAULT\"``)" msgstr "" -"*default_section*, valor default: ``configparser.DEFAULTSECT`` (isto é: " -"``\"DEFAULT\"``)" +"*default_section*, valor default: ``configparser.DEFAULTSECT`` (isto é: ``" +"\"DEFAULT\"``)" #: ../../library/configparser.rst:635 msgid "" @@ -521,12 +521,12 @@ msgid "" "sections or interpolation purposes is a powerful concept of this library, " "letting users create complex declarative configurations. This section is " "normally called ``\"DEFAULT\"`` but this can be customized to point to any " -"other valid section name. Some typical values include: ``\"general\"`` or " -"``\"common\"``. The name provided is used for recognizing default sections " +"other valid section name. Some typical values include: ``\"general\"`` or ``" +"\"common\"``. The name provided is used for recognizing default sections " "when reading from any source and is used when writing configuration back to " -"a file. Its current value can be retrieved using the " -"``parser_instance.default_section`` attribute and may be modified at runtime" -" (i.e. to convert files from one format to another)." +"a file. Its current value can be retrieved using the ``parser_instance." +"default_section`` attribute and may be modified at runtime (i.e. to convert " +"files from one format to another)." msgstr "" #: ../../library/configparser.rst:646 @@ -539,8 +539,8 @@ msgid "" "through the *interpolation* argument. ``None`` can be used to turn off " "interpolation completely, ``ExtendedInterpolation()`` provides a more " "advanced variant inspired by ``zc.buildout``. More on the subject in the " -"`dedicated documentation section <#interpolation-of-values>`_. " -":class:`RawConfigParser` has a default value of ``None``." +"`dedicated documentation section <#interpolation-of-values>`_. :class:" +"`RawConfigParser` has a default value of ``None``." msgstr "" #: ../../library/configparser.rst:655 @@ -550,13 +550,13 @@ msgstr "*converters*, valor default : not set" #: ../../library/configparser.rst:657 msgid "" "Config parsers provide option value getters that perform type conversion. " -"By default :meth:`~ConfigParser.getint`, :meth:`~ConfigParser.getfloat`, and" -" :meth:`~ConfigParser.getboolean` are implemented. Should other getters be " -"desirable, users may define them in a subclass or pass a dictionary where " +"By default :meth:`~ConfigParser.getint`, :meth:`~ConfigParser.getfloat`, " +"and :meth:`~ConfigParser.getboolean` are implemented. Should other getters " +"be desirable, users may define them in a subclass or pass a dictionary where " "each key is a name of the converter and each value is a callable " -"implementing said conversion. For instance, passing ``{'decimal': " -"decimal.Decimal}`` would add :meth:`getdecimal` on both the parser object " -"and all section proxies. In other words, it will be possible to write both " +"implementing said conversion. For instance, passing ``{'decimal': decimal." +"Decimal}`` would add :meth:`getdecimal` on both the parser object and all " +"section proxies. In other words, it will be possible to write both " "``parser_instance.getdecimal('section', 'key', fallback=0)`` and " "``parser_instance['section'].getdecimal('key', 0)``." msgstr "" @@ -580,15 +580,15 @@ msgstr "" msgid "" "By default when using :meth:`~ConfigParser.getboolean`, config parsers " "consider the following values ``True``: ``'1'``, ``'yes'``, ``'true'``, " -"``'on'`` and the following values ``False``: ``'0'``, ``'no'``, ``'false'``," -" ``'off'``. You can override this by specifying a custom dictionary of " +"``'on'`` and the following values ``False``: ``'0'``, ``'no'``, ``'false'``, " +"``'off'``. You can override this by specifying a custom dictionary of " "strings and their Boolean outcomes. For example:" msgstr "" #: ../../library/configparser.rst:697 msgid "" -"Other typical Boolean pairs include ``accept``/``reject`` or " -"``enabled``/``disabled``." +"Other typical Boolean pairs include ``accept``/``reject`` or ``enabled``/" +"``disabled``." msgstr "" #: ../../library/configparser.rst:702 @@ -609,10 +609,10 @@ msgstr "" #: ../../library/configparser.rst:739 msgid "" "A compiled regular expression used to parse section headers. The default " -"matches ``[section]`` to the name ``\"section\"``. Whitespace is considered" -" part of the section name, thus ``[ larch ]`` will be read as a section of" -" name ``\" larch \"``. Override this attribute if that's unsuitable. For" -" example:" +"matches ``[section]`` to the name ``\"section\"``. Whitespace is considered " +"part of the section name, thus ``[ larch ]`` will be read as a section of " +"name ``\" larch \"``. Override this attribute if that's unsuitable. For " +"example:" msgstr "" #: ../../library/configparser.rst:767 @@ -678,20 +678,20 @@ msgstr "" msgid "" "When *strict* is ``True`` (the default), the parser won't allow for any " "section or option duplicates while reading from a single source (file, " -"string or dictionary), raising :exc:`DuplicateSectionError` or " -":exc:`DuplicateOptionError`. When *empty_lines_in_values* is ``False`` " -"(default: ``True``), each empty line marks the end of an option. Otherwise," -" internal empty lines of a multiline option are kept as part of the value. " -"When *allow_no_value* is ``True`` (default: ``False``), options without " -"values are accepted; the value held for these is ``None`` and they are " -"serialized without the trailing delimiter." +"string or dictionary), raising :exc:`DuplicateSectionError` or :exc:" +"`DuplicateOptionError`. When *empty_lines_in_values* is ``False`` (default: " +"``True``), each empty line marks the end of an option. Otherwise, internal " +"empty lines of a multiline option are kept as part of the value. When " +"*allow_no_value* is ``True`` (default: ``False``), options without values " +"are accepted; the value held for these is ``None`` and they are serialized " +"without the trailing delimiter." msgstr "" #: ../../library/configparser.rst:898 msgid "" "When *default_section* is given, it specifies the name for the special " -"section holding default values for other sections and interpolation purposes" -" (normally named ``\"DEFAULT\"``). This value can be retrieved and changed " +"section holding default values for other sections and interpolation purposes " +"(normally named ``\"DEFAULT\"``). This value can be retrieved and changed " "on runtime using the ``default_section`` instance attribute." msgstr "" @@ -706,8 +706,8 @@ msgstr "" #: ../../library/configparser.rst:909 msgid "" -"All option names used in interpolation will be passed through the " -":meth:`optionxform` method just like any other option name reference. For " +"All option names used in interpolation will be passed through the :meth:" +"`optionxform` method just like any other option name reference. For " "example, using the default implementation of :meth:`optionxform` (which " "converts option names to lower case), the values ``foo %(bar)s`` and ``foo " "%(BAR)s`` are equivalent." @@ -777,8 +777,8 @@ msgstr "" #: ../../library/configparser.rst:972 msgid "" -"If the given *section* exists, and contains the given *option*, return " -":const:`True`; otherwise return :const:`False`. If the specified *section* " +"If the given *section* exists, and contains the given *option*, return :" +"const:`True`; otherwise return :const:`False`. If the specified *section* " "is :const:`None` or an empty string, DEFAULT is assumed." msgstr "" @@ -791,8 +791,8 @@ msgstr "" #: ../../library/configparser.rst:982 msgid "" "If *filenames* is a string, a :class:`bytes` object or a :term:`path-like " -"object`, it is treated as a single filename. If a file named in *filenames*" -" cannot be opened, that file will be ignored. This is designed so that you " +"object`, it is treated as a single filename. If a file named in *filenames* " +"cannot be opened, that file will be ignored. This is designed so that you " "can specify an iterable of potential configuration file locations (for " "example, the current directory, the user's home directory, and some system-" "wide directory), and all existing configuration files in the iterable will " @@ -803,14 +803,14 @@ msgstr "" msgid "" "If none of the named files exist, the :class:`ConfigParser` instance will " "contain an empty dataset. An application which requires initial values to " -"be loaded from a file should load the required file or files using " -":meth:`read_file` before calling :meth:`read` for any optional files::" +"be loaded from a file should load the required file or files using :meth:" +"`read_file` before calling :meth:`read` for any optional files::" msgstr "" #: ../../library/configparser.rst:1004 msgid "" -"The *encoding* parameter. Previously, all files were read using the default" -" encoding for :func:`open`." +"The *encoding* parameter. Previously, all files were read using the default " +"encoding for :func:`open`." msgstr "" #: ../../library/configparser.rst:1008 @@ -879,16 +879,16 @@ msgstr "" #: ../../library/configparser.rst:1062 msgid "" -"All the ``'%'`` interpolations are expanded in the return values, unless the" -" *raw* argument is true. Values for interpolation keys are looked up in the" -" same manner as the option." +"All the ``'%'`` interpolations are expanded in the return values, unless the " +"*raw* argument is true. Values for interpolation keys are looked up in the " +"same manner as the option." msgstr "" #: ../../library/configparser.rst:1066 msgid "" "Arguments *raw*, *vars* and *fallback* are keyword only to protect users " -"from trying to use the third argument as the *fallback* fallback (especially" -" when using the mapping protocol)." +"from trying to use the third argument as the *fallback* fallback (especially " +"when using the mapping protocol)." msgstr "" #: ../../library/configparser.rst:1074 @@ -912,8 +912,8 @@ msgid "" "``'1'``, ``'yes'``, ``'true'``, and ``'on'``, which cause this method to " "return ``True``, and ``'0'``, ``'no'``, ``'false'``, and ``'off'``, which " "cause it to return ``False``. These string values are checked in a case-" -"insensitive manner. Any other value will cause it to raise " -":exc:`ValueError`. See :meth:`get` for explanation of *raw*, *vars* and " +"insensitive manner. Any other value will cause it to raise :exc:" +"`ValueError`. See :meth:`get` for explanation of *raw*, *vars* and " "*fallback*." msgstr "" @@ -926,8 +926,8 @@ msgstr "" #: ../../library/configparser.rst:1104 msgid "" "Otherwise, return a list of *name*, *value* pairs for the options in the " -"given *section*. Optional arguments have the same meaning as for the " -":meth:`get` method." +"given *section*. Optional arguments have the same meaning as for the :meth:" +"`get` method." msgstr "" #: ../../library/configparser.rst:1111 @@ -1000,15 +1000,15 @@ msgstr "" #: ../../library/configparser.rst:1177 msgid "" -"Instead of ``parser.readfp(fp)`` use " -"``parser.read_file(readline_generator(fp))``." +"Instead of ``parser.readfp(fp)`` use ``parser." +"read_file(readline_generator(fp))``." msgstr "" #: ../../library/configparser.rst:1183 msgid "" -"The maximum depth for recursive interpolation for :meth:`get` when the *raw*" -" parameter is false. This is relevant only when the default *interpolation*" -" is used." +"The maximum depth for recursive interpolation for :meth:`get` when the *raw* " +"parameter is false. This is relevant only when the default *interpolation* " +"is used." msgstr "" #: ../../library/configparser.rst:1191 @@ -1018,8 +1018,8 @@ msgstr "" #: ../../library/configparser.rst:1201 msgid "" "Legacy variant of the :class:`ConfigParser`. It has interpolation disabled " -"by default and allows for non-string section names, option names, and values" -" via its unsafe ``add_section`` and ``set`` methods, as well as the legacy " +"by default and allows for non-string section names, option names, and values " +"via its unsafe ``add_section`` and ``set`` methods, as well as the legacy " "``defaults=`` keyword argument handling." msgstr "" @@ -1046,9 +1046,9 @@ msgstr "" #: ../../library/configparser.rst:1224 msgid "" "If the given section exists, set the given option to the specified value; " -"otherwise raise :exc:`NoSectionError`. While it is possible to use " -":class:`RawConfigParser` (or :class:`ConfigParser` with *raw* parameters set" -" to true) for *internal* storage of non-string values, full functionality " +"otherwise raise :exc:`NoSectionError`. While it is possible to use :class:" +"`RawConfigParser` (or :class:`ConfigParser` with *raw* parameters set to " +"true) for *internal* storage of non-string values, full functionality " "(including interpolation and output to files) can only be achieved using " "string values." msgstr "" @@ -1056,9 +1056,9 @@ msgstr "" #: ../../library/configparser.rst:1231 msgid "" "This method lets users assign non-string values to keys internally. This " -"behaviour is unsupported and will cause errors when attempting to write to a" -" file or get it in non-raw mode. **Use the mapping protocol API** which " -"does not allow such assignments to take place." +"behaviour is unsupported and will cause errors when attempting to write to a " +"file or get it in non-raw mode. **Use the mapping protocol API** which does " +"not allow such assignments to take place." msgstr "" #: ../../library/configparser.rst:1238 @@ -1075,15 +1075,15 @@ msgstr "" #: ../../library/configparser.rst:1252 msgid "" -"Exception raised if :meth:`add_section` is called with the name of a section" -" that is already present or in strict parsers when a section if found more " +"Exception raised if :meth:`add_section` is called with the name of a section " +"that is already present or in strict parsers when a section if found more " "than once in a single input file, string or dictionary." msgstr "" #: ../../library/configparser.rst:1256 msgid "" -"Optional ``source`` and ``lineno`` attributes and arguments to " -":meth:`__init__` were added." +"Optional ``source`` and ``lineno`` attributes and arguments to :meth:" +"`__init__` were added." msgstr "" #: ../../library/configparser.rst:1263 @@ -1109,8 +1109,8 @@ msgstr "" #: ../../library/configparser.rst:1283 msgid "" "Exception raised when string interpolation cannot be completed because the " -"number of iterations exceeds :const:`MAX_INTERPOLATION_DEPTH`. Subclass of " -":exc:`InterpolationError`." +"number of iterations exceeds :const:`MAX_INTERPOLATION_DEPTH`. Subclass of :" +"exc:`InterpolationError`." msgstr "" #: ../../library/configparser.rst:1290 @@ -1121,8 +1121,8 @@ msgstr "" #: ../../library/configparser.rst:1296 msgid "" -"Exception raised when the source text into which substitutions are made does" -" not conform to the required syntax. Subclass of :exc:`InterpolationError`." +"Exception raised when the source text into which substitutions are made does " +"not conform to the required syntax. Subclass of :exc:`InterpolationError`." msgstr "" #: ../../library/configparser.rst:1302 diff --git a/library/constants.po b/library/constants.po index 67ce641bf..1f43fc56e 100644 --- a/library/constants.po +++ b/library/constants.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,18 +47,18 @@ msgstr "" msgid "" "The sole value of the type ``NoneType``. ``None`` is frequently used to " "represent the absence of a value, as when default arguments are not passed " -"to a function. Assignments to ``None`` are illegal and raise a " -":exc:`SyntaxError`." +"to a function. Assignments to ``None`` are illegal and raise a :exc:" +"`SyntaxError`." msgstr "" #: ../../library/constants.rst:29 msgid "" -"Special value which should be returned by the binary special methods (e.g. " -":meth:`__eq__`, :meth:`__lt__`, :meth:`__add__`, :meth:`__rsub__`, etc.) to " +"Special value which should be returned by the binary special methods (e.g. :" +"meth:`__eq__`, :meth:`__lt__`, :meth:`__add__`, :meth:`__rsub__`, etc.) to " "indicate that the operation is not implemented with respect to the other " -"type; may be returned by the in-place binary special methods (e.g. " -":meth:`__imul__`, :meth:`__iand__`, etc.) for the same purpose. Its truth " -"value is true." +"type; may be returned by the in-place binary special methods (e.g. :meth:" +"`__imul__`, :meth:`__iand__`, etc.) for the same purpose. Its truth value is " +"true." msgstr "" #: ../../library/constants.rst:38 @@ -72,12 +74,13 @@ msgstr "" #: ../../library/constants.rst:45 msgid "See :ref:`implementing-the-arithmetic-operations` for examples." msgstr "" +"Consulte :ref:`implementing-the-arithmetic-operations` para ver exemplos." #: ../../library/constants.rst:49 msgid "" -"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even" -" though they have similar names and purposes. See :exc:`NotImplementedError`" -" for details on when to use it." +"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even " +"though they have similar names and purposes. See :exc:`NotImplementedError` " +"for details on when to use it." msgstr "" #: ../../library/constants.rst:57 @@ -89,15 +92,15 @@ msgstr "" #: ../../library/constants.rst:63 msgid "" -"This constant is true if Python was not started with an :option:`-O` option." -" See also the :keyword:`assert` statement." +"This constant is true if Python was not started with an :option:`-O` option. " +"See also the :keyword:`assert` statement." msgstr "" #: ../../library/constants.rst:69 msgid "" "The names :data:`None`, :data:`False`, :data:`True` and :data:`__debug__` " -"cannot be reassigned (assignments to them, even as an attribute name, raise " -":exc:`SyntaxError`), so they can be considered \"true\" constants." +"cannot be reassigned (assignments to them, even as an attribute name, raise :" +"exc:`SyntaxError`), so they can be considered \"true\" constants." msgstr "" #: ../../library/constants.rst:75 @@ -114,15 +117,15 @@ msgstr "" #: ../../library/constants.rst:85 msgid "" -"Objects that when printed, print a message like \"Use quit() or Ctrl-D (i.e." -" EOF) to exit\", and when called, raise :exc:`SystemExit` with the specified" -" exit code." +"Objects that when printed, print a message like \"Use quit() or Ctrl-D (i.e. " +"EOF) to exit\", and when called, raise :exc:`SystemExit` with the specified " +"exit code." msgstr "" #: ../../library/constants.rst:92 msgid "" -"Objects that when printed or called, print the text of copyright or credits," -" respectively." +"Objects that when printed or called, print the text of copyright or credits, " +"respectively." msgstr "" #: ../../library/constants.rst:97 diff --git a/library/contextlib.po b/library/contextlib.po index 2db3f45ad..d822879fd 100644 --- a/library/contextlib.po +++ b/library/contextlib.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,9 +34,9 @@ msgstr "**Código Fonte:** :source:`Lib/contextlib.py`" #: ../../library/contextlib.rst:11 msgid "" -"This module provides utilities for common tasks involving the " -":keyword:`with` statement. For more information see also " -":ref:`typecontextmanager` and :ref:`context-managers`." +"This module provides utilities for common tasks involving the :keyword:" +"`with` statement. For more information see also :ref:`typecontextmanager` " +"and :ref:`context-managers`." msgstr "" #: ../../library/contextlib.rst:17 @@ -47,22 +49,20 @@ msgstr "" #: ../../library/contextlib.rst:23 msgid "" -"An :term:`abstract base class` for classes that implement " -":meth:`object.__enter__` and :meth:`object.__exit__`. A default " -"implementation for :meth:`object.__enter__` is provided which returns " -"``self`` while :meth:`object.__exit__` is an abstract method which by " -"default returns ``None``. See also the definition of " -":ref:`typecontextmanager`." +"An :term:`abstract base class` for classes that implement :meth:`object." +"__enter__` and :meth:`object.__exit__`. A default implementation for :meth:" +"`object.__enter__` is provided which returns ``self`` while :meth:`object." +"__exit__` is an abstract method which by default returns ``None``. See also " +"the definition of :ref:`typecontextmanager`." msgstr "" #: ../../library/contextlib.rst:34 msgid "" -"An :term:`abstract base class` for classes that implement " -":meth:`object.__aenter__` and :meth:`object.__aexit__`. A default " -"implementation for :meth:`object.__aenter__` is provided which returns " -"``self`` while :meth:`object.__aexit__` is an abstract method which by " -"default returns ``None``. See also the definition of :ref:`async-context-" -"managers`." +"An :term:`abstract base class` for classes that implement :meth:`object." +"__aenter__` and :meth:`object.__aexit__`. A default implementation for :meth:" +"`object.__aenter__` is provided which returns ``self`` while :meth:`object." +"__aexit__` is an abstract method which by default returns ``None``. See also " +"the definition of :ref:`async-context-managers`." msgstr "" #: ../../library/contextlib.rst:46 @@ -76,8 +76,8 @@ msgstr "" msgid "" "While many objects natively support use in with statements, sometimes a " "resource needs to be managed that isn't a context manager in its own right, " -"and doesn't implement a ``close()`` method for use with " -"``contextlib.closing``" +"and doesn't implement a ``close()`` method for use with ``contextlib." +"closing``" msgstr "" #: ../../library/contextlib.rst:54 @@ -90,17 +90,16 @@ msgstr "" msgid "" "The function being decorated must return a :term:`generator`-iterator when " "called. This iterator must yield exactly one value, which will be bound to " -"the targets in the :keyword:`with` statement's :keyword:`!as` clause, if " -"any." +"the targets in the :keyword:`with` statement's :keyword:`!as` clause, if any." msgstr "" #: ../../library/contextlib.rst:77 msgid "" -"At the point where the generator yields, the block nested in the " -":keyword:`with` statement is executed. The generator is then resumed after " -"the block is exited. If an unhandled exception occurs in the block, it is " -"reraised inside the generator at the point where the yield occurred. Thus, " -"you can use a :keyword:`try`...\\ :keyword:`except`...\\ :keyword:`finally` " +"At the point where the generator yields, the block nested in the :keyword:" +"`with` statement is executed. The generator is then resumed after the block " +"is exited. If an unhandled exception occurs in the block, it is reraised " +"inside the generator at the point where the yield occurred. Thus, you can " +"use a :keyword:`try`...\\ :keyword:`except`...\\ :keyword:`finally` " "statement to trap the error (if any), or ensure that some cleanup takes " "place. If an exception is trapped merely in order to log it or to perform " "some action (rather than to suppress it entirely), the generator must " @@ -114,8 +113,8 @@ msgstr "" msgid "" ":func:`contextmanager` uses :class:`ContextDecorator` so the context " "managers it creates can be used as decorators as well as in :keyword:`with` " -"statements. When used as a decorator, a new generator instance is implicitly" -" created on each function call (this allows the otherwise \"one-shot\" " +"statements. When used as a decorator, a new generator instance is implicitly " +"created on each function call (this allows the otherwise \"one-shot\" " "context managers created by :func:`contextmanager` to meet the requirement " "that context managers support multiple invocations in order to be used as " "decorators)." @@ -127,22 +126,22 @@ msgstr "" #: ../../library/contextlib.rst:102 msgid "" -"Similar to :func:`~contextlib.contextmanager`, but creates an " -":ref:`asynchronous context manager `." +"Similar to :func:`~contextlib.contextmanager`, but creates an :ref:" +"`asynchronous context manager `." msgstr "" #: ../../library/contextlib.rst:105 msgid "" "This function is a :term:`decorator` that can be used to define a factory " "function for :keyword:`async with` statement asynchronous context managers, " -"without needing to create a class or separate :meth:`__aenter__` and " -":meth:`__aexit__` methods. It must be applied to an :term:`asynchronous " -"generator` function." +"without needing to create a class or separate :meth:`__aenter__` and :meth:" +"`__aexit__` methods. It must be applied to an :term:`asynchronous generator` " +"function." msgstr "" #: ../../library/contextlib.rst:111 msgid "A simple example::" -msgstr "" +msgstr "Um exemplo simples::" #: ../../library/contextlib.rst:132 msgid "" @@ -162,8 +161,8 @@ msgstr "" #: ../../library/contextlib.rst:161 msgid "" -"Return a context manager that returns *enter_result* from ``__enter__``, but" -" otherwise does nothing. It is intended to be used as a stand-in for an " +"Return a context manager that returns *enter_result* from ``__enter__``, but " +"otherwise does nothing. It is intended to be used as a stand-in for an " "optional context manager, for example::" msgstr "" @@ -182,8 +181,8 @@ msgstr "" msgid "" "As with any other mechanism that completely suppresses exceptions, this " "context manager should be used only to cover very specific errors where " -"silently continuing with program execution is known to be the right thing to" -" do." +"silently continuing with program execution is known to be the right thing to " +"do." msgstr "" #: ../../library/contextlib.rst:202 @@ -214,14 +213,14 @@ msgstr "" #: ../../library/contextlib.rst:237 msgid "" "For example, the output of :func:`help` normally is sent to *sys.stdout*. " -"You can capture that output in a string by redirecting the output to an " -":class:`io.StringIO` object::" +"You can capture that output in a string by redirecting the output to an :" +"class:`io.StringIO` object::" msgstr "" #: ../../library/contextlib.rst:246 msgid "" -"To send the output of :func:`help` to a file on disk, redirect the output to" -" a regular file::" +"To send the output of :func:`help` to a file on disk, redirect the output to " +"a regular file::" msgstr "" #: ../../library/contextlib.rst:253 @@ -238,8 +237,8 @@ msgstr "" #: ../../library/contextlib.rst:270 msgid "" -"Similar to :func:`~contextlib.redirect_stdout` but redirecting " -":data:`sys.stderr` to another file or file-like object." +"Similar to :func:`~contextlib.redirect_stdout` but redirecting :data:`sys." +"stderr` to another file or file-like object." msgstr "" #: ../../library/contextlib.rst:280 @@ -266,8 +265,7 @@ msgstr "" #: ../../library/contextlib.rst:318 msgid "" -"This change is just syntactic sugar for any construct of the following " -"form::" +"This change is just syntactic sugar for any construct of the following form::" msgstr "" #: ../../library/contextlib.rst:324 @@ -276,8 +274,8 @@ msgstr "" #: ../../library/contextlib.rst:330 msgid "" -"It makes it clear that the ``cm`` applies to the whole function, rather than" -" just a piece of it (and saving an indentation level is nice, too)." +"It makes it clear that the ``cm`` applies to the whole function, rather than " +"just a piece of it (and saving an indentation level is nice, too)." msgstr "" #: ../../library/contextlib.rst:333 @@ -303,8 +301,8 @@ msgstr "" #: ../../library/contextlib.rst:360 msgid "" -"For example, a set of files may easily be handled in a single with statement" -" as follows::" +"For example, a set of files may easily be handled in a single with statement " +"as follows::" msgstr "" #: ../../library/contextlib.rst:369 @@ -318,14 +316,14 @@ msgstr "" #: ../../library/contextlib.rst:374 msgid "" "This stack model is used so that context managers that acquire their " -"resources in their ``__init__`` method (such as file objects) can be handled" -" correctly." +"resources in their ``__init__`` method (such as file objects) can be handled " +"correctly." msgstr "" #: ../../library/contextlib.rst:378 msgid "" -"Since registered callbacks are invoked in the reverse order of registration," -" this ends up behaving as if multiple nested :keyword:`with` statements had " +"Since registered callbacks are invoked in the reverse order of registration, " +"this ends up behaving as if multiple nested :keyword:`with` statements had " "been used with the registered set of callbacks. This even extends to " "exception handling - if an inner callback suppresses or replaces an " "exception, then outer callbacks will be passed arguments based on that " @@ -343,8 +341,8 @@ msgstr "" #: ../../library/contextlib.rst:394 msgid "" "Enters a new context manager and adds its :meth:`__exit__` method to the " -"callback stack. The return value is the result of the context manager's own " -":meth:`__enter__` method." +"callback stack. The return value is the result of the context manager's own :" +"meth:`__enter__` method." msgstr "" #: ../../library/contextlib.rst:398 @@ -354,21 +352,20 @@ msgid "" msgstr "" #: ../../library/contextlib.rst:403 -msgid "" -"Adds a context manager's :meth:`__exit__` method to the callback stack." +msgid "Adds a context manager's :meth:`__exit__` method to the callback stack." msgstr "" #: ../../library/contextlib.rst:405 msgid "" "As ``__enter__`` is *not* invoked, this method can be used to cover part of " -"an :meth:`__enter__` implementation with a context manager's own " -":meth:`__exit__` method." +"an :meth:`__enter__` implementation with a context manager's own :meth:" +"`__exit__` method." msgstr "" #: ../../library/contextlib.rst:409 msgid "" -"If passed an object that is not a context manager, this method assumes it is" -" a callback with the same signature as a context manager's :meth:`__exit__` " +"If passed an object that is not a context manager, this method assumes it is " +"a callback with the same signature as a context manager's :meth:`__exit__` " "method and adds it directly to the callback stack." msgstr "" @@ -406,8 +403,8 @@ msgstr "" msgid "" "Transfers the callback stack to a fresh :class:`ExitStack` instance and " "returns it. No callbacks are invoked by this operation - instead, they will " -"now be invoked when the new stack is closed (either explicitly or implicitly" -" at the end of a :keyword:`with` statement)." +"now be invoked when the new stack is closed (either explicitly or implicitly " +"at the end of a :keyword:`with` statement)." msgstr "" #: ../../library/contextlib.rst:437 @@ -420,16 +417,14 @@ msgstr "" msgid "" "Immediately unwinds the callback stack, invoking callbacks in the reverse " "order of registration. For any context managers and exit callbacks " -"registered, the arguments passed in will indicate that no exception " -"occurred." +"registered, the arguments passed in will indicate that no exception occurred." msgstr "" #: ../../library/contextlib.rst:458 msgid "" -"An :ref:`asynchronous context manager `, similar to " -":class:`ExitStack`, that supports combining both synchronous and " -"asynchronous context managers, as well as having coroutines for cleanup " -"logic." +"An :ref:`asynchronous context manager `, similar to :" +"class:`ExitStack`, that supports combining both synchronous and asynchronous " +"context managers, as well as having coroutines for cleanup logic." msgstr "" #: ../../library/contextlib.rst:463 @@ -440,8 +435,7 @@ msgstr "" #: ../../library/contextlib.rst:468 msgid "" -"Similar to :meth:`enter_context` but expects an asynchronous context " -"manager." +"Similar to :meth:`enter_context` but expects an asynchronous context manager." msgstr "" #: ../../library/contextlib.rst:473 @@ -468,8 +462,8 @@ msgstr "" #: ../../library/contextlib.rst:498 msgid "" -"This section describes some examples and recipes for making effective use of" -" the tools provided by :mod:`contextlib`." +"This section describes some examples and recipes for making effective use of " +"the tools provided by :mod:`contextlib`." msgstr "" #: ../../library/contextlib.rst:503 @@ -488,8 +482,8 @@ msgstr "" #: ../../library/contextlib.rst:520 msgid "" -"As shown, :class:`ExitStack` also makes it quite easy to use :keyword:`with`" -" statements to manage arbitrary resources that don't natively support the " +"As shown, :class:`ExitStack` also makes it quite easy to use :keyword:`with` " +"statements to manage arbitrary resources that don't natively support the " "context management protocol." msgstr "" @@ -500,21 +494,21 @@ msgstr "" #: ../../library/contextlib.rst:528 msgid "" "It is occasionally desirable to catch exceptions from an ``__enter__`` " -"method implementation, *without* inadvertently catching exceptions from the " -":keyword:`with` statement body or the context manager's ``__exit__`` method." -" By using :class:`ExitStack` the steps in the context management protocol " -"can be separated slightly in order to allow this::" +"method implementation, *without* inadvertently catching exceptions from the :" +"keyword:`with` statement body or the context manager's ``__exit__`` method. " +"By using :class:`ExitStack` the steps in the context management protocol can " +"be separated slightly in order to allow this::" msgstr "" #: ../../library/contextlib.rst:543 msgid "" "Actually needing to do this is likely to indicate that the underlying API " -"should be providing a direct resource management interface for use with " -":keyword:`try`/:keyword:`except`/:keyword:`finally` statements, but not all " +"should be providing a direct resource management interface for use with :" +"keyword:`try`/:keyword:`except`/:keyword:`finally` statements, but not all " "APIs are well designed in that regard. When a context manager is the only " -"resource management API provided, then :class:`ExitStack` can make it easier" -" to handle various situations that can't be handled directly in a " -":keyword:`with` statement." +"resource management API provided, then :class:`ExitStack` can make it easier " +"to handle various situations that can't be handled directly in a :keyword:" +"`with` statement." msgstr "" #: ../../library/contextlib.rst:553 @@ -524,8 +518,8 @@ msgstr "" #: ../../library/contextlib.rst:555 msgid "" "As noted in the documentation of :meth:`ExitStack.push`, this method can be " -"useful in cleaning up an already allocated resource if later steps in the " -":meth:`__enter__` implementation fail." +"useful in cleaning up an already allocated resource if later steps in the :" +"meth:`__enter__` implementation fail." msgstr "" #: ../../library/contextlib.rst:559 @@ -543,8 +537,8 @@ msgstr "" msgid "" "A pattern you will sometimes see is a ``try-finally`` statement with a flag " "variable to indicate whether or not the body of the ``finally`` clause " -"should be executed. In its simplest form (that can't already be handled just" -" by using an ``except`` clause instead), it looks something like this::" +"should be executed. In its simplest form (that can't already be handled just " +"by using an ``except`` clause instead), it looks something like this::" msgstr "" #: ../../library/contextlib.rst:615 @@ -576,8 +570,8 @@ msgstr "" #: ../../library/contextlib.rst:652 msgid "" "If the resource cleanup isn't already neatly bundled into a standalone " -"function, then it is still possible to use the decorator form of " -":meth:`ExitStack.callback` to declare the resource cleanup in advance::" +"function, then it is still possible to use the decorator form of :meth:" +"`ExitStack.callback` to declare the resource cleanup in advance::" msgstr "" #: ../../library/contextlib.rst:667 @@ -593,17 +587,17 @@ msgstr "" #: ../../library/contextlib.rst:675 msgid "" -":class:`ContextDecorator` makes it possible to use a context manager in both" -" an ordinary ``with`` statement and also as a function decorator." +":class:`ContextDecorator` makes it possible to use a context manager in both " +"an ordinary ``with`` statement and also as a function decorator." msgstr "" #: ../../library/contextlib.rst:678 msgid "" "For example, it is sometimes useful to wrap functions or groups of " -"statements with a logger that can track the time of entry and time of exit." -" Rather than writing both a function decorator and a context manager for " -"the task, inheriting from :class:`ContextDecorator` provides both " -"capabilities in a single definition::" +"statements with a logger that can track the time of entry and time of exit. " +"Rather than writing both a function decorator and a context manager for the " +"task, inheriting from :class:`ContextDecorator` provides both capabilities " +"in a single definition::" msgstr "" #: ../../library/contextlib.rst:699 @@ -617,9 +611,9 @@ msgstr "" #: ../../library/contextlib.rst:712 msgid "" "Note that there is one additional limitation when using context managers as " -"function decorators: there's no way to access the return value of " -":meth:`__enter__`. If that value is needed, then it is still necessary to " -"use an explicit ``with`` statement." +"function decorators: there's no way to access the return value of :meth:" +"`__enter__`. If that value is needed, then it is still necessary to use an " +"explicit ``with`` statement." msgstr "" #: ../../library/contextlib.rst:720 @@ -641,8 +635,7 @@ msgid "" "Most context managers are written in a way that means they can only be used " "effectively in a :keyword:`with` statement once. These single use context " "managers must be created afresh each time they're used - attempting to use " -"them a second time will trigger an exception or otherwise not work " -"correctly." +"them a second time will trigger an exception or otherwise not work correctly." msgstr "" #: ../../library/contextlib.rst:734 @@ -674,8 +667,8 @@ msgstr "" msgid "" "More sophisticated context managers may be \"reentrant\". These context " "managers can not only be used in multiple :keyword:`with` statements, but " -"may also be used *inside* a :keyword:`!with` statement that is already using" -" the same context manager." +"may also be used *inside* a :keyword:`!with` statement that is already using " +"the same context manager." msgstr "" #: ../../library/contextlib.rst:777 @@ -694,10 +687,10 @@ msgstr "" #: ../../library/contextlib.rst:800 msgid "" -"Note also that being reentrant is *not* the same thing as being thread safe." -" :func:`redirect_stdout`, for example, is definitely not thread safe, as it " -"makes a global modification to the system state by binding " -":data:`sys.stdout` to a different stream." +"Note also that being reentrant is *not* the same thing as being thread " +"safe. :func:`redirect_stdout`, for example, is definitely not thread safe, " +"as it makes a global modification to the system state by binding :data:`sys." +"stdout` to a different stream." msgstr "" #: ../../library/contextlib.rst:809 @@ -706,26 +699,26 @@ msgstr "" #: ../../library/contextlib.rst:811 msgid "" -"Distinct from both single use and reentrant context managers are " -"\"reusable\" context managers (or, to be completely explicit, \"reusable, " -"but not reentrant\" context managers, since reentrant context managers are " -"also reusable). These context managers support being used multiple times, " -"but will fail (or otherwise not work correctly) if the specific context " -"manager instance has already been used in a containing with statement." +"Distinct from both single use and reentrant context managers are \"reusable" +"\" context managers (or, to be completely explicit, \"reusable, but not " +"reentrant\" context managers, since reentrant context managers are also " +"reusable). These context managers support being used multiple times, but " +"will fail (or otherwise not work correctly) if the specific context manager " +"instance has already been used in a containing with statement." msgstr "" #: ../../library/contextlib.rst:818 msgid "" ":class:`threading.Lock` is an example of a reusable, but not reentrant, " -"context manager (for a reentrant lock, it is necessary to use " -":class:`threading.RLock` instead)." +"context manager (for a reentrant lock, it is necessary to use :class:" +"`threading.RLock` instead)." msgstr "" #: ../../library/contextlib.rst:822 msgid "" -"Another example of a reusable, but not reentrant, context manager is " -":class:`ExitStack`, as it invokes *all* currently registered callbacks when " -"leaving any with statement, regardless of where those callbacks were added::" +"Another example of a reusable, but not reentrant, context manager is :class:" +"`ExitStack`, as it invokes *all* currently registered callbacks when leaving " +"any with statement, regardless of where those callbacks were added::" msgstr "" #: ../../library/contextlib.rst:853 diff --git a/library/contextvars.po b/library/contextvars.po index 6e20b8013..6d609c40e 100644 --- a/library/contextvars.po +++ b/library/contextvars.po @@ -1,26 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Claudio Rogerio Carvalho Filho , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:16+0000\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/contextvars.rst:2 +#: ../../library/contextvars.rst:2 msgid ":mod:`contextvars` --- Context Variables" msgstr "" -#: ../Doc/library/contextvars.rst:11 +#: ../../library/contextvars.rst:11 msgid "" "This module provides APIs to manage, store, and access context-local state. " "The :class:`~contextvars.ContextVar` class is used to declare and work with " @@ -29,38 +36,38 @@ msgid "" "context in asynchronous frameworks." msgstr "" -#: ../Doc/library/contextvars.rst:17 +#: ../../library/contextvars.rst:17 msgid "" "Context managers that have state should use Context Variables instead of :" "func:`threading.local()` to prevent their state from bleeding to other code " "unexpectedly, when used in concurrent code." msgstr "" -#: ../Doc/library/contextvars.rst:21 +#: ../../library/contextvars.rst:21 msgid "See also :pep:`567` for additional details." msgstr "" -#: ../Doc/library/contextvars.rst:27 +#: ../../library/contextvars.rst:27 msgid "Context Variables" msgstr "" -#: ../Doc/library/contextvars.rst:31 +#: ../../library/contextvars.rst:31 msgid "This class is used to declare a new Context Variable, e.g.::" msgstr "" -#: ../Doc/library/contextvars.rst:35 +#: ../../library/contextvars.rst:35 msgid "" "The required *name* parameter is used for introspection and debug purposes." msgstr "" -#: ../Doc/library/contextvars.rst:38 +#: ../../library/contextvars.rst:38 msgid "" "The optional keyword-only *default* parameter is returned by :meth:" "`ContextVar.get` when no value for the variable is found in the current " "context." msgstr "" -#: ../Doc/library/contextvars.rst:42 +#: ../../library/contextvars.rst:42 msgid "" "**Important:** Context Variables should be created at the top module level " "and never in closures. :class:`Context` objects hold strong references to " @@ -68,187 +75,187 @@ msgid "" "garbage collected." msgstr "" -#: ../Doc/library/contextvars.rst:49 +#: ../../library/contextvars.rst:49 msgid "The name of the variable. This is a read-only property." msgstr "" -#: ../Doc/library/contextvars.rst:55 +#: ../../library/contextvars.rst:55 msgid "Return a value for the context variable for the current context." msgstr "" -#: ../Doc/library/contextvars.rst:57 +#: ../../library/contextvars.rst:57 msgid "" "If there is no value for the variable in the current context, the method " "will:" msgstr "" -#: ../Doc/library/contextvars.rst:60 +#: ../../library/contextvars.rst:60 msgid "" "return the value of the *default* argument of the method, if provided; or" msgstr "" -#: ../Doc/library/contextvars.rst:63 +#: ../../library/contextvars.rst:63 msgid "" "return the default value for the context variable, if it was created with " "one; or" msgstr "" -#: ../Doc/library/contextvars.rst:66 +#: ../../library/contextvars.rst:66 msgid "raise a :exc:`LookupError`." msgstr "" -#: ../Doc/library/contextvars.rst:70 +#: ../../library/contextvars.rst:70 msgid "" "Call to set a new value for the context variable in the current context." msgstr "" -#: ../Doc/library/contextvars.rst:73 +#: ../../library/contextvars.rst:73 msgid "" "The required *value* argument is the new value for the context variable." msgstr "" -#: ../Doc/library/contextvars.rst:76 +#: ../../library/contextvars.rst:76 msgid "" "Returns a :class:`~contextvars.Token` object that can be used to restore the " "variable to its previous value via the :meth:`ContextVar.reset` method." msgstr "" -#: ../Doc/library/contextvars.rst:82 +#: ../../library/contextvars.rst:82 msgid "" "Reset the context variable to the value it had before the :meth:`ContextVar." "set` that created the *token* was used." msgstr "" -#: ../Doc/library/contextvars.rst:85 +#: ../../library/contextvars.rst:85 msgid "For example::" -msgstr "" +msgstr "Por exemplo::" -#: ../Doc/library/contextvars.rst:99 +#: ../../library/contextvars.rst:99 msgid "" "*Token* objects are returned by the :meth:`ContextVar.set` method. They can " "be passed to the :meth:`ContextVar.reset` method to revert the value of the " "variable to what it was before the corresponding *set*." msgstr "" -#: ../Doc/library/contextvars.rst:106 +#: ../../library/contextvars.rst:106 msgid "" "A read-only property. Points to the :class:`ContextVar` object that created " "the token." msgstr "" -#: ../Doc/library/contextvars.rst:111 +#: ../../library/contextvars.rst:111 msgid "" "A read-only property. Set to the value the variable had before the :meth:" "`ContextVar.set` method call that created the token. It points to :attr:" "`Token.MISSING` is the variable was not set before the call." msgstr "" -#: ../Doc/library/contextvars.rst:118 +#: ../../library/contextvars.rst:118 msgid "A marker object used by :attr:`Token.old_value`." msgstr "" -#: ../Doc/library/contextvars.rst:122 +#: ../../library/contextvars.rst:122 msgid "Manual Context Management" msgstr "" -#: ../Doc/library/contextvars.rst:126 +#: ../../library/contextvars.rst:126 msgid "Returns a copy of the current :class:`~contextvars.Context` object." msgstr "" -#: ../Doc/library/contextvars.rst:128 +#: ../../library/contextvars.rst:128 msgid "" "The following snippet gets a copy of the current context and prints all " "variables and their values that are set in it::" msgstr "" -#: ../Doc/library/contextvars.rst:134 +#: ../../library/contextvars.rst:134 msgid "" "The function has an O(1) complexity, i.e. works equally fast for contexts " "with a few context variables and for contexts that have a lot of them." msgstr "" -#: ../Doc/library/contextvars.rst:141 +#: ../../library/contextvars.rst:141 msgid "A mapping of :class:`ContextVars ` to their values." msgstr "" -#: ../Doc/library/contextvars.rst:143 +#: ../../library/contextvars.rst:143 msgid "" "``Context()`` creates an empty context with no values in it. To get a copy " "of the current context use the :func:`~contextvars.copy_context` function." msgstr "" -#: ../Doc/library/contextvars.rst:147 +#: ../../library/contextvars.rst:147 msgid "Context implements the :class:`collections.abc.Mapping` interface." msgstr "" -#: ../Doc/library/contextvars.rst:151 +#: ../../library/contextvars.rst:151 msgid "" "Execute ``callable(*args, **kwargs)`` code in the context object the *run* " "method is called on. Return the result of the execution or propagate an " "exception if one occurred." msgstr "" -#: ../Doc/library/contextvars.rst:155 +#: ../../library/contextvars.rst:155 msgid "" "Any changes to any context variables that *callable* makes will be contained " "in the context object::" msgstr "" -#: ../Doc/library/contextvars.rst:184 +#: ../../library/contextvars.rst:184 msgid "" "The method raises a :exc:`RuntimeError` when called on the same context " "object from more than one OS thread, or when called recursively." msgstr "" -#: ../Doc/library/contextvars.rst:190 +#: ../../library/contextvars.rst:190 msgid "Return a shallow copy of the context object." msgstr "" -#: ../Doc/library/contextvars.rst:194 +#: ../../library/contextvars.rst:194 msgid "" "Return ``True`` if the *context* has a value for *var* set; return ``False`` " "otherwise." msgstr "" -#: ../Doc/library/contextvars.rst:199 +#: ../../library/contextvars.rst:199 msgid "" "Return the value of the *var* :class:`ContextVar` variable. If the variable " "is not set in the context object, a :exc:`KeyError` is raised." msgstr "" -#: ../Doc/library/contextvars.rst:205 +#: ../../library/contextvars.rst:205 msgid "" "Return the value for *var* if *var* has the value in the context object. " "Return *default* otherwise. If *default* is not given, return ``None``." msgstr "" -#: ../Doc/library/contextvars.rst:211 +#: ../../library/contextvars.rst:211 msgid "Return an iterator over the variables stored in the context object." msgstr "" -#: ../Doc/library/contextvars.rst:216 +#: ../../library/contextvars.rst:216 msgid "Return the number of variables set in the context object." msgstr "" -#: ../Doc/library/contextvars.rst:220 +#: ../../library/contextvars.rst:220 msgid "Return a list of all variables in the context object." msgstr "" -#: ../Doc/library/contextvars.rst:224 +#: ../../library/contextvars.rst:224 msgid "Return a list of all variables' values in the context object." msgstr "" -#: ../Doc/library/contextvars.rst:229 +#: ../../library/contextvars.rst:229 msgid "" "Return a list of 2-tuples containing all variables and their values in the " "context object." msgstr "" -#: ../Doc/library/contextvars.rst:234 +#: ../../library/contextvars.rst:234 msgid "asyncio support" msgstr "" -#: ../Doc/library/contextvars.rst:236 +#: ../../library/contextvars.rst:236 msgid "" "Context variables are natively supported in :mod:`asyncio` and are ready to " "be used without any extra configuration. For example, here is a simple echo " diff --git a/library/copy.po b/library/copy.po index 13557b52d..3ffc8ac62 100644 --- a/library/copy.po +++ b/library/copy.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +35,8 @@ msgstr "**Código Fonte:** :source:`Lib/copy.py`" msgid "" "Assignment statements in Python do not copy objects, they create bindings " "between a target and an object. For collections that are mutable or contain " -"mutable items, a copy is sometimes needed so one can change one copy without" -" changing the other. This module provides generic shallow and deep copy " +"mutable items, a copy is sometimes needed so one can change one copy without " +"changing the other. This module provides generic shallow and deep copy " "operations (explained below)." msgstr "" @@ -87,8 +89,8 @@ msgstr "" #: ../../library/copy.rst:50 msgid "" -"Because deep copy copies everything it may copy too much, such as data which" -" is intended to be shared between copies." +"Because deep copy copies everything it may copy too much, such as data which " +"is intended to be shared between copies." msgstr "" #: ../../library/copy.rst:53 @@ -111,10 +113,15 @@ msgstr "" msgid "" "This module does not copy types like module, method, stack trace, stack " "frame, file, socket, window, array, or any similar types. It does \"copy\" " -"functions and classes (shallow and deeply), by returning the original object" -" unchanged; this is compatible with the way these are treated by the " -":mod:`pickle` module." +"functions and classes (shallow and deeply), by returning the original object " +"unchanged; this is compatible with the way these are treated by the :mod:" +"`pickle` module." msgstr "" +"Este módulo não copia tipos como módulo, método, rastreamento de pilha, " +"quadro de pilha, arquivo, soquete, janela, matriz ou outros tipos " +"semelhantes. Ele \"copia\" funções e classes (rasas e profundas), devolvendo " +"o objeto original inalterado; isso é compatível com a maneira que estes " +"itens são tratados pelo módulo :mod:`pickle`." #: ../../library/copy.rst:66 msgid "" @@ -138,8 +145,8 @@ msgid "" "called to implement the shallow copy operation; no additional arguments are " "passed. The latter is called to implement the deep copy operation; it is " "passed one argument, the ``memo`` dictionary. If the :meth:`__deepcopy__` " -"implementation needs to make a deep copy of a component, it should call the " -":func:`deepcopy` function with the component as first argument and the memo " +"implementation needs to make a deep copy of a component, it should call the :" +"func:`deepcopy` function with the component as first argument and the memo " "dictionary as second argument." msgstr "" @@ -149,6 +156,6 @@ msgstr "" #: ../../library/copy.rst:93 msgid "" -"Discussion of the special methods used to support object state retrieval and" -" restoration." +"Discussion of the special methods used to support object state retrieval and " +"restoration." msgstr "" diff --git a/library/copyreg.po b/library/copyreg.po index 51882dc58..319502a67 100644 --- a/library/copyreg.po +++ b/library/copyreg.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,8 +40,8 @@ msgid "" "Such constructors may be factory functions or class instances." msgstr "" "O módulo :mod:`copyreg` oferece uma maneira de definir as funções usadas " -"durante a remoção de objetos específicos. Os módulos :mod:`pickle` e " -":mod:`copy` usam essas funções ao selecionar/copiar esses objetos. O módulo " +"durante a remoção de objetos específicos. Os módulos :mod:`pickle` e :mod:" +"`copy` usam essas funções ao selecionar/copiar esses objetos. O módulo " "fornece informações de configuração sobre construtores de objetos que não " "são classes. Esses construtores podem ser funções de fábrica ou instâncias " "de classes." @@ -51,14 +52,14 @@ msgid "" "(and hence not valid as a constructor), raises :exc:`TypeError`." msgstr "" "Declara *object* para ser um construtor válido. Se *object* não puder ser " -"chamado (e, portanto, não for válido como um construtor), gera " -":exc:`TypeError`." +"chamado (e, portanto, não for válido como um construtor), gera :exc:" +"`TypeError`." #: ../../library/copyreg.rst:30 msgid "" "Declares that *function* should be used as a \"reduction\" function for " -"objects of type *type*. *function* should return either a string or a tuple" -" containing two or three elements." +"objects of type *type*. *function* should return either a string or a tuple " +"containing two or three elements." msgstr "" "Declara que *function* deve ser usada como uma função de \"redução\" para " "objetos do tipo *type*. *function* deve retornar uma string ou uma tupla " @@ -68,28 +69,26 @@ msgstr "" msgid "" "The optional *constructor* parameter, if provided, is a callable object " "which can be used to reconstruct the object when called with the tuple of " -"arguments returned by *function* at pickling time. :exc:`TypeError` will be" -" raised if *object* is a class or *constructor* is not callable." +"arguments returned by *function* at pickling time. :exc:`TypeError` will be " +"raised if *object* is a class or *constructor* is not callable." msgstr "" "O parâmetro opcional *constructor*, se fornecido, é um objeto que pode ser " "chamado, que pode ser usado para reconstruir o objeto quando chamado com a " -"tupla de argumentos retornados por *function* no tempo de decapagem. " -":exc:`TypeError` será gerado se *object* for uma classe ou *constructor* não" -" for chamado." +"tupla de argumentos retornados por *function* no tempo de decapagem. :exc:" +"`TypeError` será gerado se *object* for uma classe ou *constructor* não for " +"chamado." #: ../../library/copyreg.rst:39 msgid "" "See the :mod:`pickle` module for more details on the interface expected of " -"*function* and *constructor*. Note that the " -":attr:`~pickle.Pickler.dispatch_table` attribute of a pickler object or " -"subclass of :class:`pickle.Pickler` can also be used for declaring reduction" -" functions." +"*function* and *constructor*. Note that the :attr:`~pickle.Pickler." +"dispatch_table` attribute of a pickler object or subclass of :class:`pickle." +"Pickler` can also be used for declaring reduction functions." msgstr "" -"Veja o módulo :mod:`pickle` para mais detalhes sobre a interface esperada de" -" *function* e *constructor*. Note que o atributo " -":attr:`~pickle.Pickler.dispatch_table` de um objeto pickler ou subclasse de " -":class:`pickle.Pickler` também podem ser usados para declarar funções de " -"redução." +"Veja o módulo :mod:`pickle` para mais detalhes sobre a interface esperada de " +"*function* e *constructor*. Note que o atributo :attr:`~pickle.Pickler." +"dispatch_table` de um objeto pickler ou subclasse de :class:`pickle.Pickler` " +"também podem ser usados para declarar funções de redução." #: ../../library/copyreg.rst:46 msgid "Example" diff --git a/library/crypt.po b/library/crypt.po index 9f946a7fc..cfe4feea0 100644 --- a/library/crypt.po +++ b/library/crypt.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,17 +36,17 @@ msgstr "**Código Fonte:** :source:`Lib/crypt.py`" msgid "" "This module implements an interface to the :manpage:`crypt(3)` routine, " "which is a one-way hash function based upon a modified DES algorithm; see " -"the Unix man page for further details. Possible uses include storing hashed" -" passwords so you can check passwords without storing the actual password, " -"or attempting to crack Unix passwords with a dictionary." +"the Unix man page for further details. Possible uses include storing hashed " +"passwords so you can check passwords without storing the actual password, or " +"attempting to crack Unix passwords with a dictionary." msgstr "" #: ../../library/crypt.rst:28 msgid "" -"Notice that the behavior of this module depends on the actual implementation" -" of the :manpage:`crypt(3)` routine in the running system. Therefore, any " -"extensions available on the current implementation will also be available " -"on this module." +"Notice that the behavior of this module depends on the actual " +"implementation of the :manpage:`crypt(3)` routine in the running system. " +"Therefore, any extensions available on the current implementation will also " +"be available on this module." msgstr "" #: ../../library/crypt.rst:34 @@ -53,8 +55,8 @@ msgstr "" #: ../../library/crypt.rst:38 msgid "" -"The :mod:`crypt` module defines the list of hashing methods (not all methods" -" are available on all platforms):" +"The :mod:`crypt` module defines the list of hashing methods (not all methods " +"are available on all platforms):" msgstr "" #: ../../library/crypt.rst:43 @@ -124,11 +126,11 @@ msgstr "" #: ../../library/crypt.rst:100 msgid "" -"*salt* (either a random 2 or 16 character string, possibly prefixed with " -"``$digit$`` to indicate the method) which will be used to perturb the " -"encryption algorithm. The characters in *salt* must be in the set " -"``[./a-zA-Z0-9]``, with the exception of Modular Crypt Format which prefixes" -" a ``$digit$``." +"*salt* (either a random 2 or 16 character string, possibly prefixed with ``" +"$digit$`` to indicate the method) which will be used to perturb the " +"encryption algorithm. The characters in *salt* must be in the set ``[./a-zA-" +"Z0-9]``, with the exception of Modular Crypt Format which prefixes a ``$digit" +"$``." msgstr "" #: ../../library/crypt.rst:106 @@ -150,15 +152,14 @@ msgstr "" #: ../../library/crypt.rst:121 msgid "" -"Return a randomly generated salt of the specified method. If no *method* is" -" given, the strongest method available as returned by :func:`methods` is " -"used." +"Return a randomly generated salt of the specified method. If no *method* is " +"given, the strongest method available as returned by :func:`methods` is used." msgstr "" #: ../../library/crypt.rst:125 msgid "" -"The return value is a string suitable for passing as the *salt* argument to " -":func:`crypt`." +"The return value is a string suitable for passing as the *salt* argument to :" +"func:`crypt`." msgstr "" #: ../../library/crypt.rst:128 @@ -167,8 +168,8 @@ msgid "" "``METHOD_SHA512`` and ``METHOD_BLOWFISH``. For ``METHOD_SHA256`` and " "``METHOD_SHA512`` it must be an integer between ``1000`` and " "``999_999_999``, the default is ``5000``. For ``METHOD_BLOWFISH`` it must " -"be a power of two between ``16`` (2\\ :sup:`4`) and ``2_147_483_648`` (2\\ " -":sup:`31`), the default is ``4096`` (2\\ :sup:`12`)." +"be a power of two between ``16`` (2\\ :sup:`4`) and ``2_147_483_648`` (2\\ :" +"sup:`31`), the default is ``4096`` (2\\ :sup:`12`)." msgstr "" #: ../../library/crypt.rst:138 @@ -182,8 +183,8 @@ msgstr "Exemplos" #: ../../library/crypt.rst:145 msgid "" "A simple example illustrating typical use (a constant-time comparison " -"operation is needed to limit exposure to timing attacks. " -":func:`hmac.compare_digest` is suitable for this purpose)::" +"operation is needed to limit exposure to timing attacks. :func:`hmac." +"compare_digest` is suitable for this purpose)::" msgstr "" #: ../../library/crypt.rst:165 diff --git a/library/crypto.po b/library/crypto.po index 34201568a..51bf8689c 100644 --- a/library/crypto.po +++ b/library/crypto.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" "Last-Translator: Hildeberto Abreu Magalhães , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,6 +35,6 @@ msgid "" "available. Here's an overview:" msgstr "" "Os módulos descritos nesse capítulo implementam vários algoritmos de " -"natureza criptográfica. Eles estão disponíveis a critério da instalação. Em" -" sistemas Unix, o módulo :mod:`crypt` pode estar disponível também. Eis uma " +"natureza criptográfica. Eles estão disponíveis a critério da instalação. Em " +"sistemas Unix, o módulo :mod:`crypt` pode estar disponível também. Eis uma " "visão geral:" diff --git a/library/csv.po b/library/csv.po index e49ed8785..0730e5c4c 100644 --- a/library/csv.po +++ b/library/csv.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Cauê Baasch de Souza , 2019 # Adorilson Bezerra , 2019 # lucasfloro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" "Last-Translator: lucasfloro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,14 +38,14 @@ msgstr "**Código Fonte:** :source:`Lib/csv.py`" msgid "" "The so-called CSV (Comma Separated Values) format is the most common import " "and export format for spreadsheets and databases. CSV format was used for " -"many years prior to attempts to describe the format in a standardized way in" -" :rfc:`4180`. The lack of a well-defined standard means that subtle " +"many years prior to attempts to describe the format in a standardized way " +"in :rfc:`4180`. The lack of a well-defined standard means that subtle " "differences often exist in the data produced and consumed by different " "applications. These differences can make it annoying to process CSV files " "from multiple sources. Still, while the delimiters and quoting characters " "vary, the overall format is similar enough that it is possible to write a " -"single module which can efficiently manipulate such data, hiding the details" -" of reading and writing the data from the programmer." +"single module which can efficiently manipulate such data, hiding the details " +"of reading and writing the data from the programmer." msgstr "" #: ../../library/csv.rst:28 @@ -59,8 +60,8 @@ msgstr "" #: ../../library/csv.rst:35 msgid "" -"The :mod:`csv` module's :class:`reader` and :class:`writer` objects read and" -" write sequences. Programmers can also read and write data in dictionary " +"The :mod:`csv` module's :class:`reader` and :class:`writer` objects read and " +"write sequences. Programmers can also read and write data in dictionary " "form using the :class:`DictReader` and :class:`DictWriter` classes." msgstr "" @@ -69,8 +70,7 @@ msgid ":pep:`305` - CSV File API" msgstr "" #: ../../library/csv.rst:42 -msgid "" -"The Python Enhancement Proposal which proposed this addition to Python." +msgid "The Python Enhancement Proposal which proposed this addition to Python." msgstr "" #: ../../library/csv.rst:48 @@ -83,10 +83,10 @@ msgstr "" #: ../../library/csv.rst:58 msgid "" -"Return a reader object which will iterate over lines in the given *csvfile*." -" *csvfile* can be any object which supports the :term:`iterator` protocol " -"and returns a string each time its :meth:`!__next__` method is called --- " -":term:`file objects ` and list objects are both suitable. If " +"Return a reader object which will iterate over lines in the given *csvfile*. " +"*csvfile* can be any object which supports the :term:`iterator` protocol and " +"returns a string each time its :meth:`!__next__` method is called --- :term:" +"`file objects ` and list objects are both suitable. If " "*csvfile* is a file object, it should be opened with ``newline=''``. [1]_ " "An optional *dialect* parameter can be given which is used to define a set " "of parameters specific to a particular CSV dialect. It may be an instance " @@ -105,8 +105,8 @@ msgid "" "into floats)." msgstr "" -#: ../../library/csv.rst:75 ../../library/csv.rst:105 -#: ../../library/csv.rst:172 ../../library/csv.rst:208 +#: ../../library/csv.rst:75 ../../library/csv.rst:105 ../../library/csv.rst:173 +#: ../../library/csv.rst:209 msgid "A short usage example::" msgstr "Um pequeno exemplo de utilização" @@ -117,18 +117,17 @@ msgid "" "object with a :func:`write` method. If *csvfile* is a file object, it " "should be opened with ``newline=''`` [1]_. An optional *dialect* parameter " "can be given which is used to define a set of parameters specific to a " -"particular CSV dialect. It may be an instance of a subclass of the " -":class:`Dialect` class or one of the strings returned by the " -":func:`list_dialects` function. The other optional *fmtparams* keyword " -"arguments can be given to override individual formatting parameters in the " -"current dialect. For full details about the dialect and formatting " -"parameters, see section :ref:`csv-fmt-params`. To make it as easy as " -"possible to interface with modules which implement the DB API, the value " -":const:`None` is written as the empty string. While this isn't a reversible" -" transformation, it makes it easier to dump SQL NULL data values to CSV " -"files without preprocessing the data returned from a ``cursor.fetch*`` call." -" All other non-string data are stringified with :func:`str` before being " -"written." +"particular CSV dialect. It may be an instance of a subclass of the :class:" +"`Dialect` class or one of the strings returned by the :func:`list_dialects` " +"function. The other optional *fmtparams* keyword arguments can be given to " +"override individual formatting parameters in the current dialect. For full " +"details about the dialect and formatting parameters, see section :ref:`csv-" +"fmt-params`. To make it as easy as possible to interface with modules which " +"implement the DB API, the value :const:`None` is written as the empty " +"string. While this isn't a reversible transformation, it makes it easier to " +"dump SQL NULL data values to CSV files without preprocessing the data " +"returned from a ``cursor.fetch*`` call. All other non-string data are " +"stringified with :func:`str` before being written." msgstr "" #: ../../library/csv.rst:117 @@ -136,21 +135,21 @@ msgid "" "Associate *dialect* with *name*. *name* must be a string. The dialect can " "be specified either by passing a sub-class of :class:`Dialect`, or by " "*fmtparams* keyword arguments, or both, with keyword arguments overriding " -"parameters of the dialect. For full details about the dialect and formatting" -" parameters, see section :ref:`csv-fmt-params`." +"parameters of the dialect. For full details about the dialect and formatting " +"parameters, see section :ref:`csv-fmt-params`." msgstr "" #: ../../library/csv.rst:126 msgid "" -"Delete the dialect associated with *name* from the dialect registry. An " -":exc:`Error` is raised if *name* is not a registered dialect name." +"Delete the dialect associated with *name* from the dialect registry. An :" +"exc:`Error` is raised if *name* is not a registered dialect name." msgstr "" #: ../../library/csv.rst:132 msgid "" "Return the dialect associated with *name*. An :exc:`Error` is raised if " -"*name* is not a registered dialect name. This function returns an immutable" -" :class:`Dialect`." +"*name* is not a registered dialect name. This function returns an " +"immutable :class:`Dialect`." msgstr "" #: ../../library/csv.rst:138 @@ -159,8 +158,8 @@ msgstr "" #: ../../library/csv.rst:143 msgid "" -"Returns the current maximum field size allowed by the parser. If *new_limit*" -" is given, this becomes the new limit." +"Returns the current maximum field size allowed by the parser. If *new_limit* " +"is given, this becomes the new limit." msgstr "" #: ../../library/csv.rst:147 @@ -185,22 +184,23 @@ msgstr "" #: ../../library/csv.rst:161 msgid "" "If a row has more fields than fieldnames, the remaining data is put in a " -"list and stored with the fieldname specified by *restkey* (which defaults to" -" ``None``). If a non-blank row has fewer fields than fieldnames, the " -"missing values are filled-in with ``None``." +"list and stored with the fieldname specified by *restkey* (which defaults to " +"``None``). If a non-blank row has fewer fields than fieldnames, the missing " +"values are filled-in with the value of *restval* (which defaults to " +"``None``)." msgstr "" -#: ../../library/csv.rst:166 +#: ../../library/csv.rst:167 msgid "" -"All other optional or keyword arguments are passed to the underlying " -":class:`reader` instance." +"All other optional or keyword arguments are passed to the underlying :class:" +"`reader` instance." msgstr "" -#: ../../library/csv.rst:169 +#: ../../library/csv.rst:170 msgid "Returned rows are now of type :class:`OrderedDict`." msgstr "" -#: ../../library/csv.rst:190 +#: ../../library/csv.rst:191 msgid "" "Create an object which operates like a regular writer but maps dictionaries " "onto output rows. The *fieldnames* parameter is a :mod:`sequence " @@ -212,348 +212,347 @@ msgid "" "optional *extrasaction* parameter indicates what action to take. If it is " "set to ``'raise'``, the default value, a :exc:`ValueError` is raised. If it " "is set to ``'ignore'``, extra values in the dictionary are ignored. Any " -"other optional or keyword arguments are passed to the underlying " -":class:`writer` instance." +"other optional or keyword arguments are passed to the underlying :class:" +"`writer` instance." msgstr "" -#: ../../library/csv.rst:205 +#: ../../library/csv.rst:206 msgid "" "Note that unlike the :class:`DictReader` class, the *fieldnames* parameter " "of the :class:`DictWriter` class is not optional." msgstr "" -#: ../../library/csv.rst:224 +#: ../../library/csv.rst:225 msgid "" "The :class:`Dialect` class is a container class relied on primarily for its " -"attributes, which are used to define the parameters for a specific " -":class:`reader` or :class:`writer` instance." +"attributes, which are used to define the parameters for a specific :class:" +"`reader` or :class:`writer` instance." msgstr "" -#: ../../library/csv.rst:231 +#: ../../library/csv.rst:232 msgid "" "The :class:`excel` class defines the usual properties of an Excel-generated " "CSV file. It is registered with the dialect name ``'excel'``." msgstr "" -#: ../../library/csv.rst:237 +#: ../../library/csv.rst:238 msgid "" "The :class:`excel_tab` class defines the usual properties of an Excel-" "generated TAB-delimited file. It is registered with the dialect name " "``'excel-tab'``." msgstr "" -#: ../../library/csv.rst:243 +#: ../../library/csv.rst:244 msgid "" "The :class:`unix_dialect` class defines the usual properties of a CSV file " "generated on UNIX systems, i.e. using ``'\\n'`` as line terminator and " "quoting all fields. It is registered with the dialect name ``'unix'``." msgstr "" -#: ../../library/csv.rst:252 +#: ../../library/csv.rst:253 msgid "The :class:`Sniffer` class is used to deduce the format of a CSV file." msgstr "" -#: ../../library/csv.rst:254 +#: ../../library/csv.rst:255 msgid "The :class:`Sniffer` class provides two methods:" msgstr "" -#: ../../library/csv.rst:258 +#: ../../library/csv.rst:259 msgid "" -"Analyze the given *sample* and return a :class:`Dialect` subclass reflecting" -" the parameters found. If the optional *delimiters* parameter is given, it " +"Analyze the given *sample* and return a :class:`Dialect` subclass reflecting " +"the parameters found. If the optional *delimiters* parameter is given, it " "is interpreted as a string containing possible valid delimiter characters." msgstr "" -#: ../../library/csv.rst:266 +#: ../../library/csv.rst:267 msgid "" -"Analyze the sample text (presumed to be in CSV format) and return " -":const:`True` if the first row appears to be a series of column headers." +"Analyze the sample text (presumed to be in CSV format) and return :const:" +"`True` if the first row appears to be a series of column headers." msgstr "" -#: ../../library/csv.rst:269 +#: ../../library/csv.rst:270 msgid "An example for :class:`Sniffer` use::" msgstr "" -#: ../../library/csv.rst:278 +#: ../../library/csv.rst:279 msgid "The :mod:`csv` module defines the following constants:" msgstr "" -#: ../../library/csv.rst:282 +#: ../../library/csv.rst:283 msgid "Instructs :class:`writer` objects to quote all fields." msgstr "" -#: ../../library/csv.rst:287 +#: ../../library/csv.rst:288 msgid "" "Instructs :class:`writer` objects to only quote those fields which contain " -"special characters such as *delimiter*, *quotechar* or any of the characters" -" in *lineterminator*." +"special characters such as *delimiter*, *quotechar* or any of the characters " +"in *lineterminator*." msgstr "" -#: ../../library/csv.rst:294 +#: ../../library/csv.rst:295 msgid "Instructs :class:`writer` objects to quote all non-numeric fields." msgstr "" -#: ../../library/csv.rst:296 +#: ../../library/csv.rst:297 msgid "Instructs the reader to convert all non-quoted fields to type *float*." msgstr "" -#: ../../library/csv.rst:301 +#: ../../library/csv.rst:302 msgid "" "Instructs :class:`writer` objects to never quote fields. When the current " -"*delimiter* occurs in output data it is preceded by the current *escapechar*" -" character. If *escapechar* is not set, the writer will raise :exc:`Error` " +"*delimiter* occurs in output data it is preceded by the current *escapechar* " +"character. If *escapechar* is not set, the writer will raise :exc:`Error` " "if any characters that require escaping are encountered." msgstr "" -#: ../../library/csv.rst:306 +#: ../../library/csv.rst:307 msgid "" "Instructs :class:`reader` to perform no special processing of quote " "characters." msgstr "" -#: ../../library/csv.rst:308 +#: ../../library/csv.rst:309 msgid "The :mod:`csv` module defines the following exception:" msgstr "" -#: ../../library/csv.rst:313 +#: ../../library/csv.rst:314 msgid "Raised by any of the functions when an error is detected." msgstr "" -#: ../../library/csv.rst:318 +#: ../../library/csv.rst:319 msgid "Dialects and Formatting Parameters" msgstr "" -#: ../../library/csv.rst:320 +#: ../../library/csv.rst:321 msgid "" "To make it easier to specify the format of input and output records, " "specific formatting parameters are grouped together into dialects. A " -"dialect is a subclass of the :class:`Dialect` class having a set of specific" -" methods and a single :meth:`validate` method. When creating " -":class:`reader` or :class:`writer` objects, the programmer can specify a " -"string or a subclass of the :class:`Dialect` class as the dialect parameter." -" In addition to, or instead of, the *dialect* parameter, the programmer can" -" also specify individual formatting parameters, which have the same names as" -" the attributes defined below for the :class:`Dialect` class." +"dialect is a subclass of the :class:`Dialect` class having a set of specific " +"methods and a single :meth:`validate` method. When creating :class:`reader` " +"or :class:`writer` objects, the programmer can specify a string or a " +"subclass of the :class:`Dialect` class as the dialect parameter. In " +"addition to, or instead of, the *dialect* parameter, the programmer can also " +"specify individual formatting parameters, which have the same names as the " +"attributes defined below for the :class:`Dialect` class." msgstr "" -#: ../../library/csv.rst:330 +#: ../../library/csv.rst:331 msgid "Dialects support the following attributes:" msgstr "" -#: ../../library/csv.rst:335 +#: ../../library/csv.rst:336 msgid "" "A one-character string used to separate fields. It defaults to ``','``." msgstr "" -#: ../../library/csv.rst:340 +#: ../../library/csv.rst:341 msgid "" "Controls how instances of *quotechar* appearing inside a field should " -"themselves be quoted. When :const:`True`, the character is doubled. When " -":const:`False`, the *escapechar* is used as a prefix to the *quotechar*. It" -" defaults to :const:`True`." +"themselves be quoted. When :const:`True`, the character is doubled. When :" +"const:`False`, the *escapechar* is used as a prefix to the *quotechar*. It " +"defaults to :const:`True`." msgstr "" -#: ../../library/csv.rst:345 +#: ../../library/csv.rst:346 msgid "" -"On output, if *doublequote* is :const:`False` and no *escapechar* is set, " -":exc:`Error` is raised if a *quotechar* is found in a field." +"On output, if *doublequote* is :const:`False` and no *escapechar* is set, :" +"exc:`Error` is raised if a *quotechar* is found in a field." msgstr "" -#: ../../library/csv.rst:351 +#: ../../library/csv.rst:352 msgid "" "A one-character string used by the writer to escape the *delimiter* if " -"*quoting* is set to :const:`QUOTE_NONE` and the *quotechar* if *doublequote*" -" is :const:`False`. On reading, the *escapechar* removes any special meaning" -" from the following character. It defaults to :const:`None`, which disables " +"*quoting* is set to :const:`QUOTE_NONE` and the *quotechar* if *doublequote* " +"is :const:`False`. On reading, the *escapechar* removes any special meaning " +"from the following character. It defaults to :const:`None`, which disables " "escaping." msgstr "" -#: ../../library/csv.rst:359 +#: ../../library/csv.rst:360 msgid "" "The string used to terminate lines produced by the :class:`writer`. It " "defaults to ``'\\r\\n'``." msgstr "" -#: ../../library/csv.rst:364 +#: ../../library/csv.rst:365 msgid "" -"The :class:`reader` is hard-coded to recognise either ``'\\r'`` or ``'\\n'``" -" as end-of-line, and ignores *lineterminator*. This behavior may change in " +"The :class:`reader` is hard-coded to recognise either ``'\\r'`` or ``'\\n'`` " +"as end-of-line, and ignores *lineterminator*. This behavior may change in " "the future." msgstr "" -#: ../../library/csv.rst:371 +#: ../../library/csv.rst:372 msgid "" "A one-character string used to quote fields containing special characters, " "such as the *delimiter* or *quotechar*, or which contain new-line " "characters. It defaults to ``'\"'``." msgstr "" -#: ../../library/csv.rst:378 +#: ../../library/csv.rst:379 msgid "" -"Controls when quotes should be generated by the writer and recognised by the" -" reader. It can take on any of the :const:`QUOTE_\\*` constants (see " +"Controls when quotes should be generated by the writer and recognised by the " +"reader. It can take on any of the :const:`QUOTE_\\*` constants (see " "section :ref:`csv-contents`) and defaults to :const:`QUOTE_MINIMAL`." msgstr "" -#: ../../library/csv.rst:385 +#: ../../library/csv.rst:386 msgid "" "When :const:`True`, whitespace immediately following the *delimiter* is " "ignored. The default is :const:`False`." msgstr "" -#: ../../library/csv.rst:391 +#: ../../library/csv.rst:392 msgid "" -"When ``True``, raise exception :exc:`Error` on bad CSV input. The default is" -" ``False``." +"When ``True``, raise exception :exc:`Error` on bad CSV input. The default is " +"``False``." msgstr "" -#: ../../library/csv.rst:395 +#: ../../library/csv.rst:396 msgid "Reader Objects" msgstr "" -#: ../../library/csv.rst:397 +#: ../../library/csv.rst:398 msgid "" -"Reader objects (:class:`DictReader` instances and objects returned by the " -":func:`reader` function) have the following public methods:" +"Reader objects (:class:`DictReader` instances and objects returned by the :" +"func:`reader` function) have the following public methods:" msgstr "" -#: ../../library/csv.rst:402 +#: ../../library/csv.rst:403 msgid "" -"Return the next row of the reader's iterable object as a list (if the object" -" was returned from :func:`reader`) or a dict (if it is a :class:`DictReader`" -" instance), parsed according to the current dialect. Usually you should " -"call this as ``next(reader)``." +"Return the next row of the reader's iterable object as a list (if the object " +"was returned from :func:`reader`) or a dict (if it is a :class:`DictReader` " +"instance), parsed according to the current dialect. Usually you should call " +"this as ``next(reader)``." msgstr "" -#: ../../library/csv.rst:408 +#: ../../library/csv.rst:409 msgid "Reader objects have the following public attributes:" msgstr "" -#: ../../library/csv.rst:412 +#: ../../library/csv.rst:413 msgid "A read-only description of the dialect in use by the parser." msgstr "" -#: ../../library/csv.rst:417 +#: ../../library/csv.rst:418 msgid "" "The number of lines read from the source iterator. This is not the same as " "the number of records returned, as records can span multiple lines." msgstr "" -#: ../../library/csv.rst:421 +#: ../../library/csv.rst:422 msgid "DictReader objects have the following public attribute:" msgstr "" -#: ../../library/csv.rst:425 +#: ../../library/csv.rst:426 msgid "" "If not passed as a parameter when creating the object, this attribute is " -"initialized upon first access or when the first record is read from the " -"file." +"initialized upon first access or when the first record is read from the file." msgstr "" -#: ../../library/csv.rst:432 +#: ../../library/csv.rst:433 msgid "Writer Objects" msgstr "" -#: ../../library/csv.rst:434 +#: ../../library/csv.rst:435 msgid "" ":class:`Writer` objects (:class:`DictWriter` instances and objects returned " "by the :func:`writer` function) have the following public methods. A *row* " "must be an iterable of strings or numbers for :class:`Writer` objects and a " -"dictionary mapping fieldnames to strings or numbers (by passing them through" -" :func:`str` first) for :class:`DictWriter` objects. Note that complex " -"numbers are written out surrounded by parens. This may cause some problems " -"for other programs which read CSV files (assuming they support complex " -"numbers at all)." +"dictionary mapping fieldnames to strings or numbers (by passing them " +"through :func:`str` first) for :class:`DictWriter` objects. Note that " +"complex numbers are written out surrounded by parens. This may cause some " +"problems for other programs which read CSV files (assuming they support " +"complex numbers at all)." msgstr "" -#: ../../library/csv.rst:445 +#: ../../library/csv.rst:446 msgid "" "Write the *row* parameter to the writer's file object, formatted according " "to the current dialect." msgstr "" -#: ../../library/csv.rst:448 +#: ../../library/csv.rst:449 msgid "Added support of arbitrary iterables." msgstr "" -#: ../../library/csv.rst:453 +#: ../../library/csv.rst:454 msgid "" "Write all elements in *rows* (an iterable of *row* objects as described " "above) to the writer's file object, formatted according to the current " "dialect." msgstr "" -#: ../../library/csv.rst:457 +#: ../../library/csv.rst:458 msgid "Writer objects have the following public attribute:" msgstr "" -#: ../../library/csv.rst:462 +#: ../../library/csv.rst:463 msgid "A read-only description of the dialect in use by the writer." msgstr "" -#: ../../library/csv.rst:465 +#: ../../library/csv.rst:466 msgid "DictWriter objects have the following public method:" msgstr "" -#: ../../library/csv.rst:470 +#: ../../library/csv.rst:471 msgid "Write a row with the field names (as specified in the constructor)." msgstr "" -#: ../../library/csv.rst:478 +#: ../../library/csv.rst:479 msgid "Examples" msgstr "Exemplos" -#: ../../library/csv.rst:480 +#: ../../library/csv.rst:481 msgid "The simplest example of reading a CSV file::" msgstr "" -#: ../../library/csv.rst:488 +#: ../../library/csv.rst:489 msgid "Reading a file with an alternate format::" msgstr "" -#: ../../library/csv.rst:496 +#: ../../library/csv.rst:497 msgid "The corresponding simplest possible writing example is::" msgstr "" -#: ../../library/csv.rst:503 +#: ../../library/csv.rst:504 msgid "" "Since :func:`open` is used to open a CSV file for reading, the file will by " -"default be decoded into unicode using the system default encoding (see " -":func:`locale.getpreferredencoding`). To decode a file using a different " +"default be decoded into unicode using the system default encoding (see :func:" +"`locale.getpreferredencoding`). To decode a file using a different " "encoding, use the ``encoding`` argument of open::" msgstr "" -#: ../../library/csv.rst:514 +#: ../../library/csv.rst:515 msgid "" "The same applies to writing in something other than the system default " "encoding: specify the encoding argument when opening the output file." msgstr "" -#: ../../library/csv.rst:517 +#: ../../library/csv.rst:518 msgid "Registering a new dialect::" msgstr "" -#: ../../library/csv.rst:524 +#: ../../library/csv.rst:525 msgid "" "A slightly more advanced use of the reader --- catching and reporting " "errors::" msgstr "" -#: ../../library/csv.rst:536 +#: ../../library/csv.rst:537 msgid "" -"And while the module doesn't directly support parsing strings, it can easily" -" be done::" +"And while the module doesn't directly support parsing strings, it can easily " +"be done::" msgstr "" -#: ../../library/csv.rst:545 +#: ../../library/csv.rst:546 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../library/csv.rst:546 +#: ../../library/csv.rst:547 msgid "" "If ``newline=''`` is not specified, newlines embedded inside quoted fields " "will not be interpreted correctly, and on platforms that use ``\\r\\n`` " "linendings on write an extra ``\\r`` will be added. It should always be " -"safe to specify ``newline=''``, since the csv module does its own " -"(:term:`universal `) newline handling." +"safe to specify ``newline=''``, since the csv module does its own (:term:" +"`universal `) newline handling." msgstr "" diff --git a/library/ctypes.po b/library/ctypes.po index fd673c13f..18bf0d789 100644 --- a/library/ctypes.po +++ b/library/ctypes.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +25,7 @@ msgstr "" #: ../../library/ctypes.rst:2 msgid ":mod:`ctypes` --- A foreign function library for Python" -msgstr "" +msgstr ":mod:`ctypes` --- Uma biblioteca de funções externas para o Python" #: ../../library/ctypes.rst:11 msgid "" @@ -31,6 +33,10 @@ msgid "" "compatible data types, and allows calling functions in DLLs or shared " "libraries. It can be used to wrap these libraries in pure Python." msgstr "" +":mod:`ctypes` é uma biblioteca de funções externas para Python. Ela fornece " +"tipos de dados compatíveis com C e permite funções de chamada em DLLs ou " +"bibliotecas compartilhadas. Ela pode ser usada para agrupar essas " +"bibliotecas em Python puro." #: ../../library/ctypes.rst:19 msgid "ctypes tutorial" @@ -38,18 +44,21 @@ msgstr "Tutorial ctypes" #: ../../library/ctypes.rst:21 msgid "" -"Note: The code samples in this tutorial use :mod:`doctest` to make sure that" -" they actually work. Since some code samples behave differently under " -"Linux, Windows, or Mac OS X, they contain doctest directives in comments." +"Note: The code samples in this tutorial use :mod:`doctest` to make sure that " +"they actually work. Since some code samples behave differently under Linux, " +"Windows, or Mac OS X, they contain doctest directives in comments." msgstr "" +"Nota: Os exemplos de código neste tutorial usam :mod:`doctest` para garantir " +"que eles realmente funcionem. Como algumas amostras de código se comportam " +"de maneira diferente no Linux, Windows ou Mac OS X, elas contêm diretrizes " +"de doctest nos comentários." #: ../../library/ctypes.rst:25 msgid "" "Note: Some code samples reference the ctypes :class:`c_int` type. On " -"platforms where ``sizeof(long) == sizeof(int)`` it is an alias to " -":class:`c_long`. So, you should not be confused if :class:`c_long` is " -"printed if you would expect :class:`c_int` --- they are actually the same " -"type." +"platforms where ``sizeof(long) == sizeof(int)`` it is an alias to :class:" +"`c_long`. So, you should not be confused if :class:`c_long` is printed if " +"you would expect :class:`c_int` --- they are actually the same type." msgstr "" #: ../../library/ctypes.rst:33 @@ -68,15 +77,15 @@ msgid "" "loads libraries which export functions using the standard ``cdecl`` calling " "convention, while *windll* libraries call functions using the ``stdcall`` " "calling convention. *oledll* also uses the ``stdcall`` calling convention, " -"and assumes the functions return a Windows :c:type:`HRESULT` error code. The" -" error code is used to automatically raise an :class:`OSError` exception " -"when the function call fails." +"and assumes the functions return a Windows :c:type:`HRESULT` error code. The " +"error code is used to automatically raise an :class:`OSError` exception when " +"the function call fails." msgstr "" #: ../../library/ctypes.rst:46 msgid "" -"Windows errors used to raise :exc:`WindowsError`, which is now an alias of " -":exc:`OSError`." +"Windows errors used to raise :exc:`WindowsError`, which is now an alias of :" +"exc:`OSError`." msgstr "" #: ../../library/ctypes.rst:51 @@ -113,7 +122,7 @@ msgstr "" #: ../../library/ctypes.rst:91 msgid "Functions are accessed as attributes of dll objects::" -msgstr "" +msgstr "Funções são acessadas como atributos de objetos dll::" #: ../../library/ctypes.rst:106 msgid "" @@ -136,8 +145,8 @@ msgstr "" #: ../../library/ctypes.rst:123 msgid "" "Sometimes, dlls export functions with names which aren't valid Python " -"identifiers, like ``\"??2@YAPAXI@Z\"``. In this case you have to use " -":func:`getattr` to retrieve the function::" +"identifiers, like ``\"??2@YAPAXI@Z\"``. In this case you have to use :func:" +"`getattr` to retrieve the function::" msgstr "" #: ../../library/ctypes.rst:131 @@ -154,8 +163,8 @@ msgstr "" #: ../../library/ctypes.rst:150 msgid "" "You can call these functions like any other Python callable. This example " -"uses the ``time()`` function, which returns system time in seconds since the" -" Unix epoch, and the ``GetModuleHandleA()`` function, which returns a win32 " +"uses the ``time()`` function, which returns system time in seconds since the " +"Unix epoch, and the ``GetModuleHandleA()`` function, which returns a win32 " "module handle." msgstr "" @@ -165,34 +174,26 @@ msgid "" "be used as the ``NULL`` pointer)::" msgstr "" -#: ../../library/ctypes.rst:166 -msgid "" -":mod:`ctypes` may raise a :exc:`ValueError` after calling the function, if " -"it detects that an invalid number of arguments were passed. This behavior " -"should not be relied upon. It is deprecated in 3.6.2, and will be removed " -"in 3.7." -msgstr "" - -#: ../../library/ctypes.rst:171 +#: ../../library/ctypes.rst:164 msgid "" ":exc:`ValueError` is raised when you call an ``stdcall`` function with the " "``cdecl`` calling convention, or vice versa::" msgstr "" -#: ../../library/ctypes.rst:186 +#: ../../library/ctypes.rst:179 msgid "" "To find out the correct calling convention you have to look into the C " "header file or the documentation for the function you want to call." msgstr "" -#: ../../library/ctypes.rst:189 +#: ../../library/ctypes.rst:182 msgid "" "On Windows, :mod:`ctypes` uses win32 structured exception handling to " "prevent crashes from general protection faults when functions are called " "with invalid argument values::" msgstr "" -#: ../../library/ctypes.rst:199 +#: ../../library/ctypes.rst:192 msgid "" "There are, however, enough ways to crash Python with :mod:`ctypes`, so you " "should be careful anyway. The :mod:`faulthandler` module can be helpful in " @@ -200,350 +201,350 @@ msgid "" "library calls)." msgstr "" -#: ../../library/ctypes.rst:204 +#: ../../library/ctypes.rst:197 msgid "" "``None``, integers, bytes objects and (unicode) strings are the only native " "Python objects that can directly be used as parameters in these function " -"calls. ``None`` is passed as a C ``NULL`` pointer, bytes objects and strings" -" are passed as pointer to the memory block that contains their data " -"(:c:type:`char *` or :c:type:`wchar_t *`). Python integers are passed as " -"the platforms default C :c:type:`int` type, their value is masked to fit " -"into the C type." +"calls. ``None`` is passed as a C ``NULL`` pointer, bytes objects and strings " +"are passed as pointer to the memory block that contains their data (:c:type:" +"`char *` or :c:type:`wchar_t *`). Python integers are passed as the " +"platforms default C :c:type:`int` type, their value is masked to fit into " +"the C type." msgstr "" -#: ../../library/ctypes.rst:211 +#: ../../library/ctypes.rst:204 msgid "" "Before we move on calling functions with other parameter types, we have to " "learn more about :mod:`ctypes` data types." msgstr "" -#: ../../library/ctypes.rst:218 ../../library/ctypes.rst:2071 +#: ../../library/ctypes.rst:211 ../../library/ctypes.rst:2064 msgid "Fundamental data types" msgstr "" -#: ../../library/ctypes.rst:220 +#: ../../library/ctypes.rst:213 msgid ":mod:`ctypes` defines a number of primitive C compatible data types:" msgstr "" -#: ../../library/ctypes.rst:223 +#: ../../library/ctypes.rst:216 msgid "ctypes type" msgstr "ctypes type" -#: ../../library/ctypes.rst:223 +#: ../../library/ctypes.rst:216 msgid "C type" msgstr "C type" -#: ../../library/ctypes.rst:223 +#: ../../library/ctypes.rst:216 msgid "Python type" msgstr "Python type" -#: ../../library/ctypes.rst:225 +#: ../../library/ctypes.rst:218 msgid ":class:`c_bool`" msgstr ":class:`c_bool`" -#: ../../library/ctypes.rst:225 +#: ../../library/ctypes.rst:218 msgid ":c:type:`_Bool`" msgstr ":c:type:`_Bool`" -#: ../../library/ctypes.rst:225 +#: ../../library/ctypes.rst:218 msgid "bool (1)" msgstr "bool (1)" -#: ../../library/ctypes.rst:227 +#: ../../library/ctypes.rst:220 msgid ":class:`c_char`" msgstr ":class:`c_char`" -#: ../../library/ctypes.rst:227 ../../library/ctypes.rst:231 +#: ../../library/ctypes.rst:220 ../../library/ctypes.rst:224 msgid ":c:type:`char`" msgstr ":c:type:`char`" -#: ../../library/ctypes.rst:227 +#: ../../library/ctypes.rst:220 msgid "1-character bytes object" msgstr "1-character bytes object" -#: ../../library/ctypes.rst:229 +#: ../../library/ctypes.rst:222 msgid ":class:`c_wchar`" msgstr ":class:`c_wchar`" -#: ../../library/ctypes.rst:229 +#: ../../library/ctypes.rst:222 msgid ":c:type:`wchar_t`" msgstr ":c:type:`wchar_t`" -#: ../../library/ctypes.rst:229 +#: ../../library/ctypes.rst:222 msgid "1-character string" msgstr "1-character string" -#: ../../library/ctypes.rst:231 +#: ../../library/ctypes.rst:224 msgid ":class:`c_byte`" msgstr ":class:`c_byte`" -#: ../../library/ctypes.rst:231 ../../library/ctypes.rst:233 -#: ../../library/ctypes.rst:235 ../../library/ctypes.rst:237 -#: ../../library/ctypes.rst:239 ../../library/ctypes.rst:241 -#: ../../library/ctypes.rst:243 ../../library/ctypes.rst:245 -#: ../../library/ctypes.rst:247 ../../library/ctypes.rst:249 -#: ../../library/ctypes.rst:252 ../../library/ctypes.rst:254 +#: ../../library/ctypes.rst:224 ../../library/ctypes.rst:226 +#: ../../library/ctypes.rst:228 ../../library/ctypes.rst:230 +#: ../../library/ctypes.rst:232 ../../library/ctypes.rst:234 +#: ../../library/ctypes.rst:236 ../../library/ctypes.rst:238 +#: ../../library/ctypes.rst:240 ../../library/ctypes.rst:242 +#: ../../library/ctypes.rst:245 ../../library/ctypes.rst:247 msgid "int" msgstr "int" -#: ../../library/ctypes.rst:233 +#: ../../library/ctypes.rst:226 msgid ":class:`c_ubyte`" msgstr ":class:`c_ubyte`" -#: ../../library/ctypes.rst:233 +#: ../../library/ctypes.rst:226 msgid ":c:type:`unsigned char`" msgstr ":c:type:`unsigned char`" -#: ../../library/ctypes.rst:235 +#: ../../library/ctypes.rst:228 msgid ":class:`c_short`" msgstr ":class:`c_short`" -#: ../../library/ctypes.rst:235 +#: ../../library/ctypes.rst:228 msgid ":c:type:`short`" msgstr ":c:type:`short`" -#: ../../library/ctypes.rst:237 +#: ../../library/ctypes.rst:230 msgid ":class:`c_ushort`" msgstr ":class:`c_ushort`" -#: ../../library/ctypes.rst:237 +#: ../../library/ctypes.rst:230 msgid ":c:type:`unsigned short`" msgstr ":c:type:`unsigned short`" -#: ../../library/ctypes.rst:239 +#: ../../library/ctypes.rst:232 msgid ":class:`c_int`" msgstr ":class:`c_int`" -#: ../../library/ctypes.rst:239 +#: ../../library/ctypes.rst:232 msgid ":c:type:`int`" msgstr ":c:type:`int`" -#: ../../library/ctypes.rst:241 +#: ../../library/ctypes.rst:234 msgid ":class:`c_uint`" msgstr ":class:`c_uint`" -#: ../../library/ctypes.rst:241 +#: ../../library/ctypes.rst:234 msgid ":c:type:`unsigned int`" msgstr ":c:type:`unsigned int`" -#: ../../library/ctypes.rst:243 +#: ../../library/ctypes.rst:236 msgid ":class:`c_long`" msgstr ":class:`c_long`" -#: ../../library/ctypes.rst:243 +#: ../../library/ctypes.rst:236 msgid ":c:type:`long`" msgstr ":c:type:`long`" -#: ../../library/ctypes.rst:245 +#: ../../library/ctypes.rst:238 msgid ":class:`c_ulong`" msgstr ":class:`c_ulong`" -#: ../../library/ctypes.rst:245 +#: ../../library/ctypes.rst:238 msgid ":c:type:`unsigned long`" msgstr ":c:type:`unsigned long`" -#: ../../library/ctypes.rst:247 +#: ../../library/ctypes.rst:240 msgid ":class:`c_longlong`" msgstr ":class:`c_longlong`" -#: ../../library/ctypes.rst:247 +#: ../../library/ctypes.rst:240 msgid ":c:type:`__int64` or :c:type:`long long`" msgstr ":c:type:`__int64` or :c:type:`long long`" -#: ../../library/ctypes.rst:249 +#: ../../library/ctypes.rst:242 msgid ":class:`c_ulonglong`" msgstr ":class:`c_ulonglong`" -#: ../../library/ctypes.rst:249 +#: ../../library/ctypes.rst:242 msgid ":c:type:`unsigned __int64` or :c:type:`unsigned long long`" msgstr ":c:type:`unsigned __int64` or :c:type:`unsigned long long`" -#: ../../library/ctypes.rst:252 +#: ../../library/ctypes.rst:245 msgid ":class:`c_size_t`" msgstr ":class:`c_size_t`" -#: ../../library/ctypes.rst:252 +#: ../../library/ctypes.rst:245 msgid ":c:type:`size_t`" msgstr ":c:type:`size_t`" -#: ../../library/ctypes.rst:254 +#: ../../library/ctypes.rst:247 msgid ":class:`c_ssize_t`" msgstr ":class:`c_ssize_t`" -#: ../../library/ctypes.rst:254 +#: ../../library/ctypes.rst:247 msgid ":c:type:`ssize_t` or :c:type:`Py_ssize_t`" msgstr ":c:type:`ssize_t` or :c:type:`Py_ssize_t`" -#: ../../library/ctypes.rst:257 +#: ../../library/ctypes.rst:250 msgid ":class:`c_float`" msgstr ":class:`c_float`" -#: ../../library/ctypes.rst:257 +#: ../../library/ctypes.rst:250 msgid ":c:type:`float`" msgstr ":c:type:`float`" -#: ../../library/ctypes.rst:257 ../../library/ctypes.rst:259 -#: ../../library/ctypes.rst:261 +#: ../../library/ctypes.rst:250 ../../library/ctypes.rst:252 +#: ../../library/ctypes.rst:254 msgid "float" msgstr "float" -#: ../../library/ctypes.rst:259 +#: ../../library/ctypes.rst:252 msgid ":class:`c_double`" msgstr ":class:`c_double`" -#: ../../library/ctypes.rst:259 +#: ../../library/ctypes.rst:252 msgid ":c:type:`double`" msgstr ":c:type:`double`" -#: ../../library/ctypes.rst:261 +#: ../../library/ctypes.rst:254 msgid ":class:`c_longdouble`" msgstr ":class:`c_longdouble`" -#: ../../library/ctypes.rst:261 +#: ../../library/ctypes.rst:254 msgid ":c:type:`long double`" msgstr ":c:type:`long double`" -#: ../../library/ctypes.rst:263 +#: ../../library/ctypes.rst:256 msgid ":class:`c_char_p`" msgstr ":class:`c_char_p`" -#: ../../library/ctypes.rst:263 +#: ../../library/ctypes.rst:256 msgid ":c:type:`char *` (NUL terminated)" msgstr ":c:type:`char *` (NUL terminated)" -#: ../../library/ctypes.rst:263 +#: ../../library/ctypes.rst:256 msgid "bytes object or ``None``" msgstr "bytes object ou ``None``" -#: ../../library/ctypes.rst:265 +#: ../../library/ctypes.rst:258 msgid ":class:`c_wchar_p`" msgstr ":class:`c_wchar_p`" -#: ../../library/ctypes.rst:265 +#: ../../library/ctypes.rst:258 msgid ":c:type:`wchar_t *` (NUL terminated)" msgstr ":c:type:`wchar_t *` (NUL terminated)" -#: ../../library/ctypes.rst:265 +#: ../../library/ctypes.rst:258 msgid "string or ``None``" msgstr "String ou ``None``" -#: ../../library/ctypes.rst:267 +#: ../../library/ctypes.rst:260 msgid ":class:`c_void_p`" msgstr ":class:`c_void_p`" -#: ../../library/ctypes.rst:267 +#: ../../library/ctypes.rst:260 msgid ":c:type:`void *`" msgstr ":c:type:`void *`" -#: ../../library/ctypes.rst:267 +#: ../../library/ctypes.rst:260 msgid "int or ``None``" msgstr "int ou ``None``" -#: ../../library/ctypes.rst:271 +#: ../../library/ctypes.rst:264 msgid "The constructor accepts any object with a truth value." msgstr "" -#: ../../library/ctypes.rst:273 +#: ../../library/ctypes.rst:266 msgid "" "All these types can be created by calling them with an optional initializer " "of the correct type and value::" msgstr "" -#: ../../library/ctypes.rst:284 +#: ../../library/ctypes.rst:277 msgid "" "Since these types are mutable, their value can also be changed afterwards::" msgstr "" -#: ../../library/ctypes.rst:296 +#: ../../library/ctypes.rst:289 msgid "" -"Assigning a new value to instances of the pointer types :class:`c_char_p`, " -":class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they" -" point to, *not the contents* of the memory block (of course not, because " +"Assigning a new value to instances of the pointer types :class:`c_char_p`, :" +"class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they " +"point to, *not the contents* of the memory block (of course not, because " "Python bytes objects are immutable)::" msgstr "" -#: ../../library/ctypes.rst:316 +#: ../../library/ctypes.rst:309 msgid "" "You should be careful, however, not to pass them to functions expecting " -"pointers to mutable memory. If you need mutable memory blocks, ctypes has a " -":func:`create_string_buffer` function which creates these in various ways. " +"pointers to mutable memory. If you need mutable memory blocks, ctypes has a :" +"func:`create_string_buffer` function which creates these in various ways. " "The current memory block contents can be accessed (or changed) with the " -"``raw`` property; if you want to access it as NUL terminated string, use the" -" ``value`` property::" +"``raw`` property; if you want to access it as NUL terminated string, use the " +"``value`` property::" msgstr "" -#: ../../library/ctypes.rst:340 +#: ../../library/ctypes.rst:333 msgid "" "The :func:`create_string_buffer` function replaces the :func:`c_buffer` " -"function (which is still available as an alias), as well as the " -":func:`c_string` function from earlier ctypes releases. To create a mutable" -" memory block containing unicode characters of the C type :c:type:`wchar_t` " +"function (which is still available as an alias), as well as the :func:" +"`c_string` function from earlier ctypes releases. To create a mutable " +"memory block containing unicode characters of the C type :c:type:`wchar_t` " "use the :func:`create_unicode_buffer` function." msgstr "" -#: ../../library/ctypes.rst:350 +#: ../../library/ctypes.rst:343 msgid "Calling functions, continued" msgstr "Invocação de Funções, continuação" -#: ../../library/ctypes.rst:352 +#: ../../library/ctypes.rst:345 msgid "" -"Note that printf prints to the real standard output channel, *not* to " -":data:`sys.stdout`, so these examples will only work at the console prompt, " -"not from within *IDLE* or *PythonWin*::" +"Note that printf prints to the real standard output channel, *not* to :data:" +"`sys.stdout`, so these examples will only work at the console prompt, not " +"from within *IDLE* or *PythonWin*::" msgstr "" -#: ../../library/ctypes.rst:372 +#: ../../library/ctypes.rst:365 msgid "" -"As has been mentioned before, all Python types except integers, strings, and" -" bytes objects have to be wrapped in their corresponding :mod:`ctypes` type," -" so that they can be converted to the required C data type::" +"As has been mentioned before, all Python types except integers, strings, and " +"bytes objects have to be wrapped in their corresponding :mod:`ctypes` type, " +"so that they can be converted to the required C data type::" msgstr "" -#: ../../library/ctypes.rst:385 +#: ../../library/ctypes.rst:378 msgid "Calling functions with your own custom data types" msgstr "" -#: ../../library/ctypes.rst:387 +#: ../../library/ctypes.rst:380 msgid "" "You can also customize :mod:`ctypes` argument conversion to allow instances " "of your own classes be used as function arguments. :mod:`ctypes` looks for " -"an :attr:`_as_parameter_` attribute and uses this as the function argument." -" Of course, it must be one of integer, string, or bytes::" +"an :attr:`_as_parameter_` attribute and uses this as the function argument. " +"Of course, it must be one of integer, string, or bytes::" msgstr "" -#: ../../library/ctypes.rst:402 +#: ../../library/ctypes.rst:395 msgid "" -"If you don't want to store the instance's data in the :attr:`_as_parameter_`" -" instance variable, you could define a :class:`property` which makes the " +"If you don't want to store the instance's data in the :attr:`_as_parameter_` " +"instance variable, you could define a :class:`property` which makes the " "attribute available on request." msgstr "" -#: ../../library/ctypes.rst:410 +#: ../../library/ctypes.rst:403 msgid "Specifying the required argument types (function prototypes)" msgstr "" -#: ../../library/ctypes.rst:412 +#: ../../library/ctypes.rst:405 msgid "" "It is possible to specify the required argument types of functions exported " "from DLLs by setting the :attr:`argtypes` attribute." msgstr "" -#: ../../library/ctypes.rst:415 +#: ../../library/ctypes.rst:408 msgid "" -":attr:`argtypes` must be a sequence of C data types (the ``printf`` function" -" is probably not a good example here, because it takes a variable number and" -" different types of parameters depending on the format string, on the other " +":attr:`argtypes` must be a sequence of C data types (the ``printf`` function " +"is probably not a good example here, because it takes a variable number and " +"different types of parameters depending on the format string, on the other " "hand this is quite handy to experiment with this feature)::" msgstr "" -#: ../../library/ctypes.rst:426 +#: ../../library/ctypes.rst:419 msgid "" "Specifying a format protects against incompatible argument types (just as a " "prototype for a C function), and tries to convert the arguments to valid " "types::" msgstr "" -#: ../../library/ctypes.rst:438 +#: ../../library/ctypes.rst:431 msgid "" "If you have defined your own classes which you pass to function calls, you " "have to implement a :meth:`from_param` class method for them to be able to " @@ -552,35 +553,35 @@ msgid "" "a typecheck or whatever is needed to make sure this object is acceptable, " "and then return the object itself, its :attr:`_as_parameter_` attribute, or " "whatever you want to pass as the C function argument in this case. Again, " -"the result should be an integer, string, bytes, a :mod:`ctypes` instance, or" -" an object with an :attr:`_as_parameter_` attribute." +"the result should be an integer, string, bytes, a :mod:`ctypes` instance, or " +"an object with an :attr:`_as_parameter_` attribute." msgstr "" -#: ../../library/ctypes.rst:452 +#: ../../library/ctypes.rst:445 msgid "Return types" msgstr "Tipos de Retorno" -#: ../../library/ctypes.rst:454 +#: ../../library/ctypes.rst:447 msgid "" "By default functions are assumed to return the C :c:type:`int` type. Other " "return types can be specified by setting the :attr:`restype` attribute of " "the function object." msgstr "" -#: ../../library/ctypes.rst:458 +#: ../../library/ctypes.rst:451 msgid "" "Here is a more advanced example, it uses the ``strchr`` function, which " "expects a string pointer and a char, and returns a pointer to a string::" msgstr "" -#: ../../library/ctypes.rst:471 +#: ../../library/ctypes.rst:464 msgid "" -"If you want to avoid the ``ord(\"x\")`` calls above, you can set the " -":attr:`argtypes` attribute, and the second argument will be converted from a" -" single character Python bytes object into a C char::" +"If you want to avoid the ``ord(\"x\")`` calls above, you can set the :attr:" +"`argtypes` attribute, and the second argument will be converted from a " +"single character Python bytes object into a C char::" msgstr "" -#: ../../library/ctypes.rst:489 +#: ../../library/ctypes.rst:482 msgid "" "You can also use a callable Python object (a function or a class for " "example) as the :attr:`restype` attribute, if the foreign function returns " @@ -590,26 +591,25 @@ msgid "" "automatically raise an exception::" msgstr "" -#: ../../library/ctypes.rst:512 +#: ../../library/ctypes.rst:505 msgid "" "``WinError`` is a function which will call Windows ``FormatMessage()`` api " "to get the string representation of an error code, and *returns* an " -"exception. ``WinError`` takes an optional error code parameter, if no one is" -" used, it calls :func:`GetLastError` to retrieve it." +"exception. ``WinError`` takes an optional error code parameter, if no one is " +"used, it calls :func:`GetLastError` to retrieve it." msgstr "" -#: ../../library/ctypes.rst:517 +#: ../../library/ctypes.rst:510 msgid "" "Please note that a much more powerful error checking mechanism is available " -"through the :attr:`errcheck` attribute; see the reference manual for " -"details." +"through the :attr:`errcheck` attribute; see the reference manual for details." msgstr "" -#: ../../library/ctypes.rst:524 +#: ../../library/ctypes.rst:517 msgid "Passing pointers (or: passing parameters by reference)" msgstr "" -#: ../../library/ctypes.rst:526 +#: ../../library/ctypes.rst:519 msgid "" "Sometimes a C api function expects a *pointer* to a data type as parameter, " "probably to write into the corresponding location, or if the data is too " @@ -617,65 +617,65 @@ msgid "" "reference*." msgstr "" -#: ../../library/ctypes.rst:530 +#: ../../library/ctypes.rst:523 msgid "" ":mod:`ctypes` exports the :func:`byref` function which is used to pass " -"parameters by reference. The same effect can be achieved with the " -":func:`pointer` function, although :func:`pointer` does a lot more work " -"since it constructs a real pointer object, so it is faster to use " -":func:`byref` if you don't need the pointer object in Python itself::" +"parameters by reference. The same effect can be achieved with the :func:" +"`pointer` function, although :func:`pointer` does a lot more work since it " +"constructs a real pointer object, so it is faster to use :func:`byref` if " +"you don't need the pointer object in Python itself::" msgstr "" -#: ../../library/ctypes.rst:552 +#: ../../library/ctypes.rst:545 msgid "Structures and unions" msgstr "" -#: ../../library/ctypes.rst:554 +#: ../../library/ctypes.rst:547 msgid "" -"Structures and unions must derive from the :class:`Structure` and " -":class:`Union` base classes which are defined in the :mod:`ctypes` module. " -"Each subclass must define a :attr:`_fields_` attribute. :attr:`_fields_` " -"must be a list of *2-tuples*, containing a *field name* and a *field type*." +"Structures and unions must derive from the :class:`Structure` and :class:" +"`Union` base classes which are defined in the :mod:`ctypes` module. Each " +"subclass must define a :attr:`_fields_` attribute. :attr:`_fields_` must be " +"a list of *2-tuples*, containing a *field name* and a *field type*." msgstr "" -#: ../../library/ctypes.rst:559 +#: ../../library/ctypes.rst:552 msgid "" "The field type must be a :mod:`ctypes` type like :class:`c_int`, or any " "other derived :mod:`ctypes` type: structure, union, array, pointer." msgstr "" -#: ../../library/ctypes.rst:562 +#: ../../library/ctypes.rst:555 msgid "" "Here is a simple example of a POINT structure, which contains two integers " "named *x* and *y*, and also shows how to initialize a structure in the " "constructor::" msgstr "" -#: ../../library/ctypes.rst:582 +#: ../../library/ctypes.rst:575 msgid "" "You can, however, build much more complicated structures. A structure can " "itself contain other structures by using a structure as a field type." msgstr "" -#: ../../library/ctypes.rst:585 +#: ../../library/ctypes.rst:578 msgid "" "Here is a RECT structure which contains two POINTs named *upperleft* and " "*lowerright*::" msgstr "" -#: ../../library/ctypes.rst:599 +#: ../../library/ctypes.rst:592 msgid "" "Nested structures can also be initialized in the constructor in several " "ways::" msgstr "" -#: ../../library/ctypes.rst:604 +#: ../../library/ctypes.rst:597 msgid "" "Field :term:`descriptor`\\s can be retrieved from the *class*, they are " "useful for debugging because they can provide useful information::" msgstr "" -#: ../../library/ctypes.rst:618 +#: ../../library/ctypes.rst:611 msgid "" ":mod:`ctypes` does not support passing unions or structures with bit-fields " "to functions by value. While this may work on 32-bit x86, it's not " @@ -683,170 +683,169 @@ msgid "" "structures with bit-fields should always be passed to functions by pointer." msgstr "" -#: ../../library/ctypes.rst:624 +#: ../../library/ctypes.rst:617 msgid "Structure/union alignment and byte order" msgstr "" -#: ../../library/ctypes.rst:626 +#: ../../library/ctypes.rst:619 msgid "" "By default, Structure and Union fields are aligned in the same way the C " -"compiler does it. It is possible to override this behavior be specifying a " -":attr:`_pack_` class attribute in the subclass definition. This must be set " +"compiler does it. It is possible to override this behavior by specifying a :" +"attr:`_pack_` class attribute in the subclass definition. This must be set " "to a positive integer and specifies the maximum alignment for the fields. " "This is what ``#pragma pack(n)`` also does in MSVC." msgstr "" -#: ../../library/ctypes.rst:632 +#: ../../library/ctypes.rst:625 msgid "" ":mod:`ctypes` uses the native byte order for Structures and Unions. To " -"build structures with non-native byte order, you can use one of the " -":class:`BigEndianStructure`, :class:`LittleEndianStructure`, " -":class:`BigEndianUnion`, and :class:`LittleEndianUnion` base classes. These" -" classes cannot contain pointer fields." +"build structures with non-native byte order, you can use one of the :class:" +"`BigEndianStructure`, :class:`LittleEndianStructure`, :class:" +"`BigEndianUnion`, and :class:`LittleEndianUnion` base classes. These " +"classes cannot contain pointer fields." msgstr "" -#: ../../library/ctypes.rst:642 +#: ../../library/ctypes.rst:635 msgid "Bit fields in structures and unions" msgstr "" -#: ../../library/ctypes.rst:644 +#: ../../library/ctypes.rst:637 msgid "" "It is possible to create structures and unions containing bit fields. Bit " "fields are only possible for integer fields, the bit width is specified as " "the third item in the :attr:`_fields_` tuples::" msgstr "" -#: ../../library/ctypes.rst:662 +#: ../../library/ctypes.rst:655 msgid "Arrays" msgstr "Arrays" -#: ../../library/ctypes.rst:664 +#: ../../library/ctypes.rst:657 msgid "" "Arrays are sequences, containing a fixed number of instances of the same " "type." msgstr "" -#: ../../library/ctypes.rst:666 +#: ../../library/ctypes.rst:659 msgid "" -"The recommended way to create array types is by multiplying a data type with" -" a positive integer::" +"The recommended way to create array types is by multiplying a data type with " +"a positive integer::" msgstr "" -#: ../../library/ctypes.rst:671 +#: ../../library/ctypes.rst:664 msgid "" "Here is an example of a somewhat artificial data type, a structure " "containing 4 POINTs among other stuff::" msgstr "" -#: ../../library/ctypes.rst:687 +#: ../../library/ctypes.rst:680 msgid "Instances are created in the usual way, by calling the class::" msgstr "" -#: ../../library/ctypes.rst:693 +#: ../../library/ctypes.rst:686 msgid "" "The above code print a series of ``0 0`` lines, because the array contents " "is initialized to zeros." msgstr "" -#: ../../library/ctypes.rst:696 +#: ../../library/ctypes.rst:689 msgid "Initializers of the correct type can also be specified::" msgstr "" -#: ../../library/ctypes.rst:712 +#: ../../library/ctypes.rst:705 msgid "Pointers" msgstr "Ponteiros" -#: ../../library/ctypes.rst:714 +#: ../../library/ctypes.rst:707 msgid "" -"Pointer instances are created by calling the :func:`pointer` function on a " -":mod:`ctypes` type::" +"Pointer instances are created by calling the :func:`pointer` function on a :" +"mod:`ctypes` type::" msgstr "" -#: ../../library/ctypes.rst:722 +#: ../../library/ctypes.rst:715 msgid "" "Pointer instances have a :attr:`~_Pointer.contents` attribute which returns " "the object to which the pointer points, the ``i`` object above::" msgstr "" -#: ../../library/ctypes.rst:729 +#: ../../library/ctypes.rst:722 msgid "" "Note that :mod:`ctypes` does not have OOR (original object return), it " "constructs a new, equivalent object each time you retrieve an attribute::" msgstr "" -#: ../../library/ctypes.rst:738 +#: ../../library/ctypes.rst:731 msgid "" "Assigning another :class:`c_int` instance to the pointer's contents " -"attribute would cause the pointer to point to the memory location where this" -" is stored::" +"attribute would cause the pointer to point to the memory location where this " +"is stored::" msgstr "" -#: ../../library/ctypes.rst:750 +#: ../../library/ctypes.rst:743 msgid "Pointer instances can also be indexed with integers::" msgstr "" -#: ../../library/ctypes.rst:756 +#: ../../library/ctypes.rst:749 msgid "Assigning to an integer index changes the pointed to value::" msgstr "" -#: ../../library/ctypes.rst:765 +#: ../../library/ctypes.rst:758 msgid "" "It is also possible to use indexes different from 0, but you must know what " "you're doing, just as in C: You can access or change arbitrary memory " -"locations. Generally you only use this feature if you receive a pointer from" -" a C function, and you *know* that the pointer actually points to an array " +"locations. Generally you only use this feature if you receive a pointer from " +"a C function, and you *know* that the pointer actually points to an array " "instead of a single item." msgstr "" -#: ../../library/ctypes.rst:771 +#: ../../library/ctypes.rst:764 msgid "" -"Behind the scenes, the :func:`pointer` function does more than simply create" -" pointer instances, it has to create pointer *types* first. This is done " -"with the :func:`POINTER` function, which accepts any :mod:`ctypes` type, and" -" returns a new type::" +"Behind the scenes, the :func:`pointer` function does more than simply create " +"pointer instances, it has to create pointer *types* first. This is done with " +"the :func:`POINTER` function, which accepts any :mod:`ctypes` type, and " +"returns a new type::" msgstr "" -#: ../../library/ctypes.rst:787 +#: ../../library/ctypes.rst:780 msgid "" "Calling the pointer type without an argument creates a ``NULL`` pointer. " "``NULL`` pointers have a ``False`` boolean value::" msgstr "" -#: ../../library/ctypes.rst:795 +#: ../../library/ctypes.rst:788 msgid "" ":mod:`ctypes` checks for ``NULL`` when dereferencing pointers (but " "dereferencing invalid non-\\ ``NULL`` pointers would crash Python)::" msgstr "" -#: ../../library/ctypes.rst:814 +#: ../../library/ctypes.rst:807 msgid "Type conversions" msgstr "Conversão de Tipos" -#: ../../library/ctypes.rst:816 +#: ../../library/ctypes.rst:809 msgid "" "Usually, ctypes does strict type checking. This means, if you have " -"``POINTER(c_int)`` in the :attr:`argtypes` list of a function or as the type" -" of a member field in a structure definition, only instances of exactly the " +"``POINTER(c_int)`` in the :attr:`argtypes` list of a function or as the type " +"of a member field in a structure definition, only instances of exactly the " "same type are accepted. There are some exceptions to this rule, where " "ctypes accepts other objects. For example, you can pass compatible array " "instances instead of pointer types. So, for ``POINTER(c_int)``, ctypes " "accepts an array of c_int::" msgstr "" -#: ../../library/ctypes.rst:837 +#: ../../library/ctypes.rst:830 msgid "" "In addition, if a function argument is explicitly declared to be a pointer " "type (such as ``POINTER(c_int)``) in :attr:`argtypes`, an object of the " -"pointed type (``c_int`` in this case) can be passed to the function. ctypes" -" will apply the required :func:`byref` conversion in this case " -"automatically." +"pointed type (``c_int`` in this case) can be passed to the function. ctypes " +"will apply the required :func:`byref` conversion in this case automatically." msgstr "" -#: ../../library/ctypes.rst:842 +#: ../../library/ctypes.rst:835 msgid "To set a POINTER type field to ``NULL``, you can assign ``None``::" msgstr "" -#: ../../library/ctypes.rst:849 +#: ../../library/ctypes.rst:842 msgid "" "Sometimes you have instances of incompatible types. In C, you can cast one " "type into another type. :mod:`ctypes` provides a :func:`cast` function " @@ -855,73 +854,73 @@ msgid "" "``values`` field, but not instances of other types::" msgstr "" -#: ../../library/ctypes.rst:861 +#: ../../library/ctypes.rst:854 msgid "For these cases, the :func:`cast` function is handy." msgstr "" -#: ../../library/ctypes.rst:863 +#: ../../library/ctypes.rst:856 msgid "" "The :func:`cast` function can be used to cast a ctypes instance into a " -"pointer to a different ctypes data type. :func:`cast` takes two parameters," -" a ctypes object that is or can be converted to a pointer of some kind, and " -"a ctypes pointer type. It returns an instance of the second argument, which" -" references the same memory block as the first argument::" +"pointer to a different ctypes data type. :func:`cast` takes two parameters, " +"a ctypes object that is or can be converted to a pointer of some kind, and a " +"ctypes pointer type. It returns an instance of the second argument, which " +"references the same memory block as the first argument::" msgstr "" -#: ../../library/ctypes.rst:874 +#: ../../library/ctypes.rst:867 msgid "" "So, :func:`cast` can be used to assign to the ``values`` field of ``Bar`` " "the structure::" msgstr "" -#: ../../library/ctypes.rst:887 +#: ../../library/ctypes.rst:880 msgid "Incomplete Types" msgstr "Tipos Incompletos" -#: ../../library/ctypes.rst:889 +#: ../../library/ctypes.rst:882 msgid "" "*Incomplete Types* are structures, unions or arrays whose members are not " "yet specified. In C, they are specified by forward declarations, which are " "defined later::" msgstr "" -#: ../../library/ctypes.rst:900 +#: ../../library/ctypes.rst:893 msgid "" "The straightforward translation into ctypes code would be this, but it does " "not work::" msgstr "" -#: ../../library/ctypes.rst:913 +#: ../../library/ctypes.rst:906 msgid "" "because the new ``class cell`` is not available in the class statement " -"itself. In :mod:`ctypes`, we can define the ``cell`` class and set the " -":attr:`_fields_` attribute later, after the class statement::" +"itself. In :mod:`ctypes`, we can define the ``cell`` class and set the :attr:" +"`_fields_` attribute later, after the class statement::" msgstr "" -#: ../../library/ctypes.rst:925 +#: ../../library/ctypes.rst:918 msgid "" -"Lets try it. We create two instances of ``cell``, and let them point to each" -" other, and finally follow the pointer chain a few times::" +"Let's try it. We create two instances of ``cell``, and let them point to " +"each other, and finally follow the pointer chain a few times::" msgstr "" -#: ../../library/ctypes.rst:946 +#: ../../library/ctypes.rst:939 msgid "Callback functions" msgstr "Funções Callbacks" -#: ../../library/ctypes.rst:948 +#: ../../library/ctypes.rst:941 msgid "" ":mod:`ctypes` allows creating C callable function pointers from Python " "callables. These are sometimes called *callback functions*." msgstr "" -#: ../../library/ctypes.rst:951 +#: ../../library/ctypes.rst:944 msgid "" "First, you must create a class for the callback function. The class knows " "the calling convention, the return type, and the number and types of " "arguments this function will receive." msgstr "" -#: ../../library/ctypes.rst:955 +#: ../../library/ctypes.rst:948 msgid "" "The :func:`CFUNCTYPE` factory function creates types for callback functions " "using the ``cdecl`` calling convention. On Windows, the :func:`WINFUNCTYPE` " @@ -929,200 +928,199 @@ msgid "" "calling convention." msgstr "" -#: ../../library/ctypes.rst:960 +#: ../../library/ctypes.rst:953 msgid "" "Both of these factory functions are called with the result type as first " "argument, and the callback functions expected argument types as the " "remaining arguments." msgstr "" -#: ../../library/ctypes.rst:964 +#: ../../library/ctypes.rst:957 msgid "" -"I will present an example here which uses the standard C library's " -":c:func:`qsort` function, that is used to sort items with the help of a " -"callback function. :c:func:`qsort` will be used to sort an array of " -"integers::" +"I will present an example here which uses the standard C library's :c:func:" +"`qsort` function, that is used to sort items with the help of a callback " +"function. :c:func:`qsort` will be used to sort an array of integers::" msgstr "" -#: ../../library/ctypes.rst:974 +#: ../../library/ctypes.rst:967 msgid "" ":func:`qsort` must be called with a pointer to the data to sort, the number " "of items in the data array, the size of one item, and a pointer to the " -"comparison function, the callback. The callback will then be called with two" -" pointers to items, and it must return a negative integer if the first item " -"is smaller than the second, a zero if they are equal, and a positive integer" -" otherwise." +"comparison function, the callback. The callback will then be called with two " +"pointers to items, and it must return a negative integer if the first item " +"is smaller than the second, a zero if they are equal, and a positive integer " +"otherwise." msgstr "" -#: ../../library/ctypes.rst:980 +#: ../../library/ctypes.rst:973 msgid "" "So our callback function receives pointers to integers, and must return an " "integer. First we create the ``type`` for the callback function::" msgstr "" -#: ../../library/ctypes.rst:986 +#: ../../library/ctypes.rst:979 msgid "" "To get started, here is a simple callback that shows the values it gets " "passed::" msgstr "" -#: ../../library/ctypes.rst:996 +#: ../../library/ctypes.rst:989 msgid "The result::" msgstr "O resultado::" -#: ../../library/ctypes.rst:1006 +#: ../../library/ctypes.rst:999 msgid "Now we can actually compare the two items and return a useful result::" msgstr "" -#: ../../library/ctypes.rst:1021 +#: ../../library/ctypes.rst:1014 msgid "As we can easily check, our array is sorted now::" msgstr "" -#: ../../library/ctypes.rst:1028 +#: ../../library/ctypes.rst:1021 msgid "" -"The function factories can be used as decorator factories, so we may as well" -" write::" +"The function factories can be used as decorator factories, so we may as well " +"write::" msgstr "" -#: ../../library/ctypes.rst:1046 +#: ../../library/ctypes.rst:1039 msgid "" "Make sure you keep references to :func:`CFUNCTYPE` objects as long as they " "are used from C code. :mod:`ctypes` doesn't, and if you don't, they may be " "garbage collected, crashing your program when a callback is made." msgstr "" -#: ../../library/ctypes.rst:1050 +#: ../../library/ctypes.rst:1043 msgid "" "Also, note that if the callback function is called in a thread created " "outside of Python's control (e.g. by the foreign code that calls the " "callback), ctypes creates a new dummy Python thread on every invocation. " "This behavior is correct for most purposes, but it means that values stored " -"with :class:`threading.local` will *not* survive across different callbacks," -" even when those calls are made from the same C thread." +"with :class:`threading.local` will *not* survive across different callbacks, " +"even when those calls are made from the same C thread." msgstr "" -#: ../../library/ctypes.rst:1060 +#: ../../library/ctypes.rst:1053 msgid "Accessing values exported from dlls" msgstr "" -#: ../../library/ctypes.rst:1062 +#: ../../library/ctypes.rst:1055 msgid "" -"Some shared libraries not only export functions, they also export variables." -" An example in the Python library itself is the :c:data:`Py_OptimizeFlag`, " -"an integer set to 0, 1, or 2, depending on the :option:`-O` or :option:`-OO`" -" flag given on startup." +"Some shared libraries not only export functions, they also export variables. " +"An example in the Python library itself is the :c:data:`Py_OptimizeFlag`, an " +"integer set to 0, 1, or 2, depending on the :option:`-O` or :option:`-OO` " +"flag given on startup." msgstr "" -#: ../../library/ctypes.rst:1067 +#: ../../library/ctypes.rst:1060 msgid "" ":mod:`ctypes` can access values like this with the :meth:`in_dll` class " "methods of the type. *pythonapi* is a predefined symbol giving access to " "the Python C api::" msgstr "" -#: ../../library/ctypes.rst:1076 +#: ../../library/ctypes.rst:1069 msgid "" "If the interpreter would have been started with :option:`-O`, the sample " "would have printed ``c_long(1)``, or ``c_long(2)`` if :option:`-OO` would " "have been specified." msgstr "" -#: ../../library/ctypes.rst:1080 +#: ../../library/ctypes.rst:1073 msgid "" -"An extended example which also demonstrates the use of pointers accesses the" -" :c:data:`PyImport_FrozenModules` pointer exported by Python." +"An extended example which also demonstrates the use of pointers accesses " +"the :c:data:`PyImport_FrozenModules` pointer exported by Python." msgstr "" -#: ../../library/ctypes.rst:1083 +#: ../../library/ctypes.rst:1076 msgid "Quoting the docs for that value:" msgstr "" -#: ../../library/ctypes.rst:1085 +#: ../../library/ctypes.rst:1078 msgid "" -"This pointer is initialized to point to an array of :c:type:`struct _frozen`" -" records, terminated by one whose members are all ``NULL`` or zero. When a " +"This pointer is initialized to point to an array of :c:type:`struct _frozen` " +"records, terminated by one whose members are all ``NULL`` or zero. When a " "frozen module is imported, it is searched in this table. Third-party code " "could play tricks with this to provide a dynamically created collection of " "frozen modules." msgstr "" -#: ../../library/ctypes.rst:1090 +#: ../../library/ctypes.rst:1083 msgid "" "So manipulating this pointer could even prove useful. To restrict the " "example size, we show only how this table can be read with :mod:`ctypes`::" msgstr "" -#: ../../library/ctypes.rst:1102 +#: ../../library/ctypes.rst:1095 msgid "" "We have defined the :c:type:`struct _frozen` data type, so we can get the " "pointer to the table::" msgstr "" -#: ../../library/ctypes.rst:1109 +#: ../../library/ctypes.rst:1102 msgid "" "Since ``table`` is a ``pointer`` to the array of ``struct_frozen`` records, " "we can iterate over it, but we just have to make sure that our loop " -"terminates, because pointers have no size. Sooner or later it would probably" -" crash with an access violation or whatever, so it's better to break out of " +"terminates, because pointers have no size. Sooner or later it would probably " +"crash with an access violation or whatever, so it's better to break out of " "the loop when we hit the ``NULL`` entry::" msgstr "" -#: ../../library/ctypes.rst:1127 +#: ../../library/ctypes.rst:1120 msgid "" "The fact that standard Python has a frozen module and a frozen package " -"(indicated by the negative size member) is not well known, it is only used " -"for testing. Try it out with ``import __hello__`` for example." +"(indicated by the negative ``size`` member) is not well known, it is only " +"used for testing. Try it out with ``import __hello__`` for example." msgstr "" -#: ../../library/ctypes.rst:1135 +#: ../../library/ctypes.rst:1128 msgid "Surprises" msgstr "" -#: ../../library/ctypes.rst:1137 +#: ../../library/ctypes.rst:1130 msgid "" -"There are some edges in :mod:`ctypes` where you might expect something other" -" than what actually happens." +"There are some edges in :mod:`ctypes` where you might expect something other " +"than what actually happens." msgstr "" -#: ../../library/ctypes.rst:1140 +#: ../../library/ctypes.rst:1133 msgid "Consider the following example::" msgstr "" -#: ../../library/ctypes.rst:1160 +#: ../../library/ctypes.rst:1153 msgid "" "Hm. We certainly expected the last statement to print ``3 4 1 2``. What " "happened? Here are the steps of the ``rc.a, rc.b = rc.b, rc.a`` line above::" msgstr "" -#: ../../library/ctypes.rst:1168 +#: ../../library/ctypes.rst:1161 msgid "" "Note that ``temp0`` and ``temp1`` are objects still using the internal " "buffer of the ``rc`` object above. So executing ``rc.a = temp0`` copies the " "buffer contents of ``temp0`` into ``rc`` 's buffer. This, in turn, changes " -"the contents of ``temp1``. So, the last assignment ``rc.b = temp1``, doesn't" -" have the expected effect." +"the contents of ``temp1``. So, the last assignment ``rc.b = temp1``, doesn't " +"have the expected effect." msgstr "" -#: ../../library/ctypes.rst:1174 +#: ../../library/ctypes.rst:1167 msgid "" "Keep in mind that retrieving sub-objects from Structure, Unions, and Arrays " "doesn't *copy* the sub-object, instead it retrieves a wrapper object " "accessing the root-object's underlying buffer." msgstr "" -#: ../../library/ctypes.rst:1178 +#: ../../library/ctypes.rst:1171 msgid "" "Another example that may behave differently from what one would expect is " "this::" msgstr "" -#: ../../library/ctypes.rst:1190 +#: ../../library/ctypes.rst:1183 msgid "" -"Objects instantiated from :class:`c_char_p` can only have their value set to" -" bytes or integers." +"Objects instantiated from :class:`c_char_p` can only have their value set to " +"bytes or integers." msgstr "" -#: ../../library/ctypes.rst:1193 +#: ../../library/ctypes.rst:1186 msgid "" "Why is it printing ``False``? ctypes instances are objects containing a " "memory block plus some :term:`descriptor`\\s accessing the contents of the " @@ -1131,17 +1129,16 @@ msgid "" "the contents again constructs a new Python object each time!" msgstr "" -#: ../../library/ctypes.rst:1203 +#: ../../library/ctypes.rst:1196 msgid "Variable-sized data types" msgstr "" -#: ../../library/ctypes.rst:1205 +#: ../../library/ctypes.rst:1198 msgid "" -":mod:`ctypes` provides some support for variable-sized arrays and " -"structures." +":mod:`ctypes` provides some support for variable-sized arrays and structures." msgstr "" -#: ../../library/ctypes.rst:1207 +#: ../../library/ctypes.rst:1200 msgid "" "The :func:`resize` function can be used to resize the memory buffer of an " "existing ctypes object. The function takes the object as first argument, " @@ -1150,50 +1147,50 @@ msgid "" "objects type, a :exc:`ValueError` is raised if this is tried::" msgstr "" -#: ../../library/ctypes.rst:1227 +#: ../../library/ctypes.rst:1220 msgid "" "This is nice and fine, but how would one access the additional elements " "contained in this array? Since the type still only knows about 4 elements, " "we get errors accessing other elements::" msgstr "" -#: ../../library/ctypes.rst:1239 +#: ../../library/ctypes.rst:1232 msgid "" "Another way to use variable-sized data types with :mod:`ctypes` is to use " "the dynamic nature of Python, and (re-)define the data type after the " "required size is already known, on a case by case basis." msgstr "" -#: ../../library/ctypes.rst:1247 +#: ../../library/ctypes.rst:1240 msgid "ctypes reference" msgstr "Referência ctypes" -#: ../../library/ctypes.rst:1253 +#: ../../library/ctypes.rst:1246 msgid "Finding shared libraries" msgstr "" -#: ../../library/ctypes.rst:1255 +#: ../../library/ctypes.rst:1248 msgid "" "When programming in a compiled language, shared libraries are accessed when " "compiling/linking a program, and when the program is run." msgstr "" -#: ../../library/ctypes.rst:1258 +#: ../../library/ctypes.rst:1251 msgid "" -"The purpose of the :func:`find_library` function is to locate a library in a" -" way similar to what the compiler or runtime loader does (on platforms with " +"The purpose of the :func:`find_library` function is to locate a library in a " +"way similar to what the compiler or runtime loader does (on platforms with " "several versions of a shared library the most recent should be loaded), " "while the ctypes library loaders act like when a program is run, and call " "the runtime loader directly." msgstr "" -#: ../../library/ctypes.rst:1264 +#: ../../library/ctypes.rst:1257 msgid "" "The :mod:`ctypes.util` module provides a function which can help to " "determine the library to load." msgstr "" -#: ../../library/ctypes.rst:1272 +#: ../../library/ctypes.rst:1265 msgid "" "Try to find a library and return a pathname. *name* is the library name " "without any prefix like *lib*, suffix like ``.so``, ``.dylib`` or version " @@ -1201,42 +1198,42 @@ msgid "" "If no library can be found, returns ``None``." msgstr "" -#: ../../library/ctypes.rst:1277 ../../library/ctypes.rst:1865 +#: ../../library/ctypes.rst:1270 ../../library/ctypes.rst:1858 msgid "The exact functionality is system dependent." msgstr "" -#: ../../library/ctypes.rst:1279 +#: ../../library/ctypes.rst:1272 msgid "" -"On Linux, :func:`find_library` tries to run external programs " -"(``/sbin/ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library " -"file. It returns the filename of the library file." +"On Linux, :func:`find_library` tries to run external programs (``/sbin/" +"ldconfig``, ``gcc``, ``objdump`` and ``ld``) to find the library file. It " +"returns the filename of the library file." msgstr "" -#: ../../library/ctypes.rst:1283 +#: ../../library/ctypes.rst:1276 msgid "" "On Linux, the value of the environment variable ``LD_LIBRARY_PATH`` is used " "when searching for libraries, if a library cannot be found by any other " "means." msgstr "" -#: ../../library/ctypes.rst:1287 +#: ../../library/ctypes.rst:1280 msgid "Here are some examples::" msgstr "Here are some examples::" -#: ../../library/ctypes.rst:1298 +#: ../../library/ctypes.rst:1291 msgid "" "On OS X, :func:`find_library` tries several predefined naming schemes and " "paths to locate the library, and returns a full pathname if successful::" msgstr "" -#: ../../library/ctypes.rst:1312 +#: ../../library/ctypes.rst:1305 msgid "" "On Windows, :func:`find_library` searches along the system search path, and " "returns the full pathname, but since there is no predefined naming scheme a " "call like ``find_library(\"c\")`` will fail and return ``None``." msgstr "" -#: ../../library/ctypes.rst:1316 +#: ../../library/ctypes.rst:1309 msgid "" "If wrapping a shared library with :mod:`ctypes`, it *may* be better to " "determine the shared library name at development time, and hardcode that " @@ -1244,80 +1241,80 @@ msgid "" "library at runtime." msgstr "" -#: ../../library/ctypes.rst:1324 +#: ../../library/ctypes.rst:1317 msgid "Loading shared libraries" msgstr "" -#: ../../library/ctypes.rst:1326 +#: ../../library/ctypes.rst:1319 msgid "" "There are several ways to load shared libraries into the Python process. " "One way is to instantiate one of the following classes:" msgstr "" -#: ../../library/ctypes.rst:1332 +#: ../../library/ctypes.rst:1325 msgid "" "Instances of this class represent loaded shared libraries. Functions in " "these libraries use the standard C calling convention, and are assumed to " "return :c:type:`int`." msgstr "" -#: ../../library/ctypes.rst:1339 +#: ../../library/ctypes.rst:1332 msgid "" "Windows only: Instances of this class represent loaded shared libraries, " -"functions in these libraries use the ``stdcall`` calling convention, and are" -" assumed to return the windows specific :class:`HRESULT` code. " -":class:`HRESULT` values contain information specifying whether the function " -"call failed or succeeded, together with additional error code. If the " -"return value signals a failure, an :class:`OSError` is automatically raised." +"functions in these libraries use the ``stdcall`` calling convention, and are " +"assumed to return the windows specific :class:`HRESULT` code. :class:" +"`HRESULT` values contain information specifying whether the function call " +"failed or succeeded, together with additional error code. If the return " +"value signals a failure, an :class:`OSError` is automatically raised." msgstr "" -#: ../../library/ctypes.rst:1346 +#: ../../library/ctypes.rst:1339 msgid ":exc:`WindowsError` used to be raised." msgstr "" -#: ../../library/ctypes.rst:1352 +#: ../../library/ctypes.rst:1345 msgid "" "Windows only: Instances of this class represent loaded shared libraries, " -"functions in these libraries use the ``stdcall`` calling convention, and are" -" assumed to return :c:type:`int` by default." +"functions in these libraries use the ``stdcall`` calling convention, and are " +"assumed to return :c:type:`int` by default." msgstr "" -#: ../../library/ctypes.rst:1356 +#: ../../library/ctypes.rst:1349 msgid "" "On Windows CE only the standard calling convention is used, for convenience " "the :class:`WinDLL` and :class:`OleDLL` use the standard calling convention " "on this platform." msgstr "" -#: ../../library/ctypes.rst:1360 +#: ../../library/ctypes.rst:1353 msgid "" "The Python :term:`global interpreter lock` is released before calling any " "function exported by these libraries, and reacquired afterwards." msgstr "" -#: ../../library/ctypes.rst:1366 +#: ../../library/ctypes.rst:1359 msgid "" -"Instances of this class behave like :class:`CDLL` instances, except that the" -" Python GIL is *not* released during the function call, and after the " +"Instances of this class behave like :class:`CDLL` instances, except that the " +"Python GIL is *not* released during the function call, and after the " "function execution the Python error flag is checked. If the error flag is " "set, a Python exception is raised." msgstr "" -#: ../../library/ctypes.rst:1371 +#: ../../library/ctypes.rst:1364 msgid "Thus, this is only useful to call Python C api functions directly." msgstr "" -#: ../../library/ctypes.rst:1373 +#: ../../library/ctypes.rst:1366 msgid "" "All these classes can be instantiated by calling them with at least one " "argument, the pathname of the shared library. If you have an existing " "handle to an already loaded shared library, it can be passed as the " -"``handle`` named parameter, otherwise the underlying platforms ``dlopen`` or" -" ``LoadLibrary`` function is used to load the library into the process, and " +"``handle`` named parameter, otherwise the underlying platforms ``dlopen`` or " +"``LoadLibrary`` function is used to load the library into the process, and " "to get a handle to it." msgstr "" -#: ../../library/ctypes.rst:1380 +#: ../../library/ctypes.rst:1373 msgid "" "The *mode* parameter can be used to specify how the library is loaded. For " "details, consult the :manpage:`dlopen(3)` manpage. On Windows, *mode* is " @@ -1325,74 +1322,74 @@ msgid "" "configurable." msgstr "" -#: ../../library/ctypes.rst:1385 +#: ../../library/ctypes.rst:1378 msgid "" -"The *use_errno* parameter, when set to true, enables a ctypes mechanism that" -" allows accessing the system :data:`errno` error number in a safe way. " -":mod:`ctypes` maintains a thread-local copy of the systems :data:`errno` " -"variable; if you call foreign functions created with ``use_errno=True`` then" -" the :data:`errno` value before the function call is swapped with the ctypes" -" private copy, the same happens immediately after the function call." +"The *use_errno* parameter, when set to true, enables a ctypes mechanism that " +"allows accessing the system :data:`errno` error number in a safe way. :mod:" +"`ctypes` maintains a thread-local copy of the systems :data:`errno` " +"variable; if you call foreign functions created with ``use_errno=True`` then " +"the :data:`errno` value before the function call is swapped with the ctypes " +"private copy, the same happens immediately after the function call." msgstr "" -#: ../../library/ctypes.rst:1392 +#: ../../library/ctypes.rst:1385 msgid "" "The function :func:`ctypes.get_errno` returns the value of the ctypes " "private copy, and the function :func:`ctypes.set_errno` changes the ctypes " "private copy to a new value and returns the former value." msgstr "" -#: ../../library/ctypes.rst:1396 +#: ../../library/ctypes.rst:1389 msgid "" -"The *use_last_error* parameter, when set to true, enables the same mechanism" -" for the Windows error code which is managed by the :func:`GetLastError` and" -" :func:`SetLastError` Windows API functions; :func:`ctypes.get_last_error` " +"The *use_last_error* parameter, when set to true, enables the same mechanism " +"for the Windows error code which is managed by the :func:`GetLastError` and :" +"func:`SetLastError` Windows API functions; :func:`ctypes.get_last_error` " "and :func:`ctypes.set_last_error` are used to request and change the ctypes " "private copy of the windows error code." msgstr "" -#: ../../library/ctypes.rst:1405 +#: ../../library/ctypes.rst:1398 msgid "" "Flag to use as *mode* parameter. On platforms where this flag is not " "available, it is defined as the integer zero." msgstr "" -#: ../../library/ctypes.rst:1412 +#: ../../library/ctypes.rst:1405 msgid "" "Flag to use as *mode* parameter. On platforms where this is not available, " "it is the same as *RTLD_GLOBAL*." msgstr "" -#: ../../library/ctypes.rst:1419 +#: ../../library/ctypes.rst:1412 msgid "" "The default mode which is used to load shared libraries. On OSX 10.3, this " "is *RTLD_GLOBAL*, otherwise it is the same as *RTLD_LOCAL*." msgstr "" -#: ../../library/ctypes.rst:1422 +#: ../../library/ctypes.rst:1415 msgid "" "Instances of these classes have no public methods. Functions exported by " "the shared library can be accessed as attributes or by index. Please note " "that accessing the function through an attribute caches the result and " -"therefore accessing it repeatedly returns the same object each time. On the" -" other hand, accessing it through an index returns a new object each time::" +"therefore accessing it repeatedly returns the same object each time. On the " +"other hand, accessing it through an index returns a new object each time::" msgstr "" -#: ../../library/ctypes.rst:1435 +#: ../../library/ctypes.rst:1428 msgid "" "The following public attributes are available, their name starts with an " "underscore to not clash with exported function names:" msgstr "" -#: ../../library/ctypes.rst:1441 +#: ../../library/ctypes.rst:1434 msgid "The system handle used to access the library." msgstr "" -#: ../../library/ctypes.rst:1446 +#: ../../library/ctypes.rst:1439 msgid "The name of the library passed in the constructor." msgstr "" -#: ../../library/ctypes.rst:1448 +#: ../../library/ctypes.rst:1441 msgid "" "Shared libraries can also be loaded by using one of the prefabricated " "objects, which are instances of the :class:`LibraryLoader` class, either by " @@ -1400,105 +1397,105 @@ msgid "" "attribute of the loader instance." msgstr "" -#: ../../library/ctypes.rst:1456 +#: ../../library/ctypes.rst:1449 msgid "" -"Class which loads shared libraries. *dlltype* should be one of the " -":class:`CDLL`, :class:`PyDLL`, :class:`WinDLL`, or :class:`OleDLL` types." +"Class which loads shared libraries. *dlltype* should be one of the :class:" +"`CDLL`, :class:`PyDLL`, :class:`WinDLL`, or :class:`OleDLL` types." msgstr "" -#: ../../library/ctypes.rst:1459 +#: ../../library/ctypes.rst:1452 msgid "" -":meth:`__getattr__` has special behavior: It allows loading a shared library" -" by accessing it as attribute of a library loader instance. The result is " +":meth:`__getattr__` has special behavior: It allows loading a shared library " +"by accessing it as attribute of a library loader instance. The result is " "cached, so repeated attribute accesses return the same library each time." msgstr "" -#: ../../library/ctypes.rst:1465 +#: ../../library/ctypes.rst:1458 msgid "" "Load a shared library into the process and return it. This method always " "returns a new instance of the library." msgstr "" -#: ../../library/ctypes.rst:1469 +#: ../../library/ctypes.rst:1462 msgid "These prefabricated library loaders are available:" msgstr "" -#: ../../library/ctypes.rst:1474 +#: ../../library/ctypes.rst:1467 msgid "Creates :class:`CDLL` instances." msgstr "" -#: ../../library/ctypes.rst:1480 +#: ../../library/ctypes.rst:1473 msgid "Windows only: Creates :class:`WinDLL` instances." msgstr "" -#: ../../library/ctypes.rst:1486 +#: ../../library/ctypes.rst:1479 msgid "Windows only: Creates :class:`OleDLL` instances." msgstr "" -#: ../../library/ctypes.rst:1492 +#: ../../library/ctypes.rst:1485 msgid "Creates :class:`PyDLL` instances." msgstr "" -#: ../../library/ctypes.rst:1495 +#: ../../library/ctypes.rst:1488 msgid "" "For accessing the C Python api directly, a ready-to-use Python shared " "library object is available:" msgstr "" -#: ../../library/ctypes.rst:1501 +#: ../../library/ctypes.rst:1494 msgid "" "An instance of :class:`PyDLL` that exposes Python C API functions as " -"attributes. Note that all these functions are assumed to return C " -":c:type:`int`, which is of course not always the truth, so you have to " -"assign the correct :attr:`restype` attribute to use these functions." +"attributes. Note that all these functions are assumed to return C :c:type:" +"`int`, which is of course not always the truth, so you have to assign the " +"correct :attr:`restype` attribute to use these functions." msgstr "" -#: ../../library/ctypes.rst:1510 +#: ../../library/ctypes.rst:1503 msgid "Foreign functions" msgstr "" -#: ../../library/ctypes.rst:1512 +#: ../../library/ctypes.rst:1505 msgid "" "As explained in the previous section, foreign functions can be accessed as " -"attributes of loaded shared libraries. The function objects created in this" -" way by default accept any number of arguments, accept any ctypes data " +"attributes of loaded shared libraries. The function objects created in this " +"way by default accept any number of arguments, accept any ctypes data " "instances as arguments, and return the default result type specified by the " "library loader. They are instances of a private class:" msgstr "" -#: ../../library/ctypes.rst:1521 +#: ../../library/ctypes.rst:1514 msgid "Base class for C callable foreign functions." msgstr "" -#: ../../library/ctypes.rst:1523 +#: ../../library/ctypes.rst:1516 msgid "" "Instances of foreign functions are also C compatible data types; they " "represent C function pointers." msgstr "" -#: ../../library/ctypes.rst:1526 +#: ../../library/ctypes.rst:1519 msgid "" "This behavior can be customized by assigning to special attributes of the " "foreign function object." msgstr "" -#: ../../library/ctypes.rst:1531 +#: ../../library/ctypes.rst:1524 msgid "" -"Assign a ctypes type to specify the result type of the foreign function. Use" -" ``None`` for :c:type:`void`, a function not returning anything." +"Assign a ctypes type to specify the result type of the foreign function. Use " +"``None`` for :c:type:`void`, a function not returning anything." msgstr "" -#: ../../library/ctypes.rst:1534 +#: ../../library/ctypes.rst:1527 msgid "" -"It is possible to assign a callable Python object that is not a ctypes type," -" in this case the function is assumed to return a C :c:type:`int`, and the " +"It is possible to assign a callable Python object that is not a ctypes type, " +"in this case the function is assumed to return a C :c:type:`int`, and the " "callable will be called with this integer, allowing further processing or " -"error checking. Using this is deprecated, for more flexible post processing" -" or error checking use a ctypes data type as :attr:`restype` and assign a " +"error checking. Using this is deprecated, for more flexible post processing " +"or error checking use a ctypes data type as :attr:`restype` and assign a " "callable to the :attr:`errcheck` attribute." msgstr "" -#: ../../library/ctypes.rst:1543 +#: ../../library/ctypes.rst:1536 msgid "" "Assign a tuple of ctypes types to specify the argument types that the " "function accepts. Functions using the ``stdcall`` calling convention can " @@ -1507,129 +1504,126 @@ msgid "" "unspecified arguments as well." msgstr "" -#: ../../library/ctypes.rst:1549 +#: ../../library/ctypes.rst:1542 msgid "" -"When a foreign function is called, each actual argument is passed to the " -":meth:`from_param` class method of the items in the :attr:`argtypes` tuple, " +"When a foreign function is called, each actual argument is passed to the :" +"meth:`from_param` class method of the items in the :attr:`argtypes` tuple, " "this method allows adapting the actual argument to an object that the " -"foreign function accepts. For example, a :class:`c_char_p` item in the " -":attr:`argtypes` tuple will convert a string passed as argument into a bytes" -" object using ctypes conversion rules." +"foreign function accepts. For example, a :class:`c_char_p` item in the :" +"attr:`argtypes` tuple will convert a string passed as argument into a bytes " +"object using ctypes conversion rules." msgstr "" -#: ../../library/ctypes.rst:1556 +#: ../../library/ctypes.rst:1549 msgid "" -"New: It is now possible to put items in argtypes which are not ctypes types," -" but each item must have a :meth:`from_param` method which returns a value " -"usable as argument (integer, string, ctypes instance). This allows defining" -" adapters that can adapt custom objects as function parameters." +"New: It is now possible to put items in argtypes which are not ctypes types, " +"but each item must have a :meth:`from_param` method which returns a value " +"usable as argument (integer, string, ctypes instance). This allows defining " +"adapters that can adapt custom objects as function parameters." msgstr "" -#: ../../library/ctypes.rst:1563 +#: ../../library/ctypes.rst:1556 msgid "" -"Assign a Python function or another callable to this attribute. The callable" -" will be called with three or more arguments:" +"Assign a Python function or another callable to this attribute. The callable " +"will be called with three or more arguments:" msgstr "" -#: ../../library/ctypes.rst:1570 +#: ../../library/ctypes.rst:1563 msgid "" -"*result* is what the foreign function returns, as specified by the " -":attr:`restype` attribute." +"*result* is what the foreign function returns, as specified by the :attr:" +"`restype` attribute." msgstr "" -#: ../../library/ctypes.rst:1573 +#: ../../library/ctypes.rst:1566 msgid "" "*func* is the foreign function object itself, this allows reusing the same " "callable object to check or post process the results of several functions." msgstr "" -#: ../../library/ctypes.rst:1577 +#: ../../library/ctypes.rst:1570 msgid "" "*arguments* is a tuple containing the parameters originally passed to the " "function call, this allows specializing the behavior on the arguments used." msgstr "" -#: ../../library/ctypes.rst:1581 +#: ../../library/ctypes.rst:1574 msgid "" "The object that this function returns will be returned from the foreign " -"function call, but it can also check the result value and raise an exception" -" if the foreign function call failed." +"function call, but it can also check the result value and raise an exception " +"if the foreign function call failed." msgstr "" -#: ../../library/ctypes.rst:1588 +#: ../../library/ctypes.rst:1581 msgid "" "This exception is raised when a foreign function call cannot convert one of " "the passed arguments." msgstr "" -#: ../../library/ctypes.rst:1595 +#: ../../library/ctypes.rst:1588 msgid "Function prototypes" msgstr "" -#: ../../library/ctypes.rst:1597 +#: ../../library/ctypes.rst:1590 msgid "" "Foreign functions can also be created by instantiating function prototypes. " -"Function prototypes are similar to function prototypes in C; they describe a" -" function (return type, argument types, calling convention) without defining" -" an implementation. The factory functions must be called with the desired " +"Function prototypes are similar to function prototypes in C; they describe a " +"function (return type, argument types, calling convention) without defining " +"an implementation. The factory functions must be called with the desired " "result type and the argument types of the function, and can be used as " "decorator factories, and as such, be applied to functions through the " "``@wrapper`` syntax. See :ref:`ctypes-callback-functions` for examples." msgstr "" -#: ../../library/ctypes.rst:1608 +#: ../../library/ctypes.rst:1601 msgid "" "The returned function prototype creates functions that use the standard C " "calling convention. The function will release the GIL during the call. If " -"*use_errno* is set to true, the ctypes private copy of the system " -":data:`errno` variable is exchanged with the real :data:`errno` value before" -" and after the call; *use_last_error* does the same for the Windows error " -"code." +"*use_errno* is set to true, the ctypes private copy of the system :data:" +"`errno` variable is exchanged with the real :data:`errno` value before and " +"after the call; *use_last_error* does the same for the Windows error code." msgstr "" -#: ../../library/ctypes.rst:1618 +#: ../../library/ctypes.rst:1611 msgid "" -"Windows only: The returned function prototype creates functions that use the" -" ``stdcall`` calling convention, except on Windows CE where " -":func:`WINFUNCTYPE` is the same as :func:`CFUNCTYPE`. The function will " -"release the GIL during the call. *use_errno* and *use_last_error* have the " -"same meaning as above." +"Windows only: The returned function prototype creates functions that use the " +"``stdcall`` calling convention, except on Windows CE where :func:" +"`WINFUNCTYPE` is the same as :func:`CFUNCTYPE`. The function will release " +"the GIL during the call. *use_errno* and *use_last_error* have the same " +"meaning as above." msgstr "" -#: ../../library/ctypes.rst:1627 +#: ../../library/ctypes.rst:1620 msgid "" "The returned function prototype creates functions that use the Python " -"calling convention. The function will *not* release the GIL during the " -"call." +"calling convention. The function will *not* release the GIL during the call." msgstr "" -#: ../../library/ctypes.rst:1630 +#: ../../library/ctypes.rst:1623 msgid "" "Function prototypes created by these factory functions can be instantiated " -"in different ways, depending on the type and number of the parameters in the" -" call:" +"in different ways, depending on the type and number of the parameters in the " +"call:" msgstr "" -#: ../../library/ctypes.rst:1638 +#: ../../library/ctypes.rst:1631 msgid "" -"Returns a foreign function at the specified address which must be an " -"integer." +"Returns a foreign function at the specified address which must be an integer." msgstr "" -#: ../../library/ctypes.rst:1645 +#: ../../library/ctypes.rst:1638 msgid "" "Create a C callable function (a callback function) from a Python *callable*." msgstr "" -#: ../../library/ctypes.rst:1652 +#: ../../library/ctypes.rst:1645 msgid "" -"Returns a foreign function exported by a shared library. *func_spec* must be" -" a 2-tuple ``(name_or_ordinal, library)``. The first item is the name of the" -" exported function as string, or the ordinal of the exported function as " +"Returns a foreign function exported by a shared library. *func_spec* must be " +"a 2-tuple ``(name_or_ordinal, library)``. The first item is the name of the " +"exported function as string, or the ordinal of the exported function as " "small integer. The second item is the shared library instance." msgstr "" -#: ../../library/ctypes.rst:1662 +#: ../../library/ctypes.rst:1655 msgid "" "Returns a foreign function that will call a COM method. *vtbl_index* is the " "index into the virtual function table, a small non-negative integer. *name* " @@ -1637,101 +1631,101 @@ msgid "" "identifier which is used in extended error reporting." msgstr "" -#: ../../library/ctypes.rst:1667 +#: ../../library/ctypes.rst:1660 msgid "" "COM methods use a special calling convention: They require a pointer to the " "COM interface as first argument, in addition to those parameters that are " "specified in the :attr:`argtypes` tuple." msgstr "" -#: ../../library/ctypes.rst:1671 +#: ../../library/ctypes.rst:1664 msgid "" "The optional *paramflags* parameter creates foreign function wrappers with " "much more functionality than the features described above." msgstr "" -#: ../../library/ctypes.rst:1674 +#: ../../library/ctypes.rst:1667 msgid "*paramflags* must be a tuple of the same length as :attr:`argtypes`." msgstr "" -#: ../../library/ctypes.rst:1676 +#: ../../library/ctypes.rst:1669 msgid "" "Each item in this tuple contains further information about a parameter, it " "must be a tuple containing one, two, or three items." msgstr "" -#: ../../library/ctypes.rst:1679 +#: ../../library/ctypes.rst:1672 msgid "" -"The first item is an integer containing a combination of direction flags for" -" the parameter:" +"The first item is an integer containing a combination of direction flags for " +"the parameter:" msgstr "" -#: ../../library/ctypes.rst:1683 +#: ../../library/ctypes.rst:1676 msgid "1" msgstr "1" -#: ../../library/ctypes.rst:1683 +#: ../../library/ctypes.rst:1676 msgid "Specifies an input parameter to the function." msgstr "" -#: ../../library/ctypes.rst:1686 +#: ../../library/ctypes.rst:1679 msgid "2" msgstr "2" -#: ../../library/ctypes.rst:1686 +#: ../../library/ctypes.rst:1679 msgid "Output parameter. The foreign function fills in a value." msgstr "" -#: ../../library/ctypes.rst:1689 +#: ../../library/ctypes.rst:1682 msgid "4" msgstr "4" -#: ../../library/ctypes.rst:1689 +#: ../../library/ctypes.rst:1682 msgid "Input parameter which defaults to the integer zero." msgstr "" -#: ../../library/ctypes.rst:1691 +#: ../../library/ctypes.rst:1684 msgid "" "The optional second item is the parameter name as string. If this is " "specified, the foreign function can be called with named parameters." msgstr "" -#: ../../library/ctypes.rst:1694 +#: ../../library/ctypes.rst:1687 msgid "The optional third item is the default value for this parameter." msgstr "" -#: ../../library/ctypes.rst:1696 +#: ../../library/ctypes.rst:1689 msgid "" "This example demonstrates how to wrap the Windows ``MessageBoxW`` function " "so that it supports default parameters and named arguments. The C " "declaration from the windows header file is this::" msgstr "" -#: ../../library/ctypes.rst:1707 ../../library/ctypes.rst:1730 +#: ../../library/ctypes.rst:1700 ../../library/ctypes.rst:1723 msgid "Here is the wrapping with :mod:`ctypes`::" msgstr "" -#: ../../library/ctypes.rst:1715 +#: ../../library/ctypes.rst:1708 msgid "The ``MessageBox`` foreign function can now be called in these ways::" msgstr "" -#: ../../library/ctypes.rst:1721 +#: ../../library/ctypes.rst:1714 msgid "" "A second example demonstrates output parameters. The win32 " -"``GetWindowRect`` function retrieves the dimensions of a specified window by" -" copying them into ``RECT`` structure that the caller has to supply. Here " -"is the C declaration::" +"``GetWindowRect`` function retrieves the dimensions of a specified window by " +"copying them into ``RECT`` structure that the caller has to supply. Here is " +"the C declaration::" msgstr "" -#: ../../library/ctypes.rst:1739 +#: ../../library/ctypes.rst:1732 msgid "" "Functions with output parameters will automatically return the output " "parameter value if there is a single one, or a tuple containing the output " -"parameter values when there are more than one, so the GetWindowRect function" -" now returns a RECT instance, when called." +"parameter values when there are more than one, so the GetWindowRect function " +"now returns a RECT instance, when called." msgstr "" -#: ../../library/ctypes.rst:1744 +#: ../../library/ctypes.rst:1737 msgid "" "Output parameters can be combined with the :attr:`errcheck` protocol to do " "further output processing and error checking. The win32 ``GetWindowRect`` " @@ -1740,7 +1734,7 @@ msgid "" "call failed::" msgstr "" -#: ../../library/ctypes.rst:1757 +#: ../../library/ctypes.rst:1750 msgid "" "If the :attr:`errcheck` function returns the argument tuple it receives " "unchanged, :mod:`ctypes` continues the normal processing it does on the " @@ -1749,41 +1743,40 @@ msgid "" "and return them instead, the normal processing will no longer take place::" msgstr "" -#: ../../library/ctypes.rst:1776 +#: ../../library/ctypes.rst:1769 msgid "Utility functions" msgstr "" -#: ../../library/ctypes.rst:1780 +#: ../../library/ctypes.rst:1773 msgid "" "Returns the address of the memory buffer as integer. *obj* must be an " "instance of a ctypes type." msgstr "" -#: ../../library/ctypes.rst:1786 +#: ../../library/ctypes.rst:1779 msgid "" -"Returns the alignment requirements of a ctypes type. *obj_or_type* must be a" -" ctypes type or instance." +"Returns the alignment requirements of a ctypes type. *obj_or_type* must be a " +"ctypes type or instance." msgstr "" -#: ../../library/ctypes.rst:1792 +#: ../../library/ctypes.rst:1785 msgid "" "Returns a light-weight pointer to *obj*, which must be an instance of a " -"ctypes type. *offset* defaults to zero, and must be an integer that will be" -" added to the internal pointer value." +"ctypes type. *offset* defaults to zero, and must be an integer that will be " +"added to the internal pointer value." msgstr "" -#: ../../library/ctypes.rst:1796 +#: ../../library/ctypes.rst:1789 msgid "``byref(obj, offset)`` corresponds to this C code::" msgstr "" -#: ../../library/ctypes.rst:1800 +#: ../../library/ctypes.rst:1793 msgid "" "The returned object can only be used as a foreign function call parameter. " -"It behaves similar to ``pointer(obj)``, but the construction is a lot " -"faster." +"It behaves similar to ``pointer(obj)``, but the construction is a lot faster." msgstr "" -#: ../../library/ctypes.rst:1806 +#: ../../library/ctypes.rst:1799 msgid "" "This function is similar to the cast operator in C. It returns a new " "instance of *type* which points to the same memory block as *obj*. *type* " @@ -1791,19 +1784,19 @@ msgid "" "as a pointer." msgstr "" -#: ../../library/ctypes.rst:1814 +#: ../../library/ctypes.rst:1807 msgid "" "This function creates a mutable character buffer. The returned object is a " "ctypes array of :class:`c_char`." msgstr "" -#: ../../library/ctypes.rst:1817 +#: ../../library/ctypes.rst:1810 msgid "" "*init_or_size* must be an integer which specifies the size of the array, or " "a bytes object which will be used to initialize the array items." msgstr "" -#: ../../library/ctypes.rst:1820 +#: ../../library/ctypes.rst:1813 msgid "" "If a bytes object is specified as first argument, the buffer is made one " "item larger than its length so that the last element in the array is a NUL " @@ -1812,19 +1805,19 @@ msgid "" "not be used." msgstr "" -#: ../../library/ctypes.rst:1829 +#: ../../library/ctypes.rst:1822 msgid "" "This function creates a mutable unicode character buffer. The returned " "object is a ctypes array of :class:`c_wchar`." msgstr "" -#: ../../library/ctypes.rst:1832 +#: ../../library/ctypes.rst:1825 msgid "" "*init_or_size* must be an integer which specifies the size of the array, or " "a string which will be used to initialize the array items." msgstr "" -#: ../../library/ctypes.rst:1835 +#: ../../library/ctypes.rst:1828 msgid "" "If a string is specified as first argument, the buffer is made one item " "larger than the length of the string so that the last element in the array " @@ -1833,21 +1826,21 @@ msgid "" "should not be used." msgstr "" -#: ../../library/ctypes.rst:1845 +#: ../../library/ctypes.rst:1838 msgid "" "Windows only: This function is a hook which allows implementing in-process " "COM servers with ctypes. It is called from the DllCanUnloadNow function " "that the _ctypes extension dll exports." msgstr "" -#: ../../library/ctypes.rst:1852 +#: ../../library/ctypes.rst:1845 msgid "" "Windows only: This function is a hook which allows implementing in-process " "COM servers with ctypes. It is called from the DllGetClassObject function " "that the ``_ctypes`` extension dll exports." msgstr "" -#: ../../library/ctypes.rst:1860 +#: ../../library/ctypes.rst:1853 msgid "" "Try to find a library and return a pathname. *name* is the library name " "without any prefix like ``lib``, suffix like ``.so``, ``.dylib`` or version " @@ -1855,127 +1848,127 @@ msgid "" "If no library can be found, returns ``None``." msgstr "" -#: ../../library/ctypes.rst:1871 +#: ../../library/ctypes.rst:1864 msgid "" "Windows only: return the filename of the VC runtime library used by Python, " "and by the extension modules. If the name of the library cannot be " "determined, ``None`` is returned." msgstr "" -#: ../../library/ctypes.rst:1875 +#: ../../library/ctypes.rst:1868 msgid "" "If you need to free memory, for example, allocated by an extension module " "with a call to the ``free(void *)``, it is important that you use the " "function in the same library that allocated the memory." msgstr "" -#: ../../library/ctypes.rst:1882 +#: ../../library/ctypes.rst:1875 msgid "" -"Windows only: Returns a textual description of the error code *code*. If no" -" error code is specified, the last error code is used by calling the Windows" -" api function GetLastError." +"Windows only: Returns a textual description of the error code *code*. If no " +"error code is specified, the last error code is used by calling the Windows " +"api function GetLastError." msgstr "" -#: ../../library/ctypes.rst:1889 +#: ../../library/ctypes.rst:1882 msgid "" "Windows only: Returns the last error code set by Windows in the calling " "thread. This function calls the Windows `GetLastError()` function directly, " "it does not return the ctypes-private copy of the error code." msgstr "" -#: ../../library/ctypes.rst:1895 +#: ../../library/ctypes.rst:1888 msgid "" -"Returns the current value of the ctypes-private copy of the system " -":data:`errno` variable in the calling thread." +"Returns the current value of the ctypes-private copy of the system :data:" +"`errno` variable in the calling thread." msgstr "" -#: ../../library/ctypes.rst:1900 +#: ../../library/ctypes.rst:1893 msgid "" "Windows only: returns the current value of the ctypes-private copy of the " "system :data:`LastError` variable in the calling thread." msgstr "" -#: ../../library/ctypes.rst:1905 +#: ../../library/ctypes.rst:1898 msgid "" "Same as the standard C memmove library function: copies *count* bytes from " "*src* to *dst*. *dst* and *src* must be integers or ctypes instances that " "can be converted to pointers." msgstr "" -#: ../../library/ctypes.rst:1912 +#: ../../library/ctypes.rst:1905 msgid "" "Same as the standard C memset library function: fills the memory block at " "address *dst* with *count* bytes of value *c*. *dst* must be an integer " "specifying an address, or a ctypes instance." msgstr "" -#: ../../library/ctypes.rst:1919 +#: ../../library/ctypes.rst:1912 msgid "" -"This factory function creates and returns a new ctypes pointer type. Pointer" -" types are cached and reused internally, so calling this function repeatedly" -" is cheap. *type* must be a ctypes type." +"This factory function creates and returns a new ctypes pointer type. Pointer " +"types are cached and reused internally, so calling this function repeatedly " +"is cheap. *type* must be a ctypes type." msgstr "" -#: ../../library/ctypes.rst:1926 +#: ../../library/ctypes.rst:1919 msgid "" "This function creates a new pointer instance, pointing to *obj*. The " "returned object is of the type ``POINTER(type(obj))``." msgstr "" -#: ../../library/ctypes.rst:1929 +#: ../../library/ctypes.rst:1922 msgid "" "Note: If you just want to pass a pointer to an object to a foreign function " "call, you should use ``byref(obj)`` which is much faster." msgstr "" -#: ../../library/ctypes.rst:1935 +#: ../../library/ctypes.rst:1928 msgid "" "This function resizes the internal memory buffer of *obj*, which must be an " "instance of a ctypes type. It is not possible to make the buffer smaller " -"than the native size of the objects type, as given by ``sizeof(type(obj))``," -" but it is possible to enlarge the buffer." +"than the native size of the objects type, as given by ``sizeof(type(obj))``, " +"but it is possible to enlarge the buffer." msgstr "" -#: ../../library/ctypes.rst:1943 +#: ../../library/ctypes.rst:1936 msgid "" -"Set the current value of the ctypes-private copy of the system :data:`errno`" -" variable in the calling thread to *value* and return the previous value." +"Set the current value of the ctypes-private copy of the system :data:`errno` " +"variable in the calling thread to *value* and return the previous value." msgstr "" -#: ../../library/ctypes.rst:1950 +#: ../../library/ctypes.rst:1943 msgid "" -"Windows only: set the current value of the ctypes-private copy of the system" -" :data:`LastError` variable in the calling thread to *value* and return the " -"previous value." +"Windows only: set the current value of the ctypes-private copy of the " +"system :data:`LastError` variable in the calling thread to *value* and " +"return the previous value." msgstr "" -#: ../../library/ctypes.rst:1958 +#: ../../library/ctypes.rst:1951 msgid "" "Returns the size in bytes of a ctypes type or instance memory buffer. Does " "the same as the C ``sizeof`` operator." msgstr "" -#: ../../library/ctypes.rst:1964 +#: ../../library/ctypes.rst:1957 msgid "" -"This function returns the C string starting at memory address *address* as a" -" bytes object. If size is specified, it is used as size, otherwise the " -"string is assumed to be zero-terminated." +"This function returns the C string starting at memory address *address* as a " +"bytes object. If size is specified, it is used as size, otherwise the string " +"is assumed to be zero-terminated." msgstr "" -#: ../../library/ctypes.rst:1971 +#: ../../library/ctypes.rst:1964 msgid "" "Windows only: this function is probably the worst-named thing in ctypes. It " "creates an instance of OSError. If *code* is not specified, " "``GetLastError`` is called to determine the error code. If *descr* is not " -"specified, :func:`FormatError` is called to get a textual description of the" -" error." +"specified, :func:`FormatError` is called to get a textual description of the " +"error." msgstr "" -#: ../../library/ctypes.rst:1977 +#: ../../library/ctypes.rst:1970 msgid "An instance of :exc:`WindowsError` used to be created." msgstr "" -#: ../../library/ctypes.rst:1983 +#: ../../library/ctypes.rst:1976 msgid "" "This function returns the wide character string starting at memory address " "*address* as a string. If *size* is specified, it is used as the number of " @@ -1983,36 +1976,36 @@ msgid "" "terminated." msgstr "" -#: ../../library/ctypes.rst:1992 +#: ../../library/ctypes.rst:1985 msgid "Data types" msgstr "" -#: ../../library/ctypes.rst:1997 +#: ../../library/ctypes.rst:1990 msgid "" "This non-public class is the common base class of all ctypes data types. " "Among other things, all ctypes type instances contain a memory block that " -"hold C compatible data; the address of the memory block is returned by the " -":func:`addressof` helper function. Another instance variable is exposed as " -":attr:`_objects`; this contains other Python objects that need to be kept " +"hold C compatible data; the address of the memory block is returned by the :" +"func:`addressof` helper function. Another instance variable is exposed as :" +"attr:`_objects`; this contains other Python objects that need to be kept " "alive in case the memory block contains pointers." msgstr "" -#: ../../library/ctypes.rst:2004 +#: ../../library/ctypes.rst:1997 msgid "" "Common methods of ctypes data types, these are all class methods (to be " "exact, they are methods of the :term:`metaclass`):" msgstr "" -#: ../../library/ctypes.rst:2009 +#: ../../library/ctypes.rst:2002 msgid "" -"This method returns a ctypes instance that shares the buffer of the *source*" -" object. The *source* object must support the writeable buffer interface. " +"This method returns a ctypes instance that shares the buffer of the *source* " +"object. The *source* object must support the writeable buffer interface. " "The optional *offset* parameter specifies an offset into the source buffer " -"in bytes; the default is zero. If the source buffer is not large enough a " -":exc:`ValueError` is raised." +"in bytes; the default is zero. If the source buffer is not large enough a :" +"exc:`ValueError` is raised." msgstr "" -#: ../../library/ctypes.rst:2018 +#: ../../library/ctypes.rst:2011 msgid "" "This method creates a ctypes instance, copying the buffer from the *source* " "object buffer which must be readable. The optional *offset* parameter " @@ -2020,82 +2013,82 @@ msgid "" "If the source buffer is not large enough a :exc:`ValueError` is raised." msgstr "" -#: ../../library/ctypes.rst:2026 +#: ../../library/ctypes.rst:2019 msgid "" "This method returns a ctypes type instance using the memory specified by " "*address* which must be an integer." msgstr "" -#: ../../library/ctypes.rst:2031 +#: ../../library/ctypes.rst:2024 msgid "" "This method adapts *obj* to a ctypes type. It is called with the actual " "object used in a foreign function call when the type is present in the " -"foreign function's :attr:`argtypes` tuple; it must return an object that can" -" be used as a function call parameter." +"foreign function's :attr:`argtypes` tuple; it must return an object that can " +"be used as a function call parameter." msgstr "" -#: ../../library/ctypes.rst:2036 +#: ../../library/ctypes.rst:2029 msgid "" -"All ctypes data types have a default implementation of this classmethod that" -" normally returns *obj* if that is an instance of the type. Some types " +"All ctypes data types have a default implementation of this classmethod that " +"normally returns *obj* if that is an instance of the type. Some types " "accept other objects as well." msgstr "" -#: ../../library/ctypes.rst:2042 +#: ../../library/ctypes.rst:2035 msgid "" "This method returns a ctypes type instance exported by a shared library. " "*name* is the name of the symbol that exports the data, *library* is the " "loaded shared library." msgstr "" -#: ../../library/ctypes.rst:2046 +#: ../../library/ctypes.rst:2039 msgid "Common instance variables of ctypes data types:" msgstr "" -#: ../../library/ctypes.rst:2050 +#: ../../library/ctypes.rst:2043 msgid "" "Sometimes ctypes data instances do not own the memory block they contain, " -"instead they share part of the memory block of a base object. The " -":attr:`_b_base_` read-only member is the root ctypes object that owns the " -"memory block." +"instead they share part of the memory block of a base object. The :attr:" +"`_b_base_` read-only member is the root ctypes object that owns the memory " +"block." msgstr "" -#: ../../library/ctypes.rst:2057 +#: ../../library/ctypes.rst:2050 msgid "" "This read-only variable is true when the ctypes data instance has allocated " "the memory block itself, false otherwise." msgstr "" -#: ../../library/ctypes.rst:2062 +#: ../../library/ctypes.rst:2055 msgid "" "This member is either ``None`` or a dictionary containing Python objects " -"that need to be kept alive so that the memory block contents is kept valid." -" This object is only exposed for debugging; never modify the contents of " -"this dictionary." +"that need to be kept alive so that the memory block contents is kept valid. " +"This object is only exposed for debugging; never modify the contents of this " +"dictionary." msgstr "" -#: ../../library/ctypes.rst:2075 +#: ../../library/ctypes.rst:2068 msgid "" "This non-public class is the base class of all fundamental ctypes data " -"types. It is mentioned here because it contains the common attributes of the" -" fundamental ctypes data types. :class:`_SimpleCData` is a subclass of " -":class:`_CData`, so it inherits their methods and attributes. ctypes data " +"types. It is mentioned here because it contains the common attributes of the " +"fundamental ctypes data types. :class:`_SimpleCData` is a subclass of :" +"class:`_CData`, so it inherits their methods and attributes. ctypes data " "types that are not and do not contain pointers can now be pickled." msgstr "" -#: ../../library/ctypes.rst:2081 +#: ../../library/ctypes.rst:2074 msgid "Instances have a single attribute:" msgstr "" -#: ../../library/ctypes.rst:2085 +#: ../../library/ctypes.rst:2078 msgid "" "This attribute contains the actual value of the instance. For integer and " "pointer types, it is an integer, for character types, it is a single " -"character bytes object or string, for character pointer types it is a Python" -" bytes object or string." +"character bytes object or string, for character pointer types it is a Python " +"bytes object or string." msgstr "" -#: ../../library/ctypes.rst:2090 +#: ../../library/ctypes.rst:2083 msgid "" "When the ``value`` attribute is retrieved from a ctypes instance, usually a " "new object is returned each time. :mod:`ctypes` does *not* implement " @@ -2103,42 +2096,42 @@ msgid "" "true for all other ctypes object instances." msgstr "" -#: ../../library/ctypes.rst:2096 +#: ../../library/ctypes.rst:2089 msgid "" "Fundamental data types, when returned as foreign function call results, or, " "for example, by retrieving structure field members or array items, are " "transparently converted to native Python types. In other words, if a " -"foreign function has a :attr:`restype` of :class:`c_char_p`, you will always" -" receive a Python bytes object, *not* a :class:`c_char_p` instance." +"foreign function has a :attr:`restype` of :class:`c_char_p`, you will always " +"receive a Python bytes object, *not* a :class:`c_char_p` instance." msgstr "" -#: ../../library/ctypes.rst:2104 +#: ../../library/ctypes.rst:2097 msgid "" "Subclasses of fundamental data types do *not* inherit this behavior. So, if " "a foreign functions :attr:`restype` is a subclass of :class:`c_void_p`, you " -"will receive an instance of this subclass from the function call. Of course," -" you can get the value of the pointer by accessing the ``value`` attribute." +"will receive an instance of this subclass from the function call. Of course, " +"you can get the value of the pointer by accessing the ``value`` attribute." msgstr "" -#: ../../library/ctypes.rst:2109 +#: ../../library/ctypes.rst:2102 msgid "These are the fundamental ctypes data types:" msgstr "" -#: ../../library/ctypes.rst:2113 +#: ../../library/ctypes.rst:2106 msgid "" -"Represents the C :c:type:`signed char` datatype, and interprets the value as" -" small integer. The constructor accepts an optional integer initializer; no" -" overflow checking is done." +"Represents the C :c:type:`signed char` datatype, and interprets the value as " +"small integer. The constructor accepts an optional integer initializer; no " +"overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2120 +#: ../../library/ctypes.rst:2113 msgid "" "Represents the C :c:type:`char` datatype, and interprets the value as a " "single character. The constructor accepts an optional string initializer, " "the length of the string must be exactly one character." msgstr "" -#: ../../library/ctypes.rst:2127 +#: ../../library/ctypes.rst:2120 msgid "" "Represents the C :c:type:`char *` datatype when it points to a zero-" "terminated string. For a general character pointer that may also point to " @@ -2146,247 +2139,247 @@ msgid "" "integer address, or a bytes object." msgstr "" -#: ../../library/ctypes.rst:2135 +#: ../../library/ctypes.rst:2128 msgid "" "Represents the C :c:type:`double` datatype. The constructor accepts an " "optional float initializer." msgstr "" -#: ../../library/ctypes.rst:2141 +#: ../../library/ctypes.rst:2134 msgid "" -"Represents the C :c:type:`long double` datatype. The constructor accepts an" -" optional float initializer. On platforms where ``sizeof(long double) == " +"Represents the C :c:type:`long double` datatype. The constructor accepts an " +"optional float initializer. On platforms where ``sizeof(long double) == " "sizeof(double)`` it is an alias to :class:`c_double`." msgstr "" -#: ../../library/ctypes.rst:2147 +#: ../../library/ctypes.rst:2140 msgid "" "Represents the C :c:type:`float` datatype. The constructor accepts an " "optional float initializer." msgstr "" -#: ../../library/ctypes.rst:2153 +#: ../../library/ctypes.rst:2146 msgid "" "Represents the C :c:type:`signed int` datatype. The constructor accepts an " "optional integer initializer; no overflow checking is done. On platforms " "where ``sizeof(int) == sizeof(long)`` it is an alias to :class:`c_long`." msgstr "" -#: ../../library/ctypes.rst:2160 +#: ../../library/ctypes.rst:2153 msgid "" -"Represents the C 8-bit :c:type:`signed int` datatype. Usually an alias for " -":class:`c_byte`." +"Represents the C 8-bit :c:type:`signed int` datatype. Usually an alias for :" +"class:`c_byte`." msgstr "" -#: ../../library/ctypes.rst:2166 +#: ../../library/ctypes.rst:2159 msgid "" -"Represents the C 16-bit :c:type:`signed int` datatype. Usually an alias for" -" :class:`c_short`." +"Represents the C 16-bit :c:type:`signed int` datatype. Usually an alias " +"for :class:`c_short`." msgstr "" -#: ../../library/ctypes.rst:2172 +#: ../../library/ctypes.rst:2165 msgid "" -"Represents the C 32-bit :c:type:`signed int` datatype. Usually an alias for" -" :class:`c_int`." +"Represents the C 32-bit :c:type:`signed int` datatype. Usually an alias " +"for :class:`c_int`." msgstr "" -#: ../../library/ctypes.rst:2178 +#: ../../library/ctypes.rst:2171 msgid "" -"Represents the C 64-bit :c:type:`signed int` datatype. Usually an alias for" -" :class:`c_longlong`." +"Represents the C 64-bit :c:type:`signed int` datatype. Usually an alias " +"for :class:`c_longlong`." msgstr "" -#: ../../library/ctypes.rst:2184 +#: ../../library/ctypes.rst:2177 msgid "" -"Represents the C :c:type:`signed long` datatype. The constructor accepts an" -" optional integer initializer; no overflow checking is done." +"Represents the C :c:type:`signed long` datatype. The constructor accepts an " +"optional integer initializer; no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2190 +#: ../../library/ctypes.rst:2183 msgid "" "Represents the C :c:type:`signed long long` datatype. The constructor " "accepts an optional integer initializer; no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2196 +#: ../../library/ctypes.rst:2189 msgid "" "Represents the C :c:type:`signed short` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2202 +#: ../../library/ctypes.rst:2195 msgid "Represents the C :c:type:`size_t` datatype." msgstr "" -#: ../../library/ctypes.rst:2207 +#: ../../library/ctypes.rst:2200 msgid "Represents the C :c:type:`ssize_t` datatype." msgstr "" -#: ../../library/ctypes.rst:2214 +#: ../../library/ctypes.rst:2207 msgid "" "Represents the C :c:type:`unsigned char` datatype, it interprets the value " "as small integer. The constructor accepts an optional integer initializer; " "no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2221 +#: ../../library/ctypes.rst:2214 msgid "" "Represents the C :c:type:`unsigned int` datatype. The constructor accepts " -"an optional integer initializer; no overflow checking is done. On platforms" -" where ``sizeof(int) == sizeof(long)`` it is an alias for :class:`c_ulong`." +"an optional integer initializer; no overflow checking is done. On platforms " +"where ``sizeof(int) == sizeof(long)`` it is an alias for :class:`c_ulong`." msgstr "" -#: ../../library/ctypes.rst:2228 +#: ../../library/ctypes.rst:2221 msgid "" "Represents the C 8-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_ubyte`." msgstr "" -#: ../../library/ctypes.rst:2234 +#: ../../library/ctypes.rst:2227 msgid "" "Represents the C 16-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_ushort`." msgstr "" -#: ../../library/ctypes.rst:2240 +#: ../../library/ctypes.rst:2233 msgid "" "Represents the C 32-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_uint`." msgstr "" -#: ../../library/ctypes.rst:2246 +#: ../../library/ctypes.rst:2239 msgid "" "Represents the C 64-bit :c:type:`unsigned int` datatype. Usually an alias " "for :class:`c_ulonglong`." msgstr "" -#: ../../library/ctypes.rst:2252 +#: ../../library/ctypes.rst:2245 msgid "" "Represents the C :c:type:`unsigned long` datatype. The constructor accepts " "an optional integer initializer; no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2258 +#: ../../library/ctypes.rst:2251 msgid "" "Represents the C :c:type:`unsigned long long` datatype. The constructor " "accepts an optional integer initializer; no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2264 +#: ../../library/ctypes.rst:2257 msgid "" -"Represents the C :c:type:`unsigned short` datatype. The constructor accepts" -" an optional integer initializer; no overflow checking is done." +"Represents the C :c:type:`unsigned short` datatype. The constructor accepts " +"an optional integer initializer; no overflow checking is done." msgstr "" -#: ../../library/ctypes.rst:2270 +#: ../../library/ctypes.rst:2263 msgid "" "Represents the C :c:type:`void *` type. The value is represented as " "integer. The constructor accepts an optional integer initializer." msgstr "" -#: ../../library/ctypes.rst:2276 +#: ../../library/ctypes.rst:2269 msgid "" "Represents the C :c:type:`wchar_t` datatype, and interprets the value as a " -"single character unicode string. The constructor accepts an optional string" -" initializer, the length of the string must be exactly one character." +"single character unicode string. The constructor accepts an optional string " +"initializer, the length of the string must be exactly one character." msgstr "" -#: ../../library/ctypes.rst:2283 +#: ../../library/ctypes.rst:2276 msgid "" "Represents the C :c:type:`wchar_t *` datatype, which must be a pointer to a " "zero-terminated wide character string. The constructor accepts an integer " "address, or a string." msgstr "" -#: ../../library/ctypes.rst:2290 +#: ../../library/ctypes.rst:2283 msgid "" "Represent the C :c:type:`bool` datatype (more accurately, :c:type:`_Bool` " "from C99). Its value can be ``True`` or ``False``, and the constructor " "accepts any object that has a truth value." msgstr "" -#: ../../library/ctypes.rst:2297 +#: ../../library/ctypes.rst:2290 msgid "" "Windows only: Represents a :c:type:`HRESULT` value, which contains success " "or error information for a function or method call." msgstr "" -#: ../../library/ctypes.rst:2303 +#: ../../library/ctypes.rst:2296 msgid "" "Represents the C :c:type:`PyObject *` datatype. Calling this without an " "argument creates a ``NULL`` :c:type:`PyObject *` pointer." msgstr "" -#: ../../library/ctypes.rst:2306 +#: ../../library/ctypes.rst:2299 msgid "" -"The :mod:`ctypes.wintypes` module provides quite some other Windows specific" -" data types, for example :c:type:`HWND`, :c:type:`WPARAM`, or " -":c:type:`DWORD`. Some useful structures like :c:type:`MSG` or " -":c:type:`RECT` are also defined." +"The :mod:`ctypes.wintypes` module provides quite some other Windows specific " +"data types, for example :c:type:`HWND`, :c:type:`WPARAM`, or :c:type:" +"`DWORD`. Some useful structures like :c:type:`MSG` or :c:type:`RECT` are " +"also defined." msgstr "" -#: ../../library/ctypes.rst:2314 +#: ../../library/ctypes.rst:2307 msgid "Structured data types" msgstr "" -#: ../../library/ctypes.rst:2319 +#: ../../library/ctypes.rst:2312 msgid "Abstract base class for unions in native byte order." msgstr "" -#: ../../library/ctypes.rst:2324 +#: ../../library/ctypes.rst:2317 msgid "Abstract base class for structures in *big endian* byte order." msgstr "" -#: ../../library/ctypes.rst:2329 +#: ../../library/ctypes.rst:2322 msgid "Abstract base class for structures in *little endian* byte order." msgstr "" -#: ../../library/ctypes.rst:2331 +#: ../../library/ctypes.rst:2324 msgid "" -"Structures with non-native byte order cannot contain pointer type fields, or" -" any other data types containing pointer type fields." +"Structures with non-native byte order cannot contain pointer type fields, or " +"any other data types containing pointer type fields." msgstr "" -#: ../../library/ctypes.rst:2337 +#: ../../library/ctypes.rst:2330 msgid "Abstract base class for structures in *native* byte order." msgstr "" -#: ../../library/ctypes.rst:2339 +#: ../../library/ctypes.rst:2332 msgid "" "Concrete structure and union types must be created by subclassing one of " -"these types, and at least define a :attr:`_fields_` class variable. " -":mod:`ctypes` will create :term:`descriptor`\\s which allow reading and " -"writing the fields by direct attribute accesses. These are the" +"these types, and at least define a :attr:`_fields_` class variable. :mod:" +"`ctypes` will create :term:`descriptor`\\s which allow reading and writing " +"the fields by direct attribute accesses. These are the" msgstr "" -#: ../../library/ctypes.rst:2347 +#: ../../library/ctypes.rst:2340 msgid "" -"A sequence defining the structure fields. The items must be 2-tuples or " -"3-tuples. The first item is the name of the field, the second item " -"specifies the type of the field; it can be any ctypes data type." +"A sequence defining the structure fields. The items must be 2-tuples or 3-" +"tuples. The first item is the name of the field, the second item specifies " +"the type of the field; it can be any ctypes data type." msgstr "" -#: ../../library/ctypes.rst:2351 +#: ../../library/ctypes.rst:2344 msgid "" "For integer type fields like :class:`c_int`, a third optional item can be " "given. It must be a small positive integer defining the bit width of the " "field." msgstr "" -#: ../../library/ctypes.rst:2355 +#: ../../library/ctypes.rst:2348 msgid "" "Field names must be unique within one structure or union. This is not " "checked, only one field can be accessed when names are repeated." msgstr "" -#: ../../library/ctypes.rst:2358 +#: ../../library/ctypes.rst:2351 msgid "" "It is possible to define the :attr:`_fields_` class variable *after* the " "class statement that defines the Structure subclass, this allows creating " "data types that directly or indirectly reference themselves::" msgstr "" -#: ../../library/ctypes.rst:2368 +#: ../../library/ctypes.rst:2361 msgid "" "The :attr:`_fields_` class variable must, however, be defined before the " "type is first used (an instance is created, :func:`sizeof` is called on it, " @@ -2394,40 +2387,40 @@ msgid "" "raise an AttributeError." msgstr "" -#: ../../library/ctypes.rst:2373 +#: ../../library/ctypes.rst:2366 msgid "" -"It is possible to define sub-subclasses of structure types, they inherit the" -" fields of the base class plus the :attr:`_fields_` defined in the sub-" +"It is possible to define sub-subclasses of structure types, they inherit the " +"fields of the base class plus the :attr:`_fields_` defined in the sub-" "subclass, if any." msgstr "" -#: ../../library/ctypes.rst:2380 +#: ../../library/ctypes.rst:2373 msgid "" "An optional small integer that allows overriding the alignment of structure " -"fields in the instance. :attr:`_pack_` must already be defined when " -":attr:`_fields_` is assigned, otherwise it will have no effect." +"fields in the instance. :attr:`_pack_` must already be defined when :attr:" +"`_fields_` is assigned, otherwise it will have no effect." msgstr "" -#: ../../library/ctypes.rst:2387 +#: ../../library/ctypes.rst:2380 msgid "" -"An optional sequence that lists the names of unnamed (anonymous) fields. " -":attr:`_anonymous_` must be already defined when :attr:`_fields_` is " +"An optional sequence that lists the names of unnamed (anonymous) fields. :" +"attr:`_anonymous_` must be already defined when :attr:`_fields_` is " "assigned, otherwise it will have no effect." msgstr "" -#: ../../library/ctypes.rst:2391 +#: ../../library/ctypes.rst:2384 msgid "" -"The fields listed in this variable must be structure or union type fields. " -":mod:`ctypes` will create descriptors in the structure type that allows " +"The fields listed in this variable must be structure or union type fields. :" +"mod:`ctypes` will create descriptors in the structure type that allows " "accessing the nested fields directly, without the need to create the " "structure or union field." msgstr "" -#: ../../library/ctypes.rst:2396 +#: ../../library/ctypes.rst:2389 msgid "Here is an example type (Windows)::" msgstr "" -#: ../../library/ctypes.rst:2409 +#: ../../library/ctypes.rst:2402 msgid "" "The ``TYPEDESC`` structure describes a COM data type, the ``vt`` field " "specifies which one of the union fields is valid. Since the ``u`` field is " @@ -2437,83 +2430,83 @@ msgid "" "temporary union instance::" msgstr "" -#: ../../library/ctypes.rst:2421 +#: ../../library/ctypes.rst:2414 msgid "" "It is possible to define sub-subclasses of structures, they inherit the " -"fields of the base class. If the subclass definition has a separate " -":attr:`_fields_` variable, the fields specified in this are appended to the " -"fields of the base class." +"fields of the base class. If the subclass definition has a separate :attr:" +"`_fields_` variable, the fields specified in this are appended to the fields " +"of the base class." msgstr "" -#: ../../library/ctypes.rst:2426 +#: ../../library/ctypes.rst:2419 msgid "" "Structure and union constructors accept both positional and keyword " -"arguments. Positional arguments are used to initialize member fields in the" -" same order as they are appear in :attr:`_fields_`. Keyword arguments in " -"the constructor are interpreted as attribute assignments, so they will " -"initialize :attr:`_fields_` with the same name, or create new attributes for" -" names not present in :attr:`_fields_`." +"arguments. Positional arguments are used to initialize member fields in the " +"same order as they are appear in :attr:`_fields_`. Keyword arguments in the " +"constructor are interpreted as attribute assignments, so they will " +"initialize :attr:`_fields_` with the same name, or create new attributes for " +"names not present in :attr:`_fields_`." msgstr "" -#: ../../library/ctypes.rst:2437 +#: ../../library/ctypes.rst:2430 msgid "Arrays and pointers" msgstr "" -#: ../../library/ctypes.rst:2441 +#: ../../library/ctypes.rst:2434 msgid "Abstract base class for arrays." msgstr "" -#: ../../library/ctypes.rst:2443 +#: ../../library/ctypes.rst:2436 msgid "" -"The recommended way to create concrete array types is by multiplying any " -":mod:`ctypes` data type with a positive integer. Alternatively, you can " +"The recommended way to create concrete array types is by multiplying any :" +"mod:`ctypes` data type with a positive integer. Alternatively, you can " "subclass this type and define :attr:`_length_` and :attr:`_type_` class " "variables. Array elements can be read and written using standard subscript " -"and slice accesses; for slice reads, the resulting object is *not* itself an" -" :class:`Array`." +"and slice accesses; for slice reads, the resulting object is *not* itself " +"an :class:`Array`." msgstr "" -#: ../../library/ctypes.rst:2453 +#: ../../library/ctypes.rst:2446 msgid "" "A positive integer specifying the number of elements in the array. Out-of-" -"range subscripts result in an :exc:`IndexError`. Will be returned by " -":func:`len`." +"range subscripts result in an :exc:`IndexError`. Will be returned by :func:" +"`len`." msgstr "" -#: ../../library/ctypes.rst:2460 +#: ../../library/ctypes.rst:2453 msgid "Specifies the type of each element in the array." msgstr "" -#: ../../library/ctypes.rst:2463 +#: ../../library/ctypes.rst:2456 msgid "" "Array subclass constructors accept positional arguments, used to initialize " "the elements in order." msgstr "" -#: ../../library/ctypes.rst:2469 +#: ../../library/ctypes.rst:2462 msgid "Private, abstract base class for pointers." msgstr "" -#: ../../library/ctypes.rst:2471 +#: ../../library/ctypes.rst:2464 msgid "" "Concrete pointer types are created by calling :func:`POINTER` with the type " "that will be pointed to; this is done automatically by :func:`pointer`." msgstr "" -#: ../../library/ctypes.rst:2475 +#: ../../library/ctypes.rst:2468 msgid "" "If a pointer points to an array, its elements can be read and written using " -"standard subscript and slice accesses. Pointer objects have no size, so " -":func:`len` will raise :exc:`TypeError`. Negative subscripts will read from" -" the memory *before* the pointer (as in C), and out-of-range subscripts will" -" probably crash with an access violation (if you're lucky)." +"standard subscript and slice accesses. Pointer objects have no size, so :" +"func:`len` will raise :exc:`TypeError`. Negative subscripts will read from " +"the memory *before* the pointer (as in C), and out-of-range subscripts will " +"probably crash with an access violation (if you're lucky)." msgstr "" -#: ../../library/ctypes.rst:2485 +#: ../../library/ctypes.rst:2478 msgid "Specifies the type pointed to." msgstr "" -#: ../../library/ctypes.rst:2489 +#: ../../library/ctypes.rst:2482 msgid "" "Returns the object to which to pointer points. Assigning to this attribute " "changes the pointer to point to the assigned object." diff --git a/library/curses.ascii.po b/library/curses.ascii.po index 8c77582d6..3ffe9cc4c 100644 --- a/library/curses.ascii.po +++ b/library/curses.ascii.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,11 +45,11 @@ msgstr "Significado" #: ../../library/curses.ascii.rst:19 msgid ":const:`NUL`" -msgstr "" +msgstr ":const:`NUL`" #: ../../library/curses.ascii.rst:21 msgid ":const:`SOH`" -msgstr "" +msgstr ":const:`SOH`" #: ../../library/curses.ascii.rst:21 msgid "Start of heading, console interrupt" @@ -56,7 +57,7 @@ msgstr "" #: ../../library/curses.ascii.rst:23 msgid ":const:`STX`" -msgstr "" +msgstr ":const:`STX`" #: ../../library/curses.ascii.rst:23 msgid "Start of text" @@ -64,7 +65,7 @@ msgstr "" #: ../../library/curses.ascii.rst:25 msgid ":const:`ETX`" -msgstr "" +msgstr ":const:`ETX`" #: ../../library/curses.ascii.rst:25 msgid "End of text" @@ -72,7 +73,7 @@ msgstr "" #: ../../library/curses.ascii.rst:27 msgid ":const:`EOT`" -msgstr "" +msgstr ":const:`EOT`" #: ../../library/curses.ascii.rst:27 msgid "End of transmission" @@ -80,7 +81,7 @@ msgstr "" #: ../../library/curses.ascii.rst:29 msgid ":const:`ENQ`" -msgstr "" +msgstr ":const:`ENQ`" #: ../../library/curses.ascii.rst:29 msgid "Enquiry, goes with :const:`ACK` flow control" @@ -88,7 +89,7 @@ msgstr "" #: ../../library/curses.ascii.rst:31 msgid ":const:`ACK`" -msgstr "" +msgstr ":const:`ACK`" #: ../../library/curses.ascii.rst:31 msgid "Acknowledgement" @@ -96,7 +97,7 @@ msgstr "" #: ../../library/curses.ascii.rst:33 msgid ":const:`BEL`" -msgstr "" +msgstr ":const:`BEL`" #: ../../library/curses.ascii.rst:33 msgid "Bell" @@ -104,7 +105,7 @@ msgstr "" #: ../../library/curses.ascii.rst:35 msgid ":const:`BS`" -msgstr "" +msgstr ":const:`BS`" #: ../../library/curses.ascii.rst:35 msgid "Backspace" @@ -112,7 +113,7 @@ msgstr "" #: ../../library/curses.ascii.rst:37 msgid ":const:`TAB`" -msgstr "" +msgstr ":const:`TAB`" #: ../../library/curses.ascii.rst:37 msgid "Tab" @@ -120,7 +121,7 @@ msgstr "" #: ../../library/curses.ascii.rst:39 msgid ":const:`HT`" -msgstr "" +msgstr ":const:`HT`" #: ../../library/curses.ascii.rst:39 msgid "Alias for :const:`TAB`: \"Horizontal tab\"" @@ -128,7 +129,7 @@ msgstr "" #: ../../library/curses.ascii.rst:41 msgid ":const:`LF`" -msgstr "" +msgstr ":const:`LF`" #: ../../library/curses.ascii.rst:41 msgid "Line feed" @@ -136,7 +137,7 @@ msgstr "" #: ../../library/curses.ascii.rst:43 msgid ":const:`NL`" -msgstr "" +msgstr ":const:`NL`" #: ../../library/curses.ascii.rst:43 msgid "Alias for :const:`LF`: \"New line\"" @@ -144,7 +145,7 @@ msgstr "" #: ../../library/curses.ascii.rst:45 msgid ":const:`VT`" -msgstr "" +msgstr ":const:`VT`" #: ../../library/curses.ascii.rst:45 msgid "Vertical tab" @@ -152,7 +153,7 @@ msgstr "" #: ../../library/curses.ascii.rst:47 msgid ":const:`FF`" -msgstr "" +msgstr ":const:`FF`" #: ../../library/curses.ascii.rst:47 msgid "Form feed" @@ -160,7 +161,7 @@ msgstr "" #: ../../library/curses.ascii.rst:49 msgid ":const:`CR`" -msgstr "" +msgstr ":const:`CR`" #: ../../library/curses.ascii.rst:49 msgid "Carriage return" @@ -168,7 +169,7 @@ msgstr "" #: ../../library/curses.ascii.rst:51 msgid ":const:`SO`" -msgstr "" +msgstr ":const:`SO`" #: ../../library/curses.ascii.rst:51 msgid "Shift-out, begin alternate character set" @@ -176,7 +177,7 @@ msgstr "" #: ../../library/curses.ascii.rst:53 msgid ":const:`SI`" -msgstr "" +msgstr ":const:`SI`" #: ../../library/curses.ascii.rst:53 msgid "Shift-in, resume default character set" @@ -184,7 +185,7 @@ msgstr "" #: ../../library/curses.ascii.rst:55 msgid ":const:`DLE`" -msgstr "" +msgstr ":const:`DLE`" #: ../../library/curses.ascii.rst:55 msgid "Data-link escape" @@ -192,7 +193,7 @@ msgstr "" #: ../../library/curses.ascii.rst:57 msgid ":const:`DC1`" -msgstr "" +msgstr ":const:`DC1`" #: ../../library/curses.ascii.rst:57 msgid "XON, for flow control" @@ -200,7 +201,7 @@ msgstr "" #: ../../library/curses.ascii.rst:59 msgid ":const:`DC2`" -msgstr "" +msgstr ":const:`DC2`" #: ../../library/curses.ascii.rst:59 msgid "Device control 2, block-mode flow control" @@ -208,7 +209,7 @@ msgstr "" #: ../../library/curses.ascii.rst:61 msgid ":const:`DC3`" -msgstr "" +msgstr ":const:`DC3`" #: ../../library/curses.ascii.rst:61 msgid "XOFF, for flow control" @@ -216,7 +217,7 @@ msgstr "" #: ../../library/curses.ascii.rst:63 msgid ":const:`DC4`" -msgstr "" +msgstr ":const:`DC4`" #: ../../library/curses.ascii.rst:63 msgid "Device control 4" @@ -224,7 +225,7 @@ msgstr "" #: ../../library/curses.ascii.rst:65 msgid ":const:`NAK`" -msgstr "" +msgstr ":const:`NAK`" #: ../../library/curses.ascii.rst:65 msgid "Negative acknowledgement" @@ -232,7 +233,7 @@ msgstr "" #: ../../library/curses.ascii.rst:67 msgid ":const:`SYN`" -msgstr "" +msgstr ":const:`SYN`" #: ../../library/curses.ascii.rst:67 msgid "Synchronous idle" @@ -240,7 +241,7 @@ msgstr "" #: ../../library/curses.ascii.rst:69 msgid ":const:`ETB`" -msgstr "" +msgstr ":const:`ETB`" #: ../../library/curses.ascii.rst:69 msgid "End transmission block" @@ -248,7 +249,7 @@ msgstr "" #: ../../library/curses.ascii.rst:71 msgid ":const:`CAN`" -msgstr "" +msgstr ":const:`CAN`" #: ../../library/curses.ascii.rst:71 msgid "Cancel" @@ -256,7 +257,7 @@ msgstr "" #: ../../library/curses.ascii.rst:73 msgid ":const:`EM`" -msgstr "" +msgstr ":const:`EM`" #: ../../library/curses.ascii.rst:73 msgid "End of medium" @@ -264,7 +265,7 @@ msgstr "" #: ../../library/curses.ascii.rst:75 msgid ":const:`SUB`" -msgstr "" +msgstr ":const:`SUB`" #: ../../library/curses.ascii.rst:75 msgid "Substitute" @@ -272,7 +273,7 @@ msgstr "" #: ../../library/curses.ascii.rst:77 msgid ":const:`ESC`" -msgstr "" +msgstr ":const:`ESC`" #: ../../library/curses.ascii.rst:77 msgid "Escape" @@ -280,7 +281,7 @@ msgstr "" #: ../../library/curses.ascii.rst:79 msgid ":const:`FS`" -msgstr "" +msgstr ":const:`FS`" #: ../../library/curses.ascii.rst:79 msgid "File separator" @@ -288,7 +289,7 @@ msgstr "" #: ../../library/curses.ascii.rst:81 msgid ":const:`GS`" -msgstr "" +msgstr ":const:`GS`" #: ../../library/curses.ascii.rst:81 msgid "Group separator" @@ -296,7 +297,7 @@ msgstr "" #: ../../library/curses.ascii.rst:83 msgid ":const:`RS`" -msgstr "" +msgstr ":const:`RS`" #: ../../library/curses.ascii.rst:83 msgid "Record separator, block-mode terminator" @@ -328,8 +329,8 @@ msgstr "Delete" #: ../../library/curses.ascii.rst:92 msgid "" -"Note that many of these have little practical significance in modern usage." -" The mnemonics derive from teleprinter conventions that predate digital " +"Note that many of these have little practical significance in modern usage. " +"The mnemonics derive from teleprinter conventions that predate digital " "computers." msgstr "" @@ -341,8 +342,8 @@ msgstr "" #: ../../library/curses.ascii.rst:101 msgid "" -"Checks for an ASCII alphanumeric character; it is equivalent to ``isalpha(c)" -" or isdigit(c)``." +"Checks for an ASCII alphanumeric character; it is equivalent to ``isalpha(c) " +"or isdigit(c)``." msgstr "" #: ../../library/curses.ascii.rst:107 @@ -400,8 +401,8 @@ msgstr "" #: ../../library/curses.ascii.rst:166 msgid "" -"Checks for an ASCII hexadecimal digit. This is equivalent to ``c in " -"string.hexdigits``." +"Checks for an ASCII hexadecimal digit. This is equivalent to ``c in string." +"hexdigits``." msgstr "" #: ../../library/curses.ascii.rst:172 @@ -414,9 +415,9 @@ msgstr "" #: ../../library/curses.ascii.rst:179 msgid "" -"These functions accept either integers or single-character strings; when the" -" argument is a string, it is first converted using the built-in function " -":func:`ord`." +"These functions accept either integers or single-character strings; when the " +"argument is a string, it is first converted using the built-in function :" +"func:`ord`." msgstr "" #: ../../library/curses.ascii.rst:182 @@ -428,8 +429,8 @@ msgstr "" #: ../../library/curses.ascii.rst:186 msgid "" -"The following two functions take either a single-character string or integer" -" byte value; they return a value of the same type." +"The following two functions take either a single-character string or integer " +"byte value; they return a value of the same type." msgstr "" #: ../../library/curses.ascii.rst:192 @@ -459,8 +460,8 @@ msgid "" "Return a string representation of the ASCII character *c*. If *c* is " "printable, this string is the character itself. If the character is a " "control character (0x00--0x1f) the string consists of a caret (``'^'``) " -"followed by the corresponding uppercase letter. If the character is an ASCII" -" delete (0x7f) the string is ``'^?'``. If the character has its meta bit " +"followed by the corresponding uppercase letter. If the character is an ASCII " +"delete (0x7f) the string is ``'^?'``. If the character has its meta bit " "(0x80) set, the meta bit is stripped, the preceding rules applied, and " "``'!'`` prepended to the result." msgstr "" diff --git a/library/curses.panel.po b/library/curses.panel.po index 05be3c349..debbfd36a 100644 --- a/library/curses.panel.po +++ b/library/curses.panel.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,8 +48,8 @@ msgstr "" #: ../../library/curses.panel.rst:31 msgid "" -"Returns a panel object, associating it with the given window *win*. Be aware" -" that you need to keep the returned panel object referenced explicitly. If " +"Returns a panel object, associating it with the given window *win*. Be aware " +"that you need to keep the returned panel object referenced explicitly. If " "you don't, the panel object is garbage collected and removed from the panel " "stack." msgstr "" @@ -97,8 +99,8 @@ msgstr "" #: ../../library/curses.panel.rst:82 msgid "" -"Hide the panel. This does not delete the object, it just makes the window on" -" screen invisible." +"Hide the panel. This does not delete the object, it just makes the window on " +"screen invisible." msgstr "" #: ../../library/curses.panel.rst:88 @@ -127,6 +129,7 @@ msgstr "" msgid "" "Returns the user pointer for the panel. This might be any Python object." msgstr "" +"Retorna o ponteiro do usuário para o painel. Pode ser qualquer objeto Python." #: ../../library/curses.panel.rst:119 msgid "Returns the window object associated with the panel." diff --git a/library/curses.po b/library/curses.po index b246797bc..f2ad32047 100644 --- a/library/curses.po +++ b/library/curses.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Risaffi , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-15 03:29+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: (Douglas da Silva) , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +34,8 @@ msgstr "" #: ../../library/curses.rst:14 msgid "" -"The :mod:`curses` module provides an interface to the curses library, the " -"de-facto standard for portable advanced terminal handling." +"The :mod:`curses` module provides an interface to the curses library, the de-" +"facto standard for portable advanced terminal handling." msgstr "" "O módulo :mod:`curses` provê uma interface para a livraria curses, o padrão " "de-facto para manuseio avançado de terminal portável." @@ -55,16 +56,16 @@ msgstr "" #: ../../library/curses.rst:27 msgid "" -"Whenever the documentation mentions a *character string* it can be specified" -" as a Unicode string or a byte string." +"Whenever the documentation mentions a *character string* it can be specified " +"as a Unicode string or a byte string." msgstr "" #: ../../library/curses.rst:32 msgid "" "Since version 5.4, the ncurses library decides how to interpret non-ASCII " -"data using the ``nl_langinfo`` function. That means that you have to call " -":func:`locale.setlocale` in the application and encode Unicode strings using" -" one of the system's available encodings. This example uses the system's " +"data using the ``nl_langinfo`` function. That means that you have to call :" +"func:`locale.setlocale` in the application and encode Unicode strings using " +"one of the system's available encodings. This example uses the system's " "default encoding::" msgstr "" "Desde a versão 5.4, a livraria ncurses decidiu como interpretar dados não-" @@ -76,8 +77,8 @@ msgstr "" #: ../../library/curses.rst:42 msgid "Then use *code* as the encoding for :meth:`str.encode` calls." msgstr "" -"Então faça uso de *code* como codificador para as chamadas " -":meth:`str.encode`." +"Então faça uso de *code* como codificador para as chamadas :meth:`str." +"encode`." #: ../../library/curses.rst:47 msgid "Module :mod:`curses.ascii`" @@ -115,7 +116,7 @@ msgstr "" #: ../../library/curses.rst:57 msgid ":ref:`curses-howto`" -msgstr "" +msgstr ":ref:`curses-howto`" #: ../../library/curses.rst:56 msgid "" @@ -157,8 +158,8 @@ msgstr "" msgid "" "Return the output speed of the terminal in bits per second. On software " "terminal emulators it will have a fixed high value. Included for historical " -"reasons; in former times, it was used to write output loops for time delays" -" and occasionally to change interfaces depending on the line speed." +"reasons; in former times, it was used to write output loops for time delays " +"and occasionally to change interfaces depending on the line speed." msgstr "" #: ../../library/curses.rst:94 @@ -167,15 +168,15 @@ msgstr "" #: ../../library/curses.rst:99 msgid "" -"Return ``True`` or ``False``, depending on whether the programmer can change" -" the colors displayed by the terminal." +"Return ``True`` or ``False``, depending on whether the programmer can change " +"the colors displayed by the terminal." msgstr "" #: ../../library/curses.rst:105 msgid "" "Enter cbreak mode. In cbreak mode (sometimes called \"rare\" mode) normal " -"tty line buffering is turned off and characters are available to be read one" -" by one. However, unlike raw mode, special characters (interrupt, quit, " +"tty line buffering is turned off and characters are available to be read one " +"by one. However, unlike raw mode, special characters (interrupt, quit, " "suspend, and flow control) retain their effects on the tty driver and " "calling program. Calling first :func:`raw` then :func:`cbreak` leaves the " "terminal in cbreak mode." @@ -192,10 +193,10 @@ msgstr "" #: ../../library/curses.rst:122 msgid "" -"Return the attribute value for displaying text in the specified color. This" -" attribute value can be combined with :const:`A_STANDOUT`, " -":const:`A_REVERSE`, and the other :const:`A_\\*` attributes. " -":func:`pair_number` is the counterpart to this function." +"Return the attribute value for displaying text in the specified color. This " +"attribute value can be combined with :const:`A_STANDOUT`, :const:" +"`A_REVERSE`, and the other :const:`A_\\*` attributes. :func:`pair_number` " +"is the counterpart to this function." msgstr "" #: ../../library/curses.rst:130 @@ -211,16 +212,16 @@ msgstr "" msgid "" "Save the current terminal mode as the \"program\" mode, the mode when the " "running program is using curses. (Its counterpart is the \"shell\" mode, " -"for when the program is not in curses.) Subsequent calls to " -":func:`reset_prog_mode` will restore this mode." +"for when the program is not in curses.) Subsequent calls to :func:" +"`reset_prog_mode` will restore this mode." msgstr "" #: ../../library/curses.rst:147 msgid "" "Save the current terminal mode as the \"shell\" mode, the mode when the " "running program is not using curses. (Its counterpart is the \"program\" " -"mode, when the program is using curses capabilities.) Subsequent calls to " -":func:`reset_shell_mode` will restore this mode." +"mode, when the program is using curses capabilities.) Subsequent calls to :" +"func:`reset_shell_mode` will restore this mode." msgstr "" #: ../../library/curses.rst:155 @@ -238,18 +239,18 @@ msgstr "" #: ../../library/curses.rst:165 msgid "" "The virtual screen may be updated by a :meth:`~window.noutrefresh` call " -"after write operations such as :meth:`~window.addstr` have been performed on" -" a window. The normal :meth:`~window.refresh` call is simply " -":meth:`!noutrefresh` followed by :func:`!doupdate`; if you have to update " -"multiple windows, you can speed performance and perhaps reduce screen " -"flicker by issuing :meth:`!noutrefresh` calls on all windows, followed by a " -"single :func:`!doupdate`." +"after write operations such as :meth:`~window.addstr` have been performed on " +"a window. The normal :meth:`~window.refresh` call is simply :meth:`!" +"noutrefresh` followed by :func:`!doupdate`; if you have to update multiple " +"windows, you can speed performance and perhaps reduce screen flicker by " +"issuing :meth:`!noutrefresh` calls on all windows, followed by a single :" +"func:`!doupdate`." msgstr "" #: ../../library/curses.rst:175 msgid "" -"Enter echo mode. In echo mode, each character input is echoed to the screen" -" as it is entered." +"Enter echo mode. In echo mode, each character input is echoed to the screen " +"as it is entered." msgstr "" #: ../../library/curses.rst:181 @@ -258,8 +259,8 @@ msgstr "" #: ../../library/curses.rst:186 msgid "" -"Return the user's current erase character as a one-byte bytes object. Under" -" Unix operating systems this is a property of the controlling tty of the " +"Return the user's current erase character as a one-byte bytes object. Under " +"Unix operating systems this is a property of the controlling tty of the " "curses program, and is not set by the curses library itself." msgstr "" @@ -270,8 +271,8 @@ msgid "" "to ``1``; the capabilities ``clear``, ``cup``, ``cud``, ``cud1``, ``cuu1``, " "``cuu``, ``vpa`` are disabled; and the ``home`` string is set to the value " "of ``cr``. The effect is that the cursor is confined to the current line, " -"and so are screen updates. This may be used for enabling character-" -"at-a-time line editing without touching the rest of the screen." +"and so are screen updates. This may be used for enabling character-at-a-" +"time line editing without touching the rest of the screen." msgstr "" #: ../../library/curses.rst:203 @@ -291,29 +292,29 @@ msgstr "" msgid "" "After :meth:`~window.getch` returns :const:`KEY_MOUSE` to signal a mouse " "event, this method should be call to retrieve the queued mouse event, " -"represented as a 5-tuple ``(id, x, y, z, bstate)``. *id* is an ID value used" -" to distinguish multiple devices, and *x*, *y*, *z* are the event's " -"coordinates. (*z* is currently unused.) *bstate* is an integer value whose" -" bits will be set to indicate the type of event, and will be the bitwise OR " +"represented as a 5-tuple ``(id, x, y, z, bstate)``. *id* is an ID value used " +"to distinguish multiple devices, and *x*, *y*, *z* are the event's " +"coordinates. (*z* is currently unused.) *bstate* is an integer value whose " +"bits will be set to indicate the type of event, and will be the bitwise OR " "of one or more of the following constants, where *n* is the button number " -"from 1 to 4: :const:`BUTTONn_PRESSED`, :const:`BUTTONn_RELEASED`, " -":const:`BUTTONn_CLICKED`, :const:`BUTTONn_DOUBLE_CLICKED`, " -":const:`BUTTONn_TRIPLE_CLICKED`, :const:`BUTTON_SHIFT`, " -":const:`BUTTON_CTRL`, :const:`BUTTON_ALT`." +"from 1 to 4: :const:`BUTTONn_PRESSED`, :const:`BUTTONn_RELEASED`, :const:" +"`BUTTONn_CLICKED`, :const:`BUTTONn_DOUBLE_CLICKED`, :const:" +"`BUTTONn_TRIPLE_CLICKED`, :const:`BUTTON_SHIFT`, :const:`BUTTON_CTRL`, :" +"const:`BUTTON_ALT`." msgstr "" #: ../../library/curses.rst:230 msgid "" -"Return the current coordinates of the virtual screen cursor as a tuple ``(y," -" x)``. If :meth:`leaveok ` is currently ``True``, then " +"Return the current coordinates of the virtual screen cursor as a tuple ``(y, " +"x)``. If :meth:`leaveok ` is currently ``True``, then " "return ``(-1, -1)``." msgstr "" #: ../../library/curses.rst:236 msgid "" "Read window related data stored in the file by an earlier :func:`putwin` " -"call. The routine then creates and initializes a new window using that data," -" returning the new window object." +"call. The routine then creates and initializes a new window using that data, " +"returning the new window object." msgstr "" #: ../../library/curses.rst:243 @@ -331,10 +332,10 @@ msgstr "" #: ../../library/curses.rst:255 msgid "" -"Return ``True`` if the terminal has insert- and delete-line capabilities, or" -" can simulate them using scrolling regions. This function is included for " -"historical reasons only, as all modern software terminal emulators have such" -" capabilities." +"Return ``True`` if the terminal has insert- and delete-line capabilities, or " +"can simulate them using scrolling regions. This function is included for " +"historical reasons only, as all modern software terminal emulators have such " +"capabilities." msgstr "" #: ../../library/curses.rst:263 @@ -345,8 +346,8 @@ msgstr "" #: ../../library/curses.rst:269 msgid "" -"Used for half-delay mode, which is similar to cbreak mode in that characters" -" typed by the user are immediately available to the program. However, after " +"Used for half-delay mode, which is similar to cbreak mode in that characters " +"typed by the user are immediately available to the program. However, after " "blocking for *tenths* tenths of seconds, raise an exception if nothing has " "been typed. The value of *tenths* must be a number between ``1`` and " "``255``. Use :func:`nocbreak` to leave half-delay mode." @@ -356,21 +357,21 @@ msgstr "" msgid "" "Change the definition of a color, taking the number of the color to be " "changed followed by three RGB values (for the amounts of red, green, and " -"blue components). The value of *color_number* must be between ``0`` and " -":const:`COLORS`. Each of *r*, *g*, *b*, must be a value between ``0`` and " -"``1000``. When :func:`init_color` is used, all occurrences of that color on" -" the screen immediately change to the new definition. This function is a " -"no-op on most terminals; it is active only if :func:`can_change_color` " -"returns ``True``." +"blue components). The value of *color_number* must be between ``0`` and :" +"const:`COLORS`. Each of *r*, *g*, *b*, must be a value between ``0`` and " +"``1000``. When :func:`init_color` is used, all occurrences of that color on " +"the screen immediately change to the new definition. This function is a no-" +"op on most terminals; it is active only if :func:`can_change_color` returns " +"``True``." msgstr "" #: ../../library/curses.rst:289 msgid "" -"Change the definition of a color-pair. It takes three arguments: the number" -" of the color-pair to be changed, the foreground color number, and the " +"Change the definition of a color-pair. It takes three arguments: the number " +"of the color-pair to be changed, the foreground color number, and the " "background color number. The value of *pair_number* must be between ``1`` " -"and ``COLOR_PAIRS - 1`` (the ``0`` color pair is wired to white on black and" -" cannot be changed). The value of *fg* and *bg* arguments must be between " +"and ``COLOR_PAIRS - 1`` (the ``0`` color pair is wired to white on black and " +"cannot be changed). The value of *fg* and *bg* arguments must be between " "``0`` and :const:`COLORS`. If the color-pair was previously initialized, " "the screen is refreshed and all occurrences of that color-pair are changed " "to the new definition." @@ -384,8 +385,8 @@ msgstr "" #: ../../library/curses.rst:306 msgid "" -"If there is an error opening the terminal, the underlying curses library may" -" cause the interpreter to exit." +"If there is an error opening the terminal, the underlying curses library may " +"cause the interpreter to exit." msgstr "" #: ../../library/curses.rst:312 @@ -420,8 +421,8 @@ msgstr "" #: ../../library/curses.rst:341 msgid "" -"Return a bytes object containing the terminfo long name field describing the" -" current terminal. The maximum length of a verbose description is 128 " +"Return a bytes object containing the terminfo long name field describing the " +"current terminal. The maximum length of a verbose description is 128 " "characters. It is defined only after the call to :func:`initscr`." msgstr "" @@ -434,8 +435,8 @@ msgstr "" #: ../../library/curses.rst:354 msgid "" "Set the maximum time in milliseconds that can elapse between press and " -"release events in order for them to be recognized as a click, and return the" -" previous interval value. The default value is 200 msec, or one fifth of a " +"release events in order for them to be recognized as a click, and return the " +"previous interval value. The default value is 200 msec, or one fifth of a " "second." msgstr "" @@ -460,18 +461,18 @@ msgstr "" #: ../../library/curses.rst:378 msgid "" -"A pad is like a window, except that it is not restricted by the screen size," -" and is not necessarily associated with a particular part of the screen. " +"A pad is like a window, except that it is not restricted by the screen size, " +"and is not necessarily associated with a particular part of the screen. " "Pads can be used when a large window is needed, and only a part of the " -"window will be on the screen at one time. Automatic refreshes of pads (such" -" as from scrolling or echoing of input) do not occur. The " -":meth:`~window.refresh` and :meth:`~window.noutrefresh` methods of a pad " -"require 6 arguments to specify the part of the pad to be displayed and the " -"location on the screen to be used for the display. The arguments are " -"*pminrow*, *pmincol*, *sminrow*, *smincol*, *smaxrow*, *smaxcol*; the *p* " -"arguments refer to the upper left corner of the pad region to be displayed " -"and the *s* arguments define a clipping box on the screen within which the " -"pad region is to be displayed." +"window will be on the screen at one time. Automatic refreshes of pads (such " +"as from scrolling or echoing of input) do not occur. The :meth:`~window." +"refresh` and :meth:`~window.noutrefresh` methods of a pad require 6 " +"arguments to specify the part of the pad to be displayed and the location on " +"the screen to be used for the display. The arguments are *pminrow*, " +"*pmincol*, *sminrow*, *smincol*, *smaxrow*, *smaxcol*; the *p* arguments " +"refer to the upper left corner of the pad region to be displayed and the *s* " +"arguments define a clipping box on the screen within which the pad region is " +"to be displayed." msgstr "" #: ../../library/curses.rst:394 @@ -482,8 +483,8 @@ msgstr "" #: ../../library/curses.rst:397 msgid "" -"By default, the window will extend from the specified position to the lower" -" right corner of the screen." +"By default, the window will extend from the specified position to the lower " +"right corner of the screen." msgstr "" #: ../../library/curses.rst:403 @@ -494,7 +495,8 @@ msgid "" msgstr "" #: ../../library/curses.rst:410 -msgid "Leave cbreak mode. Return to normal \"cooked\" mode with line buffering." +msgid "" +"Leave cbreak mode. Return to normal \"cooked\" mode with line buffering." msgstr "" #: ../../library/curses.rst:415 @@ -514,8 +516,8 @@ msgstr "" #: ../../library/curses.rst:430 msgid "" "When the :func:`!noqiflush` routine is used, normal flush of input and " -"output queues associated with the ``INTR``, ``QUIT`` and ``SUSP`` characters" -" will not be done. You may want to call :func:`!noqiflush` in a signal " +"output queues associated with the ``INTR``, ``QUIT`` and ``SUSP`` characters " +"will not be done. You may want to call :func:`!noqiflush` in a signal " "handler if you want output to continue as though the interrupt had not " "occurred, after the handler exits." msgstr "" @@ -533,21 +535,21 @@ msgstr "" #: ../../library/curses.rst:449 msgid "" -"Return the number of the color-pair set by the attribute value *attr*. " -":func:`color_pair` is the counterpart to this function." +"Return the number of the color-pair set by the attribute value *attr*. :func:" +"`color_pair` is the counterpart to this function." msgstr "" #: ../../library/curses.rst:455 msgid "" "Equivalent to ``tputs(str, 1, putchar)``; emit the value of a specified " -"terminfo capability for the current terminal. Note that the output of " -":func:`putp` always goes to standard output." +"terminfo capability for the current terminal. Note that the output of :func:" +"`putp` always goes to standard output." msgstr "" #: ../../library/curses.rst:462 msgid "" -"If *flag* is ``False``, the effect is the same as calling :func:`noqiflush`." -" If *flag* is ``True``, or no argument is provided, the queues will be " +"If *flag* is ``False``, the effect is the same as calling :func:`noqiflush`. " +"If *flag* is ``True``, or no argument is provided, the queues will be " "flushed when these control characters are read." msgstr "" @@ -560,20 +562,20 @@ msgstr "" #: ../../library/curses.rst:476 msgid "" -"Restore the terminal to \"program\" mode, as previously saved by " -":func:`def_prog_mode`." +"Restore the terminal to \"program\" mode, as previously saved by :func:" +"`def_prog_mode`." msgstr "" #: ../../library/curses.rst:482 msgid "" -"Restore the terminal to \"shell\" mode, as previously saved by " -":func:`def_shell_mode`." +"Restore the terminal to \"shell\" mode, as previously saved by :func:" +"`def_shell_mode`." msgstr "" #: ../../library/curses.rst:488 msgid "" -"Restore the state of the terminal modes to what it was at the last call to " -":func:`savetty`." +"Restore the state of the terminal modes to what it was at the last call to :" +"func:`savetty`." msgstr "" #: ../../library/curses.rst:494 @@ -582,8 +584,8 @@ msgid "" "when resizing the windows, :func:`resize_term` blank-fills the areas that " "are extended. The calling application should fill in these areas with " "appropriate data. The :func:`!resize_term` function attempts to resize all " -"windows. However, due to the calling convention of pads, it is not possible" -" to resize these without additional interaction with the application." +"windows. However, due to the calling convention of pads, it is not possible " +"to resize these without additional interaction with the application." msgstr "" #: ../../library/curses.rst:504 @@ -595,8 +597,8 @@ msgstr "" #: ../../library/curses.rst:511 msgid "" -"Save the current state of the terminal modes in a buffer, usable by " -":func:`resetty`." +"Save the current state of the terminal modes in a buffer, usable by :func:" +"`resetty`." msgstr "" #: ../../library/curses.rst:517 @@ -609,8 +611,8 @@ msgstr "" msgid "" "Initialize the terminal. *term* is a string giving the terminal name, or " "``None``; if omitted or ``None``, the value of the :envvar:`TERM` " -"environment variable will be used. *fd* is the file descriptor to which any" -" initialization sequences will be sent; if not supplied or ``-1``, the file " +"environment variable will be used. *fd* is the file descriptor to which any " +"initialization sequences will be sent; if not supplied or ``-1``, the file " "descriptor for ``sys.stdout`` will be used." msgstr "" @@ -624,8 +626,8 @@ msgstr "" #: ../../library/curses.rst:536 msgid "" ":func:`start_color` initializes eight basic colors (black, red, green, " -"yellow, blue, magenta, cyan, and white), and two global variables in the " -":mod:`curses` module, :const:`COLORS` and :const:`COLOR_PAIRS`, containing " +"yellow, blue, magenta, cyan, and white), and two global variables in the :" +"mod:`curses` module, :const:`COLORS` and :const:`COLOR_PAIRS`, containing " "the maximum number of colors and color-pairs the terminal can support. It " "also restores the colors on the terminal to the values they had when the " "terminal was just turned on." @@ -633,9 +635,9 @@ msgstr "" #: ../../library/curses.rst:545 msgid "" -"Return a logical OR of all video attributes supported by the terminal. This" -" information is useful when a curses program needs complete control over the" -" appearance of the screen." +"Return a logical OR of all video attributes supported by the terminal. This " +"information is useful when a curses program needs complete control over the " +"appearance of the screen." msgstr "" #: ../../library/curses.rst:552 @@ -656,8 +658,8 @@ msgstr "" msgid "" "Return the value of the numeric capability corresponding to the terminfo " "capability name *capname* as an integer. Return the value ``-2`` if " -"*capname* is not a numeric capability, or ``-1`` if it is canceled or absent" -" from the terminal description." +"*capname* is not a numeric capability, or ``-1`` if it is canceled or absent " +"from the terminal description." msgstr "" #: ../../library/curses.rst:574 @@ -670,9 +672,9 @@ msgstr "" #: ../../library/curses.rst:582 msgid "" -"Instantiate the bytes object *str* with the supplied parameters, where *str*" -" should be a parameterized string obtained from the terminfo database. E.g." -" ``tparm(tigetstr(\"cup\"), 5, 3)`` could result in ``b'\\033[6;4H'``, the " +"Instantiate the bytes object *str* with the supplied parameters, where *str* " +"should be a parameterized string obtained from the terminfo database. E.g. " +"``tparm(tigetstr(\"cup\"), 5, 3)`` could result in ``b'\\033[6;4H'``, the " "exact result depending on terminal type." msgstr "" @@ -685,8 +687,8 @@ msgstr "" #: ../../library/curses.rst:593 msgid "" "The curses library does \"line-breakout optimization\" by looking for " -"typeahead periodically while updating the screen. If input is found, and it" -" is coming from a tty, the current update is postponed until refresh or " +"typeahead periodically while updating the screen. If input is found, and it " +"is coming from a tty, the current update is postponed until refresh or " "doupdate is called again, allowing faster response to commands typed in " "advance. This function allows specifying a different file descriptor for " "typeahead checking." @@ -734,32 +736,31 @@ msgid "" "are called. When *flag* is ``False``, the values of lines and columns " "specified in the terminfo database will be used, even if environment " "variables :envvar:`LINES` and :envvar:`COLUMNS` (used by default) are set, " -"or if curses is running in a window (in which case default behavior would be" -" to use the window size if :envvar:`LINES` and :envvar:`COLUMNS` are not " -"set)." +"or if curses is running in a window (in which case default behavior would be " +"to use the window size if :envvar:`LINES` and :envvar:`COLUMNS` are not set)." msgstr "" #: ../../library/curses.rst:652 msgid "" -"Allow use of default values for colors on terminals supporting this feature." -" Use this to support transparency in your application. The default color is" -" assigned to the color number ``-1``. After calling this function, " -"``init_pair(x, curses.COLOR_RED, -1)`` initializes, for instance, color pair" -" *x* to a red foreground color on the default background." +"Allow use of default values for colors on terminals supporting this feature. " +"Use this to support transparency in your application. The default color is " +"assigned to the color number ``-1``. After calling this function, " +"``init_pair(x, curses.COLOR_RED, -1)`` initializes, for instance, color pair " +"*x* to a red foreground color on the default background." msgstr "" #: ../../library/curses.rst:661 msgid "" "Initialize curses and call another callable object, *func*, which should be " "the rest of your curses-using application. If the application raises an " -"exception, this function will restore the terminal to a sane state before " -"re-raising the exception and generating a traceback. The callable object " +"exception, this function will restore the terminal to a sane state before re-" +"raising the exception and generating a traceback. The callable object " "*func* is then passed the main window 'stdscr' as its first argument, " "followed by any other arguments passed to :func:`!wrapper`. Before calling " "*func*, :func:`!wrapper` turns on cbreak mode, turns off echo, enables the " "terminal keypad, and initializes colors if the terminal has color support. " -"On exit (whether normally or by exception) it restores cooked mode, turns on" -" echo, and disables the terminal keypad." +"On exit (whether normally or by exception) it restores cooked mode, turns on " +"echo, and disables the terminal keypad." msgstr "" #: ../../library/curses.rst:675 @@ -782,8 +783,8 @@ msgstr "" #: ../../library/curses.rst:690 msgid "" "Writing outside the window, subwindow, or pad raises a :exc:`curses.error`. " -"Attempting to write to the lower right corner of a window, subwindow, or pad" -" will cause an exception to be raised after the character is printed." +"Attempting to write to the lower right corner of a window, subwindow, or pad " +"will cause an exception to be raised after the character is printed." msgstr "" #: ../../library/curses.rst:698 @@ -801,14 +802,14 @@ msgstr "" #: ../../library/curses.rst:711 msgid "" "Writing outside the window, subwindow, or pad raises :exc:`curses.error`. " -"Attempting to write to the lower right corner of a window, subwindow, or pad" -" will cause an exception to be raised after the string is printed." +"Attempting to write to the lower right corner of a window, subwindow, or pad " +"will cause an exception to be raised after the string is printed." msgstr "" #: ../../library/curses.rst:718 msgid "" -"Remove attribute *attr* from the \"background\" set applied to all writes to" -" the current window." +"Remove attribute *attr* from the \"background\" set applied to all writes to " +"the current window." msgstr "" #: ../../library/curses.rst:724 @@ -838,8 +839,8 @@ msgstr "" #: ../../library/curses.rst:743 msgid "" -"Wherever the former background character appears, it is changed to the new" -" background character." +"Wherever the former background character appears, it is changed to the new " +"background character." msgstr "" #: ../../library/curses.rst:749 @@ -849,8 +850,8 @@ msgid "" "combined (OR'ed) with all non-blank characters that are written into the " "window. Both the character and attribute parts of the background are " "combined with the blank characters. The background becomes a property of " -"the character and moves with the character through any scrolling and " -"insert/delete line/character operations." +"the character and moves with the character through any scrolling and insert/" +"delete line/character operations." msgstr "" #: ../../library/curses.rst:759 @@ -863,8 +864,8 @@ msgstr "" #: ../../library/curses.rst:765 msgid "" "A ``0`` value for any parameter will cause the default character to be used " -"for that parameter. Keyword parameters can *not* be used. The defaults are" -" listed in this table:" +"for that parameter. Keyword parameters can *not* be used. The defaults are " +"listed in this table:" msgstr "" #: ../../library/curses.rst:770 @@ -889,7 +890,7 @@ msgstr "" #: ../../library/curses.rst:772 ../../library/curses.rst:774 msgid ":const:`ACS_VLINE`" -msgstr "" +msgstr ":const:`ACS_VLINE`" #: ../../library/curses.rst:774 msgid "*rs*" @@ -909,7 +910,7 @@ msgstr "" #: ../../library/curses.rst:776 ../../library/curses.rst:778 msgid ":const:`ACS_HLINE`" -msgstr "" +msgstr ":const:`ACS_HLINE`" #: ../../library/curses.rst:778 msgid "*bs*" @@ -929,7 +930,7 @@ msgstr "" #: ../../library/curses.rst:780 msgid ":const:`ACS_ULCORNER`" -msgstr "" +msgstr ":const:`ACS_ULCORNER`" #: ../../library/curses.rst:782 msgid "*tr*" @@ -941,7 +942,7 @@ msgstr "" #: ../../library/curses.rst:782 msgid ":const:`ACS_URCORNER`" -msgstr "" +msgstr ":const:`ACS_URCORNER`" #: ../../library/curses.rst:784 msgid "*bl*" @@ -953,7 +954,7 @@ msgstr "" #: ../../library/curses.rst:784 msgid ":const:`ACS_LLCORNER`" -msgstr "" +msgstr ":const:`ACS_LLCORNER`" #: ../../library/curses.rst:786 msgid "*br*" @@ -965,23 +966,23 @@ msgstr "" #: ../../library/curses.rst:786 msgid ":const:`ACS_LRCORNER`" -msgstr "" +msgstr ":const:`ACS_LRCORNER`" #: ../../library/curses.rst:792 msgid "" -"Similar to :meth:`border`, but both *ls* and *rs* are *vertch* and both *ts*" -" and *bs* are *horch*. The default corner characters are always used by " -"this function." +"Similar to :meth:`border`, but both *ls* and *rs* are *vertch* and both *ts* " +"and *bs* are *horch*. The default corner characters are always used by this " +"function." msgstr "" #: ../../library/curses.rst:801 msgid "" -"Set the attributes of *num* characters at the current cursor position, or at" -" position ``(y, x)`` if supplied. If *num* is not given or is ``-1``, the " +"Set the attributes of *num* characters at the current cursor position, or at " +"position ``(y, x)`` if supplied. If *num* is not given or is ``-1``, the " "attribute will be set on all the characters to the end of the line. This " "function moves cursor to position ``(y, x)`` if supplied. The changed line " -"will be touched using the :meth:`touchline` method so that the contents will" -" be redisplayed by the next window refresh." +"will be touched using the :meth:`touchline` method so that the contents will " +"be redisplayed by the next window refresh." msgstr "" #: ../../library/curses.rst:811 @@ -1024,16 +1025,16 @@ msgstr "" #: ../../library/curses.rst:851 msgid "" -"An abbreviation for \"derive window\", :meth:`derwin` is the same as calling" -" :meth:`subwin`, except that *begin_y* and *begin_x* are relative to the " -"origin of the window, rather than relative to the entire screen. Return a " -"window object for the derived window." +"An abbreviation for \"derive window\", :meth:`derwin` is the same as " +"calling :meth:`subwin`, except that *begin_y* and *begin_x* are relative to " +"the origin of the window, rather than relative to the entire screen. Return " +"a window object for the derived window." msgstr "" #: ../../library/curses.rst:859 msgid "" -"Add character *ch* with attribute *attr*, and immediately call " -":meth:`refresh` on the window." +"Add character *ch* with attribute *attr*, and immediately call :meth:" +"`refresh` on the window." msgstr "" #: ../../library/curses.rst:865 @@ -1067,8 +1068,8 @@ msgstr "" #: ../../library/curses.rst:898 msgid "" "Get a character. Note that the integer returned does *not* have to be in " -"ASCII range: function keys, keypad keys and so on are represented by numbers" -" higher than 255. In no-delay mode, return ``-1`` if there is no input, " +"ASCII range: function keys, keypad keys and so on are represented by numbers " +"higher than 255. In no-delay mode, return ``-1`` if there is no input, " "otherwise wait until a key is pressed." msgstr "" @@ -1117,9 +1118,9 @@ msgstr "" #: ../../library/curses.rst:956 msgid "" -"If *flag* is ``False``, curses no longer considers using the hardware " -"insert/delete character feature of the terminal; if *flag* is ``True``, use " -"of character insertion and deletion is enabled. When curses is first " +"If *flag* is ``False``, curses no longer considers using the hardware insert/" +"delete character feature of the terminal; if *flag* is ``True``, use of " +"character insertion and deletion is enabled. When curses is first " "initialized, use of character insert/delete is enabled by default." msgstr "" @@ -1151,8 +1152,8 @@ msgstr "" #: ../../library/curses.rst:991 msgid "" -"Insert *nlines* lines into the specified window above the current line. The" -" *nlines* bottom lines are lost. For negative *nlines*, delete *nlines* " +"Insert *nlines* lines into the specified window above the current line. The " +"*nlines* bottom lines are lost. For negative *nlines*, delete *nlines* " "lines starting with the one under the cursor, and move the remaining lines " "up. The bottom *nlines* lines are cleared. The current cursor position " "remains the same." @@ -1168,8 +1169,8 @@ msgstr "" msgid "" "Insert a character string (as many characters as will fit on the line) " "before the character under the cursor, up to *n* characters. If *n* is " -"zero or negative, the entire string is inserted. All characters to the right" -" of the cursor are shifted right, with the rightmost characters on the line " +"zero or negative, the entire string is inserted. All characters to the right " +"of the cursor are shifted right, with the rightmost characters on the line " "being lost. The cursor position does not change (after moving to *y*, *x*, " "if specified)." msgstr "" @@ -1193,22 +1194,22 @@ msgstr "" #: ../../library/curses.rst:1034 msgid "" -"Return ``True`` if the specified line was modified since the last call to " -":meth:`refresh`; otherwise return ``False``. Raise a :exc:`curses.error` " +"Return ``True`` if the specified line was modified since the last call to :" +"meth:`refresh`; otherwise return ``False``. Raise a :exc:`curses.error` " "exception if *line* is not valid for the given window." msgstr "" #: ../../library/curses.rst:1041 msgid "" -"Return ``True`` if the specified window was modified since the last call to " -":meth:`refresh`; otherwise return ``False``." +"Return ``True`` if the specified window was modified since the last call to :" +"meth:`refresh`; otherwise return ``False``." msgstr "" #: ../../library/curses.rst:1047 msgid "" "If *flag* is ``True``, escape sequences generated by some keys (keypad, " -"function keys) will be interpreted by :mod:`curses`. If *flag* is ``False``," -" escape sequences will be left as is in the input stream." +"function keys) will be interpreted by :mod:`curses`. If *flag* is ``False``, " +"escape sequences will be left as is in the input stream." msgstr "" #: ../../library/curses.rst:1054 @@ -1230,9 +1231,9 @@ msgstr "" #: ../../library/curses.rst:1068 msgid "" -"Move the window inside its parent window. The screen-relative parameters of" -" the window are not changed. This routine is used to display different " -"parts of the parent window at the same physical position on the screen." +"Move the window inside its parent window. The screen-relative parameters of " +"the window are not changed. This routine is used to display different parts " +"of the parent window at the same physical position on the screen." msgstr "" #: ../../library/curses.rst:1075 @@ -1264,14 +1265,14 @@ msgstr "" msgid "" "Overlay the window on top of *destwin*. The windows need not be the same " "size, only the overlapping region is copied. This copy is non-destructive, " -"which means that the current background character does not overwrite the old" -" contents of *destwin*." +"which means that the current background character does not overwrite the old " +"contents of *destwin*." msgstr "" #: ../../library/curses.rst:1105 msgid "" -"To get fine-grained control over the copied region, the second form of " -":meth:`overlay` can be used. *sminrow* and *smincol* are the upper-left " +"To get fine-grained control over the copied region, the second form of :meth:" +"`overlay` can be used. *sminrow* and *smincol* are the upper-left " "coordinates of the source window, and the other variables mark a rectangle " "in the destination window." msgstr "" @@ -1286,8 +1287,8 @@ msgstr "" #: ../../library/curses.rst:1118 msgid "" -"To get fine-grained control over the copied region, the second form of " -":meth:`overwrite` can be used. *sminrow* and *smincol* are the upper-left " +"To get fine-grained control over the copied region, the second form of :meth:" +"`overwrite` can be used. *sminrow* and *smincol* are the upper-left " "coordinates of the source window, the other variables mark a rectangle in " "the destination window." msgstr "" @@ -1306,14 +1307,14 @@ msgstr "" #: ../../library/curses.rst:1138 msgid "" -"Touch the entire window, causing it to be completely redrawn on the next " -":meth:`refresh` call." +"Touch the entire window, causing it to be completely redrawn on the next :" +"meth:`refresh` call." msgstr "" #: ../../library/curses.rst:1144 msgid "" -"Update the display immediately (sync actual screen with previous " -"drawing/deleting methods)." +"Update the display immediately (sync actual screen with previous drawing/" +"deleting methods)." msgstr "" #: ../../library/curses.rst:1147 @@ -1323,9 +1324,9 @@ msgid "" "indicate what part of the pad and screen are involved. *pminrow* and " "*pmincol* specify the upper left-hand corner of the rectangle to be " "displayed in the pad. *sminrow*, *smincol*, *smaxrow*, and *smaxcol* " -"specify the edges of the rectangle to be displayed on the screen. The lower" -" right-hand corner of the rectangle to be displayed in the pad is calculated" -" from the screen coordinates, since the rectangles must be the same size. " +"specify the edges of the rectangle to be displayed on the screen. The lower " +"right-hand corner of the rectangle to be displayed in the pad is calculated " +"from the screen coordinates, since the rectangles must be the same size. " "Both rectangles must be entirely contained within their respective " "structures. Negative values of *pminrow*, *pmincol*, *sminrow*, or " "*smincol* are treated as if they were zero." @@ -1348,10 +1349,9 @@ msgid "" "Control what happens when the cursor of a window is moved off the edge of " "the window or scrolling region, either as a result of a newline action on " "the bottom line, or typing the last character of the last line. If *flag* " -"is ``False``, the cursor is left on the bottom line. If *flag* is ``True``," -" the window is scrolled up one line. Note that in order to get the physical" -" scrolling effect on the terminal, it is also necessary to call " -":meth:`idlok`." +"is ``False``, the cursor is left on the bottom line. If *flag* is ``True``, " +"the window is scrolled up one line. Note that in order to get the physical " +"scrolling effect on the terminal, it is also necessary to call :meth:`idlok`." msgstr "" #: ../../library/curses.rst:1184 @@ -1362,8 +1362,8 @@ msgstr "" #: ../../library/curses.rst:1190 msgid "" -"Turn off the standout attribute. On some terminals this has the side effect" -" of turning off all attributes." +"Turn off the standout attribute. On some terminals this has the side effect " +"of turning off all attributes." msgstr "" #: ../../library/curses.rst:1196 @@ -1406,16 +1406,16 @@ msgid "" "Set blocking or non-blocking read behavior for the window. If *delay* is " "negative, blocking read is used (which will wait indefinitely for input). " "If *delay* is zero, then non-blocking read is used, and :meth:`getch` will " -"return ``-1`` if no input is waiting. If *delay* is positive, then " -":meth:`getch` will block for *delay* milliseconds, and return ``-1`` if " -"there is still no input at the end of that time." +"return ``-1`` if no input is waiting. If *delay* is positive, then :meth:" +"`getch` will block for *delay* milliseconds, and return ``-1`` if there is " +"still no input at the end of that time." msgstr "" #: ../../library/curses.rst:1247 msgid "" "Pretend *count* lines have been changed, starting with line *start*. If " -"*changed* is supplied, it specifies whether the affected lines are marked as" -" having been changed (*changed*\\ ``=True``) or unchanged (*changed*\\ " +"*changed* is supplied, it specifies whether the affected lines are marked as " +"having been changed (*changed*\\ ``=True``) or unchanged (*changed*\\ " "``=False``)." msgstr "" @@ -1427,14 +1427,14 @@ msgstr "" #: ../../library/curses.rst:1260 msgid "" -"Mark all lines in the window as unchanged since the last call to " -":meth:`refresh`." +"Mark all lines in the window as unchanged since the last call to :meth:" +"`refresh`." msgstr "" #: ../../library/curses.rst:1267 msgid "" -"Display a vertical line starting at ``(y, x)`` with length *n* consisting of" -" the character *ch*." +"Display a vertical line starting at ``(y, x)`` with length *n* consisting of " +"the character *ch*." msgstr "" #: ../../library/curses.rst:1272 @@ -1447,8 +1447,8 @@ msgstr "" #: ../../library/curses.rst:1279 msgid "" -"Some curses routines that return an integer, such as " -":meth:`~window.getch`, return :const:`ERR` upon failure." +"Some curses routines that return an integer, such as :meth:`~window." +"getch`, return :const:`ERR` upon failure." msgstr "" #: ../../library/curses.rst:1285 @@ -1465,8 +1465,8 @@ msgstr "" #: ../../library/curses.rst:1294 msgid "" -"Some constants are available to specify character cell attributes. The exact" -" constants available are system dependent." +"Some constants are available to specify character cell attributes. The exact " +"constants available are system dependent." msgstr "" #: ../../library/curses.rst:1298 @@ -1480,7 +1480,7 @@ msgstr "Significado" #: ../../library/curses.rst:1300 msgid "``A_ALTCHARSET``" -msgstr "" +msgstr "``A_ALTCHARSET``" #: ../../library/curses.rst:1300 msgid "Alternate character set mode" @@ -1488,7 +1488,7 @@ msgstr "" #: ../../library/curses.rst:1302 msgid "``A_BLINK``" -msgstr "" +msgstr "``A_BLINK``" #: ../../library/curses.rst:1302 msgid "Blink mode" @@ -1496,7 +1496,7 @@ msgstr "" #: ../../library/curses.rst:1304 msgid "``A_BOLD``" -msgstr "" +msgstr "``A_BOLD``" #: ../../library/curses.rst:1304 msgid "Bold mode" @@ -1504,7 +1504,7 @@ msgstr "" #: ../../library/curses.rst:1306 msgid "``A_DIM``" -msgstr "" +msgstr "``A_DIM``" #: ../../library/curses.rst:1306 msgid "Dim mode" @@ -1512,7 +1512,7 @@ msgstr "" #: ../../library/curses.rst:1308 msgid "``A_INVIS``" -msgstr "" +msgstr "``A_INVIS``" #: ../../library/curses.rst:1308 msgid "Invisible or blank mode" @@ -1520,7 +1520,7 @@ msgstr "" #: ../../library/curses.rst:1310 msgid "``A_ITALIC``" -msgstr "" +msgstr "``A_ITALIC``" #: ../../library/curses.rst:1310 msgid "Italic mode" @@ -1528,7 +1528,7 @@ msgstr "" #: ../../library/curses.rst:1312 msgid "``A_NORMAL``" -msgstr "" +msgstr "``A_NORMAL``" #: ../../library/curses.rst:1312 msgid "Normal attribute" @@ -1536,7 +1536,7 @@ msgstr "" #: ../../library/curses.rst:1314 msgid "``A_PROTECT``" -msgstr "" +msgstr "``A_PROTECT``" #: ../../library/curses.rst:1314 msgid "Protected mode" @@ -1544,7 +1544,7 @@ msgstr "" #: ../../library/curses.rst:1316 msgid "``A_REVERSE``" -msgstr "" +msgstr "``A_REVERSE``" #: ../../library/curses.rst:1316 msgid "Reverse background and foreground colors" @@ -1552,7 +1552,7 @@ msgstr "" #: ../../library/curses.rst:1319 msgid "``A_STANDOUT``" -msgstr "" +msgstr "``A_STANDOUT``" #: ../../library/curses.rst:1319 msgid "Standout mode" @@ -1560,7 +1560,7 @@ msgstr "" #: ../../library/curses.rst:1321 msgid "``A_UNDERLINE``" -msgstr "" +msgstr "``A_UNDERLINE``" #: ../../library/curses.rst:1321 msgid "Underline mode" @@ -1568,7 +1568,7 @@ msgstr "" #: ../../library/curses.rst:1323 msgid "``A_HORIZONTAL``" -msgstr "" +msgstr "``A_HORIZONTAL``" #: ../../library/curses.rst:1323 msgid "Horizontal highlight" @@ -1576,7 +1576,7 @@ msgstr "" #: ../../library/curses.rst:1325 msgid "``A_LEFT``" -msgstr "" +msgstr "``A_LEFT``" #: ../../library/curses.rst:1325 msgid "Left highlight" @@ -1584,7 +1584,7 @@ msgstr "" #: ../../library/curses.rst:1327 msgid "``A_LOW``" -msgstr "" +msgstr "``A_LOW``" #: ../../library/curses.rst:1327 msgid "Low highlight" @@ -1592,7 +1592,7 @@ msgstr "" #: ../../library/curses.rst:1329 msgid "``A_RIGHT``" -msgstr "" +msgstr "``A_RIGHT``" #: ../../library/curses.rst:1329 msgid "Right highlight" @@ -1600,7 +1600,7 @@ msgstr "" #: ../../library/curses.rst:1331 msgid "``A_TOP``" -msgstr "" +msgstr "``A_TOP``" #: ../../library/curses.rst:1331 msgid "Top highlight" @@ -1608,7 +1608,7 @@ msgstr "" #: ../../library/curses.rst:1333 msgid "``A_VERTICAL``" -msgstr "" +msgstr "``A_VERTICAL``" #: ../../library/curses.rst:1333 msgid "Vertical highlight" @@ -1616,7 +1616,7 @@ msgstr "" #: ../../library/curses.rst:1335 ../../library/curses.rst:1351 msgid "``A_CHARTEXT``" -msgstr "" +msgstr "``A_CHARTEXT``" #: ../../library/curses.rst:1335 ../../library/curses.rst:1351 msgid "Bit-mask to extract a character" @@ -1628,8 +1628,8 @@ msgstr "" #: ../../library/curses.rst:1342 msgid "" -"Several constants are available to extract corresponding attributes returned" -" by some methods." +"Several constants are available to extract corresponding attributes returned " +"by some methods." msgstr "" #: ../../library/curses.rst:1346 @@ -1638,7 +1638,7 @@ msgstr "" #: ../../library/curses.rst:1348 msgid "``A_ATTRIBUTES``" -msgstr "" +msgstr "``A_ATTRIBUTES``" #: ../../library/curses.rst:1348 msgid "Bit-mask to extract attributes" @@ -1646,7 +1646,7 @@ msgstr "" #: ../../library/curses.rst:1354 msgid "``A_COLOR``" -msgstr "" +msgstr "``A_COLOR``" #: ../../library/curses.rst:1354 msgid "Bit-mask to extract color-pair field information" @@ -2420,13 +2420,13 @@ msgstr "" #: ../../library/curses.rst:1556 msgid "" -"On VT100s and their software emulations, such as X terminal emulators, there" -" are normally at least four function keys (:const:`KEY_F1`, :const:`KEY_F2`," -" :const:`KEY_F3`, :const:`KEY_F4`) available, and the arrow keys mapped to " -":const:`KEY_UP`, :const:`KEY_DOWN`, :const:`KEY_LEFT` and :const:`KEY_RIGHT`" -" in the obvious way. If your machine has a PC keyboard, it is safe to " -"expect arrow keys and twelve function keys (older PC keyboards may have only" -" ten function keys); also, the following keypad mappings are standard:" +"On VT100s and their software emulations, such as X terminal emulators, there " +"are normally at least four function keys (:const:`KEY_F1`, :const:`KEY_F2`, :" +"const:`KEY_F3`, :const:`KEY_F4`) available, and the arrow keys mapped to :" +"const:`KEY_UP`, :const:`KEY_DOWN`, :const:`KEY_LEFT` and :const:`KEY_RIGHT` " +"in the obvious way. If your machine has a PC keyboard, it is safe to expect " +"arrow keys and twelve function keys (older PC keyboards may have only ten " +"function keys); also, the following keypad mappings are standard:" msgstr "" #: ../../library/curses.rst:1565 @@ -2488,8 +2488,8 @@ msgstr "KEY_NPAGE" #: ../../library/curses.rst:1580 msgid "" -"The following table lists characters from the alternate character set. These" -" are inherited from the VT100 terminal, and will generally be available on " +"The following table lists characters from the alternate character set. These " +"are inherited from the VT100 terminal, and will generally be available on " "software emulations such as X terminals. When there is no graphic " "available, curses falls back on a crude printable ASCII approximation." msgstr "" @@ -2776,7 +2776,7 @@ msgstr "" #: ../../library/curses.rst:1660 msgid "``ACS_SSBS``" -msgstr "" +msgstr "``ACS_SSBS``" #: ../../library/curses.rst:1660 msgid "alternate name for bottom tee" @@ -2784,7 +2784,7 @@ msgstr "" #: ../../library/curses.rst:1662 msgid "``ACS_SSSB``" -msgstr "" +msgstr "``ACS_SSSB``" #: ../../library/curses.rst:1662 msgid "alternate name for left tee" @@ -2938,8 +2938,8 @@ msgstr "" #: ../../library/curses.rst:1722 msgid "" -"Draw a rectangle. The first argument must be a window object; the remaining" -" arguments are coordinates relative to that window. The second and third " +"Draw a rectangle. The first argument must be a window object; the remaining " +"arguments are coordinates relative to that window. The second and third " "arguments are the y and x coordinates of the upper left hand corner of the " "rectangle to be drawn; the fourth and fifth arguments are the y and x " "coordinates of the lower right hand corner. The rectangle will be drawn " @@ -2958,8 +2958,8 @@ msgstr "" #: ../../library/curses.rst:1742 msgid "" -"Return a textbox widget object. The *win* argument should be a curses " -":ref:`window ` object in which the textbox is to be " +"Return a textbox widget object. The *win* argument should be a curses :ref:" +"`window ` object in which the textbox is to be " "contained. The edit cursor of the textbox is initially located at the upper " "left hand corner of the containing window, with coordinates ``(0, 0)``. The " "instance's :attr:`stripspaces` flag is initially on." @@ -2976,8 +2976,8 @@ msgid "" "*validator* is supplied, it must be a function. It will be called for each " "keystroke entered with the keystroke as a parameter; command dispatch is " "done on the result. This method returns the window contents as a string; " -"whether blanks in the window are included is affected by the " -":attr:`stripspaces` attribute." +"whether blanks in the window are included is affected by the :attr:" +"`stripspaces` attribute." msgstr "" #: ../../library/curses.rst:1764 @@ -3100,8 +3100,8 @@ msgstr "" #: ../../library/curses.rst:1802 msgid "" -"Move operations do nothing if the cursor is at an edge where the movement is" -" not possible. The following synonyms are supported where possible:" +"Move operations do nothing if the cursor is at an edge where the movement is " +"not possible. The following synonyms are supported where possible:" msgstr "" #: ../../library/curses.rst:1808 @@ -3143,8 +3143,8 @@ msgstr "" #: ../../library/curses.rst:1831 msgid "" "This attribute is a flag which controls the interpretation of blanks in the " -"window. When it is on, trailing blanks on each line are ignored; any cursor" -" motion that would land the cursor on a trailing blank goes to the end of " -"that line instead, and trailing blanks are stripped when the window contents" -" are gathered." +"window. When it is on, trailing blanks on each line are ignored; any cursor " +"motion that would land the cursor on a trailing blank goes to the end of " +"that line instead, and trailing blanks are stripped when the window contents " +"are gathered." msgstr "" diff --git a/library/custominterp.po b/library/custominterp.po index db79d0f27..b49542e19 100644 --- a/library/custominterp.po +++ b/library/custominterp.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,14 +32,14 @@ msgstr "Interpretadores Python Personalizados" msgid "" "The modules described in this chapter allow writing interfaces similar to " "Python's interactive interpreter. If you want a Python interpreter that " -"supports some special feature in addition to the Python language, you should" -" look at the :mod:`code` module. (The :mod:`codeop` module is lower-level, " +"supports some special feature in addition to the Python language, you should " +"look at the :mod:`code` module. (The :mod:`codeop` module is lower-level, " "used to support compiling a possibly-incomplete chunk of Python code.)" msgstr "" "Os módulos descritos neste capítulo permitem a escrita de interfaces " "semelhantes ao intérprete interativo da Python. Se você quer um intérprete " -"de Python que suporte algum recurso especial, além do idioma de Python, você" -" deve olhar para o módulo: mod: `code`. (O módulo mod: `codeop` é de nível " +"de Python que suporte algum recurso especial, além do idioma de Python, você " +"deve olhar para o módulo: mod: `code`. (O módulo mod: `codeop` é de nível " "inferior, usado para suportar compilação de um pedaço possivelmente " "incompleto do código Python)." diff --git a/library/dataclasses.po b/library/dataclasses.po index 2c202cd9c..39cf5dc93 100644 --- a/library/dataclasses.po +++ b/library/dataclasses.po @@ -1,30 +1,38 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Claudio Rogerio Carvalho Filho , 2019 +# Leticia Portella , 2019 +# Marco Rougeth , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:22+0000\n" +"Last-Translator: Marco Rougeth , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/dataclasses.rst:2 +#: ../../library/dataclasses.rst:2 msgid ":mod:`dataclasses` --- Data Classes" -msgstr "" +msgstr ":mod:`dataclasses` --- Data Classes" -#: ../Doc/library/dataclasses.rst:10 +#: ../../library/dataclasses.rst:10 msgid "**Source code:** :source:`Lib/dataclasses.py`" -msgstr "" +msgstr "**Código fonte:** :source:`Lib/dataclasses.py`" -#: ../Doc/library/dataclasses.rst:14 +#: ../../library/dataclasses.rst:14 msgid "" "This module provides a decorator and functions for automatically adding " "generated :term:`special method`\\s such as :meth:`__init__` and :meth:" @@ -32,47 +40,49 @@ msgid "" "`557`." msgstr "" -#: ../Doc/library/dataclasses.rst:19 +#: ../../library/dataclasses.rst:19 msgid "" "The member variables to use in these generated methods are defined using :" "pep:`526` type annotations. For example this code::" msgstr "" -#: ../Doc/library/dataclasses.rst:32 +#: ../../library/dataclasses.rst:32 msgid "Will add, among other things, a :meth:`__init__` that looks like::" msgstr "" +"Will add, among other things, a :meth:`__init__` that looks like::\n" +"Vai adicionar, além de outras coisas, o :meth:`__init__` que parece com::" -#: ../Doc/library/dataclasses.rst:39 +#: ../../library/dataclasses.rst:39 msgid "" "Note that this method is automatically added to the class: it is not " "directly specified in the ``InventoryItem`` definition shown above." msgstr "" -#: ../Doc/library/dataclasses.rst:45 +#: ../../library/dataclasses.rst:45 msgid "Module-level decorators, classes, and functions" msgstr "" -#: ../Doc/library/dataclasses.rst:49 +#: ../../library/dataclasses.rst:49 msgid "" "This function is a :term:`decorator` that is used to add generated :term:" "`special method`\\s to classes, as described below." msgstr "" -#: ../Doc/library/dataclasses.rst:52 +#: ../../library/dataclasses.rst:52 msgid "" "The :func:`dataclass` decorator examines the class to find ``field``\\s. A " -"``field`` is defined as class variable that has a type annotation. With two " -"exceptions described below, nothing in :func:`dataclass` examines the type " -"specified in the variable annotation." +"``field`` is defined as class variable that has a :term:`type annotation " +"`. With two exceptions described below, nothing in :" +"func:`dataclass` examines the type specified in the variable annotation." msgstr "" -#: ../Doc/library/dataclasses.rst:58 +#: ../../library/dataclasses.rst:58 msgid "" "The order of the fields in all of the generated methods is the order in " "which they appear in the class definition." msgstr "" -#: ../Doc/library/dataclasses.rst:61 +#: ../../library/dataclasses.rst:61 msgid "" "The :func:`dataclass` decorator will add various \"dunder\" methods to the " "class, described below. If any of the added methods already exist on the " @@ -80,28 +90,31 @@ msgid "" "decorator returns the same class that is called on; no new class is created." msgstr "" -#: ../Doc/library/dataclasses.rst:67 +#: ../../library/dataclasses.rst:67 msgid "" "If :func:`dataclass` is used just as a simple decorator with no parameters, " "it acts as if it has the default values documented in this signature. That " "is, these three uses of :func:`dataclass` are equivalent::" msgstr "" -#: ../Doc/library/dataclasses.rst:84 +#: ../../library/dataclasses.rst:84 msgid "The parameters to :func:`dataclass` are:" -msgstr "" +msgstr "Os parâmetros do :func:`dataclass` são:" -#: ../Doc/library/dataclasses.rst:86 +#: ../../library/dataclasses.rst:86 msgid "" "``init``: If true (the default), a :meth:`__init__` method will be generated." msgstr "" +"``init``: Se verdadeiro (o padrão), o método :meth:`__init__` será gerado." -#: ../Doc/library/dataclasses.rst:89 +#: ../../library/dataclasses.rst:89 msgid "" "If the class already defines :meth:`__init__`, this parameter is ignored." msgstr "" +"If the class already defines :meth:`__init__`, this parameter is ignored.\n" +"Se a classe já tenha :meth:`__init__` definido, esse parâmetro é ignorado." -#: ../Doc/library/dataclasses.rst:92 +#: ../../library/dataclasses.rst:92 msgid "" "``repr``: If true (the default), a :meth:`__repr__` method will be " "generated. The generated repr string will have the class name and the name " @@ -111,23 +124,25 @@ msgid "" "quantity_on_hand=10)``." msgstr "" -#: ../Doc/library/dataclasses.rst:99 +#: ../../library/dataclasses.rst:99 msgid "" "If the class already defines :meth:`__repr__`, this parameter is ignored." msgstr "" +"Se a classe já tenha :meth:`__repr__` definido, esse parâmetro é ignorado." -#: ../Doc/library/dataclasses.rst:102 +#: ../../library/dataclasses.rst:102 msgid "" "``eq``: If true (the default), an :meth:`__eq__` method will be generated. " "This method compares the class as if it were a tuple of its fields, in " "order. Both instances in the comparison must be of the identical type." msgstr "" -#: ../Doc/library/dataclasses.rst:107 +#: ../../library/dataclasses.rst:107 msgid "If the class already defines :meth:`__eq__`, this parameter is ignored." msgstr "" +"Se a classe já tenha :meth:`__eq__` definido, esse parâmetro é ignorado." -#: ../Doc/library/dataclasses.rst:110 +#: ../../library/dataclasses.rst:110 msgid "" "``order``: If true (the default is ``False``), :meth:`__lt__`, :meth:" "`__le__`, :meth:`__gt__`, and :meth:`__ge__` methods will be generated. " @@ -136,19 +151,19 @@ msgid "" "true and ``eq`` is false, a :exc:`ValueError` is raised." msgstr "" -#: ../Doc/library/dataclasses.rst:117 +#: ../../library/dataclasses.rst:117 msgid "" "If the class already defines any of :meth:`__lt__`, :meth:`__le__`, :meth:" "`__gt__`, or :meth:`__ge__`, then :exc:`TypeError` is raised." msgstr "" -#: ../Doc/library/dataclasses.rst:121 +#: ../../library/dataclasses.rst:121 msgid "" "``unsafe_hash``: If ``False`` (the default), a :meth:`__hash__` method is " "generated according to how ``eq`` and ``frozen`` are set." msgstr "" -#: ../Doc/library/dataclasses.rst:124 +#: ../../library/dataclasses.rst:124 msgid "" ":meth:`__hash__` is used by built-in :meth:`hash()`, and when objects are " "added to hashed collections such as dictionaries and sets. Having a :meth:" @@ -158,7 +173,7 @@ msgid "" "``frozen`` flags in the :func:`dataclass` decorator." msgstr "" -#: ../Doc/library/dataclasses.rst:131 +#: ../../library/dataclasses.rst:131 msgid "" "By default, :func:`dataclass` will not implicitly add a :meth:`__hash__` " "method unless it is safe to do so. Neither will it add or change an " @@ -167,7 +182,7 @@ msgid "" "in the :meth:`__hash__` documentation." msgstr "" -#: ../Doc/library/dataclasses.rst:137 +#: ../../library/dataclasses.rst:137 msgid "" "If :meth:`__hash__` is not explicit defined, or if it is set to ``None``, " "then :func:`dataclass` *may* add an implicit :meth:`__hash__` method. " @@ -177,7 +192,7 @@ msgid "" "specialized use case and should be considered carefully." msgstr "" -#: ../Doc/library/dataclasses.rst:144 +#: ../../library/dataclasses.rst:144 msgid "" "Here are the rules governing implicit creation of a :meth:`__hash__` " "method. Note that you cannot both have an explicit :meth:`__hash__` method " @@ -185,7 +200,7 @@ msgid "" "`TypeError`." msgstr "" -#: ../Doc/library/dataclasses.rst:149 +#: ../../library/dataclasses.rst:149 msgid "" "If ``eq`` and ``frozen`` are both true, by default :func:`dataclass` will " "generate a :meth:`__hash__` method for you. If ``eq`` is true and " @@ -196,34 +211,34 @@ msgid "" "will fall back to id-based hashing)." msgstr "" -#: ../Doc/library/dataclasses.rst:157 +#: ../../library/dataclasses.rst:157 msgid "" -"``frozen``: If true (the default is False), assigning to fields will " +"``frozen``: If true (the default is ``False``), assigning to fields will " "generate an exception. This emulates read-only frozen instances. If :meth:" "`__setattr__` or :meth:`__delattr__` is defined in the class, then :exc:" "`TypeError` is raised. See the discussion below." msgstr "" -#: ../Doc/library/dataclasses.rst:162 +#: ../../library/dataclasses.rst:162 msgid "" "``field``\\s may optionally specify a default value, using normal Python " "syntax::" msgstr "" -#: ../Doc/library/dataclasses.rst:170 +#: ../../library/dataclasses.rst:170 msgid "" "In this example, both ``a`` and ``b`` will be included in the added :meth:" "`__init__` method, which will be defined as::" msgstr "" -#: ../Doc/library/dataclasses.rst:175 +#: ../../library/dataclasses.rst:175 msgid "" ":exc:`TypeError` will be raised if a field without a default value follows a " "field with a default value. This is true either when this occurs in a " "single class, or as a result of class inheritance." msgstr "" -#: ../Doc/library/dataclasses.rst:181 +#: ../../library/dataclasses.rst:181 msgid "" "For common and simple use cases, no other functionality is required. There " "are, however, some dataclass features that require additional per-field " @@ -232,7 +247,7 @@ msgid "" "function. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:194 +#: ../../library/dataclasses.rst:194 msgid "" "As shown above, the ``MISSING`` value is a sentinel object used to detect if " "the ``default`` and ``default_factory`` parameters are provided. This " @@ -240,18 +255,18 @@ msgid "" "should directly use the ``MISSING`` value." msgstr "" -#: ../Doc/library/dataclasses.rst:200 +#: ../../library/dataclasses.rst:200 msgid "The parameters to :func:`field` are:" -msgstr "" +msgstr "Os parâmetros do func:`field` são:" -#: ../Doc/library/dataclasses.rst:202 +#: ../../library/dataclasses.rst:202 msgid "" "``default``: If provided, this will be the default value for this field. " "This is needed because the :meth:`field` call itself replaces the normal " "position of the default value." msgstr "" -#: ../Doc/library/dataclasses.rst:206 +#: ../../library/dataclasses.rst:206 msgid "" "``default_factory``: If provided, it must be a zero-argument callable that " "will be called when a default value is needed for this field. Among other " @@ -260,25 +275,25 @@ msgid "" "``default_factory``." msgstr "" -#: ../Doc/library/dataclasses.rst:212 +#: ../../library/dataclasses.rst:212 msgid "" "``init``: If true (the default), this field is included as a parameter to " "the generated :meth:`__init__` method." msgstr "" -#: ../Doc/library/dataclasses.rst:215 +#: ../../library/dataclasses.rst:215 msgid "" "``repr``: If true (the default), this field is included in the string " "returned by the generated :meth:`__repr__` method." msgstr "" -#: ../Doc/library/dataclasses.rst:218 +#: ../../library/dataclasses.rst:218 msgid "" "``compare``: If true (the default), this field is included in the generated " "equality and comparison methods (:meth:`__eq__`, :meth:`__gt__`, et al.)." msgstr "" -#: ../Doc/library/dataclasses.rst:222 +#: ../../library/dataclasses.rst:222 msgid "" "``hash``: This can be a bool or ``None``. If true, this field is included " "in the generated :meth:`__hash__` method. If ``None`` (the default), use " @@ -287,7 +302,7 @@ msgid "" "Setting this value to anything other than ``None`` is discouraged." msgstr "" -#: ../Doc/library/dataclasses.rst:229 +#: ../../library/dataclasses.rst:229 msgid "" "One possible reason to set ``hash=False`` but ``compare=True`` would be if a " "field is expensive to compute a hash value for, that field is needed for " @@ -296,7 +311,7 @@ msgid "" "used for comparisons." msgstr "" -#: ../Doc/library/dataclasses.rst:235 +#: ../../library/dataclasses.rst:235 msgid "" "``metadata``: This can be a mapping or None. None is treated as an empty " "dict. This value is wrapped in :func:`~types.MappingProxyType` to make it " @@ -306,7 +321,7 @@ msgid "" "the metadata." msgstr "" -#: ../Doc/library/dataclasses.rst:243 +#: ../../library/dataclasses.rst:243 msgid "" "If the default value of a field is specified by a call to :func:`field()`, " "then the class attribute for this field will be replaced by the specified " @@ -317,13 +332,13 @@ msgid "" "after::" msgstr "" -#: ../Doc/library/dataclasses.rst:259 +#: ../../library/dataclasses.rst:259 msgid "" "The class attribute ``C.z`` will be ``10``, the class attribute ``C.t`` will " "be ``20``, and the class attributes ``C.x`` and ``C.y`` will not be set." msgstr "" -#: ../Doc/library/dataclasses.rst:265 +#: ../../library/dataclasses.rst:265 msgid "" ":class:`Field` objects describe each defined field. These objects are " "created internally, and are returned by the :func:`fields` module-level " @@ -331,28 +346,28 @@ msgid "" "directly. Its documented attributes are:" msgstr "" -#: ../Doc/library/dataclasses.rst:270 +#: ../../library/dataclasses.rst:270 msgid "``name``: The name of the field." -msgstr "" +msgstr "``name``: O nome do campo." -#: ../Doc/library/dataclasses.rst:272 +#: ../../library/dataclasses.rst:272 msgid "``type``: The type of the field." -msgstr "" +msgstr "``type``: O tipo do campo." -#: ../Doc/library/dataclasses.rst:274 +#: ../../library/dataclasses.rst:274 msgid "" "``default``, ``default_factory``, ``init``, ``repr``, ``hash``, ``compare``, " "and ``metadata`` have the identical meaning and values as they do in the :" "func:`field` declaration." msgstr "" -#: ../Doc/library/dataclasses.rst:278 +#: ../../library/dataclasses.rst:278 msgid "" "Other attributes may exist, but they are private and must not be inspected " "or relied on." msgstr "" -#: ../Doc/library/dataclasses.rst:283 +#: ../../library/dataclasses.rst:283 msgid "" "Returns a tuple of :class:`Field` objects that define the fields for this " "dataclass. Accepts either a dataclass, or an instance of a dataclass. " @@ -360,7 +375,7 @@ msgid "" "not return pseudo-fields which are ``ClassVar`` or ``InitVar``." msgstr "" -#: ../Doc/library/dataclasses.rst:290 +#: ../../library/dataclasses.rst:290 msgid "" "Converts the dataclass ``instance`` to a dict (by using the factory function " "``dict_factory``). Each dataclass is converted to a dict of its fields, as " @@ -368,22 +383,22 @@ msgid "" "into. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:310 ../Doc/library/dataclasses.rst:324 +#: ../../library/dataclasses.rst:310 ../../library/dataclasses.rst:324 msgid "Raises :exc:`TypeError` if ``instance`` is not a dataclass instance." msgstr "" -#: ../Doc/library/dataclasses.rst:314 +#: ../../library/dataclasses.rst:314 msgid "" "Converts the dataclass ``instance`` to a tuple (by using the factory " "function ``tuple_factory``). Each dataclass is converted to a tuple of its " "field values. dataclasses, dicts, lists, and tuples are recursed into." msgstr "" -#: ../Doc/library/dataclasses.rst:319 +#: ../../library/dataclasses.rst:319 msgid "Continuing from the previous example::" -msgstr "" +msgstr "Continuando a partir do exemplo anterior::" -#: ../Doc/library/dataclasses.rst:328 +#: ../../library/dataclasses.rst:328 msgid "" "Creates a new dataclass with name ``cls_name``, fields as defined in " "``fields``, base classes as given in ``bases``, and initialized with a " @@ -395,7 +410,7 @@ msgid "" "`dataclass`." msgstr "" -#: ../Doc/library/dataclasses.rst:337 +#: ../../library/dataclasses.rst:337 msgid "" "This function is not strictly required, because any Python mechanism for " "creating a new class with ``__annotations__`` can then apply the :func:" @@ -403,11 +418,11 @@ msgid "" "provided as a convenience. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:349 +#: ../../library/dataclasses.rst:349 msgid "Is equivalent to::" -msgstr "" +msgstr "É equivalente a::" -#: ../Doc/library/dataclasses.rst:362 +#: ../../library/dataclasses.rst:362 msgid "" "Creates a new object of the same type of ``instance``, replacing fields with " "values from ``changes``. If ``instance`` is not a Data Class, raises :exc:" @@ -415,27 +430,27 @@ msgid "" "`TypeError`." msgstr "" -#: ../Doc/library/dataclasses.rst:367 +#: ../../library/dataclasses.rst:367 msgid "" "The newly returned object is created by calling the :meth:`__init__` method " "of the dataclass. This ensures that :meth:`__post_init__`, if present, is " "also called." msgstr "" -#: ../Doc/library/dataclasses.rst:371 +#: ../../library/dataclasses.rst:371 msgid "" "Init-only variables without default values, if any exist, must be specified " "on the call to :func:`replace` so that they can be passed to :meth:" "`__init__` and :meth:`__post_init__`." msgstr "" -#: ../Doc/library/dataclasses.rst:375 +#: ../../library/dataclasses.rst:375 msgid "" "It is an error for ``changes`` to contain any fields that are defined as " "having ``init=False``. A :exc:`ValueError` will be raised in this case." msgstr "" -#: ../Doc/library/dataclasses.rst:379 +#: ../../library/dataclasses.rst:379 msgid "" "Be forewarned about how ``init=False`` fields work during a call to :func:" "`replace`. They are not copied from the source object, but rather are " @@ -446,24 +461,27 @@ msgid "" "instance copying." msgstr "" -#: ../Doc/library/dataclasses.rst:390 +#: ../../library/dataclasses.rst:390 msgid "" -"Returns True if its parameter is a dataclass or an instance of one, " -"otherwise returns False." +"Return ``True`` if its parameter is a dataclass or an instance of one, " +"otherwise return ``False``." msgstr "" -#: ../Doc/library/dataclasses.rst:393 +#: ../../library/dataclasses.rst:393 msgid "" "If you need to know if a class is an instance of a dataclass (and not a " "dataclass itself), then add a further check for ``not isinstance(obj, " "type)``::" msgstr "" +"Se você precisa saber se a classe é uma instância de dataclass (e não a " +"dataclass de fato), então adicione uma verificação para ``not " +"isinstance(obj, type)``::" -#: ../Doc/library/dataclasses.rst:401 +#: ../../library/dataclasses.rst:401 msgid "Post-init processing" -msgstr "" +msgstr "Processing post-init" -#: ../Doc/library/dataclasses.rst:403 +#: ../../library/dataclasses.rst:403 msgid "" "The generated :meth:`__init__` code will call a method named :meth:" "`__post_init__`, if :meth:`__post_init__` is defined on the class. It will " @@ -473,24 +491,24 @@ msgid "" "generated, then :meth:`__post_init__` will not automatically be called." msgstr "" -#: ../Doc/library/dataclasses.rst:411 +#: ../../library/dataclasses.rst:411 msgid "" "Among other uses, this allows for initializing field values that depend on " "one or more other fields. For example::" msgstr "" -#: ../Doc/library/dataclasses.rst:423 +#: ../../library/dataclasses.rst:423 msgid "" "See the section below on init-only variables for ways to pass parameters to :" "meth:`__post_init__`. Also see the warning about how :func:`replace` " "handles ``init=False`` fields." msgstr "" -#: ../Doc/library/dataclasses.rst:428 +#: ../../library/dataclasses.rst:428 msgid "Class variables" -msgstr "" +msgstr "Variáveis de classe" -#: ../Doc/library/dataclasses.rst:430 +#: ../../library/dataclasses.rst:430 msgid "" "One of two places where :func:`dataclass` actually inspects the type of a " "field is to determine if a field is a class variable as defined in :pep:" @@ -500,11 +518,11 @@ msgid "" "pseudo-fields are not returned by the module-level :func:`fields` function." msgstr "" -#: ../Doc/library/dataclasses.rst:439 +#: ../../library/dataclasses.rst:439 msgid "Init-only variables" msgstr "" -#: ../Doc/library/dataclasses.rst:441 +#: ../../library/dataclasses.rst:441 msgid "" "The other place where :func:`dataclass` inspects a type annotation is to " "determine if a field is an init-only variable. It does this by seeing if " @@ -516,23 +534,23 @@ msgid "" "`__post_init__` method. They are not otherwise used by dataclasses." msgstr "" -#: ../Doc/library/dataclasses.rst:451 +#: ../../library/dataclasses.rst:451 msgid "" "For example, suppose a field will be initialized from a database, if a value " "is not provided when creating the class::" msgstr "" -#: ../Doc/library/dataclasses.rst:466 +#: ../../library/dataclasses.rst:466 msgid "" "In this case, :func:`fields` will return :class:`Field` objects for ``i`` " "and ``j``, but not for ``database``." msgstr "" -#: ../Doc/library/dataclasses.rst:470 +#: ../../library/dataclasses.rst:470 msgid "Frozen instances" msgstr "" -#: ../Doc/library/dataclasses.rst:472 +#: ../../library/dataclasses.rst:472 msgid "" "It is not possible to create truly immutable Python objects. However, by " "passing ``frozen=True`` to the :meth:`dataclass` decorator you can emulate " @@ -541,18 +559,18 @@ msgid "" "`FrozenInstanceError` when invoked." msgstr "" -#: ../Doc/library/dataclasses.rst:478 +#: ../../library/dataclasses.rst:478 msgid "" "There is a tiny performance penalty when using ``frozen=True``: :meth:" "`__init__` cannot use simple assignment to initialize fields, and must use :" "meth:`object.__setattr__`." msgstr "" -#: ../Doc/library/dataclasses.rst:483 +#: ../../library/dataclasses.rst:483 msgid "Inheritance" -msgstr "" +msgstr "Herança" -#: ../Doc/library/dataclasses.rst:485 +#: ../../library/dataclasses.rst:485 msgid "" "When the dataclass is being created by the :meth:`dataclass` decorator, it " "looks through all of the class's base classes in reverse MRO (that is, " @@ -564,28 +582,30 @@ msgid "" "derived classes override base classes. An example::" msgstr "" -#: ../Doc/library/dataclasses.rst:505 +#: ../../library/dataclasses.rst:505 msgid "" "The final list of fields is, in order, ``x``, ``y``, ``z``. The final type " "of ``x`` is ``int``, as specified in class ``C``." msgstr "" +"A lista final de campos é, em ordem, ``x``, ``y``, ``z``. O tipo final de " +"``x`` é ``int``, conforme especificado na classe ``C``." -#: ../Doc/library/dataclasses.rst:508 +#: ../../library/dataclasses.rst:508 msgid "The generated :meth:`__init__` method for ``C`` will look like::" -msgstr "" +msgstr "O método :meth:`__init__` gerado para ``C`` vai se parecer com::" -#: ../Doc/library/dataclasses.rst:513 +#: ../../library/dataclasses.rst:513 msgid "Default factory functions" msgstr "" -#: ../Doc/library/dataclasses.rst:515 +#: ../../library/dataclasses.rst:515 msgid "" "If a :func:`field` specifies a ``default_factory``, it is called with zero " "arguments when a default value for the field is needed. For example, to " "create a new instance of a list, use::" msgstr "" -#: ../Doc/library/dataclasses.rst:521 +#: ../../library/dataclasses.rst:521 msgid "" "If a field is excluded from :meth:`__init__` (using ``init=False``) and the " "field also specifies ``default_factory``, then the default factory function " @@ -593,31 +613,31 @@ msgid "" "happens because there is no other way to give the field an initial value." msgstr "" -#: ../Doc/library/dataclasses.rst:528 +#: ../../library/dataclasses.rst:528 msgid "Mutable default values" -msgstr "" +msgstr "Valores padrão mutáveis" -#: ../Doc/library/dataclasses.rst:530 +#: ../../library/dataclasses.rst:530 msgid "" "Python stores default member variable values in class attributes. Consider " "this example, not using dataclasses::" msgstr "" -#: ../Doc/library/dataclasses.rst:545 +#: ../../library/dataclasses.rst:545 msgid "" "Note that the two instances of class ``C`` share the same class variable " "``x``, as expected." msgstr "" -#: ../Doc/library/dataclasses.rst:548 +#: ../../library/dataclasses.rst:548 msgid "Using dataclasses, *if* this code was valid::" -msgstr "" +msgstr "Usando dataclasses, *se* este código fosse válido::" -#: ../Doc/library/dataclasses.rst:556 +#: ../../library/dataclasses.rst:556 msgid "it would generate code similar to::" -msgstr "" +msgstr "Geraria código similar a::" -#: ../Doc/library/dataclasses.rst:567 +#: ../../library/dataclasses.rst:567 msgid "" "This has the same issue as the original example using class ``C``. That is, " "two instances of class ``D`` that do not specify a value for ``x`` when " @@ -629,17 +649,17 @@ msgid "" "partial solution, but it does protect against many common errors." msgstr "" -#: ../Doc/library/dataclasses.rst:577 +#: ../../library/dataclasses.rst:577 msgid "" "Using default factory functions is a way to create new instances of mutable " "types as default values for fields::" msgstr "" -#: ../Doc/library/dataclasses.rst:587 +#: ../../library/dataclasses.rst:587 msgid "Exceptions" msgstr "Exceções" -#: ../Doc/library/dataclasses.rst:591 +#: ../../library/dataclasses.rst:591 msgid "" "Raised when an implicitly defined :meth:`__setattr__` or :meth:`__delattr__` " "is called on a dataclass which was defined with ``frozen=True``." diff --git a/library/datatypes.po b/library/datatypes.po index 17476c54a..9deda6edd 100644 --- a/library/datatypes.po +++ b/library/datatypes.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" -"Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,14 +33,21 @@ msgid "" "types such as dates and times, fixed-type arrays, heap queues, double-ended " "queues, and enumerations." msgstr "" +"Os módulos descritos neste capítulo fornecem uma variedade de tipos de dados " +"especializados, como datas e horas, vetores de tipo fixo, filas de heap, " +"filas de extremidade dupla e enumerações." #: ../../library/datatypes.rst:11 msgid "" -"Python also provides some built-in data types, in particular, :class:`dict`," -" :class:`list`, :class:`set` and :class:`frozenset`, and :class:`tuple`. " -"The :class:`str` class is used to hold Unicode strings, and the " -":class:`bytes` and :class:`bytearray` classes are used to hold binary data." +"Python also provides some built-in data types, in particular, :class:" +"`dict`, :class:`list`, :class:`set` and :class:`frozenset`, and :class:" +"`tuple`. The :class:`str` class is used to hold Unicode strings, and the :" +"class:`bytes` and :class:`bytearray` classes are used to hold binary data." msgstr "" +"O Python também fornece alguns tipos de dados embutidos, em especial :class:" +"`dict`, :class:`list`, :class:`set` e :class:`frozenset` e :class:`tuple`. A " +"classe :class:`str` é usada para armazenar strings Unicode, e as classes :" +"class:`bytes` e :class:`bytearray` são usadas para armazenar dados binários." #: ../../library/datatypes.rst:17 msgid "The following modules are documented in this chapter:" diff --git a/library/datetime.po b/library/datetime.po index 9214159cb..e7bf00f18 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -1,29 +1,33 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 # Octavio von Sydow , 2019 # Welington Carlos , 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 # Danielle Farias , 2019 # Rafael Fontenelle , 2019 -# +# Andre Melzi , 2019 +# Julia Rizza , 2019 +# Marco Rougeth , 2020 +# Vinícius Muniz de Melo , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-30 03:20+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinícius Muniz de Melo , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,7 +36,7 @@ msgstr "" #: ../../library/datetime.rst:2 msgid ":mod:`datetime` --- Basic date and time types" -msgstr "" +msgstr ":mod:`datetime` --- Tipos básicos de data e hora" #: ../../library/datetime.rst:11 msgid "**Source code:** :source:`Lib/datetime.py`" @@ -40,8 +44,8 @@ msgstr "**Código Fonte:** :source:`Lib/datetime.py`" #: ../../library/datetime.rst:17 msgid "" -"The :mod:`datetime` module supplies classes for manipulating dates and times" -" in both simple and complex ways. While date and time arithmetic is " +"The :mod:`datetime` module supplies classes for manipulating dates and times " +"in both simple and complex ways. While date and time arithmetic is " "supported, the focus of the implementation is on efficient attribute " "extraction for output formatting and manipulation. For related " "functionality, see also the :mod:`time` and :mod:`calendar` modules." @@ -78,36 +82,40 @@ msgstr "" #: ../../library/datetime.rst:38 msgid "" -"For applications requiring aware objects, :class:`.datetime` and " -":class:`.time` objects have an optional time zone information attribute, " -":attr:`!tzinfo`, that can be set to an instance of a subclass of the " -"abstract :class:`tzinfo` class. These :class:`tzinfo` objects capture " -"information about the offset from UTC time, the time zone name, and whether " -"Daylight Saving Time is in effect. Note that only one concrete " -":class:`tzinfo` class, the :class:`timezone` class, is supplied by the " -":mod:`datetime` module. The :class:`timezone` class can represent simple " -"timezones with fixed offset from UTC, such as UTC itself or North American " -"EST and EDT timezones. Supporting timezones at deeper levels of detail is " -"up to the application. The rules for time adjustment across the world are " -"more political than rational, change frequently, and there is no standard " -"suitable for every application aside from UTC." +"For applications requiring aware objects, :class:`.datetime` and :class:`." +"time` objects have an optional time zone information attribute, :attr:`!" +"tzinfo`, that can be set to an instance of a subclass of the abstract :class:" +"`tzinfo` class. These :class:`tzinfo` objects capture information about the " +"offset from UTC time, the time zone name, and whether Daylight Saving Time " +"is in effect. Note that only one concrete :class:`tzinfo` class, the :class:" +"`timezone` class, is supplied by the :mod:`datetime` module. The :class:" +"`timezone` class can represent simple timezones with fixed offset from UTC, " +"such as UTC itself or North American EST and EDT timezones. Supporting " +"timezones at deeper levels of detail is up to the application. The rules " +"for time adjustment across the world are more political than rational, " +"change frequently, and there is no standard suitable for every application " +"aside from UTC." msgstr "" #: ../../library/datetime.rst:51 msgid "The :mod:`datetime` module exports the following constants:" -msgstr "" +msgstr "O módulo :mod:`datetime` exporta as seguintes constantes:" #: ../../library/datetime.rst:55 msgid "" "The smallest year number allowed in a :class:`date` or :class:`.datetime` " "object. :const:`MINYEAR` is ``1``." msgstr "" +"O menor número de ano permitido no objeto :classe`date` ou :classe`." +"datetime` . :const`MINYEAR` é ``1``." #: ../../library/datetime.rst:61 msgid "" "The largest year number allowed in a :class:`date` or :class:`.datetime` " "object. :const:`MAXYEAR` is ``9999``." msgstr "" +"O maior número de ano permitido no objeto :classe`date` ou :classe`." +"datetime` . :const`MAXYER` é ``9999``." #: ../../library/datetime.rst:68 msgid "Module :mod:`calendar`" @@ -123,45 +131,53 @@ msgstr "Módulo :mod:`time`" #: ../../library/datetime.rst:71 msgid "Time access and conversions." -msgstr "" +msgstr "Acesso de hora e conversões." #: ../../library/datetime.rst:75 msgid "Available Types" -msgstr "" +msgstr "Tipos disponíveis" #: ../../library/datetime.rst:80 msgid "" -"An idealized naive date, assuming the current Gregorian calendar always was," -" and always will be, in effect. Attributes: :attr:`year`, :attr:`month`, and" -" :attr:`day`." +"An idealized naive date, assuming the current Gregorian calendar always was, " +"and always will be, in effect. Attributes: :attr:`year`, :attr:`month`, and :" +"attr:`day`." msgstr "" +"Uma data ingênua idealizada, assumindo que o atual calendário Gregoriano " +"sempre foi, e sempre estará em vigor. Atributos: :attr:`year`, :attr:" +"`month`, e :attr:`day`." #: ../../library/datetime.rst:88 msgid "" "An idealized time, independent of any particular day, assuming that every " -"day has exactly 24\\*60\\*60 seconds (there is no notion of \"leap seconds\"" -" here). Attributes: :attr:`hour`, :attr:`minute`, :attr:`second`, " -":attr:`microsecond`, and :attr:`.tzinfo`." +"day has exactly 24\\*60\\*60 seconds (there is no notion of \"leap seconds\" " +"here). Attributes: :attr:`hour`, :attr:`minute`, :attr:`second`, :attr:" +"`microsecond`, and :attr:`.tzinfo`." msgstr "" #: ../../library/datetime.rst:97 msgid "" -"A combination of a date and a time. Attributes: :attr:`year`, :attr:`month`," -" :attr:`day`, :attr:`hour`, :attr:`minute`, :attr:`second`, " -":attr:`microsecond`, and :attr:`.tzinfo`." +"A combination of a date and a time. Attributes: :attr:`year`, :attr:" +"`month`, :attr:`day`, :attr:`hour`, :attr:`minute`, :attr:`second`, :attr:" +"`microsecond`, and :attr:`.tzinfo`." msgstr "" +"Uma combinação de uma data e uma hora. Atributos: :attr:`ano`, :attr:`mês`, :" +"attr:`dia`, :attr:`hora`, :attr:`minuto`, :attr:`segundo`, :attr:" +"`microsegundo`, e :attr:`.tzinfo`." #: ../../library/datetime.rst:105 msgid "" -"A duration expressing the difference between two :class:`date`, " -":class:`.time`, or :class:`.datetime` instances to microsecond resolution." +"A duration expressing the difference between two :class:`date`, :class:`." +"time`, or :class:`.datetime` instances to microsecond resolution." msgstr "" +"Uma duração que expressa a diferença entre duas instâncias :class:`date`, :" +"class:`.time` ou :class:`.datetime` para resolução de microssegundos." #: ../../library/datetime.rst:112 msgid "" -"An abstract base class for time zone information objects. These are used by" -" the :class:`.datetime` and :class:`.time` classes to provide a customizable" -" notion of time adjustment (for example, to account for time zone and/or " +"An abstract base class for time zone information objects. These are used by " +"the :class:`.datetime` and :class:`.time` classes to provide a customizable " +"notion of time adjustment (for example, to account for time zone and/or " "daylight saving time)." msgstr "" @@ -170,25 +186,26 @@ msgid "" "A class that implements the :class:`tzinfo` abstract base class as a fixed " "offset from the UTC." msgstr "" +"Uma classe que implementa a classe base abstrata :classe:`tzinfo` como um " +"deslocamento fixo do UTC." #: ../../library/datetime.rst:126 msgid "Objects of these types are immutable." -msgstr "" +msgstr "Objetos desses tipos são imutáveis." #: ../../library/datetime.rst:128 msgid "Objects of the :class:`date` type are always naive." -msgstr "" +msgstr "Objetos do tipo: classe`date` são sempre ingênuos." #: ../../library/datetime.rst:130 msgid "" "An object of type :class:`.time` or :class:`.datetime` may be naive or " "aware. A :class:`.datetime` object *d* is aware if ``d.tzinfo`` is not " -"``None`` and ``d.tzinfo.utcoffset(d)`` does not return ``None``. If " -"``d.tzinfo`` is ``None``, or if ``d.tzinfo`` is not ``None`` but " -"``d.tzinfo.utcoffset(d)`` returns ``None``, *d* is naive. A :class:`.time` " -"object *t* is aware if ``t.tzinfo`` is not ``None`` and " -"``t.tzinfo.utcoffset(None)`` does not return ``None``. Otherwise, *t* is " -"naive." +"``None`` and ``d.tzinfo.utcoffset(d)`` does not return ``None``. If ``d." +"tzinfo`` is ``None``, or if ``d.tzinfo`` is not ``None`` but ``d.tzinfo." +"utcoffset(d)`` returns ``None``, *d* is naive. A :class:`.time` object *t* " +"is aware if ``t.tzinfo`` is not ``None`` and ``t.tzinfo.utcoffset(None)`` " +"does not return ``None``. Otherwise, *t* is naive." msgstr "" #: ../../library/datetime.rst:138 @@ -199,17 +216,19 @@ msgstr "" #: ../../library/datetime.rst:141 msgid "Subclass relationships::" -msgstr "" +msgstr "Relacionamentos de subclasses::" #: ../../library/datetime.rst:155 msgid ":class:`timedelta` Objects" -msgstr "" +msgstr ":class:`timedelta` Objetos" #: ../../library/datetime.rst:157 msgid "" "A :class:`timedelta` object represents a duration, the difference between " "two dates or times." msgstr "" +"O objeto :class:`timedelta` representa uma duração, a diferença entre duas " +"datas ou horas." #: ../../library/datetime.rst:162 msgid "" @@ -225,37 +244,39 @@ msgstr "" #: ../../library/datetime.rst:168 msgid "A millisecond is converted to 1000 microseconds." -msgstr "" +msgstr "Um milissegundo é convertido em 1000 microssegundos." #: ../../library/datetime.rst:169 msgid "A minute is converted to 60 seconds." -msgstr "" +msgstr "Um minuto é convertido em 60 segundos." #: ../../library/datetime.rst:170 msgid "An hour is converted to 3600 seconds." -msgstr "" +msgstr "Uma hora é convertida em 3600 segundos." #: ../../library/datetime.rst:171 msgid "A week is converted to 7 days." -msgstr "" +msgstr "Uma semana é convertida para 7 dias." #: ../../library/datetime.rst:173 msgid "" "and days, seconds and microseconds are then normalized so that the " "representation is unique, with" msgstr "" +"e dias, segundos e microssegundos são normalizados para que a representação " +"seja única, com" #: ../../library/datetime.rst:176 msgid "``0 <= microseconds < 1000000``" -msgstr "" +msgstr "``0 <= microsegundos < 1000000``" #: ../../library/datetime.rst:177 msgid "``0 <= seconds < 3600*24`` (the number of seconds in one day)" -msgstr "" +msgstr "``0 <= seconds < 3600*24`` (o número de segundos em um dia)" #: ../../library/datetime.rst:178 msgid "``-999999999 <= days <= 999999999``" -msgstr "" +msgstr "``-999999999 <= dias <= 999999999``" #: ../../library/datetime.rst:180 msgid "" @@ -268,9 +289,11 @@ msgstr "" #: ../../library/datetime.rst:187 msgid "" -"If the normalized value of days lies outside the indicated range, " -":exc:`OverflowError` is raised." +"If the normalized value of days lies outside the indicated range, :exc:" +"`OverflowError` is raised." msgstr "" +"Se o valor normalizado de dias estiver fora do intervalo indicado, :exc:" +"`OverflowError` é gerado." #: ../../library/datetime.rst:190 msgid "" @@ -283,32 +306,37 @@ msgid "Class attributes are:" msgstr "" #: ../../library/datetime.rst:203 -msgid "" -"The most negative :class:`timedelta` object, ``timedelta(-999999999)``." -msgstr "" +msgid "The most negative :class:`timedelta` object, ``timedelta(-999999999)``." +msgstr "O mais negativo objeto :class:`timedelta`, ``timedelta(-999999999)``." #: ../../library/datetime.rst:208 msgid "" "The most positive :class:`timedelta` object, ``timedelta(days=999999999, " "hours=23, minutes=59, seconds=59, microseconds=999999)``." msgstr "" +"O mais positivo objeto :class:`timedelta`, ``timedelta(days=999999999, " +"hours=23, minutes=59, seconds=59, microseconds=999999)``." #: ../../library/datetime.rst:214 msgid "" "The smallest possible difference between non-equal :class:`timedelta` " "objects, ``timedelta(microseconds=1)``." msgstr "" +"A menor diferença possível entre objetos não iguais :class:`timedelta`, " +"``timedelta(microseconds=1)``." #: ../../library/datetime.rst:217 msgid "" -"Note that, because of normalization, ``timedelta.max`` > ``-timedelta.min``." -" ``-timedelta.max`` is not representable as a :class:`timedelta` object." +"Note that, because of normalization, ``timedelta.max`` > ``-timedelta.min``. " +"``-timedelta.max`` is not representable as a :class:`timedelta` object." msgstr "" +"Observe que, devido à normalização, ``timedelta.max`` > ``-timedelta.min``. " +"``-timedelta.max`` não é representável como um objeto :class:`timedelta`." #: ../../library/datetime.rst:220 ../../library/datetime.rst:480 #: ../../library/datetime.rst:890 ../../library/datetime.rst:1459 msgid "Instance attributes (read-only):" -msgstr "" +msgstr "Atributos de instância (somente leitura):" #: ../../library/datetime.rst:223 msgid "Attribute" @@ -320,32 +348,32 @@ msgstr "Valor" #: ../../library/datetime.rst:225 msgid "``days``" -msgstr "" +msgstr "``days``" #: ../../library/datetime.rst:225 msgid "Between -999999999 and 999999999 inclusive" -msgstr "" +msgstr "Entre -999999999 e 999999999 inclusive" #: ../../library/datetime.rst:227 msgid "``seconds``" -msgstr "" +msgstr "``seconds``" #: ../../library/datetime.rst:227 msgid "Between 0 and 86399 inclusive" -msgstr "" +msgstr "Entre 0 e 86399 inclusive" #: ../../library/datetime.rst:229 msgid "``microseconds``" -msgstr "" +msgstr "``microseconds``" #: ../../library/datetime.rst:229 msgid "Between 0 and 999999 inclusive" -msgstr "" +msgstr "Entre 0 e 999999 inclusive" #: ../../library/datetime.rst:232 ../../library/datetime.rst:497 #: ../../library/datetime.rst:943 ../../library/datetime.rst:1498 msgid "Supported operations:" -msgstr "" +msgstr "Operações suportadas:" #: ../../library/datetime.rst:237 ../../library/datetime.rst:500 #: ../../library/datetime.rst:946 @@ -359,57 +387,68 @@ msgstr "Resultado" #: ../../library/datetime.rst:239 msgid "``t1 = t2 + t3``" -msgstr "" +msgstr "``t1 = t2 + t3``" #: ../../library/datetime.rst:239 msgid "" -"Sum of *t2* and *t3*. Afterwards *t1*-*t2* == *t3* and *t1*-*t3* == *t2* are" -" true. (1)" +"Sum of *t2* and *t3*. Afterwards *t1*-*t2* == *t3* and *t1*-*t3* == *t2* are " +"true. (1)" msgstr "" +"Soma de *t2* e *t3*. Depois *t1*-*t2* == *t3* e *t1*-*t3* == *t2* são " +"verdadeiros. (1)" #: ../../library/datetime.rst:242 msgid "``t1 = t2 - t3``" -msgstr "" +msgstr "``t1 = t2 - t3``" #: ../../library/datetime.rst:242 msgid "" -"Difference of *t2* and *t3*. Afterwards *t1* == *t2* - *t3* and *t2* == *t1*" -" + *t3* are true. (1)(6)" +"Difference of *t2* and *t3*. Afterwards *t1* == *t2* - *t3* and *t2* == *t1* " +"+ *t3* are true. (1)(6)" msgstr "" +"Diferença de *t2* e *t3*. Depois *t1* == *t2* - *t3* e *t2* == *t1* + *t3* " +"são verdadeiros (1)(6)" #: ../../library/datetime.rst:246 msgid "``t1 = t2 * i or t1 = i * t2``" -msgstr "" +msgstr "``t1 = t2 * i ou t1 = i * t2``" #: ../../library/datetime.rst:246 msgid "" "Delta multiplied by an integer. Afterwards *t1* // i == *t2* is true, " "provided ``i != 0``." msgstr "" +"Delta multiplicado por um número inteiro. Depois *t1* // i == *t2* é " +"verdadeiro, desde que ``i != 0``." #: ../../library/datetime.rst:250 msgid "In general, *t1* \\* i == *t1* \\* (i-1) + *t1* is true. (1)" -msgstr "" +msgstr "Em geral, *t1* \\* i == *t1* \\* (i-1) + *t1* é verdadeiro. (1)" #: ../../library/datetime.rst:253 msgid "``t1 = t2 * f or t1 = f * t2``" -msgstr "" +msgstr "``t1 = t2 * f or t1 = f * t2``" #: ../../library/datetime.rst:253 msgid "" "Delta multiplied by a float. The result is rounded to the nearest multiple " "of timedelta.resolution using round-half-to-even." msgstr "" +"Delta multiplicado por um float, ponto flutuante. O resultado é arredondado " +"para o múltiplo mais próximo de timedelta.resolution usando a metade da " +"metade para o par." #: ../../library/datetime.rst:257 msgid "``f = t2 / t3``" -msgstr "" +msgstr "``f = t2 / t3``" #: ../../library/datetime.rst:257 msgid "" -"Division (3) of overall duration *t2* by interval unit *t3*. Returns a " -":class:`float` object." +"Division (3) of overall duration *t2* by interval unit *t3*. Returns a :" +"class:`float` object." msgstr "" +"Divisão (3) da duração total *t2* por unidade de intervalo *t3*. Retorna um " +"objeto :class:`float`." #: ../../library/datetime.rst:261 msgid "``t1 = t2 / f or t1 = t2 / i``" @@ -420,6 +459,9 @@ msgid "" "Delta divided by a float or an int. The result is rounded to the nearest " "multiple of timedelta.resolution using round-half-to-even." msgstr "" +"Delta dividido por um float ou um int. O resultado é arredondado para o " +"múltiplo mais próximo de timedelta.resolution usando a metade da metade para " +"o par." #: ../../library/datetime.rst:265 msgid "``t1 = t2 // i`` or ``t1 = t2 // t3``" @@ -437,17 +479,19 @@ msgstr "``t1 = t2 % t3``" #: ../../library/datetime.rst:269 msgid "The remainder is computed as a :class:`timedelta` object. (3)" -msgstr "" +msgstr "O restante é calculado como um objeto :class:`timedelta`. (3)" #: ../../library/datetime.rst:272 msgid "``q, r = divmod(t1, t2)``" -msgstr "" +msgstr "``q, r = divmod(t1, t2)``" #: ../../library/datetime.rst:272 msgid "" -"Computes the quotient and the remainder: ``q = t1 // t2`` (3) and ``r = t1 %" -" t2``. q is an integer and r is a :class:`timedelta` object." +"Computes the quotient and the remainder: ``q = t1 // t2`` (3) and ``r = t1 % " +"t2``. q is an integer and r is a :class:`timedelta` object." msgstr "" +"Calcula o quociente e o restante: ``q = t1 // t2`` (3) e ``r = t1% t2``. q é " +"um número inteiro e r é um objeto :class:`timedelta`." #: ../../library/datetime.rst:277 msgid "``+t1``" @@ -455,7 +499,7 @@ msgstr "``+t1``" #: ../../library/datetime.rst:277 msgid "Returns a :class:`timedelta` object with the same value. (2)" -msgstr "" +msgstr "Retorna um objeto :class:`timedelta` com o mesmo valor. (2)" #: ../../library/datetime.rst:280 msgid "``-t1``" @@ -463,39 +507,47 @@ msgstr "``-t1``" #: ../../library/datetime.rst:280 msgid "" -"equivalent to :class:`timedelta`\\ (-*t1.days*, -*t1.seconds*, " -"-*t1.microseconds*), and to *t1*\\* -1. (1)(4)" +"equivalent to :class:`timedelta`\\ (-*t1.days*, -*t1.seconds*, -*t1." +"microseconds*), and to *t1*\\* -1. (1)(4)" msgstr "" +"equivalente a :class:`timedelta`\\ (-*t1.days*, -*t1.seconds*, -*t1." +"microseconds*), e a *t1*\\* -1. (1)(4)" #: ../../library/datetime.rst:285 msgid "``abs(t)``" -msgstr "" +msgstr "``abs(t)``" #: ../../library/datetime.rst:285 msgid "" -"equivalent to +\\ *t* when ``t.days >= 0``, and to -*t* when ``t.days < 0``." -" (2)" +"equivalent to +\\ *t* when ``t.days >= 0``, and to -*t* when ``t.days < 0``. " +"(2)" msgstr "" +"equivalente a + \\ *t* quando ``t.days> = 0``, e a - *t* quando ``t.days " +"<0``. (2)" #: ../../library/datetime.rst:288 msgid "``str(t)``" -msgstr "" +msgstr "``str(t)``" #: ../../library/datetime.rst:288 msgid "" -"Returns a string in the form ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, where D is" -" negative for negative ``t``. (5)" +"Returns a string in the form ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, where D is " +"negative for negative ``t``. (5)" msgstr "" +"Retorna uma string no formato ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, onde D é " +"negativo para ``t`` negativo. (5)" #: ../../library/datetime.rst:292 msgid "``repr(t)``" -msgstr "" +msgstr "``repr(t)``" #: ../../library/datetime.rst:292 msgid "" "Returns a string representation of the :class:`timedelta` object as a " "constructor call with canonical attribute values." msgstr "" +"Retorna uma representação em string do objeto :class:`timedelta` como uma " +"chamada do construtor com valores de atributos canônicos." #: ../../library/datetime.rst:298 ../../library/datetime.rst:514 #: ../../library/datetime.rst:2192 @@ -512,11 +564,12 @@ msgstr "" #: ../../library/datetime.rst:307 msgid "Division by 0 raises :exc:`ZeroDivisionError`." -msgstr "" +msgstr "A divisão por 0 gera :exc:`ZeroDivisionError`." #: ../../library/datetime.rst:310 msgid "-*timedelta.max* is not representable as a :class:`timedelta` object." msgstr "" +"-*timedelta.max* não é representável como um objeto :class:`timedelta`." #: ../../library/datetime.rst:313 msgid "" @@ -527,41 +580,44 @@ msgstr "" #: ../../library/datetime.rst:323 msgid "" -"The expression ``t2 - t3`` will always be equal to the expression ``t2 + " -"(-t3)`` except when t3 is equal to ``timedelta.max``; in that case the " -"former will produce a result while the latter will overflow." +"The expression ``t2 - t3`` will always be equal to the expression ``t2 + (-" +"t3)`` except when t3 is equal to ``timedelta.max``; in that case the former " +"will produce a result while the latter will overflow." msgstr "" +"A expressão ``t2 - t3`` sempre será igual à expressão ``t2 + (-t3)`` exceto " +"quando t3 for igual a ``timedelta.max``; nesse caso, o primeiro produzirá " +"um resultado enquanto o último transbordará." #: ../../library/datetime.rst:327 msgid "" "In addition to the operations listed above :class:`timedelta` objects " -"support certain additions and subtractions with :class:`date` and " -":class:`.datetime` objects (see below)." +"support certain additions and subtractions with :class:`date` and :class:`." +"datetime` objects (see below)." msgstr "" #: ../../library/datetime.rst:331 msgid "" -"Floor division and true division of a :class:`timedelta` object by another " -":class:`timedelta` object are now supported, as are remainder operations and" -" the :func:`divmod` function. True division and multiplication of a " -":class:`timedelta` object by a :class:`float` object are now supported." +"Floor division and true division of a :class:`timedelta` object by another :" +"class:`timedelta` object are now supported, as are remainder operations and " +"the :func:`divmod` function. True division and multiplication of a :class:" +"`timedelta` object by a :class:`float` object are now supported." msgstr "" #: ../../library/datetime.rst:338 msgid "" -"Comparisons of :class:`timedelta` objects are supported with the " -":class:`timedelta` object representing the smaller duration considered to be" -" the smaller timedelta. In order to stop mixed-type comparisons from falling" -" back to the default comparison by object address, when a :class:`timedelta`" -" object is compared to an object of a different type, :exc:`TypeError` is " -"raised unless the comparison is ``==`` or ``!=``. The latter cases return " -":const:`False` or :const:`True`, respectively." +"Comparisons of :class:`timedelta` objects are supported with the :class:" +"`timedelta` object representing the smaller duration considered to be the " +"smaller timedelta. In order to stop mixed-type comparisons from falling back " +"to the default comparison by object address, when a :class:`timedelta` " +"object is compared to an object of a different type, :exc:`TypeError` is " +"raised unless the comparison is ``==`` or ``!=``. The latter cases return :" +"const:`False` or :const:`True`, respectively." msgstr "" #: ../../library/datetime.rst:346 msgid "" -":class:`timedelta` objects are :term:`hashable` (usable as dictionary keys)," -" support efficient pickling, and in Boolean contexts, a :class:`timedelta` " +":class:`timedelta` objects are :term:`hashable` (usable as dictionary keys), " +"support efficient pickling, and in Boolean contexts, a :class:`timedelta` " "object is considered to be true if and only if it isn't equal to " "``timedelta(0)``." msgstr "" @@ -569,7 +625,7 @@ msgstr "" #: ../../library/datetime.rst:350 ../../library/datetime.rst:544 #: ../../library/datetime.rst:1020 ../../library/datetime.rst:1548 msgid "Instance methods:" -msgstr "" +msgstr "Métodos de instância:" #: ../../library/datetime.rst:354 msgid "" @@ -577,12 +633,18 @@ msgid "" "``td / timedelta(seconds=1)``. For interval units other than seconds, use " "the division form directly (e.g. ``td / timedelta(microseconds=1)``)." msgstr "" +"Retorna o número total de segundos contidos na duração. Equivalente a ``td / " +"timedelta(seconds=1)``. Para unidades de intervalo diferentes de segundos, " +"use a forma de divisão diretamente (por exemplo ``td / " +"timedelta(microseconds=1)``)." #: ../../library/datetime.rst:358 msgid "" "Note that for very large time intervals (greater than 270 years on most " "platforms) this method will lose microsecond accuracy." msgstr "" +"Observe que, em intervalos de tempo muito grandes (mais de 270 anos na " +"maioria das plataformas), esse método perde a precisão de microssegundos." #: ../../library/datetime.rst:364 msgid "Example usage:" @@ -590,7 +652,7 @@ msgstr "" #: ../../library/datetime.rst:390 msgid ":class:`date` Objects" -msgstr "" +msgstr ":class:`date` Objetos" #: ../../library/datetime.rst:392 msgid "" @@ -599,9 +661,9 @@ msgid "" "both directions. January 1 of year 1 is called day number 1, January 2 of " "year 1 is called day number 2, and so on. This matches the definition of " "the \"proleptic Gregorian\" calendar in Dershowitz and Reingold's book " -"Calendrical Calculations, where it's the base calendar for all computations." -" See the book for algorithms for converting between proleptic Gregorian " -"ordinals and many other calendar systems." +"Calendrical Calculations, where it's the base calendar for all " +"computations. See the book for algorithms for converting between proleptic " +"Gregorian ordinals and many other calendar systems." msgstr "" #: ../../library/datetime.rst:404 @@ -612,56 +674,62 @@ msgstr "" #: ../../library/datetime.rst:407 msgid "``MINYEAR <= year <= MAXYEAR``" -msgstr "" +msgstr "``MINYEAR <= year <= MAXYEAR``" #: ../../library/datetime.rst:408 msgid "``1 <= month <= 12``" -msgstr "" +msgstr "``1 <= month <= 12``" #: ../../library/datetime.rst:409 msgid "``1 <= day <= number of days in the given month and year``" -msgstr "" +msgstr "``1 <= day <= number of days in the given month and year``" #: ../../library/datetime.rst:411 ../../library/datetime.rst:722 msgid "" "If an argument outside those ranges is given, :exc:`ValueError` is raised." msgstr "" +"Se um argumento fora desses intervalos for fornecido, :exc:`ValueError` é " +"levantado." #: ../../library/datetime.rst:414 ../../library/datetime.rst:727 msgid "Other constructors, all class methods:" -msgstr "" +msgstr "Outros construtores, todos os métodos de classe." #: ../../library/datetime.rst:418 msgid "" -"Return the current local date. This is equivalent to " -"``date.fromtimestamp(time.time())``." +"Return the current local date. This is equivalent to ``date." +"fromtimestamp(time.time())``." msgstr "" #: ../../library/datetime.rst:424 msgid "" "Return the local date corresponding to the POSIX timestamp, such as is " "returned by :func:`time.time`. This may raise :exc:`OverflowError`, if the " -"timestamp is out of the range of values supported by the platform C " -":c:func:`localtime` function, and :exc:`OSError` on :c:func:`localtime` " -"failure. It's common for this to be restricted to years from 1970 through " -"2038. Note that on non-POSIX systems that include leap seconds in their " -"notion of a timestamp, leap seconds are ignored by :meth:`fromtimestamp`." +"timestamp is out of the range of values supported by the platform C :c:func:" +"`localtime` function, and :exc:`OSError` on :c:func:`localtime` failure. " +"It's common for this to be restricted to years from 1970 through 2038. Note " +"that on non-POSIX systems that include leap seconds in their notion of a " +"timestamp, leap seconds are ignored by :meth:`fromtimestamp`." msgstr "" #: ../../library/datetime.rst:432 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " -"function. Raise :exc:`OSError` instead of :exc:`ValueError` on " -":c:func:`localtime` failure." +"function. Raise :exc:`OSError` instead of :exc:`ValueError` on :c:func:" +"`localtime` failure." msgstr "" +"Levanta :exc:`OverflowError` ao invés de :exc:`ValueError` se o carimbo de " +"data/hora estiver fora do intervalo de valores suportados pela plataforma C :" +"c:func:`localtime` função. Levanta :exc:`OSError` ao invés de :exc:" +"`ValueError` em falha de :c:func:`localtime` ." #: ../../library/datetime.rst:441 msgid "" "Return the date corresponding to the proleptic Gregorian ordinal, where " "January 1 of year 1 has ordinal 1. :exc:`ValueError` is raised unless ``1 " -"<= ordinal <= date.max.toordinal()``. For any date *d*, " -"``date.fromordinal(d.toordinal()) == d``." +"<= ordinal <= date.max.toordinal()``. For any date *d*, ``date.fromordinal(d." +"toordinal()) == d``." msgstr "" #: ../../library/datetime.rst:449 @@ -680,7 +748,7 @@ msgstr "" #: ../../library/datetime.rst:462 ../../library/datetime.rst:870 #: ../../library/datetime.rst:1439 ../../library/datetime.rst:2009 msgid "Class attributes:" -msgstr "" +msgstr "Atributos de classe:" #: ../../library/datetime.rst:466 msgid "The earliest representable date, ``date(MINYEAR, 1, 1)``." @@ -746,9 +814,9 @@ msgstr "" msgid "" "*date2* is moved forward in time if ``timedelta.days > 0``, or backward if " "``timedelta.days < 0``. Afterward ``date2 - date1 == timedelta.days``. " -"``timedelta.seconds`` and ``timedelta.microseconds`` are ignored. " -":exc:`OverflowError` is raised if ``date2.year`` would be smaller than " -":const:`MINYEAR` or larger than :const:`MAXYEAR`." +"``timedelta.seconds`` and ``timedelta.microseconds`` are ignored. :exc:" +"`OverflowError` is raised if ``date2.year`` would be smaller than :const:" +"`MINYEAR` or larger than :const:`MAXYEAR`." msgstr "" #: ../../library/datetime.rst:524 @@ -757,65 +825,65 @@ msgstr "" #: ../../library/datetime.rst:527 msgid "" -"This is exact, and cannot overflow. timedelta.seconds and " -"timedelta.microseconds are 0, and date2 + timedelta == date1 after." +"This is exact, and cannot overflow. timedelta.seconds and timedelta." +"microseconds are 0, and date2 + timedelta == date1 after." msgstr "" #: ../../library/datetime.rst:531 msgid "" -"In other words, ``date1 < date2`` if and only if ``date1.toordinal() < " -"date2.toordinal()``. Date comparison raises :exc:`TypeError` if the other " +"In other words, ``date1 < date2`` if and only if ``date1.toordinal() < date2." +"toordinal()``. Date comparison raises :exc:`TypeError` if the other " "comparand isn't also a :class:`date` object. However, ``NotImplemented`` is " "returned instead if the other comparand has a :meth:`timetuple` attribute. " "This hook gives other kinds of date objects a chance at implementing mixed-" "type comparison. If not, when a :class:`date` object is compared to an " -"object of a different type, :exc:`TypeError` is raised unless the comparison" -" is ``==`` or ``!=``. The latter cases return :const:`False` or " -":const:`True`, respectively." +"object of a different type, :exc:`TypeError` is raised unless the comparison " +"is ``==`` or ``!=``. The latter cases return :const:`False` or :const:" +"`True`, respectively." msgstr "" #: ../../library/datetime.rst:541 msgid "" -"Dates can be used as dictionary keys. In Boolean contexts, all :class:`date`" -" objects are considered to be true." +"Dates can be used as dictionary keys. In Boolean contexts, all :class:`date` " +"objects are considered to be true." msgstr "" #: ../../library/datetime.rst:548 msgid "" "Return a date with the same value, except for those parameters given new " -"values by whichever keyword arguments are specified. For example, if ``d ==" -" date(2002, 12, 31)``, then ``d.replace(day=26) == date(2002, 12, 26)``." +"values by whichever keyword arguments are specified. For example, if ``d == " +"date(2002, 12, 31)``, then ``d.replace(day=26) == date(2002, 12, 26)``." msgstr "" #: ../../library/datetime.rst:555 msgid "" -"Return a :class:`time.struct_time` such as returned by " -":func:`time.localtime`. The hours, minutes and seconds are 0, and the DST " -"flag is -1. ``d.timetuple()`` is equivalent to ``time.struct_time((d.year, " -"d.month, d.day, 0, 0, 0, d.weekday(), yday, -1))``, where ``yday = " -"d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number " -"within the current year starting with ``1`` for January 1st." +"Return a :class:`time.struct_time` such as returned by :func:`time." +"localtime`. The hours, minutes and seconds are 0, and the DST flag is -1. " +"``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d.month, d." +"day, 0, 0, 0, d.weekday(), yday, -1))``, where ``yday = d.toordinal() - " +"date(d.year, 1, 1).toordinal() + 1`` is the day number within the current " +"year starting with ``1`` for January 1st." msgstr "" #: ../../library/datetime.rst:565 msgid "" "Return the proleptic Gregorian ordinal of the date, where January 1 of year " -"1 has ordinal 1. For any :class:`date` object *d*, " -"``date.fromordinal(d.toordinal()) == d``." +"1 has ordinal 1. For any :class:`date` object *d*, ``date.fromordinal(d." +"toordinal()) == d``." msgstr "" #: ../../library/datetime.rst:572 msgid "" -"Return the day of the week as an integer, where Monday is 0 and Sunday is 6." -" For example, ``date(2002, 12, 4).weekday() == 2``, a Wednesday. See also " -":meth:`isoweekday`." +"Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " +"For example, ``date(2002, 12, 4).weekday() == 2``, a Wednesday. See also :" +"meth:`isoweekday`." msgstr "" #: ../../library/datetime.rst:579 msgid "" -"Return the day of the week as an integer, where Monday is 1 and Sunday is 7." -" For example, ``date(2002, 12, 4).isoweekday() == 3``, a Wednesday. See also" -" :meth:`weekday`, :meth:`isocalendar`." +"Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " +"For example, ``date(2002, 12, 4).isoweekday() == 3``, a Wednesday. See also :" +"meth:`weekday`, :meth:`isocalendar`." msgstr "" #: ../../library/datetime.rst:586 @@ -842,14 +910,14 @@ msgstr "" msgid "" "For example, 2004 begins on a Thursday, so the first week of ISO year 2004 " "begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan 2004, so that " -"``date(2003, 12, 29).isocalendar() == (2004, 1, 1)`` and ``date(2004, 1, " -"4).isocalendar() == (2004, 1, 7)``." +"``date(2003, 12, 29).isocalendar() == (2004, 1, 1)`` and ``date(2004, 1, 4)." +"isocalendar() == (2004, 1, 7)``." msgstr "" #: ../../library/datetime.rst:605 msgid "" -"Return a string representing the date in ISO 8601 format, 'YYYY-MM-DD'. For" -" example, ``date(2002, 12, 4).isoformat() == '2002-12-04'``." +"Return a string representing the date in ISO 8601 format, 'YYYY-MM-DD'. For " +"example, ``date(2002, 12, 4).isoformat() == '2002-12-04'``." msgstr "" #: ../../library/datetime.rst:611 @@ -858,11 +926,11 @@ msgstr "" #: ../../library/datetime.rst:616 msgid "" -"Return a string representing the date, for example ``date(2002, 12, " -"4).ctime() == 'Wed Dec 4 00:00:00 2002'``. ``d.ctime()`` is equivalent to " -"``time.ctime(time.mktime(d.timetuple()))`` on platforms where the native C " -":c:func:`ctime` function (which :func:`time.ctime` invokes, but which " -":meth:`date.ctime` does not invoke) conforms to the C standard." +"Return a string representing the date, for example ``date(2002, 12, 4)." +"ctime() == 'Wed Dec 4 00:00:00 2002'``. ``d.ctime()`` is equivalent to " +"``time.ctime(time.mktime(d.timetuple()))`` on platforms where the native C :" +"c:func:`ctime` function (which :func:`time.ctime` invokes, but which :meth:" +"`date.ctime` does not invoke) conforms to the C standard." msgstr "" #: ../../library/datetime.rst:625 @@ -876,8 +944,8 @@ msgstr "" #: ../../library/datetime.rst:633 msgid "" "Same as :meth:`.date.strftime`. This makes it possible to specify a format " -"string for a :class:`.date` object in :ref:`formatted string literals " -"` and when using :meth:`str.format`. For a complete list of " +"string for a :class:`.date` object in :ref:`formatted string literals ` and when using :meth:`str.format`. For a complete list of " "formatting directives, see :ref:`strftime-strptime-behavior`." msgstr "" @@ -896,10 +964,10 @@ msgstr "" #: ../../library/datetime.rst:699 msgid "" "A :class:`.datetime` object is a single object containing all the " -"information from a :class:`date` object and a :class:`.time` object. Like a" -" :class:`date` object, :class:`.datetime` assumes the current Gregorian " -"calendar extended in both directions; like a time object, :class:`.datetime`" -" assumes there are exactly 3600\\*24 seconds in every day." +"information from a :class:`date` object and a :class:`.time` object. Like " +"a :class:`date` object, :class:`.datetime` assumes the current Gregorian " +"calendar extended in both directions; like a time object, :class:`.datetime` " +"assumes there are exactly 3600\\*24 seconds in every day." msgstr "" #: ../../library/datetime.rst:705 @@ -953,40 +1021,39 @@ msgstr "" #: ../../library/datetime.rst:731 msgid "" "Return the current local datetime, with :attr:`.tzinfo` ``None``. This is " -"equivalent to ``datetime.fromtimestamp(time.time())``. See also :meth:`now`," -" :meth:`fromtimestamp`." +"equivalent to ``datetime.fromtimestamp(time.time())``. See also :meth:" +"`now`, :meth:`fromtimestamp`." msgstr "" #: ../../library/datetime.rst:738 msgid "" "Return the current local date and time. If optional argument *tz* is " "``None`` or not specified, this is like :meth:`today`, but, if possible, " -"supplies more precision than can be gotten from going through a " -":func:`time.time` timestamp (for example, this may be possible on platforms " -"supplying the C :c:func:`gettimeofday` function)." +"supplies more precision than can be gotten from going through a :func:`time." +"time` timestamp (for example, this may be possible on platforms supplying " +"the C :c:func:`gettimeofday` function)." msgstr "" #: ../../library/datetime.rst:744 msgid "" "If *tz* is not ``None``, it must be an instance of a :class:`tzinfo` " "subclass, and the current date and time are converted to *tz*’s time zone. " -"In this case the result is equivalent to " -"``tz.fromutc(datetime.utcnow().replace(tzinfo=tz))``. See also " -":meth:`today`, :meth:`utcnow`." +"In this case the result is equivalent to ``tz.fromutc(datetime.utcnow()." +"replace(tzinfo=tz))``. See also :meth:`today`, :meth:`utcnow`." msgstr "" #: ../../library/datetime.rst:752 msgid "" -"Return the current UTC date and time, with :attr:`.tzinfo` ``None``. This is" -" like :meth:`now`, but returns the current UTC date and time, as a naive " -":class:`.datetime` object. An aware current UTC datetime can be obtained by" -" calling ``datetime.now(timezone.utc)``. See also :meth:`now`." +"Return the current UTC date and time, with :attr:`.tzinfo` ``None``. This is " +"like :meth:`now`, but returns the current UTC date and time, as a naive :" +"class:`.datetime` object. An aware current UTC datetime can be obtained by " +"calling ``datetime.now(timezone.utc)``. See also :meth:`now`." msgstr "" #: ../../library/datetime.rst:759 msgid "" -"Return the local date and time corresponding to the POSIX timestamp, such as" -" is returned by :func:`time.time`. If optional argument *tz* is ``None`` or " +"Return the local date and time corresponding to the POSIX timestamp, such as " +"is returned by :func:`time.time`. If optional argument *tz* is ``None`` or " "not specified, the timestamp is converted to the platform's local date and " "time, and the returned :class:`.datetime` object is naive." msgstr "" @@ -995,48 +1062,46 @@ msgstr "" msgid "" "If *tz* is not ``None``, it must be an instance of a :class:`tzinfo` " "subclass, and the timestamp is converted to *tz*’s time zone. In this case " -"the result is equivalent to " -"``tz.fromutc(datetime.utcfromtimestamp(timestamp).replace(tzinfo=tz))``." +"the result is equivalent to ``tz.fromutc(datetime." +"utcfromtimestamp(timestamp).replace(tzinfo=tz))``." msgstr "" #: ../../library/datetime.rst:769 msgid "" ":meth:`fromtimestamp` may raise :exc:`OverflowError`, if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " -"or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or " -":c:func:`gmtime` failure. It's common for this to be restricted to years in " +"or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or :" +"c:func:`gmtime` failure. It's common for this to be restricted to years in " "1970 through 2038. Note that on non-POSIX systems that include leap seconds " -"in their notion of a timestamp, leap seconds are ignored by " -":meth:`fromtimestamp`, and then it's possible to have two timestamps " -"differing by a second that yield identical :class:`.datetime` objects. See " -"also :meth:`utcfromtimestamp`." +"in their notion of a timestamp, leap seconds are ignored by :meth:" +"`fromtimestamp`, and then it's possible to have two timestamps differing by " +"a second that yield identical :class:`.datetime` objects. See also :meth:" +"`utcfromtimestamp`." msgstr "" #: ../../library/datetime.rst:779 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`localtime` " -"or :c:func:`gmtime` functions. Raise :exc:`OSError` instead of " -":exc:`ValueError` on :c:func:`localtime` or :c:func:`gmtime` failure." +"or :c:func:`gmtime` functions. Raise :exc:`OSError` instead of :exc:" +"`ValueError` on :c:func:`localtime` or :c:func:`gmtime` failure." msgstr "" #: ../../library/datetime.rst:786 -msgid "" -":meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1." +msgid ":meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1." msgstr "" #: ../../library/datetime.rst:791 msgid "" -"Return the UTC :class:`.datetime` corresponding to the POSIX timestamp, with" -" :attr:`.tzinfo` ``None``. This may raise :exc:`OverflowError`, if the " -"timestamp is out of the range of values supported by the platform C " -":c:func:`gmtime` function, and :exc:`OSError` on :c:func:`gmtime` failure. " -"It's common for this to be restricted to years in 1970 through 2038." +"Return the UTC :class:`.datetime` corresponding to the POSIX timestamp, " +"with :attr:`.tzinfo` ``None``. This may raise :exc:`OverflowError`, if the " +"timestamp is out of the range of values supported by the platform C :c:func:" +"`gmtime` function, and :exc:`OSError` on :c:func:`gmtime` failure. It's " +"common for this to be restricted to years in 1970 through 2038." msgstr "" #: ../../library/datetime.rst:797 -msgid "" -"To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::" +msgid "To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::" msgstr "" #: ../../library/datetime.rst:801 @@ -1047,16 +1112,16 @@ msgstr "" #: ../../library/datetime.rst:806 msgid "" -"except the latter formula always supports the full years range: between " -":const:`MINYEAR` and :const:`MAXYEAR` inclusive." +"except the latter formula always supports the full years range: between :" +"const:`MINYEAR` and :const:`MAXYEAR` inclusive." msgstr "" #: ../../library/datetime.rst:809 msgid "" "Raise :exc:`OverflowError` instead of :exc:`ValueError` if the timestamp is " "out of the range of values supported by the platform C :c:func:`gmtime` " -"function. Raise :exc:`OSError` instead of :exc:`ValueError` on " -":c:func:`gmtime` failure." +"function. Raise :exc:`OSError` instead of :exc:`ValueError` on :c:func:" +"`gmtime` failure." msgstr "" #: ../../library/datetime.rst:818 @@ -1071,16 +1136,16 @@ msgstr "" #: ../../library/datetime.rst:826 msgid "" "Return a new :class:`.datetime` object whose date components are equal to " -"the given :class:`date` object's, and whose time components are equal to the" -" given :class:`.time` object's. If the *tzinfo* argument is provided, its " +"the given :class:`date` object's, and whose time components are equal to the " +"given :class:`.time` object's. If the *tzinfo* argument is provided, its " "value is used to set the :attr:`.tzinfo` attribute of the result, otherwise " "the :attr:`~.time.tzinfo` attribute of the *time* argument is used." msgstr "" #: ../../library/datetime.rst:833 msgid "" -"For any :class:`.datetime` object *d*, ``d == datetime.combine(d.date(), " -"d.time(), d.tzinfo)``. If date is a :class:`.datetime` object, its time " +"For any :class:`.datetime` object *d*, ``d == datetime.combine(d.date(), d." +"time(), d.tzinfo)``. If date is a :class:`.datetime` object, its time " "components and :attr:`.tzinfo` attributes are ignored." msgstr "" @@ -1100,20 +1165,20 @@ msgstr "" #: ../../library/datetime.rst:852 msgid "" "This does not support parsing arbitrary ISO 8601 strings - it is only " -"intended as the inverse operation of :meth:`datetime.isoformat`. A more " -"full-featured ISO 8601 parser, ``dateutil.parser.isoparse`` is available in " -"the third-party package `dateutil " -"`_." +"intended as the inverse operation of :meth:`datetime.isoformat`. A more full-" +"featured ISO 8601 parser, ``dateutil.parser.isoparse`` is available in the " +"third-party package `dateutil `_." msgstr "" #: ../../library/datetime.rst:861 msgid "" -"Return a :class:`.datetime` corresponding to *date_string*, parsed according" -" to *format*. This is equivalent to ``datetime(*(time.strptime(date_string," -" format)[0:6]))``. :exc:`ValueError` is raised if the date_string and format" -" can't be parsed by :func:`time.strptime` or if it returns a value which " -"isn't a time tuple. For a complete list of formatting directives, see :ref" -":`strftime-strptime-behavior`." +"Return a :class:`.datetime` corresponding to *date_string*, parsed according " +"to *format*. This is equivalent to ``datetime(*(time.strptime(date_string, " +"format)[0:6]))``. :exc:`ValueError` is raised if the date_string and format " +"can't be parsed by :func:`time.strptime` or if it returns a value which " +"isn't a time tuple. For a complete list of formatting directives, see :ref:" +"`strftime-strptime-behavior`." msgstr "" #: ../../library/datetime.rst:874 @@ -1124,8 +1189,8 @@ msgstr "" #: ../../library/datetime.rst:880 msgid "" -"The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23," -" 59, 59, 999999, tzinfo=None)``." +"The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, " +"59, 59, 999999, tzinfo=None)``." msgstr "" #: ../../library/datetime.rst:886 @@ -1155,8 +1220,8 @@ msgstr "" #: ../../library/datetime.rst:935 ../../library/datetime.rst:1489 msgid "" -"In ``[0, 1]``. Used to disambiguate wall times during a repeated interval." -" (A repeated interval occurs when clocks are rolled back at the end of " +"In ``[0, 1]``. Used to disambiguate wall times during a repeated interval. " +"(A repeated interval occurs when clocks are rolled back at the end of " "daylight saving time or when the UTC offset for the current zone is " "decreased for political reasons.) The value 0 (1) represents the earlier " "(later) of the two moments with the same wall time representation." @@ -1198,17 +1263,17 @@ msgid "" "datetime2 is a duration of timedelta removed from datetime1, moving forward " "in time if ``timedelta.days`` > 0, or backward if ``timedelta.days`` < 0. " "The result has the same :attr:`~.datetime.tzinfo` attribute as the input " -"datetime, and datetime2 - datetime1 == timedelta after. :exc:`OverflowError`" -" is raised if datetime2.year would be smaller than :const:`MINYEAR` or " -"larger than :const:`MAXYEAR`. Note that no time zone adjustments are done " -"even if the input is an aware object." +"datetime, and datetime2 - datetime1 == timedelta after. :exc:`OverflowError` " +"is raised if datetime2.year would be smaller than :const:`MINYEAR` or larger " +"than :const:`MAXYEAR`. Note that no time zone adjustments are done even if " +"the input is an aware object." msgstr "" #: ../../library/datetime.rst:968 msgid "" "Computes the datetime2 such that datetime2 + timedelta == datetime1. As for " -"addition, the result has the same :attr:`~.datetime.tzinfo` attribute as the" -" input datetime, and no time zone adjustments are done even if the input is " +"addition, the result has the same :attr:`~.datetime.tzinfo` attribute as the " +"input datetime, and no time zone adjustments are done even if the input is " "aware." msgstr "" @@ -1221,20 +1286,19 @@ msgstr "" #: ../../library/datetime.rst:977 msgid "" -"If both are naive, or both are aware and have the same " -":attr:`~.datetime.tzinfo` attribute, the :attr:`~.datetime.tzinfo` " -"attributes are ignored, and the result is a :class:`timedelta` object *t* " -"such that ``datetime2 + t == datetime1``. No time zone adjustments are done" -" in this case." +"If both are naive, or both are aware and have the same :attr:`~.datetime." +"tzinfo` attribute, the :attr:`~.datetime.tzinfo` attributes are ignored, and " +"the result is a :class:`timedelta` object *t* such that ``datetime2 + t == " +"datetime1``. No time zone adjustments are done in this case." msgstr "" #: ../../library/datetime.rst:982 msgid "" "If both are aware and have different :attr:`~.datetime.tzinfo` attributes, " "``a-b`` acts as if *a* and *b* were first converted to naive UTC datetimes " -"first. The result is ``(a.replace(tzinfo=None) - a.utcoffset()) - " -"(b.replace(tzinfo=None) - b.utcoffset())`` except that the implementation " -"never overflows." +"first. The result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b." +"replace(tzinfo=None) - b.utcoffset())`` except that the implementation never " +"overflows." msgstr "" #: ../../library/datetime.rst:988 @@ -1245,19 +1309,19 @@ msgstr "" #: ../../library/datetime.rst:991 msgid "" -"If one comparand is naive and the other is aware, :exc:`TypeError` is raised" -" if an order comparison is attempted. For equality comparisons, naive " +"If one comparand is naive and the other is aware, :exc:`TypeError` is raised " +"if an order comparison is attempted. For equality comparisons, naive " "instances are never equal to aware instances." msgstr "" #: ../../library/datetime.rst:995 msgid "" "If both comparands are aware, and have the same :attr:`~.datetime.tzinfo` " -"attribute, the common :attr:`~.datetime.tzinfo` attribute is ignored and the" -" base datetimes are compared. If both comparands are aware and have " +"attribute, the common :attr:`~.datetime.tzinfo` attribute is ignored and the " +"base datetimes are compared. If both comparands are aware and have " "different :attr:`~.datetime.tzinfo` attributes, the comparands are first " -"adjusted by subtracting their UTC offsets (obtained from " -"``self.utcoffset()``)." +"adjusted by subtracting their UTC offsets (obtained from ``self." +"utcoffset()``)." msgstr "" #: ../../library/datetime.rst:1001 @@ -1269,14 +1333,14 @@ msgstr "" #: ../../library/datetime.rst:1007 msgid "" "In order to stop comparison from falling back to the default scheme of " -"comparing object addresses, datetime comparison normally raises " -":exc:`TypeError` if the other comparand isn't also a :class:`.datetime` " -"object. However, ``NotImplemented`` is returned instead if the other " -"comparand has a :meth:`timetuple` attribute. This hook gives other kinds of" -" date objects a chance at implementing mixed-type comparison. If not, when " -"a :class:`.datetime` object is compared to an object of a different type, " -":exc:`TypeError` is raised unless the comparison is ``==`` or ``!=``. The " -"latter cases return :const:`False` or :const:`True`, respectively." +"comparing object addresses, datetime comparison normally raises :exc:" +"`TypeError` if the other comparand isn't also a :class:`.datetime` object. " +"However, ``NotImplemented`` is returned instead if the other comparand has " +"a :meth:`timetuple` attribute. This hook gives other kinds of date objects " +"a chance at implementing mixed-type comparison. If not, when a :class:`." +"datetime` object is compared to an object of a different type, :exc:" +"`TypeError` is raised unless the comparison is ``==`` or ``!=``. The latter " +"cases return :const:`False` or :const:`True`, respectively." msgstr "" #: ../../library/datetime.rst:1017 @@ -1291,8 +1355,8 @@ msgstr "" #: ../../library/datetime.rst:1029 msgid "" -"Return :class:`.time` object with same hour, minute, second, microsecond and" -" fold. :attr:`.tzinfo` is ``None``. See also method :meth:`timetz`." +"Return :class:`.time` object with same hour, minute, second, microsecond and " +"fold. :attr:`.tzinfo` is ``None``. See also method :meth:`timetz`." msgstr "" #: ../../library/datetime.rst:1032 ../../library/datetime.rst:1041 @@ -1322,8 +1386,8 @@ msgstr "" #: ../../library/datetime.rst:1064 msgid "" -"If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and its" -" :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If " +"If provided, *tz* must be an instance of a :class:`tzinfo` subclass, and " +"its :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. If " "*self* is naive, it is presumed to represent time in the system timezone." msgstr "" @@ -1340,23 +1404,23 @@ msgid "" "If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no " "adjustment of date or time data is performed. Else the result is local time " "in the timezone *tz*, representing the same UTC time as *self*: after " -"``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have the same" -" date and time data as ``dt - dt.utcoffset()``." +"``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have the same " +"date and time data as ``dt - dt.utcoffset()``." msgstr "" #: ../../library/datetime.rst:1079 msgid "" "If you merely want to attach a time zone object *tz* to a datetime *dt* " -"without adjustment of date and time data, use ``dt.replace(tzinfo=tz)``. If" -" you merely want to remove the time zone object from an aware datetime *dt* " +"without adjustment of date and time data, use ``dt.replace(tzinfo=tz)``. If " +"you merely want to remove the time zone object from an aware datetime *dt* " "without conversion of date and time data, use ``dt.replace(tzinfo=None)``." msgstr "" #: ../../library/datetime.rst:1084 msgid "" -"Note that the default :meth:`tzinfo.fromutc` method can be overridden in a " -":class:`tzinfo` subclass to affect the result returned by " -":meth:`astimezone`. Ignoring error cases, :meth:`astimezone` acts like::" +"Note that the default :meth:`tzinfo.fromutc` method can be overridden in a :" +"class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`. " +"Ignoring error cases, :meth:`astimezone` acts like::" msgstr "" #: ../../library/datetime.rst:1096 @@ -1371,10 +1435,9 @@ msgstr "" #: ../../library/datetime.rst:1106 msgid "" -"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns " -"``self.tzinfo.utcoffset(self)``, and raises an exception if the latter " -"doesn't return ``None`` or a :class:`timedelta` object with magnitude less " -"than one day." +"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." +"utcoffset(self)``, and raises an exception if the latter doesn't return " +"``None`` or a :class:`timedelta` object with magnitude less than one day." msgstr "" #: ../../library/datetime.rst:1110 ../../library/datetime.rst:1630 @@ -1385,10 +1448,9 @@ msgstr "" #: ../../library/datetime.rst:1116 msgid "" -"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns " -"``self.tzinfo.dst(self)``, and raises an exception if the latter doesn't " -"return ``None`` or a :class:`timedelta` object with magnitude less than one " -"day." +"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." +"dst(self)``, and raises an exception if the latter doesn't return ``None`` " +"or a :class:`timedelta` object with magnitude less than one day." msgstr "" #: ../../library/datetime.rst:1120 ../../library/datetime.rst:1640 @@ -1398,52 +1460,51 @@ msgstr "" #: ../../library/datetime.rst:1126 msgid "" -"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns " -"``self.tzinfo.tzname(self)``, raises an exception if the latter doesn't " -"return ``None`` or a string object," +"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." +"tzname(self)``, raises an exception if the latter doesn't return ``None`` or " +"a string object," msgstr "" #: ../../library/datetime.rst:1133 msgid "" -"Return a :class:`time.struct_time` such as returned by " -":func:`time.localtime`. ``d.timetuple()`` is equivalent to " -"``time.struct_time((d.year, d.month, d.day, d.hour, d.minute, d.second, " -"d.weekday(), yday, dst))``, where ``yday = d.toordinal() - date(d.year, 1, " -"1).toordinal() + 1`` is the day number within the current year starting with" -" ``1`` for January 1st. The :attr:`tm_isdst` flag of the result is set " -"according to the :meth:`dst` method: :attr:`.tzinfo` is ``None`` or " -":meth:`dst` returns ``None``, :attr:`tm_isdst` is set to ``-1``; else if " -":meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``; else" -" :attr:`tm_isdst` is set to ``0``." +"Return a :class:`time.struct_time` such as returned by :func:`time." +"localtime`. ``d.timetuple()`` is equivalent to ``time.struct_time((d.year, d." +"month, d.day, d.hour, d.minute, d.second, d.weekday(), yday, dst))``, where " +"``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day " +"number within the current year starting with ``1`` for January 1st. The :" +"attr:`tm_isdst` flag of the result is set according to the :meth:`dst` " +"method: :attr:`.tzinfo` is ``None`` or :meth:`dst` returns ``None``, :attr:" +"`tm_isdst` is set to ``-1``; else if :meth:`dst` returns a non-zero value, :" +"attr:`tm_isdst` is set to ``1``; else :attr:`tm_isdst` is set to ``0``." msgstr "" #: ../../library/datetime.rst:1146 msgid "" -"If :class:`.datetime` instance *d* is naive, this is the same as " -"``d.timetuple()`` except that :attr:`tm_isdst` is forced to 0 regardless of " -"what ``d.dst()`` returns. DST is never in effect for a UTC time." +"If :class:`.datetime` instance *d* is naive, this is the same as ``d." +"timetuple()`` except that :attr:`tm_isdst` is forced to 0 regardless of what " +"``d.dst()`` returns. DST is never in effect for a UTC time." msgstr "" #: ../../library/datetime.rst:1150 msgid "" -"If *d* is aware, *d* is normalized to UTC time, by subtracting " -"``d.utcoffset()``, and a :class:`time.struct_time` for the normalized time " -"is returned. :attr:`tm_isdst` is forced to 0. Note that an " -":exc:`OverflowError` may be raised if *d*.year was ``MINYEAR`` or " -"``MAXYEAR`` and UTC adjustment spills over a year boundary." +"If *d* is aware, *d* is normalized to UTC time, by subtracting ``d." +"utcoffset()``, and a :class:`time.struct_time` for the normalized time is " +"returned. :attr:`tm_isdst` is forced to 0. Note that an :exc:" +"`OverflowError` may be raised if *d*.year was ``MINYEAR`` or ``MAXYEAR`` and " +"UTC adjustment spills over a year boundary." msgstr "" #: ../../library/datetime.rst:1160 msgid "" -"Return the proleptic Gregorian ordinal of the date. The same as " -"``self.date().toordinal()``." +"Return the proleptic Gregorian ordinal of the date. The same as ``self." +"date().toordinal()``." msgstr "" #: ../../library/datetime.rst:1165 msgid "" "Return POSIX timestamp corresponding to the :class:`.datetime` instance. " -"The return value is a :class:`float` similar to that returned by " -":func:`time.time`." +"The return value is a :class:`float` similar to that returned by :func:`time." +"time`." msgstr "" #: ../../library/datetime.rst:1169 @@ -1451,8 +1512,8 @@ msgid "" "Naive :class:`.datetime` instances are assumed to represent local time and " "this method relies on the platform C :c:func:`mktime` function to perform " "the conversion. Since :class:`.datetime` supports wider range of values " -"than :c:func:`mktime` on many platforms, this method may raise " -":exc:`OverflowError` for times far in the past or far in the future." +"than :c:func:`mktime` on many platforms, this method may raise :exc:" +"`OverflowError` for times far in the past or far in the future." msgstr "" #: ../../library/datetime.rst:1176 @@ -1468,9 +1529,9 @@ msgstr "" #: ../../library/datetime.rst:1189 msgid "" -"There is no method to obtain the POSIX timestamp directly from a naive " -":class:`.datetime` instance representing UTC time. If your application uses" -" this convention and your system timezone is not set to UTC, you can obtain " +"There is no method to obtain the POSIX timestamp directly from a naive :" +"class:`.datetime` instance representing UTC time. If your application uses " +"this convention and your system timezone is not set to UTC, you can obtain " "the POSIX timestamp by supplying ``tzinfo=timezone.utc``::" msgstr "" @@ -1480,15 +1541,15 @@ msgstr "" #: ../../library/datetime.rst:1203 msgid "" -"Return the day of the week as an integer, where Monday is 0 and Sunday is 6." -" The same as ``self.date().weekday()``. See also :meth:`isoweekday`." +"Return the day of the week as an integer, where Monday is 0 and Sunday is 6. " +"The same as ``self.date().weekday()``. See also :meth:`isoweekday`." msgstr "" #: ../../library/datetime.rst:1209 msgid "" -"Return the day of the week as an integer, where Monday is 1 and Sunday is 7." -" The same as ``self.date().isoweekday()``. See also :meth:`weekday`, " -":meth:`isocalendar`." +"Return the day of the week as an integer, where Monday is 1 and Sunday is 7. " +"The same as ``self.date().isoweekday()``. See also :meth:`weekday`, :meth:" +"`isocalendar`." msgstr "" #: ../../library/datetime.rst:1216 @@ -1506,8 +1567,8 @@ msgstr "" #: ../../library/datetime.rst:1226 msgid "" "If :meth:`utcoffset` does not return ``None``, a string is appended, giving " -"the UTC offset: YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]] or, if " -":attr:`microsecond` is 0 YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]." +"the UTC offset: YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]] or, if :attr:" +"`microsecond` is 0 YYYY-MM-DDTHH:MM:SS+HH:MM[:SS[.ffffff]]." msgstr "" #: ../../library/datetime.rst:1231 @@ -1519,8 +1580,8 @@ msgstr "" #: ../../library/datetime.rst:1241 ../../library/datetime.rst:1569 msgid "" "The optional argument *timespec* specifies the number of additional " -"components of the time to include (the default is ``'auto'``). It can be one" -" of the following:" +"components of the time to include (the default is ``'auto'``). It can be one " +"of the following:" msgstr "" #: ../../library/datetime.rst:1245 ../../library/datetime.rst:1573 @@ -1534,8 +1595,7 @@ msgid "``'hours'``: Include the :attr:`hour` in the two-digit HH format." msgstr "" #: ../../library/datetime.rst:1248 ../../library/datetime.rst:1576 -msgid "" -"``'minutes'``: Include :attr:`hour` and :attr:`minute` in HH:MM format." +msgid "``'minutes'``: Include :attr:`hour` and :attr:`minute` in HH:MM format." msgstr "" #: ../../library/datetime.rst:1249 ../../library/datetime.rst:1577 @@ -1568,25 +1628,24 @@ msgstr "" #: ../../library/datetime.rst:1275 msgid "" -"For a :class:`.datetime` instance *d*, ``str(d)`` is equivalent to " -"``d.isoformat(' ')``." +"For a :class:`.datetime` instance *d*, ``str(d)`` is equivalent to ``d." +"isoformat(' ')``." msgstr "" #: ../../library/datetime.rst:1281 msgid "" -"Return a string representing the date and time, for example ``datetime(2002," -" 12, 4, 20, 30, 40).ctime() == 'Wed Dec 4 20:30:40 2002'``. ``d.ctime()`` " -"is equivalent to ``time.ctime(time.mktime(d.timetuple()))`` on platforms " -"where the native C :c:func:`ctime` function (which :func:`time.ctime` " -"invokes, but which :meth:`datetime.ctime` does not invoke) conforms to the C" -" standard." +"Return a string representing the date and time, for example ``datetime(2002, " +"12, 4, 20, 30, 40).ctime() == 'Wed Dec 4 20:30:40 2002'``. ``d.ctime()`` is " +"equivalent to ``time.ctime(time.mktime(d.timetuple()))`` on platforms where " +"the native C :c:func:`ctime` function (which :func:`time.ctime` invokes, but " +"which :meth:`datetime.ctime` does not invoke) conforms to the C standard." msgstr "" #: ../../library/datetime.rst:1290 msgid "" "Return a string representing the date and time, controlled by an explicit " -"format string. For a complete list of formatting directives, see :ref" -":`strftime-strptime-behavior`." +"format string. For a complete list of formatting directives, see :ref:" +"`strftime-strptime-behavior`." msgstr "" #: ../../library/datetime.rst:1297 @@ -1617,8 +1676,8 @@ msgstr "" #: ../../library/datetime.rst:1426 msgid "" -"All arguments are optional. *tzinfo* may be ``None``, or an instance of a " -":class:`tzinfo` subclass. The remaining arguments must be integers in the " +"All arguments are optional. *tzinfo* may be ``None``, or an instance of a :" +"class:`tzinfo` subclass. The remaining arguments must be integers in the " "following ranges:" msgstr "" @@ -1639,8 +1698,8 @@ msgstr "" #: ../../library/datetime.rst:1454 msgid "" "The smallest possible difference between non-equal :class:`.time` objects, " -"``timedelta(microseconds=1)``, although note that arithmetic on " -":class:`.time` objects is not supported." +"``timedelta(microseconds=1)``, although note that arithmetic on :class:`." +"time` objects is not supported." msgstr "" #: ../../library/datetime.rst:1483 @@ -1651,8 +1710,8 @@ msgstr "" #: ../../library/datetime.rst:1500 msgid "" -"comparison of :class:`.time` to :class:`.time`, where *a* is considered less" -" than *b* when *a* precedes *b* in time. If one comparand is naive and the " +"comparison of :class:`.time` to :class:`.time`, where *a* is considered less " +"than *b* when *a* precedes *b* in time. If one comparand is naive and the " "other is aware, :exc:`TypeError` is raised if an order comparison is " "attempted. For equality comparisons, naive instances are never equal to " "aware instances." @@ -1661,14 +1720,14 @@ msgstr "" #: ../../library/datetime.rst:1505 msgid "" "If both comparands are aware, and have the same :attr:`~time.tzinfo` " -"attribute, the common :attr:`~time.tzinfo` attribute is ignored and the base" -" times are compared. If both comparands are aware and have different " -":attr:`~time.tzinfo` attributes, the comparands are first adjusted by " -"subtracting their UTC offsets (obtained from ``self.utcoffset()``). In order" -" to stop mixed-type comparisons from falling back to the default comparison " -"by object address, when a :class:`.time` object is compared to an object of " -"a different type, :exc:`TypeError` is raised unless the comparison is ``==``" -" or ``!=``. The latter cases return :const:`False` or :const:`True`, " +"attribute, the common :attr:`~time.tzinfo` attribute is ignored and the base " +"times are compared. If both comparands are aware and have different :attr:" +"`~time.tzinfo` attributes, the comparands are first adjusted by subtracting " +"their UTC offsets (obtained from ``self.utcoffset()``). In order to stop " +"mixed-type comparisons from falling back to the default comparison by object " +"address, when a :class:`.time` object is compared to an object of a " +"different type, :exc:`TypeError` is raised unless the comparison is ``==`` " +"or ``!=``. The latter cases return :const:`False` or :const:`True`, " "respectively." msgstr "" @@ -1688,16 +1747,15 @@ msgstr "" #: ../../library/datetime.rst:1523 msgid "" -"In boolean contexts, a :class:`.time` object is always considered to be " -"true." +"In boolean contexts, a :class:`.time` object is always considered to be true." msgstr "" #: ../../library/datetime.rst:1525 msgid "" "Before Python 3.5, a :class:`.time` object was considered to be false if it " -"represented midnight in UTC. This behavior was considered obscure and " -"error-prone and has been removed in Python 3.5. See :issue:`13936` for full" -" details." +"represented midnight in UTC. This behavior was considered obscure and error-" +"prone and has been removed in Python 3.5. See :issue:`13936` for full " +"details." msgstr "" #: ../../library/datetime.rst:1532 @@ -1708,8 +1766,8 @@ msgstr "" msgid "" "Return a :class:`time` corresponding to a *time_string* in one of the " "formats emitted by :meth:`time.isoformat`. Specifically, this function " -"supports strings in the format(s) " -"``HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]``." +"supports strings in the format(s) ``HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[." +"ffffff]]]``." msgstr "" #: ../../library/datetime.rst:1542 @@ -1730,9 +1788,9 @@ msgstr "" msgid "" "Return a string representing the time in ISO 8601 format, HH:MM:SS.ffffff " "or, if :attr:`microsecond` is 0, HH:MM:SS If :meth:`utcoffset` does not " -"return ``None``, a string is appended, giving the UTC offset: " -"HH:MM:SS.ffffff+HH:MM[:SS[.ffffff]] or, if self.microsecond is 0, " -"HH:MM:SS+HH:MM[:SS[.ffffff]]." +"return ``None``, a string is appended, giving the UTC offset: HH:MM:SS.ffffff" +"+HH:MM[:SS[.ffffff]] or, if self.microsecond is 0, HH:MM:SS+HH:MM[:SS[." +"ffffff]]." msgstr "" #: ../../library/datetime.rst:1605 @@ -1749,32 +1807,30 @@ msgstr "" #: ../../library/datetime.rst:1617 msgid "" "Same as :meth:`.time.strftime`. This makes it possible to specify a format " -"string for a :class:`.time` object in :ref:`formatted string literals " -"` and when using :meth:`str.format`. For a complete list of " +"string for a :class:`.time` object in :ref:`formatted string literals ` and when using :meth:`str.format`. For a complete list of " "formatting directives, see :ref:`strftime-strptime-behavior`." msgstr "" #: ../../library/datetime.rst:1626 msgid "" -"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns " -"``self.tzinfo.utcoffset(None)``, and raises an exception if the latter " -"doesn't return ``None`` or a :class:`timedelta` object with magnitude less " -"than one day." +"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." +"utcoffset(None)``, and raises an exception if the latter doesn't return " +"``None`` or a :class:`timedelta` object with magnitude less than one day." msgstr "" #: ../../library/datetime.rst:1636 msgid "" -"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns " -"``self.tzinfo.dst(None)``, and raises an exception if the latter doesn't " -"return ``None``, or a :class:`timedelta` object with magnitude less than one" -" day." +"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." +"dst(None)``, and raises an exception if the latter doesn't return ``None``, " +"or a :class:`timedelta` object with magnitude less than one day." msgstr "" #: ../../library/datetime.rst:1645 msgid "" -"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns " -"``self.tzinfo.tzname(None)``, or raises an exception if the latter doesn't " -"return ``None`` or a string object." +"If :attr:`.tzinfo` is ``None``, returns ``None``, else returns ``self.tzinfo." +"tzname(None)``, or raises an exception if the latter doesn't return ``None`` " +"or a string object." msgstr "" #: ../../library/datetime.rst:1649 @@ -1789,8 +1845,8 @@ msgstr "" msgid "" "This is an abstract base class, meaning that this class should not be " "instantiated directly. You need to derive a concrete subclass, and (at " -"least) supply implementations of the standard :class:`tzinfo` methods needed" -" by the :class:`.datetime` methods you use. The :mod:`datetime` module " +"least) supply implementations of the standard :class:`tzinfo` methods needed " +"by the :class:`.datetime` methods you use. The :mod:`datetime` module " "supplies a simple concrete subclass of :class:`tzinfo`, :class:`timezone`, " "which can represent timezones with fixed offset from UTC such as UTC itself " "or North American EST and EDT." @@ -1798,74 +1854,74 @@ msgstr "" #: ../../library/datetime.rst:1692 msgid "" -"An instance of (a concrete subclass of) :class:`tzinfo` can be passed to the" -" constructors for :class:`.datetime` and :class:`.time` objects. The latter " -"objects view their attributes as being in local time, and the " -":class:`tzinfo` object supports methods revealing offset of local time from " -"UTC, the name of the time zone, and DST offset, all relative to a date or " -"time object passed to them." +"An instance of (a concrete subclass of) :class:`tzinfo` can be passed to the " +"constructors for :class:`.datetime` and :class:`.time` objects. The latter " +"objects view their attributes as being in local time, and the :class:" +"`tzinfo` object supports methods revealing offset of local time from UTC, " +"the name of the time zone, and DST offset, all relative to a date or time " +"object passed to them." msgstr "" #: ../../library/datetime.rst:1698 msgid "" -"Special requirement for pickling: A :class:`tzinfo` subclass must have an " -":meth:`__init__` method that can be called with no arguments, else it can be" -" pickled but possibly not unpickled again. This is a technical requirement " +"Special requirement for pickling: A :class:`tzinfo` subclass must have an :" +"meth:`__init__` method that can be called with no arguments, else it can be " +"pickled but possibly not unpickled again. This is a technical requirement " "that may be relaxed in the future." msgstr "" #: ../../library/datetime.rst:1703 msgid "" "A concrete subclass of :class:`tzinfo` may need to implement the following " -"methods. Exactly which methods are needed depends on the uses made of aware" -" :mod:`datetime` objects. If in doubt, simply implement all of them." +"methods. Exactly which methods are needed depends on the uses made of " +"aware :mod:`datetime` objects. If in doubt, simply implement all of them." msgstr "" #: ../../library/datetime.rst:1710 msgid "" -"Return offset of local time from UTC, as a :class:`timedelta` object that is" -" positive east of UTC. If local time is west of UTC, this should be " +"Return offset of local time from UTC, as a :class:`timedelta` object that is " +"positive east of UTC. If local time is west of UTC, this should be " "negative. Note that this is intended to be the total offset from UTC; for " "example, if a :class:`tzinfo` object represents both time zone and DST " "adjustments, :meth:`utcoffset` should return their sum. If the UTC offset " -"isn't known, return ``None``. Else the value returned must be a " -":class:`timedelta` object strictly between ``-timedelta(hours=24)`` and " +"isn't known, return ``None``. Else the value returned must be a :class:" +"`timedelta` object strictly between ``-timedelta(hours=24)`` and " "``timedelta(hours=24)`` (the magnitude of the offset must be less than one " -"day). Most implementations of :meth:`utcoffset` will probably look like one" -" of these two::" +"day). Most implementations of :meth:`utcoffset` will probably look like one " +"of these two::" msgstr "" #: ../../library/datetime.rst:1724 msgid "" -"If :meth:`utcoffset` does not return ``None``, :meth:`dst` should not return" -" ``None`` either." +"If :meth:`utcoffset` does not return ``None``, :meth:`dst` should not return " +"``None`` either." msgstr "" #: ../../library/datetime.rst:1727 msgid "" -"The default implementation of :meth:`utcoffset` raises " -":exc:`NotImplementedError`." +"The default implementation of :meth:`utcoffset` raises :exc:" +"`NotImplementedError`." msgstr "" #: ../../library/datetime.rst:1736 msgid "" "Return the daylight saving time (DST) adjustment, as a :class:`timedelta` " "object or ``None`` if DST information isn't known. Return ``timedelta(0)`` " -"if DST is not in effect. If DST is in effect, return the offset as a " -":class:`timedelta` object (see :meth:`utcoffset` for details). Note that DST" -" offset, if applicable, has already been added to the UTC offset returned by" -" :meth:`utcoffset`, so there's no need to consult :meth:`dst` unless you're " -"interested in obtaining DST info separately. For example, " -":meth:`datetime.timetuple` calls its :attr:`~.datetime.tzinfo` attribute's " -":meth:`dst` method to determine how the :attr:`tm_isdst` flag should be set," -" and :meth:`tzinfo.fromutc` calls :meth:`dst` to account for DST changes " -"when crossing time zones." +"if DST is not in effect. If DST is in effect, return the offset as a :class:" +"`timedelta` object (see :meth:`utcoffset` for details). Note that DST " +"offset, if applicable, has already been added to the UTC offset returned by :" +"meth:`utcoffset`, so there's no need to consult :meth:`dst` unless you're " +"interested in obtaining DST info separately. For example, :meth:`datetime." +"timetuple` calls its :attr:`~.datetime.tzinfo` attribute's :meth:`dst` " +"method to determine how the :attr:`tm_isdst` flag should be set, and :meth:" +"`tzinfo.fromutc` calls :meth:`dst` to account for DST changes when crossing " +"time zones." msgstr "" #: ../../library/datetime.rst:1748 msgid "" -"An instance *tz* of a :class:`tzinfo` subclass that models both standard and" -" daylight times must be consistent in this sense:" +"An instance *tz* of a :class:`tzinfo` subclass that models both standard and " +"daylight times must be consistent in this sense:" msgstr "" #: ../../library/datetime.rst:1751 @@ -1874,15 +1930,15 @@ msgstr "" #: ../../library/datetime.rst:1753 msgid "" -"must return the same result for every :class:`.datetime` *dt* with " -"``dt.tzinfo == tz`` For sane :class:`tzinfo` subclasses, this expression " -"yields the time zone's \"standard offset\", which should not depend on the " -"date or the time, but only on geographic location. The implementation of " -":meth:`datetime.astimezone` relies on this, but cannot detect violations; " -"it's the programmer's responsibility to ensure it. If a :class:`tzinfo` " -"subclass cannot guarantee this, it may be able to override the default " -"implementation of :meth:`tzinfo.fromutc` to work correctly with " -":meth:`astimezone` regardless." +"must return the same result for every :class:`.datetime` *dt* with ``dt." +"tzinfo == tz`` For sane :class:`tzinfo` subclasses, this expression yields " +"the time zone's \"standard offset\", which should not depend on the date or " +"the time, but only on geographic location. The implementation of :meth:" +"`datetime.astimezone` relies on this, but cannot detect violations; it's the " +"programmer's responsibility to ensure it. If a :class:`tzinfo` subclass " +"cannot guarantee this, it may be able to override the default implementation " +"of :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` " +"regardless." msgstr "" #: ../../library/datetime.rst:1762 @@ -1903,11 +1959,11 @@ msgstr "" #: ../../library/datetime.rst:1788 msgid "" "Return the time zone name corresponding to the :class:`.datetime` object " -"*dt*, as a string. Nothing about string names is defined by the " -":mod:`datetime` module, and there's no requirement that it mean anything in " +"*dt*, as a string. Nothing about string names is defined by the :mod:" +"`datetime` module, and there's no requirement that it mean anything in " "particular. For example, \"GMT\", \"UTC\", \"-500\", \"-5:00\", \"EDT\", " -"\"US/Eastern\", \"America/New York\" are all valid replies. Return ``None``" -" if a string name isn't known. Note that this is a method rather than a " +"\"US/Eastern\", \"America/New York\" are all valid replies. Return ``None`` " +"if a string name isn't known. Note that this is a method rather than a " "fixed string primarily because some :class:`tzinfo` subclasses will wish to " "return different names depending on the specific value of *dt* passed, " "especially if the :class:`tzinfo` class is accounting for daylight time." @@ -1915,18 +1971,18 @@ msgstr "" #: ../../library/datetime.rst:1798 msgid "" -"The default implementation of :meth:`tzname` raises " -":exc:`NotImplementedError`." +"The default implementation of :meth:`tzname` raises :exc:" +"`NotImplementedError`." msgstr "" #: ../../library/datetime.rst:1801 msgid "" "These methods are called by a :class:`.datetime` or :class:`.time` object, " -"in response to their methods of the same names. A :class:`.datetime` object" -" passes itself as the argument, and a :class:`.time` object passes ``None`` " +"in response to their methods of the same names. A :class:`.datetime` object " +"passes itself as the argument, and a :class:`.time` object passes ``None`` " "as the argument. A :class:`tzinfo` subclass's methods should therefore be " -"prepared to accept a *dt* argument of ``None``, or of class " -":class:`.datetime`." +"prepared to accept a *dt* argument of ``None``, or of class :class:`." +"datetime`." msgstr "" #: ../../library/datetime.rst:1807 @@ -1941,12 +1997,12 @@ msgstr "" #: ../../library/datetime.rst:1813 msgid "" -"When a :class:`.datetime` object is passed in response to a " -":class:`.datetime` method, ``dt.tzinfo`` is the same object as *self*. " -":class:`tzinfo` methods can rely on this, unless user code calls " -":class:`tzinfo` methods directly. The intent is that the :class:`tzinfo` " -"methods interpret *dt* as being in local time, and not need worry about " -"objects in other timezones." +"When a :class:`.datetime` object is passed in response to a :class:`." +"datetime` method, ``dt.tzinfo`` is the same object as *self*. :class:" +"`tzinfo` methods can rely on this, unless user code calls :class:`tzinfo` " +"methods directly. The intent is that the :class:`tzinfo` methods interpret " +"*dt* as being in local time, and not need worry about objects in other " +"timezones." msgstr "" #: ../../library/datetime.rst:1819 @@ -1966,17 +2022,16 @@ msgstr "" #: ../../library/datetime.rst:1830 msgid "" -"Most :class:`tzinfo` subclasses should be able to inherit the default " -":meth:`fromutc` implementation without problems. It's strong enough to " -"handle fixed-offset time zones, and time zones accounting for both standard " -"and daylight time, and the latter even if the DST transition times differ in" -" different years. An example of a time zone the default :meth:`fromutc` " +"Most :class:`tzinfo` subclasses should be able to inherit the default :meth:" +"`fromutc` implementation without problems. It's strong enough to handle " +"fixed-offset time zones, and time zones accounting for both standard and " +"daylight time, and the latter even if the DST transition times differ in " +"different years. An example of a time zone the default :meth:`fromutc` " "implementation may not handle correctly in all cases is one where the " "standard offset (from UTC) depends on the specific date and time passed, " -"which can happen for political reasons. The default implementations of " -":meth:`astimezone` and :meth:`fromutc` may not produce the result you want " -"if the result is one of the hours straddling the moment the standard offset " -"changes." +"which can happen for political reasons. The default implementations of :meth:" +"`astimezone` and :meth:`fromutc` may not produce the result you want if the " +"result is one of the hours straddling the moment the standard offset changes." msgstr "" #: ../../library/datetime.rst:1841 @@ -1987,28 +2042,26 @@ msgstr "" #: ../../library/datetime.rst:1859 msgid "" -"In the following :download:`tzinfo_examples.py " -"<../includes/tzinfo_examples.py>` file there are some examples of " -":class:`tzinfo` classes:" +"In the following :download:`tzinfo_examples.py <../includes/tzinfo_examples." +"py>` file there are some examples of :class:`tzinfo` classes:" msgstr "" #: ../../library/datetime.rst:1865 msgid "" -"Note that there are unavoidable subtleties twice per year in a " -":class:`tzinfo` subclass accounting for both standard and daylight time, at " -"the DST transition points. For concreteness, consider US Eastern (UTC " -"-0500), where EDT begins the minute after 1:59 (EST) on the second Sunday in" -" March, and ends the minute after 1:59 (EDT) on the first Sunday in " -"November::" +"Note that there are unavoidable subtleties twice per year in a :class:" +"`tzinfo` subclass accounting for both standard and daylight time, at the DST " +"transition points. For concreteness, consider US Eastern (UTC -0500), where " +"EDT begins the minute after 1:59 (EST) on the second Sunday in March, and " +"ends the minute after 1:59 (EDT) on the first Sunday in November::" msgstr "" #: ../../library/datetime.rst:1879 msgid "" "When DST starts (the \"start\" line), the local wall clock leaps from 1:59 " "to 3:00. A wall time of the form 2:MM doesn't really make sense on that " -"day, so ``astimezone(Eastern)`` won't deliver a result with ``hour == 2`` on" -" the day DST begins. For example, at the Spring forward transition of 2016," -" we get" +"day, so ``astimezone(Eastern)`` won't deliver a result with ``hour == 2`` on " +"the day DST begins. For example, at the Spring forward transition of 2016, " +"we get" msgstr "" #: ../../library/datetime.rst:1898 @@ -2022,8 +2075,8 @@ msgid "" "mapping two adjacent UTC hours into the same local hour then. In the " "Eastern example, UTC times of the form 5:MM and 6:MM both map to 1:MM when " "converted to Eastern, but earlier times have the :attr:`~datetime.fold` " -"attribute set to 0 and the later times have it set to 1. For example, at the" -" Fall back transition of 2016, we get" +"attribute set to 0 and the later times have it set to 1. For example, at the " +"Fall back transition of 2016, we get" msgstr "" #: ../../library/datetime.rst:1920 @@ -2035,11 +2088,11 @@ msgstr "" #: ../../library/datetime.rst:1923 msgid "" "Applications that can't bear wall-time ambiguities should explicitly check " -"the value of the :attr:`~datetime.fold` attribute or avoid using hybrid " -":class:`tzinfo` subclasses; there are no ambiguities when using " -":class:`timezone`, or any other fixed-offset :class:`tzinfo` subclass (such " -"as a class representing only EST (fixed offset -5 hours), or only EDT (fixed" -" offset -4 hours))." +"the value of the :attr:`~datetime.fold` attribute or avoid using hybrid :" +"class:`tzinfo` subclasses; there are no ambiguities when using :class:" +"`timezone`, or any other fixed-offset :class:`tzinfo` subclass (such as a " +"class representing only EST (fixed offset -5 hours), or only EDT (fixed " +"offset -4 hours))." msgstr "" #: ../../library/datetime.rst:1936 @@ -2054,8 +2107,8 @@ msgstr "" #: ../../library/datetime.rst:1935 msgid "" -"*dateutil.tz* library brings the *IANA timezone database* (also known as the" -" Olson database) to Python and its usage is recommended." +"*dateutil.tz* library brings the *IANA timezone database* (also known as the " +"Olson database) to Python and its usage is recommended." msgstr "" #: ../../library/datetime.rst:1942 @@ -2094,16 +2147,15 @@ msgstr "" #: ../../library/datetime.rst:1966 msgid "" -"The *name* argument is optional. If specified it must be a string that will" -" be used as the value returned by the :meth:`datetime.tzname` method." +"The *name* argument is optional. If specified it must be a string that will " +"be used as the value returned by the :meth:`datetime.tzname` method." msgstr "" #: ../../library/datetime.rst:1977 msgid "" "Return the fixed value specified when the :class:`timezone` instance is " -"constructed. The *dt* argument is ignored. The return value is a " -":class:`timedelta` instance equal to the difference between the local time " -"and UTC." +"constructed. The *dt* argument is ignored. The return value is a :class:" +"`timedelta` instance equal to the difference between the local time and UTC." msgstr "" #: ../../library/datetime.rst:1987 @@ -2111,15 +2163,15 @@ msgid "" "Return the fixed value specified when the :class:`timezone` instance is " "constructed. If *name* is not provided in the constructor, the name " "returned by ``tzname(dt)`` is generated from the value of the ``offset`` as " -"follows. If *offset* is ``timedelta(0)``, the name is \"UTC\", otherwise it" -" is a string 'UTC±HH:MM', where ± is the sign of ``offset``, HH and MM are " +"follows. If *offset* is ``timedelta(0)``, the name is \"UTC\", otherwise it " +"is a string 'UTC±HH:MM', where ± is the sign of ``offset``, HH and MM are " "two digits of ``offset.hours`` and ``offset.minutes`` respectively." msgstr "" #: ../../library/datetime.rst:1995 msgid "" -"Name generated from ``offset=timedelta(0)`` is now plain 'UTC', not " -"'UTC+00:00'." +"Name generated from ``offset=timedelta(0)`` is now plain 'UTC', not 'UTC" +"+00:00'." msgstr "" #: ../../library/datetime.rst:2002 @@ -2128,8 +2180,8 @@ msgstr "" #: ../../library/datetime.rst:2006 msgid "" -"Return ``dt + offset``. The *dt* argument must be an aware " -":class:`.datetime` instance, with ``tzinfo`` set to ``self``." +"Return ``dt + offset``. The *dt* argument must be an aware :class:`." +"datetime` instance, with ``tzinfo`` set to ``self``." msgstr "" #: ../../library/datetime.rst:2013 @@ -2144,16 +2196,15 @@ msgstr "" msgid "" ":class:`date`, :class:`.datetime`, and :class:`.time` objects all support a " "``strftime(format)`` method, to create a string representing the time under " -"the control of an explicit format string. Broadly speaking, " -"``d.strftime(fmt)`` acts like the :mod:`time` module's ``time.strftime(fmt, " -"d.timetuple())`` although not all objects support a :meth:`timetuple` " -"method." +"the control of an explicit format string. Broadly speaking, ``d." +"strftime(fmt)`` acts like the :mod:`time` module's ``time.strftime(fmt, d." +"timetuple())`` although not all objects support a :meth:`timetuple` method." msgstr "" #: ../../library/datetime.rst:2030 msgid "" -"Conversely, the :meth:`datetime.strptime` class method creates a " -":class:`.datetime` object from a string representing a date and time and a " +"Conversely, the :meth:`datetime.strptime` class method creates a :class:`." +"datetime` object from a string representing a date and time and a " "corresponding format string. ``datetime.strptime(date_string, format)`` is " "equivalent to ``datetime(*(time.strptime(date_string, format)[0:6]))``, " "except when the format includes sub-second components or timezone offset " @@ -2163,15 +2214,15 @@ msgstr "" #: ../../library/datetime.rst:2037 msgid "" -"For :class:`.time` objects, the format codes for year, month, and day should" -" not be used, as time objects have no such values. If they're used anyway, " +"For :class:`.time` objects, the format codes for year, month, and day should " +"not be used, as time objects have no such values. If they're used anyway, " "``1900`` is substituted for the year, and ``1`` for the month and day." msgstr "" #: ../../library/datetime.rst:2041 msgid "" -"For :class:`date` objects, the format codes for hours, minutes, seconds, and" -" microseconds should not be used, as :class:`date` objects have no such " +"For :class:`date` objects, the format codes for hours, minutes, seconds, and " +"microseconds should not be used, as :class:`date` objects have no such " "values. If they're used anyway, ``0`` is substituted for them." msgstr "" @@ -2187,8 +2238,7 @@ msgid "" "The full set of format codes supported varies across platforms, because " "Python calls the platform C library's :func:`strftime` function, and " "platform variations are common. To see the full set of format codes " -"supported on your platform, consult the :manpage:`strftime(3)` " -"documentation." +"supported on your platform, consult the :manpage:`strftime(3)` documentation." msgstr "" #: ../../library/datetime.rst:2053 @@ -2196,8 +2246,8 @@ msgid "" "For the same reason, handling of format strings containing Unicode code " "points that can't be represented in the charset of the current locale is " "also platform-dependent. On some platforms such code points are preserved " -"intact in the output, while on others ``strftime`` may raise " -":exc:`UnicodeError` or return an empty string instead." +"intact in the output, while on others ``strftime`` may raise :exc:" +"`UnicodeError` or return an empty string instead." msgstr "" #: ../../library/datetime.rst:2059 @@ -2258,7 +2308,7 @@ msgstr "" #: ../../library/datetime.rst:2077 msgid "``%w``" -msgstr "" +msgstr "``%w``" #: ../../library/datetime.rst:2077 msgid "Weekday as a decimal number, where 0 is Sunday and 6 is Saturday." @@ -2270,7 +2320,7 @@ msgstr "" #: ../../library/datetime.rst:2081 msgid "``%d``" -msgstr "" +msgstr "``%d``" #: ../../library/datetime.rst:2081 msgid "Day of the month as a zero-padded decimal number." @@ -2305,7 +2355,7 @@ msgstr "" #: ../../library/datetime.rst:2089 msgid "``%B``" -msgstr "" +msgstr "``%B``" #: ../../library/datetime.rst:2089 msgid "Month as locale's full name." @@ -2321,7 +2371,7 @@ msgstr "" #: ../../library/datetime.rst:2094 msgid "``%m``" -msgstr "" +msgstr "``%m``" #: ../../library/datetime.rst:2094 msgid "Month as a zero-padded decimal number." @@ -2333,7 +2383,7 @@ msgstr "" #: ../../library/datetime.rst:2097 msgid "``%y``" -msgstr "" +msgstr "``%y``" #: ../../library/datetime.rst:2097 msgid "Year without century as a zero-padded decimal number." @@ -2345,7 +2395,7 @@ msgstr "" #: ../../library/datetime.rst:2100 msgid "``%Y``" -msgstr "" +msgstr "``%Y``" #: ../../library/datetime.rst:2100 msgid "Year with century as a decimal number." @@ -2357,7 +2407,7 @@ msgstr "" #: ../../library/datetime.rst:2103 msgid "``%H``" -msgstr "" +msgstr "``%H``" #: ../../library/datetime.rst:2103 msgid "Hour (24-hour clock) as a zero-padded decimal number." @@ -2369,7 +2419,7 @@ msgstr "" #: ../../library/datetime.rst:2106 msgid "``%I``" -msgstr "" +msgstr "``%I``" #: ../../library/datetime.rst:2106 msgid "Hour (12-hour clock) as a zero-padded decimal number." @@ -2377,7 +2427,7 @@ msgstr "" #: ../../library/datetime.rst:2109 msgid "``%p``" -msgstr "" +msgstr "``%p``" #: ../../library/datetime.rst:2109 msgid "Locale's equivalent of either AM or PM." @@ -2397,7 +2447,7 @@ msgstr "" #: ../../library/datetime.rst:2112 msgid "``%M``" -msgstr "" +msgstr "``%M``" #: ../../library/datetime.rst:2112 msgid "Minute as a zero-padded decimal number." @@ -2409,7 +2459,7 @@ msgstr "" #: ../../library/datetime.rst:2115 msgid "``%S``" -msgstr "" +msgstr "``%S``" #: ../../library/datetime.rst:2115 msgid "Second as a zero-padded decimal number." @@ -2421,7 +2471,7 @@ msgstr "" #: ../../library/datetime.rst:2118 msgid "``%f``" -msgstr "" +msgstr "``%f``" #: ../../library/datetime.rst:2118 msgid "Microsecond as a decimal number, zero-padded on the left." @@ -2437,7 +2487,7 @@ msgstr "\\(5)" #: ../../library/datetime.rst:2122 ../../library/datetime.rst:2246 msgid "``%z``" -msgstr "" +msgstr "``%z``" #: ../../library/datetime.rst:2122 msgid "" @@ -2455,7 +2505,7 @@ msgstr "\\(6)" #: ../../library/datetime.rst:2127 ../../library/datetime.rst:2261 msgid "``%Z``" -msgstr "" +msgstr "``%Z``" #: ../../library/datetime.rst:2127 msgid "Time zone name (empty string if the object is naive)." @@ -2467,7 +2517,7 @@ msgstr "" #: ../../library/datetime.rst:2130 msgid "``%j``" -msgstr "" +msgstr "``%j``" #: ../../library/datetime.rst:2130 msgid "Day of the year as a zero-padded decimal number." @@ -2479,13 +2529,13 @@ msgstr "" #: ../../library/datetime.rst:2133 msgid "``%U``" -msgstr "" +msgstr "``%U``" #: ../../library/datetime.rst:2133 msgid "" "Week number of the year (Sunday as the first day of the week) as a zero " -"padded decimal number. All days in a new year preceding the first Sunday are" -" considered to be in week 0." +"padded decimal number. All days in a new year preceding the first Sunday are " +"considered to be in week 0." msgstr "" #: ../../library/datetime.rst:2133 ../../library/datetime.rst:2141 @@ -2498,7 +2548,7 @@ msgstr "" #: ../../library/datetime.rst:2141 msgid "``%W``" -msgstr "" +msgstr "``%W``" #: ../../library/datetime.rst:2141 msgid "" @@ -2509,7 +2559,7 @@ msgstr "" #: ../../library/datetime.rst:2149 msgid "``%c``" -msgstr "" +msgstr "``%c``" #: ../../library/datetime.rst:2149 msgid "Locale's appropriate date and time representation." @@ -2525,7 +2575,7 @@ msgstr "" #: ../../library/datetime.rst:2154 msgid "``%x``" -msgstr "" +msgstr "``%x``" #: ../../library/datetime.rst:2154 msgid "Locale's appropriate date representation." @@ -2561,7 +2611,7 @@ msgstr "" #: ../../library/datetime.rst:2161 msgid "``%%``" -msgstr "" +msgstr "``%%``" #: ../../library/datetime.rst:2161 msgid "A literal ``'%'`` character." @@ -2575,16 +2625,16 @@ msgstr "%" msgid "" "Several additional directives not required by the C89 standard are included " "for convenience. These parameters all correspond to ISO 8601 date values. " -"These may not be available on all platforms when used with the " -":meth:`strftime` method. The ISO 8601 year and ISO 8601 week directives are " -"not interchangeable with the year and week number directives above. Calling " -":meth:`strptime` with incomplete or ambiguous ISO 8601 directives will raise" -" a :exc:`ValueError`." +"These may not be available on all platforms when used with the :meth:" +"`strftime` method. The ISO 8601 year and ISO 8601 week directives are not " +"interchangeable with the year and week number directives above. Calling :" +"meth:`strptime` with incomplete or ambiguous ISO 8601 directives will raise " +"a :exc:`ValueError`." msgstr "" #: ../../library/datetime.rst:2174 msgid "``%G``" -msgstr "" +msgstr "``%G``" #: ../../library/datetime.rst:2174 msgid "" @@ -2598,7 +2648,7 @@ msgstr "\\(8)" #: ../../library/datetime.rst:2179 msgid "``%u``" -msgstr "" +msgstr "``%u``" #: ../../library/datetime.rst:2179 msgid "ISO 8601 weekday as a decimal number where 1 is Monday." @@ -2610,7 +2660,7 @@ msgstr "" #: ../../library/datetime.rst:2182 msgid "``%V``" -msgstr "" +msgstr "``%V``" #: ../../library/datetime.rst:2182 msgid "" @@ -2643,8 +2693,8 @@ msgstr "" #: ../../library/datetime.rst:2204 msgid "" -"The :meth:`strptime` method can parse years in the full [1, 9999] range, but" -" years < 1000 must be zero-filled to 4-digit width." +"The :meth:`strptime` method can parse years in the full [1, 9999] range, but " +"years < 1000 must be zero-filled to 4-digit width." msgstr "" #: ../../library/datetime.rst:2207 @@ -2681,8 +2731,8 @@ msgstr "" #: ../../library/datetime.rst:2231 msgid "" -"For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty" -" strings." +"For a naive object, the ``%z`` and ``%Z`` format codes are replaced by empty " +"strings." msgstr "" #: ../../library/datetime.rst:2234 @@ -2691,16 +2741,15 @@ msgstr "" #: ../../library/datetime.rst:2237 msgid "" -":meth:`utcoffset` is transformed into a string of the form " -"±HHMM[SS[.ffffff]], where HH is a 2-digit string giving the number of UTC " -"offset hours, MM is a 2-digit string giving the number of UTC offset " -"minutes, SS is a 2-digit string giving the number of UTC offset seconds and " -"ffffff is a 6-digit string giving the number of UTC offset microseconds. " -"The ffffff part is omitted when the offset is a whole number of seconds and " -"both the ffffff and the SS part is omitted when the offset is a whole number" -" of minutes. For example, if :meth:`utcoffset` returns " -"``timedelta(hours=-3, minutes=-30)``, ``%z`` is replaced with the string " -"``'-0330'``." +":meth:`utcoffset` is transformed into a string of the form ±HHMM[SS[." +"ffffff]], where HH is a 2-digit string giving the number of UTC offset " +"hours, MM is a 2-digit string giving the number of UTC offset minutes, SS is " +"a 2-digit string giving the number of UTC offset seconds and ffffff is a 6-" +"digit string giving the number of UTC offset microseconds. The ffffff part " +"is omitted when the offset is a whole number of seconds and both the ffffff " +"and the SS part is omitted when the offset is a whole number of minutes. " +"For example, if :meth:`utcoffset` returns ``timedelta(hours=-3, " +"minutes=-30)``, ``%z`` is replaced with the string ``'-0330'``." msgstr "" #: ../../library/datetime.rst:2251 @@ -2734,15 +2783,15 @@ msgstr "" #: ../../library/datetime.rst:2274 msgid "" "Similar to ``%U`` and ``%W``, ``%V`` is only used in calculations when the " -"day of the week and the ISO year (``%G``) are specified in a " -":meth:`strptime` format string. Also note that ``%G`` and ``%Y`` are not " +"day of the week and the ISO year (``%G``) are specified in a :meth:" +"`strptime` format string. Also note that ``%G`` and ``%Y`` are not " "interchangeable." msgstr "" #: ../../library/datetime.rst:2280 msgid "" -"When used with the :meth:`strptime` method, the leading zero is optional for" -" formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``, " +"When used with the :meth:`strptime` method, the leading zero is optional " +"for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``, " "``%W``, and ``%V``. Format ``%y`` does require a leading zero." msgstr "" @@ -2756,6 +2805,6 @@ msgstr "" #: ../../library/datetime.rst:2287 msgid "" -"Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is" -" not a leap year." +"Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is " +"not a leap year." msgstr "" diff --git a/library/dbm.po b/library/dbm.po index f6e8877d4..5f1d952ad 100644 --- a/library/dbm.po +++ b/library/dbm.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:10+0000\n" -"Last-Translator: (Douglas da Silva) , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,11 +35,11 @@ msgstr "**Código Fonte:** :source:`Lib/dbm/__init__.py`" #: ../../library/dbm.rst:11 msgid "" -":mod:`dbm` is a generic interface to variants of the DBM database --- " -":mod:`dbm.gnu` or :mod:`dbm.ndbm`. If none of these modules is installed, " -"the slow-but-simple implementation in module :mod:`dbm.dumb` will be used. " -"There is a `third party interface " -"`_ to the Oracle Berkeley DB." +":mod:`dbm` is a generic interface to variants of the DBM database --- :mod:" +"`dbm.gnu` or :mod:`dbm.ndbm`. If none of these modules is installed, the " +"slow-but-simple implementation in module :mod:`dbm.dumb` will be used. " +"There is a `third party interface `_ to the Oracle Berkeley DB." msgstr "" #: ../../library/dbm.rst:20 @@ -49,9 +51,9 @@ msgstr "" #: ../../library/dbm.rst:27 msgid "" -"This function attempts to guess which of the several simple database modules" -" available --- :mod:`dbm.gnu`, :mod:`dbm.ndbm` or :mod:`dbm.dumb` --- should" -" be used to open a given file." +"This function attempts to guess which of the several simple database modules " +"available --- :mod:`dbm.gnu`, :mod:`dbm.ndbm` or :mod:`dbm.dumb` --- should " +"be used to open a given file." msgstr "" #: ../../library/dbm.rst:31 @@ -68,71 +70,62 @@ msgstr "" #: ../../library/dbm.rst:41 msgid "" -"If the database file already exists, the :func:`whichdb` function is used to" -" determine its type and the appropriate module is used; if it does not " -"exist, the first module listed above that can be imported is used." +"If the database file already exists, the :func:`whichdb` function is used to " +"determine its type and the appropriate module is used; if it does not exist, " +"the first module listed above that can be imported is used." msgstr "" #: ../../library/dbm.rst:45 ../../library/dbm.rst:157 msgid "The optional *flag* argument can be:" msgstr "" -#: ../../library/dbm.rst:48 ../../library/dbm.rst:160 -#: ../../library/dbm.rst:179 ../../library/dbm.rst:275 +#: ../../library/dbm.rst:48 ../../library/dbm.rst:160 ../../library/dbm.rst:179 +#: ../../library/dbm.rst:275 msgid "Value" msgstr "Valor" -#: ../../library/dbm.rst:48 ../../library/dbm.rst:160 -#: ../../library/dbm.rst:179 ../../library/dbm.rst:275 +#: ../../library/dbm.rst:48 ../../library/dbm.rst:160 ../../library/dbm.rst:179 +#: ../../library/dbm.rst:275 msgid "Meaning" msgstr "Significado" -#: ../../library/dbm.rst:50 ../../library/dbm.rst:162 -#: ../../library/dbm.rst:277 +#: ../../library/dbm.rst:50 ../../library/dbm.rst:162 ../../library/dbm.rst:277 msgid "``'r'``" msgstr "``'r'``" -#: ../../library/dbm.rst:50 ../../library/dbm.rst:162 -#: ../../library/dbm.rst:277 +#: ../../library/dbm.rst:50 ../../library/dbm.rst:162 ../../library/dbm.rst:277 msgid "Open existing database for reading only (default)" msgstr "" -#: ../../library/dbm.rst:53 ../../library/dbm.rst:165 -#: ../../library/dbm.rst:280 +#: ../../library/dbm.rst:53 ../../library/dbm.rst:165 ../../library/dbm.rst:280 msgid "``'w'``" msgstr "``'w'``" -#: ../../library/dbm.rst:53 ../../library/dbm.rst:165 -#: ../../library/dbm.rst:280 +#: ../../library/dbm.rst:53 ../../library/dbm.rst:165 ../../library/dbm.rst:280 msgid "Open existing database for reading and writing" msgstr "" -#: ../../library/dbm.rst:56 ../../library/dbm.rst:168 -#: ../../library/dbm.rst:283 +#: ../../library/dbm.rst:56 ../../library/dbm.rst:168 ../../library/dbm.rst:283 msgid "``'c'``" msgstr "``'c'``" -#: ../../library/dbm.rst:56 ../../library/dbm.rst:168 -#: ../../library/dbm.rst:283 +#: ../../library/dbm.rst:56 ../../library/dbm.rst:168 ../../library/dbm.rst:283 msgid "Open database for reading and writing, creating it if it doesn't exist" msgstr "" -#: ../../library/dbm.rst:59 ../../library/dbm.rst:171 -#: ../../library/dbm.rst:286 +#: ../../library/dbm.rst:59 ../../library/dbm.rst:171 ../../library/dbm.rst:286 msgid "``'n'``" -msgstr "" +msgstr "``'n'``" -#: ../../library/dbm.rst:59 ../../library/dbm.rst:171 -#: ../../library/dbm.rst:286 +#: ../../library/dbm.rst:59 ../../library/dbm.rst:171 ../../library/dbm.rst:286 msgid "Always create a new, empty database, open for reading and writing" msgstr "" -#: ../../library/dbm.rst:63 ../../library/dbm.rst:290 -#: ../../library/dbm.rst:346 +#: ../../library/dbm.rst:63 ../../library/dbm.rst:290 ../../library/dbm.rst:346 msgid "" "The optional *mode* argument is the Unix mode of the file, used only when " -"the database has to be created. It defaults to octal ``0o666`` (and will be" -" modified by the prevailing umask)." +"the database has to be created. It defaults to octal ``0o666`` (and will be " +"modified by the prevailing umask)." msgstr "" #: ../../library/dbm.rst:68 @@ -145,8 +138,7 @@ msgstr "" #: ../../library/dbm.rst:73 msgid "" -":meth:`get` and :meth:`setdefault` are now available in all database " -"modules." +":meth:`get` and :meth:`setdefault` are now available in all database modules." msgstr "" #: ../../library/dbm.rst:76 @@ -170,8 +162,8 @@ msgstr "" #: ../../library/dbm.rst:87 msgid "" -"The following example records some hostnames and a corresponding title, and" -" then prints out the contents of the database::" +"The following example records some hostnames and a corresponding title, and " +"then prints out the contents of the database::" msgstr "" #: ../../library/dbm.rst:117 @@ -198,8 +190,8 @@ msgstr "" msgid "" "This module is quite similar to the :mod:`dbm` module, but uses the GNU " "library ``gdbm`` instead to provide some additional functionality. Please " -"note that the file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are" -" incompatible." +"note that the file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are " +"incompatible." msgstr "" #: ../../library/dbm.rst:139 @@ -207,15 +199,15 @@ msgid "" "The :mod:`dbm.gnu` module provides an interface to the GNU DBM library. " "``dbm.gnu.gdbm`` objects behave like mappings (dictionaries), except that " "keys and values are always converted to bytes before storing. Printing a " -"``gdbm`` object doesn't print the keys and values, and the :meth:`items` and" -" :meth:`values` methods are not supported." +"``gdbm`` object doesn't print the keys and values, and the :meth:`items` " +"and :meth:`values` methods are not supported." msgstr "" #: ../../library/dbm.rst:148 msgid "" -"Raised on :mod:`dbm.gnu`-specific errors, such as I/O errors. " -":exc:`KeyError` is raised for general mapping errors like specifying an " -"incorrect key." +"Raised on :mod:`dbm.gnu`-specific errors, such as I/O errors. :exc:" +"`KeyError` is raised for general mapping errors like specifying an incorrect " +"key." msgstr "" #: ../../library/dbm.rst:154 @@ -246,8 +238,8 @@ msgstr "``'s'``" #: ../../library/dbm.rst:184 msgid "" -"Synchronized mode. This will cause changes to the database to be immediately" -" written to the file." +"Synchronized mode. This will cause changes to the database to be immediately " +"written to the file." msgstr "" #: ../../library/dbm.rst:188 @@ -260,9 +252,9 @@ msgstr "" #: ../../library/dbm.rst:191 msgid "" -"Not all flags are valid for all versions of ``gdbm``. The module constant " -":const:`open_flags` is a string of supported flag characters. The exception" -" :exc:`error` is raised if an invalid flag is specified." +"Not all flags are valid for all versions of ``gdbm``. The module constant :" +"const:`open_flags` is a string of supported flag characters. The exception :" +"exc:`error` is raised if an invalid flag is specified." msgstr "" #: ../../library/dbm.rst:195 @@ -280,9 +272,9 @@ msgstr "" #: ../../library/dbm.rst:203 msgid "" "It's possible to loop over every key in the database using this method and " -"the :meth:`nextkey` method. The traversal is ordered by ``gdbm``'s internal" -" hash values, and won't be sorted by the key values. This method returns " -"the starting key." +"the :meth:`nextkey` method. The traversal is ordered by ``gdbm``'s internal " +"hash values, and won't be sorted by the key values. This method returns the " +"starting key." msgstr "" #: ../../library/dbm.rst:210 @@ -295,8 +287,8 @@ msgstr "" #: ../../library/dbm.rst:221 msgid "" "If you have carried out a lot of deletions and would like to shrink the " -"space used by the ``gdbm`` file, this routine will reorganize the database." -" ``gdbm`` objects will not shorten the length of a database file except by " +"space used by the ``gdbm`` file, this routine will reorganize the database. " +"``gdbm`` objects will not shorten the length of a database file except by " "using this reorganization; otherwise, deleted file space will be kept and " "reused as new (key, value) pairs are added." msgstr "" @@ -338,9 +330,9 @@ msgstr "" #: ../../library/dbm.rst:258 msgid "" -"Raised on :mod:`dbm.ndbm`-specific errors, such as I/O errors. " -":exc:`KeyError` is raised for general mapping errors like specifying an " -"incorrect key." +"Raised on :mod:`dbm.ndbm`-specific errors, such as I/O errors. :exc:" +"`KeyError` is raised for general mapping errors like specifying an incorrect " +"key." msgstr "" #: ../../library/dbm.rst:264 @@ -378,18 +370,18 @@ msgstr "" #: ../../library/dbm.rst:314 msgid "" -"The :mod:`dbm.dumb` module is intended as a last resort fallback for the " -":mod:`dbm` module when a more robust module is not available. The " -":mod:`dbm.dumb` module is not written for speed and is not nearly as heavily" -" used as the other database modules." +"The :mod:`dbm.dumb` module is intended as a last resort fallback for the :" +"mod:`dbm` module when a more robust module is not available. The :mod:`dbm." +"dumb` module is not written for speed and is not nearly as heavily used as " +"the other database modules." msgstr "" #: ../../library/dbm.rst:321 msgid "" "The :mod:`dbm.dumb` module provides a persistent dictionary-like interface " -"which is written entirely in Python. Unlike other modules such as " -":mod:`dbm.gnu` no external library is required. As with other persistent " -"mappings, the keys and values are always stored as bytes." +"which is written entirely in Python. Unlike other modules such as :mod:`dbm." +"gnu` no external library is required. As with other persistent mappings, " +"the keys and values are always stored as bytes." msgstr "" #: ../../library/dbm.rst:326 @@ -398,9 +390,9 @@ msgstr "" #: ../../library/dbm.rst:331 msgid "" -"Raised on :mod:`dbm.dumb`-specific errors, such as I/O errors. " -":exc:`KeyError` is raised for general mapping errors like specifying an " -"incorrect key." +"Raised on :mod:`dbm.dumb`-specific errors, such as I/O errors. :exc:" +"`KeyError` is raised for general mapping errors like specifying an incorrect " +"key." msgstr "" #: ../../library/dbm.rst:337 @@ -439,9 +431,9 @@ msgstr "" #: ../../library/dbm.rst:363 msgid "" -"In addition to the methods provided by the " -":class:`collections.abc.MutableMapping` class, :class:`dumbdbm` objects " -"provide the following methods:" +"In addition to the methods provided by the :class:`collections.abc." +"MutableMapping` class, :class:`dumbdbm` objects provide the following " +"methods:" msgstr "" #: ../../library/dbm.rst:369 diff --git a/library/debug.po b/library/debug.po index 7ff8709f2..6d3d37a87 100644 --- a/library/debug.po +++ b/library/debug.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" "Last-Translator: Hildeberto Abreu Magalhães , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,12 +29,12 @@ msgstr "Depuração e perfilamento" #: ../../library/debug.rst:5 msgid "" "These libraries help you with Python development: the debugger enables you " -"to step through code, analyze stack frames and set breakpoints etc., and the" -" profilers run code and give you a detailed breakdown of execution times, " +"to step through code, analyze stack frames and set breakpoints etc., and the " +"profilers run code and give you a detailed breakdown of execution times, " "allowing you to identify bottlenecks in your programs." msgstr "" "Essas bibliotecas ajudam você com o desenvolvimento em Python: o depurador " -"permite percorrer o código, analisar valores em memória durante a execução e" -" definir pontos de interrupção, etc., e o perfilador executa o código e " +"permite percorrer o código, analisar valores em memória durante a execução e " +"definir pontos de interrupção, etc., e o perfilador executa o código e " "fornece uma análise detalhada dos tempos de execução, permitindo que você " "identifique gargalos em seus programas." diff --git a/library/decimal.po b/library/decimal.po index f5c1c651a..04c7e42f6 100644 --- a/library/decimal.po +++ b/library/decimal.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-02-03 10:33+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:10+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +27,7 @@ msgstr "" #: ../../library/decimal.rst:2 msgid ":mod:`decimal` --- Decimal fixed point and floating point arithmetic" -msgstr "" +msgstr ":mod:`decimal` --- Aritmética de ponto decimal fixo e ponto flutuante" #: ../../library/decimal.rst:15 msgid "**Source code:** :source:`Lib/decimal.py`" @@ -33,27 +36,39 @@ msgstr "**Código Fonte:** :source:`Lib/decimal.py`" #: ../../library/decimal.rst:33 msgid "" "The :mod:`decimal` module provides support for fast correctly-rounded " -"decimal floating point arithmetic. It offers several advantages over the " -":class:`float` datatype:" +"decimal floating point arithmetic. It offers several advantages over the :" +"class:`float` datatype:" msgstr "" +"O módulo :mod:`decimal` fornece suporte a aritmética rápida de ponto " +"flutuante decimal corretamente arredondado. Oferece várias vantagens sobre o " +"tipo de dados :class:`float`:" #: ../../library/decimal.rst:37 msgid "" "Decimal \"is based on a floating-point model which was designed with people " -"in mind, and necessarily has a paramount guiding principle -- computers must" -" provide an arithmetic that works in the same way as the arithmetic that " +"in mind, and necessarily has a paramount guiding principle -- computers must " +"provide an arithmetic that works in the same way as the arithmetic that " "people learn at school.\" -- excerpt from the decimal arithmetic " "specification." msgstr "" +"Decimal \"é baseado em um modelo de ponto flutuante que foi projetado com as " +"pessoas em mente e necessariamente tem um princípio orientador primordial -- " +"os computadores devem fornecer uma aritmética que funcione da mesma maneira " +"que a aritmética que as pessoas aprendem na escola\". -- trecho da " +"especificação aritmética decimal." #: ../../library/decimal.rst:42 msgid "" -"Decimal numbers can be represented exactly. In contrast, numbers like " -":const:`1.1` and :const:`2.2` do not have exact representations in binary " +"Decimal numbers can be represented exactly. In contrast, numbers like :" +"const:`1.1` and :const:`2.2` do not have exact representations in binary " "floating point. End users typically would not expect ``1.1 + 2.2`` to " -"display as :const:`3.3000000000000003` as it does with binary floating " -"point." +"display as :const:`3.3000000000000003` as it does with binary floating point." msgstr "" +"Os números decimais podem ser representados exatamente. Por outro lado, " +"números como :const:`1.1` e :const:`2.2` não possuem representações exatas " +"em ponto flutuante binário. Os usuários finais normalmente não esperam que " +"``1.1 + 2.2`` sejam exibidos como :const:`3.3000000000000003`, como acontece " +"com o ponto flutuante binário." #: ../../library/decimal.rst:47 msgid "" @@ -61,9 +76,15 @@ msgid "" "``0.1 + 0.1 + 0.1 - 0.3`` is exactly equal to zero. In binary floating " "point, the result is :const:`5.5511151231257827e-017`. While near to zero, " "the differences prevent reliable equality testing and differences can " -"accumulate. For this reason, decimal is preferred in accounting applications" -" which have strict equality invariants." +"accumulate. For this reason, decimal is preferred in accounting applications " +"which have strict equality invariants." msgstr "" +"A exatidão transita para a aritmética. No ponto flutuante decimal, ``0.1 + " +"0.1 + 0.1 - 0.3`` é exatamente igual a zero. No ponto flutuante binário, o " +"resultado é :const:`5.5511151231257827e-017`. Embora próximas de zero, as " +"diferenças impedem o teste de igualdade confiável e as diferenças podem se " +"acumular. Por esse motivo, o decimal é preferido em aplicativos de " +"contabilidade que possuem invariáveis estritos de igualdade." #: ../../library/decimal.rst:54 msgid "" @@ -71,9 +92,15 @@ msgid "" "``1.30 + 1.20`` is :const:`2.50`. The trailing zero is kept to indicate " "significance. This is the customary presentation for monetary applications. " "For multiplication, the \"schoolbook\" approach uses all the figures in the " -"multiplicands. For instance, ``1.3 * 1.2`` gives :const:`1.56` while ``1.30" -" * 1.20`` gives :const:`1.5600`." +"multiplicands. For instance, ``1.3 * 1.2`` gives :const:`1.56` while ``1.30 " +"* 1.20`` gives :const:`1.5600`." msgstr "" +"O módulo decimal incorpora uma noção de casas significativas para que ``1.30 " +"+ 1.20`` seja :const:`2.50`. O zero à direita é mantido para indicar " +"significância. Esta é a apresentação habitual para aplicações monetárias. " +"Para multiplicação, a abordagem \"livro escolar\" usa todas as figuras nos " +"multiplicandos. Por exemplo, ``1.3 * 1.2`` é igual a :const:`1.56` enquanto " +"``1.30 * 1.20`` é igual a :const:`1.5600`." #: ../../library/decimal.rst:61 msgid "" @@ -81,60 +108,93 @@ msgid "" "alterable precision (defaulting to 28 places) which can be as large as " "needed for a given problem:" msgstr "" +"Diferentemente do ponto flutuante binário baseado em hardware, o módulo " +"decimal possui uma precisão alterável pelo usuário (padrão de 28 casas), que " +"pode ser tão grande quanto necessário para um determinado problema:" #: ../../library/decimal.rst:73 msgid "" -"Both binary and decimal floating point are implemented in terms of published" -" standards. While the built-in float type exposes only a modest portion of " +"Both binary and decimal floating point are implemented in terms of published " +"standards. While the built-in float type exposes only a modest portion of " "its capabilities, the decimal module exposes all required parts of the " "standard. When needed, the programmer has full control over rounding and " "signal handling. This includes an option to enforce exact arithmetic by " "using exceptions to block any inexact operations." msgstr "" +"O ponto flutuante binário e decimal é implementado em termos de padrões " +"publicados. Enquanto o tipo ponto flutuante embutido expõe apenas uma parte " +"modesta de seus recursos, o módulo decimal expõe todas as partes necessárias " +"do padrão. Quando necessário, o programador tem controle total sobre o " +"arredondamento e o manuseio do sinal. Isso inclui uma opção para impor " +"aritmética exata usando exceções para bloquear quaisquer operações inexatas." #: ../../library/decimal.rst:80 msgid "" "The decimal module was designed to support \"without prejudice, both exact " "unrounded decimal arithmetic (sometimes called fixed-point arithmetic) and " -"rounded floating-point arithmetic.\" -- excerpt from the decimal arithmetic" -" specification." +"rounded floating-point arithmetic.\" -- excerpt from the decimal arithmetic " +"specification." msgstr "" +"O módulo decimal foi projetado para dar suporte, \"sem prejuízo, a " +"aritmética decimal não arredondada exata (às vezes chamada aritmética de " +"ponto fixo) e aritmética arredondada de ponto flutuante\". -- trecho da " +"especificação aritmética decimal." #: ../../library/decimal.rst:85 msgid "" "The module design is centered around three concepts: the decimal number, " "the context for arithmetic, and signals." msgstr "" +"O design do módulo é centrado em torno de três conceitos: o número decimal, " +"o contexto da aritmética e os sinais." #: ../../library/decimal.rst:88 msgid "" "A decimal number is immutable. It has a sign, coefficient digits, and an " "exponent. To preserve significance, the coefficient digits do not truncate " -"trailing zeros. Decimals also include special values such as " -":const:`Infinity`, :const:`-Infinity`, and :const:`NaN`. The standard also " +"trailing zeros. Decimals also include special values such as :const:" +"`Infinity`, :const:`-Infinity`, and :const:`NaN`. The standard also " "differentiates :const:`-0` from :const:`+0`." msgstr "" +"Um número decimal é imutável. Possui um sinal, dígitos de coeficiente e um " +"expoente. Para preservar a significância, os dígitos do coeficiente não " +"truncam zeros à direita. Os decimais também incluem valores especiais, tais " +"como :const:`Infinity`, :const:`-Infinity` e :const:`NaN`. O padrão também " +"diferencia :const:`-0` de :const:`+0`." #: ../../library/decimal.rst:94 msgid "" "The context for arithmetic is an environment specifying precision, rounding " "rules, limits on exponents, flags indicating the results of operations, and " "trap enablers which determine whether signals are treated as exceptions. " -"Rounding options include :const:`ROUND_CEILING`, :const:`ROUND_DOWN`, " -":const:`ROUND_FLOOR`, :const:`ROUND_HALF_DOWN`, :const:`ROUND_HALF_EVEN`, " -":const:`ROUND_HALF_UP`, :const:`ROUND_UP`, and :const:`ROUND_05UP`." -msgstr "" +"Rounding options include :const:`ROUND_CEILING`, :const:`ROUND_DOWN`, :const:" +"`ROUND_FLOOR`, :const:`ROUND_HALF_DOWN`, :const:`ROUND_HALF_EVEN`, :const:" +"`ROUND_HALF_UP`, :const:`ROUND_UP`, and :const:`ROUND_05UP`." +msgstr "" +"O contexto da aritmética é um ambiente que especifica precisão, regras de " +"arredondamento, limites de expoentes, sinalizadores indicando os resultados " +"das operações e ativadores de interceptação que determinam se os sinais são " +"tratados como exceções. As opções de arredondamento incluem :const:" +"`ROUND_CEILING`, :const:`ROUND_DOWN`, :const:`ROUND_FLOOR`, :const:" +"`ROUND_HALF_DOWN`, :const:`ROUND_HALF_EVEN`, :const:`ROUND_HALF_UP`, :const:" +"`ROUND_UP` e :const:`ROUND_05UP`." #: ../../library/decimal.rst:101 msgid "" "Signals are groups of exceptional conditions arising during the course of " "computation. Depending on the needs of the application, signals may be " "ignored, considered as informational, or treated as exceptions. The signals " -"in the decimal module are: :const:`Clamped`, :const:`InvalidOperation`, " -":const:`DivisionByZero`, :const:`Inexact`, :const:`Rounded`, " -":const:`Subnormal`, :const:`Overflow`, :const:`Underflow` and " -":const:`FloatOperation`." -msgstr "" +"in the decimal module are: :const:`Clamped`, :const:`InvalidOperation`, :" +"const:`DivisionByZero`, :const:`Inexact`, :const:`Rounded`, :const:" +"`Subnormal`, :const:`Overflow`, :const:`Underflow` and :const:" +"`FloatOperation`." +msgstr "" +"Sinais são grupos de condições excepcionais que surgem durante o curso da " +"computação. Dependendo das necessidades do aplicativo, os sinais podem ser " +"ignorados, considerados informativos ou tratados como exceções. Os sinais no " +"módulo decimal são: :const:`Clamped`, :const:`InvalidOperation`, :const:" +"`DivisionByZero`, :const:`Inexact`, :const:`Rounded`, :const:`Subnormal`, :" +"const:`Overflow`, :const:`Underflow` e :const:`FloatOperation`." #: ../../library/decimal.rst:108 msgid "" @@ -143,12 +203,19 @@ msgid "" "one, an exception is raised. Flags are sticky, so the user needs to reset " "them before monitoring a calculation." msgstr "" +"Para cada sinal, há um sinalizador e um ativador de interceptação. Quando um " +"sinal é encontrado, seu sinalizador é definido como um e, se o ativador de " +"interceptação estiver definido como um, uma exceção será gerada. Os " +"sinalizadores são fixos; portanto, o usuário precisa redefini-los antes de " +"monitorar um cálculo." #: ../../library/decimal.rst:116 msgid "" "IBM's General Decimal Arithmetic Specification, `The General Decimal " "Arithmetic Specification `_." msgstr "" +"A especificação geral aritmética decimal da IBM, `The General Decimal " +"Arithmetic Specification `_." #: ../../library/decimal.rst:125 msgid "Quick-start Tutorial" @@ -160,15 +227,24 @@ msgid "" "current context with :func:`getcontext` and, if necessary, setting new " "values for precision, rounding, or enabled traps::" msgstr "" +"O início usual do uso de decimais é importar o módulo, exibir o contexto " +"atual com :func:`getcontext` e, se necessário, definir novos valores para " +"precisão, arredondamento ou armadilhas ativados::" #: ../../library/decimal.rst:139 msgid "" "Decimal instances can be constructed from integers, strings, floats, or " -"tuples. Construction from an integer or a float performs an exact conversion" -" of the value of that integer or float. Decimal numbers include special " +"tuples. Construction from an integer or a float performs an exact conversion " +"of the value of that integer or float. Decimal numbers include special " "values such as :const:`NaN` which stands for \"Not a number\", positive and " "negative :const:`Infinity`, and :const:`-0`::" msgstr "" +"Instâncias decimais podem ser construídas a partir de números inteiros, " +"strings, pontos flutuantes ou tuplas. A construção de um número inteiro ou " +"de um ponto flutuante realiza uma conversão exata do valor desse número " +"inteiro ou ponto flutuante. Os números decimais incluem valores especiais " +"como :const:`NaN`, que significa \"Não é um número\", :const:`Infinity` " +"positivo e negativo e :const:`-0`::" #: ../../library/decimal.rst:163 msgid "" @@ -176,6 +252,9 @@ msgid "" "decimals and floats in constructors or ordering comparisons raises an " "exception::" msgstr "" +"Se o sinal :exc:`FloatOperation` for capturado na armadilha, a mistura " +"acidental de decimais e pontos flutuantes em construtores ou comparações de " +"ordenação levanta uma exceção::" #: ../../library/decimal.rst:182 msgid "" @@ -183,22 +262,29 @@ msgid "" "digits input. Context precision and rounding only come into play during " "arithmetic operations." msgstr "" +"O significado de um novo decimal é determinado apenas pelo número de dígitos " +"digitados. A precisão e o arredondamento do contexto só entram em jogo " +"durante operações aritméticas." #: ../../library/decimal.rst:199 msgid "" -"If the internal limits of the C version are exceeded, constructing a decimal" -" raises :class:`InvalidOperation`::" +"If the internal limits of the C version are exceeded, constructing a decimal " +"raises :class:`InvalidOperation`::" msgstr "" +"Se os limites internos da versão C forem excedidos, a construção de um " +"decimal levanta :class:`InvalidOperation`::" #: ../../library/decimal.rst:209 msgid "" "Decimals interact well with much of the rest of Python. Here is a small " "decimal floating point flying circus:" msgstr "" +"Os decimais interagem bem com grande parte do restante do Python. Aqui está " +"um pequeno circo voador de ponto flutuante decimal:" #: ../../library/decimal.rst:241 msgid "And some mathematical functions are also available to Decimal:" -msgstr "" +msgstr "E algumas funções matemáticas também estão disponíveis no Decimal:" #: ../../library/decimal.rst:253 msgid "" @@ -206,28 +292,41 @@ msgid "" "method is useful for monetary applications that often round results to a " "fixed number of places:" msgstr "" +"O método :meth:`quantize` arredonda um número para um expoente fixo. Esse " +"método é útil para aplicativos monetários que geralmente arredondam os " +"resultados para um número fixo de locais:" #: ../../library/decimal.rst:262 msgid "" -"As shown above, the :func:`getcontext` function accesses the current context" -" and allows the settings to be changed. This approach meets the needs of " +"As shown above, the :func:`getcontext` function accesses the current context " +"and allows the settings to be changed. This approach meets the needs of " "most applications." msgstr "" +"Como mostrado acima, a função :func:`getcontext` acessa o contexto atual e " +"permite que as configurações sejam alteradas. Essa abordagem atende às " +"necessidades da maioria das aplicações." #: ../../library/decimal.rst:266 msgid "" "For more advanced work, it may be useful to create alternate contexts using " -"the Context() constructor. To make an alternate active, use the " -":func:`setcontext` function." +"the Context() constructor. To make an alternate active, use the :func:" +"`setcontext` function." msgstr "" +"Para trabalhos mais avançados, pode ser útil criar contextos alternativos " +"usando o construtor Context(). Para ativar uma alternativa, use a função :" +"func:`setcontext`." #: ../../library/decimal.rst:270 msgid "" "In accordance with the standard, the :mod:`decimal` module provides two " -"ready to use standard contexts, :const:`BasicContext` and " -":const:`ExtendedContext`. The former is especially useful for debugging " -"because many of the traps are enabled:" +"ready to use standard contexts, :const:`BasicContext` and :const:" +"`ExtendedContext`. The former is especially useful for debugging because " +"many of the traps are enabled:" msgstr "" +"De acordo com o padrão, o módulo :mod:`decimal` fornece dois contextos " +"padrão prontos para uso, :const:`BasicContext` e :const:`ExtendedContext`. O " +"primeiro é especialmente útil para depuração porque muitas das armadilhas " +"estão ativadas:" #: ../../library/decimal.rst:299 msgid "" @@ -236,6 +335,11 @@ msgid "" "cleared, so it is best to clear the flags before each set of monitored " "computations by using the :meth:`clear_flags` method. ::" msgstr "" +"Os contextos também possuem sinalizadores para monitorar condições " +"excepcionais encontradas durante os cálculos. Os sinalizadores permanecem " +"definidos até que sejam explicitamente limpos, portanto, é melhor limpar os " +"sinalizadores antes de cada conjunto de cálculos monitorados usando o " +"método :meth:`clear_flags`. ::" #: ../../library/decimal.rst:312 msgid "" @@ -243,12 +347,17 @@ msgid "" "rounded (digits beyond the context precision were thrown away) and that the " "result is inexact (some of the discarded digits were non-zero)." msgstr "" +"A entrada *flags* mostra que a aproximação racional de :const:`Pi` foi " +"arredondada (dígitos além da precisão do contexto foram descartados) e que o " +"resultado é inexato (alguns dos dígitos descartados eram diferentes de zero)." #: ../../library/decimal.rst:316 msgid "" "Individual traps are set using the dictionary in the :attr:`traps` field of " "a context:" msgstr "" +"As armadilhas individuais são definidas usando o dicionário no campo :attr:" +"`traps` de um contexto:" #: ../../library/decimal.rst:331 msgid "" @@ -258,39 +367,57 @@ msgid "" "the bulk of the program manipulates the data no differently than with other " "Python numeric types." msgstr "" +"A maioria dos programas ajusta o contexto atual apenas uma vez, no início do " +"programa. E, em muitas aplicações, os dados são convertidos para :class:" +"`Decimal` com uma única conversão dentro de um loop. Com o conjunto de " +"contextos e decimais criados, a maior parte do programa manipula os dados de " +"maneira diferente do que com outros tipos numéricos do Python." #: ../../library/decimal.rst:343 msgid "Decimal objects" -msgstr "" +msgstr "Objetos de Decimal" #: ../../library/decimal.rst:348 msgid "Construct a new :class:`Decimal` object based from *value*." -msgstr "" +msgstr "Constrói um novo objeto de :class:`Decimal` com base em *value*." #: ../../library/decimal.rst:350 msgid "" -"*value* can be an integer, string, tuple, :class:`float`, or another " -":class:`Decimal` object. If no *value* is given, returns ``Decimal('0')``. " -"If *value* is a string, it should conform to the decimal numeric string " -"syntax after leading and trailing whitespace characters, as well as " -"underscores throughout, are removed::" +"*value* can be an integer, string, tuple, :class:`float`, or another :class:" +"`Decimal` object. If no *value* is given, returns ``Decimal('0')``. If " +"*value* is a string, it should conform to the decimal numeric string syntax " +"after leading and trailing whitespace characters, as well as underscores " +"throughout, are removed::" msgstr "" +"*value* pode ser um inteiro, string, tupla, :class:`float` ou outro :class:" +"`Decimal`. Se nenhum *value* for fornecido, retornará ``Decimal('0')``. Se " +"*value* for uma string, ele deverá estar em conformidade com a sintaxe " +"numérica decimal após caracteres de espaço em branco à esquerda e à direita, " +"bem como sublinhados em toda parte, serem removidos::" #: ../../library/decimal.rst:366 msgid "" "Other Unicode decimal digits are also permitted where ``digit`` appears " "above. These include decimal digits from various other alphabets (for " -"example, Arabic-Indic and Devanāgarī digits) along with the fullwidth digits" -" ``'\\uff10'`` through ``'\\uff19'``." +"example, Arabic-Indic and Devanāgarī digits) along with the fullwidth digits " +"``'\\uff10'`` through ``'\\uff19'``." msgstr "" +"Outros dígitos decimais Unicode também são permitidos onde ``dígito`` " +"aparece acima. Isso inclui dígitos decimais de vários outros alfabetos (por " +"exemplo, dígitos em árabe-índico e devanāgarī), além dos dígitos de largura " +"total ``'\\uff10'`` a ``'\\uff19'``." #: ../../library/decimal.rst:371 msgid "" -"If *value* is a :class:`tuple`, it should have three components, a sign " -"(:const:`0` for positive or :const:`1` for negative), a :class:`tuple` of " +"If *value* is a :class:`tuple`, it should have three components, a sign (:" +"const:`0` for positive or :const:`1` for negative), a :class:`tuple` of " "digits, and an integer exponent. For example, ``Decimal((0, (1, 4, 1, 4), " "-3))`` returns ``Decimal('1.414')``." msgstr "" +"Se *value* for uma :class:`tupla `, ele deverá ter três componentes, " +"um sinal (:const:`0` para positivo ou :const:`1` para negativo), uma :class:" +"`tupla ` de dígitos e um expoente inteiro. Por exemplo, ``Decimal((0, " +"(1, 4, 1, 4), -3))`` returna ``Decimal('1.414')``." #: ../../library/decimal.rst:376 msgid "" @@ -300,6 +427,11 @@ msgid "" "``Decimal(float('1.1'))`` converts to " "``Decimal('1.100000000000000088817841970012523233890533447265625')``." msgstr "" +"Se *value* é um :class:`float`, o valor do ponto flutuante binário é " +"convertido sem perdas no seu equivalente decimal exato. Essa conversão " +"geralmente requer 53 ou mais dígitos de precisão. Por exemplo, " +"``Decimal(float('1.1'))`` converte para " +"``Decimal('1.100000000000000088817841970012523233890533447265625')``." #: ../../library/decimal.rst:382 msgid "" @@ -308,6 +440,10 @@ msgid "" "``Decimal('3.00000')`` records all five zeros even if the context precision " "is only three." msgstr "" +"A precisão *context* não afeta quantos dígitos estão armazenados. Isso é " +"determinado exclusivamente pelo número de dígitos em *value*. Por exemplo, " +"``Decimal('3.00000')`` registra todos os cinco zeros, mesmo que a precisão " +"do contexto seja apenas três." #: ../../library/decimal.rst:387 msgid "" @@ -316,38 +452,53 @@ msgid "" "exception is raised; otherwise, the constructor returns a new Decimal with " "the value of :const:`NaN`." msgstr "" +"O objetivo do argumento *context* é determinar o que fazer se *value* for " +"uma string malformada. Se o contexto capturar :const:`InvalidOperation`, uma " +"exceção será levantada; caso contrário, o construtor retornará um novo " +"decimal com o valor de :const:`NaN`." #: ../../library/decimal.rst:392 msgid "Once constructed, :class:`Decimal` objects are immutable." -msgstr "" +msgstr "Uma vez construídos, objetos de :class:`Decimal` são imutáveis." #: ../../library/decimal.rst:394 msgid "" "The argument to the constructor is now permitted to be a :class:`float` " "instance." msgstr "" +"O argumento para o construtor agora pode ser uma instância :class:`float`." #: ../../library/decimal.rst:398 msgid "" ":class:`float` arguments raise an exception if the :exc:`FloatOperation` " "trap is set. By default the trap is off." msgstr "" +"Os argumentos de :class:`float` levantam uma exceção se a armadilha :exc:" +"`FloatOperation` estiver definida. Por padrão, a armadilha está desativada." #: ../../library/decimal.rst:402 msgid "" "Underscores are allowed for grouping, as with integral and floating-point " "literals in code." msgstr "" +"Sublinhados são permitidos para agrupamento, como nos literais de ponto " +"flutuante e integral no código." #: ../../library/decimal.rst:406 msgid "" -"Decimal floating point objects share many properties with the other built-in" -" numeric types such as :class:`float` and :class:`int`. All of the usual " -"math operations and special methods apply. Likewise, decimal objects can be" -" copied, pickled, printed, used as dictionary keys, used as set elements, " -"compared, sorted, and coerced to another type (such as :class:`float` or " -":class:`int`)." +"Decimal floating point objects share many properties with the other built-in " +"numeric types such as :class:`float` and :class:`int`. All of the usual " +"math operations and special methods apply. Likewise, decimal objects can be " +"copied, pickled, printed, used as dictionary keys, used as set elements, " +"compared, sorted, and coerced to another type (such as :class:`float` or :" +"class:`int`)." msgstr "" +"Objetos decimais de ponto flutuante compartilham muitas propriedades com " +"outros tipos numéricos internos, como :class:`float` e :class:`int`. Todas " +"as operações matemáticas usuais e métodos especiais se aplicam. Da mesma " +"forma, objetos decimais podem ser copiados, separados, impressos, usados " +"como chaves de dicionário, usados como elementos de conjunto, comparados, " +"classificados e coagidos a outro tipo (como :class:`float` ou :class:`int`)." #: ../../library/decimal.rst:413 msgid "" @@ -356,6 +507,10 @@ msgid "" "applied to Decimal objects, the sign of the result is the sign of the " "*dividend* rather than the sign of the divisor::" msgstr "" +"Existem algumas pequenas diferenças entre aritmética em objetos decimais e " +"aritmética em números inteiros e flutuantes. Quando o operador restante ``" +"%`` é aplicado a objetos decimais, o sinal do resultado é o sinal do " +"*dividend* em vez do sinal do divisor::" #: ../../library/decimal.rst:423 msgid "" @@ -363,35 +518,52 @@ msgid "" "integer part of the true quotient (truncating towards zero) rather than its " "floor, so as to preserve the usual identity ``x == (x // y) * y + x % y``::" msgstr "" +"O operador de divisão inteira ``//`` se comporta de maneira análoga, " +"retornando a parte inteira do quociente verdadeiro (truncando em direção a " +"zero) em vez de seu piso, de modo a preservar a identidade usual ``x == " +"(x // y) * y + x % y``::" #: ../../library/decimal.rst:432 msgid "" "The ``%`` and ``//`` operators implement the ``remainder`` and ``divide-" "integer`` operations (respectively) as described in the specification." msgstr "" +"Os operadores ``%`` e ``//`` implementam as operações de ``módulo`` e " +"``divisão inteira`` (respectivamente) como descrito na especificação." #: ../../library/decimal.rst:436 msgid "" -"Decimal objects cannot generally be combined with floats or instances of " -":class:`fractions.Fraction` in arithmetic operations: an attempt to add a " -":class:`Decimal` to a :class:`float`, for example, will raise a " -":exc:`TypeError`. However, it is possible to use Python's comparison " -"operators to compare a :class:`Decimal` instance ``x`` with another number " -"``y``. This avoids confusing results when doing equality comparisons " -"between numbers of different types." -msgstr "" +"Decimal objects cannot generally be combined with floats or instances of :" +"class:`fractions.Fraction` in arithmetic operations: an attempt to add a :" +"class:`Decimal` to a :class:`float`, for example, will raise a :exc:" +"`TypeError`. However, it is possible to use Python's comparison operators " +"to compare a :class:`Decimal` instance ``x`` with another number ``y``. " +"This avoids confusing results when doing equality comparisons between " +"numbers of different types." +msgstr "" +"Objetos decimais geralmente não podem ser combinados com pontos flutuantes " +"ou instâncias de :class:`fractions.Fraction` em operações aritméticas: uma " +"tentativa de adicionar um :class:`Decimal` a um :class:`float`, por exemplo, " +"levantará um :exc:`TypeError`. No entanto, é possível usar os operadores de " +"comparação do Python para comparar uma instância de :class:`Decimal` ``x`` " +"com outro número ``y``. Isso evita resultados confusos ao fazer comparações " +"de igualdade entre números de tipos diferentes." #: ../../library/decimal.rst:444 msgid "" "Mixed-type comparisons between :class:`Decimal` instances and other numeric " "types are now fully supported." msgstr "" +"As comparações de tipos mistos entre instâncias de :class:`Decimal` e outros " +"tipos numéricos agora são totalmente suportadas." #: ../../library/decimal.rst:448 msgid "" "In addition to the standard numeric properties, decimal floating point " "objects also have a number of specialized methods:" msgstr "" +"Além das propriedades numéricas padrão, os objetos de ponto flutuante " +"decimal também possuem vários métodos especializados:" #: ../../library/decimal.rst:454 msgid "" @@ -400,38 +572,54 @@ msgid "" "returns seven. Used for determining the position of the most significant " "digit with respect to the decimal point." msgstr "" +"Retorna o expoente ajustado depois de deslocar os dígitos mais à direita do " +"coeficiente até restar apenas o dígito principal: ``Decimal('321e+5')." +"adjusted()`` retorna sete. Usado para determinar a posição do dígito mais " +"significativo em relação ao ponto decimal." #: ../../library/decimal.rst:461 msgid "" -"Return a pair ``(n, d)`` of integers that represent the given " -":class:`Decimal` instance as a fraction, in lowest terms and with a positive" -" denominator::" +"Return a pair ``(n, d)`` of integers that represent the given :class:" +"`Decimal` instance as a fraction, in lowest terms and with a positive " +"denominator::" msgstr "" +"Retorna um par ``(n, d)`` de números inteiros que representam a instância " +"dada :class:`Decimal` como uma fração, nos termos mais baixos e com um " +"denominador positivo::" #: ../../library/decimal.rst:468 msgid "" "The conversion is exact. Raise OverflowError on infinities and ValueError " "on NaNs." msgstr "" +"A conversão é exata. Levanta OverflowError em infinitos e ValueError em NaNs." #: ../../library/decimal.rst:475 msgid "" "Return a :term:`named tuple` representation of the number: " "``DecimalTuple(sign, digits, exponent)``." msgstr "" +"Retorna uma representação de :term:`tupla nomeada ` do número: " +"``DecimalTuple(sinal, dígitos, exponente)``." #: ../../library/decimal.rst:481 msgid "" -"Return the canonical encoding of the argument. Currently, the encoding of a" -" :class:`Decimal` instance is always canonical, so this operation returns " +"Return the canonical encoding of the argument. Currently, the encoding of " +"a :class:`Decimal` instance is always canonical, so this operation returns " "its argument unchanged." msgstr "" +"Retorna a codificação canônica do argumento. Atualmente, a codificação de " +"uma instância de :class:`Decimal` é sempre canônica, portanto, esta operação " +"retorna seu argumento inalterado." #: ../../library/decimal.rst:487 msgid "" "Compare the values of two Decimal instances. :meth:`compare` returns a " "Decimal instance, and if either operand is a NaN then the result is a NaN::" msgstr "" +"Compara os valores de duas instâncias decimais. :meth:`compare` retorna uma " +"instância decimal, e se qualquer operando for um NaN, o resultado será um " +"NaN::" #: ../../library/decimal.rst:498 msgid "" @@ -439,6 +627,9 @@ msgid "" "NaNs signal. That is, if neither operand is a signaling NaN then any quiet " "NaN operand is treated as though it were a signaling NaN." msgstr "" +"Esta operação é idêntica ao método :meth:`compare`, exceto que todos os NaNs " +"sinalizam. Ou seja, se nenhum operando for um NaN sinalizador, qualquer " +"operando NaN silencioso será tratado como se fosse um NaN sinalizador." #: ../../library/decimal.rst:504 msgid "" @@ -448,16 +639,27 @@ msgid "" "instances with the same numeric value but different representations compare " "unequal in this ordering:" msgstr "" +"Compara dois operandos usando sua representação abstrata em vez de seu valor " +"numérico. Semelhante ao método :meth:`compare`, mas o resultado fornece uma " +"ordem total nas instâncias de :class:`Decimal`. Duas instâncias de :class:" +"`Decimal` com o mesmo valor numérico, mas diferentes representações se " +"comparam desiguais nesta ordem:" #: ../../library/decimal.rst:513 msgid "" "Quiet and signaling NaNs are also included in the total ordering. The " "result of this function is ``Decimal('0')`` if both operands have the same " -"representation, ``Decimal('-1')`` if the first operand is lower in the total" -" order than the second, and ``Decimal('1')`` if the first operand is higher " +"representation, ``Decimal('-1')`` if the first operand is lower in the total " +"order than the second, and ``Decimal('1')`` if the first operand is higher " "in the total order than the second operand. See the specification for " "details of the total order." msgstr "" +"Os NaNs silenciosos e sinalizadores também estão incluídos no pedido total. " +"O resultado dessa função é ``Decimal('0')`` se os dois operandos tiverem a " +"mesma representação, ``Decimal('- 1')`` se o primeiro operando for menor na " +"ordem total que o segundo e ``Decimal('1')`` se o primeiro operando for " +"maior na ordem total que o segundo operando. Veja a especificação para " +"detalhes da ordem total." #: ../../library/decimal.rst:520 ../../library/decimal.rst:531 #: ../../library/decimal.rst:559 ../../library/decimal.rst:834 @@ -466,49 +668,72 @@ msgid "" "and no rounding is performed. As an exception, the C version may raise " "InvalidOperation if the second operand cannot be converted exactly." msgstr "" +"Esta operação não é afetada pelo contexto e é silenciosa: nenhum sinalizador " +"é alterado e nenhum arredondamento é executado. Como uma exceção, a versão C " +"pode levantar InvalidOperation se o segundo operando não puder ser " +"convertido exatamente." #: ../../library/decimal.rst:526 msgid "" "Compare two operands using their abstract representation rather than their " "value as in :meth:`compare_total`, but ignoring the sign of each operand. " -"``x.compare_total_mag(y)`` is equivalent to " -"``x.copy_abs().compare_total(y.copy_abs())``." +"``x.compare_total_mag(y)`` is equivalent to ``x.copy_abs().compare_total(y." +"copy_abs())``." msgstr "" +"Compara dois operandos usando sua representação abstrata em vez de seu " +"valor, como em :meth:`compare_total`, mas ignorando o sinal de cada " +"operando. ``x.compare_total_mag(y)`` é equivalente a ``x.copy_abs()." +"compare_total(y.copy_abs())``." #: ../../library/decimal.rst:537 msgid "" "Just returns self, this method is only to comply with the Decimal " "Specification." msgstr "" +"Apenas retorna a si próprio, sendo esse método apenas para atender à " +"Especificação Decimal." #: ../../library/decimal.rst:542 msgid "" "Return the absolute value of the argument. This operation is unaffected by " "the context and is quiet: no flags are changed and no rounding is performed." msgstr "" +"Retorna o valor absoluto do argumento. Esta operação não é afetada pelo " +"contexto e é silenciosa: nenhum sinalizador é alterado e nenhum " +"arredondamento é executado." #: ../../library/decimal.rst:548 msgid "" "Return the negation of the argument. This operation is unaffected by the " "context and is quiet: no flags are changed and no rounding is performed." msgstr "" +"Retorna a negação do argumento. Esta operação não é afetada pelo contexto e " +"é silenciosa: nenhum sinalizador é alterado e nenhum arredondamento é " +"executado." #: ../../library/decimal.rst:553 msgid "" "Return a copy of the first operand with the sign set to be the same as the " "sign of the second operand. For example:" msgstr "" +"Retorna uma cópia do primeiro operando com o sinal definido para ser o mesmo " +"que o sinal do segundo operando. Por exemplo:" #: ../../library/decimal.rst:565 msgid "" -"Return the value of the (natural) exponential function ``e**x`` at the given" -" number. The result is correctly rounded using the :const:`ROUND_HALF_EVEN`" -" rounding mode." +"Return the value of the (natural) exponential function ``e**x`` at the given " +"number. The result is correctly rounded using the :const:`ROUND_HALF_EVEN` " +"rounding mode." msgstr "" +"Retorna o valor da função exponencial (natural) ``e**x`` no número " +"especificado. O resultado é arredondado corretamente usando o modo de " +"arredondamento :const:`ROUND_HALF_EVEN`." #: ../../library/decimal.rst:576 msgid "Classmethod that converts a float to a decimal number, exactly." msgstr "" +"Método de classe que converte um ponto flutuante em um número decimal, " +"exatamente." #: ../../library/decimal.rst:578 msgid "" @@ -518,18 +743,27 @@ msgid "" "That equivalent value in decimal is " "`0.1000000000000000055511151231257827021181583404541015625`." msgstr "" +"Observe que `Decimal.from_float(0.1)` não é o mesmo que `Decimal('0.1')`. " +"Como 0.1 não é exatamente representável no ponto flutuante binário, o valor " +"é armazenado como o valor representável mais próximo que é " +"`0x1.999999999999ap-4`. Esse valor equivalente em decimal é " +"`0.1000000000000000055511151231257827021181583404541015625`." #: ../../library/decimal.rst:584 msgid "" -"From Python 3.2 onwards, a :class:`Decimal` instance can also be constructed" -" directly from a :class:`float`." +"From Python 3.2 onwards, a :class:`Decimal` instance can also be constructed " +"directly from a :class:`float`." msgstr "" +"A partir do Python 3.2 em diante, uma instância de :class:`Decimal` também " +"pode ser construída diretamente a partir de um :class:`float`." #: ../../library/decimal.rst:602 msgid "" "Fused multiply-add. Return self*other+third with no rounding of the " "intermediate product self*other." msgstr "" +"Multiplicação e adição fundidos. Retorna self*other+third sem arredondamento " +"do produto intermediário self*other." #: ../../library/decimal.rst:610 msgid "" @@ -537,134 +771,186 @@ msgid "" "otherwise. Currently, a :class:`Decimal` instance is always canonical, so " "this operation always returns :const:`True`." msgstr "" +"Retorna :const:`True` se o argumento for canônico e :const:`False` caso " +"contrário. Atualmente, uma instância de :class:`Decimal` é sempre canônica, " +"portanto, esta operação sempre retorna :const:`True`." #: ../../library/decimal.rst:616 msgid "" "Return :const:`True` if the argument is a finite number, and :const:`False` " "if the argument is an infinity or a NaN." msgstr "" +"Retorna :const:`True` se o argumento for um número finito e :const:`False` " +"se o argumento for um infinito ou um NaN." #: ../../library/decimal.rst:621 msgid "" -"Return :const:`True` if the argument is either positive or negative infinity" -" and :const:`False` otherwise." +"Return :const:`True` if the argument is either positive or negative infinity " +"and :const:`False` otherwise." msgstr "" +"Retorna :const:`True` se o argumento for infinito positivo ou negativo e :" +"const:`False` caso contrário." #: ../../library/decimal.rst:626 msgid "" -"Return :const:`True` if the argument is a (quiet or signaling) NaN and " -":const:`False` otherwise." +"Return :const:`True` if the argument is a (quiet or signaling) NaN and :" +"const:`False` otherwise." msgstr "" +"Retorna :const:`True` se o argumento for NaN (silencioso ou sinalizador) e :" +"const:`False` caso contrário." #: ../../library/decimal.rst:631 msgid "" -"Return :const:`True` if the argument is a *normal* finite number. Return " -":const:`False` if the argument is zero, subnormal, infinite or a NaN." +"Return :const:`True` if the argument is a *normal* finite number. Return :" +"const:`False` if the argument is zero, subnormal, infinite or a NaN." msgstr "" +"Retorna :const:`True` se o argumento for um número finito *normal*. Retorna :" +"const:`False` se o argumento for zero, subnormal, infinito ou NaN." #: ../../library/decimal.rst:636 msgid "" "Return :const:`True` if the argument is a quiet NaN, and :const:`False` " "otherwise." msgstr "" +"Retorna :const:`True` se o argumento for um NaN silencioso, e :const:`False` " +"caso contrário." #: ../../library/decimal.rst:641 msgid "" "Return :const:`True` if the argument has a negative sign and :const:`False` " "otherwise. Note that zeros and NaNs can both carry signs." msgstr "" +"Retorna :const:`True` se o argumento tiver um sinal negativo e :const:" +"`False` caso contrário. Observe que zeros e NaNs podem carregar sinais." #: ../../library/decimal.rst:646 msgid "" "Return :const:`True` if the argument is a signaling NaN and :const:`False` " "otherwise." msgstr "" +"Retorna :const:`True` se o argumento for um sinal NaN e :const:`False` caso " +"contrário." #: ../../library/decimal.rst:651 msgid "" "Return :const:`True` if the argument is subnormal, and :const:`False` " "otherwise." msgstr "" +"Retorna :const:`True` se o argumento for subnormal, e :const:`False` caso " +"contrário." #: ../../library/decimal.rst:656 msgid "" -"Return :const:`True` if the argument is a (positive or negative) zero and " -":const:`False` otherwise." +"Return :const:`True` if the argument is a (positive or negative) zero and :" +"const:`False` otherwise." msgstr "" +"Retorna :const:`True` se o argumento for um zero (positivo ou negativo) e :" +"const:`False` caso contrário." #: ../../library/decimal.rst:661 msgid "" "Return the natural (base e) logarithm of the operand. The result is " "correctly rounded using the :const:`ROUND_HALF_EVEN` rounding mode." msgstr "" +"Retorna o logaritmo (base e) natural do operando. O resultado é arredondado " +"corretamente usando o modo de arredondamento :const:`ROUND_HALF_EVEN`." #: ../../library/decimal.rst:666 msgid "" "Return the base ten logarithm of the operand. The result is correctly " "rounded using the :const:`ROUND_HALF_EVEN` rounding mode." msgstr "" +"Retorna o logaritmo da base dez do operando. O resultado é arredondado " +"corretamente usando o modo de arredondamento :const:`ROUND_HALF_EVEN`." #: ../../library/decimal.rst:671 msgid "" -"For a nonzero number, return the adjusted exponent of its operand as a " -":class:`Decimal` instance. If the operand is a zero then " -"``Decimal('-Infinity')`` is returned and the :const:`DivisionByZero` flag is" -" raised. If the operand is an infinity then ``Decimal('Infinity')`` is " -"returned." +"For a nonzero number, return the adjusted exponent of its operand as a :" +"class:`Decimal` instance. If the operand is a zero then ``Decimal('-" +"Infinity')`` is returned and the :const:`DivisionByZero` flag is raised. If " +"the operand is an infinity then ``Decimal('Infinity')`` is returned." msgstr "" +"Para um número diferente de zero, retorna o expoente ajustado de seu " +"operando como uma instância de :class:`Decimal`. Se o operando é zero, " +"``Decimal('-Infinity')`` é retornado e o sinalizador :const:`DivisionByZero` " +"é levantado. Se o operando for um infinito, ``Decimal('Infinity')`` será " +"retornado." #: ../../library/decimal.rst:679 msgid "" ":meth:`logical_and` is a logical operation which takes two *logical " -"operands* (see :ref:`logical_operands_label`). The result is the digit-wise" -" ``and`` of the two operands." +"operands* (see :ref:`logical_operands_label`). The result is the digit-wise " +"``and`` of the two operands." msgstr "" +":meth:`logic_and` é uma operação lógica que leva dois *operandos lógicos* " +"(consulte :ref:`logic_operands_label`). O resultado é o ``and`` dígito a " +"dígito dos dois operandos." #: ../../library/decimal.rst:685 msgid "" -":meth:`logical_invert` is a logical operation. The result is the digit-wise" -" inversion of the operand." +":meth:`logical_invert` is a logical operation. The result is the digit-wise " +"inversion of the operand." msgstr "" +":meth:`logical_invert` é uma operação lógica. O resultado é a inversão " +"dígito a dígito do operando." #: ../../library/decimal.rst:690 msgid "" -":meth:`logical_or` is a logical operation which takes two *logical operands*" -" (see :ref:`logical_operands_label`). The result is the digit-wise ``or`` " -"of the two operands." +":meth:`logical_or` is a logical operation which takes two *logical operands* " +"(see :ref:`logical_operands_label`). The result is the digit-wise ``or`` of " +"the two operands." msgstr "" +":meth:`logic_or` é uma operação lógica que leva dois *operandos lógicos* " +"(consulte :ref:`logic_operands_label`). O resultado é o ``or`` dígito a " +"dígito dos dois operandos." #: ../../library/decimal.rst:696 msgid "" ":meth:`logical_xor` is a logical operation which takes two *logical " -"operands* (see :ref:`logical_operands_label`). The result is the digit-wise" -" exclusive or of the two operands." +"operands* (see :ref:`logical_operands_label`). The result is the digit-wise " +"exclusive or of the two operands." msgstr "" +":meth:`logical_xor` é uma operação lógica que leva dois *operandos lógicos* " +"(consulte :ref:`logic_operands_label`). O resultado é o ou exclusivo dígito " +"a dígito ou dos dois operandos." #: ../../library/decimal.rst:702 msgid "" "Like ``max(self, other)`` except that the context rounding rule is applied " -"before returning and that :const:`NaN` values are either signaled or ignored" -" (depending on the context and whether they are signaling or quiet)." +"before returning and that :const:`NaN` values are either signaled or ignored " +"(depending on the context and whether they are signaling or quiet)." msgstr "" +"Semelhante a ``max(self, other)``, exceto que a regra de arredondamento de " +"contexto é aplicada antes de retornar e que os valores :const:`NaN` são " +"sinalizados ou ignorados (dependendo do contexto e se estão sinalizando ou " +"silenciosos)." #: ../../library/decimal.rst:709 msgid "" "Similar to the :meth:`.max` method, but the comparison is done using the " "absolute values of the operands." msgstr "" +"Semelhante ao método :meth:`.max`, mas a comparação é feita usando os " +"valores absolutos dos operandos." #: ../../library/decimal.rst:714 msgid "" "Like ``min(self, other)`` except that the context rounding rule is applied " -"before returning and that :const:`NaN` values are either signaled or ignored" -" (depending on the context and whether they are signaling or quiet)." +"before returning and that :const:`NaN` values are either signaled or ignored " +"(depending on the context and whether they are signaling or quiet)." msgstr "" +"Semelhante a ``min(self, other)``, exceto que a regra de arredondamento de " +"contexto é aplicada antes de retornar e que os valores :const:`NaN` são " +"sinalizados ou ignorados (dependendo do contexto e se estão sinalizando ou " +"silenciosos)." #: ../../library/decimal.rst:721 msgid "" "Similar to the :meth:`.min` method, but the comparison is done using the " "absolute values of the operands." msgstr "" +"Semelhante ao método :meth:`.min`, mas a comparação é feita usando os " +"valores absolutos dos operandos." #: ../../library/decimal.rst:726 msgid "" @@ -672,6 +958,9 @@ msgid "" "current thread's context if no context is given) that is smaller than the " "given operand." msgstr "" +"Retorna o maior número representável no contexto fornecido (ou no contexto " +"atual da thread, se nenhum contexto for fornecido) que seja menor que o " +"operando especificado." #: ../../library/decimal.rst:732 msgid "" @@ -679,6 +968,9 @@ msgid "" "current thread's context if no context is given) that is larger than the " "given operand." msgstr "" +"Retorna o menor número representável no contexto fornecido (ou no contexto " +"atual da thread, se nenhum contexto for fornecido) que seja maior que o " +"operando fornecido." #: ../../library/decimal.rst:738 msgid "" @@ -687,118 +979,156 @@ msgid "" "numerically equal, return a copy of the first operand with the sign set to " "be the same as the sign of the second operand." msgstr "" +"Se os dois operandos forem desiguais, retorna o número mais próximo ao " +"primeiro operando na direção do segundo operando. Se os dois operandos forem " +"numericamente iguais, retorne uma cópia do primeiro operando com o sinal " +"configurado para ser o mesmo que o sinal do segundo operando." #: ../../library/decimal.rst:745 msgid "" "Normalize the number by stripping the rightmost trailing zeros and " -"converting any result equal to :const:`Decimal('0')` to " -":const:`Decimal('0e0')`. Used for producing canonical values for attributes " -"of an equivalence class. For example, ``Decimal('32.100')`` and " +"converting any result equal to :const:`Decimal('0')` to :const:" +"`Decimal('0e0')`. Used for producing canonical values for attributes of an " +"equivalence class. For example, ``Decimal('32.100')`` and " "``Decimal('0.321000e+2')`` both normalize to the equivalent value " "``Decimal('32.1')``." msgstr "" +"Normaliza o número eliminando os zeros à direita e convertendo qualquer " +"resultado igual a :const:`Decimal('0')` para :const:`Decimal('0e0')`. Usado " +"para produzir valores canônicos para atributos de uma classe de " +"equivalência. Por exemplo, ``Decimal('32.100')`` e ``Decimal('0.321000e" +"+2')`` normalizam com o valor equivalente ``Decimal('32.1')``." #: ../../library/decimal.rst:754 msgid "" "Return a string describing the *class* of the operand. The returned value " "is one of the following ten strings." msgstr "" +"Retorna uma string descrevendo a *classe* do operando. O valor retornado é " +"uma das dez sequências a seguir." #: ../../library/decimal.rst:757 msgid "``\"-Infinity\"``, indicating that the operand is negative infinity." -msgstr "" +msgstr "``\"-Infinity\"``, indicando que o operando é infinito negativo." #: ../../library/decimal.rst:758 -msgid "``\"-Normal\"``, indicating that the operand is a negative normal number." -msgstr "" +msgid "" +"``\"-Normal\"``, indicating that the operand is a negative normal number." +msgstr "``\"-Normal\"``, indicando que o operando é um número normal negativo." #: ../../library/decimal.rst:759 -msgid "``\"-Subnormal\"``, indicating that the operand is negative and subnormal." -msgstr "" +msgid "" +"``\"-Subnormal\"``, indicating that the operand is negative and subnormal." +msgstr "``\"-Subnormal\"``, indicando que o operando é negativo e subnormal." #: ../../library/decimal.rst:760 msgid "``\"-Zero\"``, indicating that the operand is a negative zero." -msgstr "" +msgstr "``\"-Zero\"``, indicando que o operando é um zero negativo." #: ../../library/decimal.rst:761 msgid "``\"+Zero\"``, indicating that the operand is a positive zero." -msgstr "" +msgstr "``\"+Zero\"``, indicando que o operando é um zero positivo." #: ../../library/decimal.rst:762 -msgid "``\"+Subnormal\"``, indicating that the operand is positive and subnormal." -msgstr "" +msgid "" +"``\"+Subnormal\"``, indicating that the operand is positive and subnormal." +msgstr "``\"+Subnormal\"``, indicando que o operando é positivo e subnormal." #: ../../library/decimal.rst:763 -msgid "``\"+Normal\"``, indicating that the operand is a positive normal number." -msgstr "" +msgid "" +"``\"+Normal\"``, indicating that the operand is a positive normal number." +msgstr "``\"+Normal\"``, indicando que o operando é um número normal positivo." #: ../../library/decimal.rst:764 msgid "``\"+Infinity\"``, indicating that the operand is positive infinity." -msgstr "" +msgstr "``\"+Infinity\"``, indicando que o operando é infinito positivo." #: ../../library/decimal.rst:765 msgid "``\"NaN\"``, indicating that the operand is a quiet NaN (Not a Number)." msgstr "" +"``\"NaN\"``, indicando que o operando é um NaN silencioso (não é um número)." #: ../../library/decimal.rst:766 msgid "``\"sNaN\"``, indicating that the operand is a signaling NaN." -msgstr "" +msgstr "``\"sNaN\"``, indicando que o operando é um NaN sinalizador." #: ../../library/decimal.rst:770 msgid "" "Return a value equal to the first operand after rounding and having the " "exponent of the second operand." msgstr "" +"Retorna um valor igual ao primeiro operando após o arredondamento e com o " +"expoente do segundo operando." #: ../../library/decimal.rst:776 msgid "" -"Unlike other operations, if the length of the coefficient after the quantize" -" operation would be greater than precision, then an " -":const:`InvalidOperation` is signaled. This guarantees that, unless there is" -" an error condition, the quantized exponent is always equal to that of the " -"right-hand operand." +"Unlike other operations, if the length of the coefficient after the quantize " +"operation would be greater than precision, then an :const:`InvalidOperation` " +"is signaled. This guarantees that, unless there is an error condition, the " +"quantized exponent is always equal to that of the right-hand operand." msgstr "" +"Diferentemente de outras operações, se o comprimento do coeficiente após a " +"operação de quantização for maior que a precisão, então :const:" +"`InvalidOperation` é sinalizado. Isso garante que, a menos que haja uma " +"condição de erro, o expoente quantizado é sempre igual ao do operando do " +"lado direito." #: ../../library/decimal.rst:782 msgid "" "Also unlike other operations, quantize never signals Underflow, even if the " "result is subnormal and inexact." msgstr "" +"Também, diferentemente de outras operações, a quantização nunca sinaliza " +"Underflow, mesmo que o resultado seja subnormal e inexato." #: ../../library/decimal.rst:785 msgid "" "If the exponent of the second operand is larger than that of the first then " -"rounding may be necessary. In this case, the rounding mode is determined by" -" the ``rounding`` argument if given, else by the given ``context`` argument;" -" if neither argument is given the rounding mode of the current thread's " +"rounding may be necessary. In this case, the rounding mode is determined by " +"the ``rounding`` argument if given, else by the given ``context`` argument; " +"if neither argument is given the rounding mode of the current thread's " "context is used." msgstr "" +"Se o expoente do segundo operando for maior que o do primeiro, o " +"arredondamento poderá ser necessário. Nesse caso, o modo de arredondamento é " +"determinado pelo argumento ``rounding``, se fornecido, ou pelo argumento " +"``context`` fornecido; se nenhum argumento for fornecido, o modo de " +"arredondamento do contexto da thread atual será usado." #: ../../library/decimal.rst:791 msgid "" -"An error is returned whenever the resulting exponent is greater than " -":attr:`Emax` or less than :attr:`Etiny`." +"An error is returned whenever the resulting exponent is greater than :attr:" +"`Emax` or less than :attr:`Etiny`." msgstr "" +"Um erro é retornado sempre que o expoente resultante for maior que :attr:" +"`Emax` ou menor que :attr:`Etiny`." #: ../../library/decimal.rst:796 msgid "" -"Return ``Decimal(10)``, the radix (base) in which the :class:`Decimal` class" -" does all its arithmetic. Included for compatibility with the " -"specification." +"Return ``Decimal(10)``, the radix (base) in which the :class:`Decimal` class " +"does all its arithmetic. Included for compatibility with the specification." msgstr "" +"Retorna ``Decimal(10)``, a raiz (base) na qual a classe :class:`Decimal` faz " +"toda a sua aritmética. Incluído para compatibilidade com a especificação." #: ../../library/decimal.rst:802 msgid "" "Return the remainder from dividing *self* by *other*. This differs from " "``self % other`` in that the sign of the remainder is chosen so as to " -"minimize its absolute value. More precisely, the return value is ``self - n" -" * other`` where ``n`` is the integer nearest to the exact value of ``self /" -" other``, and if two integers are equally near then the even one is chosen." +"minimize its absolute value. More precisely, the return value is ``self - n " +"* other`` where ``n`` is the integer nearest to the exact value of ``self / " +"other``, and if two integers are equally near then the even one is chosen." msgstr "" +"Retorna o resto da divisão de *self* por *other*. Isso é diferente de ``self " +"% other``, pois o sinal do resto é escolhido para minimizar seu valor " +"absoluto. Mais precisamente, o valor de retorno é ``self - n * other``, onde " +"``n`` é o número inteiro mais próximo do valor exato de ``self / other``, e " +"se dois números inteiros estiverem igualmente próximos, o par será é " +"escolhido." #: ../../library/decimal.rst:809 msgid "If the result is zero then its sign will be the sign of *self*." -msgstr "" +msgstr "Se o resultado for zero, seu sinal será o sinal de *self*." #: ../../library/decimal.rst:820 msgid "" @@ -811,19 +1141,33 @@ msgid "" "length precision if necessary. The sign and exponent of the first operand " "are unchanged." msgstr "" +"Retorna o resultado da rotação dos dígitos do primeiro operando em uma " +"quantidade especificada pelo segundo operando. O segundo operando deve ser " +"um número inteiro no intervalo - precisão através da precisão. O valor " +"absoluto do segundo operando fornece o número de locais a serem " +"rotacionados. Se o segundo operando for positivo, a rotação será para a " +"esquerda; caso contrário, a rotação será para a direita. O coeficiente do " +"primeiro operando é preenchido à esquerda com zeros na precisão do " +"comprimento, se necessário. O sinal e o expoente do primeiro operando não " +"são alterados." #: ../../library/decimal.rst:831 msgid "" -"Test whether self and other have the same exponent or whether both are " -":const:`NaN`." +"Test whether self and other have the same exponent or whether both are :" +"const:`NaN`." msgstr "" +"Testa se \"self\" e \"other\" têm o mesmo expoente ou se ambos são :const:" +"`NaN`." #: ../../library/decimal.rst:840 msgid "" -"Return the first operand with exponent adjusted by the second. Equivalently," -" return the first operand multiplied by ``10**other``. The second operand " +"Return the first operand with exponent adjusted by the second. Equivalently, " +"return the first operand multiplied by ``10**other``. The second operand " "must be an integer." msgstr "" +"Retorna o primeiro operando com o expoente ajustado pelo segundo. Da mesma " +"forma, retorna o primeiro operando multiplicado por ``10**other``. O segundo " +"operando deve ser um número inteiro." #: ../../library/decimal.rst:846 msgid "" @@ -831,19 +1175,29 @@ msgid "" "specified by the second operand. The second operand must be an integer in " "the range -precision through precision. The absolute value of the second " "operand gives the number of places to shift. If the second operand is " -"positive then the shift is to the left; otherwise the shift is to the right." -" Digits shifted into the coefficient are zeros. The sign and exponent of " -"the first operand are unchanged." -msgstr "" +"positive then the shift is to the left; otherwise the shift is to the " +"right. Digits shifted into the coefficient are zeros. The sign and " +"exponent of the first operand are unchanged." +msgstr "" +"Retorna o resultado da troca dos dígitos do primeiro operando em uma " +"quantidade especificada pelo segundo operando. O segundo operando deve ser " +"um número inteiro no intervalo - precisão através da precisão. O valor " +"absoluto do segundo operando fornece o número de locais a serem deslocados. " +"Se o segundo operando for positivo, o deslocamento será para a esquerda; " +"caso contrário, a mudança é para a direita. Os dígitos deslocados para o " +"coeficiente são zeros. O sinal e o expoente do primeiro operando não são " +"alterados." #: ../../library/decimal.rst:856 msgid "Return the square root of the argument to full precision." -msgstr "" +msgstr "Retorna a raiz quadrada do argumento para a precisão total." #: ../../library/decimal.rst:861 ../../library/decimal.rst:1437 msgid "" "Convert to a string, using engineering notation if an exponent is needed." msgstr "" +"Converte em uma string, usando notação de engenharia, se for necessário um " +"expoente." #: ../../library/decimal.rst:863 ../../library/decimal.rst:1439 msgid "" @@ -851,75 +1205,100 @@ msgid "" "leave up to 3 digits to the left of the decimal place and may require the " "addition of either one or two trailing zeros." msgstr "" +"A notação de engenharia possui um expoente que é múltiplo de 3. Isso pode " +"deixar até 3 dígitos à esquerda da casa decimal e pode exigir a adição de um " +"ou dois zeros à direita." #: ../../library/decimal.rst:867 msgid "" "For example, this converts ``Decimal('123E+1')`` to ``Decimal('1.23E+3')``." msgstr "" +"Por exemplo, isso converte ``Decimal('123E+1')`` para ``Decimal('1.23E+3')``." #: ../../library/decimal.rst:871 msgid "" -"Identical to the :meth:`to_integral_value` method. The ``to_integral`` name" -" has been kept for compatibility with older versions." +"Identical to the :meth:`to_integral_value` method. The ``to_integral`` name " +"has been kept for compatibility with older versions." msgstr "" +"Idêntico ao método :meth:`to_integral_value`. O nome ``to_integral`` foi " +"mantido para compatibilidade com versões mais antigas." #: ../../library/decimal.rst:876 msgid "" -"Round to the nearest integer, signaling :const:`Inexact` or :const:`Rounded`" -" as appropriate if rounding occurs. The rounding mode is determined by the " +"Round to the nearest integer, signaling :const:`Inexact` or :const:`Rounded` " +"as appropriate if rounding occurs. The rounding mode is determined by the " "``rounding`` parameter if given, else by the given ``context``. If neither " "parameter is given then the rounding mode of the current context is used." msgstr "" +"Arredonda para o número inteiro mais próximo, sinalizando :const:`Inexact` " +"ou :const:`Rounded`, conforme apropriado, se o arredondamento ocorrer. O " +"modo de arredondamento é determinado pelo parâmetro `rouding``, se " +"fornecido, ou pelo ``context`` especificado. Se nenhum parâmetro for " +"fornecido, o modo de arredondamento do contexto atual será usado." #: ../../library/decimal.rst:884 msgid "" -"Round to the nearest integer without signaling :const:`Inexact` or " -":const:`Rounded`. If given, applies *rounding*; otherwise, uses the " -"rounding method in either the supplied *context* or the current context." +"Round to the nearest integer without signaling :const:`Inexact` or :const:" +"`Rounded`. If given, applies *rounding*; otherwise, uses the rounding " +"method in either the supplied *context* or the current context." msgstr "" +"Arredonda para o número inteiro mais próximo sem sinalizar :const:`Inexact` " +"ou :const:`Rounding`. Se fornecido, aplica *rounding*; caso contrário, usa o " +"método de arredondamento no *context* especificado ou no contexto atual." #: ../../library/decimal.rst:892 msgid "Logical operands" -msgstr "" +msgstr "Operandos lógicos" #: ../../library/decimal.rst:894 msgid "" -"The :meth:`logical_and`, :meth:`logical_invert`, :meth:`logical_or`, and " -":meth:`logical_xor` methods expect their arguments to be *logical operands*." -" A *logical operand* is a :class:`Decimal` instance whose exponent and sign" -" are both zero, and whose digits are all either :const:`0` or :const:`1`." +"The :meth:`logical_and`, :meth:`logical_invert`, :meth:`logical_or`, and :" +"meth:`logical_xor` methods expect their arguments to be *logical operands*. " +"A *logical operand* is a :class:`Decimal` instance whose exponent and sign " +"are both zero, and whose digits are all either :const:`0` or :const:`1`." msgstr "" +"Os métodos :meth:`logical_and`, :meth:`logical_invert`, :meth:`logical_or` " +"e :meth:`logical_xor` esperam que seus argumentos sejam *operandos lógicos*. " +"Um *operando lógico* é uma instância de :class:`Decimal` cujo expoente e " +"sinal são zero e cujos dígitos são todos :const:`0` ou :const:`1`." #: ../../library/decimal.rst:906 msgid "Context objects" -msgstr "" +msgstr "Objetos de contexto" #: ../../library/decimal.rst:908 msgid "" -"Contexts are environments for arithmetic operations. They govern precision," -" set rules for rounding, determine which signals are treated as exceptions, " +"Contexts are environments for arithmetic operations. They govern precision, " +"set rules for rounding, determine which signals are treated as exceptions, " "and limit the range for exponents." msgstr "" +"Contextos são ambientes para operações aritméticas. Eles governam a " +"precisão, estabelecem regras para arredondamento, determinam quais sinais " +"são tratados como exceções e limitam o alcance dos expoentes." #: ../../library/decimal.rst:912 msgid "" "Each thread has its own current context which is accessed or changed using " "the :func:`getcontext` and :func:`setcontext` functions:" msgstr "" +"Cada thread possui seu próprio contexto atual que é acessado ou alterado " +"usando as funções :func:`getcontext` e :func:`setcontext`:" #: ../../library/decimal.rst:918 msgid "Return the current context for the active thread." -msgstr "" +msgstr "Retorna o contexto atual para a thread ativa." #: ../../library/decimal.rst:923 msgid "Set the current context for the active thread to *c*." -msgstr "" +msgstr "Define o contexto atual para a thread ativa como *C*." #: ../../library/decimal.rst:925 msgid "" "You can also use the :keyword:`with` statement and the :func:`localcontext` " "function to temporarily change the active context." msgstr "" +"Você também pode usar a instrução :keyword:`with` e a função func:" +"`localcontext` para alterar temporariamente o contexto ativo." #: ../../library/decimal.rst:930 msgid "" @@ -928,49 +1307,74 @@ msgid "" "previous context when exiting the with-statement. If no context is " "specified, a copy of the current context is used." msgstr "" +"Retorna um gerenciador de contexto que vai definir o contexto atual da " +"thread ativa para uma cópia de *ctx* na entrada da instrução \"with\" e " +"restaurar o contexto anterior ao sair da instrução \"with\". Se nenhum " +"contexto for especificado, uma cópia do contexto atual será usada." #: ../../library/decimal.rst:935 msgid "" "For example, the following code sets the current decimal precision to 42 " -"places, performs a calculation, and then automatically restores the previous" -" context::" +"places, performs a calculation, and then automatically restores the previous " +"context::" msgstr "" +"Por exemplo, o código a seguir define a precisão decimal atual para 42 " +"casas, executa um cálculo e restaura automaticamente o contexto anterior::" #: ../../library/decimal.rst:945 msgid "" "New contexts can also be created using the :class:`Context` constructor " "described below. In addition, the module provides three pre-made contexts:" msgstr "" +"Novos contextos também podem ser criados usando o construtor :class:" +"`Context` descrito abaixo. Além disso, o módulo fornece três contextos pré-" +"criados::" #: ../../library/decimal.rst:951 msgid "" "This is a standard context defined by the General Decimal Arithmetic " -"Specification. Precision is set to nine. Rounding is set to " -":const:`ROUND_HALF_UP`. All flags are cleared. All traps are enabled " -"(treated as exceptions) except :const:`Inexact`, :const:`Rounded`, and " -":const:`Subnormal`." +"Specification. Precision is set to nine. Rounding is set to :const:" +"`ROUND_HALF_UP`. All flags are cleared. All traps are enabled (treated as " +"exceptions) except :const:`Inexact`, :const:`Rounded`, and :const:" +"`Subnormal`." msgstr "" +"Este é um contexto padrão definido pela Especificação Aritmética Decimal " +"Geral. A precisão está definida como nove. O arredondamento está definido " +"como :const:`ROUND_HALF_UP`. Todos os sinalizadores são limpos. Todos as " +"armadilhas estão ativadas (tratadas como exceções), exceto por :const:" +"`Inexact`, :const:`Rounded` e :const:`Subnormal`." #: ../../library/decimal.rst:957 msgid "" "Because many of the traps are enabled, this context is useful for debugging." msgstr "" +"Como muitas das armadilhas estão ativadas, esse contexto é útil para " +"depuração." #: ../../library/decimal.rst:962 msgid "" "This is a standard context defined by the General Decimal Arithmetic " -"Specification. Precision is set to nine. Rounding is set to " -":const:`ROUND_HALF_EVEN`. All flags are cleared. No traps are enabled (so " -"that exceptions are not raised during computations)." +"Specification. Precision is set to nine. Rounding is set to :const:" +"`ROUND_HALF_EVEN`. All flags are cleared. No traps are enabled (so that " +"exceptions are not raised during computations)." msgstr "" +"Este é um contexto padrão definido pela Especificação Aritmética Decimal " +"Geral. A precisão está definida como nove. O arredondamento está definido " +"como :const:`ROUND_HALF_EVEN`. Todos os sinalizadores estão limpos. Nenhuma " +"armadilha está ativada (de forma que exceções não são levantadas durante os " +"cálculos)." #: ../../library/decimal.rst:967 msgid "" -"Because the traps are disabled, this context is useful for applications that" -" prefer to have result value of :const:`NaN` or :const:`Infinity` instead of" -" raising exceptions. This allows an application to complete a run in the " +"Because the traps are disabled, this context is useful for applications that " +"prefer to have result value of :const:`NaN` or :const:`Infinity` instead of " +"raising exceptions. This allows an application to complete a run in the " "presence of conditions that would otherwise halt the program." msgstr "" +"Como as armadilhas estão desativadas, esse contexto é útil para aplicativos " +"que preferem ter o valor de resultado de :const:`NaN` ou :const:`Infinity` " +"em vez de levantar exceções. Isso permite que um aplicativo conclua uma " +"execução na presença de condições que interromperiam o programa." #: ../../library/decimal.rst:975 msgid "" @@ -979,66 +1383,95 @@ msgid "" "changing the default for new contexts created by the :class:`Context` " "constructor." msgstr "" +"Este contexto é usado pelo construtor :class:`Context` como um protótipo " +"para novos contextos. Alterar um campo (tal como precisão) tem o efeito de " +"alterar o padrão para novos contextos criados pelo construtor :class:" +"`Context`." #: ../../library/decimal.rst:979 msgid "" -"This context is most useful in multi-threaded environments. Changing one of" -" the fields before threads are started has the effect of setting system-wide" -" defaults. Changing the fields after threads have started is not " -"recommended as it would require thread synchronization to prevent race " -"conditions." +"This context is most useful in multi-threaded environments. Changing one of " +"the fields before threads are started has the effect of setting system-wide " +"defaults. Changing the fields after threads have started is not recommended " +"as it would require thread synchronization to prevent race conditions." msgstr "" +"Esse contexto é mais útil em ambientes multithread. A alteração de um dos " +"campos antes do início das threads tem o efeito de definir os padrões para " +"todo o sistema. Não é recomendável alterar os campos após o início das " +"threads, pois exigiria sincronização de threads para evitar condições de " +"corrida." #: ../../library/decimal.rst:984 msgid "" -"In single threaded environments, it is preferable to not use this context at" -" all. Instead, simply create contexts explicitly as described below." +"In single threaded environments, it is preferable to not use this context at " +"all. Instead, simply create contexts explicitly as described below." msgstr "" +"Em ambientes de thread única, é preferível não usar esse contexto. Em vez " +"disso, basta criar contextos explicitamente, conforme descrito abaixo." #: ../../library/decimal.rst:987 msgid "" -"The default values are :attr:`prec`\\ =\\ :const:`28`, :attr:`rounding`\\ " -"=\\ :const:`ROUND_HALF_EVEN`, and enabled traps for :class:`Overflow`, " -":class:`InvalidOperation`, and :class:`DivisionByZero`." +"The default values are :attr:`prec`\\ =\\ :const:`28`, :attr:`rounding`\\ =" +"\\ :const:`ROUND_HALF_EVEN`, and enabled traps for :class:`Overflow`, :class:" +"`InvalidOperation`, and :class:`DivisionByZero`." msgstr "" +"Os valores padrão são :attr:`prec`\\ =\\ :const:`28`, :attr:`rounding`\\ =" +"\\ :const:`ROUND_HALF_EVEN` e armadilhas ativadas para :class:`Overflow`, :" +"class:`InvalidOperation` e :class:`DivisionByZero`." #: ../../library/decimal.rst:992 msgid "" -"In addition to the three supplied contexts, new contexts can be created with" -" the :class:`Context` constructor." +"In addition to the three supplied contexts, new contexts can be created with " +"the :class:`Context` constructor." msgstr "" +"Além dos três contextos fornecidos, novos contextos podem ser criados com o " +"construtor :class:`Context`." #: ../../library/decimal.rst:998 msgid "" -"Creates a new context. If a field is not specified or is :const:`None`, the" -" default values are copied from the :const:`DefaultContext`. If the *flags*" -" field is not specified or is :const:`None`, all flags are cleared." +"Creates a new context. If a field is not specified or is :const:`None`, the " +"default values are copied from the :const:`DefaultContext`. If the *flags* " +"field is not specified or is :const:`None`, all flags are cleared." msgstr "" +"Cria um novo contexto. Se um campo não for especificado ou for :const:" +"`None`, os valores padrão serão copiados de :const:`DefaultContext`. Se o " +"campo *flags* não for especificado ou for :const:`None`, todos os " +"sinalizadores serão limpados." #: ../../library/decimal.rst:1002 msgid "" "*prec* is an integer in the range [:const:`1`, :const:`MAX_PREC`] that sets " "the precision for arithmetic operations in the context." msgstr "" +"*prec* é um número inteiro no intervalo [:const:`1`, :const:`MAX_PREC`] que " +"define a precisão das operações aritméticas no contexto." #: ../../library/decimal.rst:1005 msgid "" "The *rounding* option is one of the constants listed in the section " "`Rounding Modes`_." msgstr "" +"A opção *rounding* é uma das constantes listadas na seção `Modos de " +"arredondamento`_." #: ../../library/decimal.rst:1008 msgid "" "The *traps* and *flags* fields list any signals to be set. Generally, new " "contexts should only set traps and leave the flags clear." msgstr "" +"Os campos *traps* e *flags* listam todos os sinais a serem configurados. " +"Geralmente, novos contextos devem apenas definir armadilhas e deixar os " +"sinalizadores limpos." #: ../../library/decimal.rst:1011 msgid "" "The *Emin* and *Emax* fields are integers specifying the outer limits " -"allowable for exponents. *Emin* must be in the range [:const:`MIN_EMIN`, " -":const:`0`], *Emax* in the range [:const:`0`, :const:`MAX_EMAX`]." +"allowable for exponents. *Emin* must be in the range [:const:`MIN_EMIN`, :" +"const:`0`], *Emax* in the range [:const:`0`, :const:`MAX_EMAX`]." msgstr "" +"Os campos *Emin* e *Emax* são números inteiros que especificam os limites " +"externos permitidos para expoentes. *Emin* deve estar no intervalo [:const:" +"`MIN_EMIN`, :const:`0`], *Emax* no intervalo [:const:`0`, :const:`MAX_EMAX`]." #: ../../library/decimal.rst:1015 msgid "" @@ -1046,13 +1479,16 @@ msgid "" "set to :const:`1`, exponents are printed with a capital :const:`E`; " "otherwise, a lowercase :const:`e` is used: :const:`Decimal('6.02e+23')`." msgstr "" +"O campo *capitals* é :const:`0` ou :const:`1` (o padrão). Se definido como :" +"const:`1`, os expoentes serão impressos com um :const:`E` maiúsculo; caso " +"contrário, um :const:`e` minúscula é usado: :const:`Decimal('6.02e+23')`." #: ../../library/decimal.rst:1019 msgid "" "The *clamp* field is either :const:`0` (the default) or :const:`1`. If set " "to :const:`1`, the exponent ``e`` of a :class:`Decimal` instance " -"representable in this context is strictly limited to the range ``Emin - prec" -" + 1 <= e <= Emax - prec + 1``. If *clamp* is :const:`0` then a weaker " +"representable in this context is strictly limited to the range ``Emin - prec " +"+ 1 <= e <= Emax - prec + 1``. If *clamp* is :const:`0` then a weaker " "condition holds: the adjusted exponent of the :class:`Decimal` instance is " "at most ``Emax``. When *clamp* is :const:`1`, a large normal number will, " "where possible, have its exponent reduced and a corresponding number of " @@ -1060,12 +1496,24 @@ msgid "" "this preserves the value of the number but loses information about " "significant trailing zeros. For example::" msgstr "" +"O campo *clamp* é :const:`0` (o padrão) ou :const:`1`. Se definido como :" +"const:`1`, o expoente ``e`` de uma instância de :class:`Decimal` " +"representável nesse contexto é estritamente limitado ao intervalo ``Emin - " +"prec + 1 <= e <= Emax - prec + 1``. Se *clamp* for :const:`0`, uma condição " +"mais fraca será mantida: o expoente ajustado da instância de :class:" +"`Decimal` é no máximo ``Emax``. Quando *clamp* é :const:`1`, um grande " +"número normal terá, sempre que possível, seu expoente reduzido e um número " +"correspondente de zeros adicionado ao seu coeficiente, para ajustar as " +"restrições do expoente; isso preserva o valor do número, mas perde " +"informações sobre zeros à direita significativos. Por exemplo::" #: ../../library/decimal.rst:1034 msgid "" "A *clamp* value of :const:`1` allows compatibility with the fixed-width " "decimal interchange formats specified in IEEE 754." msgstr "" +"Um valor de *clamp* de :const:`1` permite compatibilidade com os formatos de " +"intercâmbio decimal de largura fixa especificados na IEEE 754." #: ../../library/decimal.rst:1037 msgid "" @@ -1073,28 +1521,37 @@ msgid "" "as a large number of methods for doing arithmetic directly in a given " "context. In addition, for each of the :class:`Decimal` methods described " "above (with the exception of the :meth:`adjusted` and :meth:`as_tuple` " -"methods) there is a corresponding :class:`Context` method. For example, for" -" a :class:`Context` instance ``C`` and :class:`Decimal` instance ``x``, " -"``C.exp(x)`` is equivalent to ``x.exp(context=C)``. Each :class:`Context` " +"methods) there is a corresponding :class:`Context` method. For example, for " +"a :class:`Context` instance ``C`` and :class:`Decimal` instance ``x``, ``C." +"exp(x)`` is equivalent to ``x.exp(context=C)``. Each :class:`Context` " "method accepts a Python integer (an instance of :class:`int`) anywhere that " "a Decimal instance is accepted." msgstr "" +"A classe :class:`Context` define vários métodos de uso geral, bem como um " +"grande número de métodos para fazer aritmética diretamente em um determinado " +"contexto. Além disso, para cada um dos métodos de :class:`Decimal` descritos " +"acima (com exceção dos métodos :meth:`adjusted` e :meth:`as_tuple`) existe " +"um método correspondente em :class:`Context`. Por exemplo, para uma " +"instância ``C`` de :class:`Context` e uma instância ``x`` de :class:" +"`Decimal`, ``C.exp(x)`` é equivalente a ``x.exp(context=C)``. Cada método " +"de :class:`Context` aceita um número inteiro do Python (uma instância de :" +"class:`int`) em qualquer lugar em que uma instância de Decimal seja aceita." #: ../../library/decimal.rst:1050 msgid "Resets all of the flags to :const:`0`." -msgstr "" +msgstr "Redefine todos os sinalizadores para :const:`0`." #: ../../library/decimal.rst:1054 msgid "Resets all of the traps to :const:`0`." -msgstr "" +msgstr "Redefine todas as armadilhas para :const:`0`." #: ../../library/decimal.rst:1060 msgid "Return a duplicate of the context." -msgstr "" +msgstr "Retorna uma duplicata do contexto." #: ../../library/decimal.rst:1064 msgid "Return a copy of the Decimal instance num." -msgstr "" +msgstr "Retorna uma cópia de uma instância de Decimal *num*." #: ../../library/decimal.rst:1068 msgid "" @@ -1102,15 +1559,24 @@ msgid "" "Unlike the :class:`Decimal` constructor, the context precision, rounding " "method, flags, and traps are applied to the conversion." msgstr "" +"Cria uma nova instância decimal a partir de *num*, mas usando *self* como " +"contexto. Diferentemente do construtor de :class:`Decimal`, a precisão do " +"contexto, o método de arredondamento, os sinalizadores e as armadilhas são " +"aplicadas à conversão." #: ../../library/decimal.rst:1072 msgid "" -"This is useful because constants are often given to a greater precision than" -" is needed by the application. Another benefit is that rounding immediately" -" eliminates unintended effects from digits beyond the current precision. In " +"This is useful because constants are often given to a greater precision than " +"is needed by the application. Another benefit is that rounding immediately " +"eliminates unintended effects from digits beyond the current precision. In " "the following example, using unrounded inputs means that adding zero to a " "sum can change the result:" msgstr "" +"Isso é útil porque as constantes geralmente são fornecidas com uma precisão " +"maior do que a necessária pelo aplicativo. Outro benefício é que o " +"arredondamento elimina imediatamente os efeitos indesejados dos dígitos além " +"da precisão atual. No exemplo a seguir, o uso de entradas não arredondadas " +"significa que adicionar zero a uma soma pode alterar o resultado:" #: ../../library/decimal.rst:1086 msgid "" @@ -1118,25 +1584,35 @@ msgid "" "the argument is a string, no leading or trailing whitespace or underscores " "are permitted." msgstr "" +"Este método implementa a operação \"to-number\" da especificação IBM. Se o " +"argumento for uma sequência, nenhum espaço em branco à esquerda ou à direita " +"ou sublinhado serão permitidos." #: ../../library/decimal.rst:1092 msgid "" -"Creates a new Decimal instance from a float *f* but rounding using *self* as" -" the context. Unlike the :meth:`Decimal.from_float` class method, the " +"Creates a new Decimal instance from a float *f* but rounding using *self* as " +"the context. Unlike the :meth:`Decimal.from_float` class method, the " "context precision, rounding method, flags, and traps are applied to the " "conversion." msgstr "" +"Cria uma nova instância de Decimal a partir de um ponto flutuante *f*, mas " +"arredondando usando *self* como contexto. Diferentemente do método da " +"classe :meth:`Decimal.from_float`, a precisão do contexto, o método de " +"arredondamento, os sinalizadores e as armadilhas são aplicados à conversão." #: ../../library/decimal.rst:1112 msgid "" "Returns a value equal to ``Emin - prec + 1`` which is the minimum exponent " -"value for subnormal results. When underflow occurs, the exponent is set to " -":const:`Etiny`." +"value for subnormal results. When underflow occurs, the exponent is set to :" +"const:`Etiny`." msgstr "" +"Retorna um valor igual a ``Emin - prec + 1``, que é o valor mínimo do " +"expoente para resultados subnormais. Quando ocorre o estouro negativo, o " +"expoente é definido como :const:`Etiny`." #: ../../library/decimal.rst:1118 msgid "Returns a value equal to ``Emax - prec + 1``." -msgstr "" +msgstr "Retorna um valor igual a ``Emax - prec + 1``." #: ../../library/decimal.rst:1120 msgid "" @@ -1147,178 +1623,194 @@ msgid "" "similar to those for the :class:`Decimal` class and are only briefly " "recounted here." msgstr "" +"A abordagem usual para trabalhar com decimais é criar instâncias de :class:" +"`Decimal` e depois aplicar operações aritméticas que ocorrem no contexto " +"atual da thread ativa. Uma abordagem alternativa é usar métodos de contexto " +"para calcular dentro de um contexto específico. Os métodos são semelhantes " +"aos da classe :class:`Decimal` e são contados apenas brevemente aqui." #: ../../library/decimal.rst:1130 msgid "Returns the absolute value of *x*." -msgstr "" +msgstr "Retorna o valor absoluto de *x*." #: ../../library/decimal.rst:1135 msgid "Return the sum of *x* and *y*." -msgstr "" +msgstr "Retorna a soma de *x* e *y*." #: ../../library/decimal.rst:1140 msgid "Returns the same Decimal object *x*." -msgstr "" +msgstr "Retorna o mesmo objeto de Decimal *x*." #: ../../library/decimal.rst:1145 msgid "Compares *x* and *y* numerically." -msgstr "" +msgstr "Compara *x* e *y* numericamente." #: ../../library/decimal.rst:1150 msgid "Compares the values of the two operands numerically." -msgstr "" +msgstr "Compara os valores dos dois operandos numericamente." #: ../../library/decimal.rst:1155 msgid "Compares two operands using their abstract representation." -msgstr "" +msgstr "Compara dois operandos usando sua representação abastrata." #: ../../library/decimal.rst:1160 msgid "" "Compares two operands using their abstract representation, ignoring sign." msgstr "" +"Compara dois operandos usando sua representação abstrata, ignorando o sinal." #: ../../library/decimal.rst:1165 msgid "Returns a copy of *x* with the sign set to 0." -msgstr "" +msgstr "Retorna uma cópia de *x* com o sinal definido para 0." #: ../../library/decimal.rst:1170 msgid "Returns a copy of *x* with the sign inverted." -msgstr "" +msgstr "Retorna uma cópia de *x* com o sinal invertido." #: ../../library/decimal.rst:1175 msgid "Copies the sign from *y* to *x*." -msgstr "" +msgstr "Copia o sinal de *y* para *x*." #: ../../library/decimal.rst:1180 msgid "Return *x* divided by *y*." -msgstr "" +msgstr "Retorna *x* dividido por *y*." #: ../../library/decimal.rst:1185 msgid "Return *x* divided by *y*, truncated to an integer." -msgstr "" +msgstr "Retorna *x* dividido por *y*, truncado para um inteiro." #: ../../library/decimal.rst:1190 msgid "Divides two numbers and returns the integer part of the result." -msgstr "" +msgstr "Divide dois números e retorna a parte inteira do resultado." #: ../../library/decimal.rst:1195 msgid "Returns `e ** x`." -msgstr "" +msgstr "Retorna `e ** x`." #: ../../library/decimal.rst:1200 msgid "Returns *x* multiplied by *y*, plus *z*." -msgstr "" +msgstr "Retorna *x* multiplicado por *y*, mais *z*." #: ../../library/decimal.rst:1205 msgid "Returns ``True`` if *x* is canonical; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for canonical; do contrário, retorna ``False``." #: ../../library/decimal.rst:1210 msgid "Returns ``True`` if *x* is finite; otherwise returns ``False``." -msgstr "" +msgstr "Retorna ``True`` se *x* for finito; do contrário, retorna ``False``." #: ../../library/decimal.rst:1215 msgid "Returns ``True`` if *x* is infinite; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for infinito; caso contrário, retorna ``False``." #: ../../library/decimal.rst:1220 -msgid "" -"Returns ``True`` if *x* is a qNaN or sNaN; otherwise returns ``False``." +msgid "Returns ``True`` if *x* is a qNaN or sNaN; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for qNaN ou sNaN; caso contrário, retorna ``False``." #: ../../library/decimal.rst:1225 msgid "" "Returns ``True`` if *x* is a normal number; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for um número normal; do contrário, retorna " +"``False``." #: ../../library/decimal.rst:1230 msgid "Returns ``True`` if *x* is a quiet NaN; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for um NaN silencioso; caso contrário, retorna " +"``False``." #: ../../library/decimal.rst:1235 msgid "Returns ``True`` if *x* is negative; otherwise returns ``False``." -msgstr "" +msgstr "Retorna ``True`` se *x* for negativo; do contrário, retorna ``False``." #: ../../library/decimal.rst:1240 msgid "" "Returns ``True`` if *x* is a signaling NaN; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for um NaN sinalizador; caso contrário, retorna " +"``False``." #: ../../library/decimal.rst:1245 msgid "Returns ``True`` if *x* is subnormal; otherwise returns ``False``." msgstr "" +"Retorna ``True`` se *x* for subnormal; caso contrário, retorna ``False``." #: ../../library/decimal.rst:1250 msgid "Returns ``True`` if *x* is a zero; otherwise returns ``False``." -msgstr "" +msgstr "Retorna ``True`` se *x* for zero; caso contrário, retorna ``False``." #: ../../library/decimal.rst:1255 msgid "Returns the natural (base e) logarithm of *x*." -msgstr "" +msgstr "Retorna o logaritmo natural (base e) de *x*." #: ../../library/decimal.rst:1260 msgid "Returns the base 10 logarithm of *x*." -msgstr "" +msgstr "Retorna o logaritmo de base 10 de *x*." #: ../../library/decimal.rst:1265 msgid "Returns the exponent of the magnitude of the operand's MSD." -msgstr "" +msgstr "Retorna o expoente da magnitude do MSD do operando." #: ../../library/decimal.rst:1270 msgid "Applies the logical operation *and* between each operand's digits." -msgstr "" +msgstr "Aplica a operação lógica *e* entre cada dígito do operando." #: ../../library/decimal.rst:1275 msgid "Invert all the digits in *x*." -msgstr "" +msgstr "Inverte todos os dígitos em *x*." #: ../../library/decimal.rst:1280 msgid "Applies the logical operation *or* between each operand's digits." -msgstr "" +msgstr "Aplica a operação lógica *ou* entre cada dígito do operando." #: ../../library/decimal.rst:1285 msgid "Applies the logical operation *xor* between each operand's digits." -msgstr "" +msgstr "Aplica a operação lógica *ou eclusivo* entre cada dígito do operando." #: ../../library/decimal.rst:1290 msgid "Compares two values numerically and returns the maximum." -msgstr "" +msgstr "Compara dois valores numericamente e retorna o máximo." #: ../../library/decimal.rst:1295 ../../library/decimal.rst:1305 msgid "Compares the values numerically with their sign ignored." -msgstr "" +msgstr "Compara dois valores numericamente com seu sinal ignorado." #: ../../library/decimal.rst:1300 msgid "Compares two values numerically and returns the minimum." -msgstr "" +msgstr "Compara dois valores numericamente e retorna o mínimo." #: ../../library/decimal.rst:1310 msgid "Minus corresponds to the unary prefix minus operator in Python." msgstr "" +"Minus corresponde ao operador de subtração de prefixo unário no Python." #: ../../library/decimal.rst:1315 msgid "Return the product of *x* and *y*." -msgstr "" +msgstr "Retorna o produto de *x* e *y*." #: ../../library/decimal.rst:1320 msgid "Returns the largest representable number smaller than *x*." -msgstr "" +msgstr "Retorna o maior número representável menor que *x*." #: ../../library/decimal.rst:1325 msgid "Returns the smallest representable number larger than *x*." -msgstr "" +msgstr "Retorna o menor número representável maior que *x*." #: ../../library/decimal.rst:1330 msgid "Returns the number closest to *x*, in direction towards *y*." -msgstr "" +msgstr "Retorna o número mais próximo a *x*, em direção a *y*." #: ../../library/decimal.rst:1335 msgid "Reduces *x* to its simplest form." -msgstr "" +msgstr "Reduz *x* para sua forma mais simples." #: ../../library/decimal.rst:1340 msgid "Returns an indication of the class of *x*." -msgstr "" +msgstr "Retorna uma indicação da classe de *x*." #: ../../library/decimal.rst:1345 msgid "" @@ -1326,11 +1818,15 @@ msgid "" "operation applies the context precision and rounding, so it is *not* an " "identity operation." msgstr "" +"Plus corresponde ao operador de soma de prefixo unário no Python. Esta " +"operação aplica a precisão e o arredondamento do contexto, portanto *não* é " +"uma operação de identidade." #: ../../library/decimal.rst:1352 -msgid "" -"Return ``x`` to the power of ``y``, reduced modulo ``modulo`` if given." +msgid "Return ``x`` to the power of ``y``, reduced modulo ``modulo`` if given." msgstr "" +"Retorna ``x`` à potência de ``y``, com a redução de módulo ``modulo`` if " +"given." #: ../../library/decimal.rst:1354 msgid "" @@ -1340,100 +1836,119 @@ msgid "" "rounding mode of the context is used. Results are always correctly-rounded " "in the Python version." msgstr "" +"Com dois argumentos, calcula ``x**y``. Se ``x`` for negativo, ``y`` deve ser " +"inteiro. O resultado será inexato, a menos que ``y`` seja inteiro e o " +"resultado seja finito e possa ser expresso exatamente em dígitos de " +"\"precisão\". O modo de arredondamento do contexto é usado. Os resultados " +"são sempre arredondados corretamente na versão Python." #: ../../library/decimal.rst:1360 msgid "" -"The C module computes :meth:`power` in terms of the correctly-rounded " -":meth:`exp` and :meth:`ln` functions. The result is well-defined but only " -"\"almost always correctly-rounded\"." +"The C module computes :meth:`power` in terms of the correctly-rounded :meth:" +"`exp` and :meth:`ln` functions. The result is well-defined but only \"almost " +"always correctly-rounded\"." msgstr "" +"O módulo C calcula :meth:`power` em termos das funções corretamente " +"arredondadas :meth:`exp` e :meth:`ln`. O resultado é bem definido, mas " +"apenas \"quase sempre corretamente arredondado\"." #: ../../library/decimal.rst:1365 msgid "" "With three arguments, compute ``(x**y) % modulo``. For the three argument " "form, the following restrictions on the arguments hold:" msgstr "" +"Com três argumentos, calcula ``(x**y) % modulo``. Para o formulário de três " +"argumentos, as seguintes restrições nos argumentos são válidas:" #: ../../library/decimal.rst:1368 msgid "all three arguments must be integral" -msgstr "" +msgstr "todos os três argumentos devem ser inteiros" #: ../../library/decimal.rst:1369 msgid "``y`` must be nonnegative" -msgstr "" +msgstr "``y`` não pode ser negativo" #: ../../library/decimal.rst:1370 msgid "at least one of ``x`` or ``y`` must be nonzero" -msgstr "" +msgstr "pelo menos um de ``x`` ou ``y`` não pode ser negativo" #: ../../library/decimal.rst:1371 msgid "``modulo`` must be nonzero and have at most 'precision' digits" -msgstr "" +msgstr "``modulo`` não pode ser zero e deve ter mais dígitos de \"precisão\"" #: ../../library/decimal.rst:1373 msgid "" "The value resulting from ``Context.power(x, y, modulo)`` is equal to the " -"value that would be obtained by computing ``(x**y) % modulo`` with unbounded" -" precision, but is computed more efficiently. The exponent of the result is" -" zero, regardless of the exponents of ``x``, ``y`` and ``modulo``. The " +"value that would be obtained by computing ``(x**y) % modulo`` with unbounded " +"precision, but is computed more efficiently. The exponent of the result is " +"zero, regardless of the exponents of ``x``, ``y`` and ``modulo``. The " "result is always exact." msgstr "" +"O valor resultante de ``Context.power(x, y, modulo)`` é igual ao valor que " +"seria obtido ao computar ``(x**y) % modulo`` com precisão ilimitada, mas é " +"calculado com mais eficiência . O expoente do resultado é zero, " +"independentemente dos expoentes de ``x``, ``y`` e ``modulo``. O resultado é " +"sempre exato." #: ../../library/decimal.rst:1383 msgid "Returns a value equal to *x* (rounded), having the exponent of *y*." -msgstr "" +msgstr "Retorna um valor igual a *x* (arredondado), tendo o expoente de *y*." #: ../../library/decimal.rst:1388 msgid "Just returns 10, as this is Decimal, :)" -msgstr "" +msgstr "Só retorna 10, já que isso é Decimal, :)" #: ../../library/decimal.rst:1393 msgid "Returns the remainder from integer division." -msgstr "" +msgstr "Retorna o resto da divisão inteira." #: ../../library/decimal.rst:1395 msgid "" "The sign of the result, if non-zero, is the same as that of the original " "dividend." msgstr "" +"O sinal do resultado, se diferente de zero, é o mesmo que o do dividendo " +"original." #: ../../library/decimal.rst:1401 msgid "" "Returns ``x - y * n``, where *n* is the integer nearest the exact value of " "``x / y`` (if the result is 0 then its sign will be the sign of *x*)." msgstr "" +"Retorna ``x - y * n``, onde *n* é o número inteiro mais próximo do valor " +"exato de ``x / y`` (se o resultado for 0, seu sinal será o sinal de *x*)." #: ../../library/decimal.rst:1407 msgid "Returns a rotated copy of *x*, *y* times." -msgstr "" +msgstr "Retorna uma cópia girada de *x*, *y* vezes." #: ../../library/decimal.rst:1412 msgid "Returns ``True`` if the two operands have the same exponent." -msgstr "" +msgstr "Retorna ``True`` se os dois operandos tiverem o mesmo expoente." #: ../../library/decimal.rst:1417 msgid "Returns the first operand after adding the second value its exp." -msgstr "" +msgstr "Retorna o primeiro operando após adicionar o segundo valor sua exp." #: ../../library/decimal.rst:1422 msgid "Returns a shifted copy of *x*, *y* times." -msgstr "" +msgstr "Retorna uma cópia deslocada de *x*, *y* vezes." #: ../../library/decimal.rst:1427 msgid "Square root of a non-negative number to context precision." -msgstr "" +msgstr "Raiz quadrada de um número não negativo para precisão do contexto." #: ../../library/decimal.rst:1432 msgid "Return the difference between *x* and *y*." -msgstr "" +msgstr "Retorna a diferença entre *x* e *y*." #: ../../library/decimal.rst:1446 msgid "Rounds to an integer." -msgstr "" +msgstr "Arredonda para um número inteiro." #: ../../library/decimal.rst:1451 msgid "Converts a number to a string using scientific notation." -msgstr "" +msgstr "Converte um número em uma string usando notação científica." #: ../../library/decimal.rst:1458 msgid "Constants" @@ -1444,246 +1959,323 @@ msgid "" "The constants in this section are only relevant for the C module. They are " "also included in the pure Python version for compatibility." msgstr "" +"As constantes nesta seção são relevantes apenas para o módulo C. Eles também " +"estão incluídos na versão pura do Python para compatibilidade." #: ../../library/decimal.rst:1464 msgid "32-bit" -msgstr "" +msgstr "32 bits" #: ../../library/decimal.rst:1464 msgid "64-bit" -msgstr "" +msgstr "64 bits" #: ../../library/decimal.rst:1466 ../../library/decimal.rst:1468 msgid ":const:`425000000`" -msgstr "" +msgstr ":const:`425000000`" #: ../../library/decimal.rst:1466 ../../library/decimal.rst:1468 msgid ":const:`999999999999999999`" -msgstr "" +msgstr ":const:`999999999999999999`" #: ../../library/decimal.rst:1470 msgid ":const:`-425000000`" -msgstr "" +msgstr ":const:`-425000000`" #: ../../library/decimal.rst:1470 msgid ":const:`-999999999999999999`" -msgstr "" +msgstr ":const:`-999999999999999999`" #: ../../library/decimal.rst:1472 msgid ":const:`-849999999`" -msgstr "" +msgstr ":const:`-849999999`" #: ../../library/decimal.rst:1472 msgid ":const:`-1999999999999999997`" -msgstr "" +msgstr ":const:`-1999999999999999997`" #: ../../library/decimal.rst:1478 msgid "" -"The default value is ``True``. If Python is compiled without threads, the C " -"version automatically disables the expensive thread local context machinery." -" In this case, the value is ``False``." +"The value is ``True``. Deprecated, because Python now always has threads." msgstr "" +"O valor é ``True``. Descontinuado porque o Python agora sempre tem threads." -#: ../../library/decimal.rst:1483 -msgid "Rounding modes" +#: ../../library/decimal.rst:1484 +msgid "" +"The default value is ``True``. If Python is compiled ``--without-decimal-" +"contextvar``, the C version uses a thread-local rather than a coroutine-" +"local context and the value is ``False``. This is slightly faster in some " +"nested context scenarios." msgstr "" +"O valor padrão é ``True``. Se o Python for compilado usando ``--without-" +"decimal-contextvar``, a versão C usará um contexto local de thread em vez de " +"local de corrotina e o valor será ``False``. Isso é um pouco mais rápido em " +"alguns cenários de contexto aninhados." -#: ../../library/decimal.rst:1487 +#: ../../library/decimal.rst:1488 +msgid "backported to 3.7 and 3.8" +msgstr "backport realizado para 3.7 e 3.8" + +#: ../../library/decimal.rst:1492 +msgid "Rounding modes" +msgstr "Modos de arredondamento" + +#: ../../library/decimal.rst:1496 msgid "Round towards :const:`Infinity`." -msgstr "" +msgstr "Arredonda para :const:`Infinity`." -#: ../../library/decimal.rst:1491 +#: ../../library/decimal.rst:1500 msgid "Round towards zero." -msgstr "" +msgstr "Arredonda para zero." -#: ../../library/decimal.rst:1495 +#: ../../library/decimal.rst:1504 msgid "Round towards :const:`-Infinity`." -msgstr "" +msgstr "Arredonda para :const:`-Infinity`." -#: ../../library/decimal.rst:1499 +#: ../../library/decimal.rst:1508 msgid "Round to nearest with ties going towards zero." -msgstr "" +msgstr "Arrendonda para o mais próximo com empate tendendo a zero." -#: ../../library/decimal.rst:1503 +#: ../../library/decimal.rst:1512 msgid "Round to nearest with ties going to nearest even integer." msgstr "" +"Arredonda para o mais próximo com empates indo para o mais próximo inteiro " +"par." -#: ../../library/decimal.rst:1507 +#: ../../library/decimal.rst:1516 msgid "Round to nearest with ties going away from zero." -msgstr "" +msgstr "Arrendonda para o mais próximo com empates se afastando de zero." -#: ../../library/decimal.rst:1511 +#: ../../library/decimal.rst:1520 msgid "Round away from zero." -msgstr "" +msgstr "Arredonda se afastando de zero." -#: ../../library/decimal.rst:1515 +#: ../../library/decimal.rst:1524 msgid "" "Round away from zero if last digit after rounding towards zero would have " "been 0 or 5; otherwise round towards zero." msgstr "" +"Arredonda se afastando de zero se o último dígito após o arredondamento para " +"zero fosse 0 ou 5; caso contrário, arredonda para zero." -#: ../../library/decimal.rst:1522 +#: ../../library/decimal.rst:1531 msgid "Signals" -msgstr "" +msgstr "Sinais" -#: ../../library/decimal.rst:1524 +#: ../../library/decimal.rst:1533 msgid "" -"Signals represent conditions that arise during computation. Each corresponds" -" to one context flag and one context trap enabler." +"Signals represent conditions that arise during computation. Each corresponds " +"to one context flag and one context trap enabler." msgstr "" +"Sinais representam condições que surgem durante o cálculo. Cada um " +"corresponde a um sinalizador de contexto e um ativador de armalhida de " +"contexto." -#: ../../library/decimal.rst:1527 +#: ../../library/decimal.rst:1536 msgid "" "The context flag is set whenever the condition is encountered. After the " "computation, flags may be checked for informational purposes (for instance, " "to determine whether a computation was exact). After checking the flags, be " "sure to clear all flags before starting the next computation." msgstr "" +"O sinalizador de contexto é definido sempre que a condição é encontrada. " +"Após o cálculo, os sinalizadores podem ser verificados para fins " +"informativos (por exemplo, para determinar se um cálculo era exato). Depois " +"de verificar os sinalizadores, certifique-se de limpar todos os " +"sinalizadores antes de iniciar o próximo cálculo." -#: ../../library/decimal.rst:1532 +#: ../../library/decimal.rst:1541 msgid "" "If the context's trap enabler is set for the signal, then the condition " -"causes a Python exception to be raised. For example, if the " -":class:`DivisionByZero` trap is set, then a :exc:`DivisionByZero` exception " -"is raised upon encountering the condition." +"causes a Python exception to be raised. For example, if the :class:" +"`DivisionByZero` trap is set, then a :exc:`DivisionByZero` exception is " +"raised upon encountering the condition." msgstr "" +"Se o ativador de armadilha de contexto estiver definido para o sinal, a " +"condição fará com que uma exceção Python seja levantada. Por exemplo, se a " +"armadilha :class:`DivisionByZero` for configurada, uma exceção :exc:" +"`DivisionByZero` será levantada ao encontrar a condição." -#: ../../library/decimal.rst:1540 +#: ../../library/decimal.rst:1549 msgid "Altered an exponent to fit representation constraints." -msgstr "" +msgstr "Alterou um expoente para ajustar as restrições de representação." -#: ../../library/decimal.rst:1542 +#: ../../library/decimal.rst:1551 msgid "" -"Typically, clamping occurs when an exponent falls outside the context's " -":attr:`Emin` and :attr:`Emax` limits. If possible, the exponent is reduced " +"Typically, clamping occurs when an exponent falls outside the context's :" +"attr:`Emin` and :attr:`Emax` limits. If possible, the exponent is reduced " "to fit by adding zeros to the coefficient." msgstr "" +"Normalmente, a fixação ocorre quando um expoente fica fora dos limites do " +"contexto :attr:`Emin` e attr:`Emax`. Se possível, o expoente é reduzido " +"para caber adicionando zeros ao coeficiente." -#: ../../library/decimal.rst:1549 +#: ../../library/decimal.rst:1558 msgid "Base class for other signals and a subclass of :exc:`ArithmeticError`." msgstr "" +"Classe base para outros sinais e uma subclasse de :exc:`ArithmeticError`." -#: ../../library/decimal.rst:1554 +#: ../../library/decimal.rst:1563 msgid "Signals the division of a non-infinite number by zero." -msgstr "" +msgstr "Sinaliza a divisão de um número não infinito por zero." -#: ../../library/decimal.rst:1556 +#: ../../library/decimal.rst:1565 msgid "" "Can occur with division, modulo division, or when raising a number to a " -"negative power. If this signal is not trapped, returns :const:`Infinity` or" -" :const:`-Infinity` with the sign determined by the inputs to the " +"negative power. If this signal is not trapped, returns :const:`Infinity` " +"or :const:`-Infinity` with the sign determined by the inputs to the " "calculation." msgstr "" +"Pode ocorrer com divisão, divisão de módulo ou ao elevar um número a uma " +"potência negativa. Se este sinal não for capturado, retornará :const:" +"`Infinity` ou :const:`-Infinity` com o sinal determinado pelas entradas do " +"cálculo." -#: ../../library/decimal.rst:1563 +#: ../../library/decimal.rst:1572 msgid "Indicates that rounding occurred and the result is not exact." -msgstr "" +msgstr "Indica que o arredondamento ocorreu e o resultado não é exato." -#: ../../library/decimal.rst:1565 +#: ../../library/decimal.rst:1574 msgid "" "Signals when non-zero digits were discarded during rounding. The rounded " "result is returned. The signal flag or trap is used to detect when results " "are inexact." msgstr "" +"Sinaliza quando dígitos diferentes de zero foram descartados durante o " +"arredondamento. O resultado arredondado é retornado. O sinalizador ou " +"armadilha de sinal é usado para detectar quando os resultados são inexatos." -#: ../../library/decimal.rst:1572 +#: ../../library/decimal.rst:1581 msgid "An invalid operation was performed." -msgstr "" +msgstr "Uma operação inválida foi realizada." -#: ../../library/decimal.rst:1574 +#: ../../library/decimal.rst:1583 msgid "" "Indicates that an operation was requested that does not make sense. If not " "trapped, returns :const:`NaN`. Possible causes include::" msgstr "" +"Indica que uma operação foi solicitada que não faz sentido. Se não for " +"capturado, retorna :const:`NaN`. As possíveis causas incluem::" -#: ../../library/decimal.rst:1590 +#: ../../library/decimal.rst:1599 msgid "Numerical overflow." -msgstr "" +msgstr "Estouro numérico" -#: ../../library/decimal.rst:1592 +#: ../../library/decimal.rst:1601 msgid "" "Indicates the exponent is larger than :attr:`Emax` after rounding has " "occurred. If not trapped, the result depends on the rounding mode, either " "pulling inward to the largest representable finite number or rounding " -"outward to :const:`Infinity`. In either case, :class:`Inexact` and " -":class:`Rounded` are also signaled." +"outward to :const:`Infinity`. In either case, :class:`Inexact` and :class:" +"`Rounded` are also signaled." msgstr "" +"Indica que o expoente é maior que :attr:`Emax` após o arredondamento " +"ocorrer. Se não for capturado, o resultado depende do modo de " +"arredondamento, puxando para dentro para o maior número finito representável " +"ou arredondando para fora para :const:`Infinity`. Nos dois casos, :class:" +"`Inexact` e :class:`Rounded` também são sinalizados." -#: ../../library/decimal.rst:1601 +#: ../../library/decimal.rst:1610 msgid "Rounding occurred though possibly no information was lost." msgstr "" +"O arredondamento ocorreu, embora possivelmente nenhuma informação tenha sido " +"perdida." -#: ../../library/decimal.rst:1603 +#: ../../library/decimal.rst:1612 msgid "" "Signaled whenever rounding discards digits; even if those digits are zero " "(such as rounding :const:`5.00` to :const:`5.0`). If not trapped, returns " "the result unchanged. This signal is used to detect loss of significant " "digits." msgstr "" +"Sinalizado sempre que o arredondamento descarta dígitos; mesmo que esses " +"dígitos sejam zero (como arredondamento :const:`5.00` a :const:`5.0`). Se " +"não for capturado, retorna o resultado inalterado. Este sinal é usado para " +"detectar a perda de dígitos significativos." -#: ../../library/decimal.rst:1611 +#: ../../library/decimal.rst:1620 msgid "Exponent was lower than :attr:`Emin` prior to rounding." -msgstr "" +msgstr "O expoente foi menor que :attr:`Emin` antes do arredondamento." -#: ../../library/decimal.rst:1613 +#: ../../library/decimal.rst:1622 msgid "" -"Occurs when an operation result is subnormal (the exponent is too small). If" -" not trapped, returns the result unchanged." +"Occurs when an operation result is subnormal (the exponent is too small). If " +"not trapped, returns the result unchanged." msgstr "" +"Ocorre quando um resultado da operação é subnormal (o expoente é muito " +"pequeno). Se não for capturado, retorna o resultado inalterado." -#: ../../library/decimal.rst:1619 +#: ../../library/decimal.rst:1628 msgid "Numerical underflow with result rounded to zero." -msgstr "" +msgstr "Estouro negativo numérico com resultado arredondado para zero." -#: ../../library/decimal.rst:1621 +#: ../../library/decimal.rst:1630 msgid "" -"Occurs when a subnormal result is pushed to zero by rounding. " -":class:`Inexact` and :class:`Subnormal` are also signaled." +"Occurs when a subnormal result is pushed to zero by rounding. :class:" +"`Inexact` and :class:`Subnormal` are also signaled." msgstr "" +"Ocorre quando um resultado subnormal é empurrado para zero arredondando. :" +"class:`Inexact` e :class:`Subnormal` também são sinalizados." -#: ../../library/decimal.rst:1627 +#: ../../library/decimal.rst:1636 msgid "Enable stricter semantics for mixing floats and Decimals." msgstr "" +"Ativa semânticas mais rigorosas para misturar carros alegóricos e decimais." -#: ../../library/decimal.rst:1629 +#: ../../library/decimal.rst:1638 msgid "" "If the signal is not trapped (default), mixing floats and Decimals is " -"permitted in the :class:`~decimal.Decimal` constructor, " -":meth:`~decimal.Context.create_decimal` and all comparison operators. Both " -"conversion and comparisons are exact. Any occurrence of a mixed operation is" -" silently recorded by setting :exc:`FloatOperation` in the context flags. " -"Explicit conversions with :meth:`~decimal.Decimal.from_float` or " -":meth:`~decimal.Context.create_decimal_from_float` do not set the flag." -msgstr "" - -#: ../../library/decimal.rst:1637 +"permitted in the :class:`~decimal.Decimal` constructor, :meth:`~decimal." +"Context.create_decimal` and all comparison operators. Both conversion and " +"comparisons are exact. Any occurrence of a mixed operation is silently " +"recorded by setting :exc:`FloatOperation` in the context flags. Explicit " +"conversions with :meth:`~decimal.Decimal.from_float` or :meth:`~decimal." +"Context.create_decimal_from_float` do not set the flag." +msgstr "" +"Se o sinal não for capturado (padrão), a mistura de tipos float e Decimal " +"será permitida no construtor class:`~decimal.Decimal` constructor, :meth:" +"`~decimal.Context.create_decimal` e em todos os operadores de comparação. " +"Tanto a conversão quanto as comparações são exatas. Qualquer ocorrência de " +"uma operação mista é registrada silenciosamente pela configuração :exc:" +"`FloatOperation` nos sinalizadores de contexto. Conversões explícitas com :" +"meth:`~decimal.Decimal.from_float` or :meth:`~decimal.Context." +"create_decimal_from_float` não definem o sinalizador." + +#: ../../library/decimal.rst:1646 msgid "" "Otherwise (the signal is trapped), only equality comparisons and explicit " -"conversions are silent. All other mixed operations raise " -":exc:`FloatOperation`." +"conversions are silent. All other mixed operations raise :exc:" +"`FloatOperation`." msgstr "" +"Caso contrário (o sinal é capturado), apenas comparações de igualdade e " +"conversões explícitas são silenciosas. Todas as outras operações mistas " +"aumentam :exc:`FloatOperation`." -#: ../../library/decimal.rst:1641 +#: ../../library/decimal.rst:1650 msgid "The following table summarizes the hierarchy of signals::" -msgstr "" +msgstr "A tabela a seguir resume a hierarquia de sinais::" -#: ../../library/decimal.rst:1662 +#: ../../library/decimal.rst:1671 msgid "Floating Point Notes" -msgstr "" +msgstr "Observações sobre ponto flutuante" -#: ../../library/decimal.rst:1666 +#: ../../library/decimal.rst:1675 msgid "Mitigating round-off error with increased precision" -msgstr "" +msgstr "Atenuando o erro de arredondamento com maior precisão" -#: ../../library/decimal.rst:1668 +#: ../../library/decimal.rst:1677 msgid "" "The use of decimal floating point eliminates decimal representation error " "(making it possible to represent :const:`0.1` exactly); however, some " "operations can still incur round-off error when non-zero digits exceed the " "fixed precision." msgstr "" +"O uso do ponto flutuante decimal elimina o erro de representação decimal " +"(possibilitando representar :const:`0.1` de forma exata); no entanto, " +"algumas operações ainda podem sofrer erros de arredondamento quando dígitos " +"diferentes de zero excederem a precisão fixa." -#: ../../library/decimal.rst:1672 +#: ../../library/decimal.rst:1681 msgid "" "The effects of round-off error can be amplified by the addition or " "subtraction of nearly offsetting quantities resulting in loss of " @@ -1691,85 +2283,131 @@ msgid "" "floating point arithmetic with insufficient precision causes the breakdown " "of the associative and distributive properties of addition:" msgstr "" +"Os efeitos do erro de arredondamento podem ser amplificados pela adição ou " +"subtração de quantidades quase compensadoras, resultando em perda de " +"significância. Knuth fornece dois exemplos instrutivos em que a aritmética " +"de ponto flutuante arredondado com precisão insuficiente causa a quebra das " +"propriedades associativas e distributivas da adição:" -#: ../../library/decimal.rst:1696 +#: ../../library/decimal.rst:1705 msgid "" "The :mod:`decimal` module makes it possible to restore the identities by " "expanding the precision sufficiently to avoid loss of significance:" msgstr "" +"O módulo :mod:`decimal` permite restaurar as identidades expandindo a " +"precisão o suficiente para evitar perda de significância:" -#: ../../library/decimal.rst:1716 +#: ../../library/decimal.rst:1725 msgid "Special values" -msgstr "" +msgstr "Valores especiais" -#: ../../library/decimal.rst:1718 +#: ../../library/decimal.rst:1727 msgid "" "The number system for the :mod:`decimal` module provides special values " -"including :const:`NaN`, :const:`sNaN`, :const:`-Infinity`, " -":const:`Infinity`, and two zeros, :const:`+0` and :const:`-0`." +"including :const:`NaN`, :const:`sNaN`, :const:`-Infinity`, :const:" +"`Infinity`, and two zeros, :const:`+0` and :const:`-0`." msgstr "" +"O sistema numérico para o módulo :mod:`decimal` fornece valores especiais, " +"incluindo :const:`NaN`, :const:`sNaN`, :const:`-Infinity`, :const:`Infinity` " +"e dois zeros, :const:`+0` e :const:`-0`." -#: ../../library/decimal.rst:1722 +#: ../../library/decimal.rst:1731 msgid "" -"Infinities can be constructed directly with: ``Decimal('Infinity')``. Also," -" they can arise from dividing by zero when the :exc:`DivisionByZero` signal " +"Infinities can be constructed directly with: ``Decimal('Infinity')``. Also, " +"they can arise from dividing by zero when the :exc:`DivisionByZero` signal " "is not trapped. Likewise, when the :exc:`Overflow` signal is not trapped, " "infinity can result from rounding beyond the limits of the largest " "representable number." msgstr "" +"Os infinitos podem ser construídos diretamente com: ``Decimal('Infinity')``. " +"Além disso, eles podem resultar da divisão por zero quando o sinal :exc:" +"`DivisionByZero` não é capturado. Da mesma forma, quando o sinal :exc:" +"`Overflow` não é capturado, o infinito pode resultar do arredondamento além " +"dos limites do maior número representável." -#: ../../library/decimal.rst:1727 +#: ../../library/decimal.rst:1736 msgid "" "The infinities are signed (affine) and can be used in arithmetic operations " "where they get treated as very large, indeterminate numbers. For instance, " "adding a constant to infinity gives another infinite result." msgstr "" +"Os infinitos contêm sinais (afins) e podem ser usados em operações " +"aritméticas, onde são tratados como números muito grandes e indeterminados. " +"Por exemplo, adicionar uma constante ao infinito fornece outro resultado " +"infinito." -#: ../../library/decimal.rst:1731 +#: ../../library/decimal.rst:1740 msgid "" -"Some operations are indeterminate and return :const:`NaN`, or if the " -":exc:`InvalidOperation` signal is trapped, raise an exception. For example," -" ``0/0`` returns :const:`NaN` which means \"not a number\". This variety of" -" :const:`NaN` is quiet and, once created, will flow through other " -"computations always resulting in another :const:`NaN`. This behavior can be" -" useful for a series of computations that occasionally have missing inputs " -"--- it allows the calculation to proceed while flagging specific results as " -"invalid." +"Some operations are indeterminate and return :const:`NaN`, or if the :exc:" +"`InvalidOperation` signal is trapped, raise an exception. For example, " +"``0/0`` returns :const:`NaN` which means \"not a number\". This variety of :" +"const:`NaN` is quiet and, once created, will flow through other computations " +"always resulting in another :const:`NaN`. This behavior can be useful for a " +"series of computations that occasionally have missing inputs --- it allows " +"the calculation to proceed while flagging specific results as invalid." msgstr "" +"Algumas operações são indeterminadas e retornam :const:`NaN` ou, se o sinal :" +"exc:`InvalidOperation` for capturado, levanta uma exceção. Por exemplo, " +"``0/0`` retorna :const:`NaN`, que significa \"não é um número\" em inglês. " +"Esta variação de :const:`NaN` é silenciosa e, uma vez criada, fluirá através " +"de outros cálculos sempre resultando em outra :const:`NaN`. Esse " +"comportamento pode ser útil para uma série de cálculos que ocasionalmente " +"têm entradas ausentes --- ele permite que o cálculo continue enquanto " +"sinaliza resultados específicos como inválidos." -#: ../../library/decimal.rst:1739 +#: ../../library/decimal.rst:1748 msgid "" "A variant is :const:`sNaN` which signals rather than remaining quiet after " -"every operation. This is a useful return value when an invalid result needs" -" to interrupt a calculation for special handling." +"every operation. This is a useful return value when an invalid result needs " +"to interrupt a calculation for special handling." msgstr "" +"Uma variante é :const:`sNaN`, que sinaliza em vez de permanecer em silêncio " +"após cada operação. Esse é um valor de retorno útil quando um resultado " +"inválido precisa interromper um cálculo para tratamento especial." -#: ../../library/decimal.rst:1743 +#: ../../library/decimal.rst:1752 msgid "" "The behavior of Python's comparison operators can be a little surprising " "where a :const:`NaN` is involved. A test for equality where one of the " "operands is a quiet or signaling :const:`NaN` always returns :const:`False` " "(even when doing ``Decimal('NaN')==Decimal('NaN')``), while a test for " -"inequality always returns :const:`True`. An attempt to compare two Decimals" -" using any of the ``<``, ``<=``, ``>`` or ``>=`` operators will raise the " -":exc:`InvalidOperation` signal if either operand is a :const:`NaN`, and " +"inequality always returns :const:`True`. An attempt to compare two Decimals " +"using any of the ``<``, ``<=``, ``>`` or ``>=`` operators will raise the :" +"exc:`InvalidOperation` signal if either operand is a :const:`NaN`, and " "return :const:`False` if this signal is not trapped. Note that the General " "Decimal Arithmetic specification does not specify the behavior of direct " -"comparisons; these rules for comparisons involving a :const:`NaN` were taken" -" from the IEEE 854 standard (see Table 3 in section 5.7). To ensure strict " +"comparisons; these rules for comparisons involving a :const:`NaN` were taken " +"from the IEEE 854 standard (see Table 3 in section 5.7). To ensure strict " "standards-compliance, use the :meth:`compare` and :meth:`compare-signal` " "methods instead." msgstr "" - -#: ../../library/decimal.rst:1756 +"O comportamento dos operadores de comparação do Python pode ser um pouco " +"surpreendente onde um :const:`NaN` está envolvido. Um teste de igualdade em " +"que um dos operandos é um :const:`NaN` silencioso ou sinalizador sempre " +"retorna :const:`False` (mesmo ao fazer ``Decimal('NaN')==Decimal('NaN')``), " +"enquanto um teste de desigualdade sempre retorna :const:`True`. Uma " +"tentativa de comparar dois decimais usando qualquer um dos operadores ``<``, " +"``<=``, ``>`` ou ``>=`` levantará o sinal :exc:`InvalidOperation` se um dos " +"operandos for um :const:`NaN` e retorna :const:`False` se esse sinal não for " +"capturado. Observe que a especificação aritmética decimal geral não " +"especifica o comportamento das comparações diretas; estas regras para " +"comparações envolvendo a :const:`NaN` foram retiradas do padrão IEEE 854 " +"(consulte a Tabela 3 na seção 5.7). Para garantir uma rígida conformidade " +"com os padrões, use os métodos :meth:`compare` e :meth:`compare-signal`." + +#: ../../library/decimal.rst:1765 msgid "" "The signed zeros can result from calculations that underflow. They keep the " "sign that would have resulted if the calculation had been carried out to " "greater precision. Since their magnitude is zero, both positive and " "negative zeros are treated as equal and their sign is informational." msgstr "" +"Os zeros com sinais podem resultar de cálculos insuficientes. Eles mantêm o " +"sinal que teria resultado se o cálculo tivesse sido realizado com maior " +"precisão. Como sua magnitude é zero, os zeros positivos e negativos são " +"tratados como iguais e seu sinal é informativo." -#: ../../library/decimal.rst:1761 +#: ../../library/decimal.rst:1770 msgid "" "In addition to the two signed zeros which are distinct yet equal, there are " "various representations of zero with differing precisions yet equivalent in " @@ -1777,33 +2415,47 @@ msgid "" "normalized floating point representations, it is not immediately obvious " "that the following calculation returns a value equal to zero:" msgstr "" +"Além dos dois zeros com sinais que são distintos e iguais, existem várias " +"representações de zero com diferentes precisões e ainda com valor " +"equivalente. Isso leva um pouco de tempo para se acostumar. Para um olho " +"acostumado a representações de ponto flutuante normalizadas, não é " +"imediatamente óbvio que o seguinte cálculo retorne um valor igual a zero:" -#: ../../library/decimal.rst:1776 +#: ../../library/decimal.rst:1785 msgid "Working with threads" -msgstr "" +msgstr "Trabalhando com threads" -#: ../../library/decimal.rst:1778 +#: ../../library/decimal.rst:1787 msgid "" -"The :func:`getcontext` function accesses a different :class:`Context` object" -" for each thread. Having separate thread contexts means that threads may " +"The :func:`getcontext` function accesses a different :class:`Context` object " +"for each thread. Having separate thread contexts means that threads may " "make changes (such as ``getcontext().prec=10``) without interfering with " "other threads." msgstr "" +"A função :func:`getcontext` acessa um objeto :class:`Context` diferente para " +"cada thread. Ter contextos de threads separadas significa que as threads " +"podem fazer alterações (como ``getcontext().prec=10``) sem interferir em " +"outros threads." -#: ../../library/decimal.rst:1782 +#: ../../library/decimal.rst:1791 msgid "" "Likewise, the :func:`setcontext` function automatically assigns its target " "to the current thread." msgstr "" +"Da mesma forma, a função :func:`setcontext` atribui automaticamente seu " +"destino à thread atual." -#: ../../library/decimal.rst:1785 +#: ../../library/decimal.rst:1794 msgid "" -"If :func:`setcontext` has not been called before :func:`getcontext`, then " -":func:`getcontext` will automatically create a new context for use in the " +"If :func:`setcontext` has not been called before :func:`getcontext`, then :" +"func:`getcontext` will automatically create a new context for use in the " "current thread." msgstr "" +"Se :func:`setcontext` não tiver sido chamado antes de :func:`getcontext`, " +"então :func:`getcontext` criará automaticamente um novo contexto para uso na " +"thread atual." -#: ../../library/decimal.rst:1789 +#: ../../library/decimal.rst:1798 msgid "" "The new context is copied from a prototype context called *DefaultContext*. " "To control the defaults so that each thread will use the same values " @@ -1811,132 +2463,186 @@ msgid "" "This should be done *before* any threads are started so that there won't be " "a race condition between threads calling :func:`getcontext`. For example::" msgstr "" +"O novo contexto é copiado de um contexto protótipo chamado *DefaultContext*. " +"Para controlar os padrões para que cada thread, use os mesmos valores em " +"todo o aplicativo, modifique diretamente o objeto *DefaultContext*. Isso " +"deve ser feito *antes* de qualquer thread ser iniciada, para que não haja " +"uma condição de corrida entre as threads chamando :func:`getcontext`. Por " +"exemplo::" -#: ../../library/decimal.rst:1814 +#: ../../library/decimal.rst:1823 msgid "Recipes" -msgstr "" +msgstr "Receitas" -#: ../../library/decimal.rst:1816 +#: ../../library/decimal.rst:1825 msgid "" "Here are a few recipes that serve as utility functions and that demonstrate " "ways to work with the :class:`Decimal` class::" msgstr "" +"Aqui estão algumas receitas que servem como funções utilitárias e que " +"demonstram maneiras de trabalhar com a classe :class:`Decimal`:" -#: ../../library/decimal.rst:1971 +#: ../../library/decimal.rst:1980 msgid "Decimal FAQ" -msgstr "" +msgstr "Perguntas Frequentes sobre o Decimal" -#: ../../library/decimal.rst:1973 +#: ../../library/decimal.rst:1982 msgid "" "Q. It is cumbersome to type ``decimal.Decimal('1234.5')``. Is there a way " "to minimize typing when using the interactive interpreter?" msgstr "" +"P. É complicado digitar ``decimal.Decimal('1234.5')``. Existe uma maneira de " +"minimizar a digitação ao usar o interpretador interativo?" -#: ../../library/decimal.rst:1976 +#: ../../library/decimal.rst:1985 msgid "A. Some users abbreviate the constructor to just a single letter:" -msgstr "" +msgstr "R. Alguns usuários abreviam o construtor para apenas uma única letra:" -#: ../../library/decimal.rst:1982 +#: ../../library/decimal.rst:1991 msgid "" "Q. In a fixed-point application with two decimal places, some inputs have " "many places and need to be rounded. Others are not supposed to have excess " "digits and need to be validated. What methods should be used?" msgstr "" +"P. Em um aplicativo de ponto fixo com duas casas decimais, algumas entradas " +"têm muitas casas e precisam ser arredondadas. Outros não devem ter dígitos " +"em excesso e precisam ser validados. Quais métodos devem ser usados?" -#: ../../library/decimal.rst:1986 +#: ../../library/decimal.rst:1995 msgid "" "A. The :meth:`quantize` method rounds to a fixed number of decimal places. " "If the :const:`Inexact` trap is set, it is also useful for validation:" msgstr "" +"Q. O método :meth:`quantize` arredonda para um número fixo de casas " +"decimais. Se a armadilha :const:`Inexact` estiver configurada, também será " +"útil para validação:" -#: ../../library/decimal.rst:2004 +#: ../../library/decimal.rst:2013 msgid "" "Q. Once I have valid two place inputs, how do I maintain that invariant " "throughout an application?" msgstr "" +"P. Depois de validar entradas de duas casas, como mantenho essa invariável " +"em uma aplicação?" -#: ../../library/decimal.rst:2007 +#: ../../library/decimal.rst:2016 msgid "" "A. Some operations like addition, subtraction, and multiplication by an " "integer will automatically preserve fixed point. Others operations, like " "division and non-integer multiplication, will change the number of decimal " "places and need to be followed-up with a :meth:`quantize` step:" msgstr "" +"R. Algumas operações como adição, subtração e multiplicação por um número " +"inteiro preservam automaticamente o ponto fixo. Outras operações, como " +"divisão e multiplicação não inteira, alteram o número de casas decimais e " +"precisam ser seguidas com uma etapa :meth:`quantize`:" -#: ../../library/decimal.rst:2025 +#: ../../library/decimal.rst:2034 msgid "" -"In developing fixed-point applications, it is convenient to define functions" -" to handle the :meth:`quantize` step:" +"In developing fixed-point applications, it is convenient to define functions " +"to handle the :meth:`quantize` step:" msgstr "" +"No desenvolvimento de aplicativos de ponto fixo, é conveniente definir " +"funções para lidar com a etapa :meth:`quantize`:" -#: ../../library/decimal.rst:2038 +#: ../../library/decimal.rst:2047 msgid "" -"Q. There are many ways to express the same value. The numbers :const:`200`," -" :const:`200.000`, :const:`2E2`, and :const:`.02E+4` all have the same value" -" at various precisions. Is there a way to transform them to a single " +"Q. There are many ways to express the same value. The numbers :const:" +"`200`, :const:`200.000`, :const:`2E2`, and :const:`.02E+4` all have the same " +"value at various precisions. Is there a way to transform them to a single " "recognizable canonical value?" msgstr "" +"P. Existem várias maneiras de expressar o mesmo valor. Os números :const:" +"`200`, :const:`200.000`, const:`2E2` e :const:`.02E+4` têm todos o mesmo " +"valor em várias precisões. Existe uma maneira de transformá-los em um único " +"valor canônico reconhecível?" -#: ../../library/decimal.rst:2043 +#: ../../library/decimal.rst:2052 msgid "" "A. The :meth:`normalize` method maps all equivalent values to a single " "representative:" msgstr "" +"R. O método :meth:`normalize` mapeia todos os valores equivalentes para um " +"único representativo:" -#: ../../library/decimal.rst:2050 +#: ../../library/decimal.rst:2059 msgid "" "Q. Some decimal values always print with exponential notation. Is there a " "way to get a non-exponential representation?" msgstr "" +"P. Alguns valores decimais sempre são impressos com notação exponencial. " +"Existe uma maneira de obter uma representação não exponencial?" -#: ../../library/decimal.rst:2053 +#: ../../library/decimal.rst:2062 msgid "" "A. For some values, exponential notation is the only way to express the " -"number of significant places in the coefficient. For example, expressing " -":const:`5.0E+3` as :const:`5000` keeps the value constant but cannot show " -"the original's two-place significance." +"number of significant places in the coefficient. For example, expressing :" +"const:`5.0E+3` as :const:`5000` keeps the value constant but cannot show the " +"original's two-place significance." msgstr "" +"R. Para alguns valores, a notação exponencial é a única maneira de expressar " +"o número de casas significativas no coeficiente. Por exemplo, expressar :" +"const:`5.0E+3` como :const:`5000` mantém o valor constante, mas não pode " +"mostrar a significância de duas casa do original." -#: ../../library/decimal.rst:2058 +#: ../../library/decimal.rst:2067 msgid "" "If an application does not care about tracking significance, it is easy to " "remove the exponent and trailing zeroes, losing significance, but keeping " "the value unchanged:" msgstr "" +"Se uma aplicação não se importa com o rastreamento da significância, é fácil " +"remover o expoente e os zeros à direita, perdendo a significância, mas " +"mantendo o valor inalterado:" -#: ../../library/decimal.rst:2068 +#: ../../library/decimal.rst:2077 msgid "Q. Is there a way to convert a regular float to a :class:`Decimal`?" msgstr "" +"P. Existe uma maneira de converter um float comum em um :class:`Decimal`?" -#: ../../library/decimal.rst:2070 +#: ../../library/decimal.rst:2079 msgid "" "A. Yes, any binary floating point number can be exactly expressed as a " "Decimal though an exact conversion may take more precision than intuition " "would suggest:" msgstr "" +"R. Sim, qualquer número de ponto flutuante binário pode ser expresso " +"exatamente como um Decimal, embora uma conversão exata possa exigir mais " +"precisão do que a intuição sugere:" -#: ../../library/decimal.rst:2079 +#: ../../library/decimal.rst:2088 msgid "" -"Q. Within a complex calculation, how can I make sure that I haven't gotten a" -" spurious result because of insufficient precision or rounding anomalies." +"Q. Within a complex calculation, how can I make sure that I haven't gotten a " +"spurious result because of insufficient precision or rounding anomalies." msgstr "" +"P. Em um cálculo complexo, como posso ter certeza de que não obtive um " +"resultado falso devido à precisão insuficiente ou a anomalias de " +"arredondamento." -#: ../../library/decimal.rst:2082 +#: ../../library/decimal.rst:2091 msgid "" "A. The decimal module makes it easy to test results. A best practice is to " -"re-run calculations using greater precision and with various rounding modes." -" Widely differing results indicate insufficient precision, rounding mode " +"re-run calculations using greater precision and with various rounding modes. " +"Widely differing results indicate insufficient precision, rounding mode " "issues, ill-conditioned inputs, or a numerically unstable algorithm." msgstr "" +"R. O módulo decimal facilita o teste de resultados. Uma prática recomendada " +"é executar novamente os cálculos usando maior precisão e com vários modos de " +"arredondamento. Resultados amplamente diferentes indicam precisão " +"insuficiente, problemas no modo de arredondamento, entradas mal " +"condicionadas ou um algoritmo numericamente instável." -#: ../../library/decimal.rst:2087 +#: ../../library/decimal.rst:2096 msgid "" "Q. I noticed that context precision is applied to the results of operations " "but not to the inputs. Is there anything to watch out for when mixing " "values of different precisions?" msgstr "" +"P. Notei que a precisão do contexto é aplicada aos resultados das operações, " +"mas não às entradas. Há algo a observar ao misturar valores de diferentes " +"precisões?" -#: ../../library/decimal.rst:2091 +#: ../../library/decimal.rst:2100 msgid "" "A. Yes. The principle is that all values are considered to be exact and so " "is the arithmetic on those values. Only the results are rounded. The " @@ -1944,33 +2650,108 @@ msgid "" "disadvantage is that the results can look odd if you forget that the inputs " "haven't been rounded:" msgstr "" +"R. Sim. O princípio é que todos os valores são considerados exatos, assim " +"como a aritmética desses valores. Somente os resultados são arredondados. A " +"vantagem das entradas é que \"o que você vê é o que você obtém\". Uma " +"desvantagem é que os resultados podem parecer estranhos se você esquecer que " +"as entradas não foram arredondadas:" -#: ../../library/decimal.rst:2104 +#: ../../library/decimal.rst:2113 msgid "" "The solution is either to increase precision or to force rounding of inputs " "using the unary plus operation:" msgstr "" +"A solução é aumentar a precisão ou forçar o arredondamento das entradas " +"usando a operação unária de mais:" -#: ../../library/decimal.rst:2113 +#: ../../library/decimal.rst:2122 msgid "" -"Alternatively, inputs can be rounded upon creation using the " -":meth:`Context.create_decimal` method:" +"Alternatively, inputs can be rounded upon creation using the :meth:`Context." +"create_decimal` method:" msgstr "" +"Como alternativa, as entradas podem ser arredondadas na criação usando o " +"método :meth:`Context.create_decimal`:" -#: ../../library/decimal.rst:2119 +#: ../../library/decimal.rst:2128 msgid "Q. Is the CPython implementation fast for large numbers?" -msgstr "" +msgstr "P. A implementação do CPython é rápida para números grandes?" -#: ../../library/decimal.rst:2121 +#: ../../library/decimal.rst:2130 msgid "" "A. Yes. In the CPython and PyPy3 implementations, the C/CFFI versions of " -"the decimal module integrate the high speed `libmpdec " -"`_ library for " -"arbitrary precision correctly-rounded decimal floating point arithmetic. " -"``libmpdec`` uses `Karatsuba multiplication " -"`_ for medium-sized " -"numbers and the `Number Theoretic Transform " -"`_ for very large numbers. However, to realize this " -"performance gain, the context needs to be set for unrounded calculations." +"the decimal module integrate the high speed `libmpdec `_ library for arbitrary precision " +"correctly-rounded decimal floating point arithmetic [#]_. ``libmpdec`` uses " +"`Karatsuba multiplication `_ for medium-sized numbers and the `Number Theoretic " +"Transform `_ for very " +"large numbers." +msgstr "" +"A. Sim. Nas implementações CPython e PyPy3, as versões C/CFFI do módulo " +"decimal integram a biblioteca de alta velocidade `libmpdec `_ para precisão arbitrária " +"de aritmética de ponto flutuante decimal corretamente arrendondado [#] _. " +"``libmpdec`` usa a `multiplicação de Karatsuba `_ para números com tamanho médio e a " +"`Transformada Numérica de Fourier `_ para " +"números muito grandes." + +#: ../../library/decimal.rst:2140 +msgid "" +"The context must be adapted for exact arbitrary precision arithmetic. :attr:" +"`Emin` and :attr:`Emax` should always be set to the maximum values, :attr:" +"`clamp` should always be 0 (the default). Setting :attr:`prec` requires " +"some care." +msgstr "" +"O contexto deve ser adaptado para uma aritmética exata de precisão " +"arbitrária. :attr:`Emin` e :attr:`Emax` devem sempre ser configurados com os " +"valores máximos, :attr:`clamp` deve sempre ser 0 (o padrão). A configuração " +"de :attr:`prec` requer alguns cuidados." + +#: ../../library/decimal.rst:2144 +msgid "" +"The easiest approach for trying out bignum arithmetic is to use the maximum " +"value for :attr:`prec` as well [#]_::" +msgstr "" +"A abordagem mais fácil para testar a aritmética do bignum é usar o valor " +"máximo para :attr:`prec` também [#]_::" + +#: ../../library/decimal.rst:2153 +msgid "" +"For inexact results, :attr:`MAX_PREC` is far too large on 64-bit platforms " +"and the available memory will be insufficient::" +msgstr "" +"Para resultados inexatos, :attr:`MAX_PREC` é muito grande em plataformas de " +"64 bits e a memória disponível será insuficiente::" + +#: ../../library/decimal.rst:2161 +msgid "" +"On systems with overallocation (e.g. Linux), a more sophisticated approach " +"is to adjust :attr:`prec` to the amount of available RAM. Suppose that you " +"have 8GB of RAM and expect 10 simultaneous operands using a maximum of 500MB " +"each::" +msgstr "" +"Em sistemas com alocação excessiva (por exemplo, Linux), uma abordagem mais " +"sofisticada é ajustar :attr:`prec` à quantidade de RAM disponível. Suponha " +"que você tenha 8 GB de RAM e espere 10 operandos simultâneos usando no " +"máximo 500 MB cada::" + +#: ../../library/decimal.rst:2185 +msgid "" +"In general (and especially on systems without overallocation), it is " +"recommended to estimate even tighter bounds and set the :attr:`Inexact` trap " +"if all calculations are expected to be exact." +msgstr "" +"Em geral (e especialmente em sistemas sem alocação excessiva), recomenda-se " +"estimar limites ainda mais apertados e definir a armadilha :attr:`Inexact` " +"se todos os cálculos forem precisos." + +#: ../../library/decimal.rst:2194 +msgid "" +"This approach now works for all exact results except for non-integer powers. " +"Also backported to 3.7 and 3.8." msgstr "" +"Essa abordagem agora funciona para todos os resultados exatos, exceto para " +"potências não inteiras. Também suportado para 3.7 e 3.8." diff --git a/library/development.po b/library/development.po index df6757bce..169c18588 100644 --- a/library/development.po +++ b/library/development.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,16 +29,16 @@ msgstr "Ferramentas de Desenvolvimento" #: ../../library/development.rst:7 msgid "" -"The modules described in this chapter help you write software. For example," -" the :mod:`pydoc` module takes a module and generates documentation based on" -" the module's contents. The :mod:`doctest` and :mod:`unittest` modules " +"The modules described in this chapter help you write software. For example, " +"the :mod:`pydoc` module takes a module and generates documentation based on " +"the module's contents. The :mod:`doctest` and :mod:`unittest` modules " "contains frameworks for writing unit tests that automatically exercise code " "and verify that the expected output is produced. :program:`2to3` can " "translate Python 2.x source code into valid Python 3.x code." msgstr "" "Os módulos descritos neste capítulo ajudam você a escrever softwares. Por " -"exemplo, o módulo :mod:`pydoc` recebe um módulo e gera documentação com base" -" no conteúdo do módulo. Os módulos :mod:`doctest` e :mod:`unittest` contêm " +"exemplo, o módulo :mod:`pydoc` recebe um módulo e gera documentação com base " +"no conteúdo do módulo. Os módulos :mod:`doctest` e :mod:`unittest` contêm " "frameworks para escrever testes unitários que automaticamente exercitam " "código e verificam se a saída esperada é produzida. :program:`2to3` pode " "traduzir o código-fonte do Python 2.x para um código válido do Python 3.x." @@ -48,8 +49,8 @@ msgstr "A lista de módulos descritos neste capítulo é:" #: ../../library/development.rst:28 msgid "" -"See also the Python development mode: the :option:`-X` ``dev`` option and " -":envvar:`PYTHONDEVMODE` environment variable." +"See also the Python development mode: the :option:`-X` ``dev`` option and :" +"envvar:`PYTHONDEVMODE` environment variable." msgstr "" "Veja também o modo de desenvolvimento do Python: a opção :option:`-X` " "``dev`` e a variável de ambiente :envvar:`PYTHONDEVMODE`." diff --git a/library/difflib.po b/library/difflib.po index d452cd3b5..1cc4c16bb 100644 --- a/library/difflib.po +++ b/library/difflib.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,22 +47,22 @@ msgid "" "This is a flexible class for comparing pairs of sequences of any type, so " "long as the sequence elements are :term:`hashable`. The basic algorithm " "predates, and is a little fancier than, an algorithm published in the late " -"1980's by Ratcliff and Obershelp under the hyperbolic name \"gestalt pattern" -" matching.\" The idea is to find the longest contiguous matching " -"subsequence that contains no \"junk\" elements; these \"junk\" elements are " -"ones that are uninteresting in some sense, such as blank lines or " -"whitespace. (Handling junk is an extension to the Ratcliff and Obershelp " -"algorithm.) The same idea is then applied recursively to the pieces of the " -"sequences to the left and to the right of the matching subsequence. This " -"does not yield minimal edit sequences, but does tend to yield matches that " -"\"look right\" to people." +"1980's by Ratcliff and Obershelp under the hyperbolic name \"gestalt pattern " +"matching.\" The idea is to find the longest contiguous matching subsequence " +"that contains no \"junk\" elements; these \"junk\" elements are ones that " +"are uninteresting in some sense, such as blank lines or whitespace. " +"(Handling junk is an extension to the Ratcliff and Obershelp algorithm.) The " +"same idea is then applied recursively to the pieces of the sequences to the " +"left and to the right of the matching subsequence. This does not yield " +"minimal edit sequences, but does tend to yield matches that \"look right\" " +"to people." msgstr "" #: ../../library/difflib.rst:40 msgid "" "**Timing:** The basic Ratcliff-Obershelp algorithm is cubic time in the " -"worst case and quadratic time in the expected case. :class:`SequenceMatcher`" -" is quadratic time for the worst case and has expected-case behavior " +"worst case and quadratic time in the expected case. :class:`SequenceMatcher` " +"is quadratic time for the worst case and has expected-case behavior " "dependent in a complicated way on how many elements the sequences have in " "common; best case time is linear." msgstr "" @@ -72,8 +73,8 @@ msgid "" "that automatically treats certain sequence items as junk. The heuristic " "counts how many times each individual item appears in the sequence. If an " "item's duplicates (after the first one) account for more than 1% of the " -"sequence and the sequence is at least 200 items long, this item is marked as" -" \"popular\" and is treated as junk for the purpose of sequence matching. " +"sequence and the sequence is at least 200 items long, this item is marked as " +"\"popular\" and is treated as junk for the purpose of sequence matching. " "This heuristic can be turned off by setting the ``autojunk`` argument to " "``False`` when creating the :class:`SequenceMatcher`." msgstr "" @@ -165,14 +166,14 @@ msgstr "" #: ../../library/difflib.rst:101 msgid "" -"*wrapcolumn* is an optional keyword to specify column number where lines are" -" broken and wrapped, defaults to ``None`` where lines are not wrapped." +"*wrapcolumn* is an optional keyword to specify column number where lines are " +"broken and wrapped, defaults to ``None`` where lines are not wrapped." msgstr "" #: ../../library/difflib.rst:104 msgid "" -"*linejunk* and *charjunk* are optional keyword arguments passed into " -":func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML " +"*linejunk* and *charjunk* are optional keyword arguments passed into :func:" +"`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML " "differences). See :func:`ndiff` documentation for argument default values " "and descriptions." msgstr "" @@ -197,14 +198,14 @@ msgstr "" #: ../../library/difflib.rst:120 msgid "" "*context* and *numlines* are both optional keyword arguments. Set *context* " -"to ``True`` when contextual differences are to be shown, else the default is" -" ``False`` to show the full files. *numlines* defaults to ``5``. When " +"to ``True`` when contextual differences are to be shown, else the default is " +"``False`` to show the full files. *numlines* defaults to ``5``. When " "*context* is ``True`` *numlines* controls the number of context lines which " "surround the difference highlights. When *context* is ``False`` *numlines* " "controls the number of lines which are shown before a difference highlight " -"when using the \"next\" hyperlinks (setting to zero would cause the \"next\"" -" hyperlinks to place the next difference highlight at the top of the browser" -" without any leading context)." +"when using the \"next\" hyperlinks (setting to zero would cause the \"next\" " +"hyperlinks to place the next difference highlight at the top of the browser " +"without any leading context)." msgstr "" #: ../../library/difflib.rst:130 @@ -222,8 +223,8 @@ msgstr "" #: ../../library/difflib.rst:140 msgid "" -"The arguments for this method are the same as those for the " -":meth:`make_file` method." +"The arguments for this method are the same as those for the :meth:" +"`make_file` method." msgstr "" #: ../../library/difflib.rst:143 @@ -241,8 +242,8 @@ msgstr "" #: ../../library/difflib.rst:152 msgid "" "Context diffs are a compact way of showing just the lines that have changed " -"plus a few lines of context. The changes are shown in a before/after style." -" The number of context lines is set by *n* which defaults to three." +"plus a few lines of context. The changes are shown in a before/after " +"style. The number of context lines is set by *n* which defaults to three." msgstr "" #: ../../library/difflib.rst:156 @@ -262,8 +263,8 @@ msgstr "" #: ../../library/difflib.rst:165 ../../library/difflib.rst:296 msgid "" -"The context diff format normally has a header for filenames and modification" -" times. Any or all of these may be specified using strings for *fromfile*, " +"The context diff format normally has a header for filenames and modification " +"times. Any or all of these may be specified using strings for *fromfile*, " "*tofile*, *fromfiledate*, and *tofiledate*. The modification times are " "normally expressed in the ISO 8601 format. If not specified, the strings " "default to blanks." @@ -275,22 +276,22 @@ msgstr "" #: ../../library/difflib.rst:193 msgid "" -"Return a list of the best \"good enough\" matches. *word* is a sequence for" -" which close matches are desired (typically a string), and *possibilities* " -"is a list of sequences against which to match *word* (typically a list of " +"Return a list of the best \"good enough\" matches. *word* is a sequence for " +"which close matches are desired (typically a string), and *possibilities* is " +"a list of sequences against which to match *word* (typically a list of " "strings)." msgstr "" #: ../../library/difflib.rst:197 msgid "" -"Optional argument *n* (default ``3``) is the maximum number of close matches" -" to return; *n* must be greater than ``0``." +"Optional argument *n* (default ``3``) is the maximum number of close matches " +"to return; *n* must be greater than ``0``." msgstr "" #: ../../library/difflib.rst:200 msgid "" -"Optional argument *cutoff* (default ``0.6``) is a float in the range [0, 1]." -" Possibilities that don't score at least that similar to *word* are ignored." +"Optional argument *cutoff* (default ``0.6``) is a float in the range [0, 1]. " +"Possibilities that don't score at least that similar to *word* are ignored." msgstr "" #: ../../library/difflib.rst:203 @@ -367,24 +368,23 @@ msgstr "" #: ../../library/difflib.rst:287 msgid "" "By default, the diff control lines (those with ``---``, ``+++``, or ``@@``) " -"are created with a trailing newline. This is helpful so that inputs created" -" from :func:`io.IOBase.readlines` result in diffs that are suitable for use " +"are created with a trailing newline. This is helpful so that inputs created " +"from :func:`io.IOBase.readlines` result in diffs that are suitable for use " "with :func:`io.IOBase.writelines` since both the inputs and outputs have " "trailing newlines." msgstr "" #: ../../library/difflib.rst:321 msgid "" -"Compare *a* and *b* (lists of bytes objects) using *dfunc*; yield a sequence" -" of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must" -" be a callable, typically either :func:`unified_diff` or " -":func:`context_diff`." +"Compare *a* and *b* (lists of bytes objects) using *dfunc*; yield a sequence " +"of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must " +"be a callable, typically either :func:`unified_diff` or :func:`context_diff`." msgstr "" #: ../../library/difflib.rst:326 msgid "" -"Allows you to compare data with unknown or inconsistent encoding. All inputs" -" except *n* must be bytes objects, not str. Works by losslessly converting " +"Allows you to compare data with unknown or inconsistent encoding. All inputs " +"except *n* must be bytes objects, not str. Works by losslessly converting " "all inputs (except *n*) to str, and calling ``dfunc(a, b, fromfile, tofile, " "fromfiledate, tofiledate, n, lineterm)``. The output of *dfunc* is then " "converted back to bytes, so the delta lines that you receive have the same " @@ -393,22 +393,22 @@ msgstr "" #: ../../library/difflib.rst:337 msgid "" -"Return true for ignorable lines. The line *line* is ignorable if *line* is " -"blank or contains a single ``'#'``, otherwise it is not ignorable. Used as " -"a default for parameter *linejunk* in :func:`ndiff` in older versions." +"Return ``True`` for ignorable lines. The line *line* is ignorable if *line* " +"is blank or contains a single ``'#'``, otherwise it is not ignorable. Used " +"as a default for parameter *linejunk* in :func:`ndiff` in older versions." msgstr "" #: ../../library/difflib.rst:344 msgid "" -"Return true for ignorable characters. The character *ch* is ignorable if " -"*ch* is a space or tab, otherwise it is not ignorable. Used as a default " +"Return ``True`` for ignorable characters. The character *ch* is ignorable " +"if *ch* is a space or tab, otherwise it is not ignorable. Used as a default " "for parameter *charjunk* in :func:`ndiff`." msgstr "" #: ../../library/difflib.rst:352 msgid "" -"`Pattern Matching: The Gestalt Approach `_" +"`Pattern Matching: The Gestalt Approach `_" msgstr "" #: ../../library/difflib.rst:352 @@ -431,7 +431,7 @@ msgid "" "Optional argument *isjunk* must be ``None`` (the default) or a one-argument " "function that takes a sequence element and returns true if and only if the " "element is \"junk\" and should be ignored. Passing ``None`` for *isjunk* is " -"equivalent to passing ``lambda x: 0``; in other words, no elements are " +"equivalent to passing ``lambda x: False``; in other words, no elements are " "ignored. For example, pass::" msgstr "" @@ -444,8 +444,8 @@ msgstr "" #: ../../library/difflib.rst:377 msgid "" "The optional arguments *a* and *b* are sequences to be compared; both " -"default to empty strings. The elements of both sequences must be " -":term:`hashable`." +"default to empty strings. The elements of both sequences must be :term:" +"`hashable`." msgstr "" #: ../../library/difflib.rst:380 @@ -457,11 +457,11 @@ msgstr "" #: ../../library/difflib.rst:386 msgid "" "SequenceMatcher objects get three data attributes: *bjunk* is the set of " -"elements of *b* for which *isjunk* is ``True``; *bpopular* is the set of " -"non-junk elements considered popular by the heuristic (if it is not " -"disabled); *b2j* is a dict mapping the remaining elements of *b* to a list " -"of positions where they occur. All three are reset whenever *b* is reset " -"with :meth:`set_seqs` or :meth:`set_seq2`." +"elements of *b* for which *isjunk* is ``True``; *bpopular* is the set of non-" +"junk elements considered popular by the heuristic (if it is not disabled); " +"*b2j* is a dict mapping the remaining elements of *b* to a list of positions " +"where they occur. All three are reset whenever *b* is reset with :meth:" +"`set_seqs` or :meth:`set_seq2`." msgstr "" #: ../../library/difflib.rst:393 @@ -508,8 +508,8 @@ msgid "" "k')`` meeting those conditions, the additional conditions ``k >= k'``, ``i " "<= i'``, and if ``i == i'``, ``j <= j'`` are also met. In other words, of " "all maximal matching blocks, return one that starts earliest in *a*, and of " -"all those maximal matching blocks that start earliest in *a*, return the one" -" that starts earliest in *b*." +"all those maximal matching blocks that start earliest in *a*, return the one " +"that starts earliest in *b*." msgstr "" #: ../../library/difflib.rst:437 @@ -518,8 +518,7 @@ msgid "" "above, but with the additional restriction that no junk element appears in " "the block. Then that block is extended as far as possible by matching " "(only) junk elements on both sides. So the resulting block never matches on " -"junk except as identical junk happens to be adjacent to an interesting " -"match." +"junk except as identical junk happens to be adjacent to an interesting match." msgstr "" #: ../../library/difflib.rst:444 @@ -541,8 +540,8 @@ msgstr "" #: ../../library/difflib.rst:460 msgid "" "Return list of triples describing non-overlapping matching subsequences. " -"Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == " -"b[j:j+n]``. The triples are monotonically increasing in *i* and *j*." +"Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j" +"+n]``. The triples are monotonically increasing in *i* and *j*." msgstr "" #: ../../library/difflib.rst:465 @@ -572,7 +571,7 @@ msgstr "Valor" #: ../../library/difflib.rst:492 msgid "``'replace'``" -msgstr "" +msgstr "``'replace'``" #: ../../library/difflib.rst:492 msgid "``a[i1:i2]`` should be replaced by ``b[j1:j2]``." @@ -580,7 +579,7 @@ msgstr "" #: ../../library/difflib.rst:495 msgid "``'delete'``" -msgstr "" +msgstr "``'delete'``" #: ../../library/difflib.rst:495 msgid "``a[i1:i2]`` should be deleted. Note that ``j1 == j2`` in this case." @@ -588,7 +587,7 @@ msgstr "" #: ../../library/difflib.rst:498 msgid "``'insert'``" -msgstr "" +msgstr "``'insert'``" #: ../../library/difflib.rst:498 msgid "" @@ -598,7 +597,7 @@ msgstr "" #: ../../library/difflib.rst:502 msgid "``'equal'``" -msgstr "" +msgstr "``'equal'``" #: ../../library/difflib.rst:502 msgid "``a[i1:i2] == b[j1:j2]`` (the sub-sequences are equal)." @@ -614,9 +613,9 @@ msgstr "" #: ../../library/difflib.rst:525 msgid "" -"Starting with the groups returned by :meth:`get_opcodes`, this method splits" -" out smaller change clusters and eliminates intervening ranges which have no" -" changes." +"Starting with the groups returned by :meth:`get_opcodes`, this method splits " +"out smaller change clusters and eliminates intervening ranges which have no " +"changes." msgstr "" #: ../../library/difflib.rst:529 @@ -625,8 +624,7 @@ msgstr "" #: ../../library/difflib.rst:534 msgid "" -"Return a measure of the sequences' similarity as a float in the range [0, " -"1]." +"Return a measure of the sequences' similarity as a float in the range [0, 1]." msgstr "" #: ../../library/difflib.rst:537 @@ -638,10 +636,9 @@ msgstr "" #: ../../library/difflib.rst:541 msgid "" -"This is expensive to compute if :meth:`get_matching_blocks` or " -":meth:`get_opcodes` hasn't already been called, in which case you may want " -"to try :meth:`quick_ratio` or :meth:`real_quick_ratio` first to get an upper" -" bound." +"This is expensive to compute if :meth:`get_matching_blocks` or :meth:" +"`get_opcodes` hasn't already been called, in which case you may want to try :" +"meth:`quick_ratio` or :meth:`real_quick_ratio` first to get an upper bound." msgstr "" #: ../../library/difflib.rst:548 @@ -661,9 +658,9 @@ msgstr "" #: ../../library/difflib.rst:567 msgid "" "The three methods that return the ratio of matching to total characters can " -"give different results due to differing levels of approximation, although " -":meth:`quick_ratio` and :meth:`real_quick_ratio` are always at least as " -"large as :meth:`ratio`:" +"give different results due to differing levels of approximation, although :" +"meth:`quick_ratio` and :meth:`real_quick_ratio` are always at least as large " +"as :meth:`ratio`:" msgstr "" #: ../../library/difflib.rst:584 @@ -683,34 +680,33 @@ msgstr "" #: ../../library/difflib.rst:599 msgid "" -"If you're only interested in where the sequences match, " -":meth:`get_matching_blocks` is handy:" +"If you're only interested in where the sequences match, :meth:" +"`get_matching_blocks` is handy:" msgstr "" #: ../../library/difflib.rst:608 msgid "" -"Note that the last tuple returned by :meth:`get_matching_blocks` is always a" -" dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last" -" tuple element (number of elements matched) is ``0``." +"Note that the last tuple returned by :meth:`get_matching_blocks` is always a " +"dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last " +"tuple element (number of elements matched) is ``0``." msgstr "" #: ../../library/difflib.rst:612 msgid "" -"If you want to know how to change the first sequence into the second, use " -":meth:`get_opcodes`:" +"If you want to know how to change the first sequence into the second, use :" +"meth:`get_opcodes`:" msgstr "" #: ../../library/difflib.rst:623 msgid "" -"The :func:`get_close_matches` function in this module which shows how simple" -" code building on :class:`SequenceMatcher` can be used to do useful work." +"The :func:`get_close_matches` function in this module which shows how simple " +"code building on :class:`SequenceMatcher` can be used to do useful work." msgstr "" #: ../../library/difflib.rst:627 msgid "" -"`Simple version control recipe " -"`_ for a small application " -"built with :class:`SequenceMatcher`." +"`Simple version control recipe `_ for a small application built with :class:`SequenceMatcher`." msgstr "" #: ../../library/difflib.rst:635 @@ -746,8 +742,8 @@ msgstr "" #: ../../library/difflib.rst:655 msgid "" -"*charjunk*: A function that accepts a single character argument (a string of" -" length 1), and returns true if the character is junk. The default is " +"*charjunk*: A function that accepts a single character argument (a string of " +"length 1), and returns true if the character is junk. The default is " "``None``, meaning that no character is considered junk." msgstr "" @@ -766,17 +762,16 @@ msgstr "" #: ../../library/difflib.rst:670 msgid "" -"Compare two sequences of lines, and generate the delta (a sequence of " -"lines)." +"Compare two sequences of lines, and generate the delta (a sequence of lines)." msgstr "" #: ../../library/difflib.rst:672 msgid "" "Each sequence must contain individual single-line strings ending with " -"newlines. Such sequences can be obtained from the " -":meth:`~io.IOBase.readlines` method of file-like objects. The delta " -"generated also consists of newline-terminated strings, ready to be printed " -"as-is via the :meth:`~io.IOBase.writelines` method of a file-like object." +"newlines. Such sequences can be obtained from the :meth:`~io.IOBase." +"readlines` method of file-like objects. The delta generated also consists " +"of newline-terminated strings, ready to be printed as-is via the :meth:`~io." +"IOBase.writelines` method of a file-like object." msgstr "" #: ../../library/difflib.rst:683 @@ -786,8 +781,8 @@ msgstr "" #: ../../library/difflib.rst:685 msgid "" "This example compares two texts. First we set up the texts, sequences of " -"individual single-line strings ending with newlines (such sequences can also" -" be obtained from the :meth:`~io.BaseIO.readlines` method of file-like " +"individual single-line strings ending with newlines (such sequences can also " +"be obtained from the :meth:`~io.BaseIO.readlines` method of file-like " "objects):" msgstr "" @@ -821,6 +816,6 @@ msgstr "" #: ../../library/difflib.rst:752 msgid "" "This example shows how to use difflib to create a ``diff``-like utility. It " -"is also contained in the Python source distribution, as " -":file:`Tools/scripts/diff.py`." +"is also contained in the Python source distribution, as :file:`Tools/scripts/" +"diff.py`." msgstr "" diff --git a/library/dis.po b/library/dis.po index c04dd0d4a..fa0b01d2b 100644 --- a/library/dis.po +++ b/library/dis.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Italo Penaforte , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-13 11:38+0900\n" +"POT-Creation-Date: 2020-04-13 03:09+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +36,8 @@ msgstr "**Código Fonte:** :source:`Lib/dis.py`" msgid "" "The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by " "disassembling it. The CPython bytecode which this module takes as an input " -"is defined in the file :file:`Include/opcode.h` and used by the compiler and" -" the interpreter." +"is defined in the file :file:`Include/opcode.h` and used by the compiler and " +"the interpreter." msgstr "" "O módulo :mod:`dis` suporta a análise dos termos :term:`bytecode` CPython, " "desmontando-o. O bytecode do CPython que o módulo leva como entrada é " @@ -59,8 +61,8 @@ msgid "" "Use 2 bytes for each instruction. Previously the number of bytes varied by " "instruction." msgstr "" -"Use 2 bytes para cada instrução. Anteriormente, o número de bytes variava de" -" acordo com as instruções." +"Use 2 bytes para cada instrução. Anteriormente, o número de bytes variava de " +"acordo com as instruções." #: ../../library/dis.rst:28 msgid "Example: Given the function :func:`myfunc`::" @@ -68,11 +70,11 @@ msgstr "Exemplo: Dada a função :func:`myfunc`::" #: ../../library/dis.rst:33 msgid "" -"the following command can be used to display the disassembly of " -":func:`myfunc`::" +"the following command can be used to display the disassembly of :func:" +"`myfunc`::" msgstr "" -"o seguinte comando pode ser usado para exibir a desmontagem da função " -":func:`myfunc`::" +"o seguinte comando pode ser usado para exibir a desmontagem da função :func:" +"`myfunc`::" #: ../../library/dis.rst:42 msgid "(The \"2\" is a line number)." @@ -84,13 +86,13 @@ msgstr "Analise do Bytecode" #: ../../library/dis.rst:49 msgid "" -"The bytecode analysis API allows pieces of Python code to be wrapped in a " -":class:`Bytecode` object that provides easy access to details of the " -"compiled code." +"The bytecode analysis API allows pieces of Python code to be wrapped in a :" +"class:`Bytecode` object that provides easy access to details of the compiled " +"code." msgstr "" "A API de análise de bytecode permite que partes do código Python sejam " -"Wrapped em um objeto da :class:`Bytecode` que facilite o acesso aos detalhes" -" do código compilado." +"Wrapped em um objeto da :class:`Bytecode` que facilite o acesso aos detalhes " +"do código compilado." #: ../../library/dis.rst:56 msgid "" @@ -102,8 +104,8 @@ msgstr "" #: ../../library/dis.rst:60 msgid "" "This is a convenience wrapper around many of the functions listed below, " -"most notably :func:`get_instructions`, as iterating over a :class:`Bytecode`" -" instance yields the bytecode operations as :class:`Instruction` instances." +"most notably :func:`get_instructions`, as iterating over a :class:`Bytecode` " +"instance yields the bytecode operations as :class:`Instruction` instances." msgstr "" "Este é um Wrapper de conveniência em torno de muitas das funções listadas " "abaixo, mais notavelmente a funçõa :func:`get_instructions`, como iterando " @@ -112,10 +114,10 @@ msgstr "" #: ../../library/dis.rst:64 ../../library/dis.rst:225 msgid "" -"If *first_line* is not ``None``, it indicates the line number that should be" -" reported for the first source line in the disassembled code. Otherwise, " -"the source line information (if any) is taken directly from the disassembled" -" code object." +"If *first_line* is not ``None``, it indicates the line number that should be " +"reported for the first source line in the disassembled code. Otherwise, the " +"source line information (if any) is taken directly from the disassembled " +"code object." msgstr "" #: ../../library/dis.rst:69 @@ -141,8 +143,8 @@ msgstr "" #: ../../library/dis.rst:88 msgid "" -"Return a formatted view of the bytecode operations (the same as printed by " -":func:`dis.dis`, but returned as a multi-line string)." +"Return a formatted view of the bytecode operations (the same as printed by :" +"func:`dis.dis`, but returned as a multi-line string)." msgstr "" #: ../../library/dis.rst:93 @@ -151,8 +153,7 @@ msgid "" "code object, like :func:`code_info`." msgstr "" -#: ../../library/dis.rst:96 ../../library/dis.rst:130 -#: ../../library/dis.rst:176 +#: ../../library/dis.rst:96 ../../library/dis.rst:130 ../../library/dis.rst:176 msgid "This can now handle coroutine and asynchronous generator objects." msgstr "" @@ -167,8 +168,8 @@ msgstr "" #: ../../library/dis.rst:114 msgid "" "The :mod:`dis` module also defines the following analysis functions that " -"convert the input directly to the desired output. They can be useful if only" -" a single operation is being performed, so the intermediate analysis object " +"convert the input directly to the desired output. They can be useful if only " +"a single operation is being performed, so the intermediate analysis object " "isn't useful:" msgstr "" @@ -208,15 +209,15 @@ msgstr "" msgid "" "Disassemble the *x* object. *x* can denote either a module, a class, a " "method, a function, a generator, an asynchronous generator, a coroutine, a " -"code object, a string of source code or a byte sequence of raw bytecode. For" -" a module, it disassembles all functions. For a class, it disassembles all " +"code object, a string of source code or a byte sequence of raw bytecode. For " +"a module, it disassembles all functions. For a class, it disassembles all " "methods (including class and static methods). For a code object or sequence " "of raw bytecode, it prints one line per bytecode instruction. It also " "recursively disassembles nested code objects (the code of comprehensions, " "generator expressions and nested functions, and the code used for building " -"nested classes). Strings are first compiled to code objects with the " -":func:`compile` built-in function before being disassembled. If no object " -"is provided, this function disassembles the last traceback." +"nested classes). Strings are first compiled to code objects with the :func:" +"`compile` built-in function before being disassembled. If no object is " +"provided, this function disassembles the last traceback." msgstr "" #: ../../library/dis.rst:164 ../../library/dis.rst:186 @@ -298,10 +299,10 @@ msgstr "" #: ../../library/dis.rst:235 msgid "" "This generator function uses the ``co_firstlineno`` and ``co_lnotab`` " -"attributes of the code object *code* to find the offsets which are starts of" -" lines in the source code. They are generated as ``(offset, lineno)`` " -"pairs. See :source:`Objects/lnotab_notes.txt` for the ``co_lnotab`` format " -"and how to decode it." +"attributes of the code object *code* to find the offsets which are starts of " +"lines in the source code. They are generated as ``(offset, lineno)`` pairs. " +"See :source:`Objects/lnotab_notes.txt` for the ``co_lnotab`` format and how " +"to decode it." msgstr "" #: ../../library/dis.rst:241 @@ -310,8 +311,8 @@ msgstr "" #: ../../library/dis.rst:247 msgid "" -"Detect all offsets in the code object *code* which are jump targets, and " -"return a list of these offsets." +"Detect all offsets in the raw compiled bytecode string *code* which are jump " +"targets, and return a list of these offsets." msgstr "" #: ../../library/dis.rst:253 @@ -435,8 +436,8 @@ msgstr "Implementa ``TOS = iter(TOS)``." #: ../../library/dis.rst:385 msgid "" -"If ``TOS`` is a :term:`generator iterator` or :term:`coroutine` object it is" -" left as is. Otherwise, implements ``TOS = iter(TOS)``." +"If ``TOS`` is a :term:`generator iterator` or :term:`coroutine` object it is " +"left as is. Otherwise, implements ``TOS = iter(TOS)``." msgstr "" #: ../../library/dis.rst:391 @@ -514,8 +515,8 @@ msgstr "" msgid "" "In-place operations are like binary operations, in that they remove TOS and " "TOS1, and push the result back on the stack, but the operation is done in-" -"place when TOS1 supports it, and the resulting TOS may be (but does not have" -" to be) the original TOS1." +"place when TOS1 supports it, and the resulting TOS may be (but does not have " +"to be) the original TOS1." msgstr "" #: ../../library/dis.rst:478 @@ -652,10 +653,10 @@ msgstr "" #: ../../library/dis.rst:636 msgid "" -"For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and " -":opcode:`MAP_ADD` instructions, while the added value or key/value pair is " -"popped off, the container object remains on the stack so that it is " -"available for further iterations of the loop." +"For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:" +"`MAP_ADD` instructions, while the added value or key/value pair is popped " +"off, the container object remains on the stack so that it is available for " +"further iterations of the loop." msgstr "" #: ../../library/dis.rst:644 @@ -667,8 +668,7 @@ msgid "Pops TOS and yields it from a :term:`generator`." msgstr "" #: ../../library/dis.rst:654 -msgid "" -"Pops TOS and delegates to it as a subiterator from a :term:`generator`." +msgid "Pops TOS and delegates to it as a subiterator from a :term:`generator`." msgstr "" #: ../../library/dis.rst:661 @@ -696,14 +696,14 @@ msgstr "" msgid "" "Removes one block from the block stack. The popped block must be an " "exception handler block, as implicitly created when entering an except " -"handler. In addition to popping extraneous values from the frame stack, the" -" last three popped values are used to restore the exception state." +"handler. In addition to popping extraneous values from the frame stack, the " +"last three popped values are used to restore the exception state." msgstr "" #: ../../library/dis.rst:692 msgid "" -"Terminates a :keyword:`finally` clause. The interpreter recalls whether the" -" exception has to be re-raised, or whether the function returns, and " +"Terminates a :keyword:`finally` clause. The interpreter recalls whether the " +"exception has to be re-raised, or whether the function returns, and " "continues with the outer-next block." msgstr "" @@ -717,12 +717,12 @@ msgstr "" msgid "" "This opcode performs several operations before a with block starts. First, " "it loads :meth:`~object.__exit__` from the context manager and pushes it " -"onto the stack for later use by :opcode:`WITH_CLEANUP`. Then, " -":meth:`~object.__enter__` is called, and a finally block pointing to *delta*" -" is pushed. Finally, the result of calling the enter method is pushed onto " -"the stack. The next opcode will either ignore it (:opcode:`POP_TOP`), or " -"store it in (a) variable(s) (:opcode:`STORE_FAST`, :opcode:`STORE_NAME`, or " -":opcode:`UNPACK_SEQUENCE`)." +"onto the stack for later use by :opcode:`WITH_CLEANUP`. Then, :meth:" +"`~object.__enter__` is called, and a finally block pointing to *delta* is " +"pushed. Finally, the result of calling the enter method is pushed onto the " +"stack. The next opcode will either ignore it (:opcode:`POP_TOP`), or store " +"it in (a) variable(s) (:opcode:`STORE_FAST`, :opcode:`STORE_NAME`, or :" +"opcode:`UNPACK_SEQUENCE`)." msgstr "" #: ../../library/dis.rst:719 @@ -773,9 +773,9 @@ msgstr "" #: ../../library/dis.rst:749 msgid "" -"Implements ``name = TOS``. *namei* is the index of *name* in the attribute " -":attr:`co_names` of the code object. The compiler tries to use " -":opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible." +"Implements ``name = TOS``. *namei* is the index of *name* in the attribute :" +"attr:`co_names` of the code object. The compiler tries to use :opcode:" +"`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible." msgstr "" #: ../../library/dis.rst:756 @@ -792,10 +792,10 @@ msgstr "" #: ../../library/dis.rst:768 msgid "" -"Implements assignment with a starred target: Unpacks an iterable in TOS into" -" individual values, where the total number of values can be smaller than the" -" number of items in the iterable: one of the new values will be a list of " -"all leftover items." +"Implements assignment with a starred target: Unpacks an iterable in TOS into " +"individual values, where the total number of values can be smaller than the " +"number of items in the iterable: one of the new values will be a list of all " +"leftover items." msgstr "" #: ../../library/dis.rst:773 @@ -807,8 +807,8 @@ msgstr "" #: ../../library/dis.rst:780 msgid "" -"Implements ``TOS.name = TOS1``, where *namei* is the index of name in " -":attr:`co_names`." +"Implements ``TOS.name = TOS1``, where *namei* is the index of name in :attr:" +"`co_names`." msgstr "" #: ../../library/dis.rst:786 @@ -860,9 +860,9 @@ msgstr "" #: ../../library/dis.rst:838 msgid "" -"The version of :opcode:`BUILD_MAP` specialized for constant keys. *count* " -"values are consumed from the stack. The top element on the stack contains a" -" tuple of keys." +"The version of :opcode:`BUILD_MAP` specialized for constant keys. Pops the " +"top element on the stack which contains a tuple of keys, then starting from " +"``TOS1``, pops *count* values to form values in the built dictionary." msgstr "" #: ../../library/dis.rst:847 @@ -880,8 +880,8 @@ msgstr "" #: ../../library/dis.rst:864 msgid "" -"This is similar to :opcode:`BUILD_TUPLE_UNPACK`, but is used for ``f(*x, *y," -" *z)`` call syntax. The stack item at position ``count + 1`` should be the " +"This is similar to :opcode:`BUILD_TUPLE_UNPACK`, but is used for ``f(*x, *y, " +"*z)`` call syntax. The stack item at position ``count + 1`` should be the " "corresponding callable ``f``." msgstr "" @@ -893,8 +893,8 @@ msgstr "" #: ../../library/dis.rst:882 msgid "" -"This is similar to :opcode:`BUILD_TUPLE_UNPACK`, but pushes a set instead of" -" tuple. Implements iterable unpacking in set displays ``{*x, *y, *z}``." +"This is similar to :opcode:`BUILD_TUPLE_UNPACK`, but pushes a set instead of " +"tuple. Implements iterable unpacking in set displays ``{*x, *y, *z}``." msgstr "" #: ../../library/dis.rst:891 @@ -906,9 +906,9 @@ msgstr "" #: ../../library/dis.rst:900 msgid "" -"This is similar to :opcode:`BUILD_MAP_UNPACK`, but is used for ``f(**x, **y," -" **z)`` call syntax. The stack item at position ``count + 2`` should be the" -" corresponding callable ``f``." +"This is similar to :opcode:`BUILD_MAP_UNPACK`, but is used for ``f(**x, **y, " +"**z)`` call syntax. The stack item at position ``count + 2`` should be the " +"corresponding callable ``f``." msgstr "" #: ../../library/dis.rst:905 @@ -929,18 +929,18 @@ msgstr "" #: ../../library/dis.rst:923 msgid "" -"Imports the module ``co_names[namei]``. TOS and TOS1 are popped and provide" -" the *fromlist* and *level* arguments of :func:`__import__`. The module " -"object is pushed onto the stack. The current namespace is not affected: for" -" a proper import statement, a subsequent :opcode:`STORE_FAST` instruction " +"Imports the module ``co_names[namei]``. TOS and TOS1 are popped and provide " +"the *fromlist* and *level* arguments of :func:`__import__`. The module " +"object is pushed onto the stack. The current namespace is not affected: for " +"a proper import statement, a subsequent :opcode:`STORE_FAST` instruction " "modifies the namespace." msgstr "" #: ../../library/dis.rst:932 msgid "" "Loads the attribute ``co_names[namei]`` from the module found in TOS. The " -"resulting object is pushed onto the stack, to be subsequently stored by a " -":opcode:`STORE_FAST` instruction." +"resulting object is pushed onto the stack, to be subsequently stored by a :" +"opcode:`STORE_FAST` instruction." msgstr "" #: ../../library/dis.rst:939 @@ -952,8 +952,7 @@ msgid "If TOS is true, sets the bytecode counter to *target*. TOS is popped." msgstr "" #: ../../library/dis.rst:951 -msgid "" -"If TOS is false, sets the bytecode counter to *target*. TOS is popped." +msgid "If TOS is false, sets the bytecode counter to *target*. TOS is popped." msgstr "" #: ../../library/dis.rst:958 @@ -964,8 +963,8 @@ msgstr "" #: ../../library/dis.rst:966 msgid "" -"If TOS is false, sets the bytecode counter to *target* and leaves TOS on the" -" stack. Otherwise (TOS is true), TOS is popped." +"If TOS is false, sets the bytecode counter to *target* and leaves TOS on the " +"stack. Otherwise (TOS is true), TOS is popped." msgstr "" #: ../../library/dis.rst:974 @@ -974,8 +973,8 @@ msgstr "" #: ../../library/dis.rst:979 msgid "" -"TOS is an :term:`iterator`. Call its :meth:`~iterator.__next__` method. If" -" this yields a new value, push it on the stack (leaving the iterator below " +"TOS is an :term:`iterator`. Call its :meth:`~iterator.__next__` method. If " +"this yields a new value, push it on the stack (leaving the iterator below " "it). If the iterator indicates it is exhausted TOS is popped, and the byte " "code counter is incremented by *delta*." msgstr "" @@ -1031,15 +1030,15 @@ msgstr "" #: ../../library/dis.rst:1039 msgid "" -"Much like :opcode:`LOAD_DEREF` but first checks the locals dictionary before" -" consulting the cell. This is used for loading free variables in class " +"Much like :opcode:`LOAD_DEREF` but first checks the locals dictionary before " +"consulting the cell. This is used for loading free variables in class " "bodies." msgstr "" #: ../../library/dis.rst:1048 msgid "" -"Stores TOS into the cell contained in slot *i* of the cell and free variable" -" storage." +"Stores TOS into the cell contained in slot *i* of the cell and free variable " +"storage." msgstr "" #: ../../library/dis.rst:1054 @@ -1107,74 +1106,76 @@ msgid "" "arguments. If the lowest bit of *flags* is set, the top of the stack " "contains a mapping object containing additional keyword arguments. Below " "that is an iterable object containing positional arguments and a callable " -"object to call. :opcode:`BUILD_MAP_UNPACK_WITH_CALL` and " -":opcode:`BUILD_TUPLE_UNPACK_WITH_CALL` can be used for merging multiple " -"mapping objects and iterables containing arguments. Before the callable is " -"called, the mapping object and iterable object are each \"unpacked\" and " -"their contents passed in as keyword and positional arguments respectively. " +"object to call. :opcode:`BUILD_MAP_UNPACK_WITH_CALL` and :opcode:" +"`BUILD_TUPLE_UNPACK_WITH_CALL` can be used for merging multiple mapping " +"objects and iterables containing arguments. Before the callable is called, " +"the mapping object and iterable object are each \"unpacked\" and their " +"contents passed in as keyword and positional arguments respectively. " "``CALL_FUNCTION_EX`` pops all arguments and the callable object off the " -"stack, calls the callable object with those arguments, and pushes the return" -" value returned by the callable object." +"stack, calls the callable object with those arguments, and pushes the return " +"value returned by the callable object." msgstr "" #: ../../library/dis.rst:1123 msgid "" -"Loads a method named ``co_names[namei]`` from TOS object. TOS is popped and " -"method and TOS are pushed when interpreter can call unbound method directly." -" TOS will be used as the first argument (``self``) by :opcode:`CALL_METHOD`." -" Otherwise, ``NULL`` and method is pushed (method is bound method or " -"something else)." +"Loads a method named ``co_names[namei]`` from the TOS object. TOS is popped. " +"This bytecode distinguishes two cases: if TOS has a method with the correct " +"name, the bytecode pushes the unbound method and TOS. TOS will be used as " +"the first argument (``self``) by :opcode:`CALL_METHOD` when calling the " +"unbound method. Otherwise, ``NULL`` and the object return by the attribute " +"lookup are pushed." msgstr "" -#: ../../library/dis.rst:1134 +#: ../../library/dis.rst:1135 msgid "" -"Calls a method. *argc* is number of positional arguments. Keyword arguments" -" are not supported. This opcode is designed to be used with " -":opcode:`LOAD_METHOD`. Positional arguments are on top of the stack. Below " -"them, two items described in :opcode:`LOAD_METHOD` on the stack. All of them" -" are popped and return value is pushed." +"Calls a method. *argc* is the number of positional arguments. Keyword " +"arguments are not supported. This opcode is designed to be used with :" +"opcode:`LOAD_METHOD`. Positional arguments are on top of the stack. Below " +"them, the two items described in :opcode:`LOAD_METHOD` are on the stack " +"(either ``self`` and an unbound method object or ``NULL`` and an arbitrary " +"callable). All of them are popped and the return value is pushed." msgstr "" -#: ../../library/dis.rst:1145 +#: ../../library/dis.rst:1147 msgid "" -"Pushes a new function object on the stack. From bottom to top, the consumed" -" stack must consist of values if the argument carries a specified flag value" +"Pushes a new function object on the stack. From bottom to top, the consumed " +"stack must consist of values if the argument carries a specified flag value" msgstr "" -#: ../../library/dis.rst:1148 +#: ../../library/dis.rst:1150 msgid "" "``0x01`` a tuple of default values for positional-only and positional-or-" "keyword parameters in positional order" msgstr "" -#: ../../library/dis.rst:1150 +#: ../../library/dis.rst:1152 msgid "``0x02`` a dictionary of keyword-only parameters' default values" msgstr "" -#: ../../library/dis.rst:1151 +#: ../../library/dis.rst:1153 msgid "``0x04`` an annotation dictionary" msgstr "" -#: ../../library/dis.rst:1152 +#: ../../library/dis.rst:1154 msgid "``0x08`` a tuple containing cells for free variables, making a closure" msgstr "" -#: ../../library/dis.rst:1153 +#: ../../library/dis.rst:1155 msgid "the code associated with the function (at TOS1)" msgstr "" -#: ../../library/dis.rst:1154 +#: ../../library/dis.rst:1156 msgid "the :term:`qualified name` of the function (at TOS)" msgstr "" -#: ../../library/dis.rst:1161 +#: ../../library/dis.rst:1163 msgid "" "Pushes a slice object on the stack. *argc* must be 2 or 3. If it is 2, " "``slice(TOS1, TOS)`` is pushed; if it is 3, ``slice(TOS2, TOS1, TOS)`` is " "pushed. See the :func:`slice` built-in function for more information." msgstr "" -#: ../../library/dis.rst:1168 +#: ../../library/dis.rst:1170 msgid "" "Prefixes any opcode which has an argument too big to fit into the default " "one byte. *ext* holds an additional byte which act as higher bits in the " @@ -1182,87 +1183,86 @@ msgid "" "allowed, forming an argument from two-byte to four-byte." msgstr "" -#: ../../library/dis.rst:1176 +#: ../../library/dis.rst:1178 msgid "" "Used for implementing formatted literal strings (f-strings). Pops an " "optional *fmt_spec* from the stack, then a required *value*. *flags* is " "interpreted as follows:" msgstr "" -#: ../../library/dis.rst:1180 +#: ../../library/dis.rst:1182 msgid "``(flags & 0x03) == 0x00``: *value* is formatted as-is." msgstr "" -#: ../../library/dis.rst:1181 +#: ../../library/dis.rst:1183 msgid "" -"``(flags & 0x03) == 0x01``: call :func:`str` on *value* before formatting " -"it." +"``(flags & 0x03) == 0x01``: call :func:`str` on *value* before formatting it." msgstr "" -#: ../../library/dis.rst:1183 +#: ../../library/dis.rst:1185 msgid "" "``(flags & 0x03) == 0x02``: call :func:`repr` on *value* before formatting " "it." msgstr "" -#: ../../library/dis.rst:1185 +#: ../../library/dis.rst:1187 msgid "" "``(flags & 0x03) == 0x03``: call :func:`ascii` on *value* before formatting " "it." msgstr "" -#: ../../library/dis.rst:1187 +#: ../../library/dis.rst:1189 msgid "" "``(flags & 0x04) == 0x04``: pop *fmt_spec* from the stack and use it, else " "use an empty *fmt_spec*." msgstr "" -#: ../../library/dis.rst:1190 +#: ../../library/dis.rst:1192 msgid "" "Formatting is performed using :c:func:`PyObject_Format`. The result is " "pushed on the stack." msgstr "" -#: ../../library/dis.rst:1198 +#: ../../library/dis.rst:1200 msgid "" "This is not really an opcode. It identifies the dividing line between " "opcodes which don't use their argument and those that do (``< " "HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively)." msgstr "" -#: ../../library/dis.rst:1202 +#: ../../library/dis.rst:1204 msgid "" "Now every instruction has an argument, but opcodes ``< HAVE_ARGUMENT`` " "ignore it. Before, only opcodes ``>= HAVE_ARGUMENT`` had an argument." msgstr "" -#: ../../library/dis.rst:1210 +#: ../../library/dis.rst:1212 msgid "Opcode collections" msgstr "" -#: ../../library/dis.rst:1212 +#: ../../library/dis.rst:1214 msgid "" "These collections are provided for automatic introspection of bytecode " "instructions:" msgstr "" -#: ../../library/dis.rst:1217 +#: ../../library/dis.rst:1219 msgid "Sequence of operation names, indexable using the bytecode." msgstr "" -#: ../../library/dis.rst:1222 +#: ../../library/dis.rst:1224 msgid "Dictionary mapping operation names to bytecodes." msgstr "" -#: ../../library/dis.rst:1227 +#: ../../library/dis.rst:1229 msgid "Sequence of all compare operation names." msgstr "" -#: ../../library/dis.rst:1232 +#: ../../library/dis.rst:1234 msgid "Sequence of bytecodes that access a constant." msgstr "" -#: ../../library/dis.rst:1237 +#: ../../library/dis.rst:1239 msgid "" "Sequence of bytecodes that access a free variable (note that 'free' in this " "context refers to names in the current scope that are referenced by inner " @@ -1270,22 +1270,22 @@ msgid "" "does *not* include references to global or builtin scopes)." msgstr "" -#: ../../library/dis.rst:1245 +#: ../../library/dis.rst:1247 msgid "Sequence of bytecodes that access an attribute by name." msgstr "" -#: ../../library/dis.rst:1250 +#: ../../library/dis.rst:1252 msgid "Sequence of bytecodes that have a relative jump target." msgstr "" -#: ../../library/dis.rst:1255 +#: ../../library/dis.rst:1257 msgid "Sequence of bytecodes that have an absolute jump target." msgstr "" -#: ../../library/dis.rst:1260 +#: ../../library/dis.rst:1262 msgid "Sequence of bytecodes that access a local variable." msgstr "" -#: ../../library/dis.rst:1265 +#: ../../library/dis.rst:1267 msgid "Sequence of bytecodes of Boolean operations." msgstr "" diff --git a/library/distribution.po b/library/distribution.po index bb7c00cfd..390c07725 100644 --- a/library/distribution.po +++ b/library/distribution.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/distutils.po b/library/distutils.po index 3d1fe2df8..0fb505625 100644 --- a/library/distutils.po +++ b/library/distutils.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,27 +30,26 @@ msgstr ":mod:`distutils` --- Compilação e instalação de módulos do Python" msgid "" "The :mod:`distutils` package provides support for building and installing " "additional modules into a Python installation. The new modules may be " -"either 100%-pure Python, or may be extension modules written in C, or may be" -" collections of Python packages which include modules coded in both Python " +"either 100%-pure Python, or may be extension modules written in C, or may be " +"collections of Python packages which include modules coded in both Python " "and C." msgstr "" "O pacote :mod:`distutils` fornece suporte para criar e instalar módulos " -"adicionais em uma instalação do Python. Os novos módulos podem ser um Python" -" 100% puro, podem ser módulos de extensão escritos em C ou podem ser " -"coleções de pacotes Python que incluem módulos codificados em Python e C." +"adicionais em uma instalação do Python. Os novos módulos podem ser um Python " +"100% puro, podem ser módulos de extensão escritos em C ou podem ser coleções " +"de pacotes Python que incluem módulos codificados em Python e C." #: ../../library/distutils.rst:17 msgid "" "Most Python users will *not* want to use this module directly, but instead " -"use the cross-version tools maintained by the Python Packaging Authority. In" -" particular, `setuptools `__ " -"is an enhanced alternative to :mod:`distutils` that provides:" +"use the cross-version tools maintained by the Python Packaging Authority. In " +"particular, `setuptools `__ is " +"an enhanced alternative to :mod:`distutils` that provides:" msgstr "" "A maioria dos usuários do Python *não* deseja usar esse módulo diretamente, " "mas usa as ferramentas de versão cruzada mantidas pela Python Packaging " -"Authority. Em particular, `setuptools " -"`__ é uma alternativa " -"aprimorada para o :mod:`distutils` que fornece:" +"Authority. Em particular, `setuptools `__ é uma alternativa aprimorada para o :mod:`distutils` que fornece:" #: ../../library/distutils.rst:23 msgid "support for declaring project dependencies" @@ -86,15 +86,15 @@ msgstr "comportamento consistente em todas as versões suportadas do Python" #: ../../library/distutils.rst:32 msgid "" -"The recommended `pip `__ installer runs all " -"``setup.py`` scripts with ``setuptools``, even if the script itself only " -"imports ``distutils``. Refer to the `Python Packaging User Guide " -"`_ for more information." +"The recommended `pip `__ installer runs all ``setup." +"py`` scripts with ``setuptools``, even if the script itself only imports " +"``distutils``. Refer to the `Python Packaging User Guide `_ for more information." msgstr "" "O instalador `pip `__ recomendado executa todos os " "scripts ``setup.py`` com ``setuptools``, mesmo que o próprio script importe " -"apenas ``distutils``. Consulte o `Guia do Usuário de Pacotes Python " -"`_ para obter mais informações." +"apenas ``distutils``. Consulte o `Guia do Usuário de Pacotes Python `_ para obter mais informações." #: ../../library/distutils.rst:38 msgid "" @@ -103,10 +103,10 @@ msgid "" "system, the legacy :mod:`distutils` based user documentation and API " "reference remain available:" msgstr "" -"Para os benefícios dos autores e usuários da ferramenta de empacotamento que" -" buscam uma compreensão mais profunda dos detalhes do atual sistema de " -"empacotamento e distribuição, a documentação legada baseada no " -":mod:`distutils` e a referência de API permanecem disponíveis:" +"Para os benefícios dos autores e usuários da ferramenta de empacotamento que " +"buscam uma compreensão mais profunda dos detalhes do atual sistema de " +"empacotamento e distribuição, a documentação legada baseada no :mod:" +"`distutils` e a referência de API permanecem disponíveis:" #: ../../library/distutils.rst:43 msgid ":ref:`install-index`" diff --git a/library/doctest.po b/library/doctest.po index 264b45de1..0388483b4 100644 --- a/library/doctest.po +++ b/library/doctest.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Rafael Marques , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-13 11:09+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" "Last-Translator: Rafael Marques , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,12 +36,12 @@ msgstr "**Source code:** :source:`Lib/doctest.py`" #: ../../library/doctest.rst:18 msgid "" "The :mod:`doctest` module searches for pieces of text that look like " -"interactive Python sessions, and then executes those sessions to verify that" -" they work exactly as shown. There are several common ways to use doctest:" +"interactive Python sessions, and then executes those sessions to verify that " +"they work exactly as shown. There are several common ways to use doctest:" msgstr "" "O módulo :mod:`doctest` busca partes de texto que se parecem com sessões " -"interativas do Python e, em seguida, executa essas sessões para verificar se" -" elas funcionam exatamente como mostrado. Existem várias maneiras comuns de " +"interativas do Python e, em seguida, executa essas sessões para verificar se " +"elas funcionam exatamente como mostrado. Existem várias maneiras comuns de " "usar o doctest:" #: ../../library/doctest.rst:22 @@ -68,8 +69,8 @@ msgid "" msgstr "" "Para escrever a documentação do tutorial para um pacote, ilustrado de forma " "liberal com exemplos de entrada e saída. Dependendo se os exemplos ou o " -"texto expositivo são enfatizados, isso tem o sabor do \"teste ilustrado\" ou" -" \"documentação executável\"." +"texto expositivo são enfatizados, isso tem o sabor do \"teste ilustrado\" ou " +"\"documentação executável\"." #: ../../library/doctest.rst:33 msgid "Here's a complete but small example module::" @@ -77,11 +78,11 @@ msgstr "Aqui temos um pequeno exemplo, porém, completo::" #: ../../library/doctest.rst:90 msgid "" -"If you run :file:`example.py` directly from the command line, :mod:`doctest`" -" works its magic:" +"If you run :file:`example.py` directly from the command line, :mod:`doctest` " +"works its magic:" msgstr "" -"Se executares diretamente :file:`example.py` desde a linha de comando, " -":mod:`doctest` a mágica funcionará:" +"Se executares diretamente :file:`example.py` desde a linha de comando, :mod:" +"`doctest` a mágica funcionará:" #: ../../library/doctest.rst:98 msgid "" @@ -90,8 +91,8 @@ msgid "" "it's trying, and prints a summary at the end:" msgstr "" "Observe que nada foi impresso na saída padrão! Isso é normal, e isso " -"significa que todos os exemplos funcionaram. Passe ``-v`` para o script e " -":mod:`doctest` imprimirá um registro detalhado do que está sendo testando " +"significa que todos os exemplos funcionaram. Passe ``-v`` para o script e :" +"mod:`doctest` imprimirá um registro detalhado do que está sendo testando " "imprimindo ainda um resumo no final:" #: ../../library/doctest.rst:116 @@ -100,15 +101,15 @@ msgstr "E assim por diante, eventualmente terminando com:" #: ../../library/doctest.rst:135 msgid "" -"That's all you need to know to start making productive use of " -":mod:`doctest`! Jump in. The following sections provide full details. Note" -" that there are many examples of doctests in the standard Python test suite " -"and libraries. Especially useful examples can be found in the standard test " +"That's all you need to know to start making productive use of :mod:" +"`doctest`! Jump in. The following sections provide full details. Note that " +"there are many examples of doctests in the standard Python test suite and " +"libraries. Especially useful examples can be found in the standard test " "file :file:`Lib/test/test_doctest.py`." msgstr "" "Isso é tudo o que precisas saber para começar a fazer uso produtivo do " -"módulo :mod:`doctest`! Pule! As seções a seguir fornecem detalhes completos." -" Observe que há muitos exemplos de documentos no conjunto de teste padrão " +"módulo :mod:`doctest`! Pule! As seções a seguir fornecem detalhes completos. " +"Observe que há muitos exemplos de documentos no conjunto de teste padrão " "Python e bibliotecas. Exemplos especialmente úteis podem ser encontrados no " "arquivo de teste padrão :file:`Lib/test/test_doctest.py`." @@ -122,8 +123,8 @@ msgid "" "continue to do it) is to end each module :mod:`M` with::" msgstr "" "A maneira mais simples de começar a usar o doctest (mas não necessariamente " -"a maneira como você continuará fazendo isso) é encerrar cada módulo :mod:`M`" -" com::" +"a maneira como você continuará fazendo isso) é encerrar cada módulo :mod:`M` " +"com::" #: ../../library/doctest.rst:154 msgid ":mod:`doctest` then examines docstrings in module :mod:`M`." @@ -140,14 +141,14 @@ msgstr "" #: ../../library/doctest.rst:161 msgid "" "This won't display anything unless an example fails, in which case the " -"failing example(s) and the cause(s) of the failure(s) are printed to stdout," -" and the final line of output is ``***Test Failed*** N failures.``, where " -"*N* is the number of examples that failed." +"failing example(s) and the cause(s) of the failure(s) are printed to stdout, " +"and the final line of output is ``***Test Failed*** N failures.``, where *N* " +"is the number of examples that failed." msgstr "" "Isso não exibirá nada, a menos que um exemplo falhe, caso em que o(s) " "exemplo(s) falhando(s) e a(s) causa(s) da(s) falha(s) são impressas em " -"stdout e a linha final de saída será ``***Test Failed*** N failures.``, onde" -" *N* é o número de exemplos que falharam." +"stdout e a linha final de saída será ``***Test Failed*** N failures.``, onde " +"*N* é o número de exemplos que falharam." #: ../../library/doctest.rst:166 msgid "Run it with the ``-v`` switch instead::" @@ -176,9 +177,9 @@ msgstr "" #: ../../library/doctest.rst:184 msgid "" -"This will import :file:`example.py` as a standalone module and run " -":func:`testmod` on it. Note that this may not work correctly if the file is" -" part of a package and imports other submodules from that package." +"This will import :file:`example.py` as a standalone module and run :func:" +"`testmod` on it. Note that this may not work correctly if the file is part " +"of a package and imports other submodules from that package." msgstr "" #: ../../library/doctest.rst:188 @@ -214,9 +215,9 @@ msgstr "" #: ../../library/doctest.rst:236 msgid "" "As with :func:`testmod`, :func:`testfile` won't display anything unless an " -"example fails. If an example does fail, then the failing example(s) and the" -" cause(s) of the failure(s) are printed to stdout, using the same format as " -":func:`testmod`." +"example fails. If an example does fail, then the failing example(s) and the " +"cause(s) of the failure(s) are printed to stdout, using the same format as :" +"func:`testmod`." msgstr "" #: ../../library/doctest.rst:241 @@ -229,15 +230,15 @@ msgstr "" #: ../../library/doctest.rst:245 msgid "" -"Like :func:`testmod`, :func:`testfile`'s verbosity can be set with the " -"``-v`` command-line switch or with the optional keyword argument *verbose*." +"Like :func:`testmod`, :func:`testfile`'s verbosity can be set with the ``-" +"v`` command-line switch or with the optional keyword argument *verbose*." msgstr "" #: ../../library/doctest.rst:249 msgid "" -"There is also a command line shortcut for running :func:`testfile`. You can" -" instruct the Python interpreter to run the doctest module directly from the" -" standard library and pass the file name(s) on the command line::" +"There is also a command line shortcut for running :func:`testfile`. You can " +"instruct the Python interpreter to run the doctest module directly from the " +"standard library and pass the file name(s) on the command line::" msgstr "" #: ../../library/doctest.rst:255 @@ -260,8 +261,8 @@ msgstr "Como funciona" #: ../../library/doctest.rst:266 msgid "" -"This section examines in detail how doctest works: which docstrings it looks" -" at, how it finds interactive examples, what execution context it uses, how " +"This section examines in detail how doctest works: which docstrings it looks " +"at, how it finds interactive examples, what execution context it uses, how " "it handles exceptions, and how option flags can be used to control its " "behavior. This is the information that you need to know to write doctest " "examples; for information about actually running doctest on these examples, " @@ -299,8 +300,8 @@ msgstr "" #: ../../library/doctest.rst:303 msgid "" -"In most cases a copy-and-paste of an interactive console session works fine," -" but doctest isn't trying to do an exact emulation of any specific Python " +"In most cases a copy-and-paste of an interactive console session works fine, " +"but doctest isn't trying to do an exact emulation of any specific Python " "shell." msgstr "" @@ -318,9 +319,9 @@ msgstr "" #: ../../library/doctest.rst:334 msgid "" "Expected output cannot contain an all-whitespace line, since such a line is " -"taken to signal the end of expected output. If expected output does contain" -" a blank line, put ```` in your doctest example each place a " -"blank line is expected." +"taken to signal the end of expected output. If expected output does contain " +"a blank line, put ```` in your doctest example each place a blank " +"line is expected." msgstr "" #: ../../library/doctest.rst:339 @@ -328,35 +329,35 @@ msgid "" "All hard tab characters are expanded to spaces, using 8-column tab stops. " "Tabs in output generated by the tested code are not modified. Because any " "hard tabs in the sample output *are* expanded, this means that if the code " -"output includes hard tabs, the only way the doctest can pass is if the " -":const:`NORMALIZE_WHITESPACE` option or :ref:`directive ` is in effect. Alternatively, the test can be rewritten to " -"capture the output and compare it to an expected value as part of the test." -" This handling of tabs in the source was arrived at through trial and " -"error, and has proven to be the least error prone way of handling them. It " -"is possible to use a different algorithm for handling tabs by writing a " -"custom :class:`DocTestParser` class." +"output includes hard tabs, the only way the doctest can pass is if the :" +"const:`NORMALIZE_WHITESPACE` option or :ref:`directive ` " +"is in effect. Alternatively, the test can be rewritten to capture the output " +"and compare it to an expected value as part of the test. This handling of " +"tabs in the source was arrived at through trial and error, and has proven to " +"be the least error prone way of handling them. It is possible to use a " +"different algorithm for handling tabs by writing a custom :class:" +"`DocTestParser` class." msgstr "" #: ../../library/doctest.rst:351 msgid "" -"Output to stdout is captured, but not output to stderr (exception tracebacks" -" are captured via a different means)." +"Output to stdout is captured, but not output to stderr (exception tracebacks " +"are captured via a different means)." msgstr "" #: ../../library/doctest.rst:354 msgid "" "If you continue a line via backslashing in an interactive session, or for " -"any other reason use a backslash, you should use a raw docstring, which will" -" preserve your backslashes exactly as you type them::" +"any other reason use a backslash, you should use a raw docstring, which will " +"preserve your backslashes exactly as you type them::" msgstr "" #: ../../library/doctest.rst:363 msgid "" "Otherwise, the backslash will be interpreted as part of the string. For " "example, the ``\\n`` above would be interpreted as a newline character. " -"Alternatively, you can double each backslash in the doctest version (and not" -" use a raw string)::" +"Alternatively, you can double each backslash in the doctest version (and not " +"use a raw string)::" msgstr "" #: ../../library/doctest.rst:372 @@ -397,8 +398,8 @@ msgstr "" #: ../../library/doctest.rst:405 msgid "" "No problem, provided that the traceback is the only output produced by the " -"example: just paste in the traceback. [#]_ Since tracebacks contain details" -" that are likely to change rapidly (for example, exact file paths and line " +"example: just paste in the traceback. [#]_ Since tracebacks contain details " +"that are likely to change rapidly (for example, exact file paths and line " "numbers), this is one case where doctest works hard to be flexible in what " "it accepts." msgstr "" @@ -409,8 +410,8 @@ msgstr "" #: ../../library/doctest.rst:418 msgid "" -"That doctest succeeds if :exc:`ValueError` is raised, with the " -"``list.remove(x): x not in list`` detail as shown." +"That doctest succeeds if :exc:`ValueError` is raised, with the ``list." +"remove(x): x not in list`` detail as shown." msgstr "" #: ../../library/doctest.rst:421 @@ -451,10 +452,10 @@ msgstr "" #: ../../library/doctest.rst:457 msgid "" "Note that tracebacks are treated very specially. In particular, in the " -"rewritten example, the use of ``...`` is independent of doctest's " -":const:`ELLIPSIS` option. The ellipsis in that example could be left out, " -"or could just as well be three (or three hundred) commas or digits, or an " -"indented transcript of a Monty Python skit." +"rewritten example, the use of ``...`` is independent of doctest's :const:" +"`ELLIPSIS` option. The ellipsis in that example could be left out, or could " +"just as well be three (or three hundred) commas or digits, or an indented " +"transcript of a Monty Python skit." msgstr "" #: ../../library/doctest.rst:463 @@ -474,10 +475,10 @@ msgstr "" #: ../../library/doctest.rst:472 msgid "" "Each line of the traceback stack (if present) must be indented further than " -"the first line of the example, *or* start with a non-alphanumeric character." -" The first line following the traceback header indented the same and " -"starting with an alphanumeric is taken to be the start of the exception " -"detail. Of course this does the right thing for genuine tracebacks." +"the first line of the example, *or* start with a non-alphanumeric character. " +"The first line following the traceback header indented the same and starting " +"with an alphanumeric is taken to be the start of the exception detail. Of " +"course this does the right thing for genuine tracebacks." msgstr "" #: ../../library/doctest.rst:478 @@ -489,8 +490,8 @@ msgstr "" #: ../../library/doctest.rst:482 msgid "" -"The interactive shell omits the traceback header line for some " -":exc:`SyntaxError`\\ s. But doctest uses the traceback header line to " +"The interactive shell omits the traceback header line for some :exc:" +"`SyntaxError`\\ s. But doctest uses the traceback header line to " "distinguish exceptions from non-exceptions. So in the rare case where you " "need to test a :exc:`SyntaxError` that omits the traceback header, you will " "need to manually add the traceback header line to your test example." @@ -506,8 +507,8 @@ msgstr "" msgid "" "Since the lines showing the position of the error come before the exception " "type and detail, they are not checked by doctest. For example, the " -"following test would pass, even though it puts the ``^`` marker in the wrong" -" location::" +"following test would pass, even though it puts the ``^`` marker in the wrong " +"location::" msgstr "" #: ../../library/doctest.rst:515 @@ -517,8 +518,8 @@ msgstr "Flags opcionais" #: ../../library/doctest.rst:517 msgid "" "A number of option flags control various aspects of doctest's behavior. " -"Symbolic names for the flags are supplied as module constants, which can be " -":ref:`bitwise ORed ` together and passed to various functions. The " +"Symbolic names for the flags are supplied as module constants, which can be :" +"ref:`bitwise ORed ` together and passed to various functions. The " "names can also be used in :ref:`doctest directives `, " "and may be passed to the doctest command line interface via the ``-o`` " "option." @@ -530,30 +531,29 @@ msgstr "" #: ../../library/doctest.rst:526 msgid "" -"The first group of options define test semantics, controlling aspects of how" -" doctest decides whether actual output matches an example's expected output:" +"The first group of options define test semantics, controlling aspects of how " +"doctest decides whether actual output matches an example's expected output:" msgstr "" #: ../../library/doctest.rst:532 msgid "" "By default, if an expected output block contains just ``1``, an actual " "output block containing just ``1`` or just ``True`` is considered to be a " -"match, and similarly for ``0`` versus ``False``. When " -":const:`DONT_ACCEPT_TRUE_FOR_1` is specified, neither substitution is " -"allowed. The default behavior caters to that Python changed the return type" -" of many functions from integer to boolean; doctests expecting \"little " -"integer\" output still work in these cases. This option will probably go " -"away, but not for several years." +"match, and similarly for ``0`` versus ``False``. When :const:" +"`DONT_ACCEPT_TRUE_FOR_1` is specified, neither substitution is allowed. The " +"default behavior caters to that Python changed the return type of many " +"functions from integer to boolean; doctests expecting \"little integer\" " +"output still work in these cases. This option will probably go away, but " +"not for several years." msgstr "" #: ../../library/doctest.rst:544 msgid "" "By default, if an expected output block contains a line containing only the " -"string ````, then that line will match a blank line in the actual" -" output. Because a genuinely blank line delimits the expected output, this " -"is the only way to communicate that a blank line is expected. When " -":const:`DONT_ACCEPT_BLANKLINE` is specified, this substitution is not " -"allowed." +"string ````, then that line will match a blank line in the actual " +"output. Because a genuinely blank line delimits the expected output, this " +"is the only way to communicate that a blank line is expected. When :const:" +"`DONT_ACCEPT_BLANKLINE` is specified, this substitution is not allowed." msgstr "" #: ../../library/doctest.rst:553 @@ -572,17 +572,16 @@ msgid "" "match any substring in the actual output. This includes substrings that " "span line boundaries, and empty substrings, so it's best to keep usage of " "this simple. Complicated uses can lead to the same kinds of \"oops, it " -"matched too much!\" surprises that ``.*`` is prone to in regular " -"expressions." +"matched too much!\" surprises that ``.*`` is prone to in regular expressions." msgstr "" #: ../../library/doctest.rst:573 msgid "" "When specified, an example that expects an exception passes if an exception " -"of the expected type is raised, even if the exception detail does not match." -" For example, an example expecting ``ValueError: 42`` will pass if the " -"actual exception raised is ``ValueError: 3*14``, but will fail, e.g., if " -":exc:`TypeError` is raised." +"of the expected type is raised, even if the exception detail does not " +"match. For example, an example expecting ``ValueError: 42`` will pass if " +"the actual exception raised is ``ValueError: 3*14``, but will fail, e.g., " +"if :exc:`TypeError` is raised." msgstr "" #: ../../library/doctest.rst:579 @@ -596,12 +595,12 @@ msgstr "" msgid "" "Note that :const:`ELLIPSIS` can also be used to ignore the details of the " "exception message, but such a test may still fail based on whether or not " -"the module details are printed as part of the exception name. Using " -":const:`IGNORE_EXCEPTION_DETAIL` and the details from Python 2.3 is also the" -" only clear way to write a doctest that doesn't care about the exception " -"detail yet continues to pass under Python 2.3 or earlier (those releases do " -"not support :ref:`doctest directives ` and ignore them " -"as irrelevant comments). For example::" +"the module details are printed as part of the exception name. Using :const:" +"`IGNORE_EXCEPTION_DETAIL` and the details from Python 2.3 is also the only " +"clear way to write a doctest that doesn't care about the exception detail " +"yet continues to pass under Python 2.3 or earlier (those releases do not " +"support :ref:`doctest directives ` and ignore them as " +"irrelevant comments). For example::" msgstr "" #: ../../library/doctest.rst:605 @@ -621,8 +620,8 @@ msgstr "" msgid "" "When specified, do not run the example at all. This can be useful in " "contexts where doctest examples serve as both documentation and test cases, " -"and an example should be included for documentation purposes, but should not" -" be checked. E.g., the example's output might be random; or the example " +"and an example should be included for documentation purposes, but should not " +"be checked. E.g., the example's output might be random; or the example " "might depend on resources which would be unavailable to the test driver." msgstr "" @@ -641,14 +640,14 @@ msgstr "" #: ../../library/doctest.rst:634 msgid "" -"When specified, failures that involve multi-line expected and actual outputs" -" are displayed using a unified diff." +"When specified, failures that involve multi-line expected and actual outputs " +"are displayed using a unified diff." msgstr "" #: ../../library/doctest.rst:640 msgid "" -"When specified, failures that involve multi-line expected and actual outputs" -" will be displayed using a context diff." +"When specified, failures that involve multi-line expected and actual outputs " +"will be displayed using a context diff." msgstr "" #: ../../library/doctest.rst:646 @@ -675,9 +674,9 @@ msgstr "" #: ../../library/doctest.rst:666 msgid "" "When specified, exit after the first failing example and don't attempt to " -"run the remaining examples. Thus, the number of failures reported will be at" -" most 1. This flag may be useful during debugging, since examples after the" -" first failure won't even produce debugging output." +"run the remaining examples. Thus, the number of failures reported will be at " +"most 1. This flag may be useful during debugging, since examples after the " +"first failure won't even produce debugging output." msgstr "" #: ../../library/doctest.rst:671 @@ -699,10 +698,10 @@ msgstr "" #: ../../library/doctest.rst:688 msgid "" "Create a new option flag with a given name, and return the new flag's " -"integer value. :func:`register_optionflag` can be used when subclassing " -":class:`OutputChecker` or :class:`DocTestRunner` to create new options that " -"are supported by your subclasses. :func:`register_optionflag` should always" -" be called using the following idiom::" +"integer value. :func:`register_optionflag` can be used when subclassing :" +"class:`OutputChecker` or :class:`DocTestRunner` to create new options that " +"are supported by your subclasses. :func:`register_optionflag` should always " +"be called using the following idiom::" msgstr "" #: ../../library/doctest.rst:704 @@ -737,8 +736,8 @@ msgstr "" msgid "" "Without the directive it would fail, both because the actual output doesn't " "have two blanks before the single-digit list elements, and because the " -"actual output is on a single line. This test also passes, and also requires" -" a directive to do so::" +"actual output is on a single line. This test also passes, and also requires " +"a directive to do so::" msgstr "" #: ../../library/doctest.rst:738 @@ -764,8 +763,8 @@ msgstr "" msgid "" "Note that since all options are disabled by default, and directives apply " "only to the example they appear in, enabling options (via ``+`` in a " -"directive) is usually the only meaningful choice. However, option flags can" -" also be passed to functions that run doctests, establishing different " +"directive) is usually the only meaningful choice. However, option flags can " +"also be passed to functions that run doctests, establishing different " "defaults. In such cases, disabling an option via ``-`` in a directive can " "be useful." msgstr "" @@ -776,10 +775,10 @@ msgstr "" #: ../../library/doctest.rst:771 msgid "" -":mod:`doctest` is serious about requiring exact matches in expected output." -" If even a single character doesn't match, the test fails. This will " -"probably surprise you a few times, as you learn exactly what Python does and" -" doesn't guarantee about output. For example, when printing a set, Python " +":mod:`doctest` is serious about requiring exact matches in expected output. " +"If even a single character doesn't match, the test fails. This will " +"probably surprise you a few times, as you learn exactly what Python does and " +"doesn't guarantee about output. For example, when printing a set, Python " "doesn't guarantee that the element is printed in any particular order, so a " "test like ::" msgstr "" @@ -863,8 +862,8 @@ msgstr "" #: ../../library/doctest.rst:854 msgid "" -"If *module_relative* is ``True`` (the default), then *filename* specifies an" -" OS-independent module-relative path. By default, this path is relative to " +"If *module_relative* is ``True`` (the default), then *filename* specifies an " +"OS-independent module-relative path. By default, this path is relative to " "the calling module's directory; but if the *package* argument is specified, " "then it is relative to that package. To ensure OS-independence, *filename* " "should use ``/`` characters to separate path segments, and may not be an " @@ -905,19 +904,20 @@ msgstr "" msgid "" "Optional argument *extraglobs* gives a dict merged into the globals used to " "execute examples. This works like :meth:`dict.update`: if *globs* and " -"*extraglobs* have a common key, the associated value in *extraglobs* appears" -" in the combined dict. By default, or if ``None``, no extra globals are " -"used. This is an advanced feature that allows parameterization of doctests." -" For example, a doctest can be written for a base class, using a generic " -"name for the class, then reused to test any number of subclasses by passing " -"an *extraglobs* dict mapping the generic name to the subclass to be tested." +"*extraglobs* have a common key, the associated value in *extraglobs* appears " +"in the combined dict. By default, or if ``None``, no extra globals are " +"used. This is an advanced feature that allows parameterization of " +"doctests. For example, a doctest can be written for a base class, using a " +"generic name for the class, then reused to test any number of subclasses by " +"passing an *extraglobs* dict mapping the generic name to the subclass to be " +"tested." msgstr "" #: ../../library/doctest.rst:888 msgid "" "Optional argument *verbose* prints lots of stuff if true, and prints only " -"failures if false; by default, or if ``None``, it's true if and only if " -"``'-v'`` is in ``sys.argv``." +"failures if false; by default, or if ``None``, it's true if and only if ``'-" +"v'`` is in ``sys.argv``." msgstr "" #: ../../library/doctest.rst:892 @@ -929,14 +929,14 @@ msgstr "" #: ../../library/doctest.rst:896 msgid "" -"Optional argument *optionflags* (default value 0) takes the :ref:`bitwise OR" -" ` of option flags. See section :ref:`doctest-options`." +"Optional argument *optionflags* (default value 0) takes the :ref:`bitwise OR " +"` of option flags. See section :ref:`doctest-options`." msgstr "" #: ../../library/doctest.rst:900 msgid "" -"Optional argument *raise_on_error* defaults to false. If true, an exception" -" is raised upon the first failure or unexpected exception in an example. " +"Optional argument *raise_on_error* defaults to false. If true, an exception " +"is raised upon the first failure or unexpected exception in an example. " "This allows failures to be post-mortem debugged. Default behavior is to " "continue running examples." msgstr "" @@ -970,8 +970,8 @@ msgstr "" #: ../../library/doctest.rst:922 msgid "" "Also test examples reachable from dict ``m.__test__``, if it exists and is " -"not ``None``. ``m.__test__`` maps names (strings) to functions, classes and" -" strings; function and class docstrings are searched for examples; strings " +"not ``None``. ``m.__test__`` maps names (strings) to functions, classes and " +"strings; function and class docstrings are searched for examples; strings " "are searched directly, as if they were docstrings." msgstr "" @@ -994,10 +994,10 @@ msgstr "" msgid "" "Optional argument *exclude_empty* defaults to false. If true, objects for " "which no doctests are found are excluded from consideration. The default is " -"a backward compatibility hack, so that code still using " -":meth:`doctest.master.summarize` in conjunction with :func:`testmod` " -"continues to get output for objects with no tests. The *exclude_empty* " -"argument to the newer :class:`DocTestFinder` constructor defaults to true." +"a backward compatibility hack, so that code still using :meth:`doctest." +"master.summarize` in conjunction with :func:`testmod` continues to get " +"output for objects with no tests. The *exclude_empty* argument to the newer :" +"class:`DocTestFinder` constructor defaults to true." msgstr "" #: ../../library/doctest.rst:941 @@ -1021,15 +1021,15 @@ msgstr "" #: ../../library/doctest.rst:953 msgid "" -"Optional argument *name* is used in failure messages, and defaults to " -"``\"NoName\"``." +"Optional argument *name* is used in failure messages, and defaults to ``" +"\"NoName\"``." msgstr "" #: ../../library/doctest.rst:956 msgid "" "If optional argument *verbose* is true, output is generated even if there " -"are no failures. By default, output is generated only in case of an example" -" failure." +"are no failures. By default, output is generated only in case of an example " +"failure." msgstr "" #: ../../library/doctest.rst:959 @@ -1042,8 +1042,7 @@ msgstr "" #: ../../library/doctest.rst:963 msgid "" -"Optional argument *optionflags* works as for function :func:`testfile` " -"above." +"Optional argument *optionflags* works as for function :func:`testfile` above." msgstr "" #: ../../library/doctest.rst:969 @@ -1052,8 +1051,8 @@ msgstr "" #: ../../library/doctest.rst:971 msgid "" -"As your collection of doctest'ed modules grows, you'll want a way to run all" -" their doctests systematically. :mod:`doctest` provides two functions that " +"As your collection of doctest'ed modules grows, you'll want a way to run all " +"their doctests systematically. :mod:`doctest` provides two functions that " "can be used to create :mod:`unittest` test suites from modules and text " "files containing doctests. To integrate with :mod:`unittest` test " "discovery, include a :func:`load_tests` function in your test module::" @@ -1067,16 +1066,16 @@ msgstr "" #: ../../library/doctest.rst:991 msgid "" -"Convert doctest tests from one or more text files to a " -":class:`unittest.TestSuite`." +"Convert doctest tests from one or more text files to a :class:`unittest." +"TestSuite`." msgstr "" #: ../../library/doctest.rst:994 msgid "" "The returned :class:`unittest.TestSuite` is to be run by the unittest " "framework and runs the interactive examples in each file. If an example in " -"any file fails, then the synthesized unit test fails, and a " -":exc:`failureException` exception is raised showing the name of the file " +"any file fails, then the synthesized unit test fails, and a :exc:" +"`failureException` exception is raised showing the name of the file " "containing the test and a (sometimes approximate) line number." msgstr "" @@ -1101,8 +1100,8 @@ msgid "" "path is relative to the calling module's directory; but if the *package* " "argument is specified, then it is relative to that package. To ensure OS-" "independence, each filename should use ``/`` characters to separate path " -"segments, and may not be an absolute path (i.e., it may not begin with " -"``/``)." +"segments, and may not be an absolute path (i.e., it may not begin with ``/" +"``)." msgstr "" #: ../../library/doctest.rst:1015 @@ -1116,8 +1115,8 @@ msgstr "" msgid "" "Optional argument *package* is a Python package or the name of a Python " "package whose directory should be used as the base directory for module-" -"relative filenames in *paths*. If no package is specified, then the calling" -" module's directory is used as the base directory for module-relative " +"relative filenames in *paths*. If no package is specified, then the calling " +"module's directory is used as the base directory for module-relative " "filenames. It is an error to specify *package* if *module_relative* is " "``False``." msgstr "" @@ -1126,15 +1125,15 @@ msgstr "" msgid "" "Optional argument *setUp* specifies a set-up function for the test suite. " "This is called before running the tests in each file. The *setUp* function " -"will be passed a :class:`DocTest` object. The setUp function can access the" -" test globals as the *globs* attribute of the test passed." +"will be passed a :class:`DocTest` object. The setUp function can access the " +"test globals as the *globs* attribute of the test passed." msgstr "" #: ../../library/doctest.rst:1031 msgid "" "Optional argument *tearDown* specifies a tear-down function for the test " -"suite. This is called after running the tests in each file. The *tearDown*" -" function will be passed a :class:`DocTest` object. The setUp function can " +"suite. This is called after running the tests in each file. The *tearDown* " +"function will be passed a :class:`DocTest` object. The setUp function can " "access the test globals as the *globs* attribute of the test passed." msgstr "" @@ -1148,8 +1147,8 @@ msgstr "" #: ../../library/doctest.rst:1040 msgid "" "Optional argument *optionflags* specifies the default doctest options for " -"the tests, created by or-ing together individual option flags. See section " -":ref:`doctest-options`. See function :func:`set_unittest_reportflags` below " +"the tests, created by or-ing together individual option flags. See section :" +"ref:`doctest-options`. See function :func:`set_unittest_reportflags` below " "for a better way to set reporting options." msgstr "" @@ -1166,8 +1165,8 @@ msgstr "" #: ../../library/doctest.rst:1060 msgid "" "The returned :class:`unittest.TestSuite` is to be run by the unittest " -"framework and runs each doctest in the module. If any of the doctests fail," -" then the synthesized unit test fails, and a :exc:`failureException` " +"framework and runs each doctest in the module. If any of the doctests fail, " +"then the synthesized unit test fails, and a :exc:`failureException` " "exception is raised showing the name of the file containing the test and a " "(sometimes approximate) line number." msgstr "" @@ -1209,31 +1208,31 @@ msgstr "" #: ../../library/doctest.rst:1090 msgid "" -"Under the covers, :func:`DocTestSuite` creates a :class:`unittest.TestSuite`" -" out of :class:`doctest.DocTestCase` instances, and :class:`DocTestCase` is " -"a subclass of :class:`unittest.TestCase`. :class:`DocTestCase` isn't " +"Under the covers, :func:`DocTestSuite` creates a :class:`unittest.TestSuite` " +"out of :class:`doctest.DocTestCase` instances, and :class:`DocTestCase` is a " +"subclass of :class:`unittest.TestCase`. :class:`DocTestCase` isn't " "documented here (it's an internal detail), but studying its code can answer " "questions about the exact details of :mod:`unittest` integration." msgstr "" #: ../../library/doctest.rst:1096 msgid "" -"Similarly, :func:`DocFileSuite` creates a :class:`unittest.TestSuite` out of" -" :class:`doctest.DocFileCase` instances, and :class:`DocFileCase` is a " +"Similarly, :func:`DocFileSuite` creates a :class:`unittest.TestSuite` out " +"of :class:`doctest.DocFileCase` instances, and :class:`DocFileCase` is a " "subclass of :class:`DocTestCase`." msgstr "" #: ../../library/doctest.rst:1100 msgid "" -"So both ways of creating a :class:`unittest.TestSuite` run instances of " -":class:`DocTestCase`. This is important for a subtle reason: when you run " -":mod:`doctest` functions yourself, you can control the :mod:`doctest` " -"options in use directly, by passing option flags to :mod:`doctest` " -"functions. However, if you're writing a :mod:`unittest` framework, " -":mod:`unittest` ultimately controls when and how tests get run. The " -"framework author typically wants to control :mod:`doctest` reporting options" -" (perhaps, e.g., specified by command line options), but there's no way to " -"pass options through :mod:`unittest` to :mod:`doctest` test runners." +"So both ways of creating a :class:`unittest.TestSuite` run instances of :" +"class:`DocTestCase`. This is important for a subtle reason: when you run :" +"mod:`doctest` functions yourself, you can control the :mod:`doctest` options " +"in use directly, by passing option flags to :mod:`doctest` functions. " +"However, if you're writing a :mod:`unittest` framework, :mod:`unittest` " +"ultimately controls when and how tests get run. The framework author " +"typically wants to control :mod:`doctest` reporting options (perhaps, e.g., " +"specified by command line options), but there's no way to pass options " +"through :mod:`unittest` to :mod:`doctest` test runners." msgstr "" #: ../../library/doctest.rst:1110 @@ -1248,22 +1247,22 @@ msgstr "" #: ../../library/doctest.rst:1118 msgid "" -"Argument *flags* takes the :ref:`bitwise OR ` of option flags. See" -" section :ref:`doctest-options`. Only \"reporting flags\" can be used." +"Argument *flags* takes the :ref:`bitwise OR ` of option flags. See " +"section :ref:`doctest-options`. Only \"reporting flags\" can be used." msgstr "" #: ../../library/doctest.rst:1121 msgid "" "This is a module-global setting, and affects all future doctests run by " "module :mod:`unittest`: the :meth:`runTest` method of :class:`DocTestCase` " -"looks at the option flags specified for the test case when the " -":class:`DocTestCase` instance was constructed. If no reporting flags were " -"specified (which is the typical and expected case), :mod:`doctest`'s " -":mod:`unittest` reporting flags are :ref:`bitwise ORed ` into the " -"option flags, and the option flags so augmented are passed to the " -":class:`DocTestRunner` instance created to run the doctest. If any " -"reporting flags were specified when the :class:`DocTestCase` instance was " -"constructed, :mod:`doctest`'s :mod:`unittest` reporting flags are ignored." +"looks at the option flags specified for the test case when the :class:" +"`DocTestCase` instance was constructed. If no reporting flags were " +"specified (which is the typical and expected case), :mod:`doctest`'s :mod:" +"`unittest` reporting flags are :ref:`bitwise ORed ` into the option " +"flags, and the option flags so augmented are passed to the :class:" +"`DocTestRunner` instance created to run the doctest. If any reporting flags " +"were specified when the :class:`DocTestCase` instance was constructed, :mod:" +"`doctest`'s :mod:`unittest` reporting flags are ignored." msgstr "" #: ../../library/doctest.rst:1132 @@ -1304,15 +1303,15 @@ msgstr "" #: ../../library/doctest.rst:1155 msgid "" -"Additional processing classes are defined to find, parse, and run, and check" -" doctest examples:" +"Additional processing classes are defined to find, parse, and run, and check " +"doctest examples:" msgstr "" #: ../../library/doctest.rst:1158 msgid "" -":class:`DocTestFinder`: Finds all docstrings in a given module, and uses a " -":class:`DocTestParser` to create a :class:`DocTest` from every docstring " -"that contains interactive examples." +":class:`DocTestFinder`: Finds all docstrings in a given module, and uses a :" +"class:`DocTestParser` to create a :class:`DocTest` from every docstring that " +"contains interactive examples." msgstr "" #: ../../library/doctest.rst:1162 @@ -1366,14 +1365,14 @@ msgstr "" msgid "" "The namespace (aka globals) that the examples should be run in. This is a " "dictionary mapping names to values. Any changes to the namespace made by " -"the examples (such as binding new variables) will be reflected in " -":attr:`globs` after the test is run." +"the examples (such as binding new variables) will be reflected in :attr:" +"`globs` after the test is run." msgstr "" #: ../../library/doctest.rst:1216 msgid "" -"A string name identifying the :class:`DocTest`. Typically, this is the name" -" of the object or file that the test was extracted from." +"A string name identifying the :class:`DocTest`. Typically, this is the name " +"of the object or file that the test was extracted from." msgstr "" #: ../../library/doctest.rst:1222 @@ -1415,8 +1414,8 @@ msgstr "" #: ../../library/doctest.rst:1259 msgid "" -"A string containing the example's source code. This source code consists of" -" a single Python statement, and always ends with a newline; the constructor " +"A string containing the example's source code. This source code consists of " +"a single Python statement, and always ends with a newline; the constructor " "adds a newline when necessary." msgstr "" @@ -1432,16 +1431,16 @@ msgstr "" msgid "" "The exception message generated by the example, if the example is expected " "to generate an exception; or ``None`` if it is not expected to generate an " -"exception. This exception message is compared against the return value of " -":func:`traceback.format_exception_only`. :attr:`exc_msg` ends with a " -"newline unless it's ``None``. The constructor adds a newline if needed." +"exception. This exception message is compared against the return value of :" +"func:`traceback.format_exception_only`. :attr:`exc_msg` ends with a newline " +"unless it's ``None``. The constructor adds a newline if needed." msgstr "" #: ../../library/doctest.rst:1283 msgid "" "The line number within the string containing this example where the example " -"begins. This line number is zero-based with respect to the beginning of the" -" containing string." +"begins. This line number is zero-based with respect to the beginning of the " +"containing string." msgstr "" #: ../../library/doctest.rst:1290 @@ -1455,8 +1454,8 @@ msgid "" "A dictionary mapping from option flags to ``True`` or ``False``, which is " "used to override default options for this example. Any option flags not " "contained in this dictionary are left at their default value (as specified " -"by the :class:`DocTestRunner`'s :attr:`optionflags`). By default, no options" -" are set." +"by the :class:`DocTestRunner`'s :attr:`optionflags`). By default, no options " +"are set." msgstr "" #: ../../library/doctest.rst:1305 @@ -1485,15 +1484,14 @@ msgstr "" #: ../../library/doctest.rst:1321 msgid "" -"If the optional argument *recurse* is false, then :meth:`DocTestFinder.find`" -" will only examine the given object, and not any contained objects." +"If the optional argument *recurse* is false, then :meth:`DocTestFinder.find` " +"will only examine the given object, and not any contained objects." msgstr "" #: ../../library/doctest.rst:1324 msgid "" -"If the optional argument *exclude_empty* is false, then " -":meth:`DocTestFinder.find` will include tests for objects with empty " -"docstrings." +"If the optional argument *exclude_empty* is false, then :meth:`DocTestFinder." +"find` will include tests for objects with empty docstrings." msgstr "" #: ../../library/doctest.rst:1328 @@ -1509,8 +1507,8 @@ msgstr "" #: ../../library/doctest.rst:1336 msgid "" "The optional argument *name* specifies the object's name; this name will be " -"used to construct names for the returned :class:`DocTest`\\ s. If *name* is" -" not specified, then ``obj.__name__`` is used." +"used to construct names for the returned :class:`DocTest`\\ s. If *name* is " +"not specified, then ``obj.__name__`` is used." msgstr "" #: ../../library/doctest.rst:1340 @@ -1552,11 +1550,11 @@ msgstr "" #: ../../library/doctest.rst:1360 msgid "" "The globals for each :class:`DocTest` is formed by combining *globs* and " -"*extraglobs* (bindings in *extraglobs* override bindings in *globs*). A new" -" shallow copy of the globals dictionary is created for each " -":class:`DocTest`. If *globs* is not specified, then it defaults to the " -"module's *__dict__*, if specified, or ``{}`` otherwise. If *extraglobs* is " -"not specified, then it defaults to ``{}``." +"*extraglobs* (bindings in *extraglobs* override bindings in *globs*). A new " +"shallow copy of the globals dictionary is created for each :class:`DocTest`. " +"If *globs* is not specified, then it defaults to the module's *__dict__*, if " +"specified, or ``{}`` otherwise. If *extraglobs* is not specified, then it " +"defaults to ``{}``." msgstr "" #: ../../library/doctest.rst:1371 @@ -1575,15 +1573,15 @@ msgstr "" #: ../../library/doctest.rst:1385 msgid "" -"Extract all doctest examples from the given string, and collect them into a " -":class:`DocTest` object." +"Extract all doctest examples from the given string, and collect them into a :" +"class:`DocTest` object." msgstr "" #: ../../library/doctest.rst:1388 msgid "" -"*globs*, *name*, *filename*, and *lineno* are attributes for the new " -":class:`DocTest` object. See the documentation for :class:`DocTest` for " -"more information." +"*globs*, *name*, *filename*, and *lineno* are attributes for the new :class:" +"`DocTest` object. See the documentation for :class:`DocTest` for more " +"information." msgstr "" #: ../../library/doctest.rst:1395 @@ -1608,14 +1606,14 @@ msgstr "" #: ../../library/doctest.rst:1416 msgid "" -"A processing class used to execute and verify the interactive examples in a " -":class:`DocTest`." +"A processing class used to execute and verify the interactive examples in a :" +"class:`DocTest`." msgstr "" #: ../../library/doctest.rst:1419 msgid "" -"The comparison between expected outputs and actual outputs is done by an " -":class:`OutputChecker`. This comparison may be customized with a number of " +"The comparison between expected outputs and actual outputs is done by an :" +"class:`OutputChecker`. This comparison may be customized with a number of " "option flags; see section :ref:`doctest-options` for more information. If " "the option flags are insufficient, then the comparison may also be " "customized by passing a subclass of :class:`OutputChecker` to the " @@ -1626,28 +1624,27 @@ msgstr "" msgid "" "The test runner's display output can be controlled in two ways. First, an " "output function can be passed to :meth:`TestRunner.run`; this function will " -"be called with strings that should be displayed. It defaults to " -"``sys.stdout.write``. If capturing the output is not sufficient, then the " -"display output can be also customized by subclassing DocTestRunner, and " -"overriding the methods :meth:`report_start`, :meth:`report_success`, " -":meth:`report_unexpected_exception`, and :meth:`report_failure`." +"be called with strings that should be displayed. It defaults to ``sys." +"stdout.write``. If capturing the output is not sufficient, then the display " +"output can be also customized by subclassing DocTestRunner, and overriding " +"the methods :meth:`report_start`, :meth:`report_success`, :meth:" +"`report_unexpected_exception`, and :meth:`report_failure`." msgstr "" #: ../../library/doctest.rst:1433 msgid "" -"The optional keyword argument *checker* specifies the :class:`OutputChecker`" -" object (or drop-in replacement) that should be used to compare the expected" -" outputs to the actual outputs of doctest examples." +"The optional keyword argument *checker* specifies the :class:`OutputChecker` " +"object (or drop-in replacement) that should be used to compare the expected " +"outputs to the actual outputs of doctest examples." msgstr "" #: ../../library/doctest.rst:1437 msgid "" -"The optional keyword argument *verbose* controls the " -":class:`DocTestRunner`'s verbosity. If *verbose* is ``True``, then " -"information is printed about each example, as it is run. If *verbose* is " -"``False``, then only failures are printed. If *verbose* is unspecified, or " -"``None``, then verbose output is used iff the command-line switch ``-v`` is " -"used." +"The optional keyword argument *verbose* controls the :class:" +"`DocTestRunner`'s verbosity. If *verbose* is ``True``, then information is " +"printed about each example, as it is run. If *verbose* is ``False``, then " +"only failures are printed. If *verbose* is unspecified, or ``None``, then " +"verbose output is used iff the command-line switch ``-v`` is used." msgstr "" #: ../../library/doctest.rst:1443 @@ -1667,8 +1664,8 @@ msgstr "" #: ../../library/doctest.rst:1457 msgid "" "*example* is the example about to be processed. *test* is the test " -"*containing example*. *out* is the output function that was passed to " -":meth:`DocTestRunner.run`." +"*containing example*. *out* is the output function that was passed to :meth:" +"`DocTestRunner.run`." msgstr "" #: ../../library/doctest.rst:1464 @@ -1694,17 +1691,17 @@ msgstr "" #: ../../library/doctest.rst:1486 msgid "" -"Report that the given example raised an unexpected exception. This method is" -" provided to allow subclasses of :class:`DocTestRunner` to customize their " +"Report that the given example raised an unexpected exception. This method is " +"provided to allow subclasses of :class:`DocTestRunner` to customize their " "output; it should not be called directly." msgstr "" #: ../../library/doctest.rst:1490 msgid "" "*example* is the example about to be processed. *exc_info* is a tuple " -"containing information about the unexpected exception (as returned by " -":func:`sys.exc_info`). *test* is the test containing *example*. *out* is " -"the output function that was passed to :meth:`DocTestRunner.run`." +"containing information about the unexpected exception (as returned by :func:" +"`sys.exc_info`). *test* is the test containing *example*. *out* is the " +"output function that was passed to :meth:`DocTestRunner.run`." msgstr "" #: ../../library/doctest.rst:1498 @@ -1716,9 +1713,9 @@ msgstr "" #: ../../library/doctest.rst:1501 msgid "" "The examples are run in the namespace ``test.globs``. If *clear_globs* is " -"true (the default), then this namespace will be cleared after the test runs," -" to help with garbage collection. If you would like to examine the namespace" -" after the test completes, then use *clear_globs=False*." +"true (the default), then this namespace will be cleared after the test runs, " +"to help with garbage collection. If you would like to examine the namespace " +"after the test completes, then use *clear_globs=False*." msgstr "" #: ../../library/doctest.rst:1506 @@ -1731,8 +1728,8 @@ msgstr "" #: ../../library/doctest.rst:1510 msgid "" "The output of each example is checked using the :class:`DocTestRunner`'s " -"output checker, and the results are formatted by the " -":meth:`DocTestRunner.report_\\*` methods." +"output checker, and the results are formatted by the :meth:`DocTestRunner." +"report_\\*` methods." msgstr "" #: ../../library/doctest.rst:1517 @@ -1756,10 +1753,10 @@ msgstr "" #: ../../library/doctest.rst:1532 msgid "" "A class used to check the whether the actual output from a doctest example " -"matches the expected output. :class:`OutputChecker` defines two methods: " -":meth:`check_output`, which compares a given pair of outputs, and returns " -"true if they match; and :meth:`output_difference`, which returns a string " -"describing the differences between two outputs." +"matches the expected output. :class:`OutputChecker` defines two methods: :" +"meth:`check_output`, which compares a given pair of outputs, and returns " +"``True`` if they match; and :meth:`output_difference`, which returns a " +"string describing the differences between two outputs." msgstr "" #: ../../library/doctest.rst:1539 @@ -1771,14 +1768,14 @@ msgid "" "Return ``True`` iff the actual output from an example (*got*) matches the " "expected output (*want*). These strings are always considered to match if " "they are identical; but depending on what option flags the test runner is " -"using, several non-exact match types are also possible. See section :ref" -":`doctest-options` for more information about option flags." +"using, several non-exact match types are also possible. See section :ref:" +"`doctest-options` for more information about option flags." msgstr "" #: ../../library/doctest.rst:1552 msgid "" -"Return a string describing the differences between the expected output for a" -" given example (*example*) and the actual output (*got*). *optionflags* is " +"Return a string describing the differences between the expected output for a " +"given example (*example*) and the actual output (*got*). *optionflags* is " "the set of option flags used to compare *want* and *got*." msgstr "" @@ -1806,16 +1803,16 @@ msgstr "" #: ../../library/doctest.rst:1572 msgid "" -"The :mod:`unittest` cases generated by :func:`DocTestSuite` support the " -":meth:`debug` method defined by :class:`unittest.TestCase`." +"The :mod:`unittest` cases generated by :func:`DocTestSuite` support the :" +"meth:`debug` method defined by :class:`unittest.TestCase`." msgstr "" #: ../../library/doctest.rst:1575 msgid "" -"You can add a call to :func:`pdb.set_trace` in a doctest example, and you'll" -" drop into the Python debugger when that line is executed. Then you can " -"inspect current values of variables, and so on. For example, suppose " -":file:`a.py` contains just this module docstring::" +"You can add a call to :func:`pdb.set_trace` in a doctest example, and you'll " +"drop into the Python debugger when that line is executed. Then you can " +"inspect current values of variables, and so on. For example, suppose :file:" +"`a.py` contains just this module docstring::" msgstr "" #: ../../library/doctest.rst:1590 @@ -1835,8 +1832,8 @@ msgstr "" #: ../../library/doctest.rst:1631 msgid "" "Argument *s* is a string containing doctest examples. The string is " -"converted to a Python script, where doctest examples in *s* are converted to" -" regular code, and everything else is converted to Python comments. The " +"converted to a Python script, where doctest examples in *s* are converted to " +"regular code, and everything else is converted to Python comments. The " "generated script is returned as a string. For example, ::" msgstr "" @@ -1847,8 +1844,8 @@ msgstr "" #: ../../library/doctest.rst:1656 msgid "" "This function is used internally by other functions (see below), but can " -"also be useful when you want to transform an interactive Python session into" -" a Python script." +"also be useful when you want to transform an interactive Python session into " +"a Python script." msgstr "" #: ../../library/doctest.rst:1663 @@ -1857,12 +1854,12 @@ msgstr "" #: ../../library/doctest.rst:1665 msgid "" -"Argument *module* is a module object, or dotted name of a module, containing" -" the object whose doctests are of interest. Argument *name* is the name " -"(within the module) of the object with the doctests of interest. The result" -" is a string, containing the object's docstring converted to a Python " -"script, as described for :func:`script_from_examples` above. For example, " -"if module :file:`a.py` contains a top-level function :func:`f`, then ::" +"Argument *module* is a module object, or dotted name of a module, containing " +"the object whose doctests are of interest. Argument *name* is the name " +"(within the module) of the object with the doctests of interest. The result " +"is a string, containing the object's docstring converted to a Python script, " +"as described for :func:`script_from_examples` above. For example, if " +"module :file:`a.py` contains a top-level function :func:`f`, then ::" msgstr "" #: ../../library/doctest.rst:1675 @@ -1877,10 +1874,10 @@ msgstr "" #: ../../library/doctest.rst:1683 msgid "" -"The *module* and *name* arguments are the same as for function " -":func:`testsource` above. The synthesized Python script for the named " -"object's docstring is written to a temporary file, and then that file is run" -" under the control of the Python debugger, :mod:`pdb`." +"The *module* and *name* arguments are the same as for function :func:" +"`testsource` above. The synthesized Python script for the named object's " +"docstring is written to a temporary file, and then that file is run under " +"the control of the Python debugger, :mod:`pdb`." msgstr "" #: ../../library/doctest.rst:1688 @@ -1894,11 +1891,11 @@ msgid "" "Optional argument *pm* controls whether post-mortem debugging is used. If " "*pm* has a true value, the script file is run directly, and the debugger " "gets involved only if the script terminates via raising an unhandled " -"exception. If it does, then post-mortem debugging is invoked, via " -":func:`pdb.post_mortem`, passing the traceback object from the unhandled " +"exception. If it does, then post-mortem debugging is invoked, via :func:" +"`pdb.post_mortem`, passing the traceback object from the unhandled " "exception. If *pm* is not specified, or is false, the script is run under " -"the debugger from the start, via passing an appropriate :func:`exec` call to" -" :func:`pdb.run`." +"the debugger from the start, via passing an appropriate :func:`exec` call " +"to :func:`pdb.run`." msgstr "" #: ../../library/doctest.rst:1702 @@ -1919,15 +1916,15 @@ msgstr "" #: ../../library/doctest.rst:1709 msgid "" -"Optional argument *globs* gives a dictionary to use as both local and global" -" execution context. If not specified, or ``None``, an empty dictionary is " +"Optional argument *globs* gives a dictionary to use as both local and global " +"execution context. If not specified, or ``None``, an empty dictionary is " "used. If specified, a shallow copy of the dictionary is used." msgstr "" #: ../../library/doctest.rst:1714 msgid "" -"The :class:`DebugRunner` class, and the special exceptions it may raise, are" -" of most interest to testing framework authors, and will only be sketched " +"The :class:`DebugRunner` class, and the special exceptions it may raise, are " +"of most interest to testing framework authors, and will only be sketched " "here. See the source code, and especially :class:`DebugRunner`'s docstring " "(which is a doctest!) for more details:" msgstr "" @@ -1935,11 +1932,11 @@ msgstr "" #: ../../library/doctest.rst:1722 msgid "" "A subclass of :class:`DocTestRunner` that raises an exception as soon as a " -"failure is encountered. If an unexpected exception occurs, an " -":exc:`UnexpectedException` exception is raised, containing the test, the " -"example, and the original exception. If the output doesn't match, then a " -":exc:`DocTestFailure` exception is raised, containing the test, the example," -" and the actual output." +"failure is encountered. If an unexpected exception occurs, an :exc:" +"`UnexpectedException` exception is raised, containing the test, the example, " +"and the original exception. If the output doesn't match, then a :exc:" +"`DocTestFailure` exception is raised, containing the test, the example, and " +"the actual output." msgstr "" #: ../../library/doctest.rst:1729 @@ -1967,8 +1964,7 @@ msgid ":exc:`DocTestFailure` defines the following attributes:" msgstr "" #: ../../library/doctest.rst:1746 ../../library/doctest.rst:1770 -msgid "" -"The :class:`DocTest` object that was being run when the example failed." +msgid "The :class:`DocTest` object that was being run when the example failed." msgstr "" #: ../../library/doctest.rst:1751 ../../library/doctest.rst:1775 @@ -2032,27 +2028,27 @@ msgid "" "Examples should add genuine value to the documentation. A good example can " "often be worth many words. If done with care, the examples will be " "invaluable for your users, and will pay back the time it takes to collect " -"them many times over as the years go by and things change. I'm still amazed" -" at how often one of my :mod:`doctest` examples stops working after a " +"them many times over as the years go by and things change. I'm still amazed " +"at how often one of my :mod:`doctest` examples stops working after a " "\"harmless\" change." msgstr "" #: ../../library/doctest.rst:1810 msgid "" "Doctest also makes an excellent tool for regression testing, especially if " -"you don't skimp on explanatory text. By interleaving prose and examples, it" -" becomes much easier to keep track of what's actually being tested, and why." -" When a test fails, good prose can make it much easier to figure out what " -"the problem is, and how it should be fixed. It's true that you could write " +"you don't skimp on explanatory text. By interleaving prose and examples, it " +"becomes much easier to keep track of what's actually being tested, and why. " +"When a test fails, good prose can make it much easier to figure out what the " +"problem is, and how it should be fixed. It's true that you could write " "extensive comments in code-based testing, but few programmers do. Many have " "found that using doctest approaches instead leads to much clearer tests. " "Perhaps this is simply because doctest makes writing prose a little easier " "than writing code, while writing comments in code is a little harder. I " "think it goes deeper than just that: the natural attitude when writing a " "doctest-based test is that you want to explain the fine points of your " -"software, and illustrate them with examples. This in turn naturally leads to" -" test files that start with the simplest features, and logically progress to" -" complications and edge cases. A coherent narrative is the result, instead " +"software, and illustrate them with examples. This in turn naturally leads to " +"test files that start with the simplest features, and logically progress to " +"complications and edge cases. A coherent narrative is the result, instead " "of a collection of isolated functions that test isolated bits of " "functionality seemingly at random. It's a different attitude, and produces " "different results, blurring the distinction between testing and explaining." @@ -2066,18 +2062,18 @@ msgstr "" #: ../../library/doctest.rst:1831 msgid "" -"Write text files containing test cases as interactive examples, and test the" -" files using :func:`testfile` or :func:`DocFileSuite`. This is recommended," -" although is easiest to do for new projects, designed from the start to use " +"Write text files containing test cases as interactive examples, and test the " +"files using :func:`testfile` or :func:`DocFileSuite`. This is recommended, " +"although is easiest to do for new projects, designed from the start to use " "doctest." msgstr "" #: ../../library/doctest.rst:1836 msgid "" "Define functions named ``_regrtest_topic`` that consist of single " -"docstrings, containing test cases for the named topics. These functions can" -" be included in the same file as the module, or separated out into a " -"separate test file." +"docstrings, containing test cases for the named topics. These functions can " +"be included in the same file as the module, or separated out into a separate " +"test file." msgstr "" #: ../../library/doctest.rst:1840 @@ -2090,8 +2086,8 @@ msgstr "" msgid "" "When you have placed your tests in a module, the module can itself be the " "test runner. When a test fails, you can arrange for your test runner to re-" -"run only the failing doctest while you debug the problem. Here is a minimal" -" example of such a test runner::" +"run only the failing doctest while you debug the problem. Here is a minimal " +"example of such a test runner::" msgstr "" #: ../../library/doctest.rst:1865 @@ -2100,7 +2096,7 @@ msgstr "Notas de rodapé" #: ../../library/doctest.rst:1866 msgid "" -"Examples containing both expected output and an exception are not supported." -" Trying to guess where one ends and the other begins is too error-prone, and" -" that also makes for a confusing test." +"Examples containing both expected output and an exception are not supported. " +"Trying to guess where one ends and the other begins is too error-prone, and " +"that also makes for a confusing test." msgstr "" diff --git a/library/dummy_threading.po b/library/dummy_threading.po index f14945bac..084900fda 100644 --- a/library/dummy_threading.po +++ b/library/dummy_threading.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -26,8 +27,8 @@ msgid "" ":mod:`dummy_threading` --- Drop-in replacement for the :mod:`threading` " "module" msgstr "" -":mod:`dummy_threading` --- Substituição drop-in para o módulo " -":mod:`threading`" +":mod:`dummy_threading` --- Substituição drop-in para o módulo :mod:" +"`threading`" #: ../../library/dummy_threading.rst:7 msgid "**Source code:** :source:`Lib/dummy_threading.py`" @@ -38,8 +39,8 @@ msgid "" "Python now always has threading enabled. Please use :mod:`threading` " "instead." msgstr "" -"O Python agora sempre tem a segmentação ativada. Por favor use " -":mod:`threading`." +"O Python agora sempre tem a segmentação ativada. Por favor use :mod:" +"`threading`." #: ../../library/dummy_threading.rst:14 msgid "" diff --git a/library/email.charset.po b/library/email.charset.po index c94795c03..c5c2bf55c 100644 --- a/library/email.charset.po +++ b/library/email.charset.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,10 +46,10 @@ msgstr "" #: ../../library/email.charset.rst:16 msgid "" "This module provides a class :class:`Charset` for representing character " -"sets and character set conversions in email messages, as well as a character" -" set registry and several convenience methods for manipulating this " -"registry. Instances of :class:`Charset` are used in several other modules " -"within the :mod:`email` package." +"sets and character set conversions in email messages, as well as a character " +"set registry and several convenience methods for manipulating this registry. " +"Instances of :class:`Charset` are used in several other modules within the :" +"mod:`email` package." msgstr "" #: ../../library/email.charset.rst:22 @@ -64,8 +66,7 @@ msgid "" "a specific character set. It also provides convenience routines for " "converting between character sets, given the availability of the applicable " "codecs. Given a character set, it will do its best to provide information " -"on how to use that character set in an email message in an RFC-compliant " -"way." +"on how to use that character set in an email message in an RFC-compliant way." msgstr "" #: ../../library/email.charset.rst:35 @@ -80,9 +81,9 @@ msgid "" "Optional *input_charset* is as described below; it is always coerced to " "lower case. After being alias normalized it is also used as a lookup into " "the registry of character sets to find out the header encoding, body " -"encoding, and output conversion codec to be used for the character set. For" -" example, if *input_charset* is ``iso-8859-1``, then headers and bodies will" -" be encoded using quoted-printable and no output conversion codec is " +"encoding, and output conversion codec to be used for the character set. For " +"example, if *input_charset* is ``iso-8859-1``, then headers and bodies will " +"be encoded using quoted-printable and no output conversion codec is " "necessary. If *input_charset* is ``euc-jp``, then headers will be encoded " "with base64, bodies will not be encoded, but output text will be converted " "from the ``euc-jp`` character set to the ``iso-2022-jp`` character set." @@ -102,16 +103,16 @@ msgstr "" #: ../../library/email.charset.rst:60 msgid "" "If the character set must be encoded before it can be used in an email " -"header, this attribute will be set to ``Charset.QP`` (for quoted-printable)," -" ``Charset.BASE64`` (for base64 encoding), or ``Charset.SHORTEST`` for the " +"header, this attribute will be set to ``Charset.QP`` (for quoted-printable), " +"``Charset.BASE64`` (for base64 encoding), or ``Charset.SHORTEST`` for the " "shortest of QP or BASE64 encoding. Otherwise, it will be ``None``." msgstr "" #: ../../library/email.charset.rst:69 msgid "" -"Same as *header_encoding*, but describes the encoding for the mail message's" -" body, which indeed may be different than the header encoding. " -"``Charset.SHORTEST`` is not allowed for *body_encoding*." +"Same as *header_encoding*, but describes the encoding for the mail message's " +"body, which indeed may be different than the header encoding. ``Charset." +"SHORTEST`` is not allowed for *body_encoding*." msgstr "" #: ../../library/email.charset.rst:76 @@ -124,8 +125,9 @@ msgstr "" #: ../../library/email.charset.rst:84 msgid "" -"The name of the Python codec used to convert the *input_charset* to Unicode." -" If no conversion codec is necessary, this attribute will be ``None``." +"The name of the Python codec used to convert the *input_charset* to " +"Unicode. If no conversion codec is necessary, this attribute will be " +"``None``." msgstr "" #: ../../library/email.charset.rst:91 @@ -165,8 +167,8 @@ msgstr "" #: ../../library/email.charset.rst:150 msgid "" -"This is the *output_charset* attribute if that is not ``None``, otherwise it" -" is *input_charset*." +"This is the *output_charset* attribute if that is not ``None``, otherwise it " +"is *input_charset*." msgstr "" #: ../../library/email.charset.rst:156 @@ -186,8 +188,8 @@ msgstr "" #: ../../library/email.charset.rst:166 msgid "" "This is similar to :meth:`header_encode` except that the string is fit into " -"maximum line lengths as given by the argument *maxlengths*, which must be an" -" iterator: each element returned from this iterator will provide the next " +"maximum line lengths as given by the argument *maxlengths*, which must be an " +"iterator: each element returned from this iterator will provide the next " "maximum line length." msgstr "" @@ -252,16 +254,16 @@ msgstr "" #: ../../library/email.charset.rst:217 msgid "" -"Optional *output_charset* is the character set that the output should be in." -" Conversions will proceed from input charset, to Unicode, to the output " +"Optional *output_charset* is the character set that the output should be in. " +"Conversions will proceed from input charset, to Unicode, to the output " "charset when the method :meth:`Charset.convert` is called. The default is " "to output in the same character set as the input." msgstr "" #: ../../library/email.charset.rst:222 msgid "" -"Both *input_charset* and *output_charset* must have Unicode codec entries in" -" the module's character set-to-codec mapping; use :func:`add_codec` to add " +"Both *input_charset* and *output_charset* must have Unicode codec entries in " +"the module's character set-to-codec mapping; use :func:`add_codec` to add " "codecs the module does not know about. See the :mod:`codecs` module's " "documentation for more information." msgstr "" @@ -293,6 +295,6 @@ msgstr "" #: ../../library/email.charset.rst:244 msgid "" "*charset* is the canonical name of a character set. *codecname* is the name " -"of a Python codec, as appropriate for the second argument to the " -":class:`str`'s :meth:`~str.encode` method." +"of a Python codec, as appropriate for the second argument to the :class:" +"`str`'s :meth:`~str.encode` method." msgstr "" diff --git a/library/email.compat32-message.po b/library/email.compat32-message.po index 4fe42677c..ae2f77b9f 100644 --- a/library/email.compat32-message.po +++ b/library/email.compat32-message.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-04 11:35+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,18 +25,18 @@ msgstr "" #: ../../library/email.compat32-message.rst:4 msgid "" -":mod:`email.message.Message`: Representing an email message using the " -":data:`~email.policy.compat32` API" +":mod:`email.message.Message`: Representing an email message using the :data:" +"`~email.policy.compat32` API" msgstr "" #: ../../library/email.compat32-message.rst:12 msgid "" -"The :class:`Message` class is very similar to the " -":class:`~email.message.EmailMessage` class, without the methods added by " -"that class, and with the default behavior of certain other methods being " -"slightly different. We also document here some methods that, while " -"supported by the :class:`~email.message.EmailMessage` class, are not " -"recommended unless you are dealing with legacy code." +"The :class:`Message` class is very similar to the :class:`~email.message." +"EmailMessage` class, without the methods added by that class, and with the " +"default behavior of certain other methods being slightly different. We also " +"document here some methods that, while supported by the :class:`~email." +"message.EmailMessage` class, are not recommended unless you are dealing with " +"legacy code." msgstr "" #: ../../library/email.compat32-message.rst:19 @@ -43,22 +45,22 @@ msgstr "" #: ../../library/email.compat32-message.rst:21 msgid "" -"This document describes the behavior under the default (for " -":class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going " -"to use another policy, you should be using the " -":class:`~email.message.EmailMessage` class instead." +"This document describes the behavior under the default (for :class:" +"`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use " +"another policy, you should be using the :class:`~email.message.EmailMessage` " +"class instead." msgstr "" #: ../../library/email.compat32-message.rst:25 msgid "" -"An email message consists of *headers* and a *payload*. Headers must be " -":rfc:`5233` style names and values, where the field name and value are " -"separated by a colon. The colon is not part of either the field name or the" -" field value. The payload may be a simple text message, or a binary object," -" or a structured sequence of sub-messages each with their own set of headers" -" and their own payload. The latter type of payload is indicated by the " -"message having a MIME type such as :mimetype:`multipart/\\*` or " -":mimetype:`message/rfc822`." +"An email message consists of *headers* and a *payload*. Headers must be :" +"rfc:`5233` style names and values, where the field name and value are " +"separated by a colon. The colon is not part of either the field name or the " +"field value. The payload may be a simple text message, or a binary object, " +"or a structured sequence of sub-messages each with their own set of headers " +"and their own payload. The latter type of payload is indicated by the " +"message having a MIME type such as :mimetype:`multipart/\\*` or :mimetype:" +"`message/rfc822`." msgstr "" #: ../../library/email.compat32-message.rst:34 @@ -67,22 +69,22 @@ msgid "" "ordered dictionary of headers with additional methods for accessing both " "specialized information from the headers, for accessing the payload, for " "generating a serialized version of the message, and for recursively walking " -"over the object tree. Note that duplicate headers are supported but special" -" methods must be used to access them." +"over the object tree. Note that duplicate headers are supported but special " +"methods must be used to access them." msgstr "" #: ../../library/email.compat32-message.rst:41 msgid "" -"The :class:`Message` pseudo-dictionary is indexed by the header names, which" -" must be ASCII values. The values of the dictionary are strings that are " +"The :class:`Message` pseudo-dictionary is indexed by the header names, which " +"must be ASCII values. The values of the dictionary are strings that are " "supposed to contain only ASCII characters; there is some special handling " "for non-ASCII input, but it doesn't always produce the correct results. " -"Headers are stored and returned in case-preserving form, but field names are" -" matched case-insensitively. There may also be a single envelope header, " -"also known as the *Unix-From* header or the ``From_`` header. The *payload*" -" is either a string or bytes, in the case of simple message objects, or a " -"list of :class:`Message` objects, for MIME container documents (e.g. " -":mimetype:`multipart/\\*` and :mimetype:`message/rfc822`)." +"Headers are stored and returned in case-preserving form, but field names are " +"matched case-insensitively. There may also be a single envelope header, " +"also known as the *Unix-From* header or the ``From_`` header. The *payload* " +"is either a string or bytes, in the case of simple message objects, or a " +"list of :class:`Message` objects, for MIME container documents (e.g. :" +"mimetype:`multipart/\\*` and :mimetype:`message/rfc822`)." msgstr "" #: ../../library/email.compat32-message.rst:52 @@ -92,11 +94,11 @@ msgstr "" #: ../../library/email.compat32-message.rst:57 msgid "" "If *policy* is specified (it must be an instance of a :mod:`~email.policy` " -"class) use the rules it specifies to update and serialize the representation" -" of the message. If *policy* is not set, use the :class:`compat32 " -"` policy, which maintains backward compatibility with" -" the Python 3.2 version of the email package. For more information see the " -":mod:`~email.policy` documentation." +"class) use the rules it specifies to update and serialize the representation " +"of the message. If *policy* is not set, use the :class:`compat32 ` policy, which maintains backward compatibility with the " +"Python 3.2 version of the email package. For more information see the :mod:" +"`~email.policy` documentation." msgstr "" #: ../../library/email.compat32-message.rst:64 @@ -126,20 +128,20 @@ msgstr "" #: ../../library/email.compat32-message.rst:83 msgid "" -"Note that this method is provided as a convenience and may not always format" -" the message the way you want. For example, by default it does not do the " -"mangling of lines that begin with ``From`` that is required by the unix mbox" -" format. For more flexibility, instantiate a " -":class:`~email.generator.Generator` instance and use its " -":meth:`~email.generator.Generator.flatten` method directly. For example::" +"Note that this method is provided as a convenience and may not always format " +"the message the way you want. For example, by default it does not do the " +"mangling of lines that begin with ``From`` that is required by the unix mbox " +"format. For more flexibility, instantiate a :class:`~email.generator." +"Generator` instance and use its :meth:`~email.generator.Generator.flatten` " +"method directly. For example::" msgstr "" #: ../../library/email.compat32-message.rst:97 msgid "" "If the message object contains binary data that is not encoded according to " "RFC standards, the non-compliant data will be replaced by unicode \"unknown " -"character\" code points. (See also :meth:`.as_bytes` and " -":class:`~email.generator.BytesGenerator`.)" +"character\" code points. (See also :meth:`.as_bytes` and :class:`~email." +"generator.BytesGenerator`.)" msgstr "" #: ../../library/email.compat32-message.rst:102 @@ -148,15 +150,15 @@ msgstr "" #: ../../library/email.compat32-message.rst:107 msgid "" -"Equivalent to :meth:`.as_string()`. Allows ``str(msg)`` to produce a string" -" containing the formatted message." +"Equivalent to :meth:`.as_string()`. Allows ``str(msg)`` to produce a string " +"containing the formatted message." msgstr "" #: ../../library/email.compat32-message.rst:113 msgid "" "Return the entire message flattened as a bytes object. When optional " -"*unixfrom* is true, the envelope header is included in the returned string." -" *unixfrom* defaults to ``False``. The *policy* argument may be used to " +"*unixfrom* is true, the envelope header is included in the returned string. " +"*unixfrom* defaults to ``False``. The *policy* argument may be used to " "override the default policy obtained from the message instance. This can be " "used to control some of the formatting produced by the method, since the " "specified *policy* will be passed to the ``BytesGenerator``." @@ -164,31 +166,29 @@ msgstr "" #: ../../library/email.compat32-message.rst:125 msgid "" -"Note that this method is provided as a convenience and may not always format" -" the message the way you want. For example, by default it does not do the " -"mangling of lines that begin with ``From`` that is required by the unix mbox" -" format. For more flexibility, instantiate a " -":class:`~email.generator.BytesGenerator` instance and use its " -":meth:`~email.generator.BytesGenerator.flatten` method directly. For " -"example::" +"Note that this method is provided as a convenience and may not always format " +"the message the way you want. For example, by default it does not do the " +"mangling of lines that begin with ``From`` that is required by the unix mbox " +"format. For more flexibility, instantiate a :class:`~email.generator." +"BytesGenerator` instance and use its :meth:`~email.generator.BytesGenerator." +"flatten` method directly. For example::" msgstr "" #: ../../library/email.compat32-message.rst:145 msgid "" -"Equivalent to :meth:`.as_bytes()`. Allows ``bytes(msg)`` to produce a bytes" -" object containing the formatted message." +"Equivalent to :meth:`.as_bytes()`. Allows ``bytes(msg)`` to produce a bytes " +"object containing the formatted message." msgstr "" #: ../../library/email.compat32-message.rst:153 msgid "" -"Return ``True`` if the message's payload is a list of sub-\\ " -":class:`Message` objects, otherwise return ``False``. When " -":meth:`is_multipart` returns ``False``, the payload should be a string " -"object (which might be a CTE encoded binary payload). (Note that " -":meth:`is_multipart` returning ``True`` does not necessarily mean that " -"\"msg.get_content_maintype() == 'multipart'\" will return the ``True``. For " -"example, ``is_multipart`` will return ``True`` when the :class:`Message` is " -"of type ``message/rfc822``.)" +"Return ``True`` if the message's payload is a list of sub-\\ :class:" +"`Message` objects, otherwise return ``False``. When :meth:`is_multipart` " +"returns ``False``, the payload should be a string object (which might be a " +"CTE encoded binary payload). (Note that :meth:`is_multipart` returning " +"``True`` does not necessarily mean that \"msg.get_content_maintype() == " +"'multipart'\" will return the ``True``. For example, ``is_multipart`` will " +"return ``True`` when the :class:`Message` is of type ``message/rfc822``.)" msgstr "" #: ../../library/email.compat32-message.rst:165 @@ -214,17 +214,16 @@ msgstr "" #: ../../library/email.compat32-message.rst:182 msgid "" "This is a legacy method. On the :class:`~email.emailmessage.EmailMessage` " -"class its functionality is replaced by " -":meth:`~email.message.EmailMessage.set_content` and the related ``make`` and" -" ``add`` methods." +"class its functionality is replaced by :meth:`~email.message.EmailMessage." +"set_content` and the related ``make`` and ``add`` methods." msgstr "" #: ../../library/email.compat32-message.rst:190 msgid "" -"Return the current payload, which will be a list of :class:`Message` objects" -" when :meth:`is_multipart` is ``True``, or a string when " -":meth:`is_multipart` is ``False``. If the payload is a list and you mutate " -"the list object, you modify the message's payload in place." +"Return the current payload, which will be a list of :class:`Message` objects " +"when :meth:`is_multipart` is ``True``, or a string when :meth:`is_multipart` " +"is ``False``. If the payload is a list and you mutate the list object, you " +"modify the message's payload in place." msgstr "" #: ../../library/email.compat32-message.rst:195 @@ -232,15 +231,15 @@ msgid "" "With optional argument *i*, :meth:`get_payload` will return the *i*-th " "element of the payload, counting from zero, if :meth:`is_multipart` is " "``True``. An :exc:`IndexError` will be raised if *i* is less than 0 or " -"greater than or equal to the number of items in the payload. If the payload" -" is a string (i.e. :meth:`is_multipart` is ``False``) and *i* is given, a " -":exc:`TypeError` is raised." +"greater than or equal to the number of items in the payload. If the payload " +"is a string (i.e. :meth:`is_multipart` is ``False``) and *i* is given, a :" +"exc:`TypeError` is raised." msgstr "" #: ../../library/email.compat32-message.rst:202 msgid "" -"Optional *decode* is a flag indicating whether the payload should be decoded" -" or not, according to the :mailheader:`Content-Transfer-Encoding` header. " +"Optional *decode* is a flag indicating whether the payload should be decoded " +"or not, according to the :mailheader:`Content-Transfer-Encoding` header. " "When ``True`` and the message is not a multipart, the payload will be " "decoded if this header's value is ``quoted-printable`` or ``base64``. If " "some other encoding is used, or :mailheader:`Content-Transfer-Encoding` " @@ -249,8 +248,8 @@ msgid "" "*decode* flag is ``True``, then ``None`` is returned. If the payload is " "base64 and it was not perfectly formed (missing padding, characters outside " "the base64 alphabet), then an appropriate defect will be added to the " -"message's defect property (:class:`~email.errors.InvalidBase64PaddingDefect`" -" or :class:`~email.errors.InvalidBase64CharactersDefect`, respectively)." +"message's defect property (:class:`~email.errors.InvalidBase64PaddingDefect` " +"or :class:`~email.errors.InvalidBase64CharactersDefect`, respectively)." msgstr "" #: ../../library/email.compat32-message.rst:216 @@ -258,8 +257,8 @@ msgid "" "When *decode* is ``False`` (the default) the body is returned as a string " "without decoding the :mailheader:`Content-Transfer-Encoding`. However, for " "a :mailheader:`Content-Transfer-Encoding` of 8bit, an attempt is made to " -"decode the original bytes using the ``charset`` specified by the :mailheader" -":`Content-Type` header, using the ``replace`` error handler. If no " +"decode the original bytes using the ``charset`` specified by the :mailheader:" +"`Content-Type` header, using the ``replace`` error handler. If no " "``charset`` is specified, or if the ``charset`` given is not recognized by " "the email package, the body is decoded using the default ASCII charset." msgstr "" @@ -267,9 +266,8 @@ msgstr "" #: ../../library/email.compat32-message.rst:225 msgid "" "This is a legacy method. On the :class:`~email.emailmessage.EmailMessage` " -"class its functionality is replaced by " -":meth:`~email.message.EmailMessage.get_content` and " -":meth:`~email.message.EmailMessage.iter_parts`." +"class its functionality is replaced by :meth:`~email.message.EmailMessage." +"get_content` and :meth:`~email.message.EmailMessage.iter_parts`." msgstr "" #: ../../library/email.compat32-message.rst:233 @@ -282,28 +280,28 @@ msgstr "" #: ../../library/email.compat32-message.rst:237 msgid "" "This is a legacy method. On the :class:`~email.emailmessage.EmailMessage` " -"class its functionality is replaced by " -":meth:`~email.message.EmailMessage.set_content`." +"class its functionality is replaced by :meth:`~email.message.EmailMessage." +"set_content`." msgstr "" #: ../../library/email.compat32-message.rst:244 msgid "" -"Set the character set of the payload to *charset*, which can either be a " -":class:`~email.charset.Charset` instance (see :mod:`email.charset`), a " -"string naming a character set, or ``None``. If it is a string, it will be " +"Set the character set of the payload to *charset*, which can either be a :" +"class:`~email.charset.Charset` instance (see :mod:`email.charset`), a string " +"naming a character set, or ``None``. If it is a string, it will be " "converted to a :class:`~email.charset.Charset` instance. If *charset* is " -"``None``, the ``charset`` parameter will be removed from the :mailheader" -":`Content-Type` header (the message will not be otherwise modified). " +"``None``, the ``charset`` parameter will be removed from the :mailheader:" +"`Content-Type` header (the message will not be otherwise modified). " "Anything else will generate a :exc:`TypeError`." msgstr "" #: ../../library/email.compat32-message.rst:252 msgid "" -"If there is no existing :mailheader:`MIME-Version` header one will be added." -" If there is no existing :mailheader:`Content-Type` header, one will be " -"added with a value of :mimetype:`text/plain`. Whether the :mailheader" -":`Content-Type` header already exists or not, its ``charset`` parameter will" -" be set to *charset.output_charset*. If *charset.input_charset* and " +"If there is no existing :mailheader:`MIME-Version` header one will be " +"added. If there is no existing :mailheader:`Content-Type` header, one will " +"be added with a value of :mimetype:`text/plain`. Whether the :mailheader:" +"`Content-Type` header already exists or not, its ``charset`` parameter will " +"be set to *charset.output_charset*. If *charset.input_charset* and " "*charset.output_charset* differ, the payload will be re-encoded to the " "*output_charset*. If there is no existing :mailheader:`Content-Transfer-" "Encoding` header, then the payload will be transfer-encoded, if needed, " @@ -317,8 +315,8 @@ msgstr "" #: ../../library/email.compat32-message.rst:266 msgid "" "This is a legacy method. On the :class:`~email.emailmessage.EmailMessage` " -"class its functionality is replaced by the *charset* parameter of the " -":meth:`email.emailmessage.EmailMessage.set_content` method." +"class its functionality is replaced by the *charset* parameter of the :meth:" +"`email.emailmessage.EmailMessage.set_content` method." msgstr "" #: ../../library/email.compat32-message.rst:274 @@ -339,12 +337,11 @@ msgid "" "message's :rfc:`2822` headers. Note that there are some semantic " "differences between these methods and a normal mapping (i.e. dictionary) " "interface. For example, in a dictionary there are no duplicate keys, but " -"here there may be duplicate message headers. Also, in dictionaries there is" -" no guaranteed order to the keys returned by :meth:`keys`, but in a " -":class:`Message` object, headers are always returned in the order they " -"appeared in the original message, or were added to the message later. Any " -"header deleted and then re-added are always appended to the end of the " -"header list." +"here there may be duplicate message headers. Also, in dictionaries there is " +"no guaranteed order to the keys returned by :meth:`keys`, but in a :class:" +"`Message` object, headers are always returned in the order they appeared in " +"the original message, or were added to the message later. Any header " +"deleted and then re-added are always appended to the end of the header list." msgstr "" #: ../../library/email.compat32-message.rst:292 @@ -361,8 +358,8 @@ msgstr "" #: ../../library/email.compat32-message.rst:298 msgid "" -"In a model generated from bytes, any header values that (in contravention of" -" the RFCs) contain non-ASCII bytes will, when retrieved through this " +"In a model generated from bytes, any header values that (in contravention of " +"the RFCs) contain non-ASCII bytes will, when retrieved through this " "interface, be represented as :class:`~email.header.Header` objects with a " "charset of `unknown-8bit`." msgstr "" @@ -373,23 +370,23 @@ msgstr "" #: ../../library/email.compat32-message.rst:311 msgid "" -"Return true if the message object has a field named *name*. Matching is done" -" case-insensitively and *name* should not include the trailing colon. Used " -"for the ``in`` operator, e.g.::" +"Return ``True`` if the message object has a field named *name*. Matching is " +"done case-insensitively and *name* should not include the trailing colon. " +"Used for the ``in`` operator, e.g.::" msgstr "" #: ../../library/email.compat32-message.rst:321 msgid "" "Return the value of the named header field. *name* should not include the " -"colon field separator. If the header is missing, ``None`` is returned; a " -":exc:`KeyError` is never raised." +"colon field separator. If the header is missing, ``None`` is returned; a :" +"exc:`KeyError` is never raised." msgstr "" #: ../../library/email.compat32-message.rst:325 msgid "" "Note that if the named field appears more than once in the message's " -"headers, exactly which of those field values will be returned is undefined." -" Use the :meth:`get_all` method to get the values of all the extant named " +"headers, exactly which of those field values will be returned is undefined. " +"Use the :meth:`get_all` method to get the values of all the extant named " "headers." msgstr "" @@ -403,8 +400,7 @@ msgstr "" msgid "" "Note that this does *not* overwrite or delete any existing header with the " "same name. If you want to ensure that the new header is the only one " -"present in the message with field name *name*, delete the field first, " -"e.g.::" +"present in the message with field name *name*, delete the field first, e.g.::" msgstr "" #: ../../library/email.compat32-message.rst:346 @@ -430,9 +426,9 @@ msgstr "" #: ../../library/email.compat32-message.rst:369 msgid "" -"Return the value of the named header field. This is identical to " -":meth:`__getitem__` except that optional *failobj* is returned if the named " -"header is missing (defaults to ``None``)." +"Return the value of the named header field. This is identical to :meth:" +"`__getitem__` except that optional *failobj* is returned if the named header " +"is missing (defaults to ``None``)." msgstr "" #: ../../library/email.compat32-message.rst:373 @@ -450,24 +446,24 @@ msgstr "" msgid "" "Extended header setting. This method is similar to :meth:`__setitem__` " "except that additional header parameters can be provided as keyword " -"arguments. *_name* is the header field to add and *_value* is the *primary*" -" value for the header." +"arguments. *_name* is the header field to add and *_value* is the *primary* " +"value for the header." msgstr "" #: ../../library/email.compat32-message.rst:390 msgid "" -"For each item in the keyword argument dictionary *_params*, the key is taken" -" as the parameter name, with underscores converted to dashes (since dashes " +"For each item in the keyword argument dictionary *_params*, the key is taken " +"as the parameter name, with underscores converted to dashes (since dashes " "are illegal in Python identifiers). Normally, the parameter will be added " "as ``key=\"value\"`` unless the value is ``None``, in which case only the " "key will be added. If the value contains non-ASCII characters, it can be " "specified as a three tuple in the format ``(CHARSET, LANGUAGE, VALUE)``, " "where ``CHARSET`` is a string naming the charset to be used to encode the " -"value, ``LANGUAGE`` can usually be set to ``None`` or the empty string (see " -":rfc:`2231` for other possibilities), and ``VALUE`` is the string value " +"value, ``LANGUAGE`` can usually be set to ``None`` or the empty string (see :" +"rfc:`2231` for other possibilities), and ``VALUE`` is the string value " "containing non-ASCII code points. If a three tuple is not passed and the " -"value contains non-ASCII characters, it is automatically encoded in " -":rfc:`2231` format using a ``CHARSET`` of ``utf-8`` and a ``LANGUAGE`` of " +"value contains non-ASCII characters, it is automatically encoded in :rfc:" +"`2231` format using a ``CHARSET`` of ``utf-8`` and a ``LANGUAGE`` of " "``None``." msgstr "" @@ -490,16 +486,16 @@ msgstr "" #: ../../library/email.compat32-message.rst:424 msgid "" "Replace a header. Replace the first header found in the message that " -"matches *_name*, retaining header order and field name case. If no matching" -" header was found, a :exc:`KeyError` is raised." +"matches *_name*, retaining header order and field name case. If no matching " +"header was found, a :exc:`KeyError` is raised." msgstr "" #: ../../library/email.compat32-message.rst:431 msgid "" "Return the message's content type. The returned string is coerced to lower " -"case of the form :mimetype:`maintype/subtype`. If there was no :mailheader" -":`Content-Type` header in the message the default type as given by " -":meth:`get_default_type` will be returned. Since according to :rfc:`2045`, " +"case of the form :mimetype:`maintype/subtype`. If there was no :mailheader:" +"`Content-Type` header in the message the default type as given by :meth:" +"`get_default_type` will be returned. Since according to :rfc:`2045`, " "messages always have a default type, :meth:`get_content_type` will always " "return a value." msgstr "" @@ -521,24 +517,23 @@ msgstr "" #: ../../library/email.compat32-message.rst:453 msgid "" -"Return the message's sub-content type. This is the :mimetype:`subtype` part" -" of the string returned by :meth:`get_content_type`." +"Return the message's sub-content type. This is the :mimetype:`subtype` part " +"of the string returned by :meth:`get_content_type`." msgstr "" #: ../../library/email.compat32-message.rst:459 msgid "" "Return the default content type. Most messages have a default content type " -"of :mimetype:`text/plain`, except for messages that are subparts of " -":mimetype:`multipart/digest` containers. Such subparts have a default " +"of :mimetype:`text/plain`, except for messages that are subparts of :" +"mimetype:`multipart/digest` containers. Such subparts have a default " "content type of :mimetype:`message/rfc822`." msgstr "" #: ../../library/email.compat32-message.rst:467 msgid "" -"Set the default content type. *ctype* should either be " -":mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not " -"enforced. The default content type is not stored in the :mailheader" -":`Content-Type` header." +"Set the default content type. *ctype* should either be :mimetype:`text/" +"plain` or :mimetype:`message/rfc822`, although this is not enforced. The " +"default content type is not stored in the :mailheader:`Content-Type` header." msgstr "" #: ../../library/email.compat32-message.rst:475 @@ -547,15 +542,14 @@ msgid "" "elements of the returned list are 2-tuples of key/value pairs, as split on " "the ``'='`` sign. The left hand side of the ``'='`` is the key, while the " "right hand side is the value. If there is no ``'='`` sign in the parameter " -"the value is the empty string, otherwise the value is as described in " -":meth:`get_param` and is unquoted if optional *unquote* is ``True`` (the " -"default)." +"the value is the empty string, otherwise the value is as described in :meth:" +"`get_param` and is unquoted if optional *unquote* is ``True`` (the default)." msgstr "" #: ../../library/email.compat32-message.rst:483 msgid "" -"Optional *failobj* is the object to return if there is no :mailheader" -":`Content-Type` header. Optional *header* is the header to search instead " +"Optional *failobj* is the object to return if there is no :mailheader:" +"`Content-Type` header. Optional *header* is the header to search instead " "of :mailheader:`Content-Type`." msgstr "" @@ -577,28 +571,27 @@ msgstr "" #: ../../library/email.compat32-message.rst:500 msgid "" -"Optional *header* if given, specifies the message header to use instead of " -":mailheader:`Content-Type`." +"Optional *header* if given, specifies the message header to use instead of :" +"mailheader:`Content-Type`." msgstr "" #: ../../library/email.compat32-message.rst:503 msgid "" -"Parameter keys are always compared case insensitively. The return value can" -" either be a string, or a 3-tuple if the parameter was :rfc:`2231` encoded." -" When it's a 3-tuple, the elements of the value are of the form ``(CHARSET," -" LANGUAGE, VALUE)``. Note that both ``CHARSET`` and ``LANGUAGE`` can be " +"Parameter keys are always compared case insensitively. The return value can " +"either be a string, or a 3-tuple if the parameter was :rfc:`2231` encoded. " +"When it's a 3-tuple, the elements of the value are of the form ``(CHARSET, " +"LANGUAGE, VALUE)``. Note that both ``CHARSET`` and ``LANGUAGE`` can be " "``None``, in which case you should consider ``VALUE`` to be encoded in the " "``us-ascii`` charset. You can usually ignore ``LANGUAGE``." msgstr "" #: ../../library/email.compat32-message.rst:511 msgid "" -"If your application doesn't care whether the parameter was encoded as in " -":rfc:`2231`, you can collapse the parameter value by calling " -":func:`email.utils.collapse_rfc2231_value`, passing in the return value from" -" :meth:`get_param`. This will return a suitably decoded Unicode string when" -" the value is a tuple, or the original string unquoted if it isn't. For " -"example::" +"If your application doesn't care whether the parameter was encoded as in :" +"rfc:`2231`, you can collapse the parameter value by calling :func:`email." +"utils.collapse_rfc2231_value`, passing in the return value from :meth:" +"`get_param`. This will return a suitably decoded Unicode string when the " +"value is a tuple, or the original string unquoted if it isn't. For example::" msgstr "" #: ../../library/email.compat32-message.rst:521 @@ -646,10 +639,10 @@ msgstr "" #: ../../library/email.compat32-message.rst:558 msgid "" "Remove the given parameter completely from the :mailheader:`Content-Type` " -"header. The header will be re-written in place without the parameter or its" -" value. All values will be quoted as necessary unless *requote* is " -"``False`` (the default is ``True``). Optional *header* specifies an " -"alternative to :mailheader:`Content-Type`." +"header. The header will be re-written in place without the parameter or its " +"value. All values will be quoted as necessary unless *requote* is ``False`` " +"(the default is ``True``). Optional *header* specifies an alternative to :" +"mailheader:`Content-Type`." msgstr "" #: ../../library/email.compat32-message.rst:567 @@ -669,9 +662,9 @@ msgstr "" #: ../../library/email.compat32-message.rst:576 msgid "" -"An alternative header can be specified in the *header* argument. When the " -":mailheader:`Content-Type` header is set a :mailheader:`MIME-Version` header" -" is also added." +"An alternative header can be specified in the *header* argument. When the :" +"mailheader:`Content-Type` header is set a :mailheader:`MIME-Version` header " +"is also added." msgstr "" #: ../../library/email.compat32-message.rst:580 @@ -685,9 +678,9 @@ msgid "" "Return the value of the ``filename`` parameter of the :mailheader:`Content-" "Disposition` header of the message. If the header does not have a " "``filename`` parameter, this method falls back to looking for the ``name`` " -"parameter on the :mailheader:`Content-Type` header. If neither is found, or" -" the header is missing, then *failobj* is returned. The returned string will" -" always be unquoted as per :func:`email.utils.unquote`." +"parameter on the :mailheader:`Content-Type` header. If neither is found, or " +"the header is missing, then *failobj* is returned. The returned string will " +"always be unquoted as per :func:`email.utils.unquote`." msgstr "" #: ../../library/email.compat32-message.rst:598 @@ -701,17 +694,17 @@ msgstr "" #: ../../library/email.compat32-message.rst:606 msgid "" "Set the ``boundary`` parameter of the :mailheader:`Content-Type` header to " -"*boundary*. :meth:`set_boundary` will always quote *boundary* if necessary." -" A :exc:`~email.errors.HeaderParseError` is raised if the message object " -"has no :mailheader:`Content-Type` header." +"*boundary*. :meth:`set_boundary` will always quote *boundary* if " +"necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message " +"object has no :mailheader:`Content-Type` header." msgstr "" #: ../../library/email.compat32-message.rst:611 msgid "" -"Note that using this method is subtly different than deleting the old " -":mailheader:`Content-Type` header and adding a new one with the new boundary" -" via :meth:`add_header`, because :meth:`set_boundary` preserves the order of" -" the :mailheader:`Content-Type` header in the list of headers. However, it " +"Note that using this method is subtly different than deleting the old :" +"mailheader:`Content-Type` header and adding a new one with the new boundary " +"via :meth:`add_header`, because :meth:`set_boundary` preserves the order of " +"the :mailheader:`Content-Type` header in the list of headers. However, it " "does *not* preserve any continuation lines which may have been present in " "the original :mailheader:`Content-Type` header." msgstr "" @@ -719,14 +712,14 @@ msgstr "" #: ../../library/email.compat32-message.rst:621 msgid "" "Return the ``charset`` parameter of the :mailheader:`Content-Type` header, " -"coerced to lower case. If there is no :mailheader:`Content-Type` header, or" -" if that header has no ``charset`` parameter, *failobj* is returned." +"coerced to lower case. If there is no :mailheader:`Content-Type` header, or " +"if that header has no ``charset`` parameter, *failobj* is returned." msgstr "" #: ../../library/email.compat32-message.rst:625 msgid "" -"Note that this method differs from :meth:`get_charset` which returns the " -":class:`~email.charset.Charset` instance for the default encoding of the " +"Note that this method differs from :meth:`get_charset` which returns the :" +"class:`~email.charset.Charset` instance for the default encoding of the " "message body." msgstr "" @@ -739,8 +732,8 @@ msgstr "" #: ../../library/email.compat32-message.rst:635 msgid "" -"Each item in the list will be a string which is the value of the ``charset``" -" parameter in the :mailheader:`Content-Type` header for the represented " +"Each item in the list will be a string which is the value of the ``charset`` " +"parameter in the :mailheader:`Content-Type` header for the represented " "subpart. However, if the subpart has no :mailheader:`Content-Type` header, " "no ``charset`` parameter, or is not of the :mimetype:`text` main MIME type, " "then that item in the returned list will be *failobj*." @@ -748,8 +741,8 @@ msgstr "" #: ../../library/email.compat32-message.rst:645 msgid "" -"Return the lowercased value (without parameters) of the message's " -":mailheader:`Content-Disposition` header if it has one, or ``None``. The " +"Return the lowercased value (without parameters) of the message's :" +"mailheader:`Content-Disposition` header if it has one, or ``None``. The " "possible values for this method are *inline*, *attachment* or ``None`` if " "the message follows :rfc:`2183`." msgstr "" @@ -779,8 +772,8 @@ msgstr "" #: ../../library/email.compat32-message.rst:712 msgid "" "Here the ``message`` parts are not ``multiparts``, but they do contain " -"subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the" -" subparts." +"subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the " +"subparts." msgstr "" #: ../../library/email.compat32-message.rst:717 @@ -803,14 +796,13 @@ msgstr "" #: ../../library/email.compat32-message.rst:730 msgid "" "The *preamble* attribute contains this leading extra-armor text for MIME " -"documents. When the :class:`~email.parser.Parser` discovers some text after" -" the headers but before the first boundary string, it assigns this text to " -"the message's *preamble* attribute. When the " -":class:`~email.generator.Generator` is writing out the plain text " -"representation of a MIME message, and it finds the message has a *preamble* " -"attribute, it will write this text in the area between the headers and the " -"first boundary. See :mod:`email.parser` and :mod:`email.generator` for " -"details." +"documents. When the :class:`~email.parser.Parser` discovers some text after " +"the headers but before the first boundary string, it assigns this text to " +"the message's *preamble* attribute. When the :class:`~email.generator." +"Generator` is writing out the plain text representation of a MIME message, " +"and it finds the message has a *preamble* attribute, it will write this text " +"in the area between the headers and the first boundary. See :mod:`email." +"parser` and :mod:`email.generator` for details." msgstr "" #: ../../library/email.compat32-message.rst:740 @@ -828,14 +820,13 @@ msgstr "" #: ../../library/email.compat32-message.rst:750 msgid "" -"You do not need to set the epilogue to the empty string in order for the " -":class:`~email.generator.Generator` to print a newline at the end of the " -"file." +"You do not need to set the epilogue to the empty string in order for the :" +"class:`~email.generator.Generator` to print a newline at the end of the file." msgstr "" #: ../../library/email.compat32-message.rst:757 msgid "" "The *defects* attribute contains a list of all the problems found when " -"parsing this message. See :mod:`email.errors` for a detailed description of" -" the possible parsing defects." +"parsing this message. See :mod:`email.errors` for a detailed description of " +"the possible parsing defects." msgstr "" diff --git a/library/email.contentmanager.po b/library/email.contentmanager.po index b11a89600..fc9494808 100644 --- a/library/email.contentmanager.po +++ b/library/email.contentmanager.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,10 +45,9 @@ msgstr "" #: ../../library/email.contentmanager.rst:26 msgid "" "Look up a handler function based on the ``mimetype`` of *msg* (see next " -"paragraph), call it, passing through all arguments, and return the result of" -" the call. The expectation is that the handler will extract the payload " -"from *msg* and return an object that encodes information about the extracted" -" data." +"paragraph), call it, passing through all arguments, and return the result of " +"the call. The expectation is that the handler will extract the payload from " +"*msg* and return an object that encodes information about the extracted data." msgstr "" #: ../../library/email.contentmanager.rst:32 @@ -98,8 +98,8 @@ msgstr "" #: ../../library/email.contentmanager.rst:59 msgid "" -"the type's fully qualified name (``typ.__module__ + '.' + " -"typ.__qualname__``)." +"the type's fully qualified name (``typ.__module__ + '.' + typ." +"__qualname__``)." msgstr "" #: ../../library/email.contentmanager.rst:61 @@ -113,16 +113,16 @@ msgstr "" #: ../../library/email.contentmanager.rst:64 msgid "" "If none of the above match, repeat all of the checks above for each of the " -"types in the :term:`MRO` (``typ.__mro__``). Finally, if no other key yields" -" a handler, check for a handler for the key ``None``. If there is no " -"handler for ``None``, raise a :exc:`KeyError` for the fully qualified name " -"of the type." +"types in the :term:`MRO` (``typ.__mro__``). Finally, if no other key yields " +"a handler, check for a handler for the key ``None``. If there is no handler " +"for ``None``, raise a :exc:`KeyError` for the fully qualified name of the " +"type." msgstr "" #: ../../library/email.contentmanager.rst:70 msgid "" -"Also add a :mailheader:`MIME-Version` header if one is not present (see also" -" :class:`.MIMEPart`)." +"Also add a :mailheader:`MIME-Version` header if one is not present (see " +"also :class:`.MIMEPart`)." msgstr "" #: ../../library/email.contentmanager.rst:76 @@ -144,34 +144,33 @@ msgstr "" #: ../../library/email.contentmanager.rst:90 msgid "" -"Currently the email package provides only one concrete content manager, " -":data:`raw_data_manager`, although more may be added in the future. " -":data:`raw_data_manager` is the " -":attr:`~email.policy.EmailPolicy.content_manager` provided by " -":attr:`~email.policy.EmailPolicy` and its derivatives." +"Currently the email package provides only one concrete content manager, :" +"data:`raw_data_manager`, although more may be added in the future. :data:" +"`raw_data_manager` is the :attr:`~email.policy.EmailPolicy.content_manager` " +"provided by :attr:`~email.policy.EmailPolicy` and its derivatives." msgstr "" #: ../../library/email.contentmanager.rst:99 msgid "" "This content manager provides only a minimum interface beyond that provided " "by :class:`~email.message.Message` itself: it deals only with text, raw " -"byte strings, and :class:`~email.message.Message` objects. Nevertheless, it" -" provides significant advantages compared to the base API: ``get_content`` " -"on a text part will return a unicode string without the application needing " -"to manually decode it, ``set_content`` provides a rich set of options for " -"controlling the headers added to a part and controlling the content transfer" -" encoding, and it enables the use of the various ``add_`` methods, thereby " +"byte strings, and :class:`~email.message.Message` objects. Nevertheless, it " +"provides significant advantages compared to the base API: ``get_content`` on " +"a text part will return a unicode string without the application needing to " +"manually decode it, ``set_content`` provides a rich set of options for " +"controlling the headers added to a part and controlling the content transfer " +"encoding, and it enables the use of the various ``add_`` methods, thereby " "simplifying the creation of multipart messages." msgstr "" #: ../../library/email.contentmanager.rst:111 msgid "" -"Return the payload of the part as either a string (for ``text`` parts), an " -":class:`~email.message.EmailMessage` object (for ``message/rfc822`` parts), " -"or a ``bytes`` object (for all other non-multipart types). Raise a " -":exc:`KeyError` if called on a ``multipart``. If the part is a ``text`` " -"part and *errors* is specified, use it as the error handler when decoding " -"the payload to unicode. The default error handler is ``replace``." +"Return the payload of the part as either a string (for ``text`` parts), an :" +"class:`~email.message.EmailMessage` object (for ``message/rfc822`` parts), " +"or a ``bytes`` object (for all other non-multipart types). Raise a :exc:" +"`KeyError` if called on a ``multipart``. If the part is a ``text`` part and " +"*errors* is specified, use it as the error handler when decoding the payload " +"to unicode. The default error handler is ``replace``." msgstr "" #: ../../library/email.contentmanager.rst:130 @@ -191,8 +190,8 @@ msgstr "" #: ../../library/email.contentmanager.rst:137 msgid "" -"For ``bytes``, use the specified *maintype* and *subtype*, or raise a " -":exc:`TypeError` if they are not specified." +"For ``bytes``, use the specified *maintype* and *subtype*, or raise a :exc:" +"`TypeError` if they are not specified." msgstr "" #: ../../library/email.contentmanager.rst:139 @@ -214,11 +213,11 @@ msgstr "" #: ../../library/email.contentmanager.rst:150 msgid "" "If *cte* is set, encode the payload using the specified content transfer " -"encoding, and set the :mailheader:`Content-Transfer-Encoding` header to that" -" value. Possible values for *cte* are ``quoted-printable``, ``base64``, " +"encoding, and set the :mailheader:`Content-Transfer-Encoding` header to that " +"value. Possible values for *cte* are ``quoted-printable``, ``base64``, " "``7bit``, ``8bit``, and ``binary``. If the input cannot be encoded in the " -"specified encoding (for example, specifying a *cte* of ``7bit`` for an input" -" that contains non-ASCII values), raise a :exc:`ValueError`." +"specified encoding (for example, specifying a *cte* of ``7bit`` for an input " +"that contains non-ASCII values), raise a :exc:`ValueError`." msgstr "" #: ../../library/email.contentmanager.rst:158 @@ -229,8 +228,8 @@ msgstr "" #: ../../library/email.contentmanager.rst:160 msgid "" -"For :class:`~email.message.EmailMessage`, per :rfc:`2046`, raise an error if" -" a *cte* of ``quoted-printable`` or ``base64`` is requested for *subtype* " +"For :class:`~email.message.EmailMessage`, per :rfc:`2046`, raise an error if " +"a *cte* of ``quoted-printable`` or ``base64`` is requested for *subtype* " "``rfc822``, and for any *cte* other than ``7bit`` for *subtype* ``external-" "body``. For ``message/rfc822``, use ``8bit`` if *cte* is not specified. " "For all other values of *subtype*, use ``7bit``." @@ -239,16 +238,16 @@ msgstr "" #: ../../library/email.contentmanager.rst:167 msgid "" "A *cte* of ``binary`` does not actually work correctly yet. The " -"``EmailMessage`` object as modified by ``set_content`` is correct, but " -":class:`~email.generator.BytesGenerator` does not serialize it correctly." +"``EmailMessage`` object as modified by ``set_content`` is correct, but :" +"class:`~email.generator.BytesGenerator` does not serialize it correctly." msgstr "" #: ../../library/email.contentmanager.rst:172 msgid "" "If *disposition* is set, use it as the value of the :mailheader:`Content-" -"Disposition` header. If not specified, and *filename* is specified, add the" -" header with the value ``attachment``. If *disposition* is not specified and" -" *filename* is also not specified, do not add the header. The only valid " +"Disposition` header. If not specified, and *filename* is specified, add the " +"header with the value ``attachment``. If *disposition* is not specified and " +"*filename* is also not specified, do not add the header. The only valid " "values for *disposition* are ``attachment`` and ``inline``." msgstr "" @@ -266,16 +265,16 @@ msgstr "" #: ../../library/email.contentmanager.rst:185 msgid "" -"If *params* is specified, iterate its ``items`` method and use the resulting" -" ``(key, value)`` pairs to set additional parameters on the :mailheader" -":`Content-Type` header." +"If *params* is specified, iterate its ``items`` method and use the resulting " +"``(key, value)`` pairs to set additional parameters on the :mailheader:" +"`Content-Type` header." msgstr "" #: ../../library/email.contentmanager.rst:189 msgid "" -"If *headers* is specified and is a list of strings of the form ``headername:" -" headervalue`` or a list of ``header`` objects (distinguished from strings " -"by having a ``name`` attribute), add the headers to *msg*." +"If *headers* is specified and is a list of strings of the form ``headername: " +"headervalue`` or a list of ``header`` objects (distinguished from strings by " +"having a ``name`` attribute), add the headers to *msg*." msgstr "" #: ../../library/email.contentmanager.rst:196 @@ -284,6 +283,5 @@ msgstr "Notas de rodapé" #: ../../library/email.contentmanager.rst:197 msgid "" -"Originally added in 3.4 as a :term:`provisional module `" +"Originally added in 3.4 as a :term:`provisional module `" msgstr "" diff --git a/library/email.encoders.po b/library/email.encoders.po index 5d310041c..decc2a7a4 100644 --- a/library/email.encoders.po +++ b/library/email.encoders.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-01 11:34+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/email/encoders.py`" #: ../../library/email.encoders.rst:11 msgid "" "This module is part of the legacy (``Compat32``) email API. In the new API " -"the functionality is provided by the *cte* parameter of the " -":meth:`~email.message.EmailMessage.set_content` method." +"the functionality is provided by the *cte* parameter of the :meth:`~email." +"message.EmailMessage.set_content` method." msgstr "" #: ../../library/email.encoders.rst:15 @@ -55,27 +56,27 @@ msgstr "" msgid "" "When creating :class:`~email.message.Message` objects from scratch, you " "often need to encode the payloads for transport through compliant mail " -"servers. This is especially true for :mimetype:`image/\\*` and " -":mimetype:`text/\\*` type messages containing binary data." +"servers. This is especially true for :mimetype:`image/\\*` and :mimetype:" +"`text/\\*` type messages containing binary data." msgstr "" #: ../../library/email.encoders.rst:27 msgid "" -"The :mod:`email` package provides some convenient encodings in its " -":mod:`encoders` module. These encoders are actually used by the " -":class:`~email.mime.audio.MIMEAudio` and " -":class:`~email.mime.image.MIMEImage` class constructors to provide default " -"encodings. All encoder functions take exactly one argument, the message " -"object to encode. They usually extract the payload, encode it, and reset " -"the payload to this newly encoded value. They should also set the " -":mailheader:`Content-Transfer-Encoding` header as appropriate." +"The :mod:`email` package provides some convenient encodings in its :mod:" +"`encoders` module. These encoders are actually used by the :class:`~email." +"mime.audio.MIMEAudio` and :class:`~email.mime.image.MIMEImage` class " +"constructors to provide default encodings. All encoder functions take " +"exactly one argument, the message object to encode. They usually extract " +"the payload, encode it, and reset the payload to this newly encoded value. " +"They should also set the :mailheader:`Content-Transfer-Encoding` header as " +"appropriate." msgstr "" #: ../../library/email.encoders.rst:35 msgid "" "Note that these functions are not meaningful for a multipart message. They " -"must be applied to individual subparts instead, and will raise a " -":exc:`TypeError` if passed a message whose type is multipart." +"must be applied to individual subparts instead, and will raise a :exc:" +"`TypeError` if passed a message whose type is multipart." msgstr "" #: ../../library/email.encoders.rst:39 @@ -84,10 +85,10 @@ msgstr "" #: ../../library/email.encoders.rst:44 msgid "" -"Encodes the payload into quoted-printable form and sets the :mailheader" -":`Content-Transfer-Encoding` header to ``quoted-printable`` [#]_. This is a " -"good encoding to use when most of your payload is normal printable data, but" -" contains a few unprintable characters." +"Encodes the payload into quoted-printable form and sets the :mailheader:" +"`Content-Transfer-Encoding` header to ``quoted-printable`` [#]_. This is a " +"good encoding to use when most of your payload is normal printable data, but " +"contains a few unprintable characters." msgstr "" #: ../../library/email.encoders.rst:52 @@ -101,9 +102,9 @@ msgstr "" #: ../../library/email.encoders.rst:61 msgid "" -"This doesn't actually modify the message's payload, but it does set the " -":mailheader:`Content-Transfer-Encoding` header to either ``7bit`` or " -"``8bit`` as appropriate, based on the payload data." +"This doesn't actually modify the message's payload, but it does set the :" +"mailheader:`Content-Transfer-Encoding` header to either ``7bit`` or ``8bit`` " +"as appropriate, based on the payload data." msgstr "" #: ../../library/email.encoders.rst:68 diff --git a/library/email.errors.po b/library/email.errors.po index b0a10f344..363e45a4a 100644 --- a/library/email.errors.po +++ b/library/email.errors.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,22 +46,21 @@ msgstr "" #: ../../library/email.errors.rst:23 msgid "" -"This is the base class for exceptions raised by the " -":class:`~email.parser.Parser` class. It is derived from " -":exc:`MessageError`. This class is also used internally by the parser used " -"by :mod:`~email.headerregistry`." +"This is the base class for exceptions raised by the :class:`~email.parser." +"Parser` class. It is derived from :exc:`MessageError`. This class is also " +"used internally by the parser used by :mod:`~email.headerregistry`." msgstr "" #: ../../library/email.errors.rst:31 msgid "" -"Raised under some error conditions when parsing the :rfc:`5322` headers of a" -" message, this class is derived from :exc:`MessageParseError`. The " -":meth:`~email.message.EmailMessage.set_boundary` method will raise this " -"error if the content type is unknown when the method is called. " -":class:`~email.header.Header` may raise this error for certain base64 " -"decoding errors, and when an attempt is made to create a header that appears" -" to contain an embedded header (that is, there is what is supposed to be a " -"continuation line that has no leading whitespace and looks like a header)." +"Raised under some error conditions when parsing the :rfc:`5322` headers of a " +"message, this class is derived from :exc:`MessageParseError`. The :meth:" +"`~email.message.EmailMessage.set_boundary` method will raise this error if " +"the content type is unknown when the method is called. :class:`~email.header." +"Header` may raise this error for certain base64 decoding errors, and when an " +"attempt is made to create a header that appears to contain an embedded " +"header (that is, there is what is supposed to be a continuation line that " +"has no leading whitespace and looks like a header)." msgstr "" #: ../../library/email.errors.rst:43 @@ -70,18 +71,18 @@ msgstr "" msgid "" "Raised when a payload is added to a :class:`~email.message.Message` object " "using :meth:`add_payload`, but the payload is already a scalar and the " -"message's :mailheader:`Content-Type` main type is not either " -":mimetype:`multipart` or missing. :exc:`MultipartConversionError` multiply " -"inherits from :exc:`MessageError` and the built-in :exc:`TypeError`." +"message's :mailheader:`Content-Type` main type is not either :mimetype:" +"`multipart` or missing. :exc:`MultipartConversionError` multiply inherits " +"from :exc:`MessageError` and the built-in :exc:`TypeError`." msgstr "" #: ../../library/email.errors.rst:54 msgid "" "Since :meth:`Message.add_payload` is deprecated, this exception is rarely " -"raised in practice. However the exception may also be raised if the " -":meth:`~email.message.Message.attach` method is called on an instance of a " -"class derived from :class:`~email.mime.nonmultipart.MIMENonMultipart` (e.g. " -":class:`~email.mime.image.MIMEImage`)." +"raised in practice. However the exception may also be raised if the :meth:" +"`~email.message.Message.attach` method is called on an instance of a class " +"derived from :class:`~email.mime.nonmultipart.MIMENonMultipart` (e.g. :class:" +"`~email.mime.image.MIMEImage`)." msgstr "" #: ../../library/email.errors.rst:62 @@ -90,8 +91,8 @@ msgid "" "can find while parsing messages. Note that the defects are added to the " "message where the problem was found, so for example, if a message nested " "inside a :mimetype:`multipart/alternative` had a malformed header, that " -"nested message object would have a defect, but the containing messages would" -" not." +"nested message object would have a defect, but the containing messages would " +"not." msgstr "" #: ../../library/email.errors.rst:68 @@ -101,14 +102,14 @@ msgstr "" #: ../../library/email.errors.rst:70 msgid "" -":class:`NoBoundaryInMultipartDefect` -- A message claimed to be a multipart," -" but had no :mimetype:`boundary` parameter." +":class:`NoBoundaryInMultipartDefect` -- A message claimed to be a multipart, " +"but had no :mimetype:`boundary` parameter." msgstr "" #: ../../library/email.errors.rst:73 msgid "" -":class:`StartBoundaryNotFoundDefect` -- The start boundary claimed in the " -":mailheader:`Content-Type` header was never found." +":class:`StartBoundaryNotFoundDefect` -- The start boundary claimed in the :" +"mailheader:`Content-Type` header was never found." msgstr "" #: ../../library/email.errors.rst:76 @@ -125,8 +126,8 @@ msgstr "" #: ../../library/email.errors.rst:84 msgid "" -":class:`MisplacedEnvelopeHeaderDefect` - A \"Unix From\" header was found in" -" the middle of a header block." +":class:`MisplacedEnvelopeHeaderDefect` - A \"Unix From\" header was found in " +"the middle of a header block." msgstr "" #: ../../library/email.errors.rst:87 @@ -148,11 +149,11 @@ msgstr "" #: ../../library/email.errors.rst:99 msgid "" -":class:`MultipartInvariantViolationDefect` -- A message claimed to be a " -":mimetype:`multipart`, but no subparts were found. Note that when a message" -" has this defect, its :meth:`~email.message.Message.is_multipart` method may" -" return false even though its content type claims to be " -":mimetype:`multipart`." +":class:`MultipartInvariantViolationDefect` -- A message claimed to be a :" +"mimetype:`multipart`, but no subparts were found. Note that when a message " +"has this defect, its :meth:`~email.message.Message.is_multipart` method may " +"return ``False`` even though its content type claims to be :mimetype:" +"`multipart`." msgstr "" #: ../../library/email.errors.rst:104 diff --git a/library/email.examples.po b/library/email.examples.po index 7c59eaefc..587c18df8 100644 --- a/library/email.examples.po +++ b/library/email.examples.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,14 +29,13 @@ msgstr "" #: ../../library/email.examples.rst:6 msgid "" "Here are a few examples of how to use the :mod:`email` package to read, " -"write, and send simple email messages, as well as more complex MIME " -"messages." +"write, and send simple email messages, as well as more complex MIME messages." msgstr "" #: ../../library/email.examples.rst:9 msgid "" -"First, let's see how to create and send a simple text message (both the text" -" content and the addresses may contain unicode characters):" +"First, let's see how to create and send a simple text message (both the text " +"content and the addresses may contain unicode characters):" msgstr "" #: ../../library/email.examples.rst:15 @@ -46,8 +46,8 @@ msgstr "" #: ../../library/email.examples.rst:21 msgid "" -"Here's an example of how to send a MIME message containing a bunch of family" -" pictures that may be residing in a directory:" +"Here's an example of how to send a MIME message containing a bunch of family " +"pictures that may be residing in a directory:" msgstr "" #: ../../library/email.examples.rst:27 @@ -58,14 +58,14 @@ msgstr "" #: ../../library/email.examples.rst:33 msgid "" -"Here's an example of how to unpack a MIME message like the one above, into a" -" directory of files:" +"Here's an example of how to unpack a MIME message like the one above, into a " +"directory of files:" msgstr "" #: ../../library/email.examples.rst:39 msgid "" -"Here's an example of how to create an HTML message with an alternative plain" -" text version. To make things a bit more interesting, we include a related " +"Here's an example of how to create an HTML message with an alternative plain " +"text version. To make things a bit more interesting, we include a related " "image in the html part, and we save a copy of what we are going to send to " "disk, as well as sending it." msgstr "" diff --git a/library/email.generator.po b/library/email.generator.po index d8cfafa58..82dc747f8 100644 --- a/library/email.generator.po +++ b/library/email.generator.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-07 11:22+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,46 +33,46 @@ msgstr "**Código Fonte:** :source:`Lib/email/generator.py`" #: ../../library/email.generator.rst:11 msgid "" -"One of the most common tasks is to generate the flat (serialized) version of" -" the email message represented by a message object structure. You will need" -" to do this if you want to send your message via " -":meth:`smtplib.SMTP.sendmail` or the :mod:`nntplib` module, or print the " -"message on the console. Taking a message object structure and producing a " -"serialized representation is the job of the generator classes." +"One of the most common tasks is to generate the flat (serialized) version of " +"the email message represented by a message object structure. You will need " +"to do this if you want to send your message via :meth:`smtplib.SMTP." +"sendmail` or the :mod:`nntplib` module, or print the message on the " +"console. Taking a message object structure and producing a serialized " +"representation is the job of the generator classes." msgstr "" #: ../../library/email.generator.rst:18 msgid "" "As with the :mod:`email.parser` module, you aren't limited to the " "functionality of the bundled generator; you could write one from scratch " -"yourself. However the bundled generator knows how to generate most email in" -" a standards-compliant way, should handle MIME and non-MIME email messages " -"just fine, and is designed so that the bytes-oriented parsing and generation" -" operations are inverses, assuming the same non-transforming " -":mod:`~email.policy` is used for both. That is, parsing the serialized byte" -" stream via the :class:`~email.parser.BytesParser` class and then " -"regenerating the serialized byte stream using :class:`BytesGenerator` should" -" produce output identical to the input [#]_. (On the other hand, using the " -"generator on an :class:`~email.message.EmailMessage` constructed by program " -"may result in changes to the :class:`~email.message.EmailMessage` object as " -"defaults are filled in.)" +"yourself. However the bundled generator knows how to generate most email in " +"a standards-compliant way, should handle MIME and non-MIME email messages " +"just fine, and is designed so that the bytes-oriented parsing and generation " +"operations are inverses, assuming the same non-transforming :mod:`~email." +"policy` is used for both. That is, parsing the serialized byte stream via " +"the :class:`~email.parser.BytesParser` class and then regenerating the " +"serialized byte stream using :class:`BytesGenerator` should produce output " +"identical to the input [#]_. (On the other hand, using the generator on an :" +"class:`~email.message.EmailMessage` constructed by program may result in " +"changes to the :class:`~email.message.EmailMessage` object as defaults are " +"filled in.)" msgstr "" #: ../../library/email.generator.rst:32 msgid "" "The :class:`Generator` class can be used to flatten a message into a text " "(as opposed to binary) serialized representation, but since Unicode cannot " -"represent binary data directly, the message is of necessity transformed into" -" something that contains only ASCII characters, using the standard email RFC" -" Content Transfer Encoding techniques for encoding email messages for " +"represent binary data directly, the message is of necessity transformed into " +"something that contains only ASCII characters, using the standard email RFC " +"Content Transfer Encoding techniques for encoding email messages for " "transport over channels that are not \"8 bit clean\"." msgstr "" #: ../../library/email.generator.rst:43 msgid "" -"Return a :class:`BytesGenerator` object that will write any message provided" -" to the :meth:`flatten` method, or any surrogateescape encoded text provided" -" to the :meth:`write` method, to the :term:`file-like object` *outfp*. " +"Return a :class:`BytesGenerator` object that will write any message provided " +"to the :meth:`flatten` method, or any surrogateescape encoded text provided " +"to the :meth:`write` method, to the :term:`file-like object` *outfp*. " "*outfp* must support a ``write`` method that accepts binary data." msgstr "" @@ -81,11 +82,11 @@ msgid "" "any line in the body that starts with the exact string ``\"From \"``, that " "is ``From`` followed by a space at the beginning of a line. *mangle_from_* " "defaults to the value of the :attr:`~email.policy.Policy.mangle_from_` " -"setting of the *policy* (which is ``True`` for the " -":data:`~email.policy.compat32` policy and ``False`` for all others). " -"*mangle_from_* is intended for use when messages are stored in unix mbox " -"format (see :mod:`mailbox` and `WHY THE CONTENT-LENGTH FORMAT IS BAD " -"`_)." +"setting of the *policy* (which is ``True`` for the :data:`~email.policy." +"compat32` policy and ``False`` for all others). *mangle_from_* is intended " +"for use when messages are stored in unix mbox format (see :mod:`mailbox` and " +"`WHY THE CONTENT-LENGTH FORMAT IS BAD `_)." msgstr "" #: ../../library/email.generator.rst:58 ../../library/email.generator.rst:159 @@ -98,11 +99,11 @@ msgstr "" #: ../../library/email.generator.rst:63 ../../library/email.generator.rst:164 msgid "" -"If *policy* is specified, use that policy to control message generation. If" -" *policy* is ``None`` (the default), use the policy associated with the " -":class:`~email.message.Message` or :class:`~email.message.EmailMessage` " -"object passed to ``flatten`` to control the message generation. See " -":mod:`email.policy` for details on what *policy* controls." +"If *policy* is specified, use that policy to control message generation. If " +"*policy* is ``None`` (the default), use the policy associated with the :" +"class:`~email.message.Message` or :class:`~email.message.EmailMessage` " +"object passed to ``flatten`` to control the message generation. See :mod:" +"`email.policy` for details on what *policy* controls." msgstr "" #: ../../library/email.generator.rst:71 ../../library/email.generator.rst:170 @@ -118,22 +119,22 @@ msgstr "" #: ../../library/email.generator.rst:79 msgid "" "Print the textual representation of the message object structure rooted at " -"*msg* to the output file specified when the :class:`BytesGenerator` instance" -" was created." +"*msg* to the output file specified when the :class:`BytesGenerator` instance " +"was created." msgstr "" #: ../../library/email.generator.rst:83 msgid "" "If the :mod:`~email.policy` option :attr:`~email.policy.Policy.cte_type` is " -"``8bit`` (the default), copy any headers in the original parsed message that" -" have not been modified to the output with any bytes with the high bit set " -"reproduced as in the original, and preserve the non-ASCII :mailheader" -":`Content-Transfer-Encoding` of any body parts that have them. If " +"``8bit`` (the default), copy any headers in the original parsed message that " +"have not been modified to the output with any bytes with the high bit set " +"reproduced as in the original, and preserve the non-ASCII :mailheader:" +"`Content-Transfer-Encoding` of any body parts that have them. If " "``cte_type`` is ``7bit``, convert the bytes with the high bit set as needed " "using an ASCII-compatible :mailheader:`Content-Transfer-Encoding`. That is, " -"transform parts with non-ASCII :mailheader:`Content-Transfer-Encoding` " -"(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatible " -":mailheader:`Content-Transfer-Encoding`, and encode RFC-invalid non-ASCII " +"transform parts with non-ASCII :mailheader:`Content-Transfer-Encoding` (:" +"mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatible :" +"mailheader:`Content-Transfer-Encoding`, and encode RFC-invalid non-ASCII " "bytes in headers using the MIME ``unknown-8bit`` character set, thus " "rendering them RFC-compliant." msgstr "" @@ -141,8 +142,8 @@ msgstr "" #: ../../library/email.generator.rst:100 ../../library/email.generator.rst:193 msgid "" "If *unixfrom* is ``True``, print the envelope header delimiter used by the " -"Unix mailbox format (see :mod:`mailbox`) before the first of the :rfc:`5322`" -" headers of the root message object. If the root object has no envelope " +"Unix mailbox format (see :mod:`mailbox`) before the first of the :rfc:`5322` " +"headers of the root message object. If the root object has no envelope " "header, craft a standard one. The default is ``False``. Note that for " "subparts, no envelope header is ever printed." msgstr "" @@ -150,8 +151,8 @@ msgstr "" #: ../../library/email.generator.rst:106 ../../library/email.generator.rst:199 msgid "" "If *linesep* is not ``None``, use it as the separator character between all " -"the lines of the flattened message. If *linesep* is ``None`` (the default)," -" use the value specified in the *policy*." +"the lines of the flattened message. If *linesep* is ``None`` (the default), " +"use the value specified in the *policy*." msgstr "" #: ../../library/email.generator.rst:115 @@ -163,27 +164,27 @@ msgstr "" #: ../../library/email.generator.rst:121 msgid "" "Encode *s* using the ``ASCII`` codec and the ``surrogateescape`` error " -"handler, and pass it to the *write* method of the *outfp* passed to the " -":class:`BytesGenerator`'s constructor." +"handler, and pass it to the *write* method of the *outfp* passed to the :" +"class:`BytesGenerator`'s constructor." msgstr "" #: ../../library/email.generator.rst:126 msgid "" -"As a convenience, :class:`~email.message.EmailMessage` provides the methods " -":meth:`~email.message.EmailMessage.as_bytes` and ``bytes(aMessage)`` (a.k.a." -" :meth:`~email.message.EmailMessage.__bytes__`), which simplify the " -"generation of a serialized binary representation of a message object. For " -"more detail, see :mod:`email.message`." +"As a convenience, :class:`~email.message.EmailMessage` provides the methods :" +"meth:`~email.message.EmailMessage.as_bytes` and ``bytes(aMessage)`` (a.k.a. :" +"meth:`~email.message.EmailMessage.__bytes__`), which simplify the generation " +"of a serialized binary representation of a message object. For more detail, " +"see :mod:`email.message`." msgstr "" #: ../../library/email.generator.rst:133 msgid "" "Because strings cannot represent binary data, the :class:`Generator` class " "must convert any binary data in any message it flattens to an ASCII " -"compatible format, by converting them to an ASCII compatible :mailheader" -":`Content-Transfer_Encoding`. Using the terminology of the email RFCs, you " -"can think of this as :class:`Generator` serializing to an I/O stream that is" -" not \"8 bit clean\". In other words, most applications will want to be " +"compatible format, by converting them to an ASCII compatible :mailheader:" +"`Content-Transfer_Encoding`. Using the terminology of the email RFCs, you " +"can think of this as :class:`Generator` serializing to an I/O stream that is " +"not \"8 bit clean\". In other words, most applications will want to be " "using :class:`BytesGenerator`, and not :class:`Generator`." msgstr "" @@ -207,9 +208,9 @@ msgid "" "If the :mod:`~email.policy` option :attr:`~email.policy.Policy.cte_type` is " "``8bit``, generate the message as if the option were set to ``7bit``. (This " "is required because strings cannot represent non-ASCII bytes.) Convert any " -"bytes with the high bit set as needed using an ASCII-compatible :mailheader" -":`Content-Transfer-Encoding`. That is, transform parts with non-ASCII " -":mailheader:`Content-Transfer-Encoding` (:mailheader:`Content-Transfer-" +"bytes with the high bit set as needed using an ASCII-compatible :mailheader:" +"`Content-Transfer-Encoding`. That is, transform parts with non-ASCII :" +"mailheader:`Content-Transfer-Encoding` (:mailheader:`Content-Transfer-" "Encoding: 8bit`) to an ASCII compatible :mailheader:`Content-Transfer-" "Encoding`, and encode RFC-invalid non-ASCII bytes in headers using the MIME " "``unknown-8bit`` character set, thus rendering them RFC-compliant." @@ -229,34 +230,34 @@ msgstr "" #: ../../library/email.generator.rst:218 msgid "" -"Write *s* to the *write* method of the *outfp* passed to the " -":class:`Generator`'s constructor. This provides just enough file-like API " -"for :class:`Generator` instances to be used in the :func:`print` function." +"Write *s* to the *write* method of the *outfp* passed to the :class:" +"`Generator`'s constructor. This provides just enough file-like API for :" +"class:`Generator` instances to be used in the :func:`print` function." msgstr "" #: ../../library/email.generator.rst:224 msgid "" -"As a convenience, :class:`~email.message.EmailMessage` provides the methods " -":meth:`~email.message.EmailMessage.as_string` and ``str(aMessage)`` (a.k.a. " -":meth:`~email.message.EmailMessage.__str__`), which simplify the generation " +"As a convenience, :class:`~email.message.EmailMessage` provides the methods :" +"meth:`~email.message.EmailMessage.as_string` and ``str(aMessage)`` (a.k.a. :" +"meth:`~email.message.EmailMessage.__str__`), which simplify the generation " "of a formatted string representation of a message object. For more detail, " "see :mod:`email.message`." msgstr "" #: ../../library/email.generator.rst:231 msgid "" -"The :mod:`email.generator` module also provides a derived class, " -":class:`DecodedGenerator`, which is like the :class:`Generator` base class, " -"except that non-\\ :mimetype:`text` parts are not serialized, but are " -"instead represented in the output stream by a string derived from a template" -" filled in with information about the part." +"The :mod:`email.generator` module also provides a derived class, :class:" +"`DecodedGenerator`, which is like the :class:`Generator` base class, except " +"that non-\\ :mimetype:`text` parts are not serialized, but are instead " +"represented in the output stream by a string derived from a template filled " +"in with information about the part." msgstr "" #: ../../library/email.generator.rst:240 msgid "" "Act like :class:`Generator`, except that for any subpart of the message " -"passed to :meth:`Generator.flatten`, if the subpart is of main type " -":mimetype:`text`, print the decoded payload of the subpart, and if the main " +"passed to :meth:`Generator.flatten`, if the subpart is of main type :" +"mimetype:`text`, print the decoded payload of the subpart, and if the main " "type is not :mimetype:`text`, instead of printing it fill in the string " "*fmt* using information from the part and print the resulting filled-in " "string." @@ -292,8 +293,7 @@ msgstr "" #: ../../library/email.generator.rst:260 msgid "" -"``encoding`` -- Content transfer encoding of the non-\\ :mimetype:`text` " -"part" +"``encoding`` -- Content transfer encoding of the non-\\ :mimetype:`text` part" msgstr "" #: ../../library/email.generator.rst:262 @@ -301,13 +301,14 @@ msgid "If *fmt* is ``None``, use the following default *fmt*:" msgstr "" #: ../../library/email.generator.rst:264 -msgid "\"[Non-text (%(type)s) part of message omitted, filename %(filename)s]\"" +msgid "" +"\"[Non-text (%(type)s) part of message omitted, filename %(filename)s]\"" msgstr "" #: ../../library/email.generator.rst:266 msgid "" -"Optional *_mangle_from_* and *maxheaderlen* are as with the " -":class:`Generator` base class." +"Optional *_mangle_from_* and *maxheaderlen* are as with the :class:" +"`Generator` base class." msgstr "" #: ../../library/email.generator.rst:271 @@ -318,10 +319,10 @@ msgstr "Notas de rodapé" msgid "" "This statement assumes that you use the appropriate setting for " "``unixfrom``, and that there are no :mod:`policy` settings calling for " -"automatic adjustments (for example, " -":attr:`~email.policy.Policy.refold_source` must be ``none``, which is *not* " -"the default). It is also not 100% true, since if the message does not " -"conform to the RFC standards occasionally information about the exact " -"original text is lost during parsing error recovery. It is a goal to fix " -"these latter edge cases when possible." +"automatic adjustments (for example, :attr:`~email.policy.Policy." +"refold_source` must be ``none``, which is *not* the default). It is also " +"not 100% true, since if the message does not conform to the RFC standards " +"occasionally information about the exact original text is lost during " +"parsing error recovery. It is a goal to fix these latter edge cases when " +"possible." msgstr "" diff --git a/library/email.header.po b/library/email.header.po index 45898d831..c1a26b403 100644 --- a/library/email.header.po +++ b/library/email.header.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,8 +52,8 @@ msgid "" ":rfc:`2822` is the base standard that describes the format of email " "messages. It derives from the older :rfc:`822` standard which came into " "widespread use at a time when most email was composed of ASCII characters " -"only. :rfc:`2822` is a specification written assuming email contains only " -"7-bit ASCII characters." +"only. :rfc:`2822` is a specification written assuming email contains only 7-" +"bit ASCII characters." msgstr "" #: ../../library/email.header.rst:24 @@ -61,20 +63,19 @@ msgid "" "used in email messages. The base standard still requires email messages to " "be transferred using only 7-bit ASCII characters, so a slew of RFCs have " "been written describing how to encode email containing non-ASCII characters " -"into :rfc:`2822`\\ -compliant format. These RFCs include :rfc:`2045`, " -":rfc:`2046`, :rfc:`2047`, and :rfc:`2231`. The :mod:`email` package supports" -" these standards in its :mod:`email.header` and :mod:`email.charset` " -"modules." +"into :rfc:`2822`\\ -compliant format. These RFCs include :rfc:`2045`, :rfc:" +"`2046`, :rfc:`2047`, and :rfc:`2231`. The :mod:`email` package supports " +"these standards in its :mod:`email.header` and :mod:`email.charset` modules." msgstr "" #: ../../library/email.header.rst:33 msgid "" "If you want to include non-ASCII characters in your email headers, say in " -"the :mailheader:`Subject` or :mailheader:`To` fields, you should use the " -":class:`Header` class and assign the field in the " -":class:`~email.message.Message` object to an instance of :class:`Header` " -"instead of using a string for the header value. Import the :class:`Header` " -"class from the :mod:`email.header` module. For example::" +"the :mailheader:`Subject` or :mailheader:`To` fields, you should use the :" +"class:`Header` class and assign the field in the :class:`~email.message." +"Message` object to an instance of :class:`Header` instead of using a string " +"for the header value. Import the :class:`Header` class from the :mod:`email." +"header` module. For example::" msgstr "" #: ../../library/email.header.rst:50 @@ -82,8 +83,8 @@ msgid "" "Notice here how we wanted the :mailheader:`Subject` field to contain a non-" "ASCII character? We did this by creating a :class:`Header` instance and " "passing in the character set that the byte string was encoded in. When the " -"subsequent :class:`~email.message.Message` instance was flattened, the " -":mailheader:`Subject` field was properly :rfc:`2047` encoded. MIME-aware " +"subsequent :class:`~email.message.Message` instance was flattened, the :" +"mailheader:`Subject` field was properly :rfc:`2047` encoded. MIME-aware " "mail readers would show this header using the embedded ISO-8859-1 character." msgstr "" @@ -100,9 +101,9 @@ msgstr "" #: ../../library/email.header.rst:65 msgid "" "Optional *s* is the initial header value. If ``None`` (the default), the " -"initial header value is not set. You can later append to the header with " -":meth:`append` method calls. *s* may be an instance of :class:`bytes` or " -":class:`str`, but see the :meth:`append` documentation for semantics." +"initial header value is not set. You can later append to the header with :" +"meth:`append` method calls. *s* may be an instance of :class:`bytes` or :" +"class:`str`, but see the :meth:`append` documentation for semantics." msgstr "" #: ../../library/email.header.rst:70 @@ -118,11 +119,11 @@ msgstr "" #: ../../library/email.header.rst:77 msgid "" "The maximum line length can be specified explicitly via *maxlinelen*. For " -"splitting the first line to a shorter value (to account for the field header" -" which isn't included in *s*, e.g. :mailheader:`Subject`) pass in the name " -"of the field in *header_name*. The default *maxlinelen* is 76, and the " -"default value for *header_name* is ``None``, meaning it is not taken into " -"account for the first line of a long, split header." +"splitting the first line to a shorter value (to account for the field header " +"which isn't included in *s*, e.g. :mailheader:`Subject`) pass in the name of " +"the field in *header_name*. The default *maxlinelen* is 76, and the default " +"value for *header_name* is ``None``, meaning it is not taken into account " +"for the first line of a long, split header." msgstr "" #: ../../library/email.header.rst:84 @@ -146,9 +147,9 @@ msgstr "" msgid "" "Optional *charset*, if given, should be a :class:`~email.charset.Charset` " "instance (see :mod:`email.charset`) or the name of a character set, which " -"will be converted to a :class:`~email.charset.Charset` instance. A value of" -" ``None`` (the default) means that the *charset* given in the constructor is" -" used." +"will be converted to a :class:`~email.charset.Charset` instance. A value of " +"``None`` (the default) means that the *charset* given in the constructor is " +"used." msgstr "" #: ../../library/email.header.rst:102 @@ -167,36 +168,36 @@ msgstr "" #: ../../library/email.header.rst:110 msgid "" -"In either case, when producing an :rfc:`2822`\\ -compliant header using " -":rfc:`2047` rules, the string will be encoded using the output codec of the " +"In either case, when producing an :rfc:`2822`\\ -compliant header using :rfc:" +"`2047` rules, the string will be encoded using the output codec of the " "charset. If the string cannot be encoded using the output codec, a " "UnicodeError will be raised." msgstr "" #: ../../library/email.header.rst:115 msgid "" -"Optional *errors* is passed as the errors argument to the decode call if *s*" -" is a byte string." +"Optional *errors* is passed as the errors argument to the decode call if *s* " +"is a byte string." msgstr "" #: ../../library/email.header.rst:121 msgid "" -"Encode a message header into an RFC-compliant format, possibly wrapping long" -" lines and encapsulating non-ASCII parts in base64 or quoted-printable " +"Encode a message header into an RFC-compliant format, possibly wrapping long " +"lines and encapsulating non-ASCII parts in base64 or quoted-printable " "encodings." msgstr "" #: ../../library/email.header.rst:125 msgid "" "Optional *splitchars* is a string containing characters which should be " -"given extra weight by the splitting algorithm during normal header wrapping." -" This is in very rough support of :RFC:`2822`\\'s 'higher level syntactic " -"breaks': split points preceded by a splitchar are preferred during line " -"splitting, with the characters preferred in the order in which they appear " -"in the string. Space and tab may be included in the string to indicate " -"whether preference should be given to one over the other as a split point " -"when other split chars do not appear in the line being split. Splitchars " -"does not affect :RFC:`2047` encoded lines." +"given extra weight by the splitting algorithm during normal header " +"wrapping. This is in very rough support of :RFC:`2822`\\'s 'higher level " +"syntactic breaks': split points preceded by a splitchar are preferred " +"during line splitting, with the characters preferred in the order in which " +"they appear in the string. Space and tab may be included in the string to " +"indicate whether preference should be given to one over the other as a split " +"point when other split chars do not appear in the line being split. " +"Splitchars does not affect :RFC:`2047` encoded lines." msgstr "" #: ../../library/email.header.rst:135 @@ -208,9 +209,9 @@ msgstr "" #: ../../library/email.header.rst:138 msgid "" "*linesep* specifies the characters used to separate the lines of the folded " -"header. It defaults to the most useful value for Python application code " -"(``\\n``), but ``\\r\\n`` can be specified in order to produce headers with " -"RFC-compliant line separators." +"header. It defaults to the most useful value for Python application code (``" +"\\n``), but ``\\r\\n`` can be specified in order to produce headers with RFC-" +"compliant line separators." msgstr "" #: ../../library/email.header.rst:143 @@ -238,8 +239,7 @@ msgstr "" #: ../../library/email.header.rst:164 msgid "" -"This method allows you to compare two :class:`Header` instances for " -"equality." +"This method allows you to compare two :class:`Header` instances for equality." msgstr "" #: ../../library/email.header.rst:170 @@ -274,8 +274,8 @@ msgstr "Here's an example::" #: ../../library/email.header.rst:195 msgid "" -"Create a :class:`Header` instance from a sequence of pairs as returned by " -":func:`decode_header`." +"Create a :class:`Header` instance from a sequence of pairs as returned by :" +"func:`decode_header`." msgstr "" #: ../../library/email.header.rst:198 @@ -287,7 +287,7 @@ msgstr "" #: ../../library/email.header.rst:202 msgid "" -"This function takes one of those sequence of pairs and returns a " -":class:`Header` instance. Optional *maxlinelen*, *header_name*, and " +"This function takes one of those sequence of pairs and returns a :class:" +"`Header` instance. Optional *maxlinelen*, *header_name*, and " "*continuation_ws* are as in the :class:`Header` constructor." msgstr "" diff --git a/library/email.headerregistry.po b/library/email.headerregistry.po index 5befa686f..0485fda9b 100644 --- a/library/email.headerregistry.po +++ b/library/email.headerregistry.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:10+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,43 +39,42 @@ msgstr "" #: ../../library/email.headerregistry.rst:16 msgid "" "Headers are represented by customized subclasses of :class:`str`. The " -"particular class used to represent a given header is determined by the " -":attr:`~email.policy.EmailPolicy.header_factory` of the :mod:`~email.policy`" -" in effect when the headers are created. This section documents the " -"particular ``header_factory`` implemented by the email package for handling " -":RFC:`5322` compliant email messages, which not only provides customized " -"header objects for various header types, but also provides an extension " -"mechanism for applications to add their own custom header types." +"particular class used to represent a given header is determined by the :attr:" +"`~email.policy.EmailPolicy.header_factory` of the :mod:`~email.policy` in " +"effect when the headers are created. This section documents the particular " +"``header_factory`` implemented by the email package for handling :RFC:`5322` " +"compliant email messages, which not only provides customized header objects " +"for various header types, but also provides an extension mechanism for " +"applications to add their own custom header types." msgstr "" #: ../../library/email.headerregistry.rst:25 msgid "" -"When using any of the policy objects derived from " -":data:`~email.policy.EmailPolicy`, all headers are produced by " -":class:`.HeaderRegistry` and have :class:`.BaseHeader` as their last base " -"class. Each header class has an additional base class that is determined by" -" the type of the header. For example, many headers have the class " -":class:`.UnstructuredHeader` as their other base class. The specialized " -"second class for a header is determined by the name of the header, using a " -"lookup table stored in the :class:`.HeaderRegistry`. All of this is managed" -" transparently for the typical application program, but interfaces are " -"provided for modifying the default behavior for use by more complex " -"applications." +"When using any of the policy objects derived from :data:`~email.policy." +"EmailPolicy`, all headers are produced by :class:`.HeaderRegistry` and have :" +"class:`.BaseHeader` as their last base class. Each header class has an " +"additional base class that is determined by the type of the header. For " +"example, many headers have the class :class:`.UnstructuredHeader` as their " +"other base class. The specialized second class for a header is determined " +"by the name of the header, using a lookup table stored in the :class:`." +"HeaderRegistry`. All of this is managed transparently for the typical " +"application program, but interfaces are provided for modifying the default " +"behavior for use by more complex applications." msgstr "" #: ../../library/email.headerregistry.rst:36 msgid "" "The sections below first document the header base classes and their " -"attributes, followed by the API for modifying the behavior of " -":class:`.HeaderRegistry`, and finally the support classes used to represent " -"the data parsed from structured headers." +"attributes, followed by the API for modifying the behavior of :class:`." +"HeaderRegistry`, and finally the support classes used to represent the data " +"parsed from structured headers." msgstr "" #: ../../library/email.headerregistry.rst:44 msgid "" -"*name* and *value* are passed to ``BaseHeader`` from the " -":attr:`~email.policy.EmailPolicy.header_factory` call. The string value of " -"any header object is the *value* fully decoded to unicode." +"*name* and *value* are passed to ``BaseHeader`` from the :attr:`~email." +"policy.EmailPolicy.header_factory` call. The string value of any header " +"object is the *value* fully decoded to unicode." msgstr "" #: ../../library/email.headerregistry.rst:48 @@ -83,9 +84,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:53 msgid "" "The name of the header (the portion of the field before the ':'). This is " -"exactly the value passed in the " -":attr:`~email.policy.EmailPolicy.header_factory` call for *name*; that is, " -"case is preserved." +"exactly the value passed in the :attr:`~email.policy.EmailPolicy." +"header_factory` call for *name*; that is, case is preserved." msgstr "" #: ../../library/email.headerregistry.rst:61 @@ -98,8 +98,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:69 msgid "" -"The maximum number of headers of this type that can have the same ``name``." -" A value of ``None`` means unlimited. The ``BaseHeader`` value for this " +"The maximum number of headers of this type that can have the same ``name``. " +"A value of ``None`` means unlimited. The ``BaseHeader`` value for this " "attribute is ``None``; it is expected that specialized header classes will " "override this value as needed." msgstr "" @@ -114,11 +114,11 @@ msgstr "" #: ../../library/email.headerregistry.rst:80 msgid "" "Return a string containing :attr:`~email.policy.Policy.linesep` characters " -"as required to correctly fold the header according to *policy*. A " -":attr:`~email.policy.Policy.cte_type` of ``8bit`` will be treated as if it " -"were ``7bit``, since headers may not contain arbitrary binary data. If " -":attr:`~email.policy.EmailPolicy.utf8` is ``False``, non-ASCII data will be " -":rfc:`2047` encoded." +"as required to correctly fold the header according to *policy*. A :attr:" +"`~email.policy.Policy.cte_type` of ``8bit`` will be treated as if it were " +"``7bit``, since headers may not contain arbitrary binary data. If :attr:" +"`~email.policy.EmailPolicy.utf8` is ``False``, non-ASCII data will be :rfc:" +"`2047` encoded." msgstr "" #: ../../library/email.headerregistry.rst:88 @@ -145,8 +145,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:105 msgid "" -"``BaseHeader``'s ``__new__`` then creates the header instance, and calls its" -" ``init`` method. The specialized class only needs to provide an ``init`` " +"``BaseHeader``'s ``__new__`` then creates the header instance, and calls its " +"``init`` method. The specialized class only needs to provide an ``init`` " "method if it wishes to set additional attributes beyond those provided by " "``BaseHeader`` itself. Such an ``init`` method should look like this::" msgstr "" @@ -160,8 +160,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:121 msgid "" -"An \"unstructured\" header is the default type of header in :rfc:`5322`. Any" -" header that does not have a specified syntax is treated as unstructured. " +"An \"unstructured\" header is the default type of header in :rfc:`5322`. Any " +"header that does not have a specified syntax is treated as unstructured. " "The classic example of an unstructured header is the :mailheader:`Subject` " "header." msgstr "" @@ -185,10 +185,10 @@ msgstr "" #: ../../library/email.headerregistry.rst:141 msgid "" -":rfc:`5322` specifies a very specific format for dates within email headers." -" The ``DateHeader`` parser recognizes that date format, as well as " -"recognizing a number of variant forms that are sometimes found \"in the " -"wild\"." +":rfc:`5322` specifies a very specific format for dates within email headers. " +"The ``DateHeader`` parser recognizes that date format, as well as " +"recognizing a number of variant forms that are sometimes found \"in the wild" +"\"." msgstr "" #: ../../library/email.headerregistry.rst:146 @@ -202,11 +202,10 @@ msgid "" "another, this attribute will contain a :class:`~datetime.datetime` instance " "representing that date. If the timezone of the input date is specified as " "``-0000`` (indicating it is in UTC but contains no information about the " -"source timezone), then :attr:`.datetime` will be a naive " -":class:`~datetime.datetime`. If a specific timezone offset is found " -"(including `+0000`), then :attr:`.datetime` will contain an aware " -"``datetime`` that uses :class:`datetime.timezone` to record the timezone " -"offset." +"source timezone), then :attr:`.datetime` will be a naive :class:`~datetime." +"datetime`. If a specific timezone offset is found (including `+0000`), " +"then :attr:`.datetime` will contain an aware ``datetime`` that uses :class:" +"`datetime.timezone` to record the timezone offset." msgstr "" #: ../../library/email.headerregistry.rst:160 @@ -226,8 +225,8 @@ msgstr "" msgid "" "Because this is a naive ``datetime`` it will be interpreted as a UTC " "timestamp, and the resulting value will have a timezone of ``-0000``. Much " -"more useful is to use the :func:`~email.utils.localtime` function from the " -":mod:`~email.utils` module::" +"more useful is to use the :func:`~email.utils.localtime` function from the :" +"mod:`~email.utils` module::" msgstr "" #: ../../library/email.headerregistry.rst:178 @@ -245,9 +244,9 @@ msgstr "" #: ../../library/email.headerregistry.rst:193 msgid "" "A tuple of :class:`.Group` objects encoding the addresses and groups found " -"in the header value. Addresses that are not part of a group are represented" -" in this list as single-address ``Groups`` whose " -":attr:`~.Group.display_name` is ``None``." +"in the header value. Addresses that are not part of a group are represented " +"in this list as single-address ``Groups`` whose :attr:`~.Group.display_name` " +"is ``None``." msgstr "" #: ../../library/email.headerregistry.rst:201 @@ -255,17 +254,16 @@ msgid "" "A tuple of :class:`.Address` objects encoding all of the individual " "addresses from the header value. If the header value contains any groups, " "the individual addresses from the group are included in the list at the " -"point where the group occurs in the value (that is, the list of addresses is" -" \"flattened\" into a one dimensional list)." +"point where the group occurs in the value (that is, the list of addresses is " +"\"flattened\" into a one dimensional list)." msgstr "" #: ../../library/email.headerregistry.rst:207 msgid "" "The ``decoded`` value of the header will have all encoded words decoded to " "unicode. :class:`~encodings.idna` encoded domain names are also decoded to " -"unicode. The ``decoded`` value is set by :attr:`~str.join`\\ ing the " -":class:`str` value of the elements of the ``groups`` attribute with ``', " -"'``." +"unicode. The ``decoded`` value is set by :attr:`~str.join`\\ ing the :class:" +"`str` value of the elements of the ``groups`` attribute with ``', '``." msgstr "" #: ../../library/email.headerregistry.rst:213 @@ -301,8 +299,8 @@ msgstr "" msgid "" "There is really only one valid value for the :mailheader:`MIME-Version` " "header, and that is ``1.0``. For future proofing, this header class " -"supports other valid version numbers. If a version number has a valid value" -" per :rfc:`2045`, then the header object will have non-``None`` values for " +"supports other valid version numbers. If a version number has a valid value " +"per :rfc:`2045`, then the header object will have non-``None`` values for " "the following attributes:" msgstr "" @@ -321,8 +319,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:263 msgid "" -"MIME headers all start with the prefix 'Content-'. Each specific header has" -" a certain value, described under the class for that header. Some can also " +"MIME headers all start with the prefix 'Content-'. Each specific header has " +"a certain value, described under the class for that header. Some can also " "take a list of supplemental parameters, which have a common format. This " "class serves as a base for all the MIME headers that take parameters." msgstr "" @@ -333,8 +331,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:275 msgid "" -"A :class:`ParameterizedMIMEHeader` class that handles the :mailheader" -":`Content-Type` header." +"A :class:`ParameterizedMIMEHeader` class that handles the :mailheader:" +"`Content-Type` header." msgstr "" #: ../../library/email.headerregistry.rst:280 @@ -343,9 +341,11 @@ msgstr "" #: ../../library/email.headerregistry.rst:289 msgid "" -"A :class:`ParameterizedMIMEHeader` class that handles the :mailheader" -":`Content-Disposition` header." +"A :class:`ParameterizedMIMEHeader` class that handles the :mailheader:" +"`Content-Disposition` header." msgstr "" +"Uma classe :class:`ParameterizedMIMEHeader` que lida com o cabeçalho :" +"mailheader:`Content-Disposition`." #: ../../library/email.headerregistry.rst:294 msgid "``inline`` and ``attachment`` are the only valid values in common use." @@ -492,8 +492,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:363 msgid "" "The following classes are the classes used to represent data parsed from " -"structured headers and can, in general, be used by an application program to" -" construct structured values to assign to specific headers." +"structured headers and can, in general, be used by an application program to " +"construct structured values to assign to specific headers." msgstr "" #: ../../library/email.headerregistry.rst:370 @@ -508,8 +508,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:379 msgid "" -"where each part must conform to specific syntax rules spelled out in " -":rfc:`5322`." +"where each part must conform to specific syntax rules spelled out in :rfc:" +"`5322`." msgstr "" #: ../../library/email.headerregistry.rst:382 @@ -518,15 +518,15 @@ msgid "" "*domain*, in which case *username* and *domain* will be parsed from the " "*addr_spec*. An *addr_spec* must be a properly RFC quoted string; if it is " "not ``Address`` will raise an error. Unicode characters are allowed and " -"will be property encoded when serialized. However, per the RFCs, unicode is" -" *not* allowed in the username portion of the address." +"will be property encoded when serialized. However, per the RFCs, unicode is " +"*not* allowed in the username portion of the address." msgstr "" #: ../../library/email.headerregistry.rst:391 msgid "" "The display name portion of the address, if any, with all quoting removed. " -"If the address does not have a display name, this attribute will be an empty" -" string." +"If the address does not have a display name, this attribute will be an empty " +"string." msgstr "" #: ../../library/email.headerregistry.rst:397 @@ -540,14 +540,13 @@ msgstr "" #: ../../library/email.headerregistry.rst:405 msgid "" "The ``username@domain`` portion of the address, correctly quoted for use as " -"a bare address (the second form shown above). This attribute is not " -"mutable." +"a bare address (the second form shown above). This attribute is not mutable." msgstr "" #: ../../library/email.headerregistry.rst:411 msgid "" -"The ``str`` value of the object is the address quoted according to " -":rfc:`5322` rules, but with no Content Transfer Encoding of any non-ASCII " +"The ``str`` value of the object is the address quoted according to :rfc:" +"`5322` rules, but with no Content Transfer Encoding of any non-ASCII " "characters." msgstr "" @@ -566,8 +565,8 @@ msgstr "" #: ../../library/email.headerregistry.rst:427 msgid "" -"As a convenience for processing lists of addresses that consist of a mixture" -" of groups and single addresses, a ``Group`` may also be used to represent " +"As a convenience for processing lists of addresses that consist of a mixture " +"of groups and single addresses, a ``Group`` may also be used to represent " "single addresses that are not part of a group by setting *display_name* to " "``None`` and providing a list of the single address as *addresses*." msgstr "" @@ -600,6 +599,5 @@ msgstr "Notas de rodapé" #: ../../library/email.headerregistry.rst:454 msgid "" -"Originally added in 3.3 as a :term:`provisional module `" +"Originally added in 3.3 as a :term:`provisional module `" msgstr "" diff --git a/library/email.iterators.po b/library/email.iterators.po index d9bfee2a1..4b75d52a1 100644 --- a/library/email.iterators.po +++ b/library/email.iterators.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,10 +33,10 @@ msgstr "**Código Fonte:** :source:`Lib/email/iterators.py`" #: ../../library/email.iterators.rst:11 msgid "" -"Iterating over a message object tree is fairly easy with the " -":meth:`Message.walk ` method. The " -":mod:`email.iterators` module provides some useful higher level iterations " -"over message object trees." +"Iterating over a message object tree is fairly easy with the :meth:`Message." +"walk ` method. The :mod:`email.iterators` " +"module provides some useful higher level iterations over message object " +"trees." msgstr "" #: ../../library/email.iterators.rst:19 @@ -43,14 +45,14 @@ msgid "" "the string payloads line-by-line. It skips over all the subpart headers, " "and it skips over any subpart with a payload that isn't a Python string. " "This is somewhat equivalent to reading the flat text representation of the " -"message from a file using :meth:`~io.TextIOBase.readline`, skipping over all" -" the intervening headers." +"message from a file using :meth:`~io.TextIOBase.readline`, skipping over all " +"the intervening headers." msgstr "" #: ../../library/email.iterators.rst:26 msgid "" -"Optional *decode* is passed through to :meth:`Message.get_payload " -"`." +"Optional *decode* is passed through to :meth:`Message.get_payload `." msgstr "" #: ../../library/email.iterators.rst:32 @@ -61,8 +63,8 @@ msgstr "" #: ../../library/email.iterators.rst:35 msgid "" -"Note that *subtype* is optional; if omitted, then subpart MIME type matching" -" is done only with the main type. *maintype* is optional too; it defaults " +"Note that *subtype* is optional; if omitted, then subpart MIME type matching " +"is done only with the main type. *maintype* is optional too; it defaults " "to :mimetype:`text`." msgstr "" @@ -74,14 +76,14 @@ msgstr "" #: ../../library/email.iterators.rst:43 msgid "" -"The following function has been added as a useful debugging tool. It should" -" *not* be considered part of the supported public interface for the package." +"The following function has been added as a useful debugging tool. It should " +"*not* be considered part of the supported public interface for the package." msgstr "" #: ../../library/email.iterators.rst:48 msgid "" -"Prints an indented representation of the content types of the message object" -" structure. For example:" +"Prints an indented representation of the content types of the message object " +"structure. For example:" msgstr "" #: ../../library/email.iterators.rst:81 diff --git a/library/email.message.po b/library/email.message.po index c4bca2906..3c77ad7c1 100644 --- a/library/email.message.po +++ b/library/email.message.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,23 +48,23 @@ msgstr "" #: ../../library/email.message.rst:22 msgid "" "An email message consists of *headers* and a *payload* (which is also " -"referred to as the *content*). Headers are :rfc:`5322` or :rfc:`6532` style" -" field names and values, where the field name and value are separated by a " +"referred to as the *content*). Headers are :rfc:`5322` or :rfc:`6532` style " +"field names and values, where the field name and value are separated by a " "colon. The colon is not part of either the field name or the field value. " "The payload may be a simple text message, or a binary object, or a " "structured sequence of sub-messages each with their own set of headers and " "their own payload. The latter type of payload is indicated by the message " -"having a MIME type such as :mimetype:`multipart/\\*` or " -":mimetype:`message/rfc822`." +"having a MIME type such as :mimetype:`multipart/\\*` or :mimetype:`message/" +"rfc822`." msgstr "" #: ../../library/email.message.rst:31 msgid "" "The conceptual model provided by an :class:`EmailMessage` object is that of " "an ordered dictionary of headers coupled with a *payload* that represents " -"the :rfc:`5322` body of the message, which might be a list of " -"sub-``EmailMessage`` objects. In addition to the normal dictionary methods " -"for accessing the header names and values, there are methods for accessing " +"the :rfc:`5322` body of the message, which might be a list of sub-" +"``EmailMessage`` objects. In addition to the normal dictionary methods for " +"accessing the header names and values, there are methods for accessing " "specialized information from the headers (for example the MIME content " "type), for operating on the payload, for generating a serialized version of " "the message, and for recursively walking over the object tree." @@ -70,45 +72,45 @@ msgstr "" #: ../../library/email.message.rst:40 msgid "" -"The :class:`EmailMessage` dictionary-like interface is indexed by the header" -" names, which must be ASCII values. The values of the dictionary are " -"strings with some extra methods. Headers are stored and returned in case-" -"preserving form, but field names are matched case-insensitively. Unlike a " -"real dict, there is an ordering to the keys, and there can be duplicate " -"keys. Additional methods are provided for working with headers that have " -"duplicate keys." +"The :class:`EmailMessage` dictionary-like interface is indexed by the header " +"names, which must be ASCII values. The values of the dictionary are strings " +"with some extra methods. Headers are stored and returned in case-preserving " +"form, but field names are matched case-insensitively. Unlike a real dict, " +"there is an ordering to the keys, and there can be duplicate keys. " +"Additional methods are provided for working with headers that have duplicate " +"keys." msgstr "" #: ../../library/email.message.rst:47 msgid "" "The *payload* is either a string or bytes object, in the case of simple " "message objects, or a list of :class:`EmailMessage` objects, for MIME " -"container documents such as :mimetype:`multipart/\\*` and " -":mimetype:`message/rfc822` message objects." +"container documents such as :mimetype:`multipart/\\*` and :mimetype:`message/" +"rfc822` message objects." msgstr "" #: ../../library/email.message.rst:55 msgid "" "If *policy* is specified use the rules it specifies to update and serialize " -"the representation of the message. If *policy* is not set, use the " -":class:`~email.policy.default` policy, which follows the rules of the email " -"RFCs except for line endings (instead of the RFC mandated ``\\r\\n``, it " -"uses the Python standard ``\\n`` line endings). For more information see " -"the :mod:`~email.policy` documentation." +"the representation of the message. If *policy* is not set, use the :class:" +"`~email.policy.default` policy, which follows the rules of the email RFCs " +"except for line endings (instead of the RFC mandated ``\\r\\n``, it uses the " +"Python standard ``\\n`` line endings). For more information see the :mod:" +"`~email.policy` documentation." msgstr "" #: ../../library/email.message.rst:64 msgid "" "Return the entire message flattened as a string. When optional *unixfrom* " -"is true, the envelope header is included in the returned string. *unixfrom*" -" defaults to ``False``. For backward compatibility with the base " -":class:`~email.message.Message` class *maxheaderlen* is accepted, but " -"defaults to ``None``, which means that by default the line length is " -"controlled by the :attr:`~email.policy.EmailPolicy.max_line_length` of the " -"policy. The *policy* argument may be used to override the default policy " -"obtained from the message instance. This can be used to control some of the" -" formatting produced by the method, since the specified *policy* will be " -"passed to the :class:`~email.generator.Generator`." +"is true, the envelope header is included in the returned string. *unixfrom* " +"defaults to ``False``. For backward compatibility with the base :class:" +"`~email.message.Message` class *maxheaderlen* is accepted, but defaults to " +"``None``, which means that by default the line length is controlled by the :" +"attr:`~email.policy.EmailPolicy.max_line_length` of the policy. The " +"*policy* argument may be used to override the default policy obtained from " +"the message instance. This can be used to control some of the formatting " +"produced by the method, since the specified *policy* will be passed to the :" +"class:`~email.generator.Generator`." msgstr "" #: ../../library/email.message.rst:76 ../../library/email.message.rst:114 @@ -123,9 +125,9 @@ msgid "" "Note that this method is provided as a convenience and may not be the most " "useful way to serialize messages in your application, especially if you are " "dealing with multiple messages. See :class:`email.generator.Generator` for " -"a more flexible API for serializing messages. Note also that this method is" -" restricted to producing messages serialized as \"7 bit clean\" when " -":attr:`~email.policy.EmailPolicy.utf8` is ``False``, which is the default." +"a more flexible API for serializing messages. Note also that this method is " +"restricted to producing messages serialized as \"7 bit clean\" when :attr:" +"`~email.policy.EmailPolicy.utf8` is ``False``, which is the default." msgstr "" #: ../../library/email.message.rst:88 @@ -144,46 +146,46 @@ msgstr "" #: ../../library/email.message.rst:99 msgid "" -"the method was changed to use ``utf8=True``, thus producing an " -":rfc:`6531`-like message representation, instead of being a direct alias for" -" :meth:`as_string`." +"the method was changed to use ``utf8=True``, thus producing an :rfc:`6531`-" +"like message representation, instead of being a direct alias for :meth:" +"`as_string`." msgstr "" #: ../../library/email.message.rst:106 msgid "" "Return the entire message flattened as a bytes object. When optional " -"*unixfrom* is true, the envelope header is included in the returned string." -" *unixfrom* defaults to ``False``. The *policy* argument may be used to " +"*unixfrom* is true, the envelope header is included in the returned string. " +"*unixfrom* defaults to ``False``. The *policy* argument may be used to " "override the default policy obtained from the message instance. This can be " "used to control some of the formatting produced by the method, since the " -"specified *policy* will be passed to the " -":class:`~email.generator.BytesGenerator`." +"specified *policy* will be passed to the :class:`~email.generator." +"BytesGenerator`." msgstr "" #: ../../library/email.message.rst:118 msgid "" "Note that this method is provided as a convenience and may not be the most " "useful way to serialize messages in your application, especially if you are " -"dealing with multiple messages. See :class:`email.generator.BytesGenerator`" -" for a more flexible API for serializing messages." +"dealing with multiple messages. See :class:`email.generator.BytesGenerator` " +"for a more flexible API for serializing messages." msgstr "" #: ../../library/email.message.rst:127 msgid "" -"Equivalent to :meth:`.as_bytes()`. Allows ``bytes(msg)`` to produce a bytes" -" object containing the serialized message." +"Equivalent to :meth:`.as_bytes()`. Allows ``bytes(msg)`` to produce a bytes " +"object containing the serialized message." msgstr "" #: ../../library/email.message.rst:133 msgid "" -"Return ``True`` if the message's payload is a list of sub-\\ " -":class:`EmailMessage` objects, otherwise return ``False``. When " -":meth:`is_multipart` returns ``False``, the payload should be a string " -"object (which might be a CTE encoded binary payload). Note that " -":meth:`is_multipart` returning ``True`` does not necessarily mean that " -"\"msg.get_content_maintype() == 'multipart'\" will return the ``True``. For " -"example, ``is_multipart`` will return ``True`` when the " -":class:`EmailMessage` is of type ``message/rfc822``." +"Return ``True`` if the message's payload is a list of sub-\\ :class:" +"`EmailMessage` objects, otherwise return ``False``. When :meth:" +"`is_multipart` returns ``False``, the payload should be a string object " +"(which might be a CTE encoded binary payload). Note that :meth:" +"`is_multipart` returning ``True`` does not necessarily mean that \"msg." +"get_content_maintype() == 'multipart'\" will return the ``True``. For " +"example, ``is_multipart`` will return ``True`` when the :class:" +"`EmailMessage` is of type ``message/rfc822``." msgstr "" #: ../../library/email.message.rst:145 @@ -200,22 +202,22 @@ msgstr "" #: ../../library/email.message.rst:156 msgid "" -"The following methods implement the mapping-like interface for accessing the" -" message's headers. Note that there are some semantic differences between " +"The following methods implement the mapping-like interface for accessing the " +"message's headers. Note that there are some semantic differences between " "these methods and a normal mapping (i.e. dictionary) interface. For " "example, in a dictionary there are no duplicate keys, but here there may be " "duplicate message headers. Also, in dictionaries there is no guaranteed " "order to the keys returned by :meth:`keys`, but in an :class:`EmailMessage` " "object, headers are always returned in the order they appeared in the " "original message, or in which they were added to the message later. Any " -"header deleted and then re-added is always appended to the end of the header" -" list." +"header deleted and then re-added is always appended to the end of the header " +"list." msgstr "" #: ../../library/email.message.rst:167 msgid "" -"These semantic differences are intentional and are biased toward convenience" -" in the most common use cases." +"These semantic differences are intentional and are biased toward convenience " +"in the most common use cases." msgstr "" #: ../../library/email.message.rst:170 @@ -230,24 +232,24 @@ msgstr "" #: ../../library/email.message.rst:181 msgid "" -"Return true if the message object has a field named *name*. Matching is done" -" without regard to case and *name* does not include the trailing colon. " +"Return ``True`` if the message object has a field named *name*. Matching is " +"done without regard to case and *name* does not include the trailing colon. " "Used for the ``in`` operator. For example::" msgstr "" #: ../../library/email.message.rst:191 msgid "" "Return the value of the named header field. *name* does not include the " -"colon field separator. If the header is missing, ``None`` is returned; a " -":exc:`KeyError` is never raised." +"colon field separator. If the header is missing, ``None`` is returned; a :" +"exc:`KeyError` is never raised." msgstr "" #: ../../library/email.message.rst:195 msgid "" "Note that if the named field appears more than once in the message's " -"headers, exactly which of those field values will be returned is undefined." -" Use the :meth:`get_all` method to get the values of all the extant headers" -" named *name*." +"headers, exactly which of those field values will be returned is undefined. " +"Use the :meth:`get_all` method to get the values of all the extant headers " +"named *name*." msgstr "" #: ../../library/email.message.rst:200 @@ -266,8 +268,7 @@ msgstr "" msgid "" "Note that this does *not* overwrite or delete any existing header with the " "same name. If you want to ensure that the new header is the only one " -"present in the message with field name *name*, delete the field first, " -"e.g.::" +"present in the message with field name *name*, delete the field first, e.g.::" msgstr "" #: ../../library/email.message.rst:216 @@ -303,9 +304,9 @@ msgstr "" #: ../../library/email.message.rst:249 msgid "" -"Return the value of the named header field. This is identical to " -":meth:`__getitem__` except that optional *failobj* is returned if the named " -"header is missing (*failobj* defaults to ``None``)." +"Return the value of the named header field. This is identical to :meth:" +"`__getitem__` except that optional *failobj* is returned if the named header " +"is missing (*failobj* defaults to ``None``)." msgstr "" #: ../../library/email.message.rst:254 @@ -323,14 +324,14 @@ msgstr "" msgid "" "Extended header setting. This method is similar to :meth:`__setitem__` " "except that additional header parameters can be provided as keyword " -"arguments. *_name* is the header field to add and *_value* is the *primary*" -" value for the header." +"arguments. *_name* is the header field to add and *_value* is the *primary* " +"value for the header." msgstr "" #: ../../library/email.message.rst:271 msgid "" -"For each item in the keyword argument dictionary *_params*, the key is taken" -" as the parameter name, with underscores converted to dashes (since dashes " +"For each item in the keyword argument dictionary *_params*, the key is taken " +"as the parameter name, with underscores converted to dashes (since dashes " "are illegal in Python identifiers). Normally, the parameter will be added " "as ``key=\"value\"`` unless the value is ``None``, in which case only the " "key will be added." @@ -339,19 +340,19 @@ msgstr "" #: ../../library/email.message.rst:277 msgid "" "If the value contains non-ASCII characters, the charset and language may be " -"explicitly controlled by specifying the value as a three tuple in the format" -" ``(CHARSET, LANGUAGE, VALUE)``, where ``CHARSET`` is a string naming the " +"explicitly controlled by specifying the value as a three tuple in the format " +"``(CHARSET, LANGUAGE, VALUE)``, where ``CHARSET`` is a string naming the " "charset to be used to encode the value, ``LANGUAGE`` can usually be set to " "``None`` or the empty string (see :rfc:`2231` for other possibilities), and " "``VALUE`` is the string value containing non-ASCII code points. If a three " "tuple is not passed and the value contains non-ASCII characters, it is " -"automatically encoded in :rfc:`2231` format using a ``CHARSET`` of ``utf-8``" -" and a ``LANGUAGE`` of ``None``." +"automatically encoded in :rfc:`2231` format using a ``CHARSET`` of ``utf-8`` " +"and a ``LANGUAGE`` of ``None``." msgstr "" #: ../../library/email.message.rst:287 msgid "Here is an example::" -msgstr "" +msgstr "Aqui está um exemplo::" #: ../../library/email.message.rst:291 msgid "This will add a header that looks like ::" @@ -370,22 +371,22 @@ msgstr "" #: ../../library/email.message.rst:311 msgid "" -"Return the message's content type, coerced to lower case of the form " -":mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` " -"header in the message return the value returned by :meth:`get_default_type`." -" If the :mailheader:`Content-Type` header is invalid, return " -"``text/plain``." +"Return the message's content type, coerced to lower case of the form :" +"mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type` " +"header in the message return the value returned by :meth:" +"`get_default_type`. If the :mailheader:`Content-Type` header is invalid, " +"return ``text/plain``." msgstr "" #: ../../library/email.message.rst:317 msgid "" -"(According to :rfc:`2045`, messages always have a default type, " -":meth:`get_content_type` will always return a value. :rfc:`2045` defines a " -"message's default type to be :mimetype:`text/plain` unless it appears inside" -" a :mimetype:`multipart/digest` container, in which case it would be " -":mimetype:`message/rfc822`. If the :mailheader:`Content-Type` header has an" -" invalid type specification, :rfc:`2045` mandates that the default type be " -":mimetype:`text/plain`.)" +"(According to :rfc:`2045`, messages always have a default type, :meth:" +"`get_content_type` will always return a value. :rfc:`2045` defines a " +"message's default type to be :mimetype:`text/plain` unless it appears inside " +"a :mimetype:`multipart/digest` container, in which case it would be :" +"mimetype:`message/rfc822`. If the :mailheader:`Content-Type` header has an " +"invalid type specification, :rfc:`2045` mandates that the default type be :" +"mimetype:`text/plain`.)" msgstr "" #: ../../library/email.message.rst:328 @@ -396,26 +397,25 @@ msgstr "" #: ../../library/email.message.rst:334 msgid "" -"Return the message's sub-content type. This is the :mimetype:`subtype` part" -" of the string returned by :meth:`get_content_type`." +"Return the message's sub-content type. This is the :mimetype:`subtype` part " +"of the string returned by :meth:`get_content_type`." msgstr "" #: ../../library/email.message.rst:340 msgid "" "Return the default content type. Most messages have a default content type " -"of :mimetype:`text/plain`, except for messages that are subparts of " -":mimetype:`multipart/digest` containers. Such subparts have a default " +"of :mimetype:`text/plain`, except for messages that are subparts of :" +"mimetype:`multipart/digest` containers. Such subparts have a default " "content type of :mimetype:`message/rfc822`." msgstr "" #: ../../library/email.message.rst:348 msgid "" -"Set the default content type. *ctype* should either be " -":mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not " -"enforced. The default content type is not stored in the :mailheader" -":`Content-Type` header, so it only affects the return value of the " -"``get_content_type`` methods when no :mailheader:`Content-Type` header is " -"present in the message." +"Set the default content type. *ctype* should either be :mimetype:`text/" +"plain` or :mimetype:`message/rfc822`, although this is not enforced. The " +"default content type is not stored in the :mailheader:`Content-Type` header, " +"so it only affects the return value of the ``get_content_type`` methods when " +"no :mailheader:`Content-Type` header is present in the message." msgstr "" #: ../../library/email.message.rst:359 @@ -423,18 +423,19 @@ msgid "" "Set a parameter in the :mailheader:`Content-Type` header. If the parameter " "already exists in the header, replace its value with *value*. When *header* " "is ``Content-Type`` (the default) and the header does not yet exist in the " -"message, add it, set its value to :mimetype:`text/plain`, and append the new" -" parameter value. Optional *header* specifies an alternative header to " -":mailheader:`Content-Type`." +"message, add it, set its value to :mimetype:`text/plain`, and append the new " +"parameter value. Optional *header* specifies an alternative header to :" +"mailheader:`Content-Type`." msgstr "" #: ../../library/email.message.rst:366 msgid "" "If the value contains non-ASCII characters, the charset and language may be " -"explicitly specified using the optional *charset* and *language* parameters." -" Optional *language* specifies the :rfc:`2231` language, defaulting to the " -"empty string. Both *charset* and *language* should be strings. The default" -" is to use the ``utf8`` *charset* and ``None`` for the *language*." +"explicitly specified using the optional *charset* and *language* " +"parameters. Optional *language* specifies the :rfc:`2231` language, " +"defaulting to the empty string. Both *charset* and *language* should be " +"strings. The default is to use the ``utf8`` *charset* and ``None`` for the " +"*language*." msgstr "" #: ../../library/email.message.rst:373 @@ -452,9 +453,9 @@ msgstr "" #: ../../library/email.message.rst:380 msgid "" -"Note that existing parameter values of headers may be accessed through the " -":attr:`~email.headerregistry.BaseHeader.params` attribute of the header " -"value (for example, ``msg['Content-Type'].params['charset']``)." +"Note that existing parameter values of headers may be accessed through the :" +"attr:`~email.headerregistry.BaseHeader.params` attribute of the header value " +"(for example, ``msg['Content-Type'].params['charset']``)." msgstr "" #: ../../library/email.message.rst:384 @@ -464,8 +465,8 @@ msgstr "" #: ../../library/email.message.rst:389 msgid "" "Remove the given parameter completely from the :mailheader:`Content-Type` " -"header. The header will be re-written in place without the parameter or its" -" value. Optional *header* specifies an alternative to :mailheader:`Content-" +"header. The header will be re-written in place without the parameter or its " +"value. Optional *header* specifies an alternative to :mailheader:`Content-" "Type`." msgstr "" @@ -474,9 +475,9 @@ msgid "" "Return the value of the ``filename`` parameter of the :mailheader:`Content-" "Disposition` header of the message. If the header does not have a " "``filename`` parameter, this method falls back to looking for the ``name`` " -"parameter on the :mailheader:`Content-Type` header. If neither is found, or" -" the header is missing, then *failobj* is returned. The returned string will" -" always be unquoted as per :func:`email.utils.unquote`." +"parameter on the :mailheader:`Content-Type` header. If neither is found, or " +"the header is missing, then *failobj* is returned. The returned string will " +"always be unquoted as per :func:`email.utils.unquote`." msgstr "" #: ../../library/email.message.rst:411 @@ -490,24 +491,24 @@ msgstr "" #: ../../library/email.message.rst:419 msgid "" "Set the ``boundary`` parameter of the :mailheader:`Content-Type` header to " -"*boundary*. :meth:`set_boundary` will always quote *boundary* if necessary." -" A :exc:`~email.errors.HeaderParseError` is raised if the message object " -"has no :mailheader:`Content-Type` header." +"*boundary*. :meth:`set_boundary` will always quote *boundary* if " +"necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message " +"object has no :mailheader:`Content-Type` header." msgstr "" #: ../../library/email.message.rst:424 msgid "" -"Note that using this method is subtly different from deleting the old " -":mailheader:`Content-Type` header and adding a new one with the new boundary" -" via :meth:`add_header`, because :meth:`set_boundary` preserves the order of" -" the :mailheader:`Content-Type` header in the list of headers." +"Note that using this method is subtly different from deleting the old :" +"mailheader:`Content-Type` header and adding a new one with the new boundary " +"via :meth:`add_header`, because :meth:`set_boundary` preserves the order of " +"the :mailheader:`Content-Type` header in the list of headers." msgstr "" #: ../../library/email.message.rst:433 msgid "" "Return the ``charset`` parameter of the :mailheader:`Content-Type` header, " -"coerced to lower case. If there is no :mailheader:`Content-Type` header, or" -" if that header has no ``charset`` parameter, *failobj* is returned." +"coerced to lower case. If there is no :mailheader:`Content-Type` header, or " +"if that header has no ``charset`` parameter, *failobj* is returned." msgstr "" #: ../../library/email.message.rst:440 @@ -519,8 +520,8 @@ msgstr "" #: ../../library/email.message.rst:444 msgid "" -"Each item in the list will be a string which is the value of the ``charset``" -" parameter in the :mailheader:`Content-Type` header for the represented " +"Each item in the list will be a string which is the value of the ``charset`` " +"parameter in the :mailheader:`Content-Type` header for the represented " "subpart. If the subpart has no :mailheader:`Content-Type` header, no " "``charset`` parameter, or is not of the :mimetype:`text` main MIME type, " "then that item in the returned list will be *failobj*." @@ -534,14 +535,14 @@ msgstr "" #: ../../library/email.message.rst:456 msgid "" -"is_attachment is now a method instead of a property, for consistency with " -":meth:`~email.message.Message.is_multipart`." +"is_attachment is now a method instead of a property, for consistency with :" +"meth:`~email.message.Message.is_multipart`." msgstr "" #: ../../library/email.message.rst:463 msgid "" -"Return the lowercased value (without parameters) of the message's " -":mailheader:`Content-Disposition` header if it has one, or ``None``. The " +"Return the lowercased value (without parameters) of the message's :" +"mailheader:`Content-Disposition` header if it has one, or ``None``. The " "possible values for this method are *inline*, *attachment* or ``None`` if " "the message follows :rfc:`2183`." msgstr "" @@ -577,8 +578,8 @@ msgstr "" #: ../../library/email.message.rst:531 msgid "" "Here the ``message`` parts are not ``multiparts``, but they do contain " -"subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the" -" subparts." +"subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the " +"subparts." msgstr "" #: ../../library/email.message.rst:538 @@ -609,8 +610,8 @@ msgstr "" #: ../../library/email.message.rst:552 msgid "" -"When encountering a ``multipart/related``, check the ``start`` parameter and" -" if a part with a matching :mailheader:`Content-ID` is found, consider only " +"When encountering a ``multipart/related``, check the ``start`` parameter and " +"if a part with a matching :mailheader:`Content-ID` is found, consider only " "it when looking for candidate matches. Otherwise consider only the first " "(default root) part of the ``multipart/related``." msgstr "" @@ -629,13 +630,13 @@ msgstr "" #: ../../library/email.message.rst:563 msgid "" -"Notes: (1) For most applications the only *preferencelist* combinations that" -" really make sense are ``('plain',)``, ``('html', 'plain')``, and the " -"default ``('related', 'html', 'plain')``. (2) Because matching starts with " -"the object on which ``get_body`` is called, calling ``get_body`` on a " +"Notes: (1) For most applications the only *preferencelist* combinations that " +"really make sense are ``('plain',)``, ``('html', 'plain')``, and the default " +"``('related', 'html', 'plain')``. (2) Because matching starts with the " +"object on which ``get_body`` is called, calling ``get_body`` on a " "``multipart/related`` will return the object itself unless *preferencelist* " -"has a non-default value. (3) Messages (or message parts) that do not specify" -" a :mailheader:`Content-Type` or whose :mailheader:`Content-Type` header is " +"has a non-default value. (3) Messages (or message parts) that do not specify " +"a :mailheader:`Content-Type` or whose :mailheader:`Content-Type` header is " "invalid will be treated as if they are of type ``text/plain``, which may " "occasionally cause ``get_body`` to return unexpected results." msgstr "" @@ -644,40 +645,40 @@ msgstr "" msgid "" "Return an iterator over all of the immediate sub-parts of the message that " "are not candidate \"body\" parts. That is, skip the first occurrence of " -"each of ``text/plain``, ``text/html``, ``multipart/related``, or " -"``multipart/alternative`` (unless they are explicitly marked as attachments " -"via :mailheader:`Content-Disposition: attachment`), and return all remaining" -" parts. When applied directly to a ``multipart/related``, return an " -"iterator over the all the related parts except the root part (ie: the part " -"pointed to by the ``start`` parameter, or the first part if there is no " -"``start`` parameter or the ``start`` parameter doesn't match the :mailheader" -":`Content-ID` of any of the parts). When applied directly to a " -"``multipart/alternative`` or a non-``multipart``, return an empty iterator." +"each of ``text/plain``, ``text/html``, ``multipart/related``, or ``multipart/" +"alternative`` (unless they are explicitly marked as attachments via :" +"mailheader:`Content-Disposition: attachment`), and return all remaining " +"parts. When applied directly to a ``multipart/related``, return an iterator " +"over the all the related parts except the root part (ie: the part pointed to " +"by the ``start`` parameter, or the first part if there is no ``start`` " +"parameter or the ``start`` parameter doesn't match the :mailheader:`Content-" +"ID` of any of the parts). When applied directly to a ``multipart/" +"alternative`` or a non-``multipart``, return an empty iterator." msgstr "" #: ../../library/email.message.rst:593 msgid "" -"Return an iterator over all of the immediate sub-parts of the message, which" -" will be empty for a non-``multipart``. (See also " -":meth:`~email.message.EmailMessage.walk`.)" +"Return an iterator over all of the immediate sub-parts of the message, which " +"will be empty for a non-``multipart``. (See also :meth:`~email.message." +"EmailMessage.walk`.)" msgstr "" #: ../../library/email.message.rst:600 msgid "" "Call the :meth:`~email.contentmanager.ContentManager.get_content` method of " -"the *content_manager*, passing self as the message object, and passing along" -" any other arguments or keywords as additional arguments. If " -"*content_manager* is not specified, use the ``content_manager`` specified by" -" the current :mod:`~email.policy`." +"the *content_manager*, passing self as the message object, and passing along " +"any other arguments or keywords as additional arguments. If " +"*content_manager* is not specified, use the ``content_manager`` specified by " +"the current :mod:`~email.policy`." msgstr "" #: ../../library/email.message.rst:609 msgid "" "Call the :meth:`~email.contentmanager.ContentManager.set_content` method of " -"the *content_manager*, passing self as the message object, and passing along" -" any other arguments or keywords as additional arguments. If " -"*content_manager* is not specified, use the ``content_manager`` specified by" -" the current :mod:`~email.policy`." +"the *content_manager*, passing self as the message object, and passing along " +"any other arguments or keywords as additional arguments. If " +"*content_manager* is not specified, use the ``content_manager`` specified by " +"the current :mod:`~email.policy`." msgstr "" #: ../../library/email.message.rst:618 @@ -692,63 +693,61 @@ msgstr "" #: ../../library/email.message.rst:628 msgid "" -"Convert a non-``multipart`` or a ``multipart/related`` into a " -"``multipart/alternative``, moving any existing :mailheader:`Content-` " -"headers and payload into a (new) first part of the ``multipart``. If " -"*boundary* is specified, use it as the boundary string in the multipart, " -"otherwise leave the boundary to be automatically created when it is needed " -"(for example, when the message is serialized)." +"Convert a non-``multipart`` or a ``multipart/related`` into a ``multipart/" +"alternative``, moving any existing :mailheader:`Content-` headers and " +"payload into a (new) first part of the ``multipart``. If *boundary* is " +"specified, use it as the boundary string in the multipart, otherwise leave " +"the boundary to be automatically created when it is needed (for example, " +"when the message is serialized)." msgstr "" #: ../../library/email.message.rst:638 msgid "" "Convert a non-``multipart``, a ``multipart/related``, or a ``multipart-" -"alternative`` into a ``multipart/mixed``, moving any existing " -":mailheader:`Content-` headers and payload into a (new) first part of the " -"``multipart``. If *boundary* is specified, use it as the boundary string in" -" the multipart, otherwise leave the boundary to be automatically created " -"when it is needed (for example, when the message is serialized)." +"alternative`` into a ``multipart/mixed``, moving any existing :mailheader:" +"`Content-` headers and payload into a (new) first part of the " +"``multipart``. If *boundary* is specified, use it as the boundary string in " +"the multipart, otherwise leave the boundary to be automatically created when " +"it is needed (for example, when the message is serialized)." msgstr "" #: ../../library/email.message.rst:648 msgid "" -"If the message is a ``multipart/related``, create a new message object, pass" -" all of the arguments to its :meth:`set_content` method, and " -":meth:`~email.message.Message.attach` it to the ``multipart``. If the " -"message is a non-``multipart``, call :meth:`make_related` and then proceed " -"as above. If the message is any other type of ``multipart``, raise a " -":exc:`TypeError`. If *content_manager* is not specified, use the " -"``content_manager`` specified by the current :mod:`~email.policy`. If the " -"added part has no :mailheader:`Content-Disposition` header, add one with the" -" value ``inline``." +"If the message is a ``multipart/related``, create a new message object, pass " +"all of the arguments to its :meth:`set_content` method, and :meth:`~email." +"message.Message.attach` it to the ``multipart``. If the message is a non-" +"``multipart``, call :meth:`make_related` and then proceed as above. If the " +"message is any other type of ``multipart``, raise a :exc:`TypeError`. If " +"*content_manager* is not specified, use the ``content_manager`` specified by " +"the current :mod:`~email.policy`. If the added part has no :mailheader:" +"`Content-Disposition` header, add one with the value ``inline``." msgstr "" #: ../../library/email.message.rst:661 msgid "" "If the message is a ``multipart/alternative``, create a new message object, " -"pass all of the arguments to its :meth:`set_content` method, and " -":meth:`~email.message.Message.attach` it to the ``multipart``. If the " -"message is a non-``multipart`` or ``multipart/related``, call " -":meth:`make_alternative` and then proceed as above. If the message is any " -"other type of ``multipart``, raise a :exc:`TypeError`. If *content_manager* " -"is not specified, use the ``content_manager`` specified by the current " -":mod:`~email.policy`." +"pass all of the arguments to its :meth:`set_content` method, and :meth:" +"`~email.message.Message.attach` it to the ``multipart``. If the message is " +"a non-``multipart`` or ``multipart/related``, call :meth:`make_alternative` " +"and then proceed as above. If the message is any other type of " +"``multipart``, raise a :exc:`TypeError`. If *content_manager* is not " +"specified, use the ``content_manager`` specified by the current :mod:`~email." +"policy`." msgstr "" #: ../../library/email.message.rst:673 msgid "" "If the message is a ``multipart/mixed``, create a new message object, pass " -"all of the arguments to its :meth:`set_content` method, and " -":meth:`~email.message.Message.attach` it to the ``multipart``. If the " -"message is a non-``multipart``, ``multipart/related``, or " -"``multipart/alternative``, call :meth:`make_mixed` and then proceed as " -"above. If *content_manager* is not specified, use the ``content_manager`` " -"specified by the current :mod:`~email.policy`. If the added part has no " -":mailheader:`Content-Disposition` header, add one with the value " -"``attachment``. This method can be used both for explicit attachments " -"(:mailheader:`Content-Disposition: attachment`) and ``inline`` attachments " -"(:mailheader:`Content-Disposition: inline`), by passing appropriate options " -"to the ``content_manager``." +"all of the arguments to its :meth:`set_content` method, and :meth:`~email." +"message.Message.attach` it to the ``multipart``. If the message is a non-" +"``multipart``, ``multipart/related``, or ``multipart/alternative``, call :" +"meth:`make_mixed` and then proceed as above. If *content_manager* is not " +"specified, use the ``content_manager`` specified by the current :mod:`~email." +"policy`. If the added part has no :mailheader:`Content-Disposition` header, " +"add one with the value ``attachment``. This method can be used both for " +"explicit attachments (:mailheader:`Content-Disposition: attachment`) and " +"``inline`` attachments (:mailheader:`Content-Disposition: inline`), by " +"passing appropriate options to the ``content_manager``." msgstr "" #: ../../library/email.message.rst:689 @@ -757,8 +756,8 @@ msgstr "" #: ../../library/email.message.rst:694 msgid "" -"Remove the payload and all of the :exc:`Content-` headers, leaving all other" -" headers intact and in their original order." +"Remove the payload and all of the :exc:`Content-` headers, leaving all other " +"headers intact and in their original order." msgstr "" #: ../../library/email.message.rst:698 @@ -778,14 +777,13 @@ msgstr "" #: ../../library/email.message.rst:710 msgid "" "The *preamble* attribute contains this leading extra-armor text for MIME " -"documents. When the :class:`~email.parser.Parser` discovers some text after" -" the headers but before the first boundary string, it assigns this text to " -"the message's *preamble* attribute. When the " -":class:`~email.generator.Generator` is writing out the plain text " -"representation of a MIME message, and it finds the message has a *preamble* " -"attribute, it will write this text in the area between the headers and the " -"first boundary. See :mod:`email.parser` and :mod:`email.generator` for " -"details." +"documents. When the :class:`~email.parser.Parser` discovers some text after " +"the headers but before the first boundary string, it assigns this text to " +"the message's *preamble* attribute. When the :class:`~email.generator." +"Generator` is writing out the plain text representation of a MIME message, " +"and it finds the message has a *preamble* attribute, it will write this text " +"in the area between the headers and the first boundary. See :mod:`email." +"parser` and :mod:`email.generator` for details." msgstr "" #: ../../library/email.message.rst:720 @@ -798,22 +796,22 @@ msgstr "" msgid "" "The *epilogue* attribute acts the same way as the *preamble* attribute, " "except that it contains text that appears between the last boundary and the " -"end of the message. As with the :attr:`~EmailMessage.preamble`, if there is" -" no epilog text this attribute will be ``None``." +"end of the message. As with the :attr:`~EmailMessage.preamble`, if there is " +"no epilog text this attribute will be ``None``." msgstr "" #: ../../library/email.message.rst:734 msgid "" "The *defects* attribute contains a list of all the problems found when " -"parsing this message. See :mod:`email.errors` for a detailed description of" -" the possible parsing defects." +"parsing this message. See :mod:`email.errors` for a detailed description of " +"the possible parsing defects." msgstr "" #: ../../library/email.message.rst:741 msgid "" -"This class represents a subpart of a MIME message. It is identical to " -":class:`EmailMessage`, except that no :mailheader:`MIME-Version` headers are" -" added when :meth:`~EmailMessage.set_content` is called, since sub-parts do " +"This class represents a subpart of a MIME message. It is identical to :" +"class:`EmailMessage`, except that no :mailheader:`MIME-Version` headers are " +"added when :meth:`~EmailMessage.set_content` is called, since sub-parts do " "not need their own :mailheader:`MIME-Version` headers." msgstr "" diff --git a/library/email.mime.po b/library/email.mime.po index aaf8c3af8..1280fb718 100644 --- a/library/email.mime.po +++ b/library/email.mime.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,11 +24,11 @@ msgstr "" #: ../../library/email.mime.rst:2 msgid ":mod:`email.mime`: Creating email and MIME objects from scratch" -msgstr "" +msgstr ":mod:`email.mime`: Criando e-mail e objetos MIME fo zero" #: ../../library/email.mime.rst:7 msgid "**Source code:** :source:`Lib/email/mime/`" -msgstr "" +msgstr "**Código-fonte:** :source:`Lib/email/mime/`" #: ../../library/email.mime.rst:11 msgid "" @@ -32,58 +37,85 @@ msgid "" "the new API, but in certain applications these classes may still be useful, " "even in non-legacy code." msgstr "" +"Este módulo faz parte da API de e-mail legada (``Compat32``). Sua " +"funcionalidade é parcialmente substituída por :mod:`~email.contentmanager` " +"na nova API, mas em certos aplicativos essas classes ainda podem ser úteis, " +"mesmo em código não legado." #: ../../library/email.mime.rst:16 msgid "" "Ordinarily, you get a message object structure by passing a file or some " -"text to a parser, which parses the text and returns the root message object." -" However you can also build a complete message structure from scratch, or " -"even individual :class:`~email.message.Message` objects by hand. In fact, " -"you can also take an existing structure and add new " -":class:`~email.message.Message` objects, move them around, etc. This makes " -"a very convenient interface for slicing-and-dicing MIME messages." -msgstr "" +"text to a parser, which parses the text and returns the root message " +"object. However you can also build a complete message structure from " +"scratch, or even individual :class:`~email.message.Message` objects by " +"hand. In fact, you can also take an existing structure and add new :class:" +"`~email.message.Message` objects, move them around, etc. This makes a very " +"convenient interface for slicing-and-dicing MIME messages." +msgstr "" +"Normalmente, você obtém uma estrutura de objeto de mensagem passando um " +"arquivo ou algum texto para um analisador, que analisa o texto e retorna o " +"objeto de mensagem raiz. No entanto, você também pode criar uma estrutura de " +"mensagem completa do zero, ou até objetos individuais de :class:`~email." +"message.Message` manualmente. De fato, você também pode pegar uma estrutura " +"existente e adicionar novos objetos :class:`~email.message.Message`, movê-" +"los, etc. Isso cria uma interface muito conveniente para fatiar e cortar " +"dados de mensagens MIME." #: ../../library/email.mime.rst:24 msgid "" -"You can create a new object structure by creating " -":class:`~email.message.Message` instances, adding attachments and all the " -"appropriate headers manually. For MIME messages though, the :mod:`email` " -"package provides some convenient subclasses to make things easier." +"You can create a new object structure by creating :class:`~email.message." +"Message` instances, adding attachments and all the appropriate headers " +"manually. For MIME messages though, the :mod:`email` package provides some " +"convenient subclasses to make things easier." msgstr "" +"Você pode criar uma nova estrutura de objeto criando instâncias de :class:" +"`~email.message.Message`, adicionando anexos e todos os cabeçalhos " +"apropriados manualmente. Porém, para mensagens MIME, o pacote :mod:`email` " +"fornece algumas subclasses convenientes para facilitar as coisas." #: ../../library/email.mime.rst:29 msgid "Here are the classes:" -msgstr "" +msgstr "Arquivo estão as classes:" #: ../../library/email.mime.rst:35 msgid "Module: :mod:`email.mime.base`" -msgstr "" +msgstr "Módulo: :mod:`email.mime.base`" #: ../../library/email.mime.rst:37 msgid "" -"This is the base class for all the MIME-specific subclasses of " -":class:`~email.message.Message`. Ordinarily you won't create instances " -"specifically of :class:`MIMEBase`, although you could. :class:`MIMEBase` is" -" provided primarily as a convenient base class for more specific MIME-aware " +"This is the base class for all the MIME-specific subclasses of :class:" +"`~email.message.Message`. Ordinarily you won't create instances " +"specifically of :class:`MIMEBase`, although you could. :class:`MIMEBase` is " +"provided primarily as a convenient base class for more specific MIME-aware " "subclasses." msgstr "" +"Esta é a classe base para todas as subclasses específicas de MIME de :class:" +"`~email.message.Message`. Normalmente você não criará instâncias " +"especificamente de :class:`MIMEBase`, embora possa. A :class:`MIMEBase` é " +"fornecida principalmente como uma classe base conveniente para subclasses " +"mais específicas para MIME." #: ../../library/email.mime.rst:43 msgid "" -"*_maintype* is the :mailheader:`Content-Type` major type (e.g. " -":mimetype:`text` or :mimetype:`image`), and *_subtype* is the :mailheader" -":`Content-Type` minor type (e.g. :mimetype:`plain` or :mimetype:`gif`). " -"*_params* is a parameter key/value dictionary and is passed directly to " -":meth:`Message.add_header `." -msgstr "" +"*_maintype* is the :mailheader:`Content-Type` major type (e.g. :mimetype:" +"`text` or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-" +"Type` minor type (e.g. :mimetype:`plain` or :mimetype:`gif`). *_params* is " +"a parameter key/value dictionary and is passed directly to :meth:`Message." +"add_header `." +msgstr "" +"*_maintype* é o tipo principal de :mailheader:`Content-Type` (ex., :mimetype:" +"`text` ou :mimetype:`image`) e *_subtype* é o tipo principal de :mailheader:" +"`Content-Type` (ex., :mimetype:`plain` ou :mimetype:`gif`). *_params* é um " +"dicionário de parâmetros chave/valor e é passado diretamente para :meth:" +"`Message.add_header `." #: ../../library/email.mime.rst:49 msgid "" -"If *policy* is specified, (defaults to the :class:`compat32 " -"` policy) it will be passed to " -":class:`~email.message.Message`." +"If *policy* is specified, (defaults to the :class:`compat32 ` policy) it will be passed to :class:`~email.message.Message`." msgstr "" +"Se *policy* for especificado, (o padrão é a política :class:`compat32 `) será passado para :class:`~email.message.Message`." #: ../../library/email.mime.rst:53 msgid "" @@ -91,42 +123,56 @@ msgid "" "(based on *_maintype*, *_subtype*, and *_params*), and a :mailheader:`MIME-" "Version` header (always set to ``1.0``)." msgstr "" +"A classe :class:`MIMEBase` sempre adiciona um cabeçalho :mailheader:`Content-" +"Type` (com base em *_maintype*, *_subtype* e *_params*) e um cabeçalho :" +"mailheader:`MIME-Version` (sempre definido como ``1.0``)." #: ../../library/email.mime.rst:57 ../../library/email.mime.rst:104 #: ../../library/email.mime.rst:135 ../../library/email.mime.rst:169 #: ../../library/email.mime.rst:204 ../../library/email.mime.rst:224 #: ../../library/email.mime.rst:258 msgid "Added *policy* keyword-only parameter." -msgstr "" +msgstr "Adicionado parâmetro de apenas palavra reservada *policy*." #: ../../library/email.mime.rst:65 msgid "Module: :mod:`email.mime.nonmultipart`" -msgstr "" +msgstr "Módulo: :mod:`email.mime.nonmultipart`" #: ../../library/email.mime.rst:67 msgid "" "A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate " "base class for MIME messages that are not :mimetype:`multipart`. The " -"primary purpose of this class is to prevent the use of the " -":meth:`~email.message.Message.attach` method, which only makes sense for " -":mimetype:`multipart` messages. If :meth:`~email.message.Message.attach` is" -" called, a :exc:`~email.errors.MultipartConversionError` exception is " -"raised." -msgstr "" +"primary purpose of this class is to prevent the use of the :meth:`~email." +"message.Message.attach` method, which only makes sense for :mimetype:" +"`multipart` messages. If :meth:`~email.message.Message.attach` is called, " +"a :exc:`~email.errors.MultipartConversionError` exception is raised." +msgstr "" +"Uma subclasse de :class:`~email.mime.base.MIMEBase`, esta é uma classe base " +"intermediária para mensagens MIME que não são :mimetype:`multipart`. O " +"principal objetivo desta classe é impedir o uso do método :meth:`~email." +"message.Message.attach`, que só faz sentido para mensagens :mimetype:" +"`multipart`. Se :meth:`~email.message.Message.attach` for chamado, uma " +"exceção :exc:`~email.errors.MultipartConversionError` será levantada." #: ../../library/email.mime.rst:80 msgid "Module: :mod:`email.mime.multipart`" -msgstr "" +msgstr "Módulo: :mod:`email.mime.multipart`" #: ../../library/email.mime.rst:82 msgid "" "A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate " "base class for MIME messages that are :mimetype:`multipart`. Optional " "*_subtype* defaults to :mimetype:`mixed`, but can be used to specify the " -"subtype of the message. A :mailheader:`Content-Type` header of " -":mimetype:`multipart/_subtype` will be added to the message object. A " -":mailheader:`MIME-Version` header will also be added." +"subtype of the message. A :mailheader:`Content-Type` header of :mimetype:" +"`multipart/_subtype` will be added to the message object. A :mailheader:" +"`MIME-Version` header will also be added." msgstr "" +"Uma subclasse de :class:`~email.mime.base.MIMEBase`, esta é uma classe base " +"intermediária para mensagens MIME que são :mimetype:`multipart`. O *_subtype " +"* opcional é padronizado como :mimetype:`mixed`, mas pode ser usado para " +"especificar o subtipo da mensagem. Um cabeçalho :mailheader:`Content-Type` " +"de :mimetype:`multipart/_subtype` será adicionado ao objeto da mensagem. Um " +"cabeçalho :mailheader:`MIME-Version` também será adicionado." #: ../../library/email.mime.rst:89 msgid "" @@ -134,22 +180,31 @@ msgid "" "default), the boundary is calculated when needed (for example, when the " "message is serialized)." msgstr "" +"O *boundary* opcional é a string de limites de várias partes. Quando " +"``None`` (o padrão), o limite é calculado quando necessário (por exemplo, " +"quando a mensagem é serializada)." #: ../../library/email.mime.rst:93 msgid "" "*_subparts* is a sequence of initial subparts for the payload. It must be " "possible to convert this sequence to a list. You can always attach new " -"subparts to the message by using the :meth:`Message.attach " -"` method." +"subparts to the message by using the :meth:`Message.attach ` method." msgstr "" +"*_subparts* é uma sequência de subpartes iniciais para a carga. Deve ser " +"possível converter essa sequência em uma lista. Você sempre pode anexar " +"novas subpartes à mensagem usando o método :meth:`Message.attach `." #: ../../library/email.mime.rst:98 ../../library/email.mime.rst:131 #: ../../library/email.mime.rst:165 ../../library/email.mime.rst:199 #: ../../library/email.mime.rst:222 ../../library/email.mime.rst:253 msgid "" -"Optional *policy* argument defaults to :class:`compat32 " -"`." +"Optional *policy* argument defaults to :class:`compat32 `." msgstr "" +"O argumento opcional *policy* tem como padrão :class:`compat32 `." #: ../../library/email.mime.rst:100 msgid "" @@ -160,96 +215,134 @@ msgstr "" #: ../../library/email.mime.rst:113 msgid "Module: :mod:`email.mime.application`" -msgstr "" +msgstr "Módulo: :mod:`email.mime.application`" #: ../../library/email.mime.rst:115 msgid "" -"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the " -":class:`MIMEApplication` class is used to represent MIME message objects of " -"major type :mimetype:`application`. *_data* is a string containing the raw " -"byte data. Optional *_subtype* specifies the MIME subtype and defaults to " -":mimetype:`octet-stream`." -msgstr "" +"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the :class:" +"`MIMEApplication` class is used to represent MIME message objects of major " +"type :mimetype:`application`. *_data* is a string containing the raw byte " +"data. Optional *_subtype* specifies the MIME subtype and defaults to :" +"mimetype:`octet-stream`." +msgstr "" +"Uma subclasse de :class:`~email.mime.nonmultipart.MIMENonMultipart`, a " +"classe :class:`MIMEApplication` é usada para representar objetos de mensagem " +"MIME do tipo principal :mimetype:`application`. *_data * é uma sequência que " +"contém os dados brutos de bytes. O *_subtype* opcional especifica o subtipo " +"MIME e o padrão é :mimetype:`octet-stream`." #: ../../library/email.mime.rst:121 msgid "" "Optional *_encoder* is a callable (i.e. function) which will perform the " "actual encoding of the data for transport. This callable takes one " -"argument, which is the :class:`MIMEApplication` instance. It should use " -":meth:`~email.message.Message.get_payload` and " -":meth:`~email.message.Message.set_payload` to change the payload to encoded " -"form. It should also add any :mailheader:`Content-Transfer-Encoding` or " -"other headers to the message object as necessary. The default encoding is " -"base64. See the :mod:`email.encoders` module for a list of the built-in " -"encoders." -msgstr "" +"argument, which is the :class:`MIMEApplication` instance. It should use :" +"meth:`~email.message.Message.get_payload` and :meth:`~email.message.Message." +"set_payload` to change the payload to encoded form. It should also add any :" +"mailheader:`Content-Transfer-Encoding` or other headers to the message " +"object as necessary. The default encoding is base64. See the :mod:`email." +"encoders` module for a list of the built-in encoders." +msgstr "" +"O *_encoder* opcional é um chamável (isto é, função) que executará a " +"codificação real dos dados para transporte. Esse chamável requer um " +"argumento, que é a instância :class:`MIMEApplication`. Ele deve usar :meth:" +"`~email.message.Message.get_payload` e :meth:`~email.message.Message." +"set_payload` para alterar a carga útil para o formulário codificado. Também " +"deve adicionar :mailheader:`Content-Transfer-Encoding` ou outros cabeçalhos " +"ao objeto de mensagem, conforme necessário. A codificação padrão é base64. " +"Veja o módulo :mod:`email.encoders` para obter uma lista dos codificadores " +"embutidos." #: ../../library/email.mime.rst:133 ../../library/email.mime.rst:167 msgid "*_params* are passed straight through to the base class constructor." -msgstr "" +msgstr "*_params* são passados diretamente para o construtor da classe base." #: ../../library/email.mime.rst:144 msgid "Module: :mod:`email.mime.audio`" -msgstr "" +msgstr "Módulo: :mod:`email.mime.audio`" #: ../../library/email.mime.rst:146 msgid "" -"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the " -":class:`MIMEAudio` class is used to create MIME message objects of major " -"type :mimetype:`audio`. *_audiodata* is a string containing the raw audio " -"data. If this data can be decoded by the standard Python module " -":mod:`sndhdr`, then the subtype will be automatically included in the " -":mailheader:`Content-Type` header. Otherwise you can explicitly specify the " -"audio subtype via the *_subtype* argument. If the minor type could not be " -"guessed and *_subtype* was not given, then :exc:`TypeError` is raised." -msgstr "" +"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the :class:" +"`MIMEAudio` class is used to create MIME message objects of major type :" +"mimetype:`audio`. *_audiodata* is a string containing the raw audio data. " +"If this data can be decoded by the standard Python module :mod:`sndhdr`, " +"then the subtype will be automatically included in the :mailheader:`Content-" +"Type` header. Otherwise you can explicitly specify the audio subtype via the " +"*_subtype* argument. If the minor type could not be guessed and *_subtype* " +"was not given, then :exc:`TypeError` is raised." +msgstr "" +"Uma subclasse de :class:`~email.mime.nonmultipart.MIMENonMultipart`, a " +"classe :class:`MIMEAudio` é usada para criar objetos de mensagem MIME do " +"tipo principal :mimetype:`audio`. *_audiodata* é uma string que contém os " +"dados de áudio não processados. Se esses dados puderem ser decodificados " +"pelo módulo padrão do Python :mod:`sndhdr`, o subtipo será automaticamente " +"incluído no cabeçalho :mailheader:`Content-Type`. Caso contrário, você pode " +"especificar explicitamente o subtipo de áudio por meio do argumento " +"*_subtype*. Se o tipo menor não pôde ser adivinhado e *_subtype* não foi " +"fornecido, então :exc:`TypeError` é levantado." #: ../../library/email.mime.rst:155 msgid "" "Optional *_encoder* is a callable (i.e. function) which will perform the " "actual encoding of the audio data for transport. This callable takes one " -"argument, which is the :class:`MIMEAudio` instance. It should use " -":meth:`~email.message.Message.get_payload` and " -":meth:`~email.message.Message.set_payload` to change the payload to encoded " -"form. It should also add any :mailheader:`Content-Transfer-Encoding` or " -"other headers to the message object as necessary. The default encoding is " -"base64. See the :mod:`email.encoders` module for a list of the built-in " -"encoders." -msgstr "" +"argument, which is the :class:`MIMEAudio` instance. It should use :meth:" +"`~email.message.Message.get_payload` and :meth:`~email.message.Message." +"set_payload` to change the payload to encoded form. It should also add any :" +"mailheader:`Content-Transfer-Encoding` or other headers to the message " +"object as necessary. The default encoding is base64. See the :mod:`email." +"encoders` module for a list of the built-in encoders." +msgstr "" +"O *_encoder* opcional é um chamável (ou seja, função) que executará a " +"codificação real dos dados de áudio para transporte. Esse chamável requer um " +"argumento, que é a instância :class:`MIMEAudio`. Ele deve usar : meth:" +"`~email.message.Message.get_payload` e :meth:`~email.message.Message." +"set_payload` para alterar a carga útil para a forma codificada. Também deve " +"adicionar :mailheader:`Content-Transfer-Encoding` ou outros cabeçalhos ao " +"objeto de mensagem, conforme necessário. A codificação padrão é base64. Veja " +"o módulo :mod:`email.encoders` para obter uma lista dos codificadores " +"embutidos." #: ../../library/email.mime.rst:178 msgid "Module: :mod:`email.mime.image`" -msgstr "" +msgstr "Módulo: :mod:`email.mime.image`" #: ../../library/email.mime.rst:180 msgid "" -"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the " -":class:`MIMEImage` class is used to create MIME message objects of major " -"type :mimetype:`image`. *_imagedata* is a string containing the raw image " -"data. If this data can be decoded by the standard Python module " -":mod:`imghdr`, then the subtype will be automatically included in the " -":mailheader:`Content-Type` header. Otherwise you can explicitly specify the " -"image subtype via the *_subtype* argument. If the minor type could not be " -"guessed and *_subtype* was not given, then :exc:`TypeError` is raised." -msgstr "" +"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the :class:" +"`MIMEImage` class is used to create MIME message objects of major type :" +"mimetype:`image`. *_imagedata* is a string containing the raw image data. " +"If this data can be decoded by the standard Python module :mod:`imghdr`, " +"then the subtype will be automatically included in the :mailheader:`Content-" +"Type` header. Otherwise you can explicitly specify the image subtype via the " +"*_subtype* argument. If the minor type could not be guessed and *_subtype* " +"was not given, then :exc:`TypeError` is raised." +msgstr "" +"Uma subclasse de :class:`~email.mime.nonmultipart.MIMENonMultipart`, a " +"classe :class:`MIMEImage` é usada para criar objetos de mensagem MIME do " +"tipo principal :mimetype:`image`. *_imagedata * é uma string que contém os " +"dados brutos da imagem. Se esses dados puderem ser decodificados pelo módulo " +"padrão do Python :mod:`imghdr`, o subtipo será automaticamente incluído no " +"cabeçalho :mailheader:`Content-Type`. Caso contrário, você pode especificar " +"explicitamente o subtipo de imagem através do argumento *_subtype*. Se o " +"tipo menor não pôde ser adivinhado e *_subtype* não foi fornecido, então :" +"exc:`TypeError` é levantado." #: ../../library/email.mime.rst:189 msgid "" "Optional *_encoder* is a callable (i.e. function) which will perform the " "actual encoding of the image data for transport. This callable takes one " -"argument, which is the :class:`MIMEImage` instance. It should use " -":meth:`~email.message.Message.get_payload` and " -":meth:`~email.message.Message.set_payload` to change the payload to encoded " -"form. It should also add any :mailheader:`Content-Transfer-Encoding` or " -"other headers to the message object as necessary. The default encoding is " -"base64. See the :mod:`email.encoders` module for a list of the built-in " -"encoders." +"argument, which is the :class:`MIMEImage` instance. It should use :meth:" +"`~email.message.Message.get_payload` and :meth:`~email.message.Message." +"set_payload` to change the payload to encoded form. It should also add any :" +"mailheader:`Content-Transfer-Encoding` or other headers to the message " +"object as necessary. The default encoding is base64. See the :mod:`email." +"encoders` module for a list of the built-in encoders." msgstr "" #: ../../library/email.mime.rst:201 msgid "" -"*_params* are passed straight through to the " -":class:`~email.mime.base.MIMEBase` constructor." +"*_params* are passed straight through to the :class:`~email.mime.base." +"MIMEBase` constructor." msgstr "" #: ../../library/email.mime.rst:211 @@ -258,17 +351,17 @@ msgstr "" #: ../../library/email.mime.rst:213 msgid "" -"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the " -":class:`MIMEMessage` class is used to create MIME objects of main type " -":mimetype:`message`. *_msg* is used as the payload, and must be an instance " -"of class :class:`~email.message.Message` (or a subclass thereof), otherwise " -"a :exc:`TypeError` is raised." +"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the :class:" +"`MIMEMessage` class is used to create MIME objects of main type :mimetype:" +"`message`. *_msg* is used as the payload, and must be an instance of class :" +"class:`~email.message.Message` (or a subclass thereof), otherwise a :exc:" +"`TypeError` is raised." msgstr "" #: ../../library/email.mime.rst:219 msgid "" -"Optional *_subtype* sets the subtype of the message; it defaults to " -":mimetype:`rfc822`." +"Optional *_subtype* sets the subtype of the message; it defaults to :" +"mimetype:`rfc822`." msgstr "" #: ../../library/email.mime.rst:231 @@ -277,25 +370,25 @@ msgstr "" #: ../../library/email.mime.rst:233 msgid "" -"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the " -":class:`MIMEText` class is used to create MIME objects of major type " -":mimetype:`text`. *_text* is the string for the payload. *_subtype* is the " -"minor type and defaults to :mimetype:`plain`. *_charset* is the character " -"set of the text and is passed as an argument to the " -":class:`~email.mime.nonmultipart.MIMENonMultipart` constructor; it defaults " -"to ``us-ascii`` if the string contains only ``ascii`` code points, and " -"``utf-8`` otherwise. The *_charset* parameter accepts either a string or a " -":class:`~email.charset.Charset` instance." +"A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the :class:" +"`MIMEText` class is used to create MIME objects of major type :mimetype:" +"`text`. *_text* is the string for the payload. *_subtype* is the minor type " +"and defaults to :mimetype:`plain`. *_charset* is the character set of the " +"text and is passed as an argument to the :class:`~email.mime.nonmultipart." +"MIMENonMultipart` constructor; it defaults to ``us-ascii`` if the string " +"contains only ``ascii`` code points, and ``utf-8`` otherwise. The " +"*_charset* parameter accepts either a string or a :class:`~email.charset." +"Charset` instance." msgstr "" #: ../../library/email.mime.rst:243 msgid "" "Unless the *_charset* argument is explicitly set to ``None``, the MIMEText " "object created will have both a :mailheader:`Content-Type` header with a " -"``charset`` parameter, and a :mailheader:`Content-Transfer-Encoding` header." -" This means that a subsequent ``set_payload`` call will not result in an " -"encoded payload, even if a charset is passed in the ``set_payload`` command." -" You can \"reset\" this behavior by deleting the ``Content-Transfer-" +"``charset`` parameter, and a :mailheader:`Content-Transfer-Encoding` " +"header. This means that a subsequent ``set_payload`` call will not result " +"in an encoded payload, even if a charset is passed in the ``set_payload`` " +"command. You can \"reset\" this behavior by deleting the ``Content-Transfer-" "Encoding`` header, after which a ``set_payload`` call will automatically " "encode the new payload (and add a new :mailheader:`Content-Transfer-" "Encoding` header)." diff --git a/library/email.parser.po b/library/email.parser.po index f2b2fa65c..be1b260fa 100644 --- a/library/email.parser.po +++ b/library/email.parser.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,51 +34,49 @@ msgstr "**Código Fonte:** :source:`Lib/email/parser.py`" #: ../../library/email.parser.rst:11 msgid "" "Message object structures can be created in one of two ways: they can be " -"created from whole cloth by creating an :class:`~email.message.EmailMessage`" -" object, adding headers using the dictionary interface, and adding " -"payload(s) using :meth:`~email.message.EmailMessage.set_content` and related" -" methods, or they can be created by parsing a serialized representation of " -"the email message." +"created from whole cloth by creating an :class:`~email.message.EmailMessage` " +"object, adding headers using the dictionary interface, and adding payload(s) " +"using :meth:`~email.message.EmailMessage.set_content` and related methods, " +"or they can be created by parsing a serialized representation of the email " +"message." msgstr "" #: ../../library/email.parser.rst:18 msgid "" "The :mod:`email` package provides a standard parser that understands most " "email document structures, including MIME documents. You can pass the " -"parser a bytes, string or file object, and the parser will return to you the" -" root :class:`~email.message.EmailMessage` instance of the object structure." -" For simple, non-MIME messages the payload of this root object will likely " -"be a string containing the text of the message. For MIME messages, the root" -" object will return ``True`` from its " -":meth:`~email.message.EmailMessage.is_multipart` method, and the subparts " -"can be accessed via the payload manipulation methods, such as " -":meth:`~email.message.EmailMessage.get_body`, " -":meth:`~email.message.EmailMessage.iter_parts`, and " -":meth:`~email.message.EmailMessage.walk`." +"parser a bytes, string or file object, and the parser will return to you the " +"root :class:`~email.message.EmailMessage` instance of the object structure. " +"For simple, non-MIME messages the payload of this root object will likely be " +"a string containing the text of the message. For MIME messages, the root " +"object will return ``True`` from its :meth:`~email.message.EmailMessage." +"is_multipart` method, and the subparts can be accessed via the payload " +"manipulation methods, such as :meth:`~email.message.EmailMessage.get_body`, :" +"meth:`~email.message.EmailMessage.iter_parts`, and :meth:`~email.message." +"EmailMessage.walk`." msgstr "" #: ../../library/email.parser.rst:30 msgid "" -"There are actually two parser interfaces available for use, the " -":class:`Parser` API and the incremental :class:`FeedParser` API. The " -":class:`Parser` API is most useful if you have the entire text of the " -"message in memory, or if the entire message lives in a file on the file " -"system. :class:`FeedParser` is more appropriate when you are reading the " -"message from a stream which might block waiting for more input (such as " -"reading an email message from a socket). The :class:`FeedParser` can " -"consume and parse the message incrementally, and only returns the root " -"object when you close the parser." +"There are actually two parser interfaces available for use, the :class:" +"`Parser` API and the incremental :class:`FeedParser` API. The :class:" +"`Parser` API is most useful if you have the entire text of the message in " +"memory, or if the entire message lives in a file on the file system. :class:" +"`FeedParser` is more appropriate when you are reading the message from a " +"stream which might block waiting for more input (such as reading an email " +"message from a socket). The :class:`FeedParser` can consume and parse the " +"message incrementally, and only returns the root object when you close the " +"parser." msgstr "" #: ../../library/email.parser.rst:39 msgid "" "Note that the parser can be extended in limited ways, and of course you can " "implement your own parser completely from scratch. All of the logic that " -"connects the :mod:`email` package's bundled parser and the " -":class:`~email.message.EmailMessage` class is embodied in the :mod:`policy` " -"class, so a custom parser can create message object trees any way it finds " -"necessary by implementing custom versions of the appropriate :mod:`policy` " -"methods." +"connects the :mod:`email` package's bundled parser and the :class:`~email." +"message.EmailMessage` class is embodied in the :mod:`policy` class, so a " +"custom parser can create message object trees any way it finds necessary by " +"implementing custom versions of the appropriate :mod:`policy` methods." msgstr "" #: ../../library/email.parser.rst:49 @@ -88,11 +88,11 @@ msgid "" "The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` " "module, provides an API that is conducive to incremental parsing of email " "messages, such as would be necessary when reading the text of an email " -"message from a source that can block (such as a socket). The " -":class:`BytesFeedParser` can of course be used to parse an email message " -"fully contained in a :term:`bytes-like object`, string, or file, but the " -":class:`BytesParser` API may be more convenient for such use cases. The " -"semantics and results of the two parser APIs are identical." +"message from a source that can block (such as a socket). The :class:" +"`BytesFeedParser` can of course be used to parse an email message fully " +"contained in a :term:`bytes-like object`, string, or file, but the :class:" +"`BytesParser` API may be more convenient for such use cases. The semantics " +"and results of the two parser APIs are identical." msgstr "" #: ../../library/email.parser.rst:60 @@ -101,11 +101,11 @@ msgid "" "it a bunch of bytes until there's no more to feed it, then close the parser " "to retrieve the root message object. The :class:`BytesFeedParser` is " "extremely accurate when parsing standards-compliant messages, and it does a " -"very good job of parsing non-compliant messages, providing information about" -" how a message was deemed broken. It will populate a message object's " -":attr:`~email.message.EmailMessage.defects` attribute with a list of any " -"problems it found in a message. See the :mod:`email.errors` module for the " -"list of defects that it can find." +"very good job of parsing non-compliant messages, providing information about " +"how a message was deemed broken. It will populate a message object's :attr:" +"`~email.message.EmailMessage.defects` attribute with a list of any problems " +"it found in a message. See the :mod:`email.errors` module for the list of " +"defects that it can find." msgstr "" #: ../../library/email.parser.rst:70 @@ -115,21 +115,21 @@ msgstr "" #: ../../library/email.parser.rst:75 msgid "" "Create a :class:`BytesFeedParser` instance. Optional *_factory* is a no-" -"argument callable; if not specified use the " -":attr:`~email.policy.Policy.message_factory` from the *policy*. Call " -"*_factory* whenever a new message object is needed." +"argument callable; if not specified use the :attr:`~email.policy.Policy." +"message_factory` from the *policy*. Call *_factory* whenever a new message " +"object is needed." msgstr "" #: ../../library/email.parser.rst:80 msgid "" "If *policy* is specified use the rules it specifies to update the " -"representation of the message. If *policy* is not set, use the " -":class:`compat32 ` policy, which maintains backward " -"compatibility with the Python 3.2 version of the email package and provides " -":class:`~email.message.Message` as the default factory. All other policies " +"representation of the message. If *policy* is not set, use the :class:" +"`compat32 ` policy, which maintains backward " +"compatibility with the Python 3.2 version of the email package and provides :" +"class:`~email.message.Message` as the default factory. All other policies " "provide :class:`~email.message.EmailMessage` as the default *_factory*. For " -"more information on what else *policy* controls, see the " -":mod:`~email.policy` documentation." +"more information on what else *policy* controls, see the :mod:`~email." +"policy` documentation." msgstr "" #: ../../library/email.parser.rst:89 ../../library/email.parser.rst:145 @@ -150,9 +150,9 @@ msgstr "" msgid "" "Feed the parser some more data. *data* should be a :term:`bytes-like " "object` containing one or more lines. The lines can be partial and the " -"parser will stitch such partial lines together properly. The lines can have" -" any of the three common line endings: carriage return, newline, or carriage" -" return and newline (they can even be mixed)." +"parser will stitch such partial lines together properly. The lines can have " +"any of the three common line endings: carriage return, newline, or carriage " +"return and newline (they can even be mixed)." msgstr "" #: ../../library/email.parser.rst:109 @@ -164,8 +164,8 @@ msgstr "" #: ../../library/email.parser.rst:116 msgid "" -"Works like :class:`BytesFeedParser` except that the input to the " -":meth:`~BytesFeedParser.feed` method must be a string. This is of limited " +"Works like :class:`BytesFeedParser` except that the input to the :meth:" +"`~BytesFeedParser.feed` method must be a string. This is of limited " "utility, since the only way for such a message to be valid is for it to " "contain only ASCII text or, if :attr:`~email.policy.Policy.utf8` is " "``True``, no binary attachments." @@ -180,20 +180,20 @@ msgid "" "The :class:`BytesParser` class, imported from the :mod:`email.parser` " "module, provides an API that can be used to parse a message when the " "complete contents of the message are available in a :term:`bytes-like " -"object` or file. The :mod:`email.parser` module also provides " -":class:`Parser` for parsing strings, and header-only parsers, " -":class:`BytesHeaderParser` and :class:`HeaderParser`, which can be used if " -"you're only interested in the headers of the message. " -":class:`BytesHeaderParser` and :class:`HeaderParser` can be much faster in " -"these situations, since they do not attempt to parse the message body, " -"instead setting the payload to the raw body." +"object` or file. The :mod:`email.parser` module also provides :class:" +"`Parser` for parsing strings, and header-only parsers, :class:" +"`BytesHeaderParser` and :class:`HeaderParser`, which can be used if you're " +"only interested in the headers of the message. :class:`BytesHeaderParser` " +"and :class:`HeaderParser` can be much faster in these situations, since they " +"do not attempt to parse the message body, instead setting the payload to the " +"raw body." msgstr "" #: ../../library/email.parser.rst:141 msgid "" -"Create a :class:`BytesParser` instance. The *_class* and *policy* arguments" -" have the same meaning and semantics as the *_factory* and *policy* " -"arguments of :class:`BytesFeedParser`." +"Create a :class:`BytesParser` instance. The *_class* and *policy* arguments " +"have the same meaning and semantics as the *_factory* and *policy* arguments " +"of :class:`BytesFeedParser`." msgstr "" #: ../../library/email.parser.rst:148 @@ -209,35 +209,35 @@ msgstr "" #: ../../library/email.parser.rst:156 msgid "" -"Read all the data from the binary file-like object *fp*, parse the resulting" -" bytes, and return the message object. *fp* must support both the " -":meth:`~io.IOBase.readline` and the :meth:`~io.IOBase.read` methods." +"Read all the data from the binary file-like object *fp*, parse the resulting " +"bytes, and return the message object. *fp* must support both the :meth:`~io." +"IOBase.readline` and the :meth:`~io.IOBase.read` methods." msgstr "" #: ../../library/email.parser.rst:161 msgid "" -"The bytes contained in *fp* must be formatted as a block of :rfc:`5322` (or," -" if :attr:`~email.policy.Policy.utf8` is ``True``, :rfc:`6532`) style " -"headers and header continuation lines, optionally preceded by an envelope " -"header. The header block is terminated either by the end of the data or by " -"a blank line. Following the header block is the body of the message (which " -"may contain MIME-encoded subparts, including subparts with a :mailheader" -":`Content-Transfer-Encoding` of ``8bit``)." +"The bytes contained in *fp* must be formatted as a block of :rfc:`5322` (or, " +"if :attr:`~email.policy.Policy.utf8` is ``True``, :rfc:`6532`) style headers " +"and header continuation lines, optionally preceded by an envelope header. " +"The header block is terminated either by the end of the data or by a blank " +"line. Following the header block is the body of the message (which may " +"contain MIME-encoded subparts, including subparts with a :mailheader:" +"`Content-Transfer-Encoding` of ``8bit``)." msgstr "" #: ../../library/email.parser.rst:169 msgid "" "Optional *headersonly* is a flag specifying whether to stop parsing after " -"reading the headers or not. The default is ``False``, meaning it parses the" -" entire contents of the file." +"reading the headers or not. The default is ``False``, meaning it parses the " +"entire contents of the file." msgstr "" #: ../../library/email.parser.rst:176 msgid "" "Similar to the :meth:`parse` method, except it takes a :term:`bytes-like " -"object` instead of a file-like object. Calling this method on a :term" -":`bytes-like object` is equivalent to wrapping *bytes* in a " -":class:`~io.BytesIO` instance first and calling :meth:`parse`." +"object` instead of a file-like object. Calling this method on a :term:" +"`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io." +"BytesIO` instance first and calling :meth:`parse`." msgstr "" #: ../../library/email.parser.rst:181 ../../library/email.parser.rst:221 @@ -271,22 +271,21 @@ msgstr "" #: ../../library/email.parser.rst:210 msgid "" -"Other than the text mode requirement, this method operates like " -":meth:`BytesParser.parse`." +"Other than the text mode requirement, this method operates like :meth:" +"`BytesParser.parse`." msgstr "" #: ../../library/email.parser.rst:216 msgid "" -"Similar to the :meth:`parse` method, except it takes a string object instead" -" of a file-like object. Calling this method on a string is equivalent to " -"wrapping *text* in a :class:`~io.StringIO` instance first and calling " -":meth:`parse`." +"Similar to the :meth:`parse` method, except it takes a string object instead " +"of a file-like object. Calling this method on a string is equivalent to " +"wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:" +"`parse`." msgstr "" #: ../../library/email.parser.rst:226 msgid "" -"Exactly like :class:`Parser`, except that *headersonly* defaults to " -"``True``." +"Exactly like :class:`Parser`, except that *headersonly* defaults to ``True``." msgstr "" #: ../../library/email.parser.rst:230 @@ -298,8 +297,8 @@ msgstr "" #: ../../library/email.parser.rst:239 msgid "" -"Return a message object structure from a :term:`bytes-like object`. This is" -" equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and " +"Return a message object structure from a :term:`bytes-like object`. This is " +"equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and " "*policy* are interpreted as with the :class:`~email.parser.BytesParser` " "class constructor." msgstr "" @@ -315,8 +314,8 @@ msgstr "" #: ../../library/email.parser.rst:264 msgid "" "Return a message object structure from a string. This is equivalent to " -"``Parser().parsestr(s)``. *_class* and *policy* are interpreted as with the" -" :class:`~email.parser.Parser` class constructor." +"``Parser().parsestr(s)``. *_class* and *policy* are interpreted as with " +"the :class:`~email.parser.Parser` class constructor." msgstr "" #: ../../library/email.parser.rst:274 @@ -344,38 +343,37 @@ msgstr "" msgid "" "Most non-\\ :mimetype:`multipart` type messages are parsed as a single " "message object with a string payload. These objects will return ``False`` " -"for :meth:`~email.message.EmailMessage.is_multipart`, and " -":meth:`~email.message.EmailMessage.iter_parts` will yield an empty list." +"for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email." +"message.EmailMessage.iter_parts` will yield an empty list." msgstr "" #: ../../library/email.parser.rst:300 msgid "" "All :mimetype:`multipart` type messages will be parsed as a container " "message object with a list of sub-message objects for their payload. The " -"outer container message will return ``True`` for " -":meth:`~email.message.EmailMessage.is_multipart`, and " -":meth:`~email.message.EmailMessage.iter_parts` will yield a list of " -"subparts." +"outer container message will return ``True`` for :meth:`~email.message." +"EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage." +"iter_parts` will yield a list of subparts." msgstr "" #: ../../library/email.parser.rst:306 msgid "" -"Most messages with a content type of :mimetype:`message/\\*` (such as " -":mimetype:`message/delivery-status` and :mimetype:`message/rfc822`) will " -"also be parsed as container object containing a list payload of length 1. " -"Their :meth:`~email.message.EmailMessage.is_multipart` method will return " -"``True``. The single element yielded by " -":meth:`~email.message.EmailMessage.iter_parts` will be a sub-message object." +"Most messages with a content type of :mimetype:`message/\\*` (such as :" +"mimetype:`message/delivery-status` and :mimetype:`message/rfc822`) will also " +"be parsed as container object containing a list payload of length 1. Their :" +"meth:`~email.message.EmailMessage.is_multipart` method will return ``True``. " +"The single element yielded by :meth:`~email.message.EmailMessage.iter_parts` " +"will be a sub-message object." msgstr "" #: ../../library/email.parser.rst:313 msgid "" -"Some non-standards-compliant messages may not be internally consistent about" -" their :mimetype:`multipart`\\ -edness. Such messages may have a " -":mailheader:`Content-Type` header of type :mimetype:`multipart`, but their " -":meth:`~email.message.EmailMessage.is_multipart` method may return " -"``False``. If such messages were parsed with the " -":class:`~email.parser.FeedParser`, they will have an instance of the " -":class:`~email.errors.MultipartInvariantViolationDefect` class in their " -"*defects* attribute list. See :mod:`email.errors` for details." +"Some non-standards-compliant messages may not be internally consistent about " +"their :mimetype:`multipart`\\ -edness. Such messages may have a :mailheader:" +"`Content-Type` header of type :mimetype:`multipart`, but their :meth:`~email." +"message.EmailMessage.is_multipart` method may return ``False``. If such " +"messages were parsed with the :class:`~email.parser.FeedParser`, they will " +"have an instance of the :class:`~email.errors." +"MultipartInvariantViolationDefect` class in their *defects* attribute list. " +"See :mod:`email.errors` for details." msgstr "" diff --git a/library/email.po b/library/email.po index 333320471..47eeb6946 100644 --- a/library/email.po +++ b/library/email.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Rafael Biagioni de Fazio , 2019 -# +# Rodrigo Neres , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Rafael Biagioni de Fazio , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rodrigo Neres , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +26,7 @@ msgstr "" #: ../../library/email.rst:2 msgid ":mod:`email` --- An email and MIME handling package" -msgstr "" +msgstr ":mod:`email` --- Um email e um pacote MIME manipulável" #: ../../library/email.rst:11 msgid "**Source code:** :source:`Lib/email/__init__.py`" @@ -33,12 +35,12 @@ msgstr "**Código Fonte:** :source:`Lib/email/__init__.py`" #: ../../library/email.rst:15 msgid "" "The :mod:`email` package is a library for managing email messages. It is " -"specifically *not* designed to do any sending of email messages to SMTP " -"(:rfc:`2821`), NNTP, or other servers; those are functions of modules such " -"as :mod:`smtplib` and :mod:`nntplib`. The :mod:`email` package attempts to " -"be as RFC-compliant as possible, supporting :rfc:`5233` and :rfc:`6532`, as " -"well as such MIME-related RFCs as :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, " -":rfc:`2183`, and :rfc:`2231`." +"specifically *not* designed to do any sending of email messages to SMTP (:" +"rfc:`2821`), NNTP, or other servers; those are functions of modules such as :" +"mod:`smtplib` and :mod:`nntplib`. The :mod:`email` package attempts to be " +"as RFC-compliant as possible, supporting :rfc:`5233` and :rfc:`6532`, as " +"well as such MIME-related RFCs as :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, :" +"rfc:`2183`, and :rfc:`2231`." msgstr "" #: ../../library/email.rst:23 @@ -47,58 +49,61 @@ msgid "" "components, plus a fourth component that controls the behavior of the other " "components." msgstr "" +"No geral a estrutura do pacote de email pode ser dividida em três " +"componentes principais, mais um quarto componente que controla o " +"comportamento dos outros componentes." #: ../../library/email.rst:27 msgid "" "The central component of the package is an \"object model\" that represents " -"email messages. An application interacts with the package primarily through" -" the object model interface defined in the :mod:`~email.message` sub-module." -" The application can use this API to ask questions about an existing email," -" to construct a new email, or to add or remove email subcomponents that " +"email messages. An application interacts with the package primarily through " +"the object model interface defined in the :mod:`~email.message` sub-module. " +"The application can use this API to ask questions about an existing email, " +"to construct a new email, or to add or remove email subcomponents that " "themselves use the same object model interface. That is, following the " "nature of email messages and their MIME subcomponents, the email object " -"model is a tree structure of objects that all provide the " -":class:`~email.message.EmailMessage` API." +"model is a tree structure of objects that all provide the :class:`~email." +"message.EmailMessage` API." msgstr "" #: ../../library/email.rst:37 msgid "" "The other two major components of the package are the :mod:`~email.parser` " -"and the :mod:`~email.generator`. The parser takes the serialized version of" -" an email message (a stream of bytes) and converts it into a tree of " -":class:`~email.message.EmailMessage` objects. The generator takes an " -":class:`~email.message.EmailMessage` and turns it back into a serialized " -"byte stream. (The parser and generator also handle streams of text " -"characters, but this usage is discouraged as it is too easy to end up with " -"messages that are not valid in one way or another.)" +"and the :mod:`~email.generator`. The parser takes the serialized version of " +"an email message (a stream of bytes) and converts it into a tree of :class:" +"`~email.message.EmailMessage` objects. The generator takes an :class:" +"`~email.message.EmailMessage` and turns it back into a serialized byte " +"stream. (The parser and generator also handle streams of text characters, " +"but this usage is discouraged as it is too easy to end up with messages that " +"are not valid in one way or another.)" msgstr "" #: ../../library/email.rst:46 msgid "" -"The control component is the :mod:`~email.policy` module. Every " -":class:`~email.message.EmailMessage`, every :mod:`~email.generator`, and " -"every :mod:`~email.parser` has an associated :mod:`~email.policy` object " -"that controls its behavior. Usually an application only needs to specify " -"the policy when an :class:`~email.message.EmailMessage` is created, either " -"by directly instantiating an :class:`~email.message.EmailMessage` to create" -" a new email, or by parsing an input stream using a :mod:`~email.parser`. " -"But the policy can be changed when the message is serialized using a " -":mod:`~email.generator`. This allows, for example, a generic email message " -"to be parsed from disk, but to serialize it using standard SMTP settings " -"when sending it to an email server." +"The control component is the :mod:`~email.policy` module. Every :class:" +"`~email.message.EmailMessage`, every :mod:`~email.generator`, and every :mod:" +"`~email.parser` has an associated :mod:`~email.policy` object that controls " +"its behavior. Usually an application only needs to specify the policy when " +"an :class:`~email.message.EmailMessage` is created, either by directly " +"instantiating an :class:`~email.message.EmailMessage` to create a new " +"email, or by parsing an input stream using a :mod:`~email.parser`. But the " +"policy can be changed when the message is serialized using a :mod:`~email." +"generator`. This allows, for example, a generic email message to be parsed " +"from disk, but to serialize it using standard SMTP settings when sending it " +"to an email server." msgstr "" #: ../../library/email.rst:58 msgid "" -"The email package does its best to hide the details of the various governing" -" RFCs from the application. Conceptually the application should be able to " +"The email package does its best to hide the details of the various governing " +"RFCs from the application. Conceptually the application should be able to " "treat the email message as a structured tree of unicode text and binary " "attachments, without having to worry about how these are represented when " "serialized. In practice, however, it is often necessary to be aware of at " "least some of the rules governing MIME messages and their structure, " -"specifically the names and nature of the MIME \"content types\" and how they" -" identify multipart documents. For the most part this knowledge should only" -" be required for more complex applications, and even then it should only be " +"specifically the names and nature of the MIME \"content types\" and how they " +"identify multipart documents. For the most part this knowledge should only " +"be required for more complex applications, and even then it should only be " "the high level structure in question, and not the details of how those " "structures are represented. Since MIME content types are used widely in " "modern internet software (not just email), this will be a familiar concept " @@ -109,22 +114,22 @@ msgstr "" msgid "" "The following sections describe the functionality of the :mod:`email` " "package. We start with the :mod:`~email.message` object model, which is the " -"primary interface an application will use, and follow that with the " -":mod:`~email.parser` and :mod:`~email.generator` components. Then we cover " -"the :mod:`~email.policy` controls, which completes the treatment of the main" -" components of the library." +"primary interface an application will use, and follow that with the :mod:" +"`~email.parser` and :mod:`~email.generator` components. Then we cover the :" +"mod:`~email.policy` controls, which completes the treatment of the main " +"components of the library." msgstr "" #: ../../library/email.rst:78 msgid "" "The next three sections cover the exceptions the package may raise and the " "defects (non-compliance with the RFCs) that the :mod:`~email.parser` may " -"detect. Then we cover the :mod:`~email.headerregistry` and the " -":mod:`~email.contentmanager` sub-components, which provide tools for doing " -"more detailed manipulation of headers and payloads, respectively. Both of " -"these components contain features relevant to consuming and producing non-" -"trivial messages, but also document their extensibility APIs, which will be " -"of interest to advanced applications." +"detect. Then we cover the :mod:`~email.headerregistry` and the :mod:`~email." +"contentmanager` sub-components, which provide tools for doing more detailed " +"manipulation of headers and payloads, respectively. Both of these " +"components contain features relevant to consuming and producing non-trivial " +"messages, but also document their extensibility APIs, which will be of " +"interest to advanced applications." msgstr "" #: ../../library/email.rst:87 @@ -132,34 +137,35 @@ msgid "" "Following those is a set of examples of using the fundamental parts of the " "APIs covered in the preceding sections." msgstr "" +"A seguir, é apresentado um conjunto de exemplos de uso das partes " +"fundamentais das APIs abordadas nas seções anteriores." #: ../../library/email.rst:90 msgid "" "The foregoing represent the modern (unicode friendly) API of the email " -"package. The remaining sections, starting with the " -":class:`~email.message.Message` class, cover the legacy " -":data:`~email.policy.compat32` API that deals much more directly with the " -"details of how email messages are represented. The " -":data:`~email.policy.compat32` API does *not* hide the details of the RFCs " -"from the application, but for applications that need to operate at that " -"level, they can be useful tools. This documentation is also relevant for " -"applications that are still using the :mod:`~email.policy.compat32` API for " -"backward compatibility reasons." +"package. The remaining sections, starting with the :class:`~email.message." +"Message` class, cover the legacy :data:`~email.policy.compat32` API that " +"deals much more directly with the details of how email messages are " +"represented. The :data:`~email.policy.compat32` API does *not* hide the " +"details of the RFCs from the application, but for applications that need to " +"operate at that level, they can be useful tools. This documentation is also " +"relevant for applications that are still using the :mod:`~email.policy." +"compat32` API for backward compatibility reasons." msgstr "" #: ../../library/email.rst:100 msgid "" -"Docs reorganized and rewritten to promote the new " -":class:`~email.message.EmailMessage`/:class:`~email.policy.EmailPolicy` API." +"Docs reorganized and rewritten to promote the new :class:`~email.message." +"EmailMessage`/:class:`~email.policy.EmailPolicy` API." msgstr "" #: ../../library/email.rst:105 msgid "Contents of the :mod:`email` package documentation:" -msgstr "" +msgstr "Conteúdos da documentação do pacote :mod:`email`:" #: ../../library/email.rst:120 msgid "Legacy API:" -msgstr "" +msgstr "API legada" #: ../../library/email.rst:136 msgid "Module :mod:`smtplib`" @@ -167,7 +173,7 @@ msgstr "Módulo :mod:`smtplib`" #: ../../library/email.rst:136 msgid "SMTP (Simple Mail Transport Protocol) client" -msgstr "" +msgstr "Cliente SMTP (Simple Mail Transport Protocol)" #: ../../library/email.rst:139 msgid "Module :mod:`poplib`" @@ -175,7 +181,7 @@ msgstr "Módulo :mod:`poplib`" #: ../../library/email.rst:139 msgid "POP (Post Office Protocol) client" -msgstr "" +msgstr "Cliente POP (Post Office Protocol)" #: ../../library/email.rst:142 msgid "Module :mod:`imaplib`" @@ -183,7 +189,7 @@ msgstr "Módulo :mod:`imaplib`" #: ../../library/email.rst:142 msgid "IMAP (Internet Message Access Protocol) client" -msgstr "" +msgstr "Cliente IMAP (Internet Messsge Access Protocol)" #: ../../library/email.rst:145 msgid "Module :mod:`nntplib`" @@ -191,7 +197,7 @@ msgstr "Módulo :mod:`nntplib`" #: ../../library/email.rst:145 msgid "NNTP (Net News Transport Protocol) client" -msgstr "" +msgstr "Cliente NNTP (Network News Transport Protocol)" #: ../../library/email.rst:149 msgid "Module :mod:`mailbox`" @@ -202,6 +208,8 @@ msgid "" "Tools for creating, reading, and managing collections of messages on disk " "using a variety standard formats." msgstr "" +"Ferramentas para criar, ler, e gerenciar coleções de mensagem em disco " +"usando vários formatos padrão." #: ../../library/email.rst:151 msgid "Module :mod:`smtpd`" @@ -209,4 +217,4 @@ msgstr "Módulo :mod:`smtpd`" #: ../../library/email.rst:152 msgid "SMTP server framework (primarily useful for testing)" -msgstr "" +msgstr "Framework de servidor SMTP (primeiramente usado para testes)" diff --git a/library/email.policy.po b/library/email.policy.po index 4eb0a4aaa..686a1f612 100644 --- a/library/email.policy.po +++ b/library/email.policy.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,14 +37,14 @@ msgid "" "The :mod:`email` package's prime focus is the handling of email messages as " "described by the various email and MIME RFCs. However, the general format " "of email messages (a block of header fields each consisting of a name " -"followed by a colon followed by a value, the whole block followed by a blank" -" line and an arbitrary 'body'), is a format that has found utility outside " -"of the realm of email. Some of these uses conform fairly closely to the " -"main email RFCs, some do not. Even when working with email, there are times" -" when it is desirable to break strict compliance with the RFCs, such as " -"generating emails that interoperate with email servers that do not " -"themselves follow the standards, or that implement extensions you want to " -"use in ways that violate the standards." +"followed by a colon followed by a value, the whole block followed by a blank " +"line and an arbitrary 'body'), is a format that has found utility outside of " +"the realm of email. Some of these uses conform fairly closely to the main " +"email RFCs, some do not. Even when working with email, there are times when " +"it is desirable to break strict compliance with the RFCs, such as generating " +"emails that interoperate with email servers that do not themselves follow " +"the standards, or that implement extensions you want to use in ways that " +"violate the standards." msgstr "" #: ../../library/email.policy.rst:28 @@ -54,41 +56,40 @@ msgstr "" #: ../../library/email.policy.rst:31 msgid "" "A :class:`Policy` object encapsulates a set of attributes and methods that " -"control the behavior of various components of the email package during use. " -":class:`Policy` instances can be passed to various classes and methods in " -"the email package to alter the default behavior. The settable values and " -"their defaults are described below." +"control the behavior of various components of the email package during use. :" +"class:`Policy` instances can be passed to various classes and methods in the " +"email package to alter the default behavior. The settable values and their " +"defaults are described below." msgstr "" #: ../../library/email.policy.rst:37 msgid "" -"There is a default policy used by all classes in the email package. For all" -" of the :mod:`~email.parser` classes and the related convenience functions, " -"and for the :class:`~email.message.Message` class, this is the " -":class:`Compat32` policy, via its corresponding pre-defined instance " -":const:`compat32`. This policy provides for complete backward compatibility" -" (in some cases, including bug compatibility) with the pre-Python3.3 version" -" of the email package." +"There is a default policy used by all classes in the email package. For all " +"of the :mod:`~email.parser` classes and the related convenience functions, " +"and for the :class:`~email.message.Message` class, this is the :class:" +"`Compat32` policy, via its corresponding pre-defined instance :const:" +"`compat32`. This policy provides for complete backward compatibility (in " +"some cases, including bug compatibility) with the pre-Python3.3 version of " +"the email package." msgstr "" #: ../../library/email.policy.rst:44 msgid "" -"This default value for the *policy* keyword to " -":class:`~email.message.EmailMessage` is the :class:`EmailPolicy` policy, via" -" its pre-defined instance :data:`~default`." +"This default value for the *policy* keyword to :class:`~email.message." +"EmailMessage` is the :class:`EmailPolicy` policy, via its pre-defined " +"instance :data:`~default`." msgstr "" #: ../../library/email.policy.rst:48 msgid "" -"When a :class:`~email.message.Message` or " -":class:`~email.message.EmailMessage` object is created, it acquires a " -"policy. If the message is created by a :mod:`~email.parser`, a policy " -"passed to the parser will be the policy used by the message it creates. If " -"the message is created by the program, then the policy can be specified when" -" it is created. When a message is passed to a :mod:`~email.generator`, the " -"generator uses the policy from the message by default, but you can also pass" -" a specific policy to the generator that will override the one stored on the" -" message object." +"When a :class:`~email.message.Message` or :class:`~email.message." +"EmailMessage` object is created, it acquires a policy. If the message is " +"created by a :mod:`~email.parser`, a policy passed to the parser will be the " +"policy used by the message it creates. If the message is created by the " +"program, then the policy can be specified when it is created. When a " +"message is passed to a :mod:`~email.generator`, the generator uses the " +"policy from the message by default, but you can also pass a specific policy " +"to the generator that will override the one stored on the message object." msgstr "" #: ../../library/email.policy.rst:57 @@ -96,17 +97,17 @@ msgid "" "The default value for the *policy* keyword for the :mod:`email.parser` " "classes and the parser convenience functions **will be changing** in a " "future version of Python. Therefore you should **always specify explicitly " -"which policy you want to use** when calling any of the classes and functions" -" described in the :mod:`~email.parser` module." +"which policy you want to use** when calling any of the classes and functions " +"described in the :mod:`~email.parser` module." msgstr "" #: ../../library/email.policy.rst:63 msgid "" -"The first part of this documentation covers the features of :class:`Policy`," -" an :term:`abstract base class` that defines the features that are common to" -" all policy objects, including :const:`compat32`. This includes certain " -"hook methods that are called internally by the email package, which a custom" -" policy could override to obtain different behavior. The second part " +"The first part of this documentation covers the features of :class:`Policy`, " +"an :term:`abstract base class` that defines the features that are common to " +"all policy objects, including :const:`compat32`. This includes certain hook " +"methods that are called internally by the email package, which a custom " +"policy could override to obtain different behavior. The second part " "describes the concrete classes :class:`EmailPolicy` and :class:`Compat32`, " "which implement the hooks that provide the standard behavior and the " "backward compatible behavior and features, respectively." @@ -115,16 +116,16 @@ msgstr "" #: ../../library/email.policy.rst:72 msgid "" ":class:`Policy` instances are immutable, but they can be cloned, accepting " -"the same keyword arguments as the class constructor and returning a new " -":class:`Policy` instance that is a copy of the original but with the " +"the same keyword arguments as the class constructor and returning a new :" +"class:`Policy` instance that is a copy of the original but with the " "specified attributes values changed." msgstr "" #: ../../library/email.policy.rst:77 msgid "" "As an example, the following code could be used to read an email message " -"from a file on disk and pass it to the system ``sendmail`` program on a Unix" -" system:" +"from a file on disk and pass it to the system ``sendmail`` program on a Unix " +"system:" msgstr "" #: ../../library/email.policy.rst:113 @@ -146,9 +147,9 @@ msgstr "" #: ../../library/email.policy.rst:129 msgid "" -"Policy objects can also be combined using the addition operator, producing a" -" policy object whose settings are a combination of the non-default values of" -" the summed objects::" +"Policy objects can also be combined using the addition operator, producing a " +"policy object whose settings are a combination of the non-default values of " +"the summed objects::" msgstr "" #: ../../library/email.policy.rst:137 @@ -159,8 +160,8 @@ msgstr "" #: ../../library/email.policy.rst:152 msgid "" -"This is the :term:`abstract base class` for all policy classes. It provides" -" default implementations for a couple of trivial methods, as well as the " +"This is the :term:`abstract base class` for all policy classes. It provides " +"default implementations for a couple of trivial methods, as well as the " "implementation of the immutability property, the :meth:`clone` method, and " "the constructor semantics." msgstr "" @@ -183,8 +184,8 @@ msgstr "" #: ../../library/email.policy.rst:169 msgid "" "The maximum length of any line in the serialized output, not counting the " -"end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0``" -" or :const:`None` indicates that no line wrapping should be done at all." +"end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0`` " +"or :const:`None` indicates that no line wrapping should be done at all." msgstr "" #: ../../library/email.policy.rst:177 @@ -202,7 +203,7 @@ msgstr "" #: ../../library/email.policy.rst:190 msgid "``7bit``" -msgstr "" +msgstr "``7bit``" #: ../../library/email.policy.rst:190 msgid "" @@ -213,7 +214,7 @@ msgstr "" #: ../../library/email.policy.rst:194 msgid "``8bit``" -msgstr "" +msgstr "``8bit``" #: ../../library/email.policy.rst:194 msgid "" @@ -233,16 +234,16 @@ msgstr "" #: ../../library/email.policy.rst:208 msgid "" -"If :const:`True`, any defects encountered will be raised as errors. If " -":const:`False` (the default), defects will be passed to the " -":meth:`register_defect` method." +"If :const:`True`, any defects encountered will be raised as errors. If :" +"const:`False` (the default), defects will be passed to the :meth:" +"`register_defect` method." msgstr "" #: ../../library/email.policy.rst:215 msgid "" -"If :const:`True`, lines starting with *\"From \"* in the body are escaped by" -" putting a ``>`` in front of them. This parameter is used when the message " -"is being serialized by a generator. Default: :const:`False`." +"If :const:`True`, lines starting with *\"From \"* in the body are escaped by " +"putting a ``>`` in front of them. This parameter is used when the message is " +"being serialized by a generator. Default: :const:`False`." msgstr "" #: ../../library/email.policy.rst:220 @@ -251,9 +252,9 @@ msgstr "" #: ../../library/email.policy.rst:226 msgid "" -"A factory function for constructing a new empty message object. Used by the" -" parser when building messages. Defaults to ``None``, in which case " -":class:`~email.message.Message` is used." +"A factory function for constructing a new empty message object. Used by the " +"parser when building messages. Defaults to ``None``, in which case :class:" +"`~email.message.Message` is used." msgstr "" #: ../../library/email.policy.rst:232 @@ -272,14 +273,14 @@ msgstr "" #: ../../library/email.policy.rst:243 msgid "" "The remaining :class:`Policy` methods are called by the email package code, " -"and are not intended to be called by an application using the email package." -" A custom policy must implement all of these methods." +"and are not intended to be called by an application using the email package. " +"A custom policy must implement all of these methods." msgstr "" #: ../../library/email.policy.rst:250 msgid "" -"Handle a *defect* found on *obj*. When the email package calls this method," -" *defect* will always be a subclass of :class:`~email.errors.Defect`." +"Handle a *defect* found on *obj*. When the email package calls this method, " +"*defect* will always be a subclass of :class:`~email.errors.Defect`." msgstr "" #: ../../library/email.policy.rst:254 @@ -291,8 +292,8 @@ msgstr "" #: ../../library/email.policy.rst:261 msgid "" -"Register a *defect* on *obj*. In the email package, *defect* will always be" -" a subclass of :class:`~email.errors.Defect`." +"Register a *defect* on *obj*. In the email package, *defect* will always be " +"a subclass of :class:`~email.errors.Defect`." msgstr "" #: ../../library/email.policy.rst:264 @@ -301,8 +302,8 @@ msgid "" "attribute of *obj*. When the email package calls :attr:`handle_defect`, " "*obj* will normally have a ``defects`` attribute that has an ``append`` " "method. Custom object types used with the email package (for example, " -"custom ``Message`` objects) should also provide such an attribute, otherwise" -" defects in parsed messages will raise unexpected errors." +"custom ``Message`` objects) should also provide such an attribute, otherwise " +"defects in parsed messages will raise unexpected errors." msgstr "" #: ../../library/email.policy.rst:274 @@ -311,8 +312,8 @@ msgstr "" #: ../../library/email.policy.rst:276 msgid "" -"Called when a header is added to an :class:`~email.message.EmailMessage` or " -":class:`~email.message.Message` object. If the returned value is not ``0`` " +"Called when a header is added to an :class:`~email.message.EmailMessage` or :" +"class:`~email.message.Message` object. If the returned value is not ``0`` " "or ``None``, and there are already a number of headers with the name *name* " "greater than or equal to the value returned, a :exc:`ValueError` is raised." msgstr "" @@ -320,8 +321,8 @@ msgstr "" #: ../../library/email.policy.rst:282 msgid "" "Because the default behavior of ``Message.__setitem__`` is to append the " -"value to the list of headers, it is easy to create duplicate headers without" -" realizing it. This method allows certain headers to be limited in the " +"value to the list of headers, it is easy to create duplicate headers without " +"realizing it. This method allows certain headers to be limited in the " "number of instances of that header that may be added to a ``Message`` " "programmatically. (The limit is not observed by the parser, which will " "faithfully produce as many headers as exist in the message being parsed.)" @@ -334,11 +335,11 @@ msgstr "" #: ../../library/email.policy.rst:295 msgid "" "The email package calls this method with a list of strings, each string " -"ending with the line separation characters found in the source being parsed." -" The first line includes the field header name and separator. All " +"ending with the line separation characters found in the source being " +"parsed. The first line includes the field header name and separator. All " "whitespace in the source is preserved. The method should return the " -"``(name, value)`` tuple that is to be stored in the ``Message`` to represent" -" the parsed header." +"``(name, value)`` tuple that is to be stored in the ``Message`` to represent " +"the parsed header." msgstr "" #: ../../library/email.policy.rst:302 @@ -364,8 +365,8 @@ msgid "" "The email package calls this method with the name and value provided by the " "application program when the application program is modifying a ``Message`` " "programmatically (as opposed to a ``Message`` created by a parser). The " -"method should return the ``(name, value)`` tuple that is to be stored in the" -" ``Message`` to represent the header." +"method should return the ``(name, value)`` tuple that is to be stored in the " +"``Message`` to represent the header." msgstr "" #: ../../library/email.policy.rst:321 @@ -397,9 +398,9 @@ msgid "" "The email package calls this method with the *name* and *value* currently " "stored in the ``Message`` for a given header. The method should return a " "string that represents that header \"folded\" correctly (according to the " -"policy settings) by composing the *name* with the *value* and inserting " -":attr:`linesep` characters at the appropriate places. See :rfc:`5322` for a" -" discussion of the rules for folding email headers." +"policy settings) by composing the *name* with the *value* and inserting :" +"attr:`linesep` characters at the appropriate places. See :rfc:`5322` for a " +"discussion of the rules for folding email headers." msgstr "" #: ../../library/email.policy.rst:354 @@ -422,8 +423,8 @@ msgstr "" #: ../../library/email.policy.rst:370 msgid "" -"This concrete :class:`Policy` provides behavior that is intended to be fully" -" compliant with the current email RFCs. These include (but are not limited " +"This concrete :class:`Policy` provides behavior that is intended to be fully " +"compliant with the current email RFCs. These include (but are not limited " "to) :rfc:`5322`, :rfc:`2047`, and the current MIME RFCs." msgstr "" @@ -431,8 +432,8 @@ msgstr "" msgid "" "This policy adds new header parsing and folding algorithms. Instead of " "simple strings, headers are ``str`` subclasses with attributes that depend " -"on the type of the field. The parsing and folding algorithm fully implement" -" :rfc:`2047` and :rfc:`5322`." +"on the type of the field. The parsing and folding algorithm fully " +"implement :rfc:`2047` and :rfc:`5322`." msgstr "" #: ../../library/email.policy.rst:379 @@ -453,25 +454,23 @@ msgstr "" #: ../../library/email.policy.rst:390 msgid "" -"If ``False``, follow :rfc:`5322`, supporting non-ASCII characters in headers" -" by encoding them as \"encoded words\". If ``True``, follow :rfc:`6532` and" -" use ``utf-8`` encoding for headers. Messages formatted in this way may be " -"passed to SMTP servers that support the ``SMTPUTF8`` extension " -"(:rfc:`6531`)." +"If ``False``, follow :rfc:`5322`, supporting non-ASCII characters in headers " +"by encoding them as \"encoded words\". If ``True``, follow :rfc:`6532` and " +"use ``utf-8`` encoding for headers. Messages formatted in this way may be " +"passed to SMTP servers that support the ``SMTPUTF8`` extension (:rfc:`6531`)." msgstr "" #: ../../library/email.policy.rst:399 msgid "" -"If the value for a header in the ``Message`` object originated from a " -":mod:`~email.parser` (as opposed to being set by a program), this attribute " +"If the value for a header in the ``Message`` object originated from a :mod:" +"`~email.parser` (as opposed to being set by a program), this attribute " "indicates whether or not a generator should refold that value when " -"transforming the message back into serialized form. The possible values " -"are:" +"transforming the message back into serialized form. The possible values are:" msgstr "" #: ../../library/email.policy.rst:406 msgid "``none``" -msgstr "" +msgstr "``none``" #: ../../library/email.policy.rst:406 msgid "all source values use original folding" @@ -479,7 +478,7 @@ msgstr "" #: ../../library/email.policy.rst:408 msgid "``long``" -msgstr "" +msgstr "``long``" #: ../../library/email.policy.rst:408 msgid "" @@ -506,20 +505,19 @@ msgid "" "returns a string subclass that represents that header. A default " "``header_factory`` (see :mod:`~email.headerregistry`) is provided that " "supports custom parsing for the various address and date :RFC:`5322` header " -"field types, and the major MIME header field stypes. Support for additional" -" custom parsing will be added in the future." +"field types, and the major MIME header field stypes. Support for additional " +"custom parsing will be added in the future." msgstr "" #: ../../library/email.policy.rst:430 msgid "" -"An object with at least two methods: get_content and set_content. When the " -":meth:`~email.message.EmailMessage.get_content` or " -":meth:`~email.message.EmailMessage.set_content` method of an " -":class:`~email.message.EmailMessage` object is called, it calls the " -"corresponding method of this object, passing it the message object as its " -"first argument, and any arguments or keywords that were passed to it as " -"additional arguments. By default ``content_manager`` is set to " -":data:`~email.contentmanager.raw_data_manager`." +"An object with at least two methods: get_content and set_content. When the :" +"meth:`~email.message.EmailMessage.get_content` or :meth:`~email.message." +"EmailMessage.set_content` method of an :class:`~email.message.EmailMessage` " +"object is called, it calls the corresponding method of this object, passing " +"it the message object as its first argument, and any arguments or keywords " +"that were passed to it as additional arguments. By default " +"``content_manager`` is set to :data:`~email.contentmanager.raw_data_manager`." msgstr "" #: ../../library/email.policy.rst:442 ../../library/email.policy.rst:600 @@ -537,16 +535,16 @@ msgstr "" #: ../../library/email.policy.rst:456 ../../library/email.policy.rst:606 msgid "" -"The name is parsed as everything up to the '``:``' and returned unmodified." -" The value is determined by stripping leading whitespace off the remainder " -"of the first line, joining all subsequent lines together, and stripping any " +"The name is parsed as everything up to the '``:``' and returned unmodified. " +"The value is determined by stripping leading whitespace off the remainder of " +"the first line, joining all subsequent lines together, and stripping any " "trailing carriage return or linefeed characters." msgstr "" #: ../../library/email.policy.rst:464 msgid "" -"The name is returned unchanged. If the input value has a ``name`` attribute" -" and it matches *name* ignoring case, the value is returned unchanged. " +"The name is returned unchanged. If the input value has a ``name`` attribute " +"and it matches *name* ignoring case, the value is returned unchanged. " "Otherwise the *name* and *value* are passed to ``header_factory``, and the " "resulting header object is returned as the value. In this case a " "``ValueError`` is raised if the input value contains CR or LF characters." @@ -564,9 +562,9 @@ msgstr "" #: ../../library/email.policy.rst:483 msgid "" "Header folding is controlled by the :attr:`refold_source` policy setting. A " -"value is considered to be a 'source value' if and only if it does not have a" -" ``name`` attribute (having a ``name`` attribute means it is a header object" -" of some sort). If a source value needs to be refolded according to the " +"value is considered to be a 'source value' if and only if it does not have a " +"``name`` attribute (having a ``name`` attribute means it is a header object " +"of some sort). If a source value needs to be refolded according to the " "policy, it is converted into a header object by passing the *name* and the " "*value* with any CR and LF characters removed to the ``header_factory``. " "Folding of a header object is done by calling its ``fold`` method with the " @@ -608,8 +606,8 @@ msgstr "" #: ../../library/email.policy.rst:520 msgid "" "An instance of ``EmailPolicy`` with all defaults unchanged. This policy " -"uses the standard Python ``\\n`` line endings rather than the RFC-correct " -"``\\r\\n``." +"uses the standard Python ``\\n`` line endings rather than the RFC-correct ``" +"\\r\\n``." msgstr "" #: ../../library/email.policy.rst:527 @@ -623,8 +621,8 @@ msgid "" "The same as ``SMTP`` except that :attr:`~EmailPolicy.utf8` is ``True``. " "Useful for serializing messages to a message store without using encoded " "words in the headers. Should only be used for SMTP transmission if the " -"sender or recipient addresses have non-ASCII characters (the " -":meth:`smtplib.SMTP.send_message` method handles this automatically)." +"sender or recipient addresses have non-ASCII characters (the :meth:`smtplib." +"SMTP.send_message` method handles this automatically)." msgstr "" #: ../../library/email.policy.rst:543 @@ -649,8 +647,8 @@ msgstr "" #: ../../library/email.policy.rst:559 msgid "" -"Setting a header on a :class:`~email.message.Message` results in that header" -" being parsed and a header object created." +"Setting a header on a :class:`~email.message.Message` results in that header " +"being parsed and a header object created." msgstr "" #: ../../library/email.policy.rst:562 @@ -662,39 +660,39 @@ msgstr "" #: ../../library/email.policy.rst:566 msgid "" "Any header object, or any header that is refolded due to the policy " -"settings, is folded using an algorithm that fully implements the RFC folding" -" algorithms, including knowing where encoded words are required and allowed." +"settings, is folded using an algorithm that fully implements the RFC folding " +"algorithms, including knowing where encoded words are required and allowed." msgstr "" #: ../../library/email.policy.rst:571 msgid "" -"From the application view, this means that any header obtained through the " -":class:`~email.message.EmailMessage` is a header object with extra " +"From the application view, this means that any header obtained through the :" +"class:`~email.message.EmailMessage` is a header object with extra " "attributes, whose string value is the fully decoded unicode value of the " "header. Likewise, a header may be assigned a new value, or a new header " -"created, using a unicode string, and the policy will take care of converting" -" the unicode string into the correct RFC encoded form." +"created, using a unicode string, and the policy will take care of converting " +"the unicode string into the correct RFC encoded form." msgstr "" #: ../../library/email.policy.rst:578 msgid "" -"The header objects and their attributes are described in " -":mod:`~email.headerregistry`." +"The header objects and their attributes are described in :mod:`~email." +"headerregistry`." msgstr "" #: ../../library/email.policy.rst:585 msgid "" "This concrete :class:`Policy` is the backward compatibility policy. It " -"replicates the behavior of the email package in Python 3.2. The " -":mod:`~email.policy` module also defines an instance of this class, " -":const:`compat32`, that is used as the default policy. Thus the default " -"behavior of the email package is to maintain compatibility with Python 3.2." +"replicates the behavior of the email package in Python 3.2. The :mod:" +"`~email.policy` module also defines an instance of this class, :const:" +"`compat32`, that is used as the default policy. Thus the default behavior " +"of the email package is to maintain compatibility with Python 3.2." msgstr "" #: ../../library/email.policy.rst:591 msgid "" -"The following attributes have values that are different from the " -":class:`Policy` default:" +"The following attributes have values that are different from the :class:" +"`Policy` default:" msgstr "" #: ../../library/email.policy.rst:597 @@ -707,33 +705,33 @@ msgstr "" #: ../../library/email.policy.rst:619 msgid "" -"If the value contains binary data, it is converted into a " -":class:`~email.header.Header` object using the ``unknown-8bit`` charset. " -"Otherwise it is returned unmodified." +"If the value contains binary data, it is converted into a :class:`~email." +"header.Header` object using the ``unknown-8bit`` charset. Otherwise it is " +"returned unmodified." msgstr "" #: ../../library/email.policy.rst:626 msgid "" "Headers are folded using the :class:`~email.header.Header` folding " -"algorithm, which preserves existing line breaks in the value, and wraps each" -" resulting line to the ``max_line_length``. Non-ASCII binary data are CTE " +"algorithm, which preserves existing line breaks in the value, and wraps each " +"resulting line to the ``max_line_length``. Non-ASCII binary data are CTE " "encoded using the ``unknown-8bit`` charset." msgstr "" #: ../../library/email.policy.rst:634 msgid "" "Headers are folded using the :class:`~email.header.Header` folding " -"algorithm, which preserves existing line breaks in the value, and wraps each" -" resulting line to the ``max_line_length``. If ``cte_type`` is ``7bit``, " -"non-ascii binary data is CTE encoded using the ``unknown-8bit`` charset. " +"algorithm, which preserves existing line breaks in the value, and wraps each " +"resulting line to the ``max_line_length``. If ``cte_type`` is ``7bit``, non-" +"ascii binary data is CTE encoded using the ``unknown-8bit`` charset. " "Otherwise the original source header is used, with its existing line breaks " "and any (RFC invalid) binary data it may contain." msgstr "" #: ../../library/email.policy.rst:644 msgid "" -"An instance of :class:`Compat32`, providing backward compatibility with the" -" behavior of the email package in Python 3.2." +"An instance of :class:`Compat32`, providing backward compatibility with the " +"behavior of the email package in Python 3.2." msgstr "" #: ../../library/email.policy.rst:649 diff --git a/library/email.util.po b/library/email.util.po deleted file mode 100644 index 3fbe8d7f3..000000000 --- a/library/email.util.po +++ /dev/null @@ -1,305 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -# Translators: -# Marco Rougeth , 2019 -# Claudio Rogerio Carvalho Filho , 2019 -# Italo Penaforte , 2019 -# Adorilson Bezerra , 2019 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.7\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-30 05:56+0900\n" -"PO-Revision-Date: 2019-09-01 03:16+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: ../../library/email.util.rst:2 -msgid ":mod:`email.utils`: Miscellaneous utilities" -msgstr ":mod:`email.utils`: Utilitários diversos" - -#: ../../library/email.util.rst:7 -msgid "**Source code:** :source:`Lib/email/utils.py`" -msgstr "**Código Fonte:** :source:`Lib/email/utils.py`" - -#: ../../library/email.util.rst:11 -msgid "" -"There are a couple of useful utilities provided in the :mod:`email.utils` " -"module:" -msgstr "" -"Existem alguns utilitários úteis fornecidos no :mod:`email.utils` module:" - -#: ../../library/email.util.rst:16 -msgid "" -"Return local time as an aware datetime object. If called without arguments," -" return current time. Otherwise *dt* argument should be a " -":class:`~datetime.datetime` instance, and it is converted to the local time " -"zone according to the system time zone database. If *dt* is naive (that is," -" ``dt.tzinfo`` is ``None``), it is assumed to be in local time. In this " -"case, a positive or zero value for *isdst* causes ``localtime`` to presume " -"initially that summer time (for example, Daylight Saving Time) is or is not " -"(respectively) in effect for the specified time. A negative value for " -"*isdst* causes the ``localtime`` to attempt to divine whether summer time is" -" in effect for the specified time." -msgstr "" -"Retorna a hora local como um objeto datetime com reconhecimento. Se chamado " -"sem argumentos, retorne a hora atual. Caso contrário, o argumento *dt* deve " -"ser uma instância: 'class': `~datetime.datetime` e é convertido para o fuso " -"horário local de acordo com o banco de dados de fuso horário do sistema. Se " -"*dt* é ingênuo (isto é, ``dt.tzinfo`` é ``None``), presume-se que seja na " -"hora local. Neste caso, um valor positivo ou zero para * isdst * faz com que" -" `` localtime`` presuma inicialmente que o horário de verão (por exemplo, " -"horário de verão) esteja ou não (respectivamente) em vigor pelo tempo " -"especificado. Um valor negativo para *isdst* faz com que o ``localtime`` " -"tente adivinhar se o horário de verão está em vigor pelo tempo especificado." - -#: ../../library/email.util.rst:32 -msgid "" -"Returns a string suitable for an :rfc:`2822`\\ -compliant :mailheader" -":`Message-ID` header. Optional *idstring* if given, is a string used to " -"strengthen the uniqueness of the message id. Optional *domain* if given " -"provides the portion of the msgid after the '@'. The default is the local " -"hostname. It is not normally necessary to override this default, but may be" -" useful certain cases, such as a constructing distributed system that uses a" -" consistent domain name across multiple hosts." -msgstr "" -"Retorna uma string adequada para um cabeçalho: rfc: `2822` \\ -compliant: " -"mailheader:` Message-ID`. O opcional * idstring *, se fornecido, é uma " -"string usada para fortalecer a exclusividade do ID da mensagem. Opcional * " -"domínio * se dado fornece a porção do msgid após o '@'. O padrão é o nome do" -" host local. Normalmente, não é necessário substituir esse padrão, mas pode " -"ser útil em alguns casos, como um sistema distribuído de construção que usa " -"um nome de domínio consistente em vários hosts." - -#: ../../library/email.util.rst:40 -msgid "Added the *domain* keyword." -msgstr "Adicionado a palavra-chave *domain*." - -#: ../../library/email.util.rst:44 -msgid "" -"The remaining functions are part of the legacy (``Compat32``) email API. " -"There is no need to directly use these with the new API, since the parsing " -"and formatting they provide is done automatically by the header parsing " -"machinery of the new API." -msgstr "" -"As funções restantes fazem parte da API de e-mail herdada (``Compat32``). " -"Não há necessidade de usá-las diretamente com a nova API, pois a análise e a" -" formatação fornecidas são feitas automaticamente pelo mecanismo de análise " -"de cabeçalhos da nova API." - -#: ../../library/email.util.rst:52 -msgid "" -"Return a new string with backslashes in *str* replaced by two backslashes, " -"and double quotes replaced by backslash-double quote." -msgstr "" -"Devolve uma nova string com barras invertidas em *str* substituídas por duas" -" barras invertidas e aspas duplas substituídas por aspas duplas invertidas." - -#: ../../library/email.util.rst:58 -msgid "" -"Return a new string which is an *unquoted* version of *str*. If *str* ends " -"and begins with double quotes, they are stripped off. Likewise if *str* " -"ends and begins with angle brackets, they are stripped off." -msgstr "" -"Retorna uma nova string que é uma *versão* sem nome *str*. Se *str* terminar" -" e começar com aspas duplas, elas serão removidas. Da mesma forma, se *str* " -"termina e começa com colchetes angulares, eles são removidos." - -#: ../../library/email.util.rst:65 -msgid "" -"Parse address -- which should be the value of some address-containing field " -"such as :mailheader:`To` or :mailheader:`Cc` -- into its constituent " -"*realname* and *email address* parts. Returns a tuple of that information, " -"unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned." -msgstr "" -"Analisar endereço -- que deve ser o valor de algum campo contendo endereço, " -"como: mailheader: `To` ou: mailheader:`Cc` - em suas partes constituent " -"*realname * e *email address*. Retorna uma tupla daquela informação, a menos" -" que a análise falhe, caso em que uma 2-tupla de ``('', '')`` é retornada." - -#: ../../library/email.util.rst:73 -msgid "" -"The inverse of :meth:`parseaddr`, this takes a 2-tuple of the form " -"``(realname, email_address)`` and returns the string value suitable for a " -":mailheader:`To` or :mailheader:`Cc` header. If the first element of *pair*" -" is false, then the second element is returned unmodified." -msgstr "" -"O inverso de: meth: `parseaddr`, isto leva uma 2-tupla do formulário " -"``(realname, email_address)`` e retorna o valor de string adequado para um " -"cabeçalho: mailheader:`To` ou: mailheader: `Cc` . Se o primeiro elemento de " -"*pair* for falso, o segundo elemento será retornado sem modificações." - -#: ../../library/email.util.rst:78 -msgid "" -"Optional *charset* is the character set that will be used in the :rfc:`2047`" -" encoding of the ``realname`` if the ``realname`` contains non-ASCII " -"characters. Can be an instance of :class:`str` or a " -":class:`~email.charset.Charset`. Defaults to ``utf-8``." -msgstr "" -"Opcional *charset* é o conjunto de caracteres que será usado na codificação " -":rfc:`2047` do` `realname`` se o``realname`` contiver caracteres não-ASCII. " -"Pode ser uma instância de: classe: `str` ou a: class:` ~ " -"email.charset.Charset`. O padrão é ``utf-8``." - -#: ../../library/email.util.rst:83 -msgid "Added the *charset* option." -msgstr "Adicionado a opção *charset*." - -#: ../../library/email.util.rst:89 -msgid "" -"This method returns a list of 2-tuples of the form returned by " -"``parseaddr()``. *fieldvalues* is a sequence of header field values as might" -" be returned by :meth:`Message.get_all `. " -"Here's a simple example that gets all the recipients of a message::" -msgstr "" -"Este método retorna uma lista de 2 tuplas do formulário retornado por " -"``parseaddr ()``. * fieldvalues * é uma sequência de valores do campo de " -"cabeçalho que pode ser retornada por:meth: `Message.get_all " -"`. Aqui está um exemplo simples que recebe " -"todos os destinatários de uma message::" - -#: ../../library/email.util.rst:105 -msgid "" -"Attempts to parse a date according to the rules in :rfc:`2822`. however, " -"some mailers don't follow that format as specified, so :func:`parsedate` " -"tries to guess correctly in such cases. *date* is a string containing an " -":rfc:`2822` date, such as ``\"Mon, 20 Nov 1995 19:12:08 -0500\"``. If it " -"succeeds in parsing the date, :func:`parsedate` returns a 9-tuple that can " -"be passed directly to :func:`time.mktime`; otherwise ``None`` will be " -"returned. Note that indexes 6, 7, and 8 of the result tuple are not usable." -msgstr "" -"Tenta analisar uma data de acordo com as regras em :rfc:`2822`. no entanto, " -"alguns mailers não seguem esse formato conforme especificado, portanto " -":func:`parsedate` tenta adivinhar corretamente em tais casos. *date* é uma " -"string contendo uma data :rfc:`2822`, como``\" Mon, 20 Nov 1995 19:12:08 " -"-0500 \"``. Se conseguir analisar a data, :func:`parsedate` retorna uma " -"9-tupla que pode ser passada diretamente para :func:`time.mktime`; caso " -"contrário, ``None`` será retornado. Observe que os índices 6, 7 e 8 da tupla" -" de resultados não são utilizáveis." - -#: ../../library/email.util.rst:116 -msgid "" -"Performs the same function as :func:`parsedate`, but returns either ``None``" -" or a 10-tuple; the first 9 elements make up a tuple that can be passed " -"directly to :func:`time.mktime`, and the tenth is the offset of the date's " -"timezone from UTC (which is the official term for Greenwich Mean Time) [#]_." -" If the input string has no timezone, the last element of the tuple " -"returned is ``None``. Note that indexes 6, 7, and 8 of the result tuple are" -" not usable." -msgstr "" - -#: ../../library/email.util.rst:126 -msgid "" -"The inverse of :func:`format_datetime`. Performs the same function as " -":func:`parsedate`, but on success returns a :mod:`~datetime.datetime`. If " -"the input date has a timezone of ``-0000``, the ``datetime`` will be a naive" -" ``datetime``, and if the date is conforming to the RFCs it will represent a" -" time in UTC but with no indication of the actual source timezone of the " -"message the date comes from. If the input date has any other valid timezone" -" offset, the ``datetime`` will be an aware ``datetime`` with the " -"corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`." -msgstr "" - -#: ../../library/email.util.rst:140 -msgid "" -"Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp " -"(seconds since the Epoch). If the timezone item in the tuple is ``None``, " -"assume local time." -msgstr "" - -#: ../../library/email.util.rst:147 -msgid "Returns a date string as per :rfc:`2822`, e.g.::" -msgstr "" - -#: ../../library/email.util.rst:151 -msgid "" -"Optional *timeval* if given is a floating point time value as accepted by " -":func:`time.gmtime` and :func:`time.localtime`, otherwise the current time " -"is used." -msgstr "" - -#: ../../library/email.util.rst:155 -msgid "" -"Optional *localtime* is a flag that when ``True``, interprets *timeval*, and" -" returns a date relative to the local timezone instead of UTC, properly " -"taking daylight savings time into account. The default is ``False`` meaning " -"UTC is used." -msgstr "" - -#: ../../library/email.util.rst:160 -msgid "" -"Optional *usegmt* is a flag that when ``True``, outputs a date string with " -"the timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. " -"This is needed for some protocols (such as HTTP). This only applies when " -"*localtime* is ``False``. The default is ``False``." -msgstr "" - -#: ../../library/email.util.rst:168 -msgid "" -"Like ``formatdate``, but the input is a :mod:`datetime` instance. If it is " -"a naive datetime, it is assumed to be \"UTC with no information about the " -"source timezone\", and the conventional ``-0000`` is used for the timezone. " -"If it is an aware ``datetime``, then the numeric timezone offset is used. If" -" it is an aware timezone with offset zero, then *usegmt* may be set to " -"``True``, in which case the string ``GMT`` is used instead of the numeric " -"timezone offset. This provides a way to generate standards conformant HTTP " -"date headers." -msgstr "" - -#: ../../library/email.util.rst:182 -msgid "Decode the string *s* according to :rfc:`2231`." -msgstr "" - -#: ../../library/email.util.rst:187 -msgid "" -"Encode the string *s* according to :rfc:`2231`. Optional *charset* and " -"*language*, if given is the character set name and language name to use. If" -" neither is given, *s* is returned as-is. If *charset* is given but " -"*language* is not, the string is encoded using the empty string for " -"*language*." -msgstr "" - -#: ../../library/email.util.rst:195 -msgid "" -"When a header parameter is encoded in :rfc:`2231` format, " -":meth:`Message.get_param ` may return a " -"3-tuple containing the character set, language, and value. " -":func:`collapse_rfc2231_value` turns this into a unicode string. Optional " -"*errors* is passed to the *errors* argument of :class:`str`'s " -":func:`~str.encode` method; it defaults to ``'replace'``. Optional " -"*fallback_charset* specifies the character set to use if the one in the " -":rfc:`2231` header is not known by Python; it defaults to ``'us-ascii'``." -msgstr "" - -#: ../../library/email.util.rst:204 -msgid "" -"For convenience, if the *value* passed to :func:`collapse_rfc2231_value` is " -"not a tuple, it should be a string and it is returned unquoted." -msgstr "" - -#: ../../library/email.util.rst:210 -msgid "" -"Decode parameters list according to :rfc:`2231`. *params* is a sequence of " -"2-tuples containing elements of the form ``(content-type, string-value)``." -msgstr "" - -#: ../../library/email.util.rst:215 -msgid "Footnotes" -msgstr "Notas de rodapé" - -#: ../../library/email.util.rst:216 -msgid "" -"Note that the sign of the timezone offset is the opposite of the sign of the" -" ``time.timezone`` variable for the same timezone; the latter variable " -"follows the POSIX standard while this module follows :rfc:`2822`." -msgstr "" diff --git a/library/email.utils.po b/library/email.utils.po index 3774382cb..d0080c022 100644 --- a/library/email.utils.po +++ b/library/email.utils.po @@ -1,36 +1,47 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Marco Rougeth , 2019 +# Claudio Rogerio Carvalho Filho , 2019 +# Italo Penaforte , 2019 +# Adorilson Bezerra , 2019 +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:18+0000\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/library/email.utils.rst:2 +#: ../../library/email.utils.rst:2 msgid ":mod:`email.utils`: Miscellaneous utilities" -msgstr "" +msgstr ":mod:`email.utils`: Utilitários diversos" -#: ../Doc/library/email.utils.rst:7 +#: ../../library/email.utils.rst:7 msgid "**Source code:** :source:`Lib/email/utils.py`" -msgstr "" +msgstr "**Código Fonte:** :source:`Lib/email/utils.py`" -#: ../Doc/library/email.utils.rst:11 +#: ../../library/email.utils.rst:11 msgid "" "There are a couple of useful utilities provided in the :mod:`email.utils` " "module:" msgstr "" +"Existem alguns utilitários úteis fornecidos no :mod:`email.utils` module:" -#: ../Doc/library/email.utils.rst:16 +#: ../../library/email.utils.rst:16 msgid "" "Return local time as an aware datetime object. If called without arguments, " "return current time. Otherwise *dt* argument should be a :class:`~datetime." @@ -43,8 +54,18 @@ msgid "" "``localtime`` to attempt to divine whether summer time is in effect for the " "specified time." msgstr "" +"Retorna a hora local como um objeto datetime com reconhecimento. Se chamado " +"sem argumentos, retorne a hora atual. Caso contrário, o argumento *dt* deve " +"ser uma instância: 'class': `~datetime.datetime` e é convertido para o fuso " +"horário local de acordo com o banco de dados de fuso horário do sistema. Se " +"*dt* é ingênuo (isto é, ``dt.tzinfo`` é ``None``), presume-se que seja na " +"hora local. Neste caso, um valor positivo ou zero para * isdst * faz com que " +"`` localtime`` presuma inicialmente que o horário de verão (por exemplo, " +"horário de verão) esteja ou não (respectivamente) em vigor pelo tempo " +"especificado. Um valor negativo para *isdst* faz com que o ``localtime`` " +"tente adivinhar se o horário de verão está em vigor pelo tempo especificado." -#: ../Doc/library/email.utils.rst:32 +#: ../../library/email.utils.rst:32 msgid "" "Returns a string suitable for an :rfc:`2822`\\ -compliant :mailheader:" "`Message-ID` header. Optional *idstring* if given, is a string used to " @@ -54,69 +75,102 @@ msgid "" "useful certain cases, such as a constructing distributed system that uses a " "consistent domain name across multiple hosts." msgstr "" +"Retorna uma string adequada para um cabeçalho: rfc: `2822` \\ -compliant: " +"mailheader:` Message-ID`. O opcional * idstring *, se fornecido, é uma " +"string usada para fortalecer a exclusividade do ID da mensagem. Opcional * " +"domínio * se dado fornece a porção do msgid após o '@'. O padrão é o nome do " +"host local. Normalmente, não é necessário substituir esse padrão, mas pode " +"ser útil em alguns casos, como um sistema distribuído de construção que usa " +"um nome de domínio consistente em vários hosts." -#: ../Doc/library/email.utils.rst:40 +#: ../../library/email.utils.rst:40 msgid "Added the *domain* keyword." -msgstr "Adicionado o argumento *domain*." +msgstr "Adicionado a palavra-chave *domain*." -#: ../Doc/library/email.utils.rst:44 +#: ../../library/email.utils.rst:44 msgid "" "The remaining functions are part of the legacy (``Compat32``) email API. " "There is no need to directly use these with the new API, since the parsing " "and formatting they provide is done automatically by the header parsing " "machinery of the new API." msgstr "" +"As funções restantes fazem parte da API de e-mail herdada (``Compat32``). " +"Não há necessidade de usá-las diretamente com a nova API, pois a análise e a " +"formatação fornecidas são feitas automaticamente pelo mecanismo de análise " +"de cabeçalhos da nova API." -#: ../Doc/library/email.utils.rst:52 +#: ../../library/email.utils.rst:52 msgid "" "Return a new string with backslashes in *str* replaced by two backslashes, " "and double quotes replaced by backslash-double quote." msgstr "" +"Devolve uma nova string com barras invertidas em *str* substituídas por duas " +"barras invertidas e aspas duplas substituídas por aspas duplas invertidas." -#: ../Doc/library/email.utils.rst:58 +#: ../../library/email.utils.rst:58 msgid "" "Return a new string which is an *unquoted* version of *str*. If *str* ends " "and begins with double quotes, they are stripped off. Likewise if *str* " "ends and begins with angle brackets, they are stripped off." msgstr "" +"Retorna uma nova string que é uma *versão* sem nome *str*. Se *str* terminar " +"e começar com aspas duplas, elas serão removidas. Da mesma forma, se *str* " +"termina e começa com colchetes angulares, eles são removidos." -#: ../Doc/library/email.utils.rst:65 +#: ../../library/email.utils.rst:65 msgid "" "Parse address -- which should be the value of some address-containing field " "such as :mailheader:`To` or :mailheader:`Cc` -- into its constituent " "*realname* and *email address* parts. Returns a tuple of that information, " "unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned." msgstr "" +"Analisar endereço -- que deve ser o valor de algum campo contendo endereço, " +"como: mailheader: `To` ou: mailheader:`Cc` - em suas partes constituent " +"*realname * e *email address*. Retorna uma tupla daquela informação, a menos " +"que a análise falhe, caso em que uma 2-tupla de ``('', '')`` é retornada." -#: ../Doc/library/email.utils.rst:73 +#: ../../library/email.utils.rst:73 msgid "" "The inverse of :meth:`parseaddr`, this takes a 2-tuple of the form " "``(realname, email_address)`` and returns the string value suitable for a :" "mailheader:`To` or :mailheader:`Cc` header. If the first element of *pair* " "is false, then the second element is returned unmodified." msgstr "" +"O inverso de: meth: `parseaddr`, isto leva uma 2-tupla do formulário " +"``(realname, email_address)`` e retorna o valor de string adequado para um " +"cabeçalho: mailheader:`To` ou: mailheader: `Cc` . Se o primeiro elemento de " +"*pair* for falso, o segundo elemento será retornado sem modificações." -#: ../Doc/library/email.utils.rst:78 +#: ../../library/email.utils.rst:78 msgid "" "Optional *charset* is the character set that will be used in the :rfc:`2047` " "encoding of the ``realname`` if the ``realname`` contains non-ASCII " "characters. Can be an instance of :class:`str` or a :class:`~email.charset." "Charset`. Defaults to ``utf-8``." msgstr "" +"Opcional *charset* é o conjunto de caracteres que será usado na codificação :" +"rfc:`2047` do` `realname`` se o``realname`` contiver caracteres não-ASCII. " +"Pode ser uma instância de: classe: `str` ou a: class:` ~ email.charset." +"Charset`. O padrão é ``utf-8``." -#: ../Doc/library/email.utils.rst:83 +#: ../../library/email.utils.rst:83 msgid "Added the *charset* option." msgstr "Adicionado a opção *charset*." -#: ../Doc/library/email.utils.rst:89 +#: ../../library/email.utils.rst:89 msgid "" "This method returns a list of 2-tuples of the form returned by " "``parseaddr()``. *fieldvalues* is a sequence of header field values as might " "be returned by :meth:`Message.get_all `. " "Here's a simple example that gets all the recipients of a message::" msgstr "" +"Este método retorna uma lista de 2 tuplas do formulário retornado por " +"``parseaddr ()``. * fieldvalues * é uma sequência de valores do campo de " +"cabeçalho que pode ser retornada por:meth: `Message.get_all `. Aqui está um exemplo simples que recebe todos os " +"destinatários de uma message::" -#: ../Doc/library/email.utils.rst:105 +#: ../../library/email.utils.rst:105 msgid "" "Attempts to parse a date according to the rules in :rfc:`2822`. however, " "some mailers don't follow that format as specified, so :func:`parsedate` " @@ -126,19 +180,27 @@ msgid "" "be passed directly to :func:`time.mktime`; otherwise ``None`` will be " "returned. Note that indexes 6, 7, and 8 of the result tuple are not usable." msgstr "" +"Tenta analisar uma data de acordo com as regras em :rfc:`2822`. no entanto, " +"alguns mailers não seguem esse formato conforme especificado, portanto :func:" +"`parsedate` tenta adivinhar corretamente em tais casos. *date* é uma string " +"contendo uma data :rfc:`2822`, como``\" Mon, 20 Nov 1995 19:12:08 -0500 " +"\"``. Se conseguir analisar a data, :func:`parsedate` retorna uma 9-tupla " +"que pode ser passada diretamente para :func:`time.mktime`; caso contrário, " +"``None`` será retornado. Observe que os índices 6, 7 e 8 da tupla de " +"resultados não são utilizáveis." -#: ../Doc/library/email.utils.rst:116 +#: ../../library/email.utils.rst:116 msgid "" "Performs the same function as :func:`parsedate`, but returns either ``None`` " "or a 10-tuple; the first 9 elements make up a tuple that can be passed " "directly to :func:`time.mktime`, and the tenth is the offset of the date's " "timezone from UTC (which is the official term for Greenwich Mean Time) " "[#]_. If the input string has no timezone, the last element of the tuple " -"returned is ``None``. Note that indexes 6, 7, and 8 of the result tuple are " -"not usable." +"returned is ``0``, which represents UTC. Note that indexes 6, 7, and 8 of " +"the result tuple are not usable." msgstr "" -#: ../Doc/library/email.utils.rst:126 +#: ../../library/email.utils.rst:126 msgid "" "The inverse of :func:`format_datetime`. Performs the same function as :func:" "`parsedate`, but on success returns a :mod:`~datetime.datetime`. If the " @@ -150,33 +212,37 @@ msgid "" "corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`." msgstr "" -#: ../Doc/library/email.utils.rst:140 +#: ../../library/email.utils.rst:140 msgid "" "Turn a 10-tuple as returned by :func:`parsedate_tz` into a UTC timestamp " "(seconds since the Epoch). If the timezone item in the tuple is ``None``, " "assume local time." msgstr "" -#: ../Doc/library/email.utils.rst:147 +#: ../../library/email.utils.rst:147 msgid "Returns a date string as per :rfc:`2822`, e.g.::" msgstr "" -#: ../Doc/library/email.utils.rst:151 +#: ../../library/email.utils.rst:151 msgid "" "Optional *timeval* if given is a floating point time value as accepted by :" "func:`time.gmtime` and :func:`time.localtime`, otherwise the current time is " "used." msgstr "" -#: ../Doc/library/email.utils.rst:155 +#: ../../library/email.utils.rst:155 msgid "" "Optional *localtime* is a flag that when ``True``, interprets *timeval*, and " "returns a date relative to the local timezone instead of UTC, properly " "taking daylight savings time into account. The default is ``False`` meaning " "UTC is used." msgstr "" +"Há um sinalizador opcional *localtime*, que, quando é ``True``, interpreta " +"*timeval* e retorna uma data relativa ao fuso horário local em vez do UTC, " +"levando em consideração o horário de verão. O padrão é ``False``, o que " +"significa que o UTC é usado." -#: ../Doc/library/email.utils.rst:160 +#: ../../library/email.utils.rst:160 msgid "" "Optional *usegmt* is a flag that when ``True``, outputs a date string with " "the timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. " @@ -184,7 +250,7 @@ msgid "" "*localtime* is ``False``. The default is ``False``." msgstr "" -#: ../Doc/library/email.utils.rst:168 +#: ../../library/email.utils.rst:168 msgid "" "Like ``formatdate``, but the input is a :mod:`datetime` instance. If it is " "a naive datetime, it is assumed to be \"UTC with no information about the " @@ -196,11 +262,11 @@ msgid "" "date headers." msgstr "" -#: ../Doc/library/email.utils.rst:182 +#: ../../library/email.utils.rst:182 msgid "Decode the string *s* according to :rfc:`2231`." msgstr "" -#: ../Doc/library/email.utils.rst:187 +#: ../../library/email.utils.rst:187 msgid "" "Encode the string *s* according to :rfc:`2231`. Optional *charset* and " "*language*, if given is the character set name and language name to use. If " @@ -209,7 +275,7 @@ msgid "" "*language*." msgstr "" -#: ../Doc/library/email.utils.rst:195 +#: ../../library/email.utils.rst:195 msgid "" "When a header parameter is encoded in :rfc:`2231` format, :meth:`Message." "get_param ` may return a 3-tuple containing " @@ -221,23 +287,23 @@ msgid "" "defaults to ``'us-ascii'``." msgstr "" -#: ../Doc/library/email.utils.rst:204 +#: ../../library/email.utils.rst:204 msgid "" "For convenience, if the *value* passed to :func:`collapse_rfc2231_value` is " "not a tuple, it should be a string and it is returned unquoted." msgstr "" -#: ../Doc/library/email.utils.rst:210 +#: ../../library/email.utils.rst:210 msgid "" "Decode parameters list according to :rfc:`2231`. *params* is a sequence of " "2-tuples containing elements of the form ``(content-type, string-value)``." msgstr "" -#: ../Doc/library/email.utils.rst:215 +#: ../../library/email.utils.rst:215 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../Doc/library/email.utils.rst:216 +#: ../../library/email.utils.rst:216 msgid "" "Note that the sign of the timezone offset is the opposite of the sign of the " "``time.timezone`` variable for the same timezone; the latter variable " diff --git a/library/ensurepip.po b/library/ensurepip.po index c3f846d55..c5c6b824a 100644 --- a/library/ensurepip.po +++ b/library/ensurepip.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,7 +24,7 @@ msgstr "" #: ../../library/ensurepip.rst:2 msgid ":mod:`ensurepip` --- Bootstrapping the ``pip`` installer" -msgstr "" +msgstr ":mod:`ensurepip` --- Inicialização do instalador ``pip``" #: ../../library/ensurepip.rst:12 msgid "" @@ -30,6 +35,12 @@ msgid "" "is bundled with maintenance and feature releases of the CPython reference " "interpreter." msgstr "" +"O pacote :mod:`ensurepip` fornece suporte a fazer bootstrapping (isto é, " +"inicializar) o instalador ``pip`` em uma instalação existente do Python ou " +"em um ambiente virtual. Essa abordagem de bootstrapping reflete o fato de " +"que ``pip`` é um projeto independente com seu próprio ciclo de lançamento, e " +"a última versão estável disponível é fornecida com manutenção e lançamentos " +"de recursos do interpretador de referência CPython." #: ../../library/ensurepip.rst:19 msgid "" @@ -38,49 +49,61 @@ msgid "" "needed if installing ``pip`` was skipped when installing Python (or when " "creating a virtual environment) or after explicitly uninstalling ``pip``." msgstr "" +"Na maioria dos casos, os usuários finais do Python não precisam chamar esse " +"módulo diretamente (como ``pip`` deve ser inicializado por padrão), mas pode " +"ser necessário se a instalação do ``pip`` foi ignorada ao instalar o Python " +"(ou ao criar um ambiente virtual) ou após desinstalar explicitamente ``pip``." #: ../../library/ensurepip.rst:27 msgid "" "This module *does not* access the internet. All of the components needed to " "bootstrap ``pip`` are included as internal parts of the package." msgstr "" +"Este módulo *não* acessa a Internet. Todos os componentes necessários para " +"iniciar o ``pip`` estão incluídos como partes internas do pacote." #: ../../library/ensurepip.rst:34 msgid ":ref:`installing-index`" -msgstr "" +msgstr ":ref:`installing-index`" #: ../../library/ensurepip.rst:34 msgid "The end user guide for installing Python packages" -msgstr "" +msgstr "O guia do usuário final para instalar pacotes Python" #: ../../library/ensurepip.rst:36 msgid ":pep:`453`: Explicit bootstrapping of pip in Python installations" -msgstr "" +msgstr ":pep:`453`: Inicialização explícita de pip em instalações Python" #: ../../library/ensurepip.rst:37 msgid "The original rationale and specification for this module." -msgstr "" +msgstr "A justificativa e especificação originais para este módulo." #: ../../library/ensurepip.rst:41 msgid "Command line interface" -msgstr "" +msgstr "Interface de linha de comando" #: ../../library/ensurepip.rst:43 msgid "" "The command line interface is invoked using the interpreter's ``-m`` switch." msgstr "" +"A interface da linha de comandos é chamada usando a opção ``-m`` do " +"interpretador." #: ../../library/ensurepip.rst:45 msgid "The simplest possible invocation is::" -msgstr "" +msgstr "A invocação mais simples possível é::" #: ../../library/ensurepip.rst:49 msgid "" "This invocation will install ``pip`` if it is not already installed, but " "otherwise does nothing. To ensure the installed version of ``pip`` is at " -"least as recent as the one bundled with ``ensurepip``, pass the " -"``--upgrade`` option::" +"least as recent as the one bundled with ``ensurepip``, pass the ``--" +"upgrade`` option::" msgstr "" +"Essa invocação instalará ``pip`` se ainda não estiver instalada, mas, caso " +"contrário, não fará nada. Para garantir que a versão instalada do ``pip`` " +"seja pelo menos tão recente quanto a que acompanha o pacote ``ensurepip``, " +"passe a opção ``--upgrade``:" #: ../../library/ensurepip.rst:56 msgid "" @@ -89,13 +112,20 @@ msgid "" "virtual environment). The installation location can be controlled through " "two additional command line options:" msgstr "" +"Por padrão, ``pip`` é instalado no ambiente virtual atual (se houver um " +"ativo) ou nos pacotes de sites do sistema (se não houver um ambiente virtual " +"ativo). O local da instalação pode ser controlado através de duas opções " +"adicionais de linha de comando:" #: ../../library/ensurepip.rst:61 msgid "" "``--root ``: Installs ``pip`` relative to the given root directory " -"rather than the root of the currently active virtual environment (if any) or" -" the default root for the current Python installation." +"rather than the root of the currently active virtual environment (if any) or " +"the default root for the current Python installation." msgstr "" +"``--root ``: Instala ``pip`` em relação ao diretório raiz fornecido, em " +"vez da raiz do ambiente virtual atualmente ativo (se houver) ou a raiz " +"padrão da instalação atual do Python." #: ../../library/ensurepip.rst:64 msgid "" @@ -103,51 +133,61 @@ msgid "" "than globally for the current Python installation (this option is not " "permitted inside an active virtual environment)." msgstr "" +"``--user``: Instala ``pip`` no diretório de pacotes do site do usuário em " +"vez de globalmente para a instalação atual do Python (essa opção não é " +"permitida dentro de um ambiente virtual ativo)." #: ../../library/ensurepip.rst:68 msgid "" -"By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where X.Y" -" stands for the version of Python used to invoke ``ensurepip``). The scripts" -" installed can be controlled through two additional command line options:" +"By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where X.Y " +"stands for the version of Python used to invoke ``ensurepip``). The scripts " +"installed can be controlled through two additional command line options:" msgstr "" +"Por padrão, os scripts ``pipX`` e ``pipX.Y`` serão instalados (onde X.Y " +"representa a versão do Python usada para invocar ``ensurepip``). Os scripts " +"instalados podem ser controlados através de duas opções adicionais de linha " +"de comando:" #: ../../library/ensurepip.rst:73 msgid "" "``--altinstall``: if an alternate installation is requested, the ``pipX`` " "script will *not* be installed." msgstr "" +"``--altinstall``: se uma instalação alternativa for solicitada, o script " +"``pipX`` *não* será instalado." -#: ../../library/ensurepip.rst:77 -msgid "``--default-pip``: if a \"default pip\" installation is requested, the" -msgstr "" - -#: ../../library/ensurepip.rst:77 +#: ../../library/ensurepip.rst:76 msgid "" +"``--default-pip``: if a \"default pip\" installation is requested, the " "``pip`` script will be installed in addition to the two regular scripts." msgstr "" +"``--default-pip``: se uma instalação \"pip padrão\" for solicitada, o script " +"``pip`` será instalado junto com os dois scripts comuns." #: ../../library/ensurepip.rst:79 msgid "" "Providing both of the script selection options will trigger an exception." -msgstr "" +msgstr "Fornecer as duas opções de seleção de script acionará uma exceção." #: ../../library/ensurepip.rst:83 msgid "Module API" -msgstr "" +msgstr "API do módulo" #: ../../library/ensurepip.rst:85 msgid ":mod:`ensurepip` exposes two functions for programmatic use:" -msgstr "" +msgstr ":mod:`ensurepip` expõe duas funções para uso programático:" #: ../../library/ensurepip.rst:89 msgid "" "Returns a string specifying the bundled version of pip that will be " "installed when bootstrapping an environment." msgstr "" +"Retorna uma sequência que especifica a versão em pacote do pip que será " +"instalado ao inicializar um ambiente." #: ../../library/ensurepip.rst:96 msgid "Bootstraps ``pip`` into the current or designated environment." -msgstr "" +msgstr "Inicializa ``pip`` no ambiente atual ou designado." #: ../../library/ensurepip.rst:98 msgid "" @@ -155,57 +195,77 @@ msgid "" "*root* is ``None``, then installation uses the default install location for " "the current environment." msgstr "" +"*root* especifica um diretório raiz alternativo para instalar em relação a. " +"Se *root* for ``None``, a instalação utilizará o local de instalação padrão " +"para o ambiente atual." #: ../../library/ensurepip.rst:102 msgid "" -"*upgrade* indicates whether or not to upgrade an existing installation of an" -" earlier version of ``pip`` to the bundled version." +"*upgrade* indicates whether or not to upgrade an existing installation of an " +"earlier version of ``pip`` to the bundled version." msgstr "" +"*upgrade* indica se deve ou não atualizar uma instalação existente de uma " +"versão anterior do ``pip`` para a versão empacotada." #: ../../library/ensurepip.rst:105 msgid "" "*user* indicates whether to use the user scheme rather than installing " "globally." msgstr "" +"*user* indica se é necessário usar o esquema do usuário em vez de instalar " +"globalmente." #: ../../library/ensurepip.rst:108 msgid "" -"By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where X.Y" -" stands for the current version of Python)." +"By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where X.Y " +"stands for the current version of Python)." msgstr "" +"Por padrão, os scripts ``pipX`` e ``pipX.Y`` serão instalados (onde X.Y " +"significa a versão atual do Python)." #: ../../library/ensurepip.rst:111 msgid "If *altinstall* is set, then ``pipX`` will *not* be installed." -msgstr "" +msgstr "Se *altinstall* estiver definido, o ``pipX`` *não* será instalado." #: ../../library/ensurepip.rst:113 msgid "" "If *default_pip* is set, then ``pip`` will be installed in addition to the " "two regular scripts." msgstr "" +"Se *default_pip* estiver definido, o ``pip`` será instalado além dos dois " +"scripts comuns." #: ../../library/ensurepip.rst:116 msgid "" "Setting both *altinstall* and *default_pip* will trigger :exc:`ValueError`." -msgstr "" +msgstr "Definir *altinstall* e *default_pip* acionará :exc:`ValueError`." #: ../../library/ensurepip.rst:119 msgid "" "*verbosity* controls the level of output to :data:`sys.stdout` from the " "bootstrapping operation." msgstr "" +"*verbosity* controla o nível de saída para :data:`sys.stdout` da operação de " +"inicialização." #: ../../library/ensurepip.rst:124 msgid "" -"The bootstrapping process has side effects on both ``sys.path`` and " -"``os.environ``. Invoking the command line interface in a subprocess instead " +"The bootstrapping process has side effects on both ``sys.path`` and ``os." +"environ``. Invoking the command line interface in a subprocess instead " "allows these side effects to be avoided." msgstr "" +"O processo de inicialização tem efeitos colaterais em ``sys.path`` e ``os." +"environ``. Invocar a interface da linha de comandos em um subprocesso " +"permite que esses efeitos colaterais sejam evitados." #: ../../library/ensurepip.rst:130 msgid "" "The bootstrapping process may install additional modules required by " -"``pip``, but other software should not assume those dependencies will always" -" be present by default (as the dependencies may be removed in a future " +"``pip``, but other software should not assume those dependencies will always " +"be present by default (as the dependencies may be removed in a future " "version of ``pip``)." msgstr "" +"O processo de inicialização pode instalar módulos adicionais exigidos pelo " +"``pip``, mas outro software não deve assumir que essas dependências sempre " +"estarão presentes por padrão (como as dependências podem ser removidas em " +"uma versão futura do ``pip``)." diff --git a/library/enum.po b/library/enum.po index 5c80c9867..33312526f 100644 --- a/library/enum.po +++ b/library/enum.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Cauê Baasch de Souza , 2019 # Misael borges , 2019 # felipe caridade , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,8 +42,8 @@ msgid "" "identity, and the enumeration itself can be iterated over." msgstr "" "Uma enumeração é um conjunto de nomes simbólicos (membros) vinculados a " -"valores únicos e constantes. Dentro de uma enumeração, os membros podem ser" -" comparados por identidade, e a enumeração em si pode ser iterada." +"valores únicos e constantes. Dentro de uma enumeração, os membros podem ser " +"comparados por identidade, e a enumeração em si pode ser iterada." #: ../../library/enum.rst:24 msgid "Module Contents" @@ -50,34 +52,34 @@ msgstr "Conteúdo do Módulo" #: ../../library/enum.rst:26 msgid "" "This module defines four enumeration classes that can be used to define " -"unique sets of names and values: :class:`Enum`, :class:`IntEnum`, " -":class:`Flag`, and :class:`IntFlag`. It also defines one decorator, " -":func:`unique`, and one helper, :class:`auto`." +"unique sets of names and values: :class:`Enum`, :class:`IntEnum`, :class:" +"`Flag`, and :class:`IntFlag`. It also defines one decorator, :func:" +"`unique`, and one helper, :class:`auto`." msgstr "" "Este módulo define quatro classes de enumeração que podem ser usadas para " -"definir conjuntos de nomes e valores: :class:`Enum`, :class:`IntEnum`, " -":class:`Flag`, and :class:`IntFlag`. Ele também define um decorator, " -":func:`unique`, e um auxiliar, :class:`auto`." +"definir conjuntos de nomes e valores: :class:`Enum`, :class:`IntEnum`, :" +"class:`Flag`, and :class:`IntFlag`. Ele também define um decorator, :func:" +"`unique`, e um auxiliar, :class:`auto`." #: ../../library/enum.rst:33 msgid "" -"Base class for creating enumerated constants. See section `Functional API`_" -" for an alternate construction syntax." +"Base class for creating enumerated constants. See section `Functional API`_ " +"for an alternate construction syntax." msgstr "" "Classe base para criação de constantes enumeradas. Veja a seção `API " "Funcional`_ para uma sintaxe alternativa de construção." #: ../../library/enum.rst:38 msgid "" -"Base class for creating enumerated constants that are also subclasses of " -":class:`int`." +"Base class for creating enumerated constants that are also subclasses of :" +"class:`int`." msgstr "" #: ../../library/enum.rst:43 msgid "" "Base class for creating enumerated constants that can be combined using the " -"bitwise operators without losing their :class:`IntFlag` membership. " -":class:`IntFlag` members are also subclasses of :class:`int`." +"bitwise operators without losing their :class:`IntFlag` membership. :class:" +"`IntFlag` members are also subclasses of :class:`int`." msgstr "" #: ../../library/enum.rst:49 @@ -92,7 +94,9 @@ msgid "" msgstr "" #: ../../library/enum.rst:58 -msgid "Instances are replaced with an appropriate value for Enum members." +msgid "" +"Instances are replaced with an appropriate value for Enum members. Initial " +"value starts at 1." msgstr "" #: ../../library/enum.rst:60 @@ -105,8 +109,8 @@ msgstr "" #: ../../library/enum.rst:66 msgid "" -"Enumerations are created using the :keyword:`class` syntax, which makes them" -" easy to read and write. An alternative creation method is described in " +"Enumerations are created using the :keyword:`class` syntax, which makes them " +"easy to read and write. An alternative creation method is described in " "`Functional API`_. To define an enumeration, subclass :class:`Enum` as " "follows::" msgstr "" @@ -119,8 +123,8 @@ msgstr "" msgid "" "Member values can be anything: :class:`int`, :class:`str`, etc.. If the " "exact value is unimportant you may use :class:`auto` instances and an " -"appropriate value will be chosen for you. Care must be taken if you mix " -":class:`auto` with other values." +"appropriate value will be chosen for you. Care must be taken if you mix :" +"class:`auto` with other values." msgstr "" #: ../../library/enum.rst:85 @@ -139,15 +143,14 @@ msgstr "" #: ../../library/enum.rst:90 msgid "" -"The enum members have *names* and *values* (the name of :attr:`Color.RED` is" -" ``RED``, the value of :attr:`Color.BLUE` is ``3``, etc.)" +"The enum members have *names* and *values* (the name of :attr:`Color.RED` is " +"``RED``, the value of :attr:`Color.BLUE` is ``3``, etc.)" msgstr "" #: ../../library/enum.rst:96 msgid "" "Even though we use the :keyword:`class` syntax to create Enums, Enums are " -"not normal Python classes. See `How are Enums different?`_ for more " -"details." +"not normal Python classes. See `How are Enums different?`_ for more details." msgstr "" #: ../../library/enum.rst:100 @@ -182,9 +185,9 @@ msgstr "" #: ../../library/enum.rst:151 msgid "" -"Sometimes it's useful to access members in enumerations programmatically " -"(i.e. situations where ``Color.RED`` won't do because the exact color is not" -" known at program-writing time). ``Enum`` allows such access::" +"Sometimes it's useful to access members in enumerations programmatically (i." +"e. situations where ``Color.RED`` won't do because the exact color is not " +"known at program-writing time). ``Enum`` allows such access::" msgstr "" #: ../../library/enum.rst:160 @@ -192,8 +195,7 @@ msgid "If you want to access enum members by *name*, use item access::" msgstr "" #: ../../library/enum.rst:167 -msgid "" -"If you have an enum member and need its :attr:`name` or :attr:`value`::" +msgid "If you have an enum member and need its :attr:`name` or :attr:`value`::" msgstr "" #: ../../library/enum.rst:177 @@ -225,16 +227,16 @@ msgstr "" #: ../../library/enum.rst:217 msgid "" -"By default, enumerations allow multiple names as aliases for the same value." -" When this behavior isn't desired, the following decorator can be used to " +"By default, enumerations allow multiple names as aliases for the same value. " +"When this behavior isn't desired, the following decorator can be used to " "ensure each value is used only once in the enumeration:" msgstr "" #: ../../library/enum.rst:223 msgid "" "A :keyword:`class` decorator specifically for enumerations. It searches an " -"enumeration's :attr:`__members__` gathering any aliases it finds; if any are" -" found :exc:`ValueError` is raised with the details::" +"enumeration's :attr:`__members__` gathering any aliases it finds; if any are " +"found :exc:`ValueError` is raised with the details::" msgstr "" #: ../../library/enum.rst:241 @@ -268,9 +270,9 @@ msgstr "" #: ../../library/enum.rst:284 msgid "" -"The special attribute ``__members__`` is an ordered dictionary mapping names" -" to members. It includes all names defined in the enumeration, including " -"the aliases::" +"The special attribute ``__members__`` is an ordered dictionary mapping names " +"to members. It includes all names defined in the enumeration, including the " +"aliases::" msgstr "" #: ../../library/enum.rst:296 @@ -312,15 +314,15 @@ msgstr "" msgid "" "The examples above use integers for enumeration values. Using integers is " "short and handy (and provided by default by the `Functional API`_), but not " -"strictly enforced. In the vast majority of use-cases, one doesn't care what" -" the actual value of an enumeration is. But if the value *is* important, " +"strictly enforced. In the vast majority of use-cases, one doesn't care what " +"the actual value of an enumeration is. But if the value *is* important, " "enumerations can have arbitrary values." msgstr "" #: ../../library/enum.rst:349 msgid "" -"Enumerations are Python classes, and can have methods and special methods as" -" usual. If we have this enumeration::" +"Enumerations are Python classes, and can have methods and special methods as " +"usual. If we have this enumeration::" msgstr "" #: ../../library/enum.rst:369 @@ -332,9 +334,9 @@ msgid "" "The rules for what is allowed are as follows: names that start and end with " "a single underscore are reserved by enum and cannot be used; all other " "attributes defined within an enumeration will become members of this " -"enumeration, with the exception of special methods (:meth:`__str__`, " -":meth:`__add__`, etc.), descriptors (methods are also descriptors), and " -"variable names listed in :attr:`_ignore_`." +"enumeration, with the exception of special methods (:meth:`__str__`, :meth:" +"`__add__`, etc.), descriptors (methods are also descriptors), and variable " +"names listed in :attr:`_ignore_`." msgstr "" #: ../../library/enum.rst:385 @@ -357,8 +359,8 @@ msgstr "" #: ../../library/enum.rst:400 msgid "" -"Also, subclassing an enumeration is allowed only if the enumeration does not" -" define any members. So this is forbidden::" +"Also, subclassing an enumeration is allowed only if the enumeration does not " +"define any members. So this is forbidden::" msgstr "" #: ../../library/enum.rst:410 @@ -396,8 +398,8 @@ msgstr "" #: ../../library/enum.rst:446 msgid "" -"It is possible to modify how Enum members are pickled/unpickled by defining " -":meth:`__reduce_ex__` in the enumeration class." +"It is possible to modify how Enum members are pickled/unpickled by defining :" +"meth:`__reduce_ex__` in the enumeration class." msgstr "" #: ../../library/enum.rst:451 @@ -406,8 +408,7 @@ msgstr "" #: ../../library/enum.rst:453 msgid "" -"The :class:`Enum` class is callable, providing the following functional " -"API::" +"The :class:`Enum` class is callable, providing the following functional API::" msgstr "" #: ../../library/enum.rst:465 @@ -419,8 +420,8 @@ msgstr "" #: ../../library/enum.rst:468 msgid "" "The second argument is the *source* of enumeration member names. It can be " -"a whitespace-separated string of names, a sequence of names, a sequence of " -"2-tuples with key/value pairs, or a mapping (e.g. dictionary) of names to " +"a whitespace-separated string of names, a sequence of names, a sequence of 2-" +"tuples with key/value pairs, or a mapping (e.g. dictionary) of names to " "values. The last two options enable assigning arbitrary values to " "enumerations; the others auto-assign increasing integers starting with 1 " "(use the ``start`` parameter to specify a different starting value). A new " @@ -431,8 +432,8 @@ msgstr "" #: ../../library/enum.rst:484 msgid "" "The reason for defaulting to ``1`` as the starting number and not ``0`` is " -"that ``0`` is ``False`` in a boolean sense, but enum members all evaluate to" -" ``True``." +"that ``0`` is ``False`` in a boolean sense, but enum members all evaluate to " +"``True``." msgstr "" #: ../../library/enum.rst:488 @@ -440,23 +441,23 @@ msgid "" "Pickling enums created with the functional API can be tricky as frame stack " "implementation details are used to try and figure out which module the " "enumeration is being created in (e.g. it will fail if you use a utility " -"function in separate module, and also may not work on IronPython or Jython)." -" The solution is to specify the module name explicitly as follows::" +"function in separate module, and also may not work on IronPython or Jython). " +"The solution is to specify the module name explicitly as follows::" msgstr "" #: ../../library/enum.rst:498 msgid "" -"If ``module`` is not supplied, and Enum cannot determine what it is, the new" -" Enum members will not be unpicklable; to keep errors closer to the source, " +"If ``module`` is not supplied, and Enum cannot determine what it is, the new " +"Enum members will not be unpicklable; to keep errors closer to the source, " "pickling will be disabled." msgstr "" #: ../../library/enum.rst:502 msgid "" -"The new pickle protocol 4 also, in some circumstances, relies on " -":attr:`~definition.__qualname__` being set to the location where pickle will" -" be able to find the class. For example, if the class was made available in" -" class SomeData in the global scope::" +"The new pickle protocol 4 also, in some circumstances, relies on :attr:" +"`~definition.__qualname__` being set to the location where pickle will be " +"able to find the class. For example, if the class was made available in " +"class SomeData in the global scope::" msgstr "" #: ../../library/enum.rst:509 @@ -539,10 +540,10 @@ msgstr "" #: ../../library/enum.rst:550 msgid "" -"The first variation of :class:`Enum` that is provided is also a subclass of " -":class:`int`. Members of an :class:`IntEnum` can be compared to integers; " -"by extension, integer enumerations of different types can also be compared " -"to each other::" +"The first variation of :class:`Enum` that is provided is also a subclass of :" +"class:`int`. Members of an :class:`IntEnum` can be compared to integers; by " +"extension, integer enumerations of different types can also be compared to " +"each other::" msgstr "" #: ../../library/enum.rst:571 @@ -563,11 +564,11 @@ msgstr "" #: ../../library/enum.rst:597 msgid "" "The next variation of :class:`Enum` provided, :class:`IntFlag`, is also " -"based on :class:`int`. The difference being :class:`IntFlag` members can be" -" combined using the bitwise operators (&, \\|, ^, ~) and the result is still" -" an :class:`IntFlag` member. However, as the name implies, :class:`IntFlag`" -" members also subclass :class:`int` and can be used wherever an :class:`int`" -" is used. Any operation on an :class:`IntFlag` member besides the bit-wise " +"based on :class:`int`. The difference being :class:`IntFlag` members can be " +"combined using the bitwise operators (&, \\|, ^, ~) and the result is still " +"an :class:`IntFlag` member. However, as the name implies, :class:`IntFlag` " +"members also subclass :class:`int` and can be used wherever an :class:`int` " +"is used. Any operation on an :class:`IntFlag` member besides the bit-wise " "operations will lose the :class:`IntFlag` membership." msgstr "" @@ -582,8 +583,8 @@ msgstr "" #: ../../library/enum.rst:635 msgid "" "Another important difference between :class:`IntFlag` and :class:`Enum` is " -"that if no flags are set (the value is 0), its boolean evaluation is " -":data:`False`::" +"that if no flags are set (the value is 0), its boolean evaluation is :data:" +"`False`::" msgstr "" #: ../../library/enum.rst:643 @@ -599,8 +600,8 @@ msgstr "Flag" #: ../../library/enum.rst:653 msgid "" "The last variation is :class:`Flag`. Like :class:`IntFlag`, :class:`Flag` " -"members can be combined using the bitwise operators (&, \\|, ^, ~). Unlike " -":class:`IntFlag`, they cannot be combined with, nor compared against, any " +"members can be combined using the bitwise operators (&, \\|, ^, ~). Unlike :" +"class:`IntFlag`, they cannot be combined with, nor compared against, any " "other :class:`Flag` enumeration, nor :class:`int`. While it is possible to " "specify the values directly it is recommended to use :class:`auto` as the " "value and let :class:`Flag` select an appropriate value." @@ -614,8 +615,8 @@ msgstr "" #: ../../library/enum.rst:676 msgid "" -"Individual flags should have values that are powers of two (1, 2, 4, 8, " -"...), while combinations of flags won't::" +"Individual flags should have values that are powers of two (1, 2, 4, " +"8, ...), while combinations of flags won't::" msgstr "" #: ../../library/enum.rst:688 @@ -627,12 +628,12 @@ msgstr "" #: ../../library/enum.rst:704 msgid "" "For the majority of new code, :class:`Enum` and :class:`Flag` are strongly " -"recommended, since :class:`IntEnum` and :class:`IntFlag` break some semantic" -" promises of an enumeration (by being comparable to integers, and thus by " -"transitivity to other unrelated enumerations). :class:`IntEnum` and " -":class:`IntFlag` should be used only in cases where :class:`Enum` and " -":class:`Flag` will not do; for example, when integer constants are replaced " -"with enumerations, or for interoperability with other systems." +"recommended, since :class:`IntEnum` and :class:`IntFlag` break some semantic " +"promises of an enumeration (by being comparable to integers, and thus by " +"transitivity to other unrelated enumerations). :class:`IntEnum` and :class:" +"`IntFlag` should be used only in cases where :class:`Enum` and :class:`Flag` " +"will not do; for example, when integer constants are replaced with " +"enumerations, or for interoperability with other systems." msgstr "" #: ../../library/enum.rst:714 @@ -648,8 +649,8 @@ msgstr "" #: ../../library/enum.rst:722 msgid "" "This demonstrates how similar derived enumerations can be defined; for " -"example a :class:`StrEnum` that mixes in :class:`str` instead of " -":class:`int`." +"example a :class:`StrEnum` that mixes in :class:`str` instead of :class:" +"`int`." msgstr "" #: ../../library/enum.rst:725 @@ -658,18 +659,18 @@ msgstr "" #: ../../library/enum.rst:727 msgid "" -"When subclassing :class:`Enum`, mix-in types must appear before " -":class:`Enum` itself in the sequence of bases, as in the :class:`IntEnum` " -"example above." +"When subclassing :class:`Enum`, mix-in types must appear before :class:" +"`Enum` itself in the sequence of bases, as in the :class:`IntEnum` example " +"above." msgstr "" #: ../../library/enum.rst:730 msgid "" "While :class:`Enum` can have members of any type, once you mix in an " -"additional type, all the members must have values of that type, e.g. " -":class:`int` above. This restriction does not apply to mix-ins which only " -"add methods and don't specify another data type such as :class:`int` or " -":class:`str`." +"additional type, all the members must have values of that type, e.g. :class:" +"`int` above. This restriction does not apply to mix-ins which only add " +"methods and don't specify another data type such as :class:`int` or :class:" +"`str`." msgstr "" #: ../../library/enum.rst:735 @@ -681,17 +682,17 @@ msgstr "" #: ../../library/enum.rst:738 msgid "" -"%-style formatting: `%s` and `%r` call the :class:`Enum` class's " -":meth:`__str__` and :meth:`__repr__` respectively; other codes (such as `%i`" -" or `%h` for IntEnum) treat the enum member as its mixed-in type." +"%-style formatting: `%s` and `%r` call the :class:`Enum` class's :meth:" +"`__str__` and :meth:`__repr__` respectively; other codes (such as `%i` or `" +"%h` for IntEnum) treat the enum member as its mixed-in type." msgstr "" #: ../../library/enum.rst:741 msgid "" -":ref:`Formatted string literals `, :meth:`str.format`, and " -":func:`format` will use the mixed-in type's :meth:`__format__`. If the " -":class:`Enum` class's :func:`str` or :func:`repr` is desired, use the `!s` " -"or `!r` format codes." +":ref:`Formatted string literals `, :meth:`str.format`, and :func:" +"`format` will use the mixed-in type's :meth:`__format__`. If the :class:" +"`Enum` class's :func:`str` or :func:`repr` is desired, use the `!s` or `!r` " +"format codes." msgstr "" #: ../../library/enum.rst:748 @@ -701,9 +702,9 @@ msgstr "" #: ../../library/enum.rst:750 msgid "" "While :class:`Enum`, :class:`IntEnum`, :class:`IntFlag`, and :class:`Flag` " -"are expected to cover the majority of use-cases, they cannot cover them all." -" Here are recipes for some different types of enumerations that can be used" -" directly, or as examples for creating one's own." +"are expected to cover the majority of use-cases, they cannot cover them " +"all. Here are recipes for some different types of enumerations that can be " +"used directly, or as examples for creating one's own." msgstr "" #: ../../library/enum.rst:757 @@ -838,8 +839,8 @@ msgstr "" #: ../../library/enum.rst:976 msgid "" -"Enums have a custom metaclass that affects many aspects of both derived Enum" -" classes and their instances (members)." +"Enums have a custom metaclass that affects many aspects of both derived Enum " +"classes and their instances (members)." msgstr "" #: ../../library/enum.rst:981 @@ -848,13 +849,13 @@ msgstr "" #: ../../library/enum.rst:983 msgid "" -"The :class:`EnumMeta` metaclass is responsible for providing the " -":meth:`__contains__`, :meth:`__dir__`, :meth:`__iter__` and other methods " -"that allow one to do things with an :class:`Enum` class that fail on a " -"typical class, such as `list(Color)` or `some_enum_var in Color`. " -":class:`EnumMeta` is responsible for ensuring that various other methods on " -"the final :class:`Enum` class are correct (such as :meth:`__new__`, " -":meth:`__getnewargs__`, :meth:`__str__` and :meth:`__repr__`)." +"The :class:`EnumMeta` metaclass is responsible for providing the :meth:" +"`__contains__`, :meth:`__dir__`, :meth:`__iter__` and other methods that " +"allow one to do things with an :class:`Enum` class that fail on a typical " +"class, such as `list(Color)` or `some_enum_var in Color`. :class:`EnumMeta` " +"is responsible for ensuring that various other methods on the final :class:" +"`Enum` class are correct (such as :meth:`__new__`, :meth:`__getnewargs__`, :" +"meth:`__str__` and :meth:`__repr__`)." msgstr "" #: ../../library/enum.rst:993 @@ -863,10 +864,10 @@ msgstr "" #: ../../library/enum.rst:995 msgid "" -"The most interesting thing about Enum members is that they are singletons. " -":class:`EnumMeta` creates them all while it is creating the :class:`Enum` " -"class itself, and then puts a custom :meth:`__new__` in place to ensure that" -" no new ones are ever instantiated by returning only the existing member " +"The most interesting thing about Enum members is that they are singletons. :" +"class:`EnumMeta` creates them all while it is creating the :class:`Enum` " +"class itself, and then puts a custom :meth:`__new__` in place to ensure that " +"no new ones are ever instantiated by returning only the existing member " "instances." msgstr "" @@ -880,15 +881,15 @@ msgstr "" #: ../../library/enum.rst:1008 msgid "" -":attr:`__members__` is an :class:`OrderedDict` of ``member_name``:``member``" -" items. It is only available on the class." +":attr:`__members__` is an :class:`OrderedDict` of ``member_name``:``member`` " +"items. It is only available on the class." msgstr "" #: ../../library/enum.rst:1011 msgid "" ":meth:`__new__`, if specified, must create and return the enum members; it " -"is also a very good idea to set the member's :attr:`_value_` appropriately." -" Once all the members are created it is no longer used." +"is also a very good idea to set the member's :attr:`_value_` appropriately. " +"Once all the members are created it is no longer used." msgstr "" #: ../../library/enum.rst:1017 @@ -925,9 +926,8 @@ msgstr "" #: ../../library/enum.rst:1029 msgid "" -"``_generate_next_value_`` -- used by the `Functional API`_ and by " -":class:`auto` to get an appropriate value for an enum member; may be " -"overridden" +"``_generate_next_value_`` -- used by the `Functional API`_ and by :class:" +"`auto` to get an appropriate value for an enum member; may be overridden" msgstr "" #: ../../library/enum.rst:1033 @@ -936,7 +936,7 @@ msgstr "" #: ../../library/enum.rst:1034 msgid "``_ignore_``" -msgstr "" +msgstr "``_ignore_``" #: ../../library/enum.rst:1036 msgid "" @@ -958,11 +958,11 @@ msgstr "" #: ../../library/enum.rst:1058 msgid "" ":class:`Enum` members are instances of their :class:`Enum` class, and are " -"normally accessed as ``EnumClass.member``. Under certain circumstances they" -" can also be accessed as ``EnumClass.member.member``, but you should never " -"do this as that lookup may fail or, worse, return something besides the " -":class:`Enum` member you are looking for (this is another good reason to use" -" all-uppercase names for members)::" +"normally accessed as ``EnumClass.member``. Under certain circumstances they " +"can also be accessed as ``EnumClass.member.member``, but you should never do " +"this as that lookup may fail or, worse, return something besides the :class:" +"`Enum` member you are looking for (this is another good reason to use all-" +"uppercase names for members)::" msgstr "" #: ../../library/enum.rst:1079 @@ -971,11 +971,11 @@ msgstr "" #: ../../library/enum.rst:1081 msgid "" -":class:`Enum` members that are mixed with non-:class:`Enum` types (such as " -":class:`int`, :class:`str`, etc.) are evaluated according to the mixed-in " -"type's rules; otherwise, all members evaluate as :data:`True`. To make your" -" own Enum's boolean evaluation depend on the member's value add the " -"following to your class::" +":class:`Enum` members that are mixed with non-:class:`Enum` types (such as :" +"class:`int`, :class:`str`, etc.) are evaluated according to the mixed-in " +"type's rules; otherwise, all members evaluate as :data:`True`. To make your " +"own Enum's boolean evaluation depend on the member's value add the following " +"to your class::" msgstr "" #: ../../library/enum.rst:1090 @@ -999,6 +999,6 @@ msgstr "" #: ../../library/enum.rst:1109 msgid "" -"If a combination of Flag members is not named, the :func:`repr` will include" -" all named flags and all named combinations of flags that are in the value::" +"If a combination of Flag members is not named, the :func:`repr` will include " +"all named flags and all named combinations of flags that are in the value::" msgstr "" diff --git a/library/errno.po b/library/errno.po index 58c03dfa5..86809c3a4 100644 --- a/library/errno.po +++ b/library/errno.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,14 +44,14 @@ msgstr "" #: ../../library/errno.rst:21 msgid "" -"To translate a numeric error code to an error message, use " -":func:`os.strerror`." +"To translate a numeric error code to an error message, use :func:`os." +"strerror`." msgstr "" #: ../../library/errno.rst:23 msgid "" -"Of the following list, symbols that are not used on the current platform are" -" not defined by the module. The specific list of defined symbols is " +"Of the following list, symbols that are not used on the current platform are " +"not defined by the module. The specific list of defined symbols is " "available as ``errno.errorcode.keys()``. Symbols available can include:" msgstr "" diff --git a/library/exceptions.po b/library/exceptions.po index 15a70eeae..f3d0d9be0 100644 --- a/library/exceptions.po +++ b/library/exceptions.po @@ -1,16 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# guilhermegouw , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-16 10:57+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: guilhermegouw , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,28 +25,40 @@ msgstr "" #: ../../library/exceptions.rst:4 msgid "Built-in Exceptions" -msgstr "" +msgstr "Exceções embutidas" #: ../../library/exceptions.rst:10 msgid "" -"In Python, all exceptions must be instances of a class that derives from " -":class:`BaseException`. In a :keyword:`try` statement with an " -":keyword:`except` clause that mentions a particular class, that clause also " -"handles any exception classes derived from that class (but not exception " -"classes from which *it* is derived). Two exception classes that are not " -"related via subclassing are never equivalent, even if they have the same " -"name." -msgstr "" +"In Python, all exceptions must be instances of a class that derives from :" +"class:`BaseException`. In a :keyword:`try` statement with an :keyword:" +"`except` clause that mentions a particular class, that clause also handles " +"any exception classes derived from that class (but not exception classes " +"from which *it* is derived). Two exception classes that are not related via " +"subclassing are never equivalent, even if they have the same name." +msgstr "" +"No Python, todas as exceções devem ser instâncias de uma classe derivada de :" +"class:`BaseException`. Em uma instrução :keyword:`try` com uma cláusula :" +"keyword:`except` que menciona uma classe específica, essa cláusula também " +"lida com qualquer classe de exceção derivada dessa classe (mas não com as " +"classes de exceção a partir das quais *ela* é derivada). Duas classes de " +"exceção que não são relacionadas por subclasse nunca são equivalentes, mesmo " +"que tenham o mesmo nome." #: ../../library/exceptions.rst:19 msgid "" "The built-in exceptions listed below can be generated by the interpreter or " -"built-in functions. Except where mentioned, they have an \"associated " -"value\" indicating the detailed cause of the error. This may be a string or" -" a tuple of several items of information (e.g., an error code and a string " +"built-in functions. Except where mentioned, they have an \"associated value" +"\" indicating the detailed cause of the error. This may be a string or a " +"tuple of several items of information (e.g., an error code and a string " "explaining the code). The associated value is usually passed as arguments " "to the exception class's constructor." msgstr "" +"As exceções embutidas listadas abaixo podem ser geradas pelo interpretador " +"ou pelas funções embutidas. Exceto onde mencionado, eles têm um \"valor " +"associado\" indicando a causa detalhada do erro. Pode ser uma sequência ou " +"uma tupla de vários itens de informação (por exemplo, um código de erro e " +"uma sequência que explica o código). O valor associado geralmente é passado " +"como argumentos para o construtor da classe de exceção." #: ../../library/exceptions.rst:26 msgid "" @@ -50,43 +68,70 @@ msgid "" "that there is nothing to prevent user code from raising an inappropriate " "error." msgstr "" +"O código do usuário pode gerar exceções embutidas. Isso pode ser usado para " +"testar um manipulador de exceções ou para relatar uma condição de erro " +"\"exatamente como\" a situação na qual o interpretador gera a mesma exceção; " +"mas lembre-se de que nada impede o código do usuário de gerar um erro " +"inadequado." #: ../../library/exceptions.rst:31 msgid "" "The built-in exception classes can be subclassed to define new exceptions; " -"programmers are encouraged to derive new exceptions from the " -":exc:`Exception` class or one of its subclasses, and not from " -":exc:`BaseException`. More information on defining exceptions is available " -"in the Python Tutorial under :ref:`tut-userexceptions`." +"programmers are encouraged to derive new exceptions from the :exc:" +"`Exception` class or one of its subclasses, and not from :exc:" +"`BaseException`. More information on defining exceptions is available in " +"the Python Tutorial under :ref:`tut-userexceptions`." msgstr "" +"As classes de exceção internas podem ser usadas como subclasses para definir " +"novas exceções; Os programadores são incentivados a derivar novas exceções " +"da classe :exc:`Exception` ou de uma de suas subclasses, e não de :exc:" +"`BaseException`. Mais informações sobre a definição de exceções estão " +"disponíveis no Tutorial do Python em :ref:`tut-userexceptions`." #: ../../library/exceptions.rst:37 msgid "" -"When raising (or re-raising) an exception in an :keyword:`except` or " -":keyword:`finally` clause :attr:`__context__` is automatically set to the " +"When raising (or re-raising) an exception in an :keyword:`except` or :" +"keyword:`finally` clause :attr:`__context__` is automatically set to the " "last exception caught; if the new exception is not handled the traceback " "that is eventually displayed will include the originating exception(s) and " "the final exception." msgstr "" +"Ao gerar (ou levantar novamente) uma exceção em uma cláusula :keyword:" +"`except` ou :keyword:` finally`, :attr:`__context__` é automaticamente " +"definida como a última exceção capturada; se a nova exceção não for tratada, " +"o traceback exibido eventualmente incluirá as exceções de origem e a exceção " +"final." #: ../../library/exceptions.rst:43 msgid "" -"When raising a new exception (rather than using a bare ``raise`` to re-raise" -" the exception currently being handled), the implicit exception context can " -"be supplemented with an explicit cause by using :keyword:`from` with " -":keyword:`raise`::" +"When raising a new exception (rather than using a bare ``raise`` to re-raise " +"the exception currently being handled), the implicit exception context can " +"be supplemented with an explicit cause by using :keyword:`from` with :" +"keyword:`raise`::" msgstr "" +"Ao levantar uma nova exceção (em vez de usar um ``raise`` simples para " +"aumentar novamente a exceção que está sendo tratada), o contexto implícito " +"da exceção pode ser complementado com uma causa explícita usando :keyword:" +"`from` com :keyword:`raise` ::" #: ../../library/exceptions.rst:50 msgid "" "The expression following :keyword:`from` must be an exception or ``None``. " -"It will be set as :attr:`__cause__` on the raised exception. Setting " -":attr:`__cause__` also implicitly sets the :attr:`__suppress_context__` " -"attribute to ``True``, so that using ``raise new_exc from None`` effectively" -" replaces the old exception with the new one for display purposes (e.g. " -"converting :exc:`KeyError` to :exc:`AttributeError`), while leaving the old " -"exception available in :attr:`__context__` for introspection when debugging." -msgstr "" +"It will be set as :attr:`__cause__` on the raised exception. Setting :attr:" +"`__cause__` also implicitly sets the :attr:`__suppress_context__` attribute " +"to ``True``, so that using ``raise new_exc from None`` effectively replaces " +"the old exception with the new one for display purposes (e.g. converting :" +"exc:`KeyError` to :exc:`AttributeError`), while leaving the old exception " +"available in :attr:`__context__` for introspection when debugging." +msgstr "" +"A expressão a seguir :keyword:`from` deve ser uma exceção ou ``None``. Ela " +"será definida como :attr:`__cause__` na exceção levantada. A definição de :" +"attr:`__cause__` também define implicitamente o atributo :attr:" +"`__suppress_context__` como ``True``, de modo que o uso de ``raise new_exc " +"from None`` substitui efetivamente a exceção antiga pela nova para fins de " +"exibição (por exemplo, convertendo :exc:`KeyError` para :exc:" +"`AttributeError`), deixando a exceção antiga disponível em :attr:" +"`__context__` para introspecção durante a depuração." #: ../../library/exceptions.rst:59 msgid "" @@ -96,6 +141,11 @@ msgid "" "chained exception in :attr:`__context__` is shown only if :attr:`__cause__` " "is :const:`None` and :attr:`__suppress_context__` is false." msgstr "" +"O código de exibição padrão do traceback mostra essas exceções encadeadas, " +"além do traceback da própria exceção. Uma exceção explicitamente encadeada " +"em :attr:`__cause__` sempre é mostrada quando presente. Uma exceção " +"implicitamente encadeada em :attr:`__context__` é mostrada apenas se :attr:" +"`__cause__` for :const:`None` e :attr:`__suppress_context__` for falso." #: ../../library/exceptions.rst:65 msgid "" @@ -103,25 +153,35 @@ msgid "" "exceptions so that the final line of the traceback always shows the last " "exception that was raised." msgstr "" +"Em qualquer um dos casos, a exceção em si sempre é mostrada após todas as " +"exceções encadeadas, de modo que a linha final do traceback sempre mostre a " +"última exceção que foi levantada." #: ../../library/exceptions.rst:71 msgid "Base classes" -msgstr "" +msgstr "Classes base" #: ../../library/exceptions.rst:73 msgid "" "The following exceptions are used mostly as base classes for other " "exceptions." msgstr "" +"As seguintes exceções são usadas principalmente como classes base para " +"outras exceções." #: ../../library/exceptions.rst:77 msgid "" "The base class for all built-in exceptions. It is not meant to be directly " -"inherited by user-defined classes (for that, use :exc:`Exception`). If " -":func:`str` is called on an instance of this class, the representation of " -"the argument(s) to the instance are returned, or the empty string when there" -" were no arguments." +"inherited by user-defined classes (for that, use :exc:`Exception`). If :" +"func:`str` is called on an instance of this class, the representation of the " +"argument(s) to the instance are returned, or the empty string when there " +"were no arguments." msgstr "" +"A classe base para todas as exceções internas. Não é para ser herdada " +"diretamente por classes definidas pelo usuário (para isso, use :exc:" +"`Exception`). Se :func:`str` for chamado em uma instância desta classe, a " +"representação do(s) argumento(s) para a instância será retornada ou a string " +"vazia quando não houver argumentos." #: ../../library/exceptions.rst:85 msgid "" @@ -130,32 +190,47 @@ msgid "" "assign a special meaning to the elements of this tuple, while others are " "usually called only with a single string giving an error message." msgstr "" +"A tupla de argumentos fornecidos ao construtor de exceções. Algumas exceções " +"embutidas (como :exc:`OSError`) esperam um certo número de argumentos e " +"atribuem um significado especial aos elementos dessa tupla, enquanto outras " +"são normalmente chamadas apenas com uma única string que fornece uma " +"mensagem de erro." #: ../../library/exceptions.rst:92 msgid "" -"This method sets *tb* as the new traceback for the exception and returns the" -" exception object. It is usually used in exception handling code like " -"this::" +"This method sets *tb* as the new traceback for the exception and returns the " +"exception object. It is usually used in exception handling code like this::" msgstr "" +"Esse método define *tb* como o novo retorno para a exceção e retorna o " +"objeto de exceção. Geralmente é usado no código de manipulação de exceção " +"como este::" #: ../../library/exceptions.rst:105 msgid "" "All built-in, non-system-exiting exceptions are derived from this class. " "All user-defined exceptions should also be derived from this class." msgstr "" +"Todas as exceções embutidas que não saem para o sistema são derivadas dessa " +"classe. Todas as exceções definidas pelo usuário também devem ser derivadas " +"dessa classe." #: ../../library/exceptions.rst:111 msgid "" "The base class for those built-in exceptions that are raised for various " -"arithmetic errors: :exc:`OverflowError`, :exc:`ZeroDivisionError`, " -":exc:`FloatingPointError`." +"arithmetic errors: :exc:`OverflowError`, :exc:`ZeroDivisionError`, :exc:" +"`FloatingPointError`." msgstr "" +"A classe base para as exceções embutidas levantadas para vários erros " +"aritméticos: :exc:`OverflowError`, :exc:`ZeroDivisionError`, :exc:" +"`FloatingPointError`." #: ../../library/exceptions.rst:118 msgid "" "Raised when a :ref:`buffer ` related operation cannot be " "performed." msgstr "" +"Levantado quando uma operação relacionada a :ref:`buffer ` " +"não puder ser realizada." #: ../../library/exceptions.rst:124 msgid "" @@ -163,18 +238,21 @@ msgid "" "on a mapping or sequence is invalid: :exc:`IndexError`, :exc:`KeyError`. " "This can be raised directly by :func:`codecs.lookup`." msgstr "" +"A classe base para as exceções levantadas quando uma chave ou índice usado " +"em um mapeamento ou sequência é inválido: :exc:`IndexError`, :exc:" +"`KeyError`. Isso pode ser levantado diretamente por :func:`codecs.lookup`." #: ../../library/exceptions.rst:130 msgid "Concrete exceptions" -msgstr "" +msgstr "Exceções concretas" #: ../../library/exceptions.rst:132 msgid "The following exceptions are the exceptions that are usually raised." -msgstr "" +msgstr "As seguintes exceções são as que geralmente são levantados." #: ../../library/exceptions.rst:138 msgid "Raised when an :keyword:`assert` statement fails." -msgstr "" +msgstr "Levantado quando uma instrução :keyword:`assert` falha." #: ../../library/exceptions.rst:143 msgid "" @@ -182,26 +260,36 @@ msgid "" "assignment fails. (When an object does not support attribute references or " "attribute assignments at all, :exc:`TypeError` is raised.)" msgstr "" +"Levantado quando uma referência de atributo (consulte :ref:`attribute-" +"reference`) ou atribuição falha. (Quando um objeto não oferece suporte a " +"referências ou atribuições de atributos, :exc:`TypeError` é levantado.)" #: ../../library/exceptions.rst:150 msgid "" "Raised when the :func:`input` function hits an end-of-file condition (EOF) " -"without reading any data. (N.B.: the :meth:`io.IOBase.read` and " -":meth:`io.IOBase.readline` methods return an empty string when they hit " -"EOF.)" +"without reading any data. (N.B.: the :meth:`io.IOBase.read` and :meth:`io." +"IOBase.readline` methods return an empty string when they hit EOF.)" msgstr "" +"Levantado quando a função :func:`input` atinge uma condição de fim de " +"arquivo (EOF) sem ler nenhum dado. (Note: os métodos :meth:`io.IOBase.read` " +"e :meth:`io.IOBase.readline` retornam uma string vazia quando pressionam o " +"EOF.)" #: ../../library/exceptions.rst:157 msgid "Not currently used." -msgstr "" +msgstr "Não usado atualmente." #: ../../library/exceptions.rst:162 msgid "" -"Raised when a :term:`generator` or :term:`coroutine` is closed; see " -":meth:`generator.close` and :meth:`coroutine.close`. It directly inherits " -"from :exc:`BaseException` instead of :exc:`Exception` since it is " -"technically not an error." +"Raised when a :term:`generator` or :term:`coroutine` is closed; see :meth:" +"`generator.close` and :meth:`coroutine.close`. It directly inherits from :" +"exc:`BaseException` instead of :exc:`Exception` since it is technically not " +"an error." msgstr "" +"Levantado quando :term:`gerador` ou :term:`coroutine` está fechado; veja :" +"meth:`generator.close` e :meth:`coroutine.close`. Herda diretamente de :exc:" +"`BaseException` em vez de :exc:`Exception`, já que tecnicamente não é um " +"erro." #: ../../library/exceptions.rst:170 msgid "" @@ -209,25 +297,35 @@ msgid "" "module. Also raised when the \"from list\" in ``from ... import`` has a " "name that cannot be found." msgstr "" +"Levantado quando a instrução :keyword:`import` tem problemas ao tentar " +"carregar um módulo. Também é gerado quando o \"from list\" em ``from ... " +"import`` tem um nome que não pode ser encontrado." #: ../../library/exceptions.rst:174 msgid "" "The :attr:`name` and :attr:`path` attributes can be set using keyword-only " -"arguments to the constructor. When set they represent the name of the module" -" that was attempted to be imported and the path to any file which triggered " +"arguments to the constructor. When set they represent the name of the module " +"that was attempted to be imported and the path to any file which triggered " "the exception, respectively." msgstr "" +"Os atributos :attr:`name` e :attr:`path` podem ser configurados usando " +"argumentos somente de palavra-chave para o construtor. Quando configurados, " +"eles representam o nome do módulo que foi tentado ser importado e o caminho " +"para qualquer arquivo que acionou a exceção, respectivamente." #: ../../library/exceptions.rst:179 msgid "Added the :attr:`name` and :attr:`path` attributes." -msgstr "" +msgstr "Adicionados os atributos :attr:`name` e :attr:`path`." #: ../../library/exceptions.rst:184 msgid "" -"A subclass of :exc:`ImportError` which is raised by :keyword:`import` when a" -" module could not be located. It is also raised when ``None`` is found in " -":data:`sys.modules`." +"A subclass of :exc:`ImportError` which is raised by :keyword:`import` when a " +"module could not be located. It is also raised when ``None`` is found in :" +"data:`sys.modules`." msgstr "" +"Uma subclasse de :exc:`ImportError` que é levantada por :keyword:`import` " +"quando um módulo não pôde ser localizado. Também é levantada quando ``None`` " +"é encontrado em :data:`sys.modules`." #: ../../library/exceptions.rst:193 msgid "" @@ -244,9 +342,9 @@ msgstr "" #: ../../library/exceptions.rst:209 msgid "" -"Raised when the user hits the interrupt key (normally :kbd:`Control-C` or " -":kbd:`Delete`). During execution, a check for interrupts is made regularly." -" The exception inherits from :exc:`BaseException` so as to not be " +"Raised when the user hits the interrupt key (normally :kbd:`Control-C` or :" +"kbd:`Delete`). During execution, a check for interrupts is made regularly. " +"The exception inherits from :exc:`BaseException` so as to not be " "accidentally caught by code that catches :exc:`Exception` and thus prevent " "the interpreter from exiting." msgstr "" @@ -256,11 +354,10 @@ msgid "" "Raised when an operation runs out of memory but the situation may still be " "rescued (by deleting some objects). The associated value is a string " "indicating what kind of (internal) operation ran out of memory. Note that " -"because of the underlying memory management architecture (C's " -":c:func:`malloc` function), the interpreter may not always be able to " -"completely recover from this situation; it nevertheless raises an exception " -"so that a stack traceback can be printed, in case a run-away program was the" -" cause." +"because of the underlying memory management architecture (C's :c:func:" +"`malloc` function), the interpreter may not always be able to completely " +"recover from this situation; it nevertheless raises an exception so that a " +"stack traceback can be printed, in case a run-away program was the cause." msgstr "" #: ../../library/exceptions.rst:229 @@ -269,6 +366,9 @@ msgid "" "unqualified names. The associated value is an error message that includes " "the name that could not be found." msgstr "" +"Levantada quando um nome local ou global não é encontrado. Isso se aplica " +"apenas a nomes não qualificados. O valor associado é uma mensagem de erro " +"que inclui o nome que não pode ser encontrado." #: ../../library/exceptions.rst:236 msgid "" @@ -280,40 +380,44 @@ msgstr "" #: ../../library/exceptions.rst:243 msgid "" -"It should not be used to indicate that an operator or method is not meant to" -" be supported at all -- in that case either leave the operator / method " +"It should not be used to indicate that an operator or method is not meant to " +"be supported at all -- in that case either leave the operator / method " "undefined or, if a subclass, set it to :data:`None`." msgstr "" #: ../../library/exceptions.rst:249 msgid "" -"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even" -" though they have similar names and purposes. See :data:`NotImplemented` " -"for details on when to use it." +"``NotImplementedError`` and ``NotImplemented`` are not interchangeable, even " +"though they have similar names and purposes. See :data:`NotImplemented` for " +"details on when to use it." msgstr "" #: ../../library/exceptions.rst:258 msgid "" "This exception is raised when a system function returns a system-related " -"error, including I/O failures such as \"file not found\" or \"disk full\" " -"(not for illegal argument types or other incidental errors)." +"error, including I/O failures such as \"file not found\" or \"disk full" +"\" (not for illegal argument types or other incidental errors)." msgstr "" +"Esta exceção é levantada quando uma função do sistema retorna um erro " +"relacionado ao sistema, incluindo falhas do tipo I/O como \"file not found\" " +"ou \"disk full\"(não para tipos de argumentos não permitidos ou outro erro " +"acessório.)" #: ../../library/exceptions.rst:262 msgid "" "The second form of the constructor sets the corresponding attributes, " -"described below. The attributes default to :const:`None` if not specified." -" For backwards compatibility, if three arguments are passed, the " -":attr:`~BaseException.args` attribute contains only a 2-tuple of the first " -"two constructor arguments." +"described below. The attributes default to :const:`None` if not specified. " +"For backwards compatibility, if three arguments are passed, the :attr:" +"`~BaseException.args` attribute contains only a 2-tuple of the first two " +"constructor arguments." msgstr "" #: ../../library/exceptions.rst:268 msgid "" "The constructor often actually returns a subclass of :exc:`OSError`, as " -"described in `OS exceptions`_ below. The particular subclass depends on the" -" final :attr:`.errno` value. This behaviour only occurs when constructing " -":exc:`OSError` directly or via an alias, and is not inherited when " +"described in `OS exceptions`_ below. The particular subclass depends on the " +"final :attr:`.errno` value. This behaviour only occurs when constructing :" +"exc:`OSError` directly or via an alias, and is not inherited when " "subclassing." msgstr "" @@ -323,40 +427,40 @@ msgstr "" #: ../../library/exceptions.rst:280 msgid "" -"Under Windows, this gives you the native Windows error code. The " -":attr:`.errno` attribute is then an approximate translation, in POSIX terms," -" of that native error code." +"Under Windows, this gives you the native Windows error code. The :attr:`." +"errno` attribute is then an approximate translation, in POSIX terms, of that " +"native error code." msgstr "" #: ../../library/exceptions.rst:284 msgid "" -"Under Windows, if the *winerror* constructor argument is an integer, the " -":attr:`.errno` attribute is determined from the Windows error code, and the " -"*errno* argument is ignored. On other platforms, the *winerror* argument is" -" ignored, and the :attr:`winerror` attribute does not exist." +"Under Windows, if the *winerror* constructor argument is an integer, the :" +"attr:`.errno` attribute is determined from the Windows error code, and the " +"*errno* argument is ignored. On other platforms, the *winerror* argument is " +"ignored, and the :attr:`winerror` attribute does not exist." msgstr "" #: ../../library/exceptions.rst:292 msgid "" -"The corresponding error message, as provided by the operating system. It is" -" formatted by the C functions :c:func:`perror` under POSIX, and " -":c:func:`FormatMessage` under Windows." +"The corresponding error message, as provided by the operating system. It is " +"formatted by the C functions :c:func:`perror` under POSIX, and :c:func:" +"`FormatMessage` under Windows." msgstr "" #: ../../library/exceptions.rst:300 msgid "" -"For exceptions that involve a file system path (such as :func:`open` or " -":func:`os.unlink`), :attr:`filename` is the file name passed to the " -"function. For functions that involve two file system paths (such as " -":func:`os.rename`), :attr:`filename2` corresponds to the second file name " -"passed to the function." +"For exceptions that involve a file system path (such as :func:`open` or :" +"func:`os.unlink`), :attr:`filename` is the file name passed to the function. " +"For functions that involve two file system paths (such as :func:`os." +"rename`), :attr:`filename2` corresponds to the second file name passed to " +"the function." msgstr "" #: ../../library/exceptions.rst:307 msgid "" -":exc:`EnvironmentError`, :exc:`IOError`, :exc:`WindowsError`, " -":exc:`socket.error`, :exc:`select.error` and :exc:`mmap.error` have been " -"merged into :exc:`OSError`, and the constructor may return a subclass." +":exc:`EnvironmentError`, :exc:`IOError`, :exc:`WindowsError`, :exc:`socket." +"error`, :exc:`select.error` and :exc:`mmap.error` have been merged into :exc:" +"`OSError`, and the constructor may return a subclass." msgstr "" #: ../../library/exceptions.rst:313 @@ -370,18 +474,18 @@ msgstr "" #: ../../library/exceptions.rst:322 msgid "" "Raised when the result of an arithmetic operation is too large to be " -"represented. This cannot occur for integers (which would rather raise " -":exc:`MemoryError` than give up). However, for historical reasons, " -"OverflowError is sometimes raised for integers that are outside a required " -"range. Because of the lack of standardization of floating point exception " -"handling in C, most floating point operations are not checked." +"represented. This cannot occur for integers (which would rather raise :exc:" +"`MemoryError` than give up). However, for historical reasons, OverflowError " +"is sometimes raised for integers that are outside a required range. " +"Because of the lack of standardization of floating point exception handling " +"in C, most floating point operations are not checked." msgstr "" #: ../../library/exceptions.rst:332 msgid "" "This exception is derived from :exc:`RuntimeError`. It is raised when the " -"interpreter detects that the maximum recursion depth (see " -":func:`sys.getrecursionlimit`) is exceeded." +"interpreter detects that the maximum recursion depth (see :func:`sys." +"getrecursionlimit`) is exceeded." msgstr "" #: ../../library/exceptions.rst:336 @@ -390,38 +494,40 @@ msgstr "" #: ../../library/exceptions.rst:342 msgid "" -"This exception is raised when a weak reference proxy, created by the " -":func:`weakref.proxy` function, is used to access an attribute of the " -"referent after it has been garbage collected. For more information on weak " +"This exception is raised when a weak reference proxy, created by the :func:" +"`weakref.proxy` function, is used to access an attribute of the referent " +"after it has been garbage collected. For more information on weak " "references, see the :mod:`weakref` module." msgstr "" #: ../../library/exceptions.rst:350 msgid "" "Raised when an error is detected that doesn't fall in any of the other " -"categories. The associated value is a string indicating what precisely went" -" wrong." +"categories. The associated value is a string indicating what precisely went " +"wrong." msgstr "" +"Levantada quando um erro é detectado e não se encaixa em nenhuma das outras " +"categorias. O valor associado é uma string indicando o que precisamente deu " +"errado." #: ../../library/exceptions.rst:357 msgid "" -"Raised by built-in function :func:`next` and an :term:`iterator`\\'s " -":meth:`~iterator.__next__` method to signal that there are no further items " +"Raised by built-in function :func:`next` and an :term:`iterator`\\'s :meth:" +"`~iterator.__next__` method to signal that there are no further items " "produced by the iterator." msgstr "" #: ../../library/exceptions.rst:361 msgid "" -"The exception object has a single attribute :attr:`value`, which is given as" -" an argument when constructing the exception, and defaults to :const:`None`." +"The exception object has a single attribute :attr:`value`, which is given as " +"an argument when constructing the exception, and defaults to :const:`None`." msgstr "" #: ../../library/exceptions.rst:365 msgid "" -"When a :term:`generator` or :term:`coroutine` function returns, a new " -":exc:`StopIteration` instance is raised, and the value returned by the " -"function is used as the :attr:`value` parameter to the constructor of the " -"exception." +"When a :term:`generator` or :term:`coroutine` function returns, a new :exc:" +"`StopIteration` instance is raised, and the value returned by the function " +"is used as the :attr:`value` parameter to the constructor of the exception." msgstr "" #: ../../library/exceptions.rst:370 @@ -457,17 +563,17 @@ msgstr "" #: ../../library/exceptions.rst:395 msgid "" -"Raised when the parser encounters a syntax error. This may occur in an " -":keyword:`import` statement, in a call to the built-in functions " -":func:`exec` or :func:`eval`, or when reading the initial script or standard" -" input (also interactively)." +"Raised when the parser encounters a syntax error. This may occur in an :" +"keyword:`import` statement, in a call to the built-in functions :func:`exec` " +"or :func:`eval`, or when reading the initial script or standard input (also " +"interactively)." msgstr "" #: ../../library/exceptions.rst:400 msgid "" -"Instances of this class have attributes :attr:`filename`, :attr:`lineno`, " -":attr:`offset` and :attr:`text` for easier access to the details. " -":func:`str` of the exception instance returns only the message." +"Instances of this class have attributes :attr:`filename`, :attr:`lineno`, :" +"attr:`offset` and :attr:`text` for easier access to the details. :func:" +"`str` of the exception instance returns only the message." msgstr "" #: ../../library/exceptions.rst:407 @@ -475,6 +581,8 @@ msgid "" "Base class for syntax errors related to incorrect indentation. This is a " "subclass of :exc:`SyntaxError`." msgstr "" +"Classe base para erros de sintaxe relacionados a indentação incorreta. Esta " +"é uma subclasse de :exc:`SyntaxError`." #: ../../library/exceptions.rst:413 msgid "" @@ -485,31 +593,31 @@ msgstr "" #: ../../library/exceptions.rst:419 msgid "" "Raised when the interpreter finds an internal error, but the situation does " -"not look so serious to cause it to abandon all hope. The associated value is" -" a string indicating what went wrong (in low-level terms)." +"not look so serious to cause it to abandon all hope. The associated value is " +"a string indicating what went wrong (in low-level terms)." msgstr "" #: ../../library/exceptions.rst:423 msgid "" "You should report this to the author or maintainer of your Python " -"interpreter. Be sure to report the version of the Python interpreter " -"(``sys.version``; it is also printed at the start of an interactive Python " +"interpreter. Be sure to report the version of the Python interpreter (``sys." +"version``; it is also printed at the start of an interactive Python " "session), the exact error message (the exception's associated value) and if " "possible the source of the program that triggered the error." msgstr "" #: ../../library/exceptions.rst:432 msgid "" -"This exception is raised by the :func:`sys.exit` function. It inherits from" -" :exc:`BaseException` instead of :exc:`Exception` so that it is not " +"This exception is raised by the :func:`sys.exit` function. It inherits " +"from :exc:`BaseException` instead of :exc:`Exception` so that it is not " "accidentally caught by code that catches :exc:`Exception`. This allows the " "exception to properly propagate up and cause the interpreter to exit. When " "it is not handled, the Python interpreter exits; no stack traceback is " -"printed. The constructor accepts the same optional argument passed to " -":func:`sys.exit`. If the value is an integer, it specifies the system exit " -"status (passed to C's :c:func:`exit` function); if it is ``None``, the exit " -"status is zero; if it has another type (such as a string), the object's " -"value is printed and the exit status is one." +"printed. The constructor accepts the same optional argument passed to :func:" +"`sys.exit`. If the value is an integer, it specifies the system exit status " +"(passed to C's :c:func:`exit` function); if it is ``None``, the exit status " +"is zero; if it has another type (such as a string), the object's value is " +"printed and the exit status is one." msgstr "" #: ../../library/exceptions.rst:443 @@ -545,17 +653,17 @@ msgstr "" #: ../../library/exceptions.rst:466 msgid "" -"Passing arguments of the wrong type (e.g. passing a :class:`list` when an " -":class:`int` is expected) should result in a :exc:`TypeError`, but passing " +"Passing arguments of the wrong type (e.g. passing a :class:`list` when an :" +"class:`int` is expected) should result in a :exc:`TypeError`, but passing " "arguments with the wrong value (e.g. a number outside expected boundaries) " "should result in a :exc:`ValueError`." msgstr "" #: ../../library/exceptions.rst:473 msgid "" -"Raised when a reference is made to a local variable in a function or method," -" but no value has been bound to that variable. This is a subclass of " -":exc:`NameError`." +"Raised when a reference is made to a local variable in a function or method, " +"but no value has been bound to that variable. This is a subclass of :exc:" +"`NameError`." msgstr "" #: ../../library/exceptions.rst:480 @@ -611,16 +719,16 @@ msgstr "" #: ../../library/exceptions.rst:528 msgid "" -"Raised when an operation or function receives an argument that has the right" -" type but an inappropriate value, and the situation is not described by a " +"Raised when an operation or function receives an argument that has the right " +"type but an inappropriate value, and the situation is not described by a " "more precise exception such as :exc:`IndexError`." msgstr "" #: ../../library/exceptions.rst:535 msgid "" "Raised when the second argument of a division or modulo operation is zero. " -"The associated value is a string indicating the type of the operands and the" -" operation." +"The associated value is a string indicating the type of the operands and the " +"operation." msgstr "" #: ../../library/exceptions.rst:540 @@ -646,8 +754,8 @@ msgstr "" #: ../../library/exceptions.rst:560 msgid "" "Raised when an operation would block on an object (e.g. socket) set for non-" -"blocking operation. Corresponds to :c:data:`errno` ``EAGAIN``, ``EALREADY``," -" ``EWOULDBLOCK`` and ``EINPROGRESS``." +"blocking operation. Corresponds to :c:data:`errno` ``EAGAIN``, ``EALREADY``, " +"``EWOULDBLOCK`` and ``EINPROGRESS``." msgstr "" #: ../../library/exceptions.rst:565 @@ -659,14 +767,14 @@ msgstr "" #: ../../library/exceptions.rst:570 msgid "" "An integer containing the number of characters written to the stream before " -"it blocked. This attribute is available when using the buffered I/O classes" -" from the :mod:`io` module." +"it blocked. This attribute is available when using the buffered I/O classes " +"from the :mod:`io` module." msgstr "" #: ../../library/exceptions.rst:576 msgid "" -"Raised when an operation on a child process failed. Corresponds to " -":c:data:`errno` ``ECHILD``." +"Raised when an operation on a child process failed. Corresponds to :c:data:" +"`errno` ``ECHILD``." msgstr "" #: ../../library/exceptions.rst:581 @@ -675,8 +783,8 @@ msgstr "" #: ../../library/exceptions.rst:583 msgid "" -"Subclasses are :exc:`BrokenPipeError`, :exc:`ConnectionAbortedError`, " -":exc:`ConnectionRefusedError` and :exc:`ConnectionResetError`." +"Subclasses are :exc:`BrokenPipeError`, :exc:`ConnectionAbortedError`, :exc:" +"`ConnectionRefusedError` and :exc:`ConnectionResetError`." msgstr "" #: ../../library/exceptions.rst:588 @@ -758,8 +866,8 @@ msgstr "" #: ../../library/exceptions.rst:656 msgid "" -"Raised when a system function timed out at the system level. Corresponds to " -":c:data:`errno` ``ETIMEDOUT``." +"Raised when a system function timed out at the system level. Corresponds to :" +"c:data:`errno` ``ETIMEDOUT``." msgstr "" #: ../../library/exceptions.rst:659 @@ -776,8 +884,8 @@ msgstr "" #: ../../library/exceptions.rst:673 msgid "" -"The following exceptions are used as warning categories; see the :ref" -":`warning-categories` documentation for more details." +"The following exceptions are used as warning categories; see the :ref:" +"`warning-categories` documentation for more details." msgstr "" #: ../../library/exceptions.rst:678 @@ -796,8 +904,8 @@ msgstr "" #: ../../library/exceptions.rst:694 msgid "" -"Base class for warnings about features which are obsolete and expected to be" -" deprecated in the future, but are not deprecated at the moment." +"Base class for warnings about features which are obsolete and expected to be " +"deprecated in the future, but are not deprecated at the moment." msgstr "" #: ../../library/exceptions.rst:698 diff --git a/library/faulthandler.po b/library/faulthandler.po index 4fc6ec49c..86a5947c6 100644 --- a/library/faulthandler.po +++ b/library/faulthandler.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-19 03:32+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,12 +29,12 @@ msgstr "" #: ../../library/faulthandler.rst:11 msgid "" "This module contains functions to dump Python tracebacks explicitly, on a " -"fault, after a timeout, or on a user signal. Call " -":func:`faulthandler.enable` to install fault handlers for the " -":const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS`, and " -":const:`SIGILL` signals. You can also enable them at startup by setting the " -":envvar:`PYTHONFAULTHANDLER` environment variable or by using the " -":option:`-X` ``faulthandler`` command line option." +"fault, after a timeout, or on a user signal. Call :func:`faulthandler." +"enable` to install fault handlers for the :const:`SIGSEGV`, :const:" +"`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS`, and :const:`SIGILL` signals. " +"You can also enable them at startup by setting the :envvar:" +"`PYTHONFAULTHANDLER` environment variable or by using the :option:`-X` " +"``faulthandler`` command line option." msgstr "" #: ../../library/faulthandler.rst:18 @@ -46,9 +47,9 @@ msgstr "" #: ../../library/faulthandler.rst:23 msgid "" -"The fault handler is called on catastrophic cases and therefore can only use" -" signal-safe functions (e.g. it cannot allocate memory on the heap). Because" -" of this limitation traceback dumping is minimal compared to normal Python " +"The fault handler is called on catastrophic cases and therefore can only use " +"signal-safe functions (e.g. it cannot allocate memory on the heap). Because " +"of this limitation traceback dumping is minimal compared to normal Python " "tracebacks:" msgstr "" @@ -110,17 +111,16 @@ msgstr "" #: ../../library/faulthandler.rst:61 msgid "" -"Enable the fault handler: install handlers for the :const:`SIGSEGV`, " -":const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` " -"signals to dump the Python traceback. If *all_threads* is ``True``, produce " -"tracebacks for every running thread. Otherwise, dump only the current " -"thread." +"Enable the fault handler: install handlers for the :const:`SIGSEGV`, :const:" +"`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` signals to " +"dump the Python traceback. If *all_threads* is ``True``, produce tracebacks " +"for every running thread. Otherwise, dump only the current thread." msgstr "" #: ../../library/faulthandler.rst:67 msgid "" -"The *file* must be kept open until the fault handler is disabled: see " -":ref:`issue with file descriptors `." +"The *file* must be kept open until the fault handler is disabled: see :ref:" +"`issue with file descriptors `." msgstr "" #: ../../library/faulthandler.rst:73 @@ -129,8 +129,8 @@ msgstr "" #: ../../library/faulthandler.rst:78 msgid "" -"Disable the fault handler: uninstall the signal handlers installed by " -":func:`enable`." +"Disable the fault handler: uninstall the signal handlers installed by :func:" +"`enable`." msgstr "" #: ../../library/faulthandler.rst:83 @@ -143,19 +143,19 @@ msgstr "" #: ../../library/faulthandler.rst:91 msgid "" -"Dump the tracebacks of all threads, after a timeout of *timeout* seconds, or" -" every *timeout* seconds if *repeat* is ``True``. If *exit* is ``True``, " -"call :c:func:`_exit` with status=1 after dumping the tracebacks. (Note " -":c:func:`_exit` exits the process immediately, which means it doesn't do any" -" cleanup like flushing file buffers.) If the function is called twice, the " +"Dump the tracebacks of all threads, after a timeout of *timeout* seconds, or " +"every *timeout* seconds if *repeat* is ``True``. If *exit* is ``True``, " +"call :c:func:`_exit` with status=1 after dumping the tracebacks. (Note :c:" +"func:`_exit` exits the process immediately, which means it doesn't do any " +"cleanup like flushing file buffers.) If the function is called twice, the " "new call replaces previous parameters and resets the timeout. The timer has " "a sub-second resolution." msgstr "" #: ../../library/faulthandler.rst:99 msgid "" -"The *file* must be kept open until the traceback is dumped or " -":func:`cancel_dump_traceback_later` is called: see :ref:`issue with file " +"The *file* must be kept open until the traceback is dumped or :func:" +"`cancel_dump_traceback_later` is called: see :ref:`issue with file " "descriptors `." msgstr "" @@ -184,9 +184,8 @@ msgstr "" #: ../../library/faulthandler.rst:125 msgid "" -"The *file* must be kept open until the signal is unregistered by " -":func:`unregister`: see :ref:`issue with file descriptors `." +"The *file* must be kept open until the signal is unregistered by :func:" +"`unregister`: see :ref:`issue with file descriptors `." msgstr "" #: ../../library/faulthandler.rst:128 ../../library/faulthandler.rst:139 @@ -196,8 +195,8 @@ msgstr "" #: ../../library/faulthandler.rst:135 msgid "" "Unregister a user signal: uninstall the handler of the *signum* signal " -"installed by :func:`register`. Return ``True`` if the signal was registered," -" ``False`` otherwise." +"installed by :func:`register`. Return ``True`` if the signal was registered, " +"``False`` otherwise." msgstr "" #: ../../library/faulthandler.rst:145 @@ -207,10 +206,10 @@ msgstr "" #: ../../library/faulthandler.rst:147 msgid "" ":func:`enable`, :func:`dump_traceback_later` and :func:`register` keep the " -"file descriptor of their *file* argument. If the file is closed and its file" -" descriptor is reused by a new file, or if :func:`os.dup2` is used to " -"replace the file descriptor, the traceback will be written into a different " -"file. Call these functions again each time that the file is replaced." +"file descriptor of their *file* argument. If the file is closed and its file " +"descriptor is reused by a new file, or if :func:`os.dup2` is used to replace " +"the file descriptor, the traceback will be written into a different file. " +"Call these functions again each time that the file is replaced." msgstr "" #: ../../library/faulthandler.rst:155 @@ -219,6 +218,6 @@ msgstr "Exemplo" #: ../../library/faulthandler.rst:157 msgid "" -"Example of a segmentation fault on Linux with and without enabling the fault" -" handler:" +"Example of a segmentation fault on Linux with and without enabling the fault " +"handler:" msgstr "" diff --git a/library/fcntl.po b/library/fcntl.po index 8192dadd9..d31517dc9 100644 --- a/library/fcntl.po +++ b/library/fcntl.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,24 +29,24 @@ msgstr ":mod:`fcntl` --- as chamadas do sistema ``fcntl`` e ``ioctl`` " #: ../../library/fcntl.rst:16 msgid "" -"This module performs file control and I/O control on file descriptors. It is" -" an interface to the :c:func:`fcntl` and :c:func:`ioctl` Unix routines. For" -" a complete description of these calls, see :manpage:`fcntl(2)` and " -":manpage:`ioctl(2)` Unix manual pages." +"This module performs file control and I/O control on file descriptors. It is " +"an interface to the :c:func:`fcntl` and :c:func:`ioctl` Unix routines. For " +"a complete description of these calls, see :manpage:`fcntl(2)` and :manpage:" +"`ioctl(2)` Unix manual pages." msgstr "" "Este módulo executa o controle de arquivos e o controle de I/O em " -"descritores de arquivos. É uma interface para as rotinas :c:func:`fcntl` and" -" :c:func:`ioctl` do Unix. Para obter uma descrição completa dessas chamadas," -" consulte :manpage:`fcntl(2)` e :manpage:`ioctl(2)` Páginas do Manual do " -"Unix." +"descritores de arquivos. É uma interface para as rotinas :c:func:`fcntl` " +"and :c:func:`ioctl` do Unix. Para obter uma descrição completa dessas " +"chamadas, consulte :manpage:`fcntl(2)` e :manpage:`ioctl(2)` Páginas do " +"Manual do Unix." #: ../../library/fcntl.rst:21 msgid "" "All functions in this module take a file descriptor *fd* as their first " -"argument. This can be an integer file descriptor, such as returned by " -"``sys.stdin.fileno()``, or an :class:`io.IOBase` object, such as " -"``sys.stdin`` itself, which provides a :meth:`~io.IOBase.fileno` that " -"returns a genuine file descriptor." +"argument. This can be an integer file descriptor, such as returned by ``sys." +"stdin.fileno()``, or an :class:`io.IOBase` object, such as ``sys.stdin`` " +"itself, which provides a :meth:`~io.IOBase.fileno` that returns a genuine " +"file descriptor." msgstr "" #: ../../library/fcntl.rst:27 @@ -63,18 +65,17 @@ msgid "" "a :meth:`~io.IOBase.fileno` method are accepted as well). The values used " "for *cmd* are operating system dependent, and are available as constants in " "the :mod:`fcntl` module, using the same names as used in the relevant C " -"header files. The argument *arg* can either be an integer value, or a " -":class:`bytes` object. With an integer value, the return value of this " -"function is the integer return value of the C :c:func:`fcntl` call. When " -"the argument is bytes it represents a binary structure, e.g. created by " -":func:`struct.pack`. The binary data is copied to a buffer whose address is " -"passed to the C :c:func:`fcntl` call. The return value after a successful " -"call is the contents of the buffer, converted to a :class:`bytes` object. " -"The length of the returned object will be the same as the length of the " -"*arg* argument. This is limited to 1024 bytes. If the information returned " -"in the buffer by the operating system is larger than 1024 bytes, this is " -"most likely to result in a segmentation violation or a more subtle data " -"corruption." +"header files. The argument *arg* can either be an integer value, or a :class:" +"`bytes` object. With an integer value, the return value of this function is " +"the integer return value of the C :c:func:`fcntl` call. When the argument " +"is bytes it represents a binary structure, e.g. created by :func:`struct." +"pack`. The binary data is copied to a buffer whose address is passed to the " +"C :c:func:`fcntl` call. The return value after a successful call is the " +"contents of the buffer, converted to a :class:`bytes` object. The length of " +"the returned object will be the same as the length of the *arg* argument. " +"This is limited to 1024 bytes. If the information returned in the buffer by " +"the operating system is larger than 1024 bytes, this is most likely to " +"result in a segmentation violation or a more subtle data corruption." msgstr "" #: ../../library/fcntl.rst:54 @@ -84,8 +85,8 @@ msgstr "" #: ../../library/fcntl.rst:59 msgid "" -"This function is identical to the :func:`~fcntl.fcntl` function, except that" -" the argument handling is even more complicated." +"This function is identical to the :func:`~fcntl.fcntl` function, except that " +"the argument handling is even more complicated." msgstr "" #: ../../library/fcntl.rst:62 @@ -99,8 +100,8 @@ msgstr "" #: ../../library/fcntl.rst:67 msgid "" "The parameter *arg* can be one of an integer, an object supporting the read-" -"only buffer interface (like :class:`bytes`) or an object supporting the " -"read-write buffer interface (like :class:`bytearray`)." +"only buffer interface (like :class:`bytes`) or an object supporting the read-" +"write buffer interface (like :class:`bytearray`)." msgstr "" #: ../../library/fcntl.rst:71 @@ -111,24 +112,24 @@ msgstr "" #: ../../library/fcntl.rst:74 msgid "" -"If a mutable buffer is passed, then the behaviour is determined by the value" -" of the *mutate_flag* parameter." +"If a mutable buffer is passed, then the behaviour is determined by the value " +"of the *mutate_flag* parameter." msgstr "" #: ../../library/fcntl.rst:77 msgid "" -"If it is false, the buffer's mutability is ignored and behaviour is as for a" -" read-only buffer, except that the 1024 byte limit mentioned above is " -"avoided -- so long as the buffer you pass is at least as long as what the " -"operating system wants to put there, things should work." +"If it is false, the buffer's mutability is ignored and behaviour is as for a " +"read-only buffer, except that the 1024 byte limit mentioned above is avoided " +"-- so long as the buffer you pass is at least as long as what the operating " +"system wants to put there, things should work." msgstr "" #: ../../library/fcntl.rst:82 msgid "" "If *mutate_flag* is true (the default), then the buffer is (in effect) " -"passed to the underlying :func:`ioctl` system call, the latter's return code" -" is passed back to the calling Python, and the buffer's new contents reflect" -" the action of the :func:`ioctl`. This is a slight simplification, because " +"passed to the underlying :func:`ioctl` system call, the latter's return code " +"is passed back to the calling Python, and the buffer's new contents reflect " +"the action of the :func:`ioctl`. This is a slight simplification, because " "if the supplied buffer is less than 1024 bytes long it is first copied into " "a static buffer 1024 bytes long which is then passed to :func:`ioctl` and " "copied back into the supplied buffer." @@ -144,9 +145,9 @@ msgstr "Um exemplo::" #: ../../library/fcntl.rst:108 msgid "" -"Perform the lock operation *operation* on file descriptor *fd* (file objects" -" providing a :meth:`~io.IOBase.fileno` method are accepted as well). See the" -" Unix manual :manpage:`flock(2)` for details. (On some systems, this " +"Perform the lock operation *operation* on file descriptor *fd* (file objects " +"providing a :meth:`~io.IOBase.fileno` method are accepted as well). See the " +"Unix manual :manpage:`flock(2)` for details. (On some systems, this " "function is emulated using :c:func:`fcntl`.)" msgstr "" @@ -156,14 +157,14 @@ msgstr "" #: ../../library/fcntl.rst:118 msgid "" -"This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls." -" *fd* is the file descriptor of the file to lock or unlock, and *cmd* is one" -" of the following values:" +"This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls. " +"*fd* is the file descriptor of the file to lock or unlock, and *cmd* is one " +"of the following values:" msgstr "" #: ../../library/fcntl.rst:122 msgid ":const:`LOCK_UN` -- unlock" -msgstr "" +msgstr ":const:`LOCK_UN` -- desbloquear" #: ../../library/fcntl.rst:123 msgid ":const:`LOCK_SH` -- acquire a shared lock" @@ -176,20 +177,20 @@ msgstr "" #: ../../library/fcntl.rst:126 msgid "" "When *cmd* is :const:`LOCK_SH` or :const:`LOCK_EX`, it can also be bitwise " -"ORed with :const:`LOCK_NB` to avoid blocking on lock acquisition. If " -":const:`LOCK_NB` is used and the lock cannot be acquired, an :exc:`OSError` " -"will be raised and the exception will have an *errno* attribute set to " -":const:`EACCES` or :const:`EAGAIN` (depending on the operating system; for " -"portability, check for both values). On at least some systems, " -":const:`LOCK_EX` can only be used if the file descriptor refers to a file " -"opened for writing." +"ORed with :const:`LOCK_NB` to avoid blocking on lock acquisition. If :const:" +"`LOCK_NB` is used and the lock cannot be acquired, an :exc:`OSError` will be " +"raised and the exception will have an *errno* attribute set to :const:" +"`EACCES` or :const:`EAGAIN` (depending on the operating system; for " +"portability, check for both values). On at least some systems, :const:" +"`LOCK_EX` can only be used if the file descriptor refers to a file opened " +"for writing." msgstr "" #: ../../library/fcntl.rst:135 msgid "" "*len* is the number of bytes to lock, *start* is the byte offset at which " -"the lock starts, relative to *whence*, and *whence* is as with " -":func:`io.IOBase.seek`, specifically:" +"the lock starts, relative to *whence*, and *whence* is as with :func:`io." +"IOBase.seek`, specifically:" msgstr "" #: ../../library/fcntl.rst:139 @@ -208,8 +209,8 @@ msgstr "" #: ../../library/fcntl.rst:143 msgid "" "The default for *start* is 0, which means to start at the beginning of the " -"file. The default for *len* is 0 which means to lock to the end of the file." -" The default for *whence* is also 0." +"file. The default for *len* is 0 which means to lock to the end of the " +"file. The default for *whence* is also 0." msgstr "" #: ../../library/fcntl.rst:147 diff --git a/library/filecmp.po b/library/filecmp.po index 30d16498b..2bb567b84 100644 --- a/library/filecmp.po +++ b/library/filecmp.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -61,8 +63,8 @@ msgstr "" #: ../../library/filecmp.rst:31 msgid "" "This function uses a cache for past comparisons and the results, with cache " -"entries invalidated if the :func:`os.stat` information for the file changes." -" The entire cache may be cleared using :func:`clear_cache`." +"entries invalidated if the :func:`os.stat` information for the file " +"changes. The entire cache may be cleared using :func:`clear_cache`." msgstr "" #: ../../library/filecmp.rst:38 @@ -83,21 +85,21 @@ msgstr "" #: ../../library/filecmp.rst:48 msgid "" -"The *shallow* parameter has the same meaning and default value as for " -":func:`filecmp.cmp`." +"The *shallow* parameter has the same meaning and default value as for :func:" +"`filecmp.cmp`." msgstr "" #: ../../library/filecmp.rst:51 msgid "" "For example, ``cmpfiles('a', 'b', ['c', 'd/e'])`` will compare ``a/c`` with " -"``b/c`` and ``a/d/e`` with ``b/d/e``. ``'c'`` and ``'d/e'`` will each be in" -" one of the three returned lists." +"``b/c`` and ``a/d/e`` with ``b/d/e``. ``'c'`` and ``'d/e'`` will each be in " +"one of the three returned lists." msgstr "" #: ../../library/filecmp.rst:58 msgid "" -"Clear the filecmp cache. This may be useful if a file is compared so quickly" -" after it is modified that it is within the mtime resolution of the " +"Clear the filecmp cache. This may be useful if a file is compared so quickly " +"after it is modified that it is within the mtime resolution of the " "underlying filesystem." msgstr "" @@ -108,9 +110,9 @@ msgstr "" #: ../../library/filecmp.rst:72 msgid "" "Construct a new directory comparison object, to compare the directories *a* " -"and *b*. *ignore* is a list of names to ignore, and defaults to " -":attr:`filecmp.DEFAULT_IGNORES`. *hide* is a list of names to hide, and " -"defaults to ``[os.curdir, os.pardir]``." +"and *b*. *ignore* is a list of names to ignore, and defaults to :attr:" +"`filecmp.DEFAULT_IGNORES`. *hide* is a list of names to hide, and defaults " +"to ``[os.curdir, os.pardir]``." msgstr "" #: ../../library/filecmp.rst:77 @@ -140,16 +142,16 @@ msgstr "" #: ../../library/filecmp.rst:96 msgid "" -"The :class:`dircmp` class offers a number of interesting attributes that may" -" be used to get various bits of information about the directory trees being " +"The :class:`dircmp` class offers a number of interesting attributes that may " +"be used to get various bits of information about the directory trees being " "compared." msgstr "" #: ../../library/filecmp.rst:100 msgid "" -"Note that via :meth:`__getattr__` hooks, all attributes are computed lazily," -" so there is no speed penalty if only those attributes which are lightweight" -" to compute are used." +"Note that via :meth:`__getattr__` hooks, all attributes are computed lazily, " +"so there is no speed penalty if only those attributes which are lightweight " +"to compute are used." msgstr "" #: ../../library/filecmp.rst:107 @@ -212,8 +214,7 @@ msgstr "" #: ../../library/filecmp.rst:175 msgid "" -"A dictionary mapping names in :attr:`common_dirs` to :class:`dircmp` " -"objects." +"A dictionary mapping names in :attr:`common_dirs` to :class:`dircmp` objects." msgstr "" #: ../../library/filecmp.rst:182 diff --git a/library/fileformats.po b/library/fileformats.po index b8003fd9d..4bb7be915 100644 --- a/library/fileformats.po +++ b/library/fileformats.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Erick Simões , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" "Last-Translator: Erick Simões , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,5 +33,5 @@ msgid "" "formats that aren't markup languages and are not related to e-mail." msgstr "" "Os módulos descritos neste capítulo analisam vários formatos de arquivo " -"diversos que não são linguagens de marcação e não estão relacionados ao " -"e-mail." +"diversos que não são linguagens de marcação e não estão relacionados ao e-" +"mail." diff --git a/library/fileinput.po b/library/fileinput.po index f671733db..2845105dd 100644 --- a/library/fileinput.po +++ b/library/fileinput.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-03 11:46+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,8 +45,8 @@ msgstr "" #: ../../library/fileinput.rst:24 msgid "" "This iterates over the lines of all files listed in ``sys.argv[1:]``, " -"defaulting to ``sys.stdin`` if the list is empty. If a filename is ``'-'``," -" it is also replaced by ``sys.stdin`` and the optional arguments *mode* and " +"defaulting to ``sys.stdin`` if the list is empty. If a filename is ``'-'``, " +"it is also replaced by ``sys.stdin`` and the optional arguments *mode* and " "*openhook* are ignored. To specify an alternative list of filenames, pass " "it as the first argument to :func:`.input`. A single file name is also " "allowed." @@ -53,14 +55,13 @@ msgstr "" #: ../../library/fileinput.rst:30 msgid "" "All files are opened in text mode by default, but you can override this by " -"specifying the *mode* parameter in the call to :func:`.input` or " -":class:`FileInput`. If an I/O error occurs during opening or reading a " -"file, :exc:`OSError` is raised." +"specifying the *mode* parameter in the call to :func:`.input` or :class:" +"`FileInput`. If an I/O error occurs during opening or reading a file, :exc:" +"`OSError` is raised." msgstr "" #: ../../library/fileinput.rst:35 -msgid "" -":exc:`IOError` used to be raised; it is now an alias of :exc:`OSError`." +msgid ":exc:`IOError` used to be raised; it is now an alias of :exc:`OSError`." msgstr "" #: ../../library/fileinput.rst:38 @@ -86,10 +87,10 @@ msgstr "" #: ../../library/fileinput.rst:49 msgid "" "You can control how files are opened by providing an opening hook via the " -"*openhook* parameter to :func:`fileinput.input` or :class:`FileInput()`. The" -" hook must be a function that takes two arguments, *filename* and *mode*, " -"and returns an accordingly opened file-like object. Two useful hooks are " -"already provided by this module." +"*openhook* parameter to :func:`fileinput.input` or :class:`FileInput()`. The " +"hook must be a function that takes two arguments, *filename* and *mode*, and " +"returns an accordingly opened file-like object. Two useful hooks are already " +"provided by this module." msgstr "" #: ../../library/fileinput.rst:55 @@ -106,9 +107,9 @@ msgstr "" #: ../../library/fileinput.rst:65 msgid "" -"The :class:`FileInput` instance can be used as a context manager in the " -":keyword:`with` statement. In this example, *input* is closed after the " -":keyword:`!with` statement is exited, even if an exception occurs::" +"The :class:`FileInput` instance can be used as a context manager in the :" +"keyword:`with` statement. In this example, *input* is closed after the :" +"keyword:`!with` statement is exited, even if an exception occurs::" msgstr "" #: ../../library/fileinput.rst:73 ../../library/fileinput.rst:164 @@ -121,21 +122,20 @@ msgstr "" #: ../../library/fileinput.rst:79 msgid "" -"The following functions use the global state created by " -":func:`fileinput.input`; if there is no active state, :exc:`RuntimeError` is" -" raised." +"The following functions use the global state created by :func:`fileinput." +"input`; if there is no active state, :exc:`RuntimeError` is raised." msgstr "" #: ../../library/fileinput.rst:85 msgid "" -"Return the name of the file currently being read. Before the first line has" -" been read, returns ``None``." +"Return the name of the file currently being read. Before the first line has " +"been read, returns ``None``." msgstr "" #: ../../library/fileinput.rst:91 msgid "" -"Return the integer \"file descriptor\" for the current file. When no file is" -" opened (before the first line and between files), returns ``-1``." +"Return the integer \"file descriptor\" for the current file. When no file is " +"opened (before the first line and between files), returns ``-1``." msgstr "" #: ../../library/fileinput.rst:97 @@ -154,14 +154,14 @@ msgstr "" #: ../../library/fileinput.rst:111 msgid "" -"Returns true if the line just read is the first line of its file, otherwise " -"returns false." +"Return ``True`` if the line just read is the first line of its file, " +"otherwise return ``False``." msgstr "" #: ../../library/fileinput.rst:117 msgid "" -"Returns true if the last line was read from ``sys.stdin``, otherwise returns" -" false." +"Return ``True`` if the last line was read from ``sys.stdin``, otherwise " +"return ``False``." msgstr "" #: ../../library/fileinput.rst:123 @@ -171,8 +171,8 @@ msgid "" "towards the cumulative line count. The filename is not changed until after " "the first line of the next file has been read. Before the first line has " "been read, this function has no effect; it cannot be used to skip the first " -"file. After the last line of the last file has been read, this function has" -" no effect." +"file. After the last line of the last file has been read, this function has " +"no effect." msgstr "" #: ../../library/fileinput.rst:133 @@ -187,14 +187,14 @@ msgstr "" #: ../../library/fileinput.rst:141 msgid "" -"Class :class:`FileInput` is the implementation; its methods " -":meth:`filename`, :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, " -":meth:`isfirstline`, :meth:`isstdin`, :meth:`nextfile` and :meth:`close` " +"Class :class:`FileInput` is the implementation; its methods :meth:" +"`filename`, :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, :meth:" +"`isfirstline`, :meth:`isstdin`, :meth:`nextfile` and :meth:`close` " "correspond to the functions of the same name in the module. In addition it " "has a :meth:`~io.TextIOBase.readline` method which returns the next input " "line, and a :meth:`__getitem__` method which implements the sequence " -"behavior. The sequence must be accessed in strictly sequential order; random" -" access and :meth:`~io.TextIOBase.readline` cannot be mixed." +"behavior. The sequence must be accessed in strictly sequential order; random " +"access and :meth:`~io.TextIOBase.readline` cannot be mixed." msgstr "" #: ../../library/fileinput.rst:150 @@ -212,9 +212,9 @@ msgstr "" #: ../../library/fileinput.rst:157 msgid "" -"A :class:`FileInput` instance can be used as a context manager in the " -":keyword:`with` statement. In this example, *input* is closed after the " -":keyword:`!with` statement is exited, even if an exception occurs::" +"A :class:`FileInput` instance can be used as a context manager in the :" +"keyword:`with` statement. In this example, *input* is closed after the :" +"keyword:`!with` statement is exited, even if an exception occurs::" msgstr "" #: ../../library/fileinput.rst:167 @@ -223,11 +223,11 @@ msgstr "" #: ../../library/fileinput.rst:174 msgid "" -"**Optional in-place filtering:** if the keyword argument ``inplace=True`` is" -" passed to :func:`fileinput.input` or to the :class:`FileInput` constructor," -" the file is moved to a backup file and standard output is directed to the " -"input file (if a file of the same name as the backup file already exists, it" -" will be replaced silently). This makes it possible to write a filter that " +"**Optional in-place filtering:** if the keyword argument ``inplace=True`` is " +"passed to :func:`fileinput.input` or to the :class:`FileInput` constructor, " +"the file is moved to a backup file and standard output is directed to the " +"input file (if a file of the same name as the backup file already exists, it " +"will be replaced silently). This makes it possible to write a filter that " "rewrites its input file in place. If the *backup* parameter is given " "(typically as ``backup='.'``), it specifies the extension " "for the backup file, and the backup file remains around; by default, the " @@ -243,14 +243,14 @@ msgstr "" msgid "" "Transparently opens files compressed with gzip and bzip2 (recognized by the " "extensions ``'.gz'`` and ``'.bz2'``) using the :mod:`gzip` and :mod:`bz2` " -"modules. If the filename extension is not ``'.gz'`` or ``'.bz2'``, the file" -" is opened normally (ie, using :func:`open` without any decompression)." +"modules. If the filename extension is not ``'.gz'`` or ``'.bz2'``, the file " +"is opened normally (ie, using :func:`open` without any decompression)." msgstr "" #: ../../library/fileinput.rst:195 msgid "" -"Usage example: ``fi = " -"fileinput.FileInput(openhook=fileinput.hook_compressed)``" +"Usage example: ``fi = fileinput.FileInput(openhook=fileinput." +"hook_compressed)``" msgstr "" #: ../../library/fileinput.rst:200 @@ -261,9 +261,8 @@ msgstr "" #: ../../library/fileinput.rst:203 msgid "" -"Usage example: ``fi = " -"fileinput.FileInput(openhook=fileinput.hook_encoded(\"utf-8\", " -"\"surrogateescape\"))``" +"Usage example: ``fi = fileinput.FileInput(openhook=fileinput." +"hook_encoded(\"utf-8\", \"surrogateescape\"))``" msgstr "" #: ../../library/fileinput.rst:207 diff --git a/library/filesys.po b/library/filesys.po index 2aa1815fa..2b5c73cb2 100644 --- a/library/filesys.po +++ b/library/filesys.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,8 +29,8 @@ msgstr "Arquivo e Acesso aos Diretórios" #: ../../library/filesys.rst:7 msgid "" -"The modules described in this chapter deal with disk files and directories." -" For example, there are modules for reading the properties of files, " +"The modules described in this chapter deal with disk files and directories. " +"For example, there are modules for reading the properties of files, " "manipulating paths in a portable way, and creating temporary files. The " "full list of modules in this chapter is:" msgstr "" diff --git a/library/fnmatch.po b/library/fnmatch.po index 1913d41ae..d2f3fb8a5 100644 --- a/library/fnmatch.po +++ b/library/fnmatch.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/fnmatch.py`" #: ../../library/fnmatch.rst:15 msgid "" -"This module provides support for Unix shell-style wildcards, which are *not*" -" the same as regular expressions (which are documented in the :mod:`re` " +"This module provides support for Unix shell-style wildcards, which are *not* " +"the same as regular expressions (which are documented in the :mod:`re` " "module). The special characters used in shell-style wildcards are:" msgstr "" @@ -48,7 +49,7 @@ msgstr "Significado" #: ../../library/fnmatch.rst:29 msgid "``*``" -msgstr "" +msgstr "``*``" #: ../../library/fnmatch.rst:29 msgid "matches everything" @@ -56,7 +57,7 @@ msgstr "" #: ../../library/fnmatch.rst:31 msgid "``?``" -msgstr "" +msgstr "``?``" #: ../../library/fnmatch.rst:31 msgid "matches any single character" @@ -64,7 +65,7 @@ msgstr "" #: ../../library/fnmatch.rst:33 msgid "``[seq]``" -msgstr "" +msgstr "``[seq]``" #: ../../library/fnmatch.rst:33 msgid "matches any character in *seq*" @@ -72,7 +73,7 @@ msgstr "" #: ../../library/fnmatch.rst:35 msgid "``[!seq]``" -msgstr "" +msgstr "``[!seq]``" #: ../../library/fnmatch.rst:35 msgid "matches any character not in *seq*" @@ -87,17 +88,17 @@ msgstr "" #: ../../library/fnmatch.rst:43 msgid "" "Note that the filename separator (``'/'`` on Unix) is *not* special to this " -"module. See module :mod:`glob` for pathname expansion (:mod:`glob` uses " -":func:`.filter` to match pathname segments). Similarly, filenames starting " +"module. See module :mod:`glob` for pathname expansion (:mod:`glob` uses :" +"func:`.filter` to match pathname segments). Similarly, filenames starting " "with a period are not special for this module, and are matched by the ``*`` " "and ``?`` patterns." msgstr "" #: ../../library/fnmatch.rst:52 msgid "" -"Test whether the *filename* string matches the *pattern* string, returning " -":const:`True` or :const:`False`. Both parameters are case-normalized using " -":func:`os.path.normcase`. :func:`fnmatchcase` can be used to perform a case-" +"Test whether the *filename* string matches the *pattern* string, returning :" +"const:`True` or :const:`False`. Both parameters are case-normalized using :" +"func:`os.path.normcase`. :func:`fnmatchcase` can be used to perform a case-" "sensitive comparison, regardless of whether that's standard for the " "operating system." msgstr "" @@ -110,9 +111,9 @@ msgstr "" #: ../../library/fnmatch.rst:71 msgid "" -"Test whether *filename* matches *pattern*, returning :const:`True` or " -":const:`False`; the comparison is case-sensitive and does not apply " -":func:`os.path.normcase`." +"Test whether *filename* matches *pattern*, returning :const:`True` or :const:" +"`False`; the comparison is case-sensitive and does not apply :func:`os.path." +"normcase`." msgstr "" #: ../../library/fnmatch.rst:78 @@ -124,8 +125,8 @@ msgstr "" #: ../../library/fnmatch.rst:84 msgid "" -"Return the shell-style *pattern* converted to a regular expression for using" -" with :func:`re.match`." +"Return the shell-style *pattern* converted to a regular expression for using " +"with :func:`re.match`." msgstr "" #: ../../library/fnmatch.rst:87 diff --git a/library/formatter.po b/library/formatter.po index 3e90b12c1..401560364 100644 --- a/library/formatter.po +++ b/library/formatter.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Cássio Nomura , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Cássio Nomura , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,8 +33,8 @@ msgstr "" #: ../../library/formatter.rst:13 msgid "" "This module supports two interface definitions, each with multiple " -"implementations: The *formatter* interface, and the *writer* interface which" -" is required by the formatter interface." +"implementations: The *formatter* interface, and the *writer* interface which " +"is required by the formatter interface." msgstr "" #: ../../library/formatter.rst:17 @@ -75,8 +80,8 @@ msgid "" "Value which can be used in the font specification passed to the " "``push_font()`` method described below, or as the new value to any other " "``push_property()`` method. Pushing the ``AS_IS`` value allows the " -"corresponding ``pop_property()`` method to be called without having to track" -" whether the property was changed." +"corresponding ``pop_property()`` method to be called without having to track " +"whether the property was changed." msgstr "" #: ../../library/formatter.rst:53 @@ -103,14 +108,14 @@ msgstr "" msgid "" "Insert a horizontal rule in the output. A hard break is inserted if there " "is data in the current paragraph, but the logical paragraph is not broken. " -"The arguments and keywords are passed on to the writer's " -":meth:`send_line_break` method." +"The arguments and keywords are passed on to the writer's :meth:" +"`send_line_break` method." msgstr "" #: ../../library/formatter.rst:83 msgid "" -"Provide data which should be formatted with collapsed whitespace. Whitespace" -" from preceding and successive calls to :meth:`add_flowing_data` is " +"Provide data which should be formatted with collapsed whitespace. Whitespace " +"from preceding and successive calls to :meth:`add_flowing_data` is " "considered as well when the whitespace collapse is performed. The data " "which is passed to this method is expected to be word-wrapped by the output " "device. Note that any word-wrapping still must be performed by the writer " @@ -127,9 +132,9 @@ msgstr "" #: ../../library/formatter.rst:100 msgid "" "Insert a label which should be placed to the left of the current left " -"margin. This should be used for constructing bulleted or numbered lists. If" -" the *format* value is a string, it is interpreted as a format specification" -" for *counter*, which should be an integer. The result of this formatting " +"margin. This should be used for constructing bulleted or numbered lists. If " +"the *format* value is a string, it is interpreted as a format specification " +"for *counter*, which should be an integer. The result of this formatting " "becomes the value of the label; if *format* is not a string it is used as " "the label value directly. The label value is passed as the only argument to " "the writer's :meth:`send_label_data` method. Interpretation of non-string " @@ -144,30 +149,30 @@ msgid "" "indicate a transform on the counter value. Specifically, the character " "``'1'`` represents the counter value formatter as an Arabic number, the " "characters ``'A'`` and ``'a'`` represent alphabetic representations of the " -"counter value in upper and lower case, respectively, and ``'I'`` and ``'i'``" -" represent the counter value in Roman numerals, in upper and lower case. " -"Note that the alphabetic and roman transforms require that the counter value" -" be greater than zero." +"counter value in upper and lower case, respectively, and ``'I'`` and ``'i'`` " +"represent the counter value in Roman numerals, in upper and lower case. " +"Note that the alphabetic and roman transforms require that the counter value " +"be greater than zero." msgstr "" #: ../../library/formatter.rst:122 msgid "" -"Send any pending whitespace buffered from a previous call to " -":meth:`add_flowing_data` to the associated writer object. This should be " -"called before any direct manipulation of the writer object." +"Send any pending whitespace buffered from a previous call to :meth:" +"`add_flowing_data` to the associated writer object. This should be called " +"before any direct manipulation of the writer object." msgstr "" #: ../../library/formatter.rst:129 msgid "" -"Push a new alignment setting onto the alignment stack. This may be " -":const:`AS_IS` if no change is desired. If the alignment value is changed " -"from the previous setting, the writer's :meth:`new_alignment` method is " -"called with the *align* value." +"Push a new alignment setting onto the alignment stack. This may be :const:" +"`AS_IS` if no change is desired. If the alignment value is changed from the " +"previous setting, the writer's :meth:`new_alignment` method is called with " +"the *align* value." msgstr "" #: ../../library/formatter.rst:137 msgid "Restore the previous alignment." -msgstr "" +msgstr "Restaurar o anterior" #: ../../library/formatter.rst:142 msgid "" @@ -179,7 +184,7 @@ msgstr "" #: ../../library/formatter.rst:150 msgid "Restore the previous font." -msgstr "" +msgstr "Restaurar a fonte anterior." #: ../../library/formatter.rst:155 msgid "" @@ -191,20 +196,20 @@ msgstr "" #: ../../library/formatter.rst:163 msgid "Restore the previous margin." -msgstr "" +msgstr "Restaurar a margem anterior." #: ../../library/formatter.rst:168 msgid "" "Push any number of arbitrary style specifications. All styles are pushed " "onto the styles stack in order. A tuple representing the entire stack, " -"including :const:`AS_IS` values, is passed to the writer's " -":meth:`new_styles` method." +"including :const:`AS_IS` values, is passed to the writer's :meth:" +"`new_styles` method." msgstr "" #: ../../library/formatter.rst:175 msgid "" -"Pop the last *n* style specifications passed to :meth:`push_style`. A tuple" -" representing the revised stack, including :const:`AS_IS` values, is passed " +"Pop the last *n* style specifications passed to :meth:`push_style`. A tuple " +"representing the revised stack, including :const:`AS_IS` values, is passed " "to the writer's :meth:`new_styles` method." msgstr "" @@ -215,8 +220,8 @@ msgstr "" #: ../../library/formatter.rst:187 msgid "" "Inform the formatter that data has been added to the current paragraph out-" -"of-band. This should be used when the writer has been manipulated directly." -" The optional *flag* argument can be set to false if the writer " +"of-band. This should be used when the writer has been manipulated " +"directly. The optional *flag* argument can be set to false if the writer " "manipulations produced a hard line break at the end of the output." msgstr "" @@ -233,19 +238,19 @@ msgstr "" #: ../../library/formatter.rst:204 msgid "" -"A formatter which does nothing. If *writer* is omitted, a " -":class:`NullWriter` instance is created. No methods of the writer are " -"called by :class:`NullFormatter` instances. Implementations should inherit " -"from this class if implementing a writer interface but don't need to inherit" -" any implementation." +"A formatter which does nothing. If *writer* is omitted, a :class:" +"`NullWriter` instance is created. No methods of the writer are called by :" +"class:`NullFormatter` instances. Implementations should inherit from this " +"class if implementing a writer interface but don't need to inherit any " +"implementation." msgstr "" #: ../../library/formatter.rst:213 msgid "" "The standard formatter. This implementation has demonstrated wide " "applicability to many writers, and may be used directly in most " -"circumstances. It has been used to implement a full-featured World Wide Web" -" browser." +"circumstances. It has been used to implement a full-featured World Wide Web " +"browser." msgstr "" #: ../../library/formatter.rst:221 @@ -269,8 +274,8 @@ msgstr "" msgid "" "Set the alignment style. The *align* value can be any object, but by " "convention is a string or ``None``, where ``None`` indicates that the " -"writer's \"preferred\" alignment should be used. Conventional *align* values" -" are ``'left'``, ``'center'``, ``'right'``, and ``'justify'``." +"writer's \"preferred\" alignment should be used. Conventional *align* values " +"are ``'left'``, ``'center'``, ``'right'``, and ``'justify'``." msgstr "" #: ../../library/formatter.rst:245 @@ -279,14 +284,14 @@ msgid "" "the device's default font should be used, or a tuple of the form ``(size, " "italic, bold, teletype)``. Size will be a string indicating the size of " "font that should be used; specific strings and their interpretation must be " -"defined by the application. The *italic*, *bold*, and *teletype* values are" -" Boolean values specifying which of those font attributes should be used." +"defined by the application. The *italic*, *bold*, and *teletype* values are " +"Boolean values specifying which of those font attributes should be used." msgstr "" #: ../../library/formatter.rst:255 msgid "" -"Set the margin level to the integer *level* and the logical tag to *margin*." -" Interpretation of the logical tag is at the writer's discretion; the only " +"Set the margin level to the integer *level* and the logical tag to *margin*. " +"Interpretation of the logical tag is at the writer's discretion; the only " "restriction on the value of the logical tag is that it not be a false value " "for non-zero values of *level*." msgstr "" @@ -344,8 +349,8 @@ msgstr "" #: ../../library/formatter.rst:315 msgid "" -"Set *data* to the left of the current left margin, if possible. The value of" -" *data* is not restricted; treatment of non-string values is entirely " +"Set *data* to the left of the current left margin, if possible. The value of " +"*data* is not restricted; treatment of non-string values is entirely " "application- and writer-dependent. This method will only be called at the " "beginning of a line." msgstr "" @@ -370,15 +375,15 @@ msgstr "" #: ../../library/formatter.rst:340 msgid "" -"A writer which can be used in debugging formatters, but not much else. Each" -" method simply announces itself by printing its name and arguments on " +"A writer which can be used in debugging formatters, but not much else. Each " +"method simply announces itself by printing its name and arguments on " "standard output." msgstr "" #: ../../library/formatter.rst:347 msgid "" -"Simple writer class which writes output on the :term:`file object` passed in" -" as *file* or, if *file* is omitted, on standard output. The output is " +"Simple writer class which writes output on the :term:`file object` passed in " +"as *file* or, if *file* is omitted, on standard output. The output is " "simply word-wrapped to the number of columns specified by *maxcol*. This " "class is suitable for reflowing a sequence of paragraphs." msgstr "" diff --git a/library/fpectl.po b/library/fpectl.po deleted file mode 100644 index 2b6e8074c..000000000 --- a/library/fpectl.po +++ /dev/null @@ -1,132 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -# Translators: -# And Past , 2017 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.6\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-05 15:01+0000\n" -"PO-Revision-Date: 2017-02-16 23:11+0000\n" -"Last-Translator: And Past , 2017\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" -"teams/5390/pt_BR/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: ../../library/fpectl.rst:2 -msgid ":mod:`fpectl` --- Floating point exception control" -msgstr "" - -#: ../../library/fpectl.rst:13 -msgid "" -"The :mod:`fpectl` module is not built by default, and its usage is " -"discouraged and may be dangerous except in the hands of experts. See also " -"the section :ref:`fpectl-limitations` on limitations for more details." -msgstr "" - -#: ../../library/fpectl.rst:21 -msgid "" -"Most computers carry out floating point operations in conformance with the " -"so-called IEEE-754 standard. On any real computer, some floating point " -"operations produce results that cannot be expressed as a normal floating " -"point value. For example, try ::" -msgstr "" - -#: ../../library/fpectl.rst:32 -msgid "" -"(The example above will work on many platforms. DEC Alpha may be one " -"exception.) \"Inf\" is a special, non-numeric value in IEEE-754 that stands " -"for \"infinity\", and \"nan\" means \"not a number.\" Note that, other than " -"the non-numeric results, nothing special happened when you asked Python to " -"carry out those calculations. That is in fact the default behaviour " -"prescribed in the IEEE-754 standard, and if it works for you, stop reading " -"now." -msgstr "" - -#: ../../library/fpectl.rst:39 -msgid "" -"In some circumstances, it would be better to raise an exception and stop " -"processing at the point where the faulty operation was attempted. The :mod:" -"`fpectl` module is for use in that situation. It provides control over " -"floating point units from several hardware manufacturers, allowing the user " -"to turn on the generation of :const:`SIGFPE` whenever any of the IEEE-754 " -"exceptions Division by Zero, Overflow, or Invalid Operation occurs. In " -"tandem with a pair of wrapper macros that are inserted into the C code " -"comprising your python system, :const:`SIGFPE` is trapped and converted into " -"the Python :exc:`FloatingPointError` exception." -msgstr "" - -#: ../../library/fpectl.rst:49 -msgid "" -"The :mod:`fpectl` module defines the following functions and may raise the " -"given exception:" -msgstr "" - -#: ../../library/fpectl.rst:55 -msgid "" -"Turn on the generation of :const:`SIGFPE`, and set up an appropriate signal " -"handler." -msgstr "" - -#: ../../library/fpectl.rst:61 -msgid "Reset default handling of floating point exceptions." -msgstr "" - -#: ../../library/fpectl.rst:66 -msgid "" -"After :func:`turnon_sigfpe` has been executed, a floating point operation " -"that raises one of the IEEE-754 exceptions Division by Zero, Overflow, or " -"Invalid operation will in turn raise this standard Python exception." -msgstr "" - -#: ../../library/fpectl.rst:74 -msgid "Example" -msgstr "Exemplo" - -#: ../../library/fpectl.rst:76 -msgid "" -"The following example demonstrates how to start up and test operation of " -"the :mod:`fpectl` module. ::" -msgstr "" - -#: ../../library/fpectl.rst:99 -msgid "Limitations and other considerations" -msgstr "" - -#: ../../library/fpectl.rst:101 -msgid "" -"Setting up a given processor to trap IEEE-754 floating point errors " -"currently requires custom code on a per-architecture basis. You may have to " -"modify :mod:`fpectl` to control your particular hardware." -msgstr "" - -#: ../../library/fpectl.rst:105 -msgid "" -"Conversion of an IEEE-754 exception to a Python exception requires that the " -"wrapper macros ``PyFPE_START_PROTECT`` and ``PyFPE_END_PROTECT`` be inserted " -"into your code in an appropriate fashion. Python itself has been modified " -"to support the :mod:`fpectl` module, but many other codes of interest to " -"numerical analysts have not." -msgstr "" - -#: ../../library/fpectl.rst:111 -msgid "The :mod:`fpectl` module is not thread-safe." -msgstr "" - -#: ../../library/fpectl.rst:116 -msgid "" -"Some files in the source distribution may be interesting in learning more " -"about how this module operates. The include file :file:`Include/pyfpe.h` " -"discusses the implementation of this module at some length. :file:`Modules/" -"fpetestmodule.c` gives several examples of use. Many additional examples can " -"be found in :file:`Objects/floatobject.c`." -msgstr "" diff --git a/library/fractions.po b/library/fractions.po index 5f882c7f2..f2e09314e 100644 --- a/library/fractions.po +++ b/library/fractions.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +38,8 @@ msgstr "" #: ../../library/fractions.rst:17 msgid "" -"A Fraction instance can be constructed from a pair of integers, from another" -" rational number, or from a string." +"A Fraction instance can be constructed from a pair of integers, from another " +"rational number, or from a string." msgstr "" #: ../../library/fractions.rst:26 @@ -46,15 +48,15 @@ msgid "" "of :class:`numbers.Rational` and returns a new :class:`Fraction` instance " "with value ``numerator/denominator``. If *denominator* is :const:`0`, it " "raises a :exc:`ZeroDivisionError`. The second version requires that " -"*other_fraction* is an instance of :class:`numbers.Rational` and returns a " -":class:`Fraction` instance with the same value. The next two versions " -"accept either a :class:`float` or a :class:`decimal.Decimal` instance, and " -"return a :class:`Fraction` instance with exactly the same value. Note that " -"due to the usual issues with binary floating-point (see :ref:`tut-fp-" -"issues`), the argument to ``Fraction(1.1)`` is not exactly equal to 11/10, " -"and so ``Fraction(1.1)`` does *not* return ``Fraction(11, 10)`` as one might" -" expect. (But see the documentation for the :meth:`limit_denominator` method" -" below.) The last version of the constructor expects a string or unicode " +"*other_fraction* is an instance of :class:`numbers.Rational` and returns a :" +"class:`Fraction` instance with the same value. The next two versions accept " +"either a :class:`float` or a :class:`decimal.Decimal` instance, and return " +"a :class:`Fraction` instance with exactly the same value. Note that due to " +"the usual issues with binary floating-point (see :ref:`tut-fp-issues`), the " +"argument to ``Fraction(1.1)`` is not exactly equal to 11/10, and so " +"``Fraction(1.1)`` does *not* return ``Fraction(11, 10)`` as one might " +"expect. (But see the documentation for the :meth:`limit_denominator` method " +"below.) The last version of the constructor expects a string or unicode " "instance. The usual form for this instance is::" msgstr "" @@ -62,25 +64,25 @@ msgstr "" msgid "" "where the optional ``sign`` may be either '+' or '-' and ``numerator`` and " "``denominator`` (if present) are strings of decimal digits. In addition, " -"any string that represents a finite value and is accepted by the " -":class:`float` constructor is also accepted by the :class:`Fraction` " -"constructor. In either form the input string may also have leading and/or " -"trailing whitespace. Here are some examples::" +"any string that represents a finite value and is accepted by the :class:" +"`float` constructor is also accepted by the :class:`Fraction` constructor. " +"In either form the input string may also have leading and/or trailing " +"whitespace. Here are some examples::" msgstr "" #: ../../library/fractions.rst:77 msgid "" -"The :class:`Fraction` class inherits from the abstract base class " -":class:`numbers.Rational`, and implements all of the methods and operations " -"from that class. :class:`Fraction` instances are hashable, and should be " -"treated as immutable. In addition, :class:`Fraction` has the following " -"properties and methods:" +"The :class:`Fraction` class inherits from the abstract base class :class:" +"`numbers.Rational`, and implements all of the methods and operations from " +"that class. :class:`Fraction` instances are hashable, and should be treated " +"as immutable. In addition, :class:`Fraction` has the following properties " +"and methods:" msgstr "" #: ../../library/fractions.rst:83 msgid "" -"The :class:`Fraction` constructor now accepts :class:`float` and " -":class:`decimal.Decimal` instances." +"The :class:`Fraction` constructor now accepts :class:`float` and :class:" +"`decimal.Decimal` instances." msgstr "" #: ../../library/fractions.rst:90 @@ -94,14 +96,14 @@ msgstr "" #: ../../library/fractions.rst:99 msgid "" "This class method constructs a :class:`Fraction` representing the exact " -"value of *flt*, which must be a :class:`float`. Beware that " -"``Fraction.from_float(0.3)`` is not the same value as ``Fraction(3, 10)``." +"value of *flt*, which must be a :class:`float`. Beware that ``Fraction." +"from_float(0.3)`` is not the same value as ``Fraction(3, 10)``." msgstr "" #: ../../library/fractions.rst:105 msgid "" -"From Python 3.2 onwards, you can also construct a :class:`Fraction` instance" -" directly from a :class:`float`." +"From Python 3.2 onwards, you can also construct a :class:`Fraction` instance " +"directly from a :class:`float`." msgstr "" #: ../../library/fractions.rst:111 @@ -112,8 +114,8 @@ msgstr "" #: ../../library/fractions.rst:116 msgid "" -"From Python 3.2 onwards, you can also construct a :class:`Fraction` instance" -" directly from a :class:`decimal.Decimal` instance." +"From Python 3.2 onwards, you can also construct a :class:`Fraction` instance " +"directly from a :class:`decimal.Decimal` instance." msgstr "" #: ../../library/fractions.rst:123 @@ -144,8 +146,8 @@ msgid "" "The first version returns the nearest :class:`int` to ``self``, rounding " "half to even. The second version rounds ``self`` to the nearest multiple of " "``Fraction(1, 10**ndigits)`` (logically, if ``ndigits`` is negative), again " -"rounding half toward even. This method can also be accessed through the " -":func:`round` function." +"rounding half toward even. This method can also be accessed through the :" +"func:`round` function." msgstr "" #: ../../library/fractions.rst:170 @@ -153,8 +155,8 @@ msgid "" "Return the greatest common divisor of the integers *a* and *b*. If either " "*a* or *b* is nonzero, then the absolute value of ``gcd(a, b)`` is the " "largest integer that divides both *a* and *b*. ``gcd(a,b)`` has the same " -"sign as *b* if *b* is nonzero; otherwise it takes the sign of *a*. ``gcd(0," -" 0)`` returns ``0``." +"sign as *b* if *b* is nonzero; otherwise it takes the sign of *a*. ``gcd(0, " +"0)`` returns ``0``." msgstr "" #: ../../library/fractions.rst:176 diff --git a/library/frameworks.po b/library/frameworks.po index 1202bdc21..6829c6303 100644 --- a/library/frameworks.po +++ b/library/frameworks.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +35,8 @@ msgid "" "here are all oriented toward writing command-line interfaces." msgstr "" "Os módulos descritos neste capítulo são frameworks que ditarão em grande " -"parte a estrutura do seu programa. Atualmente, os módulos descritos aqui são" -" todos orientados para escrever interfaces de linha de comando." +"parte a estrutura do seu programa. Atualmente, os módulos descritos aqui são " +"todos orientados para escrever interfaces de linha de comando." #: ../../library/frameworks.rst:11 msgid "The full list of modules described in this chapter is:" diff --git a/library/ftplib.po b/library/ftplib.po index ce4ee1eec..fee7f6ab5 100644 --- a/library/ftplib.po +++ b/library/ftplib.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Christian Janiake , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-27 03:37+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" "Last-Translator: Christian Janiake , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,11 +34,11 @@ msgstr "**Código Fonte:** :source:`Lib/ftplib.py`" #: ../../library/ftplib.rst:15 msgid "" -"This module defines the class :class:`FTP` and a few related items. The " -":class:`FTP` class implements the client side of the FTP protocol. You can " +"This module defines the class :class:`FTP` and a few related items. The :" +"class:`FTP` class implements the client side of the FTP protocol. You can " "use this to write Python programs that perform a variety of automated FTP " -"jobs, such as mirroring other FTP servers. It is also used by the module " -":mod:`urllib.request` to handle URLs that use FTP. For more information on " +"jobs, such as mirroring other FTP servers. It is also used by the module :" +"mod:`urllib.request` to handle URLs that use FTP. For more information on " "FTP (File Transfer Protocol), see Internet :rfc:`959`." msgstr "" @@ -57,8 +58,8 @@ msgid "" "*acct* default to the empty string when not given). The optional *timeout* " "parameter specifies a timeout in seconds for blocking operations like the " "connection attempt (if is not specified, the global default timeout setting " -"will be used). *source_address* is a 2-tuple ``(host, port)`` for the socket" -" to bind to as its source address before connecting." +"will be used). *source_address* is a 2-tuple ``(host, port)`` for the socket " +"to bind to as its source address before connecting." msgstr "" #: ../../library/ftplib.rst:55 @@ -76,10 +77,10 @@ msgstr "" #: ../../library/ftplib.rst:78 msgid "" -"A :class:`FTP` subclass which adds TLS support to FTP as described in " -":rfc:`4217`. Connect as usual to port 21 implicitly securing the FTP control" -" connection before authenticating. Securing the data connection requires the" -" user to explicitly ask for it by calling the :meth:`prot_p` method. " +"A :class:`FTP` subclass which adds TLS support to FTP as described in :rfc:" +"`4217`. Connect as usual to port 21 implicitly securing the FTP control " +"connection before authenticating. Securing the data connection requires the " +"user to explicitly ask for it by calling the :meth:`prot_p` method. " "*context* is a :class:`ssl.SSLContext` object which allows bundling SSL " "configuration options, certificates and private keys into a single " "(potentially long-lived) structure. Please read :ref:`ssl-security` for " @@ -95,17 +96,15 @@ msgstr "" #: ../../library/ftplib.rst:96 msgid "" -"The class now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The class now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/ftplib.rst:103 msgid "" -"*keyfile* and *certfile* are deprecated in favor of *context*. Please use " -":meth:`ssl.SSLContext.load_cert_chain` instead, or let " -":func:`ssl.create_default_context` select the system's trusted CA " -"certificates for you." +"*keyfile* and *certfile* are deprecated in favor of *context*. Please use :" +"meth:`ssl.SSLContext.load_cert_chain` instead, or let :func:`ssl." +"create_default_context` select the system's trusted CA certificates for you." msgstr "" #: ../../library/ftplib.rst:108 @@ -131,8 +130,8 @@ msgstr "" #: ../../library/ftplib.rst:138 msgid "" "Exception raised when a reply is received from the server that does not fit " -"the response specifications of the File Transfer Protocol, i.e. begin with a" -" digit in the range 1--5." +"the response specifications of the File Transfer Protocol, i.e. begin with a " +"digit in the range 1--5." msgstr "" #: ../../library/ftplib.rst:145 @@ -150,8 +149,8 @@ msgstr "" #: ../../library/ftplib.rst:154 msgid "" "Parser for the :file:`.netrc` file format. The file :file:`.netrc` is " -"typically used by FTP clients to load user authentication information before" -" prompting the user." +"typically used by FTP clients to load user authentication information before " +"prompting the user." msgstr "" #: ../../library/ftplib.rst:162 @@ -161,8 +160,8 @@ msgstr "" #: ../../library/ftplib.rst:164 msgid "" "Several methods are available in two flavors: one for handling text files " -"and another for binary files. These are named for the command which is used" -" followed by ``lines`` for the text version or ``binary`` for the binary " +"and another for binary files. These are named for the command which is used " +"followed by ``lines`` for the text version or ``binary`` for the binary " "version." msgstr "" @@ -175,22 +174,22 @@ msgid "" "Set the instance's debugging level. This controls the amount of debugging " "output printed. The default, ``0``, produces no debugging output. A value " "of ``1`` produces a moderate amount of debugging output, generally a single " -"line per request. A value of ``2`` or higher produces the maximum amount of" -" debugging output, logging each line sent and received on the control " +"line per request. A value of ``2`` or higher produces the maximum amount of " +"debugging output, logging each line sent and received on the control " "connection." msgstr "" #: ../../library/ftplib.rst:182 msgid "" "Connect to the given host and port. The default port number is ``21``, as " -"specified by the FTP protocol specification. It is rarely needed to specify" -" a different port number. This function should be called only once for each" -" instance; it should not be called at all if a host was given when the " -"instance was created. All other methods can only be used after a connection" -" has been made. The optional *timeout* parameter specifies a timeout in " +"specified by the FTP protocol specification. It is rarely needed to specify " +"a different port number. This function should be called only once for each " +"instance; it should not be called at all if a host was given when the " +"instance was created. All other methods can only be used after a connection " +"has been made. The optional *timeout* parameter specifies a timeout in " "seconds for the connection attempt. If no *timeout* is passed, the global " -"default timeout setting will be used. *source_address* is a 2-tuple ``(host," -" port)`` for the socket to bind to as its source address before connecting." +"default timeout setting will be used. *source_address* is a 2-tuple ``(host, " +"port)`` for the socket to bind to as its source address before connecting." msgstr "" #: ../../library/ftplib.rst:200 @@ -202,9 +201,9 @@ msgstr "" #: ../../library/ftplib.rst:207 msgid "" -"Log in as the given *user*. The *passwd* and *acct* parameters are optional" -" and default to the empty string. If no *user* is specified, it defaults to" -" ``'anonymous'``. If *user* is ``'anonymous'``, the default *passwd* is " +"Log in as the given *user*. The *passwd* and *acct* parameters are optional " +"and default to the empty string. If no *user* is specified, it defaults to " +"``'anonymous'``. If *user* is ``'anonymous'``, the default *passwd* is " "``'anonymous@'``. This function should be called only once for each " "instance, after a connection has been established; it should not be called " "at all if a host and user were given when the instance was created. Most " @@ -214,8 +213,8 @@ msgstr "" #: ../../library/ftplib.rst:219 msgid "" -"Abort a file transfer that is in progress. Using this does not always work," -" but it's worth a try." +"Abort a file transfer that is in progress. Using this does not always work, " +"but it's worth a try." msgstr "" #: ../../library/ftplib.rst:225 @@ -226,20 +225,20 @@ msgstr "" #: ../../library/ftplib.rst:230 msgid "" "Send a simple command string to the server and handle the response. Return " -"nothing if a response code corresponding to success (codes in the range 200" -"--299) is received. Raise :exc:`error_reply` otherwise." +"nothing if a response code corresponding to success (codes in the range " +"200--299) is received. Raise :exc:`error_reply` otherwise." msgstr "" #: ../../library/ftplib.rst:237 msgid "" "Retrieve a file in binary transfer mode. *cmd* should be an appropriate " -"``RETR`` command: ``'RETR filename'``. The *callback* function is called for" -" each block of data received, with a single bytes argument giving the data " -"block. The optional *blocksize* argument specifies the maximum chunk size to" -" read on the low-level socket object created to do the actual transfer " -"(which will also be the largest size of the data blocks passed to " -"*callback*). A reasonable default is chosen. *rest* means the same thing as" -" in the :meth:`transfercmd` method." +"``RETR`` command: ``'RETR filename'``. The *callback* function is called for " +"each block of data received, with a single bytes argument giving the data " +"block. The optional *blocksize* argument specifies the maximum chunk size to " +"read on the low-level socket object created to do the actual transfer (which " +"will also be the largest size of the data blocks passed to *callback*). A " +"reasonable default is chosen. *rest* means the same thing as in the :meth:" +"`transfercmd` method." msgstr "" #: ../../library/ftplib.rst:249 @@ -263,12 +262,11 @@ msgstr "" msgid "" "Store a file in binary transfer mode. *cmd* should be an appropriate " "``STOR`` command: ``\"STOR filename\"``. *fp* is a :term:`file object` " -"(opened in binary mode) which is read until EOF using its " -":meth:`~io.IOBase.read` method in blocks of size *blocksize* to provide the " -"data to be stored. The *blocksize* argument defaults to 8192. *callback* is" -" an optional single parameter callable that is called on each block of data " -"after it is sent. *rest* means the same thing as in the :meth:`transfercmd` " -"method." +"(opened in binary mode) which is read until EOF using its :meth:`~io.IOBase." +"read` method in blocks of size *blocksize* to provide the data to be stored. " +"The *blocksize* argument defaults to 8192. *callback* is an optional single " +"parameter callable that is called on each block of data after it is sent. " +"*rest* means the same thing as in the :meth:`transfercmd` method." msgstr "" #: ../../library/ftplib.rst:275 @@ -279,10 +277,10 @@ msgstr "" msgid "" "Store a file in ASCII transfer mode. *cmd* should be an appropriate " "``STOR`` command (see :meth:`storbinary`). Lines are read until EOF from " -"the :term:`file object` *fp* (opened in binary mode) using its " -":meth:`~io.IOBase.readline` method to provide the data to be stored. " -"*callback* is an optional single parameter callable that is called on each " -"line after it is sent." +"the :term:`file object` *fp* (opened in binary mode) using its :meth:`~io." +"IOBase.readline` method to provide the data to be stored. *callback* is an " +"optional single parameter callable that is called on each line after it is " +"sent." msgstr "" #: ../../library/ftplib.rst:290 @@ -290,8 +288,8 @@ msgid "" "Initiate a transfer over the data connection. If the transfer is active, " "send an ``EPRT`` or ``PORT`` command and the transfer command specified by " "*cmd*, and accept the connection. If the server is passive, send an " -"``EPSV`` or ``PASV`` command, connect to it, and start the transfer command." -" Either way, return the socket for the connection." +"``EPSV`` or ``PASV`` command, connect to it, and start the transfer " +"command. Either way, return the socket for the connection." msgstr "" #: ../../library/ftplib.rst:296 @@ -299,34 +297,33 @@ msgid "" "If optional *rest* is given, a ``REST`` command is sent to the server, " "passing *rest* as an argument. *rest* is usually a byte offset into the " "requested file, telling the server to restart sending the file's bytes at " -"the requested offset, skipping over the initial bytes. Note however that " -":rfc:`959` requires only that *rest* be a string containing characters in " -"the printable range from ASCII code 33 to ASCII code 126. The " -":meth:`transfercmd` method, therefore, converts *rest* to a string, but no " -"check is performed on the string's contents. If the server does not " -"recognize the ``REST`` command, an :exc:`error_reply` exception will be " -"raised. If this happens, simply call :meth:`transfercmd` without a *rest* " -"argument." +"the requested offset, skipping over the initial bytes. Note however that :" +"rfc:`959` requires only that *rest* be a string containing characters in the " +"printable range from ASCII code 33 to ASCII code 126. The :meth:" +"`transfercmd` method, therefore, converts *rest* to a string, but no check " +"is performed on the string's contents. If the server does not recognize the " +"``REST`` command, an :exc:`error_reply` exception will be raised. If this " +"happens, simply call :meth:`transfercmd` without a *rest* argument." msgstr "" #: ../../library/ftplib.rst:310 msgid "" -"Like :meth:`transfercmd`, but returns a tuple of the data connection and the" -" expected size of the data. If the expected size could not be computed, " +"Like :meth:`transfercmd`, but returns a tuple of the data connection and the " +"expected size of the data. If the expected size could not be computed, " "``None`` will be returned as the expected size. *cmd* and *rest* means the " "same thing as in :meth:`transfercmd`." msgstr "" #: ../../library/ftplib.rst:318 msgid "" -"List a directory in a standardized format by using ``MLSD`` command " -"(:rfc:`3659`). If *path* is omitted the current directory is assumed. " -"*facts* is a list of strings representing the type of information desired " -"(e.g. ``[\"type\", \"size\", \"perm\"]``). Return a generator object " -"yielding a tuple of two elements for every file found in path. First " -"element is the file name, the second one is a dictionary containing facts " -"about the file name. Content of this dictionary might be limited by the " -"*facts* argument but server is not guaranteed to return all requested facts." +"List a directory in a standardized format by using ``MLSD`` command (:rfc:" +"`3659`). If *path* is omitted the current directory is assumed. *facts* is " +"a list of strings representing the type of information desired (e.g. " +"``[\"type\", \"size\", \"perm\"]``). Return a generator object yielding a " +"tuple of two elements for every file found in path. First element is the " +"file name, the second one is a dictionary containing facts about the file " +"name. Content of this dictionary might be limited by the *facts* argument " +"but server is not guaranteed to return all requested facts." msgstr "" #: ../../library/ftplib.rst:332 @@ -343,12 +340,12 @@ msgstr "" #: ../../library/ftplib.rst:342 msgid "" -"Produce a directory listing as returned by the ``LIST`` command, printing it" -" to standard output. The optional *argument* is a directory to list " -"(default is the current server directory). Multiple arguments can be used " -"to pass non-standard options to the ``LIST`` command. If the last argument " -"is a function, it is used as a *callback* function as for :meth:`retrlines`;" -" the default prints to ``sys.stdout``. This method returns ``None``." +"Produce a directory listing as returned by the ``LIST`` command, printing it " +"to standard output. The optional *argument* is a directory to list (default " +"is the current server directory). Multiple arguments can be used to pass " +"non-standard options to the ``LIST`` command. If the last argument is a " +"function, it is used as a *callback* function as for :meth:`retrlines`; the " +"default prints to ``sys.stdout``. This method returns ``None``." msgstr "" #: ../../library/ftplib.rst:354 @@ -397,10 +394,10 @@ msgstr "" #: ../../library/ftplib.rst:403 msgid "" -"Close the connection unilaterally. This should not be applied to an already" -" closed connection such as after a successful call to :meth:`~FTP.quit`. " -"After this call the :class:`FTP` instance should not be used any more (after" -" a call to :meth:`close` or :meth:`~FTP.quit` you cannot reopen the " +"Close the connection unilaterally. This should not be applied to an already " +"closed connection such as after a successful call to :meth:`~FTP.quit`. " +"After this call the :class:`FTP` instance should not be used any more (after " +"a call to :meth:`close` or :meth:`~FTP.quit` you cannot reopen the " "connection by issuing another :meth:`login` method)." msgstr "" @@ -410,8 +407,8 @@ msgstr "" #: ../../library/ftplib.rst:413 msgid "" -":class:`FTP_TLS` class inherits from :class:`FTP`, defining these additional" -" objects:" +":class:`FTP_TLS` class inherits from :class:`FTP`, defining these additional " +"objects:" msgstr "" #: ../../library/ftplib.rst:417 @@ -420,15 +417,14 @@ msgstr "" #: ../../library/ftplib.rst:421 msgid "" -"Set up a secure control connection by using TLS or SSL, depending on what is" -" specified in the :attr:`ssl_version` attribute." +"Set up a secure control connection by using TLS or SSL, depending on what is " +"specified in the :attr:`ssl_version` attribute." msgstr "" #: ../../library/ftplib.rst:424 msgid "" -"The method now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The method now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/ftplib.rst:431 diff --git a/library/functional.po b/library/functional.po index 45e68c1e2..f6976200e 100644 --- a/library/functional.po +++ b/library/functional.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/functions.po b/library/functions.po index 5c640c4ff..a485b7f78 100644 --- a/library/functions.po +++ b/library/functions.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Italo Penaforte , 2019 @@ -13,19 +13,22 @@ # VERUSKA RODRIGUES DA SILVA , 2019 # Risaffi , 2019 # felipe caridade , 2019 -# Rafael Fontenelle , 2019 +# Katyanna Moura , 2019 # Adorilson Bezerra , 2019 -# Vinícius Gubiani Ferreira , 2019 -# +# Sheila Gomes , 2019 +# Vinicius Gubiani Ferreira , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-26 03:36+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Vinícius Gubiani Ferreira , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,8 +44,8 @@ msgid "" "The Python interpreter has a number of functions and types built into it " "that are always available. They are listed here in alphabetical order." msgstr "" -"O interpretador do Python possui várias funções e tipos embutidos que sempre" -" estão disponíveis. A seguir listamos todas as funções em ordem alfabética." +"O interpretador do Python possui várias funções e tipos embutidos que sempre " +"estão disponíveis. A seguir listamos todas as funções em ordem alfabética." #: ../../library/functions.rst:13 msgid ":func:`abs`" @@ -326,8 +329,8 @@ msgid "" "floating point number. If the argument is a complex number, its magnitude " "is returned." msgstr "" -"Retorna o valor absoluto de um número. O argumento pode ser um inteiro ou um" -" número de ponto flutuante. Se o argumento é um número complexo, sua " +"Retorna o valor absoluto de um número. O argumento pode ser um inteiro ou um " +"número de ponto flutuante. Se o argumento é um número complexo, sua " "magnitude é retornada." #: ../../library/functions.rst:52 @@ -348,15 +351,15 @@ msgstr "" #: ../../library/functions.rst:76 msgid "" -"As :func:`repr`, return a string containing a printable representation of an" -" object, but escape the non-ASCII characters in the string returned by " -":func:`repr` using ``\\x``, ``\\u`` or ``\\U`` escapes. This generates a " -"string similar to that returned by :func:`repr` in Python 2." +"As :func:`repr`, return a string containing a printable representation of an " +"object, but escape the non-ASCII characters in the string returned by :func:" +"`repr` using ``\\x``, ``\\u`` or ``\\U`` escapes. This generates a string " +"similar to that returned by :func:`repr` in Python 2." msgstr "" "Como :func:`repr`, retorna uma string contendo uma representação imprimível " -"de um objeto, mas faz escape de caracteres não-ASCII na string retornada por" -" :func:`repr` usando sequências de escapes ``\\x``, ``\\u`` or ``\\U``. Isto" -" gera uma string similar ao que é retornado por :func:`repr` no Python 2." +"de um objeto, mas faz escape de caracteres não-ASCII na string retornada " +"por :func:`repr` usando sequências de escapes ``\\x``, ``\\u`` or ``\\U``. " +"Isto gera uma string similar ao que é retornado por :func:`repr` no Python 2." #: ../../library/functions.rst:84 msgid "" @@ -365,15 +368,14 @@ msgid "" "object, it has to define an :meth:`__index__` method that returns an " "integer. Some examples:" msgstr "" -"Converte um número inteiro para uma string de binários prefixada com \"0b\"." -" O resultado é uma expressão Python válida. Se *x* não é um objeto Python " -":class:`int`, ele tem que definir um método :meth:`__index__` que devolve " +"Converte um número inteiro para uma string de binários prefixada com \"0b\". " +"O resultado é uma expressão Python válida. Se *x* não é um objeto Python :" +"class:`int`, ele tem que definir um método :meth:`__index__` que devolve " "um inteiro. Alguns exemplos:" #: ../../library/functions.rst:94 msgid "" -"If prefix \"0b\" is desired or not, you can use either of the following " -"ways." +"If prefix \"0b\" is desired or not, you can use either of the following ways." msgstr "" "Se o prefixo \"0b\" é desejado ou não, você pode usar uma das seguintes " "maneiras." @@ -385,19 +387,19 @@ msgstr "Veja também :func:`format` para mais informações." #: ../../library/functions.rst:106 msgid "" -"Return a Boolean value, i.e. one of ``True`` or ``False``. *x* is converted" -" using the standard :ref:`truth testing procedure `. If *x* is false" -" or omitted, this returns ``False``; otherwise it returns ``True``. The " -":class:`bool` class is a subclass of :class:`int` (see :ref:`typesnumeric`)." -" It cannot be subclassed further. Its only instances are ``False`` and " +"Return a Boolean value, i.e. one of ``True`` or ``False``. *x* is converted " +"using the standard :ref:`truth testing procedure `. If *x* is false " +"or omitted, this returns ``False``; otherwise it returns ``True``. The :" +"class:`bool` class is a subclass of :class:`int` (see :ref:`typesnumeric`). " +"It cannot be subclassed further. Its only instances are ``False`` and " "``True`` (see :ref:`bltin-boolean-values`)." msgstr "" "Retorna um valor Booleano, isto é, ``True`` ou ``False``. *x* é convertida " -"usando o :ref:`procedimento de teste verdade padrão`. Se *x* é falso" -" ou foi omitido, isso retorna ``False``; senão ele retorna ``True``. A " -"classe :class:`bool` é uma subclasse de :class:`int` (veja " -":ref:`typesnumeric`). Ela não pode ser usada para criar outra subclasse. " -"Suas únicas instâncias são ``False`` e ``True`` (veja :ref:`bltin-boolean-" +"usando o :ref:`procedimento de teste verdade padrão`. Se *x* é falso " +"ou foi omitido, isso retorna ``False``; senão ele retorna ``True``. A " +"classe :class:`bool` é uma subclasse de :class:`int` (veja :ref:" +"`typesnumeric`). Ela não pode ser usada para criar outra subclasse. Suas " +"únicas instâncias são ``False`` e ``True`` (veja :ref:`bltin-boolean-" "values`)." #: ../../library/functions.rst:115 ../../library/functions.rst:581 @@ -409,22 +411,22 @@ msgstr "*x* é agora um parâmetro somente posicional." msgid "" "This function drops you into the debugger at the call site. Specifically, " "it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight " -"through. By default, ``sys.breakpointhook()`` calls :func:`pdb.set_trace()`" -" expecting no arguments. In this case, it is purely a convenience function " +"through. By default, ``sys.breakpointhook()`` calls :func:`pdb.set_trace()` " +"expecting no arguments. In this case, it is purely a convenience function " "so you don't have to explicitly import :mod:`pdb` or type as much code to " "enter the debugger. However, :func:`sys.breakpointhook` can be set to some " -"other function and :func:`breakpoint` will automatically call that, allowing" -" you to drop into the debugger of choice." +"other function and :func:`breakpoint` will automatically call that, allowing " +"you to drop into the debugger of choice." msgstr "" "Esta função coloca você no depurador no local da chamada. Especificamente, " "ela chamada :func:`sys.breakpointhook`, passando ``args`` and ``kws`` " -"diretamente. Por padrão, ``sys.breakpointhook()`` chama " -":func:`pdb.set_trace()` não esperando nenhum argumento. Neste caso, isso é " -"puramente uma função de conveniência para você não precisar importar " -":mod:`pdb` explicitamente ou digitar mais código para entrar no depurador. " -"Contudo, :func:`sys.breakpointhook` pode ser configurado para alguma outra " -"função e :func:`breakpoint` irá automaticamente chamá-la, permitindo você ir" -" para o depurador de sua escolha." +"diretamente. Por padrão, ``sys.breakpointhook()`` chama :func:`pdb." +"set_trace()` não esperando nenhum argumento. Neste caso, isso é puramente " +"uma função de conveniência para você não precisar importar :mod:`pdb` " +"explicitamente ou digitar mais código para entrar no depurador. Contudo, :" +"func:`sys.breakpointhook` pode ser configurado para alguma outra função e :" +"func:`breakpoint` irá automaticamente chamá-la, permitindo você ir para o " +"depurador de sua escolha." #: ../../library/functions.rst:136 msgid "" @@ -441,8 +443,8 @@ msgstr "" #: ../../library/functions.rst:141 msgid "" -"The optional *source* parameter can be used to initialize the array in a few" -" different ways:" +"The optional *source* parameter can be used to initialize the array in a few " +"different ways:" msgstr "" "O parâmetro opcional *source* pode ser usado para inicializar o vetor de " "algumas maneiras diferentes:" @@ -459,8 +461,8 @@ msgstr "" #: ../../library/functions.rst:148 msgid "" -"If it is an *integer*, the array will have that size and will be initialized" -" with null bytes." +"If it is an *integer*, the array will have that size and will be initialized " +"with null bytes." msgstr "" "Se é um *inteiro*, o vetor terá esse tamanho e será inicializado com bytes " "nulos." @@ -470,16 +472,16 @@ msgid "" "If it is an object conforming to the *buffer* interface, a read-only buffer " "of the object will be used to initialize the bytes array." msgstr "" -"Se é um objeto em conformidade com a interface *buffer*, um buffer de objeto" -" somente leitura será usado para inicializar o vetor de bytes." +"Se é um objeto em conformidade com a interface *buffer*, um buffer de objeto " +"somente leitura será usado para inicializar o vetor de bytes." #: ../../library/functions.rst:154 msgid "" "If it is an *iterable*, it must be an iterable of integers in the range ``0 " "<= x < 256``, which are used as the initial contents of the array." msgstr "" -"Se é um *iterável*, deve ser um iterável de inteiros no intervalo ``0 <= x <" -" 256``, que serão usados como o conteúdo inicial do vetor." +"Se é um *iterável*, deve ser um iterável de inteiros no intervalo ``0 <= x < " +"256``, que serão usados como o conteúdo inicial do vetor." #: ../../library/functions.rst:157 msgid "Without an argument, an array of size 0 is created." @@ -491,22 +493,22 @@ msgstr "Veja também :ref:`binaryseq` and :ref:`typebytearray`." #: ../../library/functions.rst:166 msgid "" -"Return a new \"bytes\" object, which is an immutable sequence of integers in" -" the range ``0 <= x < 256``. :class:`bytes` is an immutable version of " -":class:`bytearray` -- it has the same non-mutating methods and the same " +"Return a new \"bytes\" object, which is an immutable sequence of integers in " +"the range ``0 <= x < 256``. :class:`bytes` is an immutable version of :" +"class:`bytearray` -- it has the same non-mutating methods and the same " "indexing and slicing behavior." msgstr "" "Retorna um novo objeto \"bytes\", que é uma sequência imutável de inteiros " -"no intervalo``0 <= x < 256``. :class:`bytes` é uma versão imutável de " -":class:`bytearray` -- tem os mesmos métodos de objetos imutáveis e o mesmo " +"no intervalo``0 <= x < 256``. :class:`bytes` é uma versão imutável de :" +"class:`bytearray` -- tem os mesmos métodos de objetos imutáveis e o mesmo " "comportamento de índices e fatiamento." #: ../../library/functions.rst:171 msgid "" "Accordingly, constructor arguments are interpreted as for :func:`bytearray`." msgstr "" -"Consequentemente, argumentos do construtor são interpretados como os de " -":func:`bytearray`." +"Consequentemente, argumentos do construtor são interpretados como os de :" +"func:`bytearray`." #: ../../library/functions.rst:173 msgid "Bytes objects can also be created with literals, see :ref:`strings`." @@ -520,17 +522,17 @@ msgstr "" #: ../../library/functions.rst:180 msgid "" -"Return :const:`True` if the *object* argument appears callable, " -":const:`False` if not. If this returns true, it is still possible that a " -"call fails, but if it is false, calling *object* will never succeed. Note " +"Return :const:`True` if the *object* argument appears callable, :const:" +"`False` if not. If this returns ``True``, it is still possible that a call " +"fails, but if it is ``False``, calling *object* will never succeed. Note " "that classes are callable (calling a class returns a new instance); " "instances are callable if their class has a :meth:`__call__` method." msgstr "" -"Retorna :const:`True` se o argumento *object* parece chamável, " -":const:`False` se não. Se retornar verdadeiro, é possível que uma chamada " -"falhe, mas se é falso, chamar *object* nunca será em sucedido. Note que " -"classes são chamáveis (chamar uma classe retorna uma nova instância); " -"instâncias são chamáveis se sua classe tem o método :meth:`__call__`." +"Devolve :const:`True` se o argumento *object* parece chamável, :const:" +"`False` caso contrário. Se devolve ``True``, ainda é possível que a chamada " +"falhe, mas se é ``False``, chamar *object* nunca será bem sucedido. Note que " +"classes são chamáveis (chamar uma classe devolve uma nova instância); " +"instâncias são chamáveis se suas classes possuem um método :meth:`__call__`." #: ../../library/functions.rst:186 msgid "" @@ -542,8 +544,7 @@ msgstr "Esta função foi removida na versão 3.0, mas retornou no Python 3.2." msgid "" "Return the string representing a character whose Unicode code point is the " "integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while " -"``chr(8364)`` returns the string ``'€'``. This is the inverse of " -":func:`ord`." +"``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`." msgstr "" "Retorna o caractere que é apontado pelo inteiro *i* no código Unicode. Por " "exemplo, ``chr(97)`` retorna a string ``'a'``, enquanto ``chr(8364)`` " @@ -554,8 +555,8 @@ msgid "" "The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in " "base 16). :exc:`ValueError` will be raised if *i* is outside that range." msgstr "" -"O intervalo válido para o argumento vai de 0 até 1,114,111 (0x10FFFF na base" -" 16). Será lançada uma exceção :exc:`ValueError` se *i* estiver fora desse " +"O intervalo válido para o argumento vai de 0 até 1,114,111 (0x10FFFF na base " +"16). Será lançada uma exceção :exc:`ValueError` se *i* estiver fora desse " "intervalo." #: ../../library/functions.rst:203 @@ -569,16 +570,16 @@ msgid "" "idiom::" msgstr "" "Um método de classe recebe a classe como primeiro argumento implícito, " -"exatamente como uma método de instância recebe a instância. Para declarar um" -" método de classe, faça dessa forma::" +"exatamente como uma método de instância recebe a instância. Para declarar um " +"método de classe, faça dessa forma::" #: ../../library/functions.rst:213 msgid "" -"The ``@classmethod`` form is a function :term:`decorator` -- see " -":ref:`function` for details." +"The ``@classmethod`` form is a function :term:`decorator` -- see :ref:" +"`function` for details." msgstr "" -"O termo ``@classmethod`` é uma função :term:`decoradora ` -- veja" -" :ref:`function` para detalhes." +"O termo ``@classmethod`` é uma função :term:`decoradora ` -- " +"veja :ref:`function` para detalhes." #: ../../library/functions.rst:216 msgid "" @@ -589,8 +590,8 @@ msgid "" msgstr "" "Um método de classe pode ser chamado tanto da classe (como em ``C.f()``) " "quanto da instância (como em ``C().f()``). A instância é ignorada, exceto " -"por sua classe. Se um método de classe é chamado por uma classe derivada, o" -" objeto da classe derivada é passado como primeiro argumento implícito." +"por sua classe. Se um método de classe é chamado por uma classe derivada, o " +"objeto da classe derivada é passado como primeiro argumento implícito." #: ../../library/functions.rst:221 msgid "" @@ -613,8 +614,8 @@ msgid "" msgstr "" "Compila o argumento *source* em código ou objeto AST. Objetos código podem " "ser executados por :func:`exec` ou :func:`eval`. *source* pode ser uma " -"string normal, uma string byte, ou um objeto AST. Consulte a documentação do" -" módulo :mod:`ast` para saber como trabalhar com objetos AST." +"string normal, uma string byte, ou um objeto AST. Consulte a documentação do " +"módulo :mod:`ast` para saber como trabalhar com objetos AST." #: ../../library/functions.rst:234 msgid "" @@ -631,35 +632,35 @@ msgid "" "The *mode* argument specifies what kind of code must be compiled; it can be " "``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if " "it consists of a single expression, or ``'single'`` if it consists of a " -"single interactive statement (in the latter case, expression statements that" -" evaluate to something other than ``None`` will be printed)." +"single interactive statement (in the latter case, expression statements that " +"evaluate to something other than ``None`` will be printed)." msgstr "" -"O argumento *mode* especifica qual o tipo de código deve ser compilado; pode" -" ser ``'exec'`` se *source* consiste de uma sequência de instruções, " +"O argumento *mode* especifica qual o tipo de código deve ser compilado; pode " +"ser ``'exec'`` se *source* consiste de uma sequência de instruções, " "``'eval'`` se consiste de uma única expressão, ou ``'single'`` se consiste " "de uma única instrução interativa (neste último caso, instruções que são " "avaliadas para alguma coisa diferente de ``None`` serão exibidas)." #: ../../library/functions.rst:244 msgid "" -"The optional arguments *flags* and *dont_inherit* control which :ref:`future" -" statements ` affect the compilation of *source*. If neither is " -"present (or both are zero) the code is compiled with those future statements" -" that are in effect in the code that is calling :func:`compile`. If the " +"The optional arguments *flags* and *dont_inherit* control which :ref:`future " +"statements ` affect the compilation of *source*. If neither is " +"present (or both are zero) the code is compiled with those future statements " +"that are in effect in the code that is calling :func:`compile`. If the " "*flags* argument is given and *dont_inherit* is not (or is zero) then the " "future statements specified by the *flags* argument are used in addition to " "those that would be used anyway. If *dont_inherit* is a non-zero integer " "then the *flags* argument is it -- the future statements in effect around " "the call to compile are ignored." msgstr "" -"Os argumentos opcionais *flags* e *dont_inherit* controlam qual " -":ref:`instrução futura ` afeta a compilação de *source*. Se nenhum " -"está presente (ou ambos são zero) o código é compilado com as instruções " -"futuras que estão agindo no código que está chamando :func:`compile`. If " -"the *flags* argument is given and *dont_inherit* is not (or is zero) then " -"the future statements specified by the *flags* argument are used in addition" -" to those that would be used anyway. If *dont_inherit* is a non-zero integer" -" then the *flags* argument is it -- the future statements in effect around " +"Os argumentos opcionais *flags* e *dont_inherit* controlam qual :ref:" +"`instrução futura ` afeta a compilação de *source*. Se nenhum está " +"presente (ou ambos são zero) o código é compilado com as instruções futuras " +"que estão agindo no código que está chamando :func:`compile`. If the " +"*flags* argument is given and *dont_inherit* is not (or is zero) then the " +"future statements specified by the *flags* argument are used in addition to " +"those that would be used anyway. If *dont_inherit* is a non-zero integer " +"then the *flags* argument is it -- the future statements in effect around " "the call to compile are ignored." #: ../../library/functions.rst:254 @@ -667,26 +668,26 @@ msgid "" "Future statements are specified by bits which can be bitwise ORed together " "to specify multiple statements. The bitfield required to specify a given " "feature can be found as the :attr:`~__future__._Feature.compiler_flag` " -"attribute on the :class:`~__future__._Feature` instance in the " -":mod:`__future__` module." +"attribute on the :class:`~__future__._Feature` instance in the :mod:" +"`__future__` module." msgstr "" "Instruções futuras são especificadas por bits, assim pode ocorrer uma " "operação *OU* bit a bit para especificar múltiplas instruções. O " "sinalizador necessário para especificar um dado recurso pode ser encontrada " -"no atributo :attr:`~__future__._Feature.compiler_flag` na instância " -":class:`~__future__._Feature` do módulo :mod:`__future__` module." +"no atributo :attr:`~__future__._Feature.compiler_flag` na instância :class:" +"`~__future__._Feature` do módulo :mod:`__future__` module." #: ../../library/functions.rst:259 msgid "" "The argument *optimize* specifies the optimization level of the compiler; " "the default value of ``-1`` selects the optimization level of the " -"interpreter as given by :option:`-O` options. Explicit levels are ``0`` (no" -" optimization; ``__debug__`` is true), ``1`` (asserts are removed, " +"interpreter as given by :option:`-O` options. Explicit levels are ``0`` (no " +"optimization; ``__debug__`` is true), ``1`` (asserts are removed, " "``__debug__`` is false) or ``2`` (docstrings are removed too)." msgstr "" "O argumento *optimize* especifica o nível de otimização do compilador; o " -"valor padrão de ``-1`` seleciona o nível de otimização do interpretador dado" -" pela opção :option:`-O`. Níveis explícitos são ``0`` (nenhuma otimização; " +"valor padrão de ``-1`` seleciona o nível de otimização do interpretador dado " +"pela opção :option:`-O`. Níveis explícitos são ``0`` (nenhuma otimização; " "``__debug__`` é verdadeiro), ``1`` (instruções ``asserts`` são removidas, " "``__debug__`` é falso) ou ``2`` (strings de documentação também são " "removidas)." @@ -701,38 +702,38 @@ msgstr "" #: ../../library/functions.rst:268 msgid "" -"If you want to parse Python code into its AST representation, see " -":func:`ast.parse`." +"If you want to parse Python code into its AST representation, see :func:`ast." +"parse`." msgstr "" -"Se você quer analisar código Python em sua representação AST, veja " -":func:`ast.parse`." +"Se você quer analisar código Python em sua representação AST, veja :func:" +"`ast.parse`." #: ../../library/functions.rst:273 msgid "" "When compiling a string with multi-line code in ``'single'`` or ``'eval'`` " "mode, input must be terminated by at least one newline character. This is " -"to facilitate detection of incomplete and complete statements in the " -":mod:`code` module." +"to facilitate detection of incomplete and complete statements in the :mod:" +"`code` module." msgstr "" -"Quando compilindo uma string com código multi-linhas em modo ``'single'`` ou" -" ``'eval'``, entrada deve ser terminada por ao menos um caractere de nova " +"Quando compilindo uma string com código multi-linhas em modo ``'single'`` ou " +"``'eval'``, entrada deve ser terminada por ao menos um caractere de nova " "linhas. Isso é para facilitar a detecção de instruções completas e " "incompletas no módulo :mod:`code`." #: ../../library/functions.rst:280 msgid "" -"It is possible to crash the Python interpreter with a sufficiently " -"large/complex string when compiling to an AST object due to stack depth " +"It is possible to crash the Python interpreter with a sufficiently large/" +"complex string when compiling to an AST object due to stack depth " "limitations in Python's AST compiler." msgstr "" -"É possível quebrar o interpretador Python com uma string suficiente " -"grande/complexa quando compilando para uma objeto AST, devido limitações do " -"tamanho da pilha no compilador AST do Python." +"É possível quebrar o interpretador Python com uma string suficiente grande/" +"complexa quando compilando para uma objeto AST, devido limitações do tamanho " +"da pilha no compilador AST do Python." #: ../../library/functions.rst:284 msgid "" -"Allowed use of Windows and Mac newlines. Also input in ``'exec'`` mode does" -" not have to end in a newline anymore. Added the *optimize* parameter." +"Allowed use of Windows and Mac newlines. Also input in ``'exec'`` mode does " +"not have to end in a newline anymore. Added the *optimize* parameter." msgstr "" "Permitido uso de marcadores de novas linhas no estilo Windows e Mac. Além " "disso, em modo ``'exec'`` a entrada não precisa mais terminar com uma nova " @@ -761,21 +762,21 @@ msgstr "" "string ou número para um número complexo. Se o primeiro parâmetro é uma " "string, ele será interpretado como um número complexo e a função deve ser " "chamada sem um segundo parâmetro. O segundo parâmetro nunca deve ser uma " -"string. Cada argumento pode ser qualquer tipo numérico (incluindo complexo)." -" Se *imag* é omitido, seu valor padrão é zero e a construção funciona como " -"uma conversão numérica, similar a :class:`int` e :class:`float`. Se os " -"dois argumentos são omitidos, retorna ``0j``." +"string. Cada argumento pode ser qualquer tipo numérico (incluindo " +"complexo). Se *imag* é omitido, seu valor padrão é zero e a construção " +"funciona como uma conversão numérica, similar a :class:`int` e :class:" +"`float`. Se os dois argumentos são omitidos, retorna ``0j``." #: ../../library/functions.rst:306 msgid "" -"When converting from a string, the string must not contain whitespace around" -" the central ``+`` or ``-`` operator. For example, ``complex('1+2j')`` is " +"When converting from a string, the string must not contain whitespace around " +"the central ``+`` or ``-`` operator. For example, ``complex('1+2j')`` is " "fine, but ``complex('1 + 2j')`` raises :exc:`ValueError`." msgstr "" "Quando convertendo a partir de uma string, a string não pode conter espaços " "em branco em torno ``+`` central ou do operador ``-``. Por exemplo, " -"``complex('1+2j')`` funciona, mas ``complex('1 + 2j')`` levanta " -":exc:`ValueError`." +"``complex('1+2j')`` funciona, mas ``complex('1 + 2j')`` levanta :exc:" +"`ValueError`." #: ../../library/functions.rst:311 msgid "The complex type is described in :ref:`typesnumeric`." @@ -790,32 +791,30 @@ msgstr "" #: ../../library/functions.rst:319 msgid "" "This is a relative of :func:`setattr`. The arguments are an object and a " -"string. The string must be the name of one of the object's attributes. The" -" function deletes the named attribute, provided the object allows it. For " +"string. The string must be the name of one of the object's attributes. The " +"function deletes the named attribute, provided the object allows it. For " "example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``." msgstr "" "Essa função está relacionada com :func:`setattr`. Os argumentos são um " -"objeto e uma string. A string deve ser o nome de um dos atributos do objeto." -" A função remove o atributo indicado, desde que o objeto permita. Por " +"objeto e uma string. A string deve ser o nome de um dos atributos do objeto. " +"A função remove o atributo indicado, desde que o objeto permita. Por " "exemplo, ``delattr(x, 'foobar')`` é equivalente a ``del x.foobar``." #: ../../library/functions.rst:331 msgid "" "Create a new dictionary. The :class:`dict` object is the dictionary class. " -"See :class:`dict` and :ref:`typesmapping` for documentation about this " -"class." +"See :class:`dict` and :ref:`typesmapping` for documentation about this class." msgstr "" "Cria um novo dicionário. O objeto :class:`dict` é a classe do dicionário. " -"Veja :class:`dict` e :ref:`typesmapping` para documentação sobre esta " -"classe." +"Veja :class:`dict` e :ref:`typesmapping` para documentação sobre esta classe." #: ../../library/functions.rst:334 msgid "" -"For other containers see the built-in :class:`list`, :class:`set`, and " -":class:`tuple` classes, as well as the :mod:`collections` module." +"For other containers see the built-in :class:`list`, :class:`set`, and :" +"class:`tuple` classes, as well as the :mod:`collections` module." msgstr "" -"Para outros contêineres, consulte as classes internas :class:`list`, " -":class:`set` e :class:`tuple`, bem como o módulo :mod:`collections`." +"Para outros contêineres, consulte as classes internas :class:`list`, :class:" +"`set` e :class:`tuple`, bem como o módulo :mod:`collections`." #: ../../library/functions.rst:340 msgid "" @@ -828,30 +827,29 @@ msgstr "" #: ../../library/functions.rst:343 msgid "" -"If the object has a method named :meth:`__dir__`, this method will be called" -" and must return the list of attributes. This allows objects that implement " -"a custom :func:`__getattr__` or :func:`__getattribute__` function to " -"customize the way :func:`dir` reports their attributes." +"If the object has a method named :meth:`__dir__`, this method will be called " +"and must return the list of attributes. This allows objects that implement a " +"custom :func:`__getattr__` or :func:`__getattribute__` function to customize " +"the way :func:`dir` reports their attributes." msgstr "" "Se o objeto tiver um método chamado :meth:`__dir__`, esse método será " "chamado e deve retornar a lista de atributos. Isso permite que objetos que " -"implementam uma função personalizada :func:`__getattr__` ou " -":func:`__getattribute__` personalizem a maneira :func:`dir` relata seus " -"atributos." +"implementam uma função personalizada :func:`__getattr__` ou :func:" +"`__getattribute__` personalizem a maneira :func:`dir` relata seus atributos." #: ../../library/functions.rst:348 msgid "" "If the object does not provide :meth:`__dir__`, the function tries its best " "to gather information from the object's :attr:`~object.__dict__` attribute, " -"if defined, and from its type object. The resulting list is not necessarily" -" complete, and may be inaccurate when the object has a custom " -":func:`__getattr__`." +"if defined, and from its type object. The resulting list is not necessarily " +"complete, and may be inaccurate when the object has a custom :func:" +"`__getattr__`." msgstr "" -"Se o objeto não fornecer :meth:`__dir__`, a função tentará o melhor possível" -" para coletar informações do atributo :attr:`~object.__dict__` do objeto, se" -" definido, e do seu objeto de tipo. A lista resultante não está " -"necessariamente completa e pode ser imprecisa quando o objeto possui um " -":func:`__getattr__` personalizado." +"Se o objeto não fornecer :meth:`__dir__`, a função tentará o melhor possível " +"para coletar informações do atributo :attr:`~object.__dict__` do objeto, se " +"definido, e do seu objeto de tipo. A lista resultante não está " +"necessariamente completa e pode ser imprecisa quando o objeto possui um :" +"func:`__getattr__` personalizado." #: ../../library/functions.rst:353 msgid "" @@ -896,8 +894,8 @@ msgstr "A lista resultante é alfabeticamente ordenada. Por exemplo:" #: ../../library/functions.rst:386 msgid "" "Because :func:`dir` is supplied primarily as a convenience for use at an " -"interactive prompt, it tries to supply an interesting set of names more than" -" it tries to supply a rigorously or consistently defined set of names, and " +"interactive prompt, it tries to supply an interesting set of names more than " +"it tries to supply a rigorously or consistently defined set of names, and " "its detailed behavior may change across releases. For example, metaclass " "attributes are not in the result list when the argument is a class." msgstr "" @@ -914,34 +912,34 @@ msgid "" "consisting of their quotient and remainder when using integer division. " "With mixed operand types, the rules for binary arithmetic operators apply. " "For integers, the result is the same as ``(a // b, a % b)``. For floating " -"point numbers the result is ``(q, a % b)``, where *q* is usually " -"``math.floor(a / b)`` but may be 1 less than that. In any case ``q * b + a " -"% b`` is very close to *a*, if ``a % b`` is non-zero it has the same sign as" -" *b*, and ``0 <= abs(a % b) < abs(b)``." +"point numbers the result is ``(q, a % b)``, where *q* is usually ``math." +"floor(a / b)`` but may be 1 less than that. In any case ``q * b + a % b`` " +"is very close to *a*, if ``a % b`` is non-zero it has the same sign as *b*, " +"and ``0 <= abs(a % b) < abs(b)``." msgstr "" "Toma dois números (não complexos) como argumentos e retorne um par de " "números que consiste em seu quociente e restante ao usar a divisão inteira. " "Com tipos de operandos mistos, as regras para operadores aritméticos " -"binários se aplicam. Para números inteiros, o resultado é o mesmo que ``(a " -"// b, a % b)``. Para números de ponto flutuante, o resultado é ``(q, a % " -"b)``, onde *q* geralmente é ``math.floor(a / b)``, mas pode ser 1 a menos " +"binários se aplicam. Para números inteiros, o resultado é o mesmo que " +"``(a // b, a % b)``. Para números de ponto flutuante, o resultado é ``(q, a " +"% b)``, onde *q* geralmente é ``math.floor(a / b)``, mas pode ser 1 a menos " "que isso. Em qualquer caso, ``q * b + a % b`` está muito próximo de *a*, se " -"``a % b`` é diferente de zero, tem o mesmo sinal que *b* e ``0 <= abs(a % b)" -" < abs(b)``." +"``a % b`` é diferente de zero, tem o mesmo sinal que *b* e ``0 <= abs(a % b) " +"< abs(b)``." #: ../../library/functions.rst:408 msgid "" -"Return an enumerate object. *iterable* must be a sequence, an " -":term:`iterator`, or some other object which supports iteration. The " -":meth:`~iterator.__next__` method of the iterator returned by " -":func:`enumerate` returns a tuple containing a count (from *start* which " -"defaults to 0) and the values obtained from iterating over *iterable*." +"Return an enumerate object. *iterable* must be a sequence, an :term:" +"`iterator`, or some other object which supports iteration. The :meth:" +"`~iterator.__next__` method of the iterator returned by :func:`enumerate` " +"returns a tuple containing a count (from *start* which defaults to 0) and " +"the values obtained from iterating over *iterable*." msgstr "" -"Retorne um objeto enumerado. *iterable* deve ser uma sequência, um " -":term:`iterador` ou algum outro objeto que suporte a iteração. O método " -":meth:`~iterator.__next__` do iterador retornado por :func:`enumerate` " -"retorna uma tupla contendo uma contagem (de *start*, cujo padrão é 0) e os " -"valores obtidos na iteração sobre *iterable*." +"Retorne um objeto enumerado. *iterable* deve ser uma sequência, um :term:" +"`iterador` ou algum outro objeto que suporte a iteração. O método :meth:" +"`~iterator.__next__` do iterador retornado por :func:`enumerate` retorna uma " +"tupla contendo uma contagem (de *start*, cujo padrão é 0) e os valores " +"obtidos na iteração sobre *iterable*." #: ../../library/functions.rst:420 msgid "Equivalent to::" @@ -965,12 +963,12 @@ msgid "" "present and does not contain a value for the key ``__builtins__``, a " "reference to the dictionary of the built-in module :mod:`builtins` is " "inserted under that key before *expression* is parsed. This means that " -"*expression* normally has full access to the standard :mod:`builtins` module" -" and restricted environments are propagated. If the *locals* dictionary is " +"*expression* normally has full access to the standard :mod:`builtins` module " +"and restricted environments are propagated. If the *locals* dictionary is " "omitted it defaults to the *globals* dictionary. If both dictionaries are " -"omitted, the expression is executed in the environment where :func:`eval` is" -" called. The return value is the result of the evaluated expression. Syntax" -" errors are reported as exceptions. Example:" +"omitted, the expression is executed in the environment where :func:`eval` is " +"called. The return value is the result of the evaluated expression. Syntax " +"errors are reported as exceptions. Example:" msgstr "" #: ../../library/functions.rst:452 @@ -993,18 +991,18 @@ msgid "" "current global and local dictionary, respectively, which may be useful to " "pass around for use by :func:`eval` or :func:`exec`." msgstr "" -"Dicas: a execução dinâmica de instruções é suportada pela função " -":func:`exec`. As funções :func:`globals` e :func:`locals` retornam o " -"dicionário global e local atual, respectivamente, o que pode ser útil para " -"ser usado por :func:`eval` ou :func:`exec`." +"Dicas: a execução dinâmica de instruções é suportada pela função :func:" +"`exec`. As funções :func:`globals` e :func:`locals` retornam o dicionário " +"global e local atual, respectivamente, o que pode ser útil para ser usado " +"por :func:`eval` ou :func:`exec`." #: ../../library/functions.rst:462 msgid "" -"See :func:`ast.literal_eval` for a function that can safely evaluate strings" -" with expressions containing only literals." +"See :func:`ast.literal_eval` for a function that can safely evaluate strings " +"with expressions containing only literals." msgstr "" -"Veja :func:`ast.literal_eval` para uma função que pode avaliar com segurança" -" strings com expressões contendo apenas literais." +"Veja :func:`ast.literal_eval` para uma função que pode avaliar com segurança " +"strings com expressões contendo apenas literais." #: ../../library/functions.rst:469 msgid "" @@ -1013,16 +1011,26 @@ msgid "" "as a suite of Python statements which is then executed (unless a syntax " "error occurs). [#]_ If it is a code object, it is simply executed. In all " "cases, the code that's executed is expected to be valid as file input (see " -"the section \"File input\" in the Reference Manual). Be aware that the " -":keyword:`return` and :keyword:`yield` statements may not be used outside of" -" function definitions even within the context of code passed to the " -":func:`exec` function. The return value is ``None``." -msgstr "" +"the section \"File input\" in the Reference Manual). Be aware that the :" +"keyword:`return` and :keyword:`yield` statements may not be used outside of " +"function definitions even within the context of code passed to the :func:" +"`exec` function. The return value is ``None``." +msgstr "" +"Esta função suporta execução dinâmica de código Python. O parâmetro *object* " +"deve ser ou uma string ou um objeto contendo código. Se for uma string, a " +"mesma é analisada como um conjunto de instruções Python, o qual é então " +"executado (exceto caso um erro de sintaxe ocorra). [#]_ Se for um objeto com " +"código, ele é simplesmente executado. Em todos os casos, espera-se que o " +"código a ser executado seja válido como um arquivo de entrada (veja a seção " +"\"Arquivo de Entrada\" no Manual de Referência). Tenha cuidado que as " +"expressões :keyword:`return` e :keyword:`yield` não podem ser usadas fora " +"das definições de funções mesmo dentro do contexto do código passado para a " +"função :func:`exec` . O valor de retorno é sempre ``None``." #: ../../library/functions.rst:479 msgid "" -"In all cases, if the optional parts are omitted, the code is executed in the" -" current scope. If only *globals* is provided, it must be a dictionary, " +"In all cases, if the optional parts are omitted, the code is executed in the " +"current scope. If only *globals* is provided, it must be a dictionary, " "which will be used for both the global and the local variables. If " "*globals* and *locals* are given, they are used for the global and local " "variables, respectively. If provided, *locals* can be any mapping object. " @@ -1034,19 +1042,26 @@ msgstr "" #: ../../library/functions.rst:488 msgid "" "If the *globals* dictionary does not contain a value for the key " -"``__builtins__``, a reference to the dictionary of the built-in module " -":mod:`builtins` is inserted under that key. That way you can control what " +"``__builtins__``, a reference to the dictionary of the built-in module :mod:" +"`builtins` is inserted under that key. That way you can control what " "builtins are available to the executed code by inserting your own " -"``__builtins__`` dictionary into *globals* before passing it to " -":func:`exec`." +"``__builtins__`` dictionary into *globals* before passing it to :func:`exec`." msgstr "" +"Se o dicionário *globals* não contém um valor para a chave ``__builtins__``, " +"a referência para o dicionário do módulo embutido :mod:`builtins` é inserido " +"com essa chave. A maneira que você pode controlar quais embutidos estão " +"disponíveis para o código executado é inserindo seu próprio ``__builtins__`` " +"dicionário em *globals* antes de passar para :func:`exec`." #: ../../library/functions.rst:496 msgid "" -"The built-in functions :func:`globals` and :func:`locals` return the current" -" global and local dictionary, respectively, which may be useful to pass " +"The built-in functions :func:`globals` and :func:`locals` return the current " +"global and local dictionary, respectively, which may be useful to pass " "around for use as the second and third argument to :func:`exec`." msgstr "" +"As funções embutidas :func:`globals` e :func:`locals` retornam o dicionário " +"global e local, respectivamente, o que pode ser útil para passar adiante e " +"usar como segundo ou terceiro argumento para :func:`exec`." #: ../../library/functions.rst:502 msgid "" @@ -1055,15 +1070,24 @@ msgid "" "Pass an explicit *locals* dictionary if you need to see effects of the code " "on *locals* after function :func:`exec` returns." msgstr "" +"*locals* padrão atua como descrito pela função :func:`locals` abaixo: " +"modificações para o dicionário *locals* padrão não deveriam ser feitas. Se " +"você precisa ver efeitos do código em *locals* depois da função :func:`exec` " +"retornar passe um dicionário *locals* explícito." #: ../../library/functions.rst:510 msgid "" -"Construct an iterator from those elements of *iterable* for which *function*" -" returns true. *iterable* may be either a sequence, a container which " -"supports iteration, or an iterator. If *function* is ``None``, the identity" -" function is assumed, that is, all elements of *iterable* that are false are" -" removed." +"Construct an iterator from those elements of *iterable* for which *function* " +"returns true. *iterable* may be either a sequence, a container which " +"supports iteration, or an iterator. If *function* is ``None``, the identity " +"function is assumed, that is, all elements of *iterable* that are false are " +"removed." msgstr "" +"Constrói um iterador a partir dos elementos de *iterable* para os quais " +"*function* retorna true. *iterable* pode ser uma sequência (um container " +"que suporta iteração) ou um iterador. Se *function* tiver o valor ``None``, " +"a função identidade é será usada, isto é, todos os elementos de *iterable* " +"que retornam false são removidos." #: ../../library/functions.rst:516 msgid "" @@ -1072,16 +1096,21 @@ msgid "" "not ``None`` and ``(item for item in iterable if item)`` if function is " "``None``." msgstr "" +"Note que ``filter(function, iterable)`` é equivalente a expressão geradora " +"``(item for item in iterable if function(item))`` se function não tiver o " +"valor ``None`` e ``(item for item in iterable if item)`` se function tiver o " +"valor ``None``." #: ../../library/functions.rst:521 msgid "" "See :func:`itertools.filterfalse` for the complementary function that " "returns elements of *iterable* for which *function* returns false." msgstr "" +"Veja :func:`itertools.filterfalse` para a função complementar que retorna " +"elementos de *iterable* para a qual *function* retorna false." #: ../../library/functions.rst:531 -msgid "" -"Return a floating point number constructed from a number or string *x*." +msgid "Return a floating point number constructed from a number or string *x*." msgstr "" "Retorna um número de ponto flutuante construído a partir de um número ou " "string * x *." @@ -1091,19 +1120,31 @@ msgid "" "If the argument is a string, it should contain a decimal number, optionally " "preceded by a sign, and optionally embedded in whitespace. The optional " "sign may be ``'+'`` or ``'-'``; a ``'+'`` sign has no effect on the value " -"produced. The argument may also be a string representing a NaN " -"(not-a-number), or a positive or negative infinity. More precisely, the " -"input must conform to the following grammar after leading and trailing " -"whitespace characters are removed:" -msgstr "" +"produced. The argument may also be a string representing a NaN (not-a-" +"number), or a positive or negative infinity. More precisely, the input must " +"conform to the following grammar after leading and trailing whitespace " +"characters are removed:" +msgstr "" +"Se o argumento é uma string, ele deve conter um número decimal, " +"opcionalmente precedido por um sinal, e opcionalmente possuir espaço em " +"branco. O sinal opcional pode ser ``'+'`` ou ``'-'``; um sinal de ``'+'`` " +"não tem efeito no valor produzido. O argumento também pode ser uma string " +"representando um NaN (indica que não é numero), ou inifinito positivo/" +"negativo. Mais precisamente, a entrada deve estar em conformidade com a " +"seguinte gramática depois que caracteres em branco são removidos do início e " +"do final da mesma:" #: ../../library/functions.rst:548 msgid "" "Here ``floatnumber`` is the form of a Python floating-point literal, " "described in :ref:`floating`. Case is not significant, so, for example, " -"\"inf\", \"Inf\", \"INFINITY\" and \"iNfINity\" are all acceptable spellings" -" for positive infinity." +"\"inf\", \"Inf\", \"INFINITY\" and \"iNfINity\" are all acceptable spellings " +"for positive infinity." msgstr "" +"Aqui ``floatnumber`` é a forma literal de um ponto flutuante Python, " +"descrito em :ref:`floating`. Caso isso não seja significante, então, por " +"exemplo, \"inf\", \"Inf\", \"INFINITY\" e \"iNfINity\" são todas formas " +"escritas válidas para infinito positivo." #: ../../library/functions.rst:553 msgid "" @@ -1112,11 +1153,15 @@ msgid "" "precision) is returned. If the argument is outside the range of a Python " "float, an :exc:`OverflowError` will be raised." msgstr "" +"Caso contrário, se o argumento é um inteiro ou um número de ponto flutuante, " +"um número de ponto flutuante com o mesmo valor (com a precisão de ponto " +"flutuante de Python) é devolvido. Se o argumento está fora do intervalo de " +"um ponto flutuante Python, uma exceção :exc:`OverflowError` será lançada." #: ../../library/functions.rst:558 msgid "" -"For a general Python object ``x``, ``float(x)`` delegates to " -"``x.__float__()``." +"For a general Python object ``x``, ``float(x)`` delegates to ``x." +"__float__()``." msgstr "" #: ../../library/functions.rst:561 @@ -1129,7 +1174,7 @@ msgstr "Exemplos::" #: ../../library/functions.rst:576 msgid "The float type is described in :ref:`typesnumeric`." -msgstr "" +msgstr "O tipo float é descrito em :ref:`typesnumeric`." #: ../../library/functions.rst:591 msgid "" @@ -1138,42 +1183,61 @@ msgid "" "of the *value* argument, however there is a standard formatting syntax that " "is used by most built-in types: :ref:`formatspec`." msgstr "" +"Converte um valor *value* em uma representação \"formatada\", como " +"controlado por *format_spec*. A interpretação de *format_spec* dependerá do " +"tipo do argumento *value*, no entanto, há uma sintaxe de formatação padrão " +"usada pela maioria dos tipos embutidos: :ref:`formspecpec`." #: ../../library/functions.rst:596 msgid "" "The default *format_spec* is an empty string which usually gives the same " "effect as calling :func:`str(value) `." msgstr "" +"O padrão *format_spec* é uma string vazia que geralmente produz o mesmo " +"efeito que chamar :func:`str (valor) `." #: ../../library/functions.rst:599 msgid "" -"A call to ``format(value, format_spec)`` is translated to " -"``type(value).__format__(value, format_spec)`` which bypasses the instance " -"dictionary when searching for the value's :meth:`__format__` method. A " -":exc:`TypeError` exception is raised if the method search reaches " -":mod:`object` and the *format_spec* is non-empty, or if either the " -"*format_spec* or the return value are not strings." +"A call to ``format(value, format_spec)`` is translated to ``type(value)." +"__format__(value, format_spec)`` which bypasses the instance dictionary when " +"searching for the value's :meth:`__format__` method. A :exc:`TypeError` " +"exception is raised if the method search reaches :mod:`object` and the " +"*format_spec* is non-empty, or if either the *format_spec* or the return " +"value are not strings." msgstr "" +"Uma chamada de ``format (value, format_spec)`` é convertida em ``type(value)." +"__format__(value, format_spec)``, que ignora o dicionário da instância ao " +"pesquisar o método :meth:`__format__` do valor. A exceção :exc:`TypeError` é " +"levantada se a pesquisa do método atingir :mod:`object` e o *format_spec* " +"não estiver vazio, ou se o *format_spec* ou o valor de retorno não forem " +"strings." #: ../../library/functions.rst:606 msgid "" "``object().__format__(format_spec)`` raises :exc:`TypeError` if " "*format_spec* is not an empty string." msgstr "" +"``object().__format__(format_spec)`` levanta um :exc:`TypeError` se " +"*format_spec* não for uma string vazia." #: ../../library/functions.rst:615 msgid "" "Return a new :class:`frozenset` object, optionally with elements taken from " -"*iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and " -":ref:`types-set` for documentation about this class." +"*iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :" +"ref:`types-set` for documentation about this class." msgstr "" +"Devolve um novo objeto :class:`frozenset`, opcionalmente com elementos " +"obtidos de *iterable*. ``frozenset`` é uma classe embutida. Veja :class:" +"`frozenset` e :ref:`types-set` para documentação sobre essas classes." #: ../../library/functions.rst:619 msgid "" -"For other containers see the built-in :class:`set`, :class:`list`, " -":class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections`" -" module." +"For other containers see the built-in :class:`set`, :class:`list`, :class:" +"`tuple`, and :class:`dict` classes, as well as the :mod:`collections` module." msgstr "" +"Para outros containers veja as classes embutidas :class:`set`, :class:" +"`list`, :class:`tuple`, e :class:`dict`, bem como o módulo :mod:" +"`collections`." #: ../../library/functions.rst:626 msgid "" @@ -1181,9 +1245,14 @@ msgid "" "string. If the string is the name of one of the object's attributes, the " "result is the value of that attribute. For example, ``getattr(x, " "'foobar')`` is equivalent to ``x.foobar``. If the named attribute does not " -"exist, *default* is returned if provided, otherwise :exc:`AttributeError` is" -" raised." +"exist, *default* is returned if provided, otherwise :exc:`AttributeError` is " +"raised." msgstr "" +"Devolve o valor do atributo *name* de *object*. *name* deve ser uma string. " +"Se a string é o nome de um dos atributos do objeto, o resultado é o valor de " +"tal atributo. Por exempleo, ``getattr(x, 'foobar')`` é equivalente a ``x." +"foobar``. Se o atributo não existir, *default* é devolvido se tiver sido " +"fornecido, caso contrário é levantada a exceção :exc:`AttributeError`." #: ../../library/functions.rst:635 msgid "" @@ -1192,14 +1261,21 @@ msgid "" "this is the module where it is defined, not the module from which it is " "called)." msgstr "" +"Devolve um dicionário representando a tabela de símbolos global atual. É " +"sempre o dicionário do módulo atual (dentro de uma função ou método, é o " +"módulo onde está definido, não o módulo do qual é chamado)." #: ../../library/functions.rst:642 msgid "" "The arguments are an object and a string. The result is ``True`` if the " "string is the name of one of the object's attributes, ``False`` if not. " -"(This is implemented by calling ``getattr(object, name)`` and seeing whether" -" it raises an :exc:`AttributeError` or not.)" +"(This is implemented by calling ``getattr(object, name)`` and seeing whether " +"it raises an :exc:`AttributeError` or not.)" msgstr "" +"Os argumentos são um objeto e uma string. O resultado é ``True`` se a string " +"é o nome de um dos atributos do objeto, e ``False`` se ela não for. (Isto é " +"implementado chamando ``getattr(object, name)`` e vendo se levanta um :exc:" +"`AttributeError` ou não.)" #: ../../library/functions.rst:650 msgid "" @@ -1208,24 +1284,38 @@ msgid "" "dictionary lookup. Numeric values that compare equal have the same hash " "value (even if they are of different types, as is the case for 1 and 1.0)." msgstr "" +"Retorna o valor hash de um objeto (se houver um). Valores hash values são " +"números inteiros. Eles são usados para rapidamente comparar chaves de " +"dicionários durante uma pesquisa em um dicionário. Valores numéricos que ao " +"serem comparados são iguais, possuem o mesmo valor hash (mesmo que eles " +"sejam de tipos diferentes, como é o caso de 1 e 1.0)." #: ../../library/functions.rst:657 msgid "" "For objects with custom :meth:`__hash__` methods, note that :func:`hash` " -"truncates the return value based on the bit width of the host machine. See " -":meth:`__hash__` for details." +"truncates the return value based on the bit width of the host machine. See :" +"meth:`__hash__` for details." msgstr "" +"Para objetos com métodos :meth:`__hash__` customizados, fique atento que :" +"func:`hash` trunca o valor retornado baseado no comprimento de bits da " +"máquina hospedeira. Veja :meth:`__hash__` para mais detalhes." #: ../../library/functions.rst:663 msgid "" -"Invoke the built-in help system. (This function is intended for interactive" -" use.) If no argument is given, the interactive help system starts on the " -"interpreter console. If the argument is a string, then the string is looked" -" up as the name of a module, function, class, method, keyword, or " +"Invoke the built-in help system. (This function is intended for interactive " +"use.) If no argument is given, the interactive help system starts on the " +"interpreter console. If the argument is a string, then the string is looked " +"up as the name of a module, function, class, method, keyword, or " "documentation topic, and a help page is printed on the console. If the " -"argument is any other kind of object, a help page on the object is " -"generated." +"argument is any other kind of object, a help page on the object is generated." msgstr "" +"Invoca o sistema de ajuda embutido. (Esta função é destinada para uso " +"interativo.) Se nenhum argumento é passado, o sistema interativo de ajuda " +"inicia no interpretador do console. Se o argumento é uma string, então a " +"string é pesquisada como o nome de um módulo, função, classe, metódo, " +"palavra-chave, ou tópico de documentação, e a página de ajuda é exibida no " +"console. Se o argumento é qualquer outro tipo de objeto, uma página de ajuda " +"para o objeto é gerada." #: ../../library/functions.rst:670 msgid "" @@ -1234,24 +1324,35 @@ msgid "" "positional-only. For more info, see :ref:`the FAQ entry on positional-only " "parameters `." msgstr "" +"Note que se uma barra(/) aparecer na lista de parâmetros de uma função, " +"quando invocando :func:`help`, significa que os parâmetros anteriores a " +"barra são apenas posicionais. Para mais informações, veja :ref:`the FAQ " +"entry on positional-only parameters `." #: ../../library/functions.rst:675 msgid "" "This function is added to the built-in namespace by the :mod:`site` module." msgstr "" +"Esta função é adicionada ao espaço de nomes embutido pelo módulo :mod:`site`." #: ../../library/functions.rst:677 msgid "" -"Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures" -" for callables are now more comprehensive and consistent." +"Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures " +"for callables are now more comprehensive and consistent." msgstr "" +"Mudanças em :mod:`pydoc` e :mod:`inspect` significam que as assinaturas " +"reportadas para chamáveis agora são mais compreensíveis e consistentes." #: ../../library/functions.rst:684 msgid "" "Convert an integer number to a lowercase hexadecimal string prefixed with " -"\"0x\". If *x* is not a Python :class:`int` object, it has to define an " -":meth:`__index__` method that returns an integer. Some examples:" +"\"0x\". If *x* is not a Python :class:`int` object, it has to define an :" +"meth:`__index__` method that returns an integer. Some examples:" msgstr "" +"Converte um número inteiro para uma string hexadecimal em letras minúsculas " +"pré-fixada com \"0x\". Se *x* não é um objeto :class:`int` do Python, ele " +"tem que definir um método :meth:`__index__` que retorne um inteiro. Alguns " +"exemplos:" #: ../../library/functions.rst:693 msgid "" @@ -1259,18 +1360,25 @@ msgid "" "hexadecimal string with prefix or not, you can use either of the following " "ways:" msgstr "" +"Se você quer converter um número inteiro para uma string hexadecimal em " +"letras maiúsculas ou minúsculas, com prefixo ou sem, você pode usar qualquer " +"uma das seguintes maneiras:" #: ../../library/functions.rst:705 msgid "" -"See also :func:`int` for converting a hexadecimal string to an integer using" -" a base of 16." +"See also :func:`int` for converting a hexadecimal string to an integer using " +"a base of 16." msgstr "" +"Veja também :func:`int` para converter uma string hexadecimal para um " +"inteiro usando a base 16." #: ../../library/functions.rst:710 msgid "" -"To obtain a hexadecimal string representation for a float, use the " -":meth:`float.hex` method." +"To obtain a hexadecimal string representation for a float, use the :meth:" +"`float.hex` method." msgstr "" +"Para obter uma string hexadecimal de um ponto flutuante, use o método :meth:" +"`float.hex`." #: ../../library/functions.rst:716 msgid "" @@ -1279,6 +1387,10 @@ msgid "" "Two objects with non-overlapping lifetimes may have the same :func:`id` " "value." msgstr "" +"Retorna a \"identidade\" de um objeto. Ele é um inteiro, o qual é garantido " +"que será único e constante para este objeto durante todo o seu ciclo de " +"vida. Dois objetos com ciclos de vida não sobrepostos podem ter o mesmo " +"valor para :func:`id`." #: ../../library/functions.rst:726 msgid "" @@ -1287,36 +1399,55 @@ msgid "" "converts it to a string (stripping a trailing newline), and returns that. " "When EOF is read, :exc:`EOFError` is raised. Example::" msgstr "" +"se o argumento *prompt* estiver presente, escreve na saída padrão sem uma " +"nova linha ao final. A função então lê uma linha da fonte de entrada, " +"converte a mesma para uma string (removendo o caracter de nova linha ao " +"final), e retorna isso. Quando o final do arquivo (EOF / end-of-file) é " +"encontrado, um erro :exc:`EOFError` é levantado. Exemplo::" #: ../../library/functions.rst:736 msgid "" "If the :mod:`readline` module was loaded, then :func:`input` will use it to " "provide elaborate line editing and history features." msgstr "" +"Se o módulo :mod:`readline` foi carregado, então :func:`input` usará ele " +"para prover edição de linhas elaboradas e funcionalidades de histórico." #: ../../library/functions.rst:743 msgid "" "Return an integer object constructed from a number or string *x*, or return " -"``0`` if no arguments are given. If *x* defines :meth:`__int__`, ``int(x)``" -" returns ``x.__int__()``. If *x* defines :meth:`__trunc__`, it returns " -"``x.__trunc__()``. For floating point numbers, this truncates towards zero." +"``0`` if no arguments are given. If *x* defines :meth:`__int__`, ``int(x)`` " +"returns ``x.__int__()``. If *x* defines :meth:`__trunc__`, it returns ``x." +"__trunc__()``. For floating point numbers, this truncates towards zero." msgstr "" #: ../../library/functions.rst:749 msgid "" -"If *x* is not a number or if *base* is given, then *x* must be a string, " -":class:`bytes`, or :class:`bytearray` instance representing an :ref:`integer" -" literal ` in radix *base*. Optionally, the literal can be " +"If *x* is not a number or if *base* is given, then *x* must be a string, :" +"class:`bytes`, or :class:`bytearray` instance representing an :ref:`integer " +"literal ` in radix *base*. Optionally, the literal can be " "preceded by ``+`` or ``-`` (with no space in between) and surrounded by " -"whitespace. A base-n literal consists of the digits 0 to n-1, with ``a`` to" -" ``z`` (or ``A`` to ``Z``) having values 10 to 35. The default *base* is " -"10. The allowed values are 0 and 2--36. Base-2, -8, and -16 literals can be " +"whitespace. A base-n literal consists of the digits 0 to n-1, with ``a`` to " +"``z`` (or ``A`` to ``Z``) having values 10 to 35. The default *base* is 10. " +"The allowed values are 0 and 2--36. Base-2, -8, and -16 literals can be " "optionally prefixed with ``0b``/``0B``, ``0o``/``0O``, or ``0x``/``0X``, as " "with integer literals in code. Base 0 means to interpret exactly as a code " "literal, so that the actual base is 2, 8, 10, or 16, and so that " "``int('010', 0)`` is not legal, while ``int('010')`` is, as well as " "``int('010', 8)``." msgstr "" +"Se *x* não é um número ou se *base* é fornecida, então *x* deve ser uma " +"string, instância de :class:`bytes` ou :class:`bytearray` representando um :" +"ref:`inteiro literal ` em base *base*. Opcionalmente, o literal " +"pode ser precedido por ``+`` ou ``-`` (sem espaço entre eles) e cercado por " +"espaços em branco. Um literal base-n consiste de dígitos de 0 até n-1, com " +"``a`` até ``z`` (ou ``A`` até ``Z``) com valores de 10 até 35. A *base* " +"padrão é 10. Os valores permitidos são 0 e 2--36. Literais em base-2, -8, e " +"-16 podem ser opcionalmente prefixado com ``0b``/``0B``, ``0o``/``0O``, ou " +"``0x``/``0X``, assim como literais inteiros. Base 0 significa que será " +"interpretado exatamente como um literal, ou seja, as bases são, na verdade, " +"2, 8, 10, ou 16, e que ``int('010', 0)`` não é legal, enquanto " +"``int('010')`` é, assim como ``int('010', 8)``." #: ../../library/functions.rst:762 msgid "The integer type is described in :ref:`typesnumeric`." @@ -1324,31 +1455,48 @@ msgstr "O tipo inteiro é descrito em :ref:`typesnumeric`." #: ../../library/functions.rst:764 msgid "" -"If *base* is not an instance of :class:`int` and the *base* object has a " -":meth:`base.__index__ ` method, that method is called to " +"If *base* is not an instance of :class:`int` and the *base* object has a :" +"meth:`base.__index__ ` method, that method is called to " "obtain an integer for the base. Previous versions used :meth:`base.__int__ " "` instead of :meth:`base.__index__ `." msgstr "" +"Se *base* não é uma instância de :class:`int` e o objeto *base* tem um " +"método :meth:`base.__index__ `, então esse método é " +"chamado para obter um inteiro para a base. Versões anteriores usavam :meth:" +"`base.__int__ ` ao invés de :meth:`base.__index__ `." #: ../../library/functions.rst:780 msgid "" -"Return true if the *object* argument is an instance of the *classinfo* " +"Return ``True`` if the *object* argument is an instance of the *classinfo* " "argument, or of a (direct, indirect or :term:`virtual `) subclass thereof. If *object* is not an object of the given type, " -"the function always returns false. If *classinfo* is a tuple of type objects" -" (or recursively, other such tuples), return true if *object* is an instance" -" of any of the types. If *classinfo* is not a type or tuple of types and " -"such tuples, a :exc:`TypeError` exception is raised." -msgstr "" +"the function always returns ``False``. If *classinfo* is a tuple of type " +"objects (or recursively, other such tuples), return ``True`` if *object* is " +"an instance of any of the types. If *classinfo* is not a type or tuple of " +"types and such tuples, a :exc:`TypeError` exception is raised." +msgstr "" +"Devolve ``True`` se o argumento *object* é uma instância argumento " +"*classinfo*, ou de uma subclasse dele (direta, indireta ou :term:`virtual " +"`). Se *object* não é um objeto do tipo dado, a função " +"sempre devolve ``False``. Se *classinfo* é uma tupla de tipos de objetos (ou " +"recursivamente, como outras tuplas), devolve ``True`` se *object* é uma " +"instância de qualquer um dos tipos. Se *classinfo* não é um tipo ou tupla de " +"tipos ou outras tuplas, é lançada uma exceção :exc:`TypeError`." #: ../../library/functions.rst:792 msgid "" -"Return true if *class* is a subclass (direct, indirect or :term:`virtual " -"`) of *classinfo*. A class is considered a subclass of" -" itself. *classinfo* may be a tuple of class objects, in which case every " +"Return ``True`` if *class* is a subclass (direct, indirect or :term:`virtual " +"`) of *classinfo*. A class is considered a subclass of " +"itself. *classinfo* may be a tuple of class objects, in which case every " "entry in *classinfo* will be checked. In any other case, a :exc:`TypeError` " "exception is raised." msgstr "" +"Retorna ``True`` se *class* é uma sub-classe (direta, indireta ou :term:" +"`virtual `) de *classinfo*. Uma classe é considerada " +"uma sub-classe dela mesma. *classinfo* pode ser uma tupla de objetos de " +"classes, e neste caso cada entrada em *classinfo* será verificada. Em " +"qualquer outro caso, uma exceção do tipo :exc:`TypeError` é levantada." #: ../../library/functions.rst:801 msgid "" @@ -1357,14 +1505,25 @@ msgid "" "second argument, *object* must be a collection object which supports the " "iteration protocol (the :meth:`__iter__` method), or it must support the " "sequence protocol (the :meth:`__getitem__` method with integer arguments " -"starting at ``0``). If it does not support either of those protocols, " -":exc:`TypeError` is raised. If the second argument, *sentinel*, is given, " -"then *object* must be a callable object. The iterator created in this case " -"will call *object* with no arguments for each call to its " -":meth:`~iterator.__next__` method; if the value returned is equal to " -"*sentinel*, :exc:`StopIteration` will be raised, otherwise the value will be" -" returned." -msgstr "" +"starting at ``0``). If it does not support either of those protocols, :exc:" +"`TypeError` is raised. If the second argument, *sentinel*, is given, then " +"*object* must be a callable object. The iterator created in this case will " +"call *object* with no arguments for each call to its :meth:`~iterator." +"__next__` method; if the value returned is equal to *sentinel*, :exc:" +"`StopIteration` will be raised, otherwise the value will be returned." +msgstr "" +"Retorna um objeto :term:`iterator`. O primeiro argumento é interpretado " +"muito diferentemente dependedo da presença do segundo argumento. Sem um " +"segundo argumento, *object* deve ser uma coleção de objetos que suportem o " +"protocolo de iteração (o método :meth:`__iter__`), ou ele deve suportar o " +"protocolo de sequência (o método :meth:`__getitem__` com argumentos inteiros " +"começando em ``0``). Se ele não suportar nenhum desses protocolos, um :exc:" +"`TypeError` é levantado. Se o segundo argumento, *sentinel*, é fornecido, " +"então *object* deve ser um objeto que pode ser chamado. O iterador criado " +"neste caso irá chamar *object* sem nenhum argumento para cada chamada para o " +"seu métod :meth:`~iterator.__next__`; se o valor retornado é igual a " +"*sentinel*, então :exc:`StopIteration` será levantado, caso contrário o " +"valor será retornado." #: ../../library/functions.rst:814 msgid "See also :ref:`typeiter`." @@ -1373,8 +1532,8 @@ msgstr "Veja também :ref:`typeiter`." #: ../../library/functions.rst:816 msgid "" "One useful application of the second form of :func:`iter` is to build a " -"block-reader. For example, reading fixed-width blocks from a binary database" -" file until the end of file is reached::" +"block-reader. For example, reading fixed-width blocks from a binary database " +"file until the end of file is reached::" msgstr "" "Uma aplicação útil da segunda forma de :func:`iter` é para construir um " "bloco de leitura. Por exemplo, ler blocos de comprimento fixo de um arquivo " @@ -1382,42 +1541,58 @@ msgstr "" #: ../../library/functions.rst:828 msgid "" -"Return the length (the number of items) of an object. The argument may be a" -" sequence (such as a string, bytes, tuple, list, or range) or a collection " +"Return the length (the number of items) of an object. The argument may be a " +"sequence (such as a string, bytes, tuple, list, or range) or a collection " "(such as a dictionary, set, or frozen set)." msgstr "" +"Retorna o comprimento (o número de itens) de um objeto. O argumento pode ser " +"uma sequência (tal como uma string, bytes, tupla, lista, ou range) ou uma " +"coleção (tal como um dicionário, conjunto, ou conjunto imutável)." #: ../../library/functions.rst:837 msgid "" "Rather than being a function, :class:`list` is actually a mutable sequence " "type, as documented in :ref:`typesseq-list` and :ref:`typesseq`." msgstr "" +"Ao invés de ser uma função, :class:`list` é na verdade uma tipo de sequência " +"mutável, conforme documentado em :ref:`typesseq-list` e :ref:`typesseq`." #: ../../library/functions.rst:843 msgid "" "Update and return a dictionary representing the current local symbol table. " "Free variables are returned by :func:`locals` when it is called in function " -"blocks, but not in class blocks. Note that at the module level, " -":func:`locals` and :func:`globals` are the same dictionary." +"blocks, but not in class blocks. Note that at the module level, :func:" +"`locals` and :func:`globals` are the same dictionary." msgstr "" +"Atualiza e retorna um dicionário representando a tabela de símbolos locais " +"atual. Variáveis livres são retornadas por :func:`locals` quanto ele é " +"chamado em blocos de função, mas não em blocos de classes. Perceba que no " +"nível dos módulos, :func:`locals` e :func:`globals` são o mesmo dicionário." #: ../../library/functions.rst:849 msgid "" "The contents of this dictionary should not be modified; changes may not " "affect the values of local and free variables used by the interpreter." msgstr "" -"O conteúdo deste dicionário não deve ser modificado; As alterações podem não" -" afetar os valores das variáveis ​​locais e livres usadas pelo intérprete." +"O conteúdo deste dicionário não deve ser modificado; As alterações podem não " +"afetar os valores das variáveis ​​locais e livres usadas pelo intérprete." #: ../../library/functions.rst:854 msgid "" "Return an iterator that applies *function* to every item of *iterable*, " "yielding the results. If additional *iterable* arguments are passed, " "*function* must take that many arguments and is applied to the items from " -"all iterables in parallel. With multiple iterables, the iterator stops when" -" the shortest iterable is exhausted. For cases where the function inputs " -"are already arranged into argument tuples, see :func:`itertools.starmap`\\." -msgstr "" +"all iterables in parallel. With multiple iterables, the iterator stops when " +"the shortest iterable is exhausted. For cases where the function inputs are " +"already arranged into argument tuples, see :func:`itertools.starmap`\\." +msgstr "" +"Retorna um iterador que aplica *function* para cada item de *iterable*, " +"devolvendo os resultados. Se argumentos *iterable* adicionais são passados, " +"*function* deve ter a mesma quantidade de argumentos e ela é aplicada aos " +"itens de todos os iteráveis em paralelo. Com múltiplos iteráveis, o iterador " +"para quando o iterador mais curto é encontrado. Para casos onde os " +"parâmetros de entrada da função já estão organizados em tuplas, veja :func:" +"`itertools.starmap`\\." #: ../../library/functions.rst:865 msgid "" @@ -1432,33 +1607,47 @@ msgid "" "The largest item in the iterable is returned. If two or more positional " "arguments are provided, the largest of the positional arguments is returned." msgstr "" +"Se um argumento posicional é fornecido, ele deve ser um :term:`iterable`. O " +"maior item no iterável é retornado. Se dois ou mais argumentos posicionais " +"são fornecidos, o maior dos argumentos posicionais é retornado." #: ../../library/functions.rst:873 ../../library/functions.rst:907 msgid "" "There are two optional keyword-only arguments. The *key* argument specifies " "a one-argument ordering function like that used for :meth:`list.sort`. The " -"*default* argument specifies an object to return if the provided iterable is" -" empty. If the iterable is empty and *default* is not provided, a " -":exc:`ValueError` is raised." +"*default* argument specifies an object to return if the provided iterable is " +"empty. If the iterable is empty and *default* is not provided, a :exc:" +"`ValueError` is raised." msgstr "" +"Existem dois parâmetros palavra-chave opcionais. O parâmetro *key* " +"especifica uma função de ordenamento de um argumento, como aquelas usadas " +"por :meth:`list.sort`. O parâmetro *default* especifica um objeto a ser " +"retornado se o iterável fornecido estiver vazio. Se o iterável estiver " +"vazion, e *default* não foi fornecido, um :exc:`ValueError` é levantado." #: ../../library/functions.rst:879 msgid "" "If multiple items are maximal, the function returns the first one " "encountered. This is consistent with other sort-stability preserving tools " -"such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and " -"``heapq.nlargest(1, iterable, key=keyfunc)``." +"such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and ``heapq." +"nlargest(1, iterable, key=keyfunc)``." msgstr "" +"Se múltiplos itens são máximos, a função retorna o primeiro encontrado. Isto " +"é consistente com outras ferramentas de ordenamento que preservam a " +"estabilidade, tais como ``sorted(iterable, key=keyfunc, reverse=True)[0]`` e " +"``heapq.nlargest(1, iterable, key=keyfunc)``." #: ../../library/functions.rst:884 ../../library/functions.rst:918 msgid "The *default* keyword-only argument." -msgstr "" +msgstr "O parâmetro palavra-chave *default*." #: ../../library/functions.rst:892 msgid "" -"Return a \"memory view\" object created from the given argument. See " -":ref:`typememoryview` for more information." +"Return a \"memory view\" object created from the given argument. See :ref:" +"`typememoryview` for more information." msgstr "" +"Retorna um objeto de \"visão da memória\" criado a partir do argumento " +"fornecido. Veja :ref:`typememoryview` para mais informações." #: ../../library/functions.rst:899 msgid "" @@ -1471,9 +1660,11 @@ msgstr "" msgid "" "If one positional argument is provided, it should be an :term:`iterable`. " "The smallest item in the iterable is returned. If two or more positional " -"arguments are provided, the smallest of the positional arguments is " -"returned." +"arguments are provided, the smallest of the positional arguments is returned." msgstr "" +"Se um argumento posicional é fornecido, ele deve ser um :term:`iterable`. O " +"menor item no iterável é retornado. Se dois ou mais argumentos posicionais " +"são fornecidos, o menor dos argumentos posicionais é retornado." #: ../../library/functions.rst:913 msgid "" @@ -1482,26 +1673,41 @@ msgid "" "such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1, " "iterable, key=keyfunc)``." msgstr "" +"Se múltiplos itens são mínimos, a função retorna o primeiro encontrado. Isto " +"é consistente com outras ferramentas de ordenamento que preservam a " +"estabilidade, tais como ``sorted(iterable, key=keyfunc)[0]`` e ``heapq." +"nsmallest(1, iterable, key=keyfunc)``." #: ../../library/functions.rst:924 msgid "" -"Retrieve the next item from the *iterator* by calling its " -":meth:`~iterator.__next__` method. If *default* is given, it is returned if" -" the iterator is exhausted, otherwise :exc:`StopIteration` is raised." +"Retrieve the next item from the *iterator* by calling its :meth:`~iterator." +"__next__` method. If *default* is given, it is returned if the iterator is " +"exhausted, otherwise :exc:`StopIteration` is raised." msgstr "" +"Recupera o próximo item do *iterator* chamando o seu método :meth:`~iterator." +"__next__`. Se *default* foi fornecido, ele é retornado caso o iterável tenha " +"sido percorrido por completo, caso contrário :exc:`StopIteration` é " +"levantada." #: ../../library/functions.rst:931 msgid "" -"Return a new featureless object. :class:`object` is a base for all classes." -" It has the methods that are common to all instances of Python classes. " -"This function does not accept any arguments." +"Return a new featureless object. :class:`object` is a base for all classes. " +"It has the methods that are common to all instances of Python classes. This " +"function does not accept any arguments." msgstr "" +"Retorna um novo objeto sem funcionalidades. :class:`object` é a classe base " +"para todas as classes. Ela tem os métodos que são comuns para todas as " +"instâncias de classes Python classes. Esta função não aceita nenhum " +"argumento." #: ../../library/functions.rst:937 msgid "" ":class:`object` does *not* have a :attr:`~object.__dict__`, so you can't " "assign arbitrary attributes to an instance of the :class:`object` class." msgstr "" +":class:`object` *não* tem um atributo :attr:`~object.__dict__`, então você " +"não consegue designar atributos arbitrários para uma instância da classe :" +"class:`object`." #: ../../library/functions.rst:943 msgid "" @@ -1510,27 +1716,40 @@ msgid "" "object, it has to define an :meth:`__index__` method that returns an " "integer. For example:" msgstr "" +"Converte um número inteiro para uma string em base octal, pre-fixada com \"0o" +"\". O resultado é uma expressão Python válida. Se *x* não for um objeto :" +"class:`int` Python, ele tem que definir um método :meth:`__index__` que " +"retorne um inteiro. Por exemplo:" #: ../../library/functions.rst:953 msgid "" "If you want to convert an integer number to octal string either with prefix " "\"0o\" or not, you can use either of the following ways." msgstr "" +"Se você quiser converter um número inteiro para uma string octal, com o " +"prefixo \"0o\" ou não, você pode usar qualquer uma das formas a seguir." #: ../../library/functions.rst:970 msgid "" "Open *file* and return a corresponding :term:`file object`. If the file " "cannot be opened, an :exc:`OSError` is raised." msgstr "" +"Abre *file* e retorna um :term:`file object` correspondente. Se o arquivo " +"não puder ser aberto, um an :exc:`OSError` é levantado." #: ../../library/functions.rst:973 msgid "" "*file* is a :term:`path-like object` giving the pathname (absolute or " "relative to the current working directory) of the file to be opened or an " -"integer file descriptor of the file to be wrapped. (If a file descriptor is" -" given, it is closed when the returned I/O object is closed, unless " -"*closefd* is set to ``False``.)" +"integer file descriptor of the file to be wrapped. (If a file descriptor is " +"given, it is closed when the returned I/O object is closed, unless *closefd* " +"is set to ``False``.)" msgstr "" +"*file* é um :term:`path-like object` fornecendo o caminho (absoluto ou " +"relativo ao diretório de trabalho atual) do arquivo que será aberto, ou de " +"um inteiro descritor de arquivo a ser manipulado (Se um descritor de arquivo " +"é fornecido, ele é fechado quando o objeto de I/O retornado é fechado, a não " +"ser que *closefd* esteja marcado como ``False``)." #: ../../library/functions.rst:979 msgid "" @@ -1545,6 +1764,17 @@ msgid "" "encoding. (For reading and writing raw bytes use binary mode and leave " "*encoding* unspecified.) The available modes are:" msgstr "" +"*mode* é uma string opcional que especifica o modo no qual o arquivo é " +"aberto. O valor padrão é ``'r'``, o qual significa abrir para leitura em " +"modo texto. Outros valores comuns são ``'w'`` para escrever (truncando o " +"arquivo se ele já existe), ``'x'`` para criação exclusiva e ``'a'`` para " +"anexar (o qual em *alguns* sistemas Unix, significa que *todas* as escritas " +"anexam ao final do arquivo independentemente da posição de busca atual). No " +"modo texto, se *encoding* não for especificada, a codificação usada é " +"independente de plataforma: ``locale.getpreferredencoding(False)`` é chamada " +"para obter a codificação da localidade atual (Para ler e escrever bytes " +"diretamente, use o modo binário e não especifique *encoding*). Os modos " +"disponíveis são:" #: ../../library/functions.rst:996 msgid "Character" @@ -1629,15 +1859,28 @@ msgid "" "having been first decoded using a platform-dependent encoding or using the " "specified *encoding* if given." msgstr "" +"Conforme mencionado em :ref:`io-overview`, Python diferencia entre entrada/" +"saída binária e de texto. Arquivos abertos em modo binário (incluindo " +"``'b'`` no parâmetro *mode*) retornam o conteúdo como objetos :class:`bytes` " +"sem usar nenhuma decodificação. No modo texto (o padrão, ou quando ``'t'`` é " +"incluído no parâmetro *mode*), o conteúdo do arquivo é retornado como :class:" +"`str`, sendo os bytes primeiramente decodificados usando uma codificação " +"dependente da plataforma, ou usando a codificação definida em *encoding* se " +"fornecida." #: ../../library/functions.rst:1019 msgid "" "There is an additional mode character permitted, ``'U'``, which no longer " -"has any effect, and is considered deprecated. It previously enabled " -":term:`universal newlines` in text mode, which became the default behaviour " -"in Python 3.0. Refer to the documentation of the :ref:`newline ` parameter for further details." +"has any effect, and is considered deprecated. It previously enabled :term:" +"`universal newlines` in text mode, which became the default behaviour in " +"Python 3.0. Refer to the documentation of the :ref:`newline ` parameter for further details." msgstr "" +"Existe um modo de caracter adicional permitido, ``'U'``, o qual não tem mais " +"nenhum efeito, e é considerado como descontinuado. Ele anteriormente " +"habilitava :term:`universal newlines` no modo texto, o que se tornou o " +"comportamento padrão no Python 3.0. Consulte a documentação do parâmetro :" +"ref:`newline ` para maiores detalhes." #: ../../library/functions.rst:1027 msgid "" @@ -1645,23 +1888,38 @@ msgid "" "files; all the processing is done by Python itself, and is therefore " "platform-independent." msgstr "" +"Python não depende da noção básica do sistema operacional sobre arquivos de " +"texto; todo processamento é feito pelo próprio Python, e é então " +"independente de plataforma." #: ../../library/functions.rst:1031 msgid "" -"*buffering* is an optional integer used to set the buffering policy. Pass 0" -" to switch buffering off (only allowed in binary mode), 1 to select line " +"*buffering* is an optional integer used to set the buffering policy. Pass 0 " +"to switch buffering off (only allowed in binary mode), 1 to select line " "buffering (only usable in text mode), and an integer > 1 to indicate the " -"size in bytes of a fixed-size chunk buffer. When no *buffering* argument is" -" given, the default buffering policy works as follows:" +"size in bytes of a fixed-size chunk buffer. When no *buffering* argument is " +"given, the default buffering policy works as follows:" msgstr "" +"*buffering* é um inteiro opcional usado para definir a política de " +"buffering. Passe o valor 0 para desativar o buffering (permitido somente em " +"modo binário), passe 1 para selectionar buffering de linha (permitido " +"somente em modo texto), e um inteiro > 1 para indicar o tamanho em bytes de " +"um buffer com tamanho fixo. Quando nenhum valor é fornecido no argumento " +"*buffering*, a política de buffering padrão funciona conforme as seguintes " +"regras:" #: ../../library/functions.rst:1037 msgid "" "Binary files are buffered in fixed-size chunks; the size of the buffer is " -"chosen using a heuristic trying to determine the underlying device's \"block" -" size\" and falling back on :attr:`io.DEFAULT_BUFFER_SIZE`. On many " -"systems, the buffer will typically be 4096 or 8192 bytes long." +"chosen using a heuristic trying to determine the underlying device's \"block " +"size\" and falling back on :attr:`io.DEFAULT_BUFFER_SIZE`. On many systems, " +"the buffer will typically be 4096 or 8192 bytes long." msgstr "" +"Arquivos binários são armazenados em pedaços de tamanho fixo; o tamanho do " +"buffer é escolhido usando uma heurística que tenta determinar o \"tamanho de " +"bloco\" subjancente do dispositivo, e usa :attr:`io.DEFAULT_BUFFER_SIZE` " +"caso não consiga. Em muitos sistemas, o buffer possuirá tipicamente 4096 ou " +"8192 bytes de comprimento." #: ../../library/functions.rst:1042 msgid "" @@ -1669,70 +1927,103 @@ msgid "" "returns ``True``) use line buffering. Other text files use the policy " "described above for binary files." msgstr "" +"Arquivos de texto \"interativos\" (arquivos para os quais :meth:`~io.IOBase." +"isatty` retornam ``True``) usam buffering de linha. Outros arquivos de texto " +"usam a política descrita acima para arquivos binários." #: ../../library/functions.rst:1046 msgid "" "*encoding* is the name of the encoding used to decode or encode the file. " "This should only be used in text mode. The default encoding is platform " -"dependent (whatever :func:`locale.getpreferredencoding` returns), but any " -":term:`text encoding` supported by Python can be used. See the " -":mod:`codecs` module for the list of supported encodings." +"dependent (whatever :func:`locale.getpreferredencoding` returns), but any :" +"term:`text encoding` supported by Python can be used. See the :mod:`codecs` " +"module for the list of supported encodings." msgstr "" +"*encoding* é o nome da codificação usada para codificar ou decodificar o " +"arquivo. Isto deve ser usado apenas no modo texto. A codificação padrão " +"depende da plataforma (seja qual valor :func:`locale.getpreferredencoding` " +"retornar), mas qualquer :term:`text encoding` suportada pelo Python pode ser " +"usada. Veja o módulo :mod:`codecs` para a lista de codificações suportadas." #: ../../library/functions.rst:1053 msgid "" "*errors* is an optional string that specifies how encoding and decoding " "errors are to be handled—this cannot be used in binary mode. A variety of " "standard error handlers are available (listed under :ref:`error-handlers`), " -"though any error handling name that has been registered with " -":func:`codecs.register_error` is also valid. The standard names include:" +"though any error handling name that has been registered with :func:`codecs." +"register_error` is also valid. The standard names include:" msgstr "" +"*errors* é uma string opcional que especifica como erros de codificação e de " +"decodificação devem ser tratados — isso não pode ser utilizado no modo " +"binário. Uma variedade de tratadores de erro padrão estão disponíveis " +"(listados em :ref:`error-handlers`), apesar que qualquer nome para " +"tratamento de erro registrado com :func:`codecs.register_error` também é " +"válido. Os nomes padrões incluem:" #: ../../library/functions.rst:1061 msgid "" "``'strict'`` to raise a :exc:`ValueError` exception if there is an encoding " "error. The default value of ``None`` has the same effect." msgstr "" +"``'strict'`` para levantar uma exceção :exc:`ValueError` se existir um erro " +"de codificação. O valor padrão ``None`` tem o mesmo efeito." #: ../../library/functions.rst:1065 msgid "" -"``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to" -" data loss." +"``'ignore'`` ignores errors. Note that ignoring encoding errors can lead to " +"data loss." msgstr "" +"``'ignore'`` ignora erros. Note que ignorar erros de código pode levar à " +"perda de dados." #: ../../library/functions.rst:1068 msgid "" "``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted " "where there is malformed data." msgstr "" +"``'replace'`` faz um marcador de substituição (tal como ``'?'``) ser " +"inserido onde existem dados marformados." #: ../../library/functions.rst:1071 msgid "" "``'surrogateescape'`` will represent any incorrect bytes as code points in " "the Unicode Private Use Area ranging from U+DC80 to U+DCFF. These private " "code points will then be turned back into the same bytes when the " -"``surrogateescape`` error handler is used when writing data. This is useful" -" for processing files in an unknown encoding." +"``surrogateescape`` error handler is used when writing data. This is useful " +"for processing files in an unknown encoding." msgstr "" +"``'surrogateescape'`` representará quaisquer bytes incorretos, conforme " +"códigos apontados na área privada de uso da tabela Unicode, indo desde U" +"+DC80 até U+DCFF. Esses códigos privados serão então convertidos de volta " +"para os mesmos bytes quando o tratamento de erro para ``surrogateescape`` é " +"usado ao escrever dados. Isto é útil para processar arquivos com uma " +"codificação desconhecida." #: ../../library/functions.rst:1078 msgid "" -"``'xmlcharrefreplace'`` is only supported when writing to a file. Characters" -" not supported by the encoding are replaced with the appropriate XML " +"``'xmlcharrefreplace'`` is only supported when writing to a file. Characters " +"not supported by the encoding are replaced with the appropriate XML " "character reference ``&#nnn;``." msgstr "" +"``'xmlcharrefreplace'`` é suportado apenas ao gravar em um arquivo. Os " +"caracteres não suportados pela codificação são substituídos pela referência " +"de caracteres XML apropriada ``&#nnn;``." #: ../../library/functions.rst:1082 msgid "" "``'backslashreplace'`` replaces malformed data by Python's backslashed " "escape sequences." msgstr "" +"``'backslashreplace'`` substitui dados malformados pela sequência de escape " +"utilizando contrabarra do Python." #: ../../library/functions.rst:1085 msgid "" "``'namereplace'`` (also only supported when writing) replaces unsupported " "characters with ``\\N{...}`` escape sequences." msgstr "" +"``'namereplace'`` (também é suportado somente quando estiver escrevendo) " +"substitui caractere não suportados com sequências de escape ``\\N{...}``." #: ../../library/functions.rst:1093 msgid "" @@ -1740,6 +2031,10 @@ msgid "" "applies to text mode). It can be ``None``, ``''``, ``'\\n'``, ``'\\r'``, " "and ``'\\r\\n'``. It works as follows:" msgstr "" +"*newline* controla como o modo de :term:`novas linhas universais ` funciona (se aplica apenas ao modo texto). Ele pode ser " +"``None``, ``''``, ``'\\n'``, ``'\\r'`` e ``'\\r\\n'``. Ele funciona da " +"seguinte forma:" #: ../../library/functions.rst:1097 msgid "" @@ -1751,15 +2046,28 @@ msgid "" "has any of the other legal values, input lines are only terminated by the " "given string, and the line ending is returned to the caller untranslated." msgstr "" +"Ao ler a entrada do fluxo, se *newline* for ``None``, o modo universal de " +"novas linhas será ativado. As linhas na entrada podem terminar em ``'\\n'``, " +"``'\\r'`` ou ``'\\r\\n'``, e são traduzidas para ``'\\n'`` antes de retornar " +"ao chamador. Se for ``''``, o modo de novas linhas universais será ativado, " +"mas as terminações de linha serão retornadas ao chamador sem tradução. Se " +"houver algum dos outros valores legais, as linhas de entrada são finalizadas " +"apenas pela sequência especificada e a finalização da linha é retornada ao " +"chamador sem tradução." #: ../../library/functions.rst:1105 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " -"characters written are translated to the system default line separator, " -":data:`os.linesep`. If *newline* is ``''`` or ``'\\n'``, no translation " +"characters written are translated to the system default line separator, :" +"data:`os.linesep`. If *newline* is ``''`` or ``'\\n'``, no translation " "takes place. If *newline* is any of the other legal values, any ``'\\n'`` " "characters written are translated to the given string." msgstr "" +"Ao gravar a saída no fluxo, se *newline* for ``None``, quaisquer caracteres " +"``'\\n'`` gravados serão traduzidos para o separador de linhas padrão do " +"sistema, :data:`os.linesep`. Se *newline* for ``''`` ou ``'\\n'``, nenhuma " +"tradução ocorrerá. Se *newline* for um dos outros valores legais, qualquer " +"caractere ``'\\n'`` escrito será traduzido para a sequência especificada." #: ../../library/functions.rst:1111 msgid "" @@ -1768,6 +2076,10 @@ msgid "" "closed. If a filename is given *closefd* must be ``True`` (the default) " "otherwise an error will be raised." msgstr "" +"Se *closefd* for ``False`` e um descritor de arquivo em vez de um nome de " +"arquivo for fornecido, o descritor de arquivo subjacente será mantido aberto " +"quando o arquivo for fechado. Se um nome de arquivo for fornecido *closefd* " +"deve ser ``True`` (o padrão), caso contrário, um erro será levantado." #: ../../library/functions.rst:1116 msgid "" @@ -1777,99 +2089,135 @@ msgid "" "descriptor (passing :mod:`os.open` as *opener* results in functionality " "similar to passing ``None``)." msgstr "" +"Um abridor personalizado pode ser usado passando uma chamada como *opener*. " +"O descritor de arquivo subjacente para o objeto de arquivo é obtido chamando " +"*opener* com (*file*, *flags*). *opener* deve retornar um descritor de " +"arquivo aberto (passando :mod:`os.open` como *opener* resulta em " +"funcionalidade semelhante à passagem de ``None``)." #: ../../library/functions.rst:1122 msgid "The newly created file is :ref:`non-inheritable `." -msgstr "" +msgstr "O recém criado arquivo é ref:`non-inheritable 1`." #: ../../library/functions.rst:1124 msgid "" -"The following example uses the :ref:`dir_fd ` parameter of the " -":func:`os.open` function to open a file relative to a given directory::" +"The following example uses the :ref:`dir_fd ` parameter of the :func:" +"`os.open` function to open a file relative to a given directory::" msgstr "" +"O exemplo a seguir usa o parâmetro :ref:`dir_fd ` da função :func:" +"`os.open` para abrir um arquivo relativo a um determinado diretório::" #: ../../library/functions.rst:1137 msgid "" "The type of :term:`file object` returned by the :func:`open` function " "depends on the mode. When :func:`open` is used to open a file in a text " -"mode (``'w'``, ``'r'``, ``'wt'``, ``'rt'``, etc.), it returns a subclass of " -":class:`io.TextIOBase` (specifically :class:`io.TextIOWrapper`). When used " +"mode (``'w'``, ``'r'``, ``'wt'``, ``'rt'``, etc.), it returns a subclass of :" +"class:`io.TextIOBase` (specifically :class:`io.TextIOWrapper`). When used " "to open a file in a binary mode with buffering, the returned class is a " "subclass of :class:`io.BufferedIOBase`. The exact class varies: in read " "binary mode, it returns an :class:`io.BufferedReader`; in write binary and " -"append binary modes, it returns an :class:`io.BufferedWriter`, and in " -"read/write mode, it returns an :class:`io.BufferedRandom`. When buffering " -"is disabled, the raw stream, a subclass of :class:`io.RawIOBase`, " -":class:`io.FileIO`, is returned." -msgstr "" +"append binary modes, it returns an :class:`io.BufferedWriter`, and in read/" +"write mode, it returns an :class:`io.BufferedRandom`. When buffering is " +"disabled, the raw stream, a subclass of :class:`io.RawIOBase`, :class:`io." +"FileIO`, is returned." +msgstr "" +"O tipo de :term:`objeto arquivo ` retornado pela função :func:" +"`open` depende do modo. Quando :func:`open` é usado para abrir um arquivo no " +"modo texto (``'w'``, ``'r'``, ``'wt'``, ``'rt'``, etc.), retorna uma " +"subclasse de :class:`io.TextIOBase` (especificamente :class:`io." +"TextIOWrapper`). Quando usada para abrir um arquivo em modo binário com " +"buffer, a classe retornada é uma subclasse de :class:`io.BufferedIOBase`. A " +"classe exata varia: no modo binário de leitura, ele retorna uma :class:`io." +"BufferedReader`; nos modos binário de gravação e binário anexado, ele " +"retorna um :class:`io.BufferedWriter` e, no modo leitura/gravação, retorna " +"um :class:`io.BufferedRandom`. Quando o buffer está desativado, o fluxo " +"bruto, uma subclasse de :class:`io.RawIOBase`, :class:`io.FileIO`, é " +"retornado." #: ../../library/functions.rst:1158 msgid "" "See also the file handling modules, such as, :mod:`fileinput`, :mod:`io` " -"(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, " -":mod:`tempfile`, and :mod:`shutil`." +"(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:" +"`tempfile`, and :mod:`shutil`." msgstr "" +"Veja também os módulos de para lidar com arquivos, tais como, :mod:" +"`fileinput`, :mod:`io` (onde :func:`open` é declarado), :mod:`os`, :mod:`os." +"path`, :mod:`tempfile`, e :mod:`shutil`." #: ../../library/functions.rst:1165 msgid "The *opener* parameter was added." -msgstr "" +msgstr "O parâmetro *opener* foi adicionado." #: ../../library/functions.rst:1166 msgid "The ``'x'`` mode was added." -msgstr "" +msgstr "O modo ``'x'`` foi adicionado." #: ../../library/functions.rst:1167 -msgid "" -":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." +msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" +":exc:`IOError` costumava ser levantado, agora ele é um codinome para :exc:" +"`OSError`." #: ../../library/functions.rst:1168 msgid "" ":exc:`FileExistsError` is now raised if the file opened in exclusive " "creation mode (``'x'``) already exists." msgstr "" +":exc:`FileExistsError` agora é levantado se o arquivo aberto no modo de " +"criação exclusivo (``'x'``) já existir." #: ../../library/functions.rst:1174 msgid "The file is now non-inheritable." -msgstr "" +msgstr "O arquivo agora é não herdável." #: ../../library/functions.rst:1178 msgid "The ``'U'`` mode." -msgstr "" +msgstr "O modo ``'U'``." #: ../../library/functions.rst:1183 msgid "" "If the system call is interrupted and the signal handler does not raise an " -"exception, the function now retries the system call instead of raising an " -":exc:`InterruptedError` exception (see :pep:`475` for the rationale)." +"exception, the function now retries the system call instead of raising an :" +"exc:`InterruptedError` exception (see :pep:`475` for the rationale)." msgstr "" +"Se a chamada de sistema é interrompida e o tratador de sinal não levanta uma " +"exceção, a função agora tenta novamente a chamada de sistema em vez de " +"levantar uma exceção :exc:`InterruptedError` (consulte :pep:`475` para " +"entender a lógica)." #: ../../library/functions.rst:1186 msgid "The ``'namereplace'`` error handler was added." -msgstr "" +msgstr "O manipulador de erro ``'namereplace'`` foi adicionar." #: ../../library/functions.rst:1191 msgid "Support added to accept objects implementing :class:`os.PathLike`." msgstr "" +"Suporte adicionado para aceitar objetos implementados :class:`os.PathLike`." #: ../../library/functions.rst:1192 msgid "" -"On Windows, opening a console buffer may return a subclass of " -":class:`io.RawIOBase` other than :class:`io.FileIO`." +"On Windows, opening a console buffer may return a subclass of :class:`io." +"RawIOBase` other than :class:`io.FileIO`." msgstr "" +"No Windows, a abertura de um buffer do console pode retornar uma subclasse " +"de :class:`io.RawIOBase` que não seja :class:`io.FileIO`." #: ../../library/functions.rst:1197 msgid "" "Given a string representing one Unicode character, return an integer " "representing the Unicode code point of that character. For example, " -"``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign) returns" -" ``8364``. This is the inverse of :func:`chr`." +"``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign) returns " +"``8364``. This is the inverse of :func:`chr`." msgstr "" +"Dada uma sequência que representa um caractere Unicode, retorna um número " +"inteiro representando o ponto de código Unicode desse caractere. Por " +"exemplo, ``ord('a')`` retorna o número inteiro ``97`` e ``ord('€') `` (sinal " +"do Euro) retorna ``8364``. Este é o inverso de :func:`chr`." #: ../../library/functions.rst:1205 msgid "" -"Return *x* to the power *y*; if *z* is present, return *x* to the power *y*," -" modulo *z* (computed more efficiently than ``pow(x, y) % z``). The two-" +"Return *x* to the power *y*; if *z* is present, return *x* to the power *y*, " +"modulo *z* (computed more efficiently than ``pow(x, y) % z``). The two-" "argument form ``pow(x, y)`` is equivalent to using the power operator: " "``x**y``." msgstr "" @@ -1881,8 +2229,8 @@ msgid "" "operands, the result has the same type as the operands (after coercion) " "unless the second argument is negative; in that case, all arguments are " "converted to float and a float result is delivered. For example, ``10**2`` " -"returns ``100``, but ``10**-2`` returns ``0.01``. If the second argument is" -" negative, the third argument must be omitted. If *z* is present, *x* and " +"returns ``100``, but ``10**-2`` returns ``0.01``. If the second argument is " +"negative, the third argument must be omitted. If *z* is present, *x* and " "*y* must be of integer types, and *y* must be non-negative." msgstr "" @@ -1892,37 +2240,53 @@ msgid "" "by *end*. *sep*, *end*, *file* and *flush*, if present, must be given as " "keyword arguments." msgstr "" +"Imprime *objects* no fluxo de texto *arquivo*, separado por *sep* e seguido " +"por *end*. *sep*, *end*, *file* e *flush*, se houver, devem ser fornecidos " +"como argumentos nomeados." #: ../../library/functions.rst:1225 msgid "" -"All non-keyword arguments are converted to strings like :func:`str` does and" -" written to the stream, separated by *sep* and followed by *end*. Both " -"*sep* and *end* must be strings; they can also be ``None``, which means to " -"use the default values. If no *objects* are given, :func:`print` will just " -"write *end*." +"All non-keyword arguments are converted to strings like :func:`str` does and " +"written to the stream, separated by *sep* and followed by *end*. Both *sep* " +"and *end* must be strings; they can also be ``None``, which means to use the " +"default values. If no *objects* are given, :func:`print` will just write " +"*end*." msgstr "" +"Todos os argumentos que não são nomeados são convertidos em strings como :" +"func:`str` faz e gravados no fluxo, separados por *sep* e seguidos por " +"*end*. *sep* e *end* devem ser strings; eles também podem ser ``None``, o " +"que significa usar os valores padrão. Se nenhum *object* for fornecido, :" +"func:`print` escreverá apenas *end*." #: ../../library/functions.rst:1231 msgid "" -"The *file* argument must be an object with a ``write(string)`` method; if it" -" is not present or ``None``, :data:`sys.stdout` will be used. Since printed" -" arguments are converted to text strings, :func:`print` cannot be used with " +"The *file* argument must be an object with a ``write(string)`` method; if it " +"is not present or ``None``, :data:`sys.stdout` will be used. Since printed " +"arguments are converted to text strings, :func:`print` cannot be used with " "binary mode file objects. For these, use ``file.write(...)`` instead." msgstr "" +"O argumento *file* deve ser um objeto com um método ``write(string)``; se " +"ele não estiver presente ou ``None``, então :data:`sys.stdout` será usado. " +"Como argumentos exibidos no console são convertidos para strings de texto, :" +"func:`print` não pode ser usado com objetos de arquivo em modo binário. Para " +"esses casos, use ``file.write(...)`` ao invés." #: ../../library/functions.rst:1236 msgid "" "Whether output is buffered is usually determined by *file*, but if the " "*flush* keyword argument is true, the stream is forcibly flushed." msgstr "" +"Se a saída é armazenada em um buffer é usualmente determinado por *file*, " +"mas se o argumento nomeado *flush* é verdadeiro, o fluxo de saída é " +"forçosamente descarregado." #: ../../library/functions.rst:1239 msgid "Added the *flush* keyword argument." -msgstr "" +msgstr "Adicionado o argumento nomeado *flush*." #: ../../library/functions.rst:1245 msgid "Return a property attribute." -msgstr "" +msgstr "Retorna um atributo de propriedade." #: ../../library/functions.rst:1247 msgid "" @@ -1930,31 +2294,43 @@ msgid "" "for setting an attribute value. *fdel* is a function for deleting an " "attribute value. And *doc* creates a docstring for the attribute." msgstr "" +"*fget* é uma função para obter o valor de um atributo. *fset* é uma função " +"para definir um valor para um atributo. *fdel* é uma função para deletar um " +"valor de um atributo. E *doc* cria um docstring para um atributo." #: ../../library/functions.rst:1251 msgid "A typical use is to define a managed attribute ``x``::" -msgstr "" +msgstr "Um uso comum é para definir um atributo gerenciável ``x``::" #: ../../library/functions.rst:1268 msgid "" "If *c* is an instance of *C*, ``c.x`` will invoke the getter, ``c.x = " "value`` will invoke the setter and ``del c.x`` the deleter." msgstr "" +"Se *c* é uma instância de *C*, ``c.x`` irá invocar o método getter, ``c.x = " +"value`` irá invocar o método setter, e ``del c.x`` o médodo deleter." #: ../../library/functions.rst:1271 msgid "" "If given, *doc* will be the docstring of the property attribute. Otherwise, " "the property will copy *fget*'s docstring (if it exists). This makes it " -"possible to create read-only properties easily using :func:`property` as a " -":term:`decorator`::" +"possible to create read-only properties easily using :func:`property` as a :" +"term:`decorator`::" msgstr "" +"Se fornecido, *doc* será a docstring do atributo property attribute. " +"Otherwise, the property will copy *fget*'s docstring (if it exists). This " +"makes it possible to create read-only properties easily using :func:" +"`property` as a :term:`decorator`::" #: ../../library/functions.rst:1284 msgid "" -"The ``@property`` decorator turns the :meth:`voltage` method into a " -"\"getter\" for a read-only attribute with the same name, and it sets the " -"docstring for *voltage* to \"Get the current voltage.\"" +"The ``@property`` decorator turns the :meth:`voltage` method into a \"getter" +"\" for a read-only attribute with the same name, and it sets the docstring " +"for *voltage* to \"Get the current voltage.\"" msgstr "" +"O decorador ``@property`` transforma o método :meth:`voltage` em um \"getter" +"\" para um atributo somente leitura com o mesmo nome, e define a docstring " +"de *voltage* para \"Get the current voltage.\"" #: ../../library/functions.rst:1288 msgid "" @@ -1963,6 +2339,10 @@ msgid "" "copy of the property with the corresponding accessor function set to the " "decorated function. This is best explained with an example::" msgstr "" +"Um objeto property possui métodos :attr:`~property.getter`, :attr:`~property." +"setter`, e :attr:`~property.deleter` usáveis como decoradores, que criam uma " +"cópia da property com o assessor correspondente a função definida para a " +"função com decorador. Isso é explicado melhor com um exemplo::" #: ../../library/functions.rst:1310 msgid "" @@ -1970,22 +2350,29 @@ msgid "" "additional functions the same name as the original property (``x`` in this " "case.)" msgstr "" +"Esse código é exatamente equivalente ao primeiro exemplo. Tenha certeza de " +"nas funções adicionais usar o mesmo nome que a property original (``x`` " +"neste caso)." #: ../../library/functions.rst:1314 msgid "" -"The returned property object also has the attributes ``fget``, ``fset``, and" -" ``fdel`` corresponding to the constructor arguments." +"The returned property object also has the attributes ``fget``, ``fset``, and " +"``fdel`` corresponding to the constructor arguments." msgstr "" +"O objeto property retornado também tem os atributos ``fget``, ``fset``, e " +"``fdel`` correspondendo aos argumentos do construtor." #: ../../library/functions.rst:1317 msgid "The docstrings of property objects are now writeable." -msgstr "" +msgstr "Agora é possível escrever nas docstrings de objetos property." #: ../../library/functions.rst:1326 msgid "" "Rather than being a function, :class:`range` is actually an immutable " "sequence type, as documented in :ref:`typesseq-range` and :ref:`typesseq`." msgstr "" +"Em vez de ser uma função, :class:`range` é realmente um tipo de sequência " +"imutável, conforme documentado em :ref:`typesseq-range` e :ref:`typesseq`." #: ../../library/functions.rst:1332 msgid "" @@ -1994,17 +2381,28 @@ msgid "" "yield an object with the same value when passed to :func:`eval`, otherwise " "the representation is a string enclosed in angle brackets that contains the " "name of the type of the object together with additional information often " -"including the name and address of the object. A class can control what this" -" function returns for its instances by defining a :meth:`__repr__` method." +"including the name and address of the object. A class can control what this " +"function returns for its instances by defining a :meth:`__repr__` method." msgstr "" +"Retorna uma string contendo uma representação imprimível de um objeto. Para " +"muitos tipos, essa função tenta retornar uma string que produziria um objeto " +"com o mesmo valor quando passado para :func:`eval`, caso contrário, a " +"representação é uma string entre colchetes angulares que contém o nome do " +"tipo do objeto juntamente com informações adicionais, geralmente incluindo o " +"nome e o endereço do objeto. Uma classe pode controlar o que essa função " +"retorna para suas instâncias, definindo um método :meth:`__repr__`." #: ../../library/functions.rst:1343 msgid "" -"Return a reverse :term:`iterator`. *seq* must be an object which has a " -":meth:`__reversed__` method or supports the sequence protocol (the " -":meth:`__len__` method and the :meth:`__getitem__` method with integer " -"arguments starting at ``0``)." +"Return a reverse :term:`iterator`. *seq* must be an object which has a :" +"meth:`__reversed__` method or supports the sequence protocol (the :meth:" +"`__len__` method and the :meth:`__getitem__` method with integer arguments " +"starting at ``0``)." msgstr "" +"Retorna um :term:`iterador ` reverso. *seq* deve ser um objeto que " +"possui o método :meth:`__reversed__` ou suporta o protocolo de sequência (o " +"método :meth:`__len__` e o método :meth:`__len__` e o método :meth:" +"`__getitem__` com argumentos inteiros começando em ``0``)." #: ../../library/functions.rst:1351 msgid "" @@ -2012,6 +2410,9 @@ msgid "" "*ndigits* is omitted or is ``None``, it returns the nearest integer to its " "input." msgstr "" +"Retorna *number* arredondado para *ndigits* precisão após o ponto decimal. " +"Se *ndigits* for omitido ou for ``None``, ele retornará o número inteiro " +"mais próximo de sua entrada." #: ../../library/functions.rst:1355 msgid "" @@ -2023,21 +2424,36 @@ msgid "" "negative). The return value is an integer if *ndigits* is omitted or " "``None``. Otherwise the return value has the same type as *number*." msgstr "" +"Para os tipos embutidos com suporte a :func:`round`, os valores são " +"arredondados para o múltiplo mais próximo de 10 para a potência de menos " +"*ndigit*; se dois múltiplos são igualmente próximos, o arredondamento é " +"feito para a opção par (por exemplo, ``round(0,5)`` e ``round(-0,5)`` são " +"``0`` e ``round(1.5)`` é ``2``). Qualquer valor inteiro é válido para " +"*ndigits* (positivo, zero ou negativo). O valor de retorno é um número " +"inteiro se *ndigits* for omitido ou ``None``. Caso contrário, o valor de " +"retorno tem o mesmo tipo que *number*." #: ../../library/functions.rst:1364 msgid "" -"For a general Python object ``number``, ``round`` delegates to " -"``number.__round__``." +"For a general Python object ``number``, ``round`` delegates to ``number." +"__round__``." msgstr "" +"Para um objeto Python geral ``number``, ``round`` delega para ``number." +"__round__``." #: ../../library/functions.rst:1369 msgid "" "The behavior of :func:`round` for floats can be surprising: for example, " -"``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is" -" not a bug: it's a result of the fact that most decimal fractions can't be " +"``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is " +"not a bug: it's a result of the fact that most decimal fractions can't be " "represented exactly as a float. See :ref:`tut-fp-issues` for more " "information." msgstr "" +"O comportamento de :func:`round` para pontos flutuantes pode ser " +"surpreendente: por exemplo, ``round(2.675, 2)`` fornece ``2.67`` em vez do " +"esperado ``2.68``. Isso não é um bug: é resultado do fato de que a maioria " +"das frações decimais não pode ser representada exatamente como um ponto " +"flutuante. Veja :ref:`tut-fp-issues` para mais informações." #: ../../library/functions.rst:1380 msgid "" @@ -2045,53 +2461,78 @@ msgid "" "*iterable*. ``set`` is a built-in class. See :class:`set` and :ref:`types-" "set` for documentation about this class." msgstr "" +"Retorna um novo objeto :class:`set`, opcionalmente com elementos retirados " +"de *iterable*. ``set`` é uma classe embutida. Veja :class:`set` e :ref:" +"`types-set` para documentação sobre esta classe." #: ../../library/functions.rst:1384 msgid "" -"For other containers see the built-in :class:`frozenset`, :class:`list`, " -":class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections`" -" module." +"For other containers see the built-in :class:`frozenset`, :class:`list`, :" +"class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections` " +"module." msgstr "" +"Para outros contêineres, consulte as classes embutidas :class:`frozenset`, :" +"class:`list`, :class:`tuple` e :class:`dict`, bem como o módulo :mod:" +"`collections`." #: ../../library/functions.rst:1391 msgid "" "This is the counterpart of :func:`getattr`. The arguments are an object, a " -"string and an arbitrary value. The string may name an existing attribute or" -" a new attribute. The function assigns the value to the attribute, provided" -" the object allows it. For example, ``setattr(x, 'foobar', 123)`` is " +"string and an arbitrary value. The string may name an existing attribute or " +"a new attribute. The function assigns the value to the attribute, provided " +"the object allows it. For example, ``setattr(x, 'foobar', 123)`` is " "equivalent to ``x.foobar = 123``." msgstr "" +"Esta é a contrapartida de :func:`getattr`. Os argumentos são um objeto, uma " +"string e um valor arbitrário. A string pode nomear um atributo existente ou " +"um novo atributo. A função atribui o valor ao atributo, desde que o objeto " +"permita. Por exemplo, ``setattr(x, 'foobar', 123)`` é equivalente a ``x." +"foobar = 123``." #: ../../library/functions.rst:1403 msgid "" "Return a :term:`slice` object representing the set of indices specified by " "``range(start, stop, step)``. The *start* and *step* arguments default to " -"``None``. Slice objects have read-only data attributes " -":attr:`~slice.start`, :attr:`~slice.stop` and :attr:`~slice.step` which " -"merely return the argument values (or their default). They have no other " -"explicit functionality; however they are used by Numerical Python and other " -"third party extensions. Slice objects are also generated when extended " -"indexing syntax is used. For example: ``a[start:stop:step]`` or " -"``a[start:stop, i]``. See :func:`itertools.islice` for an alternate version" -" that returns an iterator." -msgstr "" +"``None``. Slice objects have read-only data attributes :attr:`~slice." +"start`, :attr:`~slice.stop` and :attr:`~slice.step` which merely return the " +"argument values (or their default). They have no other explicit " +"functionality; however they are used by Numerical Python and other third " +"party extensions. Slice objects are also generated when extended indexing " +"syntax is used. For example: ``a[start:stop:step]`` or ``a[start:stop, " +"i]``. See :func:`itertools.islice` for an alternate version that returns an " +"iterator." +msgstr "" +"Retorna um objeto :term:`slice` representando o conjunto de índices " +"especificado por ``range(start, stop, step)``. Os argumentos *start* e " +"*step* são padronizados como ``None``. Os objetos de têm atributos de dados " +"somente leitura :attr:`~slice.start`, :attr:`~slice.stop` e :attr:`~slice." +"step`, que meramente retornam os valores do argumento (ou o padrão). Eles " +"não têm outra funcionalidade explícita; no entanto, eles são usados pelo " +"Python numérico e outras extensões de terceiros. Os objetos slice também são " +"gerados quando a sintaxe de indexação estendida é usada. Por exemplo: " +"``a[start:stop:step]`` ou ``a[start:stop, i]``. Veja :func:`itertools." +"islice` para uma versão alternativa que retorna um iterador." #: ../../library/functions.rst:1416 msgid "Return a new sorted list from the items in *iterable*." -msgstr "" +msgstr "Retorna uma nova lista classificada dos itens em *iterable*." #: ../../library/functions.rst:1418 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "" +"Possui dois argumentos opcionais que devem ser especificados como argumentos " +"nomeados." #: ../../library/functions.rst:1420 msgid "" "*key* specifies a function of one argument that is used to extract a " -"comparison key from each element in *iterable* (for example, " -"``key=str.lower``). The default value is ``None`` (compare the elements " -"directly)." +"comparison key from each element in *iterable* (for example, ``key=str." +"lower``). The default value is ``None`` (compare the elements directly)." msgstr "" +"*key* especifica a função de um argumento usado para extrair uma chave de " +"comparação de cada elemento em *iterable* (por exemplo, ``key=str.lower``). " +"O valor padrão é ``None`` (compara os elementos diretamente)." #: ../../library/functions.rst:1424 msgid "" @@ -2103,9 +2544,11 @@ msgstr "" #: ../../library/functions.rst:1427 msgid "" -"Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a" -" *key* function." +"Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a " +"*key* function." msgstr "" +"Usa :func:`functools.cmp_to_key` para converter a função das antigas *cmp* " +"para uma função *key*." #: ../../library/functions.rst:1430 msgid "" @@ -2114,6 +2557,10 @@ msgid "" "compare equal --- this is helpful for sorting in multiple passes (for " "example, sort by department, then by salary grade)." msgstr "" +"A função embutida :func:`sorted` é garantida como estável. Uma ordem é " +"estável se garantir não alterar a ordem relativa dos elementos que se " +"comparam da mesma forma --- isso é útil para ordenar em várias passagens " +"(por exemplo, ordenar por departamento e depois por nível de salário)." #: ../../library/functions.rst:1435 msgid "" @@ -2124,34 +2571,40 @@ msgstr "" #: ../../library/functions.rst:1439 msgid "Transform a method into a static method." -msgstr "" +msgstr "Transforma um método em método estático." #: ../../library/functions.rst:1441 msgid "" "A static method does not receive an implicit first argument. To declare a " "static method, use this idiom::" msgstr "" +"Um método estático não recebe um primeiro argumento implícito. Para declarar " +"um método estático, use este idioma::" #: ../../library/functions.rst:1448 msgid "" -"The ``@staticmethod`` form is a function :term:`decorator` -- see " -":ref:`function` for details." +"The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:" +"`function` for details." msgstr "" +"A forma ``@staticmethod`` é uma função de :term:`decorator` -- veja :ref:" +"`function` para detalhes." #: ../../library/functions.rst:1451 msgid "" "A static method can be called either on the class (such as ``C.f()``) or on " "an instance (such as ``C().f()``)." msgstr "" +"Um método estático pode ser chamado na classe (tal como ``C.f()``) ou em uma " +"instância (tal como ``C().f()``)." #: ../../library/functions.rst:1454 msgid "" -"Static methods in Python are similar to those found in Java or C++. Also see" -" :func:`classmethod` for a variant that is useful for creating alternate " +"Static methods in Python are similar to those found in Java or C++. Also " +"see :func:`classmethod` for a variant that is useful for creating alternate " "class constructors." msgstr "" -"Métodos estáticos em Python são similares àqueles encontrados em Java ou " -"C++. Veja também :func:`classmethod` para uma variante útil na criação de " +"Métodos estáticos em Python são similares àqueles encontrados em Java ou C+" +"+. Veja também :func:`classmethod` para uma variante útil na criação de " "construtores de classe alternativos." #: ../../library/functions.rst:1458 @@ -2162,21 +2615,30 @@ msgid "" "want to avoid the automatic transformation to instance method. For these " "cases, use this idiom::" msgstr "" +"Como todos os decoradores, também é possível chamar ``staticmethod`` como " +"uma função regular e fazer algo com seu resultado. Isso é necessário em " +"alguns casos em que você precisa de uma referência para uma função de um " +"corpo de classe e deseja evitar a transformação automática em método de " +"instância. Para esses casos, use este idioma::" #: ../../library/functions.rst:1467 msgid "For more information on static methods, see :ref:`types`." -msgstr "" +msgstr "Para mais informações sobre métodos estáticos, consulte :ref:`types`." #: ../../library/functions.rst:1478 msgid "" "Return a :class:`str` version of *object*. See :func:`str` for details." msgstr "" +"Retorna uma versão :class:`str` de *object*. Consulte :func:`str` para " +"detalhes." #: ../../library/functions.rst:1480 msgid "" -"``str`` is the built-in string :term:`class`. For general information about" -" strings, see :ref:`textseq`." +"``str`` is the built-in string :term:`class`. For general information about " +"strings, see :ref:`textseq`." msgstr "" +"``str`` é uma string embutida :term:`class`. Para informações gerais sobre " +"strins, consulte :ref:`textseq`." #: ../../library/functions.rst:1486 msgid "" @@ -2188,35 +2650,44 @@ msgstr "" #: ../../library/functions.rst:1490 msgid "" "For some use cases, there are good alternatives to :func:`sum`. The " -"preferred, fast way to concatenate a sequence of strings is by calling " -"``''.join(sequence)``. To add floating point values with extended " -"precision, see :func:`math.fsum`\\. To concatenate a series of iterables, " -"consider using :func:`itertools.chain`." +"preferred, fast way to concatenate a sequence of strings is by calling ``''." +"join(sequence)``. To add floating point values with extended precision, " +"see :func:`math.fsum`\\. To concatenate a series of iterables, consider " +"using :func:`itertools.chain`." msgstr "" +"Para alguns casos de uso, existem boas alternativas para :func:`sum`. A " +"maneira rápida e preferida de concatenar uma sequência de strings é chamando " +"``''.join(sequence)``. Para adicionar valores de ponto flutuante com " +"precisão estendida, consulte :func:`math.fsum`. Para concatenar uma série de " +"iteráveis, considere usar :func:`itertools.chain`." #: ../../library/functions.rst:1498 msgid "" "Return a proxy object that delegates method calls to a parent or sibling " "class of *type*. This is useful for accessing inherited methods that have " -"been overridden in a class. The search order is same as that used by " -":func:`getattr` except that the *type* itself is skipped." +"been overridden in a class. The search order is same as that used by :func:" +"`getattr` except that the *type* itself is skipped." msgstr "" #: ../../library/functions.rst:1503 msgid "" "The :attr:`~class.__mro__` attribute of the *type* lists the method " -"resolution search order used by both :func:`getattr` and :func:`super`. The" -" attribute is dynamic and can change whenever the inheritance hierarchy is " +"resolution search order used by both :func:`getattr` and :func:`super`. The " +"attribute is dynamic and can change whenever the inheritance hierarchy is " "updated." msgstr "" #: ../../library/functions.rst:1508 msgid "" -"If the second argument is omitted, the super object returned is unbound. If" -" the second argument is an object, ``isinstance(obj, type)`` must be true. " +"If the second argument is omitted, the super object returned is unbound. If " +"the second argument is an object, ``isinstance(obj, type)`` must be true. " "If the second argument is a type, ``issubclass(type2, type)`` must be true " "(this is useful for classmethods)." msgstr "" +"Se o segundo argumento for omitido, o objeto super retornado é desacoplado. " +"Se o segundo argumento é um objeto, ``isinstance(obj, type)`` deve ser " +"verdadeiro. Se o segundo argumento é um tipo, ``issubclass(type2, type)`` " +"deve ser verdadeiro (isto é útil para classmethods)." #: ../../library/functions.rst:1513 msgid "" @@ -2225,29 +2696,44 @@ msgid "" "naming them explicitly, thus making the code more maintainable. This use " "closely parallels the use of *super* in other programming languages." msgstr "" +"Existem dois casos de uso típicos para *super*. Em uma hierarquia de classes " +"com herança única, *super* pode ser usado para se referir a classes-pai sem " +"nomeá-las explicitamente, tornando o código mais sustentável. Esse uso é " +"paralelo ao uso de *super* em outras linguagens de programação." #: ../../library/functions.rst:1518 msgid "" "The second use case is to support cooperative multiple inheritance in a " -"dynamic execution environment. This use case is unique to Python and is not" -" found in statically compiled languages or languages that only support " -"single inheritance. This makes it possible to implement \"diamond " -"diagrams\" where multiple base classes implement the same method. Good " -"design dictates that this method have the same calling signature in every " -"case (because the order of calls is determined at runtime, because that " -"order adapts to changes in the class hierarchy, and because that order can " -"include sibling classes that are unknown prior to runtime)." -msgstr "" +"dynamic execution environment. This use case is unique to Python and is not " +"found in statically compiled languages or languages that only support single " +"inheritance. This makes it possible to implement \"diamond diagrams\" where " +"multiple base classes implement the same method. Good design dictates that " +"this method have the same calling signature in every case (because the order " +"of calls is determined at runtime, because that order adapts to changes in " +"the class hierarchy, and because that order can include sibling classes that " +"are unknown prior to runtime)." +msgstr "" +"O segundo caso de uso é oferecer suporte à herança múltipla cooperativa em " +"um ambiente de execução dinâmica. Esse caso de uso é exclusivo do Python e " +"não é encontrado em idiomas ou linguagens compiladas estaticamente que " +"suportam apenas herança única. Isso torna possível implementar \"diagramas " +"em losango\", onde várias classes base implementam o mesmo método. Um bom " +"design determina que esse método tenha a mesma assinatura de chamada em " +"todos os casos (porque a ordem das chamadas é determinada em tempo de " +"execução, porque essa ordem se adapta às alterações na hierarquia de classes " +"e porque essa ordem pode incluir classes de irmãos desconhecidas antes do " +"tempo de execução)." #: ../../library/functions.rst:1528 msgid "For both use cases, a typical superclass call looks like this::" msgstr "" +"Nos dois casos de uso, uma chamada típica de superclasse se parece com isso::" #: ../../library/functions.rst:1535 msgid "" "In addition to method lookups, :func:`super` also works for attribute " -"lookups. One possible use case for this is calling :term:`descriptor`\\s in" -" a parent or sibling class." +"lookups. One possible use case for this is calling :term:`descriptor`\\s in " +"a parent or sibling class." msgstr "" #: ../../library/functions.rst:1539 @@ -2259,6 +2745,13 @@ msgid "" "inheritance. Accordingly, :func:`super` is undefined for implicit lookups " "using statements or operators such as ``super()[name]``." msgstr "" +"Observe que :func:`super` é implementada como parte do processo de " +"vinculação para procura explícita de atributos com ponto, tal como ``super()." +"__getitem__(nome)``. Ela faz isso implementando seu próprio método :meth:" +"`__getattribute__` para pesquisar classes em uma ordem predizível que possui " +"suporte a herança múltipla cooperativa. Logo, :func:`super` não é definida " +"para procuras implícitas usando instruções ou operadores como ``super()" +"[name]``." #: ../../library/functions.rst:1546 msgid "" @@ -2269,69 +2762,102 @@ msgid "" "necessary details to correctly retrieve the class being defined, as well as " "accessing the current instance for ordinary methods." msgstr "" +"Observe também que, além da forma de argumento zero, :func:`super` não se " +"limita ao uso de métodos internos. O formulário de dois argumentos " +"especifica exatamente os argumentos e faz as referências apropriadas. O " +"formulário de argumento zero funciona apenas dentro de uma definição de " +"classe, pois o compilador preenche os detalhes necessários para recuperar " +"corretamente a classe que está sendo definida, além de acessar a instância " +"atual para métodos comuns." #: ../../library/functions.rst:1553 msgid "" -"For practical suggestions on how to design cooperative classes using " -":func:`super`, see `guide to using super() " -"`_." +"For practical suggestions on how to design cooperative classes using :func:" +"`super`, see `guide to using super() `_." msgstr "" +"Para sugestões práticas sobre como projetar classes cooperativas usando :" +"func:`super`, consulte o `guia para uso de super() `_." #: ../../library/functions.rst:1562 msgid "" "Rather than being a function, :class:`tuple` is actually an immutable " "sequence type, as documented in :ref:`typesseq-tuple` and :ref:`typesseq`." msgstr "" +"Ao invés de ser uma função, :class:`tuple` é na verdade um tipo de sequência " +"imutável, conforme documentado em :ref:`typesseq-tuple` e :ref:`typesseq`." #: ../../library/functions.rst:1571 msgid "" "With one argument, return the type of an *object*. The return value is a " -"type object and generally the same object as returned by " -":attr:`object.__class__ `." +"type object and generally the same object as returned by :attr:`object." +"__class__ `." msgstr "" +"Com um argumento, retorna o tipo de um *object*. O valor de retorno é um " +"tipo de objeto e geralmente o mesmo objeto retornado por :attr:`object." +"__class__ `." #: ../../library/functions.rst:1575 msgid "" -"The :func:`isinstance` built-in function is recommended for testing the type" -" of an object, because it takes subclasses into account." +"The :func:`isinstance` built-in function is recommended for testing the type " +"of an object, because it takes subclasses into account." msgstr "" +"A função embutida :func:`isinstance` é recomendada para testar o tipo de um " +"objeto, porque ela leva sub-classes em consideração." #: ../../library/functions.rst:1579 msgid "" "With three arguments, return a new type object. This is essentially a " "dynamic form of the :keyword:`class` statement. The *name* string is the " "class name and becomes the :attr:`~definition.__name__` attribute; the " -"*bases* tuple itemizes the base classes and becomes the " -":attr:`~class.__bases__` attribute; and the *dict* dictionary is the " -"namespace containing definitions for class body and is copied to a standard " -"dictionary to become the :attr:`~object.__dict__` attribute. For example, " -"the following two statements create identical :class:`type` objects:" -msgstr "" +"*bases* tuple itemizes the base classes and becomes the :attr:`~class." +"__bases__` attribute; and the *dict* dictionary is the namespace containing " +"definitions for class body and is copied to a standard dictionary to become " +"the :attr:`~object.__dict__` attribute. For example, the following two " +"statements create identical :class:`type` objects:" +msgstr "" +"Com três argumentos, retorna um novo objeto type. Esta é essencialmente a " +"forma dinâmica da instrução :keyword:`class`. A string *name* é o nome da " +"classe e se torna o atributo :attr:`~definition.__name__`; a tupla *bases* " +"transforma em itens as classes bases e se torna o atributo :attr:`~class." +"__bases__`; e o dicionário *dict* é o namespace contendo as definições para " +"a classe principal, e é copiada para um dicionário padrão para se tornar o " +"atributo :attr:`~object.__dict__`. Por exemplo, as seguintes duas instruções " +"criam objetos :class:`type` objects: idênticos" #: ../../library/functions.rst:1593 msgid "See also :ref:`bltin-type-objects`." -msgstr "" +msgstr "Veja também :ref:`bltin-type-objects`." #: ../../library/functions.rst:1595 msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." msgstr "" +"Sub-classes de :class:`type` que não fazem sobrecarga de ``type.__new__`` " +"não podem mais usar a forma com apenas um argumento para obter o tipo de um " +"objeto." #: ../../library/functions.rst:1601 msgid "" -"Return the :attr:`~object.__dict__` attribute for a module, class, instance," -" or any other object with a :attr:`~object.__dict__` attribute." +"Return the :attr:`~object.__dict__` attribute for a module, class, instance, " +"or any other object with a :attr:`~object.__dict__` attribute." msgstr "" +"Retorna o atributo :attr:`~object.__dict__` para um módulo, classe, " +"instância, or qualquer outro objeto com um atributo :attr:`~object.__dict__`." #: ../../library/functions.rst:1604 msgid "" -"Objects such as modules and instances have an updateable " -":attr:`~object.__dict__` attribute; however, other objects may have write " -"restrictions on their :attr:`~object.__dict__` attributes (for example, " -"classes use a :class:`types.MappingProxyType` to prevent direct dictionary " -"updates)." +"Objects such as modules and instances have an updateable :attr:`~object." +"__dict__` attribute; however, other objects may have write restrictions on " +"their :attr:`~object.__dict__` attributes (for example, classes use a :class:" +"`types.MappingProxyType` to prevent direct dictionary updates)." msgstr "" +"Objetos como modelos e instâncias têm um atributo atualizável :attr:`~object." +"__dict__`; porém, outros projetos podem ter restrições de escrita em seus " +"atributos :attr:`~object.__dict__` (por exemplo, classes usam um :class:" +"`types.MappingProxyType` para prevenir atualizações diretas a dicionário)." #: ../../library/functions.rst:1609 msgid "" @@ -2339,19 +2865,27 @@ msgid "" "locals dictionary is only useful for reads since updates to the locals " "dictionary are ignored." msgstr "" +"Sem um argumento, :func:`vars` funciona como :func:`locals`. Perceba que, o " +"dicionário locals é apenas útil para leitura, pelo fato de alterações no " +"dicionário locals serem ignoradas." #: ../../library/functions.rst:1616 msgid "Make an iterator that aggregates elements from each of the iterables." -msgstr "" +msgstr "Produzi um iterador que agrega elementos de cada um dos iteráveis." #: ../../library/functions.rst:1618 msgid "" "Returns an iterator of tuples, where the *i*-th tuple contains the *i*-th " "element from each of the argument sequences or iterables. The iterator " "stops when the shortest input iterable is exhausted. With a single iterable " -"argument, it returns an iterator of 1-tuples. With no arguments, it returns" -" an empty iterator. Equivalent to::" +"argument, it returns an iterator of 1-tuples. With no arguments, it returns " +"an empty iterator. Equivalent to::" msgstr "" +"Retorna um iterador de tuplas, onde a *i*ª tupla contém o *i*º elemento de " +"cada uma das sequências de argumentos ou iteráveis. O iterador é parado " +"quando a menor entrada iterável é esgotada. Com um único argumento iterável, " +"ele retorna um iterador de 1 tupla. Sem argumentos, ele retorna um iterador " +"vazio. Equivalente a::" #: ../../library/functions.rst:1637 msgid "" @@ -2361,6 +2895,12 @@ msgid "" "so that each output tuple has the result of ``n`` calls to the iterator. " "This has the effect of dividing the input into n-length chunks." msgstr "" +"A ordem de avaliação da esquerda para a direita dos iteráveis é garantida. " +"Isso possibilita um idioma para agrupar uma série de dados em grupos de " +"comprimento n usando ``zip(*[iter(s)]*n)``. Isso repete o *mesmo* iterador " +"``n` vezes, para que cada tupla de saída tenha o resultado de ``n`` chamadas " +"ao iterador. Isso tem o efeito de dividir a entrada em pedaços de " +"comprimento n." #: ../../library/functions.rst:1643 msgid "" @@ -2368,40 +2908,63 @@ msgid "" "care about trailing, unmatched values from the longer iterables. If those " "values are important, use :func:`itertools.zip_longest` instead." msgstr "" +":func:`zip` deve ser usado apenas com entradas de comprimento diferente " +"quando você não se importa com valores inigualáveis à direita de iteráveis " +"mais longos. Se esses valores forem importantes, use :func:`itertools." +"zip_longest`." #: ../../library/functions.rst:1647 msgid "" ":func:`zip` in conjunction with the ``*`` operator can be used to unzip a " "list::" msgstr "" +":func:`zip` em conjunto com o operador ``*`` pode ser usado para " +"descompactar uma lista::" #: ../../library/functions.rst:1668 msgid "" "This is an advanced function that is not needed in everyday Python " "programming, unlike :func:`importlib.import_module`." msgstr "" +"Esta é uma função avançada que não é necessária na programação diária do " +"Python, ao contrário de :func:`importlib.import_module`." #: ../../library/functions.rst:1671 msgid "" "This function is invoked by the :keyword:`import` statement. It can be " "replaced (by importing the :mod:`builtins` module and assigning to " -"``builtins.__import__``) in order to change semantics of the " -":keyword:`!import` statement, but doing so is **strongly** discouraged as it" -" is usually simpler to use import hooks (see :pep:`302`) to attain the same " -"goals and does not cause issues with code which assumes the default import " +"``builtins.__import__``) in order to change semantics of the :keyword:`!" +"import` statement, but doing so is **strongly** discouraged as it is usually " +"simpler to use import hooks (see :pep:`302`) to attain the same goals and " +"does not cause issues with code which assumes the default import " "implementation is in use. Direct use of :func:`__import__` is also " "discouraged in favor of :func:`importlib.import_module`." msgstr "" +"Esta função é chamada pela instrução :keyword:`import`. Ela pode ser " +"substituída (importando o módulo :mod:`builtins` e atribuindo a ``builtins." +"__import__``) para alterar a semântica da instrução :keyword:`!import`, mas " +"isso é **fortemente* * desencorajado, pois geralmente é mais simples usar " +"ganchos de importação (consulte: pep: `302`) para atingir os mesmos " +"objetivos e não causa problemas com o código que pressupõe que a " +"implementação de importação padrão esteja em uso. O uso direto de :func:" +"`__import__` também é desencorajado em favor de :func:`importlib." +"import_module`." #: ../../library/functions.rst:1680 msgid "" "The function imports the module *name*, potentially using the given " "*globals* and *locals* to determine how to interpret the name in a package " -"context. The *fromlist* gives the names of objects or submodules that should" -" be imported from the module given by *name*. The standard implementation " +"context. The *fromlist* gives the names of objects or submodules that should " +"be imported from the module given by *name*. The standard implementation " "does not use its *locals* argument at all, and uses its *globals* only to " "determine the package context of the :keyword:`import` statement." msgstr "" +"A função importa o módulo *name*, potencialmente usando os dados *globals* e " +"*locals* para determinar como interpretar o nome em um contexto de pacote. O " +"*fromlist* fornece os nomes de objetos ou submódulos que devem ser " +"importados do módulo, fornecidos por *name*. A implementação padrão não usa " +"seu argumento *locals* e usa seus *globals* apenas para determinar o " +"contexto do pacote da instrução :keyword:`import`." #: ../../library/functions.rst:1687 msgid "" @@ -2411,6 +2974,11 @@ msgid "" "directory of the module calling :func:`__import__` (see :pep:`328` for the " "details)." msgstr "" +"*level* especifica se é necessário usar importações absolutas ou relativas. " +"``0`` (o padrão) significa apenas realizar importações absolutas. Valores " +"positivos para *level* indicam o número de diretórios pai a serem " +"pesquisados em relação ao diretório do módulo que chama :func:`__import__` " +"(consulte :pep:`328` para obter detalhes)." #: ../../library/functions.rst:1693 msgid "" @@ -2419,28 +2987,38 @@ msgid "" "module named by *name*. However, when a non-empty *fromlist* argument is " "given, the module named by *name* is returned." msgstr "" +"Quando a variável *name* está no formato ``package.module``, normalmente, o " +"pacote de nível superior (o nome até o primeiro ponto) é retornado, *não* o " +"módulo nomeado por *name*. No entanto, quando um argumento *fromlist* não " +"vazio é fornecido, o módulo nomeado por *name* é retornado." #: ../../library/functions.rst:1698 msgid "" "For example, the statement ``import spam`` results in bytecode resembling " "the following code::" msgstr "" +"Por exemplo, a instrução ``importar spam`` resulta em bytecode semelhante ao " +"seguinte código::" #: ../../library/functions.rst:1703 msgid "The statement ``import spam.ham`` results in this call::" -msgstr "" +msgstr "A instrução ``import spam.ham`` resulta nesta chamada::" #: ../../library/functions.rst:1707 msgid "" -"Note how :func:`__import__` returns the toplevel module here because this is" -" the object that is bound to a name by the :keyword:`import` statement." +"Note how :func:`__import__` returns the toplevel module here because this is " +"the object that is bound to a name by the :keyword:`import` statement." msgstr "" +"Observe como :func:`__import__` retorna o módulo de nível superior aqui, " +"porque este é o objeto vinculado a um nome pela instrução :keyword:`import`." #: ../../library/functions.rst:1710 msgid "" "On the other hand, the statement ``from spam.ham import eggs, sausage as " "saus`` results in ::" msgstr "" +"Por outro lado, a instrução ``from spam.ham import eggs, sausage as saus'' " +"resulta em ::" #: ../../library/functions.rst:1717 msgid "" @@ -2448,18 +3026,25 @@ msgid "" "this object, the names to import are retrieved and assigned to their " "respective names." msgstr "" +"Aqui, o módulo ``spam.ham`` é retornado de :func:`__import__`. A partir " +"desse objeto, os nomes a serem importados são recuperados e atribuídos aos " +"seus respectivos nomes." #: ../../library/functions.rst:1721 msgid "" "If you simply want to import a module (potentially within a package) by " "name, use :func:`importlib.import_module`." msgstr "" +"Se você simplesmente deseja importar um módulo (potencialmente dentro de um " +"pacote) pelo nome, use :func:`importlib.import_module`." #: ../../library/functions.rst:1724 msgid "" "Negative values for *level* are no longer supported (which also changes the " "default value to 0)." msgstr "" +"Valores negativos para *level* não são mais suportados (o que também altera " +"o valor padrão para 0)." #: ../../library/functions.rst:1730 msgid "Footnotes" @@ -2471,3 +3056,6 @@ msgid "" "you are reading the code from a file, make sure to use newline conversion " "mode to convert Windows or Mac-style newlines." msgstr "" +"Observe que o analisador aceita apenas a convenção de fim de linha no estilo " +"Unix. Se você estiver lendo o código de um arquivo, use o modo de conversão " +"de nova linha para converter novas linhas no estilo Windows ou Mac." diff --git a/library/functools.po b/library/functools.po index 3ccfd5d32..2096441cd 100644 --- a/library/functools.po +++ b/library/functools.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,31 +52,30 @@ msgstr "O módulo: mod:`functools` define as seguintes funções:" #: ../../library/functools.rst:25 msgid "" "Transform an old-style comparison function to a :term:`key function`. Used " -"with tools that accept key functions (such as :func:`sorted`, :func:`min`, " -":func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`, " -":func:`itertools.groupby`). This function is primarily used as a transition" -" tool for programs being converted from Python 2 which supported the use of " +"with tools that accept key functions (such as :func:`sorted`, :func:`min`, :" +"func:`max`, :func:`heapq.nlargest`, :func:`heapq.nsmallest`, :func:" +"`itertools.groupby`). This function is primarily used as a transition tool " +"for programs being converted from Python 2 which supported the use of " "comparison functions." msgstr "" -"Transforma uma função de comparação de estilo antigo para um: termo: `função" -" de chave '. Usado com ferramentas que aceitam funções-chave (como: func: " -"`sorted`,: func:` min`,: func: `max`,: func:` heapq.nlargest`,: func: " -"`heapq.nsmallest`,: Func: `itertools.groupby`). Esta função é usada " -"principalmente como uma ferramenta de transição para programas que estão " -"sendo convertidos a partir do Python 2, que suportou o uso de funções de " -"comparação." +"Transforma uma função de comparação de estilo antigo para um: termo: `função " +"de chave '. Usado com ferramentas que aceitam funções-chave (como: func: " +"`sorted`,: func:` min`,: func: `max`,: func:` heapq.nlargest`,: func: `heapq." +"nsmallest`,: Func: `itertools.groupby`). Esta função é usada principalmente " +"como uma ferramenta de transição para programas que estão sendo convertidos " +"a partir do Python 2, que suportou o uso de funções de comparação." #: ../../library/functools.rst:32 msgid "" "A comparison function is any callable that accept two arguments, compares " "them, and returns a negative number for less-than, zero for equality, or a " -"positive number for greater-than. A key function is a callable that accepts" -" one argument and returns another value to be used as the sort key." +"positive number for greater-than. A key function is a callable that accepts " +"one argument and returns another value to be used as the sort key." msgstr "" "Uma função de comparação é qualquer chamada que aceita dois argumentos, os " -"compara e retorna um número negativo por menos de zero, igual a igualdade ou" -" um número positivo por maior que. Uma função de chave é escalável que " -"aceita um argumento e retorna outro valor para ser usado como a chave de " +"compara e retorna um número negativo por menos de zero, igual a igualdade ou " +"um número positivo por maior que. Uma função de chave é escalável que aceita " +"um argumento e retorna outro valor para ser usado como a chave de " "classificação." #: ../../library/functools.rst:37 ../../library/functools.rst:231 @@ -106,14 +106,14 @@ msgid "" "arguments to the function must be hashable." msgstr "" "dicionárioUma vez que um dicionário é usado para armazenar resultados em " -"cache, os argumentos posicionais e de palavras-chave para a função devem ser" -" hashable." +"cache, os argumentos posicionais e de palavras-chave para a função devem ser " +"hashable." #: ../../library/functools.rst:55 msgid "" "Distinct argument patterns may be considered to be distinct calls with " -"separate cache entries. For example, `f(a=1, b=2)` and `f(b=2, a=1)` differ" -" in their keyword argument order and may have two separate cache entries." +"separate cache entries. For example, `f(a=1, b=2)` and `f(b=2, a=1)` differ " +"in their keyword argument order and may have two separate cache entries." msgstr "" #: ../../library/functools.rst:60 @@ -133,9 +133,9 @@ msgid "" "distinct calls with distinct results." msgstr "" "Se *tipo* for definido como verdadeiro, os argumentos de função de " -"diferentes tipos serão armazenados em cache separadamente. Por exemplo, `` f" -" (3) `` e `` f (3.0) `` serão tratados como chamadas distintas com " -"resultados distintos." +"diferentes tipos serão armazenados em cache separadamente. Por exemplo, `` f " +"(3) `` e `` f (3.0) `` serão tratados como chamadas distintas com resultados " +"distintos." #: ../../library/functools.rst:68 msgid "" @@ -147,8 +147,8 @@ msgid "" msgstr "" "Para ajudar a medir a eficácia do cache e ajustar o parâmetro *maxsize*, a " "função envolvida é instrumentada com uma função: func: `cache_info` que " -"retorna um: termo:` nomeado tuple` mostrando * hits *, * misses *, * Maxsize" -" * e * currsize *. Em um ambiente multi-threaded, os hits e erros são " +"retorna um: termo:` nomeado tuple` mostrando * hits *, * misses *, * Maxsize " +"* e * currsize *. Em um ambiente multi-threaded, os hits e erros são " "aproximados." #: ../../library/functools.rst:74 @@ -161,9 +161,9 @@ msgstr "" #: ../../library/functools.rst:77 msgid "" -"The original underlying function is accessible through the " -":attr:`__wrapped__` attribute. This is useful for introspection, for " -"bypassing the cache, or for rewrapping the function with a different cache." +"The original underlying function is accessible through the :attr:" +"`__wrapped__` attribute. This is useful for introspection, for bypassing " +"the cache, or for rewrapping the function with a different cache." msgstr "" "A função subjacente original é acessível através do atributo: attr: " "`__wrapped__`. Isso é útil para introspecção, para ignorar o cache, ou para " @@ -171,19 +171,19 @@ msgstr "" #: ../../library/functools.rst:81 msgid "" -"An `LRU (least recently used) cache " -"`_ works best when " -"the most recent calls are the best predictors of upcoming calls (for " -"example, the most popular articles on a news server tend to change each " -"day). The cache's size limit assures that the cache does not grow without " -"bound on long-running processes such as web servers." +"An `LRU (least recently used) cache `_ works best when the most recent calls are the " +"best predictors of upcoming calls (for example, the most popular articles on " +"a news server tend to change each day). The cache's size limit assures that " +"the cache does not grow without bound on long-running processes such as web " +"servers." msgstr "" "Um cache `LRU (least recently used - em português - menos usado " "recentemente) ` _ " "funciona melhor quando as chamadas mais recentes são os melhores preditores " "de chamadas futuras (por exemplo, os artigos mais populares em um servidor " -"de notícias tendem a mudar a cada dia). O limite de tamanho do cache garante" -" que o cache não cresça sem está ligado a processos de longa duração, como " +"de notícias tendem a mudar a cada dia). O limite de tamanho do cache garante " +"que o cache não cresça sem está ligado a processos de longa duração, como " "servidores web." #: ../../library/functools.rst:88 @@ -200,15 +200,14 @@ msgstr "Exemplo de um cache LRU para conteúdo web estático ::" #: ../../library/functools.rst:112 msgid "" -"Example of efficiently computing `Fibonacci numbers " -"`_ using a cache to " -"implement a `dynamic programming " -"`_ technique::" +"Example of efficiently computing `Fibonacci numbers `_ using a cache to implement a `dynamic " +"programming `_ technique::" msgstr "" -"Exemplo de computação eficiente dos números Fibonacci " -" `_ usando um cache para " -"implementar uma\" programação dinâmica " -"\"` _ técnica::" +"Exemplo de computação eficiente dos números Fibonacci `_ usando um cache para implementar uma\" " +"programação dinâmica \"` " +"_ técnica::" #: ../../library/functools.rst:132 msgid "Added the *typed* option." @@ -223,8 +222,8 @@ msgstr "" #: ../../library/functools.rst:141 msgid "" -"The class must define one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`," -" or :meth:`__ge__`. In addition, the class should supply an :meth:`__eq__` " +"The class must define one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, " +"or :meth:`__ge__`. In addition, the class should supply an :meth:`__eq__` " "method." msgstr "" @@ -235,10 +234,10 @@ msgstr "Por exemplo::" #: ../../library/functools.rst:165 msgid "" "While this decorator makes it easy to create well behaved totally ordered " -"types, it *does* come at the cost of slower execution and more complex stack" -" traces for the derived comparison methods. If performance benchmarking " -"indicates this is a bottleneck for a given application, implementing all six" -" rich comparison methods instead is likely to provide an easy speed boost." +"types, it *does* come at the cost of slower execution and more complex stack " +"traces for the derived comparison methods. If performance benchmarking " +"indicates this is a bottleneck for a given application, implementing all six " +"rich comparison methods instead is likely to provide an easy speed boost." msgstr "" #: ../../library/functools.rst:174 @@ -258,18 +257,18 @@ msgstr "" #: ../../library/functools.rst:197 msgid "" -"The :func:`partial` is used for partial function application which " -"\"freezes\" some portion of a function's arguments and/or keywords resulting" -" in a new object with a simplified signature. For example, :func:`partial` " -"can be used to create a callable that behaves like the :func:`int` function " -"where the *base* argument defaults to two:" +"The :func:`partial` is used for partial function application which \"freezes" +"\" some portion of a function's arguments and/or keywords resulting in a new " +"object with a simplified signature. For example, :func:`partial` can be " +"used to create a callable that behaves like the :func:`int` function where " +"the *base* argument defaults to two:" msgstr "" #: ../../library/functools.rst:212 msgid "" -"Return a new :class:`partialmethod` descriptor which behaves like " -":class:`partial` except that it is designed to be used as a method " -"definition rather than being directly callable." +"Return a new :class:`partialmethod` descriptor which behaves like :class:" +"`partial` except that it is designed to be used as a method definition " +"rather than being directly callable." msgstr "" #: ../../library/functools.rst:216 @@ -280,9 +279,9 @@ msgstr "" #: ../../library/functools.rst:219 msgid "" -"When *func* is a descriptor (such as a normal Python function, " -":func:`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or another" -" instance of :class:`partialmethod`), calls to ``__get__`` are delegated to " +"When *func* is a descriptor (such as a normal Python function, :func:" +"`classmethod`, :func:`staticmethod`, :func:`abstractmethod` or another " +"instance of :class:`partialmethod`), calls to ``__get__`` are delegated to " "the underlying descriptor, and an appropriate :ref:`partial object` returned as the result." msgstr "" @@ -290,10 +289,10 @@ msgstr "" #: ../../library/functools.rst:225 msgid "" "When *func* is a non-descriptor callable, an appropriate bound method is " -"created dynamically. This behaves like a normal Python function when used as" -" a method: the *self* argument will be inserted as the first positional " -"argument, even before the *args* and *keywords* supplied to the " -":class:`partialmethod` constructor." +"created dynamically. This behaves like a normal Python function when used as " +"a method: the *self* argument will be inserted as the first positional " +"argument, even before the *args* and *keywords* supplied to the :class:" +"`partialmethod` constructor." msgstr "" #: ../../library/functools.rst:256 @@ -305,8 +304,8 @@ msgid "" "the right argument, *y*, is the update value from the *sequence*. If the " "optional *initializer* is present, it is placed before the items of the " "sequence in the calculation, and serves as a default when the sequence is " -"empty. If *initializer* is not given and *sequence* contains only one item," -" the first item is returned." +"empty. If *initializer* is not given and *sequence* contains only one item, " +"the first item is returned." msgstr "" #: ../../library/functools.rst:265 @@ -315,15 +314,15 @@ msgstr "" #: ../../library/functools.rst:280 msgid "" -"Transform a function into a :term:`single-dispatch ` " -":term:`generic function`." +"Transform a function into a :term:`single-dispatch ` :term:" +"`generic function`." msgstr "" #: ../../library/functools.rst:283 msgid "" "To define a generic function, decorate it with the ``@singledispatch`` " -"decorator. Note that the dispatch happens on the type of the first argument," -" create your function accordingly::" +"decorator. Note that the dispatch happens on the type of the first argument, " +"create your function accordingly::" msgstr "" #: ../../library/functools.rst:294 @@ -342,8 +341,8 @@ msgstr "" #: ../../library/functools.rst:323 msgid "" -"To enable registering lambdas and pre-existing functions, the " -":func:`register` attribute can be used in a functional form::" +"To enable registering lambdas and pre-existing functions, the :func:" +"`register` attribute can be used in a functional form::" msgstr "" #: ../../library/functools.rst:331 @@ -362,10 +361,9 @@ msgstr "" #: ../../library/functools.rst:365 msgid "" "Where there is no registered implementation for a specific type, its method " -"resolution order is used to find a more generic implementation. The original" -" function decorated with ``@singledispatch`` is registered for the base " -"``object`` type, which means it is used if no better implementation is " -"found." +"resolution order is used to find a more generic implementation. The original " +"function decorated with ``@singledispatch`` is registered for the base " +"``object`` type, which means it is used if no better implementation is found." msgstr "" #: ../../library/functools.rst:371 @@ -418,8 +416,8 @@ msgstr "" #: ../../library/functools.rst:420 msgid "" ":func:`update_wrapper` may be used with callables other than functions. Any " -"attributes named in *assigned* or *updated* that are missing from the object" -" being wrapped are ignored (i.e. this function will not attempt to set them " +"attributes named in *assigned* or *updated* that are missing from the object " +"being wrapped are ignored (i.e. this function will not attempt to set them " "on the wrapper function). :exc:`AttributeError` is still raised if the " "wrapper function itself is missing any attributes named in *updated*." msgstr "" @@ -439,8 +437,8 @@ msgstr "" #: ../../library/functools.rst:435 msgid "" "The ``__wrapped__`` attribute now always refers to the wrapped function, " -"even if that function defined a ``__wrapped__`` attribute. (see " -":issue:`17482`)" +"even if that function defined a ``__wrapped__`` attribute. (see :issue:" +"`17482`)" msgstr "" #: ../../library/functools.rst:443 @@ -454,8 +452,8 @@ msgstr "" #: ../../library/functools.rst:469 msgid "" "Without the use of this decorator factory, the name of the example function " -"would have been ``'wrapper'``, and the docstring of the original " -":func:`example` would have been lost." +"would have been ``'wrapper'``, and the docstring of the original :func:" +"`example` would have been lost." msgstr "" #: ../../library/functools.rst:477 @@ -470,8 +468,8 @@ msgstr "" #: ../../library/functools.rst:485 msgid "" -"A callable object or function. Calls to the :class:`partial` object will be" -" forwarded to :attr:`func` with new arguments and keywords." +"A callable object or function. Calls to the :class:`partial` object will be " +"forwarded to :attr:`func` with new arguments and keywords." msgstr "" #: ../../library/functools.rst:491 @@ -482,16 +480,16 @@ msgstr "" #: ../../library/functools.rst:497 msgid "" -"The keyword arguments that will be supplied when the :class:`partial` object" -" is called." +"The keyword arguments that will be supplied when the :class:`partial` object " +"is called." msgstr "" #: ../../library/functools.rst:500 msgid "" -":class:`partial` objects are like :class:`function` objects in that they are" -" callable, weak referencable, and can have attributes. There are some " -"important differences. For instance, the :attr:`~definition.__name__` and " -":attr:`__doc__` attributes are not created automatically. Also, " -":class:`partial` objects defined in classes behave like static methods and " -"do not transform into bound methods during instance attribute look-up." +":class:`partial` objects are like :class:`function` objects in that they are " +"callable, weak referencable, and can have attributes. There are some " +"important differences. For instance, the :attr:`~definition.__name__` and :" +"attr:`__doc__` attributes are not created automatically. Also, :class:" +"`partial` objects defined in classes behave like static methods and do not " +"transform into bound methods during instance attribute look-up." msgstr "" diff --git a/library/gc.po b/library/gc.po index 5bdda7f08..21f199bfe 100644 --- a/library/gc.po +++ b/library/gc.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Livia Cavalcanti , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" "Last-Translator: Livia Cavalcanti , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,25 +32,24 @@ msgid "" "provides the ability to disable the collector, tune the collection " "frequency, and set debugging options. It also provides access to " "unreachable objects that the collector found but cannot free. Since the " -"collector supplements the reference counting already used in Python, you can" -" disable the collector if you are sure your program does not create " -"reference cycles. Automatic collection can be disabled by calling " -"``gc.disable()``. To debug a leaking program call " -"``gc.set_debug(gc.DEBUG_LEAK)``. Notice that this includes " -"``gc.DEBUG_SAVEALL``, causing garbage-collected objects to be saved in " -"gc.garbage for inspection." +"collector supplements the reference counting already used in Python, you can " +"disable the collector if you are sure your program does not create reference " +"cycles. Automatic collection can be disabled by calling ``gc.disable()``. " +"To debug a leaking program call ``gc.set_debug(gc.DEBUG_LEAK)``. Notice that " +"this includes ``gc.DEBUG_SAVEALL``, causing garbage-collected objects to be " +"saved in gc.garbage for inspection." msgstr "" "Este módulo fornece uma interface para o opcional garbage collector. Ele " "disponibiliza a habilidade de desabilitar o collector, ajustar a frequência " "da coleção, e configurar as opções de depuração. Ele também fornece acesso " "para objetos inacessíveis que o collector encontra mas não pode \"limpar\". " "Como o collector complementa a contagem de referência já usada em Python, " -"você pode desabilitar o collector se você tem certeza que o seu programa não" -" cria ciclos de referências. A coleta automática pode ser desabilitada pela " -"chamada ``gc.disable()``. Para depurar um programa vazando, chame " -"``gc.set_debug(gc.DEBUG_LEAK)``. Perceba que isto inclui " -"``gc.DEBUG_SAVEALL``, fazendo com que objetos coletados pelo garbage-" -"collector sejam salvos para inspeção em gc.garbage." +"você pode desabilitar o collector se você tem certeza que o seu programa não " +"cria ciclos de referências. A coleta automática pode ser desabilitada pela " +"chamada ``gc.disable()``. Para depurar um programa vazando, chame ``gc." +"set_debug(gc.DEBUG_LEAK)``. Perceba que isto inclui ``gc.DEBUG_SAVEALL``, " +"fazendo com que objetos coletados pelo garbage-collector sejam salvos para " +"inspeção em gc.garbage." #: ../../library/gc.rst:23 msgid "The :mod:`gc` module provides the following functions:" @@ -64,7 +64,7 @@ msgid "Disable automatic garbage collection." msgstr "" #: ../../library/gc.rst:38 -msgid "Returns true if automatic collection is enabled." +msgid "Return ``True`` if automatic collection is enabled." msgstr "" #: ../../library/gc.rst:43 @@ -161,8 +161,8 @@ msgstr "" #: ../../library/gc.rst:125 msgid "" -"Return the list of objects that directly refer to any of objs. This function" -" will only locate those containers which support garbage collection; " +"Return the list of objects that directly refer to any of objs. This function " +"will only locate those containers which support garbage collection; " "extension types which do refer to other objects but do not support garbage " "collection will not be found." msgstr "" @@ -179,20 +179,20 @@ msgstr "" msgid "" "Care must be taken when using objects returned by :func:`get_referrers` " "because some of them could still be under construction and hence in a " -"temporarily invalid state. Avoid using :func:`get_referrers` for any purpose" -" other than debugging." +"temporarily invalid state. Avoid using :func:`get_referrers` for any purpose " +"other than debugging." msgstr "" #: ../../library/gc.rst:143 msgid "" "Return a list of objects directly referred to by any of the arguments. The " -"referents returned are those objects visited by the arguments' C-level " -":c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all " +"referents returned are those objects visited by the arguments' C-level :c:" +"member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all " "objects actually directly reachable. :c:member:`~PyTypeObject.tp_traverse` " "methods are supported only by objects that support garbage collection, and " -"are only required to visit objects that may be involved in a cycle. So, for" -" example, if an integer is directly reachable from an argument, that integer" -" object may or may not appear in the result list." +"are only required to visit objects that may be involved in a cycle. So, for " +"example, if an integer is directly reachable from an argument, that integer " +"object may or may not appear in the result list." msgstr "" #: ../../library/gc.rst:154 @@ -209,8 +209,8 @@ msgstr "" msgid "" "Freeze all the objects tracked by gc - move them to a permanent generation " "and ignore all the future collections. This can be used before a POSIX " -"fork() call to make the gc copy-on-write friendly or to speed up collection." -" Also collection before a POSIX fork() call may free pages for future " +"fork() call to make the gc copy-on-write friendly or to speed up collection. " +"Also collection before a POSIX fork() call may free pages for future " "allocation which can cause copy-on-write too so it's advised to disable gc " "in master process and freeze before fork and enable gc in child process." msgstr "" @@ -235,35 +235,35 @@ msgstr "" msgid "" "A list of objects which the collector found to be unreachable but could not " "be freed (uncollectable objects). Starting with Python 3.4, this list " -"should be empty most of the time, except when using instances of C extension" -" types with a non-``NULL`` ``tp_del`` slot." +"should be empty most of the time, except when using instances of C extension " +"types with a non-``NULL`` ``tp_del`` slot." msgstr "" #: ../../library/gc.rst:214 msgid "" -"If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added" -" to this list rather than freed." +"If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added " +"to this list rather than freed." msgstr "" #: ../../library/gc.rst:217 msgid "" -"If this list is non-empty at :term:`interpreter shutdown`, a " -":exc:`ResourceWarning` is emitted, which is silent by default. If " -":const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects " -"are printed." +"If this list is non-empty at :term:`interpreter shutdown`, a :exc:" +"`ResourceWarning` is emitted, which is silent by default. If :const:" +"`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects are " +"printed." msgstr "" #: ../../library/gc.rst:223 msgid "" -"Following :pep:`442`, objects with a :meth:`__del__` method don't end up in " -":attr:`gc.garbage` anymore." +"Following :pep:`442`, objects with a :meth:`__del__` method don't end up in :" +"attr:`gc.garbage` anymore." msgstr "" #: ../../library/gc.rst:229 msgid "" -"A list of callbacks that will be invoked by the garbage collector before and" -" after collection. The callbacks will be called with two arguments, *phase*" -" and *info*." +"A list of callbacks that will be invoked by the garbage collector before and " +"after collection. The callbacks will be called with two arguments, *phase* " +"and *info*." msgstr "" #: ../../library/gc.rst:233 @@ -280,8 +280,8 @@ msgstr "" #: ../../library/gc.rst:239 msgid "" -"*info* is a dict providing more information for the callback. The following" -" keys are currently defined:" +"*info* is a dict providing more information for the callback. The following " +"keys are currently defined:" msgstr "" #: ../../library/gc.rst:242 @@ -347,13 +347,13 @@ msgstr "" #: ../../library/gc.rst:289 msgid "" -"When set, all unreachable objects found will be appended to *garbage* rather" -" than being freed. This can be useful for debugging a leaking program." +"When set, all unreachable objects found will be appended to *garbage* rather " +"than being freed. This can be useful for debugging a leaking program." msgstr "" #: ../../library/gc.rst:295 msgid "" -"The debugging flags necessary for the collector to print information about a" -" leaking program (equal to ``DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE | " +"The debugging flags necessary for the collector to print information about a " +"leaking program (equal to ``DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE | " "DEBUG_SAVEALL``)." msgstr "" diff --git a/library/getopt.po b/library/getopt.po index 875d5787f..5c8ddbeac 100644 --- a/library/getopt.po +++ b/library/getopt.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,15 +35,15 @@ msgstr "**Código Fonte:** :source:`Lib/getopt.py`" msgid "" "The :mod:`getopt` module is a parser for command line options whose API is " "designed to be familiar to users of the C :c:func:`getopt` function. Users " -"who are unfamiliar with the C :c:func:`getopt` function or who would like to" -" write less code and get better help and error messages should consider " -"using the :mod:`argparse` module instead." +"who are unfamiliar with the C :c:func:`getopt` function or who would like to " +"write less code and get better help and error messages should consider using " +"the :mod:`argparse` module instead." msgstr "" #: ../../library/getopt.rst:20 msgid "" -"This module helps scripts to parse the command line arguments in " -"``sys.argv``. It supports the same conventions as the Unix :c:func:`getopt` " +"This module helps scripts to parse the command line arguments in ``sys." +"argv``. It supports the same conventions as the Unix :c:func:`getopt` " "function (including the special meanings of arguments of the form '``-``' " "and '``--``'). Long options similar to those supported by GNU software may " "be used as well via an optional third argument." @@ -53,12 +55,12 @@ msgstr "" #: ../../library/getopt.rst:32 msgid "" -"Parses command line options and parameter list. *args* is the argument list" -" to be parsed, without the leading reference to the running program. " +"Parses command line options and parameter list. *args* is the argument list " +"to be parsed, without the leading reference to the running program. " "Typically, this means ``sys.argv[1:]``. *shortopts* is the string of option " "letters that the script wants to recognize, with options that require an " -"argument followed by a colon (``':'``; i.e., the same format that Unix " -":c:func:`getopt` uses)." +"argument followed by a colon (``':'``; i.e., the same format that Unix :c:" +"func:`getopt` uses)." msgstr "" #: ../../library/getopt.rst:40 @@ -75,8 +77,8 @@ msgid "" "should not be included in the option name. Long options which require an " "argument should be followed by an equal sign (``'='``). Optional arguments " "are not supported. To accept only long options, *shortopts* should be an " -"empty string. Long options on the command line can be recognized so long as" -" they provide a prefix of the option name that matches exactly one of the " +"empty string. Long options on the command line can be recognized so long as " +"they provide a prefix of the option name that matches exactly one of the " "accepted options. For example, if *longopts* is ``['foo', 'frob']``, the " "option ``--fo`` will match as ``--foo``, but ``--f`` will not match " "uniquely, so :exc:`GetoptError` will be raised." @@ -84,21 +86,21 @@ msgstr "" #: ../../library/getopt.rst:55 msgid "" -"The return value consists of two elements: the first is a list of ``(option," -" value)`` pairs; the second is the list of program arguments left after the " +"The return value consists of two elements: the first is a list of ``(option, " +"value)`` pairs; the second is the list of program arguments left after the " "option list was stripped (this is a trailing slice of *args*). Each option-" -"and-value pair returned has the option as its first element, prefixed with a" -" hyphen for short options (e.g., ``'-x'``) or two hyphens for long options " -"(e.g., ``'--long-option'``), and the option argument as its second element, " -"or an empty string if the option has no argument. The options occur in the " +"and-value pair returned has the option as its first element, prefixed with a " +"hyphen for short options (e.g., ``'-x'``) or two hyphens for long options (e." +"g., ``'--long-option'``), and the option argument as its second element, or " +"an empty string if the option has no argument. The options occur in the " "list in the same order in which they were found, thus allowing multiple " "occurrences. Long and short options may be mixed." msgstr "" #: ../../library/getopt.rst:68 msgid "" -"This function works like :func:`getopt`, except that GNU style scanning mode" -" is used by default. This means that option and non-option arguments may be " +"This function works like :func:`getopt`, except that GNU style scanning mode " +"is used by default. This means that option and non-option arguments may be " "intermixed. The :func:`getopt` function stops processing options as soon as " "a non-option argument is encountered." msgstr "" @@ -117,8 +119,8 @@ msgid "" "exception is a string indicating the cause of the error. For long options, " "an argument given to an option which does not require one will also cause " "this exception to be raised. The attributes :attr:`msg` and :attr:`opt` " -"give the error message and related option; if there is no specific option to" -" which the exception relates, :attr:`opt` is an empty string." +"give the error message and related option; if there is no specific option to " +"which the exception relates, :attr:`opt` is an empty string." msgstr "" #: ../../library/getopt.rst:91 @@ -140,8 +142,8 @@ msgstr "" #: ../../library/getopt.rst:147 msgid "" "Note that an equivalent command line interface could be produced with less " -"code and more informative help and error messages by using the " -":mod:`argparse` module::" +"code and more informative help and error messages by using the :mod:" +"`argparse` module::" msgstr "" #: ../../library/getopt.rst:162 diff --git a/library/getpass.po b/library/getpass.po index b83705e07..949508163 100644 --- a/library/getpass.po +++ b/library/getpass.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,16 +40,16 @@ msgid "" "Prompt the user for a password without echoing. The user is prompted using " "the string *prompt*, which defaults to ``'Password: '``. On Unix, the " "prompt is written to the file-like object *stream* using the replace error " -"handler if needed. *stream* defaults to the controlling terminal " -"(:file:`/dev/tty`) or if that is unavailable to ``sys.stderr`` (this " -"argument is ignored on Windows)." +"handler if needed. *stream* defaults to the controlling terminal (:file:`/" +"dev/tty`) or if that is unavailable to ``sys.stderr`` (this argument is " +"ignored on Windows)." msgstr "" #: ../../library/getpass.rst:27 msgid "" -"If echo free input is unavailable getpass() falls back to printing a warning" -" message to *stream* and reading from ``sys.stdin`` and issuing a " -":exc:`GetPassWarning`." +"If echo free input is unavailable getpass() falls back to printing a warning " +"message to *stream* and reading from ``sys.stdin`` and issuing a :exc:" +"`GetPassWarning`." msgstr "" #: ../../library/getpass.rst:32 @@ -57,8 +59,7 @@ msgid "" msgstr "" #: ../../library/getpass.rst:37 -msgid "" -"A :exc:`UserWarning` subclass issued when password input may be echoed." +msgid "A :exc:`UserWarning` subclass issued when password input may be echoed." msgstr "" #: ../../library/getpass.rst:42 @@ -67,12 +68,11 @@ msgstr "" #: ../../library/getpass.rst:44 msgid "" -"This function checks the environment variables :envvar:`LOGNAME`, " -":envvar:`USER`, :envvar:`LNAME` and :envvar:`USERNAME`, in order, and " -"returns the value of the first one which is set to a non-empty string. If " -"none are set, the login name from the password database is returned on " -"systems which support the :mod:`pwd` module, otherwise, an exception is " -"raised." +"This function checks the environment variables :envvar:`LOGNAME`, :envvar:" +"`USER`, :envvar:`LNAME` and :envvar:`USERNAME`, in order, and returns the " +"value of the first one which is set to a non-empty string. If none are set, " +"the login name from the password database is returned on systems which " +"support the :mod:`pwd` module, otherwise, an exception is raised." msgstr "" #: ../../library/getpass.rst:51 diff --git a/library/gettext.po b/library/gettext.po index 0fefe3d32..82bc7ce8c 100644 --- a/library/gettext.po +++ b/library/gettext.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Victor Matheus Castro , 2019 # Adorilson Bezerra , 2019 -# Rafael Fontenelle , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-10 11:24+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,17 +44,16 @@ msgid "" "messages for running under different natural languages." msgstr "" "O módulo :mod:`gettext` fornece serviços de internacionalização (I18N) e " -"localização (L10N) para seus módulos e aplicativos Python. Ele suporta a API" -" do catálogo de mensagens GNU :program:`gettext` e uma API baseada em " -"classes de nível mais alto que podem ser mais apropriadas para arquivos " -"Python. A interface descrita abaixo permite gravar o módulo e as mensagens " -"do aplicativo em um idioma natural e fornecer um catálogo de mensagens " +"localização (L10N) para seus módulos e aplicativos Python. Ele suporta a API " +"do catálogo de mensagens GNU :program:`gettext` e uma API baseada em classes " +"de nível mais alto que podem ser mais apropriadas para arquivos Python. A " +"interface descrita abaixo permite gravar o módulo e as mensagens do " +"aplicativo em um idioma natural e fornecer um catálogo de mensagens " "traduzidas para execução em diferentes idiomas naturais." #: ../../library/gettext.rst:22 msgid "" -"Some hints on localizing your Python modules and applications are also " -"given." +"Some hints on localizing your Python modules and applications are also given." msgstr "" "Algumas dicas sobre localização de seus módulos e aplicativos Python também " "são fornecidas." @@ -73,8 +73,8 @@ msgid "" "probably want to use the class-based API instead." msgstr "" "O módulo :mod:`gettext` define a API a seguir, que é muito semelhante à API " -"do GNU :program:`gettext`. Se você usar esta API, você afetará a tradução de" -" todo o seu aplicativo globalmente. Geralmente, é isso que você deseja se o " +"do GNU :program:`gettext`. Se você usar esta API, você afetará a tradução de " +"todo o seu aplicativo globalmente. Geralmente, é isso que você deseja se o " "seu aplicativo for monolíngue, com a escolha do idioma dependente da " "localidade do seu usuário. Se você estiver localizando um módulo Python, ou " "se seu aplicativo precisar alternar idiomas rapidamente, provavelmente " @@ -82,18 +82,18 @@ msgstr "" #: ../../library/gettext.rst:39 msgid "" -"Bind the *domain* to the locale directory *localedir*. More concretely, " -":mod:`gettext` will look for binary :file:`.mo` files for the given domain " -"using the path (on Unix): " -":file:`{localedir}/{language}/LC_MESSAGES/{domain}.mo`, where *languages* is" -" searched for in the environment variables :envvar:`LANGUAGE`, " -":envvar:`LC_ALL`, :envvar:`LC_MESSAGES`, and :envvar:`LANG` respectively." +"Bind the *domain* to the locale directory *localedir*. More concretely, :" +"mod:`gettext` will look for binary :file:`.mo` files for the given domain " +"using the path (on Unix): :file:`{localedir}/{language}/LC_MESSAGES/{domain}." +"mo`, where *languages* is searched for in the environment variables :envvar:" +"`LANGUAGE`, :envvar:`LC_ALL`, :envvar:`LC_MESSAGES`, and :envvar:`LANG` " +"respectively." msgstr "" #: ../../library/gettext.rst:45 msgid "" -"If *localedir* is omitted or ``None``, then the current binding for *domain*" -" is returned. [#]_" +"If *localedir* is omitted or ``None``, then the current binding for *domain* " +"is returned. [#]_" msgstr "" "Se *localedir* for omitido ou ``None``, a ligação atual para *domain* será " "retornada. [#]_" @@ -101,20 +101,20 @@ msgstr "" #: ../../library/gettext.rst:51 msgid "" "Bind the *domain* to *codeset*, changing the encoding of byte strings " -"returned by the :func:`lgettext`, :func:`ldgettext`, :func:`lngettext` and " -":func:`ldngettext` functions. If *codeset* is omitted, then the current " +"returned by the :func:`lgettext`, :func:`ldgettext`, :func:`lngettext` and :" +"func:`ldngettext` functions. If *codeset* is omitted, then the current " "binding is returned." msgstr "" "Liga o *domain* ao *codeset*, alterando a codificação das strings de bytes " -"retornadas pelas funções :func:`lgettext`, :func:`ldgettext`, " -":func:`lngettext` e :func:`ldngettext`. Se *codeset* for omitido, a ligação " -"atual será retornada." +"retornadas pelas funções :func:`lgettext`, :func:`ldgettext`, :func:" +"`lngettext` e :func:`ldngettext`. Se *codeset* for omitido, a ligação atual " +"será retornada." #: ../../library/gettext.rst:59 msgid "" "Change or query the current global domain. If *domain* is ``None``, then " -"the current global domain is returned, otherwise the global domain is set to" -" *domain*, which is returned." +"the current global domain is returned, otherwise the global domain is set to " +"*domain*, which is returned." msgstr "" "Altera ou consulta o domínio global atual. Se *domain* for ``None``, o " "domínio global atual será retornado; caso contrário, o domínio global será " @@ -123,8 +123,8 @@ msgstr "" #: ../../library/gettext.rst:67 msgid "" "Return the localized translation of *message*, based on the current global " -"domain, language, and locale directory. This function is usually aliased as" -" :func:`_` in the local namespace (see examples below)." +"domain, language, and locale directory. This function is usually aliased " +"as :func:`_` in the local namespace (see examples below)." msgstr "" "Retorna a tradução localizada de *message*, com base no diretório global " "atual de domínio, idioma e localidade. Essa função geralmente é apelidada " @@ -139,13 +139,13 @@ msgstr "" #: ../../library/gettext.rst:79 msgid "" -"Like :func:`.gettext`, but consider plural forms. If a translation is found," -" apply the plural formula to *n*, and return the resulting message (some " +"Like :func:`.gettext`, but consider plural forms. If a translation is found, " +"apply the plural formula to *n*, and return the resulting message (some " "languages have more than two plural forms). If no translation is found, " "return *singular* if *n* is 1; return *plural* otherwise." msgstr "" -"Semelhante a :func:`.gettext`, mas considera formas plurais. Se uma tradução" -" for encontrada, aplica a fórmula do plural a *n* e retorne a mensagem " +"Semelhante a :func:`.gettext`, mas considera formas plurais. Se uma tradução " +"for encontrada, aplica a fórmula do plural a *n* e retorne a mensagem " "resultante (alguns idiomas têm mais de duas formas no plural). Se nenhuma " "tradução for encontrada, retorna *singular* se *n* for 1; retorna *plural* " "caso contrário." @@ -161,10 +161,10 @@ msgid "" msgstr "" "A fórmula de Plural é retirada do cabeçalho do catálogo. É uma expressão C " "ou Python que possui uma variável livre *n*; a expressão é avaliada para o " -"índice do plural no catálogo. Veja `a documentação do gettext GNU " -"`__ para obter a " -"sintaxe precisa a ser usada em arquivos :file:`.po` e as fórmulas para um " -"variedade de idiomas." +"índice do plural no catálogo. Veja `a documentação do gettext GNU `__ para obter a sintaxe " +"precisa a ser usada em arquivos :file:`.po` e as fórmulas para um variedade " +"de idiomas." #: ../../library/gettext.rst:94 msgid "" @@ -175,16 +175,16 @@ msgstr "" #: ../../library/gettext.rst:102 msgid "" -"Equivalent to the corresponding functions without the ``l`` prefix " -"(:func:`.gettext`, :func:`dgettext`, :func:`ngettext` and " -":func:`dngettext`), but the translation is returned as a byte string encoded" -" in the preferred system encoding if no other encoding was explicitly set " -"with :func:`bind_textdomain_codeset`." +"Equivalent to the corresponding functions without the ``l`` prefix (:func:`." +"gettext`, :func:`dgettext`, :func:`ngettext` and :func:`dngettext`), but the " +"translation is returned as a byte string encoded in the preferred system " +"encoding if no other encoding was explicitly set with :func:" +"`bind_textdomain_codeset`." msgstr "" -"Equivalente às funções correspondentes sem o prefixo ``l`` " -"(:func:`.gettext`, :func:`dgettext`, :func:`ngettext` e :func:`dngettext`), " -"mas a tradução é retornada como uma string de bytes codificada na " -"codificação preferida do sistema, se nenhuma outra codificação foi definida " +"Equivalente às funções correspondentes sem o prefixo ``l`` (:func:`." +"gettext`, :func:`dgettext`, :func:`ngettext` e :func:`dngettext`), mas a " +"tradução é retornada como uma string de bytes codificada na codificação " +"preferida do sistema, se nenhuma outra codificação foi definida " "explicitamente com :func:`bind_textdomain_codeset`." #: ../../library/gettext.rst:110 @@ -193,8 +193,8 @@ msgid "" "bytes. It's much better to use alternatives which return Unicode strings " "instead, since most Python applications will want to manipulate human " "readable text as strings instead of bytes. Further, it's possible that you " -"may get unexpected Unicode-related exceptions if there are encoding problems" -" with the translated strings. It is possible that the ``l*()`` functions " +"may get unexpected Unicode-related exceptions if there are encoding problems " +"with the translated strings. It is possible that the ``l*()`` functions " "will be deprecated in future Python versions due to their inherent problems " "and limitations." msgstr "" @@ -220,11 +220,11 @@ msgstr "API baseada em classe" msgid "" "The class-based API of the :mod:`gettext` module gives you more flexibility " "and greater convenience than the GNU :program:`gettext` API. It is the " -"recommended way of localizing your Python applications and modules. " -":mod:`!gettext` defines a :class:`GNUTranslations` class which implements " -"the parsing of GNU :file:`.mo` format files, and has methods for returning " -"strings. Instances of this class can also install themselves in the built-in" -" namespace as the function :func:`_`." +"recommended way of localizing your Python applications and modules. :mod:`!" +"gettext` defines a :class:`GNUTranslations` class which implements the " +"parsing of GNU :file:`.mo` format files, and has methods for returning " +"strings. Instances of this class can also install themselves in the built-in " +"namespace as the function :func:`_`." msgstr "" "A API baseada em classe do módulo :mod:`gettext` oferece mais flexibilidade " "e maior conveniência do que a API do GNU :program:`gettext`. É a maneira " @@ -236,8 +236,8 @@ msgstr "" #: ../../library/gettext.rst:146 msgid "" -"This function implements the standard :file:`.mo` file search algorithm. It" -" takes a *domain*, identical to what :func:`textdomain` takes. Optional " +"This function implements the standard :file:`.mo` file search algorithm. It " +"takes a *domain*, identical to what :func:`textdomain` takes. Optional " "*localedir* is as in :func:`bindtextdomain`. Optional *languages* is a list " "of strings, where each string is a language code." msgstr "" @@ -250,19 +250,19 @@ msgstr "" msgid "" "If *localedir* is not given, then the default system locale directory is " "used. [#]_ If *languages* is not given, then the following environment " -"variables are searched: :envvar:`LANGUAGE`, :envvar:`LC_ALL`, " -":envvar:`LC_MESSAGES`, and :envvar:`LANG`. The first one returning a non-" -"empty value is used for the *languages* variable. The environment variables " -"should contain a colon separated list of languages, which will be split on " -"the colon to produce the expected list of language code strings." +"variables are searched: :envvar:`LANGUAGE`, :envvar:`LC_ALL`, :envvar:" +"`LC_MESSAGES`, and :envvar:`LANG`. The first one returning a non-empty " +"value is used for the *languages* variable. The environment variables should " +"contain a colon separated list of languages, which will be split on the " +"colon to produce the expected list of language code strings." msgstr "" "Se *localedir* não for fornecido, o diretório local do sistema padrão será " "usado. [#]_ Se *languages* não for fornecido, as seguintes variáveis de " -"ambiente serão pesquisadas: :envvar:`LANGUAGE`, :envvar:`LC_ALL`, " -":envvar:`LC_MESSAGES` e :envvar:`LANG`. O primeiro retornando um valor não " -"vazio é usado para a variável *languages*. As variáveis de ambiente devem " -"conter uma lista de idiomas separada por dois pontos, que será dividida nos " -"dois pontos para produzir a lista esperada de cadeias de código de idioma." +"ambiente serão pesquisadas: :envvar:`LANGUAGE`, :envvar:`LC_ALL`, :envvar:" +"`LC_MESSAGES` e :envvar:`LANG`. O primeiro retornando um valor não vazio é " +"usado para a variável *languages*. As variáveis de ambiente devem conter uma " +"lista de idiomas separada por dois pontos, que será dividida nos dois pontos " +"para produzir a lista esperada de cadeias de código de idioma." #: ../../library/gettext.rst:159 msgid "" @@ -278,60 +278,58 @@ msgstr ":file:`{localedir}/{language}/LC_MESSAGES/{domain}.mo`" #: ../../library/gettext.rst:164 msgid "" -"The first such file name that exists is returned by :func:`find`. If no such" -" file is found, then ``None`` is returned. If *all* is given, it returns a " +"The first such file name that exists is returned by :func:`find`. If no such " +"file is found, then ``None`` is returned. If *all* is given, it returns a " "list of all file names, in the order in which they appear in the languages " "list or the environment variables." msgstr "" -"O primeiro nome de arquivo existente é retornado por :func:`find`. Se nenhum" -" desses arquivos for encontrado, será retornado ``None``. Se *all* for " +"O primeiro nome de arquivo existente é retornado por :func:`find`. Se nenhum " +"desses arquivos for encontrado, será retornado ``None``. Se *all* for " "fornecido, ele retornará uma lista de todos os nomes de arquivos, na ordem " "em que aparecem na lista de idiomas ou nas variáveis de ambiente." #: ../../library/gettext.rst:172 msgid "" -"Return a :class:`*Translations` instance based on the *domain*, *localedir*," -" and *languages*, which are first passed to :func:`find` to get a list of " -"the associated :file:`.mo` file paths. Instances with identical :file:`.mo`" -" file names are cached. The actual class instantiated is *class_* if " +"Return a :class:`*Translations` instance based on the *domain*, *localedir*, " +"and *languages*, which are first passed to :func:`find` to get a list of the " +"associated :file:`.mo` file paths. Instances with identical :file:`.mo` " +"file names are cached. The actual class instantiated is *class_* if " "provided, otherwise :class:`GNUTranslations`. The class's constructor must " "take a single :term:`file object` argument. If provided, *codeset* will " -"change the charset used to encode translated strings in the " -":meth:`~NullTranslations.lgettext` and :meth:`~NullTranslations.lngettext` " -"methods." +"change the charset used to encode translated strings in the :meth:" +"`~NullTranslations.lgettext` and :meth:`~NullTranslations.lngettext` methods." msgstr "" "Retorna uma instância de :class:`*Translations` com base nos *domain*, " "*localedir* e *languages*, que são passados primeiro para :func:`find` para " "obter uma lista dos caminhos de arquivos :file:`.mo` associados. Instâncias " "com nomes de arquivo idênticos :file:`.mo` são armazenados em cache. A " -"classe atual instanciada é *class_* se fornecida, caso contrário " -":class:`GNUTranslations`. O construtor da classe deve usar um único " -"argumento :term:`objeto arquivo`. Se fornecido, *codeset* alterará o " -"conjunto de caracteres usado para codificar as strings traduzidas nos " -"métodos :meth:`~NullTranslations.lgettext` e " -":meth:`~NullTranslations.lngettext`." +"classe atual instanciada é *class_* se fornecida, caso contrário :class:" +"`GNUTranslations`. O construtor da classe deve usar um único argumento :term:" +"`objeto arquivo`. Se fornecido, *codeset* alterará o conjunto de caracteres " +"usado para codificar as strings traduzidas nos métodos :meth:" +"`~NullTranslations.lgettext` e :meth:`~NullTranslations.lngettext`." #: ../../library/gettext.rst:182 msgid "" "If multiple files are found, later files are used as fallbacks for earlier " -"ones. To allow setting the fallback, :func:`copy.copy` is used to clone each" -" translation object from the cache; the actual instance data is still shared" -" with the cache." +"ones. To allow setting the fallback, :func:`copy.copy` is used to clone each " +"translation object from the cache; the actual instance data is still shared " +"with the cache." msgstr "" "Se vários arquivos forem encontrados, os arquivos posteriores serão usados " -"como fallbacks para os anteriores. Para permitir a configuração do fallback," -" :func:`copy.copy` é usado para clonar cada objeto de conversão do cache; os" -" dados reais da instância ainda são compartilhados com o cache." +"como fallbacks para os anteriores. Para permitir a configuração do " +"fallback, :func:`copy.copy` é usado para clonar cada objeto de conversão do " +"cache; os dados reais da instância ainda são compartilhados com o cache." #: ../../library/gettext.rst:187 msgid "" "If no :file:`.mo` file is found, this function raises :exc:`OSError` if " -"*fallback* is false (which is the default), and returns a " -":class:`NullTranslations` instance if *fallback* is true." +"*fallback* is false (which is the default), and returns a :class:" +"`NullTranslations` instance if *fallback* is true." msgstr "" -"Se nenhum arquivo :file:`.mo` for encontrado, essa função levanta " -":exc:`OSError` se *fallback* for falso (que é o padrão) e retorna uma " -"instância :class:`NullTranslations` se *fallback* for verdadeiro." +"Se nenhum arquivo :file:`.mo` for encontrado, essa função levanta :exc:" +"`OSError` se *fallback* for falso (que é o padrão) e retorna uma instância :" +"class:`NullTranslations` se *fallback* for verdadeiro." #: ../../library/gettext.rst:191 msgid ":exc:`IOError` used to be raised instead of :exc:`OSError`." @@ -340,20 +338,20 @@ msgstr ":exc:`IOError` costumava ser levantado em vez do :exc:`OSError`." #: ../../library/gettext.rst:197 msgid "" "This installs the function :func:`_` in Python's builtins namespace, based " -"on *domain*, *localedir*, and *codeset* which are passed to the function " -":func:`translation`." +"on *domain*, *localedir*, and *codeset* which are passed to the function :" +"func:`translation`." msgstr "" "Isso instala a função :func:`_` no espaço de nomes interno do Python, com " -"base em *domain*, *localedir* e *codeset* que são passados para a função " -":func:`translation`." +"base em *domain*, *localedir* e *codeset* que são passados para a função :" +"func:`translation`." #: ../../library/gettext.rst:201 msgid "" "For the *names* parameter, please see the description of the translation " "object's :meth:`~NullTranslations.install` method." msgstr "" -"Para o parâmetro *names*, por favor, veja a descrição método " -":meth:`~NullTranslations.install` do objeto de tradução." +"Para o parâmetro *names*, por favor, veja a descrição método :meth:" +"`~NullTranslations.install` do objeto de tradução." #: ../../library/gettext.rst:204 msgid "" @@ -367,8 +365,8 @@ msgstr "" #: ../../library/gettext.rst:210 msgid "" -"For convenience, you want the :func:`_` function to be installed in Python's" -" builtins namespace, so it is easily accessible in all modules of your " +"For convenience, you want the :func:`_` function to be installed in Python's " +"builtins namespace, so it is easily accessible in all modules of your " "application." msgstr "" "Por conveniência, você deseja que a função :func:`_` seja instalada no " @@ -388,11 +386,11 @@ msgid "" "classes. Here are the methods of :class:`!NullTranslations`:" msgstr "" "As classes de tradução são o que realmente implementa a tradução de strings " -"de mensagens do arquivo-fonte original para strings de mensagens traduzidas." -" A classe base usada por todas as classes de tradução é " -":class:`NullTranslations`; isso fornece a interface básica que você pode " -"usar para escrever suas próprias classes de tradução especializadas. Aqui " -"estão os métodos de :class:`!NullTranslations`:" +"de mensagens do arquivo-fonte original para strings de mensagens traduzidas. " +"A classe base usada por todas as classes de tradução é :class:" +"`NullTranslations`; isso fornece a interface básica que você pode usar para " +"escrever suas próprias classes de tradução especializadas. Aqui estão os " +"métodos de :class:`!NullTranslations`:" #: ../../library/gettext.rst:227 msgid "" @@ -402,6 +400,11 @@ msgid "" "through :meth:`add_fallback`. It then calls ``self._parse(fp)`` if *fp* is " "not ``None``." msgstr "" +"Recebe um :term:`objeto arquivo ` opcional *fp*, que é ignorado " +"pela classe base. Inicializa as variáveis de instância \"protegidas\" " +"*_info* e *_charset*, que são definidas por classes derivadas, bem como " +"*_fallback*, que é definido através de :meth:`add_fallback`. Ele então chama " +"``self._parse(fp)`` se *fp* não for ``None``." #: ../../library/gettext.rst:235 msgid "" @@ -410,6 +413,10 @@ msgid "" "unsupported message catalog file format, you should override this method to " "parse your format." msgstr "" +"No-op na classe base, esse método pega o objeto de arquivo *fp* e lê os " +"dados do arquivo, inicializando seu catálogo de mensagens. Se você tiver um " +"formato de arquivo de catálogo de mensagens não suportado, substitua esse " +"método para analisar seu formato." #: ../../library/gettext.rst:243 msgid "" @@ -417,12 +424,18 @@ msgid "" "translation object should consult the fallback if it cannot provide a " "translation for a given message." msgstr "" +"Adiciona *fallback* como o objeto reserva para o objeto de tradução atual. " +"Um objeto de tradução deve consultar o fallback se não puder fornecer uma " +"tradução para uma determinada mensagem." #: ../../library/gettext.rst:250 msgid "" "If a fallback has been set, forward :meth:`!gettext` to the fallback. " "Otherwise, return *message*. Overridden in derived classes." msgstr "" +"Se um fallback tiver sido definido, encaminhe :meth:`!Gettext` para o " +"fallback. Caso contrário, retorne *message*. Sobrecarregado em classes " +"derivadas." #: ../../library/gettext.rst:256 msgid "" @@ -430,106 +443,148 @@ msgid "" "Otherwise, return *singular* if *n* is 1; return *plural* otherwise. " "Overridden in derived classes." msgstr "" +"Se um fallback tiver sido definido, encaminha :meth:`!ngettext` para o " +"fallback. Caso contrário, retorne *singular* se *n* for 1; do contrário, " +"retorna *plural*. Sobrecarregado em classes derivadas." #: ../../library/gettext.rst:264 msgid "" -"Equivalent to :meth:`.gettext` and :meth:`.ngettext`, but the translation is" -" returned as a byte string encoded in the preferred system encoding if no " +"Equivalent to :meth:`.gettext` and :meth:`.ngettext`, but the translation is " +"returned as a byte string encoded in the preferred system encoding if no " "encoding was explicitly set with :meth:`set_output_charset`. Overridden in " "derived classes." msgstr "" +"Equivale a :meth:`.gettext` e :meth:`.ngettext`, mas a tradução é retornada " +"como uma string de bytes codificada na codificação preferida do sistema, se " +"nenhuma codificação foi explicitamente definida com :meth:" +"`set_output_charset`. Sobrecarregado em classes derivadas." #: ../../library/gettext.rst:271 ../../library/gettext.rst:393 msgid "" -"These methods should be avoided in Python 3. See the warning for the " -":func:`lgettext` function." +"These methods should be avoided in Python 3. See the warning for the :func:" +"`lgettext` function." msgstr "" +"Esses métodos devem ser evitados no Python 3. Veja o aviso para a função :" +"func:`lgettext`." #: ../../library/gettext.rst:277 msgid "" -"Return the \"protected\" :attr:`_info` variable, a dictionary containing the" -" metadata found in the message catalog file." +"Return the \"protected\" :attr:`_info` variable, a dictionary containing the " +"metadata found in the message catalog file." msgstr "" +"Retorna a variável :attr:`_info` \"protegida\", um dicionário que contém os " +"metadados encontrados no arquivo de catálogo de mensagens." #: ../../library/gettext.rst:283 msgid "Return the encoding of the message catalog file." -msgstr "" +msgstr "Retorna a codificação do arquivo de catálogo de mensagens." #: ../../library/gettext.rst:288 msgid "" "Return the encoding used to return translated messages in :meth:`.lgettext` " "and :meth:`.lngettext`." msgstr "" +"Retorna a codificação usada para retornar as mensagens traduzidas em :meth:`." +"lgettext` e :meth:`.lngettext`." #: ../../library/gettext.rst:294 msgid "Change the encoding used to return translated messages." -msgstr "" +msgstr "Altera a codificação usada para retornar mensagens traduzidas." #: ../../library/gettext.rst:299 msgid "" "This method installs :meth:`.gettext` into the built-in namespace, binding " "it to ``_``." msgstr "" +"Este método instala :meth:`.gettext` no espaço de nomes embutido, vinculando-" +"o a ``_``." #: ../../library/gettext.rst:302 msgid "" "If the *names* parameter is given, it must be a sequence containing the " -"names of functions you want to install in the builtins namespace in addition" -" to :func:`_`. Supported names are ``'gettext'``, ``'ngettext'``, " +"names of functions you want to install in the builtins namespace in addition " +"to :func:`_`. Supported names are ``'gettext'``, ``'ngettext'``, " "``'lgettext'`` and ``'lngettext'``." msgstr "" #: ../../library/gettext.rst:307 msgid "" -"Note that this is only one way, albeit the most convenient way, to make the " -":func:`_` function available to your application. Because it affects the " +"Note that this is only one way, albeit the most convenient way, to make the :" +"func:`_` function available to your application. Because it affects the " "entire application globally, and specifically the built-in namespace, " "localized modules should never install :func:`_`. Instead, they should use " "this code to make :func:`_` available to their module::" msgstr "" +"Observe que esta é apenas uma maneira, embora a maneira mais conveniente, de " +"disponibilizar a função :func:`_` para o seu aplicativo. Como afeta o " +"aplicativo inteiro globalmente, e especificamente o espaço de nomes " +"embutido, os módulos localizados nunca devem instalar :func:`_`. Em vez " +"disso, eles devem usar este código para disponibilizar :func:`_` para seu " +"módulo::" #: ../../library/gettext.rst:317 msgid "" "This puts :func:`_` only in the module's global namespace and so only " "affects calls within this module." msgstr "" +"Isso coloca :func:`_` apenas no espaço de nomes global do módulo e, " +"portanto, afeta apenas as chamadas dentro deste módulo." #: ../../library/gettext.rst:322 msgid "The :class:`GNUTranslations` class" -msgstr "" +msgstr "A classe :class:`GNUTranslations`" #: ../../library/gettext.rst:324 msgid "" -"The :mod:`gettext` module provides one additional class derived from " -":class:`NullTranslations`: :class:`GNUTranslations`. This class overrides " -":meth:`_parse` to enable reading GNU :program:`gettext` format :file:`.mo` " -"files in both big-endian and little-endian format." +"The :mod:`gettext` module provides one additional class derived from :class:" +"`NullTranslations`: :class:`GNUTranslations`. This class overrides :meth:" +"`_parse` to enable reading GNU :program:`gettext` format :file:`.mo` files " +"in both big-endian and little-endian format." msgstr "" +"O módulo :mod:`gettext` fornece uma classe adicional derivada de :class:" +"`NullTranslations`: :class:`GNUTranslations`. Esta classe sobrecarrega :meth:" +"`_parse` para permitir a leitura de arquivos :file:`.mo` do formato GNU :" +"program:`gettext` nos formatos big-endian e little-endian." #: ../../library/gettext.rst:329 msgid "" ":class:`GNUTranslations` parses optional metadata out of the translation " -"catalog. It is convention with GNU :program:`gettext` to include metadata as" -" the translation for the empty string. This metadata is in :rfc:`822`\\ " -"-style ``key: value`` pairs, and should contain the ``Project-Id-Version`` " -"key. If the key ``Content-Type`` is found, then the ``charset`` property is" -" used to initialize the \"protected\" :attr:`_charset` instance variable, " +"catalog. It is convention with GNU :program:`gettext` to include metadata as " +"the translation for the empty string. This metadata is in :rfc:`822`\\ -" +"style ``key: value`` pairs, and should contain the ``Project-Id-Version`` " +"key. If the key ``Content-Type`` is found, then the ``charset`` property is " +"used to initialize the \"protected\" :attr:`_charset` instance variable, " "defaulting to ``None`` if not found. If the charset encoding is specified, " -"then all message ids and message strings read from the catalog are converted" -" to Unicode using this encoding, else ASCII is assumed." -msgstr "" +"then all message ids and message strings read from the catalog are converted " +"to Unicode using this encoding, else ASCII is assumed." +msgstr "" +":class:`GNUTranslations` analisa metadados opcionais do catálogo de " +"tradução. É uma convenção com o GNU :program:`gettext` incluir metadados " +"como tradução para a string vazia. Esses metadados estão nos pares ``chave: " +"valor`` no estilo :rfc:`822` e devem conter a chave ``Project-Id-Version``. " +"Se a chave ``Content-Type`` for encontrada, a propriedade ``charset`` será " +"usada para inicializar a variável de instância :attr:`_charset` \"protegida" +"\", com o padrão ``None`` se não for encontrada. Se a codificação de " +"\"charset\" for especificada, todos os IDs e strings de mensagens lidos no " +"catálogo serão convertidos em Unicode usando essa codificação, caso " +"contrário, o ASCII será presumido." #: ../../library/gettext.rst:339 msgid "" "Since message ids are read as Unicode strings too, all :meth:`*gettext` " "methods will assume message ids as Unicode strings, not byte strings." msgstr "" +"Como os IDs de mensagens também são lidos como strings Unicode, todos os " +"métodos :meth:`*gettext` presumem os IDs de mensagens como sendo strings " +"Unicode, não como strings de bytes." #: ../../library/gettext.rst:342 msgid "" "The entire set of key/value pairs are placed into a dictionary and set as " "the \"protected\" :attr:`_info` instance variable." msgstr "" +"Todo o conjunto de pares chave/valor é colocado em um dicionário e definido " +"como a variável de instância :attr:`_info` \"protegida\"." #: ../../library/gettext.rst:345 msgid "" @@ -537,85 +592,118 @@ msgid "" "is unexpected, or if other problems occur while reading the file, " "instantiating a :class:`GNUTranslations` class can raise :exc:`OSError`." msgstr "" +"Se o número mágico do arquivo :file:`.mo` for inválido, o número principal " +"da versão é inesperado ou se ocorrerem outros problemas durante a leitura do " +"arquivo, instanciando uma classe :class:`GNUTranslations` pode levantar :exc:" +"`OSError`." #: ../../library/gettext.rst:351 msgid "" "The following methods are overridden from the base class implementation:" msgstr "" +"Os seguintes métodos são substituídos a partir da implementação da classe " +"base:" #: ../../library/gettext.rst:355 msgid "" -"Look up the *message* id in the catalog and return the corresponding message" -" string, as a Unicode string. If there is no entry in the catalog for the " +"Look up the *message* id in the catalog and return the corresponding message " +"string, as a Unicode string. If there is no entry in the catalog for the " "*message* id, and a fallback has been set, the look up is forwarded to the " "fallback's :meth:`~NullTranslations.gettext` method. Otherwise, the " "*message* id is returned." msgstr "" +"Procura o ID da *message* no catálogo e retorna a sequência de mensagens " +"correspondente, como uma string Unicode. Se não houver entrada no catálogo " +"para o ID da *message* e um fallback tiver sido definido, a pesquisa será " +"encaminhada para o método do fallback :meth:`~NullTranslations.gettext`. " +"Caso contrário, o ID da *message* é retornado." #: ../../library/gettext.rst:364 msgid "" -"Do a plural-forms lookup of a message id. *singular* is used as the message" -" id for purposes of lookup in the catalog, while *n* is used to determine " +"Do a plural-forms lookup of a message id. *singular* is used as the message " +"id for purposes of lookup in the catalog, while *n* is used to determine " "which plural form to use. The returned message string is a Unicode string." msgstr "" +"faz uma pesquisa de plural-forms de um ID de mensagem. *singular* é usado " +"como o ID da mensagem para fins de pesquisa no catálogo, enquanto *n* é " +"usado para determinar qual forma plural usar. A string de mensagens " +"retornada é uma string Unicode." #: ../../library/gettext.rst:368 msgid "" "If the message id is not found in the catalog, and a fallback is specified, " -"the request is forwarded to the fallback's " -":meth:`~NullTranslations.ngettext` method. Otherwise, when *n* is 1 " -"*singular* is returned, and *plural* is returned in all other cases." +"the request is forwarded to the fallback's :meth:`~NullTranslations." +"ngettext` method. Otherwise, when *n* is 1 *singular* is returned, and " +"*plural* is returned in all other cases." msgstr "" +"Se o ID da mensagem não for encontrado no catálogo e um fallback for " +"especificado, a solicitação será encaminhada para o método do fallback :meth:" +"`~NullTranslations.ngettext`. Caso contrário, quando *n* for 1, *singular* " +"será retornado e *plural* será retornado em todos os outros casos." #: ../../library/gettext.rst:373 msgid "Here is an example::" -msgstr "" +msgstr "Aqui está um exemplo::" #: ../../library/gettext.rst:386 msgid "" -"Equivalent to :meth:`.gettext` and :meth:`.ngettext`, but the translation is" -" returned as a byte string encoded in the preferred system encoding if no " -"encoding was explicitly set with " -":meth:`~NullTranslations.set_output_charset`." +"Equivalent to :meth:`.gettext` and :meth:`.ngettext`, but the translation is " +"returned as a byte string encoded in the preferred system encoding if no " +"encoding was explicitly set with :meth:`~NullTranslations." +"set_output_charset`." msgstr "" +"Equivale a :meth:`.gettext` e :meth:`.ngettext`, mas a tradução é retornada " +"como uma string de bytes codificada na codificação preferida do sistema, se " +"nenhuma codificação foi explicitamente definida com :meth:`~NullTranslations." +"set_output_charset`." #: ../../library/gettext.rst:398 msgid "Solaris message catalog support" -msgstr "" +msgstr "Suporte a catálogo de mensagens do Solaris" #: ../../library/gettext.rst:400 msgid "" -"The Solaris operating system defines its own binary :file:`.mo` file format," -" but since no documentation can be found on this format, it is not supported" -" at this time." +"The Solaris operating system defines its own binary :file:`.mo` file format, " +"but since no documentation can be found on this format, it is not supported " +"at this time." msgstr "" +"O sistema operacional Solaris define seu próprio formato de arquivo binário :" +"file:`.mo`, mas como nenhuma documentação pode ser encontrada nesse formato, " +"ela não é suportada no momento." #: ../../library/gettext.rst:406 msgid "The Catalog constructor" -msgstr "" +msgstr "O construtor Catalog" #: ../../library/gettext.rst:410 msgid "" "GNOME uses a version of the :mod:`gettext` module by James Henstridge, but " "this version has a slightly different API. Its documented usage was::" msgstr "" +"O GNOME usa uma versão do módulo :mod:`gettext` de James Henstridge, mas " +"esta versão tem uma API um pouco diferente. Seu uso documentado foi::" #: ../../library/gettext.rst:418 msgid "" -"For compatibility with this older module, the function :func:`Catalog` is an" -" alias for the :func:`translation` function described above." +"For compatibility with this older module, the function :func:`Catalog` is an " +"alias for the :func:`translation` function described above." msgstr "" +"Para compatibilidade com este módulo mais antigo, a função :func:`Catalog` é " +"um apelido para a função :func:`translation` descrita acima." #: ../../library/gettext.rst:421 msgid "" "One difference between this module and Henstridge's: his catalog objects " -"supported access through a mapping API, but this appears to be unused and so" -" is not currently supported." +"supported access through a mapping API, but this appears to be unused and so " +"is not currently supported." msgstr "" +"Uma diferença entre este módulo e o de Henstridge: seus objetos de catálogo " +"suportavam o acesso por meio de uma API de mapeamento, mas isso parece não " +"ser utilizado e, portanto, não é atualmente suportado." #: ../../library/gettext.rst:427 msgid "Internationalizing your programs and modules" -msgstr "" +msgstr "Internacionalizando seus programas e módulos" #: ../../library/gettext.rst:429 msgid "" @@ -625,27 +713,36 @@ msgid "" "and cultural habits. In order to provide multilingual messages for your " "Python programs, you need to take the following steps:" msgstr "" +"Internationalization (I18N), ou internacionalização (I17O) em português, " +"refere-se à operação pela qual um programa é informado sobre vários idiomas. " +"Localization (L10N), ou localização em português, refere-se à adaptação do " +"seu programa, uma vez internacionalizado, aos hábitos culturais e de idioma " +"local. Para fornecer mensagens multilíngues para seus programas Python, você " +"precisa executar as seguintes etapas:" #: ../../library/gettext.rst:435 msgid "" "prepare your program or module by specially marking translatable strings" msgstr "" +"preparar seu programa ou módulo marcando especialmente strings traduzíveis" #: ../../library/gettext.rst:437 msgid "" -"run a suite of tools over your marked files to generate raw messages " -"catalogs" +"run a suite of tools over your marked files to generate raw messages catalogs" msgstr "" +"executar um conjunto de ferramentas nos arquivos marcados para gerar " +"catálogos de mensagens não tratadas" #: ../../library/gettext.rst:439 msgid "create language-specific translations of the message catalogs" -msgstr "" +msgstr "criar traduções específicas do idioma dos catálogos de mensagens" #: ../../library/gettext.rst:441 msgid "" -"use the :mod:`gettext` module so that message strings are properly " -"translated" +"use the :mod:`gettext` module so that message strings are properly translated" msgstr "" +"usar o módulo :mod:`gettext` para que as strings das mensagens sejam " +"traduzidas corretamente" #: ../../library/gettext.rst:443 msgid "" @@ -654,58 +751,88 @@ msgid "" "wrapping it in ``_('...')`` --- that is, a call to the function :func:`_`. " "For example::" msgstr "" +"Para preparar seu código para I18N, você precisa examinar todas as strings " +"em seus arquivos. Qualquer string que precise ser traduzida deve ser marcada " +"envolvendo-a em ``_('...')`` --- isto é, uma chamada para a função :func:" +"`_`. Por exemplo::" #: ../../library/gettext.rst:452 msgid "" "In this example, the string ``'writing a log message'`` is marked as a " -"candidate for translation, while the strings ``'mylog.txt'`` and ``'w'`` are" -" not." +"candidate for translation, while the strings ``'mylog.txt'`` and ``'w'`` are " +"not." msgstr "" +"Neste exemplo, a string ``'writing a log message'`` está marcada como um " +"candidato para tradução, enquanto as strings ``'mylog.txt'`` e ``'w'`` não " +"estão." #: ../../library/gettext.rst:455 msgid "" "There are a few tools to extract the strings meant for translation. The " "original GNU :program:`gettext` only supported C or C++ source code but its " "extended version :program:`xgettext` scans code written in a number of " -"languages, including Python, to find strings marked as translatable. `Babel" -" `__ is a Python internationalization library that " +"languages, including Python, to find strings marked as translatable. `Babel " +"`__ is a Python internationalization library that " "includes a :file:`pybabel` script to extract and compile message catalogs. " "François Pinard's program called :program:`xpot` does a similar job and is " "available as part of his `po-utils package `__." msgstr "" +"Existem algumas ferramentas para extrair as strings destinadas à tradução. O " +"GNU :program:`gettext` original tem suporte apenas ao código-fonte C ou C++, " +"mas sua versão estendida :program:`xgettext` varre o código escrito em " +"várias linguagens, incluindo Python, para encontrar strings marcadas como " +"traduzíveis. `Babel `__ é uma biblioteca de " +"internacionalização do Python que inclui um script :file:`pybabel` para " +"extrair e compilar catálogos de mensagens. O programa de François Pinard " +"chamado :program:`xpot` faz um trabalho semelhante e está disponível como " +"parte de seu pacote `po-utils `__." #: ../../library/gettext.rst:465 msgid "" -"(Python also includes pure-Python versions of these programs, called " -":program:`pygettext.py` and :program:`msgfmt.py`; some Python distributions " -"will install them for you. :program:`pygettext.py` is similar to " -":program:`xgettext`, but only understands Python source code and cannot " -"handle other programming languages such as C or C++. :program:`pygettext.py`" -" supports a command-line interface similar to :program:`xgettext`; for " -"details on its use, run ``pygettext.py --help``. :program:`msgfmt.py` is " -"binary compatible with GNU :program:`msgfmt`. With these two programs, you " -"may not need the GNU :program:`gettext` package to internationalize your " -"Python applications.)" -msgstr "" +"(Python also includes pure-Python versions of these programs, called :" +"program:`pygettext.py` and :program:`msgfmt.py`; some Python distributions " +"will install them for you. :program:`pygettext.py` is similar to :program:" +"`xgettext`, but only understands Python source code and cannot handle other " +"programming languages such as C or C++. :program:`pygettext.py` supports a " +"command-line interface similar to :program:`xgettext`; for details on its " +"use, run ``pygettext.py --help``. :program:`msgfmt.py` is binary compatible " +"with GNU :program:`msgfmt`. With these two programs, you may not need the " +"GNU :program:`gettext` package to internationalize your Python applications.)" +msgstr "" +"(O Python também inclui versões em Python puro desses programas, chamadas :" +"program:`pygettext.py` e :program:`msgfmt.py`; algumas distribuições do " +"Python as instalam para você. O :program:`pygettext.py` é semelhante ao :" +"program:`xgettext`, mas apenas entende o código-fonte do Python e não " +"consegue lidar com outras linguagens de programação como C ou C++. O :" +"program:`pygettext.py` possui suporte a uma interface de linha de comando " +"semelhante à do :program:`xgettext`; para detalhes sobre seu uso, execute " +"``pygettext.py --help``. O :program:`msgfmt.py` é compatível com binários " +"com GNU :program:`msgfmt`. Com esses dois programas, você pode não precisar " +"do pacote GNU :program`gettext` para internacionalizar seus aplicativos " +"Python.)" #: ../../library/gettext.rst:477 msgid "" -":program:`xgettext`, :program:`pygettext`, and similar tools generate " -":file:`.po` files that are message catalogs. They are structured human-" -"readable files that contain every marked string in the source code, along " -"with a placeholder for the translated versions of these strings." +":program:`xgettext`, :program:`pygettext`, and similar tools generate :file:" +"`.po` files that are message catalogs. They are structured human-readable " +"files that contain every marked string in the source code, along with a " +"placeholder for the translated versions of these strings." msgstr "" +":program:`xgettext`, :program:`pygettext` e ferramentas similares geram :" +"file:`.po` que são catálogos de mensagens. Eles são arquivos legíveis por " +"humanos estruturados que contêm todas as strings marcadas no código-fonte, " +"junto com um espaço reservado para as versões traduzidas dessas strings." #: ../../library/gettext.rst:483 msgid "" "Copies of these :file:`.po` files are then handed over to the individual " "human translators who write translations for every supported natural " -"language. They send back the completed language-specific versions as a " -":file:`.po` file that's compiled into a machine-readable " -":file:`.mo` binary catalog file using the :program:`msgfmt` program. The " -":file:`.mo` files are used by the :mod:`gettext` module for the actual " -"translation processing at run-time." +"language. They send back the completed language-specific versions as a :" +"file:`.po` file that's compiled into a machine-readable :file:" +"`.mo` binary catalog file using the :program:`msgfmt` program. The :file:`." +"mo` files are used by the :mod:`gettext` module for the actual translation " +"processing at run-time." msgstr "" #: ../../library/gettext.rst:492 @@ -722,8 +849,8 @@ msgstr "" #: ../../library/gettext.rst:500 msgid "" "If you are localizing your module, you must take care not to make global " -"changes, e.g. to the built-in namespace. You should not use the GNU " -":program:`gettext` API but instead the class-based API." +"changes, e.g. to the built-in namespace. You should not use the GNU :program:" +"`gettext` API but instead the class-based API." msgstr "" #: ../../library/gettext.rst:504 @@ -742,8 +869,8 @@ msgstr "" msgid "" "If you are localizing your application, you can install the :func:`_` " "function globally into the built-in namespace, usually in the main driver " -"file of your application. This will let all your application-specific files" -" just use ``_('...')`` without having to explicitly install it in each file." +"file of your application. This will let all your application-specific files " +"just use ``_('...')`` without having to explicitly install it in each file." msgstr "" #: ../../library/gettext.rst:522 @@ -754,8 +881,8 @@ msgstr "" #: ../../library/gettext.rst:528 msgid "" -"If you need to set the locale directory, you can pass it into the " -":func:`install` function::" +"If you need to set the locale directory, you can pass it into the :func:" +"`install` function::" msgstr "" #: ../../library/gettext.rst:536 @@ -803,8 +930,8 @@ msgstr "" #: ../../library/gettext.rst:600 msgid "" "Note that the second use of :func:`_` will not identify \"a\" as being " -"translatable to the :program:`gettext` program, because the parameter is not" -" a string literal." +"translatable to the :program:`gettext` program, because the parameter is not " +"a string literal." msgstr "" #: ../../library/gettext.rst:604 @@ -813,14 +940,14 @@ msgstr "" #: ../../library/gettext.rst:618 msgid "" -"In this case, you are marking translatable strings with the function " -":func:`N_`, which won't conflict with any definition of :func:`_`. However, " -"you will need to teach your message extraction program to look for " -"translatable strings marked with :func:`N_`. :program:`xgettext`, " -":program:`pygettext`, ``pybabel extract``, and :program:`xpot` all support " -"this through the use of the :option:`!-k` command-line switch. The choice of" -" :func:`N_` here is totally arbitrary; it could have just as easily been " -":func:`MarkThisStringForTranslation`." +"In this case, you are marking translatable strings with the function :func:" +"`N_`, which won't conflict with any definition of :func:`_`. However, you " +"will need to teach your message extraction program to look for translatable " +"strings marked with :func:`N_`. :program:`xgettext`, :program:`pygettext`, " +"``pybabel extract``, and :program:`xpot` all support this through the use of " +"the :option:`!-k` command-line switch. The choice of :func:`N_` here is " +"totally arbitrary; it could have just as easily been :func:" +"`MarkThisStringForTranslation`." msgstr "" #: ../../library/gettext.rst:629 @@ -873,12 +1000,12 @@ msgstr "Notas de rodapé" #: ../../library/gettext.rst:652 msgid "" "The default locale directory is system dependent; for example, on RedHat " -"Linux it is :file:`/usr/share/locale`, but on Solaris it is " -":file:`/usr/lib/locale`. The :mod:`gettext` module does not try to support " -"these system dependent defaults; instead its default is " -":file:`{sys.prefix}/share/locale` (see :data:`sys.prefix`). For this reason," -" it is always best to call :func:`bindtextdomain` with an explicit absolute " -"path at the start of your application." +"Linux it is :file:`/usr/share/locale`, but on Solaris it is :file:`/usr/lib/" +"locale`. The :mod:`gettext` module does not try to support these system " +"dependent defaults; instead its default is :file:`{sys.base_prefix}/share/" +"locale` (see :data:`sys.base_prefix`). For this reason, it is always best to " +"call :func:`bindtextdomain` with an explicit absolute path at the start of " +"your application." msgstr "" #: ../../library/gettext.rst:660 diff --git a/library/glob.po b/library/glob.po index 08267d981..c592f48dd 100644 --- a/library/glob.po +++ b/library/glob.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-12 03:27+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,14 +34,14 @@ msgstr "**Código Fonte:** :source:`Lib/glob.py`" #: ../../library/glob.rst:21 msgid "" "The :mod:`glob` module finds all the pathnames matching a specified pattern " -"according to the rules used by the Unix shell, although results are returned" -" in arbitrary order. No tilde expansion is done, but ``*``, ``?``, and " +"according to the rules used by the Unix shell, although results are returned " +"in arbitrary order. No tilde expansion is done, but ``*``, ``?``, and " "character ranges expressed with ``[]`` will be correctly matched. This is " "done by using the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions " -"in concert, and not by actually invoking a subshell. Note that unlike " -":func:`fnmatch.fnmatch`, :mod:`glob` treats filenames beginning with a dot " -"(``.``) as special cases. (For tilde and shell variable expansion, use " -":func:`os.path.expanduser` and :func:`os.path.expandvars`.)" +"in concert, and not by actually invoking a subshell. Note that unlike :func:" +"`fnmatch.fnmatch`, :mod:`glob` treats filenames beginning with a dot (``.``) " +"as special cases. (For tilde and shell variable expansion, use :func:`os." +"path.expanduser` and :func:`os.path.expandvars`.)" msgstr "" #: ../../library/glob.rst:31 @@ -50,23 +52,23 @@ msgstr "" #: ../../library/glob.rst:36 msgid "The :mod:`pathlib` module offers high-level path objects." -msgstr "" +msgstr "O módulo :mod:`pathlib` oferece objetos de caminho de alto nível." #: ../../library/glob.rst:41 msgid "" -"Return a possibly-empty list of path names that match *pathname*, which must" -" be a string containing a path specification. *pathname* can be either " -"absolute (like :file:`/usr/src/Python-1.5/Makefile`) or relative (like " -":file:`../../Tools/\\*/\\*.gif`), and can contain shell-style wildcards. " -"Broken symlinks are included in the results (as in the shell)." +"Return a possibly-empty list of path names that match *pathname*, which must " +"be a string containing a path specification. *pathname* can be either " +"absolute (like :file:`/usr/src/Python-1.5/Makefile`) or relative (like :file:" +"`../../Tools/\\*/\\*.gif`), and can contain shell-style wildcards. Broken " +"symlinks are included in the results (as in the shell)." msgstr "" #: ../../library/glob.rst:50 msgid "" -"If *recursive* is true, the pattern \"``**``\" will match any files and zero" -" or more directories, subdirectories and symbolic links to directories. If " -"the pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files" -" will not match." +"If *recursive* is true, the pattern \"``**``\" will match any files and zero " +"or more directories, subdirectories and symbolic links to directories. If " +"the pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files " +"will not match." msgstr "" #: ../../library/glob.rst:56 @@ -87,27 +89,27 @@ msgstr "" #: ../../library/glob.rst:71 msgid "" -"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful" -" if you want to match an arbitrary literal string that may have special " +"Escape all special characters (``'?'``, ``'*'`` and ``'['``). This is useful " +"if you want to match an arbitrary literal string that may have special " "characters in it. Special characters in drive/UNC sharepoints are not " -"escaped, e.g. on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns " -"``'//?/c:/Quo vadis[?].txt'``." +"escaped, e.g. on Windows ``escape('//?/c:/Quo vadis?.txt')`` returns ``'//?/" +"c:/Quo vadis[?].txt'``." msgstr "" #: ../../library/glob.rst:80 msgid "" -"For example, consider a directory containing the following files: " -":file:`1.gif`, :file:`2.txt`, :file:`card.gif` and a subdirectory " -":file:`sub` which contains only the file :file:`3.txt`. :func:`glob` will " -"produce the following results. Notice how any leading components of the " -"path are preserved. ::" +"For example, consider a directory containing the following files: :file:`1." +"gif`, :file:`2.txt`, :file:`card.gif` and a subdirectory :file:`sub` which " +"contains only the file :file:`3.txt`. :func:`glob` will produce the " +"following results. Notice how any leading components of the path are " +"preserved. ::" msgstr "" #: ../../library/glob.rst:98 msgid "" -"If the directory contains files starting with ``.`` they won't be matched by" -" default. For example, consider a directory containing :file:`card.gif` and " -":file:`.card.gif`::" +"If the directory contains files starting with ``.`` they won't be matched by " +"default. For example, consider a directory containing :file:`card.gif` and :" +"file:`.card.gif`::" msgstr "" #: ../../library/glob.rst:110 diff --git a/library/grp.po b/library/grp.po index bd437366b..810819acd 100644 --- a/library/grp.po +++ b/library/grp.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,9 +37,9 @@ msgstr "" #: ../../library/grp.rst:13 msgid "" -"Group database entries are reported as a tuple-like object, whose attributes" -" correspond to the members of the ``group`` structure (Attribute field " -"below, see ````):" +"Group database entries are reported as a tuple-like object, whose attributes " +"correspond to the members of the ``group`` structure (Attribute field below, " +"see ````):" msgstr "" #: ../../library/grp.rst:18 @@ -103,13 +104,13 @@ msgstr "" #: ../../library/grp.rst:31 msgid "" -"The gid is an integer, name and password are strings, and the member list is" -" a list of strings. (Note that most users are not explicitly listed as " +"The gid is an integer, name and password are strings, and the member list is " +"a list of strings. (Note that most users are not explicitly listed as " "members of the group they are in according to the password database. Check " "both databases to get complete membership information. Also note that a " "``gr_name`` that starts with a ``+`` or ``-`` is likely to be a YP/NIS " -"reference and may not be accessible via :func:`getgrnam` or " -":func:`getgrgid`.)" +"reference and may not be accessible via :func:`getgrnam` or :func:" +"`getgrgid`.)" msgstr "" #: ../../library/grp.rst:38 @@ -118,20 +119,20 @@ msgstr "Isto define os seguintes itens" #: ../../library/grp.rst:43 msgid "" -"Return the group database entry for the given numeric group ID. " -":exc:`KeyError` is raised if the entry asked for cannot be found." +"Return the group database entry for the given numeric group ID. :exc:" +"`KeyError` is raised if the entry asked for cannot be found." msgstr "" #: ../../library/grp.rst:46 msgid "" -"Since Python 3.6 the support of non-integer arguments like floats or strings" -" in :func:`getgrgid` is deprecated." +"Since Python 3.6 the support of non-integer arguments like floats or strings " +"in :func:`getgrgid` is deprecated." msgstr "" #: ../../library/grp.rst:52 msgid "" -"Return the group database entry for the given group name. :exc:`KeyError` is" -" raised if the entry asked for cannot be found." +"Return the group database entry for the given group name. :exc:`KeyError` is " +"raised if the entry asked for cannot be found." msgstr "" #: ../../library/grp.rst:58 diff --git a/library/gzip.po b/library/gzip.po index 11b325707..db85caeea 100644 --- a/library/gzip.po +++ b/library/gzip.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Christian Janiake , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Christian Janiake , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,18 +44,18 @@ msgstr "" #: ../../library/gzip.rst:16 msgid "" -"The :mod:`gzip` module provides the :class:`GzipFile` class, as well as the " -":func:`.open`, :func:`compress` and :func:`decompress` convenience " -"functions. The :class:`GzipFile` class reads and writes :program:`gzip`\\ " -"-format files, automatically compressing or decompressing the data so that " -"it looks like an ordinary :term:`file object`." +"The :mod:`gzip` module provides the :class:`GzipFile` class, as well as the :" +"func:`.open`, :func:`compress` and :func:`decompress` convenience functions. " +"The :class:`GzipFile` class reads and writes :program:`gzip`\\ -format " +"files, automatically compressing or decompressing the data so that it looks " +"like an ordinary :term:`file object`." msgstr "" #: ../../library/gzip.rst:22 msgid "" -"Note that additional file formats which can be decompressed by the " -":program:`gzip` and :program:`gunzip` programs, such as those produced by " -":program:`compress` and :program:`pack`, are not supported by this module." +"Note that additional file formats which can be decompressed by the :program:" +"`gzip` and :program:`gunzip` programs, such as those produced by :program:" +"`compress` and :program:`pack`, are not supported by this module." msgstr "" #: ../../library/gzip.rst:26 @@ -68,8 +70,8 @@ msgstr "" #: ../../library/gzip.rst:34 msgid "" -"The *filename* argument can be an actual filename (a :class:`str` or " -":class:`bytes` object), or an existing file object to read from or write to." +"The *filename* argument can be an actual filename (a :class:`str` or :class:" +"`bytes` object), or an existing file object to read from or write to." msgstr "" #: ../../library/gzip.rst:37 @@ -81,8 +83,8 @@ msgstr "" #: ../../library/gzip.rst:41 msgid "" -"The *compresslevel* argument is an integer from 0 to 9, as for the " -":class:`GzipFile` constructor." +"The *compresslevel* argument is an integer from 0 to 9, as for the :class:" +"`GzipFile` constructor." msgstr "" #: ../../library/gzip.rst:44 @@ -94,15 +96,15 @@ msgstr "" #: ../../library/gzip.rst:48 msgid "" -"For text mode, a :class:`GzipFile` object is created, and wrapped in an " -":class:`io.TextIOWrapper` instance with the specified encoding, error " +"For text mode, a :class:`GzipFile` object is created, and wrapped in an :" +"class:`io.TextIOWrapper` instance with the specified encoding, error " "handling behavior, and line ending(s)." msgstr "" #: ../../library/gzip.rst:52 msgid "" -"Added support for *filename* being a file object, support for text mode, and" -" the *encoding*, *errors* and *newline* arguments." +"Added support for *filename* being a file object, support for text mode, and " +"the *encoding*, *errors* and *newline* arguments." msgstr "" #: ../../library/gzip.rst:56 @@ -111,13 +113,13 @@ msgstr "" #: ../../library/gzip.rst:59 ../../library/gzip.rst:156 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/gzip.rst:64 msgid "" "Constructor for the :class:`GzipFile` class, which simulates most of the " -"methods of a :term:`file object`, with the exception of the :meth:`truncate`" -" method. At least one of *fileobj* and *filename* must be given a non-" +"methods of a :term:`file object`, with the exception of the :meth:`truncate` " +"method. At least one of *fileobj* and *filename* must be given a non-" "trivial value." msgstr "" @@ -149,8 +151,8 @@ msgstr "" #: ../../library/gzip.rst:85 msgid "" "Note that the file is always opened in binary mode. To open a compressed " -"file in text mode, use :func:`.open` (or wrap your :class:`GzipFile` with an" -" :class:`io.TextIOWrapper`)." +"file in text mode, use :func:`.open` (or wrap your :class:`GzipFile` with " +"an :class:`io.TextIOWrapper`)." msgstr "" #: ../../library/gzip.rst:89 @@ -164,25 +166,25 @@ msgstr "" #: ../../library/gzip.rst:94 msgid "" "The *mtime* argument is an optional numeric timestamp to be written to the " -"last modification time field in the stream when compressing. It should only" -" be provided in compression mode. If omitted or ``None``, the current time " +"last modification time field in the stream when compressing. It should only " +"be provided in compression mode. If omitted or ``None``, the current time " "is used. See the :attr:`mtime` attribute for more details." msgstr "" #: ../../library/gzip.rst:99 msgid "" "Calling a :class:`GzipFile` object's :meth:`close` method does not close " -"*fileobj*, since you might wish to append more material after the compressed" -" data. This also allows you to pass an :class:`io.BytesIO` object opened " -"for writing as *fileobj*, and retrieve the resulting memory buffer using the" -" :class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method." +"*fileobj*, since you might wish to append more material after the compressed " +"data. This also allows you to pass an :class:`io.BytesIO` object opened for " +"writing as *fileobj*, and retrieve the resulting memory buffer using the :" +"class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method." msgstr "" #: ../../library/gzip.rst:105 msgid "" ":class:`GzipFile` supports the :class:`io.BufferedIOBase` interface, " -"including iteration and the :keyword:`with` statement. Only the " -":meth:`truncate` method isn't implemented." +"including iteration and the :keyword:`with` statement. Only the :meth:" +"`truncate` method isn't implemented." msgstr "" #: ../../library/gzip.rst:109 @@ -191,17 +193,16 @@ msgstr "" #: ../../library/gzip.rst:113 msgid "" -"Read *n* uncompressed bytes without advancing the file position. At most one" -" single read on the compressed stream is done to satisfy the call. The " +"Read *n* uncompressed bytes without advancing the file position. At most one " +"single read on the compressed stream is done to satisfy the call. The " "number of bytes returned may be more or less than requested." msgstr "" #: ../../library/gzip.rst:118 msgid "" -"While calling :meth:`peek` does not change the file position of the " -":class:`GzipFile`, it may change the position of the underlying file object " -"(e.g. if the :class:`GzipFile` was constructed with the *fileobj* " -"parameter)." +"While calling :meth:`peek` does not change the file position of the :class:" +"`GzipFile`, it may change the position of the underlying file object (e.g. " +"if the :class:`GzipFile` was constructed with the *fileobj* parameter)." msgstr "" #: ../../library/gzip.rst:127 @@ -215,9 +216,9 @@ msgstr "" msgid "" "All :program:`gzip` compressed streams are required to contain this " "timestamp field. Some programs, such as :program:`gunzip`\\ , make use of " -"the timestamp. The format is the same as the return value of " -":func:`time.time` and the :attr:`~os.stat_result.st_mtime` attribute of the " -"object returned by :func:`os.stat`." +"the timestamp. The format is the same as the return value of :func:`time." +"time` and the :attr:`~os.stat_result.st_mtime` attribute of the object " +"returned by :func:`os.stat`." msgstr "" #: ../../library/gzip.rst:137 @@ -241,15 +242,15 @@ msgstr "" #: ../../library/gzip.rst:150 msgid "" "Added support for writing arbitrary :term:`bytes-like objects `. The :meth:`~io.BufferedIOBase.read` method now accepts an argument" -" of ``None``." +"object>`. The :meth:`~io.BufferedIOBase.read` method now accepts an argument " +"of ``None``." msgstr "" #: ../../library/gzip.rst:162 msgid "" "Compress the *data*, returning a :class:`bytes` object containing the " -"compressed data. *compresslevel* has the same meaning as in the " -":class:`GzipFile` constructor above." +"compressed data. *compresslevel* has the same meaning as in the :class:" +"`GzipFile` constructor above." msgstr "" #: ../../library/gzip.rst:170 @@ -284,6 +285,6 @@ msgstr "" #: ../../library/gzip.rst:211 msgid "" -"The basic data compression module needed to support the :program:`gzip` file" -" format." +"The basic data compression module needed to support the :program:`gzip` file " +"format." msgstr "" diff --git a/library/hashlib.po b/library/hashlib.po index c7550c0cb..c5aef38d3 100644 --- a/library/hashlib.po +++ b/library/hashlib.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,14 +44,14 @@ msgstr "" #: ../../library/hashlib.rst:32 msgid "" -"If you want the adler32 or crc32 hash functions, they are available in the " -":mod:`zlib` module." +"If you want the adler32 or crc32 hash functions, they are available in the :" +"mod:`zlib` module." msgstr "" #: ../../library/hashlib.rst:37 msgid "" -"Some algorithms have known hash collision weaknesses, refer to the \"See " -"also\" section at the end." +"Some algorithms have known hash collision weaknesses, refer to the \"See also" +"\" section at the end." msgstr "" #: ../../library/hashlib.rst:44 @@ -59,12 +61,12 @@ msgstr "" #: ../../library/hashlib.rst:46 msgid "" "There is one constructor method named for each type of :dfn:`hash`. All " -"return a hash object with the same simple interface. For example: use " -":func:`sha256` to create a SHA-256 hash object. You can now feed this object" -" with :term:`bytes-like objects ` (normally " -":class:`bytes`) using the :meth:`update` method. At any point you can ask it" -" for the :dfn:`digest` of the concatenation of the data fed to it so far " -"using the :meth:`digest` or :meth:`hexdigest` methods." +"return a hash object with the same simple interface. For example: use :func:" +"`sha256` to create a SHA-256 hash object. You can now feed this object with :" +"term:`bytes-like objects ` (normally :class:`bytes`) " +"using the :meth:`update` method. At any point you can ask it for the :dfn:" +"`digest` of the concatenation of the data fed to it so far using the :meth:" +"`digest` or :meth:`hexdigest` methods." msgstr "" #: ../../library/hashlib.rst:56 @@ -81,21 +83,20 @@ msgstr "" #: ../../library/hashlib.rst:66 msgid "" -"Constructors for hash algorithms that are always present in this module are " -":func:`sha1`, :func:`sha224`, :func:`sha256`, :func:`sha384`, " -":func:`sha512`, :func:`blake2b`, and :func:`blake2s`. :func:`md5` is " -"normally available as well, though it may be missing if you are using a rare" -" \"FIPS compliant\" build of Python. Additional algorithms may also be " -"available depending upon the OpenSSL library that Python uses on your " -"platform. On most platforms the :func:`sha3_224`, :func:`sha3_256`, " -":func:`sha3_384`, :func:`sha3_512`, :func:`shake_128`, :func:`shake_256` are" -" also available." +"Constructors for hash algorithms that are always present in this module are :" +"func:`sha1`, :func:`sha224`, :func:`sha256`, :func:`sha384`, :func:" +"`sha512`, :func:`blake2b`, and :func:`blake2s`. :func:`md5` is normally " +"available as well, though it may be missing if you are using a rare \"FIPS " +"compliant\" build of Python. Additional algorithms may also be available " +"depending upon the OpenSSL library that Python uses on your platform. On " +"most platforms the :func:`sha3_224`, :func:`sha3_256`, :func:`sha3_384`, :" +"func:`sha3_512`, :func:`shake_128`, :func:`shake_256` are also available." msgstr "" #: ../../library/hashlib.rst:76 msgid "" -"SHA3 (Keccak) and SHAKE constructors :func:`sha3_224`, :func:`sha3_256`, " -":func:`sha3_384`, :func:`sha3_512`, :func:`shake_128`, :func:`shake_256`." +"SHA3 (Keccak) and SHAKE constructors :func:`sha3_224`, :func:`sha3_256`, :" +"func:`sha3_384`, :func:`sha3_512`, :func:`shake_128`, :func:`shake_256`." msgstr "" #: ../../library/hashlib.rst:80 @@ -104,8 +105,8 @@ msgstr "" #: ../../library/hashlib.rst:83 msgid "" -"For example, to obtain the digest of the byte string ``b'Nobody inspects the" -" spammish repetition'``::" +"For example, to obtain the digest of the byte string ``b'Nobody inspects the " +"spammish repetition'``::" msgstr "" #: ../../library/hashlib.rst:97 @@ -131,8 +132,8 @@ msgstr "" #: ../../library/hashlib.rst:121 msgid "" -"A set containing the names of the hash algorithms guaranteed to be supported" -" by this module on all platforms. Note that 'md5' is in this list despite " +"A set containing the names of the hash algorithms guaranteed to be supported " +"by this module on all platforms. Note that 'md5' is in this list despite " "some upstream vendors offering an odd \"FIPS compliant\" Python build that " "excludes it." msgstr "" @@ -140,16 +141,16 @@ msgstr "" #: ../../library/hashlib.rst:130 msgid "" "A set containing the names of the hash algorithms that are available in the " -"running Python interpreter. These names will be recognized when passed to " -":func:`new`. :attr:`algorithms_guaranteed` will always be a subset. The " +"running Python interpreter. These names will be recognized when passed to :" +"func:`new`. :attr:`algorithms_guaranteed` will always be a subset. The " "same algorithm may appear multiple times in this set under different names " "(thanks to OpenSSL)." msgstr "" #: ../../library/hashlib.rst:138 msgid "" -"The following values are provided as constant attributes of the hash objects" -" returned by the constructors:" +"The following values are provided as constant attributes of the hash objects " +"returned by the constructors:" msgstr "" #: ../../library/hashlib.rst:144 @@ -184,8 +185,8 @@ msgstr "" #: ../../library/hashlib.rst:167 msgid "" "Update the hash object with the :term:`bytes-like object`. Repeated calls " -"are equivalent to a single call with the concatenation of all the arguments:" -" ``m.update(a); m.update(b)`` is equivalent to ``m.update(a+b)``." +"are equivalent to a single call with the concatenation of all the arguments: " +"``m.update(a); m.update(b)`` is equivalent to ``m.update(a+b)``." msgstr "" #: ../../library/hashlib.rst:172 @@ -230,8 +231,8 @@ msgstr "" #: ../../library/hashlib.rst:208 msgid "" "Return the digest of the data passed to the :meth:`update` method so far. " -"This is a bytes object of size *length* which may contain bytes in the whole" -" range from 0 to 255." +"This is a bytes object of size *length* which may contain bytes in the whole " +"range from 0 to 255." msgstr "" #: ../../library/hashlib.rst:221 @@ -242,9 +243,9 @@ msgstr "" msgid "" "Key derivation and key stretching algorithms are designed for secure " "password hashing. Naive algorithms such as ``sha1(password)`` are not " -"resistant against brute-force attacks. A good password hashing function must" -" be tunable, slow, and include a `salt " -"`_." +"resistant against brute-force attacks. A good password hashing function must " +"be tunable, slow, and include a `salt `_." msgstr "" #: ../../library/hashlib.rst:231 @@ -319,8 +320,8 @@ msgstr "" #: ../../library/hashlib.rst:290 msgid "" -"**BLAKE2b**, optimized for 64-bit platforms and produces digests of any size" -" between 1 and 64 bytes," +"**BLAKE2b**, optimized for 64-bit platforms and produces digests of any size " +"between 1 and 64 bytes," msgstr "" #: ../../library/hashlib.rst:293 @@ -331,14 +332,14 @@ msgstr "" #: ../../library/hashlib.rst:296 msgid "" -"BLAKE2 supports **keyed mode** (a faster and simpler replacement for HMAC_)," -" **salted hashing**, **personalization**, and **tree hashing**." +"BLAKE2 supports **keyed mode** (a faster and simpler replacement for HMAC_), " +"**salted hashing**, **personalization**, and **tree hashing**." msgstr "" #: ../../library/hashlib.rst:299 msgid "" -"Hash objects from this module follow the API of standard library's " -":mod:`hashlib` objects." +"Hash objects from this module follow the API of standard library's :mod:" +"`hashlib` objects." msgstr "" #: ../../library/hashlib.rst:304 @@ -367,8 +368,8 @@ msgstr "" #: ../../library/hashlib.rst:326 msgid "" -"*key*: key for keyed hashing (up to 64 bytes for BLAKE2b, up to 32 bytes for" -" BLAKE2s)." +"*key*: key for keyed hashing (up to 64 bytes for BLAKE2b, up to 32 bytes for " +"BLAKE2s)." msgstr "" #: ../../library/hashlib.rst:329 @@ -411,11 +412,11 @@ msgstr "" msgid "BLAKE2b" msgstr "" -#: ../../library/hashlib.rst:340 ../../library/hashlib.rst:340 +#: ../../library/hashlib.rst:340 msgid "64" msgstr "" -#: ../../library/hashlib.rst:340 ../../library/hashlib.rst:340 +#: ../../library/hashlib.rst:340 msgid "16" msgstr "" @@ -423,11 +424,11 @@ msgstr "" msgid "BLAKE2s" msgstr "" -#: ../../library/hashlib.rst:341 ../../library/hashlib.rst:341 +#: ../../library/hashlib.rst:341 msgid "32" msgstr "32" -#: ../../library/hashlib.rst:341 ../../library/hashlib.rst:341 +#: ../../library/hashlib.rst:341 msgid "8" msgstr "8" @@ -462,8 +463,8 @@ msgstr "" #: ../../library/hashlib.rst:362 msgid "" -"*leaf_size*: maximal byte length of leaf (0 to 2**32-1, 0 if unlimited or in" -" sequential mode)." +"*leaf_size*: maximal byte length of leaf (0 to 2**32-1, 0 if unlimited or in " +"sequential mode)." msgstr "" #: ../../library/hashlib.rst:365 @@ -479,8 +480,8 @@ msgstr "" #: ../../library/hashlib.rst:370 msgid "" -"*inner_size*: inner digest size (0 to 64 for BLAKE2b, 0 to 32 for BLAKE2s, 0" -" in sequential mode)." +"*inner_size*: inner digest size (0 to 64 for BLAKE2b, 0 to 32 for BLAKE2s, 0 " +"in sequential mode)." msgstr "" #: ../../library/hashlib.rst:373 @@ -491,9 +492,8 @@ msgstr "" #: ../../library/hashlib.rst:379 msgid "" -"See section 2.10 in `BLAKE2 specification " -"`_ for comprehensive review of tree " -"hashing." +"See section 2.10 in `BLAKE2 specification `_ for comprehensive review of tree hashing." msgstr "" #: ../../library/hashlib.rst:385 @@ -528,10 +528,10 @@ msgstr "" #: ../../library/hashlib.rst:417 msgid "" "To calculate hash of some data, you should first construct a hash object by " -"calling the appropriate constructor function (:func:`blake2b` or " -":func:`blake2s`), then update it with the data by calling :meth:`update` on " -"the object, and, finally, get the digest out of the object by calling " -":meth:`digest` (or :meth:`hexdigest` for hex-encoded string)." +"calling the appropriate constructor function (:func:`blake2b` or :func:" +"`blake2s`), then update it with the data by calling :meth:`update` on the " +"object, and, finally, get the digest out of the object by calling :meth:" +"`digest` (or :meth:`hexdigest` for hex-encoded string)." msgstr "" #: ../../library/hashlib.rst:430 @@ -552,8 +552,8 @@ msgstr "" #: ../../library/hashlib.rst:452 msgid "" -"BLAKE2 has configurable size of digests up to 64 bytes for BLAKE2b and up to" -" 32 bytes for BLAKE2s. For example, to replace SHA-1 with BLAKE2b without " +"BLAKE2 has configurable size of digests up to 64 bytes for BLAKE2b and up to " +"32 bytes for BLAKE2s. For example, to replace SHA-1 with BLAKE2b without " "changing the size of output, we can tell BLAKE2b to produce 20-byte digests:" msgstr "" @@ -571,10 +571,10 @@ msgstr "" #: ../../library/hashlib.rst:484 msgid "" "Keyed hashing can be used for authentication as a faster and simpler " -"replacement for `Hash-based message authentication code " -"`_ " -"(HMAC). BLAKE2 can be securely used in prefix-MAC mode thanks to the " -"indifferentiability property inherited from BLAKE." +"replacement for `Hash-based message authentication code `_ (HMAC). BLAKE2 " +"can be securely used in prefix-MAC mode thanks to the indifferentiability " +"property inherited from BLAKE." msgstr "" #: ../../library/hashlib.rst:490 @@ -586,8 +586,7 @@ msgstr "" #: ../../library/hashlib.rst:500 msgid "" "As a practical example, a web application can symmetrically sign cookies " -"sent to users and later verify them to make sure they weren't tampered " -"with::" +"sent to users and later verify them to make sure they weren't tampered with::" msgstr "" #: ../../library/hashlib.rst:529 @@ -610,15 +609,15 @@ msgstr "" #: ../../library/hashlib.rst:546 msgid "" "Randomized hashing is designed for situations where one party, the message " -"preparer, generates all or part of a message to be signed by a second party," -" the message signer. If the message preparer is able to find cryptographic " -"hash function collisions (i.e., two messages producing the same hash value)," -" then they might prepare meaningful versions of the message that would " +"preparer, generates all or part of a message to be signed by a second party, " +"the message signer. If the message preparer is able to find cryptographic " +"hash function collisions (i.e., two messages producing the same hash value), " +"then they might prepare meaningful versions of the message that would " "produce the same hash value and digital signature, but with different " "results (e.g., transferring $1,000,000 to an account, rather than $10). " -"Cryptographic hash functions have been designed with collision resistance as" -" a major goal, but the current concentration on attacking cryptographic hash" -" functions may result in a given cryptographic hash function providing less " +"Cryptographic hash functions have been designed with collision resistance as " +"a major goal, but the current concentration on attacking cryptographic hash " +"functions may result in a given cryptographic hash function providing less " "collision resistance than expected. Randomized hashing offers the signer " "additional protection by reducing the likelihood that a preparer can " "generate two or more messages that ultimately yield the same hash value " @@ -630,8 +629,8 @@ msgstr "" #: ../../library/hashlib.rst:565 msgid "" -"(`NIST SP-800-106 \"Randomized Hashing for Digital Signatures\" " -"`_)" +"(`NIST SP-800-106 \"Randomized Hashing for Digital Signatures\" `_)" msgstr "" #: ../../library/hashlib.rst:568 @@ -661,8 +660,8 @@ msgstr "" #: ../../library/hashlib.rst:602 msgid "" "We recommend that all application designers seriously consider doing this; " -"we have seen many protocols where a hash that is computed in one part of the" -" protocol can be used in an entirely different part because two hash " +"we have seen many protocols where a hash that is computed in one part of the " +"protocol can be used in an entirely different part because two hash " "computations were done on similar or related data, and the attacker can " "force the application to make the hash inputs the same. Personalizing each " "hash function used in the protocol summarily stops this type of attack." @@ -670,8 +669,8 @@ msgstr "" #: ../../library/hashlib.rst:609 msgid "" -"(`The Skein Hash Function Family `_, p. 21)" +"(`The Skein Hash Function Family `_, p. 21)" msgstr "" #: ../../library/hashlib.rst:613 @@ -735,16 +734,16 @@ msgstr "" #: ../../library/hashlib.rst:697 msgid "" -"To the extent possible under law, the author(s) have dedicated all copyright" -" and related and neighboring rights to this software to the public domain " +"To the extent possible under law, the author(s) have dedicated all copyright " +"and related and neighboring rights to this software to the public domain " "worldwide. This software is distributed without any warranty." msgstr "" #: ../../library/hashlib.rst:701 msgid "" "You should have received a copy of the CC0 Public Domain Dedication along " -"with this software. If not, see " -"https://creativecommons.org/publicdomain/zero/1.0/." +"with this software. If not, see https://creativecommons.org/publicdomain/" +"zero/1.0/." msgstr "" #: ../../library/hashlib.rst:705 @@ -768,7 +767,7 @@ msgstr "" #: ../../library/hashlib.rst:726 msgid "Module :mod:`base64`" -msgstr "" +msgstr "Módulo :mod:`base64`" #: ../../library/hashlib.rst:726 msgid "Another way to encode binary hashes for non-binary environments." @@ -784,7 +783,8 @@ msgstr "" #: ../../library/hashlib.rst:732 msgid "" -"https://csrc.nist.gov/csrc/media/publications/fips/180/2/archive/2002-08-01/documents/fips180-2.pdf" +"https://csrc.nist.gov/csrc/media/publications/fips/180/2/archive/2002-08-01/" +"documents/fips180-2.pdf" msgstr "" #: ../../library/hashlib.rst:732 @@ -793,13 +793,14 @@ msgstr "" #: ../../library/hashlib.rst:736 msgid "" -"https://en.wikipedia.org/wiki/Cryptographic_hash_function#Cryptographic_hash_algorithms" +"https://en.wikipedia.org/wiki/" +"Cryptographic_hash_function#Cryptographic_hash_algorithms" msgstr "" #: ../../library/hashlib.rst:735 msgid "" -"Wikipedia article with information on which algorithms have known issues and" -" what that means regarding their use." +"Wikipedia article with information on which algorithms have known issues and " +"what that means regarding their use." msgstr "" #: ../../library/hashlib.rst:738 diff --git a/library/heapq.po b/library/heapq.po index 0a99a13a5..7f6d5c5d9 100644 --- a/library/heapq.po +++ b/library/heapq.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,14 +55,14 @@ msgid "" "a node and the indexes for its children slightly less obvious, but is more " "suitable since Python uses zero-based indexing. (b) Our pop method returns " "the smallest item, not the largest (called a \"min heap\" in textbooks; a " -"\"max heap\" is more common in texts because of its suitability for in-place" -" sorting)." +"\"max heap\" is more common in texts because of its suitability for in-place " +"sorting)." msgstr "" #: ../../library/heapq.rst:33 msgid "" -"These two make it possible to view the heap as a regular Python list without" -" surprises: ``heap[0]`` is the smallest item, and ``heap.sort()`` maintains " +"These two make it possible to view the heap as a regular Python list without " +"surprises: ``heap[0]`` is the smallest item, and ``heap.sort()`` maintains " "the heap invariant!" msgstr "" @@ -99,15 +101,15 @@ msgstr "" #: ../../library/heapq.rst:69 msgid "" "Pop and return the smallest item from the *heap*, and also push the new " -"*item*. The heap size doesn't change. If the heap is empty, " -":exc:`IndexError` is raised." +"*item*. The heap size doesn't change. If the heap is empty, :exc:" +"`IndexError` is raised." msgstr "" #: ../../library/heapq.rst:72 msgid "" -"This one step operation is more efficient than a :func:`heappop` followed by" -" :func:`heappush` and can be more appropriate when using a fixed-size heap. " -"The pop/push combination always returns an element from the heap and " +"This one step operation is more efficient than a :func:`heappop` followed " +"by :func:`heappush` and can be more appropriate when using a fixed-size " +"heap. The pop/push combination always returns an element from the heap and " "replaces it with *item*." msgstr "" @@ -125,22 +127,24 @@ msgstr "" #: ../../library/heapq.rst:88 msgid "" -"Merge multiple sorted inputs into a single sorted output (for example, merge" -" timestamped entries from multiple log files). Returns an :term:`iterator` " +"Merge multiple sorted inputs into a single sorted output (for example, merge " +"timestamped entries from multiple log files). Returns an :term:`iterator` " "over the sorted values." msgstr "" #: ../../library/heapq.rst:92 msgid "" "Similar to ``sorted(itertools.chain(*iterables))`` but returns an iterable, " -"does not pull the data into memory all at once, and assumes that each of the" -" input streams is already sorted (smallest to largest)." +"does not pull the data into memory all at once, and assumes that each of the " +"input streams is already sorted (smallest to largest)." msgstr "" #: ../../library/heapq.rst:96 msgid "" "Has two optional arguments which must be specified as keyword arguments." msgstr "" +"Possui dois argumentos opcionais que devem ser especificados como argumentos " +"nomeados." #: ../../library/heapq.rst:98 msgid "" @@ -153,8 +157,8 @@ msgstr "" msgid "" "*reverse* is a boolean value. If set to ``True``, then the input elements " "are merged as if each comparison were reversed. To achieve behavior similar " -"to ``sorted(itertools.chain(*iterables), reverse=True)``, all iterables must" -" be sorted from largest to smallest." +"to ``sorted(itertools.chain(*iterables), reverse=True)``, all iterables must " +"be sorted from largest to smallest." msgstr "" #: ../../library/heapq.rst:107 @@ -175,17 +179,17 @@ msgid "" "Return a list with the *n* smallest elements from the dataset defined by " "*iterable*. *key*, if provided, specifies a function of one argument that " "is used to extract a comparison key from each element in *iterable* (for " -"example, ``key=str.lower``). Equivalent to: ``sorted(iterable, " -"key=key)[:n]``." +"example, ``key=str.lower``). Equivalent to: ``sorted(iterable, key=key)[:" +"n]``." msgstr "" #: ../../library/heapq.rst:128 msgid "" -"The latter two functions perform best for smaller values of *n*. For larger" -" values, it is more efficient to use the :func:`sorted` function. Also, " -"when ``n==1``, it is more efficient to use the built-in :func:`min` and " -":func:`max` functions. If repeated usage of these functions is required, " -"consider turning the iterable into an actual heap." +"The latter two functions perform best for smaller values of *n*. For larger " +"values, it is more efficient to use the :func:`sorted` function. Also, when " +"``n==1``, it is more efficient to use the built-in :func:`min` and :func:" +"`max` functions. If repeated usage of these functions is required, consider " +"turning the iterable into an actual heap." msgstr "" #: ../../library/heapq.rst:136 @@ -194,9 +198,9 @@ msgstr "" #: ../../library/heapq.rst:138 msgid "" -"A `heapsort `_ can be implemented by" -" pushing all values onto a heap and then popping off the smallest values one" -" at a time::" +"A `heapsort `_ can be implemented by " +"pushing all values onto a heap and then popping off the smallest values one " +"at a time::" msgstr "" #: ../../library/heapq.rst:151 @@ -207,8 +211,8 @@ msgstr "" #: ../../library/heapq.rst:154 msgid "" -"Heap elements can be tuples. This is useful for assigning comparison values" -" (such as task priorities) alongside the main record being tracked::" +"Heap elements can be tuples. This is useful for assigning comparison values " +"(such as task priorities) alongside the main record being tracked::" msgstr "" #: ../../library/heapq.rst:167 @@ -217,8 +221,8 @@ msgstr "" #: ../../library/heapq.rst:169 msgid "" -"A `priority queue `_ is common" -" use for a heap, and it presents several implementation challenges:" +"A `priority queue `_ is common " +"use for a heap, and it presents several implementation challenges:" msgstr "" #: ../../library/heapq.rst:172 @@ -247,12 +251,11 @@ msgstr "" #: ../../library/heapq.rst:184 msgid "" -"A solution to the first two challenges is to store entries as 3-element list" -" including the priority, an entry count, and the task. The entry count " +"A solution to the first two challenges is to store entries as 3-element list " +"including the priority, an entry count, and the task. The entry count " "serves as a tie-breaker so that two tasks with the same priority are " -"returned in the order they were added. And since no two entry counts are the" -" same, the tuple comparison will never attempt to directly compare two " -"tasks." +"returned in the order they were added. And since no two entry counts are the " +"same, the tuple comparison will never attempt to directly compare two tasks." msgstr "" #: ../../library/heapq.rst:190 @@ -265,8 +268,8 @@ msgstr "" #: ../../library/heapq.rst:201 msgid "" "The remaining challenges revolve around finding a pending task and making " -"changes to its priority or removing it entirely. Finding a task can be done" -" with a dictionary pointing to an entry in the queue." +"changes to its priority or removing it entirely. Finding a task can be done " +"with a dictionary pointing to an entry in the queue." msgstr "" #: ../../library/heapq.rst:205 @@ -282,10 +285,10 @@ msgstr "" #: ../../library/heapq.rst:241 msgid "" -"Heaps are arrays for which ``a[k] <= a[2*k+1]`` and ``a[k] <= a[2*k+2]`` for" -" all *k*, counting elements from 0. For the sake of comparison, non-" -"existing elements are considered to be infinite. The interesting property " -"of a heap is that ``a[0]`` is always its smallest element." +"Heaps are arrays for which ``a[k] <= a[2*k+1]`` and ``a[k] <= a[2*k+2]`` for " +"all *k*, counting elements from 0. For the sake of comparison, non-existing " +"elements are considered to be infinite. The interesting property of a heap " +"is that ``a[0]`` is always its smallest element." msgstr "" #: ../../library/heapq.rst:246 @@ -321,13 +324,13 @@ msgstr "" #: ../../library/heapq.rst:275 msgid "" "A nice feature of this sort is that you can efficiently insert new items " -"while the sort is going on, provided that the inserted items are not " -"\"better\" than the last 0'th element you extracted. This is especially " -"useful in simulation contexts, where the tree holds all incoming events, and" -" the \"win\" condition means the smallest scheduled time. When an event " -"schedules other events for execution, they are scheduled into the future, so" -" they can easily go into the heap. So, a heap is a good structure for " -"implementing schedulers (this is what I used for my MIDI sequencer :-)." +"while the sort is going on, provided that the inserted items are not \"better" +"\" than the last 0'th element you extracted. This is especially useful in " +"simulation contexts, where the tree holds all incoming events, and the \"win" +"\" condition means the smallest scheduled time. When an event schedules " +"other events for execution, they are scheduled into the future, so they can " +"easily go into the heap. So, a heap is a good structure for implementing " +"schedulers (this is what I used for my MIDI sequencer :-)." msgstr "" #: ../../library/heapq.rst:284 @@ -349,19 +352,19 @@ msgid "" "longest runs possible. Tournaments are a good way to achieve that. If, " "using all the memory available to hold a tournament, you replace and " "percolate items that happen to fit the current run, you'll produce runs " -"which are twice the size of the memory for random input, and much better for" -" input fuzzily ordered." +"which are twice the size of the memory for random input, and much better for " +"input fuzzily ordered." msgstr "" #: ../../library/heapq.rst:300 msgid "" -"Moreover, if you output the 0'th item on disk and get an input which may not" -" fit in the current tournament (because the value \"wins\" over the last " -"output value), it cannot fit in the heap, so the size of the heap decreases." -" The freed memory could be cleverly reused immediately for progressively " -"building a second heap, which grows at exactly the same rate the first heap " -"is melting. When the first heap completely vanishes, you switch heaps and " -"start a new run. Clever and quite effective!" +"Moreover, if you output the 0'th item on disk and get an input which may not " +"fit in the current tournament (because the value \"wins\" over the last " +"output value), it cannot fit in the heap, so the size of the heap " +"decreases. The freed memory could be cleverly reused immediately for " +"progressively building a second heap, which grows at exactly the same rate " +"the first heap is melting. When the first heap completely vanishes, you " +"switch heaps and start a new run. Clever and quite effective!" msgstr "" #: ../../library/heapq.rst:308 @@ -376,8 +379,8 @@ msgstr "Notas de rodapé" #: ../../library/heapq.rst:313 msgid "" -"The disk balancing algorithms which are current, nowadays, are more annoying" -" than clever, and this is a consequence of the seeking capabilities of the " +"The disk balancing algorithms which are current, nowadays, are more annoying " +"than clever, and this is a consequence of the seeking capabilities of the " "disks. On devices which cannot seek, like big tape drives, the story was " "quite different, and one had to be very clever to ensure (far in advance) " "that each tape movement will be the most effective possible (that is, will " diff --git a/library/hmac.po b/library/hmac.po index 5c1eab5b1..68dfa7240 100644 --- a/library/hmac.po +++ b/library/hmac.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -57,16 +59,16 @@ msgstr "" msgid "" "Return digest of *msg* for given secret *key* and *digest*. The function is " "equivalent to ``HMAC(key, msg, digest).digest()``, but uses an optimized C " -"or inline implementation, which is faster for messages that fit into memory." -" The parameters *key*, *msg*, and *digest* have the same meaning as in " -":func:`~hmac.new`." +"or inline implementation, which is faster for messages that fit into memory. " +"The parameters *key*, *msg*, and *digest* have the same meaning as in :func:" +"`~hmac.new`." msgstr "" #: ../../library/hmac.rst:42 msgid "" "CPython implementation detail, the optimized C implementation is only used " -"when *digest* is a string and name of a digest algorithm, which is supported" -" by OpenSSL." +"when *digest* is a string and name of a digest algorithm, which is supported " +"by OpenSSL." msgstr "" #: ../../library/hmac.rst:49 @@ -76,8 +78,8 @@ msgstr "" #: ../../library/hmac.rst:53 msgid "" "Update the hmac object with *msg*. Repeated calls are equivalent to a " -"single call with the concatenation of all the arguments: ``m.update(a); " -"m.update(b)`` is equivalent to ``m.update(a + b)``." +"single call with the concatenation of all the arguments: ``m.update(a); m." +"update(b)`` is equivalent to ``m.update(a + b)``." msgstr "" #: ../../library/hmac.rst:57 @@ -87,32 +89,32 @@ msgstr "" #: ../../library/hmac.rst:63 msgid "" "Return the digest of the bytes passed to the :meth:`update` method so far. " -"This bytes object will be the same length as the *digest_size* of the digest" -" given to the constructor. It may contain non-ASCII bytes, including NUL " +"This bytes object will be the same length as the *digest_size* of the digest " +"given to the constructor. It may contain non-ASCII bytes, including NUL " "bytes." msgstr "" #: ../../library/hmac.rst:70 msgid "" -"When comparing the output of :meth:`digest` to an externally-supplied digest" -" during a verification routine, it is recommended to use the " -":func:`compare_digest` function instead of the ``==`` operator to reduce the" -" vulnerability to timing attacks." +"When comparing the output of :meth:`digest` to an externally-supplied digest " +"during a verification routine, it is recommended to use the :func:" +"`compare_digest` function instead of the ``==`` operator to reduce the " +"vulnerability to timing attacks." msgstr "" #: ../../library/hmac.rst:78 msgid "" "Like :meth:`digest` except the digest is returned as a string twice the " -"length containing only hexadecimal digits. This may be used to exchange the" -" value safely in email or other non-binary environments." +"length containing only hexadecimal digits. This may be used to exchange the " +"value safely in email or other non-binary environments." msgstr "" #: ../../library/hmac.rst:84 msgid "" "When comparing the output of :meth:`hexdigest` to an externally-supplied " -"digest during a verification routine, it is recommended to use the " -":func:`compare_digest` function instead of the ``==`` operator to reduce the" -" vulnerability to timing attacks." +"digest during a verification routine, it is recommended to use the :func:" +"`compare_digest` function instead of the ``==`` operator to reduce the " +"vulnerability to timing attacks." msgstr "" #: ../../library/hmac.rst:92 @@ -145,17 +147,17 @@ msgstr "" #: ../../library/hmac.rst:119 msgid "" "Return ``a == b``. This function uses an approach designed to prevent " -"timing analysis by avoiding content-based short circuiting behaviour, making" -" it appropriate for cryptography. *a* and *b* must both be of the same " -"type: either :class:`str` (ASCII only, as e.g. returned by " -":meth:`HMAC.hexdigest`), or a :term:`bytes-like object`." +"timing analysis by avoiding content-based short circuiting behaviour, making " +"it appropriate for cryptography. *a* and *b* must both be of the same type: " +"either :class:`str` (ASCII only, as e.g. returned by :meth:`HMAC." +"hexdigest`), or a :term:`bytes-like object`." msgstr "" #: ../../library/hmac.rst:127 msgid "" "If *a* and *b* are of different lengths, or if an error occurs, a timing " -"attack could theoretically reveal information about the types and lengths of" -" *a* and *b*—but not their values." +"attack could theoretically reveal information about the types and lengths of " +"*a* and *b*—but not their values." msgstr "" #: ../../library/hmac.rst:137 diff --git a/library/html.entities.po b/library/html.entities.po index 2ebaab971..bc5226481 100644 --- a/library/html.entities.po +++ b/library/html.entities.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,20 +33,20 @@ msgstr "**Código-fonte:** :source:`Lib/html/entities.py`" #: ../../library/html.entities.rst:13 msgid "" -"This module defines four dictionaries, :data:`html5`, " -":data:`name2codepoint`, :data:`codepoint2name`, and :data:`entitydefs`." +"This module defines four dictionaries, :data:`html5`, :data:" +"`name2codepoint`, :data:`codepoint2name`, and :data:`entitydefs`." msgstr "" -"Esse módulo define quatro dicionários, :data:`html5`, " -":data:`name2codepoint`, :data:`codepoint2name` e :data:`entitydefs`." +"Esse módulo define quatro dicionários, :data:`html5`, :data:" +"`name2codepoint`, :data:`codepoint2name` e :data:`entitydefs`." #: ../../library/html.entities.rst:19 msgid "" "A dictionary that maps HTML5 named character references [#]_ to the " -"equivalent Unicode character(s), e.g. ``html5['gt;'] == '>'``. Note that the" -" trailing semicolon is included in the name (e.g. ``'gt;'``), however some " -"of the names are accepted by the standard even without the semicolon: in " -"this case the name is present with and without the ``';'``. See also " -":func:`html.unescape`." +"equivalent Unicode character(s), e.g. ``html5['gt;'] == '>'``. Note that the " +"trailing semicolon is included in the name (e.g. ``'gt;'``), however some of " +"the names are accepted by the standard even without the semicolon: in this " +"case the name is present with and without the ``';'``. See also :func:`html." +"unescape`." msgstr "" "Um dicionário que mapeia referências de caracteres nomeados em HTML5 [#]_ " "para os caracteres Unicode equivalentes, por exemplo, ``html5['gt;'] == " diff --git a/library/html.parser.po b/library/html.parser.po index f7d59c163..78b16ae9e 100644 --- a/library/html.parser.po +++ b/library/html.parser.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -52,8 +54,8 @@ msgstr "" msgid "" "An :class:`.HTMLParser` instance is fed HTML data and calls handler methods " "when start tags, end tags, text, comments, and other markup elements are " -"encountered. The user should subclass :class:`.HTMLParser` and override its" -" methods to implement the desired behavior." +"encountered. The user should subclass :class:`.HTMLParser` and override its " +"methods to implement the desired behavior." msgstr "" #: ../../library/html.parser.rst:31 @@ -77,9 +79,9 @@ msgstr "" #: ../../library/html.parser.rst:44 msgid "" -"As a basic example, below is a simple HTML parser that uses the " -":class:`HTMLParser` class to print out start tags, end tags, and data as " -"they are encountered::" +"As a basic example, below is a simple HTML parser that uses the :class:" +"`HTMLParser` class to print out start tags, end tags, and data as they are " +"encountered::" msgstr "" #: ../../library/html.parser.rst:64 @@ -97,8 +99,8 @@ msgstr "" #: ../../library/html.parser.rst:90 msgid "" "Feed some text to the parser. It is processed insofar as it consists of " -"complete elements; incomplete data is buffered until more data is fed or " -":meth:`close` is called. *data* must be :class:`str`." +"complete elements; incomplete data is buffered until more data is fed or :" +"meth:`close` is called. *data* must be :class:`str`." msgstr "" #: ../../library/html.parser.rst:97 @@ -131,14 +133,14 @@ msgstr "" msgid "" "The following methods are called when data or markup elements are " "encountered and they are meant to be overridden in a subclass. The base " -"class implementations do nothing (except for " -":meth:`~HTMLParser.handle_startendtag`):" +"class implementations do nothing (except for :meth:`~HTMLParser." +"handle_startendtag`):" msgstr "" #: ../../library/html.parser.rst:129 msgid "" -"This method is called to handle the start of a tag (e.g. ``
``)." +"This method is called to handle the start of a tag (e.g. ``
``)." msgstr "" #: ../../library/html.parser.rst:131 @@ -153,8 +155,8 @@ msgstr "" #: ../../library/html.parser.rst:137 msgid "" "For instance, for the tag ````, this method " -"would be called as ``handle_starttag('a', [('href', " -"'https://www.cwi.nl/')])``." +"would be called as ``handle_starttag('a', [('href', 'https://www.cwi." +"nl/')])``." msgstr "" #: ../../library/html.parser.rst:140 @@ -174,11 +176,11 @@ msgstr "" #: ../../library/html.parser.rst:153 msgid "" -"Similar to :meth:`handle_starttag`, but called when the parser encounters an" -" XHTML-style empty tag (````). This method may be overridden by " +"Similar to :meth:`handle_starttag`, but called when the parser encounters an " +"XHTML-style empty tag (````). This method may be overridden by " "subclasses which require this particular lexical information; the default " -"implementation simply calls :meth:`handle_starttag` and " -":meth:`handle_endtag`." +"implementation simply calls :meth:`handle_starttag` and :meth:" +"`handle_endtag`." msgstr "" #: ../../library/html.parser.rst:161 @@ -190,23 +192,23 @@ msgstr "" #: ../../library/html.parser.rst:167 msgid "" "This method is called to process a named character reference of the form " -"``&name;`` (e.g. ``>``), where *name* is a general entity reference (e.g." -" ``'gt'``). This method is never called if *convert_charrefs* is ``True``." +"``&name;`` (e.g. ``>``), where *name* is a general entity reference (e.g. " +"``'gt'``). This method is never called if *convert_charrefs* is ``True``." msgstr "" #: ../../library/html.parser.rst:175 msgid "" "This method is called to process decimal and hexadecimal numeric character " -"references of the form ``&#NNN;`` and ``&#xNNN;``. For example, the decimal" -" equivalent for ``>`` is ``>``, whereas the hexadecimal is " -"``>``; in this case the method will receive ``'62'`` or ``'x3E'``. " -"This method is never called if *convert_charrefs* is ``True``." +"references of the form ``&#NNN;`` and ``&#xNNN;``. For example, the decimal " +"equivalent for ``>`` is ``>``, whereas the hexadecimal is ``>``; " +"in this case the method will receive ``'62'`` or ``'x3E'``. This method is " +"never called if *convert_charrefs* is ``True``." msgstr "" #: ../../library/html.parser.rst:184 msgid "" -"This method is called when a comment is encountered (e.g. ````)." +"This method is called when a comment is encountered (e.g. ````, this method will receive ``'[if IE 9]>IE9-specific " -"contentIE9-specific content``, this method will receive ``'[if IE 9]>IE9-specific content``)." +"This method is called to handle an HTML doctype declaration (e.g. ````)." msgstr "" #: ../../library/html.parser.rst:199 @@ -253,8 +255,7 @@ msgstr "" #: ../../library/html.parser.rst:220 msgid "" -"This method is called when an unrecognized declaration is read by the " -"parser." +"This method is called when an unrecognized declaration is read by the parser." msgstr "" #: ../../library/html.parser.rst:222 @@ -270,8 +271,8 @@ msgstr "Exemplos" #: ../../library/html.parser.rst:232 msgid "" -"The following class implements a parser that will be used to illustrate more" -" examples::" +"The following class implements a parser that will be used to illustrate more " +"examples::" msgstr "" #: ../../library/html.parser.rst:269 @@ -300,8 +301,8 @@ msgstr "" #: ../../library/html.parser.rst:318 msgid "" -"Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but " -":meth:`~HTMLParser.handle_data` might be called more than once (unless " +"Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but :meth:" +"`~HTMLParser.handle_data` might be called more than once (unless " "*convert_charrefs* is set to ``True``)::" msgstr "" diff --git a/library/html.po b/library/html.po index f89cfcb3d..6af0d0f62 100644 --- a/library/html.po +++ b/library/html.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marcelo Bitencourt , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" "Last-Translator: Marcelo Bitencourt , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,29 +41,28 @@ msgstr "Este módulo define utilitários para manipular HTML." msgid "" "Convert the characters ``&``, ``<`` and ``>`` in string *s* to HTML-safe " "sequences. Use this if you need to display text that might contain such " -"characters in HTML. If the optional flag *quote* is true, the characters " -"(``\"``) and (``'``) are also translated; this helps for inclusion in an " -"HTML attribute value delimited by quotes, as in ````." +"characters in HTML. If the optional flag *quote* is true, the characters (``" +"\"``) and (``'``) are also translated; this helps for inclusion in an HTML " +"attribute value delimited by quotes, as in ````." msgstr "" "Converte os caracteres ``&``, ``<`` e ``>`` na string *s* para sequências " "seguras em HTML. Use se necessitar mostrar texto que possa conter estes " -"caracteres no HTML. Se o flag opcional *quote* é true, os caracteres " -"(``\"``) e (``'``) também são convertidos; isso auxilia na inclusão de " -"valores delimitados por aspas num atributo HTML, como em ````." +"caracteres no HTML. Se o flag opcional *quote* é true, os caracteres (``" +"\"``) e (``'``) também são convertidos; isso auxilia na inclusão de valores " +"delimitados por aspas num atributo HTML, como em ````." #: ../../library/html.rst:26 msgid "" -"Convert all named and numeric character references (e.g. ``>``, " -"``>``, ``>``) in the string *s* to the corresponding Unicode " -"characters. This function uses the rules defined by the HTML 5 standard for" -" both valid and invalid character references, and the :data:`list of HTML 5 " -"named character references `." +"Convert all named and numeric character references (e.g. ``>``, ``>" +"``, ``>``) in the string *s* to the corresponding Unicode characters. " +"This function uses the rules defined by the HTML 5 standard for both valid " +"and invalid character references, and the :data:`list of HTML 5 named " +"character references `." msgstr "" -"Converte todas as referências de caracteres numéricos e nomeados (ex. " -"``>``, ``>``, ``>``) na string *s* para caracteres Unicode " -"correspondentes. Essa função usa as regras definidas pelo padrão HTML 5 para" -" referências de caracteres, sejam válidas ou inválidas, e a :data:`lista de " +"Converte todas as referências de caracteres numéricos e nomeados (ex. ``>" +"``, ``>``, ``>``) na string *s* para caracteres Unicode " +"correspondentes. Essa função usa as regras definidas pelo padrão HTML 5 para " +"referências de caracteres, sejam válidas ou inválidas, e a :data:`lista de " "referência de caracteres nomeados do HTML 5 `." #: ../../library/html.rst:36 @@ -71,8 +71,7 @@ msgstr "Sub módulos no pacote ``html`` são:" #: ../../library/html.rst:38 msgid ":mod:`html.parser` -- HTML/XHTML parser with lenient parsing mode" -msgstr "" -":mod:`html.parser` -- analisador HTML/XHTML com modo de análise branda" +msgstr ":mod:`html.parser` -- analisador HTML/XHTML com modo de análise branda" #: ../../library/html.rst:39 msgid ":mod:`html.entities` -- HTML entity definitions" diff --git a/library/http.client.po b/library/http.client.po index 20a410dd6..a0fdbe5e1 100644 --- a/library/http.client.po +++ b/library/http.client.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-01 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,13 +36,12 @@ msgstr "**Código Fonte:** :source:`Lib/http/client.py`" #: ../../library/http.client.rst:17 msgid "" "This module defines classes which implement the client side of the HTTP and " -"HTTPS protocols. It is normally not used directly --- the module " -":mod:`urllib.request` uses it to handle URLs that use HTTP and HTTPS." +"HTTPS protocols. It is normally not used directly --- the module :mod:" +"`urllib.request` uses it to handle URLs that use HTTP and HTTPS." msgstr "" "Este módulo define classes que implementam o lado do cliente nos protocolos " -"HTTP e HTTPS. Normalmente não é utilizada diretamente -- o módulo " -":mod:`urllib.request` o utiliza para manipular URLs que utilizam HTTP e " -"HTTPS." +"HTTP e HTTPS. Normalmente não é utilizada diretamente -- o módulo :mod:" +"`urllib.request` o utiliza para manipular URLs que utilizam HTTP e HTTPS." #: ../../library/http.client.rst:23 msgid "" @@ -73,8 +74,7 @@ msgid "" "not given, the global default timeout setting is used). The optional " "*source_address* parameter may be a tuple of a (host, port) to use as the " "source address the HTTP connection is made from. The optional *blocksize* " -"parameter sets the buffer size in bytes for sending a file-like message " -"body." +"parameter sets the buffer size in bytes for sending a file-like message body." msgstr "" "Uma instância :class:`HTTPConnection` representa uma transação com um " "servidor HTTP. Deve ser instanciada passando a ela um host e um número de " @@ -103,8 +103,8 @@ msgstr "*source_address* foi adicionado." #: ../../library/http.client.rst:60 msgid "" -"The *strict* parameter was removed. HTTP 0.9-style \"Simple Responses\" are" -" not longer supported." +"The *strict* parameter was removed. HTTP 0.9-style \"Simple Responses\" are " +"not longer supported." msgstr "" "O argumento *strict* foi removido. \"Respostas Simples\" HTTP com o estilo " "0.9 não são mais suportadas." @@ -126,8 +126,7 @@ msgstr "" "descrevendo as várias opções do SSL." #: ../../library/http.client.rst:78 -msgid "" -"Please read :ref:`ssl-security` for more information on best practices." +msgid "Please read :ref:`ssl-security` for more information on best practices." msgstr "" "Por favor leia :ref:`ssl-security` para mais informações sobre as melhores " "práticas." @@ -138,11 +137,11 @@ msgstr "*source_address*, *context* e *check_hostname* foram adicionados." #: ../../library/http.client.rst:83 msgid "" -"This class now supports HTTPS virtual hosts if possible (that is, if " -":data:`ssl.HAS_SNI` is true)." +"This class now supports HTTPS virtual hosts if possible (that is, if :data:" +"`ssl.HAS_SNI` is true)." msgstr "" -"Esta classe agora suporta hosts virtuais HTTPS se possível (isto é, se " -":data:`ssl.HAS_SNI` é true)." +"Esta classe agora suporta hosts virtuais HTTPS se possível (isto é, se :data:" +"`ssl.HAS_SNI` é true)." #: ../../library/http.client.rst:87 msgid "" @@ -154,10 +153,9 @@ msgstr "" #: ../../library/http.client.rst:91 msgid "" -"This class now performs all the necessary certificate and hostname checks by" -" default. To revert to the previous, unverified, behavior " -":func:`ssl._create_unverified_context` can be passed to the *context* " -"parameter." +"This class now performs all the necessary certificate and hostname checks by " +"default. To revert to the previous, unverified, behavior :func:`ssl." +"_create_unverified_context` can be passed to the *context* parameter." msgstr "" "Essa classe agora executa todos os certificados e verificação de hostnames " "necessários por padrão. Para reverter ao comportamento anterior, sem " @@ -170,31 +168,28 @@ msgid "" "for the default *context* or when *cert_file* is passed with a custom " "*context*." msgstr "" -"Esta classe agora habilita TLS 1.3 " -":attr:`ssl.SSLContext.post_handshake_auth` para o padrão *context* ou quanto" -" *cert_file* é fornecido com um *context* personalizado." +"Esta classe agora habilita TLS 1.3 :attr:`ssl.SSLContext." +"post_handshake_auth` para o padrão *context* ou quanto *cert_file* é " +"fornecido com um *context* personalizado." #: ../../library/http.client.rst:104 msgid "" -"*key_file* and *cert_file* are deprecated in favor of *context*. Please use " -":meth:`ssl.SSLContext.load_cert_chain` instead, or let " -":func:`ssl.create_default_context` select the system's trusted CA " -"certificates for you." +"*key_file* and *cert_file* are deprecated in favor of *context*. Please use :" +"meth:`ssl.SSLContext.load_cert_chain` instead, or let :func:`ssl." +"create_default_context` select the system's trusted CA certificates for you." msgstr "" "*key_file* e *cert_file* estão descontinuados em favor de *context*. Por " -"favor, em vez disso, utilize :meth:`ssl.SSLContext.load_cert_chain` ou deixe" -" :func:`ssl.create_default_context` selecionar os certificados CA " +"favor, em vez disso, utilize :meth:`ssl.SSLContext.load_cert_chain` ou " +"deixe :func:`ssl.create_default_context` selecionar os certificados CA " "confiáveis do sistema para você." #: ../../library/http.client.rst:109 msgid "" -"The *check_hostname* parameter is also deprecated; the " -":attr:`ssl.SSLContext.check_hostname` attribute of *context* should be used " -"instead." +"The *check_hostname* parameter is also deprecated; the :attr:`ssl.SSLContext." +"check_hostname` attribute of *context* should be used instead." msgstr "" -"O argumento *check_hostname* também está descontinuado; o atributo " -":attr:`ssl.SSLContext.check_hostname` de *context* deve ser usado em seu " -"lugar." +"O argumento *check_hostname* também está descontinuado; o atributo :attr:" +"`ssl.SSLContext.check_hostname` de *context* deve ser usado em seu lugar." #: ../../library/http.client.rst:116 msgid "" @@ -218,11 +213,11 @@ msgstr "As seguintes exceções são lançadas conforme apropriado:" #: ../../library/http.client.rst:129 msgid "" -"The base class of the other exceptions in this module. It is a subclass of " -":exc:`Exception`." +"The base class of the other exceptions in this module. It is a subclass of :" +"exc:`Exception`." msgstr "" -"A classe base das outras exceções neste módulo. É uma subclasse de " -":exc:`Exception`." +"A classe base das outras exceções neste módulo. É uma subclasse de :exc:" +"`Exception`." #: ../../library/http.client.rst:135 ../../library/http.client.rst:146 #: ../../library/http.client.rst:151 ../../library/http.client.rst:156 @@ -245,8 +240,8 @@ msgstr "Uma subclasse de :exc:`ImproperConnectionState`." #: ../../library/http.client.rst:186 msgid "" -"A subclass of :exc:`HTTPException`. Raised if a server responds with a HTTP" -" status code that we don't understand." +"A subclass of :exc:`HTTPException`. Raised if a server responds with a HTTP " +"status code that we don't understand." msgstr "" "Uma subclasse de :exc:`HTTPException`. Lançada se um servidor responde com " "um código de status HTTP que não é entendido." @@ -266,9 +261,9 @@ msgid "" "results in no data read from the connection, indicating that the remote end " "has closed the connection." msgstr "" -"Uma subclasse de :exc:`ConnectionResetError` e :exc:`BadStatusLine`. Lançada" -" por :meth:`HTTPConnection.getresponse` quando a tentativa de ler a resposta" -" resulta na não leitura dos dados pela conexão, indicando que o fim remoto " +"Uma subclasse de :exc:`ConnectionResetError` e :exc:`BadStatusLine`. Lançada " +"por :meth:`HTTPConnection.getresponse` quando a tentativa de ler a resposta " +"resulta na não leitura dos dados pela conexão, indicando que o fim remoto " "fechou a conexão." #: ../../library/http.client.rst:203 @@ -294,8 +289,7 @@ msgstr "" #: ../../library/http.client.rst:221 msgid "" -"Example: ``http.client.responses[http.client.NOT_FOUND]`` is ``'Not " -"Found'``." +"Example: ``http.client.responses[http.client.NOT_FOUND]`` is ``'Not Found'``." msgstr "" "Exemplo: ``http.client.responses[http.client.NOT_FOUND]`` é ``'Not Found'``." @@ -326,42 +320,44 @@ msgstr "" #: ../../library/http.client.rst:241 msgid "" "If *body* is specified, the specified data is sent after the headers are " -"finished. It may be a :class:`str`, a :term:`bytes-like object`, an open " -":term:`file object`, or an iterable of :class:`bytes`. If *body* is a " -"string, it is encoded as ISO-8859-1, the default for HTTP. If it is a " -"bytes-like object, the bytes are sent as is. If it is a :term:`file " -"object`, the contents of the file is sent; this file object should support " -"at least the ``read()`` method. If the file object is an instance of " -":class:`io.TextIOBase`, the data returned by the ``read()`` method will be " -"encoded as ISO-8859-1, otherwise the data returned by ``read()`` is sent as " -"is. If *body* is an iterable, the elements of the iterable are sent as is " -"until the iterable is exhausted." +"finished. It may be a :class:`str`, a :term:`bytes-like object`, an open :" +"term:`file object`, or an iterable of :class:`bytes`. If *body* is a " +"string, it is encoded as ISO-8859-1, the default for HTTP. If it is a bytes-" +"like object, the bytes are sent as is. If it is a :term:`file object`, the " +"contents of the file is sent; this file object should support at least the " +"``read()`` method. If the file object is an instance of :class:`io." +"TextIOBase`, the data returned by the ``read()`` method will be encoded as " +"ISO-8859-1, otherwise the data returned by ``read()`` is sent as is. If " +"*body* is an iterable, the elements of the iterable are sent as is until the " +"iterable is exhausted." msgstr "" "Se *body* é especificado, os dados especificados são mandados depois que os " "cabeçalhos estão prontos. Pode ser um :class:`str`, um :term:`bytes-like " -"object`, um :term:`file object` aberto, ou um iterável de :class:`bytes`. Se" -" *body* é uma string, ele é codificado como ISO-8859-1, o padrão para HTTP." -" Se é um objeto do tipo byte, os bytes são enviados como estão. Se é um " -":term:`file object, o conteúdo do arquivo é enviado; este objeto arquivo " -"deve suportar pelo menos o método ``read()``. Se o objeto arquivo é uma " -"instância de :class:`io.TextIOBase`, os dados retornados pelo método " -"``read()`` será codificado como ISO-8859-1, de outra forma os dados " -"retornados por ``read()`` são enviados como estão. Se *body* é um iterável, " -"os elementos do iterável são enviados até os mesmo se esgotar." +"object`, um :term:`file object` aberto, ou um iterável de :class:`bytes`. Se " +"*body* é uma string, ele é codificado como ISO-8859-1, o padrão para HTTP. " +"Se é um objeto do tipo byte, os bytes são enviados como estão. Se é um :term:" +"`file object, o conteúdo do arquivo é enviado; este objeto arquivo deve " +"suportar pelo menos o método ``read()``. Se o objeto arquivo é uma instância " +"de :class:`io.TextIOBase`, os dados retornados pelo método ``read()`` será " +"codificado como ISO-8859-1, de outra forma os dados retornados por " +"``read()`` são enviados como estão. Se *body* é um iterável, os elementos do " +"iterável são enviados até os mesmo se esgotar." #: ../../library/http.client.rst:253 msgid "" "The *headers* argument should be a mapping of extra HTTP headers to send " "with the request." msgstr "" +"O argumento *headers* deve ser um mapeamento de cabeçalhos HTTP extras a " +"serem enviados com a requisição." #: ../../library/http.client.rst:256 msgid "" "If *headers* contains neither Content-Length nor Transfer-Encoding, but " "there is a request body, one of those header fields will be added " "automatically. If *body* is ``None``, the Content-Length header is set to " -"``0`` for methods that expect a body (``PUT``, ``POST``, and ``PATCH``). If" -" *body* is a string or a bytes-like object that is not also a :term:`file " +"``0`` for methods that expect a body (``PUT``, ``POST``, and ``PATCH``). If " +"*body* is a string or a bytes-like object that is not also a :term:`file " "`, the Content-Length header is set to its length. Any other " "type of *body* (files and iterables in general) will be chunk-encoded, and " "the Transfer-Encoding header will automatically be set instead of Content-" @@ -380,8 +376,8 @@ msgstr "" msgid "" "Chunked transfer encoding has been added to the HTTP protocol version 1.1. " "Unless the HTTP server is known to handle HTTP 1.1, the caller must either " -"specify the Content-Length, or must pass a :class:`str` or bytes-like object" -" that is not also a file as the body representation." +"specify the Content-Length, or must pass a :class:`str` or bytes-like object " +"that is not also a file as the body representation." msgstr "" #: ../../library/http.client.rst:280 @@ -410,10 +406,13 @@ msgstr "" #: ../../library/http.client.rst:300 msgid "" -"If a :exc:`ConnectionError` or subclass is raised, the " -":class:`HTTPConnection` object will be ready to reconnect when a new request" -" is sent." +"If a :exc:`ConnectionError` or subclass is raised, the :class:" +"`HTTPConnection` object will be ready to reconnect when a new request is " +"sent." msgstr "" +"Se uma :exc:`ConnectionError` ou subclasse for levantada, o objeto :class:" +"`HTTPConnection` estará pronto para se reconectar quando uma nova " +"solicitação for enviada." #: ../../library/http.client.rst:308 msgid "" @@ -445,9 +444,9 @@ msgstr "" #: ../../library/http.client.rst:328 msgid "" "For example, to tunnel through a HTTPS proxy server running locally on port " -"8080, we would pass the address of the proxy to the :class:`HTTPSConnection`" -" constructor, and the address of the host that we eventually want to reach " -"to the :meth:`~HTTPConnection.set_tunnel` method::" +"8080, we would pass the address of the proxy to the :class:`HTTPSConnection` " +"constructor, and the address of the host that we eventually want to reach to " +"the :meth:`~HTTPConnection.set_tunnel` method::" msgstr "" #: ../../library/http.client.rst:343 @@ -477,8 +476,8 @@ msgid "" "made. It sends a line to the server consisting of the *method* string, the " "*url* string, and the HTTP version (``HTTP/1.1``). To disable automatic " "sending of ``Host:`` or ``Accept-Encoding:`` headers (for example to accept " -"additional content encodings), specify *skip_host* or *skip_accept_encoding*" -" with non-False values." +"additional content encodings), specify *skip_host* or *skip_accept_encoding* " +"with non-False values." msgstr "" #: ../../library/http.client.rst:377 @@ -500,21 +499,21 @@ msgstr "" msgid "" "If *encode_chunked* is ``True``, the result of each iteration of " "*message_body* will be chunk-encoded as specified in :rfc:`7230`, Section " -"3.3.1. How the data is encoded is dependent on the type of *message_body*." -" If *message_body* implements the :ref:`buffer interface ` " -"the encoding will result in a single chunk. If *message_body* is a " -":class:`collections.abc.Iterable`, each iteration of *message_body* will " -"result in a chunk. If *message_body* is a :term:`file object`, each call to" -" ``.read()`` will result in a chunk. The method automatically signals the " -"end of the chunk-encoded data immediately after *message_body*." +"3.3.1. How the data is encoded is dependent on the type of *message_body*. " +"If *message_body* implements the :ref:`buffer interface ` the " +"encoding will result in a single chunk. If *message_body* is a :class:" +"`collections.abc.Iterable`, each iteration of *message_body* will result in " +"a chunk. If *message_body* is a :term:`file object`, each call to ``." +"read()`` will result in a chunk. The method automatically signals the end of " +"the chunk-encoded data immediately after *message_body*." msgstr "" #: ../../library/http.client.rst:400 msgid "" "Due to the chunked encoding specification, empty chunks yielded by an " "iterator body will be ignored by the chunk-encoder. This is to avoid " -"premature termination of the read of the request by the target server due to" -" malformed encoding." +"premature termination of the read of the request by the target server due to " +"malformed encoding." msgstr "" #: ../../library/http.client.rst:405 @@ -523,9 +522,8 @@ msgstr "" #: ../../library/http.client.rst:412 msgid "" -"Send data to the server. This should be used directly only after the " -":meth:`endheaders` method has been called and before :meth:`getresponse` is " -"called." +"Send data to the server. This should be used directly only after the :meth:" +"`endheaders` method has been called and before :meth:`getresponse` is called." msgstr "" #: ../../library/http.client.rst:420 @@ -535,8 +533,8 @@ msgstr "" #: ../../library/http.client.rst:422 msgid "" "An :class:`HTTPResponse` instance wraps the HTTP response from the server. " -"It provides access to the request headers and the entity body. The response" -" is an iterable object and can be used in a with statement." +"It provides access to the request headers and the entity body. The response " +"is an iterable object and can be used in a with statement." msgstr "" #: ../../library/http.client.rst:427 @@ -559,8 +557,8 @@ msgstr "" msgid "" "Return the value of the header *name*, or *default* if there is no header " "matching *name*. If there is more than one header with the name *name*, " -"return all of the values joined by ', '. If 'default' is any iterable other" -" than a single string, its elements are similarly returned joined by commas." +"return all of the values joined by ', '. If 'default' is any iterable other " +"than a single string, its elements are similarly returned joined by commas." msgstr "" #: ../../library/http.client.rst:452 @@ -573,9 +571,9 @@ msgstr "" #: ../../library/http.client.rst:460 msgid "" -"A :class:`http.client.HTTPMessage` instance containing the response headers." -" :class:`http.client.HTTPMessage` is a subclass of " -":class:`email.message.Message`." +"A :class:`http.client.HTTPMessage` instance containing the response " +"headers. :class:`http.client.HTTPMessage` is a subclass of :class:`email." +"message.Message`." msgstr "" #: ../../library/http.client.rst:466 @@ -593,8 +591,8 @@ msgstr "" #: ../../library/http.client.rst:478 msgid "" -"A debugging hook. If :attr:`debuglevel` is greater than zero, messages will" -" be printed to stdout as the response is read and parsed." +"A debugging hook. If :attr:`debuglevel` is greater than zero, messages will " +"be printed to stdout as the response is read and parsed." msgstr "" #: ../../library/http.client.rst:483 @@ -621,12 +619,12 @@ msgstr "" #: ../../library/http.client.rst:547 msgid "" -"Client side ``HTTP PUT`` requests are very similar to ``POST`` requests. The" -" difference lies only the server side where HTTP server will allow resources" -" to be created via ``PUT`` request. It should be noted that custom HTTP " -"methods +are also handled in :class:`urllib.request.Request` by sending the " -"appropriate +method attribute.Here is an example session that shows how to " -"do ``PUT`` request using http.client::" +"Client side ``HTTP PUT`` requests are very similar to ``POST`` requests. The " +"difference lies only the server side where HTTP server will allow resources " +"to be created via ``PUT`` request. It should be noted that custom HTTP " +"methods are also handled in :class:`urllib.request.Request` by setting the " +"appropriate method attribute. Here is an example session that shows how to " +"send a ``PUT`` request using http.client::" msgstr "" #: ../../library/http.client.rst:569 diff --git a/library/http.cookiejar.po b/library/http.cookiejar.po index 0bbde7a39..2ccdaabe6 100644 --- a/library/http.cookiejar.po +++ b/library/http.cookiejar.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Vinicius Gubiani Ferreira , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-14 11:55+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinicius Gubiani Ferreira , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,9 +43,9 @@ msgstr "" #: ../../library/http.cookiejar.rst:19 msgid "" -"Both the regular Netscape cookie protocol and the protocol defined by " -":rfc:`2965` are handled. RFC 2965 handling is switched off by default. " -":rfc:`2109` cookies are parsed as Netscape cookies and subsequently treated " +"Both the regular Netscape cookie protocol and the protocol defined by :rfc:" +"`2965` are handled. RFC 2965 handling is switched off by default. :rfc:" +"`2109` cookies are parsed as Netscape cookies and subsequently treated " "either as Netscape or RFC 2965 cookies according to the 'policy' in effect. " "Note that the great majority of cookies on the Internet are Netscape " "cookies. :mod:`http.cookiejar` attempts to follow the de-facto Netscape " @@ -54,11 +56,11 @@ msgstr "" #: ../../library/http.cookiejar.rst:31 msgid "" -"The various named parameters found in :mailheader:`Set-Cookie` and " -":mailheader:`Set-Cookie2` headers (eg. ``domain`` and ``expires``) are " +"The various named parameters found in :mailheader:`Set-Cookie` and :" +"mailheader:`Set-Cookie2` headers (eg. ``domain`` and ``expires``) are " "conventionally referred to as :dfn:`attributes`. To distinguish them from " -"Python attributes, the documentation for this module uses the term :dfn" -":`cookie-attribute` instead." +"Python attributes, the documentation for this module uses the term :dfn:" +"`cookie-attribute` instead." msgstr "" #: ../../library/http.cookiejar.rst:38 @@ -81,24 +83,22 @@ msgid "The following classes are provided:" msgstr "" #: ../../library/http.cookiejar.rst:56 -msgid "" -"*policy* is an object implementing the :class:`CookiePolicy` interface." +msgid "*policy* is an object implementing the :class:`CookiePolicy` interface." msgstr "" #: ../../library/http.cookiejar.rst:58 msgid "" "The :class:`CookieJar` class stores HTTP cookies. It extracts cookies from " "HTTP requests, and returns them in HTTP responses. :class:`CookieJar` " -"instances automatically expire contained cookies when necessary. Subclasses" -" are also responsible for storing and retrieving cookies from a file or " +"instances automatically expire contained cookies when necessary. Subclasses " +"are also responsible for storing and retrieving cookies from a file or " "database." msgstr "" #: ../../library/http.cookiejar.rst:66 msgid "" -"*policy* is an object implementing the :class:`CookiePolicy` interface. For" -" the other arguments, see the documentation for the corresponding " -"attributes." +"*policy* is an object implementing the :class:`CookiePolicy` interface. For " +"the other arguments, see the documentation for the corresponding attributes." msgstr "" #: ../../library/http.cookiejar.rst:69 @@ -118,11 +118,11 @@ msgstr "" #: ../../library/http.cookiejar.rst:83 msgid "" "Constructor arguments should be passed as keyword arguments only. " -"*blocked_domains* is a sequence of domain names that we never accept cookies" -" from, nor return cookies to. *allowed_domains* if not :const:`None`, this " -"is a sequence of the only domains for which we accept and return cookies. " -"For all other arguments, see the documentation for :class:`CookiePolicy` and" -" :class:`DefaultCookiePolicy` objects." +"*blocked_domains* is a sequence of domain names that we never accept cookies " +"from, nor return cookies to. *allowed_domains* if not :const:`None`, this is " +"a sequence of the only domains for which we accept and return cookies. For " +"all other arguments, see the documentation for :class:`CookiePolicy` and :" +"class:`DefaultCookiePolicy` objects." msgstr "" #: ../../library/http.cookiejar.rst:90 @@ -133,17 +133,17 @@ msgid "" "attribute of 1) are treated according to the RFC 2965 rules. However, if " "RFC 2965 handling is turned off or :attr:`rfc2109_as_netscape` is ``True``, " "RFC 2109 cookies are 'downgraded' by the :class:`CookieJar` instance to " -"Netscape cookies, by setting the :attr:`version` attribute of the " -":class:`Cookie` instance to 0. :class:`DefaultCookiePolicy` also provides " -"some parameters to allow some fine-tuning of policy." +"Netscape cookies, by setting the :attr:`version` attribute of the :class:" +"`Cookie` instance to 0. :class:`DefaultCookiePolicy` also provides some " +"parameters to allow some fine-tuning of policy." msgstr "" #: ../../library/http.cookiejar.rst:103 msgid "" "This class represents Netscape, :rfc:`2109` and :rfc:`2965` cookies. It is " -"not expected that users of :mod:`http.cookiejar` construct their own " -":class:`Cookie` instances. Instead, if necessary, call :meth:`make_cookies`" -" on a :class:`CookieJar` instance." +"not expected that users of :mod:`http.cookiejar` construct their own :class:" +"`Cookie` instances. Instead, if necessary, call :meth:`make_cookies` on a :" +"class:`CookieJar` instance." msgstr "" #: ../../library/http.cookiejar.rst:112 @@ -160,9 +160,8 @@ msgstr "" #: ../../library/http.cookiejar.rst:115 msgid "" -"HTTP cookie classes, principally useful for server-side code. The " -":mod:`http.cookiejar` and :mod:`http.cookies` modules do not depend on each " -"other." +"HTTP cookie classes, principally useful for server-side code. The :mod:" +"`http.cookiejar` and :mod:`http.cookies` modules do not depend on each other." msgstr "" #: ../../library/http.cookiejar.rst:123 @@ -182,8 +181,7 @@ msgid ":rfc:`2109` - HTTP State Management Mechanism" msgstr "" #: ../../library/http.cookiejar.rst:126 -msgid "" -"Obsoleted by :rfc:`2965`. Uses :mailheader:`Set-Cookie` with version=1." +msgid "Obsoleted by :rfc:`2965`. Uses :mailheader:`Set-Cookie` with version=1." msgstr "" #: ../../library/http.cookiejar.rst:130 @@ -230,18 +228,17 @@ msgstr "" msgid "" "If policy allows (ie. the :attr:`rfc2965` and :attr:`hide_cookie2` " "attributes of the :class:`CookieJar`'s :class:`CookiePolicy` instance are " -"true and false respectively), the :mailheader:`Cookie2` header is also added" -" when appropriate." +"true and false respectively), the :mailheader:`Cookie2` header is also added " +"when appropriate." msgstr "" #: ../../library/http.cookiejar.rst:156 msgid "" "The *request* object (usually a :class:`urllib.request.Request` instance) " -"must support the methods :meth:`get_full_url`, :meth:`get_host`, " -":meth:`get_type`, :meth:`unverifiable`, :meth:`has_header`, " -":meth:`get_header`, :meth:`header_items`, :meth:`add_unredirected_header` " -"and :attr:`origin_req_host` attribute as documented by " -":mod:`urllib.request`." +"must support the methods :meth:`get_full_url`, :meth:`get_host`, :meth:" +"`get_type`, :meth:`unverifiable`, :meth:`has_header`, :meth:`get_header`, :" +"meth:`header_items`, :meth:`add_unredirected_header` and :attr:" +"`origin_req_host` attribute as documented by :mod:`urllib.request`." msgstr "" #: ../../library/http.cookiejar.rst:165 ../../library/http.cookiejar.rst:191 @@ -252,33 +249,32 @@ msgstr "" #: ../../library/http.cookiejar.rst:171 msgid "" -"Extract cookies from HTTP *response* and store them in the " -":class:`CookieJar`, where allowed by policy." +"Extract cookies from HTTP *response* and store them in the :class:" +"`CookieJar`, where allowed by policy." msgstr "" #: ../../library/http.cookiejar.rst:174 msgid "" -"The :class:`CookieJar` will look for allowable :mailheader:`Set-Cookie` and " -":mailheader:`Set-Cookie2` headers in the *response* argument, and store " +"The :class:`CookieJar` will look for allowable :mailheader:`Set-Cookie` and :" +"mailheader:`Set-Cookie2` headers in the *response* argument, and store " "cookies as appropriate (subject to the :meth:`CookiePolicy.set_ok` method's " "approval)." msgstr "" #: ../../library/http.cookiejar.rst:178 msgid "" -"The *response* object (usually the result of a call to " -":meth:`urllib.request.urlopen`, or similar) should support an :meth:`info` " -"method, which returns an :class:`email.message.Message` instance." +"The *response* object (usually the result of a call to :meth:`urllib.request." +"urlopen`, or similar) should support an :meth:`info` method, which returns " +"an :class:`email.message.Message` instance." msgstr "" #: ../../library/http.cookiejar.rst:182 msgid "" "The *request* object (usually a :class:`urllib.request.Request` instance) " -"must support the methods :meth:`get_full_url`, :meth:`get_host`, " -":meth:`unverifiable`, and :attr:`origin_req_host` attribute, as documented " -"by :mod:`urllib.request`. The request is used to set default values for " -"cookie-attributes as well as for checking that the cookie is allowed to be " -"set." +"must support the methods :meth:`get_full_url`, :meth:`get_host`, :meth:" +"`unverifiable`, and :attr:`origin_req_host` attribute, as documented by :mod:" +"`urllib.request`. The request is used to set default values for cookie-" +"attributes as well as for checking that the cookie is allowed to be set." msgstr "" #: ../../library/http.cookiejar.rst:196 @@ -302,8 +298,8 @@ msgstr "" #: ../../library/http.cookiejar.rst:214 msgid "" -"Set a :class:`Cookie`, without checking with policy to see whether or not it" -" should be set." +"Set a :class:`Cookie`, without checking with policy to see whether or not it " +"should be set." msgstr "" #: ../../library/http.cookiejar.rst:220 @@ -360,8 +356,8 @@ msgstr "" msgid "" "*filename* is the name of file in which to save cookies. If *filename* is " "not specified, :attr:`self.filename` is used (whose default is the value " -"passed to the constructor, if any); if :attr:`self.filename` is " -":const:`None`, :exc:`ValueError` is raised." +"passed to the constructor, if any); if :attr:`self.filename` is :const:" +"`None`, :exc:`ValueError` is raised." msgstr "" #: ../../library/http.cookiejar.rst:258 @@ -372,9 +368,9 @@ msgstr "" #: ../../library/http.cookiejar.rst:261 msgid "" -"The file is overwritten if it already exists, thus wiping all the cookies it" -" contains. Saved cookies can be restored later using the :meth:`load` or " -":meth:`revert` methods." +"The file is overwritten if it already exists, thus wiping all the cookies it " +"contains. Saved cookies can be restored later using the :meth:`load` or :" +"meth:`revert` methods." msgstr "" #: ../../library/http.cookiejar.rst:268 @@ -391,15 +387,16 @@ msgstr "" #: ../../library/http.cookiejar.rst:274 msgid "" -"The named file must be in the format understood by the class, or " -":exc:`LoadError` will be raised. Also, :exc:`OSError` may be raised, for " -"example if the file does not exist." +"The named file must be in the format understood by the class, or :exc:" +"`LoadError` will be raised. Also, :exc:`OSError` may be raised, for example " +"if the file does not exist." msgstr "" #: ../../library/http.cookiejar.rst:278 -msgid "" -":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." +msgid ":exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`." msgstr "" +":exc:`IOError` costumava ser levantado, agora ele é um codinome para :exc:" +"`OSError`." #: ../../library/http.cookiejar.rst:284 msgid "Clear all cookies and reload cookies from a saved file." @@ -470,8 +467,8 @@ msgstr "" msgid "" "A :class:`FileCookieJar` that can load from and save cookies to disk in " "format compatible with the libwww-perl library's ``Set-Cookie3`` file " -"format. This is convenient if you want to store cookies in a human-readable" -" file." +"format. This is convenient if you want to store cookies in a human-readable " +"file." msgstr "" #: ../../library/http.cookiejar.rst:346 @@ -492,9 +489,9 @@ msgstr "" #: ../../library/http.cookiejar.rst:356 msgid "" -"*cookie* is a :class:`Cookie` instance. *request* is an object implementing" -" the interface defined by the documentation for " -":meth:`CookieJar.extract_cookies`." +"*cookie* is a :class:`Cookie` instance. *request* is an object implementing " +"the interface defined by the documentation for :meth:`CookieJar." +"extract_cookies`." msgstr "" #: ../../library/http.cookiejar.rst:363 @@ -504,13 +501,14 @@ msgstr "" #: ../../library/http.cookiejar.rst:365 msgid "" -"*cookie* is a :class:`Cookie` instance. *request* is an object implementing" -" the interface defined by the documentation for " -":meth:`CookieJar.add_cookie_header`." +"*cookie* is a :class:`Cookie` instance. *request* is an object implementing " +"the interface defined by the documentation for :meth:`CookieJar." +"add_cookie_header`." msgstr "" #: ../../library/http.cookiejar.rst:372 -msgid "Return false if cookies should not be returned, given cookie domain." +msgid "" +"Return ``False`` if cookies should not be returned, given cookie domain." msgstr "" #: ../../library/http.cookiejar.rst:374 @@ -523,12 +521,12 @@ msgstr "" #: ../../library/http.cookiejar.rst:379 msgid "" -"If :meth:`domain_return_ok` returns true for the cookie domain, " -":meth:`path_return_ok` is called for the cookie path. Otherwise, " -":meth:`path_return_ok` and :meth:`return_ok` are never called for that " -"cookie domain. If :meth:`path_return_ok` returns true, :meth:`return_ok` is" -" called with the :class:`Cookie` object itself for a full check. Otherwise," -" :meth:`return_ok` is never called for that cookie path." +"If :meth:`domain_return_ok` returns true for the cookie domain, :meth:" +"`path_return_ok` is called for the cookie path. Otherwise, :meth:" +"`path_return_ok` and :meth:`return_ok` are never called for that cookie " +"domain. If :meth:`path_return_ok` returns true, :meth:`return_ok` is called " +"with the :class:`Cookie` object itself for a full check. Otherwise, :meth:" +"`return_ok` is never called for that cookie path." msgstr "" #: ../../library/http.cookiejar.rst:386 @@ -536,8 +534,7 @@ msgid "" "Note that :meth:`domain_return_ok` is called for every *cookie* domain, not " "just for the *request* domain. For example, the function might be called " "with both ``\".example.com\"`` and ``\"www.example.com\"`` if the request " -"domain is ``\"www.example.com\"``. The same goes for " -":meth:`path_return_ok`." +"domain is ``\"www.example.com\"``. The same goes for :meth:`path_return_ok`." msgstr "" #: ../../library/http.cookiejar.rst:391 @@ -545,7 +542,7 @@ msgid "The *request* argument is as documented for :meth:`return_ok`." msgstr "" #: ../../library/http.cookiejar.rst:396 -msgid "Return false if cookies should not be returned, given cookie path." +msgid "Return ``False`` if cookies should not be returned, given cookie path." msgstr "" #: ../../library/http.cookiejar.rst:398 @@ -554,10 +551,10 @@ msgstr "" #: ../../library/http.cookiejar.rst:400 msgid "" -"In addition to implementing the methods above, implementations of the " -":class:`CookiePolicy` interface must also supply the following attributes, " -"indicating which protocols should be used, and how. All of these attributes" -" may be assigned to." +"In addition to implementing the methods above, implementations of the :class:" +"`CookiePolicy` interface must also supply the following attributes, " +"indicating which protocols should be used, and how. All of these attributes " +"may be assigned to." msgstr "" #: ../../library/http.cookiejar.rst:408 @@ -579,8 +576,8 @@ msgid "" "The most useful way to define a :class:`CookiePolicy` class is by " "subclassing from :class:`DefaultCookiePolicy` and overriding some or all of " "the methods above. :class:`CookiePolicy` itself may be used as a 'null " -"policy' to allow setting and receiving any and all cookies (this is unlikely" -" to be useful)." +"policy' to allow setting and receiving any and all cookies (this is unlikely " +"to be useful)." msgstr "" #: ../../library/http.cookiejar.rst:430 @@ -607,8 +604,8 @@ msgstr "" #: ../../library/http.cookiejar.rst:450 msgid "" "In addition to the features required to implement the :class:`CookiePolicy` " -"interface, this class allows you to block and allow domains from setting and" -" receiving cookies. There are also some strictness switches that allow you " +"interface, this class allows you to block and allow domains from setting and " +"receiving cookies. There are also some strictness switches that allow you " "to tighten up the rather loose Netscape protocol rules a little bit (at the " "cost of blocking some benign cookies)." msgstr "" @@ -618,10 +615,10 @@ msgid "" "A domain blacklist and whitelist is provided (both off by default). Only " "domains not in the blacklist and present in the whitelist (if the whitelist " "is active) participate in cookie setting and returning. Use the " -"*blocked_domains* constructor argument, and :meth:`blocked_domains` and " -":meth:`set_blocked_domains` methods (and the corresponding argument and " -"methods for *allowed_domains*). If you set a whitelist, you can turn it off" -" again by setting it to :const:`None`." +"*blocked_domains* constructor argument, and :meth:`blocked_domains` and :" +"meth:`set_blocked_domains` methods (and the corresponding argument and " +"methods for *allowed_domains*). If you set a whitelist, you can turn it off " +"again by setting it to :const:`None`." msgstr "" #: ../../library/http.cookiejar.rst:464 @@ -630,12 +627,11 @@ msgid "" "cookie domain to be matched. For example, ``\"example.com\"`` matches a " "blacklist entry of ``\"example.com\"``, but ``\"www.example.com\"`` does " "not. Domains that do start with a dot are matched by more specific domains " -"too. For example, both ``\"www.example.com\"`` and " -"``\"www.coyote.example.com\"`` match ``\".example.com\"`` (but " -"``\"example.com\"`` itself does not). IP addresses are an exception, and " -"must match exactly. For example, if blocked_domains contains " -"``\"192.168.1.2\"`` and ``\".168.1.2\"``, 192.168.1.2 is blocked, but " -"193.168.1.2 is not." +"too. For example, both ``\"www.example.com\"`` and ``\"www.coyote.example.com" +"\"`` match ``\".example.com\"`` (but ``\"example.com\"`` itself does not). " +"IP addresses are an exception, and must match exactly. For example, if " +"blocked_domains contains ``\"192.168.1.2\"`` and ``\".168.1.2\"``, " +"192.168.1.2 is blocked, but 193.168.1.2 is not." msgstr "" #: ../../library/http.cookiejar.rst:473 @@ -653,8 +649,7 @@ msgstr "" #: ../../library/http.cookiejar.rst:488 msgid "" -"Return whether *domain* is on the blacklist for setting or receiving " -"cookies." +"Return whether *domain* is on the blacklist for setting or receiving cookies." msgstr "" #: ../../library/http.cookiejar.rst:493 @@ -683,10 +678,10 @@ msgid "" "If true, request that the :class:`CookieJar` instance downgrade :rfc:`2109` " "cookies (ie. cookies received in a :mailheader:`Set-Cookie` header with a " "version cookie-attribute of 1) to Netscape cookies by setting the version " -"attribute of the :class:`Cookie` instance to 0. The default value is " -":const:`None`, in which case RFC 2109 cookies are downgraded if and only if " -":rfc:`2965` handling is turned off. Therefore, RFC 2109 cookies are " -"downgraded by default." +"attribute of the :class:`Cookie` instance to 0. The default value is :const:" +"`None`, in which case RFC 2109 cookies are downgraded if and only if :rfc:" +"`2965` handling is turned off. Therefore, RFC 2109 cookies are downgraded " +"by default." msgstr "" #: ../../library/http.cookiejar.rst:521 @@ -739,24 +734,24 @@ msgstr "" #: ../../library/http.cookiejar.rst:562 msgid "" -":attr:`strict_ns_domain` is a collection of flags. Its value is constructed" -" by or-ing together (for example, " -"``DomainStrictNoDots|DomainStrictNonDomain`` means both flags are set)." +":attr:`strict_ns_domain` is a collection of flags. Its value is constructed " +"by or-ing together (for example, ``DomainStrictNoDots|" +"DomainStrictNonDomain`` means both flags are set)." msgstr "" #: ../../library/http.cookiejar.rst:569 msgid "" -"When setting cookies, the 'host prefix' must not contain a dot (eg. " -"``www.foo.bar.com`` can't set a cookie for ``.bar.com``, because ``www.foo``" -" contains a dot)." +"When setting cookies, the 'host prefix' must not contain a dot (eg. ``www." +"foo.bar.com`` can't set a cookie for ``.bar.com``, because ``www.foo`` " +"contains a dot)." msgstr "" #: ../../library/http.cookiejar.rst:576 msgid "" "Cookies that did not explicitly specify a ``domain`` cookie-attribute can " "only be returned to a domain equal to the domain that set the cookie (eg. " -"``spam.example.com`` won't be returned cookies from ``example.com`` that had" -" no ``domain`` cookie-attribute)." +"``spam.example.com`` won't be returned cookies from ``example.com`` that had " +"no ``domain`` cookie-attribute)." msgstr "" #: ../../library/http.cookiejar.rst:584 @@ -788,25 +783,25 @@ msgid "" ":class:`Cookie` instances have Python attributes roughly corresponding to " "the standard cookie-attributes specified in the various cookie standards. " "The correspondence is not one-to-one, because there are complicated rules " -"for assigning default values, because the ``max-age`` and ``expires`` " -"cookie-attributes contain equivalent information, and because :rfc:`2109` " -"cookies may be 'downgraded' by :mod:`http.cookiejar` from version 1 to " -"version 0 (Netscape) cookies." +"for assigning default values, because the ``max-age`` and ``expires`` cookie-" +"attributes contain equivalent information, and because :rfc:`2109` cookies " +"may be 'downgraded' by :mod:`http.cookiejar` from version 1 to version 0 " +"(Netscape) cookies." msgstr "" #: ../../library/http.cookiejar.rst:612 msgid "" "Assignment to these attributes should not be necessary other than in rare " -"circumstances in a :class:`CookiePolicy` method. The class does not enforce" -" internal consistency, so you should know what you're doing if you do that." +"circumstances in a :class:`CookiePolicy` method. The class does not enforce " +"internal consistency, so you should know what you're doing if you do that." msgstr "" #: ../../library/http.cookiejar.rst:619 msgid "" -"Integer or :const:`None`. Netscape cookies have :attr:`version` 0. " -":rfc:`2965` and :rfc:`2109` cookies have a ``version`` cookie-attribute of " -"1. However, note that :mod:`http.cookiejar` may 'downgrade' RFC 2109 " -"cookies to Netscape cookies, in which case :attr:`version` is 0." +"Integer or :const:`None`. Netscape cookies have :attr:`version` 0. :rfc:" +"`2965` and :rfc:`2109` cookies have a ``version`` cookie-attribute of 1. " +"However, note that :mod:`http.cookiejar` may 'downgrade' RFC 2109 cookies to " +"Netscape cookies, in which case :attr:`version` is 0." msgstr "" #: ../../library/http.cookiejar.rst:627 @@ -819,8 +814,8 @@ msgstr "" #: ../../library/http.cookiejar.rst:637 msgid "" -"String representing a port or a set of ports (eg. '80', or '80,8080'), or " -":const:`None`." +"String representing a port or a set of ports (eg. '80', or '80,8080'), or :" +"const:`None`." msgstr "" #: ../../library/http.cookiejar.rst:643 @@ -833,8 +828,8 @@ msgstr "" #: ../../library/http.cookiejar.rst:653 msgid "" -"Integer expiry date in seconds since epoch, or :const:`None`. See also the " -":meth:`is_expired` method." +"Integer expiry date in seconds since epoch, or :const:`None`. See also the :" +"meth:`is_expired` method." msgstr "" #: ../../library/http.cookiejar.rst:659 @@ -843,8 +838,8 @@ msgstr "" #: ../../library/http.cookiejar.rst:664 msgid "" -"String comment from the server explaining the function of this cookie, or " -":const:`None`." +"String comment from the server explaining the function of this cookie, or :" +"const:`None`." msgstr "" #: ../../library/http.cookiejar.rst:670 @@ -885,7 +880,7 @@ msgid "" msgstr "" #: ../../library/http.cookiejar.rst:705 -msgid "Return true if cookie has the named cookie-attribute." +msgid "Return ``True`` if cookie has the named cookie-attribute." msgstr "" #: ../../library/http.cookiejar.rst:710 diff --git a/library/http.cookies.po b/library/http.cookies.po index e06062e0f..ea3cb2457 100644 --- a/library/http.cookies.po +++ b/library/http.cookies.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-08 11:22+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" -"Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,18 +37,18 @@ msgstr "**Código Fonte:** :source:`Lib/http/cookies.py`" msgid "" "The :mod:`http.cookies` module defines classes for abstracting the concept " "of cookies, an HTTP state management mechanism. It supports both simple " -"string-only cookies, and provides an abstraction for having any serializable" -" data-type as cookie value." +"string-only cookies, and provides an abstraction for having any serializable " +"data-type as cookie value." msgstr "" #: ../../library/http.cookies.rst:19 msgid "" -"The module formerly strictly applied the parsing rules described in the " -":rfc:`2109` and :rfc:`2068` specifications. It has since been discovered " -"that MSIE 3.0x doesn't follow the character rules outlined in those specs " -"and also many current day browsers and servers have relaxed parsing rules " -"when comes to Cookie handling. As a result, the parsing rules used are a " -"bit less strict." +"The module formerly strictly applied the parsing rules described in the :rfc:" +"`2109` and :rfc:`2068` specifications. It has since been discovered that " +"MSIE 3.0x doesn't follow the character rules outlined in those specs and " +"also many current day browsers and servers have relaxed parsing rules when " +"comes to Cookie handling. As a result, the parsing rules used are a bit " +"less strict." msgstr "" #: ../../library/http.cookies.rst:25 @@ -87,11 +89,11 @@ msgstr "" #: ../../library/http.cookies.rst:57 msgid "" -"This class derives from :class:`BaseCookie` and overrides " -":meth:`value_decode` and :meth:`value_encode`. SimpleCookie supports strings" -" as cookie values. When setting the value, SimpleCookie calls the builtin " -":func:`str()` to convert the value to a string. Values received from HTTP " -"are kept as strings." +"This class derives from :class:`BaseCookie` and overrides :meth:" +"`value_decode` and :meth:`value_encode`. SimpleCookie supports strings as " +"cookie values. When setting the value, SimpleCookie calls the builtin :func:" +"`str()` to convert the value to a string. Values received from HTTP are kept " +"as strings." msgstr "" #: ../../library/http.cookies.rst:66 @@ -100,8 +102,8 @@ msgstr "" #: ../../library/http.cookies.rst:65 msgid "" -"HTTP cookie handling for web *clients*. The :mod:`http.cookiejar` and " -":mod:`http.cookies` modules do not depend on each other." +"HTTP cookie handling for web *clients*. The :mod:`http.cookiejar` and :mod:" +"`http.cookies` modules do not depend on each other." msgstr "" #: ../../library/http.cookies.rst:68 @@ -119,8 +121,8 @@ msgstr "" #: ../../library/http.cookies.rst:80 msgid "" "Return a tuple ``(real_value, coded_value)`` from a string representation. " -"``real_value`` can be any type. This method does no decoding in " -":class:`BaseCookie` --- it exists so it can be overridden." +"``real_value`` can be any type. This method does no decoding in :class:" +"`BaseCookie` --- it exists so it can be overridden." msgstr "" #: ../../library/http.cookies.rst:87 @@ -132,15 +134,15 @@ msgstr "" #: ../../library/http.cookies.rst:92 msgid "" -"In general, it should be the case that :meth:`value_encode` and " -":meth:`value_decode` are inverses on the range of *value_decode*." +"In general, it should be the case that :meth:`value_encode` and :meth:" +"`value_decode` are inverses on the range of *value_decode*." msgstr "" #: ../../library/http.cookies.rst:98 msgid "" "Return a string representation suitable to be sent as HTTP headers. *attrs* " -"and *header* are sent to each :class:`Morsel`'s :meth:`output` method. *sep*" -" is used to join the headers together, and is by default the combination " +"and *header* are sent to each :class:`Morsel`'s :meth:`output` method. *sep* " +"is used to join the headers together, and is by default the combination " "``'\\r\\n'`` (CRLF)." msgstr "" @@ -178,27 +180,27 @@ msgstr "" #: ../../library/http.cookies.rst:134 msgid "``expires``" -msgstr "" +msgstr "``expires``" #: ../../library/http.cookies.rst:135 msgid "``path``" -msgstr "" +msgstr "``path``" #: ../../library/http.cookies.rst:136 msgid "``comment``" -msgstr "" +msgstr "``comment``" #: ../../library/http.cookies.rst:137 msgid "``domain``" -msgstr "" +msgstr "``domain``" #: ../../library/http.cookies.rst:138 msgid "``max-age``" -msgstr "" +msgstr "``max-age``" #: ../../library/http.cookies.rst:139 msgid "``secure``" -msgstr "" +msgstr "``secure``" #: ../../library/http.cookies.rst:140 msgid "``version``" @@ -206,13 +208,13 @@ msgstr "``version``" #: ../../library/http.cookies.rst:141 msgid "``httponly``" -msgstr "" +msgstr "``httponly``" #: ../../library/http.cookies.rst:143 msgid "" -"The attribute :attr:`httponly` specifies that the cookie is only transferred" -" in HTTP requests, and is not accessible through JavaScript. This is " -"intended to mitigate some forms of cross-site scripting." +"The attribute :attr:`httponly` specifies that the cookie is only transferred " +"in HTTP requests, and is not accessible through JavaScript. This is intended " +"to mitigate some forms of cross-site scripting." msgstr "" #: ../../library/http.cookies.rst:147 @@ -221,15 +223,14 @@ msgstr "" #: ../../library/http.cookies.rst:149 msgid "" -":meth:`~Morsel.__eq__` now takes :attr:`~Morsel.key` and " -":attr:`~Morsel.value` into account." +":meth:`~Morsel.__eq__` now takes :attr:`~Morsel.key` and :attr:`~Morsel." +"value` into account." msgstr "" #: ../../library/http.cookies.rst:153 msgid "" -"Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and " -":attr:`~Morsel.coded_value` are read-only. Use :meth:`~Morsel.set` for " -"setting them." +"Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and :attr:`~Morsel." +"coded_value` are read-only. Use :meth:`~Morsel.set` for setting them." msgstr "" #: ../../library/http.cookies.rst:161 @@ -254,8 +255,8 @@ msgstr "" #: ../../library/http.cookies.rst:186 msgid "" -"Return a string representation of the Morsel, suitable to be sent as an HTTP" -" header. By default, all the attributes are included, unless *attrs* is " +"Return a string representation of the Morsel, suitable to be sent as an HTTP " +"header. By default, all the attributes are included, unless *attrs* is " "given, in which case it should be a list of attributes to use. *header* is " "by default ``\"Set-Cookie:\"``." msgstr "" @@ -274,8 +275,8 @@ msgstr "" #: ../../library/http.cookies.rst:210 msgid "" -"Update the values in the Morsel dictionary with the values in the dictionary" -" *values*. Raise an error if any of the keys in the *values* dict is not a " +"Update the values in the Morsel dictionary with the values in the dictionary " +"*values*. Raise an error if any of the keys in the *values* dict is not a " "valid :rfc:`2109` attribute." msgstr "" @@ -293,8 +294,8 @@ msgstr "" #: ../../library/http.cookies.rst:228 msgid "" -"Raise an error if key is not a valid :rfc:`2109` attribute, otherwise behave" -" the same as :meth:`dict.setdefault`." +"Raise an error if key is not a valid :rfc:`2109` attribute, otherwise behave " +"the same as :meth:`dict.setdefault`." msgstr "" #: ../../library/http.cookies.rst:235 @@ -303,6 +304,5 @@ msgstr "Exemplo" #: ../../library/http.cookies.rst:237 msgid "" -"The following example demonstrates how to use the :mod:`http.cookies` " -"module." +"The following example demonstrates how to use the :mod:`http.cookies` module." msgstr "" diff --git a/library/http.po b/library/http.po index 743f7612a..94355a660 100644 --- a/library/http.po +++ b/library/http.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-02-01 10:33+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marcos Wenneton Araújo , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,11 +50,11 @@ msgstr "" #: ../../library/http.rst:20 msgid "" -":mod:`http.server` contains basic HTTP server classes based on " -":mod:`socketserver`" +":mod:`http.server` contains basic HTTP server classes based on :mod:" +"`socketserver`" msgstr "" -":mod:`http.server` contém classes básicas de servidores HTTP baseadas em " -":mod:`socketserver`" +":mod:`http.server` contém classes básicas de servidores HTTP baseadas em :" +"mod:`socketserver`" #: ../../library/http.rst:21 msgid "" @@ -77,8 +78,8 @@ msgstr "" #: ../../library/http.rst:31 msgid "" -"A subclass of :class:`enum.IntEnum` that defines a set of HTTP status codes," -" reason phrases and long descriptions written in English." +"A subclass of :class:`enum.IntEnum` that defines a set of HTTP status codes, " +"reason phrases and long descriptions written in English." msgstr "" "Subclasse de :class:`enum.IntEnum` que define um conjunto de códigos de " "status HTTP, frases de razão e descrições longas escritas em inglês." @@ -94,12 +95,12 @@ msgstr "códigos de status HTTP" #: ../../library/http.rst:55 msgid "" "Supported, `IANA-registered `_ status codes available in " -":class:`http.HTTPStatus` are:" +"codes/http-status-codes.xhtml>`_ status codes available in :class:`http." +"HTTPStatus` are:" msgstr "" -"Suportados, códigos de status `IANA-registered " -"`_ disponíveis em :class:`http.HTTPStatus` são:" +"Suportados, códigos de status `IANA-registered `_ disponíveis em :" +"class:`http.HTTPStatus` são:" #: ../../library/http.rst:60 msgid "Code" @@ -810,8 +811,8 @@ msgstr "Códigos de Status HTTP Adicionais :rfc:`6585`, Seção 6" msgid "" "In order to preserve backwards compatibility, enum values are also present " "in the :mod:`http.client` module in the form of constants. The enum name is " -"equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as" -" ``http.client.OK``)." +"equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as " +"``http.client.OK``)." msgstr "" "Para preservar compatibilidades anteriores, valores de enumerações também " "estão presentes no módulo :mod:`http.client` na forma de constantes. O nome " diff --git a/library/http.server.po b/library/http.server.po index 91f93a47c..e292216e2 100644 --- a/library/http.server.po +++ b/library/http.server.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,15 +54,15 @@ msgstr "" #: ../../library/http.server.rst:36 msgid "" "This class builds on the :class:`~socketserver.TCPServer` class by storing " -"the server address as instance variables named :attr:`server_name` and " -":attr:`server_port`. The server is accessible by the handler, typically " -"through the handler's :attr:`server` instance variable." +"the server address as instance variables named :attr:`server_name` and :attr:" +"`server_port`. The server is accessible by the handler, typically through " +"the handler's :attr:`server` instance variable." msgstr "" #: ../../library/http.server.rst:43 msgid "" -"This class is identical to HTTPServer but uses threads to handle requests by" -" using the :class:`~socketserver.ThreadingMixIn`. This is useful to handle " +"This class is identical to HTTPServer but uses threads to handle requests by " +"using the :class:`~socketserver.ThreadingMixIn`. This is useful to handle " "web browsers pre-opening sockets, on which :class:`HTTPServer` would wait " "indefinitely." msgstr "" @@ -75,9 +78,9 @@ msgstr "" msgid "" "This class is used to handle the HTTP requests that arrive at the server. " "By itself, it cannot respond to any actual HTTP requests; it must be " -"subclassed to handle each request method (e.g. GET or POST). " -":class:`BaseHTTPRequestHandler` provides a number of class and instance " -"variables, and methods for use by subclasses." +"subclassed to handle each request method (e.g. GET or POST). :class:" +"`BaseHTTPRequestHandler` provides a number of class and instance variables, " +"and methods for use by subclasses." msgstr "" #: ../../library/http.server.rst:63 @@ -93,6 +96,7 @@ msgstr "" #: ../../library/http.server.rst:70 msgid ":class:`BaseHTTPRequestHandler` has the following instance variables:" msgstr "" +":class:`BaseHTTPRequestHandler` tem os seguintes atributos de instância:" #: ../../library/http.server.rst:74 msgid "" @@ -113,10 +117,10 @@ msgstr "" #: ../../library/http.server.rst:89 msgid "" -"Contains the string representation of the HTTP request line. The terminating" -" CRLF is stripped. This attribute should be set by " -":meth:`handle_one_request`. If no valid request line was processed, it " -"should be set to the empty string." +"Contains the string representation of the HTTP request line. The terminating " +"CRLF is stripped. This attribute should be set by :meth:" +"`handle_one_request`. If no valid request line was processed, it should be " +"set to the empty string." msgstr "" #: ../../library/http.server.rst:96 @@ -149,8 +153,8 @@ msgstr "" #: ../../library/http.server.rst:121 msgid "" -"Contains the output stream for writing a response back to the client. Proper" -" adherence to the HTTP protocol must be used when writing to this stream in " +"Contains the output stream for writing a response back to the client. Proper " +"adherence to the HTTP protocol must be used when writing to this stream in " "order to achieve successful interoperation with HTTP clients." msgstr "" @@ -160,20 +164,20 @@ msgstr "" #: ../../library/http.server.rst:129 msgid ":class:`BaseHTTPRequestHandler` has the following attributes:" -msgstr "" +msgstr ":class:`BaseHTTPRequestHandler` tems os seguintes atributos:" #: ../../library/http.server.rst:133 msgid "" "Specifies the server software version. You may want to override this. The " -"format is multiple whitespace-separated strings, where each string is of the" -" form name[/version]. For example, ``'BaseHTTP/0.2'``." +"format is multiple whitespace-separated strings, where each string is of the " +"form name[/version]. For example, ``'BaseHTTP/0.2'``." msgstr "" #: ../../library/http.server.rst:139 msgid "" -"Contains the Python system version, in a form usable by the " -":attr:`version_string` method and the :attr:`server_version` class variable." -" For example, ``'Python/1.4'``." +"Contains the Python system version, in a form usable by the :attr:" +"`version_string` method and the :attr:`server_version` class variable. For " +"example, ``'Python/1.4'``." msgstr "" #: ../../library/http.server.rst:145 @@ -193,8 +197,8 @@ msgstr "" #: ../../library/http.server.rst:157 msgid "" "This specifies the HTTP protocol version used in responses. If set to " -"``'HTTP/1.1'``, the server will permit HTTP persistent connections; however," -" your server *must* then include an accurate ``Content-Length`` header " +"``'HTTP/1.1'``, the server will permit HTTP persistent connections; however, " +"your server *must* then include an accurate ``Content-Length`` header " "(using :meth:`send_header`) in all of its responses to clients. For " "backwards compatibility, the setting defaults to ``'HTTP/1.0'``." msgstr "" @@ -202,8 +206,8 @@ msgstr "" #: ../../library/http.server.rst:165 msgid "" "Specifies an :class:`email.message.Message`\\ -like class to parse HTTP " -"headers. Typically, this is not overridden, and it defaults to " -":class:`http.client.HTTPMessage`." +"headers. Typically, this is not overridden, and it defaults to :class:`http." +"client.HTTPMessage`." msgstr "" #: ../../library/http.server.rst:171 @@ -211,13 +215,14 @@ msgid "" "This attribute contains a mapping of error code integers to two-element " "tuples containing a short and long message. For example, ``{code: " "(shortmessage, longmessage)}``. The *shortmessage* is usually used as the " -"*message* key in an error response, and *longmessage* as the *explain* key." -" It is used by :meth:`send_response_only` and :meth:`send_error` methods." +"*message* key in an error response, and *longmessage* as the *explain* key. " +"It is used by :meth:`send_response_only` and :meth:`send_error` methods." msgstr "" #: ../../library/http.server.rst:177 msgid "A :class:`BaseHTTPRequestHandler` instance has the following methods:" msgstr "" +"Uma instância de :class:`BaseHTTPRequestHandler` têm os seguintes métodos:" #: ../../library/http.server.rst:181 msgid "" @@ -228,8 +233,8 @@ msgstr "" #: ../../library/http.server.rst:188 msgid "" -"This method will parse and dispatch the request to the appropriate " -":meth:`do_\\*` method. You should never need to override it." +"This method will parse and dispatch the request to the appropriate :meth:`do_" +"\\*` method. You should never need to override it." msgstr "" #: ../../library/http.server.rst:193 @@ -275,8 +280,8 @@ msgstr "" #: ../../library/http.server.rst:231 msgid "" -"Headers are stored to an internal buffer and :meth:`end_headers` needs to be" -" called explicitly." +"Headers are stored to an internal buffer and :meth:`end_headers` needs to be " +"called explicitly." msgstr "" #: ../../library/http.server.rst:237 @@ -284,8 +289,8 @@ msgid "" "Adds the HTTP header to an internal buffer which will be written to the " "output stream when either :meth:`end_headers` or :meth:`flush_headers` is " "invoked. *keyword* should specify the header keyword, with *value* " -"specifying its value. Note that, after the send_header calls are done, " -":meth:`end_headers` MUST BE called in order to complete the operation." +"specifying its value. Note that, after the send_header calls are done, :meth:" +"`end_headers` MUST BE called in order to complete the operation." msgstr "" #: ../../library/http.server.rst:243 @@ -312,8 +317,8 @@ msgstr "" #: ../../library/http.server.rst:266 msgid "" -"Finally send the headers to the output stream and flush the internal headers" -" buffer." +"Finally send the headers to the output stream and flush the internal headers " +"buffer." msgstr "" #: ../../library/http.server.rst:273 @@ -326,29 +331,29 @@ msgstr "" #: ../../library/http.server.rst:279 msgid "" "Logs an error when a request cannot be fulfilled. By default, it passes the " -"message to :meth:`log_message`, so it takes the same arguments (*format* and" -" additional values)." +"message to :meth:`log_message`, so it takes the same arguments (*format* and " +"additional values)." msgstr "" #: ../../library/http.server.rst:286 msgid "" -"Logs an arbitrary message to ``sys.stderr``. This is typically overridden to" -" create custom error logging mechanisms. The *format* argument is a standard" -" printf-style format string, where the additional arguments to " -":meth:`log_message` are applied as inputs to the formatting. The client ip " -"address and current date and time are prefixed to every message logged." +"Logs an arbitrary message to ``sys.stderr``. This is typically overridden to " +"create custom error logging mechanisms. The *format* argument is a standard " +"printf-style format string, where the additional arguments to :meth:" +"`log_message` are applied as inputs to the formatting. The client ip address " +"and current date and time are prefixed to every message logged." msgstr "" #: ../../library/http.server.rst:294 msgid "" -"Returns the server software's version string. This is a combination of the " -":attr:`server_version` and :attr:`sys_version` attributes." +"Returns the server software's version string. This is a combination of the :" +"attr:`server_version` and :attr:`sys_version` attributes." msgstr "" #: ../../library/http.server.rst:299 msgid "" -"Returns the date and time given by *timestamp* (which must be ``None`` or in" -" the format returned by :func:`time.time`), formatted for a message header. " +"Returns the date and time given by *timestamp* (which must be ``None`` or in " +"the format returned by :func:`time.time`), formatted for a message header. " "If *timestamp* is omitted, it uses the current date and time." msgstr "" @@ -366,8 +371,8 @@ msgstr "" #: ../../library/http.server.rst:313 msgid "" -"Previously, a name lookup was performed. To avoid name resolution delays, it" -" now always returns the IP address." +"Previously, a name lookup was performed. To avoid name resolution delays, it " +"now always returns the IP address." msgstr "" #: ../../library/http.server.rst:320 @@ -378,15 +383,18 @@ msgstr "" #: ../../library/http.server.rst:323 msgid "" -"A lot of the work, such as parsing the request, is done by the base class " -":class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET` " +"A lot of the work, such as parsing the request, is done by the base class :" +"class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET` " "and :func:`do_HEAD` functions." msgstr "" +"Muito do trabalho, como analisar o pedido, é feito pela classe base :class:" +"`BaseHTTPRequestHandler`. Esta classe implementa as funções :func:`do_GET` " +"e :func:`do_HEAD`." #: ../../library/http.server.rst:327 msgid "" -"The following are defined as class-level attributes of " -":class:`SimpleHTTPRequestHandler`:" +"The following are defined as class-level attributes of :class:" +"`SimpleHTTPRequestHandler`:" msgstr "" #: ../../library/http.server.rst:332 @@ -416,8 +424,8 @@ msgstr "" #: ../../library/http.server.rst:350 msgid "" "This method serves the ``'HEAD'`` request type: it sends the headers it " -"would send for the equivalent ``GET`` request. See the :meth:`do_GET` method" -" for a more complete explanation of the possible headers." +"would send for the equivalent ``GET`` request. See the :meth:`do_GET` method " +"for a more complete explanation of the possible headers." msgstr "" #: ../../library/http.server.rst:356 @@ -431,9 +439,9 @@ msgid "" "If the request was mapped to a directory, the directory is checked for a " "file named ``index.html`` or ``index.htm`` (in that order). If found, the " "file's contents are returned; otherwise a directory listing is generated by " -"calling the :meth:`list_directory` method. This method uses " -":func:`os.listdir` to scan the directory, and returns a ``404`` error " -"response if the :func:`~os.listdir` fails." +"calling the :meth:`list_directory` method. This method uses :func:`os." +"listdir` to scan the directory, and returns a ``404`` error response if the :" +"func:`~os.listdir` fails." msgstr "" #: ../../library/http.server.rst:366 @@ -457,8 +465,8 @@ msgstr "" #: ../../library/http.server.rst:378 msgid "" "Then follows a blank line signifying the end of the headers, and then the " -"contents of the file are output. If the file's MIME type starts with " -"``text/`` the file is opened in text mode; otherwise binary mode is used." +"contents of the file are output. If the file's MIME type starts with ``text/" +"`` the file is opened in text mode; otherwise binary mode is used." msgstr "" #: ../../library/http.server.rst:382 @@ -487,8 +495,8 @@ msgstr "" #: ../../library/http.server.rst:411 msgid "" -"By default, server binds itself to all interfaces. The option ``-b/--bind``" -" specifies a specific address to which it should bind. For example, the " +"By default, server binds itself to all interfaces. The option ``-b/--bind`` " +"specifies a specific address to which it should bind. For example, the " "following command causes the server to bind to localhost only::" msgstr "" @@ -498,8 +506,8 @@ msgstr "" #: ../../library/http.server.rst:420 msgid "" -"By default, server uses the current directory. The option ``-d/--directory``" -" specifies a directory to which it should serve the files. For example, the " +"By default, server uses the current directory. The option ``-d/--directory`` " +"specifies a directory to which it should serve the files. For example, the " "following command uses a specific directory::" msgstr "" @@ -511,8 +519,7 @@ msgstr "" msgid "" "This class is used to serve either files or output of CGI scripts from the " "current directory and below. Note that mapping HTTP hierarchic structure to " -"local directory structure is exactly as in " -":class:`SimpleHTTPRequestHandler`." +"local directory structure is exactly as in :class:`SimpleHTTPRequestHandler`." msgstr "" #: ../../library/http.server.rst:437 @@ -524,17 +531,17 @@ msgstr "" #: ../../library/http.server.rst:442 msgid "" -"The class will however, run the CGI script, instead of serving it as a file," -" if it guesses it to be a CGI script. Only directory-based CGI are used ---" -" the other common server configuration is to treat special extensions as " +"The class will however, run the CGI script, instead of serving it as a file, " +"if it guesses it to be a CGI script. Only directory-based CGI are used --- " +"the other common server configuration is to treat special extensions as " "denoting CGI scripts." msgstr "" #: ../../library/http.server.rst:447 msgid "" "The :func:`do_GET` and :func:`do_HEAD` functions are modified to run CGI " -"scripts and serve the output, instead of serving files, if the request leads" -" to somewhere below the ``cgi_directories`` path." +"scripts and serve the output, instead of serving files, if the request leads " +"to somewhere below the ``cgi_directories`` path." msgstr "" #: ../../library/http.server.rst:451 @@ -554,8 +561,8 @@ msgstr "" #: ../../library/http.server.rst:462 msgid "" "This method serves the ``'POST'`` request type, only allowed for CGI " -"scripts. Error 501, \"Can only POST to CGI scripts\", is output when trying" -" to POST to a non-CGI url." +"scripts. Error 501, \"Can only POST to CGI scripts\", is output when trying " +"to POST to a non-CGI url." msgstr "" #: ../../library/http.server.rst:466 @@ -566,6 +573,6 @@ msgstr "" #: ../../library/http.server.rst:469 msgid "" -":class:`CGIHTTPRequestHandler` can be enabled in the command line by passing" -" the ``--cgi`` option::" +":class:`CGIHTTPRequestHandler` can be enabled in the command line by passing " +"the ``--cgi`` option::" msgstr "" diff --git a/library/i18n.po b/library/i18n.po index 3cbd5cf16..3cbeaf2de 100644 --- a/library/i18n.po +++ b/library/i18n.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/idle.po b/library/idle.po index 1972e54e8..30671e5f4 100644 --- a/library/idle.po +++ b/library/idle.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Risaffi , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Risaffi , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -48,8 +50,8 @@ msgstr "" #: ../../library/idle.rst:25 msgid "" -"Python shell window (interactive interpreter) with colorizing of code input," -" output, and error messages" +"Python shell window (interactive interpreter) with colorizing of code input, " +"output, and error messages" msgstr "" #: ../../library/idle.rst:28 @@ -102,7 +104,7 @@ msgstr "" #: ../../library/idle.rst:56 msgid "File menu (Shell and Editor)" -msgstr "" +msgstr "Menu Arquivo (Console e Editor)" #: ../../library/idle.rst:59 msgid "New File" @@ -152,8 +154,8 @@ msgstr "" #: ../../library/idle.rst:79 msgid "" -"Show sys.path directories, modules, functions, classes and methods in a tree" -" structure." +"Show sys.path directories, modules, functions, classes and methods in a tree " +"structure." msgstr "" #: ../../library/idle.rst:86 @@ -236,28 +238,28 @@ msgstr "" msgid "Redo the last undone change to the current window." msgstr "" -#: ../../library/idle.rst:116 ../../library/idle.rst:362 +#: ../../library/idle.rst:116 ../../library/idle.rst:365 msgid "Cut" msgstr "" -#: ../../library/idle.rst:116 ../../library/idle.rst:362 +#: ../../library/idle.rst:116 ../../library/idle.rst:365 msgid "" "Copy selection into the system-wide clipboard; then delete the selection." msgstr "" -#: ../../library/idle.rst:119 ../../library/idle.rst:365 +#: ../../library/idle.rst:119 ../../library/idle.rst:368 msgid "Copy" msgstr "" -#: ../../library/idle.rst:119 ../../library/idle.rst:365 +#: ../../library/idle.rst:119 ../../library/idle.rst:368 msgid "Copy selection into the system-wide clipboard." msgstr "" -#: ../../library/idle.rst:122 ../../library/idle.rst:368 +#: ../../library/idle.rst:122 ../../library/idle.rst:371 msgid "Paste" msgstr "" -#: ../../library/idle.rst:122 ../../library/idle.rst:368 +#: ../../library/idle.rst:122 ../../library/idle.rst:371 msgid "Insert contents of the system-wide clipboard into the current window." msgstr "" @@ -313,340 +315,343 @@ msgstr "" msgid "Open a search-and-replace dialog." msgstr "" -#: ../../library/idle.rst:145 +#: ../../library/idle.rst:147 msgid "Go to Line" msgstr "" #: ../../library/idle.rst:145 -msgid "Move cursor to the line number requested and make that line visible." +msgid "" +"Move the cursor to the beginning of the line requested and make that line " +"visible. A request past the end of the file goes to the end. Clear any " +"selection and update the line and column status." msgstr "" -#: ../../library/idle.rst:149 +#: ../../library/idle.rst:151 msgid "Show Completions" msgstr "" -#: ../../library/idle.rst:148 +#: ../../library/idle.rst:150 msgid "" -"Open a scrollable list allowing selection of keywords and attributes. See " -":ref:`Completions ` in the Editing and navigation section " -"below." +"Open a scrollable list allowing selection of keywords and attributes. See :" +"ref:`Completions ` in the Editing and navigation section below." msgstr "" -#: ../../library/idle.rst:153 +#: ../../library/idle.rst:155 msgid "Expand Word" msgstr "" -#: ../../library/idle.rst:152 +#: ../../library/idle.rst:154 msgid "" "Expand a prefix you have typed to match a full word in the same window; " "repeat to get a different expansion." msgstr "" -#: ../../library/idle.rst:158 +#: ../../library/idle.rst:160 msgid "Show call tip" msgstr "" -#: ../../library/idle.rst:156 +#: ../../library/idle.rst:158 msgid "" "After an unclosed parenthesis for a function, open a small window with " -"function parameter hints. See :ref:`Calltips ` in the Editing and" -" navigation section below." +"function parameter hints. See :ref:`Calltips ` in the Editing and " +"navigation section below." msgstr "" -#: ../../library/idle.rst:161 +#: ../../library/idle.rst:163 msgid "Show surrounding parens" msgstr "" -#: ../../library/idle.rst:161 +#: ../../library/idle.rst:163 msgid "Highlight the surrounding parenthesis." msgstr "" -#: ../../library/idle.rst:166 +#: ../../library/idle.rst:168 msgid "Format menu (Editor window only)" msgstr "" -#: ../../library/idle.rst:169 +#: ../../library/idle.rst:171 msgid "Indent Region" msgstr "" -#: ../../library/idle.rst:169 +#: ../../library/idle.rst:171 msgid "Shift selected lines right by the indent width (default 4 spaces)." msgstr "" -#: ../../library/idle.rst:172 +#: ../../library/idle.rst:174 msgid "Dedent Region" msgstr "" -#: ../../library/idle.rst:172 +#: ../../library/idle.rst:174 msgid "Shift selected lines left by the indent width (default 4 spaces)." msgstr "" -#: ../../library/idle.rst:175 +#: ../../library/idle.rst:177 msgid "Comment Out Region" msgstr "" -#: ../../library/idle.rst:175 +#: ../../library/idle.rst:177 msgid "Insert ## in front of selected lines." msgstr "" -#: ../../library/idle.rst:178 +#: ../../library/idle.rst:180 msgid "Uncomment Region" msgstr "" -#: ../../library/idle.rst:178 +#: ../../library/idle.rst:180 msgid "Remove leading # or ## from selected lines." msgstr "" -#: ../../library/idle.rst:182 +#: ../../library/idle.rst:184 msgid "Tabify Region" msgstr "" -#: ../../library/idle.rst:181 +#: ../../library/idle.rst:183 msgid "" "Turn *leading* stretches of spaces into tabs. (Note: We recommend using 4 " "space blocks to indent Python code.)" msgstr "" -#: ../../library/idle.rst:185 +#: ../../library/idle.rst:187 msgid "Untabify Region" msgstr "" -#: ../../library/idle.rst:185 +#: ../../library/idle.rst:187 msgid "Turn *all* tabs into the correct number of spaces." msgstr "" -#: ../../library/idle.rst:188 +#: ../../library/idle.rst:190 msgid "Toggle Tabs" msgstr "" -#: ../../library/idle.rst:188 +#: ../../library/idle.rst:190 msgid "Open a dialog to switch between indenting with spaces and tabs." msgstr "" -#: ../../library/idle.rst:192 +#: ../../library/idle.rst:194 msgid "New Indent Width" msgstr "" -#: ../../library/idle.rst:191 +#: ../../library/idle.rst:193 msgid "" "Open a dialog to change indent width. The accepted default by the Python " "community is 4 spaces." msgstr "" -#: ../../library/idle.rst:197 +#: ../../library/idle.rst:199 msgid "Format Paragraph" msgstr "" -#: ../../library/idle.rst:195 +#: ../../library/idle.rst:197 msgid "" "Reformat the current blank-line-delimited paragraph in comment block or " "multiline string or selected line in a string. All lines in the paragraph " "will be formatted to less than N columns, where N defaults to 72." msgstr "" -#: ../../library/idle.rst:202 +#: ../../library/idle.rst:205 msgid "Strip trailing whitespace" msgstr "" -#: ../../library/idle.rst:200 +#: ../../library/idle.rst:202 msgid "" "Remove trailing space and other whitespace characters after the last non-" "whitespace character of a line by applying str.rstrip to each line, " -"including lines within multiline strings." +"including lines within multiline strings. Except for Shell windows, remove " +"extra newlines at the end of the file." msgstr "" -#: ../../library/idle.rst:208 +#: ../../library/idle.rst:211 msgid "Run menu (Editor window only)" msgstr "" -#: ../../library/idle.rst:219 +#: ../../library/idle.rst:222 msgid "Run Module" msgstr "" -#: ../../library/idle.rst:213 +#: ../../library/idle.rst:216 msgid "" "Do :ref:`Check Module `. If no error, restart the shell to " "clean the environment, then execute the module. Output is displayed in the " -"Shell window. Note that output requires use of ``print`` or ``write``. When" -" execution is complete, the Shell retains focus and displays a prompt. At " +"Shell window. Note that output requires use of ``print`` or ``write``. When " +"execution is complete, the Shell retains focus and displays a prompt. At " "this point, one may interactively explore the result of execution. This is " "similar to executing a file with ``python -i file`` at a command line." msgstr "" -#: ../../library/idle.rst:226 +#: ../../library/idle.rst:229 msgid "Run... Customized" msgstr "" -#: ../../library/idle.rst:224 +#: ../../library/idle.rst:227 msgid "" "Same as :ref:`Run Module `, but run the module with customized " "settings. *Command Line Arguments* extend :data:`sys.argv` as if passed on " "a command line. The module can be run in the Shell without restarting." msgstr "" -#: ../../library/idle.rst:235 +#: ../../library/idle.rst:238 msgid "Check Module" msgstr "" -#: ../../library/idle.rst:231 +#: ../../library/idle.rst:234 msgid "" "Check the syntax of the module currently open in the Editor window. If the " "module has not been saved IDLE will either prompt the user to save or " "autosave, as selected in the General tab of the Idle Settings dialog. If " -"there is a syntax error, the approximate location is indicated in the Editor" -" window." +"there is a syntax error, the approximate location is indicated in the Editor " +"window." msgstr "" -#: ../../library/idle.rst:241 +#: ../../library/idle.rst:244 msgid "Python Shell" msgstr "" -#: ../../library/idle.rst:240 +#: ../../library/idle.rst:243 msgid "Open or wake up the Python Shell window." msgstr "" -#: ../../library/idle.rst:244 +#: ../../library/idle.rst:247 msgid "Shell menu (Shell window only)" msgstr "" -#: ../../library/idle.rst:247 +#: ../../library/idle.rst:250 msgid "View Last Restart" msgstr "" -#: ../../library/idle.rst:247 +#: ../../library/idle.rst:250 msgid "Scroll the shell window to the last Shell restart." msgstr "" -#: ../../library/idle.rst:250 +#: ../../library/idle.rst:253 msgid "Restart Shell" msgstr "" -#: ../../library/idle.rst:250 +#: ../../library/idle.rst:253 msgid "Restart the shell to clean the environment." msgstr "" -#: ../../library/idle.rst:253 +#: ../../library/idle.rst:256 msgid "Previous History" msgstr "" -#: ../../library/idle.rst:253 +#: ../../library/idle.rst:256 msgid "" "Cycle through earlier commands in history which match the current entry." msgstr "" -#: ../../library/idle.rst:256 +#: ../../library/idle.rst:259 msgid "Next History" msgstr "" -#: ../../library/idle.rst:256 +#: ../../library/idle.rst:259 msgid "Cycle through later commands in history which match the current entry." msgstr "" -#: ../../library/idle.rst:259 +#: ../../library/idle.rst:262 msgid "Interrupt Execution" msgstr "" -#: ../../library/idle.rst:259 +#: ../../library/idle.rst:262 msgid "Stop a running program." msgstr "" -#: ../../library/idle.rst:262 +#: ../../library/idle.rst:265 msgid "Debug menu (Shell window only)" msgstr "" -#: ../../library/idle.rst:269 +#: ../../library/idle.rst:272 msgid "Go to File/Line" msgstr "" -#: ../../library/idle.rst:265 +#: ../../library/idle.rst:268 msgid "" -"Look on the current line. with the cursor, and the line above for a filename" -" and line number. If found, open the file if not already open, and show the" -" line. Use this to view source lines referenced in an exception traceback " +"Look on the current line. with the cursor, and the line above for a filename " +"and line number. If found, open the file if not already open, and show the " +"line. Use this to view source lines referenced in an exception traceback " "and lines found by Find in Files. Also available in the context menu of the " "Shell window and Output windows." msgstr "" -#: ../../library/idle.rst:278 +#: ../../library/idle.rst:281 msgid "Debugger (toggle)" msgstr "" -#: ../../library/idle.rst:276 +#: ../../library/idle.rst:279 msgid "" "When activated, code entered in the Shell or run from an Editor will run " "under the debugger. In the Editor, breakpoints can be set with the context " "menu. This feature is still incomplete and somewhat experimental." msgstr "" -#: ../../library/idle.rst:282 +#: ../../library/idle.rst:285 msgid "Stack Viewer" msgstr "" -#: ../../library/idle.rst:281 +#: ../../library/idle.rst:284 msgid "" -"Show the stack traceback of the last exception in a tree widget, with access" -" to locals and globals." +"Show the stack traceback of the last exception in a tree widget, with access " +"to locals and globals." msgstr "" -#: ../../library/idle.rst:285 +#: ../../library/idle.rst:288 msgid "Auto-open Stack Viewer" msgstr "" -#: ../../library/idle.rst:285 +#: ../../library/idle.rst:288 msgid "" "Toggle automatically opening the stack viewer on an unhandled exception." msgstr "" -#: ../../library/idle.rst:288 +#: ../../library/idle.rst:291 msgid "Options menu (Shell and Editor)" msgstr "" -#: ../../library/idle.rst:296 +#: ../../library/idle.rst:299 msgid "Configure IDLE" msgstr "" -#: ../../library/idle.rst:291 +#: ../../library/idle.rst:294 msgid "" -"Open a configuration dialog and change preferences for the following: fonts," -" indentation, keybindings, text color themes, startup windows and size, " +"Open a configuration dialog and change preferences for the following: fonts, " +"indentation, keybindings, text color themes, startup windows and size, " "additional help sources, and extensions. On macOS, open the configuration " "dialog by selecting Preferences in the application menu. For more details, " "see :ref:`Setting preferences ` under Help and preferences." msgstr "" -#: ../../library/idle.rst:298 +#: ../../library/idle.rst:301 msgid "" "Most configuration options apply to all windows or all future windows. The " "option items below only apply to the active window." msgstr "" -#: ../../library/idle.rst:305 +#: ../../library/idle.rst:308 msgid "Show/Hide Code Context (Editor Window only)" msgstr "" -#: ../../library/idle.rst:302 +#: ../../library/idle.rst:305 msgid "" "Open a pane at the top of the edit window which shows the block context of " "the code which has scrolled above the top of the window. See :ref:`Code " "Context ` in the Editing and Navigation section below." msgstr "" -#: ../../library/idle.rst:310 +#: ../../library/idle.rst:313 msgid "Show/Hide Line Numbers (Editor Window only)" msgstr "" -#: ../../library/idle.rst:308 +#: ../../library/idle.rst:311 msgid "" "Open a column to the left of the edit window which shows the number of each " "line of text. The default is off, which may be changed in the preferences " "(see :ref:`Setting preferences `)." msgstr "" -#: ../../library/idle.rst:318 +#: ../../library/idle.rst:321 msgid "Zoom/Restore Height" msgstr "" -#: ../../library/idle.rst:313 +#: ../../library/idle.rst:316 msgid "" "Toggles the window between normal size and maximum height. The initial size " "defaults to 40 lines by 80 chars unless changed on the General tab of the " @@ -656,142 +661,141 @@ msgid "" "no effect when a window is maximized." msgstr "" -#: ../../library/idle.rst:321 +#: ../../library/idle.rst:324 msgid "Window menu (Shell and Editor)" msgstr "" -#: ../../library/idle.rst:323 +#: ../../library/idle.rst:326 msgid "" "Lists the names of all open windows; select one to bring it to the " "foreground (deiconifying it if necessary)." msgstr "" -#: ../../library/idle.rst:327 +#: ../../library/idle.rst:330 msgid "Help menu (Shell and Editor)" msgstr "" -#: ../../library/idle.rst:330 +#: ../../library/idle.rst:333 msgid "About IDLE" msgstr "" -#: ../../library/idle.rst:330 +#: ../../library/idle.rst:333 msgid "Display version, copyright, license, credits, and more." msgstr "" -#: ../../library/idle.rst:334 +#: ../../library/idle.rst:337 msgid "IDLE Help" msgstr "" -#: ../../library/idle.rst:333 +#: ../../library/idle.rst:336 msgid "" "Display this IDLE document, detailing the menu options, basic editing and " "navigation, and other tips." msgstr "" -#: ../../library/idle.rst:338 +#: ../../library/idle.rst:341 msgid "Python Docs" msgstr "Documentação do Python" -#: ../../library/idle.rst:337 +#: ../../library/idle.rst:340 msgid "" "Access local Python documentation, if installed, or start a web browser and " "open docs.python.org showing the latest Python documentation." msgstr "" -#: ../../library/idle.rst:341 +#: ../../library/idle.rst:344 msgid "Turtle Demo" msgstr "Demonstração com o Turtle" -#: ../../library/idle.rst:341 -msgid "" -"Run the turtledemo module with example Python code and turtle drawings." +#: ../../library/idle.rst:344 +msgid "Run the turtledemo module with example Python code and turtle drawings." msgstr "" -#: ../../library/idle.rst:343 +#: ../../library/idle.rst:346 msgid "" "Additional help sources may be added here with the Configure IDLE dialog " -"under the General tab. See the :ref:`Help sources ` subsection" -" below for more on Help menu choices." +"under the General tab. See the :ref:`Help sources ` subsection " +"below for more on Help menu choices." msgstr "" -#: ../../library/idle.rst:356 +#: ../../library/idle.rst:359 msgid "Context Menus" msgstr "" -#: ../../library/idle.rst:358 +#: ../../library/idle.rst:361 msgid "" "Open a context menu by right-clicking in a window (Control-click on macOS). " "Context menus have the standard clipboard functions also on the Edit menu." msgstr "" -#: ../../library/idle.rst:370 +#: ../../library/idle.rst:373 msgid "" "Editor windows also have breakpoint functions. Lines with a breakpoint set " "are specially marked. Breakpoints only have an effect when running under " -"the debugger. Breakpoints for a file are saved in the user's .idlerc " +"the debugger. Breakpoints for a file are saved in the user's ``.idlerc`` " "directory." msgstr "" -#: ../../library/idle.rst:375 +#: ../../library/idle.rst:379 msgid "Set Breakpoint" msgstr "" -#: ../../library/idle.rst:375 +#: ../../library/idle.rst:379 msgid "Set a breakpoint on the current line." msgstr "" -#: ../../library/idle.rst:378 +#: ../../library/idle.rst:382 msgid "Clear Breakpoint" msgstr "" -#: ../../library/idle.rst:378 +#: ../../library/idle.rst:382 msgid "Clear the breakpoint on that line." msgstr "" -#: ../../library/idle.rst:380 +#: ../../library/idle.rst:384 msgid "Shell and Output windows also have the following." msgstr "" -#: ../../library/idle.rst:383 +#: ../../library/idle.rst:387 msgid "Go to file/line" msgstr "" -#: ../../library/idle.rst:383 +#: ../../library/idle.rst:387 msgid "Same as in Debug menu." msgstr "" -#: ../../library/idle.rst:385 +#: ../../library/idle.rst:389 msgid "" "The Shell window also has an output squeezing facility explained in the " "*Python Shell window* subsection below." msgstr "" -#: ../../library/idle.rst:391 +#: ../../library/idle.rst:395 msgid "Squeeze" msgstr "" -#: ../../library/idle.rst:389 +#: ../../library/idle.rst:393 msgid "" "If the cursor is over an output line, squeeze all the output between the " "code above and the prompt below down to a 'Squeezed text' label." msgstr "" -#: ../../library/idle.rst:396 +#: ../../library/idle.rst:400 msgid "Editing and navigation" msgstr "" -#: ../../library/idle.rst:399 +#: ../../library/idle.rst:403 msgid "Editor windows" msgstr "" -#: ../../library/idle.rst:401 +#: ../../library/idle.rst:405 msgid "" "IDLE may open editor windows when it starts, depending on settings and how " "you start IDLE. Thereafter, use the File menu. There can be only one open " "editor window for a given file." msgstr "" -#: ../../library/idle.rst:405 +#: ../../library/idle.rst:409 msgid "" "The title bar contains the name of the file, the full path, and the version " "of Python and IDLE running the window. The status bar contains the line " @@ -799,99 +803,99 @@ msgid "" "numbers with 0." msgstr "" -#: ../../library/idle.rst:410 +#: ../../library/idle.rst:414 msgid "" "IDLE assumes that files with a known .py* extension contain Python code and " "that other files do not. Run Python code with the Run menu." msgstr "" -#: ../../library/idle.rst:414 +#: ../../library/idle.rst:418 msgid "Key bindings" msgstr "" -#: ../../library/idle.rst:416 +#: ../../library/idle.rst:420 msgid "" "In this section, 'C' refers to the :kbd:`Control` key on Windows and Unix " "and the :kbd:`Command` key on macOS." msgstr "" -#: ../../library/idle.rst:419 +#: ../../library/idle.rst:423 msgid ":kbd:`Backspace` deletes to the left; :kbd:`Del` deletes to the right" msgstr "" -#: ../../library/idle.rst:421 +#: ../../library/idle.rst:425 msgid "" ":kbd:`C-Backspace` delete word left; :kbd:`C-Del` delete word to the right" msgstr "" -#: ../../library/idle.rst:423 +#: ../../library/idle.rst:427 msgid "Arrow keys and :kbd:`Page Up`/:kbd:`Page Down` to move around" msgstr "" -#: ../../library/idle.rst:425 +#: ../../library/idle.rst:429 msgid ":kbd:`C-LeftArrow` and :kbd:`C-RightArrow` moves by words" msgstr "" -#: ../../library/idle.rst:427 +#: ../../library/idle.rst:431 msgid ":kbd:`Home`/:kbd:`End` go to begin/end of line" msgstr "" -#: ../../library/idle.rst:429 +#: ../../library/idle.rst:433 msgid ":kbd:`C-Home`/:kbd:`C-End` go to begin/end of file" msgstr "" -#: ../../library/idle.rst:431 +#: ../../library/idle.rst:435 msgid "Some useful Emacs bindings are inherited from Tcl/Tk:" msgstr "" -#: ../../library/idle.rst:433 +#: ../../library/idle.rst:437 msgid ":kbd:`C-a` beginning of line" msgstr "" -#: ../../library/idle.rst:435 +#: ../../library/idle.rst:439 msgid ":kbd:`C-e` end of line" msgstr "" -#: ../../library/idle.rst:437 +#: ../../library/idle.rst:441 msgid ":kbd:`C-k` kill line (but doesn't put it in clipboard)" msgstr "" -#: ../../library/idle.rst:439 +#: ../../library/idle.rst:443 msgid ":kbd:`C-l` center window around the insertion point" msgstr "" -#: ../../library/idle.rst:441 +#: ../../library/idle.rst:445 msgid "" ":kbd:`C-b` go backward one character without deleting (usually you can also " "use the cursor key for this)" msgstr "" -#: ../../library/idle.rst:444 +#: ../../library/idle.rst:448 msgid "" ":kbd:`C-f` go forward one character without deleting (usually you can also " "use the cursor key for this)" msgstr "" -#: ../../library/idle.rst:447 +#: ../../library/idle.rst:451 msgid "" ":kbd:`C-p` go up one line (usually you can also use the cursor key for this)" msgstr "" -#: ../../library/idle.rst:450 +#: ../../library/idle.rst:454 msgid ":kbd:`C-d` delete next character" msgstr "" -#: ../../library/idle.rst:452 +#: ../../library/idle.rst:456 msgid "" "Standard keybindings (like :kbd:`C-c` to copy and :kbd:`C-v` to paste) may " "work. Keybindings are selected in the Configure IDLE dialog." msgstr "" -#: ../../library/idle.rst:456 +#: ../../library/idle.rst:460 msgid "Automatic indentation" msgstr "" -#: ../../library/idle.rst:458 +#: ../../library/idle.rst:462 msgid "" "After a block-opening statement, the next line is indented by 4 spaces (in " "the Python Shell window by one tab). After certain keywords (break, return " @@ -901,23 +905,23 @@ msgid "" "tabs are restricted to four spaces due to Tcl/Tk limitations." msgstr "" -#: ../../library/idle.rst:465 +#: ../../library/idle.rst:469 msgid "" "See also the indent/dedent region commands on the :ref:`Format menu `." msgstr "" -#: ../../library/idle.rst:472 +#: ../../library/idle.rst:476 msgid "Completions" msgstr "" -#: ../../library/idle.rst:474 +#: ../../library/idle.rst:478 msgid "" "Completions are supplied for functions, classes, and attributes of classes, " "both built-in and user-defined. Completions are also provided for filenames." msgstr "" -#: ../../library/idle.rst:478 +#: ../../library/idle.rst:482 msgid "" "The AutoCompleteWindow (ACW) will open after a predefined delay (default is " "two seconds) after a '.' or (in a string) an os.sep is typed. If after one " @@ -925,44 +929,44 @@ msgid "" "ACW will open immediately if a possible continuation is found." msgstr "" -#: ../../library/idle.rst:483 +#: ../../library/idle.rst:487 msgid "" -"If there is only one possible completion for the characters entered, a " -":kbd:`Tab` will supply that completion without opening the ACW." +"If there is only one possible completion for the characters entered, a :kbd:" +"`Tab` will supply that completion without opening the ACW." msgstr "" -#: ../../library/idle.rst:486 +#: ../../library/idle.rst:490 msgid "" -"'Show Completions' will force open a completions window, by default the " -":kbd:`C-space` will open a completions window. In an empty string, this will" -" contain the files in the current directory. On a blank line, it will " -"contain the built-in and user-defined functions and classes in the current " -"namespaces, plus any modules imported. If some characters have been entered," -" the ACW will attempt to be more specific." +"'Show Completions' will force open a completions window, by default the :kbd:" +"`C-space` will open a completions window. In an empty string, this will " +"contain the files in the current directory. On a blank line, it will contain " +"the built-in and user-defined functions and classes in the current " +"namespaces, plus any modules imported. If some characters have been entered, " +"the ACW will attempt to be more specific." msgstr "" -#: ../../library/idle.rst:493 +#: ../../library/idle.rst:497 msgid "" -"If a string of characters is typed, the ACW selection will jump to the entry" -" most closely matching those characters. Entering a :kbd:`tab` will cause " -"the longest non-ambiguous match to be entered in the Editor window or Shell." -" Two :kbd:`tab` in a row will supply the current ACW selection, as will " -"return or a double click. Cursor keys, Page Up/Down, mouse selection, and " -"the scroll wheel all operate on the ACW." +"If a string of characters is typed, the ACW selection will jump to the entry " +"most closely matching those characters. Entering a :kbd:`tab` will cause " +"the longest non-ambiguous match to be entered in the Editor window or " +"Shell. Two :kbd:`tab` in a row will supply the current ACW selection, as " +"will return or a double click. Cursor keys, Page Up/Down, mouse selection, " +"and the scroll wheel all operate on the ACW." msgstr "" -#: ../../library/idle.rst:500 +#: ../../library/idle.rst:504 msgid "" -"\"Hidden\" attributes can be accessed by typing the beginning of hidden name" -" after a '.', e.g. '_'. This allows access to modules with ``__all__`` set, " +"\"Hidden\" attributes can be accessed by typing the beginning of hidden name " +"after a '.', e.g. '_'. This allows access to modules with ``__all__`` set, " "or to class-private attributes." msgstr "" -#: ../../library/idle.rst:504 +#: ../../library/idle.rst:508 msgid "Completions and the 'Expand Word' facility can save a lot of typing!" msgstr "" -#: ../../library/idle.rst:506 +#: ../../library/idle.rst:510 msgid "" "Completions are currently limited to those in the namespaces. Names in an " "Editor window which are not via ``__main__`` and :data:`sys.modules` will " @@ -971,26 +975,26 @@ msgid "" "so much can be found by default, e.g. the re module." msgstr "" -#: ../../library/idle.rst:512 +#: ../../library/idle.rst:516 msgid "" "If you don't like the ACW popping up unbidden, simply make the delay longer " "or disable the extension." msgstr "" -#: ../../library/idle.rst:518 +#: ../../library/idle.rst:522 msgid "Calltips" msgstr "" -#: ../../library/idle.rst:520 +#: ../../library/idle.rst:524 msgid "" -"A calltip is shown when one types :kbd:`(` after the name of an *accessible*" -" function. A name expression may include dots and subscripts. A calltip " +"A calltip is shown when one types :kbd:`(` after the name of an *accessible* " +"function. A name expression may include dots and subscripts. A calltip " "remains until it is clicked, the cursor is moved out of the argument area, " "or :kbd:`)` is typed. When the cursor is in the argument part of a " "definition, the menu or shortcut display a calltip." msgstr "" -#: ../../library/idle.rst:526 +#: ../../library/idle.rst:530 msgid "" "A calltip consists of the function signature and the first line of the " "docstring. For builtins without an accessible signature, the calltip " @@ -998,193 +1002,192 @@ msgid "" "details may change." msgstr "" -#: ../../library/idle.rst:531 +#: ../../library/idle.rst:535 msgid "" -"The set of *accessible* functions depends on what modules have been imported" -" into the user process, including those imported by Idle itself, and what " +"The set of *accessible* functions depends on what modules have been imported " +"into the user process, including those imported by Idle itself, and what " "definitions have been run, all since the last restart." msgstr "" -#: ../../library/idle.rst:535 +#: ../../library/idle.rst:539 msgid "" "For example, restart the Shell and enter ``itertools.count(``. A calltip " "appears because Idle imports itertools into the user process for its own " "use. (This could change.) Enter ``turtle.write(`` and nothing appears. " -"Idle does not import turtle. The menu or shortcut do nothing either. Enter" -" ``import turtle`` and then ``turtle.write(`` will work." +"Idle does not import turtle. The menu or shortcut do nothing either. Enter " +"``import turtle`` and then ``turtle.write(`` will work." msgstr "" -#: ../../library/idle.rst:541 +#: ../../library/idle.rst:545 msgid "" -"In an editor, import statements have no effect until one runs the file. One" -" might want to run a file after writing the import statements at the top, or" -" immediately run an existing file before editing." +"In an editor, import statements have no effect until one runs the file. One " +"might want to run a file after writing the import statements at the top, or " +"immediately run an existing file before editing." msgstr "" -#: ../../library/idle.rst:548 +#: ../../library/idle.rst:552 msgid "Code Context" msgstr "" -#: ../../library/idle.rst:550 +#: ../../library/idle.rst:554 msgid "" "Within an editor window containing Python code, code context can be toggled " "in order to show or hide a pane at the top of the window. When shown, this " "pane freezes the opening lines for block code, such as those beginning with " "``class``, ``def``, or ``if`` keywords, that would have otherwise scrolled " -"out of view. The size of the pane will be expanded and contracted as needed" -" to show the all current levels of context, up to the maximum number of " -"lines defined in the Configure IDLE dialog (which defaults to 15). If there" -" are no current context lines and the feature is toggled on, a single blank " -"line will display. Clicking on a line in the context pane will move that " -"line to the top of the editor." +"out of view. The size of the pane will be expanded and contracted as needed " +"to show the all current levels of context, up to the maximum number of lines " +"defined in the Configure IDLE dialog (which defaults to 15). If there are " +"no current context lines and the feature is toggled on, a single blank line " +"will display. Clicking on a line in the context pane will move that line to " +"the top of the editor." msgstr "" -#: ../../library/idle.rst:561 +#: ../../library/idle.rst:565 msgid "" "The text and background colors for the context pane can be configured under " "the Highlights tab in the Configure IDLE dialog." msgstr "" -#: ../../library/idle.rst:565 +#: ../../library/idle.rst:569 msgid "Python Shell window" msgstr "" -#: ../../library/idle.rst:567 +#: ../../library/idle.rst:571 msgid "" "With IDLE's Shell, one enters, edits, and recalls complete statements. Most " "consoles and terminals only work with a single physical line at a time." msgstr "" -#: ../../library/idle.rst:570 +#: ../../library/idle.rst:574 msgid "" "When one pastes code into Shell, it is not compiled and possibly executed " -"until one hits :kbd:`Return`. One may edit pasted code first. If one pastes" -" more that one statement into Shell, the result will be a :exc:`SyntaxError`" -" when multiple statements are compiled as if they were one." +"until one hits :kbd:`Return`. One may edit pasted code first. If one pastes " +"more that one statement into Shell, the result will be a :exc:`SyntaxError` " +"when multiple statements are compiled as if they were one." msgstr "" -#: ../../library/idle.rst:575 +#: ../../library/idle.rst:579 msgid "" "The editing features described in previous subsections work when entering " -"code interactively. IDLE's Shell window also responds to the following " -"keys." +"code interactively. IDLE's Shell window also responds to the following keys." msgstr "" -#: ../../library/idle.rst:578 +#: ../../library/idle.rst:582 msgid ":kbd:`C-c` interrupts executing command" msgstr "" -#: ../../library/idle.rst:580 +#: ../../library/idle.rst:584 msgid "" ":kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt" msgstr "" -#: ../../library/idle.rst:582 +#: ../../library/idle.rst:586 msgid ":kbd:`Alt-/` (Expand word) is also useful to reduce typing" msgstr "" -#: ../../library/idle.rst:584 +#: ../../library/idle.rst:588 msgid "Command history" msgstr "" -#: ../../library/idle.rst:586 +#: ../../library/idle.rst:590 msgid "" ":kbd:`Alt-p` retrieves previous command matching what you have typed. On " "macOS use :kbd:`C-p`." msgstr "" -#: ../../library/idle.rst:589 +#: ../../library/idle.rst:593 msgid ":kbd:`Alt-n` retrieves next. On macOS use :kbd:`C-n`." msgstr "" -#: ../../library/idle.rst:591 +#: ../../library/idle.rst:595 msgid ":kbd:`Return` while on any previous command retrieves that command" msgstr "" -#: ../../library/idle.rst:594 +#: ../../library/idle.rst:598 msgid "Text colors" msgstr "" -#: ../../library/idle.rst:596 +#: ../../library/idle.rst:600 msgid "" -"Idle defaults to black on white text, but colors text with special meanings." -" For the shell, these are shell output, shell error, user output, and user " +"Idle defaults to black on white text, but colors text with special meanings. " +"For the shell, these are shell output, shell error, user output, and user " "error. For Python code, at the shell prompt or in an editor, these are " "keywords, builtin class and function names, names following ``class`` and " "``def``, strings, and comments. For any text window, these are the cursor " "(when present), found text (when possible), and selected text." msgstr "" -#: ../../library/idle.rst:603 +#: ../../library/idle.rst:607 msgid "" -"Text coloring is done in the background, so uncolorized text is occasionally" -" visible. To change the color scheme, use the Configure IDLE dialog " +"Text coloring is done in the background, so uncolorized text is occasionally " +"visible. To change the color scheme, use the Configure IDLE dialog " "Highlighting tab. The marking of debugger breakpoint lines in the editor " "and text in popups and dialogs is not user-configurable." msgstr "" -#: ../../library/idle.rst:610 +#: ../../library/idle.rst:614 msgid "Startup and code execution" msgstr "" -#: ../../library/idle.rst:612 +#: ../../library/idle.rst:616 msgid "" "Upon startup with the ``-s`` option, IDLE will execute the file referenced " -"by the environment variables :envvar:`IDLESTARTUP` or " -":envvar:`PYTHONSTARTUP`. IDLE first checks for ``IDLESTARTUP``; if " -"``IDLESTARTUP`` is present the file referenced is run. If ``IDLESTARTUP`` " -"is not present, IDLE checks for ``PYTHONSTARTUP``. Files referenced by " -"these environment variables are convenient places to store functions that " -"are used frequently from the IDLE shell, or for executing import statements " -"to import common modules." +"by the environment variables :envvar:`IDLESTARTUP` or :envvar:" +"`PYTHONSTARTUP`. IDLE first checks for ``IDLESTARTUP``; if ``IDLESTARTUP`` " +"is present the file referenced is run. If ``IDLESTARTUP`` is not present, " +"IDLE checks for ``PYTHONSTARTUP``. Files referenced by these environment " +"variables are convenient places to store functions that are used frequently " +"from the IDLE shell, or for executing import statements to import common " +"modules." msgstr "" -#: ../../library/idle.rst:620 +#: ../../library/idle.rst:624 msgid "" "In addition, ``Tk`` also loads a startup file if it is present. Note that " -"the Tk file is loaded unconditionally. This additional file is ``.Idle.py``" -" and is looked for in the user's home directory. Statements in this file " +"the Tk file is loaded unconditionally. This additional file is ``.Idle.py`` " +"and is looked for in the user's home directory. Statements in this file " "will be executed in the Tk namespace, so this file is not useful for " "importing functions to be used from IDLE's Python shell." msgstr "" -#: ../../library/idle.rst:627 +#: ../../library/idle.rst:631 msgid "Command line usage" msgstr "" -#: ../../library/idle.rst:643 +#: ../../library/idle.rst:647 msgid "If there are arguments:" msgstr "" -#: ../../library/idle.rst:645 +#: ../../library/idle.rst:649 msgid "" -"If ``-``, ``-c``, or ``r`` is used, all arguments are placed in " -"``sys.argv[1:...]`` and ``sys.argv[0]`` is set to ``''``, ``'-c'``, or " -"``'-r'``. No editor window is opened, even if that is the default set in " -"the Options dialog." +"If ``-``, ``-c``, or ``r`` is used, all arguments are placed in ``sys." +"argv[1:...]`` and ``sys.argv[0]`` is set to ``''``, ``'-c'``, or ``'-r'``. " +"No editor window is opened, even if that is the default set in the Options " +"dialog." msgstr "" -#: ../../library/idle.rst:650 +#: ../../library/idle.rst:654 msgid "" "Otherwise, arguments are files opened for editing and ``sys.argv`` reflects " "the arguments passed to IDLE itself." msgstr "" -#: ../../library/idle.rst:654 +#: ../../library/idle.rst:658 msgid "Startup failure" msgstr "" -#: ../../library/idle.rst:656 +#: ../../library/idle.rst:660 msgid "" "IDLE uses a socket to communicate between the IDLE GUI process and the user " -"code execution process. A connection must be established whenever the Shell" -" starts or restarts. (The latter is indicated by a divider line that says " +"code execution process. A connection must be established whenever the Shell " +"starts or restarts. (The latter is indicated by a divider line that says " "'RESTART'). If the user process fails to connect to the GUI process, it " -"displays a ``Tk`` error box with a 'cannot connect' message that directs the" -" user here. It then exits." +"displays a ``Tk`` error box with a 'cannot connect' message that directs the " +"user here. It then exits." msgstr "" -#: ../../library/idle.rst:663 +#: ../../library/idle.rst:667 msgid "" "A common cause of failure is a user-written file with the same name as a " "standard library module, such as *random.py* and *tkinter.py*. When such a " @@ -1193,16 +1196,17 @@ msgid "" "file." msgstr "" -#: ../../library/idle.rst:669 +#: ../../library/idle.rst:673 msgid "" "Though less common than in the past, an antivirus or firewall program may " "stop the connection. If the program cannot be taught to allow the " "connection, then it must be turned off for IDLE to work. It is safe to " -"allow this internal connection because no data is visible on external ports." -" A similar problem is a network mis-configuration that blocks connections." +"allow this internal connection because no data is visible on external " +"ports. A similar problem is a network mis-configuration that blocks " +"connections." msgstr "" -#: ../../library/idle.rst:676 +#: ../../library/idle.rst:680 msgid "" "Python installation issues occasionally stop IDLE: multiple versions can " "clash, or a single installation might need admin access. If one undo the " @@ -1210,36 +1214,38 @@ msgid "" "completely remove Python and start over." msgstr "" -#: ../../library/idle.rst:681 +#: ../../library/idle.rst:685 msgid "" "A zombie pythonw.exe process could be a problem. On Windows, use Task " -"Manager to detect and stop one. Sometimes a restart initiated by a program " -"crash or Keyboard Interrupt (control-C) may fail to connect. Dismissing the" -" error box or Restart Shell on the Shell menu may fix a temporary problem." +"Manager to check for one and stop it if there is. Sometimes a restart " +"initiated by a program crash or Keyboard Interrupt (control-C) may fail to " +"connect. Dismissing the error box or using Restart Shell on the Shell menu " +"may fix a temporary problem." msgstr "" -#: ../../library/idle.rst:686 +#: ../../library/idle.rst:691 msgid "" -"When IDLE first starts, it attempts to read user configuration files in " -"~/.idlerc/ (~ is one's home directory). If there is a problem, an error " +"When IDLE first starts, it attempts to read user configuration files in ``~/." +"idlerc/`` (~ is one's home directory). If there is a problem, an error " "message should be displayed. Leaving aside random disk glitches, this can " -"be prevented by never editing the files by hand, using the configuration " -"dialog, under Options, instead Options. Once it happens, the solution may " -"be to delete one or more of the configuration files." +"be prevented by never editing the files by hand. Instead, use the " +"configuration dialog, under Options. Once there is an error in a user " +"configuration file, the best solution may be to delete it and start over " +"with the settings dialog." msgstr "" -#: ../../library/idle.rst:693 +#: ../../library/idle.rst:699 msgid "" "If IDLE quits with no message, and it was not started from a console, try " -"starting from a console (``python -m idlelib)`` and see if a message " -"appears." +"starting it from a console or terminal (``python -m idlelib``) and see if " +"this results in an error message." msgstr "" -#: ../../library/idle.rst:697 +#: ../../library/idle.rst:704 msgid "Running user code" msgstr "" -#: ../../library/idle.rst:699 +#: ../../library/idle.rst:706 msgid "" "With rare exceptions, the result of executing Python code with IDLE is " "intended to be the same as executing the same code by the default method, " @@ -1249,17 +1255,17 @@ msgid "" "``threading.activeCount()`` returns 2 instead of 1." msgstr "" -#: ../../library/idle.rst:706 +#: ../../library/idle.rst:713 msgid "" "By default, IDLE runs user code in a separate OS process rather than in the " "user interface process that runs the shell and editor. In the execution " "process, it replaces ``sys.stdin``, ``sys.stdout``, and ``sys.stderr`` with " "objects that get input from and send output to the Shell window. The " -"original values stored in ``sys.__stdin__``, ``sys.__stdout__``, and " -"``sys.__stderr__`` are not touched, but may be ``None``." +"original values stored in ``sys.__stdin__``, ``sys.__stdout__``, and ``sys." +"__stderr__`` are not touched, but may be ``None``." msgstr "" -#: ../../library/idle.rst:713 +#: ../../library/idle.rst:720 msgid "" "When Shell has the focus, it controls the keyboard and screen. This is " "normally transparent, but functions that directly access the keyboard and " @@ -1267,61 +1273,61 @@ msgid "" "determine whether a key has been pressed and if so, which." msgstr "" -#: ../../library/idle.rst:718 +#: ../../library/idle.rst:725 msgid "" "IDLE's standard stream replacements are not inherited by subprocesses " "created in the execution process, whether directly by user code or by " -"modules such as multiprocessing. If such subprocess use ``input`` from " -"sys.stdin or ``print`` or ``write`` to sys.stdout or sys.stderr, IDLE should" -" be started in a command line window. The secondary subprocess will then be" -" attached to that window for input and output." +"modules such as multiprocessing. If such subprocess use ``input`` from sys." +"stdin or ``print`` or ``write`` to sys.stdout or sys.stderr, IDLE should be " +"started in a command line window. The secondary subprocess will then be " +"attached to that window for input and output." msgstr "" -#: ../../library/idle.rst:725 +#: ../../library/idle.rst:732 msgid "" -"The IDLE code running in the execution process adds frames to the call stack" -" that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` " -"and ``sys.setrecursionlimit`` to reduce the effect of the additional stack " +"The IDLE code running in the execution process adds frames to the call stack " +"that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` and " +"``sys.setrecursionlimit`` to reduce the effect of the additional stack " "frames." msgstr "" -#: ../../library/idle.rst:729 +#: ../../library/idle.rst:736 msgid "" "If ``sys`` is reset by user code, such as with ``importlib.reload(sys)``, " -"IDLE's changes are lost and input from the keyboard and output to the screen" -" will not work correctly." +"IDLE's changes are lost and input from the keyboard and output to the screen " +"will not work correctly." msgstr "" -#: ../../library/idle.rst:733 +#: ../../library/idle.rst:740 msgid "" "When user code raises SystemExit either directly or by calling sys.exit, " "IDLE returns to a Shell prompt instead of exiting." msgstr "" -#: ../../library/idle.rst:737 +#: ../../library/idle.rst:744 msgid "User output in Shell" msgstr "" -#: ../../library/idle.rst:739 +#: ../../library/idle.rst:746 msgid "" "When a program outputs text, the result is determined by the corresponding " -"output device. When IDLE executes user code, ``sys.stdout`` and " -"``sys.stderr`` are connected to the display area of IDLE's Shell. Some of " -"its features are inherited from the underlying Tk Text widget. Others are " +"output device. When IDLE executes user code, ``sys.stdout`` and ``sys." +"stderr`` are connected to the display area of IDLE's Shell. Some of its " +"features are inherited from the underlying Tk Text widget. Others are " "programmed additions. Where it matters, Shell is designed for development " "rather than production runs." msgstr "" -#: ../../library/idle.rst:746 +#: ../../library/idle.rst:753 msgid "" "For instance, Shell never throws away output. A program that sends " -"unlimited output to Shell will eventually fill memory, resulting in a memory" -" error. In contrast, some system text windows only keep the last n lines of " +"unlimited output to Shell will eventually fill memory, resulting in a memory " +"error. In contrast, some system text windows only keep the last n lines of " "output. A Windows console, for instance, keeps a user-settable 1 to 9999 " "lines, with 300 the default." msgstr "" -#: ../../library/idle.rst:752 +#: ../../library/idle.rst:759 msgid "" "A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) " "in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters " @@ -1329,79 +1335,77 @@ msgid "" "on the operating system and installed fonts. Tab characters cause the " "following text to begin after the next tab stop. (They occur every 8 " "'characters'). Newline characters cause following text to appear on a new " -"line. Other control characters are ignored or displayed as a space, box, or" -" something else, depending on the operating system and font. (Moving the " +"line. Other control characters are ignored or displayed as a space, box, or " +"something else, depending on the operating system and font. (Moving the " "text cursor through such output with arrow keys may exhibit some surprising " "spacing behavior.) ::" msgstr "" -#: ../../library/idle.rst:770 +#: ../../library/idle.rst:777 msgid "" -"The ``repr`` function is used for interactive echo of expression values. It" -" returns an altered version of the input string in which control codes, some" -" BMP codepoints, and all non-BMP codepoints are replaced with escape codes. " -"As demonstrated above, it allows one to identify the characters in a string," -" regardless of how they are displayed." +"The ``repr`` function is used for interactive echo of expression values. It " +"returns an altered version of the input string in which control codes, some " +"BMP codepoints, and all non-BMP codepoints are replaced with escape codes. " +"As demonstrated above, it allows one to identify the characters in a string, " +"regardless of how they are displayed." msgstr "" -#: ../../library/idle.rst:776 +#: ../../library/idle.rst:783 msgid "" -"Normal and error output are generally kept separate (on separate lines) from" -" code input and each other. They each get different highlight colors." +"Normal and error output are generally kept separate (on separate lines) from " +"code input and each other. They each get different highlight colors." msgstr "" -#: ../../library/idle.rst:779 +#: ../../library/idle.rst:786 msgid "" "For SyntaxError tracebacks, the normal '^' marking where the error was " -"detected is replaced by coloring the text with an error highlight. When code" -" run from a file causes other exceptions, one may right click on a traceback" -" line to jump to the corresponding line in an IDLE editor. The file will be " +"detected is replaced by coloring the text with an error highlight. When code " +"run from a file causes other exceptions, one may right click on a traceback " +"line to jump to the corresponding line in an IDLE editor. The file will be " "opened if necessary." msgstr "" -#: ../../library/idle.rst:785 +#: ../../library/idle.rst:792 msgid "" "Shell has a special facility for squeezing output lines down to a 'Squeezed " "text' label. This is done automatically for output over N lines (N = 50 by " -"default). N can be changed in the PyShell section of the General page of the" -" Settings dialog. Output with fewer lines can be squeezed by right clicking" -" on the output. This can be useful lines long enough to slow down " -"scrolling." +"default). N can be changed in the PyShell section of the General page of the " +"Settings dialog. Output with fewer lines can be squeezed by right clicking " +"on the output. This can be useful lines long enough to slow down scrolling." msgstr "" -#: ../../library/idle.rst:793 +#: ../../library/idle.rst:800 msgid "" "Squeezed output is expanded in place by double-clicking the label. It can " "also be sent to the clipboard or a separate view window by right-clicking " "the label." msgstr "" -#: ../../library/idle.rst:798 +#: ../../library/idle.rst:805 msgid "Developing tkinter applications" msgstr "" -#: ../../library/idle.rst:800 +#: ../../library/idle.rst:807 msgid "" "IDLE is intentionally different from standard Python in order to facilitate " -"development of tkinter programs. Enter ``import tkinter as tk; root = " -"tk.Tk()`` in standard Python and nothing appears. Enter the same in IDLE " -"and a tk window appears. In standard Python, one must also enter " -"``root.update()`` to see the window. IDLE does the equivalent in the " -"background, about 20 times a second, which is about every 50 milliseconds. " -"Next enter ``b = tk.Button(root, text='button'); b.pack()``. Again, nothing" -" visibly changes in standard Python until one enters ``root.update()``." +"development of tkinter programs. Enter ``import tkinter as tk; root = tk." +"Tk()`` in standard Python and nothing appears. Enter the same in IDLE and a " +"tk window appears. In standard Python, one must also enter ``root." +"update()`` to see the window. IDLE does the equivalent in the background, " +"about 20 times a second, which is about every 50 milliseconds. Next enter " +"``b = tk.Button(root, text='button'); b.pack()``. Again, nothing visibly " +"changes in standard Python until one enters ``root.update()``." msgstr "" -#: ../../library/idle.rst:809 +#: ../../library/idle.rst:816 msgid "" -"Most tkinter programs run ``root.mainloop()``, which usually does not return" -" until the tk app is destroyed. If the program is run with ``python -i`` or" -" from an IDLE editor, a ``>>>`` shell prompt does not appear until " -"``mainloop()`` returns, at which time there is nothing left to interact " -"with." +"Most tkinter programs run ``root.mainloop()``, which usually does not return " +"until the tk app is destroyed. If the program is run with ``python -i`` or " +"from an IDLE editor, a ``>>>`` shell prompt does not appear until " +"``mainloop()`` returns, at which time there is nothing left to interact with." msgstr "" -#: ../../library/idle.rst:815 +#: ../../library/idle.rst:822 msgid "" "When running a tkinter program from an IDLE editor, one can comment out the " "mainloop call. One then gets a shell prompt immediately and can interact " @@ -1409,11 +1413,11 @@ msgid "" "mainloop call when running in standard Python." msgstr "" -#: ../../library/idle.rst:821 +#: ../../library/idle.rst:828 msgid "Running without a subprocess" msgstr "" -#: ../../library/idle.rst:823 +#: ../../library/idle.rst:830 msgid "" "By default, IDLE executes user code in a separate subprocess via a socket, " "which uses the internal loopback interface. This connection is not " @@ -1421,21 +1425,21 @@ msgid "" "firewall software complains anyway, you can ignore it." msgstr "" -#: ../../library/idle.rst:828 +#: ../../library/idle.rst:835 msgid "" "If the attempt to make the socket connection fails, Idle will notify you. " -"Such failures are sometimes transient, but if persistent, the problem may be" -" either a firewall blocking the connection or misconfiguration of a " -"particular system. Until the problem is fixed, one can run Idle with the -n" -" command line switch." +"Such failures are sometimes transient, but if persistent, the problem may be " +"either a firewall blocking the connection or misconfiguration of a " +"particular system. Until the problem is fixed, one can run Idle with the -n " +"command line switch." msgstr "" -#: ../../library/idle.rst:834 +#: ../../library/idle.rst:841 msgid "" "If IDLE is started with the -n command line switch it will run in a single " "process and will not create the subprocess which runs the RPC Python " -"execution server. This can be useful if Python cannot create the subprocess" -" or the RPC socket interface on your platform. However, in this mode user " +"execution server. This can be useful if Python cannot create the subprocess " +"or the RPC socket interface on your platform. However, in this mode user " "code is not isolated from IDLE itself. Also, the environment is not " "restarted when Run/Run Module (F5) is selected. If your code has been " "modified, you must reload() the affected modules and re-import any specific " @@ -1444,15 +1448,15 @@ msgid "" "at all possible." msgstr "" -#: ../../library/idle.rst:849 +#: ../../library/idle.rst:856 msgid "Help and preferences" msgstr "" -#: ../../library/idle.rst:854 +#: ../../library/idle.rst:861 msgid "Help sources" msgstr "" -#: ../../library/idle.rst:856 +#: ../../library/idle.rst:863 msgid "" "Help menu entry \"IDLE Help\" displays a formatted html version of the IDLE " "chapter of the Library Reference. The result, in a read-only tkinter text " @@ -1462,43 +1466,44 @@ msgid "" "the opened box." msgstr "" -#: ../../library/idle.rst:864 +#: ../../library/idle.rst:871 msgid "" "Help menu entry \"Python Docs\" opens the extensive sources of help, " -"including tutorials, available at docs.python.org/x.y, where 'x.y' is the " -"currently running Python version. If your system has an off-line copy of " -"the docs (this may be an installation option), that will be opened instead." +"including tutorials, available at ``docs.python.org/x.y``, where 'x.y' is " +"the currently running Python version. If your system has an off-line copy " +"of the docs (this may be an installation option), that will be opened " +"instead." msgstr "" -#: ../../library/idle.rst:870 +#: ../../library/idle.rst:877 msgid "" "Selected URLs can be added or removed from the help menu at any time using " -"the General tab of the Configure IDLE dialog ." +"the General tab of the Configure IDLE dialog." msgstr "" -#: ../../library/idle.rst:876 +#: ../../library/idle.rst:883 msgid "Setting preferences" msgstr "" -#: ../../library/idle.rst:878 +#: ../../library/idle.rst:885 msgid "" "The font preferences, highlighting, keys, and general preferences can be " -"changed via Configure IDLE on the Option menu. Non-default user settings are" -" saved in a .idlerc directory in the user's home directory. Problems caused" -" by bad user configuration files are solved by editing or deleting one or " -"more of the files in .idlerc." +"changed via Configure IDLE on the Option menu. Non-default user settings are " +"saved in a ``.idlerc`` directory in the user's home directory. Problems " +"caused by bad user configuration files are solved by editing or deleting one " +"or more of the files in ``.idlerc``." msgstr "" -#: ../../library/idle.rst:884 +#: ../../library/idle.rst:891 msgid "" -"On the Font tab, see the text sample for the effect of font face and size on" -" multiple characters in multiple languages. Edit the sample to add other " -"characters of personal interest. Use the sample to select monospaced fonts." -" If particular characters have problems in Shell or an editor, add them to " -"the top of the sample and try changing first size and then font." +"On the Font tab, see the text sample for the effect of font face and size on " +"multiple characters in multiple languages. Edit the sample to add other " +"characters of personal interest. Use the sample to select monospaced " +"fonts. If particular characters have problems in Shell or an editor, add " +"them to the top of the sample and try changing first size and then font." msgstr "" -#: ../../library/idle.rst:891 +#: ../../library/idle.rst:898 msgid "" "On the Highlights and Keys tab, select a built-in or custom color theme and " "key set. To use a newer built-in color theme or key set with older IDLEs, " @@ -1506,26 +1511,26 @@ msgid "" "IDLEs." msgstr "" -#: ../../library/idle.rst:897 +#: ../../library/idle.rst:904 msgid "IDLE on macOS" msgstr "" -#: ../../library/idle.rst:899 +#: ../../library/idle.rst:906 msgid "" "Under System Preferences: Dock, one can set \"Prefer tabs when opening " -"documents\" to \"Always\". This setting is not compatible with the " -"tk/tkinter GUI framework used by IDLE, and it breaks a few IDLE features." +"documents\" to \"Always\". This setting is not compatible with the tk/" +"tkinter GUI framework used by IDLE, and it breaks a few IDLE features." msgstr "" -#: ../../library/idle.rst:904 +#: ../../library/idle.rst:911 msgid "Extensions" msgstr "" -#: ../../library/idle.rst:906 +#: ../../library/idle.rst:913 msgid "" "IDLE contains an extension facility. Preferences for extensions can be " -"changed with the Extensions tab of the preferences dialog. See the beginning" -" of config-extensions.def in the idlelib directory for further information." -" The only current default extension is zzdummy, an example also used for " +"changed with the Extensions tab of the preferences dialog. See the beginning " +"of config-extensions.def in the idlelib directory for further information. " +"The only current default extension is zzdummy, an example also used for " "testing." msgstr "" diff --git a/library/imaplib.po b/library/imaplib.po index 87d22926b..b3582d016 100644 --- a/library/imaplib.po +++ b/library/imaplib.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,11 +34,11 @@ msgstr "**Código Fonte:** :source:`Lib/imaplib.py`" #: ../../library/imaplib.rst:23 msgid "" -"This module defines three classes, :class:`IMAP4`, :class:`IMAP4_SSL` and " -":class:`IMAP4_stream`, which encapsulate a connection to an IMAP4 server and" -" implement a large subset of the IMAP4rev1 client protocol as defined in " -":rfc:`2060`. It is backward compatible with IMAP4 (:rfc:`1730`) servers, but" -" note that the ``STATUS`` command is not supported in IMAP4." +"This module defines three classes, :class:`IMAP4`, :class:`IMAP4_SSL` and :" +"class:`IMAP4_stream`, which encapsulate a connection to an IMAP4 server and " +"implement a large subset of the IMAP4rev1 client protocol as defined in :rfc:" +"`2060`. It is backward compatible with IMAP4 (:rfc:`1730`) servers, but note " +"that the ``STATUS`` command is not supported in IMAP4." msgstr "" #: ../../library/imaplib.rst:29 @@ -49,16 +50,16 @@ msgstr "" #: ../../library/imaplib.rst:35 msgid "" "This class implements the actual IMAP4 protocol. The connection is created " -"and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is" -" initialized. If *host* is not specified, ``''`` (the local host) is used. " -"If *port* is omitted, the standard IMAP4 port (143) is used." +"and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is " +"initialized. If *host* is not specified, ``''`` (the local host) is used. If " +"*port* is omitted, the standard IMAP4 port (143) is used." msgstr "" #: ../../library/imaplib.rst:40 msgid "" "The :class:`IMAP4` class supports the :keyword:`with` statement. When used " -"like this, the IMAP4 ``LOGOUT`` command is issued automatically when the " -":keyword:`!with` statement exits. E.g.::" +"like this, the IMAP4 ``LOGOUT`` command is issued automatically when the :" +"keyword:`!with` statement exits. E.g.::" msgstr "" #: ../../library/imaplib.rst:50 @@ -66,8 +67,7 @@ msgid "Support for the :keyword:`with` statement was added." msgstr "Suporte para a instrução :keyword:`with` foi adicionado." #: ../../library/imaplib.rst:53 -msgid "" -"Three exceptions are defined as attributes of the :class:`IMAP4` class:" +msgid "Three exceptions are defined as attributes of the :class:`IMAP4` class:" msgstr "" #: ../../library/imaplib.rst:58 @@ -112,8 +112,8 @@ msgid "" "*keyfile* and *certfile* are a legacy alternative to *ssl_context* - they " "can point to PEM-formatted private key and certificate chain files for the " "SSL connection. Note that the *keyfile*/*certfile* parameters are mutually " -"exclusive with *ssl_context*, a :class:`ValueError` is raised if " -"*keyfile*/*certfile* is provided along with *ssl_context*." +"exclusive with *ssl_context*, a :class:`ValueError` is raised if *keyfile*/" +"*certfile* is provided along with *ssl_context*." msgstr "" #: ../../library/imaplib.rst:98 @@ -122,17 +122,15 @@ msgstr "" #: ../../library/imaplib.rst:101 msgid "" -"The class now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The class now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/imaplib.rst:108 msgid "" "*keyfile* and *certfile* are deprecated in favor of *ssl_context*. Please " -"use :meth:`ssl.SSLContext.load_cert_chain` instead, or let " -":func:`ssl.create_default_context` select the system's trusted CA " -"certificates for you." +"use :meth:`ssl.SSLContext.load_cert_chain` instead, or let :func:`ssl." +"create_default_context` select the system's trusted CA certificates for you." msgstr "" #: ../../library/imaplib.rst:114 @@ -141,9 +139,9 @@ msgstr "" #: ../../library/imaplib.rst:119 msgid "" -"This is a subclass derived from :class:`IMAP4` that connects to the " -"``stdin/stdout`` file descriptors created by passing *command* to " -"``subprocess.Popen()``." +"This is a subclass derived from :class:`IMAP4` that connects to the ``stdin/" +"stdout`` file descriptors created by passing *command* to ``subprocess." +"Popen()``." msgstr "" #: ../../library/imaplib.rst:124 @@ -152,8 +150,8 @@ msgstr "" #: ../../library/imaplib.rst:129 msgid "" -"Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local time." -" The return value is a :class:`time.struct_time` tuple or ``None`` if the " +"Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local time. " +"The return value is a :class:`time.struct_time` tuple or ``None`` if the " "string has wrong format." msgstr "" @@ -170,21 +168,21 @@ msgstr "" #: ../../library/imaplib.rst:146 msgid "" "Convert *date_time* to an IMAP4 ``INTERNALDATE`` representation. The return " -"value is a string in the form: ``\"DD-Mmm-YYYY HH:MM:SS +HHMM\"`` (including" -" double-quotes). The *date_time* argument can be a number (int or float) " -"representing seconds since epoch (as returned by :func:`time.time`), a " -"9-tuple representing local time an instance of :class:`time.struct_time` (as" -" returned by :func:`time.localtime`), an aware instance of " -":class:`datetime.datetime`, or a double-quoted string. In the last case, it" -" is assumed to already be in the correct format." +"value is a string in the form: ``\"DD-Mmm-YYYY HH:MM:SS +HHMM\"`` (including " +"double-quotes). The *date_time* argument can be a number (int or float) " +"representing seconds since epoch (as returned by :func:`time.time`), a 9-" +"tuple representing local time an instance of :class:`time.struct_time` (as " +"returned by :func:`time.localtime`), an aware instance of :class:`datetime." +"datetime`, or a double-quoted string. In the last case, it is assumed to " +"already be in the correct format." msgstr "" #: ../../library/imaplib.rst:156 msgid "" "Note that IMAP4 message numbers change as the mailbox changes; in " "particular, after an ``EXPUNGE`` command performs deletions the remaining " -"messages are renumbered. So it is highly advisable to use UIDs instead, with" -" the UID command." +"messages are renumbered. So it is highly advisable to use UIDs instead, with " +"the UID command." msgstr "" #: ../../library/imaplib.rst:160 @@ -215,18 +213,18 @@ msgid "" "All arguments to commands are converted to strings, except for " "``AUTHENTICATE``, and the last argument to ``APPEND`` which is passed as an " "IMAP4 literal. If necessary (the string contains IMAP4 protocol-sensitive " -"characters and isn't enclosed with either parentheses or double quotes) each" -" string is quoted. However, the *password* argument to the ``LOGIN`` command" -" is always quoted. If you want to avoid having an argument string quoted " -"(eg: the *flags* argument to ``STORE``) then enclose the string in " -"parentheses (eg: ``r'(\\Deleted)'``)." +"characters and isn't enclosed with either parentheses or double quotes) each " +"string is quoted. However, the *password* argument to the ``LOGIN`` command " +"is always quoted. If you want to avoid having an argument string quoted (eg: " +"the *flags* argument to ``STORE``) then enclose the string in parentheses " +"(eg: ``r'(\\Deleted)'``)." msgstr "" #: ../../library/imaplib.rst:187 msgid "" "Each command returns a tuple: ``(type, [data, ...])`` where *type* is " -"usually ``'OK'`` or ``'NO'``, and *data* is either the text from the command" -" response, or mandated results from the command. Each *data* is either a " +"usually ``'OK'`` or ``'NO'``, and *data* is either the text from the command " +"response, or mandated results from the command. Each *data* is either a " "string, or a tuple. If a tuple, then the first part is the header of the " "response, and the second part contains the data (ie: 'literal' value)." msgstr "" @@ -273,8 +271,8 @@ msgstr "" #: ../../library/imaplib.rst:223 msgid "" -"string usernames and passwords are now encoded to ``utf-8`` instead of being" -" limited to ASCII." +"string usernames and passwords are now encoded to ``utf-8`` instead of being " +"limited to ASCII." msgstr "" #: ../../library/imaplib.rst:230 @@ -283,8 +281,8 @@ msgstr "" #: ../../library/imaplib.rst:235 msgid "" -"Close currently selected mailbox. Deleted messages are removed from writable" -" mailbox. This is the recommended command before ``LOGOUT``." +"Close currently selected mailbox. Deleted messages are removed from writable " +"mailbox. This is the recommended command before ``LOGOUT``." msgstr "" #: ../../library/imaplib.rst:241 @@ -306,8 +304,8 @@ msgstr "" #: ../../library/imaplib.rst:261 msgid "" "Enable *capability* (see :rfc:`5161`). Most capabilities do not need to be " -"enabled. Currently only the ``UTF8=ACCEPT`` capability is supported (see " -":RFC:`6855`)." +"enabled. Currently only the ``UTF8=ACCEPT`` capability is supported (see :" +"RFC:`6855`)." msgstr "" #: ../../library/imaplib.rst:265 @@ -317,8 +315,8 @@ msgstr "" #: ../../library/imaplib.rst:271 msgid "" "Permanently remove deleted items from selected mailbox. Generates an " -"``EXPUNGE`` response for each deleted message. Returned data contains a list" -" of ``EXPUNGE`` message numbers in order received." +"``EXPUNGE`` response for each deleted message. Returned data contains a list " +"of ``EXPUNGE`` message numbers in order received." msgstr "" #: ../../library/imaplib.rst:278 @@ -342,8 +340,8 @@ msgstr "" #: ../../library/imaplib.rst:297 msgid "" -"Get the ``quota`` *root*'s resource usage and limits. This method is part of" -" the IMAP4 QUOTA extension defined in rfc2087." +"Get the ``quota`` *root*'s resource usage and limits. This method is part of " +"the IMAP4 QUOTA extension defined in rfc2087." msgstr "" #: ../../library/imaplib.rst:303 @@ -397,11 +395,11 @@ msgstr "" #: ../../library/imaplib.rst:355 msgid "" -"Opens socket to *port* at *host*. This method is implicitly called by the " -":class:`IMAP4` constructor. The connection objects established by this " -"method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`, " -":meth:`IMAP4.send`, and :meth:`IMAP4.shutdown` methods. You may override " -"this method." +"Opens socket to *port* at *host*. This method is implicitly called by the :" +"class:`IMAP4` constructor. The connection objects established by this " +"method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`, :meth:" +"`IMAP4.send`, and :meth:`IMAP4.shutdown` methods. You may override this " +"method." msgstr "" #: ../../library/imaplib.rst:364 @@ -412,8 +410,8 @@ msgstr "" #: ../../library/imaplib.rst:370 msgid "" -"Assume authentication as *user*. Allows an authorised administrator to proxy" -" into any user's mailbox." +"Assume authentication as *user*. Allows an authorised administrator to proxy " +"into any user's mailbox." msgstr "" #: ../../library/imaplib.rst:376 @@ -447,8 +445,8 @@ msgid "" "case no ``CHARSET`` will be specified in the request to the server. The " "IMAP protocol requires that at least one criterion be specified; an " "exception will be raised when the server returns an error. *charset* must " -"be ``None`` if the ``UTF8=ACCEPT`` capability was enabled using the " -":meth:`enable` command." +"be ``None`` if the ``UTF8=ACCEPT`` capability was enabled using the :meth:" +"`enable` command." msgstr "" #: ../../library/imaplib.rst:410 @@ -526,9 +524,8 @@ msgstr "" #: ../../library/imaplib.rst:487 msgid "" -"The method now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The method now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/imaplib.rst:495 @@ -537,9 +534,9 @@ msgstr "" #: ../../library/imaplib.rst:500 msgid "" -"Alters flag dispositions for messages in mailbox. *command* is specified by" -" section 6.4.6 of :rfc:`2060` as being one of \"FLAGS\", \"+FLAGS\", or " -"\"-FLAGS\", optionally with a suffix of \".SILENT\"." +"Alters flag dispositions for messages in mailbox. *command* is specified by " +"section 6.4.6 of :rfc:`2060` as being one of \"FLAGS\", \"+FLAGS\", or \"-" +"FLAGS\", optionally with a suffix of \".SILENT\"." msgstr "" #: ../../library/imaplib.rst:504 @@ -548,14 +545,14 @@ msgstr "" #: ../../library/imaplib.rst:513 msgid "" -"Creating flags containing ']' (for example: \"[test]\") violates :rfc:`3501`" -" (the IMAP protocol). However, imaplib has historically allowed creation of" -" such tags, and popular IMAP servers, such as Gmail, accept and produce such" -" flags. There are non-Python programs which also create such tags. " -"Although it is an RFC violation and IMAP clients and servers are supposed to" -" be strict, imaplib nonetheless continues to allow such tags to be created " -"for backward compatibility reasons, and as of Python 3.6, handles them if " -"they are sent from the server, since this improves real-world compatibility." +"Creating flags containing ']' (for example: \"[test]\") violates :rfc:`3501` " +"(the IMAP protocol). However, imaplib has historically allowed creation of " +"such tags, and popular IMAP servers, such as Gmail, accept and produce such " +"flags. There are non-Python programs which also create such tags. Although " +"it is an RFC violation and IMAP clients and servers are supposed to be " +"strict, imaplib nonetheless continues to allow such tags to be created for " +"backward compatibility reasons, and as of Python 3.6, handles them if they " +"are sent from the server, since this improves real-world compatibility." msgstr "" #: ../../library/imaplib.rst:525 @@ -625,9 +622,8 @@ msgstr "" #: ../../library/imaplib.rst:583 msgid "" -"Boolean value that is normally ``False``, but is set to ``True`` if an " -":meth:`enable` command is successfully issued for the ``UTF8=ACCEPT`` " -"capability." +"Boolean value that is normally ``False``, but is set to ``True`` if an :meth:" +"`enable` command is successfully issued for the ``UTF8=ACCEPT`` capability." msgstr "" #: ../../library/imaplib.rst:593 diff --git a/library/imghdr.po b/library/imghdr.po index c55191cca..a3b5e4084 100644 --- a/library/imghdr.po +++ b/library/imghdr.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Sheila Gomes , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +35,8 @@ msgstr "**Código Fonte:** :source:`Lib/imghdr.py`" #: ../../library/imghdr.rst:11 msgid "" -"The :mod:`imghdr` module determines the type of image contained in a file or" -" byte stream." +"The :mod:`imghdr` module determines the type of image contained in a file or " +"byte stream." msgstr "" #: ../../library/imghdr.rst:14 @@ -49,7 +52,7 @@ msgstr "" #: ../../library/imghdr.rst:23 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/imghdr.rst:26 msgid "" @@ -67,7 +70,7 @@ msgstr "" #: ../../library/imghdr.rst:32 msgid "``'rgb'``" -msgstr "" +msgstr "``'rgb'``" #: ../../library/imghdr.rst:32 msgid "SGI ImgLib Files" @@ -75,7 +78,7 @@ msgstr "" #: ../../library/imghdr.rst:34 msgid "``'gif'``" -msgstr "" +msgstr "``'gif'``" #: ../../library/imghdr.rst:34 msgid "GIF 87a and 89a Files" @@ -83,7 +86,7 @@ msgstr "" #: ../../library/imghdr.rst:36 msgid "``'pbm'``" -msgstr "" +msgstr "``'pbm'``" #: ../../library/imghdr.rst:36 msgid "Portable Bitmap Files" @@ -91,7 +94,7 @@ msgstr "" #: ../../library/imghdr.rst:38 msgid "``'pgm'``" -msgstr "" +msgstr "``'pgm'``" #: ../../library/imghdr.rst:38 msgid "Portable Graymap Files" @@ -99,7 +102,7 @@ msgstr "" #: ../../library/imghdr.rst:40 msgid "``'ppm'``" -msgstr "" +msgstr "``'ppm'``" #: ../../library/imghdr.rst:40 msgid "Portable Pixmap Files" @@ -107,15 +110,15 @@ msgstr "" #: ../../library/imghdr.rst:42 msgid "``'tiff'``" -msgstr "" +msgstr "``'tiff'``" #: ../../library/imghdr.rst:42 msgid "TIFF Files" -msgstr "" +msgstr "Arquivos TIFF" #: ../../library/imghdr.rst:44 msgid "``'rast'``" -msgstr "" +msgstr "``'rast'``" #: ../../library/imghdr.rst:44 msgid "Sun Raster Files" @@ -123,7 +126,7 @@ msgstr "" #: ../../library/imghdr.rst:46 msgid "``'xbm'``" -msgstr "" +msgstr "``'xbm'``" #: ../../library/imghdr.rst:46 msgid "X Bitmap Files" @@ -131,7 +134,7 @@ msgstr "" #: ../../library/imghdr.rst:48 msgid "``'jpeg'``" -msgstr "" +msgstr "``'jpeg'``" #: ../../library/imghdr.rst:48 msgid "JPEG data in JFIF or Exif formats" @@ -139,7 +142,7 @@ msgstr "" #: ../../library/imghdr.rst:50 msgid "``'bmp'``" -msgstr "" +msgstr "``'bmp'``" #: ../../library/imghdr.rst:50 msgid "BMP files" @@ -147,7 +150,7 @@ msgstr "" #: ../../library/imghdr.rst:52 msgid "``'png'``" -msgstr "" +msgstr "``'png'``" #: ../../library/imghdr.rst:52 msgid "Portable Network Graphics" @@ -155,7 +158,7 @@ msgstr "" #: ../../library/imghdr.rst:54 msgid "``'webp'``" -msgstr "" +msgstr "``'webp'``" #: ../../library/imghdr.rst:54 msgid "WebP files" @@ -163,7 +166,7 @@ msgstr "" #: ../../library/imghdr.rst:56 msgid "``'exr'``" -msgstr "" +msgstr "``'exr'``" #: ../../library/imghdr.rst:56 msgid "OpenEXR Files" @@ -182,9 +185,8 @@ msgstr "" #: ../../library/imghdr.rst:69 msgid "" "A list of functions performing the individual tests. Each function takes " -"two arguments: the byte-stream and an open file-like object. When " -":func:`what` is called with a byte-stream, the file-like object will be " -"``None``." +"two arguments: the byte-stream and an open file-like object. When :func:" +"`what` is called with a byte-stream, the file-like object will be ``None``." msgstr "" #: ../../library/imghdr.rst:73 @@ -192,6 +194,8 @@ msgid "" "The test function should return a string describing the image type if the " "test succeeded, or ``None`` if it failed." msgstr "" +"A função de teste deve retornar uma string descrevendo o tipo de imagem, se " +"o teste for bem-sucedido, ou ``None``, se falhar." #: ../../library/imghdr.rst:76 msgid "Example::" diff --git a/library/imp.po b/library/imp.po index f24dadc53..f380ba062 100644 --- a/library/imp.po +++ b/library/imp.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-13 03:32+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,16 +39,15 @@ msgstr "" #: ../../library/imp.rst:17 msgid "" -"This module provides an interface to the mechanisms used to implement the " -":keyword:`import` statement. It defines the following constants and " +"This module provides an interface to the mechanisms used to implement the :" +"keyword:`import` statement. It defines the following constants and " "functions:" msgstr "" #: ../../library/imp.rst:25 msgid "" -"Return the magic string value used to recognize byte-compiled code files " -"(:file:`.pyc` files). (This value may be different for each Python " -"version.)" +"Return the magic string value used to recognize byte-compiled code files (:" +"file:`.pyc` files). (This value may be different for each Python version.)" msgstr "" #: ../../library/imp.rst:28 @@ -56,13 +57,12 @@ msgstr "" #: ../../library/imp.rst:34 msgid "" "Return a list of 3-element tuples, each describing a particular type of " -"module. Each triple has the form ``(suffix, mode, type)``, where *suffix* is" -" a string to be appended to the module name to form the filename to search " -"for, *mode* is the mode string to pass to the built-in :func:`open` function" -" to open the file (this can be ``'r'`` for text files or ``'rb'`` for binary" -" files), and *type* is the file type, which has one of the values " -":const:`PY_SOURCE`, :const:`PY_COMPILED`, or :const:`C_EXTENSION`, described" -" below." +"module. Each triple has the form ``(suffix, mode, type)``, where *suffix* is " +"a string to be appended to the module name to form the filename to search " +"for, *mode* is the mode string to pass to the built-in :func:`open` function " +"to open the file (this can be ``'r'`` for text files or ``'rb'`` for binary " +"files), and *type* is the file type, which has one of the values :const:" +"`PY_SOURCE`, :const:`PY_COMPILED`, or :const:`C_EXTENSION`, described below." msgstr "" #: ../../library/imp.rst:43 @@ -74,17 +74,16 @@ msgid "" "Try to find the module *name*. If *path* is omitted or ``None``, the list " "of directory names given by ``sys.path`` is searched, but first a few " "special places are searched: the function tries to find a built-in module " -"with the given name (:const:`C_BUILTIN`), then a frozen module " -"(:const:`PY_FROZEN`), and on some systems some other places are looked in as" -" well (on Windows, it looks in the registry which may point to a specific " -"file)." +"with the given name (:const:`C_BUILTIN`), then a frozen module (:const:" +"`PY_FROZEN`), and on some systems some other places are looked in as well " +"(on Windows, it looks in the registry which may point to a specific file)." msgstr "" #: ../../library/imp.rst:56 msgid "" "Otherwise, *path* must be a list of directory names; each directory is " -"searched for files with any of the suffixes returned by :func:`get_suffixes`" -" above. Invalid names in the list are silently ignored (but all list items " +"searched for files with any of the suffixes returned by :func:`get_suffixes` " +"above. Invalid names in the list are silently ignored (but all list items " "must be strings)." msgstr "" @@ -97,8 +96,8 @@ msgstr "" #: ../../library/imp.rst:64 msgid "" "*file* is an open :term:`file object` positioned at the beginning, " -"*pathname* is the pathname of the file found, and *description* is a " -"3-element tuple as contained in the list returned by :func:`get_suffixes` " +"*pathname* is the pathname of the file found, and *description* is a 3-" +"element tuple as contained in the list returned by :func:`get_suffixes` " "describing the kind of module found." msgstr "" @@ -120,59 +119,57 @@ msgstr "" #: ../../library/imp.rst:78 msgid "" "This function does not handle hierarchical module names (names containing " -"dots). In order to find *P.M*, that is, submodule *M* of package *P*, use " -":func:`find_module` and :func:`load_module` to find and load package *P*, " -"and then use :func:`find_module` with the *path* argument set to " -"``P.__path__``. When *P* itself has a dotted name, apply this recipe " -"recursively." +"dots). In order to find *P.M*, that is, submodule *M* of package *P*, use :" +"func:`find_module` and :func:`load_module` to find and load package *P*, and " +"then use :func:`find_module` with the *path* argument set to ``P.__path__``. " +"When *P* itself has a dotted name, apply this recipe recursively." msgstr "" #: ../../library/imp.rst:84 msgid "" -"Use :func:`importlib.util.find_spec` instead unless Python 3.3 compatibility" -" is required, in which case use :func:`importlib.find_loader`. For example " -"usage of the former case, see the :ref:`importlib-examples` section of the " -":mod:`importlib` documentation." +"Use :func:`importlib.util.find_spec` instead unless Python 3.3 compatibility " +"is required, in which case use :func:`importlib.find_loader`. For example " +"usage of the former case, see the :ref:`importlib-examples` section of the :" +"mod:`importlib` documentation." msgstr "" #: ../../library/imp.rst:94 msgid "" "Load a module that was previously found by :func:`find_module` (or by an " -"otherwise conducted search yielding compatible results). This function does" -" more than importing the module: if the module was already imported, it will" -" reload the module! The *name* argument indicates the full module name " +"otherwise conducted search yielding compatible results). This function does " +"more than importing the module: if the module was already imported, it will " +"reload the module! The *name* argument indicates the full module name " "(including the package name, if this is a submodule of a package). The " "*file* argument is an open file, and *pathname* is the corresponding file " "name; these can be ``None`` and ``''``, respectively, when the module is a " "package or not being loaded from a file. The *description* argument is a " -"tuple, as would be returned by :func:`get_suffixes`, describing what kind of" -" module must be loaded." +"tuple, as would be returned by :func:`get_suffixes`, describing what kind of " +"module must be loaded." msgstr "" #: ../../library/imp.rst:105 msgid "" -"If the load is successful, the return value is the module object; otherwise," -" an exception (usually :exc:`ImportError`) is raised." +"If the load is successful, the return value is the module object; otherwise, " +"an exception (usually :exc:`ImportError`) is raised." msgstr "" #: ../../library/imp.rst:108 msgid "" -"**Important:** the caller is responsible for closing the *file* argument, if" -" it was not ``None``, even when an exception is raised. This is best done " +"**Important:** the caller is responsible for closing the *file* argument, if " +"it was not ``None``, even when an exception is raised. This is best done " "using a :keyword:`try` ... :keyword:`finally` statement." msgstr "" #: ../../library/imp.rst:112 msgid "" -"If previously used in conjunction with :func:`imp.find_module` then consider" -" using :func:`importlib.import_module`, otherwise use the loader returned by" -" the replacement you chose for :func:`imp.find_module`. If you called " -":func:`imp.load_module` and related functions directly with file path " -"arguments then use a combination of " -":func:`importlib.util.spec_from_file_location` and " -":func:`importlib.util.module_from_spec`. See the :ref:`importlib-examples` " -"section of the :mod:`importlib` documentation for details of the various " -"approaches." +"If previously used in conjunction with :func:`imp.find_module` then consider " +"using :func:`importlib.import_module`, otherwise use the loader returned by " +"the replacement you chose for :func:`imp.find_module`. If you called :func:" +"`imp.load_module` and related functions directly with file path arguments " +"then use a combination of :func:`importlib.util.spec_from_file_location` " +"and :func:`importlib.util.module_from_spec`. See the :ref:`importlib-" +"examples` section of the :mod:`importlib` documentation for details of the " +"various approaches." msgstr "" #: ../../library/imp.rst:126 @@ -208,14 +205,14 @@ msgstr "" #: ../../library/imp.rst:148 msgid "" -"As with all other objects in Python the old objects are only reclaimed after" -" their reference counts drop to zero." +"As with all other objects in Python the old objects are only reclaimed after " +"their reference counts drop to zero." msgstr "" #: ../../library/imp.rst:151 msgid "" -"The names in the module namespace are updated to point to any new or changed" -" objects." +"The names in the module namespace are updated to point to any new or changed " +"objects." msgstr "" #: ../../library/imp.rst:154 @@ -244,19 +241,18 @@ msgstr "" #: ../../library/imp.rst:173 msgid "" "It is legal though generally not very useful to reload built-in or " -"dynamically loaded modules, except for :mod:`sys`, :mod:`__main__` and " -":mod:`builtins`. In many cases, however, extension modules are not designed " -"to be initialized more than once, and may fail in arbitrary ways when " -"reloaded." +"dynamically loaded modules, except for :mod:`sys`, :mod:`__main__` and :mod:" +"`builtins`. In many cases, however, extension modules are not designed to be " +"initialized more than once, and may fail in arbitrary ways when reloaded." msgstr "" #: ../../library/imp.rst:178 msgid "" -"If a module imports objects from another module using :keyword:`from` ... " -":keyword:`import` ..., calling :func:`reload` for the other module does not " +"If a module imports objects from another module using :keyword:`from` ... :" +"keyword:`import` ..., calling :func:`reload` for the other module does not " "redefine the objects imported from it --- one way around this is to re-" -"execute the :keyword:`!from` statement, another is to use :keyword:`!import`" -" and qualified names (*module*.*name*) instead." +"execute the :keyword:`!from` statement, another is to use :keyword:`!import` " +"and qualified names (*module*.*name*) instead." msgstr "" #: ../../library/imp.rst:184 @@ -288,11 +284,11 @@ msgid "" "Return the :pep:`3147` path to the byte-compiled file associated with the " "source *path*. For example, if *path* is ``/foo/bar/baz.py`` the return " "value would be ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2. " -"The ``cpython-32`` string comes from the current magic tag (see " -":func:`get_tag`; if :attr:`sys.implementation.cache_tag` is not defined then" -" :exc:`NotImplementedError` will be raised). By passing in ``True`` or " -"``False`` for *debug_override* you can override the system's value for " -"``__debug__``, leading to optimized bytecode." +"The ``cpython-32`` string comes from the current magic tag (see :func:" +"`get_tag`; if :attr:`sys.implementation.cache_tag` is not defined then :exc:" +"`NotImplementedError` will be raised). By passing in ``True`` or ``False`` " +"for *debug_override* you can override the system's value for ``__debug__``, " +"leading to optimized bytecode." msgstr "" #: ../../library/imp.rst:212 @@ -301,8 +297,8 @@ msgstr "" #: ../../library/imp.rst:214 msgid "" -"If :attr:`sys.implementation.cache_tag` is ``None``, then " -":exc:`NotImplementedError` is raised." +"If :attr:`sys.implementation.cache_tag` is ``None``, then :exc:" +"`NotImplementedError` is raised." msgstr "" #: ../../library/imp.rst:218 @@ -316,12 +312,11 @@ msgstr "" #: ../../library/imp.rst:227 msgid "" "Given the *path* to a :pep:`3147` file name, return the associated source " -"code file path. For example, if *path* is " -"``/foo/bar/__pycache__/baz.cpython-32.pyc`` the returned path would be " -"``/foo/bar/baz.py``. *path* need not exist, however if it does not conform " -"to :pep:`3147` format, a :exc:`ValueError` is raised. If " -":attr:`sys.implementation.cache_tag` is not defined, " -":exc:`NotImplementedError` is raised." +"code file path. For example, if *path* is ``/foo/bar/__pycache__/baz." +"cpython-32.pyc`` the returned path would be ``/foo/bar/baz.py``. *path* " +"need not exist, however if it does not conform to :pep:`3147` format, a :exc:" +"`ValueError` is raised. If :attr:`sys.implementation.cache_tag` is not " +"defined, :exc:`NotImplementedError` is raised." msgstr "" #: ../../library/imp.rst:235 @@ -349,20 +344,20 @@ msgstr "" msgid "" "The following functions help interact with the import system's internal " "locking mechanism. Locking semantics of imports are an implementation " -"detail which may vary from release to release. However, Python ensures that" -" circular imports work without any deadlocks." +"detail which may vary from release to release. However, Python ensures that " +"circular imports work without any deadlocks." msgstr "" #: ../../library/imp.rst:261 msgid "" -"Return ``True`` if the global import lock is currently held, else ``False``." -" On platforms without threads, always return ``False``." +"Return ``True`` if the global import lock is currently held, else ``False``. " +"On platforms without threads, always return ``False``." msgstr "" #: ../../library/imp.rst:264 msgid "" -"On platforms with threads, a thread executing an import first holds a global" -" import lock, then sets up a per-module lock for the rest of the import. " +"On platforms with threads, a thread executing an import first holds a global " +"import lock, then sets up a per-module lock for the rest of the import. " "This blocks other threads from importing the same module until the original " "import completes, preventing other threads from seeing incomplete module " "objects constructed by the original thread. An exception is made for " @@ -374,8 +369,8 @@ msgstr "" #: ../../library/imp.rst:305 msgid "" "The locking scheme has changed to per-module locks for the most part. A " -"global import lock is kept for some critical tasks, such as initializing the" -" per-module locks." +"global import lock is kept for some critical tasks, such as initializing the " +"per-module locks." msgstr "" #: ../../library/imp.rst:282 @@ -388,8 +383,8 @@ msgstr "" #: ../../library/imp.rst:286 msgid "" "Once a thread has acquired the import lock, the same thread may acquire it " -"again without blocking; the thread must release it once for each time it has" -" acquired it." +"again without blocking; the thread must release it once for each time it has " +"acquired it." msgstr "" #: ../../library/imp.rst:290 @@ -452,8 +447,8 @@ msgstr "" #: ../../library/imp.rst:373 msgid "" -"``None`` is inserted into ``sys.path_importer_cache`` instead of an instance" -" of :class:`NullImporter`." +"``None`` is inserted into ``sys.path_importer_cache`` instead of an instance " +"of :class:`NullImporter`." msgstr "" #: ../../library/imp.rst:377 @@ -466,8 +461,8 @@ msgstr "Exemplos" #: ../../library/imp.rst:386 msgid "" -"The following function emulates what was the standard import statement up to" -" Python 1.4 (no hierarchical module names). (This *implementation* wouldn't" -" work in that version, since :func:`find_module` has been extended and " -":func:`load_module` has been added in 1.4.) ::" +"The following function emulates what was the standard import statement up to " +"Python 1.4 (no hierarchical module names). (This *implementation* wouldn't " +"work in that version, since :func:`find_module` has been extended and :func:" +"`load_module` has been added in 1.4.) ::" msgstr "" diff --git a/library/importlib.po b/library/importlib.po index 192609d88..dadd9537c 100644 --- a/library/importlib.po +++ b/library/importlib.po @@ -1,22 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 -# +# Sheila Gomes , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Ruan Aragão , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,7 +28,7 @@ msgstr "" #: ../../library/importlib.rst:2 msgid ":mod:`!importlib` --- The implementation of :keyword:`!import`" -msgstr "" +msgstr ":mod:`!importlib` --- The implementation of :keyword:`!import`" #: ../../library/importlib.rst:12 msgid "**Source code:** :source:`Lib/importlib/__init__.py`" @@ -55,7 +58,7 @@ msgstr "" #: ../../library/importlib.rst:33 msgid ":ref:`import`" -msgstr "" +msgstr ":ref:`import`" #: ../../library/importlib.rst:33 msgid "The language reference for the :keyword:`import` statement." @@ -69,8 +72,8 @@ msgstr "" #: ../../library/importlib.rst:36 msgid "" "Original specification of packages. Some semantics have changed since the " -"writing of this document (e.g. redirecting based on ``None`` in " -":data:`sys.modules`)." +"writing of this document (e.g. redirecting based on ``None`` in :data:`sys." +"modules`)." msgstr "" #: ../../library/importlib.rst:41 @@ -83,7 +86,7 @@ msgstr "" #: ../../library/importlib.rst:44 msgid ":pep:`235`" -msgstr "" +msgstr ":pep:`235`" #: ../../library/importlib.rst:44 msgid "Import on Case-Insensitive Platforms" @@ -91,7 +94,7 @@ msgstr "" #: ../../library/importlib.rst:47 msgid ":pep:`263`" -msgstr "" +msgstr ":pep:`263`" #: ../../library/importlib.rst:47 msgid "Defining Python Source Code Encodings" @@ -99,7 +102,7 @@ msgstr "" #: ../../library/importlib.rst:50 msgid ":pep:`302`" -msgstr "" +msgstr ":pep:`302`" #: ../../library/importlib.rst:50 msgid "New Import Hooks" @@ -107,7 +110,7 @@ msgstr "" #: ../../library/importlib.rst:53 msgid ":pep:`328`" -msgstr "" +msgstr ":pep:`328`" #: ../../library/importlib.rst:53 msgid "Imports: Multi-Line and Absolute/Relative" @@ -115,7 +118,7 @@ msgstr "" #: ../../library/importlib.rst:56 msgid ":pep:`366`" -msgstr "" +msgstr ":pep:`366`" #: ../../library/importlib.rst:56 msgid "Main module explicit relative imports" @@ -123,7 +126,7 @@ msgstr "" #: ../../library/importlib.rst:59 msgid ":pep:`420`" -msgstr "" +msgstr ":pep:`420`" #: ../../library/importlib.rst:59 msgid "Implicit namespace packages" @@ -131,7 +134,7 @@ msgstr "" #: ../../library/importlib.rst:62 msgid ":pep:`451`" -msgstr "" +msgstr ":pep:`451`" #: ../../library/importlib.rst:62 msgid "A ModuleSpec Type for the Import System" @@ -139,7 +142,7 @@ msgstr "" #: ../../library/importlib.rst:65 msgid ":pep:`488`" -msgstr "" +msgstr ":pep:`488`" #: ../../library/importlib.rst:65 msgid "Elimination of PYO files" @@ -147,7 +150,7 @@ msgstr "" #: ../../library/importlib.rst:68 msgid ":pep:`489`" -msgstr "" +msgstr ":pep:`489`" #: ../../library/importlib.rst:68 msgid "Multi-phase extension module initialization" @@ -155,7 +158,7 @@ msgstr "" #: ../../library/importlib.rst:71 msgid ":pep:`552`" -msgstr "" +msgstr ":pep:`552`" #: ../../library/importlib.rst:71 msgid "Deterministic pycs" @@ -163,7 +166,7 @@ msgstr "" #: ../../library/importlib.rst:74 msgid ":pep:`3120`" -msgstr "" +msgstr ":pep:`3120`" #: ../../library/importlib.rst:74 msgid "Using UTF-8 as the Default Source Encoding" @@ -171,7 +174,7 @@ msgstr "" #: ../../library/importlib.rst:76 msgid ":pep:`3147`" -msgstr "" +msgstr ":pep:`3147`" #: ../../library/importlib.rst:77 msgid "PYC Repository Directories" @@ -195,16 +198,16 @@ msgstr "" msgid "" "Import a module. The *name* argument specifies what module to import in " "absolute or relative terms (e.g. either ``pkg.mod`` or ``..mod``). If the " -"name is specified in relative terms, then the *package* argument must be set" -" to the name of the package which is to act as the anchor for resolving the " +"name is specified in relative terms, then the *package* argument must be set " +"to the name of the package which is to act as the anchor for resolving the " "package name (e.g. ``import_module('..mod', 'pkg.subpkg')`` will import " "``pkg.mod``)." msgstr "" #: ../../library/importlib.rst:101 msgid "" -"The :func:`import_module` function acts as a simplifying wrapper around " -":func:`importlib.__import__`. This means all semantics of the function are " +"The :func:`import_module` function acts as a simplifying wrapper around :" +"func:`importlib.__import__`. This means all semantics of the function are " "derived from :func:`importlib.__import__`. The most important difference " "between these two functions is that :func:`import_module` returns the " "specified package or module (e.g. ``pkg.mod``), while :func:`__import__` " @@ -225,19 +228,19 @@ msgstr "" #: ../../library/importlib.rst:118 msgid "" -"Find the loader for a module, optionally within the specified *path*. If the" -" module is in :attr:`sys.modules`, then ``sys.modules[name].__loader__`` is " -"returned (unless the loader would be ``None`` or is not set, in which case " -":exc:`ValueError` is raised). Otherwise a search using :attr:`sys.meta_path`" -" is done. ``None`` is returned if no loader is found." +"Find the loader for a module, optionally within the specified *path*. If the " +"module is in :attr:`sys.modules`, then ``sys.modules[name].__loader__`` is " +"returned (unless the loader would be ``None`` or is not set, in which case :" +"exc:`ValueError` is raised). Otherwise a search using :attr:`sys.meta_path` " +"is done. ``None`` is returned if no loader is found." msgstr "" #: ../../library/importlib.rst:124 msgid "" -"A dotted name does not have its parents implicitly imported as that requires" -" loading them and that may not be desired. To properly import a submodule " -"you will need to import all parent packages of the submodule and use the " -"correct argument to *path*." +"A dotted name does not have its parents implicitly imported as that requires " +"loading them and that may not be desired. To properly import a submodule you " +"will need to import all parent packages of the submodule and use the correct " +"argument to *path*." msgstr "" #: ../../library/importlib.rst:131 @@ -254,8 +257,8 @@ msgstr "" msgid "" "Invalidate the internal caches of finders stored at :data:`sys.meta_path`. " "If a finder implements ``invalidate_caches()`` then it will be called to " -"perform the invalidation. This function should be called if any modules are" -" created/installed while your program is running to guarantee all finders " +"perform the invalidation. This function should be called if any modules are " +"created/installed while your program is running to guarantee all finders " "will notice the new module's existence." msgstr "" @@ -277,20 +280,21 @@ msgstr "" msgid "" "Python module's code is recompiled and the module-level code re-executed, " "defining a new set of objects which are bound to names in the module's " -"dictionary by reusing the :term:`loader` which originally loaded the module." -" The ``init`` function of extension modules is not called a second time." +"dictionary by reusing the :term:`loader` which originally loaded the " +"module. The ``init`` function of extension modules is not called a second " +"time." msgstr "" #: ../../library/importlib.rst:165 msgid "" -"As with all other objects in Python the old objects are only reclaimed after" -" their reference counts drop to zero." +"As with all other objects in Python the old objects are only reclaimed after " +"their reference counts drop to zero." msgstr "" #: ../../library/importlib.rst:168 msgid "" -"The names in the module namespace are updated to point to any new or changed" -" objects." +"The names in the module namespace are updated to point to any new or changed " +"objects." msgstr "" #: ../../library/importlib.rst:171 @@ -327,11 +331,11 @@ msgstr "" #: ../../library/importlib.rst:197 msgid "" -"If a module imports objects from another module using :keyword:`from` ... " -":keyword:`import` ..., calling :func:`reload` for the other module does not " +"If a module imports objects from another module using :keyword:`from` ... :" +"keyword:`import` ..., calling :func:`reload` for the other module does not " "redefine the objects imported from it --- one way around this is to re-" -"execute the :keyword:`!from` statement, another is to use :keyword:`!import`" -" and qualified names (*module.name*) instead." +"execute the :keyword:`!from` statement, another is to use :keyword:`!import` " +"and qualified names (*module.name*) instead." msgstr "" #: ../../library/importlib.rst:203 @@ -344,8 +348,8 @@ msgstr "" #: ../../library/importlib.rst:209 msgid "" -":exc:`ModuleNotFoundError` is raised when the module being reloaded lacks a " -":class:`ModuleSpec`." +":exc:`ModuleNotFoundError` is raised when the module being reloaded lacks a :" +"class:`ModuleSpec`." msgstr "" #: ../../library/importlib.rst:215 @@ -359,8 +363,8 @@ msgstr "" #: ../../library/importlib.rst:225 msgid "" "The :mod:`importlib.abc` module contains all of the core abstract base " -"classes used by :keyword:`import`. Some subclasses of the core abstract base" -" classes are also provided to help in implementing the core ABCs." +"classes used by :keyword:`import`. Some subclasses of the core abstract base " +"classes are also provided to help in implementing the core ABCs." msgstr "" #: ../../library/importlib.rst:229 @@ -378,8 +382,8 @@ msgstr "" #: ../../library/importlib.rst:252 msgid "" "An abstract method for finding a :term:`loader` for the specified module. " -"Originally specified in :pep:`302`, this method was meant for use in " -":data:`sys.meta_path` and in the path-based import subsystem." +"Originally specified in :pep:`302`, this method was meant for use in :data:" +"`sys.meta_path` and in the path-based import subsystem." msgstr "" #: ../../library/importlib.rst:256 @@ -409,9 +413,9 @@ msgstr "" msgid "" "A legacy method for finding a :term:`loader` for the specified module. If " "this is a top-level import, *path* will be ``None``. Otherwise, this is a " -"search for a subpackage or module and *path* will be the value of " -":attr:`__path__` from the parent package. If a loader cannot be found, " -"``None`` is returned." +"search for a subpackage or module and *path* will be the value of :attr:" +"`__path__` from the parent package. If a loader cannot be found, ``None`` is " +"returned." msgstr "" #: ../../library/importlib.rst:290 @@ -427,7 +431,7 @@ msgid "" msgstr "" #: ../../library/importlib.rst:298 ../../library/importlib.rst:352 -#: ../../library/importlib.rst:360 ../../library/importlib.rst:1081 +#: ../../library/importlib.rst:360 ../../library/importlib.rst:1085 msgid "Use :meth:`find_spec` instead." msgstr "" @@ -446,19 +450,19 @@ msgstr "" msgid "" "An abstract base class representing a :term:`path entry finder`. Though it " "bears some similarities to :class:`MetaPathFinder`, ``PathEntryFinder`` is " -"meant for use only within the path-based import subsystem provided by " -":class:`PathFinder`. This ABC is a subclass of :class:`Finder` for " -"compatibility reasons only." +"meant for use only within the path-based import subsystem provided by :class:" +"`PathFinder`. This ABC is a subclass of :class:`Finder` for compatibility " +"reasons only." msgstr "" #: ../../library/importlib.rst:323 msgid "" "An abstract method for finding a :term:`spec ` for the " -"specified module. The finder will search for the module only within the " -":term:`path entry` to which it is assigned. If a spec cannot be found, " +"specified module. The finder will search for the module only within the :" +"term:`path entry` to which it is assigned. If a spec cannot be found, " "``None`` is returned. When passed in, ``target`` is a module object that " -"the finder may use to make a more educated guess about what spec to return. " -":func:`importlib.util.spec_from_loader` may be useful for implementing " +"the finder may use to make a more educated guess about what spec to return. :" +"func:`importlib.util.spec_from_loader` may be useful for implementing " "concrete ``PathEntryFinders``." msgstr "" @@ -483,8 +487,8 @@ msgstr "" #: ../../library/importlib.rst:348 msgid "" -"Returns ``(None, [])`` instead of raising :exc:`NotImplementedError`. Uses " -":meth:`find_spec` when available to provide functionality." +"Returns ``(None, [])`` instead of raising :exc:`NotImplementedError`. Uses :" +"meth:`find_spec` when available to provide functionality." msgstr "" #: ../../library/importlib.rst:357 @@ -509,8 +513,8 @@ msgstr "" #: ../../library/importlib.rst:375 ../../library/importlib.rst:835 msgid "" "Loaders that wish to support resource reading should implement a " -"``get_resource_reader(fullname)`` method as specified by " -":class:`importlib.abc.ResourceReader`." +"``get_resource_reader(fullname)`` method as specified by :class:`importlib." +"abc.ResourceReader`." msgstr "" #: ../../library/importlib.rst:379 @@ -526,37 +530,37 @@ msgstr "" #: ../../library/importlib.rst:390 msgid "" -"Starting in Python 3.6, this method will not be optional when " -":meth:`exec_module` is defined." +"Starting in Python 3.6, this method will not be optional when :meth:" +"`exec_module` is defined." msgstr "" #: ../../library/importlib.rst:396 msgid "" "An abstract method that executes the module in its own namespace when a " "module is imported or reloaded. The module should already be initialized " -"when ``exec_module()`` is called. When this method exists, " -":meth:`~importlib.abc.Loader.create_module` must be defined." +"when ``exec_module()`` is called. When this method exists, :meth:`~importlib." +"abc.Loader.create_module` must be defined." msgstr "" #: ../../library/importlib.rst:403 msgid ":meth:`~importlib.abc.Loader.create_module` must also be defined." -msgstr "" +msgstr ":meth:`~importlib.abc.Loader.create_module` precisa ser definida." #: ../../library/importlib.rst:408 msgid "" -"A legacy method for loading a module. If the module cannot be loaded, " -":exc:`ImportError` is raised, otherwise the loaded module is returned." +"A legacy method for loading a module. If the module cannot be loaded, :exc:" +"`ImportError` is raised, otherwise the loaded module is returned." msgstr "" #: ../../library/importlib.rst:412 msgid "" "If the requested module already exists in :data:`sys.modules`, that module " -"should be used and reloaded. Otherwise the loader should create a new module" -" and insert it into :data:`sys.modules` before any loading begins, to " -"prevent recursion from the import. If the loader inserted a module and the " -"load fails, it must be removed by the loader from :data:`sys.modules`; " -"modules already in :data:`sys.modules` before the loader began execution " -"should be left alone (see :func:`importlib.util.module_for_loader`)." +"should be used and reloaded. Otherwise the loader should create a new module " +"and insert it into :data:`sys.modules` before any loading begins, to prevent " +"recursion from the import. If the loader inserted a module and the load " +"fails, it must be removed by the loader from :data:`sys.modules`; modules " +"already in :data:`sys.modules` before the loader began execution should be " +"left alone (see :func:`importlib.util.module_for_loader`)." msgstr "" #: ../../library/importlib.rst:421 @@ -567,7 +571,7 @@ msgstr "" #: ../../library/importlib.rst:426 msgid ":attr:`__name__`" -msgstr "" +msgstr ":attr:`__name__`" #: ../../library/importlib.rst:426 msgid "The name of the module." @@ -575,7 +579,7 @@ msgstr "" #: ../../library/importlib.rst:430 msgid ":attr:`__file__`" -msgstr "" +msgstr ":attr:`__file__`" #: ../../library/importlib.rst:429 msgid "" @@ -584,7 +588,7 @@ msgstr "" #: ../../library/importlib.rst:434 msgid ":attr:`__cached__`" -msgstr "" +msgstr ":attr:`__cached__`" #: ../../library/importlib.rst:433 msgid "" @@ -594,7 +598,7 @@ msgstr "" #: ../../library/importlib.rst:438 msgid ":attr:`__path__`" -msgstr "" +msgstr ":attr:`__path__`" #: ../../library/importlib.rst:437 msgid "" @@ -604,25 +608,23 @@ msgstr "" #: ../../library/importlib.rst:444 msgid ":attr:`__package__`" -msgstr "" +msgstr ":attr:`__package__`" #: ../../library/importlib.rst:441 msgid "" "The parent package for the module/package. If the module is top-level then " -"it has a value of the empty string. The " -":func:`importlib.util.module_for_loader` decorator can handle the details " -"for :attr:`__package__`." +"it has a value of the empty string. The :func:`importlib.util." +"module_for_loader` decorator can handle the details for :attr:`__package__`." msgstr "" #: ../../library/importlib.rst:449 msgid ":attr:`__loader__`" -msgstr "" +msgstr ":attr:`__loader__`" #: ../../library/importlib.rst:447 msgid "" -"The loader used to load the module. The " -":func:`importlib.util.module_for_loader` decorator can handle the details " -"for :attr:`__package__`." +"The loader used to load the module. The :func:`importlib.util." +"module_for_loader` decorator can handle the details for :attr:`__package__`." msgstr "" #: ../../library/importlib.rst:451 @@ -639,10 +641,10 @@ msgstr "" #: ../../library/importlib.rst:459 msgid "" -"The recommended API for loading a module is :meth:`exec_module` (and " -":meth:`create_module`). Loaders should implement it instead of " -"load_module(). The import machinery takes care of all the other " -"responsibilities of load_module() when exec_module() is implemented." +"The recommended API for loading a module is :meth:`exec_module` (and :meth:" +"`create_module`). Loaders should implement it instead of load_module(). " +"The import machinery takes care of all the other responsibilities of " +"load_module() when exec_module() is implemented." msgstr "" #: ../../library/importlib.rst:468 @@ -671,19 +673,19 @@ msgid "" "shipped within a package. Typically this is something like a data file that " "lives next to the ``__init__.py`` file of the package. The purpose of this " "class is to help abstract out the accessing of such data files so that it " -"does not matter if the package and its data file(s) are stored in a e.g. zip" -" file versus on the file system." +"does not matter if the package and its data file(s) are stored in a e.g. zip " +"file versus on the file system." msgstr "" #: ../../library/importlib.rst:494 msgid "" -"For any of methods of this class, a *resource* argument is expected to be a " -":term:`path-like object` which represents conceptually just a file name. " -"This means that no subdirectory paths should be included in the *resource* " +"For any of methods of this class, a *resource* argument is expected to be a :" +"term:`path-like object` which represents conceptually just a file name. This " +"means that no subdirectory paths should be included in the *resource* " "argument. This is because the location of the package the reader is for, " -"acts as the \"directory\". Hence the metaphor for directories and file names" -" is packages and resources, respectively. This is also why instances of this" -" class are expected to directly correlate to a specific package (instead of " +"acts as the \"directory\". Hence the metaphor for directories and file names " +"is packages and resources, respectively. This is also why instances of this " +"class are expected to directly correlate to a specific package (instead of " "potentially representing multiple packages or a module)." msgstr "" @@ -692,9 +694,8 @@ msgid "" "Loaders that wish to support resource reading are expected to provide a " "method called ``get_resource_reader(fullname)`` which returns an object " "implementing this ABC's interface. If the module specified by fullname is " -"not a package, this method should return :const:`None`. An object compatible" -" with this ABC should only be returned when the specified module is a " -"package." +"not a package, this method should return :const:`None`. An object compatible " +"with this ABC should only be returned when the specified module is a package." msgstr "" #: ../../library/importlib.rst:516 @@ -713,22 +714,22 @@ msgstr "" #: ../../library/importlib.rst:526 msgid "" -"If the resource does not concretely exist on the file system, raise " -":exc:`FileNotFoundError`." +"If the resource does not concretely exist on the file system, raise :exc:" +"`FileNotFoundError`." msgstr "" #: ../../library/importlib.rst:531 msgid "" -"Returns ``True`` if the named *name* is considered a resource. " -":exc:`FileNotFoundError` is raised if *name* does not exist." +"Returns ``True`` if the named *name* is considered a resource. :exc:" +"`FileNotFoundError` is raised if *name* does not exist." msgstr "" #: ../../library/importlib.rst:536 msgid "" "Returns an :term:`iterable` of strings over the contents of the package. Do " "note that it is not required that all names returned by the iterator be " -"actual resources, e.g. it is acceptable to return names for which " -":meth:`is_resource` would be false." +"actual resources, e.g. it is acceptable to return names for which :meth:" +"`is_resource` would be false." msgstr "" #: ../../library/importlib.rst:542 @@ -737,8 +738,7 @@ msgid "" "how a package and its resources are stored are known a priori and the non-" "resource names would be useful. For instance, returning subdirectory names " "is allowed so that when it is known that the package and resources are " -"stored on the file system then those subdirectory names can be used " -"directly." +"stored on the file system then those subdirectory names can be used directly." msgstr "" #: ../../library/importlib.rst:550 @@ -747,22 +747,21 @@ msgstr "" #: ../../library/importlib.rst:555 msgid "" -"An abstract base class for a :term:`loader` which implements the optional " -":pep:`302` protocol for loading arbitrary resources from the storage back-" -"end." +"An abstract base class for a :term:`loader` which implements the optional :" +"pep:`302` protocol for loading arbitrary resources from the storage back-end." msgstr "" #: ../../library/importlib.rst:559 msgid "" -"This ABC is deprecated in favour of supporting resource loading through " -":class:`importlib.abc.ResourceReader`." +"This ABC is deprecated in favour of supporting resource loading through :" +"class:`importlib.abc.ResourceReader`." msgstr "" #: ../../library/importlib.rst:565 msgid "" "An abstract method to return the bytes for the data located at *path*. " -"Loaders that have a file-like storage back-end that allows storing arbitrary" -" data can implement this abstract method to give direct access to the data " +"Loaders that have a file-like storage back-end that allows storing arbitrary " +"data can implement this abstract method to give direct access to the data " "stored. :exc:`OSError` is to be raised if the *path* cannot be found. The " "*path* is expected to be constructed using a module's :attr:`__file__` " "attribute or an item from a package's :attr:`__path__`." @@ -774,14 +773,14 @@ msgstr "" #: ../../library/importlib.rst:579 msgid "" -"An abstract base class for a :term:`loader` which implements the optional " -":pep:`302` protocol for loaders that inspect modules." +"An abstract base class for a :term:`loader` which implements the optional :" +"pep:`302` protocol for loaders that inspect modules." msgstr "" #: ../../library/importlib.rst:584 msgid "" -"Return the code object for a module, or ``None`` if the module does not have" -" a code object (as would be the case, for example, for a built-in module). " +"Return the code object for a module, or ``None`` if the module does not have " +"a code object (as would be the case, for example, for a built-in module). " "Raise an :exc:`ImportError` if loader cannot find the requested module." msgstr "" @@ -799,9 +798,9 @@ msgstr "" msgid "" "An abstract method to return the source of a module. It is returned as a " "text string using :term:`universal newlines`, translating all recognized " -"line separators into ``'\\n'`` characters. Returns ``None`` if no source is" -" available (e.g. a built-in module). Raises :exc:`ImportError` if the loader" -" cannot find the module specified." +"line separators into ``'\\n'`` characters. Returns ``None`` if no source is " +"available (e.g. a built-in module). Raises :exc:`ImportError` if the loader " +"cannot find the module specified." msgstr "" #: ../../library/importlib.rst:607 ../../library/importlib.rst:616 @@ -822,10 +821,10 @@ msgstr "" #: ../../library/importlib.rst:623 msgid "" -"The *data* argument can be whatever the :func:`compile` function supports " -"(i.e. string or bytes). The *path* argument should be the \"path\" to where " -"the source code originated from, which can be an abstract concept (e.g. " -"location in a zip file)." +"The *data* argument can be whatever the :func:`compile` function supports (i." +"e. string or bytes). The *path* argument should be the \"path\" to where the " +"source code originated from, which can be an abstract concept (e.g. location " +"in a zip file)." msgstr "" #: ../../library/importlib.rst:628 @@ -852,8 +851,8 @@ msgstr "" #: ../../library/importlib.rst:652 msgid "" -"An abstract base class which inherits from :class:`InspectLoader` that, when" -" implemented, helps a module to be executed as a script. The ABC represents " +"An abstract base class which inherits from :class:`InspectLoader` that, when " +"implemented, helps a module to be executed as a script. The ABC represents " "an optional :pep:`302` protocol." msgstr "" @@ -871,15 +870,15 @@ msgstr "" #: ../../library/importlib.rst:672 msgid "" -"An abstract base class which inherits from :class:`ResourceLoader` and " -":class:`ExecutionLoader`, providing concrete implementations of " -":meth:`ResourceLoader.get_data` and :meth:`ExecutionLoader.get_filename`." +"An abstract base class which inherits from :class:`ResourceLoader` and :" +"class:`ExecutionLoader`, providing concrete implementations of :meth:" +"`ResourceLoader.get_data` and :meth:`ExecutionLoader.get_filename`." msgstr "" #: ../../library/importlib.rst:676 msgid "" -"The *fullname* argument is a fully resolved name of the module the loader is" -" to handle. The *path* argument is the path to the file for the module." +"The *fullname* argument is a fully resolved name of the module the loader is " +"to handle. The *path* argument is the path to the file for the module." msgstr "" #: ../../library/importlib.rst:683 @@ -898,7 +897,7 @@ msgstr "" msgid "Use :meth:`Loader.exec_module` instead." msgstr "" -#: ../../library/importlib.rst:698 ../../library/importlib.rst:1280 +#: ../../library/importlib.rst:698 ../../library/importlib.rst:1284 msgid "Returns :attr:`path`." msgstr "" @@ -909,8 +908,8 @@ msgstr "" #: ../../library/importlib.rst:707 msgid "" "An abstract base class for implementing source (and optionally bytecode) " -"file loading. The class inherits from both :class:`ResourceLoader` and " -":class:`ExecutionLoader`, requiring the implementation of:" +"file loading. The class inherits from both :class:`ResourceLoader` and :" +"class:`ExecutionLoader`, requiring the implementation of:" msgstr "" #: ../../library/importlib.rst:711 @@ -919,7 +918,7 @@ msgstr ":meth:`ResourceLoader.get_data`" #: ../../library/importlib.rst:714 msgid ":meth:`ExecutionLoader.get_filename`" -msgstr "" +msgstr ":meth:`ExecutionLoader.get_filename`" #: ../../library/importlib.rst:713 msgid "" @@ -929,10 +928,10 @@ msgstr "" #: ../../library/importlib.rst:716 msgid "" -"The abstract methods defined by this class are to add optional bytecode file" -" support. Not implementing these optional methods (or causing them to raise " -":exc:`NotImplementedError`) causes the loader to only work with source code." -" Implementing the methods allows the loader to work with source *and* " +"The abstract methods defined by this class are to add optional bytecode file " +"support. Not implementing these optional methods (or causing them to raise :" +"exc:`NotImplementedError`) causes the loader to only work with source code. " +"Implementing the methods allows the loader to work with source *and* " "bytecode files; it does not allow for *sourceless* loading where only " "bytecode is provided. Bytecode files are an optimization to speed up " "loading by removing the parsing step of Python's compiler, and so no " @@ -974,8 +973,8 @@ msgstr "" #: ../../library/importlib.rst:747 msgid "" "This method is deprecated in favour of :meth:`path_stats`. You don't have " -"to implement it, but it is still available for compatibility purposes. Raise" -" :exc:`OSError` if the path cannot be handled." +"to implement it, but it is still available for compatibility purposes. " +"Raise :exc:`OSError` if the path cannot be handled." msgstr "" #: ../../library/importlib.rst:757 @@ -987,9 +986,8 @@ msgstr "" #: ../../library/importlib.rst:761 msgid "" -"When writing to the path fails because the path is read-only " -"(:attr:`errno.EACCES`/:exc:`PermissionError`), do not propagate the " -"exception." +"When writing to the path fails because the path is read-only (:attr:`errno." +"EACCES`/:exc:`PermissionError`), do not propagate the exception." msgstr "" #: ../../library/importlib.rst:765 @@ -1019,9 +1017,9 @@ msgstr "" #: ../../library/importlib.rst:791 msgid "" "Concrete implementation of :meth:`InspectLoader.is_package`. A module is " -"determined to be a package if its file path (as provided by " -":meth:`ExecutionLoader.get_filename`) is a file named ``__init__`` when the " -"file extension is removed **and** the module name itself does not end in " +"determined to be a package if its file path (as provided by :meth:" +"`ExecutionLoader.get_filename`) is a file named ``__init__`` when the file " +"extension is removed **and** the module name itself does not end in " "``__init__``." msgstr "" @@ -1051,10 +1049,9 @@ msgstr "" #: ../../library/importlib.rst:821 msgid "" -"This module provides functionality similar to `pkg_resources " -"`_ `Basic " -"Resource Access " -"`_ `Basic Resource " +"Access `_ without the performance overhead of that package. This " "makes reading resources included in packages easier, with more stable and " "consistent semantics." @@ -1063,10 +1060,9 @@ msgstr "" #: ../../library/importlib.rst:829 msgid "" "The standalone backport of this module provides more information on `using " -"importlib.resources `_ and `migrating from " -"pkg_resources to importlib.resources `_." +"importlib.resources `_ and `migrating from pkg_resources to importlib.resources " +"`_." msgstr "" #: ../../library/importlib.rst:839 @@ -1099,9 +1095,9 @@ msgstr "" msgid "" "*package* is either a name or a module object which conforms to the " "``Package`` requirements. *resource* is the name of the resource to open " -"within *package*; it may not contain path separators and it may not have " -"sub-resources (i.e. it cannot be a directory). This function returns a " -"``typing.BinaryIO`` instance, a binary I/O stream open for reading." +"within *package*; it may not contain path separators and it may not have sub-" +"resources (i.e. it cannot be a directory). This function returns a ``typing." +"BinaryIO`` instance, a binary I/O stream open for reading." msgstr "" #: ../../library/importlib.rst:869 @@ -1114,9 +1110,9 @@ msgstr "" msgid "" "*package* is either a name or a module object which conforms to the " "``Package`` requirements. *resource* is the name of the resource to open " -"within *package*; it may not contain path separators and it may not have " -"sub-resources (i.e. it cannot be a directory). *encoding* and *errors* have" -" the same meaning as with built-in :func:`open`." +"within *package*; it may not contain path separators and it may not have sub-" +"resources (i.e. it cannot be a directory). *encoding* and *errors* have the " +"same meaning as with built-in :func:`open`." msgstr "" #: ../../library/importlib.rst:878 @@ -1127,32 +1123,31 @@ msgstr "" #: ../../library/importlib.rst:884 msgid "" -"Read and return the contents of the *resource* within *package* as " -"``bytes``." +"Read and return the contents of the *resource* within *package* as ``bytes``." msgstr "" #: ../../library/importlib.rst:887 msgid "" "*package* is either a name or a module object which conforms to the " "``Package`` requirements. *resource* is the name of the resource to open " -"within *package*; it may not contain path separators and it may not have " -"sub-resources (i.e. it cannot be a directory). This function returns the " +"within *package*; it may not contain path separators and it may not have sub-" +"resources (i.e. it cannot be a directory). This function returns the " "contents of the resource as :class:`bytes`." msgstr "" #: ../../library/importlib.rst:896 msgid "" -"Read and return the contents of *resource* within *package* as a ``str``. By" -" default, the contents are read as strict UTF-8." +"Read and return the contents of *resource* within *package* as a ``str``. By " +"default, the contents are read as strict UTF-8." msgstr "" #: ../../library/importlib.rst:899 msgid "" "*package* is either a name or a module object which conforms to the " "``Package`` requirements. *resource* is the name of the resource to open " -"within *package*; it may not contain path separators and it may not have " -"sub-resources (i.e. it cannot be a directory). *encoding* and *errors* have" -" the same meaning as with built-in :func:`open`. This function returns the " +"within *package*; it may not contain path separators and it may not have sub-" +"resources (i.e. it cannot be a directory). *encoding* and *errors* have the " +"same meaning as with built-in :func:`open`. This function returns the " "contents of the resource as :class:`str`." msgstr "" @@ -1173,8 +1168,8 @@ msgstr "" msgid "" "*package* is either a name or a module object which conforms to the " "``Package`` requirements. *resource* is the name of the resource to open " -"within *package*; it may not contain path separators and it may not have " -"sub-resources (i.e. it cannot be a directory)." +"within *package*; it may not contain path separators and it may not have sub-" +"resources (i.e. it cannot be a directory)." msgstr "" #: ../../library/importlib.rst:924 @@ -1254,21 +1249,20 @@ msgstr "" msgid "" "Returns a combined list of strings representing all file suffixes for " "modules recognized by the standard import machinery. This is a helper for " -"code which simply needs to know if a filesystem path potentially refers to a" -" module without needing any details on the kind of module (for example, " -":func:`inspect.getmodulename`)." +"code which simply needs to know if a filesystem path potentially refers to a " +"module without needing any details on the kind of module (for example, :func:" +"`inspect.getmodulename`)." msgstr "" #: ../../library/importlib.rst:1010 msgid "" "An :term:`importer` for built-in modules. All known built-in modules are " -"listed in :data:`sys.builtin_module_names`. This class implements the " -":class:`importlib.abc.MetaPathFinder` and " -":class:`importlib.abc.InspectLoader` ABCs." +"listed in :data:`sys.builtin_module_names`. This class implements the :class:" +"`importlib.abc.MetaPathFinder` and :class:`importlib.abc.InspectLoader` ABCs." msgstr "" #: ../../library/importlib.rst:1015 ../../library/importlib.rst:1029 -#: ../../library/importlib.rst:1038 ../../library/importlib.rst:1053 +#: ../../library/importlib.rst:1042 ../../library/importlib.rst:1057 msgid "" "Only class methods are defined by this class to alleviate the need for " "instantiation." @@ -1276,90 +1270,94 @@ msgstr "" #: ../../library/importlib.rst:1018 msgid "" -"As part of :pep:`489`, the builtin importer now implements " -":meth:`Loader.create_module` and :meth:`Loader.exec_module`" +"As part of :pep:`489`, the builtin importer now implements :meth:`Loader." +"create_module` and :meth:`Loader.exec_module`" msgstr "" #: ../../library/importlib.rst:1025 msgid "" -"An :term:`importer` for frozen modules. This class implements the " -":class:`importlib.abc.MetaPathFinder` and " -":class:`importlib.abc.InspectLoader` ABCs." +"An :term:`importer` for frozen modules. This class implements the :class:" +"`importlib.abc.MetaPathFinder` and :class:`importlib.abc.InspectLoader` ABCs." msgstr "" -#: ../../library/importlib.rst:1035 +#: ../../library/importlib.rst:1032 +msgid "" +"Gained :meth:`~Loader.create_module` and :meth:`~Loader.exec_module` methods." +msgstr "" + +#: ../../library/importlib.rst:1039 msgid "" ":term:`Finder` for modules declared in the Windows registry. This class " "implements the :class:`importlib.abc.MetaPathFinder` ABC." msgstr "" -#: ../../library/importlib.rst:1043 +#: ../../library/importlib.rst:1047 msgid "" "Use :mod:`site` configuration instead. Future versions of Python may not " "enable this finder by default." msgstr "" -#: ../../library/importlib.rst:1050 +#: ../../library/importlib.rst:1054 msgid "" "A :term:`Finder` for :data:`sys.path` and package ``__path__`` attributes. " "This class implements the :class:`importlib.abc.MetaPathFinder` ABC." msgstr "" -#: ../../library/importlib.rst:1058 +#: ../../library/importlib.rst:1062 msgid "" "Class method that attempts to find a :term:`spec ` for the " "module specified by *fullname* on :data:`sys.path` or, if defined, on " -"*path*. For each path entry that is searched, " -":data:`sys.path_importer_cache` is checked. If a non-false object is found " -"then it is used as the :term:`path entry finder` to look for the module " -"being searched for. If no entry is found in :data:`sys.path_importer_cache`," -" then :data:`sys.path_hooks` is searched for a finder for the path entry " -"and, if found, is stored in :data:`sys.path_importer_cache` along with being" -" queried about the module. If no finder is ever found then ``None`` is both " -"stored in the cache and returned." +"*path*. For each path entry that is searched, :data:`sys." +"path_importer_cache` is checked. If a non-false object is found then it is " +"used as the :term:`path entry finder` to look for the module being searched " +"for. If no entry is found in :data:`sys.path_importer_cache`, then :data:" +"`sys.path_hooks` is searched for a finder for the path entry and, if found, " +"is stored in :data:`sys.path_importer_cache` along with being queried about " +"the module. If no finder is ever found then ``None`` is both stored in the " +"cache and returned." msgstr "" -#: ../../library/importlib.rst:1072 +#: ../../library/importlib.rst:1076 msgid "" "If the current working directory -- represented by an empty string -- is no " -"longer valid then ``None`` is returned but no value is cached in " -":data:`sys.path_importer_cache`." +"longer valid then ``None`` is returned but no value is cached in :data:`sys." +"path_importer_cache`." msgstr "" -#: ../../library/importlib.rst:1079 +#: ../../library/importlib.rst:1083 msgid "A legacy wrapper around :meth:`find_spec`." msgstr "" -#: ../../library/importlib.rst:1086 +#: ../../library/importlib.rst:1090 msgid "" -"Calls :meth:`importlib.abc.PathEntryFinder.invalidate_caches` on all finders" -" stored in :data:`sys.path_importer_cache` that define the method. Otherwise" -" entries in :data:`sys.path_importer_cache` set to ``None`` are deleted." +"Calls :meth:`importlib.abc.PathEntryFinder.invalidate_caches` on all finders " +"stored in :data:`sys.path_importer_cache` that define the method. Otherwise " +"entries in :data:`sys.path_importer_cache` set to ``None`` are deleted." msgstr "" -#: ../../library/importlib.rst:1091 +#: ../../library/importlib.rst:1095 msgid "Entries of ``None`` in :data:`sys.path_importer_cache` are deleted." msgstr "" -#: ../../library/importlib.rst:1094 +#: ../../library/importlib.rst:1098 msgid "" "Calls objects in :data:`sys.path_hooks` with the current working directory " "for ``''`` (i.e. the empty string)." msgstr "" -#: ../../library/importlib.rst:1101 +#: ../../library/importlib.rst:1105 msgid "" "A concrete implementation of :class:`importlib.abc.PathEntryFinder` which " "caches results from the file system." msgstr "" -#: ../../library/importlib.rst:1104 +#: ../../library/importlib.rst:1108 msgid "" "The *path* argument is the directory for which the finder is in charge of " "searching." msgstr "" -#: ../../library/importlib.rst:1107 +#: ../../library/importlib.rst:1111 msgid "" "The *loader_details* argument is a variable number of 2-item tuples each " "containing a loader and a sequence of file suffixes the loader recognizes. " @@ -1367,201 +1365,200 @@ msgid "" "module's name and the path to the file found." msgstr "" -#: ../../library/importlib.rst:1112 +#: ../../library/importlib.rst:1116 msgid "" -"The finder will cache the directory contents as necessary, making stat calls" -" for each module search to verify the cache is not outdated. Because cache " +"The finder will cache the directory contents as necessary, making stat calls " +"for each module search to verify the cache is not outdated. Because cache " "staleness relies upon the granularity of the operating system's state " "information of the file system, there is a potential race condition of " "searching for a module, creating a new file, and then searching for the " "module the new file represents. If the operations happen fast enough to fit " "within the granularity of stat calls, then the module search will fail. To " -"prevent this from happening, when you create a module dynamically, make sure" -" to call :func:`importlib.invalidate_caches`." +"prevent this from happening, when you create a module dynamically, make sure " +"to call :func:`importlib.invalidate_caches`." msgstr "" -#: ../../library/importlib.rst:1126 +#: ../../library/importlib.rst:1130 msgid "The path the finder will search in." msgstr "" -#: ../../library/importlib.rst:1130 +#: ../../library/importlib.rst:1134 msgid "Attempt to find the spec to handle *fullname* within :attr:`path`." msgstr "" -#: ../../library/importlib.rst:1136 +#: ../../library/importlib.rst:1140 msgid "Attempt to find the loader to handle *fullname* within :attr:`path`." msgstr "" -#: ../../library/importlib.rst:1140 +#: ../../library/importlib.rst:1144 msgid "Clear out the internal cache." msgstr "" -#: ../../library/importlib.rst:1144 +#: ../../library/importlib.rst:1148 msgid "" -"A class method which returns a closure for use on :attr:`sys.path_hooks`. An" -" instance of :class:`FileFinder` is returned by the closure using the path " +"A class method which returns a closure for use on :attr:`sys.path_hooks`. An " +"instance of :class:`FileFinder` is returned by the closure using the path " "argument given to the closure directly and *loader_details* indirectly." msgstr "" -#: ../../library/importlib.rst:1149 +#: ../../library/importlib.rst:1153 msgid "" -"If the argument to the closure is not an existing directory, " -":exc:`ImportError` is raised." +"If the argument to the closure is not an existing directory, :exc:" +"`ImportError` is raised." msgstr "" -#: ../../library/importlib.rst:1155 +#: ../../library/importlib.rst:1159 msgid "" "A concrete implementation of :class:`importlib.abc.SourceLoader` by " "subclassing :class:`importlib.abc.FileLoader` and providing some concrete " "implementations of other methods." msgstr "" -#: ../../library/importlib.rst:1163 +#: ../../library/importlib.rst:1167 msgid "The name of the module that this loader will handle." msgstr "" -#: ../../library/importlib.rst:1167 +#: ../../library/importlib.rst:1171 msgid "The path to the source file." msgstr "" -#: ../../library/importlib.rst:1171 -msgid "Return true if :attr:`path` appears to be for a package." +#: ../../library/importlib.rst:1175 +msgid "Return ``True`` if :attr:`path` appears to be for a package." msgstr "" -#: ../../library/importlib.rst:1175 +#: ../../library/importlib.rst:1179 msgid "" "Concrete implementation of :meth:`importlib.abc.SourceLoader.path_stats`." msgstr "" -#: ../../library/importlib.rst:1179 -msgid "" -"Concrete implementation of :meth:`importlib.abc.SourceLoader.set_data`." +#: ../../library/importlib.rst:1183 +msgid "Concrete implementation of :meth:`importlib.abc.SourceLoader.set_data`." msgstr "" -#: ../../library/importlib.rst:1183 ../../library/importlib.rst:1226 +#: ../../library/importlib.rst:1187 ../../library/importlib.rst:1230 msgid "" "Concrete implementation of :meth:`importlib.abc.Loader.load_module` where " "specifying the name of the module to load is optional." msgstr "" -#: ../../library/importlib.rst:1188 ../../library/importlib.rst:1231 +#: ../../library/importlib.rst:1192 ../../library/importlib.rst:1235 msgid "Use :meth:`importlib.abc.Loader.exec_module` instead." msgstr "" -#: ../../library/importlib.rst:1193 +#: ../../library/importlib.rst:1197 msgid "" "A concrete implementation of :class:`importlib.abc.FileLoader` which can " "import bytecode files (i.e. no source code files exist)." msgstr "" -#: ../../library/importlib.rst:1196 +#: ../../library/importlib.rst:1200 msgid "" "Please note that direct use of bytecode files (and thus not source code " -"files) inhibits your modules from being usable by all Python implementations" -" or new versions of Python which change the bytecode format." +"files) inhibits your modules from being usable by all Python implementations " +"or new versions of Python which change the bytecode format." msgstr "" -#: ../../library/importlib.rst:1205 +#: ../../library/importlib.rst:1209 msgid "The name of the module the loader will handle." msgstr "" -#: ../../library/importlib.rst:1209 +#: ../../library/importlib.rst:1213 msgid "The path to the bytecode file." msgstr "" -#: ../../library/importlib.rst:1213 +#: ../../library/importlib.rst:1217 msgid "Determines if the module is a package based on :attr:`path`." msgstr "" -#: ../../library/importlib.rst:1217 +#: ../../library/importlib.rst:1221 msgid "Returns the code object for :attr:`name` created from :attr:`path`." msgstr "" -#: ../../library/importlib.rst:1221 +#: ../../library/importlib.rst:1225 msgid "" "Returns ``None`` as bytecode files have no source when this loader is used." msgstr "" -#: ../../library/importlib.rst:1236 +#: ../../library/importlib.rst:1240 msgid "" "A concrete implementation of :class:`importlib.abc.ExecutionLoader` for " "extension modules." msgstr "" -#: ../../library/importlib.rst:1239 +#: ../../library/importlib.rst:1243 msgid "" "The *fullname* argument specifies the name of the module the loader is to " "support. The *path* argument is the path to the extension module's file." msgstr "" -#: ../../library/importlib.rst:1246 +#: ../../library/importlib.rst:1250 msgid "Name of the module the loader supports." msgstr "" -#: ../../library/importlib.rst:1250 +#: ../../library/importlib.rst:1254 msgid "Path to the extension module." msgstr "" -#: ../../library/importlib.rst:1254 +#: ../../library/importlib.rst:1258 msgid "" -"Creates the module object from the given specification in accordance with " -":pep:`489`." +"Creates the module object from the given specification in accordance with :" +"pep:`489`." msgstr "" -#: ../../library/importlib.rst:1261 +#: ../../library/importlib.rst:1265 msgid "Initializes the given module object in accordance with :pep:`489`." msgstr "" -#: ../../library/importlib.rst:1267 +#: ../../library/importlib.rst:1271 msgid "" "Returns ``True`` if the file path points to a package's ``__init__`` module " "based on :attr:`EXTENSION_SUFFIXES`." msgstr "" -#: ../../library/importlib.rst:1272 +#: ../../library/importlib.rst:1276 msgid "Returns ``None`` as extension modules lack a code object." msgstr "" -#: ../../library/importlib.rst:1276 +#: ../../library/importlib.rst:1280 msgid "Returns ``None`` as extension modules do not have source code." msgstr "" -#: ../../library/importlib.rst:1287 +#: ../../library/importlib.rst:1291 msgid "" "A specification for a module's import-system-related state. This is " "typically exposed as the module's ``__spec__`` attribute. In the " "descriptions below, the names in parentheses give the corresponding " -"attribute available directly on the module object. E.g. " -"``module.__spec__.origin == module.__file__``. Note however that while the " -"*values* are usually equivalent, they can differ since there is no " -"synchronization between the two objects. Thus it is possible to update the " -"module's ``__path__`` at runtime, and this will not be automatically " -"reflected in ``__spec__.submodule_search_locations``." +"attribute available directly on the module object. E.g. ``module.__spec__." +"origin == module.__file__``. Note however that while the *values* are " +"usually equivalent, they can differ since there is no synchronization " +"between the two objects. Thus it is possible to update the module's " +"``__path__`` at runtime, and this will not be automatically reflected in " +"``__spec__.submodule_search_locations``." msgstr "" -#: ../../library/importlib.rst:1301 +#: ../../library/importlib.rst:1305 msgid "(``__name__``)" msgstr "" -#: ../../library/importlib.rst:1303 +#: ../../library/importlib.rst:1307 msgid "A string for the fully-qualified name of the module." msgstr "" -#: ../../library/importlib.rst:1307 +#: ../../library/importlib.rst:1311 msgid "(``__loader__``)" msgstr "" -#: ../../library/importlib.rst:1309 +#: ../../library/importlib.rst:1313 msgid "" -"The loader to use for loading. For namespace packages this should be set to" -" ``None``." +"The loader to use for loading. For namespace packages this should be set to " +"``None``." msgstr "" -#: ../../library/importlib.rst:1314 +#: ../../library/importlib.rst:1318 msgid "(``__file__``)" msgstr "" -#: ../../library/importlib.rst:1316 +#: ../../library/importlib.rst:1320 msgid "" "Name of the place from which the module is loaded, e.g. \"builtin\" for " "built-in modules and the filename for modules loaded from source. Normally " @@ -1569,181 +1566,178 @@ msgid "" "indicates it is unspecified (e.g. for namespace packages)." msgstr "" -#: ../../library/importlib.rst:1323 +#: ../../library/importlib.rst:1327 msgid "(``__path__``)" msgstr "" -#: ../../library/importlib.rst:1325 +#: ../../library/importlib.rst:1329 msgid "" "List of strings for where to find submodules, if a package (``None`` " "otherwise)." msgstr "" -#: ../../library/importlib.rst:1330 +#: ../../library/importlib.rst:1334 msgid "" -"Container of extra module-specific data for use during loading (or " -"``None``)." +"Container of extra module-specific data for use during loading (or ``None``)." msgstr "" -#: ../../library/importlib.rst:1335 +#: ../../library/importlib.rst:1339 msgid "(``__cached__``)" msgstr "" -#: ../../library/importlib.rst:1337 +#: ../../library/importlib.rst:1341 msgid "String for where the compiled module should be stored (or ``None``)." msgstr "" -#: ../../library/importlib.rst:1341 +#: ../../library/importlib.rst:1345 msgid "(``__package__``)" msgstr "" -#: ../../library/importlib.rst:1343 +#: ../../library/importlib.rst:1347 msgid "" "(Read-only) Fully-qualified name of the package to which the module belongs " "as a submodule (or ``None``)." msgstr "" -#: ../../library/importlib.rst:1348 +#: ../../library/importlib.rst:1352 msgid "" "Boolean indicating whether or not the module's \"origin\" attribute refers " "to a loadable location." msgstr "" -#: ../../library/importlib.rst:1352 +#: ../../library/importlib.rst:1356 msgid ":mod:`importlib.util` -- Utility code for importers" msgstr "" -#: ../../library/importlib.rst:1358 +#: ../../library/importlib.rst:1362 msgid "**Source code:** :source:`Lib/importlib/util.py`" msgstr "" -#: ../../library/importlib.rst:1362 +#: ../../library/importlib.rst:1366 msgid "" -"This module contains the various objects that help in the construction of an" -" :term:`importer`." +"This module contains the various objects that help in the construction of " +"an :term:`importer`." msgstr "" -#: ../../library/importlib.rst:1367 +#: ../../library/importlib.rst:1371 msgid "" -"The bytes which represent the bytecode version number. If you need help with" -" loading/writing bytecode then consider :class:`importlib.abc.SourceLoader`." +"The bytes which represent the bytecode version number. If you need help with " +"loading/writing bytecode then consider :class:`importlib.abc.SourceLoader`." msgstr "" -#: ../../library/importlib.rst:1374 +#: ../../library/importlib.rst:1378 msgid "" "Return the :pep:`3147`/:pep:`488` path to the byte-compiled file associated " "with the source *path*. For example, if *path* is ``/foo/bar/baz.py`` the " -"return value would be ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python" -" 3.2. The ``cpython-32`` string comes from the current magic tag (see " -":func:`get_tag`; if :attr:`sys.implementation.cache_tag` is not defined then" -" :exc:`NotImplementedError` will be raised)." +"return value would be ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python " +"3.2. The ``cpython-32`` string comes from the current magic tag (see :func:" +"`get_tag`; if :attr:`sys.implementation.cache_tag` is not defined then :exc:" +"`NotImplementedError` will be raised)." msgstr "" -#: ../../library/importlib.rst:1381 +#: ../../library/importlib.rst:1385 msgid "" "The *optimization* parameter is used to specify the optimization level of " -"the bytecode file. An empty string represents no optimization, so " -"``/foo/bar/baz.py`` with an *optimization* of ``''`` will result in a " -"bytecode path of ``/foo/bar/__pycache__/baz.cpython-32.pyc``. ``None`` " -"causes the interpter's optimization level to be used. Any other value's " -"string representation being used, so ``/foo/bar/baz.py`` with an " -"*optimization* of ``2`` will lead to the bytecode path of " -"``/foo/bar/__pycache__/baz.cpython-32.opt-2.pyc``. The string representation" -" of *optimization* can only be alphanumeric, else :exc:`ValueError` is " -"raised." +"the bytecode file. An empty string represents no optimization, so ``/foo/bar/" +"baz.py`` with an *optimization* of ``''`` will result in a bytecode path of " +"``/foo/bar/__pycache__/baz.cpython-32.pyc``. ``None`` causes the interpter's " +"optimization level to be used. Any other value's string representation being " +"used, so ``/foo/bar/baz.py`` with an *optimization* of ``2`` will lead to " +"the bytecode path of ``/foo/bar/__pycache__/baz.cpython-32.opt-2.pyc``. The " +"string representation of *optimization* can only be alphanumeric, else :exc:" +"`ValueError` is raised." msgstr "" -#: ../../library/importlib.rst:1391 +#: ../../library/importlib.rst:1395 msgid "" -"The *debug_override* parameter is deprecated and can be used to override the" -" system's value for ``__debug__``. A ``True`` value is the equivalent of " -"setting *optimization* to the empty string. A ``False`` value is the same as" -" setting *optimization* to ``1``. If both *debug_override* an *optimization*" -" are not ``None`` then :exc:`TypeError` is raised." +"The *debug_override* parameter is deprecated and can be used to override the " +"system's value for ``__debug__``. A ``True`` value is the equivalent of " +"setting *optimization* to the empty string. A ``False`` value is the same as " +"setting *optimization* to ``1``. If both *debug_override* an *optimization* " +"are not ``None`` then :exc:`TypeError` is raised." msgstr "" -#: ../../library/importlib.rst:1399 +#: ../../library/importlib.rst:1403 msgid "" "The *optimization* parameter was added and the *debug_override* parameter " "was deprecated." msgstr "" -#: ../../library/importlib.rst:1403 ../../library/importlib.rst:1419 -#: ../../library/importlib.rst:1563 +#: ../../library/importlib.rst:1407 ../../library/importlib.rst:1423 +#: ../../library/importlib.rst:1567 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." -#: ../../library/importlib.rst:1409 +#: ../../library/importlib.rst:1413 msgid "" "Given the *path* to a :pep:`3147` file name, return the associated source " -"code file path. For example, if *path* is " -"``/foo/bar/__pycache__/baz.cpython-32.pyc`` the returned path would be " -"``/foo/bar/baz.py``. *path* need not exist, however if it does not conform " -"to :pep:`3147` or :pep:`488` format, a :exc:`ValueError` is raised. If " -":attr:`sys.implementation.cache_tag` is not defined, " -":exc:`NotImplementedError` is raised." +"code file path. For example, if *path* is ``/foo/bar/__pycache__/baz." +"cpython-32.pyc`` the returned path would be ``/foo/bar/baz.py``. *path* " +"need not exist, however if it does not conform to :pep:`3147` or :pep:`488` " +"format, a :exc:`ValueError` is raised. If :attr:`sys.implementation." +"cache_tag` is not defined, :exc:`NotImplementedError` is raised." msgstr "" -#: ../../library/importlib.rst:1424 +#: ../../library/importlib.rst:1428 msgid "" "Decode the given bytes representing source code and return it as a string " -"with universal newlines (as required by " -":meth:`importlib.abc.InspectLoader.get_source`)." +"with universal newlines (as required by :meth:`importlib.abc.InspectLoader." +"get_source`)." msgstr "" -#: ../../library/importlib.rst:1432 +#: ../../library/importlib.rst:1436 msgid "Resolve a relative module name to an absolute one." msgstr "" -#: ../../library/importlib.rst:1434 +#: ../../library/importlib.rst:1438 msgid "" "If **name** has no leading dots, then **name** is simply returned. This " -"allows for usage such as ``importlib.util.resolve_name('sys', __package__)``" -" without doing a check to see if the **package** argument is needed." +"allows for usage such as ``importlib.util.resolve_name('sys', __package__)`` " +"without doing a check to see if the **package** argument is needed." msgstr "" -#: ../../library/importlib.rst:1439 +#: ../../library/importlib.rst:1443 msgid "" ":exc:`ValueError` is raised if **name** is a relative module name but " -"package is a false value (e.g. ``None`` or the empty string). " -":exc:`ValueError` is also raised a relative name would escape its containing" -" package (e.g. requesting ``..bacon`` from within the ``spam`` package)." +"package is a false value (e.g. ``None`` or the empty string). :exc:" +"`ValueError` is also raised a relative name would escape its containing " +"package (e.g. requesting ``..bacon`` from within the ``spam`` package)." msgstr "" -#: ../../library/importlib.rst:1448 +#: ../../library/importlib.rst:1452 msgid "" -"Find the :term:`spec ` for a module, optionally relative to the" -" specified **package** name. If the module is in :attr:`sys.modules`, then " +"Find the :term:`spec ` for a module, optionally relative to the " +"specified **package** name. If the module is in :attr:`sys.modules`, then " "``sys.modules[name].__spec__`` is returned (unless the spec would be " "``None`` or is not set, in which case :exc:`ValueError` is raised). " -"Otherwise a search using :attr:`sys.meta_path` is done. ``None`` is returned" -" if no spec is found." +"Otherwise a search using :attr:`sys.meta_path` is done. ``None`` is returned " +"if no spec is found." msgstr "" -#: ../../library/importlib.rst:1455 +#: ../../library/importlib.rst:1459 msgid "" "If **name** is for a submodule (contains a dot), the parent module is " "automatically imported." msgstr "" -#: ../../library/importlib.rst:1458 +#: ../../library/importlib.rst:1462 msgid "**name** and **package** work the same as for :func:`import_module`." msgstr "" -#: ../../library/importlib.rst:1462 +#: ../../library/importlib.rst:1466 msgid "" "Raises :exc:`ModuleNotFoundError` instead of :exc:`AttributeError` if " "**package** is in fact not a package (i.e. lacks a :attr:`__path__` " "attribute)." msgstr "" -#: ../../library/importlib.rst:1469 +#: ../../library/importlib.rst:1473 msgid "" "Create a new module based on **spec** and :meth:`spec.loader.create_module " "`." msgstr "" -#: ../../library/importlib.rst:1472 +#: ../../library/importlib.rst:1476 msgid "" "If :meth:`spec.loader.create_module ` " "does not return ``None``, then any pre-existing attributes will not be " @@ -1751,208 +1745,204 @@ msgid "" "accessing **spec** or setting an attribute on the module." msgstr "" -#: ../../library/importlib.rst:1477 +#: ../../library/importlib.rst:1481 msgid "" "This function is preferred over using :class:`types.ModuleType` to create a " "new module as **spec** is used to set as many import-controlled attributes " "on the module as possible." msgstr "" -#: ../../library/importlib.rst:1485 +#: ../../library/importlib.rst:1489 msgid "" "A :term:`decorator` for :meth:`importlib.abc.Loader.load_module` to handle " "selecting the proper module object to load with. The decorated method is " "expected to have a call signature taking two positional arguments (e.g. " "``load_module(self, module)``) for which the second argument will be the " -"module **object** to be used by the loader. Note that the decorator will not" -" work on static methods because of the assumption of two arguments." +"module **object** to be used by the loader. Note that the decorator will not " +"work on static methods because of the assumption of two arguments." msgstr "" -#: ../../library/importlib.rst:1494 +#: ../../library/importlib.rst:1498 msgid "" -"The decorated method will take in the **name** of the module to be loaded as" -" expected for a :term:`loader`. If the module is not found in " -":data:`sys.modules` then a new one is constructed. Regardless of where the " -"module came from, :attr:`__loader__` set to **self** and :attr:`__package__`" -" is set based on what :meth:`importlib.abc.InspectLoader.is_package` returns" -" (if available). These attributes are set unconditionally to support " -"reloading." +"The decorated method will take in the **name** of the module to be loaded as " +"expected for a :term:`loader`. If the module is not found in :data:`sys." +"modules` then a new one is constructed. Regardless of where the module came " +"from, :attr:`__loader__` set to **self** and :attr:`__package__` is set " +"based on what :meth:`importlib.abc.InspectLoader.is_package` returns (if " +"available). These attributes are set unconditionally to support reloading." msgstr "" -#: ../../library/importlib.rst:1502 +#: ../../library/importlib.rst:1506 msgid "" -"If an exception is raised by the decorated method and a module was added to " -":data:`sys.modules`, then the module will be removed to prevent a partially " +"If an exception is raised by the decorated method and a module was added to :" +"data:`sys.modules`, then the module will be removed to prevent a partially " "initialized module from being in left in :data:`sys.modules`. If the module " "was already in :data:`sys.modules` then it is left alone." msgstr "" -#: ../../library/importlib.rst:1507 +#: ../../library/importlib.rst:1511 msgid "" ":attr:`__loader__` and :attr:`__package__` are automatically set (when " "possible)." msgstr "" -#: ../../library/importlib.rst:1511 +#: ../../library/importlib.rst:1515 msgid "" -"Set :attr:`__name__`, :attr:`__loader__` :attr:`__package__` unconditionally" -" to support reloading." +"Set :attr:`__name__`, :attr:`__loader__` :attr:`__package__` unconditionally " +"to support reloading." msgstr "" -#: ../../library/importlib.rst:1515 +#: ../../library/importlib.rst:1519 msgid "" -"The import machinery now directly performs all the functionality provided by" -" this function." +"The import machinery now directly performs all the functionality provided by " +"this function." msgstr "" -#: ../../library/importlib.rst:1521 +#: ../../library/importlib.rst:1525 msgid "" -"A :term:`decorator` for :meth:`importlib.abc.Loader.load_module` to set the " -":attr:`__loader__` attribute on the returned module. If the attribute is " +"A :term:`decorator` for :meth:`importlib.abc.Loader.load_module` to set the :" +"attr:`__loader__` attribute on the returned module. If the attribute is " "already set the decorator does nothing. It is assumed that the first " -"positional argument to the wrapped method (i.e. ``self``) is what " -":attr:`__loader__` should be set to." +"positional argument to the wrapped method (i.e. ``self``) is what :attr:" +"`__loader__` should be set to." msgstr "" -#: ../../library/importlib.rst:1528 +#: ../../library/importlib.rst:1532 msgid "" "Set ``__loader__`` if set to ``None``, as if the attribute does not exist." msgstr "" -#: ../../library/importlib.rst:1532 ../../library/importlib.rst:1541 +#: ../../library/importlib.rst:1536 ../../library/importlib.rst:1545 msgid "The import machinery takes care of this automatically." msgstr "" -#: ../../library/importlib.rst:1537 +#: ../../library/importlib.rst:1541 msgid "" -"A :term:`decorator` for :meth:`importlib.abc.Loader.load_module` to set the " -":attr:`__package__` attribute on the returned module. If :attr:`__package__`" -" is set and has a value other than ``None`` it will not be changed." +"A :term:`decorator` for :meth:`importlib.abc.Loader.load_module` to set the :" +"attr:`__package__` attribute on the returned module. If :attr:`__package__` " +"is set and has a value other than ``None`` it will not be changed." msgstr "" -#: ../../library/importlib.rst:1546 +#: ../../library/importlib.rst:1550 msgid "" "A factory function for creating a :class:`ModuleSpec` instance based on a " "loader. The parameters have the same meaning as they do for ModuleSpec. " -"The function uses available :term:`loader` APIs, such as " -":meth:`InspectLoader.is_package`, to fill in any missing information on the " -"spec." +"The function uses available :term:`loader` APIs, such as :meth:" +"`InspectLoader.is_package`, to fill in any missing information on the spec." msgstr "" -#: ../../library/importlib.rst:1556 +#: ../../library/importlib.rst:1560 msgid "" "A factory function for creating a :class:`ModuleSpec` instance based on the " -"path to a file. Missing information will be filled in on the spec by making" -" use of loader APIs and by the implication that the module will be file-" -"based." +"path to a file. Missing information will be filled in on the spec by making " +"use of loader APIs and by the implication that the module will be file-based." msgstr "" -#: ../../library/importlib.rst:1568 +#: ../../library/importlib.rst:1572 msgid "" "Return the hash of *source_bytes* as bytes. A hash-based ``.pyc`` file " "embeds the :func:`source_hash` of the corresponding source file's contents " "in its header." msgstr "" -#: ../../library/importlib.rst:1576 +#: ../../library/importlib.rst:1580 msgid "" "A class which postpones the execution of the loader of a module until the " "module has an attribute accessed." msgstr "" -#: ../../library/importlib.rst:1579 +#: ../../library/importlib.rst:1583 msgid "" -"This class **only** works with loaders that define " -":meth:`~importlib.abc.Loader.exec_module` as control over what module type " -"is used for the module is required. For those same reasons, the loader's " -":meth:`~importlib.abc.Loader.create_module` method must return ``None`` or a" -" type for which its ``__class__`` attribute can be mutated along with not " -"using :term:`slots <__slots__>`. Finally, modules which substitute the " -"object placed into :attr:`sys.modules` will not work as there is no way to " -"properly replace the module references throughout the interpreter safely; " -":exc:`ValueError` is raised if such a substitution is detected." +"This class **only** works with loaders that define :meth:`~importlib.abc." +"Loader.exec_module` as control over what module type is used for the module " +"is required. For those same reasons, the loader's :meth:`~importlib.abc." +"Loader.create_module` method must return ``None`` or a type for which its " +"``__class__`` attribute can be mutated along with not using :term:`slots " +"<__slots__>`. Finally, modules which substitute the object placed into :attr:" +"`sys.modules` will not work as there is no way to properly replace the " +"module references throughout the interpreter safely; :exc:`ValueError` is " +"raised if such a substitution is detected." msgstr "" -#: ../../library/importlib.rst:1590 +#: ../../library/importlib.rst:1594 msgid "" "For projects where startup time is critical, this class allows for " -"potentially minimizing the cost of loading a module if it is never used. For" -" projects where startup time is not essential then use of this class is " +"potentially minimizing the cost of loading a module if it is never used. For " +"projects where startup time is not essential then use of this class is " "**heavily** discouraged due to error messages created during loading being " "postponed and thus occurring out of context." msgstr "" -#: ../../library/importlib.rst:1598 +#: ../../library/importlib.rst:1602 msgid "" "Began calling :meth:`~importlib.abc.Loader.create_module`, removing the " -"compatibility warning for :class:`importlib.machinery.BuiltinImporter` and " -":class:`importlib.machinery.ExtensionFileLoader`." +"compatibility warning for :class:`importlib.machinery.BuiltinImporter` and :" +"class:`importlib.machinery.ExtensionFileLoader`." msgstr "" -#: ../../library/importlib.rst:1605 +#: ../../library/importlib.rst:1609 msgid "" -"A static method which returns a callable that creates a lazy loader. This is" -" meant to be used in situations where the loader is passed by class instead " +"A static method which returns a callable that creates a lazy loader. This is " +"meant to be used in situations where the loader is passed by class instead " "of by instance. ::" msgstr "" -#: ../../library/importlib.rst:1618 +#: ../../library/importlib.rst:1622 msgid "Examples" msgstr "Exemplos" -#: ../../library/importlib.rst:1621 +#: ../../library/importlib.rst:1625 msgid "Importing programmatically" msgstr "" -#: ../../library/importlib.rst:1623 +#: ../../library/importlib.rst:1627 msgid "" "To programmatically import a module, use :func:`importlib.import_module`. ::" msgstr "" -#: ../../library/importlib.rst:1632 +#: ../../library/importlib.rst:1636 msgid "Checking if a module can be imported" msgstr "" -#: ../../library/importlib.rst:1634 +#: ../../library/importlib.rst:1638 msgid "" "If you need to find out if a module can be imported without actually doing " "the import, then you should use :func:`importlib.util.find_spec`. ::" msgstr "" -#: ../../library/importlib.rst:1656 +#: ../../library/importlib.rst:1660 msgid "Importing a source file directly" msgstr "" -#: ../../library/importlib.rst:1658 +#: ../../library/importlib.rst:1662 msgid "" "To import a Python source file directly, use the following recipe (Python " "3.5 and newer only)::" msgstr "" -#: ../../library/importlib.rst:1678 +#: ../../library/importlib.rst:1682 msgid "Setting up an importer" msgstr "" -#: ../../library/importlib.rst:1680 +#: ../../library/importlib.rst:1684 msgid "" -"For deep customizations of import, you typically want to implement an " -":term:`importer`. This means managing both the :term:`finder` and " -":term:`loader` side of things. For finders there are two flavours to choose " -"from depending on your needs: a :term:`meta path finder` or a :term:`path " -"entry finder`. The former is what you would put on :attr:`sys.meta_path` " -"while the latter is what you create using a :term:`path entry hook` on " -":attr:`sys.path_hooks` which works with :attr:`sys.path` entries to " -"potentially create a finder. This example will show you how to register your" -" own importers so that import will use them (for creating an importer for " -"yourself, read the documentation for the appropriate classes defined within " -"this package)::" +"For deep customizations of import, you typically want to implement an :term:" +"`importer`. This means managing both the :term:`finder` and :term:`loader` " +"side of things. For finders there are two flavours to choose from depending " +"on your needs: a :term:`meta path finder` or a :term:`path entry finder`. " +"The former is what you would put on :attr:`sys.meta_path` while the latter " +"is what you create using a :term:`path entry hook` on :attr:`sys.path_hooks` " +"which works with :attr:`sys.path` entries to potentially create a finder. " +"This example will show you how to register your own importers so that import " +"will use them (for creating an importer for yourself, read the documentation " +"for the appropriate classes defined within this package)::" msgstr "" -#: ../../library/importlib.rst:1712 +#: ../../library/importlib.rst:1716 msgid "Approximating :func:`importlib.import_module`" msgstr "" -#: ../../library/importlib.rst:1714 +#: ../../library/importlib.rst:1718 msgid "" "Import itself is implemented in Python code, making it possible to expose " "most of the import machinery through importlib. The following helps " diff --git a/library/index.po b/library/index.po index 20a3783cb..9b7768c42 100644 --- a/library/index.po +++ b/library/index.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,15 +29,15 @@ msgstr "A Biblioteca Padrão do Python" #: ../../library/index.rst:7 msgid "" -"While :ref:`reference-index` describes the exact syntax and semantics of the" -" Python language, this library reference manual describes the standard " +"While :ref:`reference-index` describes the exact syntax and semantics of the " +"Python language, this library reference manual describes the standard " "library that is distributed with Python. It also describes some of the " "optional components that are commonly included in Python distributions." msgstr "" "Enquanto :ref:`reference-index` descreve a sintaxe e a semântica exatas da " "linguagem Python, este manual de referência de bibliotecas descreve a " -"biblioteca padrão que é distribuída com o Python. Ele também descreve alguns" -" dos componentes opcionais que são comumente incluídos nas distribuições do " +"biblioteca padrão que é distribuída com o Python. Ele também descreve alguns " +"dos componentes opcionais que são comumente incluídos nas distribuições do " "Python." #: ../../library/index.rst:13 @@ -46,26 +47,26 @@ msgid "" "library contains built-in modules (written in C) that provide access to " "system functionality such as file I/O that would otherwise be inaccessible " "to Python programmers, as well as modules written in Python that provide " -"standardized solutions for many problems that occur in everyday programming." -" Some of these modules are explicitly designed to encourage and enhance the " +"standardized solutions for many problems that occur in everyday programming. " +"Some of these modules are explicitly designed to encourage and enhance the " "portability of Python programs by abstracting away platform-specifics into " "platform-neutral APIs." msgstr "" "A biblioteca padrão do Python é muito extensa, oferecendo uma ampla gama de " "recursos, conforme indicado pelo longo índice listado abaixo. A biblioteca " -"contém módulos internos (escritos em C) que fornecem acesso à funcionalidade" -" do sistema, como E/S de arquivos que de outra forma seriam inacessíveis " -"para programadores Python, bem como módulos escritos em Python que fornecem " +"contém módulos internos (escritos em C) que fornecem acesso à funcionalidade " +"do sistema, como E/S de arquivos que de outra forma seriam inacessíveis para " +"programadores Python, bem como módulos escritos em Python que fornecem " "soluções padronizadas para muitos problemas que ocorrem em programação " "cotidiana. Alguns desses módulos são explicitamente projetados para " -"incentivar e aprimorar a portabilidade de programas em Python, abstraindo os" -" detalhes da plataforma em APIs neutras em plataforma." +"incentivar e aprimorar a portabilidade de programas em Python, abstraindo os " +"detalhes da plataforma em APIs neutras em plataforma." #: ../../library/index.rst:23 msgid "" "The Python installers for the Windows platform usually include the entire " -"standard library and often also include many additional components. For " -"Unix-like operating systems Python is normally provided as a collection of " +"standard library and often also include many additional components. For Unix-" +"like operating systems Python is normally provided as a collection of " "packages, so it may be necessary to use the packaging tools provided with " "the operating system to obtain some or all of the optional components." msgstr "" diff --git a/library/inspect.po b/library/inspect.po index a50a5d104..044a74332 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -1,26 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Hugo Santos Piauilino , 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 # felipe caridade , 2019 # Rafael Fontenelle , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-11 10:48+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,8 +39,8 @@ msgstr "**Código Fonte:** :source:`Lib/inspect.py`" #: ../../library/inspect.rst:14 msgid "" "The :mod:`inspect` module provides several useful functions to help get " -"information about live objects such as modules, classes, methods, functions," -" tracebacks, frame objects, and code objects. For example, it can help you " +"information about live objects such as modules, classes, methods, functions, " +"tracebacks, frame objects, and code objects. For example, it can help you " "examine the contents of a class, retrieve the source code of a method, " "extract and format the argument list for a function, or get all the " "information you need to display a detailed traceback." @@ -58,11 +59,11 @@ msgstr "" #: ../../library/inspect.rst:31 msgid "" -"The :func:`getmembers` function retrieves the members of an object such as a" -" class or module. The functions whose names begin with \"is\" are mainly " -"provided as convenient choices for the second argument to " -":func:`getmembers`. They also help you determine when you can expect to find" -" the following special attributes:" +"The :func:`getmembers` function retrieves the members of an object such as a " +"class or module. The functions whose names begin with \"is\" are mainly " +"provided as convenient choices for the second argument to :func:" +"`getmembers`. They also help you determine when you can expect to find the " +"following special attributes:" msgstr "" #: ../../library/inspect.rst:41 @@ -82,14 +83,14 @@ msgid "module" msgstr "módulo " #: ../../library/inspect.rst:43 ../../library/inspect.rst:48 -#: ../../library/inspect.rst:58 ../../library/inspect.rst:73 -#: ../../library/inspect.rst:222 +#: ../../library/inspect.rst:58 ../../library/inspect.rst:76 +#: ../../library/inspect.rst:228 msgid "__doc__" msgstr "__doc__" #: ../../library/inspect.rst:43 ../../library/inspect.rst:48 -#: ../../library/inspect.rst:58 ../../library/inspect.rst:73 -#: ../../library/inspect.rst:222 +#: ../../library/inspect.rst:58 ../../library/inspect.rst:76 +#: ../../library/inspect.rst:228 msgid "documentation string" msgstr "" @@ -106,8 +107,8 @@ msgid "class" msgstr "Classe" #: ../../library/inspect.rst:50 ../../library/inspect.rst:60 -#: ../../library/inspect.rst:75 ../../library/inspect.rst:191 -#: ../../library/inspect.rst:205 ../../library/inspect.rst:224 +#: ../../library/inspect.rst:78 ../../library/inspect.rst:197 +#: ../../library/inspect.rst:211 ../../library/inspect.rst:230 msgid "__name__" msgstr "__name__" @@ -116,18 +117,19 @@ msgid "name with which this class was defined" msgstr "" #: ../../library/inspect.rst:53 ../../library/inspect.rst:63 -#: ../../library/inspect.rst:78 ../../library/inspect.rst:193 -#: ../../library/inspect.rst:207 ../../library/inspect.rst:227 +#: ../../library/inspect.rst:81 ../../library/inspect.rst:199 +#: ../../library/inspect.rst:213 ../../library/inspect.rst:233 msgid "__qualname__" msgstr "" #: ../../library/inspect.rst:53 ../../library/inspect.rst:63 -#: ../../library/inspect.rst:78 ../../library/inspect.rst:193 -#: ../../library/inspect.rst:207 ../../library/inspect.rst:227 +#: ../../library/inspect.rst:81 ../../library/inspect.rst:199 +#: ../../library/inspect.rst:213 ../../library/inspect.rst:233 msgid "qualified name" msgstr "qualified name (nome qualificado)" -#: ../../library/inspect.rst:55 +#: ../../library/inspect.rst:55 ../../library/inspect.rst:73 +#: ../../library/inspect.rst:104 msgid "__module__" msgstr "" @@ -151,7 +153,7 @@ msgstr "" msgid "function object containing implementation of method" msgstr "" -#: ../../library/inspect.rst:69 ../../library/inspect.rst:229 +#: ../../library/inspect.rst:69 ../../library/inspect.rst:235 msgid "__self__" msgstr "" @@ -160,389 +162,397 @@ msgid "instance to which this method is bound, or ``None``" msgstr "" #: ../../library/inspect.rst:73 +msgid "name of module in which this method was defined" +msgstr "" + +#: ../../library/inspect.rst:76 msgid "function" msgstr "function (função)" -#: ../../library/inspect.rst:75 +#: ../../library/inspect.rst:78 msgid "name with which this function was defined" msgstr "" -#: ../../library/inspect.rst:80 +#: ../../library/inspect.rst:83 msgid "__code__" msgstr "" -#: ../../library/inspect.rst:80 +#: ../../library/inspect.rst:83 msgid "code object containing compiled function :term:`bytecode`" msgstr "" -#: ../../library/inspect.rst:84 +#: ../../library/inspect.rst:87 msgid "__defaults__" msgstr "" -#: ../../library/inspect.rst:84 +#: ../../library/inspect.rst:87 msgid "tuple of any default values for positional or keyword parameters" msgstr "" -#: ../../library/inspect.rst:88 +#: ../../library/inspect.rst:91 msgid "__kwdefaults__" msgstr "" -#: ../../library/inspect.rst:88 +#: ../../library/inspect.rst:91 msgid "mapping of any default values for keyword-only parameters" msgstr "" -#: ../../library/inspect.rst:92 +#: ../../library/inspect.rst:95 msgid "__globals__" msgstr "" -#: ../../library/inspect.rst:92 +#: ../../library/inspect.rst:95 msgid "global namespace in which this function was defined" msgstr "" -#: ../../library/inspect.rst:95 +#: ../../library/inspect.rst:98 msgid "__annotations__" msgstr "" -#: ../../library/inspect.rst:95 +#: ../../library/inspect.rst:98 msgid "" "mapping of parameters names to annotations; ``\"return\"`` key is reserved " "for return annotations." msgstr "" -#: ../../library/inspect.rst:101 +#: ../../library/inspect.rst:104 +msgid "name of module in which this function was defined" +msgstr "" + +#: ../../library/inspect.rst:107 msgid "traceback" msgstr "traceback" -#: ../../library/inspect.rst:101 +#: ../../library/inspect.rst:107 msgid "tb_frame" msgstr "" -#: ../../library/inspect.rst:101 +#: ../../library/inspect.rst:107 msgid "frame object at this level" msgstr "" -#: ../../library/inspect.rst:104 +#: ../../library/inspect.rst:110 msgid "tb_lasti" msgstr "" -#: ../../library/inspect.rst:104 ../../library/inspect.rst:126 +#: ../../library/inspect.rst:110 ../../library/inspect.rst:132 msgid "index of last attempted instruction in bytecode" msgstr "" -#: ../../library/inspect.rst:107 +#: ../../library/inspect.rst:113 msgid "tb_lineno" msgstr "" -#: ../../library/inspect.rst:107 ../../library/inspect.rst:129 +#: ../../library/inspect.rst:113 ../../library/inspect.rst:135 msgid "current line number in Python source code" msgstr "" -#: ../../library/inspect.rst:110 +#: ../../library/inspect.rst:116 msgid "tb_next" msgstr "" -#: ../../library/inspect.rst:110 +#: ../../library/inspect.rst:116 msgid "next inner traceback object (called by this level)" msgstr "" -#: ../../library/inspect.rst:114 ../../library/inspect.rst:195 -#: ../../library/inspect.rst:212 +#: ../../library/inspect.rst:120 ../../library/inspect.rst:201 +#: ../../library/inspect.rst:218 msgid "frame" msgstr "" -#: ../../library/inspect.rst:114 +#: ../../library/inspect.rst:120 msgid "f_back" msgstr "" -#: ../../library/inspect.rst:114 +#: ../../library/inspect.rst:120 msgid "next outer frame object (this frame's caller)" msgstr "" -#: ../../library/inspect.rst:117 +#: ../../library/inspect.rst:123 msgid "f_builtins" msgstr "" -#: ../../library/inspect.rst:117 +#: ../../library/inspect.rst:123 msgid "builtins namespace seen by this frame" msgstr "" -#: ../../library/inspect.rst:120 +#: ../../library/inspect.rst:126 msgid "f_code" msgstr "" -#: ../../library/inspect.rst:120 +#: ../../library/inspect.rst:126 msgid "code object being executed in this frame" msgstr "" -#: ../../library/inspect.rst:123 +#: ../../library/inspect.rst:129 msgid "f_globals" msgstr "" -#: ../../library/inspect.rst:123 +#: ../../library/inspect.rst:129 msgid "global namespace seen by this frame" msgstr "" -#: ../../library/inspect.rst:126 +#: ../../library/inspect.rst:132 msgid "f_lasti" msgstr "" -#: ../../library/inspect.rst:129 +#: ../../library/inspect.rst:135 msgid "f_lineno" msgstr "" -#: ../../library/inspect.rst:132 +#: ../../library/inspect.rst:138 msgid "f_locals" msgstr "" -#: ../../library/inspect.rst:132 +#: ../../library/inspect.rst:138 msgid "local namespace seen by this frame" msgstr "" -#: ../../library/inspect.rst:135 +#: ../../library/inspect.rst:141 msgid "f_trace" msgstr "" -#: ../../library/inspect.rst:135 +#: ../../library/inspect.rst:141 msgid "tracing function for this frame, or ``None``" msgstr "" -#: ../../library/inspect.rst:138 ../../library/inspect.rst:199 -#: ../../library/inspect.rst:216 +#: ../../library/inspect.rst:144 ../../library/inspect.rst:205 +#: ../../library/inspect.rst:222 msgid "code" msgstr "" -#: ../../library/inspect.rst:138 +#: ../../library/inspect.rst:144 msgid "co_argcount" msgstr "" -#: ../../library/inspect.rst:138 +#: ../../library/inspect.rst:144 msgid "" "number of arguments (not including keyword only arguments, \\* or \\*\\* " "args)" msgstr "" -#: ../../library/inspect.rst:143 +#: ../../library/inspect.rst:149 msgid "co_code" msgstr "" -#: ../../library/inspect.rst:143 +#: ../../library/inspect.rst:149 msgid "string of raw compiled bytecode" msgstr "" -#: ../../library/inspect.rst:146 +#: ../../library/inspect.rst:152 msgid "co_cellvars" msgstr "co_cellvars" -#: ../../library/inspect.rst:146 +#: ../../library/inspect.rst:152 msgid "tuple of names of cell variables (referenced by containing scopes)" msgstr "" -#: ../../library/inspect.rst:150 +#: ../../library/inspect.rst:156 msgid "co_consts" msgstr "co_consts" -#: ../../library/inspect.rst:150 +#: ../../library/inspect.rst:156 msgid "tuple of constants used in the bytecode" msgstr "" -#: ../../library/inspect.rst:153 +#: ../../library/inspect.rst:159 msgid "co_filename" msgstr "" -#: ../../library/inspect.rst:153 +#: ../../library/inspect.rst:159 msgid "name of file in which this code object was created" msgstr "" -#: ../../library/inspect.rst:157 +#: ../../library/inspect.rst:163 msgid "co_firstlineno" msgstr "co_firstlineno" -#: ../../library/inspect.rst:157 +#: ../../library/inspect.rst:163 msgid "number of first line in Python source code" msgstr "" -#: ../../library/inspect.rst:160 +#: ../../library/inspect.rst:166 msgid "co_flags" msgstr "co_flags" -#: ../../library/inspect.rst:160 +#: ../../library/inspect.rst:166 msgid "" "bitmap of ``CO_*`` flags, read more :ref:`here `" msgstr "" -#: ../../library/inspect.rst:164 +#: ../../library/inspect.rst:170 msgid "co_lnotab" msgstr "" -#: ../../library/inspect.rst:164 +#: ../../library/inspect.rst:170 msgid "encoded mapping of line numbers to bytecode indices" msgstr "" -#: ../../library/inspect.rst:168 +#: ../../library/inspect.rst:174 msgid "co_freevars" msgstr "" -#: ../../library/inspect.rst:168 +#: ../../library/inspect.rst:174 msgid "tuple of names of free variables (referenced via a function's closure)" msgstr "" -#: ../../library/inspect.rst:172 +#: ../../library/inspect.rst:178 msgid "co_kwonlyargcount" msgstr "" -#: ../../library/inspect.rst:172 +#: ../../library/inspect.rst:178 msgid "number of keyword only arguments (not including \\*\\* arg)" msgstr "" -#: ../../library/inspect.rst:176 +#: ../../library/inspect.rst:182 msgid "co_name" msgstr "" -#: ../../library/inspect.rst:176 +#: ../../library/inspect.rst:182 msgid "name with which this code object was defined" msgstr "" -#: ../../library/inspect.rst:179 +#: ../../library/inspect.rst:185 msgid "co_names" msgstr "" -#: ../../library/inspect.rst:179 +#: ../../library/inspect.rst:185 msgid "tuple of names of local variables" msgstr "" -#: ../../library/inspect.rst:182 +#: ../../library/inspect.rst:188 msgid "co_nlocals" msgstr "" -#: ../../library/inspect.rst:182 +#: ../../library/inspect.rst:188 msgid "number of local variables" msgstr "" -#: ../../library/inspect.rst:184 +#: ../../library/inspect.rst:190 msgid "co_stacksize" msgstr "" -#: ../../library/inspect.rst:184 +#: ../../library/inspect.rst:190 msgid "virtual machine stack space required" msgstr "" -#: ../../library/inspect.rst:187 +#: ../../library/inspect.rst:193 msgid "co_varnames" msgstr "" -#: ../../library/inspect.rst:187 +#: ../../library/inspect.rst:193 msgid "tuple of names of arguments and local variables" msgstr "" -#: ../../library/inspect.rst:191 +#: ../../library/inspect.rst:197 msgid "generator" msgstr "gerador" -#: ../../library/inspect.rst:191 ../../library/inspect.rst:205 +#: ../../library/inspect.rst:197 ../../library/inspect.rst:211 msgid "name" msgstr "" -#: ../../library/inspect.rst:195 +#: ../../library/inspect.rst:201 msgid "gi_frame" msgstr "" -#: ../../library/inspect.rst:197 +#: ../../library/inspect.rst:203 msgid "gi_running" msgstr "" -#: ../../library/inspect.rst:197 +#: ../../library/inspect.rst:203 msgid "is the generator running?" msgstr "" -#: ../../library/inspect.rst:199 +#: ../../library/inspect.rst:205 msgid "gi_code" msgstr "" -#: ../../library/inspect.rst:201 +#: ../../library/inspect.rst:207 msgid "gi_yieldfrom" msgstr "" -#: ../../library/inspect.rst:201 +#: ../../library/inspect.rst:207 msgid "object being iterated by ``yield from``, or ``None``" msgstr "" -#: ../../library/inspect.rst:205 +#: ../../library/inspect.rst:211 msgid "coroutine" msgstr "co-rotina" -#: ../../library/inspect.rst:209 +#: ../../library/inspect.rst:215 msgid "cr_await" msgstr "" -#: ../../library/inspect.rst:209 +#: ../../library/inspect.rst:215 msgid "object being awaited on, or ``None``" msgstr "" -#: ../../library/inspect.rst:212 +#: ../../library/inspect.rst:218 msgid "cr_frame" msgstr "" -#: ../../library/inspect.rst:214 +#: ../../library/inspect.rst:220 msgid "cr_running" msgstr "" -#: ../../library/inspect.rst:214 +#: ../../library/inspect.rst:220 msgid "is the coroutine running?" msgstr "" -#: ../../library/inspect.rst:216 +#: ../../library/inspect.rst:222 msgid "cr_code" msgstr "" -#: ../../library/inspect.rst:218 +#: ../../library/inspect.rst:224 msgid "cr_origin" msgstr "" -#: ../../library/inspect.rst:218 +#: ../../library/inspect.rst:224 msgid "where coroutine was created, or ``None``. See |coroutine-origin-link|" msgstr "" -#: ../../library/inspect.rst:222 +#: ../../library/inspect.rst:228 msgid "builtin" msgstr "" -#: ../../library/inspect.rst:224 +#: ../../library/inspect.rst:230 msgid "original name of this function or method" msgstr "" -#: ../../library/inspect.rst:229 +#: ../../library/inspect.rst:235 msgid "instance to which a method is bound, or ``None``" msgstr "" -#: ../../library/inspect.rst:236 +#: ../../library/inspect.rst:242 msgid "Add ``__qualname__`` and ``gi_yieldfrom`` attributes to generators." msgstr "" -#: ../../library/inspect.rst:238 +#: ../../library/inspect.rst:244 msgid "" "The ``__name__`` attribute of generators is now set from the function name, " "instead of the code name, and it can now be modified." msgstr "" -#: ../../library/inspect.rst:243 +#: ../../library/inspect.rst:249 msgid "Add ``cr_origin`` attribute to coroutines." msgstr "" -#: ../../library/inspect.rst:247 +#: ../../library/inspect.rst:253 msgid "" "Return all the members of an object in a list of (name, value) pairs sorted " -"by name. If the optional *predicate* argument is supplied, only members for" -" which the predicate returns a true value are included." +"by name. If the optional *predicate* argument is supplied, only members for " +"which the predicate returns a true value are included." msgstr "" -#: ../../library/inspect.rst:253 +#: ../../library/inspect.rst:259 msgid "" ":func:`getmembers` will only return class attributes defined in the " -"metaclass when the argument is a class and those attributes have been listed" -" in the metaclass' custom :meth:`__dir__`." +"metaclass when the argument is a class and those attributes have been listed " +"in the metaclass' custom :meth:`__dir__`." msgstr "" -#: ../../library/inspect.rst:260 +#: ../../library/inspect.rst:266 msgid "" "Return the name of the module named by the file *path*, without including " "the names of enclosing packages. The file extension is checked against all " @@ -551,184 +561,185 @@ msgid "" "``None`` is returned." msgstr "" -#: ../../library/inspect.rst:266 +#: ../../library/inspect.rst:272 msgid "" "Note that this function *only* returns a meaningful name for actual Python " "modules - paths that potentially refer to Python packages will still return " "``None``." msgstr "" -#: ../../library/inspect.rst:270 +#: ../../library/inspect.rst:276 msgid "The function is based directly on :mod:`importlib`." msgstr "" -#: ../../library/inspect.rst:276 -msgid "Return true if the object is a module." +#: ../../library/inspect.rst:282 +msgid "Return ``True`` if the object is a module." msgstr "" -#: ../../library/inspect.rst:281 +#: ../../library/inspect.rst:287 msgid "" -"Return true if the object is a class, whether built-in or created in Python " -"code." +"Return ``True`` if the object is a class, whether built-in or created in " +"Python code." msgstr "" -#: ../../library/inspect.rst:287 -msgid "Return true if the object is a bound method written in Python." +#: ../../library/inspect.rst:293 +msgid "Return ``True`` if the object is a bound method written in Python." msgstr "" -#: ../../library/inspect.rst:292 +#: ../../library/inspect.rst:298 msgid "" -"Return true if the object is a Python function, which includes functions " +"Return ``True`` if the object is a Python function, which includes functions " "created by a :term:`lambda` expression." msgstr "" -#: ../../library/inspect.rst:298 -msgid "Return true if the object is a Python generator function." +#: ../../library/inspect.rst:304 +msgid "Return ``True`` if the object is a Python generator function." msgstr "" -#: ../../library/inspect.rst:303 -msgid "Return true if the object is a generator." +#: ../../library/inspect.rst:309 +msgid "Return ``True`` if the object is a generator." msgstr "" -#: ../../library/inspect.rst:308 +#: ../../library/inspect.rst:314 msgid "" -"Return true if the object is a :term:`coroutine function` (a function " +"Return ``True`` if the object is a :term:`coroutine function` (a function " "defined with an :keyword:`async def` syntax)." msgstr "" -#: ../../library/inspect.rst:316 +#: ../../library/inspect.rst:322 msgid "" -"Return true if the object is a :term:`coroutine` created by an " -":keyword:`async def` function." +"Return ``True`` if the object is a :term:`coroutine` created by an :keyword:" +"`async def` function." msgstr "" -#: ../../library/inspect.rst:324 -msgid "Return true if the object can be used in :keyword:`await` expression." +#: ../../library/inspect.rst:330 +msgid "" +"Return ``True`` if the object can be used in :keyword:`await` expression." msgstr "" -#: ../../library/inspect.rst:326 +#: ../../library/inspect.rst:332 msgid "" "Can also be used to distinguish generator-based coroutines from regular " "generators::" msgstr "" -#: ../../library/inspect.rst:343 +#: ../../library/inspect.rst:349 msgid "" -"Return true if the object is an :term:`asynchronous generator` function, for" -" example::" +"Return ``True`` if the object is an :term:`asynchronous generator` function, " +"for example::" msgstr "" -#: ../../library/inspect.rst:357 +#: ../../library/inspect.rst:363 msgid "" -"Return true if the object is an :term:`asynchronous generator iterator` " +"Return ``True`` if the object is an :term:`asynchronous generator iterator` " "created by an :term:`asynchronous generator` function." msgstr "" -#: ../../library/inspect.rst:364 -msgid "Return true if the object is a traceback." +#: ../../library/inspect.rst:370 +msgid "Return ``True`` if the object is a traceback." msgstr "" -#: ../../library/inspect.rst:369 -msgid "Return true if the object is a frame." +#: ../../library/inspect.rst:375 +msgid "Return ``True`` if the object is a frame." msgstr "" -#: ../../library/inspect.rst:374 -msgid "Return true if the object is a code." +#: ../../library/inspect.rst:380 +msgid "Return ``True`` if the object is a code." msgstr "" -#: ../../library/inspect.rst:379 +#: ../../library/inspect.rst:385 msgid "" -"Return true if the object is a built-in function or a bound built-in method." +"Return ``True`` if the object is a built-in function or a bound built-in " +"method." msgstr "" -#: ../../library/inspect.rst:384 +#: ../../library/inspect.rst:390 msgid "" -"Return true if the object is a user-defined or built-in function or method." +"Return ``True`` if the object is a user-defined or built-in function or " +"method." msgstr "" -#: ../../library/inspect.rst:389 -msgid "Return true if the object is an abstract base class." +#: ../../library/inspect.rst:395 +msgid "Return ``True`` if the object is an abstract base class." msgstr "" -#: ../../library/inspect.rst:394 +#: ../../library/inspect.rst:400 msgid "" -"Return true if the object is a method descriptor, but not if " -":func:`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin` " -"are true." +"Return ``True`` if the object is a method descriptor, but not if :func:" +"`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin` are " +"true." msgstr "" -#: ../../library/inspect.rst:398 +#: ../../library/inspect.rst:404 msgid "" "This, for example, is true of ``int.__add__``. An object passing this test " "has a :meth:`~object.__get__` method but not a :meth:`~object.__set__` " -"method, but beyond that the set of attributes varies. A " -":attr:`~definition.__name__` attribute is usually sensible, and " -":attr:`__doc__` often is." +"method, but beyond that the set of attributes varies. A :attr:`~definition." +"__name__` attribute is usually sensible, and :attr:`__doc__` often is." msgstr "" -#: ../../library/inspect.rst:404 +#: ../../library/inspect.rst:410 msgid "" "Methods implemented via descriptors that also pass one of the other tests " -"return false from the :func:`ismethoddescriptor` test, simply because the " -"other tests promise more -- you can, e.g., count on having the " -":attr:`__func__` attribute (etc) when an object passes :func:`ismethod`." +"return ``False`` from the :func:`ismethoddescriptor` test, simply because " +"the other tests promise more -- you can, e.g., count on having the :attr:" +"`__func__` attribute (etc) when an object passes :func:`ismethod`." msgstr "" -#: ../../library/inspect.rst:412 -msgid "Return true if the object is a data descriptor." +#: ../../library/inspect.rst:418 +msgid "Return ``True`` if the object is a data descriptor." msgstr "" -#: ../../library/inspect.rst:414 +#: ../../library/inspect.rst:420 msgid "" -"Data descriptors have both a :attr:`~object.__get__` and a " -":attr:`~object.__set__` method. Examples are properties (defined in Python)," -" getsets, and members. The latter two are defined in C and there are more " -"specific tests available for those types, which is robust across Python " -"implementations. Typically, data descriptors will also have " -":attr:`~definition.__name__` and :attr:`__doc__` attributes (properties, " -"getsets, and members have both of these attributes), but this is not " -"guaranteed." +"Data descriptors have both a :attr:`~object.__get__` and a :attr:`~object." +"__set__` method. Examples are properties (defined in Python), getsets, and " +"members. The latter two are defined in C and there are more specific tests " +"available for those types, which is robust across Python implementations. " +"Typically, data descriptors will also have :attr:`~definition.__name__` and :" +"attr:`__doc__` attributes (properties, getsets, and members have both of " +"these attributes), but this is not guaranteed." msgstr "" -#: ../../library/inspect.rst:425 -msgid "Return true if the object is a getset descriptor." +#: ../../library/inspect.rst:431 +msgid "Return ``True`` if the object is a getset descriptor." msgstr "" -#: ../../library/inspect.rst:429 +#: ../../library/inspect.rst:435 msgid "" -"getsets are attributes defined in extension modules via " -":c:type:`PyGetSetDef` structures. For Python implementations without such " -"types, this method will always return ``False``." +"getsets are attributes defined in extension modules via :c:type:" +"`PyGetSetDef` structures. For Python implementations without such types, " +"this method will always return ``False``." msgstr "" -#: ../../library/inspect.rst:436 -msgid "Return true if the object is a member descriptor." +#: ../../library/inspect.rst:442 +msgid "Return ``True`` if the object is a member descriptor." msgstr "" -#: ../../library/inspect.rst:440 +#: ../../library/inspect.rst:446 msgid "" -"Member descriptors are attributes defined in extension modules via " -":c:type:`PyMemberDef` structures. For Python implementations without such " -"types, this method will always return ``False``." +"Member descriptors are attributes defined in extension modules via :c:type:" +"`PyMemberDef` structures. For Python implementations without such types, " +"this method will always return ``False``." msgstr "" -#: ../../library/inspect.rst:448 +#: ../../library/inspect.rst:454 msgid "Retrieving source code" msgstr "" -#: ../../library/inspect.rst:452 +#: ../../library/inspect.rst:458 msgid "" -"Get the documentation string for an object, cleaned up with " -":func:`cleandoc`. If the documentation string for an object is not provided " -"and the object is a class, a method, a property or a descriptor, retrieve " -"the documentation string from the inheritance hierarchy." +"Get the documentation string for an object, cleaned up with :func:" +"`cleandoc`. If the documentation string for an object is not provided and " +"the object is a class, a method, a property or a descriptor, retrieve the " +"documentation string from the inheritance hierarchy." msgstr "" -#: ../../library/inspect.rst:457 +#: ../../library/inspect.rst:463 msgid "Documentation strings are now inherited if not overridden." msgstr "" -#: ../../library/inspect.rst:463 +#: ../../library/inspect.rst:469 msgid "" "Return in a single string any lines of comments immediately preceding the " "object's source code (for a class, function, or method), or at the top of " @@ -737,41 +748,41 @@ msgid "" "been defined in C or the interactive shell." msgstr "" -#: ../../library/inspect.rst:472 +#: ../../library/inspect.rst:478 msgid "" -"Return the name of the (text or binary) file in which an object was defined." -" This will fail with a :exc:`TypeError` if the object is a built-in module, " +"Return the name of the (text or binary) file in which an object was defined. " +"This will fail with a :exc:`TypeError` if the object is a built-in module, " "class, or function." msgstr "" -#: ../../library/inspect.rst:479 +#: ../../library/inspect.rst:485 msgid "Try to guess which module an object was defined in." msgstr "" -#: ../../library/inspect.rst:484 +#: ../../library/inspect.rst:490 msgid "" "Return the name of the Python source file in which an object was defined. " "This will fail with a :exc:`TypeError` if the object is a built-in module, " "class, or function." msgstr "" -#: ../../library/inspect.rst:491 +#: ../../library/inspect.rst:497 msgid "" "Return a list of source lines and starting line number for an object. The " -"argument may be a module, class, method, function, traceback, frame, or code" -" object. The source code is returned as a list of the lines corresponding " -"to the object and the line number indicates where in the original source " -"file the first line of code was found. An :exc:`OSError` is raised if the " -"source code cannot be retrieved." +"argument may be a module, class, method, function, traceback, frame, or code " +"object. The source code is returned as a list of the lines corresponding to " +"the object and the line number indicates where in the original source file " +"the first line of code was found. An :exc:`OSError` is raised if the source " +"code cannot be retrieved." msgstr "" -#: ../../library/inspect.rst:498 ../../library/inspect.rst:510 +#: ../../library/inspect.rst:504 ../../library/inspect.rst:516 msgid "" ":exc:`OSError` is raised instead of :exc:`IOError`, now an alias of the " "former." msgstr "" -#: ../../library/inspect.rst:505 +#: ../../library/inspect.rst:511 msgid "" "Return the text of the source code for an object. The argument may be a " "module, class, method, function, traceback, frame, or code object. The " @@ -779,13 +790,13 @@ msgid "" "the source code cannot be retrieved." msgstr "" -#: ../../library/inspect.rst:517 +#: ../../library/inspect.rst:523 msgid "" "Clean up indentation from docstrings that are indented to line up with " "blocks of code." msgstr "" -#: ../../library/inspect.rst:520 +#: ../../library/inspect.rst:526 msgid "" "All leading whitespace is removed from the first line. Any leading " "whitespace that can be uniformly removed from the second line onwards is " @@ -793,62 +804,62 @@ msgid "" "Also, all tabs are expanded to spaces." msgstr "" -#: ../../library/inspect.rst:529 +#: ../../library/inspect.rst:535 msgid "Introspecting callables with the Signature object" msgstr "" -#: ../../library/inspect.rst:533 +#: ../../library/inspect.rst:539 msgid "" "The Signature object represents the call signature of a callable object and " -"its return annotation. To retrieve a Signature object, use the " -":func:`signature` function." +"its return annotation. To retrieve a Signature object, use the :func:" +"`signature` function." msgstr "" -#: ../../library/inspect.rst:539 +#: ../../library/inspect.rst:545 msgid "Return a :class:`Signature` object for the given ``callable``::" msgstr "" -#: ../../library/inspect.rst:556 +#: ../../library/inspect.rst:562 msgid "" "Accepts a wide range of Python callables, from plain functions and classes " "to :func:`functools.partial` objects." msgstr "" -#: ../../library/inspect.rst:559 +#: ../../library/inspect.rst:565 msgid "" -"Raises :exc:`ValueError` if no signature can be provided, and " -":exc:`TypeError` if that type of object is not supported." +"Raises :exc:`ValueError` if no signature can be provided, and :exc:" +"`TypeError` if that type of object is not supported." msgstr "" -#: ../../library/inspect.rst:562 +#: ../../library/inspect.rst:568 msgid "" "A slash(/) in the signature of a function denotes that the parameters prior " "to it are positional-only. For more info, see :ref:`the FAQ entry on " "positional-only parameters `." msgstr "" -#: ../../library/inspect.rst:566 +#: ../../library/inspect.rst:572 msgid "" "``follow_wrapped`` parameter. Pass ``False`` to get a signature of " "``callable`` specifically (``callable.__wrapped__`` will not be used to " "unwrap decorated callables.)" msgstr "" -#: ../../library/inspect.rst:573 +#: ../../library/inspect.rst:579 msgid "" "Some callables may not be introspectable in certain implementations of " "Python. For example, in CPython, some built-in functions defined in C " "provide no metadata about their arguments." msgstr "" -#: ../../library/inspect.rst:580 +#: ../../library/inspect.rst:586 msgid "" "A Signature object represents the call signature of a function and its " -"return annotation. For each parameter accepted by the function it stores a " -":class:`Parameter` object in its :attr:`parameters` collection." +"return annotation. For each parameter accepted by the function it stores a :" +"class:`Parameter` object in its :attr:`parameters` collection." msgstr "" -#: ../../library/inspect.rst:584 +#: ../../library/inspect.rst:590 msgid "" "The optional *parameters* argument is a sequence of :class:`Parameter` " "objects, which is validated to check that there are no parameters with " @@ -857,203 +868,201 @@ msgid "" "defaults follow parameters without defaults." msgstr "" -#: ../../library/inspect.rst:590 +#: ../../library/inspect.rst:596 msgid "" "The optional *return_annotation* argument, can be an arbitrary Python " "object, is the \"return\" annotation of the callable." msgstr "" -#: ../../library/inspect.rst:593 +#: ../../library/inspect.rst:599 msgid "" "Signature objects are *immutable*. Use :meth:`Signature.replace` to make a " "modified copy." msgstr "" -#: ../../library/inspect.rst:596 +#: ../../library/inspect.rst:602 msgid "Signature objects are picklable and hashable." msgstr "" -#: ../../library/inspect.rst:601 -msgid "" -"A special class-level marker to specify absence of a return annotation." +#: ../../library/inspect.rst:607 +msgid "A special class-level marker to specify absence of a return annotation." msgstr "" -#: ../../library/inspect.rst:605 +#: ../../library/inspect.rst:611 msgid "" -"An ordered mapping of parameters' names to the corresponding " -":class:`Parameter` objects. Parameters appear in strict definition order, " +"An ordered mapping of parameters' names to the corresponding :class:" +"`Parameter` objects. Parameters appear in strict definition order, " "including keyword-only parameters." msgstr "" -#: ../../library/inspect.rst:609 ../../library/inspect.rst:931 +#: ../../library/inspect.rst:615 ../../library/inspect.rst:937 msgid "" -"Python only explicitly guaranteed that it preserved the declaration order of" -" keyword-only parameters as of version 3.7, although in practice this order " +"Python only explicitly guaranteed that it preserved the declaration order of " +"keyword-only parameters as of version 3.7, although in practice this order " "had always been preserved in Python 3." msgstr "" -#: ../../library/inspect.rst:616 +#: ../../library/inspect.rst:622 msgid "" -"The \"return\" annotation for the callable. If the callable has no " -"\"return\" annotation, this attribute is set to :attr:`Signature.empty`." +"The \"return\" annotation for the callable. If the callable has no \"return" +"\" annotation, this attribute is set to :attr:`Signature.empty`." msgstr "" -#: ../../library/inspect.rst:621 +#: ../../library/inspect.rst:627 msgid "" "Create a mapping from positional and keyword arguments to parameters. " "Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the " "signature, or raises a :exc:`TypeError`." msgstr "" -#: ../../library/inspect.rst:627 +#: ../../library/inspect.rst:633 msgid "" "Works the same way as :meth:`Signature.bind`, but allows the omission of " -"some required arguments (mimics :func:`functools.partial` behavior.) Returns" -" :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed " +"some required arguments (mimics :func:`functools.partial` behavior.) " +"Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed " "arguments do not match the signature." msgstr "" -#: ../../library/inspect.rst:634 +#: ../../library/inspect.rst:640 msgid "" "Create a new Signature instance based on the instance replace was invoked " "on. It is possible to pass different ``parameters`` and/or " "``return_annotation`` to override the corresponding properties of the base " -"signature. To remove return_annotation from the copied Signature, pass in " -":attr:`Signature.empty`." +"signature. To remove return_annotation from the copied Signature, pass in :" +"attr:`Signature.empty`." msgstr "" -#: ../../library/inspect.rst:651 +#: ../../library/inspect.rst:657 msgid "" "Return a :class:`Signature` (or its subclass) object for a given callable " "``obj``. Pass ``follow_wrapped=False`` to get a signature of ``obj`` " "without unwrapping its ``__wrapped__`` chain." msgstr "" -#: ../../library/inspect.rst:655 +#: ../../library/inspect.rst:661 msgid "This method simplifies subclassing of :class:`Signature`::" msgstr "" -#: ../../library/inspect.rst:667 +#: ../../library/inspect.rst:673 msgid "" -"Parameter objects are *immutable*. Instead of modifying a Parameter object," -" you can use :meth:`Parameter.replace` to create a modified copy." +"Parameter objects are *immutable*. Instead of modifying a Parameter object, " +"you can use :meth:`Parameter.replace` to create a modified copy." msgstr "" -#: ../../library/inspect.rst:670 +#: ../../library/inspect.rst:676 msgid "Parameter objects are picklable and hashable." msgstr "" -#: ../../library/inspect.rst:675 +#: ../../library/inspect.rst:681 msgid "" "A special class-level marker to specify absence of default values and " "annotations." msgstr "" -#: ../../library/inspect.rst:680 +#: ../../library/inspect.rst:686 msgid "" "The name of the parameter as a string. The name must be a valid Python " "identifier." msgstr "" -#: ../../library/inspect.rst:685 +#: ../../library/inspect.rst:691 msgid "" "CPython generates implicit parameter names of the form ``.0`` on the code " "objects used to implement comprehensions and generator expressions." msgstr "" -#: ../../library/inspect.rst:689 +#: ../../library/inspect.rst:695 msgid "" -"These parameter names are exposed by this module as names like " -"``implicit0``." +"These parameter names are exposed by this module as names like ``implicit0``." msgstr "" -#: ../../library/inspect.rst:695 +#: ../../library/inspect.rst:701 msgid "" -"The default value for the parameter. If the parameter has no default value," -" this attribute is set to :attr:`Parameter.empty`." +"The default value for the parameter. If the parameter has no default value, " +"this attribute is set to :attr:`Parameter.empty`." msgstr "" -#: ../../library/inspect.rst:700 +#: ../../library/inspect.rst:706 msgid "" "The annotation for the parameter. If the parameter has no annotation, this " "attribute is set to :attr:`Parameter.empty`." msgstr "" -#: ../../library/inspect.rst:705 +#: ../../library/inspect.rst:711 msgid "" "Describes how argument values are bound to the parameter. Possible values " "(accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``):" msgstr "" -#: ../../library/inspect.rst:711 +#: ../../library/inspect.rst:717 msgid "Name" msgstr "Nome" -#: ../../library/inspect.rst:711 +#: ../../library/inspect.rst:717 msgid "Meaning" msgstr "Significado" -#: ../../library/inspect.rst:713 +#: ../../library/inspect.rst:719 msgid "*POSITIONAL_ONLY*" msgstr "" -#: ../../library/inspect.rst:713 +#: ../../library/inspect.rst:719 msgid "Value must be supplied as a positional argument." msgstr "" -#: ../../library/inspect.rst:716 +#: ../../library/inspect.rst:722 msgid "" "Python has no explicit syntax for defining positional-only parameters, but " "many built-in and extension module functions (especially those that accept " "only one or two parameters) accept them." msgstr "" -#: ../../library/inspect.rst:722 +#: ../../library/inspect.rst:728 msgid "*POSITIONAL_OR_KEYWORD*" msgstr "" -#: ../../library/inspect.rst:722 +#: ../../library/inspect.rst:728 msgid "" "Value may be supplied as either a keyword or positional argument (this is " "the standard binding behaviour for functions implemented in Python.)" msgstr "" -#: ../../library/inspect.rst:727 +#: ../../library/inspect.rst:733 msgid "*VAR_POSITIONAL*" msgstr "" -#: ../../library/inspect.rst:727 +#: ../../library/inspect.rst:733 msgid "" "A tuple of positional arguments that aren't bound to any other parameter. " "This corresponds to a ``*args`` parameter in a Python function definition." msgstr "" -#: ../../library/inspect.rst:732 +#: ../../library/inspect.rst:738 msgid "*KEYWORD_ONLY*" msgstr "" -#: ../../library/inspect.rst:732 +#: ../../library/inspect.rst:738 msgid "" "Value must be supplied as a keyword argument. Keyword only parameters are " "those which appear after a ``*`` or ``*args`` entry in a Python function " "definition." msgstr "" -#: ../../library/inspect.rst:737 +#: ../../library/inspect.rst:743 msgid "*VAR_KEYWORD*" msgstr "" -#: ../../library/inspect.rst:737 +#: ../../library/inspect.rst:743 msgid "" "A dict of keyword arguments that aren't bound to any other parameter. This " "corresponds to a ``**kwargs`` parameter in a Python function definition." msgstr "" -#: ../../library/inspect.rst:743 +#: ../../library/inspect.rst:749 msgid "Example: print all keyword-only arguments without default values::" msgstr "" -#: ../../library/inspect.rst:757 +#: ../../library/inspect.rst:763 msgid "" "Create a new Parameter instance based on the instance replaced was invoked " "on. To override a :class:`Parameter` attribute, pass the corresponding " @@ -1061,89 +1070,89 @@ msgid "" "pass :attr:`Parameter.empty`." msgstr "" -#: ../../library/inspect.rst:775 +#: ../../library/inspect.rst:781 msgid "" "In Python 3.3 Parameter objects were allowed to have ``name`` set to " -"``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer" -" permitted." +"``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer " +"permitted." msgstr "" -#: ../../library/inspect.rst:782 +#: ../../library/inspect.rst:788 msgid "" "Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call. " "Holds the mapping of arguments to the function's parameters." msgstr "" -#: ../../library/inspect.rst:787 +#: ../../library/inspect.rst:793 msgid "" "An ordered, mutable mapping (:class:`collections.OrderedDict`) of " "parameters' names to arguments' values. Contains only explicitly bound " -"arguments. Changes in :attr:`arguments` will reflect in :attr:`args` and " -":attr:`kwargs`." +"arguments. Changes in :attr:`arguments` will reflect in :attr:`args` and :" +"attr:`kwargs`." msgstr "" -#: ../../library/inspect.rst:792 +#: ../../library/inspect.rst:798 msgid "" "Should be used in conjunction with :attr:`Signature.parameters` for any " "argument processing purposes." msgstr "" -#: ../../library/inspect.rst:797 +#: ../../library/inspect.rst:803 msgid "" -"Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial`" -" relied on a default value are skipped. However, if needed, use " -":meth:`BoundArguments.apply_defaults` to add them." +"Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` " +"relied on a default value are skipped. However, if needed, use :meth:" +"`BoundArguments.apply_defaults` to add them." msgstr "" -#: ../../library/inspect.rst:804 +#: ../../library/inspect.rst:810 msgid "" -"A tuple of positional arguments values. Dynamically computed from the " -":attr:`arguments` attribute." +"A tuple of positional arguments values. Dynamically computed from the :attr:" +"`arguments` attribute." msgstr "" -#: ../../library/inspect.rst:809 +#: ../../library/inspect.rst:815 msgid "" -"A dict of keyword arguments values. Dynamically computed from the " -":attr:`arguments` attribute." +"A dict of keyword arguments values. Dynamically computed from the :attr:" +"`arguments` attribute." msgstr "" -#: ../../library/inspect.rst:814 +#: ../../library/inspect.rst:820 msgid "A reference to the parent :class:`Signature` object." msgstr "" -#: ../../library/inspect.rst:818 +#: ../../library/inspect.rst:824 msgid "Set default values for missing arguments." msgstr "" -#: ../../library/inspect.rst:820 +#: ../../library/inspect.rst:826 msgid "" "For variable-positional arguments (``*args``) the default is an empty tuple." msgstr "" -#: ../../library/inspect.rst:823 +#: ../../library/inspect.rst:829 msgid "" "For variable-keyword arguments (``**kwargs``) the default is an empty dict." msgstr "" -#: ../../library/inspect.rst:836 +#: ../../library/inspect.rst:842 msgid "" "The :attr:`args` and :attr:`kwargs` properties can be used to invoke " "functions::" msgstr "" -#: ../../library/inspect.rst:849 +#: ../../library/inspect.rst:855 msgid ":pep:`362` - Function Signature Object." msgstr "" -#: ../../library/inspect.rst:850 +#: ../../library/inspect.rst:856 msgid "The detailed specification, implementation details and examples." msgstr "" -#: ../../library/inspect.rst:856 +#: ../../library/inspect.rst:862 msgid "Classes and functions" msgstr "Classes e funções" -#: ../../library/inspect.rst:860 +#: ../../library/inspect.rst:866 msgid "" "Arrange the given list of classes into a hierarchy of nested lists. Where a " "nested list appears, it contains classes derived from the class whose entry " @@ -1154,134 +1163,133 @@ msgid "" "will appear multiple times." msgstr "" -#: ../../library/inspect.rst:871 +#: ../../library/inspect.rst:877 msgid "" -"Get the names and default values of a Python function's parameters. A " -":term:`named tuple` ``ArgSpec(args, varargs, keywords, defaults)`` is " -"returned. *args* is a list of the parameter names. *varargs* and *keywords* " -"are the names of the ``*`` and ``**`` parameters or ``None``. *defaults* is " -"a tuple of default argument values or ``None`` if there are no default " -"arguments; if this tuple has *n* elements, they correspond to the last *n* " -"elements listed in *args*." +"Get the names and default values of a Python function's parameters. A :term:" +"`named tuple` ``ArgSpec(args, varargs, keywords, defaults)`` is returned. " +"*args* is a list of the parameter names. *varargs* and *keywords* are the " +"names of the ``*`` and ``**`` parameters or ``None``. *defaults* is a tuple " +"of default argument values or ``None`` if there are no default arguments; if " +"this tuple has *n* elements, they correspond to the last *n* elements listed " +"in *args*." msgstr "" -#: ../../library/inspect.rst:879 +#: ../../library/inspect.rst:885 msgid "" "Use :func:`getfullargspec` for an updated API that is usually a drop-in " "replacement, but also correctly handles function annotations and keyword-" "only parameters." msgstr "" -#: ../../library/inspect.rst:884 +#: ../../library/inspect.rst:890 msgid "" "Alternatively, use :func:`signature` and :ref:`Signature Object `, which provide a more structured introspection API for " "callables." msgstr "" -#: ../../library/inspect.rst:891 +#: ../../library/inspect.rst:897 msgid "" -"Get the names and default values of a Python function's parameters. A " -":term:`named tuple` is returned:" +"Get the names and default values of a Python function's parameters. A :term:" +"`named tuple` is returned:" msgstr "" -#: ../../library/inspect.rst:894 +#: ../../library/inspect.rst:900 msgid "" "``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, " "annotations)``" msgstr "" -#: ../../library/inspect.rst:897 +#: ../../library/inspect.rst:903 msgid "" -"*args* is a list of the positional parameter names. *varargs* is the name of" -" the ``*`` parameter or ``None`` if arbitrary positional arguments are not " +"*args* is a list of the positional parameter names. *varargs* is the name of " +"the ``*`` parameter or ``None`` if arbitrary positional arguments are not " "accepted. *varkw* is the name of the ``**`` parameter or ``None`` if " "arbitrary keyword arguments are not accepted. *defaults* is an *n*-tuple of " -"default argument values corresponding to the last *n* positional parameters," -" or ``None`` if there are no such defaults defined. *kwonlyargs* is a list " -"of keyword-only parameter names in declaration order. *kwonlydefaults* is a " +"default argument values corresponding to the last *n* positional parameters, " +"or ``None`` if there are no such defaults defined. *kwonlyargs* is a list of " +"keyword-only parameter names in declaration order. *kwonlydefaults* is a " "dictionary mapping parameter names from *kwonlyargs* to the default values " "used if no argument is supplied. *annotations* is a dictionary mapping " "parameter names to annotations. The special key ``\"return\"`` is used to " "report the function return value annotation (if any)." msgstr "" -#: ../../library/inspect.rst:912 +#: ../../library/inspect.rst:918 msgid "" "Note that :func:`signature` and :ref:`Signature Object ` provide the recommended API for callable introspection, and support" -" additional behaviours (like positional-only arguments) that are sometimes " +"object>` provide the recommended API for callable introspection, and support " +"additional behaviours (like positional-only arguments) that are sometimes " "encountered in extension module APIs. This function is retained primarily " "for use in code that needs to maintain compatibility with the Python 2 " "``inspect`` module API." msgstr "" -#: ../../library/inspect.rst:919 +#: ../../library/inspect.rst:925 msgid "" "This function is now based on :func:`signature`, but still ignores " -"``__wrapped__`` attributes and includes the already bound first parameter in" -" the signature output for bound methods." +"``__wrapped__`` attributes and includes the already bound first parameter in " +"the signature output for bound methods." msgstr "" -#: ../../library/inspect.rst:924 +#: ../../library/inspect.rst:930 msgid "" -"This method was previously documented as deprecated in favour of " -":func:`signature` in Python 3.5, but that decision has been reversed in " -"order to restore a clearly supported standard interface for single-source " -"Python 2/3 code migrating away from the legacy :func:`getargspec` API." +"This method was previously documented as deprecated in favour of :func:" +"`signature` in Python 3.5, but that decision has been reversed in order to " +"restore a clearly supported standard interface for single-source Python 2/3 " +"code migrating away from the legacy :func:`getargspec` API." msgstr "" -#: ../../library/inspect.rst:939 +#: ../../library/inspect.rst:945 msgid "" -"Get information about arguments passed into a particular frame. A " -":term:`named tuple` ``ArgInfo(args, varargs, keywords, locals)`` is " -"returned. *args* is a list of the argument names. *varargs* and *keywords* " -"are the names of the ``*`` and ``**`` arguments or ``None``. *locals* is " -"the locals dictionary of the given frame." +"Get information about arguments passed into a particular frame. A :term:" +"`named tuple` ``ArgInfo(args, varargs, keywords, locals)`` is returned. " +"*args* is a list of the argument names. *varargs* and *keywords* are the " +"names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals " +"dictionary of the given frame." msgstr "" -#: ../../library/inspect.rst:946 ../../library/inspect.rst:983 +#: ../../library/inspect.rst:952 ../../library/inspect.rst:989 msgid "This function was inadvertently marked as deprecated in Python 3.5." msgstr "" -#: ../../library/inspect.rst:951 +#: ../../library/inspect.rst:957 msgid "" -"Format a pretty argument spec from the values returned by " -":func:`getfullargspec`." +"Format a pretty argument spec from the values returned by :func:" +"`getfullargspec`." msgstr "" -#: ../../library/inspect.rst:954 +#: ../../library/inspect.rst:960 msgid "" "The first seven arguments are (``args``, ``varargs``, ``varkw``, " "``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``)." msgstr "" -#: ../../library/inspect.rst:957 +#: ../../library/inspect.rst:963 msgid "" "The other six arguments are functions that are called to turn argument " "names, ``*`` argument name, ``**`` argument name, default values, return " "annotation and individual annotations into strings, respectively." msgstr "" -#: ../../library/inspect.rst:961 +#: ../../library/inspect.rst:967 msgid "For example:" msgstr "Por exemplo:" -#: ../../library/inspect.rst:970 +#: ../../library/inspect.rst:976 msgid "" "Use :func:`signature` and :ref:`Signature Object `, which provide a better introspecting API for callables." msgstr "" -#: ../../library/inspect.rst:978 +#: ../../library/inspect.rst:984 msgid "" -"Format a pretty argument spec from the four values returned by " -":func:`getargvalues`. The format\\* arguments are the corresponding " -"optional formatting functions that are called to turn names and values into " -"strings." +"Format a pretty argument spec from the four values returned by :func:" +"`getargvalues`. The format\\* arguments are the corresponding optional " +"formatting functions that are called to turn names and values into strings." msgstr "" -#: ../../library/inspect.rst:988 +#: ../../library/inspect.rst:994 msgid "" "Return a tuple of class cls's base classes, including cls, in method " "resolution order. No class appears more than once in this tuple. Note that " @@ -1289,7 +1297,7 @@ msgid "" "user-defined metatype is in use, cls will be the first element of the tuple." msgstr "" -#: ../../library/inspect.rst:996 +#: ../../library/inspect.rst:1002 msgid "" "Bind the *args* and *kwds* to the argument names of the Python function or " "method *func*, as if it was called with them. For bound methods, bind also " @@ -1302,66 +1310,66 @@ msgid "" "example::" msgstr "" -#: ../../library/inspect.rst:1019 +#: ../../library/inspect.rst:1025 msgid "Use :meth:`Signature.bind` and :meth:`Signature.bind_partial` instead." msgstr "" -#: ../../library/inspect.rst:1025 +#: ../../library/inspect.rst:1031 msgid "" "Get the mapping of external name references in a Python function or method " "*func* to their current values. A :term:`named tuple` " "``ClosureVars(nonlocals, globals, builtins, unbound)`` is returned. " -"*nonlocals* maps referenced names to lexical closure variables, *globals* to" -" the function's module globals and *builtins* to the builtins visible from " +"*nonlocals* maps referenced names to lexical closure variables, *globals* to " +"the function's module globals and *builtins* to the builtins visible from " "the function body. *unbound* is the set of names referenced in the function " "that could not be resolved at all given the current module globals and " "builtins." msgstr "" -#: ../../library/inspect.rst:1034 +#: ../../library/inspect.rst:1040 msgid "" ":exc:`TypeError` is raised if *func* is not a Python function or method." msgstr "" -#: ../../library/inspect.rst:1041 +#: ../../library/inspect.rst:1047 msgid "" -"Get the object wrapped by *func*. It follows the chain of " -":attr:`__wrapped__` attributes returning the last object in the chain." +"Get the object wrapped by *func*. It follows the chain of :attr:" +"`__wrapped__` attributes returning the last object in the chain." msgstr "" -#: ../../library/inspect.rst:1044 +#: ../../library/inspect.rst:1050 msgid "" "*stop* is an optional callback accepting an object in the wrapper chain as " "its sole argument that allows the unwrapping to be terminated early if the " "callback returns a true value. If the callback never returns a true value, " -"the last object in the chain is returned as usual. For example, " -":func:`signature` uses this to stop unwrapping if any object in the chain " -"has a ``__signature__`` attribute defined." +"the last object in the chain is returned as usual. For example, :func:" +"`signature` uses this to stop unwrapping if any object in the chain has a " +"``__signature__`` attribute defined." msgstr "" -#: ../../library/inspect.rst:1051 +#: ../../library/inspect.rst:1057 msgid ":exc:`ValueError` is raised if a cycle is encountered." msgstr "" -#: ../../library/inspect.rst:1059 +#: ../../library/inspect.rst:1065 msgid "The interpreter stack" msgstr "" -#: ../../library/inspect.rst:1061 +#: ../../library/inspect.rst:1067 msgid "" -"When the following functions return \"frame records,\" each record is a " -":term:`named tuple` ``FrameInfo(frame, filename, lineno, function, " +"When the following functions return \"frame records,\" each record is a :" +"term:`named tuple` ``FrameInfo(frame, filename, lineno, function, " "code_context, index)``. The tuple contains the frame object, the filename, " "the line number of the current line, the function name, a list of lines of " "context from the source code, and the index of the current line within that " "list." msgstr "" -#: ../../library/inspect.rst:1069 +#: ../../library/inspect.rst:1075 msgid "Return a named tuple instead of a tuple." msgstr "" -#: ../../library/inspect.rst:1074 +#: ../../library/inspect.rst:1080 msgid "" "Keeping references to frame objects, as found in the first element of the " "frame records these functions return, can cause your program to create " @@ -1373,51 +1381,50 @@ msgid "" "consumption which occurs." msgstr "" -#: ../../library/inspect.rst:1082 +#: ../../library/inspect.rst:1088 msgid "" "Though the cycle detector will catch these, destruction of the frames (and " -"local variables) can be made deterministic by removing the cycle in a " -":keyword:`finally` clause. This is also important if the cycle detector was" -" disabled when Python was compiled or using :func:`gc.disable`. For " -"example::" +"local variables) can be made deterministic by removing the cycle in a :" +"keyword:`finally` clause. This is also important if the cycle detector was " +"disabled when Python was compiled or using :func:`gc.disable`. For example::" msgstr "" -#: ../../library/inspect.rst:1094 +#: ../../library/inspect.rst:1100 msgid "" "If you want to keep the frame around (for example to print a traceback " -"later), you can also break reference cycles by using the :meth:`frame.clear`" -" method." +"later), you can also break reference cycles by using the :meth:`frame.clear` " +"method." msgstr "" -#: ../../library/inspect.rst:1098 +#: ../../library/inspect.rst:1104 msgid "" "The optional *context* argument supported by most of these functions " "specifies the number of lines of context to return, which are centered " "around the current line." msgstr "" -#: ../../library/inspect.rst:1105 +#: ../../library/inspect.rst:1111 msgid "" "Get information about a frame or traceback object. A :term:`named tuple` " "``Traceback(filename, lineno, function, code_context, index)`` is returned." msgstr "" -#: ../../library/inspect.rst:1111 +#: ../../library/inspect.rst:1117 msgid "" "Get a list of frame records for a frame and all outer frames. These frames " -"represent the calls that lead to the creation of *frame*. The first entry in" -" the returned list represents *frame*; the last entry represents the " +"represent the calls that lead to the creation of *frame*. The first entry in " +"the returned list represents *frame*; the last entry represents the " "outermost call on *frame*'s stack." msgstr "" -#: ../../library/inspect.rst:1116 ../../library/inspect.rst:1129 -#: ../../library/inspect.rst:1153 ../../library/inspect.rst:1166 +#: ../../library/inspect.rst:1122 ../../library/inspect.rst:1135 +#: ../../library/inspect.rst:1159 ../../library/inspect.rst:1172 msgid "" "A list of :term:`named tuples ` ``FrameInfo(frame, filename, " "lineno, function, code_context, index)`` is returned." msgstr "" -#: ../../library/inspect.rst:1124 +#: ../../library/inspect.rst:1130 msgid "" "Get a list of frame records for a traceback's frame and all inner frames. " "These frames represent calls made as a consequence of *frame*. The first " @@ -1425,26 +1432,26 @@ msgid "" "the exception was raised." msgstr "" -#: ../../library/inspect.rst:1137 +#: ../../library/inspect.rst:1143 msgid "Return the frame object for the caller's stack frame." msgstr "" -#: ../../library/inspect.rst:1141 +#: ../../library/inspect.rst:1147 msgid "" -"This function relies on Python stack frame support in the interpreter, which" -" isn't guaranteed to exist in all implementations of Python. If running in " +"This function relies on Python stack frame support in the interpreter, which " +"isn't guaranteed to exist in all implementations of Python. If running in " "an implementation without Python stack frame support this function returns " "``None``." msgstr "" -#: ../../library/inspect.rst:1149 +#: ../../library/inspect.rst:1155 msgid "" "Return a list of frame records for the caller's stack. The first entry in " "the returned list represents the caller; the last entry represents the " "outermost call on the stack." msgstr "" -#: ../../library/inspect.rst:1161 +#: ../../library/inspect.rst:1167 msgid "" "Return a list of frame records for the stack between the current frame and " "the frame in which an exception currently being handled was raised in. The " @@ -1452,64 +1459,64 @@ msgid "" "where the exception was raised." msgstr "" -#: ../../library/inspect.rst:1173 +#: ../../library/inspect.rst:1179 msgid "Fetching attributes statically" msgstr "" -#: ../../library/inspect.rst:1175 +#: ../../library/inspect.rst:1181 msgid "" "Both :func:`getattr` and :func:`hasattr` can trigger code execution when " "fetching or checking for the existence of attributes. Descriptors, like " -"properties, will be invoked and :meth:`__getattr__` and " -":meth:`__getattribute__` may be called." +"properties, will be invoked and :meth:`__getattr__` and :meth:" +"`__getattribute__` may be called." msgstr "" -#: ../../library/inspect.rst:1180 +#: ../../library/inspect.rst:1186 msgid "" "For cases where you want passive introspection, like documentation tools, " -"this can be inconvenient. :func:`getattr_static` has the same signature as " -":func:`getattr` but avoids executing code when it fetches attributes." +"this can be inconvenient. :func:`getattr_static` has the same signature as :" +"func:`getattr` but avoids executing code when it fetches attributes." msgstr "" -#: ../../library/inspect.rst:1186 +#: ../../library/inspect.rst:1192 msgid "" "Retrieve attributes without triggering dynamic lookup via the descriptor " "protocol, :meth:`__getattr__` or :meth:`__getattribute__`." msgstr "" -#: ../../library/inspect.rst:1189 +#: ../../library/inspect.rst:1195 msgid "" "Note: this function may not be able to retrieve all attributes that getattr " -"can fetch (like dynamically created attributes) and may find attributes that" -" getattr can't (like descriptors that raise AttributeError). It can also " +"can fetch (like dynamically created attributes) and may find attributes that " +"getattr can't (like descriptors that raise AttributeError). It can also " "return descriptors objects instead of instance members." msgstr "" -#: ../../library/inspect.rst:1195 +#: ../../library/inspect.rst:1201 msgid "" "If the instance :attr:`~object.__dict__` is shadowed by another member (for " "example a property) then this function will be unable to find instance " "members." msgstr "" -#: ../../library/inspect.rst:1201 +#: ../../library/inspect.rst:1207 msgid "" ":func:`getattr_static` does not resolve descriptors, for example slot " "descriptors or getset descriptors on objects implemented in C. The " "descriptor object is returned instead of the underlying attribute." msgstr "" -#: ../../library/inspect.rst:1205 +#: ../../library/inspect.rst:1211 msgid "" "You can handle these with code like the following. Note that for arbitrary " "getset descriptors invoking these may trigger code execution::" msgstr "" -#: ../../library/inspect.rst:1231 +#: ../../library/inspect.rst:1237 msgid "Current State of Generators and Coroutines" msgstr "" -#: ../../library/inspect.rst:1233 +#: ../../library/inspect.rst:1239 msgid "" "When implementing coroutine schedulers and for other advanced uses of " "generators, it is useful to determine whether a generator is currently " @@ -1518,31 +1525,31 @@ msgid "" "generator to be determined easily." msgstr "" -#: ../../library/inspect.rst:1241 +#: ../../library/inspect.rst:1247 msgid "Get current state of a generator-iterator." msgstr "" -#: ../../library/inspect.rst:1247 ../../library/inspect.rst:1262 +#: ../../library/inspect.rst:1253 ../../library/inspect.rst:1268 msgid "Possible states are:" msgstr "" -#: ../../library/inspect.rst:1244 +#: ../../library/inspect.rst:1250 msgid "GEN_CREATED: Waiting to start execution." msgstr "" -#: ../../library/inspect.rst:1245 +#: ../../library/inspect.rst:1251 msgid "GEN_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../../library/inspect.rst:1246 +#: ../../library/inspect.rst:1252 msgid "GEN_SUSPENDED: Currently suspended at a yield expression." msgstr "" -#: ../../library/inspect.rst:1247 +#: ../../library/inspect.rst:1253 msgid "GEN_CLOSED: Execution has completed." msgstr "" -#: ../../library/inspect.rst:1253 +#: ../../library/inspect.rst:1259 msgid "" "Get current state of a coroutine object. The function is intended to be " "used with coroutine objects created by :keyword:`async def` functions, but " @@ -1550,30 +1557,30 @@ msgid "" "``cr_frame`` attributes." msgstr "" -#: ../../library/inspect.rst:1259 +#: ../../library/inspect.rst:1265 msgid "CORO_CREATED: Waiting to start execution." msgstr "" -#: ../../library/inspect.rst:1260 +#: ../../library/inspect.rst:1266 msgid "CORO_RUNNING: Currently being executed by the interpreter." msgstr "" -#: ../../library/inspect.rst:1261 +#: ../../library/inspect.rst:1267 msgid "CORO_SUSPENDED: Currently suspended at an await expression." msgstr "" -#: ../../library/inspect.rst:1262 +#: ../../library/inspect.rst:1268 msgid "CORO_CLOSED: Execution has completed." msgstr "" -#: ../../library/inspect.rst:1266 +#: ../../library/inspect.rst:1272 msgid "" "The current internal state of the generator can also be queried. This is " "mostly useful for testing purposes, to ensure that internal state is being " "updated as expected:" msgstr "" -#: ../../library/inspect.rst:1272 +#: ../../library/inspect.rst:1278 msgid "" "Get the mapping of live local variables in *generator* to their current " "values. A dictionary is returned that maps from variable names to values. " @@ -1581,14 +1588,14 @@ msgid "" "generator, and all the same caveats apply." msgstr "" -#: ../../library/inspect.rst:1277 +#: ../../library/inspect.rst:1283 msgid "" "If *generator* is a :term:`generator` with no currently associated frame, " "then an empty dictionary is returned. :exc:`TypeError` is raised if " "*generator* is not a Python generator object." msgstr "" -#: ../../library/inspect.rst:1283 +#: ../../library/inspect.rst:1289 msgid "" "This function relies on the generator exposing a Python stack frame for " "introspection, which isn't guaranteed to be the case in all implementations " @@ -1596,76 +1603,76 @@ msgid "" "dictionary." msgstr "" -#: ../../library/inspect.rst:1292 +#: ../../library/inspect.rst:1298 msgid "" -"This function is analogous to :func:`~inspect.getgeneratorlocals`, but works" -" for coroutine objects created by :keyword:`async def` functions." +"This function is analogous to :func:`~inspect.getgeneratorlocals`, but works " +"for coroutine objects created by :keyword:`async def` functions." msgstr "" -#: ../../library/inspect.rst:1301 +#: ../../library/inspect.rst:1307 msgid "Code Objects Bit Flags" msgstr "" -#: ../../library/inspect.rst:1303 +#: ../../library/inspect.rst:1309 msgid "" "Python code objects have a ``co_flags`` attribute, which is a bitmap of the " "following flags:" msgstr "" -#: ../../library/inspect.rst:1308 +#: ../../library/inspect.rst:1314 msgid "The code object is optimized, using fast locals." msgstr "" -#: ../../library/inspect.rst:1312 +#: ../../library/inspect.rst:1318 msgid "" "If set, a new dict will be created for the frame's ``f_locals`` when the " "code object is executed." msgstr "" -#: ../../library/inspect.rst:1317 +#: ../../library/inspect.rst:1323 msgid "The code object has a variable positional parameter (``*args``-like)." msgstr "" -#: ../../library/inspect.rst:1321 +#: ../../library/inspect.rst:1327 msgid "The code object has a variable keyword parameter (``**kwargs``-like)." msgstr "" -#: ../../library/inspect.rst:1325 +#: ../../library/inspect.rst:1331 msgid "The flag is set when the code object is a nested function." msgstr "" -#: ../../library/inspect.rst:1329 +#: ../../library/inspect.rst:1335 msgid "" "The flag is set when the code object is a generator function, i.e. a " "generator object is returned when the code object is executed." msgstr "" -#: ../../library/inspect.rst:1334 +#: ../../library/inspect.rst:1340 msgid "The flag is set if there are no free or cell variables." msgstr "" -#: ../../library/inspect.rst:1338 +#: ../../library/inspect.rst:1344 msgid "" "The flag is set when the code object is a coroutine function. When the code " "object is executed it returns a coroutine object. See :pep:`492` for more " "details." msgstr "" -#: ../../library/inspect.rst:1346 +#: ../../library/inspect.rst:1352 msgid "" "The flag is used to transform generators into generator-based coroutines. " "Generator objects with this flag can be used in ``await`` expression, and " "can ``yield from`` coroutine objects. See :pep:`492` for more details." msgstr "" -#: ../../library/inspect.rst:1355 +#: ../../library/inspect.rst:1361 msgid "" -"The flag is set when the code object is an asynchronous generator function." -" When the code object is executed it returns an asynchronous generator " +"The flag is set when the code object is an asynchronous generator function. " +"When the code object is executed it returns an asynchronous generator " "object. See :pep:`525` for more details." msgstr "" -#: ../../library/inspect.rst:1362 +#: ../../library/inspect.rst:1368 msgid "" "The flags are specific to CPython, and may not be defined in other Python " "implementations. Furthermore, the flags are an implementation detail, and " @@ -1673,24 +1680,24 @@ msgid "" "use public APIs from the :mod:`inspect` module for any introspection needs." msgstr "" -#: ../../library/inspect.rst:1372 +#: ../../library/inspect.rst:1378 msgid "Command Line Interface" -msgstr "" +msgstr "Interface de Linha de Comando" -#: ../../library/inspect.rst:1374 +#: ../../library/inspect.rst:1380 msgid "" "The :mod:`inspect` module also provides a basic introspection capability " "from the command line." msgstr "" -#: ../../library/inspect.rst:1379 +#: ../../library/inspect.rst:1385 msgid "" "By default, accepts the name of a module and prints the source of that " "module. A class or function within the module can be printed instead by " "appended a colon and the qualified name of the target object." msgstr "" -#: ../../library/inspect.rst:1385 +#: ../../library/inspect.rst:1391 msgid "" "Print information about the specified object rather than the source code" msgstr "" diff --git a/library/internet.po b/library/internet.po index f4efc85c2..83cb6cb26 100644 --- a/library/internet.po +++ b/library/internet.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,13 +31,13 @@ msgstr "Protocolos de Internet e Suporte" #: ../../library/internet.rst:14 msgid "" "The modules described in this chapter implement Internet protocols and " -"support for related technology. They are all implemented in Python. Most of" -" these modules require the presence of the system-dependent module " -":mod:`socket`, which is currently supported on most popular platforms. Here" -" is an overview:" +"support for related technology. They are all implemented in Python. Most of " +"these modules require the presence of the system-dependent module :mod:" +"`socket`, which is currently supported on most popular platforms. Here is " +"an overview:" msgstr "" "Os módulos descritos neste capítulo implementam protocolos de Internet e " "suporte para tecnologias relacionadas. Todos eles estão implementados em " "Python. A maioria destes módulos requer a presença do módulo dependente do " -"sistema :mod:`socket`, que é suportado atualmente na maioria das plataformas" -" populares. Aqui temos uma visão geral:" +"sistema :mod:`socket`, que é suportado atualmente na maioria das plataformas " +"populares. Aqui temos uma visão geral:" diff --git a/library/intro.po b/library/intro.po index a9cbf925c..0e8c7ce7a 100644 --- a/library/intro.po +++ b/library/intro.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Ruan Aragão , 2019 # VERUSKA RODRIGUES DA SILVA , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" "Last-Translator: VERUSKA RODRIGUES DA SILVA , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,38 +34,38 @@ msgstr "A \"biblioteca Python\" contém vários tipos diferentes de componentes. #: ../../library/intro.rst:9 msgid "" -"It contains data types that would normally be considered part of the " -"\"core\" of a language, such as numbers and lists. For these types, the " -"Python language core defines the form of literals and places some " -"constraints on their semantics, but does not fully define the semantics. " -"(On the other hand, the language core does define syntactic properties like " -"the spelling and priorities of operators.)" +"It contains data types that would normally be considered part of the \"core" +"\" of a language, such as numbers and lists. For these types, the Python " +"language core defines the form of literals and places some constraints on " +"their semantics, but does not fully define the semantics. (On the other " +"hand, the language core does define syntactic properties like the spelling " +"and priorities of operators.)" msgstr "" "Ela contém tipos de dados que seriam normalmente considerados como parte " "\"central\" de uma linguagem, tais como números e listas. Para esses tipos, " "o núcleo da linguagem Python define a forma de literais e coloca algumas " "restrições em suas semânticas, mas não define completamente as semânticas. " -"(Por outro lado, o núcleo da linguagem define propriedades sintáticas como a" -" ortografia e a prioridade de operadores.)" +"(Por outro lado, o núcleo da linguagem define propriedades sintáticas como a " +"ortografia e a prioridade de operadores.)" #: ../../library/intro.rst:15 msgid "" -"The library also contains built-in functions and exceptions --- objects that" -" can be used by all Python code without the need of an :keyword:`import` " +"The library also contains built-in functions and exceptions --- objects that " +"can be used by all Python code without the need of an :keyword:`import` " "statement. Some of these are defined by the core language, but many are not " "essential for the core semantics and are only described here." msgstr "" "A biblioteca também contém funções e exceções prontas --- objetos que podem " -"ser usados por todo o código Python sem a necessidade de uma instrução " -":keyword:`import`. Alguns desses são definidos pelo núcleo da linguagem, mas" -" muitos não são essenciais para as semânticas principais e são apenas " +"ser usados por todo o código Python sem a necessidade de uma instrução :" +"keyword:`import`. Alguns desses são definidos pelo núcleo da linguagem, mas " +"muitos não são essenciais para as semânticas principais e são apenas " "descritos aqui." #: ../../library/intro.rst:20 msgid "" -"The bulk of the library, however, consists of a collection of modules. There" -" are many ways to dissect this collection. Some modules are written in C " -"and built in to the Python interpreter; others are written in Python and " +"The bulk of the library, however, consists of a collection of modules. There " +"are many ways to dissect this collection. Some modules are written in C and " +"built in to the Python interpreter; others are written in Python and " "imported in source form. Some modules provide interfaces that are highly " "specific to Python, like printing a stack trace; some provide interfaces " "that are specific to particular operating systems, such as access to " @@ -72,12 +73,12 @@ msgid "" "particular application domain, like the World Wide Web. Some modules are " "available in all versions and ports of Python; others are only available " "when the underlying system supports or requires them; yet others are " -"available only when a particular configuration option was chosen at the time" -" when Python was compiled and installed." +"available only when a particular configuration option was chosen at the time " +"when Python was compiled and installed." msgstr "" -"A maior parte da biblioteca, entretanto, consiste em uma coleção de módulos." -" Há muitas formas de dissecar essa coleção. Alguns módulos são escritos em C" -" e colocados no interpretador do Python; outros são escritos em Python e " +"A maior parte da biblioteca, entretanto, consiste em uma coleção de módulos. " +"Há muitas formas de dissecar essa coleção. Alguns módulos são escritos em C " +"e colocados no interpretador do Python; outros são escritos em Python e " "importados na forma de código. Alguns módulos fornecem interfaces que são " "muito específicas do Python, como imprimir um rastreamento de pilha; alguns " "fornecem interfaces que são específicas para um sistema operacional em " @@ -101,14 +102,14 @@ msgstr "" #: ../../library/intro.rst:36 msgid "" -"This means that if you start reading this manual from the start, and skip to" -" the next chapter when you get bored, you will get a reasonable overview of " -"the available modules and application areas that are supported by the Python" -" library. Of course, you don't *have* to read it like a novel --- you can " +"This means that if you start reading this manual from the start, and skip to " +"the next chapter when you get bored, you will get a reasonable overview of " +"the available modules and application areas that are supported by the Python " +"library. Of course, you don't *have* to read it like a novel --- you can " "also browse the table of contents (in front of the manual), or look for a " "specific function, module or term in the index (in the back). And finally, " -"if you enjoy learning about random subjects, you choose a random page number" -" (see module :mod:`random`) and read a section or two. Regardless of the " +"if you enjoy learning about random subjects, you choose a random page number " +"(see module :mod:`random`) and read a section or two. Regardless of the " "order in which you read the sections of this manual, it helps to start with " "chapter :ref:`built-in-funcs`, as the remainder of the manual assumes " "familiarity with this material." @@ -120,10 +121,10 @@ msgstr "" "romance --- você também pode navegar pela tabela de conteúdos (no início do " "manual), ou procurar por uma função, módulo ou termo específicos no índice " "(na parte final). E finalmente, se você gostar de aprender sobre assuntos " -"diversos, você pode escolher um número de página aleatório (veja module " -":mod:`random`) e leia uma seção ou duas. Independente da ordem na qual você " -"leia as seções deste manual, ajuda iniciar pelo capítulo :ref:`built-in-" -"funcs`, já que o resto do manual requer familiaridade com este material." +"diversos, você pode escolher um número de página aleatório (veja module :mod:" +"`random`) e leia uma seção ou duas. Independente da ordem na qual você leia " +"as seções deste manual, ajuda iniciar pelo capítulo :ref:`built-in-funcs`, " +"já que o resto do manual requer familiaridade com este material." #: ../../library/intro.rst:48 msgid "Let the show begin!" @@ -135,9 +136,9 @@ msgstr "Observações sobre disponibilidade" #: ../../library/intro.rst:56 msgid "" -"An \"Availability: Unix\" note means that this function is commonly found on" -" Unix systems. It does not make any claims about its existence on a " -"specific operating system." +"An \"Availability: Unix\" note means that this function is commonly found on " +"Unix systems. It does not make any claims about its existence on a specific " +"operating system." msgstr "" "Uma observação \"Disponibilidade: Unix\" significa que essa função é " "comumente encontrada em sistemas Unix. Não faz nenhuma reivindicação sobre " @@ -145,8 +146,8 @@ msgstr "" #: ../../library/intro.rst:60 msgid "" -"If not separately noted, all functions that claim \"Availability: Unix\" are" -" supported on Mac OS X, which builds on a Unix core." +"If not separately noted, all functions that claim \"Availability: Unix\" are " +"supported on Mac OS X, which builds on a Unix core." msgstr "" "Se não for observado separadamente, todas as funções que afirmam " "\"Disponibilidade: Unix\" são suportadas no Mac OS X, que é baseado em um " diff --git a/library/io.po b/library/io.po index 2c484e846..c81e44b14 100644 --- a/library/io.po +++ b/library/io.po @@ -1,20 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Katyanna Moura , 2019 +# Rafael Fontenelle , 2020 +# Marco Rougeth , 2020 +# Vinícius Muniz de Melo , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-20 11:41+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinícius Muniz de Melo , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +28,7 @@ msgstr "" #: ../../library/io.rst:2 msgid ":mod:`io` --- Core tools for working with streams" -msgstr "" +msgstr ":mod:`io` --- Ferramentas principais para trabalhar com fluxos" #: ../../library/io.rst:15 msgid "**Source code:** :source:`Lib/io.py`" @@ -38,18 +43,18 @@ msgid "" "The :mod:`io` module provides Python's main facilities for dealing with " "various types of I/O. There are three main types of I/O: *text I/O*, " "*binary I/O* and *raw I/O*. These are generic categories, and various " -"backing stores can be used for each of them. A concrete object belonging to" -" any of these categories is called a :term:`file object`. Other common " -"terms are *stream* and *file-like object*." +"backing stores can be used for each of them. A concrete object belonging to " +"any of these categories is called a :term:`file object`. Other common terms " +"are *stream* and *file-like object*." msgstr "" #: ../../library/io.rst:34 msgid "" "Independent of its category, each concrete stream object will also have " -"various capabilities: it can be read-only, write-only, or read-write. It can" -" also allow arbitrary random access (seeking forwards or backwards to any " -"location), or only sequential access (for example in the case of a socket or" -" pipe)." +"various capabilities: it can be read-only, write-only, or read-write. It can " +"also allow arbitrary random access (seeking forwards or backwards to any " +"location), or only sequential access (for example in the case of a socket or " +"pipe)." msgstr "" #: ../../library/io.rst:40 @@ -62,8 +67,8 @@ msgstr "" #: ../../library/io.rst:45 msgid "" -"Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, since" -" :exc:`IOError` is now an alias of :exc:`OSError`." +"Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, " +"since :exc:`IOError` is now an alias of :exc:`OSError`." msgstr "" #: ../../library/io.rst:51 ../../library/io.rst:755 ../../library/io.rst:1010 @@ -73,8 +78,8 @@ msgstr "" #: ../../library/io.rst:53 msgid "" "Text I/O expects and produces :class:`str` objects. This means that " -"whenever the backing store is natively made of bytes (such as in the case of" -" a file), encoding and decoding of data is made transparently as well as " +"whenever the backing store is natively made of bytes (such as in the case of " +"a file), encoding and decoding of data is made transparently as well as " "optional translation of platform-specific newline characters." msgstr "" @@ -91,8 +96,8 @@ msgstr "" #: ../../library/io.rst:67 msgid "" -"The text stream API is described in detail in the documentation of " -":class:`TextIOBase`." +"The text stream API is described in detail in the documentation of :class:" +"`TextIOBase`." msgstr "" #: ../../library/io.rst:72 ../../library/io.rst:998 @@ -103,8 +108,8 @@ msgstr "" msgid "" "Binary I/O (also called *buffered I/O*) expects :term:`bytes-like objects " "` and produces :class:`bytes` objects. No encoding, " -"decoding, or newline translation is performed. This category of streams can" -" be used for all kinds of non-text data, and also when manual control over " +"decoding, or newline translation is performed. This category of streams can " +"be used for all kinds of non-text data, and also when manual control over " "the handling of text data is desired." msgstr "" @@ -121,8 +126,8 @@ msgstr "" #: ../../library/io.rst:89 msgid "" -"The binary stream API is described in detail in the docs of " -":class:`BufferedIOBase`." +"The binary stream API is described in detail in the docs of :class:" +"`BufferedIOBase`." msgstr "" #: ../../library/io.rst:92 @@ -155,8 +160,8 @@ msgstr "" #: ../../library/io.rst:114 msgid "" "An int containing the default buffer size used by the module's buffered I/O " -"classes. :func:`open` uses the file's blksize (as obtained by " -":func:`os.stat`) if possible." +"classes. :func:`open` uses the file's blksize (as obtained by :func:`os." +"stat`) if possible." msgstr "" #: ../../library/io.rst:121 @@ -190,12 +195,12 @@ msgstr "" #: ../../library/io.rst:149 msgid ":mod:`sys`" -msgstr "" +msgstr ":mod:`sys`" #: ../../library/io.rst:149 msgid "" -"contains the standard IO streams: :data:`sys.stdin`, :data:`sys.stdout`, and" -" :data:`sys.stderr`." +"contains the standard IO streams: :data:`sys.stdin`, :data:`sys.stdout`, " +"and :data:`sys.stderr`." msgstr "" #: ../../library/io.rst:154 @@ -214,15 +219,15 @@ msgstr "" msgid "" "The abstract base classes also provide default implementations of some " "methods in order to help implementation of concrete stream classes. For " -"example, :class:`BufferedIOBase` provides unoptimized implementations of " -":meth:`~IOBase.readinto` and :meth:`~IOBase.readline`." +"example, :class:`BufferedIOBase` provides unoptimized implementations of :" +"meth:`~IOBase.readinto` and :meth:`~IOBase.readline`." msgstr "" #: ../../library/io.rst:168 msgid "" -"At the top of the I/O hierarchy is the abstract base class :class:`IOBase`." -" It defines the basic interface to a stream. Note, however, that there is " -"no separation between reading and writing to streams; implementations are " +"At the top of the I/O hierarchy is the abstract base class :class:`IOBase`. " +"It defines the basic interface to a stream. Note, however, that there is no " +"separation between reading and writing to streams; implementations are " "allowed to raise :exc:`UnsupportedOperation` if they do not support a given " "operation." msgstr "" @@ -230,35 +235,33 @@ msgstr "" #: ../../library/io.rst:173 msgid "" "The :class:`RawIOBase` ABC extends :class:`IOBase`. It deals with the " -"reading and writing of bytes to a stream. :class:`FileIO` subclasses " -":class:`RawIOBase` to provide an interface to files in the machine's file " -"system." +"reading and writing of bytes to a stream. :class:`FileIO` subclasses :class:" +"`RawIOBase` to provide an interface to files in the machine's file system." msgstr "" #: ../../library/io.rst:177 msgid "" -"The :class:`BufferedIOBase` ABC deals with buffering on a raw byte stream " -"(:class:`RawIOBase`). Its subclasses, :class:`BufferedWriter`, " -":class:`BufferedReader`, and :class:`BufferedRWPair` buffer streams that are" -" readable, writable, and both readable and writable. " -":class:`BufferedRandom` provides a buffered interface to random access " -"streams. Another :class:`BufferedIOBase` subclass, :class:`BytesIO`, is a " -"stream of in-memory bytes." +"The :class:`BufferedIOBase` ABC deals with buffering on a raw byte stream (:" +"class:`RawIOBase`). Its subclasses, :class:`BufferedWriter`, :class:" +"`BufferedReader`, and :class:`BufferedRWPair` buffer streams that are " +"readable, writable, and both readable and writable. :class:`BufferedRandom` " +"provides a buffered interface to random access streams. Another :class:" +"`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory bytes." msgstr "" #: ../../library/io.rst:185 msgid "" -"The :class:`TextIOBase` ABC, another subclass of :class:`IOBase`, deals with" -" streams whose bytes represent text, and handles encoding and decoding to " -"and from strings. :class:`TextIOWrapper`, which extends it, is a buffered " -"text interface to a buffered raw stream (:class:`BufferedIOBase`). Finally, " -":class:`StringIO` is an in-memory stream for text." +"The :class:`TextIOBase` ABC, another subclass of :class:`IOBase`, deals with " +"streams whose bytes represent text, and handles encoding and decoding to and " +"from strings. :class:`TextIOWrapper`, which extends it, is a buffered text " +"interface to a buffered raw stream (:class:`BufferedIOBase`). Finally, :" +"class:`StringIO` is an in-memory stream for text." msgstr "" #: ../../library/io.rst:191 msgid "" -"Argument names are not part of the specification, and only the arguments of " -":func:`open` are intended to be used as keyword arguments." +"Argument names are not part of the specification, and only the arguments of :" +"func:`open` are intended to be used as keyword arguments." msgstr "" #: ../../library/io.rst:194 @@ -268,7 +271,7 @@ msgstr "" #: ../../library/io.rst:199 msgid "ABC" -msgstr "" +msgstr "ABC" #: ../../library/io.rst:199 msgid "Inherits" @@ -285,7 +288,7 @@ msgstr "" #: ../../library/io.rst:201 ../../library/io.rst:206 ../../library/io.rst:208 #: ../../library/io.rst:210 msgid ":class:`IOBase`" -msgstr "" +msgstr ":class:`IOBase`" #: ../../library/io.rst:201 msgid "``fileno``, ``seek``, and ``truncate``" @@ -300,7 +303,7 @@ msgstr "" #: ../../library/io.rst:206 msgid ":class:`RawIOBase`" -msgstr "" +msgstr ":class:`RawIOBase`" #: ../../library/io.rst:206 msgid "``readinto`` and ``write``" @@ -312,7 +315,7 @@ msgstr "" #: ../../library/io.rst:208 msgid ":class:`BufferedIOBase`" -msgstr "" +msgstr ":class:`BufferedIOBase`" #: ../../library/io.rst:208 msgid "``detach``, ``read``, ``read1``, and ``write``" @@ -324,7 +327,7 @@ msgstr "" #: ../../library/io.rst:210 msgid ":class:`TextIOBase`" -msgstr "" +msgstr ":class:`TextIOBase`" #: ../../library/io.rst:210 msgid "``detach``, ``read``, ``readline``, and ``write``" @@ -332,8 +335,7 @@ msgstr "" #: ../../library/io.rst:210 msgid "" -"Inherited :class:`IOBase` methods, ``encoding``, ``errors``, and " -"``newlines``" +"Inherited :class:`IOBase` methods, ``encoding``, ``errors``, and ``newlines``" msgstr "" #: ../../library/io.rst:217 @@ -364,10 +366,9 @@ msgstr "" #: ../../library/io.rst:235 msgid "" -"The basic type used for binary data read from or written to a file is " -":class:`bytes`. Other :term:`bytes-like objects ` are " -"accepted as method arguments too. Text I/O classes work with :class:`str` " -"data." +"The basic type used for binary data read from or written to a file is :class:" +"`bytes`. Other :term:`bytes-like objects ` are accepted " +"as method arguments too. Text I/O classes work with :class:`str` data." msgstr "" #: ../../library/io.rst:239 @@ -378,19 +379,18 @@ msgstr "" #: ../../library/io.rst:242 msgid "" -":class:`IOBase` (and its subclasses) supports the iterator protocol, meaning" -" that an :class:`IOBase` object can be iterated over yielding the lines in a" -" stream. Lines are defined slightly differently depending on whether the " +":class:`IOBase` (and its subclasses) supports the iterator protocol, meaning " +"that an :class:`IOBase` object can be iterated over yielding the lines in a " +"stream. Lines are defined slightly differently depending on whether the " "stream is a binary stream (yielding bytes), or a text stream (yielding " "character strings). See :meth:`~IOBase.readline` below." msgstr "" #: ../../library/io.rst:248 msgid "" -":class:`IOBase` is also a context manager and therefore supports the " -":keyword:`with` statement. In this example, *file* is closed after the " -":keyword:`!with` statement's suite is finished---even if an exception " -"occurs::" +":class:`IOBase` is also a context manager and therefore supports the :" +"keyword:`with` statement. In this example, *file* is closed after the :" +"keyword:`!with` statement's suite is finished---even if an exception occurs::" msgstr "" #: ../../library/io.rst:255 @@ -406,8 +406,8 @@ msgstr "" #: ../../library/io.rst:263 msgid "" -"As a convenience, it is allowed to call this method more than once; only the" -" first call, however, will have an effect." +"As a convenience, it is allowed to call this method more than once; only the " +"first call, however, will have an effect." msgstr "" #: ../../library/io.rst:268 @@ -429,8 +429,8 @@ msgstr "" #: ../../library/io.rst:283 msgid "" -"Return ``True`` if the stream is interactive (i.e., connected to a " -"terminal/tty device)." +"Return ``True`` if the stream is interactive (i.e., connected to a terminal/" +"tty device)." msgstr "" #: ../../library/io.rst:288 @@ -454,8 +454,8 @@ msgstr "" #: ../../library/io.rst:302 msgid "" -"Read and return a list of lines from the stream. *hint* can be specified to" -" control the number of lines read: no more lines will be read if the total " +"Read and return a list of lines from the stream. *hint* can be specified to " +"control the number of lines read: no more lines will be read if the total " "size (in bytes/characters) of all lines so far exceeds *hint*." msgstr "" @@ -499,15 +499,15 @@ msgstr "" #: ../../library/io.rst:327 msgid "" -"Some operating systems could support additional values, like " -":data:`os.SEEK_HOLE` or :data:`os.SEEK_DATA`. The valid values for a file " -"could depend on it being open in text or binary mode." +"Some operating systems could support additional values, like :data:`os." +"SEEK_HOLE` or :data:`os.SEEK_DATA`. The valid values for a file could depend " +"on it being open in text or binary mode." msgstr "" #: ../../library/io.rst:334 msgid "" -"Return ``True`` if the stream supports random access. If ``False``, " -":meth:`seek`, :meth:`tell` and :meth:`truncate` will raise :exc:`OSError`." +"Return ``True`` if the stream supports random access. If ``False``, :meth:" +"`seek`, :meth:`tell` and :meth:`truncate` will raise :exc:`OSError`." msgstr "" #: ../../library/io.rst:339 @@ -529,8 +529,8 @@ msgstr "" #: ../../library/io.rst:355 msgid "" -"Return ``True`` if the stream supports writing. If ``False``, :meth:`write`" -" and :meth:`truncate` will raise :exc:`OSError`." +"Return ``True`` if the stream supports writing. If ``False``, :meth:`write` " +"and :meth:`truncate` will raise :exc:`OSError`." msgstr "" #: ../../library/io.rst:360 @@ -542,8 +542,8 @@ msgstr "" #: ../../library/io.rst:366 msgid "" "Prepare for object destruction. :class:`IOBase` provides a default " -"implementation of this method that calls the instance's " -":meth:`~IOBase.close` method." +"implementation of this method that calls the instance's :meth:`~IOBase." +"close` method." msgstr "" #: ../../library/io.rst:373 @@ -561,16 +561,16 @@ msgstr "" #: ../../library/io.rst:380 msgid "" -"In addition to the attributes and methods from :class:`IOBase`, " -":class:`RawIOBase` provides the following methods:" +"In addition to the attributes and methods from :class:`IOBase`, :class:" +"`RawIOBase` provides the following methods:" msgstr "" #: ../../library/io.rst:385 msgid "" "Read up to *size* bytes from the object and return them. As a convenience, " -"if *size* is unspecified or -1, all bytes until EOF are returned. Otherwise," -" only one system call is ever made. Fewer than *size* bytes may be returned" -" if the operating system call returns fewer than *size* bytes." +"if *size* is unspecified or -1, all bytes until EOF are returned. Otherwise, " +"only one system call is ever made. Fewer than *size* bytes may be returned " +"if the operating system call returns fewer than *size* bytes." msgstr "" #: ../../library/io.rst:390 @@ -593,9 +593,9 @@ msgstr "" #: ../../library/io.rst:404 msgid "" -"Read bytes into a pre-allocated, writable :term:`bytes-like object` *b*, and" -" return the number of bytes read. For example, *b* might be a " -":class:`bytearray`. If the object is in non-blocking mode and no bytes are " +"Read bytes into a pre-allocated, writable :term:`bytes-like object` *b*, and " +"return the number of bytes read. For example, *b* might be a :class:" +"`bytearray`. If the object is in non-blocking mode and no bytes are " "available, ``None`` is returned." msgstr "" @@ -603,8 +603,8 @@ msgstr "" msgid "" "Write the given :term:`bytes-like object`, *b*, to the underlying raw " "stream, and return the number of bytes written. This can be less than the " -"length of *b* in bytes, depending on specifics of the underlying raw stream," -" and especially if it is in non-blocking mode. ``None`` is returned if the " +"length of *b* in bytes, depending on specifics of the underlying raw stream, " +"and especially if it is in non-blocking mode. ``None`` is returned if the " "raw stream is set not to block and no single byte could be readily written " "to it. The caller may release or mutate *b* after this method returns, so " "the implementation should only access *b* during the method call." @@ -618,8 +618,8 @@ msgstr "" #: ../../library/io.rst:428 msgid "" -"The main difference with :class:`RawIOBase` is that methods :meth:`read`, " -":meth:`readinto` and :meth:`write` will try (respectively) to read as much " +"The main difference with :class:`RawIOBase` is that methods :meth:`read`, :" +"meth:`readinto` and :meth:`write` will try (respectively) to read as much " "input as requested or to consume all given output, at the expense of making " "perhaps more than one system call." msgstr "" @@ -627,35 +627,35 @@ msgstr "" #: ../../library/io.rst:433 msgid "" "In addition, those methods can raise :exc:`BlockingIOError` if the " -"underlying raw stream is in non-blocking mode and cannot take or give enough" -" data; unlike their :class:`RawIOBase` counterparts, they will never return " +"underlying raw stream is in non-blocking mode and cannot take or give enough " +"data; unlike their :class:`RawIOBase` counterparts, they will never return " "``None``." msgstr "" #: ../../library/io.rst:438 msgid "" -"Besides, the :meth:`read` method does not have a default implementation that" -" defers to :meth:`readinto`." +"Besides, the :meth:`read` method does not have a default implementation that " +"defers to :meth:`readinto`." msgstr "" #: ../../library/io.rst:441 msgid "" -"A typical :class:`BufferedIOBase` implementation should not inherit from a " -":class:`RawIOBase` implementation, but wrap one, like " -":class:`BufferedWriter` and :class:`BufferedReader` do." +"A typical :class:`BufferedIOBase` implementation should not inherit from a :" +"class:`RawIOBase` implementation, but wrap one, like :class:`BufferedWriter` " +"and :class:`BufferedReader` do." msgstr "" #: ../../library/io.rst:445 msgid "" -":class:`BufferedIOBase` provides or overrides these methods and attribute in" -" addition to those from :class:`IOBase`:" +":class:`BufferedIOBase` provides or overrides these methods and attribute in " +"addition to those from :class:`IOBase`:" msgstr "" #: ../../library/io.rst:450 msgid "" -"The underlying raw stream (a :class:`RawIOBase` instance) that " -":class:`BufferedIOBase` deals with. This is not part of the " -":class:`BufferedIOBase` API and may not exist on some implementations." +"The underlying raw stream (a :class:`RawIOBase` instance) that :class:" +"`BufferedIOBase` deals with. This is not part of the :class:" +"`BufferedIOBase` API and may not exist on some implementations." msgstr "" #: ../../library/io.rst:456 @@ -669,23 +669,23 @@ msgstr "" #: ../../library/io.rst:461 msgid "" -"Some buffers, like :class:`BytesIO`, do not have the concept of a single raw" -" stream to return from this method. They raise :exc:`UnsupportedOperation`." +"Some buffers, like :class:`BytesIO`, do not have the concept of a single raw " +"stream to return from this method. They raise :exc:`UnsupportedOperation`." msgstr "" #: ../../library/io.rst:469 msgid "" "Read and return up to *size* bytes. If the argument is omitted, ``None``, " -"or negative, data is read and returned until EOF is reached. An empty " -":class:`bytes` object is returned if the stream is already at EOF." +"or negative, data is read and returned until EOF is reached. An empty :" +"class:`bytes` object is returned if the stream is already at EOF." msgstr "" #: ../../library/io.rst:473 msgid "" "If the argument is positive, and the underlying raw stream is not " "interactive, multiple raw reads may be issued to satisfy the byte count " -"(unless EOF is reached first). But for interactive raw streams, at most one" -" raw read will be issued, and a short result does not imply that EOF is " +"(unless EOF is reached first). But for interactive raw streams, at most one " +"raw read will be issued, and a short result does not imply that EOF is " "imminent." msgstr "" @@ -705,15 +705,15 @@ msgstr "" #: ../../library/io.rst:490 msgid "" -"If *size* is ``-1`` (the default), an arbitrary number of bytes are returned" -" (more than zero unless EOF is reached)." +"If *size* is ``-1`` (the default), an arbitrary number of bytes are returned " +"(more than zero unless EOF is reached)." msgstr "" #: ../../library/io.rst:495 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b* and " -"return the number of bytes read. For example, *b* might be a " -":class:`bytearray`." +"return the number of bytes read. For example, *b* might be a :class:" +"`bytearray`." msgstr "" #: ../../library/io.rst:499 @@ -725,9 +725,9 @@ msgstr "" #: ../../library/io.rst:507 msgid "" "Read bytes into a pre-allocated, writable :term:`bytes-like object` *b*, " -"using at most one call to the underlying raw stream's " -":meth:`~RawIOBase.read` (or :meth:`~RawIOBase.readinto`) method. Return the " -"number of bytes read." +"using at most one call to the underlying raw stream's :meth:`~RawIOBase." +"read` (or :meth:`~RawIOBase.readinto`) method. Return the number of bytes " +"read." msgstr "" #: ../../library/io.rst:519 @@ -735,8 +735,8 @@ msgid "" "Write the given :term:`bytes-like object`, *b*, and return the number of " "bytes written (always equal to the length of *b* in bytes, since if the " "write fails an :exc:`OSError` will be raised). Depending on the actual " -"implementation, these bytes may be readily written to the underlying stream," -" or held in a buffer for performance and latency reasons." +"implementation, these bytes may be readily written to the underlying stream, " +"or held in a buffer for performance and latency reasons." msgstr "" #: ../../library/io.rst:526 @@ -759,8 +759,8 @@ msgstr "" #: ../../library/io.rst:539 msgid "" ":class:`FileIO` represents an OS-level file containing bytes data. It " -"implements the :class:`RawIOBase` interface (and therefore the " -":class:`IOBase` interface, too)." +"implements the :class:`RawIOBase` interface (and therefore the :class:" +"`IOBase` interface, too)." msgstr "" #: ../../library/io.rst:543 @@ -786,9 +786,9 @@ msgstr "" msgid "" "The *mode* can be ``'r'``, ``'w'``, ``'x'`` or ``'a'`` for reading " "(default), writing, exclusive creation or appending. The file will be " -"created if it doesn't exist when opened for writing or appending; it will be" -" truncated when opened for writing. :exc:`FileExistsError` will be raised if" -" it already exists when opened for creating. Opening a file for creating " +"created if it doesn't exist when opened for writing or appending; it will be " +"truncated when opened for writing. :exc:`FileExistsError` will be raised if " +"it already exists when opened for creating. Opening a file for creating " "implies writing, so this mode behaves in a similar way to ``'w'``. Add a " "``'+'`` to the mode to allow simultaneous reading and writing." msgstr "" @@ -810,7 +810,7 @@ msgstr "" #: ../../library/io.rst:570 msgid "The newly created file is :ref:`non-inheritable `." -msgstr "" +msgstr "O recém criado arquivo é ref:`non-inheritable 1`." #: ../../library/io.rst:572 msgid "" @@ -824,12 +824,12 @@ msgstr "" #: ../../library/io.rst:579 msgid "The file is now non-inheritable." -msgstr "" +msgstr "O arquivo agora é não herdável." #: ../../library/io.rst:582 msgid "" -"In addition to the attributes and methods from :class:`IOBase` and " -":class:`RawIOBase`, :class:`FileIO` provides the following data attributes:" +"In addition to the attributes and methods from :class:`IOBase` and :class:" +"`RawIOBase`, :class:`FileIO` provides the following data attributes:" msgstr "" #: ../../library/io.rst:588 @@ -854,9 +854,9 @@ msgstr "" #: ../../library/io.rst:604 msgid "" -"A stream implementation using an in-memory bytes buffer. It inherits " -":class:`BufferedIOBase`. The buffer is discarded when the " -":meth:`~IOBase.close` method is called." +"A stream implementation using an in-memory bytes buffer. It inherits :class:" +"`BufferedIOBase`. The buffer is discarded when the :meth:`~IOBase.close` " +"method is called." msgstr "" #: ../../library/io.rst:608 @@ -880,8 +880,8 @@ msgstr "" #: ../../library/io.rst:627 msgid "" -"As long as the view exists, the :class:`BytesIO` object cannot be resized or" -" closed." +"As long as the view exists, the :class:`BytesIO` object cannot be resized or " +"closed." msgstr "" #: ../../library/io.rst:634 @@ -903,18 +903,18 @@ msgstr "" #: ../../library/io.rst:652 msgid "" -"A buffer providing higher-level access to a readable, sequential " -":class:`RawIOBase` object. It inherits :class:`BufferedIOBase`. When " -"reading data from this object, a larger amount of data may be requested from" -" the underlying raw stream, and kept in an internal buffer. The buffered " -"data can then be returned directly on subsequent reads." +"A buffer providing higher-level access to a readable, sequential :class:" +"`RawIOBase` object. It inherits :class:`BufferedIOBase`. When reading data " +"from this object, a larger amount of data may be requested from the " +"underlying raw stream, and kept in an internal buffer. The buffered data can " +"then be returned directly on subsequent reads." msgstr "" #: ../../library/io.rst:658 msgid "" "The constructor creates a :class:`BufferedReader` for the given readable " -"*raw* stream and *buffer_size*. If *buffer_size* is omitted, " -":data:`DEFAULT_BUFFER_SIZE` is used." +"*raw* stream and *buffer_size*. If *buffer_size* is omitted, :data:" +"`DEFAULT_BUFFER_SIZE` is used." msgstr "" #: ../../library/io.rst:662 @@ -945,11 +945,11 @@ msgstr "" #: ../../library/io.rst:688 msgid "" -"A buffer providing higher-level access to a writeable, sequential " -":class:`RawIOBase` object. It inherits :class:`BufferedIOBase`. When " -"writing to this object, data is normally placed into an internal buffer. " -"The buffer will be written out to the underlying :class:`RawIOBase` object " -"under various conditions, including:" +"A buffer providing higher-level access to a writeable, sequential :class:" +"`RawIOBase` object. It inherits :class:`BufferedIOBase`. When writing to " +"this object, data is normally placed into an internal buffer. The buffer " +"will be written out to the underlying :class:`RawIOBase` object under " +"various conditions, including:" msgstr "" #: ../../library/io.rst:694 @@ -972,8 +972,8 @@ msgstr "" #: ../../library/io.rst:699 msgid "" "The constructor creates a :class:`BufferedWriter` for the given writeable " -"*raw* stream. If the *buffer_size* is not given, it defaults to " -":data:`DEFAULT_BUFFER_SIZE`." +"*raw* stream. If the *buffer_size* is not given, it defaults to :data:" +"`DEFAULT_BUFFER_SIZE`." msgstr "" #: ../../library/io.rst:703 @@ -984,8 +984,8 @@ msgstr "" #: ../../library/io.rst:708 msgid "" -"Force bytes held in the buffer into the raw stream. A " -":exc:`BlockingIOError` should be raised if the raw stream blocks." +"Force bytes held in the buffer into the raw stream. A :exc:" +"`BlockingIOError` should be raised if the raw stream blocks." msgstr "" #: ../../library/io.rst:713 @@ -997,22 +997,22 @@ msgstr "" #: ../../library/io.rst:721 msgid "" -"A buffered interface to random access streams. It inherits " -":class:`BufferedReader` and :class:`BufferedWriter`, and further supports " -":meth:`seek` and :meth:`tell` functionality." +"A buffered interface to random access streams. It inherits :class:" +"`BufferedReader` and :class:`BufferedWriter`, and further supports :meth:" +"`seek` and :meth:`tell` functionality." msgstr "" #: ../../library/io.rst:725 msgid "" -"The constructor creates a reader and writer for a seekable raw stream, given" -" in the first argument. If the *buffer_size* is omitted it defaults to " -":data:`DEFAULT_BUFFER_SIZE`." +"The constructor creates a reader and writer for a seekable raw stream, given " +"in the first argument. If the *buffer_size* is omitted it defaults to :data:" +"`DEFAULT_BUFFER_SIZE`." msgstr "" #: ../../library/io.rst:729 msgid "" -":class:`BufferedRandom` is capable of anything :class:`BufferedReader` or " -":class:`BufferedWriter` can do." +":class:`BufferedRandom` is capable of anything :class:`BufferedReader` or :" +"class:`BufferedWriter` can do." msgstr "" #: ../../library/io.rst:735 @@ -1025,15 +1025,15 @@ msgstr "" #: ../../library/io.rst:739 msgid "" "*reader* and *writer* are :class:`RawIOBase` objects that are readable and " -"writeable respectively. If the *buffer_size* is omitted it defaults to " -":data:`DEFAULT_BUFFER_SIZE`." +"writeable respectively. If the *buffer_size* is omitted it defaults to :" +"data:`DEFAULT_BUFFER_SIZE`." msgstr "" #: ../../library/io.rst:743 msgid "" ":class:`BufferedRWPair` implements all of :class:`BufferedIOBase`\\'s " -"methods except for :meth:`~BufferedIOBase.detach`, which raises " -":exc:`UnsupportedOperation`." +"methods except for :meth:`~BufferedIOBase.detach`, which raises :exc:" +"`UnsupportedOperation`." msgstr "" #: ../../library/io.rst:749 @@ -1045,8 +1045,8 @@ msgstr "" #: ../../library/io.rst:759 msgid "" -"Base class for text streams. This class provides a character and line based" -" interface to stream I/O. It inherits :class:`IOBase`. There is no public " +"Base class for text streams. This class provides a character and line based " +"interface to stream I/O. It inherits :class:`IOBase`. There is no public " "constructor." msgstr "" @@ -1058,8 +1058,8 @@ msgstr "" #: ../../library/io.rst:768 msgid "" -"The name of the encoding used to decode the stream's bytes into strings, and" -" to encode strings into bytes." +"The name of the encoding used to decode the stream's bytes into strings, and " +"to encode strings into bytes." msgstr "" #: ../../library/io.rst:773 @@ -1075,9 +1075,9 @@ msgstr "" #: ../../library/io.rst:783 msgid "" -"The underlying binary buffer (a :class:`BufferedIOBase` instance) that " -":class:`TextIOBase` deals with. This is not part of the :class:`TextIOBase`" -" API and may not exist in some implementations." +"The underlying binary buffer (a :class:`BufferedIOBase` instance) that :" +"class:`TextIOBase` deals with. This is not part of the :class:`TextIOBase` " +"API and may not exist in some implementations." msgstr "" #: ../../library/io.rst:789 @@ -1088,21 +1088,21 @@ msgstr "" #: ../../library/io.rst:792 msgid "" -"After the underlying buffer has been detached, the :class:`TextIOBase` is in" -" an unusable state." +"After the underlying buffer has been detached, the :class:`TextIOBase` is in " +"an unusable state." msgstr "" #: ../../library/io.rst:795 msgid "" "Some :class:`TextIOBase` implementations, like :class:`StringIO`, may not " -"have the concept of an underlying buffer and calling this method will raise " -":exc:`UnsupportedOperation`." +"have the concept of an underlying buffer and calling this method will raise :" +"exc:`UnsupportedOperation`." msgstr "" #: ../../library/io.rst:803 msgid "" -"Read and return at most *size* characters from the stream as a single " -":class:`str`. If *size* is negative or ``None``, reads until EOF." +"Read and return at most *size* characters from the stream as a single :class:" +"`str`. If *size* is negative or ``None``, reads until EOF." msgstr "" #: ../../library/io.rst:808 @@ -1146,8 +1146,8 @@ msgstr "" #: ../../library/io.rst:836 msgid "" -"Return the current stream position as an opaque number. The number does not" -" usually represent a number of bytes in the underlying binary storage." +"Return the current stream position as an opaque number. The number does not " +"usually represent a number of bytes in the underlying binary storage." msgstr "" #: ../../library/io.rst:842 @@ -1164,8 +1164,8 @@ msgstr "" #: ../../library/io.rst:852 msgid "" -"*encoding* gives the name of the encoding that the stream will be decoded or" -" encoded with. It defaults to :func:`locale.getpreferredencoding(False) " +"*encoding* gives the name of the encoding that the stream will be decoded or " +"encoded with. It defaults to :func:`locale.getpreferredencoding(False) " "`." msgstr "" @@ -1177,10 +1177,10 @@ msgid "" "same effect), or pass ``'ignore'`` to ignore errors. (Note that ignoring " "encoding errors can lead to data loss.) ``'replace'`` causes a replacement " "marker (such as ``'?'``) to be inserted where there is malformed data. " -"``'backslashreplace'`` causes malformed data to be replaced by a backslashed" -" escape sequence. When writing, ``'xmlcharrefreplace'`` (replace with the " -"appropriate XML character reference) or ``'namereplace'`` (replace with " -"``\\N{...}`` escape sequences) can be used. Any other error handling name " +"``'backslashreplace'`` causes malformed data to be replaced by a backslashed " +"escape sequence. When writing, ``'xmlcharrefreplace'`` (replace with the " +"appropriate XML character reference) or ``'namereplace'`` (replace with ``" +"\\N{...}`` escape sequences) can be used. Any other error handling name " "that has been registered with :func:`codecs.register_error` is also valid." msgstr "" @@ -1192,8 +1192,8 @@ msgstr "" #: ../../library/io.rst:875 msgid "" -"When reading input from the stream, if *newline* is ``None``, " -":term:`universal newlines` mode is enabled. Lines in the input can end in " +"When reading input from the stream, if *newline* is ``None``, :term:" +"`universal newlines` mode is enabled. Lines in the input can end in " "``'\\n'``, ``'\\r'``, or ``'\\r\\n'``, and these are translated into " "``'\\n'`` before being returned to the caller. If it is ``''``, universal " "newlines mode is enabled, but line endings are returned to the caller " @@ -1205,11 +1205,16 @@ msgstr "" #: ../../library/io.rst:884 msgid "" "When writing output to the stream, if *newline* is ``None``, any ``'\\n'`` " -"characters written are translated to the system default line separator, " -":data:`os.linesep`. If *newline* is ``''`` or ``'\\n'``, no translation " +"characters written are translated to the system default line separator, :" +"data:`os.linesep`. If *newline* is ``''`` or ``'\\n'``, no translation " "takes place. If *newline* is any of the other legal values, any ``'\\n'`` " "characters written are translated to the given string." msgstr "" +"Ao gravar a saída no fluxo, se *newline* for ``None``, quaisquer caracteres " +"``'\\n'`` gravados serão traduzidos para o separador de linhas padrão do " +"sistema, :data:`os.linesep`. Se *newline* for ``''`` ou ``'\\n'``, nenhuma " +"tradução ocorrerá. Se *newline* for um dos outros valores legais, qualquer " +"caractere ``'\\n'`` escrito será traduzido para a sequência especificada." #: ../../library/io.rst:890 msgid "" @@ -1219,8 +1224,8 @@ msgstr "" #: ../../library/io.rst:893 msgid "" -"If *write_through* is ``True``, calls to :meth:`write` are guaranteed not to" -" be buffered: any data written on the :class:`TextIOWrapper` object is " +"If *write_through* is ``True``, calls to :meth:`write` are guaranteed not to " +"be buffered: any data written on the :class:`TextIOWrapper` object is " "immediately handled to its underlying binary *buffer*." msgstr "" @@ -1230,16 +1235,16 @@ msgstr "" #: ../../library/io.rst:900 msgid "" -"The default *encoding* is now ``locale.getpreferredencoding(False)`` instead" -" of ``locale.getpreferredencoding()``. Don't change temporary the locale " +"The default *encoding* is now ``locale.getpreferredencoding(False)`` instead " +"of ``locale.getpreferredencoding()``. Don't change temporary the locale " "encoding using :func:`locale.setlocale`, use the current locale encoding " "instead of the user preferred encoding." msgstr "" #: ../../library/io.rst:906 msgid "" -":class:`TextIOWrapper` provides these members in addition to those of " -":class:`TextIOBase` and its parents:" +":class:`TextIOWrapper` provides these members in addition to those of :class:" +"`TextIOBase` and its parents:" msgstr "" #: ../../library/io.rst:911 @@ -1276,31 +1281,30 @@ msgstr "" #: ../../library/io.rst:942 msgid "" -"An in-memory stream for text I/O. The text buffer is discarded when the " -":meth:`~IOBase.close` method is called." +"An in-memory stream for text I/O. The text buffer is discarded when the :" +"meth:`~IOBase.close` method is called." msgstr "" #: ../../library/io.rst:945 msgid "" "The initial value of the buffer can be set by providing *initial_value*. If " -"newline translation is enabled, newlines will be encoded as if by " -":meth:`~TextIOBase.write`. The stream is positioned at the start of the " -"buffer." +"newline translation is enabled, newlines will be encoded as if by :meth:" +"`~TextIOBase.write`. The stream is positioned at the start of the buffer." msgstr "" #: ../../library/io.rst:950 msgid "" "The *newline* argument works like that of :class:`TextIOWrapper`. The " -"default is to consider only ``\\n`` characters as ends of lines and to do no" -" newline translation. If *newline* is set to ``None``, newlines are written" -" as ``\\n`` on all platforms, but universal newline decoding is still " +"default is to consider only ``\\n`` characters as ends of lines and to do no " +"newline translation. If *newline* is set to ``None``, newlines are written " +"as ``\\n`` on all platforms, but universal newline decoding is still " "performed when reading." msgstr "" #: ../../library/io.rst:956 msgid "" -":class:`StringIO` provides this method in addition to those from " -":class:`TextIOBase` and its parents:" +":class:`StringIO` provides this method in addition to those from :class:" +"`TextIOBase` and its parents:" msgstr "" #: ../../library/io.rst:961 @@ -1316,8 +1320,8 @@ msgstr "" #: ../../library/io.rst:987 msgid "" -"A helper codec that decodes newlines for :term:`universal newlines` mode. It" -" inherits :class:`codecs.IncrementalDecoder`." +"A helper codec that decodes newlines for :term:`universal newlines` mode. It " +"inherits :class:`codecs.IncrementalDecoder`." msgstr "" #: ../../library/io.rst:992 @@ -1332,10 +1336,10 @@ msgstr "" #: ../../library/io.rst:1000 msgid "" -"By reading and writing only large chunks of data even when the user asks for" -" a single byte, buffered I/O hides any inefficiency in calling and executing" -" the operating system's unbuffered I/O routines. The gain depends on the OS" -" and the kind of I/O which is performed. For example, on some modern OSes " +"By reading and writing only large chunks of data even when the user asks for " +"a single byte, buffered I/O hides any inefficiency in calling and executing " +"the operating system's unbuffered I/O routines. The gain depends on the OS " +"and the kind of I/O which is performed. For example, on some modern OSes " "such as Linux, unbuffered disk I/O can be as fast as buffered I/O. The " "bottom line, however, is that buffered I/O offers predictable performance " "regardless of the platform and the backing device. Therefore, it is almost " @@ -1345,18 +1349,18 @@ msgstr "" #: ../../library/io.rst:1012 msgid "" -"Text I/O over a binary storage (such as a file) is significantly slower than" -" binary I/O over the same storage, because it requires conversions between " -"unicode and binary data using a character codec. This can become noticeable" -" handling huge amounts of text data like large log files. Also, " -":meth:`TextIOWrapper.tell` and :meth:`TextIOWrapper.seek` are both quite " -"slow due to the reconstruction algorithm used." +"Text I/O over a binary storage (such as a file) is significantly slower than " +"binary I/O over the same storage, because it requires conversions between " +"unicode and binary data using a character codec. This can become noticeable " +"handling huge amounts of text data like large log files. Also, :meth:" +"`TextIOWrapper.tell` and :meth:`TextIOWrapper.seek` are both quite slow due " +"to the reconstruction algorithm used." msgstr "" #: ../../library/io.rst:1019 msgid "" -":class:`StringIO`, however, is a native in-memory unicode container and will" -" exhibit similar speed to :class:`BytesIO`." +":class:`StringIO`, however, is a native in-memory unicode container and will " +"exhibit similar speed to :class:`BytesIO`." msgstr "" #: ../../library/io.rst:1023 @@ -1371,10 +1375,10 @@ msgstr "" #: ../../library/io.rst:1028 msgid "" -"Binary buffered objects (instances of :class:`BufferedReader`, " -":class:`BufferedWriter`, :class:`BufferedRandom` and " -":class:`BufferedRWPair`) protect their internal structures using a lock; it " -"is therefore safe to call them from multiple threads at once." +"Binary buffered objects (instances of :class:`BufferedReader`, :class:" +"`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) " +"protect their internal structures using a lock; it is therefore safe to call " +"them from multiple threads at once." msgstr "" #: ../../library/io.rst:1033 @@ -1387,19 +1391,19 @@ msgstr "" #: ../../library/io.rst:1038 msgid "" -"Binary buffered objects (instances of :class:`BufferedReader`, " -":class:`BufferedWriter`, :class:`BufferedRandom` and " -":class:`BufferedRWPair`) are not reentrant. While reentrant calls will not " -"happen in normal situations, they can arise from doing I/O in a " -":mod:`signal` handler. If a thread tries to re-enter a buffered object " -"which it is already accessing, a :exc:`RuntimeError` is raised. Note this " -"doesn't prohibit a different thread from entering the buffered object." +"Binary buffered objects (instances of :class:`BufferedReader`, :class:" +"`BufferedWriter`, :class:`BufferedRandom` and :class:`BufferedRWPair`) are " +"not reentrant. While reentrant calls will not happen in normal situations, " +"they can arise from doing I/O in a :mod:`signal` handler. If a thread tries " +"to re-enter a buffered object which it is already accessing, a :exc:" +"`RuntimeError` is raised. Note this doesn't prohibit a different thread " +"from entering the buffered object." msgstr "" #: ../../library/io.rst:1046 msgid "" "The above implicitly extends to text files, since the :func:`open()` " "function will wrap a buffered object inside a :class:`TextIOWrapper`. This " -"includes standard streams and therefore affects the built-in function " -":func:`print()` as well." +"includes standard streams and therefore affects the built-in function :func:" +"`print()` as well." msgstr "" diff --git a/library/ipaddress.po b/library/ipaddress.po index 53add3f3c..b83f4d8df 100644 --- a/library/ipaddress.po +++ b/library/ipaddress.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,23 +33,23 @@ msgstr "**Código Fonte:** :source:`Lib/ipaddress.py`" #: ../../library/ipaddress.rst:13 msgid "" -":mod:`ipaddress` provides the capabilities to create, manipulate and operate" -" on IPv4 and IPv6 addresses and networks." +":mod:`ipaddress` provides the capabilities to create, manipulate and operate " +"on IPv4 and IPv6 addresses and networks." msgstr "" #: ../../library/ipaddress.rst:16 msgid "" "The functions and classes in this module make it straightforward to handle " -"various tasks related to IP addresses, including checking whether or not two" -" hosts are on the same subnet, iterating over all hosts in a particular " +"various tasks related to IP addresses, including checking whether or not two " +"hosts are on the same subnet, iterating over all hosts in a particular " "subnet, checking whether or not a string represents a valid IP address or " "network definition, and so on." msgstr "" #: ../../library/ipaddress.rst:22 msgid "" -"This is the full module API reference—for an overview and introduction, see " -":ref:`ipaddress-howto`." +"This is the full module API reference—for an overview and introduction, see :" +"ref:`ipaddress-howto`." msgstr "" #: ../../library/ipaddress.rst:35 @@ -64,8 +66,8 @@ msgstr "" msgid "" "Return an :class:`IPv4Address` or :class:`IPv6Address` object depending on " "the IP address passed as argument. Either IPv4 or IPv6 addresses may be " -"supplied; integers less than 2**32 will be considered to be IPv4 by default." -" A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 " +"supplied; integers less than 2**32 will be considered to be IPv4 by default. " +"A :exc:`ValueError` is raised if *address* does not represent a valid IPv4 " "or IPv6 address." msgstr "" @@ -74,9 +76,9 @@ msgid "" "Return an :class:`IPv4Network` or :class:`IPv6Network` object depending on " "the IP address passed as argument. *address* is a string or integer " "representing the IP network. Either IPv4 or IPv6 networks may be supplied; " -"integers less than 2**32 will be considered to be IPv4 by default. *strict*" -" is passed to :class:`IPv4Network` or :class:`IPv6Network` constructor. A " -":exc:`ValueError` is raised if *address* does not represent a valid IPv4 or " +"integers less than 2**32 will be considered to be IPv4 by default. *strict* " +"is passed to :class:`IPv4Network` or :class:`IPv6Network` constructor. A :" +"exc:`ValueError` is raised if *address* does not represent a valid IPv4 or " "IPv6 address, or if the network has host bits set." msgstr "" @@ -84,10 +86,10 @@ msgstr "" msgid "" "Return an :class:`IPv4Interface` or :class:`IPv6Interface` object depending " "on the IP address passed as argument. *address* is a string or integer " -"representing the IP address. Either IPv4 or IPv6 addresses may be supplied;" -" integers less than 2**32 will be considered to be IPv4 by default. A " -":exc:`ValueError` is raised if *address* does not represent a valid IPv4 or " -"IPv6 address." +"representing the IP address. Either IPv4 or IPv6 addresses may be supplied; " +"integers less than 2**32 will be considered to be IPv4 by default. A :exc:" +"`ValueError` is raised if *address* does not represent a valid IPv4 or IPv6 " +"address." msgstr "" #: ../../library/ipaddress.rst:77 @@ -129,8 +131,8 @@ msgstr "" #: ../../library/ipaddress.rst:104 msgid "" -"A string in decimal-dot notation, consisting of four decimal integers in the" -" inclusive range 0--255, separated by dots (e.g. ``192.168.0.1``). Each " +"A string in decimal-dot notation, consisting of four decimal integers in the " +"inclusive range 0--255, separated by dots (e.g. ``192.168.0.1``). Each " "integer represents an octet (byte) in the address. Leading zeroes are " "tolerated only for values less than 8 (as there is no ambiguity between the " "decimal and octal interpretations of such strings)." @@ -142,8 +144,8 @@ msgstr "" #: ../../library/ipaddress.rst:110 msgid "" -"An integer packed into a :class:`bytes` object of length 4 (most significant" -" octet first)." +"An integer packed into a :class:`bytes` object of length 4 (most significant " +"octet first)." msgstr "" #: ../../library/ipaddress.rst:122 @@ -195,26 +197,26 @@ msgstr "" #: ../../library/ipaddress.rst:166 msgid "" -"``True`` if the address is reserved for multicast use. See :RFC:`3171` (for" -" IPv4) or :RFC:`2373` (for IPv6)." +"``True`` if the address is reserved for multicast use. See :RFC:`3171` (for " +"IPv4) or :RFC:`2373` (for IPv6)." msgstr "" #: ../../library/ipaddress.rst:171 msgid "" -"``True`` if the address is allocated for private networks. See iana-ipv4" -"-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6)." +"``True`` if the address is allocated for private networks. See iana-ipv4-" +"special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6)." msgstr "" #: ../../library/ipaddress.rst:177 msgid "" -"``True`` if the address is allocated for public networks. See iana-ipv4" -"-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6)." +"``True`` if the address is allocated for public networks. See iana-ipv4-" +"special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6)." msgstr "" #: ../../library/ipaddress.rst:185 msgid "" -"``True`` if the address is unspecified. See :RFC:`5735` (for IPv4) or " -":RFC:`2373` (for IPv6)." +"``True`` if the address is unspecified. See :RFC:`5735` (for IPv4) or :RFC:" +"`2373` (for IPv6)." msgstr "" #: ../../library/ipaddress.rst:190 @@ -223,8 +225,8 @@ msgstr "" #: ../../library/ipaddress.rst:194 msgid "" -"``True`` if this is a loopback address. See :RFC:`3330` (for IPv4) or " -":RFC:`2373` (for IPv6)." +"``True`` if this is a loopback address. See :RFC:`3330` (for IPv4) or :RFC:" +"`2373` (for IPv6)." msgstr "" #: ../../library/ipaddress.rst:199 @@ -245,8 +247,8 @@ msgstr "" #: ../../library/ipaddress.rst:213 msgid "" "A string consisting of eight groups of four hexadecimal digits, each group " -"representing 16 bits. The groups are separated by colons. This describes an" -" *exploded* (longhand) notation. The string can also be *compressed* " +"representing 16 bits. The groups are separated by colons. This describes an " +"*exploded* (longhand) notation. The string can also be *compressed* " "(shorthand notation) by various means. See :RFC:`4291` for details. For " "example, ``\"0000:0000:0000:0000:0000:0abc:0007:0def\"`` can be compressed " "to ``\"::abc:7:def\"``." @@ -280,8 +282,8 @@ msgstr "" #: ../../library/ipaddress.rst:240 msgid "" -"For the following attributes, see the corresponding documentation of the " -":class:`IPv4Address` class:" +"For the following attributes, see the corresponding documentation of the :" +"class:`IPv4Address` class:" msgstr "" #: ../../library/ipaddress.rst:255 @@ -291,16 +293,16 @@ msgstr "" #: ../../library/ipaddress.rst:260 msgid "" "``True`` if the address is reserved for site-local usage. Note that the " -"site-local address space has been deprecated by :RFC:`3879`. Use " -":attr:`~IPv4Address.is_private` to test if this address is in the space of " -"unique local addresses as defined by :RFC:`4193`." +"site-local address space has been deprecated by :RFC:`3879`. Use :attr:" +"`~IPv4Address.is_private` to test if this address is in the space of unique " +"local addresses as defined by :RFC:`4193`." msgstr "" #: ../../library/ipaddress.rst:267 msgid "" -"For addresses that appear to be IPv4 mapped addresses (starting with " -"``::FFFF/96``), this property will report the embedded IPv4 address. For any" -" other address, this property will be ``None``." +"For addresses that appear to be IPv4 mapped addresses (starting with ``::" +"FFFF/96``), this property will report the embedded IPv4 address. For any " +"other address, this property will be ``None``." msgstr "" #: ../../library/ipaddress.rst:273 @@ -348,8 +350,8 @@ msgstr "" #: ../../library/ipaddress.rst:314 msgid "" -"Address objects can be compared with the usual set of comparison operators." -" Some examples::" +"Address objects can be compared with the usual set of comparison operators. " +"Some examples::" msgstr "" #: ../../library/ipaddress.rst:326 @@ -358,8 +360,7 @@ msgstr "" #: ../../library/ipaddress.rst:328 msgid "" -"Integers can be added to or subtracted from address objects. Some " -"examples::" +"Integers can be added to or subtracted from address objects. Some examples::" msgstr "" #: ../../library/ipaddress.rst:341 @@ -370,8 +371,8 @@ msgstr "" msgid "" "The :class:`IPv4Network` and :class:`IPv6Network` objects provide a " "mechanism for defining and inspecting IP network definitions. A network " -"definition consists of a *mask* and a *network address*, and as such defines" -" a range of IP addresses that equal the network address when masked (binary " +"definition consists of a *mask* and a *network address*, and as such defines " +"a range of IP addresses that equal the network address when masked (binary " "AND) with the mask. For example, a network definition with the mask " "``255.255.255.0`` and the network address ``192.168.1.0`` consists of IP " "addresses in the inclusive range ``192.168.1.0`` to ``192.168.1.255``." @@ -387,8 +388,8 @@ msgid "" "``/`` is a notation that denotes how many high-order bits are set in " "the network mask. A *net mask* is an IP address with some number of high-" "order bits set. Thus the prefix ``/24`` is equivalent to the net mask " -"``255.255.255.0`` in IPv4, or ``ffff:ff00::`` in IPv6. In addition, a *host" -" mask* is the logical inverse of a *net mask*, and is sometimes used (for " +"``255.255.255.0`` in IPv4, or ``ffff:ff00::`` in IPv6. In addition, a *host " +"mask* is the logical inverse of a *net mask*, and is sometimes used (for " "example in Cisco access control lists) to denote a network mask. The host " "mask equivalent to ``/24`` in IPv4 is ``0.0.0.255``." msgstr "" @@ -401,16 +402,15 @@ msgstr "" msgid "" "All attributes implemented by address objects are implemented by network " "objects as well. In addition, network objects implement additional " -"attributes. All of these are common between :class:`IPv4Network` and " -":class:`IPv6Network`, so to avoid duplication they are only documented for " -":class:`IPv4Network`. Network objects are :term:`hashable`, so they can be " -"used as keys in dictionaries." +"attributes. All of these are common between :class:`IPv4Network` and :class:" +"`IPv6Network`, so to avoid duplication they are only documented for :class:" +"`IPv4Network`. Network objects are :term:`hashable`, so they can be used as " +"keys in dictionaries." msgstr "" #: ../../library/ipaddress.rst:377 msgid "" -"Construct an IPv4 network definition. *address* can be one of the " -"following:" +"Construct an IPv4 network definition. *address* can be one of the following:" msgstr "" #: ../../library/ipaddress.rst:379 @@ -435,8 +435,7 @@ msgstr "" #: ../../library/ipaddress.rst:392 msgid "" "An integer that fits into 32 bits. This is equivalent to a single-address " -"network, with the network address being *address* and the mask being " -"``/32``." +"network, with the network address being *address* and the mask being ``/32``." msgstr "" #: ../../library/ipaddress.rst:396 @@ -448,8 +447,8 @@ msgstr "" #: ../../library/ipaddress.rst:399 msgid "" "A two-tuple of an address description and a netmask, where the address " -"description is either a string, a 32-bits integer, a 4-bytes packed integer," -" or an existing IPv4Address object; and the netmask is either an integer " +"description is either a string, a 32-bits integer, a 4-bytes packed integer, " +"or an existing IPv4Address object; and the netmask is either an integer " "representing the prefix length (e.g. ``24``) or a string representing the " "prefix mask (e.g. ``255.255.255.0``)." msgstr "" @@ -463,15 +462,15 @@ msgstr "" #: ../../library/ipaddress.rst:409 ../../library/ipaddress.rst:626 msgid "" -"If *strict* is ``True`` and host bits are set in the supplied address, then " -":exc:`ValueError` is raised. Otherwise, the host bits are masked out to " +"If *strict* is ``True`` and host bits are set in the supplied address, then :" +"exc:`ValueError` is raised. Otherwise, the host bits are masked out to " "determine the appropriate network address." msgstr "" #: ../../library/ipaddress.rst:413 msgid "" -"Unless stated otherwise, all network methods accepting other network/address" -" objects will raise :exc:`TypeError` if the argument's IP version is " +"Unless stated otherwise, all network methods accepting other network/address " +"objects will raise :exc:`TypeError` if the argument's IP version is " "incompatible to ``self``." msgstr "" @@ -498,8 +497,8 @@ msgstr "" #: ../../library/ipaddress.rst:444 msgid "" -"The broadcast address for the network. Packets sent to the broadcast address" -" should be received by every host on the network." +"The broadcast address for the network. Packets sent to the broadcast address " +"should be received by every host on the network." msgstr "" #: ../../library/ipaddress.rst:449 @@ -550,15 +549,15 @@ msgstr "" #: ../../library/ipaddress.rst:501 msgid "" -"``True`` if this network is partly or wholly contained in *other* or *other*" -" is wholly contained in this network." +"``True`` if this network is partly or wholly contained in *other* or *other* " +"is wholly contained in this network." msgstr "" #: ../../library/ipaddress.rst:506 msgid "" -"Computes the network definitions resulting from removing the given *network*" -" from this one. Returns an iterator of network objects. Raises " -":exc:`ValueError` if *network* is not completely contained in this network." +"Computes the network definitions resulting from removing the given *network* " +"from this one. Returns an iterator of network objects. Raises :exc:" +"`ValueError` if *network* is not completely contained in this network." msgstr "" #: ../../library/ipaddress.rst:519 @@ -581,28 +580,29 @@ msgid "" msgstr "" #: ../../library/ipaddress.rst:560 -msgid "Returns *True* if this network is a subnet of *other*." +msgid "Return ``True`` if this network is a subnet of *other*." msgstr "" #: ../../library/ipaddress.rst:571 -msgid "Returns *True* if this network is a supernet of *other*." +msgid "Return ``True`` if this network is a supernet of *other*." msgstr "" #: ../../library/ipaddress.rst:582 msgid "" "Compare this network to *other*. In this comparison only the network " -"addresses are considered; host bits aren't. Returns either ``-1``, ``0`` or" -" ``1``." +"addresses are considered; host bits aren't. Returns either ``-1``, ``0`` or " +"``1``." msgstr "" #: ../../library/ipaddress.rst:593 -msgid "It uses the same ordering and comparison algorithm as \"<\", \"==\", and \">\"" +msgid "" +"It uses the same ordering and comparison algorithm as \"<\", \"==\", and \">" +"\"" msgstr "" #: ../../library/ipaddress.rst:599 msgid "" -"Construct an IPv6 network definition. *address* can be one of the " -"following:" +"Construct an IPv6 network definition. *address* can be one of the following:" msgstr "" #: ../../library/ipaddress.rst:601 @@ -615,9 +615,8 @@ msgstr "" #: ../../library/ipaddress.rst:606 msgid "" -"Note that currently expanded netmasks are not supported. That means " -"``2001:db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` " -"not." +"Note that currently expanded netmasks are not supported. That means ``2001:" +"db00::0/24`` is a valid argument while ``2001:db00::0/ffff:ff00::`` not." msgstr "" #: ../../library/ipaddress.rst:610 @@ -629,8 +628,8 @@ msgstr "" #: ../../library/ipaddress.rst:614 msgid "" -"An integer packed into a :class:`bytes` object of length 16, big-endian. The" -" interpretation is similar to an integer *address*." +"An integer packed into a :class:`bytes` object of length 16, big-endian. The " +"interpretation is similar to an integer *address*." msgstr "" #: ../../library/ipaddress.rst:617 @@ -722,8 +721,8 @@ msgstr "" #: ../../library/ipaddress.rst:748 msgid "" -":class:`IPv4Interface` is a subclass of :class:`IPv4Address`, so it inherits" -" all the attributes from that class. In addition, the following attributes " +":class:`IPv4Interface` is a subclass of :class:`IPv4Address`, so it inherits " +"all the attributes from that class. In addition, the following attributes " "are available:" msgstr "" @@ -759,15 +758,14 @@ msgstr "" #: ../../library/ipaddress.rst:799 msgid "" -":class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits" -" all the attributes from that class. In addition, the following attributes " +":class:`IPv6Interface` is a subclass of :class:`IPv6Address`, so it inherits " +"all the attributes from that class. In addition, the following attributes " "are available:" msgstr "" #: ../../library/ipaddress.rst:809 msgid "" -"Refer to the corresponding attribute documentation in " -":class:`IPv4Interface`." +"Refer to the corresponding attribute documentation in :class:`IPv4Interface`." msgstr "" #: ../../library/ipaddress.rst:816 @@ -784,9 +782,9 @@ msgstr "" #: ../../library/ipaddress.rst:826 msgid "" -"For equality comparison (``==`` and ``!=``), both the IP address and network" -" must be the same for the objects to be equal. An interface will not " -"compare equal to any address or network object." +"For equality comparison (``==`` and ``!=``), both the IP address and network " +"must be the same for the objects to be equal. An interface will not compare " +"equal to any address or network object." msgstr "" #: ../../library/ipaddress.rst:830 @@ -809,36 +807,36 @@ msgstr "" #: ../../library/ipaddress.rst:844 msgid "" "Represent an address as 4 packed bytes in network (big-endian) order. " -"*address* is an integer representation of an IPv4 IP address. A " -":exc:`ValueError` is raised if the integer is negative or too large to be an" -" IPv4 IP address." +"*address* is an integer representation of an IPv4 IP address. A :exc:" +"`ValueError` is raised if the integer is negative or too large to be an IPv4 " +"IP address." msgstr "" #: ../../library/ipaddress.rst:857 msgid "" "Represent an address as 16 packed bytes in network (big-endian) order. " -"*address* is an integer representation of an IPv6 IP address. A " -":exc:`ValueError` is raised if the integer is negative or too large to be an" -" IPv6 IP address." +"*address* is an integer representation of an IPv6 IP address. A :exc:" +"`ValueError` is raised if the integer is negative or too large to be an IPv6 " +"IP address." msgstr "" #: ../../library/ipaddress.rst:865 msgid "" "Return an iterator of the summarized network range given the first and last " -"IP addresses. *first* is the first :class:`IPv4Address` or " -":class:`IPv6Address` in the range and *last* is the last " -":class:`IPv4Address` or :class:`IPv6Address` in the range. A " -":exc:`TypeError` is raised if *first* or *last* are not IP addresses or are " -"not of the same version. A :exc:`ValueError` is raised if *last* is not " -"greater than *first* or if *first* address version is not 4 or 6." +"IP addresses. *first* is the first :class:`IPv4Address` or :class:" +"`IPv6Address` in the range and *last* is the last :class:`IPv4Address` or :" +"class:`IPv6Address` in the range. A :exc:`TypeError` is raised if *first* " +"or *last* are not IP addresses or are not of the same version. A :exc:" +"`ValueError` is raised if *last* is not greater than *first* or if *first* " +"address version is not 4 or 6." msgstr "" #: ../../library/ipaddress.rst:881 msgid "" -"Return an iterator of the collapsed :class:`IPv4Network` or " -":class:`IPv6Network` objects. *addresses* is an iterator of " -":class:`IPv4Network` or :class:`IPv6Network` objects. A :exc:`TypeError` is" -" raised if *addresses* contains mixed version objects." +"Return an iterator of the collapsed :class:`IPv4Network` or :class:" +"`IPv6Network` objects. *addresses* is an iterator of :class:`IPv4Network` " +"or :class:`IPv6Network` objects. A :exc:`TypeError` is raised if " +"*addresses* contains mixed version objects." msgstr "" #: ../../library/ipaddress.rst:894 @@ -865,8 +863,8 @@ msgstr "" #: ../../library/ipaddress.rst:910 msgid "" -"To support more specific error reporting from class constructors, the module" -" defines the following exceptions:" +"To support more specific error reporting from class constructors, the module " +"defines the following exceptions:" msgstr "" #: ../../library/ipaddress.rst:915 diff --git a/library/ipc.po b/library/ipc.po index 4dc093aae..714a3e33a 100644 --- a/library/ipc.po +++ b/library/ipc.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,8 +36,8 @@ msgstr "" #: ../../library/ipc.rst:10 msgid "" -"Some modules only work for two processes that are on the same machine, e.g. " -":mod:`signal` and :mod:`mmap`. Other modules support networking protocols " +"Some modules only work for two processes that are on the same machine, e.g. :" +"mod:`signal` and :mod:`mmap`. Other modules support networking protocols " "that two or more processes can use to communicate across machines." msgstr "" "Alguns módulos funcionam apenas para dois processos que estão na mesma " diff --git a/library/itertools.po b/library/itertools.po index 2d8dfb3d2..1d113cd6a 100644 --- a/library/itertools.po +++ b/library/itertools.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,14 +26,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: ../../library/itertools.rst:2 -msgid "" -":mod:`itertools` --- Functions creating iterators for efficient looping" +msgid ":mod:`itertools` --- Functions creating iterators for efficient looping" msgstr "" #: ../../library/itertools.rst:16 msgid "" -"This module implements a number of :term:`iterator` building blocks inspired" -" by constructs from APL, Haskell, and SML. Each has been recast in a form " +"This module implements a number of :term:`iterator` building blocks inspired " +"by constructs from APL, Haskell, and SML. Each has been recast in a form " "suitable for Python." msgstr "" @@ -45,8 +46,8 @@ msgstr "" #: ../../library/itertools.rst:25 msgid "" -"For instance, SML provides a tabulation tool: ``tabulate(f)`` which produces" -" a sequence ``f(0), f(1), ...``. The same effect can be achieved in Python " +"For instance, SML provides a tabulation tool: ``tabulate(f)`` which produces " +"a sequence ``f(0), f(1), ...``. The same effect can be achieved in Python " "by combining :func:`map` and :func:`count` to form ``map(f, count())``." msgstr "" @@ -83,7 +84,7 @@ msgstr "Exemplo" #: ../../library/itertools.rst:40 msgid ":func:`count`" -msgstr "" +msgstr ":func:`count`" #: ../../library/itertools.rst:40 msgid "start, [step]" @@ -99,7 +100,7 @@ msgstr "" #: ../../library/itertools.rst:41 msgid ":func:`cycle`" -msgstr "" +msgstr ":func:`cycle`" #: ../../library/itertools.rst:41 msgid "p" @@ -115,7 +116,7 @@ msgstr "" #: ../../library/itertools.rst:42 msgid ":func:`repeat`" -msgstr "" +msgstr ":func:`repeat`" #: ../../library/itertools.rst:42 msgid "elem [,n]" @@ -135,7 +136,7 @@ msgstr "" #: ../../library/itertools.rst:50 msgid ":func:`accumulate`" -msgstr "" +msgstr ":func:`accumulate`" #: ../../library/itertools.rst:50 msgid "p [,func]" @@ -151,7 +152,7 @@ msgstr "" #: ../../library/itertools.rst:51 msgid ":func:`chain`" -msgstr "" +msgstr ":func:`chain`" #: ../../library/itertools.rst:51 ../../library/itertools.rst:61 msgid "p, q, ..." @@ -167,7 +168,7 @@ msgstr "" #: ../../library/itertools.rst:52 msgid ":func:`chain.from_iterable`" -msgstr "" +msgstr ":func:`chain.from_iterable`" #: ../../library/itertools.rst:52 msgid "iterable" @@ -179,7 +180,7 @@ msgstr "" #: ../../library/itertools.rst:53 msgid ":func:`compress`" -msgstr "" +msgstr ":func:`compress`" #: ../../library/itertools.rst:53 msgid "data, selectors" @@ -195,7 +196,7 @@ msgstr "" #: ../../library/itertools.rst:54 msgid ":func:`dropwhile`" -msgstr "" +msgstr ":func:`dropwhile`" #: ../../library/itertools.rst:54 ../../library/itertools.rst:55 #: ../../library/itertools.rst:59 @@ -212,7 +213,7 @@ msgstr "" #: ../../library/itertools.rst:55 msgid ":func:`filterfalse`" -msgstr "" +msgstr ":func:`filterfalse`" #: ../../library/itertools.rst:55 msgid "elements of seq where pred(elem) is false" @@ -224,7 +225,7 @@ msgstr "" #: ../../library/itertools.rst:56 msgid ":func:`groupby`" -msgstr "" +msgstr ":func:`groupby`" #: ../../library/itertools.rst:56 msgid "iterable[, key]" @@ -236,7 +237,7 @@ msgstr "" #: ../../library/itertools.rst:57 msgid ":func:`islice`" -msgstr "" +msgstr ":func:`islice`" #: ../../library/itertools.rst:57 msgid "seq, [start,] stop [, step]" @@ -252,7 +253,7 @@ msgstr "" #: ../../library/itertools.rst:58 msgid ":func:`starmap`" -msgstr "" +msgstr ":func:`starmap`" #: ../../library/itertools.rst:58 msgid "func, seq" @@ -268,7 +269,7 @@ msgstr "" #: ../../library/itertools.rst:59 msgid ":func:`takewhile`" -msgstr "" +msgstr ":func:`takewhile`" #: ../../library/itertools.rst:59 msgid "seq[0], seq[1], until pred fails" @@ -280,7 +281,7 @@ msgstr "" #: ../../library/itertools.rst:60 msgid ":func:`tee`" -msgstr "" +msgstr ":func:`tee`" #: ../../library/itertools.rst:60 msgid "it, n" @@ -292,7 +293,7 @@ msgstr "" #: ../../library/itertools.rst:61 msgid ":func:`zip_longest`" -msgstr "" +msgstr ":func:`zip_longest`" #: ../../library/itertools.rst:61 msgid "(p[0], q[0]), (p[1], q[1]), ..." @@ -308,7 +309,7 @@ msgstr "" #: ../../library/itertools.rst:69 msgid ":func:`product`" -msgstr "" +msgstr ":func:`product`" #: ../../library/itertools.rst:69 msgid "p, q, ... [repeat=1]" @@ -320,7 +321,7 @@ msgstr "" #: ../../library/itertools.rst:70 msgid ":func:`permutations`" -msgstr "" +msgstr ":func:`permutations`" #: ../../library/itertools.rst:70 msgid "p[, r]" @@ -400,9 +401,9 @@ msgid "" "*func* is supplied, it should be a function of two arguments. Elements of " "the input *iterable* may be any type that can be accepted as arguments to " "*func*. (For example, with the default operation of addition, elements may " -"be any addable type including :class:`~decimal.Decimal` or " -":class:`~fractions.Fraction`.) If the input iterable is empty, the output " -"iterable will also be empty." +"be any addable type including :class:`~decimal.Decimal` or :class:" +"`~fractions.Fraction`.) If the input iterable is empty, the output iterable " +"will also be empty." msgstr "" #: ../../library/itertools.rst:101 ../../library/itertools.rst:193 @@ -413,13 +414,13 @@ msgstr "" #: ../../library/itertools.rst:117 msgid "" -"There are a number of uses for the *func* argument. It can be set to " -":func:`min` for a running minimum, :func:`max` for a running maximum, or " -":func:`operator.mul` for a running product. Amortization tables can be " -"built by accumulating interest and applying payments. First-order " -"`recurrence relations `_ " -"can be modeled by supplying the initial value in the iterable and using only" -" the accumulated total in *func* argument::" +"There are a number of uses for the *func* argument. It can be set to :func:" +"`min` for a running minimum, :func:`max` for a running maximum, or :func:" +"`operator.mul` for a running product. Amortization tables can be built by " +"accumulating interest and applying payments. First-order `recurrence " +"relations `_ can be " +"modeled by supplying the initial value in the iterable and using only the " +"accumulated total in *func* argument::" msgstr "" #: ../../library/itertools.rst:147 @@ -459,22 +460,22 @@ msgstr "" #: ../../library/itertools.rst:189 msgid "" -"Elements are treated as unique based on their position, not on their value." -" So if the input elements are unique, there will be no repeat values in " -"each combination." +"Elements are treated as unique based on their position, not on their value. " +"So if the input elements are unique, there will be no repeat values in each " +"combination." msgstr "" #: ../../library/itertools.rst:215 msgid "" -"The code for :func:`combinations` can be also expressed as a subsequence of " -":func:`permutations` after filtering entries where the elements are not in " +"The code for :func:`combinations` can be also expressed as a subsequence of :" +"func:`permutations` after filtering entries where the elements are not in " "sorted order (according to their position in the input pool)::" msgstr "" #: ../../library/itertools.rst:226 msgid "" -"The number of items returned is ``n! / r! / (n-r)!`` when ``0 <= r <= n`` or" -" zero when ``r > n``." +"The number of items returned is ``n! / r! / (n-r)!`` when ``0 <= r <= n`` or " +"zero when ``r > n``." msgstr "" #: ../../library/itertools.rst:231 @@ -485,9 +486,9 @@ msgstr "" #: ../../library/itertools.rst:238 msgid "" -"Elements are treated as unique based on their position, not on their value." -" So if the input elements are unique, the generated combinations will also " -"be unique." +"Elements are treated as unique based on their position, not on their value. " +"So if the input elements are unique, the generated combinations will also be " +"unique." msgstr "" #: ../../library/itertools.rst:261 @@ -504,8 +505,8 @@ msgstr "" #: ../../library/itertools.rst:279 msgid "" -"Make an iterator that filters elements from *data* returning only those that" -" have a corresponding element in *selectors* that evaluates to ``True``. " +"Make an iterator that filters elements from *data* returning only those that " +"have a corresponding element in *selectors* that evaluates to ``True``. " "Stops when either the *data* or *selectors* iterables has been exhausted. " "Roughly equivalent to::" msgstr "" @@ -546,41 +547,41 @@ msgstr "" msgid "" "Make an iterator that drops elements from the iterable as long as the " "predicate is true; afterwards, returns every element. Note, the iterator " -"does not produce *any* output until the predicate first becomes false, so it" -" may have a lengthy start-up time. Roughly equivalent to::" +"does not produce *any* output until the predicate first becomes false, so it " +"may have a lengthy start-up time. Roughly equivalent to::" msgstr "" #: ../../library/itertools.rst:351 msgid "" "Make an iterator that filters elements from iterable returning only those " -"for which the predicate is ``False``. If *predicate* is ``None``, return the" -" items that are false. Roughly equivalent to::" +"for which the predicate is ``False``. If *predicate* is ``None``, return the " +"items that are false. Roughly equivalent to::" msgstr "" #: ../../library/itertools.rst:366 msgid "" "Make an iterator that returns consecutive keys and groups from the " -"*iterable*. The *key* is a function computing a key value for each element." -" If not specified or is ``None``, *key* defaults to an identity function " -"and returns the element unchanged. Generally, the iterable needs to already" -" be sorted on the same key function." +"*iterable*. The *key* is a function computing a key value for each element. " +"If not specified or is ``None``, *key* defaults to an identity function and " +"returns the element unchanged. Generally, the iterable needs to already be " +"sorted on the same key function." msgstr "" #: ../../library/itertools.rst:372 msgid "" -"The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix." -" It generates a break or new group every time the value of the key function" -" changes (which is why it is usually necessary to have sorted the data using" -" the same key function). That behavior differs from SQL's GROUP BY which " +"The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. " +"It generates a break or new group every time the value of the key function " +"changes (which is why it is usually necessary to have sorted the data using " +"the same key function). That behavior differs from SQL's GROUP BY which " "aggregates common elements regardless of their input order." msgstr "" #: ../../library/itertools.rst:378 msgid "" -"The returned group is itself an iterator that shares the underlying iterable" -" with :func:`groupby`. Because the source is shared, when the " -":func:`groupby` object is advanced, the previous group is no longer visible." -" So, if that data is needed later, it should be stored as a list::" +"The returned group is itself an iterator that shares the underlying iterable " +"with :func:`groupby`. Because the source is shared, when the :func:" +"`groupby` object is advanced, the previous group is no longer visible. So, " +"if that data is needed later, it should be stored as a list::" msgstr "" #: ../../library/itertools.rst:390 @@ -590,15 +591,15 @@ msgstr "" #: ../../library/itertools.rst:423 msgid "" "Make an iterator that returns selected elements from the iterable. If " -"*start* is non-zero, then elements from the iterable are skipped until start" -" is reached. Afterward, elements are returned consecutively unless *step* is" -" set higher than one which results in items being skipped. If *stop* is " +"*start* is non-zero, then elements from the iterable are skipped until start " +"is reached. Afterward, elements are returned consecutively unless *step* is " +"set higher than one which results in items being skipped. If *stop* is " "``None``, then iteration continues until the iterator is exhausted, if at " -"all; otherwise, it stops at the specified position. Unlike regular slicing," -" :func:`islice` does not support negative values for *start*, *stop*, or " -"*step*. Can be used to extract related fields from data where the internal " -"structure has been flattened (for example, a multi-line report may list a " -"name field on every third line). Roughly equivalent to::" +"all; otherwise, it stops at the specified position. Unlike regular " +"slicing, :func:`islice` does not support negative values for *start*, " +"*stop*, or *step*. Can be used to extract related fields from data where " +"the internal structure has been flattened (for example, a multi-line report " +"may list a name field on every third line). Roughly equivalent to::" msgstr "" #: ../../library/itertools.rst:458 @@ -627,22 +628,22 @@ msgstr "" #: ../../library/itertools.rst:474 msgid "" -"Elements are treated as unique based on their position, not on their value." -" So if the input elements are unique, there will be no repeat values in " -"each permutation." +"Elements are treated as unique based on their position, not on their value. " +"So if the input elements are unique, there will be no repeat values in each " +"permutation." msgstr "" #: ../../library/itertools.rst:505 msgid "" -"The code for :func:`permutations` can be also expressed as a subsequence of " -":func:`product`, filtered to exclude entries with repeated elements (those " +"The code for :func:`permutations` can be also expressed as a subsequence of :" +"func:`product`, filtered to exclude entries with repeated elements (those " "from the same position in the input pool)::" msgstr "" #: ../../library/itertools.rst:517 msgid "" -"The number of items returned is ``n! / (n-r)!`` when ``0 <= r <= n`` or zero" -" when ``r > n``." +"The number of items returned is ``n! / (n-r)!`` when ``0 <= r <= n`` or zero " +"when ``r > n``." msgstr "" #: ../../library/itertools.rst:522 @@ -658,8 +659,8 @@ msgstr "" #: ../../library/itertools.rst:527 msgid "" -"The nested loops cycle like an odometer with the rightmost element advancing" -" on every iteration. This pattern creates a lexicographic ordering so that " +"The nested loops cycle like an odometer with the rightmost element advancing " +"on every iteration. This pattern creates a lexicographic ordering so that " "if the input's iterables are sorted, the product tuples are emitted in " "sorted order." msgstr "" @@ -680,9 +681,9 @@ msgstr "" #: ../../library/itertools.rst:552 msgid "" "Make an iterator that returns *object* over and over again. Runs " -"indefinitely unless the *times* argument is specified. Used as argument to " -":func:`map` for invariant parameters to the called function. Also used with" -" :func:`zip` to create an invariant part of a tuple record." +"indefinitely unless the *times* argument is specified. Used as argument to :" +"func:`map` for invariant parameters to the called function. Also used with :" +"func:`zip` to create an invariant part of a tuple record." msgstr "" #: ../../library/itertools.rst:568 @@ -696,8 +697,8 @@ msgid "" "Make an iterator that computes the function using arguments obtained from " "the iterable. Used instead of :func:`map` when argument parameters are " "already grouped in tuples from a single iterable (the data has been \"pre-" -"zipped\"). The difference between :func:`map` and :func:`starmap` parallels" -" the distinction between ``function(a,b)`` and ``function(*c)``. Roughly " +"zipped\"). The difference between :func:`map` and :func:`starmap` parallels " +"the distinction between ``function(a,b)`` and ``function(*c)``. Roughly " "equivalent to::" msgstr "" @@ -713,16 +714,16 @@ msgstr "" #: ../../library/itertools.rst:606 msgid "" -"The following Python code helps explain what *tee* does (although the actual" -" implementation is more complex and uses only a single underlying " -":abbr:`FIFO (first-in, first-out)` queue)." +"The following Python code helps explain what *tee* does (although the actual " +"implementation is more complex and uses only a single underlying :abbr:`FIFO " +"(first-in, first-out)` queue)." msgstr "" #: ../../library/itertools.rst:627 msgid "" "Once :func:`tee` has made a split, the original *iterable* should not be " -"used anywhere else; otherwise, the *iterable* could get advanced without the" -" tee objects being informed." +"used anywhere else; otherwise, the *iterable* could get advanced without the " +"tee objects being informed." msgstr "" #: ../../library/itertools.rst:631 @@ -736,24 +737,24 @@ msgstr "" msgid "" "This itertool may require significant auxiliary storage (depending on how " "much temporary data needs to be stored). In general, if one iterator uses " -"most or all of the data before another iterator starts, it is faster to use " -":func:`list` instead of :func:`tee`." +"most or all of the data before another iterator starts, it is faster to use :" +"func:`list` instead of :func:`tee`." msgstr "" #: ../../library/itertools.rst:643 msgid "" -"Make an iterator that aggregates elements from each of the iterables. If the" -" iterables are of uneven length, missing values are filled-in with " +"Make an iterator that aggregates elements from each of the iterables. If the " +"iterables are of uneven length, missing values are filled-in with " "*fillvalue*. Iteration continues until the longest iterable is exhausted. " "Roughly equivalent to::" msgstr "" #: ../../library/itertools.rst:667 msgid "" -"If one of the iterables is potentially infinite, then the " -":func:`zip_longest` function should be wrapped with something that limits " -"the number of calls (for example :func:`islice` or :func:`takewhile`). If " -"not specified, *fillvalue* defaults to ``None``." +"If one of the iterables is potentially infinite, then the :func:" +"`zip_longest` function should be wrapped with something that limits the " +"number of calls (for example :func:`islice` or :func:`takewhile`). If not " +"specified, *fillvalue* defaults to ``None``." msgstr "" #: ../../library/itertools.rst:676 @@ -773,13 +774,13 @@ msgid "" "at a time rather than bringing the whole iterable into memory all at once. " "Code volume is kept small by linking the tools together in a functional " "style which helps eliminate temporary variables. High speed is retained by " -"preferring \"vectorized\" building blocks over the use of for-loops and " -":term:`generator`\\s which incur interpreter overhead." +"preferring \"vectorized\" building blocks over the use of for-loops and :" +"term:`generator`\\s which incur interpreter overhead." msgstr "" #: ../../library/itertools.rst:903 msgid "" -"Note, many of the above recipes can be optimized by replacing global lookups" -" with local variables defined as default values. For example, the " +"Note, many of the above recipes can be optimized by replacing global lookups " +"with local variables defined as default values. For example, the " "*dotproduct* recipe can be written as::" msgstr "" diff --git a/library/json.po b/library/json.po index 9b709e0e0..36274a68f 100644 --- a/library/json.po +++ b/library/json.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,18 +35,18 @@ msgstr "**Código Fonte:** :source:`Lib/json/__init__.py`" #: ../../library/json.rst:14 msgid "" -"`JSON (JavaScript Object Notation) `_, specified by " -":rfc:`7159` (which obsoletes :rfc:`4627`) and by `ECMA-404 `_, specified by :rfc:" +"`7159` (which obsoletes :rfc:`4627`) and by `ECMA-404 `_, is a lightweight " -"data interchange format inspired by `JavaScript " -"`_ object literal syntax (although" -" it is not a strict subset of JavaScript [#rfc-errata]_ )." +"data interchange format inspired by `JavaScript `_ object literal syntax (although it is not a strict subset " +"of JavaScript [#rfc-errata]_ )." msgstr "" #: ../../library/json.rst:21 msgid "" -":mod:`json` exposes an API familiar to users of the standard library " -":mod:`marshal` and :mod:`pickle` modules." +":mod:`json` exposes an API familiar to users of the standard library :mod:" +"`marshal` and :mod:`pickle` modules." msgstr "" #: ../../library/json.rst:24 @@ -93,23 +95,22 @@ msgstr "" #: ../../library/json.rst:132 msgid "" -"Serialize *obj* as a JSON formatted stream to *fp* (a " -"``.write()``-supporting :term:`file-like object`) using this " -":ref:`conversion table `." +"Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-" +"supporting :term:`file-like object`) using this :ref:`conversion table `." msgstr "" #: ../../library/json.rst:136 msgid "" -"If *skipkeys* is true (default: ``False``), then dict keys that are not of a" -" basic type (:class:`str`, :class:`int`, :class:`float`, :class:`bool`, " +"If *skipkeys* is true (default: ``False``), then dict keys that are not of a " +"basic type (:class:`str`, :class:`int`, :class:`float`, :class:`bool`, " "``None``) will be skipped instead of raising a :exc:`TypeError`." msgstr "" #: ../../library/json.rst:140 msgid "" -"The :mod:`json` module always produces :class:`str` objects, not " -":class:`bytes` objects. Therefore, ``fp.write()`` must support :class:`str` " -"input." +"The :mod:`json` module always produces :class:`str` objects, not :class:" +"`bytes` objects. Therefore, ``fp.write()`` must support :class:`str` input." msgstr "" #: ../../library/json.rst:144 ../../library/json.rst:416 @@ -122,27 +123,27 @@ msgstr "" #: ../../library/json.rst:148 msgid "" "If *check_circular* is false (default: ``True``), then the circular " -"reference check for container types will be skipped and a circular reference" -" will result in an :exc:`OverflowError` (or worse)." +"reference check for container types will be skipped and a circular reference " +"will result in an :exc:`OverflowError` (or worse)." msgstr "" #: ../../library/json.rst:152 msgid "" -"If *allow_nan* is false (default: ``True``), then it will be a " -":exc:`ValueError` to serialize out of range :class:`float` values (``nan``, " +"If *allow_nan* is false (default: ``True``), then it will be a :exc:" +"`ValueError` to serialize out of range :class:`float` values (``nan``, " "``inf``, ``-inf``) in strict compliance of the JSON specification. If " -"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, " -"``-Infinity``) will be used." +"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-" +"Infinity``) will be used." msgstr "" #: ../../library/json.rst:158 ../../library/json.rst:435 msgid "" "If *indent* is a non-negative integer or string, then JSON array elements " -"and object members will be pretty-printed with that indent level. An indent" -" level of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the" -" default) selects the most compact representation. Using a positive integer " -"indent indents that many spaces per level. If *indent* is a string (such as" -" ``\"\\t\"``), that string is used to indent each level." +"and object members will be pretty-printed with that indent level. An indent " +"level of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the " +"default) selects the most compact representation. Using a positive integer " +"indent indents that many spaces per level. If *indent* is a string (such as " +"``\"\\t\"``), that string is used to indent each level." msgstr "" #: ../../library/json.rst:165 ../../library/json.rst:442 @@ -165,27 +166,26 @@ msgstr "" msgid "" "If specified, *default* should be a function that gets called for objects " "that can't otherwise be serialized. It should return a JSON encodable " -"version of the object or raise a :exc:`TypeError`. If not specified, " -":exc:`TypeError` is raised." +"version of the object or raise a :exc:`TypeError`. If not specified, :exc:" +"`TypeError` is raised." msgstr "" #: ../../library/json.rst:181 msgid "" -"If *sort_keys* is true (default: ``False``), then the output of dictionaries" -" will be sorted by key." +"If *sort_keys* is true (default: ``False``), then the output of dictionaries " +"will be sorted by key." msgstr "" #: ../../library/json.rst:184 msgid "" -"To use a custom :class:`JSONEncoder` subclass (e.g. one that overrides the " -":meth:`default` method to serialize additional types), specify it with the " +"To use a custom :class:`JSONEncoder` subclass (e.g. one that overrides the :" +"meth:`default` method to serialize additional types), specify it with the " "*cls* kwarg; otherwise :class:`JSONEncoder` is used." msgstr "" #: ../../library/json.rst:188 ../../library/json.rst:261 msgid "" -"All optional parameters are now :ref:`keyword-only `." +"All optional parameters are now :ref:`keyword-only `." msgstr "" #: ../../library/json.rst:193 @@ -197,9 +197,9 @@ msgstr "" #: ../../library/json.rst:202 msgid "" -"Serialize *obj* to a JSON formatted :class:`str` using this :ref:`conversion" -" table `. The arguments have the same meaning as in " -":func:`dump`." +"Serialize *obj* to a JSON formatted :class:`str` using this :ref:`conversion " +"table `. The arguments have the same meaning as in :func:" +"`dump`." msgstr "" #: ../../library/json.rst:208 @@ -213,26 +213,26 @@ msgstr "" #: ../../library/json.rst:217 msgid "" -"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or " -":term:`binary file` containing a JSON document) to a Python object using " -"this :ref:`conversion table `." +"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or :term:" +"`binary file` containing a JSON document) to a Python object using this :ref:" +"`conversion table `." msgstr "" #: ../../library/json.rst:221 msgid "" -"*object_hook* is an optional function that will be called with the result of" -" any object literal decoded (a :class:`dict`). The return value of " +"*object_hook* is an optional function that will be called with the result of " +"any object literal decoded (a :class:`dict`). The return value of " "*object_hook* will be used instead of the :class:`dict`. This feature can " -"be used to implement custom decoders (e.g. `JSON-RPC " -"`_ class hinting)." +"be used to implement custom decoders (e.g. `JSON-RPC `_ class hinting)." msgstr "" #: ../../library/json.rst:227 msgid "" "*object_pairs_hook* is an optional function that will be called with the " "result of any object literal decoded with an ordered list of pairs. The " -"return value of *object_pairs_hook* will be used instead of the " -":class:`dict`. This feature can be used to implement custom decoders. If " +"return value of *object_pairs_hook* will be used instead of the :class:" +"`dict`. This feature can be used to implement custom decoders. If " "*object_hook* is also defined, the *object_pairs_hook* takes priority." msgstr "" @@ -244,16 +244,16 @@ msgstr "" msgid "" "*parse_float*, if specified, will be called with the string of every JSON " "float to be decoded. By default, this is equivalent to ``float(num_str)``. " -"This can be used to use another datatype or parser for JSON floats (e.g. " -":class:`decimal.Decimal`)." +"This can be used to use another datatype or parser for JSON floats (e.g. :" +"class:`decimal.Decimal`)." msgstr "" #: ../../library/json.rst:241 ../../library/json.rst:338 msgid "" "*parse_int*, if specified, will be called with the string of every JSON int " "to be decoded. By default, this is equivalent to ``int(num_str)``. This " -"can be used to use another datatype or parser for JSON integers (e.g. " -":class:`float`)." +"can be used to use another datatype or parser for JSON integers (e.g. :class:" +"`float`)." msgstr "" #: ../../library/json.rst:246 ../../library/json.rst:343 @@ -264,22 +264,21 @@ msgid "" msgstr "" #: ../../library/json.rst:251 -msgid "" -"*parse_constant* doesn't get called on 'null', 'true', 'false' anymore." +msgid "*parse_constant* doesn't get called on 'null', 'true', 'false' anymore." msgstr "" #: ../../library/json.rst:254 msgid "" "To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls`` " -"kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments" -" will be passed to the constructor of the class." +"kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments " +"will be passed to the constructor of the class." msgstr "" #: ../../library/json.rst:258 ../../library/json.rst:277 #: ../../library/json.rst:353 msgid "" -"If the data being deserialized is not a valid JSON document, a " -":exc:`JSONDecodeError` will be raised." +"If the data being deserialized is not a valid JSON document, a :exc:" +"`JSONDecodeError` will be raised." msgstr "" #: ../../library/json.rst:264 @@ -291,8 +290,8 @@ msgstr "" #: ../../library/json.rst:270 msgid "" "Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` " -"instance containing a JSON document) to a Python object using this " -":ref:`conversion table `." +"instance containing a JSON document) to a Python object using this :ref:" +"`conversion table `." msgstr "" #: ../../library/json.rst:274 @@ -400,24 +399,24 @@ msgstr "" #: ../../library/json.rst:319 msgid "" "*object_hook*, if specified, will be called with the result of every JSON " -"object decoded and its return value will be used in place of the given " -":class:`dict`. This can be used to provide custom deserializations (e.g. to" -" support JSON-RPC class hinting)." +"object decoded and its return value will be used in place of the given :" +"class:`dict`. This can be used to provide custom deserializations (e.g. to " +"support JSON-RPC class hinting)." msgstr "" #: ../../library/json.rst:324 msgid "" "*object_pairs_hook*, if specified will be called with the result of every " "JSON object decoded with an ordered list of pairs. The return value of " -"*object_pairs_hook* will be used instead of the :class:`dict`. This feature" -" can be used to implement custom decoders. If *object_hook* is also " -"defined, the *object_pairs_hook* takes priority." +"*object_pairs_hook* will be used instead of the :class:`dict`. This feature " +"can be used to implement custom decoders. If *object_hook* is also defined, " +"the *object_pairs_hook* takes priority." msgstr "" #: ../../library/json.rst:348 msgid "" -"If *strict* is false (``True`` is the default), then control characters will" -" be allowed inside strings. Control characters in this context are those " +"If *strict* is false (``True`` is the default), then control characters will " +"be allowed inside strings. Control characters in this context are those " "with character codes in the 0--31 range, including ``'\\t'`` (tab), " "``'\\n'``, ``'\\r'`` and ``'\\0'``." msgstr "" @@ -441,8 +440,8 @@ msgstr "" #: ../../library/json.rst:369 msgid "" "Decode a JSON document from *s* (a :class:`str` beginning with a JSON " -"document) and return a 2-tuple of the Python representation and the index in" -" *s* where the document ended." +"document) and return a 2-tuple of the Python representation and the index in " +"*s* where the document ended." msgstr "" #: ../../library/json.rst:373 @@ -477,18 +476,17 @@ msgstr "" #: ../../library/json.rst:406 msgid "" -"To extend this to recognize other objects, subclass and implement a " -":meth:`default` method with another method that returns a serializable " -"object for ``o`` if possible, otherwise it should call the superclass " -"implementation (to raise :exc:`TypeError`)." +"To extend this to recognize other objects, subclass and implement a :meth:" +"`default` method with another method that returns a serializable object for " +"``o`` if possible, otherwise it should call the superclass implementation " +"(to raise :exc:`TypeError`)." msgstr "" #: ../../library/json.rst:411 msgid "" "If *skipkeys* is false (the default), then it is a :exc:`TypeError` to " -"attempt encoding of keys that are not :class:`str`, :class:`int`, " -":class:`float` or ``None``. If *skipkeys* is true, such items are simply " -"skipped." +"attempt encoding of keys that are not :class:`str`, :class:`int`, :class:" +"`float` or ``None``. If *skipkeys* is true, such items are simply skipped." msgstr "" #: ../../library/json.rst:420 @@ -501,25 +499,24 @@ msgstr "" #: ../../library/json.rst:425 msgid "" -"If *allow_nan* is true (the default), then ``NaN``, ``Infinity``, and " -"``-Infinity`` will be encoded as such. This behavior is not JSON " -"specification compliant, but is consistent with most JavaScript based " -"encoders and decoders. Otherwise, it will be a :exc:`ValueError` to encode " -"such floats." +"If *allow_nan* is true (the default), then ``NaN``, ``Infinity``, and ``-" +"Infinity`` will be encoded as such. This behavior is not JSON specification " +"compliant, but is consistent with most JavaScript based encoders and " +"decoders. Otherwise, it will be a :exc:`ValueError` to encode such floats." msgstr "" #: ../../library/json.rst:431 msgid "" -"If *sort_keys* is true (default: ``False``), then the output of dictionaries" -" will be sorted by key; this is useful for regression tests to ensure that " +"If *sort_keys* is true (default: ``False``), then the output of dictionaries " +"will be sorted by key; this is useful for regression tests to ensure that " "JSON serializations can be compared on a day-to-day basis." msgstr "" #: ../../library/json.rst:464 msgid "" "Implement this method in a subclass such that it returns a serializable " -"object for *o*, or calls the base implementation (to raise a " -":exc:`TypeError`)." +"object for *o*, or calls the base implementation (to raise a :exc:" +"`TypeError`)." msgstr "" #: ../../library/json.rst:468 @@ -545,8 +542,7 @@ msgid "Exceptions" msgstr "Exceções" #: ../../library/json.rst:505 -msgid "" -"Subclass of :exc:`ValueError` with the following additional attributes:" +msgid "Subclass of :exc:`ValueError` with the following additional attributes:" msgstr "" #: ../../library/json.rst:509 @@ -575,18 +571,17 @@ msgstr "" #: ../../library/json.rst:533 msgid "" -"The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This section" -" details this module's level of compliance with the RFC. For simplicity, " -":class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and parameters " +"The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This section " +"details this module's level of compliance with the RFC. For simplicity, :" +"class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and parameters " "other than those explicitly mentioned, are not considered." msgstr "" #: ../../library/json.rst:539 msgid "" "This module does not comply with the RFC in a strict fashion, implementing " -"some extensions that are valid JavaScript but not valid JSON. In " -"particular:" +"some extensions that are valid JavaScript but not valid JSON. In particular:" msgstr "" #: ../../library/json.rst:542 @@ -595,8 +590,8 @@ msgstr "" #: ../../library/json.rst:543 msgid "" -"Repeated names within an object are accepted, and only the value of the last" -" name-value pair is used." +"Repeated names within an object are accepted, and only the value of the last " +"name-value pair is used." msgstr "" #: ../../library/json.rst:546 @@ -619,8 +614,8 @@ msgstr "" #: ../../library/json.rst:556 msgid "" -"As permitted, though not required, by the RFC, this module's serializer sets" -" *ensure_ascii=True* by default, thus escaping the output so that the " +"As permitted, though not required, by the RFC, this module's serializer sets " +"*ensure_ascii=True* by default, thus escaping the output so that the " "resulting strings only contain ASCII characters." msgstr "" @@ -635,19 +630,19 @@ msgstr "" #: ../../library/json.rst:565 msgid "" "The RFC prohibits adding a byte order mark (BOM) to the start of a JSON " -"text, and this module's serializer does not add a BOM to its output. The RFC" -" permits, but does not require, JSON deserializers to ignore an initial BOM " +"text, and this module's serializer does not add a BOM to its output. The RFC " +"permits, but does not require, JSON deserializers to ignore an initial BOM " "in their input. This module's deserializer raises a :exc:`ValueError` when " "an initial BOM is present." msgstr "" #: ../../library/json.rst:571 msgid "" -"The RFC does not explicitly forbid JSON strings which contain byte sequences" -" that don't correspond to valid Unicode characters (e.g. unpaired UTF-16 " -"surrogates), but it does note that they may cause interoperability problems." -" By default, this module accepts and outputs (when present in the original " -":class:`str`) code points for such sequences." +"The RFC does not explicitly forbid JSON strings which contain byte sequences " +"that don't correspond to valid Unicode characters (e.g. unpaired UTF-16 " +"surrogates), but it does note that they may cause interoperability problems. " +"By default, this module accepts and outputs (when present in the original :" +"class:`str`) code points for such sequences." msgstr "" #: ../../library/json.rst:579 @@ -656,10 +651,9 @@ msgstr "" #: ../../library/json.rst:581 msgid "" -"The RFC does not permit the representation of infinite or NaN number values." -" Despite that, by default, this module accepts and outputs ``Infinity``, " -"``-Infinity``, and ``NaN`` as if they were valid JSON number literal " -"values::" +"The RFC does not permit the representation of infinite or NaN number values. " +"Despite that, by default, this module accepts and outputs ``Infinity``, ``-" +"Infinity``, and ``NaN`` as if they were valid JSON number literal values::" msgstr "" #: ../../library/json.rst:596 @@ -694,15 +688,15 @@ msgid "" "The old version of JSON specified by the obsolete :rfc:`4627` required that " "the top-level value of a JSON text must be either a JSON object or array " "(Python :class:`dict` or :class:`list`), and could not be a JSON null, " -"boolean, number, or string value. :rfc:`7159` removed that restriction, and" -" this module does not and has never implemented that restriction in either " +"boolean, number, or string value. :rfc:`7159` removed that restriction, and " +"this module does not and has never implemented that restriction in either " "its serializer or its deserializer." msgstr "" #: ../../library/json.rst:626 msgid "" -"Regardless, for maximum interoperability, you may wish to voluntarily adhere" -" to the restriction yourself." +"Regardless, for maximum interoperability, you may wish to voluntarily adhere " +"to the restriction yourself." msgstr "" #: ../../library/json.rst:631 @@ -739,8 +733,8 @@ msgstr "" msgid "" "When serializing to JSON, beware any such limitations in applications that " "may consume your JSON. In particular, it is common for JSON numbers to be " -"deserialized into IEEE 754 double precision numbers and thus subject to that" -" representation's range and precision limitations. This is especially " +"deserialized into IEEE 754 double precision numbers and thus subject to that " +"representation's range and precision limitations. This is especially " "relevant when serializing Python :class:`int` values of extremely large " "magnitude, or when serializing instances of \"exotic\" numerical types such " "as :class:`decimal.Decimal`." @@ -748,7 +742,7 @@ msgstr "" #: ../../library/json.rst:656 msgid "Command Line Interface" -msgstr "" +msgstr "Interface de Linha de Comando" #: ../../library/json.rst:661 msgid "**Source code:** :source:`Lib/json/tool.py`" @@ -762,8 +756,8 @@ msgstr "" #: ../../library/json.rst:668 msgid "" -"If the optional ``infile`` and ``outfile`` arguments are not specified, " -":attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:" +"If the optional ``infile`` and ``outfile`` arguments are not specified, :" +"attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:" msgstr "" #: ../../library/json.rst:680 @@ -786,8 +780,8 @@ msgstr "" #: ../../library/json.rst:711 msgid "" -"Write the output of the *infile* to the given *outfile*. Otherwise, write it" -" to :attr:`sys.stdout`." +"Write the output of the *infile* to the given *outfile*. Otherwise, write it " +"to :attr:`sys.stdout`." msgstr "" #: ../../library/json.rst:716 @@ -804,8 +798,8 @@ msgstr "Notas de rodapé" #: ../../library/json.rst:727 msgid "" -"As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE " -"SEPARATOR) and U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas " -"JavaScript (as of ECMAScript Edition 5.1) does not." +"As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) " +"and U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript " +"(as of ECMAScript Edition 5.1) does not." msgstr "" diff --git a/library/keyword.po b/library/keyword.po index 0c93b0eb6..c90b3838a 100644 --- a/library/keyword.po +++ b/library/keyword.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,22 +33,17 @@ msgstr "**Código Fonte:** :source:`Lib/keyword.py`" #: ../../library/keyword.rst:11 msgid "" -"This module allows a Python program to determine if a string is a keyword." +"This module allows a Python program to determine if a string is a :ref:" +"`keyword `." msgstr "" -"Este módulo permite que um programa Python determine se uma String é uma " -"palavra-chave." -#: ../../library/keyword.rst:16 -msgid "Return true if *s* is a Python keyword." -msgstr "Retornar verdadeiro se *s* for uma palavra-chave Python." +#: ../../library/keyword.rst:17 +msgid "Return ``True`` if *s* is a Python :ref:`keyword `." +msgstr "" -#: ../../library/keyword.rst:21 +#: ../../library/keyword.rst:22 msgid "" -"Sequence containing all the keywords defined for the interpreter. If any " -"keywords are defined to only be active when particular :mod:`__future__` " -"statements are in effect, these will be included as well." +"Sequence containing all the :ref:`keywords ` defined for the " +"interpreter. If any keywords are defined to only be active when particular :" +"mod:`__future__` statements are in effect, these will be included as well." msgstr "" -"Sequência contendo todas as palavras-chave definidas para o intérprete. Se " -"as palavras-chave forem definidas para serem apenas ativas quando as " -"declarações particulares :mod:`__future__` estão em vigor, elas também serão" -" incluídas." diff --git a/library/language.po b/library/language.po index 821e9a9b2..a649259c0 100644 --- a/library/language.po +++ b/library/language.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/linecache.po b/library/linecache.po index faee04ae2..582e8a969 100644 --- a/library/linecache.po +++ b/library/linecache.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Sheila Gomes , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +27,7 @@ msgstr "" #: ../../library/linecache.rst:2 msgid ":mod:`linecache` --- Random access to text lines" -msgstr "" +msgstr ":mod:`linecache` --- Acesso aleatório a linhas de texto" #: ../../library/linecache.rst:9 msgid "**Source code:** :source:`Lib/linecache.py`" @@ -34,28 +37,40 @@ msgstr "**Código Fonte:** :source:`Lib/linecache.py`" msgid "" "The :mod:`linecache` module allows one to get any line from a Python source " "file, while attempting to optimize internally, using a cache, the common " -"case where many lines are read from a single file. This is used by the " -":mod:`traceback` module to retrieve source lines for inclusion in the " -"formatted traceback." +"case where many lines are read from a single file. This is used by the :mod:" +"`traceback` module to retrieve source lines for inclusion in the formatted " +"traceback." msgstr "" +"O módulo :mod:`linecache` permite obter qualquer linha de um arquivo fonte " +"Python, enquanto tenta otimizar internamente, usando um cache, o caso comum " +"em que muitas linhas são lidas em um único arquivo. Isso é usado pelo " +"módulo :mod:`traceback` para recuperar as linhas de origem para inclusão no " +"traceback (situação da pilha de execução) formatado." #: ../../library/linecache.rst:18 msgid "" -"The :func:`tokenize.open` function is used to open files. This function uses" -" :func:`tokenize.detect_encoding` to get the encoding of the file; in the " -"absence of an encoding token, the file encoding defaults to UTF-8." +"The :func:`tokenize.open` function is used to open files. This function " +"uses :func:`tokenize.detect_encoding` to get the encoding of the file; in " +"the absence of an encoding token, the file encoding defaults to UTF-8." msgstr "" +"A função :func:`tokenize.open` é usada para abrir arquivos. Esta função usa :" +"func:`tokenize.detect_encoding` para obter a codificação do arquivo; na " +"ausência de um token de codificação, o padrão de codificação do arquivo é " +"UTF-8." #: ../../library/linecache.rst:22 msgid "The :mod:`linecache` module defines the following functions:" -msgstr "" +msgstr "O módulo :mod:`linecache` define as seguintes funções:" #: ../../library/linecache.rst:27 msgid "" -"Get line *lineno* from file named *filename*. This function will never raise" -" an exception --- it will return ``''`` on errors (the terminating newline " +"Get line *lineno* from file named *filename*. This function will never raise " +"an exception --- it will return ``''`` on errors (the terminating newline " "character will be included for lines that are found)." msgstr "" +"Obtém a linha *lineno* do arquivo chamado *filename*. Essa função nunca " +"levanta uma exceção --- ela retornará ``''`` em erros (o caractere de nova " +"linha final será incluído para as linhas encontradas)." #: ../../library/linecache.rst:33 msgid "" @@ -70,13 +85,18 @@ msgid "" "Clear the cache. Use this function if you no longer need lines from files " "previously read using :func:`getline`." msgstr "" +"Limpa o cache. Use esta função se você não precisar mais de linhas de " +"arquivos lidos anteriormente usando :func:`getline`." #: ../../library/linecache.rst:47 msgid "" "Check the cache for validity. Use this function if files in the cache may " -"have changed on disk, and you require the updated version. If *filename* is" -" omitted, it will check all the entries in the cache." +"have changed on disk, and you require the updated version. If *filename* is " +"omitted, it will check all the entries in the cache." msgstr "" +"Verifica a validade do cache. Use esta função se os arquivos no cache " +"tiverem sido alterados no disco e você precisar da versão atualizada. Se " +"*filename* for omitido, ele verificará todas as entradas no cache." #: ../../library/linecache.rst:53 msgid "" @@ -85,6 +105,11 @@ msgid "" "later call. This avoids doing I/O until a line is actually needed, without " "having to carry the module globals around indefinitely." msgstr "" +"Captura detalhes suficientes sobre um módulo não baseado em arquivo para " +"permitir obter suas linhas posteriormente via :func:`getline` mesmo se " +"*module_globals* for ``None`` na chamada posterior. Isso evita a execução de " +"E/S até que uma linha seja realmente necessária, sem ter que carregar o " +"módulo global indefinidamente." #: ../../library/linecache.rst:60 msgid "Example::" diff --git a/library/locale.po b/library/locale.po index 53a0fb6c1..773318e59 100644 --- a/library/locale.po +++ b/library/locale.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,13 +43,12 @@ msgstr "" #: ../../library/locale.rst:21 msgid "" -"The :mod:`locale` module is implemented on top of the :mod:`_locale` module," -" which in turn uses an ANSI C locale implementation if available." +"The :mod:`locale` module is implemented on top of the :mod:`_locale` module, " +"which in turn uses an ANSI C locale implementation if available." msgstr "" #: ../../library/locale.rst:24 -msgid "" -"The :mod:`locale` module defines the following exception and functions:" +msgid "The :mod:`locale` module defines the following exception and functions:" msgstr "" #: ../../library/locale.rst:29 @@ -58,9 +59,9 @@ msgstr "" #: ../../library/locale.rst:35 msgid "" -"If *locale* is given and not ``None``, :func:`setlocale` modifies the locale" -" setting for the *category*. The available categories are listed in the data" -" description below. *locale* may be a string, or an iterable of two strings " +"If *locale* is given and not ``None``, :func:`setlocale` modifies the locale " +"setting for the *category*. The available categories are listed in the data " +"description below. *locale* may be a string, or an iterable of two strings " "(language code and encoding). If it's an iterable, it's converted to a " "locale name using the locale aliasing engine. An empty string specifies the " "user's default settings. If the modification of the locale fails, the " @@ -76,8 +77,8 @@ msgstr "" #: ../../library/locale.rst:46 msgid "" -":func:`setlocale` is not thread-safe on most systems. Applications typically" -" start with a call of ::" +":func:`setlocale` is not thread-safe on most systems. Applications typically " +"start with a call of ::" msgstr "" #: ../../library/locale.rst:52 @@ -108,11 +109,11 @@ msgstr "Significado" #: ../../library/locale.rst:67 msgid ":const:`LC_NUMERIC`" -msgstr "" +msgstr ":const:`LC_NUMERIC`" #: ../../library/locale.rst:67 msgid "``'decimal_point'``" -msgstr "" +msgstr "``'decimal_point'``" #: ../../library/locale.rst:67 msgid "Decimal point character." @@ -120,19 +121,19 @@ msgstr "" #: ../../library/locale.rst:69 msgid "``'grouping'``" -msgstr "" +msgstr "``'grouping'``" #: ../../library/locale.rst:69 msgid "" "Sequence of numbers specifying which relative positions the " -"``'thousands_sep'`` is expected. If the sequence is terminated with " -":const:`CHAR_MAX`, no further grouping is performed. If the sequence " -"terminates with a ``0``, the last group size is repeatedly used." +"``'thousands_sep'`` is expected. If the sequence is terminated with :const:" +"`CHAR_MAX`, no further grouping is performed. If the sequence terminates " +"with a ``0``, the last group size is repeatedly used." msgstr "" #: ../../library/locale.rst:80 msgid "``'thousands_sep'``" -msgstr "" +msgstr "``'thousands_sep'``" #: ../../library/locale.rst:80 msgid "Character used between groups." @@ -140,11 +141,11 @@ msgstr "" #: ../../library/locale.rst:82 msgid ":const:`LC_MONETARY`" -msgstr "" +msgstr ":const:`LC_MONETARY`" #: ../../library/locale.rst:82 msgid "``'int_curr_symbol'``" -msgstr "" +msgstr "``'int_curr_symbol'``" #: ../../library/locale.rst:82 msgid "International currency symbol." @@ -152,7 +153,7 @@ msgstr "" #: ../../library/locale.rst:84 msgid "``'currency_symbol'``" -msgstr "" +msgstr "``'currency_symbol'``" #: ../../library/locale.rst:84 msgid "Local currency symbol." @@ -160,7 +161,7 @@ msgstr "" #: ../../library/locale.rst:86 msgid "``'p_cs_precedes/n_cs_precedes'``" -msgstr "" +msgstr "``'p_cs_precedes/n_cs_precedes'``" #: ../../library/locale.rst:86 msgid "" @@ -170,7 +171,7 @@ msgstr "" #: ../../library/locale.rst:91 msgid "``'p_sep_by_space/n_sep_by_space'``" -msgstr "" +msgstr "``'p_sep_by_space/n_sep_by_space'``" #: ../../library/locale.rst:91 msgid "" @@ -180,7 +181,7 @@ msgstr "" #: ../../library/locale.rst:96 msgid "``'mon_decimal_point'``" -msgstr "" +msgstr "``'mon_decimal_point'``" #: ../../library/locale.rst:96 msgid "Decimal point used for monetary values." @@ -188,7 +189,7 @@ msgstr "" #: ../../library/locale.rst:99 msgid "``'frac_digits'``" -msgstr "" +msgstr "``'frac_digits'``" #: ../../library/locale.rst:99 msgid "" @@ -197,7 +198,7 @@ msgstr "" #: ../../library/locale.rst:103 msgid "``'int_frac_digits'``" -msgstr "" +msgstr "``'int_frac_digits'``" #: ../../library/locale.rst:103 msgid "" @@ -207,7 +208,7 @@ msgstr "" #: ../../library/locale.rst:107 msgid "``'mon_thousands_sep'``" -msgstr "" +msgstr "``'mon_thousands_sep'``" #: ../../library/locale.rst:107 msgid "Group separator used for monetary values." @@ -215,7 +216,7 @@ msgstr "" #: ../../library/locale.rst:110 msgid "``'mon_grouping'``" -msgstr "" +msgstr "``'mon_grouping'``" #: ../../library/locale.rst:110 msgid "Equivalent to ``'grouping'``, used for monetary values." @@ -223,7 +224,7 @@ msgstr "" #: ../../library/locale.rst:113 msgid "``'positive_sign'``" -msgstr "" +msgstr "``'positive_sign'``" #: ../../library/locale.rst:113 msgid "Symbol used to annotate a positive monetary value." @@ -231,7 +232,7 @@ msgstr "" #: ../../library/locale.rst:116 msgid "``'negative_sign'``" -msgstr "" +msgstr "``'negative_sign'``" #: ../../library/locale.rst:116 msgid "Symbol used to annotate a negative monetary value." @@ -239,7 +240,7 @@ msgstr "" #: ../../library/locale.rst:119 msgid "``'p_sign_posn/n_sign_posn'``" -msgstr "" +msgstr "``'p_sign_posn/n_sign_posn'``" #: ../../library/locale.rst:119 msgid "" @@ -248,8 +249,8 @@ msgstr "" #: ../../library/locale.rst:124 msgid "" -"All numeric values can be set to :const:`CHAR_MAX` to indicate that there is" -" no value specified in this locale." +"All numeric values can be set to :const:`CHAR_MAX` to indicate that there is " +"no value specified in this locale." msgstr "" #: ../../library/locale.rst:127 @@ -268,7 +269,7 @@ msgstr "Explanação" #: ../../library/locale.rst:132 msgid "``0``" -msgstr "" +msgstr "``0``" #: ../../library/locale.rst:132 msgid "Currency and value are surrounded by parentheses." @@ -308,7 +309,7 @@ msgstr "" #: ../../library/locale.rst:147 msgid "``CHAR_MAX``" -msgstr "" +msgstr "``CHAR_MAX``" #: ../../library/locale.rst:147 msgid "Nothing is specified in this locale." @@ -317,9 +318,8 @@ msgstr "" #: ../../library/locale.rst:150 msgid "" "The function sets temporarily the ``LC_CTYPE`` locale to the ``LC_NUMERIC`` " -"locale or the ``LC_MONETARY`` locale if locales are different and numeric or" -" monetary strings are non-ASCII. This temporary change affects other " -"threads." +"locale or the ``LC_MONETARY`` locale if locales are different and numeric or " +"monetary strings are non-ASCII. This temporary change affects other threads." msgstr "" #: ../../library/locale.rst:154 @@ -369,8 +369,8 @@ msgstr "" #: ../../library/locale.rst:192 msgid "" -"Get a format string for :func:`time.strftime` to represent time in the am/pm" -" format." +"Get a format string for :func:`time.strftime` to represent time in the am/pm " +"format." msgstr "" #: ../../library/locale.rst:197 @@ -380,8 +380,7 @@ msgstr "" #: ../../library/locale.rst:201 msgid "" "This follows the US convention of :const:`DAY_1` being Sunday, not the " -"international convention (ISO 8601) that Monday is the first day of the " -"week." +"international convention (ISO 8601) that Monday is the first day of the week." msgstr "" #: ../../library/locale.rst:207 @@ -425,8 +424,8 @@ msgstr "" #: ../../library/locale.rst:242 msgid "" "Get the currency symbol, preceded by \"-\" if the symbol should appear " -"before the value, \"+\" if the symbol should appear after the value, or " -"\".\" if the symbol should replace the radix character." +"before the value, \"+\" if the symbol should appear after the value, or \"." +"\" if the symbol should replace the radix character." msgstr "" #: ../../library/locale.rst:248 @@ -482,8 +481,8 @@ msgstr "" #: ../../library/locale.rst:287 msgid "" -"According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``" -" runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` " +"According to POSIX, a program which has not called ``setlocale(LC_ALL, '')`` " +"runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` " "lets it use the default locale as defined by the :envvar:`LANG` variable. " "Since we do not want to interfere with the current locale setting we thus " "emulate the behavior in the way described above." @@ -492,8 +491,8 @@ msgstr "" #: ../../library/locale.rst:293 msgid "" "To maintain compatibility with other platforms, not only the :envvar:`LANG` " -"variable is tested, but a list of variables given as envvars parameter. The" -" first found to be defined will be used. *envvars* defaults to the search " +"variable is tested, but a list of variables given as envvars parameter. The " +"first found to be defined will be used. *envvars* defaults to the search " "path used in GNU gettext; it must always contain the variable name " "``'LANG'``. The GNU gettext search path contains ``'LC_ALL'``, " "``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order." @@ -509,24 +508,23 @@ msgstr "" #: ../../library/locale.rst:307 msgid "" "Returns the current setting for the given locale category as sequence " -"containing *language code*, *encoding*. *category* may be one of the " -":const:`LC_\\*` values except :const:`LC_ALL`. It defaults to " -":const:`LC_CTYPE`." +"containing *language code*, *encoding*. *category* may be one of the :const:" +"`LC_\\*` values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`." msgstr "" #: ../../library/locale.rst:318 msgid "" -"Return the encoding used for text data, according to user preferences. User" -" preferences are expressed differently on different systems, and might not " -"be available programmatically on some systems, so this function only returns" -" a guess." +"Return the encoding used for text data, according to user preferences. User " +"preferences are expressed differently on different systems, and might not be " +"available programmatically on some systems, so this function only returns a " +"guess." msgstr "" #: ../../library/locale.rst:323 msgid "" "On some systems, it is necessary to invoke :func:`setlocale` to obtain the " -"user preferences, so this function is not thread-safe. If invoking setlocale" -" is not necessary or desired, *do_setlocale* should be set to ``False``." +"user preferences, so this function is not thread-safe. If invoking setlocale " +"is not necessary or desired, *do_setlocale* should be set to ``False``." msgstr "" #: ../../library/locale.rst:327 @@ -537,8 +535,8 @@ msgstr "" #: ../../library/locale.rst:330 msgid "" -"The function now always returns ``UTF-8`` on Android or if the UTF-8 mode is" -" enabled." +"The function now always returns ``UTF-8`` on Android or if the UTF-8 mode is " +"enabled." msgstr "" #: ../../library/locale.rst:337 @@ -582,8 +580,8 @@ msgstr "" #: ../../library/locale.rst:372 msgid "" -"Formats a number *val* according to the current :const:`LC_NUMERIC` setting." -" The format follows the conventions of the ``%`` operator. For floating " +"Formats a number *val* according to the current :const:`LC_NUMERIC` setting. " +"The format follows the conventions of the ``%`` operator. For floating " "point values, the decimal point is modified if appropriate. If *grouping* " "is true, also takes the grouping into account." msgstr "" @@ -647,14 +645,14 @@ msgstr "" #: ../../library/locale.rst:420 msgid "" -"Converts a string into a normalized number string, following the " -":const:`LC_NUMERIC` settings." +"Converts a string into a normalized number string, following the :const:" +"`LC_NUMERIC` settings." msgstr "" #: ../../library/locale.rst:428 msgid "" -"Converts a string to a floating point number, following the " -":const:`LC_NUMERIC` settings." +"Converts a string to a floating point number, following the :const:" +"`LC_NUMERIC` settings." msgstr "" #: ../../library/locale.rst:434 @@ -665,21 +663,21 @@ msgstr "" #: ../../library/locale.rst:441 msgid "" -"Locale category for the character type functions. Depending on the settings" -" of this category, the functions of module :mod:`string` dealing with case " +"Locale category for the character type functions. Depending on the settings " +"of this category, the functions of module :mod:`string` dealing with case " "change their behaviour." msgstr "" #: ../../library/locale.rst:448 msgid "" -"Locale category for sorting strings. The functions :func:`strcoll` and " -":func:`strxfrm` of the :mod:`locale` module are affected." +"Locale category for sorting strings. The functions :func:`strcoll` and :" +"func:`strxfrm` of the :mod:`locale` module are affected." msgstr "" #: ../../library/locale.rst:454 msgid "" -"Locale category for the formatting of time. The function " -":func:`time.strftime` follows these conventions." +"Locale category for the formatting of time. The function :func:`time." +"strftime` follows these conventions." msgstr "" #: ../../library/locale.rst:460 @@ -698,16 +696,16 @@ msgstr "" #: ../../library/locale.rst:474 msgid "" -"Locale category for formatting numbers. The functions :func:`.format`, " -":func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`locale` module are " +"Locale category for formatting numbers. The functions :func:`.format`, :" +"func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`locale` module are " "affected by that category. All other numeric formatting operations are not " "affected." msgstr "" #: ../../library/locale.rst:482 msgid "" -"Combination of all locale settings. If this flag is used when the locale is" -" changed, setting the locale for all categories is attempted. If that fails " +"Combination of all locale settings. If this flag is used when the locale is " +"changed, setting the locale for all categories is attempted. If that fails " "for any category, no category is changed at all. When the locale is " "retrieved using this flag, a string indicating the setting for all " "categories is returned. This string can be later used to restore the " @@ -716,8 +714,8 @@ msgstr "" #: ../../library/locale.rst:491 msgid "" -"This is a symbolic constant used for different values returned by " -":func:`localeconv`." +"This is a symbolic constant used for different values returned by :func:" +"`localeconv`." msgstr "" #: ../../library/locale.rst:495 @@ -739,8 +737,8 @@ msgstr "" #: ../../library/locale.rst:515 msgid "" "Initially, when a program is started, the locale is the ``C`` locale, no " -"matter what the user's preferred locale is. There is one exception: the " -":data:`LC_CTYPE` category is changed at startup to set the current locale " +"matter what the user's preferred locale is. There is one exception: the :" +"data:`LC_CTYPE` category is changed at startup to set the current locale " "encoding to the user's preferred locale encoding. The program must " "explicitly say that it wants the user's preferred locale settings for other " "categories by calling ``setlocale(LC_ALL, '')``." @@ -767,9 +765,9 @@ msgstr "" #: ../../library/locale.rst:534 msgid "" -"The only way to perform numeric operations according to the locale is to use" -" the special functions defined by this module: :func:`atof`, :func:`atoi`, " -":func:`.format`, :func:`.str`." +"The only way to perform numeric operations according to the locale is to use " +"the special functions defined by this module: :func:`atof`, :func:`atoi`, :" +"func:`.format`, :func:`.str`." msgstr "" #: ../../library/locale.rst:538 @@ -777,8 +775,8 @@ msgid "" "There is no way to perform case conversions and character classifications " "according to the locale. For (Unicode) text strings these are done " "according to the character value only, while for byte strings, the " -"conversions and classifications are done according to the ASCII value of the" -" byte, and bytes whose high bit is set (i.e., non-ASCII bytes) are never " +"conversions and classifications are done according to the ASCII value of the " +"byte, and bytes whose high bit is set (i.e., non-ASCII bytes) are never " "converted or considered part of a character class such as letter or " "whitespace." msgstr "" @@ -800,8 +798,8 @@ msgid "" "When Python code uses the :mod:`locale` module to change the locale, this " "also affects the embedding application. If the embedding application " "doesn't want this to happen, it should remove the :mod:`_locale` extension " -"module (which does all the work) from the table of built-in modules in the " -":file:`config.c` file, and make sure that the :mod:`_locale` module is not " +"module (which does all the work) from the table of built-in modules in the :" +"file:`config.c` file, and make sure that the :mod:`_locale` module is not " "accessible as a shared library." msgstr "" @@ -812,20 +810,20 @@ msgstr "" #: ../../library/locale.rst:575 msgid "" "The locale module exposes the C library's gettext interface on systems that " -"provide this interface. It consists of the functions :func:`!gettext`, " -":func:`!dgettext`, :func:`!dcgettext`, :func:`!textdomain`, " -":func:`!bindtextdomain`, and :func:`!bind_textdomain_codeset`. These are " -"similar to the same functions in the :mod:`gettext` module, but use the C " -"library's binary format for message catalogs, and the C library's search " -"algorithms for locating message catalogs." +"provide this interface. It consists of the functions :func:`!gettext`, :" +"func:`!dgettext`, :func:`!dcgettext`, :func:`!textdomain`, :func:`!" +"bindtextdomain`, and :func:`!bind_textdomain_codeset`. These are similar to " +"the same functions in the :mod:`gettext` module, but use the C library's " +"binary format for message catalogs, and the C library's search algorithms " +"for locating message catalogs." msgstr "" #: ../../library/locale.rst:582 msgid "" "Python applications should normally find no need to invoke these functions, " "and should use :mod:`gettext` instead. A known exception to this rule are " -"applications that link with additional C libraries which internally invoke " -":c:func:`gettext` or :c:func:`dcgettext`. For these applications, it may be" -" necessary to bind the text domain, so that the libraries can properly " -"locate their message catalogs." +"applications that link with additional C libraries which internally invoke :" +"c:func:`gettext` or :c:func:`dcgettext`. For these applications, it may be " +"necessary to bind the text domain, so that the libraries can properly locate " +"their message catalogs." msgstr "" diff --git a/library/logging.config.po b/library/logging.config.po index cda9256d5..c55da29fc 100644 --- a/library/logging.config.po +++ b/library/logging.config.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Katyanna Moura , 2019 -# +# Hildeberto Abreu Magalhães , 2019 +# Marco Rougeth , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-24 10:27+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" -"Last-Translator: Katyanna Moura , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,15 +40,15 @@ msgstr "" #: ../../library/logging.config.rst:17 msgid ":ref:`Basic Tutorial `" -msgstr "" +msgstr ":ref:`Basic Tutorial `" #: ../../library/logging.config.rst:18 msgid ":ref:`Advanced Tutorial `" -msgstr "" +msgstr ":ref:`Advanced Tutorial `" #: ../../library/logging.config.rst:19 msgid ":ref:`Logging Cookbook `" -msgstr "" +msgstr ":ref:`Logging Cookbook `" #: ../../library/logging.config.rst:23 msgid "This section describes the API for configuring the logging module." @@ -59,9 +62,9 @@ msgstr "" msgid "" "The following functions configure the logging module. They are located in " "the :mod:`logging.config` module. Their use is optional --- you can " -"configure the logging module using these functions or by making calls to the" -" main API (defined in :mod:`logging` itself) and defining handlers which are" -" declared either in :mod:`logging` or :mod:`logging.handlers`." +"configure the logging module using these functions or by making calls to the " +"main API (defined in :mod:`logging` itself) and defining handlers which are " +"declared either in :mod:`logging` or :mod:`logging.handlers`." msgstr "" #: ../../library/logging.config.rst:38 @@ -72,9 +75,9 @@ msgstr "" #: ../../library/logging.config.rst:42 msgid "" -"If an error is encountered during configuration, this function will raise a " -":exc:`ValueError`, :exc:`TypeError`, :exc:`AttributeError` or " -":exc:`ImportError` with a suitably descriptive message. The following is a " +"If an error is encountered during configuration, this function will raise a :" +"exc:`ValueError`, :exc:`TypeError`, :exc:`AttributeError` or :exc:" +"`ImportError` with a suitably descriptive message. The following is a " "(possibly incomplete) list of conditions which will raise an error:" msgstr "" @@ -107,11 +110,11 @@ msgstr "" #: ../../library/logging.config.rst:56 msgid "" "Parsing is performed by the :class:`DictConfigurator` class, whose " -"constructor is passed the dictionary used for configuration, and has a " -":meth:`configure` method. The :mod:`logging.config` module has a callable " -"attribute :attr:`dictConfigClass` which is initially set to " -":class:`DictConfigurator`. You can replace the value of " -":attr:`dictConfigClass` with a suitable implementation of your own." +"constructor is passed the dictionary used for configuration, and has a :meth:" +"`configure` method. The :mod:`logging.config` module has a callable " +"attribute :attr:`dictConfigClass` which is initially set to :class:" +"`DictConfigurator`. You can replace the value of :attr:`dictConfigClass` " +"with a suitable implementation of your own." msgstr "" #: ../../library/logging.config.rst:64 @@ -126,8 +129,8 @@ msgid "" "For example, a subclass of :class:`DictConfigurator` could call " "``DictConfigurator.__init__()`` in its own :meth:`__init__()`, then set up " "custom prefixes which would be usable in the subsequent :meth:`configure` " -"call. :attr:`dictConfigClass` would be bound to this new subclass, and then " -":func:`dictConfig` could be called exactly as in the default, uncustomized " +"call. :attr:`dictConfigClass` would be bound to this new subclass, and then :" +"func:`dictConfig` could be called exactly as in the default, uncustomized " "state." msgstr "" @@ -147,14 +150,14 @@ msgstr "" #: ../../library/logging.config.rst:90 msgid "" -"A filename, or a file-like object, or an instance derived from " -":class:`~configparser.RawConfigParser`. If a ``RawConfigParser``-derived " -"instance is passed, it is used as is. Otherwise, a " -":class:`~configparser.Configparser` is instantiated, and the configuration " -"read by it from the object passed in ``fname``. If that has a " -":meth:`readline` method, it is assumed to be a file-like object and read " -"using :meth:`~configparser.ConfigParser.read_file`; otherwise, it is assumed" -" to be a filename and passed to :meth:`~configparser.ConfigParser.read`." +"A filename, or a file-like object, or an instance derived from :class:" +"`~configparser.RawConfigParser`. If a ``RawConfigParser``-derived instance " +"is passed, it is used as is. Otherwise, a :class:`~configparser." +"Configparser` is instantiated, and the configuration read by it from the " +"object passed in ``fname``. If that has a :meth:`readline` method, it is " +"assumed to be a file-like object and read using :meth:`~configparser." +"ConfigParser.read_file`; otherwise, it is assumed to be a filename and " +"passed to :meth:`~configparser.ConfigParser.read`." msgstr "" #: ../../library/logging.config.rst:102 @@ -193,13 +196,13 @@ msgstr "" #: ../../library/logging.config.rst:126 msgid "" "Starts up a socket server on the specified port, and listens for new " -"configurations. If no port is specified, the module's default " -":const:`DEFAULT_LOGGING_CONFIG_PORT` is used. Logging configurations will be" -" sent as a file suitable for processing by :func:`dictConfig` or " -":func:`fileConfig`. Returns a :class:`~threading.Thread` instance on which " -"you can call :meth:`~threading.Thread.start` to start the server, and which " -"you can :meth:`~threading.Thread.join` when appropriate. To stop the server," -" call :func:`stopListening`." +"configurations. If no port is specified, the module's default :const:" +"`DEFAULT_LOGGING_CONFIG_PORT` is used. Logging configurations will be sent " +"as a file suitable for processing by :func:`dictConfig` or :func:" +"`fileConfig`. Returns a :class:`~threading.Thread` instance on which you can " +"call :meth:`~threading.Thread.start` to start the server, and which you can :" +"meth:`~threading.Thread.join` when appropriate. To stop the server, call :" +"func:`stopListening`." msgstr "" #: ../../library/logging.config.rst:135 @@ -211,8 +214,8 @@ msgid "" "verification and/or decryption. The ``verify`` callable is called with a " "single argument - the bytes received across the socket - and should return " "the bytes to be processed, or ``None`` to indicate that the bytes should be " -"discarded. The returned bytes could be the same as the passed in bytes (e.g." -" when only verification is done), or they could be completely different " +"discarded. The returned bytes could be the same as the passed in bytes (e.g. " +"when only verification is done), or they could be completely different " "(perhaps if decryption were performed)." msgstr "" @@ -233,12 +236,12 @@ msgid "" "if the process calling :func:`listen` runs on a multi-user machine where " "users cannot trust each other, then a malicious user could arrange to run " "essentially arbitrary code in a victim user's process, simply by connecting " -"to the victim's :func:`listen` socket and sending a configuration which runs" -" whatever code the attacker wants to have executed in the victim's process. " -"This is especially easy to do if the default port is used, but not hard even" -" if a different port is used). To avoid the risk of this happening, use the " -"``verify`` argument to :func:`listen` to prevent unrecognised configurations" -" from being applied." +"to the victim's :func:`listen` socket and sending a configuration which runs " +"whatever code the attacker wants to have executed in the victim's process. " +"This is especially easy to do if the default port is used, but not hard even " +"if a different port is used). To avoid the risk of this happening, use the " +"``verify`` argument to :func:`listen` to prevent unrecognised configurations " +"from being applied." msgstr "" #: ../../library/logging.config.rst:168 @@ -271,11 +274,11 @@ msgid "" "create and the connections between them; for example, you may create a " "handler named 'console' and then say that the logger named 'startup' will " "send its messages to the 'console' handler. These objects aren't limited to " -"those provided by the :mod:`logging` module because you might write your own" -" formatter or handler class. The parameters to these classes may also need " -"to include external objects such as ``sys.stderr``. The syntax for " -"describing these objects and connections is defined in :ref:`logging-config-" -"dict-connections` below." +"those provided by the :mod:`logging` module because you might write your own " +"formatter or handler class. The parameters to these classes may also need to " +"include external objects such as ``sys.stderr``. The syntax for describing " +"these objects and connections is defined in :ref:`logging-config-dict-" +"connections` below." msgstr "" #: ../../library/logging.config.rst:204 @@ -299,23 +302,23 @@ msgid "" "All other keys are optional, but if present they will be interpreted as " "described below. In all cases below where a 'configuring dict' is " "mentioned, it will be checked for the special ``'()'`` key to see if a " -"custom instantiation is required. If so, the mechanism described in :ref" -":`logging-config-dict-userdef` below is used to create an instance; " +"custom instantiation is required. If so, the mechanism described in :ref:" +"`logging-config-dict-userdef` below is used to create an instance; " "otherwise, the context is used to determine what to instantiate." msgstr "" #: ../../library/logging.config.rst:221 msgid "" -"*formatters* - the corresponding value will be a dict in which each key is a" -" formatter id and each value is a dict describing how to configure the " +"*formatters* - the corresponding value will be a dict in which each key is a " +"formatter id and each value is a dict describing how to configure the " "corresponding :class:`~logging.Formatter` instance." msgstr "" #: ../../library/logging.config.rst:225 msgid "" "The configuring dict is searched for keys ``format`` and ``datefmt`` (with " -"defaults of ``None``) and these are used to construct a " -":class:`~logging.Formatter` instance." +"defaults of ``None``) and these are used to construct a :class:`~logging." +"Formatter` instance." msgstr "" #: ../../library/logging.config.rst:229 @@ -358,8 +361,7 @@ msgid "``formatter`` (optional). The id of the formatter for this handler." msgstr "" #: ../../library/logging.config.rst:251 -msgid "" -"``filters`` (optional). A list of ids of the filters for this handler." +msgid "``filters`` (optional). A list of ids of the filters for this handler." msgstr "" #: ../../library/logging.config.rst:254 @@ -370,11 +372,11 @@ msgstr "" #: ../../library/logging.config.rst:273 msgid "" -"the handler with id ``console`` is instantiated as a " -":class:`logging.StreamHandler`, using ``sys.stdout`` as the underlying " -"stream. The handler with id ``file`` is instantiated as a " -":class:`logging.handlers.RotatingFileHandler` with the keyword arguments " -"``filename='logconfig.log', maxBytes=1024, backupCount=3``." +"the handler with id ``console`` is instantiated as a :class:`logging." +"StreamHandler`, using ``sys.stdout`` as the underlying stream. The handler " +"with id ``file`` is instantiated as a :class:`logging.handlers." +"RotatingFileHandler` with the keyword arguments ``filename='logconfig.log', " +"maxBytes=1024, backupCount=3``." msgstr "" #: ../../library/logging.config.rst:279 @@ -419,8 +421,8 @@ msgid "" "*incremental* - whether the configuration is to be interpreted as " "incremental to the existing configuration. This value defaults to " "``False``, which means that the specified configuration replaces the " -"existing configuration with the same semantics as used by the existing " -":func:`fileConfig` API." +"existing configuration with the same semantics as used by the existing :func:" +"`fileConfig` API." msgstr "" #: ../../library/logging.config.rst:308 @@ -431,10 +433,10 @@ msgstr "" #: ../../library/logging.config.rst:311 msgid "" -"*disable_existing_loggers* - whether any existing non-root loggers are to be" -" disabled. This setting mirrors the parameter of the same name in " -":func:`fileConfig`. If absent, this parameter defaults to ``True``. This " -"value is ignored if *incremental* is ``True``." +"*disable_existing_loggers* - whether any existing non-root loggers are to be " +"disabled. This setting mirrors the parameter of the same name in :func:" +"`fileConfig`. If absent, this parameter defaults to ``True``. This value is " +"ignored if *incremental* is ``True``." msgstr "" #: ../../library/logging.config.rst:319 @@ -462,8 +464,8 @@ msgstr "" #: ../../library/logging.config.rst:336 msgid "" -"Thus, when the ``incremental`` key of a configuration dict is present and is" -" ``True``, the system will completely ignore any ``formatters`` and " +"Thus, when the ``incremental`` key of a configuration dict is present and is " +"``True``, the system will completely ignore any ``formatters`` and " "``filters`` entries, and process only the ``level`` settings in the " "``handlers`` entries, and the ``level`` and ``propagate`` settings in the " "``loggers`` and ``root`` entries." @@ -484,10 +486,10 @@ msgstr "" #: ../../library/logging.config.rst:352 msgid "" "The schema describes a set of logging objects - loggers, handlers, " -"formatters, filters - which are connected to each other in an object graph." -" Thus, the schema needs to represent connections between the objects. For " -"example, say that, once configured, a particular logger has attached to it a" -" particular handler. For the purposes of this discussion, we can say that " +"formatters, filters - which are connected to each other in an object graph. " +"Thus, the schema needs to represent connections between the objects. For " +"example, say that, once configured, a particular logger has attached to it a " +"particular handler. For the purposes of this discussion, we can say that " "the logger represents the source, and the handler the destination, of a " "connection between the two. Of course in the configured objects this is " "represented by the logger holding a reference to the handler. In the " @@ -510,12 +512,12 @@ msgstr "" #: ../../library/logging.config.rst:390 msgid "" "The ids for loggers are the logger names which would be used " -"programmatically to obtain a reference to those loggers, e.g. " -"``foo.bar.baz``. The ids for Formatters and Filters can be any string value" -" (such as ``brief``, ``precise`` above) and they are transient, in that they" -" are only meaningful for processing the configuration dictionary and used to" -" determine connections between objects, and are not persisted anywhere when " -"the configuration call is complete." +"programmatically to obtain a reference to those loggers, e.g. ``foo.bar." +"baz``. The ids for Formatters and Filters can be any string value (such as " +"``brief``, ``precise`` above) and they are transient, in that they are only " +"meaningful for processing the configuration dictionary and used to determine " +"connections between objects, and are not persisted anywhere when the " +"configuration call is complete." msgstr "" #: ../../library/logging.config.rst:398 @@ -556,9 +558,9 @@ msgid "" "The above YAML snippet defines three formatters. The first, with id " "``brief``, is a standard :class:`logging.Formatter` instance with the " "specified format string. The second, with id ``default``, has a longer " -"format and also defines the time format explicitly, and will result in a " -":class:`logging.Formatter` initialized with those two format strings. Shown" -" in Python source form, the ``brief`` and ``default`` formatters have " +"format and also defines the time format explicitly, and will result in a :" +"class:`logging.Formatter` initialized with those two format strings. Shown " +"in Python source form, the ``brief`` and ``default`` formatters have " "configuration sub-dictionaries::" msgstr "" @@ -581,8 +583,8 @@ msgid "" "instantiation is wanted. In this case, the specified factory callable will " "be used. If it is an actual callable it will be used directly - otherwise, " "if you specify a string (as in the example) the actual callable will be " -"located using normal import mechanisms. The callable will be called with the" -" **remaining** items in the configuration sub-dictionary as keyword " +"located using normal import mechanisms. The callable will be called with the " +"**remaining** items in the configuration sub-dictionary as keyword " "arguments. In the above example, the formatter with id ``custom`` will be " "assumed to be returned by the call::" msgstr "" @@ -591,8 +593,8 @@ msgstr "" msgid "" "The key ``'()'`` has been used as the special key because it is not a valid " "keyword parameter name, and so will not clash with the names of the keyword " -"arguments used in the call. The ``'()'`` also serves as a mnemonic that the" -" corresponding value is a callable." +"arguments used in the call. The ``'()'`` also serves as a mnemonic that the " +"corresponding value is a callable." msgstr "" #: ../../library/logging.config.rst:494 @@ -602,25 +604,25 @@ msgstr "" #: ../../library/logging.config.rst:496 msgid "" "There are times where a configuration needs to refer to objects external to " -"the configuration, for example ``sys.stderr``. If the configuration dict is" -" constructed using Python code, this is straightforward, but a problem " -"arises when the configuration is provided via a text file (e.g. JSON, YAML)." -" In a text file, there is no standard way to distinguish ``sys.stderr`` " -"from the literal string ``'sys.stderr'``. To facilitate this distinction, " -"the configuration system looks for certain special prefixes in string values" -" and treat them specially. For example, if the literal string " -"``'ext://sys.stderr'`` is provided as a value in the configuration, then the" -" ``ext://`` will be stripped off and the remainder of the value processed " -"using normal import mechanisms." +"the configuration, for example ``sys.stderr``. If the configuration dict is " +"constructed using Python code, this is straightforward, but a problem arises " +"when the configuration is provided via a text file (e.g. JSON, YAML). In a " +"text file, there is no standard way to distinguish ``sys.stderr`` from the " +"literal string ``'sys.stderr'``. To facilitate this distinction, the " +"configuration system looks for certain special prefixes in string values and " +"treat them specially. For example, if the literal string ``'ext://sys." +"stderr'`` is provided as a value in the configuration, then the ``ext://`` " +"will be stripped off and the remainder of the value processed using normal " +"import mechanisms." msgstr "" #: ../../library/logging.config.rst:509 msgid "" "The handling of such prefixes is done in a way analogous to protocol " "handling: there is a generic mechanism to look for prefixes which match the " -"regular expression ``^(?P[a-z]+)://(?P.*)$`` whereby, if the" -" ``prefix`` is recognised, the ``suffix`` is processed in a prefix-dependent" -" manner and the result of the processing replaces the string value. If the " +"regular expression ``^(?P[a-z]+)://(?P.*)$`` whereby, if the " +"``prefix`` is recognised, the ``suffix`` is processed in a prefix-dependent " +"manner and the result of the processing replaces the string value. If the " "prefix is not recognised, then the string value will be left as-is." msgstr "" @@ -642,41 +644,40 @@ msgstr "" #: ../../library/logging.config.rst:531 msgid "" "However, a more generic mechanism is needed for user-defined objects which " -"are not known to the :mod:`logging` module. For example, consider " -":class:`logging.handlers.MemoryHandler`, which takes a ``target`` argument " -"which is another handler to delegate to. Since the system already knows " -"about this class, then in the configuration, the given ``target`` just needs" -" to be the object id of the relevant target handler, and the system will " -"resolve to the handler from the id. If, however, a user defines a " -"``my.package.MyHandler`` which has an ``alternate`` handler, the " -"configuration system would not know that the ``alternate`` referred to a " -"handler. To cater for this, a generic resolution system allows the user to " -"specify:" +"are not known to the :mod:`logging` module. For example, consider :class:" +"`logging.handlers.MemoryHandler`, which takes a ``target`` argument which is " +"another handler to delegate to. Since the system already knows about this " +"class, then in the configuration, the given ``target`` just needs to be the " +"object id of the relevant target handler, and the system will resolve to the " +"handler from the id. If, however, a user defines a ``my.package.MyHandler`` " +"which has an ``alternate`` handler, the configuration system would not know " +"that the ``alternate`` referred to a handler. To cater for this, a generic " +"resolution system allows the user to specify:" msgstr "" #: ../../library/logging.config.rst:553 msgid "" "The literal string ``'cfg://handlers.file'`` will be resolved in an " "analogous way to strings with the ``ext://`` prefix, but looking in the " -"configuration itself rather than the import namespace. The mechanism allows" -" access by dot or by index, in a similar way to that provided by " -"``str.format``. Thus, given the following snippet:" +"configuration itself rather than the import namespace. The mechanism allows " +"access by dot or by index, in a similar way to that provided by ``str." +"format``. Thus, given the following snippet:" msgstr "" #: ../../library/logging.config.rst:571 msgid "" "in the configuration, the string ``'cfg://handlers'`` would resolve to the " "dict with key ``handlers``, the string ``'cfg://handlers.email`` would " -"resolve to the dict with key ``email`` in the ``handlers`` dict, and so on." -" The string ``'cfg://handlers.email.toaddrs[1]`` would resolve to " -"``'dev_team.domain.tld'`` and the string " -"``'cfg://handlers.email.toaddrs[0]'`` would resolve to the value " -"``'support_team@domain.tld'``. The ``subject`` value could be accessed using" -" either ``'cfg://handlers.email.subject'`` or, equivalently, " -"``'cfg://handlers.email[subject]'``. The latter form only needs to be used " -"if the key contains spaces or non-alphanumeric characters. If an index " -"value consists only of decimal digits, access will be attempted using the " -"corresponding integer value, falling back to the string value if needed." +"resolve to the dict with key ``email`` in the ``handlers`` dict, and so on. " +"The string ``'cfg://handlers.email.toaddrs[1]`` would resolve to ``'dev_team." +"domain.tld'`` and the string ``'cfg://handlers.email.toaddrs[0]'`` would " +"resolve to the value ``'support_team@domain.tld'``. The ``subject`` value " +"could be accessed using either ``'cfg://handlers.email.subject'`` or, " +"equivalently, ``'cfg://handlers.email[subject]'``. The latter form only " +"needs to be used if the key contains spaces or non-alphanumeric characters. " +"If an index value consists only of decimal digits, access will be attempted " +"using the corresponding integer value, falling back to the string value if " +"needed." msgstr "" #: ../../library/logging.config.rst:585 @@ -684,9 +685,9 @@ msgid "" "Given a string ``cfg://handlers.myhandler.mykey.123``, this will resolve to " "``config_dict['handlers']['myhandler']['mykey']['123']``. If the string is " "specified as ``cfg://handlers.myhandler.mykey[123]``, the system will " -"attempt to retrieve the value from " -"``config_dict['handlers']['myhandler']['mykey'][123]``, and fall back to " -"``config_dict['handlers']['myhandler']['mykey']['123']`` if that fails." +"attempt to retrieve the value from ``config_dict['handlers']['myhandler']" +"['mykey'][123]``, and fall back to ``config_dict['handlers']['myhandler']" +"['mykey']['123']`` if that fails." msgstr "" #: ../../library/logging.config.rst:597 @@ -697,11 +698,11 @@ msgstr "" msgid "" "Import resolution, by default, uses the builtin :func:`__import__` function " "to do its importing. You may want to replace this with your own importing " -"mechanism: if so, you can replace the :attr:`importer` attribute of the " -":class:`DictConfigurator` or its superclass, the :class:`BaseConfigurator` " +"mechanism: if so, you can replace the :attr:`importer` attribute of the :" +"class:`DictConfigurator` or its superclass, the :class:`BaseConfigurator` " "class. However, you need to be careful because of the way functions are " -"accessed from classes via descriptors. If you are using a Python callable to" -" do your imports, and you want to define it at class level rather than " +"accessed from classes via descriptors. If you are using a Python callable to " +"do your imports, and you want to define it at class level rather than " "instance level, you need to wrap it with :func:`staticmethod`. For example::" msgstr "" @@ -717,8 +718,8 @@ msgstr "" #: ../../library/logging.config.rst:623 msgid "" -"The configuration file format understood by :func:`fileConfig` is based on " -":mod:`configparser` functionality. The file must contain sections called " +"The configuration file format understood by :func:`fileConfig` is based on :" +"mod:`configparser` functionality. The file must contain sections called " "``[loggers]``, ``[handlers]`` and ``[formatters]`` which identify by name " "the entities of each type which are defined in the file. For each such " "entity, there is a separate section which identifies how that entity is " @@ -734,15 +735,15 @@ msgstr "" #: ../../library/logging.config.rst:638 msgid "" -"The :func:`fileConfig` API is older than the :func:`dictConfig` API and does" -" not provide functionality to cover certain aspects of logging. For example," -" you cannot configure :class:`~logging.Filter` objects, which provide for " -"filtering of messages beyond simple integer levels, using " -":func:`fileConfig`. If you need to have instances of " -":class:`~logging.Filter` in your logging configuration, you will need to use" -" :func:`dictConfig`. Note that future enhancements to configuration " -"functionality will be added to :func:`dictConfig`, so it's worth considering" -" transitioning to this newer API when it's convenient to do so." +"The :func:`fileConfig` API is older than the :func:`dictConfig` API and does " +"not provide functionality to cover certain aspects of logging. For example, " +"you cannot configure :class:`~logging.Filter` objects, which provide for " +"filtering of messages beyond simple integer levels, using :func:" +"`fileConfig`. If you need to have instances of :class:`~logging.Filter` in " +"your logging configuration, you will need to use :func:`dictConfig`. Note " +"that future enhancements to configuration functionality will be added to :" +"func:`dictConfig`, so it's worth considering transitioning to this newer API " +"when it's convenient to do so." msgstr "" #: ../../library/logging.config.rst:648 @@ -751,8 +752,8 @@ msgstr "" #: ../../library/logging.config.rst:661 msgid "" -"The root logger must specify a level and a list of handlers. An example of a" -" root logger section is given below." +"The root logger must specify a level and a list of handlers. An example of a " +"root logger section is given below." msgstr "" #: ../../library/logging.config.rst:670 @@ -780,14 +781,14 @@ msgstr "" #: ../../library/logging.config.rst:691 msgid "" "The ``level`` and ``handlers`` entries are interpreted as for the root " -"logger, except that if a non-root logger's level is specified as ``NOTSET``," -" the system consults loggers higher up the hierarchy to determine the " +"logger, except that if a non-root logger's level is specified as ``NOTSET``, " +"the system consults loggers higher up the hierarchy to determine the " "effective level of the logger. The ``propagate`` entry is set to 1 to " "indicate that messages must propagate to handlers higher up the logger " "hierarchy from this logger, or 0 to indicate that messages are **not** " "propagated to handlers up the hierarchy. The ``qualname`` entry is the " -"hierarchical channel name of the logger, that is to say the name used by the" -" application to get the logger." +"hierarchical channel name of the logger, that is to say the name used by the " +"application to get the logger." msgstr "" #: ../../library/logging.config.rst:700 @@ -798,27 +799,26 @@ msgstr "" #: ../../library/logging.config.rst:710 msgid "" -"The ``class`` entry indicates the handler's class (as determined by " -":func:`eval` in the ``logging`` package's namespace). The ``level`` is " -"interpreted as for loggers, and ``NOTSET`` is taken to mean 'log " -"everything'." +"The ``class`` entry indicates the handler's class (as determined by :func:" +"`eval` in the ``logging`` package's namespace). The ``level`` is interpreted " +"as for loggers, and ``NOTSET`` is taken to mean 'log everything'." msgstr "" #: ../../library/logging.config.rst:714 msgid "" "The ``formatter`` entry indicates the key name of the formatter for this " "handler. If blank, a default formatter (``logging._defaultFormatter``) is " -"used. If a name is specified, it must appear in the ``[formatters]`` section" -" and have a corresponding section in the configuration file." +"used. If a name is specified, it must appear in the ``[formatters]`` section " +"and have a corresponding section in the configuration file." msgstr "" #: ../../library/logging.config.rst:719 msgid "" "The ``args`` entry, when :func:`eval`\\ uated in the context of the " -"``logging`` package's namespace, is the list of arguments to the constructor" -" for the handler class. Refer to the constructors for the relevant handlers," -" or to the examples below, to see how typical entries are constructed. If " -"not provided, it defaults to ``()``." +"``logging`` package's namespace, is the list of arguments to the constructor " +"for the handler class. Refer to the constructors for the relevant handlers, " +"or to the examples below, to see how typical entries are constructed. If not " +"provided, it defaults to ``()``." msgstr "" #: ../../library/logging.config.rst:725 @@ -830,14 +830,13 @@ msgstr "" #: ../../library/logging.config.rst:782 msgid "" -"Sections which specify formatter configuration are typified by the " -"following." +"Sections which specify formatter configuration are typified by the following." msgstr "" #: ../../library/logging.config.rst:791 msgid "" -"The ``format`` entry is the overall format string, and the ``datefmt`` entry" -" is the :func:`strftime`\\ -compatible date/time format string. If empty, " +"The ``format`` entry is the overall format string, and the ``datefmt`` entry " +"is the :func:`strftime`\\ -compatible date/time format string. If empty, " "the package substitutes something which is almost equivalent to specifying " "the date format string ``'%Y-%m-%d %H:%M:%S'``. This format also specifies " "milliseconds, which are appended to the result of using the above format " @@ -849,9 +848,9 @@ msgstr "" msgid "" "The ``class`` entry is optional. It indicates the name of the formatter's " "class (as a dotted module and class name.) This option is useful for " -"instantiating a :class:`~logging.Formatter` subclass. Subclasses of " -":class:`~logging.Formatter` can present exception tracebacks in an expanded " -"or condensed format." +"instantiating a :class:`~logging.Formatter` subclass. Subclasses of :class:" +"`~logging.Formatter` can present exception tracebacks in an expanded or " +"condensed format." msgstr "" #: ../../library/logging.config.rst:806 @@ -859,8 +858,8 @@ msgid "" "Due to the use of :func:`eval` as described above, there are potential " "security risks which result from using the :func:`listen` to send and " "receive configurations via sockets. The risks are limited to where multiple " -"users with no mutual trust run code on the same machine; see the " -":func:`listen` documentation for more information." +"users with no mutual trust run code on the same machine; see the :func:" +"`listen` documentation for more information." msgstr "" #: ../../library/logging.config.rst:815 @@ -873,7 +872,7 @@ msgstr "Referência da API para o módulo de logging." #: ../../library/logging.config.rst:817 msgid "Module :mod:`logging.handlers`" -msgstr "" +msgstr "Módulo :mod:`logging.handlers`" #: ../../library/logging.config.rst:818 msgid "Useful handlers included with the logging module." diff --git a/library/logging.handlers.po b/library/logging.handlers.po index 6c762af26..39a6ce1d6 100644 --- a/library/logging.handlers.po +++ b/library/logging.handlers.po @@ -1,22 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Juliana Karoline , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Katyanna Moura , 2019 -# +# Hildeberto Abreu Magalhães , 2019 +# Sheila Gomes , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-12 03:27+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Katyanna Moura , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,7 +29,7 @@ msgstr "" #: ../../library/logging.handlers.rst:2 msgid ":mod:`logging.handlers` --- Logging handlers" -msgstr "" +msgstr ":mod:`logging.handlers` --- Tratadores de registro" #: ../../library/logging.handlers.rst:10 msgid "**Source code:** :source:`Lib/logging/handlers.py`" @@ -38,22 +42,22 @@ msgstr "" #: ../../library/logging.handlers.rst:17 msgid ":ref:`Basic Tutorial `" -msgstr "" +msgstr ":ref:`Basic Tutorial `" #: ../../library/logging.handlers.rst:18 msgid ":ref:`Advanced Tutorial `" -msgstr "" +msgstr ":ref:`Advanced Tutorial `" #: ../../library/logging.handlers.rst:19 msgid ":ref:`Logging Cookbook `" -msgstr "" +msgstr ":ref:`Logging Cookbook `" #: ../../library/logging.handlers.rst:25 msgid "" "The following useful handlers are provided in the package. Note that three " -"of the handlers (:class:`StreamHandler`, :class:`FileHandler` and " -":class:`NullHandler`) are actually defined in the :mod:`logging` module " -"itself, but have been documented here along with the other handlers." +"of the handlers (:class:`StreamHandler`, :class:`FileHandler` and :class:" +"`NullHandler`) are actually defined in the :mod:`logging` module itself, but " +"have been documented here along with the other handlers." msgstr "" #: ../../library/logging.handlers.rst:33 @@ -64,15 +68,15 @@ msgstr "" msgid "" "The :class:`StreamHandler` class, located in the core :mod:`logging` " "package, sends logging output to streams such as *sys.stdout*, *sys.stderr* " -"or any file-like object (or, more precisely, any object which supports " -":meth:`write` and :meth:`flush` methods)." +"or any file-like object (or, more precisely, any object which supports :meth:" +"`write` and :meth:`flush` methods)." msgstr "" #: ../../library/logging.handlers.rst:43 msgid "" "Returns a new instance of the :class:`StreamHandler` class. If *stream* is " -"specified, the instance will use it for logging output; otherwise, " -"*sys.stderr* will be used." +"specified, the instance will use it for logging output; otherwise, *sys." +"stderr* will be used." msgstr "" #: ../../library/logging.handlers.rst:50 @@ -85,9 +89,9 @@ msgstr "" #: ../../library/logging.handlers.rst:58 msgid "" -"Flushes the stream by calling its :meth:`flush` method. Note that the " -":meth:`close` method is inherited from :class:`~logging.Handler` and so does" -" no output, so an explicit :meth:`flush` call may be needed at times." +"Flushes the stream by calling its :meth:`flush` method. Note that the :meth:" +"`close` method is inherited from :class:`~logging.Handler` and so does no " +"output, so an explicit :meth:`flush` call may be needed at times." msgstr "" #: ../../library/logging.handlers.rst:64 @@ -96,7 +100,6 @@ msgid "" "old stream is flushed before the new stream is set." msgstr "" -#: ../../library/logging.handlers.rst:0 ../../library/logging.handlers.rst:0 #: ../../library/logging.handlers.rst:0 msgid "Parameters" msgstr "" @@ -135,11 +138,11 @@ msgstr "" #: ../../library/logging.handlers.rst:94 msgid "" -"Returns a new instance of the :class:`FileHandler` class. The specified file" -" is opened and used as the stream for logging. If *mode* is not specified, " -":const:`'a'` is used. If *encoding* is not ``None``, it is used to open the" -" file with that encoding. If *delay* is true, then file opening is deferred" -" until the first call to :meth:`emit`. By default, the file grows " +"Returns a new instance of the :class:`FileHandler` class. The specified file " +"is opened and used as the stream for logging. If *mode* is not specified, :" +"const:`'a'` is used. If *encoding* is not ``None``, it is used to open the " +"file with that encoding. If *delay* is true, then file opening is deferred " +"until the first call to :meth:`emit`. By default, the file grows " "indefinitely." msgstr "" @@ -188,8 +191,8 @@ msgstr "" #: ../../library/logging.handlers.rst:143 msgid "" -"See :ref:`library-config` for more information on how to use " -":class:`NullHandler`." +"See :ref:`library-config` for more information on how to use :class:" +"`NullHandler`." msgstr "" #: ../../library/logging.handlers.rst:149 @@ -198,10 +201,10 @@ msgstr "" #: ../../library/logging.handlers.rst:153 msgid "" -"The :class:`WatchedFileHandler` class, located in the " -":mod:`logging.handlers` module, is a :class:`FileHandler` which watches the " -"file it is logging to. If the file changes, it is closed and reopened using " -"the file name." +"The :class:`WatchedFileHandler` class, located in the :mod:`logging." +"handlers` module, is a :class:`FileHandler` which watches the file it is " +"logging to. If the file changes, it is closed and reopened using the file " +"name." msgstr "" #: ../../library/logging.handlers.rst:157 @@ -216,8 +219,8 @@ msgstr "" #: ../../library/logging.handlers.rst:164 msgid "" -"This handler is not appropriate for use under Windows, because under Windows" -" open log files cannot be moved or renamed - logging opens the files with " +"This handler is not appropriate for use under Windows, because under Windows " +"open log files cannot be moved or renamed - logging opens the files with " "exclusive locks - and so there is no need for such a handler. Furthermore, " "*ST_INO* is not supported under Windows; :func:`~os.stat` always returns " "zero for this value." @@ -252,11 +255,11 @@ msgstr "" #: ../../library/logging.handlers.rst:202 msgid "" -"The :class:`BaseRotatingHandler` class, located in the " -":mod:`logging.handlers` module, is the base class for the rotating file " -"handlers, :class:`RotatingFileHandler` and " -":class:`TimedRotatingFileHandler`. You should not need to instantiate this " -"class, but it has attributes and methods you may need to override." +"The :class:`BaseRotatingHandler` class, located in the :mod:`logging." +"handlers` module, is the base class for the rotating file handlers, :class:" +"`RotatingFileHandler` and :class:`TimedRotatingFileHandler`. You should not " +"need to instantiate this class, but it has attributes and methods you may " +"need to override." msgstr "" #: ../../library/logging.handlers.rst:210 @@ -265,24 +268,24 @@ msgstr "" #: ../../library/logging.handlers.rst:214 msgid "" -"If this attribute is set to a callable, the :meth:`rotation_filename` method" -" delegates to this callable. The parameters passed to the callable are those" -" passed to :meth:`rotation_filename`." +"If this attribute is set to a callable, the :meth:`rotation_filename` method " +"delegates to this callable. The parameters passed to the callable are those " +"passed to :meth:`rotation_filename`." msgstr "" #: ../../library/logging.handlers.rst:218 msgid "" -"The namer function is called quite a few times during rollover, so it should" -" be as simple and as fast as possible. It should also return the same output" -" every time for a given input, otherwise the rollover behaviour may not work" -" as expected." +"The namer function is called quite a few times during rollover, so it should " +"be as simple and as fast as possible. It should also return the same output " +"every time for a given input, otherwise the rollover behaviour may not work " +"as expected." msgstr "" #: ../../library/logging.handlers.rst:228 msgid "" "If this attribute is set to a callable, the :meth:`rotate` method delegates " -"to this callable. The parameters passed to the callable are those passed to" -" :meth:`rotate`." +"to this callable. The parameters passed to the callable are those passed " +"to :meth:`rotate`." msgstr "" #: ../../library/logging.handlers.rst:236 @@ -311,8 +314,8 @@ msgstr "" #: ../../library/logging.handlers.rst:253 msgid "" "The default implementation calls the 'rotator' attribute of the handler, if " -"it's callable, passing the source and dest arguments to it. If the attribute" -" isn't callable (the default is ``None``), the source is simply renamed to " +"it's callable, passing the source and dest arguments to it. If the attribute " +"isn't callable (the default is ``None``), the source is simply renamed to " "the destination." msgstr "" @@ -323,15 +326,15 @@ msgstr "" #: ../../library/logging.handlers.rst:260 msgid "" -"The destination filename. This is normally what the source is rotated to, " -"e.g. 'test.log.1'." +"The destination filename. This is normally what the source is rotated to, e." +"g. 'test.log.1'." msgstr "" #: ../../library/logging.handlers.rst:265 msgid "" "The reason the attributes exist is to save you having to subclass - you can " -"use the same callables for instances of :class:`RotatingFileHandler` and " -":class:`TimedRotatingFileHandler`. If either the namer or rotator callable " +"use the same callables for instances of :class:`RotatingFileHandler` and :" +"class:`TimedRotatingFileHandler`. If either the namer or rotator callable " "raises an exception, this will be handled in the same way as any other " "exception during an :meth:`emit` call, i.e. via the :meth:`handleError` " "method of the handler." @@ -339,8 +342,8 @@ msgstr "" #: ../../library/logging.handlers.rst:272 msgid "" -"If you need to make more significant changes to rotation processing, you can" -" override the methods." +"If you need to make more significant changes to rotation processing, you can " +"override the methods." msgstr "" #: ../../library/logging.handlers.rst:275 @@ -353,8 +356,8 @@ msgstr "" #: ../../library/logging.handlers.rst:283 msgid "" -"The :class:`RotatingFileHandler` class, located in the " -":mod:`logging.handlers` module, supports rotation of disk log files." +"The :class:`RotatingFileHandler` class, located in the :mod:`logging." +"handlers` module, supports rotation of disk log files." msgstr "" #: ../../library/logging.handlers.rst:289 @@ -369,21 +372,20 @@ msgstr "" #: ../../library/logging.handlers.rst:295 msgid "" -"You can use the *maxBytes* and *backupCount* values to allow the file to " -":dfn:`rollover` at a predetermined size. When the size is about to be " +"You can use the *maxBytes* and *backupCount* values to allow the file to :" +"dfn:`rollover` at a predetermined size. When the size is about to be " "exceeded, the file is closed and a new file is silently opened for output. " "Rollover occurs whenever the current log file is nearly *maxBytes* in " -"length; but if either of *maxBytes* or *backupCount* is zero, rollover never" -" occurs, so you generally want to set *backupCount* to at least 1, and have " -"a non-zero *maxBytes*. When *backupCount* is non-zero, the system will save " +"length; but if either of *maxBytes* or *backupCount* is zero, rollover never " +"occurs, so you generally want to set *backupCount* to at least 1, and have a " +"non-zero *maxBytes*. When *backupCount* is non-zero, the system will save " "old log files by appending the extensions '.1', '.2' etc., to the filename. " -"For example, with a *backupCount* of 5 and a base file name of " -":file:`app.log`, you would get :file:`app.log`, :file:`app.log.1`, " -":file:`app.log.2`, up to :file:`app.log.5`. The file being written to is " -"always :file:`app.log`. When this file is filled, it is closed and renamed " -"to :file:`app.log.1`, and if files :file:`app.log.1`, :file:`app.log.2`, " -"etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` " -"etc. respectively." +"For example, with a *backupCount* of 5 and a base file name of :file:`app." +"log`, you would get :file:`app.log`, :file:`app.log.1`, :file:`app.log.2`, " +"up to :file:`app.log.5`. The file being written to is always :file:`app." +"log`. When this file is filled, it is closed and renamed to :file:`app." +"log.1`, and if files :file:`app.log.1`, :file:`app.log.2`, etc. exist, then " +"they are renamed to :file:`app.log.2`, :file:`app.log.3` etc. respectively." msgstr "" #: ../../library/logging.handlers.rst:316 @@ -403,9 +405,9 @@ msgstr "" #: ../../library/logging.handlers.rst:329 msgid "" -"The :class:`TimedRotatingFileHandler` class, located in the " -":mod:`logging.handlers` module, supports rotation of disk log files at " -"certain timed intervals." +"The :class:`TimedRotatingFileHandler` class, located in the :mod:`logging." +"handlers` module, supports rotation of disk log files at certain timed " +"intervals." msgstr "" #: ../../library/logging.handlers.rst:336 @@ -436,7 +438,7 @@ msgstr "" #: ../../library/logging.handlers.rst:347 msgid "``'S'``" -msgstr "" +msgstr "``'S'``" #: ../../library/logging.handlers.rst:347 msgid "Seconds" @@ -451,7 +453,7 @@ msgstr "" #: ../../library/logging.handlers.rst:349 msgid "``'M'``" -msgstr "" +msgstr "``'M'``" #: ../../library/logging.handlers.rst:349 msgid "Minutes" @@ -491,30 +493,28 @@ msgid "``'midnight'``" msgstr "``'midnight'``" #: ../../library/logging.handlers.rst:358 -msgid "" -"Roll over at midnight, if *atTime* not specified, else at time *atTime*" +msgid "Roll over at midnight, if *atTime* not specified, else at time *atTime*" msgstr "" #: ../../library/logging.handlers.rst:363 msgid "" "When using weekday-based rotation, specify 'W0' for Monday, 'W1' for " -"Tuesday, and so on up to 'W6' for Sunday. In this case, the value passed for" -" *interval* isn't used." +"Tuesday, and so on up to 'W6' for Sunday. In this case, the value passed for " +"*interval* isn't used." msgstr "" #: ../../library/logging.handlers.rst:367 msgid "" "The system will save old log files by appending extensions to the filename. " -"The extensions are date-and-time based, using the strftime format " -"``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the " -"rollover interval." +"The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_" +"%H-%M-%S`` or a leading portion thereof, depending on the rollover interval." msgstr "" #: ../../library/logging.handlers.rst:372 msgid "" "When computing the next rollover time for the first time (when the handler " -"is created), the last modification time of an existing log file, or else the" -" current time, is used to compute when the next rotation will occur." +"is created), the last modification time of an existing log file, or else the " +"current time, is used to compute when the next rotation will occur." msgstr "" #: ../../library/logging.handlers.rst:376 @@ -533,15 +533,15 @@ msgstr "" #: ../../library/logging.handlers.rst:384 msgid "" -"If *delay* is true, then file opening is deferred until the first call to " -":meth:`emit`." +"If *delay* is true, then file opening is deferred until the first call to :" +"meth:`emit`." msgstr "" #: ../../library/logging.handlers.rst:387 msgid "" "If *atTime* is not ``None``, it must be a ``datetime.time`` instance which " -"specifies the time of day when rollover occurs, for the cases where rollover" -" is set to happen \"at midnight\" or \"on a particular weekday\". Note that " +"specifies the time of day when rollover occurs, for the cases where rollover " +"is set to happen \"at midnight\" or \"on a particular weekday\". Note that " "in these cases, the *atTime* value is effectively used to compute the " "*initial* rollover, and subsequent rollovers would be calculated via the " "normal interval calculation." @@ -555,8 +555,8 @@ msgid "" "not kept in mind, it might lead to some confusion. For example, if an " "interval of \"every minute\" is set, that does not mean you will always see " "log files with times (in the filename) separated by a minute; if, during " -"application execution, logging output is generated more frequently than once" -" a minute, *then* you can expect to see log files with times separated by a " +"application execution, logging output is generated more frequently than once " +"a minute, *then* you can expect to see log files with times separated by a " "minute. If, on the other hand, logging messages are only output once every " "five minutes (say), then there will be gaps in the file times corresponding " "to the minutes where no output (and hence no rollover) occurred." @@ -604,9 +604,8 @@ msgid "" "Pickles the record's attribute dictionary and writes it to the socket in " "binary format. If there is an error with the socket, silently drops the " "packet. If the connection was previously lost, re-establishes the " -"connection. To unpickle the record at the receiving end into a " -":class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord` " -"function." +"connection. To unpickle the record at the receiving end into a :class:" +"`~logging.LogRecord`, use the :func:`~logging.makeLogRecord` function." msgstr "" #: ../../library/logging.handlers.rst:458 @@ -619,37 +618,37 @@ msgstr "" #: ../../library/logging.handlers.rst:465 msgid "" "This is a factory method which allows subclasses to define the precise type " -"of socket they want. The default implementation creates a TCP socket " -"(:const:`socket.SOCK_STREAM`)." +"of socket they want. The default implementation creates a TCP socket (:const:" +"`socket.SOCK_STREAM`)." msgstr "" #: ../../library/logging.handlers.rst:472 msgid "" "Pickles the record's attribute dictionary in binary format with a length " -"prefix, and returns it ready for transmission across the socket. The details" -" of this operation are equivalent to::" +"prefix, and returns it ready for transmission across the socket. The details " +"of this operation are equivalent to::" msgstr "" #: ../../library/logging.handlers.rst:480 msgid "" "Note that pickles aren't completely secure. If you are concerned about " "security, you may want to override this method to implement a more secure " -"mechanism. For example, you can sign pickles using HMAC and then verify them" -" on the receiving end, or alternatively you can disable unpickling of global" -" objects on the receiving end." +"mechanism. For example, you can sign pickles using HMAC and then verify them " +"on the receiving end, or alternatively you can disable unpickling of global " +"objects on the receiving end." msgstr "" #: ../../library/logging.handlers.rst:489 msgid "" "Send a pickled byte-string *packet* to the socket. The format of the sent " -"byte-string is as described in the documentation for " -":meth:`~SocketHandler.makePickle`." +"byte-string is as described in the documentation for :meth:`~SocketHandler." +"makePickle`." msgstr "" #: ../../library/logging.handlers.rst:493 msgid "" -"This function allows for partial sends, which can happen when the network is" -" busy." +"This function allows for partial sends, which can happen when the network is " +"busy." msgstr "" #: ../../library/logging.handlers.rst:499 @@ -715,9 +714,8 @@ msgstr "" msgid "" "Pickles the record's attribute dictionary and writes it to the socket in " "binary format. If there is an error with the socket, silently drops the " -"packet. To unpickle the record at the receiving end into a " -":class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord` " -"function." +"packet. To unpickle the record at the receiving end into a :class:`~logging." +"LogRecord`, use the :func:`~logging.makeLogRecord` function." msgstr "" #: ../../library/logging.handlers.rst:549 @@ -748,25 +746,24 @@ msgid "" "communicate with a remote Unix machine whose address is given by *address* " "in the form of a ``(host, port)`` tuple. If *address* is not specified, " "``('localhost', 514)`` is used. The address is used to open a socket. An " -"alternative to providing a ``(host, port)`` tuple is providing an address as" -" a string, for example '/dev/log'. In this case, a Unix domain socket is " -"used to send the message to the syslog. If *facility* is not specified, " -":const:`LOG_USER` is used. The type of socket opened depends on the " -"*socktype* argument, which defaults to :const:`socket.SOCK_DGRAM` and thus " -"opens a UDP socket. To open a TCP socket (for use with the newer syslog " -"daemons such as rsyslog), specify a value of :const:`socket.SOCK_STREAM`." +"alternative to providing a ``(host, port)`` tuple is providing an address as " +"a string, for example '/dev/log'. In this case, a Unix domain socket is used " +"to send the message to the syslog. If *facility* is not specified, :const:" +"`LOG_USER` is used. The type of socket opened depends on the *socktype* " +"argument, which defaults to :const:`socket.SOCK_DGRAM` and thus opens a UDP " +"socket. To open a TCP socket (for use with the newer syslog daemons such as " +"rsyslog), specify a value of :const:`socket.SOCK_STREAM`." msgstr "" #: ../../library/logging.handlers.rst:582 msgid "" -"Note that if your server is not listening on UDP port 514, " -":class:`SysLogHandler` may appear not to work. In that case, check what " -"address you should be using for a domain socket - it's system dependent. For" -" example, on Linux it's usually '/dev/log' but on OS/X it's " -"'/var/run/syslog'. You'll need to check your platform and use the " -"appropriate address (you may need to do this check at runtime if your " -"application needs to run on several platforms). On Windows, you pretty much " -"have to use the UDP option." +"Note that if your server is not listening on UDP port 514, :class:" +"`SysLogHandler` may appear not to work. In that case, check what address you " +"should be using for a domain socket - it's system dependent. For example, on " +"Linux it's usually '/dev/log' but on OS/X it's '/var/run/syslog'. You'll " +"need to check your platform and use the appropriate address (you may need to " +"do this check at runtime if your application needs to run on several " +"platforms). On Windows, you pretty much have to use the UDP option." msgstr "" #: ../../library/logging.handlers.rst:591 @@ -799,8 +796,8 @@ msgid "" "To enable easier handling of syslog messages in the face of all these " "differing daemon behaviours, the appending of the NUL byte has been made " "configurable, through the use of a class-level attribute, ``append_nul``. " -"This defaults to ``True`` (preserving the existing behaviour) but can be set" -" to ``False`` on a ``SysLogHandler`` instance in order for that instance to " +"This defaults to ``True`` (preserving the existing behaviour) but can be set " +"to ``False`` on a ``SysLogHandler`` instance in order for that instance to " "*not* append the NUL terminator." msgstr "" @@ -844,7 +841,7 @@ msgstr "" #: ../../library/logging.handlers.rst:644 msgid "``alert``" -msgstr "" +msgstr "``alert``" #: ../../library/logging.handlers.rst:644 msgid "LOG_ALERT" @@ -860,7 +857,7 @@ msgstr "" #: ../../library/logging.handlers.rst:648 msgid "``debug``" -msgstr "" +msgstr "``debug``" #: ../../library/logging.handlers.rst:648 msgid "LOG_DEBUG" @@ -884,7 +881,7 @@ msgstr "LOG_ERR" #: ../../library/logging.handlers.rst:654 msgid "``info``" -msgstr "" +msgstr "``info``" #: ../../library/logging.handlers.rst:654 msgid "LOG_INFO" @@ -892,7 +889,7 @@ msgstr "" #: ../../library/logging.handlers.rst:656 msgid "``notice``" -msgstr "" +msgstr "``notice``" #: ../../library/logging.handlers.rst:656 msgid "LOG_NOTICE" @@ -912,7 +909,7 @@ msgstr "" #: ../../library/logging.handlers.rst:666 msgid "``auth``" -msgstr "" +msgstr "``auth``" #: ../../library/logging.handlers.rst:666 msgid "LOG_AUTH" @@ -920,7 +917,7 @@ msgstr "" #: ../../library/logging.handlers.rst:668 msgid "``authpriv``" -msgstr "" +msgstr "``authpriv``" #: ../../library/logging.handlers.rst:668 msgid "LOG_AUTHPRIV" @@ -928,7 +925,7 @@ msgstr "" #: ../../library/logging.handlers.rst:670 msgid "``cron``" -msgstr "" +msgstr "``cron``" #: ../../library/logging.handlers.rst:670 msgid "LOG_CRON" @@ -936,7 +933,7 @@ msgstr "" #: ../../library/logging.handlers.rst:672 msgid "``daemon``" -msgstr "" +msgstr "``daemon``" #: ../../library/logging.handlers.rst:672 msgid "LOG_DAEMON" @@ -944,7 +941,7 @@ msgstr "" #: ../../library/logging.handlers.rst:674 msgid "``ftp``" -msgstr "" +msgstr "``ftp``" #: ../../library/logging.handlers.rst:674 msgid "LOG_FTP" @@ -952,7 +949,7 @@ msgstr "" #: ../../library/logging.handlers.rst:676 msgid "``kern``" -msgstr "" +msgstr "``kern``" #: ../../library/logging.handlers.rst:676 msgid "LOG_KERN" @@ -960,7 +957,7 @@ msgstr "" #: ../../library/logging.handlers.rst:678 msgid "``lpr``" -msgstr "" +msgstr "``lpr``" #: ../../library/logging.handlers.rst:678 msgid "LOG_LPR" @@ -968,7 +965,7 @@ msgstr "" #: ../../library/logging.handlers.rst:680 msgid "``mail``" -msgstr "" +msgstr "``mail``" #: ../../library/logging.handlers.rst:680 msgid "LOG_MAIL" @@ -976,7 +973,7 @@ msgstr "" #: ../../library/logging.handlers.rst:682 msgid "``news``" -msgstr "" +msgstr "``news``" #: ../../library/logging.handlers.rst:682 msgid "LOG_NEWS" @@ -984,7 +981,7 @@ msgstr "" #: ../../library/logging.handlers.rst:684 msgid "``syslog``" -msgstr "" +msgstr "``syslog``" #: ../../library/logging.handlers.rst:684 msgid "LOG_SYSLOG" @@ -992,7 +989,7 @@ msgstr "" #: ../../library/logging.handlers.rst:686 msgid "``user``" -msgstr "" +msgstr "``user``" #: ../../library/logging.handlers.rst:686 msgid "LOG_USER" @@ -1000,7 +997,7 @@ msgstr "" #: ../../library/logging.handlers.rst:688 msgid "``uucp``" -msgstr "" +msgstr "``uucp``" #: ../../library/logging.handlers.rst:688 msgid "LOG_UUCP" @@ -1008,7 +1005,7 @@ msgstr "" #: ../../library/logging.handlers.rst:690 msgid "``local0``" -msgstr "" +msgstr "``local0``" #: ../../library/logging.handlers.rst:690 msgid "LOG_LOCAL0" @@ -1016,7 +1013,7 @@ msgstr "" #: ../../library/logging.handlers.rst:692 msgid "``local1``" -msgstr "" +msgstr "``local1``" #: ../../library/logging.handlers.rst:692 msgid "LOG_LOCAL1" @@ -1024,7 +1021,7 @@ msgstr "" #: ../../library/logging.handlers.rst:694 msgid "``local2``" -msgstr "" +msgstr "``local2``" #: ../../library/logging.handlers.rst:694 msgid "LOG_LOCAL2" @@ -1032,7 +1029,7 @@ msgstr "" #: ../../library/logging.handlers.rst:696 msgid "``local3``" -msgstr "" +msgstr "``local3``" #: ../../library/logging.handlers.rst:696 msgid "LOG_LOCAL3" @@ -1040,7 +1037,7 @@ msgstr "" #: ../../library/logging.handlers.rst:698 msgid "``local4``" -msgstr "" +msgstr "``local4``" #: ../../library/logging.handlers.rst:698 msgid "LOG_LOCAL4" @@ -1048,7 +1045,7 @@ msgstr "" #: ../../library/logging.handlers.rst:700 msgid "``local5``" -msgstr "" +msgstr "``local5``" #: ../../library/logging.handlers.rst:700 msgid "LOG_LOCAL5" @@ -1056,7 +1053,7 @@ msgstr "" #: ../../library/logging.handlers.rst:702 msgid "``local6``" -msgstr "" +msgstr "``local6``" #: ../../library/logging.handlers.rst:702 msgid "LOG_LOCAL6" @@ -1064,7 +1061,7 @@ msgstr "" #: ../../library/logging.handlers.rst:704 msgid "``local7``" -msgstr "" +msgstr "``local7``" #: ../../library/logging.handlers.rst:704 msgid "LOG_LOCAL7" @@ -1073,10 +1070,10 @@ msgstr "" #: ../../library/logging.handlers.rst:709 msgid "" "Maps a logging level name to a syslog priority name. You may need to " -"override this if you are using custom levels, or if the default algorithm is" -" not suitable for your needs. The default algorithm maps ``DEBUG``, " -"``INFO``, ``WARNING``, ``ERROR`` and ``CRITICAL`` to the equivalent syslog " -"names, and all other level names to 'warning'." +"override this if you are using custom levels, or if the default algorithm is " +"not suitable for your needs. The default algorithm maps ``DEBUG``, ``INFO``, " +"``WARNING``, ``ERROR`` and ``CRITICAL`` to the equivalent syslog names, and " +"all other level names to 'warning'." msgstr "" #: ../../library/logging.handlers.rst:719 @@ -1085,26 +1082,26 @@ msgstr "" #: ../../library/logging.handlers.rst:721 msgid "" -"The :class:`NTEventLogHandler` class, located in the :mod:`logging.handlers`" -" module, supports sending logging messages to a local Windows NT, Windows " -"2000 or Windows XP event log. Before you can use it, you need Mark Hammond's" -" Win32 extensions for Python installed." +"The :class:`NTEventLogHandler` class, located in the :mod:`logging.handlers` " +"module, supports sending logging messages to a local Windows NT, Windows " +"2000 or Windows XP event log. Before you can use it, you need Mark Hammond's " +"Win32 extensions for Python installed." msgstr "" #: ../../library/logging.handlers.rst:729 msgid "" "Returns a new instance of the :class:`NTEventLogHandler` class. The " "*appname* is used to define the application name as it appears in the event " -"log. An appropriate registry entry is created using this name. The *dllname*" -" should give the fully qualified pathname of a .dll or .exe which contains " -"message definitions to hold in the log (if not specified, " -"``'win32service.pyd'`` is used - this is installed with the Win32 extensions" -" and contains some basic placeholder message definitions. Note that use of " -"these placeholders will make your event logs big, as the entire message " -"source is held in the log. If you want slimmer logs, you have to pass in the" -" name of your own .dll or .exe which contains the message definitions you " -"want to use in the event log). The *logtype* is one of ``'Application'``, " -"``'System'`` or ``'Security'``, and defaults to ``'Application'``." +"log. An appropriate registry entry is created using this name. The *dllname* " +"should give the fully qualified pathname of a .dll or .exe which contains " +"message definitions to hold in the log (if not specified, ``'win32service." +"pyd'`` is used - this is installed with the Win32 extensions and contains " +"some basic placeholder message definitions. Note that use of these " +"placeholders will make your event logs big, as the entire message source is " +"held in the log. If you want slimmer logs, you have to pass in the name of " +"your own .dll or .exe which contains the message definitions you want to use " +"in the event log). The *logtype* is one of ``'Application'``, ``'System'`` " +"or ``'Security'``, and defaults to ``'Application'``." msgstr "" #: ../../library/logging.handlers.rst:745 @@ -1133,8 +1130,8 @@ msgid "" "Returns the event type for the record. Override this if you want to specify " "your own types. This version does a mapping using the handler's typemap " "attribute, which is set up in :meth:`__init__` to a dictionary which " -"contains mappings for :const:`DEBUG`, :const:`INFO`, :const:`WARNING`, " -":const:`ERROR` and :const:`CRITICAL`. If you are using your own levels, you " +"contains mappings for :const:`DEBUG`, :const:`INFO`, :const:`WARNING`, :" +"const:`ERROR` and :const:`CRITICAL`. If you are using your own levels, you " "will either need to override this method or place a suitable dictionary in " "the handler's *typemap* attribute." msgstr "" @@ -1175,8 +1172,8 @@ msgid "" "*secure* argument. This will only be used when authentication credentials " "are supplied. The tuple should be either an empty tuple, or a single-value " "tuple with the name of a keyfile, or a 2-value tuple with the names of the " -"keyfile and certificate file. (This tuple is passed to the " -":meth:`smtplib.SMTP.starttls` method.)" +"keyfile and certificate file. (This tuple is passed to the :meth:`smtplib." +"SMTP.starttls` method.)" msgstr "" #: ../../library/logging.handlers.rst:808 @@ -1213,11 +1210,11 @@ msgstr "" #: ../../library/logging.handlers.rst:834 msgid "" -":class:`MemoryHandler` is a subclass of the more general " -":class:`BufferingHandler`, which is an abstract class. This buffers logging " -"records in memory. Whenever each record is added to the buffer, a check is " -"made by calling :meth:`shouldFlush` to see if the buffer should be flushed." -" If it should, then :meth:`flush` is expected to do the flushing." +":class:`MemoryHandler` is a subclass of the more general :class:" +"`BufferingHandler`, which is an abstract class. This buffers logging records " +"in memory. Whenever each record is added to the buffer, a check is made by " +"calling :meth:`shouldFlush` to see if the buffer should be flushed. If it " +"should, then :meth:`flush` is expected to do the flushing." msgstr "" #: ../../library/logging.handlers.rst:843 @@ -1228,8 +1225,8 @@ msgstr "" #: ../../library/logging.handlers.rst:849 msgid "" -"Appends the record to the buffer. If :meth:`shouldFlush` returns true, calls" -" :meth:`flush` to process the buffer." +"Append the record to the buffer. If :meth:`shouldFlush` returns true, call :" +"meth:`flush` to process the buffer." msgstr "" #: ../../library/logging.handlers.rst:855 @@ -1240,8 +1237,8 @@ msgstr "" #: ../../library/logging.handlers.rst:861 msgid "" -"Returns true if the buffer is up to capacity. This method can be overridden " -"to implement custom flushing strategies." +"Return ``True`` if the buffer is up to capacity. This method can be " +"overridden to implement custom flushing strategies." msgstr "" #: ../../library/logging.handlers.rst:867 @@ -1261,15 +1258,14 @@ msgid "The *flushOnClose* parameter was added." msgstr "" #: ../../library/logging.handlers.rst:882 -msgid "" -"Calls :meth:`flush`, sets the target to ``None`` and clears the buffer." +msgid "Calls :meth:`flush`, sets the target to ``None`` and clears the buffer." msgstr "" #: ../../library/logging.handlers.rst:888 msgid "" "For a :class:`MemoryHandler`, flushing means just sending the buffered " -"records to the target, if there is one. The buffer is also cleared when this" -" happens. Override if you want different behavior." +"records to the target, if there is one. The buffer is also cleared when this " +"happens. Override if you want different behavior." msgstr "" #: ../../library/logging.handlers.rst:895 @@ -1296,13 +1292,13 @@ msgid "" "Returns a new instance of the :class:`HTTPHandler` class. The *host* can be " "of the form ``host:port``, should you need to use a specific port number. " "If no *method* is specified, ``GET`` is used. If *secure* is true, a HTTPS " -"connection will be used. The *context* parameter may be set to a " -":class:`ssl.SSLContext` instance to configure the SSL settings used for the " -"HTTPS connection. If *credentials* is specified, it should be a 2-tuple " -"consisting of userid and password, which will be placed in a HTTP " -"'Authorization' header using Basic authentication. If you specify " -"credentials, you should also specify secure=True so that your userid and " -"password are not passed in cleartext across the wire." +"connection will be used. The *context* parameter may be set to a :class:`ssl." +"SSLContext` instance to configure the SSL settings used for the HTTPS " +"connection. If *credentials* is specified, it should be a 2-tuple consisting " +"of userid and password, which will be placed in a HTTP 'Authorization' " +"header using Basic authentication. If you specify credentials, you should " +"also specify secure=True so that your userid and password are not passed in " +"cleartext across the wire." msgstr "" #: ../../library/logging.handlers.rst:926 @@ -1312,27 +1308,27 @@ msgstr "" #: ../../library/logging.handlers.rst:931 msgid "" "Provides a dictionary, based on ``record``, which is to be URL-encoded and " -"sent to the web server. The default implementation just returns " -"``record.__dict__``. This method can be overridden if e.g. only a subset of " -":class:`~logging.LogRecord` is to be sent to the web server, or if more " -"specific customization of what's sent to the server is required." +"sent to the web server. The default implementation just returns ``record." +"__dict__``. This method can be overridden if e.g. only a subset of :class:" +"`~logging.LogRecord` is to be sent to the web server, or if more specific " +"customization of what's sent to the server is required." msgstr "" #: ../../library/logging.handlers.rst:939 msgid "" -"Sends the record to the Web server as a URL-encoded dictionary. The " -":meth:`mapLogRecord` method is used to convert the record to the dictionary " -"to be sent." +"Sends the record to the Web server as a URL-encoded dictionary. The :meth:" +"`mapLogRecord` method is used to convert the record to the dictionary to be " +"sent." msgstr "" #: ../../library/logging.handlers.rst:943 msgid "" -"Since preparing a record for sending it to a Web server is not the same as a" -" generic formatting operation, using :meth:`~logging.Handler.setFormatter` " -"to specify a :class:`~logging.Formatter` for a :class:`HTTPHandler` has no " +"Since preparing a record for sending it to a Web server is not the same as a " +"generic formatting operation, using :meth:`~logging.Handler.setFormatter` to " +"specify a :class:`~logging.Formatter` for a :class:`HTTPHandler` has no " "effect. Instead of calling :meth:`~logging.Handler.format`, this handler " -"calls :meth:`mapLogRecord` and then :func:`urllib.parse.urlencode` to encode" -" the dictionary in a form suitable for sending to a Web server." +"calls :meth:`mapLogRecord` and then :func:`urllib.parse.urlencode` to encode " +"the dictionary in a form suitable for sending to a Web server." msgstr "" #: ../../library/logging.handlers.rst:956 @@ -1359,21 +1355,21 @@ msgstr "" #: ../../library/logging.handlers.rst:973 msgid "" "Returns a new instance of the :class:`QueueHandler` class. The instance is " -"initialized with the queue to send messages to. The *queue* can be any " -"queue-like object; it's used as-is by the :meth:`enqueue` method, which " -"needs to know how to send messages to it. The queue is not *required* to " -"have the task tracking API, which means that you can use " -":class:`~queue.SimpleQueue` instances for *queue*." +"initialized with the queue to send messages to. The *queue* can be any queue-" +"like object; it's used as-is by the :meth:`enqueue` method, which needs to " +"know how to send messages to it. The queue is not *required* to have the " +"task tracking API, which means that you can use :class:`~queue.SimpleQueue` " +"instances for *queue*." msgstr "" #: ../../library/logging.handlers.rst:983 msgid "" -"Enqueues the result of preparing the LogRecord. Should an exception occur " -"(e.g. because a bounded queue has filled up), the " -":meth:`~logging.Handler.handleError` method is called to handle the error. " -"This can result in the record silently being dropped (if " -":attr:`logging.raiseExceptions` is ``False``) or a message printed to " -"``sys.stderr`` (if :attr:`logging.raiseExceptions` is ``True``)." +"Enqueues the result of preparing the LogRecord. Should an exception occur (e." +"g. because a bounded queue has filled up), the :meth:`~logging.Handler." +"handleError` method is called to handle the error. This can result in the " +"record silently being dropped (if :attr:`logging.raiseExceptions` is " +"``False``) or a message printed to ``sys.stderr`` (if :attr:`logging." +"raiseExceptions` is ``True``)." msgstr "" #: ../../library/logging.handlers.rst:992 @@ -1413,9 +1409,9 @@ msgid "" "module, supports receiving logging messages from a queue, such as those " "implemented in the :mod:`queue` or :mod:`multiprocessing` modules. The " "messages are received from a queue in an internal thread and passed, on the " -"same thread, to one or more handlers for processing. While " -":class:`QueueListener` is not itself a handler, it is documented here " -"because it works hand-in-hand with :class:`QueueHandler`." +"same thread, to one or more handlers for processing. While :class:" +"`QueueListener` is not itself a handler, it is documented here because it " +"works hand-in-hand with :class:`QueueHandler`." msgstr "" #: ../../library/logging.handlers.rst:1026 @@ -1433,10 +1429,10 @@ msgid "" "Returns a new instance of the :class:`QueueListener` class. The instance is " "initialized with the queue to send messages to and a list of handlers which " "will handle entries placed on the queue. The queue can be any queue-like " -"object; it's passed as-is to the :meth:`dequeue` method, which needs to know" -" how to get messages from it. The queue is not *required* to have the task " -"tracking API (though it's used if available), which means that you can use " -":class:`~queue.SimpleQueue` instances for *queue*." +"object; it's passed as-is to the :meth:`dequeue` method, which needs to know " +"how to get messages from it. The queue is not *required* to have the task " +"tracking API (though it's used if available), which means that you can use :" +"class:`~queue.SimpleQueue` instances for *queue*." msgstr "" #: ../../library/logging.handlers.rst:1043 @@ -1457,8 +1453,8 @@ msgstr "" #: ../../library/logging.handlers.rst:1055 msgid "" -"The base implementation uses ``get()``. You may want to override this method" -" if you want to use timeouts or work with custom queue implementations." +"The base implementation uses ``get()``. You may want to override this method " +"if you want to use timeouts or work with custom queue implementations." msgstr "" #: ../../library/logging.handlers.rst:1061 @@ -1478,9 +1474,9 @@ msgstr "" #: ../../library/logging.handlers.rst:1071 msgid "" -"This just loops through the handlers offering them the record to handle. The" -" actual object passed to the handlers is that which is returned from " -":meth:`prepare`." +"This just loops through the handlers offering them the record to handle. The " +"actual object passed to the handlers is that which is returned from :meth:" +"`prepare`." msgstr "" #: ../../library/logging.handlers.rst:1077 @@ -1499,8 +1495,8 @@ msgstr "" #: ../../library/logging.handlers.rst:1086 msgid "" -"This asks the thread to terminate, and then waits for it to do so. Note that" -" if you don't call this before your application exits, there may be some " +"This asks the thread to terminate, and then waits for it to do so. Note that " +"if you don't call this before your application exits, there may be some " "records still left on the queue, which won't be processed." msgstr "" @@ -1525,4 +1521,4 @@ msgstr "Módulo :mod:`logging.config`" #: ../../library/logging.handlers.rst:1106 msgid "Configuration API for the logging module." -msgstr "" +msgstr "API de configuração para o módulo logging." diff --git a/library/logging.po b/library/logging.po index 52a6e4d69..4e86ab2b8 100644 --- a/library/logging.po +++ b/library/logging.po @@ -1,22 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # felipe caridade , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Katyanna Moura , 2019 -# +# Hildeberto Abreu Magalhães , 2019 +# Sheila Gomes , 2019 +# Aline Balogh , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-05 03:41+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Katyanna Moura , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,7 +30,7 @@ msgstr "" #: ../../library/logging.rst:2 msgid ":mod:`logging` --- Logging facility for Python" -msgstr "" +msgstr ":mod:`logging` --- Facilidade para registrar com Python" #: ../../library/logging.rst:10 msgid "**Source code:** :source:`Lib/logging/__init__.py`" @@ -36,24 +41,28 @@ msgid "" "This page contains the API reference information. For tutorial information " "and discussion of more advanced topics, see" msgstr "" +"Esta página contêm informação de referência da API. Para informação tutorial " +"e discussão de tópicos mais avançados, consulte" #: ../../library/logging.rst:19 msgid ":ref:`Basic Tutorial `" -msgstr "" +msgstr ":ref:`Basic Tutorial `" #: ../../library/logging.rst:20 msgid ":ref:`Advanced Tutorial `" -msgstr "" +msgstr ":ref:`Advanced Tutorial `" #: ../../library/logging.rst:21 msgid ":ref:`Logging Cookbook `" -msgstr "" +msgstr ":ref:`Logging Cookbook `" #: ../../library/logging.rst:25 msgid "" "This module defines functions and classes which implement a flexible event " "logging system for applications and libraries." msgstr "" +"Este módulo define funções e classes que implementam um registro flexível de " +"eventos de sistema para aplicações e bibliotecas." #: ../../library/logging.rst:28 msgid "" @@ -62,6 +71,10 @@ msgid "" "application log can include your own messages integrated with messages from " "third-party modules." msgstr "" +"O principal benefício de ter a API de registro de eventos a partir de um " +"módulo da biblioteca padrão é que todos os módulos Python podem participar " +"no registro de eventos, de forma que sua aplicação pode incluir suas " +"próprias mensagens, integradas com mensagens de módulos de terceiros." #: ../../library/logging.rst:33 msgid "" @@ -69,44 +82,58 @@ msgid "" "unfamiliar with logging, the best way to get to grips with it is to see the " "tutorials (see the links on the right)." msgstr "" +"O módulo fornece muita funcionalidade e flexibilidade. Se não for familiar " +"com registro de eventos, a melhor forma de lidar com isso é verificar os " +"tutoriais (siga os links à direita)." #: ../../library/logging.rst:37 msgid "" "The basic classes defined by the module, together with their functions, are " "listed below." msgstr "" +"As classes básicas definidas no módulo, juntamente com suas funções, são " +"listdas abaixo." #: ../../library/logging.rst:40 msgid "Loggers expose the interface that application code directly uses." -msgstr "" +msgstr "Loggers expõem a interface que o código da aplicação usa diretamente." #: ../../library/logging.rst:41 msgid "" "Handlers send the log records (created by loggers) to the appropriate " "destination." msgstr "" +"Handlers enviam os registros do evento (criados por loggers) aos destinos " +"apropriados." #: ../../library/logging.rst:43 msgid "" "Filters provide a finer grained facility for determining which log records " "to output." msgstr "" +"Filters fornecem uma facilidade granular para determinar quais registros de " +"eventos enviar à saída." #: ../../library/logging.rst:45 msgid "Formatters specify the layout of log records in the final output." msgstr "" +"Formatters especificam o layout dos registros de eventos na saída final." #: ../../library/logging.rst:51 msgid "Logger Objects" -msgstr "" +msgstr "Objetos Logger" #: ../../library/logging.rst:53 msgid "" -"Loggers have the following attributes and methods. Note that Loggers should" -" *NEVER* be instantiated directly, but always through the module-level " +"Loggers have the following attributes and methods. Note that Loggers should " +"*NEVER* be instantiated directly, but always through the module-level " "function ``logging.getLogger(name)``. Multiple calls to :func:`getLogger` " "with the same name will always return a reference to the same Logger object." msgstr "" +"Loggers tem os atributos e métodos a seguir. Observem que Loggers *NUNCA* " +"devem ser instanciados diretamete, mas sempre através da função ``logging." +"getLogger(name)``. Múltiplas chamadas à função :func:`getLogger` com o mesmo " +"nome sempre retornará uma referência para o mesmo objeto Logger." #: ../../library/logging.rst:58 msgid "" @@ -114,13 +141,23 @@ msgid "" "``foo.bar.baz`` (though it could also be just plain ``foo``, for example). " "Loggers that are further down in the hierarchical list are children of " "loggers higher up in the list. For example, given a logger with a name of " -"``foo``, loggers with names of ``foo.bar``, ``foo.bar.baz``, and ``foo.bam``" -" are all descendants of ``foo``. The logger name hierarchy is analogous to " +"``foo``, loggers with names of ``foo.bar``, ``foo.bar.baz``, and ``foo.bam`` " +"are all descendants of ``foo``. The logger name hierarchy is analogous to " "the Python package hierarchy, and identical to it if you organise your " -"loggers on a per-module basis using the recommended construction " -"``logging.getLogger(__name__)``. That's because in a module, ``__name__`` " -"is the module's name in the Python package namespace." -msgstr "" +"loggers on a per-module basis using the recommended construction ``logging." +"getLogger(__name__)``. That's because in a module, ``__name__`` is the " +"module's name in the Python package namespace." +msgstr "" +"O ``name`` é, potencialmente, um valor hierárquico separado por ponto, como " +"``foo.bar.baz`` (embora também possa ser simplesmente ``foo``, por exemplo). " +"Loggers que estão mais abaixo na lista hierárquica são filhos de loggers que " +"estão acima na lista. Por exemplo, dado um logger com nome ``foo``, loggers " +"com nomes de ``foo.bar``, ``foo.bar.baz``, e ``foo.bam`` são todos " +"descendentes de ``foo``. A hierarquia do nome do logger é análoga às dos " +"pacotes Python, e idêntico a esses, se você organizar seus loggers baseado " +"nos módulos usando a construção recomendada ``logging." +"getLogger(__name__)``. Isso porque num módulo ``__name__`` é o nome do " +"módulo no espaço de nomes do pacote Python." #: ../../library/logging.rst:74 msgid "" @@ -130,16 +167,21 @@ msgid "" "ancestor loggers' handlers - neither the level nor filters of the ancestor " "loggers in question are considered." msgstr "" +"Se este atributo for avaliado como verdadeiro, os registros de eventos para " +"esse logger serão repassados para loggers de níveis superiores (ancestrais), " +"em adição a qualquer destino configurado para esse logger." #: ../../library/logging.rst:80 msgid "" "If this evaluates to false, logging messages are not passed to the handlers " "of ancestor loggers." msgstr "" +"Se o valor for falso, as mensagens de registro de eventos não são passadas " +"para loggers ancestrais." #: ../../library/logging.rst:83 msgid "The constructor sets this attribute to ``True``." -msgstr "" +msgstr "O construtor atribui este valor como ``True``." #: ../../library/logging.rst:85 msgid "" @@ -152,6 +194,13 @@ msgid "" "handlers only to the root logger, and to let propagation take care of the " "rest." msgstr "" +"Se você configurar um destino para o logger *e* um ou mais dos ancestrais, " +"pode acontecer a mesma mensagem registrada várias vezes. Em geral, você não " +"precisa configurar saídas para mais que um logger - se você configurar " +"apenas para o logger principal da hierarquia, então todos os eventos dos " +"loggers descendentes serão visualizados ali, fornecido pela configuração de " +"propagação, cujo padrão é ``True``. Um cenário comum é configurar as saídas " +"somente no logger raiz, e deixar a propagação tomar conta do resto." #: ../../library/logging.rst:96 msgid "" @@ -161,6 +210,11 @@ msgid "" "service this logger, unless a handler's level has been set to a higher " "severity level than *level*." msgstr "" +"Ajuste o limite para este logger para *level*. Mensagens de registro de " +"eventos que forem menos severas que este *level* serão ignoradas; mensagens " +"que tenham nível de severidade igual ou maior que *level* serão emitidas " +"para os destinos de saída configurados para o logger, a menos que o nível da " +"saída tenha sido configurado para uma severidade ainda maior." #: ../../library/logging.rst:101 msgid "" @@ -179,15 +233,15 @@ msgstr "" #: ../../library/logging.rst:110 msgid "" -"If an ancestor is found with a level other than NOTSET, then that ancestor's" -" level is treated as the effective level of the logger where the ancestor " +"If an ancestor is found with a level other than NOTSET, then that ancestor's " +"level is treated as the effective level of the logger where the ancestor " "search began, and is used to determine how a logging event is handled." msgstr "" #: ../../library/logging.rst:114 msgid "" -"If the root is reached, and it has a level of NOTSET, then all messages will" -" be processed. Otherwise, the root's level will be used as the effective " +"If the root is reached, and it has a level of NOTSET, then all messages will " +"be processed. Otherwise, the root's level will be used as the effective " "level." msgstr "" @@ -200,36 +254,34 @@ msgid "" "The *level* parameter now accepts a string representation of the level such " "as 'INFO' as an alternative to the integer constants such as :const:`INFO`. " "Note, however, that levels are internally stored as integers, and methods " -"such as e.g. :meth:`getEffectiveLevel` and :meth:`isEnabledFor` will " -"return/expect to be passed integers." +"such as e.g. :meth:`getEffectiveLevel` and :meth:`isEnabledFor` will return/" +"expect to be passed integers." msgstr "" #: ../../library/logging.rst:129 msgid "" "Indicates if a message of severity *level* would be processed by this " -"logger. This method checks first the module-level level set by " -"``logging.disable(level)`` and then the logger's effective level as " -"determined by :meth:`getEffectiveLevel`." +"logger. This method checks first the module-level level set by ``logging." +"disable(level)`` and then the logger's effective level as determined by :" +"meth:`getEffectiveLevel`." msgstr "" #: ../../library/logging.rst:137 msgid "" -"Indicates the effective level for this logger. If a value other than " -":const:`NOTSET` has been set using :meth:`setLevel`, it is returned. " -"Otherwise, the hierarchy is traversed towards the root until a value other " -"than :const:`NOTSET` is found, and that value is returned. The value " -"returned is an integer, typically one of :const:`logging.DEBUG`, " -":const:`logging.INFO` etc." +"Indicates the effective level for this logger. If a value other than :const:" +"`NOTSET` has been set using :meth:`setLevel`, it is returned. Otherwise, the " +"hierarchy is traversed towards the root until a value other than :const:" +"`NOTSET` is found, and that value is returned. The value returned is an " +"integer, typically one of :const:`logging.DEBUG`, :const:`logging.INFO` etc." msgstr "" #: ../../library/logging.rst:147 msgid "" "Returns a logger which is a descendant to this logger, as determined by the " "suffix. Thus, ``logging.getLogger('abc').getChild('def.ghi')`` would return " -"the same logger as would be returned by " -"``logging.getLogger('abc.def.ghi')``. This is a convenience method, useful " -"when the parent logger is named using e.g. ``__name__`` rather than a " -"literal string." +"the same logger as would be returned by ``logging.getLogger('abc.def." +"ghi')``. This is a convenience method, useful when the parent logger is " +"named using e.g. ``__name__`` rather than a literal string." msgstr "" #: ../../library/logging.rst:158 @@ -237,9 +289,14 @@ msgid "" "Logs a message with level :const:`DEBUG` on this logger. The *msg* is the " "message format string, and the *args* are the arguments which are merged " "into *msg* using the string formatting operator. (Note that this means that " -"you can use keywords in the format string, together with a single dictionary" -" argument.)" +"you can use keywords in the format string, together with a single dictionary " +"argument.)" msgstr "" +"Registra uma mensagem com nível :const:`DEBUG` neste registrador. O *msg* é " +"a sequência de caracteres do formato da mensagem e os *args* são os " +"argumentos que são mesclados em *msg* usando o operador de formatação da " +"sequência. (Observe que isso significa que você pode usar palavras-chave na " +"string de formato, juntamente com um único argumento do dicionário.)" #: ../../library/logging.rst:163 msgid "" @@ -249,8 +306,8 @@ msgstr "" #: ../../library/logging.rst:166 msgid "" -"If *exc_info* does not evaluate as false, it causes exception information to" -" be added to the logging message. If an exception tuple (in the format " +"If *exc_info* does not evaluate as false, it causes exception information to " +"be added to the logging message. If an exception tuple (in the format " "returned by :func:`sys.exc_info`) or an exception instance is provided, it " "is used; otherwise, :func:`sys.exc_info` is called to get the exception " "information." @@ -283,10 +340,10 @@ msgstr "" #: ../../library/logging.rst:191 msgid "" -"The third keyword argument is *extra* which can be used to pass a dictionary" -" which is used to populate the __dict__ of the LogRecord created for the " -"logging event with user-defined attributes. These custom attributes can then" -" be used as you like. For example, they could be incorporated into logged " +"The third keyword argument is *extra* which can be used to pass a dictionary " +"which is used to populate the __dict__ of the LogRecord created for the " +"logging event with user-defined attributes. These custom attributes can then " +"be used as you like. For example, they could be incorporated into logged " "messages. For example::" msgstr "" @@ -304,10 +361,10 @@ msgstr "" #: ../../library/logging.rst:213 ../../library/logging.rst:978 msgid "" "If you choose to use these attributes in logged messages, you need to " -"exercise some care. In the above example, for instance, the " -":class:`Formatter` has been set up with a format string which expects " -"'clientip' and 'user' in the attribute dictionary of the LogRecord. If these" -" are missing, the message will not be logged because a string formatting " +"exercise some care. In the above example, for instance, the :class:" +"`Formatter` has been set up with a format string which expects 'clientip' " +"and 'user' in the attribute dictionary of the LogRecord. If these are " +"missing, the message will not be logged because a string formatting " "exception will occur. So in this case, you always need to pass the *extra* " "dictionary with these keys." msgstr "" @@ -318,8 +375,8 @@ msgid "" "specialized circumstances, such as multi-threaded servers where the same " "code executes in many contexts, and interesting conditions which arise are " "dependent on this context (such as remote client IP address and " -"authenticated user name, in the above example). In such circumstances, it is" -" likely that specialized :class:`Formatter`\\ s would be used with " +"authenticated user name, in the above example). In such circumstances, it is " +"likely that specialized :class:`Formatter`\\ s would be used with " "particular :class:`Handler`\\ s." msgstr "" @@ -339,8 +396,8 @@ msgstr "" #: ../../library/logging.rst:242 msgid "" -"Logs a message with level :const:`WARNING` on this logger. The arguments are" -" interpreted as for :meth:`debug`." +"Logs a message with level :const:`WARNING` on this logger. The arguments are " +"interpreted as for :meth:`debug`." msgstr "" #: ../../library/logging.rst:245 @@ -385,11 +442,11 @@ msgstr "" #: ../../library/logging.rst:286 msgid "" -"Applies this logger's filters to the record and returns a true value if the " -"record is to be processed. The filters are consulted in turn, until one of " -"them returns a false value. If none of them return a false value, the record" -" will be processed (passed to handlers). If one returns a false value, no " -"further processing of the record occurs." +"Apply this logger's filters to the record and return ``True`` if the record " +"is to be processed. The filters are consulted in turn, until one of them " +"returns a false value. If none of them return a false value, the record will " +"be processed (passed to handlers). If one returns a false value, no further " +"processing of the record occurs." msgstr "" #: ../../library/logging.rst:295 @@ -410,10 +467,10 @@ msgstr "" #: ../../library/logging.rst:312 msgid "" "Handles a record by passing it to all handlers associated with this logger " -"and its ancestors (until a false value of *propagate* is found). This method" -" is used for unpickled records received from a socket, as well as those " -"created locally. Logger-level filtering is applied using " -":meth:`~Logger.filter`." +"and its ancestors (until a false value of *propagate* is found). This method " +"is used for unpickled records received from a socket, as well as those " +"created locally. Logger-level filtering is applied using :meth:`~Logger." +"filter`." msgstr "" #: ../../library/logging.rst:320 @@ -425,8 +482,8 @@ msgstr "" #: ../../library/logging.rst:325 msgid "" "Checks to see if this logger has any handlers configured. This is done by " -"looking for handlers in this logger and its parents in the logger hierarchy." -" Returns ``True`` if a handler was found, else ``False``. The method stops " +"looking for handlers in this logger and its parents in the logger hierarchy. " +"Returns ``True`` if a handler was found, else ``False``. The method stops " "searching up the hierarchy whenever a logger with the 'propagate' attribute " "set to false is found - that will be the last logger which is checked for " "the existence of handlers." @@ -442,8 +499,8 @@ msgstr "" #: ../../library/logging.rst:342 msgid "" -"The numeric values of logging levels are given in the following table. These" -" are primarily of interest if you want to define your own levels, and need " +"The numeric values of logging levels are given in the following table. These " +"are primarily of interest if you want to define your own levels, and need " "them to have specific values relative to the predefined levels. If you " "define a level with the same numeric value, it overwrites the predefined " "value; the predefined name is lost." @@ -451,7 +508,7 @@ msgstr "" #: ../../library/logging.rst:349 msgid "Level" -msgstr "" +msgstr "Nível" #: ../../library/logging.rst:349 msgid "Numeric value" @@ -511,17 +568,17 @@ msgstr "Manipulação de Objetos" #: ../../library/logging.rst:370 msgid "" -"Handlers have the following attributes and methods. Note that " -":class:`Handler` is never instantiated directly; this class acts as a base " -"for more useful subclasses. However, the :meth:`__init__` method in " -"subclasses needs to call :meth:`Handler.__init__`." +"Handlers have the following attributes and methods. Note that :class:" +"`Handler` is never instantiated directly; this class acts as a base for more " +"useful subclasses. However, the :meth:`__init__` method in subclasses needs " +"to call :meth:`Handler.__init__`." msgstr "" #: ../../library/logging.rst:379 msgid "" "Initializes the :class:`Handler` instance by setting its level, setting the " -"list of filters to the empty list and creating a lock (using " -":meth:`createLock`) for serializing access to an I/O mechanism." +"list of filters to the empty list and creating a lock (using :meth:" +"`createLock`) for serializing access to an I/O mechanism." msgstr "" #: ../../library/logging.rst:386 @@ -565,32 +622,32 @@ msgstr "" #: ../../library/logging.rst:432 msgid "" -"Applies this handler's filters to the record and returns a true value if the" -" record is to be processed. The filters are consulted in turn, until one of " -"them returns a false value. If none of them return a false value, the record" -" will be emitted. If one returns a false value, the handler will not emit " -"the record." +"Apply this handler's filters to the record and return ``True`` if the record " +"is to be processed. The filters are consulted in turn, until one of them " +"returns a false value. If none of them return a false value, the record will " +"be emitted. If one returns a false value, the handler will not emit the " +"record." msgstr "" #: ../../library/logging.rst:441 msgid "" -"Ensure all logging output has been flushed. This version does nothing and is" -" intended to be implemented by subclasses." +"Ensure all logging output has been flushed. This version does nothing and is " +"intended to be implemented by subclasses." msgstr "" #: ../../library/logging.rst:447 msgid "" "Tidy up any resources used by the handler. This version does no output but " -"removes the handler from an internal list of handlers which is closed when " -":func:`shutdown` is called. Subclasses should ensure that this gets called " +"removes the handler from an internal list of handlers which is closed when :" +"func:`shutdown` is called. Subclasses should ensure that this gets called " "from overridden :meth:`close` methods." msgstr "" #: ../../library/logging.rst:455 msgid "" -"Conditionally emits the specified logging record, depending on filters which" -" may have been added to the handler. Wraps the actual emission of the record" -" with acquisition/release of the I/O thread lock." +"Conditionally emits the specified logging record, depending on filters which " +"may have been added to the handler. Wraps the actual emission of the record " +"with acquisition/release of the I/O thread lock." msgstr "" #: ../../library/logging.rst:462 @@ -601,9 +658,9 @@ msgid "" "what is mostly wanted for a logging system - most users will not care about " "errors in the logging system, they are more interested in application " "errors. You could, however, replace this with a custom handler if you wish. " -"The specified record is the one which was being processed when the exception" -" occurred. (The default value of ``raiseExceptions`` is ``True``, as that is" -" more useful during development)." +"The specified record is the one which was being processed when the exception " +"occurred. (The default value of ``raiseExceptions`` is ``True``, as that is " +"more useful during development)." msgstr "" #: ../../library/logging.rst:475 @@ -615,8 +672,8 @@ msgstr "" #: ../../library/logging.rst:481 msgid "" "Do whatever it takes to actually log the specified logging record. This " -"version is intended to be implemented by subclasses and so raises a " -":exc:`NotImplementedError`." +"version is intended to be implemented by subclasses and so raises a :exc:" +"`NotImplementedError`." msgstr "" #: ../../library/logging.rst:485 @@ -632,8 +689,8 @@ msgstr "" msgid "" ":class:`Formatter` objects have the following attributes and methods. They " "are responsible for converting a :class:`LogRecord` to (usually) a string " -"which can be interpreted by either a human or an external system. The base " -":class:`Formatter` allows a formatting string to be specified. If none is " +"which can be interpreted by either a human or an external system. The base :" +"class:`Formatter` allows a formatting string to be specified. If none is " "supplied, the default value of ``'%(message)s'`` is used, which just " "includes the message in the logging call. To have additional items of " "information in the formatted output (such as a timestamp), keep reading." @@ -643,16 +700,16 @@ msgstr "" msgid "" "A Formatter can be initialized with a format string which makes use of " "knowledge of the :class:`LogRecord` attributes - such as the default value " -"mentioned above making use of the fact that the user's message and arguments" -" are pre-formatted into a :class:`LogRecord`'s *message* attribute. This " -"format string contains standard Python %-style mapping keys. See section " -":ref:`old-string-formatting` for more information on string formatting." +"mentioned above making use of the fact that the user's message and arguments " +"are pre-formatted into a :class:`LogRecord`'s *message* attribute. This " +"format string contains standard Python %-style mapping keys. See section :" +"ref:`old-string-formatting` for more information on string formatting." msgstr "" #: ../../library/logging.rst:509 msgid "" -"The useful mapping keys in a :class:`LogRecord` are given in the section on " -":ref:`logrecord-attributes`." +"The useful mapping keys in a :class:`LogRecord` are given in the section on :" +"ref:`logrecord-attributes`." msgstr "" #: ../../library/logging.rst:515 @@ -667,9 +724,9 @@ msgstr "" #: ../../library/logging.rst:521 msgid "" "The *style* parameter can be one of '%', '{' or '$' and determines how the " -"format string will be merged with its data: using one of %-formatting, " -":meth:`str.format` or :class:`string.Template`. See :ref:`formatting-styles`" -" for more information on using {- and $-formatting for log messages." +"format string will be merged with its data: using one of %-formatting, :meth:" +"`str.format` or :class:`string.Template`. See :ref:`formatting-styles` for " +"more information on using {- and $-formatting for log messages." msgstr "" #: ../../library/logging.rst:526 @@ -683,16 +740,30 @@ msgid "" "dictionary, a couple of preparatory steps are carried out. The *message* " "attribute of the record is computed using *msg* % *args*. If the formatting " "string contains ``'(asctime)'``, :meth:`formatTime` is called to format the " -"event time. If there is exception information, it is formatted using " -":meth:`formatException` and appended to the message. Note that the formatted" -" exception information is cached in attribute *exc_text*. This is useful " +"event time. If there is exception information, it is formatted using :meth:" +"`formatException` and appended to the message. Note that the formatted " +"exception information is cached in attribute *exc_text*. This is useful " "because the exception information can be pickled and sent across the wire, " "but you should be careful if you have more than one :class:`Formatter` " "subclass which customizes the formatting of exception information. In this " -"case, you will have to clear the cached value after a formatter has done its" -" formatting, so that the next formatter to handle the event doesn't use the " +"case, you will have to clear the cached value after a formatter has done its " +"formatting, so that the next formatter to handle the event doesn't use the " "cached value but recalculates it afresh." msgstr "" +"O dicionário de atributo do registro é usado como operando para uma operação " +"de formatação de string. Retorna a sequência resultante. Antes de formatar o " +"dicionário, são executadas algumas etapas preparatórias. O atributo " +"*message* do registro é calculado usando *msg* % *args*. Se a string de " +"formatação contiver ``'(asctime)'``, :meth:`formatTime` será chamado para " +"formatar a hora do evento. Se houver informações de exceção, elas serão " +"formatadas usando :meth:`formatException` e anexadas à mensagem. Observe que " +"as informações da exceção formatada são armazenadas em cache no atributo " +"*exc_text*. Isso é útil porque as informações de exceção podem ser " +"selecionadas e enviadas através da conexão, mas você deve ter cuidado se " +"tiver mais de uma subclasse :class:`Formatter`, que personaliza a formatação " +"das informações de exceção. Nesse caso, você terá que limpar o valor em " +"cache após a formatação de um formatador, para que o próximo formatador para " +"manipular o evento não use o valor em cache, mas o recalcule novamente." #: ../../library/logging.rst:548 msgid "" @@ -703,25 +774,24 @@ msgstr "" #: ../../library/logging.rst:554 msgid "" "This method should be called from :meth:`format` by a formatter which wants " -"to make use of a formatted time. This method can be overridden in formatters" -" to provide for any specific requirement, but the basic behavior is as " -"follows: if *datefmt* (a string) is specified, it is used with " -":func:`time.strftime` to format the creation time of the record. Otherwise, " -"the format '%Y-%m-%d %H:%M:%S,uuu' is used, where the uuu part is a " -"millisecond value and the other letters are as per the :func:`time.strftime`" -" documentation. An example time in this format is ``2003-01-23 " -"00:29:50,411``. The resulting string is returned." +"to make use of a formatted time. This method can be overridden in formatters " +"to provide for any specific requirement, but the basic behavior is as " +"follows: if *datefmt* (a string) is specified, it is used with :func:`time." +"strftime` to format the creation time of the record. Otherwise, the format " +"'%Y-%m-%d %H:%M:%S,uuu' is used, where the uuu part is a millisecond value " +"and the other letters are as per the :func:`time.strftime` documentation. " +"An example time in this format is ``2003-01-23 00:29:50,411``. The " +"resulting string is returned." msgstr "" #: ../../library/logging.rst:564 msgid "" -"This function uses a user-configurable function to convert the creation time" -" to a tuple. By default, :func:`time.localtime` is used; to change this for " -"a particular formatter instance, set the ``converter`` attribute to a " -"function with the same signature as :func:`time.localtime` or " -":func:`time.gmtime`. To change it for all formatters, for example if you " -"want all logging times to be shown in GMT, set the ``converter`` attribute " -"in the ``Formatter`` class." +"This function uses a user-configurable function to convert the creation time " +"to a tuple. By default, :func:`time.localtime` is used; to change this for a " +"particular formatter instance, set the ``converter`` attribute to a function " +"with the same signature as :func:`time.localtime` or :func:`time.gmtime`. To " +"change it for all formatters, for example if you want all logging times to " +"be shown in GMT, set the ``converter`` attribute in the ``Formatter`` class." msgstr "" #: ../../library/logging.rst:572 @@ -749,9 +819,9 @@ msgstr "" #: ../../library/logging.rst:594 msgid "" -"Formats the specified stack information (a string as returned by " -":func:`traceback.print_stack`, but with the last newline removed) as a " -"string. This default implementation just returns the input value." +"Formats the specified stack information (a string as returned by :func:" +"`traceback.print_stack`, but with the last newline removed) as a string. " +"This default implementation just returns the input value." msgstr "" #: ../../library/logging.rst:601 @@ -764,14 +834,14 @@ msgid "" "sophisticated filtering than is provided by levels. The base filter class " "only allows events which are below a certain point in the logger hierarchy. " "For example, a filter initialized with 'A.B' will allow events logged by " -"loggers 'A.B', 'A.B.C', 'A.B.C.D', 'A.B.D' etc. but not 'A.BB', 'B.A.B' etc." -" If initialized with the empty string, all events are passed." +"loggers 'A.B', 'A.B.C', 'A.B.C.D', 'A.B.D' etc. but not 'A.BB', 'B.A.B' etc. " +"If initialized with the empty string, all events are passed." msgstr "" #: ../../library/logging.rst:613 msgid "" -"Returns an instance of the :class:`Filter` class. If *name* is specified, it" -" names a logger which, together with its children, will have its events " +"Returns an instance of the :class:`Filter` class. If *name* is specified, it " +"names a logger which, together with its children, will have its events " "allowed through the filter. If *name* is the empty string, allows every " "event." msgstr "" @@ -789,8 +859,7 @@ msgid "" "whenever an event is logged (using :meth:`debug`, :meth:`info`, etc.), " "before sending an event to handlers. This means that events which have been " "generated by descendant loggers will not be filtered by a logger's filter " -"setting, unless the filter has also been applied to those descendant " -"loggers." +"setting, unless the filter has also been applied to those descendant loggers." msgstr "" #: ../../library/logging.rst:631 @@ -802,10 +871,10 @@ msgstr "" #: ../../library/logging.rst:634 msgid "" "You don't need to create specialized ``Filter`` classes, or use other " -"classes with a ``filter`` method: you can use a function (or other callable)" -" as a filter. The filtering logic will check to see if the filter object has" -" a ``filter`` attribute: if it does, it's assumed to be a ``Filter`` and its" -" :meth:`~Filter.filter` method is called. Otherwise, it's assumed to be a " +"classes with a ``filter`` method: you can use a function (or other callable) " +"as a filter. The filtering logic will check to see if the filter object has " +"a ``filter`` attribute: if it does, it's assumed to be a ``Filter`` and its :" +"meth:`~Filter.filter` method is called. Otherwise, it's assumed to be a " "callable and called with the record as the single parameter. The returned " "value should conform to that returned by :meth:`~Filter.filter`." msgstr "" @@ -828,10 +897,10 @@ msgstr "" #: ../../library/logging.rst:658 msgid "" -":class:`LogRecord` instances are created automatically by the " -":class:`Logger` every time something is logged, and can be created manually " -"via :func:`makeLogRecord` (for example, from a pickled event received over " -"the wire)." +":class:`LogRecord` instances are created automatically by the :class:" +"`Logger` every time something is logged, and can be created manually via :" +"func:`makeLogRecord` (for example, from a pickled event received over the " +"wire)." msgstr "" #: ../../library/logging.rst:666 @@ -840,12 +909,12 @@ msgstr "" #: ../../library/logging.rst:668 msgid "" -"The primary information is passed in :attr:`msg` and :attr:`args`, which are" -" combined using ``msg % args`` to create the :attr:`message` field of the " +"The primary information is passed in :attr:`msg` and :attr:`args`, which are " +"combined using ``msg % args`` to create the :attr:`message` field of the " "record." msgstr "" -#: ../../library/logging.rst:0 ../../library/logging.rst:0 +#: ../../library/logging.rst:0 msgid "Parameters" msgstr "" @@ -885,8 +954,8 @@ msgstr "" #: ../../library/logging.rst:688 msgid "" -"An exception tuple with the current exception information, or ``None`` if no" -" exception information is available." +"An exception tuple with the current exception information, or ``None`` if no " +"exception information is available." msgstr "" #: ../../library/logging.rst:690 @@ -904,24 +973,23 @@ msgstr "" msgid "" "Returns the message for this :class:`LogRecord` instance after merging any " "user-supplied arguments with the message. If the user-supplied message " -"argument to the logging call is not a string, :func:`str` is called on it to" -" convert it to a string. This allows use of user-defined classes as " -"messages, whose ``__str__`` method can return the actual format string to be" -" used." +"argument to the logging call is not a string, :func:`str` is called on it to " +"convert it to a string. This allows use of user-defined classes as messages, " +"whose ``__str__`` method can return the actual format string to be used." msgstr "" #: ../../library/logging.rst:704 msgid "" -"The creation of a ``LogRecord`` has been made more configurable by providing" -" a factory which is used to create the record. The factory can be set using " -":func:`getLogRecordFactory` and :func:`setLogRecordFactory` (see this for " -"the factory's signature)." +"The creation of a ``LogRecord`` has been made more configurable by providing " +"a factory which is used to create the record. The factory can be set using :" +"func:`getLogRecordFactory` and :func:`setLogRecordFactory` (see this for the " +"factory's signature)." msgstr "" #: ../../library/logging.rst:710 msgid "" -"This functionality can be used to inject your own values into a LogRecord at" -" creation time. You can use the following pattern::" +"This functionality can be used to inject your own values into a LogRecord at " +"creation time. You can use the following pattern::" msgstr "" #: ../../library/logging.rst:722 @@ -937,22 +1005,21 @@ msgstr "Atributos LogRecord" #: ../../library/logging.rst:733 msgid "" -"The LogRecord has a number of attributes, most of which are derived from the" -" parameters to the constructor. (Note that the names do not always " -"correspond exactly between the LogRecord constructor parameters and the " -"LogRecord attributes.) These attributes can be used to merge data from the " -"record into the format string. The following table lists (in alphabetical " -"order) the attribute names, their meanings and the corresponding placeholder" -" in a %-style format string." +"The LogRecord has a number of attributes, most of which are derived from the " +"parameters to the constructor. (Note that the names do not always correspond " +"exactly between the LogRecord constructor parameters and the LogRecord " +"attributes.) These attributes can be used to merge data from the record into " +"the format string. The following table lists (in alphabetical order) the " +"attribute names, their meanings and the corresponding placeholder in a %-" +"style format string." msgstr "" #: ../../library/logging.rst:741 msgid "" -"If you are using {}-formatting (:func:`str.format`), you can use " -"``{attrname}`` as the placeholder in the format string. If you are using " -"$-formatting (:class:`string.Template`), use the form ``${attrname}``. In " -"both cases, of course, replace ``attrname`` with the actual attribute name " -"you want to use." +"If you are using {}-formatting (:func:`str.format`), you can use ``{attrname}" +"`` as the placeholder in the format string. If you are using $-formatting (:" +"class:`string.Template`), use the form ``${attrname}``. In both cases, of " +"course, replace ``attrname`` with the actual attribute name you want to use." msgstr "" #: ../../library/logging.rst:747 @@ -987,9 +1054,9 @@ msgstr "" #: ../../library/logging.rst:756 msgid "" -"The tuple of arguments merged into ``msg`` to produce ``message``, or a dict" -" whose values are used for the merge (when there is only one argument, and " -"it is a dictionary)." +"The tuple of arguments merged into ``msg`` to produce ``message``, or a dict " +"whose values are used for the merge (when there is only one argument, and it " +"is a dictionary)." msgstr "" #: ../../library/logging.rst:761 @@ -998,7 +1065,7 @@ msgstr "" #: ../../library/logging.rst:761 msgid "``%(asctime)s``" -msgstr "" +msgstr "``%(asctime)s``" #: ../../library/logging.rst:761 msgid "" @@ -1013,12 +1080,12 @@ msgstr "" #: ../../library/logging.rst:767 msgid "``%(created)f``" -msgstr "" +msgstr "``%(created)f``" #: ../../library/logging.rst:767 msgid "" -"Time when the :class:`LogRecord` was created (as returned by " -":func:`time.time`)." +"Time when the :class:`LogRecord` was created (as returned by :func:`time." +"time`)." msgstr "" #: ../../library/logging.rst:770 ../../library/logging.rst:0 @@ -1037,7 +1104,7 @@ msgstr "" #: ../../library/logging.rst:773 msgid "``%(filename)s``" -msgstr "" +msgstr "``%(filename)s``" #: ../../library/logging.rst:773 msgid "Filename portion of ``pathname``." @@ -1049,7 +1116,7 @@ msgstr "" #: ../../library/logging.rst:775 msgid "``%(funcName)s``" -msgstr "" +msgstr "``%(funcName)s``" #: ../../library/logging.rst:775 msgid "Name of function containing the logging call." @@ -1061,7 +1128,7 @@ msgstr "" #: ../../library/logging.rst:777 msgid "``%(levelname)s``" -msgstr "" +msgstr "``%(levelname)s``" #: ../../library/logging.rst:777 msgid "" @@ -1075,12 +1142,12 @@ msgstr "" #: ../../library/logging.rst:781 msgid "``%(levelno)s``" -msgstr "" +msgstr "``%(levelno)s``" #: ../../library/logging.rst:781 msgid "" -"Numeric logging level for the message (:const:`DEBUG`, :const:`INFO`, " -":const:`WARNING`, :const:`ERROR`, :const:`CRITICAL`)." +"Numeric logging level for the message (:const:`DEBUG`, :const:`INFO`, :const:" +"`WARNING`, :const:`ERROR`, :const:`CRITICAL`)." msgstr "" #: ../../library/logging.rst:786 @@ -1089,7 +1156,7 @@ msgstr "" #: ../../library/logging.rst:786 msgid "``%(lineno)d``" -msgstr "" +msgstr "``%(lineno)d``" #: ../../library/logging.rst:786 msgid "Source line number where the logging call was issued (if available)." @@ -1101,12 +1168,12 @@ msgstr "" #: ../../library/logging.rst:789 msgid "``%(message)s``" -msgstr "" +msgstr "``%(message)s``" #: ../../library/logging.rst:789 msgid "" -"The logged message, computed as ``msg % args``. This is set when " -":meth:`Formatter.format` is invoked." +"The logged message, computed as ``msg % args``. This is set when :meth:" +"`Formatter.format` is invoked." msgstr "" #: ../../library/logging.rst:793 @@ -1115,7 +1182,7 @@ msgstr "módulo " #: ../../library/logging.rst:793 msgid "``%(module)s``" -msgstr "" +msgstr "``%(module)s``" #: ../../library/logging.rst:793 msgid "Module (name portion of ``filename``)." @@ -1127,7 +1194,7 @@ msgstr "" #: ../../library/logging.rst:795 msgid "``%(msecs)d``" -msgstr "" +msgstr "``%(msecs)d``" #: ../../library/logging.rst:795 msgid "" @@ -1151,7 +1218,7 @@ msgstr "" #: ../../library/logging.rst:803 msgid "``%(name)s``" -msgstr "" +msgstr "``%(name)s``" #: ../../library/logging.rst:803 msgid "Name of the logger used to log the call." @@ -1163,7 +1230,7 @@ msgstr "" #: ../../library/logging.rst:805 msgid "``%(pathname)s``" -msgstr "" +msgstr "``%(pathname)s``" #: ../../library/logging.rst:805 msgid "" @@ -1177,7 +1244,7 @@ msgstr "" #: ../../library/logging.rst:808 msgid "``%(process)d``" -msgstr "" +msgstr "``%(process)d``" #: ../../library/logging.rst:808 msgid "Process ID (if available)." @@ -1189,7 +1256,7 @@ msgstr "" #: ../../library/logging.rst:810 msgid "``%(processName)s``" -msgstr "" +msgstr "``%(processName)s``" #: ../../library/logging.rst:810 msgid "Process name (if available)." @@ -1201,7 +1268,7 @@ msgstr "" #: ../../library/logging.rst:812 msgid "``%(relativeCreated)d``" -msgstr "" +msgstr "``%(relativeCreated)d``" #: ../../library/logging.rst:812 msgid "" @@ -1226,7 +1293,7 @@ msgstr "" #: ../../library/logging.rst:822 msgid "``%(thread)d``" -msgstr "" +msgstr "``%(thread)d``" #: ../../library/logging.rst:822 msgid "Thread ID (if available)." @@ -1238,7 +1305,7 @@ msgstr "" #: ../../library/logging.rst:824 msgid "``%(threadName)s``" -msgstr "" +msgstr "``%(threadName)s``" #: ../../library/logging.rst:824 msgid "Thread name (if available)." @@ -1255,21 +1322,21 @@ msgstr "" #: ../../library/logging.rst:836 msgid "" ":class:`LoggerAdapter` instances are used to conveniently pass contextual " -"information into logging calls. For a usage example, see the section on " -":ref:`adding contextual information to your logging output `." +"information into logging calls. For a usage example, see the section on :ref:" +"`adding contextual information to your logging output `." msgstr "" #: ../../library/logging.rst:842 msgid "" -"Returns an instance of :class:`LoggerAdapter` initialized with an underlying" -" :class:`Logger` instance and a dict-like object." +"Returns an instance of :class:`LoggerAdapter` initialized with an " +"underlying :class:`Logger` instance and a dict-like object." msgstr "" #: ../../library/logging.rst:847 msgid "" "Modifies the message and/or keyword arguments passed to a logging call in " -"order to insert contextual information. This implementation takes the object" -" passed as *extra* to the constructor and adds it to *kwargs* using key " +"order to insert contextual information. This implementation takes the object " +"passed as *extra* to the constructor and adds it to *kwargs* using key " "'extra'. The return value is a (*msg*, *kwargs*) tuple which has the " "(possibly modified) versions of the arguments passed in." msgstr "" @@ -1277,20 +1344,20 @@ msgstr "" #: ../../library/logging.rst:853 msgid "" "In addition to the above, :class:`LoggerAdapter` supports the following " -"methods of :class:`Logger`: :meth:`~Logger.debug`, :meth:`~Logger.info`, " -":meth:`~Logger.warning`, :meth:`~Logger.error`, :meth:`~Logger.exception`, " -":meth:`~Logger.critical`, :meth:`~Logger.log`, :meth:`~Logger.isEnabledFor`," -" :meth:`~Logger.getEffectiveLevel`, :meth:`~Logger.setLevel` and " -":meth:`~Logger.hasHandlers`. These methods have the same signatures as their" -" counterparts in :class:`Logger`, so you can use the two types of instances " +"methods of :class:`Logger`: :meth:`~Logger.debug`, :meth:`~Logger.info`, :" +"meth:`~Logger.warning`, :meth:`~Logger.error`, :meth:`~Logger.exception`, :" +"meth:`~Logger.critical`, :meth:`~Logger.log`, :meth:`~Logger.isEnabledFor`, :" +"meth:`~Logger.getEffectiveLevel`, :meth:`~Logger.setLevel` and :meth:" +"`~Logger.hasHandlers`. These methods have the same signatures as their " +"counterparts in :class:`Logger`, so you can use the two types of instances " "interchangeably." msgstr "" #: ../../library/logging.rst:862 msgid "" -"The :meth:`~Logger.isEnabledFor`, :meth:`~Logger.getEffectiveLevel`, " -":meth:`~Logger.setLevel` and :meth:`~Logger.hasHandlers` methods were added " -"to :class:`LoggerAdapter`. These methods delegate to the underlying logger." +"The :meth:`~Logger.isEnabledFor`, :meth:`~Logger.getEffectiveLevel`, :meth:" +"`~Logger.setLevel` and :meth:`~Logger.hasHandlers` methods were added to :" +"class:`LoggerAdapter`. These methods delegate to the underlying logger." msgstr "" #: ../../library/logging.rst:869 @@ -1302,14 +1369,14 @@ msgid "" "The logging module is intended to be thread-safe without any special work " "needing to be done by its clients. It achieves this though using threading " "locks; there is one lock to serialize access to the module's shared data, " -"and each handler also creates a lock to serialize access to its underlying " -"I/O." +"and each handler also creates a lock to serialize access to its underlying I/" +"O." msgstr "" #: ../../library/logging.rst:876 msgid "" -"If you are implementing asynchronous signal handlers using the :mod:`signal`" -" module, you may not be able to use logging from within such handlers. This " +"If you are implementing asynchronous signal handlers using the :mod:`signal` " +"module, you may not be able to use logging from within such handlers. This " "is because lock implementations in the :mod:`threading` module are not " "always re-entrant, and so cannot be invoked from such signal handlers." msgstr "" @@ -1328,9 +1395,9 @@ msgstr "" msgid "" "Return a logger with the specified name or, if name is ``None``, return a " "logger which is the root logger of the hierarchy. If specified, the name is " -"typically a dot-separated hierarchical name like *'a'*, *'a.b'* or " -"*'a.b.c.d'*. Choice of these names is entirely up to the developer who is " -"using logging." +"typically a dot-separated hierarchical name like *'a'*, *'a.b'* or *'a.b.c." +"d'*. Choice of these names is entirely up to the developer who is using " +"logging." msgstr "" #: ../../library/logging.rst:896 @@ -1356,8 +1423,8 @@ msgstr "" #: ../../library/logging.rst:916 msgid "" "This function has been provided, along with :func:`setLogRecordFactory`, to " -"allow developers more control over how the :class:`LogRecord` representing a" -" logging event is constructed." +"allow developers more control over how the :class:`LogRecord` representing a " +"logging event is constructed." msgstr "" #: ../../library/logging.rst:921 @@ -1369,10 +1436,10 @@ msgstr "" #: ../../library/logging.rst:926 msgid "" "Logs a message with level :const:`DEBUG` on the root logger. The *msg* is " -"the message format string, and the *args* are the arguments which are merged" -" into *msg* using the string formatting operator. (Note that this means that" -" you can use keywords in the format string, together with a single " -"dictionary argument.)" +"the message format string, and the *args* are the arguments which are merged " +"into *msg* using the string formatting operator. (Note that this means that " +"you can use keywords in the format string, together with a single dictionary " +"argument.)" msgstr "" #: ../../library/logging.rst:931 @@ -1406,8 +1473,8 @@ msgstr "" #: ../../library/logging.rst:1003 msgid "" -"Logs a message with level :const:`WARNING` on the root logger. The arguments" -" are interpreted as for :func:`debug`." +"Logs a message with level :const:`WARNING` on the root logger. The arguments " +"are interpreted as for :func:`debug`." msgstr "" #: ../../library/logging.rst:1006 @@ -1432,8 +1499,8 @@ msgstr "" #: ../../library/logging.rst:1025 msgid "" "Logs a message with level :const:`ERROR` on the root logger. The arguments " -"are interpreted as for :func:`debug`. Exception info is added to the logging" -" message. This function should only be called from an exception handler." +"are interpreted as for :func:`debug`. Exception info is added to the logging " +"message. This function should only be called from an exception handler." msgstr "" #: ../../library/logging.rst:1031 @@ -1449,10 +1516,10 @@ msgid "" "available. Because of this, they should *not* be used in threads, in " "versions of Python earlier than 2.7.1 and 3.2, unless at least one handler " "has been added to the root logger *before* the threads are started. In " -"earlier versions of Python, due to a thread safety shortcoming in " -":func:`basicConfig`, this can (under rare circumstances) lead to handlers " -"being added multiple times to the root logger, which can in turn lead to " -"multiple messages for the same event." +"earlier versions of Python, due to a thread safety shortcoming in :func:" +"`basicConfig`, this can (under rare circumstances) lead to handlers being " +"added multiple times to the root logger, which can in turn lead to multiple " +"messages for the same event." msgstr "" #: ../../library/logging.rst:1046 @@ -1462,11 +1529,11 @@ msgid "" "logging output down across the whole application, this function can be " "useful. Its effect is to disable all logging calls of severity *level* and " "below, so that if you call it with a value of INFO, then all INFO and DEBUG " -"events would be discarded, whereas those of severity WARNING and above would" -" be processed according to the logger's effective level. If " -"``logging.disable(logging.NOTSET)`` is called, it effectively removes this " -"overriding level, so that logging output again depends on the effective " -"levels of individual loggers." +"events would be discarded, whereas those of severity WARNING and above would " +"be processed according to the logger's effective level. If ``logging." +"disable(logging.NOTSET)`` is called, it effectively removes this overriding " +"level, so that logging output again depends on the effective levels of " +"individual loggers." msgstr "" #: ../../library/logging.rst:1057 @@ -1486,37 +1553,37 @@ msgstr "" #: ../../library/logging.rst:1068 msgid "" "Associates level *level* with text *levelName* in an internal dictionary, " -"which is used to map numeric levels to a textual representation, for example" -" when a :class:`Formatter` formats a message. This function can also be used" -" to define your own levels. The only constraints are that all levels used " +"which is used to map numeric levels to a textual representation, for example " +"when a :class:`Formatter` formats a message. This function can also be used " +"to define your own levels. The only constraints are that all levels used " "must be registered using this function, levels should be positive integers " "and they should increase in increasing order of severity." msgstr "" #: ../../library/logging.rst:1075 msgid "" -"If you are thinking of defining your own levels, please see the section on " -":ref:`custom-levels`." +"If you are thinking of defining your own levels, please see the section on :" +"ref:`custom-levels`." msgstr "" #: ../../library/logging.rst:1080 msgid "" -"Returns the textual representation of logging level *level*. If the level is" -" one of the predefined levels :const:`CRITICAL`, :const:`ERROR`, " -":const:`WARNING`, :const:`INFO` or :const:`DEBUG` then you get the " -"corresponding string. If you have associated levels with names using " -":func:`addLevelName` then the name you have associated with *level* is " -"returned. If a numeric value corresponding to one of the defined levels is " -"passed in, the corresponding string representation is returned. Otherwise, " -"the string 'Level %s' % level is returned." +"Returns the textual representation of logging level *level*. If the level is " +"one of the predefined levels :const:`CRITICAL`, :const:`ERROR`, :const:" +"`WARNING`, :const:`INFO` or :const:`DEBUG` then you get the corresponding " +"string. If you have associated levels with names using :func:`addLevelName` " +"then the name you have associated with *level* is returned. If a numeric " +"value corresponding to one of the defined levels is passed in, the " +"corresponding string representation is returned. Otherwise, the string " +"'Level %s' % level is returned." msgstr "" #: ../../library/logging.rst:1088 msgid "" "Levels are internally integers (as they need to be compared in the logging " "logic). This function is used to convert between an integer level and the " -"level name displayed in the formatted log output by means of the " -"``%(levelname)s`` format specifier (see :ref:`logrecord-attributes`)." +"level name displayed in the formatted log output by means of the ``" +"%(levelname)s`` format specifier (see :ref:`logrecord-attributes`)." msgstr "" #: ../../library/logging.rst:1093 @@ -1530,18 +1597,18 @@ msgstr "" #: ../../library/logging.rst:1101 msgid "" "Creates and returns a new :class:`LogRecord` instance whose attributes are " -"defined by *attrdict*. This function is useful for taking a pickled " -":class:`LogRecord` attribute dictionary, sent over a socket, and " -"reconstituting it as a :class:`LogRecord` instance at the receiving end." +"defined by *attrdict*. This function is useful for taking a pickled :class:" +"`LogRecord` attribute dictionary, sent over a socket, and reconstituting it " +"as a :class:`LogRecord` instance at the receiving end." msgstr "" #: ../../library/logging.rst:1109 msgid "" -"Does basic configuration for the logging system by creating a " -":class:`StreamHandler` with a default :class:`Formatter` and adding it to " -"the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`," -" :func:`error` and :func:`critical` will call :func:`basicConfig` " -"automatically if no handlers are defined for the root logger." +"Does basic configuration for the logging system by creating a :class:" +"`StreamHandler` with a default :class:`Formatter` and adding it to the root " +"logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:" +"`error` and :func:`critical` will call :func:`basicConfig` automatically if " +"no handlers are defined for the root logger." msgstr "" #: ../../library/logging.rst:1115 @@ -1552,8 +1619,8 @@ msgstr "" #: ../../library/logging.rst:1118 msgid "" -"This function should be called from the main thread before other threads are" -" started. In versions of Python prior to 2.7.1 and 3.2, if this function is " +"This function should be called from the main thread before other threads are " +"started. In versions of Python prior to 2.7.1 and 3.2, if this function is " "called from multiple threads, it is possible (in rare circumstances) that a " "handler will be added to the root logger more than once, leading to " "unexpected results such as messages being duplicated in the log." @@ -1607,9 +1674,9 @@ msgstr "" #: ../../library/logging.rst:1146 msgid "" "If *format* is specified, use this style for the format string. One of " -"``'%'``, ``'{'`` or ``'$'`` for :ref:`printf-style `," -" :meth:`str.format` or :class:`string.Template` respectively. Defaults to " -"``'%'``." +"``'%'``, ``'{'`` or ``'$'`` for :ref:`printf-style `, :meth:`str.format` or :class:`string.Template` respectively. " +"Defaults to ``'%'``." msgstr "" #: ../../library/logging.rst:1154 @@ -1666,12 +1733,12 @@ msgstr "" msgid "" "Tells the logging system to use the class *klass* when instantiating a " "logger. The class should define :meth:`__init__` such that only a name " -"argument is required, and the :meth:`__init__` should call " -":meth:`Logger.__init__`. This function is typically called before any " -"loggers are instantiated by applications which need to use custom logger " -"behavior. After this call, as at any other time, do not instantiate loggers " -"directly using the subclass: continue to use the :func:`logging.getLogger` " -"API to get your loggers." +"argument is required, and the :meth:`__init__` should call :meth:`Logger." +"__init__`. This function is typically called before any loggers are " +"instantiated by applications which need to use custom logger behavior. After " +"this call, as at any other time, do not instantiate loggers directly using " +"the subclass: continue to use the :func:`logging.getLogger` API to get your " +"loggers." msgstr "" #: ../../library/logging.rst:1201 @@ -1685,8 +1752,8 @@ msgstr "" #: ../../library/logging.rst:1205 msgid "" "This function has been provided, along with :func:`getLogRecordFactory`, to " -"allow developers more control over how the :class:`LogRecord` representing a" -" logging event is constructed." +"allow developers more control over how the :class:`LogRecord` representing a " +"logging event is constructed." msgstr "" #: ../../library/logging.rst:1210 @@ -1741,7 +1808,7 @@ msgstr "" #: ../../library/logging.rst:0 msgid "func" -msgstr "" +msgstr "func" #: ../../library/logging.rst:1221 msgid "The name of the function or method which invoked the logging call." @@ -1771,13 +1838,13 @@ msgstr "" #: ../../library/logging.rst:1233 msgid "" -"A \"handler of last resort\" is available through this attribute. This is a " -":class:`StreamHandler` writing to ``sys.stderr`` with a level of " -"``WARNING``, and is used to handle logging events in the absence of any " -"logging configuration. The end result is to just print the message to " -"``sys.stderr``. This replaces the earlier error message saying that \"no " -"handlers could be found for logger XYZ\". If you need the earlier behaviour " -"for some reason, ``lastResort`` can be set to ``None``." +"A \"handler of last resort\" is available through this attribute. This is a :" +"class:`StreamHandler` writing to ``sys.stderr`` with a level of ``WARNING``, " +"and is used to handle logging events in the absence of any logging " +"configuration. The end result is to just print the message to ``sys." +"stderr``. This replaces the earlier error message saying that \"no handlers " +"could be found for logger XYZ\". If you need the earlier behaviour for some " +"reason, ``lastResort`` can be set to ``None``." msgstr "" #: ../../library/logging.rst:1244 @@ -1786,8 +1853,8 @@ msgstr "" #: ../../library/logging.rst:1246 msgid "" -"The :func:`captureWarnings` function can be used to integrate :mod:`logging`" -" with the :mod:`warnings` module." +"The :func:`captureWarnings` function can be used to integrate :mod:`logging` " +"with the :mod:`warnings` module." msgstr "" #: ../../library/logging.rst:1251 @@ -1797,18 +1864,18 @@ msgstr "" #: ../../library/logging.rst:1254 msgid "" -"If *capture* is ``True``, warnings issued by the :mod:`warnings` module will" -" be redirected to the logging system. Specifically, a warning will be " +"If *capture* is ``True``, warnings issued by the :mod:`warnings` module will " +"be redirected to the logging system. Specifically, a warning will be " "formatted using :func:`warnings.formatwarning` and the resulting string " -"logged to a logger named ``'py.warnings'`` with a severity of " -":const:`WARNING`." +"logged to a logger named ``'py.warnings'`` with a severity of :const:" +"`WARNING`." msgstr "" #: ../../library/logging.rst:1259 msgid "" -"If *capture* is ``False``, the redirection of warnings to the logging system" -" will stop, and warnings will be redirected to their original destinations " -"(i.e. those in effect before ``captureWarnings(True)`` was called)." +"If *capture* is ``False``, the redirection of warnings to the logging system " +"will stop, and warnings will be redirected to their original destinations (i." +"e. those in effect before ``captureWarnings(True)`` was called)." msgstr "" #: ../../library/logging.rst:1267 @@ -1817,11 +1884,11 @@ msgstr "Módulo :mod:`logging.config`" #: ../../library/logging.rst:1267 msgid "Configuration API for the logging module." -msgstr "" +msgstr "API de configuração para o módulo logging." #: ../../library/logging.rst:1270 msgid "Module :mod:`logging.handlers`" -msgstr "" +msgstr "Módulo :mod:`logging.handlers`" #: ../../library/logging.rst:1270 msgid "Useful handlers included with the logging module." @@ -1839,8 +1906,8 @@ msgstr "" #: ../../library/logging.rst:1279 msgid "" -"`Original Python logging package `_" +"`Original Python logging package `_" msgstr "" #: ../../library/logging.rst:1277 diff --git a/library/lzma.po b/library/lzma.po index d372aca7d..19caf8781 100644 --- a/library/lzma.po +++ b/library/lzma.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,17 +37,17 @@ msgstr "**Código Fonte:** :source:`Lib/lzma.py`" msgid "" "This module provides classes and convenience functions for compressing and " "decompressing data using the LZMA compression algorithm. Also included is a " -"file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used" -" by the :program:`xz` utility, as well as raw compressed streams." +"file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used " +"by the :program:`xz` utility, as well as raw compressed streams." msgstr "" #: ../../library/lzma.rst:21 msgid "" -"The interface provided by this module is very similar to that of the " -":mod:`bz2` module. However, note that :class:`LZMAFile` is *not* thread-" -"safe, unlike :class:`bz2.BZ2File`, so if you need to use a single " -":class:`LZMAFile` instance from multiple threads, it is necessary to protect" -" it with a lock." +"The interface provided by this module is very similar to that of the :mod:" +"`bz2` module. However, note that :class:`LZMAFile` is *not* thread-safe, " +"unlike :class:`bz2.BZ2File`, so if you need to use a single :class:" +"`LZMAFile` instance from multiple threads, it is necessary to protect it " +"with a lock." msgstr "" #: ../../library/lzma.rst:29 @@ -59,24 +62,24 @@ msgstr "" #: ../../library/lzma.rst:38 msgid "" -"Open an LZMA-compressed file in binary or text mode, returning a :term:`file" -" object`." +"Open an LZMA-compressed file in binary or text mode, returning a :term:`file " +"object`." msgstr "" #: ../../library/lzma.rst:41 msgid "" -"The *filename* argument can be either an actual file name (given as a " -":class:`str`, :class:`bytes` or :term:`path-like ` " -"object), in which case the named file is opened, or it can be an existing " -"file object to read from or write to." +"The *filename* argument can be either an actual file name (given as a :class:" +"`str`, :class:`bytes` or :term:`path-like ` object), in " +"which case the named file is opened, or it can be an existing file object to " +"read from or write to." msgstr "" #: ../../library/lzma.rst:46 msgid "" -"The *mode* argument can be any of ``\"r\"``, ``\"rb\"``, ``\"w\"``, " -"``\"wb\"``, ``\"x\"``, ``\"xb\"``, ``\"a\"`` or ``\"ab\"`` for binary mode, " -"or ``\"rt\"``, ``\"wt\"``, ``\"xt\"``, or ``\"at\"`` for text mode. The " -"default is ``\"rb\"``." +"The *mode* argument can be any of ``\"r\"``, ``\"rb\"``, ``\"w\"``, ``\"wb" +"\"``, ``\"x\"``, ``\"xb\"``, ``\"a\"`` or ``\"ab\"`` for binary mode, or ``" +"\"rt\"``, ``\"wt\"``, ``\"xt\"``, or ``\"at\"`` for text mode. The default " +"is ``\"rb\"``." msgstr "" #: ../../library/lzma.rst:50 ../../library/lzma.rst:95 @@ -101,8 +104,8 @@ msgstr "" #: ../../library/lzma.rst:61 msgid "" -"For text mode, a :class:`LZMAFile` object is created, and wrapped in an " -":class:`io.TextIOWrapper` instance with the specified encoding, error " +"For text mode, a :class:`LZMAFile` object is created, and wrapped in an :" +"class:`io.TextIOWrapper` instance with the specified encoding, error " "handling behavior, and line ending(s)." msgstr "" @@ -112,7 +115,7 @@ msgstr "" #: ../../library/lzma.rst:68 ../../library/lzma.rst:126 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/lzma.rst:74 msgid "Open an LZMA-compressed file in binary mode." @@ -122,25 +125,24 @@ msgstr "" msgid "" "An :class:`LZMAFile` can wrap an already-open :term:`file object`, or " "operate directly on a named file. The *filename* argument specifies either " -"the file object to wrap, or the name of the file to open (as a :class:`str`," -" :class:`bytes` or :term:`path-like ` object). When " +"the file object to wrap, or the name of the file to open (as a :class:" +"`str`, :class:`bytes` or :term:`path-like ` object). When " "wrapping an existing file object, the wrapped file will not be closed when " "the :class:`LZMAFile` is closed." msgstr "" #: ../../library/lzma.rst:83 msgid "" -"The *mode* argument can be either ``\"r\"`` for reading (default), ``\"w\"``" -" for overwriting, ``\"x\"`` for exclusive creation, or ``\"a\"`` for " -"appending. These can equivalently be given as ``\"rb\"``, ``\"wb\"``, " -"``\"xb\"`` and ``\"ab\"`` respectively." +"The *mode* argument can be either ``\"r\"`` for reading (default), ``\"w\"`` " +"for overwriting, ``\"x\"`` for exclusive creation, or ``\"a\"`` for " +"appending. These can equivalently be given as ``\"rb\"``, ``\"wb\"``, ``\"xb" +"\"`` and ``\"ab\"`` respectively." msgstr "" #: ../../library/lzma.rst:88 msgid "" "If *filename* is a file object (rather than an actual file name), a mode of " -"``\"w\"`` does not truncate the file, and is instead equivalent to " -"``\"a\"``." +"``\"w\"`` does not truncate the file, and is instead equivalent to ``\"a\"``." msgstr "" #: ../../library/lzma.rst:91 @@ -152,9 +154,9 @@ msgstr "" #: ../../library/lzma.rst:102 msgid "" -":class:`LZMAFile` supports all the members specified by " -":class:`io.BufferedIOBase`, except for :meth:`detach` and :meth:`truncate`. " -"Iteration and the :keyword:`with` statement are supported." +":class:`LZMAFile` supports all the members specified by :class:`io." +"BufferedIOBase`, except for :meth:`detach` and :meth:`truncate`. Iteration " +"and the :keyword:`with` statement are supported." msgstr "" #: ../../library/lzma.rst:106 @@ -170,9 +172,9 @@ msgstr "" #: ../../library/lzma.rst:114 msgid "" -"While calling :meth:`peek` does not change the file position of the " -":class:`LZMAFile`, it may change the position of the underlying file object " -"(e.g. if the :class:`LZMAFile` was constructed by passing a file object for " +"While calling :meth:`peek` does not change the file position of the :class:" +"`LZMAFile`, it may change the position of the underlying file object (e.g. " +"if the :class:`LZMAFile` was constructed by passing a file object for " "*filename*)." msgstr "" @@ -192,14 +194,13 @@ msgstr "" #: ../../library/lzma.rst:135 msgid "" -"Create a compressor object, which can be used to compress data " -"incrementally." +"Create a compressor object, which can be used to compress data incrementally." msgstr "" #: ../../library/lzma.rst:137 msgid "" -"For a more convenient way of compressing a single chunk of data, see " -":func:`compress`." +"For a more convenient way of compressing a single chunk of data, see :func:" +"`compress`." msgstr "" #: ../../library/lzma.rst:140 @@ -227,8 +228,7 @@ msgid "" msgstr "" #: ../../library/lzma.rst:154 -msgid "" -":const:`FORMAT_RAW`: A raw data stream, not using any container format." +msgid ":const:`FORMAT_RAW`: A raw data stream, not using any container format." msgstr "" #: ../../library/lzma.rst:151 @@ -241,8 +241,8 @@ msgstr "" #: ../../library/lzma.rst:156 msgid "" -"The *check* argument specifies the type of integrity check to include in the" -" compressed data. This check is used when decompressing, to ensure that the " +"The *check* argument specifies the type of integrity check to include in the " +"compressed data. This check is used when decompressing, to ensure that the " "data has not been corrupted. Possible values are:" msgstr "" @@ -281,41 +281,40 @@ msgstr "" #: ../../library/lzma.rst:177 msgid "" "The *preset* argument (if provided) should be an integer between ``0`` and " -"``9`` (inclusive), optionally OR-ed with the constant " -":const:`PRESET_EXTREME`. If neither *preset* nor *filters* are given, the " -"default behavior is to use :const:`PRESET_DEFAULT` (preset level ``6``). " -"Higher presets produce smaller output, but make the compression process " -"slower." +"``9`` (inclusive), optionally OR-ed with the constant :const:" +"`PRESET_EXTREME`. If neither *preset* nor *filters* are given, the default " +"behavior is to use :const:`PRESET_DEFAULT` (preset level ``6``). Higher " +"presets produce smaller output, but make the compression process slower." msgstr "" #: ../../library/lzma.rst:186 msgid "" "In addition to being more CPU-intensive, compression with higher presets " "also requires much more memory (and produces output that needs more memory " -"to decompress). With preset ``9`` for example, the overhead for an " -":class:`LZMACompressor` object can be as high as 800 MiB. For this reason, " -"it is generally best to stick with the default preset." +"to decompress). With preset ``9`` for example, the overhead for an :class:" +"`LZMACompressor` object can be as high as 800 MiB. For this reason, it is " +"generally best to stick with the default preset." msgstr "" #: ../../library/lzma.rst:192 msgid "" -"The *filters* argument (if provided) should be a filter chain specifier. See" -" :ref:`filter-chain-specs` for details." +"The *filters* argument (if provided) should be a filter chain specifier. " +"See :ref:`filter-chain-specs` for details." msgstr "" #: ../../library/lzma.rst:197 msgid "" -"Compress *data* (a :class:`bytes` object), returning a :class:`bytes` object" -" containing compressed data for at least part of the input. Some of *data* " -"may be buffered internally, for use in later calls to :meth:`compress` and " -":meth:`flush`. The returned data should be concatenated with the output of " +"Compress *data* (a :class:`bytes` object), returning a :class:`bytes` object " +"containing compressed data for at least part of the input. Some of *data* " +"may be buffered internally, for use in later calls to :meth:`compress` and :" +"meth:`flush`. The returned data should be concatenated with the output of " "any previous calls to :meth:`compress`." msgstr "" #: ../../library/lzma.rst:205 msgid "" -"Finish the compression process, returning a :class:`bytes` object containing" -" any data stored in the compressor's internal buffers." +"Finish the compression process, returning a :class:`bytes` object containing " +"any data stored in the compressor's internal buffers." msgstr "" #: ../../library/lzma.rst:208 @@ -338,24 +337,24 @@ msgstr "" msgid "" "The *format* argument specifies the container format that should be used. " "The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and " -"``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, " -":const:`FORMAT_ALONE`, and :const:`FORMAT_RAW`." +"``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :const:" +"`FORMAT_ALONE`, and :const:`FORMAT_RAW`." msgstr "" #: ../../library/lzma.rst:224 msgid "" -"The *memlimit* argument specifies a limit (in bytes) on the amount of memory" -" that the decompressor can use. When this argument is used, decompression " -"will fail with an :class:`LZMAError` if it is not possible to decompress the" -" input within the given memory limit." +"The *memlimit* argument specifies a limit (in bytes) on the amount of memory " +"that the decompressor can use. When this argument is used, decompression " +"will fail with an :class:`LZMAError` if it is not possible to decompress the " +"input within the given memory limit." msgstr "" #: ../../library/lzma.rst:229 msgid "" "The *filters* argument specifies the filter chain that was used to create " -"the stream being decompressed. This argument is required if *format* is " -":const:`FORMAT_RAW`, but should not be used for other formats. See :ref" -":`filter-chain-specs` for more information about filter chains." +"the stream being decompressed. This argument is required if *format* is :" +"const:`FORMAT_RAW`, but should not be used for other formats. See :ref:" +"`filter-chain-specs` for more information about filter chains." msgstr "" #: ../../library/lzma.rst:235 @@ -368,9 +367,9 @@ msgstr "" #: ../../library/lzma.rst:242 msgid "" -"Decompress *data* (a :term:`bytes-like object`), returning uncompressed data" -" as bytes. Some of *data* may be buffered internally, for use in later calls" -" to :meth:`decompress`. The returned data should be concatenated with the " +"Decompress *data* (a :term:`bytes-like object`), returning uncompressed data " +"as bytes. Some of *data* may be buffered internally, for use in later calls " +"to :meth:`decompress`. The returned data should be concatenated with the " "output of any previous calls to :meth:`decompress`." msgstr "" @@ -386,15 +385,15 @@ msgstr "" #: ../../library/lzma.rst:255 msgid "" "If all of the input data was decompressed and returned (either because this " -"was less than *max_length* bytes, or because *max_length* was negative), the" -" :attr:`~.needs_input` attribute will be set to ``True``." +"was less than *max_length* bytes, or because *max_length* was negative), " +"the :attr:`~.needs_input` attribute will be set to ``True``." msgstr "" #: ../../library/lzma.rst:260 msgid "" "Attempting to decompress data after the end of stream is reached raises an " -"`EOFError`. Any data found after the end of the stream is ignored and saved" -" in the :attr:`~.unused_data` attribute." +"`EOFError`. Any data found after the end of the stream is ignored and saved " +"in the :attr:`~.unused_data` attribute." msgstr "" #: ../../library/lzma.rst:264 @@ -403,9 +402,9 @@ msgstr "" #: ../../library/lzma.rst:269 msgid "" -"The ID of the integrity check used by the input stream. This may be " -":const:`CHECK_UNKNOWN` until enough of the input has been decoded to " -"determine what integrity check it uses." +"The ID of the integrity check used by the input stream. This may be :const:" +"`CHECK_UNKNOWN` until enough of the input has been decoded to determine what " +"integrity check it uses." msgstr "" #: ../../library/lzma.rst:275 @@ -440,15 +439,14 @@ msgstr "" #: ../../library/lzma.rst:301 msgid "" -"Decompress *data* (a :class:`bytes` object), returning the uncompressed data" -" as a :class:`bytes` object." +"Decompress *data* (a :class:`bytes` object), returning the uncompressed data " +"as a :class:`bytes` object." msgstr "" #: ../../library/lzma.rst:304 msgid "" "If *data* is the concatenation of multiple distinct compressed streams, " -"decompress all of these streams, and return the concatenation of the " -"results." +"decompress all of these streams, and return the concatenation of the results." msgstr "" #: ../../library/lzma.rst:307 @@ -462,15 +460,15 @@ msgid "Miscellaneous" msgstr "Diversos" #: ../../library/lzma.rst:316 -msgid "Returns true if the given integrity check is supported on this system." +msgid "" +"Return ``True`` if the given integrity check is supported on this system." msgstr "" #: ../../library/lzma.rst:318 msgid "" -":const:`CHECK_NONE` and :const:`CHECK_CRC32` are always supported. " -":const:`CHECK_CRC64` and :const:`CHECK_SHA256` may be unavailable if you are" -" using a version of :program:`liblzma` that was compiled with a limited " -"feature set." +":const:`CHECK_NONE` and :const:`CHECK_CRC32` are always supported. :const:" +"`CHECK_CRC64` and :const:`CHECK_SHA256` may be unavailable if you are using " +"a version of :program:`liblzma` that was compiled with a limited feature set." msgstr "" #: ../../library/lzma.rst:327 @@ -495,11 +493,11 @@ msgstr ":const:`FILTER_LZMA1` (para ser usado com :const:`FORMAT_ALONE`)" #: ../../library/lzma.rst:336 msgid "" -":const:`FILTER_LZMA2` (for use with :const:`FORMAT_XZ` and " -":const:`FORMAT_RAW`)" +":const:`FILTER_LZMA2` (for use with :const:`FORMAT_XZ` and :const:" +"`FORMAT_RAW`)" msgstr "" -":const:`FILTER_LZMA2` (para ser utilizado com :const:`FORMAT_XZ` and " -":const:`FORMAT_RAW`)" +":const:`FILTER_LZMA2` (para ser utilizado com :const:`FORMAT_XZ` and :const:" +"`FORMAT_RAW`)" #: ../../library/lzma.rst:339 msgid "Delta filter:" @@ -515,33 +513,33 @@ msgstr "" #: ../../library/lzma.rst:342 msgid ":const:`FILTER_X86`" -msgstr "" +msgstr ":const:`FILTER_X86`" #: ../../library/lzma.rst:343 msgid ":const:`FILTER_IA64`" -msgstr "" +msgstr ":const:`FILTER_IA64`" #: ../../library/lzma.rst:344 msgid ":const:`FILTER_ARM`" -msgstr "" +msgstr ":const:`FILTER_ARM`" #: ../../library/lzma.rst:345 msgid ":const:`FILTER_ARMTHUMB`" -msgstr "" +msgstr ":const:`FILTER_ARMTHUMB`" #: ../../library/lzma.rst:346 msgid ":const:`FILTER_POWERPC`" -msgstr "" +msgstr ":const:`FILTER_POWERPC`" #: ../../library/lzma.rst:347 msgid ":const:`FILTER_SPARC`" -msgstr "" +msgstr ":const:`FILTER_SPARC`" #: ../../library/lzma.rst:349 msgid "" -"A filter chain can consist of up to 4 filters, and cannot be empty. The last" -" filter in the chain must be a compression filter, and any other filters " -"must be delta or BCJ filters." +"A filter chain can consist of up to 4 filters, and cannot be empty. The last " +"filter in the chain must be a compression filter, and any other filters must " +"be delta or BCJ filters." msgstr "" #: ../../library/lzma.rst:353 @@ -568,8 +566,8 @@ msgstr "" #: ../../library/lzma.rst:361 msgid "" -"``lp``: Number of literal position bits. The sum ``lc + lp`` must be at most" -" 4." +"``lp``: Number of literal position bits. The sum ``lc + lp`` must be at most " +"4." msgstr "" #: ../../library/lzma.rst:363 @@ -588,8 +586,8 @@ msgstr "" #: ../../library/lzma.rst:367 msgid "" -"``mf``: What match finder to use -- :const:`MF_HC3`, :const:`MF_HC4`, " -":const:`MF_BT2`, :const:`MF_BT3`, or :const:`MF_BT4`." +"``mf``: What match finder to use -- :const:`MF_HC3`, :const:`MF_HC4`, :const:" +"`MF_BT2`, :const:`MF_BT3`, or :const:`MF_BT4`." msgstr "" #: ../../library/lzma.rst:369 diff --git a/library/macpath.po b/library/macpath.po index aff47920c..31da64058 100644 --- a/library/macpath.po +++ b/library/macpath.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,22 +32,22 @@ msgstr "**Código-fonte:** :source:`Lib/macpath.py`" #: ../../library/macpath.rst:13 msgid "" -"This module is the Mac OS 9 (and earlier) implementation of the " -":mod:`os.path` module. It can be used to manipulate old-style Macintosh " -"pathnames on Mac OS X (or any other platform)." +"This module is the Mac OS 9 (and earlier) implementation of the :mod:`os." +"path` module. It can be used to manipulate old-style Macintosh pathnames on " +"Mac OS X (or any other platform)." msgstr "" -"Este módulo é a implementação do Mac OS 9 (e anterior) do módulo " -":mod:`os.path`. Ele pode ser usado para manipular nomes de caminhos antigos " -"do Macintosh no Mac OS X (ou qualquer outra plataforma)." +"Este módulo é a implementação do Mac OS 9 (e anterior) do módulo :mod:`os." +"path`. Ele pode ser usado para manipular nomes de caminhos antigos do " +"Macintosh no Mac OS X (ou qualquer outra plataforma)." #: ../../library/macpath.rst:17 msgid "" -"The following functions are available in this module: :func:`normcase`, " -":func:`normpath`, :func:`isabs`, :func:`join`, :func:`split`, :func:`isdir`," -" :func:`isfile`, :func:`walk`, :func:`exists`. For other functions available" -" in :mod:`os.path` dummy counterparts are available." +"The following functions are available in this module: :func:`normcase`, :" +"func:`normpath`, :func:`isabs`, :func:`join`, :func:`split`, :func:`isdir`, :" +"func:`isfile`, :func:`walk`, :func:`exists`. For other functions available " +"in :mod:`os.path` dummy counterparts are available." msgstr "" -"As seguintes funções estão disponíveis neste módulo: :func:`normcase`, " -":func:`normpath`, :func:`isabs`, :func:`join`, :func:`split`, :func:`isdir`," -" :func:`isfile`, :func:`walk`, :func:`exists`. Para outras funções " -"disponíveis em :mod:`os.path`, contrapartes fictícias estão disponíveis." +"As seguintes funções estão disponíveis neste módulo: :func:`normcase`, :func:" +"`normpath`, :func:`isabs`, :func:`join`, :func:`split`, :func:`isdir`, :func:" +"`isfile`, :func:`walk`, :func:`exists`. Para outras funções disponíveis em :" +"mod:`os.path`, contrapartes fictícias estão disponíveis." diff --git a/library/mailbox.po b/library/mailbox.po index 6256b6ff5..5bacbc9df 100644 --- a/library/mailbox.po +++ b/library/mailbox.po @@ -1,24 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Welington Carlos , 2019 # Leticia Portella , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Rafael Fontenelle , 2019 -# +# Julia Rizza , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-14 11:55+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,11 +39,11 @@ msgstr "**Código Fonte:** :source:`Lib/mailbox.py`" #: ../../library/mailbox.rst:14 msgid "" "This module defines two classes, :class:`Mailbox` and :class:`Message`, for " -"accessing and manipulating on-disk mailboxes and the messages they contain. " -":class:`Mailbox` offers a dictionary-like mapping from keys to messages. " -":class:`Message` extends the :mod:`email.message` module's " -":class:`~email.message.Message` class with format-specific state and " -"behavior. Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF." +"accessing and manipulating on-disk mailboxes and the messages they contain. :" +"class:`Mailbox` offers a dictionary-like mapping from keys to messages. :" +"class:`Message` extends the :mod:`email.message` module's :class:`~email." +"message.Message` class with format-specific state and behavior. Supported " +"mailbox formats are Maildir, mbox, MH, Babyl, and MMDF." msgstr "" #: ../../library/mailbox.rst:24 @@ -62,17 +65,17 @@ msgstr "" #: ../../library/mailbox.rst:37 msgid "" "The :class:`Mailbox` class defines an interface and is not intended to be " -"instantiated. Instead, format-specific subclasses should inherit from " -":class:`Mailbox` and your code should instantiate a particular subclass." +"instantiated. Instead, format-specific subclasses should inherit from :" +"class:`Mailbox` and your code should instantiate a particular subclass." msgstr "" #: ../../library/mailbox.rst:41 msgid "" "The :class:`Mailbox` interface is dictionary-like, with small keys " "corresponding to messages. Keys are issued by the :class:`Mailbox` instance " -"with which they will be used and are only meaningful to that " -":class:`Mailbox` instance. A key continues to identify a message even if the" -" corresponding message is modified, such as by replacing it with another " +"with which they will be used and are only meaningful to that :class:" +"`Mailbox` instance. A key continues to identify a message even if the " +"corresponding message is modified, such as by replacing it with another " "message." msgstr "" @@ -86,24 +89,23 @@ msgstr "" #: ../../library/mailbox.rst:51 msgid "" ":class:`Mailbox` interface semantics differ from dictionary semantics in " -"some noteworthy ways. Each time a message is requested, a new representation" -" (typically a :class:`Message` instance) is generated based upon the current" -" state of the mailbox. Similarly, when a message is added to a " -":class:`Mailbox` instance, the provided message representation's contents " -"are copied. In neither case is a reference to the message representation " -"kept by the :class:`Mailbox` instance." +"some noteworthy ways. Each time a message is requested, a new representation " +"(typically a :class:`Message` instance) is generated based upon the current " +"state of the mailbox. Similarly, when a message is added to a :class:" +"`Mailbox` instance, the provided message representation's contents are " +"copied. In neither case is a reference to the message representation kept by " +"the :class:`Mailbox` instance." msgstr "" #: ../../library/mailbox.rst:59 msgid "" -"The default :class:`Mailbox` iterator iterates over message representations," -" not keys as the default dictionary iterator does. Moreover, modification of" -" a mailbox during iteration is safe and well-defined. Messages added to the " +"The default :class:`Mailbox` iterator iterates over message representations, " +"not keys as the default dictionary iterator does. Moreover, modification of " +"a mailbox during iteration is safe and well-defined. Messages added to the " "mailbox after an iterator is created will not be seen by the iterator. " "Messages removed from the mailbox before the iterator yields them will be " -"silently skipped, though using a key from an iterator may result in a " -":exc:`KeyError` exception if the corresponding message is subsequently " -"removed." +"silently skipped, though using a key from an iterator may result in a :exc:" +"`KeyError` exception if the corresponding message is subsequently removed." msgstr "" #: ../../library/mailbox.rst:70 @@ -113,9 +115,9 @@ msgid "" "tasks is Maildir; try to avoid using single-file formats such as mbox for " "concurrent writing. If you're modifying a mailbox, you *must* lock it by " "calling the :meth:`lock` and :meth:`unlock` methods *before* reading any " -"messages in the file or making any changes by adding or deleting a message." -" Failing to lock the mailbox runs the risk of losing messages or corrupting" -" the entire mailbox." +"messages in the file or making any changes by adding or deleting a message. " +"Failing to lock the mailbox runs the risk of losing messages or corrupting " +"the entire mailbox." msgstr "" #: ../../library/mailbox.rst:79 @@ -124,19 +126,18 @@ msgstr "" #: ../../library/mailbox.rst:84 msgid "" -"Add *message* to the mailbox and return the key that has been assigned to " -"it." +"Add *message* to the mailbox and return the key that has been assigned to it." msgstr "" #: ../../library/mailbox.rst:87 msgid "" -"Parameter *message* may be a :class:`Message` instance, an " -":class:`email.message.Message` instance, a string, a byte string, or a file-" -"like object (which should be open in binary mode). If *message* is an " -"instance of the appropriate format-specific :class:`Message` subclass (e.g.," -" if it's an :class:`mboxMessage` instance and this is an :class:`mbox` " -"instance), its format-specific information is used. Otherwise, reasonable " -"defaults for format-specific information are used." +"Parameter *message* may be a :class:`Message` instance, an :class:`email." +"message.Message` instance, a string, a byte string, or a file-like object " +"(which should be open in binary mode). If *message* is an instance of the " +"appropriate format-specific :class:`Message` subclass (e.g., if it's an :" +"class:`mboxMessage` instance and this is an :class:`mbox` instance), its " +"format-specific information is used. Otherwise, reasonable defaults for " +"format-specific information are used." msgstr "" #: ../../library/mailbox.rst:96 @@ -151,24 +152,24 @@ msgstr "" msgid "" "If no such message exists, a :exc:`KeyError` exception is raised if the " "method was called as :meth:`remove` or :meth:`__delitem__` but no exception " -"is raised if the method was called as :meth:`discard`. The behavior of " -":meth:`discard` may be preferred if the underlying mailbox format supports " +"is raised if the method was called as :meth:`discard`. The behavior of :meth:" +"`discard` may be preferred if the underlying mailbox format supports " "concurrent modification by other processes." msgstr "" #: ../../library/mailbox.rst:115 msgid "" -"Replace the message corresponding to *key* with *message*. Raise a " -":exc:`KeyError` exception if no message already corresponds to *key*." +"Replace the message corresponding to *key* with *message*. Raise a :exc:" +"`KeyError` exception if no message already corresponds to *key*." msgstr "" #: ../../library/mailbox.rst:118 msgid "" -"As with :meth:`add`, parameter *message* may be a :class:`Message` instance," -" an :class:`email.message.Message` instance, a string, a byte string, or a " +"As with :meth:`add`, parameter *message* may be a :class:`Message` instance, " +"an :class:`email.message.Message` instance, a string, a byte string, or a " "file-like object (which should be open in binary mode). If *message* is an " -"instance of the appropriate format-specific :class:`Message` subclass (e.g.," -" if it's an :class:`mboxMessage` instance and this is an :class:`mbox` " +"instance of the appropriate format-specific :class:`Message` subclass (e.g., " +"if it's an :class:`mboxMessage` instance and this is an :class:`mbox` " "instance), its format-specific information is used. Otherwise, the format-" "specific information of the message that currently corresponds to *key* is " "left unchanged." @@ -182,12 +183,12 @@ msgstr "" #: ../../library/mailbox.rst:140 msgid "" -"Return an iterator over representations of all messages if called as " -":meth:`itervalues` or :meth:`__iter__` or return a list of such " -"representations if called as :meth:`values`. The messages are represented as" -" instances of the appropriate format-specific :class:`Message` subclass " -"unless a custom message factory was specified when the :class:`Mailbox` " -"instance was initialized." +"Return an iterator over representations of all messages if called as :meth:" +"`itervalues` or :meth:`__iter__` or return a list of such representations if " +"called as :meth:`values`. The messages are represented as instances of the " +"appropriate format-specific :class:`Message` subclass unless a custom " +"message factory was specified when the :class:`Mailbox` instance was " +"initialized." msgstr "" #: ../../library/mailbox.rst:149 @@ -201,40 +202,40 @@ msgid "" "Return an iterator over (*key*, *message*) pairs, where *key* is a key and " "*message* is a message representation, if called as :meth:`iteritems` or " "return a list of such pairs if called as :meth:`items`. The messages are " -"represented as instances of the appropriate format-specific :class:`Message`" -" subclass unless a custom message factory was specified when the " -":class:`Mailbox` instance was initialized." +"represented as instances of the appropriate format-specific :class:`Message` " +"subclass unless a custom message factory was specified when the :class:" +"`Mailbox` instance was initialized." msgstr "" #: ../../library/mailbox.rst:167 msgid "" "Return a representation of the message corresponding to *key*. If no such " -"message exists, *default* is returned if the method was called as " -":meth:`get` and a :exc:`KeyError` exception is raised if the method was " -"called as :meth:`__getitem__`. The message is represented as an instance of " -"the appropriate format-specific :class:`Message` subclass unless a custom " +"message exists, *default* is returned if the method was called as :meth:" +"`get` and a :exc:`KeyError` exception is raised if the method was called as :" +"meth:`__getitem__`. The message is represented as an instance of the " +"appropriate format-specific :class:`Message` subclass unless a custom " "message factory was specified when the :class:`Mailbox` instance was " "initialized." msgstr "" #: ../../library/mailbox.rst:178 msgid "" -"Return a representation of the message corresponding to *key* as an instance" -" of the appropriate format-specific :class:`Message` subclass, or raise a " -":exc:`KeyError` exception if no such message exists." +"Return a representation of the message corresponding to *key* as an instance " +"of the appropriate format-specific :class:`Message` subclass, or raise a :" +"exc:`KeyError` exception if no such message exists." msgstr "" #: ../../library/mailbox.rst:185 msgid "" -"Return a byte representation of the message corresponding to *key*, or raise" -" a :exc:`KeyError` exception if no such message exists." +"Return a byte representation of the message corresponding to *key*, or raise " +"a :exc:`KeyError` exception if no such message exists." msgstr "" #: ../../library/mailbox.rst:193 msgid "" "Return a string representation of the message corresponding to *key*, or " -"raise a :exc:`KeyError` exception if no such message exists. The message is" -" processed through :class:`email.message.Message` to convert it to a 7bit " +"raise a :exc:`KeyError` exception if no such message exists. The message is " +"processed through :class:`email.message.Message` to convert it to a 7bit " "clean representation." msgstr "" @@ -263,8 +264,7 @@ msgid "" msgstr "" #: ../../library/mailbox.rst:222 -msgid "" -"Return ``True`` if *key* corresponds to a message, ``False`` otherwise." +msgid "Return ``True`` if *key* corresponds to a message, ``False`` otherwise." msgstr "" #: ../../library/mailbox.rst:227 @@ -277,21 +277,21 @@ msgstr "" #: ../../library/mailbox.rst:237 msgid "" -"Return a representation of the message corresponding to *key* and delete the" -" message. If no such message exists, return *default*. The message is " -"represented as an instance of the appropriate format-specific " -":class:`Message` subclass unless a custom message factory was specified when" -" the :class:`Mailbox` instance was initialized." +"Return a representation of the message corresponding to *key* and delete the " +"message. If no such message exists, return *default*. The message is " +"represented as an instance of the appropriate format-specific :class:" +"`Message` subclass unless a custom message factory was specified when the :" +"class:`Mailbox` instance was initialized." msgstr "" #: ../../library/mailbox.rst:246 msgid "" "Return an arbitrary (*key*, *message*) pair, where *key* is a key and " -"*message* is a message representation, and delete the corresponding message." -" If the mailbox is empty, raise a :exc:`KeyError` exception. The message is " -"represented as an instance of the appropriate format-specific " -":class:`Message` subclass unless a custom message factory was specified when" -" the :class:`Mailbox` instance was initialized." +"*message* is a message representation, and delete the corresponding message. " +"If the mailbox is empty, raise a :exc:`KeyError` exception. The message is " +"represented as an instance of the appropriate format-specific :class:" +"`Message` subclass unless a custom message factory was specified when the :" +"class:`Mailbox` instance was initialized." msgstr "" #: ../../library/mailbox.rst:256 @@ -301,8 +301,8 @@ msgid "" "and *message*, the message corresponding to *key* is set to *message* as if " "by using :meth:`__setitem__`. As with :meth:`__setitem__`, each *key* must " "already correspond to a message in the mailbox or else a :exc:`KeyError` " -"exception will be raised, so in general it is incorrect for *arg* to be a " -":class:`Mailbox` instance." +"exception will be raised, so in general it is incorrect for *arg* to be a :" +"class:`Mailbox` instance." msgstr "" #: ../../library/mailbox.rst:266 @@ -319,8 +319,8 @@ msgstr "" #: ../../library/mailbox.rst:278 msgid "" "Acquire an exclusive advisory lock on the mailbox so that other processes " -"know not to modify it. An :exc:`ExternalClashError` is raised if the lock is" -" not available. The particular locking mechanisms used depend upon the " +"know not to modify it. An :exc:`ExternalClashError` is raised if the lock is " +"not available. The particular locking mechanisms used depend upon the " "mailbox format. You should *always* lock the mailbox before making any " "modifications to its contents." msgstr "" @@ -337,7 +337,7 @@ msgstr "" #: ../../library/mailbox.rst:299 msgid ":class:`Maildir`" -msgstr "" +msgstr ":class:`Maildir`" #: ../../library/mailbox.rst:304 msgid "" @@ -351,8 +351,8 @@ msgstr "" #: ../../library/mailbox.rst:311 msgid "" -"If *create* is ``True`` and the *dirname* path exists, it will be treated as" -" an existing maildir without attempting to verify its directory layout." +"If *create* is ``True`` and the *dirname* path exists, it will be treated as " +"an existing maildir without attempting to verify its directory layout." msgstr "" #: ../../library/mailbox.rst:314 @@ -373,31 +373,30 @@ msgstr "" #: ../../library/mailbox.rst:323 msgid "" -"Maildir mailboxes contain three subdirectories, namely: :file:`tmp`, " -":file:`new`, and :file:`cur`. Messages are created momentarily in the " -":file:`tmp` subdirectory and then moved to the :file:`new` subdirectory to " -"finalize delivery. A mail user agent may subsequently move the message to " -"the :file:`cur` subdirectory and store information about the state of the " -"message in a special \"info\" section appended to its file name." +"Maildir mailboxes contain three subdirectories, namely: :file:`tmp`, :file:" +"`new`, and :file:`cur`. Messages are created momentarily in the :file:`tmp` " +"subdirectory and then moved to the :file:`new` subdirectory to finalize " +"delivery. A mail user agent may subsequently move the message to the :file:" +"`cur` subdirectory and store information about the state of the message in a " +"special \"info\" section appended to its file name." msgstr "" #: ../../library/mailbox.rst:330 msgid "" "Folders of the style introduced by the Courier mail transfer agent are also " "supported. Any subdirectory of the main mailbox is considered a folder if " -"``'.'`` is the first character in its name. Folder names are represented by " -":class:`Maildir` without the leading ``'.'``. Each folder is itself a " -"Maildir mailbox but should not contain other folders. Instead, a logical " -"nesting is indicated using ``'.'`` to delimit levels, e.g., " -"\"Archived.2005.07\"." +"``'.'`` is the first character in its name. Folder names are represented by :" +"class:`Maildir` without the leading ``'.'``. Each folder is itself a Maildir " +"mailbox but should not contain other folders. Instead, a logical nesting is " +"indicated using ``'.'`` to delimit levels, e.g., \"Archived.2005.07\"." msgstr "" #: ../../library/mailbox.rst:339 msgid "" "The Maildir specification requires the use of a colon (``':'``) in certain " "message file names. However, some operating systems do not permit this " -"character in file names, If you wish to use a Maildir-like format on such an" -" operating system, you should specify another character to use instead. The " +"character in file names, If you wish to use a Maildir-like format on such an " +"operating system, you should specify another character to use instead. The " "exclamation point (``'!'``) is a popular choice. For example::" msgstr "" @@ -418,8 +417,8 @@ msgstr "" #: ../../library/mailbox.rst:362 msgid "" "Return a :class:`Maildir` instance representing the folder whose name is " -"*folder*. A :exc:`NoSuchMailboxError` exception is raised if the folder does" -" not exist." +"*folder*. A :exc:`NoSuchMailboxError` exception is raised if the folder does " +"not exist." msgstr "" #: ../../library/mailbox.rst:369 @@ -476,8 +475,8 @@ msgstr "" #: ../../library/mailbox.rst:423 msgid "" -"Depending upon the host platform, it may not be possible to modify or remove" -" the underlying message while the returned file remains open." +"Depending upon the host platform, it may not be possible to modify or remove " +"the underlying message while the returned file remains open." msgstr "" #: ../../library/mailbox.rst:430 @@ -535,13 +534,13 @@ msgstr "" #: ../../library/mailbox.rst:460 msgid "" "Several variations of the mbox format exist to address perceived " -"shortcomings in the original. In the interest of compatibility, " -":class:`mbox` implements the original format, which is sometimes referred to" -" as :dfn:`mboxo`. This means that the :mailheader:`Content-Length` header, " -"if present, is ignored and that any occurrences of \"From \" at the " -"beginning of a line in a message body are transformed to \">From \" when " -"storing the message, although occurrences of \">From \" are not transformed " -"to \"From \" when reading the message." +"shortcomings in the original. In the interest of compatibility, :class:" +"`mbox` implements the original format, which is sometimes referred to as :" +"dfn:`mboxo`. This means that the :mailheader:`Content-Length` header, if " +"present, is ignored and that any occurrences of \"From \" at the beginning " +"of a line in a message body are transformed to \">From \" when storing the " +"message, although occurrences of \">From \" are not transformed to \"From \" " +"when reading the message." msgstr "" #: ../../library/mailbox.rst:468 @@ -552,16 +551,15 @@ msgstr "" #: ../../library/mailbox.rst:474 msgid "" -"Using the file after calling :meth:`flush` or :meth:`close` on the " -":class:`mbox` instance may yield unpredictable results or raise an " -"exception." +"Using the file after calling :meth:`flush` or :meth:`close` on the :class:" +"`mbox` instance may yield unpredictable results or raise an exception." msgstr "" #: ../../library/mailbox.rst:482 ../../library/mailbox.rst:694 #: ../../library/mailbox.rst:745 msgid "" -"Three locking mechanisms are used---dot locking and, if available, the " -":c:func:`flock` and :c:func:`lockf` system calls." +"Three locking mechanisms are used---dot locking and, if available, the :c:" +"func:`flock` and :c:func:`lockf` system calls." msgstr "" #: ../../library/mailbox.rst:489 @@ -574,8 +572,8 @@ msgstr "" #: ../../library/mailbox.rst:492 msgid "" -"`mbox man page from tin " -"`_" +"`mbox man page from tin `_" msgstr "" #: ../../library/mailbox.rst:492 @@ -589,8 +587,7 @@ msgid "" msgstr "" #: ../../library/mailbox.rst:495 -msgid "" -"An argument for using the original mbox format rather than a variation." +msgid "An argument for using the original mbox format rather than a variation." msgstr "" #: ../../library/mailbox.rst:497 @@ -605,7 +602,7 @@ msgstr "" #: ../../library/mailbox.rst:504 msgid ":class:`MH`" -msgstr "" +msgstr ":class:`MH`" #: ../../library/mailbox.rst:509 msgid "" @@ -623,17 +620,17 @@ msgid "" "System, a mail user agent. Each message in an MH mailbox resides in its own " "file. An MH mailbox may contain other MH mailboxes (called :dfn:`folders`) " "in addition to messages. Folders may be nested indefinitely. MH mailboxes " -"also support :dfn:`sequences`, which are named lists used to logically group" -" messages without moving them to sub-folders. Sequences are defined in a " -"file called :file:`.mh_sequences` in each folder." +"also support :dfn:`sequences`, which are named lists used to logically group " +"messages without moving them to sub-folders. Sequences are defined in a file " +"called :file:`.mh_sequences` in each folder." msgstr "" #: ../../library/mailbox.rst:524 msgid "" "The :class:`MH` class manipulates MH mailboxes, but it does not attempt to " "emulate all of :program:`mh`'s behaviors. In particular, it does not modify " -"and is not affected by the :file:`context` or :file:`.mh_profile` files that" -" are used by :program:`mh` to store its state and configuration." +"and is not affected by the :file:`context` or :file:`.mh_profile` files that " +"are used by :program:`mh` to store its state and configuration." msgstr "" #: ../../library/mailbox.rst:529 @@ -645,8 +642,8 @@ msgstr "" #: ../../library/mailbox.rst:540 msgid "" "Return an :class:`MH` instance representing the folder whose name is " -"*folder*. A :exc:`NoSuchMailboxError` exception is raised if the folder does" -" not exist." +"*folder*. A :exc:`NoSuchMailboxError` exception is raised if the folder does " +"not exist." msgstr "" #: ../../library/mailbox.rst:547 @@ -664,14 +661,14 @@ msgstr "" #: ../../library/mailbox.rst:566 msgid "" "Re-define the sequences that exist in the mailbox based upon *sequences*, a " -"dictionary of names mapped to key lists, like returned by " -":meth:`get_sequences`." +"dictionary of names mapped to key lists, like returned by :meth:" +"`get_sequences`." msgstr "" #: ../../library/mailbox.rst:573 msgid "" -"Rename messages in the mailbox as necessary to eliminate gaps in numbering." -" Entries in the sequences list are updated correspondingly." +"Rename messages in the mailbox as necessary to eliminate gaps in numbering. " +"Entries in the sequences list are updated correspondingly." msgstr "" #: ../../library/mailbox.rst:578 @@ -688,15 +685,15 @@ msgstr "" #: ../../library/mailbox.rst:589 msgid "" -"These methods immediately delete the message. The MH convention of marking a" -" message for deletion by prepending a comma to its name is not used." +"These methods immediately delete the message. The MH convention of marking a " +"message for deletion by prepending a comma to its name is not used." msgstr "" #: ../../library/mailbox.rst:596 msgid "" -"Three locking mechanisms are used---dot locking and, if available, the " -":c:func:`flock` and :c:func:`lockf` system calls. For MH mailboxes, locking " -"the mailbox means locking the :file:`.mh_sequences` file and, only for the " +"Three locking mechanisms are used---dot locking and, if available, the :c:" +"func:`flock` and :c:func:`lockf` system calls. For MH mailboxes, locking the " +"mailbox means locking the :file:`.mh_sequences` file and, only for the " "duration of any operations that affect them, locking individual message " "files." msgstr "" @@ -725,14 +722,14 @@ msgstr "" #: ../../library/mailbox.rst:624 msgid "" -"Home page of :program:`nmh`, an updated version of the original " -":program:`mh`." +"Home page of :program:`nmh`, an updated version of the original :program:" +"`mh`." msgstr "" #: ../../library/mailbox.rst:627 msgid "" -"`MH & nmh: Email for Users & Programmers `_" +"`MH & nmh: Email for Users & Programmers `_" msgstr "" #: ../../library/mailbox.rst:627 @@ -743,7 +740,7 @@ msgstr "" #: ../../library/mailbox.rst:634 msgid ":class:`Babyl`" -msgstr "" +msgstr ":class:`Babyl`" #: ../../library/mailbox.rst:639 msgid "" @@ -759,8 +756,8 @@ msgstr "" msgid "" "Babyl is a single-file mailbox format used by the Rmail mail user agent " "included with Emacs. The beginning of a message is indicated by a line " -"containing the two characters Control-Underscore (``'\\037'``) and Control-L" -" (``'\\014'``). The end of a message is indicated by the start of the next " +"containing the two characters Control-Underscore (``'\\037'``) and Control-L " +"(``'\\014'``). The end of a message is indicated by the start of the next " "message or, in the case of the last message, a line containing a Control-" "Underscore (``'\\037'``) character." msgstr "" @@ -770,8 +767,8 @@ msgid "" "Messages in a Babyl mailbox have two sets of headers, original headers and " "so-called visible headers. Visible headers are typically a subset of the " "original headers that have been reformatted or abridged to be more " -"attractive. Each message in a Babyl mailbox also has an accompanying list of" -" :dfn:`labels`, or short strings that record extra information about the " +"attractive. Each message in a Babyl mailbox also has an accompanying list " +"of :dfn:`labels`, or short strings that record extra information about the " "message, and a list of all user-defined labels found in the mailbox is kept " "in the Babyl options section." msgstr "" @@ -821,8 +818,8 @@ msgstr "" #: ../../library/mailbox.rst:703 msgid "" -"`Reading Mail with Rmail " -"`_" +"`Reading Mail with Rmail `_" msgstr "" #: ../../library/mailbox.rst:704 @@ -831,7 +828,7 @@ msgstr "" #: ../../library/mailbox.rst:710 msgid ":class:`MMDF`" -msgstr "" +msgstr ":class:`MMDF`" #: ../../library/mailbox.rst:715 msgid "" @@ -848,8 +845,8 @@ msgid "" "MMDF is a single-file mailbox format invented for the Multichannel " "Memorandum Distribution Facility, a mail transfer agent. Each message is in " "the same form as an mbox message but is bracketed before and after by lines " -"containing four Control-A (``'\\001'``) characters. As with the mbox format," -" the beginning of each message is indicated by a line whose first five " +"containing four Control-A (``'\\001'``) characters. As with the mbox format, " +"the beginning of each message is indicated by a line whose first five " "characters are \"From \", but additional occurrences of \"From \" are not " "transformed to \">From \" when storing messages because the extra message " "separator lines prevent mistaking such occurrences for the starts of " @@ -864,15 +861,14 @@ msgstr "" #: ../../library/mailbox.rst:737 msgid "" -"Using the file after calling :meth:`flush` or :meth:`close` on the " -":class:`MMDF` instance may yield unpredictable results or raise an " -"exception." +"Using the file after calling :meth:`flush` or :meth:`close` on the :class:" +"`MMDF` instance may yield unpredictable results or raise an exception." msgstr "" #: ../../library/mailbox.rst:752 msgid "" -"`mmdf man page from tin " -"`_" +"`mmdf man page from tin `_" msgstr "" #: ../../library/mailbox.rst:752 @@ -896,9 +892,9 @@ msgstr "" #: ../../library/mailbox.rst:767 msgid "" -"A subclass of the :mod:`email.message` module's " -":class:`~email.message.Message`. Subclasses of :class:`mailbox.Message` add " -"mailbox-format-specific state and behavior." +"A subclass of the :mod:`email.message` module's :class:`~email.message." +"Message`. Subclasses of :class:`mailbox.Message` add mailbox-format-specific " +"state and behavior." msgstr "" #: ../../library/mailbox.rst:771 @@ -907,9 +903,9 @@ msgid "" "state. If *message* is an :class:`email.message.Message` instance, its " "contents are copied; furthermore, any format-specific information is " "converted insofar as possible if *message* is a :class:`Message` instance. " -"If *message* is a string, a byte string, or a file, it should contain an " -":rfc:`2822`\\ -compliant message, which is read and parsed. Files should be" -" open in binary mode, but text mode files are accepted for backward " +"If *message* is a string, a byte string, or a file, it should contain an :" +"rfc:`2822`\\ -compliant message, which is read and parsed. Files should be " +"open in binary mode, but text mode files are accepted for backward " "compatibility." msgstr "" @@ -927,12 +923,12 @@ msgstr "" #: ../../library/mailbox.rst:789 msgid "" -"There is no requirement that :class:`Message` instances be used to represent" -" messages retrieved using :class:`Mailbox` instances. In some situations, " -"the time and memory required to generate :class:`Message` representations " -"might not be acceptable. For such situations, :class:`Mailbox` instances " -"also offer string and file-like representations, and a custom message " -"factory may be specified when a :class:`Mailbox` instance is initialized." +"There is no requirement that :class:`Message` instances be used to represent " +"messages retrieved using :class:`Mailbox` instances. In some situations, the " +"time and memory required to generate :class:`Message` representations might " +"not be acceptable. For such situations, :class:`Mailbox` instances also " +"offer string and file-like representations, and a custom message factory may " +"be specified when a :class:`Mailbox` instance is initialized." msgstr "" #: ../../library/mailbox.rst:800 @@ -947,16 +943,16 @@ msgstr "" #: ../../library/mailbox.rst:808 msgid "" -"Typically, a mail user agent application moves all of the messages in the " -":file:`new` subdirectory to the :file:`cur` subdirectory after the first " -"time the user opens and closes the mailbox, recording that the messages are " -"old whether or not they've actually been read. Each message in :file:`cur` " -"has an \"info\" section added to its file name to store information about " -"its state. (Some mail readers may also add an \"info\" section to messages " -"in :file:`new`.) The \"info\" section may take one of two forms: it may " -"contain \"2,\" followed by a list of standardized flags (e.g., \"2,FR\") or " -"it may contain \"1,\" followed by so-called experimental information. " -"Standard flags for Maildir messages are as follows:" +"Typically, a mail user agent application moves all of the messages in the :" +"file:`new` subdirectory to the :file:`cur` subdirectory after the first time " +"the user opens and closes the mailbox, recording that the messages are old " +"whether or not they've actually been read. Each message in :file:`cur` has " +"an \"info\" section added to its file name to store information about its " +"state. (Some mail readers may also add an \"info\" section to messages in :" +"file:`new`.) The \"info\" section may take one of two forms: it may contain " +"\"2,\" followed by a list of standardized flags (e.g., \"2,FR\") or it may " +"contain \"1,\" followed by so-called experimental information. Standard " +"flags for Maildir messages are as follows:" msgstr "" #: ../../library/mailbox.rst:820 ../../library/mailbox.rst:987 @@ -991,7 +987,7 @@ msgstr "" #: ../../library/mailbox.rst:824 ../../library/mailbox.rst:995 #: ../../library/mailbox.rst:1365 msgid "F" -msgstr "" +msgstr "F" #: ../../library/mailbox.rst:824 ../../library/mailbox.rst:995 #: ../../library/mailbox.rst:1365 @@ -1039,7 +1035,6 @@ msgid "Seen" msgstr "" #: ../../library/mailbox.rst:830 ../../library/mailbox.rst:989 -#: ../../library/mailbox.rst:989 ../../library/mailbox.rst:1359 #: ../../library/mailbox.rst:1359 msgid "Read" msgstr "" @@ -1064,8 +1059,8 @@ msgstr "" #: ../../library/mailbox.rst:840 msgid "" "Return either \"new\" (if the message should be stored in the :file:`new` " -"subdirectory) or \"cur\" (if the message should be stored in the :file:`cur`" -" subdirectory)." +"subdirectory) or \"cur\" (if the message should be stored in the :file:`cur` " +"subdirectory)." msgstr "" #: ../../library/mailbox.rst:846 @@ -1085,8 +1080,8 @@ msgstr "" msgid "" "Return a string specifying the flags that are currently set. If the message " "complies with the standard Maildir format, the result is the concatenation " -"in alphabetical order of zero or one occurrence of each of ``'D'``, ``'F'``," -" ``'P'``, ``'R'``, ``'S'``, and ``'T'``. The empty string is returned if no " +"in alphabetical order of zero or one occurrence of each of ``'D'``, ``'F'``, " +"``'P'``, ``'R'``, ``'S'``, and ``'T'``. The empty string is returned if no " "flags are set or if \"info\" contains experimental semantics." msgstr "" @@ -1106,8 +1101,8 @@ msgstr "" msgid "" "Unset the flag(s) specified by *flag* without changing other flags. To " "remove more than one flag at a time, *flag* maybe a string of more than one " -"character. If \"info\" contains experimental information rather than flags," -" the current \"info\" is not modified." +"character. If \"info\" contains experimental information rather than flags, " +"the current \"info\" is not modified." msgstr "" #: ../../library/mailbox.rst:891 @@ -1135,10 +1130,10 @@ msgstr "" #: ../../library/mailbox.rst:912 msgid "" -"When a :class:`MaildirMessage` instance is created based upon an " -":class:`mboxMessage` or :class:`MMDFMessage` instance, the " -":mailheader:`Status` and :mailheader:`X-Status` headers are omitted and the " -"following conversions take place:" +"When a :class:`MaildirMessage` instance is created based upon an :class:" +"`mboxMessage` or :class:`MMDFMessage` instance, the :mailheader:`Status` " +"and :mailheader:`X-Status` headers are omitted and the following conversions " +"take place:" msgstr "" #: ../../library/mailbox.rst:918 ../../library/mailbox.rst:936 @@ -1166,40 +1161,34 @@ msgstr "" #: ../../library/mailbox.rst:921 ../../library/mailbox.rst:1062 #: ../../library/mailbox.rst:1079 ../../library/mailbox.rst:1094 -#: ../../library/mailbox.rst:1109 ../../library/mailbox.rst:1109 -#: ../../library/mailbox.rst:1433 ../../library/mailbox.rst:1450 -#: ../../library/mailbox.rst:1465 ../../library/mailbox.rst:1481 +#: ../../library/mailbox.rst:1109 ../../library/mailbox.rst:1433 +#: ../../library/mailbox.rst:1450 ../../library/mailbox.rst:1465 #: ../../library/mailbox.rst:1481 msgid "O flag" msgstr "" -#: ../../library/mailbox.rst:923 ../../library/mailbox.rst:923 -#: ../../library/mailbox.rst:942 ../../library/mailbox.rst:1066 +#: ../../library/mailbox.rst:923 ../../library/mailbox.rst:942 #: ../../library/mailbox.rst:1066 ../../library/mailbox.rst:1081 -#: ../../library/mailbox.rst:1113 ../../library/mailbox.rst:1113 -#: ../../library/mailbox.rst:1178 ../../library/mailbox.rst:1194 -#: ../../library/mailbox.rst:1437 ../../library/mailbox.rst:1437 +#: ../../library/mailbox.rst:1113 ../../library/mailbox.rst:1178 +#: ../../library/mailbox.rst:1194 ../../library/mailbox.rst:1437 #: ../../library/mailbox.rst:1452 ../../library/mailbox.rst:1485 -#: ../../library/mailbox.rst:1485 msgid "F flag" msgstr "" #: ../../library/mailbox.rst:925 ../../library/mailbox.rst:927 #: ../../library/mailbox.rst:944 ../../library/mailbox.rst:959 #: ../../library/mailbox.rst:1060 ../../library/mailbox.rst:1068 -#: ../../library/mailbox.rst:1107 ../../library/mailbox.rst:1107 -#: ../../library/mailbox.rst:1176 ../../library/mailbox.rst:1304 -#: ../../library/mailbox.rst:1431 ../../library/mailbox.rst:1439 -#: ../../library/mailbox.rst:1479 ../../library/mailbox.rst:1479 +#: ../../library/mailbox.rst:1107 ../../library/mailbox.rst:1176 +#: ../../library/mailbox.rst:1304 ../../library/mailbox.rst:1431 +#: ../../library/mailbox.rst:1439 ../../library/mailbox.rst:1479 msgid "R flag" msgstr "" #: ../../library/mailbox.rst:925 ../../library/mailbox.rst:1068 #: ../../library/mailbox.rst:1083 ../../library/mailbox.rst:1098 -#: ../../library/mailbox.rst:1115 ../../library/mailbox.rst:1115 -#: ../../library/mailbox.rst:1192 ../../library/mailbox.rst:1322 -#: ../../library/mailbox.rst:1439 ../../library/mailbox.rst:1454 -#: ../../library/mailbox.rst:1469 ../../library/mailbox.rst:1487 +#: ../../library/mailbox.rst:1115 ../../library/mailbox.rst:1192 +#: ../../library/mailbox.rst:1322 ../../library/mailbox.rst:1439 +#: ../../library/mailbox.rst:1454 ../../library/mailbox.rst:1469 #: ../../library/mailbox.rst:1487 msgid "A flag" msgstr "" @@ -1217,16 +1206,15 @@ msgstr "" #: ../../library/mailbox.rst:929 ../../library/mailbox.rst:1064 #: ../../library/mailbox.rst:1096 ../../library/mailbox.rst:1111 -#: ../../library/mailbox.rst:1111 ../../library/mailbox.rst:1320 -#: ../../library/mailbox.rst:1435 ../../library/mailbox.rst:1467 -#: ../../library/mailbox.rst:1483 ../../library/mailbox.rst:1483 +#: ../../library/mailbox.rst:1320 ../../library/mailbox.rst:1435 +#: ../../library/mailbox.rst:1467 ../../library/mailbox.rst:1483 msgid "D flag" msgstr "" #: ../../library/mailbox.rst:932 msgid "" -"When a :class:`MaildirMessage` instance is created based upon an " -":class:`MHMessage` instance, the following conversions take place:" +"When a :class:`MaildirMessage` instance is created based upon an :class:" +"`MHMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:936 ../../library/mailbox.rst:1075 @@ -1265,8 +1253,8 @@ msgstr "" #: ../../library/mailbox.rst:947 msgid "" -"When a :class:`MaildirMessage` instance is created based upon a " -":class:`BabylMessage` instance, the following conversions take place:" +"When a :class:`MaildirMessage` instance is created based upon a :class:" +"`BabylMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:951 ../../library/mailbox.rst:1090 @@ -1309,7 +1297,7 @@ msgstr "" #: ../../library/mailbox.rst:968 msgid ":class:`mboxMessage`" -msgstr "" +msgstr ":class:`mboxMessage`" #: ../../library/mailbox.rst:973 msgid "" @@ -1320,8 +1308,8 @@ msgstr "" #: ../../library/mailbox.rst:976 msgid "" "Messages in an mbox mailbox are stored together in a single file. The " -"sender's envelope address and the time of delivery are typically stored in a" -" line beginning with \"From \" that is used to indicate the start of a " +"sender's envelope address and the time of delivery are typically stored in a " +"line beginning with \"From \" that is used to indicate the start of a " "message, though there is considerable variation in the exact format of this " "data among mbox implementations. Flags that indicate the state of the " "message, such as whether it has been read or marked as important, are " @@ -1358,8 +1346,8 @@ msgstr "" #: ../../library/mailbox.rst:1000 ../../library/mailbox.rst:1370 msgid "" -"The \"R\" and \"O\" flags are stored in the :mailheader:`Status` header, and" -" the \"D\", \"F\", and \"A\" flags are stored in the :mailheader:`X-Status` " +"The \"R\" and \"O\" flags are stored in the :mailheader:`Status` header, and " +"the \"D\", \"F\", and \"A\" flags are stored in the :mailheader:`X-Status` " "header. The flags and headers typically appear in the order mentioned." msgstr "" @@ -1380,8 +1368,8 @@ msgid "" "leading \"From \" or trailing newline. For convenience, *time_* may be " "specified and will be formatted appropriately and appended to *from_*. If " "*time_* is specified, it should be a :class:`time.struct_time` instance, a " -"tuple suitable for passing to :meth:`time.strftime`, or ``True`` (to use " -":meth:`time.gmtime`)." +"tuple suitable for passing to :meth:`time.strftime`, or ``True`` (to use :" +"meth:`time.gmtime`)." msgstr "" #: ../../library/mailbox.rst:1026 ../../library/mailbox.rst:1397 @@ -1395,8 +1383,8 @@ msgstr "" #: ../../library/mailbox.rst:1034 ../../library/mailbox.rst:1405 msgid "" "Set the flags specified by *flags* and unset all others. Parameter *flags* " -"should be the concatenation in any order of zero or more occurrences of each" -" of ``'R'``, ``'O'``, ``'D'``, ``'F'``, and ``'A'``." +"should be the concatenation in any order of zero or more occurrences of each " +"of ``'R'``, ``'O'``, ``'D'``, ``'F'``, and ``'A'``." msgstr "" #: ../../library/mailbox.rst:1041 ../../library/mailbox.rst:1412 @@ -1415,9 +1403,9 @@ msgstr "" #: ../../library/mailbox.rst:1052 msgid "" -"When an :class:`mboxMessage` instance is created based upon a " -":class:`MaildirMessage` instance, a \"From \" line is generated based upon " -"the :class:`MaildirMessage` instance's delivery date, and the following " +"When an :class:`mboxMessage` instance is created based upon a :class:" +"`MaildirMessage` instance, a \"From \" line is generated based upon the :" +"class:`MaildirMessage` instance's delivery date, and the following " "conversions take place:" msgstr "" @@ -1428,8 +1416,8 @@ msgstr "" #: ../../library/mailbox.rst:1071 msgid "" -"When an :class:`mboxMessage` instance is created based upon an " -":class:`MHMessage` instance, the following conversions take place:" +"When an :class:`mboxMessage` instance is created based upon an :class:" +"`MHMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1077 ../../library/mailbox.rst:1092 @@ -1439,15 +1427,15 @@ msgstr "" #: ../../library/mailbox.rst:1086 msgid "" -"When an :class:`mboxMessage` instance is created based upon a " -":class:`BabylMessage` instance, the following conversions take place:" +"When an :class:`mboxMessage` instance is created based upon a :class:" +"`BabylMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1101 msgid "" -"When a :class:`Message` instance is created based upon an " -":class:`MMDFMessage` instance, the \"From \" line is copied and all flags " -"directly correspond:" +"When a :class:`Message` instance is created based upon an :class:" +"`MMDFMessage` instance, the \"From \" line is copied and all flags directly " +"correspond:" msgstr "" #: ../../library/mailbox.rst:1105 @@ -1456,7 +1444,7 @@ msgstr "" #: ../../library/mailbox.rst:1122 msgid ":class:`MHMessage`" -msgstr "" +msgstr ":class:`MHMessage`" #: ../../library/mailbox.rst:1127 msgid "" @@ -1466,11 +1454,11 @@ msgstr "" #: ../../library/mailbox.rst:1130 msgid "" -"MH messages do not support marks or flags in the traditional sense, but they" -" do support sequences, which are logical groupings of arbitrary messages. " -"Some mail reading programs (although not the standard :program:`mh` and " -":program:`nmh`) use sequences in much the same way flags are used with other" -" formats, as follows:" +"MH messages do not support marks or flags in the traditional sense, but they " +"do support sequences, which are logical groupings of arbitrary messages. " +"Some mail reading programs (although not the standard :program:`mh` and :" +"program:`nmh`) use sequences in much the same way flags are used with other " +"formats, as follows:" msgstr "" #: ../../library/mailbox.rst:1137 @@ -1510,14 +1498,13 @@ msgid "Add *sequence* to the list of sequences that include this message." msgstr "" #: ../../library/mailbox.rst:1166 -msgid "" -"Remove *sequence* from the list of sequences that include this message." +msgid "Remove *sequence* from the list of sequences that include this message." msgstr "" #: ../../library/mailbox.rst:1168 msgid "" -"When an :class:`MHMessage` instance is created based upon a " -":class:`MaildirMessage` instance, the following conversions take place:" +"When an :class:`MHMessage` instance is created based upon a :class:" +"`MaildirMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1174 ../../library/mailbox.rst:1300 @@ -1526,10 +1513,10 @@ msgstr "" #: ../../library/mailbox.rst:1181 msgid "" -"When an :class:`MHMessage` instance is created based upon an " -":class:`mboxMessage` or :class:`MMDFMessage` instance, the " -":mailheader:`Status` and :mailheader:`X-Status` headers are omitted and the " -"following conversions take place:" +"When an :class:`MHMessage` instance is created based upon an :class:" +"`mboxMessage` or :class:`MMDFMessage` instance, the :mailheader:`Status` " +"and :mailheader:`X-Status` headers are omitted and the following conversions " +"take place:" msgstr "" #: ../../library/mailbox.rst:1190 ../../library/mailbox.rst:1318 @@ -1538,13 +1525,13 @@ msgstr "" #: ../../library/mailbox.rst:1197 msgid "" -"When an :class:`MHMessage` instance is created based upon a " -":class:`BabylMessage` instance, the following conversions take place:" +"When an :class:`MHMessage` instance is created based upon a :class:" +"`BabylMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1212 msgid ":class:`BabylMessage`" -msgstr "" +msgstr ":class:`BabylMessage`" #: ../../library/mailbox.rst:1217 msgid "" @@ -1638,8 +1625,8 @@ msgstr "" #: ../../library/mailbox.rst:1276 msgid "" "Set the message's visible headers to be the same as the headers in " -"*message*. Parameter *visible* should be a :class:`Message` instance, an " -":class:`email.message.Message` instance, a string, or a file-like object " +"*message*. Parameter *visible* should be a :class:`Message` instance, an :" +"class:`email.message.Message` instance, a string, or a file-like object " "(which should be open in text mode)." msgstr "" @@ -1650,16 +1637,16 @@ msgid "" "updates the visible headers as follows: each visible header with a " "corresponding original header is set to the value of the original header, " "each visible header without a corresponding original header is removed, and " -"any of :mailheader:`Date`, :mailheader:`From`, :mailheader:`Reply-To`, " -":mailheader:`To`, :mailheader:`CC`, and :mailheader:`Subject` that are " -"present in the original headers but not the visible headers are added to the" -" visible headers." +"any of :mailheader:`Date`, :mailheader:`From`, :mailheader:`Reply-To`, :" +"mailheader:`To`, :mailheader:`CC`, and :mailheader:`Subject` that are " +"present in the original headers but not the visible headers are added to the " +"visible headers." msgstr "" #: ../../library/mailbox.rst:1294 msgid "" -"When a :class:`BabylMessage` instance is created based upon a " -":class:`MaildirMessage` instance, the following conversions take place:" +"When a :class:`BabylMessage` instance is created based upon a :class:" +"`MaildirMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1306 @@ -1668,21 +1655,21 @@ msgstr "" #: ../../library/mailbox.rst:1309 msgid "" -"When a :class:`BabylMessage` instance is created based upon an " -":class:`mboxMessage` or :class:`MMDFMessage` instance, the " -":mailheader:`Status` and :mailheader:`X-Status` headers are omitted and the " -"following conversions take place:" +"When a :class:`BabylMessage` instance is created based upon an :class:" +"`mboxMessage` or :class:`MMDFMessage` instance, the :mailheader:`Status` " +"and :mailheader:`X-Status` headers are omitted and the following conversions " +"take place:" msgstr "" #: ../../library/mailbox.rst:1325 msgid "" -"When a :class:`BabylMessage` instance is created based upon an " -":class:`MHMessage` instance, the following conversions take place:" +"When a :class:`BabylMessage` instance is created based upon an :class:" +"`MHMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1340 msgid ":class:`MMDFMessage`" -msgstr "" +msgstr ":class:`MMDFMessage`" #: ../../library/mailbox.rst:1345 msgid "" @@ -1712,29 +1699,29 @@ msgstr "" #: ../../library/mailbox.rst:1423 msgid "" -"When an :class:`MMDFMessage` instance is created based upon a " -":class:`MaildirMessage` instance, a \"From \" line is generated based upon " -"the :class:`MaildirMessage` instance's delivery date, and the following " +"When an :class:`MMDFMessage` instance is created based upon a :class:" +"`MaildirMessage` instance, a \"From \" line is generated based upon the :" +"class:`MaildirMessage` instance's delivery date, and the following " "conversions take place:" msgstr "" #: ../../library/mailbox.rst:1442 msgid "" -"When an :class:`MMDFMessage` instance is created based upon an " -":class:`MHMessage` instance, the following conversions take place:" +"When an :class:`MMDFMessage` instance is created based upon an :class:" +"`MHMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1457 msgid "" -"When an :class:`MMDFMessage` instance is created based upon a " -":class:`BabylMessage` instance, the following conversions take place:" +"When an :class:`MMDFMessage` instance is created based upon a :class:" +"`BabylMessage` instance, the following conversions take place:" msgstr "" #: ../../library/mailbox.rst:1472 msgid "" -"When an :class:`MMDFMessage` instance is created based upon an " -":class:`mboxMessage` instance, the \"From \" line is copied and all flags " -"directly correspond:" +"When an :class:`MMDFMessage` instance is created based upon an :class:" +"`mboxMessage` instance, the \"From \" line is copied and all flags directly " +"correspond:" msgstr "" #: ../../library/mailbox.rst:1477 @@ -1758,8 +1745,8 @@ msgstr "" msgid "" "Raised when a mailbox is expected but is not found, such as when " "instantiating a :class:`Mailbox` subclass with a path that does not exist " -"(and with the *create* parameter set to ``False``), or when opening a folder" -" that does not exist." +"(and with the *create* parameter set to ``False``), or when opening a folder " +"that does not exist." msgstr "" #: ../../library/mailbox.rst:1511 @@ -1770,16 +1757,16 @@ msgstr "" #: ../../library/mailbox.rst:1517 msgid "" -"Raised when some mailbox-related condition beyond the control of the program" -" causes it to be unable to proceed, such as when failing to acquire a lock " -"that another program already holds a lock, or when a uniquely-generated file" -" name already exists." +"Raised when some mailbox-related condition beyond the control of the program " +"causes it to be unable to proceed, such as when failing to acquire a lock " +"that another program already holds a lock, or when a uniquely-generated file " +"name already exists." msgstr "" #: ../../library/mailbox.rst:1525 msgid "" -"Raised when the data in a file cannot be parsed, such as when an :class:`MH`" -" instance attempts to read a corrupted :file:`.mh_sequences` file." +"Raised when the data in a file cannot be parsed, such as when an :class:`MH` " +"instance attempts to read a corrupted :file:`.mh_sequences` file." msgstr "" #: ../../library/mailbox.rst:1532 @@ -1800,8 +1787,8 @@ msgstr "" #: ../../library/mailbox.rst:1554 msgid "" -"This example sorts mail from several mailing lists into different mailboxes," -" being careful to avoid mail corruption due to concurrent modification by " +"This example sorts mail from several mailing lists into different mailboxes, " +"being careful to avoid mail corruption due to concurrent modification by " "other programs, mail loss due to interruption of the program, or premature " "termination due to malformed messages in the mailbox::" msgstr "" diff --git a/library/mailcap.po b/library/mailcap.po index 36c312e6d..68e276a02 100644 --- a/library/mailcap.po +++ b/library/mailcap.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,21 +33,21 @@ msgstr "**Código Fonte:** :source:`Lib/mailcap.py`" #: ../../library/mailcap.rst:11 msgid "" -"Mailcap files are used to configure how MIME-aware applications such as mail" -" readers and Web browsers react to files with different MIME types. (The " -"name \"mailcap\" is derived from the phrase \"mail capability\".) For " -"example, a mailcap file might contain a line like ``video/mpeg; xmpeg %s``." -" Then, if the user encounters an email message or Web document with the " -"MIME type :mimetype:`video/mpeg`, ``%s`` will be replaced by a filename " -"(usually one belonging to a temporary file) and the :program:`xmpeg` program" -" can be automatically started to view the file." +"Mailcap files are used to configure how MIME-aware applications such as mail " +"readers and Web browsers react to files with different MIME types. (The name " +"\"mailcap\" is derived from the phrase \"mail capability\".) For example, a " +"mailcap file might contain a line like ``video/mpeg; xmpeg %s``. Then, if " +"the user encounters an email message or Web document with the MIME type :" +"mimetype:`video/mpeg`, ``%s`` will be replaced by a filename (usually one " +"belonging to a temporary file) and the :program:`xmpeg` program can be " +"automatically started to view the file." msgstr "" #: ../../library/mailcap.rst:20 msgid "" "The mailcap format is documented in :rfc:`1524`, \"A User Agent " -"Configuration Mechanism For Multimedia Mail Format Information,\" but is not" -" an Internet standard. However, mailcap files are supported on most Unix " +"Configuration Mechanism For Multimedia Mail Format Information\", but is not " +"an Internet standard. However, mailcap files are supported on most Unix " "systems." msgstr "" @@ -62,16 +64,16 @@ msgid "" "*key* is the name of the field desired, which represents the type of " "activity to be performed; the default value is 'view', since in the most " "common case you simply want to view the body of the MIME-typed data. Other " -"possible values might be 'compose' and 'edit', if you wanted to create a new" -" body of the given MIME type or alter the existing body data. See " -":rfc:`1524` for a complete list of these fields." +"possible values might be 'compose' and 'edit', if you wanted to create a new " +"body of the given MIME type or alter the existing body data. See :rfc:" +"`1524` for a complete list of these fields." msgstr "" #: ../../library/mailcap.rst:39 msgid "" -"*filename* is the filename to be substituted for ``%s`` in the command line;" -" the default value is ``'/dev/null'`` which is almost certainly not what you" -" want, so usually you'll override it by specifying a filename." +"*filename* is the filename to be substituted for ``%s`` in the command line; " +"the default value is ``'/dev/null'`` which is almost certainly not what you " +"want, so usually you'll override it by specifying a filename." msgstr "" #: ../../library/mailcap.rst:43 @@ -79,10 +81,10 @@ msgid "" "*plist* can be a list containing named parameters; the default value is " "simply an empty list. Each entry in the list must be a string containing " "the parameter name, an equals sign (``'='``), and the parameter's value. " -"Mailcap entries can contain named parameters like ``%{foo}``, which will be" -" replaced by the value of the parameter named 'foo'. For example, if the " -"command line ``showpartial %{id} %{number} %{total}`` was in a mailcap file," -" and *plist* was set to ``['id=1', 'number=2', 'total=3']``, the resulting " +"Mailcap entries can contain named parameters like ``%{foo}``, which will be " +"replaced by the value of the parameter named 'foo'. For example, if the " +"command line ``showpartial %{id} %{number} %{total}`` was in a mailcap file, " +"and *plist* was set to ``['id=1', 'number=2', 'total=3']``, the resulting " "command line would be ``'showpartial 1 2 3'``." msgstr "" @@ -90,9 +92,9 @@ msgstr "" msgid "" "In a mailcap file, the \"test\" field can optionally be specified to test " "some external condition (such as the machine architecture, or the window " -"system in use) to determine whether or not the mailcap line applies. " -":func:`findmatch` will automatically check such conditions and skip the " -"entry if the check fails." +"system in use) to determine whether or not the mailcap line applies. :func:" +"`findmatch` will automatically check such conditions and skip the entry if " +"the check fails." msgstr "" #: ../../library/mailcap.rst:60 @@ -107,8 +109,8 @@ msgstr "" msgid "" "The information is derived from all of the mailcap files found on the " "system. Settings in the user's mailcap file :file:`$HOME/.mailcap` will " -"override settings in the system mailcap files :file:`/etc/mailcap`, " -":file:`/usr/etc/mailcap`, and :file:`/usr/local/etc/mailcap`." +"override settings in the system mailcap files :file:`/etc/mailcap`, :file:`/" +"usr/etc/mailcap`, and :file:`/usr/local/etc/mailcap`." msgstr "" #: ../../library/mailcap.rst:70 diff --git a/library/markup.po b/library/markup.po index db4771292..e4cb3c03a 100644 --- a/library/markup.po +++ b/library/markup.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,12 +31,11 @@ msgstr "Ferramentas de Processamento de Markup Estruturado" msgid "" "Python supports a variety of modules to work with various forms of " "structured data markup. This includes modules to work with the Standard " -"Generalized Markup Language (SGML) and the Hypertext Markup Language (HTML)," -" and several interfaces for working with the Extensible Markup Language " -"(XML)." +"Generalized Markup Language (SGML) and the Hypertext Markup Language (HTML), " +"and several interfaces for working with the Extensible Markup Language (XML)." msgstr "" -"O Python suporta uma variedade de módulos para trabalhar com vários formatos" -" de marcação de dados estruturados. Isso inclui módulos para trabalhar com o" -" Standard Generalized Markup Language (SGML) e o Hypertext Markup Language " +"O Python suporta uma variedade de módulos para trabalhar com vários formatos " +"de marcação de dados estruturados. Isso inclui módulos para trabalhar com o " +"Standard Generalized Markup Language (SGML) e o Hypertext Markup Language " "(HTML) e várias interfaces para trabalhar com o XML (Extensible Markup " "Language)." diff --git a/library/marshal.po b/library/marshal.po index 65abda31a..5272a3cf0 100644 --- a/library/marshal.po +++ b/library/marshal.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,11 +29,11 @@ msgstr "" #: ../../library/marshal.rst:10 msgid "" "This module contains functions that can read and write Python values in a " -"binary format. The format is specific to Python, but independent of machine" -" architecture issues (e.g., you can write a Python value to a file on a PC, " -"transport the file to a Sun, and read it back there). Details of the format" -" are undocumented on purpose; it may change between Python versions " -"(although it rarely does). [#]_" +"binary format. The format is specific to Python, but independent of machine " +"architecture issues (e.g., you can write a Python value to a file on a PC, " +"transport the file to a Sun, and read it back there). Details of the format " +"are undocumented on purpose; it may change between Python versions (although " +"it rarely does). [#]_" msgstr "" #: ../../library/marshal.rst:21 @@ -40,13 +41,13 @@ msgid "" "This is not a general \"persistence\" module. For general persistence and " "transfer of Python objects through RPC calls, see the modules :mod:`pickle` " "and :mod:`shelve`. The :mod:`marshal` module exists mainly to support " -"reading and writing the \"pseudo-compiled\" code for Python modules of " -":file:`.pyc` files. Therefore, the Python maintainers reserve the right to " -"modify the marshal format in backward incompatible ways should the need " -"arise. If you're serializing and de-serializing Python objects, use the " -":mod:`pickle` module instead -- the performance is comparable, version " -"independence is guaranteed, and pickle supports a substantially wider range " -"of objects than marshal." +"reading and writing the \"pseudo-compiled\" code for Python modules of :file:" +"`.pyc` files. Therefore, the Python maintainers reserve the right to modify " +"the marshal format in backward incompatible ways should the need arise. If " +"you're serializing and de-serializing Python objects, use the :mod:`pickle` " +"module instead -- the performance is comparable, version independence is " +"guaranteed, and pickle supports a substantially wider range of objects than " +"marshal." msgstr "" #: ../../library/marshal.rst:33 @@ -62,11 +63,11 @@ msgid "" "value is independent from a particular invocation of Python can be written " "and read by this module. The following types are supported: booleans, " "integers, floating point numbers, complex numbers, strings, bytes, " -"bytearrays, tuples, lists, sets, frozensets, dictionaries, and code objects," -" where it should be understood that tuples, lists, sets, frozensets and " +"bytearrays, tuples, lists, sets, frozensets, dictionaries, and code objects, " +"where it should be understood that tuples, lists, sets, frozensets and " "dictionaries are only supported as long as the values contained therein are " -"themselves supported. The singletons :const:`None`, :const:`Ellipsis` and " -":exc:`StopIteration` can also be marshalled and unmarshalled. For format " +"themselves supported. The singletons :const:`None`, :const:`Ellipsis` and :" +"exc:`StopIteration` can also be marshalled and unmarshalled. For format " "*version* lower than 3, recursive lists, sets and dictionaries cannot be " "written (see below)." msgstr "" @@ -89,10 +90,10 @@ msgstr "" #: ../../library/marshal.rst:62 msgid "" -"If the value has (or contains an object that has) an unsupported type, a " -":exc:`ValueError` exception is raised --- but garbage data will also be " -"written to the file. The object will not be properly read back by " -":func:`load`." +"If the value has (or contains an object that has) an unsupported type, a :" +"exc:`ValueError` exception is raised --- but garbage data will also be " +"written to the file. The object will not be properly read back by :func:" +"`load`." msgstr "" #: ../../library/marshal.rst:66 @@ -104,16 +105,15 @@ msgstr "" #: ../../library/marshal.rst:72 msgid "" "Read one value from the open file and return it. If no valid value is read " -"(e.g. because the data has a different Python version's incompatible marshal" -" format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. The" -" file must be a readable :term:`binary file`." +"(e.g. because the data has a different Python version's incompatible marshal " +"format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. The " +"file must be a readable :term:`binary file`." msgstr "" #: ../../library/marshal.rst:79 msgid "" -"If an object containing an unsupported type was marshalled with " -":func:`dump`, :func:`load` will substitute ``None`` for the unmarshallable " -"type." +"If an object containing an unsupported type was marshalled with :func:" +"`dump`, :func:`load` will substitute ``None`` for the unmarshallable type." msgstr "" #: ../../library/marshal.rst:85 @@ -143,9 +143,9 @@ msgstr "" #: ../../library/marshal.rst:104 msgid "" "Indicates the format that the module uses. Version 0 is the historical " -"format, version 1 shares interned strings and version 2 uses a binary format" -" for floating point numbers. Version 3 adds support for object instancing " -"and recursion. The current version is 4." +"format, version 1 shares interned strings and version 2 uses a binary format " +"for floating point numbers. Version 3 adds support for object instancing and " +"recursion. The current version is 4." msgstr "" #: ../../library/marshal.rst:112 @@ -155,8 +155,8 @@ msgstr "Notas de rodapé" #: ../../library/marshal.rst:113 msgid "" "The name of this module stems from a bit of terminology used by the " -"designers of Modula-3 (amongst others), who use the term \"marshalling\" for" -" shipping of data around in a self-contained form. Strictly speaking, \"to " +"designers of Modula-3 (amongst others), who use the term \"marshalling\" for " +"shipping of data around in a self-contained form. Strictly speaking, \"to " "marshal\" means to convert some data from internal to external form (in an " "RPC buffer for instance) and \"unmarshalling\" for the reverse process." msgstr "" diff --git a/library/math.po b/library/math.po index 3804c3c81..03e269748 100644 --- a/library/math.po +++ b/library/math.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-01 11:34+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,14 +42,14 @@ msgid "" "numbers and those which don't is made since most users do not want to learn " "quite as much mathematics as required to understand complex numbers. " "Receiving an exception instead of a complex result allows earlier detection " -"of the unexpected complex number used as a parameter, so that the programmer" -" can determine how and why it was generated in the first place." +"of the unexpected complex number used as a parameter, so that the programmer " +"can determine how and why it was generated in the first place." msgstr "" #: ../../library/math.rst:25 msgid "" -"The following functions are provided by this module. Except when explicitly" -" noted otherwise, all return values are floats." +"The following functions are provided by this module. Except when explicitly " +"noted otherwise, all return values are floats." msgstr "" #: ../../library/math.rst:30 @@ -81,8 +83,8 @@ msgstr "" #: ../../library/math.rst:59 msgid "" "Return the floor of *x*, the largest integer less than or equal to *x*. If " -"*x* is not a float, delegates to ``x.__floor__()``, which should return an " -":class:`~numbers.Integral` value." +"*x* is not a float, delegates to ``x.__floor__()``, which should return an :" +"class:`~numbers.Integral` value." msgstr "" #: ../../library/math.rst:66 @@ -95,8 +97,8 @@ msgid "" "Python's ``x % y`` returns a result with the sign of *y* instead, and may " "not be exactly computable for float arguments. For example, ``fmod(-1e-100, " "1e100)`` is ``-1e-100``, but the result of Python's ``-1e-100 % 1e100`` is " -"``1e100-1e-100``, which cannot be represented exactly as a float, and rounds" -" to the surprising ``1e100``. For this reason, function :func:`fmod` is " +"``1e100-1e-100``, which cannot be represented exactly as a float, and rounds " +"to the surprising ``1e100``. For this reason, function :func:`fmod` is " "generally preferred when working with floats, while Python's ``x % y`` is " "preferred when working with integers." msgstr "" @@ -127,16 +129,15 @@ msgstr "" #: ../../library/math.rst:103 msgid "" "For further discussion and two alternative approaches, see the `ASPN " -"cookbook recipes for accurate floating point summation " -"`_\\." +"cookbook recipes for accurate floating point summation `_\\." msgstr "" #: ../../library/math.rst:110 msgid "" "Return the greatest common divisor of the integers *a* and *b*. If either " "*a* or *b* is nonzero, then the value of ``gcd(a, b)`` is the largest " -"positive integer that divides both *a* and *b*. ``gcd(0, 0)`` returns " -"``0``." +"positive integer that divides both *a* and *b*. ``gcd(0, 0)`` returns ``0``." msgstr "" #: ../../library/math.rst:120 @@ -203,22 +204,22 @@ msgstr "" #: ../../library/math.rst:171 msgid "" -"Return ``x * (2**i)``. This is essentially the inverse of function " -":func:`frexp`." +"Return ``x * (2**i)``. This is essentially the inverse of function :func:" +"`frexp`." msgstr "" #: ../../library/math.rst:177 msgid "" -"Return the fractional and integer parts of *x*. Both results carry the sign" -" of *x* and are floats." +"Return the fractional and integer parts of *x*. Both results carry the sign " +"of *x* and are floats." msgstr "" #: ../../library/math.rst:183 msgid "" "Return the IEEE 754-style remainder of *x* with respect to *y*. For finite " "*x* and finite nonzero *y*, this is the difference ``x - n*y``, where ``n`` " -"is the closest integer to the exact value of the quotient ``x / y``. If ``x" -" / y`` is exactly halfway between two consecutive integers, the nearest " +"is the closest integer to the exact value of the quotient ``x / y``. If " +"``x / y`` is exactly halfway between two consecutive integers, the nearest " "*even* integer is used for ``n``. The remainder ``r = remainder(x, y)`` " "thus always satisfies ``abs(r) <= 0.5 * abs(y)``." msgstr "" @@ -239,9 +240,9 @@ msgstr "" #: ../../library/math.rst:204 msgid "" -"Return the :class:`~numbers.Real` value *x* truncated to an " -":class:`~numbers.Integral` (usually an integer). Delegates to " -":meth:`x.__trunc__() `." +"Return the :class:`~numbers.Real` value *x* truncated to an :class:`~numbers." +"Integral` (usually an integer). Delegates to :meth:`x.__trunc__() `." msgstr "" #: ../../library/math.rst:209 @@ -275,10 +276,10 @@ msgstr "" #: ../../library/math.rst:233 msgid "" "Return *e* raised to the power *x*, minus 1. Here *e* is the base of " -"natural logarithms. For small floats *x*, the subtraction in ``exp(x) - 1``" -" can result in a `significant loss of precision " -"`_\\; the :func:`expm1` " -"function provides a way to compute this quantity to full precision::" +"natural logarithms. For small floats *x*, the subtraction in ``exp(x) - 1`` " +"can result in a `significant loss of precision `_\\; the :func:`expm1` function provides a way to " +"compute this quantity to full precision::" msgstr "" #: ../../library/math.rst:250 @@ -356,8 +357,8 @@ msgid "" "Return ``atan(y / x)``, in radians. The result is between ``-pi`` and " "``pi``. The vector in the plane from the origin to point ``(x, y)`` makes " "this angle with the positive X axis. The point of :func:`atan2` is that the " -"signs of both inputs are known to it, so it can compute the correct quadrant" -" for the angle. For example, ``atan(1)`` and ``atan2(1, 1)`` are both " +"signs of both inputs are known to it, so it can compute the correct quadrant " +"for the angle. For example, ``atan(1)`` and ``atan2(1, 1)`` are both " "``pi/4``, but ``atan2(-1, -1)`` is ``-3*pi/4``." msgstr "" @@ -439,8 +440,8 @@ msgstr "" #: ../../library/math.rst:407 msgid "" "The :func:`erf` function can be used to compute traditional statistical " -"functions such as the `cumulative standard normal distribution " -"`_::" +"functions such as the `cumulative standard normal distribution `_::" msgstr "" #: ../../library/math.rst:420 @@ -448,8 +449,8 @@ msgid "" "Return the complementary error function at *x*. The `complementary error " "function `_ is defined as " "``1.0 - erf(x)``. It is used for large values of *x* where a subtraction " -"from one would cause a `loss of significance " -"`_\\." +"from one would cause a `loss of significance `_\\." msgstr "" #: ../../library/math.rst:431 @@ -479,16 +480,16 @@ msgstr "" #: ../../library/math.rst:460 msgid "" "The mathematical constant *τ* = 6.283185..., to available precision. Tau is " -"a circle constant equal to 2\\ *π*, the ratio of a circle's circumference to" -" its radius. To learn more about Tau, check out Vi Hart's video `Pi is " +"a circle constant equal to 2\\ *π*, the ratio of a circle's circumference to " +"its radius. To learn more about Tau, check out Vi Hart's video `Pi is " "(still) Wrong `_, and start " "celebrating `Tau day `_ by eating twice as much pie!" msgstr "" #: ../../library/math.rst:471 msgid "" -"A floating-point positive infinity. (For negative infinity, use " -"``-math.inf``.) Equivalent to the output of ``float('inf')``." +"A floating-point positive infinity. (For negative infinity, use ``-math." +"inf``.) Equivalent to the output of ``float('inf')``." msgstr "" #: ../../library/math.rst:479 @@ -501,9 +502,9 @@ msgstr "" msgid "" "The :mod:`math` module consists mostly of thin wrappers around the platform " "C math library functions. Behavior in exceptional cases follows Annex F of " -"the C99 standard where appropriate. The current implementation will raise " -":exc:`ValueError` for invalid operations like ``sqrt(-1.0)`` or ``log(0.0)``" -" (where C99 Annex F recommends signaling invalid operation or divide-by-" +"the C99 standard where appropriate. The current implementation will raise :" +"exc:`ValueError` for invalid operations like ``sqrt(-1.0)`` or ``log(0.0)`` " +"(where C99 Annex F recommends signaling invalid operation or divide-by-" "zero), and :exc:`OverflowError` for results that overflow (for example, " "``exp(1000.0)``). A NaN will not be returned from any of the functions " "above unless one or more of the input arguments was a NaN; in that case, " diff --git a/library/mimetypes.po b/library/mimetypes.po index 49ccb2f84..159da0ed6 100644 --- a/library/mimetypes.po +++ b/library/mimetypes.po @@ -1,20 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2019 +# Philippe Gonzaga , 2020 +# Vinícius Muniz de Melo , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-26 11:44+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinícius Muniz de Melo , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +27,7 @@ msgstr "" #: ../../library/mimetypes.rst:2 msgid ":mod:`mimetypes` --- Map filenames to MIME types" -msgstr "" +msgstr ":mod:`mimetypes` --- Mapeia nomes de arquivos para tipos MIME" #: ../../library/mimetypes.rst:9 msgid "**Source code:** :source:`Lib/mimetypes.py`" @@ -36,26 +40,36 @@ msgid "" "filename to MIME type and from MIME type to filename extension; encodings " "are not supported for the latter conversion." msgstr "" +"O módulo :mod:`mimetypes` converte entre um nome de arquivo ou URL e o tipo " +"MIME associado à extensão do arquivo. As conversões são fornecidas do nome " +"do arquivo para o tipo MIME e da extensão do tipo MIME para o nome do " +"arquivo; codificações não são suportadas para a última conversão." #: ../../library/mimetypes.rst:20 msgid "" "The module provides one class and a number of convenience functions. The " -"functions are the normal interface to this module, but some applications may" -" be interested in the class as well." +"functions are the normal interface to this module, but some applications may " +"be interested in the class as well." msgstr "" +"O módulo fornece uma classe e várias funções convenientes. As funções são a " +"interface normal para este módulo, mas algumas aplicações também podem estar " +"interessadas na classe." #: ../../library/mimetypes.rst:24 msgid "" -"The functions described below provide the primary interface for this module." -" If the module has not been initialized, they will call :func:`init` if " -"they rely on the information :func:`init` sets up." +"The functions described below provide the primary interface for this " +"module. If the module has not been initialized, they will call :func:`init` " +"if they rely on the information :func:`init` sets up." msgstr "" +"As funções descritas abaixo fornecem a interface principal para este " +"módulo. Se o módulo não foi inicializado, eles chamarão :func:`init` se " +"confiarem nas informações :func:`init` configuradas." #: ../../library/mimetypes.rst:33 msgid "" "Guess the type of a file based on its filename or URL, given by *url*. The " -"return value is a tuple ``(type, encoding)`` where *type* is ``None`` if the" -" type can't be guessed (missing or unknown suffix) or a string of the form " +"return value is a tuple ``(type, encoding)`` where *type* is ``None`` if the " +"type can't be guessed (missing or unknown suffix) or a string of the form " "``'type/subtype'``, usable for a MIME :mailheader:`content-type` header." msgstr "" @@ -63,44 +77,65 @@ msgstr "" msgid "" "*encoding* is ``None`` for no encoding or the name of the program used to " "encode (e.g. :program:`compress` or :program:`gzip`). The encoding is " -"suitable for use as a :mailheader:`Content-Encoding` header, **not** as a " -":mailheader:`Content-Transfer-Encoding` header. The mappings are table " +"suitable for use as a :mailheader:`Content-Encoding` header, **not** as a :" +"mailheader:`Content-Transfer-Encoding` header. The mappings are table " "driven. Encoding suffixes are case sensitive; type suffixes are first tried " "case sensitively, then case insensitively." msgstr "" +"*encoding* é ``None`` para nenhuma codificação ou o nome do programa usado " +"para codificar (por exemplo :program:`compress` ou :program:`gzip`). A " +"codificação é adequada para uso como cabeçalho :mailheader:`Content-" +"Encoding` , **não** como cabeçalho :mailheader:`Content-Transfer-Encoding`. " +"Os mapeamentos são orientados por tabela. Os sufixos de codificação " +"diferenciam maiúsculas de minúsculas; os sufixos de tipo são testados " +"primeiro com maiúsculas e minúsculas e depois sem maiúsculas." #: ../../library/mimetypes.rst:45 msgid "" "The optional *strict* argument is a flag specifying whether the list of " -"known MIME types is limited to only the official types `registered with IANA" -" `_. When " +"known MIME types is limited to only the official types `registered with IANA " +"`_. When " "*strict* is ``True`` (the default), only the IANA types are supported; when " "*strict* is ``False``, some additional non-standard but commonly used MIME " "types are also recognized." msgstr "" +"O argumento opcional *strict* é um sinalizados que especifica se alista de " +"tipos MIME conhecidos é limitada apenas aos tipos oficiais `registrados na " +"IANA `_. " +"Quando *strict* é ``True`` (o padrão), apenas os tipos IANA são suportados; " +"quando *strict* é ``False``, alguns tipos MIME adicionais não padronizados, " +"mas geralmente usados, também são reconhecidos." #: ../../library/mimetypes.rst:55 msgid "" -"Guess the extensions for a file based on its MIME type, given by *type*. The" -" return value is a list of strings giving all possible filename extensions, " +"Guess the extensions for a file based on its MIME type, given by *type*. The " +"return value is a list of strings giving all possible filename extensions, " "including the leading dot (``'.'``). The extensions are not guaranteed to " -"have been associated with any particular data stream, but would be mapped to" -" the MIME type *type* by :func:`guess_type`." +"have been associated with any particular data stream, but would be mapped to " +"the MIME type *type* by :func:`guess_type`." msgstr "" +"Adivinhe as extensões para um arquivo com base em seu tipo MIME, fornecido " +"pelo *tipo*. O valor de retorno é uma lista de cadeias que fornecem todas as " +"extensões possíveis de nome de arquivo, incluindo o ponto (``'.'``). Não é " +"garantido que as extensões tenham sido associadas a qualquer fluxo de dados " +"específico, mas seriam mapeadas para o tipo MIME *tipo* por :func:" +"`guess_type`." #: ../../library/mimetypes.rst:61 ../../library/mimetypes.rst:73 msgid "" -"The optional *strict* argument has the same meaning as with the " -":func:`guess_type` function." +"The optional *strict* argument has the same meaning as with the :func:" +"`guess_type` function." msgstr "" +"O argumento opcional *strict* tem o mesmo significado que com a função :func:" +"`guess_type`." #: ../../library/mimetypes.rst:66 msgid "" "Guess the extension for a file based on its MIME type, given by *type*. The " "return value is a string giving a filename extension, including the leading " -"dot (``'.'``). The extension is not guaranteed to have been associated with" -" any particular data stream, but would be mapped to the MIME type *type* by " -":func:`guess_type`. If no extension can be guessed for *type*, ``None`` is " +"dot (``'.'``). The extension is not guaranteed to have been associated with " +"any particular data stream, but would be mapped to the MIME type *type* by :" +"func:`guess_type`. If no extension can be guessed for *type*, ``None`` is " "returned." msgstr "" @@ -113,11 +148,11 @@ msgstr "" #: ../../library/mimetypes.rst:81 msgid "" "Initialize the internal data structures. If given, *files* must be a " -"sequence of file names which should be used to augment the default type map." -" If omitted, the file names to use are taken from :const:`knownfiles`; on " -"Windows, the current registry settings are loaded. Each file named in " -"*files* or :const:`knownfiles` takes precedence over those named before it." -" Calling :func:`init` repeatedly is allowed." +"sequence of file names which should be used to augment the default type " +"map. If omitted, the file names to use are taken from :const:`knownfiles`; " +"on Windows, the current registry settings are loaded. Each file named in " +"*files* or :const:`knownfiles` takes precedence over those named before it. " +"Calling :func:`init` repeatedly is allowed." msgstr "" #: ../../library/mimetypes.rst:88 @@ -177,8 +212,8 @@ msgstr "" msgid "" "Dictionary mapping suffixes to suffixes. This is used to allow recognition " "of encoded files for which the encoding and the type are indicated by the " -"same extension. For example, the :file:`.tgz` extension is mapped to " -":file:`.tar.gz` to allow the encoding and type to be recognized separately." +"same extension. For example, the :file:`.tgz` extension is mapped to :file:" +"`.tar.gz` to allow the encoding and type to be recognized separately." msgstr "" #: ../../library/mimetypes.rst:142 @@ -212,13 +247,12 @@ msgstr "" #: ../../library/mimetypes.rst:182 msgid "" -"This class represents a MIME-types database. By default, it provides access" -" to the same database as the rest of this module. The initial database is a " +"This class represents a MIME-types database. By default, it provides access " +"to the same database as the rest of this module. The initial database is a " "copy of that provided by the module, and may be extended by loading " -"additional :file:`mime.types`\\ -style files into the database using the " -":meth:`read` or :meth:`readfp` methods. The mapping dictionaries may also " -"be cleared before loading additional data if the default data is not " -"desired." +"additional :file:`mime.types`\\ -style files into the database using the :" +"meth:`read` or :meth:`readfp` methods. The mapping dictionaries may also be " +"cleared before loading additional data if the default data is not desired." msgstr "" #: ../../library/mimetypes.rst:189 @@ -231,16 +265,15 @@ msgstr "" msgid "" "Dictionary mapping suffixes to suffixes. This is used to allow recognition " "of encoded files for which the encoding and the type are indicated by the " -"same extension. For example, the :file:`.tgz` extension is mapped to " -":file:`.tar.gz` to allow the encoding and type to be recognized separately." -" This is initially a copy of the global :data:`suffix_map` defined in the " -"module." +"same extension. For example, the :file:`.tgz` extension is mapped to :file:" +"`.tar.gz` to allow the encoding and type to be recognized separately. This " +"is initially a copy of the global :data:`suffix_map` defined in the module." msgstr "" #: ../../library/mimetypes.rst:204 msgid "" -"Dictionary mapping filename extensions to encoding types. This is initially" -" a copy of the global :data:`encodings_map` defined in the module." +"Dictionary mapping filename extensions to encoding types. This is initially " +"a copy of the global :data:`encodings_map` defined in the module." msgstr "" #: ../../library/mimetypes.rst:210 @@ -255,8 +288,8 @@ msgstr "" msgid "" "Tuple containing two dictionaries, mapping MIME types to a list of filename " "extensions: the first dictionary is for the non-standards types and the " -"second one is for the standard types. They are initialized by " -":data:`common_types` and :data:`types_map`." +"second one is for the standard types. They are initialized by :data:" +"`common_types` and :data:`types_map`." msgstr "" #: ../../library/mimetypes.rst:226 @@ -279,8 +312,8 @@ msgstr "" #: ../../library/mimetypes.rst:244 msgid "" -"Load MIME information from a file named *filename*. This uses " -":meth:`readfp` to parse the file." +"Load MIME information from a file named *filename*. This uses :meth:" +"`readfp` to parse the file." msgstr "" #: ../../library/mimetypes.rst:247 @@ -294,6 +327,8 @@ msgid "" "Load MIME type information from an open file *fp*. The file must have the " "format of the standard :file:`mime.types` files." msgstr "" +"Carrega informações do tipo MIME de um arquivo aberto *fp*. O arquivo " +"precisa estar no formato padrão dos arquivos :file:`mime.types`." #: ../../library/mimetypes.rst:256 ../../library/mimetypes.rst:266 msgid "" @@ -303,8 +338,8 @@ msgstr "" #: ../../library/mimetypes.rst:262 msgid "Load MIME type information from the Windows registry." -msgstr "" +msgstr "Carrega informações do tipo MIME a partir do registro do Windows." #: ../../library/mimetypes.rst:265 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." diff --git a/library/misc.po b/library/misc.po index 0e5d70674..2dd514762 100644 --- a/library/misc.po +++ b/library/misc.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/mm.po b/library/mm.po index f352fe2dd..f11d7f235 100644 --- a/library/mm.po +++ b/library/mm.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/mmap.po b/library/mmap.po index 489ed7a68..10eb0fa26 100644 --- a/library/mmap.po +++ b/library/mmap.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,19 +24,27 @@ msgstr "" #: ../../library/mmap.rst:2 msgid ":mod:`mmap` --- Memory-mapped file support" -msgstr "" +msgstr ":mod:`mmap` --- Suporte a arquivos com memória mapeada" #: ../../library/mmap.rst:9 msgid "" -"Memory-mapped file objects behave like both :class:`bytearray` and like " -":term:`file objects `. You can use mmap objects in most places" -" where :class:`bytearray` are expected; for example, you can use the " -":mod:`re` module to search through a memory-mapped file. You can also " -"change a single byte by doing ``obj[index] = 97``, or change a subsequence " -"by assigning to a slice: ``obj[i1:i2] = b'...'``. You can also read and " -"write data starting at the current file position, and :meth:`seek` through " -"the file to different positions." -msgstr "" +"Memory-mapped file objects behave like both :class:`bytearray` and like :" +"term:`file objects `. You can use mmap objects in most places " +"where :class:`bytearray` are expected; for example, you can use the :mod:" +"`re` module to search through a memory-mapped file. You can also change a " +"single byte by doing ``obj[index] = 97``, or change a subsequence by " +"assigning to a slice: ``obj[i1:i2] = b'...'``. You can also read and write " +"data starting at the current file position, and :meth:`seek` through the " +"file to different positions." +msgstr "" +"Objetos de arquivo mapeados na memória se comportam como :class:`bytearray` " +"e como :term:`objetos de arquivo `. Você pode usar objetos mmap " +"na maioria dos lugares onde :class:`bytearray` é esperado; por exemplo, você " +"pode usar o módulo :mod:`re` para pesquisar um arquivo mapeado na memória. " +"Você também pode alterar um único byte executando ``obj[index] = 97`` ou " +"alterar uma subsequência atribuindo a uma fatia: ``obj[i1:i2] = b'...'``. " +"Você também pode ler e gravar dados começando na posição atual do arquivo e :" +"meth:`seek` através do arquivo para diferentes posições." #: ../../library/mmap.rst:17 msgid "" @@ -40,86 +53,126 @@ msgid "" "a file descriptor for a file opened for update. If you wish to map an " "existing Python file object, use its :meth:`fileno` method to obtain the " "correct value for the *fileno* parameter. Otherwise, you can open the file " -"using the :func:`os.open` function, which returns a file descriptor directly" -" (the file still needs to be closed when done)." -msgstr "" +"using the :func:`os.open` function, which returns a file descriptor directly " +"(the file still needs to be closed when done)." +msgstr "" +"Um arquivo mapeado na memória é criado pelo construtor :class:`~mmap.mmap`, " +"que é diferente no Unix e no Windows. Nos dois casos, você deve fornecer um " +"descritor de arquivo para um arquivo aberto para atualização. Se você deseja " +"mapear um objeto de arquivo Python existente, use o método :meth:`fileno` " +"para obter o valor correto para o parâmetro *fileno*. Caso contrário, você " +"pode abrir o arquivo usando a função :func:`os.open`, que retorna um " +"descritor de arquivo diretamente (o arquivo ainda precisa ser fechado quando " +"terminar)." #: ../../library/mmap.rst:26 msgid "" "If you want to create a memory-mapping for a writable, buffered file, you " -"should :func:`~io.IOBase.flush` the file first. This is necessary to ensure" -" that local modifications to the buffers are actually available to the " +"should :func:`~io.IOBase.flush` the file first. This is necessary to ensure " +"that local modifications to the buffers are actually available to the " "mapping." msgstr "" +"Se você deseja criar um mapeamento de memória para um arquivo gravável e " +"armazenado em buffer, deve usar :func:`~io.IOBase.flush` no arquivo " +"primeiro. Isso é necessário para garantir que as modificações locais nos " +"buffers estejam realmente disponíveis para o mapeamento." #: ../../library/mmap.rst:31 msgid "" "For both the Unix and Windows versions of the constructor, *access* may be " "specified as an optional keyword parameter. *access* accepts one of four " -"values: :const:`ACCESS_READ`, :const:`ACCESS_WRITE`, or :const:`ACCESS_COPY`" -" to specify read-only, write-through or copy-on-write memory respectively, " -"or :const:`ACCESS_DEFAULT` to defer to *prot*. *access* can be used on both" -" Unix and Windows. If *access* is not specified, Windows mmap returns a " -"write-through mapping. The initial memory values for all three access types" -" are taken from the specified file. Assignment to an :const:`ACCESS_READ` " -"memory map raises a :exc:`TypeError` exception. Assignment to an " -":const:`ACCESS_WRITE` memory map affects both memory and the underlying " -"file. Assignment to an :const:`ACCESS_COPY` memory map affects memory but " -"does not update the underlying file." -msgstr "" +"values: :const:`ACCESS_READ`, :const:`ACCESS_WRITE`, or :const:`ACCESS_COPY` " +"to specify read-only, write-through or copy-on-write memory respectively, " +"or :const:`ACCESS_DEFAULT` to defer to *prot*. *access* can be used on both " +"Unix and Windows. If *access* is not specified, Windows mmap returns a " +"write-through mapping. The initial memory values for all three access types " +"are taken from the specified file. Assignment to an :const:`ACCESS_READ` " +"memory map raises a :exc:`TypeError` exception. Assignment to an :const:" +"`ACCESS_WRITE` memory map affects both memory and the underlying file. " +"Assignment to an :const:`ACCESS_COPY` memory map affects memory but does not " +"update the underlying file." +msgstr "" +"Para as versões Unix e Windows do construtor, *access* pode ser especificado " +"como um parâmetro opcional de palavra-chave. *access* aceita um dos quatro " +"valores: :const:`ACCESS_READ`, :const:`ACCESS_WRITE` ou :const:`ACCESS_COPY` " +"para especificar memória somente leitura, gravação ou cópia na gravação, " +"respectivamente :const:`ACCESS_DEFAULT` para adiar para *prot*. *access* " +"pode ser usado no Unix e no Windows. Se *access* não for especificado, o " +"mmap do Windows retornará um mapeamento de gravação. Os valores iniciais da " +"memória para todos os três tipos de acesso são obtidos do arquivo " +"especificado. A atribuição a um mapa de memória :const:`ACCESS_READ` gera " +"uma exceção :exc:`TypeError`. A atribuição a um mapa de memória :const:" +"`ACCESS_WRITE` afeta a memória e o arquivo subjacente. A atribuição a um " +"mapa de memória :const:`ACCESS_COPY` afeta a memória, mas não atualiza o " +"arquivo subjacente." #: ../../library/mmap.rst:44 msgid "Added :const:`ACCESS_DEFAULT` constant." -msgstr "" +msgstr "Adicionada a constante :const:`ACCESS_DEFAULT`." #: ../../library/mmap.rst:47 msgid "" "To map anonymous memory, -1 should be passed as the fileno along with the " "length." msgstr "" +"Para mapear a memória anônima, -1 deve ser passado como o fileno junto com o " +"comprimento." #: ../../library/mmap.rst:51 msgid "" "**(Windows version)** Maps *length* bytes from the file specified by the " -"file handle *fileno*, and creates a mmap object. If *length* is larger than" -" the current size of the file, the file is extended to contain *length* " +"file handle *fileno*, and creates a mmap object. If *length* is larger than " +"the current size of the file, the file is extended to contain *length* " "bytes. If *length* is ``0``, the maximum length of the map is the current " "size of the file, except that if the file is empty Windows raises an " "exception (you cannot create an empty mapping on Windows)." msgstr "" +"**(Versão Windows)** Mapeia *length* bytes do arquivo especificado pelo " +"identificador de arquivo *fileno* e cria um objeto mmap. Se *length* for " +"maior que o tamanho atual do arquivo, o arquivo será estendido para conter " +"*length* bytes. Se *length* for ``0``, o tamanho máximo do mapa será o " +"tamanho atual do arquivo, exceto que, se o arquivo estiver vazio, o Windows " +"gerará uma exceção (você não poderá criar um mapeamento vazio no Windows)." #: ../../library/mmap.rst:58 msgid "" "*tagname*, if specified and not ``None``, is a string giving a tag name for " -"the mapping. Windows allows you to have many different mappings against the" -" same file. If you specify the name of an existing tag, that tag is opened," -" otherwise a new tag of this name is created. If this parameter is omitted " -"or ``None``, the mapping is created without a name. Avoiding the use of the" -" tag parameter will assist in keeping your code portable between Unix and " +"the mapping. Windows allows you to have many different mappings against the " +"same file. If you specify the name of an existing tag, that tag is opened, " +"otherwise a new tag of this name is created. If this parameter is omitted " +"or ``None``, the mapping is created without a name. Avoiding the use of the " +"tag parameter will assist in keeping your code portable between Unix and " "Windows." msgstr "" +"*tagname*, se especificado e não ``None``, é uma string que fornece um nome " +"de tag para o mapeamento. O Windows permite que você tenha muitos " +"mapeamentos diferentes no mesmo arquivo. Se você especificar o nome de uma " +"marca existente, essa marca será aberta; caso contrário, uma nova marca com " +"esse nome será criada. Se este parâmetro for omitido ou ``None'', o " +"mapeamento será criado sem um nome. Evitar o uso do parâmetro tag ajudará a " +"manter seu código portátil entre o Unix e o Windows." #: ../../library/mmap.rst:66 msgid "" "*offset* may be specified as a non-negative integer offset. mmap references " "will be relative to the offset from the beginning of the file. *offset* " -"defaults to 0. *offset* must be a multiple of the " -":const:`ALLOCATIONGRANULARITY`." +"defaults to 0. *offset* must be a multiple of the :const:" +"`ALLOCATIONGRANULARITY`." msgstr "" #: ../../library/mmap.rst:74 msgid "" "**(Unix version)** Maps *length* bytes from the file specified by the file " "descriptor *fileno*, and returns a mmap object. If *length* is ``0``, the " -"maximum length of the map will be the current size of the file when " -":class:`~mmap.mmap` is called." +"maximum length of the map will be the current size of the file when :class:" +"`~mmap.mmap` is called." msgstr "" #: ../../library/mmap.rst:79 msgid "" "*flags* specifies the nature of the mapping. :const:`MAP_PRIVATE` creates a " -"private copy-on-write mapping, so changes to the contents of the mmap object" -" will be private to this process, and :const:`MAP_SHARED` creates a mapping " +"private copy-on-write mapping, so changes to the contents of the mmap object " +"will be private to this process, and :const:`MAP_SHARED` creates a mapping " "that's shared with all other processes mapping the same areas of the file. " "The default value is :const:`MAP_SHARED`." msgstr "" @@ -128,8 +181,8 @@ msgstr "" msgid "" "*prot*, if specified, gives the desired memory protection; the two most " "useful values are :const:`PROT_READ` and :const:`PROT_WRITE`, to specify " -"that the pages may be read or written. *prot* defaults to :const:`PROT_READ" -" \\| PROT_WRITE`." +"that the pages may be read or written. *prot* defaults to :const:`PROT_READ " +"\\| PROT_WRITE`." msgstr "" #: ../../library/mmap.rst:90 @@ -144,8 +197,8 @@ msgstr "" msgid "" "*offset* may be specified as a non-negative integer offset. mmap references " "will be relative to the offset from the beginning of the file. *offset* " -"defaults to 0. *offset* must be a multiple of :const:`ALLOCATIONGRANULARITY`" -" which is equal to :const:`PAGESIZE` on Unix systems." +"defaults to 0. *offset* must be a multiple of :const:`ALLOCATIONGRANULARITY` " +"which is equal to :const:`PAGESIZE` on Unix systems." msgstr "" #: ../../library/mmap.rst:100 @@ -161,8 +214,8 @@ msgstr "" #: ../../library/mmap.rst:129 msgid "" -":class:`~mmap.mmap` can also be used as a context manager in a " -":keyword:`with` statement::" +":class:`~mmap.mmap` can also be used as a context manager in a :keyword:" +"`with` statement::" msgstr "" #: ../../library/mmap.rst:137 @@ -181,8 +234,8 @@ msgstr "" #: ../../library/mmap.rst:163 msgid "" -"Closes the mmap. Subsequent calls to other methods of the object will result" -" in a ValueError exception being raised. This will not close the open file." +"Closes the mmap. Subsequent calls to other methods of the object will result " +"in a ValueError exception being raised. This will not close the open file." msgstr "" #: ../../library/mmap.rst:170 @@ -191,8 +244,8 @@ msgstr "" #: ../../library/mmap.rst:177 msgid "" -"Returns the lowest index in the object where the subsequence *sub* is found," -" such that *sub* is contained in the range [*start*, *end*]. Optional " +"Returns the lowest index in the object where the subsequence *sub* is found, " +"such that *sub* is contained in the range [*start*, *end*]. Optional " "arguments *start* and *end* are interpreted as in slice notation. Returns " "``-1`` on failure." msgstr "" @@ -206,10 +259,10 @@ msgstr "" msgid "" "Flushes changes made to the in-memory copy of a file back to disk. Without " "use of this call there is no guarantee that changes are written back before " -"the object is destroyed. If *offset* and *size* are specified, only changes" -" to the given range of bytes will be flushed to disk; otherwise, the whole " -"extent of the mapping is flushed. *offset* must be a multiple of the " -":const:`PAGESIZE` or :const:`ALLOCATIONGRANULARITY`." +"the object is destroyed. If *offset* and *size* are specified, only changes " +"to the given range of bytes will be flushed to disk; otherwise, the whole " +"extent of the mapping is flushed. *offset* must be a multiple of the :const:" +"`PAGESIZE` or :const:`ALLOCATIONGRANULARITY`." msgstr "" #: ../../library/mmap.rst:195 @@ -233,9 +286,9 @@ msgstr "" #: ../../library/mmap.rst:211 msgid "" -"Return a :class:`bytes` containing up to *n* bytes starting from the current" -" file position. If the argument is omitted, ``None`` or negative, return all" -" bytes from the current file position to the end of the mapping. The file " +"Return a :class:`bytes` containing up to *n* bytes starting from the current " +"file position. If the argument is omitted, ``None`` or negative, return all " +"bytes from the current file position to the end of the mapping. The file " "position is updated to point after the bytes that were returned." msgstr "" @@ -272,10 +325,10 @@ msgstr "" #: ../../library/mmap.rst:252 msgid "" -"Set the file's current position. *whence* argument is optional and defaults" -" to ``os.SEEK_SET`` or ``0`` (absolute file positioning); other values are " -"``os.SEEK_CUR`` or ``1`` (seek relative to the current position) and " -"``os.SEEK_END`` or ``2`` (seek relative to the file's end)." +"Set the file's current position. *whence* argument is optional and defaults " +"to ``os.SEEK_SET`` or ``0`` (absolute file positioning); other values are " +"``os.SEEK_CUR`` or ``1`` (seek relative to the current position) and ``os." +"SEEK_END`` or ``2`` (seek relative to the file's end)." msgstr "" #: ../../library/mmap.rst:260 @@ -294,8 +347,8 @@ msgid "" "pointer and return the number of bytes written (never less than " "``len(bytes)``, since if the write fails, a :exc:`ValueError` will be " "raised). The file position is updated to point after the bytes that were " -"written. If the mmap was created with :const:`ACCESS_READ`, then writing to" -" it will raise a :exc:`TypeError` exception." +"written. If the mmap was created with :const:`ACCESS_READ`, then writing to " +"it will raise a :exc:`TypeError` exception." msgstr "" #: ../../library/mmap.rst:281 diff --git a/library/modulefinder.po b/library/modulefinder.po index 48071e93c..7e3ed0261 100644 --- a/library/modulefinder.po +++ b/library/modulefinder.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Rodrigo Vargas , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" "Last-Translator: Rodrigo Vargas , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -67,12 +68,12 @@ msgid "" "directories to search for modules; if not specified, ``sys.path`` is used. " "*debug* sets the debugging level; higher values make the class print " "debugging messages about what it's doing. *excludes* is a list of module " -"names to exclude from the analysis. *replace_paths* is a list of ``(oldpath," -" newpath)`` tuples that will be replaced in module paths." +"names to exclude from the analysis. *replace_paths* is a list of ``(oldpath, " +"newpath)`` tuples that will be replaced in module paths." msgstr "" "Esta classe fornece os métodos: meth: `run_script` e: meth:` report` para " -"determinar o conjunto de módulos importados por um script. * path * pode ser" -" uma lista de diretórios para procurar por módulos; se não especificado, `` " +"determinar o conjunto de módulos importados por um script. * path * pode ser " +"uma lista de diretórios para procurar por módulos; se não especificado, `` " "sys.path`` é usado. * debug * define o nível de depuração; valores mais " "altos fazem a classe imprimir mensagens de depuração sobre o que está " "fazendo. * excludes * é uma lista de nomes de módulos a serem excluídos da " diff --git a/library/modules.po b/library/modules.po index f04a88c4f..c4291b127 100644 --- a/library/modules.po +++ b/library/modules.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Peterson Segatto Müller , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" "Last-Translator: Peterson Segatto Müller , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/msilib.po b/library/msilib.po index 1bdd85242..511d87bdb 100644 --- a/library/msilib.po +++ b/library/msilib.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Risaffi , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" "Last-Translator: Risaffi , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,9 +34,9 @@ msgstr "**Código Fonte:** :source:`Lib/msilib/__init__.py`" #: ../../library/msilib.rst:17 msgid "" "The :mod:`msilib` supports the creation of Microsoft Installer (``.msi``) " -"files. Because these files often contain an embedded \"cabinet\" file " -"(``.cab``), it also exposes an API to create CAB files. Support for reading " -"``.cab`` files is currently not implemented; read support for the ``.msi`` " +"files. Because these files often contain an embedded \"cabinet\" file (``." +"cab``), it also exposes an API to create CAB files. Support for reading ``." +"cab`` files is currently not implemented; read support for the ``.msi`` " "database is possible." msgstr "" @@ -124,8 +125,8 @@ msgstr "" #: ../../library/msilib.rst:87 msgid "" -"The *table* argument must be one of the predefined tables in the MSI schema," -" e.g. ``'Feature'``, ``'File'``, ``'Component'``, ``'Dialog'``, " +"The *table* argument must be one of the predefined tables in the MSI schema, " +"e.g. ``'Feature'``, ``'File'``, ``'Component'``, ``'Dialog'``, " "``'Control'``, etc." msgstr "" @@ -142,15 +143,15 @@ msgstr "" #: ../../library/msilib.rst:100 msgid "" -"Represents entries in the Binary table; inserting such an object using " -":func:`add_data` reads the file named *filename* into the table." +"Represents entries in the Binary table; inserting such an object using :func:" +"`add_data` reads the file named *filename* into the table." msgstr "" #: ../../library/msilib.rst:106 msgid "" "Add all table content from *module* to *database*. *module* must contain an " -"attribute *tables* listing all tables for which content should be added, and" -" one attribute per table that has the actual content." +"attribute *tables* listing all tables for which content should be added, and " +"one attribute per table that has the actual content." msgstr "" #: ../../library/msilib.rst:110 @@ -172,9 +173,9 @@ msgstr "" #: ../../library/msilib.rst:127 msgid "" "`FCICreate `_ " -"`UuidCreate `_ `UuidToString " -"`_" +"`UuidCreate `_ `UuidToString `_" msgstr "" #: ../../library/msilib.rst:134 @@ -183,21 +184,20 @@ msgstr "Objetos de banco de dados." #: ../../library/msilib.rst:139 msgid "" -"Return a view object, by calling :c:func:`MSIDatabaseOpenView`. *sql* is the" -" SQL statement to execute." +"Return a view object, by calling :c:func:`MSIDatabaseOpenView`. *sql* is the " +"SQL statement to execute." msgstr "" #: ../../library/msilib.rst:145 msgid "" -"Commit the changes pending in the current transaction, by calling " -":c:func:`MSIDatabaseCommit`." +"Commit the changes pending in the current transaction, by calling :c:func:" +"`MSIDatabaseCommit`." msgstr "" #: ../../library/msilib.rst:151 msgid "" -"Return a new summary information object, by calling " -":c:func:`MsiGetSummaryInformation`. *count* is the maximum number of " -"updated values." +"Return a new summary information object, by calling :c:func:" +"`MsiGetSummaryInformation`. *count* is the maximum number of updated values." msgstr "" #: ../../library/msilib.rst:157 @@ -206,12 +206,12 @@ msgstr "" #: ../../library/msilib.rst:163 msgid "" -"`MSIDatabaseOpenView `_ `MSIDatabaseCommit " -"`_ " -"`MSIGetSummaryInformation `_ `MsiCloseHandle " -"`_" +"`MSIDatabaseOpenView `_ `MSIDatabaseCommit `_ `MSIGetSummaryInformation " +"`_ " +"`MsiCloseHandle `_" msgstr "" #: ../../library/msilib.rst:171 @@ -227,9 +227,9 @@ msgstr "" #: ../../library/msilib.rst:183 msgid "" -"Return a record describing the columns of the view, through calling " -":c:func:`MsiViewGetColumnInfo`. *kind* can be either ``MSICOLINFO_NAMES`` or" -" ``MSICOLINFO_TYPES``." +"Return a record describing the columns of the view, through calling :c:func:" +"`MsiViewGetColumnInfo`. *kind* can be either ``MSICOLINFO_NAMES`` or " +"``MSICOLINFO_TYPES``." msgstr "" #: ../../library/msilib.rst:190 @@ -257,14 +257,13 @@ msgstr "" #: ../../library/msilib.rst:212 msgid "" -"`MsiViewExecute `_ `MSIViewGetColumnInfo " -"`_ " -"`MsiViewFetch `_ `MsiViewModify " +"`MsiViewExecute `_ `MSIViewGetColumnInfo `_ `MsiViewFetch `_ `MsiViewModify " "`_ " -"`MsiViewClose `_" +"`MsiViewClose `_" msgstr "" #: ../../library/msilib.rst:221 @@ -273,43 +272,42 @@ msgstr "" #: ../../library/msilib.rst:226 msgid "" -"Return a property of the summary, through " -":c:func:`MsiSummaryInfoGetProperty`. *field* is the name of the property, " -"and can be one of the constants ``PID_CODEPAGE``, ``PID_TITLE``, " -"``PID_SUBJECT``, ``PID_AUTHOR``, ``PID_KEYWORDS``, ``PID_COMMENTS``, " -"``PID_TEMPLATE``, ``PID_LASTAUTHOR``, ``PID_REVNUMBER``, " -"``PID_LASTPRINTED``, ``PID_CREATE_DTM``, ``PID_LASTSAVE_DTM``, " -"``PID_PAGECOUNT``, ``PID_WORDCOUNT``, ``PID_CHARCOUNT``, ``PID_APPNAME``, or" -" ``PID_SECURITY``." +"Return a property of the summary, through :c:func:" +"`MsiSummaryInfoGetProperty`. *field* is the name of the property, and can be " +"one of the constants ``PID_CODEPAGE``, ``PID_TITLE``, ``PID_SUBJECT``, " +"``PID_AUTHOR``, ``PID_KEYWORDS``, ``PID_COMMENTS``, ``PID_TEMPLATE``, " +"``PID_LASTAUTHOR``, ``PID_REVNUMBER``, ``PID_LASTPRINTED``, " +"``PID_CREATE_DTM``, ``PID_LASTSAVE_DTM``, ``PID_PAGECOUNT``, " +"``PID_WORDCOUNT``, ``PID_CHARCOUNT``, ``PID_APPNAME``, or ``PID_SECURITY``." msgstr "" #: ../../library/msilib.rst:237 msgid "" -"Return the number of summary properties, through " -":c:func:`MsiSummaryInfoGetPropertyCount`." +"Return the number of summary properties, through :c:func:" +"`MsiSummaryInfoGetPropertyCount`." msgstr "" #: ../../library/msilib.rst:243 msgid "" -"Set a property through :c:func:`MsiSummaryInfoSetProperty`. *field* can have" -" the same values as in :meth:`GetProperty`, *value* is the new value of the " +"Set a property through :c:func:`MsiSummaryInfoSetProperty`. *field* can have " +"the same values as in :meth:`GetProperty`, *value* is the new value of the " "property. Possible value types are integer and string." msgstr "" #: ../../library/msilib.rst:250 msgid "" -"Write the modified properties to the summary information stream, using " -":c:func:`MsiSummaryInfoPersist`." +"Write the modified properties to the summary information stream, using :c:" +"func:`MsiSummaryInfoPersist`." msgstr "" #: ../../library/msilib.rst:256 msgid "" -"`MsiSummaryInfoGetProperty `_ `MsiSummaryInfoGetPropertyCount " -"`_ " -"`MsiSummaryInfoSetProperty `_ `MsiSummaryInfoPersist " -"`_" +"`MsiSummaryInfoGetProperty `_ `MsiSummaryInfoGetPropertyCount `_ " +"`MsiSummaryInfoSetProperty `_ `MsiSummaryInfoPersist `_" msgstr "" #: ../../library/msilib.rst:264 @@ -318,8 +316,8 @@ msgstr "" #: ../../library/msilib.rst:269 msgid "" -"Return the number of fields of the record, through " -":c:func:`MsiRecordGetFieldCount`." +"Return the number of fields of the record, through :c:func:" +"`MsiRecordGetFieldCount`." msgstr "" #: ../../library/msilib.rst:275 @@ -336,14 +334,14 @@ msgstr "" #: ../../library/msilib.rst:287 msgid "" -"Set *field* to *value* through :c:func:`MsiRecordSetString`. *field* must be" -" an integer; *value* a string." +"Set *field* to *value* through :c:func:`MsiRecordSetString`. *field* must be " +"an integer; *value* a string." msgstr "" #: ../../library/msilib.rst:293 msgid "" -"Set *field* to the contents of the file named *value*, through " -":c:func:`MsiRecordSetStream`. *field* must be an integer; *value* a string." +"Set *field* to the contents of the file named *value*, through :c:func:" +"`MsiRecordSetStream`. *field* must be an integer; *value* a string." msgstr "" #: ../../library/msilib.rst:299 @@ -359,13 +357,12 @@ msgstr "" #: ../../library/msilib.rst:310 msgid "" -"`MsiRecordGetFieldCount `_ `MsiRecordSetString " -"`_ " -"`MsiRecordSetStream `_ `MsiRecordSetInteger " -"`_ " -"`MsiRecordClearData `_ `MsiRecordSetString `_ `MsiRecordSetStream `_ " +"`MsiRecordSetInteger `_ `MsiRecordClearData `_" msgstr "" @@ -385,8 +382,8 @@ msgstr "" #: ../../library/msilib.rst:333 msgid "" -"The class :class:`CAB` represents a CAB file. During MSI construction, files" -" will be added simultaneously to the ``Files`` table, and to a CAB file. " +"The class :class:`CAB` represents a CAB file. During MSI construction, files " +"will be added simultaneously to the ``Files`` table, and to a CAB file. " "Then, when all files have been added, the CAB file can be written, then " "added to the MSI file." msgstr "" @@ -444,8 +441,8 @@ msgid "" "Add a file to the current component of the directory, starting a new one if " "there is no current component. By default, the file name in the source and " "the file table will be identical. If the *src* file is specified, it is " -"interpreted relative to the current directory. Optionally, a *version* and a" -" *language* can be specified for the entry in the File table." +"interpreted relative to the current directory. Optionally, a *version* and a " +"*language* can be specified for the entry in the File table." msgstr "" #: ../../library/msilib.rst:395 @@ -460,11 +457,10 @@ msgstr "" #: ../../library/msilib.rst:406 msgid "" -"`Directory Table `_ `File Table " -"`_ " -"`Component Table `_ `FeatureComponents Table " +"`Directory Table `_ `File Table `_ `Component Table `_ `FeatureComponents Table " "`_" msgstr "" @@ -474,10 +470,10 @@ msgstr "Recursos" #: ../../library/msilib.rst:419 msgid "" -"Add a new record to the ``Feature`` table, using the values *id*, " -"*parent.id*, *title*, *desc*, *display*, *level*, *directory*, and " -"*attributes*. The resulting feature object can be passed to the " -":meth:`start_component` method of :class:`Directory`." +"Add a new record to the ``Feature`` table, using the values *id*, *parent." +"id*, *title*, *desc*, *display*, *level*, *directory*, and *attributes*. The " +"resulting feature object can be passed to the :meth:`start_component` method " +"of :class:`Directory`." msgstr "" #: ../../library/msilib.rst:427 @@ -489,8 +485,8 @@ msgstr "" #: ../../library/msilib.rst:434 msgid "" -"`Feature Table `_" +"`Feature Table `_" msgstr "" #: ../../library/msilib.rst:439 @@ -500,9 +496,9 @@ msgstr "Classes GUI" #: ../../library/msilib.rst:441 msgid "" ":mod:`msilib` provides several classes that wrap the GUI tables in an MSI " -"database. However, no standard user interface is provided; use " -":mod:`~distutils.command.bdist_msi` to create MSI files with a user-" -"interface for installing Python packages." +"database. However, no standard user interface is provided; use :mod:" +"`~distutils.command.bdist_msi` to create MSI files with a user-interface for " +"installing Python packages." msgstr "" #: ../../library/msilib.rst:449 @@ -581,17 +577,15 @@ msgstr "" #: ../../library/msilib.rst:529 msgid "" -"`Dialog Table `_ `Control Table " -"`_ " -"`Control Types `_ `ControlCondition Table " +"`Dialog Table `_ `Control Table `_ `Control Types `_ `ControlCondition Table " "`_ " -"`ControlEvent Table `_ `EventMapping Table " -"`_ " -"`RadioButton Table `_" +"`ControlEvent Table `_ `EventMapping Table `_ `RadioButton Table `_" msgstr "" #: ../../library/msilib.rst:540 diff --git a/library/msvcrt.po b/library/msvcrt.po index a8a15bf45..b05f102dc 100644 --- a/library/msvcrt.po +++ b/library/msvcrt.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,7 +24,7 @@ msgstr "" #: ../../library/msvcrt.rst:2 msgid ":mod:`msvcrt` --- Useful routines from the MS VC++ runtime" -msgstr "" +msgstr ":mod:`msvcrt` --- Rotinas úteis do tempo de execução do MS VC++" #: ../../library/msvcrt.rst:12 msgid "" @@ -28,12 +33,18 @@ msgid "" "Windows implementations of their services. For example, the :mod:`getpass` " "module uses this in the implementation of the :func:`getpass` function." msgstr "" +"Essas funções fornecem acesso a alguns recursos úteis nas plataformas " +"Windows. Alguns módulos de nível superior usam essas funções para criar as " +"implementações do Windows de seus serviços. Por exemplo, o módulo :mod:" +"`getpass` usa isso na implementação da função :func:`getpass`." #: ../../library/msvcrt.rst:17 msgid "" "Further documentation on these functions can be found in the Platform API " "documentation." msgstr "" +"Mais documentação sobre essas funções pode ser encontrada na documentação da " +"API da plataforma." #: ../../library/msvcrt.rst:20 msgid "" @@ -42,16 +53,22 @@ msgid "" "use for internationalized applications. The wide char API should be used " "where ever possible." msgstr "" +"O módulo implementa as variantes normal e ampla de caracteres da API de E/S " +"do console. A API normal lida apenas com caracteres ASCII e é de uso " +"limitado para aplicativos internacionalizados. A API ampla de caracteres " +"deve ser usada sempre que possível." #: ../../library/msvcrt.rst:25 msgid "" "Operations in this module now raise :exc:`OSError` where :exc:`IOError` was " "raised." msgstr "" +"As operações neste módulo agora levantam :exc:`OSError` onde :exc:`IOError` " +"foi levantado." #: ../../library/msvcrt.rst:33 msgid "File Operations" -msgstr "" +msgstr "Operações com arquivos" #: ../../library/msvcrt.rst:38 msgid "" @@ -59,10 +76,17 @@ msgid "" "Raises :exc:`OSError` on failure. The locked region of the file extends " "from the current file position for *nbytes* bytes, and may continue beyond " "the end of the file. *mode* must be one of the :const:`LK_\\*` constants " -"listed below. Multiple regions in a file may be locked at the same time, but" -" may not overlap. Adjacent regions are not merged; they must be unlocked " +"listed below. Multiple regions in a file may be locked at the same time, but " +"may not overlap. Adjacent regions are not merged; they must be unlocked " "individually." msgstr "" +"Bloqueia parte de um arquivo com base no descritor de arquivo *fd* no tempo " +"de execução C. Levanta :exc:`OSError` em falha. A região bloqueada do " +"arquivo se estende da posição atual do arquivo para *nbytes* bytes e pode " +"continuar além do final do arquivo. *mode* deve ser uma das constantes :" +"const:`LK_\\*` listadas abaixo. Várias regiões em um arquivo podem estar " +"bloqueadas ao mesmo tempo, mas não podem se sobrepor. Regiões adjacentes não " +"são mescladas; eles devem ser desbloqueados individualmente." #: ../../library/msvcrt.rst:49 msgid "" @@ -70,94 +94,133 @@ msgid "" "immediately tries again after 1 second. If, after 10 attempts, the bytes " "cannot be locked, :exc:`OSError` is raised." msgstr "" +"Bloqueia os bytes especificados. Se os bytes não puderem ser bloqueados, o " +"programa tentará imediatamente novamente após 1 segundo. Se, após 10 " +"tentativas, os bytes não puderem ser bloqueados, :exc:`OSError` será " +"levantado." #: ../../library/msvcrt.rst:57 msgid "" "Locks the specified bytes. If the bytes cannot be locked, :exc:`OSError` is " "raised." msgstr "" +"Bloqueia os bytes especificados. Se os bytes não puderem ser bloqueados, :" +"exc:`OSError` é levantado." #: ../../library/msvcrt.rst:63 msgid "Unlocks the specified bytes, which must have been previously locked." msgstr "" +"Desbloqueia os bytes especificados, que devem ter sido bloqueados " +"anteriormente." #: ../../library/msvcrt.rst:68 msgid "" -"Set the line-end translation mode for the file descriptor *fd*. To set it to" -" text mode, *flags* should be :const:`os.O_TEXT`; for binary, it should be " -":const:`os.O_BINARY`." +"Set the line-end translation mode for the file descriptor *fd*. To set it to " +"text mode, *flags* should be :const:`os.O_TEXT`; for binary, it should be :" +"const:`os.O_BINARY`." msgstr "" +"Defina o modo de conversão de final de linha para o descritor de arquivo " +"*fd*. Para configurá-lo no modo de texto, *flags* deve ser :const:`os." +"O_TEXT`; para binário, deve ser :const:`os.O_BINARY`." #: ../../library/msvcrt.rst:75 msgid "" "Create a C runtime file descriptor from the file handle *handle*. The " -"*flags* parameter should be a bitwise OR of :const:`os.O_APPEND`, " -":const:`os.O_RDONLY`, and :const:`os.O_TEXT`. The returned file descriptor " -"may be used as a parameter to :func:`os.fdopen` to create a file object." +"*flags* parameter should be a bitwise OR of :const:`os.O_APPEND`, :const:`os." +"O_RDONLY`, and :const:`os.O_TEXT`. The returned file descriptor may be used " +"as a parameter to :func:`os.fdopen` to create a file object." msgstr "" +"Cria um descritor de arquivo em tempo de execução C a partir do " +"identificador de arquivo *handle*. O parâmetro *flags* deve ser um OR bit a " +"bit de :const:`os.O_APPEND`, :const:`os.O_RDONLY` e :const:`os.O_TEXT`. O " +"descritor de arquivo retornado pode ser usado como um parâmetro para :func:" +"`os.fdopen` para criar um objeto de arquivo." #: ../../library/msvcrt.rst:83 msgid "" "Return the file handle for the file descriptor *fd*. Raises :exc:`OSError` " "if *fd* is not recognized." msgstr "" +"Retorna o identificador de arquivo para o descritor de arquivo *fd*. Leva :" +"exc:`OSError` se *fd* não for reconhecido." #: ../../library/msvcrt.rst:90 msgid "Console I/O" -msgstr "" +msgstr "E/S de console" #: ../../library/msvcrt.rst:95 -msgid "Return true if a keypress is waiting to be read." +msgid "Return ``True`` if a keypress is waiting to be read." msgstr "" +"Retorna ``True`` se um pressionamento de tecla estiver aguardando para ser " +"lido." #: ../../library/msvcrt.rst:100 msgid "" -"Read a keypress and return the resulting character as a byte string. Nothing" -" is echoed to the console. This call will block if a keypress is not " -"already available, but will not wait for :kbd:`Enter` to be pressed. If the " -"pressed key was a special function key, this will return ``'\\000'`` or " -"``'\\xe0'``; the next call will return the keycode. The :kbd:`Control-C` " -"keypress cannot be read with this function." -msgstr "" +"Read a keypress and return the resulting character as a byte string. Nothing " +"is echoed to the console. This call will block if a keypress is not already " +"available, but will not wait for :kbd:`Enter` to be pressed. If the pressed " +"key was a special function key, this will return ``'\\000'`` or ``'\\xe0'``; " +"the next call will return the keycode. The :kbd:`Control-C` keypress cannot " +"be read with this function." +msgstr "" +"Lê um pressionamento de tecla e retorna o caractere resultante como uma " +"sequência de bytes. Nada é ecoado no console. Essa chamada será bloqueada se " +"um pressionamento de tecla ainda não estiver disponível, mas não esperará " +"que :kbd:`Enter` seja pressionado. Se a tecla pressionada for uma tecla de " +"função especial, ela retornará ``\\000'`` ou ``'\\xe0'``; a próxima chamada " +"retornará o código da chave. A tecla :kbd:`Control-C` não pode ser lida com " +"esta função." #: ../../library/msvcrt.rst:110 msgid "Wide char variant of :func:`getch`, returning a Unicode value." msgstr "" +"Variante com caractere largo de :func:`getch`, retornando um valor Unicode." #: ../../library/msvcrt.rst:115 msgid "" "Similar to :func:`getch`, but the keypress will be echoed if it represents " "a printable character." msgstr "" +"Semelhante a :func:`getch`, mas o pressionamento de tecla será repetido se " +"representar um caractere imprimível." #: ../../library/msvcrt.rst:121 msgid "Wide char variant of :func:`getche`, returning a Unicode value." msgstr "" +"Variante com caractere largo de :func:`getche`, retornando um valor Unicode." #: ../../library/msvcrt.rst:126 msgid "Print the byte string *char* to the console without buffering." msgstr "" +"Imprime a sequência de bytes *char* no console sem armazenar em buffer." #: ../../library/msvcrt.rst:131 msgid "Wide char variant of :func:`putch`, accepting a Unicode value." msgstr "" +"Variante com caractere largo de :func:`putch`, retornando um valor Unicode." #: ../../library/msvcrt.rst:136 msgid "" "Cause the byte string *char* to be \"pushed back\" into the console buffer; " "it will be the next character read by :func:`getch` or :func:`getche`." msgstr "" +"Faz com que a string de bytes *char* seja \"empurrada\" para o buffer do " +"console; será o próximo caractere lido por :func:`getch` ou :func:`getche`." #: ../../library/msvcrt.rst:142 msgid "Wide char variant of :func:`ungetch`, accepting a Unicode value." msgstr "" +"Variante com caractere largo de :func:`ungetch`, retornando um valor Unicode." #: ../../library/msvcrt.rst:148 msgid "Other Functions" -msgstr "" +msgstr "Outras funções" #: ../../library/msvcrt.rst:153 msgid "" "Force the :c:func:`malloc` heap to clean itself up and return unused blocks " "to the operating system. On failure, this raises :exc:`OSError`." msgstr "" +"Força o heap :c:func:`malloc` a ser limpado e retorna os blocos não " +"utilizados ao sistema operacional. Em caso de falha, isso gera :exc:" +"`OSError`." diff --git a/library/multiprocessing.po b/library/multiprocessing.po index 71e0bfe2f..cf1ed8507 100644 --- a/library/multiprocessing.po +++ b/library/multiprocessing.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Ruan Aragão , 2019 # Hugo Santos Piauilino , 2019 # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-26 10:28+0900\n" +"POT-Creation-Date: 2020-04-13 02:24+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,14 +52,14 @@ msgstr "" #: ../../library/multiprocessing.rst:22 msgid "" "The :mod:`multiprocessing` module also introduces APIs which do not have " -"analogs in the :mod:`threading` module. A prime example of this is the " -":class:`~multiprocessing.pool.Pool` object which offers a convenient means " -"of parallelizing the execution of a function across multiple input values, " +"analogs in the :mod:`threading` module. A prime example of this is the :" +"class:`~multiprocessing.pool.Pool` object which offers a convenient means of " +"parallelizing the execution of a function across multiple input values, " "distributing the input data across processes (data parallelism). The " "following example demonstrates the common practice of defining such " "functions in a module so that child processes can successfully import that " -"module. This basic example of data parallelism using " -":class:`~multiprocessing.pool.Pool`, ::" +"module. This basic example of data parallelism using :class:" +"`~multiprocessing.pool.Pool`, ::" msgstr "" #: ../../library/multiprocessing.rst:40 @@ -70,10 +72,10 @@ msgstr "A classe :class:`Process`" #: ../../library/multiprocessing.rst:48 msgid "" -"In :mod:`multiprocessing`, processes are spawned by creating a " -":class:`Process` object and then calling its :meth:`~Process.start` method." -" :class:`Process` follows the API of :class:`threading.Thread`. A trivial " -"example of a multiprocess program is ::" +"In :mod:`multiprocessing`, processes are spawned by creating a :class:" +"`Process` object and then calling its :meth:`~Process.start` method. :class:" +"`Process` follows the API of :class:`threading.Thread`. A trivial example " +"of a multiprocess program is ::" msgstr "" #: ../../library/multiprocessing.rst:63 @@ -107,8 +109,8 @@ msgid "" "process will only inherit those resources necessary to run the process " "objects :meth:`~Process.run` method. In particular, unnecessary file " "descriptors and handles from the parent process will not be inherited. " -"Starting a process using this method is rather slow compared to using *fork*" -" or *forkserver*." +"Starting a process using this method is rather slow compared to using *fork* " +"or *forkserver*." msgstr "" #: ../../library/multiprocessing.rst:105 @@ -121,8 +123,8 @@ msgstr "*fork*" #: ../../library/multiprocessing.rst:108 msgid "" -"The parent process uses :func:`os.fork` to fork the Python interpreter. The" -" child process, when it begins, is effectively identical to the parent " +"The parent process uses :func:`os.fork` to fork the Python interpreter. The " +"child process, when it begins, is effectively identical to the parent " "process. All resources of the parent are inherited by the child process. " "Note that safely forking a multithreaded process is problematic." msgstr "" @@ -140,14 +142,14 @@ msgid "" "When the program starts and selects the *forkserver* start method, a server " "process is started. From then on, whenever a new process is needed, the " "parent process connects to the server and requests that it fork a new " -"process. The fork server process is single threaded so it is safe for it to" -" use :func:`os.fork`. No unnecessary resources are inherited." +"process. The fork server process is single threaded so it is safe for it to " +"use :func:`os.fork`. No unnecessary resources are inherited." msgstr "" #: ../../library/multiprocessing.rst:124 msgid "" -"Available on Unix platforms which support passing file descriptors over Unix" -" pipes." +"Available on Unix platforms which support passing file descriptors over Unix " +"pipes." msgstr "" #: ../../library/multiprocessing.rst:127 @@ -197,17 +199,16 @@ msgstr "" #: ../../library/multiprocessing.rst:185 msgid "" -"A library which wants to use a particular start method should probably use " -":func:`get_context` to avoid interfering with the choice of the library " -"user." +"A library which wants to use a particular start method should probably use :" +"func:`get_context` to avoid interfering with the choice of the library user." msgstr "" #: ../../library/multiprocessing.rst:191 msgid "" "The ``'spawn'`` and ``'forkserver'`` start methods cannot currently be used " "with \"frozen\" executables (i.e., binaries produced by packages like " -"**PyInstaller** and **cx_Freeze**) on Unix. The ``'fork'`` start method does" -" work." +"**PyInstaller** and **cx_Freeze**) on Unix. The ``'fork'`` start method does " +"work." msgstr "" #: ../../library/multiprocessing.rst:198 @@ -247,12 +248,11 @@ msgstr "" #: ../../library/multiprocessing.rst:240 msgid "" "The two connection objects returned by :func:`Pipe` represent the two ends " -"of the pipe. Each connection object has :meth:`~Connection.send` and " -":meth:`~Connection.recv` methods (among others). Note that data in a pipe " -"may become corrupted if two processes (or threads) try to read from or write" -" to the *same* end of the pipe at the same time. Of course there is no risk" -" of corruption from processes using different ends of the pipe at the same " -"time." +"of the pipe. Each connection object has :meth:`~Connection.send` and :meth:" +"`~Connection.recv` methods (among others). Note that data in a pipe may " +"become corrupted if two processes (or threads) try to read from or write to " +"the *same* end of the pipe at the same time. Of course there is no risk of " +"corruption from processes using different ends of the pipe at the same time." msgstr "" #: ../../library/multiprocessing.rst:250 @@ -262,8 +262,8 @@ msgstr "Sincronização entre processos" #: ../../library/multiprocessing.rst:252 msgid "" ":mod:`multiprocessing` contains equivalents of all the synchronization " -"primitives from :mod:`threading`. For instance one can use a lock to ensure" -" that only one process prints to standard output at a time::" +"primitives from :mod:`threading`. For instance one can use a lock to ensure " +"that only one process prints to standard output at a time::" msgstr "" #: ../../library/multiprocessing.rst:271 @@ -279,14 +279,14 @@ msgstr "" #: ../../library/multiprocessing.rst:278 msgid "" "As mentioned above, when doing concurrent programming it is usually best to " -"avoid using shared state as far as possible. This is particularly true when" -" using multiple processes." +"avoid using shared state as far as possible. This is particularly true when " +"using multiple processes." msgstr "" #: ../../library/multiprocessing.rst:282 msgid "" -"However, if you really do need to use some shared data then " -":mod:`multiprocessing` provides a couple of ways of doing so." +"However, if you really do need to use some shared data then :mod:" +"`multiprocessing` provides a couple of ways of doing so." msgstr "" #: ../../library/multiprocessing.rst:285 @@ -295,8 +295,8 @@ msgstr "**Shared memory**" #: ../../library/multiprocessing.rst:287 msgid "" -"Data can be stored in a shared memory map using :class:`Value` or " -":class:`Array`. For example, the following code ::" +"Data can be stored in a shared memory map using :class:`Value` or :class:" +"`Array`. For example, the following code ::" msgstr "" #: ../../library/multiprocessing.rst:308 ../../library/multiprocessing.rst:354 @@ -305,16 +305,16 @@ msgstr "será impresso::" #: ../../library/multiprocessing.rst:313 msgid "" -"The ``'d'`` and ``'i'`` arguments used when creating ``num`` and ``arr`` are" -" typecodes of the kind used by the :mod:`array` module: ``'d'`` indicates a " -"double precision float and ``'i'`` indicates a signed integer. These shared" -" objects will be process and thread-safe." +"The ``'d'`` and ``'i'`` arguments used when creating ``num`` and ``arr`` are " +"typecodes of the kind used by the :mod:`array` module: ``'d'`` indicates a " +"double precision float and ``'i'`` indicates a signed integer. These shared " +"objects will be process and thread-safe." msgstr "" #: ../../library/multiprocessing.rst:318 msgid "" -"For more flexibility in using shared memory one can use the " -":mod:`multiprocessing.sharedctypes` module which supports the creation of " +"For more flexibility in using shared memory one can use the :mod:" +"`multiprocessing.sharedctypes` module which supports the creation of " "arbitrary ctypes objects allocated from shared memory." msgstr "" @@ -324,18 +324,18 @@ msgstr "**Processo do Servidor**" #: ../../library/multiprocessing.rst:324 msgid "" -"A manager object returned by :func:`Manager` controls a server process which" -" holds Python objects and allows other processes to manipulate them using " +"A manager object returned by :func:`Manager` controls a server process which " +"holds Python objects and allows other processes to manipulate them using " "proxies." msgstr "" #: ../../library/multiprocessing.rst:328 msgid "" -"A manager returned by :func:`Manager` will support types :class:`list`, " -":class:`dict`, :class:`~managers.Namespace`, :class:`Lock`, :class:`RLock`, " -":class:`Semaphore`, :class:`BoundedSemaphore`, :class:`Condition`, " -":class:`Event`, :class:`Barrier`, :class:`Queue`, :class:`Value` and " -":class:`Array`. For example, ::" +"A manager returned by :func:`Manager` will support types :class:`list`, :" +"class:`dict`, :class:`~managers.Namespace`, :class:`Lock`, :class:`RLock`, :" +"class:`Semaphore`, :class:`BoundedSemaphore`, :class:`Condition`, :class:" +"`Event`, :class:`Barrier`, :class:`Queue`, :class:`Value` and :class:" +"`Array`. For example, ::" msgstr "" #: ../../library/multiprocessing.rst:359 @@ -376,86 +376,86 @@ msgid "" "work in the interactive interpreter. For example::" msgstr "" -#: ../../library/multiprocessing.rst:443 +#: ../../library/multiprocessing.rst:444 msgid "" "(If you try this it will actually output three full tracebacks interleaved " "in a semi-random fashion, and then you may have to stop the master process " "somehow.)" msgstr "" -#: ../../library/multiprocessing.rst:449 +#: ../../library/multiprocessing.rst:450 msgid "Reference" msgstr "Referência" -#: ../../library/multiprocessing.rst:451 +#: ../../library/multiprocessing.rst:452 msgid "" -"The :mod:`multiprocessing` package mostly replicates the API of the " -":mod:`threading` module." +"The :mod:`multiprocessing` package mostly replicates the API of the :mod:" +"`threading` module." msgstr "" -#: ../../library/multiprocessing.rst:456 +#: ../../library/multiprocessing.rst:457 msgid ":class:`Process` and exceptions" msgstr "" -#: ../../library/multiprocessing.rst:461 +#: ../../library/multiprocessing.rst:462 msgid "" -"Process objects represent activity that is run in a separate process. The " -":class:`Process` class has equivalents of all the methods of " -":class:`threading.Thread`." +"Process objects represent activity that is run in a separate process. The :" +"class:`Process` class has equivalents of all the methods of :class:" +"`threading.Thread`." msgstr "" -#: ../../library/multiprocessing.rst:465 +#: ../../library/multiprocessing.rst:466 msgid "" "The constructor should always be called with keyword arguments. *group* " -"should always be ``None``; it exists solely for compatibility with " -":class:`threading.Thread`. *target* is the callable object to be invoked by" -" the :meth:`run()` method. It defaults to ``None``, meaning nothing is " -"called. *name* is the process name (see :attr:`name` for more details). " -"*args* is the argument tuple for the target invocation. *kwargs* is a " -"dictionary of keyword arguments for the target invocation. If provided, the" -" keyword-only *daemon* argument sets the process :attr:`daemon` flag to " -"``True`` or ``False``. If ``None`` (the default), this flag will be " -"inherited from the creating process." -msgstr "" - -#: ../../library/multiprocessing.rst:476 +"should always be ``None``; it exists solely for compatibility with :class:" +"`threading.Thread`. *target* is the callable object to be invoked by the :" +"meth:`run()` method. It defaults to ``None``, meaning nothing is called. " +"*name* is the process name (see :attr:`name` for more details). *args* is " +"the argument tuple for the target invocation. *kwargs* is a dictionary of " +"keyword arguments for the target invocation. If provided, the keyword-only " +"*daemon* argument sets the process :attr:`daemon` flag to ``True`` or " +"``False``. If ``None`` (the default), this flag will be inherited from the " +"creating process." +msgstr "" + +#: ../../library/multiprocessing.rst:477 msgid "By default, no arguments are passed to *target*." msgstr "" -#: ../../library/multiprocessing.rst:478 +#: ../../library/multiprocessing.rst:479 msgid "" "If a subclass overrides the constructor, it must make sure it invokes the " -"base class constructor (:meth:`Process.__init__`) before doing anything else" -" to the process." +"base class constructor (:meth:`Process.__init__`) before doing anything else " +"to the process." msgstr "" -#: ../../library/multiprocessing.rst:482 +#: ../../library/multiprocessing.rst:483 msgid "Added the *daemon* argument." msgstr "" -#: ../../library/multiprocessing.rst:487 +#: ../../library/multiprocessing.rst:488 msgid "Method representing the process's activity." msgstr "" -#: ../../library/multiprocessing.rst:489 +#: ../../library/multiprocessing.rst:490 msgid "" -"You may override this method in a subclass. The standard :meth:`run` method" -" invokes the callable object passed to the object's constructor as the " -"target argument, if any, with sequential and keyword arguments taken from " -"the *args* and *kwargs* arguments, respectively." +"You may override this method in a subclass. The standard :meth:`run` method " +"invokes the callable object passed to the object's constructor as the target " +"argument, if any, with sequential and keyword arguments taken from the " +"*args* and *kwargs* arguments, respectively." msgstr "" -#: ../../library/multiprocessing.rst:496 +#: ../../library/multiprocessing.rst:497 msgid "Start the process's activity." msgstr "" -#: ../../library/multiprocessing.rst:498 +#: ../../library/multiprocessing.rst:499 msgid "" "This must be called at most once per process object. It arranges for the " "object's :meth:`run` method to be invoked in a separate process." msgstr "" -#: ../../library/multiprocessing.rst:503 +#: ../../library/multiprocessing.rst:504 msgid "" "If the optional argument *timeout* is ``None`` (the default), the method " "blocks until the process whose :meth:`join` method is called terminates. If " @@ -465,57 +465,57 @@ msgid "" "terminated." msgstr "" -#: ../../library/multiprocessing.rst:510 +#: ../../library/multiprocessing.rst:511 msgid "A process can be joined many times." msgstr "" -#: ../../library/multiprocessing.rst:512 +#: ../../library/multiprocessing.rst:513 msgid "" "A process cannot join itself because this would cause a deadlock. It is an " "error to attempt to join a process before it has been started." msgstr "" -#: ../../library/multiprocessing.rst:517 +#: ../../library/multiprocessing.rst:518 msgid "" "The process's name. The name is a string used for identification purposes " "only. It has no semantics. Multiple processes may be given the same name." msgstr "" -#: ../../library/multiprocessing.rst:521 +#: ../../library/multiprocessing.rst:522 msgid "" -"The initial name is set by the constructor. If no explicit name is provided" -" to the constructor, a name of the form 'Process-N\\ :sub:`1`:N\\ " -":sub:`2`:...:N\\ :sub:`k`' is constructed, where each N\\ :sub:`k` is the " -"N-th child of its parent." +"The initial name is set by the constructor. If no explicit name is provided " +"to the constructor, a name of the form 'Process-N\\ :sub:`1`:N\\ :sub:" +"`2`:...:N\\ :sub:`k`' is constructed, where each N\\ :sub:`k` is the N-th " +"child of its parent." msgstr "" -#: ../../library/multiprocessing.rst:528 +#: ../../library/multiprocessing.rst:529 msgid "Return whether the process is alive." msgstr "" -#: ../../library/multiprocessing.rst:530 +#: ../../library/multiprocessing.rst:531 msgid "" "Roughly, a process object is alive from the moment the :meth:`start` method " "returns until the child process terminates." msgstr "" -#: ../../library/multiprocessing.rst:535 +#: ../../library/multiprocessing.rst:536 msgid "" -"The process's daemon flag, a Boolean value. This must be set before " -":meth:`start` is called." +"The process's daemon flag, a Boolean value. This must be set before :meth:" +"`start` is called." msgstr "" -#: ../../library/multiprocessing.rst:538 +#: ../../library/multiprocessing.rst:539 msgid "The initial value is inherited from the creating process." msgstr "" -#: ../../library/multiprocessing.rst:540 +#: ../../library/multiprocessing.rst:541 msgid "" "When a process exits, it attempts to terminate all of its daemonic child " "processes." msgstr "" -#: ../../library/multiprocessing.rst:543 +#: ../../library/multiprocessing.rst:544 msgid "" "Note that a daemonic process is not allowed to create child processes. " "Otherwise a daemonic process would leave its children orphaned if it gets " @@ -524,201 +524,199 @@ msgid "" "(and not joined) if non-daemonic processes have exited." msgstr "" -#: ../../library/multiprocessing.rst:549 +#: ../../library/multiprocessing.rst:550 msgid "" "In addition to the :class:`threading.Thread` API, :class:`Process` objects " "also support the following attributes and methods:" msgstr "" -#: ../../library/multiprocessing.rst:554 +#: ../../library/multiprocessing.rst:555 msgid "" -"Return the process ID. Before the process is spawned, this will be " -"``None``." +"Return the process ID. Before the process is spawned, this will be ``None``." msgstr "" -#: ../../library/multiprocessing.rst:559 +#: ../../library/multiprocessing.rst:560 msgid "" "The child's exit code. This will be ``None`` if the process has not yet " "terminated. A negative value *-N* indicates that the child was terminated " "by signal *N*." msgstr "" -#: ../../library/multiprocessing.rst:565 +#: ../../library/multiprocessing.rst:566 msgid "The process's authentication key (a byte string)." msgstr "" -#: ../../library/multiprocessing.rst:567 +#: ../../library/multiprocessing.rst:568 msgid "" "When :mod:`multiprocessing` is initialized the main process is assigned a " "random string using :func:`os.urandom`." msgstr "" -#: ../../library/multiprocessing.rst:570 +#: ../../library/multiprocessing.rst:571 msgid "" "When a :class:`Process` object is created, it will inherit the " "authentication key of its parent process, although this may be changed by " "setting :attr:`authkey` to another byte string." msgstr "" -#: ../../library/multiprocessing.rst:574 +#: ../../library/multiprocessing.rst:575 msgid "See :ref:`multiprocessing-auth-keys`." msgstr "" -#: ../../library/multiprocessing.rst:578 +#: ../../library/multiprocessing.rst:579 msgid "" "A numeric handle of a system object which will become \"ready\" when the " "process ends." msgstr "" -#: ../../library/multiprocessing.rst:581 +#: ../../library/multiprocessing.rst:582 msgid "" -"You can use this value if you want to wait on several events at once using " -":func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join()` " -"is simpler." +"You can use this value if you want to wait on several events at once using :" +"func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join()` is " +"simpler." msgstr "" -#: ../../library/multiprocessing.rst:585 +#: ../../library/multiprocessing.rst:586 msgid "" -"On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and" -" ``WaitForMultipleObjects`` family of API calls. On Unix, this is a file " +"On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and " +"``WaitForMultipleObjects`` family of API calls. On Unix, this is a file " "descriptor usable with primitives from the :mod:`select` module." msgstr "" -#: ../../library/multiprocessing.rst:593 +#: ../../library/multiprocessing.rst:594 msgid "" "Terminate the process. On Unix this is done using the ``SIGTERM`` signal; " "on Windows :c:func:`TerminateProcess` is used. Note that exit handlers and " "finally clauses, etc., will not be executed." msgstr "" -#: ../../library/multiprocessing.rst:597 +#: ../../library/multiprocessing.rst:598 msgid "" "Note that descendant processes of the process will *not* be terminated -- " "they will simply become orphaned." msgstr "" -#: ../../library/multiprocessing.rst:602 +#: ../../library/multiprocessing.rst:603 msgid "" "If this method is used when the associated process is using a pipe or queue " -"then the pipe or queue is liable to become corrupted and may become unusable" -" by other process. Similarly, if the process has acquired a lock or " +"then the pipe or queue is liable to become corrupted and may become unusable " +"by other process. Similarly, if the process has acquired a lock or " "semaphore etc. then terminating it is liable to cause other processes to " "deadlock." msgstr "" -#: ../../library/multiprocessing.rst:610 +#: ../../library/multiprocessing.rst:611 msgid "Same as :meth:`terminate()` but using the ``SIGKILL`` signal on Unix." msgstr "" -#: ../../library/multiprocessing.rst:616 +#: ../../library/multiprocessing.rst:617 msgid "" "Close the :class:`Process` object, releasing all resources associated with " -"it. :exc:`ValueError` is raised if the underlying process is still running." -" Once :meth:`close` returns successfully, most other methods and attributes" -" of the :class:`Process` object will raise :exc:`ValueError`." +"it. :exc:`ValueError` is raised if the underlying process is still " +"running. Once :meth:`close` returns successfully, most other methods and " +"attributes of the :class:`Process` object will raise :exc:`ValueError`." msgstr "" -#: ../../library/multiprocessing.rst:624 +#: ../../library/multiprocessing.rst:625 msgid "" -"Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`, " -":meth:`terminate` and :attr:`exitcode` methods should only be called by the " +"Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`, :meth:" +"`terminate` and :attr:`exitcode` methods should only be called by the " "process that created the process object." msgstr "" -#: ../../library/multiprocessing.rst:628 +#: ../../library/multiprocessing.rst:629 msgid "Example usage of some of the methods of :class:`Process`:" msgstr "" -#: ../../library/multiprocessing.rst:648 +#: ../../library/multiprocessing.rst:649 msgid "The base class of all :mod:`multiprocessing` exceptions." msgstr "" -#: ../../library/multiprocessing.rst:652 +#: ../../library/multiprocessing.rst:653 msgid "" "Exception raised by :meth:`Connection.recv_bytes_into()` when the supplied " "buffer object is too small for the message read." msgstr "" -#: ../../library/multiprocessing.rst:655 +#: ../../library/multiprocessing.rst:656 msgid "" "If ``e`` is an instance of :exc:`BufferTooShort` then ``e.args[0]`` will " "give the message as a byte string." msgstr "" -#: ../../library/multiprocessing.rst:660 +#: ../../library/multiprocessing.rst:661 msgid "Raised when there is an authentication error." msgstr "" -#: ../../library/multiprocessing.rst:664 +#: ../../library/multiprocessing.rst:665 msgid "Raised by methods with a timeout when the timeout expires." msgstr "" -#: ../../library/multiprocessing.rst:667 +#: ../../library/multiprocessing.rst:668 msgid "Pipes and Queues" msgstr "" -#: ../../library/multiprocessing.rst:669 +#: ../../library/multiprocessing.rst:670 msgid "" "When using multiple processes, one generally uses message passing for " -"communication between processes and avoids having to use any synchronization" -" primitives like locks." +"communication between processes and avoids having to use any synchronization " +"primitives like locks." msgstr "" -#: ../../library/multiprocessing.rst:673 +#: ../../library/multiprocessing.rst:674 msgid "" "For passing messages one can use :func:`Pipe` (for a connection between two " "processes) or a queue (which allows multiple producers and consumers)." msgstr "" -#: ../../library/multiprocessing.rst:676 +#: ../../library/multiprocessing.rst:677 msgid "" "The :class:`Queue`, :class:`SimpleQueue` and :class:`JoinableQueue` types " -"are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues" -" modelled on the :class:`queue.Queue` class in the standard library. They " -"differ in that :class:`Queue` lacks the :meth:`~queue.Queue.task_done` and " -":meth:`~queue.Queue.join` methods introduced into Python 2.5's " -":class:`queue.Queue` class." +"are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues " +"modelled on the :class:`queue.Queue` class in the standard library. They " +"differ in that :class:`Queue` lacks the :meth:`~queue.Queue.task_done` and :" +"meth:`~queue.Queue.join` methods introduced into Python 2.5's :class:`queue." +"Queue` class." msgstr "" -#: ../../library/multiprocessing.rst:683 +#: ../../library/multiprocessing.rst:684 msgid "" -"If you use :class:`JoinableQueue` then you **must** call " -":meth:`JoinableQueue.task_done` for each task removed from the queue or else" -" the semaphore used to count the number of unfinished tasks may eventually " +"If you use :class:`JoinableQueue` then you **must** call :meth:" +"`JoinableQueue.task_done` for each task removed from the queue or else the " +"semaphore used to count the number of unfinished tasks may eventually " "overflow, raising an exception." msgstr "" -#: ../../library/multiprocessing.rst:688 +#: ../../library/multiprocessing.rst:689 msgid "" "Note that one can also create a shared queue by using a manager object -- " "see :ref:`multiprocessing-managers`." msgstr "" -#: ../../library/multiprocessing.rst:693 +#: ../../library/multiprocessing.rst:694 msgid "" -":mod:`multiprocessing` uses the usual :exc:`queue.Empty` and " -":exc:`queue.Full` exceptions to signal a timeout. They are not available in" -" the :mod:`multiprocessing` namespace so you need to import them from " -":mod:`queue`." +":mod:`multiprocessing` uses the usual :exc:`queue.Empty` and :exc:`queue." +"Full` exceptions to signal a timeout. They are not available in the :mod:" +"`multiprocessing` namespace so you need to import them from :mod:`queue`." msgstr "" -#: ../../library/multiprocessing.rst:700 +#: ../../library/multiprocessing.rst:701 msgid "" "When an object is put on a queue, the object is pickled and a background " "thread later flushes the pickled data to an underlying pipe. This has some " "consequences which are a little surprising, but should not cause any " -"practical difficulties -- if they really bother you then you can instead use" -" a queue created with a :ref:`manager `." +"practical difficulties -- if they really bother you then you can instead use " +"a queue created with a :ref:`manager `." msgstr "" -#: ../../library/multiprocessing.rst:707 +#: ../../library/multiprocessing.rst:708 msgid "" "After putting an object on an empty queue there may be an infinitesimal " "delay before the queue's :meth:`~Queue.empty` method returns :const:`False` " "and :meth:`~Queue.get_nowait` can return without raising :exc:`queue.Empty`." msgstr "" -#: ../../library/multiprocessing.rst:712 +#: ../../library/multiprocessing.rst:713 msgid "" "If multiple processes are enqueuing objects, it is possible for the objects " "to be received at the other end out-of-order. However, objects enqueued by " @@ -726,7 +724,7 @@ msgid "" "other." msgstr "" -#: ../../library/multiprocessing.rst:719 +#: ../../library/multiprocessing.rst:720 msgid "" "If a process is killed using :meth:`Process.terminate` or :func:`os.kill` " "while it is trying to use a :class:`Queue`, then the data in the queue is " @@ -734,15 +732,15 @@ msgid "" "exception when it tries to use the queue later on." msgstr "" -#: ../../library/multiprocessing.rst:726 +#: ../../library/multiprocessing.rst:727 msgid "" "As mentioned above, if a child process has put items on a queue (and it has " -"not used :meth:`JoinableQueue.cancel_join_thread " -"`), then that process will not " -"terminate until all buffered items have been flushed to the pipe." +"not used :meth:`JoinableQueue.cancel_join_thread `), then that process will not terminate until all " +"buffered items have been flushed to the pipe." msgstr "" -#: ../../library/multiprocessing.rst:731 +#: ../../library/multiprocessing.rst:732 msgid "" "This means that if you try joining that process you may get a deadlock " "unless you are sure that all items which have been put on the queue have " @@ -751,141 +749,141 @@ msgid "" "children." msgstr "" -#: ../../library/multiprocessing.rst:736 +#: ../../library/multiprocessing.rst:737 msgid "" -"Note that a queue created using a manager does not have this issue. See " -":ref:`multiprocessing-programming`." +"Note that a queue created using a manager does not have this issue. See :" +"ref:`multiprocessing-programming`." msgstr "" -#: ../../library/multiprocessing.rst:739 +#: ../../library/multiprocessing.rst:740 msgid "" -"For an example of the usage of queues for interprocess communication see " -":ref:`multiprocessing-examples`." +"For an example of the usage of queues for interprocess communication see :" +"ref:`multiprocessing-examples`." msgstr "" -#: ../../library/multiprocessing.rst:745 +#: ../../library/multiprocessing.rst:746 msgid "" -"Returns a pair ``(conn1, conn2)`` of " -":class:`~multiprocessing.connection.Connection` objects representing the " -"ends of a pipe." +"Returns a pair ``(conn1, conn2)`` of :class:`~multiprocessing.connection." +"Connection` objects representing the ends of a pipe." msgstr "" -#: ../../library/multiprocessing.rst:749 +#: ../../library/multiprocessing.rst:750 msgid "" "If *duplex* is ``True`` (the default) then the pipe is bidirectional. If " -"*duplex* is ``False`` then the pipe is unidirectional: ``conn1`` can only be" -" used for receiving messages and ``conn2`` can only be used for sending " +"*duplex* is ``False`` then the pipe is unidirectional: ``conn1`` can only be " +"used for receiving messages and ``conn2`` can only be used for sending " "messages." msgstr "" -#: ../../library/multiprocessing.rst:757 +#: ../../library/multiprocessing.rst:758 msgid "" -"Returns a process shared queue implemented using a pipe and a few " -"locks/semaphores. When a process first puts an item on the queue a feeder " -"thread is started which transfers objects from a buffer into the pipe." +"Returns a process shared queue implemented using a pipe and a few locks/" +"semaphores. When a process first puts an item on the queue a feeder thread " +"is started which transfers objects from a buffer into the pipe." msgstr "" -#: ../../library/multiprocessing.rst:761 +#: ../../library/multiprocessing.rst:762 msgid "" "The usual :exc:`queue.Empty` and :exc:`queue.Full` exceptions from the " "standard library's :mod:`queue` module are raised to signal timeouts." msgstr "" -#: ../../library/multiprocessing.rst:764 +#: ../../library/multiprocessing.rst:765 msgid "" -":class:`Queue` implements all the methods of :class:`queue.Queue` except for" -" :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join`." +":class:`Queue` implements all the methods of :class:`queue.Queue` except " +"for :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join`." msgstr "" -#: ../../library/multiprocessing.rst:769 +#: ../../library/multiprocessing.rst:770 msgid "" -"Return the approximate size of the queue. Because of " -"multithreading/multiprocessing semantics, this number is not reliable." +"Return the approximate size of the queue. Because of multithreading/" +"multiprocessing semantics, this number is not reliable." msgstr "" -#: ../../library/multiprocessing.rst:772 +#: ../../library/multiprocessing.rst:773 msgid "" "Note that this may raise :exc:`NotImplementedError` on Unix platforms like " "Mac OS X where ``sem_getvalue()`` is not implemented." msgstr "" -#: ../../library/multiprocessing.rst:777 +#: ../../library/multiprocessing.rst:778 msgid "" "Return ``True`` if the queue is empty, ``False`` otherwise. Because of " "multithreading/multiprocessing semantics, this is not reliable." msgstr "" -#: ../../library/multiprocessing.rst:782 +#: ../../library/multiprocessing.rst:783 msgid "" "Return ``True`` if the queue is full, ``False`` otherwise. Because of " "multithreading/multiprocessing semantics, this is not reliable." msgstr "" -#: ../../library/multiprocessing.rst:787 +#: ../../library/multiprocessing.rst:788 msgid "" "Put obj into the queue. If the optional argument *block* is ``True`` (the " -"default) and *timeout* is ``None`` (the default), block if necessary until a" -" free slot is available. If *timeout* is a positive number, it blocks at " -"most *timeout* seconds and raises the :exc:`queue.Full` exception if no free" -" slot was available within that time. Otherwise (*block* is ``False``), put" -" an item on the queue if a free slot is immediately available, else raise " +"default) and *timeout* is ``None`` (the default), block if necessary until a " +"free slot is available. If *timeout* is a positive number, it blocks at " +"most *timeout* seconds and raises the :exc:`queue.Full` exception if no free " +"slot was available within that time. Otherwise (*block* is ``False``), put " +"an item on the queue if a free slot is immediately available, else raise " "the :exc:`queue.Full` exception (*timeout* is ignored in that case)." msgstr "" -#: ../../library/multiprocessing.rst:798 +#: ../../library/multiprocessing.rst:799 msgid "Equivalent to ``put(obj, False)``." msgstr "" -#: ../../library/multiprocessing.rst:802 +#: ../../library/multiprocessing.rst:803 msgid "" "Remove and return an item from the queue. If optional args *block* is " "``True`` (the default) and *timeout* is ``None`` (the default), block if " -"necessary until an item is available. If *timeout* is a positive number, it" -" blocks at most *timeout* seconds and raises the :exc:`queue.Empty` " -"exception if no item was available within that time. Otherwise (block is " -"``False``), return an item if one is immediately available, else raise the " -":exc:`queue.Empty` exception (*timeout* is ignored in that case)." +"necessary until an item is available. If *timeout* is a positive number, it " +"blocks at most *timeout* seconds and raises the :exc:`queue.Empty` exception " +"if no item was available within that time. Otherwise (block is ``False``), " +"return an item if one is immediately available, else raise the :exc:`queue." +"Empty` exception (*timeout* is ignored in that case)." msgstr "" -#: ../../library/multiprocessing.rst:812 +#: ../../library/multiprocessing.rst:813 msgid "Equivalent to ``get(False)``." msgstr "" -#: ../../library/multiprocessing.rst:814 +#: ../../library/multiprocessing.rst:815 msgid "" -":class:`multiprocessing.Queue` has a few additional methods not found in " -":class:`queue.Queue`. These methods are usually unnecessary for most code:" +":class:`multiprocessing.Queue` has a few additional methods not found in :" +"class:`queue.Queue`. These methods are usually unnecessary for most code:" msgstr "" -#: ../../library/multiprocessing.rst:820 +#: ../../library/multiprocessing.rst:821 msgid "" -"Indicate that no more data will be put on this queue by the current process." -" The background thread will quit once it has flushed all buffered data to " -"the pipe. This is called automatically when the queue is garbage collected." +"Indicate that no more data will be put on this queue by the current " +"process. The background thread will quit once it has flushed all buffered " +"data to the pipe. This is called automatically when the queue is garbage " +"collected." msgstr "" -#: ../../library/multiprocessing.rst:827 +#: ../../library/multiprocessing.rst:828 msgid "" "Join the background thread. This can only be used after :meth:`close` has " -"been called. It blocks until the background thread exits, ensuring that all" -" data in the buffer has been flushed to the pipe." +"been called. It blocks until the background thread exits, ensuring that all " +"data in the buffer has been flushed to the pipe." msgstr "" -#: ../../library/multiprocessing.rst:831 +#: ../../library/multiprocessing.rst:832 msgid "" -"By default if a process is not the creator of the queue then on exit it will" -" attempt to join the queue's background thread. The process can call " -":meth:`cancel_join_thread` to make :meth:`join_thread` do nothing." +"By default if a process is not the creator of the queue then on exit it will " +"attempt to join the queue's background thread. The process can call :meth:" +"`cancel_join_thread` to make :meth:`join_thread` do nothing." msgstr "" -#: ../../library/multiprocessing.rst:837 +#: ../../library/multiprocessing.rst:838 msgid "" -"Prevent :meth:`join_thread` from blocking. In particular, this prevents the" -" background thread from being joined automatically when the process exits --" -" see :meth:`join_thread`." +"Prevent :meth:`join_thread` from blocking. In particular, this prevents the " +"background thread from being joined automatically when the process exits -- " +"see :meth:`join_thread`." msgstr "" -#: ../../library/multiprocessing.rst:841 +#: ../../library/multiprocessing.rst:842 msgid "" "A better name for this method might be ``allow_exit_without_flush()``. It " "is likely to cause enqueued data to lost, and you almost certainly will not " @@ -894,66 +892,65 @@ msgid "" "pipe, and you don't care about lost data." msgstr "" -#: ../../library/multiprocessing.rst:850 +#: ../../library/multiprocessing.rst:851 msgid "" "This class's functionality requires a functioning shared semaphore " "implementation on the host operating system. Without one, the functionality " -"in this class will be disabled, and attempts to instantiate a :class:`Queue`" -" will result in an :exc:`ImportError`. See :issue:`3770` for additional " +"in this class will be disabled, and attempts to instantiate a :class:`Queue` " +"will result in an :exc:`ImportError`. See :issue:`3770` for additional " "information. The same holds true for any of the specialized queue types " "listed below." msgstr "" -#: ../../library/multiprocessing.rst:859 +#: ../../library/multiprocessing.rst:860 msgid "" -"It is a simplified :class:`Queue` type, very close to a locked " -":class:`Pipe`." +"It is a simplified :class:`Queue` type, very close to a locked :class:`Pipe`." msgstr "" -#: ../../library/multiprocessing.rst:863 +#: ../../library/multiprocessing.rst:864 msgid "Return ``True`` if the queue is empty, ``False`` otherwise." msgstr "" -#: ../../library/multiprocessing.rst:867 +#: ../../library/multiprocessing.rst:868 msgid "Remove and return an item from the queue." msgstr "" -#: ../../library/multiprocessing.rst:871 +#: ../../library/multiprocessing.rst:872 msgid "Put *item* into the queue." msgstr "" -#: ../../library/multiprocessing.rst:876 +#: ../../library/multiprocessing.rst:877 msgid "" ":class:`JoinableQueue`, a :class:`Queue` subclass, is a queue which " "additionally has :meth:`task_done` and :meth:`join` methods." msgstr "" -#: ../../library/multiprocessing.rst:881 +#: ../../library/multiprocessing.rst:882 msgid "" -"Indicate that a formerly enqueued task is complete. Used by queue consumers." -" For each :meth:`~Queue.get` used to fetch a task, a subsequent call to " -":meth:`task_done` tells the queue that the processing on the task is " +"Indicate that a formerly enqueued task is complete. Used by queue " +"consumers. For each :meth:`~Queue.get` used to fetch a task, a subsequent " +"call to :meth:`task_done` tells the queue that the processing on the task is " "complete." msgstr "" -#: ../../library/multiprocessing.rst:886 +#: ../../library/multiprocessing.rst:887 msgid "" "If a :meth:`~queue.Queue.join` is currently blocking, it will resume when " "all items have been processed (meaning that a :meth:`task_done` call was " "received for every item that had been :meth:`~Queue.put` into the queue)." msgstr "" -#: ../../library/multiprocessing.rst:890 +#: ../../library/multiprocessing.rst:891 msgid "" -"Raises a :exc:`ValueError` if called more times than there were items placed" -" in the queue." +"Raises a :exc:`ValueError` if called more times than there were items placed " +"in the queue." msgstr "" -#: ../../library/multiprocessing.rst:896 +#: ../../library/multiprocessing.rst:897 msgid "Block until all items in the queue have been gotten and processed." msgstr "" -#: ../../library/multiprocessing.rst:898 +#: ../../library/multiprocessing.rst:899 msgid "" "The count of unfinished tasks goes up whenever an item is added to the " "queue. The count goes down whenever a consumer calls :meth:`task_done` to " @@ -962,76 +959,76 @@ msgid "" "unblocks." msgstr "" -#: ../../library/multiprocessing.rst:906 +#: ../../library/multiprocessing.rst:907 msgid "Miscellaneous" msgstr "Diversos" -#: ../../library/multiprocessing.rst:910 +#: ../../library/multiprocessing.rst:911 msgid "Return list of all live children of the current process." msgstr "" -#: ../../library/multiprocessing.rst:912 +#: ../../library/multiprocessing.rst:913 msgid "" "Calling this has the side effect of \"joining\" any processes which have " "already finished." msgstr "" -#: ../../library/multiprocessing.rst:917 +#: ../../library/multiprocessing.rst:918 msgid "Return the number of CPUs in the system." msgstr "" -#: ../../library/multiprocessing.rst:919 +#: ../../library/multiprocessing.rst:920 msgid "" "This number is not equivalent to the number of CPUs the current process can " -"use. The number of usable CPUs can be obtained with " -"``len(os.sched_getaffinity(0))``" +"use. The number of usable CPUs can be obtained with ``len(os." +"sched_getaffinity(0))``" msgstr "" -#: ../../library/multiprocessing.rst:923 +#: ../../library/multiprocessing.rst:924 msgid "May raise :exc:`NotImplementedError`." msgstr "" -#: ../../library/multiprocessing.rst:926 +#: ../../library/multiprocessing.rst:927 msgid ":func:`os.cpu_count`" msgstr ":func:`os.cpu_count`" -#: ../../library/multiprocessing.rst:930 +#: ../../library/multiprocessing.rst:931 msgid "" "Return the :class:`Process` object corresponding to the current process." msgstr "" -#: ../../library/multiprocessing.rst:932 +#: ../../library/multiprocessing.rst:933 msgid "An analogue of :func:`threading.current_thread`." msgstr "" -#: ../../library/multiprocessing.rst:936 +#: ../../library/multiprocessing.rst:937 msgid "" "Add support for when a program which uses :mod:`multiprocessing` has been " "frozen to produce a Windows executable. (Has been tested with **py2exe**, " "**PyInstaller** and **cx_Freeze**.)" msgstr "" -#: ../../library/multiprocessing.rst:940 +#: ../../library/multiprocessing.rst:941 msgid "" "One needs to call this function straight after the ``if __name__ == " "'__main__'`` line of the main module. For example::" msgstr "" -#: ../../library/multiprocessing.rst:952 +#: ../../library/multiprocessing.rst:953 msgid "" "If the ``freeze_support()`` line is omitted then trying to run the frozen " "executable will raise :exc:`RuntimeError`." msgstr "" -#: ../../library/multiprocessing.rst:955 +#: ../../library/multiprocessing.rst:956 msgid "" "Calling ``freeze_support()`` has no effect when invoked on any operating " -"system other than Windows. In addition, if the module is being run normally" -" by the Python interpreter on Windows (the program has not been frozen), " -"then ``freeze_support()`` has no effect." +"system other than Windows. In addition, if the module is being run normally " +"by the Python interpreter on Windows (the program has not been frozen), then " +"``freeze_support()`` has no effect." msgstr "" -#: ../../library/multiprocessing.rst:962 +#: ../../library/multiprocessing.rst:963 msgid "" "Returns a list of the supported start methods, the first of which is the " "default. The possible start methods are ``'fork'``, ``'spawn'`` and " @@ -1040,172 +1037,169 @@ msgid "" "default." msgstr "" -#: ../../library/multiprocessing.rst:972 +#: ../../library/multiprocessing.rst:973 msgid "" -"Return a context object which has the same attributes as the " -":mod:`multiprocessing` module." +"Return a context object which has the same attributes as the :mod:" +"`multiprocessing` module." msgstr "" -#: ../../library/multiprocessing.rst:975 +#: ../../library/multiprocessing.rst:976 msgid "" "If *method* is ``None`` then the default context is returned. Otherwise " -"*method* should be ``'fork'``, ``'spawn'``, ``'forkserver'``. " -":exc:`ValueError` is raised if the specified start method is not available." +"*method* should be ``'fork'``, ``'spawn'``, ``'forkserver'``. :exc:" +"`ValueError` is raised if the specified start method is not available." msgstr "" -#: ../../library/multiprocessing.rst:984 +#: ../../library/multiprocessing.rst:985 msgid "Return the name of start method used for starting processes." msgstr "" -#: ../../library/multiprocessing.rst:986 +#: ../../library/multiprocessing.rst:987 msgid "" "If the start method has not been fixed and *allow_none* is false, then the " -"start method is fixed to the default and the name is returned. If the start" -" method has not been fixed and *allow_none* is true then ``None`` is " -"returned." +"start method is fixed to the default and the name is returned. If the start " +"method has not been fixed and *allow_none* is true then ``None`` is returned." msgstr "" -#: ../../library/multiprocessing.rst:991 +#: ../../library/multiprocessing.rst:992 msgid "" "The return value can be ``'fork'``, ``'spawn'``, ``'forkserver'`` or " "``None``. ``'fork'`` is the default on Unix, while ``'spawn'`` is the " "default on Windows." msgstr "" -#: ../../library/multiprocessing.rst:999 +#: ../../library/multiprocessing.rst:1000 msgid "" "Sets the path of the Python interpreter to use when starting a child " "process. (By default :data:`sys.executable` is used). Embedders will " "probably need to do some thing like ::" msgstr "" -#: ../../library/multiprocessing.rst:1005 +#: ../../library/multiprocessing.rst:1006 msgid "before they can create child processes." msgstr "" -#: ../../library/multiprocessing.rst:1007 +#: ../../library/multiprocessing.rst:1008 msgid "Now supported on Unix when the ``'spawn'`` start method is used." msgstr "" -#: ../../library/multiprocessing.rst:1012 +#: ../../library/multiprocessing.rst:1013 msgid "" "Set the method which should be used to start child processes. *method* can " "be ``'fork'``, ``'spawn'`` or ``'forkserver'``." msgstr "" -#: ../../library/multiprocessing.rst:1015 +#: ../../library/multiprocessing.rst:1016 msgid "" "Note that this should be called at most once, and it should be protected " "inside the ``if __name__ == '__main__'`` clause of the main module." msgstr "" -#: ../../library/multiprocessing.rst:1023 +#: ../../library/multiprocessing.rst:1024 msgid "" -":mod:`multiprocessing` contains no analogues of " -":func:`threading.active_count`, :func:`threading.enumerate`, " -":func:`threading.settrace`, :func:`threading.setprofile`, " -":class:`threading.Timer`, or :class:`threading.local`." +":mod:`multiprocessing` contains no analogues of :func:`threading." +"active_count`, :func:`threading.enumerate`, :func:`threading.settrace`, :" +"func:`threading.setprofile`, :class:`threading.Timer`, or :class:`threading." +"local`." msgstr "" -#: ../../library/multiprocessing.rst:1030 +#: ../../library/multiprocessing.rst:1031 msgid "Connection Objects" msgstr "" -#: ../../library/multiprocessing.rst:1034 +#: ../../library/multiprocessing.rst:1035 msgid "" "Connection objects allow the sending and receiving of picklable objects or " "strings. They can be thought of as message oriented connected sockets." msgstr "" -#: ../../library/multiprocessing.rst:1037 +#: ../../library/multiprocessing.rst:1038 msgid "" -"Connection objects are usually created using :func:`Pipe " -"` -- see also :ref:`multiprocessing-listeners-" -"clients`." +"Connection objects are usually created using :func:`Pipe ` -- see also :ref:`multiprocessing-listeners-clients`." msgstr "" -#: ../../library/multiprocessing.rst:1045 +#: ../../library/multiprocessing.rst:1046 msgid "" -"Send an object to the other end of the connection which should be read using" -" :meth:`recv`." +"Send an object to the other end of the connection which should be read " +"using :meth:`recv`." msgstr "" -#: ../../library/multiprocessing.rst:1048 +#: ../../library/multiprocessing.rst:1049 msgid "" "The object must be picklable. Very large pickles (approximately 32 MiB+, " "though it depends on the OS) may raise a :exc:`ValueError` exception." msgstr "" -#: ../../library/multiprocessing.rst:1053 +#: ../../library/multiprocessing.rst:1054 msgid "" -"Return an object sent from the other end of the connection using " -":meth:`send`. Blocks until there is something to receive. Raises " -":exc:`EOFError` if there is nothing left to receive and the other end was " -"closed." +"Return an object sent from the other end of the connection using :meth:" +"`send`. Blocks until there is something to receive. Raises :exc:`EOFError` " +"if there is nothing left to receive and the other end was closed." msgstr "" -#: ../../library/multiprocessing.rst:1060 +#: ../../library/multiprocessing.rst:1061 msgid "Return the file descriptor or handle used by the connection." msgstr "" -#: ../../library/multiprocessing.rst:1064 +#: ../../library/multiprocessing.rst:1065 msgid "Close the connection." msgstr "" -#: ../../library/multiprocessing.rst:1066 +#: ../../library/multiprocessing.rst:1067 msgid "This is called automatically when the connection is garbage collected." msgstr "" -#: ../../library/multiprocessing.rst:1070 +#: ../../library/multiprocessing.rst:1071 msgid "Return whether there is any data available to be read." msgstr "" -#: ../../library/multiprocessing.rst:1072 +#: ../../library/multiprocessing.rst:1073 msgid "" -"If *timeout* is not specified then it will return immediately. If *timeout*" -" is a number then this specifies the maximum time in seconds to block. If " +"If *timeout* is not specified then it will return immediately. If *timeout* " +"is a number then this specifies the maximum time in seconds to block. If " "*timeout* is ``None`` then an infinite timeout is used." msgstr "" -#: ../../library/multiprocessing.rst:1076 +#: ../../library/multiprocessing.rst:1077 msgid "" -"Note that multiple connection objects may be polled at once by using " -":func:`multiprocessing.connection.wait`." +"Note that multiple connection objects may be polled at once by using :func:" +"`multiprocessing.connection.wait`." msgstr "" -#: ../../library/multiprocessing.rst:1081 +#: ../../library/multiprocessing.rst:1082 msgid "Send byte data from a :term:`bytes-like object` as a complete message." msgstr "" -#: ../../library/multiprocessing.rst:1083 +#: ../../library/multiprocessing.rst:1084 msgid "" "If *offset* is given then data is read from that position in *buffer*. If " "*size* is given then that many bytes will be read from buffer. Very large " -"buffers (approximately 32 MiB+, though it depends on the OS) may raise a " -":exc:`ValueError` exception" +"buffers (approximately 32 MiB+, though it depends on the OS) may raise a :" +"exc:`ValueError` exception" msgstr "" -#: ../../library/multiprocessing.rst:1090 +#: ../../library/multiprocessing.rst:1091 msgid "" "Return a complete message of byte data sent from the other end of the " -"connection as a string. Blocks until there is something to receive. Raises " -":exc:`EOFError` if there is nothing left to receive and the other end has " +"connection as a string. Blocks until there is something to receive. Raises :" +"exc:`EOFError` if there is nothing left to receive and the other end has " "closed." msgstr "" -#: ../../library/multiprocessing.rst:1095 +#: ../../library/multiprocessing.rst:1096 msgid "" -"If *maxlength* is specified and the message is longer than *maxlength* then " -":exc:`OSError` is raised and the connection will no longer be readable." +"If *maxlength* is specified and the message is longer than *maxlength* then :" +"exc:`OSError` is raised and the connection will no longer be readable." msgstr "" -#: ../../library/multiprocessing.rst:1099 +#: ../../library/multiprocessing.rst:1100 msgid "" -"This function used to raise :exc:`IOError`, which is now an alias of " -":exc:`OSError`." +"This function used to raise :exc:`IOError`, which is now an alias of :exc:" +"`OSError`." msgstr "" -#: ../../library/multiprocessing.rst:1106 +#: ../../library/multiprocessing.rst:1107 msgid "" "Read into *buffer* a complete message of byte data sent from the other end " "of the connection and return the number of bytes in the message. Blocks " @@ -1213,169 +1207,167 @@ msgid "" "nothing left to receive and the other end was closed." msgstr "" -#: ../../library/multiprocessing.rst:1112 +#: ../../library/multiprocessing.rst:1113 msgid "" -"*buffer* must be a writable :term:`bytes-like object`. If *offset* is given" -" then the message will be written into the buffer from that position. " -"Offset must be a non-negative integer less than the length of *buffer* (in " -"bytes)." +"*buffer* must be a writable :term:`bytes-like object`. If *offset* is given " +"then the message will be written into the buffer from that position. Offset " +"must be a non-negative integer less than the length of *buffer* (in bytes)." msgstr "" -#: ../../library/multiprocessing.rst:1117 +#: ../../library/multiprocessing.rst:1118 msgid "" "If the buffer is too short then a :exc:`BufferTooShort` exception is raised " "and the complete message is available as ``e.args[0]`` where ``e`` is the " "exception instance." msgstr "" -#: ../../library/multiprocessing.rst:1121 +#: ../../library/multiprocessing.rst:1122 msgid "" -"Connection objects themselves can now be transferred between processes using" -" :meth:`Connection.send` and :meth:`Connection.recv`." +"Connection objects themselves can now be transferred between processes " +"using :meth:`Connection.send` and :meth:`Connection.recv`." msgstr "" -#: ../../library/multiprocessing.rst:1125 +#: ../../library/multiprocessing.rst:1126 msgid "" -"Connection objects now support the context management protocol -- see " -":ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " +"Connection objects now support the context management protocol -- see :ref:" +"`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " "connection object, and :meth:`~contextmanager.__exit__` calls :meth:`close`." msgstr "" -#: ../../library/multiprocessing.rst:1130 +#: ../../library/multiprocessing.rst:1131 msgid "For example:" msgstr "Por exemplo:" -#: ../../library/multiprocessing.rst:1154 +#: ../../library/multiprocessing.rst:1155 msgid "" "The :meth:`Connection.recv` method automatically unpickles the data it " "receives, which can be a security risk unless you can trust the process " "which sent the message." msgstr "" -#: ../../library/multiprocessing.rst:1158 +#: ../../library/multiprocessing.rst:1159 msgid "" "Therefore, unless the connection object was produced using :func:`Pipe` you " "should only use the :meth:`~Connection.recv` and :meth:`~Connection.send` " -"methods after performing some sort of authentication. See :ref" -":`multiprocessing-auth-keys`." +"methods after performing some sort of authentication. See :ref:" +"`multiprocessing-auth-keys`." msgstr "" -#: ../../library/multiprocessing.rst:1165 +#: ../../library/multiprocessing.rst:1166 msgid "" "If a process is killed while it is trying to read or write to a pipe then " "the data in the pipe is likely to become corrupted, because it may become " "impossible to be sure where the message boundaries lie." msgstr "" -#: ../../library/multiprocessing.rst:1171 +#: ../../library/multiprocessing.rst:1172 msgid "Synchronization primitives" msgstr "" -#: ../../library/multiprocessing.rst:1175 +#: ../../library/multiprocessing.rst:1176 msgid "" "Generally synchronization primitives are not as necessary in a multiprocess " -"program as they are in a multithreaded program. See the documentation for " -":mod:`threading` module." +"program as they are in a multithreaded program. See the documentation for :" +"mod:`threading` module." msgstr "" -#: ../../library/multiprocessing.rst:1179 +#: ../../library/multiprocessing.rst:1180 msgid "" "Note that one can also create synchronization primitives by using a manager " "object -- see :ref:`multiprocessing-managers`." msgstr "" -#: ../../library/multiprocessing.rst:1184 +#: ../../library/multiprocessing.rst:1185 msgid "A barrier object: a clone of :class:`threading.Barrier`." msgstr "" -#: ../../library/multiprocessing.rst:1190 +#: ../../library/multiprocessing.rst:1191 msgid "" -"A bounded semaphore object: a close analog of " -":class:`threading.BoundedSemaphore`." +"A bounded semaphore object: a close analog of :class:`threading." +"BoundedSemaphore`." msgstr "" -#: ../../library/multiprocessing.rst:1193 -#: ../../library/multiprocessing.rst:1331 +#: ../../library/multiprocessing.rst:1194 +#: ../../library/multiprocessing.rst:1332 msgid "" -"A solitary difference from its close analog exists: its ``acquire`` method's" -" first argument is named *block*, as is consistent with " -":meth:`Lock.acquire`." +"A solitary difference from its close analog exists: its ``acquire`` method's " +"first argument is named *block*, as is consistent with :meth:`Lock.acquire`." msgstr "" -#: ../../library/multiprocessing.rst:1197 +#: ../../library/multiprocessing.rst:1198 msgid "" "On Mac OS X, this is indistinguishable from :class:`Semaphore` because " "``sem_getvalue()`` is not implemented on that platform." msgstr "" -#: ../../library/multiprocessing.rst:1202 +#: ../../library/multiprocessing.rst:1203 msgid "A condition variable: an alias for :class:`threading.Condition`." msgstr "" -#: ../../library/multiprocessing.rst:1204 +#: ../../library/multiprocessing.rst:1205 msgid "" "If *lock* is specified then it should be a :class:`Lock` or :class:`RLock` " "object from :mod:`multiprocessing`." msgstr "" -#: ../../library/multiprocessing.rst:1207 -#: ../../library/multiprocessing.rst:1741 +#: ../../library/multiprocessing.rst:1208 +#: ../../library/multiprocessing.rst:1742 msgid "The :meth:`~threading.Condition.wait_for` method was added." msgstr "" -#: ../../library/multiprocessing.rst:1212 +#: ../../library/multiprocessing.rst:1213 msgid "A clone of :class:`threading.Event`." msgstr "" -#: ../../library/multiprocessing.rst:1217 +#: ../../library/multiprocessing.rst:1218 msgid "" -"A non-recursive lock object: a close analog of :class:`threading.Lock`. Once" -" a process or thread has acquired a lock, subsequent attempts to acquire it " +"A non-recursive lock object: a close analog of :class:`threading.Lock`. Once " +"a process or thread has acquired a lock, subsequent attempts to acquire it " "from any process or thread will block until it is released; any process or " -"thread may release it. The concepts and behaviors of " -":class:`threading.Lock` as it applies to threads are replicated here in " -":class:`multiprocessing.Lock` as it applies to either processes or threads, " -"except as noted." +"thread may release it. The concepts and behaviors of :class:`threading." +"Lock` as it applies to threads are replicated here in :class:" +"`multiprocessing.Lock` as it applies to either processes or threads, except " +"as noted." msgstr "" -#: ../../library/multiprocessing.rst:1225 +#: ../../library/multiprocessing.rst:1226 msgid "" "Note that :class:`Lock` is actually a factory function which returns an " "instance of ``multiprocessing.synchronize.Lock`` initialized with a default " "context." msgstr "" -#: ../../library/multiprocessing.rst:1229 +#: ../../library/multiprocessing.rst:1230 msgid "" ":class:`Lock` supports the :term:`context manager` protocol and thus may be " "used in :keyword:`with` statements." msgstr "" -#: ../../library/multiprocessing.rst:1234 -#: ../../library/multiprocessing.rst:1285 +#: ../../library/multiprocessing.rst:1235 +#: ../../library/multiprocessing.rst:1286 msgid "Acquire a lock, blocking or non-blocking." msgstr "" -#: ../../library/multiprocessing.rst:1236 +#: ../../library/multiprocessing.rst:1237 msgid "" "With the *block* argument set to ``True`` (the default), the method call " -"will block until the lock is in an unlocked state, then set it to locked and" -" return ``True``. Note that the name of this first argument differs from " +"will block until the lock is in an unlocked state, then set it to locked and " +"return ``True``. Note that the name of this first argument differs from " "that in :meth:`threading.Lock.acquire`." msgstr "" -#: ../../library/multiprocessing.rst:1241 +#: ../../library/multiprocessing.rst:1242 msgid "" -"With the *block* argument set to ``False``, the method call does not block." -" If the lock is currently in a locked state, return ``False``; otherwise " -"set the lock to a locked state and return ``True``." +"With the *block* argument set to ``False``, the method call does not block. " +"If the lock is currently in a locked state, return ``False``; otherwise set " +"the lock to a locked state and return ``True``." msgstr "" -#: ../../library/multiprocessing.rst:1245 +#: ../../library/multiprocessing.rst:1246 msgid "" "When invoked with a positive, floating-point value for *timeout*, block for " -"at most the number of seconds specified by *timeout* as long as the lock can" -" not be acquired. Invocations with a negative value for *timeout* are " +"at most the number of seconds specified by *timeout* as long as the lock can " +"not be acquired. Invocations with a negative value for *timeout* are " "equivalent to a *timeout* of zero. Invocations with a *timeout* value of " "``None`` (the default) set the timeout period to infinite. Note that the " "treatment of negative or ``None`` values for *timeout* differs from the " @@ -1385,19 +1377,19 @@ msgid "" "acquired or ``False`` if the timeout period has elapsed." msgstr "" -#: ../../library/multiprocessing.rst:1260 +#: ../../library/multiprocessing.rst:1261 msgid "" -"Release a lock. This can be called from any process or thread, not only the" -" process or thread which originally acquired the lock." +"Release a lock. This can be called from any process or thread, not only the " +"process or thread which originally acquired the lock." msgstr "" -#: ../../library/multiprocessing.rst:1263 +#: ../../library/multiprocessing.rst:1264 msgid "" "Behavior is the same as in :meth:`threading.Lock.release` except that when " "invoked on an unlocked lock, a :exc:`ValueError` is raised." msgstr "" -#: ../../library/multiprocessing.rst:1269 +#: ../../library/multiprocessing.rst:1270 msgid "" "A recursive lock object: a close analog of :class:`threading.RLock`. A " "recursive lock must be released by the process or thread that acquired it. " @@ -1406,165 +1398,164 @@ msgid "" "release it once for each time it has been acquired." msgstr "" -#: ../../library/multiprocessing.rst:1275 +#: ../../library/multiprocessing.rst:1276 msgid "" "Note that :class:`RLock` is actually a factory function which returns an " -"instance of ``multiprocessing.synchronize.RLock`` initialized with a default" -" context." +"instance of ``multiprocessing.synchronize.RLock`` initialized with a default " +"context." msgstr "" -#: ../../library/multiprocessing.rst:1279 +#: ../../library/multiprocessing.rst:1280 msgid "" -":class:`RLock` supports the :term:`context manager` protocol and thus may be" -" used in :keyword:`with` statements." +":class:`RLock` supports the :term:`context manager` protocol and thus may be " +"used in :keyword:`with` statements." msgstr "" -#: ../../library/multiprocessing.rst:1287 +#: ../../library/multiprocessing.rst:1288 msgid "" -"When invoked with the *block* argument set to ``True``, block until the lock" -" is in an unlocked state (not owned by any process or thread) unless the " -"lock is already owned by the current process or thread. The current process" -" or thread then takes ownership of the lock (if it does not already have " +"When invoked with the *block* argument set to ``True``, block until the lock " +"is in an unlocked state (not owned by any process or thread) unless the lock " +"is already owned by the current process or thread. The current process or " +"thread then takes ownership of the lock (if it does not already have " "ownership) and the recursion level inside the lock increments by one, " "resulting in a return value of ``True``. Note that there are several " -"differences in this first argument's behavior compared to the implementation" -" of :meth:`threading.RLock.acquire`, starting with the name of the argument " +"differences in this first argument's behavior compared to the implementation " +"of :meth:`threading.RLock.acquire`, starting with the name of the argument " "itself." msgstr "" -#: ../../library/multiprocessing.rst:1297 +#: ../../library/multiprocessing.rst:1298 msgid "" "When invoked with the *block* argument set to ``False``, do not block. If " -"the lock has already been acquired (and thus is owned) by another process or" -" thread, the current process or thread does not take ownership and the " +"the lock has already been acquired (and thus is owned) by another process or " +"thread, the current process or thread does not take ownership and the " "recursion level within the lock is not changed, resulting in a return value " "of ``False``. If the lock is in an unlocked state, the current process or " "thread takes ownership and the recursion level is incremented, resulting in " "a return value of ``True``." msgstr "" -#: ../../library/multiprocessing.rst:1305 +#: ../../library/multiprocessing.rst:1306 msgid "" -"Use and behaviors of the *timeout* argument are the same as in " -":meth:`Lock.acquire`. Note that some of these behaviors of *timeout* differ" -" from the implemented behaviors in :meth:`threading.RLock.acquire`." +"Use and behaviors of the *timeout* argument are the same as in :meth:`Lock." +"acquire`. Note that some of these behaviors of *timeout* differ from the " +"implemented behaviors in :meth:`threading.RLock.acquire`." msgstr "" -#: ../../library/multiprocessing.rst:1312 +#: ../../library/multiprocessing.rst:1313 msgid "" "Release a lock, decrementing the recursion level. If after the decrement " "the recursion level is zero, reset the lock to unlocked (not owned by any " -"process or thread) and if any other processes or threads are blocked waiting" -" for the lock to become unlocked, allow exactly one of them to proceed. If " +"process or thread) and if any other processes or threads are blocked waiting " +"for the lock to become unlocked, allow exactly one of them to proceed. If " "after the decrement the recursion level is still nonzero, the lock remains " "locked and owned by the calling process or thread." msgstr "" -#: ../../library/multiprocessing.rst:1320 +#: ../../library/multiprocessing.rst:1321 msgid "" -"Only call this method when the calling process or thread owns the lock. An " -":exc:`AssertionError` is raised if this method is called by a process or " +"Only call this method when the calling process or thread owns the lock. An :" +"exc:`AssertionError` is raised if this method is called by a process or " "thread other than the owner or if the lock is in an unlocked (unowned) " "state. Note that the type of exception raised in this situation differs " "from the implemented behavior in :meth:`threading.RLock.release`." msgstr "" -#: ../../library/multiprocessing.rst:1329 +#: ../../library/multiprocessing.rst:1330 msgid "A semaphore object: a close analog of :class:`threading.Semaphore`." msgstr "" -#: ../../library/multiprocessing.rst:1336 +#: ../../library/multiprocessing.rst:1337 msgid "" -"On Mac OS X, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with" -" a timeout will emulate that function's behavior using a sleeping loop." +"On Mac OS X, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with " +"a timeout will emulate that function's behavior using a sleeping loop." msgstr "" -#: ../../library/multiprocessing.rst:1341 +#: ../../library/multiprocessing.rst:1342 msgid "" "If the SIGINT signal generated by :kbd:`Ctrl-C` arrives while the main " -"thread is blocked by a call to :meth:`BoundedSemaphore.acquire`, " -":meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Semaphore.acquire`, " -":meth:`Condition.acquire` or :meth:`Condition.wait` then the call will be " -"immediately interrupted and :exc:`KeyboardInterrupt` will be raised." +"thread is blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock." +"acquire`, :meth:`RLock.acquire`, :meth:`Semaphore.acquire`, :meth:`Condition." +"acquire` or :meth:`Condition.wait` then the call will be immediately " +"interrupted and :exc:`KeyboardInterrupt` will be raised." msgstr "" -#: ../../library/multiprocessing.rst:1347 +#: ../../library/multiprocessing.rst:1348 msgid "" "This differs from the behaviour of :mod:`threading` where SIGINT will be " "ignored while the equivalent blocking calls are in progress." msgstr "" -#: ../../library/multiprocessing.rst:1352 +#: ../../library/multiprocessing.rst:1353 msgid "" -"Some of this package's functionality requires a functioning shared semaphore" -" implementation on the host operating system. Without one, the " -":mod:`multiprocessing.synchronize` module will be disabled, and attempts to " +"Some of this package's functionality requires a functioning shared semaphore " +"implementation on the host operating system. Without one, the :mod:" +"`multiprocessing.synchronize` module will be disabled, and attempts to " "import it will result in an :exc:`ImportError`. See :issue:`3770` for " "additional information." msgstr "" -#: ../../library/multiprocessing.rst:1360 +#: ../../library/multiprocessing.rst:1361 msgid "Shared :mod:`ctypes` Objects" msgstr "" -#: ../../library/multiprocessing.rst:1362 +#: ../../library/multiprocessing.rst:1363 msgid "" "It is possible to create shared objects using shared memory which can be " "inherited by child processes." msgstr "" -#: ../../library/multiprocessing.rst:1367 +#: ../../library/multiprocessing.rst:1368 msgid "" "Return a :mod:`ctypes` object allocated from shared memory. By default the " "return value is actually a synchronized wrapper for the object. The object " "itself can be accessed via the *value* attribute of a :class:`Value`." msgstr "" -#: ../../library/multiprocessing.rst:1371 -#: ../../library/multiprocessing.rst:1458 +#: ../../library/multiprocessing.rst:1372 +#: ../../library/multiprocessing.rst:1459 msgid "" "*typecode_or_type* determines the type of the returned object: it is either " -"a ctypes type or a one character typecode of the kind used by the " -":mod:`array` module. *\\*args* is passed on to the constructor for the " -"type." +"a ctypes type or a one character typecode of the kind used by the :mod:" +"`array` module. *\\*args* is passed on to the constructor for the type." msgstr "" -#: ../../library/multiprocessing.rst:1375 +#: ../../library/multiprocessing.rst:1376 msgid "" "If *lock* is ``True`` (the default) then a new recursive lock object is " -"created to synchronize access to the value. If *lock* is a :class:`Lock` or" -" :class:`RLock` object then that will be used to synchronize access to the " +"created to synchronize access to the value. If *lock* is a :class:`Lock` " +"or :class:`RLock` object then that will be used to synchronize access to the " "value. If *lock* is ``False`` then access to the returned object will not " "be automatically protected by a lock, so it will not necessarily be " "\"process-safe\"." msgstr "" -#: ../../library/multiprocessing.rst:1382 +#: ../../library/multiprocessing.rst:1383 msgid "" "Operations like ``+=`` which involve a read and write are not atomic. So " "if, for instance, you want to atomically increment a shared value it is " "insufficient to just do ::" msgstr "" -#: ../../library/multiprocessing.rst:1388 +#: ../../library/multiprocessing.rst:1389 msgid "" "Assuming the associated lock is recursive (which it is by default) you can " "instead do ::" msgstr "" -#: ../../library/multiprocessing.rst:1394 -#: ../../library/multiprocessing.rst:1484 -#: ../../library/multiprocessing.rst:1499 +#: ../../library/multiprocessing.rst:1395 +#: ../../library/multiprocessing.rst:1485 +#: ../../library/multiprocessing.rst:1500 msgid "Note that *lock* is a keyword-only argument." msgstr "" -#: ../../library/multiprocessing.rst:1398 +#: ../../library/multiprocessing.rst:1399 msgid "" "Return a ctypes array allocated from shared memory. By default the return " "value is actually a synchronized wrapper for the array." msgstr "" -#: ../../library/multiprocessing.rst:1401 +#: ../../library/multiprocessing.rst:1402 msgid "" "*typecode_or_type* determines the type of the elements of the returned " "array: it is either a ctypes type or a one character typecode of the kind " @@ -1574,51 +1565,51 @@ msgid "" "initialize the array and whose length determines the length of the array." msgstr "" -#: ../../library/multiprocessing.rst:1408 +#: ../../library/multiprocessing.rst:1409 msgid "" "If *lock* is ``True`` (the default) then a new lock object is created to " -"synchronize access to the value. If *lock* is a :class:`Lock` or " -":class:`RLock` object then that will be used to synchronize access to the " -"value. If *lock* is ``False`` then access to the returned object will not " -"be automatically protected by a lock, so it will not necessarily be " -"\"process-safe\"." +"synchronize access to the value. If *lock* is a :class:`Lock` or :class:" +"`RLock` object then that will be used to synchronize access to the value. " +"If *lock* is ``False`` then access to the returned object will not be " +"automatically protected by a lock, so it will not necessarily be \"process-" +"safe\"." msgstr "" -#: ../../library/multiprocessing.rst:1415 +#: ../../library/multiprocessing.rst:1416 msgid "Note that *lock* is a keyword only argument." msgstr "" -#: ../../library/multiprocessing.rst:1417 +#: ../../library/multiprocessing.rst:1418 msgid "" -"Note that an array of :data:`ctypes.c_char` has *value* and *raw* attributes" -" which allow one to use it to store and retrieve strings." +"Note that an array of :data:`ctypes.c_char` has *value* and *raw* attributes " +"which allow one to use it to store and retrieve strings." msgstr "" -#: ../../library/multiprocessing.rst:1422 +#: ../../library/multiprocessing.rst:1423 msgid "The :mod:`multiprocessing.sharedctypes` module" msgstr "" -#: ../../library/multiprocessing.rst:1427 +#: ../../library/multiprocessing.rst:1428 msgid "" "The :mod:`multiprocessing.sharedctypes` module provides functions for " "allocating :mod:`ctypes` objects from shared memory which can be inherited " "by child processes." msgstr "" -#: ../../library/multiprocessing.rst:1433 +#: ../../library/multiprocessing.rst:1434 msgid "" "Although it is possible to store a pointer in shared memory remember that " "this will refer to a location in the address space of a specific process. " "However, the pointer is quite likely to be invalid in the context of a " -"second process and trying to dereference the pointer from the second process" -" may cause a crash." +"second process and trying to dereference the pointer from the second process " +"may cause a crash." msgstr "" -#: ../../library/multiprocessing.rst:1441 +#: ../../library/multiprocessing.rst:1442 msgid "Return a ctypes array allocated from shared memory." msgstr "" -#: ../../library/multiprocessing.rst:1443 +#: ../../library/multiprocessing.rst:1444 msgid "" "*typecode_or_type* determines the type of the elements of the returned " "array: it is either a ctypes type or a one character typecode of the kind " @@ -1628,173 +1619,173 @@ msgid "" "initialize the array and whose length determines the length of the array." msgstr "" -#: ../../library/multiprocessing.rst:1450 +#: ../../library/multiprocessing.rst:1451 msgid "" -"Note that setting and getting an element is potentially non-atomic -- use " -":func:`Array` instead to make sure that access is automatically synchronized" -" using a lock." +"Note that setting and getting an element is potentially non-atomic -- use :" +"func:`Array` instead to make sure that access is automatically synchronized " +"using a lock." msgstr "" -#: ../../library/multiprocessing.rst:1456 +#: ../../library/multiprocessing.rst:1457 msgid "Return a ctypes object allocated from shared memory." msgstr "" -#: ../../library/multiprocessing.rst:1462 +#: ../../library/multiprocessing.rst:1463 msgid "" -"Note that setting and getting the value is potentially non-atomic -- use " -":func:`Value` instead to make sure that access is automatically synchronized" -" using a lock." +"Note that setting and getting the value is potentially non-atomic -- use :" +"func:`Value` instead to make sure that access is automatically synchronized " +"using a lock." msgstr "" -#: ../../library/multiprocessing.rst:1466 +#: ../../library/multiprocessing.rst:1467 msgid "" "Note that an array of :data:`ctypes.c_char` has ``value`` and ``raw`` " "attributes which allow one to use it to store and retrieve strings -- see " "documentation for :mod:`ctypes`." msgstr "" -#: ../../library/multiprocessing.rst:1472 +#: ../../library/multiprocessing.rst:1473 msgid "" "The same as :func:`RawArray` except that depending on the value of *lock* a " -"process-safe synchronization wrapper may be returned instead of a raw ctypes" -" array." +"process-safe synchronization wrapper may be returned instead of a raw ctypes " +"array." msgstr "" -#: ../../library/multiprocessing.rst:1476 -#: ../../library/multiprocessing.rst:1492 +#: ../../library/multiprocessing.rst:1477 +#: ../../library/multiprocessing.rst:1493 msgid "" "If *lock* is ``True`` (the default) then a new lock object is created to " -"synchronize access to the value. If *lock* is a " -":class:`~multiprocessing.Lock` or :class:`~multiprocessing.RLock` object " -"then that will be used to synchronize access to the value. If *lock* is " -"``False`` then access to the returned object will not be automatically " -"protected by a lock, so it will not necessarily be \"process-safe\"." +"synchronize access to the value. If *lock* is a :class:`~multiprocessing." +"Lock` or :class:`~multiprocessing.RLock` object then that will be used to " +"synchronize access to the value. If *lock* is ``False`` then access to the " +"returned object will not be automatically protected by a lock, so it will " +"not necessarily be \"process-safe\"." msgstr "" -#: ../../library/multiprocessing.rst:1488 +#: ../../library/multiprocessing.rst:1489 msgid "" "The same as :func:`RawValue` except that depending on the value of *lock* a " -"process-safe synchronization wrapper may be returned instead of a raw ctypes" -" object." +"process-safe synchronization wrapper may be returned instead of a raw ctypes " +"object." msgstr "" -#: ../../library/multiprocessing.rst:1503 +#: ../../library/multiprocessing.rst:1504 msgid "" "Return a ctypes object allocated from shared memory which is a copy of the " "ctypes object *obj*." msgstr "" -#: ../../library/multiprocessing.rst:1508 +#: ../../library/multiprocessing.rst:1509 msgid "" "Return a process-safe wrapper object for a ctypes object which uses *lock* " -"to synchronize access. If *lock* is ``None`` (the default) then a " -":class:`multiprocessing.RLock` object is created automatically." +"to synchronize access. If *lock* is ``None`` (the default) then a :class:" +"`multiprocessing.RLock` object is created automatically." msgstr "" -#: ../../library/multiprocessing.rst:1512 +#: ../../library/multiprocessing.rst:1513 msgid "" "A synchronized wrapper will have two methods in addition to those of the " -"object it wraps: :meth:`get_obj` returns the wrapped object and " -":meth:`get_lock` returns the lock object used for synchronization." +"object it wraps: :meth:`get_obj` returns the wrapped object and :meth:" +"`get_lock` returns the lock object used for synchronization." msgstr "" -#: ../../library/multiprocessing.rst:1516 +#: ../../library/multiprocessing.rst:1517 msgid "" "Note that accessing the ctypes object through the wrapper can be a lot " "slower than accessing the raw ctypes object." msgstr "" -#: ../../library/multiprocessing.rst:1519 +#: ../../library/multiprocessing.rst:1520 msgid "Synchronized objects support the :term:`context manager` protocol." msgstr "" -#: ../../library/multiprocessing.rst:1523 +#: ../../library/multiprocessing.rst:1524 msgid "" "The table below compares the syntax for creating shared ctypes objects from " "shared memory with the normal ctypes syntax. (In the table ``MyStruct`` is " "some subclass of :class:`ctypes.Structure`.)" msgstr "" -#: ../../library/multiprocessing.rst:1528 +#: ../../library/multiprocessing.rst:1529 msgid "ctypes" msgstr "ctypes" -#: ../../library/multiprocessing.rst:1528 +#: ../../library/multiprocessing.rst:1529 msgid "sharedctypes using type" msgstr "sharedctypes using type" -#: ../../library/multiprocessing.rst:1528 +#: ../../library/multiprocessing.rst:1529 msgid "sharedctypes using typecode" msgstr "sharedctypes using typecode" -#: ../../library/multiprocessing.rst:1530 +#: ../../library/multiprocessing.rst:1531 msgid "c_double(2.4)" msgstr "c_double(2.4)" -#: ../../library/multiprocessing.rst:1530 +#: ../../library/multiprocessing.rst:1531 msgid "RawValue(c_double, 2.4)" msgstr "RawValue(c_double, 2.4)" -#: ../../library/multiprocessing.rst:1530 +#: ../../library/multiprocessing.rst:1531 msgid "RawValue('d', 2.4)" msgstr "RawValue('d', 2.4)" -#: ../../library/multiprocessing.rst:1531 +#: ../../library/multiprocessing.rst:1532 msgid "MyStruct(4, 6)" msgstr "MyStruct(4, 6)" -#: ../../library/multiprocessing.rst:1531 +#: ../../library/multiprocessing.rst:1532 msgid "RawValue(MyStruct, 4, 6)" msgstr "RawValue(MyStruct, 4, 6)" -#: ../../library/multiprocessing.rst:1532 +#: ../../library/multiprocessing.rst:1533 msgid "(c_short * 7)()" msgstr "(c_short * 7)()" -#: ../../library/multiprocessing.rst:1532 +#: ../../library/multiprocessing.rst:1533 msgid "RawArray(c_short, 7)" msgstr "RawArray(c_short, 7)" -#: ../../library/multiprocessing.rst:1532 +#: ../../library/multiprocessing.rst:1533 msgid "RawArray('h', 7)" msgstr "RawArray('h', 7)" -#: ../../library/multiprocessing.rst:1533 +#: ../../library/multiprocessing.rst:1534 msgid "(c_int * 3)(9, 2, 8)" msgstr "(c_int * 3)(9, 2, 8)" -#: ../../library/multiprocessing.rst:1533 +#: ../../library/multiprocessing.rst:1534 msgid "RawArray(c_int, (9, 2, 8))" msgstr "RawArray(c_int, (9, 2, 8))" -#: ../../library/multiprocessing.rst:1533 +#: ../../library/multiprocessing.rst:1534 msgid "RawArray('i', (9, 2, 8))" msgstr "RawArray('i', (9, 2, 8))" -#: ../../library/multiprocessing.rst:1537 +#: ../../library/multiprocessing.rst:1538 msgid "" -"Below is an example where a number of ctypes objects are modified by a child" -" process::" +"Below is an example where a number of ctypes objects are modified by a child " +"process::" msgstr "" -#: ../../library/multiprocessing.rst:1575 +#: ../../library/multiprocessing.rst:1576 msgid "The results printed are ::" msgstr "" -#: ../../library/multiprocessing.rst:1588 +#: ../../library/multiprocessing.rst:1589 msgid "Managers" msgstr "Gerenciadores" -#: ../../library/multiprocessing.rst:1590 +#: ../../library/multiprocessing.rst:1591 msgid "" "Managers provide a way to create data which can be shared between different " "processes, including sharing over a network between processes running on " -"different machines. A manager object controls a server process which manages" -" *shared objects*. Other processes can access the shared objects by using " +"different machines. A manager object controls a server process which manages " +"*shared objects*. Other processes can access the shared objects by using " "proxies." msgstr "" -#: ../../library/multiprocessing.rst:1598 +#: ../../library/multiprocessing.rst:1599 msgid "" "Returns a started :class:`~multiprocessing.managers.SyncManager` object " "which can be used for sharing objects between processes. The returned " @@ -1802,307 +1793,307 @@ msgid "" "will create shared objects and return corresponding proxies." msgstr "" -#: ../../library/multiprocessing.rst:1606 +#: ../../library/multiprocessing.rst:1607 msgid "" "Manager processes will be shutdown as soon as they are garbage collected or " -"their parent process exits. The manager classes are defined in the " -":mod:`multiprocessing.managers` module:" +"their parent process exits. The manager classes are defined in the :mod:" +"`multiprocessing.managers` module:" msgstr "" -#: ../../library/multiprocessing.rst:1612 +#: ../../library/multiprocessing.rst:1613 msgid "Create a BaseManager object." msgstr "Criando um objeto BaseManager." -#: ../../library/multiprocessing.rst:1614 +#: ../../library/multiprocessing.rst:1615 msgid "" -"Once created one should call :meth:`start` or " -"``get_server().serve_forever()`` to ensure that the manager object refers to" -" a started manager process." +"Once created one should call :meth:`start` or ``get_server()." +"serve_forever()`` to ensure that the manager object refers to a started " +"manager process." msgstr "" -#: ../../library/multiprocessing.rst:1617 +#: ../../library/multiprocessing.rst:1618 msgid "" "*address* is the address on which the manager process listens for new " "connections. If *address* is ``None`` then an arbitrary one is chosen." msgstr "" -#: ../../library/multiprocessing.rst:1620 +#: ../../library/multiprocessing.rst:1621 msgid "" -"*authkey* is the authentication key which will be used to check the validity" -" of incoming connections to the server process. If *authkey* is ``None`` " +"*authkey* is the authentication key which will be used to check the validity " +"of incoming connections to the server process. If *authkey* is ``None`` " "then ``current_process().authkey`` is used. Otherwise *authkey* is used and " "it must be a byte string." msgstr "" -#: ../../library/multiprocessing.rst:1627 +#: ../../library/multiprocessing.rst:1628 msgid "" "Start a subprocess to start the manager. If *initializer* is not ``None`` " "then the subprocess will call ``initializer(*initargs)`` when it starts." msgstr "" -#: ../../library/multiprocessing.rst:1632 +#: ../../library/multiprocessing.rst:1633 msgid "" "Returns a :class:`Server` object which represents the actual server under " -"the control of the Manager. The :class:`Server` object supports the " -":meth:`serve_forever` method::" +"the control of the Manager. The :class:`Server` object supports the :meth:" +"`serve_forever` method::" msgstr "" -#: ../../library/multiprocessing.rst:1641 +#: ../../library/multiprocessing.rst:1642 msgid ":class:`Server` additionally has an :attr:`address` attribute." msgstr "" -#: ../../library/multiprocessing.rst:1645 +#: ../../library/multiprocessing.rst:1646 msgid "Connect a local manager object to a remote manager process::" msgstr "" -#: ../../library/multiprocessing.rst:1653 +#: ../../library/multiprocessing.rst:1654 msgid "" -"Stop the process used by the manager. This is only available if " -":meth:`start` has been used to start the server process." +"Stop the process used by the manager. This is only available if :meth:" +"`start` has been used to start the server process." msgstr "" -#: ../../library/multiprocessing.rst:1656 +#: ../../library/multiprocessing.rst:1657 msgid "This can be called multiple times." msgstr "" -#: ../../library/multiprocessing.rst:1660 +#: ../../library/multiprocessing.rst:1661 msgid "" "A classmethod which can be used for registering a type or callable with the " "manager class." msgstr "" -#: ../../library/multiprocessing.rst:1663 +#: ../../library/multiprocessing.rst:1664 msgid "" "*typeid* is a \"type identifier\" which is used to identify a particular " "type of shared object. This must be a string." msgstr "" -#: ../../library/multiprocessing.rst:1666 +#: ../../library/multiprocessing.rst:1667 msgid "" -"*callable* is a callable used for creating objects for this type identifier." -" If a manager instance will be connected to the server using the " -":meth:`connect` method, or if the *create_method* argument is ``False`` then" -" this can be left as ``None``." +"*callable* is a callable used for creating objects for this type " +"identifier. If a manager instance will be connected to the server using " +"the :meth:`connect` method, or if the *create_method* argument is ``False`` " +"then this can be left as ``None``." msgstr "" -#: ../../library/multiprocessing.rst:1672 +#: ../../library/multiprocessing.rst:1673 msgid "" "*proxytype* is a subclass of :class:`BaseProxy` which is used to create " "proxies for shared objects with this *typeid*. If ``None`` then a proxy " "class is created automatically." msgstr "" -#: ../../library/multiprocessing.rst:1676 +#: ../../library/multiprocessing.rst:1677 msgid "" "*exposed* is used to specify a sequence of method names which proxies for " -"this typeid should be allowed to access using :meth:`BaseProxy._callmethod`." -" (If *exposed* is ``None`` then :attr:`proxytype._exposed_` is used instead" -" if it exists.) In the case where no exposed list is specified, all " -"\"public methods\" of the shared object will be accessible. (Here a " +"this typeid should be allowed to access using :meth:`BaseProxy." +"_callmethod`. (If *exposed* is ``None`` then :attr:`proxytype._exposed_` is " +"used instead if it exists.) In the case where no exposed list is specified, " +"all \"public methods\" of the shared object will be accessible. (Here a " "\"public method\" means any attribute which has a :meth:`~object.__call__` " "method and whose name does not begin with ``'_'``.)" msgstr "" -#: ../../library/multiprocessing.rst:1685 +#: ../../library/multiprocessing.rst:1686 msgid "" "*method_to_typeid* is a mapping used to specify the return type of those " -"exposed methods which should return a proxy. It maps method names to typeid" -" strings. (If *method_to_typeid* is ``None`` then " -":attr:`proxytype._method_to_typeid_` is used instead if it exists.) If a " -"method's name is not a key of this mapping or if the mapping is ``None`` " -"then the object returned by the method will be copied by value." +"exposed methods which should return a proxy. It maps method names to typeid " +"strings. (If *method_to_typeid* is ``None`` then :attr:`proxytype." +"_method_to_typeid_` is used instead if it exists.) If a method's name is " +"not a key of this mapping or if the mapping is ``None`` then the object " +"returned by the method will be copied by value." msgstr "" -#: ../../library/multiprocessing.rst:1692 +#: ../../library/multiprocessing.rst:1693 msgid "" "*create_method* determines whether a method should be created with name " -"*typeid* which can be used to tell the server process to create a new shared" -" object and return a proxy for it. By default it is ``True``." +"*typeid* which can be used to tell the server process to create a new shared " +"object and return a proxy for it. By default it is ``True``." msgstr "" -#: ../../library/multiprocessing.rst:1696 +#: ../../library/multiprocessing.rst:1697 msgid ":class:`BaseManager` instances also have one read-only property:" msgstr "" -#: ../../library/multiprocessing.rst:1700 +#: ../../library/multiprocessing.rst:1701 msgid "The address used by the manager." msgstr "" -#: ../../library/multiprocessing.rst:1702 +#: ../../library/multiprocessing.rst:1703 msgid "" -"Manager objects support the context management protocol -- see " -":ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` starts the " -"server process (if it has not already started) and then returns the manager " +"Manager objects support the context management protocol -- see :ref:" +"`typecontextmanager`. :meth:`~contextmanager.__enter__` starts the server " +"process (if it has not already started) and then returns the manager " "object. :meth:`~contextmanager.__exit__` calls :meth:`shutdown`." msgstr "" -#: ../../library/multiprocessing.rst:1708 +#: ../../library/multiprocessing.rst:1709 msgid "" "In previous versions :meth:`~contextmanager.__enter__` did not start the " "manager's server process if it was not already started." msgstr "" -#: ../../library/multiprocessing.rst:1713 +#: ../../library/multiprocessing.rst:1714 msgid "" -"A subclass of :class:`BaseManager` which can be used for the synchronization" -" of processes. Objects of this type are returned by " -":func:`multiprocessing.Manager`." +"A subclass of :class:`BaseManager` which can be used for the synchronization " +"of processes. Objects of this type are returned by :func:`multiprocessing." +"Manager`." msgstr "" -#: ../../library/multiprocessing.rst:1717 +#: ../../library/multiprocessing.rst:1718 msgid "" "Its methods create and return :ref:`multiprocessing-proxy_objects` for a " -"number of commonly used data types to be synchronized across processes. This" -" notably includes shared lists and dictionaries." +"number of commonly used data types to be synchronized across processes. This " +"notably includes shared lists and dictionaries." msgstr "" -#: ../../library/multiprocessing.rst:1723 +#: ../../library/multiprocessing.rst:1724 msgid "" "Create a shared :class:`threading.Barrier` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1730 +#: ../../library/multiprocessing.rst:1731 msgid "" "Create a shared :class:`threading.BoundedSemaphore` object and return a " "proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1735 +#: ../../library/multiprocessing.rst:1736 msgid "" "Create a shared :class:`threading.Condition` object and return a proxy for " "it." msgstr "" -#: ../../library/multiprocessing.rst:1738 +#: ../../library/multiprocessing.rst:1739 msgid "" -"If *lock* is supplied then it should be a proxy for a " -":class:`threading.Lock` or :class:`threading.RLock` object." +"If *lock* is supplied then it should be a proxy for a :class:`threading." +"Lock` or :class:`threading.RLock` object." msgstr "" -#: ../../library/multiprocessing.rst:1746 +#: ../../library/multiprocessing.rst:1747 msgid "" "Create a shared :class:`threading.Event` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1750 +#: ../../library/multiprocessing.rst:1751 msgid "" "Create a shared :class:`threading.Lock` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1754 +#: ../../library/multiprocessing.rst:1755 msgid "Create a shared :class:`Namespace` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1758 +#: ../../library/multiprocessing.rst:1759 msgid "Create a shared :class:`queue.Queue` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1762 +#: ../../library/multiprocessing.rst:1763 msgid "" "Create a shared :class:`threading.RLock` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1766 +#: ../../library/multiprocessing.rst:1767 msgid "" "Create a shared :class:`threading.Semaphore` object and return a proxy for " "it." msgstr "" -#: ../../library/multiprocessing.rst:1771 +#: ../../library/multiprocessing.rst:1772 msgid "Create an array and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1775 +#: ../../library/multiprocessing.rst:1776 msgid "" "Create an object with a writable ``value`` attribute and return a proxy for " "it." msgstr "" -#: ../../library/multiprocessing.rst:1782 +#: ../../library/multiprocessing.rst:1783 msgid "Create a shared :class:`dict` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1787 +#: ../../library/multiprocessing.rst:1788 msgid "Create a shared :class:`list` object and return a proxy for it." msgstr "" -#: ../../library/multiprocessing.rst:1789 +#: ../../library/multiprocessing.rst:1790 msgid "" -"Shared objects are capable of being nested. For example, a shared container" -" object such as a shared list can contain other shared objects which will " -"all be managed and synchronized by the :class:`SyncManager`." +"Shared objects are capable of being nested. For example, a shared container " +"object such as a shared list can contain other shared objects which will all " +"be managed and synchronized by the :class:`SyncManager`." msgstr "" -#: ../../library/multiprocessing.rst:1796 +#: ../../library/multiprocessing.rst:1797 msgid "A type that can register with :class:`SyncManager`." msgstr "" -#: ../../library/multiprocessing.rst:1798 +#: ../../library/multiprocessing.rst:1799 msgid "" -"A namespace object has no public methods, but does have writable attributes." -" Its representation shows the values of its attributes." +"A namespace object has no public methods, but does have writable attributes. " +"Its representation shows the values of its attributes." msgstr "" -#: ../../library/multiprocessing.rst:1801 +#: ../../library/multiprocessing.rst:1802 msgid "" "However, when using a proxy for a namespace object, an attribute beginning " "with ``'_'`` will be an attribute of the proxy and not an attribute of the " "referent:" msgstr "" -#: ../../library/multiprocessing.rst:1817 +#: ../../library/multiprocessing.rst:1818 msgid "Customized managers" msgstr "" -#: ../../library/multiprocessing.rst:1819 +#: ../../library/multiprocessing.rst:1820 msgid "" "To create one's own manager, one creates a subclass of :class:`BaseManager` " -"and uses the :meth:`~BaseManager.register` classmethod to register new types" -" or callables with the manager class. For example::" +"and uses the :meth:`~BaseManager.register` classmethod to register new types " +"or callables with the manager class. For example::" msgstr "" -#: ../../library/multiprocessing.rst:1844 +#: ../../library/multiprocessing.rst:1845 msgid "Using a remote manager" msgstr "" -#: ../../library/multiprocessing.rst:1846 +#: ../../library/multiprocessing.rst:1847 msgid "" "It is possible to run a manager server on one machine and have clients use " "it from other machines (assuming that the firewalls involved allow it)." msgstr "" -#: ../../library/multiprocessing.rst:1849 +#: ../../library/multiprocessing.rst:1850 msgid "" "Running the following commands creates a server for a single shared queue " "which remote clients can access::" msgstr "" -#: ../../library/multiprocessing.rst:1861 +#: ../../library/multiprocessing.rst:1862 msgid "One client can access the server as follows::" msgstr "" -#: ../../library/multiprocessing.rst:1871 +#: ../../library/multiprocessing.rst:1872 msgid "Another client can also use it::" msgstr "" -#: ../../library/multiprocessing.rst:1882 +#: ../../library/multiprocessing.rst:1883 msgid "" -"Local processes can also access that queue, using the code from above on the" -" client to access it remotely::" +"Local processes can also access that queue, using the code from above on the " +"client to access it remotely::" msgstr "" -#: ../../library/multiprocessing.rst:1907 +#: ../../library/multiprocessing.rst:1908 msgid "Proxy Objects" msgstr "" -#: ../../library/multiprocessing.rst:1909 +#: ../../library/multiprocessing.rst:1910 msgid "" "A proxy is an object which *refers* to a shared object which lives " "(presumably) in a different process. The shared object is said to be the " "*referent* of the proxy. Multiple proxy objects may have the same referent." msgstr "" -#: ../../library/multiprocessing.rst:1913 +#: ../../library/multiprocessing.rst:1914 msgid "" "A proxy object has methods which invoke corresponding methods of its " "referent (although not every method of the referent will necessarily be " @@ -2110,162 +2101,162 @@ msgid "" "its referent can:" msgstr "" -#: ../../library/multiprocessing.rst:1931 +#: ../../library/multiprocessing.rst:1932 msgid "" "Notice that applying :func:`str` to a proxy will return the representation " "of the referent, whereas applying :func:`repr` will return the " "representation of the proxy." msgstr "" -#: ../../library/multiprocessing.rst:1935 +#: ../../library/multiprocessing.rst:1936 msgid "" -"An important feature of proxy objects is that they are picklable so they can" -" be passed between processes. As such, a referent can contain :ref" -":`multiprocessing-proxy_objects`. This permits nesting of these managed " +"An important feature of proxy objects is that they are picklable so they can " +"be passed between processes. As such, a referent can contain :ref:" +"`multiprocessing-proxy_objects`. This permits nesting of these managed " "lists, dicts, and other :ref:`multiprocessing-proxy_objects`:" msgstr "" -#: ../../library/multiprocessing.rst:1951 +#: ../../library/multiprocessing.rst:1952 msgid "Similarly, dict and list proxies may be nested inside one another::" msgstr "" -#: ../../library/multiprocessing.rst:1964 +#: ../../library/multiprocessing.rst:1965 msgid "" -"If standard (non-proxy) :class:`list` or :class:`dict` objects are contained" -" in a referent, modifications to those mutable values will not be propagated" -" through the manager because the proxy has no way of knowing when the values" -" contained within are modified. However, storing a value in a container " +"If standard (non-proxy) :class:`list` or :class:`dict` objects are contained " +"in a referent, modifications to those mutable values will not be propagated " +"through the manager because the proxy has no way of knowing when the values " +"contained within are modified. However, storing a value in a container " "proxy (which triggers a ``__setitem__`` on the proxy object) does propagate " "through the manager and so to effectively modify such an item, one could re-" "assign the modified value to the container proxy::" msgstr "" -#: ../../library/multiprocessing.rst:1983 +#: ../../library/multiprocessing.rst:1984 msgid "" -"This approach is perhaps less convenient than employing nested :ref" -":`multiprocessing-proxy_objects` for most use cases but also demonstrates a " +"This approach is perhaps less convenient than employing nested :ref:" +"`multiprocessing-proxy_objects` for most use cases but also demonstrates a " "level of control over the synchronization." msgstr "" -#: ../../library/multiprocessing.rst:1989 +#: ../../library/multiprocessing.rst:1990 msgid "" "The proxy types in :mod:`multiprocessing` do nothing to support comparisons " "by value. So, for instance, we have:" msgstr "" -#: ../../library/multiprocessing.rst:1997 +#: ../../library/multiprocessing.rst:1998 msgid "" "One should just use a copy of the referent instead when making comparisons." msgstr "" -#: ../../library/multiprocessing.rst:2001 +#: ../../library/multiprocessing.rst:2002 msgid "Proxy objects are instances of subclasses of :class:`BaseProxy`." msgstr "" -#: ../../library/multiprocessing.rst:2005 +#: ../../library/multiprocessing.rst:2006 msgid "Call and return the result of a method of the proxy's referent." msgstr "" -#: ../../library/multiprocessing.rst:2007 +#: ../../library/multiprocessing.rst:2008 msgid "" "If ``proxy`` is a proxy whose referent is ``obj`` then the expression ::" msgstr "" -#: ../../library/multiprocessing.rst:2011 +#: ../../library/multiprocessing.rst:2012 msgid "will evaluate the expression ::" msgstr "" -#: ../../library/multiprocessing.rst:2015 +#: ../../library/multiprocessing.rst:2016 msgid "in the manager's process." msgstr "" -#: ../../library/multiprocessing.rst:2017 +#: ../../library/multiprocessing.rst:2018 msgid "" "The returned value will be a copy of the result of the call or a proxy to a " "new shared object -- see documentation for the *method_to_typeid* argument " "of :meth:`BaseManager.register`." msgstr "" -#: ../../library/multiprocessing.rst:2021 +#: ../../library/multiprocessing.rst:2022 msgid "" -"If an exception is raised by the call, then is re-raised by " -":meth:`_callmethod`. If some other exception is raised in the manager's " -"process then this is converted into a :exc:`RemoteError` exception and is " -"raised by :meth:`_callmethod`." +"If an exception is raised by the call, then is re-raised by :meth:" +"`_callmethod`. If some other exception is raised in the manager's process " +"then this is converted into a :exc:`RemoteError` exception and is raised by :" +"meth:`_callmethod`." msgstr "" -#: ../../library/multiprocessing.rst:2026 +#: ../../library/multiprocessing.rst:2027 msgid "" "Note in particular that an exception will be raised if *methodname* has not " "been *exposed*." msgstr "" -#: ../../library/multiprocessing.rst:2029 +#: ../../library/multiprocessing.rst:2030 msgid "An example of the usage of :meth:`_callmethod`:" msgstr "" -#: ../../library/multiprocessing.rst:2045 +#: ../../library/multiprocessing.rst:2046 msgid "Return a copy of the referent." msgstr "" -#: ../../library/multiprocessing.rst:2047 +#: ../../library/multiprocessing.rst:2048 msgid "If the referent is unpicklable then this will raise an exception." msgstr "" -#: ../../library/multiprocessing.rst:2051 +#: ../../library/multiprocessing.rst:2052 msgid "Return a representation of the proxy object." msgstr "" -#: ../../library/multiprocessing.rst:2055 +#: ../../library/multiprocessing.rst:2056 msgid "Return the representation of the referent." msgstr "" -#: ../../library/multiprocessing.rst:2059 +#: ../../library/multiprocessing.rst:2060 msgid "Cleanup" msgstr "" -#: ../../library/multiprocessing.rst:2061 +#: ../../library/multiprocessing.rst:2062 msgid "" "A proxy object uses a weakref callback so that when it gets garbage " "collected it deregisters itself from the manager which owns its referent." msgstr "" -#: ../../library/multiprocessing.rst:2064 +#: ../../library/multiprocessing.rst:2065 msgid "" "A shared object gets deleted from the manager process when there are no " "longer any proxies referring to it." msgstr "" -#: ../../library/multiprocessing.rst:2069 +#: ../../library/multiprocessing.rst:2070 msgid "Process Pools" msgstr "" -#: ../../library/multiprocessing.rst:2074 +#: ../../library/multiprocessing.rst:2075 msgid "" "One can create a pool of processes which will carry out tasks submitted to " "it with the :class:`Pool` class." msgstr "" -#: ../../library/multiprocessing.rst:2079 +#: ../../library/multiprocessing.rst:2080 msgid "" "A process pool object which controls a pool of worker processes to which " "jobs can be submitted. It supports asynchronous results with timeouts and " "callbacks and has a parallel map implementation." msgstr "" -#: ../../library/multiprocessing.rst:2083 +#: ../../library/multiprocessing.rst:2084 msgid "" "*processes* is the number of worker processes to use. If *processes* is " "``None`` then the number returned by :func:`os.cpu_count` is used." msgstr "" -#: ../../library/multiprocessing.rst:2086 +#: ../../library/multiprocessing.rst:2087 msgid "" "If *initializer* is not ``None`` then each worker process will call " "``initializer(*initargs)`` when it starts." msgstr "" -#: ../../library/multiprocessing.rst:2089 +#: ../../library/multiprocessing.rst:2090 msgid "" "*maxtasksperchild* is the number of tasks a worker process can complete " "before it will exit and be replaced with a fresh worker process, to enable " @@ -2273,40 +2264,55 @@ msgid "" "which means worker processes will live as long as the pool." msgstr "" -#: ../../library/multiprocessing.rst:2094 +#: ../../library/multiprocessing.rst:2095 msgid "" "*context* can be used to specify the context used for starting the worker " -"processes. Usually a pool is created using the function " -":func:`multiprocessing.Pool` or the :meth:`Pool` method of a context object." -" In both cases *context* is set appropriately." +"processes. Usually a pool is created using the function :func:" +"`multiprocessing.Pool` or the :meth:`Pool` method of a context object. In " +"both cases *context* is set appropriately." msgstr "" -#: ../../library/multiprocessing.rst:2100 +#: ../../library/multiprocessing.rst:2101 msgid "" "Note that the methods of the pool object should only be called by the " "process which created the pool." msgstr "" -#: ../../library/multiprocessing.rst:2103 +#: ../../library/multiprocessing.rst:2105 +msgid "" +":class:`multiprocessing.pool` objects have internal resources that need to " +"be properly managed (like any other resource) by using the pool as a context " +"manager or by calling :meth:`close` and :meth:`terminate` manually. Failure " +"to do this can lead to the process hanging on finalization." +msgstr "" + +#: ../../library/multiprocessing.rst:2110 +msgid "" +"Note that is **not correct** to rely on the garbage colletor to destroy the " +"pool as CPython does not assure that the finalizer of the pool will be " +"called (see :meth:`object.__del__` for more information)." +msgstr "" + +#: ../../library/multiprocessing.rst:2114 msgid "*maxtasksperchild*" msgstr "*maxtasksperchild*" -#: ../../library/multiprocessing.rst:2106 +#: ../../library/multiprocessing.rst:2117 msgid "*context*" msgstr "*context*" -#: ../../library/multiprocessing.rst:2111 +#: ../../library/multiprocessing.rst:2122 msgid "" "Worker processes within a :class:`Pool` typically live for the complete " -"duration of the Pool's work queue. A frequent pattern found in other systems" -" (such as Apache, mod_wsgi, etc) to free resources held by workers is to " +"duration of the Pool's work queue. A frequent pattern found in other systems " +"(such as Apache, mod_wsgi, etc) to free resources held by workers is to " "allow a worker within a pool to complete only a set amount of work before " -"being exiting, being cleaned up and a new process spawned to replace the old" -" one. The *maxtasksperchild* argument to the :class:`Pool` exposes this " +"being exiting, being cleaned up and a new process spawned to replace the old " +"one. The *maxtasksperchild* argument to the :class:`Pool` exposes this " "ability to the end user." msgstr "" -#: ../../library/multiprocessing.rst:2121 +#: ../../library/multiprocessing.rst:2132 msgid "" "Call *func* with arguments *args* and keyword arguments *kwds*. It blocks " "until the result is ready. Given this blocks, :meth:`apply_async` is better " @@ -2314,70 +2320,71 @@ msgid "" "executed in one of the workers of the pool." msgstr "" -#: ../../library/multiprocessing.rst:2128 +#: ../../library/multiprocessing.rst:2139 msgid "A variant of the :meth:`apply` method which returns a result object." msgstr "" -#: ../../library/multiprocessing.rst:2130 -#: ../../library/multiprocessing.rst:2159 +#: ../../library/multiprocessing.rst:2141 +#: ../../library/multiprocessing.rst:2171 msgid "" "If *callback* is specified then it should be a callable which accepts a " -"single argument. When the result becomes ready *callback* is applied to it," -" that is unless the call failed, in which case the *error_callback* is " +"single argument. When the result becomes ready *callback* is applied to it, " +"that is unless the call failed, in which case the *error_callback* is " "applied instead." msgstr "" -#: ../../library/multiprocessing.rst:2135 -#: ../../library/multiprocessing.rst:2164 +#: ../../library/multiprocessing.rst:2146 +#: ../../library/multiprocessing.rst:2176 msgid "" "If *error_callback* is specified then it should be a callable which accepts " "a single argument. If the target function fails, then the *error_callback* " "is called with the exception instance." msgstr "" -#: ../../library/multiprocessing.rst:2139 -#: ../../library/multiprocessing.rst:2168 +#: ../../library/multiprocessing.rst:2150 +#: ../../library/multiprocessing.rst:2180 msgid "" "Callbacks should complete immediately since otherwise the thread which " "handles the results will get blocked." msgstr "" -#: ../../library/multiprocessing.rst:2144 +#: ../../library/multiprocessing.rst:2155 msgid "" -"A parallel equivalent of the :func:`map` built-in function (it supports only" -" one *iterable* argument though). It blocks until the result is ready." +"A parallel equivalent of the :func:`map` built-in function (it supports only " +"one *iterable* argument though, for multiple iterables see :meth:`starmap`). " +"It blocks until the result is ready." msgstr "" -#: ../../library/multiprocessing.rst:2147 +#: ../../library/multiprocessing.rst:2159 msgid "" "This method chops the iterable into a number of chunks which it submits to " "the process pool as separate tasks. The (approximate) size of these chunks " "can be specified by setting *chunksize* to a positive integer." msgstr "" -#: ../../library/multiprocessing.rst:2151 +#: ../../library/multiprocessing.rst:2163 msgid "" "Note that it may cause high memory usage for very long iterables. Consider " "using :meth:`imap` or :meth:`imap_unordered` with explicit *chunksize* " "option for better efficiency." msgstr "" -#: ../../library/multiprocessing.rst:2157 +#: ../../library/multiprocessing.rst:2169 msgid "A variant of the :meth:`.map` method which returns a result object." msgstr "" -#: ../../library/multiprocessing.rst:2173 +#: ../../library/multiprocessing.rst:2185 msgid "A lazier version of :meth:`.map`." msgstr "" -#: ../../library/multiprocessing.rst:2175 +#: ../../library/multiprocessing.rst:2187 msgid "" "The *chunksize* argument is the same as the one used by the :meth:`.map` " "method. For very long iterables using a large value for *chunksize* can " "make the job complete **much** faster than using the default value of ``1``." msgstr "" -#: ../../library/multiprocessing.rst:2180 +#: ../../library/multiprocessing.rst:2192 msgid "" "Also if *chunksize* is ``1`` then the :meth:`!next` method of the iterator " "returned by the :meth:`imap` method has an optional *timeout* parameter: " @@ -2385,101 +2392,101 @@ msgid "" "result cannot be returned within *timeout* seconds." msgstr "" -#: ../../library/multiprocessing.rst:2187 +#: ../../library/multiprocessing.rst:2199 msgid "" "The same as :meth:`imap` except that the ordering of the results from the " "returned iterator should be considered arbitrary. (Only when there is only " "one worker process is the order guaranteed to be \"correct\".)" msgstr "" -#: ../../library/multiprocessing.rst:2193 +#: ../../library/multiprocessing.rst:2205 msgid "" "Like :meth:`map` except that the elements of the *iterable* are expected to " "be iterables that are unpacked as arguments." msgstr "" -#: ../../library/multiprocessing.rst:2196 +#: ../../library/multiprocessing.rst:2208 msgid "" "Hence an *iterable* of ``[(1,2), (3, 4)]`` results in ``[func(1,2), " "func(3,4)]``." msgstr "" -#: ../../library/multiprocessing.rst:2203 +#: ../../library/multiprocessing.rst:2215 msgid "" "A combination of :meth:`starmap` and :meth:`map_async` that iterates over " "*iterable* of iterables and calls *func* with the iterables unpacked. " "Returns a result object." msgstr "" -#: ../../library/multiprocessing.rst:2211 +#: ../../library/multiprocessing.rst:2223 msgid "" "Prevents any more tasks from being submitted to the pool. Once all the " "tasks have been completed the worker processes will exit." msgstr "" -#: ../../library/multiprocessing.rst:2216 +#: ../../library/multiprocessing.rst:2228 msgid "" -"Stops the worker processes immediately without completing outstanding work." -" When the pool object is garbage collected :meth:`terminate` will be called" -" immediately." +"Stops the worker processes immediately without completing outstanding work. " +"When the pool object is garbage collected :meth:`terminate` will be called " +"immediately." msgstr "" -#: ../../library/multiprocessing.rst:2222 +#: ../../library/multiprocessing.rst:2234 msgid "" -"Wait for the worker processes to exit. One must call :meth:`close` or " -":meth:`terminate` before using :meth:`join`." +"Wait for the worker processes to exit. One must call :meth:`close` or :meth:" +"`terminate` before using :meth:`join`." msgstr "" -#: ../../library/multiprocessing.rst:2225 +#: ../../library/multiprocessing.rst:2237 msgid "" -"Pool objects now support the context management protocol -- see " -":ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " -"pool object, and :meth:`~contextmanager.__exit__` calls :meth:`terminate`." +"Pool objects now support the context management protocol -- see :ref:" +"`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the pool " +"object, and :meth:`~contextmanager.__exit__` calls :meth:`terminate`." msgstr "" -#: ../../library/multiprocessing.rst:2233 +#: ../../library/multiprocessing.rst:2245 msgid "" -"The class of the result returned by :meth:`Pool.apply_async` and " -":meth:`Pool.map_async`." +"The class of the result returned by :meth:`Pool.apply_async` and :meth:`Pool." +"map_async`." msgstr "" -#: ../../library/multiprocessing.rst:2238 +#: ../../library/multiprocessing.rst:2250 msgid "" "Return the result when it arrives. If *timeout* is not ``None`` and the " -"result does not arrive within *timeout* seconds then " -":exc:`multiprocessing.TimeoutError` is raised. If the remote call raised an" -" exception then that exception will be reraised by :meth:`get`." +"result does not arrive within *timeout* seconds then :exc:`multiprocessing." +"TimeoutError` is raised. If the remote call raised an exception then that " +"exception will be reraised by :meth:`get`." msgstr "" -#: ../../library/multiprocessing.rst:2245 +#: ../../library/multiprocessing.rst:2257 msgid "Wait until the result is available or until *timeout* seconds pass." msgstr "" -#: ../../library/multiprocessing.rst:2249 +#: ../../library/multiprocessing.rst:2261 msgid "Return whether the call has completed." msgstr "" -#: ../../library/multiprocessing.rst:2253 +#: ../../library/multiprocessing.rst:2265 msgid "" -"Return whether the call completed without raising an exception. Will raise " -":exc:`AssertionError` if the result is not ready." +"Return whether the call completed without raising an exception. Will raise :" +"exc:`ValueError` if the result is not ready." msgstr "" -#: ../../library/multiprocessing.rst:2256 +#: ../../library/multiprocessing.rst:2268 msgid "The following example demonstrates the use of a pool::" msgstr "" -#: ../../library/multiprocessing.rst:2283 +#: ../../library/multiprocessing.rst:2295 msgid "Listeners and Clients" msgstr "" -#: ../../library/multiprocessing.rst:2288 +#: ../../library/multiprocessing.rst:2300 msgid "" -"Usually message passing between processes is done using queues or by using " -":class:`~Connection` objects returned by :func:`~multiprocessing.Pipe`." +"Usually message passing between processes is done using queues or by using :" +"class:`~Connection` objects returned by :func:`~multiprocessing.Pipe`." msgstr "" -#: ../../library/multiprocessing.rst:2292 +#: ../../library/multiprocessing.rst:2304 msgid "" "However, the :mod:`multiprocessing.connection` module allows some extra " "flexibility. It basically gives a high level message oriented API for " @@ -2488,74 +2495,74 @@ msgid "" "multiple connections at the same time." msgstr "" -#: ../../library/multiprocessing.rst:2301 +#: ../../library/multiprocessing.rst:2313 msgid "" "Send a randomly generated message to the other end of the connection and " "wait for a reply." msgstr "" -#: ../../library/multiprocessing.rst:2304 +#: ../../library/multiprocessing.rst:2316 msgid "" "If the reply matches the digest of the message using *authkey* as the key " "then a welcome message is sent to the other end of the connection. " "Otherwise :exc:`~multiprocessing.AuthenticationError` is raised." msgstr "" -#: ../../library/multiprocessing.rst:2310 +#: ../../library/multiprocessing.rst:2322 msgid "" "Receive a message, calculate the digest of the message using *authkey* as " "the key, and then send the digest back." msgstr "" -#: ../../library/multiprocessing.rst:2313 +#: ../../library/multiprocessing.rst:2325 msgid "" -"If a welcome message is not received, then " -":exc:`~multiprocessing.AuthenticationError` is raised." +"If a welcome message is not received, then :exc:`~multiprocessing." +"AuthenticationError` is raised." msgstr "" -#: ../../library/multiprocessing.rst:2318 +#: ../../library/multiprocessing.rst:2330 msgid "" "Attempt to set up a connection to the listener which is using address " "*address*, returning a :class:`~Connection`." msgstr "" -#: ../../library/multiprocessing.rst:2321 +#: ../../library/multiprocessing.rst:2333 msgid "" "The type of the connection is determined by *family* argument, but this can " "generally be omitted since it can usually be inferred from the format of " "*address*. (See :ref:`multiprocessing-address-formats`)" msgstr "" -#: ../../library/multiprocessing.rst:2325 -#: ../../library/multiprocessing.rst:2360 +#: ../../library/multiprocessing.rst:2337 +#: ../../library/multiprocessing.rst:2372 msgid "" "If *authkey* is given and not None, it should be a byte string and will be " "used as the secret key for an HMAC-based authentication challenge. No " -"authentication is done if *authkey* is None. " -":exc:`~multiprocessing.AuthenticationError` is raised if authentication " -"fails. See :ref:`multiprocessing-auth-keys`." +"authentication is done if *authkey* is None. :exc:`~multiprocessing." +"AuthenticationError` is raised if authentication fails. See :ref:" +"`multiprocessing-auth-keys`." msgstr "" -#: ../../library/multiprocessing.rst:2333 +#: ../../library/multiprocessing.rst:2345 msgid "" "A wrapper for a bound socket or Windows named pipe which is 'listening' for " "connections." msgstr "" -#: ../../library/multiprocessing.rst:2336 +#: ../../library/multiprocessing.rst:2348 msgid "" -"*address* is the address to be used by the bound socket or named pipe of the" -" listener object." +"*address* is the address to be used by the bound socket or named pipe of the " +"listener object." msgstr "" -#: ../../library/multiprocessing.rst:2341 +#: ../../library/multiprocessing.rst:2353 msgid "" "If an address of '0.0.0.0' is used, the address will not be a connectable " -"end point on Windows. If you require a connectable end-point, you should use" -" '127.0.0.1'." +"end point on Windows. If you require a connectable end-point, you should use " +"'127.0.0.1'." msgstr "" -#: ../../library/multiprocessing.rst:2345 +#: ../../library/multiprocessing.rst:2357 msgid "" "*family* is the type of socket (or named pipe) to use. This can be one of " "the strings ``'AF_INET'`` (for a TCP socket), ``'AF_UNIX'`` (for a Unix " @@ -2569,162 +2576,161 @@ msgid "" "using :func:`tempfile.mkstemp`." msgstr "" -#: ../../library/multiprocessing.rst:2356 +#: ../../library/multiprocessing.rst:2368 msgid "" -"If the listener object uses a socket then *backlog* (1 by default) is passed" -" to the :meth:`~socket.socket.listen` method of the socket once it has been " +"If the listener object uses a socket then *backlog* (1 by default) is passed " +"to the :meth:`~socket.socket.listen` method of the socket once it has been " "bound." msgstr "" -#: ../../library/multiprocessing.rst:2368 +#: ../../library/multiprocessing.rst:2380 msgid "" -"Accept a connection on the bound socket or named pipe of the listener object" -" and return a :class:`~Connection` object. If authentication is attempted " -"and fails, then :exc:`~multiprocessing.AuthenticationError` is raised." +"Accept a connection on the bound socket or named pipe of the listener object " +"and return a :class:`~Connection` object. If authentication is attempted and " +"fails, then :exc:`~multiprocessing.AuthenticationError` is raised." msgstr "" -#: ../../library/multiprocessing.rst:2375 +#: ../../library/multiprocessing.rst:2387 msgid "" -"Close the bound socket or named pipe of the listener object. This is called" -" automatically when the listener is garbage collected. However it is " +"Close the bound socket or named pipe of the listener object. This is called " +"automatically when the listener is garbage collected. However it is " "advisable to call it explicitly." msgstr "" -#: ../../library/multiprocessing.rst:2379 +#: ../../library/multiprocessing.rst:2391 msgid "Listener objects have the following read-only properties:" msgstr "" -#: ../../library/multiprocessing.rst:2383 +#: ../../library/multiprocessing.rst:2395 msgid "The address which is being used by the Listener object." msgstr "" -#: ../../library/multiprocessing.rst:2387 +#: ../../library/multiprocessing.rst:2399 msgid "" "The address from which the last accepted connection came. If this is " "unavailable then it is ``None``." msgstr "" -#: ../../library/multiprocessing.rst:2390 +#: ../../library/multiprocessing.rst:2402 msgid "" -"Listener objects now support the context management protocol -- see " -":ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " +"Listener objects now support the context management protocol -- see :ref:" +"`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the " "listener object, and :meth:`~contextmanager.__exit__` calls :meth:`close`." msgstr "" -#: ../../library/multiprocessing.rst:2397 +#: ../../library/multiprocessing.rst:2409 msgid "" "Wait till an object in *object_list* is ready. Returns the list of those " "objects in *object_list* which are ready. If *timeout* is a float then the " -"call blocks for at most that many seconds. If *timeout* is ``None`` then it" -" will block for an unlimited period. A negative timeout is equivalent to a " +"call blocks for at most that many seconds. If *timeout* is ``None`` then it " +"will block for an unlimited period. A negative timeout is equivalent to a " "zero timeout." msgstr "" -#: ../../library/multiprocessing.rst:2403 +#: ../../library/multiprocessing.rst:2415 msgid "" "For both Unix and Windows, an object can appear in *object_list* if it is" msgstr "" -#: ../../library/multiprocessing.rst:2406 +#: ../../library/multiprocessing.rst:2418 msgid "a readable :class:`~multiprocessing.connection.Connection` object;" msgstr "" -#: ../../library/multiprocessing.rst:2407 +#: ../../library/multiprocessing.rst:2419 msgid "a connected and readable :class:`socket.socket` object; or" msgstr "" -#: ../../library/multiprocessing.rst:2408 +#: ../../library/multiprocessing.rst:2420 msgid "" -"the :attr:`~multiprocessing.Process.sentinel` attribute of a " -":class:`~multiprocessing.Process` object." +"the :attr:`~multiprocessing.Process.sentinel` attribute of a :class:" +"`~multiprocessing.Process` object." msgstr "" -#: ../../library/multiprocessing.rst:2411 +#: ../../library/multiprocessing.rst:2423 msgid "" "A connection or socket object is ready when there is data available to be " "read from it, or the other end has been closed." msgstr "" -#: ../../library/multiprocessing.rst:2414 +#: ../../library/multiprocessing.rst:2426 msgid "" -"**Unix**: ``wait(object_list, timeout)`` almost equivalent " -"``select.select(object_list, [], [], timeout)``. The difference is that, if" -" :func:`select.select` is interrupted by a signal, it can raise " -":exc:`OSError` with an error number of ``EINTR``, whereas :func:`wait` will " -"not." +"**Unix**: ``wait(object_list, timeout)`` almost equivalent ``select." +"select(object_list, [], [], timeout)``. The difference is that, if :func:" +"`select.select` is interrupted by a signal, it can raise :exc:`OSError` with " +"an error number of ``EINTR``, whereas :func:`wait` will not." msgstr "" -#: ../../library/multiprocessing.rst:2420 +#: ../../library/multiprocessing.rst:2432 msgid "" -"**Windows**: An item in *object_list* must either be an integer handle which" -" is waitable (according to the definition used by the documentation of the " -"Win32 function ``WaitForMultipleObjects()``) or it can be an object with a " -":meth:`fileno` method which returns a socket handle or pipe handle. (Note " +"**Windows**: An item in *object_list* must either be an integer handle which " +"is waitable (according to the definition used by the documentation of the " +"Win32 function ``WaitForMultipleObjects()``) or it can be an object with a :" +"meth:`fileno` method which returns a socket handle or pipe handle. (Note " "that pipe handles and socket handles are **not** waitable handles.)" msgstr "" -#: ../../library/multiprocessing.rst:2430 +#: ../../library/multiprocessing.rst:2442 msgid "**Examples**" msgstr "" -#: ../../library/multiprocessing.rst:2432 +#: ../../library/multiprocessing.rst:2444 msgid "" "The following server code creates a listener which uses ``'secret " "password'`` as an authentication key. It then waits for a connection and " "sends some data to the client::" msgstr "" -#: ../../library/multiprocessing.rst:2451 +#: ../../library/multiprocessing.rst:2463 msgid "" "The following code connects to the server and receives some data from the " "server::" msgstr "" -#: ../../library/multiprocessing.rst:2468 +#: ../../library/multiprocessing.rst:2480 msgid "" -"The following code uses :func:`~multiprocessing.connection.wait` to wait for" -" messages from multiple processes at once::" +"The following code uses :func:`~multiprocessing.connection.wait` to wait for " +"messages from multiple processes at once::" msgstr "" -#: ../../library/multiprocessing.rst:2507 +#: ../../library/multiprocessing.rst:2519 msgid "Address Formats" msgstr "" -#: ../../library/multiprocessing.rst:2509 +#: ../../library/multiprocessing.rst:2521 msgid "" "An ``'AF_INET'`` address is a tuple of the form ``(hostname, port)`` where " "*hostname* is a string and *port* is an integer." msgstr "" -#: ../../library/multiprocessing.rst:2512 +#: ../../library/multiprocessing.rst:2524 msgid "" "An ``'AF_UNIX'`` address is a string representing a filename on the " "filesystem." msgstr "" -#: ../../library/multiprocessing.rst:2518 +#: ../../library/multiprocessing.rst:2530 msgid "An ``'AF_PIPE'`` address is a string of the form" msgstr "" -#: ../../library/multiprocessing.rst:2516 +#: ../../library/multiprocessing.rst:2528 msgid "" ":samp:`r'\\\\\\\\.\\\\pipe\\\\{PipeName}'`. To use :func:`Client` to " "connect to a named pipe on a remote computer called *ServerName* one should " -"use an address of the form " -":samp:`r'\\\\\\\\{ServerName}\\\\pipe\\\\{PipeName}'` instead." +"use an address of the form :samp:`r'\\\\\\\\{ServerName}\\\\pipe\\" +"\\{PipeName}'` instead." msgstr "" -#: ../../library/multiprocessing.rst:2520 +#: ../../library/multiprocessing.rst:2532 msgid "" -"Note that any string beginning with two backslashes is assumed by default to" -" be an ``'AF_PIPE'`` address rather than an ``'AF_UNIX'`` address." +"Note that any string beginning with two backslashes is assumed by default to " +"be an ``'AF_PIPE'`` address rather than an ``'AF_UNIX'`` address." msgstr "" -#: ../../library/multiprocessing.rst:2527 +#: ../../library/multiprocessing.rst:2539 msgid "Authentication keys" msgstr "" -#: ../../library/multiprocessing.rst:2529 +#: ../../library/multiprocessing.rst:2541 msgid "" "When one uses :meth:`Connection.recv `, the data received " "is automatically unpickled. Unfortunately unpickling data from an untrusted " @@ -2732,182 +2738,181 @@ msgid "" "use the :mod:`hmac` module to provide digest authentication." msgstr "" -#: ../../library/multiprocessing.rst:2535 +#: ../../library/multiprocessing.rst:2547 msgid "" "An authentication key is a byte string which can be thought of as a " "password: once a connection is established both ends will demand proof that " "the other knows the authentication key. (Demonstrating that both ends are " -"using the same key does **not** involve sending the key over the " -"connection.)" +"using the same key does **not** involve sending the key over the connection.)" msgstr "" -#: ../../library/multiprocessing.rst:2541 +#: ../../library/multiprocessing.rst:2553 msgid "" "If authentication is requested but no authentication key is specified then " -"the return value of ``current_process().authkey`` is used (see " -":class:`~multiprocessing.Process`). This value will be automatically " -"inherited by any :class:`~multiprocessing.Process` object that the current " -"process creates. This means that (by default) all processes of a multi-" -"process program will share a single authentication key which can be used " -"when setting up connections between themselves." +"the return value of ``current_process().authkey`` is used (see :class:" +"`~multiprocessing.Process`). This value will be automatically inherited by " +"any :class:`~multiprocessing.Process` object that the current process " +"creates. This means that (by default) all processes of a multi-process " +"program will share a single authentication key which can be used when " +"setting up connections between themselves." msgstr "" -#: ../../library/multiprocessing.rst:2549 +#: ../../library/multiprocessing.rst:2561 msgid "" -"Suitable authentication keys can also be generated by using " -":func:`os.urandom`." +"Suitable authentication keys can also be generated by using :func:`os." +"urandom`." msgstr "" -#: ../../library/multiprocessing.rst:2553 +#: ../../library/multiprocessing.rst:2565 msgid "Logging" msgstr "Gerando logs" -#: ../../library/multiprocessing.rst:2555 +#: ../../library/multiprocessing.rst:2567 msgid "" -"Some support for logging is available. Note, however, that the " -":mod:`logging` package does not use process shared locks so it is possible " -"(depending on the handler type) for messages from different processes to get" -" mixed up." +"Some support for logging is available. Note, however, that the :mod:" +"`logging` package does not use process shared locks so it is possible " +"(depending on the handler type) for messages from different processes to get " +"mixed up." msgstr "" -#: ../../library/multiprocessing.rst:2562 +#: ../../library/multiprocessing.rst:2574 msgid "" "Returns the logger used by :mod:`multiprocessing`. If necessary, a new one " "will be created." msgstr "" -#: ../../library/multiprocessing.rst:2565 +#: ../../library/multiprocessing.rst:2577 msgid "" "When first created the logger has level :data:`logging.NOTSET` and no " "default handler. Messages sent to this logger will not by default propagate " "to the root logger." msgstr "" -#: ../../library/multiprocessing.rst:2569 +#: ../../library/multiprocessing.rst:2581 msgid "" "Note that on Windows child processes will only inherit the level of the " -"parent process's logger -- any other customization of the logger will not be" -" inherited." +"parent process's logger -- any other customization of the logger will not be " +"inherited." msgstr "" -#: ../../library/multiprocessing.rst:2576 +#: ../../library/multiprocessing.rst:2588 msgid "" "This function performs a call to :func:`get_logger` but in addition to " "returning the logger created by get_logger, it adds a handler which sends " -"output to :data:`sys.stderr` using format ``'[%(levelname)s/%(processName)s]" -" %(message)s'``." +"output to :data:`sys.stderr` using format ``'[%(levelname)s/%(processName)s] " +"%(message)s'``." msgstr "" -#: ../../library/multiprocessing.rst:2581 +#: ../../library/multiprocessing.rst:2593 msgid "Below is an example session with logging turned on::" msgstr "" -#: ../../library/multiprocessing.rst:2596 +#: ../../library/multiprocessing.rst:2608 msgid "For a full table of logging levels, see the :mod:`logging` module." msgstr "" -#: ../../library/multiprocessing.rst:2600 +#: ../../library/multiprocessing.rst:2612 msgid "The :mod:`multiprocessing.dummy` module" msgstr "" -#: ../../library/multiprocessing.rst:2605 +#: ../../library/multiprocessing.rst:2617 msgid "" ":mod:`multiprocessing.dummy` replicates the API of :mod:`multiprocessing` " "but is no more than a wrapper around the :mod:`threading` module." msgstr "" -#: ../../library/multiprocessing.rst:2612 +#: ../../library/multiprocessing.rst:2624 msgid "Programming guidelines" msgstr "" -#: ../../library/multiprocessing.rst:2614 +#: ../../library/multiprocessing.rst:2626 msgid "" "There are certain guidelines and idioms which should be adhered to when " "using :mod:`multiprocessing`." msgstr "" -#: ../../library/multiprocessing.rst:2619 +#: ../../library/multiprocessing.rst:2631 msgid "All start methods" msgstr "" -#: ../../library/multiprocessing.rst:2621 +#: ../../library/multiprocessing.rst:2633 msgid "The following applies to all start methods." msgstr "" -#: ../../library/multiprocessing.rst:2623 +#: ../../library/multiprocessing.rst:2635 msgid "Avoid shared state" msgstr "" -#: ../../library/multiprocessing.rst:2625 +#: ../../library/multiprocessing.rst:2637 msgid "" "As far as possible one should try to avoid shifting large amounts of data " "between processes." msgstr "" -#: ../../library/multiprocessing.rst:2628 +#: ../../library/multiprocessing.rst:2640 msgid "" "It is probably best to stick to using queues or pipes for communication " "between processes rather than using the lower level synchronization " "primitives." msgstr "" -#: ../../library/multiprocessing.rst:2632 +#: ../../library/multiprocessing.rst:2644 msgid "Picklability" msgstr "" -#: ../../library/multiprocessing.rst:2634 +#: ../../library/multiprocessing.rst:2646 msgid "Ensure that the arguments to the methods of proxies are picklable." msgstr "" -#: ../../library/multiprocessing.rst:2636 +#: ../../library/multiprocessing.rst:2648 msgid "Thread safety of proxies" msgstr "" -#: ../../library/multiprocessing.rst:2638 +#: ../../library/multiprocessing.rst:2650 msgid "" "Do not use a proxy object from more than one thread unless you protect it " "with a lock." msgstr "" -#: ../../library/multiprocessing.rst:2641 +#: ../../library/multiprocessing.rst:2653 msgid "" "(There is never a problem with different processes using the *same* proxy.)" msgstr "" -#: ../../library/multiprocessing.rst:2643 +#: ../../library/multiprocessing.rst:2655 msgid "Joining zombie processes" msgstr "" -#: ../../library/multiprocessing.rst:2645 +#: ../../library/multiprocessing.rst:2657 msgid "" -"On Unix when a process finishes but has not been joined it becomes a zombie." -" There should never be very many because each time a new process starts (or " -":func:`~multiprocessing.active_children` is called) all completed processes " +"On Unix when a process finishes but has not been joined it becomes a zombie. " +"There should never be very many because each time a new process starts (or :" +"func:`~multiprocessing.active_children` is called) all completed processes " "which have not yet been joined will be joined. Also calling a finished " "process's :meth:`Process.is_alive ` will " "join the process. Even so it is probably good practice to explicitly join " "all the processes that you start." msgstr "" -#: ../../library/multiprocessing.rst:2653 +#: ../../library/multiprocessing.rst:2665 msgid "Better to inherit than pickle/unpickle" msgstr "" -#: ../../library/multiprocessing.rst:2655 +#: ../../library/multiprocessing.rst:2667 msgid "" -"When using the *spawn* or *forkserver* start methods many types from " -":mod:`multiprocessing` need to be picklable so that child processes can use " +"When using the *spawn* or *forkserver* start methods many types from :mod:" +"`multiprocessing` need to be picklable so that child processes can use " "them. However, one should generally avoid sending shared objects to other " "processes using pipes or queues. Instead you should arrange the program so " -"that a process which needs access to a shared resource created elsewhere can" -" inherit it from an ancestor process." +"that a process which needs access to a shared resource created elsewhere can " +"inherit it from an ancestor process." msgstr "" -#: ../../library/multiprocessing.rst:2663 +#: ../../library/multiprocessing.rst:2675 msgid "Avoid terminating processes" msgstr "" -#: ../../library/multiprocessing.rst:2665 +#: ../../library/multiprocessing.rst:2677 msgid "" "Using the :meth:`Process.terminate ` " "method to stop a process is liable to cause any shared resources (such as " @@ -2915,50 +2920,50 @@ msgid "" "become broken or unavailable to other processes." msgstr "" -#: ../../library/multiprocessing.rst:2671 +#: ../../library/multiprocessing.rst:2683 msgid "" -"Therefore it is probably best to only consider using " -":meth:`Process.terminate ` on processes " -"which never use any shared resources." +"Therefore it is probably best to only consider using :meth:`Process." +"terminate ` on processes which never use " +"any shared resources." msgstr "" -#: ../../library/multiprocessing.rst:2675 +#: ../../library/multiprocessing.rst:2687 msgid "Joining processes that use queues" msgstr "" -#: ../../library/multiprocessing.rst:2677 +#: ../../library/multiprocessing.rst:2689 msgid "" "Bear in mind that a process that has put items in a queue will wait before " -"terminating until all the buffered items are fed by the \"feeder\" thread to" -" the underlying pipe. (The child process can call the " -":meth:`Queue.cancel_join_thread ` " -"method of the queue to avoid this behaviour.)" +"terminating until all the buffered items are fed by the \"feeder\" thread to " +"the underlying pipe. (The child process can call the :meth:`Queue." +"cancel_join_thread ` method of the " +"queue to avoid this behaviour.)" msgstr "" -#: ../../library/multiprocessing.rst:2683 +#: ../../library/multiprocessing.rst:2695 msgid "" "This means that whenever you use a queue you need to make sure that all " -"items which have been put on the queue will eventually be removed before the" -" process is joined. Otherwise you cannot be sure that processes which have " +"items which have been put on the queue will eventually be removed before the " +"process is joined. Otherwise you cannot be sure that processes which have " "put items on the queue will terminate. Remember also that non-daemonic " "processes will be joined automatically." msgstr "" -#: ../../library/multiprocessing.rst:2689 +#: ../../library/multiprocessing.rst:2701 msgid "An example which will deadlock is the following::" msgstr "" -#: ../../library/multiprocessing.rst:2703 +#: ../../library/multiprocessing.rst:2715 msgid "" -"A fix here would be to swap the last two lines (or simply remove the " -"``p.join()`` line)." +"A fix here would be to swap the last two lines (or simply remove the ``p." +"join()`` line)." msgstr "" -#: ../../library/multiprocessing.rst:2706 +#: ../../library/multiprocessing.rst:2718 msgid "Explicitly pass resources to child processes" msgstr "" -#: ../../library/multiprocessing.rst:2708 +#: ../../library/multiprocessing.rst:2720 msgid "" "On Unix using the *fork* start method, a child process can make use of a " "shared resource created in a parent process using a global resource. " @@ -2966,156 +2971,154 @@ msgid "" "for the child process." msgstr "" -#: ../../library/multiprocessing.rst:2713 +#: ../../library/multiprocessing.rst:2725 msgid "" "Apart from making the code (potentially) compatible with Windows and the " "other start methods this also ensures that as long as the child process is " -"still alive the object will not be garbage collected in the parent process." -" This might be important if some resource is freed when the object is " -"garbage collected in the parent process." +"still alive the object will not be garbage collected in the parent process. " +"This might be important if some resource is freed when the object is garbage " +"collected in the parent process." msgstr "" -#: ../../library/multiprocessing.rst:2720 +#: ../../library/multiprocessing.rst:2732 msgid "So for instance ::" msgstr "" -#: ../../library/multiprocessing.rst:2732 +#: ../../library/multiprocessing.rst:2744 msgid "should be rewritten as ::" msgstr "" -#: ../../library/multiprocessing.rst:2744 +#: ../../library/multiprocessing.rst:2756 msgid "Beware of replacing :data:`sys.stdin` with a \"file like object\"" msgstr "" -#: ../../library/multiprocessing.rst:2746 +#: ../../library/multiprocessing.rst:2758 msgid ":mod:`multiprocessing` originally unconditionally called::" msgstr "" -#: ../../library/multiprocessing.rst:2750 +#: ../../library/multiprocessing.rst:2762 msgid "" "in the :meth:`multiprocessing.Process._bootstrap` method --- this resulted " "in issues with processes-in-processes. This has been changed to::" msgstr "" -#: ../../library/multiprocessing.rst:2756 +#: ../../library/multiprocessing.rst:2768 msgid "" "Which solves the fundamental issue of processes colliding with each other " "resulting in a bad file descriptor error, but introduces a potential danger " "to applications which replace :func:`sys.stdin` with a \"file-like object\" " -"with output buffering. This danger is that if multiple processes call " -":meth:`~io.IOBase.close()` on this file-like object, it could result in the " -"same data being flushed to the object multiple times, resulting in " -"corruption." +"with output buffering. This danger is that if multiple processes call :meth:" +"`~io.IOBase.close()` on this file-like object, it could result in the same " +"data being flushed to the object multiple times, resulting in corruption." msgstr "" -#: ../../library/multiprocessing.rst:2763 +#: ../../library/multiprocessing.rst:2775 msgid "" -"If you write a file-like object and implement your own caching, you can make" -" it fork-safe by storing the pid whenever you append to the cache, and " +"If you write a file-like object and implement your own caching, you can make " +"it fork-safe by storing the pid whenever you append to the cache, and " "discarding the cache when the pid changes. For example::" msgstr "" -#: ../../library/multiprocessing.rst:2775 +#: ../../library/multiprocessing.rst:2787 msgid "" "For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`" msgstr "" -#: ../../library/multiprocessing.rst:2778 +#: ../../library/multiprocessing.rst:2790 msgid "The *spawn* and *forkserver* start methods" msgstr "" -#: ../../library/multiprocessing.rst:2780 +#: ../../library/multiprocessing.rst:2792 msgid "" "There are a few extra restriction which don't apply to the *fork* start " "method." msgstr "" -#: ../../library/multiprocessing.rst:2783 +#: ../../library/multiprocessing.rst:2795 msgid "More picklability" msgstr "" -#: ../../library/multiprocessing.rst:2785 +#: ../../library/multiprocessing.rst:2797 msgid "" "Ensure that all arguments to :meth:`Process.__init__` are picklable. Also, " "if you subclass :class:`~multiprocessing.Process` then make sure that " -"instances will be picklable when the :meth:`Process.start " -"` method is called." +"instances will be picklable when the :meth:`Process.start ` method is called." msgstr "" -#: ../../library/multiprocessing.rst:2790 +#: ../../library/multiprocessing.rst:2802 msgid "Global variables" msgstr "" -#: ../../library/multiprocessing.rst:2792 +#: ../../library/multiprocessing.rst:2804 msgid "" "Bear in mind that if code run in a child process tries to access a global " "variable, then the value it sees (if any) may not be the same as the value " -"in the parent process at the time that :meth:`Process.start " -"` was called." +"in the parent process at the time that :meth:`Process.start ` was called." msgstr "" -#: ../../library/multiprocessing.rst:2797 +#: ../../library/multiprocessing.rst:2809 msgid "" "However, global variables which are just module level constants cause no " "problems." msgstr "" -#: ../../library/multiprocessing.rst:2800 +#: ../../library/multiprocessing.rst:2812 msgid "Safe importing of main module" msgstr "" -#: ../../library/multiprocessing.rst:2802 +#: ../../library/multiprocessing.rst:2814 msgid "" "Make sure that the main module can be safely imported by a new Python " "interpreter without causing unintended side effects (such a starting a new " "process)." msgstr "" -#: ../../library/multiprocessing.rst:2806 +#: ../../library/multiprocessing.rst:2818 msgid "" "For example, using the *spawn* or *forkserver* start method running the " "following module would fail with a :exc:`RuntimeError`::" msgstr "" -#: ../../library/multiprocessing.rst:2818 +#: ../../library/multiprocessing.rst:2830 msgid "" "Instead one should protect the \"entry point\" of the program by using ``if " "__name__ == '__main__':`` as follows::" msgstr "" -#: ../../library/multiprocessing.rst:2832 +#: ../../library/multiprocessing.rst:2844 msgid "" "(The ``freeze_support()`` line can be omitted if the program will be run " "normally instead of frozen.)" msgstr "" -#: ../../library/multiprocessing.rst:2835 +#: ../../library/multiprocessing.rst:2847 msgid "" -"This allows the newly spawned Python interpreter to safely import the module" -" and then run the module's ``foo()`` function." +"This allows the newly spawned Python interpreter to safely import the module " +"and then run the module's ``foo()`` function." msgstr "" -#: ../../library/multiprocessing.rst:2838 +#: ../../library/multiprocessing.rst:2850 msgid "" "Similar restrictions apply if a pool or manager is created in the main " "module." msgstr "" -#: ../../library/multiprocessing.rst:2845 +#: ../../library/multiprocessing.rst:2857 msgid "Examples" msgstr "Exemplos" -#: ../../library/multiprocessing.rst:2847 -msgid "" -"Demonstration of how to create and use customized managers and proxies:" +#: ../../library/multiprocessing.rst:2859 +msgid "Demonstration of how to create and use customized managers and proxies:" msgstr "" -#: ../../library/multiprocessing.rst:2853 +#: ../../library/multiprocessing.rst:2865 msgid "Using :class:`~multiprocessing.pool.Pool`:" msgstr "" -#: ../../library/multiprocessing.rst:2859 +#: ../../library/multiprocessing.rst:2871 msgid "" -"An example showing how to use queues to feed tasks to a collection of worker" -" processes and collect the results:" +"An example showing how to use queues to feed tasks to a collection of worker " +"processes and collect the results:" msgstr "" diff --git a/library/netdata.po b/library/netdata.po index 7296eb29f..33b09841c 100644 --- a/library/netdata.po +++ b/library/netdata.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/netrc.po b/library/netrc.po index db62510ce..1b5992210 100644 --- a/library/netrc.po +++ b/library/netrc.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marciel Leal , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,43 +41,64 @@ msgstr "" #: ../../library/netrc.rst:21 msgid "" -"A :class:`~netrc.netrc` instance or subclass instance encapsulates data from" -" a netrc file. The initialization argument, if present, specifies the file" -" to parse. If no argument is given, the file :file:`.netrc` in the user's " -"home directory -- as determined by :func:`os.path.expanduser` -- will be " -"read. Otherwise, a :exc:`FileNotFoundError` exception will be raised. Parse" -" errors will raise :exc:`NetrcParseError` with diagnostic information " +"A :class:`~netrc.netrc` instance or subclass instance encapsulates data " +"from a netrc file. The initialization argument, if present, specifies the " +"file to parse. If no argument is given, the file :file:`.netrc` in the " +"user's home directory -- as determined by :func:`os.path.expanduser` -- will " +"be read. Otherwise, a :exc:`FileNotFoundError` exception will be raised. " +"Parse errors will raise :exc:`NetrcParseError` with diagnostic information " "including the file name, line number, and terminating token. If no argument " -"is specified on a POSIX system, the presence of passwords in the " -":file:`.netrc` file will raise a :exc:`NetrcParseError` if the file " -"ownership or permissions are insecure (owned by a user other than the user " -"running the process, or accessible for read or write by any other user). " -"This implements security behavior equivalent to that of ftp and other " -"programs that use :file:`.netrc`." +"is specified on a POSIX system, the presence of passwords in the :file:`." +"netrc` file will raise a :exc:`NetrcParseError` if the file ownership or " +"permissions are insecure (owned by a user other than the user running the " +"process, or accessible for read or write by any other user). This implements " +"security behavior equivalent to that of ftp and other programs that use :" +"file:`.netrc`." msgstr "" +"Uma instância ou instância de subclasse de :class:`~netrc.netrc` encapsula " +"dados de um arquivo netrc. O argumento de inicialização, se presente, " +"especifica o arquivo a ser analisado. Se nenhum argumento for fornecido, o " +"arquivo :file:`.netrc` no diretório inicial do usuário -- conforme " +"determinado por :func:`os.path.expanduser` -- será lido. Caso contrário, uma " +"exceção :exc:`FileNotFoundError` será levantada. Os erros de análise " +"levantam :exc:`NetrcParseError` com informações de diagnóstico, incluindo o " +"nome do arquivo, o número da linha e o token final. Se nenhum argumento for " +"especificado em um sistema POSIX, a presença de senhas no arquivo :file:`." +"netrc` levantará um :exc:`NetrcParseError` se a propriedade ou as permissões " +"do arquivo forem inseguras (pertencentes a um usuário que não seja o " +"usuário) executando o processo ou acessível para leitura ou gravação por " +"qualquer outro usuário). Isso implementa um comportamento de segurança " +"equivalente ao do ftp e de outros programas que usam :file:`.netrc`." #: ../../library/netrc.rst:35 msgid "Added the POSIX permission check." -msgstr "" +msgstr "Adicionada a verificação de permissão POSIX." #: ../../library/netrc.rst:37 msgid "" -":func:`os.path.expanduser` is used to find the location of the " -":file:`.netrc` file when *file* is not passed as argument." +":func:`os.path.expanduser` is used to find the location of the :file:`." +"netrc` file when *file* is not passed as argument." msgstr "" +":func:`os.path.expanduser` é usado para encontrar a localização do arquivo :" +"file:`.netrc` quando *file* não é passado como argumento." #: ../../library/netrc.rst:44 msgid "" "Exception raised by the :class:`~netrc.netrc` class when syntactical errors " "are encountered in source text. Instances of this exception provide three " -"interesting attributes: :attr:`msg` is a textual explanation of the error, " -":attr:`filename` is the name of the source file, and :attr:`lineno` gives " -"the line number on which the error was found." +"interesting attributes: :attr:`msg` is a textual explanation of the error, :" +"attr:`filename` is the name of the source file, and :attr:`lineno` gives the " +"line number on which the error was found." msgstr "" +"Exceção levantada pela classe :class:`~netrc.netrc` quando erros sintáticos " +"são encontrados no texto de origem. As instâncias desta exceção fornecem " +"três atributos interessantes: :attr:`msg` é uma explicação textual do erro, :" +"attr:`filename` é o nome do arquivo-fonte e :attr:`lineno` fornece o número " +"da linha na qual o erro foi encontrado." #: ../../library/netrc.rst:54 msgid "netrc Objects" -msgstr "" +msgstr "Objetos netrc" #: ../../library/netrc.rst:56 msgid "A :class:`~netrc.netrc` instance has the following methods:" @@ -99,20 +122,26 @@ msgid "" "Dump the class data as a string in the format of a netrc file. (This " "discards comments and may reorder the entries.)" msgstr "" +"Despeja os dados da classe como uma sequência no formato de um arquivo " +"netrc. (Isso descarta os comentários e pode reordenar as entradas.)" #: ../../library/netrc.rst:72 msgid "Instances of :class:`~netrc.netrc` have public instance variables:" msgstr "" +"Instâncias de :class:`~netrc.netrc` possuem variáveis de instância públicas:" #: ../../library/netrc.rst:77 msgid "" -"Dictionary mapping host names to ``(login, account, password)`` tuples. The" -" 'default' entry, if any, is represented as a pseudo-host by that name." +"Dictionary mapping host names to ``(login, account, password)`` tuples. The " +"'default' entry, if any, is represented as a pseudo-host by that name." msgstr "" +"Dicionário mapeando nomes de host para tuplas ``(login, conta, senha)``. A " +"entrada *default*, se houver, é representada como um pseudo-host por esse " +"nome." #: ../../library/netrc.rst:83 msgid "Dictionary mapping macro names to string lists." -msgstr "" +msgstr "Dicionário mapeando nomes de macros para listas de strings." #: ../../library/netrc.rst:87 msgid "" @@ -121,3 +150,8 @@ msgid "" "printable characters are not allowed in passwords. This is a limitation of " "the way the .netrc file is parsed and may be removed in the future." msgstr "" +"As senhas são limitadas a um subconjunto do conjunto de caracteres ASCII. " +"Todas as pontuações ASCII são permitidas nas senhas; no entanto, observe que " +"caracteres em branco e não imprimíveis não são permitidos nas senhas. Essa é " +"uma limitação da maneira como o arquivo .netrc é analisado e pode ser " +"removido no futuro." diff --git a/library/nis.po b/library/nis.po index f3f2acbaa..86241b129 100644 --- a/library/nis.po +++ b/library/nis.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,42 +24,52 @@ msgstr "" #: ../../library/nis.rst:3 msgid ":mod:`nis` --- Interface to Sun's NIS (Yellow Pages)" -msgstr "" +msgstr ":mod:`nis` --- Interface para NIS da Sun (Yellow Pages)" #: ../../library/nis.rst:14 msgid "" "The :mod:`nis` module gives a thin wrapper around the NIS library, useful " "for central administration of several hosts." msgstr "" +"O módulo :mod:`nis` fornece um invólucro fino em torno da biblioteca NIS, " +"útil para administração central de vários hosts." #: ../../library/nis.rst:17 msgid "" "Because NIS exists only on Unix systems, this module is only available for " "Unix." msgstr "" +"Como o NIS existe apenas em sistemas Unix, este módulo está disponível " +"apenas para Unix." #: ../../library/nis.rst:19 msgid "The :mod:`nis` module defines the following functions:" -msgstr "" +msgstr "O módulo :mod:`nis` define as seguintes funções:" #: ../../library/nis.rst:24 msgid "" -"Return the match for *key* in map *mapname*, or raise an error " -"(:exc:`nis.error`) if there is none. Both should be strings, *key* is 8-bit " -"clean. Return value is an arbitrary array of bytes (may contain ``NULL`` and" -" other joys)." +"Return the match for *key* in map *mapname*, or raise an error (:exc:`nis." +"error`) if there is none. Both should be strings, *key* is 8-bit clean. " +"Return value is an arbitrary array of bytes (may contain ``NULL`` and other " +"joys)." msgstr "" +"Retorna a correspondência para *key* no mapa *mapname* ou levanta um erro (:" +"exc:`nis.error`) se não houver nenhum. Ambos devem ser strings, *key* está " +"limpo em 8 bits. O valor de retorno é uma matriz arbitrária de bytes (pode " +"conter ``NULL`` e outras alegrias)." #: ../../library/nis.rst:29 ../../library/nis.rst:41 -msgid "" -"Note that *mapname* is first checked if it is an alias to another name." +msgid "Note that *mapname* is first checked if it is an alias to another name." msgstr "" +"Observe que *mapname* é verificado primeiro se for um alias para outro nome." #: ../../library/nis.rst:31 ../../library/nis.rst:43 ../../library/nis.rst:51 msgid "" "The *domain* argument allows overriding the NIS domain used for the lookup. " "If unspecified, lookup is in the default NIS domain." msgstr "" +"O argumento *domain* permite substituir o domínio NIS usado para a pesquisa. " +"Se não especificado, a pesquisa está no domínio NIS padrão." #: ../../library/nis.rst:37 msgid "" @@ -62,19 +77,22 @@ msgid "" "mapname)==value``. Note that both keys and values of the dictionary are " "arbitrary arrays of bytes." msgstr "" +"Retorna um mapeamento de dicionário de *key* para *value* de modo que " +"``match(key, mapname)==value``. Observe que as chaves e os valores do " +"dicionário são matrizes arbitrárias de bytes." #: ../../library/nis.rst:49 msgid "Return a list of all valid maps." -msgstr "" +msgstr "Retorna uma lista de todos os mapas válidos." #: ../../library/nis.rst:57 msgid "Return the system default NIS domain." -msgstr "" +msgstr "Retorna o domínio NIS padrão do sistema." #: ../../library/nis.rst:60 msgid "The :mod:`nis` module defines the following exception:" -msgstr "" +msgstr "O módulo :mod:`nis` define a exceção padrão:" #: ../../library/nis.rst:64 msgid "An error raised when a NIS function returns an error code." -msgstr "" +msgstr "Um erro levantado quando uma função NIS retorna um códio de erro." diff --git a/library/nntplib.po b/library/nntplib.po index 16396df0b..a6ff90103 100644 --- a/library/nntplib.po +++ b/library/nntplib.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-03 10:20+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,10 +34,10 @@ msgstr "**Código Fonte:** :source:`Lib/nntplib.py`" #: ../../library/nntplib.rst:15 msgid "" -"This module defines the class :class:`NNTP` which implements the client side" -" of the Network News Transfer Protocol. It can be used to implement a news " -"reader or poster, or automated news processors. It is compatible with " -":rfc:`3977` as well as the older :rfc:`977` and :rfc:`2980`." +"This module defines the class :class:`NNTP` which implements the client side " +"of the Network News Transfer Protocol. It can be used to implement a news " +"reader or poster, or automated news processors. It is compatible with :rfc:" +"`3977` as well as the older :rfc:`977` and :rfc:`2980`." msgstr "" #: ../../library/nntplib.rst:20 @@ -47,8 +49,7 @@ msgstr "" #: ../../library/nntplib.rst:44 msgid "" "To post an article from a binary file (this assumes that the article has " -"valid headers, and that you have right to post on the particular " -"newsgroup)::" +"valid headers, and that you have right to post on the particular newsgroup)::" msgstr "" #: ../../library/nntplib.rst:54 @@ -59,18 +60,18 @@ msgstr "" msgid "" "Return a new :class:`NNTP` object, representing a connection to the NNTP " "server running on host *host*, listening at port *port*. An optional " -"*timeout* can be specified for the socket connection. If the optional *user*" -" and *password* are provided, or if suitable credentials are present in " -":file:`/.netrc` and the optional flag *usenetrc* is true, the ``AUTHINFO " -"USER`` and ``AUTHINFO PASS`` commands are used to identify and authenticate " -"the user to the server. If the optional flag *readermode* is true, then a " +"*timeout* can be specified for the socket connection. If the optional *user* " +"and *password* are provided, or if suitable credentials are present in :file:" +"`/.netrc` and the optional flag *usenetrc* is true, the ``AUTHINFO USER`` " +"and ``AUTHINFO PASS`` commands are used to identify and authenticate the " +"user to the server. If the optional flag *readermode* is true, then a " "``mode reader`` command is sent before authentication is performed. Reader " "mode is sometimes necessary if you are connecting to an NNTP server on the " "local machine and intend to call reader-specific commands, such as " "``group``. If you get unexpected :exc:`NNTPPermanentError`\\ s, you might " -"need to set *readermode*. The :class:`NNTP` class supports the " -":keyword:`with` statement to unconditionally consume :exc:`OSError` " -"exceptions and to close the NNTP connection when done, e.g.:" +"need to set *readermode*. The :class:`NNTP` class supports the :keyword:" +"`with` statement to unconditionally consume :exc:`OSError` exceptions and to " +"close the NNTP connection when done, e.g.:" msgstr "" #: ../../library/nntplib.rst:83 @@ -84,31 +85,30 @@ msgstr "Suporte para a instrução :keyword:`with` foi adicionado." #: ../../library/nntplib.rst:91 msgid "" "Return a new :class:`NNTP_SSL` object, representing an encrypted connection " -"to the NNTP server running on host *host*, listening at port *port*. " -":class:`NNTP_SSL` objects have the same methods as :class:`NNTP` objects. " -"If *port* is omitted, port 563 (NNTPS) is used. *ssl_context* is also " -"optional, and is a :class:`~ssl.SSLContext` object. Please read :ref:`ssl-" -"security` for best practices. All other parameters behave the same as for " -":class:`NNTP`." +"to the NNTP server running on host *host*, listening at port *port*. :class:" +"`NNTP_SSL` objects have the same methods as :class:`NNTP` objects. If " +"*port* is omitted, port 563 (NNTPS) is used. *ssl_context* is also optional, " +"and is a :class:`~ssl.SSLContext` object. Please read :ref:`ssl-security` " +"for best practices. All other parameters behave the same as for :class:" +"`NNTP`." msgstr "" #: ../../library/nntplib.rst:99 msgid "" -"Note that SSL-on-563 is discouraged per :rfc:`4642`, in favor of STARTTLS as" -" described below. However, some servers only support the former." +"Note that SSL-on-563 is discouraged per :rfc:`4642`, in favor of STARTTLS as " +"described below. However, some servers only support the former." msgstr "" #: ../../library/nntplib.rst:105 msgid "" -"The class now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The class now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/nntplib.rst:112 msgid "" -"Derived from the standard exception :exc:`Exception`, this is the base class" -" for all exceptions raised by the :mod:`nntplib` module. Instances of this " +"Derived from the standard exception :exc:`Exception`, this is the base class " +"for all exceptions raised by the :mod:`nntplib` module. Instances of this " "class have the following attribute:" msgstr "" @@ -157,14 +157,14 @@ msgstr "" #: ../../library/nntplib.rst:160 msgid "" "An integer representing the version of the NNTP protocol supported by the " -"server. In practice, this should be ``2`` for servers advertising " -":rfc:`3977` compliance and ``1`` for others." +"server. In practice, this should be ``2`` for servers advertising :rfc:" +"`3977` compliance and ``1`` for others." msgstr "" #: ../../library/nntplib.rst:168 msgid "" -"A string describing the software name and version of the NNTP server, or " -":const:`None` if not advertised by the server." +"A string describing the software name and version of the NNTP server, or :" +"const:`None` if not advertised by the server." msgstr "" #: ../../library/nntplib.rst:174 @@ -174,31 +174,31 @@ msgstr "Métodos" #: ../../library/nntplib.rst:176 msgid "" "The *response* that is returned as the first item in the return tuple of " -"almost all methods is the server's response: a string beginning with a " -"three-digit code. If the server's response indicates an error, the method " -"raises one of the above exceptions." +"almost all methods is the server's response: a string beginning with a three-" +"digit code. If the server's response indicates an error, the method raises " +"one of the above exceptions." msgstr "" #: ../../library/nntplib.rst:181 msgid "" -"Many of the following methods take an optional keyword-only argument *file*." -" When the *file* argument is supplied, it must be either a :term:`file " +"Many of the following methods take an optional keyword-only argument *file*. " +"When the *file* argument is supplied, it must be either a :term:`file " "object` opened for binary writing, or the name of an on-disk file to be " "written to. The method will then write any data returned by the server " -"(except for the response line and the terminating dot) to the file; any list" -" of lines, tuples or objects that the method normally returns will be empty." +"(except for the response line and the terminating dot) to the file; any list " +"of lines, tuples or objects that the method normally returns will be empty." msgstr "" #: ../../library/nntplib.rst:188 msgid "" -"Many of the following methods have been reworked and fixed, which makes them" -" incompatible with their 3.1 counterparts." +"Many of the following methods have been reworked and fixed, which makes them " +"incompatible with their 3.1 counterparts." msgstr "" #: ../../library/nntplib.rst:195 msgid "" -"Send a ``QUIT`` command and close the connection. Once this method has been" -" called, no other methods of the NNTP object should be called." +"Send a ``QUIT`` command and close the connection. Once this method has been " +"called, no other methods of the NNTP object should be called." msgstr "" #: ../../library/nntplib.rst:201 @@ -210,57 +210,55 @@ msgstr "" #: ../../library/nntplib.rst:208 msgid "" -"Return the :rfc:`3977` capabilities advertised by the server, as a " -":class:`dict` instance mapping capability names to (possibly empty) lists of" -" values. On legacy servers which don't understand the ``CAPABILITIES`` " +"Return the :rfc:`3977` capabilities advertised by the server, as a :class:" +"`dict` instance mapping capability names to (possibly empty) lists of " +"values. On legacy servers which don't understand the ``CAPABILITIES`` " "command, an empty dictionary is returned instead." msgstr "" #: ../../library/nntplib.rst:222 msgid "" "Send ``AUTHINFO`` commands with the user name and password. If *user* and " -"*password* are ``None`` and *usenetrc* is true, credentials from " -"``~/.netrc`` will be used if possible." +"*password* are ``None`` and *usenetrc* is true, credentials from ``~/." +"netrc`` will be used if possible." msgstr "" #: ../../library/nntplib.rst:226 msgid "" -"Unless intentionally delayed, login is normally performed during the " -":class:`NNTP` object initialization and separately calling this function is " -"unnecessary. To force authentication to be delayed, you must not set *user*" -" or *password* when creating the object, and must set *usenetrc* to False." +"Unless intentionally delayed, login is normally performed during the :class:" +"`NNTP` object initialization and separately calling this function is " +"unnecessary. To force authentication to be delayed, you must not set *user* " +"or *password* when creating the object, and must set *usenetrc* to False." msgstr "" #: ../../library/nntplib.rst:237 msgid "" "Send a ``STARTTLS`` command. This will enable encryption on the NNTP " -"connection. The *context* argument is optional and should be a " -":class:`ssl.SSLContext` object. Please read :ref:`ssl-security` for best " -"practices." +"connection. The *context* argument is optional and should be a :class:`ssl." +"SSLContext` object. Please read :ref:`ssl-security` for best practices." msgstr "" #: ../../library/nntplib.rst:242 msgid "" "Note that this may not be done after authentication information has been " -"transmitted, and authentication occurs by default if possible during a " -":class:`NNTP` object initialization. See :meth:`NNTP.login` for information" -" on suppressing this behavior." +"transmitted, and authentication occurs by default if possible during a :" +"class:`NNTP` object initialization. See :meth:`NNTP.login` for information " +"on suppressing this behavior." msgstr "" #: ../../library/nntplib.rst:249 msgid "" -"The method now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The method now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/nntplib.rst:256 msgid "" -"Send a ``NEWGROUPS`` command. The *date* argument should be a " -":class:`datetime.date` or :class:`datetime.datetime` object. Return a pair " -"``(response, groups)`` where *groups* is a list representing the groups that" -" are new since the given *date*. If *file* is supplied, though, then " -"*groups* will be empty." +"Send a ``NEWGROUPS`` command. The *date* argument should be a :class:" +"`datetime.date` or :class:`datetime.datetime` object. Return a pair " +"``(response, groups)`` where *groups* is a list representing the groups that " +"are new since the given *date*. If *file* is supplied, though, then *groups* " +"will be empty." msgstr "" #: ../../library/nntplib.rst:272 @@ -316,8 +314,8 @@ msgstr "" #: ../../library/nntplib.rst:299 msgid "" -"This command can return very large results, especially if *group_pattern* is" -" not specified. It is best to cache the results offline unless you really " +"This command can return very large results, especially if *group_pattern* is " +"not specified. It is best to cache the results offline unless you really " "need to refresh them." msgstr "" @@ -327,9 +325,9 @@ msgstr "" #: ../../library/nntplib.rst:309 msgid "" -"Send a ``LIST NEWSGROUPS`` command, where *grouppattern* is a wildmat string" -" as specified in :rfc:`3977` (it's essentially the same as DOS or UNIX shell" -" wildcard strings). Return a pair ``(response, descriptions)``, where " +"Send a ``LIST NEWSGROUPS`` command, where *grouppattern* is a wildmat string " +"as specified in :rfc:`3977` (it's essentially the same as DOS or UNIX shell " +"wildcard strings). Return a pair ``(response, descriptions)``, where " "*descriptions* is a dictionary mapping group names to textual descriptions." msgstr "" @@ -352,8 +350,7 @@ msgid "" "selected as the current group, if it exists. Return a tuple ``(response, " "count, first, last, name)`` where *count* is the (estimated) number of " "articles in the group, *first* is the first article number in the group, " -"*last* is the last article number in the group, and *name* is the group " -"name." +"*last* is the last article number in the group, and *name* is the group name." msgstr "" #: ../../library/nntplib.rst:343 @@ -362,8 +359,8 @@ msgid "" "*message_spec* can be either a string representing a message id, or a " "``(first, last)`` tuple of numbers indicating a range of articles in the " "current group, or a ``(first, None)`` tuple indicating a range of articles " -"starting from *first* to the last article in the current group, or " -":const:`None` to select the current article in the current group." +"starting from *first* to the last article in the current group, or :const:" +"`None` to select the current article in the current group." msgstr "" #: ../../library/nntplib.rst:350 @@ -406,15 +403,15 @@ msgstr "" #: ../../library/nntplib.rst:386 msgid "" -"Send a ``HELP`` command. Return a pair ``(response, list)`` where *list* is" -" a list of help strings." +"Send a ``HELP`` command. Return a pair ``(response, list)`` where *list* is " +"a list of help strings." msgstr "" #: ../../library/nntplib.rst:392 msgid "" "Send a ``STAT`` command, where *message_spec* is either a message id " -"(enclosed in ``'<'`` and ``'>'``) or an article number in the current group." -" If *message_spec* is omitted or :const:`None`, the current article in the " +"(enclosed in ``'<'`` and ``'>'``) or an article number in the current group. " +"If *message_spec* is omitted or :const:`None`, the current article in the " "current group is considered. Return a triple ``(response, number, id)`` " "where *number* is the article number and *id* is the message id." msgstr "" @@ -430,12 +427,12 @@ msgstr "" #: ../../library/nntplib.rst:416 msgid "" "Send an ``ARTICLE`` command, where *message_spec* has the same meaning as " -"for :meth:`.stat`. Return a tuple ``(response, info)`` where *info* is a " -":class:`~collections.namedtuple` with three attributes *number*, " -"*message_id* and *lines* (in that order). *number* is the article number in" -" the group (or 0 if the information is not available), *message_id* the " -"message id as a string, and *lines* a list of lines (without terminating " -"newlines) comprising the raw message including headers and body." +"for :meth:`.stat`. Return a tuple ``(response, info)`` where *info* is a :" +"class:`~collections.namedtuple` with three attributes *number*, *message_id* " +"and *lines* (in that order). *number* is the article number in the group " +"(or 0 if the information is not available), *message_id* the message id as a " +"string, and *lines* a list of lines (without terminating newlines) " +"comprising the raw message including headers and body." msgstr "" #: ../../library/nntplib.rst:441 @@ -454,11 +451,11 @@ msgstr "" #: ../../library/nntplib.rst:455 msgid "" -"Post an article using the ``POST`` command. The *data* argument is either a" -" :term:`file object` opened for binary reading, or any iterable of bytes " +"Post an article using the ``POST`` command. The *data* argument is either " +"a :term:`file object` opened for binary reading, or any iterable of bytes " "objects (representing raw lines of the article to be posted). It should " -"represent a well-formed news article, including the required headers. The " -":meth:`post` method automatically escapes lines beginning with ``.`` and " +"represent a well-formed news article, including the required headers. The :" +"meth:`post` method automatically escapes lines beginning with ``.`` and " "appends the termination line." msgstr "" @@ -471,14 +468,14 @@ msgstr "" #: ../../library/nntplib.rst:468 msgid "" "Send an ``IHAVE`` command. *message_id* is the id of the message to send to " -"the server (enclosed in ``'<'`` and ``'>'``). The *data* parameter and the" -" return value are the same as for :meth:`post()`." +"the server (enclosed in ``'<'`` and ``'>'``). The *data* parameter and the " +"return value are the same as for :meth:`post()`." msgstr "" #: ../../library/nntplib.rst:475 msgid "" -"Return a pair ``(response, date)``. *date* is a :class:`~datetime.datetime`" -" object containing the current date and time of the server." +"Return a pair ``(response, date)``. *date* is a :class:`~datetime.datetime` " +"object containing the current date and time of the server." msgstr "" #: ../../library/nntplib.rst:481 @@ -511,17 +508,17 @@ msgid "" "text of the requested header for that article. If the *file* parameter is " "supplied, then the output of the ``XHDR`` command is stored in a file. If " "*file* is a string, then the method will open a file with that name, write " -"to it then close it. If *file* is a :term:`file object`, then it will start" -" calling :meth:`write` on it to store the lines of the command output. If " +"to it then close it. If *file* is a :term:`file object`, then it will start " +"calling :meth:`write` on it to store the lines of the command output. If " "*file* is supplied, then the returned *list* is an empty list." msgstr "" #: ../../library/nntplib.rst:515 msgid "" -"Send an ``XOVER`` command. *start* and *end* are article numbers delimiting" -" the range of articles to select. The return value is the same of for " -":meth:`over()`. It is recommended to use :meth:`over()` instead, since it " -"will automatically use the newer ``OVER`` command if available." +"Send an ``XOVER`` command. *start* and *end* are article numbers delimiting " +"the range of articles to select. The return value is the same of for :meth:" +"`over()`. It is recommended to use :meth:`over()` instead, since it will " +"automatically use the newer ``OVER`` command if available." msgstr "" #: ../../library/nntplib.rst:524 diff --git a/library/numbers.po b/library/numbers.po index 2c16bbb61..aac00052a 100644 --- a/library/numbers.po +++ b/library/numbers.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,9 +33,9 @@ msgstr "**Código Fonte:** :source:`Lib/numbers.py`" #: ../../library/numbers.rst:11 msgid "" -"The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric " -":term:`abstract base classes ` which progressively " -"define more operations. None of the types defined in this module can be " +"The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:" +"`abstract base classes ` which progressively define " +"more operations. None of the types defined in this module can be " "instantiated." msgstr "" @@ -50,10 +52,10 @@ msgstr "" #: ../../library/numbers.rst:27 msgid "" "Subclasses of this type describe complex numbers and include the operations " -"that work on the built-in :class:`complex` type. These are: conversions to " -":class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``, " -"``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All" -" except ``-`` and ``!=`` are abstract." +"that work on the built-in :class:`complex` type. These are: conversions to :" +"class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``, ``-" +"``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All " +"except ``-`` and ``!=`` are abstract." msgstr "" #: ../../library/numbers.rst:35 @@ -78,22 +80,22 @@ msgstr "" #: ../../library/numbers.rst:51 msgid "" -"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, " -":func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, " -"``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``." +"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :" +"func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, " +"``%``, ``<``, ``<=``, ``>``, and ``>=``." msgstr "" #: ../../library/numbers.rst:55 msgid "" -"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, " -":attr:`~Complex.imag`, and :meth:`~Complex.conjugate`." +"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :" +"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`." msgstr "" #: ../../library/numbers.rst:61 msgid "" -"Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and " -":attr:`~Rational.denominator` properties, which should be in lowest terms. " -"With these, it provides a default for :func:`float`." +"Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and :attr:" +"`~Rational.denominator` properties, which should be in lowest terms. With " +"these, it provides a default for :func:`float`." msgstr "" #: ../../library/numbers.rst:68 ../../library/numbers.rst:72 @@ -103,9 +105,9 @@ msgstr "" #: ../../library/numbers.rst:77 msgid "" "Subtypes :class:`Rational` and adds a conversion to :class:`int`. Provides " -"defaults for :func:`float`, :attr:`~Rational.numerator`, and " -":attr:`~Rational.denominator`. Adds abstract methods for ``**`` and bit-" -"string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``." +"defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:" +"`~Rational.denominator`. Adds abstract methods for ``**`` and bit-string " +"operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``." msgstr "" #: ../../library/numbers.rst:84 @@ -115,9 +117,9 @@ msgstr "" #: ../../library/numbers.rst:86 msgid "" "Implementors should be careful to make equal numbers equal and hash them to " -"the same values. This may be subtle if there are two different extensions of" -" the real numbers. For example, :class:`fractions.Fraction` implements " -":func:`hash` as follows::" +"the same values. This may be subtle if there are two different extensions of " +"the real numbers. For example, :class:`fractions.Fraction` implements :func:" +"`hash` as follows::" msgstr "" #: ../../library/numbers.rst:105 @@ -137,19 +139,19 @@ msgstr "" #: ../../library/numbers.rst:121 msgid "" -"We want to implement the arithmetic operations so that mixed-mode operations" -" either call an implementation whose author knew about the types of both " -"arguments, or convert both to the nearest built in type and do the operation" -" there. For subtypes of :class:`Integral`, this means that :meth:`__add__` " +"We want to implement the arithmetic operations so that mixed-mode operations " +"either call an implementation whose author knew about the types of both " +"arguments, or convert both to the nearest built in type and do the operation " +"there. For subtypes of :class:`Integral`, this means that :meth:`__add__` " "and :meth:`__radd__` should be defined as::" msgstr "" #: ../../library/numbers.rst:152 msgid "" -"There are 5 different cases for a mixed-type operation on subclasses of " -":class:`Complex`. I'll refer to all of the above code that doesn't refer to " -"``MyIntegral`` and ``OtherTypeIKnowAbout`` as \"boilerplate\". ``a`` will be" -" an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: " +"There are 5 different cases for a mixed-type operation on subclasses of :" +"class:`Complex`. I'll refer to all of the above code that doesn't refer to " +"``MyIntegral`` and ``OtherTypeIKnowAbout`` as \"boilerplate\". ``a`` will be " +"an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: " "Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:" msgstr "" @@ -161,10 +163,15 @@ msgstr "" msgid "" "If ``A`` falls back to the boilerplate code, and it were to return a value " "from :meth:`__add__`, we'd miss the possibility that ``B`` defines a more " -"intelligent :meth:`__radd__`, so the boilerplate should return " -":const:`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement " -":meth:`__add__` at all.)" +"intelligent :meth:`__radd__`, so the boilerplate should return :const:" +"`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement :meth:" +"`__add__` at all.)" msgstr "" +"Se ``A`` voltar ao código padrão e tivesse que retornar um valor de :meth:" +"`__add__`, perderíamos a possibilidade de que ``B`` definisse um :meth:" +"`__radd__` mais inteligente, então o código padrão deve retornar :const:" +"`NotImplemented` de :meth:`__add__`. (Ou ``A`` pode não implementar :meth:" +"`__add__`.)" #: ../../library/numbers.rst:167 msgid "" @@ -180,22 +187,22 @@ msgstr "" #: ../../library/numbers.rst:172 msgid "" -"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok," -" because it was implemented with knowledge of ``A``, so it can handle those " +"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, " +"because it was implemented with knowledge of ``A``, so it can handle those " "instances before delegating to :class:`Complex`." msgstr "" #: ../../library/numbers.rst:177 msgid "" "If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, " -"then the appropriate shared operation is the one involving the built in " -":class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``." +"then the appropriate shared operation is the one involving the built in :" +"class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``." msgstr "" #: ../../library/numbers.rst:182 msgid "" "Because most of the operations on any given type will be very similar, it " "can be useful to define a helper function which generates the forward and " -"reverse instances of any given operator. For example, " -":class:`fractions.Fraction` uses::" +"reverse instances of any given operator. For example, :class:`fractions." +"Fraction` uses::" msgstr "" diff --git a/library/numeric.po b/library/numeric.po index 805f683be..855c3e026 100644 --- a/library/numeric.po +++ b/library/numeric.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,17 +31,17 @@ msgstr "Módulos Matemáticos e Numéricos" msgid "" "The modules described in this chapter provide numeric and math-related " "functions and data types. The :mod:`numbers` module defines an abstract " -"hierarchy of numeric types. The :mod:`math` and :mod:`cmath` modules contain" -" various mathematical functions for floating-point and complex numbers. The " -":mod:`decimal` module supports exact representations of decimal numbers, " +"hierarchy of numeric types. The :mod:`math` and :mod:`cmath` modules contain " +"various mathematical functions for floating-point and complex numbers. The :" +"mod:`decimal` module supports exact representations of decimal numbers, " "using arbitrary precision arithmetic." msgstr "" "Os módulos descritos neste capítulo fornecem funções e tipos de dados " "relacionados com o numérico e matemática. O módulo: mod: `numbers` define " -"uma hierarquia abstrata de tipos numéricos. Os módulos: mod: `math` e: mod:`" -" cmath` contêm várias funções matemáticas para números de ponto flutuante e " -"números complexos. O módulo: mod: `decimal` suporta representações exatas de" -" números decimais, usando aritmética de precisão arbitrária." +"uma hierarquia abstrata de tipos numéricos. Os módulos: mod: `math` e: mod:` " +"cmath` contêm várias funções matemáticas para números de ponto flutuante e " +"números complexos. O módulo: mod: `decimal` suporta representações exatas de " +"números decimais, usando aritmética de precisão arbitrária." #: ../../library/numeric.rst:15 msgid "The following modules are documented in this chapter:" diff --git a/library/operator.po b/library/operator.po index c1607c87a..db3f28f95 100644 --- a/library/operator.po +++ b/library/operator.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Misael borges , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-09 11:06+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" "Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,18 +35,18 @@ msgstr "**Código-fonte:** :source:`Lib/operator.py`" #: ../../library/operator.rst:18 msgid "" "The :mod:`operator` module exports a set of efficient functions " -"corresponding to the intrinsic operators of Python. For example, " -"``operator.add(x, y)`` is equivalent to the expression ``x+y``. Many " -"function names are those used for special methods, without the double " -"underscores. For backward compatibility, many of these have a variant with " -"the double underscores kept. The variants without the double underscores are" -" preferred for clarity." +"corresponding to the intrinsic operators of Python. For example, ``operator." +"add(x, y)`` is equivalent to the expression ``x+y``. Many function names are " +"those used for special methods, without the double underscores. For " +"backward compatibility, many of these have a variant with the double " +"underscores kept. The variants without the double underscores are preferred " +"for clarity." msgstr "" "O módulo :mod:`operator` exporta um conjunto de funções eficientes " "correspondentes aos operadores intrínsecos do Python. Por exemplo, " "``operator.add(x,y)`` é equivalente à expressão ``x+y``. Muitos nomes de " -"função são aqueles usados para métodos especiais, sem os sublinhados duplos." -" Para compatibilidade com versões anteriores, muitos deles têm uma variante " +"função são aqueles usados para métodos especiais, sem os sublinhados duplos. " +"Para compatibilidade com versões anteriores, muitos deles têm uma variante " "com os sublinhados duplos mantidos. As variantes sem os sublinhados duplos " "são preferenciais para maior clareza." @@ -67,19 +68,19 @@ msgstr "" #: ../../library/operator.rst:45 msgid "" -"Perform \"rich comparisons\" between *a* and *b*. Specifically, ``lt(a, b)``" -" is equivalent to ``a < b``, ``le(a, b)`` is equivalent to ``a <= b``, " -"``eq(a, b)`` is equivalent to ``a == b``, ``ne(a, b)`` is equivalent to ``a " -"!= b``, ``gt(a, b)`` is equivalent to ``a > b`` and ``ge(a, b)`` is " +"Perform \"rich comparisons\" between *a* and *b*. Specifically, ``lt(a, b)`` " +"is equivalent to ``a < b``, ``le(a, b)`` is equivalent to ``a <= b``, " +"``eq(a, b)`` is equivalent to ``a == b``, ``ne(a, b)`` is equivalent to ``a !" +"= b``, ``gt(a, b)`` is equivalent to ``a > b`` and ``ge(a, b)`` is " "equivalent to ``a >= b``. Note that these functions can return any value, " -"which may or may not be interpretable as a Boolean value. See " -":ref:`comparisons` for more information about rich comparisons." +"which may or may not be interpretable as a Boolean value. See :ref:" +"`comparisons` for more information about rich comparisons." msgstr "" -"Executa \"comparações ricas\" entre *a* e *b*. Especialmente, ``lt(a, b)`` é" -" equivalente a ``a < b``, ``le(a, b)`` é equivalente a ``a <= b``, ``eq(a, " +"Executa \"comparações ricas\" entre *a* e *b*. Especialmente, ``lt(a, b)`` é " +"equivalente a ``a < b``, ``le(a, b)`` é equivalente a ``a <= b``, ``eq(a, " "b)`` é equivalente a ``a == b``, ``ne(a, b)`` é equivalente a ``a != b``, " -"``gt(a, b)`` é equivalente a ``a > b`` e ``ge(a, b)`` é equivalente a ``a >=" -" b``. Observe que essas funções podem retornar qualquer valor, que pode ou " +"``gt(a, b)`` é equivalente a ``a > b`` e ``ge(a, b)`` é equivalente a ``a >= " +"b``. Observe que essas funções podem retornar qualquer valor, que pode ou " "não ser interpretável como um valor booleano. Consulte :ref:`comparisons` " "para obter mais informações sobre comparações ricas. Como as funções de " "comparação de objetos são úteis para todos os objetos e são nomeados pelos " @@ -95,23 +96,23 @@ msgstr "" #: ../../library/operator.rst:61 msgid "" -"Return the outcome of :keyword:`not` *obj*. (Note that there is no " -":meth:`__not__` method for object instances; only the interpreter core " -"defines this operation. The result is affected by the :meth:`__bool__` and " -":meth:`__len__` methods.)" +"Return the outcome of :keyword:`not` *obj*. (Note that there is no :meth:" +"`__not__` method for object instances; only the interpreter core defines " +"this operation. The result is affected by the :meth:`__bool__` and :meth:" +"`__len__` methods.)" msgstr "" "Retorna o resultado de :keyword:`not` *obj*. (Veja que não existe nenhum " "método :meth:`__not__` para a instância do objetos; apenas o núcleo do " -"interpretador definirá esta operação. O resultado será afetado pelo " -":meth:`__bool__` e :meth:`__len__` methods.)" +"interpretador definirá esta operação. O resultado será afetado pelo :meth:" +"`__bool__` e :meth:`__len__` methods.)" #: ../../library/operator.rst:69 msgid "" "Return :const:`True` if *obj* is true, and :const:`False` otherwise. This " "is equivalent to using the :class:`bool` constructor." msgstr "" -"Retorna :const:`True` se o *obj* for True, e :const:`False` caso contrário." -" Isso é equivalente a utilizar a construção :class:`bool`." +"Retorna :const:`True` se o *obj* for True, e :const:`False` caso contrário. " +"Isso é equivalente a utilizar a construção :class:`bool`." #: ../../library/operator.rst:75 msgid "Return ``a is b``. Tests object identity." @@ -150,8 +151,7 @@ msgstr "" msgid "" "Return the bitwise inverse of the number *obj*. This is equivalent to " "``~obj``." -msgstr "" -"Retorna o inverso bit a bit do número *obj*. Isso equivale a ``~obj``." +msgstr "Retorna o inverso bit a bit do número *obj*. Isso equivale a ``~obj``." #: ../../library/operator.rst:127 msgid "Return *a* shifted left by *b*." @@ -248,9 +248,9 @@ msgid "" "actual length, then an estimate using :meth:`object.__length_hint__`, and " "finally return the default value." msgstr "" -"Retorna um comprimento estimado para o objeto *o*. Primeiro tente retornar o" -" seu comprimento real, em seguida, uma estimativa utilizando " -":meth:`object.__length_hint__`, e finalmente retorna o valor default. " +"Retorna um comprimento estimado para o objeto *o*. Primeiro tente retornar o " +"seu comprimento real, em seguida, uma estimativa utilizando :meth:`object." +"__length_hint__`, e finalmente retorna o valor default. " #: ../../library/operator.rst:249 msgid "" @@ -260,10 +260,9 @@ msgid "" "other functions that expect a function argument." msgstr "" "O módulo :mod:`operator` also defines tools for generalized attribute and " -"item lookups. Estes são úteis para fazer extração de campo rapidamente como" -" argumentos para a função :func:`map`, :func:`sorted`, " -":meth:`itertools.groupby`, ou outra função que espera um argumento de " -"função." +"item lookups. Estes são úteis para fazer extração de campo rapidamente como " +"argumentos para a função :func:`map`, :func:`sorted`, :meth:`itertools." +"groupby`, ou outra função que espera um argumento de função." #: ../../library/operator.rst:258 msgid "" @@ -276,16 +275,15 @@ msgstr "" "nomes dos atributos também podem conter pontos. Por exemplo:" #: ../../library/operator.rst:262 -msgid "" -"After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``." +msgid "After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``." msgstr "" -"Depois de ``f = attrgetter('name')``, a chamada a ``f(b)`` retorna " -"``b.name``." +"Depois de ``f = attrgetter('name')``, a chamada a ``f(b)`` retorna ``b." +"name``." #: ../../library/operator.rst:264 msgid "" -"After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns " -"``(b.name, b.date)``." +"After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns ``(b." +"name, b.date)``." msgstr "" "Depois de ``f = attrgetter('name', 'date')``, a chamada a ``f(b)`` " "retorna``(b.name, b.date)``." @@ -310,8 +308,8 @@ msgid "" "returns a tuple of lookup values. For example:" msgstr "" "Retornar um objeto callable que busca *item* de seu operando usando o " -"operando do método :meth:`__getitem__`. Se múltiplo itens são especificados," -" retorna uma tupla de valores da pesquisa. Por exemplo:" +"operando do método :meth:`__getitem__`. Se múltiplo itens são especificados, " +"retorna uma tupla de valores da pesquisa. Por exemplo:" #: ../../library/operator.rst:297 msgid "After ``f = itemgetter(2)``, the call ``f(r)`` returns ``r[2]``." @@ -323,23 +321,23 @@ msgid "" "After ``g = itemgetter(2, 5, 3)``, the call ``g(r)`` returns ``(r[2], r[5], " "r[3])``." msgstr "" -"Depois de ``g = itemgetter(2, 5, 3)``, a chamada a ``g(r)`` retorna ``(r[2]," -" r[5], r[3])``." +"Depois de ``g = itemgetter(2, 5, 3)``, a chamada a ``g(r)`` retorna ``(r[2], " +"r[5], r[3])``." #: ../../library/operator.rst:314 msgid "" "The items can be any type accepted by the operand's :meth:`__getitem__` " -"method. Dictionaries accept any hashable value. Lists, tuples, and strings" -" accept an index or a slice:" +"method. Dictionaries accept any hashable value. Lists, tuples, and strings " +"accept an index or a slice:" msgstr "" -"Os itens podem ser qualquer tipo aceito pelo método :meth:`__getitem__`. Os" -" dicionários aceitam qualquer valor hashable. Listas, tuplas e strings " +"Os itens podem ser qualquer tipo aceito pelo método :meth:`__getitem__`. Os " +"dicionários aceitam qualquer valor hashable. Listas, tuplas e strings " "aceitam um índice ou uma fatia:" #: ../../library/operator.rst:329 msgid "" -"Example of using :func:`itemgetter` to retrieve specific fields from a tuple" -" record:" +"Example of using :func:`itemgetter` to retrieve specific fields from a tuple " +"record:" msgstr "" "Exemplo de uso :func:`itemgetter` para recuperar campos específicos de um " "registro de tupla:" @@ -351,15 +349,15 @@ msgid "" "to the method as well. For example:" msgstr "" "Retornar um objeto callable que invoca o método *name* em seu operando. Se " -"argumentos adicionais e/ou argumentos de keyword forem fornecidos, os mesmos" -" serão passados para o método. Por exemplo:" +"argumentos adicionais e/ou argumentos de keyword forem fornecidos, os mesmos " +"serão passados para o método. Por exemplo:" #: ../../library/operator.rst:346 msgid "" "After ``f = methodcaller('name')``, the call ``f(b)`` returns ``b.name()``." msgstr "" -"Depois de ``f = methodcaller('name')``, a chamada a ``f(b)`` retorna " -"``b.name()``." +"Depois de ``f = methodcaller('name')``, a chamada a ``f(b)`` retorna ``b." +"name()``." #: ../../library/operator.rst:348 msgid "" @@ -837,8 +835,8 @@ msgstr "" #: ../../library/operator.rst:465 msgid "" -"For mutable targets such as lists and dictionaries, the in-place method will" -" perform the update, so no subsequent assignment is necessary:" +"For mutable targets such as lists and dictionaries, the in-place method will " +"perform the update, so no subsequent assignment is necessary:" msgstr "" "Para alvos mutáveis tal como listas e dicionários, o método in-place vai " "realizar a atualização, então nenhuma atribuição subsequente é necessária:" diff --git a/library/optparse.po b/library/optparse.po index db9a9c61a..06efec14a 100644 --- a/library/optparse.po +++ b/library/optparse.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 # And Past , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,12 +44,12 @@ msgstr "" #: ../../library/optparse.rst:19 msgid "" ":mod:`optparse` is a more convenient, flexible, and powerful library for " -"parsing command-line options than the old :mod:`getopt` module. " -":mod:`optparse` uses a more declarative style of command-line parsing: you " -"create an instance of :class:`OptionParser`, populate it with options, and " -"parse the command line. :mod:`optparse` allows users to specify options in " -"the conventional GNU/POSIX syntax, and additionally generates usage and help" -" messages for you." +"parsing command-line options than the old :mod:`getopt` module. :mod:" +"`optparse` uses a more declarative style of command-line parsing: you create " +"an instance of :class:`OptionParser`, populate it with options, and parse " +"the command line. :mod:`optparse` allows users to specify options in the " +"conventional GNU/POSIX syntax, and additionally generates usage and help " +"messages for you." msgstr "" #: ../../library/optparse.rst:26 @@ -65,11 +67,11 @@ msgid "" "As it parses the command line, :mod:`optparse` sets attributes of the " "``options`` object returned by :meth:`parse_args` based on user-supplied " "command-line values. When :meth:`parse_args` returns from parsing this " -"command line, ``options.filename`` will be ``\"outfile\"`` and " -"``options.verbose`` will be ``False``. :mod:`optparse` supports both long " -"and short options, allows short options to be merged together, and allows " -"options to be associated with their arguments in a variety of ways. Thus, " -"the following command lines are all equivalent to the above example::" +"command line, ``options.filename`` will be ``\"outfile\"`` and ``options." +"verbose`` will be ``False``. :mod:`optparse` supports both long and short " +"options, allows short options to be merged together, and allows options to " +"be associated with their arguments in a variety of ways. Thus, the " +"following command lines are all equivalent to the above example::" msgstr "" #: ../../library/optparse.rst:58 @@ -95,8 +97,8 @@ msgstr "" msgid "" ":mod:`optparse` was explicitly designed to encourage the creation of " "programs with straightforward, conventional command-line interfaces. To " -"that end, it supports only the most common command-line syntax and semantics" -" conventionally used under Unix. If you are unfamiliar with these " +"that end, it supports only the most common command-line syntax and semantics " +"conventionally used under Unix. If you are unfamiliar with these " "conventions, read this section to acquaint yourself with them." msgstr "" @@ -110,18 +112,18 @@ msgstr "argumento" #: ../../library/optparse.rst:96 msgid "" -"a string entered on the command-line, and passed by the shell to ``execl()``" -" or ``execv()``. In Python, arguments are elements of ``sys.argv[1:]`` " +"a string entered on the command-line, and passed by the shell to ``execl()`` " +"or ``execv()``. In Python, arguments are elements of ``sys.argv[1:]`` " "(``sys.argv[0]`` is the name of the program being executed). Unix shells " "also use the term \"word\"." msgstr "" #: ../../library/optparse.rst:101 msgid "" -"It is occasionally desirable to substitute an argument list other than " -"``sys.argv[1:]``, so you should read \"argument\" as \"an element of " -"``sys.argv[1:]``, or of some other list provided as a substitute for " -"``sys.argv[1:]``\"." +"It is occasionally desirable to substitute an argument list other than ``sys." +"argv[1:]``, so you should read \"argument\" as \"an element of ``sys." +"argv[1:]``, or of some other list provided as a substitute for ``sys." +"argv[1:]``\"." msgstr "" #: ../../library/optparse.rst:134 @@ -132,10 +134,10 @@ msgstr "" msgid "" "an argument used to supply extra information to guide or customize the " "execution of a program. There are many different syntaxes for options; the " -"traditional Unix syntax is a hyphen (\"-\") followed by a single letter, " -"e.g. ``-x`` or ``-F``. Also, traditional Unix syntax allows multiple " -"options to be merged into a single argument, e.g. ``-x -F`` is equivalent to" -" ``-xF``. The GNU project introduced ``--`` followed by a series of hyphen-" +"traditional Unix syntax is a hyphen (\"-\") followed by a single letter, e." +"g. ``-x`` or ``-F``. Also, traditional Unix syntax allows multiple options " +"to be merged into a single argument, e.g. ``-x -F`` is equivalent to ``-" +"xF``. The GNU project introduced ``--`` followed by a series of hyphen-" "separated words, e.g. ``--file`` or ``--dry-run``. These are the only two " "option syntaxes provided by :mod:`optparse`." msgstr "" @@ -159,14 +161,14 @@ msgstr "" #: ../../library/optparse.rst:125 msgid "" -"a plus sign followed by a single letter, or a few letters, or a word, e.g. " -"``+f``, ``+rgb``" +"a plus sign followed by a single letter, or a few letters, or a word, e.g. ``" +"+f``, ``+rgb``" msgstr "" #: ../../library/optparse.rst:128 msgid "" -"a slash followed by a letter, or a few letters, or a word, e.g. ``/f``, " -"``/file``" +"a slash followed by a letter, or a few letters, or a word, e.g. ``/f``, ``/" +"file``" msgstr "" #: ../../library/optparse.rst:131 @@ -184,9 +186,9 @@ msgstr "" #: ../../library/optparse.rst:137 msgid "" "an argument that follows an option, is closely associated with that option, " -"and is consumed from the argument list when that option is. With " -":mod:`optparse`, option arguments may either be in a separate argument from " -"their option:" +"and is consumed from the argument list when that option is. With :mod:" +"`optparse`, option arguments may either be in a separate argument from their " +"option:" msgstr "" #: ../../library/optparse.rst:147 @@ -197,8 +199,8 @@ msgstr "" msgid "" "Typically, a given option either takes an argument or it doesn't. Lots of " "people want an \"optional option arguments\" feature, meaning that some " -"options will take an argument if they see it, and won't if they don't. This" -" is somewhat controversial, because it makes parsing ambiguous: if ``-a`` " +"options will take an argument if they see it, and won't if they don't. This " +"is somewhat controversial, because it makes parsing ambiguous: if ``-a`` " "takes an optional argument and ``-b`` is another option entirely, how do we " "interpret ``-ab``? Because of this ambiguity, :mod:`optparse` does not " "support this feature." @@ -210,8 +212,8 @@ msgstr "positional argument (argumento posicional)" #: ../../library/optparse.rst:163 msgid "" -"something leftover in the argument list after options have been parsed, i.e." -" after options and their arguments have been parsed and removed from the " +"something leftover in the argument list after options have been parsed, i.e. " +"after options and their arguments have been parsed and removed from the " "argument list." msgstr "" @@ -223,8 +225,8 @@ msgstr "" msgid "" "an option that must be supplied on the command-line; note that the phrase " "\"required option\" is self-contradictory in English. :mod:`optparse` " -"doesn't prevent you from implementing required options, but doesn't give you" -" much help at it either." +"doesn't prevent you from implementing required options, but doesn't give you " +"much help at it either." msgstr "" #: ../../library/optparse.rst:173 @@ -234,8 +236,8 @@ msgstr "" #: ../../library/optparse.rst:177 msgid "" "``-v`` and ``--report`` are both options. Assuming that ``--report`` takes " -"one argument, ``report.txt`` is an option argument. ``foo`` and ``bar`` are" -" positional arguments." +"one argument, ``report.txt`` is an option argument. ``foo`` and ``bar`` are " +"positional arguments." msgstr "" #: ../../library/optparse.rst:185 @@ -249,8 +251,8 @@ msgid "" "*optional*. A program should be able to run just fine with no options " "whatsoever. (Pick a random program from the Unix or GNU toolsets. Can it " "run without any options at all and still make sense? The main exceptions " -"are ``find``, ``tar``, and ``dd``\\ ---all of which are mutant oddballs that" -" have been rightly criticized for their non-standard syntax and confusing " +"are ``find``, ``tar``, and ``dd``\\ ---all of which are mutant oddballs that " +"have been rightly criticized for their non-standard syntax and confusing " "interfaces.)" msgstr "" @@ -293,26 +295,26 @@ msgstr "" #: ../../library/optparse.rst:225 msgid "" -"A good user interface should have as few absolute requirements as possible." -" If your program requires 17 distinct pieces of information in order to run" -" successfully, it doesn't much matter *how* you get that information from " -"the user---most people will give up and walk away before they successfully " -"run the program. This applies whether the user interface is a command-line," -" a configuration file, or a GUI: if you make that many demands on your " -"users, most of them will simply give up." +"A good user interface should have as few absolute requirements as possible. " +"If your program requires 17 distinct pieces of information in order to run " +"successfully, it doesn't much matter *how* you get that information from the " +"user---most people will give up and walk away before they successfully run " +"the program. This applies whether the user interface is a command-line, a " +"configuration file, or a GUI: if you make that many demands on your users, " +"most of them will simply give up." msgstr "" #: ../../library/optparse.rst:233 msgid "" "In short, try to minimize the amount of information that users are " -"absolutely required to supply---use sensible defaults whenever possible. Of" -" course, you also want to make your programs reasonably flexible. That's " +"absolutely required to supply---use sensible defaults whenever possible. Of " +"course, you also want to make your programs reasonably flexible. That's " "what options are for. Again, it doesn't matter if they are entries in a " -"config file, widgets in the \"Preferences\" dialog of a GUI, or command-line" -" options---the more options you implement, the more flexible your program " -"is, and the more complicated its implementation becomes. Too much " -"flexibility has drawbacks as well, of course; too many options can overwhelm" -" users and make your code much harder to maintain." +"config file, widgets in the \"Preferences\" dialog of a GUI, or command-line " +"options---the more options you implement, the more flexible your program is, " +"and the more complicated its implementation becomes. Too much flexibility " +"has drawbacks as well, of course; too many options can overwhelm users and " +"make your code much harder to maintain." msgstr "" #: ../../library/optparse.rst:246 @@ -322,8 +324,8 @@ msgstr "Tutorial" #: ../../library/optparse.rst:248 msgid "" "While :mod:`optparse` is quite flexible and powerful, it's also " -"straightforward to use in most cases. This section covers the code patterns" -" that are common to any :mod:`optparse`\\ -based program." +"straightforward to use in most cases. This section covers the code patterns " +"that are common to any :mod:`optparse`\\ -based program." msgstr "" #: ../../library/optparse.rst:252 @@ -345,8 +347,8 @@ msgstr "" #: ../../library/optparse.rst:268 msgid "" -"Typically, each option will have one short option string and one long option" -" string, e.g.::" +"Typically, each option will have one short option string and one long option " +"string, e.g.::" msgstr "" #: ../../library/optparse.rst:273 @@ -358,23 +360,22 @@ msgstr "" #: ../../library/optparse.rst:277 msgid "" -"The option strings passed to :meth:`OptionParser.add_option` are effectively" -" labels for the option defined by that call. For brevity, we will " -"frequently refer to *encountering an option* on the command line; in " -"reality, :mod:`optparse` encounters *option strings* and looks up options " -"from them." +"The option strings passed to :meth:`OptionParser.add_option` are effectively " +"labels for the option defined by that call. For brevity, we will frequently " +"refer to *encountering an option* on the command line; in reality, :mod:" +"`optparse` encounters *option strings* and looks up options from them." msgstr "" #: ../../library/optparse.rst:283 msgid "" -"Once all of your options are defined, instruct :mod:`optparse` to parse your" -" program's command line::" +"Once all of your options are defined, instruct :mod:`optparse` to parse your " +"program's command line::" msgstr "" #: ../../library/optparse.rst:288 msgid "" -"(If you like, you can pass a custom argument list to :meth:`parse_args`, but" -" that's rarely necessary: by default it uses ``sys.argv[1:]``.)" +"(If you like, you can pass a custom argument list to :meth:`parse_args`, but " +"that's rarely necessary: by default it uses ``sys.argv[1:]``.)" msgstr "" #: ../../library/optparse.rst:291 @@ -384,8 +385,8 @@ msgstr "" #: ../../library/optparse.rst:293 msgid "" "``options``, an object containing values for all of your options---e.g. if " -"``--file`` takes a single string argument, then ``options.file`` will be the" -" filename supplied by the user, or ``None`` if the user did not supply that " +"``--file`` takes a single string argument, then ``options.file`` will be the " +"filename supplied by the user, or ``None`` if the user did not supply that " "option" msgstr "" @@ -396,10 +397,10 @@ msgstr "" #: ../../library/optparse.rst:300 msgid "" -"This tutorial section only covers the four most important option attributes:" -" :attr:`~Option.action`, :attr:`~Option.type`, :attr:`~Option.dest` " -"(destination), and :attr:`~Option.help`. Of these, :attr:`~Option.action` is" -" the most fundamental." +"This tutorial section only covers the four most important option " +"attributes: :attr:`~Option.action`, :attr:`~Option.type`, :attr:`~Option." +"dest` (destination), and :attr:`~Option.help`. Of these, :attr:`~Option." +"action` is the most fundamental." msgstr "" #: ../../library/optparse.rst:309 @@ -409,17 +410,16 @@ msgstr "" #: ../../library/optparse.rst:311 msgid "" "Actions tell :mod:`optparse` what to do when it encounters an option on the " -"command line. There is a fixed set of actions hard-coded into " -":mod:`optparse`; adding new actions is an advanced topic covered in section " -":ref:`optparse-extending-optparse`. Most actions tell :mod:`optparse` to " -"store a value in some variable---for example, take a string from the command" -" line and store it in an attribute of ``options``." +"command line. There is a fixed set of actions hard-coded into :mod:" +"`optparse`; adding new actions is an advanced topic covered in section :ref:" +"`optparse-extending-optparse`. Most actions tell :mod:`optparse` to store a " +"value in some variable---for example, take a string from the command line " +"and store it in an attribute of ``options``." msgstr "" #: ../../library/optparse.rst:318 msgid "" -"If you don't specify an option action, :mod:`optparse` defaults to " -"``store``." +"If you don't specify an option action, :mod:`optparse` defaults to ``store``." msgstr "" #: ../../library/optparse.rst:324 @@ -458,8 +458,7 @@ msgstr "" #: ../../library/optparse.rst:349 msgid "" "Note that this option has no long option string, which is perfectly " -"acceptable. Also, there's no explicit action, since the default is " -"``store``." +"acceptable. Also, there's no explicit action, since the default is ``store``." msgstr "" #: ../../library/optparse.rst:352 @@ -517,8 +516,8 @@ msgstr "" #: ../../library/optparse.rst:394 msgid "" "When :mod:`optparse` encounters ``-v`` on the command line, it sets " -"``options.verbose`` to ``True``; when it encounters ``-q``, " -"``options.verbose`` is set to ``False``." +"``options.verbose`` to ``True``; when it encounters ``-q``, ``options." +"verbose`` is set to ``False``." msgstr "" #: ../../library/optparse.rst:402 @@ -539,7 +538,7 @@ msgstr "armazena um valor constante" #: ../../library/optparse.rst:410 ../../library/optparse.rst:937 msgid "``\"append\"``" -msgstr "" +msgstr "``\"append\"``" #: ../../library/optparse.rst:410 ../../library/optparse.rst:937 msgid "append this option's argument to a list" @@ -547,7 +546,7 @@ msgstr "" #: ../../library/optparse.rst:413 ../../library/optparse.rst:943 msgid "``\"count\"``" -msgstr "" +msgstr "``\"count\"``" #: ../../library/optparse.rst:413 ../../library/optparse.rst:943 msgid "increment a counter by one" @@ -555,7 +554,7 @@ msgstr "" #: ../../library/optparse.rst:416 ../../library/optparse.rst:946 msgid "``\"callback\"``" -msgstr "" +msgstr "``\"callback\"``" #: ../../library/optparse.rst:416 ../../library/optparse.rst:946 msgid "call a specified function" @@ -573,10 +572,10 @@ msgstr "" #: ../../library/optparse.rst:427 msgid "" -"All of the above examples involve setting some variable (the " -"\"destination\") when certain command-line options are seen. What happens " -"if those options are never seen? Since we didn't supply any defaults, they " -"are all set to ``None``. This is usually fine, but sometimes you want more " +"All of the above examples involve setting some variable (the \"destination" +"\") when certain command-line options are seen. What happens if those " +"options are never seen? Since we didn't supply any defaults, they are all " +"set to ``None``. This is usually fine, but sometimes you want more " "control. :mod:`optparse` lets you supply a default value for each " "destination, which is assigned before the command line is parsed." msgstr "" @@ -607,15 +606,15 @@ msgstr "" #: ../../library/optparse.rst:455 msgid "" "A clearer way to specify default values is the :meth:`set_defaults` method " -"of OptionParser, which you can call at any time before calling " -":meth:`parse_args`::" +"of OptionParser, which you can call at any time before calling :meth:" +"`parse_args`::" msgstr "" #: ../../library/optparse.rst:462 msgid "" "As before, the last value specified for a given option destination is the " -"one that counts. For clarity, try to use one method or the other of setting" -" default values, not both." +"one that counts. For clarity, try to use one method or the other of setting " +"default values, not both." msgstr "" #: ../../library/optparse.rst:470 @@ -634,8 +633,8 @@ msgstr "" #: ../../library/optparse.rst:493 msgid "" "If :mod:`optparse` encounters either ``-h`` or ``--help`` on the command-" -"line, or if you just call :meth:`parser.print_help`, it prints the following" -" to standard output:" +"line, or if you just call :meth:`parser.print_help`, it prints the following " +"to standard output:" msgstr "" #: ../../library/optparse.rst:510 @@ -670,9 +669,9 @@ msgstr "" #: ../../library/optparse.rst:528 msgid "" -"every option defines a help string, and doesn't worry about line-" -"wrapping---\\ :mod:`optparse` takes care of wrapping lines and making the " -"help output look good." +"every option defines a help string, and doesn't worry about line-wrapping---" +"\\ :mod:`optparse` takes care of wrapping lines and making the help output " +"look good." msgstr "" #: ../../library/optparse.rst:532 @@ -684,11 +683,11 @@ msgstr "" #: ../../library/optparse.rst:537 msgid "" "Here, \"MODE\" is called the meta-variable: it stands for the argument that " -"the user is expected to supply to ``-m``/``--mode``. By default, " -":mod:`optparse` converts the destination variable name to uppercase and uses" -" that for the meta-variable. Sometimes, that's not what you want---for " -"example, the ``--filename`` option explicitly sets ``metavar=\"FILE\"``, " -"resulting in this automatically-generated option description::" +"the user is expected to supply to ``-m``/``--mode``. By default, :mod:" +"`optparse` converts the destination variable name to uppercase and uses that " +"for the meta-variable. Sometimes, that's not what you want---for example, " +"the ``--filename`` option explicitly sets ``metavar=\"FILE\"``, resulting in " +"this automatically-generated option description::" msgstr "" #: ../../library/optparse.rst:546 @@ -696,16 +695,16 @@ msgid "" "This is important for more than just saving space, though: the manually " "written help text uses the meta-variable ``FILE`` to clue the user in that " "there's a connection between the semi-formal syntax ``-f FILE`` and the " -"informal semantic description \"write output to FILE\". This is a simple but" -" effective way to make your help text a lot clearer and more useful for end " +"informal semantic description \"write output to FILE\". This is a simple but " +"effective way to make your help text a lot clearer and more useful for end " "users." msgstr "" #: ../../library/optparse.rst:552 msgid "" "options that have a default value can include ``%default`` in the help " -"string---\\ :mod:`optparse` will replace it with :func:`str` of the option's" -" default value. If an option has no default value (or the default value is " +"string---\\ :mod:`optparse` will replace it with :func:`str` of the option's " +"default value. If an option has no default value (or the default value is " "``None``), ``%default`` expands to ``none``." msgstr "" @@ -730,8 +729,7 @@ msgstr "" #: ../../library/optparse.rst:570 msgid "" -"parser is the :class:`OptionParser` instance the group will be inserted in " -"to" +"parser is the :class:`OptionParser` instance the group will be inserted in to" msgstr "" #: ../../library/optparse.rst:572 @@ -744,22 +742,21 @@ msgstr "" #: ../../library/optparse.rst:575 msgid "" -":class:`OptionGroup` inherits from :class:`OptionContainer` (like " -":class:`OptionParser`) and so the :meth:`add_option` method can be used to " -"add an option to the group." +":class:`OptionGroup` inherits from :class:`OptionContainer` (like :class:" +"`OptionParser`) and so the :meth:`add_option` method can be used to add an " +"option to the group." msgstr "" #: ../../library/optparse.rst:579 msgid "" -"Once all the options are declared, using the :class:`OptionParser` method " -":meth:`add_option_group` the group is added to the previously defined " -"parser." +"Once all the options are declared, using the :class:`OptionParser` method :" +"meth:`add_option_group` the group is added to the previously defined parser." msgstr "" #: ../../library/optparse.rst:582 msgid "" -"Continuing with the parser defined in the previous section, adding an " -":class:`OptionGroup` to a parser is easy::" +"Continuing with the parser defined in the previous section, adding an :class:" +"`OptionGroup` to a parser is easy::" msgstr "" #: ../../library/optparse.rst:591 @@ -778,15 +775,15 @@ msgstr "" #: ../../library/optparse.rst:655 msgid "" -"Another interesting method, in particular when working programmatically with" -" option groups is:" +"Another interesting method, in particular when working programmatically with " +"option groups is:" msgstr "" #: ../../library/optparse.rst:660 msgid "" "Return the :class:`OptionGroup` to which the short or long option string " -"*opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If there's no such " -":class:`OptionGroup`, return ``None``." +"*opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If there's no such :" +"class:`OptionGroup`, return ``None``." msgstr "" #: ../../library/optparse.rst:667 @@ -803,9 +800,9 @@ msgstr "" #: ../../library/optparse.rst:675 msgid "" "``%prog`` is expanded just like it is in ``usage``. Apart from that, " -"``version`` can contain anything you like. When you supply it, " -":mod:`optparse` automatically adds a ``--version`` option to your parser. If" -" it encounters this option on the command line, it expands your ``version`` " +"``version`` can contain anything you like. When you supply it, :mod:" +"`optparse` automatically adds a ``--version`` option to your parser. If it " +"encounters this option on the command line, it expands your ``version`` " "string (by replacing ``%prog``), prints it to stdout, and exits." msgstr "" @@ -822,8 +819,8 @@ msgstr "" #: ../../library/optparse.rst:692 msgid "" "Print the version message for the current program (``self.version``) to " -"*file* (default stdout). As with :meth:`print_usage`, any occurrence of " -"``%prog`` in ``self.version`` is replaced with the name of the current " +"*file* (default stdout). As with :meth:`print_usage`, any occurrence of ``" +"%prog`` in ``self.version`` is replaced with the name of the current " "program. Does nothing if ``self.version`` is empty or undefined." msgstr "" @@ -843,26 +840,26 @@ msgid "" "about: programmer errors and user errors. Programmer errors are usually " "erroneous calls to :func:`OptionParser.add_option`, e.g. invalid option " "strings, unknown option attributes, missing option attributes, etc. These " -"are dealt with in the usual way: raise an exception (either " -":exc:`optparse.OptionError` or :exc:`TypeError`) and let the program crash." +"are dealt with in the usual way: raise an exception (either :exc:`optparse." +"OptionError` or :exc:`TypeError`) and let the program crash." msgstr "" #: ../../library/optparse.rst:715 msgid "" "Handling user errors is much more important, since they are guaranteed to " -"happen no matter how stable your code is. :mod:`optparse` can automatically" -" detect some user errors, such as bad option arguments (passing ``-n 4x`` " +"happen no matter how stable your code is. :mod:`optparse` can automatically " +"detect some user errors, such as bad option arguments (passing ``-n 4x`` " "where ``-n`` takes an integer argument), missing arguments (``-n`` at the " -"end of the command line, where ``-n`` takes an argument of any type). Also," -" you can call :func:`OptionParser.error` to signal an application-defined " +"end of the command line, where ``-n`` takes an argument of any type). Also, " +"you can call :func:`OptionParser.error` to signal an application-defined " "error condition::" msgstr "" #: ../../library/optparse.rst:728 msgid "" "In either case, :mod:`optparse` handles the error the same way: it prints " -"the program's usage message and an error message to standard error and exits" -" with error status 2." +"the program's usage message and an error message to standard error and exits " +"with error status 2." msgstr "" #: ../../library/optparse.rst:732 @@ -878,15 +875,15 @@ msgstr "" #: ../../library/optparse.rst:751 msgid "" ":mod:`optparse`\\ -generated error messages take care always to mention the " -"option involved in the error; be sure to do the same when calling " -":func:`OptionParser.error` from your application code." +"option involved in the error; be sure to do the same when calling :func:" +"`OptionParser.error` from your application code." msgstr "" #: ../../library/optparse.rst:755 msgid "" "If :mod:`optparse`'s default error-handling behaviour does not suit your " -"needs, you'll need to subclass OptionParser and override its " -":meth:`~OptionParser.exit` and/or :meth:`~OptionParser.error` methods." +"needs, you'll need to subclass OptionParser and override its :meth:" +"`~OptionParser.exit` and/or :meth:`~OptionParser.error` methods." msgstr "" #: ../../library/optparse.rst:763 @@ -915,8 +912,7 @@ msgstr "" msgid "" "The OptionParser constructor has no required arguments, but a number of " "optional keyword arguments. You should always pass them as keyword " -"arguments, i.e. do not rely on the order in which the arguments are " -"declared." +"arguments, i.e. do not rely on the order in which the arguments are declared." msgstr "" #: ../../library/optparse.rst:814 @@ -926,9 +922,9 @@ msgstr "" #: ../../library/optparse.rst:810 msgid "" "The usage summary to print when your program is run incorrectly or with a " -"help option. When :mod:`optparse` prints the usage string, it expands " -"``%prog`` to ``os.path.basename(sys.argv[0])`` (or to ``prog`` if you passed" -" that keyword argument). To suppress a usage message, pass the special " +"help option. When :mod:`optparse` prints the usage string, it expands ``" +"%prog`` to ``os.path.basename(sys.argv[0])`` (or to ``prog`` if you passed " +"that keyword argument). To suppress a usage message, pass the special " "value :data:`optparse.SUPPRESS_USAGE`." msgstr "" @@ -961,8 +957,8 @@ msgstr "" msgid "" "A version string to print when the user supplies a version option. If you " "supply a true value for ``version``, :mod:`optparse` automatically adds a " -"version option with the single option string ``--version``. The substring " -"``%prog`` is expanded the same as for ``usage``." +"version option with the single option string ``--version``. The substring ``" +"%prog`` is expanded the same as for ``usage``." msgstr "" #: ../../library/optparse.rst:835 @@ -981,8 +977,8 @@ msgstr "" #: ../../library/optparse.rst:838 msgid "" -"A paragraph of text giving a brief overview of your program. :mod:`optparse`" -" reformats this paragraph to fit the current terminal width and prints it " +"A paragraph of text giving a brief overview of your program. :mod:`optparse` " +"reformats this paragraph to fit the current terminal width and prints it " "when the user requests help (after ``usage``, but before the list of " "options)." msgstr "" @@ -1010,7 +1006,7 @@ msgstr "" #: ../../library/optparse.rst:854 msgid "``prog``" -msgstr "" +msgstr "``prog``" #: ../../library/optparse.rst:853 msgid "" @@ -1033,8 +1029,8 @@ msgstr "" #: ../../library/optparse.rst:864 msgid "" "There are several ways to populate the parser with options. The preferred " -"way is by using :meth:`OptionParser.add_option`, as shown in section :ref" -":`optparse-tutorial`. :meth:`add_option` can be called in one of two ways:" +"way is by using :meth:`OptionParser.add_option`, as shown in section :ref:" +"`optparse-tutorial`. :meth:`add_option` can be called in one of two ways:" msgstr "" #: ../../library/optparse.rst:868 @@ -1057,10 +1053,10 @@ msgstr "" #: ../../library/optparse.rst:885 msgid "" "(:func:`make_option` is a factory function for creating Option instances; " -"currently it is an alias for the Option constructor. A future version of " -":mod:`optparse` may split Option into several classes, and " -":func:`make_option` will pick the right class to instantiate. Do not " -"instantiate Option directly.)" +"currently it is an alias for the Option constructor. A future version of :" +"mod:`optparse` may split Option into several classes, and :func:" +"`make_option` will pick the right class to instantiate. Do not instantiate " +"Option directly.)" msgstr "" #: ../../library/optparse.rst:894 @@ -1070,15 +1066,14 @@ msgstr "" #: ../../library/optparse.rst:896 msgid "" "Each Option instance represents a set of synonymous command-line option " -"strings, e.g. ``-f`` and ``--file``. You can specify any number of short or" -" long option strings, but you must specify at least one overall option " -"string." +"strings, e.g. ``-f`` and ``--file``. You can specify any number of short or " +"long option strings, but you must specify at least one overall option string." msgstr "" #: ../../library/optparse.rst:900 msgid "" -"The canonical way to create an :class:`Option` instance is with the " -":meth:`add_option` method of :class:`OptionParser`." +"The canonical way to create an :class:`Option` instance is with the :meth:" +"`add_option` method of :class:`OptionParser`." msgstr "" #: ../../library/optparse.rst:906 @@ -1094,20 +1089,20 @@ msgid "" "The keyword arguments define attributes of the new Option object. The most " "important option attribute is :attr:`~Option.action`, and it largely " "determines which other attributes are relevant or required. If you pass " -"irrelevant option attributes, or fail to pass required ones, :mod:`optparse`" -" raises an :exc:`OptionError` exception explaining your mistake." +"irrelevant option attributes, or fail to pass required ones, :mod:`optparse` " +"raises an :exc:`OptionError` exception explaining your mistake." msgstr "" #: ../../library/optparse.rst:920 msgid "" -"An option's *action* determines what :mod:`optparse` does when it encounters" -" this option on the command-line. The standard option actions hard-coded " +"An option's *action* determines what :mod:`optparse` does when it encounters " +"this option on the command-line. The standard option actions hard-coded " "into :mod:`optparse` are:" msgstr "" #: ../../library/optparse.rst:925 msgid "``\"store\"``" -msgstr "" +msgstr "``\"store\"``" #: ../../library/optparse.rst:925 msgid "store this option's argument (default)" @@ -1115,23 +1110,23 @@ msgstr "" #: ../../library/optparse.rst:931 msgid "``\"store_true\"``" -msgstr "" +msgstr "``\"store_true\"``" #: ../../library/optparse.rst:931 -msgid "store a true value" +msgid "store ``True``" msgstr "" #: ../../library/optparse.rst:934 msgid "``\"store_false\"``" -msgstr "" +msgstr "``\"store_false\"``" #: ../../library/optparse.rst:934 -msgid "store a false value" +msgid "store ``False``" msgstr "" #: ../../library/optparse.rst:940 msgid "``\"append_const\"``" -msgstr "" +msgstr "``\"append_const\"``" #: ../../library/optparse.rst:940 msgid "append a constant value to a list" @@ -1139,7 +1134,7 @@ msgstr "" #: ../../library/optparse.rst:949 ../../library/optparse.rst:1226 msgid "``\"help\"``" -msgstr "" +msgstr "``\"help\"``" #: ../../library/optparse.rst:949 msgid "" @@ -1155,11 +1150,11 @@ msgstr "" #: ../../library/optparse.rst:955 msgid "" -"As you can see, most actions involve storing or updating a value somewhere. " -":mod:`optparse` always creates a special object for this, conventionally " -"called ``options`` (it happens to be an instance of " -":class:`optparse.Values`). Option arguments (and various other values) are " -"stored as attributes of this object, according to the :attr:`~Option.dest` " +"As you can see, most actions involve storing or updating a value somewhere. :" +"mod:`optparse` always creates a special object for this, conventionally " +"called ``options`` (it happens to be an instance of :class:`optparse." +"Values`). Option arguments (and various other values) are stored as " +"attributes of this object, according to the :attr:`~Option.dest` " "(destination) option attribute." msgstr "" @@ -1189,8 +1184,8 @@ msgstr "" #: ../../library/optparse.rst:984 msgid "" "The :attr:`~Option.type` and :attr:`~Option.dest` option attributes are " -"almost as important as :attr:`~Option.action`, but :attr:`~Option.action` is" -" the only one that makes sense for *all* options." +"almost as important as :attr:`~Option.action`, but :attr:`~Option.action` is " +"the only one that makes sense for *all* options." msgstr "" #: ../../library/optparse.rst:992 @@ -1199,9 +1194,9 @@ msgstr "" #: ../../library/optparse.rst:994 msgid "" -"The following option attributes may be passed as keyword arguments to " -":meth:`OptionParser.add_option`. If you pass an option attribute that is " -"not relevant to a particular option, or fail to pass a required option " +"The following option attributes may be passed as keyword arguments to :meth:" +"`OptionParser.add_option`. If you pass an option attribute that is not " +"relevant to a particular option, or fail to pass a required option " "attribute, :mod:`optparse` raises :exc:`OptionError`." msgstr "" @@ -1222,9 +1217,9 @@ msgstr "" #: ../../library/optparse.rst:1011 msgid "" -"The argument type expected by this option (e.g., ``\"string\"`` or " -"``\"int\"``); the available option types are documented :ref:`here " -"`." +"The argument type expected by this option (e.g., ``\"string\"`` or ``\"int" +"\"``); the available option types are documented :ref:`here `." msgstr "" #: ../../library/optparse.rst:1017 ../../library/optparse.rst:1067 @@ -1235,8 +1230,8 @@ msgstr "" msgid "" "If the option's action implies writing or modifying a value somewhere, this " "tells :mod:`optparse` where to write it: :attr:`~Option.dest` names an " -"attribute of the ``options`` object that :mod:`optparse` builds as it parses" -" the command line." +"attribute of the ``options`` object that :mod:`optparse` builds as it parses " +"the command line." msgstr "" #: ../../library/optparse.rst:1026 @@ -1251,9 +1246,9 @@ msgstr "" #: ../../library/optparse.rst:1033 msgid "" -"How many arguments of type :attr:`~Option.type` should be consumed when this" -" option is seen. If > 1, :mod:`optparse` will store a tuple of values to " -":attr:`~Option.dest`." +"How many arguments of type :attr:`~Option.type` should be consumed when this " +"option is seen. If > 1, :mod:`optparse` will store a tuple of values to :" +"attr:`~Option.dest`." msgstr "" #: ../../library/optparse.rst:1039 @@ -1282,9 +1277,9 @@ msgstr "" #: ../../library/optparse.rst:1060 msgid "" "Help text to print for this option when listing all available options after " -"the user supplies a :attr:`~Option.help` option (such as ``--help``). If no" -" help text is supplied, the option will be listed without help text. To " -"hide this option, use the special value :data:`optparse.SUPPRESS_HELP`." +"the user supplies a :attr:`~Option.help` option (such as ``--help``). If no " +"help text is supplied, the option will be listed without help text. To hide " +"this option, use the special value :data:`optparse.SUPPRESS_HELP`." msgstr "" #: ../../library/optparse.rst:1069 @@ -1307,15 +1302,15 @@ msgstr "" #: ../../library/optparse.rst:1083 msgid "" -"``\"store\"`` [relevant: :attr:`~Option.type`, :attr:`~Option.dest`, " -":attr:`~Option.nargs`, :attr:`~Option.choices`]" +"``\"store\"`` [relevant: :attr:`~Option.type`, :attr:`~Option.dest`, :attr:" +"`~Option.nargs`, :attr:`~Option.choices`]" msgstr "" #: ../../library/optparse.rst:1086 msgid "" "The option must be followed by an argument, which is converted to a value " -"according to :attr:`~Option.type` and stored in :attr:`~Option.dest`. If " -":attr:`~Option.nargs` > 1, multiple arguments will be consumed from the " +"according to :attr:`~Option.type` and stored in :attr:`~Option.dest`. If :" +"attr:`~Option.nargs` > 1, multiple arguments will be consumed from the " "command line; all will be converted according to :attr:`~Option.type` and " "stored to :attr:`~Option.dest` as a tuple. See the :ref:`optparse-standard-" "option-types` section." @@ -1335,9 +1330,8 @@ msgstr "" msgid "" "If :attr:`~Option.dest` is not supplied, :mod:`optparse` derives a " "destination from the first long option string (e.g., ``--foo-bar`` implies " -"``foo_bar``). If there are no long option strings, :mod:`optparse` derives a" -" destination from the first short option string (e.g., ``-f`` implies " -"``f``)." +"``foo_bar``). If there are no long option strings, :mod:`optparse` derives a " +"destination from the first short option string (e.g., ``-f`` implies ``f``)." msgstr "" #: ../../library/optparse.rst:1103 ../../library/optparse.rst:1123 @@ -1356,8 +1350,8 @@ msgstr "" #: ../../library/optparse.rst:1118 msgid "" -"``\"store_const\"`` [required: :attr:`~Option.const`; relevant: " -":attr:`~Option.dest`]" +"``\"store_const\"`` [required: :attr:`~Option.const`; relevant: :attr:" +"`~Option.dest`]" msgstr "" #: ../../library/optparse.rst:1121 @@ -1374,8 +1368,8 @@ msgstr "" #: ../../library/optparse.rst:1138 msgid "" -"A special case of ``\"store_const\"`` that stores a true value to " -":attr:`~Option.dest`." +"A special case of ``\"store_const\"`` that stores ``True`` to :attr:`~Option." +"dest`." msgstr "" #: ../../library/optparse.rst:1141 @@ -1383,23 +1377,23 @@ msgid "``\"store_false\"`` [relevant: :attr:`~Option.dest`]" msgstr "" #: ../../library/optparse.rst:1143 -msgid "Like ``\"store_true\"``, but stores a false value." +msgid "Like ``\"store_true\"``, but stores ``False``." msgstr "" #: ../../library/optparse.rst:1150 msgid "" -"``\"append\"`` [relevant: :attr:`~Option.type`, :attr:`~Option.dest`, " -":attr:`~Option.nargs`, :attr:`~Option.choices`]" +"``\"append\"`` [relevant: :attr:`~Option.type`, :attr:`~Option.dest`, :attr:" +"`~Option.nargs`, :attr:`~Option.choices`]" msgstr "" #: ../../library/optparse.rst:1153 msgid "" -"The option must be followed by an argument, which is appended to the list in" -" :attr:`~Option.dest`. If no default value for :attr:`~Option.dest` is " +"The option must be followed by an argument, which is appended to the list " +"in :attr:`~Option.dest`. If no default value for :attr:`~Option.dest` is " "supplied, an empty list is automatically created when :mod:`optparse` first " "encounters this option on the command-line. If :attr:`~Option.nargs` > 1, " -"multiple arguments are consumed, and a tuple of length :attr:`~Option.nargs`" -" is appended to :attr:`~Option.dest`." +"multiple arguments are consumed, and a tuple of length :attr:`~Option.nargs` " +"is appended to :attr:`~Option.dest`." msgstr "" #: ../../library/optparse.rst:1160 @@ -1429,16 +1423,16 @@ msgstr "" #: ../../library/optparse.rst:1188 msgid "" -"``\"append_const\"`` [required: :attr:`~Option.const`; relevant: " -":attr:`~Option.dest`]" +"``\"append_const\"`` [required: :attr:`~Option.const`; relevant: :attr:" +"`~Option.dest`]" msgstr "" #: ../../library/optparse.rst:1191 msgid "" -"Like ``\"store_const\"``, but the value :attr:`~Option.const` is appended to" -" :attr:`~Option.dest`; as with ``\"append\"``, :attr:`~Option.dest` defaults" -" to ``None``, and an empty list is automatically created the first time the " -"option is encountered." +"Like ``\"store_const\"``, but the value :attr:`~Option.const` is appended " +"to :attr:`~Option.dest`; as with ``\"append\"``, :attr:`~Option.dest` " +"defaults to ``None``, and an empty list is automatically created the first " +"time the option is encountered." msgstr "" #: ../../library/optparse.rst:1196 @@ -1464,15 +1458,15 @@ msgstr "" #: ../../library/optparse.rst:1216 msgid "" -"``\"callback\"`` [required: :attr:`~Option.callback`; relevant: " -":attr:`~Option.type`, :attr:`~Option.nargs`, :attr:`~Option.callback_args`, " -":attr:`~Option.callback_kwargs`]" +"``\"callback\"`` [required: :attr:`~Option.callback`; relevant: :attr:" +"`~Option.type`, :attr:`~Option.nargs`, :attr:`~Option.callback_args`, :attr:" +"`~Option.callback_kwargs`]" msgstr "" #: ../../library/optparse.rst:1220 msgid "" -"Call the function specified by :attr:`~Option.callback`, which is called as " -"::" +"Call the function specified by :attr:`~Option.callback`, which is called " +"as ::" msgstr "" #: ../../library/optparse.rst:1224 @@ -1482,8 +1476,8 @@ msgstr "" #: ../../library/optparse.rst:1228 msgid "" "Prints a complete help message for all the options in the current option " -"parser. The help message is constructed from the ``usage`` string passed to" -" OptionParser's constructor and the :attr:`~Option.help` string passed to " +"parser. The help message is constructed from the ``usage`` string passed to " +"OptionParser's constructor and the :attr:`~Option.help` string passed to " "every option." msgstr "" @@ -1515,15 +1509,15 @@ msgstr "" #: ../../library/optparse.rst:1271 msgid "``\"version\"``" -msgstr "" +msgstr "``\"version\"``" #: ../../library/optparse.rst:1273 msgid "" "Prints the version number supplied to the OptionParser to stdout and exits. " "The version number is actually formatted and printed by the " "``print_version()`` method of OptionParser. Generally only relevant if the " -"``version`` argument is supplied to the OptionParser constructor. As with " -":attr:`~Option.help` options, you will rarely create ``version`` options, " +"``version`` argument is supplied to the OptionParser constructor. As with :" +"attr:`~Option.help` options, you will rarely create ``version`` options, " "since :mod:`optparse` automatically adds them when needed." msgstr "" @@ -1533,8 +1527,8 @@ msgstr "" #: ../../library/optparse.rst:1286 msgid "" -":mod:`optparse` has five built-in option types: ``\"string\"``, ``\"int\"``," -" ``\"choice\"``, ``\"float\"`` and ``\"complex\"``. If you need to add new " +":mod:`optparse` has five built-in option types: ``\"string\"``, ``\"int\"``, " +"``\"choice\"``, ``\"float\"`` and ``\"complex\"``. If you need to add new " "option types, see section :ref:`optparse-extending-optparse`." msgstr "" @@ -1568,8 +1562,8 @@ msgstr "" #: ../../library/optparse.rst:1304 msgid "" "The conversion is done by calling :func:`int` with the appropriate base (2, " -"8, 10, or 16). If this fails, so will :mod:`optparse`, although with a more" -" useful error message." +"8, 10, or 16). If this fails, so will :mod:`optparse`, although with a more " +"useful error message." msgstr "" #: ../../library/optparse.rst:1308 @@ -1580,11 +1574,11 @@ msgstr "" #: ../../library/optparse.rst:1311 msgid "" -"``\"choice\"`` options are a subtype of ``\"string\"`` options. The " -":attr:`~Option.choices` option attribute (a sequence of strings) defines the" -" set of allowed option arguments. :func:`optparse.check_choice` compares " -"user-supplied option arguments against this master list and raises " -":exc:`OptionValueError` if an invalid string is given." +"``\"choice\"`` options are a subtype of ``\"string\"`` options. The :attr:" +"`~Option.choices` option attribute (a sequence of strings) defines the set " +"of allowed option arguments. :func:`optparse.check_choice` compares user-" +"supplied option arguments against this master list and raises :exc:" +"`OptionValueError` if an invalid string is given." msgstr "" #: ../../library/optparse.rst:1321 @@ -1593,8 +1587,8 @@ msgstr "Análise de argumentos" #: ../../library/optparse.rst:1323 msgid "" -"The whole point of creating and populating an OptionParser is to call its " -":meth:`parse_args` method::" +"The whole point of creating and populating an OptionParser is to call its :" +"meth:`parse_args` method::" msgstr "" #: ../../library/optparse.rst:1328 @@ -1604,7 +1598,7 @@ msgstr "" #: ../../library/optparse.rst:1331 ../../library/optparse.rst:1345 #: ../../library/optparse.rst:1664 msgid "``args``" -msgstr "" +msgstr "``args``" #: ../../library/optparse.rst:1331 msgid "the list of arguments to process (default: ``sys.argv[1:]``)" @@ -1612,7 +1606,7 @@ msgstr "" #: ../../library/optparse.rst:1336 msgid "``values``" -msgstr "" +msgstr "``values``" #: ../../library/optparse.rst:1334 msgid "" @@ -1627,7 +1621,7 @@ msgstr "" #: ../../library/optparse.rst:1342 msgid "``options``" -msgstr "" +msgstr "``options``" #: ../../library/optparse.rst:1341 msgid "" @@ -1636,16 +1630,15 @@ msgid "" msgstr "" #: ../../library/optparse.rst:1345 -msgid "" -"the leftover positional arguments after all options have been processed" +msgid "the leftover positional arguments after all options have been processed" msgstr "" #: ../../library/optparse.rst:1347 msgid "" "The most common usage is to supply neither keyword argument. If you supply " -"``values``, it will be modified with repeated :func:`setattr` calls (roughly" -" one for every option argument stored to an option destination) and returned" -" by :meth:`parse_args`." +"``values``, it will be modified with repeated :func:`setattr` calls (roughly " +"one for every option argument stored to an option destination) and returned " +"by :meth:`parse_args`." msgstr "" #: ../../library/optparse.rst:1352 @@ -1669,9 +1662,9 @@ msgstr "" #: ../../library/optparse.rst:1369 msgid "" -"Set parsing to stop on the first non-option. For example, if ``-a`` and " -"``-b`` are both simple options that take no arguments, :mod:`optparse` " -"normally accepts this syntax::" +"Set parsing to stop on the first non-option. For example, if ``-a`` and ``-" +"b`` are both simple options that take no arguments, :mod:`optparse` normally " +"accepts this syntax::" msgstr "" #: ../../library/optparse.rst:1375 @@ -1700,21 +1693,21 @@ msgstr "" #: ../../library/optparse.rst:1394 msgid "" -"Returns the Option instance with the option string *opt_str*, or ``None`` if" -" no options have that option string." +"Returns the Option instance with the option string *opt_str*, or ``None`` if " +"no options have that option string." msgstr "" #: ../../library/optparse.rst:1399 msgid "" -"Return true if the OptionParser has an option with option string *opt_str* " -"(e.g., ``-q`` or ``--verbose``)." +"Return ``True`` if the OptionParser has an option with option string " +"*opt_str* (e.g., ``-q`` or ``--verbose``)." msgstr "" #: ../../library/optparse.rst:1404 msgid "" "If the :class:`OptionParser` has an option corresponding to *opt_str*, that " -"option is removed. If that option provided any other option strings, all of" -" those option strings become invalid. If *opt_str* does not occur in any " +"option is removed. If that option provided any other option strings, all of " +"those option strings become invalid. If *opt_str* does not occur in any " "option belonging to this :class:`OptionParser`, raises :exc:`ValueError`." msgstr "" @@ -1737,8 +1730,8 @@ msgstr "" #: ../../library/optparse.rst:1425 msgid "" "Every time you add an option, :mod:`optparse` checks for conflicts with " -"existing options. If it finds any, it invokes the current conflict-handling" -" mechanism. You can set the conflict-handling mechanism either in the " +"existing options. If it finds any, it invokes the current conflict-handling " +"mechanism. You can set the conflict-handling mechanism either in the " "constructor::" msgstr "" @@ -1756,13 +1749,13 @@ msgstr "" #: ../../library/optparse.rst:1438 msgid "" -"assume option conflicts are a programming error and raise " -":exc:`OptionConflictError`" +"assume option conflicts are a programming error and raise :exc:" +"`OptionConflictError`" msgstr "" #: ../../library/optparse.rst:1443 msgid "``\"resolve\"``" -msgstr "" +msgstr "``\"resolve\"``" #: ../../library/optparse.rst:1442 msgid "resolve option conflicts intelligently (see below)" @@ -1770,18 +1763,18 @@ msgstr "" #: ../../library/optparse.rst:1445 msgid "" -"As an example, let's define an :class:`OptionParser` that resolves conflicts" -" intelligently and add conflicting options to it::" +"As an example, let's define an :class:`OptionParser` that resolves conflicts " +"intelligently and add conflicting options to it::" msgstr "" #: ../../library/optparse.rst:1452 msgid "" "At this point, :mod:`optparse` detects that a previously-added option is " -"already using the ``-n`` option string. Since ``conflict_handler`` is " -"``\"resolve\"``, it resolves the situation by removing ``-n`` from the " -"earlier option's list of option strings. Now ``--dry-run`` is the only way " -"for the user to activate that option. If the user asks for help, the help " -"message will reflect that::" +"already using the ``-n`` option string. Since ``conflict_handler`` is ``" +"\"resolve\"``, it resolves the situation by removing ``-n`` from the earlier " +"option's list of option strings. Now ``--dry-run`` is the only way for the " +"user to activate that option. If the user asks for help, the help message " +"will reflect that::" msgstr "" #: ../../library/optparse.rst:1463 @@ -1805,12 +1798,12 @@ msgstr "" #: ../../library/optparse.rst:1485 msgid "" -"OptionParser instances have several cyclic references. This should not be a" -" problem for Python's garbage collector, but you may wish to break the " -"cyclic references explicitly by calling :meth:`~OptionParser.destroy` on " -"your OptionParser once you are done with it. This is particularly useful in" -" long-running applications where large object graphs are reachable from your" -" OptionParser." +"OptionParser instances have several cyclic references. This should not be a " +"problem for Python's garbage collector, but you may wish to break the cyclic " +"references explicitly by calling :meth:`~OptionParser.destroy` on your " +"OptionParser once you are done with it. This is particularly useful in long-" +"running applications where large object graphs are reachable from your " +"OptionParser." msgstr "" #: ../../library/optparse.rst:1496 @@ -1833,23 +1826,23 @@ msgstr "" msgid "" "Print the usage message for the current program (``self.usage``) to *file* " "(default stdout). Any occurrence of the string ``%prog`` in ``self.usage`` " -"is replaced with the name of the current program. Does nothing if " -"``self.usage`` is empty or not defined." +"is replaced with the name of the current program. Does nothing if ``self." +"usage`` is empty or not defined." msgstr "" #: ../../library/optparse.rst:1515 msgid "" -"Same as :meth:`print_usage` but returns the usage string instead of printing" -" it." +"Same as :meth:`print_usage` but returns the usage string instead of printing " +"it." msgstr "" #: ../../library/optparse.rst:1520 msgid "" -"Set default values for several option destinations at once. Using " -":meth:`set_defaults` is the preferred way to set default values for options," -" since multiple options can share the same destination. For example, if " -"several \"mode\" options all set the same destination, any one of them can " -"set the default, and the last one wins::" +"Set default values for several option destinations at once. Using :meth:" +"`set_defaults` is the preferred way to set default values for options, since " +"multiple options can share the same destination. For example, if several " +"\"mode\" options all set the same destination, any one of them can set the " +"default, and the last one wins::" msgstr "" #: ../../library/optparse.rst:1533 @@ -1864,8 +1857,8 @@ msgstr "" msgid "" "When :mod:`optparse`'s built-in actions and types aren't quite enough for " "your needs, you have two choices: extend :mod:`optparse` or define a " -"callback option. Extending :mod:`optparse` is more general, but overkill for" -" a lot of simple cases. Quite often a simple callback is all you need." +"callback option. Extending :mod:`optparse` is more general, but overkill for " +"a lot of simple cases. Quite often a simple callback is all you need." msgstr "" #: ../../library/optparse.rst:1552 @@ -1888,9 +1881,9 @@ msgstr "" #: ../../library/optparse.rst:1565 msgid "" -"As always, the easiest way to define a callback option is by using the " -":meth:`OptionParser.add_option` method. Apart from :attr:`~Option.action`, " -"the only option attribute you must specify is ``callback``, the function to " +"As always, the easiest way to define a callback option is by using the :meth:" +"`OptionParser.add_option` method. Apart from :attr:`~Option.action`, the " +"only option attribute you must specify is ``callback``, the function to " "call::" msgstr "" @@ -1899,8 +1892,8 @@ msgid "" "``callback`` is a function (or other callable object), so you must have " "already defined ``my_callback()`` when you create this callback option. In " "this simple case, :mod:`optparse` doesn't even know if ``-c`` takes any " -"arguments, which usually means that the option takes no arguments---the mere" -" presence of ``-c`` on the command-line is all it needs to know. In some " +"arguments, which usually means that the option takes no arguments---the mere " +"presence of ``-c`` on the command-line is all it needs to know. In some " "circumstances, though, you might want your callback to consume an arbitrary " "number of command-line arguments. This is where writing callbacks gets " "tricky; it's covered later in this section." @@ -1909,9 +1902,9 @@ msgstr "" #: ../../library/optparse.rst:1580 msgid "" ":mod:`optparse` always passes four particular arguments to your callback, " -"and it will only pass additional arguments if you specify them via " -":attr:`~Option.callback_args` and :attr:`~Option.callback_kwargs`. Thus, " -"the minimal callback function signature is::" +"and it will only pass additional arguments if you specify them via :attr:" +"`~Option.callback_args` and :attr:`~Option.callback_kwargs`. Thus, the " +"minimal callback function signature is::" msgstr "" #: ../../library/optparse.rst:1587 @@ -1926,31 +1919,31 @@ msgstr "" #: ../../library/optparse.rst:1596 msgid ":attr:`~Option.type`" -msgstr "" +msgstr ":attr:`~Option.type`" #: ../../library/optparse.rst:1593 msgid "" "has its usual meaning: as with the ``\"store\"`` or ``\"append\"`` actions, " -"it instructs :mod:`optparse` to consume one argument and convert it to " -":attr:`~Option.type`. Rather than storing the converted value(s) anywhere, " +"it instructs :mod:`optparse` to consume one argument and convert it to :attr:" +"`~Option.type`. Rather than storing the converted value(s) anywhere, " "though, :mod:`optparse` passes it to your callback function." msgstr "" #: ../../library/optparse.rst:1602 msgid ":attr:`~Option.nargs`" -msgstr "" +msgstr ":attr:`~Option.nargs`" #: ../../library/optparse.rst:1599 msgid "" "also has its usual meaning: if it is supplied and > 1, :mod:`optparse` will " "consume :attr:`~Option.nargs` arguments, each of which must be convertible " -"to :attr:`~Option.type`. It then passes a tuple of converted values to your" -" callback." +"to :attr:`~Option.type`. It then passes a tuple of converted values to your " +"callback." msgstr "" #: ../../library/optparse.rst:1605 msgid ":attr:`~Option.callback_args`" -msgstr "" +msgstr ":attr:`~Option.callback_args`" #: ../../library/optparse.rst:1605 msgid "a tuple of extra positional arguments to pass to the callback" @@ -1958,7 +1951,7 @@ msgstr "" #: ../../library/optparse.rst:1609 msgid ":attr:`~Option.callback_kwargs`" -msgstr "" +msgstr ":attr:`~Option.callback_kwargs`" #: ../../library/optparse.rst:1608 msgid "a dictionary of extra keyword arguments to pass to the callback" @@ -1974,7 +1967,7 @@ msgstr "" #: ../../library/optparse.rst:1623 msgid "``option``" -msgstr "" +msgstr "``option``" #: ../../library/optparse.rst:1623 msgid "is the Option instance that's calling the callback" @@ -1982,34 +1975,34 @@ msgstr "" #: ../../library/optparse.rst:1630 msgid "``opt_str``" -msgstr "" +msgstr "``opt_str``" #: ../../library/optparse.rst:1626 msgid "" "is the option string seen on the command-line that's triggering the " "callback. (If an abbreviated long option was used, ``opt_str`` will be the " "full, canonical option string---e.g. if the user puts ``--foo`` on the " -"command-line as an abbreviation for ``--foobar``, then ``opt_str`` will be " -"``\"--foobar\"``.)" +"command-line as an abbreviation for ``--foobar``, then ``opt_str`` will be ``" +"\"--foobar\"``.)" msgstr "" #: ../../library/optparse.rst:1637 msgid "``value``" -msgstr "" +msgstr "``value``" #: ../../library/optparse.rst:1633 msgid "" "is the argument to this option seen on the command-line. :mod:`optparse` " "will only expect an argument if :attr:`~Option.type` is set; the type of " -"``value`` will be the type implied by the option's type. If " -":attr:`~Option.type` for this option is ``None`` (no argument expected), " -"then ``value`` will be ``None``. If :attr:`~Option.nargs` > 1, ``value`` " -"will be a tuple of values of the appropriate type." +"``value`` will be the type implied by the option's type. If :attr:`~Option." +"type` for this option is ``None`` (no argument expected), then ``value`` " +"will be ``None``. If :attr:`~Option.nargs` > 1, ``value`` will be a tuple " +"of values of the appropriate type." msgstr "" #: ../../library/optparse.rst:1660 msgid "``parser``" -msgstr "" +msgstr "``parser``" #: ../../library/optparse.rst:1640 msgid "" @@ -2019,7 +2012,7 @@ msgstr "" #: ../../library/optparse.rst:1647 msgid "``parser.largs``" -msgstr "" +msgstr "``parser.largs``" #: ../../library/optparse.rst:1644 msgid "" @@ -2031,42 +2024,42 @@ msgstr "" #: ../../library/optparse.rst:1653 msgid "``parser.rargs``" -msgstr "" +msgstr "``parser.rargs``" #: ../../library/optparse.rst:1650 msgid "" "the current list of remaining arguments, ie. with ``opt_str`` and ``value`` " -"(if applicable) removed, and only the arguments following them still there." -" Feel free to modify ``parser.rargs``, e.g. by consuming more arguments." +"(if applicable) removed, and only the arguments following them still there. " +"Feel free to modify ``parser.rargs``, e.g. by consuming more arguments." msgstr "" #: ../../library/optparse.rst:1660 msgid "``parser.values``" -msgstr "" +msgstr "``parser.values``" #: ../../library/optparse.rst:1656 msgid "" "the object where option values are by default stored (an instance of " "optparse.OptionValues). This lets callbacks use the same mechanism as the " "rest of :mod:`optparse` for storing option values; you don't need to mess " -"around with globals or closures. You can also access or modify the value(s)" -" of any options already encountered on the command-line." +"around with globals or closures. You can also access or modify the value(s) " +"of any options already encountered on the command-line." msgstr "" #: ../../library/optparse.rst:1663 msgid "" -"is a tuple of arbitrary positional arguments supplied via the " -":attr:`~Option.callback_args` option attribute." +"is a tuple of arbitrary positional arguments supplied via the :attr:`~Option." +"callback_args` option attribute." msgstr "" #: ../../library/optparse.rst:1669 msgid "``kwargs``" -msgstr "" +msgstr "``kwargs``" #: ../../library/optparse.rst:1667 msgid "" -"is a dictionary of arbitrary keyword arguments supplied via " -":attr:`~Option.callback_kwargs`." +"is a dictionary of arbitrary keyword arguments supplied via :attr:`~Option." +"callback_kwargs`." msgstr "" #: ../../library/optparse.rst:1674 @@ -2077,10 +2070,10 @@ msgstr "" msgid "" "The callback function should raise :exc:`OptionValueError` if there are any " "problems with the option or its argument(s). :mod:`optparse` catches this " -"and terminates the program, printing the error message you supply to stderr." -" Your message should be clear, concise, accurate, and mention the option at" -" fault. Otherwise, the user will have a hard time figuring out what they did" -" wrong." +"and terminates the program, printing the error message you supply to " +"stderr. Your message should be clear, concise, accurate, and mention the " +"option at fault. Otherwise, the user will have a hard time figuring out what " +"they did wrong." msgstr "" #: ../../library/optparse.rst:1686 @@ -2113,8 +2106,8 @@ msgstr "" #: ../../library/optparse.rst:1721 msgid "" -"If you want to re-use this callback for several similar options (set a flag," -" but blow up if ``-b`` has already been seen), it needs a bit of work: the " +"If you want to re-use this callback for several similar options (set a flag, " +"but blow up if ``-b`` has already been seen), it needs a bit of work: the " "error message and the flag that it sets must be generalized. ::" msgstr "" @@ -2132,8 +2125,7 @@ msgstr "" #: ../../library/optparse.rst:1753 msgid "" -"(The definition of ``is_moon_full()`` is left as an exercise for the " -"reader.)" +"(The definition of ``is_moon_full()`` is left as an exercise for the reader.)" msgstr "" #: ../../library/optparse.rst:1759 @@ -2146,19 +2138,19 @@ msgid "" "take a fixed number of arguments. Specifying that a callback option takes " "arguments is similar to defining a ``\"store\"`` or ``\"append\"`` option: " "if you define :attr:`~Option.type`, then the option takes one argument that " -"must be convertible to that type; if you further define " -":attr:`~Option.nargs`, then the option takes :attr:`~Option.nargs` " -"arguments." +"must be convertible to that type; if you further define :attr:`~Option." +"nargs`, then the option takes :attr:`~Option.nargs` arguments." msgstr "" #: ../../library/optparse.rst:1768 -msgid "Here's an example that just emulates the standard ``\"store\"`` action::" +msgid "" +"Here's an example that just emulates the standard ``\"store\"`` action::" msgstr "" #: ../../library/optparse.rst:1777 msgid "" -"Note that :mod:`optparse` takes care of consuming 3 arguments and converting" -" them to integers for you; all you have to do is store them. (Or whatever; " +"Note that :mod:`optparse` takes care of consuming 3 arguments and converting " +"them to integers for you; all you have to do is store them. (Or whatever; " "obviously you don't need a callback for this example.)" msgstr "" @@ -2170,9 +2162,9 @@ msgstr "" msgid "" "Things get hairy when you want an option to take a variable number of " "arguments. For this case, you must write a callback, as :mod:`optparse` " -"doesn't provide any built-in capabilities for it. And you have to deal with" -" certain intricacies of conventional Unix command-line parsing that " -":mod:`optparse` normally handles for you. In particular, callbacks should " +"doesn't provide any built-in capabilities for it. And you have to deal with " +"certain intricacies of conventional Unix command-line parsing that :mod:" +"`optparse` normally handles for you. In particular, callbacks should " "implement the conventional rules for bare ``--`` and ``-`` arguments:" msgstr "" @@ -2197,8 +2189,8 @@ msgid "" "If you want an option that takes a variable number of arguments, there are " "several subtle, tricky issues to worry about. The exact implementation you " "choose will be based on which trade-offs you're willing to make for your " -"application (which is why :mod:`optparse` doesn't support this sort of thing" -" directly)." +"application (which is why :mod:`optparse` doesn't support this sort of thing " +"directly)." msgstr "" #: ../../library/optparse.rst:1808 @@ -2214,8 +2206,8 @@ msgstr "" #: ../../library/optparse.rst:1844 msgid "" "Since the two major controlling factors in how :mod:`optparse` interprets " -"command-line options are the action and type of each option, the most likely" -" direction of extension is to add new actions and new types." +"command-line options are the action and type of each option, the most likely " +"direction of extension is to add new actions and new types." msgstr "" #: ../../library/optparse.rst:1852 @@ -2224,32 +2216,32 @@ msgstr "" #: ../../library/optparse.rst:1854 msgid "" -"To add new types, you need to define your own subclass of :mod:`optparse`'s " -":class:`Option` class. This class has a couple of attributes that define " -":mod:`optparse`'s types: :attr:`~Option.TYPES` and " -":attr:`~Option.TYPE_CHECKER`." +"To add new types, you need to define your own subclass of :mod:`optparse`'s :" +"class:`Option` class. This class has a couple of attributes that define :" +"mod:`optparse`'s types: :attr:`~Option.TYPES` and :attr:`~Option." +"TYPE_CHECKER`." msgstr "" #: ../../library/optparse.rst:1860 msgid "" -"A tuple of type names; in your subclass, simply define a new tuple " -":attr:`TYPES` that builds on the standard one." +"A tuple of type names; in your subclass, simply define a new tuple :attr:" +"`TYPES` that builds on the standard one." msgstr "" #: ../../library/optparse.rst:1865 msgid "" -"A dictionary mapping type names to type-checking functions. A type-checking" -" function has the following signature::" +"A dictionary mapping type names to type-checking functions. A type-checking " +"function has the following signature::" msgstr "" #: ../../library/optparse.rst:1870 msgid "" -"where ``option`` is an :class:`Option` instance, ``opt`` is an option string" -" (e.g., ``-f``), and ``value`` is the string from the command line that must" -" be checked and converted to your desired type. ``check_mytype()`` should " -"return an object of the hypothetical type ``mytype``. The value returned by" -" a type-checking function will wind up in the OptionValues instance returned" -" by :meth:`OptionParser.parse_args`, or be passed to a callback as the " +"where ``option`` is an :class:`Option` instance, ``opt`` is an option string " +"(e.g., ``-f``), and ``value`` is the string from the command line that must " +"be checked and converted to your desired type. ``check_mytype()`` should " +"return an object of the hypothetical type ``mytype``. The value returned by " +"a type-checking function will wind up in the OptionValues instance returned " +"by :meth:`OptionParser.parse_args`, or be passed to a callback as the " "``value`` parameter." msgstr "" @@ -2258,9 +2250,8 @@ msgid "" "Your type-checking function should raise :exc:`OptionValueError` if it " "encounters any problems. :exc:`OptionValueError` takes a single string " "argument, which is passed as-is to :class:`OptionParser`'s :meth:`error` " -"method, which in turn prepends the program name and the string " -"``\"error:\"`` and prints everything to stderr before terminating the " -"process." +"method, which in turn prepends the program name and the string ``\"error:" +"\"`` and prints everything to stderr before terminating the process." msgstr "" #: ../../library/optparse.rst:1884 @@ -2277,8 +2268,8 @@ msgstr "" #: ../../library/optparse.rst:1894 msgid "" -"You need to define your type-checker first, since it's referred to later (in" -" the :attr:`~Option.TYPE_CHECKER` class attribute of your Option subclass)::" +"You need to define your type-checker first, since it's referred to later (in " +"the :attr:`~Option.TYPE_CHECKER` class attribute of your Option subclass)::" msgstr "" #: ../../library/optparse.rst:1904 @@ -2288,9 +2279,9 @@ msgstr "" #: ../../library/optparse.rst:1911 msgid "" "(If we didn't make a :func:`copy` of :attr:`Option.TYPE_CHECKER`, we would " -"end up modifying the :attr:`~Option.TYPE_CHECKER` attribute of " -":mod:`optparse`'s Option class. This being Python, nothing stops you from " -"doing that except good manners and common sense.)" +"end up modifying the :attr:`~Option.TYPE_CHECKER` attribute of :mod:" +"`optparse`'s Option class. This being Python, nothing stops you from doing " +"that except good manners and common sense.)" msgstr "" #: ../../library/optparse.rst:1916 @@ -2302,9 +2293,9 @@ msgstr "" #: ../../library/optparse.rst:1923 msgid "" -"Alternately, you can build your own option list and pass it to OptionParser;" -" if you don't use :meth:`add_option` in the above way, you don't need to " -"tell OptionParser which option class to use::" +"Alternately, you can build your own option list and pass it to OptionParser; " +"if you don't use :meth:`add_option` in the above way, you don't need to tell " +"OptionParser which option class to use::" msgstr "" #: ../../library/optparse.rst:1934 @@ -2313,8 +2304,8 @@ msgstr "" #: ../../library/optparse.rst:1936 msgid "" -"Adding new actions is a bit trickier, because you have to understand that " -":mod:`optparse` has a couple of classifications for actions:" +"Adding new actions is a bit trickier, because you have to understand that :" +"mod:`optparse` has a couple of classifications for actions:" msgstr "" #: ../../library/optparse.rst:1942 @@ -2324,8 +2315,8 @@ msgstr "" #: ../../library/optparse.rst:1940 msgid "" "actions that result in :mod:`optparse` storing a value to an attribute of " -"the current OptionValues instance; these options require a " -":attr:`~Option.dest` attribute to be supplied to the Option constructor." +"the current OptionValues instance; these options require a :attr:`~Option." +"dest` attribute to be supplied to the Option constructor." msgstr "" #: ../../library/optparse.rst:1948 @@ -2342,10 +2333,10 @@ msgstr "" #: ../../library/optparse.rst:1950 msgid "" -"These are overlapping sets: some default \"store\" actions are " -"``\"store\"``, ``\"store_const\"``, ``\"append\"``, and ``\"count\"``, while" -" the default \"typed\" actions are ``\"store\"``, ``\"append\"``, and " -"``\"callback\"``." +"These are overlapping sets: some default \"store\" actions are ``\"store" +"\"``, ``\"store_const\"``, ``\"append\"``, and ``\"count\"``, while the " +"default \"typed\" actions are ``\"store\"``, ``\"append\"``, and ``\"callback" +"\"``." msgstr "" #: ../../library/optparse.rst:1954 @@ -2368,16 +2359,16 @@ msgstr "" #: ../../library/optparse.rst:1971 msgid "" -"Actions that always take a type (i.e. whose options always take a value) are" -" additionally listed here. The only effect of this is that :mod:`optparse` " +"Actions that always take a type (i.e. whose options always take a value) are " +"additionally listed here. The only effect of this is that :mod:`optparse` " "assigns the default type, ``\"string\"``, to options with no explicit type " "whose action is listed in :attr:`ALWAYS_TYPED_ACTIONS`." msgstr "" #: ../../library/optparse.rst:1976 msgid "" -"In order to actually implement your new action, you must override Option's " -":meth:`take_action` method and add a case that recognizes your action." +"In order to actually implement your new action, you must override Option's :" +"meth:`take_action` method and add a case that recognizes your action." msgstr "" #: ../../library/optparse.rst:1979 @@ -2405,22 +2396,22 @@ msgstr "" #: ../../library/optparse.rst:2011 msgid "" "``\"extend\"`` both expects a value on the command-line and stores that " -"value somewhere, so it goes in both :attr:`~Option.STORE_ACTIONS` and " -":attr:`~Option.TYPED_ACTIONS`." +"value somewhere, so it goes in both :attr:`~Option.STORE_ACTIONS` and :attr:" +"`~Option.TYPED_ACTIONS`." msgstr "" #: ../../library/optparse.rst:2015 msgid "" -"to ensure that :mod:`optparse` assigns the default type of ``\"string\"`` to" -" ``\"extend\"`` actions, we put the ``\"extend\"`` action in " -":attr:`~Option.ALWAYS_TYPED_ACTIONS` as well." +"to ensure that :mod:`optparse` assigns the default type of ``\"string\"`` to " +"``\"extend\"`` actions, we put the ``\"extend\"`` action in :attr:`~Option." +"ALWAYS_TYPED_ACTIONS` as well." msgstr "" #: ../../library/optparse.rst:2019 msgid "" -":meth:`MyOption.take_action` implements just this one new action, and passes" -" control back to :meth:`Option.take_action` for the standard :mod:`optparse`" -" actions." +":meth:`MyOption.take_action` implements just this one new action, and passes " +"control back to :meth:`Option.take_action` for the standard :mod:`optparse` " +"actions." msgstr "" #: ../../library/optparse.rst:2023 @@ -2434,11 +2425,11 @@ msgstr "" msgid "" "If the ``attr`` attribute of ``values`` doesn't exist or is ``None``, then " "ensure_value() first sets it to ``value``, and then returns 'value. This is " -"very handy for actions like ``\"extend\"``, ``\"append\"``, and " -"``\"count\"``, all of which accumulate data in a variable and expect that " -"variable to be of a certain type (a list for the first two, an integer for " -"the latter). Using :meth:`ensure_value` means that scripts using your " -"action don't have to worry about setting a default value for the option " -"destinations in question; they can just leave the default as ``None`` and " -":meth:`ensure_value` will take care of getting it right when it's needed." +"very handy for actions like ``\"extend\"``, ``\"append\"``, and ``\"count" +"\"``, all of which accumulate data in a variable and expect that variable to " +"be of a certain type (a list for the first two, an integer for the latter). " +"Using :meth:`ensure_value` means that scripts using your action don't have " +"to worry about setting a default value for the option destinations in " +"question; they can just leave the default as ``None`` and :meth:" +"`ensure_value` will take care of getting it right when it's needed." msgstr "" diff --git a/library/os.path.po b/library/os.path.po index 08bf94d66..6f23749c5 100644 --- a/library/os.path.po +++ b/library/os.path.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Sheila Gomes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-14 11:26+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,13 +31,11 @@ msgstr "" #: ../../library/os.path.rst:7 msgid "" -"**Source code:** :source:`Lib/posixpath.py` (for POSIX), " -":source:`Lib/ntpath.py` (for Windows NT), and :source:`Lib/macpath.py` (for " -"Macintosh)" +"**Source code:** :source:`Lib/posixpath.py` (for POSIX), :source:`Lib/ntpath." +"py` (for Windows NT), and :source:`Lib/macpath.py` (for Macintosh)" msgstr "" -"**Código Fonte:** :source:`Lib/posixpath.py` (for POSIX), " -":source:`Lib/ntpath.py` (for Windows NT), and :source:`Lib/macpath.py` (for " -"Macintosh)" +"**Código Fonte:** :source:`Lib/posixpath.py` (for POSIX), :source:`Lib/" +"ntpath.py` (for Windows NT), and :source:`Lib/macpath.py` (for Macintosh)" #: ../../library/os.path.rst:15 msgid "" @@ -45,8 +46,8 @@ msgid "" "strings. Unfortunately, some file names may not be representable as strings " "on Unix, so applications that need to support arbitrary file names on Unix " "should use bytes objects to represent path names. Vice versa, using bytes " -"objects cannot represent all file names on Windows (in the standard ``mbcs``" -" encoding), hence Windows applications should use string objects to access " +"objects cannot represent all file names on Windows (in the standard ``mbcs`` " +"encoding), hence Windows applications should use string objects to access " "all files." msgstr "" @@ -54,13 +55,13 @@ msgstr "" msgid "" "Unlike a unix shell, Python does not do any *automatic* path expansions. " "Functions such as :func:`expanduser` and :func:`expandvars` can be invoked " -"explicitly when an application desires shell-like path expansion. (See also" -" the :mod:`glob` module.)" +"explicitly when an application desires shell-like path expansion. (See also " +"the :mod:`glob` module.)" msgstr "" #: ../../library/os.path.rst:33 msgid "The :mod:`pathlib` module offers high-level path objects." -msgstr "" +msgstr "O módulo :mod:`pathlib` oferece objetos de caminho de alto nível." #: ../../library/os.path.rst:38 msgid "" @@ -72,12 +73,12 @@ msgstr "" #: ../../library/os.path.rst:45 msgid "" "Since different operating systems have different path name conventions, " -"there are several versions of this module in the standard library. The " -":mod:`os.path` module is always the path module suitable for the operating " -"system Python is running on, and therefore usable for local paths. However," -" you can also import and use the individual modules if you want to " -"manipulate a path that is *always* in one of the different formats. They " -"all have the same interface:" +"there are several versions of this module in the standard library. The :mod:" +"`os.path` module is always the path module suitable for the operating system " +"Python is running on, and therefore usable for local paths. However, you " +"can also import and use the individual modules if you want to manipulate a " +"path that is *always* in one of the different formats. They all have the " +"same interface:" msgstr "" #: ../../library/os.path.rst:53 @@ -113,7 +114,7 @@ msgstr "" #: ../../library/os.path.rst:407 ../../library/os.path.rst:423 #: ../../library/os.path.rst:444 ../../library/os.path.rst:455 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/os.path.rst:70 msgid "" @@ -126,10 +127,10 @@ msgstr "" #: ../../library/os.path.rst:83 msgid "" -"Return the longest common sub-path of each pathname in the sequence *paths*." -" Raise :exc:`ValueError` if *paths* contains both absolute and relative " -"pathnames, or if *paths* is empty. Unlike :func:`commonprefix`, this " -"returns a valid path." +"Return the longest common sub-path of each pathname in the sequence " +"*paths*. Raise :exc:`ValueError` if *paths* contains both absolute and " +"relative pathnames, or if *paths* is empty. Unlike :func:`commonprefix`, " +"this returns a valid path." msgstr "" #: ../../library/os.path.rst:89 ../../library/os.path.rst:359 @@ -145,8 +146,8 @@ msgstr "" #: ../../library/os.path.rst:98 msgid "" "Return the longest path prefix (taken character-by-character) that is a " -"prefix of all paths in *list*. If *list* is empty, return the empty string" -" (``''``)." +"prefix of all paths in *list*. If *list* is empty, return the empty string " +"(``''``)." msgstr "" #: ../../library/os.path.rst:104 @@ -179,8 +180,8 @@ msgstr "" #: ../../library/os.path.rst:147 msgid "" "Return ``True`` if *path* refers to an existing path. Returns ``True`` for " -"broken symbolic links. Equivalent to :func:`exists` on platforms lacking " -":func:`os.lstat`." +"broken symbolic links. Equivalent to :func:`exists` on platforms lacking :" +"func:`os.lstat`." msgstr "" #: ../../library/os.path.rst:159 @@ -191,10 +192,10 @@ msgstr "" #: ../../library/os.path.rst:164 msgid "" -"On Unix, an initial ``~`` is replaced by the environment variable " -":envvar:`HOME` if it is set; otherwise the current user's home directory is " -"looked up in the password directory through the built-in module :mod:`pwd`. " -"An initial ``~user`` is looked up directly in the password directory." +"On Unix, an initial ``~`` is replaced by the environment variable :envvar:" +"`HOME` if it is set; otherwise the current user's home directory is looked " +"up in the password directory through the built-in module :mod:`pwd`. An " +"initial ``~user`` is looked up directly in the password directory." msgstr "" #: ../../library/os.path.rst:169 @@ -221,24 +222,24 @@ msgstr "" #: ../../library/os.path.rst:191 msgid "" -"On Windows, ``%name%`` expansions are supported in addition to ``$name`` and" -" ``${name}``." +"On Windows, ``%name%`` expansions are supported in addition to ``$name`` and " +"``${name}``." msgstr "" #: ../../library/os.path.rst:200 msgid "" "Return the time of last access of *path*. The return value is a floating " -"point number giving the number of seconds since the epoch (see the " -":mod:`time` module). Raise :exc:`OSError` if the file does not exist or is " +"point number giving the number of seconds since the epoch (see the :mod:" +"`time` module). Raise :exc:`OSError` if the file does not exist or is " "inaccessible." msgstr "" #: ../../library/os.path.rst:207 msgid "" "Return the time of last modification of *path*. The return value is a " -"floating point number giving the number of seconds since the epoch (see the" -" :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is" -" inaccessible." +"floating point number giving the number of seconds since the epoch (see " +"the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or " +"is inaccessible." msgstr "" #: ../../library/os.path.rst:217 @@ -252,8 +253,8 @@ msgstr "" #: ../../library/os.path.rst:229 msgid "" -"Return the size, in bytes, of *path*. Raise :exc:`OSError` if the file does" -" not exist or is inaccessible." +"Return the size, in bytes, of *path*. Raise :exc:`OSError` if the file does " +"not exist or is inaccessible." msgstr "" #: ../../library/os.path.rst:238 @@ -265,16 +266,16 @@ msgstr "" #: ../../library/os.path.rst:248 msgid "" -"Return ``True`` if *path* is an :func:`existing ` regular file. This" -" follows symbolic links, so both :func:`islink` and :func:`isfile` can be " +"Return ``True`` if *path* is an :func:`existing ` regular file. This " +"follows symbolic links, so both :func:`islink` and :func:`isfile` can be " "true for the same path." msgstr "" #: ../../library/os.path.rst:258 msgid "" "Return ``True`` if *path* is an :func:`existing ` directory. This " -"follows symbolic links, so both :func:`islink` and :func:`isdir` can be true" -" for the same path." +"follows symbolic links, so both :func:`islink` and :func:`isdir` can be true " +"for the same path." msgstr "" #: ../../library/os.path.rst:268 @@ -293,8 +294,8 @@ msgid "" "to the same i-node on the same device --- this should detect mount points " "for all Unix and POSIX variants. It is not able to reliably detect bind " "mounts on the same filesystem. On Windows, a drive letter root and a share " -"UNC are always mount points, and for any other path ``GetVolumePathName`` is" -" called to see if it is different from the input path." +"UNC are always mount points, and for any other path ``GetVolumePathName`` is " +"called to see if it is different from the input path." msgstr "" #: ../../library/os.path.rst:288 @@ -313,12 +314,12 @@ msgstr "" #: ../../library/os.path.rst:305 msgid "" -"On Windows, the drive letter is not reset when an absolute path component " -"(e.g., ``r'\\foo'``) is encountered. If a component contains a drive " -"letter, all previous components are thrown away and the drive letter is " -"reset. Note that since there is a current directory for each drive, " -"``os.path.join(\"c:\", \"foo\")`` represents a path relative to the current " -"directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\\\foo`." +"On Windows, the drive letter is not reset when an absolute path component (e." +"g., ``r'\\foo'``) is encountered. If a component contains a drive letter, " +"all previous components are thrown away and the drive letter is reset. Note " +"that since there is a current directory for each drive, ``os.path.join(\"c:" +"\", \"foo\")`` represents a path relative to the current directory on drive :" +"file:`C:` (:file:`c:foo`), not :file:`c:\\\\foo`." msgstr "" #: ../../library/os.path.rst:312 @@ -327,11 +328,11 @@ msgstr "" #: ../../library/os.path.rst:318 msgid "" -"Normalize the case of a pathname. On Windows, convert all characters in the" -" pathname to lowercase, and also convert forward slashes to backward " -"slashes. On other operating systems, return the path unchanged. Raise a " -":exc:`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly" -" or indirectly through the :class:`os.PathLike` interface)." +"Normalize the case of a pathname. On Windows, convert all characters in the " +"pathname to lowercase, and also convert forward slashes to backward slashes. " +"On other operating systems, return the path unchanged. Raise a :exc:" +"`TypeError` if the type of *path* is not ``str`` or ``bytes`` (directly or " +"indirectly through the :class:`os.PathLike` interface)." msgstr "" #: ../../library/os.path.rst:330 @@ -349,6 +350,9 @@ msgid "" "symbolic links encountered in the path (if they are supported by the " "operating system)." msgstr "" +"Retorna o caminho canônico do nome do arquivo especificado, eliminando " +"quaisquer links simbólicos encontrados no caminho (se esses forem suportados " +"pelo sistema operacional)." #: ../../library/os.path.rst:351 msgid "" @@ -387,9 +391,9 @@ msgstr "" #: ../../library/os.path.rst:397 msgid "" "Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same " -"file. These structures may have been returned by :func:`os.fstat`, " -":func:`os.lstat`, or :func:`os.stat`. This function implements the " -"underlying comparison used by :func:`samefile` and :func:`sameopenfile`." +"file. These structures may have been returned by :func:`os.fstat`, :func:`os." +"lstat`, or :func:`os.stat`. This function implements the underlying " +"comparison used by :func:`samefile` and :func:`sameopenfile`." msgstr "" #: ../../library/os.path.rst:413 @@ -401,15 +405,15 @@ msgid "" "*path* is empty, both *head* and *tail* are empty. Trailing slashes are " "stripped from *head* unless it is the root (one or more slashes only). In " "all cases, ``join(head, tail)`` returns a path to the same location as " -"*path* (but the strings may differ). Also see the functions :func:`dirname`" -" and :func:`basename`." +"*path* (but the strings may differ). Also see the functions :func:`dirname` " +"and :func:`basename`." msgstr "" #: ../../library/os.path.rst:429 msgid "" "Split the pathname *path* into a pair ``(drive, tail)`` where *drive* is " -"either a mount point or the empty string. On systems which do not use drive" -" specifications, *drive* will always be the empty string. In all cases, " +"either a mount point or the empty string. On systems which do not use drive " +"specifications, *drive* will always be the empty string. In all cases, " "``drive + tail`` will be the same as *path*." msgstr "" @@ -420,25 +424,24 @@ msgstr "" #: ../../library/os.path.rst:436 msgid "" -"If the path contains a drive letter, drive will contain everything up to and" -" including the colon. e.g. ``splitdrive(\"c:/dir\")`` returns ``(\"c:\", " -"\"/dir\")``" +"If the path contains a drive letter, drive will contain everything up to and " +"including the colon. e.g. ``splitdrive(\"c:/dir\")`` returns ``(\"c:\", \"/" +"dir\")``" msgstr "" #: ../../library/os.path.rst:440 msgid "" -"If the path contains a UNC path, drive will contain the host name and share," -" up to but not including the fourth separator. e.g. " -"``splitdrive(\"//host/computer/dir\")`` returns ``(\"//host/computer\", " -"\"/dir\")``" +"If the path contains a UNC path, drive will contain the host name and share, " +"up to but not including the fourth separator. e.g. ``splitdrive(\"//host/" +"computer/dir\")`` returns ``(\"//host/computer\", \"/dir\")``" msgstr "" #: ../../library/os.path.rst:450 msgid "" "Split the pathname *path* into a pair ``(root, ext)`` such that ``root + " "ext == path``, and *ext* is empty or begins with a period and contains at " -"most one period. Leading periods on the basename are ignored; " -"``splitext('.cshrc')`` returns ``('.cshrc', '')``." +"most one period. Leading periods on the basename are ignored; ``splitext('." +"cshrc')`` returns ``('.cshrc', '')``." msgstr "" #: ../../library/os.path.rst:461 diff --git a/library/os.po b/library/os.po index 727d836c5..be872fba0 100644 --- a/library/os.po +++ b/library/os.po @@ -1,27 +1,31 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # 01419cbcade949a3bc5433893a160e74, 2019 # Italo Penaforte , 2019 # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Jayme Tosi Neto , 2019 -# Rafael Fontenelle , 2019 # Rafael Biagioni de Fazio , 2019 +# Marco Rougeth , 2019 +# Rafael Fontenelle , 2019 # Sheila Gomes , 2019 -# +# Vinícius Muniz de Melo , 2020 +# Rodrigo Neres , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-08 03:26+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Sheila Gomes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rodrigo Neres , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,19 +45,19 @@ msgid "" "This module provides a portable way of using operating system dependent " "functionality. If you just want to read or write a file see :func:`open`, " "if you want to manipulate paths, see the :mod:`os.path` module, and if you " -"want to read all the lines in all the files on the command line see the " -":mod:`fileinput` module. For creating temporary files and directories see " -"the :mod:`tempfile` module, and for high-level file and directory handling " -"see the :mod:`shutil` module." +"want to read all the lines in all the files on the command line see the :mod:" +"`fileinput` module. For creating temporary files and directories see the :" +"mod:`tempfile` module, and for high-level file and directory handling see " +"the :mod:`shutil` module." msgstr "" "Este módulo fornece uma maneira simples de usar funcionalidades que são " "dependentes de sistema operacional. Se desejar ler ou escrever um arquivo, " -"veja :func:`open`; se o que quer é manipular estruturas de diretórios, veja" -" o módulo :mod:`os.path`; e se quiser ler todas as linhas, de todos os " +"veja :func:`open`; se o que quer é manipular estruturas de diretórios, veja " +"o módulo :mod:`os.path`; e se quiser ler todas as linhas, de todos os " "arquivos, na linha de comando, veja o módulo :mod:`fileinput`. Para criar " "arquivos e diretórios temporários, veja o módulo :mod:`tempfile`; e, para " -"manipulação em alto nível de arquivos e diretórios, veja o módulo " -":mod:`shutil`." +"manipulação em alto nível de arquivos e diretórios, veja o módulo :mod:" +"`shutil`." #: ../../library/os.rst:19 msgid "Notes on the availability of these functions:" @@ -86,19 +90,18 @@ msgstr "" #: ../../library/os.rst:31 msgid "" "All functions accepting path or file names accept both bytes and string " -"objects, and result in an object of the same type, if a path or file name is" -" returned." +"objects, and result in an object of the same type, if a path or file name is " +"returned." msgstr "" "Todas as funções que aceitam nomes de caminhos ou arquivos, aceitam objetos " -"bytes e string, e resultam em um objeto do mesmo tipo, se um caminho ou nome" -" de arquivo for retornado." +"bytes e string, e resultam em um objeto do mesmo tipo, se um caminho ou nome " +"de arquivo for retornado." #: ../../library/os.rst:38 msgid "" -"All functions in this module raise :exc:`OSError` (or subclasses thereof) in" -" the case of invalid or inaccessible file names and paths, or other " -"arguments that have the correct type, but are not accepted by the operating " -"system." +"All functions in this module raise :exc:`OSError` (or subclasses thereof) in " +"the case of invalid or inaccessible file names and paths, or other arguments " +"that have the correct type, but are not accepted by the operating system." msgstr "" "Todas as funções neste módulo trazem :exc:`OSError` (ou suas subclasses) no " "caso de nomes e caminhos de arquivos inválidos ou inacessíveis, ou outros " @@ -119,8 +122,8 @@ msgstr "" #: ../../library/os.rst:54 msgid "" -":attr:`sys.platform` has a finer granularity. :func:`os.uname` gives " -"system-dependent version information." +":attr:`sys.platform` has a finer granularity. :func:`os.uname` gives system-" +"dependent version information." msgstr "" ":attr:`sys.platform` tem uma granularidade mais fina. :func:`os.uname` " "fornece informação dependentes de versão do sistema." @@ -140,29 +143,29 @@ msgstr "" #: ../../library/os.rst:67 msgid "" -"In Python, file names, command line arguments, and environment variables are" -" represented using the string type. On some systems, decoding these strings " +"In Python, file names, command line arguments, and environment variables are " +"represented using the string type. On some systems, decoding these strings " "to and from bytes is necessary before passing them to the operating system. " -"Python uses the file system encoding to perform this conversion (see " -":func:`sys.getfilesystemencoding`)." +"Python uses the file system encoding to perform this conversion (see :func:" +"`sys.getfilesystemencoding`)." msgstr "" "Em Python, nomes de arquivos, argumentos de linha de comando e variáveis de " "ambiente são representados usando o tipo string. Em alguns sistemas, é " -"necessária a decodificação dessas sequências de caracteres, de e para bytes," -" antes de transmiti-las ao sistema operacional. O Python usa a codificação " -"do sistema de arquivos para realizar essa conversão (consulte " -":func:`sys.getfilesystemencoding`)." +"necessária a decodificação dessas sequências de caracteres, de e para bytes, " +"antes de transmiti-las ao sistema operacional. O Python usa a codificação do " +"sistema de arquivos para realizar essa conversão (consulte :func:`sys." +"getfilesystemencoding`)." #: ../../library/os.rst:73 msgid "" -"On some systems, conversion using the file system encoding may fail. In this" -" case, Python uses the :ref:`surrogateescape encoding error handler " +"On some systems, conversion using the file system encoding may fail. In this " +"case, Python uses the :ref:`surrogateescape encoding error handler " "`, which means that undecodable bytes are replaced by a " "Unicode character U+DCxx on decoding, and these are again translated to the " "original byte on encoding." msgstr "" -"Em alguns sistemas a conversão, usando a codificação do sistema de arquivos," -" pode falhar. Neste caso, o Python usa o :ref:`manipulador de erro de " +"Em alguns sistemas a conversão, usando a codificação do sistema de arquivos, " +"pode falhar. Neste caso, o Python usa o :ref:`manipulador de erro de " "codificação surrogateescape `, o que significa que bytes " "não decodificados são substituídos por um caractere Unicode U+DCxx na " "decodificação, e estes são novamente traduzidos para o byte original na " @@ -193,11 +196,9 @@ msgstr "" #: ../../library/os.rst:97 msgid "" -"Return the filename corresponding to the controlling terminal of the " -"process." +"Return the filename corresponding to the controlling terminal of the process." msgstr "" -"Retorna o nome do arquivo correspondente ao terminal de controle do " -"processo." +"Retorna o nome do arquivo correspondente ao terminal de controle do processo." #: ../../library/os.rst:99 ../../library/os.rst:261 ../../library/os.rst:270 #: ../../library/os.rst:279 ../../library/os.rst:289 ../../library/os.rst:298 @@ -235,18 +236,18 @@ msgstr "" #: ../../library/os.rst:3289 ../../library/os.rst:3296 #: ../../library/os.rst:3311 ../../library/os.rst:3356 #: ../../library/os.rst:3363 ../../library/os.rst:3371 -#: ../../library/os.rst:3427 ../../library/os.rst:3626 -#: ../../library/os.rst:3642 ../../library/os.rst:3653 -#: ../../library/os.rst:3664 ../../library/os.rst:3677 -#: ../../library/os.rst:3723 ../../library/os.rst:3734 -#: ../../library/os.rst:3742 ../../library/os.rst:3758 -#: ../../library/os.rst:3770 ../../library/os.rst:3778 -#: ../../library/os.rst:3786 ../../library/os.rst:3794 -#: ../../library/os.rst:3802 ../../library/os.rst:3810 -#: ../../library/os.rst:3817 ../../library/os.rst:3824 -#: ../../library/os.rst:3970 ../../library/os.rst:3979 -#: ../../library/os.rst:4000 ../../library/os.rst:4010 -#: ../../library/os.rst:4019 +#: ../../library/os.rst:3427 ../../library/os.rst:3624 +#: ../../library/os.rst:3640 ../../library/os.rst:3651 +#: ../../library/os.rst:3662 ../../library/os.rst:3675 +#: ../../library/os.rst:3721 ../../library/os.rst:3732 +#: ../../library/os.rst:3740 ../../library/os.rst:3756 +#: ../../library/os.rst:3770 ../../library/os.rst:3781 +#: ../../library/os.rst:3793 ../../library/os.rst:3800 +#: ../../library/os.rst:3809 ../../library/os.rst:3818 +#: ../../library/os.rst:3827 ../../library/os.rst:3836 +#: ../../library/os.rst:3982 ../../library/os.rst:3991 +#: ../../library/os.rst:4012 ../../library/os.rst:4022 +#: ../../library/os.rst:4031 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilidade `: Unix." @@ -264,9 +265,8 @@ msgstr "" msgid "" "This mapping is captured the first time the :mod:`os` module is imported, " "typically during Python startup as part of processing :file:`site.py`. " -"Changes to the environment made after this time are not reflected in " -"``os.environ``, except for changes made by modifying ``os.environ`` " -"directly." +"Changes to the environment made after this time are not reflected in ``os." +"environ``, except for changes made by modifying ``os.environ`` directly." msgstr "" "Este mapeamento é capturado na primeira vez que o módulo :mod:`os` é " "importado, normalmente durante a inicialização do Python, como parte do " @@ -277,8 +277,8 @@ msgstr "" #: ../../library/os.rst:113 msgid "" "If the platform supports the :func:`putenv` function, this mapping may be " -"used to modify the environment as well as query the environment. " -":func:`putenv` will be called automatically when the mapping is modified." +"used to modify the environment as well as query the environment. :func:" +"`putenv` will be called automatically when the mapping is modified." msgstr "" "Se a plataforma suportar a função :func:`putenv`, esse mapeamento pode ser " "usado para modificar o ambiente, além de consultá-lo. :func:`putenv` será " @@ -299,8 +299,8 @@ msgid "" "Calling :func:`putenv` directly does not change ``os.environ``, so it's " "better to modify ``os.environ``." msgstr "" -"Chamar a função :func:`putenv` diretamente não muda ``os.environ``, por isso" -" é melhor modificar ``os.environ``." +"Chamar a função :func:`putenv` diretamente não muda ``os.environ``, por isso " +"é melhor modificar ``os.environ``." #: ../../library/os.rst:128 msgid "" @@ -324,16 +324,15 @@ msgstr "" #: ../../library/os.rst:136 msgid "" -"If the platform supports the :func:`unsetenv` function, you can delete items" -" in this mapping to unset environment variables. :func:`unsetenv` will be " +"If the platform supports the :func:`unsetenv` function, you can delete items " +"in this mapping to unset environment variables. :func:`unsetenv` will be " "called automatically when an item is deleted from ``os.environ``, and when " "one of the :meth:`pop` or :meth:`clear` methods is called." msgstr "" "Se a plataforma suportar a função :func:`unsetenv`, os itens nesse " -"mapeamento poderão ser excluídos para remover variáveis de ambiente. " -":func:`unsetenv` será chamado automaticamente quando um item é excluído de " -"``os.environ``, e quando um dos métodos :meth:`pop` ou :meth:`clear` é " -"chamado." +"mapeamento poderão ser excluídos para remover variáveis de ambiente. :func:" +"`unsetenv` será chamado automaticamente quando um item é excluído de ``os." +"environ``, e quando um dos métodos :meth:`pop` ou :meth:`clear` é chamado." #: ../../library/os.rst:144 msgid "" @@ -342,18 +341,18 @@ msgid "" "synchronized (modify :data:`environb` updates :data:`environ`, and vice " "versa)." msgstr "" -"Versão bytes :data:`environ`: um objeto de :term:`mapeamento` representando" -" o ambiente como byte strings. :data:`environ` e :data:`environb` são " +"Versão bytes :data:`environ`: um objeto de :term:`mapeamento` representando " +"o ambiente como byte strings. :data:`environ` e :data:`environb` são " "sincronizados (modificar :data:`environb` atualiza :data:`environ`, e vice " "versa)." #: ../../library/os.rst:149 msgid "" ":data:`environb` is only available if :data:`supports_bytes_environ` is " -"True." +"``True``." msgstr "" -":data:`environb` só está disponível se :data:`supports_bytes_environ` for " -"True." +":data:`environb` está disponível somente se :data:`supports_bytes_environ` " +"for ``True``." #: ../../library/os.rst:160 msgid "These functions are described in :ref:`os-file-dir`." @@ -379,8 +378,8 @@ msgid "" "Support added to accept objects implementing the :class:`os.PathLike` " "interface." msgstr "" -"Suporte adicionado para aceitar objetos que implementam a interface " -":class:`os.PathLike`" +"Suporte adicionado para aceitar objetos que implementam a interface :class:" +"`os.PathLike`" #: ../../library/os.rst:180 msgid "" @@ -408,11 +407,11 @@ msgid "" "returned as long as it is a :class:`str` or :class:`bytes` object. In all " "other cases, :exc:`TypeError` is raised." msgstr "" -"Se um objeto da classe :class:`str` ou :class:`bytes` é passado, é retornado" -" inalterado. Caso contrário o método :meth:`~os.PathLike.__fspath__` é " -"chamado, e seu valor é retornado, desde que seja um objeto da classe " -":class:`str` ou :class:`bytes`. Em todos os outros casos, a exceção " -":exc:`TypeError` é gerada." +"Se um objeto da classe :class:`str` ou :class:`bytes` é passado, é retornado " +"inalterado. Caso contrário o método :meth:`~os.PathLike.__fspath__` é " +"chamado, e seu valor é retornado, desde que seja um objeto da classe :class:" +"`str` ou :class:`bytes`. Em todos os outros casos, a exceção :exc:" +"`TypeError` é gerada." #: ../../library/os.rst:207 msgid "" @@ -420,8 +419,8 @@ msgid "" "e.g. :class:`pathlib.PurePath`." msgstr "" "Uma classe base abstrata :term:`abstract base class` para objetos " -"representando um caminho do sistema de arquivos, por exemplo " -":class:`pathlib.PurePath`." +"representando um caminho do sistema de arquivos, por exemplo :class:`pathlib." +"PurePath`." #: ../../library/os.rst:214 msgid "Return the file system path representation of the object." @@ -446,15 +445,14 @@ msgstr "" #: ../../library/os.rst:225 msgid "" "On Unix, keys and values are decoded with :func:`sys.getfilesystemencoding` " -"and ``'surrogateescape'`` error handler. Use :func:`os.getenvb` if you would" -" like to use a different encoding." +"and ``'surrogateescape'`` error handler. Use :func:`os.getenvb` if you would " +"like to use a different encoding." msgstr "" -"No Unix, chaves e valores são decodificados com a função " -":func:`sys.getfilesystemencoding` e o o manipulador de erros " -"``'surrogateescape'``. Use :func:`os.getenvb` se quiser usar uma codificação" -" diferente." +"No Unix, chaves e valores são decodificados com a função :func:`sys." +"getfilesystemencoding` e o o manipulador de erros ``'surrogateescape'``. " +"Use :func:`os.getenvb` se quiser usar uma codificação diferente." -#: ../../library/os.rst:229 ../../library/os.rst:442 ../../library/os.rst:645 +#: ../../library/os.rst:229 ../../library/os.rst:442 msgid ":ref:`Availability `: most flavors of Unix, Windows." msgstr "" ":ref:`Disponibilidade `: várias versões de Unix, Windows." @@ -469,12 +467,13 @@ msgstr "" #: ../../library/os.rst:237 msgid "" -":func:`getenvb` is only available if :data:`supports_bytes_environ` is True." +":func:`getenvb` is only available if :data:`supports_bytes_environ` is " +"``True``." msgstr "" -":func:`getenvb` só estará disponível se :data:`supports_bytes_environ` for " -"True." +":func:`getenvb` está disponível somente se :data:`supports_bytes_environ` " +"for ``True``." -#: ../../library/os.rst:241 +#: ../../library/os.rst:241 ../../library/os.rst:645 msgid ":ref:`Availability `: most flavors of Unix." msgstr ":ref:`Disponibilidade `: várias versões de Unix." @@ -525,56 +524,55 @@ msgstr "" #: ../../library/os.rst:301 msgid "" "On Mac OS X, :func:`getgroups` behavior differs somewhat from other Unix " -"platforms. If the Python interpreter was built with a deployment target of " -":const:`10.5` or earlier, :func:`getgroups` returns the list of effective " +"platforms. If the Python interpreter was built with a deployment target of :" +"const:`10.5` or earlier, :func:`getgroups` returns the list of effective " "group ids associated with the current user process; this list is limited to " "a system-defined number of entries, typically 16, and may be modified by " "calls to :func:`setgroups` if suitably privileged. If built with a " "deployment target greater than :const:`10.5`, :func:`getgroups` returns the " -"current group access list for the user associated with the effective user id" -" of the process; the group access list may change over the lifetime of the " -"process, it is not affected by calls to :func:`setgroups`, and its length is" -" not limited to 16. The deployment target value, " -":const:`MACOSX_DEPLOYMENT_TARGET`, can be obtained with " -":func:`sysconfig.get_config_var`." +"current group access list for the user associated with the effective user id " +"of the process; the group access list may change over the lifetime of the " +"process, it is not affected by calls to :func:`setgroups`, and its length is " +"not limited to 16. The deployment target value, :const:" +"`MACOSX_DEPLOYMENT_TARGET`, can be obtained with :func:`sysconfig." +"get_config_var`." msgstr "" "No Mac OS X, o comportamento da função :func:`getgroups` difere um pouco de " "outras plataformas Unix. Se o interpretador Python foi compilado para " "distribuição na versão :const:`10.5` ou anterior, :func:`getgroups` retorna " "a lista de ids de grupos efetivos, associados ao processo de usuário atual; " "esta lista é limitada a um número de entradas definido pelo sistema, " -"tipicamente 16, e pode ser modificada por chamadas para :func:`setgroups` se" -" tiver o privilégio adequado. Se foi compilado para distribuição na versão " +"tipicamente 16, e pode ser modificada por chamadas para :func:`setgroups` se " +"tiver o privilégio adequado. Se foi compilado para distribuição na versão " "maior que :const:`10.5`, :func:`getgroups` retorna a lista de acesso de " -"grupo atual para o usuário associado ao id de usuário efetivo do processo; a" -" lista de acesso de grupo pode mudar durante a vida útil do processo, e ela " +"grupo atual para o usuário associado ao id de usuário efetivo do processo; a " +"lista de acesso de grupo pode mudar durante a vida útil do processo, e ela " "não é afetada por chamadas para :func:`setgroups`, e seu comprimento não é " -"limitado a 16. O valor da constante :const:`MACOSX_DEPLOYMENT_TARGET`, pode" -" ser obtido com :func:`sysconfig.get_config_var`." +"limitado a 16. O valor da constante :const:`MACOSX_DEPLOYMENT_TARGET`, pode " +"ser obtido com :func:`sysconfig.get_config_var`." #: ../../library/os.rst:318 msgid "" "Return the name of the user logged in on the controlling terminal of the " -"process. For most purposes, it is more useful to use " -":func:`getpass.getuser` since the latter checks the environment variables " -":envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, and " -"falls back to ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the " -"current real user id." +"process. For most purposes, it is more useful to use :func:`getpass." +"getuser` since the latter checks the environment variables :envvar:`LOGNAME` " +"or :envvar:`USERNAME` to find out who the user is, and falls back to ``pwd." +"getpwuid(os.getuid())[0]`` to get the login name of the current real user id." msgstr "" "Retorna o nome do usuário conectado no terminal de controle do processo. " "Para a maioria dos propósitos, é mais útil usar :func:`getpass.getuser`, já " -"que esse último verifica as variáveis de ambiente :envvar:`LOGNAME` ou " -":envvar:`USERNAME` para descobrir quem é o usuário, e retorna para " -"``pwd.getpwuid(os.getuid())[0]`` para obter o nome de login do ID do usuário" -" real atual." +"que esse último verifica as variáveis de ambiente :envvar:`LOGNAME` ou :" +"envvar:`USERNAME` para descobrir quem é o usuário, e retorna para ``pwd." +"getpwuid(os.getuid())[0]`` para obter o nome de login do ID do usuário real " +"atual." #: ../../library/os.rst:325 ../../library/os.rst:360 ../../library/os.rst:822 -#: ../../library/os.rst:832 ../../library/os.rst:1018 -#: ../../library/os.rst:1387 ../../library/os.rst:1749 -#: ../../library/os.rst:2003 ../../library/os.rst:2729 -#: ../../library/os.rst:2758 ../../library/os.rst:3144 -#: ../../library/os.rst:3507 ../../library/os.rst:3518 -#: ../../library/os.rst:3586 ../../library/os.rst:3612 +#: ../../library/os.rst:832 ../../library/os.rst:1018 ../../library/os.rst:1387 +#: ../../library/os.rst:1749 ../../library/os.rst:2003 +#: ../../library/os.rst:2729 ../../library/os.rst:2758 +#: ../../library/os.rst:3144 ../../library/os.rst:3507 +#: ../../library/os.rst:3518 ../../library/os.rst:3586 +#: ../../library/os.rst:3610 msgid ":ref:`Availability `: Unix, Windows." msgstr ":ref:`Disponibilidade`: Unix, Windows." @@ -596,13 +594,13 @@ msgstr "Retorna o id do processo atual." #: ../../library/os.rst:355 msgid "" -"Return the parent's process id. When the parent process has exited, on Unix" -" the id returned is the one of the init process (1), on Windows it is still " +"Return the parent's process id. When the parent process has exited, on Unix " +"the id returned is the one of the init process (1), on Windows it is still " "the same id, which may be already reused by another process." msgstr "" "Retorna o ID do processo pai. Quando o processo pai é encerrado, no Unix, o " -"ID retornado é o do processo init(1); no Windows, ainda é o mesmo ID, que já" -" pode ser reutilizado por outro processo." +"ID retornado é o do processo init(1); no Windows, ainda é o mesmo ID, que já " +"pode ser reutilizado por outro processo." #: ../../library/os.rst:361 msgid "Added support for Windows." @@ -610,22 +608,21 @@ msgstr "Adicionado suporte para Windows." #: ../../library/os.rst:369 msgid "" -"Get program scheduling priority. The value *which* is one of " -":const:`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* " -"is interpreted relative to *which* (a process identifier for " -":const:`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`, and " -"a user ID for :const:`PRIO_USER`). A zero value for *who* denotes " -"(respectively) the calling process, the process group of the calling " -"process, or the real user ID of the calling process." -msgstr "" -"Obtém prioridade de agendamento de programa. O valor *which* é um entre " -":const:`PRIO_PROCESS`, :const:`PRIO_PGRP` ou :const:`PRIO_USER`, e *who* é " -"interpretado em relação a *which* (um identificador de processo para " -":const:`PRIO_PROCESS`, identificador do grupo de processos para " -":const:`PRIO_PGRP` e um ID de usuário para :const:`PRIO_USER`). Um valor " -"zero para *who* indica (respectivamente) o processo de chamada, o grupo de " -"processos do processo de chamada ou o ID do usuário real do processo de " -"chamada." +"Get program scheduling priority. The value *which* is one of :const:" +"`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* is " +"interpreted relative to *which* (a process identifier for :const:" +"`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`, and a user " +"ID for :const:`PRIO_USER`). A zero value for *who* denotes (respectively) " +"the calling process, the process group of the calling process, or the real " +"user ID of the calling process." +msgstr "" +"Obtém prioridade de agendamento de programa. O valor *which* é um entre :" +"const:`PRIO_PROCESS`, :const:`PRIO_PGRP` ou :const:`PRIO_USER`, e *who* é " +"interpretado em relação a *which* (um identificador de processo para :const:" +"`PRIO_PROCESS`, identificador do grupo de processos para :const:`PRIO_PGRP` " +"e um ID de usuário para :const:`PRIO_USER`). Um valor zero para *who* indica " +"(respectivamente) o processo de chamada, o grupo de processos do processo de " +"chamada ou o ID do usuário real do processo de chamada." #: ../../library/os.rst:386 msgid "" @@ -654,8 +651,8 @@ msgstr "Retorna o ID de usuário real do processo atual." #: ../../library/os.rst:424 msgid "" -"Call the system initgroups() to initialize the group access list with all of" -" the groups of which the specified username is a member, plus the specified " +"Call the system initgroups() to initialize the group access list with all of " +"the groups of which the specified username is a member, plus the specified " "group id." msgstr "" "Chama o initgroups() do sistema para inicializar a lista de acesso ao grupo " @@ -665,12 +662,12 @@ msgstr "" #: ../../library/os.rst:437 msgid "" "Set the environment variable named *key* to the string *value*. Such " -"changes to the environment affect subprocesses started with " -":func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`." +"changes to the environment affect subprocesses started with :func:`os." +"system`, :func:`popen` or :func:`fork` and :func:`execv`." msgstr "" "Define a variável de ambiente denominada *key* como a string *value*. Tais " -"mudanças no ambiente afetam os subprocessos iniciados com :func:`os.system`," -" :func:`popen` ou :func:`fork` and :func:`execv`." +"mudanças no ambiente afetam os subprocessos iniciados com :func:`os." +"system`, :func:`popen` ou :func:`fork` and :func:`execv`." #: ../../library/os.rst:445 msgid "" @@ -683,16 +680,15 @@ msgstr "" #: ../../library/os.rst:448 msgid "" -"When :func:`putenv` is supported, assignments to items in ``os.environ`` are" -" automatically translated into corresponding calls to :func:`putenv`; " +"When :func:`putenv` is supported, assignments to items in ``os.environ`` are " +"automatically translated into corresponding calls to :func:`putenv`; " "however, calls to :func:`putenv` don't update ``os.environ``, so it is " "actually preferable to assign to items of ``os.environ``." msgstr "" -"Quando há suporte a :func:`putenv`, as atribuições para itens em " -"``os.environ`` são automaticamente convertidas em chamadas correspondentes " -"para :func:`putenv`; no entanto, chamadas para :func:`putenv` não atualiza " -"``os.environ``, então é realmente preferível atribuir itens a " -"``os.environ``." +"Quando há suporte a :func:`putenv`, as atribuições para itens em ``os." +"environ`` são automaticamente convertidas em chamadas correspondentes para :" +"func:`putenv`; no entanto, chamadas para :func:`putenv` não atualiza ``os." +"environ``, então é realmente preferível atribuir itens a ``os.environ``." #: ../../library/os.rst:456 msgid "Set the current process's effective group id." @@ -725,8 +721,8 @@ msgid "" "for :func:`getgroups` for cases where it may not return the same group list " "set by calling setgroups()." msgstr "" -"No Mac OS X, o tamanho de *groups* não pode exceder o número máximo definido" -" pelo sistema de IDs de grupo efetivos, normalmente 16. Consulte a " +"No Mac OS X, o tamanho de *groups* não pode exceder o número máximo definido " +"pelo sistema de IDs de grupo efetivos, normalmente 16. Consulte a " "documentação de :func:`getgroups` para casos em que ele pode não retornar o " "mesmo conjunto de listas de grupos chamando setgroups()." @@ -752,25 +748,25 @@ msgstr "" #: ../../library/os.rst:509 msgid "" -"Set program scheduling priority. The value *which* is one of " -":const:`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* " -"is interpreted relative to *which* (a process identifier for " -":const:`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`, and " -"a user ID for :const:`PRIO_USER`). A zero value for *who* denotes " -"(respectively) the calling process, the process group of the calling " -"process, or the real user ID of the calling process. *priority* is a value " -"in the range -20 to 19. The default priority is 0; lower priorities cause " -"more favorable scheduling." -msgstr "" -"Define a prioridade de agendamento de programa. O valor *which* é um entre " -":const:`PRIO_PROCESS`, :const:`PRIO_PGRP` ou :const:`PRIO_USER`, e *who* é " -"interpretado em relação a *which* (um identificador de processo para " -":const:`PRIO_PROCESS`, identificador do grupo de processos para " -":const:`PRIO_PGRP` e um ID de usuário para :const:`PRIO_USER`). Um valor " -"zero para *who* indica (respectivamente) o processo de chamada, o grupo de " -"processos do processo de chamada ou o ID do usuário real do processo de " -"chamada. *priority* é um valor na faixa de -20 a 19. A prioridade padrão é " -"0; prioridades menores resultam em agendamento um mais favorável." +"Set program scheduling priority. The value *which* is one of :const:" +"`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* is " +"interpreted relative to *which* (a process identifier for :const:" +"`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`, and a user " +"ID for :const:`PRIO_USER`). A zero value for *who* denotes (respectively) " +"the calling process, the process group of the calling process, or the real " +"user ID of the calling process. *priority* is a value in the range -20 to " +"19. The default priority is 0; lower priorities cause more favorable " +"scheduling." +msgstr "" +"Define a prioridade de agendamento de programa. O valor *which* é um entre :" +"const:`PRIO_PROCESS`, :const:`PRIO_PGRP` ou :const:`PRIO_USER`, e *who* é " +"interpretado em relação a *which* (um identificador de processo para :const:" +"`PRIO_PROCESS`, identificador do grupo de processos para :const:`PRIO_PGRP` " +"e um ID de usuário para :const:`PRIO_USER`). Um valor zero para *who* indica " +"(respectivamente) o processo de chamada, o grupo de processos do processo de " +"chamada ou o ID do usuário real do processo de chamada. *priority* é um " +"valor na faixa de -20 a 19. A prioridade padrão é 0; prioridades menores " +"resultam em agendamento um mais favorável." #: ../../library/os.rst:526 msgid "Set the current process's real and effective group ids." @@ -820,8 +816,8 @@ msgstr "" #: ../../library/os.rst:589 msgid "" -"``True`` if the native OS type of the environment is bytes (eg. ``False`` on" -" Windows)." +"``True`` if the native OS type of the environment is bytes (eg. ``False`` on " +"Windows)." msgstr "" "``True`` se o tipo de sistema operacional nativo do ambiente estiver em " "bytes (ex., ``False`` no Windows)." @@ -862,13 +858,12 @@ msgstr ":attr:`machine` - identificador de hardware" #: ../../library/os.rst:615 msgid "" "For backwards compatibility, this object is also iterable, behaving like a " -"five-tuple containing :attr:`sysname`, :attr:`nodename`, :attr:`release`, " -":attr:`version`, and :attr:`machine` in that order." +"five-tuple containing :attr:`sysname`, :attr:`nodename`, :attr:`release`, :" +"attr:`version`, and :attr:`machine` in that order." msgstr "" "Para compatibilidade com versões anteriores, esse objeto também é iterável, " -"comportando-se como uma cinco tupla contendo :attr:`sysname`, " -":attr:`nodename`, :attr:`release`, :attr:`version` e :attr:`machine` nessa " -"ordem." +"comportando-se como uma cinco tupla contendo :attr:`sysname`, :attr:" +"`nodename`, :attr:`release`, :attr:`version` e :attr:`machine` nessa ordem." #: ../../library/os.rst:620 msgid "" @@ -877,15 +872,15 @@ msgid "" "or even ``socket.gethostbyaddr(socket.gethostname())``." msgstr "" "Alguns sistemas truncam :attr:`nodename` para 8 caracteres ou para o " -"componente principal; uma maneira melhor de obter o nome do host é " -":func:`socket.gethostname` ou até mesmo " -"``socket.gethostbyaddr(socket.gethostname())``." +"componente principal; uma maneira melhor de obter o nome do host é :func:" +"`socket.gethostname` ou até mesmo ``socket.gethostbyaddr(socket." +"gethostname())``." #: ../../library/os.rst:626 msgid ":ref:`Availability `: recent flavors of Unix." msgstr ":ref:`Disponibilidade `: sabores recentes de Unix." -#: ../../library/os.rst:627 ../../library/os.rst:3613 +#: ../../library/os.rst:627 ../../library/os.rst:3611 msgid "" "Return type changed from a tuple to a tuple-like object with named " "attributes." @@ -896,8 +891,8 @@ msgstr "" #: ../../library/os.rst:636 msgid "" "Unset (delete) the environment variable named *key*. Such changes to the " -"environment affect subprocesses started with :func:`os.system`, " -":func:`popen` or :func:`fork` and :func:`execv`." +"environment affect subprocesses started with :func:`os.system`, :func:" +"`popen` or :func:`fork` and :func:`execv`." msgstr "" "Cancela (exclui) a variável de ambiente denominada *key*. Tais mudanças no " "ambiente afetam subprocessos iniciados com :func:`os.system`, :func:`popen` " @@ -910,11 +905,10 @@ msgid "" "however, calls to :func:`unsetenv` don't update ``os.environ``, so it is " "actually preferable to delete items of ``os.environ``." msgstr "" -"Quando :func:`unsetenv` é suportado, a exclusão de itens em ``os.environ`` é" -" automaticamente traduzida para uma chamada correspondente a " -":func:`unsetenv`; no entanto, chamadas a :func:`unsetenv` não atualizam " -"``os.environ``, por isso, na verdade é preferível excluir itens de " -"``os.environ``." +"Quando :func:`unsetenv` é suportado, a exclusão de itens em ``os.environ`` é " +"automaticamente traduzida para uma chamada correspondente a :func:" +"`unsetenv`; no entanto, chamadas a :func:`unsetenv` não atualizam ``os." +"environ``, por isso, na verdade é preferível excluir itens de ``os.environ``." #: ../../library/os.rst:651 msgid "File Object Creation" @@ -922,8 +916,8 @@ msgstr "Criação de Objetos Files" #: ../../library/os.rst:653 msgid "" -"This function creates new :term:`file objects `. (See also " -":func:`~os.open` for opening file descriptors.)" +"This function creates new :term:`file objects `. (See also :" +"func:`~os.open` for opening file descriptors.)" msgstr "" #: ../../library/os.rst:659 @@ -933,8 +927,8 @@ msgid "" "arguments. The only difference is that the first argument of :func:`fdopen` " "must always be an integer." msgstr "" -"Retorna um objeto de arquivo aberto conectado ao descritor de arquivo *fd*." -" Este é um apelido para a função embutida :func:`open` e aceita os mesmos " +"Retorna um objeto de arquivo aberto conectado ao descritor de arquivo *fd*. " +"Este é um apelido para a função embutida :func:`open` e aceita os mesmos " "argumentos. A única diferença é que o primeiro argumento de :func:`fdopen` " "deve ser sempre um inteiro." @@ -986,8 +980,8 @@ msgstr "Fecha o descritor de arquivo * fd *." msgid "" "This function is intended for low-level I/O and must be applied to a file " "descriptor as returned by :func:`os.open` or :func:`pipe`. To close a " -"\"file object\" returned by the built-in function :func:`open` or by " -":func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method." +"\"file object\" returned by the built-in function :func:`open` or by :func:" +"`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method." msgstr "" "Esta função destina-se a E/S de baixo nível e deve ser aplicada a um " "descritor de arquivo retornado por :func:`os.open` ou :func:`pipe`. Para " @@ -1007,24 +1001,28 @@ msgid "" "Return a string describing the encoding of the device associated with *fd* " "if it is connected to a terminal; else return :const:`None`." msgstr "" -"Retorna uma string descrevendo a codificação do dispositivo associado a *fd*" -" se estiver conectado a um terminal; senão retorna :const:`None`." +"Retorna uma string descrevendo a codificação do dispositivo associado a *fd* " +"se estiver conectado a um terminal; senão retorna :const:`None`." #: ../../library/os.rst:717 msgid "" -"Return a duplicate of file descriptor *fd*. The new file descriptor is :ref" -":`non-inheritable `." +"Return a duplicate of file descriptor *fd*. The new file descriptor is :ref:" +"`non-inheritable `." msgstr "" +"Retorna uma cópia do descritor de arquivo *fd*. O novo descritor de arquivo " +"é :ref:`non-inheritable `." #: ../../library/os.rst:720 msgid "" "On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: " "stderr), the new file descriptor is :ref:`inheritable `." msgstr "" +"No Windows, ao duplicar um fluxo padrão (0: stdin, 1: stdout, 2: stderr), o " +"novo descritor de arquivo é :ref:`inheritable `." #: ../../library/os.rst:724 ../../library/os.rst:914 msgid "The new file descriptor is now non-inheritable." -msgstr "" +msgstr "O novo descritor de arquivo agora é não-hereditário." #: ../../library/os.rst:730 msgid "" @@ -1033,14 +1031,19 @@ msgid "" "` by default or non-inheritable if *inheritable* is " "``False``." msgstr "" +"Duplica o descritor de arquivo *fd* como *fd2*, fechando o último em " +"primeiro lugar, se necessário. Retorna *fd2*. O novo descritor de arquivo é :" +"ref:`inheritable ` por padrão ou não-hereditário se " +"*inheritable* for ``False``." #: ../../library/os.rst:735 msgid "Add the optional *inheritable* parameter." -msgstr "" +msgstr "Adicionar o parâmetro opcional *inheritable*." #: ../../library/os.rst:738 msgid "Return *fd2* on success. Previously, ``None`` was always returned." msgstr "" +"Retorna *fd2* em caso de sucesso. Anteriormente, retornava sempre ``None``." #: ../../library/os.rst:744 msgid "" @@ -1048,43 +1051,63 @@ msgid "" "docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, " "this is equivalent to ``os.chmod(fd, mode)``." msgstr "" +"Altera o modo do arquivo dado por *fd* ao *mode* numérico. Veja a " +"documentação de :func:`chmod` para valores possíveis de *mode*. A partir do " +"Python 3.3, isto é equivalente a ``os.chmod(fd, mode)``." #: ../../library/os.rst:753 msgid "" -"Change the owner and group id of the file given by *fd* to the numeric *uid*" -" and *gid*. To leave one of the ids unchanged, set it to -1. See " -":func:`chown`. As of Python 3.3, this is equivalent to ``os.chown(fd, uid, " -"gid)``." +"Change the owner and group id of the file given by *fd* to the numeric *uid* " +"and *gid*. To leave one of the ids unchanged, set it to -1. See :func:" +"`chown`. As of Python 3.3, this is equivalent to ``os.chown(fd, uid, gid)``." msgstr "" +"Altera o o ID do proprietário e do grupo do arquivo dado por *fd* para o " +"*uid* e *gid* numérico. Para deixar um dos ids inalteradas, defina-o como " +"-1. Veja :func:`chown`. A partir do Python 3.3, isto é equivalente a ``os." +"chown(fd, uid, gid)``." #: ../../library/os.rst:763 msgid "" "Force write of file with filedescriptor *fd* to disk. Does not force update " "of metadata." msgstr "" +"Força de gravação de arquivo com descritor de arquivo *fd* no disco. Não " +"força a atualização de metadados." #: ../../library/os.rst:769 msgid "This function is not available on MacOS." -msgstr "" +msgstr "Esta função não está disponível no MacOS." #: ../../library/os.rst:774 msgid "" "Return system configuration information relevant to an open file. *name* " "specifies the configuration value to retrieve; it may be a string which is " -"the name of a defined system value; these names are specified in a number of" -" standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define " +"the name of a defined system value; these names are specified in a number of " +"standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define " "additional names as well. The names known to the host operating system are " -"given in the ``pathconf_names`` dictionary. For configuration variables not" -" included in that mapping, passing an integer for *name* is also accepted." +"given in the ``pathconf_names`` dictionary. For configuration variables not " +"included in that mapping, passing an integer for *name* is also accepted." msgstr "" +"Retorna informações de configuração de sistema relevantes para um arquivo " +"aberto. *name* especifica o valor de configuração para recuperar; pode ser " +"uma string que é o nome de um valor do sistema definido; estes nomes são " +"especificados em uma série de padrões (POSIX.1, Unix 95, Unix 98 e outros). " +"Algumas plataformas definem nomes adicionais também. Os nomes conhecidos do " +"sistema operacional hospedeiro são dadas no dicionário ``pathconf_names``. " +"Para variáveis ​​de configuração não incluídas neste mapeamento, também é " +"aceito passar um número inteiro para *name*." #: ../../library/os.rst:782 ../../library/os.rst:1964 msgid "" "If *name* is a string and is not known, :exc:`ValueError` is raised. If a " -"specific value for *name* is not supported by the host system, even if it is" -" included in ``pathconf_names``, an :exc:`OSError` is raised with " -":const:`errno.EINVAL` for the error number." +"specific value for *name* is not supported by the host system, even if it is " +"included in ``pathconf_names``, an :exc:`OSError` is raised with :const:" +"`errno.EINVAL` for the error number." msgstr "" +"Se *name* for uma string e não for conhecida, :exc:`ValueError` é gerado. Se " +"um valor específico para *name* não for compatível com o sistema de host, " +"mesmo que seja incluído no ``pathconf_names``, um erro :exc:`OSError` é " +"gerado com :const:`errno.EINVAL` como número do erro." #: ../../library/os.rst:787 msgid "As of Python 3.3, this is equivalent to ``os.pathconf(fd, name)``." @@ -1095,6 +1118,8 @@ msgid "" "Get the status of the file descriptor *fd*. Return a :class:`stat_result` " "object." msgstr "" +"Captura o status do descritor de arquivo *fd*. Retorna um objeto :class:" +"`stat_result`." #: ../../library/os.rst:797 msgid "As of Python 3.3, this is equivalent to ``os.stat(fd)``." @@ -1110,6 +1135,9 @@ msgid "" "file descriptor *fd*, like :func:`statvfs`. As of Python 3.3, this is " "equivalent to ``os.statvfs(fd)``." msgstr "" +"Retorna informações sobre o sistema de arquivos que contém o arquivo " +"associado com descritor de arquivo *fd*, como :func:`statvfs`. A partir do " +"Python 3.3, isso equivale a ``os.statvfs(fd)``." #: ../../library/os.rst:815 msgid "" @@ -1117,6 +1145,9 @@ msgid "" "the native :c:func:`fsync` function; on Windows, the MS :c:func:`_commit` " "function." msgstr "" +"Gravação à força no disco de arquivo com descritor de arquivo *fd*. No Unix, " +"isto chama a função nativa :c:func:`fsync`; no Windows, a função de MS :c:" +"func:`_commit`." #: ../../library/os.rst:818 msgid "" @@ -1124,13 +1155,20 @@ msgid "" "``f.flush()``, and then do ``os.fsync(f.fileno())``, to ensure that all " "internal buffers associated with *f* are written to disk." msgstr "" +"Se você estiver começando com buffer no Python :term:`file object` *f*, " +"primeiro use ``f.flush()``, e depois use ``os.fsync(f.fileno())``, para " +"garantir que todos os buffers internos associados com *f* sejam gravados no " +"disco." #: ../../library/os.rst:827 msgid "" "Truncate the file corresponding to file descriptor *fd*, so that it is at " -"most *length* bytes in size. As of Python 3.3, this is equivalent to " -"``os.truncate(fd, length)``." +"most *length* bytes in size. As of Python 3.3, this is equivalent to ``os." +"truncate(fd, length)``." msgstr "" +"Trunca o arquivo correspondente ao descritor de arquivo *fd*, de modo que " +"tenha no máximo *length* bytes de tamanho. A partir do Python 3.3, isto é " +"equivalente a ``os.truncate(fd, length)``." #: ../../library/os.rst:833 ../../library/os.rst:2761 msgid "Added support for Windows" @@ -1138,27 +1176,35 @@ msgstr "Adicionado suporte para o Windows." #: ../../library/os.rst:838 msgid "" -"Get the blocking mode of the file descriptor: ``False`` if the " -":data:`O_NONBLOCK` flag is set, ``True`` if the flag is cleared." +"Get the blocking mode of the file descriptor: ``False`` if the :data:" +"`O_NONBLOCK` flag is set, ``True`` if the flag is cleared." msgstr "" +"Obtém o modo de bloqueio do descritor de arquivo: ``False`` se o flag :data:" +"`O_NONBLOCK` estiver marcado, ``True`` se o flag estiver desmarcado." #: ../../library/os.rst:841 msgid "See also :func:`set_blocking` and :meth:`socket.socket.setblocking`." -msgstr "" +msgstr "Veja também :func:`set_blocking` e :meth:`socket.socket.setblocking`." #: ../../library/os.rst:849 msgid "" -"Return ``True`` if the file descriptor *fd* is open and connected to a " -"tty(-like) device, else ``False``." +"Return ``True`` if the file descriptor *fd* is open and connected to a tty(-" +"like) device, else ``False``." msgstr "" +"Retorna ``True`` se o descritor de arquivo *fd* estiver aberto e conectado a " +"um dispositivo do tipo tty, senão ``False``." #: ../../library/os.rst:855 msgid "" "Apply, test or remove a POSIX lock on an open file descriptor. *fd* is an " -"open file descriptor. *cmd* specifies the command to use - one of " -":data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* " +"open file descriptor. *cmd* specifies the command to use - one of :data:" +"`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* " "specifies the section of the file to lock." msgstr "" +"Aplica, testa ou remove um bloqueio POSIX em um descritor de arquivo aberto. " +"*fd* é um descritor de arquivo aberto. *cmd* especifica o comando a ser " +"usado - um dentre :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` ou :data:" +"`F_TEST`. *len* especifica a seção do arquivo a ser bloqueada." #: ../../library/os.rst:871 msgid "Flags that specify what action :func:`lockf` will take." @@ -1166,105 +1212,139 @@ msgstr "Flags que especificam qual ação :func:`lockf` vai realizar." #: ../../library/os.rst:880 msgid "" -"Set the current position of file descriptor *fd* to position *pos*, modified" -" by *how*: :const:`SEEK_SET` or ``0`` to set the position relative to the " +"Set the current position of file descriptor *fd* to position *pos*, modified " +"by *how*: :const:`SEEK_SET` or ``0`` to set the position relative to the " "beginning of the file; :const:`SEEK_CUR` or ``1`` to set it relative to the " "current position; :const:`SEEK_END` or ``2`` to set it relative to the end " "of the file. Return the new cursor position in bytes, starting from the " "beginning." msgstr "" +"Define a posição atual do descritor de arquivo *fd* para a posição *pos*, " +"modificada por *how*: :const:`SEEK_SET` ou ``0`` para definir a posição em " +"relação ao início do arquivo; :const:`SEEK_CUR` ou ``1`` para defini-la em " +"relação à posição atual; :const:`SEEK_END` ou ``2`` para defini-la em " +"relação ao final do arquivo. Retorna a nova posição do cursor em bytes, a " +"partir do início." #: ../../library/os.rst:891 msgid "" "Parameters to the :func:`lseek` function. Their values are 0, 1, and 2, " "respectively." msgstr "" +"Parâmetros para a function :func:`lseek`. Seus valores são respectivamente " +"0, 1, e 2." #: ../../library/os.rst:894 msgid "" -"Some operating systems could support additional values, like " -":data:`os.SEEK_HOLE` or :data:`os.SEEK_DATA`." +"Some operating systems could support additional values, like :data:`os." +"SEEK_HOLE` or :data:`os.SEEK_DATA`." msgstr "" +"Alguns sistemas operacionais podem suportar valores adicionais, como :data:" +"`os.SEEK_HOLE` ou :data:`os.SEEK_DATA`." #: ../../library/os.rst:901 msgid "" -"Open the file *path* and set various flags according to *flags* and possibly" -" its mode according to *mode*. When computing *mode*, the current umask " +"Open the file *path* and set various flags according to *flags* and possibly " +"its mode according to *mode*. When computing *mode*, the current umask " "value is first masked out. Return the file descriptor for the newly opened " "file. The new file descriptor is :ref:`non-inheritable `." msgstr "" +"Abre o arquivo *path* e define várias flags de acordo com *flags* e, " +"possivelmente, seu modo, de acordo com *mode*. Ao computar *mode*, o valor " +"atual de umask é iniciar com máscara. Retorna o descritor de arquivo para o " +"arquivo recém-aberto. O novo descritor de arquivo é :ref:`non-inheritable " +"`." #: ../../library/os.rst:906 msgid "" "For a description of the flag and mode values, see the C run-time " -"documentation; flag constants (like :const:`O_RDONLY` and :const:`O_WRONLY`)" -" are defined in the :mod:`os` module. In particular, on Windows adding " -":const:`O_BINARY` is needed to open files in binary mode." +"documentation; flag constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) " +"are defined in the :mod:`os` module. In particular, on Windows adding :" +"const:`O_BINARY` is needed to open files in binary mode." msgstr "" +"Para ler uma descrição dos valores de flags e modos, veja a documentação de " +"tempo de execução C; constantes de flag (como :const:`O_RDONLY` e :const:" +"`O_WRONLY`) são definidas no módulo :mod:`os`. Em particular, no Windows é " +"necessário adicionar :const:`O_BINARY` para abrir arquivos em modo binário." #: ../../library/os.rst:911 msgid "" "This function can support :ref:`paths relative to directory descriptors " "` with the *dir_fd* parameter." msgstr "" +"Esta função pode suportar :ref:`paths relative to directory descriptors " +"` com o parâmetro *dir_fd*." #: ../../library/os.rst:919 msgid "" "This function is intended for low-level I/O. For normal usage, use the " -"built-in function :func:`open`, which returns a :term:`file object` with " -":meth:`~file.read` and :meth:`~file.write` methods (and many more). To wrap" -" a file descriptor in a file object, use :func:`fdopen`." -msgstr "" - -#: ../../library/os.rst:924 ../../library/os.rst:1842 -#: ../../library/os.rst:1908 ../../library/os.rst:1930 -#: ../../library/os.rst:2007 ../../library/os.rst:2028 +"built-in function :func:`open`, which returns a :term:`file object` with :" +"meth:`~file.read` and :meth:`~file.write` methods (and many more). To wrap " +"a file descriptor in a file object, use :func:`fdopen`." +msgstr "" +"Esta função é destinada a E/S de baixo nível. Para uso normal, use a função " +"embutida :func:`open`, que retorna um :term:`file object` com os métodos :" +"meth:`~file.read` e :meth:`~file.write` (e muitos mais). Para envolver um " +"descritor de arquivo em um objeto de arquivo, use :func:`fdopen`." + +#: ../../library/os.rst:924 ../../library/os.rst:1842 ../../library/os.rst:1908 +#: ../../library/os.rst:1930 ../../library/os.rst:2007 +#: ../../library/os.rst:2028 msgid "The *dir_fd* argument." -msgstr "" +msgstr "O argumento *dir_fd*." -#: ../../library/os.rst:927 ../../library/os.rst:1219 -#: ../../library/os.rst:1342 ../../library/os.rst:3708 +#: ../../library/os.rst:927 ../../library/os.rst:1219 ../../library/os.rst:1342 +#: ../../library/os.rst:3706 msgid "" "If the system call is interrupted and the signal handler does not raise an " -"exception, the function now retries the system call instead of raising an " -":exc:`InterruptedError` exception (see :pep:`475` for the rationale)." -msgstr "" - -#: ../../library/os.rst:932 ../../library/os.rst:1546 -#: ../../library/os.rst:1576 ../../library/os.rst:1605 -#: ../../library/os.rst:1649 ../../library/os.rst:1681 -#: ../../library/os.rst:1712 ../../library/os.rst:1725 -#: ../../library/os.rst:1736 ../../library/os.rst:1789 -#: ../../library/os.rst:1845 ../../library/os.rst:1884 -#: ../../library/os.rst:1911 ../../library/os.rst:1933 -#: ../../library/os.rst:1974 ../../library/os.rst:2010 -#: ../../library/os.rst:2031 ../../library/os.rst:2048 -#: ../../library/os.rst:2126 ../../library/os.rst:2383 -#: ../../library/os.rst:2612 ../../library/os.rst:2764 -#: ../../library/os.rst:2778 ../../library/os.rst:2818 -#: ../../library/os.rst:2911 ../../library/os.rst:2970 -#: ../../library/os.rst:3008 ../../library/os.rst:3149 -#: ../../library/os.rst:3495 +"exception, the function now retries the system call instead of raising an :" +"exc:`InterruptedError` exception (see :pep:`475` for the rationale)." +msgstr "" +"Se a chamada de sistema é interrompida e o tratador de sinal não levanta uma " +"exceção, a função agora tenta novamente a chamada de sistema em vez de " +"levantar uma exceção :exc:`InterruptedError` (consulte :pep:`475` para " +"entender a lógica)." + +#: ../../library/os.rst:932 ../../library/os.rst:1546 ../../library/os.rst:1576 +#: ../../library/os.rst:1605 ../../library/os.rst:1649 +#: ../../library/os.rst:1681 ../../library/os.rst:1712 +#: ../../library/os.rst:1725 ../../library/os.rst:1736 +#: ../../library/os.rst:1789 ../../library/os.rst:1845 +#: ../../library/os.rst:1884 ../../library/os.rst:1911 +#: ../../library/os.rst:1933 ../../library/os.rst:1974 +#: ../../library/os.rst:2010 ../../library/os.rst:2031 +#: ../../library/os.rst:2048 ../../library/os.rst:2126 +#: ../../library/os.rst:2383 ../../library/os.rst:2612 +#: ../../library/os.rst:2764 ../../library/os.rst:2778 +#: ../../library/os.rst:2818 ../../library/os.rst:2911 +#: ../../library/os.rst:2970 ../../library/os.rst:3008 +#: ../../library/os.rst:3149 ../../library/os.rst:3495 msgid "Accepts a :term:`path-like object`." -msgstr "" +msgstr "Aceita um :term:`path-like object`." #: ../../library/os.rst:935 msgid "" -"The following constants are options for the *flags* parameter to the " -":func:`~os.open` function. They can be combined using the bitwise OR " -"operator ``|``. Some of them are not available on all platforms. For " -"descriptions of their availability and use, consult the :manpage:`open(2)` " -"manual page on Unix or `the MSDN `_ on Windows." +"The following constants are options for the *flags* parameter to the :func:" +"`~os.open` function. They can be combined using the bitwise OR operator ``|" +"``. Some of them are not available on all platforms. For descriptions of " +"their availability and use, consult the :manpage:`open(2)` manual page on " +"Unix or `the MSDN `_ " +"on Windows." msgstr "" +"As seguintes constantes são opções para o parâmetro *flags* da função :func:" +"`~os.open`. Elas podem ser combinadas usando o operador bitwise OR ``|``. " +"Algumas delas não estão disponíveis em todas as plataformas. Para obter " +"descrições de sua disponibilidade e uso, consulte a página do manual :" +"manpage:`open(2)` no Unix ou `the MSDN `_ no Windows." #: ../../library/os.rst:950 msgid "The above constants are available on Unix and Windows." -msgstr "" +msgstr "As constantes acima estão disponíveis no Unix e Windows." #: ../../library/os.rst:961 msgid "The above constants are only available on Unix." -msgstr "" +msgstr "As constantes acima estão disponíveis apenas no Unix." #: ../../library/os.rst:963 msgid "Add :data:`O_CLOEXEC` constant." @@ -1279,12 +1359,16 @@ msgid "" "The above constants are extensions and not present if they are not defined " "by the C library." msgstr "" +"As constantes acima são extensões e não estarão presentes, se não forem " +"definidos pela biblioteca C." #: ../../library/os.rst:990 msgid "" "Add :data:`O_PATH` on systems that support it. Add :data:`O_TMPFILE`, only " "available on Linux Kernel 3.11 or newer." msgstr "" +"Adiciona :data:`O_PATH` em sistemas que suportam. Adiciona :data:" +"`O_TMPFILE`, só está disponível em Linux Kernel 3.11 ou mais recente." #: ../../library/os.rst:1000 msgid "" @@ -1293,15 +1377,19 @@ msgid "" "descriptors are :ref:`non-inheritable `. For a (slightly) " "more portable approach, use the :mod:`pty` module." msgstr "" +"Abrir um novo par de pseudo-terminal. Retorna um par de descritores de " +"arquivos ``(master, slave)`` para o pty e o tty, respectivamente. Os novos " +"descritores de arquivos são :ref:`non-inheritable `. Para " +"uma abordagem (ligeiramente) mais portátil, use o módulo :mod:`pty`." #: ../../library/os.rst:1006 ../../library/os.rst:1032 #: ../../library/os.rst:3322 msgid ":ref:`Availability `: some flavors of Unix." -msgstr "" +msgstr ":ref:`Availability `: alguns tipos de Unix." #: ../../library/os.rst:1007 ../../library/os.rst:1019 msgid "The new file descriptors are now non-inheritable." -msgstr "" +msgstr "Os novos descritores de arquivos agora são não-herdáveis." #: ../../library/os.rst:1013 msgid "" @@ -1309,76 +1397,108 @@ msgid "" "reading and writing, respectively. The new file descriptor is :ref:`non-" "inheritable `." msgstr "" +"Cria um encadeamento. Retorna um par de descritores de arquivos ``(r, w)`` " +"usáveis para leitura e escrita, respectivamente. O novo descritor de arquivo " +"é :ref:`non-inheritable `." #: ../../library/os.rst:1025 msgid "" "Create a pipe with *flags* set atomically. *flags* can be constructed by " -"ORing together one or more of these values: :data:`O_NONBLOCK`, " -":data:`O_CLOEXEC`. Return a pair of file descriptors ``(r, w)`` usable for " -"reading and writing, respectively." +"ORing together one or more of these values: :data:`O_NONBLOCK`, :data:" +"`O_CLOEXEC`. Return a pair of file descriptors ``(r, w)`` usable for reading " +"and writing, respectively." msgstr "" +"Cria um canal com *flags* definidos atomicamente. *flags* podem ser " +"construídos por ORing junto a um ou mais destes valores: :data:" +"`O_NONBLOCK`, :data:`O_CLOEXEC`. Retorna um par de descritores de arquivo " +"``(r, w)`` utilizáveis para leitura e gravação, respectivamente." #: ../../library/os.rst:1038 msgid "" "Ensures that enough disk space is allocated for the file specified by *fd* " "starting from *offset* and continuing for *len* bytes." msgstr "" +"Garante que espaço em disco suficiente seja alocado para o arquivo " +"especificado por *fd* iniciando em *offset* e continuando por *len* bytes." #: ../../library/os.rst:1048 msgid "" "Announces an intention to access data in a specific pattern thus allowing " "the kernel to make optimizations. The advice applies to the region of the " "file specified by *fd* starting at *offset* and continuing for *len* bytes. " -"*advice* is one of :data:`POSIX_FADV_NORMAL`, :data:`POSIX_FADV_SEQUENTIAL`," -" :data:`POSIX_FADV_RANDOM`, :data:`POSIX_FADV_NOREUSE`, " -":data:`POSIX_FADV_WILLNEED` or :data:`POSIX_FADV_DONTNEED`." -msgstr "" +"*advice* is one of :data:`POSIX_FADV_NORMAL`, :data:" +"`POSIX_FADV_SEQUENTIAL`, :data:`POSIX_FADV_RANDOM`, :data:" +"`POSIX_FADV_NOREUSE`, :data:`POSIX_FADV_WILLNEED` or :data:" +"`POSIX_FADV_DONTNEED`." +msgstr "" +"Anuncia a intenção de acessar dados em um padrão específico, permitindo " +"assim que o kernel faça otimizações. O aviso se aplica à região do arquivo " +"especificado por *fd*, iniciando em *offset* e continuando por *len* bytes. " +"*advice* é um entre :data:`POSIX_FADV_NORMAL`, :data:" +"`POSIX_FADV_SEQUENTIAL`, :data:`POSIX_FADV_RANDOM`, :data:" +"`POSIX_FADV_NOREUSE`, :data:`POSIX_FADV_WILLNEED` ou :data:" +"`POSIX_FADV_DONTNEED`." #: ../../library/os.rst:1068 msgid "" -"Flags that can be used in *advice* in :func:`posix_fadvise` that specify the" -" access pattern that is likely to be used." +"Flags that can be used in *advice* in :func:`posix_fadvise` that specify the " +"access pattern that is likely to be used." msgstr "" +"Sinalizadores que podem ser usados em *advice* em :func:`posix_fadvise` que " +"especificam o padrão de acesso que provavelmente será usado." #: ../../library/os.rst:1078 msgid "" "Read at most *n* bytes from file descriptor *fd* at a position of *offset*, " "leaving the file offset unchanged." msgstr "" +"Lê no máximo *n* bytes do descritor de arquivo *fd* na posição *offset*, " +"mantendo o deslocamento do arquivo inalterado." #: ../../library/os.rst:1081 ../../library/os.rst:1208 msgid "" "Return a bytestring containing the bytes read. If the end of the file " "referred to by *fd* has been reached, an empty bytes object is returned." msgstr "" +"Retorna uma bytestring contendo os bytes lidos. Se o final do arquivo " +"referido por *fd* for atingido, um objeto de bytes vazios será retornado." #: ../../library/os.rst:1091 msgid "" -"Read from a file descriptor *fd* at a position of *offset* into mutable " -":term:`bytes-like objects ` *buffers*, leaving the file " +"Read from a file descriptor *fd* at a position of *offset* into mutable :" +"term:`bytes-like objects ` *buffers*, leaving the file " "offset unchanged. Transfer data into each buffer until it is full and then " "move on to the next buffer in the sequence to hold the rest of the data." msgstr "" +"Lê de um descritor de arquivo *fd* na posição de *offset* em *buffers* " +"mutáveis de :term:`objetos do tipo bytes `, deixando o " +"deslocamento do arquivo inalterado. Transfire os dados para cada buffer até " +"ficar cheio e depois passa para o próximo buffer na sequência para armazenar " +"o restante dos dados." #: ../../library/os.rst:1096 ../../library/os.rst:1165 msgid "" "The flags argument contains a bitwise OR of zero or more of the following " "flags:" msgstr "" +"O argumento *flags* contém um OR bit a bit de zero ou mais dos seguintes " +"sinalizadores:" #: ../../library/os.rst:1099 msgid ":data:`RWF_HIPRI`" -msgstr "" +msgstr ":data:`RWF_HIPRI`" #: ../../library/os.rst:1100 msgid ":data:`RWF_NOWAIT`" -msgstr "" +msgstr ":data:`RWF_NOWAIT`" #: ../../library/os.rst:1102 ../../library/os.rst:1292 msgid "" "Return the total number of bytes actually read which can be less than the " "total capacity of all the objects." msgstr "" +"Retorna o número total de bytes realmente lidos, que pode ser menor que a " +"capacidade total de todos os objetos." #: ../../library/os.rst:1105 ../../library/os.rst:1173 #: ../../library/os.rst:1295 ../../library/os.rst:1357 @@ -1386,16 +1506,21 @@ msgid "" "The operating system may set a limit (:func:`sysconf` value " "``'SC_IOV_MAX'``) on the number of buffers that can be used." msgstr "" +"O sistema operacional pode definir um limite (:func:`sysconf` valor " +"``'SC_IOV_MAX'``) no número de buffers que podem ser usados." #: ../../library/os.rst:1108 msgid "Combine the functionality of :func:`os.readv` and :func:`os.pread`." -msgstr "" +msgstr "Combina a funcionalidade de :func:`os.readv` e :func:`os.pread`." #: ../../library/os.rst:1112 msgid "" ":ref:`Availability `: Linux 2.6.30 and newer, FreeBSD 6.0 and " "newer, OpenBSD 2.7 and newer. Using flags requires Linux 4.6 or newer." msgstr "" +":ref:`Disponibilidade `: Linux 2.6.30 e posterior, FreeBSD 6.0 " +"e posterior, OpenBSD 2.7 e posterior. O use de sinalizadores requer Linux " +"4.6 ou posterior." #: ../../library/os.rst:1118 msgid "" @@ -1403,68 +1528,88 @@ msgid "" "specified, the system call will return instantly if it would have to read " "data from the backing storage or wait for a lock." msgstr "" +"Não aguarda por dados que não estão disponíveis imediatamente. Se esse " +"sinalizador for especificado, a chamada do sistema retorna instantaneamente " +"se for necessário ler dados do armazenamento de backup ou aguarda um " +"bloqueio." #: ../../library/os.rst:1122 msgid "" -"If some data was successfully read, it will return the number of bytes read." -" If no bytes were read, it will return ``-1`` and set errno to " -":data:`errno.EAGAIN`." +"If some data was successfully read, it will return the number of bytes read. " +"If no bytes were read, it will return ``-1`` and set errno to :data:`errno." +"EAGAIN`." msgstr "" +"Se alguns dados foram lidos com sucesso, ele retorna o número de bytes " +"lidos. Se nenhum bytes foi lido, ele retornará ``-1`` e definirá errno como :" +"data:`errno.EAGAIN`." #: ../../library/os.rst:1127 msgid ":ref:`Availability `: Linux 4.14 and newer." -msgstr "" +msgstr ":ref:`Availability `: Linux 4.14 e mais novos." #: ../../library/os.rst:1133 msgid "" "High priority read/write. Allows block-based filesystems to use polling of " "the device, which provides lower latency, but may use additional resources." msgstr "" +"Alta prioridade de leitura/gravação. Permite sistemas de arquivos baseados " +"em blocos para usar a consulta do dispositivo, que fornece latência " +"inferior, mas pode usar recursos adicionais." #: ../../library/os.rst:1137 msgid "" -"Currently, on Linux, this feature is usable only on a file descriptor opened" -" using the :data:`O_DIRECT` flag." +"Currently, on Linux, this feature is usable only on a file descriptor opened " +"using the :data:`O_DIRECT` flag." msgstr "" +"Atualmente, no Linux, esse recurso é usável apenas em um descritor de " +"arquivo aberto usando o sinalizador :data:`O_DIRECT`." #: ../../library/os.rst:1141 msgid ":ref:`Availability `: Linux 4.6 and newer." -msgstr "" +msgstr ":ref:`Availability `: Linux 4.6 e mais novos." #: ../../library/os.rst:1147 msgid "" "Write the bytestring in *str* to file descriptor *fd* at position of " "*offset*, leaving the file offset unchanged." msgstr "" +"Lê no máximo *n* bytes do descritor de arquivo *fd* na posição *offset*, " +"mantendo o deslocamento do arquivo inalterado." #: ../../library/os.rst:1150 ../../library/os.rst:1332 msgid "Return the number of bytes actually written." -msgstr "" +msgstr "Retorna o número de bytes realmente escritos." #: ../../library/os.rst:1159 msgid "" "Write the *buffers* contents to file descriptor *fd* at a offset *offset*, " -"leaving the file offset unchanged. *buffers* must be a sequence of :term" -":`bytes-like objects `. Buffers are processed in array " +"leaving the file offset unchanged. *buffers* must be a sequence of :term:" +"`bytes-like objects `. Buffers are processed in array " "order. Entire contents of the first buffer is written before proceeding to " "the second, and so on." msgstr "" +"Escreve o conteúdo de *buffers* no descritor de arquivo *fd* em um " +"deslocamento *offset*, deixando o deslocamento do arquivo inalterado. " +"*buffers* deve ser uma sequência de :term:`objetos bytes ou semelhantes " +"`. Os buffers são processados em ordem de matriz. Todo o " +"conteúdo do primeiro buffer é gravado antes de prosseguir para o segundo, e " +"assim por diante." #: ../../library/os.rst:1168 msgid ":data:`RWF_DSYNC`" -msgstr "" +msgstr ":data:`RWF_DSYNC`" #: ../../library/os.rst:1169 msgid ":data:`RWF_SYNC`" -msgstr "" +msgstr ":data:`RWF_SYNC`" #: ../../library/os.rst:1171 msgid "Return the total number of bytes actually written." -msgstr "" +msgstr "Retorna o número total de bytes realmente escritos." #: ../../library/os.rst:1176 msgid "Combine the functionality of :func:`os.writev` and :func:`os.pwrite`." -msgstr "" +msgstr "Combina a funcionalidade de :func:`os.writev` e :func:`os.pwrite`." #: ../../library/os.rst:1180 msgid "" @@ -1474,13 +1619,13 @@ msgstr "" #: ../../library/os.rst:1186 msgid "" -"Provide a per-write equivalent of the :data:`O_DSYNC` ``open(2)`` flag. This" -" flag effect applies only to the data range written by the system call." +"Provide a per-write equivalent of the :data:`O_DSYNC` ``open(2)`` flag. This " +"flag effect applies only to the data range written by the system call." msgstr "" #: ../../library/os.rst:1190 ../../library/os.rst:1200 msgid ":ref:`Availability `: Linux 4.7 and newer." -msgstr "" +msgstr ":ref:`Disponibilidade `: Linux 4.7 e mais novos." #: ../../library/os.rst:1196 msgid "" @@ -1490,15 +1635,15 @@ msgstr "" #: ../../library/os.rst:1206 msgid "Read at most *n* bytes from file descriptor *fd*." -msgstr "" +msgstr "Lê no máximo *n* bytes do descritor de arquivos *fd*." #: ../../library/os.rst:1213 msgid "" "This function is intended for low-level I/O and must be applied to a file " -"descriptor as returned by :func:`os.open` or :func:`pipe`. To read a \"file" -" object\" returned by the built-in function :func:`open` or by :func:`popen`" -" or :func:`fdopen`, or :data:`sys.stdin`, use its :meth:`~file.read` or " -":meth:`~file.readline` methods." +"descriptor as returned by :func:`os.open` or :func:`pipe`. To read a \"file " +"object\" returned by the built-in function :func:`open` or by :func:`popen` " +"or :func:`fdopen`, or :data:`sys.stdin`, use its :meth:`~file.read` or :meth:" +"`~file.readline` methods." msgstr "" #: ../../library/os.rst:1228 @@ -1510,8 +1655,8 @@ msgstr "" #: ../../library/os.rst:1232 msgid "" -"The first function notation is supported by all platforms that define " -":func:`sendfile`." +"The first function notation is supported by all platforms that define :func:" +"`sendfile`." msgstr "" #: ../../library/os.rst:1235 @@ -1541,20 +1686,20 @@ msgstr "" #: ../../library/os.rst:1248 msgid "" -"Cross-platform applications should not use *headers*, *trailers* and *flags*" -" arguments." +"Cross-platform applications should not use *headers*, *trailers* and *flags* " +"arguments." msgstr "" #: ../../library/os.rst:1255 msgid "" -"For a higher-level wrapper of :func:`sendfile`, see " -":meth:`socket.socket.sendfile`." +"For a higher-level wrapper of :func:`sendfile`, see :meth:`socket.socket." +"sendfile`." msgstr "" #: ../../library/os.rst:1263 msgid "" -"Set the blocking mode of the specified file descriptor. Set the " -":data:`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise." +"Set the blocking mode of the specified file descriptor. Set the :data:" +"`O_NONBLOCK` flag if blocking is ``False``, clear the flag otherwise." msgstr "" #: ../../library/os.rst:1266 @@ -1570,15 +1715,15 @@ msgstr "" #: ../../library/os.rst:1287 msgid "" "Read from a file descriptor *fd* into a number of mutable :term:`bytes-like " -"objects ` *buffers*. Transfer data into each buffer until" -" it is full and then move on to the next buffer in the sequence to hold the " +"objects ` *buffers*. Transfer data into each buffer until " +"it is full and then move on to the next buffer in the sequence to hold the " "rest of the data." msgstr "" #: ../../library/os.rst:1305 msgid "" -"Return the process group associated with the terminal given by *fd* (an open" -" file descriptor as returned by :func:`os.open`)." +"Return the process group associated with the terminal given by *fd* (an open " +"file descriptor as returned by :func:`os.open`)." msgstr "" #: ../../library/os.rst:1313 @@ -1602,15 +1747,15 @@ msgstr "" msgid "" "This function is intended for low-level I/O and must be applied to a file " "descriptor as returned by :func:`os.open` or :func:`pipe`. To write a " -"\"file object\" returned by the built-in function :func:`open` or by " -":func:`popen` or :func:`fdopen`, or :data:`sys.stdout` or " -":data:`sys.stderr`, use its :meth:`~file.write` method." +"\"file object\" returned by the built-in function :func:`open` or by :func:" +"`popen` or :func:`fdopen`, or :data:`sys.stdout` or :data:`sys.stderr`, use " +"its :meth:`~file.write` method." msgstr "" #: ../../library/os.rst:1350 msgid "" -"Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a" -" sequence of :term:`bytes-like objects `. Buffers are " +"Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a " +"sequence of :term:`bytes-like objects `. Buffers are " "processed in array order. Entire contents of the first buffer is written " "before proceeding to the second, and so on." msgstr "" @@ -1621,7 +1766,7 @@ msgstr "" #: ../../library/os.rst:1368 msgid "Querying the size of a terminal" -msgstr "" +msgstr "Consultando o tamanho de um terminal" #: ../../library/os.rst:1374 msgid "" @@ -1631,8 +1776,8 @@ msgstr "" #: ../../library/os.rst:1377 msgid "" -"The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard output)" -" specifies which file descriptor should be queried." +"The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard output) " +"specifies which file descriptor should be queried." msgstr "" #: ../../library/os.rst:1380 @@ -1680,9 +1825,9 @@ msgstr "" #: ../../library/os.rst:1416 msgid "" -"On Windows, non-inheritable handles and file descriptors are closed in child" -" processes, except for standard streams (file descriptors 0, 1 and 2: stdin," -" stdout and stderr), which are always inherited. Using :func:`spawn\\* " +"On Windows, non-inheritable handles and file descriptors are closed in child " +"processes, except for standard streams (file descriptors 0, 1 and 2: stdin, " +"stdout and stderr), which are always inherited. Using :func:`spawn\\* " "` functions, all inheritable handles and all inheritable file " "descriptors are inherited. Using the :mod:`subprocess` module, all file " "descriptors except standard streams are closed, and inheritable handles are " @@ -1690,7 +1835,8 @@ msgid "" msgstr "" #: ../../library/os.rst:1426 -msgid "Get the \"inheritable\" flag of the specified file descriptor (a boolean)." +msgid "" +"Get the \"inheritable\" flag of the specified file descriptor (a boolean)." msgstr "" #: ../../library/os.rst:1430 @@ -1704,7 +1850,7 @@ msgstr "" #: ../../library/os.rst:1436 ../../library/os.rst:1442 #: ../../library/os.rst:3530 ../../library/os.rst:3559 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." #: ../../library/os.rst:1440 msgid "Set the \"inheritable\" flag of the specified handle." @@ -1716,8 +1862,8 @@ msgstr "Arquivos e Diretórios" #: ../../library/os.rst:1450 msgid "" -"On some Unix platforms, many of these functions support one or more of these" -" features:" +"On some Unix platforms, many of these functions support one or more of these " +"features:" msgstr "" #: ../../library/os.rst:1455 @@ -1730,47 +1876,46 @@ msgstr "" #: ../../library/os.rst:1461 msgid "" -"You can check whether or not *path* can be specified as a file descriptor on" -" your platform using :data:`os.supports_fd`. If it is unavailable, using it" -" will raise a :exc:`NotImplementedError`." +"You can check whether or not *path* can be specified as a file descriptor on " +"your platform using :data:`os.supports_fd`. If it is unavailable, using it " +"will raise a :exc:`NotImplementedError`." msgstr "" #: ../../library/os.rst:1465 msgid "" -"If the function also supports *dir_fd* or *follow_symlinks* arguments, it is" -" an error to specify one of those when supplying *path* as a file " -"descriptor." +"If the function also supports *dir_fd* or *follow_symlinks* arguments, it is " +"an error to specify one of those when supplying *path* as a file descriptor." msgstr "" #: ../../library/os.rst:1470 msgid "" -"**paths relative to directory descriptors:** If *dir_fd* is not ``None``, it" -" should be a file descriptor referring to a directory, and the path to " -"operate on should be relative; path will then be relative to that directory." -" If the path is absolute, *dir_fd* is ignored. (For POSIX systems, Python " -"will call the ``...at`` or ``f...at`` version of the function.)" +"**paths relative to directory descriptors:** If *dir_fd* is not ``None``, it " +"should be a file descriptor referring to a directory, and the path to " +"operate on should be relative; path will then be relative to that " +"directory. If the path is absolute, *dir_fd* is ignored. (For POSIX " +"systems, Python will call the ``...at`` or ``f...at`` version of the " +"function.)" msgstr "" #: ../../library/os.rst:1476 msgid "" -"You can check whether or not *dir_fd* is supported on your platform using " -":data:`os.supports_dir_fd`. If it is unavailable, using it will raise a " -":exc:`NotImplementedError`." +"You can check whether or not *dir_fd* is supported on your platform using :" +"data:`os.supports_dir_fd`. If it is unavailable, using it will raise a :exc:" +"`NotImplementedError`." msgstr "" #: ../../library/os.rst:1482 msgid "" "**not following symlinks:** If *follow_symlinks* is ``False``, and the last " "element of the path to operate on is a symbolic link, the function will " -"operate on the symbolic link itself instead of the file the link points to." -" (For POSIX systems, Python will call the ``l...`` version of the " -"function.)" +"operate on the symbolic link itself instead of the file the link points to. " +"(For POSIX systems, Python will call the ``l...`` version of the function.)" msgstr "" #: ../../library/os.rst:1488 msgid "" -"You can check whether or not *follow_symlinks* is supported on your platform" -" using :data:`os.supports_follow_symlinks`. If it is unavailable, using it " +"You can check whether or not *follow_symlinks* is supported on your platform " +"using :data:`os.supports_follow_symlinks`. If it is unavailable, using it " "will raise a :exc:`NotImplementedError`." msgstr "" @@ -1780,10 +1925,10 @@ msgid "" "operations will use the effective uid/gid, therefore this routine can be " "used in a suid/sgid environment to test if the invoking user has the " "specified access to *path*. *mode* should be :const:`F_OK` to test the " -"existence of *path*, or it can be the inclusive OR of one or more of " -":const:`R_OK`, :const:`W_OK`, and :const:`X_OK` to test permissions. Return" -" :const:`True` if access is allowed, :const:`False` if not. See the Unix man" -" page :manpage:`access(2)` for more information." +"existence of *path*, or it can be the inclusive OR of one or more of :const:" +"`R_OK`, :const:`W_OK`, and :const:`X_OK` to test permissions. Return :const:" +"`True` if access is allowed, :const:`False` if not. See the Unix man page :" +"manpage:`access(2)` for more information." msgstr "" #: ../../library/os.rst:1505 @@ -1796,23 +1941,23 @@ msgstr "" msgid "" "If *effective_ids* is ``True``, :func:`access` will perform its access " "checks using the effective uid/gid instead of the real uid/gid. " -"*effective_ids* may not be supported on your platform; you can check whether" -" or not it is available using :data:`os.supports_effective_ids`. If it is " +"*effective_ids* may not be supported on your platform; you can check whether " +"or not it is available using :data:`os.supports_effective_ids`. If it is " "unavailable, using it will raise a :exc:`NotImplementedError`." msgstr "" #: ../../library/os.rst:1516 msgid "" "Using :func:`access` to check if a user is authorized to e.g. open a file " -"before actually doing so using :func:`open` creates a security hole, because" -" the user might exploit the short time interval between checking and opening" -" the file to manipulate it. It's preferable to use :term:`EAFP` techniques. " +"before actually doing so using :func:`open` creates a security hole, because " +"the user might exploit the short time interval between checking and opening " +"the file to manipulate it. It's preferable to use :term:`EAFP` techniques. " "For example::" msgstr "" #: ../../library/os.rst:1527 msgid "is better written as::" -msgstr "" +msgstr "É melhor escrito como::" #: ../../library/os.rst:1539 msgid "" @@ -1844,9 +1989,8 @@ msgstr "" #: ../../library/os.rst:1569 msgid "" -"This function can raise :exc:`OSError` and subclasses such as " -":exc:`FileNotFoundError`, :exc:`PermissionError`, and " -":exc:`NotADirectoryError`." +"This function can raise :exc:`OSError` and subclasses such as :exc:" +"`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`." msgstr "" #: ../../library/os.rst:1572 @@ -1857,8 +2001,8 @@ msgstr "" #: ../../library/os.rst:1582 msgid "" "Set the flags of *path* to the numeric *flags*. *flags* may take a " -"combination (bitwise OR) of the following values (as defined in the " -":mod:`stat` module):" +"combination (bitwise OR) of the following values (as defined in the :mod:" +"`stat` module):" msgstr "" #: ../../library/os.rst:1585 @@ -2004,8 +2148,8 @@ msgstr ":data:`stat.S_IXOTH`" #: ../../library/os.rst:1635 ../../library/os.rst:1658 #: ../../library/os.rst:2810 msgid "" -"This function can support :ref:`specifying a file descriptor `, " -":ref:`paths relative to directory descriptors ` and :ref:`not " +"This function can support :ref:`specifying a file descriptor `, :" +"ref:`paths relative to directory descriptors ` and :ref:`not " "following symlinks `." msgstr "" @@ -2046,13 +2190,13 @@ msgstr "Suporta um :term:`path-like object`." #: ../../library/os.rst:1677 msgid "Change the root directory of the current process to *path*." -msgstr "" +msgstr "Altere o diretório raiz do processo atual para *path*" #: ../../library/os.rst:1687 msgid "" "Change the current working directory to the directory represented by the " -"file descriptor *fd*. The descriptor must refer to an opened directory, not" -" an open file. As of Python 3.3, this is equivalent to ``os.chdir(fd)``." +"file descriptor *fd*. The descriptor must refer to an opened directory, not " +"an open file. As of Python 3.3, this is equivalent to ``os.chdir(fd)``." msgstr "" #: ../../library/os.rst:1696 @@ -2065,17 +2209,17 @@ msgstr "" #: ../../library/os.rst:1706 msgid "" -"Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do" -" not follow symbolic links. As of Python 3.3, this is equivalent to " -"``os.chflags(path, flags, follow_symlinks=False)``." +"Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do " +"not follow symbolic links. As of Python 3.3, this is equivalent to ``os." +"chflags(path, flags, follow_symlinks=False)``." msgstr "" #: ../../library/os.rst:1718 msgid "" "Change the mode of *path* to the numeric *mode*. If path is a symlink, this " "affects the symlink rather than the target. See the docs for :func:`chmod` " -"for possible values of *mode*. As of Python 3.3, this is equivalent to " -"``os.chmod(path, mode, follow_symlinks=False)``." +"for possible values of *mode*. As of Python 3.3, this is equivalent to ``os." +"chmod(path, mode, follow_symlinks=False)``." msgstr "" #: ../../library/os.rst:1730 @@ -2092,8 +2236,8 @@ msgstr "" #: ../../library/os.rst:1744 msgid "" "This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to " -"supply :ref:`paths relative to directory descriptors `, and " -":ref:`not following symlinks `." +"supply :ref:`paths relative to directory descriptors `, and :ref:" +"`not following symlinks `." msgstr "" #: ../../library/os.rst:1750 @@ -2102,8 +2246,7 @@ msgstr "" #: ../../library/os.rst:1753 msgid "Added the *src_dir_fd*, *dst_dir_fd*, and *follow_symlinks* arguments." -msgstr "" -"Adiciona os argumentos *src_dir_fd*, *dst_dir_fd* e *follow_symlinks*." +msgstr "Adiciona os argumentos *src_dir_fd*, *dst_dir_fd* e *follow_symlinks*." #: ../../library/os.rst:1756 ../../library/os.rst:1818 #: ../../library/os.rst:2076 ../../library/os.rst:2109 @@ -2153,14 +2296,14 @@ msgstr "" #: ../../library/os.rst:1795 msgid "" "Perform the equivalent of an :c:func:`lstat` system call on the given path. " -"Similar to :func:`~os.stat`, but does not follow symbolic links. Return a " -":class:`stat_result` object." +"Similar to :func:`~os.stat`, but does not follow symbolic links. Return a :" +"class:`stat_result` object." msgstr "" #: ../../library/os.rst:1799 msgid "" -"On platforms that do not support symbolic links, this is an alias for " -":func:`~os.stat`." +"On platforms that do not support symbolic links, this is an alias for :func:" +"`~os.stat`." msgstr "" #: ../../library/os.rst:1802 @@ -2173,8 +2316,8 @@ msgstr "" #: ../../library/os.rst:1897 ../../library/os.rst:1925 #: ../../library/os.rst:1999 msgid "" -"This function can also support :ref:`paths relative to directory descriptors" -" `." +"This function can also support :ref:`paths relative to directory descriptors " +"`." msgstr "" #: ../../library/os.rst:1812 ../../library/os.rst:2004 @@ -2199,14 +2342,14 @@ msgid "" "On some systems, *mode* is ignored. Where it is used, the current umask " "value is first masked out. If bits other than the last 9 (i.e. the last 3 " "digits of the octal representation of the *mode*) are set, their meaning is " -"platform-dependent. On some platforms, they are ignored and you should call" -" :func:`chmod` explicitly to set them." +"platform-dependent. On some platforms, they are ignored and you should " +"call :func:`chmod` explicitly to set them." msgstr "" #: ../../library/os.rst:1839 msgid "" -"It is also possible to create temporary directories; see the :mod:`tempfile`" -" module's :func:`tempfile.mkdtemp` function." +"It is also possible to create temporary directories; see the :mod:`tempfile` " +"module's :func:`tempfile.mkdtemp` function." msgstr "" #: ../../library/os.rst:1855 @@ -2218,8 +2361,8 @@ msgstr "" #: ../../library/os.rst:1858 msgid "" "The *mode* parameter is passed to :func:`mkdir` for creating the leaf " -"directory; see :ref:`the mkdir() description ` for how it is" -" interpreted. To set the file permission bits of any newly-created parent " +"directory; see :ref:`the mkdir() description ` for how it is " +"interpreted. To set the file permission bits of any newly-created parent " "directories you can set the umask before invoking :func:`makedirs`. The " "file permission bits of existing parent directories are not changed." msgstr "" @@ -2232,8 +2375,8 @@ msgstr "" #: ../../library/os.rst:1869 msgid "" -":func:`makedirs` will become confused if the path elements to create include" -" :data:`pardir` (eg. \"..\" on UNIX systems)." +":func:`makedirs` will become confused if the path elements to create " +"include :data:`pardir` (eg. \"..\" on UNIX systems)." msgstr "" #: ../../library/os.rst:1872 @@ -2246,9 +2389,9 @@ msgstr "O parâmetro *exist_ok*." #: ../../library/os.rst:1879 msgid "" -"Before Python 3.4.1, if *exist_ok* was ``True`` and the directory existed, " -":func:`makedirs` would still raise an error if *mode* did not match the mode" -" of the existing directory. Since this behavior was impossible to implement " +"Before Python 3.4.1, if *exist_ok* was ``True`` and the directory existed, :" +"func:`makedirs` would still raise an error if *mode* did not match the mode " +"of the existing directory. Since this behavior was impossible to implement " "safely, it was removed in Python 3.4.1. See :issue:`21082`." msgstr "" @@ -2277,24 +2420,24 @@ msgstr "" #: ../../library/os.rst:1917 msgid "" "Create a filesystem node (file, device special file or named pipe) named " -"*path*. *mode* specifies both the permissions to use and the type of node to" -" be created, being combined (bitwise OR) with one of ``stat.S_IFREG``, " -"``stat.S_IFCHR``, ``stat.S_IFBLK``, and ``stat.S_IFIFO`` (those constants " -"are available in :mod:`stat`). For ``stat.S_IFCHR`` and ``stat.S_IFBLK``, " -"*device* defines the newly created device special file (probably using " -":func:`os.makedev`), otherwise it is ignored." +"*path*. *mode* specifies both the permissions to use and the type of node to " +"be created, being combined (bitwise OR) with one of ``stat.S_IFREG``, ``stat." +"S_IFCHR``, ``stat.S_IFBLK``, and ``stat.S_IFIFO`` (those constants are " +"available in :mod:`stat`). For ``stat.S_IFCHR`` and ``stat.S_IFBLK``, " +"*device* defines the newly created device special file (probably using :func:" +"`os.makedev`), otherwise it is ignored." msgstr "" #: ../../library/os.rst:1939 msgid "" -"Extract the device major number from a raw device number (usually the " -":attr:`st_dev` or :attr:`st_rdev` field from :c:type:`stat`)." +"Extract the device major number from a raw device number (usually the :attr:" +"`st_dev` or :attr:`st_rdev` field from :c:type:`stat`)." msgstr "" #: ../../library/os.rst:1945 msgid "" -"Extract the device minor number from a raw device number (usually the " -":attr:`st_dev` or :attr:`st_rdev` field from :c:type:`stat`)." +"Extract the device minor number from a raw device number (usually the :attr:" +"`st_dev` or :attr:`st_rdev` field from :c:type:`stat`)." msgstr "" #: ../../library/os.rst:1951 @@ -2305,11 +2448,11 @@ msgstr "" msgid "" "Return system configuration information relevant to a named file. *name* " "specifies the configuration value to retrieve; it may be a string which is " -"the name of a defined system value; these names are specified in a number of" -" standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define " +"the name of a defined system value; these names are specified in a number of " +"standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define " "additional names as well. The names known to the host operating system are " -"given in the ``pathconf_names`` dictionary. For configuration variables not" -" included in that mapping, passing an integer for *name* is also accepted." +"given in the ``pathconf_names`` dictionary. For configuration variables not " +"included in that mapping, passing an integer for *name* is also accepted." msgstr "" #: ../../library/os.rst:1969 ../../library/os.rst:2596 @@ -2321,31 +2464,30 @@ msgstr "" #: ../../library/os.rst:1980 msgid "" "Dictionary mapping names accepted by :func:`pathconf` and :func:`fpathconf` " -"to the integer values defined for those names by the host operating system." -" This can be used to determine the set of names known to the system." +"to the integer values defined for those names by the host operating system. " +"This can be used to determine the set of names known to the system." msgstr "" #: ../../library/os.rst:1989 msgid "" "Return a string representing the path to which the symbolic link points. " "The result may be either an absolute or relative pathname; if it is " -"relative, it may be converted to an absolute pathname using " -"``os.path.join(os.path.dirname(path), result)``." +"relative, it may be converted to an absolute pathname using ``os.path." +"join(os.path.dirname(path), result)``." msgstr "" #: ../../library/os.rst:1994 msgid "" -"If the *path* is a string object (directly or indirectly through a " -":class:`PathLike` interface), the result will also be a string object, and " -"the call may raise a UnicodeDecodeError. If the *path* is a bytes object " -"(direct or indirectly), the result will be a bytes object." +"If the *path* is a string object (directly or indirectly through a :class:" +"`PathLike` interface), the result will also be a string object, and the call " +"may raise a UnicodeDecodeError. If the *path* is a bytes object (direct or " +"indirectly), the result will be a bytes object." msgstr "" #: ../../library/os.rst:2016 msgid "" -"Remove (delete) the file *path*. If *path* is a directory, an " -":exc:`IsADirectoryError` is raised. Use :func:`rmdir` to remove " -"directories." +"Remove (delete) the file *path*. If *path* is a directory, an :exc:" +"`IsADirectoryError` is raised. Use :func:`rmdir` to remove directories." msgstr "" #: ../../library/os.rst:2019 ../../library/os.rst:2120 @@ -2377,8 +2519,8 @@ msgid "" "error is raised (which is ignored, because it generally means that a parent " "directory is not empty). For example, ``os.removedirs('foo/bar/baz')`` will " "first remove the directory ``'foo/bar/baz'``, and then remove ``'foo/bar'`` " -"and ``'foo'`` if they are empty. Raises :exc:`OSError` if the leaf directory" -" could not be successfully removed." +"and ``'foo'`` if they are empty. Raises :exc:`OSError` if the leaf directory " +"could not be successfully removed." msgstr "" #: ../../library/os.rst:2054 @@ -2393,8 +2535,8 @@ msgstr "" #: ../../library/os.rst:2059 msgid "" -"On Unix, if *src* is a file and *dst* is a directory or vice-versa, an " -":exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised " +"On Unix, if *src* is a file and *dst* is a directory or vice-versa, an :exc:" +"`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised " "respectively. If both are directories and *dst* is empty, *dst* will be " "silently replaced. If *dst* is a non-empty directory, an :exc:`OSError` is " "raised. If both are files, *dst* it will be replaced silently if the user " @@ -2411,8 +2553,8 @@ msgstr "" #: ../../library/os.rst:2071 msgid "" -"If you want cross-platform overwriting of the destination, use " -":func:`replace`." +"If you want cross-platform overwriting of the destination, use :func:" +"`replace`." msgstr "" #: ../../library/os.rst:2073 @@ -2424,8 +2566,8 @@ msgid "" "Recursive directory or file renaming function. Works like :func:`rename`, " "except creation of any intermediate directories needed to make the new " "pathname good is attempted first. After the rename, directories " -"corresponding to rightmost path segments of the old name will be pruned away" -" using :func:`removedirs`." +"corresponding to rightmost path segments of the old name will be pruned away " +"using :func:`removedirs`." msgstr "" #: ../../library/os.rst:2089 @@ -2440,8 +2582,8 @@ msgstr "" #: ../../library/os.rst:2098 msgid "" -"Rename the file or directory *src* to *dst*. If *dst* is a directory, " -":exc:`OSError` will be raised. If *dst* exists and is a file, it will be " +"Rename the file or directory *src* to *dst*. If *dst* is a directory, :exc:" +"`OSError` will be raised. If *dst* exists and is a file, it will be " "replaced silently if the user has permission. The operation may fail if " "*src* and *dst* are on different filesystems. If successful, the renaming " "will be an atomic operation (this is a POSIX requirement)." @@ -2449,10 +2591,10 @@ msgstr "" #: ../../library/os.rst:2115 msgid "" -"Remove (delete) the directory *path*. If the directory does not exist or is" -" not empty, an :exc:`FileNotFoundError` or an :exc:`OSError` is raised " -"respectively. In order to remove whole directory trees, " -":func:`shutil.rmtree` can be used." +"Remove (delete) the directory *path*. If the directory does not exist or is " +"not empty, an :exc:`FileNotFoundError` or an :exc:`OSError` is raised " +"respectively. In order to remove whole directory trees, :func:`shutil." +"rmtree` can be used." msgstr "" #: ../../library/os.rst:2123 ../../library/os.rst:2775 @@ -2471,21 +2613,20 @@ msgstr "" msgid "" "Using :func:`scandir` instead of :func:`listdir` can significantly increase " "the performance of code that also needs file type or file attribute " -"information, because :class:`os.DirEntry` objects expose this information if" -" the operating system provides it when scanning a directory. All " -":class:`os.DirEntry` methods may perform a system call, but " -":func:`~os.DirEntry.is_dir` and :func:`~os.DirEntry.is_file` usually only " -"require a system call for symbolic links; :func:`os.DirEntry.stat` always " -"requires a system call on Unix but only requires one for symbolic links on " -"Windows." +"information, because :class:`os.DirEntry` objects expose this information if " +"the operating system provides it when scanning a directory. All :class:`os." +"DirEntry` methods may perform a system call, but :func:`~os.DirEntry.is_dir` " +"and :func:`~os.DirEntry.is_file` usually only require a system call for " +"symbolic links; :func:`os.DirEntry.stat` always requires a system call on " +"Unix but only requires one for symbolic links on Windows." msgstr "" #: ../../library/os.rst:2147 msgid "" "*path* may be a :term:`path-like object`. If *path* is of type ``bytes`` " "(directly or indirectly through the :class:`PathLike` interface), the type " -"of the :attr:`~os.DirEntry.name` and :attr:`~os.DirEntry.path` attributes of" -" each :class:`os.DirEntry` will be ``bytes``; in all other circumstances, " +"of the :attr:`~os.DirEntry.name` and :attr:`~os.DirEntry.path` attributes of " +"each :class:`os.DirEntry` will be ``bytes``; in all other circumstances, " "they will be of type ``str``." msgstr "" @@ -2516,30 +2657,26 @@ msgstr "" #: ../../library/os.rst:2182 msgid "" -"On Unix-based systems, :func:`scandir` uses the system's `opendir() " -"`_ " -"and `readdir() " -"`_ " -"functions. On Windows, it uses the Win32 `FindFirstFileW " -"`_ and `FindNextFileW " -"`_ functions." +"On Unix-based systems, :func:`scandir` uses the system's `opendir() `_ and " +"`readdir() `_ functions. On Windows, it uses the Win32 `FindFirstFileW " +"`_ and `FindNextFileW `_ functions." msgstr "" "Em sistemas baseados no Unix, :func:`scandir` utilize o sistema `opendir() " "`_ e " -"as funções `readdir() " -"`_." -" No Windows, será utilizado o Win32 `FindFirstFileW " -"`_ e a função " -"`FindNextFileW `_." +"as funções `readdir() `_. No Windows, será utilizado o Win32 " +"`FindFirstFileW `_ e a função `FindNextFileW `_." #: ../../library/os.rst:2194 msgid "" -"Added support for the :term:`context manager` protocol and the " -":func:`~scandir.close()` method. If a :func:`scandir` iterator is neither " +"Added support for the :term:`context manager` protocol and the :func:" +"`~scandir.close()` method. If a :func:`scandir` iterator is neither " "exhausted nor explicitly closed a :exc:`ResourceWarning` will be emitted in " "its destructor." msgstr "" @@ -2560,25 +2697,25 @@ msgstr "" #: ../../library/os.rst:2211 msgid "" -":func:`scandir` will provide as much of this information as possible without" -" making additional system calls. When a ``stat()`` or ``lstat()`` system " -"call is made, the ``os.DirEntry`` object will cache the result." +":func:`scandir` will provide as much of this information as possible without " +"making additional system calls. When a ``stat()`` or ``lstat()`` system call " +"is made, the ``os.DirEntry`` object will cache the result." msgstr "" #: ../../library/os.rst:2215 msgid "" "``os.DirEntry`` instances are not intended to be stored in long-lived data " "structures; if you know the file metadata has changed or if a long time has " -"elapsed since calling :func:`scandir`, call ``os.stat(entry.path)`` to fetch" -" up-to-date information." +"elapsed since calling :func:`scandir`, call ``os.stat(entry.path)`` to fetch " +"up-to-date information." msgstr "" #: ../../library/os.rst:2220 msgid "" "Because the ``os.DirEntry`` methods can make operating system calls, they " "may also raise :exc:`OSError`. If you need very fine-grained control over " -"errors, you can catch :exc:`OSError` when calling one of the ``os.DirEntry``" -" methods and handle as appropriate." +"errors, you can catch :exc:`OSError` when calling one of the ``os.DirEntry`` " +"methods and handle as appropriate." msgstr "" #: ../../library/os.rst:2225 @@ -2599,25 +2736,25 @@ msgstr "" #: ../../library/os.rst:2235 msgid "" "The :attr:`name` attribute will be ``bytes`` if the :func:`scandir` *path* " -"argument is of type ``bytes`` and ``str`` otherwise. Use " -":func:`~os.fsdecode` to decode byte filenames." +"argument is of type ``bytes`` and ``str`` otherwise. Use :func:`~os." +"fsdecode` to decode byte filenames." msgstr "" #: ../../library/os.rst:2241 msgid "" -"The entry's full path name: equivalent to ``os.path.join(scandir_path, " -"entry.name)`` where *scandir_path* is the :func:`scandir` *path* argument. " -"The path is only absolute if the :func:`scandir` *path* argument was " -"absolute. If the :func:`scandir` *path* argument was a :ref:`file " -"descriptor `, the :attr:`path` attribute is the same as the " -":attr:`name` attribute." +"The entry's full path name: equivalent to ``os.path.join(scandir_path, entry." +"name)`` where *scandir_path* is the :func:`scandir` *path* argument. The " +"path is only absolute if the :func:`scandir` *path* argument was absolute. " +"If the :func:`scandir` *path* argument was a :ref:`file descriptor " +"`, the :attr:`path` attribute is the same as the :attr:`name` " +"attribute." msgstr "" #: ../../library/os.rst:2248 msgid "" "The :attr:`path` attribute will be ``bytes`` if the :func:`scandir` *path* " -"argument is of type ``bytes`` and ``str`` otherwise. Use " -":func:`~os.fsdecode` to decode byte filenames." +"argument is of type ``bytes`` and ``str`` otherwise. Use :func:`~os." +"fsdecode` to decode byte filenames." msgstr "" #: ../../library/os.rst:2254 @@ -2626,29 +2763,28 @@ msgstr "" #: ../../library/os.rst:2256 msgid "" -"The result is cached on the ``os.DirEntry`` object. Use " -"``os.stat(entry.path, follow_symlinks=False).st_ino`` to fetch up-to-date " -"information." +"The result is cached on the ``os.DirEntry`` object. Use ``os.stat(entry." +"path, follow_symlinks=False).st_ino`` to fetch up-to-date information." msgstr "" #: ../../library/os.rst:2260 msgid "" -"On the first, uncached call, a system call is required on Windows but not on" -" Unix." +"On the first, uncached call, a system call is required on Windows but not on " +"Unix." msgstr "" #: ../../library/os.rst:2265 msgid "" "Return ``True`` if this entry is a directory or a symbolic link pointing to " -"a directory; return ``False`` if the entry is or points to any other kind of" -" file, or if it doesn't exist anymore." +"a directory; return ``False`` if the entry is or points to any other kind of " +"file, or if it doesn't exist anymore." msgstr "" #: ../../library/os.rst:2269 msgid "" "If *follow_symlinks* is ``False``, return ``True`` only if this entry is a " -"directory (without following symlinks); return ``False`` if the entry is any" -" other kind of file or if it doesn't exist anymore." +"directory (without following symlinks); return ``False`` if the entry is any " +"other kind of file or if it doesn't exist anymore." msgstr "" #: ../../library/os.rst:2273 @@ -2670,15 +2806,15 @@ msgstr "" #: ../../library/os.rst:2284 ../../library/os.rst:2314 msgid "" -"This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but " -":exc:`FileNotFoundError` is caught and not raised." +"This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but :" +"exc:`FileNotFoundError` is caught and not raised." msgstr "" #: ../../library/os.rst:2289 msgid "" "Return ``True`` if this entry is a file or a symbolic link pointing to a " -"file; return ``False`` if the entry is or points to a directory or other " -"non-file entry, or if it doesn't exist anymore." +"file; return ``False`` if the entry is or points to a directory or other non-" +"file entry, or if it doesn't exist anymore." msgstr "" #: ../../library/os.rst:2293 @@ -2703,8 +2839,8 @@ msgstr "" #: ../../library/os.rst:2306 msgid "" -"The result is cached on the ``os.DirEntry`` object. Call " -":func:`os.path.islink` to fetch up-to-date information." +"The result is cached on the ``os.DirEntry`` object. Call :func:`os.path." +"islink` to fetch up-to-date information." msgstr "" #: ../../library/os.rst:2309 @@ -2731,8 +2867,8 @@ msgstr "" #: ../../library/os.rst:2327 msgid "" -"On Windows, the ``st_ino``, ``st_dev`` and ``st_nlink`` attributes of the " -":class:`stat_result` are always set to zero. Call :func:`os.stat` to get " +"On Windows, the ``st_ino``, ``st_dev`` and ``st_nlink`` attributes of the :" +"class:`stat_result` are always set to zero. Call :func:`os.stat` to get " "these attributes." msgstr "" @@ -2746,24 +2882,24 @@ msgstr "" #: ../../library/os.rst:2335 msgid "" "Note that there is a nice correspondence between several attributes and " -"methods of ``os.DirEntry`` and of :class:`pathlib.Path`. In particular, the" -" ``name`` attribute has the same meaning, as do the ``is_dir()``, " +"methods of ``os.DirEntry`` and of :class:`pathlib.Path`. In particular, the " +"``name`` attribute has the same meaning, as do the ``is_dir()``, " "``is_file()``, ``is_symlink()`` and ``stat()`` methods." msgstr "" #: ../../library/os.rst:2343 msgid "" -"Added support for the :class:`~os.PathLike` interface. Added support for " -":class:`bytes` paths on Windows." +"Added support for the :class:`~os.PathLike` interface. Added support for :" +"class:`bytes` paths on Windows." msgstr "" #: ../../library/os.rst:2350 msgid "" -"Get the status of a file or a file descriptor. Perform the equivalent of a " -":c:func:`stat` system call on the given path. *path* may be specified as " -"either a string or bytes -- directly or indirectly through the " -":class:`PathLike` interface -- or as an open file descriptor. Return a " -":class:`stat_result` object." +"Get the status of a file or a file descriptor. Perform the equivalent of a :" +"c:func:`stat` system call on the given path. *path* may be specified as " +"either a string or bytes -- directly or indirectly through the :class:" +"`PathLike` interface -- or as an open file descriptor. Return a :class:" +"`stat_result` object." msgstr "" #: ../../library/os.rst:2356 @@ -2776,8 +2912,8 @@ msgstr "" #: ../../library/os.rst:3005 ../../library/os.rst:3019 #: ../../library/os.rst:3037 msgid "" -"This function can support :ref:`specifying a file descriptor ` and " -":ref:`not following symlinks `." +"This function can support :ref:`specifying a file descriptor ` and :" +"ref:`not following symlinks `." msgstr "" #: ../../library/os.rst:2364 @@ -2796,9 +2932,9 @@ msgstr "" #: ../../library/os.rst:2389 msgid "" -"Object whose attributes correspond roughly to the members of the " -":c:type:`stat` structure. It is used for the result of :func:`os.stat`, " -":func:`os.fstat` and :func:`os.lstat`." +"Object whose attributes correspond roughly to the members of the :c:type:" +"`stat` structure. It is used for the result of :func:`os.stat`, :func:`os." +"fstat` and :func:`os.lstat`." msgstr "" #: ../../library/os.rst:2393 @@ -2844,8 +2980,8 @@ msgstr "" #: ../../library/os.rst:2427 msgid "" "Size of the file in bytes, if it is a regular file or a symbolic link. The " -"size of a symbolic link is the length of the pathname it contains, without a" -" terminating null byte." +"size of a symbolic link is the length of the pathname it contains, without a " +"terminating null byte." msgstr "" #: ../../library/os.rst:2431 @@ -2891,21 +3027,20 @@ msgstr "" msgid "" "The exact meaning and resolution of the :attr:`st_atime`, :attr:`st_mtime`, " "and :attr:`st_ctime` attributes depend on the operating system and the file " -"system. For example, on Windows systems using the FAT or FAT32 file systems," -" :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` has only " -"1-day resolution. See your operating system documentation for details." +"system. For example, on Windows systems using the FAT or FAT32 file " +"systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` has " +"only 1-day resolution. See your operating system documentation for details." msgstr "" #: ../../library/os.rst:2474 msgid "" -"Similarly, although :attr:`st_atime_ns`, :attr:`st_mtime_ns`, and " -":attr:`st_ctime_ns` are always expressed in nanoseconds, many systems do not" -" provide nanosecond precision. On systems that do provide nanosecond " -"precision, the floating-point object used to store :attr:`st_atime`, " -":attr:`st_mtime`, and :attr:`st_ctime` cannot preserve all of it, and as " -"such will be slightly inexact. If you need the exact timestamps you should " -"always use :attr:`st_atime_ns`, :attr:`st_mtime_ns`, and " -":attr:`st_ctime_ns`." +"Similarly, although :attr:`st_atime_ns`, :attr:`st_mtime_ns`, and :attr:" +"`st_ctime_ns` are always expressed in nanoseconds, many systems do not " +"provide nanosecond precision. On systems that do provide nanosecond " +"precision, the floating-point object used to store :attr:`st_atime`, :attr:" +"`st_mtime`, and :attr:`st_ctime` cannot preserve all of it, and as such will " +"be slightly inexact. If you need the exact timestamps you should always use :" +"attr:`st_atime_ns`, :attr:`st_mtime_ns`, and :attr:`st_ctime_ns`." msgstr "" #: ../../library/os.rst:2483 @@ -2916,8 +3051,8 @@ msgstr "" #: ../../library/os.rst:2488 msgid "" -"Number of 512-byte blocks allocated for file. This may be smaller than " -":attr:`st_size`/512 when the file has holes." +"Number of 512-byte blocks allocated for file. This may be smaller than :attr:" +"`st_size`/512 when the file has holes." msgstr "" #: ../../library/os.rst:2493 @@ -2955,8 +3090,8 @@ msgstr "" #: ../../library/os.rst:2520 msgid "" -"String that uniquely identifies the type of the filesystem that contains the" -" file." +"String that uniquely identifies the type of the filesystem that contains the " +"file." msgstr "" #: ../../library/os.rst:2523 @@ -2982,9 +3117,9 @@ msgstr "" #: ../../library/os.rst:2541 msgid "" "Windows file attributes: ``dwFileAttributes`` member of the " -"``BY_HANDLE_FILE_INFORMATION`` structure returned by " -":c:func:`GetFileInformationByHandle`. See the ``FILE_ATTRIBUTE_*`` constants" -" in the :mod:`stat` module." +"``BY_HANDLE_FILE_INFORMATION`` structure returned by :c:func:" +"`GetFileInformationByHandle`. See the ``FILE_ATTRIBUTE_*`` constants in the :" +"mod:`stat` module." msgstr "" #: ../../library/os.rst:2546 @@ -2997,13 +3132,13 @@ msgstr "" #: ../../library/os.rst:2550 msgid "" "For backward compatibility, a :class:`stat_result` instance is also " -"accessible as a tuple of at least 10 integers giving the most important (and" -" portable) members of the :c:type:`stat` structure, in the order " -":attr:`st_mode`, :attr:`st_ino`, :attr:`st_dev`, :attr:`st_nlink`, " -":attr:`st_uid`, :attr:`st_gid`, :attr:`st_size`, :attr:`st_atime`, " -":attr:`st_mtime`, :attr:`st_ctime`. More items may be added at the end by " -"some implementations. For compatibility with older Python versions, " -"accessing :class:`stat_result` as a tuple always returns integers." +"accessible as a tuple of at least 10 integers giving the most important (and " +"portable) members of the :c:type:`stat` structure, in the order :attr:" +"`st_mode`, :attr:`st_ino`, :attr:`st_dev`, :attr:`st_nlink`, :attr:" +"`st_uid`, :attr:`st_gid`, :attr:`st_size`, :attr:`st_atime`, :attr:" +"`st_mtime`, :attr:`st_ctime`. More items may be added at the end by some " +"implementations. For compatibility with older Python versions, accessing :" +"class:`stat_result` as a tuple always returns integers." msgstr "" #: ../../library/os.rst:2559 @@ -3026,12 +3161,12 @@ msgstr "" #: ../../library/os.rst:2575 msgid "" -"Perform a :c:func:`statvfs` system call on the given path. The return value" -" is an object whose attributes describe the filesystem on the given path, " -"and correspond to the members of the :c:type:`statvfs` structure, namely: " -":attr:`f_bsize`, :attr:`f_frsize`, :attr:`f_blocks`, :attr:`f_bfree`, " -":attr:`f_bavail`, :attr:`f_files`, :attr:`f_ffree`, :attr:`f_favail`, " -":attr:`f_flag`, :attr:`f_namemax`, :attr:`f_fsid`." +"Perform a :c:func:`statvfs` system call on the given path. The return value " +"is an object whose attributes describe the filesystem on the given path, and " +"correspond to the members of the :c:type:`statvfs` structure, namely: :attr:" +"`f_bsize`, :attr:`f_frsize`, :attr:`f_blocks`, :attr:`f_bfree`, :attr:" +"`f_bavail`, :attr:`f_files`, :attr:`f_ffree`, :attr:`f_favail`, :attr:" +"`f_flag`, :attr:`f_namemax`, :attr:`f_fsid`." msgstr "" #: ../../library/os.rst:2582 @@ -3045,14 +3180,14 @@ msgstr "" #: ../../library/os.rst:2587 msgid "" "Additional module-level constants are defined for GNU/glibc based systems. " -"These are :const:`ST_NODEV` (disallow access to device special files), " -":const:`ST_NOEXEC` (disallow program execution), :const:`ST_SYNCHRONOUS` " +"These are :const:`ST_NODEV` (disallow access to device special files), :" +"const:`ST_NOEXEC` (disallow program execution), :const:`ST_SYNCHRONOUS` " "(writes are synced at once), :const:`ST_MANDLOCK` (allow mandatory locks on " -"an FS), :const:`ST_WRITE` (write on file/directory/symlink), " -":const:`ST_APPEND` (append-only file), :const:`ST_IMMUTABLE` (immutable " -"file), :const:`ST_NOATIME` (do not update access times), " -":const:`ST_NODIRATIME` (do not update directory access times), " -":const:`ST_RELATIME` (update atime relative to mtime/ctime)." +"an FS), :const:`ST_WRITE` (write on file/directory/symlink), :const:" +"`ST_APPEND` (append-only file), :const:`ST_IMMUTABLE` (immutable file), :" +"const:`ST_NOATIME` (do not update access times), :const:`ST_NODIRATIME` (do " +"not update directory access times), :const:`ST_RELATIME` (update atime " +"relative to mtime/ctime)." msgstr "" #: ../../library/os.rst:2600 @@ -3061,10 +3196,10 @@ msgstr "" #: ../../library/os.rst:2606 msgid "" -"The :const:`ST_NODEV`, :const:`ST_NOEXEC`, :const:`ST_SYNCHRONOUS`, " -":const:`ST_MANDLOCK`, :const:`ST_WRITE`, :const:`ST_APPEND`, " -":const:`ST_IMMUTABLE`, :const:`ST_NOATIME`, :const:`ST_NODIRATIME`, and " -":const:`ST_RELATIME` constants were added." +"The :const:`ST_NODEV`, :const:`ST_NOEXEC`, :const:`ST_SYNCHRONOUS`, :const:" +"`ST_MANDLOCK`, :const:`ST_WRITE`, :const:`ST_APPEND`, :const:" +"`ST_IMMUTABLE`, :const:`ST_NOATIME`, :const:`ST_NODIRATIME`, and :const:" +"`ST_RELATIME` constants were added." msgstr "" #: ../../library/os.rst:2615 @@ -3073,41 +3208,40 @@ msgstr "" #: ../../library/os.rst:2621 msgid "" -"A :class:`~collections.abc.Set` object indicating which functions in the " -":mod:`os` module permit use of their *dir_fd* parameter. Different " -"platforms provide different functionality, and an option that might work on " -"one might be unsupported on another. For consistency's sakes, functions " -"that support *dir_fd* always allow specifying the parameter, but will raise " -"an exception if the functionality is not actually available." +"A :class:`~collections.abc.Set` object indicating which functions in the :" +"mod:`os` module permit use of their *dir_fd* parameter. Different platforms " +"provide different functionality, and an option that might work on one might " +"be unsupported on another. For consistency's sakes, functions that support " +"*dir_fd* always allow specifying the parameter, but will raise an exception " +"if the functionality is not actually available." msgstr "" #: ../../library/os.rst:2628 msgid "" "To check whether a particular function permits use of its *dir_fd* " "parameter, use the ``in`` operator on ``supports_dir_fd``. As an example, " -"this expression determines whether the *dir_fd* parameter of :func:`os.stat`" -" is locally available::" +"this expression determines whether the *dir_fd* parameter of :func:`os.stat` " +"is locally available::" msgstr "" #: ../../library/os.rst:2635 msgid "" -"Currently *dir_fd* parameters only work on Unix platforms; none of them work" -" on Windows." +"Currently *dir_fd* parameters only work on Unix platforms; none of them work " +"on Windows." msgstr "" #: ../../library/os.rst:2643 msgid "" -"A :class:`~collections.abc.Set` object indicating which functions in the " -":mod:`os` module permit use of the *effective_ids* parameter for " -":func:`os.access`. If the local platform supports it, the collection will " -"contain :func:`os.access`, otherwise it will be empty." +"A :class:`~collections.abc.Set` object indicating which functions in the :" +"mod:`os` module permit use of the *effective_ids* parameter for :func:`os." +"access`. If the local platform supports it, the collection will contain :" +"func:`os.access`, otherwise it will be empty." msgstr "" #: ../../library/os.rst:2648 msgid "" -"To check whether you can use the *effective_ids* parameter for " -":func:`os.access`, use the ``in`` operator on ``supports_effective_ids``, " -"like so::" +"To check whether you can use the *effective_ids* parameter for :func:`os." +"access`, use the ``in`` operator on ``supports_effective_ids``, like so::" msgstr "" #: ../../library/os.rst:2654 @@ -3118,30 +3252,29 @@ msgstr "" #: ../../library/os.rst:2662 msgid "" -"A :class:`~collections.abc.Set` object indicating which functions in the " -":mod:`os` module permit specifying their *path* parameter as an open file " +"A :class:`~collections.abc.Set` object indicating which functions in the :" +"mod:`os` module permit specifying their *path* parameter as an open file " "descriptor. Different platforms provide different functionality, and an " "option that might work on one might be unsupported on another. For " -"consistency's sakes, functions that support *fd* always allow specifying the" -" parameter, but will raise an exception if the functionality is not actually" -" available." +"consistency's sakes, functions that support *fd* always allow specifying the " +"parameter, but will raise an exception if the functionality is not actually " +"available." msgstr "" #: ../../library/os.rst:2670 msgid "" "To check whether a particular function permits specifying an open file " "descriptor for its *path* parameter, use the ``in`` operator on " -"``supports_fd``. As an example, this expression determines whether " -":func:`os.chdir` accepts open file descriptors when called on your local " -"platform::" +"``supports_fd``. As an example, this expression determines whether :func:`os." +"chdir` accepts open file descriptors when called on your local platform::" msgstr "" #: ../../library/os.rst:2683 msgid "" -"A :class:`~collections.abc.Set` object indicating which functions in the " -":mod:`os` module permit use of their *follow_symlinks* parameter. Different" -" platforms provide different functionality, and an option that might work on" -" one might be unsupported on another. For consistency's sakes, functions " +"A :class:`~collections.abc.Set` object indicating which functions in the :" +"mod:`os` module permit use of their *follow_symlinks* parameter. Different " +"platforms provide different functionality, and an option that might work on " +"one might be unsupported on another. For consistency's sakes, functions " "that support *follow_symlinks* always allow specifying the parameter, but " "will raise an exception if the functionality is not actually available." msgstr "" @@ -3170,8 +3303,8 @@ msgstr "" #: ../../library/os.rst:2710 msgid "" -"Symbolic link support was introduced in Windows 6.0 (Vista). " -":func:`symlink` will raise a :exc:`NotImplementedError` on Windows versions " +"Symbolic link support was introduced in Windows 6.0 (Vista). :func:" +"`symlink` will raise a :exc:`NotImplementedError` on Windows versions " "earlier than 6.0." msgstr "" @@ -3186,8 +3319,7 @@ msgstr "" #: ../../library/os.rst:2725 msgid "" -":exc:`OSError` is raised when the function is called by an unprivileged " -"user." +":exc:`OSError` is raised when the function is called by an unprivileged user." msgstr "" #: ../../library/os.rst:2733 @@ -3208,8 +3340,8 @@ msgstr "" #: ../../library/os.rst:2770 msgid "" -"Remove (delete) the file *path*. This function is semantically identical to" -" :func:`remove`; the ``unlink`` name is its traditional Unix name. Please " +"Remove (delete) the file *path*. This function is semantically identical " +"to :func:`remove`; the ``unlink`` name is its traditional Unix name. Please " "see the documentation for :func:`remove` for further information." msgstr "" @@ -3219,8 +3351,8 @@ msgstr "" #: ../../library/os.rst:2786 msgid "" -":func:`utime` takes two optional parameters, *times* and *ns*. These specify" -" the times set on *path* and are used as follows:" +":func:`utime` takes two optional parameters, *times* and *ns*. These specify " +"the times set on *path* and are used as follows:" msgstr "" #: ../../library/os.rst:2789 @@ -3238,8 +3370,7 @@ msgstr "" #: ../../library/os.rst:2795 msgid "" "If *times* is ``None`` and *ns* is unspecified, this is equivalent to " -"specifying ``ns=(atime_ns, mtime_ns)`` where both times are the current " -"time." +"specifying ``ns=(atime_ns, mtime_ns)`` where both times are the current time." msgstr "" #: ../../library/os.rst:2799 @@ -3248,11 +3379,11 @@ msgstr "" #: ../../library/os.rst:2801 msgid "" -"Whether a directory can be given for *path* depends on whether the operating" -" system implements directories as files (for example, Windows does not). " -"Note that the exact times you set here may not be returned by a subsequent " -":func:`~os.stat` call, depending on the resolution with which your operating" -" system records access and modification times; see :func:`~os.stat`. The " +"Whether a directory can be given for *path* depends on whether the operating " +"system implements directories as files (for example, Windows does not). " +"Note that the exact times you set here may not be returned by a subsequent :" +"func:`~os.stat` call, depending on the resolution with which your operating " +"system records access and modification times; see :func:`~os.stat`. The " "best way to preserve exact times is to use the *st_atime_ns* and " "*st_mtime_ns* fields from the :func:`os.stat` result object with the *ns* " "parameter to `utime`." @@ -3286,11 +3417,11 @@ msgstr "" msgid "" "If optional argument *topdown* is ``True`` or not specified, the triple for " "a directory is generated before the triples for any of its subdirectories " -"(directories are generated top-down). If *topdown* is ``False``, the triple" -" for a directory is generated after the triples for all of its " -"subdirectories (directories are generated bottom-up). No matter the value of" -" *topdown*, the list of subdirectories is retrieved before the tuples for " -"the directory and its subdirectories are generated." +"(directories are generated top-down). If *topdown* is ``False``, the triple " +"for a directory is generated after the triples for all of its subdirectories " +"(directories are generated bottom-up). No matter the value of *topdown*, the " +"list of subdirectories is retrieved before the tuples for the directory and " +"its subdirectories are generated." msgstr "" #: ../../library/os.rst:2848 @@ -3301,9 +3432,9 @@ msgid "" "this can be used to prune the search, impose a specific order of visiting, " "or even to inform :func:`walk` about directories the caller creates or " "renames before it resumes :func:`walk` again. Modifying *dirnames* when " -"*topdown* is ``False`` has no effect on the behavior of the walk, because in" -" bottom-up mode the directories in *dirnames* are generated before *dirpath*" -" itself is generated." +"*topdown* is ``False`` has no effect on the behavior of the walk, because in " +"bottom-up mode the directories in *dirnames* are generated before *dirpath* " +"itself is generated." msgstr "" #: ../../library/os.rst:2857 @@ -3311,15 +3442,15 @@ msgid "" "By default, errors from the :func:`scandir` call are ignored. If optional " "argument *onerror* is specified, it should be a function; it will be called " "with one argument, an :exc:`OSError` instance. It can report the error to " -"continue with the walk, or raise the exception to abort the walk. Note that" -" the filename is available as the ``filename`` attribute of the exception " +"continue with the walk, or raise the exception to abort the walk. Note that " +"the filename is available as the ``filename`` attribute of the exception " "object." msgstr "" #: ../../library/os.rst:2863 msgid "" -"By default, :func:`walk` will not walk down into symbolic links that resolve" -" to directories. Set *followlinks* to ``True`` to visit directories pointed " +"By default, :func:`walk` will not walk down into symbolic links that resolve " +"to directories. Set *followlinks* to ``True`` to visit directories pointed " "to by symlinks, on systems that support them." msgstr "" @@ -3333,8 +3464,8 @@ msgstr "" #: ../../library/os.rst:2875 msgid "" "If you pass a relative pathname, don't change the current working directory " -"between resumptions of :func:`walk`. :func:`walk` never changes the current" -" directory, and assumes that its caller doesn't either." +"between resumptions of :func:`walk`. :func:`walk` never changes the current " +"directory, and assumes that its caller doesn't either." msgstr "" #: ../../library/os.rst:2879 ../../library/os.rst:2938 @@ -3372,16 +3503,16 @@ msgstr "" #: ../../library/os.rst:2927 msgid "" "This function always supports :ref:`paths relative to directory descriptors " -"` and :ref:`not following symlinks `. Note however" -" that, unlike other functions, the :func:`fwalk` default value for " +"` and :ref:`not following symlinks `. Note however " +"that, unlike other functions, the :func:`fwalk` default value for " "*follow_symlinks* is ``False``." msgstr "" #: ../../library/os.rst:2934 msgid "" "Since :func:`fwalk` yields file descriptors, those are only valid until the " -"next iteration step, so you should duplicate them (e.g. with :func:`dup`) if" -" you want to keep them longer." +"next iteration step, so you should duplicate them (e.g. with :func:`dup`) if " +"you want to keep them longer." msgstr "" #: ../../library/os.rst:2951 @@ -3405,9 +3536,9 @@ msgstr "" #: ../../library/os.rst:2986 msgid "" "Return the value of the extended filesystem attribute *attribute* for " -"*path*. *attribute* can be bytes or str (directly or indirectly through the " -":class:`PathLike` interface). If it is str, it is encoded with the " -"filesystem encoding." +"*path*. *attribute* can be bytes or str (directly or indirectly through the :" +"class:`PathLike` interface). If it is str, it is encoded with the filesystem " +"encoding." msgstr "" #: ../../library/os.rst:2994 ../../library/os.rst:3022 @@ -3426,8 +3557,8 @@ msgstr "" #: ../../library/os.rst:3014 msgid "" "Removes the extended filesystem attribute *attribute* from *path*. " -"*attribute* should be bytes or str (directly or indirectly through the " -":class:`PathLike` interface). If it is a string, it is encoded with the " +"*attribute* should be bytes or str (directly or indirectly through the :" +"class:`PathLike` interface). If it is a string, it is encoded with the " "filesystem encoding." msgstr "" @@ -3437,16 +3568,16 @@ msgid "" "*attribute* must be a bytes or str with no embedded NULs (directly or " "indirectly through the :class:`PathLike` interface). If it is a str, it is " "encoded with the filesystem encoding. *flags* may be :data:`XATTR_REPLACE` " -"or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` is given and the attribute" -" does not exist, ``EEXISTS`` will be raised. If :data:`XATTR_CREATE` is " -"given and the attribute already exists, the attribute will not be created " -"and ``ENODATA`` will be raised." +"or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` is given and the attribute " +"does not exist, ``EEXISTS`` will be raised. If :data:`XATTR_CREATE` is given " +"and the attribute already exists, the attribute will not be created and " +"``ENODATA`` will be raised." msgstr "" #: ../../library/os.rst:3042 msgid "" -"A bug in Linux kernel versions less than 2.6.39 caused the flags argument to" -" be ignored on some filesystems." +"A bug in Linux kernel versions less than 2.6.39 caused the flags argument to " +"be ignored on some filesystems." msgstr "" #: ../../library/os.rst:3051 @@ -3491,8 +3622,8 @@ msgid "" "Generate a :const:`SIGABRT` signal to the current process. On Unix, the " "default behavior is to produce a core dump; on Windows, the process " "immediately returns an exit code of ``3``. Be aware that calling this " -"function will not call the Python signal handler registered for " -":const:`SIGABRT` with :func:`signal.signal`." +"function will not call the Python signal handler registered for :const:" +"`SIGABRT` with :func:`signal.signal`." msgstr "" #: ../../library/os.rst:3101 @@ -3507,65 +3638,65 @@ msgstr "" msgid "" "The current process is replaced immediately. Open file objects and " "descriptors are not flushed, so if there may be data buffered on these open " -"files, you should flush them using :func:`sys.stdout.flush` or " -":func:`os.fsync` before calling an :func:`exec\\* ` function." +"files, you should flush them using :func:`sys.stdout.flush` or :func:`os." +"fsync` before calling an :func:`exec\\* ` function." msgstr "" #: ../../library/os.rst:3112 msgid "" -"The \"l\" and \"v\" variants of the :func:`exec\\* ` functions differ" -" in how command-line arguments are passed. The \"l\" variants are perhaps " +"The \"l\" and \"v\" variants of the :func:`exec\\* ` functions differ " +"in how command-line arguments are passed. The \"l\" variants are perhaps " "the easiest to work with if the number of parameters is fixed when the code " -"is written; the individual parameters simply become additional parameters to" -" the :func:`execl\\*` functions. The \"v\" variants are good when the " -"number of parameters is variable, with the arguments being passed in a list " -"or tuple as the *args* parameter. In either case, the arguments to the " -"child process should start with the name of the command being run, but this " -"is not enforced." +"is written; the individual parameters simply become additional parameters to " +"the :func:`execl\\*` functions. The \"v\" variants are good when the number " +"of parameters is variable, with the arguments being passed in a list or " +"tuple as the *args* parameter. In either case, the arguments to the child " +"process should start with the name of the command being run, but this is not " +"enforced." msgstr "" #: ../../library/os.rst:3121 msgid "" -"The variants which include a \"p\" near the end (:func:`execlp`, " -":func:`execlpe`, :func:`execvp`, and :func:`execvpe`) will use the " -":envvar:`PATH` environment variable to locate the program *file*. When the " -"environment is being replaced (using one of the :func:`exec\\*e ` " -"variants, discussed in the next paragraph), the new environment is used as " -"the source of the :envvar:`PATH` variable. The other variants, " -":func:`execl`, :func:`execle`, :func:`execv`, and :func:`execve`, will not " -"use the :envvar:`PATH` variable to locate the executable; *path* must " -"contain an appropriate absolute or relative path." +"The variants which include a \"p\" near the end (:func:`execlp`, :func:" +"`execlpe`, :func:`execvp`, and :func:`execvpe`) will use the :envvar:`PATH` " +"environment variable to locate the program *file*. When the environment is " +"being replaced (using one of the :func:`exec\\*e ` variants, " +"discussed in the next paragraph), the new environment is used as the source " +"of the :envvar:`PATH` variable. The other variants, :func:`execl`, :func:" +"`execle`, :func:`execv`, and :func:`execve`, will not use the :envvar:`PATH` " +"variable to locate the executable; *path* must contain an appropriate " +"absolute or relative path." msgstr "" #: ../../library/os.rst:3131 msgid "" "For :func:`execle`, :func:`execlpe`, :func:`execve`, and :func:`execvpe` " "(note that these all end in \"e\"), the *env* parameter must be a mapping " -"which is used to define the environment variables for the new process (these" -" are used instead of the current process' environment); the functions " -":func:`execl`, :func:`execlp`, :func:`execv`, and :func:`execvp` all cause " -"the new process to inherit the environment of the current process." +"which is used to define the environment variables for the new process (these " +"are used instead of the current process' environment); the functions :func:" +"`execl`, :func:`execlp`, :func:`execv`, and :func:`execvp` all cause the new " +"process to inherit the environment of the current process." msgstr "" #: ../../library/os.rst:3138 msgid "" "For :func:`execve` on some platforms, *path* may also be specified as an " "open file descriptor. This functionality may not be supported on your " -"platform; you can check whether or not it is available using " -":data:`os.supports_fd`. If it is unavailable, using it will raise a " -":exc:`NotImplementedError`." +"platform; you can check whether or not it is available using :data:`os." +"supports_fd`. If it is unavailable, using it will raise a :exc:" +"`NotImplementedError`." msgstr "" #: ../../library/os.rst:3145 msgid "" -"Added support for specifying an open file descriptor for *path* for " -":func:`execve`." +"Added support for specifying an open file descriptor for *path* for :func:" +"`execve`." msgstr "" #: ../../library/os.rst:3154 msgid "" -"Exit the process with status *n*, without calling cleanup handlers, flushing" -" stdio buffers, etc." +"Exit the process with status *n*, without calling cleanup handlers, flushing " +"stdio buffers, etc." msgstr "" #: ../../library/os.rst:3159 @@ -3631,13 +3762,12 @@ msgstr "" #: ../../library/os.rst:3240 msgid "" -"Exit code that means some system file did not exist, could not be opened, or" -" had some other kind of error." +"Exit code that means some system file did not exist, could not be opened, or " +"had some other kind of error." msgstr "" #: ../../library/os.rst:3248 -msgid "" -"Exit code that means a user specified output file could not be created." +msgid "Exit code that means a user specified output file could not be created." msgstr "" #: ../../library/os.rst:3255 @@ -3647,9 +3777,9 @@ msgstr "" #: ../../library/os.rst:3262 msgid "" -"Exit code that means a temporary failure occurred. This indicates something" -" that may not really be an error, such as a network connection that couldn't" -" be made during a retryable operation." +"Exit code that means a temporary failure occurred. This indicates something " +"that may not really be an error, such as a network connection that couldn't " +"be made during a retryable operation." msgstr "" #: ../../library/os.rst:3271 @@ -3660,8 +3790,8 @@ msgstr "" #: ../../library/os.rst:3279 msgid "" -"Exit code that means that there were insufficient permissions to perform the" -" operation (but not intended for file system problems)." +"Exit code that means that there were insufficient permissions to perform the " +"operation (but not intended for file system problems)." msgstr "" #: ../../library/os.rst:3287 @@ -3690,12 +3820,11 @@ msgstr "" #: ../../library/os.rst:3316 msgid "" -"Fork a child process, using a new pseudo-terminal as the child's controlling" -" terminal. Return a pair of ``(pid, fd)``, where *pid* is ``0`` in the " -"child, the new child's process id in the parent, and *fd* is the file " -"descriptor of the master end of the pseudo-terminal. For a more portable " -"approach, use the :mod:`pty` module. If an error occurs :exc:`OSError` is " -"raised." +"Fork a child process, using a new pseudo-terminal as the child's controlling " +"terminal. Return a pair of ``(pid, fd)``, where *pid* is ``0`` in the child, " +"the new child's process id in the parent, and *fd* is the file descriptor of " +"the master end of the pseudo-terminal. For a more portable approach, use " +"the :mod:`pty` module. If an error occurs :exc:`OSError` is raised." msgstr "" #: ../../library/os.rst:3331 @@ -3706,8 +3835,8 @@ msgstr "" #: ../../library/os.rst:3334 msgid "" -"Windows: The :data:`signal.CTRL_C_EVENT` and :data:`signal.CTRL_BREAK_EVENT`" -" signals are special signals which can only be sent to console processes " +"Windows: The :data:`signal.CTRL_C_EVENT` and :data:`signal.CTRL_BREAK_EVENT` " +"signals are special signals which can only be sent to console processes " "which share a common console window, e.g., some subprocesses. Any other " "value for *sig* will cause the process to be unconditionally killed by the " "TerminateProcess API, and the exit code will be set to *sig*. The Windows " @@ -3727,31 +3856,32 @@ msgid "Send the signal *sig* to the process group *pgid*." msgstr "Envia o sinal *sig* para o grupo de processo *pgid*." #: ../../library/os.rst:3361 -msgid "Add *increment* to the process's \"niceness\". Return the new niceness." +msgid "" +"Add *increment* to the process's \"niceness\". Return the new niceness." msgstr "" #: ../../library/os.rst:3368 msgid "" -"Lock program segments into memory. The value of *op* (defined in " -"````) determines which segments are locked." +"Lock program segments into memory. The value of *op* (defined in ````) determines which segments are locked." msgstr "" #: ../../library/os.rst:3376 msgid "" "Open a pipe to or from command *cmd*. The return value is an open file " "object connected to the pipe, which can be read or written depending on " -"whether *mode* is ``'r'`` (default) or ``'w'``. The *buffering* argument has" -" the same meaning as the corresponding argument to the built-in :func:`open`" -" function. The returned file object reads or writes text strings rather than" -" bytes." +"whether *mode* is ``'r'`` (default) or ``'w'``. The *buffering* argument has " +"the same meaning as the corresponding argument to the built-in :func:`open` " +"function. The returned file object reads or writes text strings rather than " +"bytes." msgstr "" #: ../../library/os.rst:3383 msgid "" "The ``close`` method returns :const:`None` if the subprocess exited " "successfully, or the subprocess's return code if there was an error. On " -"POSIX systems, if the return code is positive it represents the return value" -" of the process left-shifted by one byte. If the return code is negative, " +"POSIX systems, if the return code is positive it represents the return value " +"of the process left-shifted by one byte. If the return code is negative, " "the process was terminated by the signal given by the negated value of the " "return code. (For example, the return value might be ``- signal.SIGKILL`` " "if the subprocess was killed.) On Windows systems, the return value " @@ -3767,9 +3897,9 @@ msgstr "" #: ../../library/os.rst:3401 msgid "" -"Register callables to be executed when a new child process is forked using " -":func:`os.fork` or similar process cloning APIs. The parameters are optional" -" and keyword-only. Each specifies a different call point." +"Register callables to be executed when a new child process is forked using :" +"func:`os.fork` or similar process cloning APIs. The parameters are optional " +"and keyword-only. Each specifies a different call point." msgstr "" #: ../../library/os.rst:3406 @@ -3778,8 +3908,8 @@ msgstr "" #: ../../library/os.rst:3407 msgid "" -"*after_in_parent* is a function called from the parent process after forking" -" a child process." +"*after_in_parent* is a function called from the parent process after forking " +"a child process." msgstr "" #: ../../library/os.rst:3409 @@ -3802,9 +3932,9 @@ msgstr "" #: ../../library/os.rst:3420 msgid "" -"Note that :c:func:`fork` calls made by third-party C code may not call those" -" functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, " -":c:func:`PyOS_AfterFork_Parent` and :c:func:`PyOS_AfterFork_Child`." +"Note that :c:func:`fork` calls made by third-party C code may not call those " +"functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:" +"`PyOS_AfterFork_Parent` and :c:func:`PyOS_AfterFork_Child`." msgstr "" #: ../../library/os.rst:3424 @@ -3819,8 +3949,8 @@ msgstr "" msgid "" "(Note that the :mod:`subprocess` module provides more powerful facilities " "for spawning new processes and retrieving their results; using that module " -"is preferable to using these functions. Check especially the :ref" -":`subprocess-replacements` section.)" +"is preferable to using these functions. Check especially the :ref:" +"`subprocess-replacements` section.)" msgstr "" #: ../../library/os.rst:3447 @@ -3828,8 +3958,8 @@ msgid "" "If *mode* is :const:`P_NOWAIT`, this function returns the process id of the " "new process; if *mode* is :const:`P_WAIT`, returns the process's exit code " "if it exits normally, or ``-signal``, where *signal* is the signal that " -"killed the process. On Windows, the process id will actually be the process" -" handle, so can be used with the :func:`waitpid` function." +"killed the process. On Windows, the process id will actually be the process " +"handle, so can be used with the :func:`waitpid` function." msgstr "" #: ../../library/os.rst:3453 @@ -3846,28 +3976,27 @@ msgstr "" #: ../../library/os.rst:3462 msgid "" -"The variants which include a second \"p\" near the end (:func:`spawnlp`, " -":func:`spawnlpe`, :func:`spawnvp`, and :func:`spawnvpe`) will use the " -":envvar:`PATH` environment variable to locate the program *file*. When the " +"The variants which include a second \"p\" near the end (:func:`spawnlp`, :" +"func:`spawnlpe`, :func:`spawnvp`, and :func:`spawnvpe`) will use the :envvar:" +"`PATH` environment variable to locate the program *file*. When the " "environment is being replaced (using one of the :func:`spawn\\*e ` " "variants, discussed in the next paragraph), the new environment is used as " -"the source of the :envvar:`PATH` variable. The other variants, " -":func:`spawnl`, :func:`spawnle`, :func:`spawnv`, and :func:`spawnve`, will " -"not use the :envvar:`PATH` variable to locate the executable; *path* must " -"contain an appropriate absolute or relative path." +"the source of the :envvar:`PATH` variable. The other variants, :func:" +"`spawnl`, :func:`spawnle`, :func:`spawnv`, and :func:`spawnve`, will not use " +"the :envvar:`PATH` variable to locate the executable; *path* must contain an " +"appropriate absolute or relative path." msgstr "" #: ../../library/os.rst:3472 msgid "" -"For :func:`spawnle`, :func:`spawnlpe`, :func:`spawnve`, and :func:`spawnvpe`" -" (note that these all end in \"e\"), the *env* parameter must be a mapping " +"For :func:`spawnle`, :func:`spawnlpe`, :func:`spawnve`, and :func:`spawnvpe` " +"(note that these all end in \"e\"), the *env* parameter must be a mapping " "which is used to define the environment variables for the new process (they " -"are used instead of the current process' environment); the functions " -":func:`spawnl`, :func:`spawnlp`, :func:`spawnv`, and :func:`spawnvp` all " -"cause the new process to inherit the environment of the current process. " -"Note that keys and values in the *env* dictionary must be strings; invalid " -"keys or values will cause the function to fail, with a return value of " -"``127``." +"are used instead of the current process' environment); the functions :func:" +"`spawnl`, :func:`spawnlp`, :func:`spawnv`, and :func:`spawnvp` all cause the " +"new process to inherit the environment of the current process. Note that " +"keys and values in the *env* dictionary must be strings; invalid keys or " +"values will cause the function to fail, with a return value of ``127``." msgstr "" #: ../../library/os.rst:3481 @@ -3878,8 +4007,8 @@ msgstr "" #: ../../library/os.rst:3494 msgid "" -":ref:`Availability `: Unix, Windows. :func:`spawnlp`, " -":func:`spawnlpe`, :func:`spawnvp` and :func:`spawnvpe` are not available on " +":ref:`Availability `: Unix, Windows. :func:`spawnlp`, :func:" +"`spawnlpe`, :func:`spawnvp` and :func:`spawnvpe` are not available on " "Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on " "Windows; we advise you to use the :mod:`subprocess` module instead." msgstr "" @@ -3887,9 +4016,9 @@ msgstr "" #: ../../library/os.rst:3502 msgid "" "Possible values for the *mode* parameter to the :func:`spawn\\* ` " -"family of functions. If either of these values is given, the " -":func:`spawn\\*` functions will return as soon as the new process has been " -"created, with the process id as the return value." +"family of functions. If either of these values is given, the :func:`spawn" +"\\*` functions will return as soon as the new process has been created, with " +"the process id as the return value." msgstr "" #: ../../library/os.rst:3512 @@ -3897,15 +4026,15 @@ msgid "" "Possible value for the *mode* parameter to the :func:`spawn\\* ` " "family of functions. If this is given as *mode*, the :func:`spawn\\*` " "functions will not return until the new process has run to completion and " -"will return the exit code of the process the run is successful, or " -"``-signal`` if a signal kills the process." +"will return the exit code of the process the run is successful, or ``-" +"signal`` if a signal kills the process." msgstr "" #: ../../library/os.rst:3524 msgid "" "Possible values for the *mode* parameter to the :func:`spawn\\* ` " -"family of functions. These are less portable than those listed above. " -":const:`P_DETACH` is similar to :const:`P_NOWAIT`, but the new process is " +"family of functions. These are less portable than those listed above. :" +"const:`P_DETACH` is similar to :const:`P_NOWAIT`, but the new process is " "detached from the console of the calling process. If :const:`P_OVERLAY` is " "used, the current process will be replaced; the :func:`spawn\\* ` " "function will not return." @@ -3919,8 +4048,8 @@ msgstr "" msgid "" "When *operation* is not specified or ``'open'``, this acts like double-" "clicking the file in Windows Explorer, or giving the file name as an " -"argument to the :program:`start` command from the interactive command shell:" -" the file is opened with whatever application (if any) its extension is " +"argument to the :program:`start` command from the interactive command shell: " +"the file is opened with whatever application (if any) its extension is " "associated." msgstr "" @@ -3934,14 +4063,13 @@ msgstr "" #: ../../library/os.rst:3547 msgid "" -":func:`startfile` returns as soon as the associated application is launched." -" There is no option to wait for the application to close, and no way to " -"retrieve the application's exit status. The *path* parameter is relative to" -" the current directory. If you want to use an absolute path, make sure the " -"first character is not a slash (``'/'``); the underlying Win32 " -":c:func:`ShellExecute` function doesn't work if it is. Use the " -":func:`os.path.normpath` function to ensure that the path is properly " -"encoded for Win32." +":func:`startfile` returns as soon as the associated application is launched. " +"There is no option to wait for the application to close, and no way to " +"retrieve the application's exit status. The *path* parameter is relative to " +"the current directory. If you want to use an absolute path, make sure the " +"first character is not a slash (``'/'``); the underlying Win32 :c:func:" +"`ShellExecute` function doesn't work if it is. Use the :func:`os.path." +"normpath` function to ensure that the path is properly encoded for Win32." msgstr "" #: ../../library/os.rst:3555 @@ -3971,10 +4099,10 @@ msgstr "" #: ../../library/os.rst:3575 msgid "" "On Windows, the return value is that returned by the system shell after " -"running *command*. The shell is given by the Windows environment variable " -":envvar:`COMSPEC`: it is usually :program:`cmd.exe`, which returns the exit " -"status of the command run; on systems using a non-native shell, consult your" -" shell documentation." +"running *command*. The shell is given by the Windows environment variable :" +"envvar:`COMSPEC`: it is usually :program:`cmd.exe`, which returns the exit " +"status of the command run; on systems using a non-native shell, consult your " +"shell documentation." msgstr "" #: ../../library/os.rst:3581 @@ -3987,8 +4115,8 @@ msgstr "" #: ../../library/os.rst:3591 msgid "" -"Returns the current global process times. The return value is an object with" -" five attributes:" +"Returns the current global process times. The return value is an object with " +"five attributes:" msgstr "" #: ../../library/os.rst:3594 @@ -4014,20 +4142,20 @@ msgstr "" #: ../../library/os.rst:3600 msgid "" "For backwards compatibility, this object also behaves like a five-tuple " -"containing :attr:`user`, :attr:`system`, :attr:`children_user`, " -":attr:`children_system`, and :attr:`elapsed` in that order." +"containing :attr:`user`, :attr:`system`, :attr:`children_user`, :attr:" +"`children_system`, and :attr:`elapsed` in that order." msgstr "" #: ../../library/os.rst:3604 msgid "" "See the Unix manual page :manpage:`times(2)` and :manpage:`times(3)` manual " -"page on Unix or `the GetProcessTimes MSDN " -"` _ on Windows. On Windows, only " -":attr:`user` and :attr:`system` are known; the other attributes are zero." +"page on Unix or `the GetProcessTimes MSDN `_ " +"on Windows. On Windows, only :attr:`user` and :attr:`system` are known; the " +"other attributes are zero." msgstr "" -#: ../../library/os.rst:3620 +#: ../../library/os.rst:3618 msgid "" "Wait for completion of a child process, and return a tuple containing its " "pid and exit status indication: a 16-bit number, whose low byte is the " @@ -4036,42 +4164,42 @@ msgid "" "if a core file was produced." msgstr "" -#: ../../library/os.rst:3630 +#: ../../library/os.rst:3628 msgid "" -"Wait for the completion of one or more child processes. *idtype* can be " -":data:`P_PID`, :data:`P_PGID` or :data:`P_ALL`. *id* specifies the pid to " -"wait on. *options* is constructed from the ORing of one or more of " -":data:`WEXITED`, :data:`WSTOPPED` or :data:`WCONTINUED` and additionally may" -" be ORed with :data:`WNOHANG` or :data:`WNOWAIT`. The return value is an " -"object representing the data contained in the :c:type:`siginfo_t` structure," -" namely: :attr:`si_pid`, :attr:`si_uid`, :attr:`si_signo`, " -":attr:`si_status`, :attr:`si_code` or ``None`` if :data:`WNOHANG` is " -"specified and there are no children in a waitable state." +"Wait for the completion of one or more child processes. *idtype* can be :" +"data:`P_PID`, :data:`P_PGID` or :data:`P_ALL`. *id* specifies the pid to " +"wait on. *options* is constructed from the ORing of one or more of :data:" +"`WEXITED`, :data:`WSTOPPED` or :data:`WCONTINUED` and additionally may be " +"ORed with :data:`WNOHANG` or :data:`WNOWAIT`. The return value is an object " +"representing the data contained in the :c:type:`siginfo_t` structure, " +"namely: :attr:`si_pid`, :attr:`si_uid`, :attr:`si_signo`, :attr:" +"`si_status`, :attr:`si_code` or ``None`` if :data:`WNOHANG` is specified and " +"there are no children in a waitable state." msgstr "" -#: ../../library/os.rst:3649 +#: ../../library/os.rst:3647 msgid "" "These are the possible values for *idtype* in :func:`waitid`. They affect " "how *id* is interpreted." msgstr "" -#: ../../library/os.rst:3660 +#: ../../library/os.rst:3658 msgid "" "Flags that can be used in *options* in :func:`waitid` that specify what " "child signal to wait for." msgstr "" -#: ../../library/os.rst:3673 +#: ../../library/os.rst:3671 msgid "" -"These are the possible values for :attr:`si_code` in the result returned by " -":func:`waitid`." +"These are the possible values for :attr:`si_code` in the result returned by :" +"func:`waitid`." msgstr "" -#: ../../library/os.rst:3683 +#: ../../library/os.rst:3681 msgid "The details of this function differ on Unix and Windows." msgstr "" -#: ../../library/os.rst:3685 +#: ../../library/os.rst:3683 msgid "" "On Unix: Wait for completion of a child process given by process id *pid*, " "and return a tuple containing its process id and exit status indication " @@ -4080,311 +4208,334 @@ msgid "" "operation." msgstr "" -#: ../../library/os.rst:3690 +#: ../../library/os.rst:3688 msgid "" "If *pid* is greater than ``0``, :func:`waitpid` requests status information " -"for that specific process. If *pid* is ``0``, the request is for the status" -" of any child in the process group of the current process. If *pid* is " +"for that specific process. If *pid* is ``0``, the request is for the status " +"of any child in the process group of the current process. If *pid* is " "``-1``, the request pertains to any child of the current process. If *pid* " "is less than ``-1``, status is requested for any process in the process " "group ``-pid`` (the absolute value of *pid*)." msgstr "" -#: ../../library/os.rst:3697 +#: ../../library/os.rst:3695 msgid "" -"An :exc:`OSError` is raised with the value of errno when the syscall returns" -" -1." +"An :exc:`OSError` is raised with the value of errno when the syscall returns " +"-1." msgstr "" -#: ../../library/os.rst:3700 +#: ../../library/os.rst:3698 msgid "" "On Windows: Wait for completion of a process given by process handle *pid*, " "and return a tuple containing *pid*, and its exit status shifted left by 8 " "bits (shifting makes cross-platform use of the function easier). A *pid* " -"less than or equal to ``0`` has no special meaning on Windows, and raises an" -" exception. The value of integer *options* has no effect. *pid* can refer to" -" any process whose id is known, not necessarily a child process. The " -":func:`spawn\\* ` functions called with :const:`P_NOWAIT` return " -"suitable process handles." +"less than or equal to ``0`` has no special meaning on Windows, and raises an " +"exception. The value of integer *options* has no effect. *pid* can refer to " +"any process whose id is known, not necessarily a child process. The :func:" +"`spawn\\* ` functions called with :const:`P_NOWAIT` return suitable " +"process handles." msgstr "" -#: ../../library/os.rst:3716 +#: ../../library/os.rst:3714 msgid "" -"Similar to :func:`waitpid`, except no process id argument is given and a " -"3-element tuple containing the child's process id, exit status indication, " -"and resource usage information is returned. Refer to :mod:`resource`.\\ " -":func:`~resource.getrusage` for details on resource usage information. The " -"option argument is the same as that provided to :func:`waitpid` and " -":func:`wait4`." +"Similar to :func:`waitpid`, except no process id argument is given and a 3-" +"element tuple containing the child's process id, exit status indication, and " +"resource usage information is returned. Refer to :mod:`resource`.\\ :func:" +"`~resource.getrusage` for details on resource usage information. The option " +"argument is the same as that provided to :func:`waitpid` and :func:`wait4`." msgstr "" -#: ../../library/os.rst:3728 +#: ../../library/os.rst:3726 msgid "" -"Similar to :func:`waitpid`, except a 3-element tuple, containing the child's" -" process id, exit status indication, and resource usage information is " +"Similar to :func:`waitpid`, except a 3-element tuple, containing the child's " +"process id, exit status indication, and resource usage information is " "returned. Refer to :mod:`resource`.\\ :func:`~resource.getrusage` for " "details on resource usage information. The arguments to :func:`wait4` are " "the same as those provided to :func:`waitpid`." msgstr "" -#: ../../library/os.rst:3739 +#: ../../library/os.rst:3737 msgid "" "The option for :func:`waitpid` to return immediately if no child process " "status is available immediately. The function returns ``(0, 0)`` in this " "case." msgstr "" -#: ../../library/os.rst:3747 +#: ../../library/os.rst:3745 msgid "" "This option causes child processes to be reported if they have been " "continued from a job control stop since their status was last reported." msgstr "" -#: ../../library/os.rst:3750 +#: ../../library/os.rst:3748 msgid ":ref:`Availability `: some Unix systems." msgstr "" -#: ../../library/os.rst:3755 +#: ../../library/os.rst:3753 msgid "" "This option causes child processes to be reported if they have been stopped " "but their current state has not been reported since they were stopped." msgstr "" -#: ../../library/os.rst:3761 +#: ../../library/os.rst:3759 msgid "" -"The following functions take a process status code as returned by " -":func:`system`, :func:`wait`, or :func:`waitpid` as a parameter. They may " -"be used to determine the disposition of a process." +"The following functions take a process status code as returned by :func:" +"`system`, :func:`wait`, or :func:`waitpid` as a parameter. They may be used " +"to determine the disposition of a process." msgstr "" -#: ../../library/os.rst:3767 +#: ../../library/os.rst:3765 msgid "" "Return ``True`` if a core dump was generated for the process, otherwise " "return ``False``." msgstr "" +#: ../../library/os.rst:3768 ../../library/os.rst:3834 +msgid "This function should be employed only if :func:`WIFSIGNALED` is true." +msgstr "" + #: ../../library/os.rst:3775 msgid "" -"Return ``True`` if the process has been continued from a job control stop, " +"Return ``True`` if a stopped child has been resumed by delivery of :data:" +"`~signal.SIGCONT` (if the process has been continued from a job control " +"stop), otherwise return ``False``." +msgstr "" + +#: ../../library/os.rst:3779 +msgid "See :data:`WCONTINUED` option." +msgstr "" + +#: ../../library/os.rst:3786 +msgid "" +"Return ``True`` if the process was stopped by delivery of a signal, " "otherwise return ``False``." msgstr "" -#: ../../library/os.rst:3783 +#: ../../library/os.rst:3789 msgid "" -"Return ``True`` if the process has been stopped, otherwise return ``False``." +":func:`WIFSTOPPED` only returns ``True`` if the :func:`waitpid` call was " +"done using :data:`WUNTRACED` option or when the process is being traced " +"(see :manpage:`ptrace(2)`)." msgstr "" -#: ../../library/os.rst:3791 +#: ../../library/os.rst:3797 msgid "" -"Return ``True`` if the process exited due to a signal, otherwise return " +"Return ``True`` if the process was terminated by a signal, otherwise return " "``False``." msgstr "" -#: ../../library/os.rst:3799 +#: ../../library/os.rst:3805 msgid "" -"Return ``True`` if the process exited using the :manpage:`exit(2)` system " -"call, otherwise return ``False``." +"Return ``True`` if the process exited terminated normally, that is, by " +"calling ``exit()`` or ``_exit()``, or by returning from ``main()``; " +"otherwise return ``False``." msgstr "" -#: ../../library/os.rst:3807 -msgid "" -"If ``WIFEXITED(status)`` is true, return the integer parameter to the " -":manpage:`exit(2)` system call. Otherwise, the return value is meaningless." +#: ../../library/os.rst:3814 +msgid "Return the process exit status." msgstr "" -#: ../../library/os.rst:3815 +#: ../../library/os.rst:3816 +msgid "This function should be employed only if :func:`WIFEXITED` is true." +msgstr "" + +#: ../../library/os.rst:3823 msgid "Return the signal which caused the process to stop." msgstr "" -#: ../../library/os.rst:3822 -msgid "Return the signal which caused the process to exit." +#: ../../library/os.rst:3825 +msgid "This function should be employed only if :func:`WIFSTOPPED` is true." msgstr "" -#: ../../library/os.rst:3828 +#: ../../library/os.rst:3832 +msgid "Return the number of the signal that caused the process to terminate." +msgstr "" + +#: ../../library/os.rst:3840 msgid "Interface to the scheduler" msgstr "" -#: ../../library/os.rst:3830 +#: ../../library/os.rst:3842 msgid "" -"These functions control how a process is allocated CPU time by the operating" -" system. They are only available on some Unix platforms. For more detailed " +"These functions control how a process is allocated CPU time by the operating " +"system. They are only available on some Unix platforms. For more detailed " "information, consult your Unix manpages." msgstr "" -#: ../../library/os.rst:3836 +#: ../../library/os.rst:3848 msgid "" "The following scheduling policies are exposed if they are supported by the " "operating system." msgstr "" -#: ../../library/os.rst:3841 +#: ../../library/os.rst:3853 msgid "The default scheduling policy." msgstr "" -#: ../../library/os.rst:3845 +#: ../../library/os.rst:3857 msgid "" "Scheduling policy for CPU-intensive processes that tries to preserve " "interactivity on the rest of the computer." msgstr "" -#: ../../library/os.rst:3850 +#: ../../library/os.rst:3862 msgid "Scheduling policy for extremely low priority background tasks." msgstr "" -#: ../../library/os.rst:3854 +#: ../../library/os.rst:3866 msgid "Scheduling policy for sporadic server programs." msgstr "" -#: ../../library/os.rst:3858 +#: ../../library/os.rst:3870 msgid "A First In First Out scheduling policy." msgstr "" -#: ../../library/os.rst:3862 +#: ../../library/os.rst:3874 msgid "A round-robin scheduling policy." msgstr "" -#: ../../library/os.rst:3866 +#: ../../library/os.rst:3878 msgid "" -"This flag can be OR'ed with any other scheduling policy. When a process with" -" this flag set forks, its child's scheduling policy and priority are reset " -"to the default." +"This flag can be OR'ed with any other scheduling policy. When a process with " +"this flag set forks, its child's scheduling policy and priority are reset to " +"the default." msgstr "" -#: ../../library/os.rst:3873 +#: ../../library/os.rst:3885 msgid "" -"This class represents tunable scheduling parameters used in " -":func:`sched_setparam`, :func:`sched_setscheduler`, and " -":func:`sched_getparam`. It is immutable." +"This class represents tunable scheduling parameters used in :func:" +"`sched_setparam`, :func:`sched_setscheduler`, and :func:`sched_getparam`. It " +"is immutable." msgstr "" -#: ../../library/os.rst:3877 +#: ../../library/os.rst:3889 msgid "At the moment, there is only one possible parameter:" msgstr "Neste momento, há somente um único parâmetro possível:" -#: ../../library/os.rst:3881 +#: ../../library/os.rst:3893 msgid "The scheduling priority for a scheduling policy." msgstr "A prioridade de agendamento para uma política de agendamento." -#: ../../library/os.rst:3886 +#: ../../library/os.rst:3898 msgid "" "Get the minimum priority value for *policy*. *policy* is one of the " "scheduling policy constants above." msgstr "" -#: ../../library/os.rst:3892 +#: ../../library/os.rst:3904 msgid "" "Get the maximum priority value for *policy*. *policy* is one of the " "scheduling policy constants above." msgstr "" -#: ../../library/os.rst:3898 +#: ../../library/os.rst:3910 msgid "" -"Set the scheduling policy for the process with PID *pid*. A *pid* of 0 means" -" the calling process. *policy* is one of the scheduling policy constants " +"Set the scheduling policy for the process with PID *pid*. A *pid* of 0 means " +"the calling process. *policy* is one of the scheduling policy constants " "above. *param* is a :class:`sched_param` instance." msgstr "" -#: ../../library/os.rst:3905 +#: ../../library/os.rst:3917 msgid "" "Return the scheduling policy for the process with PID *pid*. A *pid* of 0 " "means the calling process. The result is one of the scheduling policy " "constants above." msgstr "" -#: ../../library/os.rst:3912 +#: ../../library/os.rst:3924 msgid "" "Set a scheduling parameters for the process with PID *pid*. A *pid* of 0 " "means the calling process. *param* is a :class:`sched_param` instance." msgstr "" -#: ../../library/os.rst:3918 +#: ../../library/os.rst:3930 msgid "" "Return the scheduling parameters as a :class:`sched_param` instance for the " "process with PID *pid*. A *pid* of 0 means the calling process." msgstr "" -#: ../../library/os.rst:3924 +#: ../../library/os.rst:3936 msgid "" "Return the round-robin quantum in seconds for the process with PID *pid*. A " "*pid* of 0 means the calling process." msgstr "" -#: ../../library/os.rst:3930 +#: ../../library/os.rst:3942 msgid "Voluntarily relinquish the CPU." msgstr "Libera a CPU voluntariamente." -#: ../../library/os.rst:3935 +#: ../../library/os.rst:3947 msgid "" "Restrict the process with PID *pid* (or the current process if zero) to a " -"set of CPUs. *mask* is an iterable of integers representing the set of CPUs" -" to which the process should be restricted." +"set of CPUs. *mask* is an iterable of integers representing the set of CPUs " +"to which the process should be restricted." msgstr "" -#: ../../library/os.rst:3942 +#: ../../library/os.rst:3954 msgid "" -"Return the set of CPUs the process with PID *pid* (or the current process if" -" zero) is restricted to." +"Return the set of CPUs the process with PID *pid* (or the current process if " +"zero) is restricted to." msgstr "" -#: ../../library/os.rst:3949 +#: ../../library/os.rst:3961 msgid "Miscellaneous System Information" msgstr "Diversas Informações de Sistema" -#: ../../library/os.rst:3954 +#: ../../library/os.rst:3966 msgid "" "Return string-valued system configuration values. *name* specifies the " "configuration value to retrieve; it may be a string which is the name of a " "defined system value; these names are specified in a number of standards " "(POSIX, Unix 95, Unix 98, and others). Some platforms define additional " -"names as well. The names known to the host operating system are given as the" -" keys of the ``confstr_names`` dictionary. For configuration variables not " +"names as well. The names known to the host operating system are given as the " +"keys of the ``confstr_names`` dictionary. For configuration variables not " "included in that mapping, passing an integer for *name* is also accepted." msgstr "" -#: ../../library/os.rst:3962 +#: ../../library/os.rst:3974 msgid "" "If the configuration value specified by *name* isn't defined, ``None`` is " "returned." msgstr "" -"Se o valor de configuração especificado por *name* não for definido, retorna" -" ``None``." +"Se o valor de configuração especificado por *name* não for definido, retorna " +"``None``." -#: ../../library/os.rst:3965 +#: ../../library/os.rst:3977 msgid "" "If *name* is a string and is not known, :exc:`ValueError` is raised. If a " -"specific value for *name* is not supported by the host system, even if it is" -" included in ``confstr_names``, an :exc:`OSError` is raised with " -":const:`errno.EINVAL` for the error number." +"specific value for *name* is not supported by the host system, even if it is " +"included in ``confstr_names``, an :exc:`OSError` is raised with :const:" +"`errno.EINVAL` for the error number." msgstr "" -#: ../../library/os.rst:3975 +#: ../../library/os.rst:3987 msgid "" "Dictionary mapping names accepted by :func:`confstr` to the integer values " "defined for those names by the host operating system. This can be used to " "determine the set of names known to the system." msgstr "" -#: ../../library/os.rst:3984 +#: ../../library/os.rst:3996 msgid "" "Return the number of CPUs in the system. Returns ``None`` if undetermined." msgstr "" "Retorna o número de CPUs do sistema. Retorna ``None`` se não determinado." -#: ../../library/os.rst:3986 +#: ../../library/os.rst:3998 msgid "" "This number is not equivalent to the number of CPUs the current process can " -"use. The number of usable CPUs can be obtained with " -"``len(os.sched_getaffinity(0))``" +"use. The number of usable CPUs can be obtained with ``len(os." +"sched_getaffinity(0))``" msgstr "" -#: ../../library/os.rst:3996 +#: ../../library/os.rst:4008 msgid "" "Return the number of processes in the system run queue averaged over the " "last 1, 5, and 15 minutes or raises :exc:`OSError` if the load average was " "unobtainable." msgstr "" -#: ../../library/os.rst:4005 +#: ../../library/os.rst:4017 msgid "" "Return integer-valued system configuration values. If the configuration " "value specified by *name* isn't defined, ``-1`` is returned. The comments " @@ -4393,159 +4544,159 @@ msgid "" "``sysconf_names``." msgstr "" -#: ../../library/os.rst:4015 +#: ../../library/os.rst:4027 msgid "" "Dictionary mapping names accepted by :func:`sysconf` to the integer values " "defined for those names by the host operating system. This can be used to " "determine the set of names known to the system." msgstr "" -#: ../../library/os.rst:4021 +#: ../../library/os.rst:4033 msgid "" -"The following data values are used to support path manipulation operations." -" These are defined for all platforms." +"The following data values are used to support path manipulation operations. " +"These are defined for all platforms." msgstr "" -"Os dados a seguir são usados para suportar operações de manipulação de path." -" Estão definidos e disponíveis para todas as plataformas." +"Os dados a seguir são usados para suportar operações de manipulação de path. " +"Estão definidos e disponíveis para todas as plataformas." -#: ../../library/os.rst:4024 +#: ../../library/os.rst:4036 msgid "" "Higher-level operations on pathnames are defined in the :mod:`os.path` " "module." msgstr "" -#: ../../library/os.rst:4030 +#: ../../library/os.rst:4042 msgid "" "The constant string used by the operating system to refer to the current " -"directory. This is ``'.'`` for Windows and POSIX. Also available via " -":mod:`os.path`." +"directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:" +"`os.path`." msgstr "" -#: ../../library/os.rst:4038 +#: ../../library/os.rst:4050 msgid "" "The constant string used by the operating system to refer to the parent " -"directory. This is ``'..'`` for Windows and POSIX. Also available via " -":mod:`os.path`." +"directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:" +"`os.path`." msgstr "" -#: ../../library/os.rst:4047 +#: ../../library/os.rst:4059 msgid "" "The character used by the operating system to separate pathname components. " "This is ``'/'`` for POSIX and ``'\\\\'`` for Windows. Note that knowing " -"this is not sufficient to be able to parse or concatenate pathnames --- use " -":func:`os.path.split` and :func:`os.path.join` --- but it is occasionally " +"this is not sufficient to be able to parse or concatenate pathnames --- use :" +"func:`os.path.split` and :func:`os.path.join` --- but it is occasionally " "useful. Also available via :mod:`os.path`." msgstr "" -#: ../../library/os.rst:4057 +#: ../../library/os.rst:4069 msgid "" "An alternative character used by the operating system to separate pathname " -"components, or ``None`` if only one separator character exists. This is set" -" to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available " +"components, or ``None`` if only one separator character exists. This is set " +"to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available " "via :mod:`os.path`." msgstr "" -#: ../../library/os.rst:4066 +#: ../../library/os.rst:4078 msgid "" "The character which separates the base filename from the extension; for " "example, the ``'.'`` in :file:`os.py`. Also available via :mod:`os.path`." msgstr "" -#: ../../library/os.rst:4074 +#: ../../library/os.rst:4086 msgid "" -"The character conventionally used by the operating system to separate search" -" path components (as in :envvar:`PATH`), such as ``':'`` for POSIX or " -"``';'`` for Windows. Also available via :mod:`os.path`." +"The character conventionally used by the operating system to separate search " +"path components (as in :envvar:`PATH`), such as ``':'`` for POSIX or ``';'`` " +"for Windows. Also available via :mod:`os.path`." msgstr "" -#: ../../library/os.rst:4081 +#: ../../library/os.rst:4093 msgid "" -"The default search path used by :func:`exec\\*p\\* ` and " -":func:`spawn\\*p\\* ` if the environment doesn't have a ``'PATH'`` " -"key. Also available via :mod:`os.path`." +"The default search path used by :func:`exec\\*p\\* ` and :func:`spawn" +"\\*p\\* ` if the environment doesn't have a ``'PATH'`` key. Also " +"available via :mod:`os.path`." msgstr "" -#: ../../library/os.rst:4088 +#: ../../library/os.rst:4100 msgid "" "The string used to separate (or, rather, terminate) lines on the current " "platform. This may be a single character, such as ``'\\n'`` for POSIX, or " -"multiple characters, for example, ``'\\r\\n'`` for Windows. Do not use " -"*os.linesep* as a line terminator when writing files opened in text mode " -"(the default); use a single ``'\\n'`` instead, on all platforms." +"multiple characters, for example, ``'\\r\\n'`` for Windows. Do not use *os." +"linesep* as a line terminator when writing files opened in text mode (the " +"default); use a single ``'\\n'`` instead, on all platforms." msgstr "" -#: ../../library/os.rst:4097 +#: ../../library/os.rst:4109 msgid "" "The file path of the null device. For example: ``'/dev/null'`` for POSIX, " "``'nul'`` for Windows. Also available via :mod:`os.path`." msgstr "" -#: ../../library/os.rst:4108 +#: ../../library/os.rst:4120 msgid "" -"Flags for use with the :func:`~sys.setdlopenflags` and " -":func:`~sys.getdlopenflags` functions. See the Unix manual page " -":manpage:`dlopen(3)` for what the different flags mean." +"Flags for use with the :func:`~sys.setdlopenflags` and :func:`~sys." +"getdlopenflags` functions. See the Unix manual page :manpage:`dlopen(3)` " +"for what the different flags mean." msgstr "" -#: ../../library/os.rst:4116 +#: ../../library/os.rst:4128 msgid "Random numbers" msgstr "Números aleatórios" -#: ../../library/os.rst:4121 +#: ../../library/os.rst:4133 msgid "" "Get up to *size* random bytes. The function can return less bytes than " "requested." msgstr "" -"Obtém até *size* bytes aleatórios. Esta função pode retornar menos bytes que" -" a quantia requisitada." +"Obtém até *size* bytes aleatórios. Esta função pode retornar menos bytes que " +"a quantia requisitada." -#: ../../library/os.rst:4124 +#: ../../library/os.rst:4136 msgid "" "These bytes can be used to seed user-space random number generators or for " "cryptographic purposes." msgstr "" -#: ../../library/os.rst:4127 +#: ../../library/os.rst:4139 msgid "" "``getrandom()`` relies on entropy gathered from device drivers and other " "sources of environmental noise. Unnecessarily reading large quantities of " -"data will have a negative impact on other users of the ``/dev/random`` and" -" ``/dev/urandom`` devices." +"data will have a negative impact on other users of the ``/dev/random`` and " +"``/dev/urandom`` devices." msgstr "" -#: ../../library/os.rst:4132 +#: ../../library/os.rst:4144 msgid "" "The flags argument is a bit mask that can contain zero or more of the " -"following values ORed together: :py:data:`os.GRND_RANDOM` and " -":py:data:`GRND_NONBLOCK`." +"following values ORed together: :py:data:`os.GRND_RANDOM` and :py:data:" +"`GRND_NONBLOCK`." msgstr "" -#: ../../library/os.rst:4136 +#: ../../library/os.rst:4148 msgid "" -"See also the `Linux getrandom() manual page `_." +"See also the `Linux getrandom() manual page `_." msgstr "" -"Veja também `A página do manual do Linux sobre getrandom() " -"`_." +"Veja também `A página do manual do Linux sobre getrandom() `_." -#: ../../library/os.rst:4140 +#: ../../library/os.rst:4152 msgid ":ref:`Availability `: Linux 3.17 and newer." msgstr "" -#: ../../library/os.rst:4145 +#: ../../library/os.rst:4157 msgid "Return a string of *size* random bytes suitable for cryptographic use." msgstr "" "Retorna uma string de *size* bytes aleatórios próprios para uso " "criptográfico." -#: ../../library/os.rst:4147 +#: ../../library/os.rst:4159 msgid "" "This function returns random bytes from an OS-specific randomness source. " "The returned data should be unpredictable enough for cryptographic " "applications, though its exact quality depends on the OS implementation." msgstr "" -#: ../../library/os.rst:4151 +#: ../../library/os.rst:4163 msgid "" "On Linux, if the ``getrandom()`` syscall is available, it is used in " "blocking mode: block until the system urandom entropy pool is initialized " @@ -4555,25 +4706,25 @@ msgid "" "to poll until the system urandom entropy pool is initialized." msgstr "" -#: ../../library/os.rst:4158 +#: ../../library/os.rst:4170 msgid "" "On a Unix-like system, random bytes are read from the ``/dev/urandom`` " -"device. If the ``/dev/urandom`` device is not available or not readable, the" -" :exc:`NotImplementedError` exception is raised." +"device. If the ``/dev/urandom`` device is not available or not readable, " +"the :exc:`NotImplementedError` exception is raised." msgstr "" -#: ../../library/os.rst:4162 +#: ../../library/os.rst:4174 msgid "On Windows, it will use ``CryptGenRandom()``." msgstr "No Windows, será usado ``CryptGenRandom()``." -#: ../../library/os.rst:4165 +#: ../../library/os.rst:4177 msgid "" "The :mod:`secrets` module provides higher level functions. For an easy-to-" "use interface to the random number generator provided by your platform, " "please see :class:`random.SystemRandom`." msgstr "" -#: ../../library/os.rst:4169 +#: ../../library/os.rst:4181 msgid "" "On Linux, ``getrandom()`` is now used in blocking mode to increase the " "security." @@ -4581,37 +4732,36 @@ msgstr "" "No Linux, ``getrandom()`` é usado agora no modo de bloqueio para aumentar a " "segurança." -#: ../../library/os.rst:4173 +#: ../../library/os.rst:4185 msgid "" -"On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is" -" not initialized yet), fall back on reading ``/dev/urandom``." +"On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is " +"not initialized yet), fall back on reading ``/dev/urandom``." msgstr "" -#: ../../library/os.rst:4177 +#: ../../library/os.rst:4189 msgid "" "On Linux 3.17 and newer, the ``getrandom()`` syscall is now used when " -"available. On OpenBSD 5.6 and newer, the C ``getentropy()`` function is now" -" used. These functions avoid the usage of an internal file descriptor." +"available. On OpenBSD 5.6 and newer, the C ``getentropy()`` function is now " +"used. These functions avoid the usage of an internal file descriptor." msgstr "" -#: ../../library/os.rst:4185 +#: ../../library/os.rst:4197 msgid "" "By default, when reading from ``/dev/random``, :func:`getrandom` blocks if " "no random bytes are available, and when reading from ``/dev/urandom``, it " "blocks if the entropy pool has not yet been initialized." msgstr "" -#: ../../library/os.rst:4189 +#: ../../library/os.rst:4201 msgid "" -"If the :py:data:`GRND_NONBLOCK` flag is set, then :func:`getrandom` does not" -" block in these cases, but instead immediately raises " -":exc:`BlockingIOError`." +"If the :py:data:`GRND_NONBLOCK` flag is set, then :func:`getrandom` does not " +"block in these cases, but instead immediately raises :exc:`BlockingIOError`." msgstr "" -#: ../../library/os.rst:4196 +#: ../../library/os.rst:4208 msgid "" -"If this bit is set, then random bytes are drawn from the " -"``/dev/random`` pool instead of the ``/dev/urandom`` pool." +"If this bit is set, then random bytes are drawn from the ``/dev/" +"random`` pool instead of the ``/dev/urandom`` pool." msgstr "" -"Se este bit é definido bytes aleatórios são pegos a partir de " -"``/dev/random`` ao invés de ``/dev/urandom``." +"Se este bit é definido bytes aleatórios são pegos a partir de ``/dev/" +"random`` ao invés de ``/dev/urandom``." diff --git a/library/ossaudiodev.po b/library/ossaudiodev.po index d2d126199..4c0ffe378 100644 --- a/library/ossaudiodev.po +++ b/library/ossaudiodev.po @@ -1,21 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# Sheila Gomes , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,8 +34,8 @@ msgstr "" msgid "" "This module allows you to access the OSS (Open Sound System) audio " "interface. OSS is available for a wide range of open-source and commercial " -"Unices, and is the standard audio interface for Linux and recent versions of" -" FreeBSD." +"Unices, and is the standard audio interface for Linux and recent versions of " +"FreeBSD." msgstr "" #: ../../library/ossaudiodev.rst:42 @@ -39,11 +43,13 @@ msgid "" "Operations in this module now raise :exc:`OSError` where :exc:`IOError` was " "raised." msgstr "" +"As operações neste módulo agora levantam :exc:`OSError` onde :exc:`IOError` " +"foi levantado." #: ../../library/ossaudiodev.rst:50 msgid "" -"`Open Sound System Programmer's Guide " -"`_" +"`Open Sound System Programmer's Guide `_" msgstr "" #: ../../library/ossaudiodev.rst:50 @@ -68,10 +74,10 @@ msgstr "" #: ../../library/ossaudiodev.rst:63 msgid "" -"(If :mod:`ossaudiodev` receives an error from a system call such as " -":c:func:`open`, :c:func:`write`, or :c:func:`ioctl`, it raises " -":exc:`OSError`. Errors detected directly by :mod:`ossaudiodev` result in " -":exc:`OSSAudioError`.)" +"(If :mod:`ossaudiodev` receives an error from a system call such as :c:func:" +"`open`, :c:func:`write`, or :c:func:`ioctl`, it raises :exc:`OSError`. " +"Errors detected directly by :mod:`ossaudiodev` result in :exc:" +"`OSSAudioError`.)" msgstr "" #: ../../library/ossaudiodev.rst:67 @@ -83,10 +89,10 @@ msgstr "" #: ../../library/ossaudiodev.rst:74 msgid "" "Open an audio device and return an OSS audio device object. This object " -"supports many file-like methods, such as :meth:`read`, :meth:`write`, and " -":meth:`fileno` (although there are subtle differences between conventional " -"Unix read/write semantics and those of OSS audio devices). It also supports" -" a number of audio-specific methods; see below for the complete list of " +"supports many file-like methods, such as :meth:`read`, :meth:`write`, and :" +"meth:`fileno` (although there are subtle differences between conventional " +"Unix read/write semantics and those of OSS audio devices). It also supports " +"a number of audio-specific methods; see below for the complete list of " "methods." msgstr "" @@ -116,8 +122,8 @@ msgstr "" #: ../../library/ossaudiodev.rst:102 msgid "" -"Open a mixer device and return an OSS mixer device object. *device* is the" -" mixer device filename to use. If it is not specified, this module first " +"Open a mixer device and return an OSS mixer device object. *device* is the " +"mixer device filename to use. If it is not specified, this module first " "looks in the environment variable :envvar:`MIXERDEV` for a device to use. " "If not found, it falls back to :file:`/dev/mixer`." msgstr "" @@ -194,16 +200,16 @@ msgid "" "Write a :term:`bytes-like object` *data* to the audio device: waits until " "the audio device is able to accept data, writes as much data as it will " "accept, and repeats until *data* has been completely written. If the device " -"is in blocking mode (the default), this has the same effect as " -":meth:`write`; :meth:`writeall` is only useful in non-blocking mode. Has no" -" return value, since the amount of data written is always equal to the " -"amount of data supplied." +"is in blocking mode (the default), this has the same effect as :meth:" +"`write`; :meth:`writeall` is only useful in non-blocking mode. Has no " +"return value, since the amount of data written is always equal to the amount " +"of data supplied." msgstr "" #: ../../library/ossaudiodev.rst:176 msgid "" -"Audio device objects also support the context management protocol, i.e. they" -" can be used in a :keyword:`with` statement." +"Audio device objects also support the context management protocol, i.e. they " +"can be used in a :keyword:`with` statement." msgstr "" #: ../../library/ossaudiodev.rst:181 @@ -214,6 +220,11 @@ msgid "" "(this can be useful when consulting the OSS documentation). If the " "underlying :c:func:`ioctl` fails, they all raise :exc:`OSError`." msgstr "" +"Os seguintes métodos são mapeados para exatamente uma chamada de sistema :c:" +"func:`ioctl`. A correspondência é óbvia: por exemplo, :meth:`setfmt` " +"corresponde a ``SNDCTL_DSP_SETFMT`` ioctl e :meth:`sync` a " +"``SNDCTL_DSP_SYNC`` (isto pode ser útil ao consultar a documentação do OSS). " +"Se o :c:func:`ioctl` subjacente falhar, todos eles levantam :exc:`OSError`." #: ../../library/ossaudiodev.rst:190 msgid "" @@ -237,7 +248,7 @@ msgstr "Description (descrição)" #: ../../library/ossaudiodev.rst:202 msgid ":const:`AFMT_MU_LAW`" -msgstr "" +msgstr ":const:`AFMT_MU_LAW`" #: ../../library/ossaudiodev.rst:202 msgid "" @@ -246,7 +257,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:205 msgid ":const:`AFMT_A_LAW`" -msgstr "" +msgstr ":const:`AFMT_A_LAW`" #: ../../library/ossaudiodev.rst:205 msgid "a logarithmic encoding" @@ -254,7 +265,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:207 msgid ":const:`AFMT_IMA_ADPCM`" -msgstr "" +msgstr ":const:`AFMT_IMA_ADPCM`" #: ../../library/ossaudiodev.rst:207 msgid "" @@ -263,7 +274,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:210 msgid ":const:`AFMT_U8`" -msgstr "" +msgstr ":const:`AFMT_U8`" #: ../../library/ossaudiodev.rst:210 msgid "Unsigned, 8-bit audio" @@ -271,7 +282,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:212 msgid ":const:`AFMT_S16_LE`" -msgstr "" +msgstr ":const:`AFMT_S16_LE`" #: ../../library/ossaudiodev.rst:212 msgid "" @@ -280,7 +291,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:215 msgid ":const:`AFMT_S16_BE`" -msgstr "" +msgstr ":const:`AFMT_S16_BE`" #: ../../library/ossaudiodev.rst:215 msgid "" @@ -289,7 +300,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:218 msgid ":const:`AFMT_S8`" -msgstr "" +msgstr ":const:`AFMT_S8`" #: ../../library/ossaudiodev.rst:218 msgid "Signed, 8 bit audio" @@ -297,7 +308,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:220 msgid ":const:`AFMT_U16_LE`" -msgstr "" +msgstr ":const:`AFMT_U16_LE`" #: ../../library/ossaudiodev.rst:220 msgid "Unsigned, 16-bit little-endian audio" @@ -305,7 +316,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:222 msgid ":const:`AFMT_U16_BE`" -msgstr "" +msgstr ":const:`AFMT_U16_BE`" #: ../../library/ossaudiodev.rst:222 msgid "Unsigned, 16-bit big-endian audio" @@ -315,24 +326,24 @@ msgstr "" msgid "" "Consult the OSS documentation for a full list of audio formats, and note " "that most devices support only a subset of these formats. Some older " -"devices only support :const:`AFMT_U8`; the most common format used today is " -":const:`AFMT_S16_LE`." +"devices only support :const:`AFMT_U8`; the most common format used today is :" +"const:`AFMT_S16_LE`." msgstr "" #: ../../library/ossaudiodev.rst:233 msgid "" "Try to set the current audio format to *format*---see :meth:`getfmts` for a " -"list. Returns the audio format that the device was set to, which may not be" -" the requested format. May also be used to return the current audio format" -"---do this by passing an \"audio format\" of :const:`AFMT_QUERY`." +"list. Returns the audio format that the device was set to, which may not be " +"the requested format. May also be used to return the current audio format---" +"do this by passing an \"audio format\" of :const:`AFMT_QUERY`." msgstr "" #: ../../library/ossaudiodev.rst:241 msgid "" "Set the number of output channels to *nchannels*. A value of 1 indicates " "monophonic sound, 2 stereophonic. Some devices may have more than 2 " -"channels, and some high-end devices may not support mono. Returns the number" -" of channels the device was set to." +"channels, and some high-end devices may not support mono. Returns the number " +"of channels the device was set to." msgstr "" #: ../../library/ossaudiodev.rst:249 @@ -391,8 +402,8 @@ msgstr "" #: ../../library/ossaudiodev.rst:278 msgid "" -"Immediately stop playing or recording and return the device to a state where" -" it can accept commands. The OSS documentation recommends closing and re-" +"Immediately stop playing or recording and return the device to a state where " +"it can accept commands. The OSS documentation recommends closing and re-" "opening the device after calling :meth:`reset`." msgstr "" @@ -414,13 +425,13 @@ msgstr "" msgid "" "Set the key audio sampling parameters---sample format, number of channels, " "and sampling rate---in one method call. *format*, *nchannels*, and " -"*samplerate* should be as specified in the :meth:`setfmt`, :meth:`channels`," -" and :meth:`speed` methods. If *strict* is true, :meth:`setparameters` " -"checks to see if each parameter was actually set to the requested value, and" -" raises :exc:`OSSAudioError` if not. Returns a tuple (*format*, " -"*nchannels*, *samplerate*) indicating the parameter values that were " -"actually set by the device driver (i.e., the same as the return values of " -":meth:`setfmt`, :meth:`channels`, and :meth:`speed`)." +"*samplerate* should be as specified in the :meth:`setfmt`, :meth:`channels`, " +"and :meth:`speed` methods. If *strict* is true, :meth:`setparameters` " +"checks to see if each parameter was actually set to the requested value, and " +"raises :exc:`OSSAudioError` if not. Returns a tuple (*format*, *nchannels*, " +"*samplerate*) indicating the parameter values that were actually set by the " +"device driver (i.e., the same as the return values of :meth:`setfmt`, :meth:" +"`channels`, and :meth:`speed`)." msgstr "" #: ../../library/ossaudiodev.rst:306 @@ -492,18 +503,17 @@ msgstr "Os métodos restantes são específicos para edição de audio:" #: ../../library/ossaudiodev.rst:377 msgid "" "This method returns a bitmask specifying the available mixer controls " -"(\"Control\" being a specific mixable \"channel\", such as " -":const:`SOUND_MIXER_PCM` or :const:`SOUND_MIXER_SYNTH`). This bitmask " -"indicates a subset of all available mixer controls---the " -":const:`SOUND_MIXER_\\*` constants defined at module level. To determine if," -" for example, the current mixer object supports a PCM mixer, use the " -"following Python code::" +"(\"Control\" being a specific mixable \"channel\", such as :const:" +"`SOUND_MIXER_PCM` or :const:`SOUND_MIXER_SYNTH`). This bitmask indicates a " +"subset of all available mixer controls---the :const:`SOUND_MIXER_\\*` " +"constants defined at module level. To determine if, for example, the current " +"mixer object supports a PCM mixer, use the following Python code::" msgstr "" #: ../../library/ossaudiodev.rst:389 msgid "" -"For most purposes, the :const:`SOUND_MIXER_VOLUME` (master volume) and " -":const:`SOUND_MIXER_PCM` controls should suffice---but code that uses the " +"For most purposes, the :const:`SOUND_MIXER_VOLUME` (master volume) and :" +"const:`SOUND_MIXER_PCM` controls should suffice---but code that uses the " "mixer should be flexible when it comes to choosing mixer controls. On the " "Gravis Ultrasound, for example, :const:`SOUND_MIXER_VOLUME` does not exist." msgstr "" @@ -512,8 +522,8 @@ msgstr "" msgid "" "Returns a bitmask indicating stereo mixer controls. If a bit is set, the " "corresponding control is stereo; if it is unset, the control is either " -"monophonic or not supported by the mixer (use in combination with " -":meth:`controls` to determine which)." +"monophonic or not supported by the mixer (use in combination with :meth:" +"`controls` to determine which)." msgstr "" #: ../../library/ossaudiodev.rst:402 @@ -524,23 +534,23 @@ msgstr "" #: ../../library/ossaudiodev.rst:408 msgid "" -"Returns a bitmask specifying the mixer controls that may be used to record." -" See the code example for :meth:`controls` for an example of reading from a" -" bitmask." +"Returns a bitmask specifying the mixer controls that may be used to record. " +"See the code example for :meth:`controls` for an example of reading from a " +"bitmask." msgstr "" #: ../../library/ossaudiodev.rst:414 msgid "" -"Returns the volume of a given mixer control. The returned volume is a " -"2-tuple ``(left_volume,right_volume)``. Volumes are specified as numbers " -"from 0 (silent) to 100 (full volume). If the control is monophonic, a " -"2-tuple is still returned, but both volumes are the same." +"Returns the volume of a given mixer control. The returned volume is a 2-" +"tuple ``(left_volume,right_volume)``. Volumes are specified as numbers from " +"0 (silent) to 100 (full volume). If the control is monophonic, a 2-tuple is " +"still returned, but both volumes are the same." msgstr "" #: ../../library/ossaudiodev.rst:419 msgid "" -"Raises :exc:`OSSAudioError` if an invalid control is specified, or " -":exc:`OSError` if an unsupported control is specified." +"Raises :exc:`OSSAudioError` if an invalid control is specified, or :exc:" +"`OSError` if an unsupported control is specified." msgstr "" #: ../../library/ossaudiodev.rst:425 @@ -554,8 +564,8 @@ msgstr "" #: ../../library/ossaudiodev.rst:431 msgid "" -"Raises :exc:`OSSAudioError` if an invalid mixer control was specified, or if" -" the specified volumes were out-of-range." +"Raises :exc:`OSSAudioError` if an invalid mixer control was specified, or if " +"the specified volumes were out-of-range." msgstr "" #: ../../library/ossaudiodev.rst:437 @@ -567,7 +577,7 @@ msgstr "" #: ../../library/ossaudiodev.rst:443 msgid "" "Call this function to specify a recording source. Returns a bitmask " -"indicating the new recording source (or sources) if successful; raises " -":exc:`OSError` if an invalid source was specified. To set the current " -"recording source to the microphone input::" +"indicating the new recording source (or sources) if successful; raises :exc:" +"`OSError` if an invalid source was specified. To set the current recording " +"source to the microphone input::" msgstr "" diff --git a/library/othergui.po b/library/othergui.po index 6436791ab..6a6373070 100644 --- a/library/othergui.po +++ b/library/othergui.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,8 +41,8 @@ msgid "" "PyGObject provides introspection bindings for C libraries using `GObject " "`_. One of these libraries is " "the `GTK+ 3 `_ widget set. GTK+ comes with many more " -"widgets than Tkinter provides. An online `Python GTK+ 3 Tutorial `_ is available." +"widgets than Tkinter provides. An online `Python GTK+ 3 Tutorial `_ is available." msgstr "" #: ../../library/othergui.rst:24 @@ -51,8 +52,8 @@ msgstr "" #: ../../library/othergui.rst:20 msgid "" "PyGTK provides bindings for an older version of the library, GTK+ 2. It " -"provides an object oriented interface that is slightly higher level than the" -" C one. There are also bindings to `GNOME `_. An " +"provides an object oriented interface that is slightly higher level than the " +"C one. There are also bindings to `GNOME `_. An " "online `tutorial `_ is " "available." msgstr "" @@ -65,9 +66,8 @@ msgstr "" msgid "" "PyQt is a :program:`sip`\\ -wrapped binding to the Qt toolkit. Qt is an " "extensive C++ GUI application development framework that is available for " -"Unix, Windows and Mac OS X. :program:`sip` is a tool for generating bindings" -" for C++ libraries as Python classes, and is specifically designed for " -"Python." +"Unix, Windows and Mac OS X. :program:`sip` is a tool for generating bindings " +"for C++ libraries as Python classes, and is specifically designed for Python." msgstr "" #: ../../library/othergui.rst:36 @@ -86,12 +86,12 @@ msgstr "" #: ../../library/othergui.rst:39 msgid "" -"wxPython is a cross-platform GUI toolkit for Python that is built around the" -" popular `wxWidgets `_ (formerly wxWindows) C++ " +"wxPython is a cross-platform GUI toolkit for Python that is built around the " +"popular `wxWidgets `_ (formerly wxWindows) C++ " "toolkit. It provides a native look and feel for applications on Windows, " "Mac OS X, and Unix systems by using each platform's native widgets where " -"ever possible, (GTK+ on Unix-like systems). In addition to an extensive set" -" of widgets, wxPython provides classes for online documentation and context " +"ever possible, (GTK+ on Unix-like systems). In addition to an extensive set " +"of widgets, wxPython provides classes for online documentation and context " "sensitive help, printing, HTML viewing, low-level device context drawing, " "drag and drop, system clipboard access, an XML-based resource format and " "more, including an ever growing library of user-contributed modules." diff --git a/library/parser.po b/library/parser.po index 683a060aa..e25d4423d 100644 --- a/library/parser.po +++ b/library/parser.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-21 03:33+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -57,13 +58,13 @@ msgstr "" msgid "" "There are a few things to note about this module which are important to " "making use of the data structures created. This is not a tutorial on " -"editing the parse trees for Python code, but some examples of using the " -":mod:`parser` module are presented." +"editing the parse trees for Python code, but some examples of using the :mod:" +"`parser` module are presented." msgstr "" "Há algumas coisas a serem observadas sobre este módulo que são importantes " -"para fazer uso das estruturas de dados criadas. Este não é um tutorial sobre" -" como editar as árvores de análise para o código Python, mas são " -"apresentados alguns exemplos de uso do módulo :mod:`parser`." +"para fazer uso das estruturas de dados criadas. Este não é um tutorial sobre " +"como editar as árvores de análise para o código Python, mas são apresentados " +"alguns exemplos de uso do módulo :mod:`parser`." #: ../../library/parser.rst:39 msgid "" @@ -88,24 +89,23 @@ msgstr "" #: ../../library/parser.rst:57 msgid "" -"Each element of the sequences returned by :func:`st2list` or " -":func:`st2tuple` has a simple form. Sequences representing non-terminal " -"elements in the grammar always have a length greater than one. The first " -"element is an integer which identifies a production in the grammar. These " -"integers are given symbolic names in the C header file " -":file:`Include/graminit.h` and the Python module :mod:`symbol`. Each " -"additional element of the sequence represents a component of the production " -"as recognized in the input string: these are always sequences which have the" -" same form as the parent. An important aspect of this structure which " -"should be noted is that keywords used to identify the parent node type, such" -" as the keyword :keyword:`if` in an :const:`if_stmt`, are included in the " -"node tree without any special treatment. For example, the :keyword:`!if` " -"keyword is represented by the tuple ``(1, 'if')``, where ``1`` is the " -"numeric value associated with all :const:`NAME` tokens, including variable " -"and function names defined by the user. In an alternate form returned when " -"line number information is requested, the same token might be represented as" -" ``(1, 'if', 12)``, where the ``12`` represents the line number at which the" -" terminal symbol was found." +"Each element of the sequences returned by :func:`st2list` or :func:" +"`st2tuple` has a simple form. Sequences representing non-terminal elements " +"in the grammar always have a length greater than one. The first element is " +"an integer which identifies a production in the grammar. These integers are " +"given symbolic names in the C header file :file:`Include/graminit.h` and the " +"Python module :mod:`symbol`. Each additional element of the sequence " +"represents a component of the production as recognized in the input string: " +"these are always sequences which have the same form as the parent. An " +"important aspect of this structure which should be noted is that keywords " +"used to identify the parent node type, such as the keyword :keyword:`if` in " +"an :const:`if_stmt`, are included in the node tree without any special " +"treatment. For example, the :keyword:`!if` keyword is represented by the " +"tuple ``(1, 'if')``, where ``1`` is the numeric value associated with all :" +"const:`NAME` tokens, including variable and function names defined by the " +"user. In an alternate form returned when line number information is " +"requested, the same token might be represented as ``(1, 'if', 12)``, where " +"the ``12`` represents the line number at which the terminal symbol was found." msgstr "" #: ../../library/parser.rst:74 @@ -113,25 +113,25 @@ msgid "" "Terminal elements are represented in much the same way, but without any " "child elements and the addition of the source text which was identified. " "The example of the :keyword:`if` keyword above is representative. The " -"various types of terminal symbols are defined in the C header file " -":file:`Include/token.h` and the Python module :mod:`token`." +"various types of terminal symbols are defined in the C header file :file:" +"`Include/token.h` and the Python module :mod:`token`." msgstr "" #: ../../library/parser.rst:80 msgid "" -"The ST objects are not required to support the functionality of this module," -" but are provided for three purposes: to allow an application to amortize " -"the cost of processing complex parse trees, to provide a parse tree " -"representation which conserves memory space when compared to the Python list" -" or tuple representation, and to ease the creation of additional modules in " -"C which manipulate parse trees. A simple \"wrapper\" class may be created " -"in Python to hide the use of ST objects." +"The ST objects are not required to support the functionality of this module, " +"but are provided for three purposes: to allow an application to amortize the " +"cost of processing complex parse trees, to provide a parse tree " +"representation which conserves memory space when compared to the Python list " +"or tuple representation, and to ease the creation of additional modules in C " +"which manipulate parse trees. A simple \"wrapper\" class may be created in " +"Python to hide the use of ST objects." msgstr "" #: ../../library/parser.rst:88 msgid "" -"The :mod:`parser` module defines functions for a few distinct purposes. The" -" most important purposes are to create ST objects and to convert ST objects " +"The :mod:`parser` module defines functions for a few distinct purposes. The " +"most important purposes are to create ST objects and to convert ST objects " "to other representations such as parse trees and compiled code objects, but " "there are also functions which serve to query the type of parse tree " "represented by an ST object." @@ -151,8 +151,8 @@ msgstr "" #: ../../library/parser.rst:101 msgid "" -"Useful constants representing leaf nodes of the parse tree and functions for" -" testing node values." +"Useful constants representing leaf nodes of the parse tree and functions for " +"testing node values." msgstr "" #: ../../library/parser.rst:108 @@ -189,23 +189,23 @@ msgid "" "conforms to the Python grammar and all nodes are valid node types in the " "host version of Python, an ST object is created from the internal " "representation and returned to the called. If there is a problem creating " -"the internal representation, or if the tree cannot be validated, a " -":exc:`ParserError` exception is raised. An ST object created this way " -"should not be assumed to compile correctly; normal exceptions raised by " -"compilation may still be initiated when the ST object is passed to " -":func:`compilest`. This may indicate problems not related to syntax (such " -"as a :exc:`MemoryError` exception), but may also be due to constructs such " -"as the result of parsing ``del f(0)``, which escapes the Python parser but " -"is checked by the bytecode compiler." +"the internal representation, or if the tree cannot be validated, a :exc:" +"`ParserError` exception is raised. An ST object created this way should not " +"be assumed to compile correctly; normal exceptions raised by compilation may " +"still be initiated when the ST object is passed to :func:`compilest`. This " +"may indicate problems not related to syntax (such as a :exc:`MemoryError` " +"exception), but may also be due to constructs such as the result of parsing " +"``del f(0)``, which escapes the Python parser but is checked by the bytecode " +"compiler." msgstr "" #: ../../library/parser.rst:146 msgid "" "Sequences representing terminal tokens may be represented as either two-" "element lists of the form ``(1, 'name')`` or as three-element lists of the " -"form ``(1, 'name', 56)``. If the third element is present, it is assumed to" -" be a valid line number. The line number may be specified for any subset of" -" the terminal symbols in the input tree." +"form ``(1, 'name', 56)``. If the third element is present, it is assumed to " +"be a valid line number. The line number may be specified for any subset of " +"the terminal symbols in the input tree." msgstr "" #: ../../library/parser.rst:155 @@ -220,8 +220,8 @@ msgstr "" #: ../../library/parser.rst:164 msgid "" -"ST objects, regardless of the input used to create them, may be converted to" -" parse trees represented as list- or tuple- trees, or may be compiled into " +"ST objects, regardless of the input used to create them, may be converted to " +"parse trees represented as list- or tuple- trees, or may be compiled into " "executable code objects. Parse trees may be extracted with or without line " "numbering information." msgstr "" @@ -242,33 +242,33 @@ msgstr "" #: ../../library/parser.rst:182 msgid "" "If *line_info* is true, line number information will be included for all " -"terminal tokens as a third element of the list representing the token. Note" -" that the line number provided specifies the line on which the token *ends*." -" This information is omitted if the flag is false or omitted." +"terminal tokens as a third element of the list representing the token. Note " +"that the line number provided specifies the line on which the token *ends*. " +"This information is omitted if the flag is false or omitted." msgstr "" #: ../../library/parser.rst:190 msgid "" "This function accepts an ST object from the caller in *st* and returns a " -"Python tuple representing the equivalent parse tree. Other than returning a" -" tuple instead of a list, this function is identical to :func:`st2list`." +"Python tuple representing the equivalent parse tree. Other than returning a " +"tuple instead of a list, this function is identical to :func:`st2list`." msgstr "" #: ../../library/parser.rst:194 msgid "" "If *line_info* is true, line number information will be included for all " -"terminal tokens as a third element of the list representing the token. This" -" information is omitted if the flag is false or omitted." +"terminal tokens as a third element of the list representing the token. This " +"information is omitted if the flag is false or omitted." msgstr "" #: ../../library/parser.rst:205 msgid "" "The Python byte compiler can be invoked on an ST object to produce code " -"objects which can be used as part of a call to the built-in :func:`exec` or " -":func:`eval` functions. This function provides the interface to the " -"compiler, passing the internal parse tree from *st* to the parser, using the" -" source file name specified by the *filename* parameter. The default value " -"supplied for *filename* indicates that the source was an ST object." +"objects which can be used as part of a call to the built-in :func:`exec` or :" +"func:`eval` functions. This function provides the interface to the compiler, " +"passing the internal parse tree from *st* to the parser, using the source " +"file name specified by the *filename* parameter. The default value supplied " +"for *filename* indicates that the source was an ST object." msgstr "" #: ../../library/parser.rst:212 @@ -276,8 +276,8 @@ msgid "" "Compiling an ST object may result in exceptions related to compilation; an " "example would be a :exc:`SyntaxError` caused by the parse tree for ``del " "f(0)``: this statement is considered legal within the formal grammar for " -"Python but is not a legal language construct. The :exc:`SyntaxError` raised" -" for this condition is actually generated by the Python byte-compiler " +"Python but is not a legal language construct. The :exc:`SyntaxError` raised " +"for this condition is actually generated by the Python byte-compiler " "normally, which is why it can be raised at this point by the :mod:`parser` " "module. Most causes of compilation failure can be diagnosed " "programmatically by inspection of the parse tree." @@ -291,24 +291,24 @@ msgstr "" msgid "" "Two functions are provided which allow an application to determine if an ST " "was created as an expression or a suite. Neither of these functions can be " -"used to determine if an ST was created from source code via :func:`expr` or " -":func:`suite` or from a parse tree via :func:`sequence2st`." +"used to determine if an ST was created from source code via :func:`expr` or :" +"func:`suite` or from a parse tree via :func:`sequence2st`." msgstr "" #: ../../library/parser.rst:237 msgid "" -"When *st* represents an ``'eval'`` form, this function returns true, " -"otherwise it returns false. This is useful, since code objects normally " +"When *st* represents an ``'eval'`` form, this function returns ``True``, " +"otherwise it returns ``False``. This is useful, since code objects normally " "cannot be queried for this information using existing built-in functions. " "Note that the code objects created by :func:`compilest` cannot be queried " -"like this either, and are identical to those created by the built-in " -":func:`compile` function." +"like this either, and are identical to those created by the built-in :func:" +"`compile` function." msgstr "" #: ../../library/parser.rst:246 msgid "" -"This function mirrors :func:`isexpr` in that it reports whether an ST object" -" represents an ``'exec'`` form, commonly known as a \"suite.\" It is not " +"This function mirrors :func:`isexpr` in that it reports whether an ST object " +"represents an ``'exec'`` form, commonly known as a \"suite.\" It is not " "safe to assume that this function is equivalent to ``not isexpr(st)``, as " "additional syntactic fragments may be supported in the future." msgstr "" @@ -327,23 +327,22 @@ msgstr "" #: ../../library/parser.rst:264 msgid "" "Exception raised when a failure occurs within the parser module. This is " -"generally produced for validation failures rather than the built-in " -":exc:`SyntaxError` raised during normal parsing. The exception argument is " -"either a string describing the reason of the failure or a tuple containing a" -" sequence causing the failure from a parse tree passed to " -":func:`sequence2st` and an explanatory string. Calls to :func:`sequence2st`" -" need to be able to handle either type of exception, while calls to other " -"functions in the module will only need to be aware of the simple string " -"values." +"generally produced for validation failures rather than the built-in :exc:" +"`SyntaxError` raised during normal parsing. The exception argument is either " +"a string describing the reason of the failure or a tuple containing a " +"sequence causing the failure from a parse tree passed to :func:`sequence2st` " +"and an explanatory string. Calls to :func:`sequence2st` need to be able to " +"handle either type of exception, while calls to other functions in the " +"module will only need to be aware of the simple string values." msgstr "" #: ../../library/parser.rst:273 msgid "" "Note that the functions :func:`compilest`, :func:`expr`, and :func:`suite` " "may raise exceptions which are normally raised by the parsing and " -"compilation process. These include the built in exceptions " -":exc:`MemoryError`, :exc:`OverflowError`, :exc:`SyntaxError`, and " -":exc:`SystemError`. In these cases, these exceptions carry all the meaning " +"compilation process. These include the built in exceptions :exc:" +"`MemoryError`, :exc:`OverflowError`, :exc:`SyntaxError`, and :exc:" +"`SystemError`. In these cases, these exceptions carry all the meaning " "normally associated with them. Refer to the descriptions of each function " "for detailed information." msgstr "" @@ -360,8 +359,8 @@ msgstr "" #: ../../library/parser.rst:292 msgid "" -"The type of the objects returned by :func:`expr`, :func:`suite` and " -":func:`sequence2st`." +"The type of the objects returned by :func:`expr`, :func:`suite` and :func:" +"`sequence2st`." msgstr "" #: ../../library/parser.rst:295 diff --git a/library/pathlib.po b/library/pathlib.po index 84f750e89..5d4911988 100644 --- a/library/pathlib.po +++ b/library/pathlib.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-09 11:23+0900\n" +"POT-Creation-Date: 2020-04-19 13:38+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -60,9 +62,9 @@ msgstr "" #: ../../library/pathlib.rst:34 msgid "" -"You want to make sure that your code only manipulates paths without actually" -" accessing the OS. In this case, instantiating one of the pure classes may " -"be useful since those simply don't have any OS-accessing operations." +"You want to make sure that your code only manipulates paths without actually " +"accessing the OS. In this case, instantiating one of the pure classes may be " +"useful since those simply don't have any OS-accessing operations." msgstr "" #: ../../library/pathlib.rst:39 @@ -71,8 +73,8 @@ msgstr "" #: ../../library/pathlib.rst:42 msgid "" -"For low-level path manipulation on strings, you can also use the " -":mod:`os.path` module." +"For low-level path manipulation on strings, you can also use the :mod:`os." +"path` module." msgstr "" #: ../../library/pathlib.rst:47 @@ -110,8 +112,8 @@ msgstr "Caminhos puros" #: ../../library/pathlib.rst:95 msgid "" "Pure path objects provide path-handling operations which don't actually " -"access a filesystem. There are three ways to access these classes, which we" -" also call *flavours*:" +"access a filesystem. There are three ways to access these classes, which we " +"also call *flavours*:" msgstr "" #: ../../library/pathlib.rst:101 @@ -174,8 +176,8 @@ msgid "" msgstr "" #: ../../library/pathlib.rst:164 ../../library/pathlib.rst:174 -#: ../../library/pathlib.rst:595 ../../library/pathlib.rst:605 -#: ../../library/pathlib.rst:615 +#: ../../library/pathlib.rst:597 ../../library/pathlib.rst:607 +#: ../../library/pathlib.rst:617 msgid "*pathsegments* is specified similarly to :class:`PurePath`." msgstr "" @@ -187,8 +189,8 @@ msgstr "" #: ../../library/pathlib.rst:176 msgid "" -"Regardless of the system you're running on, you can instantiate all of these" -" classes, since they don't provide any operation that does system calls." +"Regardless of the system you're running on, you can instantiate all of these " +"classes, since they don't provide any operation that does system calls." msgstr "" #: ../../library/pathlib.rst:181 @@ -212,27 +214,27 @@ msgstr "Operadores" #: ../../library/pathlib.rst:209 msgid "" -"The slash operator helps create child paths, similarly to " -":func:`os.path.join`::" +"The slash operator helps create child paths, similarly to :func:`os.path." +"join`::" msgstr "" #: ../../library/pathlib.rst:220 msgid "" -"A path object can be used anywhere an object implementing " -":class:`os.PathLike` is accepted::" +"A path object can be used anywhere an object implementing :class:`os." +"PathLike` is accepted::" msgstr "" #: ../../library/pathlib.rst:228 msgid "" "The string representation of a path is the raw filesystem path itself (in " -"native form, e.g. with backslashes under Windows), which you can pass to any" -" function taking a file path as a string::" +"native form, e.g. with backslashes under Windows), which you can pass to any " +"function taking a file path as a string::" msgstr "" #: ../../library/pathlib.rst:239 msgid "" -"Similarly, calling :class:`bytes` on a path gives the raw filesystem path as" -" a bytes object, as encoded by :func:`os.fsencode`::" +"Similarly, calling :class:`bytes` on a path gives the raw filesystem path as " +"a bytes object, as encoded by :func:`os.fsencode`::" msgstr "" #: ../../library/pathlib.rst:246 @@ -247,8 +249,8 @@ msgstr "" #: ../../library/pathlib.rst:253 msgid "" -"To access the individual \"parts\" (components) of a path, use the following" -" property:" +"To access the individual \"parts\" (components) of a path, use the following " +"property:" msgstr "" #: ../../library/pathlib.rst:258 @@ -289,8 +291,7 @@ msgstr "" #: ../../library/pathlib.rst:328 msgid "" -"An immutable sequence providing access to the logical ancestors of the " -"path::" +"An immutable sequence providing access to the logical ancestors of the path::" msgstr "" #: ../../library/pathlib.rst:342 @@ -308,8 +309,8 @@ msgstr "" #: ../../library/pathlib.rst:364 msgid "" "If you want to walk an arbitrary filesystem path upwards, it is recommended " -"to first call :meth:`Path.resolve` so as to resolve symlinks and eliminate " -"`\"..\"` components." +"to first call :meth:`Path.resolve` so as to resolve symlinks and eliminate `" +"\"..\"` components." msgstr "" #: ../../library/pathlib.rst:371 @@ -360,8 +361,8 @@ msgstr "" #: ../../library/pathlib.rst:476 msgid "" -"File system calls on reserved paths can fail mysteriously or have unintended" -" effects." +"File system calls on reserved paths can fail mysteriously or have unintended " +"effects." msgstr "" #: ../../library/pathlib.rst:482 @@ -372,8 +373,8 @@ msgstr "" #: ../../library/pathlib.rst:497 msgid "" -"Match this path against the provided glob-style pattern. Return ``True`` if" -" matching is successful, ``False`` otherwise." +"Match this path against the provided glob-style pattern. Return ``True`` if " +"matching is successful, ``False`` otherwise." msgstr "" #: ../../library/pathlib.rst:500 @@ -384,164 +385,165 @@ msgstr "" #: ../../library/pathlib.rst:510 msgid "" -"If *pattern* is absolute, the path must be absolute, and the whole path must" -" match::" +"If *pattern* is absolute, the path must be absolute, and the whole path must " +"match::" msgstr "" #: ../../library/pathlib.rst:518 -msgid "As with other methods, case-sensitivity is observed::" +msgid "As with other methods, case-sensitivity follows platform defaults::" msgstr "" -#: ../../library/pathlib.rst:526 +#: ../../library/pathlib.rst:528 msgid "" -"Compute a version of this path relative to the path represented by *other*." -" If it's impossible, ValueError is raised::" +"Compute a version of this path relative to the path represented by *other*. " +"If it's impossible, ValueError is raised::" msgstr "" -#: ../../library/pathlib.rst:544 +#: ../../library/pathlib.rst:546 msgid "" "Return a new path with the :attr:`name` changed. If the original path " "doesn't have a name, ValueError is raised::" msgstr "" -#: ../../library/pathlib.rst:561 +#: ../../library/pathlib.rst:563 msgid "" "Return a new path with the :attr:`suffix` changed. If the original path " "doesn't have a suffix, the new *suffix* is appended instead. If the " "*suffix* is an empty string, the original suffix is removed::" msgstr "" -#: ../../library/pathlib.rst:580 +#: ../../library/pathlib.rst:582 msgid "Concrete paths" msgstr "Caminhos Concretos" -#: ../../library/pathlib.rst:582 +#: ../../library/pathlib.rst:584 msgid "" "Concrete paths are subclasses of the pure path classes. In addition to " "operations provided by the latter, they also provide methods to do system " "calls on path objects. There are three ways to instantiate concrete paths:" msgstr "" -#: ../../library/pathlib.rst:588 +#: ../../library/pathlib.rst:590 msgid "" -"A subclass of :class:`PurePath`, this class represents concrete paths of the" -" system's path flavour (instantiating it creates either a :class:`PosixPath`" -" or a :class:`WindowsPath`)::" +"A subclass of :class:`PurePath`, this class represents concrete paths of the " +"system's path flavour (instantiating it creates either a :class:`PosixPath` " +"or a :class:`WindowsPath`)::" msgstr "" -#: ../../library/pathlib.rst:599 +#: ../../library/pathlib.rst:601 msgid "" "A subclass of :class:`Path` and :class:`PurePosixPath`, this class " "represents concrete non-Windows filesystem paths::" msgstr "" -#: ../../library/pathlib.rst:609 +#: ../../library/pathlib.rst:611 msgid "" "A subclass of :class:`Path` and :class:`PureWindowsPath`, this class " "represents concrete Windows filesystem paths::" msgstr "" -#: ../../library/pathlib.rst:617 +#: ../../library/pathlib.rst:619 msgid "" "You can only instantiate the class flavour that corresponds to your system " -"(allowing system calls on non-compatible path flavours could lead to bugs or" -" failures in your application)::" +"(allowing system calls on non-compatible path flavours could lead to bugs or " +"failures in your application)::" msgstr "" -#: ../../library/pathlib.rst:637 +#: ../../library/pathlib.rst:639 msgid "Methods" msgstr "Métodos" -#: ../../library/pathlib.rst:639 +#: ../../library/pathlib.rst:641 msgid "" "Concrete paths provide the following methods in addition to pure paths " -"methods. Many of these methods can raise an :exc:`OSError` if a system call" -" fails (for example because the path doesn't exist):" +"methods. Many of these methods can raise an :exc:`OSError` if a system call " +"fails (for example because the path doesn't exist):" msgstr "" -#: ../../library/pathlib.rst:645 +#: ../../library/pathlib.rst:647 msgid "" -"Return a new path object representing the current directory (as returned by " -":func:`os.getcwd`)::" +"Return a new path object representing the current directory (as returned by :" +"func:`os.getcwd`)::" msgstr "" -#: ../../library/pathlib.rst:654 +#: ../../library/pathlib.rst:656 msgid "" -"Return a new path object representing the user's home directory (as returned" -" by :func:`os.path.expanduser` with ``~`` construct)::" +"Return a new path object representing the user's home directory (as returned " +"by :func:`os.path.expanduser` with ``~`` construct)::" msgstr "" -#: ../../library/pathlib.rst:665 +#: ../../library/pathlib.rst:667 msgid "" -"Return information about this path (similarly to :func:`os.stat`). The " -"result is looked up at each call to this method." +"Return a :class:`os.stat_result` object containing information about this " +"path, like :func:`os.stat`. The result is looked up at each call to this " +"method." msgstr "" -#: ../../library/pathlib.rst:679 +#: ../../library/pathlib.rst:681 msgid "Change the file mode and permissions, like :func:`os.chmod`::" msgstr "" -#: ../../library/pathlib.rst:691 +#: ../../library/pathlib.rst:693 msgid "Whether the path points to an existing file or directory::" msgstr "" -#: ../../library/pathlib.rst:703 +#: ../../library/pathlib.rst:705 msgid "" "If the path points to a symlink, :meth:`exists` returns whether the symlink " "*points to* an existing file or directory." msgstr "" -#: ../../library/pathlib.rst:709 +#: ../../library/pathlib.rst:711 msgid "" "Return a new path with expanded ``~`` and ``~user`` constructs, as returned " "by :meth:`os.path.expanduser`::" msgstr "" -#: ../../library/pathlib.rst:721 +#: ../../library/pathlib.rst:723 msgid "" -"Glob the given relative *pattern* in the directory represented by this path," -" yielding all matching files (of any kind)::" +"Glob the given relative *pattern* in the directory represented by this path, " +"yielding all matching files (of any kind)::" msgstr "" -#: ../../library/pathlib.rst:729 +#: ../../library/pathlib.rst:731 msgid "" "The \"``**``\" pattern means \"this directory and all subdirectories, " "recursively\". In other words, it enables recursive globbing::" msgstr "" -#: ../../library/pathlib.rst:740 +#: ../../library/pathlib.rst:742 msgid "" "Using the \"``**``\" pattern in large directory trees may consume an " "inordinate amount of time." msgstr "" -#: ../../library/pathlib.rst:746 +#: ../../library/pathlib.rst:748 msgid "" "Return the name of the group owning the file. :exc:`KeyError` is raised if " "the file's gid isn't found in the system database." msgstr "" -#: ../../library/pathlib.rst:752 +#: ../../library/pathlib.rst:754 msgid "" "Return ``True`` if the path points to a directory (or a symbolic link " "pointing to a directory), ``False`` if it points to another kind of file." msgstr "" -#: ../../library/pathlib.rst:755 ../../library/pathlib.rst:764 -#: ../../library/pathlib.rst:793 ../../library/pathlib.rst:802 -#: ../../library/pathlib.rst:811 ../../library/pathlib.rst:820 +#: ../../library/pathlib.rst:757 ../../library/pathlib.rst:766 +#: ../../library/pathlib.rst:795 ../../library/pathlib.rst:804 +#: ../../library/pathlib.rst:813 ../../library/pathlib.rst:822 msgid "" -"``False`` is also returned if the path doesn't exist or is a broken symlink;" -" other errors (such as permission errors) are propagated." +"``False`` is also returned if the path doesn't exist or is a broken symlink; " +"other errors (such as permission errors) are propagated." msgstr "" -#: ../../library/pathlib.rst:761 +#: ../../library/pathlib.rst:763 msgid "" "Return ``True`` if the path points to a regular file (or a symbolic link " "pointing to a regular file), ``False`` if it points to another kind of file." msgstr "" -#: ../../library/pathlib.rst:770 +#: ../../library/pathlib.rst:772 msgid "" "Return ``True`` if the path is a :dfn:`mount point`: a point in a file " "system where a different file system has been mounted. On POSIX, the " @@ -551,182 +553,182 @@ msgid "" "and POSIX variants. Not implemented on Windows." msgstr "" -#: ../../library/pathlib.rst:782 +#: ../../library/pathlib.rst:784 msgid "" "Return ``True`` if the path points to a symbolic link, ``False`` otherwise." msgstr "" -#: ../../library/pathlib.rst:784 +#: ../../library/pathlib.rst:786 msgid "" "``False`` is also returned if the path doesn't exist; other errors (such as " "permission errors) are propagated." msgstr "" -#: ../../library/pathlib.rst:790 +#: ../../library/pathlib.rst:792 msgid "" "Return ``True`` if the path points to a Unix socket (or a symbolic link " "pointing to a Unix socket), ``False`` if it points to another kind of file." msgstr "" -#: ../../library/pathlib.rst:799 +#: ../../library/pathlib.rst:801 msgid "" -"Return ``True`` if the path points to a FIFO (or a symbolic link pointing to" -" a FIFO), ``False`` if it points to another kind of file." +"Return ``True`` if the path points to a FIFO (or a symbolic link pointing to " +"a FIFO), ``False`` if it points to another kind of file." msgstr "" -#: ../../library/pathlib.rst:808 +#: ../../library/pathlib.rst:810 msgid "" "Return ``True`` if the path points to a block device (or a symbolic link " "pointing to a block device), ``False`` if it points to another kind of file." msgstr "" -#: ../../library/pathlib.rst:817 +#: ../../library/pathlib.rst:819 msgid "" -"Return ``True`` if the path points to a character device (or a symbolic link" -" pointing to a character device), ``False`` if it points to another kind of " +"Return ``True`` if the path points to a character device (or a symbolic link " +"pointing to a character device), ``False`` if it points to another kind of " "file." msgstr "" -#: ../../library/pathlib.rst:826 +#: ../../library/pathlib.rst:828 msgid "" "When the path points to a directory, yield path objects of the directory " "contents::" msgstr "" -#: ../../library/pathlib.rst:842 +#: ../../library/pathlib.rst:844 msgid "" "Like :meth:`Path.chmod` but, if the path points to a symbolic link, the " "symbolic link's mode is changed rather than its target's." msgstr "" -#: ../../library/pathlib.rst:848 +#: ../../library/pathlib.rst:850 msgid "" "Like :meth:`Path.stat` but, if the path points to a symbolic link, return " "the symbolic link's information rather than its target's." msgstr "" -#: ../../library/pathlib.rst:854 +#: ../../library/pathlib.rst:856 msgid "" "Create a new directory at this given path. If *mode* is given, it is " "combined with the process' ``umask`` value to determine the file mode and " "access flags. If the path already exists, :exc:`FileExistsError` is raised." msgstr "" -#: ../../library/pathlib.rst:859 +#: ../../library/pathlib.rst:861 msgid "" "If *parents* is true, any missing parents of this path are created as " "needed; they are created with the default permissions without taking *mode* " "into account (mimicking the POSIX ``mkdir -p`` command)." msgstr "" -#: ../../library/pathlib.rst:863 +#: ../../library/pathlib.rst:865 msgid "" -"If *parents* is false (the default), a missing parent raises " -":exc:`FileNotFoundError`." +"If *parents* is false (the default), a missing parent raises :exc:" +"`FileNotFoundError`." msgstr "" -#: ../../library/pathlib.rst:866 +#: ../../library/pathlib.rst:868 msgid "" "If *exist_ok* is false (the default), :exc:`FileExistsError` is raised if " "the target directory already exists." msgstr "" -#: ../../library/pathlib.rst:869 +#: ../../library/pathlib.rst:871 msgid "" "If *exist_ok* is true, :exc:`FileExistsError` exceptions will be ignored " -"(same behavior as the POSIX ``mkdir -p`` command), but only if the last path" -" component is not an existing non-directory file." +"(same behavior as the POSIX ``mkdir -p`` command), but only if the last path " +"component is not an existing non-directory file." msgstr "" -#: ../../library/pathlib.rst:873 +#: ../../library/pathlib.rst:875 msgid "The *exist_ok* parameter was added." msgstr "" -#: ../../library/pathlib.rst:879 +#: ../../library/pathlib.rst:881 msgid "" "Open the file pointed to by the path, like the built-in :func:`open` " "function does::" msgstr "" -#: ../../library/pathlib.rst:891 +#: ../../library/pathlib.rst:893 msgid "" "Return the name of the user owning the file. :exc:`KeyError` is raised if " "the file's uid isn't found in the system database." msgstr "" -#: ../../library/pathlib.rst:897 +#: ../../library/pathlib.rst:899 msgid "Return the binary contents of the pointed-to file as a bytes object::" msgstr "" -#: ../../library/pathlib.rst:910 +#: ../../library/pathlib.rst:912 msgid "Return the decoded contents of the pointed-to file as a string::" msgstr "" -#: ../../library/pathlib.rst:918 +#: ../../library/pathlib.rst:920 msgid "" "The file is opened and then closed. The optional parameters have the same " "meaning as in :func:`open`." msgstr "" -#: ../../library/pathlib.rst:926 +#: ../../library/pathlib.rst:928 msgid "" "Rename this file or directory to the given *target*. On Unix, if *target* " "exists and is a file, it will be replaced silently if the user has " "permission. *target* can be either a string or another path object::" msgstr "" -#: ../../library/pathlib.rst:941 +#: ../../library/pathlib.rst:943 msgid "" "Rename this file or directory to the given *target*. If *target* points to " "an existing file or directory, it will be unconditionally replaced." msgstr "" -#: ../../library/pathlib.rst:947 +#: ../../library/pathlib.rst:949 msgid "" "Make the path absolute, resolving any symlinks. A new path object is " "returned::" msgstr "" -#: ../../library/pathlib.rst:956 +#: ../../library/pathlib.rst:958 msgid "" "\"``..``\" components are also eliminated (this is the only method to do " "so)::" msgstr "" -#: ../../library/pathlib.rst:962 +#: ../../library/pathlib.rst:964 msgid "" -"If the path doesn't exist and *strict* is ``True``, :exc:`FileNotFoundError`" -" is raised. If *strict* is ``False``, the path is resolved as far as " +"If the path doesn't exist and *strict* is ``True``, :exc:`FileNotFoundError` " +"is raised. If *strict* is ``False``, the path is resolved as far as " "possible and any remainder is appended without checking whether it exists. " -"If an infinite loop is encountered along the resolution path, " -":exc:`RuntimeError` is raised." +"If an infinite loop is encountered along the resolution path, :exc:" +"`RuntimeError` is raised." msgstr "" -#: ../../library/pathlib.rst:968 +#: ../../library/pathlib.rst:970 msgid "The *strict* argument (pre-3.6 behavior is strict)." msgstr "" -#: ../../library/pathlib.rst:973 +#: ../../library/pathlib.rst:975 msgid "" "This is like calling :func:`Path.glob` with \"``**/``\" added in front of " "the given relative *pattern*::" msgstr "" -#: ../../library/pathlib.rst:986 +#: ../../library/pathlib.rst:988 msgid "Remove this directory. The directory must be empty." msgstr "Remove este diretório. O diretório deve estar vazio." -#: ../../library/pathlib.rst:991 +#: ../../library/pathlib.rst:993 msgid "" "Return whether this path points to the same file as *other_path*, which can " -"be either a Path object, or a string. The semantics are similar to " -":func:`os.path.samefile` and :func:`os.path.samestat`." +"be either a Path object, or a string. The semantics are similar to :func:" +"`os.path.samefile` and :func:`os.path.samestat`." msgstr "" "Retorna se este path apontar para o mesmo arquivo como *other_path*, que " -"pode ser um objeto PATH ou uma String. A semântica é semelhante a função " -":func:`os.path.samefile` e a função :func:`os.path.samestat`." +"pode ser um objeto PATH ou uma String. A semântica é semelhante a função :" +"func:`os.path.samefile` e a função :func:`os.path.samestat`." -#: ../../library/pathlib.rst:995 +#: ../../library/pathlib.rst:997 msgid "" "An :exc:`OSError` can be raised if either file cannot be accessed for some " "reason." @@ -734,32 +736,31 @@ msgstr "" "Um :exc:`OSError` poderá ser levantado caso algum arquivo não puder ser " "acessado por alguma razão." -#: ../../library/pathlib.rst:1012 +#: ../../library/pathlib.rst:1014 msgid "" "Make this path a symbolic link to *target*. Under Windows, " "*target_is_directory* must be true (default ``False``) if the link's target " "is a directory. Under POSIX, *target_is_directory*'s value is ignored." msgstr "" "Faz deste path um link simbólico para *target*. No Windows, " -"*target_is_directory* deverá ser verdadeiro (padrão ``False``) se o local do" -" link for um diretório. Num sistema POSIX, o valor *target_is_directory* " -"será ignorado." +"*target_is_directory* deverá ser verdadeiro (padrão ``False``) se o local do " +"link for um diretório. Num sistema POSIX, o valor *target_is_directory* será " +"ignorado." -#: ../../library/pathlib.rst:1028 +#: ../../library/pathlib.rst:1030 msgid "" -"The order of arguments (link, target) is the reverse of " -":func:`os.symlink`'s." +"The order of arguments (link, target) is the reverse of :func:`os.symlink`'s." msgstr "" -"A ordem dos argumentos (link, target) é o inverso da função " -":func:`os.symlink`'s." +"A ordem dos argumentos (link, target) é o inverso da função :func:`os." +"symlink`'s." -#: ../../library/pathlib.rst:1034 +#: ../../library/pathlib.rst:1036 msgid "" "Create a file at this given path. If *mode* is given, it is combined with " "the process' ``umask`` value to determine the file mode and access flags. " -"If the file already exists, the function succeeds if *exist_ok* is true (and" -" its modification time is updated to the current time), otherwise " -":exc:`FileExistsError` is raised." +"If the file already exists, the function succeeds if *exist_ok* is true (and " +"its modification time is updated to the current time), otherwise :exc:" +"`FileExistsError` is raised." msgstr "" "Cria um arquivo neste caminho especifico. Caso o *modo* for dado, ele será " "combinado com o valor do processo ``umask`` para determinar o modo de " @@ -768,213 +769,213 @@ msgstr "" "atualizado para a hora atual), caso contrário o erro :exc:`FileExistsError` " "será levantado." -#: ../../library/pathlib.rst:1043 +#: ../../library/pathlib.rst:1045 msgid "" -"Remove this file or symbolic link. If the path points to a directory, use " -":func:`Path.rmdir` instead." +"Remove this file or symbolic link. If the path points to a directory, use :" +"func:`Path.rmdir` instead." msgstr "" "Remova esse arquivo ou link simbólico. Caso o caminho aponte para um " "diretório, use a função :func:`Path.rmdir\" em vez disso." -#: ../../library/pathlib.rst:1049 +#: ../../library/pathlib.rst:1051 msgid "" "Open the file pointed to in bytes mode, write *data* to it, and close the " "file::" msgstr "" "Abre o arquivo apontado no modo bytes, escreve *dados* e fecha o arquivo::" -#: ../../library/pathlib.rst:1058 +#: ../../library/pathlib.rst:1060 msgid "An existing file of the same name is overwritten." msgstr "Um arquivo existente de mesmo nome será substituído." -#: ../../library/pathlib.rst:1065 +#: ../../library/pathlib.rst:1067 msgid "" "Open the file pointed to in text mode, write *data* to it, and close the " "file::" msgstr "" "Abre o arquivo apontado no modo de texto, escreve *data* e fecha o arquivo::" -#: ../../library/pathlib.rst:1077 +#: ../../library/pathlib.rst:1079 msgid "Correspondence to tools in the :mod:`os` module" msgstr "" -#: ../../library/pathlib.rst:1079 +#: ../../library/pathlib.rst:1081 msgid "" -"Below is a table mapping various :mod:`os` functions to their corresponding " -":class:`PurePath`/:class:`Path` equivalent." +"Below is a table mapping various :mod:`os` functions to their corresponding :" +"class:`PurePath`/:class:`Path` equivalent." msgstr "" -#: ../../library/pathlib.rst:1084 +#: ../../library/pathlib.rst:1086 msgid "" "Although :func:`os.path.relpath` and :meth:`PurePath.relative_to` have some " "overlapping use-cases, their semantics differ enough to warrant not " "considering them equivalent." msgstr "" -#: ../../library/pathlib.rst:1089 +#: ../../library/pathlib.rst:1091 msgid "os and os.path" msgstr "" -#: ../../library/pathlib.rst:1089 +#: ../../library/pathlib.rst:1091 msgid "pathlib" msgstr "pathlib" -#: ../../library/pathlib.rst:1091 +#: ../../library/pathlib.rst:1093 msgid ":func:`os.path.abspath`" -msgstr "" +msgstr ":func:`os.path.abspath`" -#: ../../library/pathlib.rst:1091 +#: ../../library/pathlib.rst:1093 msgid ":meth:`Path.resolve`" -msgstr "" +msgstr ":meth:`Path.resolve`" -#: ../../library/pathlib.rst:1092 +#: ../../library/pathlib.rst:1094 msgid ":func:`os.chmod`" -msgstr "" +msgstr ":func:`os.chmod`" -#: ../../library/pathlib.rst:1092 +#: ../../library/pathlib.rst:1094 msgid ":meth:`Path.chmod`" -msgstr "" +msgstr ":meth:`Path.chmod`" -#: ../../library/pathlib.rst:1093 +#: ../../library/pathlib.rst:1095 msgid ":func:`os.mkdir`" -msgstr "" +msgstr ":func:`os.mkdir`" -#: ../../library/pathlib.rst:1093 +#: ../../library/pathlib.rst:1095 msgid ":meth:`Path.mkdir`" -msgstr "" +msgstr ":meth:`Path.mkdir`" -#: ../../library/pathlib.rst:1094 +#: ../../library/pathlib.rst:1096 msgid ":func:`os.rename`" -msgstr "" +msgstr ":func:`os.rename`" -#: ../../library/pathlib.rst:1094 +#: ../../library/pathlib.rst:1096 msgid ":meth:`Path.rename`" -msgstr "" +msgstr ":meth:`Path.rename`" -#: ../../library/pathlib.rst:1095 +#: ../../library/pathlib.rst:1097 msgid ":func:`os.replace`" -msgstr "" +msgstr ":func:`os.replace`" -#: ../../library/pathlib.rst:1095 +#: ../../library/pathlib.rst:1097 msgid ":meth:`Path.replace`" -msgstr "" +msgstr ":meth:`Path.replace`" -#: ../../library/pathlib.rst:1096 +#: ../../library/pathlib.rst:1098 msgid ":func:`os.rmdir`" -msgstr "" +msgstr ":func:`os.rmdir`" -#: ../../library/pathlib.rst:1096 +#: ../../library/pathlib.rst:1098 msgid ":meth:`Path.rmdir`" -msgstr "" +msgstr ":meth:`Path.rmdir`" -#: ../../library/pathlib.rst:1097 +#: ../../library/pathlib.rst:1099 msgid ":func:`os.remove`, :func:`os.unlink`" -msgstr "" +msgstr ":func:`os.remove`, :func:`os.unlink`" -#: ../../library/pathlib.rst:1097 +#: ../../library/pathlib.rst:1099 msgid ":meth:`Path.unlink`" -msgstr "" +msgstr ":meth:`Path.unlink`" -#: ../../library/pathlib.rst:1098 +#: ../../library/pathlib.rst:1100 msgid ":func:`os.getcwd`" -msgstr "" +msgstr ":func:`os.getcwd`" -#: ../../library/pathlib.rst:1098 +#: ../../library/pathlib.rst:1100 msgid ":func:`Path.cwd`" -msgstr "" +msgstr ":func:`Path.cwd`" -#: ../../library/pathlib.rst:1099 +#: ../../library/pathlib.rst:1101 msgid ":func:`os.path.exists`" -msgstr "" +msgstr ":func:`os.path.exists`" -#: ../../library/pathlib.rst:1099 +#: ../../library/pathlib.rst:1101 msgid ":meth:`Path.exists`" -msgstr "" +msgstr ":meth:`Path.exists`" -#: ../../library/pathlib.rst:1100 +#: ../../library/pathlib.rst:1102 msgid ":func:`os.path.expanduser`" -msgstr "" +msgstr ":func:`os.path.expanduser`" -#: ../../library/pathlib.rst:1100 +#: ../../library/pathlib.rst:1102 msgid ":meth:`Path.expanduser` and :meth:`Path.home`" -msgstr "" +msgstr ":meth:`Path.expanduser` and :meth:`Path.home`" -#: ../../library/pathlib.rst:1102 +#: ../../library/pathlib.rst:1104 msgid ":func:`os.path.isdir`" -msgstr "" +msgstr ":func:`os.path.isdir`" -#: ../../library/pathlib.rst:1102 +#: ../../library/pathlib.rst:1104 msgid ":meth:`Path.is_dir`" -msgstr "" +msgstr ":meth:`Path.is_dir`" -#: ../../library/pathlib.rst:1103 +#: ../../library/pathlib.rst:1105 msgid ":func:`os.path.isfile`" -msgstr "" +msgstr ":func:`os.path.isfile`" -#: ../../library/pathlib.rst:1103 +#: ../../library/pathlib.rst:1105 msgid ":meth:`Path.is_file`" -msgstr "" +msgstr ":meth:`Path.is_file`" -#: ../../library/pathlib.rst:1104 +#: ../../library/pathlib.rst:1106 msgid ":func:`os.path.islink`" -msgstr "" +msgstr ":func:`os.path.islink`" -#: ../../library/pathlib.rst:1104 +#: ../../library/pathlib.rst:1106 msgid ":meth:`Path.is_symlink`" -msgstr "" +msgstr ":meth:`Path.is_symlink`" -#: ../../library/pathlib.rst:1105 +#: ../../library/pathlib.rst:1107 msgid ":func:`os.stat`" -msgstr "" +msgstr ":func:`os.stat`" -#: ../../library/pathlib.rst:1105 +#: ../../library/pathlib.rst:1107 msgid ":meth:`Path.stat`, :meth:`Path.owner`, :meth:`Path.group`" -msgstr "" +msgstr ":meth:`Path.stat`, :meth:`Path.owner`, :meth:`Path.group`" -#: ../../library/pathlib.rst:1108 +#: ../../library/pathlib.rst:1110 msgid ":func:`os.path.isabs`" -msgstr "" +msgstr ":func:`os.path.isabs`" -#: ../../library/pathlib.rst:1108 +#: ../../library/pathlib.rst:1110 msgid ":meth:`PurePath.is_absolute`" -msgstr "" +msgstr ":meth:`PurePath.is_absolute`" -#: ../../library/pathlib.rst:1109 +#: ../../library/pathlib.rst:1111 msgid ":func:`os.path.join`" -msgstr "" +msgstr ":func:`os.path.join`" -#: ../../library/pathlib.rst:1109 +#: ../../library/pathlib.rst:1111 msgid ":func:`PurePath.joinpath`" -msgstr "" +msgstr ":func:`PurePath.joinpath`" -#: ../../library/pathlib.rst:1110 +#: ../../library/pathlib.rst:1112 msgid ":func:`os.path.basename`" -msgstr "" +msgstr ":func:`os.path.basename`" -#: ../../library/pathlib.rst:1110 +#: ../../library/pathlib.rst:1112 msgid ":data:`PurePath.name`" -msgstr "" +msgstr ":data:`PurePath.name`" -#: ../../library/pathlib.rst:1111 +#: ../../library/pathlib.rst:1113 msgid ":func:`os.path.dirname`" -msgstr "" +msgstr ":func:`os.path.dirname`" -#: ../../library/pathlib.rst:1111 +#: ../../library/pathlib.rst:1113 msgid ":data:`PurePath.parent`" -msgstr "" +msgstr ":data:`PurePath.parent`" -#: ../../library/pathlib.rst:1112 +#: ../../library/pathlib.rst:1114 msgid ":func:`os.path.samefile`" -msgstr "" +msgstr ":func:`os.path.samefile`" -#: ../../library/pathlib.rst:1112 +#: ../../library/pathlib.rst:1114 msgid ":meth:`Path.samefile`" -msgstr "" +msgstr ":meth:`Path.samefile`" -#: ../../library/pathlib.rst:1113 +#: ../../library/pathlib.rst:1115 msgid ":func:`os.path.splitext`" -msgstr "" +msgstr ":func:`os.path.splitext`" -#: ../../library/pathlib.rst:1113 +#: ../../library/pathlib.rst:1115 msgid ":data:`PurePath.suffix`" -msgstr "" +msgstr ":data:`PurePath.suffix`" diff --git a/library/pdb.po b/library/pdb.po index 4adc14791..fa45a0f77 100644 --- a/library/pdb.po +++ b/library/pdb.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-31 10:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,20 +33,19 @@ msgstr "**Código Fonte:** :source:`Lib/pdb.py`" #: ../../library/pdb.rst:15 msgid "" -"The module :mod:`pdb` defines an interactive source code debugger for Python" -" programs. It supports setting (conditional) breakpoints and single " -"stepping at the source line level, inspection of stack frames, source code " -"listing, and evaluation of arbitrary Python code in the context of any stack" -" frame. It also supports post-mortem debugging and can be called under " -"program control." +"The module :mod:`pdb` defines an interactive source code debugger for Python " +"programs. It supports setting (conditional) breakpoints and single stepping " +"at the source line level, inspection of stack frames, source code listing, " +"and evaluation of arbitrary Python code in the context of any stack frame. " +"It also supports post-mortem debugging and can be called under program " +"control." msgstr "" #: ../../library/pdb.rst:26 msgid "" -"The debugger is extensible -- it is actually defined as the class " -":class:`Pdb`. This is currently undocumented but easily understood by " -"reading the source. The extension interface uses the modules :mod:`bdb` and" -" :mod:`cmd`." +"The debugger is extensible -- it is actually defined as the class :class:" +"`Pdb`. This is currently undocumented but easily understood by reading the " +"source. The extension interface uses the modules :mod:`bdb` and :mod:`cmd`." msgstr "" #: ../../library/pdb.rst:30 @@ -69,12 +69,11 @@ msgstr "" #: ../../library/pdb.rst:54 msgid "" -"When invoked as a script, pdb will automatically enter post-mortem debugging" -" if the program being debugged exits abnormally. After post-mortem " -"debugging (or after normal exit of the program), pdb will restart the " -"program. Automatic restarting preserves pdb's state (such as breakpoints) " -"and in most cases is more useful than quitting the debugger upon program's " -"exit." +"When invoked as a script, pdb will automatically enter post-mortem debugging " +"if the program being debugged exits abnormally. After post-mortem debugging " +"(or after normal exit of the program), pdb will restart the program. " +"Automatic restarting preserves pdb's state (such as breakpoints) and in most " +"cases is more useful than quitting the debugger upon program's exit." msgstr "" #: ../../library/pdb.rst:60 @@ -125,33 +124,33 @@ msgid "" "control. The debugger prompt appears before any code is executed; you can " "set breakpoints and type :pdbcmd:`continue`, or you can step through the " "statement using :pdbcmd:`step` or :pdbcmd:`next` (all these commands are " -"explained below). The optional *globals* and *locals* arguments specify the" -" environment in which the code is executed; by default the dictionary of the" -" module :mod:`__main__` is used. (See the explanation of the built-in " -":func:`exec` or :func:`eval` functions.)" +"explained below). The optional *globals* and *locals* arguments specify the " +"environment in which the code is executed; by default the dictionary of the " +"module :mod:`__main__` is used. (See the explanation of the built-in :func:" +"`exec` or :func:`eval` functions.)" msgstr "" #: ../../library/pdb.rst:118 msgid "" "Evaluate the *expression* (given as a string or a code object) under " -"debugger control. When :func:`runeval` returns, it returns the value of the" -" expression. Otherwise this function is similar to :func:`run`." +"debugger control. When :func:`runeval` returns, it returns the value of the " +"expression. Otherwise this function is similar to :func:`run`." msgstr "" #: ../../library/pdb.rst:125 msgid "" "Call the *function* (a function or method object, not a string) with the " "given arguments. When :func:`runcall` returns, it returns whatever the " -"function call returned. The debugger prompt appears as soon as the function" -" is entered." +"function call returned. The debugger prompt appears as soon as the function " +"is entered." msgstr "" #: ../../library/pdb.rst:133 msgid "" "Enter the debugger at the calling stack frame. This is useful to hard-code " "a breakpoint at a given point in a program, even if the code is not " -"otherwise being debugged (e.g. when an assertion fails). If given, *header*" -" is printed to the console just before debugging begins." +"otherwise being debugged (e.g. when an assertion fails). If given, *header* " +"is printed to the console just before debugging begins." msgstr "" #: ../../library/pdb.rst:138 @@ -168,15 +167,15 @@ msgstr "" #: ../../library/pdb.rst:152 msgid "" -"Enter post-mortem debugging of the traceback found in " -":data:`sys.last_traceback`." +"Enter post-mortem debugging of the traceback found in :data:`sys." +"last_traceback`." msgstr "" #: ../../library/pdb.rst:156 msgid "" "The ``run*`` functions and :func:`set_trace` are aliases for instantiating " -"the :class:`Pdb` class and calling the method of the same name. If you want" -" to access further features, you have to do this yourself:" +"the :class:`Pdb` class and calling the method of the same name. If you want " +"to access further features, you have to do this yourself:" msgstr "" #: ../../library/pdb.rst:163 @@ -191,24 +190,24 @@ msgstr "" #: ../../library/pdb.rst:168 msgid "" -"The *skip* argument, if given, must be an iterable of glob-style module name" -" patterns. The debugger will not step into frames that originate in a " -"module that matches one of these patterns. [1]_" +"The *skip* argument, if given, must be an iterable of glob-style module name " +"patterns. The debugger will not step into frames that originate in a module " +"that matches one of these patterns. [1]_" msgstr "" #: ../../library/pdb.rst:172 msgid "" -"By default, Pdb sets a handler for the SIGINT signal (which is sent when the" -" user presses :kbd:`Ctrl-C` on the console) when you give a ``continue`` " -"command. This allows you to break into the debugger again by pressing " -":kbd:`Ctrl-C`. If you want Pdb not to touch the SIGINT handler, set " -"*nosigint* to true." +"By default, Pdb sets a handler for the SIGINT signal (which is sent when the " +"user presses :kbd:`Ctrl-C` on the console) when you give a ``continue`` " +"command. This allows you to break into the debugger again by pressing :kbd:" +"`Ctrl-C`. If you want Pdb not to touch the SIGINT handler, set *nosigint* " +"to true." msgstr "" #: ../../library/pdb.rst:177 msgid "" -"The *readrc* argument defaults to true and controls whether Pdb will load " -".pdbrc files from the filesystem." +"The *readrc* argument defaults to true and controls whether Pdb will load ." +"pdbrc files from the filesystem." msgstr "" #: ../../library/pdb.rst:180 @@ -238,10 +237,10 @@ msgstr "" #: ../../library/pdb.rst:207 msgid "" -"The commands recognized by the debugger are listed below. Most commands can" -" be abbreviated to one or two letters as indicated; e.g. ``h(elp)`` means " -"that either ``h`` or ``help`` can be used to enter the help command (but not" -" ``he`` or ``hel``, nor ``H`` or ``Help`` or ``HELP``). Arguments to " +"The commands recognized by the debugger are listed below. Most commands can " +"be abbreviated to one or two letters as indicated; e.g. ``h(elp)`` means " +"that either ``h`` or ``help`` can be used to enter the help command (but not " +"``he`` or ``hel``, nor ``H`` or ``Help`` or ``HELP``). Arguments to " "commands must be separated by whitespace (spaces or tabs). Optional " "arguments are enclosed in square brackets (``[]``) in the command syntax; " "the square brackets must not be typed. Alternatives in the command syntax " @@ -284,26 +283,26 @@ msgstr "" #: ../../library/pdb.rst:241 msgid "" "If a file :file:`.pdbrc` exists in the user's home directory or in the " -"current directory, it is read in and executed as if it had been typed at the" -" debugger prompt. This is particularly useful for aliases. If both files " -"exist, the one in the home directory is read first and aliases defined there" -" can be overridden by the local file." +"current directory, it is read in and executed as if it had been typed at the " +"debugger prompt. This is particularly useful for aliases. If both files " +"exist, the one in the home directory is read first and aliases defined there " +"can be overridden by the local file." msgstr "" #: ../../library/pdb.rst:247 msgid "" -":file:`.pdbrc` can now contain commands that continue debugging, such as " -":pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no " +":file:`.pdbrc` can now contain commands that continue debugging, such as :" +"pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no " "effect." msgstr "" #: ../../library/pdb.rst:255 msgid "" -"Without argument, print the list of available commands. With a *command* as" -" argument, print help about that command. ``help pdb`` displays the full " -"documentation (the docstring of the :mod:`pdb` module). Since the *command*" -" argument must be an identifier, ``help exec`` must be entered to get help " -"on the ``!`` command." +"Without argument, print the list of available commands. With a *command* as " +"argument, print help about that command. ``help pdb`` displays the full " +"documentation (the docstring of the :mod:`pdb` module). Since the *command* " +"argument must be an identifier, ``help exec`` must be entered to get help on " +"the ``!`` command." msgstr "" #: ../../library/pdb.rst:263 @@ -328,8 +327,8 @@ msgstr "" msgid "" "With a *lineno* argument, set a break there in the current file. With a " "*function* argument, set a break at the first executable statement within " -"that function. The line number may be prefixed with a filename and a colon," -" to specify a breakpoint in another file (probably one that hasn't been " +"that function. The line number may be prefixed with a filename and a colon, " +"to specify a breakpoint in another file (probably one that hasn't been " "loaded yet). The file is searched on :data:`sys.path`. Note that each " "breakpoint is assigned a number to which all the other breakpoint commands " "refer." @@ -343,8 +342,8 @@ msgstr "" #: ../../library/pdb.rst:288 msgid "" -"Without argument, list all breaks, including for each breakpoint, the number" -" of times that breakpoint has been hit, the current ignore count, and the " +"Without argument, list all breaks, including for each breakpoint, the number " +"of times that breakpoint has been hit, the current ignore count, and the " "associated condition if any." msgstr "" @@ -410,16 +409,16 @@ msgstr "" #: ../../library/pdb.rst:344 msgid "" "You can use breakpoint commands to start your program up again. Simply use " -"the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that" -" resumes execution." +"the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that " +"resumes execution." msgstr "" #: ../../library/pdb.rst:348 msgid "" -"Specifying any command resuming execution (currently :pdbcmd:`continue`, " -":pdbcmd:`step`, :pdbcmd:`next`, :pdbcmd:`return`, :pdbcmd:`jump`, " -":pdbcmd:`quit` and their abbreviations) terminates the command list (as if " -"that command was immediately followed by end). This is because any time you " +"Specifying any command resuming execution (currently :pdbcmd:`continue`, :" +"pdbcmd:`step`, :pdbcmd:`next`, :pdbcmd:`return`, :pdbcmd:`jump`, :pdbcmd:" +"`quit` and their abbreviations) terminates the command list (as if that " +"command was immediately followed by end). This is because any time you " "resume execution (even with a simple next or step), you may encounter " "another breakpoint—which could have its own command list, leading to " "ambiguities about which list to execute." @@ -427,10 +426,10 @@ msgstr "" #: ../../library/pdb.rst:357 msgid "" -"If you use the 'silent' command in the command list, the usual message about" -" stopping at a breakpoint is not printed. This may be desirable for " -"breakpoints that are to print a specific message and then continue. If none" -" of the other commands print anything, you see no sign that the breakpoint " +"If you use the 'silent' command in the command list, the usual message about " +"stopping at a breakpoint is not printed. This may be desirable for " +"breakpoints that are to print a specific message and then continue. If none " +"of the other commands print anything, you see no sign that the breakpoint " "was reached." msgstr "" @@ -442,8 +441,8 @@ msgstr "" #: ../../library/pdb.rst:369 msgid "" -"Continue execution until the next line in the current function is reached or" -" it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is " +"Continue execution until the next line in the current function is reached or " +"it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is " "that :pdbcmd:`step` stops inside a called function, while :pdbcmd:`next` " "executes called functions at (nearly) full speed, only stopping at the next " "line in the current function.)" @@ -457,8 +456,8 @@ msgstr "" #: ../../library/pdb.rst:380 msgid "" -"With a line number, continue execution until a line with a number greater or" -" equal to that is reached. In both cases, also stop when the current frame " +"With a line number, continue execution until a line with a number greater or " +"equal to that is reached. In both cases, also stop when the current frame " "returns." msgstr "" @@ -484,17 +483,17 @@ msgstr "" #: ../../library/pdb.rst:401 msgid "" "It should be noted that not all jumps are allowed -- for instance it is not " -"possible to jump into the middle of a :keyword:`for` loop or out of a " -":keyword:`finally` clause." +"possible to jump into the middle of a :keyword:`for` loop or out of a :" +"keyword:`finally` clause." msgstr "" #: ../../library/pdb.rst:407 msgid "" "List source code for the current file. Without arguments, list 11 lines " "around the current line or continue the previous listing. With ``.`` as " -"argument, list 11 lines around the current line. With one argument, list 11" -" lines around at that line. With two arguments, list the given range; if " -"the second argument is less than the first, it is interpreted as a count." +"argument, list 11 lines around the current line. With one argument, list 11 " +"lines around at that line. With two arguments, list the given range; if the " +"second argument is less than the first, it is interpreted as a count." msgstr "" #: ../../library/pdb.rst:413 @@ -545,13 +544,12 @@ msgstr "" #: ../../library/pdb.rst:459 msgid "" -"Display the value of the expression if it changed, each time execution stops" -" in the current frame." +"Display the value of the expression if it changed, each time execution stops " +"in the current frame." msgstr "" #: ../../library/pdb.rst:462 -msgid "" -"Without expression, list all display expressions for the current frame." +msgid "Without expression, list all display expressions for the current frame." msgstr "" #: ../../library/pdb.rst:468 @@ -562,18 +560,18 @@ msgstr "" #: ../../library/pdb.rst:475 msgid "" -"Start an interactive interpreter (using the :mod:`code` module) whose global" -" namespace contains all the (global and local) names found in the current " +"Start an interactive interpreter (using the :mod:`code` module) whose global " +"namespace contains all the (global and local) names found in the current " "scope." msgstr "" #: ../../library/pdb.rst:485 msgid "" "Create an alias called *name* that executes *command*. The command must " -"*not* be enclosed in quotes. Replaceable parameters can be indicated by " -"``%1``, ``%2``, and so on, while ``%*`` is replaced by all the parameters. " -"If no command is given, the current alias for *name* is shown. If no " -"arguments are given, all aliases are listed." +"*not* be enclosed in quotes. Replaceable parameters can be indicated by ``" +"%1``, ``%2``, and so on, while ``%*`` is replaced by all the parameters. If " +"no command is given, the current alias for *name* is shown. If no arguments " +"are given, all aliases are listed." msgstr "" #: ../../library/pdb.rst:491 @@ -587,8 +585,8 @@ msgstr "" #: ../../library/pdb.rst:497 msgid "" -"As an example, here are two useful aliases (especially when placed in the " -":file:`.pdbrc` file)::" +"As an example, here are two useful aliases (especially when placed in the :" +"file:`.pdbrc` file)::" msgstr "" #: ../../library/pdb.rst:507 @@ -600,16 +598,16 @@ msgid "" "Execute the (one-line) *statement* in the context of the current stack " "frame. The exclamation point can be omitted unless the first word of the " "statement resembles a debugger command. To set a global variable, you can " -"prefix the assignment command with a :keyword:`global` statement on the same" -" line, e.g.::" +"prefix the assignment command with a :keyword:`global` statement on the same " +"line, e.g.::" msgstr "" #: ../../library/pdb.rst:523 msgid "" "Restart the debugged Python program. If an argument is supplied, it is " "split with :mod:`shlex` and the result is used as the new :data:`sys.argv`. " -"History, breakpoints, actions and debugger options are preserved. " -":pdbcmd:`restart` is an alias for :pdbcmd:`run`." +"History, breakpoints, actions and debugger options are preserved. :pdbcmd:" +"`restart` is an alias for :pdbcmd:`run`." msgstr "" #: ../../library/pdb.rst:530 @@ -617,11 +615,17 @@ msgid "Quit from the debugger. The program being executed is aborted." msgstr "" #: ../../library/pdb.rst:534 +msgid "" +"Enter a recursive debugger that steps through the code argument (which is an " +"arbitrary expression or statement to be executed in the current environment)." +msgstr "" + +#: ../../library/pdb.rst:542 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../library/pdb.rst:535 +#: ../../library/pdb.rst:543 msgid "" -"Whether a frame is considered to originate in a certain module is determined" -" by the ``__name__`` in the frame globals." +"Whether a frame is considered to originate in a certain module is determined " +"by the ``__name__`` in the frame globals." msgstr "" diff --git a/library/persistence.po b/library/persistence.po index 30772d429..7e5db7fdd 100644 --- a/library/persistence.po +++ b/library/persistence.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,12 +32,12 @@ msgid "" "The modules described in this chapter support storing Python data in a " "persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can " "turn many Python data types into a stream of bytes and then recreate the " -"objects from the bytes. The various DBM-related modules support a family of" -" hash-based file formats that store a mapping of strings to other strings." +"objects from the bytes. The various DBM-related modules support a family of " +"hash-based file formats that store a mapping of strings to other strings." msgstr "" "Os módulos descritos neste capítulo possuem suporte ao armazenamento de " -"dados do Python em um formato persistente no disco. Os módulos :mod:`pickle`" -" e :mod:`marshal` podem transformar muitos tipos de dados do Python em um " +"dados do Python em um formato persistente no disco. Os módulos :mod:`pickle` " +"e :mod:`marshal` podem transformar muitos tipos de dados do Python em um " "fluxo de bytes e então recriar os objetos a partir dos bytes. Os vários " "módulos relacionados ao DBM possuem suporte a uma família de formatos de " "arquivo baseados em hash que armazenam um mapeamento de strings para outras " diff --git a/library/pickle.po b/library/pickle.po index 11c870b3a..8ed796536 100644 --- a/library/pickle.po +++ b/library/pickle.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-13 03:32+0000\n" +"POT-Creation-Date: 2020-05-02 13:45+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,9 +36,9 @@ msgstr "**Código Fonte:** :source:`Lib/pickle.py`" msgid "" "The :mod:`pickle` module implements binary protocols for serializing and de-" "serializing a Python object structure. *\"Pickling\"* is the process " -"whereby a Python object hierarchy is converted into a byte stream, and " -"*\"unpickling\"* is the inverse operation, whereby a byte stream (from a " -":term:`binary file` or :term:`bytes-like object`) is converted back into an " +"whereby a Python object hierarchy is converted into a byte stream, and *" +"\"unpickling\"* is the inverse operation, whereby a byte stream (from a :" +"term:`binary file` or :term:`bytes-like object`) is converted back into an " "object hierarchy. Pickling (and unpickling) is alternatively known as " "\"serialization\", \"marshalling,\" [#]_ or \"flattening\"; however, to " "avoid confusion, the terms used here are \"pickling\" and \"unpickling\"." @@ -62,8 +63,8 @@ msgstr "" msgid "" "Python has a more primitive serialization module called :mod:`marshal`, but " "in general :mod:`pickle` should always be the preferred way to serialize " -"Python objects. :mod:`marshal` exists primarily to support Python's " -":file:`.pyc` files." +"Python objects. :mod:`marshal` exists primarily to support Python's :file:`." +"pyc` files." msgstr "" #: ../../library/pickle.rst:49 @@ -103,13 +104,13 @@ msgstr "" #: ../../library/pickle.rst:69 msgid "" "The :mod:`marshal` serialization format is not guaranteed to be portable " -"across Python versions. Because its primary job in life is to support " -":file:`.pyc` files, the Python implementers reserve the right to change the " -"serialization format in non-backwards compatible ways should the need arise." -" The :mod:`pickle` serialization format is guaranteed to be backwards " +"across Python versions. Because its primary job in life is to support :file:" +"`.pyc` files, the Python implementers reserve the right to change the " +"serialization format in non-backwards compatible ways should the need arise. " +"The :mod:`pickle` serialization format is guaranteed to be backwards " "compatible across Python releases provided a compatible pickle protocol is " -"chosen and pickling and unpickling code deals with Python 2 to Python 3 type" -" differences if your data is crossing that unique breaking change language " +"chosen and pickling and unpickling code deals with Python 2 to Python 3 type " +"differences if your data is crossing that unique breaking change language " "boundary." msgstr "" @@ -136,8 +137,8 @@ msgstr "" #: ../../library/pickle.rst:90 msgid "" -"JSON is interoperable and widely used outside of the Python ecosystem, while" -" pickle is Python-specific;" +"JSON is interoperable and widely used outside of the Python ecosystem, while " +"pickle is Python-specific;" msgstr "" #: ../../library/pickle.rst:93 @@ -145,8 +146,8 @@ msgid "" "JSON, by default, can only represent a subset of the Python built-in types, " "and no custom classes; pickle can represent an extremely large number of " "Python types (many of them automatically, by clever usage of Python's " -"introspection facilities; complex cases can be tackled by implementing " -":ref:`specific object APIs `)." +"introspection facilities; complex cases can be tackled by implementing :ref:" +"`specific object APIs `)." msgstr "" #: ../../library/pickle.rst:100 @@ -210,25 +211,25 @@ msgstr "" #: ../../library/pickle.rst:139 msgid "" -"Protocol version 3 was added in Python 3.0. It has explicit support for " -":class:`bytes` objects and cannot be unpickled by Python 2.x. This is the " -"default protocol, and the recommended protocol when compatibility with other" -" Python 3 versions is required." +"Protocol version 3 was added in Python 3.0. It has explicit support for :" +"class:`bytes` objects and cannot be unpickled by Python 2.x. This is the " +"default protocol, and the recommended protocol when compatibility with other " +"Python 3 versions is required." msgstr "" #: ../../library/pickle.rst:144 msgid "" "Protocol version 4 was added in Python 3.4. It adds support for very large " -"objects, pickling more kinds of objects, and some data format optimizations." -" Refer to :pep:`3154` for information about improvements brought by " -"protocol 4." +"objects, pickling more kinds of objects, and some data format " +"optimizations. Refer to :pep:`3154` for information about improvements " +"brought by protocol 4." msgstr "" #: ../../library/pickle.rst:150 msgid "" -"Serialization is a more primitive notion than persistence; although " -":mod:`pickle` reads and writes file objects, it does not handle the issue of" -" naming persistent objects, nor the (even more complicated) issue of " +"Serialization is a more primitive notion than persistence; although :mod:" +"`pickle` reads and writes file objects, it does not handle the issue of " +"naming persistent objects, nor the (even more complicated) issue of " "concurrent access to persistent objects. The :mod:`pickle` module can " "transform a complex object into a byte stream and it can transform the byte " "stream into an object with the same internal structure. Perhaps the most " @@ -245,10 +246,10 @@ msgstr "" #: ../../library/pickle.rst:165 msgid "" "To serialize an object hierarchy, you simply call the :func:`dumps` " -"function. Similarly, to de-serialize a data stream, you call the " -":func:`loads` function. However, if you want more control over serialization" -" and de-serialization, you can create a :class:`Pickler` or an " -":class:`Unpickler` object, respectively." +"function. Similarly, to de-serialize a data stream, you call the :func:" +"`loads` function. However, if you want more control over serialization and " +"de-serialization, you can create a :class:`Pickler` or an :class:`Unpickler` " +"object, respectively." msgstr "" #: ../../library/pickle.rst:170 @@ -258,15 +259,15 @@ msgstr "" #: ../../library/pickle.rst:175 msgid "" "An integer, the highest :ref:`protocol version ` " -"available. This value can be passed as a *protocol* value to functions " -":func:`dump` and :func:`dumps` as well as the :class:`Pickler` constructor." +"available. This value can be passed as a *protocol* value to functions :" +"func:`dump` and :func:`dumps` as well as the :class:`Pickler` constructor." msgstr "" #: ../../library/pickle.rst:182 msgid "" "An integer, the default :ref:`protocol version ` used for " -"pickling. May be less than :data:`HIGHEST_PROTOCOL`. Currently the default" -" protocol is 3, a new protocol designed for Python 3." +"pickling. May be less than :data:`HIGHEST_PROTOCOL`. Currently the default " +"protocol is 3, a new protocol designed for Python 3." msgstr "" #: ../../library/pickle.rst:187 @@ -277,9 +278,8 @@ msgstr "" #: ../../library/pickle.rst:192 msgid "" -"Write the pickled representation of the object *obj* to the open :term:`file" -" object` *file*. This is equivalent to ``Pickler(file, " -"protocol).dump(obj)``." +"Write the pickled representation of the object *obj* to the open :term:`file " +"object` *file*. This is equivalent to ``Pickler(file, protocol).dump(obj)``." msgstr "" #: ../../library/pickle.rst:196 ../../library/pickle.rst:298 @@ -293,16 +293,16 @@ msgstr "" #: ../../library/pickle.rst:201 ../../library/pickle.rst:303 msgid "" "The *file* argument must have a write() method that accepts a single bytes " -"argument. It can thus be an on-disk file opened for binary writing, an " -":class:`io.BytesIO` instance, or any other custom object that meets this " +"argument. It can thus be an on-disk file opened for binary writing, an :" +"class:`io.BytesIO` instance, or any other custom object that meets this " "interface." msgstr "" #: ../../library/pickle.rst:206 ../../library/pickle.rst:308 msgid "" "If *fix_imports* is true and *protocol* is less than 3, pickle will try to " -"map the new Python 3 names to the old module names used in Python 2, so that" -" the pickle data stream is readable with Python 2." +"map the new Python 3 names to the old module names used in Python 2, so that " +"the pickle data stream is readable with Python 2." msgstr "" #: ../../library/pickle.rst:212 @@ -313,8 +313,8 @@ msgstr "" #: ../../library/pickle.rst:215 msgid "" -"Arguments *protocol* and *fix_imports* have the same meaning as in " -":func:`dump`." +"Arguments *protocol* and *fix_imports* have the same meaning as in :func:" +"`dump`." msgstr "" #: ../../library/pickle.rst:220 @@ -326,9 +326,9 @@ msgstr "" #: ../../library/pickle.rst:224 ../../library/pickle.rst:250 msgid "" -"The protocol version of the pickle is detected automatically, so no protocol" -" argument is needed. Bytes past the pickled representation of the object " -"are ignored." +"The protocol version of the pickle is detected automatically, so no protocol " +"argument is needed. Bytes past the pickled representation of the object are " +"ignored." msgstr "" #: ../../library/pickle.rst:228 @@ -342,22 +342,22 @@ msgstr "" #: ../../library/pickle.rst:234 ../../library/pickle.rst:254 msgid "" -"Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which" -" are used to control compatibility support for pickle stream generated by " -"Python 2. If *fix_imports* is true, pickle will try to map the old Python 2" -" names to the new names used in Python 3. The *encoding* and *errors* tell " +"Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which " +"are used to control compatibility support for pickle stream generated by " +"Python 2. If *fix_imports* is true, pickle will try to map the old Python 2 " +"names to the new names used in Python 3. The *encoding* and *errors* tell " "pickle how to decode 8-bit string instances pickled by Python 2; these " "default to 'ASCII' and 'strict', respectively. The *encoding* can be " "'bytes' to read these 8-bit string instances as bytes objects. Using " "``encoding='latin1'`` is required for unpickling NumPy arrays and instances " -"of :class:`~datetime.datetime`, :class:`~datetime.date` and " -":class:`~datetime.time` pickled by Python 2." +"of :class:`~datetime.datetime`, :class:`~datetime.date` and :class:" +"`~datetime.time` pickled by Python 2." msgstr "" #: ../../library/pickle.rst:247 msgid "" "Return the reconstituted object hierarchy of the pickled representation " -"*bytes_object* of an object." +"*data* of an object. *data* must be a :term:`bytes-like object`." msgstr "" #: ../../library/pickle.rst:266 @@ -366,8 +366,8 @@ msgstr "" #: ../../library/pickle.rst:270 msgid "" -"Common base class for the other pickling exceptions. It inherits " -":exc:`Exception`." +"Common base class for the other pickling exceptions. It inherits :exc:" +"`Exception`." msgstr "" #: ../../library/pickle.rst:275 @@ -397,8 +397,8 @@ msgstr "" #: ../../library/pickle.rst:291 msgid "" -"The :mod:`pickle` module exports two classes, :class:`Pickler` and " -":class:`Unpickler`:" +"The :mod:`pickle` module exports two classes, :class:`Pickler` and :class:" +"`Unpickler`:" msgstr "" #: ../../library/pickle.rst:296 @@ -440,12 +440,12 @@ msgstr "" #: ../../library/pickle.rst:339 msgid "" "By default, a pickler object will not have a :attr:`dispatch_table` " -"attribute, and it will instead use the global dispatch table managed by the " -":mod:`copyreg` module. However, to customize the pickling for a specific " +"attribute, and it will instead use the global dispatch table managed by the :" +"mod:`copyreg` module. However, to customize the pickling for a specific " "pickler object one can set the :attr:`dispatch_table` attribute to a dict-" -"like object. Alternatively, if a subclass of :class:`Pickler` has a " -":attr:`dispatch_table` attribute then this will be used as the default " -"dispatch table for instances of that class." +"like object. Alternatively, if a subclass of :class:`Pickler` has a :attr:" +"`dispatch_table` attribute then this will be used as the default dispatch " +"table for instances of that class." msgstr "" #: ../../library/pickle.rst:348 @@ -454,11 +454,10 @@ msgstr "" #: ../../library/pickle.rst:354 msgid "" -"Deprecated. Enable fast mode if set to a true value. The fast mode disables" -" the usage of memo, therefore speeding the pickling process by not " -"generating superfluous PUT opcodes. It should not be used with self-" -"referential objects, doing otherwise will cause :class:`Pickler` to recurse " -"infinitely." +"Deprecated. Enable fast mode if set to a true value. The fast mode disables " +"the usage of memo, therefore speeding the pickling process by not generating " +"superfluous PUT opcodes. It should not be used with self-referential " +"objects, doing otherwise will cause :class:`Pickler` to recurse infinitely." msgstr "" #: ../../library/pickle.rst:360 @@ -471,8 +470,8 @@ msgstr "" #: ../../library/pickle.rst:367 msgid "" -"The protocol version of the pickle is detected automatically, so no protocol" -" argument is needed." +"The protocol version of the pickle is detected automatically, so no protocol " +"argument is needed." msgstr "" #: ../../library/pickle.rst:370 @@ -486,10 +485,10 @@ msgstr "" #: ../../library/pickle.rst:376 msgid "" -"Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which" -" are used to control compatibility support for pickle stream generated by " -"Python 2. If *fix_imports* is true, pickle will try to map the old Python 2" -" names to the new names used in Python 3. The *encoding* and *errors* tell " +"Optional keyword arguments are *fix_imports*, *encoding* and *errors*, which " +"are used to control compatibility support for pickle stream generated by " +"Python 2. If *fix_imports* is true, pickle will try to map the old Python 2 " +"names to the new names used in Python 3. The *encoding* and *errors* tell " "pickle how to decode 8-bit string instances pickled by Python 2; these " "default to 'ASCII' and 'strict', respectively. The *encoding* can be " "'bytes' to read these 8-bit string instances as bytes objects." @@ -497,9 +496,9 @@ msgstr "" #: ../../library/pickle.rst:386 msgid "" -"Read the pickled representation of an object from the open file object given" -" in the constructor, and return the reconstituted object hierarchy specified" -" therein. Bytes past the pickled representation of the object are ignored." +"Read the pickled representation of an object from the open file object given " +"in the constructor, and return the reconstituted object hierarchy specified " +"therein. Bytes past the pickled representation of the object are ignored." msgstr "" #: ../../library/pickle.rst:393 @@ -509,8 +508,8 @@ msgstr "" #: ../../library/pickle.rst:395 msgid "" "If defined, :meth:`persistent_load` should return the object specified by " -"the persistent ID *pid*. If an invalid persistent ID is encountered, an " -":exc:`UnpicklingError` should be raised." +"the persistent ID *pid*. If an invalid persistent ID is encountered, an :" +"exc:`UnpicklingError` should be raised." msgstr "" #: ../../library/pickle.rst:403 @@ -524,8 +523,8 @@ msgstr "" #: ../../library/pickle.rst:408 msgid "" "Subclasses may override this to gain control over what type of objects and " -"how they can be loaded, potentially reducing security risks. Refer to :ref" -":`pickle-restrict` for details." +"how they can be loaded, potentially reducing security risks. Refer to :ref:" +"`pickle-restrict` for details." msgstr "" #: ../../library/pickle.rst:416 @@ -549,14 +548,13 @@ msgid "strings, bytes, bytearrays" msgstr "strings, bytes, bytearrays" #: ../../library/pickle.rst:426 -msgid "" -"tuples, lists, sets, and dictionaries containing only picklable objects" +msgid "tuples, lists, sets, and dictionaries containing only picklable objects" msgstr "" #: ../../library/pickle.rst:428 msgid "" -"functions defined at the top level of a module (using :keyword:`def`, not " -":keyword:`lambda`)" +"functions defined at the top level of a module (using :keyword:`def`, not :" +"keyword:`lambda`)" msgstr "" #: ../../library/pickle.rst:431 @@ -579,9 +577,9 @@ msgid "" "Attempts to pickle unpicklable objects will raise the :exc:`PicklingError` " "exception; when this happens, an unspecified number of bytes may have " "already been written to the underlying file. Trying to pickle a highly " -"recursive data structure may exceed the maximum recursion depth, a " -":exc:`RecursionError` will be raised in this case. You can carefully raise " -"this limit with :func:`sys.setrecursionlimit`." +"recursive data structure may exceed the maximum recursion depth, a :exc:" +"`RecursionError` will be raised in this case. You can carefully raise this " +"limit with :func:`sys.setrecursionlimit`." msgstr "" #: ../../library/pickle.rst:446 @@ -589,9 +587,9 @@ msgid "" "Note that functions (built-in and user-defined) are pickled by \"fully " "qualified\" name reference, not by value. [#]_ This means that only the " "function name is pickled, along with the name of the module the function is " -"defined in. Neither the function's code, nor any of its function attributes" -" are pickled. Thus the defining module must be importable in the unpickling" -" environment, and the module must contain the named object, otherwise an " +"defined in. Neither the function's code, nor any of its function attributes " +"are pickled. Thus the defining module must be importable in the unpickling " +"environment, and the module must contain the named object, otherwise an " "exception will be raised. [#]_" msgstr "" @@ -599,8 +597,8 @@ msgstr "" msgid "" "Similarly, classes are pickled by named reference, so the same restrictions " "in the unpickling environment apply. Note that none of the class's code or " -"data is pickled, so in the following example the class attribute ``attr`` is" -" not restored in the unpickling environment::" +"data is pickled, so in the following example the class attribute ``attr`` is " +"not restored in the unpickling environment::" msgstr "" #: ../../library/pickle.rst:463 @@ -611,8 +609,8 @@ msgstr "" #: ../../library/pickle.rst:466 msgid "" -"Similarly, when class instances are pickled, their class's code and data are" -" not pickled along with them. Only the instance data are pickled. This is " +"Similarly, when class instances are pickled, their class's code and data are " +"not pickled along with them. Only the instance data are pickled. This is " "done on purpose, so you can fix bugs in a class or add methods to the class " "and still load objects that were created with an earlier version of the " "class. If you plan to have long-lived objects that will see many versions " @@ -628,14 +626,13 @@ msgstr "" #: ../../library/pickle.rst:482 msgid "" "In this section, we describe the general mechanisms available to you to " -"define, customize, and control how class instances are pickled and " -"unpickled." +"define, customize, and control how class instances are pickled and unpickled." msgstr "" #: ../../library/pickle.rst:485 msgid "" -"In most cases, no additional code is needed to make instances picklable. By" -" default, pickle will retrieve the class and the attributes of an instance " +"In most cases, no additional code is needed to make instances picklable. By " +"default, pickle will retrieve the class and the attributes of an instance " "via introspection. When a class instance is unpickled, its :meth:`__init__` " "method is usually *not* invoked. The default behaviour first creates an " "uninitialized instance and then restores the saved attributes. The " @@ -650,18 +647,18 @@ msgstr "" #: ../../library/pickle.rst:505 msgid "" -"In protocols 2 and newer, classes that implements the " -":meth:`__getnewargs_ex__` method can dictate the values passed to the " -":meth:`__new__` method upon unpickling. The method must return a pair " -"``(args, kwargs)`` where *args* is a tuple of positional arguments and " -"*kwargs* a dictionary of named arguments for constructing the object. Those" -" will be passed to the :meth:`__new__` method upon unpickling." +"In protocols 2 and newer, classes that implements the :meth:" +"`__getnewargs_ex__` method can dictate the values passed to the :meth:" +"`__new__` method upon unpickling. The method must return a pair ``(args, " +"kwargs)`` where *args* is a tuple of positional arguments and *kwargs* a " +"dictionary of named arguments for constructing the object. Those will be " +"passed to the :meth:`__new__` method upon unpickling." msgstr "" #: ../../library/pickle.rst:513 msgid "" -"You should implement this method if the :meth:`__new__` method of your class" -" requires keyword-only arguments. Otherwise, it is recommended for " +"You should implement this method if the :meth:`__new__` method of your class " +"requires keyword-only arguments. Otherwise, it is recommended for " "compatibility to implement :meth:`__getnewargs__`." msgstr "" @@ -684,8 +681,8 @@ msgstr "" #: ../../library/pickle.rst:530 msgid "" -"Before Python 3.6, :meth:`__getnewargs__` was called instead of " -":meth:`__getnewargs_ex__` in protocols 2 and 3." +"Before Python 3.6, :meth:`__getnewargs__` was called instead of :meth:" +"`__getnewargs_ex__` in protocols 2 and 3." msgstr "" #: ../../library/pickle.rst:537 @@ -693,8 +690,8 @@ msgid "" "Classes can further influence how their instances are pickled; if the class " "defines the method :meth:`__getstate__`, it is called and the returned " "object is pickled as the contents for the instance, instead of the contents " -"of the instance's dictionary. If the :meth:`__getstate__` method is absent," -" the instance's :attr:`~object.__dict__` is pickled as usual." +"of the instance's dictionary. If the :meth:`__getstate__` method is absent, " +"the instance's :attr:`~object.__dict__` is pickled as usual." msgstr "" #: ../../library/pickle.rst:546 @@ -719,19 +716,18 @@ msgstr "" #: ../../library/pickle.rst:562 msgid "" -"At unpickling time, some methods like :meth:`__getattr__`, " -":meth:`__getattribute__`, or :meth:`__setattr__` may be called upon the " -"instance. In case those methods rely on some internal invariant being true," -" the type should implement :meth:`__getnewargs__` or " -":meth:`__getnewargs_ex__` to establish such an invariant; otherwise, neither" -" :meth:`__new__` nor :meth:`__init__` will be called." +"At unpickling time, some methods like :meth:`__getattr__`, :meth:" +"`__getattribute__`, or :meth:`__setattr__` may be called upon the instance. " +"In case those methods rely on some internal invariant being true, the type " +"should implement :meth:`__new__` to establish such an invariant, as :meth:" +"`__init__` is not called when unpickling an instance." msgstr "" #: ../../library/pickle.rst:571 msgid "" "As we shall see, pickle does not use directly the methods described above. " -"In fact, these methods are part of the copy protocol which implements the " -":meth:`__reduce__` special method. The copy protocol provides a unified " +"In fact, these methods are part of the copy protocol which implements the :" +"meth:`__reduce__` special method. The copy protocol provides a unified " "interface for retrieving the data necessary for pickling and copying " "objects. [#]_" msgstr "" @@ -740,9 +736,9 @@ msgstr "" msgid "" "Although powerful, implementing :meth:`__reduce__` directly in your classes " "is error prone. For this reason, class designers should use the high-level " -"interface (i.e., :meth:`__getnewargs_ex__`, :meth:`__getstate__` and " -":meth:`__setstate__`) whenever possible. We will show, however, cases where" -" using :meth:`__reduce__` is the only option or leads to more efficient " +"interface (i.e., :meth:`__getnewargs_ex__`, :meth:`__getstate__` and :meth:" +"`__setstate__`) whenever possible. We will show, however, cases where " +"using :meth:`__reduce__` is the only option or leads to more efficient " "pickling or both." msgstr "" @@ -782,19 +778,19 @@ msgstr "" #: ../../library/pickle.rst:607 msgid "" -"Optionally, the object's state, which will be passed to the object's " -":meth:`__setstate__` method as previously described. If the object has no " -"such method then, the value must be a dictionary and it will be added to the" -" object's :attr:`~object.__dict__` attribute." +"Optionally, the object's state, which will be passed to the object's :meth:" +"`__setstate__` method as previously described. If the object has no such " +"method then, the value must be a dictionary and it will be added to the " +"object's :attr:`~object.__dict__` attribute." msgstr "" #: ../../library/pickle.rst:612 msgid "" "Optionally, an iterator (and not a sequence) yielding successive items. " -"These items will be appended to the object either using ``obj.append(item)``" -" or, in batch, using ``obj.extend(list_of_items)``. This is primarily used " -"for list subclasses, but may be used by other classes as long as they have " -":meth:`append` and :meth:`extend` methods with the appropriate signature. " +"These items will be appended to the object either using ``obj.append(item)`` " +"or, in batch, using ``obj.extend(list_of_items)``. This is primarily used " +"for list subclasses, but may be used by other classes as long as they have :" +"meth:`append` and :meth:`extend` methods with the appropriate signature. " "(Whether :meth:`append` or :meth:`extend` is used depends on which pickle " "protocol version is used as well as the number of items to append, so both " "must be supported.)" @@ -803,19 +799,19 @@ msgstr "" #: ../../library/pickle.rst:621 msgid "" "Optionally, an iterator (not a sequence) yielding successive key-value " -"pairs. These items will be stored to the object using ``obj[key] = value``." -" This is primarily used for dictionary subclasses, but may be used by other" -" classes as long as they implement :meth:`__setitem__`." +"pairs. These items will be stored to the object using ``obj[key] = " +"value``. This is primarily used for dictionary subclasses, but may be used " +"by other classes as long as they implement :meth:`__setitem__`." msgstr "" #: ../../library/pickle.rst:629 msgid "" "Alternatively, a :meth:`__reduce_ex__` method may be defined. The only " "difference is this method should take a single integer argument, the " -"protocol version. When defined, pickle will prefer it over the " -":meth:`__reduce__` method. In addition, :meth:`__reduce__` automatically " -"becomes a synonym for the extended version. The main use for this method is" -" to provide backwards-compatible reduce values for older Python releases." +"protocol version. When defined, pickle will prefer it over the :meth:" +"`__reduce__` method. In addition, :meth:`__reduce__` automatically becomes " +"a synonym for the extended version. The main use for this method is to " +"provide backwards-compatible reduce values for older Python releases." msgstr "" #: ../../library/pickle.rst:641 @@ -824,25 +820,25 @@ msgstr "" #: ../../library/pickle.rst:647 msgid "" -"For the benefit of object persistence, the :mod:`pickle` module supports the" -" notion of a reference to an object outside the pickled data stream. Such " +"For the benefit of object persistence, the :mod:`pickle` module supports the " +"notion of a reference to an object outside the pickled data stream. Such " "objects are referenced by a persistent ID, which should be either a string " -"of alphanumeric characters (for protocol 0) [#]_ or just an arbitrary object" -" (for any newer protocol)." +"of alphanumeric characters (for protocol 0) [#]_ or just an arbitrary object " +"(for any newer protocol)." msgstr "" #: ../../library/pickle.rst:653 msgid "" "The resolution of such persistent IDs is not defined by the :mod:`pickle` " "module; it will delegate this resolution to the user-defined methods on the " -"pickler and unpickler, :meth:`~Pickler.persistent_id` and " -":meth:`~Unpickler.persistent_load` respectively." +"pickler and unpickler, :meth:`~Pickler.persistent_id` and :meth:`~Unpickler." +"persistent_load` respectively." msgstr "" #: ../../library/pickle.rst:658 msgid "" -"To pickle objects that have an external persistent ID, the pickler must have" -" a custom :meth:`~Pickler.persistent_id` method that takes an object as an " +"To pickle objects that have an external persistent ID, the pickler must have " +"a custom :meth:`~Pickler.persistent_id` method that takes an object as an " "argument and returns either ``None`` or the persistent ID for that object. " "When ``None`` is returned, the pickler simply pickles the object as normal. " "When a persistent ID string is returned, the pickler will pickle that " @@ -852,9 +848,9 @@ msgstr "" #: ../../library/pickle.rst:665 msgid "" -"To unpickle external objects, the unpickler must have a custom " -":meth:`~Unpickler.persistent_load` method that takes a persistent ID object " -"and returns the referenced object." +"To unpickle external objects, the unpickler must have a custom :meth:" +"`~Unpickler.persistent_load` method that takes a persistent ID object and " +"returns the referenced object." msgstr "" #: ../../library/pickle.rst:669 @@ -887,16 +883,15 @@ msgstr "" #: ../../library/pickle.rst:695 msgid "" -"creates an instance of :class:`pickle.Pickler` with a private dispatch table" -" which handles the ``SomeClass`` class specially. Alternatively, the code " -"::" +"creates an instance of :class:`pickle.Pickler` with a private dispatch table " +"which handles the ``SomeClass`` class specially. Alternatively, the code ::" msgstr "" #: ../../library/pickle.rst:705 msgid "" "does the same, but all instances of ``MyPickler`` will by default share the " -"same dispatch table. The equivalent code using the :mod:`copyreg` module is" -" ::" +"same dispatch table. The equivalent code using the :mod:`copyreg` module " +"is ::" msgstr "" #: ../../library/pickle.rst:716 @@ -906,13 +901,13 @@ msgstr "" #: ../../library/pickle.rst:722 msgid "" "Here's an example that shows how to modify pickling behavior for a class. " -"The :class:`TextReader` class opens a text file, and returns the line number" -" and line contents each time its :meth:`!readline` method is called. If a " -":class:`TextReader` instance is pickled, all attributes *except* the file " +"The :class:`TextReader` class opens a text file, and returns the line number " +"and line contents each time its :meth:`!readline` method is called. If a :" +"class:`TextReader` instance is pickled, all attributes *except* the file " "object member are saved. When the instance is unpickled, the file is " -"reopened, and reading resumes from the last location. The " -":meth:`__setstate__` and :meth:`__getstate__` methods are used to implement " -"this behavior. ::" +"reopened, and reading resumes from the last location. The :meth:" +"`__setstate__` and :meth:`__getstate__` methods are used to implement this " +"behavior. ::" msgstr "" #: ../../library/pickle.rst:768 @@ -927,8 +922,8 @@ msgstr "" msgid "" "By default, unpickling will import any class or function that it finds in " "the pickle data. For many applications, this behaviour is unacceptable as " -"it permits the unpickler to import and invoke arbitrary code. Just consider" -" what this hand-crafted pickle data stream does when loaded::" +"it permits the unpickler to import and invoke arbitrary code. Just consider " +"what this hand-crafted pickle data stream does when loaded::" msgstr "" #: ../../library/pickle.rst:798 @@ -941,17 +936,17 @@ msgstr "" #: ../../library/pickle.rst:802 msgid "" -"For this reason, you may want to control what gets unpickled by customizing " -":meth:`Unpickler.find_class`. Unlike its name suggests, " -":meth:`Unpickler.find_class` is called whenever a global (i.e., a class or a" -" function) is requested. Thus it is possible to either completely forbid " -"globals or restrict them to a safe subset." +"For this reason, you may want to control what gets unpickled by customizing :" +"meth:`Unpickler.find_class`. Unlike its name suggests, :meth:`Unpickler." +"find_class` is called whenever a global (i.e., a class or a function) is " +"requested. Thus it is possible to either completely forbid globals or " +"restrict them to a safe subset." msgstr "" #: ../../library/pickle.rst:808 msgid "" -"Here is an example of an unpickler allowing only few safe classes from the " -":mod:`builtins` module to be loaded::" +"Here is an example of an unpickler allowing only few safe classes from the :" +"mod:`builtins` module to be loaded::" msgstr "" #: ../../library/pickle.rst:837 @@ -972,8 +967,8 @@ msgstr "Performance" #: ../../library/pickle.rst:865 msgid "" -"Recent versions of the pickle protocol (from protocol 2 and upwards) feature" -" efficient binary encodings for several common features and built-in types. " +"Recent versions of the pickle protocol (from protocol 2 and upwards) feature " +"efficient binary encodings for several common features and built-in types. " "Also, the :mod:`pickle` module has a transparent optimizer written in C." msgstr "" @@ -1040,14 +1035,14 @@ msgstr "" #: ../../library/pickle.rst:927 msgid "" -"This is why :keyword:`lambda` functions cannot be pickled: all " -":keyword:`!lambda` functions share the same name: ````." +"This is why :keyword:`lambda` functions cannot be pickled: all :keyword:`!" +"lambda` functions share the same name: ````." msgstr "" #: ../../library/pickle.rst:930 msgid "" -"The exception raised will likely be an :exc:`ImportError` or an " -":exc:`AttributeError` but it could be something else." +"The exception raised will likely be an :exc:`ImportError` or an :exc:" +"`AttributeError` but it could be something else." msgstr "" #: ../../library/pickle.rst:933 diff --git a/library/pickletools.po b/library/pickletools.po index 39712e247..67fb722f9 100644 --- a/library/pickletools.po +++ b/library/pickletools.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,10 +35,10 @@ msgstr "**Código Fonte:** :source:`Lib/pickletools.py`" msgid "" "This module contains various constants relating to the intimate details of " "the :mod:`pickle` module, some lengthy comments about the implementation, " -"and a few useful functions for analyzing pickled data. The contents of this" -" module are useful for Python core developers who are working on the " -":mod:`pickle`; ordinary users of the :mod:`pickle` module probably won't " -"find the :mod:`pickletools` module relevant." +"and a few useful functions for analyzing pickled data. The contents of this " +"module are useful for Python core developers who are working on the :mod:" +"`pickle`; ordinary users of the :mod:`pickle` module probably won't find " +"the :mod:`pickletools` module relevant." msgstr "" #: ../../library/pickletools.rst:21 @@ -46,8 +48,8 @@ msgstr "" #: ../../library/pickletools.rst:25 msgid "" "When invoked from the command line, ``python -m pickletools`` will " -"disassemble the contents of one or more pickle files. Note that if you want" -" to see the Python object stored in the pickle rather than the details of " +"disassemble the contents of one or more pickle files. Note that if you want " +"to see the Python object stored in the pickle rather than the details of " "pickle format, you may want to use ``-m pickle`` instead. However, when the " "pickle file that you want to examine comes from an untrusted source, ``-m " "pickletools`` is a safer option because it does not execute pickle bytecode." @@ -92,13 +94,13 @@ msgstr "" msgid "" "Outputs a symbolic disassembly of the pickle to the file-like object *out*, " "defaulting to ``sys.stdout``. *pickle* can be a string or a file-like " -"object. *memo* can be a Python dictionary that will be used as the pickle's" -" memo; it can be used to perform disassemblies across multiple pickles " +"object. *memo* can be a Python dictionary that will be used as the pickle's " +"memo; it can be used to perform disassemblies across multiple pickles " "created by the same pickler. Successive levels, indicated by ``MARK`` " "opcodes in the stream, are indented by *indentlevel* spaces. If a nonzero " "value is given to *annotate*, each opcode in the output is annotated with a " -"short description. The value of *annotate* is used as a hint for the column" -" where annotation should start." +"short description. The value of *annotate* is used as a hint for the column " +"where annotation should start." msgstr "" #: ../../library/pickletools.rst:95 @@ -108,10 +110,10 @@ msgstr "" #: ../../library/pickletools.rst:100 msgid "" "Provides an :term:`iterator` over all of the opcodes in a pickle, returning " -"a sequence of ``(opcode, arg, pos)`` triples. *opcode* is an instance of an" -" :class:`OpcodeInfo` class; *arg* is the decoded value, as a Python object, " -"of the opcode's argument; *pos* is the position at which this opcode is " -"located. *pickle* can be a string or a file-like object." +"a sequence of ``(opcode, arg, pos)`` triples. *opcode* is an instance of " +"an :class:`OpcodeInfo` class; *arg* is the decoded value, as a Python " +"object, of the opcode's argument; *pos* is the position at which this opcode " +"is located. *pickle* can be a string or a file-like object." msgstr "" #: ../../library/pickletools.rst:108 diff --git a/library/pipes.po b/library/pipes.po index 9730ac1ce..b91880252 100644 --- a/library/pipes.po +++ b/library/pipes.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -73,8 +74,8 @@ msgstr "" #: ../../library/pipes.rst:59 msgid "" "If *flag* is true, turn debugging on. Otherwise, turn debugging off. When " -"debugging is on, commands to be executed are printed, and the shell is given" -" ``set -x`` command to be more verbose." +"debugging is on, commands to be executed are printed, and the shell is given " +"``set -x`` command to be more verbose." msgstr "" #: ../../library/pipes.rst:66 @@ -85,17 +86,17 @@ msgstr "" #: ../../library/pipes.rst:69 msgid "" -"The first letter can be either of ``'-'`` (which means the command reads its" -" standard input), ``'f'`` (which means the commands reads a given file on " -"the command line) or ``'.'`` (which means the commands reads no input, and " -"hence must be first.)" +"The first letter can be either of ``'-'`` (which means the command reads its " +"standard input), ``'f'`` (which means the commands reads a given file on the " +"command line) or ``'.'`` (which means the commands reads no input, and hence " +"must be first.)" msgstr "" #: ../../library/pipes.rst:74 msgid "" "Similarly, the second letter can be either of ``'-'`` (which means the " -"command writes to standard output), ``'f'`` (which means the command writes" -" a file on the command line) or ``'.'`` (which means the command does not " +"command writes to standard output), ``'f'`` (which means the command writes " +"a file on the command line) or ``'.'`` (which means the command does not " "write anything, and hence must be last.)" msgstr "" diff --git a/library/pkgutil.po b/library/pkgutil.po index 691ae6c62..e0fc2b46a 100644 --- a/library/pkgutil.po +++ b/library/pkgutil.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -57,12 +59,12 @@ msgstr "" #: ../../library/pkgutil.rst:33 msgid "" "It also looks for :file:`\\*.pkg` files beginning where ``*`` matches the " -"*name* argument. This feature is similar to :file:`\\*.pth` files (see the " -":mod:`site` module for more information), except that it doesn't special-" -"case lines starting with ``import``. A :file:`\\*.pkg` file is trusted at " -"face value: apart from checking for duplicates, all entries found in a " -":file:`\\*.pkg` file are added to the path, regardless of whether they exist" -" on the filesystem. (This is a feature.)" +"*name* argument. This feature is similar to :file:`\\*.pth` files (see the :" +"mod:`site` module for more information), except that it doesn't special-case " +"lines starting with ``import``. A :file:`\\*.pkg` file is trusted at face " +"value: apart from checking for duplicates, all entries found in a :file:`\\*." +"pkg` file are added to the path, regardless of whether they exist on the " +"filesystem. (This is a feature.)" msgstr "" #: ../../library/pkgutil.rst:41 @@ -74,11 +76,11 @@ msgstr "" #: ../../library/pkgutil.rst:45 msgid "" -"It is assumed that :data:`sys.path` is a sequence. Items of " -":data:`sys.path` that are not strings referring to existing directories are " -"ignored. Unicode items on :data:`sys.path` that cause errors when used as " -"filenames may cause this function to raise an exception (in line with " -":func:`os.path.isdir` behavior)." +"It is assumed that :data:`sys.path` is a sequence. Items of :data:`sys." +"path` that are not strings referring to existing directories are ignored. " +"Unicode items on :data:`sys.path` that cause errors when used as filenames " +"may cause this function to raise an exception (in line with :func:`os.path." +"isdir` behavior)." msgstr "" #: ../../library/pkgutil.rst:54 @@ -115,10 +117,9 @@ msgstr "" #: ../../library/pkgutil.rst:82 msgid "" -"This is a backwards compatibility wrapper around " -":func:`importlib.util.find_spec` that converts most failures to " -":exc:`ImportError` and only returns the loader rather than the full " -":class:`ModuleSpec`." +"This is a backwards compatibility wrapper around :func:`importlib.util." +"find_spec` that converts most failures to :exc:`ImportError` and only " +"returns the loader rather than the full :class:`ModuleSpec`." msgstr "" #: ../../library/pkgutil.rst:87 ../../library/pkgutil.rst:104 @@ -145,8 +146,8 @@ msgstr "" #: ../../library/pkgutil.rst:101 msgid "" -"The cache (or part of it) can be cleared manually if a rescan of " -":data:`sys.path_hooks` is necessary." +"The cache (or part of it) can be cleared manually if a rescan of :data:`sys." +"path_hooks` is necessary." msgstr "" #: ../../library/pkgutil.rst:111 @@ -203,8 +204,8 @@ msgstr "" msgid "" "Only works for a :term:`finder` which defines an ``iter_modules()`` method. " "This interface is non-standard, so the module also provides implementations " -"for :class:`importlib.machinery.FileFinder` and " -":class:`zipimport.zipimporter`." +"for :class:`importlib.machinery.FileFinder` and :class:`zipimport." +"zipimporter`." msgstr "" #: ../../library/pkgutil.rst:168 @@ -222,11 +223,11 @@ msgstr "" #: ../../library/pkgutil.rst:179 msgid "" -"*onerror* is a function which gets called with one argument (the name of the" -" package which was being imported) if any exception occurs while trying to " -"import a package. If no *onerror* function is supplied, " -":exc:`ImportError`\\s are caught and ignored, while all other exceptions are" -" propagated, terminating the search." +"*onerror* is a function which gets called with one argument (the name of the " +"package which was being imported) if any exception occurs while trying to " +"import a package. If no *onerror* function is supplied, :exc:`ImportError`" +"\\s are caught and ignored, while all other exceptions are propagated, " +"terminating the search." msgstr "" #: ../../library/pkgutil.rst:185 @@ -239,12 +240,12 @@ msgstr "" #: ../../library/pkgutil.rst:209 msgid "" -"This is a wrapper for the :term:`loader` :meth:`get_data " -"` API. The *package* argument should" -" be the name of a package, in standard module format (``foo.bar``). The " -"*resource* argument should be in the form of a relative filename, using " -"``/`` as the path separator. The parent directory name ``..`` is not " -"allowed, and nor is a rooted name (starting with a ``/``)." +"This is a wrapper for the :term:`loader` :meth:`get_data ` API. The *package* argument should be the name of " +"a package, in standard module format (``foo.bar``). The *resource* argument " +"should be in the form of a relative filename, using ``/`` as the path " +"separator. The parent directory name ``..`` is not allowed, and nor is a " +"rooted name (starting with a ``/``)." msgstr "" #: ../../library/pkgutil.rst:216 @@ -262,9 +263,8 @@ msgstr "" #: ../../library/pkgutil.rst:225 msgid "" "If the package cannot be located or loaded, or it uses a :term:`loader` " -"which does not support :meth:`get_data " -"`, then ``None`` is returned. In " -"particular, the :term:`loader` for :term:`namespace packages ` does not support :meth:`get_data " -"`." +"which does not support :meth:`get_data `, then ``None`` is returned. In particular, the :term:`loader` " +"for :term:`namespace packages ` does not support :meth:" +"`get_data `." msgstr "" diff --git a/library/platform.po b/library/platform.po index 3114dd0e0..cde3ec278 100644 --- a/library/platform.po +++ b/library/platform.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,15 +44,15 @@ msgstr "" #: ../../library/platform.rst:26 msgid "" -"Queries the given executable (defaults to the Python interpreter binary) for" -" various architecture information." +"Queries the given executable (defaults to the Python interpreter binary) for " +"various architecture information." msgstr "" #: ../../library/platform.rst:29 msgid "" "Returns a tuple ``(bits, linkage)`` which contain information about the bit " -"architecture and the linkage format used for the executable. Both values are" -" returned as strings." +"architecture and the linkage format used for the executable. Both values are " +"returned as strings." msgstr "" #: ../../library/platform.rst:33 @@ -64,21 +66,21 @@ msgstr "" #: ../../library/platform.rst:38 msgid "" "The function relies on the system's :file:`file` command to do the actual " -"work. This is available on most if not all Unix platforms and some non-Unix" -" platforms and then only if the executable points to the Python interpreter." -" Reasonable defaults are used when the above needs are not met." +"work. This is available on most if not all Unix platforms and some non-Unix " +"platforms and then only if the executable points to the Python interpreter. " +"Reasonable defaults are used when the above needs are not met." msgstr "" #: ../../library/platform.rst:45 msgid "" -"On Mac OS X (and perhaps other platforms), executable files may be universal" -" files containing multiple architectures." +"On Mac OS X (and perhaps other platforms), executable files may be universal " +"files containing multiple architectures." msgstr "" #: ../../library/platform.rst:48 msgid "" -"To get at the \"64-bitness\" of the current interpreter, it is more reliable" -" to query the :attr:`sys.maxsize` attribute::" +"To get at the \"64-bitness\" of the current interpreter, it is more reliable " +"to query the :attr:`sys.maxsize` attribute::" msgstr "" #: ../../library/platform.rst:56 @@ -101,8 +103,8 @@ msgstr "" #: ../../library/platform.rst:71 msgid "" -"The output is intended to be *human readable* rather than machine parseable." -" It may look different on different platforms and this is intended." +"The output is intended to be *human readable* rather than machine parseable. " +"It may look different on different platforms and this is intended." msgstr "" #: ../../library/platform.rst:74 @@ -132,8 +134,8 @@ msgstr "" #: ../../library/platform.rst:94 msgid "" -"Returns a tuple ``(buildno, builddate)`` stating the Python build number and" -" date as strings." +"Returns a tuple ``(buildno, builddate)`` stating the Python build number and " +"date as strings." msgstr "" #: ../../library/platform.rst:100 @@ -184,8 +186,8 @@ msgstr "" #: ../../library/platform.rst:143 msgid "" -"Returns the system/OS name, e.g. ``'Linux'``, ``'Windows'``, or ``'Java'``. " -"An empty string is returned if the value cannot be determined." +"Returns the system/OS name, such as ``'Linux'``, ``'Darwin'``, ``'Java'``, " +"``'Windows'``. An empty string is returned if the value cannot be determined." msgstr "" #: ../../library/platform.rst:149 @@ -204,16 +206,16 @@ msgstr "" #: ../../library/platform.rst:162 msgid "" "Fairly portable uname interface. Returns a :func:`~collections.namedtuple` " -"containing six attributes: :attr:`system`, :attr:`node`, :attr:`release`, " -":attr:`version`, :attr:`machine`, and :attr:`processor`." +"containing six attributes: :attr:`system`, :attr:`node`, :attr:`release`, :" +"attr:`version`, :attr:`machine`, and :attr:`processor`." msgstr "" #: ../../library/platform.rst:166 msgid "" -"Note that this adds a sixth attribute (:attr:`processor`) not present in the" -" :func:`os.uname` result. Also, the attribute names are different for the " -"first two attributes; :func:`os.uname` names them :attr:`sysname` and " -":attr:`nodename`." +"Note that this adds a sixth attribute (:attr:`processor`) not present in " +"the :func:`os.uname` result. Also, the attribute names are different for " +"the first two attributes; :func:`os.uname` names them :attr:`sysname` and :" +"attr:`nodename`." msgstr "" #: ../../library/platform.rst:171 @@ -297,8 +299,8 @@ msgstr "" #: ../../library/platform.rst:239 msgid "" -"Entries which cannot be determined are set to ``''``. All tuple entries are" -" strings." +"Entries which cannot be determined are set to ``''``. All tuple entries are " +"strings." msgstr "" #: ../../library/platform.rst:244 @@ -311,8 +313,7 @@ msgstr "" #: ../../library/platform.rst:252 ../../library/platform.rst:271 msgid "" -"See alternative like the `distro `_ " -"package." +"See alternative like the `distro `_ package." msgstr "" #: ../../library/platform.rst:256 @@ -321,8 +322,8 @@ msgstr "" #: ../../library/platform.rst:258 msgid "" -"``supported_dists`` may be given to define the set of Linux distributions to" -" look for. It defaults to a list of currently supported Linux distributions " +"``supported_dists`` may be given to define the set of Linux distributions to " +"look for. It defaults to a list of currently supported Linux distributions " "identified by their release file name." msgstr "" @@ -336,8 +337,8 @@ msgstr "" #: ../../library/platform.rst:266 msgid "" "Returns a tuple ``(distname,version,id)`` which defaults to the args given " -"as parameters. ``id`` is the item in parentheses after the version number." -" It is usually the version codename." +"as parameters. ``id`` is the item in parentheses after the version number. " +"It is usually the version codename." msgstr "" #: ../../library/platform.rst:275 diff --git a/library/plistlib.po b/library/plistlib.po index d19f5e18f..951ad0d72 100644 --- a/library/plistlib.po +++ b/library/plistlib.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Hildeberto Abreu Magalhães , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hildeberto Abreu Magalhães , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/plistlib.py`" #: ../../library/plistlib.rst:19 msgid "" -"This module provides an interface for reading and writing the \"property " -"list\" files used mainly by Mac OS X and supports both binary and XML plist " +"This module provides an interface for reading and writing the \"property list" +"\" files used mainly by Mac OS X and supports both binary and XML plist " "files." msgstr "" @@ -46,21 +48,21 @@ msgstr "" #: ../../library/plistlib.rst:26 msgid "" -"To write out and to parse a plist file, use the :func:`dump` and " -":func:`load` functions." +"To write out and to parse a plist file, use the :func:`dump` and :func:" +"`load` functions." msgstr "" #: ../../library/plistlib.rst:29 msgid "" -"To work with plist data in bytes objects, use :func:`dumps` and " -":func:`loads`." +"To work with plist data in bytes objects, use :func:`dumps` and :func:" +"`loads`." msgstr "" #: ../../library/plistlib.rst:32 msgid "" "Values can be strings, integers, floats, booleans, tuples, lists, " -"dictionaries (but only with string keys), :class:`Data`, :class:`bytes`, " -":class:`bytesarray` or :class:`datetime.datetime` objects." +"dictionaries (but only with string keys), :class:`Data`, :class:`bytes`, :" +"class:`bytesarray` or :class:`datetime.datetime` objects." msgstr "" #: ../../library/plistlib.rst:36 @@ -69,8 +71,8 @@ msgstr "" #: ../../library/plistlib.rst:41 msgid "" -"`PList manual page " -"`_" +"`PList manual page `_" msgstr "" #: ../../library/plistlib.rst:42 @@ -79,7 +81,7 @@ msgstr "" #: ../../library/plistlib.rst:45 msgid "This module defines the following functions:" -msgstr "" +msgstr "Este módulo define as seguintes funções:" #: ../../library/plistlib.rst:49 msgid "" @@ -88,8 +90,7 @@ msgid "" msgstr "" #: ../../library/plistlib.rst:53 -msgid "" -"The *fmt* is the format of the file and the following values are valid:" +msgid "The *fmt* is the format of the file and the following values are valid:" msgstr "" #: ../../library/plistlib.rst:55 @@ -106,9 +107,9 @@ msgstr "" #: ../../library/plistlib.rst:61 msgid "" -"If *use_builtin_types* is true (the default) binary data will be returned as" -" instances of :class:`bytes`, otherwise it is returned as instances of " -":class:`Data`." +"If *use_builtin_types* is true (the default) binary data will be returned as " +"instances of :class:`bytes`, otherwise it is returned as instances of :class:" +"`Data`." msgstr "" #: ../../library/plistlib.rst:65 @@ -127,20 +128,19 @@ msgstr "" #: ../../library/plistlib.rst:73 msgid "" -"The parser for the binary format raises :exc:`InvalidFileException` when the" -" file cannot be parsed." +"The parser for the binary format raises :exc:`InvalidFileException` when the " +"file cannot be parsed." msgstr "" #: ../../library/plistlib.rst:81 msgid "" -"Load a plist from a bytes object. See :func:`load` for an explanation of the" -" keyword arguments." +"Load a plist from a bytes object. See :func:`load` for an explanation of the " +"keyword arguments." msgstr "" #: ../../library/plistlib.rst:89 msgid "" -"Write *value* to a plist file. *Fp* should be a writable, binary file " -"object." +"Write *value* to a plist file. *Fp* should be a writable, binary file object." msgstr "" #: ../../library/plistlib.rst:92 @@ -172,8 +172,8 @@ msgstr "" #: ../../library/plistlib.rst:106 msgid "" -"A :exc:`TypeError` will be raised if the object is of an unsupported type or" -" a container that contains objects of unsupported types." +"A :exc:`TypeError` will be raised if the object is of an unsupported type or " +"a container that contains objects of unsupported types." msgstr "" #: ../../library/plistlib.rst:109 @@ -184,8 +184,8 @@ msgstr "" #: ../../library/plistlib.rst:117 msgid "" -"Return *value* as a plist-formatted bytes object. See the documentation for " -":func:`dump` for an explanation of the keyword arguments of this function." +"Return *value* as a plist-formatted bytes object. See the documentation for :" +"func:`dump` for an explanation of the keyword arguments of this function." msgstr "" #: ../../library/plistlib.rst:123 @@ -194,8 +194,8 @@ msgstr "" #: ../../library/plistlib.rst:127 msgid "" -"Read a plist file. *pathOrFile* may be either a file name or a (readable and" -" binary) file object. Returns the unpacked root object (which usually is a " +"Read a plist file. *pathOrFile* may be either a file name or a (readable and " +"binary) file object. Returns the unpacked root object (which usually is a " "dictionary)." msgstr "" @@ -253,8 +253,8 @@ msgstr "" #: ../../library/plistlib.rst:173 msgid "" "Return a \"data\" wrapper object around the bytes object *data*. This is " -"used in functions converting from/to plists to represent the ```` type" -" available in plists." +"used in functions converting from/to plists to represent the ```` type " +"available in plists." msgstr "" #: ../../library/plistlib.rst:177 diff --git a/library/poplib.po b/library/poplib.po index 71c1f88dc..160a94514 100644 --- a/library/poplib.po +++ b/library/poplib.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Rafael Biagioni de Fazio , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" "Last-Translator: Rafael Biagioni de Fazio , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,26 +34,26 @@ msgstr "**Código Fonte:** :source:`Lib/poplib.py`" #: ../../library/poplib.rst:16 msgid "" "This module defines a class, :class:`POP3`, which encapsulates a connection " -"to a POP3 server and implements the protocol as defined in :rfc:`1939`. The " -":class:`POP3` class supports both the minimal and optional command sets from" -" :rfc:`1939`. The :class:`POP3` class also supports the ``STLS`` command " +"to a POP3 server and implements the protocol as defined in :rfc:`1939`. The :" +"class:`POP3` class supports both the minimal and optional command sets from :" +"rfc:`1939`. The :class:`POP3` class also supports the ``STLS`` command " "introduced in :rfc:`2595` to enable encrypted communication on an already " "established connection." msgstr "" #: ../../library/poplib.rst:22 msgid "" -"Additionally, this module provides a class :class:`POP3_SSL`, which provides" -" support for connecting to POP3 servers that use SSL as an underlying " +"Additionally, this module provides a class :class:`POP3_SSL`, which provides " +"support for connecting to POP3 servers that use SSL as an underlying " "protocol layer." msgstr "" #: ../../library/poplib.rst:26 msgid "" -"Note that POP3, though widely supported, is obsolescent. The implementation" -" quality of POP3 servers varies widely, and too many are quite poor. If your" -" mailserver supports IMAP, you would be better off using the " -":class:`imaplib.IMAP4` class, as IMAP servers tend to be better implemented." +"Note that POP3, though widely supported, is obsolescent. The implementation " +"quality of POP3 servers varies widely, and too many are quite poor. If your " +"mailserver supports IMAP, you would be better off using the :class:`imaplib." +"IMAP4` class, as IMAP servers tend to be better implemented." msgstr "" #: ../../library/poplib.rst:31 @@ -92,17 +93,15 @@ msgstr "" #: ../../library/poplib.rst:60 msgid "" -"The class now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The class now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/poplib.rst:67 msgid "" -"*keyfile* and *certfile* are deprecated in favor of *context*. Please use " -":meth:`ssl.SSLContext.load_cert_chain` instead, or let " -":func:`ssl.create_default_context` select the system's trusted CA " -"certificates for you." +"*keyfile* and *certfile* are deprecated in favor of *context*. Please use :" +"meth:`ssl.SSLContext.load_cert_chain` instead, or let :func:`ssl." +"create_default_context` select the system's trusted CA certificates for you." msgstr "" #: ../../library/poplib.rst:72 @@ -126,15 +125,15 @@ msgstr "" #: ../../library/poplib.rst:89 msgid "" -"`Frequently Asked Questions About Fetchmail " -"`_" +"`Frequently Asked Questions About Fetchmail `_" msgstr "" #: ../../library/poplib.rst:88 msgid "" -"The FAQ for the :program:`fetchmail` POP/IMAP client collects information on" -" POP3 server variations and RFC noncompliance that may be useful if you need" -" to write an application based on the POP protocol." +"The FAQ for the :program:`fetchmail` POP/IMAP client collects information on " +"POP3 server variations and RFC noncompliance that may be useful if you need " +"to write an application based on the POP protocol." msgstr "" #: ../../library/poplib.rst:96 @@ -156,8 +155,8 @@ msgid "" "Set the instance's debugging level. This controls the amount of debugging " "output printed. The default, ``0``, produces no debugging output. A value " "of ``1`` produces a moderate amount of debugging output, generally a single " -"line per request. A value of ``2`` or higher produces the maximum amount of" -" debugging output, logging each line sent and received on the control " +"line per request. A value of ``2`` or higher produces the maximum amount of " +"debugging output, logging each line sent and received on the control " "connection." msgstr "" @@ -188,8 +187,7 @@ msgstr "" #: ../../library/poplib.rst:144 msgid "" -"Use RPOP authentication (similar to UNIX r-commands) to log into POP3 " -"server." +"Use RPOP authentication (similar to UNIX r-commands) to log into POP3 server." msgstr "" #: ../../library/poplib.rst:149 @@ -200,8 +198,8 @@ msgstr "" #: ../../library/poplib.rst:155 msgid "" -"Request message list, result is in the form ``(response, ['mesg_num octets'," -" ...], octets)``. If *which* is set, it is the message to list." +"Request message list, result is in the form ``(response, ['mesg_num " +"octets', ...], octets)``. If *which* is set, it is the message to list." msgstr "" #: ../../library/poplib.rst:161 @@ -212,8 +210,8 @@ msgstr "" #: ../../library/poplib.rst:167 msgid "" -"Flag message number *which* for deletion. On most servers deletions are not" -" actually performed until QUIT (the major exception is Eudora QPOP, which " +"Flag message number *which* for deletion. On most servers deletions are not " +"actually performed until QUIT (the major exception is Eudora QPOP, which " "deliberately violates the RFCs by doing pending deletes on any disconnect)." msgstr "" @@ -232,8 +230,8 @@ msgstr "" #: ../../library/poplib.rst:189 msgid "" "Retrieves the message header plus *howmuch* lines of the message after the " -"header of message number *which*. Result is in form ``(response, ['line', " -"...], octets)``." +"header of message number *which*. Result is in form ``(response, " +"['line', ...], octets)``." msgstr "" #: ../../library/poplib.rst:193 @@ -248,8 +246,7 @@ msgstr "" msgid "" "Return message digest (unique id) list. If *which* is specified, result " "contains the unique id for that message in the form ``'response mesgnum " -"uid``, otherwise result is list ``(response, ['mesgnum uid', ...], " -"octets)``." +"uid``, otherwise result is list ``(response, ['mesgnum uid', ...], octets)``." msgstr "" #: ../../library/poplib.rst:208 @@ -274,9 +271,8 @@ msgstr "" #: ../../library/poplib.rst:224 msgid "" -"This method supports hostname checking via " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"This method supports hostname checking via :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/poplib.rst:231 diff --git a/library/posix.po b/library/posix.po index 27c613e68..bf91dc727 100644 --- a/library/posix.po +++ b/library/posix.po @@ -1,16 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-23 03:16+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,7 +24,7 @@ msgstr "" #: ../../library/posix.rst:2 msgid ":mod:`posix` --- The most common POSIX system calls" -msgstr "" +msgstr ":mod:`posix` --- As chamadas de sistema mais comuns do POSIX" #: ../../library/posix.rst:10 msgid "" @@ -27,29 +32,44 @@ msgid "" "standardized by the C Standard and the POSIX standard (a thinly disguised " "Unix interface)." msgstr "" +"Este módulo fornece acesso à funcionalidade do sistema operacional " +"padronizada pelo padrão C e pelo padrão POSIX (uma interface Unix levemente " +"disfarçada)." #: ../../library/posix.rst:16 msgid "" -"**Do not import this module directly.** Instead, import the module " -":mod:`os`, which provides a *portable* version of this interface. On Unix, " -"the :mod:`os` module provides a superset of the :mod:`posix` interface. On " -"non-Unix operating systems the :mod:`posix` module is not available, but a " +"**Do not import this module directly.** Instead, import the module :mod:" +"`os`, which provides a *portable* version of this interface. On Unix, the :" +"mod:`os` module provides a superset of the :mod:`posix` interface. On non-" +"Unix operating systems the :mod:`posix` module is not available, but a " "subset is always available through the :mod:`os` interface. Once :mod:`os` " -"is imported, there is *no* performance penalty in using it instead of " -":mod:`posix`. In addition, :mod:`os` provides some additional " -"functionality, such as automatically calling :func:`~os.putenv` when an " -"entry in ``os.environ`` is changed." +"is imported, there is *no* performance penalty in using it instead of :mod:" +"`posix`. In addition, :mod:`os` provides some additional functionality, " +"such as automatically calling :func:`~os.putenv` when an entry in ``os." +"environ`` is changed." msgstr "" +"**Não importe este módulo diretamente.** Em vez disso, importe o módulo :mod:" +"`os`, que fornece uma versão *portátil* dessa interface. No Unix, o módulo :" +"mod:`os` fornece um superconjunto da interface :mod:`posix`. Em sistemas " +"operacionais não Unix, o módulo :mod:`posix` não está disponível, mas um " +"subconjunto está sempre disponível na interface :mod:`os`. Uma vez que :mod:" +"`os` é importado, seu uso *não* causa penalidade de desempenho em comparação " +"com :mod:`posix`. Além disso, :mod:`os` fornece algumas funcionalidades " +"adicionais, como chamar automaticamente :func:`~os.putenv` quando uma " +"entrada em ``os.environ`` é alterada." #: ../../library/posix.rst:25 msgid "" "Errors are reported as exceptions; the usual exceptions are given for type " "errors, while errors reported by the system calls raise :exc:`OSError`." msgstr "" +"Erros são relatados como exceções. As exceções usuais são dadas para erros " +"de tipo, enquanto os erros relatados pelas chamadas do sistema aumentam :exc:" +"`OSError`." #: ../../library/posix.rst:32 msgid "Large File Support" -msgstr "" +msgstr "Suporte a arquivos grandes" #: ../../library/posix.rst:40 msgid "" @@ -59,6 +79,12 @@ msgid "" "accomplished by defining the relevant size and offset types as 64-bit " "values. Such files are sometimes referred to as :dfn:`large files`." msgstr "" +"Vários sistemas operacionais (incluindo AIX, HP-UX, Irix e Solaris) fornecem " +"suporte a arquivos maiores que 2 GiB a partir de um modelo de programação C " +"em que :c:type:`int` e :c:type:`long` são valores de 32 bits. Isso " +"geralmente é realizado definindo o tamanho relevante e os tipos de " +"deslocamento como valores de 64 bits. Esses arquivos às vezes são chamados " +"de :dfn:`arquivos grandes`." #: ../../library/posix.rst:46 msgid "" @@ -69,47 +95,70 @@ msgid "" "enabled by default with recent versions of Irix, but with Solaris 2.6 and " "2.7 you need to do something like::" msgstr "" +"O suporte a arquivos grandes é ativado no Python quando o tamanho de um :c:" +"type:`off_t` é maior que a :c:type:`long` e :c:type:`long long` é pelo menos " +"tão grande quanto um :c:tipo:`off_t`. Pode ser necessário configurar e " +"compilar o Python com certos sinalizadores do compilador para ativar esse " +"modo. Por exemplo, ele é ativado por padrão nas versões recentes do Irix, " +"mas com o Solaris 2.6 e 2.7 você precisa fazer algo como:" #: ../../library/posix.rst:56 msgid "On large-file-capable Linux systems, this might work::" msgstr "" +"Em sistemas Linux com capacidade para arquivos grandes, isso pode funcionar:" #: ../../library/posix.rst:65 msgid "Notable Module Contents" -msgstr "" +msgstr "Conteúdo notável do módulo" #: ../../library/posix.rst:67 msgid "" "In addition to many functions described in the :mod:`os` module " "documentation, :mod:`posix` defines the following data item:" msgstr "" +"Além de muitas funções descritas na documentação do módulo :mod:`os`, :mod:" +"`posix` define o seguinte item de dados:" #: ../../library/posix.rst:72 msgid "" -"A dictionary representing the string environment at the time the interpreter" -" was started. Keys and values are bytes on Unix and str on Windows. For " +"A dictionary representing the string environment at the time the interpreter " +"was started. Keys and values are bytes on Unix and str on Windows. For " "example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the " "pathname of your home directory, equivalent to ``getenv(\"HOME\")`` in C." msgstr "" +"Um dicionário que representa o ambiente de strings no momento em que o " +"interpretador foi iniciado. Chaves e valores são bytes no Unix e str no " +"Windows. Por exemplo, ``environ[b'HOME']`` (``environ['HOME']`` no Windows) " +"é o nome do caminho do diretório inicial, equivalente a ``getenv(\"HOME\")`` " +"em C ." #: ../../library/posix.rst:77 msgid "" "Modifying this dictionary does not affect the string environment passed on " "by :func:`~os.execv`, :func:`~os.popen` or :func:`~os.system`; if you need " "to change the environment, pass ``environ`` to :func:`~os.execve` or add " -"variable assignments and export statements to the command string for " -":func:`~os.system` or :func:`~os.popen`." +"variable assignments and export statements to the command string for :func:" +"`~os.system` or :func:`~os.popen`." msgstr "" +"A modificação deste dicionário não afeta o ambiente de strings passado por :" +"func:`~os.execv`, :func:`~os.popen` ou :func:`~os.system`. Se você precisar " +"alterar o ambiente, passe ``environ`` para :func:`~os.execve` ou adicione " +"atribuições de variável e instruções de exportação para a string de comando " +"para :func:`~os.system` ou :func:`~os.popen`." #: ../../library/posix.rst:83 msgid "On Unix, keys and values are bytes." -msgstr "" +msgstr "No Unix, chaves e valores são bytes." #: ../../library/posix.rst:88 msgid "" "The :mod:`os` module provides an alternate implementation of ``environ`` " -"which updates the environment on modification. Note also that updating " -":data:`os.environ` will render this dictionary obsolete. Use of the " -":mod:`os` module version of this is recommended over direct access to the " -":mod:`posix` module." +"which updates the environment on modification. Note also that updating :data:" +"`os.environ` will render this dictionary obsolete. Use of the :mod:`os` " +"module version of this is recommended over direct access to the :mod:`posix` " +"module." msgstr "" +"O módulo :mod:`os` fornece uma implementação alternativa de ``environ`` que " +"atualiza o ambiente ao ocorrerem modificações. Observe também que a " +"atualização de :data:`os.environ` tornará este dicionário obsoleto. O uso do " +"módulo :mod:`os` é recomendado sobre o acesso direto ao módulo :mod:`posix`." diff --git a/library/pprint.po b/library/pprint.po index 3a47db069..221d44703 100644 --- a/library/pprint.po +++ b/library/pprint.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +33,8 @@ msgstr "**Código Fonte:** :source:`Lib/pprint.py`" #: ../../library/pprint.rst:14 msgid "" -"The :mod:`pprint` module provides a capability to \"pretty-print\" arbitrary" -" Python data structures in a form which can be used as input to the " +"The :mod:`pprint` module provides a capability to \"pretty-print\" arbitrary " +"Python data structures in a form which can be used as input to the " "interpreter. If the formatted structures include objects which are not " "fundamental Python types, the representation may not be loadable. This may " "be the case if objects such as files, sockets or classes are included, as " @@ -60,17 +61,17 @@ msgstr "" msgid "" "Construct a :class:`PrettyPrinter` instance. This constructor understands " "several keyword parameters. An output stream may be set using the *stream* " -"keyword; the only method used on the stream object is the file protocol's " -":meth:`write` method. If not specified, the :class:`PrettyPrinter` adopts " -"``sys.stdout``. The amount of indentation added for each recursive level is" -" specified by *indent*; the default is one. Other values can cause output " -"to look a little odd, but can make nesting easier to spot. The number of " +"keyword; the only method used on the stream object is the file protocol's :" +"meth:`write` method. If not specified, the :class:`PrettyPrinter` adopts " +"``sys.stdout``. The amount of indentation added for each recursive level is " +"specified by *indent*; the default is one. Other values can cause output to " +"look a little odd, but can make nesting easier to spot. The number of " "levels which may be printed is controlled by *depth*; if the data structure " -"being printed is too deep, the next contained level is replaced by ``...``." -" By default, there is no constraint on the depth of the objects being " +"being printed is too deep, the next contained level is replaced by ``...``. " +"By default, there is no constraint on the depth of the objects being " "formatted. The desired output width is constrained using the *width* " -"parameter; the default is 80 characters. If a structure cannot be formatted" -" within the constrained width, a best effort will be made. If *compact* is " +"parameter; the default is 80 characters. If a structure cannot be formatted " +"within the constrained width, a best effort will be made. If *compact* is " "false (the default) each item of a long sequence will be formatted on a " "separate line. If *compact* is true, as many items as will fit within the " "*width* will be formatted on each output line." @@ -95,16 +96,16 @@ msgstr "" #: ../../library/pprint.rst:97 msgid "" "Prints the formatted representation of *object* on *stream*, followed by a " -"newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used" -" in the interactive interpreter instead of the :func:`print` function for " +"newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used " +"in the interactive interpreter instead of the :func:`print` function for " "inspecting values (you can even reassign ``print = pprint.pprint`` for use " -"within a scope). *indent*, *width*, *depth* and *compact* will be passed to" -" the :class:`PrettyPrinter` constructor as formatting parameters." +"within a scope). *indent*, *width*, *depth* and *compact* will be passed to " +"the :class:`PrettyPrinter` constructor as formatting parameters." msgstr "" #: ../../library/pprint.rst:123 msgid "" -"Determine if the formatted representation of *object* is \"readable,\" or " +"Determine if the formatted representation of *object* is \"readable\", or " "can be used to reconstruct the value using :func:`eval`. This always " "returns ``False`` for recursive objects." msgstr "" @@ -119,10 +120,10 @@ msgstr "" #: ../../library/pprint.rst:140 msgid "" -"Return a string representation of *object*, protected against recursive data" -" structures. If the representation of *object* exposes a recursive entry, " -"the recursive reference will be represented as ````. The representation is not otherwise formatted." +"Return a string representation of *object*, protected against recursive data " +"structures. If the representation of *object* exposes a recursive entry, " +"the recursive reference will be represented as ````. The representation is not otherwise formatted." msgstr "" #: ../../library/pprint.rst:152 @@ -148,8 +149,8 @@ msgstr "" #: ../../library/pprint.rst:168 msgid "" "The following methods provide the implementations for the corresponding " -"functions of the same names. Using these methods on an instance is slightly" -" more efficient since new :class:`PrettyPrinter` objects don't need to be " +"functions of the same names. Using these methods on an instance is slightly " +"more efficient since new :class:`PrettyPrinter` objects don't need to be " "created." msgstr "" @@ -157,8 +158,8 @@ msgstr "" msgid "" "Determine if the formatted representation of the object is \"readable,\" or " "can be used to reconstruct the value using :func:`eval`. Note that this " -"returns ``False`` for recursive objects. If the *depth* parameter of the " -":class:`PrettyPrinter` is set and the object is deeper than allowed, this " +"returns ``False`` for recursive objects. If the *depth* parameter of the :" +"class:`PrettyPrinter` is set and the object is deeper than allowed, this " "returns ``False``." msgstr "" @@ -178,13 +179,13 @@ msgid "" "Returns three values: the formatted version of *object* as a string, a flag " "indicating whether the result is readable, and a flag indicating whether " "recursion was detected. The first argument is the object to be presented. " -"The second is a dictionary which contains the :func:`id` of objects that are" -" part of the current presentation context (direct and indirect containers " -"for *object* that are affecting the presentation) as the keys; if an object " +"The second is a dictionary which contains the :func:`id` of objects that are " +"part of the current presentation context (direct and indirect containers for " +"*object* that are affecting the presentation) as the keys; if an object " "needs to be presented which is already represented in *context*, the third " "return value should be ``True``. Recursive calls to the :meth:`.format` " -"method should add additional entries for containers to this dictionary. The" -" third argument, *maxlevels*, gives the requested limit to recursion; this " +"method should add additional entries for containers to this dictionary. The " +"third argument, *maxlevels*, gives the requested limit to recursion; this " "will be ``0`` if there is no requested limit. This argument should be " "passed unmodified to recursive calls. The fourth argument, *level*, gives " "the current level; recursive calls should be passed a value less than that " @@ -198,8 +199,8 @@ msgstr "Exemplo" #: ../../library/pprint.rst:216 msgid "" "To demonstrate several uses of the :func:`pprint` function and its " -"parameters, let's fetch information about a project from `PyPI " -"`_::" +"parameters, let's fetch information about a project from `PyPI `_::" msgstr "" #: ../../library/pprint.rst:225 diff --git a/library/profile.po b/library/profile.po index 0c862e690..411c44974 100644 --- a/library/profile.po +++ b/library/profile.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,8 +30,7 @@ msgstr "" #: ../../library/profile.rst:7 msgid "**Source code:** :source:`Lib/profile.py` and :source:`Lib/pstats.py`" -msgstr "" -"**Código Fonte:** :source:`Lib/profile.py` and :source:`Lib/pstats.py`" +msgstr "**Código Fonte:** :source:`Lib/profile.py` and :source:`Lib/pstats.py`" #: ../../library/profile.rst:14 msgid "Introduction to the profilers" @@ -37,9 +38,9 @@ msgstr "" #: ../../library/profile.rst:20 msgid "" -":mod:`cProfile` and :mod:`profile` provide :dfn:`deterministic profiling` of" -" Python programs. A :dfn:`profile` is a set of statistics that describes how" -" often and for how long various parts of the program executed. These " +":mod:`cProfile` and :mod:`profile` provide :dfn:`deterministic profiling` of " +"Python programs. A :dfn:`profile` is a set of statistics that describes how " +"often and for how long various parts of the program executed. These " "statistics can be formatted into reports via the :mod:`pstats` module." msgstr "" @@ -59,20 +60,20 @@ msgstr "" #: ../../library/profile.rst:33 msgid "" -":mod:`profile`, a pure Python module whose interface is imitated by " -":mod:`cProfile`, but which adds significant overhead to profiled programs. " -"If you're trying to extend the profiler in some way, the task might be " -"easier with this module. Originally designed and written by Jim Roskind." +":mod:`profile`, a pure Python module whose interface is imitated by :mod:" +"`cProfile`, but which adds significant overhead to profiled programs. If " +"you're trying to extend the profiler in some way, the task might be easier " +"with this module. Originally designed and written by Jim Roskind." msgstr "" #: ../../library/profile.rst:40 msgid "" "The profiler modules are designed to provide an execution profile for a " -"given program, not for benchmarking purposes (for that, there is " -":mod:`timeit` for reasonably accurate results). This particularly applies " -"to benchmarking Python code against C code: the profilers introduce overhead" -" for Python code, but not for C-level functions, and so the C code would " -"seem faster than any Python one." +"given program, not for benchmarking purposes (for that, there is :mod:" +"`timeit` for reasonably accurate results). This particularly applies to " +"benchmarking Python code against C code: the profilers introduce overhead " +"for Python code, but not for C-level functions, and so the C code would seem " +"faster than any Python one." msgstr "" #: ../../library/profile.rst:51 @@ -98,17 +99,17 @@ msgstr "" #: ../../library/profile.rst:66 msgid "" -"The above action would run :func:`re.compile` and print profile results like" -" the following::" +"The above action would run :func:`re.compile` and print profile results like " +"the following::" msgstr "" #: ../../library/profile.rst:82 msgid "" -"The first line indicates that 197 calls were monitored. Of those calls, 192" -" were :dfn:`primitive`, meaning that the call was not induced via recursion." -" The next line: ``Ordered by: standard name``, indicates that the text " -"string in the far right column was used to sort the output. The column " -"headings include:" +"The first line indicates that 197 calls were monitored. Of those calls, 192 " +"were :dfn:`primitive`, meaning that the call was not induced via recursion. " +"The next line: ``Ordered by: standard name``, indicates that the text string " +"in the far right column was used to sort the output. The column headings " +"include:" msgstr "" #: ../../library/profile.rst:88 @@ -163,8 +164,8 @@ msgstr "" msgid "" "When there are two numbers in the first column (for example ``3/1``), it " "means that the function recursed. The second value is the number of " -"primitive calls and the former is the total number of calls. Note that when" -" the function does not recurse, these two values are the same, and only the " +"primitive calls and the former is the total number of calls. Note that when " +"the function does not recurse, these two values are the same, and only the " "single figure is printed." msgstr "" @@ -213,9 +214,9 @@ msgstr "" #: ../../library/profile.rst:146 msgid "" -"The :meth:`~pstats.Stats.strip_dirs` method removed the extraneous path from" -" all the module names. The :meth:`~pstats.Stats.sort_stats` method sorted " -"all the entries according to the standard module/line/name string that is " +"The :meth:`~pstats.Stats.strip_dirs` method removed the extraneous path from " +"all the module names. The :meth:`~pstats.Stats.sort_stats` method sorted all " +"the entries according to the standard module/line/name string that is " "printed. The :meth:`~pstats.Stats.print_stats` method printed out all the " "statistics. You might try the following sort calls::" msgstr "" @@ -301,8 +302,8 @@ msgstr "" #: ../../library/profile.rst:217 msgid "" -"This function takes a single argument that can be passed to the :func:`exec`" -" function, and an optional file name. In all cases this routine executes::" +"This function takes a single argument that can be passed to the :func:`exec` " +"function, and an optional file name. In all cases this routine executes::" msgstr "" #: ../../library/profile.rst:222 @@ -336,8 +337,8 @@ msgid "" "A custom timer can be supplied for measuring how long code takes to run via " "the *timer* argument. This must be a function that returns a single number " "representing the current time. If the number is an integer, the *timeunit* " -"specifies a multiplier that specifies the duration of each unit of time. For" -" example, if the timer returns times measured in thousands of seconds, the " +"specifies a multiplier that specifies the duration of each unit of time. For " +"example, if the timer returns times measured in thousands of seconds, the " "time unit would be ``.001``." msgstr "" @@ -388,8 +389,8 @@ msgstr "" #: ../../library/profile.rst:300 msgid "" "Note that profiling will only work if the called command/function actually " -"returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call" -" during the called command/function execution) no profiling results will be " +"returns. If the interpreter is terminated (e.g. via a :func:`sys.exit` call " +"during the called command/function execution) no profiling results will be " "printed." msgstr "" @@ -399,35 +400,34 @@ msgstr "" #: ../../library/profile.rst:310 msgid "" -"Analysis of the profiler data is done using the :class:`~pstats.Stats` " -"class." +"Analysis of the profiler data is done using the :class:`~pstats.Stats` class." msgstr "" #: ../../library/profile.rst:317 msgid "" -"This class constructor creates an instance of a \"statistics object\" from a" -" *filename* (or list of filenames) or from a :class:`Profile` instance. " +"This class constructor creates an instance of a \"statistics object\" from a " +"*filename* (or list of filenames) or from a :class:`Profile` instance. " "Output will be printed to the stream specified by *stream*." msgstr "" #: ../../library/profile.rst:321 msgid "" "The file selected by the above constructor must have been created by the " -"corresponding version of :mod:`profile` or :mod:`cProfile`. To be specific," -" there is *no* file compatibility guaranteed with future versions of this " +"corresponding version of :mod:`profile` or :mod:`cProfile`. To be specific, " +"there is *no* file compatibility guaranteed with future versions of this " "profiler, and there is no compatibility with files produced by other " "profilers, or the same profiler run on a different operating system. If " "several files are provided, all the statistics for identical functions will " -"be coalesced, so that an overall view of several processes can be considered" -" in a single report. If additional files need to be combined with data in " -"an existing :class:`~pstats.Stats` object, the :meth:`~pstats.Stats.add` " -"method can be used." +"be coalesced, so that an overall view of several processes can be considered " +"in a single report. If additional files need to be combined with data in an " +"existing :class:`~pstats.Stats` object, the :meth:`~pstats.Stats.add` method " +"can be used." msgstr "" #: ../../library/profile.rst:332 msgid "" -"Instead of reading the profile data from a file, a :class:`cProfile.Profile`" -" or :class:`profile.Profile` object can be used as the profile data source." +"Instead of reading the profile data from a file, a :class:`cProfile.Profile` " +"or :class:`profile.Profile` object can be used as the profile data source." msgstr "" #: ../../library/profile.rst:335 @@ -441,28 +441,27 @@ msgid "" "printout to fit within (close to) 80 columns. This method modifies the " "object, and the stripped information is lost. After performing a strip " "operation, the object is considered to have its entries in a \"random\" " -"order, as it was just after object initialization and loading. If " -":meth:`~pstats.Stats.strip_dirs` causes two function names to be " -"indistinguishable (they are on the same line of the same filename, and have " -"the same function name), then the statistics for these two entries are " -"accumulated into a single entry." +"order, as it was just after object initialization and loading. If :meth:" +"`~pstats.Stats.strip_dirs` causes two function names to be indistinguishable " +"(they are on the same line of the same filename, and have the same function " +"name), then the statistics for these two entries are accumulated into a " +"single entry." msgstr "" #: ../../library/profile.rst:353 msgid "" "This method of the :class:`Stats` class accumulates additional profiling " "information into the current profiling object. Its arguments should refer " -"to filenames created by the corresponding version of :func:`profile.run` or " -":func:`cProfile.run`. Statistics for identically named (re: file, line, " -"name) functions are automatically accumulated into single function " -"statistics." +"to filenames created by the corresponding version of :func:`profile.run` or :" +"func:`cProfile.run`. Statistics for identically named (re: file, line, name) " +"functions are automatically accumulated into single function statistics." msgstr "" #: ../../library/profile.rst:363 msgid "" "Save the data loaded into the :class:`Stats` object to a file named " -"*filename*. The file is created if it does not exist, and is overwritten if" -" it already exists. This is equivalent to the method of the same name on " +"*filename*. The file is created if it does not exist, and is overwritten if " +"it already exists. This is equivalent to the method of the same name on " "the :class:`profile.Profile` and :class:`cProfile.Profile` classes." msgstr "" @@ -479,8 +478,8 @@ msgstr "" #: ../../library/profile.rst:378 msgid "" "When more than one key is provided, then additional keys are used as " -"secondary criteria when there is equality in all keys selected before them." -" For example, ``sort_stats(SortKey.NAME, SortKey.FILE)`` will sort all the " +"secondary criteria when there is equality in all keys selected before them. " +"For example, ``sort_stats(SortKey.NAME, SortKey.FILE)`` will sort all the " "entries according to their function name, and resolve all ties (identical " "function names) by sorting by file name." msgstr "" @@ -533,7 +532,7 @@ msgstr "cumulative time" #: ../../library/profile.rst:396 msgid "``'cumtime'``" -msgstr "" +msgstr "``'cumtime'``" #: ../../library/profile.rst:396 ../../library/profile.rst:398 #: ../../library/profile.rst:402 ../../library/profile.rst:404 @@ -543,7 +542,7 @@ msgstr "" #: ../../library/profile.rst:398 msgid "``'file'``" -msgstr "" +msgstr "``'file'``" #: ../../library/profile.rst:398 ../../library/profile.rst:400 #: ../../library/profile.rst:402 @@ -552,7 +551,7 @@ msgstr "" #: ../../library/profile.rst:400 msgid "``'filename'``" -msgstr "" +msgstr "``'filename'``" #: ../../library/profile.rst:400 msgid "SortKey.FILENAME" @@ -560,15 +559,15 @@ msgstr "" #: ../../library/profile.rst:402 msgid "``'module'``" -msgstr "" +msgstr "``'module'``" #: ../../library/profile.rst:404 msgid "``'ncalls'``" -msgstr "" +msgstr "``'ncalls'``" #: ../../library/profile.rst:406 msgid "``'pcalls'``" -msgstr "" +msgstr "``'pcalls'``" #: ../../library/profile.rst:406 msgid "SortKey.PCALLS" @@ -580,7 +579,7 @@ msgstr "" #: ../../library/profile.rst:408 msgid "``'line'``" -msgstr "" +msgstr "``'line'``" #: ../../library/profile.rst:408 msgid "SortKey.LINE" @@ -592,7 +591,7 @@ msgstr "" #: ../../library/profile.rst:410 msgid "``'name'``" -msgstr "" +msgstr "``'name'``" #: ../../library/profile.rst:410 msgid "SortKey.NAME" @@ -604,7 +603,7 @@ msgstr "" #: ../../library/profile.rst:412 msgid "``'nfl'``" -msgstr "" +msgstr "``'nfl'``" #: ../../library/profile.rst:412 msgid "SortKey.NFL" @@ -616,7 +615,7 @@ msgstr "" #: ../../library/profile.rst:414 msgid "``'stdname'``" -msgstr "" +msgstr "``'stdname'``" #: ../../library/profile.rst:414 msgid "SortKey.STDNAME" @@ -628,7 +627,7 @@ msgstr "" #: ../../library/profile.rst:416 msgid "``'time'``" -msgstr "" +msgstr "``'time'``" #: ../../library/profile.rst:416 msgid "SortKey.TIME" @@ -640,18 +639,18 @@ msgstr "" #: ../../library/profile.rst:418 msgid "``'tottime'``" -msgstr "" +msgstr "``'tottime'``" #: ../../library/profile.rst:421 msgid "" -"Note that all sorts on statistics are in descending order (placing most time" -" consuming items first), where as name, file, and line number searches are " -"in ascending order (alphabetical). The subtle distinction between " -"``SortKey.NFL`` and ``SortKey.STDNAME`` is that the standard name is a sort " -"of the name as printed, which means that the embedded line numbers get " -"compared in an odd way. For example, lines 3, 20, and 40 would (if the file" -" names were the same) appear in the string order 20, 3 and 40. In contrast, " -"``SortKey.NFL`` does a numeric compare of the line numbers. In fact, " +"Note that all sorts on statistics are in descending order (placing most time " +"consuming items first), where as name, file, and line number searches are in " +"ascending order (alphabetical). The subtle distinction between ``SortKey." +"NFL`` and ``SortKey.STDNAME`` is that the standard name is a sort of the " +"name as printed, which means that the embedded line numbers get compared in " +"an odd way. For example, lines 3, 20, and 40 would (if the file names were " +"the same) appear in the string order 20, 3 and 40. In contrast, ``SortKey." +"NFL`` does a numeric compare of the line numbers. In fact, " "``sort_stats(SortKey.NFL)`` is the same as ``sort_stats(SortKey.NAME, " "SortKey.FILENAME, SortKey.LINE)``." msgstr "" @@ -678,22 +677,22 @@ msgstr "" #: ../../library/profile.rst:455 msgid "" -"This method for the :class:`Stats` class prints out a report as described in" -" the :func:`profile.run` definition." +"This method for the :class:`Stats` class prints out a report as described in " +"the :func:`profile.run` definition." msgstr "" #: ../../library/profile.rst:458 msgid "" -"The order of the printing is based on the last " -":meth:`~pstats.Stats.sort_stats` operation done on the object (subject to " -"caveats in :meth:`~pstats.Stats.add` and :meth:`~pstats.Stats.strip_dirs`)." +"The order of the printing is based on the last :meth:`~pstats.Stats." +"sort_stats` operation done on the object (subject to caveats in :meth:" +"`~pstats.Stats.add` and :meth:`~pstats.Stats.strip_dirs`)." msgstr "" #: ../../library/profile.rst:463 msgid "" "The arguments provided (if any) can be used to limit the list down to the " -"significant entries. Initially, the list is taken to be the complete set of" -" profiled functions. Each restriction is either an integer (to select a " +"significant entries. Initially, the list is taken to be the complete set of " +"profiled functions. Each restriction is either an integer (to select a " "count of lines), or a decimal fraction between 0.0 and 1.0 inclusive (to " "select a percentage of lines), or a string that will interpreted as a " "regular expression (to pattern match the standard name that is printed). If " @@ -716,11 +715,11 @@ msgstr "" #: ../../library/profile.rst:486 msgid "" -"This method for the :class:`Stats` class prints a list of all functions that" -" called each function in the profiled database. The ordering is identical " -"to that provided by :meth:`~pstats.Stats.print_stats`, and the definition of" -" the restricting argument is also identical. Each caller is reported on its" -" own line. The format differs slightly depending on the profiler that " +"This method for the :class:`Stats` class prints a list of all functions that " +"called each function in the profiled database. The ordering is identical to " +"that provided by :meth:`~pstats.Stats.print_stats`, and the definition of " +"the restricting argument is also identical. Each caller is reported on its " +"own line. The format differs slightly depending on the profiler that " "produced the stats:" msgstr "" @@ -743,8 +742,8 @@ msgstr "" msgid "" "This method for the :class:`Stats` class prints a list of all function that " "were called by the indicated function. Aside from this reversal of " -"direction of calls (re: called vs was called by), the arguments and ordering" -" are identical to the :meth:`~pstats.Stats.print_callers` method." +"direction of calls (re: called vs was called by), the arguments and ordering " +"are identical to the :meth:`~pstats.Stats.print_callers` method." msgstr "" #: ../../library/profile.rst:515 @@ -757,21 +756,21 @@ msgid "" "*function call*, *function return*, and *exception* events are monitored, " "and precise timings are made for the intervals between these events (during " "which time the user's code is executing). In contrast, :dfn:`statistical " -"profiling` (which is not done by this module) randomly samples the effective" -" instruction pointer, and deduces where time is being spent. The latter " -"technique traditionally involves less overhead (as the code does not need to" -" be instrumented), but provides only relative indications of where time is " +"profiling` (which is not done by this module) randomly samples the effective " +"instruction pointer, and deduces where time is being spent. The latter " +"technique traditionally involves less overhead (as the code does not need to " +"be instrumented), but provides only relative indications of where time is " "being spent." msgstr "" #: ../../library/profile.rst:526 msgid "" "In Python, since there is an interpreter active during execution, the " -"presence of instrumented code is not required to do deterministic profiling." -" Python automatically provides a :dfn:`hook` (optional callback) for each " -"event. In addition, the interpreted nature of Python tends to add so much " -"overhead to execution, that deterministic profiling tends to only add small " -"processing overhead in typical applications. The result is that " +"presence of instrumented code is not required to do deterministic " +"profiling. Python automatically provides a :dfn:`hook` (optional callback) " +"for each event. In addition, the interpreted nature of Python tends to add " +"so much overhead to execution, that deterministic profiling tends to only " +"add small processing overhead in typical applications. The result is that " "deterministic profiling is not that expensive, yet provides extensive run " "time statistics about the execution of a Python program." msgstr "" @@ -796,8 +795,8 @@ msgstr "" msgid "" "One limitation has to do with accuracy of timing information. There is a " "fundamental problem with deterministic profilers involving accuracy. The " -"most obvious restriction is that the underlying \"clock\" is only ticking at" -" a rate (typically) of about .001 seconds. Hence no measurements will be " +"most obvious restriction is that the underlying \"clock\" is only ticking at " +"a rate (typically) of about .001 seconds. Hence no measurements will be " "more accurate than the underlying clock. If enough measurements are taken, " "then the \"error\" will tend to average out. Unfortunately, removing this " "first error induces a second source of error." @@ -886,18 +885,18 @@ msgstr "" #: ../../library/profile.rst:633 msgid "" "The resulting profiler will then call ``your_time_func``. Depending on " -"whether you are using :class:`profile.Profile` or :class:`cProfile.Profile`," -" ``your_time_func``'s return value will be interpreted differently:" +"whether you are using :class:`profile.Profile` or :class:`cProfile.Profile`, " +"``your_time_func``'s return value will be interpreted differently:" msgstr "" #: ../../library/profile.rst:651 msgid ":class:`profile.Profile`" -msgstr "" +msgstr ":class:`profile.Profile`" #: ../../library/profile.rst:638 msgid "" -"``your_time_func`` should return a single number, or a list of numbers whose" -" sum is the current time (like what :func:`os.times` returns). If the " +"``your_time_func`` should return a single number, or a list of numbers whose " +"sum is the current time (like what :func:`os.times` returns). If the " "function returns a single time number, or the list of returned numbers has " "length 2, then you will get an especially fast version of the dispatch " "routine." @@ -917,7 +916,7 @@ msgstr "" #: ../../library/profile.rst:665 msgid ":class:`cProfile.Profile`" -msgstr "" +msgstr ":class:`cProfile.Profile`" #: ../../library/profile.rst:654 msgid "" @@ -939,6 +938,6 @@ msgstr "" #: ../../library/profile.rst:667 msgid "" "Python 3.3 adds several new functions in :mod:`time` that can be used to " -"make precise measurements of process or wall-clock time. For example, see " -":func:`time.perf_counter`." +"make precise measurements of process or wall-clock time. For example, see :" +"func:`time.perf_counter`." msgstr "" diff --git a/library/pty.po b/library/pty.po index 11c8d1d13..72a2a36aa 100644 --- a/library/pty.po +++ b/library/pty.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-22 11:28+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,8 +40,8 @@ msgstr "" #: ../../library/pty.rst:19 msgid "" -"Because pseudo-terminal handling is highly platform dependent, there is code" -" to do it only for Linux. (The Linux code is supposed to work on other " +"Because pseudo-terminal handling is highly platform dependent, there is code " +"to do it only for Linux. (The Linux code is supposed to work on other " "platforms, but hasn't been tested yet.)" msgstr "" @@ -53,8 +54,8 @@ msgid "" "Fork. Connect the child's controlling terminal to a pseudo-terminal. Return " "value is ``(pid, fd)``. Note that the child gets *pid* 0, and the *fd* is " "*invalid*. The parent's return value is the *pid* of the child, and *fd* is " -"a file descriptor connected to the child's controlling terminal (and also to" -" the child's standard input and output)." +"a file descriptor connected to the child's controlling terminal (and also to " +"the child's standard input and output)." msgstr "" #: ../../library/pty.rst:37 @@ -67,8 +68,8 @@ msgstr "" #: ../../library/pty.rst:44 msgid "" "Spawn a process, and connect its controlling terminal with the current " -"process's standard io. This is often used to baffle programs which insist on" -" reading from the controlling terminal. It is expected that the process " +"process's standard io. This is often used to baffle programs which insist on " +"reading from the controlling terminal. It is expected that the process " "spawned behind the pty will eventually terminate, and when it does *spawn* " "will return." msgstr "" @@ -76,9 +77,9 @@ msgstr "" #: ../../library/pty.rst:50 msgid "" "The functions *master_read* and *stdin_read* are passed a file descriptor " -"which they should read from, and they should always return a byte string. In" -" order to force spawn to return before the child process exits an " -":exc:`OSError` should be thrown." +"which they should read from, and they should always return a byte string. In " +"order to force spawn to return before the child process exits an :exc:" +"`OSError` should be thrown." msgstr "" #: ../../library/pty.rst:55 @@ -92,20 +93,20 @@ msgstr "" #: ../../library/pty.rst:61 msgid "" -"Returning an empty byte string from either callback is interpreted as an " -"end-of-file (EOF) condition, and that callback will not be called after " -"that. If *stdin_read* signals EOF the controlling terminal can no longer " -"communicate with the parent process OR the child process. Unless the child " -"process will quit without any input, *spawn* will then loop forever. If " -"*master_read* signals EOF the same behavior results (on linux at least)." +"Returning an empty byte string from either callback is interpreted as an end-" +"of-file (EOF) condition, and that callback will not be called after that. If " +"*stdin_read* signals EOF the controlling terminal can no longer communicate " +"with the parent process OR the child process. Unless the child process will " +"quit without any input, *spawn* will then loop forever. If *master_read* " +"signals EOF the same behavior results (on linux at least)." msgstr "" #: ../../library/pty.rst:68 msgid "" -"If both callbacks signal EOF then *spawn* will probably never return, unless" -" *select* throws an error on your platform when passed three empty lists. " -"This is a bug, documented in `issue 26228 " -"`_." +"If both callbacks signal EOF then *spawn* will probably never return, unless " +"*select* throws an error on your platform when passed three empty lists. " +"This is a bug, documented in `issue 26228 `_." msgstr "" #: ../../library/pty.rst:73 @@ -120,7 +121,7 @@ msgstr "Exemplo" #: ../../library/pty.rst:82 msgid "" -"The following program acts like the Unix command :manpage:`script(1)`, using" -" a pseudo-terminal to record all input and output of a terminal session in a" -" \"typescript\". ::" +"The following program acts like the Unix command :manpage:`script(1)`, using " +"a pseudo-terminal to record all input and output of a terminal session in a " +"\"typescript\". ::" msgstr "" diff --git a/library/pwd.po b/library/pwd.po index 28e4226aa..53ab5c55b 100644 --- a/library/pwd.po +++ b/library/pwd.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" "Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,8 +32,8 @@ msgstr ":mod:`pwd` --- A senha do banco de dados" #: ../../library/pwd.rst:10 msgid "" -"This module provides access to the Unix user account and password database." -" It is available on all Unix versions." +"This module provides access to the Unix user account and password database. " +"It is available on all Unix versions." msgstr "" "Este módulo provê acesso ao banco de dados das contas de usuário do sistema " "e suas respectivas senhas. Isto está disponível para todas as versões do " @@ -45,8 +46,8 @@ msgid "" "field below, see ````):" msgstr "" "As entradas do banco de dados de senhas são reportadas como um objeto do " -"tipo tupla, cujos atributos correspondem aos membros da estrutura ``passwd``" -" (Campos dos atributos abaixo, veja ````):" +"tipo tupla, cujos atributos correspondem aos membros da estrutura ``passwd`` " +"(Campos dos atributos abaixo, veja ````):" #: ../../library/pwd.rst:18 msgid "Index" @@ -149,8 +150,8 @@ msgid "" "The uid and gid items are integers, all others are strings. :exc:`KeyError` " "is raised if the entry asked for cannot be found." msgstr "" -"O uid e o gid são números inteiros, e os outros são strings. :exc:`KeyError`" -" é lançada se o campo requerido não puder ser encontrado." +"O uid e o gid são números inteiros, e os outros são strings. :exc:`KeyError` " +"é lançada se o campo requerido não puder ser encontrado." #: ../../library/pwd.rst:42 msgid "" @@ -158,19 +159,18 @@ msgid "" "encrypted with a DES derived algorithm (see module :mod:`crypt`). However " "most modern unices use a so-called *shadow password* system. On those " "unices the *pw_passwd* field only contains an asterisk (``'*'``) or the " -"letter ``'x'`` where the encrypted password is stored in a file " -":file:`/etc/shadow` which is not world readable. Whether the *pw_passwd* " -"field contains anything useful is system-dependent. If available, the " -":mod:`spwd` module should be used where access to the encrypted password is " -"required." +"letter ``'x'`` where the encrypted password is stored in a file :file:`/etc/" +"shadow` which is not world readable. Whether the *pw_passwd* field contains " +"anything useful is system-dependent. If available, the :mod:`spwd` module " +"should be used where access to the encrypted password is required." msgstr "" "Em Unix tradicional, o campo ``pw_passwd`` geralmente contém uma senha " -"encriptada com um algoritmo derivado de DES (veja o módulo :mod:`crypt`). No" -" entanto, a maioria dos Unixes modernos usam o chamado sistema *shadow " +"encriptada com um algoritmo derivado de DES (veja o módulo :mod:`crypt`). No " +"entanto, a maioria dos Unixes modernos usam o chamado sistema *shadow " "password*. Nesses Unixes o campo *pw_passwd* só contém um asterisco " -"(``'*'``) ou a letra ``'x'`` e a senha encriptada é guardada no arquivo " -":file:`/etc/shadow` o qual não é permitido o acesso irrestrito a leitura. Se" -" o campo *pw_passwd* contém alguma coisa útil dependerá do sistema. Se " +"(``'*'``) ou a letra ``'x'`` e a senha encriptada é guardada no arquivo :" +"file:`/etc/shadow` o qual não é permitido o acesso irrestrito a leitura. Se " +"o campo *pw_passwd* contém alguma coisa útil dependerá do sistema. Se " "disponível, o módulo :mod:`spwd` deve ser usado para acessar onde a senha " "for requerida." @@ -190,8 +190,7 @@ msgstr "" #: ../../library/pwd.rst:66 msgid "" -"Return a list of all available password database entries, in arbitrary " -"order." +"Return a list of all available password database entries, in arbitrary order." msgstr "" "Retorna uma lista de todos as entradas disponíveis no banco de dados de " "senhas, em uma ordem arbitrária." diff --git a/library/py_compile.po b/library/py_compile.po index 968e0e746..e9d91bdaa 100644 --- a/library/py_compile.po +++ b/library/py_compile.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,8 +41,8 @@ msgstr "" #: ../../library/py_compile.rst:20 msgid "" -"Though not often needed, this function can be useful when installing modules" -" for shared use, especially if some of the users may not have permission to " +"Though not often needed, this function can be useful when installing modules " +"for shared use, especially if some of the users may not have permission to " "write the byte-code cache files in the directory containing the source code." msgstr "" @@ -55,11 +57,11 @@ msgid "" "The source code is loaded from the file named *file*. The byte-code is " "written to *cfile*, which defaults to the :pep:`3147`/:pep:`488` path, " "ending in ``.pyc``. For example, if *file* is ``/foo/bar/baz.py`` *cfile* " -"will default to ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2." -" If *dfile* is specified, it is used as the name of the source file in " -"error messages when instead of *file*. If *doraise* is true, a " -":exc:`PyCompileError` is raised when an error is encountered while compiling" -" *file*. If *doraise* is false (the default), an error string is written to " +"will default to ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2. " +"If *dfile* is specified, it is used as the name of the source file in error " +"messages when instead of *file*. If *doraise* is true, a :exc:" +"`PyCompileError` is raised when an error is encountered while compiling " +"*file*. If *doraise* is false (the default), an error string is written to " "``sys.stderr``, but no exception is raised. This function returns the path " "to byte-compiled file, i.e. whatever *cfile* value was used." msgstr "" @@ -70,14 +72,14 @@ msgid "" "is a symlink or non-regular file, :exc:`FileExistsError` will be raised. " "This is to act as a warning that import will turn those paths into regular " "files if it is allowed to write byte-compiled files to those paths. This is " -"a side-effect of import using file renaming to place the final byte-compiled" -" file into place to prevent concurrent file writing issues." +"a side-effect of import using file renaming to place the final byte-compiled " +"file into place to prevent concurrent file writing issues." msgstr "" #: ../../library/py_compile.rst:52 msgid "" -"*optimize* controls the optimization level and is passed to the built-in " -":func:`compile` function. The default of ``-1`` selects the optimization " +"*optimize* controls the optimization level and is passed to the built-in :" +"func:`compile` function. The default of ``-1`` selects the optimization " "level of the current interpreter." msgstr "" @@ -85,8 +87,8 @@ msgstr "" msgid "" "*invalidation_mode* should be a member of the :class:`PycInvalidationMode` " "enum and controls how the generated bytecode cache is invalidated at " -"runtime. The default is :attr:`PycInvalidationMode.CHECKED_HASH` if the " -":envvar:`SOURCE_DATE_EPOCH` environment variable is set, otherwise the " +"runtime. The default is :attr:`PycInvalidationMode.CHECKED_HASH` if the :" +"envvar:`SOURCE_DATE_EPOCH` environment variable is set, otherwise the " "default is :attr:`PycInvalidationMode.TIMESTAMP`." msgstr "" @@ -101,24 +103,24 @@ msgstr "" msgid "" "Changed code to use :mod:`importlib` for the byte-code cache file writing. " "This means file creation/writing semantics now match what :mod:`importlib` " -"does, e.g. permissions, write-and-move semantics, etc. Also added the caveat" -" that :exc:`FileExistsError` is raised if *cfile* is a symlink or non-" -"regular file." +"does, e.g. permissions, write-and-move semantics, etc. Also added the caveat " +"that :exc:`FileExistsError` is raised if *cfile* is a symlink or non-regular " +"file." msgstr "" #: ../../library/py_compile.rst:74 msgid "" "The *invalidation_mode* parameter was added as specified in :pep:`552`. If " "the :envvar:`SOURCE_DATE_EPOCH` environment variable is set, " -"*invalidation_mode* will be forced to " -":attr:`PycInvalidationMode.CHECKED_HASH`." +"*invalidation_mode* will be forced to :attr:`PycInvalidationMode." +"CHECKED_HASH`." msgstr "" #: ../../library/py_compile.rst:80 msgid "" -"The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the" -" value of the *invalidation_mode* argument, and determines its default value" -" instead." +"The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the " +"value of the *invalidation_mode* argument, and determines its default value " +"instead." msgstr "" #: ../../library/py_compile.rst:88 @@ -140,15 +142,15 @@ msgstr "" #: ../../library/py_compile.rst:104 msgid "" "The ``.pyc`` file includes a hash of the source file content, which Python " -"will compare against the source at runtime to determine if the ``.pyc`` file" -" needs to be regenerated." +"will compare against the source at runtime to determine if the ``.pyc`` file " +"needs to be regenerated." msgstr "" #: ../../library/py_compile.rst:110 msgid "" "Like :attr:`CHECKED_HASH`, the ``.pyc`` file includes a hash of the source " -"file content. However, Python will at runtime assume the ``.pyc`` file is up" -" to date and not validate the ``.pyc`` against the source file at all." +"file content. However, Python will at runtime assume the ``.pyc`` file is up " +"to date and not validate the ``.pyc`` against the source file at all." msgstr "" #: ../../library/py_compile.rst:114 @@ -173,8 +175,8 @@ msgstr "" #: ../../library/py_compile.rst:130 msgid "" -"When this module is run as a script, the :func:`main` is used to compile all" -" the files named on the command line. The exit status is nonzero if one of " +"When this module is run as a script, the :func:`main` is used to compile all " +"the files named on the command line. The exit status is nonzero if one of " "the files could not be compiled." msgstr "" diff --git a/library/pyclbr.po b/library/pyclbr.po index 2ca4eb528..d2aa3de4b 100644 --- a/library/pyclbr.po +++ b/library/pyclbr.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-07 11:22+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,8 +25,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: ../../library/pyclbr.rst:2 -msgid ":mod:`pyclbr` --- Python class browser support" -msgstr "" +msgid ":mod:`pyclbr` --- Python module browser support" +msgstr ":mod:`pyclbr` --- Suporte a navegador de módulos do Python" #: ../../library/pyclbr.rst:9 msgid "**Source code:** :source:`Lib/pyclbr.py`" @@ -34,118 +36,168 @@ msgstr "**Código Fonte:** :source:`Lib/pyclbr.py`" msgid "" "The :mod:`pyclbr` module provides limited information about the functions, " "classes, and methods defined in a Python-coded module. The information is " -"sufficient to implement a module browser. The information is extracted from" -" the Python source code rather than by importing the module, so this module " +"sufficient to implement a module browser. The information is extracted from " +"the Python source code rather than by importing the module, so this module " "is safe to use with untrusted code. This restriction makes it impossible to " "use this module with modules not implemented in Python, including all " "standard and optional extension modules." msgstr "" +"O módulo :mod:`pyclbr` fornece informações limitadas sobre as funções, " +"classes e métodos definidos em um módulo codificado em Python. As " +"informações são suficientes para implementar um navegador de módulos. As " +"informações são extraídas do código-fonte do Python em vez de importar o " +"módulo, portanto, este módulo é seguro para uso com código não confiável. " +"Essa restrição torna impossível o uso deste módulo com módulos não " +"implementados no Python, incluindo todos os módulos de extensão padrão e " +"opcionais." #: ../../library/pyclbr.rst:25 msgid "" "Return a dictionary mapping module-level class names to class descriptors. " "If possible, descriptors for imported base classes are included. Parameter " -"*module* is a string with the name of the module to read; it may be the name" -" of a module within a package. If given, *path* is a sequence of directory " +"*module* is a string with the name of the module to read; it may be the name " +"of a module within a package. If given, *path* is a sequence of directory " "paths prepended to ``sys.path``, which is used to locate the module source " "code." msgstr "" +"Retorna um dicionário que mapeia os nomes de classe no nível do módulo aos " +"descritores de classe. Se possível, descritores para classes base importadas " +"estão incluídos. O parâmetro *module* é uma string com o nome do módulo a " +"ser lido; pode ser o nome de um módulo dentro de um pacote. Se fornecido, " +"*path* é uma sequência de caminhos de diretório anexada a ``sys.path``, que " +"é usada para localizar o código-fonte do módulo." + +#: ../../library/pyclbr.rst:32 +msgid "" +"This function is the original interface and is only kept for back " +"compatibility. It returns a filtered version of the following." +msgstr "" +"Esta função é a interface original e é mantida apenas para compatibilidade " +"reversa. Ela retorna uma versão filtrada do seguinte." -#: ../../library/pyclbr.rst:35 +#: ../../library/pyclbr.rst:38 msgid "" "Return a dictionary-based tree containing a function or class descriptors " "for each function and class defined in the module with a ``def`` or " -"``class`` statement. The returned dictionary maps module-level function and" -" class names to their descriptors. Nested objects are entered into the " -"children dictionary of their parent. As with readmodule, *module* names the" -" module to be read and *path* is prepended to sys.path. If the module being" -" read is a package, the returned dictionary has a key ``'__path__'`` whose " +"``class`` statement. The returned dictionary maps module-level function and " +"class names to their descriptors. Nested objects are entered into the " +"children dictionary of their parent. As with readmodule, *module* names the " +"module to be read and *path* is prepended to sys.path. If the module being " +"read is a package, the returned dictionary has a key ``'__path__'`` whose " "value is a list containing the package search path." msgstr "" - -#: ../../library/pyclbr.rst:45 +"Retorna uma árvore baseada em dicionário que contém uma função ou " +"descritores de classe para cada função e classe definida no módulo com uma " +"declaração ``def`` ou ``class``. O dicionário retornado mapeia os nomes das " +"funções e das classes no nível do módulo para seus descritores. Objetos " +"aninhados são inseridos no dicionário filho de seus pais. Como em " +"readmodule, *module* nomeia o módulo a ser lido e *path* é anexado ao sys." +"path. Se o módulo que está sendo lido for um pacote, o dicionário retornado " +"terá uma chave ``'__path__'`` cujo valor é uma lista que contém o caminho de " +"pesquisa do pacote." + +#: ../../library/pyclbr.rst:48 msgid "" "Descriptors for nested definitions. They are accessed through the new " "children attribute. Each has a new parent attribute." msgstr "" +"Descritores para definições aninhadas. Eles são acessados através do novo " +"atributo filho. Cada um tem um novo atributo pai." -#: ../../library/pyclbr.rst:49 +#: ../../library/pyclbr.rst:52 msgid "" "The descriptors returned by these functions are instances of Function and " "Class classes. Users are not expected to create instances of these classes." msgstr "" +"Os descritores retornados por essas funções são instâncias das classes " +"Function e Class. Não se espera que os usuários criem instâncias dessas " +"classes." -#: ../../library/pyclbr.rst:57 +#: ../../library/pyclbr.rst:60 msgid "Function Objects" msgstr "Objetos de Função" -#: ../../library/pyclbr.rst:58 +#: ../../library/pyclbr.rst:61 msgid "" "Class :class:`Function` instances describe functions defined by def " "statements. They have the following attributes:" msgstr "" +"Instâncias da classe :class:Function` descrevem funções definidas por " +"instruções def. Eles têm os seguintes atributos:" -#: ../../library/pyclbr.rst:64 +#: ../../library/pyclbr.rst:67 msgid "Name of the file in which the function is defined." -msgstr "" +msgstr "Nome do arquivo no qual a função está definida." -#: ../../library/pyclbr.rst:69 +#: ../../library/pyclbr.rst:72 msgid "The name of the module defining the function described." -msgstr "" +msgstr "O nome do módulo que define a função descrita." -#: ../../library/pyclbr.rst:74 +#: ../../library/pyclbr.rst:77 msgid "The name of the function." -msgstr "" +msgstr "O nome da função." -#: ../../library/pyclbr.rst:79 ../../library/pyclbr.rst:122 +#: ../../library/pyclbr.rst:82 ../../library/pyclbr.rst:125 msgid "The line number in the file where the definition starts." -msgstr "" +msgstr "O número da linha no arquivo em que a definição é iniciada." -#: ../../library/pyclbr.rst:84 +#: ../../library/pyclbr.rst:87 msgid "For top-level functions, None. For nested functions, the parent." msgstr "" +"Para funções de nível superior, Nenhuma. Para funções aninhadas, o pai." -#: ../../library/pyclbr.rst:91 ../../library/pyclbr.rst:134 +#: ../../library/pyclbr.rst:94 ../../library/pyclbr.rst:137 msgid "" "A dictionary mapping names to descriptors for nested functions and classes." msgstr "" +"Um dicionário que mapeia nomes para descritores para funções e classes " +"aninhadas." -#: ../../library/pyclbr.rst:100 +#: ../../library/pyclbr.rst:103 msgid "Class Objects" msgstr "Objetos de Classe" -#: ../../library/pyclbr.rst:101 +#: ../../library/pyclbr.rst:104 msgid "" -"Class :class:`Class` instances describe classes defined by class statements." -" They have the same attributes as Functions and two more." +"Class :class:`Class` instances describe classes defined by class " +"statements. They have the same attributes as Functions and two more." msgstr "" +"Instâncias da classe :class:Class` descrevem classes definidas por " +"instruções class. Elas têm os mesmos atributos que Functions e mais dois." -#: ../../library/pyclbr.rst:107 +#: ../../library/pyclbr.rst:110 msgid "Name of the file in which the class is defined." -msgstr "" +msgstr "Nome do arquivo no qual a classe está definida." -#: ../../library/pyclbr.rst:112 +#: ../../library/pyclbr.rst:115 msgid "The name of the module defining the class described." -msgstr "" +msgstr "O nome do módulo que define a classe descrita." -#: ../../library/pyclbr.rst:117 +#: ../../library/pyclbr.rst:120 msgid "The name of the class." -msgstr "" +msgstr "O nome da turma." -#: ../../library/pyclbr.rst:127 +#: ../../library/pyclbr.rst:130 msgid "For top-level classes, None. For nested classes, the parent." -msgstr "" +msgstr "Para classes de nível superior, None. Para classes aninhadas, o pai." -#: ../../library/pyclbr.rst:142 +#: ../../library/pyclbr.rst:145 msgid "" "A list of :class:`Class` objects which describe the immediate base classes " "of the class being described. Classes which are named as superclasses but " "which are not discoverable by :func:`readmodule_ex` are listed as a string " "with the class name instead of as :class:`Class` objects." msgstr "" +"Uma lista de objetos :class:`Class` que descreve as classes base imediatas " +"da classe que está sendo descrita. Classes nomeadas como superclasses, mas " +"que não podem ser descobertas por :func:`readmodule_ex` são listadas como " +"uma string com o nome da classe em vez de como objetos de :class:`Class`." -#: ../../library/pyclbr.rst:151 +#: ../../library/pyclbr.rst:154 msgid "" -"A dictionary mapping method names to line numbers. This can be derived from" -" the newer children dictionary, but remains for back-compatibility." +"A dictionary mapping method names to line numbers. This can be derived from " +"the newer children dictionary, but remains for back-compatibility." msgstr "" +"Um dicionário que mapeia nomes de métodos para números de linha. Isso pode " +"ser derivado do dicionário filho mais novo, mas permanece para " +"compatibilidade retroativa." diff --git a/library/pydoc.po b/library/pydoc.po index 77723d140..94fa6952a 100644 --- a/library/pydoc.po +++ b/library/pydoc.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,8 +45,8 @@ msgid "" "object, and recursively of its documentable members. If there is no " "docstring, :mod:`pydoc` tries to obtain a description from the block of " "comment lines just above the definition of the class, function or method in " -"the source file, or at the top of the module (see " -":func:`inspect.getcomments`)." +"the source file, or at the top of the module (see :func:`inspect." +"getcomments`)." msgstr "" #: ../../library/pydoc.rst:30 @@ -52,16 +54,16 @@ msgid "" "The built-in function :func:`help` invokes the online help system in the " "interactive interpreter, which uses :mod:`pydoc` to generate its " "documentation as text on the console. The same text documentation can also " -"be viewed from outside the Python interpreter by running :program:`pydoc` as" -" a script at the operating system's command prompt. For example, running ::" +"be viewed from outside the Python interpreter by running :program:`pydoc` as " +"a script at the operating system's command prompt. For example, running ::" msgstr "" #: ../../library/pydoc.rst:38 msgid "" "at a shell prompt will display documentation on the :mod:`sys` module, in a " -"style similar to the manual pages shown by the Unix :program:`man` command." -" The argument to :program:`pydoc` can be the name of a function, module, or" -" package, or a dotted reference to a class, method, or function within a " +"style similar to the manual pages shown by the Unix :program:`man` command. " +"The argument to :program:`pydoc` can be the name of a function, module, or " +"package, or a dotted reference to a class, method, or function within a " "module or module in a package. If the argument to :program:`pydoc` looks " "like a path (that is, it contains the path separator for your operating " "system, such as a slash in Unix), and refers to an existing Python source " @@ -101,28 +103,28 @@ msgstr "" #: ../../library/pydoc.rst:67 msgid "" "You can also use :program:`pydoc` to start an HTTP server on the local " -"machine that will serve documentation to visiting Web browsers. " -":program:`pydoc -p 1234` will start a HTTP server on port 1234, allowing you" -" to browse the documentation at ``http://localhost:1234/`` in your preferred" -" Web browser. Specifying ``0`` as the port number will select an arbitrary " -"unused port." +"machine that will serve documentation to visiting Web browsers. :program:" +"`pydoc -p 1234` will start a HTTP server on port 1234, allowing you to " +"browse the documentation at ``http://localhost:1234/`` in your preferred Web " +"browser. Specifying ``0`` as the port number will select an arbitrary unused " +"port." msgstr "" #: ../../library/pydoc.rst:73 msgid "" ":program:`pydoc -n ` will start the server listening at the given " -"hostname. By default the hostname is 'localhost' but if you want the server" -" to be reached from other machines, you may want to change the host name " -"that the server responds to. During development this is especially useful " -"if you want to run pydoc from within a container." +"hostname. By default the hostname is 'localhost' but if you want the server " +"to be reached from other machines, you may want to change the host name that " +"the server responds to. During development this is especially useful if you " +"want to run pydoc from within a container." msgstr "" #: ../../library/pydoc.rst:79 msgid "" ":program:`pydoc -b` will start the server and additionally open a web " "browser to a module index page. Each served page has a navigation bar at " -"the top where you can *Get* help on an individual item, *Search* all modules" -" with a keyword in their synopsis line, and go to the *Module index*, " +"the top where you can *Get* help on an individual item, *Search* all modules " +"with a keyword in their synopsis line, and go to the *Module index*, " "*Topics* and *Keywords* pages." msgstr "" @@ -136,12 +138,11 @@ msgstr "" #: ../../library/pydoc.rst:90 msgid "" -"Module docs for core modules are assumed to reside in " -"``https://docs.python.org/X.Y/library/`` where ``X`` and ``Y`` are the major" -" and minor version numbers of the Python interpreter. This can be " -"overridden by setting the :envvar:`PYTHONDOCS` environment variable to a " -"different URL or to a local directory containing the Library Reference " -"Manual pages." +"Module docs for core modules are assumed to reside in ``https://docs.python." +"org/X.Y/library/`` where ``X`` and ``Y`` are the major and minor version " +"numbers of the Python interpreter. This can be overridden by setting the :" +"envvar:`PYTHONDOCS` environment variable to a different URL or to a local " +"directory containing the Library Reference Manual pages." msgstr "" #: ../../library/pydoc.rst:97 @@ -154,9 +155,8 @@ msgstr "" #: ../../library/pydoc.rst:103 msgid "" -":mod:`pydoc` now uses :func:`inspect.signature` rather than " -":func:`inspect.getfullargspec` to extract signature information from " -"callables." +":mod:`pydoc` now uses :func:`inspect.signature` rather than :func:`inspect." +"getfullargspec` to extract signature information from callables." msgstr "" #: ../../library/pydoc.rst:108 diff --git a/library/pyexpat.po b/library/pyexpat.po index 75dadc8c9..d8b221ef7 100644 --- a/library/pyexpat.po +++ b/library/pyexpat.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # And Past , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,12 +37,12 @@ msgstr "" #: ../../library/pyexpat.rst:28 msgid "" "The :mod:`xml.parsers.expat` module is a Python interface to the Expat non-" -"validating XML parser. The module provides a single extension type, " -":class:`xmlparser`, that represents the current state of an XML parser. " -"After an :class:`xmlparser` object has been created, various attributes of " -"the object can be set to handler functions. When an XML document is then " -"fed to the parser, the handler functions are called for the character data " -"and markup in the XML document." +"validating XML parser. The module provides a single extension type, :class:" +"`xmlparser`, that represents the current state of an XML parser. After an :" +"class:`xmlparser` object has been created, various attributes of the object " +"can be set to handler functions. When an XML document is then fed to the " +"parser, the handler functions are called for the character data and markup " +"in the XML document." msgstr "" #: ../../library/pyexpat.rst:38 @@ -56,8 +57,8 @@ msgstr "" #: ../../library/pyexpat.rst:46 msgid "" -"The exception raised when Expat reports an error. See section :ref" -":`expaterror-objects` for more information on interpreting Expat errors." +"The exception raised when Expat reports an error. See section :ref:" +"`expaterror-objects` for more information on interpreting Expat errors." msgstr "" #: ../../library/pyexpat.rst:52 @@ -92,8 +93,8 @@ msgid "" "providing a value for *namespace_separator*. The value must be a one-" "character string; a :exc:`ValueError` will be raised if the string has an " "illegal length (``None`` is considered the same as omission). When " -"namespace processing is enabled, element type names and attribute names that" -" belong to a namespace will be expanded. The element name passed to the " +"namespace processing is enabled, element type names and attribute names that " +"belong to a namespace will be expanded. The element name passed to the " "element handlers :attr:`StartElementHandler` and :attr:`EndElementHandler` " "will be the concatenation of the namespace URI, the namespace separator " "character, and the local part of the name. If the namespace separator is a " @@ -115,8 +116,8 @@ msgstr "" #: ../../library/pyexpat.rst:107 msgid "" -"Due to limitations in the ``Expat`` library used by :mod:`pyexpat`, the " -":class:`xmlparser` instance returned can only be used to parse a single XML " +"Due to limitations in the ``Expat`` library used by :mod:`pyexpat`, the :" +"class:`xmlparser` instance returned can only be used to parse a single XML " "document. Call ``ParserCreate`` for each document to provide unique parser " "instances." msgstr "" @@ -148,24 +149,24 @@ msgstr "" #: ../../library/pyexpat.rst:138 msgid "" -"Parse XML data reading from the object *file*. *file* only needs to provide" -" the ``read(nbytes)`` method, returning the empty string when there's no " -"more data." +"Parse XML data reading from the object *file*. *file* only needs to provide " +"the ``read(nbytes)`` method, returning the empty string when there's no more " +"data." msgstr "" #: ../../library/pyexpat.rst:145 msgid "" "Sets the base to be used for resolving relative URIs in system identifiers " -"in declarations. Resolving relative identifiers is left to the application:" -" this value will be passed through as the *base* argument to the " -":func:`ExternalEntityRefHandler`, :func:`NotationDeclHandler`, and " -":func:`UnparsedEntityDeclHandler` functions." +"in declarations. Resolving relative identifiers is left to the application: " +"this value will be passed through as the *base* argument to the :func:" +"`ExternalEntityRefHandler`, :func:`NotationDeclHandler`, and :func:" +"`UnparsedEntityDeclHandler` functions." msgstr "" #: ../../library/pyexpat.rst:154 msgid "" -"Returns a string containing the base set by a previous call to " -":meth:`SetBase`, or ``None`` if :meth:`SetBase` hasn't been called." +"Returns a string containing the base set by a previous call to :meth:" +"`SetBase`, or ``None`` if :meth:`SetBase` hasn't been called." msgstr "" #: ../../library/pyexpat.rst:160 @@ -179,19 +180,19 @@ msgstr "" msgid "" "Create a \"child\" parser which can be used to parse an external parsed " "entity referred to by content parsed by the parent parser. The *context* " -"parameter should be the string passed to the " -":meth:`ExternalEntityRefHandler` handler function, described below. The " -"child parser is created with the :attr:`ordered_attributes` and " -":attr:`specified_attributes` set to the values of this parser." +"parameter should be the string passed to the :meth:" +"`ExternalEntityRefHandler` handler function, described below. The child " +"parser is created with the :attr:`ordered_attributes` and :attr:" +"`specified_attributes` set to the values of this parser." msgstr "" #: ../../library/pyexpat.rst:176 msgid "" "Control parsing of parameter entities (including the external DTD subset). " -"Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`, " -":const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and " -":const:`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag " -"was successful." +"Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`, :const:" +"`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and :const:" +"`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag was " +"successful." msgstr "" #: ../../library/pyexpat.rst:184 @@ -200,8 +201,8 @@ msgid "" "call the :attr:`ExternalEntityRefHandler` with :const:`None` for all " "arguments to allow an alternate DTD to be loaded. If the document does not " "contain a document type declaration, the :attr:`ExternalEntityRefHandler` " -"will still be called, but the :attr:`StartDoctypeDeclHandler` and " -":attr:`EndDoctypeDeclHandler` will not be called." +"will still be called, but the :attr:`StartDoctypeDeclHandler` and :attr:" +"`EndDoctypeDeclHandler` will not be called." msgstr "" #: ../../library/pyexpat.rst:191 @@ -212,10 +213,10 @@ msgstr "" #: ../../library/pyexpat.rst:194 msgid "" -"This method can only be called before the :meth:`Parse` or :meth:`ParseFile`" -" methods are called; calling it after either of those have been called " -"causes :exc:`ExpatError` to be raised with the :attr:`code` attribute set to" -" ``errors.codes[errors.XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING]``." +"This method can only be called before the :meth:`Parse` or :meth:`ParseFile` " +"methods are called; calling it after either of those have been called " +"causes :exc:`ExpatError` to be raised with the :attr:`code` attribute set to " +"``errors.codes[errors.XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING]``." msgstr "" #: ../../library/pyexpat.rst:199 @@ -225,25 +226,25 @@ msgstr "" #: ../../library/pyexpat.rst:204 msgid "" "The size of the buffer used when :attr:`buffer_text` is true. A new buffer " -"size can be set by assigning a new integer value to this attribute. When the" -" size is changed, the buffer will be flushed." +"size can be set by assigning a new integer value to this attribute. When the " +"size is changed, the buffer will be flushed." msgstr "" #: ../../library/pyexpat.rst:212 msgid "" "Setting this to true causes the :class:`xmlparser` object to buffer textual " -"content returned by Expat to avoid multiple calls to the " -":meth:`CharacterDataHandler` callback whenever possible. This can improve " +"content returned by Expat to avoid multiple calls to the :meth:" +"`CharacterDataHandler` callback whenever possible. This can improve " "performance substantially since Expat normally breaks character data into " -"chunks at every line ending. This attribute is false by default, and may be" -" changed at any time." +"chunks at every line ending. This attribute is false by default, and may be " +"changed at any time." msgstr "" #: ../../library/pyexpat.rst:222 msgid "" -"If :attr:`buffer_text` is enabled, the number of bytes stored in the buffer." -" These bytes represent UTF-8 encoded text. This attribute has no meaningful" -" interpretation when :attr:`buffer_text` is false." +"If :attr:`buffer_text` is enabled, the number of bytes stored in the buffer. " +"These bytes represent UTF-8 encoded text. This attribute has no meaningful " +"interpretation when :attr:`buffer_text` is false." msgstr "" #: ../../library/pyexpat.rst:229 @@ -260,10 +261,10 @@ msgstr "" msgid "" "If set to a non-zero integer, the parser will report only those attributes " "which were specified in the document instance and not those which were " -"derived from attribute declarations. Applications which set this need to be" -" especially careful to use what additional information is available from the" -" declarations as needed to comply with the standards for the behavior of XML" -" processors. By default, this attribute is false; it may be changed at any " +"derived from attribute declarations. Applications which set this need to be " +"especially careful to use what additional information is available from the " +"declarations as needed to comply with the standards for the behavior of XML " +"processors. By default, this attribute is false; it may be changed at any " "time." msgstr "" @@ -271,8 +272,8 @@ msgstr "" msgid "" "The following attributes contain values relating to the most recent error " "encountered by an :class:`xmlparser` object, and will only have correct " -"values once a call to :meth:`Parse` or :meth:`ParseFile` has raised an " -":exc:`xml.parsers.expat.ExpatError` exception." +"values once a call to :meth:`Parse` or :meth:`ParseFile` has raised an :exc:" +"`xml.parsers.expat.ExpatError` exception." msgstr "" #: ../../library/pyexpat.rst:255 @@ -281,9 +282,9 @@ msgstr "" #: ../../library/pyexpat.rst:260 msgid "" -"Numeric code specifying the problem. This value can be passed to the " -":func:`ErrorString` function, or compared to one of the constants defined in" -" the ``errors`` object." +"Numeric code specifying the problem. This value can be passed to the :func:" +"`ErrorString` function, or compared to one of the constants defined in the " +"``errors`` object." msgstr "" #: ../../library/pyexpat.rst:267 @@ -299,8 +300,8 @@ msgid "" "The following attributes contain values relating to the current parse " "location in an :class:`xmlparser` object. During a callback reporting a " "parse event they indicate the location of the first of the sequence of " -"characters that generated the event. When called outside of a callback, the" -" position indicated will be just past the last parse event (regardless of " +"characters that generated the event. When called outside of a callback, the " +"position indicated will be just past the last parse event (regardless of " "whether there was an associated callback)." msgstr "" @@ -318,9 +319,9 @@ msgstr "" #: ../../library/pyexpat.rst:296 msgid "" -"Here is the list of handlers that can be set. To set a handler on an " -":class:`xmlparser` object *o*, use ``o.handlername = func``. *handlername* " -"must be taken from the following list, and *func* must be a callable object " +"Here is the list of handlers that can be set. To set a handler on an :class:" +"`xmlparser` object *o*, use ``o.handlername = func``. *handlername* must be " +"taken from the following list, and *func* must be a callable object " "accepting the correct number of arguments. The arguments are all strings, " "unless otherwise stated." msgstr "" @@ -330,18 +331,18 @@ msgid "" "Called when the XML declaration is parsed. The XML declaration is the " "(optional) declaration of the applicable version of the XML recommendation, " "the encoding of the document text, and an optional \"standalone\" " -"declaration. *version* and *encoding* will be strings, and *standalone* will" -" be ``1`` if the document is declared standalone, ``0`` if it is declared " -"not to be standalone, or ``-1`` if the standalone clause was omitted. This " -"is only available with Expat version 1.95.0 or newer." +"declaration. *version* and *encoding* will be strings, and *standalone* will " +"be ``1`` if the document is declared standalone, ``0`` if it is declared not " +"to be standalone, or ``-1`` if the standalone clause was omitted. This is " +"only available with Expat version 1.95.0 or newer." msgstr "" #: ../../library/pyexpat.rst:316 msgid "" -"Called when Expat begins parsing the document type declaration (``` dictionary maps " -"these error numbers to Expat's error messages. For example::" +"Expat's internal error number for the specific error. The :data:`errors." +"messages ` dictionary maps these error " +"numbers to Expat's error messages. For example::" msgstr "" #: ../../library/pyexpat.rst:509 @@ -572,9 +571,9 @@ msgstr "" #: ../../library/pyexpat.rst:581 msgid "" -"The values of the first two fields are constants defined in the " -":mod:`xml.parsers.expat.model` module. These constants can be collected in " -"two groups: the model type group and the quantifier group." +"The values of the first two fields are constants defined in the :mod:`xml." +"parsers.expat.model` module. These constants can be collected in two " +"groups: the model type group and the quantifier group." msgstr "" #: ../../library/pyexpat.rst:585 @@ -589,8 +588,8 @@ msgstr "" #: ../../library/pyexpat.rst:598 msgid "" -"The named element allows a choice from a number of options; this is used for" -" content models such as ``(A | B | C)``." +"The named element allows a choice from a number of options; this is used for " +"content models such as ``(A | B | C)``." msgstr "" #: ../../library/pyexpat.rst:605 @@ -613,8 +612,7 @@ msgid "No modifier is given, so it can appear exactly once, as for ``A``." msgstr "" #: ../../library/pyexpat.rst:634 -msgid "" -"The model is optional: it can appear once or not at all, as for ``A?``." +msgid "The model is optional: it can appear once or not at all, as for ``A?``." msgstr "" #: ../../library/pyexpat.rst:640 @@ -634,10 +632,10 @@ msgid "" "The following constants are provided in the :mod:`xml.parsers.expat.errors` " "module. These constants are useful in interpreting some of the attributes " "of the :exc:`ExpatError` exception objects raised when an error has " -"occurred. Since for backwards compatibility reasons, the constants' value is" -" the error *message* and not the numeric error *code*, you do this by " -"comparing its :attr:`code` attribute with " -":samp:`errors.codes[errors.XML_ERROR_{CONSTANT_NAME}]`." +"occurred. Since for backwards compatibility reasons, the constants' value is " +"the error *message* and not the numeric error *code*, you do this by " +"comparing its :attr:`code` attribute with :samp:`errors.codes[errors." +"XML_ERROR_{CONSTANT_NAME}]`." msgstr "" #: ../../library/pyexpat.rst:664 @@ -676,8 +674,8 @@ msgstr "" #: ../../library/pyexpat.rst:711 msgid "" -"Raised when an input byte could not properly be assigned to a character; for" -" example, a NUL byte (value ``0``) in a UTF-8 input stream." +"Raised when an input byte could not properly be assigned to a character; for " +"example, a NUL byte (value ``0``) in a UTF-8 input stream." msgstr "" #: ../../library/pyexpat.rst:717 @@ -710,8 +708,8 @@ msgstr "" #: ../../library/pyexpat.rst:748 msgid "" -"An entity reference contained another reference to the same entity; possibly" -" via a different name, and possibly indirectly." +"An entity reference contained another reference to the same entity; possibly " +"via a different name, and possibly indirectly." msgstr "" #: ../../library/pyexpat.rst:754 @@ -724,8 +722,8 @@ msgstr "" #: ../../library/pyexpat.rst:764 msgid "" -"Some token (such as a start tag) was not closed before the end of the stream" -" or the next token was encountered." +"Some token (such as a start tag) was not closed before the end of the stream " +"or the next token was encountered." msgstr "" #: ../../library/pyexpat.rst:770 @@ -743,8 +741,8 @@ msgstr "" #: ../../library/pyexpat.rst:788 msgid "" "The parser determined that the document was not \"standalone\" though it " -"declared itself to be in the XML declaration, and the " -":attr:`NotStandaloneHandler` was set and returned ``0``." +"declared itself to be in the XML declaration, and the :attr:" +"`NotStandaloneHandler` was set and returned ``0``." msgstr "" #: ../../library/pyexpat.rst:801 @@ -757,8 +755,8 @@ msgstr "" #: ../../library/pyexpat.rst:808 msgid "" "A behavioral change was requested after parsing started that can only be " -"changed before parsing has started. This is (currently) only raised by " -":meth:`UseForeignDTD`." +"changed before parsing has started. This is (currently) only raised by :" +"meth:`UseForeignDTD`." msgstr "" #: ../../library/pyexpat.rst:815 @@ -767,8 +765,8 @@ msgstr "" #: ../../library/pyexpat.rst:820 msgid "" -"The document attempted to remove the namespace declaration associated with a" -" prefix." +"The document attempted to remove the namespace declaration associated with a " +"prefix." msgstr "" #: ../../library/pyexpat.rst:826 @@ -816,8 +814,8 @@ msgstr "Notas de rodapé" #: ../../library/pyexpat.rst:872 msgid "" -"The encoding string included in XML output should conform to the appropriate" -" standards. For example, \"UTF-8\" is valid, but \"UTF8\" is not. See " -"https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl and " -"https://www.iana.org/assignments/character-sets/character-sets.xhtml." +"The encoding string included in XML output should conform to the appropriate " +"standards. For example, \"UTF-8\" is valid, but \"UTF8\" is not. See https://" +"www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl and https://www.iana." +"org/assignments/character-sets/character-sets.xhtml." msgstr "" diff --git a/library/python.po b/library/python.po index 9cbc4ae21..47af914bc 100644 --- a/library/python.po +++ b/library/python.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,8 +30,8 @@ msgstr "Serviços de Tempo de Execução Python" #: ../../library/python.rst:7 msgid "" "The modules described in this chapter provide a wide range of services " -"related to the Python interpreter and its interaction with its environment." -" Here's an overview:" +"related to the Python interpreter and its interaction with its environment. " +"Here's an overview:" msgstr "" "Os módulos descritos neste capítulo oferecem uma ampla gama de serviços " "relacionados ao interpretador Python e sua interação com o ambiente. Aqui " diff --git a/library/queue.po b/library/queue.po index 0a76e5c78..ccdb9343b 100644 --- a/library/queue.po +++ b/library/queue.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-26 10:59+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,21 +33,21 @@ msgstr "**Código Fonte:** :source:`Lib/queue.py`" #: ../../library/queue.rst:11 msgid "" -"The :mod:`queue` module implements multi-producer, multi-consumer queues. It" -" is especially useful in threaded programming when information must be " -"exchanged safely between multiple threads. The :class:`Queue` class in this" -" module implements all the required locking semantics. It depends on the " +"The :mod:`queue` module implements multi-producer, multi-consumer queues. It " +"is especially useful in threaded programming when information must be " +"exchanged safely between multiple threads. The :class:`Queue` class in this " +"module implements all the required locking semantics. It depends on the " "availability of thread support in Python; see the :mod:`threading` module." msgstr "" #: ../../library/queue.rst:18 msgid "" "The module implements three types of queue, which differ only in the order " -"in which the entries are retrieved. In a :abbr:`FIFO (first-in, first-out)`" -" queue, the first tasks added are the first retrieved. In a :abbr:`LIFO " -"(last-in, first-out)` queue, the most recently added entry is the first " -"retrieved (operating like a stack). With a priority queue, the entries are " -"kept sorted (using the :mod:`heapq` module) and the lowest valued entry is " +"in which the entries are retrieved. In a :abbr:`FIFO (first-in, first-out)` " +"queue, the first tasks added are the first retrieved. In a :abbr:`LIFO (last-" +"in, first-out)` queue, the most recently added entry is the first retrieved " +"(operating like a stack). With a priority queue, the entries are kept " +"sorted (using the :mod:`heapq` module) and the lowest valued entry is " "retrieved first." msgstr "" @@ -58,8 +60,8 @@ msgstr "" #: ../../library/queue.rst:30 msgid "" -"In addition, the module implements a \"simple\" :abbr:`FIFO (first-in, " -"first-out)` queue type, :class:`SimpleQueue`, whose specific implementation " +"In addition, the module implements a \"simple\" :abbr:`FIFO (first-in, first-" +"out)` queue type, :class:`SimpleQueue`, whose specific implementation " "provides additional guarantees in exchange for the smaller functionality." msgstr "" @@ -69,11 +71,11 @@ msgstr "" #: ../../library/queue.rst:39 msgid "" -"Constructor for a :abbr:`FIFO (first-in, first-out)` queue. *maxsize* is an" -" integer that sets the upperbound limit on the number of items that can be " +"Constructor for a :abbr:`FIFO (first-in, first-out)` queue. *maxsize* is an " +"integer that sets the upperbound limit on the number of items that can be " "placed in the queue. Insertion will block once this size has been reached, " -"until queue items are consumed. If *maxsize* is less than or equal to zero," -" the queue size is infinite." +"until queue items are consumed. If *maxsize* is less than or equal to zero, " +"the queue size is infinite." msgstr "" #: ../../library/queue.rst:47 @@ -81,8 +83,8 @@ msgid "" "Constructor for a :abbr:`LIFO (last-in, first-out)` queue. *maxsize* is an " "integer that sets the upperbound limit on the number of items that can be " "placed in the queue. Insertion will block once this size has been reached, " -"until queue items are consumed. If *maxsize* is less than or equal to zero," -" the queue size is infinite." +"until queue items are consumed. If *maxsize* is less than or equal to zero, " +"the queue size is infinite." msgstr "" #: ../../library/queue.rst:56 @@ -115,16 +117,14 @@ msgstr "" #: ../../library/queue.rst:86 msgid "" -"Exception raised when non-blocking :meth:`~Queue.get` (or " -":meth:`~Queue.get_nowait`) is called on a :class:`Queue` object which is " -"empty." +"Exception raised when non-blocking :meth:`~Queue.get` (or :meth:`~Queue." +"get_nowait`) is called on a :class:`Queue` object which is empty." msgstr "" #: ../../library/queue.rst:93 msgid "" -"Exception raised when non-blocking :meth:`~Queue.put` (or " -":meth:`~Queue.put_nowait`) is called on a :class:`Queue` object which is " -"full." +"Exception raised when non-blocking :meth:`~Queue.put` (or :meth:`~Queue." +"put_nowait`) is called on a :class:`Queue` object which is full." msgstr "" #: ../../library/queue.rst:101 @@ -133,15 +133,15 @@ msgstr "" #: ../../library/queue.rst:103 msgid "" -"Queue objects (:class:`Queue`, :class:`LifoQueue`, or " -":class:`PriorityQueue`) provide the public methods described below." +"Queue objects (:class:`Queue`, :class:`LifoQueue`, or :class:" +"`PriorityQueue`) provide the public methods described below." msgstr "" #: ../../library/queue.rst:109 msgid "" "Return the approximate size of the queue. Note, qsize() > 0 doesn't " -"guarantee that a subsequent get() will not block, nor will qsize() < maxsize" -" guarantee that put() will not block." +"guarantee that a subsequent get() will not block, nor will qsize() < maxsize " +"guarantee that put() will not block." msgstr "" #: ../../library/queue.rst:116 @@ -156,19 +156,19 @@ msgstr "" msgid "" "Return ``True`` if the queue is full, ``False`` otherwise. If full() " "returns ``True`` it doesn't guarantee that a subsequent call to get() will " -"not block. Similarly, if full() returns ``False`` it doesn't guarantee that" -" a subsequent call to put() will not block." +"not block. Similarly, if full() returns ``False`` it doesn't guarantee that " +"a subsequent call to put() will not block." msgstr "" #: ../../library/queue.rst:132 msgid "" -"Put *item* into the queue. If optional args *block* is true and *timeout* is" -" ``None`` (the default), block if necessary until a free slot is available. " +"Put *item* into the queue. If optional args *block* is true and *timeout* is " +"``None`` (the default), block if necessary until a free slot is available. " "If *timeout* is a positive number, it blocks at most *timeout* seconds and " "raises the :exc:`Full` exception if no free slot was available within that " "time. Otherwise (*block* is false), put an item on the queue if a free slot " -"is immediately available, else raise the :exc:`Full` exception (*timeout* is" -" ignored in that case)." +"is immediately available, else raise the :exc:`Full` exception (*timeout* is " +"ignored in that case)." msgstr "" #: ../../library/queue.rst:143 @@ -178,8 +178,8 @@ msgstr "" #: ../../library/queue.rst:148 msgid "" "Remove and return an item from the queue. If optional args *block* is true " -"and *timeout* is ``None`` (the default), block if necessary until an item is" -" available. If *timeout* is a positive number, it blocks at most *timeout* " +"and *timeout* is ``None`` (the default), block if necessary until an item is " +"available. If *timeout* is a positive number, it blocks at most *timeout* " "seconds and raises the :exc:`Empty` exception if no item was available " "within that time. Otherwise (*block* is false), return an item if one is " "immediately available, else raise the :exc:`Empty` exception (*timeout* is " @@ -191,8 +191,8 @@ msgid "" "Prior to 3.0 on POSIX systems, and for all versions on Windows, if *block* " "is true and *timeout* is ``None``, this operation goes into an " "uninterruptible wait on an underlying lock. This means that no exceptions " -"can occur, and in particular a SIGINT will not trigger a " -":exc:`KeyboardInterrupt`." +"can occur, and in particular a SIGINT will not trigger a :exc:" +"`KeyboardInterrupt`." msgstr "" #: ../../library/queue.rst:163 ../../library/queue.rst:274 @@ -201,29 +201,28 @@ msgstr "" #: ../../library/queue.rst:165 msgid "" -"Two methods are offered to support tracking whether enqueued tasks have been" -" fully processed by daemon consumer threads." +"Two methods are offered to support tracking whether enqueued tasks have been " +"fully processed by daemon consumer threads." msgstr "" #: ../../library/queue.rst:171 msgid "" "Indicate that a formerly enqueued task is complete. Used by queue consumer " -"threads. For each :meth:`get` used to fetch a task, a subsequent call to " -":meth:`task_done` tells the queue that the processing on the task is " -"complete." +"threads. For each :meth:`get` used to fetch a task, a subsequent call to :" +"meth:`task_done` tells the queue that the processing on the task is complete." msgstr "" #: ../../library/queue.rst:175 msgid "" "If a :meth:`join` is currently blocking, it will resume when all items have " -"been processed (meaning that a :meth:`task_done` call was received for every" -" item that had been :meth:`put` into the queue)." +"been processed (meaning that a :meth:`task_done` call was received for every " +"item that had been :meth:`put` into the queue)." msgstr "" #: ../../library/queue.rst:179 msgid "" -"Raises a :exc:`ValueError` if called more times than there were items placed" -" in the queue." +"Raises a :exc:`ValueError` if called more times than there were items placed " +"in the queue." msgstr "" #: ../../library/queue.rst:185 @@ -233,10 +232,10 @@ msgstr "" #: ../../library/queue.rst:187 msgid "" "The count of unfinished tasks goes up whenever an item is added to the " -"queue. The count goes down whenever a consumer thread calls " -":meth:`task_done` to indicate that the item was retrieved and all work on it" -" is complete. When the count of unfinished tasks drops to zero, :meth:`join`" -" unblocks." +"queue. The count goes down whenever a consumer thread calls :meth:" +"`task_done` to indicate that the item was retrieved and all work on it is " +"complete. When the count of unfinished tasks drops to zero, :meth:`join` " +"unblocks." msgstr "" #: ../../library/queue.rst:193 @@ -275,15 +274,15 @@ msgstr "" #: ../../library/queue.rst:258 msgid "" -"Equivalent to ``put(item)``, provided for compatibility with " -":meth:`Queue.put_nowait`." +"Equivalent to ``put(item)``, provided for compatibility with :meth:`Queue." +"put_nowait`." msgstr "" #: ../../library/queue.rst:264 msgid "" "Remove and return an item from the queue. If optional args *block* is true " -"and *timeout* is ``None`` (the default), block if necessary until an item is" -" available. If *timeout* is a positive number, it blocks at most *timeout* " +"and *timeout* is ``None`` (the default), block if necessary until an item is " +"available. If *timeout* is a positive number, it blocks at most *timeout* " "seconds and raises the :exc:`Empty` exception if no item was available " "within that time. Otherwise (*block* is false), return an item if one is " "immediately available, else raise the :exc:`Empty` exception (*timeout* is " @@ -303,6 +302,6 @@ msgstr "" #: ../../library/queue.rst:283 msgid "" ":class:`collections.deque` is an alternative implementation of unbounded " -"queues with fast atomic :meth:`~collections.deque.append` and " -":meth:`~collections.deque.popleft` operations that do not require locking." +"queues with fast atomic :meth:`~collections.deque.append` and :meth:" +"`~collections.deque.popleft` operations that do not require locking." msgstr "" diff --git a/library/quopri.po b/library/quopri.po index 0f5e21e68..521250cbd 100644 --- a/library/quopri.po +++ b/library/quopri.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,49 +35,67 @@ msgstr "**Código-fonte:** :source:`Lib/quopri.py`" msgid "" "This module performs quoted-printable transport encoding and decoding, as " "defined in :rfc:`1521`: \"MIME (Multipurpose Internet Mail Extensions) Part " -"One: Mechanisms for Specifying and Describing the Format of Internet Message" -" Bodies\". The quoted-printable encoding is designed for data where there " -"are relatively few nonprintable characters; the base64 encoding scheme " -"available via the :mod:`base64` module is more compact if there are many " -"such characters, as when sending a graphics file." +"One: Mechanisms for Specifying and Describing the Format of Internet Message " +"Bodies\". The quoted-printable encoding is designed for data where there are " +"relatively few nonprintable characters; the base64 encoding scheme available " +"via the :mod:`base64` module is more compact if there are many such " +"characters, as when sending a graphics file." msgstr "" "Este módulo realiza codificação e decodificação de transporte imprimida " "entre aspas, como definido em :rfc:`1521`: \"MIME (Multipurpose Internet " "Mail Extensions) Part One: Mechanisms for Specifying and Describing the " "Format of Internet Message Bodies\". A codificação imprimida entre aspas é " "projetada para dados em que há relativamente poucos caracteres não " -"imprimíveis; o esquema de codificação base64 disponível através do módulo " -":mod:`base64` é mais compacto se existirem muitos desses caracteres, como no" -" envio de um arquivo gráfico." +"imprimíveis; o esquema de codificação base64 disponível através do módulo :" +"mod:`base64` é mais compacto se existirem muitos desses caracteres, como no " +"envio de um arquivo gráfico." #: ../../library/quopri.rst:25 msgid "" "Decode the contents of the *input* file and write the resulting decoded " -"binary data to the *output* file. *input* and *output* must be :term:`binary" -" file objects `. If the optional argument *header* is present " -"and true, underscore will be decoded as space. This is used to decode " -"\"Q\"-encoded headers as described in :rfc:`1522`: \"MIME (Multipurpose " +"binary data to the *output* file. *input* and *output* must be :term:`binary " +"file objects `. If the optional argument *header* is present " +"and true, underscore will be decoded as space. This is used to decode \"Q\"-" +"encoded headers as described in :rfc:`1522`: \"MIME (Multipurpose Internet " +"Mail Extensions) Part Two: Message Header Extensions for Non-ASCII Text\"." +msgstr "" +"Decodifica o conteúdo do arquivo *input* e escreve os dados binários " +"decodificados resultantes no arquivo *output*. * input * e *output* devem " +"ser :term:`objetos de arquivos binários `. Se o argumento " +"opcional *header* estiver presente e for true, o sublinhado será " +"decodificado como espaço. Isso é usado para decodificar cabeçalhos " +"codificados em \"Q\", conforme descrito em :rfc:`1522`: \"MIME (Multipurpose " "Internet Mail Extensions) Part Two: Message Header Extensions for Non-ASCII " "Text\"." -msgstr "" #: ../../library/quopri.rst:35 msgid "" "Encode the contents of the *input* file and write the resulting quoted-" -"printable data to the *output* file. *input* and *output* must be " -":term:`binary file objects `. *quotetabs*, a non-optional flag " -"which controls whether to encode embedded spaces and tabs; when true it " -"encodes such embedded whitespace, and when false it leaves them unencoded. " -"Note that spaces and tabs appearing at the end of lines are always encoded, " -"as per :rfc:`1521`. *header* is a flag which controls if spaces are encoded" -" as underscores as per :rfc:`1522`." +"printable data to the *output* file. *input* and *output* must be :term:" +"`binary file objects `. *quotetabs*, a non-optional flag which " +"controls whether to encode embedded spaces and tabs; when true it encodes " +"such embedded whitespace, and when false it leaves them unencoded. Note that " +"spaces and tabs appearing at the end of lines are always encoded, as per :" +"rfc:`1521`. *header* is a flag which controls if spaces are encoded as " +"underscores as per :rfc:`1522`." msgstr "" +"Codifica o conteúdo do arquivo *input* e grava os dados imprimíveis entre " +"aspas resultantes no arquivo *output*. *input* e *output* devem ser :term:" +"`objetos de arquivos binários `. *quotetabs*, um sinalizador " +"não opcional que controla a codificação de espaços e tabulações " +"incorporados; quando true, codifica esses espaços em branco incorporados e, " +"quando false, os deixa sem codificação. Observe que os espaços e tabulações " +"que aparecem no final das linhas são sempre codificados, conforme :rfc:" +"`1521`. *header* é um sinalizador que controla se os espaços são codificados " +"como sublinhados, conforme :rfc:`1522`." #: ../../library/quopri.rst:48 msgid "" "Like :func:`decode`, except that it accepts a source :class:`bytes` and " "returns the corresponding decoded :class:`bytes`." msgstr "" +"Como :func:`decode`, exceto pelo fato de aceitar uma fonte :class:`bytes` e " +"retornar o correspondente decodificado :class:`bytes`." #: ../../library/quopri.rst:54 msgid "" @@ -84,11 +103,14 @@ msgid "" "returns the corresponding encoded :class:`bytes`. By default, it sends a " "``False`` value to *quotetabs* parameter of the :func:`encode` function." msgstr "" +"Como :func:`encode`, exceto pelo fato de aceitar uma fonte :class:`bytes` e " +"retornar o :class:`bytes` codificado correspondente. Por padrão, envia um " +"valor ``False`` para o parâmetro *quotetabs* da função :func:`encode`." #: ../../library/quopri.rst:62 msgid "Module :mod:`base64`" -msgstr "" +msgstr "Módulo :mod:`base64`" #: ../../library/quopri.rst:63 msgid "Encode and decode MIME base64 data" -msgstr "" +msgstr "Codifica e decodifica dados de base64 MIME" diff --git a/library/random.po b/library/random.po index 39f7c6e79..8803aab65 100644 --- a/library/random.po +++ b/library/random.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-17 11:11+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,17 +47,17 @@ msgstr "" #: ../../library/random.rst:19 msgid "" -"On the real line, there are functions to compute uniform, normal (Gaussian)," -" lognormal, negative exponential, gamma, and beta distributions. For " +"On the real line, there are functions to compute uniform, normal (Gaussian), " +"lognormal, negative exponential, gamma, and beta distributions. For " "generating distributions of angles, the von Mises distribution is available." msgstr "" #: ../../library/random.rst:23 msgid "" "Almost all module functions depend on the basic function :func:`.random`, " -"which generates a random float uniformly in the semi-open range [0.0, 1.0)." -" Python uses the Mersenne Twister as the core generator. It produces " -"53-bit precision floats and has a period of 2\\*\\*19937-1. The underlying " +"which generates a random float uniformly in the semi-open range [0.0, 1.0). " +"Python uses the Mersenne Twister as the core generator. It produces 53-bit " +"precision floats and has a period of 2\\*\\*19937-1. The underlying " "implementation in C is both fast and threadsafe. The Mersenne Twister is " "one of the most extensively tested random number generators in existence. " "However, being completely deterministic, it is not suitable for all " @@ -64,48 +66,46 @@ msgstr "" #: ../../library/random.rst:32 msgid "" -"The functions supplied by this module are actually bound methods of a hidden" -" instance of the :class:`random.Random` class. You can instantiate your own" -" instances of :class:`Random` to get generators that don't share state." +"The functions supplied by this module are actually bound methods of a hidden " +"instance of the :class:`random.Random` class. You can instantiate your own " +"instances of :class:`Random` to get generators that don't share state." msgstr "" #: ../../library/random.rst:36 msgid "" "Class :class:`Random` can also be subclassed if you want to use a different " -"basic generator of your own devising: in that case, override the " -":meth:`~Random.random`, :meth:`~Random.seed`, :meth:`~Random.getstate`, and " -":meth:`~Random.setstate` methods. Optionally, a new generator can supply a " -":meth:`~Random.getrandbits` method --- this allows :meth:`randrange` to " -"produce selections over an arbitrarily large range." +"basic generator of your own devising: in that case, override the :meth:" +"`~Random.random`, :meth:`~Random.seed`, :meth:`~Random.getstate`, and :meth:" +"`~Random.setstate` methods. Optionally, a new generator can supply a :meth:" +"`~Random.getrandbits` method --- this allows :meth:`randrange` to produce " +"selections over an arbitrarily large range." msgstr "" #: ../../library/random.rst:42 msgid "" -"The :mod:`random` module also provides the :class:`SystemRandom` class which" -" uses the system function :func:`os.urandom` to generate random numbers from" -" sources provided by the operating system." +"The :mod:`random` module also provides the :class:`SystemRandom` class which " +"uses the system function :func:`os.urandom` to generate random numbers from " +"sources provided by the operating system." msgstr "" #: ../../library/random.rst:48 msgid "" "The pseudo-random generators of this module should not be used for security " -"purposes. For security or cryptographic uses, see the :mod:`secrets` " -"module." +"purposes. For security or cryptographic uses, see the :mod:`secrets` module." msgstr "" #: ../../library/random.rst:54 msgid "" "M. Matsumoto and T. Nishimura, \"Mersenne Twister: A 623-dimensionally " -"equidistributed uniform pseudorandom number generator\", ACM Transactions on" -" Modeling and Computer Simulation Vol. 8, No. 1, January pp.3--30 1998." +"equidistributed uniform pseudorandom number generator\", ACM Transactions on " +"Modeling and Computer Simulation Vol. 8, No. 1, January pp.3--30 1998." msgstr "" #: ../../library/random.rst:59 msgid "" -"`Complementary-Multiply-with-Carry recipe " -"`_ for a compatible " -"alternative random number generator with a long period and comparatively " -"simple update operations." +"`Complementary-Multiply-with-Carry recipe `_ for a compatible alternative random number generator with " +"a long period and comparatively simple update operations." msgstr "" #: ../../library/random.rst:66 @@ -130,9 +130,9 @@ msgstr "" #: ../../library/random.rst:79 msgid "" -"With version 2 (the default), a :class:`str`, :class:`bytes`, or " -":class:`bytearray` object gets converted to an :class:`int` and all of its " -"bits are used." +"With version 2 (the default), a :class:`str`, :class:`bytes`, or :class:" +"`bytearray` object gets converted to an :class:`int` and all of its bits are " +"used." msgstr "" #: ../../library/random.rst:82 @@ -156,16 +156,16 @@ msgstr "" #: ../../library/random.rst:97 msgid "" "*state* should have been obtained from a previous call to :func:`getstate`, " -"and :func:`setstate` restores the internal state of the generator to what it" -" was at the time :func:`getstate` was called." +"and :func:`setstate` restores the internal state of the generator to what it " +"was at the time :func:`getstate` was called." msgstr "" #: ../../library/random.rst:104 msgid "" "Returns a Python integer with *k* random bits. This method is supplied with " "the MersenneTwister generator and some other generators may also provide it " -"as an optional part of the API. When available, :meth:`getrandbits` enables " -":meth:`randrange` to handle arbitrarily large ranges." +"as an optional part of the API. When available, :meth:`getrandbits` enables :" +"meth:`randrange` to handle arbitrarily large ranges." msgstr "" #: ../../library/random.rst:111 @@ -182,8 +182,8 @@ msgstr "" #: ../../library/random.rst:120 msgid "" "The positional argument pattern matches that of :func:`range`. Keyword " -"arguments should not be used because the function may use them in unexpected" -" ways." +"arguments should not be used because the function may use them in unexpected " +"ways." msgstr "" #: ../../library/random.rst:123 @@ -222,8 +222,8 @@ msgid "" "selections are made according to the cumulative weights (perhaps computed " "using :func:`itertools.accumulate`). For example, the relative weights " "``[10, 5, 30, 5]`` are equivalent to the cumulative weights ``[10, 15, 45, " -"50]``. Internally, the relative weights are converted to cumulative weights" -" before making selections, so supplying the cumulative weights saves work." +"50]``. Internally, the relative weights are converted to cumulative weights " +"before making selections, so supplying the cumulative weights saves work." msgstr "" #: ../../library/random.rst:156 @@ -244,11 +244,11 @@ msgstr "" #: ../../library/random.rst:165 msgid "" "For a given seed, the :func:`choices` function with equal weighting " -"typically produces a different sequence than repeated calls to " -":func:`choice`. The algorithm used by :func:`choices` uses floating point " -"arithmetic for internal consistency and speed. The algorithm used by " -":func:`choice` defaults to integer arithmetic with repeated selections to " -"avoid small biases from round-off error." +"typically produces a different sequence than repeated calls to :func:" +"`choice`. The algorithm used by :func:`choices` uses floating point " +"arithmetic for internal consistency and speed. The algorithm used by :func:" +"`choice` defaults to integer arithmetic with repeated selections to avoid " +"small biases from round-off error." msgstr "" #: ../../library/random.rst:177 @@ -269,8 +269,8 @@ msgstr "" #: ../../library/random.rst:185 msgid "" -"Note that even for small ``len(x)``, the total number of permutations of *x*" -" can quickly grow larger than the period of most random number generators. " +"Note that even for small ``len(x)``, the total number of permutations of *x* " +"can quickly grow larger than the period of most random number generators. " "This implies that most permutations of a long sequence can never be " "generated. For example, a sequence of length 2080 is the largest that can " "fit within the period of the Mersenne Twister random number generator." @@ -284,18 +284,23 @@ msgstr "" #: ../../library/random.rst:197 msgid "" -"Returns a new list containing elements from the population while leaving the" -" original population unchanged. The resulting list is in selection order so" -" that all sub-slices will also be valid random samples. This allows raffle " +"Returns a new list containing elements from the population while leaving the " +"original population unchanged. The resulting list is in selection order so " +"that all sub-slices will also be valid random samples. This allows raffle " "winners (the sample) to be partitioned into grand prize and second place " "winners (the subslices)." msgstr "" +"Retorna uma nova lista contendo elementos da população, mantendo a população " +"original inalterada. A lista resultante está na ordem de seleção, para que " +"todas as sub-fatias também sejam amostras aleatórias válidas. Isso permite " +"que os vencedores do sorteio (a amostra) sejam divididos em grandes prêmios " +"e vencedores de segundo lugar (as sub-fatias)." #: ../../library/random.rst:203 msgid "" "Members of the population need not be :term:`hashable` or unique. If the " -"population contains repeats, then each occurrence is a possible selection in" -" the sample." +"population contains repeats, then each occurrence is a possible selection in " +"the sample." msgstr "" #: ../../library/random.rst:206 @@ -341,10 +346,10 @@ msgstr "" #: ../../library/random.rst:238 msgid "" -"Return a random floating point number *N* such that ``low <= N <= high`` and" -" with the specified *mode* between those bounds. The *low* and *high* " -"bounds default to zero and one. The *mode* argument defaults to the " -"midpoint between the bounds, giving a symmetric distribution." +"Return a random floating point number *N* such that ``low <= N <= high`` and " +"with the specified *mode* between those bounds. The *low* and *high* bounds " +"default to zero and one. The *mode* argument defaults to the midpoint " +"between the bounds, giving a symmetric distribution." msgstr "" #: ../../library/random.rst:246 @@ -356,10 +361,10 @@ msgstr "" #: ../../library/random.rst:252 msgid "" "Exponential distribution. *lambd* is 1.0 divided by the desired mean. It " -"should be nonzero. (The parameter would be called \"lambda\", but that is a" -" reserved word in Python.) Returned values range from 0 to positive " -"infinity if *lambd* is positive, and from negative infinity to 0 if *lambd* " -"is negative." +"should be nonzero. (The parameter would be called \"lambda\", but that is a " +"reserved word in Python.) Returned values range from 0 to positive infinity " +"if *lambd* is positive, and from negative infinity to 0 if *lambd* is " +"negative." msgstr "" #: ../../library/random.rst:261 @@ -417,8 +422,8 @@ msgstr "" #: ../../library/random.rst:315 msgid "" -"Class that implements the default pseudo-random number generator used by the" -" :mod:`random` module." +"Class that implements the default pseudo-random number generator used by " +"the :mod:`random` module." msgstr "" #: ../../library/random.rst:320 @@ -427,8 +432,8 @@ msgid "" "numbers from sources provided by the operating system. Not available on all " "systems. Does not rely on software state, and sequences are not " "reproducible. Accordingly, the :meth:`seed` method has no effect and is " -"ignored. The :meth:`getstate` and :meth:`setstate` methods raise " -":exc:`NotImplementedError` if called." +"ignored. The :meth:`getstate` and :meth:`setstate` methods raise :exc:" +"`NotImplementedError` if called." msgstr "" #: ../../library/random.rst:329 @@ -438,8 +443,8 @@ msgstr "" #: ../../library/random.rst:331 msgid "" "Sometimes it is useful to be able to reproduce the sequences given by a " -"pseudo random number generator. By re-using a seed value, the same sequence" -" should be reproducible from run to run as long as multiple threads are not " +"pseudo random number generator. By re-using a seed value, the same sequence " +"should be reproducible from run to run as long as multiple threads are not " "running." msgstr "" @@ -475,51 +480,46 @@ msgstr "" #: ../../library/random.rst:406 msgid "" -"Example of `statistical bootstrapping " -"`_ using " -"resampling with replacement to estimate a confidence interval for the mean " -"of a sample of size five::" +"Example of `statistical bootstrapping `_ using resampling with replacement to estimate " +"a confidence interval for the mean of a sample of size five::" msgstr "" #: ../../library/random.rst:420 msgid "" -"Example of a `resampling permutation test " -"`_ " -"to determine the statistical significance or `p-value " -"`_ of an observed difference between " -"the effects of a drug versus a placebo::" +"Example of a `resampling permutation test `_ to determine the statistical " +"significance or `p-value `_ of an " +"observed difference between the effects of a drug versus a placebo::" msgstr "" #: ../../library/random.rst:447 msgid "" -"Simulation of arrival times and service deliveries in a single server " -"queue::" +"Simulation of arrival times and service deliveries in a single server queue::" msgstr "" #: ../../library/random.rst:478 msgid "" "`Statistics for Hackers `_ a " -"video tutorial by `Jake Vanderplas " -"`_ on statistical analysis " -"using just a few fundamental concepts including simulation, sampling, " -"shuffling, and cross-validation." +"video tutorial by `Jake Vanderplas `_ on statistical analysis using just a few fundamental " +"concepts including simulation, sampling, shuffling, and cross-validation." msgstr "" #: ../../library/random.rst:484 msgid "" -"`Economics Simulation " -"`_ a " -"simulation of a marketplace by `Peter Norvig `_ " -"that shows effective use of many of the tools and distributions provided by " -"this module (gauss, uniform, sample, betavariate, choice, triangular, and " -"randrange)." +"`Economics Simulation `_ a simulation of a marketplace by `Peter Norvig `_ that shows effective use of many of the tools and " +"distributions provided by this module (gauss, uniform, sample, betavariate, " +"choice, triangular, and randrange)." msgstr "" #: ../../library/random.rst:491 msgid "" -"`A Concrete Introduction to Probability (using Python) " -"`_ a " -"tutorial by `Peter Norvig `_ covering the basics" -" of probability theory, how to write simulations, and how to perform data " -"analysis using Python." +"`A Concrete Introduction to Probability (using Python) `_ a tutorial by `Peter " +"Norvig `_ covering the basics of probability " +"theory, how to write simulations, and how to perform data analysis using " +"Python." msgstr "" diff --git a/library/re.po b/library/re.po index cd19161f2..5d43aada2 100644 --- a/library/re.po +++ b/library/re.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Cauê Baasch de Souza , 2019 # Risaffi , 2019 # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-09 03:43+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,18 +36,18 @@ msgstr "**Código Fonte:** :source:`Lib/re.py`" #: ../../library/re.rst:14 msgid "" -"This module provides regular expression matching operations similar to those" -" found in Perl." +"This module provides regular expression matching operations similar to those " +"found in Perl." msgstr "" #: ../../library/re.rst:17 msgid "" -"Both patterns and strings to be searched can be Unicode strings " -"(:class:`str`) as well as 8-bit strings (:class:`bytes`). However, Unicode " -"strings and 8-bit strings cannot be mixed: that is, you cannot match a " -"Unicode string with a byte pattern or vice-versa; similarly, when asking for" -" a substitution, the replacement string must be of the same type as both the" -" pattern and the search string." +"Both patterns and strings to be searched can be Unicode strings (:class:" +"`str`) as well as 8-bit strings (:class:`bytes`). However, Unicode strings " +"and 8-bit strings cannot be mixed: that is, you cannot match a Unicode " +"string with a byte pattern or vice-versa; similarly, when asking for a " +"substitution, the replacement string must be of the same type as both the " +"pattern and the search string." msgstr "" #: ../../library/re.rst:24 @@ -62,11 +64,11 @@ msgstr "" #: ../../library/re.rst:33 msgid "" "The solution is to use Python's raw string notation for regular expression " -"patterns; backslashes are not handled in any special way in a string literal" -" prefixed with ``'r'``. So ``r\"\\n\"`` is a two-character string " -"containing ``'\\'`` and ``'n'``, while ``\"\\n\"`` is a one-character string" -" containing a newline. Usually patterns will be expressed in Python code " -"using this raw string notation." +"patterns; backslashes are not handled in any special way in a string literal " +"prefixed with ``'r'``. So ``r\"\\n\"`` is a two-character string containing " +"``'\\'`` and ``'n'``, while ``\"\\n\"`` is a one-character string containing " +"a newline. Usually patterns will be expressed in Python code using this raw " +"string notation." msgstr "" #: ../../library/re.rst:40 @@ -79,8 +81,8 @@ msgstr "" #: ../../library/re.rst:48 msgid "" -"The third-party `regex `_ module, which has" -" an API compatible with the standard library :mod:`re` module, but offers " +"The third-party `regex `_ module, which has " +"an API compatible with the standard library :mod:`re` module, but offers " "additional functionality and a more thorough Unicode support." msgstr "" @@ -90,8 +92,8 @@ msgstr "" #: ../../library/re.rst:58 msgid "" -"A regular expression (or RE) specifies a set of strings that matches it; the" -" functions in this module let you check if a particular string matches a " +"A regular expression (or RE) specifies a set of strings that matches it; the " +"functions in this module let you check if a particular string matches a " "given regular expression (or if a given regular expression matches a " "particular string, which comes down to the same thing)." msgstr "" @@ -104,8 +106,8 @@ msgid "" "matches *B*, the string *pq* will match AB. This holds unless *A* or *B* " "contain low precedence operations; boundary conditions between *A* and *B*; " "or have numbered group references. Thus, complex expressions can easily be " -"constructed from simpler primitive expressions like the ones described here." -" For details of the theory and implementation of regular expressions, " +"constructed from simpler primitive expressions like the ones described " +"here. For details of the theory and implementation of regular expressions, " "consult the Friedl book [Frie09]_, or almost any textbook about compiler " "construction." msgstr "" @@ -139,8 +141,8 @@ msgid "" "Repetition qualifiers (``*``, ``+``, ``?``, ``{m,n}``, etc) cannot be " "directly nested. This avoids ambiguity with the non-greedy modifier suffix " "``?``, and with other modifiers in other implementations. To apply a second " -"repetition to an inner repetition, parentheses may be used. For example, the" -" expression ``(?:a{6})*`` matches any multiple of six ``'a'`` characters." +"repetition to an inner repetition, parentheses may be used. For example, the " +"expression ``(?:a{6})*`` matches any multiple of six ``'a'`` characters." msgstr "" #: ../../library/re.rst:94 @@ -149,7 +151,7 @@ msgstr "" #: ../../library/re.rst:101 ../../library/re.rst:1406 msgid "``.``" -msgstr "" +msgstr "``.``" #: ../../library/re.rst:99 msgid "" @@ -176,17 +178,17 @@ msgstr "``$``" msgid "" "Matches the end of the string or just before the newline at the end of the " "string, and in :const:`MULTILINE` mode also matches before a newline. " -"``foo`` matches both 'foo' and 'foobar', while the regular expression " -"``foo$`` matches only 'foo'. More interestingly, searching for ``foo.$`` in" -" ``'foo1\\nfoo2\\n'`` matches 'foo2' normally, but 'foo1' in " -":const:`MULTILINE` mode; searching for a single ``$`` in ``'foo\\n'`` will " -"find two (empty) matches: one just before the newline, and one at the end of" -" the string." +"``foo`` matches both 'foo' and 'foobar', while the regular expression ``foo" +"$`` matches only 'foo'. More interestingly, searching for ``foo.$`` in " +"``'foo1\\nfoo2\\n'`` matches 'foo2' normally, but 'foo1' in :const:" +"`MULTILINE` mode; searching for a single ``$`` in ``'foo\\n'`` will find two " +"(empty) matches: one just before the newline, and one at the end of the " +"string." msgstr "" #: ../../library/re.rst:125 msgid "``*``" -msgstr "" +msgstr "``*``" #: ../../library/re.rst:123 msgid "" @@ -197,7 +199,7 @@ msgstr "" #: ../../library/re.rst:132 msgid "``+``" -msgstr "" +msgstr "``+``" #: ../../library/re.rst:130 msgid "" @@ -208,7 +210,7 @@ msgstr "" #: ../../library/re.rst:138 msgid "``?``" -msgstr "" +msgstr "``?``" #: ../../library/re.rst:137 msgid "" @@ -224,8 +226,8 @@ msgstr "" msgid "" "The ``'*'``, ``'+'``, and ``'?'`` qualifiers are all :dfn:`greedy`; they " "match as much text as possible. Sometimes this behaviour isn't desired; if " -"the RE ``<.*>`` is matched against ``' b '``, it will match the entire" -" string, and not just ``''``. Adding ``?`` after the qualifier makes it " +"the RE ``<.*>`` is matched against ``' b '``, it will match the entire " +"string, and not just ``''``. Adding ``?`` after the qualifier makes it " "perform the match in :dfn:`non-greedy` or :dfn:`minimal` fashion; as *few* " "characters as possible will be matched. Using the RE ``<.*?>`` will match " "only ``''``." @@ -233,7 +235,7 @@ msgstr "" #: ../../library/re.rst:160 msgid "``{m}``" -msgstr "" +msgstr "``{m}``" #: ../../library/re.rst:158 msgid "" @@ -244,36 +246,36 @@ msgstr "" #: ../../library/re.rst:169 msgid "``{m,n}``" -msgstr "" +msgstr "``{m,n}``" #: ../../library/re.rst:163 msgid "" "Causes the resulting RE to match from *m* to *n* repetitions of the " "preceding RE, attempting to match as many repetitions as possible. For " -"example, ``a{3,5}`` will match from 3 to 5 ``'a'`` characters. Omitting *m*" -" specifies a lower bound of zero, and omitting *n* specifies an infinite " -"upper bound. As an example, ``a{4,}b`` will match ``'aaaab'`` or a thousand" -" ``'a'`` characters followed by a ``'b'``, but not ``'aaab'``. The comma may" -" not be omitted or the modifier would be confused with the previously " +"example, ``a{3,5}`` will match from 3 to 5 ``'a'`` characters. Omitting *m* " +"specifies a lower bound of zero, and omitting *n* specifies an infinite " +"upper bound. As an example, ``a{4,}b`` will match ``'aaaab'`` or a thousand " +"``'a'`` characters followed by a ``'b'``, but not ``'aaab'``. The comma may " +"not be omitted or the modifier would be confused with the previously " "described form." msgstr "" #: ../../library/re.rst:176 msgid "``{m,n}?``" -msgstr "" +msgstr "``{m,n}?``" #: ../../library/re.rst:172 msgid "" "Causes the resulting RE to match from *m* to *n* repetitions of the " -"preceding RE, attempting to match as *few* repetitions as possible. This is" -" the non-greedy version of the previous qualifier. For example, on the " -"6-character string ``'aaaaaa'``, ``a{3,5}`` will match 5 ``'a'`` characters," -" while ``a{3,5}?`` will only match 3 characters." +"preceding RE, attempting to match as *few* repetitions as possible. This is " +"the non-greedy version of the previous qualifier. For example, on the 6-" +"character string ``'aaaaaa'``, ``a{3,5}`` will match 5 ``'a'`` characters, " +"while ``a{3,5}?`` will only match 3 characters." msgstr "" #: ../../library/re.rst:191 msgid "``\\``" -msgstr "" +msgstr "``\\``" #: ../../library/re.rst:181 msgid "" @@ -295,7 +297,7 @@ msgstr "" #: ../../library/re.rst:251 msgid "``[]``" -msgstr "" +msgstr "``[]``" #: ../../library/re.rst:197 msgid "Used to indicate a set of characters. In a set:" @@ -310,8 +312,8 @@ msgstr "" #: ../../library/re.rst:204 msgid "" "Ranges of characters can be indicated by giving two characters and " -"separating them by a ``'-'``, for example ``[a-z]`` will match any lowercase" -" ASCII letter, ``[0-5][0-9]`` will match all the two-digits numbers from " +"separating them by a ``'-'``, for example ``[a-z]`` will match any lowercase " +"ASCII letter, ``[0-5][0-9]`` will match all the two-digits numbers from " "``00`` to ``59``, and ``[0-9A-Fa-f]`` will match any hexadecimal digit. If " "``-`` is escaped (e.g. ``[a\\-z]``) or if it's placed as the first or last " "character (e.g. ``[-a]`` or ``[a-]``), it will match a literal ``'-'``." @@ -327,16 +329,16 @@ msgstr "" #: ../../library/re.rst:217 msgid "" "Character classes such as ``\\w`` or ``\\S`` (defined below) are also " -"accepted inside a set, although the characters they match depends on whether" -" :const:`ASCII` or :const:`LOCALE` mode is in force." +"accepted inside a set, although the characters they match depends on " +"whether :const:`ASCII` or :const:`LOCALE` mode is in force." msgstr "" #: ../../library/re.rst:223 msgid "" -"Characters that are not within a range can be matched by " -":dfn:`complementing` the set. If the first character of the set is ``'^'``," -" all the characters that are *not* in the set will be matched. For example," -" ``[^5]`` will match any character except ``'5'``, and ``[^^]`` will match " +"Characters that are not within a range can be matched by :dfn:" +"`complementing` the set. If the first character of the set is ``'^'``, all " +"the characters that are *not* in the set will be matched. For example, " +"``[^5]`` will match any character except ``'5'``, and ``[^^]`` will match " "any character except ``'^'``. ``^`` has no special meaning if it's not the " "first character in the set." msgstr "" @@ -353,9 +355,9 @@ msgid "" "Support of nested sets and set operations as in `Unicode Technical Standard " "#18`_ might be added in the future. This would change the syntax, so to " "facilitate this change a :exc:`FutureWarning` will be raised in ambiguous " -"cases for the time being. That includes sets starting with a literal ``'['``" -" or containing literal character sequences ``'--'``, ``'&&'``, ``'~~'``, and" -" ``'||'``. To avoid a warning escape them with a backslash." +"cases for the time being. That includes sets starting with a literal ``'['`` " +"or containing literal character sequences ``'--'``, ``'&&'``, ``'~~'``, and " +"``'||'``. To avoid a warning escape them with a backslash." msgstr "" #: ../../library/re.rst:249 @@ -372,8 +374,8 @@ msgstr "``|``" msgid "" "``A|B``, where *A* and *B* can be arbitrary REs, creates a regular " "expression that will match either *A* or *B*. An arbitrary number of REs " -"can be separated by the ``'|'`` in this way. This can be used inside groups" -" (see below) as well. As the target string is scanned, REs separated by " +"can be separated by the ``'|'`` in this way. This can be used inside groups " +"(see below) as well. As the target string is scanned, REs separated by " "``'|'`` are tried from left to right. When one pattern completely matches, " "that branch is accepted. This means that once *A* matches, *B* will not be " "tested further, even if it would produce a longer overall match. In other " @@ -383,21 +385,21 @@ msgstr "" #: ../../library/re.rst:274 msgid "``(...)``" -msgstr "" +msgstr "``(...)``" #: ../../library/re.rst:270 msgid "" -"Matches whatever regular expression is inside the parentheses, and indicates" -" the start and end of a group; the contents of a group can be retrieved " -"after a match has been performed, and can be matched later in the string " -"with the ``\\number`` special sequence, described below. To match the " -"literals ``'('`` or ``')'``, use ``\\(`` or ``\\)``, or enclose them inside " -"a character class: ``[(]``, ``[)]``." +"Matches whatever regular expression is inside the parentheses, and indicates " +"the start and end of a group; the contents of a group can be retrieved after " +"a match has been performed, and can be matched later in the string with the " +"``\\number`` special sequence, described below. To match the literals " +"``'('`` or ``')'``, use ``\\(`` or ``\\)``, or enclose them inside a " +"character class: ``[(]``, ``[)]``." msgstr "" #: ../../library/re.rst:283 msgid "``(?...)``" -msgstr "" +msgstr "``(?...)``" #: ../../library/re.rst:279 msgid "" @@ -410,61 +412,61 @@ msgstr "" #: ../../library/re.rst:297 msgid "``(?aiLmsux)``" -msgstr "" +msgstr "``(?aiLmsux)``" #: ../../library/re.rst:286 msgid "" "(One or more letters from the set ``'a'``, ``'i'``, ``'L'``, ``'m'``, " -"``'s'``, ``'u'``, ``'x'``.) The group matches the empty string; the letters" -" set the corresponding flags: :const:`re.A` (ASCII-only matching), " -":const:`re.I` (ignore case), :const:`re.L` (locale dependent), :const:`re.M`" -" (multi-line), :const:`re.S` (dot matches all), :const:`re.U` (Unicode " -"matching), and :const:`re.X` (verbose), for the entire regular expression. " -"(The flags are described in :ref:`contents-of-module-re`.) This is useful if" -" you wish to include the flags as part of the regular expression, instead of" -" passing a *flag* argument to the :func:`re.compile` function. Flags should" -" be used first in the expression string." +"``'s'``, ``'u'``, ``'x'``.) The group matches the empty string; the letters " +"set the corresponding flags: :const:`re.A` (ASCII-only matching), :const:`re." +"I` (ignore case), :const:`re.L` (locale dependent), :const:`re.M` (multi-" +"line), :const:`re.S` (dot matches all), :const:`re.U` (Unicode matching), " +"and :const:`re.X` (verbose), for the entire regular expression. (The flags " +"are described in :ref:`contents-of-module-re`.) This is useful if you wish " +"to include the flags as part of the regular expression, instead of passing a " +"*flag* argument to the :func:`re.compile` function. Flags should be used " +"first in the expression string." msgstr "" #: ../../library/re.rst:305 msgid "``(?:...)``" -msgstr "" +msgstr "``(?:...)``" #: ../../library/re.rst:302 msgid "" "A non-capturing version of regular parentheses. Matches whatever regular " -"expression is inside the parentheses, but the substring matched by the group" -" *cannot* be retrieved after performing a match or referenced later in the " +"expression is inside the parentheses, but the substring matched by the group " +"*cannot* be retrieved after performing a match or referenced later in the " "pattern." msgstr "" #: ../../library/re.rst:331 msgid "``(?aiLmsux-imsx:...)``" -msgstr "" +msgstr "``(?aiLmsux-imsx:...)``" #: ../../library/re.rst:308 msgid "" "(Zero or more letters from the set ``'a'``, ``'i'``, ``'L'``, ``'m'``, " -"``'s'``, ``'u'``, ``'x'``, optionally followed by ``'-'`` followed by one or" -" more letters from the ``'i'``, ``'m'``, ``'s'``, ``'x'``.) The letters set " -"or remove the corresponding flags: :const:`re.A` (ASCII-only matching), " -":const:`re.I` (ignore case), :const:`re.L` (locale dependent), :const:`re.M`" -" (multi-line), :const:`re.S` (dot matches all), :const:`re.U` (Unicode " -"matching), and :const:`re.X` (verbose), for the part of the expression. (The" -" flags are described in :ref:`contents-of-module-re`.)" +"``'s'``, ``'u'``, ``'x'``, optionally followed by ``'-'`` followed by one or " +"more letters from the ``'i'``, ``'m'``, ``'s'``, ``'x'``.) The letters set " +"or remove the corresponding flags: :const:`re.A` (ASCII-only matching), :" +"const:`re.I` (ignore case), :const:`re.L` (locale dependent), :const:`re.M` " +"(multi-line), :const:`re.S` (dot matches all), :const:`re.U` (Unicode " +"matching), and :const:`re.X` (verbose), for the part of the expression. (The " +"flags are described in :ref:`contents-of-module-re`.)" msgstr "" #: ../../library/re.rst:318 msgid "" -"The letters ``'a'``, ``'L'`` and ``'u'`` are mutually exclusive when used as" -" inline flags, so they can't be combined or follow ``'-'``. Instead, when " +"The letters ``'a'``, ``'L'`` and ``'u'`` are mutually exclusive when used as " +"inline flags, so they can't be combined or follow ``'-'``. Instead, when " "one of them appears in an inline group, it overrides the matching mode in " "the enclosing group. In Unicode patterns ``(?a:...)`` switches to ASCII-" "only matching, and ``(?u:...)`` switches to Unicode matching (default). In " -"byte pattern ``(?L:...)`` switches to locale depending matching, and " -"``(?a:...)`` switches to ASCII-only matching (default). This override is " -"only in effect for the narrow inline group, and the original matching mode " -"is restored outside of the group." +"byte pattern ``(?L:...)`` switches to locale depending matching, and ``(?" +"a:...)`` switches to ASCII-only matching (default). This override is only in " +"effect for the narrow inline group, and the original matching mode is " +"restored outside of the group." msgstr "" #: ../../library/re.rst:330 @@ -473,7 +475,7 @@ msgstr "" #: ../../library/re.rst:358 msgid "``(?P...)``" -msgstr "" +msgstr "``(?P...)``" #: ../../library/re.rst:336 msgid "" @@ -486,9 +488,9 @@ msgstr "" #: ../../library/re.rst:342 msgid "" -"Named groups can be referenced in three contexts. If the pattern is " -"``(?P['\"]).*?(?P=quote)`` (i.e. matching a string quoted with either" -" single or double quotes):" +"Named groups can be referenced in three contexts. If the pattern is ``(?" +"P['\"]).*?(?P=quote)`` (i.e. matching a string quoted with either " +"single or double quotes):" msgstr "" #: ../../library/re.rst:347 @@ -509,7 +511,7 @@ msgstr "" #: ../../library/re.rst:350 ../../library/re.rst:357 msgid "``\\1``" -msgstr "" +msgstr "``\\1``" #: ../../library/re.rst:352 msgid "when processing match object *m*" @@ -517,7 +519,7 @@ msgstr "" #: ../../library/re.rst:352 msgid "``m.group('quote')``" -msgstr "" +msgstr "``m.group('quote')``" #: ../../library/re.rst:353 msgid "``m.end('quote')`` (etc.)" @@ -560,8 +562,8 @@ msgstr "``(?=...)``" #: ../../library/re.rst:374 msgid "" "Matches if ``...`` matches next, but doesn't consume any of the string. " -"This is called a :dfn:`lookahead assertion`. For example, ``Isaac " -"(?=Asimov)`` will match ``'Isaac '`` only if it's followed by ``'Asimov'``." +"This is called a :dfn:`lookahead assertion`. For example, ``Isaac (?" +"=Asimov)`` will match ``'Isaac '`` only if it's followed by ``'Asimov'``." msgstr "" #: ../../library/re.rst:383 @@ -577,7 +579,7 @@ msgstr "" #: ../../library/re.rst:410 msgid "``(?<=...)``" -msgstr "" +msgstr "``(?<=...)``" #: ../../library/re.rst:388 msgid "" @@ -585,12 +587,12 @@ msgid "" "``...`` that ends at the current position. This is called a :dfn:`positive " "lookbehind assertion`. ``(?<=abc)def`` will find a match in ``'abcdef'``, " "since the lookbehind will back up 3 characters and check if the contained " -"pattern matches. The contained pattern must only match strings of some fixed" -" length, meaning that ``abc`` or ``a|b`` are allowed, but ``a*`` and " -"``a{3,4}`` are not. Note that patterns which start with positive lookbehind" -" assertions will not match at the beginning of the string being searched; " -"you will most likely want to use the :func:`search` function rather than the" -" :func:`match` function:" +"pattern matches. The contained pattern must only match strings of some fixed " +"length, meaning that ``abc`` or ``a|b`` are allowed, but ``a*`` and ``a{3,4}" +"`` are not. Note that patterns which start with positive lookbehind " +"assertions will not match at the beginning of the string being searched; you " +"will most likely want to use the :func:`search` function rather than the :" +"func:`match` function:" msgstr "" #: ../../library/re.rst:403 @@ -603,15 +605,15 @@ msgstr "" #: ../../library/re.rst:419 msgid "``(?|$)`` is a poor email matching pattern, " -"which will match with ``''`` as well as ``'user@host.com'``, " -"but not with ``''``." +"optional and can be omitted. For example, ``(<)?(\\w+@\\w+(?:\\.\\w+)+)(?" +"(1)>|$)`` is a poor email matching pattern, which will match with " +"``''`` as well as ``'user@host.com'``, but not with " +"``''``." msgstr "" #: ../../library/re.rst:430 msgid "" "The special sequences consist of ``'\\'`` and a character from the list " "below. If the ordinary character is not an ASCII digit or an ASCII letter, " -"then the resulting RE will match the second character. For example, ``\\$``" -" matches the character ``'$'``." +"then the resulting RE will match the second character. For example, ``\\$`` " +"matches the character ``'$'``." msgstr "" #: ../../library/re.rst:445 msgid "``\\number``" -msgstr "" +msgstr "``\\number``" #: ../../library/re.rst:438 msgid "" "Matches the contents of the group of the same number. Groups are numbered " "starting from 1. For example, ``(.+) \\1`` matches ``'the the'`` or ``'55 " "55'``, but not ``'thethe'`` (note the space after the group). This special " -"sequence can only be used to match one of the first 99 groups. If the first" -" digit of *number* is 0, or *number* is 3 octal digits long, it will not be " +"sequence can only be used to match one of the first 99 groups. If the first " +"digit of *number* is 0, or *number* is 3 octal digits long, it will not be " "interpreted as a group match, but as the character with octal value " "*number*. Inside the ``'['`` and ``']'`` of a character class, all numeric " "escapes are treated as characters." @@ -666,20 +668,20 @@ msgstr "``\\b``" #: ../../library/re.rst:455 msgid "" -"Matches the empty string, but only at the beginning or end of a word. A word" -" is defined as a sequence of word characters. Note that formally, ``\\b`` " -"is defined as the boundary between a ``\\w`` and a ``\\W`` character (or " -"vice versa), or between ``\\w`` and the beginning/end of the string. This " -"means that ``r'\\bfoo\\b'`` matches ``'foo'``, ``'foo.'``, ``'(foo)'``, " -"``'bar foo baz'`` but not ``'foobar'`` or ``'foo3'``." +"Matches the empty string, but only at the beginning or end of a word. A word " +"is defined as a sequence of word characters. Note that formally, ``\\b`` is " +"defined as the boundary between a ``\\w`` and a ``\\W`` character (or vice " +"versa), or between ``\\w`` and the beginning/end of the string. This means " +"that ``r'\\bfoo\\b'`` matches ``'foo'``, ``'foo.'``, ``'(foo)'``, ``'bar foo " +"baz'`` but not ``'foobar'`` or ``'foo3'``." msgstr "" #: ../../library/re.rst:462 msgid "" "By default Unicode alphanumerics are the ones used in Unicode patterns, but " "this can be changed by using the :const:`ASCII` flag. Word boundaries are " -"determined by the current locale if the :const:`LOCALE` flag is used. Inside" -" a character range, ``\\b`` represents the backspace character, for " +"determined by the current locale if the :const:`LOCALE` flag is used. Inside " +"a character range, ``\\b`` represents the backspace character, for " "compatibility with Python's string literals." msgstr "" @@ -693,9 +695,9 @@ msgid "" "of a word. This means that ``r'py\\B'`` matches ``'python'``, ``'py3'``, " "``'py2'``, but not ``'py'``, ``'py.'``, or ``'py!'``. ``\\B`` is just the " "opposite of ``\\b``, so word characters in Unicode patterns are Unicode " -"alphanumerics or the underscore, although this can be changed by using the " -":const:`ASCII` flag. Word boundaries are determined by the current locale " -"if the :const:`LOCALE` flag is used." +"alphanumerics or the underscore, although this can be changed by using the :" +"const:`ASCII` flag. Word boundaries are determined by the current locale if " +"the :const:`LOCALE` flag is used." msgstr "" #: ../../library/re.rst:489 @@ -739,16 +741,16 @@ msgstr "``\\s``" #: ../../library/re.rst:502 msgid "" -"Matches Unicode whitespace characters (which includes ``[ " -"\\t\\n\\r\\f\\v]``, and also many other characters, for example the non-" -"breaking spaces mandated by typography rules in many languages). If the " -":const:`ASCII` flag is used, only ``[ \\t\\n\\r\\f\\v]`` is matched." +"Matches Unicode whitespace characters (which includes ``[ \\t\\n\\r\\f" +"\\v]``, and also many other characters, for example the non-breaking spaces " +"mandated by typography rules in many languages). If the :const:`ASCII` flag " +"is used, only ``[ \\t\\n\\r\\f\\v]`` is matched." msgstr "" #: ../../library/re.rst:509 msgid "" -"Matches characters considered whitespace in the ASCII character set; this is" -" equivalent to ``[ \\t\\n\\r\\f\\v]``." +"Matches characters considered whitespace in the ASCII character set; this is " +"equivalent to ``[ \\t\\n\\r\\f\\v]``." msgstr "" #: ../../library/re.rst:517 @@ -787,8 +789,8 @@ msgstr "``\\W``" #: ../../library/re.rst:537 msgid "" -"Matches any character which is not a word character. This is the opposite of" -" ``\\w``. If the :const:`ASCII` flag is used this becomes the equivalent of " +"Matches any character which is not a word character. This is the opposite of " +"``\\w``. If the :const:`ASCII` flag is used this becomes the equivalent of " "``[^a-zA-Z0-9_]``. If the :const:`LOCALE` flag is used, matches characters " "which are neither alphanumeric in the current locale nor the underscore." msgstr "" @@ -822,8 +824,8 @@ msgstr "" #: ../../library/re.rst:576 msgid "" -"Octal escapes are included in a limited form. If the first digit is a 0, or" -" if there are three octal digits, it is considered an octal escape. " +"Octal escapes are included in a limited form. If the first digit is a 0, or " +"if there are three octal digits, it is considered an octal escape. " "Otherwise, it is a group reference. As for string literals, octal escapes " "are always at most three digits in length." msgstr "" @@ -858,16 +860,15 @@ msgstr "" #: ../../library/re.rst:605 msgid "" "Compile a regular expression pattern into a :ref:`regular expression object " -"`, which can be used for matching using its " -":func:`~Pattern.match`, :func:`~Pattern.search` and other methods, described" -" below." +"`, which can be used for matching using its :func:`~Pattern." +"match`, :func:`~Pattern.search` and other methods, described below." msgstr "" #: ../../library/re.rst:610 msgid "" "The expression's behaviour can be modified by specifying a *flags* value. " -"Values can be any of the following variables, combined using bitwise OR (the" -" ``|`` operator)." +"Values can be any of the following variables, combined using bitwise OR (the " +"``|`` operator)." msgstr "" #: ../../library/re.rst:614 @@ -887,32 +888,32 @@ msgstr "" #: ../../library/re.rst:629 msgid "" -"The compiled versions of the most recent patterns passed to " -":func:`re.compile` and the module-level matching functions are cached, so " -"programs that use only a few regular expressions at a time needn't worry " -"about compiling regular expressions." +"The compiled versions of the most recent patterns passed to :func:`re." +"compile` and the module-level matching functions are cached, so programs " +"that use only a few regular expressions at a time needn't worry about " +"compiling regular expressions." msgstr "" #: ../../library/re.rst:638 msgid "" -"Make ``\\w``, ``\\W``, ``\\b``, ``\\B``, ``\\d``, ``\\D``, ``\\s`` and " -"``\\S`` perform ASCII-only matching instead of full Unicode matching. This " -"is only meaningful for Unicode patterns, and is ignored for byte patterns. " +"Make ``\\w``, ``\\W``, ``\\b``, ``\\B``, ``\\d``, ``\\D``, ``\\s`` and ``" +"\\S`` perform ASCII-only matching instead of full Unicode matching. This is " +"only meaningful for Unicode patterns, and is ignored for byte patterns. " "Corresponds to the inline flag ``(?a)``." msgstr "" #: ../../library/re.rst:643 msgid "" "Note that for backward compatibility, the :const:`re.U` flag still exists " -"(as well as its synonym :const:`re.UNICODE` and its embedded counterpart " -"``(?u)``), but these are redundant in Python 3 since matches are Unicode by " +"(as well as its synonym :const:`re.UNICODE` and its embedded counterpart ``(?" +"u)``), but these are redundant in Python 3 since matches are Unicode by " "default for strings (and Unicode matching isn't allowed for bytes)." msgstr "" #: ../../library/re.rst:652 msgid "" -"Display debug information about compiled expression. No corresponding inline" -" flag." +"Display debug information about compiled expression. No corresponding inline " +"flag." msgstr "" #: ../../library/re.rst:659 @@ -930,9 +931,9 @@ msgid "" "Note that when the Unicode patterns ``[a-z]`` or ``[A-Z]`` are used in " "combination with the :const:`IGNORECASE` flag, they will match the 52 ASCII " "letters and 4 additional non-ASCII letters: 'İ' (U+0130, Latin capital " -"letter I with dot above), 'ı' (U+0131, Latin small letter dotless i), 'ſ' " -"(U+017F, Latin small letter long s) and 'K' (U+212A, Kelvin sign). If the " -":const:`ASCII` flag is used, only letters 'a' to 'z' and 'A' to 'Z' are " +"letter I with dot above), 'ı' (U+0131, Latin small letter dotless i), 'ſ' (U" +"+017F, Latin small letter long s) and 'K' (U+212A, Kelvin sign). If the :" +"const:`ASCII` flag is used, only letters 'a' to 'z' and 'A' to 'Z' are " "matched." msgstr "" @@ -942,8 +943,8 @@ msgid "" "dependent on the current locale. This flag can be used only with bytes " "patterns. The use of this flag is discouraged as the locale mechanism is " "very unreliable, it only handles one \"culture\" at a time, and it only " -"works with 8-bit locales. Unicode matching is already enabled by default in" -" Python 3 for Unicode (str) patterns, and it is able to handle different " +"works with 8-bit locales. Unicode matching is already enabled by default in " +"Python 3 for Unicode (str) patterns, and it is able to handle different " "locales/languages. Corresponds to the inline flag ``(?L)``." msgstr "" @@ -964,11 +965,11 @@ msgstr "" msgid "" "When specified, the pattern character ``'^'`` matches at the beginning of " "the string and at the beginning of each line (immediately following each " -"newline); and the pattern character ``'$'`` matches at the end of the string" -" and at the end of each line (immediately preceding each newline). By " +"newline); and the pattern character ``'$'`` matches at the end of the string " +"and at the end of each line (immediately preceding each newline). By " "default, ``'^'`` matches only at the beginning of the string, and ``'$'`` " -"only at the end of the string and immediately before the newline (if any) at" -" the end of the string. Corresponds to the inline flag ``(?m)``." +"only at the end of the string and immediately before the newline (if any) at " +"the end of the string. Corresponds to the inline flag ``(?m)``." msgstr "" #: ../../library/re.rst:711 @@ -1003,8 +1004,8 @@ msgstr "" #: ../../library/re.rst:743 msgid "" "Scan through *string* looking for the first location where the regular " -"expression *pattern* produces a match, and return a corresponding " -":ref:`match object `. Return ``None`` if no position in the " +"expression *pattern* produces a match, and return a corresponding :ref:" +"`match object `. Return ``None`` if no position in the " "string matches the pattern; note that this is different from finding a zero-" "length match at some point in the string." msgstr "" @@ -1055,8 +1056,8 @@ msgstr "" #: ../../library/re.rst:798 msgid "" -"That way, separator components are always found at the same relative indices" -" within the result list." +"That way, separator components are always found at the same relative indices " +"within the result list." msgstr "" #: ../../library/re.rst:801 @@ -1077,10 +1078,10 @@ msgstr "" #: ../../library/re.rst:820 msgid "" "Return all non-overlapping matches of *pattern* in *string*, as a list of " -"strings. The *string* is scanned left-to-right, and matches are returned in" -" the order found. If one or more groups are present in the pattern, return " -"a list of groups; this will be a list of tuples if the pattern has more than" -" one group. Empty matches are included in the result." +"strings. The *string* is scanned left-to-right, and matches are returned in " +"the order found. If one or more groups are present in the pattern, return a " +"list of groups; this will be a list of tuples if the pattern has more than " +"one group. Empty matches are included in the result." msgstr "" #: ../../library/re.rst:826 ../../library/re.rst:837 @@ -1099,13 +1100,13 @@ msgstr "" msgid "" "Return the string obtained by replacing the leftmost non-overlapping " "occurrences of *pattern* in *string* by the replacement *repl*. If the " -"pattern isn't found, *string* is returned unchanged. *repl* can be a string" -" or a function; if it is a string, any backslash escapes in it are " -"processed. That is, ``\\n`` is converted to a single newline character, " -"``\\r`` is converted to a carriage return, and so forth. Unknown escapes of" -" ASCII letters are reserved for future use and treated as errors. Other " -"unknown escapes such as ``\\&`` are left alone. Backreferences, such as " -"``\\6``, are replaced with the substring matched by group 6 in the pattern. " +"pattern isn't found, *string* is returned unchanged. *repl* can be a string " +"or a function; if it is a string, any backslash escapes in it are " +"processed. That is, ``\\n`` is converted to a single newline character, ``" +"\\r`` is converted to a carriage return, and so forth. Unknown escapes of " +"ASCII letters are reserved for future use and treated as errors. Other " +"unknown escapes such as ``\\&`` are left alone. Backreferences, such as ``" +"\\6``, are replaced with the substring matched by group 6 in the pattern. " "For example::" msgstr "" @@ -1123,21 +1124,21 @@ msgstr "" #: ../../library/re.rst:873 msgid "" "The optional argument *count* is the maximum number of pattern occurrences " -"to be replaced; *count* must be a non-negative integer. If omitted or zero," -" all occurrences will be replaced. Empty matches for the pattern are " -"replaced only when not adjacent to a previous empty match, so ``sub('x*', " -"'-', 'abxd')`` returns ``'-a-b--d-'``." +"to be replaced; *count* must be a non-negative integer. If omitted or zero, " +"all occurrences will be replaced. Empty matches for the pattern are replaced " +"only when not adjacent to a previous empty match, so ``sub('x*', '-', " +"'abxd')`` returns ``'-a-b--d-'``." msgstr "" #: ../../library/re.rst:881 msgid "" "In string-type *repl* arguments, in addition to the character escapes and " -"backreferences described above, ``\\g`` will use the substring matched" -" by the group named ``name``, as defined by the ``(?P...)`` syntax. " -"``\\g`` uses the corresponding group number; ``\\g<2>`` is therefore" -" equivalent to ``\\2``, but isn't ambiguous in a replacement such as " -"``\\g<2>0``. ``\\20`` would be interpreted as a reference to group 20, not " -"a reference to group 2 followed by the literal character ``'0'``. The " +"backreferences described above, ``\\g`` will use the substring matched " +"by the group named ``name``, as defined by the ``(?P...)`` syntax. ``" +"\\g`` uses the corresponding group number; ``\\g<2>`` is therefore " +"equivalent to ``\\2``, but isn't ambiguous in a replacement such as ``" +"\\g<2>0``. ``\\20`` would be interpreted as a reference to group 20, not a " +"reference to group 2 followed by the literal character ``'0'``. The " "backreference ``\\g<0>`` substitutes in the entire substring matched by the " "RE." msgstr "" @@ -1154,8 +1155,8 @@ msgstr "" #: ../../library/re.rst:901 msgid "" -"Unknown escapes in *repl* consisting of ``'\\'`` and an ASCII letter now are" -" errors." +"Unknown escapes in *repl* consisting of ``'\\'`` and an ASCII letter now are " +"errors." msgstr "" #: ../../library/re.rst:905 @@ -1166,8 +1167,8 @@ msgstr "" #: ../../library/re.rst:912 msgid "" -"Perform the same operation as :func:`sub`, but return a tuple ``(new_string," -" number_of_subs_made)``." +"Perform the same operation as :func:`sub`, but return a tuple ``(new_string, " +"number_of_subs_made)``." msgstr "" #: ../../library/re.rst:924 @@ -1179,8 +1180,8 @@ msgstr "" #: ../../library/re.rst:939 msgid "" -"This function must not be used for the replacement string in :func:`sub` and" -" :func:`subn`, only backslashes should be escaped. For example::" +"This function must not be used for the replacement string in :func:`sub` " +"and :func:`subn`, only backslashes should be escaped. For example::" msgstr "" #: ../../library/re.rst:947 @@ -1191,8 +1192,8 @@ msgstr "" msgid "" "Only characters that can have special meaning in a regular expression are " "escaped. As a result, ``'!'``, ``'\"'``, ``'%'``, ``\"'\"``, ``','``, " -"``'/'``, ``':'``, ``';'``, ``'<'``, ``'='``, ``'>'``, ``'@'``, and ``\"`\"``" -" are no longer escaped." +"``'/'``, ``':'``, ``';'``, ``'<'``, ``'='``, ``'>'``, ``'@'``, and ``\"`\"`` " +"are no longer escaped." msgstr "" #: ../../library/re.rst:959 @@ -1203,9 +1204,9 @@ msgstr "" msgid "" "Exception raised when a string passed to one of the functions here is not a " "valid regular expression (for example, it might contain unmatched " -"parentheses) or when some other error occurs during compilation or matching." -" It is never an error if a string contains no match for a pattern. The " -"error instance has the following additional attributes:" +"parentheses) or when some other error occurs during compilation or " +"matching. It is never an error if a string contains no match for a " +"pattern. The error instance has the following additional attributes:" msgstr "" #: ../../library/re.rst:972 @@ -1254,8 +1255,8 @@ msgstr "" #: ../../library/re.rst:1009 msgid "" "The optional second parameter *pos* gives an index in the string where the " -"search is to start; it defaults to ``0``. This is not completely equivalent" -" to slicing the string; the ``'^'`` pattern character matches at the real " +"search is to start; it defaults to ``0``. This is not completely equivalent " +"to slicing the string; the ``'^'`` pattern character matches at the real " "beginning of the string and at positions just after a newline, but not " "necessarily at the index where the search is to start." msgstr "" @@ -1265,29 +1266,29 @@ msgid "" "The optional parameter *endpos* limits how far the string will be searched; " "it will be as if the string is *endpos* characters long, so only the " "characters from *pos* to ``endpos - 1`` will be searched for a match. If " -"*endpos* is less than *pos*, no match will be found; otherwise, if *rx* is a" -" compiled regular expression object, ``rx.search(string, 0, 50)`` is " +"*endpos* is less than *pos*, no match will be found; otherwise, if *rx* is a " +"compiled regular expression object, ``rx.search(string, 0, 50)`` is " "equivalent to ``rx.search(string[:50], 0)``. ::" msgstr "" #: ../../library/re.rst:1030 msgid "" -"If zero or more characters at the *beginning* of *string* match this regular" -" expression, return a corresponding :ref:`match object `. " +"If zero or more characters at the *beginning* of *string* match this regular " +"expression, return a corresponding :ref:`match object `. " "Return ``None`` if the string does not match the pattern; note that this is " "different from a zero-length match." msgstr "" #: ../../library/re.rst:1035 ../../library/re.rst:1053 msgid "" -"The optional *pos* and *endpos* parameters have the same meaning as for the " -":meth:`~Pattern.search` method. ::" +"The optional *pos* and *endpos* parameters have the same meaning as for the :" +"meth:`~Pattern.search` method. ::" msgstr "" #: ../../library/re.rst:1043 msgid "" -"If you want to locate a match anywhere in *string*, use " -":meth:`~Pattern.search` instead (see also :ref:`search-vs-match`)." +"If you want to locate a match anywhere in *string*, use :meth:`~Pattern." +"search` instead (see also :ref:`search-vs-match`)." msgstr "" #: ../../library/re.rst:1049 @@ -1326,9 +1327,9 @@ msgstr "" #: ../../library/re.rst:1096 msgid "" -"The regex matching flags. This is a combination of the flags given to " -":func:`.compile`, any ``(?...)`` inline flags in the pattern, and implicit " -"flags such as :data:`UNICODE` if the pattern is a Unicode string." +"The regex matching flags. This is a combination of the flags given to :func:" +"`.compile`, any ``(?...)`` inline flags in the pattern, and implicit flags " +"such as :data:`UNICODE` if the pattern is a Unicode string." msgstr "" #: ../../library/re.rst:1103 @@ -1358,10 +1359,9 @@ msgstr "" #: ../../library/re.rst:1128 msgid "" -"Match objects always have a boolean value of ``True``. Since " -":meth:`~Pattern.match` and :meth:`~Pattern.search` return ``None`` when " -"there is no match, you can test whether there was a match with a simple " -"``if`` statement::" +"Match objects always have a boolean value of ``True``. Since :meth:`~Pattern." +"match` and :meth:`~Pattern.search` return ``None`` when there is no match, " +"you can test whether there was a match with a simple ``if`` statement::" msgstr "" #: ../../library/re.rst:1137 @@ -1373,8 +1373,8 @@ msgid "" "Return the string obtained by doing backslash substitution on the template " "string *template*, as done by the :meth:`~Pattern.sub` method. Escapes such " "as ``\\n`` are converted to the appropriate characters, and numeric " -"backreferences (``\\1``, ``\\2``) and named backreferences (``\\g<1>``, " -"``\\g``) are replaced by the contents of the corresponding group." +"backreferences (``\\1``, ``\\2``) and named backreferences (``\\g<1>``, ``" +"\\g``) are replaced by the contents of the corresponding group." msgstr "" #: ../../library/re.rst:1154 @@ -1387,8 +1387,8 @@ msgid "" "inclusive range [1..99], it is the string matching the corresponding " "parenthesized group. If a group number is negative or larger than the " "number of groups defined in the pattern, an :exc:`IndexError` exception is " -"raised. If a group is contained in a part of the pattern that did not match," -" the corresponding result is ``None``. If a group is contained in a part of " +"raised. If a group is contained in a part of the pattern that did not match, " +"the corresponding result is ``None``. If a group is contained in a part of " "the pattern that matched multiple times, the last match is returned. ::" msgstr "" @@ -1396,8 +1396,8 @@ msgstr "" msgid "" "If the regular expression uses the ``(?P...)`` syntax, the *groupN* " "arguments may also be strings identifying groups by their group name. If a " -"string argument is not used as a group name in the pattern, an " -":exc:`IndexError` exception is raised." +"string argument is not used as a group name in the pattern, an :exc:" +"`IndexError` exception is raised." msgstr "" #: ../../library/re.rst:1181 @@ -1438,15 +1438,15 @@ msgstr "" #: ../../library/re.rst:1244 msgid "" -"Return a dictionary containing all the *named* subgroups of the match, keyed" -" by the subgroup name. The *default* argument is used for groups that did " +"Return a dictionary containing all the *named* subgroups of the match, keyed " +"by the subgroup name. The *default* argument is used for groups that did " "not participate in the match; it defaults to ``None``. For example::" msgstr "" #: ../../library/re.rst:1256 msgid "" -"Return the indices of the start and end of the substring matched by *group*;" -" *group* defaults to zero (meaning the whole matched substring). Return " +"Return the indices of the start and end of the substring matched by *group*; " +"*group* defaults to zero (meaning the whole matched substring). Return " "``-1`` if *group* exists but did not contribute to the match. For a match " "object *m*, and a group *g* that did contribute to the match, the substring " "matched by group *g* (equivalent to ``m.group(g)``) is ::" @@ -1455,9 +1455,9 @@ msgstr "" #: ../../library/re.rst:1264 msgid "" "Note that ``m.start(group)`` will equal ``m.end(group)`` if *group* matched " -"a null string. For example, after ``m = re.search('b(c?)', 'cba')``, " -"``m.start(0)`` is 1, ``m.end(0)`` is 2, ``m.start(1)`` and ``m.end(1)`` are " -"both 2, and ``m.start(2)`` raises an :exc:`IndexError` exception." +"a null string. For example, after ``m = re.search('b(c?)', 'cba')``, ``m." +"start(0)`` is 1, ``m.end(0)`` is 2, ``m.start(1)`` and ``m.end(1)`` are both " +"2, and ``m.start(2)`` raises an :exc:`IndexError` exception." msgstr "" #: ../../library/re.rst:1269 @@ -1466,33 +1466,32 @@ msgstr "" #: ../../library/re.rst:1279 msgid "" -"For a match *m*, return the 2-tuple ``(m.start(group), m.end(group))``. Note" -" that if *group* did not contribute to the match, this is ``(-1, -1)``. " +"For a match *m*, return the 2-tuple ``(m.start(group), m.end(group))``. Note " +"that if *group* did not contribute to the match, this is ``(-1, -1)``. " "*group* defaults to zero, the entire match." msgstr "" #: ../../library/re.rst:1286 msgid "" -"The value of *pos* which was passed to the :meth:`~Pattern.search` or " -":meth:`~Pattern.match` method of a :ref:`regex object `. This " -"is the index into the string at which the RE engine started looking for a " -"match." +"The value of *pos* which was passed to the :meth:`~Pattern.search` or :meth:" +"`~Pattern.match` method of a :ref:`regex object `. This is the " +"index into the string at which the RE engine started looking for a match." msgstr "" #: ../../library/re.rst:1293 msgid "" -"The value of *endpos* which was passed to the :meth:`~Pattern.search` or " -":meth:`~Pattern.match` method of a :ref:`regex object `. This " -"is the index into the string beyond which the RE engine will not go." +"The value of *endpos* which was passed to the :meth:`~Pattern.search` or :" +"meth:`~Pattern.match` method of a :ref:`regex object `. This is " +"the index into the string beyond which the RE engine will not go." msgstr "" #: ../../library/re.rst:1300 msgid "" "The integer index of the last matched capturing group, or ``None`` if no " -"group was matched at all. For example, the expressions ``(a)b``, " -"``((a)(b))``, and ``((ab))`` will have ``lastindex == 1`` if applied to the " -"string ``'ab'``, while the expression ``(a)(b)`` will have ``lastindex == " -"2``, if applied to the same string." +"group was matched at all. For example, the expressions ``(a)b``, ``((a)" +"(b))``, and ``((ab))`` will have ``lastindex == 1`` if applied to the string " +"``'ab'``, while the expression ``(a)(b)`` will have ``lastindex == 2``, if " +"applied to the same string." msgstr "" #: ../../library/re.rst:1309 @@ -1503,20 +1502,18 @@ msgstr "" #: ../../library/re.rst:1315 msgid "" -"The :ref:`regular expression object ` whose " -":meth:`~Pattern.match` or :meth:`~Pattern.search` method produced this match" -" instance." +"The :ref:`regular expression object ` whose :meth:`~Pattern." +"match` or :meth:`~Pattern.search` method produced this match instance." msgstr "" #: ../../library/re.rst:1321 -msgid "" -"The string passed to :meth:`~Pattern.match` or :meth:`~Pattern.search`." +msgid "The string passed to :meth:`~Pattern.match` or :meth:`~Pattern.search`." msgstr "" #: ../../library/re.rst:1324 msgid "" -"Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Match objects" -" are considered atomic." +"Added support of :func:`copy.copy` and :func:`copy.deepcopy`. Match objects " +"are considered atomic." msgstr "" #: ../../library/re.rst:1332 @@ -1535,8 +1532,8 @@ msgstr "" #: ../../library/re.rst:1348 msgid "" -"Suppose you are writing a poker program where a player's hand is represented" -" as a 5-character string with each character representing a card, \"a\" for " +"Suppose you are writing a poker program where a player's hand is represented " +"as a 5-character string with each character representing a card, \"a\" for " "ace, \"k\" for king, \"q\" for queen, \"j\" for jack, \"t\" for 10, and " "\"2\" through \"9\" representing the card with that value." msgstr "" @@ -1548,14 +1545,14 @@ msgstr "" #: ../../library/re.rst:1363 msgid "" "That last hand, ``\"727ak\"``, contained a pair, or two of the same valued " -"cards. To match this with a regular expression, one could use backreferences" -" as such::" +"cards. To match this with a regular expression, one could use backreferences " +"as such::" msgstr "" #: ../../library/re.rst:1373 msgid "" -"To find out what card the pair consists of, one could use the " -":meth:`~Match.group` method of the match object in the following manner:" +"To find out what card the pair consists of, one could use the :meth:`~Match." +"group` method of the match object in the following manner:" msgstr "" #: ../../library/re.rst:1393 @@ -1565,8 +1562,8 @@ msgstr "" #: ../../library/re.rst:1397 msgid "" "Python does not currently have an equivalent to :c:func:`scanf`. Regular " -"expressions are generally more powerful, though also more verbose, than " -":c:func:`scanf` format strings. The table below offers some more-or-less " +"expressions are generally more powerful, though also more verbose, than :c:" +"func:`scanf` format strings. The table below offers some more-or-less " "equivalent mappings between :c:func:`scanf` format tokens and regular " "expressions." msgstr "" @@ -1581,23 +1578,23 @@ msgstr "" #: ../../library/re.rst:1406 msgid "``%c``" -msgstr "" +msgstr "``%c``" #: ../../library/re.rst:1408 msgid "``%5c``" -msgstr "" +msgstr "``%5c``" #: ../../library/re.rst:1408 msgid "``.{5}``" -msgstr "" +msgstr "``.{5}``" #: ../../library/re.rst:1410 msgid "``%d``" -msgstr "" +msgstr "``%d``" #: ../../library/re.rst:1410 msgid "``[-+]?\\d+``" -msgstr "" +msgstr "``[-+]?\\d+``" #: ../../library/re.rst:1412 msgid "``%e``, ``%E``, ``%f``, ``%g``" @@ -1609,7 +1606,7 @@ msgstr "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``" #: ../../library/re.rst:1414 msgid "``%i``" -msgstr "" +msgstr "``%i``" #: ../../library/re.rst:1414 msgid "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" @@ -1617,27 +1614,27 @@ msgstr "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``" #: ../../library/re.rst:1416 msgid "``%o``" -msgstr "" +msgstr "``%o``" #: ../../library/re.rst:1416 msgid "``[-+]?[0-7]+``" -msgstr "" +msgstr "``[-+]?[0-7]+``" #: ../../library/re.rst:1418 msgid "``%s``" -msgstr "" +msgstr "``%s``" #: ../../library/re.rst:1418 msgid "``\\S+``" -msgstr "" +msgstr "``\\S+``" #: ../../library/re.rst:1420 msgid "``%u``" -msgstr "" +msgstr "``%u``" #: ../../library/re.rst:1420 msgid "``\\d+``" -msgstr "" +msgstr "``\\d+``" #: ../../library/re.rst:1422 msgid "``%x``, ``%X``" @@ -1645,7 +1642,7 @@ msgstr "" #: ../../library/re.rst:1422 msgid "``[-+]?(0[xX])?[\\dA-Fa-f]+``" -msgstr "" +msgstr "``[-+]?(0[xX])?[\\dA-Fa-f]+``" #: ../../library/re.rst:1425 msgid "To extract the filename and numbers from a string like ::" @@ -1681,8 +1678,8 @@ msgstr "" msgid "" "Note however that in :const:`MULTILINE` mode :func:`match` only matches at " "the beginning of the string, whereas using :func:`search` with a regular " -"expression beginning with ``'^'`` will match at the beginning of each line. " -"::" +"expression beginning with ``'^'`` will match at the beginning of each " +"line. ::" msgstr "" #: ../../library/re.rst:1474 @@ -1705,8 +1702,8 @@ msgstr "" #: ../../library/re.rst:1492 msgid "" -"The entries are separated by one or more newlines. Now we convert the string" -" into a list with each nonempty line having its own entry:" +"The entries are separated by one or more newlines. Now we convert the string " +"into a list with each nonempty line having its own entry:" msgstr "" #: ../../library/re.rst:1505 @@ -1766,8 +1763,8 @@ msgstr "" #: ../../library/re.rst:1583 msgid "" -"Raw string notation (``r\"text\"``) keeps regular expressions sane. Without" -" it, every backslash (``'\\'``) in a regular expression would have to be " +"Raw string notation (``r\"text\"``) keeps regular expressions sane. Without " +"it, every backslash (``'\\'``) in a regular expression would have to be " "prefixed with another one to escape it. For example, the two following " "lines of code are functionally identical::" msgstr "" @@ -1794,8 +1791,8 @@ msgstr "" #: ../../library/re.rst:1611 msgid "" "The text categories are specified with regular expressions. The technique " -"is to combine those into a single master regular expression and to loop over" -" successive matches::" +"is to combine those into a single master regular expression and to loop over " +"successive matches::" msgstr "" #: ../../library/re.rst:1663 diff --git a/library/readline.po b/library/readline.po index eb909e307..62ca06eb9 100644 --- a/library/readline.po +++ b/library/readline.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-29 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,28 +29,28 @@ msgstr "" #: ../../library/readline.rst:12 msgid "" "The :mod:`readline` module defines a number of functions to facilitate " -"completion and reading/writing of history files from the Python interpreter." -" This module can be used directly, or via the :mod:`rlcompleter` module, " +"completion and reading/writing of history files from the Python interpreter. " +"This module can be used directly, or via the :mod:`rlcompleter` module, " "which supports completion of Python identifiers at the interactive prompt. " "Settings made using this module affect the behaviour of both the " -"interpreter's interactive prompt and the prompts offered by the built-in " -":func:`input` function." +"interpreter's interactive prompt and the prompts offered by the built-in :" +"func:`input` function." msgstr "" #: ../../library/readline.rst:20 msgid "" -"Readline keybindings may be configured via an initialization file, typically" -" ``.inputrc`` in your home directory. See `Readline Init File " -"`_ in the GNU" -" Readline manual for information about the format and allowable constructs " -"of that file, and the capabilities of the Readline library in general." +"Readline keybindings may be configured via an initialization file, typically " +"``.inputrc`` in your home directory. See `Readline Init File `_ in the GNU Readline " +"manual for information about the format and allowable constructs of that " +"file, and the capabilities of the Readline library in general." msgstr "" #: ../../library/readline.rst:29 msgid "" "The underlying Readline library API may be implemented by the ``libedit`` " -"library instead of GNU readline. On macOS the :mod:`readline` module detects" -" which library is being used at run time." +"library instead of GNU readline. On macOS the :mod:`readline` module detects " +"which library is being used at run time." msgstr "" #: ../../library/readline.rst:34 @@ -63,8 +64,8 @@ msgstr "" #: ../../library/readline.rst:39 msgid "" "If you use *editline*/``libedit`` readline emulation on macOS, the " -"initialization file located in your home directory is named ``.editrc``. For" -" example, the following content in ``~/.editrc`` will turn ON *vi* " +"initialization file located in your home directory is named ``.editrc``. For " +"example, the following content in ``~/.editrc`` will turn ON *vi* " "keybindings and TAB completion::" msgstr "" @@ -73,14 +74,13 @@ msgid "Init file" msgstr "" #: ../../library/readline.rst:51 -msgid "" -"The following functions relate to the init file and user configuration:" +msgid "The following functions relate to the init file and user configuration:" msgstr "" #: ../../library/readline.rst:56 msgid "" -"Execute the init line provided in the *string* argument. This calls " -":c:func:`rl_parse_and_bind` in the underlying library." +"Execute the init line provided in the *string* argument. This calls :c:func:" +"`rl_parse_and_bind` in the underlying library." msgstr "" #: ../../library/readline.rst:62 @@ -106,15 +106,14 @@ msgstr "" #: ../../library/readline.rst:80 msgid "" -"Insert text into the line buffer at the cursor position. This calls " -":c:func:`rl_insert_text` in the underlying library, but ignores the return " -"value." +"Insert text into the line buffer at the cursor position. This calls :c:func:" +"`rl_insert_text` in the underlying library, but ignores the return value." msgstr "" #: ../../library/readline.rst:87 msgid "" -"Change what's displayed on the screen to reflect the current contents of the" -" line buffer. This calls :c:func:`rl_redisplay` in the underlying library." +"Change what's displayed on the screen to reflect the current contents of the " +"line buffer. This calls :c:func:`rl_redisplay` in the underlying library." msgstr "" #: ../../library/readline.rst:92 @@ -127,32 +126,32 @@ msgstr "" #: ../../library/readline.rst:99 msgid "" -"Load a readline history file, and append it to the history list. The default" -" filename is :file:`~/.history`. This calls :c:func:`read_history` in the " +"Load a readline history file, and append it to the history list. The default " +"filename is :file:`~/.history`. This calls :c:func:`read_history` in the " "underlying library." msgstr "" #: ../../library/readline.rst:106 msgid "" "Save the history list to a readline history file, overwriting any existing " -"file. The default filename is :file:`~/.history`. This calls " -":c:func:`write_history` in the underlying library." +"file. The default filename is :file:`~/.history`. This calls :c:func:" +"`write_history` in the underlying library." msgstr "" #: ../../library/readline.rst:113 msgid "" "Append the last *nelements* items of history to a file. The default " -"filename is :file:`~/.history`. The file must already exist. This calls " -":c:func:`append_history` in the underlying library. This function only " -"exists if Python was compiled for a version of the library that supports it." +"filename is :file:`~/.history`. The file must already exist. This calls :c:" +"func:`append_history` in the underlying library. This function only exists " +"if Python was compiled for a version of the library that supports it." msgstr "" #: ../../library/readline.rst:125 msgid "" -"Set or return the desired number of lines to save in the history file. The " -":func:`write_history_file` function uses this value to truncate the history " -"file, by calling :c:func:`history_truncate_file` in the underlying library." -" Negative values imply unlimited history file size." +"Set or return the desired number of lines to save in the history file. The :" +"func:`write_history_file` function uses this value to truncate the history " +"file, by calling :c:func:`history_truncate_file` in the underlying library. " +"Negative values imply unlimited history file size." msgstr "" #: ../../library/readline.rst:133 @@ -185,8 +184,8 @@ msgstr "" #: ../../library/readline.rst:160 msgid "" -"Remove history item specified by its position from the history. The position" -" is zero-based. This calls :c:func:`remove_history` in the underlying " +"Remove history item specified by its position from the history. The position " +"is zero-based. This calls :c:func:`remove_history` in the underlying " "library." msgstr "" @@ -216,8 +215,8 @@ msgstr "" #: ../../library/readline.rst:198 msgid "" -"Set or remove the function invoked by the :c:data:`rl_startup_hook` callback" -" of the underlying library. If *function* is specified, it will be used as " +"Set or remove the function invoked by the :c:data:`rl_startup_hook` callback " +"of the underlying library. If *function* is specified, it will be used as " "the new hook function; if omitted or ``None``, any function already " "installed is removed. The hook is called with no arguments just before " "readline prints the first prompt." @@ -244,27 +243,26 @@ msgid "" "function. This is typically operated by the Tab key, and can suggest and " "automatically complete a word being typed. By default, Readline is set up " "to be used by :mod:`rlcompleter` to complete Python identifiers for the " -"interactive interpreter. If the :mod:`readline` module is to be used with a" -" custom completer, a different set of word delimiters should be set." +"interactive interpreter. If the :mod:`readline` module is to be used with a " +"custom completer, a different set of word delimiters should be set." msgstr "" #: ../../library/readline.rst:229 msgid "" "Set or remove the completer function. If *function* is specified, it will " -"be used as the new completer function; if omitted or ``None``, any completer" -" function already installed is removed. The completer function is called as" -" ``function(text, state)``, for *state* in ``0``, ``1``, ``2``, ..., until " -"it returns a non-string value. It should return the next possible " -"completion starting with *text*." +"be used as the new completer function; if omitted or ``None``, any completer " +"function already installed is removed. The completer function is called as " +"``function(text, state)``, for *state* in ``0``, ``1``, ``2``, ..., until it " +"returns a non-string value. It should return the next possible completion " +"starting with *text*." msgstr "" #: ../../library/readline.rst:236 msgid "" "The installed completer function is invoked by the *entry_func* callback " "passed to :c:func:`rl_completion_matches` in the underlying library. The " -"*text* string comes from the first parameter to the " -":c:data:`rl_attempted_completion_function` callback of the underlying " -"library." +"*text* string comes from the first parameter to the :c:data:" +"`rl_attempted_completion_function` callback of the underlying library." msgstr "" #: ../../library/readline.rst:245 @@ -275,23 +273,21 @@ msgstr "" #: ../../library/readline.rst:250 msgid "" -"Get the type of completion being attempted. This returns the " -":c:data:`rl_completion_type` variable in the underlying library as an " -"integer." +"Get the type of completion being attempted. This returns the :c:data:" +"`rl_completion_type` variable in the underlying library as an integer." msgstr "" #: ../../library/readline.rst:258 msgid "" -"Get the beginning or ending index of the completion scope. These indexes are" -" the *start* and *end* arguments passed to the " -":c:data:`rl_attempted_completion_function` callback of the underlying " -"library." +"Get the beginning or ending index of the completion scope. These indexes are " +"the *start* and *end* arguments passed to the :c:data:" +"`rl_attempted_completion_function` callback of the underlying library." msgstr "" #: ../../library/readline.rst:267 msgid "" -"Set or get the word delimiters for completion. These determine the start of" -" the word to be considered for completion (the completion scope). These " +"Set or get the word delimiters for completion. These determine the start of " +"the word to be considered for completion (the completion scope). These " "functions access the :c:data:`rl_completer_word_break_characters` variable " "in the underlying library." msgstr "" @@ -322,8 +318,8 @@ msgstr "" #: ../../library/readline.rst:310 msgid "" -"This code is actually automatically run when Python is run in " -":ref:`interactive mode ` (see :ref:`rlcompleter-config`)." +"This code is actually automatically run when Python is run in :ref:" +"`interactive mode ` (see :ref:`rlcompleter-config`)." msgstr "" #: ../../library/readline.rst:313 diff --git a/library/reprlib.po b/library/reprlib.po index 27fa7e394..fbb8f641d 100644 --- a/library/reprlib.po +++ b/library/reprlib.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,24 +52,23 @@ msgstr "" #: ../../library/reprlib.rst:29 msgid "" -"This is an instance of :class:`Repr` which is used to provide the " -":func:`.repr` function described below. Changing the attributes of this " -"object will affect the size limits used by :func:`.repr` and the Python " -"debugger." +"This is an instance of :class:`Repr` which is used to provide the :func:`." +"repr` function described below. Changing the attributes of this object will " +"affect the size limits used by :func:`.repr` and the Python debugger." msgstr "" #: ../../library/reprlib.rst:37 msgid "" "This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string " -"similar to that returned by the built-in function of the same name, but with" -" limits on most sizes." +"similar to that returned by the built-in function of the same name, but with " +"limits on most sizes." msgstr "" #: ../../library/reprlib.rst:41 msgid "" -"In addition to size-limiting tools, the module also provides a decorator for" -" detecting recursive calls to :meth:`__repr__` and substituting a " -"placeholder string instead." +"In addition to size-limiting tools, the module also provides a decorator for " +"detecting recursive calls to :meth:`__repr__` and substituting a placeholder " +"string instead." msgstr "" #: ../../library/reprlib.rst:50 @@ -97,8 +98,8 @@ msgstr "" #: ../../library/reprlib.rst:92 msgid "" "Limits on the number of entries represented for the named object type. The " -"default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6``" -" for the others." +"default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` " +"for the others." msgstr "" #: ../../library/reprlib.rst:99 @@ -109,41 +110,41 @@ msgstr "" #: ../../library/reprlib.rst:105 msgid "" -"Limit on the number of characters in the representation of the string. Note" -" that the \"normal\" representation of the string is used as the character " +"Limit on the number of characters in the representation of the string. Note " +"that the \"normal\" representation of the string is used as the character " "source: if escape sequences are needed in the representation, these may be " "mangled when the representation is shortened. The default is ``30``." msgstr "" #: ../../library/reprlib.rst:113 msgid "" -"This limit is used to control the size of object types for which no specific" -" formatting method is available on the :class:`Repr` object. It is applied " -"in a similar manner as :attr:`maxstring`. The default is ``20``." +"This limit is used to control the size of object types for which no specific " +"formatting method is available on the :class:`Repr` object. It is applied in " +"a similar manner as :attr:`maxstring`. The default is ``20``." msgstr "" #: ../../library/reprlib.rst:120 msgid "" -"The equivalent to the built-in :func:`repr` that uses the formatting imposed" -" by the instance." +"The equivalent to the built-in :func:`repr` that uses the formatting imposed " +"by the instance." msgstr "" #: ../../library/reprlib.rst:126 msgid "" -"Recursive implementation used by :meth:`.repr`. This uses the type of *obj*" -" to determine which formatting method to call, passing it *obj* and *level*." -" The type-specific methods should call :meth:`repr1` to perform recursive " +"Recursive implementation used by :meth:`.repr`. This uses the type of *obj* " +"to determine which formatting method to call, passing it *obj* and *level*. " +"The type-specific methods should call :meth:`repr1` to perform recursive " "formatting, with ``level - 1`` for the value of *level* in the recursive " "call." msgstr "" #: ../../library/reprlib.rst:135 msgid "" -"Formatting methods for specific types are implemented as methods with a name" -" based on the type name. In the method name, **TYPE** is replaced by " -"``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is " -"handled by :meth:`repr1`. Type-specific methods which need to recursively " -"format a value should call ``self.repr1(subobj, level - 1)``." +"Formatting methods for specific types are implemented as methods with a name " +"based on the type name. In the method name, **TYPE** is replaced by ``'_'." +"join(type(obj).__name__.split())``. Dispatch to these methods is handled by :" +"meth:`repr1`. Type-specific methods which need to recursively format a value " +"should call ``self.repr1(subobj, level - 1)``." msgstr "" #: ../../library/reprlib.rst:145 @@ -152,8 +153,8 @@ msgstr "" #: ../../library/reprlib.rst:147 msgid "" -"The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of " -":class:`Repr` to add support for additional built-in object types or to " +"The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of :" +"class:`Repr` to add support for additional built-in object types or to " "modify the handling of types already supported. This example shows how " "special support for file objects could be added::" msgstr "" diff --git a/library/resource.po b/library/resource.po index e1c4eb9e0..0cacb56db 100644 --- a/library/resource.po +++ b/library/resource.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -82,8 +84,8 @@ msgstr "" #: ../../library/resource.rst:55 msgid "" "Returns a tuple ``(soft, hard)`` with the current soft and hard limits of " -"*resource*. Raises :exc:`ValueError` if an invalid resource is specified, or" -" :exc:`error` if the underlying system call fails unexpectedly." +"*resource*. Raises :exc:`ValueError` if an invalid resource is specified, " +"or :exc:`error` if the underlying system call fails unexpectedly." msgstr "" #: ../../library/resource.rst:62 @@ -99,11 +101,10 @@ msgid "" "Raises :exc:`ValueError` if an invalid resource is specified, if the new " "soft limit exceeds the hard limit, or if a process tries to raise its hard " "limit. Specifying a limit of :data:`~resource.RLIM_INFINITY` when the hard " -"or system limit for that resource is not unlimited will result in a " -":exc:`ValueError`. A process with the effective UID of super-user can " -"request any valid limit value, including unlimited, but :exc:`ValueError` " -"will still be raised if the requested limit exceeds the system imposed " -"limit." +"or system limit for that resource is not unlimited will result in a :exc:" +"`ValueError`. A process with the effective UID of super-user can request " +"any valid limit value, including unlimited, but :exc:`ValueError` will still " +"be raised if the requested limit exceeds the system imposed limit." msgstr "" #: ../../library/resource.rst:76 @@ -117,41 +118,41 @@ msgid "" "Combines :func:`setrlimit` and :func:`getrlimit` in one function and " "supports to get and set the resources limits of an arbitrary process. If " "*pid* is 0, then the call applies to the current process. *resource* and " -"*limits* have the same meaning as in :func:`setrlimit`, except that *limits*" -" is optional." +"*limits* have the same meaning as in :func:`setrlimit`, except that *limits* " +"is optional." msgstr "" #: ../../library/resource.rst:87 msgid "" "When *limits* is not given the function returns the *resource* limit of the " -"process *pid*. When *limits* is given the *resource* limit of the process is" -" set and the former resource limit is returned." +"process *pid*. When *limits* is given the *resource* limit of the process is " +"set and the former resource limit is returned." msgstr "" #: ../../library/resource.rst:91 msgid "" -"Raises :exc:`ProcessLookupError` when *pid* can't be found and " -":exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for " -"the process." +"Raises :exc:`ProcessLookupError` when *pid* can't be found and :exc:" +"`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for the " +"process." msgstr "" #: ../../library/resource.rst:96 msgid "" -":ref:`Availability `: Linux 2.6.36 or later with glibc 2.13 or" -" later." +":ref:`Availability `: Linux 2.6.36 or later with glibc 2.13 or " +"later." msgstr "" #: ../../library/resource.rst:100 msgid "" -"These symbols define resources whose consumption can be controlled using the" -" :func:`setrlimit` and :func:`getrlimit` functions described below. The " +"These symbols define resources whose consumption can be controlled using " +"the :func:`setrlimit` and :func:`getrlimit` functions described below. The " "values of these symbols are exactly the constants used by C programs." msgstr "" #: ../../library/resource.rst:104 msgid "" -"The Unix man page for :manpage:`getrlimit(2)` lists the available resources." -" Note that not all systems use the same symbol or same value to denote the " +"The Unix man page for :manpage:`getrlimit(2)` lists the available resources. " +"Note that not all systems use the same symbol or same value to denote the " "same resource. This module does not attempt to mask platform differences " "--- symbols not defined for a platform will not be available from this " "module on that platform." @@ -166,8 +167,8 @@ msgstr "" #: ../../library/resource.rst:120 msgid "" -"The maximum amount of processor time (in seconds) that a process can use. If" -" this limit is exceeded, a :const:`SIGXCPU` signal is sent to the process. " +"The maximum amount of processor time (in seconds) that a process can use. If " +"this limit is exceeded, a :const:`SIGXCPU` signal is sent to the process. " "(See the :mod:`signal` module documentation for information about how to " "catch this signal and do something useful, e.g. flush open files to disk.)" msgstr "" @@ -182,8 +183,8 @@ msgstr "" #: ../../library/resource.rst:138 msgid "" -"The maximum size (in bytes) of the call stack for the current process. This" -" only affects the stack of the main thread in a multi-threaded process." +"The maximum size (in bytes) of the call stack for the current process. This " +"only affects the stack of the main thread in a multi-threaded process." msgstr "" #: ../../library/resource.rst:144 @@ -226,8 +227,7 @@ msgid ":ref:`Availability `: Linux 2.6.8 or later." msgstr "" #: ../../library/resource.rst:188 -msgid "" -"The ceiling for the process's nice level (calculated as 20 - rlim_cur)." +msgid "The ceiling for the process's nice level (calculated as 20 - rlim_cur)." msgstr "" #: ../../library/resource.rst:191 ../../library/resource.rst:200 @@ -288,8 +288,8 @@ msgstr "" msgid "" "This function returns an object that describes the resources consumed by " "either the current process or its children, as specified by the *who* " -"parameter. The *who* parameter should be specified using one of the " -":const:`RUSAGE_\\*` constants described below." +"parameter. The *who* parameter should be specified using one of the :const:" +"`RUSAGE_\\*` constants described below." msgstr "" #: ../../library/resource.rst:264 @@ -312,9 +312,9 @@ msgid "" "The fields :attr:`ru_utime` and :attr:`ru_stime` of the return value are " "floating point values representing the amount of time spent executing in " "user mode and the amount of time spent executing in system mode, " -"respectively. The remaining values are integers. Consult the " -":manpage:`getrusage(2)` man page for detailed information about these " -"values. A brief summary is presented here:" +"respectively. The remaining values are integers. Consult the :manpage:" +"`getrusage(2)` man page for detailed information about these values. A brief " +"summary is presented here:" msgstr "" #: ../../library/resource.rst:279 @@ -331,11 +331,11 @@ msgstr "" #: ../../library/resource.rst:281 msgid "``0``" -msgstr "" +msgstr "``0``" #: ../../library/resource.rst:281 msgid ":attr:`ru_utime`" -msgstr "" +msgstr ":attr:`ru_utime`" #: ../../library/resource.rst:281 msgid "time in user mode (float)" @@ -347,7 +347,7 @@ msgstr "``1``" #: ../../library/resource.rst:283 msgid ":attr:`ru_stime`" -msgstr "" +msgstr ":attr:`ru_stime`" #: ../../library/resource.rst:283 msgid "time in system mode (float)" @@ -359,7 +359,7 @@ msgstr "``2``" #: ../../library/resource.rst:285 msgid ":attr:`ru_maxrss`" -msgstr "" +msgstr ":attr:`ru_maxrss`" #: ../../library/resource.rst:285 msgid "maximum resident set size" @@ -371,7 +371,7 @@ msgstr "``3``" #: ../../library/resource.rst:287 msgid ":attr:`ru_ixrss`" -msgstr "" +msgstr ":attr:`ru_ixrss`" #: ../../library/resource.rst:287 msgid "shared memory size" @@ -383,7 +383,7 @@ msgstr "``4``" #: ../../library/resource.rst:289 msgid ":attr:`ru_idrss`" -msgstr "" +msgstr ":attr:`ru_idrss`" #: ../../library/resource.rst:289 msgid "unshared memory size" @@ -391,7 +391,7 @@ msgstr "" #: ../../library/resource.rst:291 msgid "``5``" -msgstr "" +msgstr "``5``" #: ../../library/resource.rst:291 msgid ":attr:`ru_isrss`" @@ -439,11 +439,11 @@ msgstr "" #: ../../library/resource.rst:299 msgid "``9``" -msgstr "" +msgstr "``9``" #: ../../library/resource.rst:299 msgid ":attr:`ru_inblock`" -msgstr "" +msgstr ":attr:`ru_inblock`" #: ../../library/resource.rst:299 msgid "block input operations" @@ -451,11 +451,11 @@ msgstr "" #: ../../library/resource.rst:301 msgid "``10``" -msgstr "" +msgstr "``10``" #: ../../library/resource.rst:301 msgid ":attr:`ru_oublock`" -msgstr "" +msgstr ":attr:`ru_oublock`" #: ../../library/resource.rst:301 msgid "block output operations" @@ -463,11 +463,11 @@ msgstr "" #: ../../library/resource.rst:303 msgid "``11``" -msgstr "" +msgstr "``11``" #: ../../library/resource.rst:303 msgid ":attr:`ru_msgsnd`" -msgstr "" +msgstr ":attr:`ru_msgsnd`" #: ../../library/resource.rst:303 msgid "messages sent" @@ -475,11 +475,11 @@ msgstr "" #: ../../library/resource.rst:305 msgid "``12``" -msgstr "" +msgstr "``12``" #: ../../library/resource.rst:305 msgid ":attr:`ru_msgrcv`" -msgstr "" +msgstr ":attr:`ru_msgrcv`" #: ../../library/resource.rst:305 msgid "messages received" @@ -487,11 +487,11 @@ msgstr "" #: ../../library/resource.rst:307 msgid "``13``" -msgstr "" +msgstr "``13``" #: ../../library/resource.rst:307 msgid ":attr:`ru_nsignals`" -msgstr "" +msgstr ":attr:`ru_nsignals`" #: ../../library/resource.rst:307 msgid "signals received" @@ -499,11 +499,11 @@ msgstr "" #: ../../library/resource.rst:309 msgid "``14``" -msgstr "" +msgstr "``14``" #: ../../library/resource.rst:309 msgid ":attr:`ru_nvcsw`" -msgstr "" +msgstr ":attr:`ru_nvcsw`" #: ../../library/resource.rst:309 msgid "voluntary context switches" @@ -511,11 +511,11 @@ msgstr "" #: ../../library/resource.rst:311 msgid "``15``" -msgstr "" +msgstr "``15``" #: ../../library/resource.rst:311 msgid ":attr:`ru_nivcsw`" -msgstr "" +msgstr ":attr:`ru_nivcsw`" #: ../../library/resource.rst:311 msgid "involuntary context switches" @@ -536,8 +536,8 @@ msgstr "" #: ../../library/resource.rst:323 msgid "" -"The following :const:`RUSAGE_\\*` symbols are passed to the " -":func:`getrusage` function to specify which processes information should be " +"The following :const:`RUSAGE_\\*` symbols are passed to the :func:" +"`getrusage` function to specify which processes information should be " "provided for." msgstr "" diff --git a/library/rlcompleter.po b/library/rlcompleter.po index b08b80c04..972c61c46 100644 --- a/library/rlcompleter.po +++ b/library/rlcompleter.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,16 +33,17 @@ msgstr "**Código Fonte:** :source:`Lib/rlcompleter.py`" #: ../../library/rlcompleter.rst:13 msgid "" -"The :mod:`rlcompleter` module defines a completion function suitable for the" -" :mod:`readline` module by completing valid Python identifiers and keywords." +"The :mod:`rlcompleter` module defines a completion function suitable for " +"the :mod:`readline` module by completing valid Python identifiers and " +"keywords." msgstr "" #: ../../library/rlcompleter.rst:16 msgid "" "When this module is imported on a Unix platform with the :mod:`readline` " "module available, an instance of the :class:`Completer` class is " -"automatically created and its :meth:`complete` method is set as the " -":mod:`readline` completer." +"automatically created and its :meth:`complete` method is set as the :mod:" +"`readline` completer." msgstr "" #: ../../library/rlcompleter.rst:20 @@ -50,10 +52,10 @@ msgstr "Exemplo::" #: ../../library/rlcompleter.rst:31 msgid "" -"The :mod:`rlcompleter` module is designed for use with Python's " -":ref:`interactive mode `. Unless Python is run with the " -":option:`-S` option, the module is automatically imported and configured " -"(see :ref:`rlcompleter-config`)." +"The :mod:`rlcompleter` module is designed for use with Python's :ref:" +"`interactive mode `. Unless Python is run with the :option:" +"`-S` option, the module is automatically imported and configured (see :ref:" +"`rlcompleter-config`)." msgstr "" #: ../../library/rlcompleter.rst:36 @@ -77,8 +79,8 @@ msgstr "" #: ../../library/rlcompleter.rst:52 msgid "" "If called for *text* that doesn't include a period character (``'.'``), it " -"will complete from names currently defined in :mod:`__main__`, " -":mod:`builtins` and keywords (as defined by the :mod:`keyword` module)." +"will complete from names currently defined in :mod:`__main__`, :mod:" +"`builtins` and keywords (as defined by the :mod:`keyword` module)." msgstr "" #: ../../library/rlcompleter.rst:56 diff --git a/library/runpy.po b/library/runpy.po index f22b504fe..08dd7beac 100644 --- a/library/runpy.po +++ b/library/runpy.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +25,7 @@ msgstr "" #: ../../library/runpy.rst:2 msgid ":mod:`runpy` --- Locating and executing Python modules" -msgstr "" +msgstr ":mod:`runpy` --- Localizando e executando módulos Python" #: ../../library/runpy.rst:9 msgid "**Source code:** :source:`Lib/runpy.py`" @@ -43,6 +45,9 @@ msgid "" "current process, and any side effects (such as cached imports of other " "modules) will remain in place after the functions have returned." msgstr "" +"Observe que este *não* é um módulo sandbox - todo o código é executado no " +"processo atual, e quaisquer efeitos colaterais (como importações em cache de " +"outros módulos) irão permanecer em vigor após o retorno da função." #: ../../library/runpy.rst:22 msgid "" @@ -54,7 +59,7 @@ msgstr "" #: ../../library/runpy.rst:27 msgid "The :mod:`runpy` module provides two functions:" -msgstr "" +msgstr "O módulo :mod:`runpy` fornece duas funções:" #: ../../library/runpy.rst:35 msgid "" @@ -68,8 +73,8 @@ msgstr "" msgid "" "The *mod_name* argument should be an absolute module name. If the module " "name refers to a package rather than a normal module, then that package is " -"imported and the ``__main__`` submodule within that package is then executed" -" and the resulting module globals dictionary returned." +"imported and the ``__main__`` submodule within that package is then executed " +"and the resulting module globals dictionary returned." msgstr "" #: ../../library/runpy.rst:46 @@ -80,6 +85,11 @@ msgid "" "below are defined in the supplied dictionary, those definitions are " "overridden by :func:`run_module`." msgstr "" +"O argumento opcional de dicionário *init_globals* pode ser usado para " +"preencher previamente o dicionário global do módulo antes do código ser " +"executado. O dicionário fornecido não será alterado. Se qualquer uma das " +"variáveis globais especiais abaixo for definida no dicionário fornecido, " +"estas definições serão substituídas por :func:`run_module`." #: ../../library/runpy.rst:52 ../../library/runpy.rst:121 msgid "" @@ -92,31 +102,31 @@ msgstr "" #: ../../library/runpy.rst:58 msgid "" -"``__name__`` is set to *run_name* if this optional argument is not " -":const:`None`, to ``mod_name + '.__main__'`` if the named module is a " -"package and to the *mod_name* argument otherwise." +"``__name__`` is set to *run_name* if this optional argument is not :const:" +"`None`, to ``mod_name + '.__main__'`` if the named module is a package and " +"to the *mod_name* argument otherwise." msgstr "" #: ../../library/runpy.rst:62 msgid "" "``__spec__`` will be set appropriately for the *actually* imported module " -"(that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + " -"'.__main__``, never *run_name*)." +"(that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '." +"__main__``, never *run_name*)." msgstr "" #: ../../library/runpy.rst:66 msgid "" -"``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` are " -":ref:`set as normal ` based on the module spec." +"``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` are :ref:" +"`set as normal ` based on the module spec." msgstr "" #: ../../library/runpy.rst:69 msgid "" -"If the argument *alter_sys* is supplied and evaluates to :const:`True`, then" -" ``sys.argv[0]`` is updated with the value of ``__file__`` and " -"``sys.modules[__name__]`` is updated with a temporary module object for the " -"module being executed. Both ``sys.argv[0]`` and ``sys.modules[__name__]`` " -"are restored to their original values before the function returns." +"If the argument *alter_sys* is supplied and evaluates to :const:`True`, then " +"``sys.argv[0]`` is updated with the value of ``__file__`` and ``sys." +"modules[__name__]`` is updated with a temporary module object for the module " +"being executed. Both ``sys.argv[0]`` and ``sys.modules[__name__]`` are " +"restored to their original values before the function returns." msgstr "" #: ../../library/runpy.rst:75 @@ -132,22 +142,25 @@ msgid "" "The :option:`-m` option offering equivalent functionality from the command " "line." msgstr "" +"A opção :option:`-m` oferece funcionalidade equivalente na linha de comando." #: ../../library/runpy.rst:84 msgid "" "Added ability to execute packages by looking for a ``__main__`` submodule." msgstr "" +"Adicionada capacidade de executar pacotes procurando por um sub-módulo " +"``__main__``." #: ../../library/runpy.rst:87 msgid "Added ``__cached__`` global variable (see :pep:`3147`)." -msgstr "" +msgstr "Adicionada a variável global ``__cached__`` (veja :pep:`3147`)." #: ../../library/runpy.rst:90 msgid "" "Updated to take advantage of the module spec feature added by :pep:`451`. " "This allows ``__cached__`` to be set correctly for modules run this way, as " -"well as ensuring the real module name is always accessible as " -"``__spec__.name``." +"well as ensuring the real module name is always accessible as ``__spec__." +"name``." msgstr "" #: ../../library/runpy.rst:101 @@ -161,12 +174,12 @@ msgstr "" #: ../../library/runpy.rst:107 msgid "" -"For a simple script, the specified code is simply executed in a fresh module" -" namespace. For a valid sys.path entry (typically a zipfile or directory), " -"the entry is first added to the beginning of ``sys.path``. The function then" -" looks for and executes a :mod:`__main__` module using the updated path. " -"Note that there is no special protection against invoking an existing " -":mod:`__main__` entry located elsewhere on ``sys.path`` if there is no such " +"For a simple script, the specified code is simply executed in a fresh module " +"namespace. For a valid sys.path entry (typically a zipfile or directory), " +"the entry is first added to the beginning of ``sys.path``. The function then " +"looks for and executes a :mod:`__main__` module using the updated path. Note " +"that there is no special protection against invoking an existing :mod:" +"`__main__` entry located elsewhere on ``sys.path`` if there is no such " "module at the specified location." msgstr "" @@ -181,14 +194,14 @@ msgstr "" #: ../../library/runpy.rst:127 msgid "" -"``__name__`` is set to *run_name* if this optional argument is not " -":const:`None` and to ``''`` otherwise." +"``__name__`` is set to *run_name* if this optional argument is not :const:" +"`None` and to ``''`` otherwise." msgstr "" #: ../../library/runpy.rst:130 msgid "" -"If the supplied path directly references a script file (whether as source or" -" as precompiled byte code), then ``__file__`` will be set to the supplied " +"If the supplied path directly references a script file (whether as source or " +"as precompiled byte code), then ``__file__`` will be set to the supplied " "path, and ``__spec__``, ``__cached__``, ``__loader__`` and ``__package__`` " "will all be set to :const:`None`." msgstr "" @@ -214,11 +227,11 @@ msgstr "" #: ../../library/runpy.rst:148 msgid "" -"Note that, unlike :func:`run_module`, the alterations made to :mod:`sys` are" -" not optional in this function as these adjustments are essential to " -"allowing the execution of sys.path entries. As the thread-safety limitations" -" still apply, use of this function in threaded code should be either " -"serialised with the import lock or delegated to a separate process." +"Note that, unlike :func:`run_module`, the alterations made to :mod:`sys` are " +"not optional in this function as these adjustments are essential to allowing " +"the execution of sys.path entries. As the thread-safety limitations still " +"apply, use of this function in threaded code should be either serialised " +"with the import lock or delegated to a separate process." msgstr "" #: ../../library/runpy.rst:155 @@ -237,11 +250,11 @@ msgstr "" #: ../../library/runpy.rst:169 msgid ":pep:`338` -- Executing modules as scripts" -msgstr "" +msgstr ":pep:`338` -- Executando módulos como scripts" #: ../../library/runpy.rst:169 ../../library/runpy.rst:172 msgid "PEP written and implemented by Nick Coghlan." -msgstr "" +msgstr "PEP escrita e implementada por Nick Coghlan." #: ../../library/runpy.rst:172 msgid ":pep:`366` -- Main module explicit relative imports" @@ -253,12 +266,12 @@ msgstr "" #: ../../library/runpy.rst:175 msgid "PEP written and implemented by Eric Snow" -msgstr "" +msgstr "PEP escrita e implementada por Eric Snow" #: ../../library/runpy.rst:177 msgid ":ref:`using-on-general` - CPython command line details" -msgstr "" +msgstr ":ref:`using-on-general` - Detalhes da linha de comando do CPython" #: ../../library/runpy.rst:179 msgid "The :func:`importlib.import_module` function" -msgstr "" +msgstr "A função :func:`importlib.import_module`" diff --git a/library/sched.po b/library/sched.po index c9a613443..48bd55d1c 100644 --- a/library/sched.po +++ b/library/sched.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-29 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,11 +42,11 @@ msgid "" "The :class:`scheduler` class defines a generic interface to scheduling " "events. It needs two functions to actually deal with the \"outside world\" " "--- *timefunc* should be callable without arguments, and return a number " -"(the \"time\", in any units whatsoever). The *delayfunc* function should be" -" callable with one argument, compatible with the output of *timefunc*, and " +"(the \"time\", in any units whatsoever). The *delayfunc* function should be " +"callable with one argument, compatible with the output of *timefunc*, and " "should delay that many time units. *delayfunc* will also be called with the " -"argument ``0`` after each event is run to allow other threads an opportunity" -" to run in multi-threaded applications." +"argument ``0`` after each event is run to allow other threads an opportunity " +"to run in multi-threaded applications." msgstr "" #: ../../library/sched.rst:29 @@ -66,8 +67,7 @@ msgid "Scheduler Objects" msgstr "" #: ../../library/sched.rst:63 -msgid "" -":class:`scheduler` instances have the following methods and attributes:" +msgid ":class:`scheduler` instances have the following methods and attributes:" msgstr "" #: ../../library/sched.rst:68 @@ -101,26 +101,26 @@ msgstr "" #: ../../library/sched.rst:89 msgid "" -"Schedule an event for *delay* more time units. Other than the relative time," -" the other arguments, the effect and the return value are the same as those " +"Schedule an event for *delay* more time units. Other than the relative time, " +"the other arguments, the effect and the return value are the same as those " "for :meth:`enterabs`." msgstr "" #: ../../library/sched.rst:101 msgid "" -"Remove the event from the queue. If *event* is not an event currently in the" -" queue, this method will raise a :exc:`ValueError`." +"Remove the event from the queue. If *event* is not an event currently in the " +"queue, this method will raise a :exc:`ValueError`." msgstr "" #: ../../library/sched.rst:107 -msgid "Return true if the event queue is empty." +msgid "Return ``True`` if the event queue is empty." msgstr "" #: ../../library/sched.rst:112 msgid "" -"Run all scheduled events. This method will wait (using the " -":func:`delayfunc` function passed to the constructor) for the next event, " -"then execute it and so on until there are no more scheduled events." +"Run all scheduled events. This method will wait (using the :func:" +"`delayfunc` function passed to the constructor) for the next event, then " +"execute it and so on until there are no more scheduled events." msgstr "" #: ../../library/sched.rst:116 diff --git a/library/secrets.po b/library/secrets.po index 16642e81f..49508caa0 100644 --- a/library/secrets.po +++ b/library/secrets.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Jayme Tosi Neto , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Jayme Tosi Neto , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,7 +48,7 @@ msgstr "" #: ../../library/secrets.rst:30 msgid ":pep:`506`" -msgstr "" +msgstr ":pep:`506`" #: ../../library/secrets.rst:34 msgid "Random numbers" @@ -90,23 +92,23 @@ msgstr "" #: ../../library/secrets.rst:67 msgid "" -"Return a random byte string containing *nbytes* number of bytes. If *nbytes*" -" is ``None`` or not supplied, a reasonable default is used." +"Return a random byte string containing *nbytes* number of bytes. If *nbytes* " +"is ``None`` or not supplied, a reasonable default is used." msgstr "" #: ../../library/secrets.rst:79 msgid "" -"Return a random text string, in hexadecimal. The string has *nbytes* random" -" bytes, each byte converted to two hex digits. If *nbytes* is ``None`` or " +"Return a random text string, in hexadecimal. The string has *nbytes* random " +"bytes, each byte converted to two hex digits. If *nbytes* is ``None`` or " "not supplied, a reasonable default is used." msgstr "" #: ../../library/secrets.rst:90 msgid "" -"Return a random URL-safe text string, containing *nbytes* random bytes. The" -" text is Base64 encoded, so on average each byte results in approximately " -"1.3 characters. If *nbytes* is ``None`` or not supplied, a reasonable " -"default is used." +"Return a random URL-safe text string, containing *nbytes* random bytes. The " +"text is Base64 encoded, so on average each byte results in approximately 1.3 " +"characters. If *nbytes* is ``None`` or not supplied, a reasonable default " +"is used." msgstr "" #: ../../library/secrets.rst:102 @@ -115,8 +117,8 @@ msgstr "" #: ../../library/secrets.rst:104 msgid "" -"To be secure against `brute-force attacks `_, tokens need to have sufficient randomness. " +"To be secure against `brute-force attacks `_, tokens need to have sufficient randomness. " "Unfortunately, what is considered sufficient will necessarily increase as " "computers get more powerful and able to make more guesses in a shorter " "period. As of 2015, it is believed that 32 bytes (256 bits) of randomness " @@ -151,9 +153,9 @@ msgstr "" #: ../../library/secrets.rst:131 msgid "" "Return ``True`` if strings *a* and *b* are equal, otherwise ``False``, in " -"such a way as to reduce the risk of `timing attacks `_. See :func:`hmac.compare_digest` for " -"additional details." +"such a way as to reduce the risk of `timing attacks `_. See :func:`hmac.compare_digest` for additional " +"details." msgstr "" #: ../../library/secrets.rst:138 @@ -172,10 +174,10 @@ msgstr "" #: ../../library/secrets.rst:154 msgid "" -"Applications should not `store passwords in a recoverable format " -"`_, whether plain text or " -"encrypted. They should be salted and hashed using a cryptographically-" -"strong one-way (irreversible) hash function." +"Applications should not `store passwords in a recoverable format `_, whether plain text or encrypted. " +"They should be salted and hashed using a cryptographically-strong one-way " +"(irreversible) hash function." msgstr "" #: ../../library/secrets.rst:160 diff --git a/library/select.po b/library/select.po index 643e5a93c..598f02120 100644 --- a/library/select.po +++ b/library/select.po @@ -1,21 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# Hemílio Lauro , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-12 11:54+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,11 +34,11 @@ msgstr "" msgid "" "This module provides access to the :c:func:`select` and :c:func:`poll` " "functions available in most operating systems, :c:func:`devpoll` available " -"on Solaris and derivatives, :c:func:`epoll` available on Linux 2.5+ and " -":c:func:`kqueue` available on most BSD. Note that on Windows, it only works " -"for sockets; on other operating systems, it also works for other file types " -"(in particular, on Unix, it works on pipes). It cannot be used on regular " -"files to determine whether a file has grown since it was last read." +"on Solaris and derivatives, :c:func:`epoll` available on Linux 2.5+ and :c:" +"func:`kqueue` available on most BSD. Note that on Windows, it only works for " +"sockets; on other operating systems, it also works for other file types (in " +"particular, on Unix, it works on pipes). It cannot be used on regular files " +"to determine whether a file has grown since it was last read." msgstr "" #: ../../library/select.rst:20 @@ -67,9 +71,9 @@ msgstr "" #: ../../library/select.rst:43 msgid "" ":c:func:`devpoll` objects are linked to the number of file descriptors " -"allowed at the time of instantiation. If your program reduces this value, " -":c:func:`devpoll` will fail. If your program increases this value, " -":c:func:`devpoll` may return an incomplete list of active file descriptors." +"allowed at the time of instantiation. If your program reduces this value, :c:" +"func:`devpoll` will fail. If your program increases this value, :c:func:" +"`devpoll` may return an incomplete list of active file descriptors." msgstr "" #: ../../library/select.rst:49 ../../library/select.rst:78 @@ -79,7 +83,7 @@ msgstr "" #: ../../library/select.rst:53 ../../library/select.rst:107 msgid "The new file descriptor is now non-inheritable." -msgstr "" +msgstr "O novo descritor de arquivo agora é não-hereditário." #: ../../library/select.rst:58 msgid "" @@ -110,9 +114,9 @@ msgstr "" #: ../../library/select.rst:74 msgid "" -"``epoll`` objects support the context management protocol: when used in a " -":keyword:`with` statement, the new file descriptor is automatically closed " -"at the end of the block." +"``epoll`` objects support the context management protocol: when used in a :" +"keyword:`with` statement, the new file descriptor is automatically closed at " +"the end of the block." msgstr "" #: ../../library/select.rst:80 @@ -121,14 +125,14 @@ msgstr "" #: ../../library/select.rst:83 msgid "" -"Support for the :keyword:`with` statement was added. The new file descriptor" -" is now non-inheritable." +"Support for the :keyword:`with` statement was added. The new file descriptor " +"is now non-inheritable." msgstr "" #: ../../library/select.rst:87 msgid "" -"The *flags* parameter. ``select.EPOLL_CLOEXEC`` is used by default now. Use" -" :func:`os.set_inheritable` to make the file descriptor inheritable." +"The *flags* parameter. ``select.EPOLL_CLOEXEC`` is used by default now. " +"Use :func:`os.set_inheritable` to make the file descriptor inheritable." msgstr "" #: ../../library/select.rst:94 @@ -141,14 +145,14 @@ msgstr "" #: ../../library/select.rst:102 msgid "" -"(Only supported on BSD.) Returns a kernel queue object; see section :ref" -":`kqueue-objects` below for the methods supported by kqueue objects." +"(Only supported on BSD.) Returns a kernel queue object; see section :ref:" +"`kqueue-objects` below for the methods supported by kqueue objects." msgstr "" #: ../../library/select.rst:113 msgid "" -"(Only supported on BSD.) Returns a kernel event object; see section :ref" -":`kevent-objects` below for the methods supported by kevent objects." +"(Only supported on BSD.) Returns a kernel event object; see section :ref:" +"`kevent-objects` below for the methods supported by kevent objects." msgstr "" #: ../../library/select.rst:119 @@ -169,8 +173,8 @@ msgstr "" #: ../../library/select.rst:126 msgid "" -"*xlist*: wait for an \"exceptional condition\" (see the manual page for what" -" your system considers such a condition)" +"*xlist*: wait for an \"exceptional condition\" (see the manual page for what " +"your system considers such a condition)" msgstr "" #: ../../library/select.rst:129 @@ -193,18 +197,18 @@ msgstr "" #: ../../library/select.rst:144 msgid "" "Among the acceptable object types in the sequences are Python :term:`file " -"objects ` (e.g. ``sys.stdin``, or objects returned by " -":func:`open` or :func:`os.popen`), socket objects returned by " -":func:`socket.socket`. You may also define a :dfn:`wrapper` class yourself," -" as long as it has an appropriate :meth:`~io.IOBase.fileno` method (that " -"really returns a file descriptor, not just a random integer)." +"objects ` (e.g. ``sys.stdin``, or objects returned by :func:" +"`open` or :func:`os.popen`), socket objects returned by :func:`socket." +"socket`. You may also define a :dfn:`wrapper` class yourself, as long as it " +"has an appropriate :meth:`~io.IOBase.fileno` method (that really returns a " +"file descriptor, not just a random integer)." msgstr "" #: ../../library/select.rst:155 msgid "" "File objects on Windows are not acceptable, but sockets are. On Windows, " -"the underlying :c:func:`select` function is provided by the WinSock library," -" and does not handle file descriptors that don't originate from WinSock." +"the underlying :c:func:`select` function is provided by the WinSock library, " +"and does not handle file descriptors that don't originate from WinSock." msgstr "" #: ../../library/select.rst:160 ../../library/select.rst:266 @@ -212,16 +216,16 @@ msgstr "" #: ../../library/select.rst:492 msgid "" "The function is now retried with a recomputed timeout when interrupted by a " -"signal, except if the signal handler raises an exception (see :pep:`475` for" -" the rationale), instead of raising :exc:`InterruptedError`." +"signal, except if the signal handler raises an exception (see :pep:`475` for " +"the rationale), instead of raising :exc:`InterruptedError`." msgstr "" #: ../../library/select.rst:169 msgid "" "The minimum number of bytes which can be written without blocking to a pipe " -"when the pipe has been reported as ready for writing by " -":func:`~select.select`, :func:`poll` or another interface in this module. " -"This doesn't apply to other kind of file-like objects such as sockets." +"when the pipe has been reported as ready for writing by :func:`~select." +"select`, :func:`poll` or another interface in this module. This doesn't " +"apply to other kind of file-like objects such as sockets." msgstr "" #: ../../library/select.rst:174 @@ -262,39 +266,39 @@ msgstr "" #: ../../library/select.rst:217 ../../library/select.rst:386 msgid "" -"Register a file descriptor with the polling object. Future calls to the " -":meth:`poll` method will then check whether the file descriptor has any " -"pending I/O events. *fd* can be either an integer, or an object with a " -":meth:`~io.IOBase.fileno` method that returns an integer. File objects " +"Register a file descriptor with the polling object. Future calls to the :" +"meth:`poll` method will then check whether the file descriptor has any " +"pending I/O events. *fd* can be either an integer, or an object with a :" +"meth:`~io.IOBase.fileno` method that returns an integer. File objects " "implement :meth:`!fileno`, so they can also be used as the argument." msgstr "" #: ../../library/select.rst:223 msgid "" -"*eventmask* is an optional bitmask describing the type of events you want to" -" check for. The constants are the same that with :c:func:`poll` object. The " -"default value is a combination of the constants :const:`POLLIN`, " -":const:`POLLPRI`, and :const:`POLLOUT`." +"*eventmask* is an optional bitmask describing the type of events you want to " +"check for. The constants are the same that with :c:func:`poll` object. The " +"default value is a combination of the constants :const:`POLLIN`, :const:" +"`POLLPRI`, and :const:`POLLOUT`." msgstr "" #: ../../library/select.rst:230 msgid "" -"Registering a file descriptor that's already registered is not an error, but" -" the result is undefined. The appropriate action is to unregister or modify " +"Registering a file descriptor that's already registered is not an error, but " +"the result is undefined. The appropriate action is to unregister or modify " "it first. This is an important difference compared with :c:func:`poll`." msgstr "" #: ../../library/select.rst:238 msgid "" -"This method does an :meth:`unregister` followed by a :meth:`register`. It is" -" (a bit) more efficient that doing the same explicitly." +"This method does an :meth:`unregister` followed by a :meth:`register`. It is " +"(a bit) more efficient that doing the same explicitly." msgstr "" #: ../../library/select.rst:245 ../../library/select.rst:430 msgid "" -"Remove a file descriptor being tracked by a polling object. Just like the " -":meth:`register` method, *fd* can be an integer or an object with a " -":meth:`~io.IOBase.fileno` method that returns an integer." +"Remove a file descriptor being tracked by a polling object. Just like the :" +"meth:`register` method, *fd* can be an integer or an object with a :meth:" +"`~io.IOBase.fileno` method that returns an integer." msgstr "" #: ../../library/select.rst:249 @@ -308,14 +312,13 @@ msgid "" "Polls the set of registered file descriptors, and returns a possibly-empty " "list containing ``(fd, event)`` 2-tuples for the descriptors that have " "events or errors to report. *fd* is the file descriptor, and *event* is a " -"bitmask with bits set for the reported events for that descriptor --- " -":const:`POLLIN` for waiting input, :const:`POLLOUT` to indicate that the " -"descriptor can be written to, and so forth. An empty list indicates that the" -" call timed out and no file descriptors had any events to report. If " -"*timeout* is given, it specifies the length of time in milliseconds which " -"the system will wait for events before returning. If *timeout* is omitted, " -"-1, or :const:`None`, the call will block until there is an event for this " -"poll object." +"bitmask with bits set for the reported events for that descriptor --- :const:" +"`POLLIN` for waiting input, :const:`POLLOUT` to indicate that the descriptor " +"can be written to, and so forth. An empty list indicates that the call timed " +"out and no file descriptors had any events to report. If *timeout* is given, " +"it specifies the length of time in milliseconds which the system will wait " +"for events before returning. If *timeout* is omitted, -1, or :const:`None`, " +"the call will block until there is an event for this poll object." msgstr "" #: ../../library/select.rst:276 @@ -346,15 +349,15 @@ msgstr "Significado" #: ../../library/select.rst:285 msgid ":const:`EPOLLIN`" -msgstr "" +msgstr ":const:`EPOLLIN`" #: ../../library/select.rst:285 msgid "Available for read" -msgstr "" +msgstr "Disponível para leitura" #: ../../library/select.rst:287 msgid ":const:`EPOLLOUT`" -msgstr "" +msgstr ":const:`EPOLLOUT`" #: ../../library/select.rst:287 msgid "Available for write" @@ -362,7 +365,7 @@ msgstr "" #: ../../library/select.rst:289 msgid ":const:`EPOLLPRI`" -msgstr "" +msgstr ":const:`EPOLLPRI`" #: ../../library/select.rst:289 msgid "Urgent data for read" @@ -370,7 +373,7 @@ msgstr "" #: ../../library/select.rst:291 msgid ":const:`EPOLLERR`" -msgstr "" +msgstr ":const:`EPOLLERR`" #: ../../library/select.rst:291 msgid "Error condition happened on the assoc. fd" @@ -378,7 +381,7 @@ msgstr "" #: ../../library/select.rst:293 msgid ":const:`EPOLLHUP`" -msgstr "" +msgstr ":const:`EPOLLHUP`" #: ../../library/select.rst:293 msgid "Hang up happened on the assoc. fd" @@ -386,7 +389,7 @@ msgstr "" #: ../../library/select.rst:295 msgid ":const:`EPOLLET`" -msgstr "" +msgstr ":const:`EPOLLET`" #: ../../library/select.rst:295 msgid "Set Edge Trigger behavior, the default is Level Trigger behavior" @@ -394,7 +397,7 @@ msgstr "" #: ../../library/select.rst:298 msgid ":const:`EPOLLONESHOT`" -msgstr "" +msgstr ":const:`EPOLLONESHOT`" #: ../../library/select.rst:298 msgid "" @@ -404,7 +407,7 @@ msgstr "" #: ../../library/select.rst:301 msgid ":const:`EPOLLEXCLUSIVE`" -msgstr "" +msgstr ":const:`EPOLLEXCLUSIVE`" #: ../../library/select.rst:301 msgid "" @@ -414,17 +417,16 @@ msgstr "" #: ../../library/select.rst:306 msgid ":const:`EPOLLRDHUP`" -msgstr "" +msgstr ":const:`EPOLLRDHUP`" #: ../../library/select.rst:306 msgid "" -"Stream socket peer closed connection or shut down writing half of " -"connection." +"Stream socket peer closed connection or shut down writing half of connection." msgstr "" #: ../../library/select.rst:309 msgid ":const:`EPOLLRDNORM`" -msgstr "" +msgstr ":const:`EPOLLRDNORM`" #: ../../library/select.rst:309 msgid "Equivalent to :const:`EPOLLIN`" @@ -432,7 +434,7 @@ msgstr "" #: ../../library/select.rst:311 msgid ":const:`EPOLLRDBAND`" -msgstr "" +msgstr ":const:`EPOLLRDBAND`" #: ../../library/select.rst:311 msgid "Priority data band can be read." @@ -518,15 +520,15 @@ msgstr "" #: ../../library/select.rst:392 msgid "" -"*eventmask* is an optional bitmask describing the type of events you want to" -" check for, and can be a combination of the constants :const:`POLLIN`, " -":const:`POLLPRI`, and :const:`POLLOUT`, described in the table below. If " -"not specified, the default value used will check for all 3 types of events." +"*eventmask* is an optional bitmask describing the type of events you want to " +"check for, and can be a combination of the constants :const:`POLLIN`, :const:" +"`POLLPRI`, and :const:`POLLOUT`, described in the table below. If not " +"specified, the default value used will check for all 3 types of events." msgstr "" #: ../../library/select.rst:400 msgid ":const:`POLLIN`" -msgstr "" +msgstr ":const:`POLLIN`" #: ../../library/select.rst:400 msgid "There is data to read" @@ -534,7 +536,7 @@ msgstr "" #: ../../library/select.rst:402 msgid ":const:`POLLPRI`" -msgstr "" +msgstr ":const:`POLLPRI`" #: ../../library/select.rst:402 msgid "There is urgent data to read" @@ -542,7 +544,7 @@ msgstr "" #: ../../library/select.rst:404 msgid ":const:`POLLOUT`" -msgstr "" +msgstr ":const:`POLLOUT`" #: ../../library/select.rst:404 msgid "Ready for output: writing will not block" @@ -550,7 +552,7 @@ msgstr "" #: ../../library/select.rst:406 msgid ":const:`POLLERR`" -msgstr "" +msgstr ":const:`POLLERR`" #: ../../library/select.rst:406 msgid "Error condition of some sort" @@ -558,7 +560,7 @@ msgstr "" #: ../../library/select.rst:408 msgid ":const:`POLLHUP`" -msgstr "" +msgstr ":const:`POLLHUP`" #: ../../library/select.rst:408 msgid "Hung up" @@ -566,17 +568,16 @@ msgstr "" #: ../../library/select.rst:410 msgid ":const:`POLLRDHUP`" -msgstr "" +msgstr ":const:`POLLRDHUP`" #: ../../library/select.rst:410 msgid "" -"Stream socket peer closed connection, or shut down writing half of " -"connection" +"Stream socket peer closed connection, or shut down writing half of connection" msgstr "" #: ../../library/select.rst:413 msgid ":const:`POLLNVAL`" -msgstr "" +msgstr ":const:`POLLNVAL`" #: ../../library/select.rst:413 msgid "Invalid request: descriptor not open" @@ -584,22 +585,22 @@ msgstr "" #: ../../library/select.rst:416 msgid "" -"Registering a file descriptor that's already registered is not an error, and" -" has the same effect as registering the descriptor exactly once." +"Registering a file descriptor that's already registered is not an error, and " +"has the same effect as registering the descriptor exactly once." msgstr "" #: ../../library/select.rst:422 msgid "" "Modifies an already registered fd. This has the same effect as " "``register(fd, eventmask)``. Attempting to modify a file descriptor that " -"was never registered causes an :exc:`OSError` exception with errno " -":const:`ENOENT` to be raised." +"was never registered causes an :exc:`OSError` exception with errno :const:" +"`ENOENT` to be raised." msgstr "" #: ../../library/select.rst:434 msgid "" -"Attempting to remove a file descriptor that was never registered causes a " -":exc:`KeyError` exception to be raised." +"Attempting to remove a file descriptor that was never registered causes a :" +"exc:`KeyError` exception to be raised." msgstr "" #: ../../library/select.rst:440 @@ -607,14 +608,13 @@ msgid "" "Polls the set of registered file descriptors, and returns a possibly-empty " "list containing ``(fd, event)`` 2-tuples for the descriptors that have " "events or errors to report. *fd* is the file descriptor, and *event* is a " -"bitmask with bits set for the reported events for that descriptor --- " -":const:`POLLIN` for waiting input, :const:`POLLOUT` to indicate that the " -"descriptor can be written to, and so forth. An empty list indicates that the" -" call timed out and no file descriptors had any events to report. If " -"*timeout* is given, it specifies the length of time in milliseconds which " -"the system will wait for events before returning. If *timeout* is omitted, " -"negative, or :const:`None`, the call will block until there is an event for " -"this poll object." +"bitmask with bits set for the reported events for that descriptor --- :const:" +"`POLLIN` for waiting input, :const:`POLLOUT` to indicate that the descriptor " +"can be written to, and so forth. An empty list indicates that the call timed " +"out and no file descriptors had any events to report. If *timeout* is given, " +"it specifies the length of time in milliseconds which the system will wait " +"for events before returning. If *timeout* is omitted, negative, or :const:" +"`None`, the call will block until there is an event for this poll object." msgstr "" #: ../../library/select.rst:461 @@ -662,8 +662,8 @@ msgstr "" #: ../../library/select.rst:508 msgid "" "Value used to identify the event. The interpretation depends on the filter " -"but it's usually the file descriptor. In the constructor ident can either be" -" an int or an object with a :meth:`~io.IOBase.fileno` method. kevent stores " +"but it's usually the file descriptor. In the constructor ident can either be " +"an int or an object with a :meth:`~io.IOBase.fileno` method. kevent stores " "the integer internally." msgstr "" @@ -673,16 +673,15 @@ msgstr "" #: ../../library/select.rst:520 msgid ":const:`KQ_FILTER_READ`" -msgstr "" +msgstr ":const:`KQ_FILTER_READ`" #: ../../library/select.rst:520 -msgid "" -"Takes a descriptor and returns whenever there is data available to read" +msgid "Takes a descriptor and returns whenever there is data available to read" msgstr "" #: ../../library/select.rst:523 msgid ":const:`KQ_FILTER_WRITE`" -msgstr "" +msgstr ":const:`KQ_FILTER_WRITE`" #: ../../library/select.rst:523 msgid "" @@ -691,7 +690,7 @@ msgstr "" #: ../../library/select.rst:526 msgid ":const:`KQ_FILTER_AIO`" -msgstr "" +msgstr ":const:`KQ_FILTER_AIO`" #: ../../library/select.rst:526 msgid "AIO requests" @@ -699,7 +698,7 @@ msgstr "" #: ../../library/select.rst:528 msgid ":const:`KQ_FILTER_VNODE`" -msgstr "" +msgstr ":const:`KQ_FILTER_VNODE`" #: ../../library/select.rst:528 msgid "" @@ -708,7 +707,7 @@ msgstr "" #: ../../library/select.rst:531 msgid ":const:`KQ_FILTER_PROC`" -msgstr "" +msgstr ":const:`KQ_FILTER_PROC`" #: ../../library/select.rst:531 msgid "Watch for events on a process id" @@ -716,7 +715,7 @@ msgstr "" #: ../../library/select.rst:533 msgid ":const:`KQ_FILTER_NETDEV`" -msgstr "" +msgstr ":const:`KQ_FILTER_NETDEV`" #: ../../library/select.rst:533 msgid "Watch for events on a network device [not available on Mac OS X]" @@ -724,7 +723,7 @@ msgstr "" #: ../../library/select.rst:536 msgid ":const:`KQ_FILTER_SIGNAL`" -msgstr "" +msgstr ":const:`KQ_FILTER_SIGNAL`" #: ../../library/select.rst:536 msgid "Returns whenever the watched signal is delivered to the process" @@ -752,7 +751,7 @@ msgstr "" #: ../../library/select.rst:551 msgid ":const:`KQ_EV_DELETE`" -msgstr "" +msgstr ":const:`KQ_EV_DELETE`" #: ../../library/select.rst:551 msgid "Removes an event from the queue" @@ -760,7 +759,7 @@ msgstr "" #: ../../library/select.rst:553 msgid ":const:`KQ_EV_ENABLE`" -msgstr "" +msgstr ":const:`KQ_EV_ENABLE`" #: ../../library/select.rst:553 msgid "Permitscontrol() to returns the event" @@ -768,7 +767,7 @@ msgstr "" #: ../../library/select.rst:555 msgid ":const:`KQ_EV_DISABLE`" -msgstr "" +msgstr ":const:`KQ_EV_DISABLE`" #: ../../library/select.rst:555 msgid "Disablesevent" @@ -776,7 +775,7 @@ msgstr "" #: ../../library/select.rst:557 msgid ":const:`KQ_EV_ONESHOT`" -msgstr "" +msgstr ":const:`KQ_EV_ONESHOT`" #: ../../library/select.rst:557 msgid "Removes event after first occurrence" @@ -784,7 +783,7 @@ msgstr "" #: ../../library/select.rst:559 msgid ":const:`KQ_EV_CLEAR`" -msgstr "" +msgstr ":const:`KQ_EV_CLEAR`" #: ../../library/select.rst:559 msgid "Reset the state after an event is retrieved" @@ -792,7 +791,7 @@ msgstr "" #: ../../library/select.rst:561 msgid ":const:`KQ_EV_SYSFLAGS`" -msgstr "" +msgstr ":const:`KQ_EV_SYSFLAGS`" #: ../../library/select.rst:561 ../../library/select.rst:563 msgid "internal event" @@ -800,11 +799,11 @@ msgstr "" #: ../../library/select.rst:563 msgid ":const:`KQ_EV_FLAG1`" -msgstr "" +msgstr ":const:`KQ_EV_FLAG1`" #: ../../library/select.rst:565 msgid ":const:`KQ_EV_EOF`" -msgstr "" +msgstr ":const:`KQ_EV_EOF`" #: ../../library/select.rst:565 msgid "Filter specific EOF condition" @@ -812,7 +811,7 @@ msgstr "" #: ../../library/select.rst:567 msgid ":const:`KQ_EV_ERROR`" -msgstr "" +msgstr ":const:`KQ_EV_ERROR`" #: ../../library/select.rst:567 msgid "See return values" @@ -828,7 +827,7 @@ msgstr "" #: ../../library/select.rst:580 msgid ":const:`KQ_NOTE_LOWAT`" -msgstr "" +msgstr ":const:`KQ_NOTE_LOWAT`" #: ../../library/select.rst:580 msgid "low water mark of a socket buffer" @@ -840,7 +839,7 @@ msgstr "" #: ../../library/select.rst:588 msgid ":const:`KQ_NOTE_DELETE`" -msgstr "" +msgstr ":const:`KQ_NOTE_DELETE`" #: ../../library/select.rst:588 msgid "*unlink()* was called" @@ -848,7 +847,7 @@ msgstr "" #: ../../library/select.rst:590 msgid ":const:`KQ_NOTE_WRITE`" -msgstr "" +msgstr ":const:`KQ_NOTE_WRITE`" #: ../../library/select.rst:590 msgid "a write occurred" @@ -856,7 +855,7 @@ msgstr "" #: ../../library/select.rst:592 msgid ":const:`KQ_NOTE_EXTEND`" -msgstr "" +msgstr ":const:`KQ_NOTE_EXTEND`" #: ../../library/select.rst:592 msgid "the file was extended" @@ -864,7 +863,7 @@ msgstr "" #: ../../library/select.rst:594 msgid ":const:`KQ_NOTE_ATTRIB`" -msgstr "" +msgstr ":const:`KQ_NOTE_ATTRIB`" #: ../../library/select.rst:594 msgid "an attribute was changed" @@ -872,7 +871,7 @@ msgstr "" #: ../../library/select.rst:596 msgid ":const:`KQ_NOTE_LINK`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINK`" #: ../../library/select.rst:596 msgid "the link count has changed" @@ -880,7 +879,7 @@ msgstr "" #: ../../library/select.rst:598 msgid ":const:`KQ_NOTE_RENAME`" -msgstr "" +msgstr ":const:`KQ_NOTE_RENAME`" #: ../../library/select.rst:598 msgid "the file was renamed" @@ -888,7 +887,7 @@ msgstr "" #: ../../library/select.rst:600 msgid ":const:`KQ_NOTE_REVOKE`" -msgstr "" +msgstr ":const:`KQ_NOTE_REVOKE`" #: ../../library/select.rst:600 msgid "access to the file was revoked" @@ -900,7 +899,7 @@ msgstr "" #: ../../library/select.rst:608 msgid ":const:`KQ_NOTE_EXIT`" -msgstr "" +msgstr ":const:`KQ_NOTE_EXIT`" #: ../../library/select.rst:608 msgid "the process has exited" @@ -908,7 +907,7 @@ msgstr "" #: ../../library/select.rst:610 msgid ":const:`KQ_NOTE_FORK`" -msgstr "" +msgstr ":const:`KQ_NOTE_FORK`" #: ../../library/select.rst:610 msgid "the process has called *fork()*" @@ -916,7 +915,7 @@ msgstr "" #: ../../library/select.rst:612 msgid ":const:`KQ_NOTE_EXEC`" -msgstr "" +msgstr ":const:`KQ_NOTE_EXEC`" #: ../../library/select.rst:612 msgid "the process has executed a new process" @@ -924,7 +923,7 @@ msgstr "" #: ../../library/select.rst:614 msgid ":const:`KQ_NOTE_PCTRLMASK`" -msgstr "" +msgstr ":const:`KQ_NOTE_PCTRLMASK`" #: ../../library/select.rst:614 ../../library/select.rst:616 msgid "internal filter flag" @@ -932,11 +931,11 @@ msgstr "" #: ../../library/select.rst:616 msgid ":const:`KQ_NOTE_PDATAMASK`" -msgstr "" +msgstr ":const:`KQ_NOTE_PDATAMASK`" #: ../../library/select.rst:618 msgid ":const:`KQ_NOTE_TRACK`" -msgstr "" +msgstr ":const:`KQ_NOTE_TRACK`" #: ../../library/select.rst:618 msgid "follow a process across *fork()*" @@ -944,7 +943,7 @@ msgstr "" #: ../../library/select.rst:620 msgid ":const:`KQ_NOTE_CHILD`" -msgstr "" +msgstr ":const:`KQ_NOTE_CHILD`" #: ../../library/select.rst:620 msgid "returned on the child process for *NOTE_TRACK*" @@ -952,7 +951,7 @@ msgstr "" #: ../../library/select.rst:623 msgid ":const:`KQ_NOTE_TRACKERR`" -msgstr "" +msgstr ":const:`KQ_NOTE_TRACKERR`" #: ../../library/select.rst:623 msgid "unable to attach to a child" @@ -964,7 +963,7 @@ msgstr "" #: ../../library/select.rst:631 msgid ":const:`KQ_NOTE_LINKUP`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINKUP`" #: ../../library/select.rst:631 msgid "link is up" @@ -972,7 +971,7 @@ msgstr "" #: ../../library/select.rst:633 msgid ":const:`KQ_NOTE_LINKDOWN`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINKDOWN`" #: ../../library/select.rst:633 msgid "link is down" @@ -980,7 +979,7 @@ msgstr "" #: ../../library/select.rst:635 msgid ":const:`KQ_NOTE_LINKINV`" -msgstr "" +msgstr ":const:`KQ_NOTE_LINKINV`" #: ../../library/select.rst:635 msgid "link state is invalid" diff --git a/library/selectors.po b/library/selectors.po index 7ddcaa95c..c103003ea 100644 --- a/library/selectors.po +++ b/library/selectors.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 -# +# Hemílio Lauro , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Ruan Aragão , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,19 +41,19 @@ msgstr "Introdução" #: ../../library/selectors.rst:16 msgid "" -"This module allows high-level and efficient I/O multiplexing, built upon the" -" :mod:`select` module primitives. Users are encouraged to use this module " +"This module allows high-level and efficient I/O multiplexing, built upon " +"the :mod:`select` module primitives. Users are encouraged to use this module " "instead, unless they want precise control over the OS-level primitives used." msgstr "" #: ../../library/selectors.rst:20 msgid "" "It defines a :class:`BaseSelector` abstract base class, along with several " -"concrete implementations (:class:`KqueueSelector`, " -":class:`EpollSelector`...), that can be used to wait for I/O readiness " -"notification on multiple file objects. In the following, \"file object\" " -"refers to any object with a :meth:`fileno()` method, or a raw file " -"descriptor. See :term:`file object`." +"concrete implementations (:class:`KqueueSelector`, :class:" +"`EpollSelector`...), that can be used to wait for I/O readiness notification " +"on multiple file objects. In the following, \"file object\" refers to any " +"object with a :meth:`fileno()` method, or a raw file descriptor. See :term:" +"`file object`." msgstr "" #: ../../library/selectors.rst:26 @@ -70,7 +73,7 @@ msgstr "" #: ../../library/selectors.rst:38 msgid ":mod:`select`" -msgstr "" +msgstr ":mod:`select`" #: ../../library/selectors.rst:39 msgid "Low-level I/O multiplexing module." @@ -101,15 +104,15 @@ msgstr "Significado" #: ../../library/selectors.rst:62 msgid ":const:`EVENT_READ`" -msgstr "" +msgstr ":const:`EVENT_READ`" #: ../../library/selectors.rst:62 msgid "Available for read" -msgstr "" +msgstr "Disponível para leitura" #: ../../library/selectors.rst:64 msgid ":const:`EVENT_WRITE`" -msgstr "" +msgstr ":const:`EVENT_WRITE`" #: ../../library/selectors.rst:64 msgid "Available for write" @@ -137,8 +140,8 @@ msgstr "" #: ../../library/selectors.rst:89 msgid "" -"Optional opaque data associated to this file object: for example, this could" -" be used to store a per-client session ID." +"Optional opaque data associated to this file object: for example, this could " +"be used to store a per-client session ID." msgstr "" #: ../../library/selectors.rst:95 @@ -146,11 +149,11 @@ msgid "" "A :class:`BaseSelector` is used to wait for I/O event readiness on multiple " "file objects. It supports file stream registration, unregistration, and a " "method to wait for I/O events on those streams, with an optional timeout. " -"It's an abstract base class, so cannot be instantiated. Use " -":class:`DefaultSelector` instead, or one of :class:`SelectSelector`, " -":class:`KqueueSelector` etc. if you want to specifically use an " -"implementation, and your platform supports it. :class:`BaseSelector` and its" -" concrete implementations support the :term:`context manager` protocol." +"It's an abstract base class, so cannot be instantiated. Use :class:" +"`DefaultSelector` instead, or one of :class:`SelectSelector`, :class:" +"`KqueueSelector` etc. if you want to specifically use an implementation, and " +"your platform supports it. :class:`BaseSelector` and its concrete " +"implementations support the :term:`context manager` protocol." msgstr "" #: ../../library/selectors.rst:107 @@ -166,15 +169,15 @@ msgstr "" #: ../../library/selectors.rst:114 msgid "" -"This returns a new :class:`SelectorKey` instance, or raises a " -":exc:`ValueError` in case of invalid event mask or file descriptor, or " -":exc:`KeyError` if the file object is already registered." +"This returns a new :class:`SelectorKey` instance, or raises a :exc:" +"`ValueError` in case of invalid event mask or file descriptor, or :exc:" +"`KeyError` if the file object is already registered." msgstr "" #: ../../library/selectors.rst:120 msgid "" -"Unregister a file object from selection, removing it from monitoring. A file" -" object shall be unregistered prior to being closed." +"Unregister a file object from selection, removing it from monitoring. A file " +"object shall be unregistered prior to being closed." msgstr "" #: ../../library/selectors.rst:123 @@ -183,10 +186,10 @@ msgstr "" #: ../../library/selectors.rst:125 msgid "" -"This returns the associated :class:`SelectorKey` instance, or raises a " -":exc:`KeyError` if *fileobj* is not registered. It will raise " -":exc:`ValueError` if *fileobj* is invalid (e.g. it has no ``fileno()`` " -"method or its ``fileno()`` method has an invalid return value)." +"This returns the associated :class:`SelectorKey` instance, or raises a :exc:" +"`KeyError` if *fileobj* is not registered. It will raise :exc:`ValueError` " +"if *fileobj* is invalid (e.g. it has no ``fileno()`` method or its " +"``fileno()`` method has an invalid return value)." msgstr "" #: ../../library/selectors.rst:132 @@ -195,22 +198,21 @@ msgstr "" #: ../../library/selectors.rst:134 msgid "" -"This is equivalent to :meth:`BaseSelector.unregister(fileobj)` followed by " -":meth:`BaseSelector.register(fileobj, events, data)`, except that it can be " +"This is equivalent to :meth:`BaseSelector.unregister(fileobj)` followed by :" +"meth:`BaseSelector.register(fileobj, events, data)`, except that it can be " "implemented more efficiently." msgstr "" #: ../../library/selectors.rst:138 msgid "" -"This returns a new :class:`SelectorKey` instance, or raises a " -":exc:`ValueError` in case of invalid event mask or file descriptor, or " -":exc:`KeyError` if the file object is not registered." +"This returns a new :class:`SelectorKey` instance, or raises a :exc:" +"`ValueError` in case of invalid event mask or file descriptor, or :exc:" +"`KeyError` if the file object is not registered." msgstr "" #: ../../library/selectors.rst:144 msgid "" -"Wait until some registered file objects become ready, or the timeout " -"expires." +"Wait until some registered file objects become ready, or the timeout expires." msgstr "" #: ../../library/selectors.rst:147 @@ -236,8 +238,8 @@ msgstr "" #: ../../library/selectors.rst:161 msgid "" "This method can return before any file object becomes ready or the timeout " -"has elapsed if the current process receives a signal: in this case, an empty" -" list will be returned." +"has elapsed if the current process receives a signal: in this case, an empty " +"list will be returned." msgstr "" #: ../../library/selectors.rst:165 @@ -274,8 +276,8 @@ msgstr "" #: ../../library/selectors.rst:189 msgid "" -"This returns a :class:`~collections.abc.Mapping` instance mapping registered" -" file objects to their associated :class:`SelectorKey` instance." +"This returns a :class:`~collections.abc.Mapping` instance mapping registered " +"file objects to their associated :class:`SelectorKey` instance." msgstr "" #: ../../library/selectors.rst:196 @@ -299,8 +301,8 @@ msgstr "" #: ../../library/selectors.rst:217 msgid "" -"This returns the file descriptor used by the underlying :func:`select.epoll`" -" object." +"This returns the file descriptor used by the underlying :func:`select.epoll` " +"object." msgstr "" #: ../../library/selectors.rst:222 @@ -309,8 +311,8 @@ msgstr "" #: ../../library/selectors.rst:226 msgid "" -"This returns the file descriptor used by the underlying " -":func:`select.devpoll` object." +"This returns the file descriptor used by the underlying :func:`select." +"devpoll` object." msgstr "" #: ../../library/selectors.rst:233 @@ -319,8 +321,8 @@ msgstr "" #: ../../library/selectors.rst:237 msgid "" -"This returns the file descriptor used by the underlying " -":func:`select.kqueue` object." +"This returns the file descriptor used by the underlying :func:`select." +"kqueue` object." msgstr "" #: ../../library/selectors.rst:242 diff --git a/library/shelve.po b/library/shelve.po index 7f20672cb..3a9f14f79 100644 --- a/library/shelve.po +++ b/library/shelve.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,19 +37,19 @@ msgid "" "A \"shelf\" is a persistent, dictionary-like object. The difference with " "\"dbm\" databases is that the values (not the keys!) in a shelf can be " "essentially arbitrary Python objects --- anything that the :mod:`pickle` " -"module can handle. This includes most class instances, recursive data types," -" and objects containing lots of shared sub-objects. The keys are ordinary " +"module can handle. This includes most class instances, recursive data types, " +"and objects containing lots of shared sub-objects. The keys are ordinary " "strings." msgstr "" #: ../../library/shelve.rst:22 msgid "" "Open a persistent dictionary. The filename specified is the base filename " -"for the underlying database. As a side-effect, an extension may be added to" -" the filename and more than one file may be created. By default, the " +"for the underlying database. As a side-effect, an extension may be added to " +"the filename and more than one file may be created. By default, the " "underlying database file is opened for reading and writing. The optional " -"*flag* parameter has the same interpretation as the *flag* parameter of " -":func:`dbm.open`." +"*flag* parameter has the same interpretation as the *flag* parameter of :" +"func:`dbm.open`." msgstr "" #: ../../library/shelve.rst:28 @@ -63,10 +64,10 @@ msgid "" "dictionary entry is modified. By default modified objects are written " "*only* when assigned to the shelf (see :ref:`shelve-example`). If the " "optional *writeback* parameter is set to ``True``, all entries accessed are " -"also cached in memory, and written back on :meth:`~Shelf.sync` and " -":meth:`~Shelf.close`; this can make it handier to mutate mutable entries in " -"the persistent dictionary, but, if many entries are accessed, it can consume" -" vast amounts of memory for the cache, and it can make the close operation " +"also cached in memory, and written back on :meth:`~Shelf.sync` and :meth:" +"`~Shelf.close`; this can make it handier to mutate mutable entries in the " +"persistent dictionary, but, if many entries are accessed, it can consume " +"vast amounts of memory for the cache, and it can make the close operation " "very slow since all accessed entries are written back (there is no way to " "determine which accessed entries are mutable, nor which ones were actually " "mutated)." @@ -74,22 +75,22 @@ msgstr "" #: ../../library/shelve.rst:45 msgid "" -"Do not rely on the shelf being closed automatically; always call " -":meth:`~Shelf.close` explicitly when you don't need it any more, or use " -":func:`shelve.open` as a context manager::" +"Do not rely on the shelf being closed automatically; always call :meth:" +"`~Shelf.close` explicitly when you don't need it any more, or use :func:" +"`shelve.open` as a context manager::" msgstr "" #: ../../library/shelve.rst:54 msgid "" "Because the :mod:`shelve` module is backed by :mod:`pickle`, it is insecure " -"to load a shelf from an untrusted source. Like with pickle, loading a shelf" -" can execute arbitrary code." +"to load a shelf from an untrusted source. Like with pickle, loading a shelf " +"can execute arbitrary code." msgstr "" #: ../../library/shelve.rst:58 msgid "" -"Shelf objects support all methods supported by dictionaries. This eases the" -" transition from dictionary based scripts to those requiring persistent " +"Shelf objects support all methods supported by dictionaries. This eases the " +"transition from dictionary based scripts to those requiring persistent " "storage." msgstr "" @@ -99,8 +100,8 @@ msgstr "" #: ../../library/shelve.rst:65 msgid "" -"Write back all entries in the cache if the shelf was opened with *writeback*" -" set to :const:`True`. Also empty the cache and synchronize the persistent " +"Write back all entries in the cache if the shelf was opened with *writeback* " +"set to :const:`True`. Also empty the cache and synchronize the persistent " "dictionary on disk, if feasible. This is called automatically when the " "shelf is closed with :meth:`close`." msgstr "" @@ -113,9 +114,9 @@ msgstr "" #: ../../library/shelve.rst:78 msgid "" -"`Persistent dictionary recipe " -"`_ with widely supported " -"storage formats and having the speed of native dictionaries." +"`Persistent dictionary recipe `_ with widely supported storage formats and having the speed of native " +"dictionaries." msgstr "" #: ../../library/shelve.rst:84 @@ -125,10 +126,10 @@ msgstr "" #: ../../library/shelve.rst:90 msgid "" "The choice of which database package will be used (such as :mod:`dbm.ndbm` " -"or :mod:`dbm.gnu`) depends on which interface is available. Therefore it is" -" not safe to open the database directly using :mod:`dbm`. The database is " -"also (unfortunately) subject to the limitations of :mod:`dbm`, if it is used" -" --- this means that (the pickled representation of) the objects stored in " +"or :mod:`dbm.gnu`) depends on which interface is available. Therefore it is " +"not safe to open the database directly using :mod:`dbm`. The database is " +"also (unfortunately) subject to the limitations of :mod:`dbm`, if it is used " +"--- this means that (the pickled representation of) the objects stored in " "the database should be fairly small, and in rare cases key collisions may " "cause the database to refuse updates." msgstr "" @@ -152,8 +153,8 @@ msgstr "" #: ../../library/shelve.rst:111 msgid "" "By default, version 3 pickles are used to serialize values. The version of " -"the pickle protocol can be specified with the *protocol* parameter. See the " -":mod:`pickle` documentation for a discussion of the pickle protocols." +"the pickle protocol can be specified with the *protocol* parameter. See the :" +"mod:`pickle` documentation for a discussion of the pickle protocols." msgstr "" #: ../../library/shelve.rst:115 @@ -172,8 +173,8 @@ msgstr "" #: ../../library/shelve.rst:123 msgid "" -"A :class:`Shelf` object can also be used as a context manager, in which case" -" it will be automatically closed when the :keyword:`with` block ends." +"A :class:`Shelf` object can also be used as a context manager, in which case " +"it will be automatically closed when the :keyword:`with` block ends." msgstr "" #: ../../library/shelve.rst:126 @@ -188,25 +189,25 @@ msgstr "" #: ../../library/shelve.rst:136 msgid "" -"A subclass of :class:`Shelf` which exposes :meth:`first`, :meth:`!next`, " -":meth:`previous`, :meth:`last` and :meth:`set_location` which are available " -"in the third-party :mod:`bsddb` module from `pybsddb " -"`_ but not in other database " -"modules. The *dict* object passed to the constructor must support those " -"methods. This is generally accomplished by calling one of " -":func:`bsddb.hashopen`, :func:`bsddb.btopen` or :func:`bsddb.rnopen`. The " -"optional *protocol*, *writeback*, and *keyencoding* parameters have the same" -" interpretation as for the :class:`Shelf` class." +"A subclass of :class:`Shelf` which exposes :meth:`first`, :meth:`!next`, :" +"meth:`previous`, :meth:`last` and :meth:`set_location` which are available " +"in the third-party :mod:`bsddb` module from `pybsddb `_ but not in other database modules. The *dict* " +"object passed to the constructor must support those methods. This is " +"generally accomplished by calling one of :func:`bsddb.hashopen`, :func:" +"`bsddb.btopen` or :func:`bsddb.rnopen`. The optional *protocol*, " +"*writeback*, and *keyencoding* parameters have the same interpretation as " +"for the :class:`Shelf` class." msgstr "" #: ../../library/shelve.rst:149 msgid "" "A subclass of :class:`Shelf` which accepts a *filename* instead of a dict-" -"like object. The underlying file will be opened using :func:`dbm.open`. By" -" default, the file will be created and opened for both read and write. The " -"optional *flag* parameter has the same interpretation as for the " -":func:`.open` function. The optional *protocol* and *writeback* parameters " -"have the same interpretation as for the :class:`Shelf` class." +"like object. The underlying file will be opened using :func:`dbm.open`. By " +"default, the file will be created and opened for both read and write. The " +"optional *flag* parameter has the same interpretation as for the :func:`." +"open` function. The optional *protocol* and *writeback* parameters have the " +"same interpretation as for the :class:`Shelf` class." msgstr "" #: ../../library/shelve.rst:160 diff --git a/library/shlex.po b/library/shlex.po index e8a6b04ff..e1bd579ca 100644 --- a/library/shlex.po +++ b/library/shlex.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-12 03:27+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/shlex.py`" #: ../../library/shlex.rst:16 msgid "" -"The :class:`~shlex.shlex` class makes it easy to write lexical analyzers for" -" simple syntaxes resembling that of the Unix shell. This will often be " +"The :class:`~shlex.shlex` class makes it easy to write lexical analyzers for " +"simple syntaxes resembling that of the Unix shell. This will often be " "useful for writing minilanguages, (for example, in run control files for " "Python applications) or for parsing quoted strings." msgstr "" @@ -44,12 +46,12 @@ msgstr "" #: ../../library/shlex.rst:26 msgid "" -"Split the string *s* using shell-like syntax. If *comments* is " -":const:`False` (the default), the parsing of comments in the given string " -"will be disabled (setting the :attr:`~shlex.commenters` attribute of the " -":class:`~shlex.shlex` instance to the empty string). This function operates" -" in POSIX mode by default, but uses non-POSIX mode if the *posix* argument " -"is false." +"Split the string *s* using shell-like syntax. If *comments* is :const:" +"`False` (the default), the parsing of comments in the given string will be " +"disabled (setting the :attr:`~shlex.commenters` attribute of the :class:" +"`~shlex.shlex` instance to the empty string). This function operates in " +"POSIX mode by default, but uses non-POSIX mode if the *posix* argument is " +"false." msgstr "" #: ../../library/shlex.rst:35 @@ -86,27 +88,27 @@ msgstr "" msgid "" "A :class:`~shlex.shlex` instance or subclass instance is a lexical analyzer " "object. The initialization argument, if present, specifies where to read " -"characters from. It must be a file-/stream-like object with " -":meth:`~io.TextIOBase.read` and :meth:`~io.TextIOBase.readline` methods, or " -"a string. If no argument is given, input will be taken from ``sys.stdin``. " -"The second optional argument is a filename string, which sets the initial " -"value of the :attr:`~shlex.infile` attribute. If the *instream* argument is" -" omitted or equal to ``sys.stdin``, this second argument defaults to " -"\"stdin\". The *posix* argument defines the operational mode: when *posix* " -"is not true (default), the :class:`~shlex.shlex` instance will operate in " -"compatibility mode. When operating in POSIX mode, :class:`~shlex.shlex` " -"will try to be as close as possible to the POSIX shell parsing rules. The " -"*punctuation_chars* argument provides a way to make the behaviour even " -"closer to how real shells parse. This can take a number of values: the " -"default value, ``False``, preserves the behaviour seen under Python 3.5 and " -"earlier. If set to ``True``, then parsing of the characters ``();<>|&`` is " -"changed: any run of these characters (considered punctuation characters) is " -"returned as a single token. If set to a non-empty string of characters, " -"those characters will be used as the punctuation characters. Any characters" -" in the :attr:`wordchars` attribute that appear in *punctuation_chars* will " -"be removed from :attr:`wordchars`. See :ref:`improved-shell-compatibility` " -"for more information. *punctuation_chars* can be set only upon " -":class:`~shlex.shlex` instance creation and can't be modified later." +"characters from. It must be a file-/stream-like object with :meth:`~io." +"TextIOBase.read` and :meth:`~io.TextIOBase.readline` methods, or a string. " +"If no argument is given, input will be taken from ``sys.stdin``. The second " +"optional argument is a filename string, which sets the initial value of the :" +"attr:`~shlex.infile` attribute. If the *instream* argument is omitted or " +"equal to ``sys.stdin``, this second argument defaults to \"stdin\". The " +"*posix* argument defines the operational mode: when *posix* is not true " +"(default), the :class:`~shlex.shlex` instance will operate in compatibility " +"mode. When operating in POSIX mode, :class:`~shlex.shlex` will try to be as " +"close as possible to the POSIX shell parsing rules. The *punctuation_chars* " +"argument provides a way to make the behaviour even closer to how real shells " +"parse. This can take a number of values: the default value, ``False``, " +"preserves the behaviour seen under Python 3.5 and earlier. If set to " +"``True``, then parsing of the characters ``();<>|&`` is changed: any run of " +"these characters (considered punctuation characters) is returned as a single " +"token. If set to a non-empty string of characters, those characters will be " +"used as the punctuation characters. Any characters in the :attr:`wordchars` " +"attribute that appear in *punctuation_chars* will be removed from :attr:" +"`wordchars`. See :ref:`improved-shell-compatibility` for more information. " +"*punctuation_chars* can be set only upon :class:`~shlex.shlex` instance " +"creation and can't be modified later." msgstr "" #: ../../library/shlex.rst:105 @@ -132,10 +134,10 @@ msgstr "" #: ../../library/shlex.rst:124 msgid "" -"Return a token. If tokens have been stacked using :meth:`push_token`, pop a" -" token off the stack. Otherwise, read one from the input stream. If " -"reading encounters an immediate end-of-file, :attr:`eof` is returned (the " -"empty string (``''``) in non-POSIX mode, and ``None`` in POSIX mode)." +"Return a token. If tokens have been stacked using :meth:`push_token`, pop a " +"token off the stack. Otherwise, read one from the input stream. If reading " +"encounters an immediate end-of-file, :attr:`eof` is returned (the empty " +"string (``''``) in non-POSIX mode, and ``None`` in POSIX mode)." msgstr "" #: ../../library/shlex.rst:132 @@ -152,8 +154,8 @@ msgstr "" #: ../../library/shlex.rst:144 msgid "" "When :class:`~shlex.shlex` detects a source request (see :attr:`source` " -"below) this method is given the following token as argument, and expected to" -" return a tuple consisting of a filename and an open file-like object." +"below) this method is given the following token as argument, and expected to " +"return a tuple consisting of a filename and an open file-like object." msgstr "" #: ../../library/shlex.rst:148 @@ -179,9 +181,8 @@ msgstr "" msgid "" "This hook is exposed so that you can use it to implement directory search " "paths, addition of file extensions, and other namespace hacks. There is no " -"corresponding 'close' hook, but a shlex instance will call the " -":meth:`~io.IOBase.close` method of the sourced input stream when it returns " -"EOF." +"corresponding 'close' hook, but a shlex instance will call the :meth:`~io." +"IOBase.close` method of the sourced input stream when it returns EOF." msgstr "" #: ../../library/shlex.rst:167 @@ -206,8 +207,8 @@ msgstr "" #: ../../library/shlex.rst:186 msgid "" "This method generates an error message leader in the format of a Unix C " -"compiler error label; the format is ``'\"%s\", line %d: '``, where the " -"``%s`` is replaced with the name of the current source file and the ``%d`` " +"compiler error label; the format is ``'\"%s\", line %d: '``, where the ``" +"%s`` is replaced with the name of the current source file and the ``%d`` " "with the current input line number (the optional arguments can be used to " "override these)." msgstr "" @@ -222,8 +223,7 @@ msgstr "" #: ../../library/shlex.rst:195 msgid "" "Instances of :class:`~shlex.shlex` subclasses have some public instance " -"variables which either control lexical analysis or can be used for " -"debugging:" +"variables which either control lexical analysis or can be used for debugging:" msgstr "" #: ../../library/shlex.rst:201 @@ -236,13 +236,13 @@ msgstr "" #: ../../library/shlex.rst:208 msgid "" "The string of characters that will accumulate into multi-character tokens. " -"By default, includes all ASCII alphanumerics and underscore. In POSIX mode," -" the accented characters in the Latin-1 set are also included. If " -":attr:`punctuation_chars` is not empty, the characters ``~-./*?=``, which " -"can appear in filename specifications and command line parameters, will also" -" be included in this attribute, and any characters which appear in " -"``punctuation_chars`` will be removed from ``wordchars`` if they are present" -" there." +"By default, includes all ASCII alphanumerics and underscore. In POSIX mode, " +"the accented characters in the Latin-1 set are also included. If :attr:" +"`punctuation_chars` is not empty, the characters ``~-./*?=``, which can " +"appear in filename specifications and command line parameters, will also be " +"included in this attribute, and any characters which appear in " +"``punctuation_chars`` will be removed from ``wordchars`` if they are present " +"there." msgstr "" #: ../../library/shlex.rst:220 @@ -277,11 +277,11 @@ msgstr "" msgid "" "If ``True``, tokens will only be split in whitespaces. This is useful, for " "example, for parsing command lines with :class:`~shlex.shlex`, getting " -"tokens in a similar way to shell arguments. If this attribute is ``True``, " -":attr:`punctuation_chars` will have no effect, and splitting will happen " -"only on whitespaces. When using :attr:`punctuation_chars`, which is " -"intended to provide parsing closer to that implemented by shells, it is " -"advisable to leave ``whitespace_split`` as ``False`` (the default value)." +"tokens in a similar way to shell arguments. If this attribute is ``True``, :" +"attr:`punctuation_chars` will have no effect, and splitting will happen only " +"on whitespaces. When using :attr:`punctuation_chars`, which is intended to " +"provide parsing closer to that implemented by shells, it is advisable to " +"leave ``whitespace_split`` as ``False`` (the default value)." msgstr "" #: ../../library/shlex.rst:257 @@ -303,8 +303,8 @@ msgid "" "string will be recognized as a lexical-level inclusion request similar to " "the ``source`` keyword in various shells. That is, the immediately " "following token will be opened as a filename and input will be taken from " -"that stream until EOF, at which point the :meth:`~io.IOBase.close` method of" -" that stream will be called and the input source will again become the " +"that stream until EOF, at which point the :meth:`~io.IOBase.close` method of " +"that stream will be called and the input source will again become the " "original input stream. Source requests may be stacked any number of levels " "deep." msgstr "" @@ -312,8 +312,8 @@ msgstr "" #: ../../library/shlex.rst:281 msgid "" "If this attribute is numeric and ``1`` or more, a :class:`~shlex.shlex` " -"instance will print verbose progress output on its behavior. If you need to" -" use this, you can read the module source code to learn the details." +"instance will print verbose progress output on its behavior. If you need to " +"use this, you can read the module source code to learn the details." msgstr "" #: ../../library/shlex.rst:288 @@ -322,8 +322,7 @@ msgstr "" #: ../../library/shlex.rst:293 msgid "" -"The token buffer. It may be useful to examine this when catching " -"exceptions." +"The token buffer. It may be useful to examine this when catching exceptions." msgstr "" #: ../../library/shlex.rst:298 @@ -397,8 +396,8 @@ msgstr "" #: ../../library/shlex.rst:343 msgid "" -"Quotes are stripped out, and do not separate words " -"(``\"Do\"Not\"Separate\"`` is parsed as the single word ``DoNotSeparate``);" +"Quotes are stripped out, and do not separate words (``\"Do\"Not\"Separate" +"\"`` is parsed as the single word ``DoNotSeparate``);" msgstr "" #: ../../library/shlex.rst:346 @@ -409,20 +408,19 @@ msgstr "" #: ../../library/shlex.rst:349 msgid "" -"Enclosing characters in quotes which are not part of " -":attr:`~shlex.escapedquotes` (e.g. ``\"'\"``) preserve the literal value of " -"all characters within the quotes;" +"Enclosing characters in quotes which are not part of :attr:`~shlex." +"escapedquotes` (e.g. ``\"'\"``) preserve the literal value of all characters " +"within the quotes;" msgstr "" #: ../../library/shlex.rst:353 msgid "" -"Enclosing characters in quotes which are part of " -":attr:`~shlex.escapedquotes` (e.g. ``'\"'``) preserves the literal value of " -"all characters within the quotes, with the exception of the characters " -"mentioned in :attr:`~shlex.escape`. The escape characters retain its " -"special meaning only when followed by the quote in use, or the escape " -"character itself. Otherwise the escape character will be considered a normal" -" character." +"Enclosing characters in quotes which are part of :attr:`~shlex." +"escapedquotes` (e.g. ``'\"'``) preserves the literal value of all characters " +"within the quotes, with the exception of the characters mentioned in :attr:" +"`~shlex.escape`. The escape characters retain its special meaning only when " +"followed by the quote in use, or the escape character itself. Otherwise the " +"escape character will be considered a normal character." msgstr "" #: ../../library/shlex.rst:361 @@ -443,13 +441,13 @@ msgid "" "by common Unix shells like ``bash``, ``dash``, and ``sh``. To take " "advantage of this compatibility, specify the ``punctuation_chars`` argument " "in the constructor. This defaults to ``False``, which preserves pre-3.6 " -"behaviour. However, if it is set to ``True``, then parsing of the characters" -" ``();<>|&`` is changed: any run of these characters is returned as a single" -" token. While this is short of a full parser for shells (which would be out" -" of scope for the standard library, given the multiplicity of shells out " -"there), it does allow you to perform processing of command lines more easily" -" than you could otherwise. To illustrate, you can see the difference in the" -" following snippet:" +"behaviour. However, if it is set to ``True``, then parsing of the characters " +"``();<>|&`` is changed: any run of these characters is returned as a single " +"token. While this is short of a full parser for shells (which would be out " +"of scope for the standard library, given the multiplicity of shells out " +"there), it does allow you to perform processing of command lines more easily " +"than you could otherwise. To illustrate, you can see the difference in the " +"following snippet:" msgstr "" #: ../../library/shlex.rst:395 @@ -476,6 +474,6 @@ msgstr "" #: ../../library/shlex.rst:418 msgid "" "For best effect, ``punctuation_chars`` should be set in conjunction with " -"``posix=True``. (Note that ``posix=False`` is the default for " -":class:`~shlex.shlex`.)" +"``posix=True``. (Note that ``posix=False`` is the default for :class:`~shlex." +"shlex`.)" msgstr "" diff --git a/library/shutil.po b/library/shutil.po index 60068c851..335b4165a 100644 --- a/library/shutil.po +++ b/library/shutil.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,20 +46,19 @@ msgstr "" #: ../../library/shutil.rst:25 msgid "" -"Even the higher-level file copying functions (:func:`shutil.copy`, " -":func:`shutil.copy2`) cannot copy all file metadata." +"Even the higher-level file copying functions (:func:`shutil.copy`, :func:" +"`shutil.copy2`) cannot copy all file metadata." msgstr "" -"Mesmo as funções de cópia de arquivos de nível superior " -"(:func:`shutil.copy`, :func:`shutil.copy2`) não podem copiar todos os " -"metadados do arquivo." +"Mesmo as funções de cópia de arquivos de nível superior (:func:`shutil." +"copy`, :func:`shutil.copy2`) não podem copiar todos os metadados do arquivo." #: ../../library/shutil.rst:28 msgid "" -"On POSIX platforms, this means that file owner and group are lost as well as" -" ACLs. On Mac OS, the resource fork and other metadata are not used. This " +"On POSIX platforms, this means that file owner and group are lost as well as " +"ACLs. On Mac OS, the resource fork and other metadata are not used. This " "means that resources will be lost and file type and creator codes will not " -"be correct. On Windows, file owners, ACLs and alternate data streams are not" -" copied." +"be correct. On Windows, file owners, ACLs and alternate data streams are not " +"copied." msgstr "" "Nas plataformas POSIX, isso significa que o proprietário e o grupo do " "arquivo são perdidos, bem como as ACLs. No Mac OS, a bifurcação de recursos " @@ -74,18 +74,18 @@ msgstr "Operações de diretório e arquivos" #: ../../library/shutil.rst:42 msgid "" "Copy the contents of the file-like object *fsrc* to the file-like object " -"*fdst*. The integer *length*, if given, is the buffer size. In particular, a" -" negative *length* value means to copy the data without looping over the " +"*fdst*. The integer *length*, if given, is the buffer size. In particular, a " +"negative *length* value means to copy the data without looping over the " "source data in chunks; by default the data is read in chunks to avoid " "uncontrolled memory consumption. Note that if the current file position of " -"the *fsrc* object is not 0, only the contents from the current file position" -" to the end of the file will be copied." +"the *fsrc* object is not 0, only the contents from the current file position " +"to the end of the file will be copied." msgstr "" "Copia o conteúdo do objeto do tipo arquivo *fsrc* para o objeto do tipo " "arquivo *fdst*. O número inteiro *length*, se fornecido, é o tamanho do " "buffer. Em particular, um valor negativo *length* significa copiar os dados " -"sem repetir os dados de origem em pedaços; por padrão, os dados são lidos em" -" pedaços para evitar o consumo descontrolado de memória. Observe que, se a " +"sem repetir os dados de origem em pedaços; por padrão, os dados são lidos em " +"pedaços para evitar o consumo descontrolado de memória. Observe que, se a " "posição atual do arquivo do objeto *fsrc* não for 0, apenas o conteúdo da " "posição atual do arquivo até o final do arquivo será copiado." @@ -93,9 +93,9 @@ msgstr "" msgid "" "Copy the contents (no metadata) of the file named *src* to a file named " "*dst* and return *dst*. *src* and *dst* are path names given as strings. " -"*dst* must be the complete target file name; look at :func:`shutil.copy` for" -" a copy that accepts a target directory path. If *src* and *dst* specify " -"the same file, :exc:`SameFileError` is raised." +"*dst* must be the complete target file name; look at :func:`shutil.copy` for " +"a copy that accepts a target directory path. If *src* and *dst* specify the " +"same file, :exc:`SameFileError` is raised." msgstr "" #: ../../library/shutil.rst:59 @@ -105,10 +105,10 @@ msgid "" "Special files such as character or block devices and pipes cannot be copied " "with this function." msgstr "" -"O local de destino deve ser gravável; caso contrário, uma exceção " -":exc:`OSError` será gerada. Se o *dst* já existir, ele será substituído. " -"Arquivos especiais como dispositivos de caractere ou bloco e tubulações não " -"podem ser copiados com esta função." +"O local de destino deve ser gravável; caso contrário, uma exceção :exc:" +"`OSError` será gerada. Se o *dst* já existir, ele será substituído. Arquivos " +"especiais como dispositivos de caractere ou bloco e tubulações não podem ser " +"copiados com esta função." #: ../../library/shutil.rst:64 msgid "" @@ -116,8 +116,8 @@ msgid "" "link will be created instead of copying the file *src* points to." msgstr "" "Se *follow_symlinks* for falso e *src* for um link simbólico, um novo link " -"simbólico será criado em vez de copiar o arquivo *src* para o qual o arquivo" -" aponta." +"simbólico será criado em vez de copiar o arquivo *src* para o qual o arquivo " +"aponta." #: ../../library/shutil.rst:68 msgid "" @@ -145,14 +145,14 @@ msgstr "" #: ../../library/shutil.rst:88 msgid "" -"Copy the permission bits from *src* to *dst*. The file contents, owner, and" -" group are unaffected. *src* and *dst* are path names given as strings. If " -"*follow_symlinks* is false, and both *src* and *dst* are symbolic links, " -":func:`copymode` will attempt to modify the mode of *dst* itself (rather " -"than the file it points to). This functionality is not available on every " -"platform; please see :func:`copystat` for more information. If " -":func:`copymode` cannot modify symbolic links on the local platform, and it " -"is asked to do so, it will do nothing and return." +"Copy the permission bits from *src* to *dst*. The file contents, owner, and " +"group are unaffected. *src* and *dst* are path names given as strings. If " +"*follow_symlinks* is false, and both *src* and *dst* are symbolic links, :" +"func:`copymode` will attempt to modify the mode of *dst* itself (rather than " +"the file it points to). This functionality is not available on every " +"platform; please see :func:`copystat` for more information. If :func:" +"`copymode` cannot modify symbolic links on the local platform, and it is " +"asked to do so, it will do nothing and return." msgstr "" #: ../../library/shutil.rst:97 @@ -163,58 +163,57 @@ msgstr "Adicionado argumento *follow_symlinks*." msgid "" "Copy the permission bits, last access time, last modification time, and " "flags from *src* to *dst*. On Linux, :func:`copystat` also copies the " -"\"extended attributes\" where possible. The file contents, owner, and group" -" are unaffected. *src* and *dst* are path names given as strings." +"\"extended attributes\" where possible. The file contents, owner, and group " +"are unaffected. *src* and *dst* are path names given as strings." msgstr "" #: ../../library/shutil.rst:107 msgid "" "If *follow_symlinks* is false, and *src* and *dst* both refer to symbolic " -"links, :func:`copystat` will operate on the symbolic links themselves rather" -" than the files the symbolic links refer to—reading the information from the" -" *src* symbolic link, and writing the information to the *dst* symbolic " -"link." +"links, :func:`copystat` will operate on the symbolic links themselves rather " +"than the files the symbolic links refer to—reading the information from the " +"*src* symbolic link, and writing the information to the *dst* symbolic link." msgstr "" "Se *follow_symlinks* for falso e *src* e *dst* se referirem a links " "simbólicos, :func:`copystat` operará nos próprios links simbólicos, e não " -"nos arquivos aos quais os links simbólicos se referem - lendo as informações" -" do link simbólico *src* e gravando as informações no link simbólico *dst*." +"nos arquivos aos quais os links simbólicos se referem - lendo as informações " +"do link simbólico *src* e gravando as informações no link simbólico *dst*." #: ../../library/shutil.rst:116 msgid "" -"Not all platforms provide the ability to examine and modify symbolic links." -" Python itself can tell you what functionality is locally available." +"Not all platforms provide the ability to examine and modify symbolic links. " +"Python itself can tell you what functionality is locally available." msgstr "" -"Nem todas as plataformas oferecem a capacidade de examinar e modificar links" -" simbólicos. O próprio Python pode dizer qual funcionalidade está disponível" -" localmente." +"Nem todas as plataformas oferecem a capacidade de examinar e modificar links " +"simbólicos. O próprio Python pode dizer qual funcionalidade está disponível " +"localmente." #: ../../library/shutil.rst:120 msgid "" -"If ``os.chmod in os.supports_follow_symlinks`` is ``True``, :func:`copystat`" -" can modify the permission bits of a symbolic link." +"If ``os.chmod in os.supports_follow_symlinks`` is ``True``, :func:`copystat` " +"can modify the permission bits of a symbolic link." msgstr "" -"Se ``os.chmod in os.supports_follow_symlinks`` for ``True``, " -":func:`copystat` pode modificar os bits de permissão de um link simbólico." +"Se ``os.chmod in os.supports_follow_symlinks`` for ``True``, :func:" +"`copystat` pode modificar os bits de permissão de um link simbólico." #: ../../library/shutil.rst:124 msgid "" -"If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat`" -" can modify the last access and modification times of a symbolic link." +"If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` " +"can modify the last access and modification times of a symbolic link." msgstr "" -"Se ``os.utime in os.supports_follow_symlinks`` for ``True``, " -":func:`copystat` pode modificar as horas da última modificação e do último " -"acesso de um link simbólico." +"Se ``os.utime in os.supports_follow_symlinks`` for ``True``, :func:" +"`copystat` pode modificar as horas da última modificação e do último acesso " +"de um link simbólico." #: ../../library/shutil.rst:128 msgid "" -"If ``os.chflags in os.supports_follow_symlinks`` is ``True``, " -":func:`copystat` can modify the flags of a symbolic link. (``os.chflags`` " -"is not available on all platforms.)" +"If ``os.chflags in os.supports_follow_symlinks`` is ``True``, :func:" +"`copystat` can modify the flags of a symbolic link. (``os.chflags`` is not " +"available on all platforms.)" msgstr "" -"Se ``os.chflags in os.supports_follow_symlinks`` for ``True``, " -":func:`copystat` pode modificar os sinalizadores de um link simbólico. " -"(``os.chflags`` não está disponível em todas as plataformas.)" +"Se ``os.chflags in os.supports_follow_symlinks`` for ``True``, :func:" +"`copystat` pode modificar os sinalizadores de um link simbólico. (``os." +"chflags`` não está disponível em todas as plataformas.)" #: ../../library/shutil.rst:133 msgid "" @@ -223,9 +222,8 @@ msgid "" "can. :func:`copystat` never returns failure." msgstr "" "Nas plataformas em que algumas ou todas essas funcionalidades não estão " -"disponíveis, quando solicitado a modificar um link simbólico, " -":func:`copystat` copiará tudo o que puder. :func:`copystat` nunca retorna " -"falha." +"disponíveis, quando solicitado a modificar um link simbólico, :func:" +"`copystat` copiará tudo o que puder. :func:`copystat` nunca retorna falha." #: ../../library/shutil.rst:138 msgid "Please see :data:`os.supports_follow_symlinks` for more information." @@ -246,8 +244,8 @@ msgid "" "into *dst* using the base filename from *src*. Returns the path to the " "newly created file." msgstr "" -"Copia o arquivo *src* ao arquivo ou diretório *dst*. *src* e *dst* devem ser" -" strings. Se *dst* especificar um diretório, o arquivo será copiado para " +"Copia o arquivo *src* ao arquivo ou diretório *dst*. *src* e *dst* devem ser " +"strings. Se *dst* especificar um diretório, o arquivo será copiado para " "*dst* usando o nome do arquivo base de *src*. Retorna o caminho para o " "arquivo recém-criado." @@ -266,8 +264,8 @@ msgstr "" msgid "" ":func:`~shutil.copy` copies the file data and the file's permission mode " "(see :func:`os.chmod`). Other metadata, like the file's creation and " -"modification times, is not preserved. To preserve all file metadata from the" -" original, use :func:`~shutil.copy2` instead." +"modification times, is not preserved. To preserve all file metadata from the " +"original, use :func:`~shutil.copy2` instead." msgstr "" ":func:`~shutil.copy` copia os dados do arquivo e o modo de permissão do " "arquivo (consulte :func:`os.chmod`). Outros metadados, como os tempos de " @@ -276,34 +274,33 @@ msgstr "" #: ../../library/shutil.rst:162 msgid "" -"Added *follow_symlinks* argument. Now returns path to the newly created " -"file." +"Added *follow_symlinks* argument. Now returns path to the newly created file." msgstr "" "Adicionado argumento *follow_symlinks*. Agora retorna o caminho para o " "arquivo recém-criado." #: ../../library/shutil.rst:168 msgid "" -"Identical to :func:`~shutil.copy` except that :func:`copy2` also attempts to" -" preserve file metadata." +"Identical to :func:`~shutil.copy` except that :func:`copy2` also attempts to " +"preserve file metadata." msgstr "" "Idêntico a :func:`~shutil.copy`, exceto que :func:`copy2` também tenta " "preservar os metadados do arquivo." #: ../../library/shutil.rst:171 msgid "" -"When *follow_symlinks* is false, and *src* is a symbolic link, :func:`copy2`" -" attempts to copy all metadata from the *src* symbolic link to the newly-" -"created *dst* symbolic link. However, this functionality is not available on" -" all platforms. On platforms where some or all of this functionality is " -"unavailable, :func:`copy2` will preserve all the metadata it can; " -":func:`copy2` never returns failure." +"When *follow_symlinks* is false, and *src* is a symbolic link, :func:`copy2` " +"attempts to copy all metadata from the *src* symbolic link to the newly-" +"created *dst* symbolic link. However, this functionality is not available on " +"all platforms. On platforms where some or all of this functionality is " +"unavailable, :func:`copy2` will preserve all the metadata it can; :func:" +"`copy2` never returns failure." msgstr "" #: ../../library/shutil.rst:179 msgid "" -":func:`copy2` uses :func:`copystat` to copy the file metadata. Please see " -":func:`copystat` for more information about platform support for modifying " +":func:`copy2` uses :func:`copystat` to copy the file metadata. Please see :" +"func:`copystat` for more information about platform support for modifying " "symbolic link metadata." msgstr "" ":func:`copy2` usa :func:`copystat` para copiar os metadados do arquivo. Por " @@ -313,8 +310,8 @@ msgstr "" #: ../../library/shutil.rst:183 msgid "" "Added *follow_symlinks* argument, try to copy extended file system " -"attributes too (currently Linux only). Now returns path to the newly created" -" file." +"attributes too (currently Linux only). Now returns path to the newly created " +"file." msgstr "" "Adicionado argumento *follow_symlinks*, tenta copiar também atributos " "estendidos do sistema de arquivos (atualmente apenas no Linux). Agora " @@ -322,8 +319,8 @@ msgstr "" #: ../../library/shutil.rst:190 msgid "" -"This factory function creates a function that can be used as a callable for " -":func:`copytree`\\'s *ignore* argument, ignoring files and directories that " +"This factory function creates a function that can be used as a callable for :" +"func:`copytree`\\'s *ignore* argument, ignoring files and directories that " "match one of the glob-style *patterns* provided. See the example below." msgstr "" "Esta função de fábrica cria uma função que pode ser usada como um chamável " @@ -349,9 +346,9 @@ msgid "" msgstr "" "Se *symlinks* for verdadeiro, os links simbólicos na árvore de origem são " "representados como links simbólicos na nova árvore e os metadados dos links " -"originais serão copiados na medida do permitido pela plataforma; se falso ou" -" omitido, o conteúdo e os metadados dos arquivos vinculados são copiados " -"para a nova árvore." +"originais serão copiados na medida do permitido pela plataforma; se falso ou " +"omitido, o conteúdo e os metadados dos arquivos vinculados são copiados para " +"a nova árvore." #: ../../library/shutil.rst:210 msgid "" @@ -366,30 +363,30 @@ msgstr "" "existir, uma exceção será adicionada na lista de erros gerados em uma " "exceção :exc:`Error` no final do processo de cópia. Você pode definir o " "sinalizador opcional *ignore_dangling_symlinks* como true se desejar " -"silenciar esta exceção. Observe que esta opção não tem efeito em plataformas" -" que não possuem suporte a :func:`os.symlink`." +"silenciar esta exceção. Observe que esta opção não tem efeito em plataformas " +"que não possuem suporte a :func:`os.symlink`." #: ../../library/shutil.rst:217 msgid "" "If *ignore* is given, it must be a callable that will receive as its " -"arguments the directory being visited by :func:`copytree`, and a list of its" -" contents, as returned by :func:`os.listdir`. Since :func:`copytree` is " +"arguments the directory being visited by :func:`copytree`, and a list of its " +"contents, as returned by :func:`os.listdir`. Since :func:`copytree` is " "called recursively, the *ignore* callable will be called once for each " "directory that is copied. The callable must return a sequence of directory " -"and file names relative to the current directory (i.e. a subset of the items" -" in its second argument); these names will then be ignored in the copy " -"process. :func:`ignore_patterns` can be used to create such a callable that" -" ignores names based on glob-style patterns." +"and file names relative to the current directory (i.e. a subset of the items " +"in its second argument); these names will then be ignored in the copy " +"process. :func:`ignore_patterns` can be used to create such a callable that " +"ignores names based on glob-style patterns." msgstr "" "Se *ignore* for fornecido, deve ser um chamável que receberá como argumento " -"o diretório que está sendo visitado por :func:`copytree`, e uma lista de seu" -" conteúdo, retornada por :func:`os.listdir`. Como :func:`copytree` é chamada" -" recursivamente, o chamável *ignore* será chamado uma vez para cada " -"diretório que é copiado. O chamável deve retornar uma sequência de nomes de " -"diretório e arquivo em relação ao diretório atual (ou seja, um subconjunto " -"dos itens em seu segundo argumento); esses nomes serão ignorados no processo" -" de cópia. :func:`ignore_patterns` pode ser usado para criar um chamável que" -" ignore nomes com base em padrões de estilo glob." +"o diretório que está sendo visitado por :func:`copytree`, e uma lista de seu " +"conteúdo, retornada por :func:`os.listdir`. Como :func:`copytree` é chamada " +"recursivamente, o chamável *ignore* será chamado uma vez para cada diretório " +"que é copiado. O chamável deve retornar uma sequência de nomes de diretório " +"e arquivo em relação ao diretório atual (ou seja, um subconjunto dos itens " +"em seu segundo argumento); esses nomes serão ignorados no processo de " +"cópia. :func:`ignore_patterns` pode ser usado para criar um chamável que " +"ignore nomes com base em padrões de estilo glob." #: ../../library/shutil.rst:227 msgid "" @@ -400,8 +397,8 @@ msgstr "" #: ../../library/shutil.rst:229 msgid "" -"If *copy_function* is given, it must be a callable that will be used to copy" -" each file. It will be called with the source path and the destination path " +"If *copy_function* is given, it must be a callable that will be used to copy " +"each file. It will be called with the source path and the destination path " "as arguments. By default, :func:`shutil.copy2` is used, but any function " "that supports the same signature (like :func:`shutil.copy`) can be used." msgstr "" @@ -419,19 +416,19 @@ msgstr "" #: ../../library/shutil.rst:249 msgid "" -"Delete an entire directory tree; *path* must point to a directory (but not a" -" symbolic link to a directory). If *ignore_errors* is true, errors " -"resulting from failed removals will be ignored; if false or omitted, such " -"errors are handled by calling a handler specified by *onerror* or, if that " -"is omitted, they raise an exception." +"Delete an entire directory tree; *path* must point to a directory (but not a " +"symbolic link to a directory). If *ignore_errors* is true, errors resulting " +"from failed removals will be ignored; if false or omitted, such errors are " +"handled by calling a handler specified by *onerror* or, if that is omitted, " +"they raise an exception." msgstr "" #: ../../library/shutil.rst:257 msgid "" "On platforms that support the necessary fd-based functions a symlink attack " -"resistant version of :func:`rmtree` is used by default. On other platforms," -" the :func:`rmtree` implementation is susceptible to a symlink attack: given" -" proper timing and circumstances, attackers can manipulate symlinks on the " +"resistant version of :func:`rmtree` is used by default. On other platforms, " +"the :func:`rmtree` implementation is susceptible to a symlink attack: given " +"proper timing and circumstances, attackers can manipulate symlinks on the " "filesystem to delete files they wouldn't be able to access otherwise. " "Applications can use the :data:`rmtree.avoids_symlink_attacks` function " "attribute to determine which case applies." @@ -445,11 +442,11 @@ msgstr "" #: ../../library/shutil.rst:268 msgid "" -"The first parameter, *function*, is the function which raised the exception;" -" it depends on the platform and implementation. The second parameter, " +"The first parameter, *function*, is the function which raised the exception; " +"it depends on the platform and implementation. The second parameter, " "*path*, will be the path name passed to *function*. The third parameter, " -"*excinfo*, will be the exception information returned by " -":func:`sys.exc_info`. Exceptions raised by *onerror* will not be caught." +"*excinfo*, will be the exception information returned by :func:`sys." +"exc_info`. Exceptions raised by *onerror* will not be caught." msgstr "" #: ../../library/shutil.rst:274 @@ -460,47 +457,47 @@ msgstr "" #: ../../library/shutil.rst:280 msgid "" -"Indicates whether the current platform and implementation provides a symlink" -" attack resistant version of :func:`rmtree`. Currently this is only true " -"for platforms supporting fd-based directory access functions." +"Indicates whether the current platform and implementation provides a symlink " +"attack resistant version of :func:`rmtree`. Currently this is only true for " +"platforms supporting fd-based directory access functions." msgstr "" #: ../../library/shutil.rst:289 msgid "" -"Recursively move a file or directory (*src*) to another location (*dst*) and" -" return the destination." +"Recursively move a file or directory (*src*) to another location (*dst*) and " +"return the destination." msgstr "" #: ../../library/shutil.rst:292 msgid "" -"If the destination is an existing directory, then *src* is moved inside that" -" directory. If the destination already exists but is not a directory, it may" -" be overwritten depending on :func:`os.rename` semantics." +"If the destination is an existing directory, then *src* is moved inside that " +"directory. If the destination already exists but is not a directory, it may " +"be overwritten depending on :func:`os.rename` semantics." msgstr "" #: ../../library/shutil.rst:296 msgid "" "If the destination is on the current filesystem, then :func:`os.rename` is " "used. Otherwise, *src* is copied to *dst* using *copy_function* and then " -"removed. In case of symlinks, a new symlink pointing to the target of *src*" -" will be created in or as *dst* and *src* will be removed." +"removed. In case of symlinks, a new symlink pointing to the target of *src* " +"will be created in or as *dst* and *src* will be removed." msgstr "" #: ../../library/shutil.rst:301 msgid "" "If *copy_function* is given, it must be a callable that takes two arguments " -"*src* and *dst*, and will be used to copy *src* to *dest* if " -":func:`os.rename` cannot be used. If the source is a directory, " -":func:`copytree` is called, passing it the :func:`copy_function`. The " -"default *copy_function* is :func:`copy2`. Using :func:`~shutil.copy` as the" -" *copy_function* allows the move to succeed when it is not possible to also " -"copy the metadata, at the expense of not copying any of the metadata." +"*src* and *dst*, and will be used to copy *src* to *dest* if :func:`os." +"rename` cannot be used. If the source is a directory, :func:`copytree` is " +"called, passing it the :func:`copy_function`. The default *copy_function* " +"is :func:`copy2`. Using :func:`~shutil.copy` as the *copy_function* allows " +"the move to succeed when it is not possible to also copy the metadata, at " +"the expense of not copying any of the metadata." msgstr "" #: ../../library/shutil.rst:309 msgid "" -"Added explicit symlink handling for foreign filesystems, thus adapting it to" -" the behavior of GNU's :program:`mv`. Now returns *dst*." +"Added explicit symlink handling for foreign filesystems, thus adapting it to " +"the behavior of GNU's :program:`mv`. Now returns *dst*." msgstr "" #: ../../library/shutil.rst:314 @@ -559,18 +556,18 @@ msgstr "" msgid "" "On Windows, the current directory is always prepended to the *path* whether " "or not you use the default or provide your own, which is the behavior the " -"command shell uses when finding executables. Additionally, when finding the" -" *cmd* in the *path*, the ``PATHEXT`` environment variable is checked. For " -"example, if you call ``shutil.which(\"python\")``, :func:`which` will search" -" ``PATHEXT`` to know that it should look for ``python.exe`` within the " -"*path* directories. For example, on Windows::" +"command shell uses when finding executables. Additionally, when finding the " +"*cmd* in the *path*, the ``PATHEXT`` environment variable is checked. For " +"example, if you call ``shutil.which(\"python\")``, :func:`which` will search " +"``PATHEXT`` to know that it should look for ``python.exe`` within the *path* " +"directories. For example, on Windows::" msgstr "" #: ../../library/shutil.rst:369 msgid "" "This exception collects exceptions that are raised during a multi-file " -"operation. For :func:`copytree`, the exception argument is a list of " -"3-tuples (*srcname*, *dstname*, *exception*)." +"operation. For :func:`copytree`, the exception argument is a list of 3-" +"tuples (*srcname*, *dstname*, *exception*)." msgstr "" #: ../../library/shutil.rst:377 @@ -595,8 +592,7 @@ msgid "" msgstr "" #: ../../library/shutil.rst:423 -msgid "" -"Another example that uses the *ignore* argument to add a logging call::" +msgid "Another example that uses the *ignore* argument to add a logging call::" msgstr "" #: ../../library/shutil.rst:438 @@ -607,8 +603,8 @@ msgstr "exemplo rmtree" msgid "" "This example shows how to remove a directory tree on Windows where some of " "the files have their read-only bit set. It uses the onerror callback to " -"clear the readonly bit and reattempt the remove. Any subsequent failure will" -" propagate. ::" +"clear the readonly bit and reattempt the remove. Any subsequent failure will " +"propagate. ::" msgstr "" #: ../../library/shutil.rst:458 @@ -631,10 +627,10 @@ msgstr "" #: ../../library/shutil.rst:473 msgid "" -"*base_name* is the name of the file to create, including the path, minus any" -" format-specific extension. *format* is the archive format: one of \"zip\" " -"(if the :mod:`zlib` module is available), \"tar\", \"gztar\" (if the " -":mod:`zlib` module is available), \"bztar\" (if the :mod:`bz2` module is " +"*base_name* is the name of the file to create, including the path, minus any " +"format-specific extension. *format* is the archive format: one of \"zip" +"\" (if the :mod:`zlib` module is available), \"tar\", \"gztar\" (if the :mod:" +"`zlib` module is available), \"bztar\" (if the :mod:`bz2` module is " "available), or \"xztar\" (if the :mod:`lzma` module is available)." msgstr "" @@ -719,16 +715,16 @@ msgstr "" #: ../../library/shutil.rst:522 msgid "" "*function* is the callable that will be used to unpack archives. The " -"callable will receive the *base_name* of the file to create, followed by the" -" *base_dir* (which defaults to :data:`os.curdir`) to start archiving from. " +"callable will receive the *base_name* of the file to create, followed by the " +"*base_dir* (which defaults to :data:`os.curdir`) to start archiving from. " "Further arguments are passed as keyword arguments: *owner*, *group*, " "*dry_run* and *logger* (as passed in :func:`make_archive`)." msgstr "" #: ../../library/shutil.rst:528 msgid "" -"If given, *extra_args* is a sequence of ``(name, value)`` pairs that will be" -" used as extra keywords arguments when the archiver callable is used." +"If given, *extra_args* is a sequence of ``(name, value)`` pairs that will be " +"used as extra keywords arguments when the archiver callable is used." msgstr "" #: ../../library/shutil.rst:531 @@ -753,12 +749,11 @@ msgstr "" #: ../../library/shutil.rst:547 msgid "" -"*format* is the archive format: one of \"zip\", \"tar\", \"gztar\", " -"\"bztar\", or \"xztar\". Or any other format registered with " -":func:`register_unpack_format`. If not provided, :func:`unpack_archive` " -"will use the archive file name extension and see if an unpacker was " -"registered for that extension. In case none is found, a :exc:`ValueError` " -"is raised." +"*format* is the archive format: one of \"zip\", \"tar\", \"gztar\", \"bztar" +"\", or \"xztar\". Or any other format registered with :func:" +"`register_unpack_format`. If not provided, :func:`unpack_archive` will use " +"the archive file name extension and see if an unpacker was registered for " +"that extension. In case none is found, a :exc:`ValueError` is raised." msgstr "" #: ../../library/shutil.rst:554 @@ -768,15 +763,15 @@ msgstr "" #: ../../library/shutil.rst:560 msgid "" "Registers an unpack format. *name* is the name of the format and " -"*extensions* is a list of extensions corresponding to the format, like " -"``.zip`` for Zip files." +"*extensions* is a list of extensions corresponding to the format, like ``." +"zip`` for Zip files." msgstr "" #: ../../library/shutil.rst:564 msgid "" "*function* is the callable that will be used to unpack archives. The " -"callable will receive the path of the archive, followed by the directory the" -" archive must be extracted to." +"callable will receive the path of the archive, followed by the directory the " +"archive must be extracted to." msgstr "" #: ../../library/shutil.rst:568 @@ -838,15 +833,15 @@ msgstr "" #: ../../library/shutil.rst:636 msgid "" "For each of the two dimensions, the environment variable, ``COLUMNS`` and " -"``LINES`` respectively, is checked. If the variable is defined and the value" -" is a positive integer, it is used." +"``LINES`` respectively, is checked. If the variable is defined and the value " +"is a positive integer, it is used." msgstr "" #: ../../library/shutil.rst:640 msgid "" "When ``COLUMNS`` or ``LINES`` is not defined, which is the common case, the " -"terminal connected to :data:`sys.__stdout__` is queried by invoking " -":func:`os.get_terminal_size`." +"terminal connected to :data:`sys.__stdout__` is queried by invoking :func:" +"`os.get_terminal_size`." msgstr "" #: ../../library/shutil.rst:644 diff --git a/library/signal.po b/library/signal.po index ef6b3cb28..a6c929b39 100644 --- a/library/signal.po +++ b/library/signal.po @@ -1,22 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # And Past , 2019 # Renan Lopes , 2019 -# +# Marco Rougeth , 2019 +# Alexandre B A Villares, 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Renan Lopes , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Alexandre B A Villares, 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,14 +36,14 @@ msgstr "" #: ../../library/signal.rst:13 msgid "General rules" -msgstr "" +msgstr "Regras gerais" #: ../../library/signal.rst:15 msgid "" "The :func:`signal.signal` function allows defining custom handlers to be " "executed when a signal is received. A small number of default handlers are " -"installed: :const:`SIGPIPE` is ignored (so write errors on pipes and sockets" -" can be reported as ordinary Python exceptions) and :const:`SIGINT` is " +"installed: :const:`SIGPIPE` is ignored (so write errors on pipes and sockets " +"can be reported as ordinary Python exceptions) and :const:`SIGINT` is " "translated into a :exc:`KeyboardInterrupt` exception if the parent process " "has not changed it." msgstr "" @@ -49,8 +52,8 @@ msgstr "" msgid "" "A handler for a particular signal, once set, remains installed until it is " "explicitly reset (Python emulates the BSD style interface regardless of the " -"underlying implementation), with the exception of the handler for " -":const:`SIGCHLD`, which follows the underlying implementation." +"underlying implementation), with the exception of the handler for :const:" +"`SIGCHLD`, which follows the underlying implementation." msgstr "" #: ../../library/signal.rst:29 @@ -61,19 +64,19 @@ msgstr "" msgid "" "A Python signal handler does not get executed inside the low-level (C) " "signal handler. Instead, the low-level signal handler sets a flag which " -"tells the :term:`virtual machine` to execute the corresponding Python signal" -" handler at a later point(for example at the next :term:`bytecode` " +"tells the :term:`virtual machine` to execute the corresponding Python signal " +"handler at a later point(for example at the next :term:`bytecode` " "instruction). This has consequences:" msgstr "" #: ../../library/signal.rst:37 msgid "" -"It makes little sense to catch synchronous errors like :const:`SIGFPE` or " -":const:`SIGSEGV` that are caused by an invalid operation in C code. Python " +"It makes little sense to catch synchronous errors like :const:`SIGFPE` or :" +"const:`SIGSEGV` that are caused by an invalid operation in C code. Python " "will return from the signal handler to the C code, which is likely to raise " "the same signal again, causing Python to apparently hang. From Python 3.3 " -"onwards, you can use the :mod:`faulthandler` module to report on synchronous" -" errors." +"onwards, you can use the :mod:`faulthandler` module to report on synchronous " +"errors." msgstr "" #: ../../library/signal.rst:44 @@ -91,8 +94,8 @@ msgstr "" #: ../../library/signal.rst:56 msgid "" "Python signal handlers are always executed in the main Python thread, even " -"if the signal was received in another thread. This means that signals can't" -" be used as a means of inter-thread communication. You can use the " +"if the signal was received in another thread. This means that signals can't " +"be used as a means of inter-thread communication. You can use the " "synchronization primitives from the :mod:`threading` module instead." msgstr "" @@ -106,12 +109,11 @@ msgstr "" #: ../../library/signal.rst:67 msgid "" -"signal (SIG*), handler (:const:`SIG_DFL`, :const:`SIG_IGN`) and sigmask " -"(:const:`SIG_BLOCK`, :const:`SIG_UNBLOCK`, :const:`SIG_SETMASK`) related " -"constants listed below were turned into :class:`enums `. " -":func:`getsignal`, :func:`pthread_sigmask`, :func:`sigpending` and " -":func:`sigwait` functions return human-readable :class:`enums " -"`." +"signal (SIG*), handler (:const:`SIG_DFL`, :const:`SIG_IGN`) and sigmask (:" +"const:`SIG_BLOCK`, :const:`SIG_UNBLOCK`, :const:`SIG_SETMASK`) related " +"constants listed below were turned into :class:`enums `. :func:" +"`getsignal`, :func:`pthread_sigmask`, :func:`sigpending` and :func:`sigwait` " +"functions return human-readable :class:`enums `." msgstr "" #: ../../library/signal.rst:77 @@ -133,270 +135,368 @@ msgid "" msgstr "" #: ../../library/signal.rst:96 +msgid "Abort signal from :manpage:`abort(3)`." +msgstr "" + +#: ../../library/signal.rst:100 +msgid "Timer signal from :manpage:`alarm(2)`." +msgstr "" + +#: ../../library/signal.rst:102 ../../library/signal.rst:114 +#: ../../library/signal.rst:130 ../../library/signal.rst:144 +#: ../../library/signal.rst:162 ../../library/signal.rst:170 +#: ../../library/signal.rst:184 ../../library/signal.rst:190 +#: ../../library/signal.rst:196 ../../library/signal.rst:407 +#: ../../library/signal.rst:414 +msgid ":ref:`Availability `: Unix." +msgstr ":ref:`Disponibilidade `: Unix." + +#: ../../library/signal.rst:106 +msgid "Interrupt from keyboard (CTRL + BREAK)." +msgstr "" + +#: ../../library/signal.rst:108 ../../library/signal.rst:120 +#: ../../library/signal.rst:215 ../../library/signal.rst:225 +msgid ":ref:`Availability `: Windows." +msgstr ":ref:`Disponibilidade `: Windows." + +#: ../../library/signal.rst:112 +msgid "Bus error (bad memory access)." +msgstr "" + +#: ../../library/signal.rst:118 +msgid "Child process stopped or terminated." +msgstr "" + +#: ../../library/signal.rst:124 +msgid "Alias to :data:`SIGCHLD`." +msgstr "" + +#: ../../library/signal.rst:128 +msgid "Continue the process if it is currently stopped" +msgstr "" + +#: ../../library/signal.rst:134 +msgid "Floating-point exception. For example, division by zero." +msgstr "" + +#: ../../library/signal.rst:137 +msgid "" +":exc:`ZeroDivisionError` is raised when the second argument of a division or " +"modulo operation is zero." +msgstr "" + +#: ../../library/signal.rst:142 +msgid "" +"Hangup detected on controlling terminal or death of controlling process." +msgstr "" + +#: ../../library/signal.rst:148 +msgid "Illegal instruction." +msgstr "" + +#: ../../library/signal.rst:152 +msgid "Interrupt from keyboard (CTRL + C)." +msgstr "" + +#: ../../library/signal.rst:154 +msgid "Default action is to raise :exc:`KeyboardInterrupt`." +msgstr "" + +#: ../../library/signal.rst:158 +msgid "Kill signal." +msgstr "" + +#: ../../library/signal.rst:160 +msgid "It cannot be caught, blocked, or ignored." +msgstr "" + +#: ../../library/signal.rst:166 +msgid "Broken pipe: write to pipe with no readers." +msgstr "" + +#: ../../library/signal.rst:168 +msgid "Default action is to ignore the signal." +msgstr "" + +#: ../../library/signal.rst:174 +msgid "Segmentation fault: invalid memory reference." +msgstr "" + +#: ../../library/signal.rst:178 +msgid "Termination signal." +msgstr "" + +#: ../../library/signal.rst:182 +msgid "User-defined signal 1." +msgstr "" + +#: ../../library/signal.rst:188 +msgid "User-defined signal 2." +msgstr "" + +#: ../../library/signal.rst:194 +msgid "Window resize signal." +msgstr "" + +#: ../../library/signal.rst:200 msgid "" "All the signal numbers are defined symbolically. For example, the hangup " "signal is defined as :const:`signal.SIGHUP`; the variable names are " "identical to the names used in C programs, as found in ````. The " "Unix man page for ':c:func:`signal`' lists the existing signals (on some " -"systems this is :manpage:`signal(2)`, on others the list is in " -":manpage:`signal(7)`). Note that not all systems define the same set of " -"signal names; only those names defined by the system are defined by this " -"module." +"systems this is :manpage:`signal(2)`, on others the list is in :manpage:" +"`signal(7)`). Note that not all systems define the same set of signal names; " +"only those names defined by the system are defined by this module." msgstr "" -#: ../../library/signal.rst:107 +#: ../../library/signal.rst:211 msgid "" "The signal corresponding to the :kbd:`Ctrl+C` keystroke event. This signal " "can only be used with :func:`os.kill`." msgstr "" -#: ../../library/signal.rst:111 ../../library/signal.rst:121 -msgid ":ref:`Availability `: Windows." -msgstr "" - -#: ../../library/signal.rst:117 +#: ../../library/signal.rst:221 msgid "" "The signal corresponding to the :kbd:`Ctrl+Break` keystroke event. This " "signal can only be used with :func:`os.kill`." msgstr "" -#: ../../library/signal.rst:127 +#: ../../library/signal.rst:231 msgid "One more than the number of the highest signal number." msgstr "" -#: ../../library/signal.rst:132 +#: ../../library/signal.rst:236 msgid "" "Decrements interval timer in real time, and delivers :const:`SIGALRM` upon " "expiration." msgstr "" -#: ../../library/signal.rst:138 +#: ../../library/signal.rst:242 msgid "" "Decrements interval timer only when the process is executing, and delivers " "SIGVTALRM upon expiration." msgstr "" -#: ../../library/signal.rst:144 +#: ../../library/signal.rst:248 msgid "" -"Decrements interval timer both when the process executes and when the system" -" is executing on behalf of the process. Coupled with ITIMER_VIRTUAL, this " +"Decrements interval timer both when the process executes and when the system " +"is executing on behalf of the process. Coupled with ITIMER_VIRTUAL, this " "timer is usually used to profile the time spent by the application in user " "and kernel space. SIGPROF is delivered upon expiration." msgstr "" -#: ../../library/signal.rst:152 +#: ../../library/signal.rst:256 msgid "" "A possible value for the *how* parameter to :func:`pthread_sigmask` " "indicating that signals are to be blocked." msgstr "" -#: ../../library/signal.rst:159 +#: ../../library/signal.rst:263 msgid "" "A possible value for the *how* parameter to :func:`pthread_sigmask` " "indicating that signals are to be unblocked." msgstr "" -#: ../../library/signal.rst:166 +#: ../../library/signal.rst:270 msgid "" "A possible value for the *how* parameter to :func:`pthread_sigmask` " "indicating that the signal mask is to be replaced." msgstr "" -#: ../../library/signal.rst:172 +#: ../../library/signal.rst:276 msgid "The :mod:`signal` module defines one exception:" msgstr "" -#: ../../library/signal.rst:176 +#: ../../library/signal.rst:280 msgid "" -"Raised to signal an error from the underlying :func:`setitimer` or " -":func:`getitimer` implementation. Expect this error if an invalid interval " -"timer or a negative time is passed to :func:`setitimer`. This error is a " -"subtype of :exc:`OSError`." +"Raised to signal an error from the underlying :func:`setitimer` or :func:" +"`getitimer` implementation. Expect this error if an invalid interval timer " +"or a negative time is passed to :func:`setitimer`. This error is a subtype " +"of :exc:`OSError`." msgstr "" -#: ../../library/signal.rst:181 +#: ../../library/signal.rst:285 msgid "" -"This error used to be a subtype of :exc:`IOError`, which is now an alias of " -":exc:`OSError`." +"This error used to be a subtype of :exc:`IOError`, which is now an alias of :" +"exc:`OSError`." msgstr "" -#: ../../library/signal.rst:186 +#: ../../library/signal.rst:290 msgid "The :mod:`signal` module defines the following functions:" msgstr "" -#: ../../library/signal.rst:191 +#: ../../library/signal.rst:295 msgid "" -"If *time* is non-zero, this function requests that a :const:`SIGALRM` signal" -" be sent to the process in *time* seconds. Any previously scheduled alarm is" -" canceled (only one alarm can be scheduled at any time). The returned value" -" is then the number of seconds before any previously set alarm was to have " +"If *time* is non-zero, this function requests that a :const:`SIGALRM` signal " +"be sent to the process in *time* seconds. Any previously scheduled alarm is " +"canceled (only one alarm can be scheduled at any time). The returned value " +"is then the number of seconds before any previously set alarm was to have " "been delivered. If *time* is zero, no alarm is scheduled, and any scheduled " "alarm is canceled. If the return value is zero, no alarm is currently " "scheduled." msgstr "" -#: ../../library/signal.rst:199 +#: ../../library/signal.rst:303 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`alarm(2)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`alarm(2)` for further information." msgstr "" -#: ../../library/signal.rst:204 +#: ../../library/signal.rst:308 msgid "" "Return the current signal handler for the signal *signalnum*. The returned " -"value may be a callable Python object, or one of the special values " -":const:`signal.SIG_IGN`, :const:`signal.SIG_DFL` or :const:`None`. Here, " -":const:`signal.SIG_IGN` means that the signal was previously ignored, " -":const:`signal.SIG_DFL` means that the default way of handling the signal " -"was previously in use, and ``None`` means that the previous signal handler " -"was not installed from Python." +"value may be a callable Python object, or one of the special values :const:" +"`signal.SIG_IGN`, :const:`signal.SIG_DFL` or :const:`None`. Here, :const:" +"`signal.SIG_IGN` means that the signal was previously ignored, :const:" +"`signal.SIG_DFL` means that the default way of handling the signal was " +"previously in use, and ``None`` means that the previous signal handler was " +"not installed from Python." msgstr "" -#: ../../library/signal.rst:215 +#: ../../library/signal.rst:319 msgid "" "Cause the process to sleep until a signal is received; the appropriate " "handler will then be called. Returns nothing." msgstr "" -#: ../../library/signal.rst:220 +#: ../../library/signal.rst:324 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`signal(2)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`signal(2)` for further information." msgstr "" -#: ../../library/signal.rst:221 +#: ../../library/signal.rst:325 msgid "" -"See also :func:`sigwait`, :func:`sigwaitinfo`, :func:`sigtimedwait` and " -":func:`sigpending`." +"See also :func:`sigwait`, :func:`sigwaitinfo`, :func:`sigtimedwait` and :" +"func:`sigpending`." msgstr "" -#: ../../library/signal.rst:227 +#: ../../library/signal.rst:331 msgid "" -"Send the signal *signalnum* to the thread *thread_id*, another thread in the" -" same process as the caller. The target thread can be executing any code " +"Send the signal *signalnum* to the thread *thread_id*, another thread in the " +"same process as the caller. The target thread can be executing any code " "(Python or not). However, if the target thread is executing the Python " "interpreter, the Python signal handlers will be :ref:`executed by the main " "thread `. Therefore, the only point of sending a " -"signal to a particular Python thread would be to force a running system call" -" to fail with :exc:`InterruptedError`." +"signal to a particular Python thread would be to force a running system call " +"to fail with :exc:`InterruptedError`." msgstr "" -#: ../../library/signal.rst:235 +#: ../../library/signal.rst:339 msgid "" "Use :func:`threading.get_ident()` or the :attr:`~threading.Thread.ident` " "attribute of :class:`threading.Thread` objects to get a suitable value for " "*thread_id*." msgstr "" -#: ../../library/signal.rst:239 +#: ../../library/signal.rst:343 msgid "" "If *signalnum* is 0, then no signal is sent, but error checking is still " "performed; this can be used to check if the target thread is still running." msgstr "" -#: ../../library/signal.rst:244 +#: ../../library/signal.rst:348 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`pthread_kill(3)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`pthread_kill(3)` for further information." msgstr "" -#: ../../library/signal.rst:245 +#: ../../library/signal.rst:349 msgid "See also :func:`os.kill`." msgstr "" -#: ../../library/signal.rst:252 +#: ../../library/signal.rst:356 msgid "" "Fetch and/or change the signal mask of the calling thread. The signal mask " "is the set of signals whose delivery is currently blocked for the caller. " "Return the old signal mask as a set of signals." msgstr "" -#: ../../library/signal.rst:256 +#: ../../library/signal.rst:360 msgid "" "The behavior of the call is dependent on the value of *how*, as follows." msgstr "" -#: ../../library/signal.rst:258 +#: ../../library/signal.rst:362 msgid "" ":data:`SIG_BLOCK`: The set of blocked signals is the union of the current " "set and the *mask* argument." msgstr "" -#: ../../library/signal.rst:260 +#: ../../library/signal.rst:364 msgid "" ":data:`SIG_UNBLOCK`: The signals in *mask* are removed from the current set " "of blocked signals. It is permissible to attempt to unblock a signal which " "is not blocked." msgstr "" -#: ../../library/signal.rst:263 +#: ../../library/signal.rst:367 msgid "" ":data:`SIG_SETMASK`: The set of blocked signals is set to the *mask* " "argument." msgstr "" -#: ../../library/signal.rst:266 +#: ../../library/signal.rst:370 msgid "" -"*mask* is a set of signal numbers (e.g. {:const:`signal.SIGINT`, " -":const:`signal.SIGTERM`}). Use ``range(1, signal.NSIG)`` for a full mask " -"including all signals." +"*mask* is a set of signal numbers (e.g. {:const:`signal.SIGINT`, :const:" +"`signal.SIGTERM`}). Use ``range(1, signal.NSIG)`` for a full mask including " +"all signals." msgstr "" -#: ../../library/signal.rst:270 +#: ../../library/signal.rst:374 msgid "" "For example, ``signal.pthread_sigmask(signal.SIG_BLOCK, [])`` reads the " "signal mask of the calling thread." msgstr "" -#: ../../library/signal.rst:275 +#: ../../library/signal.rst:377 +msgid ":data:`SIGKILL` and :data:`SIGSTOP` cannot be blocked." +msgstr "" + +#: ../../library/signal.rst:381 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`sigprocmask(3)` and :manpage:`pthread_sigmask(3)` for further " -"information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`sigprocmask(3)` and :manpage:`pthread_sigmask(3)` for further information." msgstr "" -#: ../../library/signal.rst:276 +#: ../../library/signal.rst:382 msgid "See also :func:`pause`, :func:`sigpending` and :func:`sigwait`." -msgstr "" +msgstr "Veja também :func:`pause`, :func:`sigpending` e :func:`sigwait`." -#: ../../library/signal.rst:283 +#: ../../library/signal.rst:389 msgid "" -"Sets given interval timer (one of :const:`signal.ITIMER_REAL`, " -":const:`signal.ITIMER_VIRTUAL` or :const:`signal.ITIMER_PROF`) specified by " -"*which* to fire after *seconds* (float is accepted, different from " -":func:`alarm`) and after that every *interval* seconds (if *interval* is " -"non-zero). The interval timer specified by *which* can be cleared by setting" -" *seconds* to zero." +"Sets given interval timer (one of :const:`signal.ITIMER_REAL`, :const:" +"`signal.ITIMER_VIRTUAL` or :const:`signal.ITIMER_PROF`) specified by *which* " +"to fire after *seconds* (float is accepted, different from :func:`alarm`) " +"and after that every *interval* seconds (if *interval* is non-zero). The " +"interval timer specified by *which* can be cleared by setting *seconds* to " +"zero." msgstr "" -#: ../../library/signal.rst:290 +#: ../../library/signal.rst:396 msgid "" "When an interval timer fires, a signal is sent to the process. The signal " "sent is dependent on the timer being used; :const:`signal.ITIMER_REAL` will " -"deliver :const:`SIGALRM`, :const:`signal.ITIMER_VIRTUAL` sends " -":const:`SIGVTALRM`, and :const:`signal.ITIMER_PROF` will deliver " -":const:`SIGPROF`." +"deliver :const:`SIGALRM`, :const:`signal.ITIMER_VIRTUAL` sends :const:" +"`SIGVTALRM`, and :const:`signal.ITIMER_PROF` will deliver :const:`SIGPROF`." msgstr "" -#: ../../library/signal.rst:296 +#: ../../library/signal.rst:402 msgid "The old values are returned as a tuple: (delay, interval)." msgstr "" -#: ../../library/signal.rst:298 +#: ../../library/signal.rst:404 msgid "" -"Attempting to pass an invalid interval timer will cause an " -":exc:`ItimerError`." +"Attempting to pass an invalid interval timer will cause an :exc:" +"`ItimerError`." msgstr "" -#: ../../library/signal.rst:301 ../../library/signal.rst:308 -msgid ":ref:`Availability `: Unix." -msgstr ":ref:`Disponibilidade `: Unix." - -#: ../../library/signal.rst:306 +#: ../../library/signal.rst:412 msgid "Returns current value of a given interval timer specified by *which*." msgstr "" -#: ../../library/signal.rst:313 +#: ../../library/signal.rst:419 msgid "" "Set the wakeup file descriptor to *fd*. When a signal is received, the " "signal number is written as a single byte into the fd. This can be used by " @@ -404,40 +504,40 @@ msgid "" "processed." msgstr "" -#: ../../library/signal.rst:318 +#: ../../library/signal.rst:424 msgid "" "The old wakeup fd is returned (or -1 if file descriptor wakeup was not " "enabled). If *fd* is -1, file descriptor wakeup is disabled. If not -1, " -"*fd* must be non-blocking. It is up to the library to remove any bytes from" -" *fd* before calling poll or select again." +"*fd* must be non-blocking. It is up to the library to remove any bytes from " +"*fd* before calling poll or select again." msgstr "" -#: ../../library/signal.rst:323 ../../library/signal.rst:376 +#: ../../library/signal.rst:429 ../../library/signal.rst:482 msgid "" "When threads are enabled, this function can only be called from the main " -"thread; attempting to call it from other threads will cause a " -":exc:`ValueError` exception to be raised." +"thread; attempting to call it from other threads will cause a :exc:" +"`ValueError` exception to be raised." msgstr "" -#: ../../library/signal.rst:327 +#: ../../library/signal.rst:433 msgid "" "There are two common ways to use this function. In both approaches, you use " "the fd to wake up when a signal arrives, but then they differ in how they " "determine *which* signal or signals have arrived." msgstr "" -#: ../../library/signal.rst:332 +#: ../../library/signal.rst:438 msgid "" -"In the first approach, we read the data out of the fd's buffer, and the byte" -" values give you the signal numbers. This is simple, but in rare cases it " -"can run into a problem: generally the fd will have a limited amount of " -"buffer space, and if too many signals arrive too quickly, then the buffer " -"may become full, and some signals may be lost. If you use this approach, " -"then you should set ``warn_on_full_buffer=True``, which will at least cause " -"a warning to be printed to stderr when signals are lost." +"In the first approach, we read the data out of the fd's buffer, and the byte " +"values give you the signal numbers. This is simple, but in rare cases it can " +"run into a problem: generally the fd will have a limited amount of buffer " +"space, and if too many signals arrive too quickly, then the buffer may " +"become full, and some signals may be lost. If you use this approach, then " +"you should set ``warn_on_full_buffer=True``, which will at least cause a " +"warning to be printed to stderr when signals are lost." msgstr "" -#: ../../library/signal.rst:341 +#: ../../library/signal.rst:447 msgid "" "In the second approach, we use the wakeup fd *only* for wakeups, and ignore " "the actual byte values. In this case, all we care about is whether the fd's " @@ -447,188 +547,187 @@ msgid "" "spurious warning messages." msgstr "" -#: ../../library/signal.rst:348 +#: ../../library/signal.rst:454 msgid "On Windows, the function now also supports socket handles." msgstr "No Windows, a função agora também suporta manipuladores de socket." -#: ../../library/signal.rst:351 +#: ../../library/signal.rst:457 msgid "Added ``warn_on_full_buffer`` parameter." msgstr "" -#: ../../library/signal.rst:356 +#: ../../library/signal.rst:462 msgid "" "Change system call restart behaviour: if *flag* is :const:`False`, system " "calls will be restarted when interrupted by signal *signalnum*, otherwise " "system calls will be interrupted. Returns nothing." msgstr "" -#: ../../library/signal.rst:362 +#: ../../library/signal.rst:468 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`siginterrupt(3)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`siginterrupt(3)` for further information." msgstr "" -#: ../../library/signal.rst:363 +#: ../../library/signal.rst:469 msgid "" "Note that installing a signal handler with :func:`signal` will reset the " -"restart behaviour to interruptible by implicitly calling " -":c:func:`siginterrupt` with a true *flag* value for the given signal." +"restart behaviour to interruptible by implicitly calling :c:func:" +"`siginterrupt` with a true *flag* value for the given signal." msgstr "" -#: ../../library/signal.rst:370 +#: ../../library/signal.rst:476 msgid "" -"Set the handler for signal *signalnum* to the function *handler*. *handler*" -" can be a callable Python object taking two arguments (see below), or one of" -" the special values :const:`signal.SIG_IGN` or :const:`signal.SIG_DFL`. The" -" previous signal handler will be returned (see the description of " -":func:`getsignal` above). (See the Unix man page :manpage:`signal(2)` for " -"further information.)" +"Set the handler for signal *signalnum* to the function *handler*. *handler* " +"can be a callable Python object taking two arguments (see below), or one of " +"the special values :const:`signal.SIG_IGN` or :const:`signal.SIG_DFL`. The " +"previous signal handler will be returned (see the description of :func:" +"`getsignal` above). (See the Unix man page :manpage:`signal(2)` for further " +"information.)" msgstr "" -#: ../../library/signal.rst:380 +#: ../../library/signal.rst:486 msgid "" "The *handler* is called with two arguments: the signal number and the " "current stack frame (``None`` or a frame object; for a description of frame " -"objects, see the :ref:`description in the type hierarchy ` or" -" see the attribute descriptions in the :mod:`inspect` module)." +"objects, see the :ref:`description in the type hierarchy ` or " +"see the attribute descriptions in the :mod:`inspect` module)." msgstr "" -#: ../../library/signal.rst:385 +#: ../../library/signal.rst:491 msgid "" -"On Windows, :func:`signal` can only be called with :const:`SIGABRT`, " -":const:`SIGFPE`, :const:`SIGILL`, :const:`SIGINT`, :const:`SIGSEGV`, " -":const:`SIGTERM`, or :const:`SIGBREAK`. A :exc:`ValueError` will be raised " -"in any other case. Note that not all systems define the same set of signal " -"names; an :exc:`AttributeError` will be raised if a signal name is not " -"defined as ``SIG*`` module level constant." +"On Windows, :func:`signal` can only be called with :const:`SIGABRT`, :const:" +"`SIGFPE`, :const:`SIGILL`, :const:`SIGINT`, :const:`SIGSEGV`, :const:" +"`SIGTERM`, or :const:`SIGBREAK`. A :exc:`ValueError` will be raised in any " +"other case. Note that not all systems define the same set of signal names; " +"an :exc:`AttributeError` will be raised if a signal name is not defined as " +"``SIG*`` module level constant." msgstr "" -#: ../../library/signal.rst:396 +#: ../../library/signal.rst:502 msgid "" "Examine the set of signals that are pending for delivery to the calling " -"thread (i.e., the signals which have been raised while blocked). Return the" -" set of the pending signals." +"thread (i.e., the signals which have been raised while blocked). Return the " +"set of the pending signals." msgstr "" -#: ../../library/signal.rst:402 +#: ../../library/signal.rst:508 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`sigpending(2)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`sigpending(2)` for further information." msgstr "" -#: ../../library/signal.rst:403 +#: ../../library/signal.rst:509 msgid "See also :func:`pause`, :func:`pthread_sigmask` and :func:`sigwait`." -msgstr "" +msgstr "Veja também :func:`pause`, :func:`sigpending` e :func:`sigwait`." -#: ../../library/signal.rst:410 +#: ../../library/signal.rst:516 msgid "" "Suspend execution of the calling thread until the delivery of one of the " "signals specified in the signal set *sigset*. The function accepts the " -"signal (removes it from the pending list of signals), and returns the signal" -" number." +"signal (removes it from the pending list of signals), and returns the signal " +"number." msgstr "" -#: ../../library/signal.rst:416 +#: ../../library/signal.rst:522 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`sigwait(3)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`sigwait(3)` for further information." msgstr "" -#: ../../library/signal.rst:417 +#: ../../library/signal.rst:523 msgid "" -"See also :func:`pause`, :func:`pthread_sigmask`, :func:`sigpending`, " -":func:`sigwaitinfo` and :func:`sigtimedwait`." +"See also :func:`pause`, :func:`pthread_sigmask`, :func:`sigpending`, :func:" +"`sigwaitinfo` and :func:`sigtimedwait`." msgstr "" -#: ../../library/signal.rst:425 +#: ../../library/signal.rst:531 msgid "" "Suspend execution of the calling thread until the delivery of one of the " "signals specified in the signal set *sigset*. The function accepts the " "signal and removes it from the pending list of signals. If one of the " "signals in *sigset* is already pending for the calling thread, the function " "will return immediately with information about that signal. The signal " -"handler is not called for the delivered signal. The function raises an " -":exc:`InterruptedError` if it is interrupted by a signal that is not in " -"*sigset*." +"handler is not called for the delivered signal. The function raises an :exc:" +"`InterruptedError` if it is interrupted by a signal that is not in *sigset*." msgstr "" -#: ../../library/signal.rst:434 +#: ../../library/signal.rst:540 msgid "" -"The return value is an object representing the data contained in the " -":c:type:`siginfo_t` structure, namely: :attr:`si_signo`, :attr:`si_code`, " -":attr:`si_errno`, :attr:`si_pid`, :attr:`si_uid`, :attr:`si_status`, " -":attr:`si_band`." +"The return value is an object representing the data contained in the :c:type:" +"`siginfo_t` structure, namely: :attr:`si_signo`, :attr:`si_code`, :attr:" +"`si_errno`, :attr:`si_pid`, :attr:`si_uid`, :attr:`si_status`, :attr:" +"`si_band`." msgstr "" -#: ../../library/signal.rst:441 +#: ../../library/signal.rst:547 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`sigwaitinfo(2)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`sigwaitinfo(2)` for further information." msgstr "" -#: ../../library/signal.rst:442 +#: ../../library/signal.rst:548 msgid "See also :func:`pause`, :func:`sigwait` and :func:`sigtimedwait`." msgstr "" -#: ../../library/signal.rst:446 +#: ../../library/signal.rst:552 msgid "" "The function is now retried if interrupted by a signal not in *sigset* and " "the signal handler does not raise an exception (see :pep:`475` for the " "rationale)." msgstr "" -#: ../../library/signal.rst:454 +#: ../../library/signal.rst:560 msgid "" "Like :func:`sigwaitinfo`, but takes an additional *timeout* argument " "specifying a timeout. If *timeout* is specified as :const:`0`, a poll is " "performed. Returns :const:`None` if a timeout occurs." msgstr "" -#: ../../library/signal.rst:460 +#: ../../library/signal.rst:566 msgid "" -":ref:`Availability `: Unix. See the man page " -":manpage:`sigtimedwait(2)` for further information." +":ref:`Availability `: Unix. See the man page :manpage:" +"`sigtimedwait(2)` for further information." msgstr "" -#: ../../library/signal.rst:461 +#: ../../library/signal.rst:567 msgid "See also :func:`pause`, :func:`sigwait` and :func:`sigwaitinfo`." msgstr "" -#: ../../library/signal.rst:465 +#: ../../library/signal.rst:571 msgid "" "The function is now retried with the recomputed *timeout* if interrupted by " "a signal not in *sigset* and the signal handler does not raise an exception " "(see :pep:`475` for the rationale)." msgstr "" -#: ../../library/signal.rst:474 +#: ../../library/signal.rst:580 msgid "Example" msgstr "Exemplo" -#: ../../library/signal.rst:476 +#: ../../library/signal.rst:582 msgid "" "Here is a minimal example program. It uses the :func:`alarm` function to " "limit the time spent waiting to open a file; this is useful if the file is " "for a serial device that may not be turned on, which would normally cause " -"the :func:`os.open` to hang indefinitely. The solution is to set a 5-second" -" alarm before opening the file; if the operation takes too long, the alarm " +"the :func:`os.open` to hang indefinitely. The solution is to set a 5-second " +"alarm before opening the file; if the operation takes too long, the alarm " "signal will be sent, and the handler raises an exception. ::" msgstr "" -#: ../../library/signal.rst:499 +#: ../../library/signal.rst:605 msgid "Note on SIGPIPE" msgstr "" -#: ../../library/signal.rst:501 +#: ../../library/signal.rst:607 msgid "" -"Piping output of your program to tools like :manpage:`head(1)` will cause a " -":const:`SIGPIPE` signal to be sent to your process when the receiver of its " -"standard output closes early. This results in an exception like " -":code:`BrokenPipeError: [Errno 32] Broken pipe`. To handle this case, wrap " -"your entry point to catch this exception as follows::" +"Piping output of your program to tools like :manpage:`head(1)` will cause a :" +"const:`SIGPIPE` signal to be sent to your process when the receiver of its " +"standard output closes early. This results in an exception like :code:" +"`BrokenPipeError: [Errno 32] Broken pipe`. To handle this case, wrap your " +"entry point to catch this exception as follows::" msgstr "" -#: ../../library/signal.rst:528 +#: ../../library/signal.rst:634 msgid "" "Do not set :const:`SIGPIPE`'s disposition to :const:`SIG_DFL` in order to " "avoid :exc:`BrokenPipeError`. Doing that would cause your program to exit " diff --git a/library/site.po b/library/site.po index fa5c32ff3..5a5e5d4c2 100644 --- a/library/site.po +++ b/library/site.po @@ -1,20 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +26,7 @@ msgstr "" #: ../../library/site.rst:2 msgid ":mod:`site` --- Site-specific configuration hook" -msgstr "" +msgstr ":mod:`site` --- Gancho de configuração específico do site" #: ../../library/site.rst:7 msgid "**Source code:** :source:`Lib/site.py`" @@ -35,6 +38,9 @@ msgid "" "automatic import can be suppressed using the interpreter's :option:`-S` " "option." msgstr "" +"**Este módulo é importado automaticamente durante a inicialização.** A " +"importação automática pode ser suprimida usando a opção :option:`-S` do " +"interpretador." #: ../../library/site.rst:18 msgid "" @@ -44,12 +50,20 @@ msgid "" "module search path or additions to the builtins. To explicitly trigger the " "usual site-specific additions, call the :func:`site.main` function." msgstr "" +"A importação deste módulo anexará os caminhos específicos do site ao caminho " +"de pesquisa do módulo e adicionará alguns recursos internos, a menos que :" +"option:`-S` tenha sido usada. Nesse caso, este módulo pode ser importado com " +"segurança, sem modificações automáticas no caminho de pesquisa do módulo ou " +"adições aos componentes internos. Para acionar explicitamente as adições " +"habituais específicas do site, chame a função :func:`site.main`." #: ../../library/site.rst:24 msgid "" -"Importing the module used to trigger paths manipulation even when using " -":option:`-S`." +"Importing the module used to trigger paths manipulation even when using :" +"option:`-S`." msgstr "" +"A importação do módulo usado para acionar a manipulação de caminhos, mesmo " +"ao usar :option:`-S`." #: ../../library/site.rst:31 msgid "" @@ -58,48 +72,63 @@ msgid "" "empty heads are skipped. For the tail part, it uses the empty string and " "then :file:`lib/site-packages` (on Windows) or :file:`lib/python{X.Y}/site-" "packages` (on Unix and Macintosh). For each of the distinct head-tail " -"combinations, it sees if it refers to an existing directory, and if so, adds" -" it to ``sys.path`` and also inspects the newly added path for configuration" -" files." -msgstr "" +"combinations, it sees if it refers to an existing directory, and if so, adds " +"it to ``sys.path`` and also inspects the newly added path for configuration " +"files." +msgstr "" +"Começa construindo até quatro diretórios a partir de uma parte inicial e " +"outra final. Para a parte inicial, ele usa ``sys.prefix`` and ``sys." +"exec_prefix``; inícios vazios são pulados. Para a parte final, ele usa a " +"string vazia e depois :file:`lib/site-packages` (no Windows) ou :file:`lib/" +"python{X.Y}/site-packages` (no Unix e no Macintosh). Para cada uma das " +"combinações distintas de parte final, ele vê se se refere a um diretório " +"existente e, se for o caso, o adiciona ao ``sys.path`` e também inspeciona o " +"novo caminho adicionado para os arquivos de configuração." #: ../../library/site.rst:40 msgid "Support for the \"site-python\" directory has been removed." -msgstr "" +msgstr "Suporte para o diretório \"site-python\" foi removido." #: ../../library/site.rst:43 msgid "" "If a file named \"pyvenv.cfg\" exists one directory above sys.executable, " "sys.prefix and sys.exec_prefix are set to that directory and it is also " "checked for site-packages (sys.base_prefix and sys.base_exec_prefix will " -"always be the \"real\" prefixes of the Python installation). If " -"\"pyvenv.cfg\" (a bootstrap configuration file) contains the key \"include-" -"system-site-packages\" set to anything other than \"false\" (case-" -"insensitive), the system-level prefixes will still also be searched for " -"site-packages; otherwise they won't." +"always be the \"real\" prefixes of the Python installation). If \"pyvenv.cfg" +"\" (a bootstrap configuration file) contains the key \"include-system-site-" +"packages\" set to anything other than \"false\" (case-insensitive), the " +"system-level prefixes will still also be searched for site-packages; " +"otherwise they won't." msgstr "" #: ../../library/site.rst:56 msgid "" -"A path configuration file is a file whose name has the form " -":file:`{name}.pth` and exists in one of the four directories mentioned " -"above; its contents are additional items (one per line) to be added to " -"``sys.path``. Non-existing items are never added to ``sys.path``, and no " -"check is made that the item refers to a directory rather than a file. No " -"item is added to ``sys.path`` more than once. Blank lines and lines " -"beginning with ``#`` are skipped. Lines starting with ``import`` (followed " -"by space or tab) are executed." -msgstr "" +"A path configuration file is a file whose name has the form :file:`{name}." +"pth` and exists in one of the four directories mentioned above; its contents " +"are additional items (one per line) to be added to ``sys.path``. Non-" +"existing items are never added to ``sys.path``, and no check is made that " +"the item refers to a directory rather than a file. No item is added to " +"``sys.path`` more than once. Blank lines and lines beginning with ``#`` are " +"skipped. Lines starting with ``import`` (followed by space or tab) are " +"executed." +msgstr "" +"Um arquivo de configuração de caminho é aquele cujo nome tem o formato :file:" +"`{name}.pth` e que existe em um dos quatro diretórios mencionados acima; seu " +"conteúdo são itens adicionais (um por linha) a serem adicionados ao ``sys." +"path``. Itens inexistentes nunca são adicionados ao ``sys.path`` e não é " +"verificado se o item se refere a um diretório, e não a um arquivo. Nenhum " +"item é adicionado ao ``sys.path`` mais de uma vez. Linhas em branco e linhas " +"iniciadas com ``#`` são ignoradas. Linhas iniciadas com ``import`` (seguidas " +"de espaço ou tabulação) são executadas." #: ../../library/site.rst:68 msgid "" -"For example, suppose ``sys.prefix`` and ``sys.exec_prefix`` are set to " -":file:`/usr/local`. The Python X.Y library is then installed in " -":file:`/usr/local/lib/python{X.Y}`. Suppose this has a subdirectory " -":file:`/usr/local/lib/python{X.Y}/site-packages` with three " -"subsubdirectories, :file:`foo`, :file:`bar` and :file:`spam`, and two path " -"configuration files, :file:`foo.pth` and :file:`bar.pth`. Assume " -":file:`foo.pth` contains the following::" +"For example, suppose ``sys.prefix`` and ``sys.exec_prefix`` are set to :file:" +"`/usr/local`. The Python X.Y library is then installed in :file:`/usr/local/" +"lib/python{X.Y}`. Suppose this has a subdirectory :file:`/usr/local/lib/" +"python{X.Y}/site-packages` with three subsubdirectories, :file:`foo`, :file:" +"`bar` and :file:`spam`, and two path configuration files, :file:`foo.pth` " +"and :file:`bar.pth`. Assume :file:`foo.pth` contains the following::" msgstr "" #: ../../library/site.rst:82 @@ -114,44 +143,42 @@ msgstr "" #: ../../library/site.rst:94 msgid "" -"Note that :file:`bletch` is omitted because it doesn't exist; the " -":file:`bar` directory precedes the :file:`foo` directory because " -":file:`bar.pth` comes alphabetically before :file:`foo.pth`; and " -":file:`spam` is omitted because it is not mentioned in either path " -"configuration file." +"Note that :file:`bletch` is omitted because it doesn't exist; the :file:" +"`bar` directory precedes the :file:`foo` directory because :file:`bar.pth` " +"comes alphabetically before :file:`foo.pth`; and :file:`spam` is omitted " +"because it is not mentioned in either path configuration file." msgstr "" #: ../../library/site.rst:101 msgid "" -"After these path manipulations, an attempt is made to import a module named " -":mod:`sitecustomize`, which can perform arbitrary site-specific " +"After these path manipulations, an attempt is made to import a module named :" +"mod:`sitecustomize`, which can perform arbitrary site-specific " "customizations. It is typically created by a system administrator in the " -"site-packages directory. If this import fails with an :exc:`ImportError` or" -" its subclass exception, and the exception's :attr:`name` attribute equals " -"to ``'sitecustomize'``, it is silently ignored. If Python is started " -"without output streams available, as with :file:`pythonw.exe` on Windows " -"(which is used by default to start IDLE), attempted output from " -":mod:`sitecustomize` is ignored. Any other exception causes a silent and " -"perhaps mysterious failure of the process." +"site-packages directory. If this import fails with an :exc:`ImportError` or " +"its subclass exception, and the exception's :attr:`name` attribute equals to " +"``'sitecustomize'``, it is silently ignored. If Python is started without " +"output streams available, as with :file:`pythonw.exe` on Windows (which is " +"used by default to start IDLE), attempted output from :mod:`sitecustomize` " +"is ignored. Any other exception causes a silent and perhaps mysterious " +"failure of the process." msgstr "" #: ../../library/site.rst:113 msgid "" -"After this, an attempt is made to import a module named " -":mod:`usercustomize`, which can perform arbitrary user-specific " -"customizations, if :data:`ENABLE_USER_SITE` is true. This file is intended " -"to be created in the user site-packages directory (see below), which is part" -" of ``sys.path`` unless disabled by :option:`-s`. If this import fails with" -" an :exc:`ImportError` or its subclass exception, and the exception's " -":attr:`name` attribute equals to ``'usercustomize'``, it is silently " -"ignored." +"After this, an attempt is made to import a module named :mod:" +"`usercustomize`, which can perform arbitrary user-specific customizations, " +"if :data:`ENABLE_USER_SITE` is true. This file is intended to be created in " +"the user site-packages directory (see below), which is part of ``sys.path`` " +"unless disabled by :option:`-s`. If this import fails with an :exc:" +"`ImportError` or its subclass exception, and the exception's :attr:`name` " +"attribute equals to ``'usercustomize'``, it is silently ignored." msgstr "" #: ../../library/site.rst:121 msgid "" "Note that for some non-Unix systems, ``sys.prefix`` and ``sys.exec_prefix`` " -"are empty, and the path manipulations are skipped; however the import of " -":mod:`sitecustomize` and :mod:`usercustomize` is still attempted." +"are empty, and the path manipulations are skipped; however the import of :" +"mod:`sitecustomize` and :mod:`usercustomize` is still attempted." msgstr "" #: ../../library/site.rst:129 @@ -161,13 +188,13 @@ msgstr "" #: ../../library/site.rst:131 msgid "" "On systems that support :mod:`readline`, this module will also import and " -"configure the :mod:`rlcompleter` module, if Python is started in " -":ref:`interactive mode ` and without the :option:`-S` " -"option. The default behavior is enable tab-completion and to use " -":file:`~/.python_history` as the history save file. To disable it, delete " -"(or override) the :data:`sys.__interactivehook__` attribute in your " -":mod:`sitecustomize` or :mod:`usercustomize` module or your " -":envvar:`PYTHONSTARTUP` file." +"configure the :mod:`rlcompleter` module, if Python is started in :ref:" +"`interactive mode ` and without the :option:`-S` option. " +"The default behavior is enable tab-completion and to use :file:`~/." +"python_history` as the history save file. To disable it, delete (or " +"override) the :data:`sys.__interactivehook__` attribute in your :mod:" +"`sitecustomize` or :mod:`usercustomize` module or your :envvar:" +"`PYTHONSTARTUP` file." msgstr "" #: ../../library/site.rst:140 @@ -184,35 +211,34 @@ msgstr "" #: ../../library/site.rst:154 msgid "" -"Flag showing the status of the user site-packages directory. ``True`` means" -" that it is enabled and was added to ``sys.path``. ``False`` means that it " -"was disabled by user request (with :option:`-s` or " -":envvar:`PYTHONNOUSERSITE`). ``None`` means it was disabled for security " -"reasons (mismatch between user or group id and effective id) or by an " -"administrator." +"Flag showing the status of the user site-packages directory. ``True`` means " +"that it is enabled and was added to ``sys.path``. ``False`` means that it " +"was disabled by user request (with :option:`-s` or :envvar:" +"`PYTHONNOUSERSITE`). ``None`` means it was disabled for security reasons " +"(mismatch between user or group id and effective id) or by an administrator." msgstr "" #: ../../library/site.rst:164 msgid "" -"Path to the user site-packages for the running Python. Can be ``None`` if " -":func:`getusersitepackages` hasn't been called yet. Default value is " -":file:`~/.local/lib/python{X.Y}/site-packages` for UNIX and non-framework " -"Mac OS X builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for" -" Mac framework builds, and :file:`{%APPDATA%}\\\\Python\\\\Python{XY" -"}\\\\site-packages` on Windows. This directory is a site directory, which " -"means that :file:`.pth` files in it will be processed." +"Path to the user site-packages for the running Python. Can be ``None`` if :" +"func:`getusersitepackages` hasn't been called yet. Default value is :file:" +"`~/.local/lib/python{X.Y}/site-packages` for UNIX and non-framework Mac OS X " +"builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for Mac " +"framework builds, and :file:`{%APPDATA%}\\\\Python\\\\Python{XY}\\\\site-" +"packages` on Windows. This directory is a site directory, which means that :" +"file:`.pth` files in it will be processed." msgstr "" #: ../../library/site.rst:175 msgid "" -"Path to the base directory for the user site-packages. Can be ``None`` if " -":func:`getuserbase` hasn't been called yet. Default value is " -":file:`~/.local` for UNIX and Mac OS X non-framework builds, " -":file:`~/Library/Python/{X.Y}` for Mac framework builds, and " -":file:`{%APPDATA%}\\\\Python` for Windows. This value is used by Distutils " -"to compute the installation directories for scripts, data files, Python " -"modules, etc. for the :ref:`user installation scheme `. See also :envvar:`PYTHONUSERBASE`." +"Path to the base directory for the user site-packages. Can be ``None`` if :" +"func:`getuserbase` hasn't been called yet. Default value is :file:`~/." +"local` for UNIX and Mac OS X non-framework builds, :file:`~/Library/Python/" +"{X.Y}` for Mac framework builds, and :file:`{%APPDATA%}\\\\Python` for " +"Windows. This value is used by Distutils to compute the installation " +"directories for scripts, data files, Python modules, etc. for the :ref:`user " +"installation scheme `. See also :envvar:" +"`PYTHONUSERBASE`." msgstr "" #: ../../library/site.rst:187 @@ -238,54 +264,58 @@ msgstr "" #: ../../library/site.rst:210 msgid "" -"Return the path of the user base directory, :data:`USER_BASE`. If it is not" -" initialized yet, this function will also set it, respecting " -":envvar:`PYTHONUSERBASE`." +"Return the path of the user base directory, :data:`USER_BASE`. If it is not " +"initialized yet, this function will also set it, respecting :envvar:" +"`PYTHONUSERBASE`." msgstr "" #: ../../library/site.rst:219 msgid "" -"Return the path of the user-specific site-packages directory, " -":data:`USER_SITE`. If it is not initialized yet, this function will also " -"set it, respecting :envvar:`PYTHONNOUSERSITE` and :data:`USER_BASE`." +"Return the path of the user-specific site-packages directory, :data:" +"`USER_SITE`. If it is not initialized yet, this function will also set it, " +"respecting :envvar:`PYTHONNOUSERSITE` and :data:`USER_BASE`." msgstr "" -#: ../../library/site.rst:226 +#: ../../library/site.rst:229 +msgid "Command Line Interface" +msgstr "Interface de Linha de Comando" + +#: ../../library/site.rst:233 msgid "" "The :mod:`site` module also provides a way to get the user directories from " "the command line:" msgstr "" -#: ../../library/site.rst:236 +#: ../../library/site.rst:241 msgid "" -"If it is called without arguments, it will print the contents of " -":data:`sys.path` on the standard output, followed by the value of " -":data:`USER_BASE` and whether the directory exists, then the same thing for " -":data:`USER_SITE`, and finally the value of :data:`ENABLE_USER_SITE`." +"If it is called without arguments, it will print the contents of :data:`sys." +"path` on the standard output, followed by the value of :data:`USER_BASE` and " +"whether the directory exists, then the same thing for :data:`USER_SITE`, and " +"finally the value of :data:`ENABLE_USER_SITE`." msgstr "" -#: ../../library/site.rst:243 +#: ../../library/site.rst:248 msgid "Print the path to the user base directory." msgstr "" -#: ../../library/site.rst:247 +#: ../../library/site.rst:252 msgid "Print the path to the user site-packages directory." msgstr "" -#: ../../library/site.rst:249 +#: ../../library/site.rst:254 msgid "" "If both options are given, user base and user site will be printed (always " "in this order), separated by :data:`os.pathsep`." msgstr "" -#: ../../library/site.rst:252 +#: ../../library/site.rst:257 msgid "" -"If any option is given, the script will exit with one of these values: ``0``" -" if the user site-packages directory is enabled, ``1`` if it was disabled by" -" the user, ``2`` if it is disabled for security reasons or by an " +"If any option is given, the script will exit with one of these values: ``0`` " +"if the user site-packages directory is enabled, ``1`` if it was disabled by " +"the user, ``2`` if it is disabled for security reasons or by an " "administrator, and a value greater than 2 if there is an error." msgstr "" -#: ../../library/site.rst:259 +#: ../../library/site.rst:264 msgid ":pep:`370` -- Per user site-packages directory" msgstr "" diff --git a/library/smtpd.po b/library/smtpd.po index 61f7ceb25..f3c027263 100644 --- a/library/smtpd.po +++ b/library/smtpd.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -76,8 +78,7 @@ msgstr "" #: ../../library/smtpd.rst:46 ../../library/smtpd.rst:168 msgid "" "*data_size_limit* specifies the maximum number of bytes that will be " -"accepted in a ``DATA`` command. A value of ``None`` or ``0`` means no " -"limit." +"accepted in a ``DATA`` command. A value of ``None`` or ``0`` means no limit." msgstr "" #: ../../library/smtpd.rst:50 @@ -90,11 +91,11 @@ msgstr "" #: ../../library/smtpd.rst:54 msgid "" "*enable_SMTPUTF8* determines whether the ``SMTPUTF8`` extension (as defined " -"in :RFC:`6531`) should be enabled. The default is ``False``. When ``True``," -" ``SMTPUTF8`` is accepted as a parameter to the ``MAIL`` command and when " +"in :RFC:`6531`) should be enabled. The default is ``False``. When ``True``, " +"``SMTPUTF8`` is accepted as a parameter to the ``MAIL`` command and when " "present is passed to :meth:`process_message` in the " -"``kwargs['mail_options']`` list. *decode_data* and *enable_SMTPUTF8* cannot" -" be set to ``True`` at the same time." +"``kwargs['mail_options']`` list. *decode_data* and *enable_SMTPUTF8* cannot " +"be set to ``True`` at the same time." msgstr "" #: ../../library/smtpd.rst:61 @@ -110,8 +111,8 @@ msgstr "" #: ../../library/smtpd.rst:71 msgid "" -"Raise a :exc:`NotImplementedError` exception. Override this in subclasses to" -" do something useful with this message. Whatever was passed in the " +"Raise a :exc:`NotImplementedError` exception. Override this in subclasses to " +"do something useful with this message. Whatever was passed in the " "constructor as *remoteaddr* will be available as the :attr:`_remoteaddr` " "attribute. *peer* is the remote host's address, *mailfrom* is the envelope " "originator, *rcpttos* are the envelope recipients and *data* is a string " @@ -155,9 +156,9 @@ msgstr "" #: ../../library/smtpd.rst:97 msgid "" -"Implementations of ``process_message`` should use the ``**kwargs`` signature" -" to accept arbitrary keyword arguments, since future feature enhancements " -"may add keys to the kwargs dictionary." +"Implementations of ``process_message`` should use the ``**kwargs`` signature " +"to accept arbitrary keyword arguments, since future feature enhancements may " +"add keys to the kwargs dictionary." msgstr "" #: ../../library/smtpd.rst:101 @@ -203,7 +204,7 @@ msgstr "" #: ../../library/smtpd.rst:135 msgid "PureProxy Objects" -msgstr "" +msgstr "Objetos PureProxy" #: ../../library/smtpd.rst:140 msgid "" @@ -260,8 +261,8 @@ msgstr "" #: ../../library/smtpd.rst:184 msgid "" -"To use a custom SMTPChannel implementation you need to override the " -":attr:`SMTPServer.channel_class` of your :class:`SMTPServer`." +"To use a custom SMTPChannel implementation you need to override the :attr:" +"`SMTPServer.channel_class` of your :class:`SMTPServer`." msgstr "" #: ../../library/smtpd.rst:187 @@ -282,15 +283,15 @@ msgstr "" #: ../../library/smtpd.rst:205 msgid "" -"Holds the address of the client, the second value returned by " -":func:`socket.accept `" +"Holds the address of the client, the second value returned by :func:`socket." +"accept `" msgstr "" #: ../../library/smtpd.rst:210 msgid "" "Holds a list of the line strings (decoded using UTF-8) received from the " -"client. The lines have their ``\"\\r\\n\"`` line ending translated to " -"``\"\\n\"``." +"client. The lines have their ``\"\\r\\n\"`` line ending translated to ``\"\\n" +"\"``." msgstr "" #: ../../library/smtpd.rst:216 @@ -300,7 +301,8 @@ msgid "" msgstr "" #: ../../library/smtpd.rst:222 -msgid "Holds a string containing the greeting sent by the client in its \"HELO\"." +msgid "" +"Holds a string containing the greeting sent by the client in its \"HELO\"." msgstr "" #: ../../library/smtpd.rst:226 @@ -311,20 +313,20 @@ msgstr "" #: ../../library/smtpd.rst:231 msgid "" -"Holds a list of strings containing the addresses identified in the \"RCPT " -"TO:\" lines from the client." +"Holds a list of strings containing the addresses identified in the \"RCPT TO:" +"\" lines from the client." msgstr "" #: ../../library/smtpd.rst:236 msgid "" -"Holds a string containing all of the data sent by the client during the DATA" -" state, up to but not including the terminating ``\"\\r\\n.\\r\\n\"``." +"Holds a string containing all of the data sent by the client during the DATA " +"state, up to but not including the terminating ``\"\\r\\n.\\r\\n\"``." msgstr "" #: ../../library/smtpd.rst:241 msgid "" -"Holds the fully-qualified domain name of the server as returned by " -":func:`socket.getfqdn`." +"Holds the fully-qualified domain name of the server as returned by :func:" +"`socket.getfqdn`." msgstr "" #: ../../library/smtpd.rst:246 @@ -355,8 +357,8 @@ msgstr "" #: ../../library/smtpd.rst:257 msgid "" -"Accepts the greeting from the client and stores it in :attr:`seen_greeting`." -" Sets server to base command mode." +"Accepts the greeting from the client and stores it in :attr:" +"`seen_greeting`. Sets server to base command mode." msgstr "" #: ../../library/smtpd.rst:259 @@ -365,8 +367,8 @@ msgstr "" #: ../../library/smtpd.rst:259 msgid "" -"Accepts the greeting from the client and stores it in :attr:`seen_greeting`." -" Sets server to extended command mode." +"Accepts the greeting from the client and stores it in :attr:" +"`seen_greeting`. Sets server to extended command mode." msgstr "" #: ../../library/smtpd.rst:261 @@ -391,10 +393,9 @@ msgstr "" #: ../../library/smtpd.rst:263 msgid "" -"Accepts the \"MAIL FROM:\" syntax and stores the supplied address as " -":attr:`mailfrom`. In extended command mode, accepts the :rfc:`1870` SIZE " -"attribute and responds appropriately based on the value of " -"*data_size_limit*." +"Accepts the \"MAIL FROM:\" syntax and stores the supplied address as :attr:" +"`mailfrom`. In extended command mode, accepts the :rfc:`1870` SIZE " +"attribute and responds appropriately based on the value of *data_size_limit*." msgstr "" #: ../../library/smtpd.rst:267 @@ -403,8 +404,8 @@ msgstr "" #: ../../library/smtpd.rst:267 msgid "" -"Accepts the \"RCPT TO:\" syntax and stores the supplied addresses in the " -":attr:`rcpttos` list." +"Accepts the \"RCPT TO:\" syntax and stores the supplied addresses in the :" +"attr:`rcpttos` list." msgstr "" #: ../../library/smtpd.rst:269 @@ -413,8 +414,8 @@ msgstr "" #: ../../library/smtpd.rst:269 msgid "" -"Resets the :attr:`mailfrom`, :attr:`rcpttos`, and :attr:`received_data`, but" -" not the greeting." +"Resets the :attr:`mailfrom`, :attr:`rcpttos`, and :attr:`received_data`, but " +"not the greeting." msgstr "" #: ../../library/smtpd.rst:271 diff --git a/library/smtplib.po b/library/smtplib.po index 2244a0a5d..5a71dc83d 100644 --- a/library/smtplib.po +++ b/library/smtplib.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,43 +36,41 @@ msgstr "**Código Fonte:** :source:`Lib/smtplib.py`" msgid "" "The :mod:`smtplib` module defines an SMTP client session object that can be " "used to send mail to any Internet machine with an SMTP or ESMTP listener " -"daemon. For details of SMTP and ESMTP operation, consult :rfc:`821` (Simple" -" Mail Transfer Protocol) and :rfc:`1869` (SMTP Service Extensions)." +"daemon. For details of SMTP and ESMTP operation, consult :rfc:`821` (Simple " +"Mail Transfer Protocol) and :rfc:`1869` (SMTP Service Extensions)." msgstr "" #: ../../library/smtplib.rst:25 msgid "" "An :class:`SMTP` instance encapsulates an SMTP connection. It has methods " -"that support a full repertoire of SMTP and ESMTP operations. If the optional" -" host and port parameters are given, the SMTP :meth:`connect` method is " +"that support a full repertoire of SMTP and ESMTP operations. If the optional " +"host and port parameters are given, the SMTP :meth:`connect` method is " "called with those parameters during initialization. If specified, " "*local_hostname* is used as the FQDN of the local host in the HELO/EHLO " -"command. Otherwise, the local hostname is found using " -":func:`socket.getfqdn`. If the :meth:`connect` call returns anything other " -"than a success code, an :exc:`SMTPConnectError` is raised. The optional " -"*timeout* parameter specifies a timeout in seconds for blocking operations " -"like the connection attempt (if not specified, the global default timeout " -"setting will be used). If the timeout expires, :exc:`socket.timeout` is " -"raised. The optional source_address parameter allows binding to some " -"specific source address in a machine with multiple network interfaces, " -"and/or to some specific source TCP port. It takes a 2-tuple (host, port), " -"for the socket to bind to as its source address before connecting. If " -"omitted (or if host or port are ``''`` and/or 0 respectively) the OS default" -" behavior will be used." +"command. Otherwise, the local hostname is found using :func:`socket." +"getfqdn`. If the :meth:`connect` call returns anything other than a success " +"code, an :exc:`SMTPConnectError` is raised. The optional *timeout* parameter " +"specifies a timeout in seconds for blocking operations like the connection " +"attempt (if not specified, the global default timeout setting will be " +"used). If the timeout expires, :exc:`socket.timeout` is raised. The " +"optional source_address parameter allows binding to some specific source " +"address in a machine with multiple network interfaces, and/or to some " +"specific source TCP port. It takes a 2-tuple (host, port), for the socket to " +"bind to as its source address before connecting. If omitted (or if host or " +"port are ``''`` and/or 0 respectively) the OS default behavior will be used." msgstr "" #: ../../library/smtplib.rst:43 msgid "" -"For normal use, you should only require the initialization/connect, " -":meth:`sendmail`, and :meth:`SMTP.quit` methods. An example is included " -"below." +"For normal use, you should only require the initialization/connect, :meth:" +"`sendmail`, and :meth:`SMTP.quit` methods. An example is included below." msgstr "" #: ../../library/smtplib.rst:47 msgid "" "The :class:`SMTP` class supports the :keyword:`with` statement. When used " -"like this, the SMTP ``QUIT`` command is issued automatically when the " -":keyword:`!with` statement exits. E.g.::" +"like this, the SMTP ``QUIT`` command is issued automatically when the :" +"keyword:`!with` statement exits. E.g.::" msgstr "" #: ../../library/smtplib.rst:58 @@ -87,12 +87,12 @@ msgstr "" #: ../../library/smtplib.rst:72 msgid "" -"An :class:`SMTP_SSL` instance behaves exactly the same as instances of " -":class:`SMTP`. :class:`SMTP_SSL` should be used for situations where SSL is " +"An :class:`SMTP_SSL` instance behaves exactly the same as instances of :" +"class:`SMTP`. :class:`SMTP_SSL` should be used for situations where SSL is " "required from the beginning of the connection and using :meth:`starttls` is " "not appropriate. If *host* is not specified, the local host is used. If " -"*port* is zero, the standard SMTP-over-SSL port (465) is used. The optional" -" arguments *local_hostname*, *timeout* and *source_address* have the same " +"*port* is zero, the standard SMTP-over-SSL port (465) is used. The optional " +"arguments *local_hostname*, *timeout* and *source_address* have the same " "meaning as they do in the :class:`SMTP` class. *context*, also optional, " "can contain a :class:`~ssl.SSLContext` and allows configuring various " "aspects of the secure connection. Please read :ref:`ssl-security` for best " @@ -112,34 +112,32 @@ msgstr "" #: ../../library/smtplib.rst:93 msgid "" -"The class now supports hostname check with " -":attr:`ssl.SSLContext.check_hostname` and *Server Name Indication* (see " -":data:`ssl.HAS_SNI`)." +"The class now supports hostname check with :attr:`ssl.SSLContext." +"check_hostname` and *Server Name Indication* (see :data:`ssl.HAS_SNI`)." msgstr "" #: ../../library/smtplib.rst:100 ../../library/smtplib.rst:394 msgid "" -"*keyfile* and *certfile* are deprecated in favor of *context*. Please use " -":meth:`ssl.SSLContext.load_cert_chain` instead, or let " -":func:`ssl.create_default_context` select the system's trusted CA " -"certificates for you." +"*keyfile* and *certfile* are deprecated in favor of *context*. Please use :" +"meth:`ssl.SSLContext.load_cert_chain` instead, or let :func:`ssl." +"create_default_context` select the system's trusted CA certificates for you." msgstr "" #: ../../library/smtplib.rst:108 msgid "" "The LMTP protocol, which is very similar to ESMTP, is heavily based on the " -"standard SMTP client. It's common to use Unix sockets for LMTP, so our " -":meth:`connect` method must support that as well as a regular host:port " -"server. The optional arguments local_hostname and source_address have the " -"same meaning as they do in the :class:`SMTP` class. To specify a Unix " -"socket, you must use an absolute path for *host*, starting with a '/'." +"standard SMTP client. It's common to use Unix sockets for LMTP, so our :meth:" +"`connect` method must support that as well as a regular host:port server. " +"The optional arguments local_hostname and source_address have the same " +"meaning as they do in the :class:`SMTP` class. To specify a Unix socket, you " +"must use an absolute path for *host*, starting with a '/'." msgstr "" #: ../../library/smtplib.rst:115 msgid "" "Authentication is supported, using the regular SMTP mechanism. When using a " -"Unix socket, LMTP generally don't support or require any authentication, but" -" your mileage might vary." +"Unix socket, LMTP generally don't support or require any authentication, but " +"your mileage might vary." msgstr "" #: ../../library/smtplib.rst:120 @@ -159,8 +157,8 @@ msgstr "" #: ../../library/smtplib.rst:134 msgid "" "This exception is raised when the server unexpectedly disconnects, or when " -"an attempt is made to use the :class:`SMTP` instance before connecting it to" -" a server." +"an attempt is made to use the :class:`SMTP` instance before connecting it to " +"a server." msgstr "" #: ../../library/smtplib.rst:141 @@ -173,9 +171,9 @@ msgstr "" #: ../../library/smtplib.rst:149 msgid "" -"Sender address refused. In addition to the attributes set by on all " -":exc:`SMTPResponseException` exceptions, this sets 'sender' to the string " -"that the SMTP server refused." +"Sender address refused. In addition to the attributes set by on all :exc:" +"`SMTPResponseException` exceptions, this sets 'sender' to the string that " +"the SMTP server refused." msgstr "" #: ../../library/smtplib.rst:156 @@ -223,8 +221,8 @@ msgstr "" #: ../../library/smtplib.rst:196 msgid "" -"Definition of the ESMTP extensions for SMTP. This describes a framework for" -" extending SMTP with new commands, supporting dynamic discovery of the " +"Definition of the ESMTP extensions for SMTP. This describes a framework for " +"extending SMTP with new commands, supporting dynamic discovery of the " "commands provided by the server, and defines a few additional commands." msgstr "" @@ -238,9 +236,9 @@ msgstr "" #: ../../library/smtplib.rst:211 msgid "" -"Set the debug output level. A value of 1 or ``True`` for *level* results in" -" debug messages for connection and for all messages sent to and received " -"from the server. A value of 2 for *level* results in these messages being " +"Set the debug output level. A value of 1 or ``True`` for *level* results in " +"debug messages for connection and for all messages sent to and received from " +"the server. A value of 2 for *level* results in these messages being " "timestamped." msgstr "" @@ -269,19 +267,19 @@ msgstr "" #: ../../library/smtplib.rst:231 msgid "" -"If the connection to the server is lost while waiting for the reply, " -":exc:`SMTPServerDisconnected` will be raised." +"If the connection to the server is lost while waiting for the reply, :exc:" +"`SMTPServerDisconnected` will be raised." msgstr "" #: ../../library/smtplib.rst:237 msgid "" -"Connect to a host on a given port. The defaults are to connect to the local" -" host at the standard SMTP port (25). If the hostname ends with a colon " +"Connect to a host on a given port. The defaults are to connect to the local " +"host at the standard SMTP port (25). If the hostname ends with a colon " "(``':'``) followed by a number, that suffix will be stripped off and the " "number interpreted as the port number to use. This method is automatically " "invoked by the constructor if a host is specified during instantiation. " -"Returns a 2-tuple of the response code and message sent by the server in its" -" connection response." +"Returns a 2-tuple of the response code and message sent by the server in its " +"connection response." msgstr "" #: ../../library/smtplib.rst:248 @@ -304,11 +302,11 @@ msgid "" "Identify yourself to an ESMTP server using ``EHLO``. The hostname argument " "defaults to the fully qualified domain name of the local host. Examine the " "response for ESMTP option and store them for use by :meth:`has_extn`. Also " -"sets several informational attributes: the message returned by the server is" -" stored as the :attr:`ehlo_resp` attribute, :attr:`does_esmtp` is set to " -"true or false depending on whether the server supports ESMTP, and " -":attr:`esmtp_features` will be a dictionary containing the names of the SMTP" -" service extensions this server supports, and their parameters (if any)." +"sets several informational attributes: the message returned by the server is " +"stored as the :attr:`ehlo_resp` attribute, :attr:`does_esmtp` is set to true " +"or false depending on whether the server supports ESMTP, and :attr:" +"`esmtp_features` will be a dictionary containing the names of the SMTP " +"service extensions this server supports, and their parameters (if any)." msgstr "" #: ../../library/smtplib.rst:268 @@ -321,14 +319,14 @@ msgstr "" #: ../../library/smtplib.rst:274 msgid "" "This method calls :meth:`ehlo` and/or :meth:`helo` if there has been no " -"previous ``EHLO`` or ``HELO`` command this session. It tries ESMTP ``EHLO``" -" first." +"previous ``EHLO`` or ``HELO`` command this session. It tries ESMTP ``EHLO`` " +"first." msgstr "" #: ../../library/smtplib.rst:278 ../../library/smtplib.rst:308 #: ../../library/smtplib.rst:400 ../../library/smtplib.rst:469 msgid ":exc:`SMTPHeloError`" -msgstr "" +msgstr ":exc:`SMTPHeloError`" #: ../../library/smtplib.rst:279 ../../library/smtplib.rst:308 #: ../../library/smtplib.rst:400 ../../library/smtplib.rst:469 @@ -343,8 +341,8 @@ msgstr "" #: ../../library/smtplib.rst:289 msgid "" -"Check the validity of an address on this server using SMTP ``VRFY``. Returns" -" a tuple consisting of code 250 and a full :rfc:`822` address (including " +"Check the validity of an address on this server using SMTP ``VRFY``. Returns " +"a tuple consisting of code 250 and a full :rfc:`822` address (including " "human name) if the user address is valid. Otherwise returns an SMTP error " "code of 400 or greater and an error string." msgstr "" @@ -355,8 +353,8 @@ msgstr "" #: ../../library/smtplib.rst:301 msgid "" -"Log in on an SMTP server that requires authentication. The arguments are the" -" username and the password to authenticate with. If there has been no " +"Log in on an SMTP server that requires authentication. The arguments are the " +"username and the password to authenticate with. If there has been no " "previous ``EHLO`` or ``HELO`` command this session, this method tries ESMTP " "``EHLO`` first. This method will return normally if the authentication was " "successful, or may raise the following exceptions:" @@ -364,7 +362,7 @@ msgstr "" #: ../../library/smtplib.rst:311 msgid ":exc:`SMTPAuthenticationError`" -msgstr "" +msgstr ":exc:`SMTPAuthenticationError`" #: ../../library/smtplib.rst:311 msgid "The server didn't accept the username/password combination." @@ -373,7 +371,7 @@ msgstr "" #: ../../library/smtplib.rst:314 ../../library/smtplib.rst:403 #: ../../library/smtplib.rst:480 msgid ":exc:`SMTPNotSupportedError`" -msgstr "" +msgstr ":exc:`SMTPNotSupportedError`" #: ../../library/smtplib.rst:314 msgid "The ``AUTH`` command is not supported by the server." @@ -381,7 +379,7 @@ msgstr "" #: ../../library/smtplib.rst:317 msgid ":exc:`SMTPException`" -msgstr "" +msgstr ":exc:`SMTPException`" #: ../../library/smtplib.rst:317 msgid "No suitable authentication method was found." @@ -398,8 +396,8 @@ msgstr "" #: ../../library/smtplib.rst:324 msgid "" "Optional keyword argument *initial_response_ok* specifies whether, for " -"authentication methods that support it, an \"initial response\" as specified" -" in :rfc:`4954` can be sent along with the ``AUTH`` command, rather than " +"authentication methods that support it, an \"initial response\" as specified " +"in :rfc:`4954` can be sent along with the ``AUTH`` command, rather than " "requiring a challenge/response." msgstr "" @@ -433,8 +431,8 @@ msgstr "" #: ../../library/smtplib.rst:347 msgid "" -"If optional keyword argument *initial_response_ok* is true, ``authobject()``" -" will be called first with no argument. It can return the :rfc:`4954` " +"If optional keyword argument *initial_response_ok* is true, ``authobject()`` " +"will be called first with no argument. It can return the :rfc:`4954` " "\"initial response\" ASCII ``str`` which will be encoded and sent with the " "``AUTH`` command as below. If the ``authobject()`` does not support an " "initial response (e.g. because it requires a challenge), it should return " @@ -453,11 +451,11 @@ msgstr "" #: ../../library/smtplib.rst:361 msgid "" -"The ``SMTP`` class provides ``authobjects`` for the ``CRAM-MD5``, ``PLAIN``," -" and ``LOGIN`` mechanisms; they are named ``SMTP.auth_cram_md5``, " -"``SMTP.auth_plain``, and ``SMTP.auth_login`` respectively. They all require" -" that the ``user`` and ``password`` properties of the ``SMTP`` instance are " -"set to appropriate values." +"The ``SMTP`` class provides ``authobjects`` for the ``CRAM-MD5``, ``PLAIN``, " +"and ``LOGIN`` mechanisms; they are named ``SMTP.auth_cram_md5``, ``SMTP." +"auth_plain``, and ``SMTP.auth_login`` respectively. They all require that " +"the ``user`` and ``password`` properties of the ``SMTP`` instance are set to " +"appropriate values." msgstr "" #: ../../library/smtplib.rst:367 @@ -465,8 +463,8 @@ msgid "" "User code does not normally need to call ``auth`` directly, but can instead " "call the :meth:`login` method, which will try each of the above mechanisms " "in turn, in the order listed. ``auth`` is exposed to facilitate the " -"implementation of authentication methods not (or not yet) supported directly" -" by :mod:`smtplib`." +"implementation of authentication methods not (or not yet) supported directly " +"by :mod:`smtplib`." msgstr "" #: ../../library/smtplib.rst:378 @@ -478,8 +476,8 @@ msgstr "" #: ../../library/smtplib.rst:382 msgid "" -"If *keyfile* and *certfile* are provided, they are used to create an " -":class:`ssl.SSLContext`." +"If *keyfile* and *certfile* are provided, they are used to create an :class:" +"`ssl.SSLContext`." msgstr "" #: ../../library/smtplib.rst:385 @@ -509,16 +507,14 @@ msgstr "" #: ../../library/smtplib.rst:411 msgid "" -"The method now supports hostname check with " -":attr:`SSLContext.check_hostname` and *Server Name Indicator* (see " -":data:`~ssl.HAS_SNI`)." +"The method now supports hostname check with :attr:`SSLContext." +"check_hostname` and *Server Name Indicator* (see :data:`~ssl.HAS_SNI`)." msgstr "" #: ../../library/smtplib.rst:416 msgid "" -"The error raised for lack of STARTTLS support is now the " -":exc:`SMTPNotSupportedError` subclass instead of the base " -":exc:`SMTPException`." +"The error raised for lack of STARTTLS support is now the :exc:" +"`SMTPNotSupportedError` subclass instead of the base :exc:`SMTPException`." msgstr "" #: ../../library/smtplib.rst:424 @@ -526,12 +522,12 @@ msgid "" "Send mail. The required arguments are an :rfc:`822` from-address string, a " "list of :rfc:`822` to-address strings (a bare string will be treated as a " "list with 1 address), and a message string. The caller may pass a list of " -"ESMTP options (such as ``8bitmime``) to be used in ``MAIL FROM`` commands as" -" *mail_options*. ESMTP options (such as ``DSN`` commands) that should be " -"used with all ``RCPT`` commands can be passed as *rcpt_options*. (If you " -"need to use different ESMTP options to different recipients you have to use " -"the low-level methods such as :meth:`mail`, :meth:`rcpt` and :meth:`data` to" -" send the message.)" +"ESMTP options (such as ``8bitmime``) to be used in ``MAIL FROM`` commands as " +"*mail_options*. ESMTP options (such as ``DSN`` commands) that should be used " +"with all ``RCPT`` commands can be passed as *rcpt_options*. (If you need to " +"use different ESMTP options to different recipients you have to use the low-" +"level methods such as :meth:`mail`, :meth:`rcpt` and :meth:`data` to send " +"the message.)" msgstr "" #: ../../library/smtplib.rst:435 @@ -544,9 +540,9 @@ msgstr "" #: ../../library/smtplib.rst:439 msgid "" "*msg* may be a string containing characters in the ASCII range, or a byte " -"string. A string is encoded to bytes using the ascii codec, and lone " -"``\\r`` and ``\\n`` characters are converted to ``\\r\\n`` characters. A " -"byte string is not modified." +"string. A string is encoded to bytes using the ascii codec, and lone ``" +"\\r`` and ``\\n`` characters are converted to ``\\r\\n`` characters. A byte " +"string is not modified." msgstr "" #: ../../library/smtplib.rst:444 @@ -580,19 +576,19 @@ msgstr "" #: ../../library/smtplib.rst:466 msgid ":exc:`SMTPRecipientsRefused`" -msgstr "" +msgstr ":exc:`SMTPRecipientsRefused`" #: ../../library/smtplib.rst:463 msgid "" "All recipients were refused. Nobody got the mail. The :attr:`recipients` " -"attribute of the exception object is a dictionary with information about the" -" refused recipients (like the one returned when at least one recipient was " +"attribute of the exception object is a dictionary with information about the " +"refused recipients (like the one returned when at least one recipient was " "accepted)." msgstr "" #: ../../library/smtplib.rst:472 msgid ":exc:`SMTPSenderRefused`" -msgstr "" +msgstr ":exc:`SMTPSenderRefused`" #: ../../library/smtplib.rst:472 msgid "The server didn't accept the *from_addr*." @@ -600,7 +596,7 @@ msgstr "" #: ../../library/smtplib.rst:476 msgid ":exc:`SMTPDataError`" -msgstr "" +msgstr ":exc:`SMTPDataError`" #: ../../library/smtplib.rst:475 msgid "" @@ -633,39 +629,39 @@ msgstr "" #: ../../library/smtplib.rst:496 msgid "" "This is a convenience method for calling :meth:`sendmail` with the message " -"represented by an :class:`email.message.Message` object. The arguments have" -" the same meaning as for :meth:`sendmail`, except that *msg* is a " -"``Message`` object." +"represented by an :class:`email.message.Message` object. The arguments have " +"the same meaning as for :meth:`sendmail`, except that *msg* is a ``Message`` " +"object." msgstr "" #: ../../library/smtplib.rst:501 msgid "" -"If *from_addr* is ``None`` or *to_addrs* is ``None``, ``send_message`` fills" -" those arguments with addresses extracted from the headers of *msg* as " +"If *from_addr* is ``None`` or *to_addrs* is ``None``, ``send_message`` fills " +"those arguments with addresses extracted from the headers of *msg* as " "specified in :rfc:`5322`\\: *from_addr* is set to the :mailheader:`Sender` " "field if it is present, and otherwise to the :mailheader:`From` field. " -"*to_addrs* combines the values (if any) of the :mailheader:`To`, " -":mailheader:`Cc`, and :mailheader:`Bcc` fields from *msg*. If exactly one " -"set of :mailheader:`Resent-*` headers appear in the message, the regular " -"headers are ignored and the :mailheader:`Resent-*` headers are used instead." -" If the message contains more than one set of :mailheader:`Resent-*` " -"headers, a :exc:`ValueError` is raised, since there is no way to " -"unambiguously detect the most recent set of :mailheader:`Resent-` headers." +"*to_addrs* combines the values (if any) of the :mailheader:`To`, :mailheader:" +"`Cc`, and :mailheader:`Bcc` fields from *msg*. If exactly one set of :" +"mailheader:`Resent-*` headers appear in the message, the regular headers are " +"ignored and the :mailheader:`Resent-*` headers are used instead. If the " +"message contains more than one set of :mailheader:`Resent-*` headers, a :exc:" +"`ValueError` is raised, since there is no way to unambiguously detect the " +"most recent set of :mailheader:`Resent-` headers." msgstr "" #: ../../library/smtplib.rst:513 msgid "" -"``send_message`` serializes *msg* using " -":class:`~email.generator.BytesGenerator` with ``\\r\\n`` as the *linesep*, " -"and calls :meth:`sendmail` to transmit the resulting message. Regardless of" -" the values of *from_addr* and *to_addrs*, ``send_message`` does not " -"transmit any :mailheader:`Bcc` or :mailheader:`Resent-Bcc` headers that may " -"appear in *msg*. If any of the addresses in *from_addr* and *to_addrs* " -"contain non-ASCII characters and the server does not advertise ``SMTPUTF8`` " -"support, an :exc:`SMTPNotSupported` error is raised. Otherwise the " -"``Message`` is serialized with a clone of its :mod:`~email.policy` with the " -":attr:`~email.policy.EmailPolicy.utf8` attribute set to ``True``, and " -"``SMTPUTF8`` and ``BODY=8BITMIME`` are added to *mail_options*." +"``send_message`` serializes *msg* using :class:`~email.generator." +"BytesGenerator` with ``\\r\\n`` as the *linesep*, and calls :meth:`sendmail` " +"to transmit the resulting message. Regardless of the values of *from_addr* " +"and *to_addrs*, ``send_message`` does not transmit any :mailheader:`Bcc` or :" +"mailheader:`Resent-Bcc` headers that may appear in *msg*. If any of the " +"addresses in *from_addr* and *to_addrs* contain non-ASCII characters and the " +"server does not advertise ``SMTPUTF8`` support, an :exc:`SMTPNotSupported` " +"error is raised. Otherwise the ``Message`` is serialized with a clone of " +"its :mod:`~email.policy` with the :attr:`~email.policy.EmailPolicy.utf8` " +"attribute set to ``True``, and ``SMTPUTF8`` and ``BODY=8BITMIME`` are added " +"to *mail_options*." msgstr "" #: ../../library/smtplib.rst:527 @@ -682,8 +678,8 @@ msgstr "" msgid "" "Low-level methods corresponding to the standard SMTP/ESMTP commands " "``HELP``, ``RSET``, ``NOOP``, ``MAIL``, ``RCPT``, and ``DATA`` are also " -"supported. Normally these do not need to be called directly, so they are not" -" documented here. For details, consult the module code." +"supported. Normally these do not need to be called directly, so they are not " +"documented here. For details, consult the module code." msgstr "" #: ../../library/smtplib.rst:546 @@ -693,16 +689,16 @@ msgstr "" #: ../../library/smtplib.rst:548 msgid "" "This example prompts the user for addresses needed in the message envelope " -"('To' and 'From' addresses), and the message to be delivered. Note that the" -" headers to be included with the message must be included in the message as " +"('To' and 'From' addresses), and the message to be delivered. Note that the " +"headers to be included with the message must be included in the message as " "entered; this example doesn't do any processing of the :rfc:`822` headers. " -"In particular, the 'To' and 'From' addresses must be included in the message" -" headers explicitly. ::" +"In particular, the 'To' and 'From' addresses must be included in the message " +"headers explicitly. ::" msgstr "" #: ../../library/smtplib.rst:584 msgid "" "In general, you will want to use the :mod:`email` package's features to " -"construct an email message, which you can then send via " -":meth:`~smtplib.SMTP.send_message`; see :ref:`email-examples`." +"construct an email message, which you can then send via :meth:`~smtplib.SMTP." +"send_message`; see :ref:`email-examples`." msgstr "" diff --git a/library/sndhdr.po b/library/sndhdr.po index 9c79ff72d..f1d21b3e1 100644 --- a/library/sndhdr.po +++ b/library/sndhdr.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,28 +36,28 @@ msgstr "**Código Fonte:** :source:`Lib/sndhdr.py`" msgid "" "The :mod:`sndhdr` provides utility functions which attempt to determine the " "type of sound data which is in a file. When these functions are able to " -"determine what type of sound data is stored in a file, they return a " -":func:`~collections.namedtuple`, containing five attributes: (``filetype``, " +"determine what type of sound data is stored in a file, they return a :func:" +"`~collections.namedtuple`, containing five attributes: (``filetype``, " "``framerate``, ``nchannels``, ``nframes``, ``sampwidth``). The value for " "*type* indicates the data type and will be one of the strings ``'aifc'``, " "``'aiff'``, ``'au'``, ``'hcom'``, ``'sndr'``, ``'sndt'``, ``'voc'``, " -"``'wav'``, ``'8svx'``, ``'sb'``, ``'ub'``, or ``'ul'``. The *sampling_rate*" -" will be either the actual value or ``0`` if unknown or difficult to decode." -" Similarly, *channels* will be either the number of channels or ``0`` if it" -" cannot be determined or if the value is difficult to decode. The value for" -" *frames* will be either the number of frames or ``-1``. The last item in " +"``'wav'``, ``'8svx'``, ``'sb'``, ``'ub'``, or ``'ul'``. The *sampling_rate* " +"will be either the actual value or ``0`` if unknown or difficult to decode. " +"Similarly, *channels* will be either the number of channels or ``0`` if it " +"cannot be determined or if the value is difficult to decode. The value for " +"*frames* will be either the number of frames or ``-1``. The last item in " "the tuple, *bits_per_sample*, will either be the sample size in bits or " "``'A'`` for A-LAW or ``'U'`` for u-LAW." msgstr "" "O :mod:`sndhdr` fornece funções de utilitário que tentam determinar o tipo " -"de dados de som que estão em um arquivo. Quando estas funções são capazes de" -" determinar que tipo de dados de som são armazenados em um arquivo, eles " +"de dados de som que estão em um arquivo. Quando estas funções são capazes de " +"determinar que tipo de dados de som são armazenados em um arquivo, eles " "retornam um :func:`~collections.namedtuple`, contendo cinco atributos: " "(``filetype``, ``framerate``, ``nchannels``, ``nframes``, ``sampwidth``). O " "valor para *type* indica o tipo de dados e será uma das strings ``'aifc'``, " "``'aiff'``, ``'au'``, ``'hcom'``, ``'sndr'``, ``'sndt'``, ``'voc'``, " -"``'wav'``, ``'8svx'``, ``'sb'``, ``'ub'``, or ``'ul'``. O *sample_rate* será" -" o valor real ou ``0`` se desconhecido ou difícil de decodificar. " +"``'wav'``, ``'8svx'``, ``'sb'``, ``'ub'``, or ``'ul'``. O *sample_rate* será " +"o valor real ou ``0`` se desconhecido ou difícil de decodificar. " "Similarmente, *channels* será o número de canais ou ``0`` se não puder ser " "determinado ou se o valor for difícil de decodificar. O valor para *frames* " "será o número de quadros ou ``-1``. O último item na tupla, " @@ -64,12 +66,12 @@ msgstr "" #: ../../library/sndhdr.rst:35 msgid "" -"Determines the type of sound data stored in the file *filename* using " -":func:`whathdr`. If it succeeds, returns a namedtuple as described above, " +"Determines the type of sound data stored in the file *filename* using :func:" +"`whathdr`. If it succeeds, returns a namedtuple as described above, " "otherwise ``None`` is returned." msgstr "" -"Determina o tipo de dados de som armazenados no arquivo *filename* usando " -":func:`whathdr`. Se tiver sucesso, retorna uma namedtuple conforme descrito " +"Determina o tipo de dados de som armazenados no arquivo *filename* usando :" +"func:`whathdr`. Se tiver sucesso, retorna uma namedtuple conforme descrito " "acima, caso contrário, ``None`` será retornado." #: ../../library/sndhdr.rst:39 ../../library/sndhdr.rst:49 diff --git a/library/socket.po b/library/socket.po index 72cc68a16..727cdedfc 100644 --- a/library/socket.po +++ b/library/socket.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Leticia Portella , 2019 @@ -10,17 +10,20 @@ # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 # And Past , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Marco Rougeth , 2019 +# Marcone G , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marcone G , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,12 +53,12 @@ msgstr "" #: ../../library/socket.rst:21 msgid "" -"The Python interface is a straightforward transliteration of the Unix system" -" call and library interface for sockets to Python's object-oriented style: " +"The Python interface is a straightforward transliteration of the Unix system " +"call and library interface for sockets to Python's object-oriented style: " "the :func:`.socket` function returns a :dfn:`socket object` whose methods " "implement the various socket system calls. Parameter types are somewhat " -"higher-level than in the C interface: as with :meth:`read` and :meth:`write`" -" operations on Python files, buffer allocation on receive operations is " +"higher-level than in the C interface: as with :meth:`read` and :meth:`write` " +"operations on Python files, buffer allocation on receive operations is " "automatic, and buffer length is implicit on send operations." msgstr "" @@ -84,6 +87,8 @@ msgid "" "Depending on the system and the build options, various socket families are " "supported by this module." msgstr "" +"Dependendo do sistema e das opções de construção, várias famílias de " +"soquetes são suportadas por este módulo." #: ../../library/socket.rst:45 msgid "" @@ -96,22 +101,21 @@ msgstr "" msgid "" "The address of an :const:`AF_UNIX` socket bound to a file system node is " "represented as a string, using the file system encoding and the " -"``'surrogateescape'`` error handler (see :pep:`383`). An address in Linux's" -" abstract namespace is returned as a :term:`bytes-like object` with an " +"``'surrogateescape'`` error handler (see :pep:`383`). An address in Linux's " +"abstract namespace is returned as a :term:`bytes-like object` with an " "initial null byte; note that sockets in this namespace can communicate with " -"normal file system sockets, so programs intended to run on Linux may need to" -" deal with both types of address. A string or bytes-like object can be used" -" for either type of address when passing it as an argument." +"normal file system sockets, so programs intended to run on Linux may need to " +"deal with both types of address. A string or bytes-like object can be used " +"for either type of address when passing it as an argument." msgstr "" #: ../../library/socket.rst:59 msgid "" -"Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 " -"encoding." +"Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 encoding." msgstr "" -#: ../../library/socket.rst:63 ../../library/socket.rst:837 -#: ../../library/socket.rst:879 ../../library/socket.rst:1543 +#: ../../library/socket.rst:63 ../../library/socket.rst:839 +#: ../../library/socket.rst:881 ../../library/socket.rst:1545 msgid "Writable :term:`bytes-like object` is now accepted." msgstr "" @@ -126,11 +130,11 @@ msgstr "" #: ../../library/socket.rst:73 msgid "" "For IPv4 addresses, two special forms are accepted instead of a host " -"address: ``''`` represents :const:`INADDR_ANY`, which is used to bind to all" -" interfaces, and the string ``''`` represents " -":const:`INADDR_BROADCAST`. This behavior is not compatible with IPv6, " -"therefore, you may want to avoid these if you intend to support IPv6 with " -"your Python programs." +"address: ``''`` represents :const:`INADDR_ANY`, which is used to bind to all " +"interfaces, and the string ``''`` represents :const:" +"`INADDR_BROADCAST`. This behavior is not compatible with IPv6, therefore, " +"you may want to avoid these if you intend to support IPv6 with your Python " +"programs." msgstr "" #: ../../library/socket.rst:80 @@ -152,8 +156,7 @@ msgid "" msgstr "" #: ../../library/socket.rst:92 -msgid "" -":const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``." +msgid ":const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``." msgstr "" #: ../../library/socket.rst:94 @@ -173,8 +176,8 @@ msgstr "" #: ../../library/socket.rst:102 msgid "" -"*scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and" -" :const:`TIPC_NODE_SCOPE`." +"*scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, " +"and :const:`TIPC_NODE_SCOPE`." msgstr "" #: ../../library/socket.rst:104 @@ -199,8 +202,8 @@ msgstr "" msgid "" "A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, " "where *interface* is a string representing a network interface name like " -"``'can0'``. The network interface name ``''`` can be used to receive packets" -" from all network interfaces of this family." +"``'can0'``. The network interface name ``''`` can be used to receive packets " +"from all network interfaces of this family." msgstr "" #: ../../library/socket.rst:118 @@ -212,8 +215,8 @@ msgstr "" #: ../../library/socket.rst:122 msgid "" -"A string or a tuple ``(id, unit)`` is used for the :const:`SYSPROTO_CONTROL`" -" protocol of the :const:`PF_SYSTEM` family. The string is the name of a " +"A string or a tuple ``(id, unit)`` is used for the :const:`SYSPROTO_CONTROL` " +"protocol of the :const:`PF_SYSTEM` family. The string is the name of a " "kernel control using a dynamically-assigned ID. The tuple can be used if ID " "and unit number of the kernel control are known or if a registered ID is " "used." @@ -240,8 +243,8 @@ msgstr "" msgid "" ":const:`BTPROTO_HCI` accepts ``(device_id,)`` where ``device_id`` is either " "an integer or a string with the Bluetooth address of the interface. (This " -"depends on your OS; NetBSD and DragonFlyBSD expect a Bluetooth address while" -" everything else expects an integer.)" +"depends on your OS; NetBSD and DragonFlyBSD expect a Bluetooth address while " +"everything else expects an integer.)" msgstr "" #: ../../library/socket.rst:144 @@ -250,8 +253,8 @@ msgstr "" #: ../../library/socket.rst:147 msgid "" -":const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is a :class:`bytes`" -" object containing the Bluetooth address in a string format. (ex. " +":const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is a :class:`bytes` " +"object containing the Bluetooth address in a string format. (ex. " "``b'12:23:34:45:56:67'``) This protocol is not supported under FreeBSD." msgstr "" @@ -287,8 +290,8 @@ msgstr "" #: ../../library/socket.rst:176 msgid "" -":const:`AF_PACKET` is a low-level interface directly to network devices. The" -" packets are represented by the tuple ``(ifname, proto[, pkttype[, hatype[, " +":const:`AF_PACKET` is a low-level interface directly to network devices. The " +"packets are represented by the tuple ``(ifname, proto[, pkttype[, hatype[, " "addr]]])`` where:" msgstr "" @@ -355,15 +358,15 @@ msgstr "" msgid "" "All errors raise exceptions. The normal exceptions for invalid argument " "types and out-of-memory conditions can be raised; starting from Python 3.3, " -"errors related to socket or address semantics raise :exc:`OSError` or one of" -" its subclasses (they used to raise :exc:`socket.error`)." +"errors related to socket or address semantics raise :exc:`OSError` or one of " +"its subclasses (they used to raise :exc:`socket.error`)." msgstr "" #: ../../library/socket.rst:208 msgid "" "Non-blocking mode is supported through :meth:`~socket.setblocking`. A " -"generalization of this based on timeouts is supported through " -":meth:`~socket.settimeout`." +"generalization of this based on timeouts is supported through :meth:`~socket." +"settimeout`." msgstr "" #: ../../library/socket.rst:214 @@ -389,9 +392,9 @@ msgstr "" #: ../../library/socket.rst:232 msgid "" "A subclass of :exc:`OSError`, this exception is raised for address-related " -"errors, i.e. for functions that use *h_errno* in the POSIX C API, including " -":func:`gethostbyname_ex` and :func:`gethostbyaddr`. The accompanying value " -"is a pair ``(h_errno, string)`` representing an error returned by a library " +"errors, i.e. for functions that use *h_errno* in the POSIX C API, including :" +"func:`gethostbyname_ex` and :func:`gethostbyaddr`. The accompanying value is " +"a pair ``(h_errno, string)`` representing an error returned by a library " "call. *h_errno* is a numeric value, while *string* represents the " "description of *h_errno*, as returned by the :c:func:`hstrerror` C function." msgstr "" @@ -413,11 +416,11 @@ msgstr "" #: ../../library/socket.rst:258 msgid "" -"A subclass of :exc:`OSError`, this exception is raised when a timeout occurs" -" on a socket which has had timeouts enabled via a prior call to " -":meth:`~socket.settimeout` (or implicitly through " -":func:`~socket.setdefaulttimeout`). The accompanying value is a string " -"whose value is currently always \"timed out\"." +"A subclass of :exc:`OSError`, this exception is raised when a timeout occurs " +"on a socket which has had timeouts enabled via a prior call to :meth:" +"`~socket.settimeout` (or implicitly through :func:`~socket." +"setdefaulttimeout`). The accompanying value is a string whose value is " +"currently always \"timed out\"." msgstr "" #: ../../library/socket.rst:269 @@ -426,8 +429,8 @@ msgstr "Constantes" #: ../../library/socket.rst:271 msgid "" -"The AF_* and SOCK_* constants are now :class:`AddressFamily` and " -":class:`SocketKind` :class:`.IntEnum` collections." +"The AF_* and SOCK_* constants are now :class:`AddressFamily` and :class:" +"`SocketKind` :class:`.IntEnum` collections." msgstr "" #: ../../library/socket.rst:280 @@ -440,8 +443,8 @@ msgstr "" #: ../../library/socket.rst:292 msgid "" -"These constants represent the socket types, used for the second argument to " -":func:`.socket`. More constants may be available depending on the system. " +"These constants represent the socket types, used for the second argument to :" +"func:`.socket`. More constants may be available depending on the system. " "(Only :const:`SOCK_STREAM` and :const:`SOCK_DGRAM` appear to be generally " "useful.)" msgstr "" @@ -455,9 +458,8 @@ msgstr "" #: ../../library/socket.rst:306 msgid "" -"`Secure File Descriptor Handling " -"`_ for a more thorough " -"explanation." +"`Secure File Descriptor Handling `_ for a more thorough explanation." msgstr "" #: ../../library/socket.rst:310 @@ -468,10 +470,10 @@ msgstr "" msgid "" "Many constants of these forms, documented in the Unix documentation on " "sockets and/or the IP protocol, are also defined in the socket module. They " -"are generally used in arguments to the :meth:`setsockopt` and " -":meth:`getsockopt` methods of socket objects. In most cases, only those " -"symbols that are defined in the Unix header files are defined; for a few " -"symbols, default values are provided." +"are generally used in arguments to the :meth:`setsockopt` and :meth:" +"`getsockopt` methods of socket objects. In most cases, only those symbols " +"that are defined in the Unix header files are defined; for a few symbols, " +"default values are provided." msgstr "" #: ../../library/socket.rst:335 @@ -532,8 +534,8 @@ msgstr "" #: ../../library/socket.rst:386 msgid "" -"CAN_ISOTP, in the CAN protocol family, is the ISO-TP (ISO 15765-2) protocol." -" ISO-TP constants, documented in the Linux documentation." +"CAN_ISOTP, in the CAN protocol family, is the ISO-TP (ISO 15765-2) protocol. " +"ISO-TP constants, documented in the Linux documentation." msgstr "" #: ../../library/socket.rst:401 @@ -550,7 +552,7 @@ msgid "" "the :meth:`~socket.socket.ioctl` method of socket objects." msgstr "" -#: ../../library/socket.rst:425 ../../library/socket.rst:1171 +#: ../../library/socket.rst:425 ../../library/socket.rst:1173 msgid "``SIO_LOOPBACK_FAST_PATH`` was added." msgstr "" @@ -564,7 +566,7 @@ msgstr "" msgid "Constants for Linux Kernel cryptography." msgstr "" -#: ../../library/socket.rst:441 ../../library/socket.rst:1467 +#: ../../library/socket.rst:441 ../../library/socket.rst:1469 msgid ":ref:`Availability `: Linux >= 2.6.38." msgstr "" @@ -615,30 +617,29 @@ msgstr "" #: ../../library/socket.rst:495 msgid "" -"Create a new socket using the given address family, socket type and protocol" -" number. The address family should be :const:`AF_INET` (the default), " -":const:`AF_INET6`, :const:`AF_UNIX`, :const:`AF_CAN`, :const:`AF_PACKET`, or" -" :const:`AF_RDS`. The socket type should be :const:`SOCK_STREAM` (the " -"default), :const:`SOCK_DGRAM`, :const:`SOCK_RAW` or perhaps one of the other" -" ``SOCK_`` constants. The protocol number is usually zero and may be omitted" -" or in the case where the address family is :const:`AF_CAN` the protocol " -"should be one of :const:`CAN_RAW`, :const:`CAN_BCM` or :const:`CAN_ISOTP`." +"Create a new socket using the given address family, socket type and protocol " +"number. The address family should be :const:`AF_INET` (the default), :const:" +"`AF_INET6`, :const:`AF_UNIX`, :const:`AF_CAN`, :const:`AF_PACKET`, or :const:" +"`AF_RDS`. The socket type should be :const:`SOCK_STREAM` (the default), :" +"const:`SOCK_DGRAM`, :const:`SOCK_RAW` or perhaps one of the other ``SOCK_`` " +"constants. The protocol number is usually zero and may be omitted or in the " +"case where the address family is :const:`AF_CAN` the protocol should be one " +"of :const:`CAN_RAW`, :const:`CAN_BCM` or :const:`CAN_ISOTP`." msgstr "" #: ../../library/socket.rst:504 msgid "" "If *fileno* is specified, the values for *family*, *type*, and *proto* are " "auto-detected from the specified file descriptor. Auto-detection can be " -"overruled by calling the function with explicit *family*, *type*, or *proto*" -" arguments. This only affects how Python represents e.g. the return value " -"of :meth:`socket.getpeername` but not the actual OS resource. Unlike " -":func:`socket.fromfd`, *fileno* will return the same socket and not a " -"duplicate. This may help close a detached socket using " -":meth:`socket.close()`." +"overruled by calling the function with explicit *family*, *type*, or *proto* " +"arguments. This only affects how Python represents e.g. the return value " +"of :meth:`socket.getpeername` but not the actual OS resource. Unlike :func:" +"`socket.fromfd`, *fileno* will return the same socket and not a duplicate. " +"This may help close a detached socket using :meth:`socket.close()`." msgstr "" -#: ../../library/socket.rst:513 ../../library/socket.rst:596 -#: ../../library/socket.rst:1005 ../../library/socket.rst:1088 +#: ../../library/socket.rst:513 ../../library/socket.rst:598 +#: ../../library/socket.rst:1007 ../../library/socket.rst:1090 msgid "The newly created socket is :ref:`non-inheritable `." msgstr "" @@ -650,7 +651,7 @@ msgstr "" msgid "The CAN_BCM protocol was added." msgstr "" -#: ../../library/socket.rst:522 ../../library/socket.rst:598 +#: ../../library/socket.rst:522 ../../library/socket.rst:600 msgid "The returned socket is now non-inheritable." msgstr "" @@ -662,238 +663,229 @@ msgstr "" msgid "" "When :const:`SOCK_NONBLOCK` or :const:`SOCK_CLOEXEC` bit flags are applied " "to *type* they are cleared, and :attr:`socket.type` will not reflect them. " -"They are still passed to the underlying system `socket()` call. Therefore::" -msgstr "" - -#: ../../library/socket.rst:536 -msgid "sock = socket.socket(" -msgstr "" - -#: ../../library/socket.rst:535 -msgid "socket.AF_INET, socket.SOCK_STREAM | socket.SOCK_NONBLOCK)" +"They are still passed to the underlying system `socket()` call. Therefore," msgstr "" -#: ../../library/socket.rst:538 +#: ../../library/socket.rst:540 msgid "" "will still create a non-blocking socket on OSes that support " "``SOCK_NONBLOCK``, but ``sock.type`` will be set to ``socket.SOCK_STREAM``." msgstr "" -#: ../../library/socket.rst:544 +#: ../../library/socket.rst:546 msgid "" "Build a pair of connected socket objects using the given address family, " -"socket type, and protocol number. Address family, socket type, and protocol" -" number are as for the :func:`.socket` function above. The default family is" -" :const:`AF_UNIX` if defined on the platform; otherwise, the default is " -":const:`AF_INET`." +"socket type, and protocol number. Address family, socket type, and protocol " +"number are as for the :func:`.socket` function above. The default family is :" +"const:`AF_UNIX` if defined on the platform; otherwise, the default is :const:" +"`AF_INET`." msgstr "" -#: ../../library/socket.rst:549 +#: ../../library/socket.rst:551 msgid "The newly created sockets are :ref:`non-inheritable `." msgstr "" -#: ../../library/socket.rst:551 +#: ../../library/socket.rst:553 msgid "" "The returned socket objects now support the whole socket API, rather than a " "subset." msgstr "" -#: ../../library/socket.rst:555 +#: ../../library/socket.rst:557 msgid "The returned sockets are now non-inheritable." msgstr "" -#: ../../library/socket.rst:558 +#: ../../library/socket.rst:560 msgid "Windows support added." msgstr "" -#: ../../library/socket.rst:564 +#: ../../library/socket.rst:566 msgid "" "Connect to a TCP service listening on the Internet *address* (a 2-tuple " "``(host, port)``), and return the socket object. This is a higher-level " "function than :meth:`socket.connect`: if *host* is a non-numeric hostname, " -"it will try to resolve it for both :data:`AF_INET` and :data:`AF_INET6`, and" -" then try to connect to all possible addresses in turn until a connection " +"it will try to resolve it for both :data:`AF_INET` and :data:`AF_INET6`, and " +"then try to connect to all possible addresses in turn until a connection " "succeeds. This makes it easy to write clients that are compatible to both " "IPv4 and IPv6." msgstr "" -#: ../../library/socket.rst:572 +#: ../../library/socket.rst:574 msgid "" "Passing the optional *timeout* parameter will set the timeout on the socket " "instance before attempting to connect. If no *timeout* is supplied, the " -"global default timeout setting returned by :func:`getdefaulttimeout` is " -"used." +"global default timeout setting returned by :func:`getdefaulttimeout` is used." msgstr "" -#: ../../library/socket.rst:577 +#: ../../library/socket.rst:579 msgid "" "If supplied, *source_address* must be a 2-tuple ``(host, port)`` for the " "socket to bind to as its source address before connecting. If host or port " "are '' or 0 respectively the OS default behavior will be used." msgstr "" -#: ../../library/socket.rst:581 +#: ../../library/socket.rst:583 msgid "*source_address* was added." msgstr "*source_address* foi adicionado." -#: ../../library/socket.rst:587 +#: ../../library/socket.rst:589 msgid "" "Duplicate the file descriptor *fd* (an integer as returned by a file " "object's :meth:`fileno` method) and build a socket object from the result. " -"Address family, socket type and protocol number are as for the " -":func:`.socket` function above. The file descriptor should refer to a " -"socket, but this is not checked --- subsequent operations on the object may " -"fail if the file descriptor is invalid. This function is rarely needed, but " -"can be used to get or set socket options on a socket passed to a program as " -"standard input or output (such as a server started by the Unix inet daemon)." -" The socket is assumed to be in blocking mode." +"Address family, socket type and protocol number are as for the :func:`." +"socket` function above. The file descriptor should refer to a socket, but " +"this is not checked --- subsequent operations on the object may fail if the " +"file descriptor is invalid. This function is rarely needed, but can be used " +"to get or set socket options on a socket passed to a program as standard " +"input or output (such as a server started by the Unix inet daemon). The " +"socket is assumed to be in blocking mode." msgstr "" -#: ../../library/socket.rst:604 +#: ../../library/socket.rst:606 msgid "" "Instantiate a socket from data obtained from the :meth:`socket.share` " "method. The socket is assumed to be in blocking mode." msgstr "" -#: ../../library/socket.rst:608 ../../library/socket.rst:1568 +#: ../../library/socket.rst:610 ../../library/socket.rst:1570 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." -#: ../../library/socket.rst:614 +#: ../../library/socket.rst:616 msgid "" "This is a Python type object that represents the socket object type. It is " "the same as ``type(socket(...))``." msgstr "" -#: ../../library/socket.rst:619 +#: ../../library/socket.rst:621 msgid "Other functions" msgstr "" -#: ../../library/socket.rst:621 +#: ../../library/socket.rst:623 msgid "The :mod:`socket` module also offers various network-related services:" msgstr "" -#: ../../library/socket.rst:626 +#: ../../library/socket.rst:628 msgid "" "Close a socket file descriptor. This is like :func:`os.close`, but for " "sockets. On some platforms (most noticeable Windows) :func:`os.close` does " "not work for socket file descriptors." msgstr "" -#: ../../library/socket.rst:634 +#: ../../library/socket.rst:636 msgid "" "Translate the *host*/*port* argument into a sequence of 5-tuples that " "contain all the necessary arguments for creating a socket connected to that " "service. *host* is a domain name, a string representation of an IPv4/v6 " "address or ``None``. *port* is a string service name such as ``'http'``, a " -"numeric port number or ``None``. By passing ``None`` as the value of *host*" -" and *port*, you can pass ``NULL`` to the underlying C API." +"numeric port number or ``None``. By passing ``None`` as the value of *host* " +"and *port*, you can pass ``NULL`` to the underlying C API." msgstr "" -#: ../../library/socket.rst:641 +#: ../../library/socket.rst:643 msgid "" "The *family*, *type* and *proto* arguments can be optionally specified in " -"order to narrow the list of addresses returned. Passing zero as a value for" -" each of these arguments selects the full range of results. The *flags* " -"argument can be one or several of the ``AI_*`` constants, and will influence" -" how results are computed and returned. For example, :const:`AI_NUMERICHOST`" -" will disable domain name resolution and will raise an error if *host* is a " +"order to narrow the list of addresses returned. Passing zero as a value for " +"each of these arguments selects the full range of results. The *flags* " +"argument can be one or several of the ``AI_*`` constants, and will influence " +"how results are computed and returned. For example, :const:`AI_NUMERICHOST` " +"will disable domain name resolution and will raise an error if *host* is a " "domain name." msgstr "" -#: ../../library/socket.rst:649 +#: ../../library/socket.rst:651 msgid "The function returns a list of 5-tuples with the following structure:" msgstr "" -#: ../../library/socket.rst:651 +#: ../../library/socket.rst:653 msgid "``(family, type, proto, canonname, sockaddr)``" msgstr "" -#: ../../library/socket.rst:653 +#: ../../library/socket.rst:655 msgid "" -"In these tuples, *family*, *type*, *proto* are all integers and are meant to" -" be passed to the :func:`.socket` function. *canonname* will be a string " +"In these tuples, *family*, *type*, *proto* are all integers and are meant to " +"be passed to the :func:`.socket` function. *canonname* will be a string " "representing the canonical name of the *host* if :const:`AI_CANONNAME` is " -"part of the *flags* argument; else *canonname* will be empty. *sockaddr* is" -" a tuple describing a socket address, whose format depends on the returned " +"part of the *flags* argument; else *canonname* will be empty. *sockaddr* is " +"a tuple describing a socket address, whose format depends on the returned " "*family* (a ``(address, port)`` 2-tuple for :const:`AF_INET`, a ``(address, " -"port, flow info, scope id)`` 4-tuple for :const:`AF_INET6`), and is meant to" -" be passed to the :meth:`socket.connect` method." +"port, flow info, scope id)`` 4-tuple for :const:`AF_INET6`), and is meant to " +"be passed to the :meth:`socket.connect` method." msgstr "" -#: ../../library/socket.rst:663 +#: ../../library/socket.rst:665 msgid "" "The following example fetches address information for a hypothetical TCP " "connection to ``example.org`` on port 80 (results may differ on your system " "if IPv6 isn't enabled)::" msgstr "" -#: ../../library/socket.rst:673 +#: ../../library/socket.rst:675 msgid "parameters can now be passed using keyword arguments." msgstr "" -#: ../../library/socket.rst:676 +#: ../../library/socket.rst:678 msgid "" "for IPv6 multicast addresses, string representing an address will not " "contain ``%scope`` part." msgstr "" -#: ../../library/socket.rst:682 +#: ../../library/socket.rst:684 msgid "" "Return a fully qualified domain name for *name*. If *name* is omitted or " "empty, it is interpreted as the local host. To find the fully qualified " -"name, the hostname returned by :func:`gethostbyaddr` is checked, followed by" -" aliases for the host, if available. The first name which includes a period" -" is selected. In case no fully qualified domain name is available, the " +"name, the hostname returned by :func:`gethostbyaddr` is checked, followed by " +"aliases for the host, if available. The first name which includes a period " +"is selected. In case no fully qualified domain name is available, the " "hostname as returned by :func:`gethostname` is returned." msgstr "" -#: ../../library/socket.rst:692 +#: ../../library/socket.rst:694 msgid "" "Translate a host name to IPv4 address format. The IPv4 address is returned " "as a string, such as ``'100.50.200.5'``. If the host name is an IPv4 " -"address itself it is returned unchanged. See :func:`gethostbyname_ex` for a" -" more complete interface. :func:`gethostbyname` does not support IPv6 name " +"address itself it is returned unchanged. See :func:`gethostbyname_ex` for a " +"more complete interface. :func:`gethostbyname` does not support IPv6 name " "resolution, and :func:`getaddrinfo` should be used instead for IPv4/v6 dual " "stack support." msgstr "" -#: ../../library/socket.rst:701 +#: ../../library/socket.rst:703 msgid "" "Translate a host name to IPv4 address format, extended interface. Return a " -"triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary" -" host name responding to the given *ip_address*, *aliaslist* is a (possibly " -"empty) list of alternative host names for the same address, and *ipaddrlist*" -" is a list of IPv4 addresses for the same interface on the same host (often " +"triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary " +"host name responding to the given *ip_address*, *aliaslist* is a (possibly " +"empty) list of alternative host names for the same address, and *ipaddrlist* " +"is a list of IPv4 addresses for the same interface on the same host (often " "but not always a single address). :func:`gethostbyname_ex` does not support " "IPv6 name resolution, and :func:`getaddrinfo` should be used instead for " "IPv4/v6 dual stack support." msgstr "" -#: ../../library/socket.rst:713 +#: ../../library/socket.rst:715 msgid "" "Return a string containing the hostname of the machine where the Python " "interpreter is currently executing." msgstr "" -#: ../../library/socket.rst:716 +#: ../../library/socket.rst:718 msgid "" "Note: :func:`gethostname` doesn't always return the fully qualified domain " "name; use :func:`getfqdn` for that." msgstr "" -#: ../../library/socket.rst:722 +#: ../../library/socket.rst:724 msgid "" "Return a triple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is " -"the primary host name responding to the given *ip_address*, *aliaslist* is a" -" (possibly empty) list of alternative host names for the same address, and " +"the primary host name responding to the given *ip_address*, *aliaslist* is a " +"(possibly empty) list of alternative host names for the same address, and " "*ipaddrlist* is a list of IPv4/v6 addresses for the same interface on the " "same host (most likely containing only a single address). To find the fully " -"qualified domain name, use the function :func:`getfqdn`. " -":func:`gethostbyaddr` supports both IPv4 and IPv6." +"qualified domain name, use the function :func:`getfqdn`. :func:" +"`gethostbyaddr` supports both IPv4 and IPv6." msgstr "" -#: ../../library/socket.rst:733 +#: ../../library/socket.rst:735 msgid "" "Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. " "Depending on the settings of *flags*, the result can contain a fully-" @@ -901,50 +893,50 @@ msgid "" "Similarly, *port* can contain a string port name or a numeric port number." msgstr "" -#: ../../library/socket.rst:738 +#: ../../library/socket.rst:740 msgid "" "For IPv6 addresses, ``%scope`` is appended to the host part if *sockaddr* " "contains meaningful *scopeid*. Usually this happens for multicast addresses." msgstr "" -#: ../../library/socket.rst:743 +#: ../../library/socket.rst:745 msgid "" "Translate an Internet protocol name (for example, ``'icmp'``) to a constant " -"suitable for passing as the (optional) third argument to the :func:`.socket`" -" function. This is usually only needed for sockets opened in \"raw\" mode " -"(:const:`SOCK_RAW`); for the normal socket modes, the correct protocol is " +"suitable for passing as the (optional) third argument to the :func:`.socket` " +"function. This is usually only needed for sockets opened in \"raw\" mode (:" +"const:`SOCK_RAW`); for the normal socket modes, the correct protocol is " "chosen automatically if the protocol is omitted or zero." msgstr "" -#: ../../library/socket.rst:752 +#: ../../library/socket.rst:754 msgid "" "Translate an Internet service name and protocol name to a port number for " "that service. The optional protocol name, if given, should be ``'tcp'`` or " "``'udp'``, otherwise any protocol will match." msgstr "" -#: ../../library/socket.rst:759 +#: ../../library/socket.rst:761 msgid "" "Translate an Internet port number and protocol name to a service name for " "that service. The optional protocol name, if given, should be ``'tcp'`` or " "``'udp'``, otherwise any protocol will match." msgstr "" -#: ../../library/socket.rst:766 +#: ../../library/socket.rst:768 msgid "" "Convert 32-bit positive integers from network to host byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 4-byte swap operation." msgstr "" -#: ../../library/socket.rst:773 +#: ../../library/socket.rst:775 msgid "" "Convert 16-bit positive integers from network to host byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 2-byte swap operation." msgstr "" -#: ../../library/socket.rst:777 ../../library/socket.rst:797 +#: ../../library/socket.rst:779 ../../library/socket.rst:799 msgid "" "In case *x* does not fit in 16-bit unsigned integer, but does fit in a " "positive C int, it is silently truncated to 16-bit unsigned integer. This " @@ -952,21 +944,21 @@ msgid "" "future versions of Python." msgstr "" -#: ../../library/socket.rst:786 +#: ../../library/socket.rst:788 msgid "" "Convert 32-bit positive integers from host to network byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 4-byte swap operation." msgstr "" -#: ../../library/socket.rst:793 +#: ../../library/socket.rst:795 msgid "" "Convert 16-bit positive integers from host to network byte order. On " "machines where the host byte order is the same as network byte order, this " "is a no-op; otherwise, it performs a 2-byte swap operation." msgstr "" -#: ../../library/socket.rst:806 +#: ../../library/socket.rst:808 msgid "" "Convert an IPv4 address from dotted-quad string format (for example, " "'123.45.67.89') to 32-bit packed binary format, as a bytes object four " @@ -976,36 +968,36 @@ msgid "" "returns." msgstr "" -#: ../../library/socket.rst:812 +#: ../../library/socket.rst:814 msgid "" ":func:`inet_aton` also accepts strings with less than three dots; see the " "Unix manual page :manpage:`inet(3)` for details." msgstr "" -#: ../../library/socket.rst:815 +#: ../../library/socket.rst:817 msgid "" -"If the IPv4 address string passed to this function is invalid, " -":exc:`OSError` will be raised. Note that exactly what is valid depends on " -"the underlying C implementation of :c:func:`inet_aton`." +"If the IPv4 address string passed to this function is invalid, :exc:" +"`OSError` will be raised. Note that exactly what is valid depends on the " +"underlying C implementation of :c:func:`inet_aton`." msgstr "" -#: ../../library/socket.rst:819 +#: ../../library/socket.rst:821 msgid "" ":func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be " "used instead for IPv4/v6 dual stack support." msgstr "" -#: ../../library/socket.rst:825 +#: ../../library/socket.rst:827 msgid "" -"Convert a 32-bit packed IPv4 address (a :term:`bytes-like object` four bytes" -" in length) to its standard dotted-quad string representation (for example, " +"Convert a 32-bit packed IPv4 address (a :term:`bytes-like object` four bytes " +"in length) to its standard dotted-quad string representation (for example, " "'123.45.67.89'). This is useful when conversing with a program that uses " "the standard C library and needs objects of type :c:type:`struct in_addr`, " -"which is the C type for the 32-bit packed binary data this function takes as" -" an argument." +"which is the C type for the 32-bit packed binary data this function takes as " +"an argument." msgstr "" -#: ../../library/socket.rst:832 +#: ../../library/socket.rst:834 msgid "" "If the byte sequence passed to this function is not exactly 4 bytes in " "length, :exc:`OSError` will be raised. :func:`inet_ntoa` does not support " @@ -1013,33 +1005,33 @@ msgid "" "support." msgstr "" -#: ../../library/socket.rst:843 +#: ../../library/socket.rst:845 msgid "" "Convert an IP address from its family-specific string format to a packed, " "binary format. :func:`inet_pton` is useful when a library or network " -"protocol calls for an object of type :c:type:`struct in_addr` (similar to " -":func:`inet_aton`) or :c:type:`struct in6_addr`." +"protocol calls for an object of type :c:type:`struct in_addr` (similar to :" +"func:`inet_aton`) or :c:type:`struct in6_addr`." msgstr "" -#: ../../library/socket.rst:848 +#: ../../library/socket.rst:850 msgid "" -"Supported values for *address_family* are currently :const:`AF_INET` and " -":const:`AF_INET6`. If the IP address string *ip_string* is invalid, " -":exc:`OSError` will be raised. Note that exactly what is valid depends on " -"both the value of *address_family* and the underlying implementation of " -":c:func:`inet_pton`." +"Supported values for *address_family* are currently :const:`AF_INET` and :" +"const:`AF_INET6`. If the IP address string *ip_string* is invalid, :exc:" +"`OSError` will be raised. Note that exactly what is valid depends on both " +"the value of *address_family* and the underlying implementation of :c:func:" +"`inet_pton`." msgstr "" -#: ../../library/socket.rst:855 ../../library/socket.rst:875 +#: ../../library/socket.rst:857 ../../library/socket.rst:877 msgid "" ":ref:`Availability `: Unix (maybe not all platforms), Windows." msgstr "" -#: ../../library/socket.rst:856 ../../library/socket.rst:876 +#: ../../library/socket.rst:858 ../../library/socket.rst:878 msgid "Windows support added" msgstr "" -#: ../../library/socket.rst:862 +#: ../../library/socket.rst:864 msgid "" "Convert a packed IP address (a :term:`bytes-like object` of some number of " "bytes) to its standard, family-specific string representation (for example, " @@ -1048,43 +1040,43 @@ msgid "" "in_addr` (similar to :func:`inet_ntoa`) or :c:type:`struct in6_addr`." msgstr "" -#: ../../library/socket.rst:869 +#: ../../library/socket.rst:871 msgid "" -"Supported values for *address_family* are currently :const:`AF_INET` and " -":const:`AF_INET6`. If the bytes object *packed_ip* is not the correct length" -" for the specified address family, :exc:`ValueError` will be raised. " -":exc:`OSError` is raised for errors from the call to :func:`inet_ntop`." +"Supported values for *address_family* are currently :const:`AF_INET` and :" +"const:`AF_INET6`. If the bytes object *packed_ip* is not the correct length " +"for the specified address family, :exc:`ValueError` will be raised. :exc:" +"`OSError` is raised for errors from the call to :func:`inet_ntop`." msgstr "" -#: ../../library/socket.rst:891 +#: ../../library/socket.rst:893 msgid "" -"Return the total length, without trailing padding, of an ancillary data item" -" with associated data of the given *length*. This value can often be used " -"as the buffer size for :meth:`~socket.recvmsg` to receive a single item of " -"ancillary data, but :rfc:`3542` requires portable applications to use " -":func:`CMSG_SPACE` and thus include space for padding, even when the item " -"will be the last in the buffer. Raises :exc:`OverflowError` if *length* is " -"outside the permissible range of values." +"Return the total length, without trailing padding, of an ancillary data item " +"with associated data of the given *length*. This value can often be used as " +"the buffer size for :meth:`~socket.recvmsg` to receive a single item of " +"ancillary data, but :rfc:`3542` requires portable applications to use :func:" +"`CMSG_SPACE` and thus include space for padding, even when the item will be " +"the last in the buffer. Raises :exc:`OverflowError` if *length* is outside " +"the permissible range of values." msgstr "" -#: ../../library/socket.rst:901 ../../library/socket.rst:922 -#: ../../library/socket.rst:1307 ../../library/socket.rst:1349 -#: ../../library/socket.rst:1453 +#: ../../library/socket.rst:903 ../../library/socket.rst:924 +#: ../../library/socket.rst:1309 ../../library/socket.rst:1351 +#: ../../library/socket.rst:1455 msgid "" ":ref:`Availability `: most Unix platforms, possibly others." msgstr "" -#: ../../library/socket.rst:907 +#: ../../library/socket.rst:909 msgid "" "Return the buffer size needed for :meth:`~socket.recvmsg` to receive an " "ancillary data item with associated data of the given *length*, along with " "any trailing padding. The buffer space needed to receive multiple items is " -"the sum of the :func:`CMSG_SPACE` values for their associated data lengths." -" Raises :exc:`OverflowError` if *length* is outside the permissible range " -"of values." +"the sum of the :func:`CMSG_SPACE` values for their associated data lengths. " +"Raises :exc:`OverflowError` if *length* is outside the permissible range of " +"values." msgstr "" -#: ../../library/socket.rst:915 +#: ../../library/socket.rst:917 msgid "" "Note that some systems might support ancillary data without providing this " "function. Also note that setting the buffer size using the results of this " @@ -1092,264 +1084,260 @@ msgid "" "received, since additional data may be able to fit into the padding area." msgstr "" -#: ../../library/socket.rst:928 +#: ../../library/socket.rst:930 msgid "" "Return the default timeout in seconds (float) for new socket objects. A " "value of ``None`` indicates that new socket objects have no timeout. When " "the socket module is first imported, the default is ``None``." msgstr "" -#: ../../library/socket.rst:935 +#: ../../library/socket.rst:937 msgid "" -"Set the default timeout in seconds (float) for new socket objects. When the" -" socket module is first imported, the default is ``None``. See " -":meth:`~socket.settimeout` for possible values and their respective " -"meanings." +"Set the default timeout in seconds (float) for new socket objects. When the " +"socket module is first imported, the default is ``None``. See :meth:" +"`~socket.settimeout` for possible values and their respective meanings." msgstr "" -#: ../../library/socket.rst:943 +#: ../../library/socket.rst:945 msgid "" "Set the machine's hostname to *name*. This will raise an :exc:`OSError` if " "you don't have enough rights." msgstr "" -#: ../../library/socket.rst:947 ../../library/socket.rst:958 -#: ../../library/socket.rst:969 ../../library/socket.rst:980 +#: ../../library/socket.rst:949 ../../library/socket.rst:960 +#: ../../library/socket.rst:971 ../../library/socket.rst:982 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilidade `: Unix." -#: ../../library/socket.rst:953 +#: ../../library/socket.rst:955 msgid "" "Return a list of network interface information (index int, name string) " "tuples. :exc:`OSError` if the system call fails." msgstr "" -#: ../../library/socket.rst:964 +#: ../../library/socket.rst:966 msgid "" -"Return a network interface index number corresponding to an interface name. " -":exc:`OSError` if no interface with the given name exists." +"Return a network interface index number corresponding to an interface name. :" +"exc:`OSError` if no interface with the given name exists." msgstr "" -#: ../../library/socket.rst:975 +#: ../../library/socket.rst:977 msgid "" -"Return a network interface name corresponding to an interface index number. " -":exc:`OSError` if no interface with the given index exists." +"Return a network interface name corresponding to an interface index number. :" +"exc:`OSError` if no interface with the given index exists." msgstr "" -#: ../../library/socket.rst:987 +#: ../../library/socket.rst:989 msgid "Socket Objects" msgstr "" -#: ../../library/socket.rst:989 +#: ../../library/socket.rst:991 msgid "" -"Socket objects have the following methods. Except for " -":meth:`~socket.makefile`, these correspond to Unix system calls applicable " -"to sockets." +"Socket objects have the following methods. Except for :meth:`~socket." +"makefile`, these correspond to Unix system calls applicable to sockets." msgstr "" -#: ../../library/socket.rst:993 +#: ../../library/socket.rst:995 msgid "" "Support for the :term:`context manager` protocol was added. Exiting the " "context manager is equivalent to calling :meth:`~socket.close`." msgstr "" -#: ../../library/socket.rst:1000 +#: ../../library/socket.rst:1002 msgid "" "Accept a connection. The socket must be bound to an address and listening " -"for connections. The return value is a pair ``(conn, address)`` where *conn*" -" is a *new* socket object usable to send and receive data on the connection," -" and *address* is the address bound to the socket on the other end of the " +"for connections. The return value is a pair ``(conn, address)`` where *conn* " +"is a *new* socket object usable to send and receive data on the connection, " +"and *address* is the address bound to the socket on the other end of the " "connection." msgstr "" -#: ../../library/socket.rst:1007 ../../library/socket.rst:1090 +#: ../../library/socket.rst:1009 ../../library/socket.rst:1092 msgid "The socket is now non-inheritable." msgstr "" -#: ../../library/socket.rst:1010 ../../library/socket.rst:1221 -#: ../../library/socket.rst:1235 ../../library/socket.rst:1310 -#: ../../library/socket.rst:1381 ../../library/socket.rst:1400 -#: ../../library/socket.rst:1415 ../../library/socket.rst:1456 +#: ../../library/socket.rst:1012 ../../library/socket.rst:1223 +#: ../../library/socket.rst:1237 ../../library/socket.rst:1312 +#: ../../library/socket.rst:1383 ../../library/socket.rst:1402 +#: ../../library/socket.rst:1417 ../../library/socket.rst:1458 msgid "" "If the system call is interrupted and the signal handler does not raise an " -"exception, the method now retries the system call instead of raising an " -":exc:`InterruptedError` exception (see :pep:`475` for the rationale)." +"exception, the method now retries the system call instead of raising an :exc:" +"`InterruptedError` exception (see :pep:`475` for the rationale)." msgstr "" -#: ../../library/socket.rst:1018 +#: ../../library/socket.rst:1020 msgid "" "Bind the socket to *address*. The socket must not already be bound. (The " "format of *address* depends on the address family --- see above.)" msgstr "" -#: ../../library/socket.rst:1024 +#: ../../library/socket.rst:1026 msgid "" "Mark the socket closed. The underlying system resource (e.g. a file " -"descriptor) is also closed when all file objects from :meth:`makefile()` are" -" closed. Once that happens, all future operations on the socket object will" -" fail. The remote end will receive no more data (after queued data is " +"descriptor) is also closed when all file objects from :meth:`makefile()` are " +"closed. Once that happens, all future operations on the socket object will " +"fail. The remote end will receive no more data (after queued data is " "flushed)." msgstr "" -#: ../../library/socket.rst:1030 +#: ../../library/socket.rst:1032 msgid "" "Sockets are automatically closed when they are garbage-collected, but it is " "recommended to :meth:`close` them explicitly, or to use a :keyword:`with` " "statement around them." msgstr "" -#: ../../library/socket.rst:1034 +#: ../../library/socket.rst:1036 msgid "" -":exc:`OSError` is now raised if an error occurs when the underlying " -":c:func:`close` call is made." +":exc:`OSError` is now raised if an error occurs when the underlying :c:func:" +"`close` call is made." msgstr "" -#: ../../library/socket.rst:1040 +#: ../../library/socket.rst:1042 msgid "" ":meth:`close()` releases the resource associated with a connection but does " "not necessarily close the connection immediately. If you want to close the " -"connection in a timely fashion, call :meth:`shutdown()` before " -":meth:`close()`." +"connection in a timely fashion, call :meth:`shutdown()` before :meth:" +"`close()`." msgstr "" -#: ../../library/socket.rst:1048 +#: ../../library/socket.rst:1050 msgid "" -"Connect to a remote socket at *address*. (The format of *address* depends on" -" the address family --- see above.)" +"Connect to a remote socket at *address*. (The format of *address* depends on " +"the address family --- see above.)" msgstr "" -#: ../../library/socket.rst:1051 +#: ../../library/socket.rst:1053 msgid "" "If the connection is interrupted by a signal, the method waits until the " "connection completes, or raise a :exc:`socket.timeout` on timeout, if the " "signal handler doesn't raise an exception and the socket is blocking or has " -"a timeout. For non-blocking sockets, the method raises an " -":exc:`InterruptedError` exception if the connection is interrupted by a " -"signal (or the exception raised by the signal handler)." +"a timeout. For non-blocking sockets, the method raises an :exc:" +"`InterruptedError` exception if the connection is interrupted by a signal " +"(or the exception raised by the signal handler)." msgstr "" -#: ../../library/socket.rst:1058 +#: ../../library/socket.rst:1060 msgid "" -"The method now waits until the connection completes instead of raising an " -":exc:`InterruptedError` exception if the connection is interrupted by a " +"The method now waits until the connection completes instead of raising an :" +"exc:`InterruptedError` exception if the connection is interrupted by a " "signal, the signal handler doesn't raise an exception and the socket is " "blocking or has a timeout (see the :pep:`475` for the rationale)." msgstr "" -#: ../../library/socket.rst:1067 +#: ../../library/socket.rst:1069 msgid "" "Like ``connect(address)``, but return an error indicator instead of raising " "an exception for errors returned by the C-level :c:func:`connect` call " "(other problems, such as \"host not found,\" can still raise exceptions). " -"The error indicator is ``0`` if the operation succeeded, otherwise the value" -" of the :c:data:`errno` variable. This is useful to support, for example, " +"The error indicator is ``0`` if the operation succeeded, otherwise the value " +"of the :c:data:`errno` variable. This is useful to support, for example, " "asynchronous connects." msgstr "" -#: ../../library/socket.rst:1077 +#: ../../library/socket.rst:1079 msgid "" "Put the socket object into closed state without actually closing the " "underlying file descriptor. The file descriptor is returned, and can be " "reused for other purposes." msgstr "" -#: ../../library/socket.rst:1086 +#: ../../library/socket.rst:1088 msgid "Duplicate the socket." msgstr "" -#: ../../library/socket.rst:1096 +#: ../../library/socket.rst:1098 msgid "" "Return the socket's file descriptor (a small integer), or -1 on failure. " "This is useful with :func:`select.select`." msgstr "" -#: ../../library/socket.rst:1099 +#: ../../library/socket.rst:1101 msgid "" -"Under Windows the small integer returned by this method cannot be used where" -" a file descriptor can be used (such as :func:`os.fdopen`). Unix does not " +"Under Windows the small integer returned by this method cannot be used where " +"a file descriptor can be used (such as :func:`os.fdopen`). Unix does not " "have this limitation." msgstr "" -#: ../../library/socket.rst:1105 +#: ../../library/socket.rst:1107 msgid "" "Get the :ref:`inheritable flag ` of the socket's file " "descriptor or socket's handle: ``True`` if the socket can be inherited in " "child processes, ``False`` if it cannot." msgstr "" -#: ../../library/socket.rst:1114 +#: ../../library/socket.rst:1116 msgid "" "Return the remote address to which the socket is connected. This is useful " "to find out the port number of a remote IPv4/v6 socket, for instance. (The " -"format of the address returned depends on the address family --- see above.)" -" On some systems this function is not supported." +"format of the address returned depends on the address family --- see " +"above.) On some systems this function is not supported." msgstr "" -#: ../../library/socket.rst:1122 +#: ../../library/socket.rst:1124 msgid "" -"Return the socket's own address. This is useful to find out the port number" -" of an IPv4/v6 socket, for instance. (The format of the address returned " +"Return the socket's own address. This is useful to find out the port number " +"of an IPv4/v6 socket, for instance. (The format of the address returned " "depends on the address family --- see above.)" msgstr "" -#: ../../library/socket.rst:1129 +#: ../../library/socket.rst:1131 msgid "" -"Return the value of the given socket option (see the Unix man page " -":manpage:`getsockopt(2)`). The needed symbolic constants (:const:`SO_\\*` " -"etc.) are defined in this module. If *buflen* is absent, an integer option " -"is assumed and its integer value is returned by the function. If *buflen* " -"is present, it specifies the maximum length of the buffer used to receive " -"the option in, and this buffer is returned as a bytes object. It is up to " -"the caller to decode the contents of the buffer (see the optional built-in " -"module :mod:`struct` for a way to decode C structures encoded as byte " -"strings)." +"Return the value of the given socket option (see the Unix man page :manpage:" +"`getsockopt(2)`). The needed symbolic constants (:const:`SO_\\*` etc.) are " +"defined in this module. If *buflen* is absent, an integer option is assumed " +"and its integer value is returned by the function. If *buflen* is present, " +"it specifies the maximum length of the buffer used to receive the option in, " +"and this buffer is returned as a bytes object. It is up to the caller to " +"decode the contents of the buffer (see the optional built-in module :mod:" +"`struct` for a way to decode C structures encoded as byte strings)." msgstr "" -#: ../../library/socket.rst:1141 +#: ../../library/socket.rst:1143 msgid "" "Return ``True`` if socket is in blocking mode, ``False`` if in non-blocking." msgstr "" -#: ../../library/socket.rst:1144 +#: ../../library/socket.rst:1146 msgid "This is equivalent to checking ``socket.gettimeout() == 0``." msgstr "" -#: ../../library/socket.rst:1151 +#: ../../library/socket.rst:1153 msgid "" "Return the timeout in seconds (float) associated with socket operations, or " -"``None`` if no timeout is set. This reflects the last call to " -":meth:`setblocking` or :meth:`settimeout`." +"``None`` if no timeout is set. This reflects the last call to :meth:" +"`setblocking` or :meth:`settimeout`." msgstr "" #: ../../library/socket.rst:0 msgid "platform" msgstr "" -#: ../../library/socket.rst:1158 +#: ../../library/socket.rst:1160 msgid "Windows" msgstr "Windows" -#: ../../library/socket.rst:1160 +#: ../../library/socket.rst:1162 msgid "" "The :meth:`ioctl` method is a limited interface to the WSAIoctl system " -"interface. Please refer to the `Win32 documentation " -"`_ for " -"more information." +"interface. Please refer to the `Win32 documentation `_ for more information." msgstr "" -#: ../../library/socket.rst:1165 +#: ../../library/socket.rst:1167 msgid "" "On other platforms, the generic :func:`fcntl.fcntl` and :func:`fcntl.ioctl` " "functions may be used; they accept a socket object as their first argument." msgstr "" -#: ../../library/socket.rst:1168 +#: ../../library/socket.rst:1170 msgid "" "Currently only the following control codes are supported: ``SIO_RCVALL``, " "``SIO_KEEPALIVE_VALS``, and ``SIO_LOOPBACK_FAST_PATH``." msgstr "" -#: ../../library/socket.rst:1176 +#: ../../library/socket.rst:1178 msgid "" "Enable a server to accept connections. If *backlog* is specified, it must " "be at least 0 (if it is lower, it is set to 0); it specifies the number of " @@ -1357,56 +1345,56 @@ msgid "" "connections. If not specified, a default reasonable value is chosen." msgstr "" -#: ../../library/socket.rst:1181 +#: ../../library/socket.rst:1183 msgid "The *backlog* parameter is now optional." msgstr "" -#: ../../library/socket.rst:1189 +#: ../../library/socket.rst:1191 msgid "" -"Return a :term:`file object` associated with the socket. The exact returned" -" type depends on the arguments given to :meth:`makefile`. These arguments " +"Return a :term:`file object` associated with the socket. The exact returned " +"type depends on the arguments given to :meth:`makefile`. These arguments " "are interpreted the same way as by the built-in :func:`open` function, " "except the only supported *mode* values are ``'r'`` (default), ``'w'`` and " "``'b'``." msgstr "" -#: ../../library/socket.rst:1194 +#: ../../library/socket.rst:1196 msgid "" "The socket must be in blocking mode; it can have a timeout, but the file " "object's internal buffer may end up in an inconsistent state if a timeout " "occurs." msgstr "" -#: ../../library/socket.rst:1198 +#: ../../library/socket.rst:1200 msgid "" "Closing the file object returned by :meth:`makefile` won't close the " -"original socket unless all other file objects have been closed and " -":meth:`socket.close` has been called on the socket object." +"original socket unless all other file objects have been closed and :meth:" +"`socket.close` has been called on the socket object." msgstr "" -#: ../../library/socket.rst:1204 +#: ../../library/socket.rst:1206 msgid "" "On Windows, the file-like object created by :meth:`makefile` cannot be used " "where a file object with a file descriptor is expected, such as the stream " "arguments of :meth:`subprocess.Popen`." msgstr "" -#: ../../library/socket.rst:1211 +#: ../../library/socket.rst:1213 msgid "" "Receive data from the socket. The return value is a bytes object " "representing the data received. The maximum amount of data to be received " -"at once is specified by *bufsize*. See the Unix manual page " -":manpage:`recv(2)` for the meaning of the optional argument *flags*; it " -"defaults to zero." +"at once is specified by *bufsize*. See the Unix manual page :manpage:" +"`recv(2)` for the meaning of the optional argument *flags*; it defaults to " +"zero." msgstr "" -#: ../../library/socket.rst:1218 +#: ../../library/socket.rst:1220 msgid "" "For best match with hardware and network realities, the value of *bufsize* " "should be a relatively small power of 2, for example, 4096." msgstr "" -#: ../../library/socket.rst:1229 +#: ../../library/socket.rst:1231 msgid "" "Receive data from the socket. The return value is a pair ``(bytes, " "address)`` where *bytes* is a bytes object representing the data received " @@ -1416,86 +1404,84 @@ msgid "" "address family --- see above.)" msgstr "" -#: ../../library/socket.rst:1240 +#: ../../library/socket.rst:1242 msgid "" -"For multicast IPv6 address, first item of *address* does not contain " -"``%scope`` part anymore. In order to get full IPv6 address use " -":func:`getnameinfo`." +"For multicast IPv6 address, first item of *address* does not contain ``" +"%scope`` part anymore. In order to get full IPv6 address use :func:" +"`getnameinfo`." msgstr "" -#: ../../library/socket.rst:1247 +#: ../../library/socket.rst:1249 msgid "" "Receive normal data (up to *bufsize* bytes) and ancillary data from the " "socket. The *ancbufsize* argument sets the size in bytes of the internal " -"buffer used to receive the ancillary data; it defaults to 0, meaning that no" -" ancillary data will be received. Appropriate buffer sizes for ancillary " +"buffer used to receive the ancillary data; it defaults to 0, meaning that no " +"ancillary data will be received. Appropriate buffer sizes for ancillary " "data can be calculated using :func:`CMSG_SPACE` or :func:`CMSG_LEN`, and " -"items which do not fit into the buffer might be truncated or discarded. The" -" *flags* argument defaults to 0 and has the same meaning as for " -":meth:`recv`." +"items which do not fit into the buffer might be truncated or discarded. The " +"*flags* argument defaults to 0 and has the same meaning as for :meth:`recv`." msgstr "" -#: ../../library/socket.rst:1257 +#: ../../library/socket.rst:1259 msgid "" -"The return value is a 4-tuple: ``(data, ancdata, msg_flags, address)``. The" -" *data* item is a :class:`bytes` object holding the non-ancillary data " +"The return value is a 4-tuple: ``(data, ancdata, msg_flags, address)``. The " +"*data* item is a :class:`bytes` object holding the non-ancillary data " "received. The *ancdata* item is a list of zero or more tuples " "``(cmsg_level, cmsg_type, cmsg_data)`` representing the ancillary data " "(control messages) received: *cmsg_level* and *cmsg_type* are integers " "specifying the protocol level and protocol-specific type respectively, and " "*cmsg_data* is a :class:`bytes` object holding the associated data. The " -"*msg_flags* item is the bitwise OR of various flags indicating conditions on" -" the received message; see your system documentation for details. If the " +"*msg_flags* item is the bitwise OR of various flags indicating conditions on " +"the received message; see your system documentation for details. If the " "receiving socket is unconnected, *address* is the address of the sending " "socket, if available; otherwise, its value is unspecified." msgstr "" -#: ../../library/socket.rst:1271 +#: ../../library/socket.rst:1273 msgid "" "On some systems, :meth:`sendmsg` and :meth:`recvmsg` can be used to pass " "file descriptors between processes over an :const:`AF_UNIX` socket. When " "this facility is used (it is often restricted to :const:`SOCK_STREAM` " "sockets), :meth:`recvmsg` will return, in its ancillary data, items of the " -"form ``(socket.SOL_SOCKET, socket.SCM_RIGHTS, fds)``, where *fds* is a " -":class:`bytes` object representing the new file descriptors as a binary " -"array of the native C :c:type:`int` type. If :meth:`recvmsg` raises an " -"exception after the system call returns, it will first attempt to close any " -"file descriptors received via this mechanism." +"form ``(socket.SOL_SOCKET, socket.SCM_RIGHTS, fds)``, where *fds* is a :" +"class:`bytes` object representing the new file descriptors as a binary array " +"of the native C :c:type:`int` type. If :meth:`recvmsg` raises an exception " +"after the system call returns, it will first attempt to close any file " +"descriptors received via this mechanism." msgstr "" -#: ../../library/socket.rst:1282 +#: ../../library/socket.rst:1284 msgid "" "Some systems do not indicate the truncated length of ancillary data items " "which have been only partially received. If an item appears to extend " -"beyond the end of the buffer, :meth:`recvmsg` will issue a " -":exc:`RuntimeWarning`, and will return the part of it which is inside the " -"buffer provided it has not been truncated before the start of its associated" -" data." +"beyond the end of the buffer, :meth:`recvmsg` will issue a :exc:" +"`RuntimeWarning`, and will return the part of it which is inside the buffer " +"provided it has not been truncated before the start of its associated data." msgstr "" -#: ../../library/socket.rst:1289 +#: ../../library/socket.rst:1291 msgid "" "On systems which support the :const:`SCM_RIGHTS` mechanism, the following " -"function will receive up to *maxfds* file descriptors, returning the message" -" data and a list containing the descriptors (while ignoring unexpected " -"conditions such as unrelated control messages being received). See also " -":meth:`sendmsg`. ::" +"function will receive up to *maxfds* file descriptors, returning the message " +"data and a list containing the descriptors (while ignoring unexpected " +"conditions such as unrelated control messages being received). See also :" +"meth:`sendmsg`. ::" msgstr "" -#: ../../library/socket.rst:1318 +#: ../../library/socket.rst:1320 msgid "" -"Receive normal data and ancillary data from the socket, behaving as " -":meth:`recvmsg` would, but scatter the non-ancillary data into a series of " -"buffers instead of returning a new bytes object. The *buffers* argument " -"must be an iterable of objects that export writable buffers (e.g. " -":class:`bytearray` objects); these will be filled with successive chunks of " -"the non-ancillary data until it has all been written or there are no more " -"buffers. The operating system may set a limit (:func:`~os.sysconf` value " -"``SC_IOV_MAX``) on the number of buffers that can be used. The *ancbufsize*" -" and *flags* arguments have the same meaning as for :meth:`recvmsg`." +"Receive normal data and ancillary data from the socket, behaving as :meth:" +"`recvmsg` would, but scatter the non-ancillary data into a series of buffers " +"instead of returning a new bytes object. The *buffers* argument must be an " +"iterable of objects that export writable buffers (e.g. :class:`bytearray` " +"objects); these will be filled with successive chunks of the non-ancillary " +"data until it has all been written or there are no more buffers. The " +"operating system may set a limit (:func:`~os.sysconf` value ``SC_IOV_MAX``) " +"on the number of buffers that can be used. The *ancbufsize* and *flags* " +"arguments have the same meaning as for :meth:`recvmsg`." msgstr "" -#: ../../library/socket.rst:1329 +#: ../../library/socket.rst:1331 msgid "" "The return value is a 4-tuple: ``(nbytes, ancdata, msg_flags, address)``, " "where *nbytes* is the total number of bytes of non-ancillary data written " @@ -1503,41 +1489,40 @@ msgid "" "for :meth:`recvmsg`." msgstr "" -#: ../../library/socket.rst:1334 +#: ../../library/socket.rst:1336 msgid "Example::" msgstr "Exemplo::" -#: ../../library/socket.rst:1355 +#: ../../library/socket.rst:1357 msgid "" -"Receive data from the socket, writing it into *buffer* instead of creating a" -" new bytestring. The return value is a pair ``(nbytes, address)`` where " -"*nbytes* is the number of bytes received and *address* is the address of the" -" socket sending the data. See the Unix manual page :manpage:`recv(2)` for " +"Receive data from the socket, writing it into *buffer* instead of creating a " +"new bytestring. The return value is a pair ``(nbytes, address)`` where " +"*nbytes* is the number of bytes received and *address* is the address of the " +"socket sending the data. See the Unix manual page :manpage:`recv(2)` for " "the meaning of the optional argument *flags*; it defaults to zero. (The " "format of *address* depends on the address family --- see above.)" msgstr "" -#: ../../library/socket.rst:1365 +#: ../../library/socket.rst:1367 msgid "" -"Receive up to *nbytes* bytes from the socket, storing the data into a buffer" -" rather than creating a new bytestring. If *nbytes* is not specified (or " -"0), receive up to the size available in the given buffer. Returns the " -"number of bytes received. See the Unix manual page :manpage:`recv(2)` for " -"the meaning of the optional argument *flags*; it defaults to zero." +"Receive up to *nbytes* bytes from the socket, storing the data into a buffer " +"rather than creating a new bytestring. If *nbytes* is not specified (or 0), " +"receive up to the size available in the given buffer. Returns the number of " +"bytes received. See the Unix manual page :manpage:`recv(2)` for the meaning " +"of the optional argument *flags*; it defaults to zero." msgstr "" -#: ../../library/socket.rst:1374 +#: ../../library/socket.rst:1376 msgid "" "Send data to the socket. The socket must be connected to a remote socket. " "The optional *flags* argument has the same meaning as for :meth:`recv` " "above. Returns the number of bytes sent. Applications are responsible for " "checking that all data has been sent; if only some of the data was " "transmitted, the application needs to attempt delivery of the remaining " -"data. For further information on this topic, consult the :ref:`socket-" -"howto`." +"data. For further information on this topic, consult the :ref:`socket-howto`." msgstr "" -#: ../../library/socket.rst:1389 +#: ../../library/socket.rst:1391 msgid "" "Send data to the socket. The socket must be connected to a remote socket. " "The optional *flags* argument has the same meaning as for :meth:`recv` " @@ -1547,13 +1532,13 @@ msgid "" "to determine how much data, if any, was successfully sent." msgstr "" -#: ../../library/socket.rst:1396 +#: ../../library/socket.rst:1398 msgid "" -"The socket timeout is no more reset each time data is sent successfully. The" -" socket timeout is now the maximum total duration to send all data." +"The socket timeout is no more reset each time data is sent successfully. The " +"socket timeout is now the maximum total duration to send all data." msgstr "" -#: ../../library/socket.rst:1409 +#: ../../library/socket.rst:1411 msgid "" "Send data to the socket. The socket should not be connected to a remote " "socket, since the destination socket is specified by *address*. The " @@ -1562,113 +1547,112 @@ msgid "" "address family --- see above.)" msgstr "" -#: ../../library/socket.rst:1423 +#: ../../library/socket.rst:1425 msgid "" "Send normal and ancillary data to the socket, gathering the non-ancillary " "data from a series of buffers and concatenating it into a single message. " -"The *buffers* argument specifies the non-ancillary data as an iterable of " -":term:`bytes-like objects ` (e.g. :class:`bytes` " -"objects); the operating system may set a limit (:func:`~os.sysconf` value " +"The *buffers* argument specifies the non-ancillary data as an iterable of :" +"term:`bytes-like objects ` (e.g. :class:`bytes` objects); " +"the operating system may set a limit (:func:`~os.sysconf` value " "``SC_IOV_MAX``) on the number of buffers that can be used. The *ancdata* " "argument specifies the ancillary data (control messages) as an iterable of " "zero or more tuples ``(cmsg_level, cmsg_type, cmsg_data)``, where " "*cmsg_level* and *cmsg_type* are integers specifying the protocol level and " "protocol-specific type respectively, and *cmsg_data* is a bytes-like object " -"holding the associated data. Note that some systems (in particular, systems" -" without :func:`CMSG_SPACE`) might support sending only one control message " +"holding the associated data. Note that some systems (in particular, systems " +"without :func:`CMSG_SPACE`) might support sending only one control message " "per call. The *flags* argument defaults to 0 and has the same meaning as " "for :meth:`send`. If *address* is supplied and not ``None``, it sets a " "destination address for the message. The return value is the number of " "bytes of non-ancillary data sent." msgstr "" -#: ../../library/socket.rst:1443 +#: ../../library/socket.rst:1445 msgid "" -"The following function sends the list of file descriptors *fds* over an " -":const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` " +"The following function sends the list of file descriptors *fds* over an :" +"const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` " "mechanism. See also :meth:`recvmsg`. ::" msgstr "" -#: ../../library/socket.rst:1463 +#: ../../library/socket.rst:1465 msgid "" "Specialized version of :meth:`~socket.sendmsg` for :const:`AF_ALG` socket. " "Set mode, IV, AEAD associated data length and flags for :const:`AF_ALG` " "socket." msgstr "" -#: ../../library/socket.rst:1472 +#: ../../library/socket.rst:1474 msgid "" -"Send a file until EOF is reached by using high-performance " -":mod:`os.sendfile` and return the total number of bytes which were sent. " -"*file* must be a regular file object opened in binary mode. If " -":mod:`os.sendfile` is not available (e.g. Windows) or *file* is not a " -"regular file :meth:`send` will be used instead. *offset* tells from where to" -" start reading the file. If specified, *count* is the total number of bytes " -"to transmit as opposed to sending the file until EOF is reached. File " -"position is updated on return or also in case of error in which case " -":meth:`file.tell() ` can be used to figure out the number of" -" bytes which were sent. The socket must be of :const:`SOCK_STREAM` type. " -"Non-blocking sockets are not supported." +"Send a file until EOF is reached by using high-performance :mod:`os." +"sendfile` and return the total number of bytes which were sent. *file* must " +"be a regular file object opened in binary mode. If :mod:`os.sendfile` is not " +"available (e.g. Windows) or *file* is not a regular file :meth:`send` will " +"be used instead. *offset* tells from where to start reading the file. If " +"specified, *count* is the total number of bytes to transmit as opposed to " +"sending the file until EOF is reached. File position is updated on return or " +"also in case of error in which case :meth:`file.tell() ` can " +"be used to figure out the number of bytes which were sent. The socket must " +"be of :const:`SOCK_STREAM` type. Non-blocking sockets are not supported." msgstr "" -#: ../../library/socket.rst:1488 +#: ../../library/socket.rst:1490 msgid "" "Set the :ref:`inheritable flag ` of the socket's file " "descriptor or socket's handle." msgstr "" -#: ../../library/socket.rst:1496 +#: ../../library/socket.rst:1498 msgid "" "Set blocking or non-blocking mode of the socket: if *flag* is false, the " "socket is set to non-blocking, else to blocking mode." msgstr "" -#: ../../library/socket.rst:1499 +#: ../../library/socket.rst:1501 msgid "" "This method is a shorthand for certain :meth:`~socket.settimeout` calls:" msgstr "" -#: ../../library/socket.rst:1501 +#: ../../library/socket.rst:1503 msgid "``sock.setblocking(True)`` is equivalent to ``sock.settimeout(None)``" msgstr "" -#: ../../library/socket.rst:1503 +#: ../../library/socket.rst:1505 msgid "``sock.setblocking(False)`` is equivalent to ``sock.settimeout(0.0)``" msgstr "" -#: ../../library/socket.rst:1505 +#: ../../library/socket.rst:1507 msgid "" -"The method no longer applies :const:`SOCK_NONBLOCK` flag on " -":attr:`socket.type`." +"The method no longer applies :const:`SOCK_NONBLOCK` flag on :attr:`socket." +"type`." msgstr "" -#: ../../library/socket.rst:1512 +#: ../../library/socket.rst:1514 msgid "" "Set a timeout on blocking socket operations. The *value* argument can be a " "nonnegative floating point number expressing seconds, or ``None``. If a non-" -"zero value is given, subsequent socket operations will raise a " -":exc:`timeout` exception if the timeout period *value* has elapsed before " -"the operation has completed. If zero is given, the socket is put in non-" +"zero value is given, subsequent socket operations will raise a :exc:" +"`timeout` exception if the timeout period *value* has elapsed before the " +"operation has completed. If zero is given, the socket is put in non-" "blocking mode. If ``None`` is given, the socket is put in blocking mode." msgstr "" -#: ../../library/socket.rst:1519 +#: ../../library/socket.rst:1521 msgid "" "For further information, please consult the :ref:`notes on socket timeouts " "`." msgstr "" -#: ../../library/socket.rst:1521 +#: ../../library/socket.rst:1523 msgid "" -"The method no longer toggles :const:`SOCK_NONBLOCK` flag on " -":attr:`socket.type`." +"The method no longer toggles :const:`SOCK_NONBLOCK` flag on :attr:`socket." +"type`." msgstr "" -#: ../../library/socket.rst:1532 +#: ../../library/socket.rst:1534 msgid "" -"Set the value of the given socket option (see the Unix manual page " -":manpage:`setsockopt(2)`). The needed symbolic constants are defined in the" -" :mod:`socket` module (:const:`SO_\\*` etc.). The value can be an integer, " +"Set the value of the given socket option (see the Unix manual page :manpage:" +"`setsockopt(2)`). The needed symbolic constants are defined in the :mod:" +"`socket` module (:const:`SO_\\*` etc.). The value can be an integer, " "``None`` or a :term:`bytes-like object` representing a buffer. In the later " "case it is up to the caller to ensure that the bytestring contains the " "proper bits (see the optional built-in module :mod:`struct` for a way to " @@ -1677,87 +1661,86 @@ msgid "" "C function with ``optval=NULL`` and ``optlen=optlen``." msgstr "" -#: ../../library/socket.rst:1546 +#: ../../library/socket.rst:1548 msgid "setsockopt(level, optname, None, optlen: int) form added." msgstr "" -#: ../../library/socket.rst:1552 +#: ../../library/socket.rst:1554 msgid "" -"Shut down one or both halves of the connection. If *how* is " -":const:`SHUT_RD`, further receives are disallowed. If *how* is " -":const:`SHUT_WR`, further sends are disallowed. If *how* is " -":const:`SHUT_RDWR`, further sends and receives are disallowed." +"Shut down one or both halves of the connection. If *how* is :const:" +"`SHUT_RD`, further receives are disallowed. If *how* is :const:`SHUT_WR`, " +"further sends are disallowed. If *how* is :const:`SHUT_RDWR`, further sends " +"and receives are disallowed." msgstr "" -#: ../../library/socket.rst:1560 +#: ../../library/socket.rst:1562 msgid "" "Duplicate a socket and prepare it for sharing with a target process. The " "target process must be provided with *process_id*. The resulting bytes " "object can then be passed to the target process using some form of " -"interprocess communication and the socket can be recreated there using " -":func:`fromshare`. Once this method has been called, it is safe to close the" -" socket since the operating system has already duplicated it for the target " +"interprocess communication and the socket can be recreated there using :func:" +"`fromshare`. Once this method has been called, it is safe to close the " +"socket since the operating system has already duplicated it for the target " "process." msgstr "" -#: ../../library/socket.rst:1572 +#: ../../library/socket.rst:1574 msgid "" -"Note that there are no methods :meth:`read` or :meth:`write`; use " -":meth:`~socket.recv` and :meth:`~socket.send` without *flags* argument " -"instead." +"Note that there are no methods :meth:`read` or :meth:`write`; use :meth:" +"`~socket.recv` and :meth:`~socket.send` without *flags* argument instead." msgstr "" -#: ../../library/socket.rst:1575 +#: ../../library/socket.rst:1577 msgid "" -"Socket objects also have these (read-only) attributes that correspond to the" -" values given to the :class:`~socket.socket` constructor." +"Socket objects also have these (read-only) attributes that correspond to the " +"values given to the :class:`~socket.socket` constructor." msgstr "" -#: ../../library/socket.rst:1581 +#: ../../library/socket.rst:1583 msgid "The socket family." msgstr "" -#: ../../library/socket.rst:1586 +#: ../../library/socket.rst:1588 msgid "The socket type." msgstr "" -#: ../../library/socket.rst:1591 +#: ../../library/socket.rst:1593 msgid "The socket protocol." msgstr "" -#: ../../library/socket.rst:1598 +#: ../../library/socket.rst:1600 msgid "Notes on socket timeouts" msgstr "" -#: ../../library/socket.rst:1600 +#: ../../library/socket.rst:1602 msgid "" "A socket object can be in one of three modes: blocking, non-blocking, or " "timeout. Sockets are by default always created in blocking mode, but this " "can be changed by calling :func:`setdefaulttimeout`." msgstr "" -#: ../../library/socket.rst:1604 +#: ../../library/socket.rst:1606 msgid "" -"In *blocking mode*, operations block until complete or the system returns an" -" error (such as connection timed out)." +"In *blocking mode*, operations block until complete or the system returns an " +"error (such as connection timed out)." msgstr "" -#: ../../library/socket.rst:1607 +#: ../../library/socket.rst:1609 msgid "" -"In *non-blocking mode*, operations fail (with an error that is unfortunately" -" system-dependent) if they cannot be completed immediately: functions from " -"the :mod:`select` can be used to know when and whether a socket is available" -" for reading or writing." +"In *non-blocking mode*, operations fail (with an error that is unfortunately " +"system-dependent) if they cannot be completed immediately: functions from " +"the :mod:`select` can be used to know when and whether a socket is available " +"for reading or writing." msgstr "" -#: ../../library/socket.rst:1612 +#: ../../library/socket.rst:1614 msgid "" "In *timeout mode*, operations fail if they cannot be completed within the " "timeout specified for the socket (they raise a :exc:`timeout` exception) or " "if the system returns an error." msgstr "" -#: ../../library/socket.rst:1617 +#: ../../library/socket.rst:1619 msgid "" "At the operating system level, sockets in *timeout mode* are internally set " "in non-blocking mode. Also, the blocking and timeout modes are shared " @@ -1766,149 +1749,149 @@ msgid "" "you decide to use the :meth:`~socket.fileno()` of a socket." msgstr "" -#: ../../library/socket.rst:1624 +#: ../../library/socket.rst:1626 msgid "Timeouts and the ``connect`` method" msgstr "" -#: ../../library/socket.rst:1626 +#: ../../library/socket.rst:1628 msgid "" "The :meth:`~socket.connect` operation is also subject to the timeout " -"setting, and in general it is recommended to call :meth:`~socket.settimeout`" -" before calling :meth:`~socket.connect` or pass a timeout parameter to " -":meth:`create_connection`. However, the system network stack may also " -"return a connection timeout error of its own regardless of any Python socket" -" timeout setting." +"setting, and in general it is recommended to call :meth:`~socket.settimeout` " +"before calling :meth:`~socket.connect` or pass a timeout parameter to :meth:" +"`create_connection`. However, the system network stack may also return a " +"connection timeout error of its own regardless of any Python socket timeout " +"setting." msgstr "" -#: ../../library/socket.rst:1634 +#: ../../library/socket.rst:1636 msgid "Timeouts and the ``accept`` method" msgstr "" -#: ../../library/socket.rst:1636 +#: ../../library/socket.rst:1638 msgid "" -"If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the " -":meth:`~socket.accept` method inherit that timeout. Otherwise, the " -"behaviour depends on settings of the listening socket:" +"If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :" +"meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour " +"depends on settings of the listening socket:" msgstr "" -#: ../../library/socket.rst:1640 +#: ../../library/socket.rst:1642 msgid "" "if the listening socket is in *blocking mode* or in *timeout mode*, the " "socket returned by :meth:`~socket.accept` is in *blocking mode*;" msgstr "" -#: ../../library/socket.rst:1643 +#: ../../library/socket.rst:1645 msgid "" "if the listening socket is in *non-blocking mode*, whether the socket " "returned by :meth:`~socket.accept` is in blocking or non-blocking mode is " -"operating system-dependent. If you want to ensure cross-platform behaviour," -" it is recommended you manually override this setting." +"operating system-dependent. If you want to ensure cross-platform behaviour, " +"it is recommended you manually override this setting." msgstr "" -#: ../../library/socket.rst:1652 +#: ../../library/socket.rst:1654 msgid "Example" msgstr "Exemplo" -#: ../../library/socket.rst:1654 +#: ../../library/socket.rst:1656 msgid "" "Here are four minimal example programs using the TCP/IP protocol: a server " "that echoes all data that it receives back (servicing only one client), and " -"a client using it. Note that a server must perform the sequence " -":func:`.socket`, :meth:`~socket.bind`, :meth:`~socket.listen`, " -":meth:`~socket.accept` (possibly repeating the :meth:`~socket.accept` to " -"service more than one client), while a client only needs the sequence " -":func:`.socket`, :meth:`~socket.connect`. Also note that the server does " -"not :meth:`~socket.sendall`/:meth:`~socket.recv` on the socket it is " -"listening on but on the new socket returned by :meth:`~socket.accept`." +"a client using it. Note that a server must perform the sequence :func:`." +"socket`, :meth:`~socket.bind`, :meth:`~socket.listen`, :meth:`~socket." +"accept` (possibly repeating the :meth:`~socket.accept` to service more than " +"one client), while a client only needs the sequence :func:`.socket`, :meth:" +"`~socket.connect`. Also note that the server does not :meth:`~socket." +"sendall`/:meth:`~socket.recv` on the socket it is listening on but on the " +"new socket returned by :meth:`~socket.accept`." msgstr "" -#: ../../library/socket.rst:1664 +#: ../../library/socket.rst:1666 msgid "The first two examples support IPv4 only. ::" msgstr "" -#: ../../library/socket.rst:1695 +#: ../../library/socket.rst:1697 msgid "" "The next two examples are identical to the above two, but support both IPv4 " "and IPv6. The server side will listen to the first address family available " -"(it should listen to both instead). On most of IPv6-ready systems, IPv6 will" -" take precedence and the server may not accept IPv4 traffic. The client side" -" will try to connect to the all addresses returned as a result of the name " +"(it should listen to both instead). On most of IPv6-ready systems, IPv6 will " +"take precedence and the server may not accept IPv4 traffic. The client side " +"will try to connect to the all addresses returned as a result of the name " "resolution, and sends traffic to the first one connected successfully. ::" msgstr "" -#: ../../library/socket.rst:1768 +#: ../../library/socket.rst:1770 msgid "" "The next example shows how to write a very simple network sniffer with raw " "sockets on Windows. The example requires administrator privileges to modify " "the interface::" msgstr "" -#: ../../library/socket.rst:1793 +#: ../../library/socket.rst:1795 msgid "" "The next example shows how to use the socket interface to communicate to a " "CAN network using the raw socket protocol. To use CAN with the broadcast " "manager protocol instead, open a socket with::" msgstr "" -#: ../../library/socket.rst:1799 +#: ../../library/socket.rst:1801 msgid "" "After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the " "socket, you can use the :meth:`socket.send`, and the :meth:`socket.recv` " "operations (and their counterparts) on the socket object as usual." msgstr "" -#: ../../library/socket.rst:1803 +#: ../../library/socket.rst:1805 msgid "This last example might require special privileges::" msgstr "" -#: ../../library/socket.rst:1843 +#: ../../library/socket.rst:1845 msgid "" "Running an example several times with too small delay between executions, " "could lead to this error::" msgstr "" -#: ../../library/socket.rst:1848 +#: ../../library/socket.rst:1850 msgid "" "This is because the previous execution has left the socket in a " "``TIME_WAIT`` state, and can't be immediately reused." msgstr "" -#: ../../library/socket.rst:1851 +#: ../../library/socket.rst:1853 msgid "" -"There is a :mod:`socket` flag to set, in order to prevent this, " -":data:`socket.SO_REUSEADDR`::" +"There is a :mod:`socket` flag to set, in order to prevent this, :data:" +"`socket.SO_REUSEADDR`::" msgstr "" -#: ../../library/socket.rst:1858 +#: ../../library/socket.rst:1860 msgid "" "the :data:`SO_REUSEADDR` flag tells the kernel to reuse a local socket in " "``TIME_WAIT`` state, without waiting for its natural timeout to expire." msgstr "" -#: ../../library/socket.rst:1864 +#: ../../library/socket.rst:1866 msgid "" "For an introduction to socket programming (in C), see the following papers:" msgstr "" -#: ../../library/socket.rst:1866 +#: ../../library/socket.rst:1868 msgid "" "*An Introductory 4.3BSD Interprocess Communication Tutorial*, by Stuart " "Sechrest" msgstr "" -#: ../../library/socket.rst:1868 +#: ../../library/socket.rst:1870 msgid "" "*An Advanced 4.3BSD Interprocess Communication Tutorial*, by Samuel J. " "Leffler et al," msgstr "" -#: ../../library/socket.rst:1871 +#: ../../library/socket.rst:1873 msgid "" "both in the UNIX Programmer's Manual, Supplementary Documents 1 (sections " "PS1:7 and PS1:8). The platform-specific reference material for the various " -"socket-related system calls are also a valuable source of information on the" -" details of socket semantics. For Unix, refer to the manual pages; for " -"Windows, see the WinSock (or Winsock 2) specification. For IPv6-ready APIs," -" readers may want to refer to :rfc:`3493` titled Basic Socket Interface " +"socket-related system calls are also a valuable source of information on the " +"details of socket semantics. For Unix, refer to the manual pages; for " +"Windows, see the WinSock (or Winsock 2) specification. For IPv6-ready APIs, " +"readers may want to refer to :rfc:`3493` titled Basic Socket Interface " "Extensions for IPv6." msgstr "" diff --git a/library/socketserver.po b/library/socketserver.po index 4c9a44419..3acbeae3f 100644 --- a/library/socketserver.po +++ b/library/socketserver.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,9 +46,9 @@ msgstr "" msgid "" "This uses the Internet TCP protocol, which provides for continuous streams " "of data between the client and server. If *bind_and_activate* is true, the " -"constructor automatically attempts to invoke :meth:`~BaseServer.server_bind`" -" and :meth:`~BaseServer.server_activate`. The other parameters are passed " -"to the :class:`BaseServer` base class." +"constructor automatically attempts to invoke :meth:`~BaseServer.server_bind` " +"and :meth:`~BaseServer.server_activate`. The other parameters are passed to " +"the :class:`BaseServer` base class." msgstr "" #: ../../library/socketserver.rst:28 @@ -58,21 +60,29 @@ msgstr "" #: ../../library/socketserver.rst:36 msgid "" -"These more infrequently used classes are similar to the TCP and UDP classes," -" but use Unix domain sockets; they're not available on non-Unix platforms. " +"These more infrequently used classes are similar to the TCP and UDP classes, " +"but use Unix domain sockets; they're not available on non-Unix platforms. " "The parameters are the same as for :class:`TCPServer`." msgstr "" #: ../../library/socketserver.rst:42 msgid "" "These four classes process requests :dfn:`synchronously`; each request must " -"be completed before the next request can be started. This isn't suitable if" -" each request takes a long time to complete, because it requires a lot of " -"computation, or because it returns a lot of data which the client is slow to" -" process. The solution is to create a separate process or thread to handle " +"be completed before the next request can be started. This isn't suitable if " +"each request takes a long time to complete, because it requires a lot of " +"computation, or because it returns a lot of data which the client is slow to " +"process. The solution is to create a separate process or thread to handle " "each request; the :class:`ForkingMixIn` and :class:`ThreadingMixIn` mix-in " "classes can be used to support asynchronous behaviour." msgstr "" +"Essas quatro classes processam solicitações :dfn:`synchronously`; cada " +"solicitação deve ser concluída antes que a próxima solicitação possa ser " +"iniciada. Isso não é adequado se cada solicitação demorar muito para ser " +"concluída, porque exige muita computação ou porque retorna muitos dados que " +"o cliente demora a processar. A solução é criar um processo ou thread " +"separado para lidar com cada solicitação; as classes misturadas :class:" +"`ForkingMixIn` e :class:`ThreadingMixIn` podem ser usadas para oferecer " +"suporte ao comportamento assíncrono." #: ../../library/socketserver.rst:50 msgid "" @@ -83,9 +93,9 @@ msgid "" "classes, passing it the server's address and the request handler class. It " "is recommended to use the server in a :keyword:`with` statement. Then call " "the :meth:`~BaseServer.handle_request` or :meth:`~BaseServer.serve_forever` " -"method of the server object to process one or many requests. Finally, call " -":meth:`~BaseServer.server_close` to close the socket (unless you used a " -":keyword:`!with` statement)." +"method of the server object to process one or many requests. Finally, call :" +"meth:`~BaseServer.server_close` to close the socket (unless you used a :" +"keyword:`!with` statement)." msgstr "" #: ../../library/socketserver.rst:62 @@ -93,17 +103,17 @@ msgid "" "When inheriting from :class:`ThreadingMixIn` for threaded connection " "behavior, you should explicitly declare how you want your threads to behave " "on an abrupt shutdown. The :class:`ThreadingMixIn` class defines an " -"attribute *daemon_threads*, which indicates whether or not the server should" -" wait for thread termination. You should set the flag explicitly if you " +"attribute *daemon_threads*, which indicates whether or not the server should " +"wait for thread termination. You should set the flag explicitly if you " "would like threads to behave autonomously; the default is :const:`False`, " -"meaning that Python will not exit until all threads created by " -":class:`ThreadingMixIn` have exited." +"meaning that Python will not exit until all threads created by :class:" +"`ThreadingMixIn` have exited." msgstr "" #: ../../library/socketserver.rst:71 msgid "" -"Server classes have the same external methods and attributes, no matter what" -" network protocol they use." +"Server classes have the same external methods and attributes, no matter what " +"network protocol they use." msgstr "" #: ../../library/socketserver.rst:76 @@ -133,9 +143,9 @@ msgstr "" #: ../../library/socketserver.rst:111 msgid "" -"The mix-in class comes first, since it overrides a method defined in " -":class:`UDPServer`. Setting the various attributes also changes the " -"behavior of the underlying server mechanism." +"The mix-in class comes first, since it overrides a method defined in :class:" +"`UDPServer`. Setting the various attributes also changes the behavior of " +"the underlying server mechanism." msgstr "" #: ../../library/socketserver.rst:115 @@ -147,26 +157,25 @@ msgstr "" #: ../../library/socketserver.rst:118 msgid "" ":meth:`socketserver.ForkingMixIn.server_close` waits until all child " -"processes complete, except if " -":attr:`socketserver.ForkingMixIn.block_on_close` attribute is false." +"processes complete, except if :attr:`socketserver.ForkingMixIn." +"block_on_close` attribute is false." msgstr "" #: ../../library/socketserver.rst:122 msgid "" ":meth:`socketserver.ThreadingMixIn.server_close` waits until all non-daemon " -"threads complete, except if " -":attr:`socketserver.ThreadingMixIn.block_on_close` attribute is false. Use " -"daemonic threads by setting :data:`ThreadingMixIn.daemon_threads` to " -"``True`` to not wait until threads complete." +"threads complete, except if :attr:`socketserver.ThreadingMixIn." +"block_on_close` attribute is false. Use daemonic threads by setting :data:" +"`ThreadingMixIn.daemon_threads` to ``True`` to not wait until threads " +"complete." msgstr "" #: ../../library/socketserver.rst:131 msgid "" -":meth:`socketserver.ForkingMixIn.server_close` and " -":meth:`socketserver.ThreadingMixIn.server_close` now waits until all child " -"processes and non-daemonic threads complete. Add a new " -":attr:`socketserver.ForkingMixIn.block_on_close` class attribute to opt-in " -"for the pre-3.7 behaviour." +":meth:`socketserver.ForkingMixIn.server_close` and :meth:`socketserver." +"ThreadingMixIn.server_close` now waits until all child processes and non-" +"daemonic threads complete. Add a new :attr:`socketserver.ForkingMixIn." +"block_on_close` class attribute to opt-in for the pre-3.7 behaviour." msgstr "" #: ../../library/socketserver.rst:143 @@ -175,24 +184,23 @@ msgstr "" #: ../../library/socketserver.rst:146 msgid "" -"To implement a service, you must derive a class from " -":class:`BaseRequestHandler` and redefine its " -":meth:`~BaseRequestHandler.handle` method. You can then run various versions" -" of the service by combining one of the server classes with your request " -"handler class. The request handler class must be different for datagram or " -"stream services. This can be hidden by using the handler subclasses " -":class:`StreamRequestHandler` or :class:`DatagramRequestHandler`." +"To implement a service, you must derive a class from :class:" +"`BaseRequestHandler` and redefine its :meth:`~BaseRequestHandler.handle` " +"method. You can then run various versions of the service by combining one of " +"the server classes with your request handler class. The request handler " +"class must be different for datagram or stream services. This can be hidden " +"by using the handler subclasses :class:`StreamRequestHandler` or :class:" +"`DatagramRequestHandler`." msgstr "" #: ../../library/socketserver.rst:154 msgid "" -"Of course, you still have to use your head! For instance, it makes no sense" -" to use a forking server if the service contains state in memory that can be" -" modified by different requests, since the modifications in the child " -"process would never reach the initial state kept in the parent process and " -"passed to each child. In this case, you can use a threading server, but you" -" will probably have to use locks to protect the integrity of the shared " -"data." +"Of course, you still have to use your head! For instance, it makes no sense " +"to use a forking server if the service contains state in memory that can be " +"modified by different requests, since the modifications in the child process " +"would never reach the initial state kept in the parent process and passed to " +"each child. In this case, you can use a threading server, but you will " +"probably have to use locks to protect the integrity of the shared data." msgstr "" #: ../../library/socketserver.rst:161 @@ -210,8 +218,8 @@ msgid "" "In some cases, it may be appropriate to process part of a request " "synchronously, but to finish processing in a forked child depending on the " "request data. This can be implemented by using a synchronous server and " -"doing an explicit fork in the request handler class " -":meth:`~BaseRequestHandler.handle` method." +"doing an explicit fork in the request handler class :meth:" +"`~BaseRequestHandler.handle` method." msgstr "" #: ../../library/socketserver.rst:172 @@ -219,12 +227,12 @@ msgid "" "Another approach to handling multiple simultaneous requests in an " "environment that supports neither threads nor :func:`~os.fork` (or where " "these are too expensive or inappropriate for the service) is to maintain an " -"explicit table of partially finished requests and to use :mod:`selectors` to" -" decide which request to work on next (or whether to handle a new incoming " +"explicit table of partially finished requests and to use :mod:`selectors` to " +"decide which request to work on next (or whether to handle a new incoming " "request). This is particularly important for stream services where each " "client can potentially be connected for a long time (if threads or " -"subprocesses cannot be used). See :mod:`asyncore` for another way to manage" -" this." +"subprocesses cannot be used). See :mod:`asyncore` for another way to manage " +"this." msgstr "" #: ../../library/socketserver.rst:186 @@ -234,9 +242,9 @@ msgstr "" #: ../../library/socketserver.rst:190 msgid "" "This is the superclass of all Server objects in the module. It defines the " -"interface, given below, but does not implement most of the methods, which is" -" done in subclasses. The two parameters are stored in the respective " -":attr:`server_address` and :attr:`RequestHandlerClass` attributes." +"interface, given below, but does not implement most of the methods, which is " +"done in subclasses. The two parameters are stored in the respective :attr:" +"`server_address` and :attr:`RequestHandlerClass` attributes." msgstr "" #: ../../library/socketserver.rst:198 @@ -249,12 +257,12 @@ msgstr "" #: ../../library/socketserver.rst:205 msgid "" "Process a single request. This function calls the following methods in " -"order: :meth:`get_request`, :meth:`verify_request`, and " -":meth:`process_request`. If the user-provided " -":meth:`~BaseRequestHandler.handle` method of the handler class raises an " -"exception, the server's :meth:`handle_error` method will be called. If no " -"request is received within :attr:`timeout` seconds, :meth:`handle_timeout` " -"will be called and :meth:`handle_request` will return." +"order: :meth:`get_request`, :meth:`verify_request`, and :meth:" +"`process_request`. If the user-provided :meth:`~BaseRequestHandler.handle` " +"method of the handler class raises an exception, the server's :meth:" +"`handle_error` method will be called. If no request is received within :" +"attr:`timeout` seconds, :meth:`handle_timeout` will be called and :meth:" +"`handle_request` will return." msgstr "" #: ../../library/socketserver.rst:217 @@ -279,92 +287,95 @@ msgid "" msgstr "" #: ../../library/socketserver.rst:239 -msgid "Tell the :meth:`serve_forever` loop to stop and wait until it does." +msgid "" +"Tell the :meth:`serve_forever` loop to stop and wait until it does. :meth:" +"`shutdown` must be called while :meth:`serve_forever` is running in a " +"different thread otherwise it will deadlock." msgstr "" -#: ../../library/socketserver.rst:244 +#: ../../library/socketserver.rst:246 msgid "Clean up the server. May be overridden." msgstr "" -#: ../../library/socketserver.rst:249 +#: ../../library/socketserver.rst:251 msgid "" "The family of protocols to which the server's socket belongs. Common " "examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`." msgstr "" -#: ../../library/socketserver.rst:255 +#: ../../library/socketserver.rst:257 msgid "" "The user-provided request handler class; an instance of this class is " "created for each request." msgstr "" -#: ../../library/socketserver.rst:261 +#: ../../library/socketserver.rst:263 msgid "" "The address on which the server is listening. The format of addresses " -"varies depending on the protocol family; see the documentation for the " -":mod:`socket` module for details. For Internet protocols, this is a tuple " +"varies depending on the protocol family; see the documentation for the :mod:" +"`socket` module for details. For Internet protocols, this is a tuple " "containing a string giving the address, and an integer port number: " "``('127.0.0.1', 80)``, for example." msgstr "" -#: ../../library/socketserver.rst:270 +#: ../../library/socketserver.rst:272 msgid "" "The socket object on which the server will listen for incoming requests." msgstr "" -#: ../../library/socketserver.rst:273 +#: ../../library/socketserver.rst:275 msgid "The server classes support the following class variables:" msgstr "" -#: ../../library/socketserver.rst:279 +#: ../../library/socketserver.rst:281 msgid "" -"Whether the server will allow the reuse of an address. This defaults to " -":const:`False`, and can be set in subclasses to change the policy." +"Whether the server will allow the reuse of an address. This defaults to :" +"const:`False`, and can be set in subclasses to change the policy." msgstr "" -#: ../../library/socketserver.rst:285 +#: ../../library/socketserver.rst:287 msgid "" "The size of the request queue. If it takes a long time to process a single " -"request, any requests that arrive while the server is busy are placed into a" -" queue, up to :attr:`request_queue_size` requests. Once the queue is full, " +"request, any requests that arrive while the server is busy are placed into a " +"queue, up to :attr:`request_queue_size` requests. Once the queue is full, " "further requests from clients will get a \"Connection denied\" error. The " "default value is usually 5, but this can be overridden by subclasses." msgstr "" -#: ../../library/socketserver.rst:294 +#: ../../library/socketserver.rst:296 msgid "" -"The type of socket used by the server; :const:`socket.SOCK_STREAM` and " -":const:`socket.SOCK_DGRAM` are two common values." +"The type of socket used by the server; :const:`socket.SOCK_STREAM` and :" +"const:`socket.SOCK_DGRAM` are two common values." msgstr "" -#: ../../library/socketserver.rst:300 +#: ../../library/socketserver.rst:302 msgid "" "Timeout duration, measured in seconds, or :const:`None` if no timeout is " -"desired. If :meth:`handle_request` receives no incoming requests within the" -" timeout period, the :meth:`handle_timeout` method is called." +"desired. If :meth:`handle_request` receives no incoming requests within the " +"timeout period, the :meth:`handle_timeout` method is called." msgstr "" -#: ../../library/socketserver.rst:305 +#: ../../library/socketserver.rst:307 msgid "" "There are various server methods that can be overridden by subclasses of " "base server classes like :class:`TCPServer`; these methods aren't useful to " "external users of the server object." msgstr "" -#: ../../library/socketserver.rst:314 +#: ../../library/socketserver.rst:316 msgid "" "Actually processes the request by instantiating :attr:`RequestHandlerClass` " "and calling its :meth:`~BaseRequestHandler.handle` method." msgstr "" -#: ../../library/socketserver.rst:320 +#: ../../library/socketserver.rst:322 msgid "" "Must accept a request from the socket, and return a 2-tuple containing the " "*new* socket object to be used to communicate with the client, and the " "client's address." msgstr "" -#: ../../library/socketserver.rst:327 +#: ../../library/socketserver.rst:329 msgid "" "This function is called if the :meth:`~BaseRequestHandler.handle` method of " "a :attr:`RequestHandlerClass` instance raises an exception. The default " @@ -372,139 +383,137 @@ msgid "" "further requests." msgstr "" -#: ../../library/socketserver.rst:332 -msgid "" -"Now only called for exceptions derived from the :exc:`Exception` class." +#: ../../library/socketserver.rst:334 +msgid "Now only called for exceptions derived from the :exc:`Exception` class." msgstr "" -#: ../../library/socketserver.rst:339 +#: ../../library/socketserver.rst:341 msgid "" -"This function is called when the :attr:`timeout` attribute has been set to a" -" value other than :const:`None` and the timeout period has passed with no " +"This function is called when the :attr:`timeout` attribute has been set to a " +"value other than :const:`None` and the timeout period has passed with no " "requests being received. The default action for forking servers is to " "collect the status of any child processes that have exited, while in " "threading servers this method does nothing." msgstr "" -#: ../../library/socketserver.rst:348 +#: ../../library/socketserver.rst:350 msgid "" -"Calls :meth:`finish_request` to create an instance of the " -":attr:`RequestHandlerClass`. If desired, this function can create a new " -"process or thread to handle the request; the :class:`ForkingMixIn` and " -":class:`ThreadingMixIn` classes do this." +"Calls :meth:`finish_request` to create an instance of the :attr:" +"`RequestHandlerClass`. If desired, this function can create a new process " +"or thread to handle the request; the :class:`ForkingMixIn` and :class:" +"`ThreadingMixIn` classes do this." msgstr "" -#: ../../library/socketserver.rst:360 +#: ../../library/socketserver.rst:362 msgid "" "Called by the server's constructor to activate the server. The default " "behavior for a TCP server just invokes :meth:`~socket.socket.listen` on the " "server's socket. May be overridden." msgstr "" -#: ../../library/socketserver.rst:367 +#: ../../library/socketserver.rst:369 msgid "" "Called by the server's constructor to bind the socket to the desired " "address. May be overridden." msgstr "" -#: ../../library/socketserver.rst:373 +#: ../../library/socketserver.rst:375 msgid "" -"Must return a Boolean value; if the value is :const:`True`, the request will" -" be processed, and if it's :const:`False`, the request will be denied. This" -" function can be overridden to implement access controls for a server. The " +"Must return a Boolean value; if the value is :const:`True`, the request will " +"be processed, and if it's :const:`False`, the request will be denied. This " +"function can be overridden to implement access controls for a server. The " "default implementation always returns :const:`True`." msgstr "" -#: ../../library/socketserver.rst:379 +#: ../../library/socketserver.rst:381 msgid "" "Support for the :term:`context manager` protocol was added. Exiting the " "context manager is equivalent to calling :meth:`server_close`." msgstr "" -#: ../../library/socketserver.rst:385 +#: ../../library/socketserver.rst:387 msgid "Request Handler Objects" msgstr "" -#: ../../library/socketserver.rst:389 +#: ../../library/socketserver.rst:391 msgid "" "This is the superclass of all request handler objects. It defines the " "interface, given below. A concrete request handler subclass must define a " -"new :meth:`handle` method, and can override any of the other methods. A new" -" instance of the subclass is created for each request." +"new :meth:`handle` method, and can override any of the other methods. A new " +"instance of the subclass is created for each request." msgstr "" -#: ../../library/socketserver.rst:398 +#: ../../library/socketserver.rst:400 msgid "" "Called before the :meth:`handle` method to perform any initialization " "actions required. The default implementation does nothing." msgstr "" -#: ../../library/socketserver.rst:404 +#: ../../library/socketserver.rst:406 msgid "" "This function must do all the work required to service a request. The " "default implementation does nothing. Several instance attributes are " "available to it; the request is available as :attr:`self.request`; the " -"client address as :attr:`self.client_address`; and the server instance as " -":attr:`self.server`, in case it needs access to per-server information." +"client address as :attr:`self.client_address`; and the server instance as :" +"attr:`self.server`, in case it needs access to per-server information." msgstr "" -#: ../../library/socketserver.rst:410 +#: ../../library/socketserver.rst:412 msgid "" "The type of :attr:`self.request` is different for datagram or stream " -"services. For stream services, :attr:`self.request` is a socket object; for" -" datagram services, :attr:`self.request` is a pair of string and socket." +"services. For stream services, :attr:`self.request` is a socket object; for " +"datagram services, :attr:`self.request` is a pair of string and socket." msgstr "" -#: ../../library/socketserver.rst:417 +#: ../../library/socketserver.rst:419 msgid "" "Called after the :meth:`handle` method to perform any clean-up actions " -"required. The default implementation does nothing. If :meth:`setup` raises" -" an exception, this function will not be called." +"required. The default implementation does nothing. If :meth:`setup` raises " +"an exception, this function will not be called." msgstr "" -#: ../../library/socketserver.rst:425 +#: ../../library/socketserver.rst:427 msgid "" -"These :class:`BaseRequestHandler` subclasses override the " -":meth:`~BaseRequestHandler.setup` and :meth:`~BaseRequestHandler.finish` " -"methods, and provide :attr:`self.rfile` and :attr:`self.wfile` attributes. " -"The :attr:`self.rfile` and :attr:`self.wfile` attributes can be read or " -"written, respectively, to get the request data or return data to the client." +"These :class:`BaseRequestHandler` subclasses override the :meth:" +"`~BaseRequestHandler.setup` and :meth:`~BaseRequestHandler.finish` methods, " +"and provide :attr:`self.rfile` and :attr:`self.wfile` attributes. The :attr:" +"`self.rfile` and :attr:`self.wfile` attributes can be read or written, " +"respectively, to get the request data or return data to the client." msgstr "" -#: ../../library/socketserver.rst:432 +#: ../../library/socketserver.rst:434 msgid "" -"The :attr:`rfile` attributes of both classes support the " -":class:`io.BufferedIOBase` readable interface, and " -":attr:`DatagramRequestHandler.wfile` supports the :class:`io.BufferedIOBase`" -" writable interface." +"The :attr:`rfile` attributes of both classes support the :class:`io." +"BufferedIOBase` readable interface, and :attr:`DatagramRequestHandler.wfile` " +"supports the :class:`io.BufferedIOBase` writable interface." msgstr "" -#: ../../library/socketserver.rst:437 +#: ../../library/socketserver.rst:439 msgid "" -":attr:`StreamRequestHandler.wfile` also supports the " -":class:`io.BufferedIOBase` writable interface." +":attr:`StreamRequestHandler.wfile` also supports the :class:`io." +"BufferedIOBase` writable interface." msgstr "" -#: ../../library/socketserver.rst:443 +#: ../../library/socketserver.rst:445 msgid "Examples" msgstr "Exemplos" -#: ../../library/socketserver.rst:446 +#: ../../library/socketserver.rst:448 msgid ":class:`socketserver.TCPServer` Example" msgstr "" -#: ../../library/socketserver.rst:448 ../../library/socketserver.rst:547 +#: ../../library/socketserver.rst:450 ../../library/socketserver.rst:549 msgid "This is the server side::" msgstr "" -#: ../../library/socketserver.rst:478 +#: ../../library/socketserver.rst:480 msgid "" "An alternative request handler class that makes use of streams (file-like " "objects that simplify communication by providing the standard file " "interface)::" msgstr "" -#: ../../library/socketserver.rst:493 +#: ../../library/socketserver.rst:495 msgid "" "The difference is that the ``readline()`` call in the second handler will " "call ``recv()`` multiple times until it encounters a newline character, " @@ -512,47 +521,47 @@ msgid "" "has been sent from the client in one ``sendall()`` call." msgstr "" -#: ../../library/socketserver.rst:499 ../../library/socketserver.rst:571 +#: ../../library/socketserver.rst:501 ../../library/socketserver.rst:573 msgid "This is the client side::" msgstr "" -#: ../../library/socketserver.rst:520 ../../library/socketserver.rst:646 +#: ../../library/socketserver.rst:522 ../../library/socketserver.rst:648 msgid "The output of the example should look something like this:" msgstr "" -#: ../../library/socketserver.rst:522 +#: ../../library/socketserver.rst:524 msgid "Server:" msgstr "" -#: ../../library/socketserver.rst:532 +#: ../../library/socketserver.rst:534 msgid "Client:" msgstr "Cliente:" -#: ../../library/socketserver.rst:545 +#: ../../library/socketserver.rst:547 msgid ":class:`socketserver.UDPServer` Example" msgstr "Exemplo :class:`socketserver.UDPServer`" -#: ../../library/socketserver.rst:590 +#: ../../library/socketserver.rst:592 msgid "" "The output of the example should look exactly like for the TCP server " "example." msgstr "" -#: ../../library/socketserver.rst:594 +#: ../../library/socketserver.rst:596 msgid "Asynchronous Mixins" msgstr "" -#: ../../library/socketserver.rst:596 +#: ../../library/socketserver.rst:598 msgid "" -"To build asynchronous handlers, use the :class:`ThreadingMixIn` and " -":class:`ForkingMixIn` classes." +"To build asynchronous handlers, use the :class:`ThreadingMixIn` and :class:" +"`ForkingMixIn` classes." msgstr "" -#: ../../library/socketserver.rst:599 +#: ../../library/socketserver.rst:601 msgid "An example for the :class:`ThreadingMixIn` class::" msgstr "" -#: ../../library/socketserver.rst:657 +#: ../../library/socketserver.rst:659 msgid "" "The :class:`ForkingMixIn` class is used in the same way, except that the " "server will spawn a new process for each request. Available only on POSIX " diff --git a/library/spwd.po b/library/spwd.po index 1327c4c82..7ec818d44 100644 --- a/library/spwd.po +++ b/library/spwd.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +37,8 @@ msgstr "" #: ../../library/spwd.rst:13 msgid "" -"You must have enough privileges to access the shadow password database (this" -" usually means you have to be root)." +"You must have enough privileges to access the shadow password database (this " +"usually means you have to be root)." msgstr "" #: ../../library/spwd.rst:16 @@ -65,7 +66,7 @@ msgstr "0" #: ../../library/spwd.rst:23 msgid "``sp_namp``" -msgstr "" +msgstr "``sp_namp``" #: ../../library/spwd.rst:23 msgid "Login name" @@ -77,7 +78,7 @@ msgstr "1" #: ../../library/spwd.rst:25 msgid "``sp_pwdp``" -msgstr "" +msgstr "``sp_pwdp``" #: ../../library/spwd.rst:25 msgid "Encrypted password" @@ -89,7 +90,7 @@ msgstr "2" #: ../../library/spwd.rst:27 msgid "``sp_lstchg``" -msgstr "" +msgstr "``sp_lstchg``" #: ../../library/spwd.rst:27 msgid "Date of last change" @@ -101,7 +102,7 @@ msgstr "3" #: ../../library/spwd.rst:29 msgid "``sp_min``" -msgstr "" +msgstr "``sp_min``" #: ../../library/spwd.rst:29 msgid "Minimal number of days between changes" @@ -113,7 +114,7 @@ msgstr "4" #: ../../library/spwd.rst:32 msgid "``sp_max``" -msgstr "" +msgstr "``sp_max``" #: ../../library/spwd.rst:32 msgid "Maximum number of days between changes" @@ -125,7 +126,7 @@ msgstr "5" #: ../../library/spwd.rst:35 msgid "``sp_warn``" -msgstr "" +msgstr "``sp_warn``" #: ../../library/spwd.rst:35 msgid "Number of days before password expires to warn user about it" @@ -137,7 +138,7 @@ msgstr "6" #: ../../library/spwd.rst:38 msgid "``sp_inact``" -msgstr "" +msgstr "``sp_inact``" #: ../../library/spwd.rst:38 msgid "Number of days after password expires until account is disabled" @@ -149,7 +150,7 @@ msgstr "" #: ../../library/spwd.rst:42 msgid "``sp_expire``" -msgstr "" +msgstr "``sp_expire``" #: ../../library/spwd.rst:42 msgid "Number of days since 1970-01-01 when account expires" @@ -161,7 +162,7 @@ msgstr "8" #: ../../library/spwd.rst:45 msgid "``sp_flag``" -msgstr "" +msgstr "``sp_flag``" #: ../../library/spwd.rst:45 msgid "Reserved" @@ -169,8 +170,8 @@ msgstr "" #: ../../library/spwd.rst:48 msgid "" -"The sp_namp and sp_pwdp items are strings, all others are integers. " -":exc:`KeyError` is raised if the entry asked for cannot be found." +"The sp_namp and sp_pwdp items are strings, all others are integers. :exc:" +"`KeyError` is raised if the entry asked for cannot be found." msgstr "" #: ../../library/spwd.rst:51 diff --git a/library/sqlite3.po b/library/sqlite3.po index fd9454ea2..90029e198 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -1,26 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Italo Penaforte , 2019 # Adorilson Bezerra , 2019 # Ruan Aragão , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-20 11:27+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,24 +40,24 @@ msgstr "" msgid "" "SQLite is a C library that provides a lightweight disk-based database that " "doesn't require a separate server process and allows accessing the database " -"using a nonstandard variant of the SQL query language. Some applications can" -" use SQLite for internal data storage. It's also possible to prototype an " -"application using SQLite and then port the code to a larger database such as" -" PostgreSQL or Oracle." +"using a nonstandard variant of the SQL query language. Some applications can " +"use SQLite for internal data storage. It's also possible to prototype an " +"application using SQLite and then port the code to a larger database such as " +"PostgreSQL or Oracle." msgstr "" #: ../../library/sqlite3.rst:20 msgid "" "The sqlite3 module was written by Gerhard Häring. It provides a SQL " -"interface compliant with the DB-API 2.0 specification described by " -":pep:`249`." +"interface compliant with the DB-API 2.0 specification described by :pep:" +"`249`." msgstr "" #: ../../library/sqlite3.rst:23 msgid "" "To use the module, you must first create a :class:`Connection` object that " -"represents the database. Here the data will be stored in the " -":file:`example.db` file::" +"represents the database. Here the data will be stored in the :file:`example." +"db` file::" msgstr "" #: ../../library/sqlite3.rst:30 @@ -73,8 +74,7 @@ msgstr "" #: ../../library/sqlite3.rst:51 msgid "" -"The data you've saved is persistent and is available in subsequent " -"sessions::" +"The data you've saved is persistent and is available in subsequent sessions::" msgstr "" #: ../../library/sqlite3.rst:57 @@ -82,8 +82,7 @@ msgid "" "Usually your SQL operations will need to use values from Python variables. " "You shouldn't assemble your query using Python's string operations because " "doing so is insecure; it makes your program vulnerable to an SQL injection " -"attack (see https://xkcd.com/327/ for humorous example of what can go " -"wrong)." +"attack (see https://xkcd.com/327/ for humorous example of what can go wrong)." msgstr "" #: ../../library/sqlite3.rst:62 @@ -91,16 +90,16 @@ msgid "" "Instead, use the DB-API's parameter substitution. Put ``?`` as a " "placeholder wherever you want to use a value, and then provide a tuple of " "values as the second argument to the cursor's :meth:`~Cursor.execute` " -"method. (Other database modules may use a different placeholder, such as " -"``%s`` or ``:1``.) For example::" +"method. (Other database modules may use a different placeholder, such as ``" +"%s`` or ``:1``.) For example::" msgstr "" #: ../../library/sqlite3.rst:84 msgid "" "To retrieve data after executing a SELECT statement, you can either treat " -"the cursor as an :term:`iterator`, call the cursor's " -":meth:`~Cursor.fetchone` method to retrieve a single matching row, or call " -":meth:`~Cursor.fetchall` to get a list of the matching rows." +"the cursor as an :term:`iterator`, call the cursor's :meth:`~Cursor." +"fetchone` method to retrieve a single matching row, or call :meth:`~Cursor." +"fetchall` to get a list of the matching rows." msgstr "" #: ../../library/sqlite3.rst:89 @@ -170,8 +169,8 @@ msgstr "" #: ../../library/sqlite3.rst:147 ../../library/sqlite3.rst:160 msgid "" -"This constant is meant to be used with the *detect_types* parameter of the " -":func:`connect` function." +"This constant is meant to be used with the *detect_types* parameter of the :" +"func:`connect` function." msgstr "" #: ../../library/sqlite3.rst:150 @@ -190,20 +189,20 @@ msgid "" "column it returns. It will look for a string formed [mytype] in there, and " "then decide that 'mytype' is the type of the column. It will try to find an " "entry of 'mytype' in the converters dictionary and then use the converter " -"function found there to return the value. The column name found in " -":attr:`Cursor.description` is only the first word of the column name, i. e." -" if you use something like ``'as \"x [datetime]\"'`` in your SQL, then we " -"will parse out everything until the first blank for the column name: the " -"column name would simply be \"x\"." +"function found there to return the value. The column name found in :attr:" +"`Cursor.description` does not include the type, i. e. if you use something " +"like ``'as \"Expiration date [datetime]\"'`` in your SQL, then we will parse " +"out everything until the first ``'['`` for the column name and strip the " +"preceeding space: the column name would simply be \"Expiration date\"." msgstr "" -#: ../../library/sqlite3.rst:175 +#: ../../library/sqlite3.rst:176 msgid "" "Opens a connection to the SQLite database file *database*. By default " "returns a :class:`Connection` object, unless a custom *factory* is given." msgstr "" -#: ../../library/sqlite3.rst:178 +#: ../../library/sqlite3.rst:179 msgid "" "*database* is a :term:`path-like object` giving the pathname (absolute or " "relative to the current working directory) of the database file to be " @@ -211,7 +210,7 @@ msgid "" "database that resides in RAM instead of on disk." msgstr "" -#: ../../library/sqlite3.rst:183 +#: ../../library/sqlite3.rst:184 msgid "" "When a database is accessed by multiple connections, and one of the " "processes modifies the database, the SQLite database is locked until that " @@ -220,29 +219,29 @@ msgid "" "The default for the timeout parameter is 5.0 (five seconds)." msgstr "" -#: ../../library/sqlite3.rst:189 +#: ../../library/sqlite3.rst:190 msgid "" -"For the *isolation_level* parameter, please see the " -":attr:`~Connection.isolation_level` property of :class:`Connection` objects." +"For the *isolation_level* parameter, please see the :attr:`~Connection." +"isolation_level` property of :class:`Connection` objects." msgstr "" -#: ../../library/sqlite3.rst:192 +#: ../../library/sqlite3.rst:193 msgid "" "SQLite natively supports only the types TEXT, INTEGER, REAL, BLOB and NULL. " "If you want to use other types you must add support for them yourself. The " -"*detect_types* parameter and the using custom **converters** registered with" -" the module-level :func:`register_converter` function allow you to easily do" -" that." +"*detect_types* parameter and the using custom **converters** registered with " +"the module-level :func:`register_converter` function allow you to easily do " +"that." msgstr "" -#: ../../library/sqlite3.rst:197 +#: ../../library/sqlite3.rst:198 msgid "" "*detect_types* defaults to 0 (i. e. off, no type detection), you can set it " "to any combination of :const:`PARSE_DECLTYPES` and :const:`PARSE_COLNAMES` " "to turn type detection on." msgstr "" -#: ../../library/sqlite3.rst:201 +#: ../../library/sqlite3.rst:202 msgid "" "By default, *check_same_thread* is :const:`True` and only the creating " "thread may use the connection. If set :const:`False`, the returned " @@ -251,19 +250,19 @@ msgid "" "the user to avoid data corruption." msgstr "" -#: ../../library/sqlite3.rst:206 +#: ../../library/sqlite3.rst:207 msgid "" -"By default, the :mod:`sqlite3` module uses its :class:`Connection` class for" -" the connect call. You can, however, subclass the :class:`Connection` class" -" and make :func:`connect` use your class instead by providing your class for" -" the *factory* parameter." +"By default, the :mod:`sqlite3` module uses its :class:`Connection` class for " +"the connect call. You can, however, subclass the :class:`Connection` class " +"and make :func:`connect` use your class instead by providing your class for " +"the *factory* parameter." msgstr "" -#: ../../library/sqlite3.rst:211 +#: ../../library/sqlite3.rst:212 msgid "Consult the section :ref:`sqlite3-types` of this manual for details." msgstr "" -#: ../../library/sqlite3.rst:213 +#: ../../library/sqlite3.rst:214 msgid "" "The :mod:`sqlite3` module internally uses a statement cache to avoid SQL " "parsing overhead. If you want to explicitly set the number of statements " @@ -271,40 +270,40 @@ msgid "" "parameter. The currently implemented default is to cache 100 statements." msgstr "" -#: ../../library/sqlite3.rst:218 +#: ../../library/sqlite3.rst:219 msgid "" "If *uri* is true, *database* is interpreted as a URI. This allows you to " "specify options. For example, to open a database in read-only mode you can " "use::" msgstr "" -#: ../../library/sqlite3.rst:224 +#: ../../library/sqlite3.rst:225 msgid "" -"More information about this feature, including a list of recognized options," -" can be found in the `SQLite URI documentation " -"`_." +"More information about this feature, including a list of recognized options, " +"can be found in the `SQLite URI documentation `_." msgstr "" -#: ../../library/sqlite3.rst:227 +#: ../../library/sqlite3.rst:228 msgid "Added the *uri* parameter." msgstr "" -#: ../../library/sqlite3.rst:230 +#: ../../library/sqlite3.rst:231 msgid "" "*database* can now also be a :term:`path-like object`, not only a string." msgstr "" -#: ../../library/sqlite3.rst:236 +#: ../../library/sqlite3.rst:237 msgid "" -"Registers a callable to convert a bytestring from the database into a custom" -" Python type. The callable will be invoked for all database values that are " -"of the type *typename*. Confer the parameter *detect_types* of the " -":func:`connect` function for how the type detection works. Note that " -"*typename* and the name of the type in your query are matched in case-" -"insensitive manner." +"Registers a callable to convert a bytestring from the database into a custom " +"Python type. The callable will be invoked for all database values that are " +"of the type *typename*. Confer the parameter *detect_types* of the :func:" +"`connect` function for how the type detection works. Note that *typename* " +"and the name of the type in your query are matched in case-insensitive " +"manner." msgstr "" -#: ../../library/sqlite3.rst:245 +#: ../../library/sqlite3.rst:246 msgid "" "Registers a callable to convert the custom Python type *type* into one of " "SQLite's supported types. The callable *callable* accepts as single " @@ -312,7 +311,7 @@ msgid "" "int, float, str or bytes." msgstr "" -#: ../../library/sqlite3.rst:253 +#: ../../library/sqlite3.rst:254 msgid "" "Returns :const:`True` if the string *sql* contains one or more complete SQL " "statements terminated by semicolons. It does not verify that the SQL is " @@ -320,49 +319,49 @@ msgid "" "the statement is terminated by a semicolon." msgstr "" -#: ../../library/sqlite3.rst:258 +#: ../../library/sqlite3.rst:259 msgid "" "This can be used to build a shell for SQLite, as in the following example:" msgstr "" -#: ../../library/sqlite3.rst:266 +#: ../../library/sqlite3.rst:267 msgid "" "By default you will not get any tracebacks in user-defined functions, " -"aggregates, converters, authorizer callbacks etc. If you want to debug them," -" you can call this function with *flag* set to ``True``. Afterwards, you " -"will get tracebacks from callbacks on ``sys.stderr``. Use :const:`False` to " +"aggregates, converters, authorizer callbacks etc. If you want to debug them, " +"you can call this function with *flag* set to ``True``. Afterwards, you will " +"get tracebacks from callbacks on ``sys.stderr``. Use :const:`False` to " "disable the feature again." msgstr "" -#: ../../library/sqlite3.rst:276 +#: ../../library/sqlite3.rst:277 msgid "Connection Objects" msgstr "" -#: ../../library/sqlite3.rst:280 +#: ../../library/sqlite3.rst:281 msgid "A SQLite database connection has the following attributes and methods:" msgstr "" -#: ../../library/sqlite3.rst:284 +#: ../../library/sqlite3.rst:285 msgid "" -"Get or set the current default isolation level. :const:`None` for autocommit" -" mode or one of \"DEFERRED\", \"IMMEDIATE\" or \"EXCLUSIVE\". See section " -":ref:`sqlite3-controlling-transactions` for a more detailed explanation." +"Get or set the current default isolation level. :const:`None` for autocommit " +"mode or one of \"DEFERRED\", \"IMMEDIATE\" or \"EXCLUSIVE\". See section :" +"ref:`sqlite3-controlling-transactions` for a more detailed explanation." msgstr "" -#: ../../library/sqlite3.rst:290 +#: ../../library/sqlite3.rst:291 msgid "" -":const:`True` if a transaction is active (there are uncommitted changes), " -":const:`False` otherwise. Read-only attribute." +":const:`True` if a transaction is active (there are uncommitted changes), :" +"const:`False` otherwise. Read-only attribute." msgstr "" -#: ../../library/sqlite3.rst:297 +#: ../../library/sqlite3.rst:298 msgid "" "The cursor method accepts a single optional parameter *factory*. If " "supplied, this must be a callable returning an instance of :class:`Cursor` " "or its subclasses." msgstr "" -#: ../../library/sqlite3.rst:303 +#: ../../library/sqlite3.rst:304 msgid "" "This method commits the current transaction. If you don't call this method, " "anything you did since the last call to ``commit()`` is not visible from " @@ -370,44 +369,41 @@ msgid "" "written to the database, please check you didn't forget to call this method." msgstr "" -#: ../../library/sqlite3.rst:310 +#: ../../library/sqlite3.rst:311 msgid "" -"This method rolls back any changes to the database since the last call to " -":meth:`commit`." +"This method rolls back any changes to the database since the last call to :" +"meth:`commit`." msgstr "" -#: ../../library/sqlite3.rst:315 +#: ../../library/sqlite3.rst:316 msgid "" "This closes the database connection. Note that this does not automatically " "call :meth:`commit`. If you just close your database connection without " "calling :meth:`commit` first, your changes will be lost!" msgstr "" -#: ../../library/sqlite3.rst:321 +#: ../../library/sqlite3.rst:322 msgid "" -"This is a nonstandard shortcut that creates a cursor object by calling the " -":meth:`~Connection.cursor` method, calls the cursor's " -":meth:`~Cursor.execute` method with the *parameters* given, and returns the " -"cursor." +"This is a nonstandard shortcut that creates a cursor object by calling the :" +"meth:`~Connection.cursor` method, calls the cursor's :meth:`~Cursor.execute` " +"method with the *parameters* given, and returns the cursor." msgstr "" -#: ../../library/sqlite3.rst:328 +#: ../../library/sqlite3.rst:329 msgid "" -"This is a nonstandard shortcut that creates a cursor object by calling the " -":meth:`~Connection.cursor` method, calls the cursor's " -":meth:`~Cursor.executemany` method with the *parameters* given, and returns " -"the cursor." +"This is a nonstandard shortcut that creates a cursor object by calling the :" +"meth:`~Connection.cursor` method, calls the cursor's :meth:`~Cursor." +"executemany` method with the *parameters* given, and returns the cursor." msgstr "" -#: ../../library/sqlite3.rst:335 +#: ../../library/sqlite3.rst:336 msgid "" -"This is a nonstandard shortcut that creates a cursor object by calling the " -":meth:`~Connection.cursor` method, calls the cursor's " -":meth:`~Cursor.executescript` method with the given *sql_script*, and " -"returns the cursor." +"This is a nonstandard shortcut that creates a cursor object by calling the :" +"meth:`~Connection.cursor` method, calls the cursor's :meth:`~Cursor." +"executescript` method with the given *sql_script*, and returns the cursor." msgstr "" -#: ../../library/sqlite3.rst:342 +#: ../../library/sqlite3.rst:343 msgid "" "Creates a user-defined function that you can later use from within SQL " "statements under the function name *name*. *num_params* is the number of " @@ -416,22 +412,22 @@ msgid "" "called as the SQL function." msgstr "" -#: ../../library/sqlite3.rst:348 +#: ../../library/sqlite3.rst:349 msgid "" "The function can return any of the types supported by SQLite: bytes, str, " "int, float and ``None``." msgstr "" -#: ../../library/sqlite3.rst:351 ../../library/sqlite3.rst:368 -#: ../../library/sqlite3.rst:482 ../../library/sqlite3.rst:639 +#: ../../library/sqlite3.rst:352 ../../library/sqlite3.rst:369 +#: ../../library/sqlite3.rst:483 ../../library/sqlite3.rst:640 msgid "Example:" msgstr "Exemplo:" -#: ../../library/sqlite3.rst:358 +#: ../../library/sqlite3.rst:359 msgid "Creates a user-defined aggregate function." msgstr "" -#: ../../library/sqlite3.rst:360 +#: ../../library/sqlite3.rst:361 msgid "" "The aggregate class must implement a ``step`` method, which accepts the " "number of parameters *num_params* (if *num_params* is -1, the function may " @@ -439,13 +435,13 @@ msgid "" "the final result of the aggregate." msgstr "" -#: ../../library/sqlite3.rst:365 +#: ../../library/sqlite3.rst:366 msgid "" "The ``finalize`` method can return any of the types supported by SQLite: " "bytes, str, int, float and ``None``." msgstr "" -#: ../../library/sqlite3.rst:375 +#: ../../library/sqlite3.rst:376 msgid "" "Creates a collation with the specified *name* and *callable*. The callable " "will be passed two string arguments. It should return -1 if the first is " @@ -454,101 +450,100 @@ msgid "" "(ORDER BY in SQL) so your comparisons don't affect other SQL operations." msgstr "" -#: ../../library/sqlite3.rst:381 +#: ../../library/sqlite3.rst:382 msgid "" "Note that the callable will get its parameters as Python bytestrings, which " "will normally be encoded in UTF-8." msgstr "" -#: ../../library/sqlite3.rst:384 +#: ../../library/sqlite3.rst:385 msgid "" "The following example shows a custom collation that sorts \"the wrong way\":" msgstr "" -#: ../../library/sqlite3.rst:388 +#: ../../library/sqlite3.rst:389 msgid "" "To remove a collation, call ``create_collation`` with ``None`` as callable::" msgstr "" -#: ../../library/sqlite3.rst:395 +#: ../../library/sqlite3.rst:396 msgid "" "You can call this method from a different thread to abort any queries that " "might be executing on the connection. The query will then abort and the " "caller will get an exception." msgstr "" -#: ../../library/sqlite3.rst:402 +#: ../../library/sqlite3.rst:403 msgid "" "This routine registers a callback. The callback is invoked for each attempt " -"to access a column of a table in the database. The callback should return " -":const:`SQLITE_OK` if access is allowed, :const:`SQLITE_DENY` if the entire " +"to access a column of a table in the database. The callback should return :" +"const:`SQLITE_OK` if access is allowed, :const:`SQLITE_DENY` if the entire " "SQL statement should be aborted with an error and :const:`SQLITE_IGNORE` if " "the column should be treated as a NULL value. These constants are available " "in the :mod:`sqlite3` module." msgstr "" -#: ../../library/sqlite3.rst:409 +#: ../../library/sqlite3.rst:410 msgid "" -"The first argument to the callback signifies what kind of operation is to be" -" authorized. The second and third argument will be arguments or " -":const:`None` depending on the first argument. The 4th argument is the name " -"of the database (\"main\", \"temp\", etc.) if applicable. The 5th argument " -"is the name of the inner-most trigger or view that is responsible for the " -"access attempt or :const:`None` if this access attempt is directly from " -"input SQL code." +"The first argument to the callback signifies what kind of operation is to be " +"authorized. The second and third argument will be arguments or :const:`None` " +"depending on the first argument. The 4th argument is the name of the " +"database (\"main\", \"temp\", etc.) if applicable. The 5th argument is the " +"name of the inner-most trigger or view that is responsible for the access " +"attempt or :const:`None` if this access attempt is directly from input SQL " +"code." msgstr "" -#: ../../library/sqlite3.rst:416 +#: ../../library/sqlite3.rst:417 msgid "" "Please consult the SQLite documentation about the possible values for the " -"first argument and the meaning of the second and third argument depending on" -" the first one. All necessary constants are available in the :mod:`sqlite3` " +"first argument and the meaning of the second and third argument depending on " +"the first one. All necessary constants are available in the :mod:`sqlite3` " "module." msgstr "" -#: ../../library/sqlite3.rst:423 +#: ../../library/sqlite3.rst:424 msgid "" "This routine registers a callback. The callback is invoked for every *n* " "instructions of the SQLite virtual machine. This is useful if you want to " -"get called from SQLite during long-running operations, for example to update" -" a GUI." +"get called from SQLite during long-running operations, for example to update " +"a GUI." msgstr "" -#: ../../library/sqlite3.rst:428 +#: ../../library/sqlite3.rst:429 msgid "" "If you want to clear any previously installed progress handler, call the " "method with :const:`None` for *handler*." msgstr "" -#: ../../library/sqlite3.rst:431 +#: ../../library/sqlite3.rst:432 msgid "" "Returning a non-zero value from the handler function will terminate the " "currently executing query and cause it to raise an :exc:`OperationalError` " "exception." msgstr "" -#: ../../library/sqlite3.rst:438 +#: ../../library/sqlite3.rst:439 msgid "" "Registers *trace_callback* to be called for each SQL statement that is " "actually executed by the SQLite backend." msgstr "" -#: ../../library/sqlite3.rst:441 +#: ../../library/sqlite3.rst:442 msgid "" "The only argument passed to the callback is the statement (as string) that " "is being executed. The return value of the callback is ignored. Note that " -"the backend does not only run statements passed to the " -":meth:`Cursor.execute` methods. Other sources include the transaction " -"management of the Python module and the execution of triggers defined in the" -" current database." +"the backend does not only run statements passed to the :meth:`Cursor." +"execute` methods. Other sources include the transaction management of the " +"Python module and the execution of triggers defined in the current database." msgstr "" -#: ../../library/sqlite3.rst:447 +#: ../../library/sqlite3.rst:448 msgid "" "Passing :const:`None` as *trace_callback* will disable the trace callback." msgstr "" -#: ../../library/sqlite3.rst:454 +#: ../../library/sqlite3.rst:455 msgid "" "This routine allows/disallows the SQLite engine to load SQLite extensions " "from shared libraries. SQLite extensions can define new functions, " @@ -556,26 +551,26 @@ msgid "" "extension is the fulltext-search extension distributed with SQLite." msgstr "" -#: ../../library/sqlite3.rst:459 ../../library/sqlite3.rst:471 +#: ../../library/sqlite3.rst:460 ../../library/sqlite3.rst:472 msgid "Loadable extensions are disabled by default. See [#f1]_." msgstr "" -#: ../../library/sqlite3.rst:467 +#: ../../library/sqlite3.rst:468 msgid "" "This routine loads a SQLite extension from a shared library. You have to " "enable extension loading with :meth:`enable_load_extension` before you can " "use this routine." msgstr "" -#: ../../library/sqlite3.rst:477 +#: ../../library/sqlite3.rst:478 msgid "" "You can change this attribute to a callable that accepts the cursor and the " "original row as a tuple and will return the real result row. This way, you " -"can implement more advanced ways of returning results, such as returning an" -" object that can also access columns by name." +"can implement more advanced ways of returning results, such as returning an " +"object that can also access columns by name." msgstr "" -#: ../../library/sqlite3.rst:486 +#: ../../library/sqlite3.rst:487 msgid "" "If returning a tuple doesn't suffice and you want name-based access to " "columns, you should consider setting :attr:`row_factory` to the highly-" @@ -585,7 +580,7 @@ msgid "" "approach or even a db_row based solution." msgstr "" -#: ../../library/sqlite3.rst:498 +#: ../../library/sqlite3.rst:499 msgid "" "Using this attribute you can control what objects are returned for the " "``TEXT`` data type. By default, this attribute is set to :class:`str` and " @@ -593,50 +588,50 @@ msgid "" "want to return bytestrings instead, you can set it to :class:`bytes`." msgstr "" -#: ../../library/sqlite3.rst:503 +#: ../../library/sqlite3.rst:504 msgid "" "You can also set it to any other callable that accepts a single bytestring " "parameter and returns the resulting object." msgstr "" -#: ../../library/sqlite3.rst:506 +#: ../../library/sqlite3.rst:507 msgid "See the following example code for illustration:" msgstr "" -#: ../../library/sqlite3.rst:513 +#: ../../library/sqlite3.rst:514 msgid "" -"Returns the total number of database rows that have been modified, inserted," -" or deleted since the database connection was opened." +"Returns the total number of database rows that have been modified, inserted, " +"or deleted since the database connection was opened." msgstr "" -#: ../../library/sqlite3.rst:519 +#: ../../library/sqlite3.rst:520 msgid "" -"Returns an iterator to dump the database in an SQL text format. Useful when" -" saving an in-memory database for later restoration. This function provides" -" the same capabilities as the :kbd:`.dump` command in the :program:`sqlite3`" -" shell." +"Returns an iterator to dump the database in an SQL text format. Useful when " +"saving an in-memory database for later restoration. This function provides " +"the same capabilities as the :kbd:`.dump` command in the :program:`sqlite3` " +"shell." msgstr "" -#: ../../library/sqlite3.rst:524 +#: ../../library/sqlite3.rst:525 msgid "Example::" msgstr "Exemplo::" -#: ../../library/sqlite3.rst:538 +#: ../../library/sqlite3.rst:539 msgid "" "This method makes a backup of a SQLite database even while it's being " -"accessed by other clients, or concurrently by the same connection. The copy" -" will be written into the mandatory argument *target*, that must be another " -":class:`Connection` instance." +"accessed by other clients, or concurrently by the same connection. The copy " +"will be written into the mandatory argument *target*, that must be another :" +"class:`Connection` instance." msgstr "" -#: ../../library/sqlite3.rst:543 +#: ../../library/sqlite3.rst:544 msgid "" "By default, or when *pages* is either ``0`` or a negative integer, the " "entire database is copied in a single step; otherwise the method performs a " "loop copying up to *pages* pages at a time." msgstr "" -#: ../../library/sqlite3.rst:547 +#: ../../library/sqlite3.rst:548 msgid "" "If *progress* is specified, it must either be ``None`` or a callable object " "that will be executed at each iteration with three integer arguments, " @@ -644,43 +639,43 @@ msgid "" "pages still to be copied and the *total* number of pages." msgstr "" -#: ../../library/sqlite3.rst:552 +#: ../../library/sqlite3.rst:553 msgid "" -"The *name* argument specifies the database name that will be copied: it must" -" be a string containing either ``\"main\"``, the default, to indicate the " +"The *name* argument specifies the database name that will be copied: it must " +"be a string containing either ``\"main\"``, the default, to indicate the " "main database, ``\"temp\"`` to indicate the temporary database or the name " "specified after the ``AS`` keyword in an ``ATTACH DATABASE`` statement for " "an attached database." msgstr "" -#: ../../library/sqlite3.rst:558 +#: ../../library/sqlite3.rst:559 msgid "" "The *sleep* argument specifies the number of seconds to sleep by between " -"successive attempts to backup remaining pages, can be specified either as an" -" integer or a floating point value." +"successive attempts to backup remaining pages, can be specified either as an " +"integer or a floating point value." msgstr "" -#: ../../library/sqlite3.rst:562 +#: ../../library/sqlite3.rst:563 msgid "Example 1, copy an existing database into another::" msgstr "" -#: ../../library/sqlite3.rst:576 +#: ../../library/sqlite3.rst:577 msgid "Example 2, copy an existing database into a transient copy::" msgstr "" -#: ../../library/sqlite3.rst:584 +#: ../../library/sqlite3.rst:585 msgid "Availability: SQLite 3.6.11 or higher" msgstr "" -#: ../../library/sqlite3.rst:592 +#: ../../library/sqlite3.rst:593 msgid "Cursor Objects" msgstr "" -#: ../../library/sqlite3.rst:596 +#: ../../library/sqlite3.rst:597 msgid "A :class:`Cursor` instance has the following attributes and methods." msgstr "" -#: ../../library/sqlite3.rst:603 +#: ../../library/sqlite3.rst:604 msgid "" "Executes an SQL statement. The SQL statement may be parameterized (i. e. " "placeholders instead of SQL literals). The :mod:`sqlite3` module supports " @@ -688,11 +683,11 @@ msgid "" "placeholders (named style)." msgstr "" -#: ../../library/sqlite3.rst:608 +#: ../../library/sqlite3.rst:609 msgid "Here's an example of both styles:" msgstr "" -#: ../../library/sqlite3.rst:612 +#: ../../library/sqlite3.rst:613 msgid "" ":meth:`execute` will only execute a single SQL statement. If you try to " "execute more than one statement with it, it will raise a :exc:`.Warning`. " @@ -700,41 +695,41 @@ msgid "" "with one call." msgstr "" -#: ../../library/sqlite3.rst:620 +#: ../../library/sqlite3.rst:621 msgid "" -"Executes an SQL command against all parameter sequences or mappings found in" -" the sequence *seq_of_parameters*. The :mod:`sqlite3` module also allows " +"Executes an SQL command against all parameter sequences or mappings found in " +"the sequence *seq_of_parameters*. The :mod:`sqlite3` module also allows " "using an :term:`iterator` yielding parameters instead of a sequence." msgstr "" -#: ../../library/sqlite3.rst:626 +#: ../../library/sqlite3.rst:627 msgid "Here's a shorter example using a :term:`generator`:" msgstr "" -#: ../../library/sqlite3.rst:633 +#: ../../library/sqlite3.rst:634 msgid "" "This is a nonstandard convenience method for executing multiple SQL " "statements at once. It issues a ``COMMIT`` statement first, then executes " "the SQL script it gets as a parameter." msgstr "" -#: ../../library/sqlite3.rst:637 +#: ../../library/sqlite3.rst:638 msgid "*sql_script* can be an instance of :class:`str`." msgstr "" -#: ../../library/sqlite3.rst:646 +#: ../../library/sqlite3.rst:647 msgid "" -"Fetches the next row of a query result set, returning a single sequence, or " -":const:`None` when no more data is available." +"Fetches the next row of a query result set, returning a single sequence, or :" +"const:`None` when no more data is available." msgstr "" -#: ../../library/sqlite3.rst:652 +#: ../../library/sqlite3.rst:653 msgid "" "Fetches the next set of rows of a query result, returning a list. An empty " "list is returned when no more rows are available." msgstr "" -#: ../../library/sqlite3.rst:655 +#: ../../library/sqlite3.rst:656 msgid "" "The number of rows to fetch per call is specified by the *size* parameter. " "If it is not given, the cursor's arraysize determines the number of rows to " @@ -743,46 +738,46 @@ msgid "" "not being available, fewer rows may be returned." msgstr "" -#: ../../library/sqlite3.rst:661 +#: ../../library/sqlite3.rst:662 msgid "" "Note there are performance considerations involved with the *size* " "parameter. For optimal performance, it is usually best to use the arraysize " -"attribute. If the *size* parameter is used, then it is best for it to retain" -" the same value from one :meth:`fetchmany` call to the next." +"attribute. If the *size* parameter is used, then it is best for it to retain " +"the same value from one :meth:`fetchmany` call to the next." msgstr "" -#: ../../library/sqlite3.rst:668 +#: ../../library/sqlite3.rst:669 msgid "" -"Fetches all (remaining) rows of a query result, returning a list. Note that" -" the cursor's arraysize attribute can affect the performance of this " +"Fetches all (remaining) rows of a query result, returning a list. Note that " +"the cursor's arraysize attribute can affect the performance of this " "operation. An empty list is returned when no rows are available." msgstr "" -#: ../../library/sqlite3.rst:674 +#: ../../library/sqlite3.rst:675 msgid "Close the cursor now (rather than whenever ``__del__`` is called)." msgstr "" -#: ../../library/sqlite3.rst:676 +#: ../../library/sqlite3.rst:677 msgid "" -"The cursor will be unusable from this point forward; a " -":exc:`ProgrammingError` exception will be raised if any operation is " -"attempted with the cursor." +"The cursor will be unusable from this point forward; a :exc:" +"`ProgrammingError` exception will be raised if any operation is attempted " +"with the cursor." msgstr "" -#: ../../library/sqlite3.rst:681 +#: ../../library/sqlite3.rst:682 msgid "" "Although the :class:`Cursor` class of the :mod:`sqlite3` module implements " "this attribute, the database engine's own support for the determination of " "\"rows affected\"/\"rows selected\" is quirky." msgstr "" -#: ../../library/sqlite3.rst:685 +#: ../../library/sqlite3.rst:686 msgid "" "For :meth:`executemany` statements, the number of modifications are summed " "up into :attr:`rowcount`." msgstr "" -#: ../../library/sqlite3.rst:688 +#: ../../library/sqlite3.rst:689 msgid "" "As required by the Python DB API Spec, the :attr:`rowcount` attribute \"is " "-1 in case no ``executeXX()`` has been performed on the cursor or the " @@ -791,223 +786,223 @@ msgid "" "rows a query produced until all rows were fetched." msgstr "" -#: ../../library/sqlite3.rst:694 +#: ../../library/sqlite3.rst:695 msgid "" "With SQLite versions before 3.6.5, :attr:`rowcount` is set to 0 if you make " "a ``DELETE FROM table`` without any condition." msgstr "" -#: ../../library/sqlite3.rst:699 +#: ../../library/sqlite3.rst:700 msgid "" "This read-only attribute provides the rowid of the last modified row. It is " -"only set if you issued an ``INSERT`` or a ``REPLACE`` statement using the " -":meth:`execute` method. For operations other than ``INSERT`` or ``REPLACE``" -" or when :meth:`executemany` is called, :attr:`lastrowid` is set to " -":const:`None`." +"only set if you issued an ``INSERT`` or a ``REPLACE`` statement using the :" +"meth:`execute` method. For operations other than ``INSERT`` or ``REPLACE`` " +"or when :meth:`executemany` is called, :attr:`lastrowid` is set to :const:" +"`None`." msgstr "" -#: ../../library/sqlite3.rst:705 +#: ../../library/sqlite3.rst:706 msgid "" "If the ``INSERT`` or ``REPLACE`` statement failed to insert the previous " "successful rowid is returned." msgstr "" -#: ../../library/sqlite3.rst:708 +#: ../../library/sqlite3.rst:709 msgid "Added support for the ``REPLACE`` statement." msgstr "" -#: ../../library/sqlite3.rst:713 +#: ../../library/sqlite3.rst:714 msgid "" -"Read/write attribute that controls the number of rows returned by " -":meth:`fetchmany`. The default value is 1 which means a single row would be " +"Read/write attribute that controls the number of rows returned by :meth:" +"`fetchmany`. The default value is 1 which means a single row would be " "fetched per call." msgstr "" -#: ../../library/sqlite3.rst:718 +#: ../../library/sqlite3.rst:719 msgid "" "This read-only attribute provides the column names of the last query. To " "remain compatible with the Python DB API, it returns a 7-tuple for each " "column where the last six items of each tuple are :const:`None`." msgstr "" -#: ../../library/sqlite3.rst:722 +#: ../../library/sqlite3.rst:723 msgid "It is set for ``SELECT`` statements without any matching rows as well." msgstr "" -#: ../../library/sqlite3.rst:726 +#: ../../library/sqlite3.rst:727 msgid "" "This read-only attribute provides the SQLite database :class:`Connection` " "used by the :class:`Cursor` object. A :class:`Cursor` object created by " -"calling :meth:`con.cursor() ` will have a " -":attr:`connection` attribute that refers to *con*::" +"calling :meth:`con.cursor() ` will have a :attr:" +"`connection` attribute that refers to *con*::" msgstr "" -#: ../../library/sqlite3.rst:739 +#: ../../library/sqlite3.rst:740 msgid "Row Objects" msgstr "" -#: ../../library/sqlite3.rst:743 +#: ../../library/sqlite3.rst:744 msgid "" -"A :class:`Row` instance serves as a highly optimized " -":attr:`~Connection.row_factory` for :class:`Connection` objects. It tries to" -" mimic a tuple in most of its features." +"A :class:`Row` instance serves as a highly optimized :attr:`~Connection." +"row_factory` for :class:`Connection` objects. It tries to mimic a tuple in " +"most of its features." msgstr "" -#: ../../library/sqlite3.rst:747 +#: ../../library/sqlite3.rst:748 msgid "" "It supports mapping access by column name and index, iteration, " "representation, equality testing and :func:`len`." msgstr "" -#: ../../library/sqlite3.rst:750 +#: ../../library/sqlite3.rst:751 msgid "" "If two :class:`Row` objects have exactly the same columns and their members " "are equal, they compare equal." msgstr "" -#: ../../library/sqlite3.rst:755 +#: ../../library/sqlite3.rst:756 msgid "" -"This method returns a list of column names. Immediately after a query, it is" -" the first member of each tuple in :attr:`Cursor.description`." +"This method returns a list of column names. Immediately after a query, it is " +"the first member of each tuple in :attr:`Cursor.description`." msgstr "" -#: ../../library/sqlite3.rst:758 +#: ../../library/sqlite3.rst:759 msgid "Added support of slicing." msgstr "" -#: ../../library/sqlite3.rst:761 +#: ../../library/sqlite3.rst:762 msgid "Let's assume we initialize a table as in the example given above::" msgstr "" -#: ../../library/sqlite3.rst:773 +#: ../../library/sqlite3.rst:774 msgid "Now we plug :class:`Row` in::" msgstr "" -#: ../../library/sqlite3.rst:805 +#: ../../library/sqlite3.rst:806 msgid "Exceptions" msgstr "Exceções" -#: ../../library/sqlite3.rst:809 +#: ../../library/sqlite3.rst:810 msgid "A subclass of :exc:`Exception`." msgstr "" -#: ../../library/sqlite3.rst:813 +#: ../../library/sqlite3.rst:814 msgid "" -"The base class of the other exceptions in this module. It is a subclass of " -":exc:`Exception`." +"The base class of the other exceptions in this module. It is a subclass of :" +"exc:`Exception`." msgstr "" -"A classe base das outras exceções neste módulo. É uma subclasse de " -":exc:`Exception`." +"A classe base das outras exceções neste módulo. É uma subclasse de :exc:" +"`Exception`." -#: ../../library/sqlite3.rst:818 +#: ../../library/sqlite3.rst:819 msgid "Exception raised for errors that are related to the database." msgstr "" -#: ../../library/sqlite3.rst:822 +#: ../../library/sqlite3.rst:823 msgid "" "Exception raised when the relational integrity of the database is affected, " "e.g. a foreign key check fails. It is a subclass of :exc:`DatabaseError`." msgstr "" -#: ../../library/sqlite3.rst:827 +#: ../../library/sqlite3.rst:828 msgid "" "Exception raised for programming errors, e.g. table not found or already " "exists, syntax error in the SQL statement, wrong number of parameters " "specified, etc. It is a subclass of :exc:`DatabaseError`." msgstr "" -#: ../../library/sqlite3.rst:833 +#: ../../library/sqlite3.rst:834 msgid "" -"Exception raised for errors that are related to the database's operation and" -" not necessarily under the control of the programmer, e.g. an unexpected " +"Exception raised for errors that are related to the database's operation and " +"not necessarily under the control of the programmer, e.g. an unexpected " "disconnect occurs, the data source name is not found, a transaction could " "not be processed, etc. It is a subclass of :exc:`DatabaseError`." msgstr "" -#: ../../library/sqlite3.rst:840 +#: ../../library/sqlite3.rst:841 msgid "" "Exception raised in case a method or database API was used which is not " "supported by the database, e.g. calling the :meth:`~Connection.rollback` " -"method on a connection that does not support transaction or has transactions" -" turned off. It is a subclass of :exc:`DatabaseError`." +"method on a connection that does not support transaction or has transactions " +"turned off. It is a subclass of :exc:`DatabaseError`." msgstr "" -#: ../../library/sqlite3.rst:849 +#: ../../library/sqlite3.rst:850 msgid "SQLite and Python types" msgstr "" -#: ../../library/sqlite3.rst:853 +#: ../../library/sqlite3.rst:854 msgid "Introduction" msgstr "Introdução" -#: ../../library/sqlite3.rst:855 +#: ../../library/sqlite3.rst:856 msgid "" "SQLite natively supports the following types: ``NULL``, ``INTEGER``, " "``REAL``, ``TEXT``, ``BLOB``." msgstr "" -#: ../../library/sqlite3.rst:858 +#: ../../library/sqlite3.rst:859 msgid "" "The following Python types can thus be sent to SQLite without any problem:" msgstr "" -#: ../../library/sqlite3.rst:861 ../../library/sqlite3.rst:878 +#: ../../library/sqlite3.rst:862 ../../library/sqlite3.rst:879 msgid "Python type" msgstr "Python type" -#: ../../library/sqlite3.rst:861 ../../library/sqlite3.rst:878 +#: ../../library/sqlite3.rst:862 ../../library/sqlite3.rst:879 msgid "SQLite type" msgstr "Tipo SQLite" -#: ../../library/sqlite3.rst:863 ../../library/sqlite3.rst:880 +#: ../../library/sqlite3.rst:864 ../../library/sqlite3.rst:881 msgid ":const:`None`" -msgstr "" +msgstr ":const:`None`" -#: ../../library/sqlite3.rst:863 ../../library/sqlite3.rst:880 +#: ../../library/sqlite3.rst:864 ../../library/sqlite3.rst:881 msgid "``NULL``" msgstr "``NULL``" -#: ../../library/sqlite3.rst:865 ../../library/sqlite3.rst:882 +#: ../../library/sqlite3.rst:866 ../../library/sqlite3.rst:883 msgid ":class:`int`" -msgstr "" +msgstr ":class:`int`" -#: ../../library/sqlite3.rst:865 ../../library/sqlite3.rst:882 +#: ../../library/sqlite3.rst:866 ../../library/sqlite3.rst:883 msgid "``INTEGER``" -msgstr "" +msgstr "``INTEGER``" -#: ../../library/sqlite3.rst:867 ../../library/sqlite3.rst:884 +#: ../../library/sqlite3.rst:868 ../../library/sqlite3.rst:885 msgid ":class:`float`" -msgstr "" +msgstr ":class:`float`" -#: ../../library/sqlite3.rst:867 ../../library/sqlite3.rst:884 +#: ../../library/sqlite3.rst:868 ../../library/sqlite3.rst:885 msgid "``REAL``" -msgstr "" +msgstr "``REAL``" -#: ../../library/sqlite3.rst:869 +#: ../../library/sqlite3.rst:870 msgid ":class:`str`" -msgstr "" +msgstr ":class:`str`" -#: ../../library/sqlite3.rst:869 ../../library/sqlite3.rst:886 +#: ../../library/sqlite3.rst:870 ../../library/sqlite3.rst:887 msgid "``TEXT``" -msgstr "" +msgstr "``TEXT``" -#: ../../library/sqlite3.rst:871 ../../library/sqlite3.rst:889 +#: ../../library/sqlite3.rst:872 ../../library/sqlite3.rst:890 msgid ":class:`bytes`" -msgstr "" +msgstr ":class:`bytes`" -#: ../../library/sqlite3.rst:871 ../../library/sqlite3.rst:889 +#: ../../library/sqlite3.rst:872 ../../library/sqlite3.rst:890 msgid "``BLOB``" -msgstr "" +msgstr "``BLOB``" -#: ../../library/sqlite3.rst:875 +#: ../../library/sqlite3.rst:876 msgid "This is how SQLite types are converted to Python types by default:" msgstr "" -#: ../../library/sqlite3.rst:886 +#: ../../library/sqlite3.rst:887 msgid "depends on :attr:`~Connection.text_factory`, :class:`str` by default" msgstr "" -#: ../../library/sqlite3.rst:892 +#: ../../library/sqlite3.rst:893 msgid "" "The type system of the :mod:`sqlite3` module is extensible in two ways: you " "can store additional Python types in a SQLite database via object " @@ -1015,35 +1010,35 @@ msgid "" "to different Python types via converters." msgstr "" -#: ../../library/sqlite3.rst:899 +#: ../../library/sqlite3.rst:900 msgid "Using adapters to store additional Python types in SQLite databases" msgstr "" -#: ../../library/sqlite3.rst:901 +#: ../../library/sqlite3.rst:902 msgid "" "As described before, SQLite supports only a limited set of types natively. " -"To use other Python types with SQLite, you must **adapt** them to one of the" -" sqlite3 module's supported types for SQLite: one of NoneType, int, float, " +"To use other Python types with SQLite, you must **adapt** them to one of the " +"sqlite3 module's supported types for SQLite: one of NoneType, int, float, " "str, bytes." msgstr "" -#: ../../library/sqlite3.rst:906 +#: ../../library/sqlite3.rst:907 msgid "" "There are two ways to enable the :mod:`sqlite3` module to adapt a custom " "Python type to one of the supported ones." msgstr "" -#: ../../library/sqlite3.rst:911 +#: ../../library/sqlite3.rst:912 msgid "Letting your object adapt itself" msgstr "" -#: ../../library/sqlite3.rst:913 +#: ../../library/sqlite3.rst:914 msgid "" "This is a good approach if you write the class yourself. Let's suppose you " "have a class like this::" msgstr "" -#: ../../library/sqlite3.rst:920 +#: ../../library/sqlite3.rst:921 msgid "" "Now you want to store the point in a single SQLite column. First you'll " "have to choose one of the supported types first to be used for representing " @@ -1053,154 +1048,154 @@ msgid "" "will be :class:`PrepareProtocol`." msgstr "" -#: ../../library/sqlite3.rst:930 +#: ../../library/sqlite3.rst:931 msgid "Registering an adapter callable" msgstr "" -#: ../../library/sqlite3.rst:932 +#: ../../library/sqlite3.rst:933 msgid "" "The other possibility is to create a function that converts the type to the " -"string representation and register the function with " -":meth:`register_adapter`." +"string representation and register the function with :meth:" +"`register_adapter`." msgstr "" -#: ../../library/sqlite3.rst:937 +#: ../../library/sqlite3.rst:938 msgid "" -"The :mod:`sqlite3` module has two default adapters for Python's built-in " -":class:`datetime.date` and :class:`datetime.datetime` types. Now let's " +"The :mod:`sqlite3` module has two default adapters for Python's built-in :" +"class:`datetime.date` and :class:`datetime.datetime` types. Now let's " "suppose we want to store :class:`datetime.datetime` objects not in ISO " "representation, but as a Unix timestamp." msgstr "" -#: ../../library/sqlite3.rst:946 +#: ../../library/sqlite3.rst:947 msgid "Converting SQLite values to custom Python types" msgstr "" -#: ../../library/sqlite3.rst:948 +#: ../../library/sqlite3.rst:949 msgid "" "Writing an adapter lets you send custom Python types to SQLite. But to make " "it really useful we need to make the Python to SQLite to Python roundtrip " "work." msgstr "" -#: ../../library/sqlite3.rst:951 +#: ../../library/sqlite3.rst:952 msgid "Enter converters." msgstr "" -#: ../../library/sqlite3.rst:953 +#: ../../library/sqlite3.rst:954 msgid "" -"Let's go back to the :class:`Point` class. We stored the x and y coordinates" -" separated via semicolons as strings in SQLite." +"Let's go back to the :class:`Point` class. We stored the x and y coordinates " +"separated via semicolons as strings in SQLite." msgstr "" -#: ../../library/sqlite3.rst:956 +#: ../../library/sqlite3.rst:957 msgid "" "First, we'll define a converter function that accepts the string as a " "parameter and constructs a :class:`Point` object from it." msgstr "" -#: ../../library/sqlite3.rst:961 +#: ../../library/sqlite3.rst:962 msgid "" "Converter functions **always** get called with a :class:`bytes` object, no " "matter under which data type you sent the value to SQLite." msgstr "" -#: ../../library/sqlite3.rst:970 +#: ../../library/sqlite3.rst:971 msgid "" "Now you need to make the :mod:`sqlite3` module know that what you select " "from the database is actually a point. There are two ways of doing this:" msgstr "" -#: ../../library/sqlite3.rst:973 +#: ../../library/sqlite3.rst:974 msgid "Implicitly via the declared type" msgstr "" -#: ../../library/sqlite3.rst:975 +#: ../../library/sqlite3.rst:976 msgid "Explicitly via the column name" msgstr "" -#: ../../library/sqlite3.rst:977 +#: ../../library/sqlite3.rst:978 msgid "" "Both ways are described in section :ref:`sqlite3-module-contents`, in the " -"entries for the constants :const:`PARSE_DECLTYPES` and " -":const:`PARSE_COLNAMES`." +"entries for the constants :const:`PARSE_DECLTYPES` and :const:" +"`PARSE_COLNAMES`." msgstr "" -#: ../../library/sqlite3.rst:980 +#: ../../library/sqlite3.rst:981 msgid "The following example illustrates both approaches." msgstr "" -#: ../../library/sqlite3.rst:986 +#: ../../library/sqlite3.rst:987 msgid "Default adapters and converters" msgstr "" -#: ../../library/sqlite3.rst:988 +#: ../../library/sqlite3.rst:989 msgid "" "There are default adapters for the date and datetime types in the datetime " "module. They will be sent as ISO dates/ISO timestamps to SQLite." msgstr "" -#: ../../library/sqlite3.rst:991 +#: ../../library/sqlite3.rst:992 msgid "" -"The default converters are registered under the name \"date\" for " -":class:`datetime.date` and under the name \"timestamp\" for " -":class:`datetime.datetime`." +"The default converters are registered under the name \"date\" for :class:" +"`datetime.date` and under the name \"timestamp\" for :class:`datetime." +"datetime`." msgstr "" -#: ../../library/sqlite3.rst:995 +#: ../../library/sqlite3.rst:996 msgid "" "This way, you can use date/timestamps from Python without any additional " "fiddling in most cases. The format of the adapters is also compatible with " "the experimental SQLite date/time functions." msgstr "" -#: ../../library/sqlite3.rst:999 +#: ../../library/sqlite3.rst:1000 msgid "The following example demonstrates this." msgstr "" -#: ../../library/sqlite3.rst:1003 +#: ../../library/sqlite3.rst:1004 msgid "" -"If a timestamp stored in SQLite has a fractional part longer than 6 numbers," -" its value will be truncated to microsecond precision by the timestamp " +"If a timestamp stored in SQLite has a fractional part longer than 6 numbers, " +"its value will be truncated to microsecond precision by the timestamp " "converter." msgstr "" -#: ../../library/sqlite3.rst:1011 +#: ../../library/sqlite3.rst:1012 msgid "Controlling Transactions" msgstr "" -#: ../../library/sqlite3.rst:1013 +#: ../../library/sqlite3.rst:1014 msgid "" "The underlying ``sqlite3`` library operates in ``autocommit`` mode by " "default, but the Python :mod:`sqlite3` module by default does not." msgstr "" -#: ../../library/sqlite3.rst:1016 +#: ../../library/sqlite3.rst:1017 msgid "" "``autocommit`` mode means that statements that modify the database take " "effect immediately. A ``BEGIN`` or ``SAVEPOINT`` statement disables " -"``autocommit`` mode, and a ``COMMIT``, a ``ROLLBACK``, or a ``RELEASE`` that" -" ends the outermost transaction, turns ``autocommit`` mode back on." +"``autocommit`` mode, and a ``COMMIT``, a ``ROLLBACK``, or a ``RELEASE`` that " +"ends the outermost transaction, turns ``autocommit`` mode back on." msgstr "" -#: ../../library/sqlite3.rst:1021 +#: ../../library/sqlite3.rst:1022 msgid "" "The Python :mod:`sqlite3` module by default issues a ``BEGIN`` statement " "implicitly before a Data Modification Language (DML) statement (i.e. " "``INSERT``/``UPDATE``/``DELETE``/``REPLACE``)." msgstr "" -#: ../../library/sqlite3.rst:1025 +#: ../../library/sqlite3.rst:1026 msgid "" -"You can control which kind of ``BEGIN`` statements :mod:`sqlite3` implicitly" -" executes via the *isolation_level* parameter to the :func:`connect` call, " -"or via the :attr:`isolation_level` property of connections. If you specify " -"no *isolation_level*, a plain ``BEGIN`` is used, which is equivalent to " +"You can control which kind of ``BEGIN`` statements :mod:`sqlite3` implicitly " +"executes via the *isolation_level* parameter to the :func:`connect` call, or " +"via the :attr:`isolation_level` property of connections. If you specify no " +"*isolation_level*, a plain ``BEGIN`` is used, which is equivalent to " "specifying ``DEFERRED``. Other possible values are ``IMMEDIATE`` and " "``EXCLUSIVE``." msgstr "" -#: ../../library/sqlite3.rst:1032 +#: ../../library/sqlite3.rst:1033 msgid "" "You can disable the :mod:`sqlite3` module's implicit transaction management " "by setting :attr:`isolation_level` to ``None``. This will leave the " @@ -1210,68 +1205,68 @@ msgid "" "code." msgstr "" -#: ../../library/sqlite3.rst:1038 +#: ../../library/sqlite3.rst:1039 msgid "" ":mod:`sqlite3` used to implicitly commit an open transaction before DDL " "statements. This is no longer the case." msgstr "" -#: ../../library/sqlite3.rst:1044 +#: ../../library/sqlite3.rst:1045 msgid "Using :mod:`sqlite3` efficiently" msgstr "" -#: ../../library/sqlite3.rst:1048 +#: ../../library/sqlite3.rst:1049 msgid "Using shortcut methods" msgstr "" -#: ../../library/sqlite3.rst:1050 +#: ../../library/sqlite3.rst:1051 msgid "" -"Using the nonstandard :meth:`execute`, :meth:`executemany` and " -":meth:`executescript` methods of the :class:`Connection` object, your code " -"can be written more concisely because you don't have to create the (often " -"superfluous) :class:`Cursor` objects explicitly. Instead, the " -":class:`Cursor` objects are created implicitly and these shortcut methods " -"return the cursor objects. This way, you can execute a ``SELECT`` statement " -"and iterate over it directly using only a single call on the " -":class:`Connection` object." +"Using the nonstandard :meth:`execute`, :meth:`executemany` and :meth:" +"`executescript` methods of the :class:`Connection` object, your code can be " +"written more concisely because you don't have to create the (often " +"superfluous) :class:`Cursor` objects explicitly. Instead, the :class:" +"`Cursor` objects are created implicitly and these shortcut methods return " +"the cursor objects. This way, you can execute a ``SELECT`` statement and " +"iterate over it directly using only a single call on the :class:`Connection` " +"object." msgstr "" -#: ../../library/sqlite3.rst:1062 +#: ../../library/sqlite3.rst:1063 msgid "Accessing columns by name instead of by index" msgstr "" -#: ../../library/sqlite3.rst:1064 +#: ../../library/sqlite3.rst:1065 msgid "" -"One useful feature of the :mod:`sqlite3` module is the built-in " -":class:`sqlite3.Row` class designed to be used as a row factory." +"One useful feature of the :mod:`sqlite3` module is the built-in :class:" +"`sqlite3.Row` class designed to be used as a row factory." msgstr "" -#: ../../library/sqlite3.rst:1067 +#: ../../library/sqlite3.rst:1068 msgid "" -"Rows wrapped with this class can be accessed both by index (like tuples) and" -" case-insensitively by name:" +"Rows wrapped with this class can be accessed both by index (like tuples) and " +"case-insensitively by name:" msgstr "" -#: ../../library/sqlite3.rst:1074 +#: ../../library/sqlite3.rst:1075 msgid "Using the connection as a context manager" msgstr "" -#: ../../library/sqlite3.rst:1076 +#: ../../library/sqlite3.rst:1077 msgid "" -"Connection objects can be used as context managers that automatically commit" -" or rollback transactions. In the event of an exception, the transaction is" -" rolled back; otherwise, the transaction is committed:" +"Connection objects can be used as context managers that automatically commit " +"or rollback transactions. In the event of an exception, the transaction is " +"rolled back; otherwise, the transaction is committed:" msgstr "" -#: ../../library/sqlite3.rst:1085 +#: ../../library/sqlite3.rst:1086 msgid "Common issues" msgstr "" -#: ../../library/sqlite3.rst:1088 +#: ../../library/sqlite3.rst:1089 msgid "Multithreading" msgstr "" -#: ../../library/sqlite3.rst:1090 +#: ../../library/sqlite3.rst:1091 msgid "" "Older SQLite versions had issues with sharing connections between threads. " "That's why the Python module disallows sharing connections and cursors " @@ -1279,17 +1274,17 @@ msgid "" "runtime." msgstr "" -#: ../../library/sqlite3.rst:1094 +#: ../../library/sqlite3.rst:1095 msgid "" "The only exception is calling the :meth:`~Connection.interrupt` method, " "which only makes sense to call from a different thread." msgstr "" -#: ../../library/sqlite3.rst:1098 +#: ../../library/sqlite3.rst:1099 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../library/sqlite3.rst:1099 +#: ../../library/sqlite3.rst:1100 msgid "" "The sqlite3 module is not built with loadable extension support by default, " "because some platforms (notably Mac OS X) have SQLite libraries which are " diff --git a/library/ssl.po b/library/ssl.po index 99afab0d9..136f0b4c7 100644 --- a/library/ssl.po +++ b/library/ssl.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 # Claudio Rogerio Carvalho Filho , 2019 @@ -11,16 +11,18 @@ # felipe caridade , 2019 # Raphael Mendonça, 2019 # Rafael Biagioni de Fazio , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-18 03:30+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Last-Translator: Rafael Biagioni de Fazio , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,8 +42,8 @@ msgid "" "This module provides access to Transport Layer Security (often known as " "\"Secure Sockets Layer\") encryption and peer authentication facilities for " "network sockets, both client-side and server-side. This module uses the " -"OpenSSL library. It is available on all modern Unix systems, Windows, Mac OS" -" X, and probably additional platforms, as long as OpenSSL is installed on " +"OpenSSL library. It is available on all modern Unix systems, Windows, Mac OS " +"X, and probably additional platforms, as long as OpenSSL is installed on " "that platform." msgstr "" @@ -55,9 +57,9 @@ msgstr "" #: ../../library/ssl.rst:32 msgid "" -"Don't use this module without reading the :ref:`ssl-security`. Doing so may" -" lead to a false sense of security, as the default settings of the ssl " -"module are not necessarily appropriate for your application." +"Don't use this module without reading the :ref:`ssl-security`. Doing so may " +"lead to a false sense of security, as the default settings of the ssl module " +"are not necessarily appropriate for your application." msgstr "" #: ../../library/ssl.rst:37 @@ -72,16 +74,16 @@ msgid "" "This module provides a class, :class:`ssl.SSLSocket`, which is derived from " "the :class:`socket.socket` type, and provides a socket-like wrapper that " "also encrypts and decrypts the data going over the socket with SSL. It " -"supports additional methods such as :meth:`getpeercert`, which retrieves the" -" certificate of the other side of the connection, and :meth:`cipher`,which " +"supports additional methods such as :meth:`getpeercert`, which retrieves the " +"certificate of the other side of the connection, and :meth:`cipher`, which " "retrieves the cipher being used for the secure connection." msgstr "" #: ../../library/ssl.rst:48 msgid "" -"For more sophisticated applications, the :class:`ssl.SSLContext` class helps" -" manage settings and certificates, which can then be inherited by SSL " -"sockets created through the :meth:`SSLContext.wrap_socket` method." +"For more sophisticated applications, the :class:`ssl.SSLContext` class helps " +"manage settings and certificates, which can then be inherited by SSL sockets " +"created through the :meth:`SSLContext.wrap_socket` method." msgstr "" #: ../../library/ssl.rst:52 @@ -104,13 +106,12 @@ msgstr "" #: ../../library/ssl.rst:69 msgid "" -"Since Python 3.2 and 2.7.9, it is recommended to use the " -":meth:`SSLContext.wrap_socket` of an :class:`SSLContext` instance to wrap " -"sockets as :class:`SSLSocket` objects. The helper functions " -":func:`create_default_context` returns a new context with secure default " -"settings. The old :func:`wrap_socket` function is deprecated since it is " -"both inefficient and has no support for server name indication (SNI) and " -"hostname matching." +"Since Python 3.2 and 2.7.9, it is recommended to use the :meth:`SSLContext." +"wrap_socket` of an :class:`SSLContext` instance to wrap sockets as :class:" +"`SSLSocket` objects. The helper functions :func:`create_default_context` " +"returns a new context with secure default settings. The old :func:" +"`wrap_socket` function is deprecated since it is both inefficient and has no " +"support for server name indication (SNI) and hostname matching." msgstr "" #: ../../library/ssl.rst:77 @@ -145,20 +146,20 @@ msgstr "" #: ../../library/ssl.rst:128 msgid "" -"*cafile*, *capath*, *cadata* represent optional CA certificates to trust for" -" certificate verification, as in :meth:`SSLContext.load_verify_locations`. " +"*cafile*, *capath*, *cadata* represent optional CA certificates to trust for " +"certificate verification, as in :meth:`SSLContext.load_verify_locations`. " "If all three are :const:`None`, this function can choose to trust the " "system's default CA certificates instead." msgstr "" #: ../../library/ssl.rst:134 msgid "" -"The settings are: :data:`PROTOCOL_TLS`, :data:`OP_NO_SSLv2`, and " -":data:`OP_NO_SSLv3` with high encryption cipher suites without RC4 and " -"without unauthenticated cipher suites. Passing :data:`~Purpose.SERVER_AUTH` " -"as *purpose* sets :data:`~SSLContext.verify_mode` to :data:`CERT_REQUIRED` " -"and either loads CA certificates (when at least one of *cafile*, *capath* or" -" *cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load " +"The settings are: :data:`PROTOCOL_TLS`, :data:`OP_NO_SSLv2`, and :data:" +"`OP_NO_SSLv3` with high encryption cipher suites without RC4 and without " +"unauthenticated cipher suites. Passing :data:`~Purpose.SERVER_AUTH` as " +"*purpose* sets :data:`~SSLContext.verify_mode` to :data:`CERT_REQUIRED` and " +"either loads CA certificates (when at least one of *cafile*, *capath* or " +"*cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load " "default CA certificates." msgstr "" @@ -171,8 +172,8 @@ msgstr "" #: ../../library/ssl.rst:147 msgid "" -"If your application needs specific settings, you should create a " -":class:`SSLContext` and apply the settings yourself." +"If your application needs specific settings, you should create a :class:" +"`SSLContext` and apply the settings yourself." msgstr "" #: ../../library/ssl.rst:151 @@ -181,10 +182,9 @@ msgid "" "with a :class:`SSLContext` created by this function that they get an error " "stating \"Protocol or cipher suite mismatch\", it may be that they only " "support SSL3.0 which this function excludes using the :data:`OP_NO_SSLv3`. " -"SSL3.0 is widely considered to be `completely broken " -"`_. If you still wish to continue to " -"use this function but still allow SSL 3.0 connections you can re-enable them" -" using::" +"SSL3.0 is widely considered to be `completely broken `_. If you still wish to continue to use this function but " +"still allow SSL 3.0 connections you can re-enable them using::" msgstr "" #: ../../library/ssl.rst:167 @@ -206,8 +206,8 @@ msgstr "Exceções" #: ../../library/ssl.rst:181 msgid "" "Raised to signal an error from the underlying SSL implementation (currently " -"provided by the OpenSSL library). This signifies some problem in the " -"higher-level encryption and authentication layer that's superimposed on the " +"provided by the OpenSSL library). This signifies some problem in the higher-" +"level encryption and authentication layer that's superimposed on the " "underlying network connection. This error is a subtype of :exc:`OSError`. " "The error code and message of :exc:`SSLError` instances are provided by the " "OpenSSL library." @@ -240,18 +240,16 @@ msgstr "" #: ../../library/ssl.rst:217 msgid "" -"A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket " -"` when trying to read or write data, but more data needs to" -" be received on the underlying TCP transport before the request can be " -"fulfilled." +"A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket ` when trying to read or write data, but more data needs to be " +"received on the underlying TCP transport before the request can be fulfilled." msgstr "" #: ../../library/ssl.rst:226 msgid "" -"A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket " -"` when trying to read or write data, but more data needs to" -" be sent on the underlying TCP transport before the request can be " -"fulfilled." +"A subclass of :exc:`SSLError` raised by a :ref:`non-blocking SSL socket ` when trying to read or write data, but more data needs to be " +"sent on the underlying TCP transport before the request can be fulfilled." msgstr "" #: ../../library/ssl.rst:235 @@ -295,11 +293,11 @@ msgstr "" #: ../../library/ssl.rst:277 msgid "" -"Return *num* cryptographically strong pseudo-random bytes. Raises an " -":class:`SSLError` if the PRNG has not been seeded with enough data or if the" -" operation is not supported by the current RAND method. :func:`RAND_status` " -"can be used to check the status of the PRNG and :func:`RAND_add` can be used" -" to seed the PRNG." +"Return *num* cryptographically strong pseudo-random bytes. Raises an :class:" +"`SSLError` if the PRNG has not been seeded with enough data or if the " +"operation is not supported by the current RAND method. :func:`RAND_status` " +"can be used to check the status of the PRNG and :func:`RAND_add` can be used " +"to seed the PRNG." msgstr "" #: ../../library/ssl.rst:283 ../../library/ssl.rst:304 @@ -309,17 +307,17 @@ msgstr "" #: ../../library/ssl.rst:285 msgid "" "Read the Wikipedia article, `Cryptographically secure pseudorandom number " -"generator (CSPRNG) " -"`_," -" to get the requirements of a cryptographically generator." +"generator (CSPRNG) `_, to get the " +"requirements of a cryptographically generator." msgstr "" #: ../../library/ssl.rst:294 msgid "" "Return (bytes, is_cryptographic): bytes are *num* pseudo-random bytes, " "is_cryptographic is ``True`` if the bytes generated are cryptographically " -"strong. Raises an :class:`SSLError` if the operation is not supported by the" -" current RAND method." +"strong. Raises an :class:`SSLError` if the operation is not supported by the " +"current RAND method." msgstr "" #: ../../library/ssl.rst:299 @@ -332,16 +330,16 @@ msgstr "" #: ../../library/ssl.rst:310 msgid "" -"OpenSSL has deprecated :func:`ssl.RAND_pseudo_bytes`, use " -":func:`ssl.RAND_bytes` instead." +"OpenSSL has deprecated :func:`ssl.RAND_pseudo_bytes`, use :func:`ssl." +"RAND_bytes` instead." msgstr "" #: ../../library/ssl.rst:315 msgid "" "Return ``True`` if the SSL pseudo-random number generator has been seeded " -"with 'enough' randomness, and ``False`` otherwise. You can use " -":func:`ssl.RAND_egd` and :func:`ssl.RAND_add` to increase the randomness of " -"the pseudo-random number generator." +"with 'enough' randomness, and ``False`` otherwise. You can use :func:`ssl." +"RAND_egd` and :func:`ssl.RAND_add` to increase the randomness of the pseudo-" +"random number generator." msgstr "" #: ../../library/ssl.rst:322 @@ -355,8 +353,8 @@ msgstr "" #: ../../library/ssl.rst:328 msgid "" -"See http://egd.sourceforge.net/ or http://prngd.sourceforge.net/ for sources" -" of entropy-gathering daemons." +"See http://egd.sourceforge.net/ or http://prngd.sourceforge.net/ for sources " +"of entropy-gathering daemons." msgstr "" #: ../../library/ssl.rst:331 @@ -383,12 +381,12 @@ msgstr "" #: ../../library/ssl.rst:352 msgid "" -"Verify that *cert* (in decoded format as returned by " -":meth:`SSLSocket.getpeercert`) matches the given *hostname*. The rules " -"applied are those for checking the identity of HTTPS servers as outlined in " -":rfc:`2818`, :rfc:`5280` and :rfc:`6125`. In addition to HTTPS, this " -"function should be suitable for checking the identity of servers in various " -"SSL-based protocols such as FTPS, IMAPS, POPS and others." +"Verify that *cert* (in decoded format as returned by :meth:`SSLSocket." +"getpeercert`) matches the given *hostname*. The rules applied are those for " +"checking the identity of HTTPS servers as outlined in :rfc:`2818`, :rfc:" +"`5280` and :rfc:`6125`. In addition to HTTPS, this function should be " +"suitable for checking the identity of servers in various SSL-based protocols " +"such as FTPS, IMAPS, POPS and others." msgstr "" #: ../../library/ssl.rst:359 @@ -421,15 +419,14 @@ msgstr "" #: ../../library/ssl.rst:387 msgid "" "Allow wildcard when it is the leftmost and the only character in that " -"segment. Partial wildcards like ``www*.example.com`` are no longer " -"supported." +"segment. Partial wildcards like ``www*.example.com`` are no longer supported." msgstr "" #: ../../library/ssl.rst:395 msgid "" "Return the time in seconds since the Epoch, given the ``cert_time`` string " -"representing the \"notBefore\" or \"notAfter\" date from a certificate in " -"``\"%b %d %H:%M:%S %Y %Z\"`` strptime format (C locale)." +"representing the \"notBefore\" or \"notAfter\" date from a certificate in ``" +"\"%b %d %H:%M:%S %Y %Z\"`` strptime format (C locale)." msgstr "" #: ../../library/ssl.rst:400 @@ -454,10 +451,10 @@ msgid "" "PEM-encoded string. If ``ssl_version`` is specified, uses that version of " "the SSL protocol to attempt to connect to the server. If ``ca_certs`` is " "specified, it should be a file containing a list of root certificates, the " -"same format as used for the same parameter in " -":meth:`SSLContext.wrap_socket`. The call will attempt to validate the " -"server certificate against that set of root certificates, and will fail if " -"the validation attempt fails." +"same format as used for the same parameter in :meth:`SSLContext." +"wrap_socket`. The call will attempt to validate the server certificate " +"against that set of root certificates, and will fail if the validation " +"attempt fails." msgstr "" #: ../../library/ssl.rst:432 @@ -466,8 +463,8 @@ msgstr "" #: ../../library/ssl.rst:435 msgid "" -"The default *ssl_version* is changed from :data:`PROTOCOL_SSLv3` to " -":data:`PROTOCOL_TLS` for maximum compatibility with modern servers." +"The default *ssl_version* is changed from :data:`PROTOCOL_SSLv3` to :data:" +"`PROTOCOL_TLS` for maximum compatibility with modern servers." msgstr "" #: ../../library/ssl.rst:441 @@ -484,8 +481,8 @@ msgstr "" #: ../../library/ssl.rst:451 msgid "" -"Returns a named tuple with paths to OpenSSL's default cafile and capath. The" -" paths are the same as used by :meth:`SSLContext.set_default_verify_paths`. " +"Returns a named tuple with paths to OpenSSL's default cafile and capath. The " +"paths are the same as used by :meth:`SSLContext.set_default_verify_paths`. " "The return value is a :term:`named tuple` ``DefaultVerifyPaths``:" msgstr "" @@ -523,8 +520,8 @@ msgstr "" #: ../../library/ssl.rst:465 msgid "" -":ref:`Availability `: LibreSSL ignores the environment vars " -":attr:`openssl_cafile_env` and :attr:`openssl_capath_env`." +":ref:`Availability `: LibreSSL ignores the environment vars :" +"attr:`openssl_cafile_env` and :attr:`openssl_capath_env`." msgstr "" #: ../../library/ssl.rst:470 @@ -537,20 +534,20 @@ msgstr "" #: ../../library/ssl.rst:474 msgid "" "The function returns a list of (cert_bytes, encoding_type, trust) tuples. " -"The encoding_type specifies the encoding of cert_bytes. It is either " -":const:`x509_asn` for X.509 ASN.1 data or :const:`pkcs_7_asn` for PKCS#7 " -"ASN.1 data. Trust specifies the purpose of the certificate as a set of OIDS " -"or exactly ``True`` if the certificate is trustworthy for all purposes." +"The encoding_type specifies the encoding of cert_bytes. It is either :const:" +"`x509_asn` for X.509 ASN.1 data or :const:`pkcs_7_asn` for PKCS#7 ASN.1 " +"data. Trust specifies the purpose of the certificate as a set of OIDS or " +"exactly ``True`` if the certificate is trustworthy for all purposes." msgstr "" -#: ../../library/ssl.rst:481 ../../library/ssl.rst:1565 -#: ../../library/ssl.rst:1880 +#: ../../library/ssl.rst:481 ../../library/ssl.rst:1568 +#: ../../library/ssl.rst:1883 msgid "Example::" msgstr "Exemplo::" #: ../../library/ssl.rst:488 ../../library/ssl.rst:503 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." #: ../../library/ssl.rst:493 msgid "" @@ -561,17 +558,16 @@ msgstr "" #: ../../library/ssl.rst:497 msgid "" "The function returns a list of (cert_bytes, encoding_type, trust) tuples. " -"The encoding_type specifies the encoding of cert_bytes. It is either " -":const:`x509_asn` for X.509 ASN.1 data or :const:`pkcs_7_asn` for PKCS#7 " -"ASN.1 data." +"The encoding_type specifies the encoding of cert_bytes. It is either :const:" +"`x509_asn` for X.509 ASN.1 data or :const:`pkcs_7_asn` for PKCS#7 ASN.1 data." msgstr "" #: ../../library/ssl.rst:511 msgid "" "Takes an instance ``sock`` of :class:`socket.socket`, and returns an " "instance of :class:`ssl.SSLSocket`, a subtype of :class:`socket.socket`, " -"which wraps the underlying socket in an SSL context. ``sock`` must be a " -":data:`~socket.SOCK_STREAM` socket; other socket types are unsupported." +"which wraps the underlying socket in an SSL context. ``sock`` must be a :" +"data:`~socket.SOCK_STREAM` socket; other socket types are unsupported." msgstr "" #: ../../library/ssl.rst:516 @@ -579,24 +575,23 @@ msgid "" "Internally, function creates a :class:`SSLContext` with protocol " "*ssl_version* and :attr:`SSLContext.options` set to *cert_reqs*. If " "parameters *keyfile*, *certfile*, *ca_certs* or *ciphers* are set, then the " -"values are passed to :meth:`SSLContext.load_cert_chain`, " -":meth:`SSLContext.load_verify_locations`, and " -":meth:`SSLContext.set_ciphers`." +"values are passed to :meth:`SSLContext.load_cert_chain`, :meth:`SSLContext." +"load_verify_locations`, and :meth:`SSLContext.set_ciphers`." msgstr "" #: ../../library/ssl.rst:523 msgid "" "The arguments *server_side*, *do_handshake_on_connect*, and " -"*suppress_ragged_eofs* have the same meaning as " -":meth:`SSLContext.wrap_socket`." +"*suppress_ragged_eofs* have the same meaning as :meth:`SSLContext." +"wrap_socket`." msgstr "" #: ../../library/ssl.rst:529 msgid "" -"Since Python 3.2 and 2.7.9, it is recommended to use the " -":meth:`SSLContext.wrap_socket` instead of :func:`wrap_socket`. The top-level" -" function is limited and creates an insecure client socket without server " -"name indication or hostname matching." +"Since Python 3.2 and 2.7.9, it is recommended to use the :meth:`SSLContext." +"wrap_socket` instead of :func:`wrap_socket`. The top-level function is " +"limited and creates an insecure client socket without server name indication " +"or hostname matching." msgstr "" #: ../../library/ssl.rst:535 @@ -614,8 +609,8 @@ msgid "" "Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs`` " "parameter to :func:`wrap_socket`. Except for :const:`PROTOCOL_TLS_CLIENT`, " "it is the default mode. With client-side sockets, just about any cert is " -"accepted. Validation errors, such as untrusted or expired cert, are ignored" -" and do not abort the TLS/SSL handshake." +"accepted. Validation errors, such as untrusted or expired cert, are ignored " +"and do not abort the TLS/SSL handshake." msgstr "" #: ../../library/ssl.rst:549 @@ -624,7 +619,7 @@ msgid "" "does not send any for client cert authentication." msgstr "" -#: ../../library/ssl.rst:552 ../../library/ssl.rst:2278 +#: ../../library/ssl.rst:552 ../../library/ssl.rst:2281 msgid "See the discussion of :ref:`ssl-security` below." msgstr "" @@ -632,8 +627,8 @@ msgstr "" msgid "" "Possible value for :attr:`SSLContext.verify_mode`, or the ``cert_reqs`` " "parameter to :func:`wrap_socket`. In client mode, :const:`CERT_OPTIONAL` " -"has the same meaning as :const:`CERT_REQUIRED`. It is recommended to use " -":const:`CERT_REQUIRED` for client-side sockets instead." +"has the same meaning as :const:`CERT_REQUIRED`. It is recommended to use :" +"const:`CERT_REQUIRED` for client-side sockets instead." msgstr "" #: ../../library/ssl.rst:561 @@ -659,9 +654,9 @@ msgid "" "from the other side of the socket connection; an :class:`SSLError` will be " "raised if no certificate is provided, or if its validation fails. This mode " "is **not** sufficient to verify a certificate in client mode as it does not " -"match hostnames. :attr:`~SSLContext.check_hostname` must be enabled as well" -" to verify the authenticity of a cert. :const:`PROTOCOL_TLS_CLIENT` uses " -":const:`CERT_REQUIRED` and enables :attr:`~SSLContext.check_hostname` by " +"match hostnames. :attr:`~SSLContext.check_hostname` must be enabled as well " +"to verify the authenticity of a cert. :const:`PROTOCOL_TLS_CLIENT` uses :" +"const:`CERT_REQUIRED` and enables :attr:`~SSLContext.check_hostname` by " "default." msgstr "" @@ -679,8 +674,8 @@ msgstr "" #: ../../library/ssl.rst:599 msgid "" "Possible value for :attr:`SSLContext.verify_flags`. In this mode, " -"certificate revocation lists (CRLs) are not checked. By default OpenSSL does" -" neither require nor verify CRLs." +"certificate revocation lists (CRLs) are not checked. By default OpenSSL does " +"neither require nor verify CRLs." msgstr "" #: ../../library/ssl.rst:607 @@ -688,8 +683,8 @@ msgid "" "Possible value for :attr:`SSLContext.verify_flags`. In this mode, only the " "peer cert is checked but none of the intermediate CA certificates. The mode " "requires a valid CRL that is signed by the peer cert's issuer (its direct " -"ancestor CA). If no proper CRL has has been loaded with " -":attr:`SSLContext.load_verify_locations`, validation will fail." +"ancestor CA). If no proper CRL has has been loaded with :attr:`SSLContext." +"load_verify_locations`, validation will fail." msgstr "" #: ../../library/ssl.rst:617 @@ -795,9 +790,9 @@ msgstr "" #: ../../library/ssl.rst:728 msgid "" -"Selects TLS version 1.2 as the channel encryption protocol. This is the most" -" modern version, and probably the best choice for maximum protection, if " -"both sides can speak it. Available only with openssl version 1.0.1+." +"Selects TLS version 1.2 as the channel encryption protocol. This is the most " +"modern version, and probably the best choice for maximum protection, if both " +"sides can speak it. Available only with openssl version 1.0.1+." msgstr "" #: ../../library/ssl.rst:741 @@ -809,8 +804,8 @@ msgstr "" #: ../../library/ssl.rst:749 msgid "" -"Prevents an SSLv2 connection. This option is only applicable in conjunction" -" with :const:`PROTOCOL_TLS`. It prevents the peers from choosing SSLv2 as " +"Prevents an SSLv2 connection. This option is only applicable in conjunction " +"with :const:`PROTOCOL_TLS`. It prevents the peers from choosing SSLv2 as " "the protocol version." msgstr "" @@ -820,8 +815,8 @@ msgstr "" #: ../../library/ssl.rst:762 msgid "" -"Prevents an SSLv3 connection. This option is only applicable in conjunction" -" with :const:`PROTOCOL_TLS`. It prevents the peers from choosing SSLv3 as " +"Prevents an SSLv3 connection. This option is only applicable in conjunction " +"with :const:`PROTOCOL_TLS`. It prevents the peers from choosing SSLv3 as " "the protocol version." msgstr "" @@ -838,15 +833,14 @@ msgstr "" #: ../../library/ssl.rst:780 msgid "" -"The option is deprecated since OpenSSL 1.1.0, use the new " -":attr:`SSLContext.minimum_version` and :attr:`SSLContext.maximum_version` " -"instead." +"The option is deprecated since OpenSSL 1.1.0, use the new :attr:`SSLContext." +"minimum_version` and :attr:`SSLContext.maximum_version` instead." msgstr "" #: ../../library/ssl.rst:787 msgid "" -"Prevents a TLSv1.1 connection. This option is only applicable in conjunction" -" with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.1 as " +"Prevents a TLSv1.1 connection. This option is only applicable in conjunction " +"with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.1 as " "the protocol version. Available only with openssl version 1.0.1+." msgstr "" @@ -856,17 +850,17 @@ msgstr "" #: ../../library/ssl.rst:798 msgid "" -"Prevents a TLSv1.2 connection. This option is only applicable in conjunction" -" with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.2 as " +"Prevents a TLSv1.2 connection. This option is only applicable in conjunction " +"with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.2 as " "the protocol version. Available only with openssl version 1.0.1+." msgstr "" #: ../../library/ssl.rst:809 msgid "" -"Prevents a TLSv1.3 connection. This option is only applicable in conjunction" -" with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.3 as " -"the protocol version. TLS 1.3 is available with OpenSSL 1.1.1 or later. When" -" Python has been compiled against an older version of OpenSSL, the flag " +"Prevents a TLSv1.3 connection. This option is only applicable in conjunction " +"with :const:`PROTOCOL_TLS`. It prevents the peers from choosing TLSv1.3 as " +"the protocol version. TLS 1.3 is available with OpenSSL 1.1.1 or later. When " +"Python has been compiled against an older version of OpenSSL, the flag " "defaults to *0*." msgstr "" @@ -894,9 +888,9 @@ msgstr "" #: ../../library/ssl.rst:839 msgid "" -"Prevents re-use of the same DH key for distinct SSL sessions. This improves" -" forward secrecy but requires more computational resources. This option only" -" applies to server sockets." +"Prevents re-use of the same DH key for distinct SSL sessions. This improves " +"forward secrecy but requires more computational resources. This option only " +"applies to server sockets." msgstr "" #: ../../library/ssl.rst:847 @@ -942,8 +936,8 @@ msgstr "" #: ../../library/ssl.rst:890 msgid "" -"Whether the OpenSSL library has built-in support not checking subject common" -" name and :attr:`SSLContext.hostname_checks_common_name` is writeable." +"Whether the OpenSSL library has built-in support not checking subject common " +"name and :attr:`SSLContext.hostname_checks_common_name` is writeable." msgstr "" #: ../../library/ssl.rst:898 @@ -1020,16 +1014,16 @@ msgstr "" #: ../../library/ssl.rst:998 msgid "" -"Alert Descriptions from :rfc:`5246` and others. The `IANA TLS Alert Registry" -" `_ contains this list and references to the RFCs where their " "meaning is defined." msgstr "" #: ../../library/ssl.rst:1002 msgid "" -"Used as the return value of the callback function in " -":meth:`SSLContext.set_servername_callback`." +"Used as the return value of the callback function in :meth:`SSLContext." +"set_servername_callback`." msgstr "" #: ../../library/ssl.rst:1009 @@ -1038,18 +1032,18 @@ msgstr "" #: ../../library/ssl.rst:1015 msgid "" -"Option for :func:`create_default_context` and " -":meth:`SSLContext.load_default_certs`. This value indicates that the " -"context may be used to authenticate Web servers (therefore, it will be used " -"to create client-side sockets)." +"Option for :func:`create_default_context` and :meth:`SSLContext." +"load_default_certs`. This value indicates that the context may be used to " +"authenticate Web servers (therefore, it will be used to create client-side " +"sockets)." msgstr "" #: ../../library/ssl.rst:1024 msgid "" -"Option for :func:`create_default_context` and " -":meth:`SSLContext.load_default_certs`. This value indicates that the " -"context may be used to authenticate Web clients (therefore, it will be used " -"to create server-side sockets)." +"Option for :func:`create_default_context` and :meth:`SSLContext." +"load_default_certs`. This value indicates that the context may be used to " +"authenticate Web clients (therefore, it will be used to create server-side " +"sockets)." msgstr "" #: ../../library/ssl.rst:1033 @@ -1058,15 +1052,15 @@ msgstr "" #: ../../library/ssl.rst:1039 msgid "" -":class:`enum.IntEnum` collection of SSL and TLS versions for " -":attr:`SSLContext.maximum_version` and :attr:`SSLContext.minimum_version`." +":class:`enum.IntEnum` collection of SSL and TLS versions for :attr:" +"`SSLContext.maximum_version` and :attr:`SSLContext.minimum_version`." msgstr "" #: ../../library/ssl.rst:1047 msgid "" "The minimum or maximum supported SSL or TLS version. These are magic " -"constants. Their values don't reflect the lowest and highest available " -"TLS/SSL versions." +"constants. Their values don't reflect the lowest and highest available TLS/" +"SSL versions." msgstr "" #: ../../library/ssl.rst:1057 @@ -1083,51 +1077,55 @@ msgstr "" #: ../../library/ssl.rst:1066 msgid ":meth:`~socket.socket.accept()`" -msgstr "" +msgstr ":meth:`~socket.socket.accept()`" #: ../../library/ssl.rst:1067 msgid ":meth:`~socket.socket.bind()`" -msgstr "" +msgstr ":meth:`~socket.socket.bind()`" #: ../../library/ssl.rst:1068 msgid ":meth:`~socket.socket.close()`" -msgstr "" +msgstr ":meth:`~socket.socket.close()`" #: ../../library/ssl.rst:1069 msgid ":meth:`~socket.socket.connect()`" -msgstr "" +msgstr ":meth:`~socket.socket.connect()`" #: ../../library/ssl.rst:1070 msgid ":meth:`~socket.socket.detach()`" -msgstr "" +msgstr ":meth:`~socket.socket.detach()`" #: ../../library/ssl.rst:1071 msgid ":meth:`~socket.socket.fileno()`" -msgstr "" +msgstr ":meth:`~socket.socket.fileno()`" #: ../../library/ssl.rst:1072 msgid "" ":meth:`~socket.socket.getpeername()`, :meth:`~socket.socket.getsockname()`" msgstr "" +":meth:`~socket.socket.getpeername()`, :meth:`~socket.socket.getsockname()`" #: ../../library/ssl.rst:1073 msgid "" ":meth:`~socket.socket.getsockopt()`, :meth:`~socket.socket.setsockopt()`" msgstr "" +":meth:`~socket.socket.getsockopt()`, :meth:`~socket.socket.setsockopt()`" #: ../../library/ssl.rst:1074 msgid "" -":meth:`~socket.socket.gettimeout()`, :meth:`~socket.socket.settimeout()`, " -":meth:`~socket.socket.setblocking()`" +":meth:`~socket.socket.gettimeout()`, :meth:`~socket.socket.settimeout()`, :" +"meth:`~socket.socket.setblocking()`" msgstr "" +":meth:`~socket.socket.gettimeout()`, :meth:`~socket.socket.settimeout()`, :" +"meth:`~socket.socket.setblocking()`" #: ../../library/ssl.rst:1076 msgid ":meth:`~socket.socket.listen()`" -msgstr "" +msgstr ":meth:`~socket.socket.listen()`" #: ../../library/ssl.rst:1077 msgid ":meth:`~socket.socket.makefile()`" -msgstr "" +msgstr ":meth:`~socket.socket.makefile()`" #: ../../library/ssl.rst:1078 msgid "" @@ -1149,7 +1147,7 @@ msgstr "" #: ../../library/ssl.rst:1084 msgid ":meth:`~socket.socket.shutdown()`" -msgstr "" +msgstr ":meth:`~socket.socket.shutdown()`" #: ../../library/ssl.rst:1086 msgid "" @@ -1161,8 +1159,8 @@ msgstr "" #: ../../library/ssl.rst:1091 msgid "" -"Instances of :class:`SSLSocket` must be created using the " -":meth:`SSLContext.wrap_socket` method." +"Instances of :class:`SSLSocket` must be created using the :meth:`SSLContext." +"wrap_socket` method." msgstr "" #: ../../library/ssl.rst:1094 @@ -1172,22 +1170,21 @@ msgstr "" #: ../../library/ssl.rst:1097 msgid "" "The :meth:`shutdown` does not reset the socket timeout each time bytes are " -"received or sent. The socket timeout is now to maximum total duration of the" -" shutdown." +"received or sent. The socket timeout is now to maximum total duration of the " +"shutdown." msgstr "" #: ../../library/ssl.rst:1102 msgid "" -"It is deprecated to create a :class:`SSLSocket` instance directly, use " -":meth:`SSLContext.wrap_socket` to wrap a socket." +"It is deprecated to create a :class:`SSLSocket` instance directly, use :meth:" +"`SSLContext.wrap_socket` to wrap a socket." msgstr "" #: ../../library/ssl.rst:1106 msgid "" -":class:`SSLSocket` instances must to created with " -":meth:`~SSLContext.wrap_socket`. In earlier versions, it was possible to " -"create instances directly. This was never documented or officially " -"supported." +":class:`SSLSocket` instances must to created with :meth:`~SSLContext." +"wrap_socket`. In earlier versions, it was possible to create instances " +"directly. This was never documented or officially supported." msgstr "" #: ../../library/ssl.rst:1112 @@ -1203,14 +1200,14 @@ msgstr "" #: ../../library/ssl.rst:1120 msgid "" -"Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is " -":ref:`non-blocking ` and the read would block." +"Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :" +"ref:`non-blocking ` and the read would block." msgstr "" #: ../../library/ssl.rst:1123 msgid "" -"As at any time a re-negotiation is possible, a call to :meth:`read` can also" -" cause write operations." +"As at any time a re-negotiation is possible, a call to :meth:`read` can also " +"cause write operations." msgstr "" #: ../../library/ssl.rst:1126 @@ -1232,8 +1229,8 @@ msgstr "" #: ../../library/ssl.rst:1139 msgid "" -"Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is " -":ref:`non-blocking ` and the write would block." +"Raise :exc:`SSLWantReadError` or :exc:`SSLWantWriteError` if the socket is :" +"ref:`non-blocking ` and the write would block." msgstr "" #: ../../library/ssl.rst:1142 @@ -1254,18 +1251,17 @@ msgstr "" #: ../../library/ssl.rst:1154 msgid "" -"The :meth:`~SSLSocket.read` and :meth:`~SSLSocket.write` methods are the " -"low-level methods that read and write unencrypted, application-level data " -"and decrypt/encrypt it to encrypted, wire-level data. These methods require " -"an active SSL connection, i.e. the handshake was completed and " -":meth:`SSLSocket.unwrap` was not called." +"The :meth:`~SSLSocket.read` and :meth:`~SSLSocket.write` methods are the low-" +"level methods that read and write unencrypted, application-level data and " +"decrypt/encrypt it to encrypted, wire-level data. These methods require an " +"active SSL connection, i.e. the handshake was completed and :meth:`SSLSocket." +"unwrap` was not called." msgstr "" #: ../../library/ssl.rst:1160 msgid "" -"Normally you should use the socket API methods like " -":meth:`~socket.socket.recv` and :meth:`~socket.socket.send` instead of these" -" methods." +"Normally you should use the socket API methods like :meth:`~socket.socket." +"recv` and :meth:`~socket.socket.send` instead of these methods." msgstr "" #: ../../library/ssl.rst:1166 @@ -1274,9 +1270,9 @@ msgstr "" #: ../../library/ssl.rst:1168 msgid "" -"The handshake method also performs :func:`match_hostname` when the " -":attr:`~SSLContext.check_hostname` attribute of the socket's " -":attr:`~SSLSocket.context` is true." +"The handshake method also performs :func:`match_hostname` when the :attr:" +"`~SSLContext.check_hostname` attribute of the socket's :attr:`~SSLSocket." +"context` is true." msgstr "" #: ../../library/ssl.rst:1173 @@ -1287,17 +1283,17 @@ msgstr "" #: ../../library/ssl.rst:1177 msgid "" -"Hostname or IP address is matched by OpenSSL during handshake. The function " -":func:`match_hostname` is no longer used. In case OpenSSL refuses a hostname" -" or IP address, the handshake is aborted early and a TLS alert message is " +"Hostname or IP address is matched by OpenSSL during handshake. The function :" +"func:`match_hostname` is no longer used. In case OpenSSL refuses a hostname " +"or IP address, the handshake is aborted early and a TLS alert message is " "send to the peer." msgstr "" #: ../../library/ssl.rst:1185 msgid "" "If there is no certificate for the peer on the other end of the connection, " -"return ``None``. If the SSL handshake hasn't been done yet, raise " -":exc:`ValueError`." +"return ``None``. If the SSL handshake hasn't been done yet, raise :exc:" +"`ValueError`." msgstr "" #: ../../library/ssl.rst:1189 @@ -1305,8 +1301,8 @@ msgid "" "If the ``binary_form`` parameter is :const:`False`, and a certificate was " "received from the peer, this method returns a :class:`dict` instance. If " "the certificate was not validated, the dict is empty. If the certificate " -"was validated, it returns a dict with several keys, amongst them ``subject``" -" (the principal for which the certificate was issued) and ``issuer`` (the " +"was validated, it returns a dict with several keys, amongst them ``subject`` " +"(the principal for which the certificate was issued) and ``issuer`` (the " "principal issuing the certificate). If a certificate contains an instance " "of the *Subject Alternative Name* extension (see :rfc:`3280`), there will " "also be a ``subjectAltName`` key in the dictionary." @@ -1322,15 +1318,15 @@ msgstr "" #: ../../library/ssl.rst:1224 msgid "" -"To validate a certificate for a particular service, you can use the " -":func:`match_hostname` function." +"To validate a certificate for a particular service, you can use the :func:" +"`match_hostname` function." msgstr "" #: ../../library/ssl.rst:1227 msgid "" "If the ``binary_form`` parameter is :const:`True`, and a certificate was " -"provided, this method returns the DER-encoded form of the entire certificate" -" as a sequence of bytes, or :const:`None` if the peer did not provide a " +"provided, this method returns the DER-encoded form of the entire certificate " +"as a sequence of bytes, or :const:`None` if the peer did not provide a " "certificate. Whether the peer provides a certificate depends on the SSL " "socket's role:" msgstr "" @@ -1344,9 +1340,9 @@ msgstr "" #: ../../library/ssl.rst:1236 msgid "" "for a server SSL socket, the client will only provide a certificate when " -"requested by the server; therefore :meth:`getpeercert` will return " -":const:`None` if you used :const:`CERT_NONE` (rather than " -":const:`CERT_OPTIONAL` or :const:`CERT_REQUIRED`)." +"requested by the server; therefore :meth:`getpeercert` will return :const:" +"`None` if you used :const:`CERT_NONE` (rather than :const:`CERT_OPTIONAL` " +"or :const:`CERT_REQUIRED`)." msgstr "" #: ../../library/ssl.rst:1241 @@ -1362,7 +1358,11 @@ msgid "" "``crlDistributionPoints``, ``caIssuers`` and ``OCSP`` URIs." msgstr "" -#: ../../library/ssl.rst:1252 +#: ../../library/ssl.rst:1250 +msgid "IPv6 address strings no longer have a trailing new line." +msgstr "" + +#: ../../library/ssl.rst:1255 msgid "" "Returns a three-value tuple containing the name of the cipher being used, " "the version of the SSL protocol that defines its use, and the number of " @@ -1370,61 +1370,60 @@ msgid "" "``None``." msgstr "" -#: ../../library/ssl.rst:1258 +#: ../../library/ssl.rst:1261 msgid "" "Return the list of ciphers shared by the client during the handshake. Each " -"entry of the returned list is a three-value tuple containing the name of the" -" cipher, the version of the SSL protocol that defines its use, and the " -"number of secret bits the cipher uses. :meth:`~SSLSocket.shared_ciphers` " -"returns ``None`` if no connection has been established or the socket is a " -"client socket." +"entry of the returned list is a three-value tuple containing the name of the " +"cipher, the version of the SSL protocol that defines its use, and the number " +"of secret bits the cipher uses. :meth:`~SSLSocket.shared_ciphers` returns " +"``None`` if no connection has been established or the socket is a client " +"socket." msgstr "" -#: ../../library/ssl.rst:1269 +#: ../../library/ssl.rst:1272 msgid "" "Return the compression algorithm being used as a string, or ``None`` if the " "connection isn't compressed." msgstr "" -#: ../../library/ssl.rst:1272 +#: ../../library/ssl.rst:1275 msgid "" -"If the higher-level protocol supports its own compression mechanism, you can" -" use :data:`OP_NO_COMPRESSION` to disable SSL-level compression." +"If the higher-level protocol supports its own compression mechanism, you can " +"use :data:`OP_NO_COMPRESSION` to disable SSL-level compression." msgstr "" -#: ../../library/ssl.rst:1279 +#: ../../library/ssl.rst:1282 msgid "" -"Get channel binding data for current connection, as a bytes object. Returns" -" ``None`` if not connected or the handshake has not been completed." +"Get channel binding data for current connection, as a bytes object. Returns " +"``None`` if not connected or the handshake has not been completed." msgstr "" -#: ../../library/ssl.rst:1282 +#: ../../library/ssl.rst:1285 msgid "" -"The *cb_type* parameter allow selection of the desired channel binding type." -" Valid channel binding types are listed in the :data:`CHANNEL_BINDING_TYPES`" -" list. Currently only the 'tls-unique' channel binding, defined by " -":rfc:`5929`, is supported. :exc:`ValueError` will be raised if an " -"unsupported channel binding type is requested." +"The *cb_type* parameter allow selection of the desired channel binding type. " +"Valid channel binding types are listed in the :data:`CHANNEL_BINDING_TYPES` " +"list. Currently only the 'tls-unique' channel binding, defined by :rfc:" +"`5929`, is supported. :exc:`ValueError` will be raised if an unsupported " +"channel binding type is requested." msgstr "" -#: ../../library/ssl.rst:1292 +#: ../../library/ssl.rst:1295 msgid "" -"Return the protocol that was selected during the TLS handshake. If " -":meth:`SSLContext.set_alpn_protocols` was not called, if the other party " -"does not support ALPN, if this socket does not support any of the client's " -"proposed protocols, or if the handshake has not happened yet, ``None`` is " -"returned." +"Return the protocol that was selected during the TLS handshake. If :meth:" +"`SSLContext.set_alpn_protocols` was not called, if the other party does not " +"support ALPN, if this socket does not support any of the client's proposed " +"protocols, or if the handshake has not happened yet, ``None`` is returned." msgstr "" -#: ../../library/ssl.rst:1302 +#: ../../library/ssl.rst:1305 msgid "" "Return the higher-level protocol that was selected during the TLS/SSL " -"handshake. If :meth:`SSLContext.set_npn_protocols` was not called, or if the" -" other party does not support NPN, or if the handshake has not yet happened," -" this will return ``None``." +"handshake. If :meth:`SSLContext.set_npn_protocols` was not called, or if the " +"other party does not support NPN, or if the handshake has not yet happened, " +"this will return ``None``." msgstr "" -#: ../../library/ssl.rst:1311 +#: ../../library/ssl.rst:1314 msgid "" "Performs the SSL shutdown handshake, which removes the TLS layer from the " "underlying socket, and returns the underlying socket object. This can be " @@ -1433,89 +1432,89 @@ msgid "" "other side of the connection, rather than the original socket." msgstr "" -#: ../../library/ssl.rst:1319 +#: ../../library/ssl.rst:1322 msgid "" "Requests post-handshake authentication (PHA) from a TLS 1.3 client. PHA can " "only be initiated for a TLS 1.3 connection from a server-side socket, after " -"the initial TLS handshake and with PHA enabled on both sides, see " -":attr:`SSLContext.post_handshake_auth`." +"the initial TLS handshake and with PHA enabled on both sides, see :attr:" +"`SSLContext.post_handshake_auth`." msgstr "" -#: ../../library/ssl.rst:1324 +#: ../../library/ssl.rst:1327 msgid "" "The method does not perform a cert exchange immediately. The server-side " "sends a CertificateRequest during the next write event and expects the " "client to respond with a certificate on the next read event." msgstr "" -#: ../../library/ssl.rst:1328 +#: ../../library/ssl.rst:1331 msgid "" -"If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an " -":exc:`SSLError` is raised." +"If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:" +"`SSLError` is raised." msgstr "" -#: ../../library/ssl.rst:1332 +#: ../../library/ssl.rst:1335 msgid "" "Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 " "support, the method raises :exc:`NotImplementedError`." msgstr "" -#: ../../library/ssl.rst:1339 +#: ../../library/ssl.rst:1342 msgid "" "Return the actual SSL protocol version negotiated by the connection as a " "string, or ``None`` is no secure connection is established. As of this " -"writing, possible return values include ``\"SSLv2\"``, ``\"SSLv3\"``, " -"``\"TLSv1\"``, ``\"TLSv1.1\"`` and ``\"TLSv1.2\"``. Recent OpenSSL versions " +"writing, possible return values include ``\"SSLv2\"``, ``\"SSLv3\"``, ``" +"\"TLSv1\"``, ``\"TLSv1.1\"`` and ``\"TLSv1.2\"``. Recent OpenSSL versions " "may define more return values." msgstr "" -#: ../../library/ssl.rst:1349 +#: ../../library/ssl.rst:1352 msgid "" -"Returns the number of already decrypted bytes available for read, pending on" -" the connection." +"Returns the number of already decrypted bytes available for read, pending on " +"the connection." msgstr "" -#: ../../library/ssl.rst:1354 +#: ../../library/ssl.rst:1357 msgid "" "The :class:`SSLContext` object this SSL socket is tied to. If the SSL " -"socket was created using the deprecated :func:`wrap_socket` function (rather" -" than :meth:`SSLContext.wrap_socket`), this is a custom context object " +"socket was created using the deprecated :func:`wrap_socket` function (rather " +"than :meth:`SSLContext.wrap_socket`), this is a custom context object " "created for this SSL socket." msgstr "" -#: ../../library/ssl.rst:1363 +#: ../../library/ssl.rst:1366 msgid "" -"A boolean which is ``True`` for server-side sockets and ``False`` for " -"client-side sockets." +"A boolean which is ``True`` for server-side sockets and ``False`` for client-" +"side sockets." msgstr "" -#: ../../library/ssl.rst:1370 +#: ../../library/ssl.rst:1373 msgid "" "Hostname of the server: :class:`str` type, or ``None`` for server-side " "socket or if the hostname was not specified in the constructor." msgstr "" -#: ../../library/ssl.rst:1375 +#: ../../library/ssl.rst:1378 msgid "" "The attribute is now always ASCII text. When ``server_hostname`` is an " "internationalized domain name (IDN), this attribute now stores the A-label " -"form (``\"xn--pythn-mua.org\"``), rather than the U-label form " -"(``\"pythön.org\"``)." +"form (``\"xn--pythn-mua.org\"``), rather than the U-label form (``\"pythön." +"org\"``)." msgstr "" -#: ../../library/ssl.rst:1383 +#: ../../library/ssl.rst:1386 msgid "" "The :class:`SSLSession` for this SSL connection. The session is available " "for client and server side sockets after the TLS handshake has been " -"performed. For client sockets the session can be set before " -":meth:`~SSLSocket.do_handshake` has been called to reuse a session." +"performed. For client sockets the session can be set before :meth:" +"`~SSLSocket.do_handshake` has been called to reuse a session." msgstr "" -#: ../../library/ssl.rst:1396 +#: ../../library/ssl.rst:1399 msgid "SSL Contexts" msgstr "" -#: ../../library/ssl.rst:1400 +#: ../../library/ssl.rst:1403 msgid "" "An SSL context holds various data longer-lived than single SSL connections, " "such as SSL configuration options, certificate(s) and private key(s). It " @@ -1523,258 +1522,246 @@ msgid "" "speed up repeated connections from the same clients." msgstr "" -#: ../../library/ssl.rst:1407 +#: ../../library/ssl.rst:1410 msgid "" "Create a new SSL context. You may pass *protocol* which must be one of the " "``PROTOCOL_*`` constants defined in this module. The parameter specifies " "which version of the SSL protocol to use. Typically, the server chooses a " "particular protocol version, and the client must adapt to the server's " -"choice. Most of the versions are not interoperable with the other versions." -" If not specified, the default is :data:`PROTOCOL_TLS`; it provides the " -"most compatibility with other versions." +"choice. Most of the versions are not interoperable with the other " +"versions. If not specified, the default is :data:`PROTOCOL_TLS`; it " +"provides the most compatibility with other versions." msgstr "" -#: ../../library/ssl.rst:1416 +#: ../../library/ssl.rst:1419 msgid "" "Here's a table showing which versions in a client (down the side) can " "connect to which versions in a server (along the top):" msgstr "" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "*client* / **server**" msgstr "" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "**SSLv2**" msgstr "**SSLv2**" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "**SSLv3**" msgstr "" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "**TLS** [3]_" msgstr "" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "**TLSv1**" msgstr "" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "**TLSv1.1**" msgstr "" -#: ../../library/ssl.rst:1422 +#: ../../library/ssl.rst:1425 msgid "**TLSv1.2**" msgstr "" -#: ../../library/ssl.rst:1424 +#: ../../library/ssl.rst:1427 msgid "*SSLv2*" msgstr "" -#: ../../library/ssl.rst:1424 ../../library/ssl.rst:1425 -#: ../../library/ssl.rst:1426 ../../library/ssl.rst:1426 -#: ../../library/ssl.rst:1426 ../../library/ssl.rst:1426 -#: ../../library/ssl.rst:1427 ../../library/ssl.rst:1427 -#: ../../library/ssl.rst:1428 ../../library/ssl.rst:1428 -#: ../../library/ssl.rst:1429 ../../library/ssl.rst:1429 +#: ../../library/ssl.rst:1427 ../../library/ssl.rst:1428 +#: ../../library/ssl.rst:1429 ../../library/ssl.rst:1430 +#: ../../library/ssl.rst:1431 ../../library/ssl.rst:1432 msgid "yes" msgstr "sim" -#: ../../library/ssl.rst:1424 ../../library/ssl.rst:1424 -#: ../../library/ssl.rst:1424 ../../library/ssl.rst:1424 -#: ../../library/ssl.rst:1425 ../../library/ssl.rst:1425 -#: ../../library/ssl.rst:1425 ../../library/ssl.rst:1425 -#: ../../library/ssl.rst:1427 ../../library/ssl.rst:1427 -#: ../../library/ssl.rst:1427 ../../library/ssl.rst:1427 -#: ../../library/ssl.rst:1428 ../../library/ssl.rst:1428 -#: ../../library/ssl.rst:1428 ../../library/ssl.rst:1428 -#: ../../library/ssl.rst:1429 ../../library/ssl.rst:1429 -#: ../../library/ssl.rst:1429 ../../library/ssl.rst:1429 +#: ../../library/ssl.rst:1427 ../../library/ssl.rst:1428 +#: ../../library/ssl.rst:1430 ../../library/ssl.rst:1431 +#: ../../library/ssl.rst:1432 msgid "no" msgstr "não" -#: ../../library/ssl.rst:1424 ../../library/ssl.rst:1426 +#: ../../library/ssl.rst:1427 ../../library/ssl.rst:1429 msgid "no [1]_" msgstr "" -#: ../../library/ssl.rst:1425 +#: ../../library/ssl.rst:1428 msgid "*SSLv3*" msgstr "" -#: ../../library/ssl.rst:1425 ../../library/ssl.rst:1426 +#: ../../library/ssl.rst:1428 ../../library/ssl.rst:1429 msgid "no [2]_" msgstr "" -#: ../../library/ssl.rst:1426 +#: ../../library/ssl.rst:1429 msgid "*TLS* (*SSLv23*) [3]_" msgstr "" -#: ../../library/ssl.rst:1427 +#: ../../library/ssl.rst:1430 msgid "*TLSv1*" msgstr "" -#: ../../library/ssl.rst:1428 +#: ../../library/ssl.rst:1431 msgid "*TLSv1.1*" msgstr "" -#: ../../library/ssl.rst:1429 +#: ../../library/ssl.rst:1432 msgid "*TLSv1.2*" msgstr "" -#: ../../library/ssl.rst:1432 +#: ../../library/ssl.rst:1435 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../library/ssl.rst:1433 -msgid "" -":class:`SSLContext` disables SSLv2 with :data:`OP_NO_SSLv2` by default." +#: ../../library/ssl.rst:1436 +msgid ":class:`SSLContext` disables SSLv2 with :data:`OP_NO_SSLv2` by default." msgstr "" -#: ../../library/ssl.rst:1434 -msgid "" -":class:`SSLContext` disables SSLv3 with :data:`OP_NO_SSLv3` by default." +#: ../../library/ssl.rst:1437 +msgid ":class:`SSLContext` disables SSLv3 with :data:`OP_NO_SSLv3` by default." msgstr "" -#: ../../library/ssl.rst:1435 +#: ../../library/ssl.rst:1438 msgid "" "TLS 1.3 protocol will be available with :data:`PROTOCOL_TLS` in OpenSSL >= " "1.1.1. There is no dedicated PROTOCOL constant for just TLS 1.3." msgstr "" -#: ../../library/ssl.rst:1440 +#: ../../library/ssl.rst:1443 msgid "" ":func:`create_default_context` lets the :mod:`ssl` module choose security " "settings for a given purpose." msgstr "" -#: ../../library/ssl.rst:1445 +#: ../../library/ssl.rst:1448 msgid "" -"The context is created with secure default values. The options " -":data:`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, " -":data:`OP_SINGLE_DH_USE`, :data:`OP_SINGLE_ECDH_USE`, :data:`OP_NO_SSLv2` " -"(except for :data:`PROTOCOL_SSLv2`), and :data:`OP_NO_SSLv3` (except for " -":data:`PROTOCOL_SSLv3`) are set by default. The initial cipher suite list " -"contains only ``HIGH`` ciphers, no ``NULL`` ciphers and no ``MD5`` ciphers " -"(except for :data:`PROTOCOL_SSLv2`)." +"The context is created with secure default values. The options :data:" +"`OP_NO_COMPRESSION`, :data:`OP_CIPHER_SERVER_PREFERENCE`, :data:" +"`OP_SINGLE_DH_USE`, :data:`OP_SINGLE_ECDH_USE`, :data:`OP_NO_SSLv2` (except " +"for :data:`PROTOCOL_SSLv2`), and :data:`OP_NO_SSLv3` (except for :data:" +"`PROTOCOL_SSLv3`) are set by default. The initial cipher suite list contains " +"only ``HIGH`` ciphers, no ``NULL`` ciphers and no ``MD5`` ciphers (except " +"for :data:`PROTOCOL_SSLv2`)." msgstr "" -#: ../../library/ssl.rst:1455 +#: ../../library/ssl.rst:1458 msgid ":class:`SSLContext` objects have the following methods and attributes:" msgstr "" -#: ../../library/ssl.rst:1459 +#: ../../library/ssl.rst:1462 msgid "" -"Get statistics about quantities of loaded X.509 certificates, count of X.509" -" certificates flagged as CA certificates and certificate revocation lists as" -" dictionary." +"Get statistics about quantities of loaded X.509 certificates, count of X.509 " +"certificates flagged as CA certificates and certificate revocation lists as " +"dictionary." msgstr "" -#: ../../library/ssl.rst:1463 +#: ../../library/ssl.rst:1466 msgid "Example for a context with one CA cert and one other cert::" msgstr "" -#: ../../library/ssl.rst:1473 +#: ../../library/ssl.rst:1476 msgid "" -"Load a private key and the corresponding certificate. The *certfile* string" -" must be the path to a single file in PEM format containing the certificate " +"Load a private key and the corresponding certificate. The *certfile* string " +"must be the path to a single file in PEM format containing the certificate " "as well as any number of CA certificates needed to establish the " -"certificate's authenticity. The *keyfile* string, if present, must point to" -" a file containing the private key in. Otherwise the private key will be " +"certificate's authenticity. The *keyfile* string, if present, must point to " +"a file containing the private key in. Otherwise the private key will be " "taken from *certfile* as well. See the discussion of :ref:`ssl-" "certificates` for more information on how the certificate is stored in the " "*certfile*." msgstr "" -#: ../../library/ssl.rst:1482 +#: ../../library/ssl.rst:1485 msgid "" "The *password* argument may be a function to call to get the password for " "decrypting the private key. It will only be called if the private key is " -"encrypted and a password is necessary. It will be called with no arguments," -" and it should return a string, bytes, or bytearray. If the return value is" -" a string it will be encoded as UTF-8 before using it to decrypt the key. " +"encrypted and a password is necessary. It will be called with no arguments, " +"and it should return a string, bytes, or bytearray. If the return value is " +"a string it will be encoded as UTF-8 before using it to decrypt the key. " "Alternatively a string, bytes, or bytearray value may be supplied directly " "as the *password* argument. It will be ignored if the private key is not " "encrypted and no password is needed." msgstr "" -#: ../../library/ssl.rst:1491 +#: ../../library/ssl.rst:1494 msgid "" "If the *password* argument is not specified and a password is required, " "OpenSSL's built-in password prompting mechanism will be used to " "interactively prompt the user for a password." msgstr "" -#: ../../library/ssl.rst:1495 +#: ../../library/ssl.rst:1498 msgid "" "An :class:`SSLError` is raised if the private key doesn't match with the " "certificate." msgstr "" -#: ../../library/ssl.rst:1498 +#: ../../library/ssl.rst:1501 msgid "New optional argument *password*." msgstr "" -#: ../../library/ssl.rst:1503 +#: ../../library/ssl.rst:1506 msgid "" "Load a set of default \"certification authority\" (CA) certificates from " -"default locations. On Windows it loads CA certs from the ``CA`` and ``ROOT``" -" system stores. On other systems it calls " -":meth:`SSLContext.set_default_verify_paths`. In the future the method may " -"load CA certificates from other locations, too." +"default locations. On Windows it loads CA certs from the ``CA`` and ``ROOT`` " +"system stores. On other systems it calls :meth:`SSLContext." +"set_default_verify_paths`. In the future the method may load CA certificates " +"from other locations, too." msgstr "" -#: ../../library/ssl.rst:1509 +#: ../../library/ssl.rst:1512 msgid "" "The *purpose* flag specifies what kind of CA certificates are loaded. The " "default settings :data:`Purpose.SERVER_AUTH` loads certificates, that are " -"flagged and trusted for TLS web server authentication (client side sockets)." -" :data:`Purpose.CLIENT_AUTH` loads CA certificates for client certificate " -"verification on the server side." +"flagged and trusted for TLS web server authentication (client side " +"sockets). :data:`Purpose.CLIENT_AUTH` loads CA certificates for client " +"certificate verification on the server side." msgstr "" -#: ../../library/ssl.rst:1519 +#: ../../library/ssl.rst:1522 msgid "" -"Load a set of \"certification authority\" (CA) certificates used to validate" -" other peers' certificates when :data:`verify_mode` is other than " -":data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified." +"Load a set of \"certification authority\" (CA) certificates used to validate " +"other peers' certificates when :data:`verify_mode` is other than :data:" +"`CERT_NONE`. At least one of *cafile* or *capath* must be specified." msgstr "" -#: ../../library/ssl.rst:1523 +#: ../../library/ssl.rst:1526 msgid "" "This method can also load certification revocation lists (CRLs) in PEM or " "DER format. In order to make use of CRLs, :attr:`SSLContext.verify_flags` " "must be configured properly." msgstr "" -#: ../../library/ssl.rst:1527 +#: ../../library/ssl.rst:1530 msgid "" "The *cafile* string, if present, is the path to a file of concatenated CA " "certificates in PEM format. See the discussion of :ref:`ssl-certificates` " "for more information about how to arrange the certificates in this file." msgstr "" -#: ../../library/ssl.rst:1532 +#: ../../library/ssl.rst:1535 msgid "" "The *capath* string, if present, is the path to a directory containing " -"several CA certificates in PEM format, following an `OpenSSL specific layout" -" " -"`_." +"several CA certificates in PEM format, following an `OpenSSL specific layout " +"`_." msgstr "" -#: ../../library/ssl.rst:1537 +#: ../../library/ssl.rst:1540 msgid "" "The *cadata* object, if present, is either an ASCII string of one or more " "PEM-encoded certificates or a :term:`bytes-like object` of DER-encoded " -"certificates. Like with *capath* extra lines around PEM-encoded certificates" -" are ignored but at least one certificate must be present." +"certificates. Like with *capath* extra lines around PEM-encoded certificates " +"are ignored but at least one certificate must be present." msgstr "" -#: ../../library/ssl.rst:1542 +#: ../../library/ssl.rst:1545 msgid "New optional argument *cadata*" msgstr "" -#: ../../library/ssl.rst:1547 +#: ../../library/ssl.rst:1550 msgid "" "Get a list of loaded \"certification authority\" (CA) certificates. If the " "``binary_form`` parameter is :const:`False` each list entry is a dict like " @@ -1784,27 +1771,27 @@ msgid "" "a SSL connection." msgstr "" -#: ../../library/ssl.rst:1555 +#: ../../library/ssl.rst:1558 msgid "" "Certificates in a capath directory aren't loaded unless they have been used " "at least once." msgstr "" -#: ../../library/ssl.rst:1562 +#: ../../library/ssl.rst:1565 msgid "" -"Get a list of enabled ciphers. The list is in order of cipher priority. See " -":meth:`SSLContext.set_ciphers`." +"Get a list of enabled ciphers. The list is in order of cipher priority. See :" +"meth:`SSLContext.set_ciphers`." msgstr "" -#: ../../library/ssl.rst:1585 +#: ../../library/ssl.rst:1588 msgid "On OpenSSL 1.1 and newer the cipher dict contains additional fields::" msgstr "" -#: ../../library/ssl.rst:1614 +#: ../../library/ssl.rst:1617 msgid ":ref:`Availability `: OpenSSL 1.0.2+." msgstr "" -#: ../../library/ssl.rst:1619 +#: ../../library/ssl.rst:1622 msgid "" "Load a set of default \"certification authority\" (CA) certificates from a " "filesystem path defined when building the OpenSSL library. Unfortunately, " @@ -1814,28 +1801,28 @@ msgid "" "configured properly." msgstr "" -#: ../../library/ssl.rst:1628 +#: ../../library/ssl.rst:1631 msgid "" "Set the available ciphers for sockets created with this context. It should " -"be a string in the `OpenSSL cipher list format " -"`_. If no cipher " -"can be selected (because compile-time options or other configuration forbids" -" use of all the specified ciphers), an :class:`SSLError` will be raised." +"be a string in the `OpenSSL cipher list format `_. If no cipher can be selected (because " +"compile-time options or other configuration forbids use of all the specified " +"ciphers), an :class:`SSLError` will be raised." msgstr "" -#: ../../library/ssl.rst:1636 +#: ../../library/ssl.rst:1639 msgid "" -"when connected, the :meth:`SSLSocket.cipher` method of SSL sockets will give" -" the currently selected cipher." +"when connected, the :meth:`SSLSocket.cipher` method of SSL sockets will give " +"the currently selected cipher." msgstr "" -#: ../../library/ssl.rst:1639 +#: ../../library/ssl.rst:1642 msgid "" "OpenSSL 1.1.1 has TLS 1.3 cipher suites enabled by default. The suites " "cannot be disabled with :meth:`~SSLContext.set_ciphers`." msgstr "" -#: ../../library/ssl.rst:1644 +#: ../../library/ssl.rst:1647 msgid "" "Specify which protocols the socket should advertise during the SSL/TLS " "handshake. It should be a list of ASCII strings, like ``['http/1.1', " @@ -1845,38 +1832,38 @@ msgid "" "will return the agreed-upon protocol." msgstr "" -#: ../../library/ssl.rst:1651 +#: ../../library/ssl.rst:1654 msgid "" "This method will raise :exc:`NotImplementedError` if :data:`HAS_ALPN` is " -"False." +"``False``." msgstr "" -#: ../../library/ssl.rst:1654 +#: ../../library/ssl.rst:1657 msgid "" "OpenSSL 1.1.0 to 1.1.0e will abort the handshake and raise :exc:`SSLError` " -"when both sides support ALPN but cannot agree on a protocol. 1.1.0f+ behaves" -" like 1.0.2, :meth:`SSLSocket.selected_alpn_protocol` returns None." +"when both sides support ALPN but cannot agree on a protocol. 1.1.0f+ behaves " +"like 1.0.2, :meth:`SSLSocket.selected_alpn_protocol` returns None." msgstr "" -#: ../../library/ssl.rst:1662 +#: ../../library/ssl.rst:1665 msgid "" "Specify which protocols the socket should advertise during the SSL/TLS " "handshake. It should be a list of strings, like ``['http/1.1', 'spdy/2']``, " "ordered by preference. The selection of a protocol will happen during the " "handshake, and will play out according to the `Application Layer Protocol " "Negotiation `_. After a successful handshake, the " -":meth:`SSLSocket.selected_npn_protocol` method will return the agreed-upon " +"Layer_Protocol_Negotiation>`_. After a successful handshake, the :meth:" +"`SSLSocket.selected_npn_protocol` method will return the agreed-upon " "protocol." msgstr "" -#: ../../library/ssl.rst:1670 +#: ../../library/ssl.rst:1673 msgid "" "This method will raise :exc:`NotImplementedError` if :data:`HAS_NPN` is " -"False." +"``False``." msgstr "" -#: ../../library/ssl.rst:1677 +#: ../../library/ssl.rst:1680 msgid "" "Register a callback function that will be called after the TLS Client Hello " "handshake message has been received by the SSL/TLS server when the TLS " @@ -1884,66 +1871,65 @@ msgid "" "mechanism is specified in :rfc:`6066` section 3 - Server Name Indication." msgstr "" -#: ../../library/ssl.rst:1682 +#: ../../library/ssl.rst:1685 msgid "" "Only one callback can be set per ``SSLContext``. If *sni_callback* is set " "to ``None`` then the callback is disabled. Calling this function a " "subsequent time will disable the previously registered callback." msgstr "" -#: ../../library/ssl.rst:1686 +#: ../../library/ssl.rst:1689 msgid "" "The callback function will be called with three arguments; the first being " "the :class:`ssl.SSLSocket`, the second is a string that represents the " -"server name that the client is intending to communicate (or :const:`None` if" -" the TLS Client Hello does not contain a server name) and the third argument" -" is the original :class:`SSLContext`. The server name argument is text. For " -"internationalized domain name, the server name is an IDN A-label (``\"xn" -"--pythn-mua.org\"``)." +"server name that the client is intending to communicate (or :const:`None` if " +"the TLS Client Hello does not contain a server name) and the third argument " +"is the original :class:`SSLContext`. The server name argument is text. For " +"internationalized domain name, the server name is an IDN A-label (``\"xn--" +"pythn-mua.org\"``)." msgstr "" -#: ../../library/ssl.rst:1694 +#: ../../library/ssl.rst:1697 msgid "" -"A typical use of this callback is to change the :class:`ssl.SSLSocket`'s " -":attr:`SSLSocket.context` attribute to a new object of type " -":class:`SSLContext` representing a certificate chain that matches the server" -" name." +"A typical use of this callback is to change the :class:`ssl.SSLSocket`'s :" +"attr:`SSLSocket.context` attribute to a new object of type :class:" +"`SSLContext` representing a certificate chain that matches the server name." msgstr "" -#: ../../library/ssl.rst:1699 +#: ../../library/ssl.rst:1702 msgid "" "Due to the early negotiation phase of the TLS connection, only limited " -"methods and attributes are usable like " -":meth:`SSLSocket.selected_alpn_protocol` and :attr:`SSLSocket.context`. " -":meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.getpeercert`, " -":meth:`SSLSocket.cipher` and :meth:`SSLSocket.compress` methods require that" -" the TLS connection has progressed beyond the TLS Client Hello and therefore" -" will not contain return meaningful values nor can they be called safely." +"methods and attributes are usable like :meth:`SSLSocket." +"selected_alpn_protocol` and :attr:`SSLSocket.context`. :meth:`SSLSocket." +"getpeercert`, :meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.cipher` and :" +"meth:`SSLSocket.compress` methods require that the TLS connection has " +"progressed beyond the TLS Client Hello and therefore will not contain return " +"meaningful values nor can they be called safely." msgstr "" -#: ../../library/ssl.rst:1707 +#: ../../library/ssl.rst:1710 msgid "" "The *sni_callback* function must return ``None`` to allow the TLS " -"negotiation to continue. If a TLS failure is required, a constant " -":const:`ALERT_DESCRIPTION_* ` can be " -"returned. Other return values will result in a TLS fatal error with " -":const:`ALERT_DESCRIPTION_INTERNAL_ERROR`." +"negotiation to continue. If a TLS failure is required, a constant :const:" +"`ALERT_DESCRIPTION_* ` can be returned. " +"Other return values will result in a TLS fatal error with :const:" +"`ALERT_DESCRIPTION_INTERNAL_ERROR`." msgstr "" -#: ../../library/ssl.rst:1713 +#: ../../library/ssl.rst:1716 msgid "" "If an exception is raised from the *sni_callback* function the TLS " -"connection will terminate with a fatal TLS alert message " -":const:`ALERT_DESCRIPTION_HANDSHAKE_FAILURE`." +"connection will terminate with a fatal TLS alert message :const:" +"`ALERT_DESCRIPTION_HANDSHAKE_FAILURE`." msgstr "" -#: ../../library/ssl.rst:1717 +#: ../../library/ssl.rst:1720 msgid "" -"This method will raise :exc:`NotImplementedError` if the OpenSSL library had" -" OPENSSL_NO_TLSEXT defined when it was built." +"This method will raise :exc:`NotImplementedError` if the OpenSSL library had " +"OPENSSL_NO_TLSEXT defined when it was built." msgstr "" -#: ../../library/ssl.rst:1724 +#: ../../library/ssl.rst:1727 msgid "" "This is a legacy API retained for backwards compatibility. When possible, " "you should use :attr:`sni_callback` instead. The given " @@ -1952,29 +1938,29 @@ msgid "" "*server_name_callback* receives a decoded U-label (``\"pythön.org\"``)." msgstr "" -#: ../../library/ssl.rst:1730 +#: ../../library/ssl.rst:1733 msgid "" "If there is an decoding error on the server name, the TLS connection will " "terminate with an :const:`ALERT_DESCRIPTION_INTERNAL_ERROR` fatal TLS alert " "message to the client." msgstr "" -#: ../../library/ssl.rst:1738 +#: ../../library/ssl.rst:1741 msgid "" "Load the key generation parameters for Diffie-Hellman (DH) key exchange. " "Using DH key exchange improves forward secrecy at the expense of " -"computational resources (both on the server and on the client). The *dhfile*" -" parameter should be the path to a file containing DH parameters in PEM " +"computational resources (both on the server and on the client). The *dhfile* " +"parameter should be the path to a file containing DH parameters in PEM " "format." msgstr "" -#: ../../library/ssl.rst:1744 +#: ../../library/ssl.rst:1747 msgid "" -"This setting doesn't apply to client sockets. You can also use the " -":data:`OP_SINGLE_DH_USE` option to further improve security." +"This setting doesn't apply to client sockets. You can also use the :data:" +"`OP_SINGLE_DH_USE` option to further improve security." msgstr "" -#: ../../library/ssl.rst:1751 +#: ../../library/ssl.rst:1754 msgid "" "Set the curve name for Elliptic Curve-based Diffie-Hellman (ECDH) key " "exchange. ECDH is significantly faster than regular DH while arguably as " @@ -1983,53 +1969,52 @@ msgid "" "curve." msgstr "" -#: ../../library/ssl.rst:1757 +#: ../../library/ssl.rst:1760 msgid "" -"This setting doesn't apply to client sockets. You can also use the " -":data:`OP_SINGLE_ECDH_USE` option to further improve security." +"This setting doesn't apply to client sockets. You can also use the :data:" +"`OP_SINGLE_ECDH_USE` option to further improve security." msgstr "" -#: ../../library/ssl.rst:1760 +#: ../../library/ssl.rst:1763 msgid "This method is not available if :data:`HAS_ECDH` is ``False``." msgstr "" -#: ../../library/ssl.rst:1765 +#: ../../library/ssl.rst:1768 msgid "" -"`SSL/TLS & Perfect Forward Secrecy `_" +"`SSL/TLS & Perfect Forward Secrecy `_" msgstr "" -#: ../../library/ssl.rst:1766 +#: ../../library/ssl.rst:1769 msgid "Vincent Bernat." msgstr "" -#: ../../library/ssl.rst:1772 +#: ../../library/ssl.rst:1775 msgid "" -"Wrap an existing Python socket *sock* and return an instance of " -":attr:`SSLContext.sslsocket_class` (default :class:`SSLSocket`). The " -"returned SSL socket is tied to the context, its settings and certificates. " -"*sock* must be a :data:`~socket.SOCK_STREAM` socket; other socket types are " -"unsupported." +"Wrap an existing Python socket *sock* and return an instance of :attr:" +"`SSLContext.sslsocket_class` (default :class:`SSLSocket`). The returned SSL " +"socket is tied to the context, its settings and certificates. *sock* must be " +"a :data:`~socket.SOCK_STREAM` socket; other socket types are unsupported." msgstr "" -#: ../../library/ssl.rst:1778 +#: ../../library/ssl.rst:1781 msgid "" "The parameter ``server_side`` is a boolean which identifies whether server-" "side or client-side behavior is desired from this socket." msgstr "" -#: ../../library/ssl.rst:1781 +#: ../../library/ssl.rst:1784 msgid "" -"For client-side sockets, the context construction is lazy; if the underlying" -" socket isn't connected yet, the context construction will be performed " +"For client-side sockets, the context construction is lazy; if the underlying " +"socket isn't connected yet, the context construction will be performed " "after :meth:`connect` is called on the socket. For server-side sockets, if " "the socket has no remote peer, it is assumed to be a listening socket, and " "the server-side SSL wrapping is automatically performed on client " -"connections accepted via the :meth:`accept` method. The method may raise " -":exc:`SSLError`." +"connections accepted via the :meth:`accept` method. The method may raise :" +"exc:`SSLError`." msgstr "" -#: ../../library/ssl.rst:1789 +#: ../../library/ssl.rst:1792 msgid "" "On client connections, the optional parameter *server_hostname* specifies " "the hostname of the service which we are connecting to. This allows a " @@ -2038,81 +2023,81 @@ msgid "" "*server_hostname* will raise a :exc:`ValueError` if *server_side* is true." msgstr "" -#: ../../library/ssl.rst:1795 +#: ../../library/ssl.rst:1798 msgid "" "The parameter ``do_handshake_on_connect`` specifies whether to do the SSL " -"handshake automatically after doing a :meth:`socket.connect`, or whether the" -" application program will call it explicitly, by invoking the " -":meth:`SSLSocket.do_handshake` method. Calling " -":meth:`SSLSocket.do_handshake` explicitly gives the program control over the" -" blocking behavior of the socket I/O involved in the handshake." +"handshake automatically after doing a :meth:`socket.connect`, or whether the " +"application program will call it explicitly, by invoking the :meth:" +"`SSLSocket.do_handshake` method. Calling :meth:`SSLSocket.do_handshake` " +"explicitly gives the program control over the blocking behavior of the " +"socket I/O involved in the handshake." msgstr "" -#: ../../library/ssl.rst:1802 +#: ../../library/ssl.rst:1805 msgid "" -"The parameter ``suppress_ragged_eofs`` specifies how the " -":meth:`SSLSocket.recv` method should signal unexpected EOF from the other " -"end of the connection. If specified as :const:`True` (the default), it " -"returns a normal EOF (an empty bytes object) in response to unexpected EOF " -"errors raised from the underlying socket; if :const:`False`, it will raise " -"the exceptions back to the caller." +"The parameter ``suppress_ragged_eofs`` specifies how the :meth:`SSLSocket." +"recv` method should signal unexpected EOF from the other end of the " +"connection. If specified as :const:`True` (the default), it returns a " +"normal EOF (an empty bytes object) in response to unexpected EOF errors " +"raised from the underlying socket; if :const:`False`, it will raise the " +"exceptions back to the caller." msgstr "" -#: ../../library/ssl.rst:1809 +#: ../../library/ssl.rst:1812 msgid "*session*, see :attr:`~SSLSocket.session`." msgstr "" -#: ../../library/ssl.rst:1811 +#: ../../library/ssl.rst:1814 msgid "" "Always allow a server_hostname to be passed, even if OpenSSL does not have " "SNI." msgstr "" -#: ../../library/ssl.rst:1815 ../../library/ssl.rst:1841 +#: ../../library/ssl.rst:1818 ../../library/ssl.rst:1844 msgid "*session* argument was added." msgstr "" -#: ../../library/ssl.rst:1818 +#: ../../library/ssl.rst:1821 msgid "" -"The method returns on instance of :attr:`SSLContext.sslsocket_class` instead" -" of hard-coded :class:`SSLSocket`." +"The method returns on instance of :attr:`SSLContext.sslsocket_class` instead " +"of hard-coded :class:`SSLSocket`." msgstr "" -#: ../../library/ssl.rst:1824 +#: ../../library/ssl.rst:1827 msgid "" -"The return type of :meth:`SSLContext.wrap_socket`, defaults to " -":class:`SSLSocket`. The attribute can be overridden on instance of class in " -"order to return a custom subclass of :class:`SSLSocket`." +"The return type of :meth:`SSLContext.wrap_socket`, defaults to :class:" +"`SSLSocket`. The attribute can be overridden on instance of class in order " +"to return a custom subclass of :class:`SSLSocket`." msgstr "" -#: ../../library/ssl.rst:1833 +#: ../../library/ssl.rst:1836 msgid "" -"Wrap the BIO objects *incoming* and *outgoing* and return an instance of " -":attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL " +"Wrap the BIO objects *incoming* and *outgoing* and return an instance of :" +"attr:`SSLContext.sslobject_class` (default :class:`SSLObject`). The SSL " "routines will read input data from the incoming BIO and write data to the " "outgoing BIO." msgstr "" -#: ../../library/ssl.rst:1838 +#: ../../library/ssl.rst:1841 msgid "" "The *server_side*, *server_hostname* and *session* parameters have the same " "meaning as in :meth:`SSLContext.wrap_socket`." msgstr "" -#: ../../library/ssl.rst:1844 +#: ../../library/ssl.rst:1847 msgid "" -"The method returns on instance of :attr:`SSLContext.sslobject_class` instead" -" of hard-coded :class:`SSLObject`." +"The method returns on instance of :attr:`SSLContext.sslobject_class` instead " +"of hard-coded :class:`SSLObject`." msgstr "" -#: ../../library/ssl.rst:1850 +#: ../../library/ssl.rst:1853 msgid "" -"The return type of :meth:`SSLContext.wrap_bio`, defaults to " -":class:`SSLObject`. The attribute can be overridden on instance of class in " -"order to return a custom subclass of :class:`SSLObject`." +"The return type of :meth:`SSLContext.wrap_bio`, defaults to :class:" +"`SSLObject`. The attribute can be overridden on instance of class in order " +"to return a custom subclass of :class:`SSLObject`." msgstr "" -#: ../../library/ssl.rst:1858 +#: ../../library/ssl.rst:1861 msgid "" "Get statistics about the SSL sessions created or managed by this context. A " "dictionary is returned which maps the names of each `piece of information " @@ -2121,82 +2106,81 @@ msgid "" "misses in the session cache since the context was created::" msgstr "" -#: ../../library/ssl.rst:1869 +#: ../../library/ssl.rst:1872 msgid "" -"Whether to match the peer cert's hostname with :func:`match_hostname` in " -":meth:`SSLSocket.do_handshake`. The context's " -":attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or " -":data:`CERT_REQUIRED`, and you must pass *server_hostname* to " -":meth:`~SSLContext.wrap_socket` in order to match the hostname. Enabling " -"hostname checking automatically sets :attr:`~SSLContext.verify_mode` from " -":data:`CERT_NONE` to :data:`CERT_REQUIRED`. It cannot be set back to " -":data:`CERT_NONE` as long as hostname checking is enabled. The " -":data:`PROTOCOL_TLS_CLIENT` protocol enables hostname checking by default. " -"With other protocols, hostname checking must be enabled explicitly." +"Whether to match the peer cert's hostname with :func:`match_hostname` in :" +"meth:`SSLSocket.do_handshake`. The context's :attr:`~SSLContext.verify_mode` " +"must be set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, and you must " +"pass *server_hostname* to :meth:`~SSLContext.wrap_socket` in order to match " +"the hostname. Enabling hostname checking automatically sets :attr:" +"`~SSLContext.verify_mode` from :data:`CERT_NONE` to :data:`CERT_REQUIRED`. " +"It cannot be set back to :data:`CERT_NONE` as long as hostname checking is " +"enabled. The :data:`PROTOCOL_TLS_CLIENT` protocol enables hostname checking " +"by default. With other protocols, hostname checking must be enabled " +"explicitly." msgstr "" -#: ../../library/ssl.rst:1897 +#: ../../library/ssl.rst:1900 msgid "" -":attr:`~SSLContext.verify_mode` is now automatically changed to " -":data:`CERT_REQUIRED` when hostname checking is enabled and " -":attr:`~SSLContext.verify_mode` is :data:`CERT_NONE`. Previously the same " -"operation would have failed with a :exc:`ValueError`." +":attr:`~SSLContext.verify_mode` is now automatically changed to :data:" +"`CERT_REQUIRED` when hostname checking is enabled and :attr:`~SSLContext." +"verify_mode` is :data:`CERT_NONE`. Previously the same operation would have " +"failed with a :exc:`ValueError`." msgstr "" -#: ../../library/ssl.rst:1904 +#: ../../library/ssl.rst:1907 msgid "This features requires OpenSSL 0.9.8f or newer." msgstr "" -#: ../../library/ssl.rst:1908 +#: ../../library/ssl.rst:1911 msgid "" "A :class:`TLSVersion` enum member representing the highest supported TLS " "version. The value defaults to :attr:`TLSVersion.MAXIMUM_SUPPORTED`. The " -"attribute is read-only for protocols other than :attr:`PROTOCOL_TLS`, " -":attr:`PROTOCOL_TLS_CLIENT`, and :attr:`PROTOCOL_TLS_SERVER`." +"attribute is read-only for protocols other than :attr:`PROTOCOL_TLS`, :attr:" +"`PROTOCOL_TLS_CLIENT`, and :attr:`PROTOCOL_TLS_SERVER`." msgstr "" -#: ../../library/ssl.rst:1913 +#: ../../library/ssl.rst:1916 msgid "" -"The attributes :attr:`~SSLContext.maximum_version`, " -":attr:`~SSLContext.minimum_version` and :attr:`SSLContext.options` all " -"affect the supported SSL and TLS versions of the context. The implementation" -" does not prevent invalid combination. For example a context with " -":attr:`OP_NO_TLSv1_2` in :attr:`~SSLContext.options` and " -":attr:`~SSLContext.maximum_version` set to :attr:`TLSVersion.TLSv1_2` will " -"not be able to establish a TLS 1.2 connection." +"The attributes :attr:`~SSLContext.maximum_version`, :attr:`~SSLContext." +"minimum_version` and :attr:`SSLContext.options` all affect the supported SSL " +"and TLS versions of the context. The implementation does not prevent invalid " +"combination. For example a context with :attr:`OP_NO_TLSv1_2` in :attr:" +"`~SSLContext.options` and :attr:`~SSLContext.maximum_version` set to :attr:" +"`TLSVersion.TLSv1_2` will not be able to establish a TLS 1.2 connection." msgstr "" -#: ../../library/ssl.rst:1924 ../../library/ssl.rst:1936 +#: ../../library/ssl.rst:1927 ../../library/ssl.rst:1939 msgid "" "This attribute is not available unless the ssl module is compiled with " "OpenSSL 1.1.0g or newer." msgstr "" -#: ../../library/ssl.rst:1931 +#: ../../library/ssl.rst:1934 msgid "" "Like :attr:`SSLContext.maximum_version` except it is the lowest supported " "version or :attr:`TLSVersion.MINIMUM_SUPPORTED`." msgstr "" -#: ../../library/ssl.rst:1943 +#: ../../library/ssl.rst:1946 msgid "" "An integer representing the set of SSL options enabled on this context. The " -"default value is :data:`OP_ALL`, but you can specify other options such as " -":data:`OP_NO_SSLv2` by ORing them together." +"default value is :data:`OP_ALL`, but you can specify other options such as :" +"data:`OP_NO_SSLv2` by ORing them together." msgstr "" -#: ../../library/ssl.rst:1948 +#: ../../library/ssl.rst:1951 msgid "" "With versions of OpenSSL older than 0.9.8m, it is only possible to set " -"options, not to clear them. Attempting to clear an option (by resetting the" -" corresponding bits) will raise a :exc:`ValueError`." +"options, not to clear them. Attempting to clear an option (by resetting the " +"corresponding bits) will raise a :exc:`ValueError`." msgstr "" -#: ../../library/ssl.rst:1952 +#: ../../library/ssl.rst:1955 msgid ":attr:`SSLContext.options` returns :class:`Options` flags:" msgstr "" -#: ../../library/ssl.rst:1960 +#: ../../library/ssl.rst:1963 msgid "" "Enable TLS 1.3 post-handshake client authentication. Post-handshake auth is " "disabled by default and a server can only request a TLS client certificate " @@ -2204,121 +2188,120 @@ msgid "" "client certificate at any time after the handshake." msgstr "" -#: ../../library/ssl.rst:1965 +#: ../../library/ssl.rst:1968 msgid "" "When enabled on client-side sockets, the client signals the server that it " "supports post-handshake authentication." msgstr "" -#: ../../library/ssl.rst:1968 +#: ../../library/ssl.rst:1971 msgid "" "When enabled on server-side sockets, :attr:`SSLContext.verify_mode` must be " "set to :data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`, too. The actual " -"client cert exchange is delayed until " -":meth:`SSLSocket.verify_client_post_handshake` is called and some I/O is " -"performed." +"client cert exchange is delayed until :meth:`SSLSocket." +"verify_client_post_handshake` is called and some I/O is performed." msgstr "" -#: ../../library/ssl.rst:1975 +#: ../../library/ssl.rst:1978 msgid "" "Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 " "support, the property value is None and can't be modified" msgstr "" -#: ../../library/ssl.rst:1982 +#: ../../library/ssl.rst:1985 msgid "" "The protocol version chosen when constructing the context. This attribute " "is read-only." msgstr "" -#: ../../library/ssl.rst:1987 +#: ../../library/ssl.rst:1990 msgid "" "Whether :attr:`~SSLContext.check_hostname` falls back to verify the cert's " "subject common name in the absence of a subject alternative name extension " "(default: true)." msgstr "" -#: ../../library/ssl.rst:1992 +#: ../../library/ssl.rst:1995 msgid "Only writeable with OpenSSL 1.1.0 or higher." msgstr "" -#: ../../library/ssl.rst:1998 +#: ../../library/ssl.rst:2001 msgid "" -"The flags for certificate verification operations. You can set flags like " -":data:`VERIFY_CRL_CHECK_LEAF` by ORing them together. By default OpenSSL " -"does neither require nor verify certificate revocation lists (CRLs). " -"Available only with openssl version 0.9.8+." +"The flags for certificate verification operations. You can set flags like :" +"data:`VERIFY_CRL_CHECK_LEAF` by ORing them together. By default OpenSSL does " +"neither require nor verify certificate revocation lists (CRLs). Available " +"only with openssl version 0.9.8+." msgstr "" -#: ../../library/ssl.rst:2005 +#: ../../library/ssl.rst:2008 msgid ":attr:`SSLContext.verify_flags` returns :class:`VerifyFlags` flags:" msgstr "" -#: ../../library/ssl.rst:2013 +#: ../../library/ssl.rst:2016 msgid "" "Whether to try to verify other peers' certificates and how to behave if " -"verification fails. This attribute must be one of :data:`CERT_NONE`, " -":data:`CERT_OPTIONAL` or :data:`CERT_REQUIRED`." +"verification fails. This attribute must be one of :data:`CERT_NONE`, :data:" +"`CERT_OPTIONAL` or :data:`CERT_REQUIRED`." msgstr "" -#: ../../library/ssl.rst:2017 +#: ../../library/ssl.rst:2020 msgid ":attr:`SSLContext.verify_mode` returns :class:`VerifyMode` enum:" msgstr "" -#: ../../library/ssl.rst:2030 +#: ../../library/ssl.rst:2033 msgid "Certificates" msgstr "Certificados" -#: ../../library/ssl.rst:2032 +#: ../../library/ssl.rst:2035 msgid "" "Certificates in general are part of a public-key / private-key system. In " "this system, each *principal*, (which may be a machine, or a person, or an " -"organization) is assigned a unique two-part encryption key. One part of the" -" key is public, and is called the *public key*; the other part is kept " -"secret, and is called the *private key*. The two parts are related, in that" -" if you encrypt a message with one of the parts, you can decrypt it with the" -" other part, and **only** with the other part." +"organization) is assigned a unique two-part encryption key. One part of the " +"key is public, and is called the *public key*; the other part is kept " +"secret, and is called the *private key*. The two parts are related, in that " +"if you encrypt a message with one of the parts, you can decrypt it with the " +"other part, and **only** with the other part." msgstr "" -#: ../../library/ssl.rst:2040 +#: ../../library/ssl.rst:2043 msgid "" "A certificate contains information about two principals. It contains the " "name of a *subject*, and the subject's public key. It also contains a " "statement by a second principal, the *issuer*, that the subject is who they " -"claim to be, and that this is indeed the subject's public key. The issuer's" -" statement is signed with the issuer's private key, which only the issuer " +"claim to be, and that this is indeed the subject's public key. The issuer's " +"statement is signed with the issuer's private key, which only the issuer " "knows. However, anyone can verify the issuer's statement by finding the " "issuer's public key, decrypting the statement with it, and comparing it to " "the other information in the certificate. The certificate also contains " -"information about the time period over which it is valid. This is expressed" -" as two fields, called \"notBefore\" and \"notAfter\"." +"information about the time period over which it is valid. This is expressed " +"as two fields, called \"notBefore\" and \"notAfter\"." msgstr "" -#: ../../library/ssl.rst:2050 +#: ../../library/ssl.rst:2053 msgid "" "In the Python use of certificates, a client or server can use a certificate " "to prove who they are. The other side of a network connection can also be " "required to produce a certificate, and that certificate can be validated to " -"the satisfaction of the client or server that requires such validation. The" -" connection attempt can be set to raise an exception if the validation " -"fails. Validation is done automatically, by the underlying OpenSSL " -"framework; the application need not concern itself with its mechanics. But " -"the application does usually need to provide sets of certificates to allow " -"this process to take place." +"the satisfaction of the client or server that requires such validation. The " +"connection attempt can be set to raise an exception if the validation fails. " +"Validation is done automatically, by the underlying OpenSSL framework; the " +"application need not concern itself with its mechanics. But the application " +"does usually need to provide sets of certificates to allow this process to " +"take place." msgstr "" -#: ../../library/ssl.rst:2060 +#: ../../library/ssl.rst:2063 msgid "" -"Python uses files to contain certificates. They should be formatted as " -"\"PEM\" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a " -"header line and a footer line::" +"Python uses files to contain certificates. They should be formatted as \"PEM" +"\" (see :rfc:`1422`), which is a base-64 encoded form wrapped with a header " +"line and a footer line::" msgstr "" -#: ../../library/ssl.rst:2069 +#: ../../library/ssl.rst:2072 msgid "Certificate chains" msgstr "" -#: ../../library/ssl.rst:2071 +#: ../../library/ssl.rst:2074 msgid "" "The Python files which contain certificates can contain a sequence of " "certificates, sometimes called a *certificate chain*. This chain should " @@ -2330,135 +2313,135 @@ msgid "" "certificate*. The certificates should just be concatenated together in the " "certificate file. For example, suppose we had a three certificate chain, " "from our server certificate to the certificate of the certification " -"authority that signed our server certificate, to the root certificate of the" -" agency which issued the certification authority's certificate::" +"authority that signed our server certificate, to the root certificate of the " +"agency which issued the certification authority's certificate::" msgstr "" -#: ../../library/ssl.rst:2095 +#: ../../library/ssl.rst:2098 msgid "CA certificates" msgstr "" -#: ../../library/ssl.rst:2097 +#: ../../library/ssl.rst:2100 msgid "" -"If you are going to require validation of the other side of the connection's" -" certificate, you need to provide a \"CA certs\" file, filled with the " +"If you are going to require validation of the other side of the connection's " +"certificate, you need to provide a \"CA certs\" file, filled with the " "certificate chains for each issuer you are willing to trust. Again, this " "file just contains these chains concatenated together. For validation, " "Python will use the first chain it finds in the file which matches. The " -"platform's certificates file can be used by calling " -":meth:`SSLContext.load_default_certs`, this is done automatically with " -":func:`.create_default_context`." +"platform's certificates file can be used by calling :meth:`SSLContext." +"load_default_certs`, this is done automatically with :func:`." +"create_default_context`." msgstr "" -#: ../../library/ssl.rst:2106 +#: ../../library/ssl.rst:2109 msgid "Combined key and certificate" msgstr "" -#: ../../library/ssl.rst:2108 +#: ../../library/ssl.rst:2111 msgid "" -"Often the private key is stored in the same file as the certificate; in this" -" case, only the ``certfile`` parameter to :meth:`SSLContext.load_cert_chain`" -" and :func:`wrap_socket` needs to be passed. If the private key is stored " +"Often the private key is stored in the same file as the certificate; in this " +"case, only the ``certfile`` parameter to :meth:`SSLContext.load_cert_chain` " +"and :func:`wrap_socket` needs to be passed. If the private key is stored " "with the certificate, it should come before the first certificate in the " "certificate chain::" msgstr "" -#: ../../library/ssl.rst:2122 +#: ../../library/ssl.rst:2125 msgid "Self-signed certificates" msgstr "" -#: ../../library/ssl.rst:2124 +#: ../../library/ssl.rst:2127 msgid "" "If you are going to create a server that provides SSL-encrypted connection " "services, you will need to acquire a certificate for that service. There " -"are many ways of acquiring appropriate certificates, such as buying one from" -" a certification authority. Another common practice is to generate a self-" +"are many ways of acquiring appropriate certificates, such as buying one from " +"a certification authority. Another common practice is to generate a self-" "signed certificate. The simplest way to do this is with the OpenSSL " "package, using something like the following::" msgstr "" -#: ../../library/ssl.rst:2153 +#: ../../library/ssl.rst:2156 msgid "" "The disadvantage of a self-signed certificate is that it is its own root " "certificate, and no one else will have it in their cache of known (and " "trusted) root certificates." msgstr "" -#: ../../library/ssl.rst:2159 +#: ../../library/ssl.rst:2162 msgid "Examples" msgstr "Exemplos" -#: ../../library/ssl.rst:2162 +#: ../../library/ssl.rst:2165 msgid "Testing for SSL support" msgstr "" -#: ../../library/ssl.rst:2164 +#: ../../library/ssl.rst:2167 msgid "" "To test for the presence of SSL support in a Python installation, user code " "should use the following idiom::" msgstr "" -#: ../../library/ssl.rst:2175 +#: ../../library/ssl.rst:2178 msgid "Client-side operation" msgstr "" -#: ../../library/ssl.rst:2177 +#: ../../library/ssl.rst:2180 msgid "" "This example creates a SSL context with the recommended security settings " "for client sockets, including automatic certificate verification::" msgstr "" -#: ../../library/ssl.rst:2182 +#: ../../library/ssl.rst:2185 msgid "" -"If you prefer to tune security settings yourself, you might create a context" -" from scratch (but beware that you might not get the settings right)::" +"If you prefer to tune security settings yourself, you might create a context " +"from scratch (but beware that you might not get the settings right)::" msgstr "" -#: ../../library/ssl.rst:2189 +#: ../../library/ssl.rst:2192 msgid "" "(this snippet assumes your operating system places a bundle of all CA " "certificates in ``/etc/ssl/certs/ca-bundle.crt``; if not, you'll get an " "error and have to adjust the location)" msgstr "" -#: ../../library/ssl.rst:2193 +#: ../../library/ssl.rst:2196 msgid "" "The :data:`PROTOCOL_TLS_CLIENT` protocol configures the context for cert " -"validation and hostname verification. :attr:`~SSLContext.verify_mode` is set" -" to :data:`CERT_REQUIRED` and :attr:`~SSLContext.check_hostname` is set to " +"validation and hostname verification. :attr:`~SSLContext.verify_mode` is set " +"to :data:`CERT_REQUIRED` and :attr:`~SSLContext.check_hostname` is set to " "``True``. All other protocols create SSL contexts with insecure defaults." msgstr "" -#: ../../library/ssl.rst:2198 +#: ../../library/ssl.rst:2201 msgid "" -"When you use the context to connect to a server, :const:`CERT_REQUIRED` and " -":attr:`~SSLContext.check_hostname` validate the server certificate: it " +"When you use the context to connect to a server, :const:`CERT_REQUIRED` and :" +"attr:`~SSLContext.check_hostname` validate the server certificate: it " "ensures that the server certificate was signed with one of the CA " "certificates, checks the signature for correctness, and verifies other " "properties like validity and identity of the hostname::" msgstr "" -#: ../../library/ssl.rst:2208 +#: ../../library/ssl.rst:2211 msgid "You may then fetch the certificate::" msgstr "" -#: ../../library/ssl.rst:2212 +#: ../../library/ssl.rst:2215 msgid "" "Visual inspection shows that the certificate does identify the desired " "service (that is, the HTTPS host ``www.python.org``)::" msgstr "" -#: ../../library/ssl.rst:2255 +#: ../../library/ssl.rst:2258 msgid "" "Now the SSL channel is established and the certificate verified, you can " "proceed to talk with the server::" msgstr "" -#: ../../library/ssl.rst:2282 +#: ../../library/ssl.rst:2285 msgid "Server-side operation" msgstr "" -#: ../../library/ssl.rst:2284 +#: ../../library/ssl.rst:2287 msgid "" "For server operation, typically you'll need to have a server certificate, " "and private key, each in a file. You'll first create a context holding the " @@ -2467,139 +2450,138 @@ msgid "" "start waiting for clients to connect::" msgstr "" -#: ../../library/ssl.rst:2299 +#: ../../library/ssl.rst:2302 msgid "" "When a client connects, you'll call :meth:`accept` on the socket to get the " -"new socket from the other end, and use the context's " -":meth:`SSLContext.wrap_socket` method to create a server-side SSL socket for" -" the connection::" +"new socket from the other end, and use the context's :meth:`SSLContext." +"wrap_socket` method to create a server-side SSL socket for the connection::" msgstr "" -#: ../../library/ssl.rst:2312 +#: ../../library/ssl.rst:2315 msgid "" "Then you'll read data from the ``connstream`` and do something with it till " "you are finished with the client (or the client is finished with you)::" msgstr "" -#: ../../library/ssl.rst:2326 +#: ../../library/ssl.rst:2329 msgid "" "And go back to listening for new client connections (of course, a real " -"server would probably handle each client connection in a separate thread, or" -" put the sockets in :ref:`non-blocking mode ` and use an " +"server would probably handle each client connection in a separate thread, or " +"put the sockets in :ref:`non-blocking mode ` and use an " "event loop)." msgstr "" -#: ../../library/ssl.rst:2334 +#: ../../library/ssl.rst:2337 msgid "Notes on non-blocking sockets" msgstr "" -#: ../../library/ssl.rst:2336 +#: ../../library/ssl.rst:2339 msgid "" "SSL sockets behave slightly different than regular sockets in non-blocking " "mode. When working with non-blocking sockets, there are thus several things " "you need to be aware of:" msgstr "" -#: ../../library/ssl.rst:2340 +#: ../../library/ssl.rst:2343 msgid "" "Most :class:`SSLSocket` methods will raise either :exc:`SSLWantWriteError` " "or :exc:`SSLWantReadError` instead of :exc:`BlockingIOError` if an I/O " "operation would block. :exc:`SSLWantReadError` will be raised if a read " -"operation on the underlying socket is necessary, and " -":exc:`SSLWantWriteError` for a write operation on the underlying socket. " -"Note that attempts to *write* to an SSL socket may require *reading* from " -"the underlying socket first, and attempts to *read* from the SSL socket may " +"operation on the underlying socket is necessary, and :exc:" +"`SSLWantWriteError` for a write operation on the underlying socket. Note " +"that attempts to *write* to an SSL socket may require *reading* from the " +"underlying socket first, and attempts to *read* from the SSL socket may " "require a prior *write* to the underlying socket." msgstr "" -#: ../../library/ssl.rst:2352 +#: ../../library/ssl.rst:2355 msgid "" -"In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero" -" instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`." +"In earlier Python versions, the :meth:`!SSLSocket.send` method returned zero " +"instead of raising :exc:`SSLWantWriteError` or :exc:`SSLWantReadError`." msgstr "" -#: ../../library/ssl.rst:2356 +#: ../../library/ssl.rst:2359 msgid "" "Calling :func:`~select.select` tells you that the OS-level socket can be " "read from (or written to), but it does not imply that there is sufficient " "data at the upper SSL layer. For example, only part of an SSL frame might " -"have arrived. Therefore, you must be ready to handle :meth:`SSLSocket.recv`" -" and :meth:`SSLSocket.send` failures, and retry after another call to " -":func:`~select.select`." +"have arrived. Therefore, you must be ready to handle :meth:`SSLSocket.recv` " +"and :meth:`SSLSocket.send` failures, and retry after another call to :func:" +"`~select.select`." msgstr "" -#: ../../library/ssl.rst:2363 +#: ../../library/ssl.rst:2366 msgid "" "Conversely, since the SSL layer has its own framing, a SSL socket may still " "have data available for reading without :func:`~select.select` being aware " -"of it. Therefore, you should first call :meth:`SSLSocket.recv` to drain any" -" potentially available data, and then only block on a :func:`~select.select`" -" call if still necessary." +"of it. Therefore, you should first call :meth:`SSLSocket.recv` to drain any " +"potentially available data, and then only block on a :func:`~select.select` " +"call if still necessary." msgstr "" -#: ../../library/ssl.rst:2369 +#: ../../library/ssl.rst:2372 msgid "" -"(of course, similar provisions apply when using other primitives such as " -":func:`~select.poll`, or those in the :mod:`selectors` module)" +"(of course, similar provisions apply when using other primitives such as :" +"func:`~select.poll`, or those in the :mod:`selectors` module)" msgstr "" -#: ../../library/ssl.rst:2372 +#: ../../library/ssl.rst:2375 msgid "" -"The SSL handshake itself will be non-blocking: the " -":meth:`SSLSocket.do_handshake` method has to be retried until it returns " -"successfully. Here is a synopsis using :func:`~select.select` to wait for " -"the socket's readiness::" +"The SSL handshake itself will be non-blocking: the :meth:`SSLSocket." +"do_handshake` method has to be retried until it returns successfully. Here " +"is a synopsis using :func:`~select.select` to wait for the socket's " +"readiness::" msgstr "" -#: ../../library/ssl.rst:2388 +#: ../../library/ssl.rst:2391 msgid "" "The :mod:`asyncio` module supports :ref:`non-blocking SSL sockets ` and provides a higher level API. It polls for events using the" -" :mod:`selectors` module and handles :exc:`SSLWantWriteError`, " -":exc:`SSLWantReadError` and :exc:`BlockingIOError` exceptions. It runs the " -"SSL handshake asynchronously as well." +"nonblocking>` and provides a higher level API. It polls for events using " +"the :mod:`selectors` module and handles :exc:`SSLWantWriteError`, :exc:" +"`SSLWantReadError` and :exc:`BlockingIOError` exceptions. It runs the SSL " +"handshake asynchronously as well." msgstr "" -#: ../../library/ssl.rst:2397 +#: ../../library/ssl.rst:2400 msgid "Memory BIO Support" msgstr "" -#: ../../library/ssl.rst:2401 +#: ../../library/ssl.rst:2404 msgid "" -"Ever since the SSL module was introduced in Python 2.6, the " -":class:`SSLSocket` class has provided two related but distinct areas of " +"Ever since the SSL module was introduced in Python 2.6, the :class:" +"`SSLSocket` class has provided two related but distinct areas of " "functionality:" msgstr "" -#: ../../library/ssl.rst:2404 +#: ../../library/ssl.rst:2407 msgid "SSL protocol handling" msgstr "" -#: ../../library/ssl.rst:2405 +#: ../../library/ssl.rst:2408 msgid "Network IO" msgstr "" -#: ../../library/ssl.rst:2407 +#: ../../library/ssl.rst:2410 msgid "" "The network IO API is identical to that provided by :class:`socket.socket`, " -"from which :class:`SSLSocket` also inherits. This allows an SSL socket to be" -" used as a drop-in replacement for a regular socket, making it very easy to " +"from which :class:`SSLSocket` also inherits. This allows an SSL socket to be " +"used as a drop-in replacement for a regular socket, making it very easy to " "add SSL support to an existing application." msgstr "" -#: ../../library/ssl.rst:2412 +#: ../../library/ssl.rst:2415 msgid "" -"Combining SSL protocol handling and network IO usually works well, but there" -" are some cases where it doesn't. An example is async IO frameworks that " -"want to use a different IO multiplexing model than the \"select/poll on a " -"file descriptor\" (readiness based) model that is assumed by " -":class:`socket.socket` and by the internal OpenSSL socket IO routines. This " -"is mostly relevant for platforms like Windows where this model is not " -"efficient. For this purpose, a reduced scope variant of :class:`SSLSocket` " -"called :class:`SSLObject` is provided." +"Combining SSL protocol handling and network IO usually works well, but there " +"are some cases where it doesn't. An example is async IO frameworks that want " +"to use a different IO multiplexing model than the \"select/poll on a file " +"descriptor\" (readiness based) model that is assumed by :class:`socket." +"socket` and by the internal OpenSSL socket IO routines. This is mostly " +"relevant for platforms like Windows where this model is not efficient. For " +"this purpose, a reduced scope variant of :class:`SSLSocket` called :class:" +"`SSLObject` is provided." msgstr "" -#: ../../library/ssl.rst:2423 +#: ../../library/ssl.rst:2426 msgid "" "A reduced-scope variant of :class:`SSLSocket` representing an SSL protocol " "instance that does not contain any network IO methods. This class is " @@ -2607,497 +2589,501 @@ msgid "" "for SSL through memory buffers." msgstr "" -#: ../../library/ssl.rst:2428 +#: ../../library/ssl.rst:2431 msgid "" "This class implements an interface on top of a low-level SSL object as " "implemented by OpenSSL. This object captures the state of an SSL connection " -"but does not provide any network IO itself. IO needs to be performed through" -" separate \"BIO\" objects which are OpenSSL's IO abstraction layer." +"but does not provide any network IO itself. IO needs to be performed through " +"separate \"BIO\" objects which are OpenSSL's IO abstraction layer." msgstr "" -#: ../../library/ssl.rst:2433 +#: ../../library/ssl.rst:2436 msgid "" "This class has no public constructor. An :class:`SSLObject` instance must " "be created using the :meth:`~SSLContext.wrap_bio` method. This method will " "create the :class:`SSLObject` instance and bind it to a pair of BIOs. The " "*incoming* BIO is used to pass data from Python to the SSL protocol " -"instance, while the *outgoing* BIO is used to pass data the other way " -"around." +"instance, while the *outgoing* BIO is used to pass data the other way around." msgstr "" -#: ../../library/ssl.rst:2440 +#: ../../library/ssl.rst:2443 msgid "The following methods are available:" msgstr "" -#: ../../library/ssl.rst:2442 +#: ../../library/ssl.rst:2445 msgid ":attr:`~SSLSocket.context`" -msgstr "" +msgstr ":attr:`~SSLSocket.context`" -#: ../../library/ssl.rst:2443 +#: ../../library/ssl.rst:2446 msgid ":attr:`~SSLSocket.server_side`" -msgstr "" +msgstr ":attr:`~SSLSocket.server_side`" -#: ../../library/ssl.rst:2444 +#: ../../library/ssl.rst:2447 msgid ":attr:`~SSLSocket.server_hostname`" -msgstr "" +msgstr ":attr:`~SSLSocket.server_hostname`" -#: ../../library/ssl.rst:2445 +#: ../../library/ssl.rst:2448 msgid ":attr:`~SSLSocket.session`" -msgstr "" +msgstr ":attr:`~SSLSocket.session`" -#: ../../library/ssl.rst:2446 +#: ../../library/ssl.rst:2449 msgid ":attr:`~SSLSocket.session_reused`" -msgstr "" +msgstr ":attr:`~SSLSocket.session_reused`" -#: ../../library/ssl.rst:2447 +#: ../../library/ssl.rst:2450 msgid ":meth:`~SSLSocket.read`" -msgstr "" +msgstr ":meth:`~SSLSocket.read`" -#: ../../library/ssl.rst:2448 +#: ../../library/ssl.rst:2451 msgid ":meth:`~SSLSocket.write`" -msgstr "" +msgstr ":meth:`~SSLSocket.write`" -#: ../../library/ssl.rst:2449 +#: ../../library/ssl.rst:2452 msgid ":meth:`~SSLSocket.getpeercert`" -msgstr "" +msgstr ":meth:`~SSLSocket.getpeercert`" -#: ../../library/ssl.rst:2450 +#: ../../library/ssl.rst:2453 msgid ":meth:`~SSLSocket.selected_npn_protocol`" -msgstr "" +msgstr ":meth:`~SSLSocket.selected_npn_protocol`" -#: ../../library/ssl.rst:2451 +#: ../../library/ssl.rst:2454 msgid ":meth:`~SSLSocket.cipher`" -msgstr "" +msgstr ":meth:`~SSLSocket.cipher`" -#: ../../library/ssl.rst:2452 +#: ../../library/ssl.rst:2455 msgid ":meth:`~SSLSocket.shared_ciphers`" -msgstr "" +msgstr ":meth:`~SSLSocket.shared_ciphers`" -#: ../../library/ssl.rst:2453 +#: ../../library/ssl.rst:2456 msgid ":meth:`~SSLSocket.compression`" -msgstr "" +msgstr ":meth:`~SSLSocket.compression`" -#: ../../library/ssl.rst:2454 +#: ../../library/ssl.rst:2457 msgid ":meth:`~SSLSocket.pending`" -msgstr "" +msgstr ":meth:`~SSLSocket.pending`" -#: ../../library/ssl.rst:2455 +#: ../../library/ssl.rst:2458 msgid ":meth:`~SSLSocket.do_handshake`" -msgstr "" +msgstr ":meth:`~SSLSocket.do_handshake`" -#: ../../library/ssl.rst:2456 +#: ../../library/ssl.rst:2459 msgid ":meth:`~SSLSocket.unwrap`" -msgstr "" +msgstr ":meth:`~SSLSocket.unwrap`" -#: ../../library/ssl.rst:2457 +#: ../../library/ssl.rst:2460 msgid ":meth:`~SSLSocket.get_channel_binding`" -msgstr "" +msgstr ":meth:`~SSLSocket.get_channel_binding`" -#: ../../library/ssl.rst:2459 +#: ../../library/ssl.rst:2462 msgid "" "When compared to :class:`SSLSocket`, this object lacks the following " "features:" msgstr "" -#: ../../library/ssl.rst:2462 +#: ../../library/ssl.rst:2465 msgid "" -"Any form of network IO; ``recv()`` and ``send()`` read and write only to the" -" underlying :class:`MemoryBIO` buffers." +"Any form of network IO; ``recv()`` and ``send()`` read and write only to the " +"underlying :class:`MemoryBIO` buffers." msgstr "" -#: ../../library/ssl.rst:2465 +#: ../../library/ssl.rst:2468 msgid "" "There is no *do_handshake_on_connect* machinery. You must always manually " "call :meth:`~SSLSocket.do_handshake` to start the handshake." msgstr "" -#: ../../library/ssl.rst:2468 +#: ../../library/ssl.rst:2471 msgid "" "There is no handling of *suppress_ragged_eofs*. All end-of-file conditions " -"that are in violation of the protocol are reported via the " -":exc:`SSLEOFError` exception." +"that are in violation of the protocol are reported via the :exc:" +"`SSLEOFError` exception." msgstr "" -#: ../../library/ssl.rst:2472 +#: ../../library/ssl.rst:2475 msgid "" "The method :meth:`~SSLSocket.unwrap` call does not return anything, unlike " "for an SSL socket where it returns the underlying socket." msgstr "" -#: ../../library/ssl.rst:2475 +#: ../../library/ssl.rst:2478 msgid "" -"The *server_name_callback* callback passed to " -":meth:`SSLContext.set_servername_callback` will get an :class:`SSLObject` " -"instance instead of a :class:`SSLSocket` instance as its first parameter." +"The *server_name_callback* callback passed to :meth:`SSLContext." +"set_servername_callback` will get an :class:`SSLObject` instance instead of " +"a :class:`SSLSocket` instance as its first parameter." msgstr "" -#: ../../library/ssl.rst:2479 +#: ../../library/ssl.rst:2482 msgid "Some notes related to the use of :class:`SSLObject`:" msgstr "" -#: ../../library/ssl.rst:2481 +#: ../../library/ssl.rst:2484 msgid "" "All IO on an :class:`SSLObject` is :ref:`non-blocking `. " -"This means that for example :meth:`~SSLSocket.read` will raise an " -":exc:`SSLWantReadError` if it needs more data than the incoming BIO has " -"available." +"This means that for example :meth:`~SSLSocket.read` will raise an :exc:" +"`SSLWantReadError` if it needs more data than the incoming BIO has available." msgstr "" -#: ../../library/ssl.rst:2486 +#: ../../library/ssl.rst:2489 msgid "" -"There is no module-level ``wrap_bio()`` call like there is for " -":meth:`~SSLContext.wrap_socket`. An :class:`SSLObject` is always created via" -" an :class:`SSLContext`." +"There is no module-level ``wrap_bio()`` call like there is for :meth:" +"`~SSLContext.wrap_socket`. An :class:`SSLObject` is always created via an :" +"class:`SSLContext`." msgstr "" -#: ../../library/ssl.rst:2490 +#: ../../library/ssl.rst:2493 msgid "" -":class:`SSLObject` instances must to created with " -":meth:`~SSLContext.wrap_bio`. In earlier versions, it was possible to create" -" instances directly. This was never documented or officially supported." +":class:`SSLObject` instances must to created with :meth:`~SSLContext." +"wrap_bio`. In earlier versions, it was possible to create instances " +"directly. This was never documented or officially supported." msgstr "" -#: ../../library/ssl.rst:2496 +#: ../../library/ssl.rst:2499 msgid "" "An SSLObject communicates with the outside world using memory buffers. The " "class :class:`MemoryBIO` provides a memory buffer that can be used for this " "purpose. It wraps an OpenSSL memory BIO (Basic IO) object:" msgstr "" -#: ../../library/ssl.rst:2502 +#: ../../library/ssl.rst:2505 msgid "" "A memory buffer that can be used to pass data between Python and an SSL " "protocol instance." msgstr "" -#: ../../library/ssl.rst:2507 +#: ../../library/ssl.rst:2510 msgid "Return the number of bytes currently in the memory buffer." msgstr "" -#: ../../library/ssl.rst:2511 +#: ../../library/ssl.rst:2514 msgid "" "A boolean indicating whether the memory BIO is current at the end-of-file " "position." msgstr "" -#: ../../library/ssl.rst:2516 +#: ../../library/ssl.rst:2519 msgid "" "Read up to *n* bytes from the memory buffer. If *n* is not specified or " "negative, all bytes are returned." msgstr "" -#: ../../library/ssl.rst:2521 +#: ../../library/ssl.rst:2524 msgid "" "Write the bytes from *buf* to the memory BIO. The *buf* argument must be an " "object supporting the buffer protocol." msgstr "" -#: ../../library/ssl.rst:2524 +#: ../../library/ssl.rst:2527 msgid "" "The return value is the number of bytes written, which is always equal to " "the length of *buf*." msgstr "" -#: ../../library/ssl.rst:2529 +#: ../../library/ssl.rst:2532 msgid "" -"Write an EOF marker to the memory BIO. After this method has been called, it" -" is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will" -" become true after all data currently in the buffer has been read." +"Write an EOF marker to the memory BIO. After this method has been called, it " +"is illegal to call :meth:`~MemoryBIO.write`. The attribute :attr:`eof` will " +"become true after all data currently in the buffer has been read." msgstr "" -#: ../../library/ssl.rst:2535 +#: ../../library/ssl.rst:2538 msgid "SSL session" msgstr "" -#: ../../library/ssl.rst:2541 +#: ../../library/ssl.rst:2544 msgid "Session object used by :attr:`~SSLSocket.session`." msgstr "" -#: ../../library/ssl.rst:2553 +#: ../../library/ssl.rst:2556 msgid "Security considerations" msgstr "" -#: ../../library/ssl.rst:2556 +#: ../../library/ssl.rst:2559 msgid "Best defaults" msgstr "" -#: ../../library/ssl.rst:2558 +#: ../../library/ssl.rst:2561 msgid "" "For **client use**, if you don't have any special requirements for your " -"security policy, it is highly recommended that you use the " -":func:`create_default_context` function to create your SSL context. It will " -"load the system's trusted CA certificates, enable certificate validation and" -" hostname checking, and try to choose reasonably secure protocol and cipher " +"security policy, it is highly recommended that you use the :func:" +"`create_default_context` function to create your SSL context. It will load " +"the system's trusted CA certificates, enable certificate validation and " +"hostname checking, and try to choose reasonably secure protocol and cipher " "settings." msgstr "" -#: ../../library/ssl.rst:2565 +#: ../../library/ssl.rst:2568 msgid "" "For example, here is how you would use the :class:`smtplib.SMTP` class to " "create a trusted, secure connection to a SMTP server::" msgstr "" -#: ../../library/ssl.rst:2574 +#: ../../library/ssl.rst:2577 msgid "" -"If a client certificate is needed for the connection, it can be added with " -":meth:`SSLContext.load_cert_chain`." +"If a client certificate is needed for the connection, it can be added with :" +"meth:`SSLContext.load_cert_chain`." msgstr "" -#: ../../library/ssl.rst:2577 +#: ../../library/ssl.rst:2580 msgid "" -"By contrast, if you create the SSL context by calling the " -":class:`SSLContext` constructor yourself, it will not have certificate " -"validation nor hostname checking enabled by default. If you do so, please " -"read the paragraphs below to achieve a good security level." +"By contrast, if you create the SSL context by calling the :class:" +"`SSLContext` constructor yourself, it will not have certificate validation " +"nor hostname checking enabled by default. If you do so, please read the " +"paragraphs below to achieve a good security level." msgstr "" -#: ../../library/ssl.rst:2583 +#: ../../library/ssl.rst:2586 msgid "Manual settings" msgstr "" -#: ../../library/ssl.rst:2586 +#: ../../library/ssl.rst:2589 msgid "Verifying certificates" msgstr "" -#: ../../library/ssl.rst:2588 +#: ../../library/ssl.rst:2591 msgid "" -"When calling the :class:`SSLContext` constructor directly, " -":const:`CERT_NONE` is the default. Since it does not authenticate the other" -" peer, it can be insecure, especially in client mode where most of time you " -"would like to ensure the authenticity of the server you're talking to. " -"Therefore, when in client mode, it is highly recommended to use " -":const:`CERT_REQUIRED`. However, it is in itself not sufficient; you also " -"have to check that the server certificate, which can be obtained by calling " -":meth:`SSLSocket.getpeercert`, matches the desired service. For many " -"protocols and applications, the service can be identified by the hostname; " -"in this case, the :func:`match_hostname` function can be used. This common " -"check is automatically performed when :attr:`SSLContext.check_hostname` is " -"enabled." +"When calling the :class:`SSLContext` constructor directly, :const:" +"`CERT_NONE` is the default. Since it does not authenticate the other peer, " +"it can be insecure, especially in client mode where most of time you would " +"like to ensure the authenticity of the server you're talking to. Therefore, " +"when in client mode, it is highly recommended to use :const:" +"`CERT_REQUIRED`. However, it is in itself not sufficient; you also have to " +"check that the server certificate, which can be obtained by calling :meth:" +"`SSLSocket.getpeercert`, matches the desired service. For many protocols " +"and applications, the service can be identified by the hostname; in this " +"case, the :func:`match_hostname` function can be used. This common check is " +"automatically performed when :attr:`SSLContext.check_hostname` is enabled." msgstr "" -#: ../../library/ssl.rst:2601 +#: ../../library/ssl.rst:2604 msgid "" -"Hostname matchings is now performed by OpenSSL. Python no longer uses " -":func:`match_hostname`." +"Hostname matchings is now performed by OpenSSL. Python no longer uses :func:" +"`match_hostname`." msgstr "" -#: ../../library/ssl.rst:2605 +#: ../../library/ssl.rst:2608 msgid "" -"In server mode, if you want to authenticate your clients using the SSL layer" -" (rather than using a higher-level authentication mechanism), you'll also " +"In server mode, if you want to authenticate your clients using the SSL layer " +"(rather than using a higher-level authentication mechanism), you'll also " "have to specify :const:`CERT_REQUIRED` and similarly check the client " "certificate." msgstr "" -#: ../../library/ssl.rst:2611 +#: ../../library/ssl.rst:2614 msgid "Protocol versions" msgstr "" -#: ../../library/ssl.rst:2613 +#: ../../library/ssl.rst:2616 msgid "" "SSL versions 2 and 3 are considered insecure and are therefore dangerous to " "use. If you want maximum compatibility between clients and servers, it is " -"recommended to use :const:`PROTOCOL_TLS_CLIENT` or " -":const:`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are " -"disabled by default." +"recommended to use :const:`PROTOCOL_TLS_CLIENT` or :const:" +"`PROTOCOL_TLS_SERVER` as the protocol version. SSLv2 and SSLv3 are disabled " +"by default." msgstr "" -#: ../../library/ssl.rst:2626 +#: ../../library/ssl.rst:2629 msgid "" "The SSL context created above will only allow TLSv1.2 and later (if " -"supported by your system) connections to a server. " -":const:`PROTOCOL_TLS_CLIENT` implies certificate validation and hostname " -"checks by default. You have to load certificates into the context." +"supported by your system) connections to a server. :const:" +"`PROTOCOL_TLS_CLIENT` implies certificate validation and hostname checks by " +"default. You have to load certificates into the context." msgstr "" -#: ../../library/ssl.rst:2633 +#: ../../library/ssl.rst:2636 msgid "Cipher selection" msgstr "" -#: ../../library/ssl.rst:2635 +#: ../../library/ssl.rst:2638 msgid "" "If you have advanced security requirements, fine-tuning of the ciphers " -"enabled when negotiating a SSL session is possible through the " -":meth:`SSLContext.set_ciphers` method. Starting from Python 3.2.3, the ssl " -"module disables certain weak ciphers by default, but you may want to further" -" restrict the cipher choice. Be sure to read OpenSSL's documentation about " -"the `cipher list format " -"`_. If you want to check which ciphers are enabled by a given cipher " -"list, use :meth:`SSLContext.get_ciphers` or the ``openssl ciphers`` command " -"on your system." -msgstr "" - -#: ../../library/ssl.rst:2646 +"enabled when negotiating a SSL session is possible through the :meth:" +"`SSLContext.set_ciphers` method. Starting from Python 3.2.3, the ssl module " +"disables certain weak ciphers by default, but you may want to further " +"restrict the cipher choice. Be sure to read OpenSSL's documentation about " +"the `cipher list format `_. If you want to check which ciphers are enabled " +"by a given cipher list, use :meth:`SSLContext.get_ciphers` or the ``openssl " +"ciphers`` command on your system." +msgstr "" + +#: ../../library/ssl.rst:2649 msgid "Multi-processing" msgstr "" -#: ../../library/ssl.rst:2648 +#: ../../library/ssl.rst:2651 msgid "" "If using this module as part of a multi-processed application (using, for " -"example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules), be" -" aware that OpenSSL's internal random number generator does not properly " +"example the :mod:`multiprocessing` or :mod:`concurrent.futures` modules), be " +"aware that OpenSSL's internal random number generator does not properly " "handle forked processes. Applications must change the PRNG state of the " "parent process if they use any SSL feature with :func:`os.fork`. Any " -"successful call of :func:`~ssl.RAND_add`, :func:`~ssl.RAND_bytes` or " -":func:`~ssl.RAND_pseudo_bytes` is sufficient." +"successful call of :func:`~ssl.RAND_add`, :func:`~ssl.RAND_bytes` or :func:" +"`~ssl.RAND_pseudo_bytes` is sufficient." msgstr "" -#: ../../library/ssl.rst:2660 +#: ../../library/ssl.rst:2663 msgid "TLS 1.3" msgstr "" -#: ../../library/ssl.rst:2664 +#: ../../library/ssl.rst:2667 msgid "" "Python has provisional and experimental support for TLS 1.3 with OpenSSL " "1.1.1. The new protocol behaves slightly differently than previous version " "of TLS/SSL. Some new TLS 1.3 features are not yet available." msgstr "" -#: ../../library/ssl.rst:2668 +#: ../../library/ssl.rst:2671 msgid "" "TLS 1.3 uses a disjunct set of cipher suites. All AES-GCM and ChaCha20 " -"cipher suites are enabled by default. The method " -":meth:`SSLContext.set_ciphers` cannot enable or disable any TLS 1.3 ciphers " -"yet, but :meth:`SSLContext.get_ciphers` returns them." +"cipher suites are enabled by default. The method :meth:`SSLContext." +"set_ciphers` cannot enable or disable any TLS 1.3 ciphers yet, but :meth:" +"`SSLContext.get_ciphers` returns them." msgstr "" -#: ../../library/ssl.rst:2672 +#: ../../library/ssl.rst:2675 msgid "" "Session tickets are no longer sent as part of the initial handshake and are " "handled differently. :attr:`SSLSocket.session` and :class:`SSLSession` are " "not compatible with TLS 1.3." msgstr "" -#: ../../library/ssl.rst:2675 +#: ../../library/ssl.rst:2678 msgid "" "Client-side certificates are also no longer verified during the initial " -"handshake. A server can request a certificate at any time. Clients process" -" certificate requests while they send or receive application data from the " +"handshake. A server can request a certificate at any time. Clients process " +"certificate requests while they send or receive application data from the " "server." msgstr "" -#: ../../library/ssl.rst:2679 +#: ../../library/ssl.rst:2682 msgid "" "TLS 1.3 features like early data, deferred TLS client cert request, " "signature algorithm configuration, and rekeying are not supported yet." msgstr "" -#: ../../library/ssl.rst:2686 +#: ../../library/ssl.rst:2689 msgid "LibreSSL support" msgstr "" -#: ../../library/ssl.rst:2688 +#: ../../library/ssl.rst:2691 msgid "" "LibreSSL is a fork of OpenSSL 1.0.1. The ssl module has limited support for " "LibreSSL. Some features are not available when the ssl module is compiled " "with LibreSSL." msgstr "" -#: ../../library/ssl.rst:2692 +#: ../../library/ssl.rst:2695 msgid "" -"LibreSSL >= 2.6.1 no longer supports NPN. The methods " -":meth:`SSLContext.set_npn_protocols` and " -":meth:`SSLSocket.selected_npn_protocol` are not available." +"LibreSSL >= 2.6.1 no longer supports NPN. The methods :meth:`SSLContext." +"set_npn_protocols` and :meth:`SSLSocket.selected_npn_protocol` are not " +"available." msgstr "" -#: ../../library/ssl.rst:2695 +#: ../../library/ssl.rst:2698 msgid "" -":meth:`SSLContext.set_default_verify_paths` ignores the env vars " -":envvar:`SSL_CERT_FILE` and :envvar:`SSL_CERT_PATH` although " -":func:`get_default_verify_paths` still reports them." +":meth:`SSLContext.set_default_verify_paths` ignores the env vars :envvar:" +"`SSL_CERT_FILE` and :envvar:`SSL_CERT_PATH` although :func:" +"`get_default_verify_paths` still reports them." msgstr "" -#: ../../library/ssl.rst:2703 +#: ../../library/ssl.rst:2706 msgid "Class :class:`socket.socket`" msgstr "" -#: ../../library/ssl.rst:2703 +#: ../../library/ssl.rst:2706 msgid "Documentation of underlying :mod:`socket` class" msgstr "" -#: ../../library/ssl.rst:2706 +#: ../../library/ssl.rst:2709 msgid "" -"`SSL/TLS Strong Encryption: An Introduction " -"`_" +"`SSL/TLS Strong Encryption: An Introduction `_" msgstr "" -#: ../../library/ssl.rst:2706 +#: ../../library/ssl.rst:2709 msgid "Intro from the Apache HTTP Server documentation" msgstr "" -#: ../../library/ssl.rst:2709 +#: ../../library/ssl.rst:2712 msgid "" ":rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: " "Certificate-Based Key Management <1422>`" msgstr "" +":rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: " +"Certificate-Based Key Management <1422>`" -#: ../../library/ssl.rst:2709 +#: ../../library/ssl.rst:2712 msgid "Steve Kent" msgstr "" -#: ../../library/ssl.rst:2712 +#: ../../library/ssl.rst:2715 msgid ":rfc:`RFC 4086: Randomness Requirements for Security <4086>`" -msgstr "" +msgstr ":rfc:`RFC 4086: Randomness Requirements for Security <4086>`" -#: ../../library/ssl.rst:2712 +#: ../../library/ssl.rst:2715 msgid "Donald E., Jeffrey I. Schiller" msgstr "" -#: ../../library/ssl.rst:2715 +#: ../../library/ssl.rst:2718 msgid "" ":rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and " "Certificate Revocation List (CRL) Profile <5280>`" msgstr "" +":rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and " +"Certificate Revocation List (CRL) Profile <5280>`" -#: ../../library/ssl.rst:2715 +#: ../../library/ssl.rst:2718 msgid "D. Cooper" msgstr "" -#: ../../library/ssl.rst:2718 +#: ../../library/ssl.rst:2721 msgid "" ":rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 " "<5246>`" msgstr "" +":rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 " +"<5246>`" -#: ../../library/ssl.rst:2718 +#: ../../library/ssl.rst:2721 msgid "T. Dierks et. al." msgstr "T. Dierks et. al." -#: ../../library/ssl.rst:2721 +#: ../../library/ssl.rst:2724 msgid ":rfc:`RFC 6066: Transport Layer Security (TLS) Extensions <6066>`" -msgstr "" +msgstr ":rfc:`RFC 6066: Transport Layer Security (TLS) Extensions <6066>`" -#: ../../library/ssl.rst:2721 +#: ../../library/ssl.rst:2724 msgid "D. Eastlake" msgstr "" -#: ../../library/ssl.rst:2724 +#: ../../library/ssl.rst:2727 msgid "" -"`IANA TLS: Transport Layer Security (TLS) Parameters " -"`_" +"`IANA TLS: Transport Layer Security (TLS) Parameters `_" msgstr "" -#: ../../library/ssl.rst:2724 +#: ../../library/ssl.rst:2727 msgid "IANA" msgstr "" -#: ../../library/ssl.rst:2727 +#: ../../library/ssl.rst:2730 msgid "" ":rfc:`RFC 7525: Recommendations for Secure Use of Transport Layer Security " "(TLS) and Datagram Transport Layer Security (DTLS) <7525>`" msgstr "" +":rfc:`RFC 7525: Recommendations for Secure Use of Transport Layer Security " +"(TLS) and Datagram Transport Layer Security (DTLS) <7525>`" -#: ../../library/ssl.rst:2727 +#: ../../library/ssl.rst:2730 msgid "IETF" msgstr "" -#: ../../library/ssl.rst:2729 +#: ../../library/ssl.rst:2732 msgid "" -"`Mozilla's Server Side TLS recommendations " -"`_" +"`Mozilla's Server Side TLS recommendations `_" msgstr "" -#: ../../library/ssl.rst:2730 +#: ../../library/ssl.rst:2733 msgid "Mozilla" msgstr "" diff --git a/library/stat.po b/library/stat.po index b5639e790..1066b2124 100644 --- a/library/stat.po +++ b/library/stat.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Sheila Gomes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,9 +36,13 @@ msgstr "**Código Fonte:** :source:`Lib/stat.py`" msgid "" "The :mod:`stat` module defines constants and functions for interpreting the " "results of :func:`os.stat`, :func:`os.fstat` and :func:`os.lstat` (if they " -"exist). For complete details about the :c:func:`stat`, :c:func:`fstat` and " -":c:func:`lstat` calls, consult the documentation for your system." +"exist). For complete details about the :c:func:`stat`, :c:func:`fstat` and :" +"c:func:`lstat` calls, consult the documentation for your system." msgstr "" +"O módulo :mod:`stat` define constantes e funções para interpretar os " +"resultados de :func:`os.stat`, :func:`os.fstat` e :func:`os.lstat` (se " +"existirem). Para detalhes completos sobre chamadas :c:func:`stat`, :c:func:" +"`fstat` e :c:func:`lstat`, consulte a documentação do seu sistema." #: ../../library/stat.rst:19 msgid "The stat module is backed by a C implementation." @@ -133,8 +139,7 @@ msgstr "" #: ../../library/stat.rst:138 msgid "" -"The function supports :data:`S_IFDOOR`, :data:`S_IFPORT` and " -":data:`S_IFWHT`." +"The function supports :data:`S_IFDOOR`, :data:`S_IFPORT` and :data:`S_IFWHT`." msgstr "" #: ../../library/stat.rst:143 @@ -189,20 +194,18 @@ msgstr "" #: ../../library/stat.rst:198 msgid "" -"The interpretation of \"file size\" changes according to the file type. For" -" plain files this is the size of the file in bytes. For FIFOs and sockets " +"The interpretation of \"file size\" changes according to the file type. For " +"plain files this is the size of the file in bytes. For FIFOs and sockets " "under most flavors of Unix (including Linux in particular), the \"size\" is " -"the number of bytes waiting to be read at the time of the call to " -":func:`os.stat`, :func:`os.fstat`, or :func:`os.lstat`; this can sometimes " -"be useful, especially for polling one of these special files after a non-" -"blocking open. The meaning of the size field for other character and block " -"devices varies more, depending on the implementation of the underlying " -"system call." +"the number of bytes waiting to be read at the time of the call to :func:`os." +"stat`, :func:`os.fstat`, or :func:`os.lstat`; this can sometimes be useful, " +"especially for polling one of these special files after a non-blocking " +"open. The meaning of the size field for other character and block devices " +"varies more, depending on the implementation of the underlying system call." msgstr "" #: ../../library/stat.rst:207 -msgid "" -"The variables below define the flags used in the :data:`ST_MODE` field." +msgid "The variables below define the flags used in the :data:`ST_MODE` field." msgstr "" #: ../../library/stat.rst:209 @@ -259,8 +262,8 @@ msgstr "" #: ../../library/stat.rst:262 msgid "" -"The following flags can also be used in the *mode* argument of " -":func:`os.chmod`:" +"The following flags can also be used in the *mode* argument of :func:`os." +"chmod`:" msgstr "" #: ../../library/stat.rst:266 @@ -270,8 +273,8 @@ msgstr "" #: ../../library/stat.rst:270 msgid "" "Set-group-ID bit. This bit has several special uses. For a directory it " -"indicates that BSD semantics is to be used for that directory: files created" -" there inherit their group ID from the directory, not from the effective " +"indicates that BSD semantics is to be used for that directory: files created " +"there inherit their group ID from the directory, not from the effective " "group ID of the creating process, and directories created there will also " "get the :data:`S_ISGID` bit set. For a file that does not have the group " "execution bit (:data:`S_IXGRP`) set, the set-group-ID bit indicates " @@ -335,9 +338,9 @@ msgstr "" #: ../../library/stat.rst:335 msgid "" -"System V file locking enforcement. This flag is shared with " -":data:`S_ISGID`: file/record locking is enforced on files that do not have " -"the group execution bit (:data:`S_IXGRP`) set." +"System V file locking enforcement. This flag is shared with :data:" +"`S_ISGID`: file/record locking is enforced on files that do not have the " +"group execution bit (:data:`S_IXGRP`) set." msgstr "" #: ../../library/stat.rst:341 @@ -354,8 +357,8 @@ msgstr "" #: ../../library/stat.rst:351 msgid "" -"The following flags can be used in the *flags* argument of " -":func:`os.chflags`:" +"The following flags can be used in the *flags* argument of :func:`os." +"chflags`:" msgstr "" #: ../../library/stat.rst:355 @@ -403,8 +406,8 @@ msgstr "" #: ../../library/stat.rst:403 msgid "" "On Windows, the following file attribute constants are available for use " -"when testing bits in the ``st_file_attributes`` member returned by " -":func:`os.stat`. See the `Windows API documentation " -"`_ " -"for more detail on the meaning of these constants." +"when testing bits in the ``st_file_attributes`` member returned by :func:`os." +"stat`. See the `Windows API documentation `_ for more detail on the meaning of " +"these constants." msgstr "" diff --git a/library/statistics.po b/library/statistics.po index a542dda98..5ee6660a7 100644 --- a/library/statistics.po +++ b/library/statistics.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 -# +# Felipe Rodrigues , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Leticia Portella , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Felipe Rodrigues , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +26,7 @@ msgstr "" #: ../../library/statistics.rst:2 msgid ":mod:`statistics` --- Mathematical statistics functions" -msgstr "" +msgstr ":mod:`statistics` --- Funções estatísticas" #: ../../library/statistics.rst:12 msgid "**Source code:** :source:`Lib/statistics.py`" @@ -35,75 +37,86 @@ msgid "" "This module provides functions for calculating mathematical statistics of " "numeric (:class:`Real`-valued) data." msgstr "" +"Este módulo fornece funções para calcular estatísticas de dados numéricos " +"(com valor :class:`Real`)" #: ../../library/statistics.rst:26 msgid "" -"Unless explicitly noted otherwise, these functions support :class:`int`, " -":class:`float`, :class:`decimal.Decimal` and :class:`fractions.Fraction`. " +"Unless explicitly noted otherwise, these functions support :class:`int`, :" +"class:`float`, :class:`decimal.Decimal` and :class:`fractions.Fraction`. " "Behaviour with other types (whether in the numeric tower or not) is " "currently unsupported. Mixed types are also undefined and implementation-" "dependent. If your input data consists of mixed types, you may be able to " "use :func:`map` to ensure a consistent result, e.g. ``map(float, " "input_data)``." msgstr "" +"A não ser que marcado explicitamente o contrário, essas funções suportam " +"valores dos tipos :class:`int`, :class:`float`, :class:`decimal.Decimal` e :" +"class:`fractions.Fraction`. O uso com outros tipos (independente de serem " +"numéricos ou não) ainda não é suportado. O mesmo vale para tipos mistos, " +"cujo comportamento dependerá da implementação. Se os seus dados de entrada " +"possuem diversos tipos, talvez você consiga usar da função :func:`map` para " +"garantir resultados consistentes. Por exemplo ``map(float, input_data)`` " +"converterá os elementos de ``input_data`` para float." #: ../../library/statistics.rst:35 msgid "Averages and measures of central location" -msgstr "" +msgstr "Médias e medidas de valor central" #: ../../library/statistics.rst:37 msgid "" "These functions calculate an average or typical value from a population or " "sample." msgstr "" +"Essas funções calculam a média ou o valor típico de uma população ou amostra." #: ../../library/statistics.rst:41 msgid ":func:`mean`" -msgstr "" +msgstr ":func:`mean`" #: ../../library/statistics.rst:41 msgid "Arithmetic mean (\"average\") of data." -msgstr "" +msgstr "Média aritmética dos dados." #: ../../library/statistics.rst:42 msgid ":func:`harmonic_mean`" -msgstr "" +msgstr ":func:`harmonic_mean`" #: ../../library/statistics.rst:42 msgid "Harmonic mean of data." -msgstr "" +msgstr "Média harmônica dos dados." #: ../../library/statistics.rst:43 msgid ":func:`median`" -msgstr "" +msgstr ":func:`median`" #: ../../library/statistics.rst:43 msgid "Median (middle value) of data." -msgstr "" +msgstr "Mediana (valor do meio) dos dados." #: ../../library/statistics.rst:44 msgid ":func:`median_low`" -msgstr "" +msgstr ":func:`median_low`" #: ../../library/statistics.rst:44 msgid "Low median of data." -msgstr "" +msgstr "Mediana inferior dos dados." #: ../../library/statistics.rst:45 msgid ":func:`median_high`" -msgstr "" +msgstr ":func:`median_high`" #: ../../library/statistics.rst:45 msgid "High median of data." -msgstr "" +msgstr "Mediana superior dos dados." #: ../../library/statistics.rst:46 msgid ":func:`median_grouped`" -msgstr "" +msgstr ":func:`median_grouped`" #: ../../library/statistics.rst:46 msgid "Median, or 50th percentile, of grouped data." -msgstr "" +msgstr "Mediana, ou o 50º percentil dos dados agrupados." #: ../../library/statistics.rst:47 msgid ":func:`mode`" @@ -111,66 +124,71 @@ msgstr ":func:`mode`" #: ../../library/statistics.rst:47 msgid "Mode (most common value) of discrete data." -msgstr "" +msgstr "Moda (valor mais comum) de dados discretos." #: ../../library/statistics.rst:51 msgid "Measures of spread" -msgstr "" +msgstr "Medidas de espalhamento" #: ../../library/statistics.rst:53 msgid "" "These functions calculate a measure of how much the population or sample " "tends to deviate from the typical or average values." msgstr "" +"Essas funções calculam o quanto a população ou amostra tendem a desviar dos " +"valores típicos ou médios." #: ../../library/statistics.rst:57 msgid ":func:`pstdev`" -msgstr "" +msgstr ":func:`pstdev`" #: ../../library/statistics.rst:57 msgid "Population standard deviation of data." -msgstr "" +msgstr "Desvio padrão de dados populacionais." #: ../../library/statistics.rst:58 msgid ":func:`pvariance`" -msgstr "" +msgstr ":func:`pvariance`" #: ../../library/statistics.rst:58 msgid "Population variance of data." -msgstr "" +msgstr "Variância de dados populacionais." #: ../../library/statistics.rst:59 msgid ":func:`stdev`" -msgstr "" +msgstr ":func:`stdev`" #: ../../library/statistics.rst:59 msgid "Sample standard deviation of data." -msgstr "" +msgstr "Desvio padrão de dados amostrais." #: ../../library/statistics.rst:60 msgid ":func:`variance`" -msgstr "" +msgstr ":func:`variance`" #: ../../library/statistics.rst:60 msgid "Sample variance of data." -msgstr "" +msgstr "Variância de dados amostrais." #: ../../library/statistics.rst:65 msgid "Function details" -msgstr "" +msgstr "Detalhes da função" #: ../../library/statistics.rst:67 msgid "" "Note: The functions do not require the data given to them to be sorted. " -"However, for reading convenience, most of the examples show sorted " -"sequences." +"However, for reading convenience, most of the examples show sorted sequences." msgstr "" +"Nota: as funções não exigem que os dados estejam ordenados. No entanto, para " +"conveniência do leitor, a maioria dos exemplos mostrará sequências ordenadas." #: ../../library/statistics.rst:72 msgid "" "Return the sample arithmetic mean of *data* which can be a sequence or " "iterator." msgstr "" +"Retorna a média aritmética de *data*, que pode ser uma sequência ou um " +"iterador" #: ../../library/statistics.rst:74 msgid "" @@ -179,23 +197,33 @@ msgid "" "many different mathematical averages. It is a measure of the central " "location of the data." msgstr "" +"A média aritmética é a soma dos dados dividida pela quantidade. É comumente " +"chamada apenas de \"média\", apesar de ser uma das diversas médias " +"matemáticas. Ela representa uma medida da localização central dos dados" #: ../../library/statistics.rst:79 msgid "If *data* is empty, :exc:`StatisticsError` will be raised." msgstr "" +"Se *data* for vazio, uma exceção do tipo :exc:`StatisticsError` será lançada." #: ../../library/statistics.rst:81 msgid "Some examples of use:" -msgstr "" +msgstr "Alguns exemplos de uso:" #: ../../library/statistics.rst:100 msgid "" "The mean is strongly affected by outliers and is not a robust estimator for " "central location: the mean is not necessarily a typical example of the data " "points. For more robust, although less efficient, measures of central " -"location, see :func:`median` and :func:`mode`. (In this case, \"efficient\"" -" refers to statistical efficiency rather than computational efficiency.)" +"location, see :func:`median` and :func:`mode`. (In this case, \"efficient\" " +"refers to statistical efficiency rather than computational efficiency.)" msgstr "" +"A média é bastante afetada por valores discrepantes e não é uma estimativa " +"muito robusta da localização central. Ou seja, a média não é necessariamente " +"um ponto que ocorre nos dados. Para medidas mais robustas, apesar de menos " +"eficientes, da localização central, veja :func:`median` e :func:`mode`. " +"Nesse caso \"eficiência\" se refere à eficiência estatística ao invés de " +"computacional." #: ../../library/statistics.rst:107 msgid "" @@ -205,27 +233,42 @@ msgid "" "*data* represents the entire population rather than a sample, then " "``mean(data)`` is equivalent to calculating the true population mean μ." msgstr "" +"A média de uma amostra nos dá uma estimativa não enviesada da média " +"populacional verdadeira. Isso significa que obtendo a média de todas as " +"amostras, ``mean(sample)`` converge para a média da população como um todo. " +"Se *data* representa a população inteira ao invés de uma amostra, então " +"``mean(data)`` é equivalente a calcular a média verdadeira da população, " +"comumente denotada por μ." #: ../../library/statistics.rst:116 msgid "" "Return the harmonic mean of *data*, a sequence or iterator of real-valued " "numbers." msgstr "" +"Retorna a média harmônica de *data*, que deve ser uma sequência ou um " +"iterador de números reais." #: ../../library/statistics.rst:119 msgid "" "The harmonic mean, sometimes called the subcontrary mean, is the reciprocal " "of the arithmetic :func:`mean` of the reciprocals of the data. For example, " -"the harmonic mean of three values *a*, *b* and *c* will be equivalent to " -"``3/(1/a + 1/b + 1/c)``." +"the harmonic mean of three values *a*, *b* and *c* will be equivalent to ``3/" +"(1/a + 1/b + 1/c)``." msgstr "" +"A média harmônica, as vezes chamada de média subcontrária é a recíproca da " +"média aritmética, calculada por :func:`mean`, dos recíprocos dos dados. Por " +"exemplo, a média harmônica dos valores *a*, *b* e *c* será equivalente a ``3/" +"(1/a + 1/b + 1/c)``." #: ../../library/statistics.rst:124 msgid "" -"The harmonic mean is a type of average, a measure of the central location of" -" the data. It is often appropriate when averaging quantities which are " -"rates or ratios, for example speeds. For example:" +"The harmonic mean is a type of average, a measure of the central location of " +"the data. It is often appropriate when averaging quantities which are rates " +"or ratios, for example speeds. For example:" msgstr "" +"A média harmônica, como toda média, é uma medida da localização central dos " +"dados. Ela costuma ser apropriada quanto estamos tirando média de " +"quantidades que representam taxas ou razões, como velocidade. Por exemplo:" #: ../../library/statistics.rst:128 msgid "" @@ -233,25 +276,35 @@ msgid "" "companies, with P/E (price/earning) ratios of 2.5, 3 and 10. What is the " "average P/E ratio for the investor's portfolio?" msgstr "" +"Suponha que um investidor compre um valor igual de ações em cada uma de três " +"companhias diferentes com uma razão P/L (preço/lucro) de 2,5, 3 e 10. Qual é " +"a razão P/L média da carteira de investimentos desse investidor?" #: ../../library/statistics.rst:137 msgid "" -"Using the arithmetic mean would give an average of about 5.167, which is too" -" high." +"Using the arithmetic mean would give an average of about 5.167, which is too " +"high." msgstr "" +"Usando a média aritmética, teríamos um valor de aproximadamente 5.167, que é " +"muito alto." #: ../../library/statistics.rst:140 msgid "" ":exc:`StatisticsError` is raised if *data* is empty, or any element is less " "than zero." msgstr "" +":exc:`StatisticsError` é levantado se *data* for vazio ou se qualquer " +"elemento for menor que zero." #: ../../library/statistics.rst:148 msgid "" -"Return the median (middle value) of numeric data, using the common \"mean of" -" middle two\" method. If *data* is empty, :exc:`StatisticsError` is raised." -" *data* can be a sequence or iterator." +"Return the median (middle value) of numeric data, using the common \"mean of " +"middle two\" method. If *data* is empty, :exc:`StatisticsError` is raised. " +"*data* can be a sequence or iterator." msgstr "" +"Retorna a mediana (o valor do meio) de dados numéricos, usando o método " +"comum de \"média entre os dois do meio\". Se *data* for vazio, :exc:" +"`StatisticsError` é levantado. *data* pode ser uma sequência ou um iterador." #: ../../library/statistics.rst:152 msgid "" @@ -259,35 +312,48 @@ msgid "" "the presence of outliers in your data. When the number of data points is " "odd, the middle data point is returned:" msgstr "" +"A mediana é uma medida robusta da localização central e é menos afetada pela " +"presença de valores muito discrepantes nos seus dados. Quando o número de " +"elementos nos dados for ímpar, o valor que fica no meio da sequência é " +"retornado:" #: ../../library/statistics.rst:161 msgid "" -"When the number of data points is even, the median is interpolated by taking" -" the average of the two middle values:" +"When the number of data points is even, the median is interpolated by taking " +"the average of the two middle values:" msgstr "" +"Quando o número de elementos for par, a mediana é calculada tomando a média " +"entre os dois valores no meio:" #: ../../library/statistics.rst:169 msgid "" "This is suited for when your data is discrete, and you don't mind that the " "median may not be an actual data point." msgstr "" +"Isso serve quando seus dados forem discretos e você não se importa que a " +"média possa não ser um valor que de fato ocorre nos seus dados." #: ../../library/statistics.rst:172 msgid "" -"If your data is ordinal (supports order operations) but not numeric (doesn't" -" support addition), you should use :func:`median_low` or :func:`median_high`" -" instead." +"If your data is ordinal (supports order operations) but not numeric (doesn't " +"support addition), you should use :func:`median_low` or :func:`median_high` " +"instead." msgstr "" +"Caso os seus dados sejam ordinais (ou seja, suportam operações de ordenação) " +"mas não são numéricos (não suportam adição), você deve usar :func:" +"`median_low` ou :func:`median_high` no lugar." #: ../../library/statistics.rst:176 msgid ":func:`median_low`, :func:`median_high`, :func:`median_grouped`" -msgstr "" +msgstr ":func:`median_low`, :func:`median_high`, :func:`median_grouped`" #: ../../library/statistics.rst:181 msgid "" -"Return the low median of numeric data. If *data* is empty, " -":exc:`StatisticsError` is raised. *data* can be a sequence or iterator." +"Return the low median of numeric data. If *data* is empty, :exc:" +"`StatisticsError` is raised. *data* can be a sequence or iterator." msgstr "" +"Retorna a mediana inferior de dados numéricos. Se *data* for vazio, :exc:" +"`StatisticsError` é levantado. *data* pode ser uma sequência ou um iterador." #: ../../library/statistics.rst:184 msgid "" @@ -295,110 +361,155 @@ msgid "" "points is odd, the middle value is returned. When it is even, the smaller " "of the two middle values is returned." msgstr "" +"A mediana inferior sempre é um membro do conjunto de dados. Quando o número " +"de elementos for ímpar, o valor intermediário é retornado. Se houver um " +"número par de elementos, o menor entre os dois valores centrais é retornado." #: ../../library/statistics.rst:195 msgid "" "Use the low median when your data are discrete and you prefer the median to " "be an actual data point rather than interpolated." msgstr "" +"Use :func:`median_low` quando seus dados são discretos e você prefere que a " +"mediana seja um valor que de fato existe nos seus dados ao invés de um valor " +"interpolado." #: ../../library/statistics.rst:201 msgid "" "Return the high median of data. If *data* is empty, :exc:`StatisticsError` " "is raised. *data* can be a sequence or iterator." msgstr "" +"Retorna a mediana superior de dados numéricos. Se *data* for vazio, :exc:" +"`StatisticsError` é levantado. *data* pode ser uma sequência ou um iterador." #: ../../library/statistics.rst:204 msgid "" -"The high median is always a member of the data set. When the number of data" -" points is odd, the middle value is returned. When it is even, the larger " -"of the two middle values is returned." +"The high median is always a member of the data set. When the number of data " +"points is odd, the middle value is returned. When it is even, the larger of " +"the two middle values is returned." msgstr "" +"A mediana superior sempre é um membro do conjunto de dados. Quando o número " +"de elementos for ímpar, o valor intermediário é retornado. Se houver um " +"número par de elementos, o maior entre os dois valores centrais é retornado." #: ../../library/statistics.rst:215 msgid "" -"Use the high median when your data are discrete and you prefer the median to" -" be an actual data point rather than interpolated." +"Use the high median when your data are discrete and you prefer the median to " +"be an actual data point rather than interpolated." msgstr "" +"Use :func:`median_high` quando seus dados são discretos e você prefere que a " +"mediana seja um valor que de fato existe nos seus dados ao invés de um valor " +"interpolado." #: ../../library/statistics.rst:221 msgid "" "Return the median of grouped continuous data, calculated as the 50th " -"percentile, using interpolation. If *data* is empty, :exc:`StatisticsError`" -" is raised. *data* can be a sequence or iterator." +"percentile, using interpolation. If *data* is empty, :exc:`StatisticsError` " +"is raised. *data* can be a sequence or iterator." msgstr "" +"Retorna a media de dados contínuos agrupados, calculada como o 50º " +"percentil, usando de interpolação. Se *data* for vazio, :exc:" +"`StatisticsError` é levantado. *data* pode ser uma sequência ou um iterador." #: ../../library/statistics.rst:230 msgid "" "In the following example, the data are rounded, so that each value " -"represents the midpoint of data classes, e.g. 1 is the midpoint of the class" -" 0.5--1.5, 2 is the midpoint of 1.5--2.5, 3 is the midpoint of 2.5--3.5, " -"etc. With the data given, the middle value falls somewhere in the class 3.5" -"--4.5, and interpolation is used to estimate it:" +"represents the midpoint of data classes, e.g. 1 is the midpoint of the class " +"0.5--1.5, 2 is the midpoint of 1.5--2.5, 3 is the midpoint of 2.5--3.5, " +"etc. With the data given, the middle value falls somewhere in the class " +"3.5--4.5, and interpolation is used to estimate it:" msgstr "" +"No exemplo a seguir, os dados estão arredondados de forma que cada valor " +"representa o ponto intermediário de classes de dados. Isto é, 1 é o meio da " +"classe 0.5--1.5, 2 é o meio de 1.5--2.5, 3 é o meio de 2.5--3.5, etc. Com os " +"dados oferecidos, o valor do meio cai em algum ponto na classe 3.5--4.5 e " +"interpolação é usada para estimá-lo:" #: ../../library/statistics.rst:241 msgid "" "Optional argument *interval* represents the class interval, and defaults to " "1. Changing the class interval naturally will change the interpolation:" msgstr "" +"O argumento opcional *interval* representa a classe de intervalo e tem como " +"valor padrão 1. Mudar a classe de intervalo irá mudar a interpolação:" #: ../../library/statistics.rst:251 msgid "" -"This function does not check whether the data points are at least *interval*" -" apart." +"This function does not check whether the data points are at least *interval* " +"apart." msgstr "" +"Essa função não checa se os pontos de dados estão separados por uma " +"distância que seja ao menos igual à *interval*" #: ../../library/statistics.rst:256 msgid "" "Under some circumstances, :func:`median_grouped` may coerce data points to " "floats. This behaviour is likely to change in the future." msgstr "" +"Em algumas circunstâncias :func:`median_grouped` pode forçar os pontos de " +"dados a serem floats. Esse comportamento provavelmente irá mudar no futuro." #: ../../library/statistics.rst:261 msgid "" "\"Statistics for the Behavioral Sciences\", Frederick J Gravetter and Larry " "B Wallnau (8th Edition)." msgstr "" +"\"Statistics for the Behavioral Sciences\", Frederick J Gravetter and Larry " +"B Wallnau (8th Edition)." #: ../../library/statistics.rst:264 msgid "" -"The `SSMEDIAN `_ function in the Gnome Gnumeric spreadsheet, " -"including `this discussion `_." +"The `SSMEDIAN `_ function in the Gnome Gnumeric " +"spreadsheet, including `this discussion `_." msgstr "" +"A função SSMEDIAN `_ na planilha Gnome Gnumeric, incluindo " +"essa discussão `_." #: ../../library/statistics.rst:272 msgid "" -"Return the most common data point from discrete or nominal *data*. The mode" -" (when it exists) is the most typical value, and is a robust measure of " +"Return the most common data point from discrete or nominal *data*. The mode " +"(when it exists) is the most typical value, and is a robust measure of " "central location." msgstr "" +"Retorna o valor mais comum em dados discretos ou nominais. A moda - quando " +"ela existe - é o valor mais típico e é uma medida robusta da localização " +"central" #: ../../library/statistics.rst:276 msgid "" -"If *data* is empty, or if there is not exactly one most common value, " -":exc:`StatisticsError` is raised." +"If *data* is empty, or if there is not exactly one most common value, :exc:" +"`StatisticsError` is raised." msgstr "" +"Se *data* for vazio ou se não tem exatamente um valor mais comum, :exc:" +"`StatisticsError` é levantado." #: ../../library/statistics.rst:279 msgid "" "``mode`` assumes discrete data, and returns a single value. This is the " "standard treatment of the mode as commonly taught in schools:" msgstr "" +"``mode`` assume que os dados são discretos e retorna um único valor. Esse é " +"o tratamento padrão do conceito de moda normalmente ensinado nas escolas:" #: ../../library/statistics.rst:287 msgid "" "The mode is unique in that it is the only statistic which also applies to " "nominal (non-numeric) data:" msgstr "" +"A moda é única no sentido que é a única medida estatística que também se " +"aplica a dados nominais (não numéricos):" #: ../../library/statistics.rst:298 msgid "" "Return the population standard deviation (the square root of the population " "variance). See :func:`pvariance` for arguments and other details." msgstr "" +"Retorna o desvio padrão da população. Ou seja, a raíz quadrada da variância " +"da população. Veja os argumentos e outros detalhes em :func:`pvariance`." #: ../../library/statistics.rst:309 msgid "" @@ -408,6 +519,11 @@ msgid "" "that the data is spread out; a small variance indicates it is clustered " "closely around the mean." msgstr "" +"Retorna a variância populacional de *data*, que deve ser um iterável não " +"vazio de números reais. A variância, o segundo Momento Estatístico sobre a " +"média é uma medida da variabilidade (espalhamento ou dispersão) dos dados. " +"Uma variância grande indica que os dados são espalhados; uma variância menor " +"indica que os dados estão agrupado em volta da média." #: ../../library/statistics.rst:315 msgid "" @@ -415,6 +531,9 @@ msgid "" "*data*. If it is missing or ``None`` (the default), the mean is " "automatically calculated." msgstr "" +"Se o segundo argumento opcional *mu* for dado, ele deve representar a média " +"de *data*. Se ele não estiver presente ou for ``None``, a média será " +"automaticamente calculada." #: ../../library/statistics.rst:319 msgid "" @@ -422,10 +541,13 @@ msgid "" "estimate the variance from a sample, the :func:`variance` function is " "usually a better choice." msgstr "" +"Use essa função para calcular a variância de toda a população. Para estimar " +"a variância de uma amostra, a função :func:`variance` costuma ser uma " +"escolha melhor." #: ../../library/statistics.rst:323 msgid "Raises :exc:`StatisticsError` if *data* is empty." -msgstr "" +msgstr "Causa :exc:`StatisticsError` se *data* for vazio." #: ../../library/statistics.rst:325 ../../library/statistics.rst:399 msgid "Examples:" @@ -433,9 +555,11 @@ msgstr "Exemplos:" #: ../../library/statistics.rst:333 msgid "" -"If you have already calculated the mean of your data, you can pass it as the" -" optional second argument *mu* to avoid recalculation:" +"If you have already calculated the mean of your data, you can pass it as the " +"optional second argument *mu* to avoid recalculation:" msgstr "" +"Se você já calculou a média dos seus dados, você pode passar o valor no " +"segundo argumento opcional *mu* para evitar recálculos:" #: ../../library/statistics.rst:342 msgid "" @@ -443,6 +567,9 @@ msgid "" "mean as *mu*. Using arbitrary values for *mu* may lead to invalid or " "impossible results." msgstr "" +"Essa função não tentar verificar que você passou a média verdadeira em *mu*. " +"Se você passar um valor arbitrário para *mu*, poderá ter resultados " +"inválidos ou impossíveis." #: ../../library/statistics.rst:346 msgid "Decimals and Fractions are supported:" @@ -451,15 +578,15 @@ msgstr "" #: ../../library/statistics.rst:360 msgid "" "When called with the entire population, this gives the population variance " -"σ². When called on a sample instead, this is the biased sample variance s²," -" also known as variance with N degrees of freedom." +"σ². When called on a sample instead, this is the biased sample variance s², " +"also known as variance with N degrees of freedom." msgstr "" #: ../../library/statistics.rst:364 msgid "" -"If you somehow know the true population mean μ, you may use this function to" -" calculate the variance of a sample, giving the known population mean as the" -" second argument. Provided the data points are representative (e.g. " +"If you somehow know the true population mean μ, you may use this function to " +"calculate the variance of a sample, giving the known population mean as the " +"second argument. Provided the data points are representative (e.g. " "independent and identically distributed), the result will be an unbiased " "estimate of the population variance." msgstr "" @@ -488,8 +615,8 @@ msgstr "" #: ../../library/statistics.rst:394 msgid "" -"Use this function when your data is a sample from a population. To calculate" -" the variance from the entire population, see :func:`pvariance`." +"Use this function when your data is a sample from a population. To calculate " +"the variance from the entire population, see :func:`pvariance`." msgstr "" #: ../../library/statistics.rst:397 @@ -498,8 +625,8 @@ msgstr "" #: ../../library/statistics.rst:407 msgid "" -"If you have already calculated the mean of your data, you can pass it as the" -" optional second argument *xbar* to avoid recalculation:" +"If you have already calculated the mean of your data, you can pass it as the " +"optional second argument *xbar* to avoid recalculation:" msgstr "" #: ../../library/statistics.rst:416 @@ -523,8 +650,8 @@ msgstr "" #: ../../library/statistics.rst:439 msgid "" -"If you somehow know the actual population mean μ you should pass it to the " -":func:`pvariance` function as the *mu* parameter to get the variance of a " +"If you somehow know the actual population mean μ you should pass it to the :" +"func:`pvariance` function as the *mu* parameter to get the variance of a " "sample." msgstr "" diff --git a/library/stdtypes.po b/library/stdtypes.po index f5089eca3..d447e94ec 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Victor Matheus Castro , 2019 # Adorilson Bezerra , 2019 @@ -12,16 +12,19 @@ # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 -# +# Rafael Fontenelle , 2020 +# Vinicius Gubiani Ferreira , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-20 03:32+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:16+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Vinicius Gubiani Ferreira , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -68,10 +71,10 @@ msgid "" msgstr "" "Alguns operadores são suportados por diversos tipos de objeto; em " "particular, praticamente todos os objetos podem ser comparados, testados " -"para o valor verdade, e convertidos para uma string (com a função " -":func:`repr` ou a função ligeiramente diferente :func:`str` ). A última " -"função nesse caso é implicitamente usada quando um objeto é escrito pela " -"função :func:`print`." +"para o valor verdade, e convertidos para uma string (com a função :func:" +"`repr` ou a função ligeiramente diferente :func:`str` ). A última função " +"nesse caso é implicitamente usada quando um objeto é escrito pela função :" +"func:`print`." #: ../../library/stdtypes.rst:32 msgid "Truth Value Testing" @@ -79,20 +82,23 @@ msgstr "Teste do Valor Verdade" #: ../../library/stdtypes.rst:41 msgid "" -"Any object can be tested for truth value, for use in an :keyword:`if` or " -":keyword:`while` condition or as operand of the Boolean operations below." +"Any object can be tested for truth value, for use in an :keyword:`if` or :" +"keyword:`while` condition or as operand of the Boolean operations below." msgstr "" +"Qualquer objeto pode ser testado quanto ao valor de verdade, para uso em uma " +"condição :keyword:`if` ou :keyword:`while` ou como operando das operações " +"booleanas abaixo." #: ../../library/stdtypes.rst:46 msgid "" -"By default, an object is considered true unless its class defines either a " -":meth:`__bool__` method that returns ``False`` or a :meth:`__len__` method " +"By default, an object is considered true unless its class defines either a :" +"meth:`__bool__` method that returns ``False`` or a :meth:`__len__` method " "that returns zero, when called with the object. [1]_ Here are most of the " "built-in objects considered false:" msgstr "" "Por padrão, um objeto é considerado verdadeiro, a menos que sua a classe " -"defina um método :meth:`__bool__` que retorne ``False`` ou um método método " -":meth:` __len__` que retorna zero, quando chamado com o objeto. [1]_ Aqui " +"defina um método :meth:`__bool__` que retorne ``False`` ou um método método :" +"meth:` __len__` que retorna zero, quando chamado com o objeto. [1]_ Aqui " "estão a maioria dos objetos built-ins considerados falsos:" #: ../../library/stdtypes.rst:55 @@ -124,36 +130,35 @@ msgid "" msgstr "" "Operações e funções embutidas que têm um resultado Booleano retornam ``0`` " "ou ``False`` para falso e ``1`` ou ``True`` para verdadeiro, salvo " -"indicações ao contrário. (Exceção importante: as operações Booleanas ``or``" -" e ``and`` sempre retornam um de seus operandos.)" +"indicações ao contrário. (Exceção importante: as operações Booleanas ``or`` " +"e ``and`` sempre retornam um de seus operandos.)" #: ../../library/stdtypes.rst:78 -msgid "" -"Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" +msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" msgstr "" +"Operações booleanas --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`" #: ../../library/stdtypes.rst:82 msgid "These are the Boolean operations, ordered by ascending priority:" -msgstr "" -"Esses são as operações Booleanas, ordenados por prioridade ascendente:" +msgstr "Esses são as operações Booleanas, ordenados por prioridade ascendente:" #: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:143 -#: ../../library/stdtypes.rst:274 ../../library/stdtypes.rst:363 -#: ../../library/stdtypes.rst:413 ../../library/stdtypes.rst:855 -#: ../../library/stdtypes.rst:1050 +#: ../../library/stdtypes.rst:276 ../../library/stdtypes.rst:365 +#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:857 +#: ../../library/stdtypes.rst:1052 msgid "Operation" msgstr "Operação" -#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:274 -#: ../../library/stdtypes.rst:363 ../../library/stdtypes.rst:413 -#: ../../library/stdtypes.rst:855 ../../library/stdtypes.rst:1050 +#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:276 +#: ../../library/stdtypes.rst:365 ../../library/stdtypes.rst:415 +#: ../../library/stdtypes.rst:857 ../../library/stdtypes.rst:1052 msgid "Result" msgstr "Resultado" -#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:274 -#: ../../library/stdtypes.rst:413 ../../library/stdtypes.rst:855 -#: ../../library/stdtypes.rst:1050 ../../library/stdtypes.rst:2202 -#: ../../library/stdtypes.rst:3334 +#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:276 +#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:857 +#: ../../library/stdtypes.rst:1052 ../../library/stdtypes.rst:2204 +#: ../../library/stdtypes.rst:3336 msgid "Notes" msgstr "Notas" @@ -165,10 +170,10 @@ msgstr "``x or y``" msgid "if *x* is false, then *y*, else *x*" msgstr "se *x* é falso, então *y*, do contrário *x*" -#: ../../library/stdtypes.rst:87 ../../library/stdtypes.rst:284 -#: ../../library/stdtypes.rst:857 ../../library/stdtypes.rst:860 -#: ../../library/stdtypes.rst:1061 ../../library/stdtypes.rst:2208 -#: ../../library/stdtypes.rst:3340 +#: ../../library/stdtypes.rst:87 ../../library/stdtypes.rst:286 +#: ../../library/stdtypes.rst:859 ../../library/stdtypes.rst:862 +#: ../../library/stdtypes.rst:1063 ../../library/stdtypes.rst:2210 +#: ../../library/stdtypes.rst:3342 msgid "\\(1)" msgstr "\\(1)" @@ -180,10 +185,10 @@ msgstr "``x and y``" msgid "if *x* is false, then *x*, else *y*" msgstr "se *x* é falso, então *x*, do contrário *y*" -#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:287 -#: ../../library/stdtypes.rst:307 ../../library/stdtypes.rst:1089 -#: ../../library/stdtypes.rst:2212 ../../library/stdtypes.rst:2214 -#: ../../library/stdtypes.rst:3344 ../../library/stdtypes.rst:3346 +#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:289 +#: ../../library/stdtypes.rst:309 ../../library/stdtypes.rst:1091 +#: ../../library/stdtypes.rst:2214 ../../library/stdtypes.rst:2216 +#: ../../library/stdtypes.rst:3346 ../../library/stdtypes.rst:3348 msgid "\\(2)" msgstr "\\(2)" @@ -195,19 +200,19 @@ msgstr "``not x``" msgid "if *x* is false, then ``True``, else ``False``" msgstr "se *x* é falso, então ``True``, caso contrário ``False``" -#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:869 -#: ../../library/stdtypes.rst:1092 ../../library/stdtypes.rst:2216 -#: ../../library/stdtypes.rst:2218 ../../library/stdtypes.rst:2220 -#: ../../library/stdtypes.rst:2222 ../../library/stdtypes.rst:3348 -#: ../../library/stdtypes.rst:3350 ../../library/stdtypes.rst:3352 -#: ../../library/stdtypes.rst:3354 +#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:871 +#: ../../library/stdtypes.rst:1094 ../../library/stdtypes.rst:2218 +#: ../../library/stdtypes.rst:2220 ../../library/stdtypes.rst:2222 +#: ../../library/stdtypes.rst:2224 ../../library/stdtypes.rst:3350 +#: ../../library/stdtypes.rst:3352 ../../library/stdtypes.rst:3354 +#: ../../library/stdtypes.rst:3356 msgid "\\(3)" msgstr "\\(3)" -#: ../../library/stdtypes.rst:102 ../../library/stdtypes.rst:318 -#: ../../library/stdtypes.rst:431 ../../library/stdtypes.rst:896 -#: ../../library/stdtypes.rst:1100 ../../library/stdtypes.rst:2248 -#: ../../library/stdtypes.rst:3384 +#: ../../library/stdtypes.rst:102 ../../library/stdtypes.rst:320 +#: ../../library/stdtypes.rst:433 ../../library/stdtypes.rst:898 +#: ../../library/stdtypes.rst:1102 ../../library/stdtypes.rst:2250 +#: ../../library/stdtypes.rst:3386 msgid "Notes:" msgstr "Notas:" @@ -216,16 +221,16 @@ msgid "" "This is a short-circuit operator, so it only evaluates the second argument " "if the first one is false." msgstr "" -"Esse é um operador de curto-circuito, por isso só avalia o segundo argumento" -" se o primeiro é falso." +"Esse é um operador de curto-circuito, por isso só avalia o segundo argumento " +"se o primeiro é falso." #: ../../library/stdtypes.rst:109 msgid "" "This is a short-circuit operator, so it only evaluates the second argument " "if the first one is true." msgstr "" -"Este é um operador de curto-circuito, por isso só avalia o segundo argumento" -" se o primeiro é verdadeiro." +"Este é um operador de curto-circuito, por isso só avalia o segundo argumento " +"se o primeiro é verdadeiro." #: ../../library/stdtypes.rst:113 msgid "" @@ -243,25 +248,25 @@ msgstr "Comparações" #: ../../library/stdtypes.rst:134 msgid "" "There are eight comparison operations in Python. They all have the same " -"priority (which is higher than that of the Boolean operations). Comparisons" -" can be chained arbitrarily; for example, ``x < y <= z`` is equivalent to " -"``x < y and y <= z``, except that *y* is evaluated only once (but in both " -"cases *z* is not evaluated at all when ``x < y`` is found to be false)." +"priority (which is higher than that of the Boolean operations). Comparisons " +"can be chained arbitrarily; for example, ``x < y <= z`` is equivalent to ``x " +"< y and y <= z``, except that *y* is evaluated only once (but in both cases " +"*z* is not evaluated at all when ``x < y`` is found to be false)." msgstr "" "Há oito operadores comparativos no Python. Todos eles possuem a mesma " "prioridade (que é maior do que aquela das operações Booleanas). Comparações " "podem ser acorrentadas arbitrariamente; por exemplo, ``x < y <= z`` é " -"equivalente a ``x < y and y <= z``, exceto que *y* é avaliado apenas uma vez" -" (porém em ambos os casos *z* não é avaliado de todo quando ``x < y`` é " +"equivalente a ``x < y and y <= z``, exceto que *y* é avaliado apenas uma vez " +"(porém em ambos os casos *z* não é avaliado de todo quando ``x < y`` é " "sabido ser falso)." #: ../../library/stdtypes.rst:140 msgid "This table summarizes the comparison operations:" msgstr "Esta tabela resume as operações de comparação:" -#: ../../library/stdtypes.rst:143 ../../library/stdtypes.rst:2179 -#: ../../library/stdtypes.rst:2202 ../../library/stdtypes.rst:3311 -#: ../../library/stdtypes.rst:3334 +#: ../../library/stdtypes.rst:143 ../../library/stdtypes.rst:2181 +#: ../../library/stdtypes.rst:2204 ../../library/stdtypes.rst:3313 +#: ../../library/stdtypes.rst:3336 msgid "Meaning" msgstr "Significado" @@ -334,17 +339,17 @@ msgid "" "Objects of different types, except different numeric types, never compare " "equal. Furthermore, some types (for example, function objects) support only " "a degenerate notion of comparison where any two objects of that type are " -"unequal. The ``<``, ``<=``, ``>`` and ``>=`` operators will raise a " -":exc:`TypeError` exception when comparing a complex number with another " -"built-in numeric type, when the objects are of different types that cannot " -"be compared, or in other cases where there is no defined ordering." +"unequal. The ``<``, ``<=``, ``>`` and ``>=`` operators will raise a :exc:" +"`TypeError` exception when comparing a complex number with another built-in " +"numeric type, when the objects are of different types that cannot be " +"compared, or in other cases where there is no defined ordering." msgstr "" "Objetos de tipos diferentes, exceto tipos diferentes numéricos, nunca " "comparam igual. Além disso, alguns tipos (por exemplo, objetos função) " "suportam apenas uma noção degenerada de comparação onde dois objetos desse " "tipo são desiguais. O operador ``<``, ``<=``, ``>`` e ``>=`` irá elencar a " -"exceção :exc:`TypeError` quando comparando um número complexo com outro tipo" -" numérico embutido, quando os objetos são de diferentes tipos que não podem " +"exceção :exc:`TypeError` quando comparando um número complexo com outro tipo " +"numérico embutido, quando os objetos são de diferentes tipos que não podem " "ser comparados, ou em outros casos quando não há ordem definida." #: ../../library/stdtypes.rst:182 @@ -358,18 +363,17 @@ msgstr "" #: ../../library/stdtypes.rst:185 msgid "" "Instances of a class cannot be ordered with respect to other instances of " -"the same class, or other types of object, unless the class defines enough of" -" the methods :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, and " -":meth:`__ge__` (in general, :meth:`__lt__` and :meth:`__eq__` are " -"sufficient, if you want the conventional meanings of the comparison " -"operators)." +"the same class, or other types of object, unless the class defines enough of " +"the methods :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, and :meth:" +"`__ge__` (in general, :meth:`__lt__` and :meth:`__eq__` are sufficient, if " +"you want the conventional meanings of the comparison operators)." msgstr "" "Instâncias de uma classe não podem ser ordenadas com respeito a outras " -"instâncias da mesma classe, ou outros tipos de objeto, ao menos que a classe" -" defina o suficiente de métodos :meth:`__lt__`, :meth:`__le__`, " -":meth:`__gt__`, e :meth:`__ge__` (no geral, :meth:`__lt__` e :meth:`__eq__` " -"são suficientes, se você quiser o significado convencional dos operadores de" -" comparação)." +"instâncias da mesma classe, ou outros tipos de objeto, ao menos que a classe " +"defina o suficiente de métodos :meth:`__lt__`, :meth:`__le__`, :meth:" +"`__gt__`, e :meth:`__ge__` (no geral, :meth:`__lt__` e :meth:`__eq__` são " +"suficientes, se você quiser o significado convencional dos operadores de " +"comparação)." #: ../../library/stdtypes.rst:191 msgid "" @@ -377,16 +381,19 @@ msgid "" "customized; also they can be applied to any two objects and never raise an " "exception." msgstr "" -"O comportamento dos operadores de palavra chave :keyword:`is` e :keyword:`is" -" not` não podem ser personalizados; além disso eles podem ser aplicados a " +"O comportamento dos operadores de palavra chave :keyword:`is` e :keyword:`is " +"not` não podem ser personalizados; além disso eles podem ser aplicados a " "qualquer objeto e nunca criam uma exceção." #: ../../library/stdtypes.rst:199 msgid "" -"Two more operations with the same syntactic priority, :keyword:`in` and " -":keyword:`not in`, are supported by types that are :term:`iterable` or " +"Two more operations with the same syntactic priority, :keyword:`in` and :" +"keyword:`not in`, are supported by types that are :term:`iterable` or " "implement the :meth:`__contains__` method." msgstr "" +"Mais duas operações com a mesma prioridade sintática, :keyword:`in` e :" +"keyword:`not in`, são suportadas por tipos que são :term:`iterable` ou " +"implementam o método :meth:`__contains__`." #: ../../library/stdtypes.rst:206 msgid "Numeric Types --- :class:`int`, :class:`float`, :class:`complex`" @@ -399,13 +406,12 @@ msgid "" "subtype of integers. Integers have unlimited precision. Floating point " "numbers are usually implemented using :c:type:`double` in C; information " "about the precision and internal representation of floating point numbers " -"for the machine on which your program is running is available in " -":data:`sys.float_info`. Complex numbers have a real and imaginary part, " -"which are each a floating point number. To extract these parts from a " -"complex number *z*, use ``z.real`` and ``z.imag``. (The standard library " -"includes additional numeric types, :mod:`fractions` that hold rationals, and" -" :mod:`decimal` that hold floating-point numbers with user-definable " -"precision.)" +"for the machine on which your program is running is available in :data:`sys." +"float_info`. Complex numbers have a real and imaginary part, which are each " +"a floating point number. To extract these parts from a complex number *z*, " +"use ``z.real`` and ``z.imag``. (The standard library includes additional " +"numeric types, :mod:`fractions` that hold rationals, and :mod:`decimal` that " +"hold floating-point numbers with user-definable precision.)" msgstr "" "Há três tipos numéricos distintos: :dfn:`integers`, :dfn:`floating point " "numbers`, e :dfn:`complex numbers`. Além do mais, Booleanos são um subtipo " @@ -415,10 +421,10 @@ msgstr "" "flutuante para a máquina na qual o seu programa está rodando é " "disponibilizada em :data:`sys.float_info`. Números complexos possuem uma " "parte real e imaginária, no qual cada uma é um número de ponto flutuante. " -"Para extrair essas partes de um número complexo *z*, use ``z.real`` e " -"``z.imag``. (A biblioteca padrão inclui tipos numéricos adicionais, " -":mod:`fractions` que possuem racionais, e :mod:`decimal` que possuem números" -" de ponto flutuante com precisão definida pelo usuário)." +"Para extrair essas partes de um número complexo *z*, use ``z.real`` e ``z." +"imag``. (A biblioteca padrão inclui tipos numéricos adicionais, :mod:" +"`fractions` que possuem racionais, e :mod:`decimal` que possuem números de " +"ponto flutuante com precisão definida pelo usuário)." #: ../../library/stdtypes.rst:238 msgid "" @@ -426,16 +432,16 @@ msgid "" "functions and operators. Unadorned integer literals (including hex, octal " "and binary numbers) yield integers. Numeric literals containing a decimal " "point or an exponent sign yield floating point numbers. Appending ``'j'`` " -"or ``'J'`` to a numeric literal yields an imaginary number (a complex number" -" with a zero real part) which you can add to an integer or float to get a " +"or ``'J'`` to a numeric literal yields an imaginary number (a complex number " +"with a zero real part) which you can add to an integer or float to get a " "complex number with real and imaginary parts." msgstr "" "Números são criados por literais numéricos ou como resultado de funções " "embarcadas e operadoras. Integrais literais planos (incluindo números " "hexadecimais, octais e binários) culminam em integrais. Literais numéricos " "contendo um ponto decimal ou um sinal exponencial resultam em números de " -"ponto flutuante. Anexando ``'j'`` ou ``'J'``para um literal numérico resulta" -" em um número imaginário (um número complexo com uma parte real zero) com a " +"ponto flutuante. Anexando ``'j'`` ou ``'J'``para um literal numérico resulta " +"em um número imaginário (um número complexo com uma parte real zero) com a " "qual você pode adicionar a um integral ou flutuante para receber um número " "complexo com partes reais e imaginárias." @@ -444,203 +450,212 @@ msgid "" "Python fully supports mixed arithmetic: when a binary arithmetic operator " "has operands of different numeric types, the operand with the \"narrower\" " "type is widened to that of the other, where integer is narrower than " -"floating point, which is narrower than complex. Comparisons between numbers" -" of mixed type use the same rule. [2]_ The constructors :func:`int`, " -":func:`float`, and :func:`complex` can be used to produce numbers of a " -"specific type." +"floating point, which is narrower than complex. A comparison between numbers " +"of different types behaves as though the exact values of those numbers were " +"being compared. [2]_" msgstr "" -"O Python suporta completamente aritmética mista: quando um operador " -"aritmético binário possui operandos de diferentes tipos numéricos, o " -"operando com o tipo \"mais estreito\" é ampliado para aquele do outro, onde " -"o integral é mais estreito do que o ponto flutuante, que é mais estreito que" -" número complexo. Comparações entre números de tipos mistos usam a mesma " -"regra. [2]_ Os construtores :func:`int`, :func:`float`, e :func:`complex` " -"podem ser usados para produzir números de um tipo específico. " +"Python suporta completamente aritmética mista: quando um operador de " +"aritmética binária tem operandos de tipos numéricos diferentes, o operando " +"com o tipo mais \"estreito\" é ampliado para o tipo do outro operando, onde " +"um inteiro é mais estreito do que um ponto flutuante, que por sua vez é mais " +"estreito que um número complexo. Uma comparação entre números de diferentes " +"tipos se comporta como se os valores exatos desses números estivessem sendo " +"comparados. [2]_" -#: ../../library/stdtypes.rst:270 +#: ../../library/stdtypes.rst:269 +msgid "" +"The constructors :func:`int`, :func:`float`, and :func:`complex` can be used " +"to produce numbers of a specific type." +msgstr "" +"Os construtores :func:`int`, :func:`float`, e :func:`complex` podem ser " +"usados para produzir números de um tipo específico." + +#: ../../library/stdtypes.rst:272 msgid "" "All numeric types (except complex) support the following operations (for " "priorities of the operations, see :ref:`operator-summary`):" msgstr "" +"Todos os tipos numéricos (exceto complexos) suportam as seguintes operações " +"(para prioridades das operações, consulte :ref:`operator-summary`):" -#: ../../library/stdtypes.rst:274 +#: ../../library/stdtypes.rst:276 msgid "Full documentation" msgstr "Documentação completa" -#: ../../library/stdtypes.rst:276 +#: ../../library/stdtypes.rst:278 msgid "``x + y``" msgstr "``x + y``" -#: ../../library/stdtypes.rst:276 +#: ../../library/stdtypes.rst:278 msgid "sum of *x* and *y*" msgstr "soma de *x* e *y*" -#: ../../library/stdtypes.rst:278 +#: ../../library/stdtypes.rst:280 msgid "``x - y``" msgstr "``x - y``" -#: ../../library/stdtypes.rst:278 +#: ../../library/stdtypes.rst:280 msgid "difference of *x* and *y*" msgstr "diferença de * x * e * y *" -#: ../../library/stdtypes.rst:280 +#: ../../library/stdtypes.rst:282 msgid "``x * y``" msgstr "``x * y``" -#: ../../library/stdtypes.rst:280 +#: ../../library/stdtypes.rst:282 msgid "product of *x* and *y*" msgstr "produto de * x * e * y *" -#: ../../library/stdtypes.rst:282 +#: ../../library/stdtypes.rst:284 msgid "``x / y``" msgstr "``x / y``" -#: ../../library/stdtypes.rst:282 +#: ../../library/stdtypes.rst:284 msgid "quotient of *x* and *y*" msgstr "quociente de *x* e *y*" -#: ../../library/stdtypes.rst:284 +#: ../../library/stdtypes.rst:286 msgid "``x // y``" msgstr "``x // y``" -#: ../../library/stdtypes.rst:284 +#: ../../library/stdtypes.rst:286 msgid "floored quotient of *x* and *y*" msgstr "quociente flutuante of *x* and *y*" -#: ../../library/stdtypes.rst:287 +#: ../../library/stdtypes.rst:289 msgid "``x % y``" msgstr "``x % y``" -#: ../../library/stdtypes.rst:287 +#: ../../library/stdtypes.rst:289 msgid "remainder of ``x / y``" msgstr "restante de ``x / y``" -#: ../../library/stdtypes.rst:289 +#: ../../library/stdtypes.rst:291 msgid "``-x``" msgstr "``-x``" -#: ../../library/stdtypes.rst:289 +#: ../../library/stdtypes.rst:291 msgid "*x* negated" msgstr "*x* negado" -#: ../../library/stdtypes.rst:291 +#: ../../library/stdtypes.rst:293 msgid "``+x``" msgstr "``+x``" -#: ../../library/stdtypes.rst:291 +#: ../../library/stdtypes.rst:293 msgid "*x* unchanged" msgstr "*x* inalterado" -#: ../../library/stdtypes.rst:293 +#: ../../library/stdtypes.rst:295 msgid "``abs(x)``" msgstr "``abs(x)``" -#: ../../library/stdtypes.rst:293 +#: ../../library/stdtypes.rst:295 msgid "absolute value or magnitude of *x*" msgstr "valor absoluto ou magnitude de *x*" -#: ../../library/stdtypes.rst:293 +#: ../../library/stdtypes.rst:295 msgid ":func:`abs`" msgstr ":func:`abs`" -#: ../../library/stdtypes.rst:296 +#: ../../library/stdtypes.rst:298 msgid "``int(x)``" msgstr "``int(x)``" -#: ../../library/stdtypes.rst:296 +#: ../../library/stdtypes.rst:298 msgid "*x* converted to integer" msgstr "*x* convertido em inteiro" -#: ../../library/stdtypes.rst:296 +#: ../../library/stdtypes.rst:298 msgid "\\(3)\\(6)" msgstr "\\(3)\\(6)" -#: ../../library/stdtypes.rst:296 +#: ../../library/stdtypes.rst:298 msgid ":func:`int`" msgstr ":func:`int`" -#: ../../library/stdtypes.rst:298 +#: ../../library/stdtypes.rst:300 msgid "``float(x)``" msgstr "``float(x)``" -#: ../../library/stdtypes.rst:298 +#: ../../library/stdtypes.rst:300 msgid "*x* converted to floating point" msgstr "*x* convertido em ponto flutuante" -#: ../../library/stdtypes.rst:298 +#: ../../library/stdtypes.rst:300 msgid "\\(4)\\(6)" msgstr "\\(4)\\(6)" -#: ../../library/stdtypes.rst:298 +#: ../../library/stdtypes.rst:300 msgid ":func:`float`" msgstr ":func:`float`" -#: ../../library/stdtypes.rst:300 +#: ../../library/stdtypes.rst:302 msgid "``complex(re, im)``" msgstr "``complex(re, im)``" -#: ../../library/stdtypes.rst:300 +#: ../../library/stdtypes.rst:302 msgid "" "a complex number with real part *re*, imaginary part *im*. *im* defaults to " "zero." msgstr "" -"um número complexo com parte real *re*, parte imaginária *im*. *im* acarreta" -" em zero." +"um número complexo com parte real *re*, parte imaginária *im*. *im* acarreta " +"em zero." -#: ../../library/stdtypes.rst:300 ../../library/stdtypes.rst:1082 -#: ../../library/stdtypes.rst:2210 ../../library/stdtypes.rst:3371 +#: ../../library/stdtypes.rst:302 ../../library/stdtypes.rst:1084 +#: ../../library/stdtypes.rst:2212 ../../library/stdtypes.rst:3373 msgid "\\(6)" msgstr "\\(6)" -#: ../../library/stdtypes.rst:300 +#: ../../library/stdtypes.rst:302 msgid ":func:`complex`" msgstr ":func:`complex`" -#: ../../library/stdtypes.rst:304 +#: ../../library/stdtypes.rst:306 msgid "``c.conjugate()``" msgstr "``c.conjugate()``" -#: ../../library/stdtypes.rst:304 +#: ../../library/stdtypes.rst:306 msgid "conjugate of the complex number *c*" msgstr "conjugado do número complexo *c*" -#: ../../library/stdtypes.rst:307 +#: ../../library/stdtypes.rst:309 msgid "``divmod(x, y)``" msgstr "``divmod(x, y)``" -#: ../../library/stdtypes.rst:307 +#: ../../library/stdtypes.rst:309 msgid "the pair ``(x // y, x % y)``" msgstr "o par ``(x // y, x % y)``" -#: ../../library/stdtypes.rst:307 +#: ../../library/stdtypes.rst:309 msgid ":func:`divmod`" msgstr ":func:`divmod`" -#: ../../library/stdtypes.rst:309 +#: ../../library/stdtypes.rst:311 msgid "``pow(x, y)``" msgstr "``pow(x, y)``" -#: ../../library/stdtypes.rst:309 ../../library/stdtypes.rst:311 +#: ../../library/stdtypes.rst:311 ../../library/stdtypes.rst:313 msgid "*x* to the power *y*" msgstr "*x* elevado a *y*" -#: ../../library/stdtypes.rst:309 ../../library/stdtypes.rst:311 -#: ../../library/stdtypes.rst:1071 ../../library/stdtypes.rst:1074 -#: ../../library/stdtypes.rst:2235 ../../library/stdtypes.rst:2238 -#: ../../library/stdtypes.rst:2241 ../../library/stdtypes.rst:3367 -#: ../../library/stdtypes.rst:3374 +#: ../../library/stdtypes.rst:311 ../../library/stdtypes.rst:313 +#: ../../library/stdtypes.rst:1073 ../../library/stdtypes.rst:1076 +#: ../../library/stdtypes.rst:2237 ../../library/stdtypes.rst:2240 +#: ../../library/stdtypes.rst:2243 ../../library/stdtypes.rst:3369 +#: ../../library/stdtypes.rst:3376 msgid "\\(5)" msgstr "\\(5)" -#: ../../library/stdtypes.rst:309 +#: ../../library/stdtypes.rst:311 msgid ":func:`pow`" msgstr ":func:`pow`" -#: ../../library/stdtypes.rst:311 +#: ../../library/stdtypes.rst:313 msgid "``x ** y``" msgstr "``x ** y``" -#: ../../library/stdtypes.rst:321 +#: ../../library/stdtypes.rst:323 msgid "" "Also referred to as integer division. The resultant value is a whole " "integer, though the result's type is not necessarily int. The result is " @@ -652,25 +667,25 @@ msgstr "" "resultado é sempre arredondado para menos infinito: ``1//2`` é ``0``, " "``(-1)//2`` é ``-1``, ``1//(-2)`` é ``-1``, e ``(-1)//(-2)`` é ``0``." -#: ../../library/stdtypes.rst:327 +#: ../../library/stdtypes.rst:329 msgid "" "Not for complex numbers. Instead convert to floats using :func:`abs` if " "appropriate." msgstr "" -"Não para números complexos. Ao invés disso converte para flutuantes usando " -":func:`abs` se for apropriado." +"Não para números complexos. Ao invés disso converte para flutuantes usando :" +"func:`abs` se for apropriado." -#: ../../library/stdtypes.rst:339 +#: ../../library/stdtypes.rst:341 msgid "" -"Conversion from floating point to integer may round or truncate as in C; see" -" functions :func:`math.floor` and :func:`math.ceil` for well-defined " +"Conversion from floating point to integer may round or truncate as in C; see " +"functions :func:`math.floor` and :func:`math.ceil` for well-defined " "conversions." msgstr "" "Conversão de ponto flutuante para inteiro pode arredondar ou truncar como " "ocorre em C; veja as funções :func:`math.floor` e :func:`math.ceil` para " "conversões bem definidas." -#: ../../library/stdtypes.rst:344 +#: ../../library/stdtypes.rst:346 msgid "" "float also accepts the strings \"nan\" and \"inf\" with an optional prefix " "\"+\" or \"-\" for Not a Number (NaN) and positive or negative infinity." @@ -679,7 +694,7 @@ msgstr "" "opcional \"+\" ou \"-\" para Não é um Número (NaN) e infinidade positiva ou " "negativa." -#: ../../library/stdtypes.rst:348 +#: ../../library/stdtypes.rst:350 msgid "" "Python defines ``pow(0, 0)`` and ``0 ** 0`` to be ``1``, as is common for " "programming languages." @@ -687,7 +702,7 @@ msgstr "" "Python define ``pow(0, 0)`` e ``0 ** 0`` sendo ``1``, como é comum para " "linguagens de programação." -#: ../../library/stdtypes.rst:352 +#: ../../library/stdtypes.rst:354 msgid "" "The numeric literals accepted include the digits ``0`` to ``9`` or any " "Unicode equivalent (code points with the ``Nd`` property)." @@ -695,14 +710,13 @@ msgstr "" "Os literais numéricos aceitados incluem os dígitos de ``0`` a ``9`` ou " "qualquer equivalente Unicode (pontos de código com a propriedade ``Nd``)." -#: ../../library/stdtypes.rst:355 +#: ../../library/stdtypes.rst:357 msgid "" -"See " -"http://www.unicode.org/Public/10.0.0/ucd/extracted/DerivedNumericType.txt " -"for a complete list of code points with the ``Nd`` property." +"See http://www.unicode.org/Public/10.0.0/ucd/extracted/DerivedNumericType." +"txt for a complete list of code points with the ``Nd`` property." msgstr "" -#: ../../library/stdtypes.rst:359 +#: ../../library/stdtypes.rst:361 msgid "" "All :class:`numbers.Real` types (:class:`int` and :class:`float`) also " "include the following operations:" @@ -710,151 +724,153 @@ msgstr "" "Todos os tipos :class:`numbers.Real` (:class:`int` and :class:`float`) " "também incluem as seguintes operações." -#: ../../library/stdtypes.rst:365 +#: ../../library/stdtypes.rst:367 msgid ":func:`math.trunc(\\ x) `" msgstr ":func:`math.trunc(\\ x) `" -#: ../../library/stdtypes.rst:365 +#: ../../library/stdtypes.rst:367 msgid "*x* truncated to :class:`~numbers.Integral`" msgstr "*x* truncado para :class:`~numbers.Integral`" -#: ../../library/stdtypes.rst:368 +#: ../../library/stdtypes.rst:370 msgid ":func:`round(x[, n]) `" msgstr ":func:`round(x[, n]) 1`" -#: ../../library/stdtypes.rst:368 +#: ../../library/stdtypes.rst:370 msgid "" "*x* rounded to *n* digits, rounding half to even. If *n* is omitted, it " "defaults to 0." msgstr "" -"*x* arredondado para *n* dígitos, arredondando metade para igualar. Se *n* é" -" omitido, ele toma o padrão de 0." +"*x* arredondado para *n* dígitos, arredondando metade para igualar. Se *n* é " +"omitido, ele toma o padrão de 0." -#: ../../library/stdtypes.rst:372 +#: ../../library/stdtypes.rst:374 msgid ":func:`math.floor(\\ x) `" msgstr ":func:`math.floor(\\ x) `" -#: ../../library/stdtypes.rst:372 +#: ../../library/stdtypes.rst:374 msgid "the greatest :class:`~numbers.Integral` <= *x*" msgstr "o maior :class:`~numbers.Integral` <= *x*" -#: ../../library/stdtypes.rst:375 +#: ../../library/stdtypes.rst:377 msgid ":func:`math.ceil(x) `" msgstr ":func:`math.ceil(x) `" -#: ../../library/stdtypes.rst:375 +#: ../../library/stdtypes.rst:377 msgid "the least :class:`~numbers.Integral` >= *x*" msgstr "pelo menos :class:`~numbers.Integral` >= *x*" -#: ../../library/stdtypes.rst:379 +#: ../../library/stdtypes.rst:381 msgid "" "For additional numeric operations see the :mod:`math` and :mod:`cmath` " "modules." msgstr "" -"Para operações numéricas adicionais, consulte os módulos :mod:`math` e " -":mod:`cmath`." +"Para operações numéricas adicionais, consulte os módulos :mod:`math` e :mod:" +"`cmath`." -#: ../../library/stdtypes.rst:388 +#: ../../library/stdtypes.rst:390 msgid "Bitwise Operations on Integer Types" msgstr "Operações de bits em tipos inteiros" -#: ../../library/stdtypes.rst:402 +#: ../../library/stdtypes.rst:404 msgid "" "Bitwise operations only make sense for integers. The result of bitwise " "operations is calculated as though carried out in two's complement with an " "infinite number of sign bits." msgstr "" +"Operações bit a bit só fazem sentido para números inteiros. O resultado de " +"operações bit a bit é calculado como se fosse realizado no complemento de " +"dois com um número infinito de bits de sinal." -#: ../../library/stdtypes.rst:406 +#: ../../library/stdtypes.rst:408 msgid "" "The priorities of the binary bitwise operations are all lower than the " "numeric operations and higher than the comparisons; the unary operation " -"``~`` has the same priority as the other unary numeric operations (``+`` and" -" ``-``)." +"``~`` has the same priority as the other unary numeric operations (``+`` and " +"``-``)." msgstr "" "As prioridades das operações bitwise binárias são todas menores do que as " "operações numéricas e maiores que as comparações; a operação unária ``~`` " -"tem a mesma prioridade que as outras operações numéricas unárias (``+`` e " -"``-``)." +"tem a mesma prioridade que as outras operações numéricas unárias (``+`` e ``-" +"``)." -#: ../../library/stdtypes.rst:410 +#: ../../library/stdtypes.rst:412 msgid "This table lists the bitwise operations sorted in ascending priority:" msgstr "" "Esta tabela lista as operações de bits classificadas em prioridade " "ascendente:" -#: ../../library/stdtypes.rst:415 +#: ../../library/stdtypes.rst:417 msgid "``x | y``" msgstr "``x | y``" -#: ../../library/stdtypes.rst:415 +#: ../../library/stdtypes.rst:417 msgid "bitwise :dfn:`or` of *x* and *y*" msgstr "bitwise :dfn:`or` de *x* e *y*" -#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:418 -#: ../../library/stdtypes.rst:421 ../../library/stdtypes.rst:1095 -#: ../../library/stdtypes.rst:2224 ../../library/stdtypes.rst:2228 -#: ../../library/stdtypes.rst:3356 ../../library/stdtypes.rst:3360 +#: ../../library/stdtypes.rst:417 ../../library/stdtypes.rst:420 +#: ../../library/stdtypes.rst:423 ../../library/stdtypes.rst:1097 +#: ../../library/stdtypes.rst:2226 ../../library/stdtypes.rst:2230 +#: ../../library/stdtypes.rst:3358 ../../library/stdtypes.rst:3362 msgid "\\(4)" msgstr "\\(4)" -#: ../../library/stdtypes.rst:418 +#: ../../library/stdtypes.rst:420 msgid "``x ^ y``" msgstr "``x ^ y``" -#: ../../library/stdtypes.rst:418 +#: ../../library/stdtypes.rst:420 msgid "bitwise :dfn:`exclusive or` of *x* and *y*" msgstr "bitwise :dfn:`exclusive or` de *x* e *y*" -#: ../../library/stdtypes.rst:421 +#: ../../library/stdtypes.rst:423 msgid "``x & y``" msgstr "``x & y``" -#: ../../library/stdtypes.rst:421 +#: ../../library/stdtypes.rst:423 msgid "bitwise :dfn:`and` of *x* and *y*" msgstr "bitwise :dfn:`and` de *x* e *y*" -#: ../../library/stdtypes.rst:424 +#: ../../library/stdtypes.rst:426 msgid "``x << n``" msgstr "``x << n``" -#: ../../library/stdtypes.rst:424 +#: ../../library/stdtypes.rst:426 msgid "*x* shifted left by *n* bits" msgstr "*x* deslocado para a esquerda pelos bits *n*" -#: ../../library/stdtypes.rst:424 +#: ../../library/stdtypes.rst:426 msgid "(1)(2)" msgstr "(1)(2)" -#: ../../library/stdtypes.rst:426 +#: ../../library/stdtypes.rst:428 msgid "``x >> n``" msgstr "``x >> n``" -#: ../../library/stdtypes.rst:426 +#: ../../library/stdtypes.rst:428 msgid "*x* shifted right by *n* bits" msgstr "*x* deslocado para a direita pelos bits *n*" -#: ../../library/stdtypes.rst:426 +#: ../../library/stdtypes.rst:428 msgid "(1)(3)" msgstr "(1)(3)" -#: ../../library/stdtypes.rst:428 +#: ../../library/stdtypes.rst:430 msgid "``~x``" msgstr "``~x``" -#: ../../library/stdtypes.rst:428 +#: ../../library/stdtypes.rst:430 msgid "the bits of *x* inverted" msgstr "os bits de *x* invertidos" -#: ../../library/stdtypes.rst:434 +#: ../../library/stdtypes.rst:436 msgid "" -"Negative shift counts are illegal and cause a :exc:`ValueError` to be " -"raised." +"Negative shift counts are illegal and cause a :exc:`ValueError` to be raised." msgstr "" -"Contagens de deslocamento negativo são ilegais e causam o acionamento de um " -":exc:`ValueError` ." +"Contagens de deslocamento negativo são ilegais e causam o acionamento de um :" +"exc:`ValueError` ." -#: ../../library/stdtypes.rst:437 +#: ../../library/stdtypes.rst:439 msgid "" "A left shift by *n* bits is equivalent to multiplication by ``pow(2, n)`` " "without overflow check." @@ -862,27 +878,31 @@ msgstr "" "Um deslocamento a esquerda por *n* bits é equivalente a multiplicação por " "``pow(2, n)`` sem a checagem de overflow." -#: ../../library/stdtypes.rst:441 +#: ../../library/stdtypes.rst:443 msgid "" -"A right shift by *n* bits is equivalent to division by ``pow(2, n)`` without" -" overflow check." +"A right shift by *n* bits is equivalent to division by ``pow(2, n)`` without " +"overflow check." msgstr "" "Um deslocamento a direita por *n* bits é equivalente a divisão por ``pow(2, " "n)`` sem a checagem de overflow." -#: ../../library/stdtypes.rst:445 +#: ../../library/stdtypes.rst:447 msgid "" "Performing these calculations with at least one extra sign extension bit in " -"a finite two's complement representation (a working bit-width of ``1 + " -"max(x.bit_length(), y.bit_length())`` or more) is sufficient to get the same" -" result as if there were an infinite number of sign bits." +"a finite two's complement representation (a working bit-width of ``1 + max(x." +"bit_length(), y.bit_length())`` or more) is sufficient to get the same " +"result as if there were an infinite number of sign bits." msgstr "" +"Executar esses cálculos com pelo menos um bit de extensão de sinal extra na " +"representação de complemento de dois finitos (uma largura de bit de trabalho " +"``1+max(x.bit_length(), y.bit_length())`` ou mais) é suficiente para obter o " +"mesmo resultado como se houvesse um número infinito de bits de sinal." -#: ../../library/stdtypes.rst:452 +#: ../../library/stdtypes.rst:454 msgid "Additional Methods on Integer Types" msgstr "Métodos adicionais em tipos inteiros" -#: ../../library/stdtypes.rst:454 +#: ../../library/stdtypes.rst:456 msgid "" "The int type implements the :class:`numbers.Integral` :term:`abstract base " "class`. In addition, it provides a few more methods:" @@ -890,7 +910,7 @@ msgstr "" "O tipo int implementa a classe :class:`numbers.Integral` :term:`abstract " "base class`. Além disso, ele provê mais alguns métodos:" -#: ../../library/stdtypes.rst:459 +#: ../../library/stdtypes.rst:461 msgid "" "Return the number of bits necessary to represent an integer in binary, " "excluding the sign and leading zeros::" @@ -898,13 +918,13 @@ msgstr "" "Retornar o número de bits necessários para representar um inteiro em " "binário, excluindo o sinal e entrelinha zeros::" -#: ../../library/stdtypes.rst:468 +#: ../../library/stdtypes.rst:470 msgid "" "More precisely, if ``x`` is nonzero, then ``x.bit_length()`` is the unique " "positive integer ``k`` such that ``2**(k-1) <= abs(x) < 2**k``. " "Equivalently, when ``abs(x)`` is small enough to have a correctly rounded " -"logarithm, then ``k = 1 + int(log(abs(x), 2))``. If ``x`` is zero, then " -"``x.bit_length()`` returns ``0``." +"logarithm, then ``k = 1 + int(log(abs(x), 2))``. If ``x`` is zero, then ``x." +"bit_length()`` returns ``0``." msgstr "" "Mais precisamente, se ``x`` for diferente de zero, então ``x.bit_length()`` " "é o único integral positivo ``k`` tal que``2**(k-1) <= abs(x) < 2**k``. " @@ -912,39 +932,39 @@ msgstr "" "arredondamento algorítmicamente correto, então ``k = 1 + int(log(abs(x), " "2))``. Se ``x`` é zero, então ``x.bit_length()`` retorna ``0``." -#: ../../library/stdtypes.rst:474 +#: ../../library/stdtypes.rst:476 msgid "Equivalent to::" msgstr "Equivalente a::" -#: ../../library/stdtypes.rst:485 +#: ../../library/stdtypes.rst:487 msgid "Return an array of bytes representing an integer." msgstr "Retorna um array de bytes representando um inteiro." -#: ../../library/stdtypes.rst:497 +#: ../../library/stdtypes.rst:499 msgid "" -"The integer is represented using *length* bytes. An :exc:`OverflowError` is" -" raised if the integer is not representable with the given number of bytes." +"The integer is represented using *length* bytes. An :exc:`OverflowError` is " +"raised if the integer is not representable with the given number of bytes." msgstr "" "O inteiro é representado usando *length* bytes. Um :exc:`OverflowError` é " "elencado se um inteiro não é representável com o dado número de bytes." -#: ../../library/stdtypes.rst:501 ../../library/stdtypes.rst:533 +#: ../../library/stdtypes.rst:503 ../../library/stdtypes.rst:535 msgid "" "The *byteorder* argument determines the byte order used to represent the " -"integer. If *byteorder* is ``\"big\"``, the most significant byte is at the" -" beginning of the byte array. If *byteorder* is ``\"little\"``, the most " +"integer. If *byteorder* is ``\"big\"``, the most significant byte is at the " +"beginning of the byte array. If *byteorder* is ``\"little\"``, the most " "significant byte is at the end of the byte array. To request the native " "byte order of the host system, use :data:`sys.byteorder` as the byte order " "value." msgstr "" -"O argumento *byteorder* determina a ordem de bytes usada para representar um" -" inteiro. Se o *byteorder* é ``\"big\"``, o byte mais significante está no " +"O argumento *byteorder* determina a ordem de bytes usada para representar um " +"inteiro. Se o *byteorder* é ``\"big\"``, o byte mais significante está no " "início do array de byte. Se *byteorder* é ``\"little\"``, o byte mais " "significante está no final do array de byte. Para requisitar a ordem nativa " "de byte do sistema hospedeiro, use :data:`sys.byteorder`  como o valor da " "ordem de byte." -#: ../../library/stdtypes.rst:508 +#: ../../library/stdtypes.rst:510 msgid "" "The *signed* argument determines whether two's complement is used to " "represent the integer. If *signed* is ``False`` and a negative integer is " @@ -956,11 +976,11 @@ msgstr "" "dado, um :exc:`OverflowError` é disparado. O valor padrão para *signed* é " "``False``." -#: ../../library/stdtypes.rst:517 +#: ../../library/stdtypes.rst:519 msgid "Return the integer represented by the given array of bytes." msgstr "Retorna o inteiro representado pelo dado array de bytes." -#: ../../library/stdtypes.rst:530 +#: ../../library/stdtypes.rst:532 msgid "" "The argument *bytes* must either be a :term:`bytes-like object` or an " "iterable producing bytes." @@ -968,7 +988,7 @@ msgstr "" "O argumento *bytes* precisa ou ser um :term:`bytes-like object` ou um " "iterador produzindo bytes." -#: ../../library/stdtypes.rst:540 +#: ../../library/stdtypes.rst:542 msgid "" "The *signed* argument indicates whether two's complement is used to " "represent the integer." @@ -976,11 +996,11 @@ msgstr "" "O arguemento *signed* indica quando o complemento de dois é usado para " "representar o inteiro." -#: ../../library/stdtypes.rst:547 +#: ../../library/stdtypes.rst:549 msgid "Additional Methods on Float" msgstr "Métodos Adicionais em Ponto Flutuante" -#: ../../library/stdtypes.rst:549 +#: ../../library/stdtypes.rst:551 msgid "" "The float type implements the :class:`numbers.Real` :term:`abstract base " "class`. float also has the following additional methods." @@ -988,17 +1008,17 @@ msgstr "" "O tipo float implementa :class:`numbers.Real` :term:`abstract base class`. " "float também possui os seguintes métodos adicionais." -#: ../../library/stdtypes.rst:554 +#: ../../library/stdtypes.rst:556 msgid "" -"Return a pair of integers whose ratio is exactly equal to the original float" -" and with a positive denominator. Raises :exc:`OverflowError` on infinities" -" and a :exc:`ValueError` on NaNs." +"Return a pair of integers whose ratio is exactly equal to the original float " +"and with a positive denominator. Raises :exc:`OverflowError` on infinities " +"and a :exc:`ValueError` on NaNs." msgstr "" -"Retorna um par de inteiros dos quais a proporção é exatamente igual ao float" -" original e com um denominador positivo. Levanta um :exc:`OverflowError` em " +"Retorna um par de inteiros dos quais a proporção é exatamente igual ao float " +"original e com um denominador positivo. Levanta um :exc:`OverflowError` em " "infinidades e um :exc:`ValueError` em NaNs." -#: ../../library/stdtypes.rst:561 +#: ../../library/stdtypes.rst:563 msgid "" "Return ``True`` if the float instance is finite with integral value, and " "``False`` otherwise::" @@ -1006,7 +1026,7 @@ msgstr "" "Retornar ``True`` se a instância do float for finita com o valor integral e " "``False``, caso contrário::" -#: ../../library/stdtypes.rst:569 +#: ../../library/stdtypes.rst:571 msgid "" "Two methods support conversion to and from hexadecimal strings. Since " "Python's floats are stored internally as binary numbers, converting a float " @@ -1016,23 +1036,23 @@ msgid "" "numerical work." msgstr "" "Dois métodos suportam conversão para e de cadeias hexadecimais. Uma vez que " -"os flutuadores do Python são armazenados internamente como números binários," -" a conversão de um flutuador para ou de uma seqüência *decimal* geralmente " +"os flutuadores do Python são armazenados internamente como números binários, " +"a conversão de um flutuador para ou de uma seqüência *decimal* geralmente " "envolve um pequeno erro de arredondamento. Em contraste, as frases " "hexadecimais permitem a representação exata e a especificação de números de " "ponto flutuante. Isso pode ser útil na depuração e no trabalho numérico." -#: ../../library/stdtypes.rst:580 +#: ../../library/stdtypes.rst:582 msgid "" -"Return a representation of a floating-point number as a hexadecimal string." -" For finite floating-point numbers, this representation will always include" -" a leading ``0x`` and a trailing ``p`` and exponent." +"Return a representation of a floating-point number as a hexadecimal string. " +"For finite floating-point numbers, this representation will always include a " +"leading ``0x`` and a trailing ``p`` and exponent." msgstr "" "Retorna a representação de um número de ponto-flutuante como uma string " -"hexadecimal. Para números de ponto-flutuante finitos, essa representação vai" -" sempre incluir um ``0x`` inicial e um ``p`` final e expoente." +"hexadecimal. Para números de ponto-flutuante finitos, essa representação vai " +"sempre incluir um ``0x`` inicial e um ``p`` final e expoente." -#: ../../library/stdtypes.rst:588 +#: ../../library/stdtypes.rst:590 msgid "" "Class method to return the float represented by a hexadecimal string *s*. " "The string *s* may have leading and trailing whitespace." @@ -1040,43 +1060,43 @@ msgstr "" "Método de classe para retornar um float representado por uma string " "hexadecimal *s*. A string *s* pode ter espaços em branco iniciais e finais." -#: ../../library/stdtypes.rst:593 +#: ../../library/stdtypes.rst:595 msgid "" -"Note that :meth:`float.hex` is an instance method, while " -":meth:`float.fromhex` is a class method." +"Note that :meth:`float.hex` is an instance method, while :meth:`float." +"fromhex` is a class method." msgstr "" -"Note que :meth:`float.hex` é um método de instância, enquanto " -":meth:`float.fromhex` é um método de classe." +"Note que :meth:`float.hex` é um método de instância, enquanto :meth:`float." +"fromhex` é um método de classe." -#: ../../library/stdtypes.rst:596 +#: ../../library/stdtypes.rst:598 msgid "A hexadecimal string takes the form::" msgstr "Uma string hexadecimal toma a forma:" -#: ../../library/stdtypes.rst:600 +#: ../../library/stdtypes.rst:602 msgid "" "where the optional ``sign`` may by either ``+`` or ``-``, ``integer`` and " "``fraction`` are strings of hexadecimal digits, and ``exponent`` is a " -"decimal integer with an optional leading sign. Case is not significant, and" -" there must be at least one hexadecimal digit in either the integer or the " -"fraction. This syntax is similar to the syntax specified in section 6.4.4.2" -" of the C99 standard, and also to the syntax used in Java 1.5 onwards. In " +"decimal integer with an optional leading sign. Case is not significant, and " +"there must be at least one hexadecimal digit in either the integer or the " +"fraction. This syntax is similar to the syntax specified in section 6.4.4.2 " +"of the C99 standard, and also to the syntax used in Java 1.5 onwards. In " "particular, the output of :meth:`float.hex` is usable as a hexadecimal " "floating-point literal in C or Java code, and hexadecimal strings produced " -"by C's ``%a`` format character or Java's ``Double.toHexString`` are accepted" -" by :meth:`float.fromhex`." +"by C's ``%a`` format character or Java's ``Double.toHexString`` are accepted " +"by :meth:`float.fromhex`." msgstr "" -"aonde o sinal ``sign`` opcional pode ser tanto ``+`` or ``-``, ``integer`` e" -" ``fraction`` são strings de dígitos hexadecimais, e ``exponent`` é um " -"inteiro decimal com um símbolo precedente opcional. Case não é significante," -" e deve haver ao menos um dígito hexadecimal tanto no inteiro ou na fração. " +"aonde o sinal ``sign`` opcional pode ser tanto ``+`` or ``-``, ``integer`` e " +"``fraction`` são strings de dígitos hexadecimais, e ``exponent`` é um " +"inteiro decimal com um símbolo precedente opcional. Case não é significante, " +"e deve haver ao menos um dígito hexadecimal tanto no inteiro ou na fração. " "Essa síntaxe é similar à síntaxe especificada na seção 6.4.4.2 do padrão " "C99, e também do da síntaxe usada no Java 1.5 em diante. Em particular, a " "saída de :meth:`float.hex` é usável como um literal hexadecimal de ponto-" -"flutuante em código C ou Java, e hexadecimal strings produzidas pelo formato" -" do caráctere do C's ``%a``ou ``Double.toHexString`` do Java são aceitos " +"flutuante em código C ou Java, e hexadecimal strings produzidas pelo formato " +"do caráctere do C's ``%a``ou ``Double.toHexString`` do Java são aceitos " "pelo :meth:`float.fromhex`." -#: ../../library/stdtypes.rst:613 +#: ../../library/stdtypes.rst:615 msgid "" "Note that the exponent is written in decimal rather than hexadecimal, and " "that it gives the power of 2 by which to multiply the coefficient. For " @@ -1085,10 +1105,10 @@ msgid "" msgstr "" "Note que o expoente é escrito em decimal ao invés de hexadecimal, e que ele " "dá a potência de 2 pela qual se multiplica o coeficiente. Por exemplo, a " -"string hexadecimal ``0x3.a7p10`` representa o número de ponto-flutuante ``(3" -" + 10./16 + 7./16**2) * 2.0**10``, ou ``3740.0``::" +"string hexadecimal ``0x3.a7p10`` representa o número de ponto-flutuante ``(3 " +"+ 10./16 + 7./16**2) * 2.0**10``, ou ``3740.0``::" -#: ../../library/stdtypes.rst:623 +#: ../../library/stdtypes.rst:625 msgid "" "Applying the reverse conversion to ``3740.0`` gives a different hexadecimal " "string representing the same number::" @@ -1096,24 +1116,24 @@ msgstr "" "Aplicando a conversão reversa a ``3740.0`` retorna uma string hexadecimal " "diferente representada pelo mesmo número::" -#: ../../library/stdtypes.rst:633 +#: ../../library/stdtypes.rst:635 msgid "Hashing of numeric types" msgstr "Hashing de tipos numéricos" -#: ../../library/stdtypes.rst:635 +#: ../../library/stdtypes.rst:637 msgid "" -"For numbers ``x`` and ``y``, possibly of different types, it's a requirement" -" that ``hash(x) == hash(y)`` whenever ``x == y`` (see the :meth:`__hash__` " +"For numbers ``x`` and ``y``, possibly of different types, it's a requirement " +"that ``hash(x) == hash(y)`` whenever ``x == y`` (see the :meth:`__hash__` " "method documentation for more details). For ease of implementation and " -"efficiency across a variety of numeric types (including :class:`int`, " -":class:`float`, :class:`decimal.Decimal` and :class:`fractions.Fraction`) " -"Python's hash for numeric types is based on a single mathematical function " -"that's defined for any rational number, and hence applies to all instances " -"of :class:`int` and :class:`fractions.Fraction`, and all finite instances of" -" :class:`float` and :class:`decimal.Decimal`. Essentially, this function is" -" given by reduction modulo ``P`` for a fixed prime ``P``. The value of " -"``P`` is made available to Python as the :attr:`modulus` attribute of " -":data:`sys.hash_info`." +"efficiency across a variety of numeric types (including :class:`int`, :class:" +"`float`, :class:`decimal.Decimal` and :class:`fractions.Fraction`) Python's " +"hash for numeric types is based on a single mathematical function that's " +"defined for any rational number, and hence applies to all instances of :" +"class:`int` and :class:`fractions.Fraction`, and all finite instances of :" +"class:`float` and :class:`decimal.Decimal`. Essentially, this function is " +"given by reduction modulo ``P`` for a fixed prime ``P``. The value of ``P`` " +"is made available to Python as the :attr:`modulus` attribute of :data:`sys." +"hash_info`." msgstr "" "Para números ``x`` e ``y``, possivelmente de diferentes tipos, é um " "requerimento que ``hash(x) == hash(y)`` sempre que ``x == y`` (veja o " @@ -1122,14 +1142,14 @@ msgstr "" "numéricos (incluindo: class:`int`, :class:`float`, :class:`decimal.Decimal` " "e :class:`fractions.Fraction`), o hash do Python para tipos numéricos é " "baseado em uma única funcão matemática que é definida para qualquer número " -"racional, e portanto se aplica para todas as instâncias de :class:`int` e " -":class:`fractions.Fraction`, e todas as instâncias finitas das classes " -":class:`float` e :class:`decimal.Decimal`. Essencialmente, essa função é " -"dada pelo modulo de redução ``P`` para um primo fixado ``P``. O valor de " -"``P`` é disponibilizado ao Python como um atributo :attr:`modulus` do " -":data:`sys.hash_info`." +"racional, e portanto se aplica para todas as instâncias de :class:`int` e :" +"class:`fractions.Fraction`, e todas as instâncias finitas das classes :class:" +"`float` e :class:`decimal.Decimal`. Essencialmente, essa função é dada pelo " +"modulo de redução ``P`` para um primo fixado ``P``. O valor de ``P`` é " +"disponibilizado ao Python como um atributo :attr:`modulus` do :data:`sys." +"hash_info`." -#: ../../library/stdtypes.rst:650 +#: ../../library/stdtypes.rst:652 msgid "" "Currently, the prime used is ``P = 2**31 - 1`` on machines with 32-bit C " "longs and ``P = 2**61 - 1`` on machines with 64-bit C longs." @@ -1137,25 +1157,25 @@ msgstr "" "Atualmente, o primo usado é ``P = 2**31 - 1`` em máquinas com 32-bit e " "inteiros C longos e ``P = 2**61 - 1`` em máquinas com longs C de 64-bit." -#: ../../library/stdtypes.rst:653 +#: ../../library/stdtypes.rst:655 msgid "Here are the rules in detail:" msgstr "Aqui estão as regras em detalhe:" -#: ../../library/stdtypes.rst:655 +#: ../../library/stdtypes.rst:657 msgid "" -"If ``x = m / n`` is a nonnegative rational number and ``n`` is not divisible" -" by ``P``, define ``hash(x)`` as ``m * invmod(n, P) % P``, where ``invmod(n," -" P)`` gives the inverse of ``n`` modulo ``P``." +"If ``x = m / n`` is a nonnegative rational number and ``n`` is not divisible " +"by ``P``, define ``hash(x)`` as ``m * invmod(n, P) % P``, where ``invmod(n, " +"P)`` gives the inverse of ``n`` modulo ``P``." msgstr "" "Se ``x = m / n`` é um número racional não negativo e ``n`` não é divisível " "por ``P``, defina ``hash(x)`` como ``m * invmod(n, P) % P``, aonde " "``invmod(n, P)`` retorna o inverso de ``n`` modulo ``P``." -#: ../../library/stdtypes.rst:659 +#: ../../library/stdtypes.rst:661 msgid "" "If ``x = m / n`` is a nonnegative rational number and ``n`` is divisible by " -"``P`` (but ``m`` is not) then ``n`` has no inverse modulo ``P`` and the rule" -" above doesn't apply; in this case define ``hash(x)`` to be the constant " +"``P`` (but ``m`` is not) then ``n`` has no inverse modulo ``P`` and the rule " +"above doesn't apply; in this case define ``hash(x)`` to be the constant " "value ``sys.hash_info.inf``." msgstr "" "Se ``x = m / n`` é um número racional não negativo e ``n`` é divisível por " @@ -1163,34 +1183,33 @@ msgstr "" "regra acima não se aplica; nesse caso defina ``hash(x)`` para ser o valor " "constante ``sys.hash_info.inf``." -#: ../../library/stdtypes.rst:664 +#: ../../library/stdtypes.rst:666 msgid "" -"If ``x = m / n`` is a negative rational number define ``hash(x)`` as " -"``-hash(-x)``. If the resulting hash is ``-1``, replace it with ``-2``." +"If ``x = m / n`` is a negative rational number define ``hash(x)`` as ``-" +"hash(-x)``. If the resulting hash is ``-1``, replace it with ``-2``." msgstr "" -"Se ``x = m / n`` é um número racional negativo, defina ``hash(x)`` como " -"``-hash(-x)``. Se a hash resultante é ``-1``, substitua ela com ``-2``." +"Se ``x = m / n`` é um número racional negativo, defina ``hash(x)`` como ``-" +"hash(-x)``. Se a hash resultante é ``-1``, substitua ela com ``-2``." -#: ../../library/stdtypes.rst:668 +#: ../../library/stdtypes.rst:670 msgid "" "The particular values ``sys.hash_info.inf``, ``-sys.hash_info.inf`` and " "``sys.hash_info.nan`` are used as hash values for positive infinity, " -"negative infinity, or nans (respectively). (All hashable nans have the same" -" hash value.)" +"negative infinity, or nans (respectively). (All hashable nans have the same " +"hash value.)" msgstr "" "Os valores particulares ``sys.hash_info.inf``, ``-sys.hash_info.inf`` e " "``sys.hash_info.nan`` são usados como valores de hash para infinidade " "positiva, infinidade negativa, ou nans (respectivamente). (Todos os nans " "\"hasheáveis\" possuem o mesmo valor de hash.)" -#: ../../library/stdtypes.rst:673 +#: ../../library/stdtypes.rst:675 msgid "" "For a :class:`complex` number ``z``, the hash values of the real and " -"imaginary parts are combined by computing ``hash(z.real) + " -"sys.hash_info.imag * hash(z.imag)``, reduced modulo " -"``2**sys.hash_info.width`` so that it lies in " -"``range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - 1))``. " -"Again, if the result is ``-1``, it's replaced with ``-2``." +"imaginary parts are combined by computing ``hash(z.real) + sys.hash_info." +"imag * hash(z.imag)``, reduced modulo ``2**sys.hash_info.width`` so that it " +"lies in ``range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - " +"1))``. Again, if the result is ``-1``, it's replaced with ``-2``." msgstr "" "Para :class:`complex` número ``z``, o valor da hash do número real partes " "imaginárias são combinados computando ``hash(z.real) + sys.hash_info.imag * " @@ -1199,33 +1218,33 @@ msgstr "" "- 1))``. Novamente, se os resultados são ``-1``, eles são substituídos com " "``-2``." -#: ../../library/stdtypes.rst:681 +#: ../../library/stdtypes.rst:683 msgid "" "To clarify the above rules, here's some example Python code, equivalent to " -"the built-in hash, for computing the hash of a rational number, " -":class:`float`, or :class:`complex`::" +"the built-in hash, for computing the hash of a rational number, :class:" +"`float`, or :class:`complex`::" msgstr "" "Para clarificar as regras acima, aqui estão alguns exemplos de código em " "Python, equivalentes às hash's embutidas, para computar a hash de números " "racionais, :class:`float`, ou :class:`complex`::" -#: ../../library/stdtypes.rst:736 +#: ../../library/stdtypes.rst:738 msgid "Iterator Types" msgstr "Tipos de Iteradores" -#: ../../library/stdtypes.rst:744 +#: ../../library/stdtypes.rst:746 msgid "" -"Python supports a concept of iteration over containers. This is implemented" -" using two distinct methods; these are used to allow user-defined classes to" -" support iteration. Sequences, described below in more detail, always " +"Python supports a concept of iteration over containers. This is implemented " +"using two distinct methods; these are used to allow user-defined classes to " +"support iteration. Sequences, described below in more detail, always " "support the iteration methods." msgstr "" -"Python suporta o conceito de iteração sobre conteineres. Isso é implementado" -" usando dois métodos distintos; estes são usados para permitir classes " +"Python suporta o conceito de iteração sobre conteineres. Isso é implementado " +"usando dois métodos distintos; estes são usados para permitir classes " "definidas pelo usuário suportem iteração. Sequências, descritas abaixo em " "mais detalhes, sempre suportam os métodos de iteração." -#: ../../library/stdtypes.rst:749 +#: ../../library/stdtypes.rst:751 msgid "" "One method needs to be defined for container objects to provide iteration " "support:" @@ -1233,27 +1252,27 @@ msgstr "" "Um método necessita ser definido para objetos conteineres afim destes " "proverem suporte a iteração:" -#: ../../library/stdtypes.rst:756 +#: ../../library/stdtypes.rst:758 msgid "" "Return an iterator object. The object is required to support the iterator " "protocol described below. If a container supports different types of " "iteration, additional methods can be provided to specifically request " "iterators for those iteration types. (An example of an object supporting " "multiple forms of iteration would be a tree structure which supports both " -"breadth-first and depth-first traversal.) This method corresponds to the " -":c:member:`~PyTypeObject.tp_iter` slot of the type structure for Python " -"objects in the Python/C API." +"breadth-first and depth-first traversal.) This method corresponds to the :c:" +"member:`~PyTypeObject.tp_iter` slot of the type structure for Python objects " +"in the Python/C API." msgstr "" "Retorna um objeto iterador. O objeto é requerido suportar o protocolo " "iterador descrito abaixo. Se um conteiner suporta diferentes tipos de " "iterador, métodos adicionais podem ser providenciados para requisitar " "especificamente iteradores para aqueles tipos de iterações. (Um exemplo de " "um object suportando múltiplas formas de iteração seria uma estrutura em " -"árvore a qual suporta ambas travessias de breadth-first e depth-first.) Esse" -" method corresponde ao slot :c:member:`~PyTypeObject.tp_iter` do type de " +"árvore a qual suporta ambas travessias de breadth-first e depth-first.) Esse " +"method corresponde ao slot :c:member:`~PyTypeObject.tp_iter` do type de " "estrutura para objetos em Python na API Python/C." -#: ../../library/stdtypes.rst:765 +#: ../../library/stdtypes.rst:767 msgid "" "The iterator objects themselves are required to support the following two " "methods, which together form the :dfn:`iterator protocol`:" @@ -1261,81 +1280,78 @@ msgstr "" "Os objetos iterator por eles mesmos são requeridos que suportem os dois " "seguintes métodos, que juntos formam o :dfn:`iterator protocol`:" -#: ../../library/stdtypes.rst:771 +#: ../../library/stdtypes.rst:773 msgid "" "Return the iterator object itself. This is required to allow both " -"containers and iterators to be used with the :keyword:`for` and " -":keyword:`in` statements. This method corresponds to the " -":c:member:`~PyTypeObject.tp_iter` slot of the type structure for Python " -"objects in the Python/C API." +"containers and iterators to be used with the :keyword:`for` and :keyword:" +"`in` statements. This method corresponds to the :c:member:`~PyTypeObject." +"tp_iter` slot of the type structure for Python objects in the Python/C API." msgstr "" -"Retorna o próprio iterator object. Isso é necessário para permitir que ambos" -" os conteineres e iteradores sejam usados com as declarações :keyword:`for`" -" e :keyword:`in`. Esse method corresponde ao slot " -":c:member:`~PyTypeObject.tp_iter` da estrutura type para objetos do Python " -"na API Python/C." +"Retorna o próprio iterator object. Isso é necessário para permitir que ambos " +"os conteineres e iteradores sejam usados com as declarações :keyword:`for` " +"e :keyword:`in`. Esse method corresponde ao slot :c:member:`~PyTypeObject." +"tp_iter` da estrutura type para objetos do Python na API Python/C." -#: ../../library/stdtypes.rst:779 +#: ../../library/stdtypes.rst:781 msgid "" "Return the next item from the container. If there are no further items, " -"raise the :exc:`StopIteration` exception. This method corresponds to the " -":c:member:`~PyTypeObject.tp_iternext` slot of the type structure for Python " +"raise the :exc:`StopIteration` exception. This method corresponds to the :c:" +"member:`~PyTypeObject.tp_iternext` slot of the type structure for Python " "objects in the Python/C API." msgstr "" -"Retorna o próximo item do conteiner. Se não houver itens além, a exceção " -":exc:`StopIteration` é levantada. Esse method corresponde ao slot " -":c:member:`~PyTypeObject.tp_iternext` do type de estrutura para objetos " -"Python na API Python/C." +"Retorna o próximo item do conteiner. Se não houver itens além, a exceção :" +"exc:`StopIteration` é levantada. Esse method corresponde ao slot :c:member:" +"`~PyTypeObject.tp_iternext` do type de estrutura para objetos Python na API " +"Python/C." -#: ../../library/stdtypes.rst:784 +#: ../../library/stdtypes.rst:786 msgid "" "Python defines several iterator objects to support iteration over general " -"and specific sequence types, dictionaries, and other more specialized forms." -" The specific types are not important beyond their implementation of the " -"iterator protocol." +"and specific sequence types, dictionaries, and other more specialized " +"forms. The specific types are not important beyond their implementation of " +"the iterator protocol." msgstr "" "Python define diversos objetos iterator para suportar iterações sobre tipos " "de sequências gerais e específicas, dicionários, e outras formas mais " "especializadas. Os tipos específicos não são importantes além de sua " "implementação do protocolo iterator." -#: ../../library/stdtypes.rst:789 +#: ../../library/stdtypes.rst:791 msgid "" -"Once an iterator's :meth:`~iterator.__next__` method raises " -":exc:`StopIteration`, it must continue to do so on subsequent calls. " +"Once an iterator's :meth:`~iterator.__next__` method raises :exc:" +"`StopIteration`, it must continue to do so on subsequent calls. " "Implementations that do not obey this property are deemed broken." msgstr "" -"Uma vez que o método iterador :meth:`~iterator.__next__` levantou " -":exc:`StopIteration`, ele deve continuar fazendo isso em chamadas " -"subsequentes. Implementações que não obedecem essa propriedade são " -"consideradas quebradas." +"Uma vez que o método iterador :meth:`~iterator.__next__` levantou :exc:" +"`StopIteration`, ele deve continuar fazendo isso em chamadas subsequentes. " +"Implementações que não obedecem essa propriedade são consideradas quebradas." -#: ../../library/stdtypes.rst:797 +#: ../../library/stdtypes.rst:799 msgid "Generator Types" msgstr "Tipos de Geradores" -#: ../../library/stdtypes.rst:799 +#: ../../library/stdtypes.rst:801 msgid "" "Python's :term:`generator`\\s provide a convenient way to implement the " "iterator protocol. If a container object's :meth:`__iter__` method is " "implemented as a generator, it will automatically return an iterator object " -"(technically, a generator object) supplying the :meth:`__iter__` and " -":meth:`~generator.__next__` methods. More information about generators can " -"be found in :ref:`the documentation for the yield expression `." +"(technically, a generator object) supplying the :meth:`__iter__` and :meth:" +"`~generator.__next__` methods. More information about generators can be " +"found in :ref:`the documentation for the yield expression `." msgstr "" "Python's :term:`generator`\\s provê uma maneira conveniente para " -"implementar o protocolo iterator. Se um object conteiner de method " -":meth:`__iter__` é implementado como um gerador, ele irá automaticamente " -"retornar um object iterator (tecnicamente, um generator object) suprindo os " -"métodos :meth:`__iter__` e :meth:`~generator.__next__` . Mais informações " -"sobre geradores podem ser encontradas em :ref:`a documentação para a " -"expressão yield `." - -#: ../../library/stdtypes.rst:811 +"implementar o protocolo iterator. Se um object conteiner de method :meth:" +"`__iter__` é implementado como um gerador, ele irá automaticamente retornar " +"um object iterator (tecnicamente, um generator object) suprindo os métodos :" +"meth:`__iter__` e :meth:`~generator.__next__` . Mais informações sobre " +"geradores podem ser encontradas em :ref:`a documentação para a expressão " +"yield `." + +#: ../../library/stdtypes.rst:813 msgid "Sequence Types --- :class:`list`, :class:`tuple`, :class:`range`" msgstr "Tipos de Sequências --- :class:`list`, :class:`tuple`, :class:`range`" -#: ../../library/stdtypes.rst:813 +#: ../../library/stdtypes.rst:815 msgid "" "There are three basic sequence types: lists, tuples, and range objects. " "Additional sequence types tailored for processing of :ref:`binary data " @@ -1343,195 +1359,197 @@ msgid "" "sections." msgstr "" "Existem três tipos básicos de seqüência: listas, tuplas e objetos range. " -"Tipos de sequência adicionais adaptados para o processamento de :ref:`binary" -" data ` e :ref:`text strings ` são descritos em seções " +"Tipos de sequência adicionais adaptados para o processamento de :ref:`binary " +"data ` e :ref:`text strings ` são descritos em seções " "dedicadas." -#: ../../library/stdtypes.rst:822 +#: ../../library/stdtypes.rst:824 msgid "Common Sequence Operations" msgstr "Operações de Sequências Comuns" -#: ../../library/stdtypes.rst:826 +#: ../../library/stdtypes.rst:828 msgid "" "The operations in the following table are supported by most sequence types, " "both mutable and immutable. The :class:`collections.abc.Sequence` ABC is " -"provided to make it easier to correctly implement these operations on custom" -" sequence types." +"provided to make it easier to correctly implement these operations on custom " +"sequence types." msgstr "" "As operações nas seguintes tabelas são suportadas pela maioria das " -"sequências de tipos, ambos mutáveis e imutáveis. A classe " -":class:`collections.abc.Sequence` ABC é fornecida para tornar fácil a " -"correta implementação desses operadores em sequências de tipos " -"customizáveis. " +"sequências de tipos, ambos mutáveis e imutáveis. A classe :class:" +"`collections.abc.Sequence` ABC é fornecida para tornar fácil a correta " +"implementação desses operadores em sequências de tipos customizáveis. " -#: ../../library/stdtypes.rst:831 +#: ../../library/stdtypes.rst:833 msgid "" "This table lists the sequence operations sorted in ascending priority. In " -"the table, *s* and *t* are sequences of the same type, *n*, *i*, *j* and *k*" -" are integers and *x* is an arbitrary object that meets any type and value " +"the table, *s* and *t* are sequences of the same type, *n*, *i*, *j* and *k* " +"are integers and *x* is an arbitrary object that meets any type and value " "restrictions imposed by *s*." msgstr "" "Essa tabela lista as operações de sequência listadas em prioridade " -"ascendente. Na tabela, *s* e *t* são sequências do mesmo type, *n*, *i*, *j*" -" e *k* são inteiros e *x* é um object arbitrário que atende a qualquer " +"ascendente. Na tabela, *s* e *t* são sequências do mesmo type, *n*, *i*, *j* " +"e *k* são inteiros e *x* é um object arbitrário que atende a qualquer " "restrição de valor e type impostas por *s*." -#: ../../library/stdtypes.rst:836 +#: ../../library/stdtypes.rst:838 msgid "" "The ``in`` and ``not in`` operations have the same priorities as the " "comparison operations. The ``+`` (concatenation) and ``*`` (repetition) " "operations have the same priority as the corresponding numeric operations. " "[3]_" msgstr "" +"As operações ``in`` e ``not in`` têm as mesmas prioridades que as operações " +"de comparação. As operações ``+`` (concatenação) e ``*`` (repetição) têm a " +"mesma prioridade que as operações numéricas correspondentes. [3]_" -#: ../../library/stdtypes.rst:857 +#: ../../library/stdtypes.rst:859 msgid "``x in s``" msgstr "``x in s``" -#: ../../library/stdtypes.rst:857 +#: ../../library/stdtypes.rst:859 msgid "``True`` if an item of *s* is equal to *x*, else ``False``" msgstr "``True`` caso um item de *s* seja igual a *x*, senão ``False``" -#: ../../library/stdtypes.rst:860 +#: ../../library/stdtypes.rst:862 msgid "``x not in s``" msgstr "``x not in s``" -#: ../../library/stdtypes.rst:860 +#: ../../library/stdtypes.rst:862 msgid "``False`` if an item of *s* is equal to *x*, else ``True``" msgstr "``False`` caso um item de *s* for igual a *x*, senão ``True``" -#: ../../library/stdtypes.rst:863 +#: ../../library/stdtypes.rst:865 msgid "``s + t``" msgstr "``s + t``" -#: ../../library/stdtypes.rst:863 +#: ../../library/stdtypes.rst:865 msgid "the concatenation of *s* and *t*" msgstr "a concatenão de *s* e *t*" -#: ../../library/stdtypes.rst:863 +#: ../../library/stdtypes.rst:865 msgid "(6)(7)" msgstr "(6)(7)" -#: ../../library/stdtypes.rst:866 +#: ../../library/stdtypes.rst:868 msgid "``s * n`` or ``n * s``" msgstr "``s * n`` ou ``n * s``" -#: ../../library/stdtypes.rst:866 +#: ../../library/stdtypes.rst:868 msgid "equivalent to adding *s* to itself *n* times" msgstr "equivalente a adicionar *s* a si mesmo *n* vezes" -#: ../../library/stdtypes.rst:866 +#: ../../library/stdtypes.rst:868 msgid "(2)(7)" msgstr "(2)(7)" -#: ../../library/stdtypes.rst:869 +#: ../../library/stdtypes.rst:871 msgid "``s[i]``" msgstr "``s[i]``" -#: ../../library/stdtypes.rst:869 +#: ../../library/stdtypes.rst:871 msgid "*i*\\ th item of *s*, origin 0" msgstr "*i*\\ enésimo item de *s*, origem 0" -#: ../../library/stdtypes.rst:871 +#: ../../library/stdtypes.rst:873 msgid "``s[i:j]``" msgstr "``s[i:j]``" -#: ../../library/stdtypes.rst:871 +#: ../../library/stdtypes.rst:873 msgid "slice of *s* from *i* to *j*" msgstr "fatia de *s* desde *i* para *j*" -#: ../../library/stdtypes.rst:871 +#: ../../library/stdtypes.rst:873 msgid "(3)(4)" msgstr "(3)(4)" -#: ../../library/stdtypes.rst:873 +#: ../../library/stdtypes.rst:875 msgid "``s[i:j:k]``" msgstr "``s[i:j:k]``" -#: ../../library/stdtypes.rst:873 +#: ../../library/stdtypes.rst:875 msgid "slice of *s* from *i* to *j* with step *k*" msgstr "fatia de *s* desde *i* para *j* com passo *k*" -#: ../../library/stdtypes.rst:873 +#: ../../library/stdtypes.rst:875 msgid "(3)(5)" msgstr "(3)(5)" -#: ../../library/stdtypes.rst:876 +#: ../../library/stdtypes.rst:878 msgid "``len(s)``" msgstr "``len(s)``" -#: ../../library/stdtypes.rst:876 +#: ../../library/stdtypes.rst:878 msgid "length of *s*" msgstr "comprimento de *s*" -#: ../../library/stdtypes.rst:878 +#: ../../library/stdtypes.rst:880 msgid "``min(s)``" msgstr "``min(s)``" -#: ../../library/stdtypes.rst:878 +#: ../../library/stdtypes.rst:880 msgid "smallest item of *s*" msgstr "menor item de *s*" -#: ../../library/stdtypes.rst:880 +#: ../../library/stdtypes.rst:882 msgid "``max(s)``" msgstr "``max(s)``" -#: ../../library/stdtypes.rst:880 +#: ../../library/stdtypes.rst:882 msgid "largest item of *s*" msgstr "maior item de *s*" -#: ../../library/stdtypes.rst:882 +#: ../../library/stdtypes.rst:884 msgid "``s.index(x[, i[, j]])``" msgstr "``s.index(x[, i[, j]])``" -#: ../../library/stdtypes.rst:882 +#: ../../library/stdtypes.rst:884 msgid "" "index of the first occurrence of *x* in *s* (at or after index *i* and " "before index *j*)" msgstr "" -"índice da primeira ocorrência de *x* em *s* (no índice *i* e antes do índice" -" *j*)" +"índice da primeira ocorrência de *x* em *s* (no índice *i* e antes do índice " +"*j*)" -#: ../../library/stdtypes.rst:882 ../../library/stdtypes.rst:3342 +#: ../../library/stdtypes.rst:884 ../../library/stdtypes.rst:3344 msgid "\\(8)" msgstr "\\(8)" -#: ../../library/stdtypes.rst:886 +#: ../../library/stdtypes.rst:888 msgid "``s.count(x)``" msgstr "``s.count(x)``" -#: ../../library/stdtypes.rst:886 +#: ../../library/stdtypes.rst:888 msgid "total number of occurrences of *x* in *s*" msgstr "numero total de ocorrência de *x* em *s*" -#: ../../library/stdtypes.rst:890 +#: ../../library/stdtypes.rst:892 msgid "" "Sequences of the same type also support comparisons. In particular, tuples " "and lists are compared lexicographically by comparing corresponding " -"elements. This means that to compare equal, every element must compare equal" -" and the two sequences must be of the same type and have the same length. " +"elements. This means that to compare equal, every element must compare equal " +"and the two sequences must be of the same type and have the same length. " "(For full details see :ref:`comparisons` in the language reference.)" msgstr "" "Sequências do mesmo type também suportam comparações. Em particular, tuplas " "e listas são comparadas lexicograficamente pela comparação de elementos " "correspondentes. Isso significa que para comparar igualmente, cada elemento " -"deve comparar igual e as duas sequências devem ser do mesmo tipo e possuirem" -" o mesmo comprimento. (Para detalhes completos veja :ref:`comparisons` na " +"deve comparar igual e as duas sequências devem ser do mesmo tipo e possuirem " +"o mesmo comprimento. (Para detalhes completos veja :ref:`comparisons` na " "referência da linguagem.)" -#: ../../library/stdtypes.rst:899 +#: ../../library/stdtypes.rst:901 msgid "" "While the ``in`` and ``not in`` operations are used only for simple " -"containment testing in the general case, some specialised sequences (such as" -" :class:`str`, :class:`bytes` and :class:`bytearray`) also use them for " +"containment testing in the general case, some specialised sequences (such " +"as :class:`str`, :class:`bytes` and :class:`bytearray`) also use them for " "subsequence testing::" msgstr "" -"Enquanto as operações ``in`` e ``not in`` são usadas somente para ensaios de" -" contenção simples em modo geral, algumas sequências especializadas (tais " +"Enquanto as operações ``in`` e ``not in`` são usadas somente para ensaios de " +"contenção simples em modo geral, algumas sequências especializadas (tais " "como :class:`str`, :class:`bytes` e :class:`bytearray`) também usam eles " "para testing:: subsequentes." -#: ../../library/stdtypes.rst:908 +#: ../../library/stdtypes.rst:910 msgid "" "Values of *n* less than ``0`` are treated as ``0`` (which yields an empty " "sequence of the same type as *s*). Note that items in the sequence *s* are " @@ -1543,43 +1561,43 @@ msgstr "" "*s* não são copiados; eles são referenciados várias vezes. Isso " "freqüentemente assombra novos programadores Python; considere então que::" -#: ../../library/stdtypes.rst:920 +#: ../../library/stdtypes.rst:922 msgid "" -"What has happened is that ``[[]]`` is a one-element list containing an empty" -" list, so all three elements of ``[[]] * 3`` are references to this single " -"empty list. Modifying any of the elements of ``lists`` modifies this single" -" list. You can create a list of different lists this way::" +"What has happened is that ``[[]]`` is a one-element list containing an empty " +"list, so all three elements of ``[[]] * 3`` are references to this single " +"empty list. Modifying any of the elements of ``lists`` modifies this single " +"list. You can create a list of different lists this way::" msgstr "" "O que aconteceu é que ``[[]] `` é uma lista de um elemento contendo uma " -"lista vazia, então todos os três elementos de ``[[]] * 3`` são referências a" -" esta única lista vazia. Modificar qualquer um dos elementos de ``lists`` " +"lista vazia, então todos os três elementos de ``[[]] * 3`` são referências a " +"esta única lista vazia. Modificar qualquer um dos elementos de ``lists`` " "modifica a lista vazia. Podemos criar uma lista de listas diferentes dessa " "maneira::" -#: ../../library/stdtypes.rst:932 +#: ../../library/stdtypes.rst:934 msgid "" -"Further explanation is available in the FAQ entry :ref:`faq-" -"multidimensional-list`." +"Further explanation is available in the FAQ entry :ref:`faq-multidimensional-" +"list`." msgstr "" "Outra explicação está disponível em FAQ :ref:`faq-multidimensional-list`." -#: ../../library/stdtypes.rst:936 +#: ../../library/stdtypes.rst:938 msgid "" -"If *i* or *j* is negative, the index is relative to the end of sequence *s*:" -" ``len(s) + i`` or ``len(s) + j`` is substituted. But note that ``-0`` is " +"If *i* or *j* is negative, the index is relative to the end of sequence *s*: " +"``len(s) + i`` or ``len(s) + j`` is substituted. But note that ``-0`` is " "still ``0``." msgstr "" "Se *i* ou *j* forem negativo, o índice será relativo ao fim da seqüência " -"*s*: `` len(s) + i`` ou ``len(s) + j`` será substituído. Mas note que ``-0``" -" ainda será ``0``." +"*s*: `` len(s) + i`` ou ``len(s) + j`` será substituído. Mas note que ``-0`` " +"ainda será ``0``." -#: ../../library/stdtypes.rst:941 +#: ../../library/stdtypes.rst:943 msgid "" "The slice of *s* from *i* to *j* is defined as the sequence of items with " "index *k* such that ``i <= k < j``. If *i* or *j* is greater than " "``len(s)``, use ``len(s)``. If *i* is omitted or ``None``, use ``0``. If " -"*j* is omitted or ``None``, use ``len(s)``. If *i* is greater than or equal" -" to *j*, the slice is empty." +"*j* is omitted or ``None``, use ``len(s)``. If *i* is greater than or equal " +"to *j*, the slice is empty." msgstr "" "A fatia *s* de *i* para *j* é definida como a seqüência de itens com índice " "*k* tal que ``i <= k ` and :ref:`mutable" -" ` sequence operations. Lists also provide the following " +"Lists implement all of the :ref:`common ` and :ref:`mutable " +"` sequence operations. Lists also provide the following " "additional method:" msgstr "" -"As listas implementam todo o :ref:`common ` e a " -":ref:`mutable ` operações de sequência. As listas também " +"As listas implementam todo o :ref:`common ` e a :ref:" +"`mutable ` operações de sequência. As listas também " "fornecem o seguinte método adicional:" -#: ../../library/stdtypes.rst:1170 +#: ../../library/stdtypes.rst:1172 msgid "" "This method sorts the list in place, using only ``<`` comparisons between " "items. Exceptions are not suppressed - if any comparison operations fail, " @@ -1998,15 +2021,15 @@ msgstr "" "comparação falhar, toda a operação de ordenação falhará (e a lista " "provavelmente será deixada num estado parcialmente modificado)." -#: ../../library/stdtypes.rst:1175 +#: ../../library/stdtypes.rst:1177 msgid "" -":meth:`sort` accepts two arguments that can only be passed by keyword (:ref" -":`keyword-only arguments `):" +":meth:`sort` accepts two arguments that can only be passed by keyword (:ref:" +"`keyword-only arguments `):" msgstr "" -":meth:`sort` aceita 2 argumetnos que só podem ser passados como keywords " -"(:ref:`keyword-only arguments `):" +":meth:`sort` aceita 2 argumetnos que só podem ser passados como keywords (:" +"ref:`keyword-only arguments `):" -#: ../../library/stdtypes.rst:1178 +#: ../../library/stdtypes.rst:1180 msgid "" "*key* specifies a function of one argument that is used to extract a " "comparison key from each list element (for example, ``key=str.lower``). The " @@ -2015,21 +2038,21 @@ msgid "" "list items are sorted directly without calculating a separate key value." msgstr "" "A *key* especifica uma função de um argumento que é usado para extrair uma " -"chave de comparação de cada elemento de lista (por exemplo, " -"``key=str.lower``). A chave correspondente a cada item na lista é calculada " -"uma vez e depois usada para todo o processo de classificação. O valor padrão" -" ``None`` significa que os itens da lista são classificados diretamente sem " -"calcular um valor de chave separado." +"chave de comparação de cada elemento de lista (por exemplo, ``key=str." +"lower``). A chave correspondente a cada item na lista é calculada uma vez e " +"depois usada para todo o processo de classificação. O valor padrão ``None`` " +"significa que os itens da lista são classificados diretamente sem calcular " +"um valor de chave separado." -#: ../../library/stdtypes.rst:1185 +#: ../../library/stdtypes.rst:1187 msgid "" -"The :func:`functools.cmp_to_key` utility is available to convert a 2.x style" -" *cmp* function to a *key* function." +"The :func:`functools.cmp_to_key` utility is available to convert a 2.x style " +"*cmp* function to a *key* function." msgstr "" "A função utilitária :func:`functools.cmp_to_key` está disponível para " "converter a função *cmp* no estilo 2.x para uma função *key*." -#: ../../library/stdtypes.rst:1188 +#: ../../library/stdtypes.rst:1190 msgid "" "*reverse* is a boolean value. If set to ``True``, then the list elements " "are sorted as if each comparison were reversed." @@ -2037,20 +2060,20 @@ msgstr "" "*reverse* é um valor booleano. Se definido igual a ``True``, então os " "elementos da lista são classificados como se cada comparação fosse reversa." -#: ../../library/stdtypes.rst:1191 +#: ../../library/stdtypes.rst:1193 msgid "" -"This method modifies the sequence in place for economy of space when sorting" -" a large sequence. To remind users that it operates by side effect, it does" -" not return the sorted sequence (use :func:`sorted` to explicitly request a " +"This method modifies the sequence in place for economy of space when sorting " +"a large sequence. To remind users that it operates by side effect, it does " +"not return the sorted sequence (use :func:`sorted` to explicitly request a " "new sorted list instance)." msgstr "" "Este método modifica a seqüência in-place para a economizar espaço ao " "classificar uma grande sequência. Para lembrar aos usuários que os mesmos " -"operam por efeito colateral, ele não retorna a seqüência ordenada (utilize a" -" função :func:`sorted` para solicitar explicitamente uma nova instância da " +"operam por efeito colateral, ele não retorna a seqüência ordenada (utilize a " +"função :func:`sorted` para solicitar explicitamente uma nova instância da " "lista ordenada)." -#: ../../library/stdtypes.rst:1196 +#: ../../library/stdtypes.rst:1198 msgid "" "The :meth:`sort` method is guaranteed to be stable. A sort is stable if it " "guarantees not to change the relative order of elements that compare equal " @@ -2062,30 +2085,30 @@ msgstr "" "isso é útil para classificar em várias passagens (por exemplo, classificar " "por departamento, depois por nota salarial)." -#: ../../library/stdtypes.rst:1203 +#: ../../library/stdtypes.rst:1205 msgid "" "While a list is being sorted, the effect of attempting to mutate, or even " "inspect, the list is undefined. The C implementation of Python makes the " "list appear empty for the duration, and raises :exc:`ValueError` if it can " "detect that the list has been mutated during a sort." msgstr "" -"No momento em que uma lista está sendo ordenada, o efeito de tentar alterar," -" ou mesmo inspecionar, a lista é indefinida. A implementação C do Python faz" -" com que a lista apareça vazia durante o tempo de processamento, e levanta a" -" exceção :exc:`ValueError` se puder detectar que a lista foi alterada " -"durante uma ordenação." +"No momento em que uma lista está sendo ordenada, o efeito de tentar alterar, " +"ou mesmo inspecionar, a lista é indefinida. A implementação C do Python faz " +"com que a lista apareça vazia durante o tempo de processamento, e levanta a " +"exceção :exc:`ValueError` se puder detectar que a lista foi alterada durante " +"uma ordenação." -#: ../../library/stdtypes.rst:1212 +#: ../../library/stdtypes.rst:1214 msgid "Tuples" msgstr "Tuplas" -#: ../../library/stdtypes.rst:1216 +#: ../../library/stdtypes.rst:1218 msgid "" "Tuples are immutable sequences, typically used to store collections of " "heterogeneous data (such as the 2-tuples produced by the :func:`enumerate` " "built-in). Tuples are also used for cases where an immutable sequence of " -"homogeneous data is needed (such as allowing storage in a :class:`set` or " -":class:`dict` instance)." +"homogeneous data is needed (such as allowing storage in a :class:`set` or :" +"class:`dict` instance)." msgstr "" "As Tuples são sequências imutáveis, tipicamente usadas para armazenar " "coleções de dados heterogêneos (como as 2-tuplas produzidas pelo função " @@ -2093,31 +2116,31 @@ msgstr "" "seja necessária uma seqüência imutável de dados homogêneos (como permitir o " "armazenamento em uma instância :class:`set` ou :class:`dict`)." -#: ../../library/stdtypes.rst:1224 +#: ../../library/stdtypes.rst:1226 msgid "Tuples may be constructed in a number of ways:" msgstr "As Tuples podem ser construídos de várias maneiras:" -#: ../../library/stdtypes.rst:1226 +#: ../../library/stdtypes.rst:1228 msgid "Using a pair of parentheses to denote the empty tuple: ``()``" msgstr "" "Usando um par de parênteses para denotar que a tupla está vazia: ``()``" -#: ../../library/stdtypes.rst:1227 +#: ../../library/stdtypes.rst:1229 msgid "Using a trailing comma for a singleton tuple: ``a,`` or ``(a,)``" msgstr "" -"Usando uma vírgula à direita para uma tupla contendo um único elemento: " -"``a,`` ou ``(a,)``" +"Usando uma vírgula à direita para uma tupla contendo um único elemento: ``a," +"`` ou ``(a,)``" -#: ../../library/stdtypes.rst:1228 +#: ../../library/stdtypes.rst:1230 msgid "Separating items with commas: ``a, b, c`` or ``(a, b, c)``" msgstr "Separando os itens por vírgula: ``a, b, c`` ou ``(a, b, c)``" -#: ../../library/stdtypes.rst:1229 +#: ../../library/stdtypes.rst:1231 msgid "Using the :func:`tuple` built-in: ``tuple()`` or ``tuple(iterable)``" msgstr "" "Usando a função built-in :func:`tuple`: ``tuple()`` ou ``tuple(iterable)``" -#: ../../library/stdtypes.rst:1231 +#: ../../library/stdtypes.rst:1233 msgid "" "The constructor builds a tuple whose items are the same and in the same " "order as *iterable*'s items. *iterable* may be either a sequence, a " @@ -2127,36 +2150,36 @@ msgid "" "3)``. If no argument is given, the constructor creates a new empty tuple, " "``()``." msgstr "" -"O construtor produz uma tupla cujos itens são iguais e na mesma ordem que os" -" elementos *iteráveis*. Os *iterable* poderão ser uma sequência, um " -"contêiner que suporta iteração ou um objeto iterable. Se *iterable* já for " -"uma tupla, o mesmo será retornado inalterado. Por exemplo, ``tupla('abc')`` " -"retorna ``('a', 'b', 'c')`` e ``tupla([1, 2, 3])`` retorna ``(1, 2, 3)``. Se" -" nenhum argumento for dado, o construtor criará uma tupla vazia, ``()``." +"O construtor produz uma tupla cujos itens são iguais e na mesma ordem que os " +"elementos *iteráveis*. Os *iterable* poderão ser uma sequência, um contêiner " +"que suporta iteração ou um objeto iterable. Se *iterable* já for uma tupla, " +"o mesmo será retornado inalterado. Por exemplo, ``tupla('abc')`` retorna " +"``('a', 'b', 'c')`` e ``tupla([1, 2, 3])`` retorna ``(1, 2, 3)``. Se nenhum " +"argumento for dado, o construtor criará uma tupla vazia, ``()``." -#: ../../library/stdtypes.rst:1239 +#: ../../library/stdtypes.rst:1241 msgid "" -"Note that it is actually the comma which makes a tuple, not the parentheses." -" The parentheses are optional, except in the empty tuple case, or when they " +"Note that it is actually the comma which makes a tuple, not the parentheses. " +"The parentheses are optional, except in the empty tuple case, or when they " "are needed to avoid syntactic ambiguity. For example, ``f(a, b, c)`` is a " "function call with three arguments, while ``f((a, b, c))`` is a function " "call with a 3-tuple as the sole argument." msgstr "" "Observe que na verdade é a vírgula que faz uma tupla, e não os parênteses. " "Os parênteses são opcionais, exceto no caso de tupla vazia, ou quando são " -"necessários para evitar ambiguidades sintáticas. Por exemplo, ``f(a, b, c)``" -" é uma chamada da função com três argumentos, enquanto que ``f((a, b, c))`` " -"é uma chamada de função com uma 3-tupla com um única argumento." +"necessários para evitar ambiguidades sintáticas. Por exemplo, ``f(a, b, c)`` " +"é uma chamada da função com três argumentos, enquanto que ``f((a, b, c))`` é " +"uma chamada de função com uma 3-tupla com um única argumento." -#: ../../library/stdtypes.rst:1245 +#: ../../library/stdtypes.rst:1247 msgid "" "Tuples implement all of the :ref:`common ` sequence " "operations." msgstr "" -"As tuplas implementam todas as operações de sequência :ref:`common " -"`." +"As tuplas implementam todas as operações de sequência :ref:`common `." -#: ../../library/stdtypes.rst:1248 +#: ../../library/stdtypes.rst:1250 msgid "" "For heterogeneous collections of data where access by name is clearer than " "access by index, :func:`collections.namedtuple` may be a more appropriate " @@ -2166,35 +2189,34 @@ msgstr "" "que o acesso pelo índice, :func:`collections.namedtuple` pode ser uma " "escolha mais apropriada do que um simples objeto tupla." -#: ../../library/stdtypes.rst:1256 +#: ../../library/stdtypes.rst:1258 msgid "Ranges" msgstr "Ranges" -#: ../../library/stdtypes.rst:1260 +#: ../../library/stdtypes.rst:1262 msgid "" "The :class:`range` type represents an immutable sequence of numbers and is " -"commonly used for looping a specific number of times in :keyword:`for` " -"loops." +"commonly used for looping a specific number of times in :keyword:`for` loops." msgstr "" -"O tipo da classe :class:`range` representa uma sequência imutável de números" -" e é comumente usada para fazer um looping um número determinado de vezes " +"O tipo da classe :class:`range` representa uma sequência imutável de números " +"e é comumente usada para fazer um looping um número determinado de vezes " "por :keyword:`for`." -#: ../../library/stdtypes.rst:1267 +#: ../../library/stdtypes.rst:1269 msgid "" -"The arguments to the range constructor must be integers (either built-in " -":class:`int` or any object that implements the ``__index__`` special " +"The arguments to the range constructor must be integers (either built-in :" +"class:`int` or any object that implements the ``__index__`` special " "method). If the *step* argument is omitted, it defaults to ``1``. If the " -"*start* argument is omitted, it defaults to ``0``. If *step* is zero, " -":exc:`ValueError` is raised." +"*start* argument is omitted, it defaults to ``0``. If *step* is zero, :exc:" +"`ValueError` is raised." msgstr "" -"Os argumentos para o construtor de intervalo devem ser inteiros (built-ins " -":class:`int` ou qualquer objeto que implemente o método especial " +"Os argumentos para o construtor de intervalo devem ser inteiros (built-ins :" +"class:`int` ou qualquer objeto que implemente o método especial " "``__index__``). Se o argumento *step* for omitido, será usado o padrão " "``1``. Se o argumento *start* for omitido, será usado o padrão ``0``. Se " "*step* for zero, uma exceção :exc: `ValueError` será levantada." -#: ../../library/stdtypes.rst:1273 +#: ../../library/stdtypes.rst:1275 msgid "" "For a positive *step*, the contents of a range ``r`` are determined by the " "formula ``r[i] = start + step*i`` where ``i >= 0`` and ``r[i] < stop``." @@ -2202,20 +2224,20 @@ msgstr "" "Para um *step* positivo, o conteúdo de um intervalo ``r`` será determinado " "pela fórmula ``r[i] = start + step*i`` onde ``i >= 0`` and ``r[i] < stop``." -#: ../../library/stdtypes.rst:1277 +#: ../../library/stdtypes.rst:1279 msgid "" -"For a negative *step*, the contents of the range are still determined by the" -" formula ``r[i] = start + step*i``, but the constraints are ``i >= 0`` and " +"For a negative *step*, the contents of the range are still determined by the " +"formula ``r[i] = start + step*i``, but the constraints are ``i >= 0`` and " "``r[i] > stop``." msgstr "" -"Para um *passo*, o conteúdo do intervalo ainda será determinado pela fórmula" -" ``r[i] = start + step*i``, mas as restrições serão ``i >= 0`` and ``r[i] > " +"Para um *passo*, o conteúdo do intervalo ainda será determinado pela fórmula " +"``r[i] = start + step*i``, mas as restrições serão ``i >= 0`` and ``r[i] > " "stop``." -#: ../../library/stdtypes.rst:1281 +#: ../../library/stdtypes.rst:1283 msgid "" -"A range object will be empty if ``r[0]`` does not meet the value constraint." -" Ranges do support negative indices, but these are interpreted as indexing " +"A range object will be empty if ``r[0]`` does not meet the value constraint. " +"Ranges do support negative indices, but these are interpreted as indexing " "from the end of the sequence determined by the positive indices." msgstr "" "Um objeto range estará vazio se ``r[0]`` não atender a restrição de valor. " @@ -2223,21 +2245,21 @@ msgstr "" "indexadores partindo do final da seqüência determinada pelos índices " "positivos." -#: ../../library/stdtypes.rst:1286 +#: ../../library/stdtypes.rst:1288 msgid "" "Ranges containing absolute values larger than :data:`sys.maxsize` are " -"permitted but some features (such as :func:`len`) may raise " -":exc:`OverflowError`." +"permitted but some features (such as :func:`len`) may raise :exc:" +"`OverflowError`." msgstr "" "Ranges contendo valores absolutos maiores do que :data:`sys.maxsize` são " "permitidos, mas alguns recursos (como :func:`len`) podem levantar uma " "exceção :exc:`OverflowError`." -#: ../../library/stdtypes.rst:1290 +#: ../../library/stdtypes.rst:1292 msgid "Range examples::" msgstr "Range de exemplos::" -#: ../../library/stdtypes.rst:1307 +#: ../../library/stdtypes.rst:1309 msgid "" "Ranges implement all of the :ref:`common ` sequence " "operations except concatenation and repetition (due to the fact that range " @@ -2249,40 +2271,40 @@ msgstr "" "só podem representar sequências que seguem um padrão rígido e a repetição e " "a concatenação geralmente violam esse padrão)." -#: ../../library/stdtypes.rst:1314 +#: ../../library/stdtypes.rst:1316 msgid "" "The value of the *start* parameter (or ``0`` if the parameter was not " "supplied)" msgstr "" "O valor do parâmetro *start* (ou ``0`` se o parâmetro não for fornecido)" -#: ../../library/stdtypes.rst:1319 +#: ../../library/stdtypes.rst:1321 msgid "The value of the *stop* parameter" msgstr "O valor do parâmetro *stop*" -#: ../../library/stdtypes.rst:1323 +#: ../../library/stdtypes.rst:1325 msgid "" "The value of the *step* parameter (or ``1`` if the parameter was not " "supplied)" msgstr "" "O valor do parâmetro *step* (ou ``1`` se o parâmetro não for fornecido)" -#: ../../library/stdtypes.rst:1326 +#: ../../library/stdtypes.rst:1328 msgid "" -"The advantage of the :class:`range` type over a regular :class:`list` or " -":class:`tuple` is that a :class:`range` object will always take the same " +"The advantage of the :class:`range` type over a regular :class:`list` or :" +"class:`tuple` is that a :class:`range` object will always take the same " "(small) amount of memory, no matter the size of the range it represents (as " "it only stores the ``start``, ``stop`` and ``step`` values, calculating " "individual items and subranges as needed)." msgstr "" -"A vantagem da classe :class:`range` sobre o tipo regular :class:`list` ou o " -":class:`tuple` é que um objeto :class:`range` sempre terá a mesma quantidade" -" (pequena) de memória, não importa o tamanho do intervalo o mesmo esteja " +"A vantagem da classe :class:`range` sobre o tipo regular :class:`list` ou o :" +"class:`tuple` é que um objeto :class:`range` sempre terá a mesma quantidade " +"(pequena) de memória, não importa o tamanho do intervalo o mesmo esteja " "representando (como ele apenas armazena os valores ``start``, ``stop`` e " "``step``, calculando todos os demais itens individualmente e gerando os " "subranges conforme necessário)." -#: ../../library/stdtypes.rst:1332 +#: ../../library/stdtypes.rst:1334 msgid "" "Range objects implement the :class:`collections.abc.Sequence` ABC, and " "provide features such as containment tests, element index lookup, slicing " @@ -2292,34 +2314,33 @@ msgstr "" "fornecem recursos como testes de contenção, pesquisa de índice de elemento, " "fatiamento e suporte a índices negativos (veja :ref:`typesseq`):" -#: ../../library/stdtypes.rst:1352 +#: ../../library/stdtypes.rst:1354 msgid "" "Testing range objects for equality with ``==`` and ``!=`` compares them as " "sequences. That is, two range objects are considered equal if they " "represent the same sequence of values. (Note that two range objects that " -"compare equal might have different :attr:`~range.start`, :attr:`~range.stop`" -" and :attr:`~range.step` attributes, for example ``range(0) == range(2, 1, " +"compare equal might have different :attr:`~range.start`, :attr:`~range.stop` " +"and :attr:`~range.step` attributes, for example ``range(0) == range(2, 1, " "3)`` or ``range(0, 3, 2) == range(0, 4, 2)``.)" msgstr "" "Testar objetos Range com o sinal de igualdade ``==`` e ``!=`` os compara " "como sequências. Ou seja, dois objetos de intervalo são considerados iguais " "se representarem a mesma sequência de valores. (observe que dois objetos " -"Range que comparam igual podem ter diferentes atributos " -":attr:`~range.start`, :attr:`~range.stop` and :attr:`~range.step`, por " -"exemplo ``range(0) == range(2, 1, 3)`` ou ``range(0, 3, 2) == range(0, 4, " -"2)``.)" +"Range que comparam igual podem ter diferentes atributos :attr:`~range." +"start`, :attr:`~range.stop` and :attr:`~range.step`, por exemplo ``range(0) " +"== range(2, 1, 3)`` ou ``range(0, 3, 2) == range(0, 4, 2)``.)" -#: ../../library/stdtypes.rst:1359 +#: ../../library/stdtypes.rst:1361 msgid "" -"Implement the Sequence ABC. Support slicing and negative indices. Test " -":class:`int` objects for membership in constant time instead of iterating " +"Implement the Sequence ABC. Support slicing and negative indices. Test :" +"class:`int` objects for membership in constant time instead of iterating " "through all items." msgstr "" "Implementar a Sequencia ABC. Suporte a fatiamento e a índices negativos. " "Testa objetos :class:`int` para associação em tempo constante em vez de " "iterar através de todos os itens." -#: ../../library/stdtypes.rst:1365 +#: ../../library/stdtypes.rst:1367 msgid "" "Define '==' and '!=' to compare range objects based on the sequence of " "values they define (instead of comparing based on object identity)." @@ -2328,56 +2349,62 @@ msgstr "" "valores que eles definem (em vez de comparar com base na identidade do " "objeto)." -#: ../../library/stdtypes.rst:1370 +#: ../../library/stdtypes.rst:1372 msgid "" "The :attr:`~range.start`, :attr:`~range.stop` and :attr:`~range.step` " "attributes." msgstr "" -"Os atributos :attr:`~range.start`, :attr:`~range.stop` e " -":attr:`~range.step`." +"Os atributos :attr:`~range.start`, :attr:`~range.stop` e :attr:`~range.step`." -#: ../../library/stdtypes.rst:1376 +#: ../../library/stdtypes.rst:1378 msgid "" "The `linspace recipe `_ shows " "how to implement a lazy version of range suitable for floating point " "applications." msgstr "" +"A `receita de linspace `_ " +"mostra como implementar uma versão preguiçosa de um intervalo adequado para " +"aplicações de ponto flutuante." -#: ../../library/stdtypes.rst:1388 +#: ../../library/stdtypes.rst:1390 msgid "Text Sequence Type --- :class:`str`" msgstr "Tipo de Sequência de Texto --- :class:`str`" -#: ../../library/stdtypes.rst:1390 +#: ../../library/stdtypes.rst:1392 msgid "" -"Textual data in Python is handled with :class:`str` objects, or " -":dfn:`strings`. Strings are immutable :ref:`sequences ` of Unicode" -" code points. String literals are written in a variety of ways:" +"Textual data in Python is handled with :class:`str` objects, or :dfn:" +"`strings`. Strings are immutable :ref:`sequences ` of Unicode code " +"points. String literals are written in a variety of ways:" msgstr "" -"Os dados textuais em Python são tratados com objetos :class:`str`, ou " -":dfn:`strings`. Strings são imutáveis :ref:`sequences ` de códigos" -" Unicode. As Strings literais são escritas de diversas maneiras:" +"Os dados textuais em Python são tratados com objetos :class:`str`, ou :dfn:" +"`strings`. Strings são imutáveis :ref:`sequences ` de códigos " +"Unicode. As Strings literais são escritas de diversas maneiras:" -#: ../../library/stdtypes.rst:1395 +#: ../../library/stdtypes.rst:1397 msgid "Single quotes: ``'allows embedded \"double\" quotes'``" msgstr "Aspas Simples: ``'allows embedded \"double\" quotes'``" -#: ../../library/stdtypes.rst:1396 +#: ../../library/stdtypes.rst:1398 msgid "Double quotes: ``\"allows embedded 'single' quotes\"``." msgstr "Aspas Duplas: ``\"allows embedded 'single' quotes\"``." -#: ../../library/stdtypes.rst:1397 -msgid "Triple quoted: ``'''Three single quotes'''``, ``\"\"\"Three double quotes\"\"\"``" -msgstr "Aspas Triplas: ``'''Three single quotes'''``, ``\"\"\"Three double quotes\"\"\"``" - #: ../../library/stdtypes.rst:1399 msgid "" +"Triple quoted: ``'''Three single quotes'''``, ``\"\"\"Three double quotes" +"\"\"\"``" +msgstr "" +"Aspas Triplas: ``'''Three single quotes'''``, ``\"\"\"Three double quotes" +"\"\"\"``" + +#: ../../library/stdtypes.rst:1401 +msgid "" "Triple quoted strings may span multiple lines - all associated whitespace " "will be included in the string literal." msgstr "" "Aspas triplas são Strings de várias linhas - todos os espaços em branco " "associados serão incluídos na String literal." -#: ../../library/stdtypes.rst:1402 +#: ../../library/stdtypes.rst:1404 msgid "" "String literals that are part of a single expression and have only " "whitespace between them will be implicitly converted to a single string " @@ -2387,17 +2414,17 @@ msgstr "" "espaços em branco entre eles serão implicitamente convertidos em um único " "literal String. Isso é, ``(\"spam \" \"eggs\") == \"spam eggs\"``." -#: ../../library/stdtypes.rst:1406 +#: ../../library/stdtypes.rst:1408 msgid "" "See :ref:`strings` for more about the various forms of string literal, " "including supported escape sequences, and the ``r`` (\"raw\") prefix that " "disables most escape sequence processing." msgstr "" "Veja :ref:`strings` para mais informações sobre as várias formas de cadeia " -"de literais, incluindo o suporte a Strings escape, e o prefixo ``r`` " -"(\"raw\") que desabilita a maioria dos processos de escape." +"de literais, incluindo o suporte a Strings escape, e o prefixo ``r`` (\"raw" +"\") que desabilita a maioria dos processos de escape." -#: ../../library/stdtypes.rst:1410 +#: ../../library/stdtypes.rst:1412 msgid "" "Strings may also be created from other objects using the :class:`str` " "constructor." @@ -2405,27 +2432,26 @@ msgstr "" "As Strings também podem ser criadas a partir de outros objetos usando o " "construtor :class:`str`." -#: ../../library/stdtypes.rst:1413 +#: ../../library/stdtypes.rst:1415 msgid "" "Since there is no separate \"character\" type, indexing a string produces " -"strings of length 1. That is, for a non-empty string *s*, ``s[0] == " -"s[0:1]``." +"strings of length 1. That is, for a non-empty string *s*, ``s[0] == s[0:1]``." msgstr "" "Uma vez que não há nenhum tipo de \"caractere\" separador, indexar uma " "String produz Strings de comprimento 1. Ou seja, para uma Strings não vazia " "*s*, ``s[0] == s[0:1]``." -#: ../../library/stdtypes.rst:1419 +#: ../../library/stdtypes.rst:1421 msgid "" -"There is also no mutable string type, but :meth:`str.join` or " -":class:`io.StringIO` can be used to efficiently construct strings from " -"multiple fragments." +"There is also no mutable string type, but :meth:`str.join` or :class:`io." +"StringIO` can be used to efficiently construct strings from multiple " +"fragments." msgstr "" "Também não existe um tipo de String mutável, mas o método :meth:`str.join` " "ou a classe :class:` io.StringIO` podem ser usado para construir Strings de " "forma eficiente a partir de vários partes distintas." -#: ../../library/stdtypes.rst:1423 +#: ../../library/stdtypes.rst:1425 msgid "" "For backwards compatibility with the Python 2 series, the ``u`` prefix is " "once again permitted on string literals. It has no effect on the meaning of " @@ -2436,7 +2462,7 @@ msgstr "" "sobre o significado de literais Strings e não pode ser combinado com o " "prefixo ``r``." -#: ../../library/stdtypes.rst:1435 +#: ../../library/stdtypes.rst:1437 msgid "" "Return a :ref:`string ` version of *object*. If *object* is not " "provided, returns the empty string. Otherwise, the behavior of ``str()`` " @@ -2447,78 +2473,105 @@ msgstr "" "``str()`` dependerá se o *encoding* ou *erros* são fornecidos, da seguinte " "forma." -#: ../../library/stdtypes.rst:1439 +#: ../../library/stdtypes.rst:1441 msgid "" -"If neither *encoding* nor *errors* is given, ``str(object)`` returns " -":meth:`object.__str__() `, which is the \"informal\" or " -"nicely printable string representation of *object*. For string objects, " -"this is the string itself. If *object* does not have a " -":meth:`~object.__str__` method, then :func:`str` falls back to returning " -":meth:`repr(object) `." +"If neither *encoding* nor *errors* is given, ``str(object)`` returns :meth:" +"`object.__str__() `, which is the \"informal\" or nicely " +"printable string representation of *object*. For string objects, this is " +"the string itself. If *object* does not have a :meth:`~object.__str__` " +"method, then :func:`str` falls back to returning :meth:`repr(object) `." msgstr "" "Se nem o *encoding* nem os *errors* forem dados, a ``str(object)`` retorna " "o método :meth:`object .__ str __ ()`, que é a representação de seqüência " -"\"informal\" ou que pode ser facilmente imprimível de *objeto*. Para objetos" -" String, esta é a própria String. Se o *objeto* não tiver um método " -":meth:`~object .__ str__`, então a função :func:`str` retornará " -":meth:`repr(object)`." +"\"informal\" ou que pode ser facilmente imprimível de *objeto*. Para objetos " +"String, esta é a própria String. Se o *objeto* não tiver um método :meth:" +"`~object .__ str__`, então a função :func:`str` retornará :meth:" +"`repr(object)`." -#: ../../library/stdtypes.rst:1450 +#: ../../library/stdtypes.rst:1452 msgid "" -"If at least one of *encoding* or *errors* is given, *object* should be a " -":term:`bytes-like object` (e.g. :class:`bytes` or :class:`bytearray`). In " +"If at least one of *encoding* or *errors* is given, *object* should be a :" +"term:`bytes-like object` (e.g. :class:`bytes` or :class:`bytearray`). In " "this case, if *object* is a :class:`bytes` (or :class:`bytearray`) object, " -"then ``str(bytes, encoding, errors)`` is equivalent to " -":meth:`bytes.decode(encoding, errors) `. Otherwise, the bytes" -" object underlying the buffer object is obtained before calling " -":meth:`bytes.decode`. See :ref:`binaryseq` and :ref:`bufferobjects` for " -"information on buffer objects." -msgstr "" - -#: ../../library/stdtypes.rst:1459 +"then ``str(bytes, encoding, errors)`` is equivalent to :meth:`bytes." +"decode(encoding, errors) `. Otherwise, the bytes object " +"underlying the buffer object is obtained before calling :meth:`bytes." +"decode`. See :ref:`binaryseq` and :ref:`bufferobjects` for information on " +"buffer objects." +msgstr "" +"Se pelo menos um de *encoding* ou *errors* for fornecido, *object* deve ser " +"um :term:`bytes-like object` (por exemplo. :class:`bytes` ou :class:" +"`bytearray`). Nesse caso, se *object* for um objeto :class:`bytes` (ou :" +"class:`bytearray`), então ``str(bytes, encoding, errors)`` será equivalente " +"a :meth:`bytes.decode (encoding, errors) `. Caso contrário, o " +"objeto bytes subjacente ao objeto buffer é obtido antes de chamar :meth:" +"`bytes.decode`. Veja :ref:`binaryseq` e :ref:`bufferobjects` para obter " +"informações sobre objetos buffer." + +#: ../../library/stdtypes.rst:1461 msgid "" "Passing a :class:`bytes` object to :func:`str` without the *encoding* or " "*errors* arguments falls under the first case of returning the informal " "string representation (see also the :option:`-b` command-line option to " "Python). For example::" msgstr "" +"Passa um objeto :class:`bytes` para :func:`str` sem os argumentos *encoding* " +"ou *errors* se enquadra no primeiro caso de retornar a representação " +"informal de strings (consulte também a opção de linha :option:command:`-b` " +"para Python). Por exemplo::" -#: ../../library/stdtypes.rst:1467 +#: ../../library/stdtypes.rst:1469 msgid "" -"For more information on the ``str`` class and its methods, see " -":ref:`textseq` and the :ref:`string-methods` section below. To output " -"formatted strings, see the :ref:`f-strings` and :ref:`formatstrings` " -"sections. In addition, see the :ref:`stringservices` section." +"For more information on the ``str`` class and its methods, see :ref:" +"`textseq` and the :ref:`string-methods` section below. To output formatted " +"strings, see the :ref:`f-strings` and :ref:`formatstrings` sections. In " +"addition, see the :ref:`stringservices` section." msgstr "" +"Para mais informações sobre a classe ``str`` e seus métodos, veja :ref:" +"`textseq` e a seção :ref:`string-methods` abaixo. Para gerar strings " +"formatadas, veja as seções :ref:`f-strings` e :ref:`formatstrings`. Além " +"disso, veja a seção :ref:`stringservices`." -#: ../../library/stdtypes.rst:1479 +#: ../../library/stdtypes.rst:1481 msgid "String Methods" msgstr "Métodos de String" -#: ../../library/stdtypes.rst:1484 +#: ../../library/stdtypes.rst:1486 msgid "" "Strings implement all of the :ref:`common ` sequence " "operations, along with the additional methods described below." msgstr "" +"Strings implementam todas as operações de sequência :ref:`common `, juntamente com os métodos adicionais descritos abaixo." -#: ../../library/stdtypes.rst:1487 +#: ../../library/stdtypes.rst:1489 msgid "" "Strings also support two styles of string formatting, one providing a large " -"degree of flexibility and customization (see :meth:`str.format`, " -":ref:`formatstrings` and :ref:`string-formatting`) and the other based on C " +"degree of flexibility and customization (see :meth:`str.format`, :ref:" +"`formatstrings` and :ref:`string-formatting`) and the other based on C " "``printf`` style formatting that handles a narrower range of types and is " "slightly harder to use correctly, but is often faster for the cases it can " "handle (:ref:`old-string-formatting`)." msgstr "" +"Strings também suportam duas formas de formatação de string, uma fornecendo " +"uma ampla gama de flexibilidade e customização (veja :meth:`str.format`, :" +"ref:`formatstrings` e :ref:`string-formatting`) e a outra baseada no estilo " +"de formatação ``printf`` da linguagem C, que lida com uma possibilidade " +"menor de tipos e é levemente mais difícil de utilizar corretamente, mas é " +"frequentemente mais rápida para os casos na qual ela consegue lidar (:ref:" +"`old-string-formatting`)." -#: ../../library/stdtypes.rst:1494 +#: ../../library/stdtypes.rst:1496 msgid "" "The :ref:`textservices` section of the standard library covers a number of " -"other modules that provide various text related utilities (including regular" -" expression support in the :mod:`re` module)." +"other modules that provide various text related utilities (including regular " +"expression support in the :mod:`re` module)." msgstr "" +"A seção :ref:`textservices` da biblioteca padrão cobre um número de diversos " +"outros módulos que fornecem vários utilitários relacionados a texto " +"(incluindo suporte a expressões regulares no módulo :mod:`re`)." -#: ../../library/stdtypes.rst:1500 +#: ../../library/stdtypes.rst:1502 msgid "" "Return a copy of the string with its first character capitalized and the " "rest lowercased." @@ -2526,91 +2579,124 @@ msgstr "" "Retorna uma cópia da String com o seu primeiro caractere em maiúsculo e o " "restantes em minúsculo." -#: ../../library/stdtypes.rst:1506 +#: ../../library/stdtypes.rst:1508 msgid "" "Return a casefolded copy of the string. Casefolded strings may be used for " "caseless matching." msgstr "" +"Retorna uma cópia da string em casefolded. Strings em casefold podem ser " +"usadas para corresponder letras sem importar se são minúsculas/maiúsculas." -#: ../../library/stdtypes.rst:1509 +#: ../../library/stdtypes.rst:1511 msgid "" "Casefolding is similar to lowercasing but more aggressive because it is " "intended to remove all case distinctions in a string. For example, the " "German lowercase letter ``'ß'`` is equivalent to ``\"ss\"``. Since it is " -"already lowercase, :meth:`lower` would do nothing to ``'ß'``; " -":meth:`casefold` converts it to ``\"ss\"``." +"already lowercase, :meth:`lower` would do nothing to ``'ß'``; :meth:" +"`casefold` converts it to ``\"ss\"``." msgstr "" +"Casefolding é similar a mudar para letras minúsculas, mas mais agressivo " +"porque ele é pretendido para remover todas as diferenças maiúsculas/" +"minúsculas em uma string. Por exemplo, a letra minúscula alemã ``'ß'`` é " +"equivalente a ``\"ss\"``. Como ela já é uma minúscula, o método :meth:" +"`lower` não irá fazer nada para ``'ß'``; já o método :meth:`casefold` " +"converte a letra para ``\"ss\"``." -#: ../../library/stdtypes.rst:1515 +#: ../../library/stdtypes.rst:1517 msgid "" "The casefolding algorithm is described in section 3.13 of the Unicode " "Standard." msgstr "O algoritmo casefolding é descrito na seção 3.13 do Padrão Unicode." -#: ../../library/stdtypes.rst:1523 +#: ../../library/stdtypes.rst:1525 msgid "" "Return centered in a string of length *width*. Padding is done using the " "specified *fillchar* (default is an ASCII space). The original string is " "returned if *width* is less than or equal to ``len(s)``." msgstr "" +"Retorna um texto centralizado em uma string de comprimento *width*. " +"Preenchimento é feito usando o parâmetro *fillchar* especificado (padrão é o " +"caractere de espaço ASCII). A string original é retornada se *width* é menor " +"ou igual que ``len(s)``." -#: ../../library/stdtypes.rst:1531 +#: ../../library/stdtypes.rst:1533 msgid "" "Return the number of non-overlapping occurrences of substring *sub* in the " "range [*start*, *end*]. Optional arguments *start* and *end* are " "interpreted as in slice notation." msgstr "" +"Retorna o número de ocorrências da sub-string *sub* que não se sobrepõem no " +"intervalo [*start*, *end*]. Argumentos opcionais *start* e *end* são " +"interpretados como na notação de fatias." -#: ../../library/stdtypes.rst:1538 +#: ../../library/stdtypes.rst:1540 msgid "" "Return an encoded version of the string as a bytes object. Default encoding " "is ``'utf-8'``. *errors* may be given to set a different error handling " "scheme. The default for *errors* is ``'strict'``, meaning that encoding " "errors raise a :exc:`UnicodeError`. Other possible values are ``'ignore'``, " -"``'replace'``, ``'xmlcharrefreplace'``, ``'backslashreplace'`` and any other" -" name registered via :func:`codecs.register_error`, see section :ref:`error-" +"``'replace'``, ``'xmlcharrefreplace'``, ``'backslashreplace'`` and any other " +"name registered via :func:`codecs.register_error`, see section :ref:`error-" "handlers`. For a list of possible encodings, see section :ref:`standard-" "encodings`." msgstr "" -"Retornar uma versão codificada da String como um objeto bytes. A codificação" -" padrão é ``'utf-8'``. *erros* podem ser levantados para definir um esquema " +"Retornar uma versão codificada da String como um objeto bytes. A codificação " +"padrão é ``'utf-8'``. *erros* podem ser levantados para definir um esquema " "de tratamento de erros diferente. O padrão para *erros* é ``'strict'``, o " -"que significa que os erros de codificação levantam uma exceção " -":exc:`UnicodeError`. Outros valores possíveis são ``'ignore'``, " -"``'replace'``, ``'xmlcharrefreplace'``, ``'backslashreplace'`` e qualquer " -"outro nome registrado via :func:`codecs.register_error`, veja a seção :ref" -":`error-handlers`. Para obter uma lista das possíveis codificações, consulte" -" a seção :ref:`standard-encodings`." - -#: ../../library/stdtypes.rst:1547 +"que significa que os erros de codificação levantam uma exceção :exc:" +"`UnicodeError`. Outros valores possíveis são ``'ignore'``, ``'replace'``, " +"``'xmlcharrefreplace'``, ``'backslashreplace'`` e qualquer outro nome " +"registrado via :func:`codecs.register_error`, veja a seção :ref:`error-" +"handlers`. Para obter uma lista das possíveis codificações, consulte a " +"seção :ref:`standard-encodings`." + +#: ../../library/stdtypes.rst:1549 msgid "Support for keyword arguments added." msgstr "Suporte para argumentos que possuem keyword adicionados." -#: ../../library/stdtypes.rst:1553 +#: ../../library/stdtypes.rst:1555 msgid "" "Return ``True`` if the string ends with the specified *suffix*, otherwise " "return ``False``. *suffix* can also be a tuple of suffixes to look for. " "With optional *start*, test beginning at that position. With optional " "*end*, stop comparing at that position." msgstr "" +"Retorna ``True`` se a string terminar com o *suffix* especificado, caso " +"contrário retorna ``False``. *suffix* também pode ser uma tupla de sufixos " +"para procurar. Com o parâmetro opcional *start*, começamos a testart a " +"partir daquela posição. Com o parâmetro opcional *end*, devemos parar de " +"comparar na posição especificada." -#: ../../library/stdtypes.rst:1561 +#: ../../library/stdtypes.rst:1563 msgid "" "Return a copy of the string where all tab characters are replaced by one or " "more spaces, depending on the current column and the given tab size. Tab " "positions occur every *tabsize* characters (default is 8, giving tab " -"positions at columns 0, 8, 16 and so on). To expand the string, the current" -" column is set to zero and the string is examined character by character. " -"If the character is a tab (``\\t``), one or more space characters are " -"inserted in the result until the current column is equal to the next tab " -"position. (The tab character itself is not copied.) If the character is a " -"newline (``\\n``) or return (``\\r``), it is copied and the current column " -"is reset to zero. Any other character is copied unchanged and the current " -"column is incremented by one regardless of how the character is represented " -"when printed." -msgstr "" - -#: ../../library/stdtypes.rst:1582 +"positions at columns 0, 8, 16 and so on). To expand the string, the current " +"column is set to zero and the string is examined character by character. If " +"the character is a tab (``\\t``), one or more space characters are inserted " +"in the result until the current column is equal to the next tab position. " +"(The tab character itself is not copied.) If the character is a newline (``" +"\\n``) or return (``\\r``), it is copied and the current column is reset to " +"zero. Any other character is copied unchanged and the current column is " +"incremented by one regardless of how the character is represented when " +"printed." +msgstr "" +"Devolve uma cópia da string onde todos os caracteres de tabulação são " +"substituídos por um ou mais espaços, dependendo da coluna atual e do tamanho " +"fornecido para a tabulação. Posições de tabulação ocorrem a cada *tabsize* " +"caracteres (o padrão é 8, dada as posições de tabulação nas colunas 0, 8, 16 " +"e assim por diante). Para expandir a string, a coluna atual é definida como " +"zero e a string é examinada caracter por caracter. Se o caracter é uma " +"tabulação (``\\t``), um ou mais caracteres de espaço são inseridos no " +"resultado até que a coluna atual seja igual a próxima posição de tabulação. " +"(O caracter de tabulação em si não é copiado.) Se o caracter é um caracter " +"de nova linha (``\\n``) ou de retorno (``\\r``), ele é copiado e a coluna " +"atual é resetada para zero. Qualquer outro caracter é copiado sem ser " +"modificado e a coluna atual é incrementada em uma unidate independentemente " +"de como o caracter é representado quanto é impresso." + +#: ../../library/stdtypes.rst:1584 msgid "" "Return the lowest index in the string where substring *sub* is found within " "the slice ``s[start:end]``. Optional arguments *start* and *end* are " @@ -2621,52 +2707,68 @@ msgstr "" "são interpretados como umanotação de fatiamento. Retorna ``-1`` se *sub* " "não for localizado." -#: ../../library/stdtypes.rst:1588 +#: ../../library/stdtypes.rst:1590 msgid "" "The :meth:`~str.find` method should be used only if you need to know the " -"position of *sub*. To check if *sub* is a substring or not, use the " -":keyword:`in` operator::" +"position of *sub*. To check if *sub* is a substring or not, use the :" +"keyword:`in` operator::" msgstr "" "O método :meth:`~str.find` deve ser usado apenas se precisarmos conhecer a " "posição de *sub*. Para verificar se *sub* é ou não uma substring, use o " "operador :keyword:`in`::" -#: ../../library/stdtypes.rst:1598 +#: ../../library/stdtypes.rst:1600 msgid "" "Perform a string formatting operation. The string on which this method is " "called can contain literal text or replacement fields delimited by braces " "``{}``. Each replacement field contains either the numeric index of a " "positional argument, or the name of a keyword argument. Returns a copy of " -"the string where each replacement field is replaced with the string value of" -" the corresponding argument." +"the string where each replacement field is replaced with the string value of " +"the corresponding argument." msgstr "" +"Executa uma operação de formatação de string. A string na qual este método é " +"chamado pode conter texto literal ou campos para substituição delimitados " +"por chaves ``{}``. Cada campo de substituição contém ou um índice numérico " +"de um argumento posicional, ou o nome de um argumento palavra-chave. Retorna " +"a cópia da string onde cada campo para substituição é substituído com o " +"valor da string do argumento correspondente." -#: ../../library/stdtypes.rst:1608 +#: ../../library/stdtypes.rst:1610 msgid "" -"See :ref:`formatstrings` for a description of the various formatting options" -" that can be specified in format strings." +"See :ref:`formatstrings` for a description of the various formatting options " +"that can be specified in format strings." msgstr "" -"Veja :ref:`formatstrings` para uma descrição das várias opções de formatação" -" que podem ser especificadas em um formato Strings." +"Veja :ref:`formatstrings` para uma descrição das várias opções de formatação " +"que podem ser especificadas em um formato Strings." -#: ../../library/stdtypes.rst:1612 +#: ../../library/stdtypes.rst:1614 msgid "" -"When formatting a number (:class:`int`, :class:`float`, :class:`complex`, " -":class:`decimal.Decimal` and subclasses) with the ``n`` type (ex: " -"``'{:n}'.format(1234)``), the function temporarily sets the ``LC_CTYPE`` " -"locale to the ``LC_NUMERIC`` locale to decode ``decimal_point`` and " -"``thousands_sep`` fields of :c:func:`localeconv` if they are non-ASCII or " -"longer than 1 byte, and the ``LC_NUMERIC`` locale is different than the " -"``LC_CTYPE`` locale. This temporary change affects other threads." +"When formatting a number (:class:`int`, :class:`float`, :class:`complex`, :" +"class:`decimal.Decimal` and subclasses) with the ``n`` type (ex: ``'{:n}'." +"format(1234)``), the function temporarily sets the ``LC_CTYPE`` locale to " +"the ``LC_NUMERIC`` locale to decode ``decimal_point`` and ``thousands_sep`` " +"fields of :c:func:`localeconv` if they are non-ASCII or longer than 1 byte, " +"and the ``LC_NUMERIC`` locale is different than the ``LC_CTYPE`` locale. " +"This temporary change affects other threads." msgstr "" +"Ao formatar um número (:class:`int`, :class:`float`, :class:`complex`, :" +"class:`decimal.Decimal` e sub-classes) com o tipo ``n`` (ex: ``'{:n}'." +"format(1234)``), a função define temporariamente a localidade ``LC_CTYPE`` " +"para a localidade ``LC_NUMERIC`` a fim de decodificar campos " +"``decimal_point`` e ``thousands_sep`` de :c:func:`localeconv` se eles são " +"caracteres não-ASCII ou maiores que 1 byte, e a localidade ``LC_NUMERIC`` é " +"diferente da localidade ``LC_CTYPE``. Esta mudança temporária afeta outras " +"threads." -#: ../../library/stdtypes.rst:1621 +#: ../../library/stdtypes.rst:1623 msgid "" "When formatting a number with the ``n`` type, the function sets temporarily " "the ``LC_CTYPE`` locale to the ``LC_NUMERIC`` locale in some cases." msgstr "" +"Ao formatar um número com o tipo ``n``, a função define temporatiamente a " +"localidade ``LC_CTYPE`` para ``LC_NUMERIC`` em alguns casos." -#: ../../library/stdtypes.rst:1629 +#: ../../library/stdtypes.rst:1631 msgid "" "Similar to ``str.format(**mapping)``, except that ``mapping`` is used " "directly and not copied to a :class:`dict`. This is useful if for example " @@ -2676,224 +2778,333 @@ msgstr "" "é usado indiretamente e não copiado para uma classe :class:`dict`. Isso é " "útil se, por exemplo, ``mapping'' é uma subclasse de dict:" -#: ../../library/stdtypes.rst:1645 +#: ../../library/stdtypes.rst:1647 msgid "" "Like :meth:`~str.find`, but raise :exc:`ValueError` when the substring is " "not found." msgstr "" +"Similar a :meth:`~str.find`, mas levanta :exc:`ValueError` quando a sub-" +"string não é encontrada." -#: ../../library/stdtypes.rst:1651 +#: ../../library/stdtypes.rst:1653 msgid "" -"Return true if all characters in the string are alphanumeric and there is at" -" least one character, false otherwise. A character ``c`` is alphanumeric if" -" one of the following returns ``True``: ``c.isalpha()``, ``c.isdecimal()``, " -"``c.isdigit()``, or ``c.isnumeric()``." +"Return ``True`` if all characters in the string are alphanumeric and there " +"is at least one character, ``False`` otherwise. A character ``c`` is " +"alphanumeric if one of the following returns ``True``: ``c.isalpha()``, ``c." +"isdecimal()``, ``c.isdigit()``, or ``c.isnumeric()``." msgstr "" +"Retorna ``True`` se todos os caracteres na string são alfanuméricos e existe " +"pelo menos um caractere, ou ``False`` caso contrário. Um caractere ``c`` é " +"alfanumérico se um dos seguintes retorna ``True``: ``c.isalpha()``, ``c." +"isdecimal()``, ``c.isdigit()``, ou ``c.isnumeric()``." -#: ../../library/stdtypes.rst:1659 +#: ../../library/stdtypes.rst:1661 msgid "" -"Return true if all characters in the string are alphabetic and there is at " -"least one character, false otherwise. Alphabetic characters are those " -"characters defined in the Unicode character database as \"Letter\", i.e., " -"those with general category property being one of \"Lm\", \"Lt\", \"Lu\", " -"\"Ll\", or \"Lo\". Note that this is different from the \"Alphabetic\" " +"Return ``True`` if all characters in the string are alphabetic and there is " +"at least one character, ``False`` otherwise. Alphabetic characters are " +"those characters defined in the Unicode character database as \"Letter\", i." +"e., those with general category property being one of \"Lm\", \"Lt\", \"Lu" +"\", \"Ll\", or \"Lo\". Note that this is different from the \"Alphabetic\" " "property defined in the Unicode Standard." msgstr "" +"Retorna ``True`` se todos os caracteres na string são alfabéticos e existe " +"pelo menos um caractere, ``False`` caso contrário. Caracteres alfabéticos " +"são aqueles caracteres definidos na base de dados de caracteres Unicode como " +"\"Letra\", isto é, aqueles cuja propriedade na categoria geral é um destes: " +"\"Lm\", \"Lt\", \"Lu\", \"Ll\", ou \"Lo\". Perceba que isso é diferente da " +"propriedade \"Alfabética\" definida no Unicode padrão." -#: ../../library/stdtypes.rst:1668 +#: ../../library/stdtypes.rst:1670 msgid "" -"Return true if the string is empty or all characters in the string are " -"ASCII, false otherwise. ASCII characters have code points in the range " -"U+0000-U+007F." +"Return ``True`` if the string is empty or all characters in the string are " +"ASCII, ``False`` otherwise. ASCII characters have code points in the range U" +"+0000-U+007F." msgstr "" +"Retorna ``True`` se a string é vazia ou se todos os caracteres na string são " +"ASCII, ``False`` caso contrário. Caracteres ASCII tem códigos inteiros no " +"intervalo U+0000-U+007F." -#: ../../library/stdtypes.rst:1677 +#: ../../library/stdtypes.rst:1679 msgid "" -"Return true if all characters in the string are decimal characters and there" -" is at least one character, false otherwise. Decimal characters are those " -"that can be used to form numbers in base 10, e.g. U+0660, ARABIC-INDIC DIGIT" -" ZERO. Formally a decimal character is a character in the Unicode General " -"Category \"Nd\"." +"Return ``True`` if all characters in the string are decimal characters and " +"there is at least one character, ``False`` otherwise. Decimal characters are " +"those that can be used to form numbers in base 10, e.g. U+0660, ARABIC-INDIC " +"DIGIT ZERO. Formally a decimal character is a character in the Unicode " +"General Category \"Nd\"." msgstr "" +"Retorna ``True`` se todos os caracteres na string são caracteres decimais e " +"existe pelo menos um caractere, ``False`` caso contrário. Caracteres " +"decimais são aqueles que podem ser usados para formar números na base 10, " +"exemplo U+0660, ou dígito zero para arábico-índico. Formalmente, um " +"caractere decimal é um caractere em Unicode cuja categoria geral é \"Nd\"." -#: ../../library/stdtypes.rst:1687 +#: ../../library/stdtypes.rst:1689 msgid "" -"Return true if all characters in the string are digits and there is at least" -" one character, false otherwise. Digits include decimal characters and " -"digits that need special handling, such as the compatibility superscript " +"Return ``True`` if all characters in the string are digits and there is at " +"least one character, ``False`` otherwise. Digits include decimal characters " +"and digits that need special handling, such as the compatibility superscript " "digits. This covers digits which cannot be used to form numbers in base 10, " "like the Kharosthi numbers. Formally, a digit is a character that has the " "property value Numeric_Type=Digit or Numeric_Type=Decimal." msgstr "" +"Retorna ``True`` se todos os caracteres na string são dígitos e existe pelo " +"menos um caractere, ``False`` caso contrário. Dígitos incluem caracteres " +"decimais e dígitos que precisam de tratamento especial, tal como a " +"compatibilidade com dígitos sobre-escritos. Isso inclui dígitos que não " +"podem ser usados para formar números na base 10, como por exemplo os números " +"de Kharosthi. Formalmente, um dígito é um caractere que tem a propriedade " +"com valor Numeric_Type=Digit ou Numeric_Type=Decimal." -#: ../../library/stdtypes.rst:1697 +#: ../../library/stdtypes.rst:1699 msgid "" -"Return true if the string is a valid identifier according to the language " -"definition, section :ref:`identifiers`." +"Return ``True`` if the string is a valid identifier according to the " +"language definition, section :ref:`identifiers`." msgstr "" +"Retorna ``True`` se a string é um identificador válido conforme a definição " +"da linguagem, seção :ref:`identifiers`." -#: ../../library/stdtypes.rst:1700 +#: ../../library/stdtypes.rst:1702 msgid "" -"Use :func:`keyword.iskeyword` to test for reserved identifiers such as " -":keyword:`def` and :keyword:`class`." +"Use :func:`keyword.iskeyword` to test for reserved identifiers such as :" +"keyword:`def` and :keyword:`class`." msgstr "" -#: ../../library/stdtypes.rst:1705 +#: ../../library/stdtypes.rst:1707 msgid "" -"Return true if all cased characters [4]_ in the string are lowercase and " -"there is at least one cased character, false otherwise." +"Return ``True`` if all cased characters [4]_ in the string are lowercase and " +"there is at least one cased character, ``False`` otherwise." msgstr "" +"Retorna ``True`` se todos os caracteres em caixa [4]_ na string são " +"minúsculos e existe pelo menos um caracter em caixa, ``False`` caso " +"contrário." -#: ../../library/stdtypes.rst:1711 +#: ../../library/stdtypes.rst:1713 msgid "" -"Return true if all characters in the string are numeric characters, and " -"there is at least one character, false otherwise. Numeric characters include" -" digit characters, and all characters that have the Unicode numeric value " -"property, e.g. U+2155, VULGAR FRACTION ONE FIFTH. Formally, numeric " +"Return ``True`` if all characters in the string are numeric characters, and " +"there is at least one character, ``False`` otherwise. Numeric characters " +"include digit characters, and all characters that have the Unicode numeric " +"value property, e.g. U+2155, VULGAR FRACTION ONE FIFTH. Formally, numeric " "characters are those with the property value Numeric_Type=Digit, " "Numeric_Type=Decimal or Numeric_Type=Numeric." msgstr "" +"Retorna ``True`` se todos os caracteres na string são caracteres numéricos, " +"e existe pelo menos um caractere, ``False`` caso contrário. Caracteres " +"numéricos incluem dígitos, e todos os caracteres que tem a propriedade/valor " +"numérica Unicode, isto é: U+2155, um quinto de fração vulgar. Formalmente, " +"caracteres numéricos são aqueles que possuem propriedades com valor " +"Numeric_Type=Digit, Numeric_Type=Decimal ou Numeric_Type=Numeric." -#: ../../library/stdtypes.rst:1721 +#: ../../library/stdtypes.rst:1723 msgid "" -"Return true if all characters in the string are printable or the string is " -"empty, false otherwise. Nonprintable characters are those characters " +"Return ``True`` if all characters in the string are printable or the string " +"is empty, ``False`` otherwise. Nonprintable characters are those characters " "defined in the Unicode character database as \"Other\" or \"Separator\", " "excepting the ASCII space (0x20) which is considered printable. (Note that " "printable characters in this context are those which should not be escaped " -"when :func:`repr` is invoked on a string. It has no bearing on the handling" -" of strings written to :data:`sys.stdout` or :data:`sys.stderr`.)" +"when :func:`repr` is invoked on a string. It has no bearing on the handling " +"of strings written to :data:`sys.stdout` or :data:`sys.stderr`.)" msgstr "" +"Retorna ``True`` se todos os caracteres na string podem ser impressos ou se " +"a string é vazia, ``False`` caso contrário. Caracteres que não podem ser " +"impressos são aqueles que estão definidos no banco de dados Unicode como " +"\"Outros\" ou \"Separadores\", exceto o caractere ASCII que representa o " +"espaço (0x20), o qual é impresso. (Perceba que caracteres que podem ser " +"impressos, neste contexto, são aqueles que não devem ser escapados quando :" +"func:`repr` é invocada sobre uma string. Ela não tem sentido no tratamento " +"de strings escritas usando :data:`sys.stdout` ou :data:`sys.stderr`.)" -#: ../../library/stdtypes.rst:1732 +#: ../../library/stdtypes.rst:1734 msgid "" -"Return true if there are only whitespace characters in the string and there " -"is at least one character, false otherwise." +"Return ``True`` if there are only whitespace characters in the string and " +"there is at least one character, ``False`` otherwise." msgstr "" +"Retorna ``True`` se existem apenas caracteres em branco na string e existe " +"pelo menos caractere, ``False`` caso contrário." -#: ../../library/stdtypes.rst:1735 +#: ../../library/stdtypes.rst:1737 msgid "" -"A character is *whitespace* if in the Unicode character database (see " -":mod:`unicodedata`), either its general category is ``Zs`` (\"Separator, " -"space\"), or its bidirectional class is one of ``WS``, ``B``, or ``S``." +"A character is *whitespace* if in the Unicode character database (see :mod:" +"`unicodedata`), either its general category is ``Zs`` (\"Separator, space" +"\"), or its bidirectional class is one of ``WS``, ``B``, or ``S``." msgstr "" +"Um caracter é *espaço em branco* se no banco de dados de caracteres Unicode " +"(veja :mod:`unicodedata`), ou pertence a categoria geral ``Zs`` " +"(\"Separador, espaço\"), ou dua classe bidirecional é ``WS``, ``B``, ou " +"``S``." -#: ../../library/stdtypes.rst:1743 +#: ../../library/stdtypes.rst:1745 msgid "" -"Return true if the string is a titlecased string and there is at least one " -"character, for example uppercase characters may only follow uncased " -"characters and lowercase characters only cased ones. Return false " +"Return ``True`` if the string is a titlecased string and there is at least " +"one character, for example uppercase characters may only follow uncased " +"characters and lowercase characters only cased ones. Return ``False`` " "otherwise." msgstr "" +"Retorna ``True`` se a string é titlecased e existe pelo menos um caractere, " +"por exemplo caracteres maiúsculos somente podem proceder caracteres que não " +"diferenciam maiúsculas/minúsculas, e caracteres minúsculos somente podem " +"proceder caracteres que permitem ambos. Retorna ``False`` caso contrário." -#: ../../library/stdtypes.rst:1750 +#: ../../library/stdtypes.rst:1752 msgid "" -"Return true if all cased characters [4]_ in the string are uppercase and " -"there is at least one cased character, false otherwise." +"Return ``True`` if all cased characters [4]_ in the string are uppercase and " +"there is at least one cased character, ``False`` otherwise." msgstr "" +"Retorna ``True`` se todos os caracteres que permitem maiúsculas ou " +"minúsculas [4]_ na string estão com letras maiúsculas, e existe pelo menos " +"um caractere maiúsculo, ``False`` caso contrário." -#: ../../library/stdtypes.rst:1756 +#: ../../library/stdtypes.rst:1758 msgid "" -"Return a string which is the concatenation of the strings in *iterable*. A " -":exc:`TypeError` will be raised if there are any non-string values in " +"Return a string which is the concatenation of the strings in *iterable*. A :" +"exc:`TypeError` will be raised if there are any non-string values in " "*iterable*, including :class:`bytes` objects. The separator between " "elements is the string providing this method." msgstr "" +"Retorna a string que é a concatenação das strings no *iterável*. Um :exc:" +"`TypeError` será levantado se existirem quaisquer valores que não sejam " +"strings no *iterável*, incluindo objetos :class:`bytes`. O separador entre " +"elementos na é a string que está fornecendo este método." -#: ../../library/stdtypes.rst:1764 +#: ../../library/stdtypes.rst:1766 msgid "" "Return the string left justified in a string of length *width*. Padding is " "done using the specified *fillchar* (default is an ASCII space). The " "original string is returned if *width* is less than or equal to ``len(s)``." msgstr "" +"Retorna a string alinhada a esquerda em uma string de comprimento *width*. " +"Preenchimento é feito usando *fillchar* que for especificado (o padrão é o " +"caractere ASCII de espaço). A string original é retornada se *width* é menor " +"ou igual que ``len(s)``." -#: ../../library/stdtypes.rst:1771 +#: ../../library/stdtypes.rst:1773 msgid "" "Return a copy of the string with all the cased characters [4]_ converted to " "lowercase." msgstr "" +"Retorna uma cópia da string com todos os caracteres que permitem maiúsculo E " +"minúsculo [4]_ convertidos para letras minúsculas." -#: ../../library/stdtypes.rst:1774 +#: ../../library/stdtypes.rst:1776 msgid "" "The lowercasing algorithm used is described in section 3.13 of the Unicode " "Standard." msgstr "" +"O algoritmo usado para letras minúsculas é descrito na seção 3.13 do Padrão " +"Unicode." -#: ../../library/stdtypes.rst:1780 +#: ../../library/stdtypes.rst:1782 msgid "" "Return a copy of the string with leading characters removed. The *chars* " "argument is a string specifying the set of characters to be removed. If " "omitted or ``None``, the *chars* argument defaults to removing whitespace. " -"The *chars* argument is not a prefix; rather, all combinations of its values" -" are stripped::" +"The *chars* argument is not a prefix; rather, all combinations of its values " +"are stripped::" msgstr "" +"Retorna uma cópia da string com caracteres iniciais removidos. O argumento " +"*chars* é uma string que especifica o conjunto de caracteres a serem " +"removidos. Se for omitido ou se for ``None``, o argumento *chars* será " +"considerado como espaço em branco por padrão para a remoção. O argumento " +"*chars* não é um prefixo; ao invés disso, todas as combinações dos seus " +"valores são retirados::" -#: ../../library/stdtypes.rst:1793 +#: ../../library/stdtypes.rst:1795 msgid "" -"This static method returns a translation table usable for " -":meth:`str.translate`." +"This static method returns a translation table usable for :meth:`str." +"translate`." msgstr "" +"Este método estático retorna uma tabela de tradução usável para :meth:`str." +"translate`." -#: ../../library/stdtypes.rst:1795 +#: ../../library/stdtypes.rst:1797 msgid "" "If there is only one argument, it must be a dictionary mapping Unicode " -"ordinals (integers) or characters (strings of length 1) to Unicode ordinals," -" strings (of arbitrary lengths) or ``None``. Character keys will then be " +"ordinals (integers) or characters (strings of length 1) to Unicode ordinals, " +"strings (of arbitrary lengths) or ``None``. Character keys will then be " "converted to ordinals." msgstr "" +"Se existe apenas um argumento, ele deve ser um dicionário mapeando números " +"Unicode (inteiros) ou caracteres (strings de comprimento 1) para números " +"Unicode, strings (de comprimento arbitrário) ou ``None``. Caracteres chave " +"serão então convertidos para números ordinais." -#: ../../library/stdtypes.rst:1800 +#: ../../library/stdtypes.rst:1802 msgid "" -"If there are two arguments, they must be strings of equal length, and in the" -" resulting dictionary, each character in x will be mapped to the character " -"at the same position in y. If there is a third argument, it must be a " -"string, whose characters will be mapped to ``None`` in the result." +"If there are two arguments, they must be strings of equal length, and in the " +"resulting dictionary, each character in x will be mapped to the character at " +"the same position in y. If there is a third argument, it must be a string, " +"whose characters will be mapped to ``None`` in the result." msgstr "" +"Se existirem dois argumentos, eles devem ser strings de igual tamanho, e no " +"dicionário resultante, cada caractere em x será mapeado para o caractere na " +"mesma posição em y. Se existir um terceiro argumento, ele deve ser uma " +"string, cujos caracteres serão mapeados para ``None`` no resultado." -#: ../../library/stdtypes.rst:1808 +#: ../../library/stdtypes.rst:1810 msgid "" "Split the string at the first occurrence of *sep*, and return a 3-tuple " -"containing the part before the separator, the separator itself, and the part" -" after the separator. If the separator is not found, return a 3-tuple " +"containing the part before the separator, the separator itself, and the part " +"after the separator. If the separator is not found, return a 3-tuple " "containing the string itself, followed by two empty strings." msgstr "" +"Quebra a string na primeira ocorrência de *sep*, e retorna uma tupla com 3 " +"elementos contendo a parte antes do separador, o próprio separator, e a " +"parte após o separador. Se o separador não for encontrado, retorna uma tupla " +"com 3 elementos contendo a string, seguido de duas strings vazias." -#: ../../library/stdtypes.rst:1816 +#: ../../library/stdtypes.rst:1818 msgid "" -"Return a copy of the string with all occurrences of substring *old* replaced" -" by *new*. If the optional argument *count* is given, only the first " -"*count* occurrences are replaced." +"Return a copy of the string with all occurrences of substring *old* replaced " +"by *new*. If the optional argument *count* is given, only the first *count* " +"occurrences are replaced." msgstr "" +"Retorna uma cópia da string com todas as ocorrências da substring *old* " +"substituídas por *new*. Se o argumento opcional *count* é fornecido, apenas " +"as primeiras *count* ocorrências são substituídas." -#: ../../library/stdtypes.rst:1823 +#: ../../library/stdtypes.rst:1825 msgid "" "Return the highest index in the string where substring *sub* is found, such " -"that *sub* is contained within ``s[start:end]``. Optional arguments *start*" -" and *end* are interpreted as in slice notation. Return ``-1`` on failure." +"that *sub* is contained within ``s[start:end]``. Optional arguments *start* " +"and *end* are interpreted as in slice notation. Return ``-1`` on failure." msgstr "" +"Retorna o maior índice onde a substring *sub* foi encontrada dentro da " +"string, onde *sub* está contida dentro do intervalo ``s[start:end]``. " +"Argumentos opcionais *start* e *end* são interpretados usando a notação " +"slice. Retorna ``-1`` em caso de falha." -#: ../../library/stdtypes.rst:1830 +#: ../../library/stdtypes.rst:1832 msgid "" "Like :meth:`rfind` but raises :exc:`ValueError` when the substring *sub* is " "not found." msgstr "" +"Similar a :meth:`rfind` mas levanta um :exc:`ValueError` quando a substring " +"*sub* não é encontrada." -#: ../../library/stdtypes.rst:1836 +#: ../../library/stdtypes.rst:1838 msgid "" "Return the string right justified in a string of length *width*. Padding is " "done using the specified *fillchar* (default is an ASCII space). The " "original string is returned if *width* is less than or equal to ``len(s)``." msgstr "" +"Retorna a string alinhada à direita em uma string de comprimento *width*. " +"Preenchimento é feito usando o caractere *fillchar* especificado (o padrão é " +"um caractere de espaço ASCII). A string original é retornada se *width* é " +"menor que ou igual a ``len(s)``." -#: ../../library/stdtypes.rst:1843 +#: ../../library/stdtypes.rst:1845 msgid "" "Split the string at the last occurrence of *sep*, and return a 3-tuple " -"containing the part before the separator, the separator itself, and the part" -" after the separator. If the separator is not found, return a 3-tuple " +"containing the part before the separator, the separator itself, and the part " +"after the separator. If the separator is not found, return a 3-tuple " "containing two empty strings, followed by the string itself." msgstr "" +"Quebra a string na última ocorrência de *sep*, e retorna uma tupla com 3 " +"elementos contendo a parte antes do separador, o próprio separator, e a " +"parte após o separador. Se o separador não for encontrado, retorna uma tupla " +"com 3 elementos contendo duas strings vazias, seguido da própria string " +"original." -#: ../../library/stdtypes.rst:1851 +#: ../../library/stdtypes.rst:1853 msgid "" "Return a list of the words in the string, using *sep* as the delimiter " "string. If *maxsplit* is given, at most *maxsplit* splits are done, the " @@ -2901,17 +3112,29 @@ msgid "" "string is a separator. Except for splitting from the right, :meth:`rsplit` " "behaves like :meth:`split` which is described in detail below." msgstr "" +"Retorna uma lista de palavras na string, usando *sep* como a string " +"delimitadora. Se *maxsplit* é fornecido, no máximo *maxsplit* cortes são " +"feitos, sendo estes mais *à direita*. Se *sep* não foi especificado ou " +"``None`` foi informado, qualquer string de espaço em branco é um separador. " +"Exceto pelo fato de separar pela direita, :meth:`rsplit` se comporta como :" +"meth:`split`, o qual é descrito em detalhes abaixo." -#: ../../library/stdtypes.rst:1860 +#: ../../library/stdtypes.rst:1862 msgid "" "Return a copy of the string with trailing characters removed. The *chars* " "argument is a string specifying the set of characters to be removed. If " "omitted or ``None``, the *chars* argument defaults to removing whitespace. " -"The *chars* argument is not a suffix; rather, all combinations of its values" -" are stripped::" +"The *chars* argument is not a suffix; rather, all combinations of its values " +"are stripped::" msgstr "" +"Retorna uma cópia da string com caracteres no final removidos. O argumento " +"*chars* é uma string que especifica o conjunto de caracteres para serem " +"removidos. Se omitidos ou tiver o valor ``None``, o argumento *chars* " +"considera como padrão a remoção dos espaços em branco. O argumento *chars* " +"não é um sufixo; ao invés disso, todas as combinações dos seus valores são " +"removidos::" -#: ../../library/stdtypes.rst:1873 +#: ../../library/stdtypes.rst:1875 msgid "" "Return a list of the words in the string, using *sep* as the delimiter " "string. If *maxsplit* is given, at most *maxsplit* splits are done (thus, " @@ -2919,8 +3142,13 @@ msgid "" "specified or ``-1``, then there is no limit on the number of splits (all " "possible splits are made)." msgstr "" +"Retorna uma lista de palavras na string, usando *sep* como a string " +"delimitadora. Se *maxsplit* é fornecido, no máximo *maxsplit* cortes são " +"feitos (portando, a lista terá no máximo ``maxsplit+1`` elementos). Se " +"*maxsplit* não foi especificado ou ``-1`` foi informado, então não existe " +"limite no número de cortes (todos os cortes possíveis são realizados)." -#: ../../library/stdtypes.rst:1879 +#: ../../library/stdtypes.rst:1881 msgid "" "If *sep* is given, consecutive delimiters are not grouped together and are " "deemed to delimit empty strings (for example, ``'1,,2'.split(',')`` returns " @@ -2928,158 +3156,176 @@ msgid "" "(for example, ``'1<>2<>3'.split('<>')`` returns ``['1', '2', '3']``). " "Splitting an empty string with a specified separator returns ``['']``." msgstr "" - -#: ../../library/stdtypes.rst:1885 ../../library/stdtypes.rst:1901 -#: ../../library/stdtypes.rst:1953 ../../library/stdtypes.rst:2021 -#: ../../library/stdtypes.rst:2085 ../../library/stdtypes.rst:2846 -#: ../../library/stdtypes.rst:2862 ../../library/stdtypes.rst:2953 -#: ../../library/stdtypes.rst:2969 ../../library/stdtypes.rst:2994 -#: ../../library/stdtypes.rst:3008 ../../library/stdtypes.rst:3036 -#: ../../library/stdtypes.rst:3050 ../../library/stdtypes.rst:3068 -#: ../../library/stdtypes.rst:3095 ../../library/stdtypes.rst:3118 -#: ../../library/stdtypes.rst:3145 ../../library/stdtypes.rst:3187 -#: ../../library/stdtypes.rst:3211 +"Se *sep* é fornecido, delimitadores consecutivos não são agrupados juntos e " +"eles são destinados para delimitar strings vazias (por exemplo ``'1,,2'." +"split(',')`` retorna ``['1', '', '2']``). O argumento *sep* pode consistir " +"de múltiplos caracteres (por exemplo, ``'1<>2<>3'.split('<>')`` retorna " +"``['1', '2', '3']``). Separar uma string vazia com um separador especificado " +"retorna ``['']``." + +#: ../../library/stdtypes.rst:1887 ../../library/stdtypes.rst:1903 +#: ../../library/stdtypes.rst:1955 ../../library/stdtypes.rst:2023 +#: ../../library/stdtypes.rst:2087 ../../library/stdtypes.rst:2848 +#: ../../library/stdtypes.rst:2864 ../../library/stdtypes.rst:2955 +#: ../../library/stdtypes.rst:2971 ../../library/stdtypes.rst:2996 +#: ../../library/stdtypes.rst:3010 ../../library/stdtypes.rst:3038 +#: ../../library/stdtypes.rst:3052 ../../library/stdtypes.rst:3070 +#: ../../library/stdtypes.rst:3097 ../../library/stdtypes.rst:3120 +#: ../../library/stdtypes.rst:3147 ../../library/stdtypes.rst:3189 +#: ../../library/stdtypes.rst:3213 msgid "For example::" msgstr "Por exemplo::" -#: ../../library/stdtypes.rst:1894 +#: ../../library/stdtypes.rst:1896 msgid "" -"If *sep* is not specified or is ``None``, a different splitting algorithm is" -" applied: runs of consecutive whitespace are regarded as a single separator," -" and the result will contain no empty strings at the start or end if the " -"string has leading or trailing whitespace. Consequently, splitting an empty" -" string or a string consisting of just whitespace with a ``None`` separator " +"If *sep* is not specified or is ``None``, a different splitting algorithm is " +"applied: runs of consecutive whitespace are regarded as a single separator, " +"and the result will contain no empty strings at the start or end if the " +"string has leading or trailing whitespace. Consequently, splitting an empty " +"string or a string consisting of just whitespace with a ``None`` separator " "returns ``[]``." msgstr "" +"Se *sep* não for especificado ou for ``None``, um algoritmo diferente de " +"separação é aplicado: ocorrências consecutivas de espaços em branco são " +"consideradas como um separador único, e o resultado não conterá strings " +"vazias no início ou no final, se a string tiver espaços em branco no início " +"ou no final. Consequentemente, separar uma string vazia ou uma string que " +"consiste apenas de espaços em branco com o separador ``None``, retorna " +"``[]``." -#: ../../library/stdtypes.rst:1916 +#: ../../library/stdtypes.rst:1918 msgid "" -"Return a list of the lines in the string, breaking at line boundaries. Line" -" breaks are not included in the resulting list unless *keepends* is given " -"and true." +"Return a list of the lines in the string, breaking at line boundaries. Line " +"breaks are not included in the resulting list unless *keepends* is given and " +"true." msgstr "" +"Retorna uma lista das linhas na string, quebrando a mesma nas fronteiras de " +"cada linha. Quebras de linhas não são incluídas na lista resultante a não " +"ser que *keepends* seja fornecido e seja verdadeiro." -#: ../../library/stdtypes.rst:1920 +#: ../../library/stdtypes.rst:1922 msgid "" "This method splits on the following line boundaries. In particular, the " "boundaries are a superset of :term:`universal newlines`." msgstr "" +"Este método divide nos seguintes limites das linhas. Em particular, os " +"limites são um superconjunto de :term:`universal newlines`." -#: ../../library/stdtypes.rst:1924 +#: ../../library/stdtypes.rst:1926 msgid "Representation" msgstr "Representação" -#: ../../library/stdtypes.rst:1924 +#: ../../library/stdtypes.rst:1926 msgid "Description" msgstr "Description (descrição)" -#: ../../library/stdtypes.rst:1926 +#: ../../library/stdtypes.rst:1928 msgid "``\\n``" msgstr "``\\n``" -#: ../../library/stdtypes.rst:1926 +#: ../../library/stdtypes.rst:1928 msgid "Line Feed" msgstr "Feed de linha" -#: ../../library/stdtypes.rst:1928 +#: ../../library/stdtypes.rst:1930 msgid "``\\r``" msgstr "``\\r``" -#: ../../library/stdtypes.rst:1928 +#: ../../library/stdtypes.rst:1930 msgid "Carriage Return" msgstr "Retorno de Carro" -#: ../../library/stdtypes.rst:1930 +#: ../../library/stdtypes.rst:1932 msgid "``\\r\\n``" msgstr "``\\r\\n``" -#: ../../library/stdtypes.rst:1930 +#: ../../library/stdtypes.rst:1932 msgid "Carriage Return + Line Feed" msgstr "Retorno do Carro + Feed da Linha" -#: ../../library/stdtypes.rst:1932 +#: ../../library/stdtypes.rst:1934 msgid "``\\v`` or ``\\x0b``" msgstr "``\\v`` ou ``\\x0b``" -#: ../../library/stdtypes.rst:1932 +#: ../../library/stdtypes.rst:1934 msgid "Line Tabulation" msgstr "Tabulação de Linha" -#: ../../library/stdtypes.rst:1934 +#: ../../library/stdtypes.rst:1936 msgid "``\\f`` or ``\\x0c``" msgstr "``\\f`` ou ``\\x0c``" -#: ../../library/stdtypes.rst:1934 +#: ../../library/stdtypes.rst:1936 msgid "Form Feed" msgstr "Formulário de Feed" -#: ../../library/stdtypes.rst:1936 +#: ../../library/stdtypes.rst:1938 msgid "``\\x1c``" msgstr "``\\x1c``" -#: ../../library/stdtypes.rst:1936 +#: ../../library/stdtypes.rst:1938 msgid "File Separator" msgstr "Separador de Arquivos" -#: ../../library/stdtypes.rst:1938 +#: ../../library/stdtypes.rst:1940 msgid "``\\x1d``" msgstr "``\\x1d``" -#: ../../library/stdtypes.rst:1938 +#: ../../library/stdtypes.rst:1940 msgid "Group Separator" msgstr "Separador de Grupo" -#: ../../library/stdtypes.rst:1940 +#: ../../library/stdtypes.rst:1942 msgid "``\\x1e``" msgstr "``\\x1e``" -#: ../../library/stdtypes.rst:1940 +#: ../../library/stdtypes.rst:1942 msgid "Record Separator" msgstr "Separador de Registro" -#: ../../library/stdtypes.rst:1942 +#: ../../library/stdtypes.rst:1944 msgid "``\\x85``" msgstr "``\\x85``" -#: ../../library/stdtypes.rst:1942 +#: ../../library/stdtypes.rst:1944 msgid "Next Line (C1 Control Code)" msgstr "Próxima Linha (C1 Control Code)" -#: ../../library/stdtypes.rst:1944 +#: ../../library/stdtypes.rst:1946 msgid "``\\u2028``" msgstr "``\\u2028``" -#: ../../library/stdtypes.rst:1944 +#: ../../library/stdtypes.rst:1946 msgid "Line Separator" msgstr "Separador de Linha" -#: ../../library/stdtypes.rst:1946 +#: ../../library/stdtypes.rst:1948 msgid "``\\u2029``" msgstr "``\\u2029``" -#: ../../library/stdtypes.rst:1946 +#: ../../library/stdtypes.rst:1948 msgid "Paragraph Separator" msgstr "Parágrafo Separador" -#: ../../library/stdtypes.rst:1951 +#: ../../library/stdtypes.rst:1953 msgid "``\\v`` and ``\\f`` added to list of line boundaries." msgstr "``\\v`` e ``\\f`` adicionado à lista de limites de linha." -#: ../../library/stdtypes.rst:1960 +#: ../../library/stdtypes.rst:1962 msgid "" "Unlike :meth:`~str.split` when a delimiter string *sep* is given, this " -"method returns an empty list for the empty string, and a terminal line break" -" does not result in an extra line::" +"method returns an empty list for the empty string, and a terminal line break " +"does not result in an extra line::" msgstr "" "Ao contrário do método :meth:`~str.split` quando um delimitador de String " "*sep* é fornecido, este método retorna uma lista vazia para a uma String " "vazia e uma quebra de linha de terminal não resulta numa linha extra::" -#: ../../library/stdtypes.rst:1969 +#: ../../library/stdtypes.rst:1971 msgid "For comparison, ``split('\\n')`` gives::" msgstr "Para comparação, temos ``split('\\n')``::" -#: ../../library/stdtypes.rst:1979 +#: ../../library/stdtypes.rst:1981 msgid "" "Return ``True`` if string starts with the *prefix*, otherwise return " "``False``. *prefix* can also be a tuple of prefixes to look for. With " @@ -3091,76 +3337,109 @@ msgstr "" "procurados. Com *start* opcional, a String de teste começa nessa posição. " "Com *fim* opcional, interrompe a comparação de String nessa posição." -#: ../../library/stdtypes.rst:1987 +#: ../../library/stdtypes.rst:1989 msgid "" "Return a copy of the string with the leading and trailing characters " "removed. The *chars* argument is a string specifying the set of characters " "to be removed. If omitted or ``None``, the *chars* argument defaults to " -"removing whitespace. The *chars* argument is not a prefix or suffix; rather," -" all combinations of its values are stripped::" +"removing whitespace. The *chars* argument is not a prefix or suffix; rather, " +"all combinations of its values are stripped::" msgstr "" +"Retorna uma cópia da string com caracteres no início e no final removidos. O " +"argumento *chars* é uma string que especifica o conjunto de caracteres a " +"serem removidos. Se for omitido ou for ``None``, o argumento *chars* irá " +"remover por padrão os caracteres em branco. O argumento *chars* não é um " +"prefixo, nem um sufixo; ao contrário disso, todas as combinações dos seus " +"seus valores são removidas::" -#: ../../library/stdtypes.rst:1998 +#: ../../library/stdtypes.rst:2000 msgid "" -"The outermost leading and trailing *chars* argument values are stripped from" -" the string. Characters are removed from the leading end until reaching a " +"The outermost leading and trailing *chars* argument values are stripped from " +"the string. Characters are removed from the leading end until reaching a " "string character that is not contained in the set of characters in *chars*. " "A similar action takes place on the trailing end. For example::" msgstr "" +"Os valores do argumento *chars* são removidos dos extremos inicial e final " +"da string. Caracteres são removidos do extremo inicial até atingir um " +"caractere da string que não está contido no conjunto de caracteres em " +"*chars*. Uma ação similar acontece no extremo final da string. Por exemplo::" -#: ../../library/stdtypes.rst:2011 +#: ../../library/stdtypes.rst:2013 msgid "" -"Return a copy of the string with uppercase characters converted to lowercase" -" and vice versa. Note that it is not necessarily true that " -"``s.swapcase().swapcase() == s``." +"Return a copy of the string with uppercase characters converted to lowercase " +"and vice versa. Note that it is not necessarily true that ``s.swapcase()." +"swapcase() == s``." msgstr "" +"Retorna uma cópia da string com caracteres maiúsculos convertidos para " +"minúsculos e vice-versa. Perceba que não é necessariamente verdade que ``s." +"swapcase().swapcase() == s``." -#: ../../library/stdtypes.rst:2018 +#: ../../library/stdtypes.rst:2020 msgid "" "Return a titlecased version of the string where words start with an " "uppercase character and the remaining characters are lowercase." msgstr "" +"Retorna uma versão titlecased da string, onde palavras iniciam com um " +"caractere com letra maiúscula e os caracteres restantes são em letras " +"minúsculas." -#: ../../library/stdtypes.rst:2026 ../../library/stdtypes.rst:3155 +#: ../../library/stdtypes.rst:2028 ../../library/stdtypes.rst:3157 msgid "" "The algorithm uses a simple language-independent definition of a word as " -"groups of consecutive letters. The definition works in many contexts but it" -" means that apostrophes in contractions and possessives form word " -"boundaries, which may not be the desired result::" +"groups of consecutive letters. The definition works in many contexts but it " +"means that apostrophes in contractions and possessives form word boundaries, " +"which may not be the desired result::" msgstr "" +"O algoritmo usa uma definição simples independente de idioma para uma " +"palavra, como grupos de letras consecutivas. A definição funciona em muitos " +"contextos, mas isso significa que apóstrofes em contradições e possessivos " +"formam limites de palavras, os quais podem não ser o resultado desejado::" -#: ../../library/stdtypes.rst:2034 ../../library/stdtypes.rst:3163 +#: ../../library/stdtypes.rst:2036 ../../library/stdtypes.rst:3165 msgid "" "A workaround for apostrophes can be constructed using regular expressions::" msgstr "" "Uma solução alternativa para os apóstrofes pode ser construída usando " "expressões regulares::" -#: ../../library/stdtypes.rst:2049 +#: ../../library/stdtypes.rst:2051 msgid "" "Return a copy of the string in which each character has been mapped through " "the given translation table. The table must be an object that implements " -"indexing via :meth:`__getitem__`, typically a :term:`mapping` or " -":term:`sequence`. When indexed by a Unicode ordinal (an integer), the table" -" object can do any of the following: return a Unicode ordinal or a string, " -"to map the character to one or more other characters; return ``None``, to " +"indexing via :meth:`__getitem__`, typically a :term:`mapping` or :term:" +"`sequence`. When indexed by a Unicode ordinal (an integer), the table " +"object can do any of the following: return a Unicode ordinal or a string, to " +"map the character to one or more other characters; return ``None``, to " "delete the character from the return string; or raise a :exc:`LookupError` " "exception, to map the character to itself." msgstr "" +"Retorna uma cópia da string na qual cada caractere foi mapeado através da " +"tabela de tradução fornecida. A tabela deve ser um objeto que implementa " +"indexação através de :meth:`__getitem__`, tipicamente um :term:`mapeamento " +"` ou uma :term:`sequência `. Quando indexada por um " +"ordinal unicode (um inteiro), o objeto tabela pode fazer qualquer uma das " +"seguintes ações: retornar um ordinal unicode ou uma string, para mapear o " +"caractere para um ou mais caracteres; retornar ``None``, para deletar o " +"caractere da string de retorno; ou levantar uma exceção :exc:`LookupError`, " +"para mapear o caractere para si mesmo." -#: ../../library/stdtypes.rst:2058 +#: ../../library/stdtypes.rst:2060 msgid "" -"You can use :meth:`str.maketrans` to create a translation map from " -"character-to-character mappings in different formats." +"You can use :meth:`str.maketrans` to create a translation map from character-" +"to-character mappings in different formats." msgstr "" +"Você pode usar :meth:`str.maketrans` para criar um mapa de tradução com " +"mapeamentos caractere para caractere em diferentes formatos." -#: ../../library/stdtypes.rst:2061 +#: ../../library/stdtypes.rst:2063 msgid "" "See also the :mod:`codecs` module for a more flexible approach to custom " "character mappings." msgstr "" +"Veja também o módulo :mod:`codecs` para uma abordagem mais flexível para " +"mapeamento de caracter customizado." -#: ../../library/stdtypes.rst:2067 +#: ../../library/stdtypes.rst:2069 msgid "" "Return a copy of the string with all the cased characters [4]_ converted to " "uppercase. Note that ``s.upper().isupper()`` might be ``False`` if ``s`` " @@ -3168,8 +3447,14 @@ msgid "" "character(s) is not \"Lu\" (Letter, uppercase), but e.g. \"Lt\" (Letter, " "titlecase)." msgstr "" +"Retorna uma cópia da string com todos os caracteres que permitem maiúsculo e " +"minúsculo [4]_ convertidos para letras maiúsculas. Perceba que ``s.upper()." +"isupper()`` pode ser ``False`` se ``s`` contiver caracteres que não possuem " +"maiúsculas e minúsculas, ou se a categoria Unicode do(s) caractere(s) " +"resultante(s) não for \"Lu\" (Letra maiúscula), mas por ex \"Lt\" (Letra em " +"titlecase)." -#: ../../library/stdtypes.rst:2073 +#: ../../library/stdtypes.rst:2075 msgid "" "The uppercasing algorithm used is described in section 3.13 of the Unicode " "Standard." @@ -3177,35 +3462,42 @@ msgstr "" "O algoritmo de maiúsculas utilizado é descrito na seção 3.13 do Padrão " "Unicode." -#: ../../library/stdtypes.rst:2079 +#: ../../library/stdtypes.rst:2081 msgid "" "Return a copy of the string left filled with ASCII ``'0'`` digits to make a " -"string of length *width*. A leading sign prefix (``'+'``/``'-'``) is handled" -" by inserting the padding *after* the sign character rather than before. The" -" original string is returned if *width* is less than or equal to ``len(s)``." +"string of length *width*. A leading sign prefix (``'+'``/``'-'``) is handled " +"by inserting the padding *after* the sign character rather than before. The " +"original string is returned if *width* is less than or equal to ``len(s)``." msgstr "" "Retorna uma cópia da String deixada preenchida com dígitos ASCII ``'0'`` " "para fazer uma string de comprimento *width*. Um prefixo sinalizador " -"principal (``'+'``/``'-'``) será tratado inserindo o preenchimento *após* o" -" caractere de sinal em vez de antes. A String original será retornada se o " +"principal (``'+'``/``'-'``) será tratado inserindo o preenchimento *após* o " +"caractere de sinal em vez de antes. A String original será retornada se o " "*width* for menor ou igual a ``len(s)``." -#: ../../library/stdtypes.rst:2097 +#: ../../library/stdtypes.rst:2099 msgid "``printf``-style String Formatting" msgstr "Formatação de String no Formato ``printf``-style " -#: ../../library/stdtypes.rst:2110 +#: ../../library/stdtypes.rst:2112 msgid "" "The formatting operations described here exhibit a variety of quirks that " "lead to a number of common errors (such as failing to display tuples and " -"dictionaries correctly). Using the newer :ref:`formatted string literals " -"`, the :meth:`str.format` interface, or :ref:`template strings " -"` may help avoid these errors. Each of these alternatives" -" provides their own trade-offs and benefits of simplicity, flexibility, " -"and/or extensibility." +"dictionaries correctly). Using the newer :ref:`formatted string literals `, the :meth:`str.format` interface, or :ref:`template strings " +"` may help avoid these errors. Each of these alternatives " +"provides their own trade-offs and benefits of simplicity, flexibility, and/" +"or extensibility." msgstr "" +"As operações de formatação descritas aqui exibem uma variedade de " +"peculiaridades que levam a diversos erros comuns (tais como não conseguir " +"exibir tuplas e dicionários corretamente). Usar o novo :ref:`formatador de " +"strings literais (f-strings) `, a interface :meth:`str.format`, " +"ou :ref:`templates de strings ` pode ajudar a evitar esses " +"erros. Cada uma dessas alternativas fornece seus próprios custos e " +"benefícios de simplicidade, flexibilidade, e/ou extensibilidade." -#: ../../library/stdtypes.rst:2118 +#: ../../library/stdtypes.rst:2120 msgid "" "String objects have one unique built-in operation: the ``%`` operator " "(modulo). This is also known as the string *formatting* or *interpolation* " @@ -3221,40 +3513,40 @@ msgstr "" "por zero ou mais elementos de *valores*. O efeito é semelhante ao uso da " "função :c:func:`sprintf` na linguagem C." -#: ../../library/stdtypes.rst:2124 +#: ../../library/stdtypes.rst:2126 msgid "" "If *format* requires a single argument, *values* may be a single non-tuple " -"object. [5]_ Otherwise, *values* must be a tuple with exactly the number of" -" items specified by the format string, or a single mapping object (for " +"object. [5]_ Otherwise, *values* must be a tuple with exactly the number of " +"items specified by the format string, or a single mapping object (for " "example, a dictionary)." msgstr "" "Se *format* precisar de um único operador, *valores* podem ser objetos " "simples ou que não sejam uma tupla. [5]_ Caso contrário, *valores* " -"precisarão ser uma tupla com exatamente o número de itens especificados pela" -" string de formatação, ou um único mapa de objetos (por exemplo, um " +"precisarão ser uma tupla com exatamente o número de itens especificados pela " +"string de formatação, ou um único mapa de objetos (por exemplo, um " "dicionário)." -#: ../../library/stdtypes.rst:2134 ../../library/stdtypes.rst:3266 +#: ../../library/stdtypes.rst:2136 ../../library/stdtypes.rst:3268 msgid "" -"A conversion specifier contains two or more characters and has the following" -" components, which must occur in this order:" +"A conversion specifier contains two or more characters and has the following " +"components, which must occur in this order:" msgstr "" "Um especificador de conversão contém dois ou mais caracteres e tem os " "seguintes componentes, que devem aparecer nesta ordem:" -#: ../../library/stdtypes.rst:2137 ../../library/stdtypes.rst:3269 +#: ../../library/stdtypes.rst:2139 ../../library/stdtypes.rst:3271 msgid "The ``'%'`` character, which marks the start of the specifier." msgstr "O caractere ``'%'``, que determina o início do especificador." -#: ../../library/stdtypes.rst:2139 ../../library/stdtypes.rst:3271 +#: ../../library/stdtypes.rst:2141 ../../library/stdtypes.rst:3273 msgid "" -"Mapping key (optional), consisting of a parenthesised sequence of characters" -" (for example, ``(somename)``)." +"Mapping key (optional), consisting of a parenthesised sequence of characters " +"(for example, ``(somename)``)." msgstr "" "Mapeamento de Chaves (opcional), consistindo de uma sequência entre " "parênteses de caracteres (por exemplo, ``(algumnome)``)." -#: ../../library/stdtypes.rst:2142 ../../library/stdtypes.rst:3274 +#: ../../library/stdtypes.rst:2144 ../../library/stdtypes.rst:3276 msgid "" "Conversion flags (optional), which affect the result of some conversion " "types." @@ -3262,91 +3554,90 @@ msgstr "" "Flags de conversão (opcional), que afetam o resultado de alguns tipos de " "conversão." -#: ../../library/stdtypes.rst:2145 ../../library/stdtypes.rst:3277 +#: ../../library/stdtypes.rst:2147 ../../library/stdtypes.rst:3279 msgid "" "Minimum field width (optional). If specified as an ``'*'`` (asterisk), the " -"actual width is read from the next element of the tuple in *values*, and the" -" object to convert comes after the minimum field width and optional " -"precision." +"actual width is read from the next element of the tuple in *values*, and the " +"object to convert comes after the minimum field width and optional precision." msgstr "" "Largura mínima do Campo(opcional). Se for especificado por ``'*'`` " "(asterisco), a largura real será lida a partir do próximo elemento da tupla " "em *values* e o objeto a converter virá após a largura mínima do campo e a " "precisão que é opcional." -#: ../../library/stdtypes.rst:2149 ../../library/stdtypes.rst:3281 +#: ../../library/stdtypes.rst:2151 ../../library/stdtypes.rst:3283 msgid "" "Precision (optional), given as a ``'.'`` (dot) followed by the precision. " -"If specified as ``'*'`` (an asterisk), the actual precision is read from the" -" next element of the tuple in *values*, and the value to convert comes after" -" the precision." +"If specified as ``'*'`` (an asterisk), the actual precision is read from the " +"next element of the tuple in *values*, and the value to convert comes after " +"the precision." msgstr "" "Precisão (opcional), fornecido como uma ``'.'`` (ponto) seguido pela " "precisação. Se determinado como um ``'*'`` (um asterisco), a precisão real " "será lida a partir do próximo elemento da tupla em *values*, e o valor a " "converter virá após a precisão." -#: ../../library/stdtypes.rst:2154 ../../library/stdtypes.rst:3286 +#: ../../library/stdtypes.rst:2156 ../../library/stdtypes.rst:3288 msgid "Length modifier (optional)." msgstr "Modificador de Comprimento(opcional)." -#: ../../library/stdtypes.rst:2156 ../../library/stdtypes.rst:3288 +#: ../../library/stdtypes.rst:2158 ../../library/stdtypes.rst:3290 msgid "Conversion type." msgstr "Tipos de Conversão" -#: ../../library/stdtypes.rst:2158 +#: ../../library/stdtypes.rst:2160 msgid "" "When the right argument is a dictionary (or other mapping type), then the " "formats in the string *must* include a parenthesised mapping key into that " -"dictionary inserted immediately after the ``'%'`` character. The mapping key" -" selects the value to be formatted from the mapping. For example:" +"dictionary inserted immediately after the ``'%'`` character. The mapping key " +"selects the value to be formatted from the mapping. For example:" msgstr "" "Quando o argumento certo for um dicionário (ou outro tipo de mapeamento), " "então os formatos na string *deverão* incluir uma chave de mapeamento entre " -"parênteses nesse dicionário inserido imediatamente após o caractere ``'%'``." -" A key de mapeamento seleciona o valor a ser formatado a partir do " +"parênteses nesse dicionário inserido imediatamente após o caractere ``'%'``. " +"A key de mapeamento seleciona o valor a ser formatado a partir do " "mapeamento. Por exemplo:" -#: ../../library/stdtypes.rst:2167 ../../library/stdtypes.rst:3299 +#: ../../library/stdtypes.rst:2169 ../../library/stdtypes.rst:3301 msgid "" -"In this case no ``*`` specifiers may occur in a format (since they require a" -" sequential parameter list)." +"In this case no ``*`` specifiers may occur in a format (since they require a " +"sequential parameter list)." msgstr "" "Nesse caso, nenhum especificador ``*`` poderá ocorrer num formato (uma vez " "que eles exigem uma lista de parâmetros sequenciais)." -#: ../../library/stdtypes.rst:2170 ../../library/stdtypes.rst:3302 +#: ../../library/stdtypes.rst:2172 ../../library/stdtypes.rst:3304 msgid "The conversion flag characters are:" msgstr "Os caracteres flags de conversão são:" -#: ../../library/stdtypes.rst:2179 ../../library/stdtypes.rst:3311 +#: ../../library/stdtypes.rst:2181 ../../library/stdtypes.rst:3313 msgid "Flag" msgstr "Flag" -#: ../../library/stdtypes.rst:2181 ../../library/stdtypes.rst:3313 +#: ../../library/stdtypes.rst:2183 ../../library/stdtypes.rst:3315 msgid "``'#'``" msgstr "``'#'``" -#: ../../library/stdtypes.rst:2181 ../../library/stdtypes.rst:3313 +#: ../../library/stdtypes.rst:2183 ../../library/stdtypes.rst:3315 msgid "" "The value conversion will use the \"alternate form\" (where defined below)." msgstr "" "A conversão de valor usará o \"formulário alternativo\" (em que definimos " "abaixo)." -#: ../../library/stdtypes.rst:2184 ../../library/stdtypes.rst:3316 +#: ../../library/stdtypes.rst:2186 ../../library/stdtypes.rst:3318 msgid "``'0'``" msgstr "``'0'``" -#: ../../library/stdtypes.rst:2184 ../../library/stdtypes.rst:3316 +#: ../../library/stdtypes.rst:2186 ../../library/stdtypes.rst:3318 msgid "The conversion will be zero padded for numeric values." msgstr "A conversão será preenchida por zeros para valores numéricos." -#: ../../library/stdtypes.rst:2186 ../../library/stdtypes.rst:3318 +#: ../../library/stdtypes.rst:2188 ../../library/stdtypes.rst:3320 msgid "``'-'``" msgstr "``'-'``" -#: ../../library/stdtypes.rst:2186 ../../library/stdtypes.rst:3318 +#: ../../library/stdtypes.rst:2188 ../../library/stdtypes.rst:3320 msgid "" "The converted value is left adjusted (overrides the ``'0'`` conversion if " "both are given)." @@ -3354,11 +3645,11 @@ msgstr "" "O valor convertido será ajustado à esquerda (substitui a conversão ``'0'`` " "se ambos forem fornecidos)." -#: ../../library/stdtypes.rst:2189 ../../library/stdtypes.rst:3321 +#: ../../library/stdtypes.rst:2191 ../../library/stdtypes.rst:3323 msgid "``' '``" msgstr "``' '``" -#: ../../library/stdtypes.rst:2189 ../../library/stdtypes.rst:3321 +#: ../../library/stdtypes.rst:2191 ../../library/stdtypes.rst:3323 msgid "" "(a space) A blank should be left before a positive number (or empty string) " "produced by a signed conversion." @@ -3366,181 +3657,178 @@ msgstr "" "(um espaço) Um espaço em branco deverá ser deixado antes de um número " "positivo (ou uma String vazia) produzido por uma conversão assinada." -#: ../../library/stdtypes.rst:2192 ../../library/stdtypes.rst:3324 +#: ../../library/stdtypes.rst:2194 ../../library/stdtypes.rst:3326 msgid "``'+'``" msgstr "``'+'``" -#: ../../library/stdtypes.rst:2192 ../../library/stdtypes.rst:3324 +#: ../../library/stdtypes.rst:2194 ../../library/stdtypes.rst:3326 msgid "" -"A sign character (``'+'`` or ``'-'``) will precede the conversion (overrides" -" a \"space\" flag)." +"A sign character (``'+'`` or ``'-'``) will precede the conversion (overrides " +"a \"space\" flag)." msgstr "" "Um sinal de caractere (``'+'`` ou ``'-'``) precedera a conversão " "(substituindo o sinalizador \"space\")." -#: ../../library/stdtypes.rst:2196 ../../library/stdtypes.rst:3328 +#: ../../library/stdtypes.rst:2198 ../../library/stdtypes.rst:3330 msgid "" -"A length modifier (``h``, ``l``, or ``L``) may be present, but is ignored as" -" it is not necessary for Python -- so e.g. ``%ld`` is identical to ``%d``." +"A length modifier (``h``, ``l``, or ``L``) may be present, but is ignored as " +"it is not necessary for Python -- so e.g. ``%ld`` is identical to ``%d``." msgstr "" "Um modificador de comprimento (``h``, ``l``, ou ``L``) pode estar presente, " "mas será ignorado, pois o mesmo não é necessário para o Python -- então por " "exemplo ``%ld`` é idêntico a ``%d``." -#: ../../library/stdtypes.rst:2199 ../../library/stdtypes.rst:3331 +#: ../../library/stdtypes.rst:2201 ../../library/stdtypes.rst:3333 msgid "The conversion types are:" msgstr "Os tipos de conversão são:" -#: ../../library/stdtypes.rst:2202 ../../library/stdtypes.rst:3334 +#: ../../library/stdtypes.rst:2204 ../../library/stdtypes.rst:3336 msgid "Conversion" msgstr "Conversão" -#: ../../library/stdtypes.rst:2204 ../../library/stdtypes.rst:3336 +#: ../../library/stdtypes.rst:2206 ../../library/stdtypes.rst:3338 msgid "``'d'``" msgstr "``'d'``" -#: ../../library/stdtypes.rst:2204 ../../library/stdtypes.rst:2206 -#: ../../library/stdtypes.rst:3336 ../../library/stdtypes.rst:3338 +#: ../../library/stdtypes.rst:2206 ../../library/stdtypes.rst:2208 +#: ../../library/stdtypes.rst:3338 ../../library/stdtypes.rst:3340 msgid "Signed integer decimal." msgstr "Número decimal inteiro sinalizador." -#: ../../library/stdtypes.rst:2206 ../../library/stdtypes.rst:3338 +#: ../../library/stdtypes.rst:2208 ../../library/stdtypes.rst:3340 msgid "``'i'``" msgstr "``'i'``" -#: ../../library/stdtypes.rst:2208 ../../library/stdtypes.rst:3340 +#: ../../library/stdtypes.rst:2210 ../../library/stdtypes.rst:3342 msgid "``'o'``" msgstr "``'o'``" -#: ../../library/stdtypes.rst:2208 ../../library/stdtypes.rst:3340 +#: ../../library/stdtypes.rst:2210 ../../library/stdtypes.rst:3342 msgid "Signed octal value." msgstr "Valor octal sinalizador." -#: ../../library/stdtypes.rst:2210 ../../library/stdtypes.rst:3342 +#: ../../library/stdtypes.rst:2212 ../../library/stdtypes.rst:3344 msgid "``'u'``" msgstr "``'u'``" -#: ../../library/stdtypes.rst:2210 ../../library/stdtypes.rst:3342 +#: ../../library/stdtypes.rst:2212 ../../library/stdtypes.rst:3344 msgid "Obsolete type -- it is identical to ``'d'``." msgstr "Tipo obsoleto - é idêntico a ``'d'``." -#: ../../library/stdtypes.rst:2212 ../../library/stdtypes.rst:3344 +#: ../../library/stdtypes.rst:2214 ../../library/stdtypes.rst:3346 msgid "``'x'``" msgstr "``'x'``" -#: ../../library/stdtypes.rst:2212 ../../library/stdtypes.rst:3344 +#: ../../library/stdtypes.rst:2214 ../../library/stdtypes.rst:3346 msgid "Signed hexadecimal (lowercase)." msgstr "Sinalizador hexadecimal (minúsculas)." -#: ../../library/stdtypes.rst:2214 ../../library/stdtypes.rst:3346 +#: ../../library/stdtypes.rst:2216 ../../library/stdtypes.rst:3348 msgid "``'X'``" msgstr "``'X'``" -#: ../../library/stdtypes.rst:2214 ../../library/stdtypes.rst:3346 +#: ../../library/stdtypes.rst:2216 ../../library/stdtypes.rst:3348 msgid "Signed hexadecimal (uppercase)." msgstr "Sinalizador hexadecimal (maiúscula)." -#: ../../library/stdtypes.rst:2216 ../../library/stdtypes.rst:3348 +#: ../../library/stdtypes.rst:2218 ../../library/stdtypes.rst:3350 msgid "``'e'``" msgstr "``'e'``" -#: ../../library/stdtypes.rst:2216 ../../library/stdtypes.rst:3348 +#: ../../library/stdtypes.rst:2218 ../../library/stdtypes.rst:3350 msgid "Floating point exponential format (lowercase)." msgstr "Formato exponencial de ponto flutuante (minúsculas)." -#: ../../library/stdtypes.rst:2218 ../../library/stdtypes.rst:3350 +#: ../../library/stdtypes.rst:2220 ../../library/stdtypes.rst:3352 msgid "``'E'``" msgstr "``'E'``" -#: ../../library/stdtypes.rst:2218 ../../library/stdtypes.rst:3350 +#: ../../library/stdtypes.rst:2220 ../../library/stdtypes.rst:3352 msgid "Floating point exponential format (uppercase)." msgstr "Formato exponencial de ponto flutuante (maiúscula)." -#: ../../library/stdtypes.rst:2220 ../../library/stdtypes.rst:3352 +#: ../../library/stdtypes.rst:2222 ../../library/stdtypes.rst:3354 msgid "``'f'``" msgstr "``'f'``" -#: ../../library/stdtypes.rst:2220 ../../library/stdtypes.rst:2222 -#: ../../library/stdtypes.rst:3352 ../../library/stdtypes.rst:3354 +#: ../../library/stdtypes.rst:2222 ../../library/stdtypes.rst:2224 +#: ../../library/stdtypes.rst:3354 ../../library/stdtypes.rst:3356 msgid "Floating point decimal format." msgstr "Formato decimal de ponto flutuante." -#: ../../library/stdtypes.rst:2222 ../../library/stdtypes.rst:3354 +#: ../../library/stdtypes.rst:2224 ../../library/stdtypes.rst:3356 msgid "``'F'``" msgstr "``'F'``" -#: ../../library/stdtypes.rst:2224 ../../library/stdtypes.rst:3356 +#: ../../library/stdtypes.rst:2226 ../../library/stdtypes.rst:3358 msgid "``'g'``" msgstr "``'g'``" -#: ../../library/stdtypes.rst:2224 ../../library/stdtypes.rst:3356 +#: ../../library/stdtypes.rst:2226 ../../library/stdtypes.rst:3358 msgid "" -"Floating point format. Uses lowercase exponential format if exponent is less" -" than -4 or not less than precision, decimal format otherwise." +"Floating point format. Uses lowercase exponential format if exponent is less " +"than -4 or not less than precision, decimal format otherwise." msgstr "" "O formato de ponto flutuante. Usa o formato exponencial em minúsculas se o " -"expoente for inferior a -4 ou não inferior a precisão, formato decimal, caso" -" contrário." +"expoente for inferior a -4 ou não inferior a precisão, formato decimal, caso " +"contrário." -#: ../../library/stdtypes.rst:2228 ../../library/stdtypes.rst:3360 +#: ../../library/stdtypes.rst:2230 ../../library/stdtypes.rst:3362 msgid "``'G'``" msgstr "``'G'``" -#: ../../library/stdtypes.rst:2228 ../../library/stdtypes.rst:3360 +#: ../../library/stdtypes.rst:2230 ../../library/stdtypes.rst:3362 msgid "" -"Floating point format. Uses uppercase exponential format if exponent is less" -" than -4 or not less than precision, decimal format otherwise." +"Floating point format. Uses uppercase exponential format if exponent is less " +"than -4 or not less than precision, decimal format otherwise." msgstr "" "Formato de ponto flutuante. Usa o formato exponencial em maiúsculas se o " "expoente for inferior a -4 ou não inferior que a precisão, formato decimal, " "caso contrário." -#: ../../library/stdtypes.rst:2232 ../../library/stdtypes.rst:3364 +#: ../../library/stdtypes.rst:2234 ../../library/stdtypes.rst:3366 msgid "``'c'``" msgstr "``'c'``" -#: ../../library/stdtypes.rst:2232 +#: ../../library/stdtypes.rst:2234 msgid "Single character (accepts integer or single character string)." msgstr "Caráter único (aceita inteiro ou um único caractere String)." -#: ../../library/stdtypes.rst:2235 ../../library/stdtypes.rst:3377 +#: ../../library/stdtypes.rst:2237 ../../library/stdtypes.rst:3379 msgid "``'r'``" msgstr "``'r'``" -#: ../../library/stdtypes.rst:2235 +#: ../../library/stdtypes.rst:2237 msgid "String (converts any Python object using :func:`repr`)." -msgstr "" -"String (converte qualquer objeto Python usando a função :func:`repr`)." +msgstr "String (converte qualquer objeto Python usando a função :func:`repr`)." -#: ../../library/stdtypes.rst:2238 ../../library/stdtypes.rst:3371 +#: ../../library/stdtypes.rst:2240 ../../library/stdtypes.rst:3373 msgid "``'s'``" msgstr "``'s'``" -#: ../../library/stdtypes.rst:2238 +#: ../../library/stdtypes.rst:2240 msgid "String (converts any Python object using :func:`str`)." msgstr "String (converte qualquer objeto Python usando a função :func:`str`)." -#: ../../library/stdtypes.rst:2241 ../../library/stdtypes.rst:3374 +#: ../../library/stdtypes.rst:2243 ../../library/stdtypes.rst:3376 msgid "``'a'``" msgstr "``'a'``" -#: ../../library/stdtypes.rst:2241 +#: ../../library/stdtypes.rst:2243 msgid "String (converts any Python object using :func:`ascii`)." msgstr "" "String (converte qualquer objeto Python usando a função :func:`ascii`)." -#: ../../library/stdtypes.rst:2244 ../../library/stdtypes.rst:3380 +#: ../../library/stdtypes.rst:2246 ../../library/stdtypes.rst:3382 msgid "``'%'``" msgstr "``'%'``" -#: ../../library/stdtypes.rst:2244 ../../library/stdtypes.rst:3380 -msgid "" -"No argument is converted, results in a ``'%'`` character in the result." +#: ../../library/stdtypes.rst:2246 ../../library/stdtypes.rst:3382 +msgid "No argument is converted, results in a ``'%'`` character in the result." msgstr "" -"Nenhum argumento é convertido, resultando um caractere ``''%'`` no " -"resultado." +"Nenhum argumento é convertido, resultando um caractere ``''%'`` no resultado." -#: ../../library/stdtypes.rst:2251 ../../library/stdtypes.rst:3387 +#: ../../library/stdtypes.rst:2253 ../../library/stdtypes.rst:3389 msgid "" "The alternate form causes a leading octal specifier (``'0o'``) to be " "inserted before the first digit." @@ -3548,7 +3836,7 @@ msgstr "" "A forma alternativa faz com que um especificador octal principal (``'0o'``) " "seja inserido antes do primeiro dígito." -#: ../../library/stdtypes.rst:2255 ../../library/stdtypes.rst:3391 +#: ../../library/stdtypes.rst:2257 ../../library/stdtypes.rst:3393 msgid "" "The alternate form causes a leading ``'0x'`` or ``'0X'`` (depending on " "whether the ``'x'`` or ``'X'`` format was used) to be inserted before the " @@ -3558,31 +3846,30 @@ msgstr "" "formato ``'x'`` or ``'X'`` foi usado) para ser inserido antes do primeiro " "dígito." -#: ../../library/stdtypes.rst:2259 ../../library/stdtypes.rst:3395 +#: ../../library/stdtypes.rst:2261 ../../library/stdtypes.rst:3397 msgid "" -"The alternate form causes the result to always contain a decimal point, even" -" if no digits follow it." +"The alternate form causes the result to always contain a decimal point, even " +"if no digits follow it." msgstr "" "A forma alternativa faz com que o resultado sempre contenha um ponto " "decimal, mesmo que nenhum dígito o siga." -#: ../../library/stdtypes.rst:2262 ../../library/stdtypes.rst:3398 +#: ../../library/stdtypes.rst:2264 ../../library/stdtypes.rst:3400 msgid "" "The precision determines the number of digits after the decimal point and " "defaults to 6." msgstr "" -"A precisão determina o número de dígitos após o ponto decimal e o padrão é " -"6." +"A precisão determina o número de dígitos após o ponto decimal e o padrão é 6." -#: ../../library/stdtypes.rst:2266 ../../library/stdtypes.rst:3402 +#: ../../library/stdtypes.rst:2268 ../../library/stdtypes.rst:3404 msgid "" "The alternate form causes the result to always contain a decimal point, and " "trailing zeroes are not removed as they would otherwise be." msgstr "" -"A forma alternativa faz com que o resultado sempre contenha um ponto decimal" -" e os zeros à direita não sejam removidos, como de outra forma seriam." +"A forma alternativa faz com que o resultado sempre contenha um ponto decimal " +"e os zeros à direita não sejam removidos, como de outra forma seriam." -#: ../../library/stdtypes.rst:2269 ../../library/stdtypes.rst:3405 +#: ../../library/stdtypes.rst:2271 ../../library/stdtypes.rst:3407 msgid "" "The precision determines the number of significant digits before and after " "the decimal point and defaults to 6." @@ -3590,15 +3877,15 @@ msgstr "" "A precisão determina o número de dígitos significativos antes e depois do " "ponto decimal e o padrão é 6." -#: ../../library/stdtypes.rst:2273 ../../library/stdtypes.rst:3409 +#: ../../library/stdtypes.rst:2275 ../../library/stdtypes.rst:3411 msgid "If precision is ``N``, the output is truncated to ``N`` characters." msgstr "Se a precisão for ``N``, a saída será truncada em caracteres ``N``." -#: ../../library/stdtypes.rst:2276 ../../library/stdtypes.rst:3418 +#: ../../library/stdtypes.rst:2278 ../../library/stdtypes.rst:3420 msgid "See :pep:`237`." msgstr "Veja :pep:`237`." -#: ../../library/stdtypes.rst:2278 +#: ../../library/stdtypes.rst:2280 msgid "" "Since Python strings have an explicit length, ``%s`` conversions do not " "assume that ``'\\0'`` is the end of the string." @@ -3606,7 +3893,7 @@ msgstr "" "Como as Strings do Python possuem comprimento explícito, ``%s`` as " "conversões não assumem que ``'\\0'`` é o fim da string." -#: ../../library/stdtypes.rst:2283 +#: ../../library/stdtypes.rst:2285 msgid "" "``%f`` conversions for numbers whose absolute value is over 1e50 are no " "longer replaced by ``%g`` conversions." @@ -3614,41 +3901,53 @@ msgstr "" "``%f`` as conversões para números cujo valor absoluto é superior a 1e50 não " "são mais substituídas pela conversão ``%g``." -#: ../../library/stdtypes.rst:2294 +#: ../../library/stdtypes.rst:2296 msgid "" -"Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, " -":class:`memoryview`" +"Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:" +"`memoryview`" msgstr "" -"Tipos de Sequência Binária --- :class:`bytes`, :class:`bytearray`, " -":class:`memoryview`" +"Tipos de Sequência Binária --- :class:`bytes`, :class:`bytearray`, :class:" +"`memoryview`" -#: ../../library/stdtypes.rst:2302 +#: ../../library/stdtypes.rst:2304 msgid "" -"The core built-in types for manipulating binary data are :class:`bytes` and " -":class:`bytearray`. They are supported by :class:`memoryview` which uses the" -" :ref:`buffer protocol ` to access the memory of other binary" -" objects without needing to make a copy." +"The core built-in types for manipulating binary data are :class:`bytes` and :" +"class:`bytearray`. They are supported by :class:`memoryview` which uses the :" +"ref:`buffer protocol ` to access the memory of other binary " +"objects without needing to make a copy." msgstr "" +"Os principais tipos embutidos para manipular dados binários são :class:" +"`bytes` e :class:`bytearray`. Eles são suportados por :class:`memoryview` a " +"qual usa o :ref:`buffer protocol ` para acessar a memória de " +"outros objetos binários sem precisar fazer uma cópia." -#: ../../library/stdtypes.rst:2307 +#: ../../library/stdtypes.rst:2309 msgid "" "The :mod:`array` module supports efficient storage of basic data types like " "32-bit integers and IEEE754 double-precision floating values." msgstr "" +"O módulo :mod:`array` suporta armazenamento eficiente de tipos de dados " +"básicos como inteiros de 32 bits e valores de ponto-flutuante com precisão " +"dupla IEEE754." -#: ../../library/stdtypes.rst:2313 +#: ../../library/stdtypes.rst:2315 msgid "Bytes Objects" msgstr "Objetos Bytes" -#: ../../library/stdtypes.rst:2317 +#: ../../library/stdtypes.rst:2319 msgid "" "Bytes objects are immutable sequences of single bytes. Since many major " "binary protocols are based on the ASCII text encoding, bytes objects offer " "several methods that are only valid when working with ASCII compatible data " "and are closely related to string objects in a variety of other ways." msgstr "" +"Objetos bytes são sequências imutáveis de bytes simples. Como muitos " +"protocolos binários importantes são baseados em codificação ASCII de texto, " +"objetos bytes oferecem diversos métodos que são válidos apenas quando " +"trabalhamos com dados compatíveis com ASCII, e são proximamente relacionados " +"com objetos string em uma variedade de outros sentidos." -#: ../../library/stdtypes.rst:2324 +#: ../../library/stdtypes.rst:2326 msgid "" "Firstly, the syntax for bytes literals is largely the same as that for " "string literals, except that a ``b`` prefix is added:" @@ -3656,50 +3955,66 @@ msgstr "" "Em primeiro lugar, a sintaxe para literais de bytes é em grande parte a " "mesma para literais de String, exceto que um prefixo ``b`` é adicionado:" -#: ../../library/stdtypes.rst:2327 +#: ../../library/stdtypes.rst:2329 msgid "Single quotes: ``b'still allows embedded \"double\" quotes'``" msgstr "Aspas simples: ``b'still allows embedded \"double\" quotes'``" -#: ../../library/stdtypes.rst:2328 +#: ../../library/stdtypes.rst:2330 msgid "Double quotes: ``b\"still allows embedded 'single' quotes\"``." msgstr "Aspas duplas: ``b\"still allows embedded 'single' quotes\"``." -#: ../../library/stdtypes.rst:2329 -msgid "Triple quoted: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" -msgstr "Aspas triplas: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" - #: ../../library/stdtypes.rst:2331 msgid "" +"Triple quoted: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" +msgstr "" +"Aspas triplas: ``b'''3 single quotes'''``, ``b\"\"\"3 double quotes\"\"\"``" + +#: ../../library/stdtypes.rst:2333 +msgid "" "Only ASCII characters are permitted in bytes literals (regardless of the " "declared source code encoding). Any binary values over 127 must be entered " "into bytes literals using the appropriate escape sequence." msgstr "" "Apenas caracteres ASCII são permitidos em literais de bytes " -"(independentemente do encoding declarado). Qualquer valor binário superior a" -" 127 deverá ser inserido em bytes literais usando o Escape Sequence " +"(independentemente do encoding declarado). Qualquer valor binário superior a " +"127 deverá ser inserido em bytes literais usando o Escape Sequence " "apropriada." -#: ../../library/stdtypes.rst:2335 +#: ../../library/stdtypes.rst:2337 msgid "" "As with string literals, bytes literals may also use a ``r`` prefix to " "disable processing of escape sequences. See :ref:`strings` for more about " "the various forms of bytes literal, including supported escape sequences." msgstr "" +"Assim como string literais, bytes literais também podem usar um prefixo " +"``r`` para desabilitar o processamento de sequências de escape. Veja :ref:" +"`strings` para mais sobre as várias formas de bytes literais, incluindo " +"suporte a sequências de escape." -#: ../../library/stdtypes.rst:2339 +#: ../../library/stdtypes.rst:2341 msgid "" "While bytes literals and representations are based on ASCII text, bytes " "objects actually behave like immutable sequences of integers, with each " "value in the sequence restricted such that ``0 <= x < 256`` (attempts to " "violate this restriction will trigger :exc:`ValueError`). This is done " -"deliberately to emphasise that while many binary formats include ASCII based" -" elements and can be usefully manipulated with some text-oriented " -"algorithms, this is not generally the case for arbitrary binary data " -"(blindly applying text processing algorithms to binary data formats that are" -" not ASCII compatible will usually lead to data corruption)." -msgstr "" - -#: ../../library/stdtypes.rst:2349 +"deliberately to emphasise that while many binary formats include ASCII based " +"elements and can be usefully manipulated with some text-oriented algorithms, " +"this is not generally the case for arbitrary binary data (blindly applying " +"text processing algorithms to binary data formats that are not ASCII " +"compatible will usually lead to data corruption)." +msgstr "" +"Enquanto bytes literais e representações são baseados em texto ASCII, " +"objetos bytes na verdade se comportam como sequências imutáveis de inteiros, " +"com cada valor na sequência restrito aos limites ``0 <= x < 256`` " +"(tentativas de violar essa restrição irão disparar :exc:`ValueError`). Isto " +"é feito deliberadamente para enfatizar que enquanto muitos formatos binários " +"incluem elementos baseados em ASCII e podem ser utilmente manipulados com " +"alguns algoritmos orientados a texto, esse não é geralmente o caso para " +"dados binários arbitrários (aplicar algoritmos de processamento de texto " +"cegamente em formatos de dados binários que não são compatíveis com ASCII " +"irá usualmente resultar em dados corrompidos)." + +#: ../../library/stdtypes.rst:2351 msgid "" "In addition to the literal forms, bytes objects can be created in a number " "of other ways:" @@ -3707,124 +4022,159 @@ msgstr "" "Além das formas literais, os objetos bytes podem ser criados de várias " "outras maneiras:" -#: ../../library/stdtypes.rst:2352 +#: ../../library/stdtypes.rst:2354 msgid "A zero-filled bytes object of a specified length: ``bytes(10)``" msgstr "" "Um bytes preenchido com objetos zero com um comprimento especificado: " "``bytes(10)``" -#: ../../library/stdtypes.rst:2353 +#: ../../library/stdtypes.rst:2355 msgid "From an iterable of integers: ``bytes(range(20))``" msgstr "De um iterável de inteiros: ``bytes(range(20))``" -#: ../../library/stdtypes.rst:2354 +#: ../../library/stdtypes.rst:2356 msgid "Copying existing binary data via the buffer protocol: ``bytes(obj)``" msgstr "" "Copiando dados binários existentes através do protocolo de Buffer: " "``bytes(obj)``" -#: ../../library/stdtypes.rst:2356 +#: ../../library/stdtypes.rst:2358 msgid "Also see the :ref:`bytes ` built-in." msgstr "Veja também os bult-ins :ref:`bytes `." -#: ../../library/stdtypes.rst:2358 +#: ../../library/stdtypes.rst:2360 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " "Accordingly, the bytes type has an additional class method to read data in " "that format:" msgstr "" +"Como 2 dígitos hexadecimais correspondem precisamente a apenas um byte, " +"números hexadecimais são um formato comumente usado para descrever dados " +"binários. Portanto, o tipo bytes tem um método de classe adicional para ler " +"dados nesse formato:" -#: ../../library/stdtypes.rst:2364 +#: ../../library/stdtypes.rst:2366 msgid "" "This :class:`bytes` class method returns a bytes object, decoding the given " "string object. The string must contain two hexadecimal digits per byte, " "with ASCII whitespace being ignored." msgstr "" +"Este método de classe da classe :class:`bytes` retorna um objeto bytes, " +"decodificando o objeto string fornecido. A string deve conter dois dígitos " +"hexadecimais por byte, com espaço em branco ASCII sendo ignorado." -#: ../../library/stdtypes.rst:2371 +#: ../../library/stdtypes.rst:2373 msgid "" -":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just" -" spaces." +":meth:`bytes.fromhex` now skips all ASCII whitespace in the string, not just " +"spaces." msgstr "" +":meth:`bytes.fromhex` agora ignora todos os espaços em branco em ASCII na " +"string, não apenas espaços." -#: ../../library/stdtypes.rst:2375 +#: ../../library/stdtypes.rst:2377 msgid "" "A reverse conversion function exists to transform a bytes object into its " "hexadecimal representation." msgstr "" +"Uma função de conversão reversa existe para transformar um objeto bytes na " +"sua representação hexadecimal." -#: ../../library/stdtypes.rst:2380 ../../library/stdtypes.rst:2456 +#: ../../library/stdtypes.rst:2382 ../../library/stdtypes.rst:2458 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the instance." msgstr "" +"Retorna um objeto string contendo dois dígitos hexadecimais para cada byte " +"na instância." -#: ../../library/stdtypes.rst:2388 +#: ../../library/stdtypes.rst:2390 msgid "" -"Since bytes objects are sequences of integers (akin to a tuple), for a bytes" -" object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be a bytes " +"Since bytes objects are sequences of integers (akin to a tuple), for a bytes " +"object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be a bytes " "object of length 1. (This contrasts with text strings, where both indexing " "and slicing will produce a string of length 1)" msgstr "" +"Como objetos bytes são sequências de inteiros (certo parentesto a uma " +"tupla), para um objeto bytes *b*, ``b[0]`` será um inteiro, enquanto " +"``b[0:1]`` será um objeto bytes de comprimento 1. (Isso contrasta com " +"strings de texto, onde tanto o uso por índice quanto por fatiamento irão " +"produzir uma string de comprimento 1)" -#: ../../library/stdtypes.rst:2393 +#: ../../library/stdtypes.rst:2395 msgid "" "The representation of bytes objects uses the literal format (``b'...'``) " "since it is often more useful than e.g. ``bytes([46, 46, 46])``. You can " "always convert a bytes object into a list of integers using ``list(b)``." msgstr "" +"A representação de objetos bytes utiliza o formato literal (``b'...'``), uma " +"vez que ela é frequentemente mais útil do que, por exemplo, ``bytes([46, 46, " +"46])``. Você sempre pode converter um objeto bytes em uma lista de inteiros " +"usando ``list(b)``." -#: ../../library/stdtypes.rst:2398 +#: ../../library/stdtypes.rst:2400 msgid "" "For Python 2.x users: In the Python 2.x series, a variety of implicit " "conversions between 8-bit strings (the closest thing 2.x offers to a built-" "in binary data type) and Unicode strings were permitted. This was a " "backwards compatibility workaround to account for the fact that Python " -"originally only supported 8-bit text, and Unicode text was a later addition." -" In Python 3.x, those implicit conversions are gone - conversions between " -"8-bit binary data and Unicode text must be explicit, and bytes and string " +"originally only supported 8-bit text, and Unicode text was a later addition. " +"In Python 3.x, those implicit conversions are gone - conversions between 8-" +"bit binary data and Unicode text must be explicit, and bytes and string " "objects will always compare unequal." msgstr "" - -#: ../../library/stdtypes.rst:2411 +"Para usuários do Python 2.x: nas séries do Python 2.x, uma variedade de " +"conversões implícitas entre strings de 8-bits (a coisa mais próxima a um " +"tipo de dados binário embutido que o 2.x oferece) e Unicode strings era " +"permitida. Isso era uma solução de contorno para compatibilidade retroativa " +"para contabilizar o fato que o Python originalmente apenas suportava texto " +"de 8-bits, e texto Unicode foi adicionado mais tarde. No Python 3.x, essas " +"conversões implícitas se foram - conversões entre dados binários de 8-bits e " +"texto Unicode devem ser explícitas, e bytes e objetos string irão sempre " +"comparar como diferentes." + +#: ../../library/stdtypes.rst:2413 msgid "Bytearray Objects" msgstr "Bytearray Objects" -#: ../../library/stdtypes.rst:2415 +#: ../../library/stdtypes.rst:2417 msgid "" ":class:`bytearray` objects are a mutable counterpart to :class:`bytes` " "objects." msgstr "" +"Objetos :class:`bytearray` são mutáveis, em contrapartida a objetos :class:" +"`bytes`." -#: ../../library/stdtypes.rst:2420 +#: ../../library/stdtypes.rst:2422 msgid "" -"There is no dedicated literal syntax for bytearray objects, instead they are" -" always created by calling the constructor:" +"There is no dedicated literal syntax for bytearray objects, instead they are " +"always created by calling the constructor:" msgstr "" +"Não existe sintaxe literal dedicada para objetos de bytearray, ao invés " +"disso eles sempre são criados através da chamada do construtor:" -#: ../../library/stdtypes.rst:2423 +#: ../../library/stdtypes.rst:2425 msgid "Creating an empty instance: ``bytearray()``" msgstr "Criando uma instância vazia: ``bytearray()``" -#: ../../library/stdtypes.rst:2424 +#: ../../library/stdtypes.rst:2426 msgid "Creating a zero-filled instance with a given length: ``bytearray(10)``" msgstr "" "Criando uma instância cheia de zero com um determinado comprimento: " "``bytearray(10)``" -#: ../../library/stdtypes.rst:2425 +#: ../../library/stdtypes.rst:2427 msgid "From an iterable of integers: ``bytearray(range(20))``" msgstr "A partir de inteiros iteráveis: ``bytearray(range(20))``" -#: ../../library/stdtypes.rst:2426 +#: ../../library/stdtypes.rst:2428 msgid "" "Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``" msgstr "" "Copiando dados binários existentes através do protocolo de buffer: " "``bytearray(b'Hi!')``" -#: ../../library/stdtypes.rst:2428 +#: ../../library/stdtypes.rst:2430 msgid "" "As bytearray objects are mutable, they support the :ref:`mutable ` sequence operations in addition to the common bytes and bytearray " @@ -3834,11 +4184,11 @@ msgstr "" "seqüência :ref:`mutable ` além das operações comuns de " "bytes e bytearray descritas em :ref:`bytes-methods`." -#: ../../library/stdtypes.rst:2432 +#: ../../library/stdtypes.rst:2434 msgid "Also see the :ref:`bytearray ` built-in." msgstr "Veja também o tipo built-in :ref:`bytearray `." -#: ../../library/stdtypes.rst:2434 +#: ../../library/stdtypes.rst:2436 msgid "" "Since 2 hexadecimal digits correspond precisely to a single byte, " "hexadecimal numbers are a commonly used format for describing binary data. " @@ -3850,20 +4200,26 @@ msgstr "" "dados binários. Consequentemente, o tipo de bytearray tem um método de " "classe adicional para ler dados nesse formato:" -#: ../../library/stdtypes.rst:2440 +#: ../../library/stdtypes.rst:2442 msgid "" "This :class:`bytearray` class method returns bytearray object, decoding the " "given string object. The string must contain two hexadecimal digits per " "byte, with ASCII whitespace being ignored." msgstr "" +"Este método de classe da classe :class:`bytearray` retorna um objeto " +"bytearray, decodificando o objeto string fornecido. A string deve conter " +"dois dígitos hexadecimais por byte, com espaços em branco ASCII sendo " +"ignorados." -#: ../../library/stdtypes.rst:2447 +#: ../../library/stdtypes.rst:2449 msgid "" ":meth:`bytearray.fromhex` now skips all ASCII whitespace in the string, not " "just spaces." msgstr "" +":meth:`bytearray.fromhex` agora ignora todos os espaços em branco em ASCII " +"na string, não apenas espaços." -#: ../../library/stdtypes.rst:2451 +#: ../../library/stdtypes.rst:2453 msgid "" "A reverse conversion function exists to transform a bytearray object into " "its hexadecimal representation." @@ -3871,7 +4227,7 @@ msgstr "" "Existe uma função de conversão reversa para transformar um objeto bytearray " "em sua representação hexadecimal." -#: ../../library/stdtypes.rst:2464 +#: ../../library/stdtypes.rst:2466 msgid "" "Since bytearray objects are sequences of integers (akin to a list), for a " "bytearray object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be " @@ -3879,31 +4235,31 @@ msgid "" "both indexing and slicing will produce a string of length 1)" msgstr "" "Como os objetos bytearray são sequências de inteiros (semelhante a uma " -"lista), para um objeto bytearray *b*, ``b[0]`` será um inteiro, enquanto que" -" ``b[0:1]`` será um objeto bytearray de comprimento 1. (Isso contrasta com " -"as Strings de texto, onde tanto a indexação como o fatiamento produzirão " +"lista), para um objeto bytearray *b*, ``b[0]`` será um inteiro, enquanto que " +"``b[0:1]`` será um objeto bytearray de comprimento 1. (Isso contrasta com as " +"Strings de texto, onde tanto a indexação como o fatiamento produzirão " "seqüências de comprimento 1)" -#: ../../library/stdtypes.rst:2469 +#: ../../library/stdtypes.rst:2471 msgid "" "The representation of bytearray objects uses the bytes literal format " "(``bytearray(b'...')``) since it is often more useful than e.g. " -"``bytearray([46, 46, 46])``. You can always convert a bytearray object into" -" a list of integers using ``list(b)``." +"``bytearray([46, 46, 46])``. You can always convert a bytearray object into " +"a list of integers using ``list(b)``." msgstr "" "A representação de objetos bytearray utiliza o formato literal bytes " "(``bytearray(b'...')``), uma vez que muitas vezes é mais útil do que, por " "exemplo, ``bytearray([46, 46, 46])``. Você sempre pode converter um objeto " "bytearray em uma lista de inteiros usando ``list(b)``." -#: ../../library/stdtypes.rst:2478 +#: ../../library/stdtypes.rst:2480 msgid "Bytes and Bytearray Operations" msgstr "Operações com Bytes e Bytearray" -#: ../../library/stdtypes.rst:2483 +#: ../../library/stdtypes.rst:2485 msgid "" -"Both bytes and bytearray objects support the :ref:`common `" -" sequence operations. They interoperate not just with operands of the same " +"Both bytes and bytearray objects support the :ref:`common ` " +"sequence operations. They interoperate not just with operands of the same " "type, but with any :term:`bytes-like object`. Due to this flexibility, they " "can be freely mixed in operations without causing errors. However, the " "return type of the result may depend on the order of operands." @@ -3915,31 +4271,31 @@ msgstr "" "causar erros. No entanto, o tipo de retorno do resultado pode depender da " "ordem dos operandos." -#: ../../library/stdtypes.rst:2491 +#: ../../library/stdtypes.rst:2493 msgid "" "The methods on bytes and bytearray objects don't accept strings as their " "arguments, just as the methods on strings don't accept bytes as their " "arguments. For example, you have to write::" msgstr "" -"Os métodos em bytes e objetos Bytearray não aceitam Strings como argumentos," -" assim como os métodos de Strings não aceitam bytes como argumentos. Por " +"Os métodos em bytes e objetos Bytearray não aceitam Strings como argumentos, " +"assim como os métodos de Strings não aceitam bytes como argumentos. Por " "exemplo, devemos escrever::" -#: ../../library/stdtypes.rst:2498 +#: ../../library/stdtypes.rst:2500 msgid "and::" msgstr "e::" -#: ../../library/stdtypes.rst:2503 +#: ../../library/stdtypes.rst:2505 msgid "" "Some bytes and bytearray operations assume the use of ASCII compatible " "binary formats, and hence should be avoided when working with arbitrary " "binary data. These restrictions are covered below." msgstr "" "Alguns operações com bytes e bytearray assumem o uso de formatos binários " -"compatíveis com ASCII e, portanto, devem ser evitados ao trabalhar com dados" -" binários arbitrários. Essas restrições são abordadas a seguir." +"compatíveis com ASCII e, portanto, devem ser evitados ao trabalhar com dados " +"binários arbitrários. Essas restrições são abordadas a seguir." -#: ../../library/stdtypes.rst:2508 +#: ../../library/stdtypes.rst:2510 msgid "" "Using these ASCII based operations to manipulate binary data that is not " "stored in an ASCII based format may lead to data corruption." @@ -3948,88 +4304,93 @@ msgstr "" "não são armazenados num formato baseado em ASCII poderá resultar na " "corrupção de dados." -#: ../../library/stdtypes.rst:2511 +#: ../../library/stdtypes.rst:2513 msgid "" "The following methods on bytes and bytearray objects can be used with " "arbitrary binary data." msgstr "" -"Os métodos a seguir em Bytes e Bytearray podem ser usados com dados binários" -" arbitrários." +"Os métodos a seguir em Bytes e Bytearray podem ser usados com dados binários " +"arbitrários." -#: ../../library/stdtypes.rst:2517 +#: ../../library/stdtypes.rst:2519 msgid "" -"Return the number of non-overlapping occurrences of subsequence *sub* in the" -" range [*start*, *end*]. Optional arguments *start* and *end* are " +"Return the number of non-overlapping occurrences of subsequence *sub* in the " +"range [*start*, *end*]. Optional arguments *start* and *end* are " "interpreted as in slice notation." msgstr "" "Retorna o número de ocorrências não sobrepostas de subsequência *sub* no " "intervalo [*start*, *end*]. Os argumentos opcionais *start* e *end* são " "interpretados como na notação de fatiamento." -#: ../../library/stdtypes.rst:2521 ../../library/stdtypes.rst:2568 -#: ../../library/stdtypes.rst:2590 ../../library/stdtypes.rst:2656 -#: ../../library/stdtypes.rst:2669 +#: ../../library/stdtypes.rst:2523 ../../library/stdtypes.rst:2570 +#: ../../library/stdtypes.rst:2592 ../../library/stdtypes.rst:2658 +#: ../../library/stdtypes.rst:2671 msgid "" "The subsequence to search for may be any :term:`bytes-like object` or an " "integer in the range 0 to 255." msgstr "" -"A subsequência a ser procurada poderá ser qualquer :term:`bytes-like object`" -" ou um inteiro no intervalo de 0 a 255." +"A subsequência a ser procurada poderá ser qualquer :term:`bytes-like object` " +"ou um inteiro no intervalo de 0 a 255." -#: ../../library/stdtypes.rst:2524 ../../library/stdtypes.rst:2580 -#: ../../library/stdtypes.rst:2593 ../../library/stdtypes.rst:2659 -#: ../../library/stdtypes.rst:2672 +#: ../../library/stdtypes.rst:2526 ../../library/stdtypes.rst:2582 +#: ../../library/stdtypes.rst:2595 ../../library/stdtypes.rst:2661 +#: ../../library/stdtypes.rst:2674 msgid "Also accept an integer in the range 0 to 255 as the subsequence." msgstr "" "Também aceita um número inteiro no intervalo de 0 a 255 como subsequência." -#: ../../library/stdtypes.rst:2531 +#: ../../library/stdtypes.rst:2533 msgid "" "Return a string decoded from the given bytes. Default encoding is " -"``'utf-8'``. *errors* may be given to set a different error handling scheme." -" The default for *errors* is ``'strict'``, meaning that encoding errors " -"raise a :exc:`UnicodeError`. Other possible values are ``'ignore'``, " -"``'replace'`` and any other name registered via " -":func:`codecs.register_error`, see section :ref:`error-handlers`. For a list" -" of possible encodings, see section :ref:`standard-encodings`." -msgstr "" -"Retorna uma String decodificada dos bytes fornecidos. A codificação padrão é" -" ``'utf-8'```. Os *erros* podem ser fornecidos para definir um esquema de " +"``'utf-8'``. *errors* may be given to set a different error handling " +"scheme. The default for *errors* is ``'strict'``, meaning that encoding " +"errors raise a :exc:`UnicodeError`. Other possible values are ``'ignore'``, " +"``'replace'`` and any other name registered via :func:`codecs." +"register_error`, see section :ref:`error-handlers`. For a list of possible " +"encodings, see section :ref:`standard-encodings`." +msgstr "" +"Retorna uma String decodificada dos bytes fornecidos. A codificação padrão é " +"``'utf-8'```. Os *erros* podem ser fornecidos para definir um esquema de " "tratamento de erros diferente. O padrão para *errors* é ``'strict'``, o que " -"significa que os erros de codificação geram uma exceção :exc:`UnicodeError`." -" Outros valores possíveis são ``'ignore'```, ``'replace'`` e qualquer outro " -"nome registrado pela função :func:`codecs.register_error`, veja a seção :ref" -":`error-handlers`. Para obter uma lista dos possíveis encoding, veja a seção" -" :ref:`standard-encodings`." +"significa que os erros de codificação geram uma exceção :exc:`UnicodeError`. " +"Outros valores possíveis são ``'ignore'```, ``'replace'`` e qualquer outro " +"nome registrado pela função :func:`codecs.register_error`, veja a seção :ref:" +"`error-handlers`. Para obter uma lista dos possíveis encoding, veja a seção :" +"ref:`standard-encodings`." -#: ../../library/stdtypes.rst:2541 +#: ../../library/stdtypes.rst:2543 msgid "" -"Passing the *encoding* argument to :class:`str` allows decoding any :term" -":`bytes-like object` directly, without needing to make a temporary bytes or " +"Passing the *encoding* argument to :class:`str` allows decoding any :term:" +"`bytes-like object` directly, without needing to make a temporary bytes or " "bytearray object." msgstr "" "Passando o argumento *encoding* para a classe :class:`str` permite " -"decodificar qualquer :term:`bytes-like object` diretamente, sem precisar ter" -" bytes temporário ou um objeto bytearray." +"decodificar qualquer :term:`bytes-like object` diretamente, sem precisar ter " +"bytes temporário ou um objeto bytearray." -#: ../../library/stdtypes.rst:2545 +#: ../../library/stdtypes.rst:2547 msgid "Added support for keyword arguments." msgstr "Adicionado suporte para argumentos keyword arguments." -#: ../../library/stdtypes.rst:2552 +#: ../../library/stdtypes.rst:2554 msgid "" "Return ``True`` if the binary data ends with the specified *suffix*, " "otherwise return ``False``. *suffix* can also be a tuple of suffixes to " "look for. With optional *start*, test beginning at that position. With " "optional *end*, stop comparing at that position." msgstr "" +"Retorna ``True`` se os dados binários encerra com o parâmetro *suffix* " +"especificado, caso contrário retorna ``False``. *suffix* também pode ser uma " +"tupla de sufixos para averiguar. Com o parâmetro opcional *start*, a procura " +"começa naquela posição. Com o parâmetro opcional *end*, o método encerra a " +"comparação na posição fornecida." -#: ../../library/stdtypes.rst:2557 +#: ../../library/stdtypes.rst:2559 msgid "The suffix(es) to search for may be any :term:`bytes-like object`." msgstr "" "O sufixo(es) para buscas pode ser qualquer termos :term:`bytes-like object`." -#: ../../library/stdtypes.rst:2563 +#: ../../library/stdtypes.rst:2565 msgid "" "Return the lowest index in the data where the subsequence *sub* is found, " "such that *sub* is contained in the slice ``s[start:end]``. Optional " @@ -4037,14 +4398,17 @@ msgid "" "``-1`` if *sub* is not found." msgstr "" -#: ../../library/stdtypes.rst:2573 +#: ../../library/stdtypes.rst:2575 msgid "" "The :meth:`~bytes.find` method should be used only if you need to know the " -"position of *sub*. To check if *sub* is a substring or not, use the " -":keyword:`in` operator::" +"position of *sub*. To check if *sub* is a substring or not, use the :" +"keyword:`in` operator::" msgstr "" +"O método :meth:`~bytes.find` deve ser usado apenas se você precisa saber a " +"posição de *sub*. Para verificar se *sub* é uma substring ou não, use o " +"operador :keyword:`in`::" -#: ../../library/stdtypes.rst:2587 +#: ../../library/stdtypes.rst:2589 msgid "" "Like :meth:`~bytes.find`, but raise :exc:`ValueError` when the subsequence " "is not found." @@ -4052,7 +4416,7 @@ msgstr "" "Como :meth:`~bytes.find`, mas levanta a exceção :exc:`ValueError` quando a " "subsequência não for encontrada." -#: ../../library/stdtypes.rst:2600 +#: ../../library/stdtypes.rst:2602 msgid "" "Return a bytes or bytearray object which is the concatenation of the binary " "data sequences in *iterable*. A :exc:`TypeError` will be raised if there " @@ -4061,30 +4425,41 @@ msgid "" "elements is the contents of the bytes or bytearray object providing this " "method." msgstr "" +"Retorna um objeto bytes ou bytearray que é a concatenação das sequências de " +"dados binários no *iterável*. Um :exc:`TypeError` será levantado se " +"existirem quaisquer valores que não sejam :term:`objeto byte ou similar " +"`, no *iterável*, incluindo objetos :class:`str`. O " +"separador entre elementos é o conteúdo do objeto bytes ou bytearray que está " +"fornecendo este método." -#: ../../library/stdtypes.rst:2611 +#: ../../library/stdtypes.rst:2613 msgid "" -"This static method returns a translation table usable for " -":meth:`bytes.translate` that will map each character in *from* into the " -"character at the same position in *to*; *from* and *to* must both be :term" -":`bytes-like objects ` and have the same length." +"This static method returns a translation table usable for :meth:`bytes." +"translate` that will map each character in *from* into the character at the " +"same position in *to*; *from* and *to* must both be :term:`bytes-like " +"objects ` and have the same length." msgstr "" -#: ../../library/stdtypes.rst:2622 +#: ../../library/stdtypes.rst:2624 msgid "" "Split the sequence at the first occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself or its " "bytearray copy, and the part after the separator. If the separator is not " -"found, return a 3-tuple containing a copy of the original sequence, followed" -" by two empty bytes or bytearray objects." +"found, return a 3-tuple containing a copy of the original sequence, followed " +"by two empty bytes or bytearray objects." msgstr "" +"Quebra a sequência na primeira ocorrência de *sep*, e retorna uma tupla com " +"3 elementos contendo a parte antes do separador, o próprio separator, e a " +"parte após o separador. Se o separador não for encontrado, retorna uma tupla " +"com 3 elementos contendo uma cópia da sequência original, seguido de dois " +"bytes ou objetos bytearray vazios." -#: ../../library/stdtypes.rst:2629 ../../library/stdtypes.rst:2686 +#: ../../library/stdtypes.rst:2631 ../../library/stdtypes.rst:2688 msgid "The separator to search for may be any :term:`bytes-like object`." msgstr "" "O separador para buscar pode ser qualquer termos :term:`bytes-like object`." -#: ../../library/stdtypes.rst:2635 +#: ../../library/stdtypes.rst:2637 msgid "" "Return a copy of the sequence with all occurrences of subsequence *old* " "replaced by *new*. If the optional argument *count* is given, only the " @@ -4094,30 +4469,30 @@ msgstr "" "*antigas* substituídas por *novo*. Se o argumento opcional *count* for " "fornecido, apenas as primeiras ocorrências de *count* serão substituídas." -#: ../../library/stdtypes.rst:2639 +#: ../../library/stdtypes.rst:2641 msgid "" "The subsequence to search for and its replacement may be any :term:`bytes-" "like object`." msgstr "" -"A subsequência para buscar e substituição pode ser qualquer termos :term" -":`bytes-like object`." +"A subsequência para buscar e substituição pode ser qualquer termos :term:" +"`bytes-like object`." -#: ../../library/stdtypes.rst:2644 ../../library/stdtypes.rst:2737 -#: ../../library/stdtypes.rst:2751 ../../library/stdtypes.rst:2775 -#: ../../library/stdtypes.rst:2789 ../../library/stdtypes.rst:2824 -#: ../../library/stdtypes.rst:2894 ../../library/stdtypes.rst:2912 -#: ../../library/stdtypes.rst:2940 ../../library/stdtypes.rst:3079 -#: ../../library/stdtypes.rst:3134 ../../library/stdtypes.rst:3177 -#: ../../library/stdtypes.rst:3198 ../../library/stdtypes.rst:3220 -#: ../../library/stdtypes.rst:3422 +#: ../../library/stdtypes.rst:2646 ../../library/stdtypes.rst:2739 +#: ../../library/stdtypes.rst:2753 ../../library/stdtypes.rst:2777 +#: ../../library/stdtypes.rst:2791 ../../library/stdtypes.rst:2826 +#: ../../library/stdtypes.rst:2896 ../../library/stdtypes.rst:2914 +#: ../../library/stdtypes.rst:2942 ../../library/stdtypes.rst:3081 +#: ../../library/stdtypes.rst:3136 ../../library/stdtypes.rst:3179 +#: ../../library/stdtypes.rst:3200 ../../library/stdtypes.rst:3222 +#: ../../library/stdtypes.rst:3424 msgid "" -"The bytearray version of this method does *not* operate in place - it always" -" produces a new object, even if no changes were made." +"The bytearray version of this method does *not* operate in place - it always " +"produces a new object, even if no changes were made." msgstr "" -"A versão Bytearray deste método *não* opera no local - o mesmo sempre produz" -" um novo objeto, mesmo que não tenha sido feitas alterações." +"A versão Bytearray deste método *não* opera no local - o mesmo sempre produz " +"um novo objeto, mesmo que não tenha sido feitas alterações." -#: ../../library/stdtypes.rst:2651 +#: ../../library/stdtypes.rst:2653 msgid "" "Return the highest index in the sequence where the subsequence *sub* is " "found, such that *sub* is contained within ``s[start:end]``. Optional " @@ -4129,13 +4504,15 @@ msgstr "" "argumentos opcionais *start* e *end* são interpretados como na notação de " "fatiamento. Caso ocorra algum problema será retorando ``-1``." -#: ../../library/stdtypes.rst:2666 +#: ../../library/stdtypes.rst:2668 msgid "" "Like :meth:`~bytes.rfind` but raises :exc:`ValueError` when the subsequence " "*sub* is not found." msgstr "" +"Semelhante a :meth:`~bytes.rfind` mas levanta :exc:`ValueError` quando a " +"subsequência *sub* não é encontrada." -#: ../../library/stdtypes.rst:2679 +#: ../../library/stdtypes.rst:2681 msgid "" "Split the sequence at the last occurrence of *sep*, and return a 3-tuple " "containing the part before the separator, the separator itself or its " @@ -4143,34 +4520,51 @@ msgid "" "found, return a 3-tuple containing two empty bytes or bytearray objects, " "followed by a copy of the original sequence." msgstr "" +"Quebra a sequência na primeira ocorrência de *sep*, e retorna uma tupla com " +"3 elementos contendo a parte antes do separador, o próprio separator, e a " +"parte após o separador. Se o separador não for encontrado, retorna uma tupla " +"com 3 elementos contendo dois bytes ou objetos bytearray vazios, seguido por " +"uma cópia da sequência original." -#: ../../library/stdtypes.rst:2692 +#: ../../library/stdtypes.rst:2694 msgid "" "Return ``True`` if the binary data starts with the specified *prefix*, " "otherwise return ``False``. *prefix* can also be a tuple of prefixes to " "look for. With optional *start*, test beginning at that position. With " "optional *end*, stop comparing at that position." msgstr "" +"Retorna ``True`` se os dados binários começam com o *prefix* especificado, " +"caso contrário retorna ``False``. *prefix* também pode ser uma tupla de " +"prefixos para procurar. Com o parâmetro opcional *start*, começa a procura " +"na posição indicada. Com o parâmetro opcional *end*, encerra a procura na " +"posição indicada." -#: ../../library/stdtypes.rst:2697 +#: ../../library/stdtypes.rst:2699 msgid "The prefix(es) to search for may be any :term:`bytes-like object`." msgstr "" +"Os prefix(os) para pesquisar podem ser qualquer :term:`objeto-byte ou " +"similar `." -#: ../../library/stdtypes.rst:2703 +#: ../../library/stdtypes.rst:2705 msgid "" "Return a copy of the bytes or bytearray object where all bytes occurring in " "the optional argument *delete* are removed, and the remaining bytes have " "been mapped through the given translation table, which must be a bytes " "object of length 256." msgstr "" +"Retorna uma cópia dos bytes ou objeto bytearray, onde todas as ocorrências " +"de bytes do argumento opcional *delete* são removidas, e os bytes restantes " +"foram mapeados através da tabela de tradução fornecida, a qual deve ser um " +"objeto bytes de comprimento 256." -#: ../../library/stdtypes.rst:2708 +#: ../../library/stdtypes.rst:2710 msgid "" -"You can use the :func:`bytes.maketrans` method to create a translation " -"table." +"You can use the :func:`bytes.maketrans` method to create a translation table." msgstr "" +"Voce pode usar o método :func:`bytes.maketrans` para criar uma tabela de " +"tradução." -#: ../../library/stdtypes.rst:2711 +#: ../../library/stdtypes.rst:2713 msgid "" "Set the *table* argument to ``None`` for translations that only delete " "characters::" @@ -4178,36 +4572,49 @@ msgstr "" "Define o argumento *table* como ``None`` para traduções que excluem apenas " "caracteres::" -#: ../../library/stdtypes.rst:2717 +#: ../../library/stdtypes.rst:2719 msgid "*delete* is now supported as a keyword argument." msgstr "*delete* agora é suportado como um keyword argument." -#: ../../library/stdtypes.rst:2721 +#: ../../library/stdtypes.rst:2723 msgid "" -"The following methods on bytes and bytearray objects have default behaviours" -" that assume the use of ASCII compatible binary formats, but can still be " +"The following methods on bytes and bytearray objects have default behaviours " +"that assume the use of ASCII compatible binary formats, but can still be " "used with arbitrary binary data by passing appropriate arguments. Note that " "all of the bytearray methods in this section do *not* operate in place, and " "instead produce new objects." msgstr "" +"Os seguintes métodos de objetos bytes e bytearray tem comportamentos padrões " +"que assumem o uso de formatos binários compatíveis com ASCII, mas ainda " +"podem ser usados com dados binários arbitrários através da passagem " +"argumentos apropriados. Perceba que todos os métodos de bytearray nesta " +"seção *não* alteram os argumentos, e ao invés disso produzem novos objetos." -#: ../../library/stdtypes.rst:2730 +#: ../../library/stdtypes.rst:2732 msgid "" "Return a copy of the object centered in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " "For :class:`bytes` objects, the original sequence is returned if *width* is " "less than or equal to ``len(s)``." msgstr "" +"Retorna uma cópia do objeto centralizado em uma sequência de comprimento " +"*width*. Preenchimento é feito usando o *fillbyte* especificado (o padrão é " +"um espaço ASCII). Para objetos :class:`bytes`, a sequência original é " +"retornada se *width* é menor que ou igual a ``len(s)``." -#: ../../library/stdtypes.rst:2744 +#: ../../library/stdtypes.rst:2746 msgid "" "Return a copy of the object left justified in a sequence of length *width*. " "Padding is done using the specified *fillbyte* (default is an ASCII space). " "For :class:`bytes` objects, the original sequence is returned if *width* is " "less than or equal to ``len(s)``." msgstr "" +"Retorna uma cópia do objeto alinhado a esquerda em uma sequência de " +"comprimento *width*. Preenchimento é feito usando o *fillbyte* especificado " +"(o padrão é um espaço ASCII). Para objetos :class:`bytes`, a sequência " +"original é retornada se *width* é menor que ou igual a ``len(s)``." -#: ../../library/stdtypes.rst:2758 +#: ../../library/stdtypes.rst:2760 msgid "" "Return a copy of the sequence with specified leading bytes removed. The " "*chars* argument is a binary sequence specifying the set of byte values to " @@ -4216,33 +4623,53 @@ msgid "" "removing ASCII whitespace. The *chars* argument is not a prefix; rather, " "all combinations of its values are stripped::" msgstr "" +"Retorna uma cópia da sequência com bytes especificados no início e no final " +"removidos. O argumento *chars* é uma sequência binária que especifica o " +"conjunto de bytes a serem removidos - o nome refere-se ao fato de este " +"método é usualmente utilizado com caracteres ASCII. Se for omitido ou for " +"``None``, o argumento *chars* irá remover por padrão os espaços em branco " +"ASCII. O argumento *chars* não é um prefixo; ao contrário disso, todas as " +"combinações dos seus seus valores são removidas::" -#: ../../library/stdtypes.rst:2770 ../../library/stdtypes.rst:2819 -#: ../../library/stdtypes.rst:2889 +#: ../../library/stdtypes.rst:2772 ../../library/stdtypes.rst:2821 +#: ../../library/stdtypes.rst:2891 msgid "" "The binary sequence of byte values to remove may be any :term:`bytes-like " "object`." msgstr "" +"A sequência binária de valores de bytes a serem removidos pode ser qualquer :" +"term:`objeto byte ou similar `." -#: ../../library/stdtypes.rst:2782 +#: ../../library/stdtypes.rst:2784 msgid "" -"Return a copy of the object right justified in a sequence of length *width*." -" Padding is done using the specified *fillbyte* (default is an ASCII space)." -" For :class:`bytes` objects, the original sequence is returned if *width* is" -" less than or equal to ``len(s)``." +"Return a copy of the object right justified in a sequence of length *width*. " +"Padding is done using the specified *fillbyte* (default is an ASCII space). " +"For :class:`bytes` objects, the original sequence is returned if *width* is " +"less than or equal to ``len(s)``." msgstr "" +"Retorna uma cópia do objeto alinhado a direita em uma sequência de " +"comprimento *width*. Preenchimento é feito usando o *fillbyte* especificado " +"(o padrão é um espaço ASCII). Para objetos :class:`bytes`, a sequência " +"original é retornada se *width* é menor que ou igual a ``len(s)``." -#: ../../library/stdtypes.rst:2796 +#: ../../library/stdtypes.rst:2798 msgid "" -"Split the binary sequence into subsequences of the same type, using *sep* as" -" the delimiter string. If *maxsplit* is given, at most *maxsplit* splits are" -" done, the *rightmost* ones. If *sep* is not specified or ``None``, any " -"subsequence consisting solely of ASCII whitespace is a separator. Except for" -" splitting from the right, :meth:`rsplit` behaves like :meth:`split` which " -"is described in detail below." +"Split the binary sequence into subsequences of the same type, using *sep* as " +"the delimiter string. If *maxsplit* is given, at most *maxsplit* splits are " +"done, the *rightmost* ones. If *sep* is not specified or ``None``, any " +"subsequence consisting solely of ASCII whitespace is a separator. Except for " +"splitting from the right, :meth:`rsplit` behaves like :meth:`split` which is " +"described in detail below." msgstr "" +"Divide a sequência binária em subsequência do mesmo tipo, usando *sep* como " +"um delimitador de string. Se *maxsplit* é fornecido, no máximo *maxsplit* " +"divisões são feitas, aquelas que estão *mais à direita*. Se *sep* não é " +"especificado ou é ``None``, qualquer subsequência consistindo unicamente de " +"espaço em branco ASCII é um separador. Exceto por dividir pela direita, :" +"meth:`rsplit` comporta-se como :meth:`split`, o qual é descrito em detalhes " +"abaixo." -#: ../../library/stdtypes.rst:2807 +#: ../../library/stdtypes.rst:2809 msgid "" "Return a copy of the sequence with specified trailing bytes removed. The " "*chars* argument is a binary sequence specifying the set of byte values to " @@ -4251,39 +4678,65 @@ msgid "" "removing ASCII whitespace. The *chars* argument is not a suffix; rather, " "all combinations of its values are stripped::" msgstr "" +"Retorna uma cópia da sequência com bytes especificados no final removidos. O " +"argumento *chars* é uma sequência binária que especifica o conjunto de bytes " +"a serem removidos - o nome refere-se ao fato de este método é usualmente " +"utilizado com caracteres ASCII. Se for omitido ou for ``None``, o argumento " +"*chars* irá remover por padrão os espaços em branco ASCII. O argumento " +"*chars* não é um sufixo; ao contrário disso, todas as combinações dos seus " +"seus valores são removidas::" -#: ../../library/stdtypes.rst:2831 +#: ../../library/stdtypes.rst:2833 msgid "" -"Split the binary sequence into subsequences of the same type, using *sep* as" -" the delimiter string. If *maxsplit* is given and non-negative, at most " +"Split the binary sequence into subsequences of the same type, using *sep* as " +"the delimiter string. If *maxsplit* is given and non-negative, at most " "*maxsplit* splits are done (thus, the list will have at most ``maxsplit+1`` " "elements). If *maxsplit* is not specified or is ``-1``, then there is no " "limit on the number of splits (all possible splits are made)." msgstr "" +"Divide a sequência binária em subsequências do mesmo tipo, usando *sep* como " +"o delimitador de string. Se *maxsplit* é fornecido e não-negativo, no máximo " +"*maxsplit* divisões são feitas (logo, a lista terá no máximo ``maxsplit+1`` " +"elementos). Se *maxsplit* não é especificado ou é ``-1``, então não existe " +"limite no número de divisões (todas as divisões possíveis são feitas)." -#: ../../library/stdtypes.rst:2837 +#: ../../library/stdtypes.rst:2839 msgid "" "If *sep* is given, consecutive delimiters are not grouped together and are " "deemed to delimit empty subsequences (for example, ``b'1,,2'.split(b',')`` " "returns ``[b'1', b'', b'2']``). The *sep* argument may consist of a " "multibyte sequence (for example, ``b'1<>2<>3'.split(b'<>')`` returns " "``[b'1', b'2', b'3']``). Splitting an empty sequence with a specified " -"separator returns ``[b'']`` or ``[bytearray(b'')]`` depending on the type of" -" object being split. The *sep* argument may be any :term:`bytes-like " -"object`." -msgstr "" - -#: ../../library/stdtypes.rst:2855 -msgid "" -"If *sep* is not specified or is ``None``, a different splitting algorithm is" -" applied: runs of consecutive ASCII whitespace are regarded as a single " +"separator returns ``[b'']`` or ``[bytearray(b'')]`` depending on the type of " +"object being split. The *sep* argument may be any :term:`bytes-like object`." +msgstr "" +"Se *sep* é fornecido, delimitadores consecutivos não são agrupados juntos e " +"eles são destinados para delimitar strings vazias (por exemplo ``b'1,,2'." +"split(b',')`` retorna ``[b'1', b'', b'2']``). O argumento *sep* pode " +"consistir de uma sequência de múltiplos bytes (por exemplo, ``b'1<>2<>3'." +"split(b'<>')`` retorna ``[b'1', b'2', b'3']``). Separar uma sequência vazia " +"com um separador especificado retorna ``[b'']`` ou ``[bytearray(b'')]`` " +"dependendo do tipo do objeto que está sendo separado. O argumento *sep* pode " +"ser qualquer :term:`bytes-like object`." + +#: ../../library/stdtypes.rst:2857 +msgid "" +"If *sep* is not specified or is ``None``, a different splitting algorithm is " +"applied: runs of consecutive ASCII whitespace are regarded as a single " "separator, and the result will contain no empty strings at the start or end " -"if the sequence has leading or trailing whitespace. Consequently, splitting" -" an empty sequence or a sequence consisting solely of ASCII whitespace " +"if the sequence has leading or trailing whitespace. Consequently, splitting " +"an empty sequence or a sequence consisting solely of ASCII whitespace " "without a specified separator returns ``[]``." msgstr "" +"Se *sep* não for especificado ou for ``None``, um algoritmo diferente de " +"separação é aplicado: ocorrências consecutivas de espaços em branco ASCII " +"são consideradas como um separador único, e o resultado não conterá strings " +"vazias no início ou no final, se a sequência tiver espaços em branco no " +"início ou no final. Consequentemente, separar uma sequência vazia ou uma " +"sequência que consiste apenas de espaços em branco ASCII sem um separador " +"especificado, retorna ``[]``." -#: ../../library/stdtypes.rst:2876 +#: ../../library/stdtypes.rst:2878 msgid "" "Return a copy of the sequence with specified leading and trailing bytes " "removed. The *chars* argument is a binary sequence specifying the set of " @@ -4292,30 +4745,44 @@ msgid "" "argument defaults to removing ASCII whitespace. The *chars* argument is not " "a prefix or suffix; rather, all combinations of its values are stripped::" msgstr "" +"Retorna uma cópia da sequência com os bytes especificados no início e no " +"final removidos. O argumento *chars* é uma sequência binária que especifica " +"o conjunto de bytes a serem removidos - o nome refere-se ao fato que este " +"método é normalmente utilizado com caracteres ASCII. Se for omitido ou for " +"``None``, o argumento *chars* irá remover por padrão os espaços em branco " +"ASCII. O argumento *chars* não é um prefixo, nem um sufixo; ao contrário " +"disso, todas as combinações dos seus seus valores são removidas::" -#: ../../library/stdtypes.rst:2898 +#: ../../library/stdtypes.rst:2900 msgid "" -"The following methods on bytes and bytearray objects assume the use of ASCII" -" compatible binary formats and should not be applied to arbitrary binary " +"The following methods on bytes and bytearray objects assume the use of ASCII " +"compatible binary formats and should not be applied to arbitrary binary " "data. Note that all of the bytearray methods in this section do *not* " "operate in place, and instead produce new objects." msgstr "" +"O seguintes métodos de bytes e objetos bytearray assumem o uso de formatos " +"binários compatíveis com ASCII e não devem ser aplicados a dados binários " +"arbitrários. Perceba que todos os métodos de bytearray nesta seção *não* " +"operam in place, e ao invés disso produzem novos objetos." -#: ../../library/stdtypes.rst:2906 +#: ../../library/stdtypes.rst:2908 msgid "" "Return a copy of the sequence with each byte interpreted as an ASCII " -"character, and the first byte capitalized and the rest lowercased. Non-ASCII" -" byte values are passed through unchanged." +"character, and the first byte capitalized and the rest lowercased. Non-ASCII " +"byte values are passed through unchanged." msgstr "" +"Retorna uma cópia da sequência com cada byte interpretado como um caractere " +"ASCII, e o primeiro byte em letra maiúscula e o resto em letras minúsculas. " +"Valores de bytes que não são ASCII são passados adiante sem mudanças." -#: ../../library/stdtypes.rst:2919 +#: ../../library/stdtypes.rst:2921 msgid "" -"Return a copy of the sequence where all ASCII tab characters are replaced by" -" one or more ASCII spaces, depending on the current column and the given tab" -" size. Tab positions occur every *tabsize* bytes (default is 8, giving tab " +"Return a copy of the sequence where all ASCII tab characters are replaced by " +"one or more ASCII spaces, depending on the current column and the given tab " +"size. Tab positions occur every *tabsize* bytes (default is 8, giving tab " "positions at columns 0, 8, 16 and so on). To expand the sequence, the " -"current column is set to zero and the sequence is examined byte by byte. If" -" the byte is an ASCII tab character (``b'\\t'``), one or more space " +"current column is set to zero and the sequence is examined byte by byte. If " +"the byte is an ASCII tab character (``b'\\t'``), one or more space " "characters are inserted in the result until the current column is equal to " "the next tab position. (The tab character itself is not copied.) If the " "current byte is an ASCII newline (``b'\\n'``) or carriage return " @@ -4323,147 +4790,223 @@ msgid "" "other byte value is copied unchanged and the current column is incremented " "by one regardless of how the byte value is represented when printed::" msgstr "" - -#: ../../library/stdtypes.rst:2947 -msgid "" -"Return true if all bytes in the sequence are alphabetical ASCII characters " -"or ASCII decimal digits and the sequence is not empty, false otherwise. " -"Alphabetic ASCII characters are those byte values in the sequence " +"Retorna uma cópia da sequência onde todos os caracteres de tabulação ASCII " +"são substituídos por um ou mais espaços ASCII, dependendo da coluna atual e " +"do tamanho fornecido para a tabulação. Posições de tabulação ocorrem a cada " +"*tabsize* bytes (o padrão é 8, dada as posições de tabulação nas colunas 0, " +"8, 16 e assim por diante). Para expandir a sequência, a coluna atual é " +"definida como zero e a sequência é examinada byte por byte. Se o byte é um " +"caractere ASCII de tabulação (``b'\\t'``), um ou mais caracteres de espaço " +"são inseridos no resultado até que a coluna atual seja igual a próxima " +"posição de tabulação. (O caractere de tabulação em si não é copiado.) Se o " +"byte atual é um caractere ASCII de nova linha (``b'\\n'``) ou de retorno " +"(``b'\\r'``), ele é copiado e a coluna atual é resetada para zero. Qualquer " +"outro byte é copiado sem ser modificado e a coluna atual é incrementada em " +"uma unidade independentemente de como o byte é representado quanto é " +"impresso::" + +#: ../../library/stdtypes.rst:2949 +msgid "" +"Return ``True`` if all bytes in the sequence are alphabetical ASCII " +"characters or ASCII decimal digits and the sequence is not empty, ``False`` " +"otherwise. Alphabetic ASCII characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'``. ASCII decimal " "digits are those byte values in the sequence ``b'0123456789'``." msgstr "" +"Retorna ``True`` se todos os bytes na sequência são caracteres alfabéticos " +"ASCII ou dígitos decimais ASCII e a sequência não é vazia, ``False`` caso " +"contrário. Caracteres alfabéticos ASCII são aqueles valores de byte na " +"sequência ``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'``. " +"Dígitos decimais ASCII são aqueles valores de byte na sequência " +"``b'0123456789'``." -#: ../../library/stdtypes.rst:2964 +#: ../../library/stdtypes.rst:2966 msgid "" -"Return true if all bytes in the sequence are alphabetic ASCII characters and" -" the sequence is not empty, false otherwise. Alphabetic ASCII characters " -"are those byte values in the sequence " +"Return ``True`` if all bytes in the sequence are alphabetic ASCII characters " +"and the sequence is not empty, ``False`` otherwise. Alphabetic ASCII " +"characters are those byte values in the sequence " "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'``." msgstr "" -"Retorna True se todos os bytes na sequência forem caracteres ASCII " -"alfabéticos e a seqüência não esteja vazia, do contrário, retorna Falso. Os " -"caracteres alfabéticos ASCII são os valores de bytes na seqüência " +"Retorna ``True`` se todos os bytes na sequência são caracteres alfabéticos " +"ASCII e a sequência não é vazia, ``False`` caso contrário. Caracteres " +"alfabéticos ASCII são aqueles cujo valor dos bytes estão na sequência " "``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'``." -#: ../../library/stdtypes.rst:2980 +#: ../../library/stdtypes.rst:2982 msgid "" -"Return true if the sequence is empty or all bytes in the sequence are ASCII," -" false otherwise. ASCII bytes are in the range 0-0x7F." +"Return ``True`` if the sequence is empty or all bytes in the sequence are " +"ASCII, ``False`` otherwise. ASCII bytes are in the range 0-0x7F." msgstr "" +"Retorna ``True`` se a sequência é vazia ou todos os bytes na sequência são " +"ASCII, ``False`` caso contrário. Bytes ASCII estão no intervalo 0-0x7F." -#: ../../library/stdtypes.rst:2990 +#: ../../library/stdtypes.rst:2992 msgid "" -"Return true if all bytes in the sequence are ASCII decimal digits and the " -"sequence is not empty, false otherwise. ASCII decimal digits are those byte " -"values in the sequence ``b'0123456789'``." +"Return ``True`` if all bytes in the sequence are ASCII decimal digits and " +"the sequence is not empty, ``False`` otherwise. ASCII decimal digits are " +"those byte values in the sequence ``b'0123456789'``." msgstr "" +"Retorna ``True`` se todos os bytes na sequência são dígitos decimais ASCII e " +"a sequência não é vazia, ``False`` caso contrário. Dígitos decimais ASCII " +"são aqueles cujos valores dos bytes estão na sequência ``b'0123456789'``." -#: ../../library/stdtypes.rst:3005 +#: ../../library/stdtypes.rst:3007 msgid "" -"Return true if there is at least one lowercase ASCII character in the " -"sequence and no uppercase ASCII characters, false otherwise." +"Return ``True`` if there is at least one lowercase ASCII character in the " +"sequence and no uppercase ASCII characters, ``False`` otherwise." msgstr "" +"Retorna ``True`` se existe pelo menos um caractere minúsculo ASCII na " +"sequência e nenhum caractere maiúsculo ASCII, ``False`` caso contrário." -#: ../../library/stdtypes.rst:3015 ../../library/stdtypes.rst:3057 -#: ../../library/stdtypes.rst:3073 ../../library/stdtypes.rst:3123 -#: ../../library/stdtypes.rst:3192 +#: ../../library/stdtypes.rst:3017 ../../library/stdtypes.rst:3059 +#: ../../library/stdtypes.rst:3075 ../../library/stdtypes.rst:3125 +#: ../../library/stdtypes.rst:3194 msgid "" "Lowercase ASCII characters are those byte values in the sequence " -"``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte" -" values in the sequence ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``." +"``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " +"values in the sequence ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``." msgstr "" +"Caracteres minúsculos ASCII são aqueles cujos valores de bytes estão na " +"sequência ``b'abcdefghijklmnopqrstuvwxyz'``. Caracteres maiúsculos ASCII são " +"aqueles cujos valores de bytes estão na sequência " +"``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``." -#: ../../library/stdtypes.rst:3023 +#: ../../library/stdtypes.rst:3025 msgid "" -"Return true if all bytes in the sequence are ASCII whitespace and the " -"sequence is not empty, false otherwise. ASCII whitespace characters are " +"Return ``True`` if all bytes in the sequence are ASCII whitespace and the " +"sequence is not empty, ``False`` otherwise. ASCII whitespace characters are " "those byte values in the sequence ``b' \\t\\n\\r\\x0b\\f'`` (space, tab, " "newline, carriage return, vertical tab, form feed)." msgstr "" +"Retorna ``True`` se todos os bytes na sequência são espaço em branco ASCII e " +"a sequência não é vazia, ``False`` caso contrário. Caracteres de espaço em " +"branco ASCII são aqueles cujos valores de bytes estão na sequência ``b' \\t" +"\\n\\r\\x0b\\f'`` (espaço, tabulação, nova linha, retorno do cursor, " +"tabulação vertical, formulário de entrada)." -#: ../../library/stdtypes.rst:3032 +#: ../../library/stdtypes.rst:3034 msgid "" -"Return true if the sequence is ASCII titlecase and the sequence is not " -"empty, false otherwise. See :meth:`bytes.title` for more details on the " +"Return ``True`` if the sequence is ASCII titlecase and the sequence is not " +"empty, ``False`` otherwise. See :meth:`bytes.title` for more details on the " "definition of \"titlecase\"." msgstr "" +"Retorna ``True`` se a sequência é titlecased ASCII e a sequência não é " +"vazia, ``False`` caso contrário. Veja :meth:`bytes.title` para mais detalhes " +"sobre a definição de \"titlecased\"." -#: ../../library/stdtypes.rst:3047 +#: ../../library/stdtypes.rst:3049 msgid "" -"Return true if there is at least one uppercase alphabetic ASCII character in" -" the sequence and no lowercase ASCII characters, false otherwise." +"Return ``True`` if there is at least one uppercase alphabetic ASCII " +"character in the sequence and no lowercase ASCII characters, ``False`` " +"otherwise." msgstr "" +"Retorna ``True`` se existe pelo menos um caractere maiúsculo alfabético " +"ASCII na sequência e nenhum caractere minúsculo ASCII, ``False`` caso " +"contrário." -#: ../../library/stdtypes.rst:3065 +#: ../../library/stdtypes.rst:3067 msgid "" "Return a copy of the sequence with all the uppercase ASCII characters " "converted to their corresponding lowercase counterpart." msgstr "" +"Retorna uma cópia da sequência com todos os caracteres maiúsculos ASCII " +"convertidos para os seus correspondentes caracteres minúsculos." -#: ../../library/stdtypes.rst:3090 +#: ../../library/stdtypes.rst:3092 msgid "" "Return a list of the lines in the binary sequence, breaking at ASCII line " "boundaries. This method uses the :term:`universal newlines` approach to " "splitting lines. Line breaks are not included in the resulting list unless " "*keepends* is given and true." msgstr "" +"Retorna uma lista das linhas na sequência binária, quebrando nos limites " +"ASCII das linhas. Este método usa a abordagem de :term:`novas linhas " +"universais ` para separar as linhas. Quebras de linhas " +"não são incluídas nas listas resultantes a não ser que *keepends* seja " +"fornecido e verdadeiro." -#: ../../library/stdtypes.rst:3102 +#: ../../library/stdtypes.rst:3104 msgid "" "Unlike :meth:`~bytes.split` when a delimiter string *sep* is given, this " -"method returns an empty list for the empty string, and a terminal line break" -" does not result in an extra line::" +"method returns an empty list for the empty string, and a terminal line break " +"does not result in an extra line::" msgstr "" +"Ao contrário de :meth:`~bytes.split`, quando uma string delimitadora *sep* é " +"fornecida, este método retorna uma lista vazia para a string vazia, e uma " +"quebra de linha terminal não resulta em uma linha extra::" -#: ../../library/stdtypes.rst:3115 +#: ../../library/stdtypes.rst:3117 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart and vice-versa." msgstr "" +"Retorna uma cópia da sequência com todos os caracteres minúsculos ASCII " +"convertidos para caracteres maiúsculos correspondentes, e vice-versa." -#: ../../library/stdtypes.rst:3127 +#: ../../library/stdtypes.rst:3129 msgid "" -"Unlike :func:`str.swapcase()`, it is always the case that " -"``bin.swapcase().swapcase() == bin`` for the binary versions. Case " -"conversions are symmetrical in ASCII, even though that is not generally true" -" for arbitrary Unicode code points." +"Unlike :func:`str.swapcase()`, it is always the case that ``bin.swapcase()." +"swapcase() == bin`` for the binary versions. Case conversions are " +"symmetrical in ASCII, even though that is not generally true for arbitrary " +"Unicode code points." msgstr "" +"Ao contrário de :func:`str.swapcase()`, é sempre fato que ``bin.swapcase()." +"swapcase() == bin`` para as versões binárias. Conversões maiúsculas/" +"minúsculas são simétricas em ASCII, apesar que isso não é geralmente verdade " +"para pontos de codificação arbitrários Unicode." -#: ../../library/stdtypes.rst:3141 +#: ../../library/stdtypes.rst:3143 msgid "" -"Return a titlecased version of the binary sequence where words start with an" -" uppercase ASCII character and the remaining characters are lowercase. " +"Return a titlecased version of the binary sequence where words start with an " +"uppercase ASCII character and the remaining characters are lowercase. " "Uncased byte values are left unmodified." msgstr "" +"Retorna uma versão titlecased da sequência binária, onde palavras iniciam " +"com um caractere ASCII com letra maiúscula e os caracteres restantes são em " +"letras minúsculas. Bytes quem não possuem diferença entre maiúscula/" +"minúscula não são alterados." -#: ../../library/stdtypes.rst:3150 +#: ../../library/stdtypes.rst:3152 msgid "" "Lowercase ASCII characters are those byte values in the sequence " -"``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte" -" values in the sequence ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``. All other byte " +"``b'abcdefghijklmnopqrstuvwxyz'``. Uppercase ASCII characters are those byte " +"values in the sequence ``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``. All other byte " "values are uncased." msgstr "" +"Caracteres minúsculos ASCII são aqueles cujos valores de byte estão na " +"sequência ``b'abcdefghijklmnopqrstuvwxyz'``. Caracteres maiúsculos ASCII são " +"aqueles cujos valores de byte estão na " +"sequência``b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'``. Todos os outros valores de bytes " +"ignoram maiúsculas/minúsculas." -#: ../../library/stdtypes.rst:3184 +#: ../../library/stdtypes.rst:3186 msgid "" "Return a copy of the sequence with all the lowercase ASCII characters " "converted to their corresponding uppercase counterpart." msgstr "" +"Retorna uma cópia da sequência com todos os caracteres minúsculos ASCII " +"convertidos para sua contraparte maiúscula correspondente." -#: ../../library/stdtypes.rst:3205 +#: ../../library/stdtypes.rst:3207 msgid "" -"Return a copy of the sequence left filled with ASCII ``b'0'`` digits to make" -" a sequence of length *width*. A leading sign prefix (``b'+'``/ ``b'-'``) is" -" handled by inserting the padding *after* the sign character rather than " +"Return a copy of the sequence left filled with ASCII ``b'0'`` digits to make " +"a sequence of length *width*. A leading sign prefix (``b'+'``/ ``b'-'``) is " +"handled by inserting the padding *after* the sign character rather than " "before. For :class:`bytes` objects, the original sequence is returned if " "*width* is less than or equal to ``len(seq)``." msgstr "" +"Retorna uma cópia da sequência preenchida a esquerda com dígitos ``b'0'`` " +"ASCII para produzir uma sequência se comprimento *width*. Um sinal de " +"prefixo inicial (``b'+'``/ ``b'-'``) é controlado através da inserção de " +"preenchimento *depois* do caractere de sinal, ao invés de antes. Para " +"objetos :class:`bytes`, a sequência original é retornada se *width* é menor " +"que ou igual a ``len(seq)``." -#: ../../library/stdtypes.rst:3227 +#: ../../library/stdtypes.rst:3229 msgid "``printf``-style Bytes Formatting" msgstr "Estilo de Formatação de bytes ``printf``-style" -#: ../../library/stdtypes.rst:3244 +#: ../../library/stdtypes.rst:3246 msgid "" "The formatting operations described here exhibit a variety of quirks that " "lead to a number of common errors (such as failing to display tuples and " @@ -4475,60 +5018,64 @@ msgstr "" "exibição de Tuplas e Dicionários corretamente). Se o valor que está sendo " "impresso puder ser uma tupla ou dicionário, envolva-o numa tupla." -#: ../../library/stdtypes.rst:3249 +#: ../../library/stdtypes.rst:3251 msgid "" "Bytes objects (``bytes``/``bytearray``) have one unique built-in operation: " -"the ``%`` operator (modulo). This is also known as the bytes *formatting* or" -" *interpolation* operator. Given ``format % values`` (where *format* is a " -"bytes object), ``%`` conversion specifications in *format* are replaced with" -" zero or more elements of *values*. The effect is similar to using the " -":c:func:`sprintf` in the C language." +"the ``%`` operator (modulo). This is also known as the bytes *formatting* or " +"*interpolation* operator. Given ``format % values`` (where *format* is a " +"bytes object), ``%`` conversion specifications in *format* are replaced with " +"zero or more elements of *values*. The effect is similar to using the :c:" +"func:`sprintf` in the C language." msgstr "" "Objetos Bytes (``bytes``/``bytearray``) possuem uma operação integrada " "exclusiva: o operador ``%`` (modulo). Isso também é conhecido como o bytes " "de *formatação* ou o operador de *interpolação*. Dado ``format % values`` " "(onde *format* é um objeto bytes), as especificações de conversão ``%`` em " -"*format* são substituídas por zero ou mais elementos de *values*. O efeito é" -" semelhante ao uso da função :c:func:`sprintf` na linguagem C." +"*format* são substituídas por zero ou mais elementos de *values*. O efeito é " +"semelhante ao uso da função :c:func:`sprintf` na linguagem C." -#: ../../library/stdtypes.rst:3256 +#: ../../library/stdtypes.rst:3258 msgid "" "If *format* requires a single argument, *values* may be a single non-tuple " -"object. [5]_ Otherwise, *values* must be a tuple with exactly the number of" -" items specified by the format bytes object, or a single mapping object (for" -" example, a dictionary)." +"object. [5]_ Otherwise, *values* must be a tuple with exactly the number of " +"items specified by the format bytes object, or a single mapping object (for " +"example, a dictionary)." msgstr "" "Se *format* requer um único argumento, *values* poderá ser um único objeto " -"não-tuple. [5]_ Caso contrário, *values* deverá ser uma tupla com exatamente" -" o número de itens especificados pelo objeto de formatação de Bytes, ou um " +"não-tuple. [5]_ Caso contrário, *values* deverá ser uma tupla com exatamente " +"o número de itens especificados pelo objeto de formatação de Bytes, ou um " "único objeto de mapeamento (por exemplo, um dicionário)." -#: ../../library/stdtypes.rst:3290 +#: ../../library/stdtypes.rst:3292 msgid "" "When the right argument is a dictionary (or other mapping type), then the " "formats in the bytes object *must* include a parenthesised mapping key into " "that dictionary inserted immediately after the ``'%'`` character. The " -"mapping key selects the value to be formatted from the mapping. For " -"example:" +"mapping key selects the value to be formatted from the mapping. For example:" msgstr "" +"Quando o argumento a direita é um dicionário (ou outro tipo de mapeamento), " +"então o formato no objeto bytes *deve* incluir um mapeamento de chaves entre " +"parêntesis neste dicionário inserido imediatamente após o caractere ``'%'``. " +"O mapeamento de chaves seleciona o valor a ser formatado a partir do " +"mapeamento. Por exemplo:" -#: ../../library/stdtypes.rst:3364 +#: ../../library/stdtypes.rst:3366 msgid "Single byte (accepts integer or single byte objects)." msgstr "Byte simples (aceita objetos inteiros ou de byte único)." -#: ../../library/stdtypes.rst:3367 +#: ../../library/stdtypes.rst:3369 msgid "``'b'``" msgstr "``'b'``" -#: ../../library/stdtypes.rst:3367 +#: ../../library/stdtypes.rst:3369 msgid "" -"Bytes (any object that follows the :ref:`buffer protocol ` or" -" has :meth:`__bytes__`)." +"Bytes (any object that follows the :ref:`buffer protocol ` or " +"has :meth:`__bytes__`)." msgstr "" "Bytes (qualquer objeto que segue o :ref:`buffer protocol ` o " "que possui :meth:`__bytes__`)." -#: ../../library/stdtypes.rst:3371 +#: ../../library/stdtypes.rst:3373 msgid "" "``'s'`` is an alias for ``'b'`` and should only be used for Python2/3 code " "bases." @@ -4536,15 +5083,15 @@ msgstr "" "``'s'`` é um alias para ``'b'`` e só deve ser usado para bases de código " "Python2/3." -#: ../../library/stdtypes.rst:3374 +#: ../../library/stdtypes.rst:3376 msgid "" -"Bytes (converts any Python object using " -"``repr(obj).encode('ascii','backslashreplace)``)." +"Bytes (converts any Python object using ``repr(obj)." +"encode('ascii','backslashreplace)``)." msgstr "" -"Bytes (converte qualquer objeto Python usando " -"``repr(obj).encode('ascii','backslashreplace)``)." +"Bytes (converte qualquer objeto Python usando ``repr(obj)." +"encode('ascii','backslashreplace)``)." -#: ../../library/stdtypes.rst:3377 +#: ../../library/stdtypes.rst:3379 msgid "" "``'r'`` is an alias for ``'a'`` and should only be used for Python2/3 code " "bases." @@ -4552,267 +5099,325 @@ msgstr "" "``'r'`` é um alias para ``'a'`` e só deve ser usado para bases de código " "Python2/3." -#: ../../library/stdtypes.rst:3377 +#: ../../library/stdtypes.rst:3379 msgid "\\(7)" msgstr "\\(7)" -#: ../../library/stdtypes.rst:3412 -msgid "" -"``b'%s'`` is deprecated, but will not be removed during the 3.x series." +#: ../../library/stdtypes.rst:3414 +msgid "``b'%s'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%s'`` está obsoleto, mas não será removido durante a versão 3.x." -#: ../../library/stdtypes.rst:3415 -msgid "" -"``b'%r'`` is deprecated, but will not be removed during the 3.x series." +#: ../../library/stdtypes.rst:3417 +msgid "``b'%r'`` is deprecated, but will not be removed during the 3.x series." msgstr "``b'%r'`` entrou em desuso, mas não serão removidos na versão 3.x." -#: ../../library/stdtypes.rst:3427 +#: ../../library/stdtypes.rst:3429 msgid ":pep:`461` - Adding % formatting to bytes and bytearray" -msgstr "" +msgstr ":pep:`461` - Adicionar formatação % para to bytes e bytearray" -#: ../../library/stdtypes.rst:3434 +#: ../../library/stdtypes.rst:3436 msgid "Memory Views" msgstr "Memory Views" -#: ../../library/stdtypes.rst:3436 +#: ../../library/stdtypes.rst:3438 msgid "" -":class:`memoryview` objects allow Python code to access the internal data of" -" an object that supports the :ref:`buffer protocol ` without " +":class:`memoryview` objects allow Python code to access the internal data of " +"an object that supports the :ref:`buffer protocol ` without " "copying." msgstr "" "O objeto :class:`memoryview` permite que o código Python acesse os dados " "internos de um objeto que suporte o :ref: `buffer protocol 1' sem copia-lo." -#: ../../library/stdtypes.rst:3442 +#: ../../library/stdtypes.rst:3444 msgid "" "Create a :class:`memoryview` that references *obj*. *obj* must support the " -"buffer protocol. Built-in objects that support the buffer protocol include " -":class:`bytes` and :class:`bytearray`." +"buffer protocol. Built-in objects that support the buffer protocol include :" +"class:`bytes` and :class:`bytearray`." msgstr "" +"Cria uma :class:`memoryview` que referencia *obj*. *obj* deve suportar o " +"protocolo de buffer. Objetos embutidos que suportam o protocolo de buffer " +"incluem :class:`bytes` e :class:`bytearray`." -#: ../../library/stdtypes.rst:3446 +#: ../../library/stdtypes.rst:3448 msgid "" "A :class:`memoryview` has the notion of an *element*, which is the atomic " "memory unit handled by the originating object *obj*. For many simple types " "such as :class:`bytes` and :class:`bytearray`, an element is a single byte, " "but other types such as :class:`array.array` may have bigger elements." msgstr "" +"Uma :class:`memoryview` tem a noção de um *elemento*, o qual é a unidade de " +"memória atômica manipulada pelo objeto de origem *obj*. Para muitos tipos " +"simples tais como :class:`bytes` e :class:`bytearray`, um elemento é um byte " +"único, mas outros tipos tais como :class:`array.array` podem ter elementos " +"maiores." -#: ../../library/stdtypes.rst:3452 +#: ../../library/stdtypes.rst:3454 msgid "" "``len(view)`` is equal to the length of :class:`~memoryview.tolist`. If " "``view.ndim = 0``, the length is 1. If ``view.ndim = 1``, the length is " "equal to the number of elements in the view. For higher dimensions, the " -"length is equal to the length of the nested list representation of the view." -" The :class:`~memoryview.itemsize` attribute will give you the number of " +"length is equal to the length of the nested list representation of the view. " +"The :class:`~memoryview.itemsize` attribute will give you the number of " "bytes in a single element." msgstr "" +"``len(view)`` é igual ao comprimento de :class:`~memoryview.tolist`. Se " +"``view.ndim = 0``, o comprimento é 1. Se ``view.ndim = 1``, o comprimento é " +"igual ao número de elementos na view. Para dimensões maiores, o comprimento " +"é igual ao comprimento da representação de lista aninhada da view. O " +"atributo :class:`~memoryview.itemsize` irá lhe dar o número de bytes em um " +"elemento individual." -#: ../../library/stdtypes.rst:3459 +#: ../../library/stdtypes.rst:3461 msgid "" "A :class:`memoryview` supports slicing and indexing to expose its data. One-" "dimensional slicing will result in a subview::" msgstr "" +"Um :class:`memoryview` suporta fatiamento e indexação para expor seus dados. " +"Fatiamento unidimensional irá resultar em uma subview::" -#: ../../library/stdtypes.rst:3472 +#: ../../library/stdtypes.rst:3474 msgid "" "If :class:`~memoryview.format` is one of the native format specifiers from " -"the :mod:`struct` module, indexing with an integer or a tuple of integers is" -" also supported and returns a single *element* with the correct type. One-" +"the :mod:`struct` module, indexing with an integer or a tuple of integers is " +"also supported and returns a single *element* with the correct type. One-" "dimensional memoryviews can be indexed with an integer or a one-integer " "tuple. Multi-dimensional memoryviews can be indexed with tuples of exactly " "*ndim* integers where *ndim* is the number of dimensions. Zero-dimensional " "memoryviews can be indexed with the empty tuple." msgstr "" +"Se :class:`~memoryview.format` é um dos especificadores de formatação " +"nativos do módulo :mod:`struct`, indexar com um inteiro ou uma tupla de " +"inteiros também é suportado, e retorna um *element* único com o tipo " +"correto. Memoryviews unidimensionais podem ser indexadas com um inteiro ou " +"uma tupla contendo um inteiro. Memoryviews multi-dimensionais podem ser " +"indexadas com tuplas de exatamente *ndim* inteiros, onde *ndim* é o número " +"de dimensões. Memoryviews zero-dimensionais podem ser indexadas com uma " +"tupla vazia." -#: ../../library/stdtypes.rst:3481 +#: ../../library/stdtypes.rst:3483 msgid "Here is an example with a non-byte format::" msgstr "Aqui temos um exemplo usando um formato não-byte::" -#: ../../library/stdtypes.rst:3493 +#: ../../library/stdtypes.rst:3495 msgid "" "If the underlying object is writable, the memoryview supports one-" "dimensional slice assignment. Resizing is not allowed::" msgstr "" +"Se o objeto subjacente é gravável, a memoryview suporta atribuição de fatias " +"unidimensionais. Redimensionamento não é permitido::" -#: ../../library/stdtypes.rst:3514 +#: ../../library/stdtypes.rst:3516 msgid "" "One-dimensional memoryviews of hashable (read-only) types with formats 'B', " -"'b' or 'c' are also hashable. The hash is defined as ``hash(m) == " -"hash(m.tobytes())``::" +"'b' or 'c' are also hashable. The hash is defined as ``hash(m) == hash(m." +"tobytes())``::" msgstr "" +"Memoryviews unidimensionais de tipos hasheáveis (apenas leitura) com " +"formatos 'B', 'b' ou 'c' também são hasheáveis. O hash é definido como " +"``hash(m) == hash(m.tobytes())``::" -#: ../../library/stdtypes.rst:3526 +#: ../../library/stdtypes.rst:3528 msgid "" "One-dimensional memoryviews can now be sliced. One-dimensional memoryviews " "with formats 'B', 'b' or 'c' are now hashable." msgstr "" +"Memoryviews unidimensionais agora podem ser fatiadas. Memoryviews " +"unidimensionais com formatos 'B', 'b' ou 'c' agora são hasheáveis." -#: ../../library/stdtypes.rst:3530 +#: ../../library/stdtypes.rst:3532 msgid "" -"memoryview is now registered automatically with " -":class:`collections.abc.Sequence`" +"memoryview is now registered automatically with :class:`collections.abc." +"Sequence`" msgstr "" -"O memoryview agora é registrado automaticamente como uma classe " -":class:`collections.abc.Sequence`" +"O memoryview agora é registrado automaticamente como uma classe :class:" +"`collections.abc.Sequence`" -#: ../../library/stdtypes.rst:3534 +#: ../../library/stdtypes.rst:3536 msgid "memoryviews can now be indexed with tuple of integers." msgstr "" "Atualmente, os memoryvies podem ser indexadas com uma tupla de números " "inteiros." -#: ../../library/stdtypes.rst:3537 +#: ../../library/stdtypes.rst:3539 msgid ":class:`memoryview` has several methods:" msgstr ":class:`memoryview` possui vários métodos:" -#: ../../library/stdtypes.rst:3541 +#: ../../library/stdtypes.rst:3543 msgid "" "A memoryview and a :pep:`3118` exporter are equal if their shapes are " "equivalent and if all corresponding values are equal when the operands' " "respective format codes are interpreted using :mod:`struct` syntax." msgstr "" +"Uma memoryview e um exportador :pep:`3118` são iguais se as suas formas são " +"equivalentes e se todos os valores correspondentes são iguais quando os " +"códigos de formatação dos respectivos operadores são interpretados usando a " +"sintaxe :mod:`struct`." -#: ../../library/stdtypes.rst:3545 +#: ../../library/stdtypes.rst:3547 msgid "" -"For the subset of :mod:`struct` format strings currently supported by " -":meth:`tolist`, ``v`` and ``w`` are equal if ``v.tolist() == w.tolist()``::" +"For the subset of :mod:`struct` format strings currently supported by :meth:" +"`tolist`, ``v`` and ``w`` are equal if ``v.tolist() == w.tolist()``::" msgstr "" "Para o subconjunto :mod:`struct` a formatação de Strings atualmente " -"suportadas por :meth:`tolist`, ``v`` e ``w`` são iguais se ``v.tolist() == " -"w.tolist()``::" +"suportadas por :meth:`tolist`, ``v`` e ``w`` são iguais se ``v.tolist() == w." +"tolist()``::" -#: ../../library/stdtypes.rst:3564 +#: ../../library/stdtypes.rst:3566 msgid "" "If either format string is not supported by the :mod:`struct` module, then " "the objects will always compare as unequal (even if the format strings and " "buffer contents are identical)::" msgstr "" +"Se qualquer string de formatação não for suportada pelo módulo :mod:" +"`struct`, então os objetos irão sempre comparar como diferentes (mesmo se as " +"strings de formatação e o conteúdo do buffer são idênticos)::" -#: ../../library/stdtypes.rst:3580 +#: ../../library/stdtypes.rst:3582 msgid "" "Note that, as with floating point numbers, ``v is w`` does *not* imply ``v " "== w`` for memoryview objects." msgstr "" +"Perceba que, assim como com números de ponto flutuante, ``v is w`` *não* " +"implica em ``v == w`` para objetos memoryview." -#: ../../library/stdtypes.rst:3583 +#: ../../library/stdtypes.rst:3585 msgid "" "Previous versions compared the raw memory disregarding the item format and " "the logical array structure." msgstr "" +"Versões anteriores comparavam a memória bruta desconsiderando o formato do " +"item e estrutura lógica do array." -#: ../../library/stdtypes.rst:3589 +#: ../../library/stdtypes.rst:3591 msgid "" "Return the data in the buffer as a bytestring. This is equivalent to " "calling the :class:`bytes` constructor on the memoryview. ::" msgstr "" +"Retorna os dados no buffer como um bytestring. Isso é equivalente a chamar o " +"construtor de :class:`bytes` na memoryview. ::" -#: ../../library/stdtypes.rst:3598 +#: ../../library/stdtypes.rst:3600 msgid "" "For non-contiguous arrays the result is equal to the flattened list " "representation with all elements converted to bytes. :meth:`tobytes` " "supports all format strings, including those that are not in :mod:`struct` " "module syntax." msgstr "" +"Para arrays não contíguos, o resultado é igual a representação de lista " +"achatada com todos os elementos convertidos para bytes. :meth:`tobytes` " +"suporta todos os formatos de strings, incluindo aqueles que não estão na " +"sintaxe do módulo :mod:`struct`." -#: ../../library/stdtypes.rst:3605 +#: ../../library/stdtypes.rst:3607 msgid "" "Return a string object containing two hexadecimal digits for each byte in " "the buffer. ::" msgstr "" +"Retorna um objeto string contendo dois dígitos hexadecimais para cada byte " +"no buffer. ::" -#: ../../library/stdtypes.rst:3616 +#: ../../library/stdtypes.rst:3618 msgid "Return the data in the buffer as a list of elements. ::" msgstr "" -#: ../../library/stdtypes.rst:3626 +#: ../../library/stdtypes.rst:3628 msgid "" -":meth:`tolist` now supports all single character native formats in " -":mod:`struct` module syntax as well as multi-dimensional representations." +":meth:`tolist` now supports all single character native formats in :mod:" +"`struct` module syntax as well as multi-dimensional representations." msgstr "" -#: ../../library/stdtypes.rst:3633 +#: ../../library/stdtypes.rst:3635 msgid "" "Release the underlying buffer exposed by the memoryview object. Many " -"objects take special actions when a view is held on them (for example, a " -":class:`bytearray` would temporarily forbid resizing); therefore, calling " +"objects take special actions when a view is held on them (for example, a :" +"class:`bytearray` would temporarily forbid resizing); therefore, calling " "release() is handy to remove these restrictions (and free any dangling " "resources) as soon as possible." msgstr "" +"Libera o buffer subjacente exposto pelo objeto memoryview. Muitos objetos " +"aceitam ações especiais quando a view é mantida com eles (por exemplo, um :" +"class:`bytearray` iria temporariamente proibir o redimensionamento); " +"portanto, chamar release() é útil para remover essas restrições (e liberar " +"quaisquer recursos pendurados) o mais breve possível." -#: ../../library/stdtypes.rst:3639 +#: ../../library/stdtypes.rst:3641 msgid "" "After this method has been called, any further operation on the view raises " "a :class:`ValueError` (except :meth:`release()` itself which can be called " "multiple times)::" msgstr "" -#: ../../library/stdtypes.rst:3650 +#: ../../library/stdtypes.rst:3652 msgid "" "The context management protocol can be used for a similar effect, using the " "``with`` statement::" msgstr "" -#: ../../library/stdtypes.rst:3666 +#: ../../library/stdtypes.rst:3668 msgid "" "Cast a memoryview to a new format or shape. *shape* defaults to " "``[byte_length//new_itemsize]``, which means that the result view will be " -"one-dimensional. The return value is a new memoryview, but the buffer itself" -" is not copied. Supported casts are 1D -> C-:term:`contiguous` and " -"C-contiguous -> 1D." +"one-dimensional. The return value is a new memoryview, but the buffer itself " +"is not copied. Supported casts are 1D -> C-:term:`contiguous` and C-" +"contiguous -> 1D." msgstr "" +"Converte uma memoryview para um novo formato ou forma. *shape* por padrão é " +"``[byte_length//new_itemsize]``, o que significa que a view resultante será " +"unidimensional. O valor de retorno é uma nova memoryview, mas o buffer por " +"si mesmo não é copiado. Conversões suportadas são 1D -> C-:term:`contíguo " +"` r C-contíguo -> 1D." -#: ../../library/stdtypes.rst:3672 +#: ../../library/stdtypes.rst:3674 msgid "" -"The destination format is restricted to a single element native format in " -":mod:`struct` syntax. One of the formats must be a byte format ('B', 'b' or " +"The destination format is restricted to a single element native format in :" +"mod:`struct` syntax. One of the formats must be a byte format ('B', 'b' or " "'c'). The byte length of the result must be the same as the original length." msgstr "" -#: ../../library/stdtypes.rst:3677 +#: ../../library/stdtypes.rst:3679 msgid "Cast 1D/long to 1D/unsigned bytes::" msgstr "Converte de 1D/long para 1D/unsigned bytes::" -#: ../../library/stdtypes.rst:3700 +#: ../../library/stdtypes.rst:3702 msgid "Cast 1D/unsigned bytes to 1D/char::" msgstr "Converte de 1D/unsigned bytes para 1D/char::" -#: ../../library/stdtypes.rst:3713 +#: ../../library/stdtypes.rst:3715 msgid "Cast 1D/bytes to 3D/ints to 1D/signed char::" msgstr "Converte de 1D/bytes para 3D/ints para 1D/signed char::" -#: ../../library/stdtypes.rst:3739 +#: ../../library/stdtypes.rst:3741 msgid "Cast 1D/unsigned long to 2D/unsigned long::" msgstr "" -#: ../../library/stdtypes.rst:3753 +#: ../../library/stdtypes.rst:3755 msgid "The source format is no longer restricted when casting to a byte view." msgstr "" -#: ../../library/stdtypes.rst:3756 +#: ../../library/stdtypes.rst:3758 msgid "There are also several readonly attributes available:" msgstr "" -#: ../../library/stdtypes.rst:3760 +#: ../../library/stdtypes.rst:3762 msgid "The underlying object of the memoryview::" msgstr "" -#: ../../library/stdtypes.rst:3771 +#: ../../library/stdtypes.rst:3773 msgid "" "``nbytes == product(shape) * itemsize == len(m.tobytes())``. This is the " "amount of space in bytes that the array would use in a contiguous " "representation. It is not necessarily equal to ``len(m)``::" msgstr "" -#: ../../library/stdtypes.rst:3790 +#: ../../library/stdtypes.rst:3792 msgid "Multi-dimensional arrays::" msgstr "Arrays Multi-dimensional::" -#: ../../library/stdtypes.rst:3807 +#: ../../library/stdtypes.rst:3809 msgid "A bool indicating whether the memory is read only." msgstr "Um bool que indica se a memória é somente leitura." -#: ../../library/stdtypes.rst:3811 +#: ../../library/stdtypes.rst:3813 msgid "" "A string containing the format (in :mod:`struct` module style) for each " "element in the view. A memoryview can be created from exporters with " @@ -4820,17 +5425,17 @@ msgid "" "restricted to native single element formats." msgstr "" -#: ../../library/stdtypes.rst:3816 +#: ../../library/stdtypes.rst:3818 msgid "" "format ``'B'`` is now handled according to the struct module syntax. This " "means that ``memoryview(b'abc')[0] == b'abc'[0] == 97``." msgstr "" -#: ../../library/stdtypes.rst:3822 +#: ../../library/stdtypes.rst:3824 msgid "The size in bytes of each element of the memoryview::" msgstr "O tamanho em Bytes de cada elemento do memoryview::" -#: ../../library/stdtypes.rst:3835 +#: ../../library/stdtypes.rst:3837 msgid "" "An integer indicating how many dimensions of a multi-dimensional array the " "memory represents." @@ -4838,7 +5443,7 @@ msgstr "" "Um número inteiro que indica quantas dimensões de uma matriz " "multidimensional a memória representa." -#: ../../library/stdtypes.rst:3840 +#: ../../library/stdtypes.rst:3842 msgid "" "A tuple of integers the length of :attr:`ndim` giving the shape of the " "memory as an N-dimensional array." @@ -4846,11 +5451,11 @@ msgstr "" "Uma tupla de inteiros de comprimento :attr:`ndim` dando a forma da memória " "como uma matriz N-dimensional." -#: ../../library/stdtypes.rst:3843 ../../library/stdtypes.rst:3851 +#: ../../library/stdtypes.rst:3845 ../../library/stdtypes.rst:3853 msgid "An empty tuple instead of ``None`` when ndim = 0." msgstr "Uma tupla vazia ao invés de ``None`` quando ndim = 0." -#: ../../library/stdtypes.rst:3848 +#: ../../library/stdtypes.rst:3850 msgid "" "A tuple of integers the length of :attr:`ndim` giving the size in bytes to " "access each element for each dimension of the array." @@ -4858,70 +5463,88 @@ msgstr "" "Uma tupla de inteiros de comprimento de :attr:`ndim` dando o tamanho em " "bytes para acessar cada elemento de cada dimensão da matriz." -#: ../../library/stdtypes.rst:3856 +#: ../../library/stdtypes.rst:3858 msgid "Used internally for PIL-style arrays. The value is informational only." msgstr "" "Usado internamente para estilos de Arrays PIL. O valor \\é apenas " "informativo." -#: ../../library/stdtypes.rst:3860 +#: ../../library/stdtypes.rst:3862 msgid "A bool indicating whether the memory is C-:term:`contiguous`." msgstr "Um bool que indica se a memória é C-:term:`contiguous`." -#: ../../library/stdtypes.rst:3866 +#: ../../library/stdtypes.rst:3868 msgid "A bool indicating whether the memory is Fortran :term:`contiguous`." msgstr "Um bool que indica se a memória é Fortran :term:`contiguous`." -#: ../../library/stdtypes.rst:3872 +#: ../../library/stdtypes.rst:3874 msgid "A bool indicating whether the memory is :term:`contiguous`." msgstr "Um bool que indica se a memória é :term:`contiguous`." -#: ../../library/stdtypes.rst:3880 +#: ../../library/stdtypes.rst:3882 msgid "Set Types --- :class:`set`, :class:`frozenset`" msgstr "Tipo Set --- :class:`set`, :class:`frozenset`" -#: ../../library/stdtypes.rst:3884 +#: ../../library/stdtypes.rst:3886 msgid "" "A :dfn:`set` object is an unordered collection of distinct :term:`hashable` " "objects. Common uses include membership testing, removing duplicates from a " -"sequence, and computing mathematical operations such as intersection, union," -" difference, and symmetric difference. (For other containers see the built-" -"in :class:`dict`, :class:`list`, and :class:`tuple` classes, and the " -":mod:`collections` module.)" -msgstr "" - -#: ../../library/stdtypes.rst:3891 -msgid "" -"Like other collections, sets support ``x in set``, ``len(set)``, and ``for x" -" in set``. Being an unordered collection, sets do not record element " +"sequence, and computing mathematical operations such as intersection, union, " +"difference, and symmetric difference. (For other containers see the built-" +"in :class:`dict`, :class:`list`, and :class:`tuple` classes, and the :mod:" +"`collections` module.)" +msgstr "" +"Um objeto :dfn:`set` é uma coleção não ordenada de objetos :term:`hasheáveis " +"` distintos. Usos comuns incluem testes de associação, remover " +"duplicatas de uma sequência, e computar operações matemáticas tais como " +"interseção, união, diferença, e diferença simétrica. (Para outros tipos de " +"containers veja os tipos embutidos :class:`dict`, :class:`list`, e a classe :" +"class:`tuple`, e o módulo :mod:`collections`.)" + +#: ../../library/stdtypes.rst:3893 +msgid "" +"Like other collections, sets support ``x in set``, ``len(set)``, and ``for x " +"in set``. Being an unordered collection, sets do not record element " "position or order of insertion. Accordingly, sets do not support indexing, " "slicing, or other sequence-like behavior." msgstr "" - -#: ../../library/stdtypes.rst:3896 -msgid "" -"There are currently two built-in set types, :class:`set` and " -":class:`frozenset`. The :class:`set` type is mutable --- the contents can be" -" changed using methods like :meth:`~set.add` and :meth:`~set.remove`. Since" -" it is mutable, it has no hash value and cannot be used as either a " -"dictionary key or as an element of another set. The :class:`frozenset` type" -" is immutable and :term:`hashable` --- its contents cannot be altered after " -"it is created; it can therefore be used as a dictionary key or as an element" -" of another set." -msgstr "" - -#: ../../library/stdtypes.rst:3904 +"Assim como outras coleções, sets suportam ``x in set``, ``len(set)``, e " +"``for x in set``. Sendo uma coleção não ordenada, sets não armazenam posição " +"de elementos ou ordem de inserção. Portanto, sets não suportam indexação, " +"slicing, ou outros comportamentos similares de sequências." + +#: ../../library/stdtypes.rst:3898 +msgid "" +"There are currently two built-in set types, :class:`set` and :class:" +"`frozenset`. The :class:`set` type is mutable --- the contents can be " +"changed using methods like :meth:`~set.add` and :meth:`~set.remove`. Since " +"it is mutable, it has no hash value and cannot be used as either a " +"dictionary key or as an element of another set. The :class:`frozenset` type " +"is immutable and :term:`hashable` --- its contents cannot be altered after " +"it is created; it can therefore be used as a dictionary key or as an element " +"of another set." +msgstr "" +"Existem atualmente dois tipos de set embutidos, :class:`set` e :class:" +"`frozenset`. O tipo :class:`set` é mutável --- o conteúdo pode ser alterado " +"usando métodos como :meth:`~set.add` e :meth:`~set.remove`. Como ele é " +"mutável, ele não tem valor hash e não pode ser usado como chave de " +"dicionário ou um elemento de um outro set. O tipo :class:`frozenset` é " +"imutável e :term:`hasheável ` --- seu conteúdo não pode ser " +"alterado depois de ter sido criado; ele pode então ser usado como chave de " +"dicionário ou como um elemento de outro set." + +#: ../../library/stdtypes.rst:3906 msgid "" "Non-empty sets (not frozensets) can be created by placing a comma-separated " "list of elements within braces, for example: ``{'jack', 'sjoerd'}``, in " "addition to the :class:`set` constructor." msgstr "" -#: ../../library/stdtypes.rst:3908 +#: ../../library/stdtypes.rst:3910 msgid "The constructors for both classes work the same:" msgstr "Os construtores de ambas as classes funcionam da mesma forma:" -#: ../../library/stdtypes.rst:3913 +#: ../../library/stdtypes.rst:3915 msgid "" "Return a new set or frozenset object whose elements are taken from " "*iterable*. The elements of a set must be :term:`hashable`. To represent " @@ -4929,203 +5552,221 @@ msgid "" "*iterable* is not specified, a new empty set is returned." msgstr "" -#: ../../library/stdtypes.rst:3919 +#: ../../library/stdtypes.rst:3921 msgid "" "Instances of :class:`set` and :class:`frozenset` provide the following " "operations:" msgstr "" -#: ../../library/stdtypes.rst:3924 +#: ../../library/stdtypes.rst:3926 msgid "Return the number of elements in set *s* (cardinality of *s*)." msgstr "" -#: ../../library/stdtypes.rst:3928 +#: ../../library/stdtypes.rst:3930 msgid "Test *x* for membership in *s*." msgstr "" -#: ../../library/stdtypes.rst:3932 +#: ../../library/stdtypes.rst:3934 msgid "Test *x* for non-membership in *s*." msgstr "" -#: ../../library/stdtypes.rst:3936 +#: ../../library/stdtypes.rst:3938 msgid "" -"Return ``True`` if the set has no elements in common with *other*. Sets are" -" disjoint if and only if their intersection is the empty set." +"Return ``True`` if the set has no elements in common with *other*. Sets are " +"disjoint if and only if their intersection is the empty set." msgstr "" -#: ../../library/stdtypes.rst:3942 +#: ../../library/stdtypes.rst:3944 msgid "Test whether every element in the set is in *other*." msgstr "" -#: ../../library/stdtypes.rst:3946 +#: ../../library/stdtypes.rst:3948 msgid "" "Test whether the set is a proper subset of *other*, that is, ``set <= other " "and set != other``." msgstr "" -#: ../../library/stdtypes.rst:3952 +#: ../../library/stdtypes.rst:3954 msgid "Test whether every element in *other* is in the set." msgstr "" -#: ../../library/stdtypes.rst:3956 +#: ../../library/stdtypes.rst:3958 msgid "" "Test whether the set is a proper superset of *other*, that is, ``set >= " "other and set != other``." msgstr "" -#: ../../library/stdtypes.rst:3962 +#: ../../library/stdtypes.rst:3964 msgid "Return a new set with elements from the set and all others." msgstr "" -#: ../../library/stdtypes.rst:3967 +#: ../../library/stdtypes.rst:3969 msgid "Return a new set with elements common to the set and all others." msgstr "" -#: ../../library/stdtypes.rst:3972 +#: ../../library/stdtypes.rst:3974 msgid "Return a new set with elements in the set that are not in the others." msgstr "" -#: ../../library/stdtypes.rst:3977 +#: ../../library/stdtypes.rst:3979 msgid "" "Return a new set with elements in either the set or *other* but not both." msgstr "" -#: ../../library/stdtypes.rst:3981 +#: ../../library/stdtypes.rst:3983 msgid "Return a shallow copy of the set." msgstr "" -#: ../../library/stdtypes.rst:3984 +#: ../../library/stdtypes.rst:3986 msgid "" -"Note, the non-operator versions of :meth:`union`, :meth:`intersection`, " -":meth:`difference`, and :meth:`symmetric_difference`, :meth:`issubset`, and " -":meth:`issuperset` methods will accept any iterable as an argument. In " +"Note, the non-operator versions of :meth:`union`, :meth:`intersection`, :" +"meth:`difference`, and :meth:`symmetric_difference`, :meth:`issubset`, and :" +"meth:`issuperset` methods will accept any iterable as an argument. In " "contrast, their operator based counterparts require their arguments to be " "sets. This precludes error-prone constructions like ``set('abc') & 'cbs'`` " "in favor of the more readable ``set('abc').intersection('cbs')``." msgstr "" - -#: ../../library/stdtypes.rst:3991 -msgid "" -"Both :class:`set` and :class:`frozenset` support set to set comparisons. Two" -" sets are equal if and only if every element of each set is contained in the" -" other (each is a subset of the other). A set is less than another set if " -"and only if the first set is a proper subset of the second set (is a subset," -" but is not equal). A set is greater than another set if and only if the " -"first set is a proper superset of the second set (is a superset, but is not " -"equal)." -msgstr "" - -#: ../../library/stdtypes.rst:3998 +"Perceba que, as versões não-operador dos métodos :meth:`union`, :meth:" +"`intersection`, :meth:`difference`, e :meth:`symmetric_difference`, :meth:" +"`issubset`, e :meth:`issuperset` irão aceitar qualquer iterável como um " +"argumento. Em contraste, suas contrapartes baseadas em operadores exigem que " +"seus argumentos sejam conjuntos. Isso impede construções sucetíveis a erros " +"como ``set('abc') & 'cbs'`` e favorece a forma mais legível ``set('abc')." +"intersection('cbs')``." + +#: ../../library/stdtypes.rst:3993 +msgid "" +"Both :class:`set` and :class:`frozenset` support set to set comparisons. Two " +"sets are equal if and only if every element of each set is contained in the " +"other (each is a subset of the other). A set is less than another set if and " +"only if the first set is a proper subset of the second set (is a subset, but " +"is not equal). A set is greater than another set if and only if the first " +"set is a proper superset of the second set (is a superset, but is not equal)." +msgstr "" +"Tanto :class:`set` quanto :class:`frozenset` suportam comparar um set contra " +"outro set. Dois sets são iguais se e somente se, cada elemento de cada set " +"está contido no outro set (cada um é um subconjunto do outro). Um set é " +"menor que outro set se e somente se, o primeiro set é um subconjunto próprio " +"do segundo set (é um subconjunto, mas não é igual). Um set é maior que outro " +"set se e somente se, o primeiro set é um superconjunto próprio do segundo " +"set (é um superconjunto, mas não é igual)." + +#: ../../library/stdtypes.rst:4000 msgid "" "Instances of :class:`set` are compared to instances of :class:`frozenset` " "based on their members. For example, ``set('abc') == frozenset('abc')`` " "returns ``True`` and so does ``set('abc') in set([frozenset('abc')])``." msgstr "" -#: ../../library/stdtypes.rst:4002 +#: ../../library/stdtypes.rst:4004 msgid "" "The subset and equality comparisons do not generalize to a total ordering " -"function. For example, any two nonempty disjoint sets are not equal and are" -" not subsets of each other, so *all* of the following return ``False``: " +"function. For example, any two nonempty disjoint sets are not equal and are " +"not subsets of each other, so *all* of the following return ``False``: " "``ab``." msgstr "" -#: ../../library/stdtypes.rst:4007 +#: ../../library/stdtypes.rst:4009 msgid "" "Since sets only define partial ordering (subset relationships), the output " "of the :meth:`list.sort` method is undefined for lists of sets." msgstr "" -#: ../../library/stdtypes.rst:4010 +#: ../../library/stdtypes.rst:4012 msgid "Set elements, like dictionary keys, must be :term:`hashable`." msgstr "" -#: ../../library/stdtypes.rst:4012 +#: ../../library/stdtypes.rst:4014 msgid "" "Binary operations that mix :class:`set` instances with :class:`frozenset` " "return the type of the first operand. For example: ``frozenset('ab') | " "set('bc')`` returns an instance of :class:`frozenset`." msgstr "" -#: ../../library/stdtypes.rst:4016 +#: ../../library/stdtypes.rst:4018 msgid "" "The following table lists operations available for :class:`set` that do not " "apply to immutable instances of :class:`frozenset`:" msgstr "" -#: ../../library/stdtypes.rst:4022 +#: ../../library/stdtypes.rst:4024 msgid "Update the set, adding elements from all others." msgstr "" -#: ../../library/stdtypes.rst:4027 +#: ../../library/stdtypes.rst:4029 msgid "Update the set, keeping only elements found in it and all others." msgstr "" -#: ../../library/stdtypes.rst:4032 +#: ../../library/stdtypes.rst:4034 msgid "Update the set, removing elements found in others." msgstr "" -#: ../../library/stdtypes.rst:4037 +#: ../../library/stdtypes.rst:4039 msgid "" "Update the set, keeping only elements found in either set, but not in both." msgstr "" -#: ../../library/stdtypes.rst:4041 +#: ../../library/stdtypes.rst:4043 msgid "Add element *elem* to the set." msgstr "" -#: ../../library/stdtypes.rst:4045 +#: ../../library/stdtypes.rst:4047 msgid "" -"Remove element *elem* from the set. Raises :exc:`KeyError` if *elem* is not" -" contained in the set." +"Remove element *elem* from the set. Raises :exc:`KeyError` if *elem* is not " +"contained in the set." msgstr "" -#: ../../library/stdtypes.rst:4050 +#: ../../library/stdtypes.rst:4052 msgid "Remove element *elem* from the set if it is present." msgstr "" -#: ../../library/stdtypes.rst:4054 +#: ../../library/stdtypes.rst:4056 msgid "" -"Remove and return an arbitrary element from the set. Raises :exc:`KeyError`" -" if the set is empty." +"Remove and return an arbitrary element from the set. Raises :exc:`KeyError` " +"if the set is empty." msgstr "" -#: ../../library/stdtypes.rst:4059 +#: ../../library/stdtypes.rst:4061 msgid "Remove all elements from the set." msgstr "" -#: ../../library/stdtypes.rst:4062 +#: ../../library/stdtypes.rst:4064 msgid "" -"Note, the non-operator versions of the :meth:`update`, " -":meth:`intersection_update`, :meth:`difference_update`, and " -":meth:`symmetric_difference_update` methods will accept any iterable as an " +"Note, the non-operator versions of the :meth:`update`, :meth:" +"`intersection_update`, :meth:`difference_update`, and :meth:" +"`symmetric_difference_update` methods will accept any iterable as an " "argument." msgstr "" -#: ../../library/stdtypes.rst:4067 +#: ../../library/stdtypes.rst:4069 msgid "" -"Note, the *elem* argument to the :meth:`__contains__`, :meth:`remove`, and " -":meth:`discard` methods may be a set. To support searching for an " -"equivalent frozenset, a temporary one is created from *elem*." +"Note, the *elem* argument to the :meth:`__contains__`, :meth:`remove`, and :" +"meth:`discard` methods may be a set. To support searching for an equivalent " +"frozenset, a temporary one is created from *elem*." msgstr "" -#: ../../library/stdtypes.rst:4075 +#: ../../library/stdtypes.rst:4077 msgid "Mapping Types --- :class:`dict`" -msgstr "" +msgstr "Tipo de Mapeamento --- :class:`dict`" -#: ../../library/stdtypes.rst:4085 +#: ../../library/stdtypes.rst:4087 msgid "" "A :term:`mapping` object maps :term:`hashable` values to arbitrary objects. " "Mappings are mutable objects. There is currently only one standard mapping " -"type, the :dfn:`dictionary`. (For other containers see the built-in " -":class:`list`, :class:`set`, and :class:`tuple` classes, and the " -":mod:`collections` module.)" +"type, the :dfn:`dictionary`. (For other containers see the built-in :class:" +"`list`, :class:`set`, and :class:`tuple` classes, and the :mod:`collections` " +"module.)" msgstr "" +"Um objeto de :term:`mapeamento ` mapeia valores :term:`hasheáveis " +"` para objetos arbitrários. Mapeamentos são objetos mutáveis. " +"Existe no momento apenas um tipo de mapeamento padrão, o :dfn:`dicionário`. " +"(Para outros containers, veja as classes embutidas :class:`list`, :class:" +"`set`, e :class:`tuple`, e o módulo :mod:`collections`.)" -#: ../../library/stdtypes.rst:4091 +#: ../../library/stdtypes.rst:4093 msgid "" -"A dictionary's keys are *almost* arbitrary values. Values that are not " -":term:`hashable`, that is, values containing lists, dictionaries or other " +"A dictionary's keys are *almost* arbitrary values. Values that are not :" +"term:`hashable`, that is, values containing lists, dictionaries or other " "mutable types (that are compared by value rather than by object identity) " "may not be used as keys. Numeric types used for keys obey the normal rules " "for numeric comparison: if two numbers compare equal (such as ``1`` and " @@ -5133,353 +5774,410 @@ msgid "" "entry. (Note however, that since computers store floating-point numbers as " "approximations it is usually unwise to use them as dictionary keys.)" msgstr "" +"As chaves de um dicionário são *quase* valores arbitrários. Valores que não " +"são :term:`hasheáveis `, isto é, valores contendo listas, " +"dicionários ou outros tipos mutáveis (que são comparados por valor ao invés " +"de por identidade do objeto) não devem ser usados como chaves. Tipos " +"numéricos usados para chaves obedecem as regras normais para comparação " +"numérica: se dois números comparados são iguais (tal como ``1`` e ``1.0``), " +"então eles podem ser usados intercambiavelmente para indexar a mesma entrada " +"no dicionário. (Perceba entretanto, que como computadores armazenam números " +"de ponto flutuante como aproximações, usualmente não é uma boa ideia utilizá-" +"los como chaves para dicionários.)" -#: ../../library/stdtypes.rst:4100 +#: ../../library/stdtypes.rst:4102 msgid "" "Dictionaries can be created by placing a comma-separated list of ``key: " -"value`` pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}``" -" or ``{4098: 'jack', 4127: 'sjoerd'}``, or by the :class:`dict` constructor." +"value`` pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` " +"or ``{4098: 'jack', 4127: 'sjoerd'}``, or by the :class:`dict` constructor." msgstr "" -#: ../../library/stdtypes.rst:4108 +#: ../../library/stdtypes.rst:4110 msgid "" -"Return a new dictionary initialized from an optional positional argument and" -" a possibly empty set of keyword arguments." +"Return a new dictionary initialized from an optional positional argument and " +"a possibly empty set of keyword arguments." msgstr "" -#: ../../library/stdtypes.rst:4111 +#: ../../library/stdtypes.rst:4113 msgid "" "If no positional argument is given, an empty dictionary is created. If a " "positional argument is given and it is a mapping object, a dictionary is " -"created with the same key-value pairs as the mapping object. Otherwise, the" -" positional argument must be an :term:`iterable` object. Each item in the " +"created with the same key-value pairs as the mapping object. Otherwise, the " +"positional argument must be an :term:`iterable` object. Each item in the " "iterable must itself be an iterable with exactly two objects. The first " "object of each item becomes a key in the new dictionary, and the second " "object the corresponding value. If a key occurs more than once, the last " "value for that key becomes the corresponding value in the new dictionary." msgstr "" +"Se nenhum argumento posicional é fornecido, um dicionário vazio é criado. Se " +"um argumento posicional é fornecido e é um objeto de mapeamento, um " +"dicionário é criado com os mesmos pares de chave-valor que o objeto de " +"mapeamento. Caso contrário, o argumento posicional deve ser um objeto :term:" +"`iterável `. Cada item no iterável deve ser por si mesmo um " +"iterável com exatamente dois objetos. O primeiro objeto de cada item torna-" +"se a chave no novo dicionário, e o segundo objeto, o valor correspondente. " +"Se a chave ocorrer mais do que uma vez, o último valor para aquela chave " +"torna-se o valor correspondente no novo dicionário." -#: ../../library/stdtypes.rst:4121 +#: ../../library/stdtypes.rst:4123 msgid "" "If keyword arguments are given, the keyword arguments and their values are " "added to the dictionary created from the positional argument. If a key " -"being added is already present, the value from the keyword argument replaces" -" the value from the positional argument." +"being added is already present, the value from the keyword argument replaces " +"the value from the positional argument." msgstr "" -#: ../../library/stdtypes.rst:4126 +#: ../../library/stdtypes.rst:4128 msgid "" "To illustrate, the following examples all return a dictionary equal to " "``{\"one\": 1, \"two\": 2, \"three\": 3}``::" msgstr "" -#: ../../library/stdtypes.rst:4137 +#: ../../library/stdtypes.rst:4139 msgid "" -"Providing keyword arguments as in the first example only works for keys that" -" are valid Python identifiers. Otherwise, any valid keys can be used." +"Providing keyword arguments as in the first example only works for keys that " +"are valid Python identifiers. Otherwise, any valid keys can be used." msgstr "" -#: ../../library/stdtypes.rst:4141 +#: ../../library/stdtypes.rst:4143 msgid "" "These are the operations that dictionaries support (and therefore, custom " "mapping types should support too):" msgstr "" -#: ../../library/stdtypes.rst:4146 +#: ../../library/stdtypes.rst:4148 msgid "Return a list of all the keys used in the dictionary *d*." msgstr "" -#: ../../library/stdtypes.rst:4150 +#: ../../library/stdtypes.rst:4152 msgid "Return the number of items in the dictionary *d*." msgstr "" -#: ../../library/stdtypes.rst:4154 +#: ../../library/stdtypes.rst:4156 msgid "" -"Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is" -" not in the map." +"Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is " +"not in the map." msgstr "" -#: ../../library/stdtypes.rst:4159 +#: ../../library/stdtypes.rst:4161 msgid "" "If a subclass of dict defines a method :meth:`__missing__` and *key* is not " "present, the ``d[key]`` operation calls that method with the key *key* as " "argument. The ``d[key]`` operation then returns or raises whatever is " "returned or raised by the ``__missing__(key)`` call. No other operations or " -"methods invoke :meth:`__missing__`. If :meth:`__missing__` is not defined, " -":exc:`KeyError` is raised. :meth:`__missing__` must be a method; it cannot " -"be an instance variable::" +"methods invoke :meth:`__missing__`. If :meth:`__missing__` is not defined, :" +"exc:`KeyError` is raised. :meth:`__missing__` must be a method; it cannot be " +"an instance variable::" msgstr "" +"Se uma subclasse de um dict define um método :meth:`__missing__` e *key* não " +"estiver presente, a operação ``d[key]`` chama aquele método com a chave " +"*key* como argumento. A operação ``d[key]`` então retorna ou levanta o que é " +"retornado ou levantado pela chamada de ``__missing__(key)``. Nenhuma " +"operação ou método invoca :meth:`__missing__`. Se :meth:`__missing__` não " +"for definido, então :exc:`KeyError` é levantado. :meth:`__missing__` deve " +"ser um método; ele não pode ser uma variável de instância::" -#: ../../library/stdtypes.rst:4177 +#: ../../library/stdtypes.rst:4179 msgid "" -"The example above shows part of the implementation of " -":class:`collections.Counter`. A different ``__missing__`` method is used by" -" :class:`collections.defaultdict`." +"The example above shows part of the implementation of :class:`collections." +"Counter`. A different ``__missing__`` method is used by :class:`collections." +"defaultdict`." msgstr "" -#: ../../library/stdtypes.rst:4183 +#: ../../library/stdtypes.rst:4185 msgid "Set ``d[key]`` to *value*." msgstr "Define ``d[key]`` para *value*." -#: ../../library/stdtypes.rst:4187 +#: ../../library/stdtypes.rst:4189 msgid "" -"Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the" -" map." +"Remove ``d[key]`` from *d*. Raises a :exc:`KeyError` if *key* is not in the " +"map." msgstr "" -"Remove ``d[key]`` desde o *d*. Levanta uma exceção :exc:`KeyError` se *key*" -" não estiver em map." +"Remove ``d[key]`` desde o *d*. Levanta uma exceção :exc:`KeyError` se *key* " +"não estiver em map." -#: ../../library/stdtypes.rst:4192 +#: ../../library/stdtypes.rst:4194 msgid "Return ``True`` if *d* has a key *key*, else ``False``." msgstr "Retorna ``True`` se *d* tiver uma chave *key*, senão ``False``." -#: ../../library/stdtypes.rst:4196 +#: ../../library/stdtypes.rst:4198 msgid "Equivalent to ``not key in d``." msgstr "Equivalente a ``not key in d``." -#: ../../library/stdtypes.rst:4200 +#: ../../library/stdtypes.rst:4202 msgid "" "Return an iterator over the keys of the dictionary. This is a shortcut for " "``iter(d.keys())``." msgstr "" -#: ../../library/stdtypes.rst:4205 +#: ../../library/stdtypes.rst:4207 msgid "Remove all items from the dictionary." msgstr "Remove todos os itens do dicionário." -#: ../../library/stdtypes.rst:4209 +#: ../../library/stdtypes.rst:4211 msgid "Return a shallow copy of the dictionary." msgstr "Retorna uma cópia superficial do dicionário." -#: ../../library/stdtypes.rst:4213 +#: ../../library/stdtypes.rst:4215 msgid "" "Create a new dictionary with keys from *iterable* and values set to *value*." msgstr "" -#: ../../library/stdtypes.rst:4215 +#: ../../library/stdtypes.rst:4217 msgid "" ":meth:`fromkeys` is a class method that returns a new dictionary. *value* " "defaults to ``None``." msgstr "" -#: ../../library/stdtypes.rst:4220 +#: ../../library/stdtypes.rst:4222 msgid "" -"Return the value for *key* if *key* is in the dictionary, else *default*. If" -" *default* is not given, it defaults to ``None``, so that this method never " +"Return the value for *key* if *key* is in the dictionary, else *default*. If " +"*default* is not given, it defaults to ``None``, so that this method never " "raises a :exc:`KeyError`." msgstr "" -#: ../../library/stdtypes.rst:4226 +#: ../../library/stdtypes.rst:4228 msgid "" "Return a new view of the dictionary's items (``(key, value)`` pairs). See " "the :ref:`documentation of view objects `." msgstr "" -#: ../../library/stdtypes.rst:4231 +#: ../../library/stdtypes.rst:4233 msgid "" "Return a new view of the dictionary's keys. See the :ref:`documentation of " "view objects `." msgstr "" -#: ../../library/stdtypes.rst:4236 +#: ../../library/stdtypes.rst:4238 msgid "" "If *key* is in the dictionary, remove it and return its value, else return " -"*default*. If *default* is not given and *key* is not in the dictionary, a " -":exc:`KeyError` is raised." +"*default*. If *default* is not given and *key* is not in the dictionary, a :" +"exc:`KeyError` is raised." msgstr "" -#: ../../library/stdtypes.rst:4242 +#: ../../library/stdtypes.rst:4244 msgid "" "Remove and return a ``(key, value)`` pair from the dictionary. Pairs are " "returned in :abbr:`LIFO (last-in, first-out)` order." msgstr "" -#: ../../library/stdtypes.rst:4245 +#: ../../library/stdtypes.rst:4247 msgid "" ":meth:`popitem` is useful to destructively iterate over a dictionary, as " -"often used in set algorithms. If the dictionary is empty, calling " -":meth:`popitem` raises a :exc:`KeyError`." +"often used in set algorithms. If the dictionary is empty, calling :meth:" +"`popitem` raises a :exc:`KeyError`." msgstr "" -#: ../../library/stdtypes.rst:4249 +#: ../../library/stdtypes.rst:4251 msgid "" "LIFO order is now guaranteed. In prior versions, :meth:`popitem` would " "return an arbitrary key/value pair." msgstr "" -#: ../../library/stdtypes.rst:4255 +#: ../../library/stdtypes.rst:4257 msgid "" "If *key* is in the dictionary, return its value. If not, insert *key* with " "a value of *default* and return *default*. *default* defaults to ``None``." msgstr "" -#: ../../library/stdtypes.rst:4261 +#: ../../library/stdtypes.rst:4263 msgid "" "Update the dictionary with the key/value pairs from *other*, overwriting " "existing keys. Return ``None``." msgstr "" -#: ../../library/stdtypes.rst:4264 +#: ../../library/stdtypes.rst:4266 msgid "" ":meth:`update` accepts either another dictionary object or an iterable of " "key/value pairs (as tuples or other iterables of length two). If keyword " -"arguments are specified, the dictionary is then updated with those key/value" -" pairs: ``d.update(red=1, blue=2)``." +"arguments are specified, the dictionary is then updated with those key/value " +"pairs: ``d.update(red=1, blue=2)``." msgstr "" -#: ../../library/stdtypes.rst:4271 +#: ../../library/stdtypes.rst:4273 msgid "" "Return a new view of the dictionary's values. See the :ref:`documentation " "of view objects `." msgstr "" -#: ../../library/stdtypes.rst:4274 +#: ../../library/stdtypes.rst:4276 msgid "" "An equality comparison between one ``dict.values()`` view and another will " "always return ``False``. This also applies when comparing ``dict.values()`` " "to itself::" msgstr "" -#: ../../library/stdtypes.rst:4282 +#: ../../library/stdtypes.rst:4284 msgid "" "Dictionaries compare equal if and only if they have the same ``(key, " -"value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>='," -" '>') raise :exc:`TypeError`." +"value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', " +"'>') raise :exc:`TypeError`." msgstr "" -#: ../../library/stdtypes.rst:4286 +#: ../../library/stdtypes.rst:4288 msgid "" "Dictionaries preserve insertion order. Note that updating a key does not " "affect the order. Keys added after deletion are inserted at the end. ::" msgstr "" -#: ../../library/stdtypes.rst:4304 +#: ../../library/stdtypes.rst:4306 msgid "" "Dictionary order is guaranteed to be insertion order. This behavior was an " "implementation detail of CPython from 3.6." msgstr "" -#: ../../library/stdtypes.rst:4309 +#: ../../library/stdtypes.rst:4311 msgid "" -":class:`types.MappingProxyType` can be used to create a read-only view of a " -":class:`dict`." +":class:`types.MappingProxyType` can be used to create a read-only view of a :" +"class:`dict`." msgstr "" -#: ../../library/stdtypes.rst:4316 +#: ../../library/stdtypes.rst:4318 msgid "Dictionary view objects" msgstr "" -#: ../../library/stdtypes.rst:4318 +#: ../../library/stdtypes.rst:4320 msgid "" -"The objects returned by :meth:`dict.keys`, :meth:`dict.values` and " -":meth:`dict.items` are *view objects*. They provide a dynamic view on the " -"dictionary's entries, which means that when the dictionary changes, the view" -" reflects these changes." +"The objects returned by :meth:`dict.keys`, :meth:`dict.values` and :meth:" +"`dict.items` are *view objects*. They provide a dynamic view on the " +"dictionary's entries, which means that when the dictionary changes, the view " +"reflects these changes." msgstr "" -#: ../../library/stdtypes.rst:4323 +#: ../../library/stdtypes.rst:4325 msgid "" "Dictionary views can be iterated over to yield their respective data, and " "support membership tests:" msgstr "" -#: ../../library/stdtypes.rst:4328 +#: ../../library/stdtypes.rst:4330 msgid "Return the number of entries in the dictionary." msgstr "" -#: ../../library/stdtypes.rst:4332 +#: ../../library/stdtypes.rst:4334 msgid "" "Return an iterator over the keys, values or items (represented as tuples of " "``(key, value)``) in the dictionary." msgstr "" -#: ../../library/stdtypes.rst:4335 +#: ../../library/stdtypes.rst:4337 msgid "" "Keys and values are iterated over in insertion order. This allows the " -"creation of ``(value, key)`` pairs using :func:`zip`: ``pairs = " -"zip(d.values(), d.keys())``. Another way to create the same list is ``pairs" -" = [(v, k) for (k, v) in d.items()]``." +"creation of ``(value, key)`` pairs using :func:`zip`: ``pairs = zip(d." +"values(), d.keys())``. Another way to create the same list is ``pairs = " +"[(v, k) for (k, v) in d.items()]``." msgstr "" -#: ../../library/stdtypes.rst:4340 +#: ../../library/stdtypes.rst:4342 msgid "" -"Iterating views while adding or deleting entries in the dictionary may raise" -" a :exc:`RuntimeError` or fail to iterate over all entries." +"Iterating views while adding or deleting entries in the dictionary may raise " +"a :exc:`RuntimeError` or fail to iterate over all entries." msgstr "" -#: ../../library/stdtypes.rst:4343 +#: ../../library/stdtypes.rst:4345 msgid "Dictionary order is guaranteed to be insertion order." msgstr "" -#: ../../library/stdtypes.rst:4348 +#: ../../library/stdtypes.rst:4350 msgid "" "Return ``True`` if *x* is in the underlying dictionary's keys, values or " "items (in the latter case, *x* should be a ``(key, value)`` tuple)." msgstr "" -#: ../../library/stdtypes.rst:4352 +#: ../../library/stdtypes.rst:4354 msgid "" -"Keys views are set-like since their entries are unique and hashable. If all" -" values are hashable, so that ``(key, value)`` pairs are unique and " -"hashable, then the items view is also set-like. (Values views are not " -"treated as set-like since the entries are generally not unique.) For set-" -"like views, all of the operations defined for the abstract base class " -":class:`collections.abc.Set` are available (for example, ``==``, ``<``, or " -"``^``)." +"Keys views are set-like since their entries are unique and hashable. If all " +"values are hashable, so that ``(key, value)`` pairs are unique and hashable, " +"then the items view is also set-like. (Values views are not treated as set-" +"like since the entries are generally not unique.) For set-like views, all " +"of the operations defined for the abstract base class :class:`collections." +"abc.Set` are available (for example, ``==``, ``<``, or ``^``)." msgstr "" +"Visões chave são similar a conjunto, como suas entradas são únicas e " +"hasheáveis. Se todos os valores são hasheáveis, de tal forma que os pares " +"``(chave, valor)`` são únicos e hasheáveis, então a visão dos items também é " +"um similar a conjunto. (Visões de valores não são tratadas de como similar a " +"conjunto, pois as entradas geralmente não são únicas.) Para visões similares " +"a conjunto, todas as operações definidas para a classe base abstrata :class:" +"`collections.abc.Set` estão disponíveis (por exemplo, ``==``, ``<``, ou " +"``^``)." -#: ../../library/stdtypes.rst:4359 +#: ../../library/stdtypes.rst:4361 msgid "An example of dictionary view usage::" msgstr "Um exemplo da utilização da visualização de dicionário::" -#: ../../library/stdtypes.rst:4394 +#: ../../library/stdtypes.rst:4396 msgid "Context Manager Types" msgstr "Tipos de Gerenciador de Contexto" -#: ../../library/stdtypes.rst:4401 +#: ../../library/stdtypes.rst:4403 msgid "" -"Python's :keyword:`with` statement supports the concept of a runtime context" -" defined by a context manager. This is implemented using a pair of methods " +"Python's :keyword:`with` statement supports the concept of a runtime context " +"defined by a context manager. This is implemented using a pair of methods " "that allow user-defined classes to define a runtime context that is entered " "before the statement body is executed and exited when the statement ends:" msgstr "" +"A instrução :keyword:`with` do Python suporta o conceito de um contexto em " +"tempo de execução definido por um gerenciador de contexto. Isto é " +"implementado usando um par de métodos, que permitem que classes definidas " +"pelo usuário especifiquem um contexto em tempo de execução, o qual é " +"inicializado antes da execução das instruções, e encerrado quando as " +"instruções terminam:" -#: ../../library/stdtypes.rst:4409 +#: ../../library/stdtypes.rst:4411 msgid "" "Enter the runtime context and return either this object or another object " "related to the runtime context. The value returned by this method is bound " -"to the identifier in the :keyword:`!as` clause of :keyword:`with` statements" -" using this context manager." +"to the identifier in the :keyword:`!as` clause of :keyword:`with` statements " +"using this context manager." msgstr "" +"Entra no contexto em tempo de execução e retorna este objeto ou outro objeto " +"relacionado ao contexto em tempo de execução. O valor retornado por este " +"método é ligado ao identificador na cláusula :keyword:`!as` da instrução :" +"keyword:`with` usando este gerenciador de contexto." -#: ../../library/stdtypes.rst:4414 +#: ../../library/stdtypes.rst:4416 msgid "" "An example of a context manager that returns itself is a :term:`file " -"object`. File objects return themselves from __enter__() to allow " -":func:`open` to be used as the context expression in a :keyword:`with` " -"statement." +"object`. File objects return themselves from __enter__() to allow :func:" +"`open` to be used as the context expression in a :keyword:`with` statement." msgstr "" +"Um exmplo de gerenciador de contexto que retorna a si mesmo é um :term:" +"`objeto arquivo `. Objeto arquivos retornam a si mesmos do " +"método __enter__() para permitir que :func:`open` seja usado como a " +"expressão de contexto em uma instrução :keyword:`with`." -#: ../../library/stdtypes.rst:4418 +#: ../../library/stdtypes.rst:4420 msgid "" "An example of a context manager that returns a related object is the one " "returned by :func:`decimal.localcontext`. These managers set the active " "decimal context to a copy of the original decimal context and then return " "the copy. This allows changes to be made to the current decimal context in " -"the body of the :keyword:`with` statement without affecting code outside the" -" :keyword:`!with` statement." +"the body of the :keyword:`with` statement without affecting code outside " +"the :keyword:`!with` statement." msgstr "" +"Um exemplo de gerenciador de contexto que retorna um objeto relacionado é " +"aquele retornado por :func:`decimal.localcontext`. Esses gerenciadores " +"definem o contexto decimal ativo para uma cópia do contexto decimal " +"original, e então retornam a cópia. Isso permite que mudanças sejam feitas " +"no contexto decimal atual, no corpo contido na instrução :keyword:`with`, " +"sem afetar o código fora da instrução :keyword:`!with`." -#: ../../library/stdtypes.rst:4428 +#: ../../library/stdtypes.rst:4430 msgid "" "Exit the runtime context and return a Boolean flag indicating if any " -"exception that occurred should be suppressed. If an exception occurred while" -" executing the body of the :keyword:`with` statement, the arguments contain " +"exception that occurred should be suppressed. If an exception occurred while " +"executing the body of the :keyword:`with` statement, the arguments contain " "the exception type, value and traceback information. Otherwise, all three " "arguments are ``None``." msgstr "" +"Sai do contexto em tempo de execução e retorna um flag Booleano indicando se " +"qualquer exceção que ocorreu deve ser suprimida. Se uma exceção ocorreu " +"enquanto era executado o corpo da instrução :keyword:`with`, os argumentos " +"contém o tipo da exceção, valor e informação da pilha de execução. Caso " +"contrário, os tres argumentos são ``None``." -#: ../../library/stdtypes.rst:4433 +#: ../../library/stdtypes.rst:4435 msgid "" "Returning a true value from this method will cause the :keyword:`with` " "statement to suppress the exception and continue execution with the " @@ -5489,17 +6187,28 @@ msgid "" "replace any exception that occurred in the body of the :keyword:`!with` " "statement." msgstr "" +"Retornar um valor verdadeiro deste método fará com que a instrução :keyword:" +"`with` suprima a exceção e continue a execução com a instrução imediatamente " +"após a instrução :keyword:`!with`. Caso contrário a exceção continuará " +"propagando após este método ter encerrado sua execução. Exceções que " +"ocorrerem durante a execução deste método irão substituir qualquer exceção " +"que tenha ocorrido dentro do corpo da instrução :keyword:`!with`." -#: ../../library/stdtypes.rst:4440 +#: ../../library/stdtypes.rst:4442 msgid "" "The exception passed in should never be reraised explicitly - instead, this " "method should return a false value to indicate that the method completed " -"successfully and does not want to suppress the raised exception. This allows" -" context management code to easily detect whether or not an :meth:`__exit__`" -" method has actually failed." +"successfully and does not want to suppress the raised exception. This allows " +"context management code to easily detect whether or not an :meth:`__exit__` " +"method has actually failed." msgstr "" +"A exceção passada nunca deve ser re-levantada explicitamente - ao invés " +"disso, este método deve retornar um valor falso para indicar que o método " +"completou sua execução com sucesso, e não quer suprimir a exceção levantada. " +"Isso permite ao código do gerenciador de contexto facilmente detectar se um " +"método :meth:`__exit__` realmente falhou ou não." -#: ../../library/stdtypes.rst:4446 +#: ../../library/stdtypes.rst:4448 msgid "" "Python defines several context managers to support easy thread " "synchronisation, prompt closure of files or other objects, and simpler " @@ -5507,88 +6216,128 @@ msgid "" "are not treated specially beyond their implementation of the context " "management protocol. See the :mod:`contextlib` module for some examples." msgstr "" +"Python define diversos genreciadores de contexto para suportar facilmente " +"sincronização de threads, solicita fechamento de arquivos ou outros " +"objectos, e manipulação simples do contexto ativo de aritmética decimal. Os " +"tipos especificados não são tratados especialmente além da sua implementação " +"do protocolo do gerenciador de contexto. Veja o módulo :mod:`contextlib` " +"para alguns exemplos." -#: ../../library/stdtypes.rst:4452 +#: ../../library/stdtypes.rst:4454 msgid "" "Python's :term:`generator`\\s and the :class:`contextlib.contextmanager` " "decorator provide a convenient way to implement these protocols. If a " "generator function is decorated with the :class:`contextlib.contextmanager` " -"decorator, it will return a context manager implementing the necessary " -":meth:`__enter__` and :meth:`__exit__` methods, rather than the iterator " -"produced by an undecorated generator function." +"decorator, it will return a context manager implementing the necessary :meth:" +"`__enter__` and :meth:`__exit__` methods, rather than the iterator produced " +"by an undecorated generator function." msgstr "" +"Os :term:`geradores ` do python e o decorador :class:`contextlib." +"contextmanager` fornecem um modo conveniente de implementar estes " +"protocolos. Se uma função geradora é decorada com o decorador :class:" +"`contextlib.contextmanager`, ela irá retornar um gerenciador de contexto que " +"implementa os métodos :meth:`__enter__` e :meth:`__exit__` necessários, ao " +"invés do iterador produzido por uma função geradora não decorada." -#: ../../library/stdtypes.rst:4459 +#: ../../library/stdtypes.rst:4461 msgid "" "Note that there is no specific slot for any of these methods in the type " -"structure for Python objects in the Python/C API. Extension types wanting to" -" define these methods must provide them as a normal Python accessible " -"method. Compared to the overhead of setting up the runtime context, the " -"overhead of a single class dictionary lookup is negligible." -msgstr "" +"structure for Python objects in the Python/C API. Extension types wanting to " +"define these methods must provide them as a normal Python accessible method. " +"Compared to the overhead of setting up the runtime context, the overhead of " +"a single class dictionary lookup is negligible." +msgstr "" +"Perceba que não existe nenhum slot específico para qualquer um desses " +"métodos no tipo structure para objetos Python na API do Python/C. Tipos de " +"extensão que desejam definir estes métodos devem fornecê-los como um método " +"acessível normal do Python. Comparado com a sobrecarga de configurar o " +"contexto em tempo de execução, a sobrecarga na pesquisa de dicionário em uma " +"única classe é negligenciável." -#: ../../library/stdtypes.rst:4469 +#: ../../library/stdtypes.rst:4471 msgid "Other Built-in Types" -msgstr "" +msgstr "Outros tipos embutidos" -#: ../../library/stdtypes.rst:4471 +#: ../../library/stdtypes.rst:4473 msgid "" "The interpreter supports several other kinds of objects. Most of these " "support only one or two operations." msgstr "" +"O interpretador suporta diversos outros tipos de objetos. Maior parte " +"desses, suporta apenas uma ou duas operações." -#: ../../library/stdtypes.rst:4478 +#: ../../library/stdtypes.rst:4480 msgid "Modules" msgstr "Módulos" -#: ../../library/stdtypes.rst:4480 +#: ../../library/stdtypes.rst:4482 msgid "" "The only special operation on a module is attribute access: ``m.name``, " "where *m* is a module and *name* accesses a name defined in *m*'s symbol " -"table. Module attributes can be assigned to. (Note that the " -":keyword:`import` statement is not, strictly speaking, an operation on a " -"module object; ``import foo`` does not require a module object named *foo* " -"to exist, rather it requires an (external) *definition* for a module named " +"table. Module attributes can be assigned to. (Note that the :keyword:" +"`import` statement is not, strictly speaking, an operation on a module " +"object; ``import foo`` does not require a module object named *foo* to " +"exist, rather it requires an (external) *definition* for a module named " "*foo* somewhere.)" msgstr "" +"A única operação especial em um módulo é o acesso a um atributo: ``m.nome``, " +"onde *m* é um módulo e *nome* acessa o nome defino na tabela de símbolos de " +"*m*. Atributos de módulo podem receber atribuição. (Perceba que a instrução :" +"keyword:`import` não é, estritamente falando, uma operação em um objeto do " +"módulo; ``import foo`` não requer que um objeto do módulo chamado *foo* " +"exista, ao invés disso requer uma *definição* (externa) de um módulo chamado " +"*foo* em algum lugar.)" + +#: ../../library/stdtypes.rst:4489 +msgid "" +"A special attribute of every module is :attr:`~object.__dict__`. This is the " +"dictionary containing the module's symbol table. Modifying this dictionary " +"will actually change the module's symbol table, but direct assignment to " +"the :attr:`~object.__dict__` attribute is not possible (you can write ``m." +"__dict__['a'] = 1``, which defines ``m.a`` to be ``1``, but you can't write " +"``m.__dict__ = {}``). Modifying :attr:`~object.__dict__` directly is not " +"recommended." +msgstr "" +"Um atributo especial de cada módulo é :attr:`~object.__dict__`. Este é o " +"dicionário contendo a tabela de símbolos do modulo. Modificar este " +"dicionário vai na verdade modificar a tabela de símbolos do módulo, mas " +"atribuição direta para o atributo :attr:`~object.__dict__` não é possível " +"(você pode escrever ``m.__dict__['a'] = 1``, o qual define ``m.a`` para ser " +"``1``, mas você não consegue escrever ``m.__dict__ = {}``). Modificar :attr:" +"`~object.__dict__` diretamente não é recomendado." + +#: ../../library/stdtypes.rst:4497 +msgid "" +"Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````." +msgstr "" +"Módulos embutidos no interpretador são escritos desta forma: ````. Se carregados a partir de um arquivo, eles são escritos " +"como ````." -#: ../../library/stdtypes.rst:4487 -msgid "" -"A special attribute of every module is :attr:`~object.__dict__`. This is the" -" dictionary containing the module's symbol table. Modifying this dictionary " -"will actually change the module's symbol table, but direct assignment to the" -" :attr:`~object.__dict__` attribute is not possible (you can write " -"``m.__dict__['a'] = 1``, which defines ``m.a`` to be ``1``, but you can't " -"write ``m.__dict__ = {}``). Modifying :attr:`~object.__dict__` directly is " -"not recommended." -msgstr "" - -#: ../../library/stdtypes.rst:4495 -msgid "" -"Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````." -msgstr "" - -#: ../../library/stdtypes.rst:4503 +#: ../../library/stdtypes.rst:4505 msgid "Classes and Class Instances" msgstr "Classes e Instâncias de Classes" -#: ../../library/stdtypes.rst:4505 +#: ../../library/stdtypes.rst:4507 msgid "See :ref:`objects` and :ref:`class` for these." msgstr "Veja :ref:`objects` e :ref:`class` para estes." -#: ../../library/stdtypes.rst:4511 +#: ../../library/stdtypes.rst:4513 msgid "Functions" msgstr "Funções" -#: ../../library/stdtypes.rst:4513 +#: ../../library/stdtypes.rst:4515 msgid "" -"Function objects are created by function definitions. The only operation on" -" a function object is to call it: ``func(argument-list)``." +"Function objects are created by function definitions. The only operation on " +"a function object is to call it: ``func(argument-list)``." msgstr "" +"Objetos de funções são criados através da definição de funções. A única " +"operação que pode ser feita em um objeto de função é chamá-la: ``func(lista-" +"de-argumentos)``." -#: ../../library/stdtypes.rst:4516 +#: ../../library/stdtypes.rst:4518 msgid "" "There are really two flavors of function objects: built-in functions and " "user-defined functions. Both support the same operation (to call the " @@ -5596,15 +6345,15 @@ msgid "" "types." msgstr "" -#: ../../library/stdtypes.rst:4520 +#: ../../library/stdtypes.rst:4522 msgid "See :ref:`function` for more information." msgstr "Veja a funçao :ref:`function` para maiores informações." -#: ../../library/stdtypes.rst:4526 +#: ../../library/stdtypes.rst:4528 msgid "Methods" msgstr "Métodos" -#: ../../library/stdtypes.rst:4530 +#: ../../library/stdtypes.rst:4532 msgid "" "Methods are functions that are called using the attribute notation. There " "are two flavors: built-in methods (such as :meth:`append` on lists) and " @@ -5612,227 +6361,242 @@ msgid "" "support them." msgstr "" -#: ../../library/stdtypes.rst:4535 +#: ../../library/stdtypes.rst:4537 msgid "" "If you access a method (a function defined in a class namespace) through an " -"instance, you get a special object: a :dfn:`bound method` (also called " -":dfn:`instance method`) object. When called, it will add the ``self`` " -"argument to the argument list. Bound methods have two special read-only " -"attributes: ``m.__self__`` is the object on which the method operates, and " -"``m.__func__`` is the function implementing the method. Calling ``m(arg-1, " -"arg-2, ..., arg-n)`` is completely equivalent to calling " -"``m.__func__(m.__self__, arg-1, arg-2, ..., arg-n)``." -msgstr "" - -#: ../../library/stdtypes.rst:4544 +"instance, you get a special object: a :dfn:`bound method` (also called :dfn:" +"`instance method`) object. When called, it will add the ``self`` argument to " +"the argument list. Bound methods have two special read-only attributes: ``m." +"__self__`` is the object on which the method operates, and ``m.__func__`` is " +"the function implementing the method. Calling ``m(arg-1, arg-2, ..., arg-" +"n)`` is completely equivalent to calling ``m.__func__(m.__self__, arg-1, " +"arg-2, ..., arg-n)``." +msgstr "" +"Se você acessar um método (uma função definida em um espaço de nomes de uma " +"classe) através de uma instância, você obtém um objeto especial: um objeto :" +"dfn:`bound method` (também chamado de :dfn:`método de instância`). Quando " +"chamado, ele irá adicionar o argumento ``self`` para a lista de argumentos. " +"Bound methods tem dois atributos somente leitura especiais: ``m.__self__`` é " +"o objeto no qual o método opera, e ``m.__func__`` é a função que implementa " +"o método. Chamar ``m(arg-1, arg-2, ..., arg-n)`` é completamente equivalente " +"a chamar ``m.__func__(m.__self__, arg-1, arg-2, ..., arg-n)``." + +#: ../../library/stdtypes.rst:4546 msgid "" "Like function objects, bound method objects support getting arbitrary " "attributes. However, since method attributes are actually stored on the " -"underlying function object (``meth.__func__``), setting method attributes on" -" bound methods is disallowed. Attempting to set an attribute on a method " +"underlying function object (``meth.__func__``), setting method attributes on " +"bound methods is disallowed. Attempting to set an attribute on a method " "results in an :exc:`AttributeError` being raised. In order to set a method " "attribute, you need to explicitly set it on the underlying function object::" msgstr "" +"Assim como objetos função, objetos de métodos vinculados tem suporte para " +"receber atributos arbitrários. Entretanto, como atributos de métodos na " +"verdade são armazenados no objeto função subjacente (``meth.__func__``), " +"definir atributos de métodos em métodos vinculados não é permitido. Tentar " +"definir um atributo em um método resulta em um :exc:`AttributeError` sendo " +"levantado. A fim de definir um atributo de método, você precisa definir " +"explicitamente ele no objeto função subjacente::" -#: ../../library/stdtypes.rst:4564 ../../library/stdtypes.rst:4592 +#: ../../library/stdtypes.rst:4566 ../../library/stdtypes.rst:4594 msgid "See :ref:`types` for more information." msgstr "Veja o tipo :ref:`types` para maiores informações." -#: ../../library/stdtypes.rst:4572 +#: ../../library/stdtypes.rst:4574 msgid "Code Objects" msgstr "Objetos de Código" -#: ../../library/stdtypes.rst:4578 +#: ../../library/stdtypes.rst:4580 msgid "" -"Code objects are used by the implementation to represent \"pseudo-compiled\"" -" executable Python code such as a function body. They differ from function " +"Code objects are used by the implementation to represent \"pseudo-compiled\" " +"executable Python code such as a function body. They differ from function " "objects because they don't contain a reference to their global execution " "environment. Code objects are returned by the built-in :func:`compile` " -"function and can be extracted from function objects through their " -":attr:`__code__` attribute. See also the :mod:`code` module." +"function and can be extracted from function objects through their :attr:" +"`__code__` attribute. See also the :mod:`code` module." msgstr "" -#: ../../library/stdtypes.rst:4589 +#: ../../library/stdtypes.rst:4591 msgid "" "A code object can be executed or evaluated by passing it (instead of a " "source string) to the :func:`exec` or :func:`eval` built-in functions." msgstr "" -#: ../../library/stdtypes.rst:4598 +#: ../../library/stdtypes.rst:4600 msgid "Type Objects" msgstr "Objetos de tipo" -#: ../../library/stdtypes.rst:4604 +#: ../../library/stdtypes.rst:4606 msgid "" "Type objects represent the various object types. An object's type is " "accessed by the built-in function :func:`type`. There are no special " -"operations on types. The standard module :mod:`types` defines names for all" -" standard built-in types." +"operations on types. The standard module :mod:`types` defines names for all " +"standard built-in types." msgstr "" -#: ../../library/stdtypes.rst:4609 +#: ../../library/stdtypes.rst:4611 msgid "Types are written like this: ````." msgstr "" -#: ../../library/stdtypes.rst:4615 +#: ../../library/stdtypes.rst:4617 msgid "The Null Object" msgstr "O objeto Null" -#: ../../library/stdtypes.rst:4617 +#: ../../library/stdtypes.rst:4619 msgid "" "This object is returned by functions that don't explicitly return a value. " "It supports no special operations. There is exactly one null object, named " "``None`` (a built-in name). ``type(None)()`` produces the same singleton." msgstr "" -#: ../../library/stdtypes.rst:4621 +#: ../../library/stdtypes.rst:4623 msgid "It is written as ``None``." msgstr "" -#: ../../library/stdtypes.rst:4628 +#: ../../library/stdtypes.rst:4630 msgid "The Ellipsis Object" msgstr "O Objeto Ellipsis" -#: ../../library/stdtypes.rst:4630 +#: ../../library/stdtypes.rst:4632 msgid "" "This object is commonly used by slicing (see :ref:`slicings`). It supports " -"no special operations. There is exactly one ellipsis object, named " -":const:`Ellipsis` (a built-in name). ``type(Ellipsis)()`` produces the " -":const:`Ellipsis` singleton." +"no special operations. There is exactly one ellipsis object, named :const:" +"`Ellipsis` (a built-in name). ``type(Ellipsis)()`` produces the :const:" +"`Ellipsis` singleton." msgstr "" -#: ../../library/stdtypes.rst:4635 +#: ../../library/stdtypes.rst:4637 msgid "It is written as ``Ellipsis`` or ``...``." msgstr "Está escrito com ``Ellipsis`` ou ``...``." -#: ../../library/stdtypes.rst:4641 +#: ../../library/stdtypes.rst:4643 msgid "The NotImplemented Object" msgstr "O Objeto NotImplemented" -#: ../../library/stdtypes.rst:4643 +#: ../../library/stdtypes.rst:4645 msgid "" -"This object is returned from comparisons and binary operations when they are" -" asked to operate on types they don't support. See :ref:`comparisons` for " +"This object is returned from comparisons and binary operations when they are " +"asked to operate on types they don't support. See :ref:`comparisons` for " "more information. There is exactly one ``NotImplemented`` object. " "``type(NotImplemented)()`` produces the singleton instance." msgstr "" -#: ../../library/stdtypes.rst:4648 +#: ../../library/stdtypes.rst:4650 msgid "It is written as ``NotImplemented``." msgstr "Está escrito como ``NotImplemented``." -#: ../../library/stdtypes.rst:4654 +#: ../../library/stdtypes.rst:4656 msgid "Boolean Values" msgstr "Valores Booleanos" -#: ../../library/stdtypes.rst:4656 +#: ../../library/stdtypes.rst:4658 msgid "" "Boolean values are the two constant objects ``False`` and ``True``. They " "are used to represent truth values (although other values can also be " "considered false or true). In numeric contexts (for example when used as " -"the argument to an arithmetic operator), they behave like the integers 0 and" -" 1, respectively. The built-in function :func:`bool` can be used to convert " +"the argument to an arithmetic operator), they behave like the integers 0 and " +"1, respectively. The built-in function :func:`bool` can be used to convert " "any value to a Boolean, if the value can be interpreted as a truth value " "(see section :ref:`truth` above)." msgstr "" -#: ../../library/stdtypes.rst:4669 +#: ../../library/stdtypes.rst:4671 msgid "They are written as ``False`` and ``True``, respectively." msgstr "Eles são escritos como ``False`` e ``True``, respectivamente." -#: ../../library/stdtypes.rst:4675 +#: ../../library/stdtypes.rst:4677 msgid "Internal Objects" msgstr "Objetos Internos" -#: ../../library/stdtypes.rst:4677 +#: ../../library/stdtypes.rst:4679 msgid "" "See :ref:`types` for this information. It describes stack frame objects, " "traceback objects, and slice objects." msgstr "" -#: ../../library/stdtypes.rst:4684 +#: ../../library/stdtypes.rst:4686 msgid "Special Attributes" msgstr "Atributos Especiais" -#: ../../library/stdtypes.rst:4686 +#: ../../library/stdtypes.rst:4688 msgid "" -"The implementation adds a few special read-only attributes to several object" -" types, where they are relevant. Some of these are not reported by the " -":func:`dir` built-in function." +"The implementation adds a few special read-only attributes to several object " +"types, where they are relevant. Some of these are not reported by the :func:" +"`dir` built-in function." msgstr "" -#: ../../library/stdtypes.rst:4693 +#: ../../library/stdtypes.rst:4695 msgid "" "A dictionary or other mapping object used to store an object's (writable) " "attributes." msgstr "" -#: ../../library/stdtypes.rst:4699 +#: ../../library/stdtypes.rst:4701 msgid "The class to which a class instance belongs." msgstr "A classe à qual pertence uma instância de classe." -#: ../../library/stdtypes.rst:4704 +#: ../../library/stdtypes.rst:4706 msgid "The tuple of base classes of a class object." msgstr "" -#: ../../library/stdtypes.rst:4709 +#: ../../library/stdtypes.rst:4711 msgid "" "The name of the class, function, method, descriptor, or generator instance." msgstr "" -#: ../../library/stdtypes.rst:4715 +#: ../../library/stdtypes.rst:4717 msgid "" "The :term:`qualified name` of the class, function, method, descriptor, or " "generator instance." msgstr "" -#: ../../library/stdtypes.rst:4723 +#: ../../library/stdtypes.rst:4725 msgid "" "This attribute is a tuple of classes that are considered when looking for " "base classes during method resolution." msgstr "" -#: ../../library/stdtypes.rst:4729 +#: ../../library/stdtypes.rst:4731 msgid "" "This method can be overridden by a metaclass to customize the method " "resolution order for its instances. It is called at class instantiation, " "and its result is stored in :attr:`~class.__mro__`." msgstr "" -#: ../../library/stdtypes.rst:4736 +#: ../../library/stdtypes.rst:4738 msgid "" "Each class keeps a list of weak references to its immediate subclasses. " "This method returns a list of all those references still alive. Example::" msgstr "" -#: ../../library/stdtypes.rst:4745 +#: ../../library/stdtypes.rst:4747 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../library/stdtypes.rst:4746 +#: ../../library/stdtypes.rst:4748 msgid "" "Additional information on these special methods may be found in the Python " "Reference Manual (:ref:`customization`)." msgstr "" -#: ../../library/stdtypes.rst:4749 +#: ../../library/stdtypes.rst:4751 msgid "" -"As a consequence, the list ``[1, 2]`` is considered equal to ``[1.0, 2.0]``," -" and similarly for tuples." +"As a consequence, the list ``[1, 2]`` is considered equal to ``[1.0, 2.0]``, " +"and similarly for tuples." msgstr "" -#: ../../library/stdtypes.rst:4752 +#: ../../library/stdtypes.rst:4754 msgid "They must have since the parser can't tell the type of the operands." msgstr "" -#: ../../library/stdtypes.rst:4754 +#: ../../library/stdtypes.rst:4756 msgid "" -"Cased characters are those with general category property being one of " -"\"Lu\" (Letter, uppercase), \"Ll\" (Letter, lowercase), or \"Lt\" (Letter, " +"Cased characters are those with general category property being one of \"Lu" +"\" (Letter, uppercase), \"Ll\" (Letter, lowercase), or \"Lt\" (Letter, " "titlecase)." msgstr "" -#: ../../library/stdtypes.rst:4757 +#: ../../library/stdtypes.rst:4759 msgid "" "To format only a tuple you should therefore provide a singleton tuple whose " "only element is the tuple to be formatted." diff --git a/library/string.po b/library/string.po index 06a7630f8..428e4ce03 100644 --- a/library/string.po +++ b/library/string.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Adson Rodrigues , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-14 03:28+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,9 +53,9 @@ msgstr "As constantes definidas neste módulo são:" #: ../../library/string.rst:25 msgid "" -"The concatenation of the :const:`ascii_lowercase` and " -":const:`ascii_uppercase` constants described below. This value is not " -"locale-dependent." +"The concatenation of the :const:`ascii_lowercase` and :const:" +"`ascii_uppercase` constants described below. This value is not locale-" +"dependent." msgstr "" #: ../../library/string.rst:31 @@ -89,8 +91,8 @@ msgstr "" #: ../../library/string.rst:64 msgid "" "String of ASCII characters which are considered printable. This is a " -"combination of :const:`digits`, :const:`ascii_letters`, " -":const:`punctuation`, and :const:`whitespace`." +"combination of :const:`digits`, :const:`ascii_letters`, :const:" +"`punctuation`, and :const:`whitespace`." msgstr "" #: ../../library/string.rst:71 @@ -108,8 +110,8 @@ msgstr "" msgid "" "The built-in string class provides the ability to do complex variable " "substitutions and value formatting via the :meth:`~str.format` method " -"described in :pep:`3101`. The :class:`Formatter` class in the :mod:`string`" -" module allows you to create and customize your own string formatting " +"described in :pep:`3101`. The :class:`Formatter` class in the :mod:`string` " +"module allows you to create and customize your own string formatting " "behaviors using the same implementation as the built-in :meth:`~str.format` " "method." msgstr "" @@ -121,8 +123,8 @@ msgstr "" #: ../../library/string.rst:94 msgid "" "The primary API method. It takes a format string and an arbitrary set of " -"positional and keyword arguments. It is just a wrapper that calls " -":meth:`vformat`." +"positional and keyword arguments. It is just a wrapper that calls :meth:" +"`vformat`." msgstr "" #: ../../library/string.rst:98 @@ -136,10 +138,9 @@ msgid "" "This function does the actual work of formatting. It is exposed as a " "separate function for cases where you want to pass in a predefined " "dictionary of arguments, rather than unpacking and repacking the dictionary " -"as individual arguments using the ``*args`` and ``**kwargs`` syntax. " -":meth:`vformat` does the work of breaking up the format string into " -"character data and replacement fields. It calls the various methods " -"described below." +"as individual arguments using the ``*args`` and ``**kwargs`` syntax. :meth:" +"`vformat` does the work of breaking up the format string into character data " +"and replacement fields. It calls the various methods described below." msgstr "" #: ../../library/string.rst:112 @@ -171,24 +172,24 @@ msgid "" "Given *field_name* as returned by :meth:`parse` (see above), convert it to " "an object to be formatted. Returns a tuple (obj, used_key). The default " "version takes strings of the form defined in :pep:`3101`, such as " -"\"0[name]\" or \"label.title\". *args* and *kwargs* are as passed in to " -":meth:`vformat`. The return value *used_key* has the same meaning as the " +"\"0[name]\" or \"label.title\". *args* and *kwargs* are as passed in to :" +"meth:`vformat`. The return value *used_key* has the same meaning as the " "*key* parameter to :meth:`get_value`." msgstr "" #: ../../library/string.rst:140 msgid "" "Retrieve a given field value. The *key* argument will be either an integer " -"or a string. If it is an integer, it represents the index of the positional" -" argument in *args*; if it is a string, then it represents a named argument " +"or a string. If it is an integer, it represents the index of the positional " +"argument in *args*; if it is a string, then it represents a named argument " "in *kwargs*." msgstr "" #: ../../library/string.rst:145 msgid "" -"The *args* parameter is set to the list of positional arguments to " -":meth:`vformat`, and the *kwargs* parameter is set to the dictionary of " -"keyword arguments." +"The *args* parameter is set to the list of positional arguments to :meth:" +"`vformat`, and the *kwargs* parameter is set to the dictionary of keyword " +"arguments." msgstr "" #: ../../library/string.rst:149 @@ -202,14 +203,14 @@ msgstr "" msgid "" "So for example, the field expression '0.name' would cause :meth:`get_value` " "to be called with a *key* argument of 0. The ``name`` attribute will be " -"looked up after :meth:`get_value` returns by calling the built-in " -":func:`getattr` function." +"looked up after :meth:`get_value` returns by calling the built-in :func:" +"`getattr` function." msgstr "" #: ../../library/string.rst:158 msgid "" -"If the index or keyword refers to an item that does not exist, then an " -":exc:`IndexError` or :exc:`KeyError` should be raised." +"If the index or keyword refers to an item that does not exist, then an :exc:" +"`IndexError` or :exc:`KeyError` should be raised." msgstr "" #: ../../library/string.rst:163 @@ -218,9 +219,8 @@ msgid "" "function is the set of all argument keys that were actually referred to in " "the format string (integers for positional arguments, and strings for named " "arguments), and a reference to the *args* and *kwargs* that was passed to " -"vformat. The set of unused args can be calculated from these parameters. " -":meth:`check_unused_args` is assumed to raise an exception if the check " -"fails." +"vformat. The set of unused args can be calculated from these parameters. :" +"meth:`check_unused_args` is assumed to raise an exception if the check fails." msgstr "" #: ../../library/string.rst:173 @@ -232,8 +232,8 @@ msgstr "" #: ../../library/string.rst:178 msgid "" "Converts the value (returned by :meth:`get_field`) given a conversion type " -"(as in the tuple returned by the :meth:`parse` method). The default version" -" understands 's' (str), 'r' (repr) and 'a' (ascii) conversion types." +"(as in the tuple returned by the :meth:`parse` method). The default version " +"understands 's' (str), 'r' (repr) and 'a' (ascii) conversion types." msgstr "" #: ../../library/string.rst:187 @@ -251,11 +251,11 @@ msgstr "" #: ../../library/string.rst:202 msgid "" -"Format strings contain \"replacement fields\" surrounded by curly braces " -"``{}``. Anything that is not contained in braces is considered literal text," -" which is copied unchanged to the output. If you need to include a brace " -"character in the literal text, it can be escaped by doubling: ``{{`` and " -"``}}``." +"Format strings contain \"replacement fields\" surrounded by curly braces ``{}" +"``. Anything that is not contained in braces is considered literal text, " +"which is copied unchanged to the output. If you need to include a brace " +"character in the literal text, it can be escaped by doubling: ``{{`` and ``}}" +"``." msgstr "" #: ../../library/string.rst:207 @@ -267,8 +267,8 @@ msgid "" "In less formal terms, the replacement field can start with a *field_name* " "that specifies the object whose value is to be formatted and inserted into " "the output instead of the replacement field. The *field_name* is optionally " -"followed by a *conversion* field, which is preceded by an exclamation point" -" ``'!'``, and a *format_spec*, which is preceded by a colon ``':'``. These " +"followed by a *conversion* field, which is preceded by an exclamation point " +"``'!'``, and a *format_spec*, which is preceded by a colon ``':'``. These " "specify a non-default format for the replacement value." msgstr "" @@ -278,24 +278,24 @@ msgstr "" #: ../../library/string.rst:228 msgid "" -"The *field_name* itself begins with an *arg_name* that is either a number or" -" a keyword. If it's a number, it refers to a positional argument, and if " +"The *field_name* itself begins with an *arg_name* that is either a number or " +"a keyword. If it's a number, it refers to a positional argument, and if " "it's a keyword, it refers to a named keyword argument. If the numerical " "arg_names in a format string are 0, 1, 2, ... in sequence, they can all be " "omitted (not just some) and the numbers 0, 1, 2, ... will be automatically " -"inserted in that order. Because *arg_name* is not quote-delimited, it is not" -" possible to specify arbitrary dictionary keys (e.g., the strings ``'10'`` " -"or ``':-]'``) within a format string. The *arg_name* can be followed by any " -"number of index or attribute expressions. An expression of the form " -"``'.name'`` selects the named attribute using :func:`getattr`, while an " -"expression of the form ``'[index]'`` does an index lookup using " -":func:`__getitem__`." +"inserted in that order. Because *arg_name* is not quote-delimited, it is not " +"possible to specify arbitrary dictionary keys (e.g., the strings ``'10'`` or " +"``':-]'``) within a format string. The *arg_name* can be followed by any " +"number of index or attribute expressions. An expression of the form ``'." +"name'`` selects the named attribute using :func:`getattr`, while an " +"expression of the form ``'[index]'`` does an index lookup using :func:" +"`__getitem__`." msgstr "" #: ../../library/string.rst:240 msgid "" -"The positional argument specifiers can be omitted for :meth:`str.format`, so" -" ``'{} {}'.format(a, b)`` is equivalent to ``'{0} {1}'.format(a, b)``." +"The positional argument specifiers can be omitted for :meth:`str.format`, so " +"``'{} {}'.format(a, b)`` is equivalent to ``'{0} {1}'.format(a, b)``." msgstr "" #: ../../library/string.rst:244 @@ -311,17 +311,17 @@ msgstr "" msgid "" "The *conversion* field causes a type coercion before formatting. Normally, " "the job of formatting a value is done by the :meth:`__format__` method of " -"the value itself. However, in some cases it is desirable to force a type to" -" be formatted as a string, overriding its own definition of formatting. By " +"the value itself. However, in some cases it is desirable to force a type to " +"be formatted as a string, overriding its own definition of formatting. By " "converting the value to a string before calling :meth:`__format__`, the " "normal formatting logic is bypassed." msgstr "" #: ../../library/string.rst:263 msgid "" -"Three conversion flags are currently supported: ``'!s'`` which calls " -":func:`str` on the value, ``'!r'`` which calls :func:`repr` and ``'!a'`` " -"which calls :func:`ascii`." +"Three conversion flags are currently supported: ``'!s'`` which calls :func:" +"`str` on the value, ``'!r'`` which calls :func:`repr` and ``'!a'`` which " +"calls :func:`ascii`." msgstr "" #: ../../library/string.rst:267 @@ -363,9 +363,9 @@ msgstr "" #: ../../library/string.rst:296 msgid "" "\"Format specifications\" are used within replacement fields contained " -"within a format string to define how individual values are presented (see " -":ref:`formatstrings` and :ref:`f-strings`). They can also be passed directly" -" to the built-in :func:`format` function. Each formattable type may define " +"within a format string to define how individual values are presented (see :" +"ref:`formatstrings` and :ref:`f-strings`). They can also be passed directly " +"to the built-in :func:`format` function. Each formattable type may define " "how the format specification is to be interpreted." msgstr "" @@ -378,9 +378,9 @@ msgstr "" #: ../../library/string.rst:306 msgid "" -"A general convention is that an empty format string (``\"\"``) produces the " -"same result as if you had called :func:`str` on the value. A non-empty " -"format string typically modifies the result." +"A general convention is that an empty format specification produces the same " +"result as if you had called :func:`str` on the value. A non-empty format " +"specification typically modifies the result." msgstr "" #: ../../library/string.rst:310 @@ -391,11 +391,11 @@ msgstr "" msgid "" "If a valid *align* value is specified, it can be preceded by a *fill* " "character that can be any character and defaults to a space if omitted. It " -"is not possible to use a literal curly brace (\"``{``\" or \"``}``\") as the" -" *fill* character in a :ref:`formatted string literal ` or when " +"is not possible to use a literal curly brace (\"``{``\" or \"``}``\") as the " +"*fill* character in a :ref:`formatted string literal ` or when " "using the :meth:`str.format` method. However, it is possible to insert a " -"curly brace with a nested replacement field. This limitation doesn't affect" -" the :func:`format` function." +"curly brace with a nested replacement field. This limitation doesn't affect " +"the :func:`format` function." msgstr "" #: ../../library/string.rst:331 @@ -407,14 +407,14 @@ msgid "Option" msgstr "" #: ../../library/string.rst:340 ../../library/string.rst:371 -#: ../../library/string.rst:439 ../../library/string.rst:450 -#: ../../library/string.rst:482 +#: ../../library/string.rst:440 ../../library/string.rst:451 +#: ../../library/string.rst:483 msgid "Meaning" msgstr "Significado" #: ../../library/string.rst:342 msgid "``'<'``" -msgstr "" +msgstr "``'<'``" #: ../../library/string.rst:342 msgid "" @@ -424,17 +424,17 @@ msgstr "" #: ../../library/string.rst:345 msgid "``'>'``" -msgstr "" +msgstr "``'>'``" #: ../../library/string.rst:345 msgid "" -"Forces the field to be right-aligned within the available space (this is the" -" default for numbers)." +"Forces the field to be right-aligned within the available space (this is the " +"default for numbers)." msgstr "" #: ../../library/string.rst:348 msgid "``'='``" -msgstr "" +msgstr "``'='``" #: ../../library/string.rst:348 msgid "" @@ -446,7 +446,7 @@ msgstr "" #: ../../library/string.rst:354 msgid "``'^'``" -msgstr "" +msgstr "``'^'``" #: ../../library/string.rst:354 msgid "Forces the field to be centered within the available space." @@ -455,8 +455,8 @@ msgstr "" #: ../../library/string.rst:358 msgid "" "Note that unless a minimum field width is defined, the field width will " -"always be the same size as the data to fill it, so that the alignment option" -" has no meaning in this case." +"always be the same size as the data to fill it, so that the alignment option " +"has no meaning in this case." msgstr "" #: ../../library/string.rst:362 @@ -498,10 +498,10 @@ msgstr "" #: ../../library/string.rst:386 msgid "" "The ``'#'`` option causes the \"alternate form\" to be used for the " -"conversion. The alternate form is defined differently for different types." -" This option is only valid for integer, float, complex and Decimal types. " -"For integers, when binary, octal, or hexadecimal output is used, this option" -" adds the prefix respective ``'0b'``, ``'0o'``, or ``'0x'`` to the output " +"conversion. The alternate form is defined differently for different types. " +"This option is only valid for integer, float, complex and Decimal types. For " +"integers, when binary, octal, or hexadecimal output is used, this option " +"adds the prefix respective ``'0b'``, ``'0o'``, or ``'0x'`` to the output " "value. For floats, complex and Decimal the alternate form causes the result " "of the conversion to always contain a decimal-point character, even if no " "digits follow it. Normally, a decimal-point character appears in the result " @@ -511,9 +511,8 @@ msgstr "" #: ../../library/string.rst:400 msgid "" -"The ``','`` option signals the use of a comma for a thousands separator. For" -" a locale aware separator, use the ``'n'`` integer presentation type " -"instead." +"The ``','`` option signals the use of a comma for a thousands separator. For " +"a locale aware separator, use the ``'n'`` integer presentation type instead." msgstr "" #: ../../library/string.rst:404 @@ -523,9 +522,9 @@ msgstr "" #: ../../library/string.rst:409 msgid "" "The ``'_'`` option signals the use of an underscore for a thousands " -"separator for floating point presentation types and for integer presentation" -" type ``'d'``. For integer presentation types ``'b'``, ``'o'``, ``'x'``, " -"and ``'X'``, underscores will be inserted every 4 digits. For other " +"separator for floating point presentation types and for integer presentation " +"type ``'d'``. For integer presentation types ``'b'``, ``'o'``, ``'x'``, and " +"``'X'``, underscores will be inserted every 4 digits. For other " "presentation types, specifying this option is an error." msgstr "" @@ -535,103 +534,103 @@ msgstr "" #: ../../library/string.rst:419 msgid "" -"*width* is a decimal integer defining the minimum field width. If not " +"*width* is a decimal integer defining the minimum total field width, " +"including any prefixes, separators, and other formatting characters. If not " "specified, then the field width will be determined by the content." msgstr "" -#: ../../library/string.rst:422 +#: ../../library/string.rst:423 msgid "" "When no explicit alignment is given, preceding the *width* field by a zero " -"(``'0'``) character enables sign-aware zero-padding for numeric types. This" -" is equivalent to a *fill* character of ``'0'`` with an *alignment* type of " +"(``'0'``) character enables sign-aware zero-padding for numeric types. This " +"is equivalent to a *fill* character of ``'0'`` with an *alignment* type of " "``'='``." msgstr "" -#: ../../library/string.rst:427 +#: ../../library/string.rst:428 msgid "" "The *precision* is a decimal number indicating how many digits should be " "displayed after the decimal point for a floating point value formatted with " "``'f'`` and ``'F'``, or before and after the decimal point for a floating " "point value formatted with ``'g'`` or ``'G'``. For non-number types the " -"field indicates the maximum field size - in other words, how many characters" -" will be used from the field content. The *precision* is not allowed for " +"field indicates the maximum field size - in other words, how many characters " +"will be used from the field content. The *precision* is not allowed for " "integer values." msgstr "" -#: ../../library/string.rst:434 +#: ../../library/string.rst:435 msgid "Finally, the *type* determines how the data should be presented." msgstr "" -#: ../../library/string.rst:436 +#: ../../library/string.rst:437 msgid "The available string presentation types are:" msgstr "" -#: ../../library/string.rst:439 ../../library/string.rst:450 -#: ../../library/string.rst:482 +#: ../../library/string.rst:440 ../../library/string.rst:451 +#: ../../library/string.rst:483 msgid "Type" msgstr "Tipo" -#: ../../library/string.rst:441 +#: ../../library/string.rst:442 msgid "``'s'``" msgstr "``'s'``" -#: ../../library/string.rst:441 -msgid "" -"String format. This is the default type for strings and may be omitted." +#: ../../library/string.rst:442 +msgid "String format. This is the default type for strings and may be omitted." msgstr "" -#: ../../library/string.rst:444 ../../library/string.rst:471 -#: ../../library/string.rst:533 +#: ../../library/string.rst:445 ../../library/string.rst:472 +#: ../../library/string.rst:534 msgid "None" msgstr "None" -#: ../../library/string.rst:444 +#: ../../library/string.rst:445 msgid "The same as ``'s'``." msgstr "" -#: ../../library/string.rst:447 +#: ../../library/string.rst:448 msgid "The available integer presentation types are:" msgstr "" -#: ../../library/string.rst:452 +#: ../../library/string.rst:453 msgid "``'b'``" msgstr "``'b'``" -#: ../../library/string.rst:452 +#: ../../library/string.rst:453 msgid "Binary format. Outputs the number in base 2." msgstr "" -#: ../../library/string.rst:454 +#: ../../library/string.rst:455 msgid "``'c'``" msgstr "``'c'``" -#: ../../library/string.rst:454 +#: ../../library/string.rst:455 msgid "" "Character. Converts the integer to the corresponding unicode character " "before printing." msgstr "" -#: ../../library/string.rst:457 +#: ../../library/string.rst:458 msgid "``'d'``" msgstr "``'d'``" -#: ../../library/string.rst:457 +#: ../../library/string.rst:458 msgid "Decimal Integer. Outputs the number in base 10." msgstr "Decimal Integer. Outputs the number in base 10." -#: ../../library/string.rst:459 +#: ../../library/string.rst:460 msgid "``'o'``" msgstr "``'o'``" -#: ../../library/string.rst:459 +#: ../../library/string.rst:460 msgid "Octal format. Outputs the number in base 8." msgstr "Octal format. Outputs the number in base 8." -#: ../../library/string.rst:461 +#: ../../library/string.rst:462 msgid "``'x'``" msgstr "``'x'``" -#: ../../library/string.rst:461 +#: ../../library/string.rst:462 msgid "" "Hex format. Outputs the number in base 16, using lower-case letters for the " "digits above 9." @@ -639,31 +638,31 @@ msgstr "" "Hex format. Outputs the number in base 16, using lower-case letters for the " "digits above 9." -#: ../../library/string.rst:464 +#: ../../library/string.rst:465 msgid "``'X'``" msgstr "``'X'``" -#: ../../library/string.rst:464 +#: ../../library/string.rst:465 msgid "" "Hex format. Outputs the number in base 16, using upper-case letters for the " "digits above 9." msgstr "" -#: ../../library/string.rst:467 ../../library/string.rst:526 +#: ../../library/string.rst:468 ../../library/string.rst:527 msgid "``'n'``" -msgstr "" +msgstr "``'n'``" -#: ../../library/string.rst:467 +#: ../../library/string.rst:468 msgid "" "Number. This is the same as ``'d'``, except that it uses the current locale " "setting to insert the appropriate number separator characters." msgstr "" -#: ../../library/string.rst:471 +#: ../../library/string.rst:472 msgid "The same as ``'d'``." msgstr "" -#: ../../library/string.rst:474 +#: ../../library/string.rst:475 msgid "" "In addition to the above presentation types, integers can be formatted with " "the floating point presentation types listed below (except ``'n'`` and " @@ -671,261 +670,259 @@ msgid "" "floating point number before formatting." msgstr "" -#: ../../library/string.rst:479 +#: ../../library/string.rst:480 msgid "" "The available presentation types for floating point and decimal values are:" msgstr "" -#: ../../library/string.rst:484 +#: ../../library/string.rst:485 msgid "``'e'``" msgstr "``'e'``" -#: ../../library/string.rst:484 +#: ../../library/string.rst:485 msgid "" -"Exponent notation. Prints the number in scientific notation using the letter" -" 'e' to indicate the exponent. The default precision is ``6``." +"Exponent notation. Prints the number in scientific notation using the letter " +"'e' to indicate the exponent. The default precision is ``6``." msgstr "" -#: ../../library/string.rst:488 +#: ../../library/string.rst:489 msgid "``'E'``" msgstr "``'E'``" -#: ../../library/string.rst:488 +#: ../../library/string.rst:489 msgid "" "Exponent notation. Same as ``'e'`` except it uses an upper case 'E' as the " "separator character." msgstr "" -#: ../../library/string.rst:491 +#: ../../library/string.rst:492 msgid "``'f'``" msgstr "``'f'``" -#: ../../library/string.rst:491 +#: ../../library/string.rst:492 msgid "" "Fixed-point notation. Displays the number as a fixed-point number. The " "default precision is ``6``." msgstr "" -#: ../../library/string.rst:494 +#: ../../library/string.rst:495 msgid "``'F'``" msgstr "``'F'``" -#: ../../library/string.rst:494 +#: ../../library/string.rst:495 msgid "" "Fixed-point notation. Same as ``'f'``, but converts ``nan`` to ``NAN`` and " "``inf`` to ``INF``." msgstr "" -#: ../../library/string.rst:497 +#: ../../library/string.rst:498 msgid "``'g'``" msgstr "``'g'``" -#: ../../library/string.rst:497 +#: ../../library/string.rst:498 msgid "" -"General format. For a given precision ``p >= 1``, this rounds the number to" -" ``p`` significant digits and then formats the result in either fixed-point " +"General format. For a given precision ``p >= 1``, this rounds the number to " +"``p`` significant digits and then formats the result in either fixed-point " "format or in scientific notation, depending on its magnitude." msgstr "" -#: ../../library/string.rst:502 +#: ../../library/string.rst:503 msgid "" "The precise rules are as follows: suppose that the result formatted with " -"presentation type ``'e'`` and precision ``p-1`` would have exponent ``exp``." -" Then if ``-4 <= exp < p``, the number is formatted with presentation type " -"``'f'`` and precision ``p-1-exp``. Otherwise, the number is formatted with " -"presentation type ``'e'`` and precision ``p-1``. In both cases insignificant" -" trailing zeros are removed from the significand, and the decimal point is " -"also removed if there are no remaining digits following it, unless the " -"``'#'`` option is used." +"presentation type ``'e'`` and precision ``p-1`` would have exponent " +"``exp``. Then if ``-4 <= exp < p``, the number is formatted with " +"presentation type ``'f'`` and precision ``p-1-exp``. Otherwise, the number " +"is formatted with presentation type ``'e'`` and precision ``p-1``. In both " +"cases insignificant trailing zeros are removed from the significand, and the " +"decimal point is also removed if there are no remaining digits following it, " +"unless the ``'#'`` option is used." msgstr "" -#: ../../library/string.rst:514 +#: ../../library/string.rst:515 msgid "" "Positive and negative infinity, positive and negative zero, and nans, are " "formatted as ``inf``, ``-inf``, ``0``, ``-0`` and ``nan`` respectively, " "regardless of the precision." msgstr "" -#: ../../library/string.rst:519 +#: ../../library/string.rst:520 msgid "" "A precision of ``0`` is treated as equivalent to a precision of ``1``. The " "default precision is ``6``." msgstr "" -#: ../../library/string.rst:522 +#: ../../library/string.rst:523 msgid "``'G'``" msgstr "``'G'``" -#: ../../library/string.rst:522 +#: ../../library/string.rst:523 msgid "" "General format. Same as ``'g'`` except switches to ``'E'`` if the number " "gets too large. The representations of infinity and NaN are uppercased, too." msgstr "" -#: ../../library/string.rst:526 +#: ../../library/string.rst:527 msgid "" "Number. This is the same as ``'g'``, except that it uses the current locale " "setting to insert the appropriate number separator characters." msgstr "" -#: ../../library/string.rst:530 +#: ../../library/string.rst:531 msgid "``'%'``" msgstr "``'%'``" -#: ../../library/string.rst:530 +#: ../../library/string.rst:531 msgid "" "Percentage. Multiplies the number by 100 and displays in fixed (``'f'``) " "format, followed by a percent sign." msgstr "" -#: ../../library/string.rst:533 +#: ../../library/string.rst:534 msgid "" "Similar to ``'g'``, except that fixed-point notation, when used, has at " "least one digit past the decimal point. The default precision is as high as " -"needed to represent the particular value. The overall effect is to match the" -" output of :func:`str` as altered by the other format modifiers." +"needed to represent the particular value. The overall effect is to match the " +"output of :func:`str` as altered by the other format modifiers." msgstr "" -#: ../../library/string.rst:545 +#: ../../library/string.rst:546 msgid "Format examples" msgstr "" -#: ../../library/string.rst:547 +#: ../../library/string.rst:548 msgid "" "This section contains examples of the :meth:`str.format` syntax and " "comparison with the old ``%``-formatting." msgstr "" -#: ../../library/string.rst:550 +#: ../../library/string.rst:551 msgid "" -"In most of the cases the syntax is similar to the old ``%``-formatting, with" -" the addition of the ``{}`` and with ``:`` used instead of ``%``. For " +"In most of the cases the syntax is similar to the old ``%``-formatting, with " +"the addition of the ``{}`` and with ``:`` used instead of ``%``. For " "example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``." msgstr "" -#: ../../library/string.rst:554 +#: ../../library/string.rst:555 msgid "" "The new format syntax also supports new and different options, shown in the " "following examples." msgstr "" -#: ../../library/string.rst:557 +#: ../../library/string.rst:558 msgid "Accessing arguments by position::" msgstr "" -#: ../../library/string.rst:570 +#: ../../library/string.rst:571 msgid "Accessing arguments by name::" msgstr "" -#: ../../library/string.rst:578 +#: ../../library/string.rst:579 msgid "Accessing arguments' attributes::" msgstr "" -#: ../../library/string.rst:593 +#: ../../library/string.rst:594 msgid "Accessing arguments' items::" msgstr "" -#: ../../library/string.rst:599 +#: ../../library/string.rst:600 msgid "Replacing ``%s`` and ``%r``::" msgstr "" -#: ../../library/string.rst:604 +#: ../../library/string.rst:605 msgid "Aligning the text and specifying a width::" msgstr "" -#: ../../library/string.rst:615 +#: ../../library/string.rst:616 msgid "Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::" msgstr "" -#: ../../library/string.rst:624 +#: ../../library/string.rst:625 msgid "" "Replacing ``%x`` and ``%o`` and converting the value to different bases::" msgstr "" -#: ../../library/string.rst:633 +#: ../../library/string.rst:634 msgid "Using the comma as a thousands separator::" msgstr "" -#: ../../library/string.rst:638 +#: ../../library/string.rst:639 msgid "Expressing a percentage::" msgstr "" -#: ../../library/string.rst:645 +#: ../../library/string.rst:646 msgid "Using type-specific formatting::" msgstr "" -#: ../../library/string.rst:652 +#: ../../library/string.rst:653 msgid "Nesting arguments and more complex examples::" msgstr "" -#: ../../library/string.rst:686 +#: ../../library/string.rst:687 msgid "Template strings" msgstr "" -#: ../../library/string.rst:688 +#: ../../library/string.rst:689 msgid "" -"Template strings provide simpler string substitutions as described in " -":pep:`292`. A primary use case for template strings is for " -"internationalization (i18n) since in that context, the simpler syntax and " -"functionality makes it easier to translate than other built-in string " -"formatting facilities in Python. As an example of a library built on " -"template strings for i18n, see the `flufl.i18n " -"`_ package." +"Template strings provide simpler string substitutions as described in :pep:" +"`292`. A primary use case for template strings is for internationalization " +"(i18n) since in that context, the simpler syntax and functionality makes it " +"easier to translate than other built-in string formatting facilities in " +"Python. As an example of a library built on template strings for i18n, see " +"the `flufl.i18n `_ package." msgstr "" -#: ../../library/string.rst:698 +#: ../../library/string.rst:699 msgid "" "Template strings support ``$``-based substitutions, using the following " "rules:" msgstr "" -#: ../../library/string.rst:700 +#: ../../library/string.rst:701 msgid "``$$`` is an escape; it is replaced with a single ``$``." msgstr "" -#: ../../library/string.rst:702 +#: ../../library/string.rst:703 msgid "" -"``$identifier`` names a substitution placeholder matching a mapping key of " -"``\"identifier\"``. By default, ``\"identifier\"`` is restricted to any " -"case-insensitive ASCII alphanumeric string (including underscores) that " -"starts with an underscore or ASCII letter. The first non-identifier " -"character after the ``$`` character terminates this placeholder " -"specification." +"``$identifier`` names a substitution placeholder matching a mapping key of ``" +"\"identifier\"``. By default, ``\"identifier\"`` is restricted to any case-" +"insensitive ASCII alphanumeric string (including underscores) that starts " +"with an underscore or ASCII letter. The first non-identifier character " +"after the ``$`` character terminates this placeholder specification." msgstr "" -#: ../../library/string.rst:709 +#: ../../library/string.rst:710 msgid "" "``${identifier}`` is equivalent to ``$identifier``. It is required when " "valid identifier characters follow the placeholder but are not part of the " "placeholder, such as ``\"${noun}ification\"``." msgstr "" -#: ../../library/string.rst:713 +#: ../../library/string.rst:714 msgid "" -"Any other appearance of ``$`` in the string will result in a " -":exc:`ValueError` being raised." +"Any other appearance of ``$`` in the string will result in a :exc:" +"`ValueError` being raised." msgstr "" -#: ../../library/string.rst:716 +#: ../../library/string.rst:717 msgid "" "The :mod:`string` module provides a :class:`Template` class that implements " "these rules. The methods of :class:`Template` are:" msgstr "" -#: ../../library/string.rst:722 +#: ../../library/string.rst:723 msgid "The constructor takes a single argument which is the template string." msgstr "" -#: ../../library/string.rst:727 +#: ../../library/string.rst:728 msgid "" "Performs the template substitution, returning a new string. *mapping* is " "any dictionary-like object with keys that match the placeholders in the " "template. Alternatively, you can provide keyword arguments, where the " -"keywords are the placeholders. When both *mapping* and *kwds* are given and" -" there are duplicates, the placeholders from *kwds* take precedence." +"keywords are the placeholders. When both *mapping* and *kwds* are given and " +"there are duplicates, the placeholders from *kwds* take precedence." msgstr "" -#: ../../library/string.rst:736 +#: ../../library/string.rst:737 msgid "" "Like :meth:`substitute`, except that if placeholders are missing from " "*mapping* and *kwds*, instead of raising a :exc:`KeyError` exception, the " @@ -934,7 +931,7 @@ msgid "" "simply return ``$`` instead of raising :exc:`ValueError`." msgstr "" -#: ../../library/string.rst:742 +#: ../../library/string.rst:743 msgid "" "While other exceptions may still occur, this method is called \"safe\" " "because it always tries to return a usable string instead of raising an " @@ -944,21 +941,21 @@ msgid "" "Python identifiers." msgstr "" -#: ../../library/string.rst:749 +#: ../../library/string.rst:750 msgid ":class:`Template` instances also provide one public data attribute:" msgstr "" -#: ../../library/string.rst:753 +#: ../../library/string.rst:754 msgid "" "This is the object passed to the constructor's *template* argument. In " "general, you shouldn't change it, but read-only access is not enforced." msgstr "" -#: ../../library/string.rst:756 +#: ../../library/string.rst:757 msgid "Here is an example of how to use a Template::" msgstr "" -#: ../../library/string.rst:774 +#: ../../library/string.rst:775 msgid "" "Advanced usage: you can derive subclasses of :class:`Template` to customize " "the placeholder syntax, delimiter character, or the entire regular " @@ -966,37 +963,37 @@ msgid "" "these class attributes:" msgstr "" -#: ../../library/string.rst:779 +#: ../../library/string.rst:780 msgid "" "*delimiter* -- This is the literal string describing a placeholder " "introducing delimiter. The default value is ``$``. Note that this should " -"*not* be a regular expression, as the implementation will call " -":meth:`re.escape` on this string as needed. Note further that you cannot " -"change the delimiter after class creation (i.e. a different delimiter must " -"be set in the subclass's class namespace)." +"*not* be a regular expression, as the implementation will call :meth:`re." +"escape` on this string as needed. Note further that you cannot change the " +"delimiter after class creation (i.e. a different delimiter must be set in " +"the subclass's class namespace)." msgstr "" -#: ../../library/string.rst:786 +#: ../../library/string.rst:787 msgid "" -"*idpattern* -- This is the regular expression describing the pattern for " -"non-braced placeholders. The default value is the regular expression " -"``(?a:[_a-z][_a-z0-9]*)``. If this is given and *braceidpattern* is " -"``None`` this pattern will also apply to braced placeholders." +"*idpattern* -- This is the regular expression describing the pattern for non-" +"braced placeholders. The default value is the regular expression ``(?a:[_a-" +"z][_a-z0-9]*)``. If this is given and *braceidpattern* is ``None`` this " +"pattern will also apply to braced placeholders." msgstr "" -#: ../../library/string.rst:793 +#: ../../library/string.rst:794 msgid "" -"Since default *flags* is ``re.IGNORECASE``, pattern ``[a-z]`` can match with" -" some non-ASCII characters. That's why we use the local ``a`` flag here." +"Since default *flags* is ``re.IGNORECASE``, pattern ``[a-z]`` can match with " +"some non-ASCII characters. That's why we use the local ``a`` flag here." msgstr "" -#: ../../library/string.rst:797 +#: ../../library/string.rst:798 msgid "" "*braceidpattern* can be used to define separate patterns used inside and " "outside the braces." msgstr "" -#: ../../library/string.rst:801 +#: ../../library/string.rst:802 msgid "" "*braceidpattern* -- This is like *idpattern* but describes the pattern for " "braced placeholders. Defaults to ``None`` which means to fall back to " @@ -1005,7 +1002,7 @@ msgid "" "unbraced placeholders." msgstr "" -#: ../../library/string.rst:809 +#: ../../library/string.rst:810 msgid "" "*flags* -- The regular expression flags that will be applied when compiling " "the regular expression used for recognizing substitutions. The default " @@ -1014,49 +1011,49 @@ msgid "" "regular expressions." msgstr "" -#: ../../library/string.rst:817 +#: ../../library/string.rst:818 msgid "" "Alternatively, you can provide the entire regular expression pattern by " -"overriding the class attribute *pattern*. If you do this, the value must be" -" a regular expression object with four named capturing groups. The " -"capturing groups correspond to the rules given above, along with the invalid" -" placeholder rule:" +"overriding the class attribute *pattern*. If you do this, the value must be " +"a regular expression object with four named capturing groups. The capturing " +"groups correspond to the rules given above, along with the invalid " +"placeholder rule:" msgstr "" -#: ../../library/string.rst:823 +#: ../../library/string.rst:824 msgid "" "*escaped* -- This group matches the escape sequence, e.g. ``$$``, in the " "default pattern." msgstr "" -#: ../../library/string.rst:826 +#: ../../library/string.rst:827 msgid "" "*named* -- This group matches the unbraced placeholder name; it should not " "include the delimiter in capturing group." msgstr "" -#: ../../library/string.rst:829 +#: ../../library/string.rst:830 msgid "" "*braced* -- This group matches the brace enclosed placeholder name; it " "should not include either the delimiter or braces in the capturing group." msgstr "" -#: ../../library/string.rst:832 +#: ../../library/string.rst:833 msgid "" "*invalid* -- This group matches any other delimiter pattern (usually a " "single delimiter), and it should appear last in the regular expression." msgstr "" -#: ../../library/string.rst:837 +#: ../../library/string.rst:838 msgid "Helper functions" msgstr "" -#: ../../library/string.rst:841 +#: ../../library/string.rst:842 msgid "" "Split the argument into words using :meth:`str.split`, capitalize each word " -"using :meth:`str.capitalize`, and join the capitalized words using " -":meth:`str.join`. If the optional second argument *sep* is absent or " -"``None``, runs of whitespace characters are replaced by a single space and " -"leading and trailing whitespace are removed, otherwise *sep* is used to " -"split and join the words." +"using :meth:`str.capitalize`, and join the capitalized words using :meth:" +"`str.join`. If the optional second argument *sep* is absent or ``None``, " +"runs of whitespace characters are replaced by a single space and leading and " +"trailing whitespace are removed, otherwise *sep* is used to split and join " +"the words." msgstr "" diff --git a/library/stringprep.po b/library/stringprep.po index 31a6607cc..a6fe11348 100644 --- a/library/stringprep.po +++ b/library/stringprep.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,21 +34,21 @@ msgstr "**Código Fonte:** :source:`Lib/stringprep.py`" #: ../../library/stringprep.rst:14 msgid "" "When identifying things (such as host names) in the internet, it is often " -"necessary to compare such identifications for \"equality\". Exactly how this" -" comparison is executed may depend on the application domain, e.g. whether " -"it should be case-insensitive or not. It may be also necessary to restrict " -"the possible identifications, to allow only identifications consisting of " +"necessary to compare such identifications for \"equality\". Exactly how this " +"comparison is executed may depend on the application domain, e.g. whether it " +"should be case-insensitive or not. It may be also necessary to restrict the " +"possible identifications, to allow only identifications consisting of " "\"printable\" characters." msgstr "" #: ../../library/stringprep.rst:21 msgid "" ":rfc:`3454` defines a procedure for \"preparing\" Unicode strings in " -"internet protocols. Before passing strings onto the wire, they are processed" -" with the preparation procedure, after which they have a certain normalized " +"internet protocols. Before passing strings onto the wire, they are processed " +"with the preparation procedure, after which they have a certain normalized " "form. The RFC defines a set of tables, which can be combined into profiles. " -"Each profile must define which tables it uses, and what other optional parts" -" of the ``stringprep`` procedure are part of the profile. One example of a " +"Each profile must define which tables it uses, and what other optional parts " +"of the ``stringprep`` procedure are part of the profile. One example of a " "``stringprep`` profile is ``nameprep``, which is used for internationalized " "domain names." msgstr "" @@ -54,17 +56,17 @@ msgstr "" #: ../../library/stringprep.rst:29 msgid "" "The module :mod:`stringprep` only exposes the tables from :rfc:`3454`. As " -"these tables would be very large to represent them as dictionaries or lists," -" the module uses the Unicode character database internally. The module " -"source code itself was generated using the ``mkstringprep.py`` utility." +"these tables would be very large to represent them as dictionaries or lists, " +"the module uses the Unicode character database internally. The module source " +"code itself was generated using the ``mkstringprep.py`` utility." msgstr "" #: ../../library/stringprep.rst:34 msgid "" "As a result, these tables are exposed as functions, not as data structures. " -"There are two kinds of tables in the RFC: sets and mappings. For a set, " -":mod:`stringprep` provides the \"characteristic function\", i.e. a function " -"that returns true if the parameter is part of the set. For mappings, it " +"There are two kinds of tables in the RFC: sets and mappings. For a set, :mod:" +"`stringprep` provides the \"characteristic function\", i.e. a function that " +"returns ``True`` if the parameter is part of the set. For mappings, it " "provides the mapping function: given the key, it returns the associated " "value. Below is a list of all functions available in the module." msgstr "" @@ -117,8 +119,8 @@ msgstr "" #: ../../library/stringprep.rst:92 msgid "" -"Determine whether *code* is in tableC.2 (Control characters, union of C.2.1" -" and C.2.2)." +"Determine whether *code* is in tableC.2 (Control characters, union of C.2.1 " +"and C.2.2)." msgstr "" #: ../../library/stringprep.rst:98 diff --git a/library/struct.po b/library/struct.po index 0c28f325e..ab4c7a570 100644 --- a/library/struct.po +++ b/library/struct.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 @@ -10,16 +10,18 @@ # Misael borges , 2019 # Juliana Karoline , 2019 # Bonifacio de Oliveira , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-23 03:16+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Bonifacio de Oliveira , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,21 +51,21 @@ msgid "" "By default, the result of packing a given C struct includes pad bytes in " "order to maintain proper alignment for the C types involved; similarly, " "alignment is taken into account when unpacking. This behavior is chosen so " -"that the bytes of a packed struct correspond exactly to the layout in memory" -" of the corresponding C struct. To handle platform-independent data formats" -" or omit implicit pad bytes, use ``standard`` size and alignment instead of " +"that the bytes of a packed struct correspond exactly to the layout in memory " +"of the corresponding C struct. To handle platform-independent data formats " +"or omit implicit pad bytes, use ``standard`` size and alignment instead of " "``native`` size and alignment: see :ref:`struct-alignment` for details." msgstr "" #: ../../library/struct.rst:31 msgid "" "Several :mod:`struct` functions (and methods of :class:`Struct`) take a " -"*buffer* argument. This refers to objects that implement the " -":ref:`bufferobjects` and provide either a readable or read-writable buffer." -" The most common types used for that purpose are :class:`bytes` and " -":class:`bytearray`, but many other types that can be viewed as an array of " -"bytes implement the buffer protocol, so that they can be read/filled without" -" additional copying from a :class:`bytes` object." +"*buffer* argument. This refers to objects that implement the :ref:" +"`bufferobjects` and provide either a readable or read-writable buffer. The " +"most common types used for that purpose are :class:`bytes` and :class:" +"`bytearray`, but many other types that can be viewed as an array of bytes " +"implement the buffer protocol, so that they can be read/filled without " +"additional copying from a :class:`bytes` object." msgstr "" #: ../../library/struct.rst:40 @@ -82,9 +84,9 @@ msgstr "" #: ../../library/struct.rst:53 msgid "" -"Return a bytes object containing the values *v1*, *v2*, ... packed according" -" to the format string *format*. The arguments must match the values " -"required by the format exactly." +"Return a bytes object containing the values *v1*, *v2*, ... packed according " +"to the format string *format*. The arguments must match the values required " +"by the format exactly." msgstr "" #: ../../library/struct.rst:60 @@ -96,8 +98,8 @@ msgstr "" #: ../../library/struct.rst:67 msgid "" -"Unpack from the buffer *buffer* (presumably packed by ``pack(format, ...)``)" -" according to the format string *format*. The result is a tuple even if it " +"Unpack from the buffer *buffer* (presumably packed by ``pack(format, ...)``) " +"according to the format string *format*. The result is a tuple even if it " "contains exactly one item. The buffer's size in bytes must match the size " "required by the format, as reflected by :func:`calcsize`." msgstr "" @@ -106,8 +108,8 @@ msgstr "" msgid "" "Unpack from *buffer* starting at position *offset*, according to the format " "string *format*. The result is a tuple even if it contains exactly one " -"item. The buffer's size in bytes, minus *offset*, must be at least the size" -" required by the format, as reflected by :func:`calcsize`." +"item. The buffer's size in bytes, minus *offset*, must be at least the size " +"required by the format, as reflected by :func:`calcsize`." msgstr "" #: ../../library/struct.rst:83 @@ -149,15 +151,15 @@ msgstr "" #: ../../library/struct.rst:116 msgid "" "By default, C types are represented in the machine's native format and byte " -"order, and properly aligned by skipping pad bytes if necessary (according to" -" the rules used by the C compiler)." +"order, and properly aligned by skipping pad bytes if necessary (according to " +"the rules used by the C compiler)." msgstr "" #: ../../library/struct.rst:127 msgid "" "Alternatively, the first character of the format string can be used to " -"indicate the byte order, size and alignment of the packed data, according to" -" the following table:" +"indicate the byte order, size and alignment of the packed data, according to " +"the following table:" msgstr "" #: ../../library/struct.rst:132 @@ -178,16 +180,15 @@ msgstr "" #: ../../library/struct.rst:134 msgid "``@``" -msgstr "" +msgstr "``@``" -#: ../../library/struct.rst:134 ../../library/struct.rst:134 #: ../../library/struct.rst:134 ../../library/struct.rst:136 msgid "native" msgstr "" #: ../../library/struct.rst:136 msgid "``=``" -msgstr "" +msgstr "``=``" #: ../../library/struct.rst:136 ../../library/struct.rst:138 #: ../../library/struct.rst:140 ../../library/struct.rst:142 @@ -217,7 +218,7 @@ msgstr "" #: ../../library/struct.rst:142 msgid "``!``" -msgstr "" +msgstr "``!``" #: ../../library/struct.rst:142 msgid "network (= big-endian)" @@ -244,14 +245,14 @@ msgstr "" #: ../../library/struct.rst:156 msgid "" -"Standard size depends only on the format character; see the table in the " -":ref:`format-characters` section." +"Standard size depends only on the format character; see the table in the :" +"ref:`format-characters` section." msgstr "" #: ../../library/struct.rst:159 msgid "" -"Note the difference between ``'@'`` and ``'='``: both use native byte order," -" but the size and alignment of the latter is standardized." +"Note the difference between ``'@'`` and ``'='``: both use native byte order, " +"but the size and alignment of the latter is standardized." msgstr "" #: ../../library/struct.rst:162 @@ -262,8 +263,8 @@ msgstr "" #: ../../library/struct.rst:165 msgid "" -"There is no way to indicate non-native byte order (force byte-swapping); use" -" the appropriate choice of ``'<'`` or ``'>'``." +"There is no way to indicate non-native byte order (force byte-swapping); use " +"the appropriate choice of ``'<'`` or ``'>'``." msgstr "" #: ../../library/struct.rst:168 ../../library/struct.rst:247 @@ -272,20 +273,20 @@ msgstr "Notas:" #: ../../library/struct.rst:170 msgid "" -"Padding is only automatically added between successive structure members. No" -" padding is added at the beginning or the end of the encoded struct." +"Padding is only automatically added between successive structure members. No " +"padding is added at the beginning or the end of the encoded struct." msgstr "" #: ../../library/struct.rst:173 msgid "" -"No padding is added when using non-native size and alignment, e.g. with '<'," -" '>', '=', and '!'." +"No padding is added when using non-native size and alignment, e.g. with '<', " +"'>', '=', and '!'." msgstr "" #: ../../library/struct.rst:176 msgid "" -"To align the end of a structure to the alignment requirement of a particular" -" type, end the format with the code for that type with a repeat count of " +"To align the end of a structure to the alignment requirement of a particular " +"type, end the format with the code for that type with a repeat count of " "zero. See :ref:`struct-examples`." msgstr "" @@ -299,8 +300,8 @@ msgid "" "Python values should be obvious given their types. The 'Standard size' " "column refers to the size of the packed value in bytes when using standard " "size; that is, when the format string starts with one of ``'<'``, ``'>'``, " -"``'!'`` or ``'='``. When using native size, the size of the packed value is" -" platform-dependent." +"``'!'`` or ``'='``. When using native size, the size of the packed value is " +"platform-dependent." msgstr "" #: ../../library/struct.rst:194 @@ -358,7 +359,7 @@ msgstr "``b``" #: ../../library/struct.rst:200 msgid ":c:type:`signed char`" -msgstr "" +msgstr ":c:type:`signed char`" #: ../../library/struct.rst:200 ../../library/struct.rst:202 #: ../../library/struct.rst:206 ../../library/struct.rst:208 @@ -376,7 +377,7 @@ msgstr "" #: ../../library/struct.rst:202 msgid "``B``" -msgstr "" +msgstr "``B``" #: ../../library/struct.rst:202 msgid ":c:type:`unsigned char`" @@ -392,7 +393,7 @@ msgstr "\\(2)" #: ../../library/struct.rst:204 msgid "``?``" -msgstr "" +msgstr "``?``" #: ../../library/struct.rst:204 msgid ":c:type:`_Bool`" @@ -451,7 +452,7 @@ msgstr ":c:type:`unsigned int`" #: ../../library/struct.rst:214 msgid "``l``" -msgstr "" +msgstr "``l``" #: ../../library/struct.rst:214 msgid ":c:type:`long`" @@ -459,7 +460,7 @@ msgstr ":c:type:`long`" #: ../../library/struct.rst:216 msgid "``L``" -msgstr "" +msgstr "``L``" #: ../../library/struct.rst:216 msgid ":c:type:`unsigned long`" @@ -467,11 +468,11 @@ msgstr ":c:type:`unsigned long`" #: ../../library/struct.rst:218 msgid "``q``" -msgstr "" +msgstr "``q``" #: ../../library/struct.rst:218 msgid ":c:type:`long long`" -msgstr "" +msgstr ":c:type:`long long`" #: ../../library/struct.rst:218 ../../library/struct.rst:220 #: ../../library/struct.rst:231 @@ -480,11 +481,11 @@ msgstr "8" #: ../../library/struct.rst:220 msgid "``Q``" -msgstr "" +msgstr "``Q``" #: ../../library/struct.rst:220 msgid ":c:type:`unsigned long long`" -msgstr "" +msgstr ":c:type:`unsigned long long`" #: ../../library/struct.rst:223 msgid "``n``" @@ -492,7 +493,7 @@ msgstr "``n``" #: ../../library/struct.rst:223 msgid ":c:type:`ssize_t`" -msgstr "" +msgstr ":c:type:`ssize_t`" #: ../../library/struct.rst:223 ../../library/struct.rst:225 msgid "\\(3)" @@ -500,7 +501,7 @@ msgstr "\\(3)" #: ../../library/struct.rst:225 msgid "``N``" -msgstr "" +msgstr "``N``" #: ../../library/struct.rst:225 msgid ":c:type:`size_t`" @@ -526,7 +527,7 @@ msgstr "\\(4)" #: ../../library/struct.rst:229 msgid "``f``" -msgstr "" +msgstr "``f``" #: ../../library/struct.rst:229 msgid ":c:type:`float`" @@ -542,11 +543,11 @@ msgstr ":c:type:`double`" #: ../../library/struct.rst:233 msgid "``s``" -msgstr "" +msgstr "``s``" #: ../../library/struct.rst:233 ../../library/struct.rst:235 msgid ":c:type:`char[]`" -msgstr "" +msgstr ":c:type:`char[]`" #: ../../library/struct.rst:233 ../../library/struct.rst:235 msgid "bytes" @@ -554,15 +555,15 @@ msgstr "" #: ../../library/struct.rst:235 msgid "``p``" -msgstr "" +msgstr "``p``" #: ../../library/struct.rst:237 msgid "``P``" -msgstr "" +msgstr "``P``" #: ../../library/struct.rst:237 msgid ":c:type:`void \\*`" -msgstr "" +msgstr ":c:type:`void \\*`" #: ../../library/struct.rst:237 msgid "\\(5)" @@ -579,15 +580,15 @@ msgstr "" #: ../../library/struct.rst:252 msgid "" "The ``'?'`` conversion code corresponds to the :c:type:`_Bool` type defined " -"by C99. If this type is not available, it is simulated using a " -":c:type:`char`. In standard mode, it is always represented by one byte." +"by C99. If this type is not available, it is simulated using a :c:type:" +"`char`. In standard mode, it is always represented by one byte." msgstr "" #: ../../library/struct.rst:257 msgid "" "When attempting to pack a non-integer using any of the integer conversion " -"codes, if the non-integer has a :meth:`__index__` method then that method is" -" called to convert the argument to an integer before packing." +"codes, if the non-integer has a :meth:`__index__` method then that method is " +"called to convert the argument to an integer before packing." msgstr "" #: ../../library/struct.rst:261 @@ -597,8 +598,8 @@ msgstr "" #: ../../library/struct.rst:265 msgid "" "The ``'n'`` and ``'N'`` conversion codes are only available for the native " -"size (selected as the default or with the ``'@'`` byte order character). For" -" the standard size, you can use whichever of the other integer formats fits " +"size (selected as the default or with the ``'@'`` byte order character). For " +"the standard size, you can use whichever of the other integer formats fits " "your application." msgstr "" @@ -613,9 +614,9 @@ msgstr "" #: ../../library/struct.rst:277 msgid "" "The ``'P'`` format character is only available for the native byte ordering " -"(selected as the default or with the ``'@'`` byte order character). The byte" -" order character ``'='`` chooses to use little- or big-endian ordering based" -" on the host system. The struct module does not interpret this as native " +"(selected as the default or with the ``'@'`` byte order character). The byte " +"order character ``'='`` chooses to use little- or big-endian ordering based " +"on the host system. The struct module does not interpret this as native " "ordering, so the ``'P'`` format is not available." msgstr "" @@ -623,11 +624,11 @@ msgstr "" msgid "" "The IEEE 754 binary16 \"half precision\" type was introduced in the 2008 " "revision of the `IEEE 754 standard `_. It has a sign " -"bit, a 5-bit exponent and 11-bit precision (with 10 bits explicitly stored)," -" and can represent numbers between approximately ``6.1e-05`` and ``6.5e+04``" -" at full precision. This type is not widely supported by C compilers: on a " -"typical machine, an unsigned short can be used for storage, but not for math" -" operations. See the Wikipedia page on the `half-precision floating-point " +"bit, a 5-bit exponent and 11-bit precision (with 10 bits explicitly stored), " +"and can represent numbers between approximately ``6.1e-05`` and ``6.5e+04`` " +"at full precision. This type is not widely supported by C compilers: on a " +"typical machine, an unsigned short can be used for storage, but not for math " +"operations. See the Wikipedia page on the `half-precision floating-point " "format `_ for more information." msgstr "" @@ -649,8 +650,8 @@ msgid "" "the bytes, not a repeat count like for the other format characters; for " "example, ``'10s'`` means a single 10-byte string, while ``'10c'`` means 10 " "characters. If a count is not given, it defaults to 1. For packing, the " -"string is truncated or padded with null bytes as appropriate to make it fit." -" For unpacking, the resulting bytes object always has exactly the specified " +"string is truncated or padded with null bytes as appropriate to make it fit. " +"For unpacking, the resulting bytes object always has exactly the specified " "number of bytes. As a special case, ``'0s'`` means a single, empty string " "(while ``'0c'`` means 0 characters)." msgstr "" @@ -659,14 +660,14 @@ msgstr "" msgid "" "When packing a value ``x`` using one of the integer formats (``'b'``, " "``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, " -"``'Q'``), if ``x`` is outside the valid range for that format then " -":exc:`struct.error` is raised." +"``'Q'``), if ``x`` is outside the valid range for that format then :exc:" +"`struct.error` is raised." msgstr "" #: ../../library/struct.rst:314 msgid "" -"In 3.0, some of the integer formats wrapped out-of-range values and raised " -":exc:`DeprecationWarning` instead of :exc:`struct.error`." +"In 3.0, some of the integer formats wrapped out-of-range values and raised :" +"exc:`DeprecationWarning` instead of :exc:`struct.error`." msgstr "" #: ../../library/struct.rst:318 @@ -674,11 +675,11 @@ msgid "" "The ``'p'`` format character encodes a \"Pascal string\", meaning a short " "variable-length string stored in a *fixed number of bytes*, given by the " "count. The first byte stored is the length of the string, or 255, whichever " -"is smaller. The bytes of the string follow. If the string passed in to " -":func:`pack` is too long (longer than the count minus 1), only the leading " +"is smaller. The bytes of the string follow. If the string passed in to :" +"func:`pack` is too long (longer than the count minus 1), only the leading " "``count-1`` bytes of the string are stored. If the string is shorter than " -"``count-1``, it is padded with null bytes so that exactly count bytes in all" -" are used. Note that for :func:`unpack`, the ``'p'`` format character " +"``count-1``, it is padded with null bytes so that exactly count bytes in all " +"are used. Note that for :func:`unpack`, the ``'p'`` format character " "consumes ``count`` bytes, but that the string returned can never contain " "more than 255 bytes." msgstr "" @@ -763,10 +764,10 @@ msgstr "" #: ../../library/struct.rst:416 msgid "" -"The compiled versions of the most recent format strings passed to " -":class:`Struct` and the module-level functions are cached, so programs that " -"use only a few format strings needn't worry about reusing a single " -":class:`Struct` instance." +"The compiled versions of the most recent format strings passed to :class:" +"`Struct` and the module-level functions are cached, so programs that use " +"only a few format strings needn't worry about reusing a single :class:" +"`Struct` instance." msgstr "" #: ../../library/struct.rst:421 @@ -780,8 +781,7 @@ msgid "" msgstr "" #: ../../library/struct.rst:431 -msgid "" -"Identical to the :func:`pack_into` function, using the compiled format." +msgid "Identical to the :func:`pack_into` function, using the compiled format." msgstr "" #: ../../library/struct.rst:436 @@ -812,6 +812,6 @@ msgstr "" #: ../../library/struct.rst:463 msgid "" -"The calculated size of the struct (and hence of the bytes object produced by" -" the :meth:`pack` method) corresponding to :attr:`format`." +"The calculated size of the struct (and hence of the bytes object produced by " +"the :meth:`pack` method) corresponding to :attr:`format`." msgstr "" diff --git a/library/subprocess.po b/library/subprocess.po index d9848e45b..aa1be44ce 100644 --- a/library/subprocess.po +++ b/library/subprocess.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Misael borges , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-15 11:25+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -63,8 +65,7 @@ msgstr "" #: ../../library/subprocess.rst:36 msgid "" "The :func:`run` function was added in Python 3.5; if you need to retain " -"compatibility with older versions, see the :ref:`call-function-trio` " -"section." +"compatibility with older versions, see the :ref:`call-function-trio` section." msgstr "" #: ../../library/subprocess.rst:45 @@ -87,8 +88,8 @@ msgstr "" msgid "" "If *capture_output* is true, stdout and stderr will be captured. When used, " "the internal :class:`Popen` object is automatically created with " -"``stdout=PIPE`` and ``stderr=PIPE``. The *stdout* and *stderr* arguments may" -" not be supplied at the same time as *capture_output*. If you wish to " +"``stdout=PIPE`` and ``stderr=PIPE``. The *stdout* and *stderr* arguments may " +"not be supplied at the same time as *capture_output*. If you wish to " "capture and combine both streams into one, use ``stdout=PIPE`` and " "``stderr=STDOUT`` instead of *capture_output*." msgstr "" @@ -96,9 +97,9 @@ msgstr "" #: ../../library/subprocess.rst:62 msgid "" "The *timeout* argument is passed to :meth:`Popen.communicate`. If the " -"timeout expires, the child process will be killed and waited for. The " -":exc:`TimeoutExpired` exception will be re-raised after the child process " -"has terminated." +"timeout expires, the child process will be killed and waited for. The :exc:" +"`TimeoutExpired` exception will be re-raised after the child process has " +"terminated." msgstr "" #: ../../library/subprocess.rst:67 @@ -106,22 +107,22 @@ msgid "" "The *input* argument is passed to :meth:`Popen.communicate` and thus to the " "subprocess's stdin. If used it must be a byte sequence, or a string if " "*encoding* or *errors* is specified or *text* is true. When used, the " -"internal :class:`Popen` object is automatically created with ``stdin=PIPE``," -" and the *stdin* argument may not be used as well." +"internal :class:`Popen` object is automatically created with ``stdin=PIPE``, " +"and the *stdin* argument may not be used as well." msgstr "" #: ../../library/subprocess.rst:73 msgid "" -"If *check* is true, and the process exits with a non-zero exit code, a " -":exc:`CalledProcessError` exception will be raised. Attributes of that " -"exception hold the arguments, the exit code, and stdout and stderr if they " -"were captured." +"If *check* is true, and the process exits with a non-zero exit code, a :exc:" +"`CalledProcessError` exception will be raised. Attributes of that exception " +"hold the arguments, the exit code, and stdout and stderr if they were " +"captured." msgstr "" #: ../../library/subprocess.rst:78 msgid "" -"If *encoding* or *errors* are specified, or *text* is true, file objects for" -" stdin, stdout and stderr are opened in text mode using the specified " +"If *encoding* or *errors* are specified, or *text* is true, file objects for " +"stdin, stdout and stderr are opened in text mode using the specified " "*encoding* and *errors* or the :class:`io.TextIOWrapper` default. The " "*universal_newlines* argument is equivalent to *text* and is provided for " "backwards compatibility. By default, file objects are opened in binary mode." @@ -165,7 +166,7 @@ msgid "" "that it ran successfully." msgstr "" -#: ../../library/subprocess.rst:127 ../../library/subprocess.rst:778 +#: ../../library/subprocess.rst:127 ../../library/subprocess.rst:784 msgid "" "A negative value ``-N`` indicates that the child was terminated by signal " "``N`` (POSIX only)." @@ -173,8 +174,8 @@ msgstr "" #: ../../library/subprocess.rst:132 msgid "" -"Captured stdout from the child process. A bytes sequence, or a string if " -":func:`run` was called with an encoding, errors, or text=True. ``None`` if " +"Captured stdout from the child process. A bytes sequence, or a string if :" +"func:`run` was called with an encoding, errors, or text=True. ``None`` if " "stdout was not captured." msgstr "" @@ -186,8 +187,8 @@ msgstr "" #: ../../library/subprocess.rst:142 msgid "" -"Captured stderr from the child process. A bytes sequence, or a string if " -":func:`run` was called with an encoding, errors, or text=True. ``None`` if " +"Captured stderr from the child process. A bytes sequence, or a string if :" +"func:`run` was called with an encoding, errors, or text=True. ``None`` if " "stderr was not captured." msgstr "" @@ -197,23 +198,23 @@ msgstr "" #: ../../library/subprocess.rst:154 msgid "" -"Special value that can be used as the *stdin*, *stdout* or *stderr* argument" -" to :class:`Popen` and indicates that the special file :data:`os.devnull` " +"Special value that can be used as the *stdin*, *stdout* or *stderr* argument " +"to :class:`Popen` and indicates that the special file :data:`os.devnull` " "will be used." msgstr "" #: ../../library/subprocess.rst:163 msgid "" -"Special value that can be used as the *stdin*, *stdout* or *stderr* argument" -" to :class:`Popen` and indicates that a pipe to the standard stream should " -"be opened. Most useful with :meth:`Popen.communicate`." +"Special value that can be used as the *stdin*, *stdout* or *stderr* argument " +"to :class:`Popen` and indicates that a pipe to the standard stream should be " +"opened. Most useful with :meth:`Popen.communicate`." msgstr "" #: ../../library/subprocess.rst:170 msgid "" "Special value that can be used as the *stderr* argument to :class:`Popen` " -"and indicates that standard error should go into the same handle as standard" -" output." +"and indicates that standard error should go into the same handle as standard " +"output." msgstr "" #: ../../library/subprocess.rst:177 @@ -236,8 +237,8 @@ msgstr "" #: ../../library/subprocess.rst:197 ../../library/subprocess.rst:230 msgid "" -"Output of the child process if it was captured by :func:`run` or " -":func:`check_output`. Otherwise, ``None``." +"Output of the child process if it was captured by :func:`run` or :func:" +"`check_output`. Otherwise, ``None``." msgstr "" #: ../../library/subprocess.rst:202 ../../library/subprocess.rst:235 @@ -256,8 +257,8 @@ msgstr "" #: ../../library/subprocess.rst:216 msgid "" -"Subclass of :exc:`SubprocessError`, raised when a process run by " -":func:`check_call` or :func:`check_output` returns a non-zero exit status." +"Subclass of :exc:`SubprocessError`, raised when a process run by :func:" +"`check_call` or :func:`check_output` returns a non-zero exit status." msgstr "" #: ../../library/subprocess.rst:221 @@ -281,25 +282,24 @@ msgstr "" #: ../../library/subprocess.rst:256 msgid "" "*args* is required for all calls and should be a string, or a sequence of " -"program arguments. Providing a sequence of arguments is generally preferred," -" as it allows the module to take care of any required escaping and quoting " -"of arguments (e.g. to permit spaces in file names). If passing a single " -"string, either *shell* must be :const:`True` (see below) or else the string " -"must simply name the program to be executed without specifying any " -"arguments." +"program arguments. Providing a sequence of arguments is generally preferred, " +"as it allows the module to take care of any required escaping and quoting of " +"arguments (e.g. to permit spaces in file names). If passing a single string, " +"either *shell* must be :const:`True` (see below) or else the string must " +"simply name the program to be executed without specifying any arguments." msgstr "" #: ../../library/subprocess.rst:264 msgid "" "*stdin*, *stdout* and *stderr* specify the executed program's standard " -"input, standard output and standard error file handles, respectively. Valid" -" values are :data:`PIPE`, :data:`DEVNULL`, an existing file descriptor (a " +"input, standard output and standard error file handles, respectively. Valid " +"values are :data:`PIPE`, :data:`DEVNULL`, an existing file descriptor (a " "positive integer), an existing file object, and ``None``. :data:`PIPE` " "indicates that a new pipe to the child should be created. :data:`DEVNULL` " "indicates that the special file :data:`os.devnull` will be used. With the " "default settings of ``None``, no redirection will occur; the child's file " -"handles will be inherited from the parent. Additionally, *stderr* can be " -":data:`STDOUT`, which indicates that the stderr data from the child process " +"handles will be inherited from the parent. Additionally, *stderr* can be :" +"data:`STDOUT`, which indicates that the stderr data from the child process " "should be captured into the same file handle as for *stdout*." msgstr "" @@ -313,11 +313,11 @@ msgstr "" #: ../../library/subprocess.rst:284 msgid "" -"For *stdin*, line ending characters ``'\\n'`` in the input will be converted" -" to the default line separator :data:`os.linesep`. For *stdout* and " -"*stderr*, all line endings in the output will be converted to ``'\\n'``. " -"For more information see the documentation of the :class:`io.TextIOWrapper` " -"class when the *newline* argument to its constructor is ``None``." +"For *stdin*, line ending characters ``'\\n'`` in the input will be converted " +"to the default line separator :data:`os.linesep`. For *stdout* and *stderr*, " +"all line endings in the output will be converted to ``'\\n'``. For more " +"information see the documentation of the :class:`io.TextIOWrapper` class " +"when the *newline* argument to its constructor is ``None``." msgstr "" #: ../../library/subprocess.rst:290 @@ -336,9 +336,9 @@ msgstr "" #: ../../library/subprocess.rst:301 msgid "" -"The newlines attribute of the file objects :attr:`Popen.stdin`, " -":attr:`Popen.stdout` and :attr:`Popen.stderr` are not updated by the " -":meth:`Popen.communicate` method." +"The newlines attribute of the file objects :attr:`Popen.stdin`, :attr:`Popen." +"stdout` and :attr:`Popen.stderr` are not updated by the :meth:`Popen." +"communicate` method." msgstr "" #: ../../library/subprocess.rst:305 @@ -349,20 +349,20 @@ msgid "" "convenient access to other shell features such as shell pipes, filename " "wildcards, environment variable expansion, and expansion of ``~`` to a " "user's home directory. However, note that Python itself offers " -"implementations of many shell-like features (in particular, :mod:`glob`, " -":mod:`fnmatch`, :func:`os.walk`, :func:`os.path.expandvars`, " -":func:`os.path.expanduser`, and :mod:`shutil`)." +"implementations of many shell-like features (in particular, :mod:`glob`, :" +"mod:`fnmatch`, :func:`os.walk`, :func:`os.path.expandvars`, :func:`os.path." +"expanduser`, and :mod:`shutil`)." msgstr "" #: ../../library/subprocess.rst:315 msgid "" -"When *universal_newlines* is ``True``, the class uses the encoding " -":func:`locale.getpreferredencoding(False) ` " -"instead of ``locale.getpreferredencoding()``. See the " -":class:`io.TextIOWrapper` class for more information on this change." +"When *universal_newlines* is ``True``, the class uses the encoding :func:" +"`locale.getpreferredencoding(False) ` instead " +"of ``locale.getpreferredencoding()``. See the :class:`io.TextIOWrapper` " +"class for more information on this change." msgstr "" -#: ../../library/subprocess.rst:323 ../../library/subprocess.rst:407 +#: ../../library/subprocess.rst:323 ../../library/subprocess.rst:413 msgid "" "Read the `Security Considerations`_ section before using ``shell=True``." msgstr "" @@ -387,16 +387,16 @@ msgstr "" #: ../../library/subprocess.rst:345 msgid "" -"Execute a child program in a new process. On POSIX, the class uses " -":meth:`os.execvp`-like behavior to execute the child program. On Windows, " -"the class uses the Windows ``CreateProcess()`` function. The arguments to " -":class:`Popen` are as follows." +"Execute a child program in a new process. On POSIX, the class uses :meth:" +"`os.execvp`-like behavior to execute the child program. On Windows, the " +"class uses the Windows ``CreateProcess()`` function. The arguments to :" +"class:`Popen` are as follows." msgstr "" #: ../../library/subprocess.rst:350 msgid "" -"*args* should be a sequence of program arguments or else a single string. By" -" default, the program to execute is the first item in *args* if *args* is a " +"*args* should be a sequence of program arguments or else a single string. By " +"default, the program to execute is the first item in *args* if *args* is a " "sequence. If *args* is a string, the interpretation is platform-dependent " "and described below. See the *shell* and *executable* arguments for " "additional differences from the default behavior. Unless otherwise stated, " @@ -405,41 +405,48 @@ msgstr "" #: ../../library/subprocess.rst:357 msgid "" +"An example of passing some arguments to an external program as a sequence " +"is::" +msgstr "" + +#: ../../library/subprocess.rst:362 +msgid "" "On POSIX, if *args* is a string, the string is interpreted as the name or " "path of the program to execute. However, this can only be done if not " "passing arguments to the program." msgstr "" -#: ../../library/subprocess.rst:363 +#: ../../library/subprocess.rst:368 msgid "" -":meth:`shlex.split` can be useful when determining the correct tokenization " -"for *args*, especially in complex cases::" +"It may not be obvious how to break a shell command into a sequence of " +"arguments, especially in complex cases. :meth:`shlex.split` can illustrate " +"how to determine the correct tokenization for *args*::" msgstr "" -#: ../../library/subprocess.rst:374 +#: ../../library/subprocess.rst:380 msgid "" "Note in particular that options (such as *-input*) and arguments (such as " "*eggs.txt*) that are separated by whitespace in the shell go in separate " "list elements, while arguments that need quoting or backslash escaping when " -"used in the shell (such as filenames containing spaces or the *echo* command" -" shown above) are single list elements." +"used in the shell (such as filenames containing spaces or the *echo* command " +"shown above) are single list elements." msgstr "" -#: ../../library/subprocess.rst:380 +#: ../../library/subprocess.rst:386 msgid "" "On Windows, if *args* is a sequence, it will be converted to a string in a " "manner described in :ref:`converting-argument-sequence`. This is because " "the underlying ``CreateProcess()`` operates on strings." msgstr "" -#: ../../library/subprocess.rst:384 +#: ../../library/subprocess.rst:390 msgid "" "The *shell* argument (which defaults to ``False``) specifies whether to use " "the shell as the program to execute. If *shell* is ``True``, it is " "recommended to pass *args* as a string rather than as a sequence." msgstr "" -#: ../../library/subprocess.rst:388 +#: ../../library/subprocess.rst:394 msgid "" "On POSIX with ``shell=True``, the shell defaults to :file:`/bin/sh`. If " "*args* is a string, the string specifies the command to execute through the " @@ -447,11 +454,11 @@ msgid "" "when typed at the shell prompt. This includes, for example, quoting or " "backslash escaping filenames with spaces in them. If *args* is a sequence, " "the first item specifies the command string, and any additional items will " -"be treated as additional arguments to the shell itself. That is to say, " -":class:`Popen` does the equivalent of::" +"be treated as additional arguments to the shell itself. That is to say, :" +"class:`Popen` does the equivalent of::" msgstr "" -#: ../../library/subprocess.rst:399 +#: ../../library/subprocess.rst:405 msgid "" "On Windows with ``shell=True``, the :envvar:`COMSPEC` environment variable " "specifies the default shell. The only time you need to specify " @@ -460,35 +467,35 @@ msgid "" "``shell=True`` to run a batch file or console-based executable." msgstr "" -#: ../../library/subprocess.rst:409 +#: ../../library/subprocess.rst:415 msgid "" -"*bufsize* will be supplied as the corresponding argument to the :func:`open`" -" function when creating the stdin/stdout/stderr pipe file objects:" +"*bufsize* will be supplied as the corresponding argument to the :func:`open` " +"function when creating the stdin/stdout/stderr pipe file objects:" msgstr "" -#: ../../library/subprocess.rst:413 +#: ../../library/subprocess.rst:419 msgid "" ":const:`0` means unbuffered (read and write are one system call and can " "return short)" msgstr "" -#: ../../library/subprocess.rst:415 +#: ../../library/subprocess.rst:421 msgid "" -":const:`1` means line buffered (only usable if ``universal_newlines=True`` " -"i.e., in a text mode)" +":const:`1` means line buffered (only usable if ``universal_newlines=True`` i." +"e., in a text mode)" msgstr "" -#: ../../library/subprocess.rst:417 +#: ../../library/subprocess.rst:423 msgid "any other positive value means use a buffer of approximately that size" msgstr "" -#: ../../library/subprocess.rst:419 +#: ../../library/subprocess.rst:425 msgid "" -"negative bufsize (the default) means the system default of " -"io.DEFAULT_BUFFER_SIZE will be used." +"negative bufsize (the default) means the system default of io." +"DEFAULT_BUFFER_SIZE will be used." msgstr "" -#: ../../library/subprocess.rst:422 +#: ../../library/subprocess.rst:428 msgid "" "*bufsize* now defaults to -1 to enable buffering by default to match the " "behavior that most code expects. In versions prior to Python 3.2.4 and " @@ -497,7 +504,7 @@ msgid "" "of Python 2 as most code expected." msgstr "" -#: ../../library/subprocess.rst:429 +#: ../../library/subprocess.rst:435 msgid "" "The *executable* argument specifies a replacement program to execute. It " "is very seldom needed. When ``shell=False``, *executable* replaces the " @@ -510,27 +517,27 @@ msgid "" "default :file:`/bin/sh`." msgstr "" -#: ../../library/subprocess.rst:439 +#: ../../library/subprocess.rst:445 msgid "" "*stdin*, *stdout* and *stderr* specify the executed program's standard " -"input, standard output and standard error file handles, respectively. Valid" -" values are :data:`PIPE`, :data:`DEVNULL`, an existing file descriptor (a " -"positive integer), an existing :term:`file object`, and ``None``. " -":data:`PIPE` indicates that a new pipe to the child should be created. " -":data:`DEVNULL` indicates that the special file :data:`os.devnull` will be " -"used. With the default settings of ``None``, no redirection will occur; the " +"input, standard output and standard error file handles, respectively. Valid " +"values are :data:`PIPE`, :data:`DEVNULL`, an existing file descriptor (a " +"positive integer), an existing :term:`file object`, and ``None``. :data:" +"`PIPE` indicates that a new pipe to the child should be created. :data:" +"`DEVNULL` indicates that the special file :data:`os.devnull` will be used. " +"With the default settings of ``None``, no redirection will occur; the " "child's file handles will be inherited from the parent. Additionally, " "*stderr* can be :data:`STDOUT`, which indicates that the stderr data from " "the applications should be captured into the same file handle as for stdout." msgstr "" -#: ../../library/subprocess.rst:450 +#: ../../library/subprocess.rst:456 msgid "" "If *preexec_fn* is set to a callable object, this object will be called in " "the child process just before the child is executed. (POSIX only)" msgstr "" -#: ../../library/subprocess.rst:456 +#: ../../library/subprocess.rst:462 msgid "" "The *preexec_fn* parameter is not safe to use in the presence of threads in " "your application. The child process could deadlock before exec is called. " @@ -538,289 +545,286 @@ msgid "" "call into." msgstr "" -#: ../../library/subprocess.rst:464 +#: ../../library/subprocess.rst:470 msgid "" "If you need to modify the environment for the child use the *env* parameter " "rather than doing it in a *preexec_fn*. The *start_new_session* parameter " -"can take the place of a previously common use of *preexec_fn* to call " -"os.setsid() in the child." +"can take the place of a previously common use of *preexec_fn* to call os." +"setsid() in the child." msgstr "" -#: ../../library/subprocess.rst:469 +#: ../../library/subprocess.rst:475 msgid "" "If *close_fds* is true, all file descriptors except :const:`0`, :const:`1` " "and :const:`2` will be closed before the child process is executed. " -"Otherwise when *close_fds* is false, file descriptors obey their inheritable" -" flag as described in :ref:`fd_inheritance`." +"Otherwise when *close_fds* is false, file descriptors obey their inheritable " +"flag as described in :ref:`fd_inheritance`." msgstr "" -#: ../../library/subprocess.rst:474 +#: ../../library/subprocess.rst:480 msgid "" "On Windows, if *close_fds* is true then no handles will be inherited by the " -"child process unless explicitly passed in the ``handle_list`` element of " -":attr:`STARTUPINFO.lpAttributeList`, or by standard handle redirection." +"child process unless explicitly passed in the ``handle_list`` element of :" +"attr:`STARTUPINFO.lpAttributeList`, or by standard handle redirection." msgstr "" -#: ../../library/subprocess.rst:478 +#: ../../library/subprocess.rst:484 msgid "" "The default for *close_fds* was changed from :const:`False` to what is " "described above." msgstr "" -#: ../../library/subprocess.rst:482 +#: ../../library/subprocess.rst:488 msgid "" -"On Windows the default for *close_fds* was changed from :const:`False` to " -":const:`True` when redirecting the standard handles. It's now possible to " -"set *close_fds* to :const:`True` when redirecting the standard handles." +"On Windows the default for *close_fds* was changed from :const:`False` to :" +"const:`True` when redirecting the standard handles. It's now possible to set " +"*close_fds* to :const:`True` when redirecting the standard handles." msgstr "" -#: ../../library/subprocess.rst:487 +#: ../../library/subprocess.rst:493 msgid "" "*pass_fds* is an optional sequence of file descriptors to keep open between " -"the parent and child. Providing any *pass_fds* forces *close_fds* to be " -":const:`True`. (POSIX only)" +"the parent and child. Providing any *pass_fds* forces *close_fds* to be :" +"const:`True`. (POSIX only)" msgstr "" -#: ../../library/subprocess.rst:491 +#: ../../library/subprocess.rst:497 msgid "The *pass_fds* parameter was added." msgstr "" -#: ../../library/subprocess.rst:494 +#: ../../library/subprocess.rst:500 msgid "" "If *cwd* is not ``None``, the function changes the working directory to " -"*cwd* before executing the child. *cwd* can be a :class:`str` and :term" -":`path-like ` object. In particular, the function looks " +"*cwd* before executing the child. *cwd* can be a :class:`str` and :term:" +"`path-like ` object. In particular, the function looks " "for *executable* (or for the first item in *args*) relative to *cwd* if the " "executable path is a relative path." msgstr "" -#: ../../library/subprocess.rst:500 +#: ../../library/subprocess.rst:506 msgid "*cwd* parameter accepts a :term:`path-like object`." msgstr "" -#: ../../library/subprocess.rst:503 +#: ../../library/subprocess.rst:509 msgid "" "If *restore_signals* is true (the default) all signals that Python has set " "to SIG_IGN are restored to SIG_DFL in the child process before the exec. " -"Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. (POSIX " -"only)" +"Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. (POSIX only)" msgstr "" -#: ../../library/subprocess.rst:508 +#: ../../library/subprocess.rst:514 msgid "*restore_signals* was added." msgstr "" -#: ../../library/subprocess.rst:511 +#: ../../library/subprocess.rst:517 msgid "" "If *start_new_session* is true the setsid() system call will be made in the " "child process prior to the execution of the subprocess. (POSIX only)" msgstr "" -#: ../../library/subprocess.rst:514 +#: ../../library/subprocess.rst:520 msgid "*start_new_session* was added." msgstr "" -#: ../../library/subprocess.rst:517 +#: ../../library/subprocess.rst:523 msgid "" "If *env* is not ``None``, it must be a mapping that defines the environment " "variables for the new process; these are used instead of the default " "behavior of inheriting the current process' environment." msgstr "" -#: ../../library/subprocess.rst:523 +#: ../../library/subprocess.rst:529 msgid "" "If specified, *env* must provide any variables required for the program to " "execute. On Windows, in order to run a `side-by-side assembly`_ the " "specified *env* **must** include a valid :envvar:`SystemRoot`." msgstr "" -#: ../../library/subprocess.rst:529 +#: ../../library/subprocess.rst:535 msgid "" -"If *encoding* or *errors* are specified, or *text* is true, the file objects" -" *stdin*, *stdout* and *stderr* are opened in text mode with the specified " +"If *encoding* or *errors* are specified, or *text* is true, the file objects " +"*stdin*, *stdout* and *stderr* are opened in text mode with the specified " "encoding and *errors*, as described above in :ref:`frequently-used-" "arguments`. The *universal_newlines* argument is equivalent to *text* and " -"is provided for backwards compatibility. By default, file objects are opened" -" in binary mode." +"is provided for backwards compatibility. By default, file objects are opened " +"in binary mode." msgstr "" -#: ../../library/subprocess.rst:535 +#: ../../library/subprocess.rst:541 msgid "*encoding* and *errors* were added." msgstr "" -#: ../../library/subprocess.rst:538 ../../library/subprocess.rst:1106 +#: ../../library/subprocess.rst:544 ../../library/subprocess.rst:1112 msgid "*text* was added as a more readable alias for *universal_newlines*." msgstr "" -#: ../../library/subprocess.rst:541 +#: ../../library/subprocess.rst:547 msgid "" "If given, *startupinfo* will be a :class:`STARTUPINFO` object, which is " "passed to the underlying ``CreateProcess`` function. *creationflags*, if " "given, can be one or more of the following flags:" msgstr "" -#: ../../library/subprocess.rst:545 +#: ../../library/subprocess.rst:551 msgid ":data:`CREATE_NEW_CONSOLE`" -msgstr "" +msgstr ":data:`CREATE_NEW_CONSOLE`" -#: ../../library/subprocess.rst:546 +#: ../../library/subprocess.rst:552 msgid ":data:`CREATE_NEW_PROCESS_GROUP`" -msgstr "" +msgstr ":data:`CREATE_NEW_PROCESS_GROUP`" -#: ../../library/subprocess.rst:547 +#: ../../library/subprocess.rst:553 msgid ":data:`ABOVE_NORMAL_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`ABOVE_NORMAL_PRIORITY_CLASS`" -#: ../../library/subprocess.rst:548 +#: ../../library/subprocess.rst:554 msgid ":data:`BELOW_NORMAL_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`BELOW_NORMAL_PRIORITY_CLASS`" -#: ../../library/subprocess.rst:549 +#: ../../library/subprocess.rst:555 msgid ":data:`HIGH_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`HIGH_PRIORITY_CLASS`" -#: ../../library/subprocess.rst:550 +#: ../../library/subprocess.rst:556 msgid ":data:`IDLE_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`IDLE_PRIORITY_CLASS`" -#: ../../library/subprocess.rst:551 +#: ../../library/subprocess.rst:557 msgid ":data:`NORMAL_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`NORMAL_PRIORITY_CLASS`" -#: ../../library/subprocess.rst:552 +#: ../../library/subprocess.rst:558 msgid ":data:`REALTIME_PRIORITY_CLASS`" -msgstr "" +msgstr ":data:`REALTIME_PRIORITY_CLASS`" -#: ../../library/subprocess.rst:553 +#: ../../library/subprocess.rst:559 msgid ":data:`CREATE_NO_WINDOW`" -msgstr "" +msgstr ":data:`CREATE_NO_WINDOW`" -#: ../../library/subprocess.rst:554 +#: ../../library/subprocess.rst:560 msgid ":data:`DETACHED_PROCESS`" -msgstr "" +msgstr ":data:`DETACHED_PROCESS`" -#: ../../library/subprocess.rst:555 +#: ../../library/subprocess.rst:561 msgid ":data:`CREATE_DEFAULT_ERROR_MODE`" -msgstr "" +msgstr ":data:`CREATE_DEFAULT_ERROR_MODE`" -#: ../../library/subprocess.rst:556 +#: ../../library/subprocess.rst:562 msgid ":data:`CREATE_BREAKAWAY_FROM_JOB`" -msgstr "" +msgstr ":data:`CREATE_BREAKAWAY_FROM_JOB`" -#: ../../library/subprocess.rst:558 +#: ../../library/subprocess.rst:564 msgid "" "Popen objects are supported as context managers via the :keyword:`with` " -"statement: on exit, standard file descriptors are closed, and the process is" -" waited for. ::" +"statement: on exit, standard file descriptors are closed, and the process is " +"waited for. ::" msgstr "" -#: ../../library/subprocess.rst:565 +#: ../../library/subprocess.rst:571 msgid "Added context manager support." msgstr "" -#: ../../library/subprocess.rst:568 +#: ../../library/subprocess.rst:574 msgid "" "Popen destructor now emits a :exc:`ResourceWarning` warning if the child " "process is still running." msgstr "" -#: ../../library/subprocess.rst:574 +#: ../../library/subprocess.rst:580 msgid "Exceptions" msgstr "Exceções" -#: ../../library/subprocess.rst:576 +#: ../../library/subprocess.rst:582 msgid "" "Exceptions raised in the child process, before the new program has started " "to execute, will be re-raised in the parent." msgstr "" -#: ../../library/subprocess.rst:579 +#: ../../library/subprocess.rst:585 msgid "" "The most common exception raised is :exc:`OSError`. This occurs, for " "example, when trying to execute a non-existent file. Applications should " "prepare for :exc:`OSError` exceptions." msgstr "" -#: ../../library/subprocess.rst:583 +#: ../../library/subprocess.rst:589 msgid "" "A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid " "arguments." msgstr "" -#: ../../library/subprocess.rst:586 +#: ../../library/subprocess.rst:592 msgid "" -":func:`check_call` and :func:`check_output` will raise " -":exc:`CalledProcessError` if the called process returns a non-zero return " -"code." +":func:`check_call` and :func:`check_output` will raise :exc:" +"`CalledProcessError` if the called process returns a non-zero return code." msgstr "" -#: ../../library/subprocess.rst:590 +#: ../../library/subprocess.rst:596 msgid "" -"All of the functions and methods that accept a *timeout* parameter, such as " -":func:`call` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` " +"All of the functions and methods that accept a *timeout* parameter, such as :" +"func:`call` and :meth:`Popen.communicate` will raise :exc:`TimeoutExpired` " "if the timeout expires before the process exits." msgstr "" -#: ../../library/subprocess.rst:594 +#: ../../library/subprocess.rst:600 msgid "" "Exceptions defined in this module all inherit from :exc:`SubprocessError`." msgstr "" -#: ../../library/subprocess.rst:596 +#: ../../library/subprocess.rst:602 msgid "The :exc:`SubprocessError` base class was added." msgstr "" -#: ../../library/subprocess.rst:601 +#: ../../library/subprocess.rst:607 msgid "Security Considerations" msgstr "" -#: ../../library/subprocess.rst:603 +#: ../../library/subprocess.rst:609 msgid "" -"Unlike some other popen functions, this implementation will never implicitly" -" call a system shell. This means that all characters, including shell " +"Unlike some other popen functions, this implementation will never implicitly " +"call a system shell. This means that all characters, including shell " "metacharacters, can safely be passed to child processes. If the shell is " "invoked explicitly, via ``shell=True``, it is the application's " "responsibility to ensure that all whitespace and metacharacters are quoted " -"appropriately to avoid `shell injection " -"`_ " -"vulnerabilities." +"appropriately to avoid `shell injection `_ vulnerabilities." msgstr "" -#: ../../library/subprocess.rst:612 +#: ../../library/subprocess.rst:618 msgid "" "When using ``shell=True``, the :func:`shlex.quote` function can be used to " "properly escape whitespace and shell metacharacters in strings that are " "going to be used to construct shell commands." msgstr "" -#: ../../library/subprocess.rst:618 +#: ../../library/subprocess.rst:624 msgid "Popen Objects" msgstr "" -#: ../../library/subprocess.rst:620 +#: ../../library/subprocess.rst:626 msgid "Instances of the :class:`Popen` class have the following methods:" msgstr "" -#: ../../library/subprocess.rst:625 +#: ../../library/subprocess.rst:631 msgid "" -"Check if child process has terminated. Set and return " -":attr:`~Popen.returncode` attribute. Otherwise, returns ``None``." +"Check if child process has terminated. Set and return :attr:`~Popen." +"returncode` attribute. Otherwise, returns ``None``." msgstr "" -#: ../../library/subprocess.rst:631 +#: ../../library/subprocess.rst:637 msgid "" -"Wait for child process to terminate. Set and return " -":attr:`~Popen.returncode` attribute." +"Wait for child process to terminate. Set and return :attr:`~Popen." +"returncode` attribute." msgstr "" -#: ../../library/subprocess.rst:634 +#: ../../library/subprocess.rst:640 msgid "" -"If the process does not terminate after *timeout* seconds, raise a " -":exc:`TimeoutExpired` exception. It is safe to catch this exception and " -"retry the wait." +"If the process does not terminate after *timeout* seconds, raise a :exc:" +"`TimeoutExpired` exception. It is safe to catch this exception and retry " +"the wait." msgstr "" -#: ../../library/subprocess.rst:640 +#: ../../library/subprocess.rst:646 msgid "" "This will deadlock when using ``stdout=PIPE`` or ``stderr=PIPE`` and the " "child process generates enough output to a pipe such that it blocks waiting " @@ -828,35 +832,35 @@ msgid "" "when using pipes to avoid that." msgstr "" -#: ../../library/subprocess.rst:647 +#: ../../library/subprocess.rst:653 msgid "" "The function is implemented using a busy loop (non-blocking call and short " -"sleeps). Use the :mod:`asyncio` module for an asynchronous wait: see " -":class:`asyncio.create_subprocess_exec`." +"sleeps). Use the :mod:`asyncio` module for an asynchronous wait: see :class:" +"`asyncio.create_subprocess_exec`." msgstr "" -#: ../../library/subprocess.rst:651 ../../library/subprocess.rst:691 -#: ../../library/subprocess.rst:1025 ../../library/subprocess.rst:1053 -#: ../../library/subprocess.rst:1097 +#: ../../library/subprocess.rst:657 ../../library/subprocess.rst:697 +#: ../../library/subprocess.rst:1031 ../../library/subprocess.rst:1059 +#: ../../library/subprocess.rst:1103 msgid "*timeout* was added." msgstr "" -#: ../../library/subprocess.rst:656 +#: ../../library/subprocess.rst:662 msgid "" "Interact with process: Send data to stdin. Read data from stdout and " "stderr, until end-of-file is reached. Wait for process to terminate. The " -"optional *input* argument should be data to be sent to the child process, or" -" ``None``, if no data should be sent to the child. If streams were opened " -"in text mode, *input* must be a string. Otherwise, it must be bytes." +"optional *input* argument should be data to be sent to the child process, or " +"``None``, if no data should be sent to the child. If streams were opened in " +"text mode, *input* must be a string. Otherwise, it must be bytes." msgstr "" -#: ../../library/subprocess.rst:662 +#: ../../library/subprocess.rst:668 msgid "" -":meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data" -" will be strings if streams were opened in text mode; otherwise, bytes." +":meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``. The data " +"will be strings if streams were opened in text mode; otherwise, bytes." msgstr "" -#: ../../library/subprocess.rst:666 +#: ../../library/subprocess.rst:672 msgid "" "Note that if you want to send data to the process's stdin, you need to " "create the Popen object with ``stdin=PIPE``. Similarly, to get anything " @@ -864,61 +868,61 @@ msgid "" "and/or ``stderr=PIPE`` too." msgstr "" -#: ../../library/subprocess.rst:671 +#: ../../library/subprocess.rst:677 msgid "" -"If the process does not terminate after *timeout* seconds, a " -":exc:`TimeoutExpired` exception will be raised. Catching this exception and" -" retrying communication will not lose any output." +"If the process does not terminate after *timeout* seconds, a :exc:" +"`TimeoutExpired` exception will be raised. Catching this exception and " +"retrying communication will not lose any output." msgstr "" -#: ../../library/subprocess.rst:675 +#: ../../library/subprocess.rst:681 msgid "" "The child process is not killed if the timeout expires, so in order to " "cleanup properly a well-behaved application should kill the child process " "and finish communication::" msgstr "" -#: ../../library/subprocess.rst:688 +#: ../../library/subprocess.rst:694 msgid "" "The data read is buffered in memory, so do not use this method if the data " "size is large or unlimited." msgstr "" -#: ../../library/subprocess.rst:697 +#: ../../library/subprocess.rst:703 msgid "Sends the signal *signal* to the child." msgstr "" -#: ../../library/subprocess.rst:701 +#: ../../library/subprocess.rst:707 msgid "" "On Windows, SIGTERM is an alias for :meth:`terminate`. CTRL_C_EVENT and " "CTRL_BREAK_EVENT can be sent to processes started with a *creationflags* " "parameter which includes `CREATE_NEW_PROCESS_GROUP`." msgstr "" -#: ../../library/subprocess.rst:708 +#: ../../library/subprocess.rst:714 msgid "" "Stop the child. On Posix OSs the method sends SIGTERM to the child. On " "Windows the Win32 API function :c:func:`TerminateProcess` is called to stop " "the child." msgstr "" -#: ../../library/subprocess.rst:715 +#: ../../library/subprocess.rst:721 msgid "" "Kills the child. On Posix OSs the function sends SIGKILL to the child. On " "Windows :meth:`kill` is an alias for :meth:`terminate`." msgstr "" -#: ../../library/subprocess.rst:719 +#: ../../library/subprocess.rst:725 msgid "The following attributes are also available:" msgstr "" -#: ../../library/subprocess.rst:723 +#: ../../library/subprocess.rst:729 msgid "" "The *args* argument as it was passed to :class:`Popen` -- a sequence of " "program arguments or else a single string." msgstr "" -#: ../../library/subprocess.rst:730 +#: ../../library/subprocess.rst:736 msgid "" "If the *stdin* argument was :data:`PIPE`, this attribute is a writeable " "stream object as returned by :func:`open`. If the *encoding* or *errors* " @@ -927,62 +931,62 @@ msgid "" "argument was not :data:`PIPE`, this attribute is ``None``." msgstr "" -#: ../../library/subprocess.rst:739 +#: ../../library/subprocess.rst:745 msgid "" "If the *stdout* argument was :data:`PIPE`, this attribute is a readable " "stream object as returned by :func:`open`. Reading from the stream provides " "output from the child process. If the *encoding* or *errors* arguments were " -"specified or the *universal_newlines* argument was ``True``, the stream is a" -" text stream, otherwise it is a byte stream. If the *stdout* argument was " +"specified or the *universal_newlines* argument was ``True``, the stream is a " +"text stream, otherwise it is a byte stream. If the *stdout* argument was " "not :data:`PIPE`, this attribute is ``None``." msgstr "" -#: ../../library/subprocess.rst:749 +#: ../../library/subprocess.rst:755 msgid "" "If the *stderr* argument was :data:`PIPE`, this attribute is a readable " "stream object as returned by :func:`open`. Reading from the stream provides " -"error output from the child process. If the *encoding* or *errors* arguments" -" were specified or the *universal_newlines* argument was ``True``, the " -"stream is a text stream, otherwise it is a byte stream. If the *stderr* " -"argument was not :data:`PIPE`, this attribute is ``None``." +"error output from the child process. If the *encoding* or *errors* arguments " +"were specified or the *universal_newlines* argument was ``True``, the stream " +"is a text stream, otherwise it is a byte stream. If the *stderr* argument " +"was not :data:`PIPE`, this attribute is ``None``." msgstr "" -#: ../../library/subprocess.rst:758 +#: ../../library/subprocess.rst:764 msgid "" -"Use :meth:`~Popen.communicate` rather than :attr:`.stdin.write " -"`, :attr:`.stdout.read ` or :attr:`.stderr.read " -"` to avoid deadlocks due to any of the other OS pipe buffers " -"filling up and blocking the child process." +"Use :meth:`~Popen.communicate` rather than :attr:`.stdin.write `, :attr:`.stdout.read ` or :attr:`.stderr.read ` to avoid deadlocks due to any of the other OS pipe buffers filling " +"up and blocking the child process." msgstr "" -#: ../../library/subprocess.rst:766 +#: ../../library/subprocess.rst:772 msgid "The process ID of the child process." msgstr "" -#: ../../library/subprocess.rst:768 +#: ../../library/subprocess.rst:774 msgid "" "Note that if you set the *shell* argument to ``True``, this is the process " "ID of the spawned shell." msgstr "" -#: ../../library/subprocess.rst:774 +#: ../../library/subprocess.rst:780 msgid "" "The child return code, set by :meth:`poll` and :meth:`wait` (and indirectly " -"by :meth:`communicate`). A ``None`` value indicates that the process hasn't" -" terminated yet." +"by :meth:`communicate`). A ``None`` value indicates that the process hasn't " +"terminated yet." msgstr "" -#: ../../library/subprocess.rst:783 +#: ../../library/subprocess.rst:789 msgid "Windows Popen Helpers" msgstr "" -#: ../../library/subprocess.rst:785 +#: ../../library/subprocess.rst:791 msgid "" -"The :class:`STARTUPINFO` class and following constants are only available on" -" Windows." +"The :class:`STARTUPINFO` class and following constants are only available on " +"Windows." msgstr "" -#: ../../library/subprocess.rst:791 +#: ../../library/subprocess.rst:797 msgid "" "Partial support of the Windows `STARTUPINFO `__ structure is used for :class:`Popen` " @@ -990,292 +994,291 @@ msgid "" "only arguments." msgstr "" -#: ../../library/subprocess.rst:796 +#: ../../library/subprocess.rst:802 msgid "Keyword-only argument support was added." msgstr "" -#: ../../library/subprocess.rst:801 +#: ../../library/subprocess.rst:807 msgid "" "A bit field that determines whether certain :class:`STARTUPINFO` attributes " "are used when the process creates a window. ::" msgstr "" -#: ../../library/subprocess.rst:809 +#: ../../library/subprocess.rst:815 msgid "" -"If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is" -" the standard input handle for the process. If :data:`STARTF_USESTDHANDLES` " +"If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is " +"the standard input handle for the process. If :data:`STARTF_USESTDHANDLES` " "is not specified, the default for standard input is the keyboard buffer." msgstr "" -#: ../../library/subprocess.rst:816 +#: ../../library/subprocess.rst:822 msgid "" -"If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is" -" the standard output handle for the process. Otherwise, this attribute is " +"If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is " +"the standard output handle for the process. Otherwise, this attribute is " "ignored and the default for standard output is the console window's buffer." msgstr "" -#: ../../library/subprocess.rst:823 +#: ../../library/subprocess.rst:829 msgid "" -"If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is" -" the standard error handle for the process. Otherwise, this attribute is " +"If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute is " +"the standard error handle for the process. Otherwise, this attribute is " "ignored and the default for standard error is the console window's buffer." msgstr "" -#: ../../library/subprocess.rst:829 +#: ../../library/subprocess.rst:835 msgid "" "If :attr:`dwFlags` specifies :data:`STARTF_USESHOWWINDOW`, this attribute " -"can be any of the values that can be specified in the ``nCmdShow`` parameter" -" for the `ShowWindow `__ function, except for " -"``SW_SHOWDEFAULT``. Otherwise, this attribute is ignored." +"can be any of the values that can be specified in the ``nCmdShow`` parameter " +"for the `ShowWindow `__ function, except for ``SW_SHOWDEFAULT``. " +"Otherwise, this attribute is ignored." msgstr "" -#: ../../library/subprocess.rst:836 +#: ../../library/subprocess.rst:842 msgid "" -":data:`SW_HIDE` is provided for this attribute. It is used when " -":class:`Popen` is called with ``shell=True``." +":data:`SW_HIDE` is provided for this attribute. It is used when :class:" +"`Popen` is called with ``shell=True``." msgstr "" -#: ../../library/subprocess.rst:841 +#: ../../library/subprocess.rst:847 msgid "" "A dictionary of additional attributes for process creation as given in " -"``STARTUPINFOEX``, see `UpdateProcThreadAttribute " -"`__." +"``STARTUPINFOEX``, see `UpdateProcThreadAttribute `__." msgstr "" -#: ../../library/subprocess.rst:845 +#: ../../library/subprocess.rst:851 msgid "Supported attributes:" msgstr "" -#: ../../library/subprocess.rst:863 +#: ../../library/subprocess.rst:869 msgid "**handle_list**" msgstr "" -#: ../../library/subprocess.rst:848 +#: ../../library/subprocess.rst:854 msgid "" "Sequence of handles that will be inherited. *close_fds* must be true if non-" "empty." msgstr "" -#: ../../library/subprocess.rst:851 +#: ../../library/subprocess.rst:857 msgid "" -"The handles must be temporarily made inheritable by " -":func:`os.set_handle_inheritable` when passed to the :class:`Popen` " -"constructor, else :class:`OSError` will be raised with Windows error " +"The handles must be temporarily made inheritable by :func:`os." +"set_handle_inheritable` when passed to the :class:`Popen` constructor, else :" +"class:`OSError` will be raised with Windows error " "``ERROR_INVALID_PARAMETER`` (87)." msgstr "" -#: ../../library/subprocess.rst:858 +#: ../../library/subprocess.rst:864 msgid "" "In a multithreaded process, use caution to avoid leaking handles that are " "marked inheritable when combining this feature with concurrent calls to " -"other process creation functions that inherit all handles such as " -":func:`os.system`. This also applies to standard handle redirection, which " +"other process creation functions that inherit all handles such as :func:`os." +"system`. This also applies to standard handle redirection, which " "temporarily creates inheritable handles." msgstr "" -#: ../../library/subprocess.rst:868 +#: ../../library/subprocess.rst:874 msgid "Windows Constants" msgstr "" -#: ../../library/subprocess.rst:870 +#: ../../library/subprocess.rst:876 msgid "The :mod:`subprocess` module exposes the following constants." msgstr "" -#: ../../library/subprocess.rst:874 +#: ../../library/subprocess.rst:880 msgid "" "The standard input device. Initially, this is the console input buffer, " "``CONIN$``." msgstr "" -#: ../../library/subprocess.rst:879 +#: ../../library/subprocess.rst:885 msgid "" "The standard output device. Initially, this is the active console screen " "buffer, ``CONOUT$``." msgstr "" -#: ../../library/subprocess.rst:884 +#: ../../library/subprocess.rst:890 msgid "" "The standard error device. Initially, this is the active console screen " "buffer, ``CONOUT$``." msgstr "" -#: ../../library/subprocess.rst:889 +#: ../../library/subprocess.rst:895 msgid "Hides the window. Another window will be activated." msgstr "" -#: ../../library/subprocess.rst:893 +#: ../../library/subprocess.rst:899 msgid "" -"Specifies that the :attr:`STARTUPINFO.hStdInput`, " -":attr:`STARTUPINFO.hStdOutput`, and :attr:`STARTUPINFO.hStdError` attributes" -" contain additional information." +"Specifies that the :attr:`STARTUPINFO.hStdInput`, :attr:`STARTUPINFO." +"hStdOutput`, and :attr:`STARTUPINFO.hStdError` attributes contain additional " +"information." msgstr "" -#: ../../library/subprocess.rst:899 +#: ../../library/subprocess.rst:905 msgid "" "Specifies that the :attr:`STARTUPINFO.wShowWindow` attribute contains " "additional information." msgstr "" -#: ../../library/subprocess.rst:904 +#: ../../library/subprocess.rst:910 msgid "" "The new process has a new console, instead of inheriting its parent's " "console (the default)." msgstr "" -#: ../../library/subprocess.rst:909 +#: ../../library/subprocess.rst:915 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "group will be created. This flag is necessary for using :func:`os.kill` on " "the subprocess." msgstr "" -#: ../../library/subprocess.rst:913 +#: ../../library/subprocess.rst:919 msgid "This flag is ignored if :data:`CREATE_NEW_CONSOLE` is specified." msgstr "" -#: ../../library/subprocess.rst:917 +#: ../../library/subprocess.rst:923 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will have an above average priority." msgstr "" -#: ../../library/subprocess.rst:924 +#: ../../library/subprocess.rst:930 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will have a below average priority." msgstr "" -#: ../../library/subprocess.rst:931 +#: ../../library/subprocess.rst:937 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will have a high priority." msgstr "" -#: ../../library/subprocess.rst:938 +#: ../../library/subprocess.rst:944 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will have an idle (lowest) priority." msgstr "" -#: ../../library/subprocess.rst:945 +#: ../../library/subprocess.rst:951 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will have an normal priority. (default)" msgstr "" -#: ../../library/subprocess.rst:952 +#: ../../library/subprocess.rst:958 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will have realtime priority. You should almost never use " "REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage " -"mouse input, keyboard input, and background disk flushing. This class can be" -" appropriate for applications that \"talk\" directly to hardware or that " +"mouse input, keyboard input, and background disk flushing. This class can be " +"appropriate for applications that \"talk\" directly to hardware or that " "perform brief tasks that should have limited interruptions." msgstr "" -#: ../../library/subprocess.rst:963 +#: ../../library/subprocess.rst:969 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will not create a window." msgstr "" -#: ../../library/subprocess.rst:970 +#: ../../library/subprocess.rst:976 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "will not inherit its parent's console. This value cannot be used with " "CREATE_NEW_CONSOLE." msgstr "" -#: ../../library/subprocess.rst:978 +#: ../../library/subprocess.rst:984 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "does not inherit the error mode of the calling process. Instead, the new " -"process gets the default error mode. This feature is particularly useful for" -" multithreaded shell applications that run with hard errors disabled." +"process gets the default error mode. This feature is particularly useful for " +"multithreaded shell applications that run with hard errors disabled." msgstr "" -#: ../../library/subprocess.rst:988 +#: ../../library/subprocess.rst:994 msgid "" "A :class:`Popen` ``creationflags`` parameter to specify that a new process " "is not associated with the job." msgstr "" -#: ../../library/subprocess.rst:996 +#: ../../library/subprocess.rst:1002 msgid "Older high-level API" msgstr "" -#: ../../library/subprocess.rst:998 +#: ../../library/subprocess.rst:1004 msgid "" "Prior to Python 3.5, these three functions comprised the high level API to " "subprocess. You can now use :func:`run` in many cases, but lots of existing " "code calls these functions." msgstr "" -#: ../../library/subprocess.rst:1004 +#: ../../library/subprocess.rst:1010 msgid "" "Run the command described by *args*. Wait for command to complete, then " "return the :attr:`~Popen.returncode` attribute." msgstr "" -#: ../../library/subprocess.rst:1007 ../../library/subprocess.rst:1035 +#: ../../library/subprocess.rst:1013 ../../library/subprocess.rst:1041 msgid "" "Code needing to capture stdout or stderr should use :func:`run` instead:" msgstr "" -#: ../../library/subprocess.rst:1009 +#: ../../library/subprocess.rst:1015 msgid "run(...).returncode" msgstr "" -#: ../../library/subprocess.rst:1011 ../../library/subprocess.rst:1039 +#: ../../library/subprocess.rst:1017 ../../library/subprocess.rst:1045 msgid "To suppress stdout or stderr, supply a value of :data:`DEVNULL`." msgstr "" -#: ../../library/subprocess.rst:1013 ../../library/subprocess.rst:1041 +#: ../../library/subprocess.rst:1019 ../../library/subprocess.rst:1047 msgid "" "The arguments shown above are merely some common ones. The full function " "signature is the same as that of the :class:`Popen` constructor - this " -"function passes all supplied arguments other than *timeout* directly through" -" to that interface." +"function passes all supplied arguments other than *timeout* directly through " +"to that interface." msgstr "" -#: ../../library/subprocess.rst:1020 ../../library/subprocess.rst:1048 +#: ../../library/subprocess.rst:1026 ../../library/subprocess.rst:1054 msgid "" -"Do not use ``stdout=PIPE`` or ``stderr=PIPE`` with this function. The child" -" process will block if it generates enough output to a pipe to fill up the " -"OS pipe buffer as the pipes are not being read from." +"Do not use ``stdout=PIPE`` or ``stderr=PIPE`` with this function. The child " +"process will block if it generates enough output to a pipe to fill up the OS " +"pipe buffer as the pipes are not being read from." msgstr "" -#: ../../library/subprocess.rst:1030 +#: ../../library/subprocess.rst:1036 msgid "" "Run command with arguments. Wait for command to complete. If the return " -"code was zero then return, otherwise raise :exc:`CalledProcessError`. The " -":exc:`CalledProcessError` object will have the return code in the " -":attr:`~CalledProcessError.returncode` attribute." +"code was zero then return, otherwise raise :exc:`CalledProcessError`. The :" +"exc:`CalledProcessError` object will have the return code in the :attr:" +"`~CalledProcessError.returncode` attribute." msgstr "" -#: ../../library/subprocess.rst:1037 +#: ../../library/subprocess.rst:1043 msgid "run(..., check=True)" msgstr "" -#: ../../library/subprocess.rst:1061 +#: ../../library/subprocess.rst:1067 msgid "Run command with arguments and return its output." msgstr "" -#: ../../library/subprocess.rst:1063 +#: ../../library/subprocess.rst:1069 msgid "" -"If the return code was non-zero it raises a :exc:`CalledProcessError`. The " -":exc:`CalledProcessError` object will have the return code in the " -":attr:`~CalledProcessError.returncode` attribute and any output in the " -":attr:`~CalledProcessError.output` attribute." +"If the return code was non-zero it raises a :exc:`CalledProcessError`. The :" +"exc:`CalledProcessError` object will have the return code in the :attr:" +"`~CalledProcessError.returncode` attribute and any output in the :attr:" +"`~CalledProcessError.output` attribute." msgstr "" -#: ../../library/subprocess.rst:1068 +#: ../../library/subprocess.rst:1074 msgid "This is equivalent to::" msgstr "This is equivalent to::" -#: ../../library/subprocess.rst:1072 +#: ../../library/subprocess.rst:1078 msgid "" "The arguments shown above are merely some common ones. The full function " "signature is largely the same as that of :func:`run` - most arguments are " @@ -1284,267 +1287,267 @@ msgid "" "supported." msgstr "" -#: ../../library/subprocess.rst:1078 +#: ../../library/subprocess.rst:1084 msgid "" "By default, this function will return the data as encoded bytes. The actual " "encoding of the output data may depend on the command being invoked, so the " "decoding to text will often need to be handled at the application level." msgstr "" -#: ../../library/subprocess.rst:1082 +#: ../../library/subprocess.rst:1088 msgid "" -"This behaviour may be overridden by setting *text*, *encoding*, *errors*, or" -" *universal_newlines* to ``True`` as described in :ref:`frequently-used-" +"This behaviour may be overridden by setting *text*, *encoding*, *errors*, or " +"*universal_newlines* to ``True`` as described in :ref:`frequently-used-" "arguments` and :func:`run`." msgstr "" -#: ../../library/subprocess.rst:1086 +#: ../../library/subprocess.rst:1092 msgid "" -"To also capture standard error in the result, use " -"``stderr=subprocess.STDOUT``::" +"To also capture standard error in the result, use ``stderr=subprocess." +"STDOUT``::" msgstr "" -#: ../../library/subprocess.rst:1100 +#: ../../library/subprocess.rst:1106 msgid "Support for the *input* keyword argument was added." msgstr "" -#: ../../library/subprocess.rst:1103 +#: ../../library/subprocess.rst:1109 msgid "*encoding* and *errors* were added. See :func:`run` for details." msgstr "" -#: ../../library/subprocess.rst:1113 +#: ../../library/subprocess.rst:1119 msgid "Replacing Older Functions with the :mod:`subprocess` Module" msgstr "" -#: ../../library/subprocess.rst:1115 +#: ../../library/subprocess.rst:1121 msgid "" "In this section, \"a becomes b\" means that b can be used as a replacement " "for a." msgstr "" -#: ../../library/subprocess.rst:1119 +#: ../../library/subprocess.rst:1125 msgid "" "All \"a\" functions in this section fail (more or less) silently if the " -"executed program cannot be found; the \"b\" replacements raise " -":exc:`OSError` instead." +"executed program cannot be found; the \"b\" replacements raise :exc:" +"`OSError` instead." msgstr "" -#: ../../library/subprocess.rst:1123 +#: ../../library/subprocess.rst:1129 msgid "" -"In addition, the replacements using :func:`check_output` will fail with a " -":exc:`CalledProcessError` if the requested operation produces a non-zero " -"return code. The output is still available as the " -":attr:`~CalledProcessError.output` attribute of the raised exception." +"In addition, the replacements using :func:`check_output` will fail with a :" +"exc:`CalledProcessError` if the requested operation produces a non-zero " +"return code. The output is still available as the :attr:`~CalledProcessError." +"output` attribute of the raised exception." msgstr "" -#: ../../library/subprocess.rst:1128 +#: ../../library/subprocess.rst:1134 msgid "" "In the following examples, we assume that the relevant functions have " "already been imported from the :mod:`subprocess` module." msgstr "" -#: ../../library/subprocess.rst:1133 +#: ../../library/subprocess.rst:1139 msgid "Replacing /bin/sh shell backquote" msgstr "" -#: ../../library/subprocess.rst:1139 ../../library/subprocess.rst:1150 -#: ../../library/subprocess.rst:1167 +#: ../../library/subprocess.rst:1145 ../../library/subprocess.rst:1156 +#: ../../library/subprocess.rst:1173 msgid "becomes::" msgstr "" -#: ../../library/subprocess.rst:1144 +#: ../../library/subprocess.rst:1150 msgid "Replacing shell pipeline" msgstr "" -#: ../../library/subprocess.rst:1157 +#: ../../library/subprocess.rst:1163 msgid "" "The p1.stdout.close() call after starting the p2 is important in order for " "p1 to receive a SIGPIPE if p2 exits before p1." msgstr "" -#: ../../library/subprocess.rst:1160 +#: ../../library/subprocess.rst:1166 msgid "" -"Alternatively, for trusted input, the shell's own pipeline support may still" -" be used directly:" +"Alternatively, for trusted input, the shell's own pipeline support may still " +"be used directly:" msgstr "" -#: ../../library/subprocess.rst:1173 +#: ../../library/subprocess.rst:1179 msgid "Replacing :func:`os.system`" msgstr "" -#: ../../library/subprocess.rst:1181 +#: ../../library/subprocess.rst:1187 msgid "Notes:" msgstr "Notas:" -#: ../../library/subprocess.rst:1183 +#: ../../library/subprocess.rst:1189 msgid "Calling the program through the shell is usually not required." msgstr "" -#: ../../library/subprocess.rst:1185 +#: ../../library/subprocess.rst:1191 msgid "A more realistic example would look like this::" msgstr "" -#: ../../library/subprocess.rst:1198 +#: ../../library/subprocess.rst:1204 msgid "Replacing the :func:`os.spawn ` family" msgstr "" -#: ../../library/subprocess.rst:1200 +#: ../../library/subprocess.rst:1206 msgid "P_NOWAIT example::" msgstr "" -#: ../../library/subprocess.rst:1206 +#: ../../library/subprocess.rst:1212 msgid "P_WAIT example::" msgstr "" -#: ../../library/subprocess.rst:1212 +#: ../../library/subprocess.rst:1218 msgid "Vector example::" msgstr "" -#: ../../library/subprocess.rst:1218 +#: ../../library/subprocess.rst:1224 msgid "Environment example::" msgstr "" -#: ../../library/subprocess.rst:1227 +#: ../../library/subprocess.rst:1233 msgid "Replacing :func:`os.popen`, :func:`os.popen2`, :func:`os.popen3`" msgstr "" -#: ../../library/subprocess.rst:1257 +#: ../../library/subprocess.rst:1263 msgid "Return code handling translates as follows::" msgstr "" -#: ../../library/subprocess.rst:1273 +#: ../../library/subprocess.rst:1279 msgid "Replacing functions from the :mod:`popen2` module" msgstr "" -#: ../../library/subprocess.rst:1277 +#: ../../library/subprocess.rst:1283 msgid "" -"If the cmd argument to popen2 functions is a string, the command is executed" -" through /bin/sh. If it is a list, the command is directly executed." +"If the cmd argument to popen2 functions is a string, the command is executed " +"through /bin/sh. If it is a list, the command is directly executed." msgstr "" -#: ../../library/subprocess.rst:1296 +#: ../../library/subprocess.rst:1302 msgid "" -":class:`popen2.Popen3` and :class:`popen2.Popen4` basically work as " -":class:`subprocess.Popen`, except that:" +":class:`popen2.Popen3` and :class:`popen2.Popen4` basically work as :class:" +"`subprocess.Popen`, except that:" msgstr "" -#: ../../library/subprocess.rst:1299 +#: ../../library/subprocess.rst:1305 msgid ":class:`Popen` raises an exception if the execution fails." msgstr "" -#: ../../library/subprocess.rst:1301 +#: ../../library/subprocess.rst:1307 msgid "The *capturestderr* argument is replaced with the *stderr* argument." msgstr "" -#: ../../library/subprocess.rst:1303 +#: ../../library/subprocess.rst:1309 msgid "``stdin=PIPE`` and ``stdout=PIPE`` must be specified." msgstr "" -#: ../../library/subprocess.rst:1305 +#: ../../library/subprocess.rst:1311 msgid "" "popen2 closes all file descriptors by default, but you have to specify " "``close_fds=True`` with :class:`Popen` to guarantee this behavior on all " "platforms or past Python versions." msgstr "" -#: ../../library/subprocess.rst:1311 +#: ../../library/subprocess.rst:1317 msgid "Legacy Shell Invocation Functions" msgstr "" -#: ../../library/subprocess.rst:1313 +#: ../../library/subprocess.rst:1319 msgid "" "This module also provides the following legacy functions from the 2.x " -"``commands`` module. These operations implicitly invoke the system shell and" -" none of the guarantees described above regarding security and exception " +"``commands`` module. These operations implicitly invoke the system shell and " +"none of the guarantees described above regarding security and exception " "handling consistency are valid for these functions." msgstr "" -#: ../../library/subprocess.rst:1320 +#: ../../library/subprocess.rst:1326 msgid "Return ``(exitcode, output)`` of executing *cmd* in a shell." msgstr "" -#: ../../library/subprocess.rst:1322 +#: ../../library/subprocess.rst:1328 msgid "" "Execute the string *cmd* in a shell with :meth:`Popen.check_output` and " "return a 2-tuple ``(exitcode, output)``. The locale encoding is used; see " "the notes on :ref:`frequently-used-arguments` for more details." msgstr "" -#: ../../library/subprocess.rst:1326 +#: ../../library/subprocess.rst:1332 msgid "" "A trailing newline is stripped from the output. The exit code for the " "command can be interpreted as the return code of subprocess. Example::" msgstr "" -#: ../../library/subprocess.rst:1340 ../../library/subprocess.rst:1360 +#: ../../library/subprocess.rst:1346 ../../library/subprocess.rst:1366 msgid ":ref:`Availability `: POSIX & Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: POSIX e Windows." -#: ../../library/subprocess.rst:1341 +#: ../../library/subprocess.rst:1347 msgid "Windows support was added." msgstr "" -#: ../../library/subprocess.rst:1344 +#: ../../library/subprocess.rst:1350 msgid "" "The function now returns (exitcode, output) instead of (status, output) as " -"it did in Python 3.3.3 and earlier. exitcode has the same value as " -":attr:`~Popen.returncode`." +"it did in Python 3.3.3 and earlier. exitcode has the same value as :attr:" +"`~Popen.returncode`." msgstr "" -#: ../../library/subprocess.rst:1351 +#: ../../library/subprocess.rst:1357 msgid "Return output (stdout and stderr) of executing *cmd* in a shell." msgstr "" -#: ../../library/subprocess.rst:1353 +#: ../../library/subprocess.rst:1359 msgid "" -"Like :func:`getstatusoutput`, except the exit code is ignored and the return" -" value is a string containing the command's output. Example::" +"Like :func:`getstatusoutput`, except the exit code is ignored and the return " +"value is a string containing the command's output. Example::" msgstr "" -#: ../../library/subprocess.rst:1361 +#: ../../library/subprocess.rst:1367 msgid "Windows support added" msgstr "" -#: ../../library/subprocess.rst:1366 +#: ../../library/subprocess.rst:1372 msgid "Notes" msgstr "Notas" -#: ../../library/subprocess.rst:1371 +#: ../../library/subprocess.rst:1377 msgid "Converting an argument sequence to a string on Windows" msgstr "" -#: ../../library/subprocess.rst:1373 +#: ../../library/subprocess.rst:1379 msgid "" "On Windows, an *args* sequence is converted to a string that can be parsed " "using the following rules (which correspond to the rules used by the MS C " "runtime):" msgstr "" -#: ../../library/subprocess.rst:1377 +#: ../../library/subprocess.rst:1383 msgid "" "Arguments are delimited by white space, which is either a space or a tab." msgstr "" -#: ../../library/subprocess.rst:1380 +#: ../../library/subprocess.rst:1386 msgid "" "A string surrounded by double quotation marks is interpreted as a single " "argument, regardless of white space contained within. A quoted string can " "be embedded in an argument." msgstr "" -#: ../../library/subprocess.rst:1385 +#: ../../library/subprocess.rst:1391 msgid "" "A double quotation mark preceded by a backslash is interpreted as a literal " "double quotation mark." msgstr "" -#: ../../library/subprocess.rst:1388 +#: ../../library/subprocess.rst:1394 msgid "" "Backslashes are interpreted literally, unless they immediately precede a " "double quotation mark." msgstr "" -#: ../../library/subprocess.rst:1391 +#: ../../library/subprocess.rst:1397 msgid "" "If backslashes immediately precede a double quotation mark, every pair of " "backslashes is interpreted as a literal backslash. If the number of " @@ -1552,10 +1555,10 @@ msgid "" "mark as described in rule 3." msgstr "" -#: ../../library/subprocess.rst:1400 +#: ../../library/subprocess.rst:1406 msgid ":mod:`shlex`" -msgstr "" +msgstr ":mod:`shlex`" -#: ../../library/subprocess.rst:1401 +#: ../../library/subprocess.rst:1407 msgid "Module which provides function to parse and escape command lines." msgstr "" diff --git a/library/sunau.po b/library/sunau.po index c61c10f8c..ed8a33f82 100644 --- a/library/sunau.po +++ b/library/sunau.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" "Last-Translator: (Douglas da Silva) , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +35,8 @@ msgstr "**Código Fonte:** :source:`Lib/sunau.py`" #: ../../library/sunau.rst:13 msgid "" "The :mod:`sunau` module provides a convenient interface to the Sun AU sound " -"format. Note that this module is interface-compatible with the modules " -":mod:`aifc` and :mod:`wave`." +"format. Note that this module is interface-compatible with the modules :mod:" +"`aifc` and :mod:`wave`." msgstr "" #: ../../library/sunau.rst:17 @@ -106,8 +107,7 @@ msgstr "" #: ../../library/sunau.rst:35 msgid "" -"ASCII string giving a description of the audio file (padded with null " -"bytes)." +"ASCII string giving a description of the audio file (padded with null bytes)." msgstr "" #: ../../library/sunau.rst:39 @@ -228,26 +228,26 @@ msgstr "" #: ../../library/sunau.rst:149 msgid "" -"Human-readable version of :meth:`getcomptype`. The supported types have the" -" respective names ``'CCITT G.711 u-law'``, ``'CCITT G.711 A-law'`` and " -"``'not compressed'``." +"Human-readable version of :meth:`getcomptype`. The supported types have the " +"respective names ``'CCITT G.711 u-law'``, ``'CCITT G.711 A-law'`` and ``'not " +"compressed'``." msgstr "" #: ../../library/sunau.rst:156 msgid "" "Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " -"framerate, nframes, comptype, compname)``, equivalent to output of the " -":meth:`get\\*` methods." +"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:" +"`get\\*` methods." msgstr "" "Retorna a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " -"framerate, nframes, comptype, compname)``, equivalente à saída dos métodos " -":meth:`get\\*`." +"framerate, nframes, comptype, compname)``, equivalente à saída dos métodos :" +"meth:`get\\*`." #: ../../library/sunau.rst:163 msgid "" "Reads and returns at most *n* frames of audio, as a :class:`bytes` object. " -"The data will be returned in linear format. If the original data is in " -"u-LAW format, it will be converted." +"The data will be returned in linear format. If the original data is in u-" +"LAW format, it will be converted." msgstr "" #: ../../library/sunau.rst:170 @@ -262,8 +262,8 @@ msgstr "" #: ../../library/sunau.rst:178 msgid "" -"Set the file pointer to the specified position. Only values returned from " -":meth:`tell` should be used for *pos*." +"Set the file pointer to the specified position. Only values returned from :" +"meth:`tell` should be used for *pos*." msgstr "" #: ../../library/sunau.rst:184 @@ -274,8 +274,8 @@ msgstr "" #: ../../library/sunau.rst:187 msgid "" -"The following two functions are defined for compatibility with the " -":mod:`aifc`, and don't do anything interesting." +"The following two functions are defined for compatibility with the :mod:" +"`aifc`, and don't do anything interesting." msgstr "" #: ../../library/sunau.rst:193 @@ -320,21 +320,21 @@ msgstr "" #: ../../library/sunau.rst:235 msgid "" -"Set the compression type and description. Only ``'NONE'`` and ``'ULAW'`` are" -" supported on output." +"Set the compression type and description. Only ``'NONE'`` and ``'ULAW'`` are " +"supported on output." msgstr "" #: ../../library/sunau.rst:241 msgid "" -"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype," -" compname)``, with values valid for the :meth:`set\\*` methods. Set all " +"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, " +"compname)``, with values valid for the :meth:`set\\*` methods. Set all " "parameters." msgstr "" #: ../../library/sunau.rst:248 msgid "" -"Return current position in the file, with the same disclaimer for the " -":meth:`AU_read.tell` and :meth:`AU_read.setpos` methods." +"Return current position in the file, with the same disclaimer for the :meth:" +"`AU_read.tell` and :meth:`AU_read.setpos` methods." msgstr "" #: ../../library/sunau.rst:254 @@ -359,8 +359,8 @@ msgstr "" #: ../../library/sunau.rst:274 msgid "" -"Note that it is invalid to set any parameters after calling " -":meth:`writeframes` or :meth:`writeframesraw`." +"Note that it is invalid to set any parameters after calling :meth:" +"`writeframes` or :meth:`writeframesraw`." msgstr "" -"Note that it is invalid to set any parameters after calling " -":meth:`writeframes` or :meth:`writeframesraw`." +"Note that it is invalid to set any parameters after calling :meth:" +"`writeframes` or :meth:`writeframesraw`." diff --git a/library/superseded.po b/library/superseded.po index 625b09b4b..5da8a960a 100644 --- a/library/superseded.po +++ b/library/superseded.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/symbol.po b/library/symbol.po index 13182851a..667c0749b 100644 --- a/library/symbol.po +++ b/library/symbol.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,16 +37,16 @@ msgid "" "This module provides constants which represent the numeric values of " "internal nodes of the parse tree. Unlike most Python constants, these use " "lower-case names. Refer to the file :file:`Grammar/Grammar` in the Python " -"distribution for the definitions of the names in the context of the language" -" grammar. The specific numeric values which the names map to may change " +"distribution for the definitions of the names in the context of the language " +"grammar. The specific numeric values which the names map to may change " "between Python versions." msgstr "" "Este módulo fornece constantes que representam os valores numéricos dos nós " "internos da árvore de análise. Diferentemente da maioria das constantes do " -"Python, elas usam nomes de letras minúsculas. Consulte o arquivo " -":file:`Grammar/Grammar` na distribuição Python para as definições dos nomes " -"no contexto da gramática do idioma. Os valores numéricos específicos para os" -" quais os nomes mapeiam podem mudar entre as versões do Python." +"Python, elas usam nomes de letras minúsculas. Consulte o arquivo :file:" +"`Grammar/Grammar` na distribuição Python para as definições dos nomes no " +"contexto da gramática do idioma. Os valores numéricos específicos para os " +"quais os nomes mapeiam podem mudar entre as versões do Python." #: ../../library/symbol.rst:20 msgid "This module also provides one additional data object:" diff --git a/library/symtable.po b/library/symtable.po index 86aa70f85..e4bf73e21 100644 --- a/library/symtable.po +++ b/library/symtable.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/symtable.py`" #: ../../library/symtable.rst:15 msgid "" -"Symbol tables are generated by the compiler from AST just before bytecode is" -" generated. The symbol table is responsible for calculating the scope of " +"Symbol tables are generated by the compiler from AST just before bytecode is " +"generated. The symbol table is responsible for calculating the scope of " "every identifier in the code. :mod:`symtable` provides an interface to " "examine these tables." msgstr "" @@ -75,8 +77,7 @@ msgid "" msgstr "" #: ../../library/symtable.rst:55 -msgid "" -"Return the number of the first line in the block this table represents." +msgid "Return the number of the first line in the block this table represents." msgstr "" #: ../../library/symtable.rst:59 @@ -115,8 +116,8 @@ msgstr "" #: ../../library/symtable.rst:93 msgid "" -"A namespace for a function or method. This class inherits " -":class:`SymbolTable`." +"A namespace for a function or method. This class inherits :class:" +"`SymbolTable`." msgstr "" #: ../../library/symtable.rst:98 diff --git a/library/sys.po b/library/sys.po index 9b1d764d0..dd686dbd9 100644 --- a/library/sys.po +++ b/library/sys.po @@ -1,26 +1,28 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Rogério Araújo , 2019 # Rafael Fontenelle , 2019 -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # felipe caridade , 2019 -# +# Willian C Lopes , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-21 03:33+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +36,8 @@ msgstr "" #: ../../library/sys.rst:9 msgid "" "This module provides access to some variables used or maintained by the " -"interpreter and to functions that interact strongly with the interpreter. It" -" is always available." +"interpreter and to functions that interact strongly with the interpreter. It " +"is always available." msgstr "" "Este módulo fornece acesso a algumas variáveis usadas ou mantidas pelo " "interpretador e a funções que interagem fortemente com o interpretador. " @@ -49,12 +51,12 @@ msgstr "" #: ../../library/sys.rst:24 msgid "" -"The list of command line arguments passed to a Python script. ``argv[0]`` is" -" the script name (it is operating system dependent whether this is a full " +"The list of command line arguments passed to a Python script. ``argv[0]`` is " +"the script name (it is operating system dependent whether this is a full " "pathname or not). If the command was executed using the :option:`-c` " -"command line option to the interpreter, ``argv[0]`` is set to the string " -"``'-c'``. If no script name was passed to the Python interpreter, " -"``argv[0]`` is the empty string." +"command line option to the interpreter, ``argv[0]`` is set to the string ``'-" +"c'``. If no script name was passed to the Python interpreter, ``argv[0]`` " +"is the empty string." msgstr "" #: ../../library/sys.rst:30 @@ -65,34 +67,32 @@ msgstr "" #: ../../library/sys.rst:34 msgid "" -"On Unix, command line arguments are passed by bytes from OS. Python decodes" -" them with filesystem encoding and \"surrogateescape\" error handler. When " +"On Unix, command line arguments are passed by bytes from OS. Python decodes " +"them with filesystem encoding and \"surrogateescape\" error handler. When " "you need original bytes, you can get it by ``[os.fsencode(arg) for arg in " "sys.argv]``." msgstr "" #: ../../library/sys.rst:42 msgid "" -"Set during Python startup, before ``site.py`` is run, to the same value as " -":data:`exec_prefix`. If not running in a :ref:`virtual environment `, the values will stay the same; if ``site.py`` finds that a virtual " "environment is in use, the values of :data:`prefix` and :data:`exec_prefix` " -"will be changed to point to the virtual environment, whereas " -":data:`base_prefix` and :data:`base_exec_prefix` will remain pointing to the" -" base Python installation (the one which the virtual environment was created" -" from)." +"will be changed to point to the virtual environment, whereas :data:" +"`base_prefix` and :data:`base_exec_prefix` will remain pointing to the base " +"Python installation (the one which the virtual environment was created from)." msgstr "" #: ../../library/sys.rst:56 msgid "" -"Set during Python startup, before ``site.py`` is run, to the same value as " -":data:`prefix`. If not running in a :ref:`virtual environment `, " +"Set during Python startup, before ``site.py`` is run, to the same value as :" +"data:`prefix`. If not running in a :ref:`virtual environment `, " "the values will stay the same; if ``site.py`` finds that a virtual " "environment is in use, the values of :data:`prefix` and :data:`exec_prefix` " -"will be changed to point to the virtual environment, whereas " -":data:`base_prefix` and :data:`base_exec_prefix` will remain pointing to the" -" base Python installation (the one which the virtual environment was created" -" from)." +"will be changed to point to the virtual environment, whereas :data:" +"`base_prefix` and :data:`base_exec_prefix` will remain pointing to the base " +"Python installation (the one which the virtual environment was created from)." msgstr "" #: ../../library/sys.rst:69 @@ -111,14 +111,13 @@ msgstr "" #: ../../library/sys.rst:83 msgid "" -"Call ``func(*args)``, while tracing is enabled. The tracing state is saved," -" and restored afterwards. This is intended to be called from a debugger " -"from a checkpoint, to recursively debug some other code." +"Call ``func(*args)``, while tracing is enabled. The tracing state is saved, " +"and restored afterwards. This is intended to be called from a debugger from " +"a checkpoint, to recursively debug some other code." msgstr "" #: ../../library/sys.rst:90 -msgid "" -"A string containing the copyright pertaining to the Python interpreter." +msgid "A string containing the copyright pertaining to the Python interpreter." msgstr "" #: ../../library/sys.rst:95 @@ -146,22 +145,22 @@ msgid "" "This is most useful for debugging deadlock: this function does not require " "the deadlocked threads' cooperation, and such threads' call stacks are " "frozen for as long as they remain deadlocked. The frame returned for a non-" -"deadlocked thread may bear no relationship to that thread's current activity" -" by the time calling code examines the frame." +"deadlocked thread may bear no relationship to that thread's current activity " +"by the time calling code examines the frame." msgstr "" #: ../../library/sys.rst:120 msgid "" -"This hook function is called by built-in :func:`breakpoint`. By default, it" -" drops you into the :mod:`pdb` debugger, but it can be set to any other " +"This hook function is called by built-in :func:`breakpoint`. By default, it " +"drops you into the :mod:`pdb` debugger, but it can be set to any other " "function so that you can choose which debugger gets used." msgstr "" #: ../../library/sys.rst:124 msgid "" "The signature of this function is dependent on what it calls. For example, " -"the default binding (e.g. ``pdb.set_trace()``) expects no arguments, but you" -" might bind it to a function that expects additional arguments (positional " +"the default binding (e.g. ``pdb.set_trace()``) expects no arguments, but you " +"might bind it to a function that expects additional arguments (positional " "and/or keyword). The built-in ``breakpoint()`` function passes its " "``*args`` and ``**kws`` straight through. Whatever ``breakpointhooks()`` " "returns is returned from ``breakpoint()``." @@ -169,30 +168,29 @@ msgstr "" #: ../../library/sys.rst:131 msgid "" -"The default implementation first consults the environment variable " -":envvar:`PYTHONBREAKPOINT`. If that is set to ``\"0\"`` then this function " -"returns immediately; i.e. it is a no-op. If the environment variable is not" -" set, or is set to the empty string, ``pdb.set_trace()`` is called. " -"Otherwise this variable should name a function to run, using Python's " -"dotted-import nomenclature, e.g. ``package.subpackage.module.function``. In " -"this case, ``package.subpackage.module`` would be imported and the resulting" -" module must have a callable named ``function()``. This is run, passing in " -"``*args`` and ``**kws``, and whatever ``function()`` returns, " -"``sys.breakpointhook()`` returns to the built-in :func:`breakpoint` " -"function." +"The default implementation first consults the environment variable :envvar:" +"`PYTHONBREAKPOINT`. If that is set to ``\"0\"`` then this function returns " +"immediately; i.e. it is a no-op. If the environment variable is not set, or " +"is set to the empty string, ``pdb.set_trace()`` is called. Otherwise this " +"variable should name a function to run, using Python's dotted-import " +"nomenclature, e.g. ``package.subpackage.module.function``. In this case, " +"``package.subpackage.module`` would be imported and the resulting module " +"must have a callable named ``function()``. This is run, passing in " +"``*args`` and ``**kws``, and whatever ``function()`` returns, ``sys." +"breakpointhook()`` returns to the built-in :func:`breakpoint` function." msgstr "" #: ../../library/sys.rst:143 msgid "" -"Note that if anything goes wrong while importing the callable named by " -":envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the " +"Note that if anything goes wrong while importing the callable named by :" +"envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the " "breakpoint is ignored." msgstr "" #: ../../library/sys.rst:147 msgid "" -"Also note that if ``sys.breakpointhook()`` is overridden programmatically, " -":envvar:`PYTHONBREAKPOINT` is *not* consulted." +"Also note that if ``sys.breakpointhook()`` is overridden programmatically, :" +"envvar:`PYTHONBREAKPOINT` is *not* consulted." msgstr "" #: ../../library/sys.rst:154 @@ -220,23 +218,23 @@ msgstr "" #: ../../library/sys.rst:172 ../../library/sys.rst:663 #: ../../library/sys.rst:1352 ../../library/sys.rst:1516 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." #: ../../library/sys.rst:177 msgid "" -"If *value* is not ``None``, this function prints ``repr(value)`` to " -"``sys.stdout``, and saves *value* in ``builtins._``. If ``repr(value)`` is " -"not encodable to ``sys.stdout.encoding`` with ``sys.stdout.errors`` error " -"handler (which is probably ``'strict'``), encode it to " -"``sys.stdout.encoding`` with ``'backslashreplace'`` error handler." +"If *value* is not ``None``, this function prints ``repr(value)`` to ``sys." +"stdout``, and saves *value* in ``builtins._``. If ``repr(value)`` is not " +"encodable to ``sys.stdout.encoding`` with ``sys.stdout.errors`` error " +"handler (which is probably ``'strict'``), encode it to ``sys.stdout." +"encoding`` with ``'backslashreplace'`` error handler." msgstr "" #: ../../library/sys.rst:183 msgid "" -"``sys.displayhook`` is called on the result of evaluating an " -":term:`expression` entered in an interactive Python session. The display of" -" these values can be customized by assigning another one-argument function " -"to ``sys.displayhook``." +"``sys.displayhook`` is called on the result of evaluating an :term:" +"`expression` entered in an interactive Python session. The display of these " +"values can be customized by assigning another one-argument function to ``sys." +"displayhook``." msgstr "" #: ../../library/sys.rst:187 @@ -251,9 +249,9 @@ msgstr "" msgid "" "If this is true, Python won't try to write ``.pyc`` files on the import of " "source modules. This value is initially set to ``True`` or ``False`` " -"depending on the :option:`-B` command line option and the " -":envvar:`PYTHONDONTWRITEBYTECODE` environment variable, but you can set it " -"yourself to control bytecode file generation." +"depending on the :option:`-B` command line option and the :envvar:" +"`PYTHONDONTWRITEBYTECODE` environment variable, but you can set it yourself " +"to control bytecode file generation." msgstr "" #: ../../library/sys.rst:222 @@ -263,13 +261,13 @@ msgstr "" #: ../../library/sys.rst:224 msgid "" -"When an exception is raised and uncaught, the interpreter calls " -"``sys.excepthook`` with three arguments, the exception class, exception " -"instance, and a traceback object. In an interactive session this happens " -"just before control is returned to the prompt; in a Python program this " -"happens just before the program exits. The handling of such top-level " -"exceptions can be customized by assigning another three-argument function to" -" ``sys.excepthook``." +"When an exception is raised and uncaught, the interpreter calls ``sys." +"excepthook`` with three arguments, the exception class, exception instance, " +"and a traceback object. In an interactive session this happens just before " +"control is returned to the prompt; in a Python program this happens just " +"before the program exits. The handling of such top-level exceptions can be " +"customized by assigning another three-argument function to ``sys." +"excepthook``." msgstr "" #: ../../library/sys.rst:236 @@ -301,31 +299,31 @@ msgstr "" msgid "" "If no exception is being handled anywhere on the stack, a tuple containing " "three ``None`` values is returned. Otherwise, the values returned are " -"``(type, value, traceback)``. Their meaning is: *type* gets the type of the" -" exception being handled (a subclass of :exc:`BaseException`); *value* gets " -"the exception instance (an instance of the exception type); *traceback* gets" -" a traceback object (see the Reference Manual) which encapsulates the call " +"``(type, value, traceback)``. Their meaning is: *type* gets the type of the " +"exception being handled (a subclass of :exc:`BaseException`); *value* gets " +"the exception instance (an instance of the exception type); *traceback* gets " +"a traceback object (see the Reference Manual) which encapsulates the call " "stack at the point where the exception originally occurred." msgstr "" #: ../../library/sys.rst:270 msgid "" "A string giving the site-specific directory prefix where the platform-" -"dependent Python files are installed; by default, this is also " -"``'/usr/local'``. This can be set at build time with the ``--exec-prefix`` " -"argument to the :program:`configure` script. Specifically, all " -"configuration files (e.g. the :file:`pyconfig.h` header file) are installed " -"in the directory :file:`{exec_prefix}/lib/python{X.Y}/config`, and shared " -"library modules are installed in :file:`{exec_prefix}/lib/python{X.Y}/lib-" -"dynload`, where *X.Y* is the version number of Python, for example ``3.2``." +"dependent Python files are installed; by default, this is also ``'/usr/" +"local'``. This can be set at build time with the ``--exec-prefix`` argument " +"to the :program:`configure` script. Specifically, all configuration files " +"(e.g. the :file:`pyconfig.h` header file) are installed in the directory :" +"file:`{exec_prefix}/lib/python{X.Y}/config`, and shared library modules are " +"installed in :file:`{exec_prefix}/lib/python{X.Y}/lib-dynload`, where *X.Y* " +"is the version number of Python, for example ``3.2``." msgstr "" #: ../../library/sys.rst:281 msgid "" "If a :ref:`virtual environment ` is in effect, this value will be " "changed in ``site.py`` to point to the virtual environment. The value for " -"the Python installation will still be available, via " -":data:`base_exec_prefix`." +"the Python installation will still be available, via :data:" +"`base_exec_prefix`." msgstr "" #: ../../library/sys.rst:289 @@ -339,21 +337,21 @@ msgstr "" #: ../../library/sys.rst:297 msgid "" "Exit from Python. This is implemented by raising the :exc:`SystemExit` " -"exception, so cleanup actions specified by finally clauses of :keyword:`try`" -" statements are honored, and it is possible to intercept the exit attempt at" -" an outer level." +"exception, so cleanup actions specified by finally clauses of :keyword:`try` " +"statements are honored, and it is possible to intercept the exit attempt at " +"an outer level." msgstr "" #: ../../library/sys.rst:302 msgid "" "The optional argument *arg* can be an integer giving the exit status " "(defaulting to zero), or another type of object. If it is an integer, zero " -"is considered \"successful termination\" and any nonzero value is considered" -" \"abnormal termination\" by shells and the like. Most systems require it " -"to be in the range 0--127, and produce undefined results otherwise. Some " +"is considered \"successful termination\" and any nonzero value is considered " +"\"abnormal termination\" by shells and the like. Most systems require it to " +"be in the range 0--127, and produce undefined results otherwise. Some " "systems have a convention for assigning specific meanings to specific exit " -"codes, but these are generally underdeveloped; Unix programs generally use 2" -" for command line syntax errors and 1 for all other kind of errors. If " +"codes, but these are generally underdeveloped; Unix programs generally use 2 " +"for command line syntax errors and 1 for all other kind of errors. If " "another type of object is passed, ``None`` is equivalent to passing zero, " "and any other object is printed to :data:`stderr` and results in an exit " "code of 1. In particular, ``sys.exit(\"some error message\")`` is a quick " @@ -369,8 +367,8 @@ msgstr "" #: ../../library/sys.rst:319 msgid "" -"If an error occurs in the cleanup after the Python interpreter has caught " -":exc:`SystemExit` (such as an error flushing buffered data in the standard " +"If an error occurs in the cleanup after the Python interpreter has caught :" +"exc:`SystemExit` (such as an error flushing buffered data in the standard " "streams), the exit status is changed to 120." msgstr "" @@ -391,119 +389,119 @@ msgstr "" #: ../../library/sys.rst:333 msgid ":const:`debug`" -msgstr "" +msgstr ":const:`debug`" #: ../../library/sys.rst:333 msgid ":option:`-d`" -msgstr "" +msgstr ":option:`-d`" #: ../../library/sys.rst:334 msgid ":const:`inspect`" -msgstr "" +msgstr ":const:`inspect`" #: ../../library/sys.rst:334 ../../library/sys.rst:335 msgid ":option:`-i`" -msgstr "" +msgstr ":option:`-i`" #: ../../library/sys.rst:335 msgid ":const:`interactive`" -msgstr "" +msgstr ":const:`interactive`" #: ../../library/sys.rst:336 msgid ":const:`isolated`" -msgstr "" +msgstr ":const:`isolated`" #: ../../library/sys.rst:336 msgid ":option:`-I`" -msgstr "" +msgstr ":option:`-I`" #: ../../library/sys.rst:337 msgid ":const:`optimize`" -msgstr "" +msgstr ":const:`optimize`" #: ../../library/sys.rst:337 msgid ":option:`-O` or :option:`-OO`" -msgstr "" +msgstr ":option:`-O` or :option:`-OO`" #: ../../library/sys.rst:338 msgid ":const:`dont_write_bytecode`" -msgstr "" +msgstr ":const:`dont_write_bytecode`" #: ../../library/sys.rst:338 msgid ":option:`-B`" -msgstr "" +msgstr ":option:`-B`" #: ../../library/sys.rst:339 msgid ":const:`no_user_site`" -msgstr "" +msgstr ":const:`no_user_site`" #: ../../library/sys.rst:339 msgid ":option:`-s`" -msgstr "" +msgstr ":option:`-s`" #: ../../library/sys.rst:340 msgid ":const:`no_site`" -msgstr "" +msgstr ":const:`no_site`" #: ../../library/sys.rst:340 msgid ":option:`-S`" -msgstr "" +msgstr ":option:`-S`" #: ../../library/sys.rst:341 msgid ":const:`ignore_environment`" -msgstr "" +msgstr ":const:`ignore_environment`" #: ../../library/sys.rst:341 msgid ":option:`-E`" -msgstr "" +msgstr ":option:`-E`" #: ../../library/sys.rst:342 msgid ":const:`verbose`" -msgstr "" +msgstr ":const:`verbose`" #: ../../library/sys.rst:342 msgid ":option:`-v`" -msgstr "" +msgstr ":option:`-v`" #: ../../library/sys.rst:343 msgid ":const:`bytes_warning`" -msgstr "" +msgstr ":const:`bytes_warning`" #: ../../library/sys.rst:343 msgid ":option:`-b`" -msgstr "" +msgstr ":option:`-b`" #: ../../library/sys.rst:344 msgid ":const:`quiet`" -msgstr "" +msgstr ":const:`quiet`" #: ../../library/sys.rst:344 msgid ":option:`-q`" -msgstr "" +msgstr ":option:`-q`" #: ../../library/sys.rst:345 msgid ":const:`hash_randomization`" -msgstr "" +msgstr ":const:`hash_randomization`" #: ../../library/sys.rst:345 msgid ":option:`-R`" -msgstr "" +msgstr ":option:`-R`" #: ../../library/sys.rst:346 msgid ":const:`dev_mode`" -msgstr "" +msgstr ":const:`dev_mode`" #: ../../library/sys.rst:346 msgid ":option:`-X` ``dev``" -msgstr "" +msgstr ":option:`-X` ``dev``" #: ../../library/sys.rst:347 msgid ":const:`utf8_mode`" -msgstr "" +msgstr ":const:`utf8_mode`" #: ../../library/sys.rst:347 msgid ":option:`-X` ``utf8``" -msgstr "" +msgstr ":option:`-X` ``utf8``" #: ../../library/sys.rst:350 msgid "Added ``quiet`` attribute for the new :option:`-q` flag." @@ -533,8 +531,8 @@ msgid "" "low level information about the precision and internal representation. The " "values correspond to the various floating-point constants defined in the " "standard header file :file:`float.h` for the 'C' programming language; see " -"section 5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of" -" floating types', for details." +"section 5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of " +"floating types', for details." msgstr "" #: ../../library/sys.rst:379 @@ -547,7 +545,7 @@ msgstr "" #: ../../library/sys.rst:381 msgid ":const:`epsilon`" -msgstr "" +msgstr ":const:`epsilon`" #: ../../library/sys.rst:381 msgid "DBL_EPSILON" @@ -555,7 +553,7 @@ msgstr "DBL_EPSILON" #: ../../library/sys.rst:381 msgid "" -"difference between 1 and the least value greater than 1 that is " +"difference between 1.0 and the least value greater than 1.0 that is " "representable as a float" msgstr "" @@ -583,8 +581,8 @@ msgstr "DBL_MANT_DIG" #: ../../library/sys.rst:387 msgid "" -"float precision: the number of base-``radix`` digits in the significand of a" -" float" +"float precision: the number of base-``radix`` digits in the significand of a " +"float" msgstr "" #: ../../library/sys.rst:390 @@ -596,12 +594,12 @@ msgid "DBL_MAX" msgstr "DBL_MAX" #: ../../library/sys.rst:390 -msgid "maximum representable finite float" +msgid "maximum representable positive finite float" msgstr "" #: ../../library/sys.rst:392 msgid ":const:`max_exp`" -msgstr "" +msgstr ":const:`max_exp`" #: ../../library/sys.rst:392 msgid "DBL_MAX_EXP" @@ -609,12 +607,13 @@ msgstr "" #: ../../library/sys.rst:392 msgid "" -"maximum integer e such that ``radix**(e-1)`` is a representable finite float" +"maximum integer *e* such that ``radix**(e-1)`` is a representable finite " +"float" msgstr "" #: ../../library/sys.rst:395 msgid ":const:`max_10_exp`" -msgstr "" +msgstr ":const:`max_10_exp`" #: ../../library/sys.rst:395 msgid "DBL_MAX_10_EXP" @@ -622,49 +621,49 @@ msgstr "" #: ../../library/sys.rst:395 msgid "" -"maximum integer e such that ``10**e`` is in the range of representable " +"maximum integer *e* such that ``10**e`` is in the range of representable " "finite floats" msgstr "" #: ../../library/sys.rst:398 msgid ":const:`min`" -msgstr "" +msgstr ":const:`min`" #: ../../library/sys.rst:398 msgid "DBL_MIN" msgstr "" #: ../../library/sys.rst:398 -msgid "minimum positive normalized float" +msgid "minimum representable positive *normalized* float" msgstr "" #: ../../library/sys.rst:400 msgid ":const:`min_exp`" -msgstr "" +msgstr ":const:`min_exp`" #: ../../library/sys.rst:400 msgid "DBL_MIN_EXP" msgstr "" #: ../../library/sys.rst:400 -msgid "minimum integer e such that ``radix**(e-1)`` is a normalized float" +msgid "minimum integer *e* such that ``radix**(e-1)`` is a normalized float" msgstr "" #: ../../library/sys.rst:403 msgid ":const:`min_10_exp`" -msgstr "" +msgstr ":const:`min_10_exp`" #: ../../library/sys.rst:403 msgid "DBL_MIN_10_EXP" msgstr "" #: ../../library/sys.rst:403 -msgid "minimum integer e such that ``10**e`` is a normalized float" +msgid "minimum integer *e* such that ``10**e`` is a normalized float" msgstr "" #: ../../library/sys.rst:406 msgid ":const:`radix`" -msgstr "" +msgstr ":const:`radix`" #: ../../library/sys.rst:406 msgid "FLT_RADIX" @@ -676,7 +675,7 @@ msgstr "" #: ../../library/sys.rst:408 msgid ":const:`rounds`" -msgstr "" +msgstr ":const:`rounds`" #: ../../library/sys.rst:408 msgid "FLT_ROUNDS" @@ -693,10 +692,9 @@ msgstr "" #: ../../library/sys.rst:416 msgid "" "The attribute :attr:`sys.float_info.dig` needs further explanation. If " -"``s`` is any string representing a decimal number with at most " -":attr:`sys.float_info.dig` significant digits, then converting ``s`` to a " -"float and back again will recover a string representing the same decimal " -"value::" +"``s`` is any string representing a decimal number with at most :attr:`sys." +"float_info.dig` significant digits, then converting ``s`` to a float and " +"back again will recover a string representing the same decimal value::" msgstr "" #: ../../library/sys.rst:429 @@ -720,9 +718,9 @@ msgid "" "Return the number of memory blocks currently allocated by the interpreter, " "regardless of their size. This function is mainly useful for tracking and " "debugging memory leaks. Because of the interpreter's internal caches, the " -"result can vary from call to call; you may have to call " -":func:`_clear_type_cache()` and :func:`gc.collect()` to get more predictable" -" results." +"result can vary from call to call; you may have to call :func:" +"`_clear_type_cache()` and :func:`gc.collect()` to get more predictable " +"results." msgstr "" #: ../../library/sys.rst:458 @@ -740,7 +738,8 @@ msgid ":ref:`Availability `: Android." msgstr "" #: ../../library/sys.rst:475 -msgid "Return the interpreter's \"check interval\"; see :func:`setcheckinterval`." +msgid "" +"Return the interpreter's \"check interval\"; see :func:`setcheckinterval`." msgstr "" #: ../../library/sys.rst:477 @@ -770,8 +769,7 @@ msgid "" "and bytes filenames. For best compatibility, str should be used for " "filenames in all cases, although representing filenames as bytes is also " "supported. Functions accepting or returning filenames should support either " -"str or bytes and internally convert to the system's preferred " -"representation." +"str or bytes and internally convert to the system's preferred representation." msgstr "" #: ../../library/sys.rst:506 @@ -798,8 +796,8 @@ msgstr "" #: ../../library/sys.rst:517 msgid "" -"On Windows, the encoding may be ``'utf-8'`` or ``'mbcs'``, depending on user" -" configuration." +"On Windows, the encoding may be ``'utf-8'`` or ``'mbcs'``, depending on user " +"configuration." msgstr "" #: ../../library/sys.rst:520 @@ -808,8 +806,8 @@ msgstr "" #: ../../library/sys.rst:523 msgid "" -"Windows is no longer guaranteed to return ``'mbcs'``. See :pep:`529` and " -":func:`_enablelegacywindowsfsencoding` for more information." +"Windows is no longer guaranteed to return ``'mbcs'``. See :pep:`529` and :" +"func:`_enablelegacywindowsfsencoding` for more information." msgstr "" #: ../../library/sys.rst:527 @@ -819,14 +817,14 @@ msgstr "" #: ../../library/sys.rst:533 msgid "" "Return the name of the error mode used to convert between Unicode filenames " -"and bytes filenames. The encoding name is returned from " -":func:`getfilesystemencoding`." +"and bytes filenames. The encoding name is returned from :func:" +"`getfilesystemencoding`." msgstr "" #: ../../library/sys.rst:544 msgid "" -"Return the reference count of the *object*. The count returned is generally" -" one higher than you might expect, because it includes the (temporary) " +"Return the reference count of the *object*. The count returned is generally " +"one higher than you might expect, because it includes the (temporary) " "reference as an argument to :func:`getrefcount`." msgstr "" @@ -834,15 +832,15 @@ msgstr "" msgid "" "Return the current value of the recursion limit, the maximum depth of the " "Python interpreter stack. This limit prevents infinite recursion from " -"causing an overflow of the C stack and crashing Python. It can be set by " -":func:`setrecursionlimit`." +"causing an overflow of the C stack and crashing Python. It can be set by :" +"func:`setrecursionlimit`." msgstr "" #: ../../library/sys.rst:559 msgid "" -"Return the size of an object in bytes. The object can be any type of object." -" All built-in objects will return correct results, but this does not have to" -" hold true for third-party extensions as it is implementation specific." +"Return the size of an object in bytes. The object can be any type of object. " +"All built-in objects will return correct results, but this does not have to " +"hold true for third-party extensions as it is implementation specific." msgstr "" #: ../../library/sys.rst:564 @@ -853,8 +851,8 @@ msgstr "" #: ../../library/sys.rst:567 msgid "" -"If given, *default* will be returned if the object does not provide means to" -" retrieve the size. Otherwise a :exc:`TypeError` will be raised." +"If given, *default* will be returned if the object does not provide means to " +"retrieve the size. Otherwise a :exc:`TypeError` will be raised." msgstr "" #: ../../library/sys.rst:570 @@ -866,15 +864,15 @@ msgstr "" #: ../../library/sys.rst:574 msgid "" -"See `recursive sizeof recipe `_" -" for an example of using :func:`getsizeof` recursively to find the size of " +"See `recursive sizeof recipe `_ " +"for an example of using :func:`getsizeof` recursively to find the size of " "containers and all their contents." msgstr "" #: ../../library/sys.rst:580 msgid "" -"Return the interpreter's \"thread switch interval\"; see " -":func:`setswitchinterval`." +"Return the interpreter's \"thread switch interval\"; see :func:" +"`setswitchinterval`." msgstr "" #: ../../library/sys.rst:588 @@ -912,12 +910,12 @@ msgstr "" msgid "" "Return a named tuple describing the Windows version currently running. The " "named elements are *major*, *minor*, *build*, *platform*, *service_pack*, " -"*service_pack_minor*, *service_pack_major*, *suite_mask*, *product_type* and" -" *platform_version*. *service_pack* contains a string, *platform_version* a " -"3-tuple and all other values are integers. The components can also be " -"accessed by name, so ``sys.getwindowsversion()[0]`` is equivalent to " -"``sys.getwindowsversion().major``. For compatibility with prior versions, " -"only the first 5 elements are retrievable by indexing." +"*service_pack_minor*, *service_pack_major*, *suite_mask*, *product_type* and " +"*platform_version*. *service_pack* contains a string, *platform_version* a 3-" +"tuple and all other values are integers. The components can also be accessed " +"by name, so ``sys.getwindowsversion()[0]`` is equivalent to ``sys." +"getwindowsversion().major``. For compatibility with prior versions, only the " +"first 5 elements are retrievable by indexing." msgstr "" #: ../../library/sys.rst:637 @@ -938,7 +936,7 @@ msgstr "Significado" #: ../../library/sys.rst:644 msgid ":const:`1 (VER_NT_WORKSTATION)`" -msgstr "" +msgstr ":const:`1 (VER_NT_WORKSTATION)`" #: ../../library/sys.rst:644 msgid "The system is a workstation." @@ -946,7 +944,7 @@ msgstr "" #: ../../library/sys.rst:646 msgid ":const:`2 (VER_NT_DOMAIN_CONTROLLER)`" -msgstr "" +msgstr ":const:`2 (VER_NT_DOMAIN_CONTROLLER)`" #: ../../library/sys.rst:646 msgid "The system is a domain controller." @@ -954,7 +952,7 @@ msgstr "" #: ../../library/sys.rst:649 msgid ":const:`3 (VER_NT_SERVER)`" -msgstr "" +msgstr ":const:`3 (VER_NT_SERVER)`" #: ../../library/sys.rst:649 msgid "The system is a server, but not a domain controller." @@ -987,10 +985,10 @@ msgstr "" #: ../../library/sys.rst:674 msgid "" -"Returns an *asyncgen_hooks* object, which is similar to a " -":class:`~collections.namedtuple` of the form `(firstiter, finalizer)`, where" -" *firstiter* and *finalizer* are expected to be either ``None`` or functions" -" which take an :term:`asynchronous generator iterator` as an argument, and " +"Returns an *asyncgen_hooks* object, which is similar to a :class:" +"`~collections.namedtuple` of the form `(firstiter, finalizer)`, where " +"*firstiter* and *finalizer* are expected to be either ``None`` or functions " +"which take an :term:`asynchronous generator iterator` as an argument, and " "are used to schedule finalization of an asynchronous generator by an event " "loop." msgstr "" @@ -1007,8 +1005,8 @@ msgstr "" #: ../../library/sys.rst:691 msgid "" -"Get the current coroutine origin tracking depth, as set by " -":func:`set_coroutine_origin_tracking_depth`." +"Get the current coroutine origin tracking depth, as set by :func:" +"`set_coroutine_origin_tracking_depth`." msgstr "" #: ../../library/sys.rst:697 ../../library/sys.rst:709 @@ -1028,19 +1026,19 @@ msgstr "" #: ../../library/sys.rst:712 ../../library/sys.rst:1339 msgid "" -"The coroutine wrapper functionality has been deprecated, and will be removed" -" in 3.8. See :issue:`32591` for details." +"The coroutine wrapper functionality has been deprecated, and will be removed " +"in 3.8. See :issue:`32591` for details." msgstr "" #: ../../library/sys.rst:719 msgid "" -"A :term:`named tuple` giving parameters of the numeric hash implementation." -" For more details about hashing of numeric types, see :ref:`numeric-hash`." +"A :term:`named tuple` giving parameters of the numeric hash implementation. " +"For more details about hashing of numeric types, see :ref:`numeric-hash`." msgstr "" #: ../../library/sys.rst:726 msgid ":const:`width`" -msgstr "" +msgstr ":const:`width`" #: ../../library/sys.rst:726 msgid "width in bits used for hash values" @@ -1048,7 +1046,7 @@ msgstr "" #: ../../library/sys.rst:728 msgid ":const:`modulus`" -msgstr "" +msgstr ":const:`modulus`" #: ../../library/sys.rst:728 msgid "prime modulus P used for numeric hash scheme" @@ -1056,7 +1054,7 @@ msgstr "" #: ../../library/sys.rst:730 msgid ":const:`inf`" -msgstr "" +msgstr ":const:`inf`" #: ../../library/sys.rst:730 msgid "hash value returned for a positive infinity" @@ -1064,7 +1062,7 @@ msgstr "" #: ../../library/sys.rst:732 msgid ":const:`nan`" -msgstr "" +msgstr ":const:`nan`" #: ../../library/sys.rst:732 msgid "hash value returned for a nan" @@ -1072,7 +1070,7 @@ msgstr "" #: ../../library/sys.rst:734 msgid ":const:`imag`" -msgstr "" +msgstr ":const:`imag`" #: ../../library/sys.rst:734 msgid "multiplier used for the imaginary part of a complex number" @@ -1080,7 +1078,7 @@ msgstr "" #: ../../library/sys.rst:737 msgid ":const:`algorithm`" -msgstr "" +msgstr ":const:`algorithm`" #: ../../library/sys.rst:737 msgid "name of the algorithm for hashing of str, bytes, and memoryview" @@ -1088,7 +1086,7 @@ msgstr "" #: ../../library/sys.rst:740 msgid ":const:`hash_bits`" -msgstr "" +msgstr ":const:`hash_bits`" #: ../../library/sys.rst:740 msgid "internal output size of the hash algorithm" @@ -1096,7 +1094,7 @@ msgstr "" #: ../../library/sys.rst:742 msgid ":const:`seed_bits`" -msgstr "" +msgstr ":const:`seed_bits`" #: ../../library/sys.rst:742 msgid "size of the seed key of the hash algorithm" @@ -1142,10 +1140,10 @@ msgstr "" #: ../../library/sys.rst:783 msgid "" -"*version* is a named tuple, in the same format as :data:`sys.version_info`." -" It represents the version of the Python *implementation*. This has a " -"distinct meaning from the specific version of the Python *language* to which" -" the currently running interpreter conforms, which ``sys.version_info`` " +"*version* is a named tuple, in the same format as :data:`sys.version_info`. " +"It represents the version of the Python *implementation*. This has a " +"distinct meaning from the specific version of the Python *language* to which " +"the currently running interpreter conforms, which ``sys.version_info`` " "represents. For example, for PyPy 1.8 ``sys.implementation.version`` might " "be ``sys.version_info(1, 8, 0, 'final', 0)``, whereas ``sys.version_info`` " "would be ``sys.version_info(2, 7, 2, 'final', 0)``. For CPython they are " @@ -1154,27 +1152,27 @@ msgstr "" #: ../../library/sys.rst:793 msgid "" -"*hexversion* is the implementation version in hexadecimal format, like " -":data:`sys.hexversion`." +"*hexversion* is the implementation version in hexadecimal format, like :data:" +"`sys.hexversion`." msgstr "" #: ../../library/sys.rst:796 msgid "" "*cache_tag* is the tag used by the import machinery in the filenames of " "cached modules. By convention, it would be a composite of the " -"implementation's name and version, like ``'cpython-33'``. However, a Python" -" implementation may use some other value if appropriate. If ``cache_tag`` " -"is set to ``None``, it indicates that module caching should be disabled." +"implementation's name and version, like ``'cpython-33'``. However, a Python " +"implementation may use some other value if appropriate. If ``cache_tag`` is " +"set to ``None``, it indicates that module caching should be disabled." msgstr "" #: ../../library/sys.rst:803 msgid "" -":data:`sys.implementation` may contain additional attributes specific to the" -" Python implementation. These non-standard attributes must start with an " -"underscore, and are not described here. Regardless of its contents, " -":data:`sys.implementation` will not change during a run of the interpreter, " -"nor between implementation versions. (It may change between Python language" -" versions, however.) See :pep:`421` for more information." +":data:`sys.implementation` may contain additional attributes specific to the " +"Python implementation. These non-standard attributes must start with an " +"underscore, and are not described here. Regardless of its contents, :data:" +"`sys.implementation` will not change during a run of the interpreter, nor " +"between implementation versions. (It may change between Python language " +"versions, however.) See :pep:`421` for more information." msgstr "" #: ../../library/sys.rst:814 @@ -1199,17 +1197,17 @@ msgstr "Explanação" #: ../../library/sys.rst:827 msgid ":const:`bits_per_digit`" -msgstr "" +msgstr ":const:`bits_per_digit`" #: ../../library/sys.rst:827 msgid "" -"number of bits held in each digit. Python integers are stored internally in" -" base ``2**int_info.bits_per_digit``" +"number of bits held in each digit. Python integers are stored internally in " +"base ``2**int_info.bits_per_digit``" msgstr "" #: ../../library/sys.rst:831 msgid ":const:`sizeof_digit`" -msgstr "" +msgstr ":const:`sizeof_digit`" #: ../../library/sys.rst:831 msgid "size in bytes of the C type used to represent a digit" @@ -1219,18 +1217,18 @@ msgstr "" msgid "" "When this attribute exists, its value is automatically called (with no " "arguments) when the interpreter is launched in :ref:`interactive mode `. This is done after the :envvar:`PYTHONSTARTUP` file is read," -" so that you can set this hook there. The :mod:`site` module :ref:`sets " -"this `." +"interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is read, " +"so that you can set this hook there. The :mod:`site` module :ref:`sets this " +"`." msgstr "" #: ../../library/sys.rst:851 msgid "" "Enter *string* in the table of \"interned\" strings and return the interned " -"string -- which is *string* itself or a copy. Interning strings is useful to" -" gain a little performance on dictionary lookup -- if the keys in a " -"dictionary are interned, and the lookup key is interned, the key comparisons" -" (after hashing) can be done by a pointer compare instead of a string " +"string -- which is *string* itself or a copy. Interning strings is useful to " +"gain a little performance on dictionary lookup -- if the keys in a " +"dictionary are interned, and the lookup key is interned, the key comparisons " +"(after hashing) can be done by a pointer compare instead of a string " "compare. Normally, the names used in Python programs are automatically " "interned, and the dictionaries used to hold module, class or instance " "attributes have interned keys." @@ -1250,26 +1248,26 @@ msgstr "" #: ../../library/sys.rst:875 msgid "" -"These three variables are not always defined; they are set when an exception" -" is not handled and the interpreter prints an error message and a stack " +"These three variables are not always defined; they are set when an exception " +"is not handled and the interpreter prints an error message and a stack " "traceback. Their intended use is to allow an interactive user to import a " "debugger module and engage in post-mortem debugging without having to re-" "execute the command that caused the error. (Typical use is ``import pdb; " -"pdb.pm()`` to enter the post-mortem debugger; see :mod:`pdb` module for more" -" information.)" +"pdb.pm()`` to enter the post-mortem debugger; see :mod:`pdb` module for more " +"information.)" msgstr "" #: ../../library/sys.rst:883 msgid "" -"The meaning of the variables is the same as that of the return values from " -":func:`exc_info` above." +"The meaning of the variables is the same as that of the return values from :" +"func:`exc_info` above." msgstr "" #: ../../library/sys.rst:889 msgid "" "An integer giving the maximum value a variable of type :c:type:`Py_ssize_t` " -"can take. It's usually ``2**31 - 1`` on a 32-bit platform and ``2**63 - 1``" -" on a 64-bit platform." +"can take. It's usually ``2**31 - 1`` on a 32-bit platform and ``2**63 - 1`` " +"on a 64-bit platform." msgstr "" #: ../../library/sys.rst:896 @@ -1287,29 +1285,29 @@ msgstr "" #: ../../library/sys.rst:907 msgid "" -"A list of :term:`meta path finder` objects that have their " -":meth:`~importlib.abc.MetaPathFinder.find_spec` methods called to see if one" -" of the objects can find the module to be imported. The " -":meth:`~importlib.abc.MetaPathFinder.find_spec` method is called with at " -"least the absolute name of the module being imported. If the module to be " -"imported is contained in a package, then the parent package's " -":attr:`__path__` attribute is passed in as a second argument. The method " -"returns a :term:`module spec`, or ``None`` if the module cannot be found." +"A list of :term:`meta path finder` objects that have their :meth:`~importlib." +"abc.MetaPathFinder.find_spec` methods called to see if one of the objects " +"can find the module to be imported. The :meth:`~importlib.abc.MetaPathFinder." +"find_spec` method is called with at least the absolute name of the module " +"being imported. If the module to be imported is contained in a package, then " +"the parent package's :attr:`__path__` attribute is passed in as a second " +"argument. The method returns a :term:`module spec`, or ``None`` if the " +"module cannot be found." msgstr "" #: ../../library/sys.rst:919 msgid ":class:`importlib.abc.MetaPathFinder`" -msgstr "" +msgstr ":class:`importlib.abc.MetaPathFinder`" #: ../../library/sys.rst:919 msgid "" -"The abstract base class defining the interface of finder objects on " -":data:`meta_path`." +"The abstract base class defining the interface of finder objects on :data:" +"`meta_path`." msgstr "" #: ../../library/sys.rst:923 msgid ":class:`importlib.machinery.ModuleSpec`" -msgstr "" +msgstr ":class:`importlib.machinery.ModuleSpec`" #: ../../library/sys.rst:922 msgid "" @@ -1319,19 +1317,19 @@ msgstr "" #: ../../library/sys.rst:928 msgid "" -":term:`Module specs ` were introduced in Python 3.4, by " -":pep:`451`. Earlier versions of Python looked for a method called " -":meth:`~importlib.abc.MetaPathFinder.find_module`. This is still called as a" -" fallback if a :data:`meta_path` entry doesn't have a " -":meth:`~importlib.abc.MetaPathFinder.find_spec` method." +":term:`Module specs ` were introduced in Python 3.4, by :pep:" +"`451`. Earlier versions of Python looked for a method called :meth:" +"`~importlib.abc.MetaPathFinder.find_module`. This is still called as a " +"fallback if a :data:`meta_path` entry doesn't have a :meth:`~importlib.abc." +"MetaPathFinder.find_spec` method." msgstr "" #: ../../library/sys.rst:936 msgid "" "This is a dictionary that maps module names to modules which have already " "been loaded. This can be manipulated to force reloading of modules and " -"other tricks. However, replacing the dictionary will not necessarily work as" -" expected and deleting essential items from the dictionary may cause Python " +"other tricks. However, replacing the dictionary will not necessarily work as " +"expected and deleting essential items from the dictionary may cause Python " "to fail." msgstr "" @@ -1350,8 +1348,8 @@ msgid "" "the interpreter is invoked interactively or if the script is read from " "standard input), ``path[0]`` is the empty string, which directs Python to " "search modules in the current directory first. Notice that the script " -"directory is inserted *before* the entries inserted as a result of " -":envvar:`PYTHONPATH`." +"directory is inserted *before* the entries inserted as a result of :envvar:" +"`PYTHONPATH`." msgstr "" #: ../../library/sys.rst:958 @@ -1363,15 +1361,15 @@ msgstr "" #: ../../library/sys.rst:964 msgid "" -"Module :mod:`site` This describes how to use .pth files to extend " -":data:`sys.path`." +"Module :mod:`site` This describes how to use .pth files to extend :data:`sys." +"path`." msgstr "" #: ../../library/sys.rst:970 msgid "" -"A list of callables that take a path argument to try to create a " -":term:`finder` for the path. If a finder can be created, it is to be " -"returned by the callable, else raise :exc:`ImportError`." +"A list of callables that take a path argument to try to create a :term:" +"`finder` for the path. If a finder can be created, it is to be returned by " +"the callable, else raise :exc:`ImportError`." msgstr "" #: ../../library/sys.rst:974 ../../library/sys.rst:985 @@ -1381,9 +1379,9 @@ msgstr "" #: ../../library/sys.rst:979 msgid "" "A dictionary acting as a cache for :term:`finder` objects. The keys are " -"paths that have been passed to :data:`sys.path_hooks` and the values are the" -" finders that are found. If a path is a valid file system path but no finder" -" is found on :data:`sys.path_hooks` then ``None`` is stored." +"paths that have been passed to :data:`sys.path_hooks` and the values are the " +"finders that are found. If a path is a valid file system path but no finder " +"is found on :data:`sys.path_hooks` then ``None`` is stored." msgstr "" #: ../../library/sys.rst:987 @@ -1425,7 +1423,7 @@ msgstr "" #: ../../library/sys.rst:1013 msgid "``'linux'``" -msgstr "" +msgstr "``'linux'``" #: ../../library/sys.rst:1014 msgid "Windows" @@ -1433,7 +1431,7 @@ msgstr "Windows" #: ../../library/sys.rst:1014 msgid "``'win32'``" -msgstr "" +msgstr "``'win32'``" #: ../../library/sys.rst:1015 msgid "Windows/Cygwin" @@ -1441,7 +1439,7 @@ msgstr "" #: ../../library/sys.rst:1015 msgid "``'cygwin'``" -msgstr "" +msgstr "``'cygwin'``" #: ../../library/sys.rst:1016 msgid "Mac OS X" @@ -1449,14 +1447,14 @@ msgstr "" #: ../../library/sys.rst:1016 msgid "``'darwin'``" -msgstr "" +msgstr "``'darwin'``" #: ../../library/sys.rst:1019 msgid "" -"On Linux, :attr:`sys.platform` doesn't contain the major version anymore. It" -" is always ``'linux'``, instead of ``'linux2'`` or ``'linux3'``. Since " -"older Python versions include the version number, it is recommended to " -"always use the ``startswith`` idiom presented above." +"On Linux, :attr:`sys.platform` doesn't contain the major version anymore. It " +"is always ``'linux'``, instead of ``'linux2'`` or ``'linux3'``. Since older " +"Python versions include the version number, it is recommended to always use " +"the ``startswith`` idiom presented above." msgstr "" #: ../../library/sys.rst:1027 @@ -1476,14 +1474,13 @@ msgstr "" #: ../../library/sys.rst:1036 msgid "" "A string giving the site-specific directory prefix where the platform " -"independent Python files are installed; by default, this is the string " -"``'/usr/local'``. This can be set at build time with the ``--prefix`` " -"argument to the :program:`configure` script. The main collection of Python " -"library modules is installed in the directory " -":file:`{prefix}/lib/python{X.Y}` while the platform independent header files" -" (all except :file:`pyconfig.h`) are stored in " -":file:`{prefix}/include/python{X.Y}`, where *X.Y* is the version number of " -"Python, for example ``3.2``." +"independent Python files are installed; by default, this is the string ``'/" +"usr/local'``. This can be set at build time with the ``--prefix`` argument " +"to the :program:`configure` script. The main collection of Python library " +"modules is installed in the directory :file:`{prefix}/lib/python{X.Y}` while " +"the platform independent header files (all except :file:`pyconfig.h`) are " +"stored in :file:`{prefix}/include/python{X.Y}`, where *X.Y* is the version " +"number of Python, for example ``3.2``." msgstr "" #: ../../library/sys.rst:1045 @@ -1499,52 +1496,52 @@ msgid "" "These are only defined if the interpreter is in interactive mode. Their " "initial values in this case are ``'>>> '`` and ``'... '``. If a non-string " "object is assigned to either variable, its :func:`str` is re-evaluated each " -"time the interpreter prepares to read a new interactive command; this can be" -" used to implement a dynamic prompt." +"time the interpreter prepares to read a new interactive command; this can be " +"used to implement a dynamic prompt." msgstr "" #: ../../library/sys.rst:1070 msgid "" -"Set the interpreter's \"check interval\". This integer value determines how" -" often the interpreter checks for periodic things such as thread switches " -"and signal handlers. The default is ``100``, meaning the check is performed" -" every 100 Python virtual instructions. Setting it to a larger value may " +"Set the interpreter's \"check interval\". This integer value determines how " +"often the interpreter checks for periodic things such as thread switches and " +"signal handlers. The default is ``100``, meaning the check is performed " +"every 100 Python virtual instructions. Setting it to a larger value may " "increase performance for programs using threads. Setting it to a value " -"``<=`` 0 checks every virtual instruction, maximizing responsiveness as well" -" as overhead." +"``<=`` 0 checks every virtual instruction, maximizing responsiveness as well " +"as overhead." msgstr "" #: ../../library/sys.rst:1077 msgid "" "This function doesn't have an effect anymore, as the internal logic for " -"thread switching and asynchronous tasks has been rewritten. Use " -":func:`setswitchinterval` instead." +"thread switching and asynchronous tasks has been rewritten. Use :func:" +"`setswitchinterval` instead." msgstr "" #: ../../library/sys.rst:1085 msgid "" "Set the flags used by the interpreter for :c:func:`dlopen` calls, such as " -"when the interpreter loads extension modules. Among other things, this will" -" enable a lazy resolving of symbols when importing a module, if called as " +"when the interpreter loads extension modules. Among other things, this will " +"enable a lazy resolving of symbols when importing a module, if called as " "``sys.setdlopenflags(0)``. To share symbols across extension modules, call " "as ``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag " -"values can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g. " -":data:`os.RTLD_LAZY`)." +"values can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g. :" +"data:`os.RTLD_LAZY`)." msgstr "" #: ../../library/sys.rst:1101 msgid "" "Set the system's profile function, which allows you to implement a Python " "source code profiler in Python. See chapter :ref:`profile` for more " -"information on the Python profiler. The system's profile function is called" -" similarly to the system's trace function (see :func:`settrace`), but it is " +"information on the Python profiler. The system's profile function is called " +"similarly to the system's trace function (see :func:`settrace`), but it is " "called with different events, for example it isn't called for each executed " -"line of code (only on call and return, but the return event is reported even" -" when an exception has been set). The function is thread-specific, but there" -" is no way for the profiler to know about context switches between threads, " +"line of code (only on call and return, but the return event is reported even " +"when an exception has been set). The function is thread-specific, but there " +"is no way for the profiler to know about context switches between threads, " "so it does not make sense to use this in the presence of multiple threads. " -"Also, its return value is not used, so it can simply return ``None``. Error" -" in the profile function will cause itself unset." +"Also, its return value is not used, so it can simply return ``None``. Error " +"in the profile function will cause itself unset." msgstr "" #: ../../library/sys.rst:1112 @@ -1561,7 +1558,7 @@ msgstr "" #: ../../library/sys.rst:1121 ../../library/sys.rst:1203 msgid "``'call'``" -msgstr "" +msgstr "``'call'``" #: ../../library/sys.rst:1120 msgid "" @@ -1571,7 +1568,7 @@ msgstr "" #: ../../library/sys.rst:1126 ../../library/sys.rst:1218 msgid "``'return'``" -msgstr "" +msgstr "``'return'``" #: ../../library/sys.rst:1124 msgid "" @@ -1582,7 +1579,7 @@ msgstr "" #: ../../library/sys.rst:1130 msgid "``'c_call'``" -msgstr "" +msgstr "``'c_call'``" #: ../../library/sys.rst:1129 msgid "" @@ -1592,7 +1589,7 @@ msgstr "" #: ../../library/sys.rst:1133 msgid "``'c_return'``" -msgstr "" +msgstr "``'c_return'``" #: ../../library/sys.rst:1133 msgid "A C function has returned. *arg* is the C function object." @@ -1600,7 +1597,7 @@ msgstr "" #: ../../library/sys.rst:1135 msgid "``'c_exception'``" -msgstr "" +msgstr "``'c_exception'``" #: ../../library/sys.rst:1136 msgid "A C function has raised an exception. *arg* is the C function object." @@ -1616,15 +1613,15 @@ msgstr "" #: ../../library/sys.rst:1144 msgid "" "The highest possible limit is platform-dependent. A user may need to set " -"the limit higher when they have a program that requires deep recursion and a" -" platform that supports a higher limit. This should be done with care, " +"the limit higher when they have a program that requires deep recursion and a " +"platform that supports a higher limit. This should be done with care, " "because a too-high limit can lead to a crash." msgstr "" #: ../../library/sys.rst:1149 msgid "" -"If the new limit is too low at the current recursion depth, a " -":exc:`RecursionError` exception is raised." +"If the new limit is too low at the current recursion depth, a :exc:" +"`RecursionError` exception is raised." msgstr "" #: ../../library/sys.rst:1152 @@ -1636,9 +1633,9 @@ msgstr "" #: ../../library/sys.rst:1159 msgid "" "Set the interpreter's thread switch interval (in seconds). This floating-" -"point value determines the ideal duration of the \"timeslices\" allocated to" -" concurrently running Python threads. Please note that the actual value can" -" be higher, especially if long-running internal functions or methods are " +"point value determines the ideal duration of the \"timeslices\" allocated to " +"concurrently running Python threads. Please note that the actual value can " +"be higher, especially if long-running internal functions or methods are " "used. Also, which thread becomes scheduled at the end of the interval is " "the operating system's decision. The interpreter doesn't have its own " "scheduler." @@ -1649,37 +1646,37 @@ msgid "" "Set the system's trace function, which allows you to implement a Python " "source code debugger in Python. The function is thread-specific; for a " "debugger to support multiple threads, it must register a trace function " -"using :func:`settrace` for each thread being debugged or use " -":func:`threading.settrace`." +"using :func:`settrace` for each thread being debugged or use :func:" +"`threading.settrace`." msgstr "" #: ../../library/sys.rst:1181 msgid "" "Trace functions should have three arguments: *frame*, *event*, and *arg*. " "*frame* is the current stack frame. *event* is a string: ``'call'``, " -"``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on" -" the event type." +"``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on " +"the event type." msgstr "" #: ../../library/sys.rst:1186 msgid "" "The trace function is invoked (with *event* set to ``'call'``) whenever a " "new local scope is entered; it should return a reference to a local trace " -"function to be used for the new scope, or ``None`` if the scope shouldn't be" -" traced." +"function to be used for the new scope, or ``None`` if the scope shouldn't be " +"traced." msgstr "" #: ../../library/sys.rst:1191 msgid "" "The local trace function should return a reference to itself (or to another " -"function for further tracing in that scope), or ``None`` to turn off tracing" -" in that scope." +"function for further tracing in that scope), or ``None`` to turn off tracing " +"in that scope." msgstr "" #: ../../library/sys.rst:1195 msgid "" -"If there is any error occurred in the trace function, it will be unset, just" -" like ``settrace(None)`` is called." +"If there is any error occurred in the trace function, it will be unset, just " +"like ``settrace(None)`` is called." msgstr "" #: ../../library/sys.rst:1201 @@ -1691,29 +1688,29 @@ msgstr "" #: ../../library/sys.rst:1212 msgid "``'line'``" -msgstr "" +msgstr "``'line'``" #: ../../library/sys.rst:1206 msgid "" "The interpreter is about to execute a new line of code or re-execute the " -"condition of a loop. The local trace function is called; *arg* is ``None``;" -" the return value specifies the new local trace function. See " -":file:`Objects/lnotab_notes.txt` for a detailed explanation of how this " -"works. Per-line events may be disabled for a frame by setting " -":attr:`f_trace_lines` to :const:`False` on that frame." +"condition of a loop. The local trace function is called; *arg* is ``None``; " +"the return value specifies the new local trace function. See :file:`Objects/" +"lnotab_notes.txt` for a detailed explanation of how this works. Per-line " +"events may be disabled for a frame by setting :attr:`f_trace_lines` to :" +"const:`False` on that frame." msgstr "" #: ../../library/sys.rst:1215 msgid "" "A function (or other code block) is about to return. The local trace " -"function is called; *arg* is the value that will be returned, or ``None`` if" -" the event is caused by an exception being raised. The trace function's " +"function is called; *arg* is the value that will be returned, or ``None`` if " +"the event is caused by an exception being raised. The trace function's " "return value is ignored." msgstr "" #: ../../library/sys.rst:1223 msgid "``'exception'``" -msgstr "" +msgstr "``'exception'``" #: ../../library/sys.rst:1221 msgid "" @@ -1724,15 +1721,15 @@ msgstr "" #: ../../library/sys.rst:1231 msgid "``'opcode'``" -msgstr "" +msgstr "``'opcode'``" #: ../../library/sys.rst:1226 msgid "" "The interpreter is about to execute a new opcode (see :mod:`dis` for opcode " -"details). The local trace function is called; *arg* is ``None``; the return" -" value specifies the new local trace function. Per-opcode events are not " -"emitted by default: they must be explicitly requested by setting " -":attr:`f_trace_opcodes` to :const:`True` on the frame." +"details). The local trace function is called; *arg* is ``None``; the return " +"value specifies the new local trace function. Per-opcode events are not " +"emitted by default: they must be explicitly requested by setting :attr:" +"`f_trace_opcodes` to :const:`True` on the frame." msgstr "" #: ../../library/sys.rst:1233 @@ -1745,14 +1742,14 @@ msgstr "" msgid "" "For more fine-grained usage, it's possible to set a trace function by " "assigning ``frame.f_trace = tracefunc`` explicitly, rather than relying on " -"it being set indirectly via the return value from an already installed trace" -" function. This is also required for activating the trace function on the " +"it being set indirectly via the return value from an already installed trace " +"function. This is also required for activating the trace function on the " "current frame, which :func:`settrace` doesn't do. Note that in order for " -"this to work, a global tracing function must have been installed with " -":func:`settrace` in order to enable the runtime tracing machinery, but it " -"doesn't need to be the same tracing function (e.g. it could be a low " -"overhead tracing function that simply returns ``None`` to disable itself " -"immediately on each frame)." +"this to work, a global tracing function must have been installed with :func:" +"`settrace` in order to enable the runtime tracing machinery, but it doesn't " +"need to be the same tracing function (e.g. it could be a low overhead " +"tracing function that simply returns ``None`` to disable itself immediately " +"on each frame)." msgstr "" #: ../../library/sys.rst:1247 @@ -1769,32 +1766,32 @@ msgstr "" #: ../../library/sys.rst:1258 msgid "" -"``'opcode'`` event type added; :attr:`f_trace_lines` and " -":attr:`f_trace_opcodes` attributes added to frames" +"``'opcode'`` event type added; :attr:`f_trace_lines` and :attr:" +"`f_trace_opcodes` attributes added to frames" msgstr "" #: ../../library/sys.rst:1263 msgid "" -"Accepts two optional keyword arguments which are callables that accept an " -":term:`asynchronous generator iterator` as an argument. The *firstiter* " +"Accepts two optional keyword arguments which are callables that accept an :" +"term:`asynchronous generator iterator` as an argument. The *firstiter* " "callable will be called when an asynchronous generator is iterated for the " -"first time. The *finalizer* will be called when an asynchronous generator is" -" about to be garbage collected." +"first time. The *finalizer* will be called when an asynchronous generator is " +"about to be garbage collected." msgstr "" #: ../../library/sys.rst:1269 msgid "" "See :pep:`525` for more details, and for a reference example of a " -"*finalizer* method see the implementation of " -"``asyncio.Loop.shutdown_asyncgens`` in :source:`Lib/asyncio/base_events.py`" +"*finalizer* method see the implementation of ``asyncio.Loop." +"shutdown_asyncgens`` in :source:`Lib/asyncio/base_events.py`" msgstr "" #: ../../library/sys.rst:1281 msgid "" "Allows enabling or disabling coroutine origin tracking. When enabled, the " "``cr_origin`` attribute on coroutine objects will contain a tuple of " -"(filename, line number, function name) tuples describing the traceback where" -" the coroutine object was created, with the most recent call first. When " +"(filename, line number, function name) tuples describing the traceback where " +"the coroutine object was created, with the most recent call first. When " "disabled, ``cr_origin`` will be None." msgstr "" @@ -1812,9 +1809,8 @@ msgstr "" #: ../../library/sys.rst:1302 msgid "" "Allows intercepting creation of :term:`coroutine` objects (only ones that " -"are created by an :keyword:`async def` function; generators decorated with " -":func:`types.coroutine` or :func:`asyncio.coroutine` will not be " -"intercepted)." +"are created by an :keyword:`async def` function; generators decorated with :" +"func:`types.coroutine` or :func:`asyncio.coroutine` will not be intercepted)." msgstr "" #: ../../library/sys.rst:1307 @@ -1831,8 +1827,8 @@ msgstr "" #: ../../library/sys.rst:1312 msgid "" -"If called twice, the new wrapper replaces the previous one. The function is" -" thread-specific." +"If called twice, the new wrapper replaces the previous one. The function is " +"thread-specific." msgstr "" #: ../../library/sys.rst:1315 @@ -1847,8 +1843,7 @@ msgstr "" #: ../../library/sys.rst:1345 msgid "" "Changes the default filesystem encoding and errors mode to 'mbcs' and " -"'replace' respectively, for consistency with versions of Python prior to " -"3.6." +"'replace' respectively, for consistency with versions of Python prior to 3.6." msgstr "" #: ../../library/sys.rst:1348 @@ -1859,7 +1854,7 @@ msgstr "" #: ../../library/sys.rst:1353 msgid "See :pep:`529` for more details." -msgstr "" +msgstr "Veja :pep:`529` para mais detalhes." #: ../../library/sys.rst:1360 msgid "" @@ -1869,8 +1864,8 @@ msgstr "" #: ../../library/sys.rst:1363 msgid "" -"``stdin`` is used for all interactive input (including calls to " -":func:`input`);" +"``stdin`` is used for all interactive input (including calls to :func:" +"`input`);" msgstr "" #: ../../library/sys.rst:1365 @@ -1885,25 +1880,25 @@ msgstr "" #: ../../library/sys.rst:1369 msgid "" -"These streams are regular :term:`text files ` like those returned" -" by the :func:`open` function. Their parameters are chosen as follows:" +"These streams are regular :term:`text files ` like those returned " +"by the :func:`open` function. Their parameters are chosen as follows:" msgstr "" #: ../../library/sys.rst:1373 msgid "" -"The character encoding is platform-dependent. Non-Windows platforms use the" -" locale encoding (see :meth:`locale.getpreferredencoding()`)." +"The character encoding is platform-dependent. Non-Windows platforms use the " +"locale encoding (see :meth:`locale.getpreferredencoding()`)." msgstr "" #: ../../library/sys.rst:1377 msgid "" "On Windows, UTF-8 is used for the console device. Non-character devices " "such as disk files and pipes use the system locale encoding (i.e. the ANSI " -"codepage). Non-console character devices such as NUL (i.e. where isatty() " -"returns True) use the value of the console input and output codepages at " -"startup, respectively for stdin and stdout/stderr. This defaults to the " -"system locale encoding if the process is not initially attached to a " -"console." +"codepage). Non-console character devices such as NUL (i.e. where " +"``isatty()`` returns ``True``) use the value of the console input and output " +"codepages at startup, respectively for stdin and stdout/stderr. This " +"defaults to the system locale encoding if the process is not initially " +"attached to a console." msgstr "" #: ../../library/sys.rst:1386 @@ -1915,12 +1910,11 @@ msgstr "" #: ../../library/sys.rst:1391 msgid "" -"Under all platforms, you can override the character encoding by setting the " -":envvar:`PYTHONIOENCODING` environment variable before starting Python or by" -" using the new :option:`-X` ``utf8`` command line option and " -":envvar:`PYTHONUTF8` environment variable. However, for the Windows " -"console, this only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also " -"set." +"Under all platforms, you can override the character encoding by setting the :" +"envvar:`PYTHONIOENCODING` environment variable before starting Python or by " +"using the new :option:`-X` ``utf8`` command line option and :envvar:" +"`PYTHONUTF8` environment variable. However, for the Windows console, this " +"only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set." msgstr "" #: ../../library/sys.rst:1398 @@ -1976,7 +1970,7 @@ msgstr "" #: ../../library/sys.rst:1445 msgid ":const:`name`" -msgstr "" +msgstr ":const:`name`" #: ../../library/sys.rst:1445 msgid "Name of the thread implementation:" @@ -1996,7 +1990,7 @@ msgstr "" #: ../../library/sys.rst:1451 msgid ":const:`lock`" -msgstr "" +msgstr ":const:`lock`" #: ../../library/sys.rst:1451 msgid "Name of the lock implementation:" @@ -2016,7 +2010,7 @@ msgstr "" #: ../../library/sys.rst:1458 msgid ":const:`version`" -msgstr "" +msgstr ":const:`version`" #: ../../library/sys.rst:1458 msgid "" @@ -2055,8 +2049,8 @@ msgid "" "*releaselevel* are integers; the release level is ``'alpha'``, ``'beta'``, " "``'candidate'``, or ``'final'``. The ``version_info`` value corresponding " "to the Python version 2.0 is ``(2, 0, 0, 'final', 0)``. The components can " -"also be accessed by name, so ``sys.version_info[0]`` is equivalent to " -"``sys.version_info.major`` and so on." +"also be accessed by name, so ``sys.version_info[0]`` is equivalent to ``sys." +"version_info.major`` and so on." msgstr "" #: ../../library/sys.rst:1498 @@ -2066,31 +2060,31 @@ msgstr "" #: ../../library/sys.rst:1503 msgid "" "This is an implementation detail of the warnings framework; do not modify " -"this value. Refer to the :mod:`warnings` module for more information on the" -" warnings framework." +"this value. Refer to the :mod:`warnings` module for more information on the " +"warnings framework." msgstr "" #: ../../library/sys.rst:1510 msgid "" "The version number used to form registry keys on Windows platforms. This is " -"stored as string resource 1000 in the Python DLL. The value is normally the" -" first three characters of :const:`version`. It is provided in the " -":mod:`sys` module for informational purposes; modifying this value has no " -"effect on the registry keys used by Python." +"stored as string resource 1000 in the Python DLL. The value is normally the " +"first three characters of :const:`version`. It is provided in the :mod:" +"`sys` module for informational purposes; modifying this value has no effect " +"on the registry keys used by Python." msgstr "" #: ../../library/sys.rst:1521 msgid "" -"A dictionary of the various implementation-specific flags passed through the" -" :option:`-X` command-line option. Option names are either mapped to their " -"values, if given explicitly, or to :const:`True`. Example:" +"A dictionary of the various implementation-specific flags passed through " +"the :option:`-X` command-line option. Option names are either mapped to " +"their values, if given explicitly, or to :const:`True`. Example:" msgstr "" #: ../../library/sys.rst:1537 msgid "" -"This is a CPython-specific way of accessing options passed through " -":option:`-X`. Other implementations may export them through other means, or" -" not at all." +"This is a CPython-specific way of accessing options passed through :option:`-" +"X`. Other implementations may export them through other means, or not at " +"all." msgstr "" #: ../../library/sys.rst:1545 @@ -2100,6 +2094,6 @@ msgstr "" #: ../../library/sys.rst:1546 msgid "" "ISO/IEC 9899:1999. \"Programming languages -- C.\" A public draft of this " -"standard is available at http://www.open-" -"std.org/jtc1/sc22/wg14/www/docs/n1256.pdf\\ ." +"standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/" +"n1256.pdf\\ ." msgstr "" diff --git a/library/sysconfig.po b/library/sysconfig.po index ec13ff745..fb79cc2df 100644 --- a/library/sysconfig.po +++ b/library/sysconfig.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,8 +53,7 @@ msgstr "" #: ../../library/sysconfig.rst:30 msgid "" ":mod:`sysconfig` puts all variables found in these files in a dictionary " -"that can be accessed using :func:`get_config_vars` or " -":func:`get_config_var`." +"that can be accessed using :func:`get_config_vars` or :func:`get_config_var`." msgstr "" #: ../../library/sysconfig.rst:33 @@ -96,9 +97,9 @@ msgstr "" #: ../../library/sysconfig.rst:67 msgid "" "Python uses an installation scheme that differs depending on the platform " -"and on the installation options. These schemes are stored in " -":mod:`sysconfig` under unique identifiers based on the value returned by " -":const:`os.name`." +"and on the installation options. These schemes are stored in :mod:" +"`sysconfig` under unique identifiers based on the value returned by :const:" +"`os.name`." msgstr "" #: ../../library/sysconfig.rst:71 @@ -188,14 +189,14 @@ msgstr "" #: ../../library/sysconfig.rst:106 msgid "" -"Return a tuple containing all schemes currently supported in " -":mod:`sysconfig`." +"Return a tuple containing all schemes currently supported in :mod:" +"`sysconfig`." msgstr "" #: ../../library/sysconfig.rst:112 msgid "" -"Return a tuple containing all path names currently supported in " -":mod:`sysconfig`." +"Return a tuple containing all path names currently supported in :mod:" +"`sysconfig`." msgstr "" #: ../../library/sysconfig.rst:118 @@ -212,8 +213,8 @@ msgstr "" #: ../../library/sysconfig.rst:123 msgid "" ":mod:`sysconfig` stores installation paths corresponding to each path name, " -"for each platform, with variables to be expanded. For instance the *stdlib*" -" path for the *nt* scheme is: ``{base}/Lib``." +"for each platform, with variables to be expanded. For instance the *stdlib* " +"path for the *nt* scheme is: ``{base}/Lib``." msgstr "" #: ../../library/sysconfig.rst:127 @@ -225,15 +226,15 @@ msgstr "" #: ../../library/sysconfig.rst:131 msgid "" -"If *scheme* is provided, it must be a value from the list returned by " -":func:`get_scheme_names`. Otherwise, the default scheme for the current " -"platform is used." +"If *scheme* is provided, it must be a value from the list returned by :func:" +"`get_scheme_names`. Otherwise, the default scheme for the current platform " +"is used." msgstr "" #: ../../library/sysconfig.rst:135 msgid "" -"If *vars* is provided, it must be a dictionary of variables that will update" -" the dictionary return by :func:`get_config_vars`." +"If *vars* is provided, it must be a dictionary of variables that will update " +"the dictionary return by :func:`get_config_vars`." msgstr "" #: ../../library/sysconfig.rst:138 @@ -256,8 +257,8 @@ msgstr "" #: ../../library/sysconfig.rst:152 msgid "" -"If *vars* is provided, it must be a dictionary of variables that will update" -" the dictionary used to expand the paths." +"If *vars* is provided, it must be a dictionary of variables that will update " +"the dictionary used to expand the paths." msgstr "" #: ../../library/sysconfig.rst:155 @@ -266,8 +267,8 @@ msgstr "" #: ../../library/sysconfig.rst:157 msgid "" -"If *scheme* is not an existing scheme, :func:`get_paths` will raise a " -":exc:`KeyError`." +"If *scheme* is not an existing scheme, :func:`get_paths` will raise a :exc:" +"`KeyError`." msgstr "" #: ../../library/sysconfig.rst:162 @@ -349,8 +350,8 @@ msgstr "" #: ../../library/sysconfig.rst:203 msgid "" "Return ``True`` if the running Python interpreter was built from source and " -"is being run from its built location, and not from a location resulting from" -" e.g. running ``make install`` or installing via a binary installer." +"is being run from its built location, and not from a location resulting from " +"e.g. running ``make install`` or installing via a binary installer." msgstr "" #: ../../library/sysconfig.rst:210 @@ -358,7 +359,8 @@ msgid "Parse a :file:`config.h`\\-style file." msgstr "" #: ../../library/sysconfig.rst:212 -msgid "*fp* is a file-like object pointing to the :file:`config.h`\\-like file." +msgid "" +"*fp* is a file-like object pointing to the :file:`config.h`\\-like file." msgstr "" #: ../../library/sysconfig.rst:214 @@ -386,7 +388,7 @@ msgstr "" #: ../../library/sysconfig.rst:256 msgid "" -"This call will print in the standard output the information returned by " -":func:`get_platform`, :func:`get_python_version`, :func:`get_path` and " -":func:`get_config_vars`." +"This call will print in the standard output the information returned by :" +"func:`get_platform`, :func:`get_python_version`, :func:`get_path` and :func:" +"`get_config_vars`." msgstr "" diff --git a/library/syslog.po b/library/syslog.po index f028a939d..e9dad8b6c 100644 --- a/library/syslog.po +++ b/library/syslog.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +38,8 @@ msgstr "" #: ../../library/syslog.rst:14 msgid "" "This module wraps the system ``syslog`` family of routines. A pure Python " -"library that can speak to a syslog server is available in the " -":mod:`logging.handlers` module as :class:`SysLogHandler`." +"library that can speak to a syslog server is available in the :mod:`logging." +"handlers` module as :class:`SysLogHandler`." msgstr "" #: ../../library/syslog.rst:18 @@ -46,8 +48,8 @@ msgstr "O módulo define as seguintes funções:" #: ../../library/syslog.rst:24 msgid "" -"Send the string *message* to the system logger. A trailing newline is added" -" if necessary. Each message is tagged with a priority composed of a " +"Send the string *message* to the system logger. A trailing newline is added " +"if necessary. Each message is tagged with a priority composed of a " "*facility* and a *level*. The optional *priority* argument, which defaults " "to :const:`LOG_INFO`, determines the message priority. If the facility is " "not encoded in *priority* using logical-or (``LOG_INFO | LOG_USER``), the " @@ -62,18 +64,18 @@ msgstr "" #: ../../library/syslog.rst:37 msgid "" -"Logging options of subsequent :func:`syslog` calls can be set by calling " -":func:`openlog`. :func:`syslog` will call :func:`openlog` with no arguments" -" if the log is not currently open." +"Logging options of subsequent :func:`syslog` calls can be set by calling :" +"func:`openlog`. :func:`syslog` will call :func:`openlog` with no arguments " +"if the log is not currently open." msgstr "" #: ../../library/syslog.rst:41 msgid "" "The optional *ident* keyword argument is a string which is prepended to " "every message, and defaults to ``sys.argv[0]`` with leading path components " -"stripped. The optional *logoption* keyword argument (default is 0) is a bit" -" field -- see below for possible values to combine. The optional *facility*" -" keyword argument (default is :const:`LOG_USER`) sets the default facility " +"stripped. The optional *logoption* keyword argument (default is 0) is a bit " +"field -- see below for possible values to combine. The optional *facility* " +"keyword argument (default is :const:`LOG_USER`) sets the default facility " "for messages which do not have a facility explicitly encoded." msgstr "" @@ -92,9 +94,9 @@ msgstr "" #: ../../library/syslog.rst:58 msgid "" "This causes the module to behave as it does when initially imported. For " -"example, :func:`openlog` will be called on the first :func:`syslog` call (if" -" :func:`openlog` hasn't already been called), and *ident* and other " -":func:`openlog` parameters are reset to defaults." +"example, :func:`openlog` will be called on the first :func:`syslog` call " +"(if :func:`openlog` hasn't already been called), and *ident* and other :func:" +"`openlog` parameters are reset to defaults." msgstr "" #: ../../library/syslog.rst:66 @@ -117,9 +119,9 @@ msgstr "" #: ../../library/syslog.rst:76 msgid "" -":const:`LOG_EMERG`, :const:`LOG_ALERT`, :const:`LOG_CRIT`, :const:`LOG_ERR`," -" :const:`LOG_WARNING`, :const:`LOG_NOTICE`, :const:`LOG_INFO`, " -":const:`LOG_DEBUG`." +":const:`LOG_EMERG`, :const:`LOG_ALERT`, :const:`LOG_CRIT`, :const:" +"`LOG_ERR`, :const:`LOG_WARNING`, :const:`LOG_NOTICE`, :const:`LOG_INFO`, :" +"const:`LOG_DEBUG`." msgstr "" #: ../../library/syslog.rst:85 @@ -128,11 +130,10 @@ msgstr "" #: ../../library/syslog.rst:81 msgid "" -":const:`LOG_KERN`, :const:`LOG_USER`, :const:`LOG_MAIL`, " -":const:`LOG_DAEMON`, :const:`LOG_AUTH`, :const:`LOG_LPR`, :const:`LOG_NEWS`," -" :const:`LOG_UUCP`, :const:`LOG_CRON`, :const:`LOG_SYSLOG`, " -":const:`LOG_LOCAL0` to :const:`LOG_LOCAL7`, and, if defined in " -"````, :const:`LOG_AUTHPRIV`." +":const:`LOG_KERN`, :const:`LOG_USER`, :const:`LOG_MAIL`, :const:" +"`LOG_DAEMON`, :const:`LOG_AUTH`, :const:`LOG_LPR`, :const:`LOG_NEWS`, :const:" +"`LOG_UUCP`, :const:`LOG_CRON`, :const:`LOG_SYSLOG`, :const:`LOG_LOCAL0` to :" +"const:`LOG_LOCAL7`, and, if defined in ````, :const:`LOG_AUTHPRIV`." msgstr "" #: ../../library/syslog.rst:91 @@ -141,9 +142,9 @@ msgstr "" #: ../../library/syslog.rst:88 msgid "" -":const:`LOG_PID`, :const:`LOG_CONS`, :const:`LOG_NDELAY`, and, if defined in" -" ````, :const:`LOG_ODELAY`, :const:`LOG_NOWAIT`, and " -":const:`LOG_PERROR`." +":const:`LOG_PID`, :const:`LOG_CONS`, :const:`LOG_NDELAY`, and, if defined in " +"````, :const:`LOG_ODELAY`, :const:`LOG_NOWAIT`, and :const:" +"`LOG_PERROR`." msgstr "" #: ../../library/syslog.rst:94 diff --git a/library/tabnanny.po b/library/tabnanny.po index 6501075ad..446c71334 100644 --- a/library/tabnanny.po +++ b/library/tabnanny.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Sheila Gomes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,23 +33,23 @@ msgstr "**Código Fonte:** :source:`Lib/tabnanny.py`" #: ../../library/tabnanny.rst:17 msgid "" -"For the time being this module is intended to be called as a script. However" -" it is possible to import it into an IDE and use the function :func:`check` " +"For the time being this module is intended to be called as a script. However " +"it is possible to import it into an IDE and use the function :func:`check` " "described below." msgstr "" #: ../../library/tabnanny.rst:23 msgid "" -"The API provided by this module is likely to change in future releases; such" -" changes may not be backward compatible." +"The API provided by this module is likely to change in future releases; such " +"changes may not be backward compatible." msgstr "" #: ../../library/tabnanny.rst:29 msgid "" "If *file_or_dir* is a directory and not a symbolic link, then recursively " "descend the directory tree named by *file_or_dir*, checking all :file:`.py` " -"files along the way. If *file_or_dir* is an ordinary Python source file, it" -" is checked for whitespace related problems. The diagnostic messages are " +"files along the way. If *file_or_dir* is an ordinary Python source file, it " +"is checked for whitespace related problems. The diagnostic messages are " "written to standard output using the :func:`print` function." msgstr "" @@ -72,8 +74,8 @@ msgstr "" #: ../../library/tabnanny.rst:57 msgid "" -"This function is used by :func:`check` to process tokens generated by the " -":mod:`tokenize` module." +"This function is used by :func:`check` to process tokens generated by the :" +"mod:`tokenize` module." msgstr "" #: ../../library/tabnanny.rst:66 @@ -82,4 +84,4 @@ msgstr "Módulo :mod:`tokenize`" #: ../../library/tabnanny.rst:67 msgid "Lexical scanner for Python source code." -msgstr "" +msgstr "Scanner léxico para código fonte Python." diff --git a/library/tarfile.po b/library/tarfile.po index dcd6aeef3..4a7f621e6 100644 --- a/library/tarfile.po +++ b/library/tarfile.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 # Christian Janiake , 2019 # Giovana Morais , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Giovana Morais , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,8 +38,8 @@ msgstr "**Código Fonte:** :source:`Lib/tarfile.py`" #: ../../library/tarfile.rst:14 msgid "" "The :mod:`tarfile` module makes it possible to read and write tar archives, " -"including those using gzip, bz2 and lzma compression. Use the :mod:`zipfile`" -" module to read or write :file:`.zip` files, or the higher-level functions " +"including those using gzip, bz2 and lzma compression. Use the :mod:`zipfile` " +"module to read or write :file:`.zip` files, or the higher-level functions " "in :ref:`shutil `." msgstr "" @@ -47,8 +49,8 @@ msgstr "" #: ../../library/tarfile.rst:21 msgid "" -"reads and writes :mod:`gzip`, :mod:`bz2` and :mod:`lzma` compressed archives" -" if the respective modules are available." +"reads and writes :mod:`gzip`, :mod:`bz2` and :mod:`lzma` compressed archives " +"if the respective modules are available." msgstr "" #: ../../library/tarfile.rst:24 @@ -108,7 +110,7 @@ msgstr "" #: ../../library/tarfile.rst:55 msgid "``'r:'``" -msgstr "" +msgstr "``'r:'``" #: ../../library/tarfile.rst:55 msgid "Open for reading exclusively without compression." @@ -116,7 +118,7 @@ msgstr "" #: ../../library/tarfile.rst:58 msgid "``'r:gz'``" -msgstr "" +msgstr "``'r:gz'``" #: ../../library/tarfile.rst:58 msgid "Open for reading with gzip compression." @@ -124,7 +126,7 @@ msgstr "" #: ../../library/tarfile.rst:60 msgid "``'r:bz2'``" -msgstr "" +msgstr "``'r:bz2'``" #: ../../library/tarfile.rst:60 msgid "Open for reading with bzip2 compression." @@ -132,7 +134,7 @@ msgstr "" #: ../../library/tarfile.rst:62 msgid "``'r:xz'``" -msgstr "" +msgstr "``'r:xz'``" #: ../../library/tarfile.rst:62 msgid "Open for reading with lzma compression." @@ -144,13 +146,13 @@ msgstr "" #: ../../library/tarfile.rst:64 msgid "" -"Create a tarfile exclusively without compression. Raise an " -":exc:`FileExistsError` exception if it already exists." +"Create a tarfile exclusively without compression. Raise an :exc:" +"`FileExistsError` exception if it already exists." msgstr "" #: ../../library/tarfile.rst:69 msgid "``'x:gz'``" -msgstr "" +msgstr "``'x:gz'``" #: ../../library/tarfile.rst:69 msgid "" @@ -160,7 +162,7 @@ msgstr "" #: ../../library/tarfile.rst:73 msgid "``'x:bz2'``" -msgstr "" +msgstr "``'x:bz2'``" #: ../../library/tarfile.rst:73 msgid "" @@ -170,7 +172,7 @@ msgstr "" #: ../../library/tarfile.rst:77 msgid "``'x:xz'``" -msgstr "" +msgstr "``'x:xz'``" #: ../../library/tarfile.rst:77 msgid "" @@ -198,7 +200,7 @@ msgstr "" #: ../../library/tarfile.rst:86 msgid "``'w:gz'``" -msgstr "" +msgstr "``'w:gz'``" #: ../../library/tarfile.rst:86 msgid "Open for gzip compressed writing." @@ -206,7 +208,7 @@ msgstr "" #: ../../library/tarfile.rst:88 msgid "``'w:bz2'``" -msgstr "" +msgstr "``'w:bz2'``" #: ../../library/tarfile.rst:88 msgid "Open for bzip2 compressed writing." @@ -214,7 +216,7 @@ msgstr "" #: ../../library/tarfile.rst:90 msgid "``'w:xz'``" -msgstr "" +msgstr "``'w:xz'``" #: ../../library/tarfile.rst:90 msgid "Open for lzma compressed writing." @@ -223,38 +225,36 @@ msgstr "" #: ../../library/tarfile.rst:93 msgid "" "Note that ``'a:gz'``, ``'a:bz2'`` or ``'a:xz'`` is not possible. If *mode* " -"is not suitable to open a certain (compressed) file for reading, " -":exc:`ReadError` is raised. Use *mode* ``'r'`` to avoid this. If a " -"compression method is not supported, :exc:`CompressionError` is raised." +"is not suitable to open a certain (compressed) file for reading, :exc:" +"`ReadError` is raised. Use *mode* ``'r'`` to avoid this. If a compression " +"method is not supported, :exc:`CompressionError` is raised." msgstr "" #: ../../library/tarfile.rst:98 msgid "" "If *fileobj* is specified, it is used as an alternative to a :term:`file " -"object` opened in binary mode for *name*. It is supposed to be at position " -"0." +"object` opened in binary mode for *name*. It is supposed to be at position 0." msgstr "" #: ../../library/tarfile.rst:101 msgid "" -"For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, ``'x:gz'``, " -"``'x:bz2'``, :func:`tarfile.open` accepts the keyword argument " -"*compresslevel* (default ``9``) to specify the compression level of the " -"file." +"For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, ``'x:gz'``, ``'x:" +"bz2'``, :func:`tarfile.open` accepts the keyword argument *compresslevel* " +"(default ``9``) to specify the compression level of the file." msgstr "" #: ../../library/tarfile.rst:105 msgid "" -"For special purposes, there is a second format for *mode*: " -"``'filemode|[compression]'``. :func:`tarfile.open` will return a " -":class:`TarFile` object that processes its data as a stream of blocks. No " -"random seeking will be done on the file. If given, *fileobj* may be any " -"object that has a :meth:`read` or :meth:`write` method (depending on the " -"*mode*). *bufsize* specifies the blocksize and defaults to ``20 * 512`` " -"bytes. Use this variant in combination with e.g. ``sys.stdin``, a socket " -":term:`file object` or a tape device. However, such a :class:`TarFile` " -"object is limited in that it does not allow random access, see :ref:`tar-" -"examples`. The currently possible modes:" +"For special purposes, there is a second format for *mode*: ``'filemode|" +"[compression]'``. :func:`tarfile.open` will return a :class:`TarFile` " +"object that processes its data as a stream of blocks. No random seeking " +"will be done on the file. If given, *fileobj* may be any object that has a :" +"meth:`read` or :meth:`write` method (depending on the *mode*). *bufsize* " +"specifies the blocksize and defaults to ``20 * 512`` bytes. Use this variant " +"in combination with e.g. ``sys.stdin``, a socket :term:`file object` or a " +"tape device. However, such a :class:`TarFile` object is limited in that it " +"does not allow random access, see :ref:`tar-examples`. The currently " +"possible modes:" msgstr "" #: ../../library/tarfile.rst:117 @@ -270,8 +270,7 @@ msgid "``'r|*'``" msgstr "``'r|*'``" #: ../../library/tarfile.rst:119 -msgid "" -"Open a *stream* of tar blocks for reading with transparent compression." +msgid "Open a *stream* of tar blocks for reading with transparent compression." msgstr "" #: ../../library/tarfile.rst:122 @@ -355,8 +354,8 @@ msgstr "" #: ../../library/tarfile.rst:161 msgid "" -"Return :const:`True` if *name* is a tar archive file, that the " -":mod:`tarfile` module can read." +"Return :const:`True` if *name* is a tar archive file, that the :mod:" +"`tarfile` module can read." msgstr "" #: ../../library/tarfile.rst:165 @@ -369,20 +368,20 @@ msgstr "" #: ../../library/tarfile.rst:175 msgid "" -"Is raised when a tar archive is opened, that either cannot be handled by the" -" :mod:`tarfile` module or is somehow invalid." +"Is raised when a tar archive is opened, that either cannot be handled by " +"the :mod:`tarfile` module or is somehow invalid." msgstr "" #: ../../library/tarfile.rst:181 msgid "" -"Is raised when a compression method is not supported or when the data cannot" -" be decoded properly." +"Is raised when a compression method is not supported or when the data cannot " +"be decoded properly." msgstr "" #: ../../library/tarfile.rst:187 msgid "" -"Is raised for the limitations that are typical for stream-like " -":class:`TarFile` objects." +"Is raised for the limitations that are typical for stream-like :class:" +"`TarFile` objects." msgstr "" #: ../../library/tarfile.rst:193 @@ -407,8 +406,8 @@ msgstr "" #: ../../library/tarfile.rst:210 msgid "" -"Each of the following constants defines a tar archive format that the " -":mod:`tarfile` module is able to create. See section :ref:`tar-formats` for " +"Each of the following constants defines a tar archive format that the :mod:" +"`tarfile` module is able to create. See section :ref:`tar-formats` for " "details." msgstr "" @@ -426,8 +425,8 @@ msgstr "" #: ../../library/tarfile.rst:232 msgid "" -"The default format for creating archives. This is currently " -":const:`GNU_FORMAT`." +"The default format for creating archives. This is currently :const:" +"`GNU_FORMAT`." msgstr "" #: ../../library/tarfile.rst:238 @@ -440,7 +439,7 @@ msgstr "" #: ../../library/tarfile.rst:242 msgid ":ref:`archiving-operations`" -msgstr "" +msgstr ":ref:`archiving-operations`" #: ../../library/tarfile.rst:241 msgid "" @@ -450,8 +449,8 @@ msgstr "" #: ../../library/tarfile.rst:244 msgid "" -"`GNU tar manual, Basic Tar Format " -"`_" +"`GNU tar manual, Basic Tar Format `_" msgstr "" #: ../../library/tarfile.rst:245 @@ -466,18 +465,18 @@ msgstr "" msgid "" "The :class:`TarFile` object provides an interface to a tar archive. A tar " "archive is a sequence of blocks. An archive member (a stored file) is made " -"up of a header block followed by data blocks. It is possible to store a file" -" in a tar archive several times. Each archive member is represented by a " -":class:`TarInfo` object, see :ref:`tarinfo-objects` for details." +"up of a header block followed by data blocks. It is possible to store a file " +"in a tar archive several times. Each archive member is represented by a :" +"class:`TarInfo` object, see :ref:`tarinfo-objects` for details." msgstr "" #: ../../library/tarfile.rst:259 msgid "" -"A :class:`TarFile` object can be used as a context manager in a " -":keyword:`with` statement. It will automatically be closed when the block is" -" completed. Please note that in the event of an exception an archive opened " -"for writing will not be finalized; only the internally used file object will" -" be closed. See the :ref:`tar-examples` section for a use case." +"A :class:`TarFile` object can be used as a context manager in a :keyword:" +"`with` statement. It will automatically be closed when the block is " +"completed. Please note that in the event of an exception an archive opened " +"for writing will not be finalized; only the internally used file object will " +"be closed. See the :ref:`tar-examples` section for a use case." msgstr "" #: ../../library/tarfile.rst:265 @@ -499,8 +498,8 @@ msgstr "" #: ../../library/tarfile.rst:277 msgid "" -"*mode* is either ``'r'`` to read from an existing archive, ``'a'`` to append" -" data to an existing file, ``'w'`` to create a new file overwriting an " +"*mode* is either ``'r'`` to read from an existing archive, ``'a'`` to append " +"data to an existing file, ``'w'`` to create a new file overwriting an " "existing one, or ``'x'`` to create a new file only if it does not already " "exist." msgstr "" @@ -508,8 +507,8 @@ msgstr "" #: ../../library/tarfile.rst:281 msgid "" "If *fileobj* is given, it is used for reading or writing data. If it can be " -"determined, *mode* is overridden by *fileobj*'s mode. *fileobj* will be used" -" from position 0." +"determined, *mode* is overridden by *fileobj*'s mode. *fileobj* will be used " +"from position 0." msgstr "" #: ../../library/tarfile.rst:287 @@ -518,9 +517,9 @@ msgstr "" #: ../../library/tarfile.rst:289 msgid "" -"*format* controls the archive format. It must be one of the constants " -":const:`USTAR_FORMAT`, :const:`GNU_FORMAT` or :const:`PAX_FORMAT` that are " -"defined at module level." +"*format* controls the archive format. It must be one of the constants :const:" +"`USTAR_FORMAT`, :const:`GNU_FORMAT` or :const:`PAX_FORMAT` that are defined " +"at module level." msgstr "" #: ../../library/tarfile.rst:293 @@ -552,19 +551,19 @@ msgstr "" #: ../../library/tarfile.rst:307 msgid "" -"If *errorlevel* is ``0``, all errors are ignored when using " -":meth:`TarFile.extract`. Nevertheless, they appear as error messages in the " -"debug output, when debugging is enabled. If ``1``, all *fatal* errors are " -"raised as :exc:`OSError` exceptions. If ``2``, all *non-fatal* errors are " -"raised as :exc:`TarError` exceptions as well." +"If *errorlevel* is ``0``, all errors are ignored when using :meth:`TarFile." +"extract`. Nevertheless, they appear as error messages in the debug output, " +"when debugging is enabled. If ``1``, all *fatal* errors are raised as :exc:" +"`OSError` exceptions. If ``2``, all *non-fatal* errors are raised as :exc:" +"`TarError` exceptions as well." msgstr "" #: ../../library/tarfile.rst:313 msgid "" "The *encoding* and *errors* arguments define the character encoding to be " "used for reading or writing the archive and how conversion errors are going " -"to be handled. The default settings will work for most users. See section " -":ref:`tar-unicode` for in-depth information." +"to be handled. The default settings will work for most users. See section :" +"ref:`tar-unicode` for in-depth information." msgstr "" #: ../../library/tarfile.rst:318 @@ -597,8 +596,8 @@ msgstr "" #: ../../library/tarfile.rst:350 msgid "" -"Return the members of the archive as a list of :class:`TarInfo` objects. The" -" list has the same order as the members in the archive." +"Return the members of the archive as a list of :class:`TarInfo` objects. The " +"list has the same order as the members in the archive." msgstr "" #: ../../library/tarfile.rst:356 @@ -609,8 +608,8 @@ msgstr "" #: ../../library/tarfile.rst:362 msgid "" -"Print a table of contents to ``sys.stdout``. If *verbose* is :const:`False`," -" only the names of the members are printed. If it is :const:`True`, output " +"Print a table of contents to ``sys.stdout``. If *verbose* is :const:`False`, " +"only the names of the members are printed. If it is :const:`True`, output " "similar to that of :program:`ls -l` is produced. If optional *members* is " "given, it must be a subset of the list returned by :meth:`getmembers`." msgstr "" @@ -621,16 +620,16 @@ msgstr "" #: ../../library/tarfile.rst:373 msgid "" -"Return the next member of the archive as a :class:`TarInfo` object, when " -":class:`TarFile` is opened for reading. Return :const:`None` if there is no " +"Return the next member of the archive as a :class:`TarInfo` object, when :" +"class:`TarFile` is opened for reading. Return :const:`None` if there is no " "more available." msgstr "" #: ../../library/tarfile.rst:380 msgid "" "Extract all members from the archive to the current working directory or " -"directory *path*. If optional *members* is given, it must be a subset of the" -" list returned by :meth:`getmembers`. Directory information like owner, " +"directory *path*. If optional *members* is given, it must be a subset of the " +"list returned by :meth:`getmembers`. Directory information like owner, " "modification time and permissions are set after all members have been " "extracted. This is done to work around two problems: A directory's " "modification time is reset each time a file is created in it. And, if a " @@ -648,9 +647,9 @@ msgstr "" #: ../../library/tarfile.rst:394 msgid "" "Never extract archives from untrusted sources without prior inspection. It " -"is possible that files are created outside of *path*, e.g. members that have" -" absolute filenames starting with ``\"/\"`` or filenames with two dots " -"``\"..\"``." +"is possible that files are created outside of *path*, e.g. members that have " +"absolute filenames starting with ``\"/\"`` or filenames with two dots ``\".." +"\"``." msgstr "" #: ../../library/tarfile.rst:399 ../../library/tarfile.rst:430 @@ -688,8 +687,8 @@ msgstr "" msgid "" "Extract a member from the archive as a file object. *member* may be a " "filename or a :class:`TarInfo` object. If *member* is a regular file or a " -"link, an :class:`io.BufferedReader` object is returned. Otherwise, " -":const:`None` is returned." +"link, an :class:`io.BufferedReader` object is returned. Otherwise, :const:" +"`None` is returned." msgstr "" #: ../../library/tarfile.rst:444 @@ -701,12 +700,12 @@ msgid "" "Add the file *name* to the archive. *name* may be any type of file " "(directory, fifo, symbolic link, etc.). If given, *arcname* specifies an " "alternative name for the file in the archive. Directories are added " -"recursively by default. This can be avoided by setting *recursive* to " -":const:`False`. Recursion adds entries in sorted order. If *filter* is " -"given, it should be a function that takes a :class:`TarInfo` object argument" -" and returns the changed :class:`TarInfo` object. If it instead returns " -":const:`None` the :class:`TarInfo` object will be excluded from the archive." -" See :ref:`tar-examples` for an example." +"recursively by default. This can be avoided by setting *recursive* to :const:" +"`False`. Recursion adds entries in sorted order. If *filter* is given, it " +"should be a function that takes a :class:`TarInfo` object argument and " +"returns the changed :class:`TarInfo` object. If it instead returns :const:" +"`None` the :class:`TarInfo` object will be excluded from the archive. See :" +"ref:`tar-examples` for an example." msgstr "" #: ../../library/tarfile.rst:461 @@ -732,18 +731,18 @@ msgid "" "specified as a :term:`file object` *fileobj* with a file descriptor. *name* " "may be a :term:`path-like object`. If given, *arcname* specifies an " "alternative name for the file in the archive, otherwise, the name is taken " -"from *fileobj*’s :attr:`~io.FileIO.name` attribute, or the *name* argument." -" The name should be a text string." +"from *fileobj*’s :attr:`~io.FileIO.name` attribute, or the *name* argument. " +"The name should be a text string." msgstr "" #: ../../library/tarfile.rst:487 msgid "" "You can modify some of the :class:`TarInfo`’s attributes before you add it " "using :meth:`addfile`. If the file object is not an ordinary file object " -"positioned at the beginning of the file, attributes such as " -":attr:`~TarInfo.size` may need modifying. This is the case for objects such" -" as :class:`~gzip.GzipFile`. The :attr:`~TarInfo.name` may also be modified," -" in which case *arcname* could be a dummy string." +"positioned at the beginning of the file, attributes such as :attr:`~TarInfo." +"size` may need modifying. This is the case for objects such as :class:" +"`~gzip.GzipFile`. The :attr:`~TarInfo.name` may also be modified, in which " +"case *arcname* could be a dummy string." msgstr "" #: ../../library/tarfile.rst:501 @@ -762,16 +761,16 @@ msgstr "" #: ../../library/tarfile.rst:516 msgid "" -"A :class:`TarInfo` object represents one member in a :class:`TarFile`. Aside" -" from storing all required attributes of a file (like file type, size, time," -" permissions, owner etc.), it provides some useful methods to determine its " +"A :class:`TarInfo` object represents one member in a :class:`TarFile`. Aside " +"from storing all required attributes of a file (like file type, size, time, " +"permissions, owner etc.), it provides some useful methods to determine its " "type. It does *not* contain the file's data itself." msgstr "" #: ../../library/tarfile.rst:521 msgid "" -":class:`TarInfo` objects are returned by :class:`TarFile`'s methods " -":meth:`getmember`, :meth:`getmembers` and :meth:`gettarinfo`." +":class:`TarInfo` objects are returned by :class:`TarFile`'s methods :meth:" +"`getmember`, :meth:`getmembers` and :meth:`gettarinfo`." msgstr "" #: ../../library/tarfile.rst:527 @@ -820,11 +819,11 @@ msgstr "" #: ../../library/tarfile.rst:577 msgid "" -"File type. *type* is usually one of these constants: :const:`REGTYPE`, " -":const:`AREGTYPE`, :const:`LNKTYPE`, :const:`SYMTYPE`, :const:`DIRTYPE`, " -":const:`FIFOTYPE`, :const:`CONTTYPE`, :const:`CHRTYPE`, :const:`BLKTYPE`, " -":const:`GNUTYPE_SPARSE`. To determine the type of a :class:`TarInfo` object" -" more conveniently, use the ``is*()`` methods below." +"File type. *type* is usually one of these constants: :const:`REGTYPE`, :" +"const:`AREGTYPE`, :const:`LNKTYPE`, :const:`SYMTYPE`, :const:`DIRTYPE`, :" +"const:`FIFOTYPE`, :const:`CONTTYPE`, :const:`CHRTYPE`, :const:`BLKTYPE`, :" +"const:`GNUTYPE_SPARSE`. To determine the type of a :class:`TarInfo` object " +"more conveniently, use the ``is*()`` methods below." msgstr "" #: ../../library/tarfile.rst:586 @@ -851,8 +850,7 @@ msgstr "" #: ../../library/tarfile.rst:612 msgid "" -"A dictionary containing key-value pairs of an associated pax extended " -"header." +"A dictionary containing key-value pairs of an associated pax extended header." msgstr "" #: ../../library/tarfile.rst:615 @@ -908,8 +906,8 @@ msgstr "" #: ../../library/tarfile.rst:674 msgid "" -"If you want to create a new tar archive, specify its name after the " -":option:`-c` option and then list the filename(s) that should be included:" +"If you want to create a new tar archive, specify its name after the :option:" +"`-c` option and then list the filename(s) that should be included:" msgstr "" #: ../../library/tarfile.rst:681 @@ -918,14 +916,14 @@ msgstr "" #: ../../library/tarfile.rst:687 msgid "" -"If you want to extract a tar archive into the current directory, use the " -":option:`-e` option:" +"If you want to extract a tar archive into the current directory, use the :" +"option:`-e` option:" msgstr "" #: ../../library/tarfile.rst:694 msgid "" -"You can also extract a tar archive into a different directory by passing the" -" directory's name:" +"You can also extract a tar archive into a different directory by passing the " +"directory's name:" msgstr "" #: ../../library/tarfile.rst:701 @@ -962,8 +960,7 @@ msgid "Examples" msgstr "Exemplos" #: ../../library/tarfile.rst:740 -msgid "" -"How to extract an entire tar archive to the current working directory::" +msgid "How to extract an entire tar archive to the current working directory::" msgstr "" #: ../../library/tarfile.rst:747 @@ -1004,10 +1001,10 @@ msgstr "" #: ../../library/tarfile.rst:811 msgid "" -"The POSIX.1-1988 ustar format (:const:`USTAR_FORMAT`). It supports filenames" -" up to a length of at best 256 characters and linknames up to 100 " -"characters. The maximum file size is 8 GiB. This is an old and limited but " -"widely supported format." +"The POSIX.1-1988 ustar format (:const:`USTAR_FORMAT`). It supports filenames " +"up to a length of at best 256 characters and linknames up to 100 characters. " +"The maximum file size is 8 GiB. This is an old and limited but widely " +"supported format." msgstr "" #: ../../library/tarfile.rst:816 @@ -1029,8 +1026,8 @@ msgstr "" #: ../../library/tarfile.rst:826 msgid "" "The *pax* format is an extension to the existing *ustar* format. It uses " -"extra headers for information that cannot be stored otherwise. There are two" -" flavours of pax headers: Extended headers only affect the subsequent file " +"extra headers for information that cannot be stored otherwise. There are two " +"flavours of pax headers: Extended headers only affect the subsequent file " "header, global headers are valid for the complete archive and affect all " "following files. All the data in a pax header is encoded in *UTF-8* for " "portability reasons." @@ -1067,9 +1064,9 @@ msgid "" "the main focus on preserving file system information. Nowadays tar archives " "are commonly used for file distribution and exchanging archives over " "networks. One problem of the original format (which is the basis of all " -"other formats) is that there is no concept of supporting different character" -" encodings. For example, an ordinary tar archive created on a *UTF-8* system" -" cannot be read correctly on a *Latin-1* system if it contains non-*ASCII* " +"other formats) is that there is no concept of supporting different character " +"encodings. For example, an ordinary tar archive created on a *UTF-8* system " +"cannot be read correctly on a *Latin-1* system if it contains non-*ASCII* " "characters. Textual metadata (like filenames, linknames, user/group names) " "will appear damaged. Unfortunately, there is no way to autodetect the " "encoding of an archive. The pax format was designed to solve this problem. " @@ -1102,7 +1099,7 @@ msgstr "" #: ../../library/tarfile.rst:874 msgid "" "In case of :const:`PAX_FORMAT` archives, *encoding* is generally not needed " -"because all the metadata is stored using *UTF-8*. *encoding* is only used in" -" the rare cases when binary pax headers are decoded or when strings with " +"because all the metadata is stored using *UTF-8*. *encoding* is only used in " +"the rare cases when binary pax headers are decoded or when strings with " "surrogate characters are stored." msgstr "" diff --git a/library/telnetlib.po b/library/telnetlib.po index b9e844528..4b3056fb0 100644 --- a/library/telnetlib.po +++ b/library/telnetlib.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-22 03:16+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:14+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,11 +34,11 @@ msgstr "**Código Fonte:** :source:`Lib/telnetlib.py`" #: ../../library/telnetlib.rst:15 msgid "" -"The :mod:`telnetlib` module provides a :class:`Telnet` class that implements" -" the Telnet protocol. See :rfc:`854` for details about the protocol. In " +"The :mod:`telnetlib` module provides a :class:`Telnet` class that implements " +"the Telnet protocol. See :rfc:`854` for details about the protocol. In " "addition, it provides symbolic constants for the protocol characters (see " -"below), and for the telnet options. The symbolic names of the telnet options" -" follow the definitions in ``arpa/telnet.h``, with the leading ``TELOPT_`` " +"below), and for the telnet options. The symbolic names of the telnet options " +"follow the definitions in ``arpa/telnet.h``, with the leading ``TELOPT_`` " "removed. For symbolic names of options which are traditionally not included " "in ``arpa/telnet.h``, see the module source itself." msgstr "" @@ -46,8 +48,7 @@ msgid "" "The symbolic constants for the telnet commands are: IAC, DONT, DO, WONT, " "WILL, SE (Subnegotiation End), NOP (No Operation), DM (Data Mark), BRK " "(Break), IP (Interrupt process), AO (Abort output), AYT (Are You There), EC " -"(Erase Character), EL (Erase Line), GA (Go Ahead), SB (Subnegotiation " -"Begin)." +"(Erase Character), EL (Erase Line), GA (Go Ahead), SB (Subnegotiation Begin)." msgstr "" #: ../../library/telnetlib.rst:31 @@ -56,9 +57,9 @@ msgid "" "initially not connected by default; the :meth:`~Telnet.open` method must be " "used to establish a connection. Alternatively, the host name and optional " "port number can be passed to the constructor too, in which case the " -"connection to the server will be established before the constructor returns." -" The optional *timeout* parameter specifies a timeout in seconds for " -"blocking operations like the connection attempt (if not specified, the " +"connection to the server will be established before the constructor " +"returns. The optional *timeout* parameter specifies a timeout in seconds " +"for blocking operations like the connection attempt (if not specified, the " "global default timeout setting will be used)." msgstr "" @@ -68,17 +69,17 @@ msgstr "" #: ../../library/telnetlib.rst:42 msgid "" -"This class has many :meth:`read_\\*` methods. Note that some of them raise" -" :exc:`EOFError` when the end of the connection is read, because they can " -"return an empty string for other reasons. See the individual descriptions " -"below." +"This class has many :meth:`read_\\*` methods. Note that some of them " +"raise :exc:`EOFError` when the end of the connection is read, because they " +"can return an empty string for other reasons. See the individual " +"descriptions below." msgstr "" #: ../../library/telnetlib.rst:46 msgid "" -"A :class:`Telnet` object is a context manager and can be used in a " -":keyword:`with` statement. When the :keyword:`!with` block ends, the " -":meth:`close` method is called::" +"A :class:`Telnet` object is a context manager and can be used in a :keyword:" +"`with` statement. When the :keyword:`!with` block ends, the :meth:`close` " +"method is called::" msgstr "" #: ../../library/telnetlib.rst:55 @@ -109,9 +110,9 @@ msgstr "" #: ../../library/telnetlib.rst:77 msgid "" -"When no match is found, return whatever is available instead, possibly empty" -" bytes. Raise :exc:`EOFError` if the connection is closed and no cooked " -"data is available." +"When no match is found, return whatever is available instead, possibly empty " +"bytes. Raise :exc:`EOFError` if the connection is closed and no cooked data " +"is available." msgstr "" #: ../../library/telnetlib.rst:84 @@ -131,8 +132,8 @@ msgstr "" #: ../../library/telnetlib.rst:97 ../../library/telnetlib.rst:106 msgid "" "Raise :exc:`EOFError` if connection closed and no cooked data available. " -"Return ``b''`` if no cooked data available otherwise. Do not block unless in" -" the midst of an IAC sequence." +"Return ``b''`` if no cooked data available otherwise. Do not block unless in " +"the midst of an IAC sequence." msgstr "" #: ../../library/telnetlib.rst:104 @@ -163,8 +164,8 @@ msgstr "" #: ../../library/telnetlib.rst:130 msgid "" "Return the data collected between a SB/SE pair (suboption begin/end). The " -"callback should access these data when it was invoked with a ``SE`` command." -" This method never blocks." +"callback should access these data when it was invoked with a ``SE`` command. " +"This method never blocks." msgstr "" #: ../../library/telnetlib.rst:137 @@ -213,8 +214,8 @@ msgstr "" #: ../../library/telnetlib.rst:179 msgid "" -"This method used to raise :exc:`socket.error`, which is now an alias of " -":exc:`OSError`." +"This method used to raise :exc:`socket.error`, which is now an alias of :exc:" +"`OSError`." msgstr "" #: ../../library/telnetlib.rst:186 @@ -231,9 +232,9 @@ msgstr "" #: ../../library/telnetlib.rst:198 msgid "" -"The first argument is a list of regular expressions, either compiled " -"(:ref:`regex objects `) or uncompiled (byte strings). The " -"optional second argument is a timeout, in seconds; the default is to block " +"The first argument is a list of regular expressions, either compiled (:ref:" +"`regex objects `) or uncompiled (byte strings). The optional " +"second argument is a timeout, in seconds; the default is to block " "indefinitely." msgstr "" @@ -247,14 +248,14 @@ msgstr "" #: ../../library/telnetlib.rst:207 msgid "" "If end of file is found and no bytes were read, raise :exc:`EOFError`. " -"Otherwise, when nothing matches, return ``(-1, None, data)`` where *data* is" -" the bytes received so far (may be empty bytes if a timeout happened)." +"Otherwise, when nothing matches, return ``(-1, None, data)`` where *data* is " +"the bytes received so far (may be empty bytes if a timeout happened)." msgstr "" #: ../../library/telnetlib.rst:211 msgid "" -"If a regular expression ends with a greedy match (such as ``.*``) or if more" -" than one expression can match the same input, the results are non-" +"If a regular expression ends with a greedy match (such as ``.*``) or if more " +"than one expression can match the same input, the results are non-" "deterministic, and may depend on the I/O timing." msgstr "" @@ -262,8 +263,8 @@ msgstr "" msgid "" "Each time a telnet option is read on the input flow, this *callback* (if " "set) is called with the following parameters: callback(telnet socket, " -"command (DO/DONT/WILL/WONT), option). No other action is done afterwards by" -" telnetlib." +"command (DO/DONT/WILL/WONT), option). No other action is done afterwards by " +"telnetlib." msgstr "" #: ../../library/telnetlib.rst:226 diff --git a/library/tempfile.po b/library/tempfile.po index f2cf90b14..5b6c02035 100644 --- a/library/tempfile.po +++ b/library/tempfile.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,9 +35,9 @@ msgstr "**Código Fonte:** :source:`Lib/tempfile.py`" #: ../../library/tempfile.rst:17 msgid "" "This module creates temporary files and directories. It works on all " -"supported platforms. :class:`TemporaryFile`, :class:`NamedTemporaryFile`, " -":class:`TemporaryDirectory`, and :class:`SpooledTemporaryFile` are high-" -"level interfaces which provide automatic cleanup and can be used as context " +"supported platforms. :class:`TemporaryFile`, :class:`NamedTemporaryFile`, :" +"class:`TemporaryDirectory`, and :class:`SpooledTemporaryFile` are high-level " +"interfaces which provide automatic cleanup and can be used as context " "managers. :func:`mkstemp` and :func:`mkdtemp` are lower-level functions " "which require manual cleanup." msgstr "" @@ -43,8 +45,8 @@ msgstr "" #: ../../library/tempfile.rst:24 msgid "" "All the user-callable functions and constructors take additional arguments " -"which allow direct control over the location and name of temporary files and" -" directories. Files names used by this module include a string of random " +"which allow direct control over the location and name of temporary files and " +"directories. Files names used by this module include a string of random " "characters which allows those files to be securely created in shared " "temporary directories. To maintain backward compatibility, the argument " "order is somewhat odd; it is recommended to use keyword arguments for " @@ -58,8 +60,8 @@ msgstr "" #: ../../library/tempfile.rst:36 msgid "" "Return a :term:`file-like object` that can be used as a temporary storage " -"area. The file is created securely, using the same rules as :func:`mkstemp`." -" It will be destroyed as soon as it is closed (including an implicit close " +"area. The file is created securely, using the same rules as :func:`mkstemp`. " +"It will be destroyed as soon as it is closed (including an implicit close " "when the object is garbage collected). Under Unix, the directory entry for " "the file is either not created at all or is removed immediately after the " "file is created. Other platforms do not support this; your code should not " @@ -79,8 +81,8 @@ msgid "" "The *mode* parameter defaults to ``'w+b'`` so that the file created can be " "read and written without being closed. Binary mode is used so that it " "behaves consistently on all platforms without regard for the data that is " -"stored. *buffering*, *encoding* and *newline* are interpreted as for " -":func:`open`." +"stored. *buffering*, *encoding* and *newline* are interpreted as for :func:" +"`open`." msgstr "" #: ../../library/tempfile.rst:55 @@ -98,8 +100,8 @@ msgstr "" #: ../../library/tempfile.rst:62 msgid "" -"The :py:data:`os.O_TMPFILE` flag is used if it is available and works " -"(Linux-specific, requires Linux kernel 3.11 or later)." +"The :py:data:`os.O_TMPFILE` flag is used if it is available and works (Linux-" +"specific, requires Linux kernel 3.11 or later)." msgstr "" #: ../../library/tempfile.rst:67 @@ -110,11 +112,11 @@ msgstr "" msgid "" "This function operates exactly as :func:`TemporaryFile` does, except that " "the file is guaranteed to have a visible name in the file system (on Unix, " -"the directory entry is not unlinked). That name can be retrieved from the " -":attr:`name` attribute of the returned file-like object. Whether the name " +"the directory entry is not unlinked). That name can be retrieved from the :" +"attr:`name` attribute of the returned file-like object. Whether the name " "can be used to open the file a second time, while the named temporary file " -"is still open, varies across platforms (it can be so used on Unix; it cannot" -" on Windows NT or later). If *delete* is true (the default), the file is " +"is still open, varies across platforms (it can be so used on Unix; it cannot " +"on Windows NT or later). If *delete* is true (the default), the file is " "deleted as soon as it is closed. The returned object is always a file-like " "object whose :attr:`!file` attribute is the underlying true file object. " "This file-like object can be used in a :keyword:`with` statement, just like " @@ -131,15 +133,15 @@ msgstr "" #: ../../library/tempfile.rst:94 msgid "" -"The resulting file has one additional method, :func:`rollover`, which causes" -" the file to roll over to an on-disk file regardless of its size." +"The resulting file has one additional method, :func:`rollover`, which causes " +"the file to roll over to an on-disk file regardless of its size." msgstr "" #: ../../library/tempfile.rst:97 msgid "" "The returned object is a file-like object whose :attr:`_file` attribute is " -"either an :class:`io.BytesIO` or :class:`io.StringIO` object (depending on " -"whether binary or text *mode* was specified) or a true file object, " +"either an :class:`io.BytesIO` or :class:`io.TextIOWrapper` object (depending " +"on whether binary or text *mode* was specified) or a true file object, " "depending on whether :func:`rollover` has been called. This file-like " "object can be used in a :keyword:`with` statement, just like a normal file." msgstr "" @@ -150,19 +152,19 @@ msgstr "" #: ../../library/tempfile.rst:110 msgid "" -"This function securely creates a temporary directory using the same rules as" -" :func:`mkdtemp`. The resulting object can be used as a context manager (see" -" :ref:`tempfile-examples`). On completion of the context or destruction of " -"the temporary directory object the newly created temporary directory and all" -" its contents are removed from the filesystem." +"This function securely creates a temporary directory using the same rules " +"as :func:`mkdtemp`. The resulting object can be used as a context manager " +"(see :ref:`tempfile-examples`). On completion of the context or destruction " +"of the temporary directory object the newly created temporary directory and " +"all its contents are removed from the filesystem." msgstr "" #: ../../library/tempfile.rst:116 msgid "" "The directory name can be retrieved from the :attr:`name` attribute of the " -"returned object. When the returned object is used as a context manager, the" -" :attr:`name` will be assigned to the target of the :keyword:`!as` clause in" -" the :keyword:`with` statement, if there is one." +"returned object. When the returned object is used as a context manager, " +"the :attr:`name` will be assigned to the target of the :keyword:`!as` clause " +"in the :keyword:`with` statement, if there is one." msgstr "" #: ../../library/tempfile.rst:121 @@ -184,8 +186,8 @@ msgstr "" #: ../../library/tempfile.rst:137 msgid "" -"Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible for" -" deleting the temporary file when done with it." +"Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible for " +"deleting the temporary file when done with it." msgstr "" #: ../../library/tempfile.rst:140 @@ -199,8 +201,8 @@ msgstr "" #: ../../library/tempfile.rst:145 msgid "" "If *prefix* is not ``None``, the file name will begin with that prefix; " -"otherwise, a default prefix is used. The default is the return value of " -":func:`gettempprefix` or :func:`gettempprefixb`, as appropriate." +"otherwise, a default prefix is used. The default is the return value of :" +"func:`gettempprefix` or :func:`gettempprefixb`, as appropriate." msgstr "" #: ../../library/tempfile.rst:149 @@ -209,8 +211,8 @@ msgid "" "otherwise, a default directory is used. The default directory is chosen " "from a platform-dependent list, but the user of the application can control " "the directory location by setting the *TMPDIR*, *TEMP* or *TMP* environment " -"variables. There is thus no guarantee that the generated filename will have" -" any nice properties, such as not requiring quoting when passed to external " +"variables. There is thus no guarantee that the generated filename will have " +"any nice properties, such as not requiring quoting when passed to external " "commands via ``os.popen()``." msgstr "" @@ -224,8 +226,8 @@ msgstr "" #: ../../library/tempfile.rst:163 msgid "" -"If *text* is specified, it indicates whether to open the file in binary mode" -" (the default) or text mode. On some platforms, this makes no difference." +"If *text* is specified, it indicates whether to open the file in binary mode " +"(the default) or text mode. On some platforms, this makes no difference." msgstr "" #: ../../library/tempfile.rst:167 @@ -262,8 +264,8 @@ msgstr "" #: ../../library/tempfile.rst:190 msgid "" -"The *prefix*, *suffix*, and *dir* arguments are the same as for " -":func:`mkstemp`." +"The *prefix*, *suffix*, and *dir* arguments are the same as for :func:" +"`mkstemp`." msgstr "" #: ../../library/tempfile.rst:193 @@ -278,8 +280,8 @@ msgstr "" #: ../../library/tempfile.rst:211 msgid "" -"Python searches a standard list of directories to find one which the calling" -" user can create files in. The list is:" +"Python searches a standard list of directories to find one which the calling " +"user can create files in. The list is:" msgstr "" #: ../../library/tempfile.rst:214 @@ -300,14 +302,14 @@ msgstr "" #: ../../library/tempfile.rst:222 msgid "" -"On Windows, the directories :file:`C:\\\\TEMP`, :file:`C:\\\\TMP`, " -":file:`\\\\TEMP`, and :file:`\\\\TMP`, in that order." +"On Windows, the directories :file:`C:\\\\TEMP`, :file:`C:\\\\TMP`, :file:`\\" +"\\TEMP`, and :file:`\\\\TMP`, in that order." msgstr "" #: ../../library/tempfile.rst:225 msgid "" -"On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and " -":file:`/usr/tmp`, in that order." +"On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and :" +"file:`/usr/tmp`, in that order." msgstr "" #: ../../library/tempfile.rst:228 @@ -338,9 +340,9 @@ msgstr "" msgid "" "The module uses a global variable to store the name of the directory used " "for temporary files returned by :func:`gettempdir`. It can be set directly " -"to override the selection process, but this is discouraged. All functions in" -" this module take a *dir* argument which can be used to specify the " -"directory and this is the recommended approach." +"to override the selection process, but this is discouraged. All functions in " +"this module take a *dir* argument which can be used to specify the directory " +"and this is the recommended approach." msgstr "" #: ../../library/tempfile.rst:258 @@ -361,8 +363,7 @@ msgid "Examples" msgstr "Exemplos" #: ../../library/tempfile.rst:271 -msgid "" -"Here are some examples of typical usage of the :mod:`tempfile` module::" +msgid "Here are some examples of typical usage of the :mod:`tempfile` module::" msgstr "" #: ../../library/tempfile.rst:302 @@ -371,8 +372,8 @@ msgstr "" #: ../../library/tempfile.rst:304 msgid "" -"A historical way to create temporary files was to first generate a file name" -" with the :func:`mktemp` function and then create a file using this name. " +"A historical way to create temporary files was to first generate a file name " +"with the :func:`mktemp` function and then create a file using this name. " "Unfortunately this is not secure, because a different process may create a " "file with this name in the time between the call to :func:`mktemp` and the " "subsequent attempt to create the file by the first process. The solution is " @@ -395,8 +396,8 @@ msgstr "" #: ../../library/tempfile.rst:325 msgid "" "Use of this function may introduce a security hole in your program. By the " -"time you get around to doing anything with the file name it returns, someone" -" else may have beaten you to the punch. :func:`mktemp` usage can be " -"replaced easily with :func:`NamedTemporaryFile`, passing it the " -"``delete=False`` parameter::" +"time you get around to doing anything with the file name it returns, someone " +"else may have beaten you to the punch. :func:`mktemp` usage can be replaced " +"easily with :func:`NamedTemporaryFile`, passing it the ``delete=False`` " +"parameter::" msgstr "" diff --git a/library/termios.po b/library/termios.po index de9f0b524..4f6e74e3c 100644 --- a/library/termios.po +++ b/library/termios.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +26,7 @@ msgstr "" #: ../../library/termios.rst:2 msgid ":mod:`termios` --- POSIX style tty control" -msgstr "" +msgstr ":mod:`termios` --- Controle de tty no estilo POSIX" #: ../../library/termios.rst:14 msgid "" @@ -33,20 +35,24 @@ msgid "" "manual page. It is only available for those Unix versions that support " "POSIX *termios* style tty I/O control configured during installation." msgstr "" +"Este módulo fornece uma interface para as chamadas POSIX para controle de E/" +"S do tty. Para uma descrição completa dessas chamadas, consulte a página de " +"manual Unix :manpage:`termios(3)`. Está disponível apenas para as versões " +"Unix que tenham suporte ao controle de E/S de tty no estilo POSIX do " +"*termios* configurado durante a instalação." #: ../../library/termios.rst:19 msgid "" "All functions in this module take a file descriptor *fd* as their first " -"argument. This can be an integer file descriptor, such as returned by " -"``sys.stdin.fileno()``, or a :term:`file object`, such as ``sys.stdin`` " -"itself." +"argument. This can be an integer file descriptor, such as returned by ``sys." +"stdin.fileno()``, or a :term:`file object`, such as ``sys.stdin`` itself." msgstr "" #: ../../library/termios.rst:23 msgid "" -"This module also defines all the constants needed to work with the functions" -" provided here; these have the same name as their counterparts in C. Please" -" refer to your system documentation for more information on using these " +"This module also defines all the constants needed to work with the functions " +"provided here; these have the same name as their counterparts in C. Please " +"refer to your system documentation for more information on using these " "terminal control interfaces." msgstr "" @@ -59,20 +65,20 @@ msgid "" "Return a list containing the tty attributes for file descriptor *fd*, as " "follows: ``[iflag, oflag, cflag, lflag, ispeed, ospeed, cc]`` where *cc* is " "a list of the tty special characters (each a string of length 1, except the " -"items with indices :const:`VMIN` and :const:`VTIME`, which are integers when" -" these fields are defined). The interpretation of the flags and the speeds " +"items with indices :const:`VMIN` and :const:`VTIME`, which are integers when " +"these fields are defined). The interpretation of the flags and the speeds " "as well as the indexing in the *cc* array must be done using the symbolic " "constants defined in the :mod:`termios` module." msgstr "" #: ../../library/termios.rst:44 msgid "" -"Set the tty attributes for file descriptor *fd* from the *attributes*, which" -" is a list like the one returned by :func:`tcgetattr`. The *when* argument " +"Set the tty attributes for file descriptor *fd* from the *attributes*, which " +"is a list like the one returned by :func:`tcgetattr`. The *when* argument " "determines when the attributes are changed: :const:`TCSANOW` to change " "immediately, :const:`TCSADRAIN` to change after transmitting all queued " -"output, or :const:`TCSAFLUSH` to change after transmitting all queued output" -" and discarding all queued input." +"output, or :const:`TCSAFLUSH` to change after transmitting all queued output " +"and discarding all queued input." msgstr "" #: ../../library/termios.rst:54 @@ -80,6 +86,10 @@ msgid "" "Send a break on file descriptor *fd*. A zero *duration* sends a break for " "0.25--0.5 seconds; a nonzero *duration* has a system dependent meaning." msgstr "" +"Envia uma quebra no descritor de arquivo *fd*. Uma duração zero, " +"representada por *duration*, envia uma pausa por 0,25 a 0,5 segundos; " +"*duration* com valor diferente de zero tem um significado dependente do " +"sistema." #: ../../library/termios.rst:60 msgid "" @@ -88,17 +98,16 @@ msgstr "" #: ../../library/termios.rst:65 msgid "" -"Discard queued data on file descriptor *fd*. The *queue* selector specifies" -" which queue: :const:`TCIFLUSH` for the input queue, :const:`TCOFLUSH` for " +"Discard queued data on file descriptor *fd*. The *queue* selector specifies " +"which queue: :const:`TCIFLUSH` for the input queue, :const:`TCOFLUSH` for " "the output queue, or :const:`TCIOFLUSH` for both queues." msgstr "" #: ../../library/termios.rst:72 msgid "" "Suspend or resume input or output on file descriptor *fd*. The *action* " -"argument can be :const:`TCOOFF` to suspend output, :const:`TCOON` to restart" -" output, :const:`TCIOFF` to suspend input, or :const:`TCION` to restart " -"input." +"argument can be :const:`TCOOFF` to suspend output, :const:`TCOON` to restart " +"output, :const:`TCIOFF` to suspend input, or :const:`TCION` to restart input." msgstr "" #: ../../library/termios.rst:79 @@ -115,8 +124,8 @@ msgstr "Exemplo" #: ../../library/termios.rst:88 msgid "" -"Here's a function that prompts for a password with echoing turned off. Note" -" the technique using a separate :func:`tcgetattr` call and a :keyword:`try` " -"... :keyword:`finally` statement to ensure that the old tty attributes are " -"restored exactly no matter what happens::" +"Here's a function that prompts for a password with echoing turned off. Note " +"the technique using a separate :func:`tcgetattr` call and a :keyword:" +"`try` ... :keyword:`finally` statement to ensure that the old tty attributes " +"are restored exactly no matter what happens::" msgstr "" diff --git a/library/test.po b/library/test.po index b3b083bac..7454638fe 100644 --- a/library/test.po +++ b/library/test.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,13 +30,13 @@ msgstr ":mod:`test` --- Pacote de Testes de Regressão do Python" #: ../../library/test.rst:10 msgid "" "The :mod:`test` package is meant for internal use by Python only. It is " -"documented for the benefit of the core developers of Python. Any use of this" -" package outside of Python's standard library is discouraged as code " +"documented for the benefit of the core developers of Python. Any use of this " +"package outside of Python's standard library is discouraged as code " "mentioned here can change or be removed without notice between releases of " "Python." msgstr "" -"O pacote :mod:`test` é apenas para uso interno do Python. O mesmo está sendo" -" documentado para o benefício dos principais desenvolvedores do Python. " +"O pacote :mod:`test` é apenas para uso interno do Python. O mesmo está sendo " +"documentado para o benefício dos principais desenvolvedores do Python. " "Qualquer uso deste pacote fora da biblioteca padrão do Python é " "desencorajado, pois, o código mencionado aqui pode ser alterado ou removido " "sem aviso prévio entre as versões do Python." @@ -42,27 +44,27 @@ msgstr "" #: ../../library/test.rst:18 msgid "" "The :mod:`test` package contains all regression tests for Python as well as " -"the modules :mod:`test.support` and :mod:`test.regrtest`. " -":mod:`test.support` is used to enhance your tests while :mod:`test.regrtest`" -" drives the testing suite." +"the modules :mod:`test.support` and :mod:`test.regrtest`. :mod:`test." +"support` is used to enhance your tests while :mod:`test.regrtest` drives the " +"testing suite." msgstr "" -"O pacote :mod:`test` contém todos os testes de regressão do Python, bem como" -" os módulos :mod:`test.support` e :mod:`test.regrtest`. O " -":mod:`test.support` é usado para aprimorar seus testes enquanto o :mod:` " -"test.regrtest` conduz (guia) o conjunto de testes." +"O pacote :mod:`test` contém todos os testes de regressão do Python, bem como " +"os módulos :mod:`test.support` e :mod:`test.regrtest`. O :mod:`test.support` " +"é usado para aprimorar seus testes enquanto o :mod:` test.regrtest` conduz " +"(guia) o conjunto de testes." #: ../../library/test.rst:23 msgid "" -"Each module in the :mod:`test` package whose name starts with ``test_`` is a" -" testing suite for a specific module or feature. All new tests should be " +"Each module in the :mod:`test` package whose name starts with ``test_`` is a " +"testing suite for a specific module or feature. All new tests should be " "written using the :mod:`unittest` or :mod:`doctest` module. Some older " -"tests are written using a \"traditional\" testing style that compares output" -" printed to ``sys.stdout``; this style of test is considered deprecated." +"tests are written using a \"traditional\" testing style that compares output " +"printed to ``sys.stdout``; this style of test is considered deprecated." msgstr "" "Cada módulo no pacote :mod: `test` cujo nome começa com ``test_`` é um " "conjunto de testes para um módulo ou recurso específico. Todos os novos " -"testes devem ser escritos usando o módulo :mod:`unittest` ou :mod:`doctest`." -" Alguns testes mais antigos são escritos usando um estilo de teste " +"testes devem ser escritos usando o módulo :mod:`unittest` ou :mod:`doctest`. " +"Alguns testes mais antigos são escritos usando um estilo de teste " "\"tradicional\" que compara a saída impressa em ``sys.stdout``; Este estilo " "de teste foi considerado obsoleto." @@ -89,8 +91,8 @@ msgstr "Escrever testes unitáriops para o pacote :mod:`test`" #: ../../library/test.rst:44 msgid "" "It is preferred that tests that use the :mod:`unittest` module follow a few " -"guidelines. One is to name the test module by starting it with ``test_`` and" -" end it with the name of the module being tested. The test methods in the " +"guidelines. One is to name the test module by starting it with ``test_`` and " +"end it with the name of the module being tested. The test methods in the " "test module should start with ``test_`` and end with a description of what " "the method is testing. This is needed so that the methods are recognized by " "the test driver as test methods. Also, no documentation string for the " @@ -106,18 +108,18 @@ msgstr "Um boilerplate básico é muitas vezes usado::" #: ../../library/test.rst:88 msgid "" -"This code pattern allows the testing suite to be run by " -":mod:`test.regrtest`, on its own as a script that supports the " -":mod:`unittest` CLI, or via the ``python -m unittest`` CLI." +"This code pattern allows the testing suite to be run by :mod:`test." +"regrtest`, on its own as a script that supports the :mod:`unittest` CLI, or " +"via the ``python -m unittest`` CLI." msgstr "" -"Este padrão de código permite que o conjunto de testes seja executado pelo " -":mod:`test.regrtest`, por conta própria, como um script que suporte o " -":mod:`unittest` CLI, ou através do ``python -m unittest`` CLI." +"Este padrão de código permite que o conjunto de testes seja executado pelo :" +"mod:`test.regrtest`, por conta própria, como um script que suporte o :mod:" +"`unittest` CLI, ou através do ``python -m unittest`` CLI." #: ../../library/test.rst:92 msgid "" -"The goal for regression testing is to try to break code. This leads to a few" -" guidelines to be followed:" +"The goal for regression testing is to try to break code. This leads to a few " +"guidelines to be followed:" msgstr "" "O objetivo do teste de regressão é tentar quebrar o código. Isso leva a " "algumas diretrizes que devemos seguir: " @@ -150,15 +152,14 @@ msgid "" "sure that not only all valid values are acceptable but also that improper " "values are handled correctly." msgstr "" -"Certifique-se de que todos os valores possíveis sejam testados, incluindo os" -" inválidos. Isso garante que não apenas todos os valores válidos são " -"aceitos, mas também, que os valores impróprios são tratados corretamente." +"Certifique-se de que todos os valores possíveis sejam testados, incluindo os " +"inválidos. Isso garante que não apenas todos os valores válidos são aceitos, " +"mas também, que os valores impróprios são tratados corretamente." #: ../../library/test.rst:108 msgid "" -"Exhaust as many code paths as possible. Test where branching occurs and thus" -" tailor input to make sure as many different paths through the code are " -"taken." +"Exhaust as many code paths as possible. Test where branching occurs and thus " +"tailor input to make sure as many different paths through the code are taken." msgstr "" #: ../../library/test.rst:111 @@ -196,10 +197,10 @@ msgstr "" #: ../../library/test.rst:145 msgid "" -"When using this pattern, remember that all classes that inherit from " -":class:`unittest.TestCase` are run as tests. The :class:`Mixin` class in " -"the example above does not have any data and so can't be run by itself, thus" -" it does not inherit from :class:`unittest.TestCase`." +"When using this pattern, remember that all classes that inherit from :class:" +"`unittest.TestCase` are run as tests. The :class:`Mixin` class in the " +"example above does not have any data and so can't be run by itself, thus it " +"does not inherit from :class:`unittest.TestCase`." msgstr "" #: ../../library/test.rst:153 @@ -220,14 +221,14 @@ msgid "" "test suite, thanks to the :option:`-m` option: :program:`python -m test`. " "Under the hood, it uses :mod:`test.regrtest`; the call :program:`python -m " "test.regrtest` used in previous Python versions still works. Running the " -"script by itself automatically starts running all regression tests in the " -":mod:`test` package. It does this by finding all modules in the package " -"whose name starts with ``test_``, importing them, and executing the function" -" :func:`test_main` if present or loading the tests via " -"unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. " -"The names of tests to execute may also be passed to the script. Specifying a" -" single regression test (:program:`python -m test test_spam`) will minimize " -"output and only print whether the test passed or failed." +"script by itself automatically starts running all regression tests in the :" +"mod:`test` package. It does this by finding all modules in the package whose " +"name starts with ``test_``, importing them, and executing the function :func:" +"`test_main` if present or loading the tests via unittest.TestLoader." +"loadTestsFromModule if ``test_main`` does not exist. The names of tests to " +"execute may also be passed to the script. Specifying a single regression " +"test (:program:`python -m test test_spam`) will minimize output and only " +"print whether the test passed or failed." msgstr "" #: ../../library/test.rst:175 @@ -238,8 +239,8 @@ msgid "" "resources: :program:`python -m test -uall`. If all but one resource is " "desired (a more common case), a comma-separated list of resources that are " "not desired may be listed after ``all``. The command :program:`python -m " -"test -uall,-audio,-largefile` will run :mod:`test` with all resources except" -" the ``audio`` and ``largefile`` resources. For a list of all resources and " +"test -uall,-audio,-largefile` will run :mod:`test` with all resources except " +"the ``audio`` and ``largefile`` resources. For a list of all resources and " "more command-line options, run :program:`python -m test -h`." msgstr "" @@ -247,20 +248,19 @@ msgstr "" msgid "" "Some other ways to execute the regression tests depend on what platform the " "tests are being executed on. On Unix, you can run :program:`make test` at " -"the top-level directory where Python was built. On Windows, executing " -":program:`rt.bat` from your :file:`PCbuild` directory will run all " -"regression tests." +"the top-level directory where Python was built. On Windows, executing :" +"program:`rt.bat` from your :file:`PCbuild` directory will run all regression " +"tests." msgstr "" #: ../../library/test.rst:194 msgid ":mod:`test.support` --- Utilities for the Python test suite" -msgstr "" -":mod:`test.support` --- Utilitários para o conjunto de teste do Python" +msgstr ":mod:`test.support` --- Utilitários para o conjunto de teste do Python" #: ../../library/test.rst:200 msgid "" -"The :mod:`test.support` module provides support for Python's regression test" -" suite." +"The :mod:`test.support` module provides support for Python's regression test " +"suite." msgstr "" #: ../../library/test.rst:205 @@ -276,8 +276,8 @@ msgstr "" #: ../../library/test.rst:214 msgid "" -"Exception to be raised when a test fails. This is deprecated in favor of " -":mod:`unittest`\\ -based tests and :class:`unittest.TestCase`'s assertion " +"Exception to be raised when a test fails. This is deprecated in favor of :" +"mod:`unittest`\\ -based tests and :class:`unittest.TestCase`'s assertion " "methods." msgstr "" @@ -295,8 +295,8 @@ msgstr "" #: ../../library/test.rst:230 msgid "" "``True`` when verbose output is enabled. Should be checked when more " -"detailed information is desired about a running test. *verbose* is set by " -":mod:`test.regrtest`." +"detailed information is desired about a running test. *verbose* is set by :" +"mod:`test.regrtest`." msgstr "" #: ../../library/test.rst:237 @@ -338,9 +338,9 @@ msgstr "" #: ../../library/test.rst:280 msgid "" -"Set to a filename (bytes type) that should not be able to be decoded by file" -" system encoding in strict mode. It may be ``None`` if it's not possible to" -" generate such a filename." +"Set to a filename (bytes type) that should not be able to be decoded by file " +"system encoding in strict mode. It may be ``None`` if it's not possible to " +"generate such a filename." msgstr "" #: ../../library/test.rst:287 @@ -361,8 +361,8 @@ msgstr "" #: ../../library/test.rst:307 msgid "" -"A constant that is likely larger than the underlying OS pipe buffer size, to" -" make writes blocking." +"A constant that is likely larger than the underlying OS pipe buffer size, to " +"make writes blocking." msgstr "" #: ../../library/test.rst:313 @@ -401,8 +401,8 @@ msgstr "" #: ../../library/test.rst:351 msgid "" -"Return ``True`` if running on CPython, not on Windows, and configuration not" -" set with ``WITH_DOC_STRINGS``." +"Return ``True`` if running on CPython, not on Windows, and configuration not " +"set with ``WITH_DOC_STRINGS``." msgstr "" #: ../../library/test.rst:357 @@ -445,8 +445,8 @@ msgstr "" #: ../../library/test.rst:397 msgid "" -"Call :func:`os.unlink` on *filename*. On Windows platforms, this is wrapped" -" with a wait loop that checks for the existence fo the file." +"Call :func:`os.unlink` on *filename*. On Windows platforms, this is wrapped " +"with a wait loop that checks for the existence fo the file." msgstr "" #: ../../library/test.rst:403 @@ -457,9 +457,9 @@ msgstr "" #: ../../library/test.rst:409 msgid "" -"Call :func:`shutil.rmtree` on *path* or call :func:`os.lstat` and " -":func:`os.rmdir` to remove a path and its contents. On Windows platforms, " -"this is wrapped with a wait loop that checks for the existence of the files." +"Call :func:`shutil.rmtree` on *path* or call :func:`os.lstat` and :func:`os." +"rmdir` to remove a path and its contents. On Windows platforms, this is " +"wrapped with a wait loop that checks for the existence of the files." msgstr "" #: ../../library/test.rst:416 @@ -542,9 +542,9 @@ msgstr "" #: ../../library/test.rst:493 msgid "" "It is also legal to pass strings as parameters; these should be keys in " -"``sys.modules``. Each associated module will be scanned by " -"``unittest.TestLoader.loadTestsFromModule()``. This is usually seen in the " -"following :func:`test_main` function::" +"``sys.modules``. Each associated module will be scanned by ``unittest." +"TestLoader.loadTestsFromModule()``. This is usually seen in the following :" +"func:`test_main` function::" msgstr "" #: ../../library/test.rst:501 @@ -553,16 +553,16 @@ msgstr "" #: ../../library/test.rst:506 msgid "" -"Run :func:`doctest.testmod` on the given *module*. Return ``(failure_count," -" test_count)``." +"Run :func:`doctest.testmod` on the given *module*. Return ``(failure_count, " +"test_count)``." msgstr "" #: ../../library/test.rst:509 msgid "" "If *verbosity* is ``None``, :func:`doctest.testmod` is run with verbosity " "set to :data:`verbose`. Otherwise, it is run with verbosity set to " -"``None``. *optionflags* is passed as ``optionflags`` to " -":func:`doctest.testmod`." +"``None``. *optionflags* is passed as ``optionflags`` to :func:`doctest." +"testmod`." msgstr "" #: ../../library/test.rst:517 @@ -581,8 +581,8 @@ msgstr "" msgid "" "A convenience wrapper for :func:`warnings.catch_warnings()` that makes it " "easier to test that a warning was correctly raised. It is approximately " -"equivalent to calling ``warnings.catch_warnings(record=True)`` with " -":meth:`warnings.simplefilter` set to ``always`` and with the option to " +"equivalent to calling ``warnings.catch_warnings(record=True)`` with :meth:" +"`warnings.simplefilter` set to ``always`` and with the option to " "automatically validate the results that are recorded." msgstr "" @@ -594,8 +594,8 @@ msgid "" "checks to make sure the warnings are as expected: each specified filter " "must match at least one of the warnings raised by the enclosed code or the " "test fails, and if any warnings are raised that do not match any of the " -"specified filters the test fails. To disable the first of these checks, set" -" *quiet* to ``True``." +"specified filters the test fails. To disable the first of these checks, set " +"*quiet* to ``True``." msgstr "" #: ../../library/test.rst:548 @@ -609,8 +609,8 @@ msgstr "" #: ../../library/test.rst:554 msgid "" "On entry to the context manager, a :class:`WarningRecorder` instance is " -"returned. The underlying warnings list from :func:`~warnings.catch_warnings`" -" is available via the recorder object's :attr:`warnings` attribute. As a " +"returned. The underlying warnings list from :func:`~warnings.catch_warnings` " +"is available via the recorder object's :attr:`warnings` attribute. As a " "convenience, the attributes of the object representing the most recent " "warning can also be accessed directly through the recorder object (see " "example below). If no warning has been raised, then any of the attributes " @@ -671,15 +671,15 @@ msgstr "" #: ../../library/test.rst:618 msgid "" -"Return the original stdout set by :func:`record_original_stdout` or " -"``sys.stdout`` if it's not set." +"Return the original stdout set by :func:`record_original_stdout` or ``sys." +"stdout`` if it's not set." msgstr "" #: ../../library/test.rst:624 msgid "" "Strip the *stderr* of a Python process from potential debug output emitted " -"by the interpreter. This will typically be run on the result of " -":meth:`subprocess.Popen.communicate`." +"by the interpreter. This will typically be run on the result of :meth:" +"`subprocess.Popen.communicate`." msgstr "" #: ../../library/test.rst:631 @@ -690,14 +690,14 @@ msgstr "" #: ../../library/test.rst:637 msgid "" -"Return a list of command line arguments reproducing the current optimization" -" settings in ``sys.flags``." +"Return a list of command line arguments reproducing the current optimization " +"settings in ``sys.flags``." msgstr "" #: ../../library/test.rst:645 msgid "" -"A context managers that temporarily replaces the named stream with " -":class:`io.StringIO` object." +"A context managers that temporarily replaces the named stream with :class:" +"`io.StringIO` object." msgstr "" #: ../../library/test.rst:648 @@ -716,10 +716,10 @@ msgstr "" #: ../../library/test.rst:671 msgid "" -"If *path* is ``None``, the temporary directory is created using " -":func:`tempfile.mkdtemp`. If *quiet* is ``False``, the context manager " -"raises an exception on error. Otherwise, if *path* is specified and cannot " -"be created, only a warning is issued." +"If *path* is ``None``, the temporary directory is created using :func:" +"`tempfile.mkdtemp`. If *quiet* is ``False``, the context manager raises an " +"exception on error. Otherwise, if *path* is specified and cannot be " +"created, only a warning is issued." msgstr "" #: ../../library/test.rst:679 @@ -744,9 +744,9 @@ msgstr "" #: ../../library/test.rst:692 msgid "" "The context manager creates a temporary directory in the current directory " -"with name *name* before temporarily changing the current working directory." -" If *name* is ``None``, the temporary directory is created using " -":func:`tempfile.mkdtemp`." +"with name *name* before temporarily changing the current working directory. " +"If *name* is ``None``, the temporary directory is created using :func:" +"`tempfile.mkdtemp`." msgstr "" #: ../../library/test.rst:697 @@ -762,13 +762,12 @@ msgstr "" #: ../../library/test.rst:709 msgid "" -"A context manager that raises :exc:`ResourceDenied` when various issues with" -" the internet connection manifest themselves as exceptions." +"A context manager that raises :exc:`ResourceDenied` when various issues with " +"the internet connection manifest themselves as exceptions." msgstr "" #: ../../library/test.rst:715 -msgid "" -"A context manager that replaces ``sys.stderr`` with ``sys.__stderr__``." +msgid "A context manager that replaces ``sys.stderr`` with ``sys.__stderr__``." msgstr "" #: ../../library/test.rst:720 @@ -812,8 +811,8 @@ msgstr "" #: ../../library/test.rst:759 msgid "" -"This will set ``obj[\"item\"]`` to 5 for the duration of the ``with`` block," -" restoring the old value at the end of the block. If ``item`` doesn't exist " +"This will set ``obj[\"item\"]`` to 5 for the duration of the ``with`` block, " +"restoring the old value at the end of the block. If ``item`` doesn't exist " "on ``obj``, it will be created and then deleted at the end of the block." msgstr "" @@ -831,8 +830,8 @@ msgstr "" #: ../../library/test.rst:782 msgid "" -"Return :func:`struct.calcsize` for ``nP{fmt}0n`` or, if ``gettotalrefcount``" -" exists, ``2PnP{fmt}0P``." +"Return :func:`struct.calcsize` for ``nP{fmt}0n`` or, if ``gettotalrefcount`` " +"exists, ``2PnP{fmt}0P``." msgstr "" #: ../../library/test.rst:788 @@ -848,8 +847,7 @@ msgid "" msgstr "" #: ../../library/test.rst:800 -msgid "" -"Return ``True`` if the OS supports symbolic links, ``False`` otherwise." +msgid "Return ``True`` if the OS supports symbolic links, ``False`` otherwise." msgstr "" #: ../../library/test.rst:806 @@ -872,9 +870,9 @@ msgstr "" #: ../../library/test.rst:828 msgid "" -"A decorator to conditionally mark tests with " -":func:`unittest.expectedFailure`. Any use of this decorator should have an " -"associated comment identifying the relevant tracker issue." +"A decorator to conditionally mark tests with :func:`unittest." +"expectedFailure`. Any use of this decorator should have an associated " +"comment identifying the relevant tracker issue." msgstr "" #: ../../library/test.rst:835 @@ -905,8 +903,8 @@ msgstr "" #: ../../library/test.rst:861 msgid "" -"Decorator for the minimum version when running test on Mac OS X. If the MAC" -" OS X version is less than the minimum, raise :exc:`unittest.SkipTest`." +"Decorator for the minimum version when running test on Mac OS X. If the MAC " +"OS X version is less than the minimum, raise :exc:`unittest.SkipTest`." msgstr "" #: ../../library/test.rst:867 @@ -948,8 +946,7 @@ msgid "" msgstr "" #: ../../library/test.rst:913 -msgid "" -"Decorator to temporarily turn off tracing for the duration of the test." +msgid "Decorator to temporarily turn off tracing for the duration of the test." msgstr "" #: ../../library/test.rst:918 @@ -1018,24 +1015,24 @@ msgstr "" #: ../../library/test.rst:976 msgid "" -"Module and package deprecation messages are suppressed during this import if" -" *deprecated* is ``True``. If a module is required on a platform but " +"Module and package deprecation messages are suppressed during this import if " +"*deprecated* is ``True``. If a module is required on a platform but " "optional for others, set *required_on* to an iterable of platform prefixes " "which will be compared against :data:`sys.platform`." msgstr "" #: ../../library/test.rst:986 msgid "" -"This function imports and returns a fresh copy of the named Python module by" -" removing the named module from ``sys.modules`` before doing the import. " -"Note that unlike :func:`reload`, the original module is not affected by this" -" operation." +"This function imports and returns a fresh copy of the named Python module by " +"removing the named module from ``sys.modules`` before doing the import. Note " +"that unlike :func:`reload`, the original module is not affected by this " +"operation." msgstr "" #: ../../library/test.rst:991 msgid "" -"*fresh* is an iterable of additional module names that are also removed from" -" the ``sys.modules`` cache before doing the import." +"*fresh* is an iterable of additional module names that are also removed from " +"the ``sys.modules`` cache before doing the import." msgstr "" #: ../../library/test.rst:994 @@ -1054,8 +1051,8 @@ msgstr "" #: ../../library/test.rst:1002 msgid "" -"Module and package deprecation messages are suppressed during this import if" -" *deprecated* is ``True``." +"Module and package deprecation messages are suppressed during this import if " +"*deprecated* is ``True``." msgstr "" #: ../../library/test.rst:1005 @@ -1112,13 +1109,12 @@ msgid "" "Bind the socket to a free port and return the port number. Relies on " "ephemeral ports in order to ensure we are using an unbound port. This is " "important as many tests may be running simultaneously, especially in a " -"buildbot environment. This method raises an exception if the " -"``sock.family`` is :const:`~socket.AF_INET` and ``sock.type`` is " -":const:`~socket.SOCK_STREAM`, and the socket has " -":const:`~socket.SO_REUSEADDR` or :const:`~socket.SO_REUSEPORT` set on it. " -"Tests should never set these socket options for TCP/IP sockets. The only " -"case for setting these options is testing multicasting via multiple UDP " -"sockets." +"buildbot environment. This method raises an exception if the ``sock." +"family`` is :const:`~socket.AF_INET` and ``sock.type`` is :const:`~socket." +"SOCK_STREAM`, and the socket has :const:`~socket.SO_REUSEADDR` or :const:" +"`~socket.SO_REUSEPORT` set on it. Tests should never set these socket " +"options for TCP/IP sockets. The only case for setting these options is " +"testing multicasting via multiple UDP sockets." msgstr "" #: ../../library/test.rst:1074 @@ -1131,32 +1127,32 @@ msgstr "" #: ../../library/test.rst:1082 msgid "" -"Bind a unix socket, raising :exc:`unittest.SkipTest` if " -":exc:`PermissionError` is raised." +"Bind a unix socket, raising :exc:`unittest.SkipTest` if :exc:" +"`PermissionError` is raised." msgstr "" #: ../../library/test.rst:1088 msgid "" "Returns an unused port that should be suitable for binding. This is " -"achieved by creating a temporary socket with the same family and type as the" -" ``sock`` parameter (default is :const:`~socket.AF_INET`, " -":const:`~socket.SOCK_STREAM`), and binding it to the specified host address " -"(defaults to ``0.0.0.0``) with the port set to 0, eliciting an unused " -"ephemeral port from the OS. The temporary socket is then closed and deleted," -" and the ephemeral port is returned." +"achieved by creating a temporary socket with the same family and type as the " +"``sock`` parameter (default is :const:`~socket.AF_INET`, :const:`~socket." +"SOCK_STREAM`), and binding it to the specified host address (defaults to " +"``0.0.0.0``) with the port set to 0, eliciting an unused ephemeral port from " +"the OS. The temporary socket is then closed and deleted, and the ephemeral " +"port is returned." msgstr "" #: ../../library/test.rst:1097 msgid "" -"Either this method or :func:`bind_port` should be used for any tests where a" -" server socket needs to be bound to a particular port for the duration of " -"the test. Which one to use depends on whether the calling code is creating a" -" Python socket, or if an unused port needs to be provided in a constructor " -"or passed to an external program (i.e. the ``-accept`` argument to openssl's" -" s_server mode). Always prefer :func:`bind_port` over " -":func:`find_unused_port` where possible. Using a hard coded port is " -"discouraged since it can make multiple instances of the test impossible to " -"run simultaneously, which is a problem for buildbots." +"Either this method or :func:`bind_port` should be used for any tests where a " +"server socket needs to be bound to a particular port for the duration of the " +"test. Which one to use depends on whether the calling code is creating a " +"Python socket, or if an unused port needs to be provided in a constructor or " +"passed to an external program (i.e. the ``-accept`` argument to openssl's " +"s_server mode). Always prefer :func:`bind_port` over :func:" +"`find_unused_port` where possible. Using a hard coded port is discouraged " +"since it can make multiple instances of the test impossible to run " +"simultaneously, which is a problem for buildbots." msgstr "" #: ../../library/test.rst:1111 @@ -1169,8 +1165,7 @@ msgid "" msgstr "" #: ../../library/test.rst:1126 -msgid "" -"Return ``True`` if the file system for *directory* is case-insensitive." +msgid "Return ``True`` if the file system for *directory* is case-insensitive." msgstr "" #: ../../library/test.rst:1131 @@ -1182,8 +1177,8 @@ msgstr "" #: ../../library/test.rst:1135 msgid "" -"By default this skips private attributes beginning with '_' but includes all" -" magic methods, i.e. those starting and ending in '__'." +"By default this skips private attributes beginning with '_' but includes all " +"magic methods, i.e. those starting and ending in '__'." msgstr "" #: ../../library/test.rst:1143 @@ -1195,8 +1190,8 @@ msgstr "" #: ../../library/test.rst:1151 msgid "" -"Run *code* in subinterpreter. Raise :exc:`unittest.SkipTest` if " -":mod:`tracemalloc` is enabled." +"Run *code* in subinterpreter. Raise :exc:`unittest.SkipTest` if :mod:" +"`tracemalloc` is enabled." msgstr "" #: ../../library/test.rst:1157 @@ -1206,8 +1201,8 @@ msgstr "" #: ../../library/test.rst:1162 msgid "" "Check for the existence of the compiler executables whose names are listed " -"in *cmd_names* or all the compiler executables when *cmd_names* is empty and" -" return the first missing executable or ``None`` when none is found missing." +"in *cmd_names* or all the compiler executables when *cmd_names* is empty and " +"return the first missing executable or ``None`` when none is found missing." msgstr "" #: ../../library/test.rst:1170 @@ -1233,8 +1228,8 @@ msgstr "" msgid "" "The *extra* argument can be a set of names that wouldn't otherwise be " "automatically detected as \"public\", like objects without a proper " -"``__module__`` attribute. If provided, it will be added to the automatically" -" detected ones." +"``__module__`` attribute. If provided, it will be added to the automatically " +"detected ones." msgstr "" #: ../../library/test.rst:1185 @@ -1251,15 +1246,15 @@ msgstr "" msgid "" "Instances are a context manager that raises :exc:`ResourceDenied` if the " "specified exception type is raised. Any keyword arguments are treated as " -"attribute/value pairs to be compared against any exception raised within the" -" :keyword:`with` statement. Only if all pairs match properly against " +"attribute/value pairs to be compared against any exception raised within " +"the :keyword:`with` statement. Only if all pairs match properly against " "attributes on the exception is :exc:`ResourceDenied` raised." msgstr "" #: ../../library/test.rst:1223 msgid "" -"Class used to temporarily set or unset environment variables. Instances can" -" be used as a context manager and have a complete dictionary interface for " +"Class used to temporarily set or unset environment variables. Instances can " +"be used as a context manager and have a complete dictionary interface for " "querying/modifying the underlying ``os.environ``. After exit from the " "context manager all changes to environment variables done through this " "instance will be rolled back." @@ -1293,9 +1288,8 @@ msgstr "" #: ../../library/test.rst:1251 msgid "" -"On UNIX, :func:`resource.setrlimit` is used to set " -":attr:`resource.RLIMIT_CORE`'s soft limit to 0 to prevent coredump file " -"creation." +"On UNIX, :func:`resource.setrlimit` is used to set :attr:`resource." +"RLIMIT_CORE`'s soft limit to 0 to prevent coredump file creation." msgstr "" #: ../../library/test.rst:1255 @@ -1304,8 +1298,8 @@ msgstr "" #: ../../library/test.rst:1260 msgid "" -"A context manager to force import to return a new module reference. This is" -" useful for testing module-level behaviors, such as the emission of a " +"A context manager to force import to return a new module reference. This is " +"useful for testing module-level behaviors, such as the emission of a " "DeprecationWarning on import. Example usage::" msgstr "" @@ -1323,8 +1317,8 @@ msgstr "" #: ../../library/test.rst:1276 msgid "" "Note that *all* :data:`sys.path` modifications in the body of the context " -"manager, including replacement of the object, will be reverted at the end of" -" the block." +"manager, including replacement of the object, will be reverted at the end of " +"the block." msgstr "" #: ../../library/test.rst:1283 @@ -1343,8 +1337,8 @@ msgstr "" #: ../../library/test.rst:1301 msgid "" -"Class used to record warnings for unit tests. See documentation of " -":func:`check_warnings` above for more details." +"Class used to record warnings for unit tests. See documentation of :func:" +"`check_warnings` above for more details." msgstr "" #: ../../library/test.rst:1309 @@ -1383,8 +1377,8 @@ msgstr "" #: ../../library/test.rst:1339 msgid "" "This is designed to be used with ``@unittest.skipIf()`` to annotate tests " -"that need to use an ``assert_python*()`` function to launch an isolated mode" -" (``-I``) or no environment mode (``-E``) sub-interpreter process." +"that need to use an ``assert_python*()`` function to launch an isolated mode " +"(``-I``) or no environment mode (``-E``) sub-interpreter process." msgstr "" #: ../../library/test.rst:1343 @@ -1445,8 +1439,8 @@ msgstr "" #: ../../library/test.rst:1386 msgid "" -"*kw* is extra keyword args to pass to :func:`subprocess.Popen`. Returns a " -":class:`subprocess.Popen` object." +"*kw* is extra keyword args to pass to :func:`subprocess.Popen`. Returns a :" +"class:`subprocess.Popen` object." msgstr "" #: ../../library/test.rst:1392 @@ -1464,8 +1458,8 @@ msgstr "" #: ../../library/test.rst:1405 msgid "" -"Create zip file at *zip_dir* and *zip_basename* with extension ``zip`` which" -" contains the files in *script_name*. *name_in_zip* is the archive name. " +"Create zip file at *zip_dir* and *zip_basename* with extension ``zip`` which " +"contains the files in *script_name*. *name_in_zip* is the archive name. " "Return a tuple containing ``(full path, full path of archive name)``." msgstr "" diff --git a/library/text.po b/library/text.po index 77ccae09a..8e2739fcc 100644 --- a/library/text.po +++ b/library/text.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,5 +43,5 @@ msgid "" "Python's built-in string type in :ref:`textseq`." msgstr "" "O módulo :mod:`codecs` descrito em :ref:`binaryservices` também é altamente " -"relevante para o processamento de texto. Além disso, consulte a documentação" -" do tipo string do Python em :ref:`textseq`." +"relevante para o processamento de texto. Além disso, consulte a documentação " +"do tipo string do Python em :ref:`textseq`." diff --git a/library/textwrap.po b/library/textwrap.po index 0d022b6c5..3c1d11421 100644 --- a/library/textwrap.po +++ b/library/textwrap.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-01 11:47+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:26+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,11 +33,11 @@ msgstr "**Código Fonte:** :source:`Lib/textwrap.py`" #: ../../library/textwrap.rst:14 msgid "" -"The :mod:`textwrap` module provides some convenience functions, as well as " -":class:`TextWrapper`, the class that does all the work. If you're just " +"The :mod:`textwrap` module provides some convenience functions, as well as :" +"class:`TextWrapper`, the class that does all the work. If you're just " "wrapping or filling one or two text strings, the convenience functions " -"should be good enough; otherwise, you should use an instance of " -":class:`TextWrapper` for efficiency." +"should be good enough; otherwise, you should use an instance of :class:" +"`TextWrapper` for efficiency." msgstr "" #: ../../library/textwrap.rst:22 @@ -47,26 +49,26 @@ msgstr "" #: ../../library/textwrap.rst:26 msgid "" -"Optional keyword arguments correspond to the instance attributes of " -":class:`TextWrapper`, documented below. *width* defaults to ``70``." +"Optional keyword arguments correspond to the instance attributes of :class:" +"`TextWrapper`, documented below. *width* defaults to ``70``." msgstr "" #: ../../library/textwrap.rst:29 msgid "" -"See the :meth:`TextWrapper.wrap` method for additional details on how " -":func:`wrap` behaves." +"See the :meth:`TextWrapper.wrap` method for additional details on how :func:" +"`wrap` behaves." msgstr "" #: ../../library/textwrap.rst:35 msgid "" -"Wraps the single paragraph in *text*, and returns a single string containing" -" the wrapped paragraph. :func:`fill` is shorthand for ::" +"Wraps the single paragraph in *text*, and returns a single string containing " +"the wrapped paragraph. :func:`fill` is shorthand for ::" msgstr "" #: ../../library/textwrap.rst:40 msgid "" -"In particular, :func:`fill` accepts exactly the same keyword arguments as " -":func:`wrap`." +"In particular, :func:`fill` accepts exactly the same keyword arguments as :" +"func:`wrap`." msgstr "" #: ../../library/textwrap.rst:46 @@ -77,18 +79,17 @@ msgstr "" msgid "" "First the whitespace in *text* is collapsed (all whitespace is replaced by " "single spaces). If the result fits in the *width*, it is returned. " -"Otherwise, enough words are dropped from the end so that the remaining words" -" plus the :attr:`placeholder` fit within :attr:`width`::" +"Otherwise, enough words are dropped from the end so that the remaining words " +"plus the :attr:`placeholder` fit within :attr:`width`::" msgstr "" #: ../../library/textwrap.rst:60 msgid "" -"Optional keyword arguments correspond to the instance attributes of " -":class:`TextWrapper`, documented below. Note that the whitespace is " -"collapsed before the text is passed to the :class:`TextWrapper` :meth:`fill`" -" function, so changing the value of :attr:`.tabsize`, :attr:`.expand_tabs`, " -":attr:`.drop_whitespace`, and :attr:`.replace_whitespace` will have no " -"effect." +"Optional keyword arguments correspond to the instance attributes of :class:" +"`TextWrapper`, documented below. Note that the whitespace is collapsed " +"before the text is passed to the :class:`TextWrapper` :meth:`fill` function, " +"so changing the value of :attr:`.tabsize`, :attr:`.expand_tabs`, :attr:`." +"drop_whitespace`, and :attr:`.replace_whitespace` will have no effect." msgstr "" #: ../../library/textwrap.rst:71 @@ -97,16 +98,15 @@ msgstr "" #: ../../library/textwrap.rst:73 msgid "" -"This can be used to make triple-quoted strings line up with the left edge of" -" the display, while still presenting them in the source code in indented " -"form." +"This can be used to make triple-quoted strings line up with the left edge of " +"the display, while still presenting them in the source code in indented form." msgstr "" #: ../../library/textwrap.rst:76 msgid "" "Note that tabs and spaces are both treated as whitespace, but they are not " -"equal: the lines ``\" hello\"`` and ``\"\\thello\"`` are considered to have" -" no common leading whitespace." +"equal: the lines ``\" hello\"`` and ``\"\\thello\"`` are considered to have " +"no common leading whitespace." msgstr "" #: ../../library/textwrap.rst:80 @@ -142,18 +142,18 @@ msgstr "" #: ../../library/textwrap.rst:123 msgid "" -":func:`wrap`, :func:`fill` and :func:`shorten` work by creating a " -":class:`TextWrapper` instance and calling a single method on it. That " -"instance is not reused, so for applications that process many text strings " -"using :func:`wrap` and/or :func:`fill`, it may be more efficient to create " -"your own :class:`TextWrapper` object." +":func:`wrap`, :func:`fill` and :func:`shorten` work by creating a :class:" +"`TextWrapper` instance and calling a single method on it. That instance is " +"not reused, so for applications that process many text strings using :func:" +"`wrap` and/or :func:`fill`, it may be more efficient to create your own :" +"class:`TextWrapper` object." msgstr "" #: ../../library/textwrap.rst:129 msgid "" "Text is preferably wrapped on whitespaces and right after the hyphens in " -"hyphenated words; only then will long words be broken if necessary, unless " -":attr:`TextWrapper.break_long_words` is set to false." +"hyphenated words; only then will long words be broken if necessary, unless :" +"attr:`TextWrapper.break_long_words` is set to false." msgstr "" #: ../../library/textwrap.rst:135 @@ -182,10 +182,10 @@ msgstr "" #: ../../library/textwrap.rst:156 msgid "" -"(default: ``70``) The maximum length of wrapped lines. As long as there are" -" no individual words in the input text longer than :attr:`width`, " -":class:`TextWrapper` guarantees that no output line will be longer than " -":attr:`width` characters." +"(default: ``70``) The maximum length of wrapped lines. As long as there are " +"no individual words in the input text longer than :attr:`width`, :class:" +"`TextWrapper` guarantees that no output line will be longer than :attr:" +"`width` characters." msgstr "" #: ../../library/textwrap.rst:164 @@ -203,31 +203,31 @@ msgstr "" #: ../../library/textwrap.rst:179 msgid "" -"(default: ``True``) If true, after tab expansion but before wrapping, the " -":meth:`wrap` method will replace each whitespace character with a single " +"(default: ``True``) If true, after tab expansion but before wrapping, the :" +"meth:`wrap` method will replace each whitespace character with a single " "space. The whitespace characters replaced are as follows: tab, newline, " "vertical tab, formfeed, and carriage return (``'\\t\\n\\v\\f\\r'``)." msgstr "" #: ../../library/textwrap.rst:187 msgid "" -"If :attr:`expand_tabs` is false and :attr:`replace_whitespace` is true, each" -" tab character will be replaced by a single space, which is *not* the same " -"as tab expansion." +"If :attr:`expand_tabs` is false and :attr:`replace_whitespace` is true, each " +"tab character will be replaced by a single space, which is *not* the same as " +"tab expansion." msgstr "" #: ../../library/textwrap.rst:193 msgid "" -"If :attr:`replace_whitespace` is false, newlines may appear in the middle of" -" a line and cause strange output. For this reason, text should be split into" -" paragraphs (using :meth:`str.splitlines` or similar) which are wrapped " +"If :attr:`replace_whitespace` is false, newlines may appear in the middle of " +"a line and cause strange output. For this reason, text should be split into " +"paragraphs (using :meth:`str.splitlines` or similar) which are wrapped " "separately." msgstr "" #: ../../library/textwrap.rst:201 msgid "" -"(default: ``True``) If true, whitespace at the beginning and ending of every" -" line (after wrapping but before indenting) is dropped. Whitespace at the " +"(default: ``True``) If true, whitespace at the beginning and ending of every " +"line (after wrapping but before indenting) is dropped. Whitespace at the " "beginning of the paragraph, however, is not dropped if non-whitespace " "follows it. If whitespace being dropped takes up an entire line, the whole " "line is dropped." @@ -235,8 +235,8 @@ msgstr "" #: ../../library/textwrap.rst:210 msgid "" -"(default: ``''``) String that will be prepended to the first line of wrapped" -" output. Counts towards the length of the first line. The empty string is " +"(default: ``''``) String that will be prepended to the first line of wrapped " +"output. Counts towards the length of the first line. The empty string is " "not indented." msgstr "" @@ -270,8 +270,8 @@ msgstr "" #: ../../library/textwrap.rst:241 msgid "" "Since the sentence detection algorithm relies on ``string.lowercase`` for " -"the definition of \"lowercase letter,\" and a convention of using two spaces" -" after a period to separate sentences on the same line, it is specific to " +"the definition of \"lowercase letter\", and a convention of using two spaces " +"after a period to separate sentences on the same line, it is specific to " "English-language texts." msgstr "" @@ -287,8 +287,8 @@ msgstr "" #: ../../library/textwrap.rst:258 msgid "" "(default: ``True``) If true, wrapping will occur preferably on whitespaces " -"and right after hyphens in compound words, as it is customary in English. If" -" false, only whitespaces will be considered as potentially good places for " +"and right after hyphens in compound words, as it is customary in English. If " +"false, only whitespaces will be considered as potentially good places for " "line breaks, but you need to set :attr:`break_long_words` to false if you " "want truly insecable words. Default behaviour in previous versions was to " "always allow breaking hyphenated words." @@ -314,15 +314,15 @@ msgstr "" #: ../../library/textwrap.rst:289 msgid "" -"Wraps the single paragraph in *text* (a string) so every line is at most " -":attr:`width` characters long. All wrapping options are taken from instance" -" attributes of the :class:`TextWrapper` instance. Returns a list of output " +"Wraps the single paragraph in *text* (a string) so every line is at most :" +"attr:`width` characters long. All wrapping options are taken from instance " +"attributes of the :class:`TextWrapper` instance. Returns a list of output " "lines, without final newlines. If the wrapped output has no content, the " "returned list is empty." msgstr "" #: ../../library/textwrap.rst:298 msgid "" -"Wraps the single paragraph in *text*, and returns a single string containing" -" the wrapped paragraph." +"Wraps the single paragraph in *text*, and returns a single string containing " +"the wrapped paragraph." msgstr "" diff --git a/library/threading.po b/library/threading.po index 6aeca4675..4f1e4870f 100644 --- a/library/threading.po +++ b/library/threading.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Octavio von Sydow , 2019 -# Sheila Gomes , 2019 # Fabio Aragao , 2019 -# +# Hildeberto Abreu Magalhães , 2019 +# Sheila Gomes , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-24 11:15+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: Fabio Aragao , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -26,7 +28,7 @@ msgstr "" #: ../../library/threading.rst:2 msgid ":mod:`threading` --- Thread-based parallelism" -msgstr "" +msgstr ":mod:`threading` --- Paralelismo baseado em Thread" #: ../../library/threading.rst:7 msgid "**Source code:** :source:`Lib/threading.py`" @@ -34,9 +36,12 @@ msgstr "**Código Fonte:** :source:`Lib/threading.py`" #: ../../library/threading.rst:11 msgid "" -"This module constructs higher-level threading interfaces on top of the lower" -" level :mod:`_thread` module. See also the :mod:`queue` module." +"This module constructs higher-level threading interfaces on top of the lower " +"level :mod:`_thread` module. See also the :mod:`queue` module." msgstr "" +"Este módulo constrói interfaces de alto nível para threading usando o " +"módulo :mod:`_thread`, de mais baixo nível. Veja também o módulo :mod:" +"`queue`." #: ../../library/threading.rst:14 msgid "This module used to be optional, it is now always available." @@ -48,16 +53,21 @@ msgid "" "methods and functions in this module in the Python 2.x series are still " "supported by this module." msgstr "" +"Mesmo não sendo listadas abaixo, os nomes ``camelCase`` usados por alguns " +"métodos e funções neste módulo, no Python 2.x, ainda são suportados pelo " +"módulo." #: ../../library/threading.rst:24 msgid "This module defines the following functions:" -msgstr "" +msgstr "Este módulo define as seguintes funções:" #: ../../library/threading.rst:29 msgid "" "Return the number of :class:`Thread` objects currently alive. The returned " "count is equal to the length of the list returned by :func:`.enumerate`." msgstr "" +"Retorna o número de objetos :class:`Thread` atualmente ativos. A quantidade " +"retornada é igual ao tamanho da lista retornada por :func:`.enumerate`." #: ../../library/threading.rst:35 msgid "" @@ -66,6 +76,10 @@ msgid "" "through the :mod:`threading` module, a dummy thread object with limited " "functionality is returned." msgstr "" +"Retorna o objeto :class:`Thread` atual, correspondendo ao controle do " +"chamador da thread. Se o controle do chamador da thread não foi criado " +"através do módulo :mod:`threading`, um objeto thread vazio, com " +"funcionalidade limitada, é retornado." #: ../../library/threading.rst:43 msgid "" @@ -76,17 +90,17 @@ msgid "" "created." msgstr "" "Retorna o 'identificador de thread' do thread atual. Este é um número " -"inteiro diferente de zero. Seu valor não tem significado direto; pretende-se" -" que seja um cookie mágico para ser usado, por exemplo, para indexar um " +"inteiro diferente de zero. Seu valor não tem significado direto; pretende-se " +"que seja um cookie mágico para ser usado, por exemplo, para indexar um " "dicionário de dados específicos do thread. identificadores de thread podem " "ser reciclados quando um thread sai e outro é criado." #: ../../library/threading.rst:54 msgid "" "Return a list of all :class:`Thread` objects currently alive. The list " -"includes daemonic threads, dummy thread objects created by " -":func:`current_thread`, and the main thread. It excludes terminated threads" -" and threads that have not yet been started." +"includes daemonic threads, dummy thread objects created by :func:" +"`current_thread`, and the main thread. It excludes terminated threads and " +"threads that have not yet been started." msgstr "" #: ../../library/threading.rst:62 @@ -112,12 +126,12 @@ msgstr "" #: ../../library/threading.rst:89 msgid "" "Return the thread stack size used when creating new threads. The optional " -"*size* argument specifies the stack size to be used for subsequently created" -" threads, and must be 0 (use platform or configured default) or a positive " +"*size* argument specifies the stack size to be used for subsequently created " +"threads, and must be 0 (use platform or configured default) or a positive " "integer value of at least 32,768 (32 KiB). If *size* is not specified, 0 is " -"used. If changing the thread stack size is unsupported, a " -":exc:`RuntimeError` is raised. If the specified stack size is invalid, a " -":exc:`ValueError` is raised and the stack size is unmodified. 32 KiB is " +"used. If changing the thread stack size is unsupported, a :exc:" +"`RuntimeError` is raised. If the specified stack size is invalid, a :exc:" +"`ValueError` is raised and the stack size is unmodified. 32 KiB is " "currently the minimum supported stack size value to guarantee sufficient " "stack space for the interpreter itself. Note that some platforms may have " "particular restrictions on values for the stack size, such as requiring a " @@ -127,11 +141,28 @@ msgid "" "stack size is the suggested approach in the absence of more specific " "information)." msgstr "" +"Retorna o tamanho da pilha de threads usado ao criar novos threads. O " +"argumento opcional *size* especifica o tamanho da pilha a ser usado para " +"threads criados posteriormente e deve ser 0 (usar plataforma ou padrão " +"configurado) ou um valor inteiro positivo de pelo menos 32.768 (32 KiB). Se " +"*size* não for especificado, 0 será usado. Se a alteração do tamanho da " +"pilha de threads não for suportada, um :exc: `RuntimeError` será gerado. Se " +"o tamanho da pilha especificado for inválido, um :exc: `ValueError` será " +"aumentado e o tamanho da pilha não será modificado. Atualmente, 0 KiB é o " +"valor mínimo de tamanho de pilha suportado para garantir espaço suficiente " +"para o próprio intérprete. Observe que algumas plataformas podem ter " +"restrições específicas sobre valores para o tamanho da pilha, como exigir um " +"tamanho mínimo de pilha> 32 KiB ou exigir alocação em múltiplos do tamanho " +"da página de memória do sistema - a documentação da plataforma deve ser " +"consultada para obter mais informações (4 páginas KiB são comuns; usar " +"múltiplos de 4096 para o tamanho da pilha é a abordagem sugerida na ausência " +"de informações mais específicas)." #: ../../library/threading.rst:104 msgid "" ":ref:`Availability `: Windows, systems with POSIX threads." msgstr "" +":ref:`Availability `: Windows, systems with POSIX threads." #: ../../library/threading.rst:107 msgid "This module also defines the following constant:" @@ -140,9 +171,9 @@ msgstr "" #: ../../library/threading.rst:111 msgid "" "The maximum value allowed for the *timeout* parameter of blocking functions " -"(:meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Condition.wait`, etc.)." -" Specifying a timeout greater than this value will raise an " -":exc:`OverflowError`." +"(:meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Condition.wait`, etc.). " +"Specifying a timeout greater than this value will raise an :exc:" +"`OverflowError`." msgstr "" #: ../../library/threading.rst:119 @@ -155,8 +186,8 @@ msgstr "" msgid "" "The design of this module is loosely based on Java's threading model. " "However, where Java makes locks and condition variables basic behavior of " -"every object, they are separate objects in Python. Python's :class:`Thread`" -" class supports a subset of the behavior of Java's Thread class; currently, " +"every object, they are separate objects in Python. Python's :class:`Thread` " +"class supports a subset of the behavior of Java's Thread class; currently, " "there are no priorities, no thread groups, and threads cannot be destroyed, " "stopped, suspended, resumed, or interrupted. The static methods of Java's " "Thread class, when implemented, are mapped to module-level functions." @@ -173,8 +204,8 @@ msgstr "" #: ../../library/threading.rst:136 msgid "" "Thread-local data is data whose values are thread specific. To manage " -"thread-local data, just create an instance of :class:`local` (or a subclass)" -" and store attributes on it::" +"thread-local data, just create an instance of :class:`local` (or a subclass) " +"and store attributes on it::" msgstr "" #: ../../library/threading.rst:143 @@ -187,8 +218,8 @@ msgstr "" #: ../../library/threading.rst:150 msgid "" -"For more details and extensive examples, see the documentation string of the" -" :mod:`_threading_local` module." +"For more details and extensive examples, see the documentation string of " +"the :mod:`_threading_local` module." msgstr "" #: ../../library/threading.rst:157 @@ -198,27 +229,26 @@ msgstr "" #: ../../library/threading.rst:159 msgid "" "The :class:`Thread` class represents an activity that is run in a separate " -"thread of control. There are two ways to specify the activity: by passing a" -" callable object to the constructor, or by overriding the " -":meth:`~Thread.run` method in a subclass. No other methods (except for the " -"constructor) should be overridden in a subclass. In other words, *only* " -"override the :meth:`~Thread.__init__` and :meth:`~Thread.run` methods of " -"this class." +"thread of control. There are two ways to specify the activity: by passing a " +"callable object to the constructor, or by overriding the :meth:`~Thread.run` " +"method in a subclass. No other methods (except for the constructor) should " +"be overridden in a subclass. In other words, *only* override the :meth:" +"`~Thread.__init__` and :meth:`~Thread.run` methods of this class." msgstr "" #: ../../library/threading.rst:166 msgid "" -"Once a thread object is created, its activity must be started by calling the" -" thread's :meth:`~Thread.start` method. This invokes the " -":meth:`~Thread.run` method in a separate thread of control." +"Once a thread object is created, its activity must be started by calling the " +"thread's :meth:`~Thread.start` method. This invokes the :meth:`~Thread.run` " +"method in a separate thread of control." msgstr "" #: ../../library/threading.rst:170 msgid "" "Once the thread's activity is started, the thread is considered 'alive'. It " "stops being alive when its :meth:`~Thread.run` method terminates -- either " -"normally, or by raising an unhandled exception. The " -":meth:`~Thread.is_alive` method tests whether the thread is alive." +"normally, or by raising an unhandled exception. The :meth:`~Thread." +"is_alive` method tests whether the thread is alive." msgstr "" #: ../../library/threading.rst:175 @@ -230,8 +260,8 @@ msgstr "" #: ../../library/threading.rst:179 msgid "" -"A thread has a name. The name can be passed to the constructor, and read or" -" changed through the :attr:`~Thread.name` attribute." +"A thread has a name. The name can be passed to the constructor, and read or " +"changed through the :attr:`~Thread.name` attribute." msgstr "" #: ../../library/threading.rst:182 @@ -253,19 +283,18 @@ msgstr "" #: ../../library/threading.rst:194 msgid "" -"There is a \"main thread\" object; this corresponds to the initial thread of" -" control in the Python program. It is not a daemon thread." +"There is a \"main thread\" object; this corresponds to the initial thread of " +"control in the Python program. It is not a daemon thread." msgstr "" #: ../../library/threading.rst:197 msgid "" "There is the possibility that \"dummy thread objects\" are created. These " "are thread objects corresponding to \"alien threads\", which are threads of " -"control started outside the threading module, such as directly from C code." -" Dummy thread objects have limited functionality; they are always " -"considered alive and daemonic, and cannot be :meth:`~Thread.join`\\ ed. " -"They are never deleted, since it is impossible to detect the termination of " -"alien threads." +"control started outside the threading module, such as directly from C code. " +"Dummy thread objects have limited functionality; they are always considered " +"alive and daemonic, and cannot be :meth:`~Thread.join`\\ ed. They are never " +"deleted, since it is impossible to detect the termination of alien threads." msgstr "" #: ../../library/threading.rst:208 @@ -276,8 +305,8 @@ msgstr "" #: ../../library/threading.rst:211 msgid "" -"*group* should be ``None``; reserved for future extension when a " -":class:`ThreadGroup` class is implemented." +"*group* should be ``None``; reserved for future extension when a :class:" +"`ThreadGroup` class is implemented." msgstr "" #: ../../library/threading.rst:214 @@ -305,16 +334,16 @@ msgstr "" #: ../../library/threading.rst:225 msgid "" -"If not ``None``, *daemon* explicitly sets whether the thread is daemonic. If" -" ``None`` (the default), the daemonic property is inherited from the current" -" thread." +"If not ``None``, *daemon* explicitly sets whether the thread is daemonic. If " +"``None`` (the default), the daemonic property is inherited from the current " +"thread." msgstr "" #: ../../library/threading.rst:229 msgid "" "If the subclass overrides the constructor, it must make sure to invoke the " -"base class constructor (``Thread.__init__()``) before doing anything else to" -" the thread." +"base class constructor (``Thread.__init__()``) before doing anything else to " +"the thread." msgstr "" #: ../../library/threading.rst:233 @@ -334,8 +363,8 @@ msgstr "" #: ../../library/threading.rst:244 msgid "" -"This method will raise a :exc:`RuntimeError` if called more than once on the" -" same thread object." +"This method will raise a :exc:`RuntimeError` if called more than once on the " +"same thread object." msgstr "" #: ../../library/threading.rst:249 @@ -344,8 +373,8 @@ msgstr "" #: ../../library/threading.rst:251 msgid "" -"You may override this method in a subclass. The standard :meth:`run` method" -" invokes the callable object passed to the object's constructor as the " +"You may override this method in a subclass. The standard :meth:`run` method " +"invokes the callable object passed to the object's constructor as the " "*target* argument, if any, with positional and keyword arguments taken from " "the *args* and *kwargs* arguments, respectively." msgstr "" @@ -364,8 +393,8 @@ msgid "" "floating point number specifying a timeout for the operation in seconds (or " "fractions thereof). As :meth:`~Thread.join` always returns ``None``, you " "must call :meth:`~Thread.is_alive` after :meth:`~Thread.join` to decide " -"whether a timeout happened -- if the thread is still alive, the " -":meth:`~Thread.join` call timed out." +"whether a timeout happened -- if the thread is still alive, the :meth:" +"`~Thread.join` call timed out." msgstr "" #: ../../library/threading.rst:270 @@ -389,8 +418,8 @@ msgstr "" #: ../../library/threading.rst:282 msgid "" "A string used for identification purposes only. It has no semantics. " -"Multiple threads may be given the same name. The initial name is set by the" -" constructor." +"Multiple threads may be given the same name. The initial name is set by the " +"constructor." msgstr "" #: ../../library/threading.rst:289 @@ -425,8 +454,8 @@ msgid "" "not (False). This must be set before :meth:`~Thread.start` is called, " "otherwise :exc:`RuntimeError` is raised. Its initial value is inherited " "from the creating thread; the main thread is not a daemon thread and " -"therefore all threads created in the main thread default to " -":attr:`~Thread.daemon` = ``False``." +"therefore all threads created in the main thread default to :attr:`~Thread." +"daemon` = ``False``." msgstr "" #: ../../library/threading.rst:317 @@ -446,10 +475,9 @@ msgid "" "execute Python code at once (even though certain performance-oriented " "libraries might overcome this limitation). If you want your application to " "make better use of the computational resources of multi-core machines, you " -"are advised to use :mod:`multiprocessing` or " -":class:`concurrent.futures.ProcessPoolExecutor`. However, threading is still" -" an appropriate model if you want to run multiple I/O-bound tasks " -"simultaneously." +"are advised to use :mod:`multiprocessing` or :class:`concurrent.futures." +"ProcessPoolExecutor`. However, threading is still an appropriate model if " +"you want to run multiple I/O-bound tasks simultaneously." msgstr "" #: ../../library/threading.rst:341 @@ -460,36 +488,34 @@ msgstr "" msgid "" "A primitive lock is a synchronization primitive that is not owned by a " "particular thread when locked. In Python, it is currently the lowest level " -"synchronization primitive available, implemented directly by the " -":mod:`_thread` extension module." +"synchronization primitive available, implemented directly by the :mod:" +"`_thread` extension module." msgstr "" #: ../../library/threading.rst:348 msgid "" "A primitive lock is in one of two states, \"locked\" or \"unlocked\". It is " -"created in the unlocked state. It has two basic methods, " -":meth:`~Lock.acquire` and :meth:`~Lock.release`. When the state is " -"unlocked, :meth:`~Lock.acquire` changes the state to locked and returns " -"immediately. When the state is locked, :meth:`~Lock.acquire` blocks until a" -" call to :meth:`~Lock.release` in another thread changes it to unlocked, " -"then the :meth:`~Lock.acquire` call resets it to locked and returns. The " -":meth:`~Lock.release` method should only be called in the locked state; it " -"changes the state to unlocked and returns immediately. If an attempt is made" -" to release an unlocked lock, a :exc:`RuntimeError` will be raised." +"created in the unlocked state. It has two basic methods, :meth:`~Lock." +"acquire` and :meth:`~Lock.release`. When the state is unlocked, :meth:" +"`~Lock.acquire` changes the state to locked and returns immediately. When " +"the state is locked, :meth:`~Lock.acquire` blocks until a call to :meth:" +"`~Lock.release` in another thread changes it to unlocked, then the :meth:" +"`~Lock.acquire` call resets it to locked and returns. The :meth:`~Lock." +"release` method should only be called in the locked state; it changes the " +"state to unlocked and returns immediately. If an attempt is made to release " +"an unlocked lock, a :exc:`RuntimeError` will be raised." msgstr "" #: ../../library/threading.rst:359 -msgid "" -"Locks also support the :ref:`context management protocol `." +msgid "Locks also support the :ref:`context management protocol `." msgstr "" #: ../../library/threading.rst:361 msgid "" "When more than one thread is blocked in :meth:`~Lock.acquire` waiting for " -"the state to turn to unlocked, only one thread proceeds when a " -":meth:`~Lock.release` call resets the state to unlocked; which one of the " -"waiting threads proceeds is not defined, and may vary across " -"implementations." +"the state to turn to unlocked, only one thread proceeds when a :meth:`~Lock." +"release` call resets the state to unlocked; which one of the waiting threads " +"proceeds is not defined, and may vary across implementations." msgstr "" #: ../../library/threading.rst:366 @@ -498,8 +524,8 @@ msgstr "" #: ../../library/threading.rst:371 msgid "" -"The class implementing primitive lock objects. Once a thread has acquired a" -" lock, subsequent attempts to acquire it block, until it is released; any " +"The class implementing primitive lock objects. Once a thread has acquired a " +"lock, subsequent attempts to acquire it block, until it is released; any " "thread may release it." msgstr "" @@ -510,7 +536,7 @@ msgid "" "by the platform." msgstr "" -#: ../../library/threading.rst:382 ../../library/threading.rst:457 +#: ../../library/threading.rst:382 ../../library/threading.rst:462 msgid "Acquire a lock, blocking or non-blocking." msgstr "" @@ -522,28 +548,28 @@ msgstr "" #: ../../library/threading.rst:387 msgid "" -"When invoked with the *blocking* argument set to ``False``, do not block. If" -" a call with *blocking* set to ``True`` would block, return ``False`` " +"When invoked with the *blocking* argument set to ``False``, do not block. If " +"a call with *blocking* set to ``True`` would block, return ``False`` " "immediately; otherwise, set the lock to locked and return ``True``." msgstr "" #: ../../library/threading.rst:391 msgid "" "When invoked with the floating-point *timeout* argument set to a positive " -"value, block for at most the number of seconds specified by *timeout* and as" -" long as the lock cannot be acquired. A *timeout* argument of ``-1`` " +"value, block for at most the number of seconds specified by *timeout* and as " +"long as the lock cannot be acquired. A *timeout* argument of ``-1`` " "specifies an unbounded wait. It is forbidden to specify a *timeout* when " "*blocking* is false." msgstr "" #: ../../library/threading.rst:397 msgid "" -"The return value is ``True`` if the lock is acquired successfully, ``False``" -" if not (for example if the *timeout* expired)." +"The return value is ``True`` if the lock is acquired successfully, ``False`` " +"if not (for example if the *timeout* expired)." msgstr "" -#: ../../library/threading.rst:400 ../../library/threading.rst:479 -#: ../../library/threading.rst:724 +#: ../../library/threading.rst:400 ../../library/threading.rst:484 +#: ../../library/threading.rst:729 msgid "The *timeout* parameter is new." msgstr "O parâmetro *timeout* é novo." @@ -570,41 +596,45 @@ msgstr "" msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised." msgstr "" -#: ../../library/threading.rst:419 ../../library/threading.rst:495 +#: ../../library/threading.rst:419 ../../library/threading.rst:500 msgid "There is no return value." msgstr "" -#: ../../library/threading.rst:425 +#: ../../library/threading.rst:423 +msgid "Return true if the lock is acquired." +msgstr "" + +#: ../../library/threading.rst:430 msgid "RLock Objects" msgstr "" -#: ../../library/threading.rst:427 +#: ../../library/threading.rst:432 msgid "" "A reentrant lock is a synchronization primitive that may be acquired " "multiple times by the same thread. Internally, it uses the concepts of " -"\"owning thread\" and \"recursion level\" in addition to the locked/unlocked" -" state used by primitive locks. In the locked state, some thread owns the " +"\"owning thread\" and \"recursion level\" in addition to the locked/unlocked " +"state used by primitive locks. In the locked state, some thread owns the " "lock; in the unlocked state, no thread owns it." msgstr "" -#: ../../library/threading.rst:433 +#: ../../library/threading.rst:438 msgid "" "To lock the lock, a thread calls its :meth:`~RLock.acquire` method; this " "returns once the thread owns the lock. To unlock the lock, a thread calls " -"its :meth:`~Lock.release` method. " -":meth:`~Lock.acquire`/:meth:`~Lock.release` call pairs may be nested; only " -"the final :meth:`~Lock.release` (the :meth:`~Lock.release` of the outermost " -"pair) resets the lock to unlocked and allows another thread blocked in " -":meth:`~Lock.acquire` to proceed." +"its :meth:`~Lock.release` method. :meth:`~Lock.acquire`/:meth:`~Lock." +"release` call pairs may be nested; only the final :meth:`~Lock.release` " +"(the :meth:`~Lock.release` of the outermost pair) resets the lock to " +"unlocked and allows another thread blocked in :meth:`~Lock.acquire` to " +"proceed." msgstr "" -#: ../../library/threading.rst:440 +#: ../../library/threading.rst:445 msgid "" "Reentrant locks also support the :ref:`context management protocol `." msgstr "" -#: ../../library/threading.rst:445 +#: ../../library/threading.rst:450 msgid "" "This class implements reentrant lock objects. A reentrant lock must be " "released by the thread that acquired it. Once a thread has acquired a " @@ -612,100 +642,99 @@ msgid "" "thread must release it once for each time it has acquired it." msgstr "" -#: ../../library/threading.rst:450 +#: ../../library/threading.rst:455 msgid "" -"Note that ``RLock`` is actually a factory function which returns an instance" -" of the most efficient version of the concrete RLock class that is supported" -" by the platform." +"Note that ``RLock`` is actually a factory function which returns an instance " +"of the most efficient version of the concrete RLock class that is supported " +"by the platform." msgstr "" -#: ../../library/threading.rst:459 +#: ../../library/threading.rst:464 msgid "" "When invoked without arguments: if this thread already owns the lock, " -"increment the recursion level by one, and return immediately. Otherwise, if" -" another thread owns the lock, block until the lock is unlocked. Once the " +"increment the recursion level by one, and return immediately. Otherwise, if " +"another thread owns the lock, block until the lock is unlocked. Once the " "lock is unlocked (not owned by any thread), then grab ownership, set the " "recursion level to one, and return. If more than one thread is blocked " "waiting until the lock is unlocked, only one at a time will be able to grab " "ownership of the lock. There is no return value in this case." msgstr "" -#: ../../library/threading.rst:467 +#: ../../library/threading.rst:472 msgid "" "When invoked with the *blocking* argument set to true, do the same thing as " -"when called without arguments, and return true." +"when called without arguments, and return ``True``." msgstr "" -#: ../../library/threading.rst:470 +#: ../../library/threading.rst:475 msgid "" "When invoked with the *blocking* argument set to false, do not block. If a " -"call without an argument would block, return false immediately; otherwise, " -"do the same thing as when called without arguments, and return true." +"call without an argument would block, return ``False`` immediately; " +"otherwise, do the same thing as when called without arguments, and return " +"``True``." msgstr "" -#: ../../library/threading.rst:474 +#: ../../library/threading.rst:479 msgid "" "When invoked with the floating-point *timeout* argument set to a positive " -"value, block for at most the number of seconds specified by *timeout* and as" -" long as the lock cannot be acquired. Return true if the lock has been " +"value, block for at most the number of seconds specified by *timeout* and as " +"long as the lock cannot be acquired. Return ``True`` if the lock has been " "acquired, false if the timeout has elapsed." msgstr "" -#: ../../library/threading.rst:485 +#: ../../library/threading.rst:490 msgid "" -"Release a lock, decrementing the recursion level. If after the decrement it" -" is zero, reset the lock to unlocked (not owned by any thread), and if any " +"Release a lock, decrementing the recursion level. If after the decrement it " +"is zero, reset the lock to unlocked (not owned by any thread), and if any " "other threads are blocked waiting for the lock to become unlocked, allow " "exactly one of them to proceed. If after the decrement the recursion level " "is still nonzero, the lock remains locked and owned by the calling thread." msgstr "" -#: ../../library/threading.rst:491 +#: ../../library/threading.rst:496 msgid "" -"Only call this method when the calling thread owns the lock. A " -":exc:`RuntimeError` is raised if this method is called when the lock is " -"unlocked." +"Only call this method when the calling thread owns the lock. A :exc:" +"`RuntimeError` is raised if this method is called when the lock is unlocked." msgstr "" -#: ../../library/threading.rst:501 +#: ../../library/threading.rst:506 msgid "Condition Objects" msgstr "" -#: ../../library/threading.rst:503 +#: ../../library/threading.rst:508 msgid "" "A condition variable is always associated with some kind of lock; this can " "be passed in or one will be created by default. Passing one in is useful " -"when several condition variables must share the same lock. The lock is part" -" of the condition object: you don't have to track it separately." +"when several condition variables must share the same lock. The lock is part " +"of the condition object: you don't have to track it separately." msgstr "" -#: ../../library/threading.rst:508 +#: ../../library/threading.rst:513 msgid "" "A condition variable obeys the :ref:`context management protocol `: using the ``with`` statement acquires the associated lock for the " -"duration of the enclosed block. The :meth:`~Condition.acquire` and " -":meth:`~Condition.release` methods also call the corresponding methods of " -"the associated lock." +"duration of the enclosed block. The :meth:`~Condition.acquire` and :meth:" +"`~Condition.release` methods also call the corresponding methods of the " +"associated lock." msgstr "" -#: ../../library/threading.rst:514 +#: ../../library/threading.rst:519 msgid "" -"Other methods must be called with the associated lock held. The " -":meth:`~Condition.wait` method releases the lock, and then blocks until " -"another thread awakens it by calling :meth:`~Condition.notify` or " -":meth:`~Condition.notify_all`. Once awakened, :meth:`~Condition.wait` re-" -"acquires the lock and returns. It is also possible to specify a timeout." +"Other methods must be called with the associated lock held. The :meth:" +"`~Condition.wait` method releases the lock, and then blocks until another " +"thread awakens it by calling :meth:`~Condition.notify` or :meth:`~Condition." +"notify_all`. Once awakened, :meth:`~Condition.wait` re-acquires the lock " +"and returns. It is also possible to specify a timeout." msgstr "" -#: ../../library/threading.rst:520 +#: ../../library/threading.rst:525 msgid "" -"The :meth:`~Condition.notify` method wakes up one of the threads waiting for" -" the condition variable, if any are waiting. The " -":meth:`~Condition.notify_all` method wakes up all threads waiting for the " -"condition variable." +"The :meth:`~Condition.notify` method wakes up one of the threads waiting for " +"the condition variable, if any are waiting. The :meth:`~Condition." +"notify_all` method wakes up all threads waiting for the condition variable." msgstr "" -#: ../../library/threading.rst:524 +#: ../../library/threading.rst:529 msgid "" "Note: the :meth:`~Condition.notify` and :meth:`~Condition.notify_all` " "methods don't release the lock; this means that the thread or threads " @@ -714,120 +743,118 @@ msgid "" "or :meth:`~Condition.notify_all` finally relinquishes ownership of the lock." msgstr "" -#: ../../library/threading.rst:530 +#: ../../library/threading.rst:535 msgid "" "The typical programming style using condition variables uses the lock to " "synchronize access to some shared state; threads that are interested in a " "particular change of state call :meth:`~Condition.wait` repeatedly until " -"they see the desired state, while threads that modify the state call " -":meth:`~Condition.notify` or :meth:`~Condition.notify_all` when they change " -"the state in such a way that it could possibly be a desired state for one of" -" the waiters. For example, the following code is a generic producer-" -"consumer situation with unlimited buffer capacity::" +"they see the desired state, while threads that modify the state call :meth:" +"`~Condition.notify` or :meth:`~Condition.notify_all` when they change the " +"state in such a way that it could possibly be a desired state for one of the " +"waiters. For example, the following code is a generic producer-consumer " +"situation with unlimited buffer capacity::" msgstr "" -#: ../../library/threading.rst:550 +#: ../../library/threading.rst:555 msgid "" "The ``while`` loop checking for the application's condition is necessary " -"because :meth:`~Condition.wait` can return after an arbitrary long time, and" -" the condition which prompted the :meth:`~Condition.notify` call may no " -"longer hold true. This is inherent to multi-threaded programming. The " -":meth:`~Condition.wait_for` method can be used to automate the condition " +"because :meth:`~Condition.wait` can return after an arbitrary long time, and " +"the condition which prompted the :meth:`~Condition.notify` call may no " +"longer hold true. This is inherent to multi-threaded programming. The :" +"meth:`~Condition.wait_for` method can be used to automate the condition " "checking, and eases the computation of timeouts::" msgstr "" -#: ../../library/threading.rst:562 +#: ../../library/threading.rst:567 msgid "" -"To choose between :meth:`~Condition.notify` and " -":meth:`~Condition.notify_all`, consider whether one state change can be " -"interesting for only one or several waiting threads. E.g. in a typical " -"producer-consumer situation, adding one item to the buffer only needs to " -"wake up one consumer thread." +"To choose between :meth:`~Condition.notify` and :meth:`~Condition." +"notify_all`, consider whether one state change can be interesting for only " +"one or several waiting threads. E.g. in a typical producer-consumer " +"situation, adding one item to the buffer only needs to wake up one consumer " +"thread." msgstr "" -#: ../../library/threading.rst:570 +#: ../../library/threading.rst:575 msgid "" "This class implements condition variable objects. A condition variable " -"allows one or more threads to wait until they are notified by another " -"thread." +"allows one or more threads to wait until they are notified by another thread." msgstr "" -#: ../../library/threading.rst:573 +#: ../../library/threading.rst:578 msgid "" -"If the *lock* argument is given and not ``None``, it must be a :class:`Lock`" -" or :class:`RLock` object, and it is used as the underlying lock. " -"Otherwise, a new :class:`RLock` object is created and used as the underlying" -" lock." +"If the *lock* argument is given and not ``None``, it must be a :class:`Lock` " +"or :class:`RLock` object, and it is used as the underlying lock. Otherwise, " +"a new :class:`RLock` object is created and used as the underlying lock." msgstr "" -#: ../../library/threading.rst:577 ../../library/threading.rst:699 -#: ../../library/threading.rst:742 ../../library/threading.rst:794 -#: ../../library/threading.rst:863 +#: ../../library/threading.rst:582 ../../library/threading.rst:704 +#: ../../library/threading.rst:747 ../../library/threading.rst:799 +#: ../../library/threading.rst:868 msgid "changed from a factory function to a class." msgstr "" -#: ../../library/threading.rst:582 +#: ../../library/threading.rst:587 msgid "" "Acquire the underlying lock. This method calls the corresponding method on " "the underlying lock; the return value is whatever that method returns." msgstr "" -#: ../../library/threading.rst:587 +#: ../../library/threading.rst:592 msgid "" "Release the underlying lock. This method calls the corresponding method on " "the underlying lock; there is no return value." msgstr "" -#: ../../library/threading.rst:592 +#: ../../library/threading.rst:597 msgid "" -"Wait until notified or until a timeout occurs. If the calling thread has not" -" acquired the lock when this method is called, a :exc:`RuntimeError` is " +"Wait until notified or until a timeout occurs. If the calling thread has not " +"acquired the lock when this method is called, a :exc:`RuntimeError` is " "raised." msgstr "" -#: ../../library/threading.rst:596 +#: ../../library/threading.rst:601 msgid "" "This method releases the underlying lock, and then blocks until it is " "awakened by a :meth:`notify` or :meth:`notify_all` call for the same " -"condition variable in another thread, or until the optional timeout occurs." -" Once awakened or timed out, it re-acquires the lock and returns." +"condition variable in another thread, or until the optional timeout occurs. " +"Once awakened or timed out, it re-acquires the lock and returns." msgstr "" -#: ../../library/threading.rst:601 +#: ../../library/threading.rst:606 msgid "" "When the *timeout* argument is present and not ``None``, it should be a " "floating point number specifying a timeout for the operation in seconds (or " "fractions thereof)." msgstr "" -#: ../../library/threading.rst:605 +#: ../../library/threading.rst:610 msgid "" -"When the underlying lock is an :class:`RLock`, it is not released using its " -":meth:`release` method, since this may not actually unlock the lock when it " +"When the underlying lock is an :class:`RLock`, it is not released using its :" +"meth:`release` method, since this may not actually unlock the lock when it " "was acquired multiple times recursively. Instead, an internal interface of " "the :class:`RLock` class is used, which really unlocks it even when it has " "been recursively acquired several times. Another internal interface is then " "used to restore the recursion level when the lock is reacquired." msgstr "" -#: ../../library/threading.rst:613 +#: ../../library/threading.rst:618 msgid "" -"The return value is ``True`` unless a given *timeout* expired, in which case" -" it is ``False``." +"The return value is ``True`` unless a given *timeout* expired, in which case " +"it is ``False``." msgstr "" -#: ../../library/threading.rst:616 ../../library/threading.rst:828 +#: ../../library/threading.rst:621 ../../library/threading.rst:833 msgid "Previously, the method always returned ``None``." msgstr "" -#: ../../library/threading.rst:621 +#: ../../library/threading.rst:626 msgid "" "Wait until a condition evaluates to true. *predicate* should be a callable " "which result will be interpreted as a boolean value. A *timeout* may be " "provided giving the maximum time to wait." msgstr "" -#: ../../library/threading.rst:625 +#: ../../library/threading.rst:630 msgid "" "This utility method may call :meth:`wait` repeatedly until the predicate is " "satisfied, or until a timeout occurs. The return value is the last return " @@ -835,33 +862,33 @@ msgid "" "out." msgstr "" -#: ../../library/threading.rst:630 +#: ../../library/threading.rst:635 msgid "" "Ignoring the timeout feature, calling this method is roughly equivalent to " "writing::" msgstr "" -#: ../../library/threading.rst:636 +#: ../../library/threading.rst:641 msgid "" "Therefore, the same rules apply as with :meth:`wait`: The lock must be held " "when called and is re-acquired on return. The predicate is evaluated with " "the lock held." msgstr "" -#: ../../library/threading.rst:644 +#: ../../library/threading.rst:649 msgid "" "By default, wake up one thread waiting on this condition, if any. If the " -"calling thread has not acquired the lock when this method is called, a " -":exc:`RuntimeError` is raised." +"calling thread has not acquired the lock when this method is called, a :exc:" +"`RuntimeError` is raised." msgstr "" -#: ../../library/threading.rst:648 +#: ../../library/threading.rst:653 msgid "" "This method wakes up at most *n* of the threads waiting for the condition " "variable; it is a no-op if no threads are waiting." msgstr "" -#: ../../library/threading.rst:651 +#: ../../library/threading.rst:656 msgid "" "The current implementation wakes up exactly *n* threads, if at least *n* " "threads are waiting. However, it's not safe to rely on this behavior. A " @@ -869,219 +896,219 @@ msgid "" "threads." msgstr "" -#: ../../library/threading.rst:656 +#: ../../library/threading.rst:661 msgid "" -"Note: an awakened thread does not actually return from its :meth:`wait` call" -" until it can reacquire the lock. Since :meth:`notify` does not release the" -" lock, its caller should." +"Note: an awakened thread does not actually return from its :meth:`wait` call " +"until it can reacquire the lock. Since :meth:`notify` does not release the " +"lock, its caller should." msgstr "" -#: ../../library/threading.rst:662 +#: ../../library/threading.rst:667 msgid "" -"Wake up all threads waiting on this condition. This method acts like " -":meth:`notify`, but wakes up all waiting threads instead of one. If the " -"calling thread has not acquired the lock when this method is called, a " -":exc:`RuntimeError` is raised." +"Wake up all threads waiting on this condition. This method acts like :meth:" +"`notify`, but wakes up all waiting threads instead of one. If the calling " +"thread has not acquired the lock when this method is called, a :exc:" +"`RuntimeError` is raised." msgstr "" -#: ../../library/threading.rst:671 +#: ../../library/threading.rst:676 msgid "Semaphore Objects" msgstr "" -#: ../../library/threading.rst:673 +#: ../../library/threading.rst:678 msgid "" "This is one of the oldest synchronization primitives in the history of " "computer science, invented by the early Dutch computer scientist Edsger W. " -"Dijkstra (he used the names ``P()`` and ``V()`` instead of " -":meth:`~Semaphore.acquire` and :meth:`~Semaphore.release`)." +"Dijkstra (he used the names ``P()`` and ``V()`` instead of :meth:`~Semaphore." +"acquire` and :meth:`~Semaphore.release`)." msgstr "" -#: ../../library/threading.rst:678 +#: ../../library/threading.rst:683 msgid "" -"A semaphore manages an internal counter which is decremented by each " -":meth:`~Semaphore.acquire` call and incremented by each " -":meth:`~Semaphore.release` call. The counter can never go below zero; when " -":meth:`~Semaphore.acquire` finds that it is zero, it blocks, waiting until " -"some other thread calls :meth:`~Semaphore.release`." +"A semaphore manages an internal counter which is decremented by each :meth:" +"`~Semaphore.acquire` call and incremented by each :meth:`~Semaphore.release` " +"call. The counter can never go below zero; when :meth:`~Semaphore.acquire` " +"finds that it is zero, it blocks, waiting until some other thread calls :" +"meth:`~Semaphore.release`." msgstr "" -#: ../../library/threading.rst:684 +#: ../../library/threading.rst:689 msgid "" "Semaphores also support the :ref:`context management protocol `." msgstr "" -#: ../../library/threading.rst:689 +#: ../../library/threading.rst:694 msgid "" "This class implements semaphore objects. A semaphore manages an atomic " -"counter representing the number of :meth:`release` calls minus the number of" -" :meth:`acquire` calls, plus an initial value. The :meth:`acquire` method " -"blocks if necessary until it can return without making the counter negative." -" If not given, *value* defaults to 1." +"counter representing the number of :meth:`release` calls minus the number " +"of :meth:`acquire` calls, plus an initial value. The :meth:`acquire` method " +"blocks if necessary until it can return without making the counter negative. " +"If not given, *value* defaults to 1." msgstr "" -#: ../../library/threading.rst:695 +#: ../../library/threading.rst:700 msgid "" -"The optional argument gives the initial *value* for the internal counter; it" -" defaults to ``1``. If the *value* given is less than 0, :exc:`ValueError` " -"is raised." +"The optional argument gives the initial *value* for the internal counter; it " +"defaults to ``1``. If the *value* given is less than 0, :exc:`ValueError` is " +"raised." msgstr "" -#: ../../library/threading.rst:704 +#: ../../library/threading.rst:709 msgid "Acquire a semaphore." msgstr "" -#: ../../library/threading.rst:706 +#: ../../library/threading.rst:711 msgid "When invoked without arguments:" msgstr "" -#: ../../library/threading.rst:708 +#: ../../library/threading.rst:713 msgid "" "If the internal counter is larger than zero on entry, decrement it by one " -"and return true immediately." +"and return ``True`` immediately." msgstr "" -#: ../../library/threading.rst:710 +#: ../../library/threading.rst:715 msgid "" -"If the internal counter is zero on entry, block until awoken by a call to " -":meth:`~Semaphore.release`. Once awoken (and the counter is greater than " -"0), decrement the counter by 1 and return true. Exactly one thread will be " +"If the internal counter is zero on entry, block until awoken by a call to :" +"meth:`~Semaphore.release`. Once awoken (and the counter is greater than 0), " +"decrement the counter by 1 and return ``True``. Exactly one thread will be " "awoken by each call to :meth:`~Semaphore.release`. The order in which " "threads are awoken should not be relied on." msgstr "" -#: ../../library/threading.rst:716 +#: ../../library/threading.rst:721 msgid "" "When invoked with *blocking* set to false, do not block. If a call without " -"an argument would block, return false immediately; otherwise, do the same " -"thing as when called without arguments, and return true." +"an argument would block, return ``False`` immediately; otherwise, do the " +"same thing as when called without arguments, and return ``True``." msgstr "" -#: ../../library/threading.rst:720 +#: ../../library/threading.rst:725 msgid "" -"When invoked with a *timeout* other than ``None``, it will block for at most" -" *timeout* seconds. If acquire does not complete successfully in that " -"interval, return false. Return true otherwise." +"When invoked with a *timeout* other than ``None``, it will block for at most " +"*timeout* seconds. If acquire does not complete successfully in that " +"interval, return ``False``. Return ``True`` otherwise." msgstr "" -#: ../../library/threading.rst:729 +#: ../../library/threading.rst:734 msgid "" "Release a semaphore, incrementing the internal counter by one. When it was " "zero on entry and another thread is waiting for it to become larger than " "zero again, wake up that thread." msgstr "" -#: ../../library/threading.rst:736 +#: ../../library/threading.rst:741 msgid "" -"Class implementing bounded semaphore objects. A bounded semaphore checks to" -" make sure its current value doesn't exceed its initial value. If it does, " -":exc:`ValueError` is raised. In most situations semaphores are used to guard" -" resources with limited capacity. If the semaphore is released too many " +"Class implementing bounded semaphore objects. A bounded semaphore checks to " +"make sure its current value doesn't exceed its initial value. If it does, :" +"exc:`ValueError` is raised. In most situations semaphores are used to guard " +"resources with limited capacity. If the semaphore is released too many " "times it's a sign of a bug. If not given, *value* defaults to 1." msgstr "" -#: ../../library/threading.rst:749 +#: ../../library/threading.rst:754 msgid ":class:`Semaphore` Example" msgstr "Exemplo :class:`Semaphore`" -#: ../../library/threading.rst:751 +#: ../../library/threading.rst:756 msgid "" "Semaphores are often used to guard resources with limited capacity, for " -"example, a database server. In any situation where the size of the resource" -" is fixed, you should use a bounded semaphore. Before spawning any worker " +"example, a database server. In any situation where the size of the resource " +"is fixed, you should use a bounded semaphore. Before spawning any worker " "threads, your main thread would initialize the semaphore::" msgstr "" -#: ../../library/threading.rst:760 +#: ../../library/threading.rst:765 msgid "" "Once spawned, worker threads call the semaphore's acquire and release " "methods when they need to connect to the server::" msgstr "" -#: ../../library/threading.rst:770 +#: ../../library/threading.rst:775 msgid "" "The use of a bounded semaphore reduces the chance that a programming error " "which causes the semaphore to be released more than it's acquired will go " "undetected." msgstr "" -#: ../../library/threading.rst:777 +#: ../../library/threading.rst:782 msgid "Event Objects" msgstr "" -#: ../../library/threading.rst:779 +#: ../../library/threading.rst:784 msgid "" "This is one of the simplest mechanisms for communication between threads: " "one thread signals an event and other threads wait for it." msgstr "" -#: ../../library/threading.rst:782 +#: ../../library/threading.rst:787 msgid "" -"An event object manages an internal flag that can be set to true with the " -":meth:`~Event.set` method and reset to false with the :meth:`~Event.clear` " +"An event object manages an internal flag that can be set to true with the :" +"meth:`~Event.set` method and reset to false with the :meth:`~Event.clear` " "method. The :meth:`~Event.wait` method blocks until the flag is true." msgstr "" -#: ../../library/threading.rst:789 +#: ../../library/threading.rst:794 msgid "" "Class implementing event objects. An event manages a flag that can be set " -"to true with the :meth:`~Event.set` method and reset to false with the " -":meth:`clear` method. The :meth:`wait` method blocks until the flag is " -"true. The flag is initially false." +"to true with the :meth:`~Event.set` method and reset to false with the :meth:" +"`clear` method. The :meth:`wait` method blocks until the flag is true. The " +"flag is initially false." msgstr "" -#: ../../library/threading.rst:799 -msgid "Return true if and only if the internal flag is true." +#: ../../library/threading.rst:804 +msgid "Return ``True`` if and only if the internal flag is true." msgstr "" -#: ../../library/threading.rst:803 +#: ../../library/threading.rst:808 msgid "" -"Set the internal flag to true. All threads waiting for it to become true are" -" awakened. Threads that call :meth:`wait` once the flag is true will not " +"Set the internal flag to true. All threads waiting for it to become true are " +"awakened. Threads that call :meth:`wait` once the flag is true will not " "block at all." msgstr "" -#: ../../library/threading.rst:809 +#: ../../library/threading.rst:814 msgid "" -"Reset the internal flag to false. Subsequently, threads calling :meth:`wait`" -" will block until :meth:`.set` is called to set the internal flag to true " +"Reset the internal flag to false. Subsequently, threads calling :meth:`wait` " +"will block until :meth:`.set` is called to set the internal flag to true " "again." msgstr "" -#: ../../library/threading.rst:815 +#: ../../library/threading.rst:820 msgid "" "Block until the internal flag is true. If the internal flag is true on " -"entry, return immediately. Otherwise, block until another thread calls " -":meth:`.set` to set the flag to true, or until the optional timeout occurs." +"entry, return immediately. Otherwise, block until another thread calls :" +"meth:`.set` to set the flag to true, or until the optional timeout occurs." msgstr "" -#: ../../library/threading.rst:819 +#: ../../library/threading.rst:824 msgid "" "When the timeout argument is present and not ``None``, it should be a " "floating point number specifying a timeout for the operation in seconds (or " "fractions thereof)." msgstr "" -#: ../../library/threading.rst:823 +#: ../../library/threading.rst:828 msgid "" -"This method returns true if and only if the internal flag has been set to " -"true, either before the wait call or after the wait starts, so it will " +"This method returns ``True`` if and only if the internal flag has been set " +"to true, either before the wait call or after the wait starts, so it will " "always return ``True`` except if a timeout is given and the operation times " "out." msgstr "" -#: ../../library/threading.rst:835 +#: ../../library/threading.rst:840 msgid "Timer Objects" msgstr "" -#: ../../library/threading.rst:837 +#: ../../library/threading.rst:842 msgid "" "This class represents an action that should be run only after a certain " -"amount of time has passed --- a timer. :class:`Timer` is a subclass of " -":class:`Thread` and as such also functions as an example of creating custom " +"amount of time has passed --- a timer. :class:`Timer` is a subclass of :" +"class:`Thread` and as such also functions as an example of creating custom " "threads." msgstr "" -#: ../../library/threading.rst:841 +#: ../../library/threading.rst:846 msgid "" "Timers are started, as with threads, by calling their :meth:`~Timer.start` " "method. The timer can be stopped (before its action has begun) by calling " @@ -1090,11 +1117,11 @@ msgid "" "by the user." msgstr "" -#: ../../library/threading.rst:847 +#: ../../library/threading.rst:852 msgid "For example::" msgstr "Por exemplo::" -#: ../../library/threading.rst:858 +#: ../../library/threading.rst:863 msgid "" "Create a timer that will run *function* with arguments *args* and keyword " "arguments *kwargs*, after *interval* seconds have passed. If *args* is " @@ -1102,17 +1129,17 @@ msgid "" "``None`` (the default) then an empty dict will be used." msgstr "" -#: ../../library/threading.rst:868 +#: ../../library/threading.rst:873 msgid "" "Stop the timer, and cancel the execution of the timer's action. This will " "only work if the timer is still in its waiting stage." msgstr "" -#: ../../library/threading.rst:873 +#: ../../library/threading.rst:878 msgid "Barrier Objects" msgstr "" -#: ../../library/threading.rst:877 +#: ../../library/threading.rst:882 msgid "" "This class provides a simple synchronization primitive for use by a fixed " "number of threads that need to wait for each other. Each of the threads " @@ -1121,19 +1148,18 @@ msgid "" "calls. At this point, the threads are released simultaneously." msgstr "" -#: ../../library/threading.rst:883 +#: ../../library/threading.rst:888 msgid "" -"The barrier can be reused any number of times for the same number of " -"threads." +"The barrier can be reused any number of times for the same number of threads." msgstr "" -#: ../../library/threading.rst:885 +#: ../../library/threading.rst:890 msgid "" "As an example, here is a simple way to synchronize a client and server " "thread::" msgstr "" -#: ../../library/threading.rst:905 +#: ../../library/threading.rst:910 msgid "" "Create a barrier object for *parties* number of threads. An *action*, when " "provided, is a callable to be called by one of the threads when they are " @@ -1141,7 +1167,7 @@ msgid "" "the :meth:`wait` method." msgstr "" -#: ../../library/threading.rst:912 +#: ../../library/threading.rst:917 msgid "" "Pass the barrier. When all the threads party to the barrier have called " "this function, they are all released simultaneously. If a *timeout* is " @@ -1149,95 +1175,95 @@ msgid "" "constructor." msgstr "" -#: ../../library/threading.rst:917 +#: ../../library/threading.rst:922 msgid "" "The return value is an integer in the range 0 to *parties* -- 1, different " "for each thread. This can be used to select a thread to do some special " "housekeeping, e.g.::" msgstr "" -#: ../../library/threading.rst:926 +#: ../../library/threading.rst:931 msgid "" -"If an *action* was provided to the constructor, one of the threads will have" -" called it prior to being released. Should this call raise an error, the " +"If an *action* was provided to the constructor, one of the threads will have " +"called it prior to being released. Should this call raise an error, the " "barrier is put into the broken state." msgstr "" -#: ../../library/threading.rst:930 +#: ../../library/threading.rst:935 msgid "If the call times out, the barrier is put into the broken state." msgstr "" -#: ../../library/threading.rst:932 +#: ../../library/threading.rst:937 msgid "" -"This method may raise a :class:`BrokenBarrierError` exception if the barrier" -" is broken or reset while a thread is waiting." +"This method may raise a :class:`BrokenBarrierError` exception if the barrier " +"is broken or reset while a thread is waiting." msgstr "" -#: ../../library/threading.rst:937 +#: ../../library/threading.rst:942 msgid "" "Return the barrier to the default, empty state. Any threads waiting on it " "will receive the :class:`BrokenBarrierError` exception." msgstr "" -#: ../../library/threading.rst:940 +#: ../../library/threading.rst:945 msgid "" "Note that using this function may can require some external synchronization " "if there are other threads whose state is unknown. If a barrier is broken " "it may be better to just leave it and create a new one." msgstr "" -#: ../../library/threading.rst:946 +#: ../../library/threading.rst:951 msgid "" -"Put the barrier into a broken state. This causes any active or future calls" -" to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use this for" -" example if one of the needs to abort, to avoid deadlocking the application." +"Put the barrier into a broken state. This causes any active or future calls " +"to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use this for " +"example if one of the needs to abort, to avoid deadlocking the application." msgstr "" -#: ../../library/threading.rst:951 +#: ../../library/threading.rst:956 msgid "" "It may be preferable to simply create the barrier with a sensible *timeout* " "value to automatically guard against one of the threads going awry." msgstr "" -#: ../../library/threading.rst:957 +#: ../../library/threading.rst:962 msgid "The number of threads required to pass the barrier." msgstr "" -#: ../../library/threading.rst:961 +#: ../../library/threading.rst:966 msgid "The number of threads currently waiting in the barrier." msgstr "" -#: ../../library/threading.rst:965 +#: ../../library/threading.rst:970 msgid "A boolean that is ``True`` if the barrier is in the broken state." msgstr "" -#: ../../library/threading.rst:970 +#: ../../library/threading.rst:975 msgid "" -"This exception, a subclass of :exc:`RuntimeError`, is raised when the " -":class:`Barrier` object is reset or broken." +"This exception, a subclass of :exc:`RuntimeError`, is raised when the :class:" +"`Barrier` object is reset or broken." msgstr "" -#: ../../library/threading.rst:977 +#: ../../library/threading.rst:982 msgid "" "Using locks, conditions, and semaphores in the :keyword:`!with` statement" msgstr "" -#: ../../library/threading.rst:979 +#: ../../library/threading.rst:984 msgid "" -"All of the objects provided by this module that have :meth:`acquire` and " -":meth:`release` methods can be used as context managers for a " -":keyword:`with` statement. The :meth:`acquire` method will be called when " -"the block is entered, and :meth:`release` will be called when the block is " -"exited. Hence, the following snippet::" +"All of the objects provided by this module that have :meth:`acquire` and :" +"meth:`release` methods can be used as context managers for a :keyword:`with` " +"statement. The :meth:`acquire` method will be called when the block is " +"entered, and :meth:`release` will be called when the block is exited. " +"Hence, the following snippet::" msgstr "" -#: ../../library/threading.rst:988 +#: ../../library/threading.rst:993 msgid "is equivalent to::" msgstr "is equivalent to::" -#: ../../library/threading.rst:996 +#: ../../library/threading.rst:1001 msgid "" -"Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`, " -":class:`Semaphore`, and :class:`BoundedSemaphore` objects may be used as " -":keyword:`with` statement context managers." +"Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`, :class:" +"`Semaphore`, and :class:`BoundedSemaphore` objects may be used as :keyword:" +"`with` statement context managers." msgstr "" diff --git a/library/time.po b/library/time.po index af197e4bd..b0420857d 100644 --- a/library/time.po +++ b/library/time.po @@ -1,11 +1,10 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# Marco Rougeth , 2019 # Welington Carlos , 2019 # Marciel Leal , 2019 # Misael borges , 2019 @@ -13,16 +12,18 @@ # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Danielle Farias , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-18 03:15+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Danielle Farias , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,11 +42,11 @@ msgstr "" #: ../../library/time.rst:12 msgid "" -"Although this module is always available, not all functions are available on" -" all platforms. Most of the functions defined in this module call platform " -"C library functions with the same name. It may sometimes be helpful to " -"consult the platform documentation, because the semantics of these functions" -" varies among platforms." +"Although this module is always available, not all functions are available on " +"all platforms. Most of the functions defined in this module call platform C " +"library functions with the same name. It may sometimes be helpful to " +"consult the platform documentation, because the semantics of these functions " +"varies among platforms." msgstr "" #: ../../library/time.rst:18 @@ -68,322 +69,319 @@ msgstr "" #: ../../library/time.rst:40 msgid "" -"The functions in this module may not handle dates and times before the epoch" -" or far in the future. The cut-off point in the future is determined by the" -" C library; for 32-bit systems, it is typically in 2038." +"The functions in this module may not handle dates and times before the epoch " +"or far in the future. The cut-off point in the future is determined by the " +"C library; for 32-bit systems, it is typically in 2038." msgstr "" -#: ../../library/time.rst:50 +#: ../../library/time.rst:47 msgid "" -"**Year 2000 (Y2K) issues**: Python depends on the platform's C library, " -"which generally doesn't have year 2000 issues, since all dates and times are" -" represented internally as seconds since the epoch. Function " -":func:`strptime` can parse 2-digit years when given ``%y`` format code. " -"When 2-digit years are parsed, they are converted according to the POSIX and" -" ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 " -"are mapped to 2000--2068." +"Function :func:`strptime` can parse 2-digit years when given ``%y`` format " +"code. When 2-digit years are parsed, they are converted according to the " +"POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and " +"values 0--68 are mapped to 2000--2068." msgstr "" -#: ../../library/time.rst:62 +#: ../../library/time.rst:57 msgid "" -"UTC is Coordinated Universal Time (formerly known as Greenwich Mean Time, or" -" GMT). The acronym UTC is not a mistake but a compromise between English " -"and French." +"UTC is Coordinated Universal Time (formerly known as Greenwich Mean Time, or " +"GMT). The acronym UTC is not a mistake but a compromise between English and " +"French." msgstr "" -#: ../../library/time.rst:68 +#: ../../library/time.rst:63 msgid "" "DST is Daylight Saving Time, an adjustment of the timezone by (usually) one " -"hour during part of the year. DST rules are magic (determined by local law)" -" and can change from year to year. The C library has a table containing the" -" local rules (often it is read from a system file for flexibility) and is " -"the only source of True Wisdom in this respect." +"hour during part of the year. DST rules are magic (determined by local law) " +"and can change from year to year. The C library has a table containing the " +"local rules (often it is read from a system file for flexibility) and is the " +"only source of True Wisdom in this respect." msgstr "" -#: ../../library/time.rst:74 +#: ../../library/time.rst:69 msgid "" "The precision of the various real-time functions may be less than suggested " "by the units in which their value or argument is expressed. E.g. on most " "Unix systems, the clock \"ticks\" only 50 or 100 times a second." msgstr "" -#: ../../library/time.rst:78 +#: ../../library/time.rst:73 msgid "" "On the other hand, the precision of :func:`.time` and :func:`sleep` is " "better than their Unix equivalents: times are expressed as floating point " -"numbers, :func:`.time` returns the most accurate time available (using Unix " -":c:func:`gettimeofday` where available), and :func:`sleep` will accept a " -"time with a nonzero fraction (Unix :c:func:`select` is used to implement " -"this, where available)." +"numbers, :func:`.time` returns the most accurate time available (using Unix :" +"c:func:`gettimeofday` where available), and :func:`sleep` will accept a time " +"with a nonzero fraction (Unix :c:func:`select` is used to implement this, " +"where available)." msgstr "" -#: ../../library/time.rst:85 +#: ../../library/time.rst:80 msgid "" -"The time value as returned by :func:`gmtime`, :func:`localtime`, and " -":func:`strptime`, and accepted by :func:`asctime`, :func:`mktime` and " -":func:`strftime`, is a sequence of 9 integers. The return values of " -":func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute" -" names for individual fields." +"The time value as returned by :func:`gmtime`, :func:`localtime`, and :func:" +"`strptime`, and accepted by :func:`asctime`, :func:`mktime` and :func:" +"`strftime`, is a sequence of 9 integers. The return values of :func:" +"`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute names " +"for individual fields." msgstr "" -#: ../../library/time.rst:91 +#: ../../library/time.rst:86 msgid "See :class:`struct_time` for a description of these objects." msgstr "" -#: ../../library/time.rst:93 +#: ../../library/time.rst:88 msgid "" "The :class:`struct_time` type was extended to provide the :attr:`tm_gmtoff` " -"and :attr:`tm_zone` attributes when platform supports corresponding ``struct" -" tm`` members." +"and :attr:`tm_zone` attributes when platform supports corresponding ``struct " +"tm`` members." msgstr "" -#: ../../library/time.rst:98 +#: ../../library/time.rst:93 msgid "" "The :class:`struct_time` attributes :attr:`tm_gmtoff` and :attr:`tm_zone` " "are now available on all platforms." msgstr "" -#: ../../library/time.rst:102 +#: ../../library/time.rst:97 msgid "Use the following functions to convert between time representations:" msgstr "" -#: ../../library/time.rst:105 +#: ../../library/time.rst:100 msgid "From" msgstr "De" -#: ../../library/time.rst:105 +#: ../../library/time.rst:100 msgid "To" msgstr "Para" -#: ../../library/time.rst:105 +#: ../../library/time.rst:100 msgid "Use" msgstr "" -#: ../../library/time.rst:107 ../../library/time.rst:110 -#: ../../library/time.rst:113 ../../library/time.rst:116 +#: ../../library/time.rst:102 ../../library/time.rst:105 +#: ../../library/time.rst:108 ../../library/time.rst:111 msgid "seconds since the epoch" msgstr "" -#: ../../library/time.rst:107 ../../library/time.rst:113 +#: ../../library/time.rst:102 ../../library/time.rst:108 msgid ":class:`struct_time` in UTC" msgstr "" -#: ../../library/time.rst:107 +#: ../../library/time.rst:102 msgid ":func:`gmtime`" -msgstr "" +msgstr ":func:`gmtime`" -#: ../../library/time.rst:110 ../../library/time.rst:116 +#: ../../library/time.rst:105 ../../library/time.rst:111 msgid ":class:`struct_time` in local time" msgstr "" -#: ../../library/time.rst:110 +#: ../../library/time.rst:105 msgid ":func:`localtime`" -msgstr "" +msgstr ":func:`localtime`" -#: ../../library/time.rst:113 +#: ../../library/time.rst:108 msgid ":func:`calendar.timegm`" -msgstr "" +msgstr ":func:`calendar.timegm`" -#: ../../library/time.rst:116 +#: ../../library/time.rst:111 msgid ":func:`mktime`" -msgstr "" +msgstr ":func:`mktime`" -#: ../../library/time.rst:124 +#: ../../library/time.rst:119 msgid "Functions" msgstr "Funções" -#: ../../library/time.rst:128 +#: ../../library/time.rst:123 msgid "" -"Convert a tuple or :class:`struct_time` representing a time as returned by " -":func:`gmtime` or :func:`localtime` to a string of the following form: " -"``'Sun Jun 20 23:21:05 1993'``. If *t* is not provided, the current time as" -" returned by :func:`localtime` is used. Locale information is not used by " -":func:`asctime`." +"Convert a tuple or :class:`struct_time` representing a time as returned by :" +"func:`gmtime` or :func:`localtime` to a string of the following form: ``'Sun " +"Jun 20 23:21:05 1993'``. If *t* is not provided, the current time as " +"returned by :func:`localtime` is used. Locale information is not used by :" +"func:`asctime`." msgstr "" -#: ../../library/time.rst:136 +#: ../../library/time.rst:131 msgid "" "Unlike the C function of the same name, :func:`asctime` does not add a " "trailing newline." msgstr "" -#: ../../library/time.rst:147 +#: ../../library/time.rst:142 msgid "" "On Unix, return the current processor time as a floating point number " -"expressed in seconds. The precision, and in fact the very definition of the" -" meaning of \"processor time\", depends on that of the C function of the " -"same name." +"expressed in seconds. The precision, and in fact the very definition of the " +"meaning of \"processor time\", depends on that of the C function of the same " +"name." msgstr "" -#: ../../library/time.rst:151 +#: ../../library/time.rst:146 msgid "" -"On Windows, this function returns wall-clock seconds elapsed since the first" -" call to this function, as a floating point number, based on the Win32 " +"On Windows, this function returns wall-clock seconds elapsed since the first " +"call to this function, as a floating point number, based on the Win32 " "function :c:func:`QueryPerformanceCounter`. The resolution is typically " "better than one microsecond." msgstr "" -#: ../../library/time.rst:159 +#: ../../library/time.rst:154 msgid "" -"The behaviour of this function depends on the platform: use " -":func:`perf_counter` or :func:`process_time` instead, depending on your " +"The behaviour of this function depends on the platform: use :func:" +"`perf_counter` or :func:`process_time` instead, depending on your " "requirements, to have a well defined behaviour." msgstr "" -#: ../../library/time.rst:163 +#: ../../library/time.rst:158 msgid "" "Return the *clk_id* of the thread-specific CPU-time clock for the specified " "*thread_id*." msgstr "" -#: ../../library/time.rst:165 +#: ../../library/time.rst:160 msgid "" "Use :func:`threading.get_ident` or the :attr:`~threading.Thread.ident` " "attribute of :class:`threading.Thread` objects to get a suitable value for " "*thread_id*." msgstr "" -#: ../../library/time.rst:170 +#: ../../library/time.rst:165 msgid "" "Passing an invalid or expired *thread_id* may result in undefined behavior, " "such as segmentation fault." msgstr "" -#: ../../library/time.rst:175 +#: ../../library/time.rst:170 msgid "" -":ref:`Availability `: Unix (see the man page for " -":manpage:`pthread_getcpuclockid(3)` for further information)." +":ref:`Availability `: Unix (see the man page for :manpage:" +"`pthread_getcpuclockid(3)` for further information)." msgstr "" -#: ../../library/time.rst:180 +#: ../../library/time.rst:175 msgid "" -"Return the resolution (precision) of the specified clock *clk_id*. Refer to" -" :ref:`time-clock-id-constants` for a list of accepted values for *clk_id*." +"Return the resolution (precision) of the specified clock *clk_id*. Refer " +"to :ref:`time-clock-id-constants` for a list of accepted values for *clk_id*." msgstr "" -#: ../../library/time.rst:184 ../../library/time.rst:194 -#: ../../library/time.rst:203 ../../library/time.rst:213 -#: ../../library/time.rst:222 ../../library/time.rst:649 -#: ../../library/time.rst:766 ../../library/time.rst:785 -#: ../../library/time.rst:803 ../../library/time.rst:827 +#: ../../library/time.rst:179 ../../library/time.rst:189 +#: ../../library/time.rst:198 ../../library/time.rst:208 +#: ../../library/time.rst:217 ../../library/time.rst:644 +#: ../../library/time.rst:761 ../../library/time.rst:780 +#: ../../library/time.rst:798 ../../library/time.rst:822 msgid ":ref:`Availability `: Unix." msgstr ":ref:`Disponibilidade `: Unix." -#: ../../library/time.rst:190 +#: ../../library/time.rst:185 msgid "" "Return the time of the specified clock *clk_id*. Refer to :ref:`time-clock-" "id-constants` for a list of accepted values for *clk_id*." msgstr "" -#: ../../library/time.rst:200 +#: ../../library/time.rst:195 msgid "Similar to :func:`clock_gettime` but return time as nanoseconds." msgstr "" -#: ../../library/time.rst:209 +#: ../../library/time.rst:204 msgid "" -"Set the time of the specified clock *clk_id*. Currently, " -":data:`CLOCK_REALTIME` is the only accepted value for *clk_id*." +"Set the time of the specified clock *clk_id*. Currently, :data:" +"`CLOCK_REALTIME` is the only accepted value for *clk_id*." msgstr "" -#: ../../library/time.rst:219 +#: ../../library/time.rst:214 msgid "Similar to :func:`clock_settime` but set time with nanoseconds." msgstr "" -#: ../../library/time.rst:228 +#: ../../library/time.rst:223 msgid "" -"Convert a time expressed in seconds since the epoch to a string representing" -" local time. If *secs* is not provided or :const:`None`, the current time as" -" returned by :func:`.time` is used. ``ctime(secs)`` is equivalent to " -"``asctime(localtime(secs))``. Locale information is not used by " -":func:`ctime`." +"Convert a time expressed in seconds since the epoch to a string representing " +"local time. If *secs* is not provided or :const:`None`, the current time as " +"returned by :func:`.time` is used. ``ctime(secs)`` is equivalent to " +"``asctime(localtime(secs))``. Locale information is not used by :func:" +"`ctime`." msgstr "" -#: ../../library/time.rst:236 +#: ../../library/time.rst:231 msgid "" "Get information on the specified clock as a namespace object. Supported " "clock names and the corresponding functions to read their value are:" msgstr "" -#: ../../library/time.rst:240 +#: ../../library/time.rst:235 msgid "``'clock'``: :func:`time.clock`" msgstr "" -#: ../../library/time.rst:241 +#: ../../library/time.rst:236 msgid "``'monotonic'``: :func:`time.monotonic`" msgstr "" -#: ../../library/time.rst:242 +#: ../../library/time.rst:237 msgid "``'perf_counter'``: :func:`time.perf_counter`" msgstr "" -#: ../../library/time.rst:243 +#: ../../library/time.rst:238 msgid "``'process_time'``: :func:`time.process_time`" msgstr "" -#: ../../library/time.rst:244 +#: ../../library/time.rst:239 msgid "``'thread_time'``: :func:`time.thread_time`" msgstr "" -#: ../../library/time.rst:245 +#: ../../library/time.rst:240 msgid "``'time'``: :func:`time.time`" msgstr "" -#: ../../library/time.rst:247 +#: ../../library/time.rst:242 msgid "The result has the following attributes:" msgstr "" -#: ../../library/time.rst:249 +#: ../../library/time.rst:244 msgid "" "*adjustable*: ``True`` if the clock can be changed automatically (e.g. by a " "NTP daemon) or manually by the system administrator, ``False`` otherwise" msgstr "" -#: ../../library/time.rst:251 +#: ../../library/time.rst:246 msgid "" "*implementation*: The name of the underlying C function used to get the " "clock value. Refer to :ref:`time-clock-id-constants` for possible values." msgstr "" -#: ../../library/time.rst:253 +#: ../../library/time.rst:248 msgid "" "*monotonic*: ``True`` if the clock cannot go backward, ``False`` otherwise" msgstr "" -#: ../../library/time.rst:255 +#: ../../library/time.rst:250 msgid "*resolution*: The resolution of the clock in seconds (:class:`float`)" msgstr "" -#: ../../library/time.rst:262 +#: ../../library/time.rst:257 msgid "" -"Convert a time expressed in seconds since the epoch to a " -":class:`struct_time` in UTC in which the dst flag is always zero. If *secs*" -" is not provided or :const:`None`, the current time as returned by " -":func:`.time` is used. Fractions of a second are ignored. See above for a " -"description of the :class:`struct_time` object. See :func:`calendar.timegm` " -"for the inverse of this function." +"Convert a time expressed in seconds since the epoch to a :class:" +"`struct_time` in UTC in which the dst flag is always zero. If *secs* is not " +"provided or :const:`None`, the current time as returned by :func:`.time` is " +"used. Fractions of a second are ignored. See above for a description of " +"the :class:`struct_time` object. See :func:`calendar.timegm` for the inverse " +"of this function." msgstr "" -#: ../../library/time.rst:272 +#: ../../library/time.rst:267 msgid "" "Like :func:`gmtime` but converts to local time. If *secs* is not provided " "or :const:`None`, the current time as returned by :func:`.time` is used. " "The dst flag is set to ``1`` when DST applies to the given time." msgstr "" -#: ../../library/time.rst:279 +#: ../../library/time.rst:274 msgid "" -"This is the inverse function of :func:`localtime`. Its argument is the " -":class:`struct_time` or full 9-tuple (since the dst flag is needed; use " -"``-1`` as the dst flag if it is unknown) which expresses the time in *local*" -" time, not UTC. It returns a floating point number, for compatibility with " -":func:`.time`. If the input value cannot be represented as a valid time, " +"This is the inverse function of :func:`localtime`. Its argument is the :" +"class:`struct_time` or full 9-tuple (since the dst flag is needed; use " +"``-1`` as the dst flag if it is unknown) which expresses the time in *local* " +"time, not UTC. It returns a floating point number, for compatibility with :" +"func:`.time`. If the input value cannot be represented as a valid time, " "either :exc:`OverflowError` or :exc:`ValueError` will be raised (which " -"depends on whether the invalid value is caught by Python or the underlying C" -" libraries). The earliest date for which it can generate a time is platform-" +"depends on whether the invalid value is caught by Python or the underlying C " +"libraries). The earliest date for which it can generate a time is platform-" "dependent." msgstr "" -#: ../../library/time.rst:291 +#: ../../library/time.rst:286 msgid "" "Return the value (in fractional seconds) of a monotonic clock, i.e. a clock " "that cannot go backwards. The clock is not affected by system clock " @@ -391,366 +389,365 @@ msgid "" "only the difference between the results of consecutive calls is valid." msgstr "" -#: ../../library/time.rst:297 +#: ../../library/time.rst:292 msgid "The function is now always available and always system-wide." msgstr "" -#: ../../library/time.rst:303 +#: ../../library/time.rst:298 msgid "Similar to :func:`monotonic`, but return time as nanoseconds." msgstr "" -#: ../../library/time.rst:312 +#: ../../library/time.rst:307 msgid "" "Return the value (in fractional seconds) of a performance counter, i.e. a " -"clock with the highest available resolution to measure a short duration. It" -" does include time elapsed during sleep and is system-wide. The reference " +"clock with the highest available resolution to measure a short duration. It " +"does include time elapsed during sleep and is system-wide. The reference " "point of the returned value is undefined, so that only the difference " "between the results of consecutive calls is valid." msgstr "" -#: ../../library/time.rst:322 +#: ../../library/time.rst:317 msgid "Similar to :func:`perf_counter`, but return time as nanoseconds." msgstr "" -#: ../../library/time.rst:334 +#: ../../library/time.rst:329 msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current process. It does not include time elapsed during " "sleep. It is process-wide by definition. The reference point of the " -"returned value is undefined, so that only the difference between the results" -" of consecutive calls is valid." +"returned value is undefined, so that only the difference between the results " +"of consecutive calls is valid." msgstr "" -#: ../../library/time.rst:344 +#: ../../library/time.rst:339 msgid "Similar to :func:`process_time` but return time as nanoseconds." msgstr "" -#: ../../library/time.rst:350 +#: ../../library/time.rst:345 msgid "" -"Suspend execution of the calling thread for the given number of seconds. The" -" argument may be a floating point number to indicate a more precise sleep " -"time. The actual suspension time may be less than that requested because any" -" caught signal will terminate the :func:`sleep` following execution of that " +"Suspend execution of the calling thread for the given number of seconds. The " +"argument may be a floating point number to indicate a more precise sleep " +"time. The actual suspension time may be less than that requested because any " +"caught signal will terminate the :func:`sleep` following execution of that " "signal's catching routine. Also, the suspension time may be longer than " -"requested by an arbitrary amount because of the scheduling of other activity" -" in the system." +"requested by an arbitrary amount because of the scheduling of other activity " +"in the system." msgstr "" -#: ../../library/time.rst:358 +#: ../../library/time.rst:353 msgid "" "The function now sleeps at least *secs* even if the sleep is interrupted by " "a signal, except if the signal handler raises an exception (see :pep:`475` " "for the rationale)." msgstr "" -#: ../../library/time.rst:369 +#: ../../library/time.rst:364 msgid "" -"Convert a tuple or :class:`struct_time` representing a time as returned by " -":func:`gmtime` or :func:`localtime` to a string as specified by the *format*" -" argument. If *t* is not provided, the current time as returned by " -":func:`localtime` is used. *format* must be a string. :exc:`ValueError` is" -" raised if any field in *t* is outside of the allowed range." +"Convert a tuple or :class:`struct_time` representing a time as returned by :" +"func:`gmtime` or :func:`localtime` to a string as specified by the *format* " +"argument. If *t* is not provided, the current time as returned by :func:" +"`localtime` is used. *format* must be a string. :exc:`ValueError` is " +"raised if any field in *t* is outside of the allowed range." msgstr "" -#: ../../library/time.rst:375 +#: ../../library/time.rst:370 msgid "" "0 is a legal argument for any position in the time tuple; if it is normally " "illegal the value is forced to a correct one." msgstr "" -#: ../../library/time.rst:378 +#: ../../library/time.rst:373 msgid "" "The following directives can be embedded in the *format* string. They are " "shown without the optional field width and precision specification, and are " "replaced by the indicated characters in the :func:`strftime` result:" msgstr "" -#: ../../library/time.rst:383 +#: ../../library/time.rst:378 msgid "Directive" msgstr "Diretiva" -#: ../../library/time.rst:383 +#: ../../library/time.rst:378 msgid "Meaning" msgstr "Significado" -#: ../../library/time.rst:383 +#: ../../library/time.rst:378 msgid "Notes" msgstr "Notas" -#: ../../library/time.rst:385 +#: ../../library/time.rst:380 msgid "``%a``" msgstr "``%a``" -#: ../../library/time.rst:385 +#: ../../library/time.rst:380 msgid "Locale's abbreviated weekday name." msgstr "" -#: ../../library/time.rst:388 +#: ../../library/time.rst:383 msgid "``%A``" msgstr "``%A``" -#: ../../library/time.rst:388 +#: ../../library/time.rst:383 msgid "Locale's full weekday name." msgstr "" -#: ../../library/time.rst:390 +#: ../../library/time.rst:385 msgid "``%b``" msgstr "``%b``" -#: ../../library/time.rst:390 +#: ../../library/time.rst:385 msgid "Locale's abbreviated month name." msgstr "" -#: ../../library/time.rst:393 +#: ../../library/time.rst:388 msgid "``%B``" -msgstr "" +msgstr "``%B``" -#: ../../library/time.rst:393 +#: ../../library/time.rst:388 msgid "Locale's full month name." msgstr "" -#: ../../library/time.rst:395 +#: ../../library/time.rst:390 msgid "``%c``" -msgstr "" +msgstr "``%c``" -#: ../../library/time.rst:395 +#: ../../library/time.rst:390 msgid "Locale's appropriate date and time representation." msgstr "" -#: ../../library/time.rst:398 +#: ../../library/time.rst:393 msgid "``%d``" -msgstr "" +msgstr "``%d``" -#: ../../library/time.rst:398 +#: ../../library/time.rst:393 msgid "Day of the month as a decimal number [01,31]." msgstr "" -#: ../../library/time.rst:401 +#: ../../library/time.rst:396 msgid "``%H``" -msgstr "" +msgstr "``%H``" -#: ../../library/time.rst:401 +#: ../../library/time.rst:396 msgid "Hour (24-hour clock) as a decimal number [00,23]." msgstr "" -#: ../../library/time.rst:404 +#: ../../library/time.rst:399 msgid "``%I``" -msgstr "" +msgstr "``%I``" -#: ../../library/time.rst:404 +#: ../../library/time.rst:399 msgid "Hour (12-hour clock) as a decimal number [01,12]." msgstr "" -#: ../../library/time.rst:407 +#: ../../library/time.rst:402 msgid "``%j``" -msgstr "" +msgstr "``%j``" -#: ../../library/time.rst:407 +#: ../../library/time.rst:402 msgid "Day of the year as a decimal number [001,366]." msgstr "" -#: ../../library/time.rst:410 +#: ../../library/time.rst:405 msgid "``%m``" -msgstr "" +msgstr "``%m``" -#: ../../library/time.rst:410 +#: ../../library/time.rst:405 msgid "Month as a decimal number [01,12]." msgstr "" -#: ../../library/time.rst:413 +#: ../../library/time.rst:408 msgid "``%M``" -msgstr "" +msgstr "``%M``" -#: ../../library/time.rst:413 +#: ../../library/time.rst:408 msgid "Minute as a decimal number [00,59]." msgstr "" -#: ../../library/time.rst:416 +#: ../../library/time.rst:411 msgid "``%p``" -msgstr "" +msgstr "``%p``" -#: ../../library/time.rst:416 +#: ../../library/time.rst:411 msgid "Locale's equivalent of either AM or PM." msgstr "" -#: ../../library/time.rst:416 +#: ../../library/time.rst:411 msgid "\\(1)" msgstr "\\(1)" -#: ../../library/time.rst:419 +#: ../../library/time.rst:414 msgid "``%S``" -msgstr "" +msgstr "``%S``" -#: ../../library/time.rst:419 +#: ../../library/time.rst:414 msgid "Second as a decimal number [00,61]." msgstr "" -#: ../../library/time.rst:419 +#: ../../library/time.rst:414 msgid "\\(2)" msgstr "\\(2)" -#: ../../library/time.rst:422 +#: ../../library/time.rst:417 msgid "``%U``" -msgstr "" +msgstr "``%U``" -#: ../../library/time.rst:422 +#: ../../library/time.rst:417 msgid "" "Week number of the year (Sunday as the first day of the week) as a decimal " "number [00,53]. All days in a new year preceding the first Sunday are " "considered to be in week 0." msgstr "" -#: ../../library/time.rst:422 ../../library/time.rst:433 +#: ../../library/time.rst:417 ../../library/time.rst:428 msgid "\\(3)" msgstr "\\(3)" -#: ../../library/time.rst:430 +#: ../../library/time.rst:425 msgid "``%w``" -msgstr "" +msgstr "``%w``" -#: ../../library/time.rst:430 +#: ../../library/time.rst:425 msgid "Weekday as a decimal number [0(Sunday),6]." msgstr "" -#: ../../library/time.rst:433 +#: ../../library/time.rst:428 msgid "``%W``" -msgstr "" +msgstr "``%W``" -#: ../../library/time.rst:433 +#: ../../library/time.rst:428 msgid "" "Week number of the year (Monday as the first day of the week) as a decimal " "number [00,53]. All days in a new year preceding the first Monday are " "considered to be in week 0." msgstr "" -#: ../../library/time.rst:441 +#: ../../library/time.rst:436 msgid "``%x``" -msgstr "" +msgstr "``%x``" -#: ../../library/time.rst:441 +#: ../../library/time.rst:436 msgid "Locale's appropriate date representation." msgstr "" -#: ../../library/time.rst:444 +#: ../../library/time.rst:439 msgid "``%X``" msgstr "``%X``" -#: ../../library/time.rst:444 +#: ../../library/time.rst:439 msgid "Locale's appropriate time representation." msgstr "" -#: ../../library/time.rst:447 +#: ../../library/time.rst:442 msgid "``%y``" -msgstr "" +msgstr "``%y``" -#: ../../library/time.rst:447 +#: ../../library/time.rst:442 msgid "Year without century as a decimal number [00,99]." msgstr "" -#: ../../library/time.rst:450 +#: ../../library/time.rst:445 msgid "``%Y``" -msgstr "" +msgstr "``%Y``" -#: ../../library/time.rst:450 +#: ../../library/time.rst:445 msgid "Year with century as a decimal number." msgstr "" -#: ../../library/time.rst:453 +#: ../../library/time.rst:448 msgid "``%z``" -msgstr "" +msgstr "``%z``" -#: ../../library/time.rst:453 +#: ../../library/time.rst:448 msgid "" -"Time zone offset indicating a positive or negative time difference from " -"UTC/GMT of the form +HHMM or -HHMM, where H represents decimal hour digits " -"and M represents decimal minute digits [-23:59, +23:59]." +"Time zone offset indicating a positive or negative time difference from UTC/" +"GMT of the form +HHMM or -HHMM, where H represents decimal hour digits and M " +"represents decimal minute digits [-23:59, +23:59]." msgstr "" -#: ../../library/time.rst:459 +#: ../../library/time.rst:454 msgid "``%Z``" -msgstr "" +msgstr "``%Z``" -#: ../../library/time.rst:459 +#: ../../library/time.rst:454 msgid "Time zone name (no characters if no time zone exists)." msgstr "" -#: ../../library/time.rst:462 +#: ../../library/time.rst:457 msgid "``%%``" -msgstr "" +msgstr "``%%``" -#: ../../library/time.rst:462 +#: ../../library/time.rst:457 msgid "A literal ``'%'`` character." msgstr "" -#: ../../library/time.rst:465 +#: ../../library/time.rst:460 msgid "Notes:" msgstr "Notas:" -#: ../../library/time.rst:468 +#: ../../library/time.rst:463 msgid "" "When used with the :func:`strptime` function, the ``%p`` directive only " "affects the output hour field if the ``%I`` directive is used to parse the " "hour." msgstr "" -#: ../../library/time.rst:472 +#: ../../library/time.rst:467 msgid "" "The range really is ``0`` to ``61``; value ``60`` is valid in timestamps " "representing `leap seconds`_ and value ``61`` is supported for historical " "reasons." msgstr "" -#: ../../library/time.rst:477 +#: ../../library/time.rst:472 msgid "" "When used with the :func:`strptime` function, ``%U`` and ``%W`` are only " "used in calculations when the day of the week and the year are specified." msgstr "" -#: ../../library/time.rst:480 +#: ../../library/time.rst:475 msgid "" "Here is an example, a format for dates compatible with that specified in " "the :rfc:`2822` Internet email standard. [#]_ ::" msgstr "" -#: ../../library/time.rst:487 +#: ../../library/time.rst:482 msgid "" "Additional directives may be supported on certain platforms, but only the " -"ones listed here have a meaning standardized by ANSI C. To see the full set" -" of format codes supported on your platform, consult the " -":manpage:`strftime(3)` documentation." +"ones listed here have a meaning standardized by ANSI C. To see the full set " +"of format codes supported on your platform, consult the :manpage:" +"`strftime(3)` documentation." msgstr "" -#: ../../library/time.rst:492 +#: ../../library/time.rst:487 msgid "" "On some platforms, an optional field width and precision specification can " "immediately follow the initial ``'%'`` of a directive in the following " -"order; this is also not portable. The field width is normally 2 except for " -"``%j`` where it is 3." +"order; this is also not portable. The field width is normally 2 except for ``" +"%j`` where it is 3." msgstr "" -#: ../../library/time.rst:503 +#: ../../library/time.rst:498 msgid "" "Parse a string representing a time according to a format. The return value " -"is a :class:`struct_time` as returned by :func:`gmtime` or " -":func:`localtime`." +"is a :class:`struct_time` as returned by :func:`gmtime` or :func:`localtime`." msgstr "" -#: ../../library/time.rst:507 +#: ../../library/time.rst:502 msgid "" -"The *format* parameter uses the same directives as those used by " -":func:`strftime`; it defaults to ``\"%a %b %d %H:%M:%S %Y\"`` which matches " -"the formatting returned by :func:`ctime`. If *string* cannot be parsed " -"according to *format*, or if it has excess data after parsing, " -":exc:`ValueError` is raised. The default values used to fill in any missing " -"data when more accurate values cannot be inferred are ``(1900, 1, 1, 0, 0, " -"0, 0, 1, -1)``. Both *string* and *format* must be strings." +"The *format* parameter uses the same directives as those used by :func:" +"`strftime`; it defaults to ``\"%a %b %d %H:%M:%S %Y\"`` which matches the " +"formatting returned by :func:`ctime`. If *string* cannot be parsed according " +"to *format*, or if it has excess data after parsing, :exc:`ValueError` is " +"raised. The default values used to fill in any missing data when more " +"accurate values cannot be inferred are ``(1900, 1, 1, 0, 0, 0, 0, 1, -1)``. " +"Both *string* and *format* must be strings." msgstr "" -#: ../../library/time.rst:515 +#: ../../library/time.rst:510 msgid "For example:" msgstr "Por exemplo:" -#: ../../library/time.rst:522 +#: ../../library/time.rst:517 msgid "" "Support for the ``%Z`` directive is based on the values contained in " "``tzname`` and whether ``daylight`` is true. Because of this, it is " @@ -758,170 +755,170 @@ msgid "" "(and are considered to be non-daylight savings timezones)." msgstr "" -#: ../../library/time.rst:527 +#: ../../library/time.rst:522 msgid "" "Only the directives specified in the documentation are supported. Because " "``strftime()`` is implemented per platform it can sometimes offer more " "directives than those listed. But ``strptime()`` is independent of any " -"platform and thus does not necessarily support all directives available that" -" are not documented as supported." +"platform and thus does not necessarily support all directives available that " +"are not documented as supported." msgstr "" -#: ../../library/time.rst:536 +#: ../../library/time.rst:531 msgid "" -"The type of the time value sequence returned by :func:`gmtime`, " -":func:`localtime`, and :func:`strptime`. It is an object with a " -":term:`named tuple` interface: values can be accessed by index and by " -"attribute name. The following values are present:" +"The type of the time value sequence returned by :func:`gmtime`, :func:" +"`localtime`, and :func:`strptime`. It is an object with a :term:`named " +"tuple` interface: values can be accessed by index and by attribute name. " +"The following values are present:" msgstr "" -#: ../../library/time.rst:542 +#: ../../library/time.rst:537 msgid "Index" msgstr "Index" -#: ../../library/time.rst:542 +#: ../../library/time.rst:537 msgid "Attribute" msgstr "Atributo" -#: ../../library/time.rst:542 +#: ../../library/time.rst:537 msgid "Values" msgstr "" -#: ../../library/time.rst:544 +#: ../../library/time.rst:539 msgid "0" msgstr "0" -#: ../../library/time.rst:544 +#: ../../library/time.rst:539 msgid ":attr:`tm_year`" -msgstr "" +msgstr ":attr:`tm_year`" -#: ../../library/time.rst:544 +#: ../../library/time.rst:539 msgid "(for example, 1993)" msgstr "" -#: ../../library/time.rst:546 +#: ../../library/time.rst:541 msgid "1" msgstr "1" -#: ../../library/time.rst:546 +#: ../../library/time.rst:541 msgid ":attr:`tm_mon`" -msgstr "" +msgstr ":attr:`tm_mon`" -#: ../../library/time.rst:546 +#: ../../library/time.rst:541 msgid "range [1, 12]" msgstr "" -#: ../../library/time.rst:548 +#: ../../library/time.rst:543 msgid "2" msgstr "2" -#: ../../library/time.rst:548 +#: ../../library/time.rst:543 msgid ":attr:`tm_mday`" -msgstr "" +msgstr ":attr:`tm_mday`" -#: ../../library/time.rst:548 +#: ../../library/time.rst:543 msgid "range [1, 31]" msgstr "" -#: ../../library/time.rst:550 +#: ../../library/time.rst:545 msgid "3" msgstr "3" -#: ../../library/time.rst:550 +#: ../../library/time.rst:545 msgid ":attr:`tm_hour`" -msgstr "" +msgstr ":attr:`tm_hour`" -#: ../../library/time.rst:550 +#: ../../library/time.rst:545 msgid "range [0, 23]" msgstr "" -#: ../../library/time.rst:552 +#: ../../library/time.rst:547 msgid "4" msgstr "4" -#: ../../library/time.rst:552 +#: ../../library/time.rst:547 msgid ":attr:`tm_min`" -msgstr "" +msgstr ":attr:`tm_min`" -#: ../../library/time.rst:552 +#: ../../library/time.rst:547 msgid "range [0, 59]" msgstr "" -#: ../../library/time.rst:554 +#: ../../library/time.rst:549 msgid "5" msgstr "5" -#: ../../library/time.rst:554 +#: ../../library/time.rst:549 msgid ":attr:`tm_sec`" -msgstr "" +msgstr ":attr:`tm_sec`" -#: ../../library/time.rst:554 +#: ../../library/time.rst:549 msgid "range [0, 61]; see **(2)** in :func:`strftime` description" msgstr "" -#: ../../library/time.rst:557 +#: ../../library/time.rst:552 msgid "6" msgstr "6" -#: ../../library/time.rst:557 +#: ../../library/time.rst:552 msgid ":attr:`tm_wday`" -msgstr "" +msgstr ":attr:`tm_wday`" -#: ../../library/time.rst:557 +#: ../../library/time.rst:552 msgid "range [0, 6], Monday is 0" msgstr "" -#: ../../library/time.rst:559 +#: ../../library/time.rst:554 msgid "7" msgstr "" -#: ../../library/time.rst:559 +#: ../../library/time.rst:554 msgid ":attr:`tm_yday`" -msgstr "" +msgstr ":attr:`tm_yday`" -#: ../../library/time.rst:559 +#: ../../library/time.rst:554 msgid "range [1, 366]" msgstr "" -#: ../../library/time.rst:561 +#: ../../library/time.rst:556 msgid "8" msgstr "8" -#: ../../library/time.rst:561 +#: ../../library/time.rst:556 msgid ":attr:`tm_isdst`" -msgstr "" +msgstr ":attr:`tm_isdst`" -#: ../../library/time.rst:561 +#: ../../library/time.rst:556 msgid "0, 1 or -1; see below" msgstr "" -#: ../../library/time.rst:563 ../../library/time.rst:565 +#: ../../library/time.rst:558 ../../library/time.rst:560 msgid "N/A" msgstr "" -#: ../../library/time.rst:563 +#: ../../library/time.rst:558 msgid ":attr:`tm_zone`" -msgstr "" +msgstr ":attr:`tm_zone`" -#: ../../library/time.rst:563 +#: ../../library/time.rst:558 msgid "abbreviation of timezone name" msgstr "" -#: ../../library/time.rst:565 +#: ../../library/time.rst:560 msgid ":attr:`tm_gmtoff`" -msgstr "" +msgstr ":attr:`tm_gmtoff`" -#: ../../library/time.rst:565 +#: ../../library/time.rst:560 msgid "offset east of UTC in seconds" msgstr "" -#: ../../library/time.rst:568 +#: ../../library/time.rst:563 msgid "" -"Note that unlike the C structure, the month value is a range of [1, 12], not" -" [0, 11]." +"Note that unlike the C structure, the month value is a range of [1, 12], not " +"[0, 11]." msgstr "" -#: ../../library/time.rst:571 +#: ../../library/time.rst:566 msgid "" "In calls to :func:`mktime`, :attr:`tm_isdst` may be set to 1 when daylight " "savings time is in effect, and 0 when it is not. A value of -1 indicates " @@ -929,25 +926,25 @@ msgid "" "filled in." msgstr "" -#: ../../library/time.rst:575 +#: ../../library/time.rst:570 msgid "" -"When a tuple with an incorrect length is passed to a function expecting a " -":class:`struct_time`, or having elements of the wrong type, a " -":exc:`TypeError` is raised." +"When a tuple with an incorrect length is passed to a function expecting a :" +"class:`struct_time`, or having elements of the wrong type, a :exc:" +"`TypeError` is raised." msgstr "" -#: ../../library/time.rst:581 +#: ../../library/time.rst:576 msgid "" "Return the time in seconds since the epoch_ as a floating point number. The " "specific date of the epoch and the handling of `leap seconds`_ is platform " "dependent. On Windows and most Unix systems, the epoch is January 1, 1970, " "00:00:00 (UTC) and leap seconds are not counted towards the time in seconds " -"since the epoch. This is commonly referred to as `Unix time " -"`_. To find out what the epoch is " -"on a given platform, look at ``gmtime(0)``." +"since the epoch. This is commonly referred to as `Unix time `_. To find out what the epoch is on a given " +"platform, look at ``gmtime(0)``." msgstr "" -#: ../../library/time.rst:591 +#: ../../library/time.rst:586 msgid "" "Note that even though the time is always returned as a floating point " "number, not all systems provide time with a better precision than 1 second. " @@ -956,144 +953,144 @@ msgid "" "between the two calls." msgstr "" -#: ../../library/time.rst:597 +#: ../../library/time.rst:592 msgid "" "The number returned by :func:`.time` may be converted into a more common " -"time format (i.e. year, month, day, hour, etc...) in UTC by passing it to " -":func:`gmtime` function or in local time by passing it to the " -":func:`localtime` function. In both cases a :class:`struct_time` object is " +"time format (i.e. year, month, day, hour, etc...) in UTC by passing it to :" +"func:`gmtime` function or in local time by passing it to the :func:" +"`localtime` function. In both cases a :class:`struct_time` object is " "returned, from which the components of the calendar date may be accessed as " "attributes." msgstr "" -#: ../../library/time.rst:612 +#: ../../library/time.rst:607 msgid "" "Return the value (in fractional seconds) of the sum of the system and user " "CPU time of the current thread. It does not include time elapsed during " "sleep. It is thread-specific by definition. The reference point of the " -"returned value is undefined, so that only the difference between the results" -" of consecutive calls in the same thread is valid." +"returned value is undefined, so that only the difference between the results " +"of consecutive calls in the same thread is valid." msgstr "" -#: ../../library/time.rst:620 +#: ../../library/time.rst:615 msgid "" ":ref:`Availability `: Windows, Linux, Unix systems supporting " "``CLOCK_THREAD_CPUTIME_ID``." msgstr "" -#: ../../library/time.rst:626 +#: ../../library/time.rst:621 msgid "Similar to :func:`thread_time` but return time as nanoseconds." msgstr "" -#: ../../library/time.rst:633 +#: ../../library/time.rst:628 msgid "" "Similar to :func:`~time.time` but returns time as an integer number of " "nanoseconds since the epoch_." msgstr "" -#: ../../library/time.rst:640 +#: ../../library/time.rst:635 msgid "" "Reset the time conversion rules used by the library routines. The " "environment variable :envvar:`TZ` specifies how this is done. It will also " "set the variables ``tzname`` (from the :envvar:`TZ` environment variable), " -"``timezone`` (non-DST seconds West of UTC), ``altzone`` (DST seconds west of" -" UTC) and ``daylight`` (to 0 if this timezone does not have any daylight " -"saving time rules, or to nonzero if there is a time, past, present or future" -" when daylight saving time applies)." +"``timezone`` (non-DST seconds West of UTC), ``altzone`` (DST seconds west of " +"UTC) and ``daylight`` (to 0 if this timezone does not have any daylight " +"saving time rules, or to nonzero if there is a time, past, present or future " +"when daylight saving time applies)." msgstr "" -#: ../../library/time.rst:652 +#: ../../library/time.rst:647 msgid "" "Although in many cases, changing the :envvar:`TZ` environment variable may " -"affect the output of functions like :func:`localtime` without calling " -":func:`tzset`, this behavior should not be relied on." +"affect the output of functions like :func:`localtime` without calling :func:" +"`tzset`, this behavior should not be relied on." msgstr "" -#: ../../library/time.rst:656 +#: ../../library/time.rst:651 msgid "The :envvar:`TZ` environment variable should contain no whitespace." msgstr "" -#: ../../library/time.rst:658 +#: ../../library/time.rst:653 msgid "" "The standard format of the :envvar:`TZ` environment variable is (whitespace " "added for clarity)::" msgstr "" -#: ../../library/time.rst:663 +#: ../../library/time.rst:658 msgid "Where the components are:" msgstr "" -#: ../../library/time.rst:667 +#: ../../library/time.rst:662 msgid "``std`` and ``dst``" msgstr "" -#: ../../library/time.rst:666 +#: ../../library/time.rst:661 msgid "" -"Three or more alphanumerics giving the timezone abbreviations. These will be" -" propagated into time.tzname" +"Three or more alphanumerics giving the timezone abbreviations. These will be " +"propagated into time.tzname" msgstr "" -#: ../../library/time.rst:673 +#: ../../library/time.rst:668 msgid "``offset``" -msgstr "" +msgstr "``offset``" -#: ../../library/time.rst:670 +#: ../../library/time.rst:665 msgid "" "The offset has the form: ``± hh[:mm[:ss]]``. This indicates the value added " -"the local time to arrive at UTC. If preceded by a '-', the timezone is east" -" of the Prime Meridian; otherwise, it is west. If no offset follows dst, " +"the local time to arrive at UTC. If preceded by a '-', the timezone is east " +"of the Prime Meridian; otherwise, it is west. If no offset follows dst, " "summer time is assumed to be one hour ahead of standard time." msgstr "" -#: ../../library/time.rst:695 +#: ../../library/time.rst:690 msgid "``start[/time], end[/time]``" msgstr "" -#: ../../library/time.rst:676 +#: ../../library/time.rst:671 msgid "" "Indicates when to change to and back from DST. The format of the start and " "end dates are one of the following:" msgstr "" -#: ../../library/time.rst:681 +#: ../../library/time.rst:676 msgid ":samp:`J{n}`" -msgstr "" +msgstr ":samp:`J{n}`" -#: ../../library/time.rst:680 +#: ../../library/time.rst:675 msgid "" "The Julian day *n* (1 <= *n* <= 365). Leap days are not counted, so in all " "years February 28 is day 59 and March 1 is day 60." msgstr "" -#: ../../library/time.rst:685 +#: ../../library/time.rst:680 msgid ":samp:`{n}`" -msgstr "" +msgstr ":samp:`{n}`" -#: ../../library/time.rst:684 +#: ../../library/time.rst:679 msgid "" "The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it " "is possible to refer to February 29." msgstr "" -#: ../../library/time.rst:692 +#: ../../library/time.rst:687 msgid ":samp:`M{m}.{n}.{d}`" -msgstr "" +msgstr ":samp:`M{m}.{n}.{d}`" -#: ../../library/time.rst:688 +#: ../../library/time.rst:683 msgid "" "The *d*'th day (0 <= *d* <= 6) of week *n* of month *m* of the year (1 <= " -"*n* <= 5, 1 <= *m* <= 12, where week 5 means \"the last *d* day in month " -"*m*\" which may occur in either the fourth or the fifth week). Week 1 is the" -" first week in which the *d*'th day occurs. Day zero is a Sunday." +"*n* <= 5, 1 <= *m* <= 12, where week 5 means \"the last *d* day in month *m*" +"\" which may occur in either the fourth or the fifth week). Week 1 is the " +"first week in which the *d*'th day occurs. Day zero is a Sunday." msgstr "" -#: ../../library/time.rst:694 +#: ../../library/time.rst:689 msgid "" "``time`` has the same format as ``offset`` except that no leading sign ('-' " "or '+') is allowed. The default, if time is not given, is 02:00:00." msgstr "" -#: ../../library/time.rst:708 +#: ../../library/time.rst:703 msgid "" "On many Unix systems (including \\*BSD, Linux, Solaris, and Darwin), it is " "more convenient to use the system's zoneinfo (:manpage:`tzfile(5)`) " @@ -1104,23 +1101,23 @@ msgid "" "``'Australia/Melbourne'``, ``'Egypt'`` or ``'Europe/Amsterdam'``. ::" msgstr "" -#: ../../library/time.rst:729 +#: ../../library/time.rst:724 msgid "Clock ID Constants" msgstr "" -#: ../../library/time.rst:731 +#: ../../library/time.rst:726 msgid "" -"These constants are used as parameters for :func:`clock_getres` and " -":func:`clock_gettime`." +"These constants are used as parameters for :func:`clock_getres` and :func:" +"`clock_gettime`." msgstr "" -#: ../../library/time.rst:736 +#: ../../library/time.rst:731 msgid "" "Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that " "the system is suspended." msgstr "" -#: ../../library/time.rst:739 +#: ../../library/time.rst:734 msgid "" "This allows applications to get a suspend-aware monotonic clock without " "having to deal with the complications of :data:`CLOCK_REALTIME`, which may " @@ -1128,80 +1125,79 @@ msgid "" "similar." msgstr "" -#: ../../library/time.rst:745 +#: ../../library/time.rst:740 msgid ":ref:`Availability `: Linux 2.6.39 or later." msgstr "" -#: ../../library/time.rst:751 +#: ../../library/time.rst:746 msgid "" -"The Solaris OS has a ``CLOCK_HIGHRES`` timer that attempts to use an optimal" -" hardware source, and may give close to nanosecond resolution. " +"The Solaris OS has a ``CLOCK_HIGHRES`` timer that attempts to use an optimal " +"hardware source, and may give close to nanosecond resolution. " "``CLOCK_HIGHRES`` is the nonadjustable, high-resolution clock." msgstr "" -#: ../../library/time.rst:756 +#: ../../library/time.rst:751 msgid ":ref:`Availability `: Solaris." msgstr "" -#: ../../library/time.rst:762 +#: ../../library/time.rst:757 msgid "" "Clock that cannot be set and represents monotonic time since some " "unspecified starting point." msgstr "" -#: ../../library/time.rst:772 +#: ../../library/time.rst:767 msgid "" "Similar to :data:`CLOCK_MONOTONIC`, but provides access to a raw hardware-" "based time that is not subject to NTP adjustments." msgstr "" -#: ../../library/time.rst:776 +#: ../../library/time.rst:771 msgid "" ":ref:`Availability `: Linux 2.6.28 and newer, macOS 10.12 and " "newer." msgstr "" -#: ../../library/time.rst:782 ../../library/time.rst:791 +#: ../../library/time.rst:777 ../../library/time.rst:786 msgid "High-resolution per-process timer from the CPU." msgstr "" -#: ../../library/time.rst:794 +#: ../../library/time.rst:789 msgid "" ":ref:`Availability `: FreeBSD, NetBSD 7 or later, OpenBSD." msgstr "" -#: ../../library/time.rst:800 +#: ../../library/time.rst:795 msgid "Thread-specific CPU-time clock." msgstr "" -#: ../../library/time.rst:809 +#: ../../library/time.rst:804 msgid "" "Time whose absolute value is the time the system has been running and not " -"suspended, providing accurate uptime measurement, both absolute and " -"interval." +"suspended, providing accurate uptime measurement, both absolute and interval." msgstr "" -#: ../../library/time.rst:814 +#: ../../library/time.rst:809 msgid ":ref:`Availability `: FreeBSD, OpenBSD 5.5 or later." msgstr "" -#: ../../library/time.rst:818 +#: ../../library/time.rst:813 msgid "" -"The following constant is the only parameter that can be sent to " -":func:`clock_settime`." +"The following constant is the only parameter that can be sent to :func:" +"`clock_settime`." msgstr "" -#: ../../library/time.rst:823 +#: ../../library/time.rst:818 msgid "" "System-wide real-time clock. Setting this clock requires appropriate " "privileges." msgstr "" -#: ../../library/time.rst:834 +#: ../../library/time.rst:829 msgid "Timezone Constants" msgstr "" -#: ../../library/time.rst:838 +#: ../../library/time.rst:833 msgid "" "The offset of the local DST timezone, in seconds west of UTC, if one is " "defined. This is negative if the local DST timezone is east of UTC (as in " @@ -1209,74 +1205,74 @@ msgid "" "nonzero. See note below." msgstr "" -#: ../../library/time.rst:844 +#: ../../library/time.rst:839 msgid "Nonzero if a DST timezone is defined. See note below." msgstr "" -#: ../../library/time.rst:848 +#: ../../library/time.rst:843 msgid "" -"The offset of the local (non-DST) timezone, in seconds west of UTC (negative" -" in most of Western Europe, positive in the US, zero in the UK). See note " +"The offset of the local (non-DST) timezone, in seconds west of UTC (negative " +"in most of Western Europe, positive in the US, zero in the UK). See note " "below." msgstr "" -#: ../../library/time.rst:853 +#: ../../library/time.rst:848 msgid "" -"A tuple of two strings: the first is the name of the local non-DST timezone," -" the second is the name of the local DST timezone. If no DST timezone is " +"A tuple of two strings: the first is the name of the local non-DST timezone, " +"the second is the name of the local DST timezone. If no DST timezone is " "defined, the second string should not be used. See note below." msgstr "" -#: ../../library/time.rst:859 +#: ../../library/time.rst:854 msgid "" -"For the above Timezone constants (:data:`altzone`, :data:`daylight`, " -":data:`timezone`, and :data:`tzname`), the value is determined by the " -"timezone rules in effect at module load time or the last time :func:`tzset` " -"is called and may be incorrect for times in the past. It is recommended to " -"use the :attr:`tm_gmtoff` and :attr:`tm_zone` results from :func:`localtime`" -" to obtain timezone information." +"For the above Timezone constants (:data:`altzone`, :data:`daylight`, :data:" +"`timezone`, and :data:`tzname`), the value is determined by the timezone " +"rules in effect at module load time or the last time :func:`tzset` is called " +"and may be incorrect for times in the past. It is recommended to use the :" +"attr:`tm_gmtoff` and :attr:`tm_zone` results from :func:`localtime` to " +"obtain timezone information." msgstr "" -#: ../../library/time.rst:869 +#: ../../library/time.rst:864 msgid "Module :mod:`datetime`" msgstr "Módulo :mod:`datetime`" -#: ../../library/time.rst:869 +#: ../../library/time.rst:864 msgid "More object-oriented interface to dates and times." msgstr "" -#: ../../library/time.rst:873 +#: ../../library/time.rst:868 msgid "Module :mod:`locale`" msgstr "" -#: ../../library/time.rst:872 +#: ../../library/time.rst:867 msgid "" "Internationalization services. The locale setting affects the " -"interpretation of many format specifiers in :func:`strftime` and " -":func:`strptime`." +"interpretation of many format specifiers in :func:`strftime` and :func:" +"`strptime`." msgstr "" -#: ../../library/time.rst:876 +#: ../../library/time.rst:871 msgid "Module :mod:`calendar`" msgstr "Módulo :mod:`calendar`" -#: ../../library/time.rst:876 +#: ../../library/time.rst:871 msgid "" "General calendar-related functions. :func:`~calendar.timegm` is the " "inverse of :func:`gmtime` from this module." msgstr "" -#: ../../library/time.rst:880 +#: ../../library/time.rst:875 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../library/time.rst:881 +#: ../../library/time.rst:876 msgid "" "The use of ``%Z`` is now deprecated, but the ``%z`` escape that expands to " "the preferred hour/minute offset is not supported by all ANSI C libraries. " "Also, a strict reading of the original 1982 :rfc:`822` standard calls for a " -"two-digit year (%y rather than %Y), but practice moved to 4-digit years long" -" before the year 2000. After that, :rfc:`822` became obsolete and the " -"4-digit year has been first recommended by :rfc:`1123` and then mandated by " -":rfc:`2822`." +"two-digit year (%y rather than %Y), but practice moved to 4-digit years long " +"before the year 2000. After that, :rfc:`822` became obsolete and the 4-" +"digit year has been first recommended by :rfc:`1123` and then mandated by :" +"rfc:`2822`." msgstr "" diff --git a/library/timeit.po b/library/timeit.po index 7c8889a46..6f8835e34 100644 --- a/library/timeit.po +++ b/library/timeit.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-14 11:26+0900\n" +"POT-Creation-Date: 2020-05-03 13:46+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,8 +47,8 @@ msgstr "" #: ../../library/timeit.rst:25 msgid "" -"The following example shows how the :ref:`timeit-command-line-interface` can" -" be used to compare three different expressions:" +"The following example shows how the :ref:`timeit-command-line-interface` can " +"be used to compare three different expressions:" msgstr "" #: ../../library/timeit.rst:37 @@ -59,9 +61,9 @@ msgstr "" #: ../../library/timeit.rst:52 msgid "" -"Note however that :func:`.timeit` will automatically determine the number of" -" repetitions only when the command-line interface is used. In the :ref" -":`timeit-examples` section you can find more advanced examples." +"Note however that :func:`.timeit` will automatically determine the number of " +"repetitions only when the command-line interface is used. In the :ref:" +"`timeit-examples` section you can find more advanced examples." msgstr "" #: ../../library/timeit.rst:60 @@ -112,19 +114,19 @@ msgstr "" #: ../../library/timeit.rst:101 msgid "" "The constructor takes a statement to be timed, an additional statement used " -"for setup, and a timer function. Both statements default to ``'pass'``; the" -" timer function is platform-dependent (see the module doc string). *stmt* " -"and *setup* may also contain multiple statements separated by ``;`` or " -"newlines, as long as they don't contain multi-line string literals. The " -"statement will by default be executed within timeit's namespace; this " -"behavior can be controlled by passing a namespace to *globals*." +"for setup, and a timer function. Both statements default to ``'pass'``; the " +"timer function is platform-dependent (see the module doc string). *stmt* and " +"*setup* may also contain multiple statements separated by ``;`` or newlines, " +"as long as they don't contain multi-line string literals. The statement " +"will by default be executed within timeit's namespace; this behavior can be " +"controlled by passing a namespace to *globals*." msgstr "" #: ../../library/timeit.rst:109 msgid "" -"To measure the execution time of the first statement, use the " -":meth:`.timeit` method. The :meth:`.repeat` and :meth:`.autorange` methods " -"are convenience methods to call :meth:`.timeit` multiple times." +"To measure the execution time of the first statement, use the :meth:`." +"timeit` method. The :meth:`.repeat` and :meth:`.autorange` methods are " +"convenience methods to call :meth:`.timeit` multiple times." msgstr "" #: ../../library/timeit.rst:113 @@ -145,16 +147,16 @@ msgstr "" msgid "" "Time *number* executions of the main statement. This executes the setup " "statement once, and then returns the time it takes to execute the main " -"statement a number of times, measured in seconds as a float. The argument is" -" the number of times through the loop, defaulting to one million. The main " +"statement a number of times, measured in seconds as a float. The argument is " +"the number of times through the loop, defaulting to one million. The main " "statement, the setup statement and the timer function to be used are passed " "to the constructor." msgstr "" #: ../../library/timeit.rst:134 msgid "" -"By default, :meth:`.timeit` temporarily turns off :term:`garbage collection`" -" during the timing. The advantage of this approach is that it makes " +"By default, :meth:`.timeit` temporarily turns off :term:`garbage collection` " +"during the timing. The advantage of this approach is that it makes " "independent timings more comparable. The disadvantage is that GC may be an " "important component of the performance of the function being measured. If " "so, GC can be re-enabled as the first statement in the *setup* string. For " @@ -167,9 +169,9 @@ msgstr "" #: ../../library/timeit.rst:148 msgid "" -"This is a convenience function that calls :meth:`.timeit` repeatedly so that" -" the total time >= 0.2 second, returning the eventual (number of loops, time" -" taken for that number of loops). It calls :meth:`.timeit` with increasing " +"This is a convenience function that calls :meth:`.timeit` repeatedly so that " +"the total time >= 0.2 second, returning the eventual (number of loops, time " +"taken for that number of loops). It calls :meth:`.timeit` with increasing " "numbers from the sequence 1, 2, 5, 10, 20, 50, ... until the time taken is " "at least 0.2 second." msgstr "" @@ -187,8 +189,8 @@ msgstr "" #: ../../library/timeit.rst:164 msgid "" "This is a convenience function that calls the :meth:`.timeit` repeatedly, " -"returning a list of results. The first argument specifies how many times to" -" call :meth:`.timeit`. The second argument specifies the *number* argument " +"returning a list of results. The first argument specifies how many times to " +"call :meth:`.timeit`. The second argument specifies the *number* argument " "for :meth:`.timeit`." msgstr "" @@ -196,13 +198,12 @@ msgstr "" msgid "" "It's tempting to calculate mean and standard deviation from the result " "vector and report these. However, this is not very useful. In a typical " -"case, the lowest value gives a lower bound for how fast your machine can run" -" the given code snippet; higher values in the result vector are typically " -"not caused by variability in Python's speed, but by other processes " -"interfering with your timing accuracy. So the :func:`min` of the result is " -"probably the only number you should be interested in. After that, you " -"should look at the entire vector and apply common sense rather than " -"statistics." +"case, the lowest value gives a lower bound for how fast your machine can run " +"the given code snippet; higher values in the result vector are typically not " +"caused by variability in Python's speed, but by other processes interfering " +"with your timing accuracy. So the :func:`min` of the result is probably the " +"only number you should be interested in. After that, you should look at the " +"entire vector and apply common sense rather than statistics." msgstr "" #: ../../library/timeit.rst:187 @@ -275,20 +276,21 @@ msgstr "" #: ../../library/timeit.rst:253 msgid "" "If :option:`-n` is not given, a suitable number of loops is calculated by " -"trying successive powers of 10 until the total time is at least 0.2 seconds." +"trying increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ... until " +"the total time is at least 0.2 seconds." msgstr "" -#: ../../library/timeit.rst:256 +#: ../../library/timeit.rst:257 msgid "" -":func:`default_timer` measurements can be affected by other programs running" -" on the same machine, so the best thing to do when accurate timing is " -"necessary is to repeat the timing a few times and use the best time. The " -":option:`-r` option is good for this; the default of 5 repetitions is " +":func:`default_timer` measurements can be affected by other programs running " +"on the same machine, so the best thing to do when accurate timing is " +"necessary is to repeat the timing a few times and use the best time. The :" +"option:`-r` option is good for this; the default of 5 repetitions is " "probably enough in most cases. You can use :func:`time.process_time` to " "measure CPU time." msgstr "" -#: ../../library/timeit.rst:264 +#: ../../library/timeit.rst:265 msgid "" "There is a certain baseline overhead associated with executing a pass " "statement. The code here doesn't try to hide it, but you should be aware of " @@ -296,37 +298,36 @@ msgid "" "arguments, and it might differ between Python versions." msgstr "" -#: ../../library/timeit.rst:273 +#: ../../library/timeit.rst:274 msgid "Examples" msgstr "Exemplos" -#: ../../library/timeit.rst:275 +#: ../../library/timeit.rst:276 msgid "" "It is possible to provide a setup statement that is executed only once at " "the beginning:" msgstr "" -#: ../../library/timeit.rst:292 +#: ../../library/timeit.rst:293 msgid "The same can be done using the :class:`Timer` class and its methods::" msgstr "" -#: ../../library/timeit.rst:302 +#: ../../library/timeit.rst:303 msgid "" "The following examples show how to time expressions that contain multiple " -"lines. Here we compare the cost of using :func:`hasattr` vs. " -":keyword:`try`/:keyword:`except` to test for missing and present object " -"attributes:" +"lines. Here we compare the cost of using :func:`hasattr` vs. :keyword:`try`/:" +"keyword:`except` to test for missing and present object attributes:" msgstr "" -#: ../../library/timeit.rst:348 +#: ../../library/timeit.rst:349 msgid "" "To give the :mod:`timeit` module access to functions you define, you can " "pass a *setup* parameter which contains an import statement::" msgstr "" -#: ../../library/timeit.rst:359 +#: ../../library/timeit.rst:360 msgid "" -"Another option is to pass :func:`globals` to the *globals* parameter, which" -" will cause the code to be executed within your current global namespace. " +"Another option is to pass :func:`globals` to the *globals* parameter, which " +"will cause the code to be executed within your current global namespace. " "This can be more convenient than individually specifying imports::" msgstr "" diff --git a/library/tk.po b/library/tk.po index 5bfdd8ebd..2a70c4277 100644 --- a/library/tk.po +++ b/library/tk.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:10+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,8 +31,8 @@ msgstr "Interfaces Gráficas de Usuário com Tk" msgid "" "Tk/Tcl has long been an integral part of Python. It provides a robust and " "platform independent windowing toolkit, that is available to Python " -"programmers using the :mod:`tkinter` package, and its extension, the " -":mod:`tkinter.tix` and the :mod:`tkinter.ttk` modules." +"programmers using the :mod:`tkinter` package, and its extension, the :mod:" +"`tkinter.tix` and the :mod:`tkinter.ttk` modules." msgstr "" "Tk/Tcl tem sido parte integrante do Python. Ele fornece um kit de " "ferramentas de janela robusto e independente de plataforma, que está " @@ -40,29 +41,29 @@ msgstr "" #: ../../library/tk.rst:18 msgid "" -"The :mod:`tkinter` package is a thin object-oriented layer on top of Tcl/Tk." -" To use :mod:`tkinter`, you don't need to write Tcl code, but you will need " -"to consult the Tk documentation, and occasionally the Tcl documentation. " -":mod:`tkinter` is a set of wrappers that implement the Tk widgets as Python " +"The :mod:`tkinter` package is a thin object-oriented layer on top of Tcl/Tk. " +"To use :mod:`tkinter`, you don't need to write Tcl code, but you will need " +"to consult the Tk documentation, and occasionally the Tcl documentation. :" +"mod:`tkinter` is a set of wrappers that implement the Tk widgets as Python " "classes. In addition, the internal module :mod:`_tkinter` provides a " "threadsafe mechanism which allows Python and Tcl to interact." msgstr "" "O pacote :mod:`tkinter` é uma camada fina orientada a objeto sobre Tcl/Tk. " "Para usar :mod:`tkinter`, você não precisa escrever o código Tcl, mas você " -"precisará consultar a documentação do Tk, e ocasionalmente a documentação do" -" Tcl. :mod:`tkinter` é um conjunto de wrappers que implementam os widgets Tk" -" como classes Python. Além disso, o módulo interno :mod:`_tkinter` fornece " -"um mecanismo de segurança do segmento que permite que o Python e o Tcl " +"precisará consultar a documentação do Tk, e ocasionalmente a documentação do " +"Tcl. :mod:`tkinter` é um conjunto de wrappers que implementam os widgets Tk " +"como classes Python. Além disso, o módulo interno :mod:`_tkinter` fornece um " +"mecanismo de segurança do segmento que permite que o Python e o Tcl " "interajam." #: ../../library/tk.rst:25 msgid "" ":mod:`tkinter`'s chief virtues are that it is fast, and that it usually " -"comes bundled with Python. Although its standard documentation is weak, good" -" material is available, which includes: references, tutorials, a book and " +"comes bundled with Python. Although its standard documentation is weak, good " +"material is available, which includes: references, tutorials, a book and " "others. :mod:`tkinter` is also famous for having an outdated look and feel, " -"which has been vastly improved in Tk 8.5. Nevertheless, there are many other" -" GUI libraries that you could be interested in. For more information about " +"which has been vastly improved in Tk 8.5. Nevertheless, there are many other " +"GUI libraries that you could be interested in. For more information about " "alternatives, see the :ref:`other-gui-packages` section." msgstr "" "As principais virtudes do :mod:`tkinter` são que ele é rápido e geralmente " diff --git a/library/tkinter.po b/library/tkinter.po index e6014c5b0..537aea34c 100644 --- a/library/tkinter.po +++ b/library/tkinter.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Welington Carlos , 2019 @@ -13,16 +13,19 @@ # And Past , 2019 # Adorilson Bezerra , 2019 # felipe caridade , 2019 -# +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-06 21:56+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,16 +47,16 @@ msgid "" "on most Unix platforms, as well as on Windows systems. (Tk itself is not " "part of Python; it is maintained at ActiveState.)" msgstr "" -"O pacote: mod: `tkinter` (\" Tk interface \") é a interface padrão do Python" -" para o kit de ferramentas Tk GUI. Ambos Tk e: mod: `tkinter` estão " -"disponíveis na maioria das plataformas Unix, assim como em sistemas Windows." -" (O próprio Tk não faz parte do Python; ele é mantido no ActiveState.)" +"O pacote: mod: `tkinter` (\" Tk interface \") é a interface padrão do Python " +"para o kit de ferramentas Tk GUI. Ambos Tk e: mod: `tkinter` estão " +"disponíveis na maioria das plataformas Unix, assim como em sistemas Windows. " +"(O próprio Tk não faz parte do Python; ele é mantido no ActiveState.)" #: ../../library/tkinter.rst:18 msgid "" "Running ``python -m tkinter`` from the command line should open a window " -"demonstrating a simple Tk interface, letting you know that :mod:`tkinter` is" -" properly installed on your system, and also showing what version of Tcl/Tk " +"demonstrating a simple Tk interface, letting you know that :mod:`tkinter` is " +"properly installed on your system, and also showing what version of Tcl/Tk " "is installed, so you can read the Tcl/Tk documentation specific to that " "version." msgstr "" @@ -73,8 +76,8 @@ msgstr "`Recursos do Python Tkinter ` _" #: ../../library/tkinter.rst:28 msgid "" -"The Python Tkinter Topic Guide provides a great deal of information on using" -" Tk from Python and links to other sources of information on Tk." +"The Python Tkinter Topic Guide provides a great deal of information on using " +"Tk from Python and links to other sources of information on Tk." msgstr "" "O Python Tkinter Topic Guide fornece uma grande quantidade de informações " "sobre como usar o Tk do Python e links para outras fontes de informação no " @@ -88,17 +91,17 @@ msgstr "`TKDocs ` _" msgid "" "Extensive tutorial plus friendlier widget pages for some of the widgets." msgstr "" -"Tutorial extenso e páginas de widgets mais amigáveis para alguns dos " -"widgets." +"Tutorial extenso e páginas de widgets mais amigáveis para alguns dos widgets." #: ../../library/tkinter.rst:35 msgid "" -"`Tkinter 8.5 reference: a GUI for Python " -"`_" +"`Tkinter 8.5 reference: a GUI for Python `_" msgstr "" -"`Referência Tkinter 8.5: uma GUI para Python " -"`" -" _" +"`Referência Tkinter 8.5: uma GUI para Python ` _" #: ../../library/tkinter.rst:35 msgid "On-line reference material." @@ -152,8 +155,8 @@ msgstr "" #: ../../library/tkinter.rst:52 msgid "" -"Most commands are available as :mod:`tkinter` or :mod:`tkinter.ttk` classes." -" Change '8.6' to match the version of your Tcl/Tk installation." +"Most commands are available as :mod:`tkinter` or :mod:`tkinter.ttk` classes. " +"Change '8.6' to match the version of your Tcl/Tk installation." msgstr "" #: ../../library/tkinter.rst:56 @@ -174,8 +177,8 @@ msgstr "" #: ../../library/tkinter.rst:62 msgid "" -"`Tcl and the Tk Toolkit " -"`_" +"`Tcl and the Tk Toolkit `_" msgstr "" #: ../../library/tkinter.rst:62 @@ -208,8 +211,8 @@ msgstr "" msgid "" "In addition to the Tk interface module, :mod:`tkinter` includes a number of " "Python modules, :mod:`tkinter.constants` being one of the most important. " -"Importing :mod:`tkinter` will automatically import :mod:`tkinter.constants`," -" so, usually, to use Tkinter all you need is a simple import statement::" +"Importing :mod:`tkinter` will automatically import :mod:`tkinter.constants`, " +"so, usually, to use Tkinter all you need is a simple import statement::" msgstr "" #: ../../library/tkinter.rst:85 @@ -227,12 +230,12 @@ msgstr "" msgid "" "The :func:`Tcl` function is a factory function which creates an object much " "like that created by the :class:`Tk` class, except that it does not " -"initialize the Tk subsystem. This is most often useful when driving the Tcl" -" interpreter in an environment where one doesn't want to create extraneous " -"toplevel windows, or where one cannot (such as Unix/Linux systems without an" -" X server). An object created by the :func:`Tcl` object can have a Toplevel" -" window created (and the Tk subsystem initialized) by calling its " -":meth:`loadtk` method." +"initialize the Tk subsystem. This is most often useful when driving the Tcl " +"interpreter in an environment where one doesn't want to create extraneous " +"toplevel windows, or where one cannot (such as Unix/Linux systems without an " +"X server). An object created by the :func:`Tcl` object can have a Toplevel " +"window created (and the Tk subsystem initialized) by calling its :meth:" +"`loadtk` method." msgstr "" #: ../../library/tkinter.rst:110 @@ -241,7 +244,7 @@ msgstr "" #: ../../library/tkinter.rst:113 msgid ":mod:`tkinter.scrolledtext`" -msgstr "" +msgstr ":mod:`tkinter.scrolledtext`" #: ../../library/tkinter.rst:113 msgid "Text widget with a vertical scroll bar built in." @@ -249,7 +252,7 @@ msgstr "" #: ../../library/tkinter.rst:116 msgid ":mod:`tkinter.colorchooser`" -msgstr "" +msgstr ":mod:`tkinter.colorchooser`" #: ../../library/tkinter.rst:116 msgid "Dialog to let the user choose a color." @@ -257,7 +260,7 @@ msgstr "" #: ../../library/tkinter.rst:119 msgid ":mod:`tkinter.commondialog`" -msgstr "" +msgstr ":mod:`tkinter.commondialog`" #: ../../library/tkinter.rst:119 msgid "Base class for the dialogs defined in the other modules listed here." @@ -265,7 +268,7 @@ msgstr "" #: ../../library/tkinter.rst:122 msgid ":mod:`tkinter.filedialog`" -msgstr "" +msgstr ":mod:`tkinter.filedialog`" #: ../../library/tkinter.rst:122 msgid "Common dialogs to allow the user to specify a file to open or save." @@ -273,7 +276,7 @@ msgstr "" #: ../../library/tkinter.rst:125 msgid ":mod:`tkinter.font`" -msgstr "" +msgstr ":mod:`tkinter.font`" #: ../../library/tkinter.rst:125 msgid "Utilities to help work with fonts." @@ -281,7 +284,7 @@ msgstr "" #: ../../library/tkinter.rst:128 msgid ":mod:`tkinter.messagebox`" -msgstr "" +msgstr ":mod:`tkinter.messagebox`" #: ../../library/tkinter.rst:128 msgid "Access to standard Tk dialog boxes." @@ -289,7 +292,7 @@ msgstr "" #: ../../library/tkinter.rst:131 msgid ":mod:`tkinter.simpledialog`" -msgstr "" +msgstr ":mod:`tkinter.simpledialog`" #: ../../library/tkinter.rst:131 msgid "Basic dialogs and convenience functions." @@ -297,7 +300,7 @@ msgstr "" #: ../../library/tkinter.rst:135 msgid ":mod:`tkinter.dnd`" -msgstr "" +msgstr ":mod:`tkinter.dnd`" #: ../../library/tkinter.rst:134 msgid "" @@ -307,7 +310,7 @@ msgstr "" #: ../../library/tkinter.rst:139 msgid ":mod:`turtle`" -msgstr "" +msgstr ":mod:`turtle`" #: ../../library/tkinter.rst:138 msgid "Turtle graphics in a Tk window." @@ -338,14 +341,13 @@ msgstr "" #: ../../library/tkinter.rst:157 msgid "" -"This Life Preserver was written by Matt Conway at the University of " -"Virginia." +"This Life Preserver was written by Matt Conway at the University of Virginia." msgstr "" #: ../../library/tkinter.rst:159 msgid "" -"The HTML rendering, and some liberal editing, was produced from a FrameMaker" -" version by Ken Manheimer." +"The HTML rendering, and some liberal editing, was produced from a FrameMaker " +"version by Ken Manheimer." msgstr "" #: ../../library/tkinter.rst:162 @@ -367,16 +369,16 @@ msgstr "" #: ../../library/tkinter.rst:172 msgid "" "This section is designed in two parts: the first half (roughly) covers " -"background material, while the second half can be taken to the keyboard as a" -" handy reference." +"background material, while the second half can be taken to the keyboard as a " +"handy reference." msgstr "" #: ../../library/tkinter.rst:176 msgid "" "When trying to answer questions of the form \"how do I do blah\", it is " "often best to find out how to do \"blah\" in straight Tk, and then convert " -"this back into the corresponding :mod:`tkinter` call. Python programmers can" -" often guess at the correct Python command by looking at the Tk " +"this back into the corresponding :mod:`tkinter` call. Python programmers can " +"often guess at the correct Python command by looking at the Tk " "documentation. This means that in order to use Tkinter, you will have to " "know a little bit about Tk. This document can't fulfill that role, so the " "best we can do is point you to the best documentation that exists. Here are " @@ -479,10 +481,10 @@ msgstr "*newPathname*" #: ../../library/tkinter.rst:269 msgid "" "is the new name for this widget. All names in Tk must be unique. To help " -"enforce this, widgets in Tk are named with *pathnames*, just like files in a" -" file system. The top level widget, the *root*, is called ``.`` (period) " -"and children are delimited by more periods. For example, " -"``.myApp.controlPanel.okButton`` might be the name of a widget." +"enforce this, widgets in Tk are named with *pathnames*, just like files in a " +"file system. The top level widget, the *root*, is called ``.`` (period) and " +"children are delimited by more periods. For example, ``.myApp.controlPanel." +"okButton`` might be the name of a widget." msgstr "" #: ../../library/tkinter.rst:279 @@ -507,8 +509,8 @@ msgid "" "Once created, the pathname to the widget becomes a new command. This new " "*widget command* is the programmer's handle for getting the new widget to " "perform some *action*. In C, you'd express this as someAction(fred, " -"someOptions), in C++, you would express this as " -"fred.someAction(someOptions), and in Tk, you say::" +"someOptions), in C++, you would express this as fred." +"someAction(someOptions), and in Tk, you say::" msgstr "" #: ../../library/tkinter.rst:297 @@ -547,11 +549,11 @@ msgstr "" #: ../../library/tkinter.rst:322 msgid "" -"The configuration options in Tk are given in lists of hyphened tags followed" -" by values. In Tkinter, options are specified as keyword-arguments in the " +"The configuration options in Tk are given in lists of hyphened tags followed " +"by values. In Tkinter, options are specified as keyword-arguments in the " "instance constructor, and keyword-args for configure calls or as instance " -"indices, in dictionary style, for established instances. See section :ref" -":`tkinter-setting-options` on setting options. ::" +"indices, in dictionary style, for established instances. See section :ref:" +"`tkinter-setting-options` on setting options. ::" msgstr "" #: ../../library/tkinter.rst:332 @@ -559,8 +561,8 @@ msgid "" "In Tk, to perform an action on a widget, use the widget name as a command, " "and follow it with an action name, possibly with arguments (options). In " "Tkinter, you call methods on the class instance to invoke actions on the " -"widget. The actions (methods) that a given widget can perform are listed in" -" :file:`tkinter/__init__.py`. ::" +"widget. The actions (methods) that a given widget can perform are listed " +"in :file:`tkinter/__init__.py`. ::" msgstr "" #: ../../library/tkinter.rst:340 @@ -608,8 +610,8 @@ msgstr "" #: ../../library/tkinter.rst:366 msgid "" -"These commands and their arguments will be passed to a C function in the " -":mod:`_tkinter` - note the underscore - extension module." +"These commands and their arguments will be passed to a C function in the :" +"mod:`_tkinter` - note the underscore - extension module." msgstr "" #: ../../library/tkinter.rst:374 @@ -619,9 +621,9 @@ msgstr "" #: ../../library/tkinter.rst:370 msgid "" "This C function is able to make calls into other C modules, including the C " -"functions that make up the Tk library. Tk is implemented in C and some Tcl." -" The Tcl part of the Tk widgets is used to bind certain default behaviors to" -" widgets, and is executed once at the point where the Python :mod:`tkinter` " +"functions that make up the Tk library. Tk is implemented in C and some Tcl. " +"The Tcl part of the Tk widgets is used to bind certain default behaviors to " +"widgets, and is executed once at the point where the Python :mod:`tkinter` " "package is imported. (The user never sees this stage)." msgstr "" @@ -660,8 +662,7 @@ msgid "At object creation time, using keyword arguments" msgstr "" #: ../../library/tkinter.rst:404 -msgid "" -"After object creation, treating the option name like a dictionary index" +msgid "After object creation, treating the option name like a dictionary index" msgstr "" #: ../../library/tkinter.rst:409 @@ -681,8 +682,8 @@ msgid "" "Note that the man pages list \"STANDARD OPTIONS\" and \"WIDGET SPECIFIC " "OPTIONS\" for each widget. The former is a list of options that are common " "to many widgets, the latter are the options that are idiosyncratic to that " -"particular widget. The Standard Options are documented on the " -":manpage:`options(3)` man page." +"particular widget. The Standard Options are documented on the :manpage:" +"`options(3)` man page." msgstr "" #: ../../library/tkinter.rst:420 @@ -698,17 +699,16 @@ msgid "" "The options supported by a given widget are listed in that widget's man " "page, or can be queried at runtime by calling the :meth:`config` method " "without arguments, or by calling the :meth:`keys` method on that widget. " -"The return value of these calls is a dictionary whose key is the name of the" -" option as a string (for example, ``'relief'``) and whose values are " -"5-tuples." +"The return value of these calls is a dictionary whose key is the name of the " +"option as a string (for example, ``'relief'``) and whose values are 5-tuples." msgstr "" #: ../../library/tkinter.rst:431 msgid "" "Some options, like ``bg`` are synonyms for common options with long names " "(``bg`` is shorthand for \"background\"). Passing the ``config()`` method " -"the name of a shorthand option will return a 2-tuple, not 5-tuple. The " -"2-tuple passed back will contain the name of the synonym and the \"real\" " +"the name of a shorthand option will return a 2-tuple, not 5-tuple. The 2-" +"tuple passed back will contain the name of the synonym and the \"real\" " "option (such as ``('bg', 'background')``)." msgstr "" @@ -734,7 +734,7 @@ msgstr "" #: ../../library/tkinter.rst:440 ../../library/tkinter.rst:442 msgid "``'relief'``" -msgstr "" +msgstr "``'relief'``" #: ../../library/tkinter.rst:442 msgid "1" @@ -754,7 +754,7 @@ msgstr "" #: ../../library/tkinter.rst:444 msgid "``'Relief'``" -msgstr "" +msgstr "``'Relief'``" #: ../../library/tkinter.rst:447 msgid "3" @@ -778,7 +778,7 @@ msgstr "valor atual " #: ../../library/tkinter.rst:449 msgid "``'groove'``" -msgstr "" +msgstr "``'groove'``" #: ../../library/tkinter.rst:452 msgid "Example::" @@ -786,8 +786,8 @@ msgstr "Exemplo::" #: ../../library/tkinter.rst:457 msgid "" -"Of course, the dictionary printed will include all the options available and" -" their values. This is meant only as an example." +"Of course, the dictionary printed will include all the options available and " +"their values. This is meant only as an example." msgstr "" #: ../../library/tkinter.rst:462 @@ -801,8 +801,8 @@ msgid "" "widgets within their container - their mutual *master*. In contrast to the " "more cumbersome *placer* (which is used less commonly, and we do not cover " "here), the packer takes qualitative relationship specification - *above*, " -"*to the left of*, *filling*, etc - and works everything out to determine the" -" exact placement coordinates for you." +"*to the left of*, *filling*, etc - and works everything out to determine the " +"exact placement coordinates for you." msgstr "" #: ../../library/tkinter.rst:474 @@ -810,25 +810,25 @@ msgid "" "The size of any *master* widget is determined by the size of the \"slave " "widgets\" inside. The packer is used to control where slave widgets appear " "inside the master into which they are packed. You can pack widgets into " -"frames, and frames into other frames, in order to achieve the kind of layout" -" you desire. Additionally, the arrangement is dynamically adjusted to " +"frames, and frames into other frames, in order to achieve the kind of layout " +"you desire. Additionally, the arrangement is dynamically adjusted to " "accommodate incremental changes to the configuration, once it is packed." msgstr "" #: ../../library/tkinter.rst:481 msgid "" -"Note that widgets do not appear until they have had their geometry specified" -" with a geometry manager. It's a common early mistake to leave out the " -"geometry specification, and then be surprised when the widget is created but" -" nothing appears. A widget will appear only after it has had, for example, " +"Note that widgets do not appear until they have had their geometry specified " +"with a geometry manager. It's a common early mistake to leave out the " +"geometry specification, and then be surprised when the widget is created but " +"nothing appears. A widget will appear only after it has had, for example, " "the packer's :meth:`pack` method applied to it." msgstr "" #: ../../library/tkinter.rst:487 msgid "" -"The pack() method can be called with keyword-option/value pairs that control" -" where the widget is to appear within its container, and how it is to behave" -" when the main application window is resized. Here are some examples::" +"The pack() method can be called with keyword-option/value pairs that control " +"where the widget is to appear within its container, and how it is to behave " +"when the main application window is resized. Here are some examples::" msgstr "" #: ../../library/tkinter.rst:497 @@ -899,10 +899,10 @@ msgstr "" #: ../../library/tkinter.rst:524 msgid "" "The current-value setting of some widgets (like text entry widgets) can be " -"connected directly to application variables by using special options. These" -" options are ``variable``, ``textvariable``, ``onvalue``, ``offvalue``, and " -"``value``. This connection works both ways: if the variable changes for any" -" reason, the widget it's connected to will be updated to reflect the new " +"connected directly to application variables by using special options. These " +"options are ``variable``, ``textvariable``, ``onvalue``, ``offvalue``, and " +"``value``. This connection works both ways: if the variable changes for any " +"reason, the widget it's connected to will be updated to reflect the new " "value." msgstr "" @@ -917,12 +917,12 @@ msgstr "" #: ../../library/tkinter.rst:536 msgid "" -"There are many useful subclasses of Variable already defined: " -":class:`StringVar`, :class:`IntVar`, :class:`DoubleVar`, and " -":class:`BooleanVar`. To read the current value of such a variable, call the" -" :meth:`get` method on it, and to change its value you call the :meth:`!set`" -" method. If you follow this protocol, the widget will always track the " -"value of the variable, with no further intervention on your part." +"There are many useful subclasses of Variable already defined: :class:" +"`StringVar`, :class:`IntVar`, :class:`DoubleVar`, and :class:`BooleanVar`. " +"To read the current value of such a variable, call the :meth:`get` method on " +"it, and to change its value you call the :meth:`!set` method. If you follow " +"this protocol, the widget will always track the value of the variable, with " +"no further intervention on your part." msgstr "" #: ../../library/tkinter.rst:572 @@ -944,8 +944,8 @@ msgid "" "To get at the toplevel window that contains a given widget, you can often " "just refer to the widget's master. Of course if the widget has been packed " "inside of a frame, the master won't represent a toplevel window. To get at " -"the toplevel window that contains an arbitrary widget, you can call the " -":meth:`_root` method. This method begins with an underscore to denote the " +"the toplevel window that contains an arbitrary widget, you can call the :" +"meth:`_root` method. This method begins with an underscore to denote the " "fact that this function is part of the implementation, and not an interface " "to Tk functionality." msgstr "" @@ -960,9 +960,9 @@ msgstr "" #: ../../library/tkinter.rst:618 msgid "" -"Legal values are points of the compass: ``\"n\"``, ``\"ne\"``, ``\"e\"``, " -"``\"se\"``, ``\"s\"``, ``\"sw\"``, ``\"w\"``, ``\"nw\"``, and also " -"``\"center\"``." +"Legal values are points of the compass: ``\"n\"``, ``\"ne\"``, ``\"e\"``, ``" +"\"se\"``, ``\"s\"``, ``\"sw\"``, ``\"w\"``, ``\"nw\"``, and also ``\"center" +"\"``." msgstr "" #: ../../library/tkinter.rst:625 @@ -1000,10 +1000,10 @@ msgstr "" #: ../../library/tkinter.rst:638 msgid "" "Colors can be given as the names of X colors in the rgb.txt file, or as " -"strings representing RGB values in 4 bit: ``\"#RGB\"``, 8 bit: " -"``\"#RRGGBB\"``, 12 bit\" ``\"#RRRGGGBBB\"``, or 16 bit " -"``\"#RRRRGGGGBBBB\"`` ranges, where R,G,B here represent any legal hex " -"digit. See page 160 of Ousterhout's book for details." +"strings representing RGB values in 4 bit: ``\"#RGB\"``, 8 bit: ``\"#RRGGBB" +"\"``, 12 bit\" ``\"#RRRGGGBBB\"``, or 16 bit ``\"#RRRRGGGGBBBB\"`` ranges, " +"where R,G,B here represent any legal hex digit. See page 160 of " +"Ousterhout's book for details." msgstr "" #: ../../library/tkinter.rst:647 @@ -1070,8 +1070,8 @@ msgstr "" #: ../../library/tkinter.rst:671 msgid "" "This is a string with four space-delimited elements, each of which is a " -"legal distance (see above). For example: ``\"2 3 4 5\"`` and ``\"3i 2i 4.5i" -" 2i\"`` and ``\"3c 2c 4c 10.43c\"`` are all legal regions." +"legal distance (see above). For example: ``\"2 3 4 5\"`` and ``\"3i 2i 4.5i " +"2i\"`` and ``\"3c 2c 4c 10.43c\"`` are all legal regions." msgstr "" #: ../../library/tkinter.rst:677 @@ -1080,9 +1080,9 @@ msgstr "" #: ../../library/tkinter.rst:676 msgid "" -"Determines what the border style of a widget will be. Legal values are: " -"``\"raised\"``, ``\"sunken\"``, ``\"flat\"``, ``\"groove\"``, and " -"``\"ridge\"``." +"Determines what the border style of a widget will be. Legal values are: ``" +"\"raised\"``, ``\"sunken\"``, ``\"flat\"``, ``\"groove\"``, and ``\"ridge" +"\"``." msgstr "" #: ../../library/tkinter.rst:681 @@ -1110,8 +1110,8 @@ msgstr "" #: ../../library/tkinter.rst:694 msgid "" "The bind method from the widget command allows you to watch for certain " -"events and to have a callback function trigger when that event type occurs." -" The form of the bind method is::" +"events and to have a callback function trigger when that event type occurs. " +"The form of the bind method is::" msgstr "" #: ../../library/tkinter.rst:700 @@ -1130,7 +1130,7 @@ msgstr "" #: ../../library/tkinter.rst:709 msgid "func" -msgstr "" +msgstr "func" #: ../../library/tkinter.rst:707 msgid "" @@ -1145,26 +1145,26 @@ msgstr "" #: ../../library/tkinter.rst:712 msgid "" -"is optional, either ``''`` or ``'+'``. Passing an empty string denotes that" -" this binding is to replace any other bindings that this event is associated" -" with. Passing a ``'+'`` means that this function is to be added to the " -"list of functions bound to this event type." +"is optional, either ``''`` or ``'+'``. Passing an empty string denotes that " +"this binding is to replace any other bindings that this event is associated " +"with. Passing a ``'+'`` means that this function is to be added to the list " +"of functions bound to this event type." msgstr "" #: ../../library/tkinter.rst:724 msgid "" "Notice how the widget field of the event is being accessed in the " "``turn_red()`` callback. This field contains the widget that caught the X " -"event. The following table lists the other event fields you can access, and" -" how they are denoted in Tk, which can be useful when referring to the Tk " -"man pages." +"event. The following table lists the other event fields you can access, and " +"how they are denoted in Tk, which can be useful when referring to the Tk man " +"pages." msgstr "" -#: ../../library/tkinter.rst:730 ../../library/tkinter.rst:730 +#: ../../library/tkinter.rst:730 msgid "Tk" msgstr "" -#: ../../library/tkinter.rst:730 ../../library/tkinter.rst:730 +#: ../../library/tkinter.rst:730 msgid "Tkinter Event Field" msgstr "" @@ -1238,7 +1238,7 @@ msgstr "" #: ../../library/tkinter.rst:740 msgid "time" -msgstr "" +msgstr "time" #: ../../library/tkinter.rst:740 msgid "%T" @@ -1314,8 +1314,8 @@ msgstr "" #: ../../library/tkinter.rst:758 msgid "" "Entry widgets have options that refer to character positions in the text " -"being displayed. You can use these :mod:`tkinter` functions to access these" -" special points in text widgets:" +"being displayed. You can use these :mod:`tkinter` functions to access these " +"special points in text widgets:" msgstr "" #: ../../library/tkinter.rst:764 @@ -1334,8 +1334,8 @@ msgstr "" #: ../../library/tkinter.rst:767 msgid "" -"Some options and methods for menus manipulate specific menu entries. Anytime" -" a menu index is needed for an option or a parameter, you may pass in:" +"Some options and methods for menus manipulate specific menu entries. Anytime " +"a menu index is needed for an option or a parameter, you may pass in:" msgstr "" #: ../../library/tkinter.rst:770 @@ -1356,8 +1356,8 @@ msgstr "" #: ../../library/tkinter.rst:778 msgid "" -"An integer preceded by ``@``, as in ``@6``, where the integer is interpreted" -" as a y pixel coordinate in the menu's coordinate system;" +"An integer preceded by ``@``, as in ``@6``, where the integer is interpreted " +"as a y pixel coordinate in the menu's coordinate system;" msgstr "" #: ../../library/tkinter.rst:781 @@ -1406,8 +1406,8 @@ msgid "" "The image object can then be used wherever an ``image`` option is supported " "by some widget (e.g. labels, buttons, menus). In these cases, Tk will not " "keep a reference to the image. When the last Python reference to the image " -"object is deleted, the image data is deleted as well, and Tk will display an" -" empty box wherever the image was used." +"object is deleted, the image data is deleted as well, and Tk will display an " +"empty box wherever the image was used." msgstr "" #: ../../library/tkinter.rst:813 @@ -1434,21 +1434,21 @@ msgstr "" #: ../../library/tkinter.rst:834 msgid "" "Since you don't know how many bytes are available for reading, you may not " -"want to use the :class:`~io.BufferedIOBase` or :class:`~io.TextIOBase` " -":meth:`~io.BufferedIOBase.read` or :meth:`~io.IOBase.readline` methods, " -"since these will insist on reading a predefined number of bytes. For " -"sockets, the :meth:`~socket.socket.recv` or :meth:`~socket.socket.recvfrom` " -"methods will work fine; for other files, use raw reads or " -"``os.read(file.fileno(), maxbytecount)``." +"want to use the :class:`~io.BufferedIOBase` or :class:`~io.TextIOBase` :meth:" +"`~io.BufferedIOBase.read` or :meth:`~io.IOBase.readline` methods, since " +"these will insist on reading a predefined number of bytes. For sockets, the :" +"meth:`~socket.socket.recv` or :meth:`~socket.socket.recvfrom` methods will " +"work fine; for other files, use raw reads or ``os.read(file.fileno(), " +"maxbytecount)``." msgstr "" #: ../../library/tkinter.rst:845 msgid "" -"Registers the file handler callback function *func*. The *file* argument may" -" either be an object with a :meth:`~io.IOBase.fileno` method (such as a file" -" or socket object), or an integer file descriptor. The *mask* argument is an" -" ORed combination of any of the three constants below. The callback is " -"called as follows::" +"Registers the file handler callback function *func*. The *file* argument may " +"either be an object with a :meth:`~io.IOBase.fileno` method (such as a file " +"or socket object), or an integer file descriptor. The *mask* argument is an " +"ORed combination of any of the three constants below. The callback is called " +"as follows::" msgstr "" #: ../../library/tkinter.rst:856 diff --git a/library/tkinter.scrolledtext.po b/library/tkinter.scrolledtext.po index 836c561e8..f5a50e6e4 100644 --- a/library/tkinter.scrolledtext.po +++ b/library/tkinter.scrolledtext.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,30 +34,30 @@ msgstr "**Código-fonte:** :source:`Lib/tkinter/scrolledtext.py`" msgid "" "The :mod:`tkinter.scrolledtext` module provides a class of the same name " "which implements a basic text widget which has a vertical scroll bar " -"configured to do the \"right thing.\" Using the :class:`ScrolledText` class" -" is a lot easier than setting up a text widget and scroll bar directly. The" -" constructor is the same as that of the :class:`tkinter.Text` class." +"configured to do the \"right thing.\" Using the :class:`ScrolledText` class " +"is a lot easier than setting up a text widget and scroll bar directly. The " +"constructor is the same as that of the :class:`tkinter.Text` class." msgstr "" -"O módulo :mod:`tkinter.scrolledtext` fornece uma classe com o mesmo nome que" -" implementa um widget de texto básico que possui uma barra de rolagem " -"vertical configurada para fazer a \"coisa certa\". Usar a classe " -":class:`ScrolledText` é muito mais fácil do que configurar um widget de " -"texto e barra de rolagem diretamente. O construtor é o mesmo da classe " -":class:`tkinter.Text`." +"O módulo :mod:`tkinter.scrolledtext` fornece uma classe com o mesmo nome que " +"implementa um widget de texto básico que possui uma barra de rolagem " +"vertical configurada para fazer a \"coisa certa\". Usar a classe :class:" +"`ScrolledText` é muito mais fácil do que configurar um widget de texto e " +"barra de rolagem diretamente. O construtor é o mesmo da classe :class:" +"`tkinter.Text`." #: ../../library/tkinter.scrolledtext.rst:20 msgid "" "The text widget and scrollbar are packed together in a :class:`Frame`, and " "the methods of the :class:`Grid` and :class:`Pack` geometry managers are " -"acquired from the :class:`Frame` object. This allows the " -":class:`ScrolledText` widget to be used directly to achieve most normal " -"geometry management behavior." +"acquired from the :class:`Frame` object. This allows the :class:" +"`ScrolledText` widget to be used directly to achieve most normal geometry " +"management behavior." msgstr "" -"O widget de texto e a barra de rolagem são agrupados em :class:`Frame`, e os" -" métodos dos gerenciadores de geometria :class:`Grid` e :class:`Pack` são " -"adquiridos do objeto :class:`Frame`. Isso permite que o widget " -":class:`ScrolledText` seja usado diretamente para obter o comportamento mais" -" normal de gerenciamento de geometria." +"O widget de texto e a barra de rolagem são agrupados em :class:`Frame`, e os " +"métodos dos gerenciadores de geometria :class:`Grid` e :class:`Pack` são " +"adquiridos do objeto :class:`Frame`. Isso permite que o widget :class:" +"`ScrolledText` seja usado diretamente para obter o comportamento mais normal " +"de gerenciamento de geometria." #: ../../library/tkinter.scrolledtext.rst:25 msgid "" diff --git a/library/tkinter.tix.po b/library/tkinter.tix.po index 1cba22b57..4f54fab70 100644 --- a/library/tkinter.tix.po +++ b/library/tkinter.tix.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-18 10:27+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,8 +33,8 @@ msgstr "**Código Fonte:** :source:`Lib/tkinter/tix.py`" #: ../../library/tkinter.tix.rst:13 msgid "" -"This Tk extension is unmaintained and should not be used in new code. Use " -":mod:`tkinter.ttk` instead." +"This Tk extension is unmaintained and should not be used in new code. Use :" +"mod:`tkinter.ttk` instead." msgstr "" #: ../../library/tkinter.tix.rst:19 @@ -41,10 +43,10 @@ msgid "" "additional rich set of widgets. Although the standard Tk library has many " "useful widgets, they are far from complete. The :mod:`tkinter.tix` library " "provides most of the commonly needed widgets that are missing from standard " -"Tk: :class:`HList`, :class:`ComboBox`, :class:`Control` (a.k.a. SpinBox) and" -" an assortment of scrollable widgets. :mod:`tkinter.tix` also includes many " -"more widgets that are generally useful in a wide range of applications: " -":class:`NoteBook`, :class:`FileEntry`, :class:`PanedWindow`, etc; there are " +"Tk: :class:`HList`, :class:`ComboBox`, :class:`Control` (a.k.a. SpinBox) and " +"an assortment of scrollable widgets. :mod:`tkinter.tix` also includes many " +"more widgets that are generally useful in a wide range of applications: :" +"class:`NoteBook`, :class:`FileEntry`, :class:`PanedWindow`, etc; there are " "more than 40 of them." msgstr "" @@ -86,15 +88,15 @@ msgstr "" #: ../../library/tkinter.tix.rst:48 msgid "" -"`Tix Development Applications " -"`_" +"`Tix Development Applications `_" msgstr "" #: ../../library/tkinter.tix.rst:47 msgid "" "Tix applications for development of Tix and Tkinter programs. Tide " -"applications work under Tk or Tkinter, and include :program:`TixInspect`, an" -" inspector to remotely modify and debug Tix/Tk/Tkinter applications." +"applications work under Tk or Tkinter, and include :program:`TixInspect`, an " +"inspector to remotely modify and debug Tix/Tk/Tkinter applications." msgstr "" #: ../../library/tkinter.tix.rst:53 @@ -109,11 +111,11 @@ msgstr "" #: ../../library/tkinter.tix.rst:61 msgid "" -"Classes in the :mod:`tkinter.tix` module subclasses the classes in the " -":mod:`tkinter`. The former imports the latter, so to use :mod:`tkinter.tix` " -"with Tkinter, all you need to do is to import one module. In general, you " -"can just import :mod:`tkinter.tix`, and replace the toplevel call to " -":class:`tkinter.Tk` with :class:`tix.Tk`::" +"Classes in the :mod:`tkinter.tix` module subclasses the classes in the :mod:" +"`tkinter`. The former imports the latter, so to use :mod:`tkinter.tix` with " +"Tkinter, all you need to do is to import one module. In general, you can " +"just import :mod:`tkinter.tix`, and replace the toplevel call to :class:" +"`tkinter.Tk` with :class:`tix.Tk`::" msgstr "" #: ../../library/tkinter.tix.rst:71 @@ -129,9 +131,8 @@ msgstr "" #: ../../library/tkinter.tix.rst:83 msgid "" -"`Tix " -"`_ " -"introduces over 40 widget classes to the :mod:`tkinter` repertoire." +"`Tix `_ introduces over 40 widget classes to the :mod:`tkinter` repertoire." msgstr "" #: ../../library/tkinter.tix.rst:88 @@ -140,95 +141,86 @@ msgstr "" #: ../../library/tkinter.tix.rst:93 msgid "" -"A `Balloon " -"`_ " -"that pops up over a widget to provide help. When the user moves the cursor " -"inside a widget to which a Balloon widget has been bound, a small pop-up " -"window with a descriptive message will be shown on the screen." +"A `Balloon `_ that pops up over a widget to provide help. When the user " +"moves the cursor inside a widget to which a Balloon widget has been bound, a " +"small pop-up window with a descriptive message will be shown on the screen." msgstr "" #: ../../library/tkinter.tix.rst:105 msgid "" -"The `ButtonBox " -"`_" -" widget creates a box of buttons, such as is commonly used for ``Ok " -"Cancel``." +"The `ButtonBox `_ widget creates a box of buttons, such as is commonly " +"used for ``Ok Cancel``." msgstr "" #: ../../library/tkinter.tix.rst:115 msgid "" -"The `ComboBox " -"`_ " -"widget is similar to the combo box control in MS Windows. The user can " -"select a choice by either typing in the entry subwidget or selecting from " -"the listbox subwidget." +"The `ComboBox `_ widget is similar to the combo box control in MS Windows. " +"The user can select a choice by either typing in the entry subwidget or " +"selecting from the listbox subwidget." msgstr "" #: ../../library/tkinter.tix.rst:127 msgid "" -"The `Control " -"`_ " -"widget is also known as the :class:`SpinBox` widget. The user can adjust the" -" value by pressing the two arrow buttons or by entering the value directly " -"into the entry. The new value will be checked against the user-defined upper" -" and lower limits." +"The `Control `_ widget is also known as the :class:`SpinBox` widget. The " +"user can adjust the value by pressing the two arrow buttons or by entering " +"the value directly into the entry. The new value will be checked against the " +"user-defined upper and lower limits." msgstr "" #: ../../library/tkinter.tix.rst:140 msgid "" -"The `LabelEntry " -"`_" -" widget packages an entry widget and a label into one mega widget. It can be" -" used to simplify the creation of \"entry-form\" type of interface." +"The `LabelEntry `_ widget packages an entry widget and a label into one " +"mega widget. It can be used to simplify the creation of \"entry-form\" type " +"of interface." msgstr "" #: ../../library/tkinter.tix.rst:151 msgid "" -"The `LabelFrame " -"`_" -" widget packages a frame widget and a label into one mega widget. To create" -" widgets inside a LabelFrame widget, one creates the new widgets relative to" -" the :attr:`frame` subwidget and manage them inside the :attr:`frame` " -"subwidget." +"The `LabelFrame `_ widget packages a frame widget and a label into one " +"mega widget. To create widgets inside a LabelFrame widget, one creates the " +"new widgets relative to the :attr:`frame` subwidget and manage them inside " +"the :attr:`frame` subwidget." msgstr "" #: ../../library/tkinter.tix.rst:163 msgid "" -"The `Meter " -"`_ " -"widget can be used to show the progress of a background job which may take a" -" long time to execute." +"The `Meter `_ widget can be used to show the progress of a background job which may " +"take a long time to execute." msgstr "" #: ../../library/tkinter.tix.rst:174 msgid "" -"The `OptionMenu " -"`_" -" creates a menu button of options." +"The `OptionMenu `_ creates a menu button of options." msgstr "" #: ../../library/tkinter.tix.rst:184 msgid "" -"The `PopupMenu " -"`_" -" widget can be used as a replacement of the ``tk_popup`` command. The " -"advantage of the :mod:`Tix` :class:`PopupMenu` widget is it requires less " -"application code to manipulate." +"The `PopupMenu `_ widget can be used as a replacement of the ``tk_popup`` " +"command. The advantage of the :mod:`Tix` :class:`PopupMenu` widget is it " +"requires less application code to manipulate." msgstr "" #: ../../library/tkinter.tix.rst:196 msgid "" -"The `Select " -"`_ " -"widget is a container of button subwidgets. It can be used to provide radio-" -"box or check-box style of selection options for the user." +"The `Select `_ widget is a container of button subwidgets. It can be used " +"to provide radio-box or check-box style of selection options for the user." msgstr "" #: ../../library/tkinter.tix.rst:207 msgid "" -"The `StdButtonBox " -"`_" -" widget is a group of standard buttons for Motif-like dialog boxes." +"The `StdButtonBox `_ widget is a group of standard buttons for Motif-like " +"dialog boxes." msgstr "" #: ../../library/tkinter.tix.rst:216 @@ -237,66 +229,61 @@ msgstr "" #: ../../library/tkinter.tix.rst:221 msgid "" -"The `DirList " -"`_ " -"widget displays a list view of a directory, its previous directories and its" -" sub-directories. The user can choose one of the directories displayed in " -"the list or change to another directory." +"The `DirList `_ widget displays a list view of a directory, its previous " +"directories and its sub-directories. The user can choose one of the " +"directories displayed in the list or change to another directory." msgstr "" #: ../../library/tkinter.tix.rst:233 msgid "" -"The `DirTree " -"`_ " -"widget displays a tree view of a directory, its previous directories and its" -" sub-directories. The user can choose one of the directories displayed in " -"the list or change to another directory." +"The `DirTree `_ widget displays a tree view of a directory, its previous " +"directories and its sub-directories. The user can choose one of the " +"directories displayed in the list or change to another directory." msgstr "" #: ../../library/tkinter.tix.rst:245 msgid "" -"The `DirSelectDialog " -"`_" -" widget presents the directories in the file system in a dialog window. The" -" user can use this dialog window to navigate through the file system to " -"select the desired directory." +"The `DirSelectDialog `_ widget presents the directories in the file " +"system in a dialog window. The user can use this dialog window to navigate " +"through the file system to select the desired directory." msgstr "" #: ../../library/tkinter.tix.rst:257 msgid "" "The :class:`DirSelectBox` is similar to the standard Motif(TM) directory-" "selection box. It is generally used for the user to choose a directory. " -"DirSelectBox stores the directories mostly recently selected into a ComboBox" -" widget so that they can be quickly selected again." +"DirSelectBox stores the directories mostly recently selected into a ComboBox " +"widget so that they can be quickly selected again." msgstr "" #: ../../library/tkinter.tix.rst:265 msgid "" -"The `ExFileSelectBox " -"`_" -" widget is usually embedded in a tixExFileSelectDialog widget. It provides a" -" convenient method for the user to select files. The style of the " -":class:`ExFileSelectBox` widget is very similar to the standard file dialog " -"on MS Windows 3.1." +"The `ExFileSelectBox `_ widget is usually embedded in a " +"tixExFileSelectDialog widget. It provides a convenient method for the user " +"to select files. The style of the :class:`ExFileSelectBox` widget is very " +"similar to the standard file dialog on MS Windows 3.1." msgstr "" #: ../../library/tkinter.tix.rst:278 msgid "" -"The `FileSelectBox " -"`_" -" is similar to the standard Motif(TM) file-selection box. It is generally " -"used for the user to choose a file. FileSelectBox stores the files mostly " -"recently selected into a :class:`ComboBox` widget so that they can be " -"quickly selected again." +"The `FileSelectBox `_ is similar to the standard Motif(TM) file-selection " +"box. It is generally used for the user to choose a file. FileSelectBox " +"stores the files mostly recently selected into a :class:`ComboBox` widget so " +"that they can be quickly selected again." msgstr "" #: ../../library/tkinter.tix.rst:291 msgid "" -"The `FileEntry " -"`_" -" widget can be used to input a filename. The user can type in the filename " -"manually. Alternatively, the user can press the button widget that sits next" -" to the entry, which will bring up a file selection dialog." +"The `FileEntry `_ widget can be used to input a filename. The user can " +"type in the filename manually. Alternatively, the user can press the button " +"widget that sits next to the entry, which will bring up a file selection " +"dialog." msgstr "" #: ../../library/tkinter.tix.rst:302 @@ -305,28 +292,27 @@ msgstr "" #: ../../library/tkinter.tix.rst:307 msgid "" -"The `HList " -"`_ " -"widget can be used to display any data that have a hierarchical structure, " -"for example, file system directory trees. The list entries are indented and " -"connected by branch lines according to their places in the hierarchy." +"The `HList `_ widget can be used to display any data that have a hierarchical " +"structure, for example, file system directory trees. The list entries are " +"indented and connected by branch lines according to their places in the " +"hierarchy." msgstr "" #: ../../library/tkinter.tix.rst:319 msgid "" -"The `CheckList " -"`_" -" widget displays a list of items to be selected by the user. CheckList acts " -"similarly to the Tk checkbutton or radiobutton widgets, except it is capable" -" of handling many more items than checkbuttons or radiobuttons." +"The `CheckList `_ widget displays a list of items to be selected by the " +"user. CheckList acts similarly to the Tk checkbutton or radiobutton widgets, " +"except it is capable of handling many more items than checkbuttons or " +"radiobuttons." msgstr "" #: ../../library/tkinter.tix.rst:335 msgid "" -"The `Tree " -"`_ " -"widget can be used to display hierarchical data in a tree form. The user can" -" adjust the view of the tree by opening or closing parts of the tree." +"The `Tree `_ widget can be used to display hierarchical data in a tree form. The " +"user can adjust the view of the tree by opening or closing parts of the tree." msgstr "" #: ../../library/tkinter.tix.rst:347 @@ -335,13 +321,12 @@ msgstr "" #: ../../library/tkinter.tix.rst:352 msgid "" -"The `TList " -"`_ " -"widget can be used to display data in a tabular format. The list entries of " -"a :class:`TList` widget are similar to the entries in the Tk listbox widget." -" The main differences are (1) the :class:`TList` widget can display the " -"list entries in a two dimensional format and (2) you can use graphical " -"images as well as multiple colors and fonts for the list entries." +"The `TList `_ widget can be used to display data in a tabular format. The list " +"entries of a :class:`TList` widget are similar to the entries in the Tk " +"listbox widget. The main differences are (1) the :class:`TList` widget can " +"display the list entries in a two dimensional format and (2) you can use " +"graphical images as well as multiple colors and fonts for the list entries." msgstr "" #: ../../library/tkinter.tix.rst:375 @@ -350,34 +335,32 @@ msgstr "" #: ../../library/tkinter.tix.rst:380 msgid "" -"The `PanedWindow " -"`_" -" widget allows the user to interactively manipulate the sizes of several " -"panes. The panes can be arranged either vertically or horizontally. The " -"user changes the sizes of the panes by dragging the resize handle between " -"two panes." +"The `PanedWindow `_ widget allows the user to interactively manipulate the " +"sizes of several panes. The panes can be arranged either vertically or " +"horizontally. The user changes the sizes of the panes by dragging the " +"resize handle between two panes." msgstr "" #: ../../library/tkinter.tix.rst:392 msgid "" -"The `ListNoteBook " -"`_" -" widget is very similar to the :class:`TixNoteBook` widget: it can be used " -"to display many windows in a limited space using a notebook metaphor. The " -"notebook is divided into a stack of pages (windows). At one time only one of" -" these pages can be shown. The user can navigate through these pages by " -"choosing the name of the desired page in the :attr:`hlist` subwidget." +"The `ListNoteBook `_ widget is very similar to the :class:`TixNoteBook` " +"widget: it can be used to display many windows in a limited space using a " +"notebook metaphor. The notebook is divided into a stack of pages (windows). " +"At one time only one of these pages can be shown. The user can navigate " +"through these pages by choosing the name of the desired page in the :attr:" +"`hlist` subwidget." msgstr "" #: ../../library/tkinter.tix.rst:406 msgid "" -"The `NoteBook " -"`_ " -"widget can be used to display many windows in a limited space using a " -"notebook metaphor. The notebook is divided into a stack of pages. At one " -"time only one of these pages can be shown. The user can navigate through " -"these pages by choosing the visual \"tabs\" at the top of the NoteBook " -"widget." +"The `NoteBook `_ widget can be used to display many windows in a limited " +"space using a notebook metaphor. The notebook is divided into a stack of " +"pages. At one time only one of these pages can be shown. The user can " +"navigate through these pages by choosing the visual \"tabs\" at the top of " +"the NoteBook widget." msgstr "" #: ../../library/tkinter.tix.rst:428 @@ -390,17 +373,15 @@ msgstr "" #: ../../library/tkinter.tix.rst:432 msgid "" -"`pixmap " -"`_ " -"capabilities to all :mod:`tkinter.tix` and :mod:`tkinter` widgets to create " -"color images from XPM files." +"`pixmap `_ capabilities to all :mod:`tkinter.tix` and :mod:`tkinter` widgets to " +"create color images from XPM files." msgstr "" #: ../../library/tkinter.tix.rst:441 msgid "" -"`Compound " -"`_ " -"image types can be used to create images that consists of multiple " +"`Compound `_ image types can be used to create images that consists of multiple " "horizontal lines; each line is composed of a series of items (texts, " "bitmaps, images or spaces) arranged from left to right. For example, a " "compound image can be used to display a bitmap and a text string " @@ -413,10 +394,9 @@ msgstr "" #: ../../library/tkinter.tix.rst:465 msgid "" -"The `InputOnly " -"`_" -" widgets are to accept inputs from the user, which can be done with the " -"``bind`` command (Unix only)." +"The `InputOnly `_ widgets are to accept inputs from the user, which can be " +"done with the ``bind`` command (Unix only)." msgstr "" #: ../../library/tkinter.tix.rst:472 @@ -429,9 +409,8 @@ msgstr "" #: ../../library/tkinter.tix.rst:479 msgid "" -"The `Form " -"`_ " -"geometry manager based on attachment rules for all Tk widgets." +"The `Form `_ geometry manager based on attachment rules for all Tk widgets." msgstr "" #: ../../library/tkinter.tix.rst:485 @@ -440,12 +419,11 @@ msgstr "" #: ../../library/tkinter.tix.rst:490 msgid "" -"The `tix commands " -"`_ provide " -"access to miscellaneous elements of :mod:`Tix`'s internal state and the " -":mod:`Tix` application context. Most of the information manipulated by " -"these methods pertains to the application as a whole, or to a screen or " -"display, rather than to a particular window." +"The `tix commands `_ provide access to miscellaneous elements of :mod:`Tix`'s internal " +"state and the :mod:`Tix` application context. Most of the information " +"manipulated by these methods pertains to the application as a whole, or to a " +"screen or display, rather than to a particular window." msgstr "" #: ../../library/tkinter.tix.rst:497 @@ -454,9 +432,9 @@ msgstr "" #: ../../library/tkinter.tix.rst:506 msgid "" -"Query or modify the configuration options of the Tix application context. If" -" no option is specified, returns a dictionary all of the available options." -" If option is specified with no value, then the method returns a list " +"Query or modify the configuration options of the Tix application context. If " +"no option is specified, returns a dictionary all of the available options. " +"If option is specified with no value, then the method returns a list " "describing the one named option (this list will be identical to the " "corresponding sublist of the value returned if no option is specified). If " "one or more option-value pairs are specified, then the method modifies the " @@ -473,47 +451,46 @@ msgstr "" #: ../../library/tkinter.tix.rst:524 msgid "" "Locates a bitmap file of the name ``name.xpm`` or ``name`` in one of the " -"bitmap directories (see the :meth:`tix_addbitmapdir` method). By using " -":meth:`tix_getbitmap`, you can avoid hard coding the pathnames of the bitmap" -" files in your application. When successful, it returns the complete " -"pathname of the bitmap file, prefixed with the character ``@``. The " -"returned value can be used to configure the ``bitmap`` option of the Tk and " -"Tix widgets." +"bitmap directories (see the :meth:`tix_addbitmapdir` method). By using :" +"meth:`tix_getbitmap`, you can avoid hard coding the pathnames of the bitmap " +"files in your application. When successful, it returns the complete pathname " +"of the bitmap file, prefixed with the character ``@``. The returned value " +"can be used to configure the ``bitmap`` option of the Tk and Tix widgets." msgstr "" #: ../../library/tkinter.tix.rst:534 msgid "" -"Tix maintains a list of directories under which the :meth:`tix_getimage` and" -" :meth:`tix_getbitmap` methods will search for image files. The standard " -"bitmap directory is :file:`$TIX_LIBRARY/bitmaps`. The " -":meth:`tix_addbitmapdir` method adds *directory* into this list. By using " -"this method, the image files of an applications can also be located using " -"the :meth:`tix_getimage` or :meth:`tix_getbitmap` method." +"Tix maintains a list of directories under which the :meth:`tix_getimage` " +"and :meth:`tix_getbitmap` methods will search for image files. The standard " +"bitmap directory is :file:`$TIX_LIBRARY/bitmaps`. The :meth:" +"`tix_addbitmapdir` method adds *directory* into this list. By using this " +"method, the image files of an applications can also be located using the :" +"meth:`tix_getimage` or :meth:`tix_getbitmap` method." msgstr "" #: ../../library/tkinter.tix.rst:544 msgid "" "Returns the file selection dialog that may be shared among different calls " "from this application. This method will create a file selection dialog " -"widget when it is called the first time. This dialog will be returned by all" -" subsequent calls to :meth:`tix_filedialog`. An optional dlgclass parameter" -" can be passed as a string to specified what type of file selection dialog " +"widget when it is called the first time. This dialog will be returned by all " +"subsequent calls to :meth:`tix_filedialog`. An optional dlgclass parameter " +"can be passed as a string to specified what type of file selection dialog " "widget is desired. Possible options are ``tix``, ``FileSelectDialog`` or " "``tixExFileSelectDialog``." msgstr "" #: ../../library/tkinter.tix.rst:554 msgid "" -"Locates an image file of the name :file:`name.xpm`, :file:`name.xbm` or " -":file:`name.ppm` in one of the bitmap directories (see the " -":meth:`tix_addbitmapdir` method above). If more than one file with the same " -"name (but different extensions) exist, then the image type is chosen " -"according to the depth of the X display: xbm images are chosen on monochrome" -" displays and color images are chosen on color displays. By using " -":meth:`tix_getimage`, you can avoid hard coding the pathnames of the image " -"files in your application. When successful, this method returns the name of " -"the newly created image, which can be used to configure the ``image`` option" -" of the Tk and Tix widgets." +"Locates an image file of the name :file:`name.xpm`, :file:`name.xbm` or :" +"file:`name.ppm` in one of the bitmap directories (see the :meth:" +"`tix_addbitmapdir` method above). If more than one file with the same name " +"(but different extensions) exist, then the image type is chosen according to " +"the depth of the X display: xbm images are chosen on monochrome displays and " +"color images are chosen on color displays. By using :meth:`tix_getimage`, " +"you can avoid hard coding the pathnames of the image files in your " +"application. When successful, this method returns the name of the newly " +"created image, which can be used to configure the ``image`` option of the Tk " +"and Tix widgets." msgstr "" #: ../../library/tkinter.tix.rst:567 @@ -524,20 +501,20 @@ msgstr "" msgid "" "Resets the scheme and fontset of the Tix application to *newScheme* and " "*newFontSet*, respectively. This affects only those widgets created after " -"this call. Therefore, it is best to call the resetoptions method before the" -" creation of any widgets in a Tix application." +"this call. Therefore, it is best to call the resetoptions method before the " +"creation of any widgets in a Tix application." msgstr "" #: ../../library/tkinter.tix.rst:577 msgid "" -"The optional parameter *newScmPrio* can be given to reset the priority level" -" of the Tk options set by the Tix schemes." +"The optional parameter *newScmPrio* can be given to reset the priority level " +"of the Tk options set by the Tix schemes." msgstr "" #: ../../library/tkinter.tix.rst:580 msgid "" "Because of the way Tk handles the X option database, after Tix has been has " "imported and inited, it is not possible to reset the color schemes and font " -"sets using the :meth:`tix_config` method. Instead, the " -":meth:`tix_resetoptions` method must be used." +"sets using the :meth:`tix_config` method. Instead, the :meth:" +"`tix_resetoptions` method must be used." msgstr "" diff --git a/library/tkinter.ttk.po b/library/tkinter.ttk.po index 65909e3a0..11d9ac3cf 100644 --- a/library/tkinter.ttk.po +++ b/library/tkinter.ttk.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Misael borges , 2019 # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Philippe Gonzaga , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Philippe Gonzaga , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,9 +39,9 @@ msgid "" "The :mod:`tkinter.ttk` module provides access to the Tk themed widget set, " "introduced in Tk 8.5. If Python has not been compiled against Tk 8.5, this " "module can still be accessed if *Tile* has been installed. The former " -"method using Tk 8.5 provides additional benefits including anti-aliased font" -" rendering under X11 and window transparency (requiring a composition window" -" manager on X11)." +"method using Tk 8.5 provides additional benefits including anti-aliased font " +"rendering under X11 and window transparency (requiring a composition window " +"manager on X11)." msgstr "" #: ../../library/tkinter.ttk.rst:22 @@ -73,11 +75,11 @@ msgstr "" #: ../../library/tkinter.ttk.rst:45 msgid "" -"That code causes several :mod:`tkinter.ttk` widgets (:class:`Button`, " -":class:`Checkbutton`, :class:`Entry`, :class:`Frame`, :class:`Label`, " -":class:`LabelFrame`, :class:`Menubutton`, :class:`PanedWindow`, " -":class:`Radiobutton`, :class:`Scale` and :class:`Scrollbar`) to " -"automatically replace the Tk widgets." +"That code causes several :mod:`tkinter.ttk` widgets (:class:`Button`, :class:" +"`Checkbutton`, :class:`Entry`, :class:`Frame`, :class:`Label`, :class:" +"`LabelFrame`, :class:`Menubutton`, :class:`PanedWindow`, :class:" +"`Radiobutton`, :class:`Scale` and :class:`Scrollbar`) to automatically " +"replace the Tk widgets." msgstr "" #: ../../library/tkinter.ttk.rst:51 @@ -85,15 +87,15 @@ msgid "" "This has the direct benefit of using the new widgets which gives a better " "look and feel across platforms; however, the replacement widgets are not " "completely compatible. The main difference is that widget options such as " -"\"fg\", \"bg\" and others related to widget styling are no longer present in" -" Ttk widgets. Instead, use the :class:`ttk.Style` class for improved " +"\"fg\", \"bg\" and others related to widget styling are no longer present in " +"Ttk widgets. Instead, use the :class:`ttk.Style` class for improved " "styling effects." msgstr "" #: ../../library/tkinter.ttk.rst:62 msgid "" -"`Converting existing applications to use Tile widgets " -"`_" +"`Converting existing applications to use Tile widgets `_" msgstr "" #: ../../library/tkinter.ttk.rst:62 @@ -108,14 +110,13 @@ msgstr "" #: ../../library/tkinter.ttk.rst:69 msgid "" -"Ttk comes with 18 widgets, twelve of which already existed in tkinter: " -":class:`Button`, :class:`Checkbutton`, :class:`Entry`, :class:`Frame`, " -":class:`Label`, :class:`LabelFrame`, :class:`Menubutton`, " -":class:`PanedWindow`, :class:`Radiobutton`, :class:`Scale`, " -":class:`Scrollbar`, and :class:`Spinbox`. The other six are new: " -":class:`Combobox`, :class:`Notebook`, :class:`Progressbar`, " -":class:`Separator`, :class:`Sizegrip` and :class:`Treeview`. And all them " -"are subclasses of :class:`Widget`." +"Ttk comes with 18 widgets, twelve of which already existed in tkinter: :" +"class:`Button`, :class:`Checkbutton`, :class:`Entry`, :class:`Frame`, :class:" +"`Label`, :class:`LabelFrame`, :class:`Menubutton`, :class:`PanedWindow`, :" +"class:`Radiobutton`, :class:`Scale`, :class:`Scrollbar`, and :class:" +"`Spinbox`. The other six are new: :class:`Combobox`, :class:`Notebook`, :" +"class:`Progressbar`, :class:`Separator`, :class:`Sizegrip` and :class:" +"`Treeview`. And all them are subclasses of :class:`Widget`." msgstr "" #: ../../library/tkinter.ttk.rst:77 @@ -209,8 +210,8 @@ msgid "" "0, 1 or an empty string is returned. If 0 is returned, it means that the " "window should be skipped entirely during keyboard traversal. If 1, it means " "that the window should receive the input focus as long as it is viewable. " -"And an empty string means that the traversal scripts make the decision about" -" whether or not to focus on the window." +"And an empty string means that the traversal scripts make the decision about " +"whether or not to focus on the window." msgstr "" #: ../../library/tkinter.ttk.rst:134 @@ -258,8 +259,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:159 msgid "" -"Used to communicate with vertical scrollbars. For some more information, see" -" above." +"Used to communicate with vertical scrollbars. For some more information, see " +"above." msgstr "" #: ../../library/tkinter.ttk.rst:165 @@ -268,8 +269,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:167 msgid "" -"The following options are supported by labels, buttons and other button-like" -" widgets." +"The following options are supported by labels, buttons and other button-like " +"widgets." msgstr "" #: ../../library/tkinter.ttk.rst:175 ../../library/tkinter.ttk.rst:523 @@ -357,7 +358,7 @@ msgstr "" #: ../../library/tkinter.ttk.rst:211 msgid "Compatibility Options" -msgstr "" +msgstr "Opções de compatibilidade" #: ../../library/tkinter.ttk.rst:218 ../../library/tkinter.ttk.rst:334 #: ../../library/tkinter.ttk.rst:509 @@ -422,7 +423,9 @@ msgid "selected" msgstr "selecionado" #: ../../library/tkinter.ttk.rst:243 -msgid "\"On\", \"true\", or \"current\" for things like Checkbuttons and radiobuttons" +msgid "" +"\"On\", \"true\", or \"current\" for things like Checkbuttons and " +"radiobuttons" msgstr "" #: ../../library/tkinter.ttk.rst:246 ../../library/tkinter.ttk.rst:893 @@ -462,8 +465,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:258 msgid "" -"A state specification is a sequence of state names, optionally prefixed with" -" an exclamation point indicating that the bit is off." +"A state specification is a sequence of state names, optionally prefixed with " +"an exclamation point indicating that the bit is off." msgstr "" #: ../../library/tkinter.ttk.rst:263 @@ -488,18 +491,17 @@ msgstr "" #: ../../library/tkinter.ttk.rst:280 msgid "" -"Test the widget's state. If a callback is not specified, returns ``True`` if" -" the widget state matches *statespec* and ``False`` otherwise. If callback " -"is specified then it is called with args if widget state matches " -"*statespec*." +"Test the widget's state. If a callback is not specified, returns ``True`` if " +"the widget state matches *statespec* and ``False`` otherwise. If callback is " +"specified then it is called with args if widget state matches *statespec*." msgstr "" #: ../../library/tkinter.ttk.rst:288 msgid "" -"Modify or inquire widget state. If *statespec* is specified, sets the widget" -" state according to it and return a new *statespec* indicating which flags " -"were changed. If *statespec* is not specified, returns the currently-enabled" -" state flags." +"Modify or inquire widget state. If *statespec* is specified, sets the widget " +"state according to it and return a new *statespec* indicating which flags " +"were changed. If *statespec* is not specified, returns the currently-enabled " +"state flags." msgstr "" #: ../../library/tkinter.ttk.rst:293 @@ -518,13 +520,12 @@ msgstr "" #: ../../library/tkinter.ttk.rst:302 msgid "" -"Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`, " -":meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate` " -"and :meth:`Widget.state`, and the following inherited from :class:`Entry`: " -":meth:`Entry.bbox`, :meth:`Entry.delete`, :meth:`Entry.icursor`, " -":meth:`Entry.index`, :meth:`Entry.insert`, :meth:`Entry.selection`, " -":meth:`Entry.xview`, it has some other methods, described at " -":class:`ttk.Combobox`." +"Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`, :" +"meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate` " +"and :meth:`Widget.state`, and the following inherited from :class:`Entry`: :" +"meth:`Entry.bbox`, :meth:`Entry.delete`, :meth:`Entry.icursor`, :meth:`Entry." +"index`, :meth:`Entry.insert`, :meth:`Entry.selection`, :meth:`Entry.xview`, " +"it has some other methods, described at :class:`ttk.Combobox`." msgstr "" #: ../../library/tkinter.ttk.rst:312 ../../library/tkinter.ttk.rst:398 @@ -575,16 +576,16 @@ msgstr "" #: ../../library/tkinter.ttk.rst:330 msgid "" -"A script (possibly registered with Misc.register) that is called immediately" -" before displaying the values. It may specify which values to display." +"A script (possibly registered with Misc.register) that is called immediately " +"before displaying the values. It may specify which values to display." msgstr "" #: ../../library/tkinter.ttk.rst:334 msgid "" -"One of \"normal\", \"readonly\", or \"disabled\". In the \"readonly\" state," -" the value may not be edited directly, and the user can only selection of " -"the values from the dropdown list. In the \"normal\" state, the text field " -"is directly editable. In the \"disabled\" state, no interaction is possible." +"One of \"normal\", \"readonly\", or \"disabled\". In the \"readonly\" state, " +"the value may not be edited directly, and the user can only selection of the " +"values from the dropdown list. In the \"normal\" state, the text field is " +"directly editable. In the \"disabled\" state, no interaction is possible." msgstr "" #: ../../library/tkinter.ttk.rst:341 @@ -605,8 +606,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:349 msgid "" -"Specifies an integer value indicating the desired width of the entry window," -" in average-size characters of the widget's font." +"Specifies an integer value indicating the desired width of the entry window, " +"in average-size characters of the widget's font." msgstr "" #: ../../library/tkinter.ttk.rst:356 ../../library/tkinter.ttk.rst:444 @@ -615,8 +616,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:358 msgid "" -"The combobox widgets generates a **<>** virtual event when" -" the user selects an element from the list of values." +"The combobox widgets generates a **<>** virtual event when " +"the user selects an element from the list of values." msgstr "" #: ../../library/tkinter.ttk.rst:363 @@ -651,12 +652,12 @@ msgstr "" #: ../../library/tkinter.ttk.rst:390 msgid "" -"Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`, " -":meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate` " -"and :meth:`Widget.state`, and the following inherited from :class:`Entry`: " -":meth:`Entry.bbox`, :meth:`Entry.delete`, :meth:`Entry.icursor`, " -":meth:`Entry.index`, :meth:`Entry.insert`, :meth:`Entry.xview`, it has some " -"other methods, described at :class:`ttk.Spinbox`." +"Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`, :" +"meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate` " +"and :meth:`Widget.state`, and the following inherited from :class:`Entry`: :" +"meth:`Entry.bbox`, :meth:`Entry.delete`, :meth:`Entry.icursor`, :meth:`Entry." +"index`, :meth:`Entry.insert`, :meth:`Entry.xview`, it has some other " +"methods, described at :class:`ttk.Spinbox`." msgstr "" #: ../../library/tkinter.ttk.rst:407 @@ -703,8 +704,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:425 msgid "" -"Boolean value. If ``True``, increment and decrement buttons will cycle from" -" the ``to`` value to the ``from`` value or the ``from`` value to the ``to`` " +"Boolean value. If ``True``, increment and decrement buttons will cycle from " +"the ``to`` value to the ``from`` value or the ``from`` value to the ``to`` " "value, respectively." msgstr "" @@ -714,10 +715,9 @@ msgstr "formato" #: ../../library/tkinter.ttk.rst:430 msgid "" -"String value. This specifies the format of numbers set by the " -"increment/decrement buttons. It must be in the form \"%W.Pf\", where W is " -"the padded width of the value, P is the precision, and '%' and 'f' are " -"literal." +"String value. This specifies the format of numbers set by the increment/" +"decrement buttons. It must be in the form \"%W.Pf\", where W is the padded " +"width of the value, P is the precision, and '%' and 'f' are literal." msgstr "" #: ../../library/tkinter.ttk.rst:436 @@ -763,8 +763,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:483 msgid "" "If present and greater than zero, specifies the desired height of the pane " -"area (not including internal padding or tabs). Otherwise, the maximum height" -" of all panes is used." +"area (not including internal padding or tabs). Otherwise, the maximum height " +"of all panes is used." msgstr "" #: ../../library/tkinter.ttk.rst:487 ../../library/tkinter.ttk.rst:519 @@ -797,8 +797,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:509 msgid "" -"Either \"normal\", \"disabled\" or \"hidden\". If \"disabled\", then the tab" -" is not selectable. If \"hidden\", then the tab is not shown." +"Either \"normal\", \"disabled\" or \"hidden\". If \"disabled\", then the tab " +"is not selectable. If \"hidden\", then the tab is not shown." msgstr "" #: ../../library/tkinter.ttk.rst:513 @@ -808,9 +808,9 @@ msgstr "" #: ../../library/tkinter.ttk.rst:513 msgid "" "Specifies how the child window is positioned within the pane area. Value is " -"a string containing zero or more of the characters \"n\", \"s\", \"e\" or " -"\"w\". Each letter refers to a side (north, south, east or west) that the " -"child window will stick to, as per the :meth:`grid` geometry manager." +"a string containing zero or more of the characters \"n\", \"s\", \"e\" or \"w" +"\". Each letter refers to a side (north, south, east or west) that the child " +"window will stick to, as per the :meth:`grid` geometry manager." msgstr "" #: ../../library/tkinter.ttk.rst:519 @@ -825,8 +825,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:525 msgid "" -"Specifies an image to display in the tab. See the option image described in " -":class:`Widget`." +"Specifies an image to display in the tab. See the option image described in :" +"class:`Widget`." msgstr "" #: ../../library/tkinter.ttk.rst:528 @@ -838,8 +838,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:532 msgid "" "Specifies the index (0-based) of a character to underline in the text " -"string. The underlined character is used for mnemonic activation if " -":meth:`Notebook.enable_traversal` is called." +"string. The underlined character is used for mnemonic activation if :meth:" +"`Notebook.enable_traversal` is called." msgstr "" #: ../../library/tkinter.ttk.rst:540 @@ -861,7 +861,8 @@ msgid "The name of a child window" msgstr "" #: ../../library/tkinter.ttk.rst:547 -msgid "A positional specification of the form \"@x,y\", which identifies the tab" +msgid "" +"A positional specification of the form \"@x,y\", which identifies the tab" msgstr "" #: ../../library/tkinter.ttk.rst:548 @@ -871,8 +872,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:549 msgid "" -"The literal string \"end\", which returns the number of tabs (only valid for" -" :meth:`Notebook.index`)" +"The literal string \"end\", which returns the number of tabs (only valid " +"for :meth:`Notebook.index`)" msgstr "" #: ../../library/tkinter.ttk.rst:554 ../../library/tkinter.ttk.rst:927 @@ -881,8 +882,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:556 msgid "" -"This widget generates a **<>** virtual event after a new" -" tab is selected." +"This widget generates a **<>** virtual event after a new " +"tab is selected." msgstr "" #: ../../library/tkinter.ttk.rst:561 @@ -895,8 +896,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:569 msgid "" -"If window is currently managed by the notebook but hidden, it is restored to" -" its previous position." +"If window is currently managed by the notebook but hidden, it is restored to " +"its previous position." msgstr "" #: ../../library/tkinter.ttk.rst:572 ../../library/tkinter.ttk.rst:610 @@ -1011,9 +1012,9 @@ msgstr "" #: ../../library/tkinter.ttk.rst:656 msgid "" "The :class:`ttk.Progressbar` widget shows the status of a long-running " -"operation. It can operate in two modes: 1) the determinate mode which shows" -" the amount completed relative to the total amount of work to be done and 2)" -" the indeterminate mode which provides an animated display to let the user " +"operation. It can operate in two modes: 1) the determinate mode which shows " +"the amount completed relative to the total amount of work to be done and 2) " +"the indeterminate mode which provides an animated display to let the user " "know that work is progressing." msgstr "" @@ -1094,9 +1095,9 @@ msgstr "" #: ../../library/tkinter.ttk.rst:707 msgid "" -"Begin autoincrement mode: schedules a recurring timer event that calls " -":meth:`Progressbar.step` every *interval* milliseconds. If omitted, " -"*interval* defaults to 50 milliseconds." +"Begin autoincrement mode: schedules a recurring timer event that calls :meth:" +"`Progressbar.step` every *interval* milliseconds. If omitted, *interval* " +"defaults to 50 milliseconds." msgstr "" #: ../../library/tkinter.ttk.rst:714 @@ -1109,8 +1110,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:721 msgid "" -"Stop autoincrement mode: cancels any recurring timer event initiated by " -":meth:`Progressbar.start` for this progress bar." +"Stop autoincrement mode: cancels any recurring timer event initiated by :" +"meth:`Progressbar.start` for this progress bar." msgstr "" #: ../../library/tkinter.ttk.rst:726 @@ -1171,8 +1172,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:770 msgid "" -"If the containing toplevel's position was specified relative to the right or" -" bottom of the screen (e.g. ....), the :class:`Sizegrip` widget will not " +"If the containing toplevel's position was specified relative to the right or " +"bottom of the screen (e.g. ....), the :class:`Sizegrip` widget will not " "resize the window." msgstr "" @@ -1216,9 +1217,9 @@ msgstr "" #: ../../library/tkinter.ttk.rst:797 msgid "" -"The Treeview widget supports horizontal and vertical scrolling, according to" -" the options described in `Scrollable Widget Options`_ and the methods " -":meth:`Treeview.xview` and :meth:`Treeview.yview`." +"The Treeview widget supports horizontal and vertical scrolling, according to " +"the options described in `Scrollable Widget Options`_ and the methods :meth:" +"`Treeview.xview` and :meth:`Treeview.yview`." msgstr "" #: ../../library/tkinter.ttk.rst:812 @@ -1237,9 +1238,9 @@ msgstr "" #: ../../library/tkinter.ttk.rst:815 msgid "" -"A list of column identifiers (either symbolic or integer indices) specifying" -" which data columns are displayed and the order in which they appear, or the" -" string \"#all\"." +"A list of column identifiers (either symbolic or integer indices) specifying " +"which data columns are displayed and the order in which they appear, or the " +"string \"#all\"." msgstr "" #: ../../library/tkinter.ttk.rst:820 @@ -1306,8 +1307,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:855 msgid "" -"The following item options may be specified for items in the insert and item" -" widget commands." +"The following item options may be specified for items in the insert and item " +"widget commands." msgstr "" #: ../../library/tkinter.ttk.rst:863 @@ -1336,8 +1337,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:874 msgid "" -"True/False value indicating whether the item's children should be displayed " -"or hidden." +"``True``/``False`` value indicating whether the item's children should be " +"displayed or hidden." msgstr "" #: ../../library/tkinter.ttk.rst:877 @@ -1408,8 +1409,8 @@ msgstr "Notas:" #: ../../library/tkinter.ttk.rst:914 msgid "" -"Item's option values may be displayed in a different order than the order in" -" which they are stored." +"Item's option values may be displayed in a different order than the order in " +"which they are stored." msgstr "" #: ../../library/tkinter.ttk.rst:916 @@ -1498,8 +1499,8 @@ msgstr "" msgid "" "Children present in *item* that are not present in *newchildren* are " "detached from the tree. No items in *newchildren* may be an ancestor of " -"*item*. Note that not specifying *newchildren* results in detaching *item*'s" -" children." +"*item*. Note that not specifying *newchildren* results in detaching *item*'s " +"children." msgstr "" #: ../../library/tkinter.ttk.rst:983 @@ -1541,13 +1542,13 @@ msgstr "" #: ../../library/tkinter.ttk.rst:997 msgid "" -"The minimum width of the column in pixels. The treeview widget will not make" -" the column any smaller than specified by this option when the widget is " +"The minimum width of the column in pixels. The treeview widget will not make " +"the column any smaller than specified by this option when the widget is " "resized or the user drags a column." msgstr "" #: ../../library/tkinter.ttk.rst:1001 -msgid "stretch: True/False" +msgid "stretch: ``True``/``False``" msgstr "" #: ../../library/tkinter.ttk.rst:1001 @@ -1727,16 +1728,15 @@ msgstr "" #: ../../library/tkinter.ttk.rst:1111 msgid "" -"Creates a new item and returns the item identifier of the newly created " -"item." +"Creates a new item and returns the item identifier of the newly created item." msgstr "" #: ../../library/tkinter.ttk.rst:1114 msgid "" "*parent* is the item ID of the parent item, or the empty string to create a " "new top-level item. *index* is an integer, or the value \"end\", specifying " -"where in the list of parent's children to insert the new item. If *index* is" -" less than or equal to zero, the new node is inserted at the beginning; if " +"where in the list of parent's children to insert the new item. If *index* is " +"less than or equal to zero, the new node is inserted at the beginning; if " "*index* is greater than or equal to the current number of children, it is " "inserted at the end. If *iid* is specified, it is used as the item " "identifier; *iid* must not already exist in the tree. Otherwise, a new " @@ -1773,8 +1773,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:1148 msgid "" -"Returns the identifier of *item*'s next sibling, or '' if *item* is the last" -" child of its parent." +"Returns the identifier of *item*'s next sibling, or '' if *item* is the last " +"child of its parent." msgstr "" #: ../../library/tkinter.ttk.rst:1154 @@ -1800,8 +1800,7 @@ msgstr "" #: ../../library/tkinter.ttk.rst:1173 msgid "" "Sets all of *item*'s ancestors open option to ``True``, and scrolls the " -"widget if necessary so that *item* is within the visible portion of the " -"tree." +"widget if necessary so that *item* is within the visible portion of the tree." msgstr "" #: ../../library/tkinter.ttk.rst:1180 @@ -1848,8 +1847,8 @@ msgstr "" #: ../../library/tkinter.ttk.rst:1230 msgid "" -"Bind a callback for the given event *sequence* to the tag *tagname*. When an" -" event is delivered to an item, the callbacks for each of the item's tags " +"Bind a callback for the given event *sequence* to the tag *tagname*. When an " +"event is delivered to an item, the callbacks for each of the item's tags " "option are called." msgstr "" @@ -1861,8 +1860,8 @@ msgstr "" msgid "" "If *kw* is not given, returns a dict of the option settings for *tagname*. " "If *option* is specified, returns the value for that *option* for the " -"specified *tagname*. Otherwise, sets the options to the corresponding values" -" for the given *tagname*." +"specified *tagname*. Otherwise, sets the options to the corresponding values " +"for the given *tagname*." msgstr "" #: ../../library/tkinter.ttk.rst:1247 @@ -1894,8 +1893,8 @@ msgid "" "elements making up the widget and how they are arranged, along with dynamic " "and default settings for element options. By default the style name is the " "same as the widget's class name, but it may be overridden by the widget's " -"style option. If you don't know the class name of a widget, use the method " -":meth:`Misc.winfo_class` (somewidget.winfo_class())." +"style option. If you don't know the class name of a widget, use the method :" +"meth:`Misc.winfo_class` (somewidget.winfo_class())." msgstr "" #: ../../library/tkinter.ttk.rst:1278 @@ -1936,8 +1935,7 @@ msgstr "" msgid "" "Each key in *kw* is an option and each value should be a list or a tuple " "(usually) containing statespecs grouped in tuples, lists, or some other " -"preference. A statespec is a compound of one or more states and then a " -"value." +"preference. A statespec is a compound of one or more states and then a value." msgstr "" #: ../../library/tkinter.ttk.rst:1320 @@ -1977,8 +1975,8 @@ msgstr "" msgid "" "*layoutspec*, if specified, is expected to be a list or some other sequence " "type (excluding strings), where each item should be a tuple and the first " -"item is the layout name and the second item should have the format described" -" in `Layouts`_." +"item is the layout name and the second item should have the format described " +"in `Layouts`_." msgstr "" #: ../../library/tkinter.ttk.rst:1369 @@ -2076,8 +2074,8 @@ msgstr "" msgid "" "It is an error if *themename* already exists. If *parent* is specified, the " "new theme will inherit styles, elements and layouts from the parent theme. " -"If *settings* are present they are expected to have the same syntax used for" -" :meth:`theme_settings`." +"If *settings* are present they are expected to have the same syntax used " +"for :meth:`theme_settings`." msgstr "" #: ../../library/tkinter.ttk.rst:1454 @@ -2090,8 +2088,8 @@ msgstr "" msgid "" "Each key in *settings* is a style and each value may contain the keys " "'configure', 'map', 'layout' and 'element create' and they are expected to " -"have the same format as specified by the methods :meth:`Style.configure`, " -":meth:`Style.map`, :meth:`Style.layout` and :meth:`Style.element_create` " +"have the same format as specified by the methods :meth:`Style.configure`, :" +"meth:`Style.map`, :meth:`Style.layout` and :meth:`Style.element_create` " "respectively." msgstr "" diff --git a/library/token.po b/library/token.po index 2d7a5a2c9..754456afe 100644 --- a/library/token.po +++ b/library/token.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,10 +35,10 @@ msgstr "**Código Fonte:** :source:`Lib/token.py`" #: ../../library/token.rst:13 msgid "" "This module provides constants which represent the numeric values of leaf " -"nodes of the parse tree (terminal tokens). Refer to the file " -":file:`Grammar/Grammar` in the Python distribution for the definitions of " -"the names in the context of the language grammar. The specific numeric " -"values which the names map to may change between Python versions." +"nodes of the parse tree (terminal tokens). Refer to the file :file:`Grammar/" +"Grammar` in the Python distribution for the definitions of the names in the " +"context of the language grammar. The specific numeric values which the " +"names map to may change between Python versions." msgstr "" #: ../../library/token.rst:19 @@ -56,15 +58,15 @@ msgstr "" "representação mais legível de árvores de análise." #: ../../library/token.rst:32 -msgid "Return true for terminal token values." +msgid "Return ``True`` for terminal token values." msgstr "" #: ../../library/token.rst:37 -msgid "Return true for non-terminal token values." +msgid "Return ``True`` for non-terminal token values." msgstr "" #: ../../library/token.rst:42 -msgid "Return true if *x* is the marker indicating the end of input." +msgid "Return ``True`` if *x* is the marker indicating the end of input." msgstr "" #: ../../library/token.rst:45 @@ -83,16 +85,16 @@ msgstr "" #: ../../library/token.rst:116 msgid "" -"Token value used to indicate a non-terminating newline. The :data:`NEWLINE`" -" token indicates the end of a logical line of Python code; ``NL`` tokens are" -" generated when a logical line of code is continued over multiple physical " +"Token value used to indicate a non-terminating newline. The :data:`NEWLINE` " +"token indicates the end of a logical line of Python code; ``NL`` tokens are " +"generated when a logical line of code is continued over multiple physical " "lines." msgstr "" #: ../../library/token.rst:124 msgid "" -"Token value that indicates the encoding used to decode the source bytes into" -" text. The first token returned by :func:`tokenize.tokenize` will always be " +"Token value that indicates the encoding used to decode the source bytes into " +"text. The first token returned by :func:`tokenize.tokenize` will always be " "an ``ENCODING`` token." msgstr "" diff --git a/library/tokenize.po b/library/tokenize.po index c826576aa..5b799b88a 100644 --- a/library/tokenize.po +++ b/library/tokenize.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,18 +35,18 @@ msgstr "**Código Fonte:** :source:`Lib/tokenize.py`" #: ../../library/tokenize.rst:14 msgid "" "The :mod:`tokenize` module provides a lexical scanner for Python source " -"code, implemented in Python. The scanner in this module returns comments as" -" tokens as well, making it useful for implementing \"pretty-printers,\" " +"code, implemented in Python. The scanner in this module returns comments as " +"tokens as well, making it useful for implementing \"pretty-printers\", " "including colorizers for on-screen displays." msgstr "" #: ../../library/tokenize.rst:19 msgid "" -"To simplify token stream handling, all :ref:`operator ` and " -":ref:`delimiter ` tokens and :data:`Ellipsis` are returned using" -" the generic :data:`~token.OP` token type. The exact type can be determined" -" by checking the ``exact_type`` property on the :term:`named tuple` returned" -" from :func:`tokenize.tokenize`." +"To simplify token stream handling, all :ref:`operator ` and :ref:" +"`delimiter ` tokens and :data:`Ellipsis` are returned using the " +"generic :data:`~token.OP` token type. The exact type can be determined by " +"checking the ``exact_type`` property on the :term:`named tuple` returned " +"from :func:`tokenize.tokenize`." msgstr "" #: ../../library/tokenize.rst:26 @@ -58,9 +60,9 @@ msgstr "" #: ../../library/tokenize.rst:32 msgid "" "The :func:`.tokenize` generator requires one argument, *readline*, which " -"must be a callable object which provides the same interface as the " -":meth:`io.IOBase.readline` method of file objects. Each call to the " -"function should return one line of input as bytes." +"must be a callable object which provides the same interface as the :meth:`io." +"IOBase.readline` method of file objects. Each call to the function should " +"return one line of input as bytes." msgstr "" #: ../../library/tokenize.rst:37 @@ -69,8 +71,8 @@ msgid "" "token string; a 2-tuple ``(srow, scol)`` of ints specifying the row and " "column where the token begins in the source; a 2-tuple ``(erow, ecol)`` of " "ints specifying the row and column where the token ends in the source; and " -"the line on which the token was found. The line passed (the last tuple item)" -" is the *logical* line; continuation lines are included. The 5 tuple is " +"the line on which the token was found. The line passed (the last tuple item) " +"is the *logical* line; continuation lines are included. The 5 tuple is " "returned as a :term:`named tuple` with the field names: ``type string start " "end line``." msgstr "" @@ -99,8 +101,8 @@ msgstr "" #: ../../library/tokenize.rst:61 msgid "" -"All constants from the :mod:`token` module are also exported from " -":mod:`tokenize`." +"All constants from the :mod:`token` module are also exported from :mod:" +"`tokenize`." msgstr "" #: ../../library/tokenize.rst:64 @@ -122,8 +124,8 @@ msgid "" "The reconstructed script is returned as a single string. The result is " "guaranteed to tokenize back to match the input so that the conversion is " "lossless and round-trips are assured. The guarantee applies only to the " -"token type and token string as the spacing between tokens (column positions)" -" may change." +"token type and token string as the spacing between tokens (column positions) " +"may change." msgstr "" #: ../../library/tokenize.rst:81 @@ -134,8 +136,8 @@ msgstr "" #: ../../library/tokenize.rst:85 msgid "" -":func:`.tokenize` needs to detect the encoding of source files it tokenizes." -" The function it uses to do this is available:" +":func:`.tokenize` needs to detect the encoding of source files it tokenizes. " +"The function it uses to do this is available:" msgstr "" #: ../../library/tokenize.rst:90 @@ -147,8 +149,8 @@ msgstr "" #: ../../library/tokenize.rst:94 msgid "" -"It will call readline a maximum of twice, and return the encoding used (as a" -" string) and a list of any lines (not decoded from bytes) it has read in." +"It will call readline a maximum of twice, and return the encoding used (as a " +"string) and a list of any lines (not decoded from bytes) it has read in." msgstr "" #: ../../library/tokenize.rst:98 @@ -167,14 +169,14 @@ msgstr "" #: ../../library/tokenize.rst:106 msgid "" -"Use :func:`.open` to open Python source files: it uses " -":func:`detect_encoding` to detect the file encoding." +"Use :func:`.open` to open Python source files: it uses :func:" +"`detect_encoding` to detect the file encoding." msgstr "" #: ../../library/tokenize.rst:112 msgid "" -"Open a file in read only mode using the encoding detected by " -":func:`detect_encoding`." +"Open a file in read only mode using the encoding detected by :func:" +"`detect_encoding`." msgstr "" #: ../../library/tokenize.rst:119 @@ -189,8 +191,8 @@ msgstr "" #: ../../library/tokenize.rst:131 msgid "" -"Note that unclosed single-quoted strings do not cause an error to be raised." -" They are tokenized as :data:`~token.ERRORTOKEN`, followed by the " +"Note that unclosed single-quoted strings do not cause an error to be raised. " +"They are tokenized as :data:`~token.ERRORTOKEN`, followed by the " "tokenization of their contents." msgstr "" @@ -248,3 +250,13 @@ msgstr "" msgid "" "The exact token type names can be displayed using the :option:`-e` option:" msgstr "" + +#: ../../library/tokenize.rst:271 +msgid "" +"Example of tokenizing a file programmatically, reading unicode strings " +"instead of bytes with :func:`generate_tokens`::" +msgstr "" + +#: ../../library/tokenize.rst:281 +msgid "Or reading bytes directly with :func:`.tokenize`::" +msgstr "" diff --git a/library/trace.po b/library/trace.po index 89215479d..d8aefafd0 100644 --- a/library/trace.po +++ b/library/trace.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/trace.py`" #: ../../library/trace.rst:11 msgid "" "The :mod:`trace` module allows you to trace program execution, generate " -"annotated statement coverage listings, print caller/callee relationships and" -" list functions executed during a program run. It can be used in another " +"annotated statement coverage listings, print caller/callee relationships and " +"list functions executed during a program run. It can be used in another " "program or from the command line." msgstr "" @@ -78,18 +80,18 @@ msgstr "" #: ../../library/trace.rst:48 msgid "" -"At least one of the following options must be specified when invoking " -":mod:`trace`. The :option:`--listfuncs <-l>` option is mutually exclusive " -"with the :option:`--trace <-t>` and :option:`--count <-c>` options. When " -":option:`--listfuncs <-l>` is provided, neither :option:`--count <-c>` nor " -":option:`--trace <-t>` are accepted, and vice versa." +"At least one of the following options must be specified when invoking :mod:" +"`trace`. The :option:`--listfuncs <-l>` option is mutually exclusive with " +"the :option:`--trace <-t>` and :option:`--count <-c>` options. When :option:" +"`--listfuncs <-l>` is provided, neither :option:`--count <-c>` nor :option:" +"`--trace <-t>` are accepted, and vice versa." msgstr "" #: ../../library/trace.rst:58 msgid "" "Produce a set of annotated listing files upon program completion that shows " -"how many times each statement was executed. See also :option:`--coverdir " -"<-C>`, :option:`--file <-f>` and :option:`--no-report <-R>` below." +"how many times each statement was executed. See also :option:`--coverdir <-" +"C>`, :option:`--file <-f>` and :option:`--no-report <-R>` below." msgstr "" #: ../../library/trace.rst:65 @@ -102,9 +104,9 @@ msgstr "" #: ../../library/trace.rst:73 msgid "" -"Produce an annotated list from an earlier program run that used the " -":option:`--count <-c>` and :option:`--file <-f>` option. This does not " -"execute any code." +"Produce an annotated list from an earlier program run that used the :option:" +"`--count <-c>` and :option:`--file <-f>` option. This does not execute any " +"code." msgstr "" #: ../../library/trace.rst:79 @@ -123,9 +125,8 @@ msgstr "" #: ../../library/trace.rst:93 msgid "" -"Directory where the report files go. The coverage report for " -"``package.module`` is written to file " -":file:`{dir}/{package}/{module}.cover`." +"Directory where the report files go. The coverage report for ``package." +"module`` is written to file :file:`{dir}/{package}/{module}.cover`." msgstr "" #: ../../library/trace.rst:98 @@ -181,8 +182,8 @@ msgstr "" msgid "" "Create an object to trace execution of a single statement or expression. " "All parameters are optional. *count* enables counting of line numbers. " -"*trace* enables line execution tracing. *countfuncs* enables listing of the" -" functions called during the run. *countcallers* enables call relationship " +"*trace* enables line execution tracing. *countfuncs* enables listing of the " +"functions called during the run. *countcallers* enables call relationship " "tracking. *ignoremods* is a list of modules or packages to ignore. " "*ignoredirs* is a list of directories whose modules or packages should be " "ignored. *infile* is the name of the file from which to read stored count " @@ -194,8 +195,8 @@ msgstr "" #: ../../library/trace.rst:155 msgid "" "Execute the command and gather statistics from the execution with the " -"current tracing parameters. *cmd* must be a string or code object, suitable" -" for passing into :func:`exec`." +"current tracing parameters. *cmd* must be a string or code object, suitable " +"for passing into :func:`exec`." msgstr "" #: ../../library/trace.rst:161 @@ -214,9 +215,8 @@ msgstr "" #: ../../library/trace.rst:173 msgid "" "Return a :class:`CoverageResults` object that contains the cumulative " -"results of all previous calls to ``run``, ``runctx`` and ``runfunc`` for the" -" given :class:`Trace` instance. Does not reset the accumulated trace " -"results." +"results of all previous calls to ``run``, ``runctx`` and ``runfunc`` for the " +"given :class:`Trace` instance. Does not reset the accumulated trace results." msgstr "" #: ../../library/trace.rst:180 @@ -231,11 +231,11 @@ msgstr "" #: ../../library/trace.rst:189 msgid "" -"Write coverage results. Set *show_missing* to show lines that had no hits." -" Set *summary* to include in the output the coverage summary per module. " -"*coverdir* specifies the directory into which the coverage result files will" -" be output. If ``None``, the results for each source file are placed in its" -" directory." +"Write coverage results. Set *show_missing* to show lines that had no hits. " +"Set *summary* to include in the output the coverage summary per module. " +"*coverdir* specifies the directory into which the coverage result files will " +"be output. If ``None``, the results for each source file are placed in its " +"directory." msgstr "" #: ../../library/trace.rst:195 diff --git a/library/traceback.po b/library/traceback.po index 687720ae7..756c181cd 100644 --- a/library/traceback.po +++ b/library/traceback.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,8 +33,8 @@ msgstr "**Código Fonte:** :source:`Lib/traceback.py`" #: ../../library/traceback.rst:11 msgid "" -"This module provides a standard interface to extract, format and print stack" -" traces of Python programs. It exactly mimics the behavior of the Python " +"This module provides a standard interface to extract, format and print stack " +"traces of Python programs. It exactly mimics the behavior of the Python " "interpreter when it prints a stack trace. This is useful when you want to " "print stack traces under program control, such as in a \"wrapper\" around " "the interpreter." @@ -40,8 +42,8 @@ msgstr "" #: ../../library/traceback.rst:19 msgid "" -"The module uses traceback objects --- this is the object type that is stored" -" in the :data:`sys.last_traceback` variable and returned as the third item " +"The module uses traceback objects --- this is the object type that is stored " +"in the :data:`sys.last_traceback` variable and returned as the third item " "from :func:`sys.exc_info`." msgstr "" @@ -51,12 +53,12 @@ msgstr "O módulo define as seguintes funções:" #: ../../library/traceback.rst:28 msgid "" -"Print up to *limit* stack trace entries from traceback object *tb* (starting" -" from the caller's frame) if *limit* is positive. Otherwise, print the last" -" ``abs(limit)`` entries. If *limit* is omitted or ``None``, all entries are" -" printed. If *file* is omitted or ``None``, the output goes to " -"``sys.stderr``; otherwise it should be an open file or file-like object to " -"receive the output." +"Print up to *limit* stack trace entries from traceback object *tb* (starting " +"from the caller's frame) if *limit* is positive. Otherwise, print the last " +"``abs(limit)`` entries. If *limit* is omitted or ``None``, all entries are " +"printed. If *file* is omitted or ``None``, the output goes to ``sys." +"stderr``; otherwise it should be an open file or file-like object to receive " +"the output." msgstr "" #: ../../library/traceback.rst:35 ../../library/traceback.rst:89 @@ -89,10 +91,10 @@ msgstr "" #: ../../library/traceback.rst:56 msgid "" "The optional *limit* argument has the same meaning as for :func:`print_tb`. " -"If *chain* is true (the default), then chained exceptions (the " -":attr:`__cause__` or :attr:`__context__` attributes of the exception) will " -"be printed as well, like the interpreter itself does when printing an " -"unhandled exception." +"If *chain* is true (the default), then chained exceptions (the :attr:" +"`__cause__` or :attr:`__context__` attributes of the exception) will be " +"printed as well, like the interpreter itself does when printing an unhandled " +"exception." msgstr "" #: ../../library/traceback.rst:62 ../../library/traceback.rst:143 @@ -107,50 +109,49 @@ msgstr "" #: ../../library/traceback.rst:74 msgid "" -"This is a shorthand for ``print_exception(sys.last_type, sys.last_value, " -"sys.last_traceback, limit, file, chain)``. In general it will work only " -"after an exception has reached an interactive prompt (see " -":data:`sys.last_type`)." +"This is a shorthand for ``print_exception(sys.last_type, sys.last_value, sys." +"last_traceback, limit, file, chain)``. In general it will work only after " +"an exception has reached an interactive prompt (see :data:`sys.last_type`)." msgstr "" #: ../../library/traceback.rst:82 msgid "" -"Print up to *limit* stack trace entries (starting from the invocation point)" -" if *limit* is positive. Otherwise, print the last ``abs(limit)`` entries." -" If *limit* is omitted or ``None``, all entries are printed. The optional " -"*f* argument can be used to specify an alternate stack frame to start. The " +"Print up to *limit* stack trace entries (starting from the invocation point) " +"if *limit* is positive. Otherwise, print the last ``abs(limit)`` entries. " +"If *limit* is omitted or ``None``, all entries are printed. The optional *f* " +"argument can be used to specify an alternate stack frame to start. The " "optional *file* argument has the same meaning as for :func:`print_tb`." msgstr "" #: ../../library/traceback.rst:95 msgid "" -"Return a :class:`StackSummary` object representing a list of \"pre-" -"processed\" stack trace entries extracted from the traceback object *tb*. " -"It is useful for alternate formatting of stack traces. The optional *limit*" -" argument has the same meaning as for :func:`print_tb`. A \"pre-processed\"" -" stack trace entry is a :class:`FrameSummary` object containing attributes " -":attr:`~FrameSummary.filename`, :attr:`~FrameSummary.lineno`, " -":attr:`~FrameSummary.name`, and :attr:`~FrameSummary.line` representing the " -"information that is usually printed for a stack trace. The " -":attr:`~FrameSummary.line` is a string with leading and trailing whitespace " +"Return a :class:`StackSummary` object representing a list of \"pre-processed" +"\" stack trace entries extracted from the traceback object *tb*. It is " +"useful for alternate formatting of stack traces. The optional *limit* " +"argument has the same meaning as for :func:`print_tb`. A \"pre-processed\" " +"stack trace entry is a :class:`FrameSummary` object containing attributes :" +"attr:`~FrameSummary.filename`, :attr:`~FrameSummary.lineno`, :attr:" +"`~FrameSummary.name`, and :attr:`~FrameSummary.line` representing the " +"information that is usually printed for a stack trace. The :attr:" +"`~FrameSummary.line` is a string with leading and trailing whitespace " "stripped; if the source is not available it is ``None``." msgstr "" #: ../../library/traceback.rst:109 msgid "" "Extract the raw traceback from the current stack frame. The return value " -"has the same format as for :func:`extract_tb`. The optional *f* and *limit*" -" arguments have the same meaning as for :func:`print_stack`." +"has the same format as for :func:`extract_tb`. The optional *f* and *limit* " +"arguments have the same meaning as for :func:`print_stack`." msgstr "" #: ../../library/traceback.rst:116 msgid "" -"Given a list of tuples or :class:`FrameSummary` objects as returned by " -":func:`extract_tb` or :func:`extract_stack`, return a list of strings ready " -"for printing. Each string in the resulting list corresponds to the item " -"with the same index in the argument list. Each string ends in a newline; " -"the strings may contain internal newlines as well, for those items whose " -"source text line is not ``None``." +"Given a list of tuples or :class:`FrameSummary` objects as returned by :func:" +"`extract_tb` or :func:`extract_stack`, return a list of strings ready for " +"printing. Each string in the resulting list corresponds to the item with " +"the same index in the argument list. Each string ends in a newline; the " +"strings may contain internal newlines as well, for those items whose source " +"text line is not ``None``." msgstr "" #: ../../library/traceback.rst:126 @@ -166,9 +167,9 @@ msgstr "" #: ../../library/traceback.rst:137 msgid "" -"Format a stack trace and the exception information. The arguments have the" -" same meaning as the corresponding arguments to :func:`print_exception`. " -"The return value is a list of strings, each ending in a newline and some " +"Format a stack trace and the exception information. The arguments have the " +"same meaning as the corresponding arguments to :func:`print_exception`. The " +"return value is a list of strings, each ending in a newline and some " "containing internal newlines. When these lines are concatenated and " "printed, exactly the same text is printed as does :func:`print_exception`." msgstr "" @@ -195,8 +196,8 @@ msgstr "" #: ../../library/traceback.rst:171 msgid "" -"Walk a stack following ``f.f_back`` from the given frame, yielding the frame" -" and line number for each frame. If *f* is ``None``, the current stack is " +"Walk a stack following ``f.f_back`` from the given frame, yielding the frame " +"and line number for each frame. If *f* is ``None``, the current stack is " "used. This helper is used with :meth:`StackSummary.extract`." msgstr "" @@ -290,8 +291,8 @@ msgstr "" #: ../../library/traceback.rst:259 ../../library/traceback.rst:273 msgid "" -"The message indicating which exception occurred is always the last string in" -" the output." +"The message indicating which exception occurred is always the last string in " +"the output." msgstr "" #: ../../library/traceback.rst:264 @@ -304,9 +305,9 @@ msgstr "" #: ../../library/traceback.rst:268 msgid "" -"Normally, the generator emits a single string; however, for " -":exc:`SyntaxError` exceptions, it emits several lines that (when printed) " -"display detailed information about where the syntax error occurred." +"Normally, the generator emits a single string; however, for :exc:" +"`SyntaxError` exceptions, it emits several lines that (when printed) display " +"detailed information about where the syntax error occurred." msgstr "" #: ../../library/traceback.rst:278 @@ -326,19 +327,19 @@ msgstr "" #: ../../library/traceback.rst:292 msgid "" -"If *limit* is supplied, only this many frames are taken from *frame_gen*. If" -" *lookup_lines* is ``False``, the returned :class:`FrameSummary` objects " -"will not have read their lines in yet, making the cost of creating the " -":class:`StackSummary` cheaper (which may be valuable if it may not actually " -"get formatted). If *capture_locals* is ``True`` the local variables in each " -":class:`FrameSummary` are captured as object representations." +"If *limit* is supplied, only this many frames are taken from *frame_gen*. If " +"*lookup_lines* is ``False``, the returned :class:`FrameSummary` objects will " +"not have read their lines in yet, making the cost of creating the :class:" +"`StackSummary` cheaper (which may be valuable if it may not actually get " +"formatted). If *capture_locals* is ``True`` the local variables in each :" +"class:`FrameSummary` are captured as object representations." msgstr "" #: ../../library/traceback.rst:302 msgid "" -"Construct a :class:`StackSummary` object from a supplied list of " -":class:`FrameSummary` objects or old-style list of tuples. Each tuple " -"should be a 4-tuple with filename, lineno, name, line as the elements." +"Construct a :class:`StackSummary` object from a supplied list of :class:" +"`FrameSummary` objects or old-style list of tuples. Each tuple should be a " +"4-tuple with filename, lineno, name, line as the elements." msgstr "" #: ../../library/traceback.rst:308 @@ -351,8 +352,8 @@ msgstr "" #: ../../library/traceback.rst:313 msgid "" -"For long sequences of the same frame and line, the first few repetitions are" -" shown, followed by a summary line stating the exact number of further " +"For long sequences of the same frame and line, the first few repetitions are " +"shown, followed by a summary line stating the exact number of further " "repetitions." msgstr "" @@ -372,13 +373,13 @@ msgstr "" msgid "" "Represent a single frame in the traceback or stack that is being formatted " "or printed. It may optionally have a stringified version of the frames " -"locals included in it. If *lookup_line* is ``False``, the source code is not" -" looked up until the :class:`FrameSummary` has the " -":attr:`~FrameSummary.line` attribute accessed (which also happens when " -"casting it to a tuple). :attr:`~FrameSummary.line` may be directly provided," -" and will prevent line lookups happening at all. *locals* is an optional " -"local variable dictionary, and if supplied the variable representations are " -"stored in the summary for later display." +"locals included in it. If *lookup_line* is ``False``, the source code is not " +"looked up until the :class:`FrameSummary` has the :attr:`~FrameSummary.line` " +"attribute accessed (which also happens when casting it to a tuple). :attr:" +"`~FrameSummary.line` may be directly provided, and will prevent line lookups " +"happening at all. *locals* is an optional local variable dictionary, and if " +"supplied the variable representations are stored in the summary for later " +"display." msgstr "" #: ../../library/traceback.rst:343 @@ -387,10 +388,10 @@ msgstr "" #: ../../library/traceback.rst:345 msgid "" -"This simple example implements a basic read-eval-print loop, similar to (but" -" less useful than) the standard Python interactive interpreter loop. For a " -"more complete implementation of the interpreter loop, refer to the " -":mod:`code` module. ::" +"This simple example implements a basic read-eval-print loop, similar to (but " +"less useful than) the standard Python interactive interpreter loop. For a " +"more complete implementation of the interpreter loop, refer to the :mod:" +"`code` module. ::" msgstr "" #: ../../library/traceback.rst:367 diff --git a/library/tracemalloc.po b/library/tracemalloc.po index 079ab3924..d35a5057a 100644 --- a/library/tracemalloc.po +++ b/library/tracemalloc.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 # And Past , 2019 -# +# Rafael Fontenelle , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -59,16 +62,16 @@ msgid "" "To trace most memory blocks allocated by Python, the module should be " "started as early as possible by setting the :envvar:`PYTHONTRACEMALLOC` " "environment variable to ``1``, or by using :option:`-X` ``tracemalloc`` " -"command line option. The :func:`tracemalloc.start` function can be called at" -" runtime to start tracing Python memory allocations." +"command line option. The :func:`tracemalloc.start` function can be called at " +"runtime to start tracing Python memory allocations." msgstr "" #: ../../library/tracemalloc.rst:27 msgid "" -"By default, a trace of an allocated memory block only stores the most recent" -" frame (1 frame). To store 25 frames at startup: set the " -":envvar:`PYTHONTRACEMALLOC` environment variable to ``25``, or use the " -":option:`-X` ``tracemalloc=25`` command line option." +"By default, a trace of an allocated memory block only stores the most recent " +"frame (1 frame). To store 25 frames at startup: set the :envvar:" +"`PYTHONTRACEMALLOC` environment variable to ``25``, or use the :option:`-X` " +"``tracemalloc=25`` command line option." msgstr "" #: ../../library/tracemalloc.rst:34 @@ -83,18 +86,18 @@ msgstr "Exibe o top 10" msgid "Display the 10 files allocating the most memory::" msgstr "" -#: ../../library/tracemalloc.rst:55 ../../library/tracemalloc.rst:227 +#: ../../library/tracemalloc.rst:55 ../../library/tracemalloc.rst:225 msgid "Example of output of the Python test suite::" msgstr "" #: ../../library/tracemalloc.rst:69 msgid "" "We can see that Python loaded ``4855 KiB`` data (bytecode and constants) " -"from modules and that the :mod:`collections` module allocated ``244 KiB`` to" -" build :class:`~collections.namedtuple` types." +"from modules and that the :mod:`collections` module allocated ``244 KiB`` to " +"build :class:`~collections.namedtuple` types." msgstr "" -#: ../../library/tracemalloc.rst:73 ../../library/tracemalloc.rst:252 +#: ../../library/tracemalloc.rst:73 ../../library/tracemalloc.rst:250 msgid "See :meth:`Snapshot.statistics` for more options." msgstr "" @@ -115,15 +118,15 @@ msgstr "" msgid "" "We can see that Python has loaded ``8173 KiB`` of module data (bytecode and " "constants), and that this is ``4428 KiB`` more than had been loaded before " -"the tests, when the previous snapshot was taken. Similarly, the " -":mod:`linecache` module has cached ``940 KiB`` of Python source code to " -"format tracebacks, all of it since the previous snapshot." +"the tests, when the previous snapshot was taken. Similarly, the :mod:" +"`linecache` module has cached ``940 KiB`` of Python source code to format " +"tracebacks, all of it since the previous snapshot." msgstr "" #: ../../library/tracemalloc.rst:115 msgid "" -"If the system has little free memory, snapshots can be written on disk using" -" the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use " +"If the system has little free memory, snapshots can be written on disk using " +"the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use " "the :meth:`Snapshot.load` method reload the snapshot." msgstr "" @@ -137,14 +140,13 @@ msgstr "" #: ../../library/tracemalloc.rst:141 msgid "" -"Example of output of the Python test suite (traceback limited to 25 " -"frames)::" +"Example of output of the Python test suite (traceback limited to 25 frames)::" msgstr "" #: ../../library/tracemalloc.rst:178 msgid "" -"We can see that the most memory was allocated in the :mod:`importlib` module" -" to load data (bytecode and constants) from modules: ``870.1 KiB``. The " +"We can see that the most memory was allocated in the :mod:`importlib` module " +"to load data (bytecode and constants) from modules: ``870.1 KiB``. The " "traceback is where the :mod:`importlib` loaded data most recently: on the " "``import pdb`` line of the :mod:`doctest` module. The traceback may change " "if a new module is loaded." @@ -160,71 +162,70 @@ msgid "" "output, ignoring ```` and ```` files::" msgstr "" -#: ../../library/tracemalloc.rst:256 +#: ../../library/tracemalloc.rst:254 msgid "API" -msgstr "" +msgstr "API" -#: ../../library/tracemalloc.rst:259 +#: ../../library/tracemalloc.rst:257 msgid "Functions" msgstr "Funções" -#: ../../library/tracemalloc.rst:263 +#: ../../library/tracemalloc.rst:261 msgid "Clear traces of memory blocks allocated by Python." msgstr "" -#: ../../library/tracemalloc.rst:265 +#: ../../library/tracemalloc.rst:263 msgid "See also :func:`stop`." msgstr "" -#: ../../library/tracemalloc.rst:270 +#: ../../library/tracemalloc.rst:268 msgid "" -"Get the traceback where the Python object *obj* was allocated. Return a " -":class:`Traceback` instance, or ``None`` if the :mod:`tracemalloc` module is" -" not tracing memory allocations or did not trace the allocation of the " -"object." +"Get the traceback where the Python object *obj* was allocated. Return a :" +"class:`Traceback` instance, or ``None`` if the :mod:`tracemalloc` module is " +"not tracing memory allocations or did not trace the allocation of the object." msgstr "" -#: ../../library/tracemalloc.rst:275 +#: ../../library/tracemalloc.rst:273 msgid "See also :func:`gc.get_referrers` and :func:`sys.getsizeof` functions." msgstr "" -#: ../../library/tracemalloc.rst:280 +#: ../../library/tracemalloc.rst:278 msgid "Get the maximum number of frames stored in the traceback of a trace." msgstr "" -#: ../../library/tracemalloc.rst:282 +#: ../../library/tracemalloc.rst:280 msgid "" "The :mod:`tracemalloc` module must be tracing memory allocations to get the " "limit, otherwise an exception is raised." msgstr "" -#: ../../library/tracemalloc.rst:285 +#: ../../library/tracemalloc.rst:283 msgid "The limit is set by the :func:`start` function." msgstr "" -#: ../../library/tracemalloc.rst:290 +#: ../../library/tracemalloc.rst:288 msgid "" -"Get the current size and peak size of memory blocks traced by the " -":mod:`tracemalloc` module as a tuple: ``(current: int, peak: int)``." +"Get the current size and peak size of memory blocks traced by the :mod:" +"`tracemalloc` module as a tuple: ``(current: int, peak: int)``." msgstr "" -#: ../../library/tracemalloc.rst:296 +#: ../../library/tracemalloc.rst:294 msgid "" -"Get the memory usage in bytes of the :mod:`tracemalloc` module used to store" -" traces of memory blocks. Return an :class:`int`." +"Get the memory usage in bytes of the :mod:`tracemalloc` module used to store " +"traces of memory blocks. Return an :class:`int`." msgstr "" -#: ../../library/tracemalloc.rst:303 +#: ../../library/tracemalloc.rst:301 msgid "" "``True`` if the :mod:`tracemalloc` module is tracing Python memory " "allocations, ``False`` otherwise." msgstr "" -#: ../../library/tracemalloc.rst:306 +#: ../../library/tracemalloc.rst:304 msgid "See also :func:`start` and :func:`stop` functions." msgstr "" -#: ../../library/tracemalloc.rst:311 +#: ../../library/tracemalloc.rst:309 msgid "" "Start tracing Python memory allocations: install hooks on Python memory " "allocators. Collected tracebacks of traces will be limited to *nframe* " @@ -232,256 +233,254 @@ msgid "" "frame: the limit is ``1``. *nframe* must be greater or equal to ``1``." msgstr "" -#: ../../library/tracemalloc.rst:316 +#: ../../library/tracemalloc.rst:314 msgid "" "Storing more than ``1`` frame is only useful to compute statistics grouped " -"by ``'traceback'`` or to compute cumulative statistics: see the " -":meth:`Snapshot.compare_to` and :meth:`Snapshot.statistics` methods." +"by ``'traceback'`` or to compute cumulative statistics: see the :meth:" +"`Snapshot.compare_to` and :meth:`Snapshot.statistics` methods." msgstr "" -#: ../../library/tracemalloc.rst:320 +#: ../../library/tracemalloc.rst:318 msgid "" -"Storing more frames increases the memory and CPU overhead of the " -":mod:`tracemalloc` module. Use the :func:`get_tracemalloc_memory` function " -"to measure how much memory is used by the :mod:`tracemalloc` module." +"Storing more frames increases the memory and CPU overhead of the :mod:" +"`tracemalloc` module. Use the :func:`get_tracemalloc_memory` function to " +"measure how much memory is used by the :mod:`tracemalloc` module." msgstr "" -#: ../../library/tracemalloc.rst:324 +#: ../../library/tracemalloc.rst:322 msgid "" "The :envvar:`PYTHONTRACEMALLOC` environment variable " "(``PYTHONTRACEMALLOC=NFRAME``) and the :option:`-X` ``tracemalloc=NFRAME`` " "command line option can be used to start tracing at startup." msgstr "" -#: ../../library/tracemalloc.rst:328 +#: ../../library/tracemalloc.rst:326 msgid "" "See also :func:`stop`, :func:`is_tracing` and :func:`get_traceback_limit` " "functions." msgstr "" -#: ../../library/tracemalloc.rst:334 +#: ../../library/tracemalloc.rst:332 msgid "" "Stop tracing Python memory allocations: uninstall hooks on Python memory " "allocators. Also clears all previously collected traces of memory blocks " "allocated by Python." msgstr "" -#: ../../library/tracemalloc.rst:338 +#: ../../library/tracemalloc.rst:336 msgid "" "Call :func:`take_snapshot` function to take a snapshot of traces before " "clearing them." msgstr "" -#: ../../library/tracemalloc.rst:341 +#: ../../library/tracemalloc.rst:339 msgid "" "See also :func:`start`, :func:`is_tracing` and :func:`clear_traces` " "functions." msgstr "" -#: ../../library/tracemalloc.rst:347 +#: ../../library/tracemalloc.rst:345 msgid "" -"Take a snapshot of traces of memory blocks allocated by Python. Return a new" -" :class:`Snapshot` instance." +"Take a snapshot of traces of memory blocks allocated by Python. Return a " +"new :class:`Snapshot` instance." msgstr "" -#: ../../library/tracemalloc.rst:350 +#: ../../library/tracemalloc.rst:348 msgid "" -"The snapshot does not include memory blocks allocated before the " -":mod:`tracemalloc` module started to trace memory allocations." +"The snapshot does not include memory blocks allocated before the :mod:" +"`tracemalloc` module started to trace memory allocations." msgstr "" -#: ../../library/tracemalloc.rst:353 +#: ../../library/tracemalloc.rst:351 msgid "" "Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use " "the *nframe* parameter of the :func:`start` function to store more frames." msgstr "" -#: ../../library/tracemalloc.rst:356 +#: ../../library/tracemalloc.rst:354 msgid "" "The :mod:`tracemalloc` module must be tracing memory allocations to take a " "snapshot, see the :func:`start` function." msgstr "" -#: ../../library/tracemalloc.rst:359 +#: ../../library/tracemalloc.rst:357 msgid "See also the :func:`get_object_traceback` function." msgstr "" -#: ../../library/tracemalloc.rst:363 +#: ../../library/tracemalloc.rst:361 msgid "DomainFilter" msgstr "" -#: ../../library/tracemalloc.rst:367 +#: ../../library/tracemalloc.rst:365 msgid "Filter traces of memory blocks by their address space (domain)." msgstr "" -#: ../../library/tracemalloc.rst:373 +#: ../../library/tracemalloc.rst:371 msgid "" "If *inclusive* is ``True`` (include), match memory blocks allocated in the " "address space :attr:`domain`." msgstr "" -#: ../../library/tracemalloc.rst:376 +#: ../../library/tracemalloc.rst:374 msgid "" "If *inclusive* is ``False`` (exclude), match memory blocks not allocated in " "the address space :attr:`domain`." msgstr "" -#: ../../library/tracemalloc.rst:381 ../../library/tracemalloc.rst:633 +#: ../../library/tracemalloc.rst:379 ../../library/tracemalloc.rst:631 msgid "Address space of a memory block (``int``). Read-only property." msgstr "" -#: ../../library/tracemalloc.rst:385 +#: ../../library/tracemalloc.rst:383 msgid "Filter" msgstr "" -#: ../../library/tracemalloc.rst:389 +#: ../../library/tracemalloc.rst:387 msgid "Filter on traces of memory blocks." msgstr "" -#: ../../library/tracemalloc.rst:391 +#: ../../library/tracemalloc.rst:389 msgid "" "See the :func:`fnmatch.fnmatch` function for the syntax of " -"*filename_pattern*. The ``'.pyc'`` file extension is replaced with " -"``'.py'``." +"*filename_pattern*. The ``'.pyc'`` file extension is replaced with ``'.py'``." msgstr "" -#: ../../library/tracemalloc.rst:395 +#: ../../library/tracemalloc.rst:393 msgid "Examples:" msgstr "Exemplos:" -#: ../../library/tracemalloc.rst:397 +#: ../../library/tracemalloc.rst:395 msgid "" -"``Filter(True, subprocess.__file__)`` only includes traces of the " -":mod:`subprocess` module" +"``Filter(True, subprocess.__file__)`` only includes traces of the :mod:" +"`subprocess` module" msgstr "" -#: ../../library/tracemalloc.rst:399 +#: ../../library/tracemalloc.rst:397 msgid "" -"``Filter(False, tracemalloc.__file__)`` excludes traces of the " -":mod:`tracemalloc` module" +"``Filter(False, tracemalloc.__file__)`` excludes traces of the :mod:" +"`tracemalloc` module" msgstr "" -#: ../../library/tracemalloc.rst:401 +#: ../../library/tracemalloc.rst:399 msgid "``Filter(False, \"\")`` excludes empty tracebacks" msgstr "" -#: ../../library/tracemalloc.rst:404 +#: ../../library/tracemalloc.rst:402 msgid "The ``'.pyo'`` file extension is no longer replaced with ``'.py'``." msgstr "" -#: ../../library/tracemalloc.rst:407 ../../library/tracemalloc.rst:628 +#: ../../library/tracemalloc.rst:405 ../../library/tracemalloc.rst:626 msgid "Added the :attr:`domain` attribute." msgstr "" -#: ../../library/tracemalloc.rst:413 +#: ../../library/tracemalloc.rst:411 msgid "Address space of a memory block (``int`` or ``None``)." msgstr "" -#: ../../library/tracemalloc.rst:415 ../../library/tracemalloc.rst:635 +#: ../../library/tracemalloc.rst:413 ../../library/tracemalloc.rst:633 msgid "" "tracemalloc uses the domain ``0`` to trace memory allocations made by " "Python. C extensions can use other domains to trace other resources." msgstr "" -#: ../../library/tracemalloc.rst:420 +#: ../../library/tracemalloc.rst:418 msgid "" "If *inclusive* is ``True`` (include), only match memory blocks allocated in " -"a file with a name matching :attr:`filename_pattern` at line number " -":attr:`lineno`." +"a file with a name matching :attr:`filename_pattern` at line number :attr:" +"`lineno`." msgstr "" -#: ../../library/tracemalloc.rst:424 +#: ../../library/tracemalloc.rst:422 msgid "" "If *inclusive* is ``False`` (exclude), ignore memory blocks allocated in a " -"file with a name matching :attr:`filename_pattern` at line number " -":attr:`lineno`." +"file with a name matching :attr:`filename_pattern` at line number :attr:" +"`lineno`." msgstr "" -#: ../../library/tracemalloc.rst:430 +#: ../../library/tracemalloc.rst:428 msgid "" "Line number (``int``) of the filter. If *lineno* is ``None``, the filter " "matches any line number." msgstr "" -#: ../../library/tracemalloc.rst:435 +#: ../../library/tracemalloc.rst:433 msgid "Filename pattern of the filter (``str``). Read-only property." msgstr "" -#: ../../library/tracemalloc.rst:439 +#: ../../library/tracemalloc.rst:437 msgid "" "If *all_frames* is ``True``, all frames of the traceback are checked. If " "*all_frames* is ``False``, only the most recent frame is checked." msgstr "" -#: ../../library/tracemalloc.rst:442 +#: ../../library/tracemalloc.rst:440 msgid "" -"This attribute has no effect if the traceback limit is ``1``. See the " -":func:`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` " +"This attribute has no effect if the traceback limit is ``1``. See the :func:" +"`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` " "attribute." msgstr "" -#: ../../library/tracemalloc.rst:448 +#: ../../library/tracemalloc.rst:446 msgid "Frame" msgstr "Frame" -#: ../../library/tracemalloc.rst:452 +#: ../../library/tracemalloc.rst:450 msgid "Frame of a traceback." msgstr "Frame de um Traceback" -#: ../../library/tracemalloc.rst:454 -msgid "" -"The :class:`Traceback` class is a sequence of :class:`Frame` instances." +#: ../../library/tracemalloc.rst:452 +msgid "The :class:`Traceback` class is a sequence of :class:`Frame` instances." msgstr "" -#: ../../library/tracemalloc.rst:458 +#: ../../library/tracemalloc.rst:456 msgid "Filename (``str``)." msgstr "Filename (``str``)." -#: ../../library/tracemalloc.rst:462 +#: ../../library/tracemalloc.rst:460 msgid "Line number (``int``)." msgstr "Número da linha (``int``)." -#: ../../library/tracemalloc.rst:466 +#: ../../library/tracemalloc.rst:464 msgid "Snapshot" msgstr "Snapshot" -#: ../../library/tracemalloc.rst:470 +#: ../../library/tracemalloc.rst:468 msgid "Snapshot of traces of memory blocks allocated by Python." msgstr "" -#: ../../library/tracemalloc.rst:472 +#: ../../library/tracemalloc.rst:470 msgid "The :func:`take_snapshot` function creates a snapshot instance." msgstr "" -#: ../../library/tracemalloc.rst:476 +#: ../../library/tracemalloc.rst:474 msgid "" "Compute the differences with an old snapshot. Get statistics as a sorted " "list of :class:`StatisticDiff` instances grouped by *key_type*." msgstr "" -#: ../../library/tracemalloc.rst:479 +#: ../../library/tracemalloc.rst:477 msgid "" "See the :meth:`Snapshot.statistics` method for *key_type* and *cumulative* " "parameters." msgstr "" -#: ../../library/tracemalloc.rst:482 +#: ../../library/tracemalloc.rst:480 msgid "" -"The result is sorted from the biggest to the smallest by: absolute value of " -":attr:`StatisticDiff.size_diff`, :attr:`StatisticDiff.size`, absolute value " -"of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by " -":attr:`StatisticDiff.traceback`." +"The result is sorted from the biggest to the smallest by: absolute value of :" +"attr:`StatisticDiff.size_diff`, :attr:`StatisticDiff.size`, absolute value " +"of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by :" +"attr:`StatisticDiff.traceback`." msgstr "" -#: ../../library/tracemalloc.rst:490 +#: ../../library/tracemalloc.rst:488 msgid "Write the snapshot into a file." msgstr "" -#: ../../library/tracemalloc.rst:492 +#: ../../library/tracemalloc.rst:490 msgid "Use :meth:`load` to reload the snapshot." msgstr "" -#: ../../library/tracemalloc.rst:497 +#: ../../library/tracemalloc.rst:495 msgid "" "Create a new :class:`Snapshot` instance with a filtered :attr:`traces` " "sequence, *filters* is a list of :class:`DomainFilter` and :class:`Filter` " @@ -489,247 +488,246 @@ msgid "" "instance with a copy of the traces." msgstr "" -#: ../../library/tracemalloc.rst:502 +#: ../../library/tracemalloc.rst:500 msgid "" "All inclusive filters are applied at once, a trace is ignored if no " "inclusive filters match it. A trace is ignored if at least one exclusive " "filter matches it." msgstr "" -#: ../../library/tracemalloc.rst:506 +#: ../../library/tracemalloc.rst:504 msgid ":class:`DomainFilter` instances are now also accepted in *filters*." msgstr "" -#: ../../library/tracemalloc.rst:512 +#: ../../library/tracemalloc.rst:510 msgid "Load a snapshot from a file." msgstr "" -#: ../../library/tracemalloc.rst:514 +#: ../../library/tracemalloc.rst:512 msgid "See also :meth:`dump`." msgstr "" -#: ../../library/tracemalloc.rst:519 +#: ../../library/tracemalloc.rst:517 msgid "" "Get statistics as a sorted list of :class:`Statistic` instances grouped by " "*key_type*:" msgstr "" -#: ../../library/tracemalloc.rst:523 +#: ../../library/tracemalloc.rst:521 msgid "key_type" msgstr "" -#: ../../library/tracemalloc.rst:523 +#: ../../library/tracemalloc.rst:521 msgid "description" msgstr "description" -#: ../../library/tracemalloc.rst:525 +#: ../../library/tracemalloc.rst:523 msgid "``'filename'``" -msgstr "" +msgstr "``'filename'``" -#: ../../library/tracemalloc.rst:525 +#: ../../library/tracemalloc.rst:523 msgid "filename" msgstr "" -#: ../../library/tracemalloc.rst:526 +#: ../../library/tracemalloc.rst:524 msgid "``'lineno'``" -msgstr "" +msgstr "``'lineno'``" -#: ../../library/tracemalloc.rst:526 +#: ../../library/tracemalloc.rst:524 msgid "filename and line number" msgstr "" -#: ../../library/tracemalloc.rst:527 +#: ../../library/tracemalloc.rst:525 msgid "``'traceback'``" -msgstr "" +msgstr "``'traceback'``" -#: ../../library/tracemalloc.rst:527 +#: ../../library/tracemalloc.rst:525 msgid "traceback" msgstr "traceback" -#: ../../library/tracemalloc.rst:530 +#: ../../library/tracemalloc.rst:528 msgid "" -"If *cumulative* is ``True``, cumulate size and count of memory blocks of all" -" frames of the traceback of a trace, not only the most recent frame. The " +"If *cumulative* is ``True``, cumulate size and count of memory blocks of all " +"frames of the traceback of a trace, not only the most recent frame. The " "cumulative mode can only be used with *key_type* equals to ``'filename'`` " "and ``'lineno'``." msgstr "" -#: ../../library/tracemalloc.rst:535 +#: ../../library/tracemalloc.rst:533 msgid "" -"The result is sorted from the biggest to the smallest by: " -":attr:`Statistic.size`, :attr:`Statistic.count` and then by " -":attr:`Statistic.traceback`." +"The result is sorted from the biggest to the smallest by: :attr:`Statistic." +"size`, :attr:`Statistic.count` and then by :attr:`Statistic.traceback`." msgstr "" -#: ../../library/tracemalloc.rst:542 +#: ../../library/tracemalloc.rst:540 msgid "" "Maximum number of frames stored in the traceback of :attr:`traces`: result " "of the :func:`get_traceback_limit` when the snapshot was taken." msgstr "" -#: ../../library/tracemalloc.rst:547 +#: ../../library/tracemalloc.rst:545 msgid "" "Traces of all memory blocks allocated by Python: sequence of :class:`Trace` " "instances." msgstr "" -#: ../../library/tracemalloc.rst:550 +#: ../../library/tracemalloc.rst:548 msgid "" "The sequence has an undefined order. Use the :meth:`Snapshot.statistics` " "method to get a sorted list of statistics." msgstr "" -#: ../../library/tracemalloc.rst:555 +#: ../../library/tracemalloc.rst:553 msgid "Statistic" msgstr "" -#: ../../library/tracemalloc.rst:559 +#: ../../library/tracemalloc.rst:557 msgid "Statistic on memory allocations." msgstr "" -#: ../../library/tracemalloc.rst:561 +#: ../../library/tracemalloc.rst:559 msgid "" ":func:`Snapshot.statistics` returns a list of :class:`Statistic` instances." msgstr "" -#: ../../library/tracemalloc.rst:563 +#: ../../library/tracemalloc.rst:561 msgid "See also the :class:`StatisticDiff` class." msgstr "" -#: ../../library/tracemalloc.rst:567 +#: ../../library/tracemalloc.rst:565 msgid "Number of memory blocks (``int``)." msgstr "" -#: ../../library/tracemalloc.rst:571 +#: ../../library/tracemalloc.rst:569 msgid "Total size of memory blocks in bytes (``int``)." msgstr "" -#: ../../library/tracemalloc.rst:575 ../../library/tracemalloc.rst:644 +#: ../../library/tracemalloc.rst:573 ../../library/tracemalloc.rst:642 msgid "" "Traceback where the memory block was allocated, :class:`Traceback` instance." msgstr "" -#: ../../library/tracemalloc.rst:580 +#: ../../library/tracemalloc.rst:578 msgid "StatisticDiff" msgstr "" -#: ../../library/tracemalloc.rst:584 +#: ../../library/tracemalloc.rst:582 msgid "" -"Statistic difference on memory allocations between an old and a new " -":class:`Snapshot` instance." +"Statistic difference on memory allocations between an old and a new :class:" +"`Snapshot` instance." msgstr "" -#: ../../library/tracemalloc.rst:587 +#: ../../library/tracemalloc.rst:585 msgid "" ":func:`Snapshot.compare_to` returns a list of :class:`StatisticDiff` " "instances. See also the :class:`Statistic` class." msgstr "" -#: ../../library/tracemalloc.rst:592 +#: ../../library/tracemalloc.rst:590 msgid "" "Number of memory blocks in the new snapshot (``int``): ``0`` if the memory " "blocks have been released in the new snapshot." msgstr "" -#: ../../library/tracemalloc.rst:597 +#: ../../library/tracemalloc.rst:595 msgid "" "Difference of number of memory blocks between the old and the new snapshots " "(``int``): ``0`` if the memory blocks have been allocated in the new " "snapshot." msgstr "" -#: ../../library/tracemalloc.rst:603 +#: ../../library/tracemalloc.rst:601 msgid "" -"Total size of memory blocks in bytes in the new snapshot (``int``): ``0`` if" -" the memory blocks have been released in the new snapshot." +"Total size of memory blocks in bytes in the new snapshot (``int``): ``0`` if " +"the memory blocks have been released in the new snapshot." msgstr "" -#: ../../library/tracemalloc.rst:608 +#: ../../library/tracemalloc.rst:606 msgid "" "Difference of total size of memory blocks in bytes between the old and the " "new snapshots (``int``): ``0`` if the memory blocks have been allocated in " "the new snapshot." msgstr "" -#: ../../library/tracemalloc.rst:614 +#: ../../library/tracemalloc.rst:612 msgid "" "Traceback where the memory blocks were allocated, :class:`Traceback` " "instance." msgstr "" -#: ../../library/tracemalloc.rst:619 +#: ../../library/tracemalloc.rst:617 msgid "Trace" msgstr "" -#: ../../library/tracemalloc.rst:623 +#: ../../library/tracemalloc.rst:621 msgid "Trace of a memory block." msgstr "" -#: ../../library/tracemalloc.rst:625 +#: ../../library/tracemalloc.rst:623 msgid "" "The :attr:`Snapshot.traces` attribute is a sequence of :class:`Trace` " "instances." msgstr "" -#: ../../library/tracemalloc.rst:640 +#: ../../library/tracemalloc.rst:638 msgid "Size of the memory block in bytes (``int``)." msgstr "" -#: ../../library/tracemalloc.rst:649 +#: ../../library/tracemalloc.rst:647 msgid "Traceback" msgstr "" -#: ../../library/tracemalloc.rst:653 +#: ../../library/tracemalloc.rst:651 msgid "" "Sequence of :class:`Frame` instances sorted from the oldest frame to the " "most recent frame." msgstr "" -#: ../../library/tracemalloc.rst:656 +#: ../../library/tracemalloc.rst:654 msgid "" "A traceback contains at least ``1`` frame. If the ``tracemalloc`` module " "failed to get a frame, the filename ``\"\"`` at line number ``0`` " "is used." msgstr "" -#: ../../library/tracemalloc.rst:660 +#: ../../library/tracemalloc.rst:658 msgid "" -"When a snapshot is taken, tracebacks of traces are limited to " -":func:`get_traceback_limit` frames. See the :func:`take_snapshot` function." +"When a snapshot is taken, tracebacks of traces are limited to :func:" +"`get_traceback_limit` frames. See the :func:`take_snapshot` function." msgstr "" -#: ../../library/tracemalloc.rst:663 +#: ../../library/tracemalloc.rst:661 msgid "" "The :attr:`Trace.traceback` attribute is an instance of :class:`Traceback` " "instance." msgstr "" -#: ../../library/tracemalloc.rst:666 +#: ../../library/tracemalloc.rst:664 msgid "" "Frames are now sorted from the oldest to the most recent, instead of most " "recent to oldest." msgstr "" -#: ../../library/tracemalloc.rst:671 +#: ../../library/tracemalloc.rst:669 msgid "" -"Format the traceback as a list of lines with newlines. Use the " -":mod:`linecache` module to retrieve lines from the source code. If *limit* " -"is set, format the *limit* most recent frames if *limit* is positive. " +"Format the traceback as a list of lines with newlines. Use the :mod:" +"`linecache` module to retrieve lines from the source code. If *limit* is " +"set, format the *limit* most recent frames if *limit* is positive. " "Otherwise, format the ``abs(limit)`` oldest frames. If *most_recent_first* " "is ``True``, the order of the formatted frames is reversed, returning the " "most recent frame first instead of last." msgstr "" -#: ../../library/tracemalloc.rst:678 +#: ../../library/tracemalloc.rst:676 msgid "" -"Similar to the :func:`traceback.format_tb` function, except that " -":meth:`.format` does not include newlines." +"Similar to the :func:`traceback.format_tb` function, except that :meth:`." +"format` does not include newlines." msgstr "" -#: ../../library/tracemalloc.rst:681 +#: ../../library/tracemalloc.rst:679 msgid "Example::" msgstr "Exemplo::" -#: ../../library/tracemalloc.rst:687 +#: ../../library/tracemalloc.rst:685 msgid "Output::" msgstr "Saída::" diff --git a/library/tty.po b/library/tty.po index 00ebb3544..df0180781 100644 --- a/library/tty.po +++ b/library/tty.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +25,7 @@ msgstr "" #: ../../library/tty.rst:2 msgid ":mod:`tty` --- Terminal control functions" -msgstr "" +msgstr ":mod:`tty` --- Funções de controle de terminal" #: ../../library/tty.rst:11 msgid "**Source code:** :source:`Lib/tty.py`" @@ -34,34 +36,42 @@ msgid "" "The :mod:`tty` module defines functions for putting the tty into cbreak and " "raw modes." msgstr "" +"O módulo :mod:`tty` define funções para colocar o tty nos modos de cbreak e " +"não tratados (raw)." #: ../../library/tty.rst:18 msgid "" "Because it requires the :mod:`termios` module, it will work only on Unix." -msgstr "" +msgstr "Por requerer o módulo :mod:`termios`, ele funcionará apenas no Unix." #: ../../library/tty.rst:20 msgid "The :mod:`tty` module defines the following functions:" -msgstr "" +msgstr "O módulo :mod:`tty` define as seguintes funções:" #: ../../library/tty.rst:25 msgid "" -"Change the mode of the file descriptor *fd* to raw. If *when* is omitted, it" -" defaults to :const:`termios.TCSAFLUSH`, and is passed to " -":func:`termios.tcsetattr`." +"Change the mode of the file descriptor *fd* to raw. If *when* is omitted, it " +"defaults to :const:`termios.TCSAFLUSH`, and is passed to :func:`termios." +"tcsetattr`." msgstr "" +"Altera o modo do descritor de arquivo *fd* para não tratado (raw). Se *when* " +"for omitido, o padrão é :const:`termios.TCSAFLUSH` e é passado para :func:" +"`termios.tcsetattr`." #: ../../library/tty.rst:32 msgid "" "Change the mode of file descriptor *fd* to cbreak. If *when* is omitted, it " -"defaults to :const:`termios.TCSAFLUSH`, and is passed to " -":func:`termios.tcsetattr`." +"defaults to :const:`termios.TCSAFLUSH`, and is passed to :func:`termios." +"tcsetattr`." msgstr "" +"Altera o modo do descritor de arquivo *fd* para cbreak. Se *when* for " +"omitido, o padrão é :const:`termios.TCSAFLUSH` e é passado para :func:" +"`termios.tcsetattr`." #: ../../library/tty.rst:39 msgid "Module :mod:`termios`" -msgstr "" +msgstr "Módulo :mod:`termios`" #: ../../library/tty.rst:40 msgid "Low-level terminal control interface." -msgstr "" +msgstr "Interface baixo nível para controle de terminal." diff --git a/library/turtle.po b/library/turtle.po index bb60dccea..7413d64ed 100644 --- a/library/turtle.po +++ b/library/turtle.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Ruan Aragão , 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Andre Melzi , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-02 11:35+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,14 +43,17 @@ msgid "" "was part of the original Logo programming language developed by Wally " "Feurzeig, Seymour Papert and Cynthia Solomon in 1967." msgstr "" +"Gráficos turtle é uma forma popular de introduzir programação para " +"crianças. Era parte da linguagem de programção Logo desenvolvida por Wally " +"Feuzeig, Seymour Papert and Cynthia Solomon em 1967." #: ../../library/turtle.rst:26 msgid "" "Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an " "``import turtle``, give it the command ``turtle.forward(15)``, and it moves " "(on-screen!) 15 pixels in the direction it is facing, drawing a line as it " -"moves. Give it the command ``turtle.right(25)``, and it rotates in-place 25" -" degrees clockwise." +"moves. Give it the command ``turtle.right(25)``, and it rotates in-place 25 " +"degrees clockwise." msgstr "" "Imagine uma tartaruga robótica começando em (0, 0) no plano x-y. Depois de " "um \"import turtle\", dê-lhe o comando ``turtle.forward(15)``, e mova (na " @@ -68,8 +73,8 @@ msgid "" "By combining together these and similar commands, intricate shapes and " "pictures can easily be drawn." msgstr "" -"Ao combinar esses comandos similares, formas intrincadas e imagens podem ser" -" desenhadas facilmente." +"Ao combinar esses comandos similares, formas intrincadas e imagens podem ser " +"desenhadas facilmente." #: ../../library/turtle.rst:44 msgid "" @@ -79,8 +84,8 @@ msgstr "" #: ../../library/turtle.rst:47 msgid "" -"It tries to keep the merits of the old turtle module and to be (nearly) 100%" -" compatible with it. This means in the first place to enable the learning " +"It tries to keep the merits of the old turtle module and to be (nearly) 100% " +"compatible with it. This means in the first place to enable the learning " "programmer to use all the commands, classes and methods interactively when " "using the module from within IDLE run with the ``-n`` switch." msgstr "" @@ -99,18 +104,18 @@ msgstr "" #: ../../library/turtle.rst:58 msgid "" -"The :class:`TurtleScreen` class defines graphics windows as a playground for" -" the drawing turtles. Its constructor needs a :class:`tkinter.Canvas` or a " -":class:`ScrolledCanvas` as argument. It should be used when :mod:`turtle` " -"is used as part of some application." +"The :class:`TurtleScreen` class defines graphics windows as a playground for " +"the drawing turtles. Its constructor needs a :class:`tkinter.Canvas` or a :" +"class:`ScrolledCanvas` as argument. It should be used when :mod:`turtle` is " +"used as part of some application." msgstr "" #: ../../library/turtle.rst:63 msgid "" -"The function :func:`Screen` returns a singleton object of a " -":class:`TurtleScreen` subclass. This function should be used when " -":mod:`turtle` is used as a standalone tool for doing graphics. As a " -"singleton object, inheriting from its class is not possible." +"The function :func:`Screen` returns a singleton object of a :class:" +"`TurtleScreen` subclass. This function should be used when :mod:`turtle` is " +"used as a standalone tool for doing graphics. As a singleton object, " +"inheriting from its class is not possible." msgstr "" #: ../../library/turtle.rst:68 @@ -129,8 +134,8 @@ msgstr "" #: ../../library/turtle.rst:75 msgid "" -"Derived from RawTurtle is the subclass :class:`Turtle` (alias: " -":class:`Pen`), which draws on \"the\" :class:`Screen` instance which is " +"Derived from RawTurtle is the subclass :class:`Turtle` (alias: :class:" +"`Pen`), which draws on \"the\" :class:`Screen` instance which is " "automatically created, if not already present." msgstr "" @@ -215,7 +220,7 @@ msgstr ":func:`setheading` | :func:`seth`" msgid ":func:`home`" msgstr ":func:`home`" -#: ../../library/turtle.rst:0 ../../library/turtle.rst:2370 +#: ../../library/turtle.rst:0 ../../library/turtle.rst:2375 msgid ":func:`circle`" msgstr ":func:`circle`" @@ -223,7 +228,7 @@ msgstr ":func:`circle`" msgid ":func:`dot`" msgstr ":func:`dot`" -#: ../../library/turtle.rst:0 ../../library/turtle.rst:2348 +#: ../../library/turtle.rst:0 ../../library/turtle.rst:2353 msgid ":func:`stamp`" msgstr ":func:`stamp`" @@ -325,7 +330,7 @@ msgstr ":func:`pencolor`" #: ../../library/turtle.rst:0 msgid ":func:`fillcolor`" -msgstr "" +msgstr ":func:`fillcolor`" #: ../../library/turtle.rst:150 ../../library/turtle.rst:986 msgid "Filling" @@ -343,7 +348,7 @@ msgstr ":func:`begin_fill`" msgid ":func:`end_fill`" msgstr ":func:`end_fill`" -#: ../../library/turtle.rst:155 ../../library/turtle.rst:1025 +#: ../../library/turtle.rst:155 ../../library/turtle.rst:1030 msgid "More drawing control" msgstr "Mais sobre o Controle do Desenho" @@ -359,11 +364,11 @@ msgstr ":func:`clear`" msgid ":func:`write`" msgstr ":func:`write`" -#: ../../library/turtle.rst:172 ../../library/turtle.rst:1070 +#: ../../library/turtle.rst:172 ../../library/turtle.rst:1075 msgid "Turtle state" msgstr "Estado da Tartaruga " -#: ../../library/turtle.rst:161 ../../library/turtle.rst:1073 +#: ../../library/turtle.rst:161 ../../library/turtle.rst:1078 msgid "Visibility" msgstr "Visibilidade" @@ -379,7 +384,7 @@ msgstr ":func:`hideturtle` | :func:`ht`" msgid ":func:`isvisible`" msgstr ":func:`isvisible`" -#: ../../library/turtle.rst:172 ../../library/turtle.rst:1110 +#: ../../library/turtle.rst:172 ../../library/turtle.rst:1115 msgid "Appearance" msgstr "Aparência" @@ -419,11 +424,11 @@ msgstr ":func:`shapetransform`" msgid ":func:`get_shapepoly`" msgstr ":func:`get_shapepoly`" -#: ../../library/turtle.rst:177 ../../library/turtle.rst:1306 +#: ../../library/turtle.rst:177 ../../library/turtle.rst:1311 msgid "Using events" msgstr "Eventos Utilizados" -#: ../../library/turtle.rst:0 ../../library/turtle.rst:2342 +#: ../../library/turtle.rst:0 ../../library/turtle.rst:2347 msgid ":func:`onclick`" msgstr ":func:`onclick`" @@ -431,11 +436,11 @@ msgstr ":func:`onclick`" msgid ":func:`onrelease`" msgstr ":func:`onrelease`" -#: ../../library/turtle.rst:0 ../../library/turtle.rst:2325 +#: ../../library/turtle.rst:0 ../../library/turtle.rst:2330 msgid ":func:`ondrag`" msgstr ":func:`ondrag`" -#: ../../library/turtle.rst:188 ../../library/turtle.rst:1376 +#: ../../library/turtle.rst:188 ../../library/turtle.rst:1381 msgid "Special Turtle methods" msgstr "Métodos Especiais da Tartaruga" @@ -451,7 +456,7 @@ msgstr ":func:`end_poly`" msgid ":func:`get_poly`" msgstr ":func:`get_poly`" -#: ../../library/turtle.rst:0 ../../library/turtle.rst:2361 +#: ../../library/turtle.rst:0 ../../library/turtle.rst:2366 msgid ":func:`clone`" msgstr ":func:`clone`" @@ -475,7 +480,7 @@ msgstr ":func:`undobufferentries`" msgid "Methods of TurtleScreen/Screen" msgstr "Métodos de TurtleScreen/Screen" -#: ../../library/turtle.rst:199 ../../library/turtle.rst:1521 +#: ../../library/turtle.rst:199 ../../library/turtle.rst:1526 msgid "Window control" msgstr "Controle da Janela" @@ -503,7 +508,7 @@ msgstr ":func:`screensize`" msgid ":func:`setworldcoordinates`" msgstr ":func:`setworldcoordinates`" -#: ../../library/turtle.rst:204 ../../library/turtle.rst:1635 +#: ../../library/turtle.rst:204 ../../library/turtle.rst:1640 msgid "Animation control" msgstr "Controle da Animação" @@ -519,7 +524,7 @@ msgstr ":func:`tracer`" msgid ":func:`update`" msgstr ":func:`update`" -#: ../../library/turtle.rst:212 ../../library/turtle.rst:1686 +#: ../../library/turtle.rst:212 ../../library/turtle.rst:1691 msgid "Using screen events" msgstr "Usando os Eventos de Tela" @@ -547,7 +552,7 @@ msgstr ":func:`ontimer`" msgid ":func:`mainloop` | :func:`done`" msgstr ":func:`mainloop` | :func:`done`" -#: ../../library/turtle.rst:222 ../../library/turtle.rst:1827 +#: ../../library/turtle.rst:222 ../../library/turtle.rst:1832 msgid "Settings and special methods" msgstr "Configurações e Métodos Especiais" @@ -583,7 +588,7 @@ msgstr ":func:`window_height`" msgid ":func:`window_width`" msgstr ":func:`window_width`" -#: ../../library/turtle.rst:226 ../../library/turtle.rst:1791 +#: ../../library/turtle.rst:226 ../../library/turtle.rst:1796 msgid "Input methods" msgstr "Métodos de Entrada" @@ -627,32 +632,6 @@ msgstr "" "A maioria dos exemplos desta seção referem-se a uma ocorrência Tartaruga " "chamada ``turtle``." -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 -#: ../../library/turtle.rst:0 ../../library/turtle.rst:0 #: ../../library/turtle.rst:0 msgid "Parameters" msgstr "" @@ -670,15 +649,15 @@ msgid "" msgstr "" #: ../../library/turtle.rst:268 ../../library/turtle.rst:458 -#: ../../library/turtle.rst:721 ../../library/turtle.rst:1205 -#: ../../library/turtle.rst:1223 +#: ../../library/turtle.rst:721 ../../library/turtle.rst:1210 +#: ../../library/turtle.rst:1228 msgid "a number" msgstr "um número" #: ../../library/turtle.rst:270 msgid "" -"Move the turtle backward by *distance*, opposite to the direction the turtle" -" is headed. Do not change the turtle's heading." +"Move the turtle backward by *distance*, opposite to the direction the turtle " +"is headed. Do not change the turtle's heading." msgstr "" #: ../../library/turtle.rst:292 @@ -705,16 +684,16 @@ msgstr "um número ou ``None``" #: ../../library/turtle.rst:340 msgid "" -"If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` " -"(e.g. as returned by :func:`pos`)." +"If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` (e." +"g. as returned by :func:`pos`)." msgstr "" -"Se *y* for ``None``, *x* deve ser um par de coordenadas ou uma classe " -":class:`Vec2D` (por exemplo, como retornado pela função :func:`pos`)." +"Se *y* for ``None``, *x* deve ser um par de coordenadas ou uma classe :class:" +"`Vec2D` (por exemplo, como retornado pela função :func:`pos`)." #: ../../library/turtle.rst:343 msgid "" -"Move turtle to an absolute position. If the pen is down, draw line. Do not" -" change the turtle's orientation." +"Move turtle to an absolute position. If the pen is down, draw line. Do not " +"change the turtle's orientation." msgstr "" "Move a tartaruga para uma posição absoluta. Caso a caneta esteja baixa, " "trace a linha. Não altera a orientação da tartaruga." @@ -781,8 +760,8 @@ msgstr "270 - oeste" #: ../../library/turtle.rst:434 msgid "" -"Move turtle to the origin -- coordinates (0,0) -- and set its heading to its" -" start-orientation (which depends on the mode, see :func:`mode`)." +"Move turtle to the origin -- coordinates (0,0) -- and set its heading to its " +"start-orientation (which depends on the mode, see :func:`mode`)." msgstr "" #: ../../library/turtle.rst:459 @@ -795,8 +774,8 @@ msgstr "an integer (or ``None``)" #: ../../library/turtle.rst:462 msgid "" -"Draw a circle with given *radius*. The center is *radius* units left of the" -" turtle; *extent* -- an angle -- determines which part of the circle is " +"Draw a circle with given *radius*. The center is *radius* units left of the " +"turtle; *extent* -- an angle -- determines which part of the circle is " "drawn. If *extent* is not given, draw the entire circle. If *extent* is " "not a full circle, one endpoint of the arc is the current pen position. " "Draw the arc in counterclockwise direction if *radius* is positive, " @@ -842,9 +821,9 @@ msgstr "" #: ../../library/turtle.rst:552 msgid "" -"Delete all or first/last *n* of turtle's stamps. If *n* is ``None``, delete" -" all stamps, if *n* > 0 delete first *n* stamps, else if *n* < 0 delete last" -" *n* stamps." +"Delete all or first/last *n* of turtle's stamps. If *n* is ``None``, delete " +"all stamps, if *n* > 0 delete first *n* stamps, else if *n* < 0 delete last " +"*n* stamps." msgstr "" #: ../../library/turtle.rst:575 @@ -865,8 +844,8 @@ msgstr "" #: ../../library/turtle.rst:594 msgid "" -"If input is a number greater than 10 or smaller than 0.5, speed is set to 0." -" Speedstrings are mapped to speedvalues as follows:" +"If input is a number greater than 10 or smaller than 0.5, speed is set to " +"0. Speedstrings are mapped to speedvalues as follows:" msgstr "" #: ../../library/turtle.rst:597 @@ -916,8 +895,8 @@ msgstr "um número caso *x* seja um número, senão ``None``" #: ../../library/turtle.rst:641 msgid "" -"Return the angle between the line from turtle position to position specified" -" by (x,y), the vector or the other turtle. This depends on the turtle's " +"Return the angle between the line from turtle position to position specified " +"by (x,y), the vector or the other turtle. This depends on the turtle's " "start orientation which depends on the mode - \"standard\"/\"world\" or " "\"logo\")." msgstr "" @@ -932,14 +911,14 @@ msgstr "Retorna a coordenada Y da tartaruga" #: ../../library/turtle.rst:684 msgid "" -"Return the turtle's current heading (value depends on the turtle mode, see " -":func:`mode`)." +"Return the turtle's current heading (value depends on the turtle mode, see :" +"func:`mode`)." msgstr "" #: ../../library/turtle.rst:700 msgid "" -"Return the distance from the turtle to (x,y), the given vector, or the given" -" other turtle, in turtle step units." +"Return the distance from the turtle to (x,y), the given vector, or the given " +"other turtle, in turtle step units." msgstr "" #: ../../library/turtle.rst:717 @@ -954,8 +933,8 @@ msgstr "" #: ../../library/turtle.rst:745 msgid "" -"Set the angle measurement units to radians. Equivalent to " -"``degrees(2*math.pi)``." +"Set the angle measurement units to radians. Equivalent to ``degrees(2*math." +"pi)``." msgstr "" #: ../../library/turtle.rst:774 @@ -1033,8 +1012,8 @@ msgstr "\"tilt\": number" #: ../../library/turtle.rst:819 msgid "" -"This dictionary can be used as argument for a subsequent call to :func:`pen`" -" to restore the former pen-state. Moreover one or more of these attributes " +"This dictionary can be used as argument for a subsequent call to :func:`pen` " +"to restore the former pen-state. Moreover one or more of these attributes " "can be provided as keyword-arguments. This can be used to set several pen " "attributes in one statement." msgstr "" @@ -1058,8 +1037,8 @@ msgstr "``pencolor()``" #: ../../library/turtle.rst:866 msgid "" -"Return the current pencolor as color specification string or as a tuple (see" -" example). May be used as input to another color/pencolor/fillcolor call." +"Return the current pencolor as color specification string or as a tuple (see " +"example). May be used as input to another color/pencolor/fillcolor call." msgstr "" #: ../../library/turtle.rst:872 @@ -1078,8 +1057,8 @@ msgstr "``pencolor((r, g, b))``" #: ../../library/turtle.rst:875 msgid "" -"Set pencolor to the RGB color represented by the tuple of *r*, *g*, and *b*." -" Each of *r*, *g*, and *b* must be in the range 0..colormode, where " +"Set pencolor to the RGB color represented by the tuple of *r*, *g*, and " +"*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where " "colormode is either 1.0 or 255 (see :func:`colormode`)." msgstr "" @@ -1110,8 +1089,8 @@ msgstr "``fillcolor()``" #: ../../library/turtle.rst:914 msgid "" "Return the current fillcolor as color specification string, possibly in " -"tuple format (see example). May be used as input to another " -"color/pencolor/fillcolor call." +"tuple format (see example). May be used as input to another color/pencolor/" +"fillcolor call." msgstr "" #: ../../library/turtle.rst:920 @@ -1167,8 +1146,8 @@ msgstr "``color()``" #: ../../library/turtle.rst:957 msgid "" "Return the current pencolor and the current fillcolor as a pair of color " -"specification strings or tuples as returned by :func:`pencolor` and " -":func:`fillcolor`." +"specification strings or tuples as returned by :func:`pencolor` and :func:" +"`fillcolor`." msgstr "" #: ../../library/turtle.rst:963 @@ -1189,8 +1168,8 @@ msgstr "" #: ../../library/turtle.rst:966 msgid "" -"Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)`` and" -" analogously if the other input format is used." +"Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)`` and " +"analogously if the other input format is used." msgstr "" #: ../../library/turtle.rst:969 @@ -1206,8 +1185,7 @@ msgstr "Veja também: Método da tela :func:`colormode`." #: ../../library/turtle.rst:995 msgid "Return fillstate (``True`` if filling, ``False`` else)." msgstr "" -"Retorna fillstate (``True`` se estiver preenchido, ``False`` caso " -"contrário)." +"Retorna fillstate (``True`` se estiver preenchido, ``False`` caso contrário)." #: ../../library/turtle.rst:1009 msgid "To be called just before drawing a shape to be filled." @@ -1217,112 +1195,117 @@ msgstr "" msgid "Fill the shape drawn after the last call to :func:`begin_fill`." msgstr "" -#: ../../library/turtle.rst:1029 +#: ../../library/turtle.rst:1016 +msgid "" +"Whether or not overlap regions for self-intersecting polygons or multiple " +"shapes are filled depends on the operating system graphics, type of overlap, " +"and number of overlaps. For example, the Turtle star above may be either " +"all yellow or have some white regions." +msgstr "" + +#: ../../library/turtle.rst:1034 msgid "" "Delete the turtle's drawings from the screen, re-center the turtle and set " "variables to the default values." msgstr "" -#: ../../library/turtle.rst:1049 +#: ../../library/turtle.rst:1054 msgid "" "Delete the turtle's drawings from the screen. Do not move turtle. State " "and position of the turtle as well as drawings of other turtles are not " "affected." msgstr "" -#: ../../library/turtle.rst:1055 +#: ../../library/turtle.rst:1060 msgid "object to be written to the TurtleScreen" msgstr "" -#: ../../library/turtle.rst:1056 +#: ../../library/turtle.rst:1061 msgid "True/False" msgstr "True/False" -#: ../../library/turtle.rst:1057 +#: ../../library/turtle.rst:1062 msgid "one of the strings \"left\", \"center\" or right\"" msgstr "uma das Strings \"left\", \"center\" ou right\"" -#: ../../library/turtle.rst:1058 +#: ../../library/turtle.rst:1063 msgid "a triple (fontname, fontsize, fonttype)" msgstr "a triple (fontname, fontsize, fonttype)" -#: ../../library/turtle.rst:1060 +#: ../../library/turtle.rst:1065 msgid "" "Write text - the string representation of *arg* - at the current turtle " -"position according to *align* (\"left\", \"center\" or right\") and with the" -" given font. If *move* is true, the pen is moved to the bottom-right corner" -" of the text. By default, *move* is ``False``." +"position according to *align* (\"left\", \"center\" or right\") and with the " +"given font. If *move* is true, the pen is moved to the bottom-right corner " +"of the text. By default, *move* is ``False``." msgstr "" -#: ../../library/turtle.rst:1078 +#: ../../library/turtle.rst:1083 msgid "" "Make the turtle invisible. It's a good idea to do this while you're in the " "middle of doing some complex drawing, because hiding the turtle speeds up " "the drawing observably." msgstr "" -#: ../../library/turtle.rst:1090 +#: ../../library/turtle.rst:1095 msgid "Make the turtle visible." msgstr "Tornar a tartaruga visível." -#: ../../library/turtle.rst:1099 +#: ../../library/turtle.rst:1104 msgid "Return ``True`` if the Turtle is shown, ``False`` if it's hidden." msgstr "" -#: ../../library/turtle.rst:1114 +#: ../../library/turtle.rst:1119 msgid "a string which is a valid shapename" msgstr "" -#: ../../library/turtle.rst:1116 +#: ../../library/turtle.rst:1121 msgid "" -"Set turtle shape to shape with given *name* or, if name is not given, return" -" name of current shape. Shape with *name* must exist in the TurtleScreen's " -"shape dictionary. Initially there are the following polygon shapes: " -"\"arrow\", \"turtle\", \"circle\", \"square\", \"triangle\", \"classic\". " -"To learn about how to deal with shapes see Screen method " -":func:`register_shape`." +"Set turtle shape to shape with given *name* or, if name is not given, return " +"name of current shape. Shape with *name* must exist in the TurtleScreen's " +"shape dictionary. Initially there are the following polygon shapes: \"arrow" +"\", \"turtle\", \"circle\", \"square\", \"triangle\", \"classic\". To learn " +"about how to deal with shapes see Screen method :func:`register_shape`." msgstr "" -#: ../../library/turtle.rst:1133 +#: ../../library/turtle.rst:1138 msgid "one of the strings \"auto\", \"user\", \"noresize\"" msgstr "" -#: ../../library/turtle.rst:1135 +#: ../../library/turtle.rst:1140 msgid "" "Set resizemode to one of the values: \"auto\", \"user\", \"noresize\". If " -"*rmode* is not given, return current resizemode. Different resizemodes have" -" the following effects:" +"*rmode* is not given, return current resizemode. Different resizemodes have " +"the following effects:" msgstr "" -#: ../../library/turtle.rst:1139 +#: ../../library/turtle.rst:1144 msgid "" "\"auto\": adapts the appearance of the turtle corresponding to the value of " "pensize." msgstr "" -#: ../../library/turtle.rst:1140 +#: ../../library/turtle.rst:1145 msgid "" "\"user\": adapts the appearance of the turtle according to the values of " -"stretchfactor and outlinewidth (outline), which are set by " -":func:`shapesize`." +"stretchfactor and outlinewidth (outline), which are set by :func:`shapesize`." msgstr "" -#: ../../library/turtle.rst:1143 +#: ../../library/turtle.rst:1148 msgid "\"noresize\": no adaption of the turtle's appearance takes place." msgstr "" -#: ../../library/turtle.rst:1145 +#: ../../library/turtle.rst:1150 msgid "" -"resizemode(\"user\") is called by :func:`shapesize` when used with " -"arguments." +"resizemode(\"user\") is called by :func:`shapesize` when used with arguments." msgstr "" -#: ../../library/turtle.rst:1159 ../../library/turtle.rst:1160 -#: ../../library/turtle.rst:1161 +#: ../../library/turtle.rst:1164 ../../library/turtle.rst:1165 +#: ../../library/turtle.rst:1166 msgid "positive number" msgstr "número positivo" -#: ../../library/turtle.rst:1163 +#: ../../library/turtle.rst:1168 msgid "" "Return or set the pen's attributes x/y-stretchfactors and/or outline. Set " "resizemode to \"user\". If and only if resizemode is set to \"user\", the " @@ -1332,40 +1315,40 @@ msgid "" "determines the width of the shapes's outline." msgstr "" -#: ../../library/turtle.rst:1185 ../../library/turtle.rst:1810 -#: ../../library/turtle.rst:1811 ../../library/turtle.rst:1812 +#: ../../library/turtle.rst:1190 ../../library/turtle.rst:1815 +#: ../../library/turtle.rst:1816 ../../library/turtle.rst:1817 msgid "number (optional)" msgstr "número (optional)" -#: ../../library/turtle.rst:1187 +#: ../../library/turtle.rst:1192 msgid "" "Set or return the current shearfactor. Shear the turtleshape according to " "the given shearfactor shear, which is the tangent of the shear angle. Do " "*not* change the turtle's heading (direction of movement). If shear is not " -"given: return the current shearfactor, i. e. the tangent of the shear angle," -" by which lines parallel to the heading of the turtle are sheared." +"given: return the current shearfactor, i. e. the tangent of the shear angle, " +"by which lines parallel to the heading of the turtle are sheared." msgstr "" -#: ../../library/turtle.rst:1207 +#: ../../library/turtle.rst:1212 msgid "" "Rotate the turtleshape by *angle* from its current tilt-angle, but do *not* " "change the turtle's heading (direction of movement)." msgstr "" -#: ../../library/turtle.rst:1225 +#: ../../library/turtle.rst:1230 msgid "" "Rotate the turtleshape to point in the direction specified by *angle*, " "regardless of its current tilt-angle. *Do not* change the turtle's heading " "(direction of movement)." msgstr "" -#: ../../library/turtle.rst:1244 ../../library/turtle.rst:1266 -#: ../../library/turtle.rst:1267 ../../library/turtle.rst:1268 -#: ../../library/turtle.rst:1269 +#: ../../library/turtle.rst:1249 ../../library/turtle.rst:1271 +#: ../../library/turtle.rst:1272 ../../library/turtle.rst:1273 +#: ../../library/turtle.rst:1274 msgid "a number (optional)" msgstr "um número (optional)" -#: ../../library/turtle.rst:1246 +#: ../../library/turtle.rst:1251 msgid "" "Set or return the current tilt-angle. If angle is given, rotate the " "turtleshape to point in the direction specified by angle, regardless of its " @@ -1375,115 +1358,115 @@ msgid "" "turtle (its direction of movement)." msgstr "" -#: ../../library/turtle.rst:1271 +#: ../../library/turtle.rst:1276 msgid "Set or return the current transformation matrix of the turtle shape." msgstr "" -#: ../../library/turtle.rst:1273 +#: ../../library/turtle.rst:1278 msgid "" "If none of the matrix elements are given, return the transformation matrix " -"as a tuple of 4 elements. Otherwise set the given elements and transform the" -" turtleshape according to the matrix consisting of first row t11, t12 and " +"as a tuple of 4 elements. Otherwise set the given elements and transform the " +"turtleshape according to the matrix consisting of first row t11, t12 and " "second row t21, 22. The determinant t11 * t22 - t12 * t21 must not be zero, " "otherwise an error is raised. Modify stretchfactor, shearfactor and " "tiltangle according to the given matrix." msgstr "" -#: ../../library/turtle.rst:1294 +#: ../../library/turtle.rst:1299 msgid "" "Return the current shape polygon as tuple of coordinate pairs. This can be " "used to define a new shape or components of a compound shape." msgstr "" -#: ../../library/turtle.rst:1310 ../../library/turtle.rst:1331 -#: ../../library/turtle.rst:1355 ../../library/turtle.rst:1736 +#: ../../library/turtle.rst:1315 ../../library/turtle.rst:1336 +#: ../../library/turtle.rst:1360 ../../library/turtle.rst:1741 msgid "" "a function with two arguments which will be called with the coordinates of " "the clicked point on the canvas" msgstr "" -#: ../../library/turtle.rst:1312 ../../library/turtle.rst:1333 -#: ../../library/turtle.rst:1357 ../../library/turtle.rst:1738 +#: ../../library/turtle.rst:1317 ../../library/turtle.rst:1338 +#: ../../library/turtle.rst:1362 ../../library/turtle.rst:1743 msgid "number of the mouse-button, defaults to 1 (left mouse button)" msgstr "" -#: ../../library/turtle.rst:1313 ../../library/turtle.rst:1334 -#: ../../library/turtle.rst:1358 ../../library/turtle.rst:1739 +#: ../../library/turtle.rst:1318 ../../library/turtle.rst:1339 +#: ../../library/turtle.rst:1363 ../../library/turtle.rst:1744 msgid "" -"``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise" -" it will replace a former binding" +"``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise " +"it will replace a former binding" msgstr "" -#: ../../library/turtle.rst:1316 +#: ../../library/turtle.rst:1321 msgid "" "Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``, " "existing bindings are removed. Example for the anonymous turtle, i.e. the " "procedural way:" msgstr "" -#: ../../library/turtle.rst:1337 +#: ../../library/turtle.rst:1342 msgid "" "Bind *fun* to mouse-button-release events on this turtle. If *fun* is " "``None``, existing bindings are removed." msgstr "" -#: ../../library/turtle.rst:1361 +#: ../../library/turtle.rst:1366 msgid "" "Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``, " "existing bindings are removed." msgstr "" -#: ../../library/turtle.rst:1364 +#: ../../library/turtle.rst:1369 msgid "" "Remark: Every sequence of mouse-move-events on a turtle is preceded by a " "mouse-click event on that turtle." msgstr "" -#: ../../library/turtle.rst:1371 +#: ../../library/turtle.rst:1376 msgid "" "Subsequently, clicking and dragging the Turtle will move it across the " "screen thereby producing handdrawings (if pen is down)." msgstr "" -#: ../../library/turtle.rst:1380 +#: ../../library/turtle.rst:1385 msgid "" -"Start recording the vertices of a polygon. Current turtle position is first" -" vertex of polygon." +"Start recording the vertices of a polygon. Current turtle position is first " +"vertex of polygon." msgstr "" -#: ../../library/turtle.rst:1386 +#: ../../library/turtle.rst:1391 msgid "" "Stop recording the vertices of a polygon. Current turtle position is last " "vertex of polygon. This will be connected with the first vertex." msgstr "" -#: ../../library/turtle.rst:1392 +#: ../../library/turtle.rst:1397 msgid "Return the last recorded polygon." msgstr "" -#: ../../library/turtle.rst:1410 +#: ../../library/turtle.rst:1415 msgid "" "Create and return a clone of the turtle with same position, heading and " "turtle properties." msgstr "" -#: ../../library/turtle.rst:1422 +#: ../../library/turtle.rst:1427 msgid "" "Return the Turtle object itself. Only reasonable use: as a function to " "return the \"anonymous turtle\":" msgstr "" -#: ../../library/turtle.rst:1435 +#: ../../library/turtle.rst:1440 msgid "" "Return the :class:`TurtleScreen` object the turtle is drawing on. " "TurtleScreen methods can then be called for that object." msgstr "" -#: ../../library/turtle.rst:1448 +#: ../../library/turtle.rst:1453 msgid "an integer or ``None``" msgstr "" -#: ../../library/turtle.rst:1450 +#: ../../library/turtle.rst:1455 msgid "" "Set or disable undobuffer. If *size* is an integer an empty undobuffer of " "given size is installed. *size* gives the maximum number of turtle actions " @@ -1491,178 +1474,177 @@ msgid "" "``None``, the undobuffer is disabled." msgstr "" -#: ../../library/turtle.rst:1462 +#: ../../library/turtle.rst:1467 msgid "Return number of entries in the undobuffer." msgstr "" -#: ../../library/turtle.rst:1474 +#: ../../library/turtle.rst:1479 msgid "Compound shapes" msgstr "Formas compostas" -#: ../../library/turtle.rst:1476 +#: ../../library/turtle.rst:1481 msgid "" "To use compound turtle shapes, which consist of several polygons of " "different color, you must use the helper class :class:`Shape` explicitly as " "described below:" msgstr "" -#: ../../library/turtle.rst:1480 +#: ../../library/turtle.rst:1485 msgid "Create an empty Shape object of type \"compound\"." msgstr "" -#: ../../library/turtle.rst:1481 +#: ../../library/turtle.rst:1486 msgid "" -"Add as many components to this object as desired, using the " -":meth:`addcomponent` method." +"Add as many components to this object as desired, using the :meth:" +"`addcomponent` method." msgstr "" -#: ../../library/turtle.rst:1484 +#: ../../library/turtle.rst:1489 msgid "For example:" msgstr "Por exemplo:" -#: ../../library/turtle.rst:1494 +#: ../../library/turtle.rst:1499 msgid "Now add the Shape to the Screen's shapelist and use it:" msgstr "" -#: ../../library/turtle.rst:1504 +#: ../../library/turtle.rst:1509 msgid "" "The :class:`Shape` class is used internally by the :func:`register_shape` " "method in different ways. The application programmer has to deal with the " "Shape class *only* when using compound shapes like shown above!" msgstr "" -#: ../../library/turtle.rst:1510 +#: ../../library/turtle.rst:1515 msgid "Methods of TurtleScreen/Screen and corresponding functions" msgstr "" -#: ../../library/turtle.rst:1512 +#: ../../library/turtle.rst:1517 msgid "" -"Most of the examples in this section refer to a TurtleScreen instance called" -" ``screen``." +"Most of the examples in this section refer to a TurtleScreen instance called " +"``screen``." msgstr "" -#: ../../library/turtle.rst:1525 +#: ../../library/turtle.rst:1530 msgid "" "a color string or three numbers in the range 0..colormode or a 3-tuple of " "such numbers" msgstr "" -#: ../../library/turtle.rst:1529 +#: ../../library/turtle.rst:1534 msgid "Set or return background color of the TurtleScreen." msgstr "" -#: ../../library/turtle.rst:1543 +#: ../../library/turtle.rst:1548 msgid "a string, name of a gif-file or ``\"nopic\"``, or ``None``" msgstr "" -#: ../../library/turtle.rst:1545 +#: ../../library/turtle.rst:1550 msgid "" "Set background image or return name of current backgroundimage. If " "*picname* is a filename, set the corresponding image as background. If " "*picname* is ``\"nopic\"``, delete background image, if present. If " -"*picname* is ``None``, return the filename of the current backgroundimage. " -"::" +"*picname* is ``None``, return the filename of the current backgroundimage. ::" msgstr "" -#: ../../library/turtle.rst:1560 +#: ../../library/turtle.rst:1565 msgid "" "Delete all drawings and all turtles from the TurtleScreen. Reset the now " "empty TurtleScreen to its initial state: white background, no background " "image, no event bindings and tracing on." msgstr "" -#: ../../library/turtle.rst:1565 +#: ../../library/turtle.rst:1570 msgid "" "This TurtleScreen method is available as a global function only under the " "name ``clearscreen``. The global function ``clear`` is a different one " "derived from the Turtle method ``clear``." msgstr "" -#: ../../library/turtle.rst:1573 +#: ../../library/turtle.rst:1578 msgid "Reset all Turtles on the Screen to their initial state." msgstr "" -#: ../../library/turtle.rst:1576 +#: ../../library/turtle.rst:1581 msgid "" "This TurtleScreen method is available as a global function only under the " "name ``resetscreen``. The global function ``reset`` is another one derived " "from the Turtle method ``reset``." msgstr "" -#: ../../library/turtle.rst:1583 +#: ../../library/turtle.rst:1588 msgid "positive integer, new width of canvas in pixels" msgstr "" -#: ../../library/turtle.rst:1584 +#: ../../library/turtle.rst:1589 msgid "positive integer, new height of canvas in pixels" msgstr "" -#: ../../library/turtle.rst:1585 +#: ../../library/turtle.rst:1590 msgid "colorstring or color-tuple, new background color" msgstr "" -#: ../../library/turtle.rst:1587 +#: ../../library/turtle.rst:1592 msgid "" -"If no arguments are given, return current (canvaswidth, canvasheight). Else" -" resize the canvas the turtles are drawing on. Do not alter the drawing " +"If no arguments are given, return current (canvaswidth, canvasheight). Else " +"resize the canvas the turtles are drawing on. Do not alter the drawing " "window. To observe hidden parts of the canvas, use the scrollbars. With " "this method, one can make visible those parts of a drawing which were " "outside the canvas before." msgstr "" -#: ../../library/turtle.rst:1599 +#: ../../library/turtle.rst:1604 msgid "e.g. to search for an erroneously escaped turtle ;-)" msgstr "" -#: ../../library/turtle.rst:1604 +#: ../../library/turtle.rst:1609 msgid "a number, x-coordinate of lower left corner of canvas" msgstr "" -#: ../../library/turtle.rst:1605 +#: ../../library/turtle.rst:1610 msgid "a number, y-coordinate of lower left corner of canvas" msgstr "" -#: ../../library/turtle.rst:1606 +#: ../../library/turtle.rst:1611 msgid "a number, x-coordinate of upper right corner of canvas" msgstr "" -#: ../../library/turtle.rst:1607 +#: ../../library/turtle.rst:1612 msgid "a number, y-coordinate of upper right corner of canvas" msgstr "" -#: ../../library/turtle.rst:1609 +#: ../../library/turtle.rst:1614 msgid "" "Set up user-defined coordinate system and switch to mode \"world\" if " "necessary. This performs a ``screen.reset()``. If mode \"world\" is " "already active, all drawings are redrawn according to the new coordinates." msgstr "" -#: ../../library/turtle.rst:1613 +#: ../../library/turtle.rst:1618 msgid "" "**ATTENTION**: in user-defined coordinate systems angles may appear " "distorted." msgstr "" -#: ../../library/turtle.rst:1639 +#: ../../library/turtle.rst:1644 msgid "positive integer" msgstr "" -#: ../../library/turtle.rst:1641 +#: ../../library/turtle.rst:1646 msgid "" "Set or return the drawing *delay* in milliseconds. (This is approximately " "the time interval between two consecutive canvas updates.) The longer the " "drawing delay, the slower the animation." msgstr "" -#: ../../library/turtle.rst:1645 +#: ../../library/turtle.rst:1650 msgid "Optional argument:" msgstr "Argumentos Opcionais:" -#: ../../library/turtle.rst:1658 ../../library/turtle.rst:1659 +#: ../../library/turtle.rst:1663 ../../library/turtle.rst:1664 msgid "nonnegative integer" msgstr "inteiro não-negativo" -#: ../../library/turtle.rst:1661 +#: ../../library/turtle.rst:1666 msgid "" "Turn turtle animation on/off and set delay for update drawings. If *n* is " "given, only each n-th regular screen update is really performed. (Can be " @@ -1671,75 +1653,75 @@ msgid "" "delay value (see :func:`delay`)." msgstr "" -#: ../../library/turtle.rst:1680 +#: ../../library/turtle.rst:1685 msgid "Perform a TurtleScreen update. To be used when tracer is turned off." msgstr "" -#: ../../library/turtle.rst:1682 +#: ../../library/turtle.rst:1687 msgid "See also the RawTurtle/Turtle method :func:`speed`." msgstr "Veja também o método RawTurtle/Turtle :func:`speed`." -#: ../../library/turtle.rst:1690 +#: ../../library/turtle.rst:1695 msgid "" -"Set focus on TurtleScreen (in order to collect key-events). Dummy arguments" -" are provided in order to be able to pass :func:`listen` to the onclick " +"Set focus on TurtleScreen (in order to collect key-events). Dummy arguments " +"are provided in order to be able to pass :func:`listen` to the onclick " "method." msgstr "" -#: ../../library/turtle.rst:1697 ../../library/turtle.rst:1716 +#: ../../library/turtle.rst:1702 ../../library/turtle.rst:1721 msgid "a function with no arguments or ``None``" msgstr "" -#: ../../library/turtle.rst:1698 ../../library/turtle.rst:1717 +#: ../../library/turtle.rst:1703 ../../library/turtle.rst:1722 msgid "a string: key (e.g. \"a\") or key-symbol (e.g. \"space\")" msgstr "" -#: ../../library/turtle.rst:1700 +#: ../../library/turtle.rst:1705 msgid "" "Bind *fun* to key-release event of key. If *fun* is ``None``, event " "bindings are removed. Remark: in order to be able to register key-events, " "TurtleScreen must have the focus. (See method :func:`listen`.)" msgstr "" -#: ../../library/turtle.rst:1719 +#: ../../library/turtle.rst:1724 msgid "" "Bind *fun* to key-press event of key if key is given, or to any key-press-" "event if no key is given. Remark: in order to be able to register key-" "events, TurtleScreen must have focus. (See method :func:`listen`.)" msgstr "" -#: ../../library/turtle.rst:1742 +#: ../../library/turtle.rst:1747 msgid "" "Bind *fun* to mouse-click events on this screen. If *fun* is ``None``, " "existing bindings are removed." msgstr "" -#: ../../library/turtle.rst:1745 +#: ../../library/turtle.rst:1750 msgid "" "Example for a TurtleScreen instance named ``screen`` and a Turtle instance " "named turtle:" msgstr "" -#: ../../library/turtle.rst:1755 +#: ../../library/turtle.rst:1760 msgid "" "This TurtleScreen method is available as a global function only under the " "name ``onscreenclick``. The global function ``onclick`` is another one " "derived from the Turtle method ``onclick``." msgstr "" -#: ../../library/turtle.rst:1762 +#: ../../library/turtle.rst:1767 msgid "a function with no arguments" msgstr "um função sem nenhum argumento" -#: ../../library/turtle.rst:1763 +#: ../../library/turtle.rst:1768 msgid "a number >= 0" msgstr "um número >= 0" -#: ../../library/turtle.rst:1765 +#: ../../library/turtle.rst:1770 msgid "Install a timer that calls *fun* after *t* milliseconds." msgstr "" -#: ../../library/turtle.rst:1782 +#: ../../library/turtle.rst:1787 msgid "" "Starts event loop - calling Tkinter's mainloop function. Must be the last " "statement in a turtle graphics program. Must *not* be used if a script is " @@ -1747,411 +1729,411 @@ msgid "" "turtle graphics. ::" msgstr "" -#: ../../library/turtle.rst:1795 ../../library/turtle.rst:1796 -#: ../../library/turtle.rst:1808 ../../library/turtle.rst:1809 +#: ../../library/turtle.rst:1800 ../../library/turtle.rst:1801 +#: ../../library/turtle.rst:1813 ../../library/turtle.rst:1814 msgid "string" msgstr "string" -#: ../../library/turtle.rst:1798 +#: ../../library/turtle.rst:1803 msgid "" "Pop up a dialog window for input of a string. Parameter title is the title " -"of the dialog window, prompt is a text mostly describing what information to" -" input. Return the string input. If the dialog is canceled, return ``None``." -" ::" +"of the dialog window, prompt is a text mostly describing what information to " +"input. Return the string input. If the dialog is canceled, return " +"``None``. ::" msgstr "" -#: ../../library/turtle.rst:1814 +#: ../../library/turtle.rst:1819 msgid "" "Pop up a dialog window for input of a number. title is the title of the " -"dialog window, prompt is a text mostly describing what numerical information" -" to input. default: default value, minval: minimum value for input, maxval: " +"dialog window, prompt is a text mostly describing what numerical information " +"to input. default: default value, minval: minimum value for input, maxval: " "maximum value for input The number input must be in the range minval .. " "maxval if these are given. If not, a hint is issued and the dialog remains " "open for correction. Return the number input. If the dialog is canceled, " "return ``None``. ::" msgstr "" -#: ../../library/turtle.rst:1831 +#: ../../library/turtle.rst:1836 msgid "one of the strings \"standard\", \"logo\" or \"world\"" msgstr "" -#: ../../library/turtle.rst:1833 +#: ../../library/turtle.rst:1838 msgid "" -"Set turtle mode (\"standard\", \"logo\" or \"world\") and perform reset. If" -" mode is not given, current mode is returned." +"Set turtle mode (\"standard\", \"logo\" or \"world\") and perform reset. If " +"mode is not given, current mode is returned." msgstr "" -#: ../../library/turtle.rst:1836 +#: ../../library/turtle.rst:1841 msgid "" "Mode \"standard\" is compatible with old :mod:`turtle`. Mode \"logo\" is " -"compatible with most Logo turtle graphics. Mode \"world\" uses user-defined" -" \"world coordinates\". **Attention**: in this mode angles appear distorted " +"compatible with most Logo turtle graphics. Mode \"world\" uses user-defined " +"\"world coordinates\". **Attention**: in this mode angles appear distorted " "if ``x/y`` unit-ratio doesn't equal 1." msgstr "" -#: ../../library/turtle.rst:1842 +#: ../../library/turtle.rst:1847 msgid "Mode" msgstr "Modo" -#: ../../library/turtle.rst:1842 +#: ../../library/turtle.rst:1847 msgid "Initial turtle heading" msgstr "Título inicial da tartaruga" -#: ../../library/turtle.rst:1842 +#: ../../library/turtle.rst:1847 msgid "positive angles" msgstr "ângulos positivos" -#: ../../library/turtle.rst:1844 +#: ../../library/turtle.rst:1849 msgid "\"standard\"" msgstr "\"standard\"" -#: ../../library/turtle.rst:1844 +#: ../../library/turtle.rst:1849 msgid "to the right (east)" msgstr "para a direita (east)" -#: ../../library/turtle.rst:1844 +#: ../../library/turtle.rst:1849 msgid "counterclockwise" msgstr "counterclockwise" -#: ../../library/turtle.rst:1845 +#: ../../library/turtle.rst:1850 msgid "\"logo\"" msgstr "\"logo\"" -#: ../../library/turtle.rst:1845 +#: ../../library/turtle.rst:1850 msgid "upward (north)" msgstr "upward (north)" -#: ../../library/turtle.rst:1845 +#: ../../library/turtle.rst:1850 msgid "clockwise" msgstr "clockwise" -#: ../../library/turtle.rst:1857 +#: ../../library/turtle.rst:1862 msgid "one of the values 1.0 or 255" msgstr "um dos valroes 1.0 ou 255" -#: ../../library/turtle.rst:1859 +#: ../../library/turtle.rst:1864 msgid "" "Return the colormode or set it to 1.0 or 255. Subsequently *r*, *g*, *b* " "values of color triples have to be in the range 0..\\ *cmode*." msgstr "" -#: ../../library/turtle.rst:1879 +#: ../../library/turtle.rst:1884 msgid "" "Return the Canvas of this TurtleScreen. Useful for insiders who know what " "to do with a Tkinter Canvas." msgstr "" -#: ../../library/turtle.rst:1891 +#: ../../library/turtle.rst:1896 msgid "Return a list of names of all currently available turtle shapes." msgstr "" -#: ../../library/turtle.rst:1902 +#: ../../library/turtle.rst:1907 msgid "There are three different ways to call this function:" msgstr "" -#: ../../library/turtle.rst:1904 +#: ../../library/turtle.rst:1909 msgid "" "*name* is the name of a gif-file and *shape* is ``None``: Install the " "corresponding image shape. ::" msgstr "" -#: ../../library/turtle.rst:1910 +#: ../../library/turtle.rst:1915 msgid "" -"Image shapes *do not* rotate when turning the turtle, so they do not display" -" the heading of the turtle!" +"Image shapes *do not* rotate when turning the turtle, so they do not display " +"the heading of the turtle!" msgstr "" -#: ../../library/turtle.rst:1913 +#: ../../library/turtle.rst:1918 msgid "" "*name* is an arbitrary string and *shape* is a tuple of pairs of " "coordinates: Install the corresponding polygon shape." msgstr "" -#: ../../library/turtle.rst:1920 +#: ../../library/turtle.rst:1925 msgid "" "*name* is an arbitrary string and shape is a (compound) :class:`Shape` " "object: Install the corresponding compound shape." msgstr "" -#: ../../library/turtle.rst:1923 +#: ../../library/turtle.rst:1928 msgid "" "Add a turtle shape to TurtleScreen's shapelist. Only thusly registered " "shapes can be used by issuing the command ``shape(shapename)``." msgstr "" -#: ../../library/turtle.rst:1929 +#: ../../library/turtle.rst:1934 msgid "Return the list of turtles on the screen." msgstr "Retorne uma lista de tartarugas na tela." -#: ../../library/turtle.rst:1939 +#: ../../library/turtle.rst:1944 msgid "Return the height of the turtle window. ::" msgstr "Retorna a altura da janela da tartaruga." -#: ../../library/turtle.rst:1947 +#: ../../library/turtle.rst:1952 msgid "Return the width of the turtle window. ::" msgstr "Retorna a largura da janela da tartaruga." -#: ../../library/turtle.rst:1956 +#: ../../library/turtle.rst:1961 msgid "Methods specific to Screen, not inherited from TurtleScreen" msgstr "" -#: ../../library/turtle.rst:1960 +#: ../../library/turtle.rst:1965 msgid "Shut the turtlegraphics window." msgstr "" -#: ../../library/turtle.rst:1965 +#: ../../library/turtle.rst:1970 msgid "Bind bye() method to mouse clicks on the Screen." msgstr "" -#: ../../library/turtle.rst:1968 +#: ../../library/turtle.rst:1973 msgid "" "If the value \"using_IDLE\" in the configuration dictionary is ``False`` " "(default value), also enter mainloop. Remark: If IDLE with the ``-n`` " -"switch (no subprocess) is used, this value should be set to ``True`` in " -":file:`turtle.cfg`. In this case IDLE's own mainloop is active also for the" -" client script." +"switch (no subprocess) is used, this value should be set to ``True`` in :" +"file:`turtle.cfg`. In this case IDLE's own mainloop is active also for the " +"client script." msgstr "" -#: ../../library/turtle.rst:1977 +#: ../../library/turtle.rst:1982 msgid "" "Set the size and position of the main window. Default values of arguments " -"are stored in the configuration dictionary and can be changed via a " -":file:`turtle.cfg` file." +"are stored in the configuration dictionary and can be changed via a :file:" +"`turtle.cfg` file." msgstr "" -#: ../../library/turtle.rst:1981 +#: ../../library/turtle.rst:1986 msgid "" "if an integer, a size in pixels, if a float, a fraction of the screen; " "default is 50% of screen" msgstr "" -#: ../../library/turtle.rst:1983 +#: ../../library/turtle.rst:1988 msgid "" "if an integer, the height in pixels, if a float, a fraction of the screen; " "default is 75% of screen" msgstr "" -#: ../../library/turtle.rst:1985 +#: ../../library/turtle.rst:1990 msgid "" "if positive, starting position in pixels from the left edge of the screen, " "if negative from the right edge, if ``None``, center window horizontally" msgstr "" -#: ../../library/turtle.rst:1988 +#: ../../library/turtle.rst:1993 msgid "" -"if positive, starting position in pixels from the top edge of the screen, if" -" negative from the bottom edge, if ``None``, center window vertically" +"if positive, starting position in pixels from the top edge of the screen, if " +"negative from the bottom edge, if ``None``, center window vertically" msgstr "" -#: ../../library/turtle.rst:2002 +#: ../../library/turtle.rst:2007 msgid "a string that is shown in the titlebar of the turtle graphics window" msgstr "" -#: ../../library/turtle.rst:2005 +#: ../../library/turtle.rst:2010 msgid "Set title of turtle window to *titlestring*." msgstr "" -#: ../../library/turtle.rst:2013 +#: ../../library/turtle.rst:2018 msgid "Public classes" msgstr "Classes Públicas" -#: ../../library/turtle.rst:2019 +#: ../../library/turtle.rst:2024 msgid "" -"a :class:`tkinter.Canvas`, a :class:`ScrolledCanvas` or a " -":class:`TurtleScreen`" +"a :class:`tkinter.Canvas`, a :class:`ScrolledCanvas` or a :class:" +"`TurtleScreen`" msgstr "" -#: ../../library/turtle.rst:2022 +#: ../../library/turtle.rst:2027 msgid "" -"Create a turtle. The turtle has all methods described above as \"methods of" -" Turtle/RawTurtle\"." +"Create a turtle. The turtle has all methods described above as \"methods of " +"Turtle/RawTurtle\"." msgstr "" -#: ../../library/turtle.rst:2028 +#: ../../library/turtle.rst:2033 msgid "" -"Subclass of RawTurtle, has the same interface but draws on a default " -":class:`Screen` object created automatically when needed for the first time." +"Subclass of RawTurtle, has the same interface but draws on a default :class:" +"`Screen` object created automatically when needed for the first time." msgstr "" -#: ../../library/turtle.rst:2034 +#: ../../library/turtle.rst:2039 msgid "a :class:`tkinter.Canvas`" msgstr "uma :class:`tkinter.Canvas`" -#: ../../library/turtle.rst:2036 +#: ../../library/turtle.rst:2041 msgid "" "Provides screen oriented methods like :func:`setbg` etc. that are described " "above." msgstr "" -#: ../../library/turtle.rst:2041 +#: ../../library/turtle.rst:2046 msgid "" "Subclass of TurtleScreen, with :ref:`four methods added `." msgstr "" -#: ../../library/turtle.rst:2046 +#: ../../library/turtle.rst:2051 msgid "" "some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas " "with scrollbars added" msgstr "" -#: ../../library/turtle.rst:2049 +#: ../../library/turtle.rst:2054 msgid "" "Used by class Screen, which thus automatically provides a ScrolledCanvas as " "playground for the turtles." msgstr "" -#: ../../library/turtle.rst:2054 +#: ../../library/turtle.rst:2059 msgid "one of the strings \"polygon\", \"image\", \"compound\"" msgstr "" -#: ../../library/turtle.rst:2056 +#: ../../library/turtle.rst:2061 msgid "" -"Data structure modeling shapes. The pair ``(type_, data)`` must follow this" -" specification:" +"Data structure modeling shapes. The pair ``(type_, data)`` must follow this " +"specification:" msgstr "" -#: ../../library/turtle.rst:2061 +#: ../../library/turtle.rst:2066 msgid "*type_*" msgstr "*type_*" -#: ../../library/turtle.rst:2061 +#: ../../library/turtle.rst:2066 msgid "*data*" msgstr "*data*" -#: ../../library/turtle.rst:2063 +#: ../../library/turtle.rst:2068 msgid "\"polygon\"" msgstr "\"polygon\"" -#: ../../library/turtle.rst:2063 +#: ../../library/turtle.rst:2068 msgid "a polygon-tuple, i.e. a tuple of pairs of coordinates" msgstr "" -#: ../../library/turtle.rst:2064 +#: ../../library/turtle.rst:2069 msgid "\"image\"" msgstr "\"image\"" -#: ../../library/turtle.rst:2064 +#: ../../library/turtle.rst:2069 msgid "an image (in this form only used internally!)" msgstr "" -#: ../../library/turtle.rst:2065 +#: ../../library/turtle.rst:2070 msgid "\"compound\"" msgstr "\"compound\"" -#: ../../library/turtle.rst:2065 +#: ../../library/turtle.rst:2070 msgid "" -"``None`` (a compound shape has to be constructed using the " -":meth:`addcomponent` method)" +"``None`` (a compound shape has to be constructed using the :meth:" +"`addcomponent` method)" msgstr "" -#: ../../library/turtle.rst:2071 +#: ../../library/turtle.rst:2076 msgid "a polygon, i.e. a tuple of pairs of numbers" msgstr "" -#: ../../library/turtle.rst:2072 +#: ../../library/turtle.rst:2077 msgid "a color the *poly* will be filled with" msgstr "" -#: ../../library/turtle.rst:2073 +#: ../../library/turtle.rst:2078 msgid "a color for the poly's outline (if given)" msgstr "" -#: ../../library/turtle.rst:2075 +#: ../../library/turtle.rst:2080 msgid "Example:" msgstr "Exemplo:" -#: ../../library/turtle.rst:2084 +#: ../../library/turtle.rst:2089 msgid "See :ref:`compoundshapes`." msgstr "" -#: ../../library/turtle.rst:2089 +#: ../../library/turtle.rst:2094 msgid "" "A two-dimensional vector class, used as a helper class for implementing " "turtle graphics. May be useful for turtle graphics programs too. Derived " "from tuple, so a vector is a tuple!" msgstr "" -#: ../../library/turtle.rst:2093 +#: ../../library/turtle.rst:2098 msgid "Provides (for *a*, *b* vectors, *k* number):" msgstr "" -#: ../../library/turtle.rst:2095 +#: ../../library/turtle.rst:2100 msgid "``a + b`` vector addition" msgstr "``a + b`` vetor adicional" -#: ../../library/turtle.rst:2096 +#: ../../library/turtle.rst:2101 msgid "``a - b`` vector subtraction" msgstr "``a - b`` subtração de vetor" -#: ../../library/turtle.rst:2097 +#: ../../library/turtle.rst:2102 msgid "``a * b`` inner product" msgstr "``a * b`` produto interno" -#: ../../library/turtle.rst:2098 +#: ../../library/turtle.rst:2103 msgid "``k * a`` and ``a * k`` multiplication with scalar" msgstr "``k * a`` e ``a * k`` multiplicação com escalar" -#: ../../library/turtle.rst:2099 +#: ../../library/turtle.rst:2104 msgid "``abs(a)`` absolute value of a" msgstr "``abs(a)`` valor absoluto de um" -#: ../../library/turtle.rst:2100 +#: ../../library/turtle.rst:2105 msgid "``a.rotate(angle)`` rotation" msgstr "rotação ``a.rotate(angle)``" -#: ../../library/turtle.rst:2104 +#: ../../library/turtle.rst:2109 msgid "Help and configuration" msgstr "Ajuda e Configuração" -#: ../../library/turtle.rst:2107 +#: ../../library/turtle.rst:2112 msgid "How to use help" msgstr "Como usar a Ajuda" -#: ../../library/turtle.rst:2109 +#: ../../library/turtle.rst:2114 msgid "" "The public methods of the Screen and Turtle classes are documented " "extensively via docstrings. So these can be used as online-help via the " "Python help facilities:" msgstr "" -#: ../../library/turtle.rst:2113 +#: ../../library/turtle.rst:2118 msgid "" "When using IDLE, tooltips show the signatures and first lines of the " "docstrings of typed in function-/method calls." msgstr "" -#: ../../library/turtle.rst:2116 +#: ../../library/turtle.rst:2121 msgid "Calling :func:`help` on methods or functions displays the docstrings::" msgstr "" -#: ../../library/turtle.rst:2147 +#: ../../library/turtle.rst:2152 msgid "" "The docstrings of the functions which are derived from methods have a " "modified form::" msgstr "" -#: ../../library/turtle.rst:2181 +#: ../../library/turtle.rst:2186 msgid "" "These modified docstrings are created automatically together with the " "function definitions that are derived from the methods at import time." msgstr "" -#: ../../library/turtle.rst:2186 +#: ../../library/turtle.rst:2191 msgid "Translation of docstrings into different languages" msgstr "" -#: ../../library/turtle.rst:2188 +#: ../../library/turtle.rst:2193 msgid "" "There is a utility to create a dictionary the keys of which are the method " "names and the values of which are the docstrings of the public methods of " "the classes Screen and Turtle." msgstr "" -#: ../../library/turtle.rst:2194 +#: ../../library/turtle.rst:2199 msgid "a string, used as filename" msgstr "" -#: ../../library/turtle.rst:2196 +#: ../../library/turtle.rst:2201 msgid "" "Create and write docstring-dictionary to a Python script with the given " "filename. This function has to be called explicitly (it is not used by the " @@ -2160,38 +2142,37 @@ msgid "" "for translation of the docstrings into different languages." msgstr "" -#: ../../library/turtle.rst:2202 +#: ../../library/turtle.rst:2207 msgid "" -"If you (or your students) want to use :mod:`turtle` with online help in your" -" native language, you have to translate the docstrings and save the " -"resulting file as e.g. :file:`turtle_docstringdict_german.py`." +"If you (or your students) want to use :mod:`turtle` with online help in your " +"native language, you have to translate the docstrings and save the resulting " +"file as e.g. :file:`turtle_docstringdict_german.py`." msgstr "" -#: ../../library/turtle.rst:2206 +#: ../../library/turtle.rst:2211 msgid "" "If you have an appropriate entry in your :file:`turtle.cfg` file this " "dictionary will be read in at import time and will replace the original " "English docstrings." msgstr "" -#: ../../library/turtle.rst:2209 +#: ../../library/turtle.rst:2214 msgid "" "At the time of this writing there are docstring dictionaries in German and " "in Italian. (Requests please to glingl@aon.at.)" msgstr "" -#: ../../library/turtle.rst:2215 +#: ../../library/turtle.rst:2220 msgid "How to configure Screen and Turtles" msgstr "" -#: ../../library/turtle.rst:2217 +#: ../../library/turtle.rst:2222 msgid "" "The built-in default configuration mimics the appearance and behaviour of " -"the old turtle module in order to retain best possible compatibility with " -"it." +"the old turtle module in order to retain best possible compatibility with it." msgstr "" -#: ../../library/turtle.rst:2220 +#: ../../library/turtle.rst:2225 msgid "" "If you want to use a different configuration which better reflects the " "features of this module or which better fits to your needs, e.g. for use in " @@ -2200,54 +2181,54 @@ msgid "" "settings." msgstr "" -#: ../../library/turtle.rst:2225 +#: ../../library/turtle.rst:2230 msgid "" "The built in configuration would correspond to the following turtle.cfg::" msgstr "" -#: ../../library/turtle.rst:2248 +#: ../../library/turtle.rst:2253 msgid "Short explanation of selected entries:" msgstr "" -#: ../../library/turtle.rst:2250 +#: ../../library/turtle.rst:2255 msgid "" -"The first four lines correspond to the arguments of the :meth:`Screen.setup`" -" method." +"The first four lines correspond to the arguments of the :meth:`Screen.setup` " +"method." msgstr "" -#: ../../library/turtle.rst:2252 +#: ../../library/turtle.rst:2257 msgid "" -"Line 5 and 6 correspond to the arguments of the method " -":meth:`Screen.screensize`." +"Line 5 and 6 correspond to the arguments of the method :meth:`Screen." +"screensize`." msgstr "" -#: ../../library/turtle.rst:2254 +#: ../../library/turtle.rst:2259 msgid "" "*shape* can be any of the built-in shapes, e.g: arrow, turtle, etc. For " "more info try ``help(shape)``." msgstr "" -#: ../../library/turtle.rst:2256 +#: ../../library/turtle.rst:2261 msgid "" -"If you want to use no fillcolor (i.e. make the turtle transparent), you have" -" to write ``fillcolor = \"\"`` (but all nonempty strings must not have " -"quotes in the cfg-file)." +"If you want to use no fillcolor (i.e. make the turtle transparent), you have " +"to write ``fillcolor = \"\"`` (but all nonempty strings must not have quotes " +"in the cfg-file)." msgstr "" -#: ../../library/turtle.rst:2259 +#: ../../library/turtle.rst:2264 msgid "" "If you want to reflect the turtle its state, you have to use ``resizemode = " "auto``." msgstr "" -#: ../../library/turtle.rst:2261 +#: ../../library/turtle.rst:2266 msgid "" -"If you set e.g. ``language = italian`` the docstringdict " -":file:`turtle_docstringdict_italian.py` will be loaded at import time (if " -"present on the import path, e.g. in the same directory as :mod:`turtle`." +"If you set e.g. ``language = italian`` the docstringdict :file:" +"`turtle_docstringdict_italian.py` will be loaded at import time (if present " +"on the import path, e.g. in the same directory as :mod:`turtle`." msgstr "" -#: ../../library/turtle.rst:2264 +#: ../../library/turtle.rst:2269 msgid "" "The entries *exampleturtle* and *examplescreen* define the names of these " "objects as they occur in the docstrings. The transformation of method-" @@ -2255,360 +2236,359 @@ msgid "" "docstrings." msgstr "" -#: ../../library/turtle.rst:2268 +#: ../../library/turtle.rst:2273 msgid "" -"*using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its " -"-n switch (\"no subprocess\"). This will prevent :func:`exitonclick` to " +"*using_IDLE*: Set this to ``True`` if you regularly work with IDLE and its -" +"n switch (\"no subprocess\"). This will prevent :func:`exitonclick` to " "enter the mainloop." msgstr "" -#: ../../library/turtle.rst:2272 +#: ../../library/turtle.rst:2277 msgid "" "There can be a :file:`turtle.cfg` file in the directory where :mod:`turtle` " "is stored and an additional one in the current working directory. The " "latter will override the settings of the first one." msgstr "" -#: ../../library/turtle.rst:2276 +#: ../../library/turtle.rst:2281 msgid "" "The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. " "You can study it as an example and see its effects when running the demos " "(preferably not from within the demo-viewer)." msgstr "" -#: ../../library/turtle.rst:2282 +#: ../../library/turtle.rst:2287 msgid ":mod:`turtledemo` --- Demo scripts" msgstr ":mod:`turtledemo` --- Scripts de Demonstração" -#: ../../library/turtle.rst:2287 +#: ../../library/turtle.rst:2292 msgid "" -"The :mod:`turtledemo` package includes a set of demo scripts. These scripts" -" can be run and viewed using the supplied demo viewer as follows::" +"The :mod:`turtledemo` package includes a set of demo scripts. These scripts " +"can be run and viewed using the supplied demo viewer as follows::" msgstr "" -#: ../../library/turtle.rst:2292 +#: ../../library/turtle.rst:2297 msgid "" "Alternatively, you can run the demo scripts individually. For example, ::" msgstr "" -#: ../../library/turtle.rst:2296 +#: ../../library/turtle.rst:2301 msgid "The :mod:`turtledemo` package directory contains:" msgstr "" -#: ../../library/turtle.rst:2298 +#: ../../library/turtle.rst:2303 msgid "" "A demo viewer :file:`__main__.py` which can be used to view the sourcecode " "of the scripts and run them at the same time." msgstr "" -#: ../../library/turtle.rst:2300 +#: ../../library/turtle.rst:2305 msgid "" "Multiple scripts demonstrating different features of the :mod:`turtle` " "module. Examples can be accessed via the Examples menu. They can also be " "run standalone." msgstr "" -#: ../../library/turtle.rst:2303 +#: ../../library/turtle.rst:2308 msgid "" -"A :file:`turtle.cfg` file which serves as an example of how to write and use" -" such files." +"A :file:`turtle.cfg` file which serves as an example of how to write and use " +"such files." msgstr "" -#: ../../library/turtle.rst:2306 +#: ../../library/turtle.rst:2311 msgid "The demo scripts are:" msgstr "" -#: ../../library/turtle.rst:2311 +#: ../../library/turtle.rst:2316 msgid "Name" msgstr "Nome" -#: ../../library/turtle.rst:2311 +#: ../../library/turtle.rst:2316 msgid "Description" msgstr "Description (descrição)" -#: ../../library/turtle.rst:2311 +#: ../../library/turtle.rst:2316 msgid "Features" msgstr "Recursos" -#: ../../library/turtle.rst:2313 +#: ../../library/turtle.rst:2318 msgid "bytedesign" msgstr "bytedesign" -#: ../../library/turtle.rst:2313 +#: ../../library/turtle.rst:2318 msgid "complex classical turtle graphics pattern" msgstr "Padrão de gráficos de tartaruga clássico complexo" -#: ../../library/turtle.rst:2313 +#: ../../library/turtle.rst:2318 msgid ":func:`tracer`, delay, :func:`update`" msgstr ":func:`tracer`, demora, :func:`update`" -#: ../../library/turtle.rst:2316 +#: ../../library/turtle.rst:2321 msgid "chaos" msgstr "chaos" -#: ../../library/turtle.rst:2316 +#: ../../library/turtle.rst:2321 msgid "" "graphs Verhulst dynamics, shows that computer's computations can generate " "results sometimes against the common sense expectations" msgstr "" -#: ../../library/turtle.rst:2316 +#: ../../library/turtle.rst:2321 msgid "world coordinates" msgstr "coordenadas mundiais" -#: ../../library/turtle.rst:2322 +#: ../../library/turtle.rst:2327 msgid "clock" msgstr "relógio" -#: ../../library/turtle.rst:2322 +#: ../../library/turtle.rst:2327 msgid "analog clock showing time of your computer" msgstr "Relógio analógico que mostra o horário do seu computador" -#: ../../library/turtle.rst:2322 +#: ../../library/turtle.rst:2327 msgid "turtles as clock's hands, ontimer" msgstr "tartarugas como as mãos do relógio, ontimer" -#: ../../library/turtle.rst:2325 +#: ../../library/turtle.rst:2330 msgid "colormixer" msgstr "colormixer" -#: ../../library/turtle.rst:2325 +#: ../../library/turtle.rst:2330 msgid "experiment with r, g, b" msgstr "experimento com r, g, b" -#: ../../library/turtle.rst:2327 +#: ../../library/turtle.rst:2332 msgid "forest" msgstr "forest" -#: ../../library/turtle.rst:2327 +#: ../../library/turtle.rst:2332 msgid "3 breadth-first trees" msgstr "3 breadth-first trees" -#: ../../library/turtle.rst:2327 +#: ../../library/turtle.rst:2332 msgid "randomization" msgstr "randomization" -#: ../../library/turtle.rst:2329 +#: ../../library/turtle.rst:2334 msgid "fractalcurves" msgstr "fractalcurves" -#: ../../library/turtle.rst:2329 +#: ../../library/turtle.rst:2334 msgid "Hilbert & Koch curves" msgstr "Curvas de Hilbert & Koch" -#: ../../library/turtle.rst:2329 +#: ../../library/turtle.rst:2334 msgid "recursion" msgstr "recursão" -#: ../../library/turtle.rst:2331 +#: ../../library/turtle.rst:2336 msgid "lindenmayer" msgstr "lindenmayer" -#: ../../library/turtle.rst:2331 +#: ../../library/turtle.rst:2336 msgid "ethnomathematics (indian kolams)" msgstr "ethnomathematics (indian kolams)" -#: ../../library/turtle.rst:2331 +#: ../../library/turtle.rst:2336 msgid "L-System" msgstr "L-System" -#: ../../library/turtle.rst:2334 +#: ../../library/turtle.rst:2339 msgid "minimal_hanoi" msgstr "minimal_hanoi" -#: ../../library/turtle.rst:2334 +#: ../../library/turtle.rst:2339 msgid "Towers of Hanoi" msgstr "Torres de Hanoi" -#: ../../library/turtle.rst:2334 +#: ../../library/turtle.rst:2339 msgid "Rectangular Turtles as Hanoi discs (shape, shapesize)" msgstr "Tartarugas retângulos como discos de Hanói (shape, shapesize)" -#: ../../library/turtle.rst:2338 +#: ../../library/turtle.rst:2343 msgid "nim" msgstr "nim" -#: ../../library/turtle.rst:2338 +#: ../../library/turtle.rst:2343 msgid "" "play the classical nim game with three heaps of sticks against the computer." msgstr "" -#: ../../library/turtle.rst:2338 +#: ../../library/turtle.rst:2343 msgid "turtles as nimsticks, event driven (mouse, keyboard)" msgstr "" -#: ../../library/turtle.rst:2342 +#: ../../library/turtle.rst:2347 msgid "paint" msgstr "paint" -#: ../../library/turtle.rst:2342 +#: ../../library/turtle.rst:2347 msgid "super minimalistic drawing program" msgstr "programa de desenho super minimalista" -#: ../../library/turtle.rst:2345 +#: ../../library/turtle.rst:2350 msgid "peace" msgstr "peça" -#: ../../library/turtle.rst:2345 +#: ../../library/turtle.rst:2350 msgid "elementary" msgstr "elementar" -#: ../../library/turtle.rst:2345 +#: ../../library/turtle.rst:2350 msgid "turtle: appearance and animation" msgstr "tartaruga: aparência e animação" -#: ../../library/turtle.rst:2348 +#: ../../library/turtle.rst:2353 msgid "penrose" msgstr "penrose" -#: ../../library/turtle.rst:2348 +#: ../../library/turtle.rst:2353 msgid "aperiodic tiling with kites and darts" msgstr "" -#: ../../library/turtle.rst:2351 +#: ../../library/turtle.rst:2356 msgid "planet_and_moon" msgstr "planet_and_moon" -#: ../../library/turtle.rst:2351 +#: ../../library/turtle.rst:2356 msgid "simulation of gravitational system" msgstr "simulação do sistema gravitacional" -#: ../../library/turtle.rst:2351 +#: ../../library/turtle.rst:2356 msgid "compound shapes, :class:`Vec2D`" msgstr "formas compostas, :class:`Vec2D`" -#: ../../library/turtle.rst:2354 +#: ../../library/turtle.rst:2359 msgid "round_dance" msgstr "round_dance" -#: ../../library/turtle.rst:2354 +#: ../../library/turtle.rst:2359 msgid "dancing turtles rotating pairwise in opposite direction" msgstr "" -#: ../../library/turtle.rst:2354 +#: ../../library/turtle.rst:2359 msgid "compound shapes, clone shapesize, tilt, get_shapepoly, update" msgstr "" -#: ../../library/turtle.rst:2358 +#: ../../library/turtle.rst:2363 msgid "sorting_animate" msgstr "sorting_animate" -#: ../../library/turtle.rst:2358 +#: ../../library/turtle.rst:2363 msgid "visual demonstration of different sorting methods" msgstr "" -#: ../../library/turtle.rst:2358 +#: ../../library/turtle.rst:2363 msgid "simple alignment, randomization" msgstr "" -#: ../../library/turtle.rst:2361 +#: ../../library/turtle.rst:2366 msgid "tree" msgstr "tree" -#: ../../library/turtle.rst:2361 +#: ../../library/turtle.rst:2366 msgid "a (graphical) breadth first tree (using generators)" msgstr "" -#: ../../library/turtle.rst:2364 +#: ../../library/turtle.rst:2369 msgid "two_canvases" msgstr "two_canvases" -#: ../../library/turtle.rst:2364 +#: ../../library/turtle.rst:2369 msgid "simple design" msgstr "desenho simples" -#: ../../library/turtle.rst:2364 +#: ../../library/turtle.rst:2369 msgid "turtles on two canvases" msgstr "tartarugas em duas telas" -#: ../../library/turtle.rst:2367 +#: ../../library/turtle.rst:2372 msgid "wikipedia" msgstr "wikipedia" -#: ../../library/turtle.rst:2367 +#: ../../library/turtle.rst:2372 msgid "a pattern from the wikipedia article on turtle graphics" msgstr "um padrão do artigo wikipedia sobre gráficos de tartaruga" -#: ../../library/turtle.rst:2367 +#: ../../library/turtle.rst:2372 msgid ":func:`clone`, :func:`undo`" msgstr ":func:`clone`, :func:`undo`" -#: ../../library/turtle.rst:2370 +#: ../../library/turtle.rst:2375 msgid "yinyang" msgstr "" -#: ../../library/turtle.rst:2370 +#: ../../library/turtle.rst:2375 msgid "another elementary example" msgstr "outro exemplo elementar" -#: ../../library/turtle.rst:2373 +#: ../../library/turtle.rst:2378 msgid "Have fun!" msgstr "Diverta-se!" -#: ../../library/turtle.rst:2377 +#: ../../library/turtle.rst:2382 msgid "Changes since Python 2.6" msgstr "Modificações desde a versão do Python 2.6" -#: ../../library/turtle.rst:2379 +#: ../../library/turtle.rst:2384 msgid "" -"The methods :meth:`Turtle.tracer`, :meth:`Turtle.window_width` and " -":meth:`Turtle.window_height` have been eliminated. Methods with these names " -"and functionality are now available only as methods of :class:`Screen`. The " +"The methods :meth:`Turtle.tracer`, :meth:`Turtle.window_width` and :meth:" +"`Turtle.window_height` have been eliminated. Methods with these names and " +"functionality are now available only as methods of :class:`Screen`. The " "functions derived from these remain available. (In fact already in Python " -"2.6 these methods were merely duplications of the corresponding " -":class:`TurtleScreen`/:class:`Screen`-methods.)" +"2.6 these methods were merely duplications of the corresponding :class:" +"`TurtleScreen`/:class:`Screen`-methods.)" msgstr "" -#: ../../library/turtle.rst:2387 +#: ../../library/turtle.rst:2392 msgid "" -"The method :meth:`Turtle.fill` has been eliminated. The behaviour of " -":meth:`begin_fill` and :meth:`end_fill` have changed slightly: now every " -"filling-process must be completed with an ``end_fill()`` call." +"The method :meth:`Turtle.fill` has been eliminated. The behaviour of :meth:" +"`begin_fill` and :meth:`end_fill` have changed slightly: now every filling-" +"process must be completed with an ``end_fill()`` call." msgstr "" -#: ../../library/turtle.rst:2392 +#: ../../library/turtle.rst:2397 msgid "" "A method :meth:`Turtle.filling` has been added. It returns a boolean value: " "``True`` if a filling process is under way, ``False`` otherwise. This " "behaviour corresponds to a ``fill()`` call without arguments in Python 2.6." msgstr "" -#: ../../library/turtle.rst:2398 +#: ../../library/turtle.rst:2403 msgid "Changes since Python 3.0" msgstr "Modificações desde a versão do Python 3.0" -#: ../../library/turtle.rst:2400 +#: ../../library/turtle.rst:2405 msgid "" -"The methods :meth:`Turtle.shearfactor`, :meth:`Turtle.shapetransform` and " -":meth:`Turtle.get_shapepoly` have been added. Thus the full range of regular" -" linear transforms is now available for transforming turtle shapes. " -":meth:`Turtle.tiltangle` has been enhanced in functionality: it now can be " -"used to get or set the tiltangle. :meth:`Turtle.settiltangle` has been " -"deprecated." +"The methods :meth:`Turtle.shearfactor`, :meth:`Turtle.shapetransform` and :" +"meth:`Turtle.get_shapepoly` have been added. Thus the full range of regular " +"linear transforms is now available for transforming turtle shapes. :meth:" +"`Turtle.tiltangle` has been enhanced in functionality: it now can be used to " +"get or set the tiltangle. :meth:`Turtle.settiltangle` has been deprecated." msgstr "" -#: ../../library/turtle.rst:2407 +#: ../../library/turtle.rst:2412 msgid "" -"The method :meth:`Screen.onkeypress` has been added as a complement to " -":meth:`Screen.onkey` which in fact binds actions to the keyrelease event. " +"The method :meth:`Screen.onkeypress` has been added as a complement to :meth:" +"`Screen.onkey` which in fact binds actions to the keyrelease event. " "Accordingly the latter has got an alias: :meth:`Screen.onkeyrelease`." msgstr "" -#: ../../library/turtle.rst:2411 +#: ../../library/turtle.rst:2416 msgid "" "The method :meth:`Screen.mainloop` has been added. So when working only " -"with Screen and Turtle objects one must not additionally import " -":func:`mainloop` anymore." +"with Screen and Turtle objects one must not additionally import :func:" +"`mainloop` anymore." msgstr "" -#: ../../library/turtle.rst:2415 +#: ../../library/turtle.rst:2420 msgid "" -"Two input methods has been added :meth:`Screen.textinput` and " -":meth:`Screen.numinput`. These popup input dialogs and return strings and " -"numbers respectively." +"Two input methods has been added :meth:`Screen.textinput` and :meth:`Screen." +"numinput`. These popup input dialogs and return strings and numbers " +"respectively." msgstr "" -#: ../../library/turtle.rst:2419 +#: ../../library/turtle.rst:2424 msgid "" "Two example scripts :file:`tdemo_nim.py` and :file:`tdemo_round_dance.py` " "have been added to the :file:`Lib/turtledemo` directory." diff --git a/library/types.po b/library/types.po index 7267158ad..0143acf77 100644 --- a/library/types.po +++ b/library/types.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,6 +26,7 @@ msgstr "" #: ../../library/types.rst:2 msgid ":mod:`types` --- Dynamic type creation and names for built-in types" msgstr "" +":mod:`types` --- Criação de tipos dinâmicos e nomes para tipos embutidos" #: ../../library/types.rst:7 msgid "**Source code:** :source:`Lib/types.py`" @@ -34,58 +37,75 @@ msgid "" "This module defines utility functions to assist in dynamic creation of new " "types." msgstr "" +"Este módulo define funções utilitárias para auxiliar na criação dinâmica de " +"novos tipos." #: ../../library/types.rst:14 msgid "" "It also defines names for some object types that are used by the standard " -"Python interpreter, but not exposed as builtins like :class:`int` or " -":class:`str` are." +"Python interpreter, but not exposed as builtins like :class:`int` or :class:" +"`str` are." msgstr "" +"Também define nomes para alguns tipos de objetos usados pelo interpretador " +"Python padrão, mas não expostos como componentes embutidos como :class:`int` " +"ou :class:`str` são." #: ../../library/types.rst:18 msgid "" "Finally, it provides some additional type-related utility classes and " "functions that are not fundamental enough to be builtins." msgstr "" +"Por fim, fornece algumas classes e funções adicionais relacionadas ao tipo " +"que não são fundamentais o suficiente para serem incorporadas." #: ../../library/types.rst:23 msgid "Dynamic Type Creation" -msgstr "" +msgstr "Criação de Tipo Dinâmico" #: ../../library/types.rst:27 msgid "Creates a class object dynamically using the appropriate metaclass." -msgstr "" +msgstr "Cria um objeto de classe dinamicamente usando a metaclasse apropriada." #: ../../library/types.rst:29 msgid "" -"The first three arguments are the components that make up a class definition" -" header: the class name, the base classes (in order), the keyword arguments " +"The first three arguments are the components that make up a class definition " +"header: the class name, the base classes (in order), the keyword arguments " "(such as ``metaclass``)." msgstr "" +"Os três primeiros argumentos são os componentes que compõem um cabeçalho de " +"definição de classe: o nome da classe, as classes base (em ordem), os " +"argumentos nomeados (como ``metaclass``)." #: ../../library/types.rst:33 msgid "" "The *exec_body* argument is a callback that is used to populate the freshly " "created class namespace. It should accept the class namespace as its sole " "argument and update the namespace directly with the class contents. If no " -"callback is provided, it has the same effect as passing in ``lambda ns: " -"ns``." +"callback is provided, it has the same effect as passing in ``lambda ns: ns``." msgstr "" +"O argumento *exec_body* é um retorno de chamada usado para preencher o " +"espaço para nome da classe recém-criado. Ele deve aceitar o espaço para nome " +"da classe como seu único argumento e atualizar o espaço para nome " +"diretamente com o conteúdo da classe. Se nenhum retorno de chamada for " +"fornecido, ele terá o mesmo efeito que passar em ``lambda ns: ns``." #: ../../library/types.rst:43 msgid "Calculates the appropriate metaclass and creates the class namespace." -msgstr "" +msgstr "Calcula a metaclasse apropriada e cria o espaço de nomes da classe." #: ../../library/types.rst:45 msgid "" -"The arguments are the components that make up a class definition header: the" -" class name, the base classes (in order) and the keyword arguments (such as " +"The arguments are the components that make up a class definition header: the " +"class name, the base classes (in order) and the keyword arguments (such as " "``metaclass``)." msgstr "" +"Os argumentos são os componentes que compõem um cabeçalho de definição de " +"classe: o nome da classe, as classes base (em ordem) e os argumentos " +"nomeados (como ``metaclass``)." #: ../../library/types.rst:49 msgid "The return value is a 3-tuple: ``metaclass, namespace, kwds``" -msgstr "" +msgstr "O valor de retorno é uma tupla de três: ``metaclass, namespace, kwds``" #: ../../library/types.rst:51 msgid "" @@ -94,6 +114,10 @@ msgid "" "with any ``'metaclass'`` entry removed. If no *kwds* argument is passed in, " "this will be an empty dict." msgstr "" +"*metaclass* é a metaclasse apropriada, *namespace* é o espaço de nomes da " +"classe preparada e *kwds* é uma cópia atualizada do argumento passado no " +"*kwds* com qualquer entrada ``'metaclass'`` removida. Se nenhum argumento " +"*kwds* for passado, este será um ditado vazio." #: ../../library/types.rst:60 msgid "" @@ -101,91 +125,116 @@ msgid "" "changed. Now an insertion-order-preserving mapping is used when the " "metaclass does not have a ``__prepare__`` method." msgstr "" +"O valor padrão para o elemento ``namespace`` da tupla retornada foi " +"alterado. Agora, um mapeamento de preservação da ordem de inserção é usado " +"quando a metaclasse não possui um método ``__prepare__``." #: ../../library/types.rst:67 msgid ":ref:`metaclasses`" -msgstr "" +msgstr ":ref:`metaclasses`" #: ../../library/types.rst:67 -msgid "" -"Full details of the class creation process supported by these functions" +msgid "Full details of the class creation process supported by these functions" msgstr "" +"Detalhes completos do processo de criação de classe suportado por essas " +"funções" #: ../../library/types.rst:69 msgid ":pep:`3115` - Metaclasses in Python 3000" -msgstr "" +msgstr ":pep:`3115` - Metaclasses no Python 3000" #: ../../library/types.rst:70 msgid "Introduced the ``__prepare__`` namespace hook" -msgstr "" +msgstr "Introduzido o gancho de espaço de nomes ``__prepare__``" #: ../../library/types.rst:74 msgid "Resolve MRO entries dynamically as specified by :pep:`560`." msgstr "" +"Resolve entradas MRO dinamicamente, conforme especificado por :pep:`560`." #: ../../library/types.rst:76 msgid "" -"This function looks for items in *bases* that are not instances of " -":class:`type`, and returns a tuple where each such object that has an " +"This function looks for items in *bases* that are not instances of :class:" +"`type`, and returns a tuple where each such object that has an " "``__mro_entries__`` method is replaced with an unpacked result of calling " "this method. If a *bases* item is an instance of :class:`type`, or it " "doesn't have an ``__mro_entries__`` method, then it is included in the " "return tuple unchanged." msgstr "" +"Esta função procura por itens em *bases* que não sejam instâncias de :class:" +"`type` e retorna uma tupla onde cada objeto que possui um método " +"``__mro_entries__`` é substituído por um resultado descompactado da chamada " +"desse método. Se um item *bases* é uma instância de :class:`type`, ou não " +"possui o método ``__mro_entries__``, ele é incluído na tupla de retorno " +"inalterada." #: ../../library/types.rst:87 msgid ":pep:`560` - Core support for typing module and generic types" -msgstr "" +msgstr ":pep:`560` - Suporte básico para inserir módulo e tipos genéricos" #: ../../library/types.rst:91 msgid "Standard Interpreter Types" -msgstr "" +msgstr "Tipos padrão do intepretador" #: ../../library/types.rst:93 msgid "" "This module provides names for many of the types that are required to " -"implement a Python interpreter. It deliberately avoids including some of the" -" types that arise only incidentally during processing such as the " +"implement a Python interpreter. It deliberately avoids including some of the " +"types that arise only incidentally during processing such as the " "``listiterator`` type." msgstr "" +"Este módulo fornece nomes para muitos dos tipos necessários para implementar " +"um interpretador Python. Evita deliberadamente incluir alguns dos tipos que " +"surgem apenas incidentalmente durante o processamento, como o tipo " +"``listiterator``." #: ../../library/types.rst:98 msgid "" "Typical use of these names is for :func:`isinstance` or :func:`issubclass` " "checks." msgstr "" +"O uso típico desses nomes é para verificações :func:`isinstance` ou : func:" +"`issubclass`." #: ../../library/types.rst:101 msgid "Standard names are defined for the following types:" -msgstr "" +msgstr "Os nomes padrão são definidos para os seguintes tipos:" #: ../../library/types.rst:106 msgid "" -"The type of user-defined functions and functions created by " -":keyword:`lambda` expressions." +"The type of user-defined functions and functions created by :keyword:" +"`lambda` expressions." msgstr "" +"O tipo de funções definidas pelo usuário e funções criadas por expressões :" +"keyword:`lambda`." #: ../../library/types.rst:112 msgid "" "The type of :term:`generator`-iterator objects, created by generator " "functions." msgstr "" +"O tipo de objetos de iterador :term:`gerador `, criados pelas " +"funções geradoras." #: ../../library/types.rst:118 msgid "" "The type of :term:`coroutine` objects, created by :keyword:`async def` " "functions." msgstr "" +"O tipo de objetos de :term:`coroutine`, criado por funções de :keyword:" +"`async def`." #: ../../library/types.rst:126 msgid "" "The type of :term:`asynchronous generator`-iterator objects, created by " "asynchronous generator functions." msgstr "" +"O tipo de objetos de iterador :term:`gerador assíncrono`, criados pelas " +"funções do gerador assíncrono." #: ../../library/types.rst:136 msgid "The type for code objects such as returned by :func:`compile`." -msgstr "" +msgstr "O tipo de objetos de código retornados por :func:`compile`." #: ../../library/types.rst:141 msgid "The type of methods of user-defined class instances." @@ -200,8 +249,8 @@ msgstr "" #: ../../library/types.rst:154 msgid "" -"The type of methods of some built-in data types and base classes such as " -":meth:`object.__init__` or :meth:`object.__lt__`." +"The type of methods of some built-in data types and base classes such as :" +"meth:`object.__init__` or :meth:`object.__lt__`." msgstr "" #: ../../library/types.rst:162 @@ -253,8 +302,8 @@ msgstr "" msgid "" "Which :term:`package` a module belongs to. If the module is top-level (i.e. " "not a part of any specific package) then the attribute should be set to " -"``''``, else it should be set to the name of the package (which can be " -":attr:`__name__` if the module is a package itself). Defaults to ``None``." +"``''``, else it should be set to the name of the package (which can be :attr:" +"`__name__` if the module is a package itself). Defaults to ``None``." msgstr "" #: ../../library/types.rst:220 @@ -283,9 +332,9 @@ msgstr "" #: ../../library/types.rst:238 msgid "" "The type of objects defined in extension modules with ``PyGetSetDef``, such " -"as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as" -" descriptor for object attributes; it has the same purpose as the " -":class:`property` type, but for classes defined in extension modules." +"as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as " +"descriptor for object attributes; it has the same purpose as the :class:" +"`property` type, but for classes defined in extension modules." msgstr "" #: ../../library/types.rst:246 @@ -317,8 +366,8 @@ msgstr "" #: ../../library/types.rst:271 msgid "" -"Return the item of the underlying mapping with key *key*. Raises a " -":exc:`KeyError` if *key* is not in the underlying mapping." +"Return the item of the underlying mapping with key *key*. Raises a :exc:" +"`KeyError` if *key* is not in the underlying mapping." msgstr "" #: ../../library/types.rst:276 @@ -338,14 +387,13 @@ msgstr "" #: ../../library/types.rst:289 msgid "" "Return the value for *key* if *key* is in the underlying mapping, else " -"*default*. If *default* is not given, it defaults to ``None``, so that this" -" method never raises a :exc:`KeyError`." +"*default*. If *default* is not given, it defaults to ``None``, so that this " +"method never raises a :exc:`KeyError`." msgstr "" #: ../../library/types.rst:295 msgid "" -"Return a new view of the underlying mapping's items (``(key, value)`` " -"pairs)." +"Return a new view of the underlying mapping's items (``(key, value)`` pairs)." msgstr "" #: ../../library/types.rst:300 @@ -408,10 +456,10 @@ msgstr "" #: ../../library/types.rst:360 msgid "" -"This function transforms a :term:`generator` function into a " -":term:`coroutine function` which returns a generator-based coroutine. The " -"generator-based coroutine is still a :term:`generator iterator`, but is also" -" considered to be a :term:`coroutine` object and is :term:`awaitable`. " +"This function transforms a :term:`generator` function into a :term:" +"`coroutine function` which returns a generator-based coroutine. The " +"generator-based coroutine is still a :term:`generator iterator`, but is also " +"considered to be a :term:`coroutine` object and is :term:`awaitable`. " "However, it may not necessarily implement the :meth:`__await__` method." msgstr "" @@ -421,8 +469,8 @@ msgstr "" #: ../../library/types.rst:369 msgid "" -"If *gen_func* is not a generator function, it will be wrapped. If it returns" -" an instance of :class:`collections.abc.Generator`, the instance will be " +"If *gen_func* is not a generator function, it will be wrapped. If it returns " +"an instance of :class:`collections.abc.Generator`, the instance will be " "wrapped in an *awaitable* proxy object. All other types of objects will be " "returned as is." msgstr "" diff --git a/library/typing.po b/library/typing.po index 07e229c34..81608bbae 100644 --- a/library/typing.po +++ b/library/typing.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-14 03:47+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:30+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,10 +41,10 @@ msgstr "" #: ../../library/typing.rst:19 msgid "" "This module supports type hints as specified by :pep:`484` and :pep:`526`. " -"The most fundamental support consists of the types :data:`Any`, " -":data:`Union`, :data:`Tuple`, :data:`Callable`, :class:`TypeVar`, and " -":class:`Generic`. For full specification please see :pep:`484`. For a " -"simplified introduction to type hints see :pep:`483`." +"The most fundamental support consists of the types :data:`Any`, :data:" +"`Union`, :data:`Tuple`, :data:`Callable`, :class:`TypeVar`, and :class:" +"`Generic`. For full specification please see :pep:`484`. For a simplified " +"introduction to type hints see :pep:`483`." msgstr "" #: ../../library/typing.rst:26 @@ -53,8 +55,8 @@ msgstr "" #: ../../library/typing.rst:31 msgid "" "In the function ``greeting``, the argument ``name`` is expected to be of " -"type :class:`str` and the return type :class:`str`. Subtypes are accepted as" -" arguments." +"type :class:`str` and the return type :class:`str`. Subtypes are accepted as " +"arguments." msgstr "" #: ../../library/typing.rst:36 @@ -63,9 +65,8 @@ msgstr "" #: ../../library/typing.rst:38 msgid "" -"A type alias is defined by assigning the type to the alias. In this example," -" ``Vector`` and ``List[float]`` will be treated as interchangeable " -"synonyms::" +"A type alias is defined by assigning the type to the alias. In this example, " +"``Vector`` and ``List[float]`` will be treated as interchangeable synonyms::" msgstr "" #: ../../library/typing.rst:50 @@ -98,8 +99,8 @@ msgstr "" msgid "" "You may still perform all ``int`` operations on a variable of type " "``UserId``, but the result will always be of type ``int``. This lets you " -"pass in a ``UserId`` wherever an ``int`` might be expected, but will prevent" -" you from accidentally creating a ``UserId`` in an invalid way::" +"pass in a ``UserId`` wherever an ``int`` might be expected, but will prevent " +"you from accidentally creating a ``UserId`` in an invalid way::" msgstr "" #: ../../library/typing.rst:103 @@ -139,8 +140,8 @@ msgstr "" #: ../../library/typing.rst:136 msgid "" -"Recall that the use of a type alias declares two types to be *equivalent* to" -" one another. Doing ``Alias = Original`` will make the static type checker " +"Recall that the use of a type alias declares two types to be *equivalent* to " +"one another. Doing ``Alias = Original`` will make the static type checker " "treat ``Alias`` as being *exactly equivalent* to ``Original`` in all cases. " "This is useful when you want to simplify complex type signatures." msgstr "" @@ -161,8 +162,8 @@ msgstr "" #: ../../library/typing.rst:153 msgid "" -"Frameworks expecting callback functions of specific signatures might be type" -" hinted using ``Callable[[Arg1Type, Arg2Type], ReturnType]``." +"Frameworks expecting callback functions of specific signatures might be type " +"hinted using ``Callable[[Arg1Type, Arg2Type], ReturnType]``." msgstr "" #: ../../library/typing.rst:156 @@ -182,8 +183,8 @@ msgstr "" #: ../../library/typing.rst:176 msgid "" -"Since type information about objects kept in containers cannot be statically" -" inferred in a generic way, abstract base classes have been extended to " +"Since type information about objects kept in containers cannot be statically " +"inferred in a generic way, abstract base classes have been extended to " "support subscription to denote expected types for container elements." msgstr "" @@ -216,8 +217,8 @@ msgstr "" #: ../../library/typing.rst:242 msgid "" -"A generic type can have any number of type variables, and type variables may" -" be constrained::" +"A generic type can have any number of type variables, and type variables may " +"be constrained::" msgstr "" #: ../../library/typing.rst:254 @@ -241,8 +242,8 @@ msgstr "" #: ../../library/typing.rst:285 msgid "" -"Using a generic class without specifying type parameters assumes :data:`Any`" -" for each position. In the following example, ``MyIterable`` is not generic " +"Using a generic class without specifying type parameters assumes :data:`Any` " +"for each position. In the following example, ``MyIterable`` is not generic " "but implicitly inherits from ``Iterable[Any]``::" msgstr "" @@ -281,9 +282,9 @@ msgstr "" #: ../../library/typing.rst:343 msgid "" -"Notice that no typechecking is performed when assigning a value of type " -":data:`Any` to a more precise type. For example, the static type checker did" -" not report an error when assigning ``a`` to ``s`` even though ``s`` was " +"Notice that no typechecking is performed when assigning a value of type :" +"data:`Any` to a more precise type. For example, the static type checker did " +"not report an error when assigning ``a`` to ``s`` even though ``s`` was " "declared to be of type :class:`str` and receives an :class:`int` value at " "runtime!" msgstr "" @@ -303,23 +304,23 @@ msgstr "" #: ../../library/typing.rst:365 msgid "" "Contrast the behavior of :data:`Any` with the behavior of :class:`object`. " -"Similar to :data:`Any`, every type is a subtype of :class:`object`. However," -" unlike :data:`Any`, the reverse is not true: :class:`object` is *not* a " +"Similar to :data:`Any`, every type is a subtype of :class:`object`. However, " +"unlike :data:`Any`, the reverse is not true: :class:`object` is *not* a " "subtype of every other type." msgstr "" #: ../../library/typing.rst:370 msgid "" "That means when the type of a value is :class:`object`, a type checker will " -"reject almost all operations on it, and assigning it to a variable (or using" -" it as a return value) of a more specialized type is a type error. For " +"reject almost all operations on it, and assigning it to a variable (or using " +"it as a return value) of a more specialized type is a type error. For " "example::" msgstr "" #: ../../library/typing.rst:392 msgid "" -"Use :class:`object` to indicate that a value could be any type in a typesafe" -" manner. Use :data:`Any` to indicate that a value is dynamically typed." +"Use :class:`object` to indicate that a value could be any type in a typesafe " +"manner. Use :data:`Any` to indicate that a value is dynamically typed." msgstr "" #: ../../library/typing.rst:396 @@ -350,14 +351,14 @@ msgstr "" msgid "" "The latter example's signature is essentially the overloading of ``(str, " "str) -> str`` and ``(bytes, bytes) -> bytes``. Also note that if the " -"arguments are instances of some subclass of :class:`str`, the return type is" -" still plain :class:`str`." +"arguments are instances of some subclass of :class:`str`, the return type is " +"still plain :class:`str`." msgstr "" #: ../../library/typing.rst:427 msgid "" -"At runtime, ``isinstance(x, T)`` will raise :exc:`TypeError`. In general, " -":func:`isinstance` and :func:`issubclass` should not be used with types." +"At runtime, ``isinstance(x, T)`` will raise :exc:`TypeError`. In general, :" +"func:`isinstance` and :func:`issubclass` should not be used with types." msgstr "" #: ../../library/typing.rst:430 @@ -409,9 +410,8 @@ msgstr "" #: ../../library/typing.rst:493 msgid "" -"The only legal parameters for :class:`Type` are classes, :data:`Any`, " -":ref:`type variables `, and unions of any of these types. For " -"example::" +"The only legal parameters for :class:`Type` are classes, :data:`Any`, :ref:" +"`type variables `, and unions of any of these types. For example::" msgstr "" #: ../../library/typing.rst:499 @@ -486,8 +486,8 @@ msgstr "" #: ../../library/typing.rst:570 msgid "" -"A generic version of :class:`collections.abc.Mapping`. This type can be used" -" as follows::" +"A generic version of :class:`collections.abc.Mapping`. This type can be used " +"as follows::" msgstr "" #: ../../library/typing.rst:578 @@ -508,8 +508,8 @@ msgstr "" #: ../../library/typing.rst:592 msgid "" -"This type represents the types :class:`bytes`, :class:`bytearray`, and " -":class:`memoryview`." +"This type represents the types :class:`bytes`, :class:`bytearray`, and :" +"class:`memoryview`." msgstr "" #: ../../library/typing.rst:595 @@ -743,9 +743,9 @@ msgstr "" #: ../../library/typing.rst:888 msgid "" -"A helper function to indicate a distinct types to a typechecker, see " -":ref:`distinct`. At runtime it returns a function that returns its argument." -" Usage::" +"A helper function to indicate a distinct types to a typechecker, see :ref:" +"`distinct`. At runtime it returns a function that returns its argument. " +"Usage::" msgstr "" #: ../../library/typing.rst:899 @@ -754,9 +754,9 @@ msgstr "" #: ../../library/typing.rst:901 msgid "" -"This returns the value unchanged. To the type checker this signals that the" -" return value has the designated type, but at runtime we intentionally don't" -" check anything (we want this to be as fast as possible)." +"This returns the value unchanged. To the type checker this signals that the " +"return value has the designated type, but at runtime we intentionally don't " +"check anything (we want this to be as fast as possible)." msgstr "" #: ../../library/typing.rst:908 @@ -779,8 +779,8 @@ msgstr "" msgid "" "The ``@overload`` decorator allows describing functions and methods that " "support multiple different combinations of argument types. A series of " -"``@overload``-decorated definitions must be followed by exactly one " -"non-``@overload``-decorated definition (for the same function/method). The " +"``@overload``-decorated definitions must be followed by exactly one non-" +"``@overload``-decorated definition (for the same function/method). The " "``@overload``-decorated definitions are for the benefit of the type checker " "only, since they will be overwritten by the non-``@overload``-decorated " "definition, while the latter is used at runtime but should be ignored by a " @@ -800,9 +800,9 @@ msgstr "" #: ../../library/typing.rst:951 msgid "" -"This works as class or function :term:`decorator`. With a class, it applies" -" recursively to all methods defined in that class (but not to methods " -"defined in its superclasses or subclasses)." +"This works as class or function :term:`decorator`. With a class, it applies " +"recursively to all methods defined in that class (but not to methods defined " +"in its superclasses or subclasses)." msgstr "" #: ../../library/typing.rst:955 @@ -815,8 +815,8 @@ msgstr "" #: ../../library/typing.rst:961 msgid "" -"This wraps the decorator with something that wraps the decorated function in" -" :func:`no_type_check`." +"This wraps the decorator with something that wraps the decorated function " +"in :func:`no_type_check`." msgstr "" #: ../../library/typing.rst:966 @@ -906,8 +906,8 @@ msgstr "" #: ../../library/typing.rst:1041 msgid "" -"Note that this is not the same concept as an optional argument, which is one" -" that has a default. An optional argument with a default does not require " +"Note that this is not the same concept as an optional argument, which is one " +"that has a default. An optional argument with a default does not require " "the ``Optional`` qualifier on its type annotation just because it is " "optional. For example::" msgstr "" @@ -957,8 +957,8 @@ msgid "" "types are rarely used as callback types. ``Callable[..., ReturnType]`` " "(literal ellipsis) can be used to type hint a callable taking any number of " "arguments and returning ``ReturnType``. A plain :data:`Callable` is " -"equivalent to ``Callable[..., Any]``, and in turn to " -":class:`collections.abc.Callable`." +"equivalent to ``Callable[..., Any]``, and in turn to :class:`collections.abc." +"Callable`." msgstr "" #: ../../library/typing.rst:1089 @@ -978,10 +978,10 @@ msgstr "" #: ../../library/typing.rst:1101 msgid "" -":data:`ClassVar` is not a class itself, and should not be used with " -":func:`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change " -"Python runtime behavior, but it can be used by third-party type checkers. " -"For example, a type checker might flag the following code as an error::" +":data:`ClassVar` is not a class itself, and should not be used with :func:" +"`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change Python " +"runtime behavior, but it can be used by third-party type checkers. For " +"example, a type checker might flag the following code as an error::" msgstr "" #: ../../library/typing.rst:1115 diff --git a/library/undoc.po b/library/undoc.po index 7ec393741..132989701 100644 --- a/library/undoc.po +++ b/library/undoc.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,36 +33,45 @@ msgid "" "should be documented. Feel free to contribute documentation for them! " "(Send via email to docs@python.org.)" msgstr "" +"Aqui está uma lista rápida de módulos que não estão documentados no momento, " +"mas que devem ser documentados. Sinta-se à vontade para contribuir com " +"documentação para eles! (Envie por e-mail para docs@python.org.)" #: ../../library/undoc.rst:11 msgid "" -"The idea and original contents for this chapter were taken from a posting by" -" Fredrik Lundh; the specific contents of this chapter have been " -"substantially revised." +"The idea and original contents for this chapter were taken from a posting by " +"Fredrik Lundh; the specific contents of this chapter have been substantially " +"revised." msgstr "" +"A ideia e o conteúdo original deste capítulo foram retirados de uma " +"publicação de Fredrik Lundh; o conteúdo específico deste capítulo foi " +"substancialmente revisado." #: ../../library/undoc.rst:17 msgid "Platform specific modules" -msgstr "" +msgstr "Módulos para plataformas específicas" #: ../../library/undoc.rst:19 msgid "" "These modules are used to implement the :mod:`os.path` module, and are not " "documented beyond this mention. There's little need to document these." msgstr "" +"Estes módulos são utilizados para implementar o módulo :mod:`os.path` e não " +"estão documentados além desta menção. Há pouca necessidade de documentar " +"isso." #: ../../library/undoc.rst:23 msgid ":mod:`ntpath`" -msgstr "" +msgstr ":mod:`ntpath`" #: ../../library/undoc.rst:23 msgid "--- Implementation of :mod:`os.path` on Win32 and Win64 platforms." -msgstr "" +msgstr "--- Implementação de :mod:`os.path` nas plataformas Win32 e Win64." #: ../../library/undoc.rst:25 msgid ":mod:`posixpath`" -msgstr "" +msgstr ":mod:`posixpath`" #: ../../library/undoc.rst:26 msgid "--- Implementation of :mod:`os.path` on POSIX." -msgstr "" +msgstr "--- Implementação de :mod:`os.path` no POSIX." diff --git a/library/unicodedata.po b/library/unicodedata.po index d23f6aa91..8456daed2 100644 --- a/library/unicodedata.po +++ b/library/unicodedata.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,23 +31,21 @@ msgstr "" msgid "" "This module provides access to the Unicode Character Database (UCD) which " "defines character properties for all Unicode characters. The data contained " -"in this database is compiled from the `UCD version 11.0.0 " -"`_." +"in this database is compiled from the `UCD version 11.0.0 `_." msgstr "" #: ../../library/unicodedata.rst:23 msgid "" "The module uses the same names and symbols as defined by Unicode Standard " -"Annex #44, `\"Unicode Character Database\" " -"`_. It defines the following " -"functions:" +"Annex #44, `\"Unicode Character Database\" `_. It defines the following functions:" msgstr "" #: ../../library/unicodedata.rst:31 msgid "" "Look up character by name. If a character with the given name is found, " -"return the corresponding character. If not found, :exc:`KeyError` is " -"raised." +"return the corresponding character. If not found, :exc:`KeyError` is raised." msgstr "" #: ../../library/unicodedata.rst:34 @@ -63,27 +62,26 @@ msgstr "" #: ../../library/unicodedata.rst:47 msgid "" "Returns the decimal value assigned to the character *chr* as integer. If no " -"such value is defined, *default* is returned, or, if not given, " -":exc:`ValueError` is raised." +"such value is defined, *default* is returned, or, if not given, :exc:" +"`ValueError` is raised." msgstr "" #: ../../library/unicodedata.rst:54 msgid "" "Returns the digit value assigned to the character *chr* as integer. If no " -"such value is defined, *default* is returned, or, if not given, " -":exc:`ValueError` is raised." +"such value is defined, *default* is returned, or, if not given, :exc:" +"`ValueError` is raised." msgstr "" #: ../../library/unicodedata.rst:61 msgid "" "Returns the numeric value assigned to the character *chr* as float. If no " -"such value is defined, *default* is returned, or, if not given, " -":exc:`ValueError` is raised." +"such value is defined, *default* is returned, or, if not given, :exc:" +"`ValueError` is raised." msgstr "" #: ../../library/unicodedata.rst:68 -msgid "" -"Returns the general category assigned to the character *chr* as string." +msgid "Returns the general category assigned to the character *chr* as string." msgstr "" #: ../../library/unicodedata.rst:74 @@ -99,8 +97,7 @@ msgid "" msgstr "" #: ../../library/unicodedata.rst:86 -msgid "" -"Returns the east asian width assigned to the character *chr* as string." +msgid "Returns the east asian width assigned to the character *chr* as string." msgstr "" #: ../../library/unicodedata.rst:92 @@ -126,9 +123,9 @@ msgstr "" msgid "" "The Unicode standard defines various normalization forms of a Unicode " "string, based on the definition of canonical equivalence and compatibility " -"equivalence. In Unicode, several characters can be expressed in various way." -" For example, the character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can" -" also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 " +"equivalence. In Unicode, several characters can be expressed in various way. " +"For example, the character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can " +"also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 " "(COMBINING CEDILLA)." msgstr "" @@ -146,16 +143,16 @@ msgid "" "In addition to these two forms, there are two additional normal forms based " "on compatibility equivalence. In Unicode, certain characters are supported " "which normally would be unified with other characters. For example, U+2160 " -"(ROMAN NUMERAL ONE) is really the same thing as U+0049 (LATIN CAPITAL LETTER" -" I). However, it is supported in Unicode for compatibility with existing " +"(ROMAN NUMERAL ONE) is really the same thing as U+0049 (LATIN CAPITAL LETTER " +"I). However, it is supported in Unicode for compatibility with existing " "character sets (e.g. gb2312)." msgstr "" #: ../../library/unicodedata.rst:127 msgid "" "The normal form KD (NFKD) will apply the compatibility decomposition, i.e. " -"replace all compatibility characters with their equivalents. The normal form" -" KC (NFKC) first applies the compatibility decomposition, followed by the " +"replace all compatibility characters with their equivalents. The normal form " +"KC (NFKC) first applies the compatibility decomposition, followed by the " "canonical composition." msgstr "" @@ -177,8 +174,8 @@ msgstr "" #: ../../library/unicodedata.rst:146 msgid "" "This is an object that has the same methods as the entire module, but uses " -"the Unicode database version 3.2 instead, for applications that require this" -" specific version of the Unicode database (such as IDNA)." +"the Unicode database version 3.2 instead, for applications that require this " +"specific version of the Unicode database (such as IDNA)." msgstr "" #: ../../library/unicodedata.rst:150 diff --git a/library/unittest.mock-examples.po b/library/unittest.mock-examples.po index bfd955c29..0559e52f9 100644 --- a/library/unittest.mock-examples.po +++ b/library/unittest.mock-examples.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,16 +55,15 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:31 msgid "" -"Once our mock has been used (``real.method`` in this example) it has methods" -" and attributes that allow you to make assertions about how it has been " -"used." +"Once our mock has been used (``real.method`` in this example) it has methods " +"and attributes that allow you to make assertions about how it has been used." msgstr "" #: ../../library/unittest.mock-examples.rst:36 msgid "" "In most of these examples the :class:`Mock` and :class:`MagicMock` classes " -"are interchangeable. As the ``MagicMock`` is the more capable class it makes" -" a sensible one to use by default." +"are interchangeable. As the ``MagicMock`` is the more capable class it makes " +"a sensible one to use by default." msgstr "" #: ../../library/unittest.mock-examples.rst:40 @@ -86,8 +87,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:64 msgid "" "In the last example we patched a method directly on an object to check that " -"it was called correctly. Another common use case is to pass an object into a" -" method (or some part of the system under test) and then check that it is " +"it was called correctly. Another common use case is to pass an object into a " +"method (or some part of the system under test) and then check that it is " "used in the correct way." msgstr "" @@ -99,16 +100,16 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:77 msgid "" -"So to test it we need to pass in an object with a ``close`` method and check" -" that it was called correctly." +"So to test it we need to pass in an object with a ``close`` method and check " +"that it was called correctly." msgstr "" #: ../../library/unittest.mock-examples.rst:85 msgid "" "We don't have to do any work to provide the 'close' method on our mock. " "Accessing close creates it. So, if 'close' hasn't already been called then " -"accessing it in the test will create it, but " -":meth:`~Mock.assert_called_with` will raise a failure exception." +"accessing it in the test will create it, but :meth:`~Mock." +"assert_called_with` will raise a failure exception." msgstr "" #: ../../library/unittest.mock-examples.rst:92 @@ -127,8 +128,8 @@ msgstr "" msgid "" "In the example below we have a function ``some_function`` that instantiates " "``Foo`` and calls a method on it. The call to :func:`patch` replaces the " -"class ``Foo`` with a mock. The ``Foo`` instance is the result of calling the" -" mock, so it is configured by modifying the mock :attr:`~Mock.return_value`." +"class ``Foo`` with a mock. The ``Foo`` instance is the result of calling the " +"mock, so it is configured by modifying the mock :attr:`~Mock.return_value`." msgstr "" #: ../../library/unittest.mock-examples.rst:116 @@ -137,9 +138,9 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:118 msgid "" -"It can be useful to give your mocks a name. The name is shown in the repr of" -" the mock and can be helpful when the mock appears in test failure messages." -" The name is also propagated to attributes or methods of the mock:" +"It can be useful to give your mocks a name. The name is shown in the repr of " +"the mock and can be helpful when the mock appears in test failure messages. " +"The name is also propagated to attributes or methods of the mock:" msgstr "" #: ../../library/unittest.mock-examples.rst:130 @@ -148,9 +149,9 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:132 msgid "" -"Often you want to track more than a single call to a method. The " -":attr:`~Mock.mock_calls` attribute records all calls to child attributes of " -"the mock - and also to their children." +"Often you want to track more than a single call to a method. The :attr:" +"`~Mock.mock_calls` attribute records all calls to child attributes of the " +"mock - and also to their children." msgstr "" #: ../../library/unittest.mock-examples.rst:144 @@ -158,8 +159,7 @@ msgid "" "If you make an assertion about ``mock_calls`` and any unexpected methods " "have been called, then the assertion will fail. This is useful because as " "well as asserting that the calls you expected have been made, you are also " -"checking that they were made in the right order and with no additional " -"calls:" +"checking that they were made in the right order and with no additional calls:" msgstr "" #: ../../library/unittest.mock-examples.rst:149 @@ -170,9 +170,9 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:156 msgid "" -"However, parameters to calls that return mocks are not recorded, which means" -" it is not possible to track nested calls where the parameters used to " -"create ancestors are important:" +"However, parameters to calls that return mocks are not recorded, which means " +"it is not possible to track nested calls where the parameters used to create " +"ancestors are important:" msgstr "" #: ../../library/unittest.mock-examples.rst:167 @@ -210,8 +210,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:214 msgid "" -"It is the call to ``.call_list()`` that turns our call object into a list of" -" calls representing the chained calls." +"It is the call to ``.call_list()`` that turns our call object into a list of " +"calls representing the chained calls." msgstr "" #: ../../library/unittest.mock-examples.rst:219 @@ -255,8 +255,8 @@ msgid "" "One problem with over use of mocking is that it couples your tests to the " "implementation of your mocks rather than your real code. Suppose you have a " "class that implements ``some_method``. In a test for another class, you " -"provide a mock of this object that *also* provides ``some_method``. If later" -" you refactor the first class, so that it no longer has ``some_method`` - " +"provide a mock of this object that *also* provides ``some_method``. If later " +"you refactor the first class, so that it no longer has ``some_method`` - " "then your tests will continue to pass even though your code is now broken!" msgstr "" @@ -266,8 +266,8 @@ msgid "" "mock, using the *spec* keyword argument. Accessing methods / attributes on " "the mock that don't exist on your specification object will immediately " "raise an attribute error. If you change the implementation of your " -"specification, then tests that use that class will start failing immediately" -" without you having to instantiate the class in those tests." +"specification, then tests that use that class will start failing immediately " +"without you having to instantiate the class in those tests." msgstr "" #: ../../library/unittest.mock-examples.rst:289 @@ -300,25 +300,28 @@ msgid "" "they are looked up. This is normally straightforward, but for a quick guide " "read :ref:`where to patch `." msgstr "" +"Com :func:`patch`, é importante que você faça o patch de objetos no espaço " +"de nomes onde eles são procurados. Normalmente, isso é simples, mas para um " +"guia rápido, leia :ref:`onde fazer o patch `." #: ../../library/unittest.mock-examples.rst:319 msgid "" "A common need in tests is to patch a class attribute or a module attribute, " "for example patching a builtin or patching a class in a module to test that " "it is instantiated. Modules and classes are effectively global, so patching " -"on them has to be undone after the test or the patch will persist into other" -" tests and cause hard to diagnose problems." +"on them has to be undone after the test or the patch will persist into other " +"tests and cause hard to diagnose problems." msgstr "" #: ../../library/unittest.mock-examples.rst:325 msgid "" -"mock provides three convenient decorators for this: :func:`patch`, " -":func:`patch.object` and :func:`patch.dict`. ``patch`` takes a single " -"string, of the form ``package.module.Class.attribute`` to specify the " -"attribute you are patching. It also optionally takes a value that you want " -"the attribute (or class or whatever) to be replaced with. 'patch.object' " -"takes an object and the name of the attribute you would like patched, plus " -"optionally the value to patch it with." +"mock provides three convenient decorators for this: :func:`patch`, :func:" +"`patch.object` and :func:`patch.dict`. ``patch`` takes a single string, of " +"the form ``package.module.Class.attribute`` to specify the attribute you are " +"patching. It also optionally takes a value that you want the attribute (or " +"class or whatever) to be replaced with. 'patch.object' takes an object and " +"the name of the attribute you would like patched, plus optionally the value " +"to patch it with." msgstr "" #: ../../library/unittest.mock-examples.rst:333 @@ -327,8 +330,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:350 msgid "" -"If you are patching a module (including :mod:`builtins`) then use " -":func:`patch` instead of :func:`patch.object`:" +"If you are patching a module (including :mod:`builtins`) then use :func:" +"`patch` instead of :func:`patch.object`:" msgstr "" #: ../../library/unittest.mock-examples.rst:360 @@ -365,6 +368,9 @@ msgid "" "during a scope and restoring the dictionary to its original state when the " "test ends:" msgstr "" +"Também existe :func:`patch.dict` para definir valores em um dicionário " +"apenas durante um escopo e restaurar o dicionário ao seu estado original " +"quando o teste termina:" #: ../../library/unittest.mock-examples.rst:419 msgid "" @@ -380,8 +386,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:436 msgid "" -"As an alternative ``patch``, ``patch.object`` and ``patch.dict`` can be used" -" as class decorators. When used in this way it is the same as applying the " +"As an alternative ``patch``, ``patch.object`` and ``patch.dict`` can be used " +"as class decorators. When used in this way it is the same as applying the " "decorator individually to every method whose name starts with \"test\"." msgstr "" @@ -448,8 +454,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:496 msgid "" -"We can do that in a slightly nicer way using the " -":meth:`~Mock.configure_mock` method to directly set the return value for us:" +"We can do that in a slightly nicer way using the :meth:`~Mock." +"configure_mock` method to directly set the return value for us:" msgstr "" #: ../../library/unittest.mock-examples.rst:505 @@ -536,8 +542,8 @@ msgstr "" msgid "" "A generator method / function is called to return the generator object. It " "is the generator object that is then iterated over. The protocol method for " -"iteration is :meth:`~container.__iter__`, so we can mock this using a " -":class:`MagicMock`." +"iteration is :meth:`~container.__iter__`, so we can mock this using a :class:" +"`MagicMock`." msgstr "" #: ../../library/unittest.mock-examples.rst:575 @@ -551,18 +557,18 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:589 msgid "" -"To configure the values returned from the iteration (implicit in the call to" -" :class:`list`), we need to configure the object returned by the call to " +"To configure the values returned from the iteration (implicit in the call " +"to :class:`list`), we need to configure the object returned by the call to " "``foo.iter()``." msgstr "" #: ../../library/unittest.mock-examples.rst:597 msgid "" -"There are also generator expressions and more `advanced uses " -"`_ of generators, but we aren't" -" concerned about them here. A very good introduction to generators and how " -"powerful they are is: `Generator Tricks for Systems Programmers " -"`_." +"There are also generator expressions and more `advanced uses `_ of generators, but we aren't concerned " +"about them here. A very good introduction to generators and how powerful " +"they are is: `Generator Tricks for Systems Programmers `_." msgstr "" #: ../../library/unittest.mock-examples.rst:605 @@ -573,10 +579,10 @@ msgstr "" msgid "" "If you want several patches in place for multiple test methods the obvious " "way is to apply the patch decorators to every method. This can feel like " -"unnecessary repetition. For Python 2.6 or more recent you can use " -":func:`patch` (in all its various forms) as a class decorator. This applies " -"the patches to all test methods on the class. A test method is identified by" -" methods whose names start with ``test``:" +"unnecessary repetition. For Python 2.6 or more recent you can use :func:" +"`patch` (in all its various forms) as a class decorator. This applies the " +"patches to all test methods on the class. A test method is identified by " +"methods whose names start with ``test``:" msgstr "" #: ../../library/unittest.mock-examples.rst:631 @@ -588,10 +594,10 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:647 msgid "" -"If you use this technique you must ensure that the patching is \"undone\" by" -" calling ``stop``. This can be fiddlier than you might think, because if an " -"exception is raised in the setUp then tearDown is not called. " -":meth:`unittest.TestCase.addCleanup` makes this easier:" +"If you use this technique you must ensure that the patching is \"undone\" by " +"calling ``stop``. This can be fiddlier than you might think, because if an " +"exception is raised in the setUp then tearDown is not called. :meth:" +"`unittest.TestCase.addCleanup` makes this easier:" msgstr "" #: ../../library/unittest.mock-examples.rst:665 @@ -605,11 +611,11 @@ msgid "" "passed in as the first argument because I want to make asserts about which " "objects were calling this particular method. The issue is that you can't " "patch with a mock for this, because if you replace an unbound method with a " -"mock it doesn't become a bound method when fetched from the instance, and so" -" it doesn't get self passed in. The workaround is to patch the unbound " -"method with a real function instead. The :func:`patch` decorator makes it so" -" simple to patch out methods with a mock that having to create a real " -"function becomes a nuisance." +"mock it doesn't become a bound method when fetched from the instance, and so " +"it doesn't get self passed in. The workaround is to patch the unbound method " +"with a real function instead. The :func:`patch` decorator makes it so simple " +"to patch out methods with a mock that having to create a real function " +"becomes a nuisance." msgstr "" #: ../../library/unittest.mock-examples.rst:678 @@ -642,17 +648,17 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:713 msgid "" -"If your mock is only being called once you can use the " -":meth:`assert_called_once_with` method that also asserts that the " -":attr:`call_count` is one." +"If your mock is only being called once you can use the :meth:" +"`assert_called_once_with` method that also asserts that the :attr:" +"`call_count` is one." msgstr "" #: ../../library/unittest.mock-examples.rst:724 msgid "" "Both ``assert_called_with`` and ``assert_called_once_with`` make assertions " "about the *most recent* call. If your mock is going to be called several " -"times, and you want to make assertions about *all* those calls you can use " -":attr:`~Mock.call_args_list`:" +"times, and you want to make assertions about *all* those calls you can use :" +"attr:`~Mock.call_args_list`:" msgstr "" #: ../../library/unittest.mock-examples.rst:736 @@ -672,8 +678,8 @@ msgid "" "Another situation is rare, but can bite you, is when your mock is called " "with mutable arguments. ``call_args`` and ``call_args_list`` store " "*references* to the arguments. If the arguments are mutated by the code " -"under test then you can no longer make assertions about what the values were" -" when the mock was called." +"under test then you can no longer make assertions about what the values were " +"when the mock was called." msgstr "" #: ../../library/unittest.mock-examples.rst:753 @@ -700,15 +706,15 @@ msgid "" "Here's one solution that uses the :attr:`side_effect` functionality. If you " "provide a ``side_effect`` function for a mock then ``side_effect`` will be " "called with the same args as the mock. This gives us an opportunity to copy " -"the arguments and store them for later assertions. In this example I'm using" -" *another* mock to store the arguments so that I can use the mock methods " -"for doing the assertion. Again a helper function sets this up for me." +"the arguments and store them for later assertions. In this example I'm using " +"*another* mock to store the arguments so that I can use the mock methods for " +"doing the assertion. Again a helper function sets this up for me." msgstr "" #: ../../library/unittest.mock-examples.rst:812 msgid "" -"``copy_call_args`` is called with the mock that will be called. It returns a" -" new mock that we do the assertion on. The ``side_effect`` function makes a " +"``copy_call_args`` is called with the mock that will be called. It returns a " +"new mock that we do the assertion on. The ``side_effect`` function makes a " "copy of the args and calls our ``new_mock`` with the copy." msgstr "" @@ -721,9 +727,9 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:832 msgid "" -"An alternative approach is to create a subclass of :class:`Mock` or " -":class:`MagicMock` that copies (using :func:`copy.deepcopy`) the arguments. " -"Here's an example implementation:" +"An alternative approach is to create a subclass of :class:`Mock` or :class:" +"`MagicMock` that copies (using :func:`copy.deepcopy`) the arguments. Here's " +"an example implementation:" msgstr "" #: ../../library/unittest.mock-examples.rst:856 @@ -740,9 +746,9 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:864 msgid "" -"Using patch as a context manager is nice, but if you do multiple patches you" -" can end up with nested with statements indenting further and further to the" -" right:" +"Using patch as a context manager is nice, but if you do multiple patches you " +"can end up with nested with statements indenting further and further to the " +"right:" msgstr "" #: ../../library/unittest.mock-examples.rst:882 @@ -765,9 +771,9 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:915 msgid "" -"We can do this with :class:`MagicMock`, which will behave like a dictionary," -" and using :data:`~Mock.side_effect` to delegate dictionary access to a real" -" underlying dictionary that is under our control." +"We can do this with :class:`MagicMock`, which will behave like a dictionary, " +"and using :data:`~Mock.side_effect` to delegate dictionary access to a real " +"underlying dictionary that is under our control." msgstr "" #: ../../library/unittest.mock-examples.rst:919 @@ -780,8 +786,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:923 msgid "" -"After the ``MagicMock`` has been used we can use attributes like " -":data:`~Mock.call_args_list` to assert about how the dictionary was used:" +"After the ``MagicMock`` has been used we can use attributes like :data:" +"`~Mock.call_args_list` to assert about how the dictionary was used:" msgstr "" #: ../../library/unittest.mock-examples.rst:939 @@ -800,8 +806,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:954 msgid "" "With these side effect functions in place, the ``mock`` will behave like a " -"normal dictionary but recording the access. It even raises a :exc:`KeyError`" -" if you try to access a key that doesn't exist." +"normal dictionary but recording the access. It even raises a :exc:`KeyError` " +"if you try to access a key that doesn't exist." msgstr "" #: ../../library/unittest.mock-examples.rst:973 @@ -832,18 +838,18 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:1019 msgid "" -"Sometimes this is inconvenient. For example, `one user " -"`_ is subclassing mock to" -" created a `Twisted adaptor " -"`_." -" Having this applied to attributes too actually causes errors." +"Sometimes this is inconvenient. For example, `one user `_ is subclassing mock to created a `Twisted " +"adaptor `_. Having this applied to attributes too actually causes " +"errors." msgstr "" #: ../../library/unittest.mock-examples.rst:1025 msgid "" "``Mock`` (in all its flavours) uses a method called ``_get_child_mock`` to " -"create these \"sub-mocks\" for attributes and return values. You can prevent" -" your subclass being used for attributes by overriding this method. The " +"create these \"sub-mocks\" for attributes and return values. You can prevent " +"your subclass being used for attributes by overriding this method. The " "signature is that it takes arbitrary keyword arguments (``**kwargs``) which " "are then passed onto the mock constructor:" msgstr "" @@ -851,8 +857,8 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:1042 msgid "" "An exception to this rule are the non-callable mocks. Attributes use the " -"callable variant because otherwise non-callable mocks couldn't have callable" -" methods." +"callable variant because otherwise non-callable mocks couldn't have callable " +"methods." msgstr "" #: ../../library/unittest.mock-examples.rst:1048 @@ -870,10 +876,10 @@ msgstr "" msgid "" "Generally local imports are to be avoided. They are sometimes done to " "prevent circular dependencies, for which there is *usually* a much better " -"way to solve the problem (refactor the code) or to prevent \"up front " -"costs\" by delaying the import. This can also be solved in better ways than " -"an unconditional local import (store the module as a class or module " -"attribute and only do the import on first use)." +"way to solve the problem (refactor the code) or to prevent \"up front costs" +"\" by delaying the import. This can also be solved in better ways than an " +"unconditional local import (store the module as a class or module attribute " +"and only do the import on first use)." msgstr "" #: ../../library/unittest.mock-examples.rst:1061 @@ -921,16 +927,16 @@ msgstr "" msgid "" "The :class:`Mock` class allows you to track the *order* of method calls on " "your mock objects through the :attr:`~Mock.method_calls` attribute. This " -"doesn't allow you to track the order of calls between separate mock objects," -" however we can use :attr:`~Mock.mock_calls` to achieve the same effect." +"doesn't allow you to track the order of calls between separate mock objects, " +"however we can use :attr:`~Mock.mock_calls` to achieve the same effect." msgstr "" #: ../../library/unittest.mock-examples.rst:1118 msgid "" -"Because mocks track calls to child mocks in ``mock_calls``, and accessing an" -" arbitrary attribute of a mock creates a child mock, we can create our " -"separate mocks from a parent one. Calls to those child mock will then all be" -" recorded, in order, in the ``mock_calls`` of the parent:" +"Because mocks track calls to child mocks in ``mock_calls``, and accessing an " +"arbitrary attribute of a mock creates a child mock, we can create our " +"separate mocks from a parent one. Calls to those child mock will then all be " +"recorded, in order, in the ``mock_calls`` of the parent:" msgstr "" #: ../../library/unittest.mock-examples.rst:1135 @@ -949,16 +955,16 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:1162 msgid "" "If many calls have been made, but you're only interested in a particular " -"sequence of them then an alternative is to use the " -":meth:`~Mock.assert_has_calls` method. This takes a list of calls " -"(constructed with the :data:`call` object). If that sequence of calls are in" -" :attr:`~Mock.mock_calls` then the assert succeeds." +"sequence of them then an alternative is to use the :meth:`~Mock." +"assert_has_calls` method. This takes a list of calls (constructed with the :" +"data:`call` object). If that sequence of calls are in :attr:`~Mock." +"mock_calls` then the assert succeeds." msgstr "" #: ../../library/unittest.mock-examples.rst:1176 msgid "" -"Even though the chained call ``m.one().two().three()`` aren't the only calls" -" that have been made to the mock, the assert still succeeds." +"Even though the chained call ``m.one().two().three()`` aren't the only calls " +"that have been made to the mock, the assert still succeeds." msgstr "" #: ../../library/unittest.mock-examples.rst:1179 @@ -983,10 +989,10 @@ msgstr "" msgid "" "Suppose we expect some object to be passed to a mock that by default " "compares equal based on object identity (which is the Python default for " -"user defined classes). To use :meth:`~Mock.assert_called_with` we would need" -" to pass in the exact same object. If we are only interested in some of the " -"attributes of this object then we can create a matcher that will check these" -" attributes for us." +"user defined classes). To use :meth:`~Mock.assert_called_with` we would need " +"to pass in the exact same object. If we are only interested in some of the " +"attributes of this object then we can create a matcher that will check these " +"attributes for us." msgstr "" #: ../../library/unittest.mock-examples.rst:1203 @@ -1013,25 +1019,24 @@ msgstr "" #: ../../library/unittest.mock-examples.rst:1246 msgid "" "The ``Matcher`` is instantiated with our compare function and the ``Foo`` " -"object we want to compare against. In ``assert_called_with`` the ``Matcher``" -" equality method will be called, which compares the object the mock was " +"object we want to compare against. In ``assert_called_with`` the ``Matcher`` " +"equality method will be called, which compares the object the mock was " "called with against the one we created our matcher with. If they match then " -"``assert_called_with`` passes, and if they don't an :exc:`AssertionError` is" -" raised:" +"``assert_called_with`` passes, and if they don't an :exc:`AssertionError` is " +"raised:" msgstr "" #: ../../library/unittest.mock-examples.rst:1259 msgid "" -"With a bit of tweaking you could have the comparison function raise the " -":exc:`AssertionError` directly and provide a more useful failure message." +"With a bit of tweaking you could have the comparison function raise the :exc:" +"`AssertionError` directly and provide a more useful failure message." msgstr "" #: ../../library/unittest.mock-examples.rst:1262 msgid "" -"As of version 1.5, the Python testing library `PyHamcrest " -"`_ provides similar functionality, that " -"may be useful here, in the form of its equality matcher " -"(`hamcrest.library.integration.match_equality " -"`_)." +"As of version 1.5, the Python testing library `PyHamcrest `_ provides similar functionality, that may be " +"useful here, in the form of its equality matcher (`hamcrest.library." +"integration.match_equality `_)." msgstr "" diff --git a/library/unittest.mock.po b/library/unittest.mock.po index b39b1ad87..ce4a7ccc1 100644 --- a/library/unittest.mock.po +++ b/library/unittest.mock.po @@ -1,20 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Vinícius Muniz de Melo , 2020 +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-18 10:52+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +27,7 @@ msgstr "" #: ../../library/unittest.mock.rst:3 msgid ":mod:`unittest.mock` --- mock object library" -msgstr "" +msgstr ":mod:`unittest.mock` --- biblioteca de objeto mock" #: ../../library/unittest.mock.rst:13 msgid "**Source code:** :source:`Lib/unittest/mock.py`" @@ -35,6 +39,9 @@ msgid "" "replace parts of your system under test with mock objects and make " "assertions about how they have been used." msgstr "" +":mod:`unittest.mock` é uma biblioteca para teste em Python. Que permite " +"substituir partes do seu sistema em teste por objetos simulados e fazer " +"afirmações sobre como elas foram usadas." #: ../../library/unittest.mock.rst:21 msgid "" @@ -44,15 +51,26 @@ msgid "" "and arguments they were called with. You can also specify return values and " "set needed attributes in the normal way." msgstr "" +": mod:`unittest.mock` fornece uma classe core: class:` Mock` removendo a " +"necessidade de criar uma série de stubs em todo o seu conjunto de testes. " +"Depois de executar uma ação, você pode fazer afirmações sobre quais " +"métodos / atributos foram usados e com quais argumentos foram chamados. Você " +"também pode especificar valores de retorno e definir os atributos " +"necessários da maneira normal." #: ../../library/unittest.mock.rst:27 msgid "" "Additionally, mock provides a :func:`patch` decorator that handles patching " -"module and class level attributes within the scope of a test, along with " -":const:`sentinel` for creating unique objects. See the `quick guide`_ for " -"some examples of how to use :class:`Mock`, :class:`MagicMock` and " -":func:`patch`." +"module and class level attributes within the scope of a test, along with :" +"const:`sentinel` for creating unique objects. See the `quick guide`_ for " +"some examples of how to use :class:`Mock`, :class:`MagicMock` and :func:" +"`patch`." msgstr "" +"Adicionalmente, o mock fornece um decorador :func:`patch` que lida com os " +"atributos do módulo de patch e do nível de classe no escopo de um teste, " +"junto com :const:`sentinel` para criar objetos únicos. Veja o `guia rápido`_ " +"para alguns exemplos de como usar :classe:` Mock`,:classe:`MagicMock` e :" +"func:`patch`." #: ../../library/unittest.mock.rst:33 msgid "" @@ -60,38 +78,54 @@ msgid "" "is based on the 'action -> assertion' pattern instead of 'record -> replay' " "used by many mocking frameworks." msgstr "" +"Mock é muito fácil de usar e foi projetado para uso com :mod:`unittest`. O " +"mock é baseado no padrão 'ação -> asserção' em vez de 'gravar -> reproduzir' " +"usado por muitas estruturas de simulação." #: ../../library/unittest.mock.rst:37 msgid "" "There is a backport of :mod:`unittest.mock` for earlier versions of Python, " "available as `mock on PyPI `_." msgstr "" +"Existe um backport de :mod:`unittest.mock` para versões anteriores do " +"Python, disponível como `mock no PyPI `_." #: ../../library/unittest.mock.rst:42 msgid "Quick Guide" -msgstr "" +msgstr "Guia Rápido" #: ../../library/unittest.mock.rst:44 msgid "" ":class:`Mock` and :class:`MagicMock` objects create all attributes and " -"methods as you access them and store details of how they have been used. You" -" can configure them, to specify return values or limit what attributes are " +"methods as you access them and store details of how they have been used. You " +"can configure them, to specify return values or limit what attributes are " "available, and then make assertions about how they have been used:" msgstr "" +"Os objetos :class:`Mock` e :class:`MagicMock` criam todos os atributos e " +"métodos à medida que você os acessa e armazena detalhes de como eles foram " +"usados. Você pode configurá-los, especificar valores de retorno ou limitar " +"quais atributos estão disponíveis e, em seguida, fazer afirmações sobre como " +"eles foram usados:" #: ../../library/unittest.mock.rst:56 msgid "" -":attr:`side_effect` allows you to perform side effects, including raising an" -" exception when a mock is called:" +":attr:`side_effect` allows you to perform side effects, including raising an " +"exception when a mock is called:" msgstr "" +":attr:`side_effect` permite que você execute efeitos colaterais, incluindo o " +"lançamento de uma exceção quando um mock é chamado:" #: ../../library/unittest.mock.rst:76 msgid "" -"Mock has many other ways you can configure it and control its behaviour. For" -" example the *spec* argument configures the mock to take its specification " +"Mock has many other ways you can configure it and control its behaviour. For " +"example the *spec* argument configures the mock to take its specification " "from another object. Attempting to access attributes or methods on the mock " "that don't exist on the spec will fail with an :exc:`AttributeError`." msgstr "" +"O Mock tem muitas outras maneiras de configurá-lo e controlar seu " +"comportamento. Por exemplo, o argumento *spec* configura o mock para obter " +"sua especificação de outro objeto. Tentar acessar atributos ou métodos no " +"mock que não existem na especificação falhará com um :exc:`AttributeError`." #: ../../library/unittest.mock.rst:81 msgid "" @@ -108,6 +142,11 @@ msgid "" "decorators are applied). This means from the bottom up, so in the example " "above the mock for ``module.ClassName1`` is passed in first." msgstr "" +"Quando você aninha decoradores de patches, as simulações são passadas para a " +"função decorada na mesma ordem em que foram aplicadas (a ordem normal " +"*Python* em que os decoradores são aplicados). Isso significa de baixo para " +"cima, portanto, no exemplo acima, a simulação para ``module.ClassName1`` é " +"passada primeiro." #: ../../library/unittest.mock.rst:105 msgid "" @@ -115,12 +154,17 @@ msgid "" "they are looked up. This is normally straightforward, but for a quick guide " "read :ref:`where to patch `." msgstr "" +"Com :func:`patch`, é importante que você faça o patch de objetos no espaço " +"de nomes onde eles são procurados. Normalmente, isso é simples, mas para um " +"guia rápido, leia :ref:`onde fazer o patch `." #: ../../library/unittest.mock.rst:109 msgid "" "As well as a decorator :func:`patch` can be used as a context manager in a " "with statement:" msgstr "" +"Assim como um decorador :func:`patch` pode ser usado como um gerenciador de " +"contexto em uma instrução with:" #: ../../library/unittest.mock.rst:119 msgid "" @@ -128,27 +172,39 @@ msgid "" "during a scope and restoring the dictionary to its original state when the " "test ends:" msgstr "" +"Também existe :func:`patch.dict` para definir valores em um dicionário " +"apenas durante um escopo e restaurar o dicionário ao seu estado original " +"quando o teste termina:" #: ../../library/unittest.mock.rst:130 msgid "" "Mock supports the mocking of Python :ref:`magic methods `. " -"The easiest way of using magic methods is with the :class:`MagicMock` class." -" It allows you to do things like:" +"The easiest way of using magic methods is with the :class:`MagicMock` class. " +"It allows you to do things like:" msgstr "" +"Mock possui suporte a simulação de :ref:`métodos mágicos ` de " +"Python. A maneira mais fácil de usar métodos mágicos é com a classe :class:" +"`MagicMock`. Ele permite que você faça coisas como:" #: ../../library/unittest.mock.rst:140 msgid "" "Mock allows you to assign functions (or other Mock instances) to magic " "methods and they will be called appropriately. The :class:`MagicMock` class " -"is just a Mock variant that has all of the magic methods pre-created for you" -" (well, all the useful ones anyway)." +"is just a Mock variant that has all of the magic methods pre-created for you " +"(well, all the useful ones anyway)." msgstr "" +"Mock permite atribuir funções (ou outras instâncias do Mock) a métodos " +"mágicos e elas serão chamadas apropriadamente. A classe :class:`MagicMock` é " +"apenas uma variante do Mock que possui todos os métodos mágicos pré-criados " +"para você (bem, todos os úteis de qualquer maneira)." #: ../../library/unittest.mock.rst:145 msgid "" "The following is an example of using magic methods with the ordinary Mock " "class:" msgstr "" +"A seguir, é apresentado um exemplo do uso de métodos mágicos com a classe " +"Mock comum:" #: ../../library/unittest.mock.rst:153 msgid "" @@ -180,8 +236,8 @@ msgstr "" #: ../../library/unittest.mock.rst:187 msgid "" -":class:`Mock` is a flexible mock object intended to replace the use of stubs" -" and test doubles throughout your code. Mocks are callable and create " +":class:`Mock` is a flexible mock object intended to replace the use of stubs " +"and test doubles throughout your code. Mocks are callable and create " "attributes as new mocks when you access them [#]_. Accessing the same " "attribute will always return the same mock. Mocks record how you use them, " "allowing you to make assertions about what your code has done to them." @@ -189,16 +245,20 @@ msgstr "" #: ../../library/unittest.mock.rst:193 msgid "" -":class:`MagicMock` is a subclass of :class:`Mock` with all the magic methods" -" pre-created and ready to use. There are also non-callable variants, useful " -"when you are mocking out objects that aren't callable: " -":class:`NonCallableMock` and :class:`NonCallableMagicMock`" +":class:`MagicMock` is a subclass of :class:`Mock` with all the magic methods " +"pre-created and ready to use. There are also non-callable variants, useful " +"when you are mocking out objects that aren't callable: :class:" +"`NonCallableMock` and :class:`NonCallableMagicMock`" msgstr "" +":class:`MagicMock` is a subclass of :class:`Mock` with all the magic methods " +"pre-created and ready to use. There are also non-callable variants, useful " +"when you are mocking out objects that aren't callable: :class:" +"`NonCallableMock` and :class:`NonCallableMagicMock`" #: ../../library/unittest.mock.rst:198 msgid "" -"The :func:`patch` decorators makes it easy to temporarily replace classes in" -" a particular module with a :class:`Mock` object. By default :func:`patch` " +"The :func:`patch` decorators makes it easy to temporarily replace classes in " +"a particular module with a :class:`Mock` object. By default :func:`patch` " "will create a :class:`MagicMock` for you. You can specify an alternative " "class of :class:`Mock` using the *new_callable* argument to :func:`patch`." msgstr "" @@ -212,17 +272,17 @@ msgstr "" #: ../../library/unittest.mock.rst:209 msgid "" "*spec*: This can be either a list of strings or an existing object (a class " -"or instance) that acts as the specification for the mock object. If you pass" -" in an object then a list of strings is formed by calling dir on the object " +"or instance) that acts as the specification for the mock object. If you pass " +"in an object then a list of strings is formed by calling dir on the object " "(excluding unsupported magic attributes and methods). Accessing any " "attribute not in this list will raise an :exc:`AttributeError`." msgstr "" #: ../../library/unittest.mock.rst:215 msgid "" -"If *spec* is an object (rather than a list of strings) then " -":attr:`~instance.__class__` returns the class of the spec object. This " -"allows mocks to pass :func:`isinstance` tests." +"If *spec* is an object (rather than a list of strings) then :attr:`~instance." +"__class__` returns the class of the spec object. This allows mocks to pass :" +"func:`isinstance` tests." msgstr "" #: ../../library/unittest.mock.rst:219 @@ -234,8 +294,8 @@ msgstr "" #: ../../library/unittest.mock.rst:223 msgid "" -"*side_effect*: A function to be called whenever the Mock is called. See the " -":attr:`~Mock.side_effect` attribute. Useful for raising exceptions or " +"*side_effect*: A function to be called whenever the Mock is called. See the :" +"attr:`~Mock.side_effect` attribute. Useful for raising exceptions or " "dynamically changing return values. The function is called with the same " "arguments as the mock, and unless it returns :data:`DEFAULT`, the return " "value of this function is used as the return value." @@ -267,18 +327,18 @@ msgstr "" #: ../../library/unittest.mock.rst:241 msgid "" "*unsafe*: By default if any attribute starts with *assert* or *assret* will " -"raise an :exc:`AttributeError`. Passing ``unsafe=True`` will allow access to" -" these attributes." +"raise an :exc:`AttributeError`. Passing ``unsafe=True`` will allow access to " +"these attributes." msgstr "" #: ../../library/unittest.mock.rst:247 msgid "" "*wraps*: Item for the mock object to wrap. If *wraps* is not ``None`` then " -"calling the Mock will pass the call through to the wrapped object (returning" -" the real result). Attribute access on the mock will return a Mock object " +"calling the Mock will pass the call through to the wrapped object (returning " +"the real result). Attribute access on the mock will return a Mock object " "that wraps the corresponding attribute of the wrapped object (so attempting " -"to access an attribute that doesn't exist will raise an " -":exc:`AttributeError`)." +"to access an attribute that doesn't exist will raise an :exc:" +"`AttributeError`)." msgstr "" #: ../../library/unittest.mock.rst:254 @@ -289,15 +349,15 @@ msgstr "" #: ../../library/unittest.mock.rst:257 msgid "" -"*name*: If the mock has a name then it will be used in the repr of the mock." -" This can be useful for debugging. The name is propagated to child mocks." +"*name*: If the mock has a name then it will be used in the repr of the mock. " +"This can be useful for debugging. The name is propagated to child mocks." msgstr "" #: ../../library/unittest.mock.rst:261 msgid "" "Mocks can also be called with arbitrary keyword arguments. These will be " -"used to set attributes on the mock after it is created. See the " -":meth:`configure_mock` method for details." +"used to set attributes on the mock after it is created. See the :meth:" +"`configure_mock` method for details." msgstr "" #: ../../library/unittest.mock.rst:267 @@ -316,8 +376,8 @@ msgstr "" #: ../../library/unittest.mock.rst:306 msgid "" -"Assert that the mock was called exactly once and that that call was with the" -" specified arguments." +"Assert that the mock was called exactly once and that that call was with the " +"specified arguments." msgstr "" #: ../../library/unittest.mock.rst:321 @@ -326,28 +386,28 @@ msgstr "" #: ../../library/unittest.mock.rst:323 msgid "" -"The assert passes if the mock has *ever* been called, unlike " -":meth:`assert_called_with` and :meth:`assert_called_once_with` that only " -"pass if the call is the most recent one, and in the case of " -":meth:`assert_called_once_with` it must also be the only call." +"The assert passes if the mock has *ever* been called, unlike :meth:" +"`assert_called_with` and :meth:`assert_called_once_with` that only pass if " +"the call is the most recent one, and in the case of :meth:" +"`assert_called_once_with` it must also be the only call." msgstr "" #: ../../library/unittest.mock.rst:336 msgid "" -"assert the mock has been called with the specified calls. The " -":attr:`mock_calls` list is checked for the calls." +"assert the mock has been called with the specified calls. The :attr:" +"`mock_calls` list is checked for the calls." msgstr "" #: ../../library/unittest.mock.rst:339 msgid "" -"If *any_order* is false (the default) then the calls must be sequential. " -"There can be extra calls before or after the specified calls." +"If *any_order* is false then the calls must be sequential. There can be " +"extra calls before or after the specified calls." msgstr "" #: ../../library/unittest.mock.rst:343 msgid "" -"If *any_order* is true then the calls can be in any order, but they must all" -" appear in :attr:`mock_calls`." +"If *any_order* is true then the calls can be in any order, but they must all " +"appear in :attr:`mock_calls`." msgstr "" #: ../../library/unittest.mock.rst:358 @@ -366,10 +426,10 @@ msgstr "" msgid "" "This can be useful where you want to make a series of assertions that reuse " "the same object. Note that :meth:`reset_mock` *doesn't* clear the return " -"value, :attr:`side_effect` or any child attributes you have set using normal" -" assignment by default. In case you want to reset *return_value* or " -":attr:`side_effect`, then pass the corresponding parameter as ``True``. " -"Child mocks and the return value mock (if any) are reset as well." +"value, :attr:`side_effect` or any child attributes you have set using normal " +"assignment by default. In case you want to reset *return_value* or :attr:" +"`side_effect`, then pass the corresponding parameter as ``True``. Child " +"mocks and the return value mock (if any) are reset as well." msgstr "" #: ../../library/unittest.mock.rst:394 @@ -389,8 +449,8 @@ msgstr "" #: ../../library/unittest.mock.rst:409 msgid "" "Attach a mock as an attribute of this one, replacing its name and parent. " -"Calls to the attached mock will be recorded in the :attr:`method_calls` and " -":attr:`mock_calls` attributes of this one." +"Calls to the attached mock will be recorded in the :attr:`method_calls` and :" +"attr:`mock_calls` attributes of this one." msgstr "" #: ../../library/unittest.mock.rst:416 @@ -472,22 +532,22 @@ msgid "" "If you pass in a function it will be called with same arguments as the mock " "and unless the function returns the :data:`DEFAULT` singleton the call to " "the mock will then return whatever the function returns. If the function " -"returns :data:`DEFAULT` then the mock will return its normal value (from the" -" :attr:`return_value`)." +"returns :data:`DEFAULT` then the mock will return its normal value (from " +"the :attr:`return_value`)." msgstr "" #: ../../library/unittest.mock.rst:532 msgid "" "If you pass in an iterable, it is used to retrieve an iterator which must " -"yield a value on every call. This value can either be an exception instance" -" to be raised, or a value to be returned from the call to the mock " -"(:data:`DEFAULT` handling is identical to the function case)." +"yield a value on every call. This value can either be an exception instance " +"to be raised, or a value to be returned from the call to the mock (:data:" +"`DEFAULT` handling is identical to the function case)." msgstr "" #: ../../library/unittest.mock.rst:537 msgid "" -"An example of a mock that raises an exception (to test exception handling of" -" an API):" +"An example of a mock that raises an exception (to test exception handling of " +"an API):" msgstr "" #: ../../library/unittest.mock.rst:547 @@ -511,16 +571,16 @@ msgstr "Configuração :attr:`side_effect` para ``None`` limpa isso:" #: ../../library/unittest.mock.rst:588 msgid "" "This is either ``None`` (if the mock hasn't been called), or the arguments " -"that the mock was last called with. This will be in the form of a tuple: the" -" first member is any ordered arguments the mock was called with (or an empty" -" tuple) and the second member is any keyword arguments (or an empty " +"that the mock was last called with. This will be in the form of a tuple: the " +"first member is any ordered arguments the mock was called with (or an empty " +"tuple) and the second member is any keyword arguments (or an empty " "dictionary)." msgstr "" #: ../../library/unittest.mock.rst:611 msgid "" -":attr:`call_args`, along with members of the lists :attr:`call_args_list`, " -":attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects. These " +":attr:`call_args`, along with members of the lists :attr:`call_args_list`, :" +"attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects. These " "are tuples, so they can be unpacked to get at the individual arguments and " "make more complex assertions. See :ref:`calls as tuples `." msgstr "" @@ -530,8 +590,8 @@ msgid "" "This is a list of all the calls made to the mock object in sequence (so the " "length of the list is the number of times it has been called). Before any " "calls have been made it is an empty list. The :data:`call` object can be " -"used for conveniently constructing lists of calls to compare with " -":attr:`call_args_list`." +"used for conveniently constructing lists of calls to compare with :attr:" +"`call_args_list`." msgstr "" #: ../../library/unittest.mock.rst:636 @@ -584,33 +644,33 @@ msgstr "" #: ../../library/unittest.mock.rst:708 msgid "" -":attr:`__class__` is assignable to, this allows a mock to pass an " -":func:`isinstance` check without forcing you to use a spec:" +":attr:`__class__` is assignable to, this allows a mock to pass an :func:" +"`isinstance` check without forcing you to use a spec:" msgstr "" #: ../../library/unittest.mock.rst:718 msgid "" -"A non-callable version of :class:`Mock`. The constructor parameters have the" -" same meaning of :class:`Mock`, with the exception of *return_value* and " +"A non-callable version of :class:`Mock`. The constructor parameters have the " +"same meaning of :class:`Mock`, with the exception of *return_value* and " "*side_effect* which have no meaning on a non-callable mock." msgstr "" #: ../../library/unittest.mock.rst:722 msgid "" -"Mock objects that use a class or an instance as a :attr:`spec` or " -":attr:`spec_set` are able to pass :func:`isinstance` tests:" +"Mock objects that use a class or an instance as a :attr:`spec` or :attr:" +"`spec_set` are able to pass :func:`isinstance` tests:" msgstr "" #: ../../library/unittest.mock.rst:732 msgid "" -"The :class:`Mock` classes have support for mocking magic methods. See " -":ref:`magic methods ` for the full details." +"The :class:`Mock` classes have support for mocking magic methods. See :ref:" +"`magic methods ` for the full details." msgstr "" #: ../../library/unittest.mock.rst:735 msgid "" -"The mock classes and the :func:`patch` decorators all take arbitrary keyword" -" arguments for configuration. For the :func:`patch` decorators the keywords " +"The mock classes and the :func:`patch` decorators all take arbitrary keyword " +"arguments for configuration. For the :func:`patch` decorators the keywords " "are passed to the constructor of the mock being created. The keyword " "arguments are for configuring attributes of the mock:" msgstr "" @@ -632,10 +692,10 @@ msgstr "" #: ../../library/unittest.mock.rst:774 msgid "" -"This applies to :meth:`~Mock.assert_called_with`, " -":meth:`~Mock.assert_called_once_with`, :meth:`~Mock.assert_has_calls` and " -":meth:`~Mock.assert_any_call`. When :ref:`auto-speccing`, it will also " -"apply to method calls on the mock object." +"This applies to :meth:`~Mock.assert_called_with`, :meth:`~Mock." +"assert_called_once_with`, :meth:`~Mock.assert_has_calls` and :meth:`~Mock." +"assert_any_call`. When :ref:`auto-speccing`, it will also apply to method " +"calls on the mock object." msgstr "" #: ../../library/unittest.mock.rst:779 @@ -644,9 +704,9 @@ msgstr "" #: ../../library/unittest.mock.rst:785 msgid "" -"A mock intended to be used as a property, or other descriptor, on a class. " -":class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods " -"so you can specify a return value when it is fetched." +"A mock intended to be used as a property, or other descriptor, on a class. :" +"class:`PropertyMock` provides :meth:`__get__` and :meth:`__set__` methods so " +"you can specify a return value when it is fetched." msgstr "" #: ../../library/unittest.mock.rst:789 @@ -657,9 +717,9 @@ msgstr "" #: ../../library/unittest.mock.rst:810 msgid "" -"Because of the way mock attributes are stored you can't directly attach a " -":class:`PropertyMock` to a mock object. Instead you can attach it to the " -"mock type object::" +"Because of the way mock attributes are stored you can't directly attach a :" +"class:`PropertyMock` to a mock object. Instead you can attach it to the mock " +"type object::" msgstr "" #: ../../library/unittest.mock.rst:823 @@ -668,30 +728,30 @@ msgstr "" #: ../../library/unittest.mock.rst:825 msgid "" -"Mock objects are callable. The call will return the value set as the " -":attr:`~Mock.return_value` attribute. The default return value is a new Mock" -" object; it is created the first time the return value is accessed (either " +"Mock objects are callable. The call will return the value set as the :attr:" +"`~Mock.return_value` attribute. The default return value is a new Mock " +"object; it is created the first time the return value is accessed (either " "explicitly or by calling the Mock) - but it is stored and the same one " "returned each time." msgstr "" #: ../../library/unittest.mock.rst:831 msgid "" -"Calls made to the object will be recorded in the attributes like " -":attr:`~Mock.call_args` and :attr:`~Mock.call_args_list`." +"Calls made to the object will be recorded in the attributes like :attr:" +"`~Mock.call_args` and :attr:`~Mock.call_args_list`." msgstr "" #: ../../library/unittest.mock.rst:834 msgid "" "If :attr:`~Mock.side_effect` is set then it will be called after the call " -"has been recorded, so if :attr:`side_effect` raises an exception the call is" -" still recorded." +"has been recorded, so if :attr:`side_effect` raises an exception the call is " +"still recorded." msgstr "" #: ../../library/unittest.mock.rst:838 msgid "" -"The simplest way to make a mock raise an exception when called is to make " -":attr:`~Mock.side_effect` an exception class or instance:" +"The simplest way to make a mock raise an exception when called is to make :" +"attr:`~Mock.side_effect` an exception class or instance:" msgstr "" #: ../../library/unittest.mock.rst:856 @@ -706,8 +766,8 @@ msgstr "" msgid "" "If you want the mock to still return the default return value (a new mock), " "or any set return value, then there are two ways of doing this. Either " -"return :attr:`mock.return_value` from inside :attr:`side_effect`, or return " -":data:`DEFAULT`:" +"return :attr:`mock.return_value` from inside :attr:`side_effect`, or return :" +"data:`DEFAULT`:" msgstr "" #: ../../library/unittest.mock.rst:891 @@ -725,8 +785,8 @@ msgstr "" #: ../../library/unittest.mock.rst:921 msgid "" -"If any members of the iterable are exceptions they will be raised instead of" -" returned::" +"If any members of the iterable are exceptions they will be raised instead of " +"returned::" msgstr "" #: ../../library/unittest.mock.rst:939 @@ -741,10 +801,10 @@ msgstr "" #: ../../library/unittest.mock.rst:944 msgid "" -"You may want a mock object to return ``False`` to a :func:`hasattr` call, or" -" raise an :exc:`AttributeError` when an attribute is fetched. You can do " -"this by providing an object as a :attr:`spec` for a mock, but that isn't " -"always convenient." +"You may want a mock object to return ``False`` to a :func:`hasattr` call, or " +"raise an :exc:`AttributeError` when an attribute is fetched. You can do this " +"by providing an object as a :attr:`spec` for a mock, but that isn't always " +"convenient." msgstr "" #: ../../library/unittest.mock.rst:948 @@ -761,8 +821,8 @@ msgstr "" msgid "" "Since \"name\" is an argument to the :class:`Mock` constructor, if you want " "your mock object to have a \"name\" attribute you can't just pass it in at " -"creation time. There are two alternatives. One option is to use " -":meth:`~Mock.configure_mock`::" +"creation time. There are two alternatives. One option is to use :meth:`~Mock." +"configure_mock`::" msgstr "" #: ../../library/unittest.mock.rst:977 @@ -779,8 +839,8 @@ msgstr "" msgid "" "When you attach a mock as an attribute of another mock (or as the return " "value) it becomes a \"child\" of that mock. Calls to the child are recorded " -"in the :attr:`~Mock.method_calls` and :attr:`~Mock.mock_calls` attributes of" -" the parent. This is useful for configuring child mocks and then attaching " +"in the :attr:`~Mock.method_calls` and :attr:`~Mock.mock_calls` attributes of " +"the parent. This is useful for configuring child mocks and then attaching " "them to the parent, or for attaching mocks to a parent that records all " "calls to the children and allows you to make assertions about the order of " "calls between mocks:" @@ -795,8 +855,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1015 msgid "" "Mocks created for you by :func:`patch` are automatically given names. To " -"attach mocks that have names to a parent you use the " -":meth:`~Mock.attach_mock` method:" +"attach mocks that have names to a parent you use the :meth:`~Mock." +"attach_mock` method:" msgstr "" #: ../../library/unittest.mock.rst:1033 @@ -804,8 +864,8 @@ msgid "" "The only exceptions are magic methods and attributes (those that have " "leading and trailing double underscores). Mock doesn't create these but " "instead raises an :exc:`AttributeError`. This is because the interpreter " -"will often implicitly request these methods, and gets *very* confused to get" -" a new Mock object when it expects a magic method. If you need magic method " +"will often implicitly request these methods, and gets *very* confused to get " +"a new Mock object when it expects a magic method. If you need magic method " "support see :ref:`magic methods `." msgstr "" @@ -843,9 +903,9 @@ msgstr "" msgid "" "If *new* is omitted, then the target is replaced with a :class:`MagicMock`. " "If :func:`patch` is used as a decorator and *new* is omitted, the created " -"mock is passed in as an extra argument to the decorated function. If " -":func:`patch` is used as a context manager the created mock is returned by " -"the context manager." +"mock is passed in as an extra argument to the decorated function. If :func:" +"`patch` is used as a context manager the created mock is returned by the " +"context manager." msgstr "" #: ../../library/unittest.mock.rst:1071 @@ -859,8 +919,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1077 msgid "" -"The *spec* and *spec_set* keyword arguments are passed to the " -":class:`MagicMock` if patch is creating one for you." +"The *spec* and *spec_set* keyword arguments are passed to the :class:" +"`MagicMock` if patch is creating one for you." msgstr "" #: ../../library/unittest.mock.rst:1080 @@ -872,8 +932,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1083 msgid "" "*new_callable* allows you to specify a different class, or callable object, " -"that will be called to create the *new* object. By default " -":class:`MagicMock` is used." +"that will be called to create the *new* object. By default :class:" +"`MagicMock` is used." msgstr "" #: ../../library/unittest.mock.rst:1087 @@ -884,24 +944,24 @@ msgid "" "attribute of the object being replaced. Methods and functions being mocked " "will have their arguments checked and will raise a :exc:`TypeError` if they " "are called with the wrong signature. For mocks replacing a class, their " -"return value (the 'instance') will have the same spec as the class. See the " -":func:`create_autospec` function and :ref:`auto-speccing`." +"return value (the 'instance') will have the same spec as the class. See the :" +"func:`create_autospec` function and :ref:`auto-speccing`." msgstr "" #: ../../library/unittest.mock.rst:1097 msgid "" -"Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an" -" arbitrary object as the spec instead of the one being replaced." +"Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an " +"arbitrary object as the spec instead of the one being replaced." msgstr "" #: ../../library/unittest.mock.rst:1100 msgid "" "By default :func:`patch` will fail to replace attributes that don't exist. " "If you pass in ``create=True``, and the attribute doesn't exist, patch will " -"create the attribute for you when the patched function is called, and delete" -" it again after the patched function has exited. This is useful for writing " -"tests against attributes that your production code creates at runtime. It is" -" off by default because it can be dangerous. With it switched on you can " +"create the attribute for you when the patched function is called, and delete " +"it again after the patched function has exited. This is useful for writing " +"tests against attributes that your production code creates at runtime. It is " +"off by default because it can be dangerous. With it switched on you can " "write passing tests against APIs that don't actually exist!" msgstr "" @@ -918,8 +978,8 @@ msgid "" "when your test methods share a common patchings set. :func:`patch` finds " "tests by looking for method names that start with ``patch.TEST_PREFIX``. By " "default this is ``'test'``, which matches the way :mod:`unittest` finds " -"tests. You can specify an alternative prefix by setting " -"``patch.TEST_PREFIX``." +"tests. You can specify an alternative prefix by setting ``patch." +"TEST_PREFIX``." msgstr "" #: ../../library/unittest.mock.rst:1121 @@ -932,8 +992,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1126 msgid "" -":func:`patch` takes arbitrary keyword arguments. These will be passed to the" -" :class:`Mock` (or *new_callable*) on construction." +":func:`patch` takes arbitrary keyword arguments. These will be passed to " +"the :class:`Mock` (or *new_callable*) on construction." msgstr "" #: ../../library/unittest.mock.rst:1129 @@ -950,16 +1010,16 @@ msgstr "" #: ../../library/unittest.mock.rst:1142 msgid "" -"Patching a class replaces the class with a :class:`MagicMock` *instance*. If" -" the class is instantiated in the code under test then it will be the " -":attr:`~Mock.return_value` of the mock that will be used." +"Patching a class replaces the class with a :class:`MagicMock` *instance*. If " +"the class is instantiated in the code under test then it will be the :attr:" +"`~Mock.return_value` of the mock that will be used." msgstr "" #: ../../library/unittest.mock.rst:1146 msgid "" -"If the class is instantiated multiple times you could use " -":attr:`~Mock.side_effect` to return a new mock each time. Alternatively you " -"can set the *return_value* to be anything you want." +"If the class is instantiated multiple times you could use :attr:`~Mock." +"side_effect` to return a new mock each time. Alternatively you can set the " +"*return_value* to be anything you want." msgstr "" #: ../../library/unittest.mock.rst:1150 @@ -997,18 +1057,18 @@ msgstr "" #: ../../library/unittest.mock.rst:1212 msgid "" -"As well as attributes on the created mock attributes, like the " -":attr:`~Mock.return_value` and :attr:`~Mock.side_effect`, of child mocks can" -" also be configured. These aren't syntactically valid to pass in directly as" -" keyword arguments, but a dictionary with these as keys can still be " -"expanded into a :func:`patch` call using ``**``:" +"As well as attributes on the created mock attributes, like the :attr:`~Mock." +"return_value` and :attr:`~Mock.side_effect`, of child mocks can also be " +"configured. These aren't syntactically valid to pass in directly as keyword " +"arguments, but a dictionary with these as keys can still be expanded into a :" +"func:`patch` call using ``**``:" msgstr "" #: ../../library/unittest.mock.rst:1228 msgid "" "By default, attempting to patch a function in a module (or a method or an " -"attribute in a class) that does not exist will fail with " -":exc:`AttributeError`::" +"attribute in a class) that does not exist will fail with :exc:" +"`AttributeError`::" msgstr "" #: ../../library/unittest.mock.rst:1240 @@ -1031,15 +1091,15 @@ msgstr "" msgid "" ":func:`patch.object` can be used as a decorator, class decorator or a " "context manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* " -"and *new_callable* have the same meaning as for :func:`patch`. Like " -":func:`patch`, :func:`patch.object` takes arbitrary keyword arguments for " +"and *new_callable* have the same meaning as for :func:`patch`. Like :func:" +"`patch`, :func:`patch.object` takes arbitrary keyword arguments for " "configuring the mock object it creates." msgstr "" #: ../../library/unittest.mock.rst:1264 msgid "" -"When used as a class decorator :func:`patch.object` honours " -"``patch.TEST_PREFIX`` for choosing which methods to wrap." +"When used as a class decorator :func:`patch.object` honours ``patch." +"TEST_PREFIX`` for choosing which methods to wrap." msgstr "" #: ../../library/unittest.mock.rst:1267 @@ -1051,8 +1111,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1271 msgid "" -"When calling with the two argument form you omit the replacement object, and" -" a mock is created for you and passed in as an extra argument to the " +"When calling with the two argument form you omit the replacement object, and " +"a mock is created for you and passed in as an extra argument to the " "decorated function:" msgstr "" @@ -1068,8 +1128,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1291 msgid "" -"Patch a dictionary, or dictionary like object, and restore the dictionary to" -" its original state after the test." +"Patch a dictionary, or dictionary like object, and restore the dictionary to " +"its original state after the test." msgstr "" #: ../../library/unittest.mock.rst:1294 @@ -1093,8 +1153,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1304 msgid "" -"If *clear* is true then the dictionary will be cleared before the new values" -" are set." +"If *clear* is true then the dictionary will be cleared before the new values " +"are set." msgstr "" #: ../../library/unittest.mock.rst:1307 @@ -1106,14 +1166,14 @@ msgstr "" #: ../../library/unittest.mock.rst:1310 msgid "" ":func:`patch.dict` can be used as a context manager, decorator or class " -"decorator. When used as a class decorator :func:`patch.dict` honours " -"``patch.TEST_PREFIX`` for choosing which methods to wrap." +"decorator. When used as a class decorator :func:`patch.dict` honours ``patch." +"TEST_PREFIX`` for choosing which methods to wrap." msgstr "" #: ../../library/unittest.mock.rst:1314 msgid "" -":func:`patch.dict` can be used to add members to a dictionary, or simply let" -" a test change a dictionary, and ensure the dictionary is restored when the " +":func:`patch.dict` can be used to add members to a dictionary, or simply let " +"a test change a dictionary, and ensure the dictionary is restored when the " "test ends." msgstr "" @@ -1128,8 +1188,8 @@ msgid "" ":func:`patch.dict` can be used with dictionary like objects that aren't " "actually dictionaries. At the very minimum they must support item getting, " "setting, deleting and either iteration or membership test. This corresponds " -"to the magic methods :meth:`__getitem__`, :meth:`__setitem__`, " -":meth:`__delitem__` and either :meth:`__iter__` or :meth:`__contains__`." +"to the magic methods :meth:`__getitem__`, :meth:`__setitem__`, :meth:" +"`__delitem__` and either :meth:`__iter__` or :meth:`__contains__`." msgstr "" #: ../../library/unittest.mock.rst:1370 @@ -1138,8 +1198,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1374 msgid "" -"Perform multiple patches in a single call. It takes the object to be patched" -" (either as an object or a string to fetch the object by importing) and " +"Perform multiple patches in a single call. It takes the object to be patched " +"(either as an object or a string to fetch the object by importing) and " "keyword arguments for the patches::" msgstr "" @@ -1147,8 +1207,8 @@ msgstr "" msgid "" "Use :data:`DEFAULT` as the value if you want :func:`patch.multiple` to " "create mocks for you. In this case the created mocks are passed into a " -"decorated function by keyword, and a dictionary is returned when " -":func:`patch.multiple` is used as a context manager." +"decorated function by keyword, and a dictionary is returned when :func:" +"`patch.multiple` is used as a context manager." msgstr "" #: ../../library/unittest.mock.rst:1386 @@ -1161,14 +1221,14 @@ msgstr "" #: ../../library/unittest.mock.rst:1391 msgid "" -"When used as a class decorator :func:`patch.multiple` honours " -"``patch.TEST_PREFIX`` for choosing which methods to wrap." +"When used as a class decorator :func:`patch.multiple` honours ``patch." +"TEST_PREFIX`` for choosing which methods to wrap." msgstr "" #: ../../library/unittest.mock.rst:1394 msgid "" -"If you want :func:`patch.multiple` to create mocks for you, then you can use" -" :data:`DEFAULT` as the value. If you use :func:`patch.multiple` as a " +"If you want :func:`patch.multiple` to create mocks for you, then you can " +"use :data:`DEFAULT` as the value. If you use :func:`patch.multiple` as a " "decorator then the created mocks are passed into the decorated function by " "keyword." msgstr "" @@ -1194,8 +1254,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1436 msgid "" "All the patchers have :meth:`start` and :meth:`stop` methods. These make it " -"simpler to do patching in ``setUp`` methods or where you want to do multiple" -" patches without nesting decorators or with statements." +"simpler to do patching in ``setUp`` methods or where you want to do multiple " +"patches without nesting decorators or with statements." msgstr "" #: ../../library/unittest.mock.rst:1440 @@ -1220,10 +1280,10 @@ msgstr "" #: ../../library/unittest.mock.rst:1480 msgid "" -"If you use this technique you must ensure that the patching is \"undone\" by" -" calling ``stop``. This can be fiddlier than you might think, because if an " -"exception is raised in the ``setUp`` then ``tearDown`` is not called. " -":meth:`unittest.TestCase.addCleanup` makes this easier:" +"If you use this technique you must ensure that the patching is \"undone\" by " +"calling ``stop``. This can be fiddlier than you might think, because if an " +"exception is raised in the ``setUp`` then ``tearDown`` is not called. :meth:" +"`unittest.TestCase.addCleanup` makes this easier:" msgstr "" #: ../../library/unittest.mock.rst:1495 @@ -1234,8 +1294,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1498 msgid "" -"It is also possible to stop all patches which have been started by using " -":func:`patch.stopall`." +"It is also possible to stop all patches which have been started by using :" +"func:`patch.stopall`." msgstr "" #: ../../library/unittest.mock.rst:1503 @@ -1267,8 +1327,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1530 msgid "" "It is possible that you want to use a different prefix for your tests. You " -"can inform the patchers of the different prefix by setting " -"``patch.TEST_PREFIX``:" +"can inform the patchers of the different prefix by setting ``patch." +"TEST_PREFIX``:" msgstr "" #: ../../library/unittest.mock.rst:1553 @@ -1313,18 +1373,17 @@ msgstr "" #: ../../library/unittest.mock.rst:1593 msgid "" -"Imagine we have a project that we want to test with the following " -"structure::" +"Imagine we have a project that we want to test with the following structure::" msgstr "" #: ../../library/unittest.mock.rst:1602 msgid "" "Now we want to test ``some_function`` but we want to mock out ``SomeClass`` " "using :func:`patch`. The problem is that when we import module b, which we " -"will have to do then it imports ``SomeClass`` from module a. If we use " -":func:`patch` to mock out ``a.SomeClass`` then it will have no effect on our" -" test; module b already has a reference to the *real* ``SomeClass`` and it " -"looks like our patching had no effect." +"will have to do then it imports ``SomeClass`` from module a. If we use :func:" +"`patch` to mock out ``a.SomeClass`` then it will have no effect on our test; " +"module b already has a reference to the *real* ``SomeClass`` and it looks " +"like our patching had no effect." msgstr "" #: ../../library/unittest.mock.rst:1609 @@ -1338,10 +1397,10 @@ msgstr "" #: ../../library/unittest.mock.rst:1615 msgid "" "However, consider the alternative scenario where instead of ``from a import " -"SomeClass`` module b does ``import a`` and ``some_function`` uses " -"``a.SomeClass``. Both of these import forms are common. In this case the " -"class we want to patch is being looked up in the module and so we have to " -"patch ``a.SomeClass`` instead::" +"SomeClass`` module b does ``import a`` and ``some_function`` uses ``a." +"SomeClass``. Both of these import forms are common. In this case the class " +"we want to patch is being looked up in the module and so we have to patch " +"``a.SomeClass`` instead::" msgstr "" #: ../../library/unittest.mock.rst:1624 @@ -1350,11 +1409,11 @@ msgstr "" #: ../../library/unittest.mock.rst:1626 msgid "" -"Both patch_ and patch.object_ correctly patch and restore descriptors: class" -" methods, static methods and properties. You should patch these on the " +"Both patch_ and patch.object_ correctly patch and restore descriptors: class " +"methods, static methods and properties. You should patch these on the " "*class* rather than an instance. They also work with *some* objects that " -"proxy attribute access, like the `django settings object " -"`_." +"proxy attribute access, like the `django settings object `_." msgstr "" #: ../../library/unittest.mock.rst:1634 @@ -1383,27 +1442,27 @@ msgstr "" #: ../../library/unittest.mock.rst:1650 msgid "" "You mock magic methods by setting the method you are interested in to a " -"function or a mock instance. If you are using a function then it *must* take" -" ``self`` as the first argument [#]_." +"function or a mock instance. If you are using a function then it *must* take " +"``self`` as the first argument [#]_." msgstr "" #: ../../library/unittest.mock.rst:1673 msgid "" -"One use case for this is for mocking objects used as context managers in a " -":keyword:`with` statement:" +"One use case for this is for mocking objects used as context managers in a :" +"keyword:`with` statement:" msgstr "" #: ../../library/unittest.mock.rst:1685 msgid "" -"Calls to magic methods do not appear in :attr:`~Mock.method_calls`, but they" -" are recorded in :attr:`~Mock.mock_calls`." +"Calls to magic methods do not appear in :attr:`~Mock.method_calls`, but they " +"are recorded in :attr:`~Mock.mock_calls`." msgstr "" #: ../../library/unittest.mock.rst:1690 msgid "" "If you use the *spec* keyword argument to create a mock then attempting to " -"set a magic method that isn't in the spec will raise an " -":exc:`AttributeError`." +"set a magic method that isn't in the spec will raise an :exc:" +"`AttributeError`." msgstr "" #: ../../library/unittest.mock.rst:1693 @@ -1489,14 +1548,14 @@ msgstr "" #: ../../library/unittest.mock.rst:1727 msgid "" -"There are two ``MagicMock`` variants: :class:`MagicMock` and " -":class:`NonCallableMagicMock`." +"There are two ``MagicMock`` variants: :class:`MagicMock` and :class:" +"`NonCallableMagicMock`." msgstr "" #: ../../library/unittest.mock.rst:1732 msgid "" -"``MagicMock`` is a subclass of :class:`Mock` with default implementations of" -" most of the magic methods. You can use ``MagicMock`` without having to " +"``MagicMock`` is a subclass of :class:`Mock` with default implementations of " +"most of the magic methods. You can use ``MagicMock`` without having to " "configure the magic methods yourself." msgstr "" @@ -1506,8 +1565,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1738 msgid "" -"If you use the *spec* or *spec_set* arguments then *only* magic methods that" -" exist in the spec will be created." +"If you use the *spec* or *spec_set* arguments then *only* magic methods that " +"exist in the spec will be created." msgstr "" #: ../../library/unittest.mock.rst:1744 @@ -1517,8 +1576,8 @@ msgstr "" #: ../../library/unittest.mock.rst:1746 msgid "" "The constructor parameters have the same meaning as for :class:`MagicMock`, " -"with the exception of *return_value* and *side_effect* which have no meaning" -" on a non-callable mock." +"with the exception of *return_value* and *side_effect* which have no meaning " +"on a non-callable mock." msgstr "" #: ../../library/unittest.mock.rst:1750 @@ -1541,55 +1600,55 @@ msgid "Methods and their defaults:" msgstr "" #: ../../library/unittest.mock.rst:1768 -msgid "``__lt__``: NotImplemented" +msgid "``__lt__``: ``NotImplemented``" msgstr "" #: ../../library/unittest.mock.rst:1769 -msgid "``__gt__``: NotImplemented" +msgid "``__gt__``: ``NotImplemented``" msgstr "" #: ../../library/unittest.mock.rst:1770 -msgid "``__le__``: NotImplemented" +msgid "``__le__``: ``NotImplemented``" msgstr "" #: ../../library/unittest.mock.rst:1771 -msgid "``__ge__``: NotImplemented" +msgid "``__ge__``: ``NotImplemented``" msgstr "" #: ../../library/unittest.mock.rst:1772 -msgid "``__int__``: 1" +msgid "``__int__``: ``1``" msgstr "" #: ../../library/unittest.mock.rst:1773 -msgid "``__contains__``: False" +msgid "``__contains__``: ``False``" msgstr "" #: ../../library/unittest.mock.rst:1774 -msgid "``__len__``: 0" +msgid "``__len__``: ``0``" msgstr "" #: ../../library/unittest.mock.rst:1775 -msgid "``__iter__``: iter([])" +msgid "``__iter__``: ``iter([])``" msgstr "" #: ../../library/unittest.mock.rst:1776 -msgid "``__exit__``: False" +msgid "``__exit__``: ``False``" msgstr "" #: ../../library/unittest.mock.rst:1777 -msgid "``__complex__``: 1j" +msgid "``__complex__``: ``1j``" msgstr "" #: ../../library/unittest.mock.rst:1778 -msgid "``__float__``: 1.0" +msgid "``__float__``: ``1.0``" msgstr "" #: ../../library/unittest.mock.rst:1779 -msgid "``__bool__``: True" +msgid "``__bool__``: ``True``" msgstr "" #: ../../library/unittest.mock.rst:1780 -msgid "``__index__``: 1" +msgid "``__index__``: ``1``" msgstr "" #: ../../library/unittest.mock.rst:1781 @@ -1611,9 +1670,9 @@ msgstr "Por exemplo:" #: ../../library/unittest.mock.rst:1797 msgid "" "The two equality methods, :meth:`__eq__` and :meth:`__ne__`, are special. " -"They do the default equality comparison on identity, using the " -":attr:`~Mock.side_effect` attribute, unless you change their return value to" -" return something else::" +"They do the default equality comparison on identity, using the :attr:`~Mock." +"side_effect` attribute, unless you change their return value to return " +"something else::" msgstr "" #: ../../library/unittest.mock.rst:1811 @@ -1643,15 +1702,15 @@ msgstr "" #: ../../library/unittest.mock.rst:1835 msgid "``__subclasses__``" -msgstr "" +msgstr "``__subclasses__``" #: ../../library/unittest.mock.rst:1836 msgid "``__dir__``" -msgstr "" +msgstr "``__dir__``" #: ../../library/unittest.mock.rst:1837 msgid "``__format__``" -msgstr "" +msgstr "``__format__``" #: ../../library/unittest.mock.rst:1838 msgid "``__get__``, ``__set__`` and ``__delete__``" @@ -1675,14 +1734,13 @@ msgstr "" msgid "" "Magic methods *should* be looked up on the class rather than the instance. " "Different versions of Python are inconsistent about applying this rule. The " -"supported protocol methods should work with all supported versions of " -"Python." +"supported protocol methods should work with all supported versions of Python." msgstr "" #: ../../library/unittest.mock.rst:1850 msgid "" -"The function is basically hooked up to the class, but each ``Mock`` instance" -" is kept isolated from the others." +"The function is basically hooked up to the class, but each ``Mock`` instance " +"is kept isolated from the others." msgstr "" #: ../../library/unittest.mock.rst:1855 @@ -1701,29 +1759,29 @@ msgstr "" #: ../../library/unittest.mock.rst:1865 msgid "" -"Attributes are created on demand when you access them by name. Accessing the" -" same attribute will always return the same object. The objects returned " -"have a sensible repr so that test failure messages are readable." +"Attributes are created on demand when you access them by name. Accessing the " +"same attribute will always return the same object. The objects returned have " +"a sensible repr so that test failure messages are readable." msgstr "" #: ../../library/unittest.mock.rst:1869 msgid "" -"The ``sentinel`` attributes now preserve their identity when they are " -":mod:`copied ` or :mod:`pickled `." +"The ``sentinel`` attributes now preserve their identity when they are :mod:" +"`copied ` or :mod:`pickled `." msgstr "" #: ../../library/unittest.mock.rst:1873 msgid "" "Sometimes when testing you need to test that a specific object is passed as " -"an argument to another method, or returned. It can be common to create named" -" sentinel objects to test this. :data:`sentinel` provides a convenient way " -"of creating and testing the identity of objects like this." +"an argument to another method, or returned. It can be common to create named " +"sentinel objects to test this. :data:`sentinel` provides a convenient way of " +"creating and testing the identity of objects like this." msgstr "" #: ../../library/unittest.mock.rst:1878 msgid "" -"In this example we monkey patch ``method`` to return " -"``sentinel.some_object``:" +"In this example we monkey patch ``method`` to return ``sentinel." +"some_object``:" msgstr "" #: ../../library/unittest.mock.rst:1890 @@ -1732,9 +1790,9 @@ msgstr "" #: ../../library/unittest.mock.rst:1895 msgid "" -"The :data:`DEFAULT` object is a pre-created sentinel (actually " -"``sentinel.DEFAULT``). It can be used by :attr:`~Mock.side_effect` functions" -" to indicate that the normal return value should be used." +"The :data:`DEFAULT` object is a pre-created sentinel (actually ``sentinel." +"DEFAULT``). It can be used by :attr:`~Mock.side_effect` functions to " +"indicate that the normal return value should be used." msgstr "" #: ../../library/unittest.mock.rst:1901 @@ -1743,10 +1801,10 @@ msgstr "" #: ../../library/unittest.mock.rst:1905 msgid "" -":func:`call` is a helper object for making simpler assertions, for comparing" -" with :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`, " -":attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. :func:`call` can " -"also be used with :meth:`~Mock.assert_has_calls`." +":func:`call` is a helper object for making simpler assertions, for comparing " +"with :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`, :attr:`~Mock." +"mock_calls` and :attr:`~Mock.method_calls`. :func:`call` can also be used " +"with :meth:`~Mock.assert_has_calls`." msgstr "" #: ../../library/unittest.mock.rst:1918 @@ -1757,9 +1815,9 @@ msgstr "" #: ../../library/unittest.mock.rst:1922 msgid "" -"``call_list`` is particularly useful for making assertions on \"chained " -"calls\". A chained call is multiple calls on a single line of code. This " -"results in multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually " +"``call_list`` is particularly useful for making assertions on \"chained calls" +"\". A chained call is multiple calls on a single line of code. This results " +"in multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually " "constructing the sequence of calls can be tedious." msgstr "" @@ -1774,18 +1832,18 @@ msgid "" "A ``call`` object is either a tuple of (positional args, keyword args) or " "(name, positional args, keyword args) depending on how it was constructed. " "When you construct them yourself this isn't particularly interesting, but " -"the ``call`` objects that are in the :attr:`Mock.call_args`, " -":attr:`Mock.call_args_list` and :attr:`Mock.mock_calls` attributes can be " -"introspected to get at the individual arguments they contain." +"the ``call`` objects that are in the :attr:`Mock.call_args`, :attr:`Mock." +"call_args_list` and :attr:`Mock.mock_calls` attributes can be introspected " +"to get at the individual arguments they contain." msgstr "" #: ../../library/unittest.mock.rst:1951 msgid "" -"The ``call`` objects in :attr:`Mock.call_args` and " -":attr:`Mock.call_args_list` are two-tuples of (positional args, keyword " -"args) whereas the ``call`` objects in :attr:`Mock.mock_calls`, along with " -"ones you construct yourself, are three-tuples of (name, positional args, " -"keyword args)." +"The ``call`` objects in :attr:`Mock.call_args` and :attr:`Mock." +"call_args_list` are two-tuples of (positional args, keyword args) whereas " +"the ``call`` objects in :attr:`Mock.mock_calls`, along with ones you " +"construct yourself, are three-tuples of (name, positional args, keyword " +"args)." msgstr "" #: ../../library/unittest.mock.rst:1956 @@ -1814,16 +1872,16 @@ msgstr "" #: ../../library/unittest.mock.rst:2001 msgid "" -"If *spec_set* is ``True`` then attempting to set attributes that don't exist" -" on the spec object will raise an :exc:`AttributeError`." +"If *spec_set* is ``True`` then attempting to set attributes that don't exist " +"on the spec object will raise an :exc:`AttributeError`." msgstr "" #: ../../library/unittest.mock.rst:2004 msgid "" -"If a class is used as a spec then the return value of the mock (the instance" -" of the class) will have the same spec. You can use a class as the spec for " -"an instance object by passing ``instance=True``. The returned mock will only" -" be callable if instances of the mock are callable." +"If a class is used as a spec then the return value of the mock (the instance " +"of the class) will have the same spec. You can use a class as the spec for " +"an instance object by passing ``instance=True``. The returned mock will only " +"be callable if instances of the mock are callable." msgstr "" #: ../../library/unittest.mock.rst:2009 @@ -1834,8 +1892,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2012 msgid "" -"See :ref:`auto-speccing` for examples of how to use auto-speccing with " -":func:`create_autospec` and the *autospec* argument to :func:`patch`." +"See :ref:`auto-speccing` for examples of how to use auto-speccing with :func:" +"`create_autospec` and the *autospec* argument to :func:`patch`." msgstr "" #: ../../library/unittest.mock.rst:2017 @@ -1844,8 +1902,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2021 msgid "" -"Sometimes you may need to make assertions about *some* of the arguments in a" -" call to mock, but either not care about some of the arguments or want to " +"Sometimes you may need to make assertions about *some* of the arguments in a " +"call to mock, but either not care about some of the arguments or want to " "pull them individually out of :attr:`~Mock.call_args` and make more complex " "assertions on them." msgstr "" @@ -1853,15 +1911,14 @@ msgstr "" #: ../../library/unittest.mock.rst:2026 msgid "" "To ignore certain arguments you can pass in objects that compare equal to " -"*everything*. Calls to :meth:`~Mock.assert_called_with` and " -":meth:`~Mock.assert_called_once_with` will then succeed no matter what was " -"passed in." +"*everything*. Calls to :meth:`~Mock.assert_called_with` and :meth:`~Mock." +"assert_called_once_with` will then succeed no matter what was passed in." msgstr "" #: ../../library/unittest.mock.rst:2035 msgid "" -":data:`ANY` can also be used in comparisons with call lists like " -":attr:`~Mock.mock_calls`:" +":data:`ANY` can also be used in comparisons with call lists like :attr:" +"`~Mock.mock_calls`:" msgstr "" #: ../../library/unittest.mock.rst:2048 @@ -1881,16 +1938,16 @@ msgstr "" msgid "" "With filtering on, ``dir(some_mock)`` shows only useful attributes and will " "include any dynamically created attributes that wouldn't normally be shown. " -"If the mock was created with a *spec* (or *autospec* of course) then all the" -" attributes from the original are shown, even if they haven't been accessed " +"If the mock was created with a *spec* (or *autospec* of course) then all the " +"attributes from the original are shown, even if they haven't been accessed " "yet:" msgstr "" #: ../../library/unittest.mock.rst:2079 msgid "" "Many of the not-very-useful (private to :class:`Mock` rather than the thing " -"being mocked) underscore and double underscore prefixed attributes have been" -" filtered from the result of calling :func:`dir` on a :class:`Mock`. If you " +"being mocked) underscore and double underscore prefixed attributes have been " +"filtered from the result of calling :func:`dir` on a :class:`Mock`. If you " "dislike this behaviour you can switch it off by setting the module level " "switch :data:`FILTER_DIR`:" msgstr "" @@ -1921,15 +1978,15 @@ msgstr "" #: ../../library/unittest.mock.rst:2114 msgid "" -"*read_data* is a string for the :meth:`~io.IOBase.read`, " -":meth:`~io.IOBase.readline`, and :meth:`~io.IOBase.readlines` methods of the" -" file handle to return. Calls to those methods will take data from " -"*read_data* until it is depleted. The mock of these methods is pretty " -"simplistic: every time the *mock* is called, the *read_data* is rewound to " -"the start. If you need more control over the data that you are feeding to " -"the tested code you will need to customize this mock for yourself. When " -"that is insufficient, one of the in-memory filesystem packages on `PyPI " -"`_ can offer a realistic filesystem for testing." +"*read_data* is a string for the :meth:`~io.IOBase.read`, :meth:`~io.IOBase." +"readline`, and :meth:`~io.IOBase.readlines` methods of the file handle to " +"return. Calls to those methods will take data from *read_data* until it is " +"depleted. The mock of these methods is pretty simplistic: every time the " +"*mock* is called, the *read_data* is rewound to the start. If you need more " +"control over the data that you are feeding to the tested code you will need " +"to customize this mock for yourself. When that is insufficient, one of the " +"in-memory filesystem packages on `PyPI `_ can offer a " +"realistic filesystem for testing." msgstr "" #: ../../library/unittest.mock.rst:2124 @@ -1958,8 +2015,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2142 msgid "" "The issue is that even if you mock out the call to :func:`open` it is the " -"*returned object* that is used as a context manager (and has " -":meth:`__enter__` and :meth:`__exit__` called)." +"*returned object* that is used as a context manager (and has :meth:" +"`__enter__` and :meth:`__exit__` called)." msgstr "" #: ../../library/unittest.mock.rst:2146 @@ -1982,8 +2039,8 @@ msgid "" "limits the api of mocks to the api of an original object (the spec), but it " "is recursive (implemented lazily) so that attributes of mocks only have the " "same api as the attributes of the spec. In addition mocked functions / " -"methods have the same call signature as the original so they raise a " -":exc:`TypeError` if they are called incorrectly." +"methods have the same call signature as the original so they raise a :exc:" +"`TypeError` if they are called incorrectly." msgstr "" #: ../../library/unittest.mock.rst:2185 @@ -2001,8 +2058,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2192 msgid "" "First the problem specific to :class:`Mock`. :class:`Mock` has two assert " -"methods that are extremely handy: :meth:`~Mock.assert_called_with` and " -":meth:`~Mock.assert_called_once_with`." +"methods that are extremely handy: :meth:`~Mock.assert_called_with` and :meth:" +"`~Mock.assert_called_once_with`." msgstr "" #: ../../library/unittest.mock.rst:2205 @@ -2047,8 +2104,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2247 msgid "" -"Auto-speccing solves this problem. You can either pass ``autospec=True`` to " -":func:`patch` / :func:`patch.object` or use the :func:`create_autospec` " +"Auto-speccing solves this problem. You can either pass ``autospec=True`` to :" +"func:`patch` / :func:`patch.object` or use the :func:`create_autospec` " "function to create a mock with a spec. If you use the ``autospec=True`` " "argument to :func:`patch` then the object that is being replaced will be " "used as the spec object. Because the speccing is done \"lazily\" (the spec " @@ -2063,9 +2120,9 @@ msgstr "" #: ../../library/unittest.mock.rst:2266 msgid "" -"You can see that :class:`request.Request` has a spec. " -":class:`request.Request` takes two arguments in the constructor (one of " -"which is *self*). Here's what happens if we try to call it incorrectly:" +"You can see that :class:`request.Request` has a spec. :class:`request." +"Request` takes two arguments in the constructor (one of which is *self*). " +"Here's what happens if we try to call it incorrectly:" msgstr "" #: ../../library/unittest.mock.rst:2275 @@ -2078,58 +2135,58 @@ msgstr "" msgid "" ":class:`Request` objects are not callable, so the return value of " "instantiating our mocked out :class:`request.Request` is a non-callable " -"mock. With the spec in place any typos in our asserts will raise the correct" -" error:" +"mock. With the spec in place any typos in our asserts will raise the correct " +"error:" msgstr "" #: ../../library/unittest.mock.rst:2294 msgid "" "In many cases you will just be able to add ``autospec=True`` to your " -"existing :func:`patch` calls and then be protected against bugs due to typos" -" and api changes." +"existing :func:`patch` calls and then be protected against bugs due to typos " +"and api changes." msgstr "" #: ../../library/unittest.mock.rst:2298 msgid "" -"As well as using *autospec* through :func:`patch` there is a " -":func:`create_autospec` for creating autospecced mocks directly:" +"As well as using *autospec* through :func:`patch` there is a :func:" +"`create_autospec` for creating autospecced mocks directly:" msgstr "" #: ../../library/unittest.mock.rst:2306 msgid "" "This isn't without caveats and limitations however, which is why it is not " -"the default behaviour. In order to know what attributes are available on the" -" spec object, autospec has to introspect (access attributes) the spec. As " -"you traverse attributes on the mock a corresponding traversal of the " -"original object is happening under the hood. If any of your specced objects " -"have properties or descriptors that can trigger code execution then you may " -"not be able to use autospec. On the other hand it is much better to design " -"your objects so that introspection is safe [#]_." +"the default behaviour. In order to know what attributes are available on the " +"spec object, autospec has to introspect (access attributes) the spec. As you " +"traverse attributes on the mock a corresponding traversal of the original " +"object is happening under the hood. If any of your specced objects have " +"properties or descriptors that can trigger code execution then you may not " +"be able to use autospec. On the other hand it is much better to design your " +"objects so that introspection is safe [#]_." msgstr "" #: ../../library/unittest.mock.rst:2315 msgid "" "A more serious problem is that it is common for instance attributes to be " -"created in the :meth:`__init__` method and not to exist on the class at all." -" *autospec* can't know about any dynamically created attributes and " -"restricts the api to visible attributes." +"created in the :meth:`__init__` method and not to exist on the class at all. " +"*autospec* can't know about any dynamically created attributes and restricts " +"the api to visible attributes." msgstr "" #: ../../library/unittest.mock.rst:2332 msgid "" "There are a few different ways of resolving this problem. The easiest, but " "not necessarily the least annoying, way is to simply set the required " -"attributes on the mock after creation. Just because *autospec* doesn't allow" -" you to fetch attributes that don't exist on the spec it doesn't prevent you" -" setting them:" +"attributes on the mock after creation. Just because *autospec* doesn't allow " +"you to fetch attributes that don't exist on the spec it doesn't prevent you " +"setting them:" msgstr "" #: ../../library/unittest.mock.rst:2343 msgid "" -"There is a more aggressive version of both *spec* and *autospec* that *does*" -" prevent you setting non-existent attributes. This is useful if you want to " -"ensure your code only *sets* valid attributes too, but obviously it prevents" -" this particular scenario:" +"There is a more aggressive version of both *spec* and *autospec* that *does* " +"prevent you setting non-existent attributes. This is useful if you want to " +"ensure your code only *sets* valid attributes too, but obviously it prevents " +"this particular scenario:" msgstr "" #: ../../library/unittest.mock.rst:2356 @@ -2145,11 +2202,11 @@ msgstr "" msgid "" "This brings up another issue. It is relatively common to provide a default " "value of ``None`` for members that will later be an object of a different " -"type. ``None`` would be useless as a spec because it wouldn't let you access" -" *any* attributes or methods on it. As ``None`` is *never* going to be " -"useful as a spec, and probably indicates a member that will normally of some" -" other type, autospec doesn't use a spec for members that are set to " -"``None``. These will just be ordinary mocks (well - MagicMocks):" +"type. ``None`` would be useless as a spec because it wouldn't let you access " +"*any* attributes or methods on it. As ``None`` is *never* going to be useful " +"as a spec, and probably indicates a member that will normally of some other " +"type, autospec doesn't use a spec for members that are set to ``None``. " +"These will just be ordinary mocks (well - MagicMocks):" msgstr "" #: ../../library/unittest.mock.rst:2381 @@ -2166,9 +2223,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2402 msgid "" "This only applies to classes or already instantiated objects. Calling a " -"mocked class to create a mock instance *does not* create a real instance. It" -" is only attribute lookups - along with calls to :func:`dir` - that are " -"done." +"mocked class to create a mock instance *does not* create a real instance. It " +"is only attribute lookups - along with calls to :func:`dir` - that are done." msgstr "" #: ../../library/unittest.mock.rst:2407 @@ -2178,8 +2234,8 @@ msgstr "" #: ../../library/unittest.mock.rst:2411 msgid "" "Seal will disable the automatic creation of mocks when accessing an " -"attribute of the mock being sealed or any of its attributes that are already" -" mocks recursively." +"attribute of the mock being sealed or any of its attributes that are already " +"mocks recursively." msgstr "" #: ../../library/unittest.mock.rst:2414 diff --git a/library/unittest.po b/library/unittest.po index 63c73970e..fa032ee8d 100644 --- a/library/unittest.po +++ b/library/unittest.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Italo Penaforte , 2019 @@ -10,16 +10,18 @@ # Hugo Santos Piauilino , 2019 # Renan Lopes , 2019 # Giovana Morais , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-20 03:56+0000\n" +"POT-Creation-Date: 2020-04-17 13:38+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: Giovana Morais , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -52,8 +54,8 @@ msgid "" msgstr "" "A estrutura de teste de unitários :mod:`unittest` foi originalmente " "inspirada no JUnit e tem um sabor semelhante contendo as principais " -"estruturas de teste de unidades existentes em outras linguagens. Ele suporta" -" a automação de teste, compartilhamento de configuração e código de " +"estruturas de teste de unidades existentes em outras linguagens. Ele suporta " +"a automação de teste, compartilhamento de configuração e código de " "desligamento para testes, agregação de testes em coleções e independência " "dos testes da estrutura de relatórios." @@ -78,8 +80,8 @@ msgid "" msgstr "" "Um :dfn:`test fixture` representa a preparação necessária para executar um " "ou mais testes e quaisquer ações de limpeza associadas. Isso pode envolver, " -"por exemplo, a criação de bancos de dados temporários ou de proxy, a criação" -" de diretórios ou a inicialização de processo no servidor." +"por exemplo, a criação de bancos de dados temporários ou de proxy, a criação " +"de diretórios ou a inicialização de processo no servidor." #: ../../library/unittest.rst:37 msgid "test case" @@ -88,12 +90,12 @@ msgstr "caso de teste" #: ../../library/unittest.rst:35 msgid "" "A :dfn:`test case` is the individual unit of testing. It checks for a " -"specific response to a particular set of inputs. :mod:`unittest` provides a" -" base class, :class:`TestCase`, which may be used to create new test cases." +"specific response to a particular set of inputs. :mod:`unittest` provides a " +"base class, :class:`TestCase`, which may be used to create new test cases." msgstr "" "Um :dfn:`test case` é uma unidade de teste individual. O mesmo verifica uma " -"resposta específica a um determinado conjunto de entradas. O :mod:`unittest`" -" fornece uma classe base, :class:`TestCase`, que pode ser usada para criar " +"resposta específica a um determinado conjunto de entradas. O :mod:`unittest` " +"fornece uma classe base, :class:`TestCase`, que pode ser usada para criar " "novos casos de teste." #: ../../library/unittest.rst:41 @@ -102,11 +104,11 @@ msgstr "Suíte de Testes" #: ../../library/unittest.rst:40 msgid "" -"A :dfn:`test suite` is a collection of test cases, test suites, or both. It" -" is used to aggregate tests that should be executed together." +"A :dfn:`test suite` is a collection of test cases, test suites, or both. It " +"is used to aggregate tests that should be executed together." msgstr "" -"Uma :dfn:`test suite` é uma coleção de casos de teste, conjuntos de teste ou" -" ambos. O mesmo é usado para agregar testes que devem ser executados juntos." +"Uma :dfn:`test suite` é uma coleção de casos de teste, conjuntos de teste ou " +"ambos. O mesmo é usado para agregar testes que devem ser executados juntos." #: ../../library/unittest.rst:48 msgid "test runner" @@ -121,8 +123,8 @@ msgid "" msgstr "" "Um :dfn:`test runner` é um componente que orquestra a execução de testes e " "fornece o resultado para o usuário. O runner pode usar uma interface " -"gráfica, uma interface textual ou retornar um valor especial para indicar os" -" resultados da execução dos testes." +"gráfica, uma interface textual ou retornar um valor especial para indicar os " +"resultados da execução dos testes." #: ../../library/unittest.rst:53 msgid "Module :mod:`doctest`" @@ -134,16 +136,16 @@ msgstr "Outro módulo de suporte a testes com um sabor muito diferente." #: ../../library/unittest.rst:57 msgid "" -"`Simple Smalltalk Testing: With Patterns " -"`_" +"`Simple Smalltalk Testing: With Patterns `_" msgstr "" -"`Simple Smalltalk Testing: With Patterns " -"`_" +"`Simple Smalltalk Testing: With Patterns `_" #: ../../library/unittest.rst:56 msgid "" -"Kent Beck's original paper on testing frameworks using the pattern shared by" -" :mod:`unittest`." +"Kent Beck's original paper on testing frameworks using the pattern shared " +"by :mod:`unittest`." msgstr "" "O documento original de Kent Beck sobre estruturas de teste usando o padrão " "compartilhado por :mod:`unittest`." @@ -162,11 +164,11 @@ msgstr "" #: ../../library/unittest.rst:65 msgid "" -"`The Python Testing Tools Taxonomy " -"`_" +"`The Python Testing Tools Taxonomy `_" msgstr "" -"`The Python Testing Tools Taxonomy " -"`_" +"`The Python Testing Tools Taxonomy `_" #: ../../library/unittest.rst:64 msgid "" @@ -205,9 +207,8 @@ msgstr "" "Python é uma ferramenta GUI para descobrimento e execução de teste. A " "intenção é facilitar o uso para aqueles que são novos no teste unitário. " "Para ambientes de produção é recomendado que os testes sejam executados por " -"um sistema e integração contídua, como o `Buildbot " -"`_, `Jenkins `_ ou `Hudson `_." +"um sistema e integração contídua, como o `Buildbot `_, `Jenkins `_ ou `Hudson `_." #: ../../library/unittest.rst:82 msgid "Basic example" @@ -215,8 +216,8 @@ msgstr "Exemplo Básico" #: ../../library/unittest.rst:84 msgid "" -"The :mod:`unittest` module provides a rich set of tools for constructing and" -" running tests. This section demonstrates that a small subset of the tools " +"The :mod:`unittest` module provides a rich set of tools for constructing and " +"running tests. This section demonstrates that a small subset of the tools " "suffice to meet the needs of most users." msgstr "" "O módulo :mod:`unittest` fornece um conjunto amplo de ferramentas para a " @@ -231,44 +232,42 @@ msgstr "Aqui temos um simples Script para testar três métodos de String::" #: ../../library/unittest.rst:112 msgid "" "A testcase is created by subclassing :class:`unittest.TestCase`. The three " -"individual tests are defined with methods whose names start with the letters" -" ``test``. This naming convention informs the test runner about which " +"individual tests are defined with methods whose names start with the letters " +"``test``. This naming convention informs the test runner about which " "methods represent tests." msgstr "" -"Para criar um testcase basta criar uma classe que estende de " -":class:`unittest.TestCase`. Os três testes individuais são definidos com " -"métodos cujos nomes começam com as letras ``test``. Esta convenção na " -"nomenclatura informa o runner a respeitos de quais métodos sãso, na verdade," -" testes." +"Para criar um testcase basta criar uma classe que estende de :class:" +"`unittest.TestCase`. Os três testes individuais são definidos com métodos " +"cujos nomes começam com as letras ``test``. Esta convenção na nomenclatura " +"informa o runner a respeitos de quais métodos sãso, na verdade, testes." #: ../../library/unittest.rst:117 msgid "" "The crux of each test is a call to :meth:`~TestCase.assertEqual` to check " -"for an expected result; :meth:`~TestCase.assertTrue` or " -":meth:`~TestCase.assertFalse` to verify a condition; or " -":meth:`~TestCase.assertRaises` to verify that a specific exception gets " -"raised. These methods are used instead of the :keyword:`assert` statement " -"so the test runner can accumulate all test results and produce a report." -msgstr "" -"O cerne de cada teste é a invocação de um método " -":meth:`~TestCase.assertEqual` para verificar se há um resultado esperado; " -":meth:`~TestCase.assertTrue` ou :meth:`~TestCase.assertFalse` para verificar" -" uma condição; ou :meth:`~TestCase.assertRaises` para verificar se uma " -"exceção específica será levantada. Esses métodos são usados ao invés de " -"utilizar a expressão :keyword:`assert` para que o runner de teste possa " -"acumular todos os resultados do teste e produzir um relatório." +"for an expected result; :meth:`~TestCase.assertTrue` or :meth:`~TestCase." +"assertFalse` to verify a condition; or :meth:`~TestCase.assertRaises` to " +"verify that a specific exception gets raised. These methods are used " +"instead of the :keyword:`assert` statement so the test runner can accumulate " +"all test results and produce a report." +msgstr "" +"O cerne de cada teste é a invocação de um método :meth:`~TestCase." +"assertEqual` para verificar se há um resultado esperado; :meth:`~TestCase." +"assertTrue` ou :meth:`~TestCase.assertFalse` para verificar uma condição; " +"ou :meth:`~TestCase.assertRaises` para verificar se uma exceção específica " +"será levantada. Esses métodos são usados ao invés de utilizar a expressão :" +"keyword:`assert` para que o runner de teste possa acumular todos os " +"resultados do teste e produzir um relatório." #: ../../library/unittest.rst:124 msgid "" -"The :meth:`~TestCase.setUp` and :meth:`~TestCase.tearDown` methods allow you" -" to define instructions that will be executed before and after each test " +"The :meth:`~TestCase.setUp` and :meth:`~TestCase.tearDown` methods allow you " +"to define instructions that will be executed before and after each test " "method. They are covered in more detail in the section :ref:`organizing-" "tests`." msgstr "" -"Os métodos :meth:`~TestCase.setUp` e :meth:`~TestCase.tearDown` permitem que" -" você defina instruções que serão executadas antes e depois de cada método " -"de teste. Eles são abordados em mais detalhes na seção :ref:`organize-" -"tests`." +"Os métodos :meth:`~TestCase.setUp` e :meth:`~TestCase.tearDown` permitem que " +"você defina instruções que serão executadas antes e depois de cada método de " +"teste. Eles são abordados em mais detalhes na seção :ref:`organize-tests`." #: ../../library/unittest.rst:128 msgid "" @@ -276,19 +275,19 @@ msgid "" "provides a command-line interface to the test script. When run from the " "command line, the above script produces an output that looks like this::" msgstr "" -"O bloco final mostra uma maneira simples de executar os testes. A função " -":func:`unittest.main` fornece uma interface de linha de comando para o " -"Script de teste. Quando executado a partir da linha de comando, o Script " -"acima produz uma saída que se parece com isso::" +"O bloco final mostra uma maneira simples de executar os testes. A função :" +"func:`unittest.main` fornece uma interface de linha de comando para o Script " +"de teste. Quando executado a partir da linha de comando, o Script acima " +"produz uma saída que se parece com isso::" #: ../../library/unittest.rst:138 msgid "" -"Passing the ``-v`` option to your test script will instruct " -":func:`unittest.main` to enable a higher level of verbosity, and produce the" -" following output::" +"Passing the ``-v`` option to your test script will instruct :func:`unittest." +"main` to enable a higher level of verbosity, and produce the following " +"output::" msgstr "" -"Passando a opção ``-v`` para o nosso Script de teste instruirá a função " -":func: `unittest.main` a habilitar um nível mais alto de verbosidade e " +"Passando a opção ``-v`` para o nosso Script de teste instruirá a função :" +"func: `unittest.main` a habilitar um nível mais alto de verbosidade e " "produzirá a seguinte saída::" #: ../../library/unittest.rst:150 @@ -330,8 +329,8 @@ msgstr "" #: ../../library/unittest.rst:174 msgid "" "This allows you to use the shell filename completion to specify the test " -"module. The file specified must still be importable as a module. The path is" -" converted to a module name by removing the '.py' and converting path " +"module. The file specified must still be importable as a module. The path is " +"converted to a module name by removing the '.py' and converting path " "separators into '.'. If you want to execute a test file that isn't " "importable as a module you should execute the file directly instead." msgstr "" @@ -347,8 +346,8 @@ msgid "" "You can run tests with more detail (higher verbosity) by passing in the -v " "flag::" msgstr "" -"Você pode executar os testes com mais detalhes (maior verbosidade) ao usar a" -" flag -v" +"Você pode executar os testes com mais detalhes (maior verbosidade) ao usar a " +"flag -v" #: ../../library/unittest.rst:184 msgid "" @@ -379,12 +378,12 @@ msgstr ":program:`unittest` suporta as seguintes opções de linha de comando:" #: ../../library/unittest.rst:206 msgid "" "The standard output and standard error streams are buffered during the test " -"run. Output during a passing test is discarded. Output is echoed normally on" -" test fail or error and is added to the failure messages." +"run. Output during a passing test is discarded. Output is echoed normally on " +"test fail or error and is added to the failure messages." msgstr "" -"Os streams da saída padrão e do erro padrão são carregados durante a execção" -" do teste. A saída de um teste que passou é descartada. A saída geralmente é" -" mostrada quando um teste falha e é adicionada às mensagens de falha." +"Os streams da saída padrão e do erro padrão são carregados durante a execção " +"do teste. A saída de um teste que passou é descartada. A saída geralmente é " +"mostrada quando um teste falha e é adicionada às mensagens de falha." #: ../../library/unittest.rst:212 msgid "" @@ -414,14 +413,14 @@ msgid "" "of the given patterns are included." msgstr "" "Somente execute métodos de teste e classes que combinem com o padrão ou " -"substring. Essa opção pode ser utilizada várias vezes, em cada caso todos os" -" testes que combinam com o padrão dado serão incluídos." +"substring. Essa opção pode ser utilizada várias vezes, em cada caso todos os " +"testes que combinam com o padrão dado serão incluídos." #: ../../library/unittest.rst:228 msgid "" "Patterns that contain a wildcard character (``*``) are matched against the " -"test name using :meth:`fnmatch.fnmatchcase`; otherwise simple case-sensitive" -" substring matching is used." +"test name using :meth:`fnmatch.fnmatchcase`; otherwise simple case-sensitive " +"substring matching is used." msgstr "" #: ../../library/unittest.rst:232 @@ -433,12 +432,12 @@ msgstr "" #: ../../library/unittest.rst:235 msgid "" "For example, ``-k foo`` matches ``foo_tests.SomeTest.test_something``, " -"``bar_tests.SomeTest.test_foo``, but not " -"``bar_tests.FooTest.test_something``." +"``bar_tests.SomeTest.test_foo``, but not ``bar_tests.FooTest." +"test_something``." msgstr "" "Por exemplo, ``-k foo`` combina com ``foo_tests.SomeTest.test_something``, " -"``bar_tests.SomeTest.test_foo``, mas não com " -"``bar_tests.FooTest.test_something``." +"``bar_tests.SomeTest.test_foo``, mas não com ``bar_tests.FooTest." +"test_something``." #: ../../library/unittest.rst:240 msgid "Show local variables in tracebacks." @@ -459,8 +458,8 @@ msgstr "A opção de linha de comando ``-k``." #: ../../library/unittest.rst:251 msgid "" -"The command line can also be used for test discovery, for running all of the" -" tests in a project or just a subset." +"The command line can also be used for test discovery, for running all of the " +"tests in a project or just a subset." msgstr "" "A linha de comando também pode ser usada para descobrir testes, para " "executar todos os testes de um projeto ou apenas de um subconjunto." @@ -471,11 +470,11 @@ msgstr "" #: ../../library/unittest.rst:262 msgid "" -"Unittest supports simple test discovery. In order to be compatible with test" -" discovery, all of the test files must be :ref:`modules ` or " -":ref:`packages ` (including :term:`namespace packages " -"`) importable from the top-level directory of the project" -" (this means that their filenames must be valid :ref:`identifiers " +"Unittest supports simple test discovery. In order to be compatible with test " +"discovery, all of the test files must be :ref:`modules ` or :" +"ref:`packages ` (including :term:`namespace packages " +"`) importable from the top-level directory of the project " +"(this means that their filenames must be valid :ref:`identifiers " "`)." msgstr "" @@ -517,8 +516,8 @@ msgstr "" #: ../../library/unittest.rst:301 msgid "" -"The :option:`-s`, :option:`-p`, and :option:`-t` options can be passed in as" -" positional arguments in that order. The following two command lines are " +"The :option:`-s`, :option:`-p`, and :option:`-t` options can be passed in as " +"positional arguments in that order. The following two command lines are " "equivalent::" msgstr "" "As opções :option:`-s`, :option:`-p` e :option:`-t` podem ser passadas como " @@ -529,8 +528,8 @@ msgstr "" msgid "" "As well as being a path it is possible to pass a package name, for example " "``myproject.subpackage.test``, as the start directory. The package name you " -"supply will then be imported and its location on the filesystem will be used" -" as the start directory." +"supply will then be imported and its location on the filesystem will be used " +"as the start directory." msgstr "" #: ../../library/unittest.rst:315 @@ -562,8 +561,7 @@ msgid "" msgstr "" #: ../../library/unittest.rst:332 -msgid "" -"Test discovery supports :term:`namespace packages `." +msgid "Test discovery supports :term:`namespace packages `." msgstr "" #: ../../library/unittest.rst:339 @@ -573,10 +571,10 @@ msgstr "Organizando código teste" #: ../../library/unittest.rst:341 msgid "" "The basic building blocks of unit testing are :dfn:`test cases` --- single " -"scenarios that must be set up and checked for correctness. In " -":mod:`unittest`, test cases are represented by :class:`unittest.TestCase` " -"instances. To make your own test cases you must write subclasses of " -":class:`TestCase` or use :class:`FunctionTestCase`." +"scenarios that must be set up and checked for correctness. In :mod:" +"`unittest`, test cases are represented by :class:`unittest.TestCase` " +"instances. To make your own test cases you must write subclasses of :class:" +"`TestCase` or use :class:`FunctionTestCase`." msgstr "" #: ../../library/unittest.rst:347 @@ -589,15 +587,15 @@ msgstr "" #: ../../library/unittest.rst:351 msgid "" "The simplest :class:`TestCase` subclass will simply implement a test method " -"(i.e. a method whose name starts with ``test``) in order to perform specific" -" testing code::" +"(i.e. a method whose name starts with ``test``) in order to perform specific " +"testing code::" msgstr "" #: ../../library/unittest.rst:362 msgid "" "Note that in order to test something, we use one of the :meth:`assert\\*` " -"methods provided by the :class:`TestCase` base class. If the test fails, an" -" exception will be raised with an explanatory message, and :mod:`unittest` " +"methods provided by the :class:`TestCase` base class. If the test fails, an " +"exception will be raised with an explanatory message, and :mod:`unittest` " "will identify the test case as a :dfn:`failure`. Any other exceptions will " "be treated as :dfn:`errors`." msgstr "" @@ -605,9 +603,9 @@ msgstr "" #: ../../library/unittest.rst:368 msgid "" "Tests can be numerous, and their set-up can be repetitive. Luckily, we can " -"factor out set-up code by implementing a method called " -":meth:`~TestCase.setUp`, which the testing framework will automatically call" -" for every single test we run::" +"factor out set-up code by implementing a method called :meth:`~TestCase." +"setUp`, which the testing framework will automatically call for every single " +"test we run::" msgstr "" #: ../../library/unittest.rst:389 @@ -619,38 +617,38 @@ msgstr "" #: ../../library/unittest.rst:393 msgid "" "If the :meth:`~TestCase.setUp` method raises an exception while the test is " -"running, the framework will consider the test to have suffered an error, and" -" the test method will not be executed." +"running, the framework will consider the test to have suffered an error, and " +"the test method will not be executed." msgstr "" #: ../../library/unittest.rst:397 msgid "" -"Similarly, we can provide a :meth:`~TestCase.tearDown` method that tidies up" -" after the test method has been run::" +"Similarly, we can provide a :meth:`~TestCase.tearDown` method that tidies up " +"after the test method has been run::" msgstr "" #: ../../library/unittest.rst:409 msgid "" -"If :meth:`~TestCase.setUp` succeeded, :meth:`~TestCase.tearDown` will be run" -" whether the test method succeeded or not." +"If :meth:`~TestCase.setUp` succeeded, :meth:`~TestCase.tearDown` will be run " +"whether the test method succeeded or not." msgstr "" #: ../../library/unittest.rst:412 msgid "" "Such a working environment for the testing code is called a :dfn:`test " "fixture`. A new TestCase instance is created as a unique test fixture used " -"to execute each individual test method. Thus :meth:`~TestCase.setUp`, " -":meth:`~TestCase.tearDown`, and :meth:`~TestCase.__init__` will be called " -"once per test." +"to execute each individual test method. Thus :meth:`~TestCase.setUp`, :meth:" +"`~TestCase.tearDown`, and :meth:`~TestCase.__init__` will be called once per " +"test." msgstr "" #: ../../library/unittest.rst:418 msgid "" "It is recommended that you use TestCase implementations to group tests " "together according to the features they test. :mod:`unittest` provides a " -"mechanism for this: the :dfn:`test suite`, represented by :mod:`unittest`'s " -":class:`TestSuite` class. In most cases, calling :func:`unittest.main` will" -" do the right thing and collect all the module's test cases for you and " +"mechanism for this: the :dfn:`test suite`, represented by :mod:`unittest`'s :" +"class:`TestSuite` class. In most cases, calling :func:`unittest.main` will " +"do the right thing and collect all the module's test cases for you and " "execute them." msgstr "" @@ -711,14 +709,14 @@ msgstr "" #: ../../library/unittest.rst:465 msgid "" "Some users will find that they have existing test code that they would like " -"to run from :mod:`unittest`, without converting every old test function to a" -" :class:`TestCase` subclass." +"to run from :mod:`unittest`, without converting every old test function to " +"a :class:`TestCase` subclass." msgstr "" #: ../../library/unittest.rst:469 msgid "" -"For this reason, :mod:`unittest` provides a :class:`FunctionTestCase` class." -" This subclass of :class:`TestCase` can be used to wrap an existing test " +"For this reason, :mod:`unittest` provides a :class:`FunctionTestCase` class. " +"This subclass of :class:`TestCase` can be used to wrap an existing test " "function. Set-up and tear-down functions can also be provided." msgstr "" @@ -742,11 +740,10 @@ msgstr "" #: ../../library/unittest.rst:494 msgid "" -"In some cases, the existing tests may have been written using the " -":mod:`doctest` module. If so, :mod:`doctest` provides a " -":class:`DocTestSuite` class that can automatically build " -":class:`unittest.TestSuite` instances from the existing :mod:`doctest`\\ " -"-based tests." +"In some cases, the existing tests may have been written using the :mod:" +"`doctest` module. If so, :mod:`doctest` provides a :class:`DocTestSuite` " +"class that can automatically build :class:`unittest.TestSuite` instances " +"from the existing :mod:`doctest`\\ -based tests." msgstr "" #: ../../library/unittest.rst:503 @@ -755,18 +752,18 @@ msgstr "" #: ../../library/unittest.rst:507 msgid "" -"Unittest supports skipping individual test methods and even whole classes of" -" tests. In addition, it supports marking a test as an \"expected failure,\"" -" a test that is broken and will fail, but shouldn't be counted as a failure " +"Unittest supports skipping individual test methods and even whole classes of " +"tests. In addition, it supports marking a test as an \"expected failure,\" " +"a test that is broken and will fail, but shouldn't be counted as a failure " "on a :class:`TestResult`." msgstr "" #: ../../library/unittest.rst:512 msgid "" -"Skipping a test is simply a matter of using the :func:`skip` " -":term:`decorator` or one of its conditional variants, calling " -":meth:`TestCase.skipTest` within a :meth:`~TestCase.setUp` or test method, " -"or raising :exc:`SkipTest` directly." +"Skipping a test is simply a matter of using the :func:`skip` :term:" +"`decorator` or one of its conditional variants, calling :meth:`TestCase." +"skipTest` within a :meth:`~TestCase.setUp` or test method, or raising :exc:" +"`SkipTest` directly." msgstr "" #: ../../library/unittest.rst:516 @@ -836,10 +833,10 @@ msgstr "" #: ../../library/unittest.rst:606 msgid "" -"Skipped tests will not have :meth:`~TestCase.setUp` or " -":meth:`~TestCase.tearDown` run around them. Skipped classes will not have " -":meth:`~TestCase.setUpClass` or :meth:`~TestCase.tearDownClass` run. Skipped" -" modules will not have :func:`setUpModule` or :func:`tearDownModule` run." +"Skipped tests will not have :meth:`~TestCase.setUp` or :meth:`~TestCase." +"tearDown` run around them. Skipped classes will not have :meth:`~TestCase." +"setUpClass` or :meth:`~TestCase.tearDownClass` run. Skipped modules will not " +"have :func:`setUpModule` or :func:`tearDownModule` run." msgstr "" #: ../../library/unittest.rst:614 @@ -864,12 +861,11 @@ msgstr "" #: ../../library/unittest.rst:660 msgid "" "Without using a subtest, execution would stop after the first failure, and " -"the error would be less easy to diagnose because the value of ``i`` wouldn't" -" be displayed::" +"the error would be less easy to diagnose because the value of ``i`` wouldn't " +"be displayed::" msgstr "" -"Sem usar um subteste, a execução para depois da primeira falha e o erro será" -" menos fácil de ser diagnosticado porque o valor de ``i`` não será " -"mostrado::" +"Sem usar um subteste, a execução para depois da primeira falha e o erro será " +"menos fácil de ser diagnosticado porque o valor de ``i`` não será mostrado::" #: ../../library/unittest.rst:676 msgid "Classes and functions" @@ -885,8 +881,8 @@ msgstr "" #: ../../library/unittest.rst:688 msgid "" -"Instances of the :class:`TestCase` class represent the logical test units in" -" the :mod:`unittest` universe. This class is intended to be used as a base " +"Instances of the :class:`TestCase` class represent the logical test units in " +"the :mod:`unittest` universe. This class is intended to be used as a base " "class, with specific tests being implemented by concrete subclasses. This " "class implements the interface needed by the test runner to allow it to " "drive the tests, and methods that the test code can use to check for and " @@ -895,24 +891,24 @@ msgstr "" #: ../../library/unittest.rst:695 msgid "" -"Each instance of :class:`TestCase` will run a single base method: the method" -" named *methodName*. In most uses of :class:`TestCase`, you will neither " +"Each instance of :class:`TestCase` will run a single base method: the method " +"named *methodName*. In most uses of :class:`TestCase`, you will neither " "change the *methodName* nor reimplement the default ``runTest()`` method." msgstr "" #: ../../library/unittest.rst:700 msgid "" ":class:`TestCase` can be instantiated successfully without providing a " -"*methodName*. This makes it easier to experiment with :class:`TestCase` from" -" the interactive interpreter." +"*methodName*. This makes it easier to experiment with :class:`TestCase` from " +"the interactive interpreter." msgstr "" #: ../../library/unittest.rst:705 msgid "" ":class:`TestCase` instances provide three groups of methods: one group used " -"to run the test, another used by the test implementation to check conditions" -" and report failures, and some inquiry methods allowing information about " -"the test itself to be gathered." +"to run the test, another used by the test implementation to check conditions " +"and report failures, and some inquiry methods allowing information about the " +"test itself to be gathered." msgstr "" #: ../../library/unittest.rst:710 @@ -922,9 +918,9 @@ msgstr "" #: ../../library/unittest.rst:714 msgid "" "Method called to prepare the test fixture. This is called immediately " -"before calling the test method; other than :exc:`AssertionError` or " -":exc:`SkipTest`, any exception raised by this method will be considered an " -"error rather than a test failure. The default implementation does nothing." +"before calling the test method; other than :exc:`AssertionError` or :exc:" +"`SkipTest`, any exception raised by this method will be considered an error " +"rather than a test failure. The default implementation does nothing." msgstr "" #: ../../library/unittest.rst:722 @@ -932,12 +928,12 @@ msgid "" "Method called immediately after the test method has been called and the " "result recorded. This is called even if the test method raised an " "exception, so the implementation in subclasses may need to be particularly " -"careful about checking internal state. Any exception, other than " -":exc:`AssertionError` or :exc:`SkipTest`, raised by this method will be " +"careful about checking internal state. Any exception, other than :exc:" +"`AssertionError` or :exc:`SkipTest`, raised by this method will be " "considered an additional error rather than a test failure (thus increasing " -"the total number of reported errors). This method will only be called if the" -" :meth:`setUp` succeeds, regardless of the outcome of the test method. The " -"default implementation does nothing." +"the total number of reported errors). This method will only be called if " +"the :meth:`setUp` succeeds, regardless of the outcome of the test method. " +"The default implementation does nothing." msgstr "" #: ../../library/unittest.rst:735 @@ -1009,8 +1005,8 @@ msgstr "" #: ../../library/unittest.rst:809 msgid "" -"The :class:`TestCase` class provides several assert methods to check for and" -" report failures. The following table lists the most commonly used methods " +"The :class:`TestCase` class provides several assert methods to check for and " +"report failures. The following table lists the most commonly used methods " "(see the tables below for more assert methods):" msgstr "" @@ -1031,7 +1027,7 @@ msgstr "" #: ../../library/unittest.rst:816 msgid ":meth:`assertEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertEqual(a, b) `" #: ../../library/unittest.rst:816 msgid "``a == b``" @@ -1039,7 +1035,7 @@ msgstr "``a == b``" #: ../../library/unittest.rst:819 msgid ":meth:`assertNotEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertNotEqual(a, b) `" #: ../../library/unittest.rst:819 msgid "``a != b``" @@ -1047,7 +1043,7 @@ msgstr "``a != b``" #: ../../library/unittest.rst:822 msgid ":meth:`assertTrue(x) `" -msgstr "" +msgstr ":meth:`assertTrue(x) `" #: ../../library/unittest.rst:822 msgid "``bool(x) is True``" @@ -1055,7 +1051,7 @@ msgstr "" #: ../../library/unittest.rst:825 msgid ":meth:`assertFalse(x) `" -msgstr "" +msgstr ":meth:`assertFalse(x) `" #: ../../library/unittest.rst:825 msgid "``bool(x) is False``" @@ -1063,7 +1059,7 @@ msgstr "" #: ../../library/unittest.rst:828 msgid ":meth:`assertIs(a, b) `" -msgstr "" +msgstr ":meth:`assertIs(a, b) `" #: ../../library/unittest.rst:828 msgid "``a is b``" @@ -1083,7 +1079,7 @@ msgstr "" #: ../../library/unittest.rst:831 msgid ":meth:`assertIsNot(a, b) `" -msgstr "" +msgstr ":meth:`assertIsNot(a, b) `" #: ../../library/unittest.rst:831 msgid "``a is not b``" @@ -1091,7 +1087,7 @@ msgstr "``a is not b``" #: ../../library/unittest.rst:834 msgid ":meth:`assertIsNone(x) `" -msgstr "" +msgstr ":meth:`assertIsNone(x) `" #: ../../library/unittest.rst:834 msgid "``x is None``" @@ -1099,7 +1095,7 @@ msgstr "" #: ../../library/unittest.rst:837 msgid ":meth:`assertIsNotNone(x) `" -msgstr "" +msgstr ":meth:`assertIsNotNone(x) `" #: ../../library/unittest.rst:837 msgid "``x is not None``" @@ -1107,7 +1103,7 @@ msgstr "" #: ../../library/unittest.rst:840 msgid ":meth:`assertIn(a, b) `" -msgstr "" +msgstr ":meth:`assertIn(a, b) `" #: ../../library/unittest.rst:840 msgid "``a in b``" @@ -1115,7 +1111,7 @@ msgstr "" #: ../../library/unittest.rst:843 msgid ":meth:`assertNotIn(a, b) `" -msgstr "" +msgstr ":meth:`assertNotIn(a, b) `" #: ../../library/unittest.rst:843 msgid "``a not in b``" @@ -1123,7 +1119,7 @@ msgstr "" #: ../../library/unittest.rst:846 msgid ":meth:`assertIsInstance(a, b) `" -msgstr "" +msgstr ":meth:`assertIsInstance(a, b) `" #: ../../library/unittest.rst:846 msgid "``isinstance(a, b)``" @@ -1137,7 +1133,7 @@ msgstr "" #: ../../library/unittest.rst:849 msgid ":meth:`assertNotIsInstance(a, b) `" -msgstr "" +msgstr ":meth:`assertNotIsInstance(a, b) `" #: ../../library/unittest.rst:849 msgid "``not isinstance(a, b)``" @@ -1147,9 +1143,9 @@ msgstr "" msgid "" "All the assert methods accept a *msg* argument that, if specified, is used " "as the error message on failure (see also :data:`longMessage`). Note that " -"the *msg* keyword argument can be passed to :meth:`assertRaises`, " -":meth:`assertRaisesRegex`, :meth:`assertWarns`, :meth:`assertWarnsRegex` " -"only when they are used as a context manager." +"the *msg* keyword argument can be passed to :meth:`assertRaises`, :meth:" +"`assertRaisesRegex`, :meth:`assertWarns`, :meth:`assertWarnsRegex` only when " +"they are used as a context manager." msgstr "" #: ../../library/unittest.rst:861 @@ -1174,8 +1170,8 @@ msgstr "" #: ../../library/unittest.rst:874 msgid "" -":meth:`assertMultiLineEqual` added as the default type equality function for" -" comparing strings." +":meth:`assertMultiLineEqual` added as the default type equality function for " +"comparing strings." msgstr "" #: ../../library/unittest.rst:881 @@ -1208,25 +1204,25 @@ msgid "Test that *expr* is (or is not) ``None``." msgstr "" #: ../../library/unittest.rst:916 -msgid "Test that *first* is (or is not) in *second*." +msgid "Test that *member* is (or is not) in *container*." msgstr "" #: ../../library/unittest.rst:924 msgid "" -"Test that *obj* is (or is not) an instance of *cls* (which can be a class or" -" a tuple of classes, as supported by :func:`isinstance`). To check for the " +"Test that *obj* is (or is not) an instance of *cls* (which can be a class or " +"a tuple of classes, as supported by :func:`isinstance`). To check for the " "exact type, use :func:`assertIs(type(obj), cls) `." msgstr "" #: ../../library/unittest.rst:932 msgid "" -"It is also possible to check the production of exceptions, warnings, and log" -" messages using the following methods:" +"It is also possible to check the production of exceptions, warnings, and log " +"messages using the following methods:" msgstr "" #: ../../library/unittest.rst:938 msgid ":meth:`assertRaises(exc, fun, *args, **kwds) `" -msgstr "" +msgstr ":meth:`assertRaises(exc, fun, *args, **kwds) `" #: ../../library/unittest.rst:938 msgid "``fun(*args, **kwds)`` raises *exc*" @@ -1234,9 +1230,11 @@ msgstr "" #: ../../library/unittest.rst:941 msgid "" -":meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) " -"`" +":meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) `" msgstr "" +":meth:`assertRaisesRegex(exc, r, fun, *args, **kwds) `" #: ../../library/unittest.rst:941 msgid "``fun(*args, **kwds)`` raises *exc* and the message matches regex *r*" @@ -1244,7 +1242,7 @@ msgstr "" #: ../../library/unittest.rst:944 msgid ":meth:`assertWarns(warn, fun, *args, **kwds) `" -msgstr "" +msgstr ":meth:`assertWarns(warn, fun, *args, **kwds) `" #: ../../library/unittest.rst:944 msgid "``fun(*args, **kwds)`` raises *warn*" @@ -1252,9 +1250,11 @@ msgstr "" #: ../../library/unittest.rst:947 msgid "" -":meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) " -"`" +":meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) `" msgstr "" +":meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) `" #: ../../library/unittest.rst:947 msgid "``fun(*args, **kwds)`` raises *warn* and the message matches regex *r*" @@ -1262,7 +1262,7 @@ msgstr "" #: ../../library/unittest.rst:950 msgid ":meth:`assertLogs(logger, level) `" -msgstr "" +msgstr ":meth:`assertLogs(logger, level) `" #: ../../library/unittest.rst:950 msgid "The ``with`` block logs on *logger* with minimum *level*" @@ -1275,17 +1275,17 @@ msgstr "" #: ../../library/unittest.rst:957 msgid "" "Test that an exception is raised when *callable* is called with any " -"positional or keyword arguments that are also passed to " -":meth:`assertRaises`. The test passes if *exception* is raised, is an error" -" if another exception is raised, or fails if no exception is raised. To " -"catch any of a group of exceptions, a tuple containing the exception classes" -" may be passed as *exception*." +"positional or keyword arguments that are also passed to :meth:" +"`assertRaises`. The test passes if *exception* is raised, is an error if " +"another exception is raised, or fails if no exception is raised. To catch " +"any of a group of exceptions, a tuple containing the exception classes may " +"be passed as *exception*." msgstr "" #: ../../library/unittest.rst:964 msgid "" -"If only the *exception* and possibly the *msg* arguments are given, return a" -" context manager so that the code under test can be written inline rather " +"If only the *exception* and possibly the *msg* arguments are given, return a " +"context manager so that the code under test can be written inline rather " "than as a function::" msgstr "" @@ -1297,9 +1297,9 @@ msgstr "" #: ../../library/unittest.rst:974 msgid "" -"The context manager will store the caught exception object in its " -":attr:`exception` attribute. This can be useful if the intention is to " -"perform additional checks on the exception raised::" +"The context manager will store the caught exception object in its :attr:" +"`exception` attribute. This can be useful if the intention is to perform " +"additional checks on the exception raised::" msgstr "" #: ../../library/unittest.rst:984 @@ -1318,9 +1318,9 @@ msgstr "" #: ../../library/unittest.rst:997 msgid "" "Like :meth:`assertRaises` but also tests that *regex* matches on the string " -"representation of the raised exception. *regex* may be a regular expression" -" object or a string containing a regular expression suitable for use by " -":func:`re.search`. Examples::" +"representation of the raised exception. *regex* may be a regular expression " +"object or a string containing a regular expression suitable for use by :func:" +"`re.search`. Examples::" msgstr "" #: ../../library/unittest.rst:1005 ../../library/unittest.rst:1073 @@ -1338,10 +1338,10 @@ msgstr "" #: ../../library/unittest.rst:1023 msgid "" "Test that a warning is triggered when *callable* is called with any " -"positional or keyword arguments that are also passed to :meth:`assertWarns`." -" The test passes if *warning* is triggered and fails if it isn't. Any " -"exception is an error. To catch any of a group of warnings, a tuple " -"containing the warning classes may be passed as *warnings*." +"positional or keyword arguments that are also passed to :meth:" +"`assertWarns`. The test passes if *warning* is triggered and fails if it " +"isn't. Any exception is an error. To catch any of a group of warnings, a " +"tuple containing the warning classes may be passed as *warnings*." msgstr "" #: ../../library/unittest.rst:1030 @@ -1359,10 +1359,10 @@ msgstr "" #: ../../library/unittest.rst:1040 msgid "" -"The context manager will store the caught warning object in its " -":attr:`warning` attribute, and the source line which triggered the warnings " -"in the :attr:`filename` and :attr:`lineno` attributes. This can be useful if" -" the intention is to perform additional checks on the warning caught::" +"The context manager will store the caught warning object in its :attr:" +"`warning` attribute, and the source line which triggered the warnings in " +"the :attr:`filename` and :attr:`lineno` attributes. This can be useful if " +"the intention is to perform additional checks on the warning caught::" msgstr "" #: ../../library/unittest.rst:1052 @@ -1375,8 +1375,8 @@ msgstr "" msgid "" "Like :meth:`assertWarns` but also tests that *regex* matches on the message " "of the triggered warning. *regex* may be a regular expression object or a " -"string containing a regular expression suitable for use by " -":func:`re.search`. Example::" +"string containing a regular expression suitable for use by :func:`re." +"search`. Example::" msgstr "" #: ../../library/unittest.rst:1085 @@ -1387,16 +1387,16 @@ msgstr "" #: ../../library/unittest.rst:1089 msgid "" -"If given, *logger* should be a :class:`logging.Logger` object or a " -":class:`str` giving the name of a logger. The default is the root logger, " -"which will catch all messages." +"If given, *logger* should be a :class:`logging.Logger` object or a :class:" +"`str` giving the name of a logger. The default is the root logger, which " +"will catch all messages." msgstr "" #: ../../library/unittest.rst:1093 msgid "" "If given, *level* should be either a numeric logging level or its string " -"equivalent (for example either ``\"ERROR\"`` or :attr:`logging.ERROR`). The" -" default is :attr:`logging.INFO`." +"equivalent (for example either ``\"ERROR\"`` or :attr:`logging.ERROR`). The " +"default is :attr:`logging.INFO`." msgstr "" #: ../../library/unittest.rst:1097 @@ -1407,8 +1407,8 @@ msgstr "" #: ../../library/unittest.rst:1100 msgid "" -"The object returned by the context manager is a recording helper which keeps" -" tracks of the matching log messages. It has two attributes:" +"The object returned by the context manager is a recording helper which keeps " +"tracks of the matching log messages. It has two attributes:" msgstr "" #: ../../library/unittest.rst:1106 @@ -1433,7 +1433,7 @@ msgstr "" #: ../../library/unittest.rst:1130 msgid ":meth:`assertAlmostEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertAlmostEqual(a, b) `" #: ../../library/unittest.rst:1130 msgid "``round(a-b, 7) == 0``" @@ -1441,7 +1441,7 @@ msgstr "" #: ../../library/unittest.rst:1133 msgid ":meth:`assertNotAlmostEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertNotAlmostEqual(a, b) `" #: ../../library/unittest.rst:1133 msgid "``round(a-b, 7) != 0``" @@ -1449,7 +1449,7 @@ msgstr "" #: ../../library/unittest.rst:1136 msgid ":meth:`assertGreater(a, b) `" -msgstr "" +msgstr ":meth:`assertGreater(a, b) `" #: ../../library/unittest.rst:1136 msgid "``a > b``" @@ -1457,7 +1457,7 @@ msgstr "``a > b``" #: ../../library/unittest.rst:1139 msgid ":meth:`assertGreaterEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertGreaterEqual(a, b) `" #: ../../library/unittest.rst:1139 msgid "``a >= b``" @@ -1465,7 +1465,7 @@ msgstr "``a >= b``" #: ../../library/unittest.rst:1142 msgid ":meth:`assertLess(a, b) `" -msgstr "" +msgstr ":meth:`assertLess(a, b) `" #: ../../library/unittest.rst:1142 msgid "``a < b``" @@ -1473,7 +1473,7 @@ msgstr "``a < b``" #: ../../library/unittest.rst:1145 msgid ":meth:`assertLessEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertLessEqual(a, b) `" #: ../../library/unittest.rst:1145 msgid "``a <= b``" @@ -1481,15 +1481,15 @@ msgstr "``a <= b``" #: ../../library/unittest.rst:1148 msgid ":meth:`assertRegex(s, r) `" -msgstr "" +msgstr ":meth:`assertRegex(s, r) `" #: ../../library/unittest.rst:1148 msgid "``r.search(s)``" -msgstr "" +msgstr "``r.search(s)``" #: ../../library/unittest.rst:1151 msgid ":meth:`assertNotRegex(s, r) `" -msgstr "" +msgstr ":meth:`assertNotRegex(s, r) `" #: ../../library/unittest.rst:1151 msgid "``not r.search(s)``" @@ -1497,7 +1497,7 @@ msgstr "" #: ../../library/unittest.rst:1154 msgid ":meth:`assertCountEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertCountEqual(a, b) `" #: ../../library/unittest.rst:1154 msgid "" @@ -1510,8 +1510,8 @@ msgid "" "Test that *first* and *second* are approximately (or not approximately) " "equal by computing the difference, rounding to the given number of decimal " "*places* (default 7), and comparing to zero. Note that these methods round " -"the values to the given number of *decimal places* (i.e. like the " -":func:`round` function) and not *significant digits*." +"the values to the given number of *decimal places* (i.e. like the :func:" +"`round` function) and not *significant digits*." msgstr "" #: ../../library/unittest.rst:1169 @@ -1541,8 +1541,8 @@ msgstr "" msgid "" "Test that a *regex* search matches (or does not match) *text*. In case of " "failure, the error message will include the pattern and the *text* (or the " -"pattern and the part of *text* that unexpectedly matched). *regex* may be a" -" regular expression object or a string containing a regular expression " +"pattern and the part of *text* that unexpectedly matched). *regex* may be a " +"regular expression object or a string containing a regular expression " "suitable for use by :func:`re.search`." msgstr "" @@ -1552,8 +1552,8 @@ msgstr "" #: ../../library/unittest.rst:1205 msgid "" -"The method ``assertRegexpMatches()`` has been renamed to " -":meth:`.assertRegex`." +"The method ``assertRegexpMatches()`` has been renamed to :meth:`." +"assertRegex`." msgstr "" #: ../../library/unittest.rst:1208 @@ -1562,8 +1562,8 @@ msgstr "" #: ../../library/unittest.rst:1210 msgid "" -"The name ``assertNotRegexpMatches`` is a deprecated alias for " -":meth:`.assertNotRegex`." +"The name ``assertNotRegexpMatches`` is a deprecated alias for :meth:`." +"assertNotRegex`." msgstr "" #: ../../library/unittest.rst:1217 @@ -1575,8 +1575,8 @@ msgstr "" #: ../../library/unittest.rst:1221 msgid "" -"Duplicate elements are *not* ignored when comparing *first* and *second*. It" -" verifies whether each element has the same count in both sequences. " +"Duplicate elements are *not* ignored when comparing *first* and *second*. It " +"verifies whether each element has the same count in both sequences. " "Equivalent to: ``assertEqual(Counter(list(first)), Counter(list(second)))`` " "but works with sequences of unhashable objects as well." msgstr "" @@ -1584,8 +1584,8 @@ msgstr "" #: ../../library/unittest.rst:1232 msgid "" "The :meth:`assertEqual` method dispatches the equality check for objects of " -"the same type to different type-specific methods. These methods are already" -" implemented for most of the built-in types, but it's also possible to " +"the same type to different type-specific methods. These methods are already " +"implemented for most of the built-in types, but it's also possible to " "register new methods using :meth:`addTypeEqualityFunc`:" msgstr "" @@ -1594,17 +1594,17 @@ msgid "" "Registers a type-specific method called by :meth:`assertEqual` to check if " "two objects of exactly the same *typeobj* (not subclasses) compare equal. " "*function* must take two positional arguments and a third msg=None keyword " -"argument just as :meth:`assertEqual` does. It must raise " -":data:`self.failureException(msg) ` when inequality " -"between the first two parameters is detected -- possibly providing useful " -"information and explaining the inequalities in details in the error message." +"argument just as :meth:`assertEqual` does. It must raise :data:`self." +"failureException(msg) ` when inequality between the first " +"two parameters is detected -- possibly providing useful information and " +"explaining the inequalities in details in the error message." msgstr "" #: ../../library/unittest.rst:1250 msgid "" -"The list of type-specific methods automatically used by " -":meth:`~TestCase.assertEqual` are summarized in the following table. Note " -"that it's usually not necessary to invoke these methods directly." +"The list of type-specific methods automatically used by :meth:`~TestCase." +"assertEqual` are summarized in the following table. Note that it's usually " +"not necessary to invoke these methods directly." msgstr "" #: ../../library/unittest.rst:1255 @@ -1613,7 +1613,7 @@ msgstr "" #: ../../library/unittest.rst:1257 msgid ":meth:`assertMultiLineEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertMultiLineEqual(a, b) `" #: ../../library/unittest.rst:1257 msgid "strings" @@ -1621,7 +1621,7 @@ msgstr "" #: ../../library/unittest.rst:1260 msgid ":meth:`assertSequenceEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertSequenceEqual(a, b) `" #: ../../library/unittest.rst:1260 msgid "sequences" @@ -1629,7 +1629,7 @@ msgstr "" #: ../../library/unittest.rst:1263 msgid ":meth:`assertListEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertListEqual(a, b) `" #: ../../library/unittest.rst:1263 msgid "lists" @@ -1637,7 +1637,7 @@ msgstr "" #: ../../library/unittest.rst:1266 msgid ":meth:`assertTupleEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertTupleEqual(a, b) `" #: ../../library/unittest.rst:1266 msgid "tuples" @@ -1645,7 +1645,7 @@ msgstr "" #: ../../library/unittest.rst:1269 msgid ":meth:`assertSetEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertSetEqual(a, b) `" #: ../../library/unittest.rst:1269 msgid "sets or frozensets" @@ -1653,7 +1653,7 @@ msgstr "" #: ../../library/unittest.rst:1272 msgid ":meth:`assertDictEqual(a, b) `" -msgstr "" +msgstr ":meth:`assertDictEqual(a, b) `" #: ../../library/unittest.rst:1272 msgid "dicts" @@ -1661,18 +1661,18 @@ msgstr "" #: ../../library/unittest.rst:1280 msgid "" -"Test that the multiline string *first* is equal to the string *second*. When" -" not equal a diff of the two strings highlighting the differences will be " -"included in the error message. This method is used by default when comparing" -" strings with :meth:`assertEqual`." +"Test that the multiline string *first* is equal to the string *second*. When " +"not equal a diff of the two strings highlighting the differences will be " +"included in the error message. This method is used by default when comparing " +"strings with :meth:`assertEqual`." msgstr "" #: ../../library/unittest.rst:1290 msgid "" "Tests that two sequences are equal. If a *seq_type* is supplied, both " "*first* and *second* must be instances of *seq_type* or a failure will be " -"raised. If the sequences are different an error message is constructed that" -" shows the difference between the two." +"raised. If the sequences are different an error message is constructed that " +"shows the difference between the two." msgstr "" #: ../../library/unittest.rst:1295 @@ -1685,29 +1685,28 @@ msgstr "" msgid "" "Tests that two lists or tuples are equal. If not, an error message is " "constructed that shows only the differences between the two. An error is " -"also raised if either of the parameters are of the wrong type. These methods" -" are used by default when comparing lists or tuples with " -":meth:`assertEqual`." +"also raised if either of the parameters are of the wrong type. These methods " +"are used by default when comparing lists or tuples with :meth:`assertEqual`." msgstr "" #: ../../library/unittest.rst:1316 msgid "" -"Tests that two sets are equal. If not, an error message is constructed that" -" lists the differences between the sets. This method is used by default " -"when comparing sets or frozensets with :meth:`assertEqual`." +"Tests that two sets are equal. If not, an error message is constructed that " +"lists the differences between the sets. This method is used by default when " +"comparing sets or frozensets with :meth:`assertEqual`." msgstr "" #: ../../library/unittest.rst:1320 msgid "" -"Fails if either of *first* or *second* does not have a " -":meth:`set.difference` method." +"Fails if either of *first* or *second* does not have a :meth:`set." +"difference` method." msgstr "" #: ../../library/unittest.rst:1328 msgid "" "Test that two dictionaries are equal. If not, an error message is " -"constructed that shows the differences in the dictionaries. This method will" -" be used by default to compare dictionaries in calls to :meth:`assertEqual`." +"constructed that shows the differences in the dictionaries. This method will " +"be used by default to compare dictionaries in calls to :meth:`assertEqual`." msgstr "" #: ../../library/unittest.rst:1339 @@ -1717,8 +1716,8 @@ msgstr "" #: ../../library/unittest.rst:1344 msgid "" -"Signals a test failure unconditionally, with *msg* or ``None`` for the error" -" message." +"Signals a test failure unconditionally, with *msg* or ``None`` for the error " +"message." msgstr "" #: ../../library/unittest.rst:1350 @@ -1726,8 +1725,8 @@ msgid "" "This class attribute gives the exception raised by the test method. If a " "test framework needs to use a specialized exception, possibly to carry " "additional information, it must subclass this exception in order to \"play " -"fair\" with the framework. The initial value of this attribute is " -":exc:`AssertionError`." +"fair\" with the framework. The initial value of this attribute is :exc:" +"`AssertionError`." msgstr "" #: ../../library/unittest.rst:1359 @@ -1752,11 +1751,11 @@ msgstr "" #: ../../library/unittest.rst:1376 msgid "" -"This attribute controls the maximum length of diffs output by assert methods" -" that report diffs on failure. It defaults to 80*8 characters. Assert " -"methods affected by this attribute are :meth:`assertSequenceEqual` " -"(including all the sequence comparison methods that delegate to it), " -":meth:`assertDictEqual` and :meth:`assertMultiLineEqual`." +"This attribute controls the maximum length of diffs output by assert methods " +"that report diffs on failure. It defaults to 80*8 characters. Assert methods " +"affected by this attribute are :meth:`assertSequenceEqual` (including all " +"the sequence comparison methods that delegate to it), :meth:" +"`assertDictEqual` and :meth:`assertMultiLineEqual`." msgstr "" #: ../../library/unittest.rst:1383 @@ -1773,8 +1772,8 @@ msgstr "" #: ../../library/unittest.rst:1395 msgid "" -"Return the number of tests represented by this test object. For " -":class:`TestCase` instances, this will always be ``1``." +"Return the number of tests represented by this test object. For :class:" +"`TestCase` instances, this will always be ``1``." msgstr "" #: ../../library/unittest.rst:1401 @@ -1786,9 +1785,9 @@ msgstr "" #: ../../library/unittest.rst:1405 msgid "" -"For :class:`TestCase` instances, this will always be an instance of " -":class:`TestResult`; subclasses of :class:`TestCase` should override this as" -" necessary." +"For :class:`TestCase` instances, this will always be an instance of :class:" +"`TestResult`; subclasses of :class:`TestCase` should override this as " +"necessary." msgstr "" #: ../../library/unittest.rst:1412 @@ -1808,17 +1807,17 @@ msgstr "" msgid "" "In 3.1 this was changed to add the test name to the short description even " "in the presence of a docstring. This caused compatibility issues with " -"unittest extensions and adding the test name was moved to the " -":class:`TextTestResult` in Python 3.2." +"unittest extensions and adding the test name was moved to the :class:" +"`TextTestResult` in Python 3.2." msgstr "" #: ../../library/unittest.rst:1432 msgid "" -"Add a function to be called after :meth:`tearDown` to cleanup resources used" -" during the test. Functions will be called in reverse order to the order " -"they are added (:abbr:`LIFO (last-in, first-out)`). They are called with " -"any arguments and keyword arguments passed into :meth:`addCleanup` when they" -" are added." +"Add a function to be called after :meth:`tearDown` to cleanup resources used " +"during the test. Functions will be called in reverse order to the order they " +"are added (:abbr:`LIFO (last-in, first-out)`). They are called with any " +"arguments and keyword arguments passed into :meth:`addCleanup` when they are " +"added." msgstr "" #: ../../library/unittest.rst:1438 @@ -1829,15 +1828,15 @@ msgstr "" #: ../../library/unittest.rst:1446 msgid "" -"This method is called unconditionally after :meth:`tearDown`, or after " -":meth:`setUp` if :meth:`setUp` raises an exception." +"This method is called unconditionally after :meth:`tearDown`, or after :meth:" +"`setUp` if :meth:`setUp` raises an exception." msgstr "" #: ../../library/unittest.rst:1449 msgid "" -"It is responsible for calling all the cleanup functions added by " -":meth:`addCleanup`. If you need cleanup functions to be called *prior* to " -":meth:`tearDown` then you can call :meth:`doCleanups` yourself." +"It is responsible for calling all the cleanup functions added by :meth:" +"`addCleanup`. If you need cleanup functions to be called *prior* to :meth:" +"`tearDown` then you can call :meth:`doCleanups` yourself." msgstr "" #: ../../library/unittest.rst:1454 @@ -1851,8 +1850,8 @@ msgid "" "This class implements the portion of the :class:`TestCase` interface which " "allows the test runner to drive the test, but does not provide the methods " "which test code can use to check and report errors. This is used to create " -"test cases using legacy test code, allowing it to be integrated into a " -":mod:`unittest`-based test framework." +"test cases using legacy test code, allowing it to be integrated into a :mod:" +"`unittest`-based test framework." msgstr "" #: ../../library/unittest.rst:1472 @@ -1862,21 +1861,21 @@ msgstr "" #: ../../library/unittest.rst:1474 msgid "" "For historical reasons, some of the :class:`TestCase` methods had one or " -"more aliases that are now deprecated. The following table lists the correct" -" names along with their deprecated aliases:" +"more aliases that are now deprecated. The following table lists the correct " +"names along with their deprecated aliases:" msgstr "" #: ../../library/unittest.rst:1479 msgid "Method Name" msgstr "" -#: ../../library/unittest.rst:1479 ../../library/unittest.rst:1479 +#: ../../library/unittest.rst:1479 msgid "Deprecated alias" msgstr "" #: ../../library/unittest.rst:1481 msgid ":meth:`.assertEqual`" -msgstr "" +msgstr ":meth:`.assertEqual`" #: ../../library/unittest.rst:1481 msgid "failUnlessEqual" @@ -1888,7 +1887,7 @@ msgstr "" #: ../../library/unittest.rst:1482 msgid ":meth:`.assertNotEqual`" -msgstr "" +msgstr ":meth:`.assertNotEqual`" #: ../../library/unittest.rst:1482 msgid "failIfEqual" @@ -1900,7 +1899,7 @@ msgstr "" #: ../../library/unittest.rst:1483 msgid ":meth:`.assertTrue`" -msgstr "" +msgstr ":meth:`.assertTrue`" #: ../../library/unittest.rst:1483 msgid "failUnless" @@ -1912,7 +1911,7 @@ msgstr "" #: ../../library/unittest.rst:1484 msgid ":meth:`.assertFalse`" -msgstr "" +msgstr ":meth:`.assertFalse`" #: ../../library/unittest.rst:1484 msgid "failIf" @@ -1920,7 +1919,7 @@ msgstr "" #: ../../library/unittest.rst:1485 msgid ":meth:`.assertRaises`" -msgstr "" +msgstr ":meth:`.assertRaises`" #: ../../library/unittest.rst:1485 msgid "failUnlessRaises" @@ -1928,7 +1927,7 @@ msgstr "" #: ../../library/unittest.rst:1486 msgid ":meth:`.assertAlmostEqual`" -msgstr "" +msgstr ":meth:`.assertAlmostEqual`" #: ../../library/unittest.rst:1486 msgid "failUnlessAlmostEqual" @@ -1940,7 +1939,7 @@ msgstr "" #: ../../library/unittest.rst:1487 msgid ":meth:`.assertNotAlmostEqual`" -msgstr "" +msgstr ":meth:`.assertNotAlmostEqual`" #: ../../library/unittest.rst:1487 msgid "failIfAlmostEqual" @@ -1952,7 +1951,7 @@ msgstr "" #: ../../library/unittest.rst:1488 msgid ":meth:`.assertRegex`" -msgstr "" +msgstr ":meth:`.assertRegex`" #: ../../library/unittest.rst:1488 msgid "assertRegexpMatches" @@ -1960,7 +1959,7 @@ msgstr "" #: ../../library/unittest.rst:1489 msgid ":meth:`.assertNotRegex`" -msgstr "" +msgstr ":meth:`.assertNotRegex`" #: ../../library/unittest.rst:1489 msgid "assertNotRegexpMatches" @@ -1968,7 +1967,7 @@ msgstr "" #: ../../library/unittest.rst:1490 msgid ":meth:`.assertRaisesRegex`" -msgstr "" +msgstr ":meth:`.assertRaisesRegex`" #: ../../library/unittest.rst:1490 msgid "assertRaisesRegexp" @@ -1984,14 +1983,14 @@ msgstr "" #: ../../library/unittest.rst:1497 msgid "" -"``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed to " -":meth:`.assertRegex` and :meth:`.assertRaisesRegex`." +"``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed to :" +"meth:`.assertRegex` and :meth:`.assertRaisesRegex`." msgstr "" #: ../../library/unittest.rst:1500 msgid "" -"The ``assertNotRegexpMatches`` name is deprecated in favor of " -":meth:`.assertNotRegex`." +"The ``assertNotRegexpMatches`` name is deprecated in favor of :meth:`." +"assertNotRegex`." msgstr "" #: ../../library/unittest.rst:1506 @@ -2009,9 +2008,8 @@ msgstr "" #: ../../library/unittest.rst:1515 msgid "" "If *tests* is given, it must be an iterable of individual test cases or " -"other test suites that will be used to build the suite initially. Additional" -" methods are provided to add test cases and suites to the collection later " -"on." +"other test suites that will be used to build the suite initially. Additional " +"methods are provided to add test cases and suites to the collection later on." msgstr "" #: ../../library/unittest.rst:1519 @@ -2029,8 +2027,8 @@ msgstr "" #: ../../library/unittest.rst:1532 msgid "" -"Add all the tests from an iterable of :class:`TestCase` and " -":class:`TestSuite` instances to this test suite." +"Add all the tests from an iterable of :class:`TestCase` and :class:" +"`TestSuite` instances to this test suite." msgstr "" #: ../../library/unittest.rst:1535 @@ -2040,23 +2038,21 @@ msgid "" msgstr "" #: ../../library/unittest.rst:1538 -msgid "" -":class:`TestSuite` shares the following methods with :class:`TestCase`:" +msgid ":class:`TestSuite` shares the following methods with :class:`TestCase`:" msgstr "" #: ../../library/unittest.rst:1543 msgid "" "Run the tests associated with this suite, collecting the result into the " -"test result object passed as *result*. Note that unlike " -":meth:`TestCase.run`, :meth:`TestSuite.run` requires the result object to be" -" passed in." +"test result object passed as *result*. Note that unlike :meth:`TestCase." +"run`, :meth:`TestSuite.run` requires the result object to be passed in." msgstr "" #: ../../library/unittest.rst:1551 msgid "" -"Run the tests associated with this suite without collecting the result. This" -" allows exceptions raised by the test to be propagated to the caller and can" -" be used to support running tests under a debugger." +"Run the tests associated with this suite without collecting the result. This " +"allows exceptions raised by the test to be propagated to the caller and can " +"be used to support running tests under a debugger." msgstr "" #: ../../library/unittest.rst:1558 @@ -2080,22 +2076,21 @@ msgstr "" #: ../../library/unittest.rst:1574 msgid "" "In earlier versions the :class:`TestSuite` accessed tests directly rather " -"than through iteration, so overriding :meth:`__iter__` wasn't sufficient for" -" providing tests." +"than through iteration, so overriding :meth:`__iter__` wasn't sufficient for " +"providing tests." msgstr "" #: ../../library/unittest.rst:1579 msgid "" -"In earlier versions the :class:`TestSuite` held references to each " -":class:`TestCase` after :meth:`TestSuite.run`. Subclasses can restore that " -"behavior by overriding :meth:`TestSuite._removeTestAtIndex`." +"In earlier versions the :class:`TestSuite` held references to each :class:" +"`TestCase` after :meth:`TestSuite.run`. Subclasses can restore that behavior " +"by overriding :meth:`TestSuite._removeTestAtIndex`." msgstr "" #: ../../library/unittest.rst:1584 msgid "" "In the typical usage of a :class:`TestSuite` object, the :meth:`run` method " -"is invoked by a :class:`TestRunner` rather than by the end-user test " -"harness." +"is invoked by a :class:`TestRunner` rather than by the end-user test harness." msgstr "" #: ../../library/unittest.rst:1589 @@ -2104,11 +2099,11 @@ msgstr "" #: ../../library/unittest.rst:1593 msgid "" -"The :class:`TestLoader` class is used to create test suites from classes and" -" modules. Normally, there is no need to create an instance of this class; " -"the :mod:`unittest` module provides an instance that can be shared as " -":data:`unittest.defaultTestLoader`. Using a subclass or instance, however, " -"allows customization of some configurable properties." +"The :class:`TestLoader` class is used to create test suites from classes and " +"modules. Normally, there is no need to create an instance of this class; " +"the :mod:`unittest` module provides an instance that can be shared as :data:" +"`unittest.defaultTestLoader`. Using a subclass or instance, however, allows " +"customization of some configurable properties." msgstr "" #: ../../library/unittest.rst:1599 @@ -2117,10 +2112,10 @@ msgstr "" #: ../../library/unittest.rst:1604 msgid "" -"A list of the non-fatal errors encountered while loading tests. Not reset by" -" the loader at any point. Fatal errors are signalled by the relevant a " -"method raising an exception to the caller. Non-fatal errors are also " -"indicated by a synthetic test that will raise the original error when run." +"A list of the non-fatal errors encountered while loading tests. Not reset by " +"the loader at any point. Fatal errors are signalled by the relevant a method " +"raising an exception to the caller. Non-fatal errors are also indicated by a " +"synthetic test that will raise the original error when run." msgstr "" #: ../../library/unittest.rst:1613 @@ -2129,17 +2124,17 @@ msgstr "" #: ../../library/unittest.rst:1618 msgid "" -"Return a suite of all test cases contained in the :class:`TestCase`\\ " -"-derived :class:`testCaseClass`." +"Return a suite of all test cases contained in the :class:`TestCase`\\ -" +"derived :class:`testCaseClass`." msgstr "" #: ../../library/unittest.rst:1621 msgid "" -"A test case instance is created for each method named by " -":meth:`getTestCaseNames`. By default these are the method names beginning " -"with ``test``. If :meth:`getTestCaseNames` returns no methods, but the " -":meth:`runTest` method is implemented, a single test case is created for " -"that method instead." +"A test case instance is created for each method named by :meth:" +"`getTestCaseNames`. By default these are the method names beginning with " +"``test``. If :meth:`getTestCaseNames` returns no methods, but the :meth:" +"`runTest` method is implemented, a single test case is created for that " +"method instead." msgstr "" #: ../../library/unittest.rst:1630 @@ -2160,8 +2155,8 @@ msgstr "" #: ../../library/unittest.rst:1643 msgid "" -"If a module provides a ``load_tests`` function it will be called to load the" -" tests. This allows modules to customize test loading. This is the " +"If a module provides a ``load_tests`` function it will be called to load the " +"tests. This allows modules to customize test loading. This is the " "`load_tests protocol`_. The *pattern* argument is passed as the third " "argument to ``load_tests``." msgstr "" @@ -2185,25 +2180,25 @@ msgstr "" #: ../../library/unittest.rst:1662 msgid "" "The specifier *name* is a \"dotted name\" that may resolve either to a " -"module, a test case class, a test method within a test case class, a " -":class:`TestSuite` instance, or a callable object which returns a " -":class:`TestCase` or :class:`TestSuite` instance. These checks are applied " -"in the order listed here; that is, a method on a possible test case class " -"will be picked up as \"a test method within a test case class\", rather than" -" \"a callable object\"." +"module, a test case class, a test method within a test case class, a :class:" +"`TestSuite` instance, or a callable object which returns a :class:`TestCase` " +"or :class:`TestSuite` instance. These checks are applied in the order " +"listed here; that is, a method on a possible test case class will be picked " +"up as \"a test method within a test case class\", rather than \"a callable " +"object\"." msgstr "" #: ../../library/unittest.rst:1670 msgid "" -"For example, if you have a module :mod:`SampleTests` containing a " -":class:`TestCase`\\ -derived class :class:`SampleTestCase` with three test " -"methods (:meth:`test_one`, :meth:`test_two`, and :meth:`test_three`), the " -"specifier ``'SampleTests.SampleTestCase'`` would cause this method to return" -" a suite which will run all three test methods. Using the specifier " -"``'SampleTests.SampleTestCase.test_two'`` would cause it to return a test " -"suite which will run only the :meth:`test_two` test method. The specifier " -"can refer to modules and packages which have not been imported; they will be" -" imported as a side-effect." +"For example, if you have a module :mod:`SampleTests` containing a :class:" +"`TestCase`\\ -derived class :class:`SampleTestCase` with three test methods " +"(:meth:`test_one`, :meth:`test_two`, and :meth:`test_three`), the specifier " +"``'SampleTests.SampleTestCase'`` would cause this method to return a suite " +"which will run all three test methods. Using the specifier ``'SampleTests." +"SampleTestCase.test_two'`` would cause it to return a test suite which will " +"run only the :meth:`test_two` test method. The specifier can refer to " +"modules and packages which have not been imported; they will be imported as " +"a side-effect." msgstr "" #: ../../library/unittest.rst:1680 @@ -2214,15 +2209,14 @@ msgstr "O método opcionalmente resolve o *nome* relativo ao *módulo* dado." msgid "" "If an :exc:`ImportError` or :exc:`AttributeError` occurs while traversing " "*name* then a synthetic test that raises that error when run will be " -"returned. These errors are included in the errors accumulated by " -"self.errors." +"returned. These errors are included in the errors accumulated by self.errors." msgstr "" #: ../../library/unittest.rst:1691 msgid "" "Similar to :meth:`loadTestsFromName`, but takes a sequence of names rather " -"than a single name. The return value is a test suite which supports all the" -" tests defined for each name." +"than a single name. The return value is a test suite which supports all the " +"tests defined for each name." msgstr "" #: ../../library/unittest.rst:1698 @@ -2261,22 +2255,22 @@ msgid "" "found, the package will be checked for a ``load_tests`` function. If this " "exists then it will be called ``package.load_tests(loader, tests, " "pattern)``. Test discovery takes care to ensure that a package is only " -"checked for tests once during an invocation, even if the load_tests function" -" itself calls ``loader.discover``." +"checked for tests once during an invocation, even if the load_tests function " +"itself calls ``loader.discover``." msgstr "" #: ../../library/unittest.rst:1727 msgid "" -"If ``load_tests`` exists then discovery does *not* recurse into the package," -" ``load_tests`` is responsible for loading all tests in the package." +"If ``load_tests`` exists then discovery does *not* recurse into the package, " +"``load_tests`` is responsible for loading all tests in the package." msgstr "" #: ../../library/unittest.rst:1731 msgid "" "The pattern is deliberately not stored as a loader attribute so that " "packages can continue discovery themselves. *top_level_dir* is stored so " -"``load_tests`` does not need to pass this argument in to " -"``loader.discover()``." +"``load_tests`` does not need to pass this argument in to ``loader." +"discover()``." msgstr "" #: ../../library/unittest.rst:1736 @@ -2287,16 +2281,16 @@ msgstr "" msgid "" "Modules that raise :exc:`SkipTest` on import are recorded as skips, not " "errors. Discovery works for :term:`namespace packages `. " -"Paths are sorted before being imported so that execution order is the same" -" even if the underlying file system's ordering is not dependent on file " +"Paths are sorted before being imported so that execution order is the same " +"even if the underlying file system's ordering is not dependent on file " "name." msgstr "" #: ../../library/unittest.rst:1748 msgid "" "Found packages are now checked for ``load_tests`` regardless of whether " -"their path matches *pattern*, because it is impossible for a package name to" -" match the default pattern." +"their path matches *pattern*, because it is impossible for a package name to " +"match the default pattern." msgstr "" #: ../../library/unittest.rst:1754 @@ -2319,15 +2313,15 @@ msgstr "" #: ../../library/unittest.rst:1769 msgid "" -"Function to be used to compare method names when sorting them in " -":meth:`getTestCaseNames` and all the :meth:`loadTestsFrom\\*` methods." +"Function to be used to compare method names when sorting them in :meth:" +"`getTestCaseNames` and all the :meth:`loadTestsFrom\\*` methods." msgstr "" #: ../../library/unittest.rst:1775 msgid "" "Callable object that constructs a test suite from a list of tests. No " -"methods on the resulting object are needed. The default value is the " -":class:`TestSuite` class." +"methods on the resulting object are needed. The default value is the :class:" +"`TestSuite` class." msgstr "" #: ../../library/unittest.rst:1779 ../../library/unittest.rst:1792 @@ -2357,18 +2351,18 @@ msgstr "" #: ../../library/unittest.rst:1802 msgid "" -"A :class:`TestResult` object stores the results of a set of tests. The " -":class:`TestCase` and :class:`TestSuite` classes ensure that results are " +"A :class:`TestResult` object stores the results of a set of tests. The :" +"class:`TestCase` and :class:`TestSuite` classes ensure that results are " "properly recorded; test authors do not need to worry about recording the " "outcome of tests." msgstr "" #: ../../library/unittest.rst:1807 msgid "" -"Testing frameworks built on top of :mod:`unittest` may want access to the " -":class:`TestResult` object generated by running a set of tests for reporting" -" purposes; a :class:`TestResult` instance is returned by the " -":meth:`TestRunner.run` method for this purpose." +"Testing frameworks built on top of :mod:`unittest` may want access to the :" +"class:`TestResult` object generated by running a set of tests for reporting " +"purposes; a :class:`TestResult` instance is returned by the :meth:" +"`TestRunner.run` method for this purpose." msgstr "" #: ../../library/unittest.rst:1812 @@ -2455,9 +2449,9 @@ msgstr "" #: ../../library/unittest.rst:1887 msgid "" "This method can be called to signal that the set of tests being run should " -"be aborted by setting the :attr:`shouldStop` attribute to ``True``. " -":class:`TestRunner` objects should respect this flag and return without " -"running any additional tests." +"be aborted by setting the :attr:`shouldStop` attribute to ``True``. :class:" +"`TestRunner` objects should respect this flag and return without running any " +"additional tests." msgstr "" #: ../../library/unittest.rst:1892 @@ -2543,8 +2537,8 @@ msgstr "" #: ../../library/unittest.rst:1965 msgid "" -"Called when the test case *test* fails, but was marked with the " -":func:`expectedFailure` decorator." +"Called when the test case *test* fails, but was marked with the :func:" +"`expectedFailure` decorator." msgstr "" #: ../../library/unittest.rst:1968 @@ -2556,14 +2550,14 @@ msgstr "" #: ../../library/unittest.rst:1975 msgid "" -"Called when the test case *test* was marked with the :func:`expectedFailure`" -" decorator, but succeeded." +"Called when the test case *test* was marked with the :func:`expectedFailure` " +"decorator, but succeeded." msgstr "" #: ../../library/unittest.rst:1978 msgid "" -"The default implementation appends the test to the instance's " -":attr:`unexpectedSuccesses` attribute." +"The default implementation appends the test to the instance's :attr:" +"`unexpectedSuccesses` attribute." msgstr "" #: ../../library/unittest.rst:1984 @@ -2576,8 +2570,8 @@ msgstr "" #: ../../library/unittest.rst:1988 msgid "" "If *outcome* is :const:`None`, the subtest succeeded. Otherwise, it failed " -"with an exception where *outcome* is a tuple of the form returned by " -":func:`sys.exc_info`: ``(type, value, traceback)``." +"with an exception where *outcome* is a tuple of the form returned by :func:" +"`sys.exc_info`: ``(type, value, traceback)``." msgstr "" #: ../../library/unittest.rst:1992 @@ -2588,8 +2582,8 @@ msgstr "" #: ../../library/unittest.rst:2000 msgid "" -"A concrete implementation of :class:`TestResult` used by the " -":class:`TextTestRunner`." +"A concrete implementation of :class:`TestResult` used by the :class:" +"`TextTestRunner`." msgstr "" #: ../../library/unittest.rst:2003 @@ -2618,15 +2612,15 @@ msgstr "" #: ../../library/unittest.rst:2025 msgid "" -"By default this runner shows :exc:`DeprecationWarning`, " -":exc:`PendingDeprecationWarning`, :exc:`ResourceWarning` and " -":exc:`ImportWarning` even if they are :ref:`ignored by default `. Deprecation warnings caused by :ref:`deprecated unittest methods " -"` are also special-cased and, when the warning filters " -"are ``'default'`` or ``'always'``, they will appear only once per-module, in" -" order to avoid too many warning messages. This behavior can be overridden " -"using Python's :option:`!-Wd` or :option:`!-Wa` options (see :ref:`Warning " -"control `) and leaving *warnings* to ``None``." +"By default this runner shows :exc:`DeprecationWarning`, :exc:" +"`PendingDeprecationWarning`, :exc:`ResourceWarning` and :exc:`ImportWarning` " +"even if they are :ref:`ignored by default `. Deprecation " +"warnings caused by :ref:`deprecated unittest methods ` " +"are also special-cased and, when the warning filters are ``'default'`` or " +"``'always'``, they will appear only once per-module, in order to avoid too " +"many warning messages. This behavior can be overridden using Python's :" +"option:`!-Wd` or :option:`!-Wa` options (see :ref:`Warning control `) and leaving *warnings* to ``None``." msgstr "" #: ../../library/unittest.rst:2036 @@ -2635,8 +2629,8 @@ msgstr "" #: ../../library/unittest.rst:2039 msgid "" -"The default stream is set to :data:`sys.stderr` at instantiation time rather" -" than import time." +"The default stream is set to :data:`sys.stderr` at instantiation time rather " +"than import time." msgstr "" #: ../../library/unittest.rst:2043 @@ -2661,42 +2655,42 @@ msgstr "" #: ../../library/unittest.rst:2061 msgid "" "This method is the main public interface to the ``TextTestRunner``. This " -"method takes a :class:`TestSuite` or :class:`TestCase` instance. A " -":class:`TestResult` is created by calling :func:`_makeResult` and the " -"test(s) are run and the results printed to stdout." +"method takes a :class:`TestSuite` or :class:`TestCase` instance. A :class:" +"`TestResult` is created by calling :func:`_makeResult` and the test(s) are " +"run and the results printed to stdout." msgstr "" #: ../../library/unittest.rst:2072 msgid "" "A command-line program that loads a set of tests from *module* and runs " -"them; this is primarily for making test modules conveniently executable. The" -" simplest use for this function is to include the following line at the end " +"them; this is primarily for making test modules conveniently executable. The " +"simplest use for this function is to include the following line at the end " "of a test script::" msgstr "" #: ../../library/unittest.rst:2080 msgid "" -"You can run tests with more detailed information by passing in the verbosity" -" argument::" +"You can run tests with more detailed information by passing in the verbosity " +"argument::" msgstr "" #: ../../library/unittest.rst:2086 msgid "" "The *defaultTest* argument is either the name of a single test or an " -"iterable of test names to run if no test names are specified via *argv*. If" -" not specified or ``None`` and no test names are provided via *argv*, all " +"iterable of test names to run if no test names are specified via *argv*. If " +"not specified or ``None`` and no test names are provided via *argv*, all " "tests found in *module* are run." msgstr "" #: ../../library/unittest.rst:2091 msgid "" -"The *argv* argument can be a list of options passed to the program, with the" -" first element being the program name. If not specified or ``None``, the " +"The *argv* argument can be a list of options passed to the program, with the " +"first element being the program name. If not specified or ``None``, the " "values of :data:`sys.argv` are used." msgstr "" -"O argumento *argv* pode ser uma lista de opções passada para o programa, com" -" o primeiro elemento sendo o nome do programa. Se não for especificado ou " -"for ``None``, os valores de :data:`sys.argv` são usados." +"O argumento *argv* pode ser uma lista de opções passada para o programa, com " +"o primeiro elemento sendo o nome do programa. Se não for especificado ou for " +"``None``, os valores de :data:`sys.argv` são usados." #: ../../library/unittest.rst:2095 msgid "" @@ -2720,17 +2714,17 @@ msgstr "" #: ../../library/unittest.rst:2109 msgid "" -"The *failfast*, *catchbreak* and *buffer* parameters have the same effect as" -" the same-name `command-line options`_." +"The *failfast*, *catchbreak* and *buffer* parameters have the same effect as " +"the same-name `command-line options`_." msgstr "" #: ../../library/unittest.rst:2112 msgid "" -"The *warnings* argument specifies the :ref:`warning filter `" -" that should be used while running the tests. If it's not specified, it " -"will remain ``None`` if a :option:`!-W` option is passed to " -":program:`python` (see :ref:`Warning control `), " -"otherwise it will be set to ``'default'``." +"The *warnings* argument specifies the :ref:`warning filter ` " +"that should be used while running the tests. If it's not specified, it will " +"remain ``None`` if a :option:`!-W` option is passed to :program:`python` " +"(see :ref:`Warning control `), otherwise it will be set " +"to ``'default'``." msgstr "" #: ../../library/unittest.rst:2118 @@ -2768,14 +2762,14 @@ msgstr "" #: ../../library/unittest.rst:2141 msgid "" -"If a test module defines ``load_tests`` it will be called by " -":meth:`TestLoader.loadTestsFromModule` with the following arguments::" +"If a test module defines ``load_tests`` it will be called by :meth:" +"`TestLoader.loadTestsFromModule` with the following arguments::" msgstr "" #: ../../library/unittest.rst:2146 msgid "" -"where *pattern* is passed straight through from ``loadTestsFromModule``. It" -" defaults to ``None``." +"where *pattern* is passed straight through from ``loadTestsFromModule``. It " +"defaults to ``None``." msgstr "" #: ../../library/unittest.rst:2149 @@ -2793,25 +2787,25 @@ msgstr "" #: ../../library/unittest.rst:2157 msgid "" -"A typical ``load_tests`` function that loads tests from a specific set of " -":class:`TestCase` classes may look like::" +"A typical ``load_tests`` function that loads tests from a specific set of :" +"class:`TestCase` classes may look like::" msgstr "" #: ../../library/unittest.rst:2169 msgid "" -"If discovery is started in a directory containing a package, either from the" -" command line or by calling :meth:`TestLoader.discover`, then the package " -":file:`__init__.py` will be checked for ``load_tests``. If that function " +"If discovery is started in a directory containing a package, either from the " +"command line or by calling :meth:`TestLoader.discover`, then the package :" +"file:`__init__.py` will be checked for ``load_tests``. If that function " "does not exist, discovery will recurse into the package as though it were " -"just another directory. Otherwise, discovery of the package's tests will be" -" left up to ``load_tests`` which is called with the following arguments::" +"just another directory. Otherwise, discovery of the package's tests will be " +"left up to ``load_tests`` which is called with the following arguments::" msgstr "" #: ../../library/unittest.rst:2178 msgid "" "This should return a :class:`TestSuite` representing all the tests from the " -"package. (``standard_tests`` will only contain tests collected from " -":file:`__init__.py`.)" +"package. (``standard_tests`` will only contain tests collected from :file:" +"`__init__.py`.)" msgstr "" #: ../../library/unittest.rst:2182 @@ -2834,9 +2828,9 @@ msgstr "" #: ../../library/unittest.rst:2202 msgid "" "Class and module level fixtures are implemented in :class:`TestSuite`. When " -"the test suite encounters a test from a new class then :meth:`tearDownClass`" -" from the previous class (if there is one) is called, followed by " -":meth:`setUpClass` from the new class." +"the test suite encounters a test from a new class then :meth:`tearDownClass` " +"from the previous class (if there is one) is called, followed by :meth:" +"`setUpClass` from the new class." msgstr "" #: ../../library/unittest.rst:2207 @@ -2855,8 +2849,8 @@ msgstr "" #: ../../library/unittest.rst:2214 msgid "" "Note that shared fixtures do not play well with [potential] features like " -"test parallelization and they break test isolation. They should be used with" -" care." +"test parallelization and they break test isolation. They should be used with " +"care." msgstr "" #: ../../library/unittest.rst:2217 @@ -2872,8 +2866,8 @@ msgstr "" #: ../../library/unittest.rst:2224 msgid "" "Shared fixtures are not intended to work with suites with non-standard " -"ordering. A ``BaseTestSuite`` still exists for frameworks that don't want to" -" support shared fixtures." +"ordering. A ``BaseTestSuite`` still exists for frameworks that don't want to " +"support shared fixtures." msgstr "" #: ../../library/unittest.rst:2228 @@ -2897,17 +2891,17 @@ msgstr "" #: ../../library/unittest.rst:2252 msgid "" "If you want the ``setUpClass`` and ``tearDownClass`` on base classes called " -"then you must call up to them yourself. The implementations in " -":class:`TestCase` are empty." +"then you must call up to them yourself. The implementations in :class:" +"`TestCase` are empty." msgstr "" #: ../../library/unittest.rst:2256 msgid "" "If an exception is raised during a ``setUpClass`` then the tests in the " -"class are not run and the ``tearDownClass`` is not run. Skipped classes will" -" not have ``setUpClass`` or ``tearDownClass`` run. If the exception is a " -":exc:`SkipTest` exception then the class will be reported as having been " -"skipped instead of as an error." +"class are not run and the ``tearDownClass`` is not run. Skipped classes will " +"not have ``setUpClass`` or ``tearDownClass`` run. If the exception is a :exc:" +"`SkipTest` exception then the class will be reported as having been skipped " +"instead of as an error." msgstr "" #: ../../library/unittest.rst:2264 @@ -2920,10 +2914,10 @@ msgstr "" #: ../../library/unittest.rst:2274 msgid "" -"If an exception is raised in a ``setUpModule`` then none of the tests in the" -" module will be run and the ``tearDownModule`` will not be run. If the " -"exception is a :exc:`SkipTest` exception then the module will be reported as" -" having been skipped instead of as an error." +"If an exception is raised in a ``setUpModule`` then none of the tests in the " +"module will be run and the ``tearDownModule`` will not be run. If the " +"exception is a :exc:`SkipTest` exception then the module will be reported as " +"having been skipped instead of as an error." msgstr "" #: ../../library/unittest.rst:2281 @@ -2944,12 +2938,12 @@ msgstr "" msgid "" "The control-c handling signal handler attempts to remain compatible with " "code or tests that install their own :const:`signal.SIGINT` handler. If the " -"``unittest`` handler is called but *isn't* the installed " -":const:`signal.SIGINT` handler, i.e. it has been replaced by the system " -"under test and delegated to, then it calls the default handler. This will " -"normally be the expected behavior by code that replaces an installed handler" -" and delegates to it. For individual tests that need ``unittest`` control-c " -"handling disabled the :func:`removeHandler` decorator can be used." +"``unittest`` handler is called but *isn't* the installed :const:`signal." +"SIGINT` handler, i.e. it has been replaced by the system under test and " +"delegated to, then it calls the default handler. This will normally be the " +"expected behavior by code that replaces an installed handler and delegates " +"to it. For individual tests that need ``unittest`` control-c handling " +"disabled the :func:`removeHandler` decorator can be used." msgstr "" #: ../../library/unittest.rst:2301 @@ -2975,20 +2969,20 @@ msgstr "" #: ../../library/unittest.rst:2317 msgid "" "Registering a :class:`TestResult` object has no side-effects if control-c " -"handling is not enabled, so test frameworks can unconditionally register all" -" results they create independently of whether or not handling is enabled." +"handling is not enabled, so test frameworks can unconditionally register all " +"results they create independently of whether or not handling is enabled." msgstr "" #: ../../library/unittest.rst:2324 msgid "" -"Remove a registered result. Once a result has been removed then " -":meth:`~TestResult.stop` will no longer be called on that result object in " +"Remove a registered result. Once a result has been removed then :meth:" +"`~TestResult.stop` will no longer be called on that result object in " "response to a control-c." msgstr "" #: ../../library/unittest.rst:2331 msgid "" -"When called without arguments this function removes the control-c handler if" -" it has been installed. This function can also be used as a test decorator " -"to temporarily remove the handler while the test is being executed::" +"When called without arguments this function removes the control-c handler if " +"it has been installed. This function can also be used as a test decorator to " +"temporarily remove the handler while the test is being executed::" msgstr "" diff --git a/library/unix.po b/library/unix.po index 655324d64..918ef2905 100644 --- a/library/unix.po +++ b/library/unix.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,5 +35,5 @@ msgid "" "variants of it. Here's an overview:" msgstr "" "Os módulos descritos neste capítulo fornecem interfaces para recursos que " -"são exclusivos do sistema operacional Unix ou, em alguns casos, para algumas" -" ou várias variantes do mesmo. Aqui está uma visão geral:" +"são exclusivos do sistema operacional Unix ou, em alguns casos, para algumas " +"ou várias variantes do mesmo. Aqui está uma visão geral:" diff --git a/library/urllib.error.po b/library/urllib.error.po index 60ca31359..436b3145c 100644 --- a/library/urllib.error.po +++ b/library/urllib.error.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:45+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/urllib/error.py`" #: ../../library/urllib.error.rst:14 msgid "" "The :mod:`urllib.error` module defines the exception classes for exceptions " -"raised by :mod:`urllib.request`. The base exception class is " -":exc:`URLError`." +"raised by :mod:`urllib.request`. The base exception class is :exc:" +"`URLError`." msgstr "" #: ../../library/urllib.error.rst:17 @@ -43,8 +45,8 @@ msgstr "" #: ../../library/urllib.error.rst:21 msgid "" -"The handlers raise this exception (or derived exceptions) when they run into" -" a problem. It is a subclass of :exc:`OSError`." +"The handlers raise this exception (or derived exceptions) when they run into " +"a problem. It is a subclass of :exc:`OSError`." msgstr "" #: ../../library/urllib.error.rst:26 @@ -55,24 +57,23 @@ msgstr "" #: ../../library/urllib.error.rst:29 msgid "" -":exc:`URLError` has been made a subclass of :exc:`OSError` instead of " -":exc:`IOError`." +":exc:`URLError` has been made a subclass of :exc:`OSError` instead of :exc:" +"`IOError`." msgstr "" #: ../../library/urllib.error.rst:36 msgid "" -"Though being an exception (a subclass of :exc:`URLError`), an " -":exc:`HTTPError` can also function as a non-exceptional file-like return " -"value (the same thing that :func:`~urllib.request.urlopen` returns). This " -"is useful when handling exotic HTTP errors, such as requests for " -"authentication." +"Though being an exception (a subclass of :exc:`URLError`), an :exc:" +"`HTTPError` can also function as a non-exceptional file-like return value " +"(the same thing that :func:`~urllib.request.urlopen` returns). This is " +"useful when handling exotic HTTP errors, such as requests for authentication." msgstr "" #: ../../library/urllib.error.rst:44 msgid "" "An HTTP status code as defined in :rfc:`2616`. This numeric value " -"corresponds to a value found in the dictionary of codes as found in " -":attr:`http.server.BaseHTTPRequestHandler.responses`." +"corresponds to a value found in the dictionary of codes as found in :attr:" +"`http.server.BaseHTTPRequestHandler.responses`." msgstr "" #: ../../library/urllib.error.rst:50 @@ -81,14 +82,14 @@ msgstr "" #: ../../library/urllib.error.rst:54 msgid "" -"The HTTP response headers for the HTTP request that caused the " -":exc:`HTTPError`." +"The HTTP response headers for the HTTP request that caused the :exc:" +"`HTTPError`." msgstr "" #: ../../library/urllib.error.rst:61 msgid "" "This exception is raised when the :func:`~urllib.request.urlretrieve` " "function detects that the amount of the downloaded data is less than the " -"expected amount (given by the *Content-Length* header). The :attr:`content`" -" attribute stores the downloaded (and supposedly truncated) data." +"expected amount (given by the *Content-Length* header). The :attr:`content` " +"attribute stores the downloaded (and supposedly truncated) data." msgstr "" diff --git a/library/urllib.parse.po b/library/urllib.parse.po index 404d26cfa..097c5d08d 100644 --- a/library/urllib.parse.po +++ b/library/urllib.parse.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-25 10:57+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:20+0000\n" -"Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,8 +43,8 @@ msgstr "" #: ../../library/urllib.parse.rst:23 msgid "" "The module has been designed to match the Internet RFC on Relative Uniform " -"Resource Locators. It supports the following URL schemes: ``file``, ``ftp``," -" ``gopher``, ``hdl``, ``http``, ``https``, ``imap``, ``mailto``, ``mms``, " +"Resource Locators. It supports the following URL schemes: ``file``, ``ftp``, " +"``gopher``, ``hdl``, ``http``, ``https``, ``imap``, ``mailto``, ``mms``, " "``news``, ``nntp``, ``prospero``, ``rsync``, ``rtsp``, ``rtspu``, ``sftp``, " "``shttp``, ``sip``, ``sips``, ``snews``, ``svn``, ``svn+ssh``, ``telnet``, " "``wais``, ``ws``, ``wss``." @@ -69,13 +70,12 @@ msgstr "" #: ../../library/urllib.parse.rst:42 msgid "" "Parse a URL into six components, returning a 6-item :term:`named tuple`. " -"This corresponds to the general structure of a URL: " -"``scheme://netloc/path;parameters?query#fragment``. Each tuple item is a " -"string, possibly empty. The components are not broken up in smaller parts " -"(for example, the network location is a single string), and % escapes are " -"not expanded. The delimiters as shown above are not part of the result, " -"except for a leading slash in the *path* component, which is retained if " -"present. For example:" +"This corresponds to the general structure of a URL: ``scheme://netloc/path;" +"parameters?query#fragment``. Each tuple item is a string, possibly empty. " +"The components are not broken up in smaller parts (for example, the network " +"location is a single string), and % escapes are not expanded. The delimiters " +"as shown above are not part of the result, except for a leading slash in the " +"*path* component, which is retained if present. For example:" msgstr "" #: ../../library/urllib.parse.rst:63 @@ -88,9 +88,9 @@ msgstr "" #: ../../library/urllib.parse.rst:82 msgid "" "The *scheme* argument gives the default addressing scheme, to be used only " -"if the URL does not specify one. It should be the same type (text or bytes)" -" as *urlstring*, except that the default value ``''`` is always allowed, and" -" is automatically converted to ``b''`` if appropriate." +"if the URL does not specify one. It should be the same type (text or bytes) " +"as *urlstring*, except that the default value ``''`` is always allowed, and " +"is automatically converted to ``b''`` if appropriate." msgstr "" #: ../../library/urllib.parse.rst:87 @@ -103,8 +103,8 @@ msgstr "" #: ../../library/urllib.parse.rst:92 msgid "" -"The return value is a :term:`named tuple`, which means that its items can be" -" accessed by index or as named attributes, which are:" +"The return value is a :term:`named tuple`, which means that its items can be " +"accessed by index or as named attributes, which are:" msgstr "" #: ../../library/urllib.parse.rst:96 ../../library/urllib.parse.rst:261 @@ -129,7 +129,7 @@ msgstr "" #: ../../library/urllib.parse.rst:98 ../../library/urllib.parse.rst:263 msgid ":attr:`scheme`" -msgstr "" +msgstr ":attr:`scheme`" #: ../../library/urllib.parse.rst:98 ../../library/urllib.parse.rst:263 #: ../../library/urllib.parse.rst:360 @@ -146,7 +146,7 @@ msgstr "" #: ../../library/urllib.parse.rst:100 ../../library/urllib.parse.rst:265 msgid ":attr:`netloc`" -msgstr "" +msgstr ":attr:`netloc`" #: ../../library/urllib.parse.rst:100 ../../library/urllib.parse.rst:265 #: ../../library/urllib.parse.rst:362 @@ -168,7 +168,7 @@ msgstr "" #: ../../library/urllib.parse.rst:102 ../../library/urllib.parse.rst:267 msgid ":attr:`path`" -msgstr "" +msgstr ":attr:`path`" #: ../../library/urllib.parse.rst:102 ../../library/urllib.parse.rst:267 msgid "2" @@ -180,7 +180,7 @@ msgstr "" #: ../../library/urllib.parse.rst:104 msgid ":attr:`params`" -msgstr "" +msgstr ":attr:`params`" #: ../../library/urllib.parse.rst:104 ../../library/urllib.parse.rst:269 msgid "3" @@ -192,7 +192,7 @@ msgstr "" #: ../../library/urllib.parse.rst:107 ../../library/urllib.parse.rst:269 msgid ":attr:`query`" -msgstr "" +msgstr ":attr:`query`" #: ../../library/urllib.parse.rst:107 ../../library/urllib.parse.rst:271 msgid "4" @@ -205,7 +205,7 @@ msgstr "" #: ../../library/urllib.parse.rst:109 ../../library/urllib.parse.rst:271 #: ../../library/urllib.parse.rst:362 msgid ":attr:`fragment`" -msgstr "" +msgstr ":attr:`fragment`" #: ../../library/urllib.parse.rst:109 msgid "5" @@ -218,7 +218,7 @@ msgstr "" #: ../../library/urllib.parse.rst:111 ../../library/urllib.parse.rst:273 msgid ":attr:`username`" -msgstr "" +msgstr ":attr:`username`" #: ../../library/urllib.parse.rst:111 ../../library/urllib.parse.rst:273 msgid "User name" @@ -229,11 +229,11 @@ msgstr "" #: ../../library/urllib.parse.rst:273 ../../library/urllib.parse.rst:275 #: ../../library/urllib.parse.rst:277 ../../library/urllib.parse.rst:279 msgid ":const:`None`" -msgstr "" +msgstr ":const:`None`" #: ../../library/urllib.parse.rst:113 ../../library/urllib.parse.rst:275 msgid ":attr:`password`" -msgstr "" +msgstr ":attr:`password`" #: ../../library/urllib.parse.rst:113 ../../library/urllib.parse.rst:275 msgid "Password" @@ -241,7 +241,7 @@ msgstr "" #: ../../library/urllib.parse.rst:115 ../../library/urllib.parse.rst:277 msgid ":attr:`hostname`" -msgstr "" +msgstr ":attr:`hostname`" #: ../../library/urllib.parse.rst:115 ../../library/urllib.parse.rst:277 msgid "Host name (lower case)" @@ -249,7 +249,7 @@ msgstr "" #: ../../library/urllib.parse.rst:117 ../../library/urllib.parse.rst:279 msgid ":attr:`port`" -msgstr "" +msgstr ":attr:`port`" #: ../../library/urllib.parse.rst:117 ../../library/urllib.parse.rst:279 msgid "Port number as integer, if present" @@ -264,8 +264,8 @@ msgstr "" #: ../../library/urllib.parse.rst:125 ../../library/urllib.parse.rst:287 msgid "" -"Unmatched square brackets in the :attr:`netloc` attribute will raise a " -":exc:`ValueError`." +"Unmatched square brackets in the :attr:`netloc` attribute will raise a :exc:" +"`ValueError`." msgstr "" #: ../../library/urllib.parse.rst:128 ../../library/urllib.parse.rst:290 @@ -279,8 +279,8 @@ msgstr "" #: ../../library/urllib.parse.rst:133 msgid "" "As is the case with all named tuples, the subclass has a few additional " -"methods and attributes that are particularly useful. One such method is " -":meth:`_replace`. The :meth:`_replace` method will return a new ParseResult " +"methods and attributes that are particularly useful. One such method is :" +"meth:`_replace`. The :meth:`_replace` method will return a new ParseResult " "object replacing specified fields with new values." msgstr "" @@ -297,8 +297,8 @@ msgstr "" #: ../../library/urllib.parse.rst:159 ../../library/urllib.parse.rst:295 msgid "" -"Out-of-range port numbers now raise :exc:`ValueError`, instead of returning " -":const:`None`." +"Out-of-range port numbers now raise :exc:`ValueError`, instead of returning :" +"const:`None`." msgstr "" #: ../../library/urllib.parse.rst:163 ../../library/urllib.parse.rst:299 @@ -309,17 +309,17 @@ msgstr "" #: ../../library/urllib.parse.rst:170 msgid "" -"Parse a query string given as a string argument (data of type " -":mimetype:`application/x-www-form-urlencoded`). Data are returned as a " -"dictionary. The dictionary keys are the unique query variable names and the" -" values are lists of values for each name." +"Parse a query string given as a string argument (data of type :mimetype:" +"`application/x-www-form-urlencoded`). Data are returned as a dictionary. " +"The dictionary keys are the unique query variable names and the values are " +"lists of values for each name." msgstr "" #: ../../library/urllib.parse.rst:175 ../../library/urllib.parse.rst:210 msgid "" -"The optional argument *keep_blank_values* is a flag indicating whether blank" -" values in percent-encoded queries should be treated as blank strings. A " -"true value indicates that blanks should be retained as blank strings. The " +"The optional argument *keep_blank_values* is a flag indicating whether blank " +"values in percent-encoded queries should be treated as blank strings. A true " +"value indicates that blanks should be retained as blank strings. The " "default false value indicates that blank values are to be ignored and " "treated as if they were not included." msgstr "" @@ -334,8 +334,8 @@ msgstr "" #: ../../library/urllib.parse.rst:185 ../../library/urllib.parse.rst:220 msgid "" "The optional *encoding* and *errors* parameters specify how to decode " -"percent-encoded sequences into Unicode characters, as accepted by the " -":meth:`bytes.decode` method." +"percent-encoded sequences into Unicode characters, as accepted by the :meth:" +"`bytes.decode` method." msgstr "" #: ../../library/urllib.parse.rst:189 ../../library/urllib.parse.rst:224 @@ -361,9 +361,9 @@ msgstr "" #: ../../library/urllib.parse.rst:206 msgid "" -"Parse a query string given as a string argument (data of type " -":mimetype:`application/x-www-form-urlencoded`). Data are returned as a list" -" of name, value pairs." +"Parse a query string given as a string argument (data of type :mimetype:" +"`application/x-www-form-urlencoded`). Data are returned as a list of name, " +"value pairs." msgstr "" #: ../../library/urllib.parse.rst:228 @@ -409,28 +409,28 @@ msgstr "" #: ../../library/urllib.parse.rst:315 msgid "" "Construct a full (\"absolute\") URL by combining a \"base URL\" (*base*) " -"with another URL (*url*). Informally, this uses components of the base URL," -" in particular the addressing scheme, the network location and (part of) the" -" path, to provide missing components in the relative URL. For example:" +"with another URL (*url*). Informally, this uses components of the base URL, " +"in particular the addressing scheme, the network location and (part of) the " +"path, to provide missing components in the relative URL. For example:" msgstr "" #: ../../library/urllib.parse.rst:324 msgid "" -"The *allow_fragments* argument has the same meaning and default as for " -":func:`urlparse`." +"The *allow_fragments* argument has the same meaning and default as for :func:" +"`urlparse`." msgstr "" #: ../../library/urllib.parse.rst:329 msgid "" -"If *url* is an absolute URL (that is, starting with ``//`` or " -"``scheme://``), the *url*'s host name and/or scheme will be present in the " -"result. For example:" +"If *url* is an absolute URL (that is, starting with ``//`` or ``scheme://" +"``), the *url*'s host name and/or scheme will be present in the result. For " +"example:" msgstr "" #: ../../library/urllib.parse.rst:338 msgid "" -"If you do not want that behavior, preprocess the *url* with :func:`urlsplit`" -" and :func:`urlunsplit`, removing possible *scheme* and *netloc* parts." +"If you do not want that behavior, preprocess the *url* with :func:`urlsplit` " +"and :func:`urlunsplit`, removing possible *scheme* and *netloc* parts." msgstr "" #: ../../library/urllib.parse.rst:344 @@ -447,7 +447,7 @@ msgstr "" #: ../../library/urllib.parse.rst:360 msgid ":attr:`url`" -msgstr "" +msgstr ":attr:`url`" #: ../../library/urllib.parse.rst:360 msgid "URL with no fragment" @@ -455,8 +455,8 @@ msgstr "" #: ../../library/urllib.parse.rst:365 msgid "" -"See section :ref:`urlparse-result-object` for more information on the result" -" object." +"See section :ref:`urlparse-result-object` for more information on the result " +"object." msgstr "" #: ../../library/urllib.parse.rst:368 @@ -472,43 +472,43 @@ msgid "" "The URL parsing functions were originally designed to operate on character " "strings only. In practice, it is useful to be able to manipulate properly " "quoted and encoded URLs as sequences of ASCII bytes. Accordingly, the URL " -"parsing functions in this module all operate on :class:`bytes` and " -":class:`bytearray` objects in addition to :class:`str` objects." +"parsing functions in this module all operate on :class:`bytes` and :class:" +"`bytearray` objects in addition to :class:`str` objects." msgstr "" #: ../../library/urllib.parse.rst:382 msgid "" -"If :class:`str` data is passed in, the result will also contain only " -":class:`str` data. If :class:`bytes` or :class:`bytearray` data is passed " -"in, the result will contain only :class:`bytes` data." +"If :class:`str` data is passed in, the result will also contain only :class:" +"`str` data. If :class:`bytes` or :class:`bytearray` data is passed in, the " +"result will contain only :class:`bytes` data." msgstr "" #: ../../library/urllib.parse.rst:386 msgid "" -"Attempting to mix :class:`str` data with :class:`bytes` or " -":class:`bytearray` in a single function call will result in a " -":exc:`TypeError` being raised, while attempting to pass in non-ASCII byte " -"values will trigger :exc:`UnicodeDecodeError`." +"Attempting to mix :class:`str` data with :class:`bytes` or :class:" +"`bytearray` in a single function call will result in a :exc:`TypeError` " +"being raised, while attempting to pass in non-ASCII byte values will " +"trigger :exc:`UnicodeDecodeError`." msgstr "" #: ../../library/urllib.parse.rst:391 msgid "" -"To support easier conversion of result objects between :class:`str` and " -":class:`bytes`, all return values from URL parsing functions provide either " -"an :meth:`encode` method (when the result contains :class:`str` data) or a " -":meth:`decode` method (when the result contains :class:`bytes` data). The " +"To support easier conversion of result objects between :class:`str` and :" +"class:`bytes`, all return values from URL parsing functions provide either " +"an :meth:`encode` method (when the result contains :class:`str` data) or a :" +"meth:`decode` method (when the result contains :class:`bytes` data). The " "signatures of these methods match those of the corresponding :class:`str` " "and :class:`bytes` methods (except that the default encoding is ``'ascii'`` " -"rather than ``'utf-8'``). Each produces a value of a corresponding type that" -" contains either :class:`bytes` data (for :meth:`encode` methods) or " -":class:`str` data (for :meth:`decode` methods)." +"rather than ``'utf-8'``). Each produces a value of a corresponding type that " +"contains either :class:`bytes` data (for :meth:`encode` methods) or :class:" +"`str` data (for :meth:`decode` methods)." msgstr "" #: ../../library/urllib.parse.rst:402 msgid "" -"Applications that need to operate on potentially improperly quoted URLs that" -" may contain non-ASCII data will need to do their own decoding from bytes to" -" characters before invoking the URL parsing methods." +"Applications that need to operate on potentially improperly quoted URLs that " +"may contain non-ASCII data will need to do their own decoding from bytes to " +"characters before invoking the URL parsing methods." msgstr "" #: ../../library/urllib.parse.rst:406 @@ -529,9 +529,9 @@ msgstr "" #: ../../library/urllib.parse.rst:420 msgid "" -"The result objects from the :func:`urlparse`, :func:`urlsplit` and " -":func:`urldefrag` functions are subclasses of the :class:`tuple` type. These" -" subclasses add the attributes listed in the documentation for those " +"The result objects from the :func:`urlparse`, :func:`urlsplit` and :func:" +"`urldefrag` functions are subclasses of the :class:`tuple` type. These " +"subclasses add the attributes listed in the documentation for those " "functions, the encoding and decoding support described in the previous " "section, as well as an additional method:" msgstr "" @@ -589,8 +589,8 @@ msgstr "" #: ../../library/urllib.parse.rst:479 msgid "" -"Concrete class for :func:`urldefrag` results containing :class:`bytes` data." -" The :meth:`decode` method returns a :class:`DefragResult` instance." +"Concrete class for :func:`urldefrag` results containing :class:`bytes` data. " +"The :meth:`decode` method returns a :class:`DefragResult` instance." msgstr "" #: ../../library/urllib.parse.rst:487 @@ -614,8 +614,8 @@ msgid "" "The URL quoting functions focus on taking program data and making it safe " "for use as URL components by quoting special characters and appropriately " "encoding non-ASCII text. They also support reversing these operations to " -"recreate the original data from the contents of a URL component if that task" -" isn't already covered by the URL parsing functions above." +"recreate the original data from the contents of a URL component if that task " +"isn't already covered by the URL parsing functions above." msgstr "" #: ../../library/urllib.parse.rst:513 @@ -634,17 +634,17 @@ msgstr "" #: ../../library/urllib.parse.rst:521 msgid "" "Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. \"~\" is now " -"included in the set of reserved characters." +"included in the set of unreserved characters." msgstr "" #: ../../library/urllib.parse.rst:525 msgid "" -"The optional *encoding* and *errors* parameters specify how to deal with " -"non-ASCII characters, as accepted by the :meth:`str.encode` method. " -"*encoding* defaults to ``'utf-8'``. *errors* defaults to ``'strict'``, " -"meaning unsupported characters raise a :class:`UnicodeEncodeError`. " -"*encoding* and *errors* must not be supplied if *string* is a " -":class:`bytes`, or a :class:`TypeError` is raised." +"The optional *encoding* and *errors* parameters specify how to deal with non-" +"ASCII characters, as accepted by the :meth:`str.encode` method. *encoding* " +"defaults to ``'utf-8'``. *errors* defaults to ``'strict'``, meaning " +"unsupported characters raise a :class:`UnicodeEncodeError`. *encoding* and " +"*errors* must not be supplied if *string* is a :class:`bytes`, or a :class:" +"`TypeError` is raised." msgstr "" #: ../../library/urllib.parse.rst:533 @@ -671,8 +671,8 @@ msgstr "" #: ../../library/urllib.parse.rst:551 msgid "" -"Like :func:`quote`, but accepts a :class:`bytes` object rather than a " -":class:`str`, and does not perform string-to-bytes encoding." +"Like :func:`quote`, but accepts a :class:`bytes` object rather than a :class:" +"`str`, and does not perform string-to-bytes encoding." msgstr "" #: ../../library/urllib.parse.rst:554 @@ -703,8 +703,8 @@ msgstr "" #: ../../library/urllib.parse.rst:576 msgid "" -"Like :func:`unquote`, but also replace plus signs by spaces, as required for" -" unquoting HTML form values." +"Like :func:`unquote`, but also replace plus signs by spaces, as required for " +"unquoting HTML form values." msgstr "" #: ../../library/urllib.parse.rst:581 @@ -713,8 +713,8 @@ msgstr "" #: ../../library/urllib.parse.rst:586 msgid "" -"Replace ``%xx`` escapes by their single-octet equivalent, and return a " -":class:`bytes` object." +"Replace ``%xx`` escapes by their single-octet equivalent, and return a :" +"class:`bytes` object." msgstr "" #: ../../library/urllib.parse.rst:591 @@ -738,10 +738,10 @@ msgstr "" #: ../../library/urllib.parse.rst:607 msgid "" -"The resulting string is a series of ``key=value`` pairs separated by ``'&'``" -" characters, where both *key* and *value* are quoted using the *quote_via* " -"function. By default, :func:`quote_plus` is used to quote the values, which" -" means spaces are quoted as a ``'+'`` character and '/' characters are " +"The resulting string is a series of ``key=value`` pairs separated by ``'&'`` " +"characters, where both *key* and *value* are quoted using the *quote_via* " +"function. By default, :func:`quote_plus` is used to quote the values, which " +"means spaces are quoted as a ``'+'`` character and '/' characters are " "encoded as ``%2F``, which follows the standard for GET requests " "(``application/x-www-form-urlencoded``). An alternate function that can be " "passed as *quote_via* is :func:`quote`, which will encode spaces as ``%20`` " @@ -769,8 +769,8 @@ msgstr "" #: ../../library/urllib.parse.rst:629 msgid "" -"To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are" -" provided in this module to parse query strings into Python data structures." +"To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are " +"provided in this module to parse query strings into Python data structures." msgstr "" #: ../../library/urllib.parse.rst:632 diff --git a/library/urllib.po b/library/urllib.po index b1939352d..d19ff3d09 100644 --- a/library/urllib.po +++ b/library/urllib.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:32+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,11 +42,9 @@ msgstr ":mod:`urllib.request` para abrir e ler URLs" #: ../../library/urllib.rst:13 msgid "" -":mod:`urllib.error` containing the exceptions raised by " -":mod:`urllib.request`" +":mod:`urllib.error` containing the exceptions raised by :mod:`urllib.request`" msgstr "" -":mod:`urllib.error` contendo as exceções levantadas por " -":mod:`urllib.request`" +":mod:`urllib.error` contendo as exceções levantadas por :mod:`urllib.request`" #: ../../library/urllib.rst:14 msgid ":mod:`urllib.parse` for parsing URLs" diff --git a/library/urllib.request.po b/library/urllib.request.po index 199a87a81..14577e6e7 100644 --- a/library/urllib.request.po +++ b/library/urllib.request.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# Marcos Wenneton , 2019 -# +# Marcos Wenneton Araújo , 2019 +# Sheila Gomes , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-01 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Marcos Wenneton , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Sheila Gomes , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +35,8 @@ msgstr "**Código Fonte:** :source:`Lib/urllib/request.py`" #: ../../library/urllib.request.rst:15 msgid "" -"The :mod:`urllib.request` module defines functions and classes which help in" -" opening URLs (mostly HTTP) in a complex world --- basic and digest " +"The :mod:`urllib.request` module defines functions and classes which help in " +"opening URLs (mostly HTTP) in a complex world --- basic and digest " "authentication, redirections, cookies and more." msgstr "" @@ -65,23 +67,23 @@ msgstr "" #: ../../library/urllib.request.rst:37 msgid "" -"urllib.request module uses HTTP/1.1 and includes ``Connection:close`` header" -" in its HTTP requests." +"urllib.request module uses HTTP/1.1 and includes ``Connection:close`` header " +"in its HTTP requests." msgstr "" #: ../../library/urllib.request.rst:40 msgid "" -"The optional *timeout* parameter specifies a timeout in seconds for blocking" -" operations like the connection attempt (if not specified, the global " -"default timeout setting will be used). This actually only works for HTTP, " -"HTTPS and FTP connections." +"The optional *timeout* parameter specifies a timeout in seconds for blocking " +"operations like the connection attempt (if not specified, the global default " +"timeout setting will be used). This actually only works for HTTP, HTTPS and " +"FTP connections." msgstr "" #: ../../library/urllib.request.rst:45 msgid "" "If *context* is specified, it must be a :class:`ssl.SSLContext` instance " -"describing the various SSL options. See " -":class:`~http.client.HTTPSConnection` for more details." +"describing the various SSL options. See :class:`~http.client." +"HTTPSConnection` for more details." msgstr "" #: ../../library/urllib.request.rst:49 @@ -89,8 +91,8 @@ msgid "" "The optional *cafile* and *capath* parameters specify a set of trusted CA " "certificates for HTTPS requests. *cafile* should point to a single file " "containing a bundle of CA certificates, whereas *capath* should point to a " -"directory of hashed certificate files. More information can be found in " -":meth:`ssl.SSLContext.load_verify_locations`." +"directory of hashed certificate files. More information can be found in :" +"meth:`ssl.SSLContext.load_verify_locations`." msgstr "" #: ../../library/urllib.request.rst:55 @@ -112,9 +114,9 @@ msgstr "" #: ../../library/urllib.request.rst:63 msgid "" ":meth:`~urllib.response.addinfourl.info` --- return the meta-information of " -"the page, such as headers, in the form of an " -":func:`email.message_from_string` instance (see `Quick Reference to HTTP " -"Headers `_)" +"the page, such as headers, in the form of an :func:`email." +"message_from_string` instance (see `Quick Reference to HTTP Headers `_)" msgstr "" #: ../../library/urllib.request.rst:67 @@ -125,19 +127,19 @@ msgstr "" #: ../../library/urllib.request.rst:69 msgid "" -"For HTTP and HTTPS URLs, this function returns a " -":class:`http.client.HTTPResponse` object slightly modified. In addition to " -"the three new methods above, the msg attribute contains the same information" -" as the :attr:`~http.client.HTTPResponse.reason` attribute --- the reason " -"phrase returned by server --- instead of the response headers as it is " -"specified in the documentation for :class:`~http.client.HTTPResponse`." +"For HTTP and HTTPS URLs, this function returns a :class:`http.client." +"HTTPResponse` object slightly modified. In addition to the three new methods " +"above, the msg attribute contains the same information as the :attr:`~http." +"client.HTTPResponse.reason` attribute --- the reason phrase returned by " +"server --- instead of the response headers as it is specified in the " +"documentation for :class:`~http.client.HTTPResponse`." msgstr "" #: ../../library/urllib.request.rst:77 msgid "" -"For FTP, file, and data URLs and requests explicitly handled by legacy " -":class:`URLopener` and :class:`FancyURLopener` classes, this function " -"returns a :class:`urllib.response.addinfourl` object." +"For FTP, file, and data URLs and requests explicitly handled by legacy :" +"class:`URLopener` and :class:`FancyURLopener` classes, this function returns " +"a :class:`urllib.response.addinfourl` object." msgstr "" #: ../../library/urllib.request.rst:81 @@ -146,26 +148,26 @@ msgstr "" #: ../../library/urllib.request.rst:83 msgid "" -"Note that ``None`` may be returned if no handler handles the request (though" -" the default installed global :class:`OpenerDirector` uses " -":class:`UnknownHandler` to ensure this never happens)." +"Note that ``None`` may be returned if no handler handles the request (though " +"the default installed global :class:`OpenerDirector` uses :class:" +"`UnknownHandler` to ensure this never happens)." msgstr "" #: ../../library/urllib.request.rst:87 msgid "" -"In addition, if proxy settings are detected (for example, when a ``*_proxy``" -" environment variable like :envvar:`http_proxy` is set), " -":class:`ProxyHandler` is default installed and makes sure the requests are " -"handled through the proxy." +"In addition, if proxy settings are detected (for example, when a ``*_proxy`` " +"environment variable like :envvar:`http_proxy` is set), :class:" +"`ProxyHandler` is default installed and makes sure the requests are handled " +"through the proxy." msgstr "" #: ../../library/urllib.request.rst:92 msgid "" "The legacy ``urllib.urlopen`` function from Python 2.6 and earlier has been " "discontinued; :func:`urllib.request.urlopen` corresponds to the old " -"``urllib2.urlopen``. Proxy handling, which was done by passing a dictionary" -" parameter to ``urllib.urlopen``, can be obtained by using " -":class:`ProxyHandler` objects." +"``urllib2.urlopen``. Proxy handling, which was done by passing a dictionary " +"parameter to ``urllib.urlopen``, can be obtained by using :class:" +"`ProxyHandler` objects." msgstr "" #: ../../library/urllib.request.rst:98 @@ -174,8 +176,8 @@ msgstr "" #: ../../library/urllib.request.rst:101 msgid "" -"HTTPS virtual hosts are now supported if possible (that is, if " -":data:`ssl.HAS_SNI` is true)." +"HTTPS virtual hosts are now supported if possible (that is, if :data:`ssl." +"HAS_SNI` is true)." msgstr "" #: ../../library/urllib.request.rst:105 @@ -193,33 +195,31 @@ msgstr "" #: ../../library/urllib.request.rst:116 msgid "" "*cafile*, *capath* and *cadefault* are deprecated in favor of *context*. " -"Please use :meth:`ssl.SSLContext.load_cert_chain` instead, or let " -":func:`ssl.create_default_context` select the system's trusted CA " -"certificates for you." +"Please use :meth:`ssl.SSLContext.load_cert_chain` instead, or let :func:`ssl." +"create_default_context` select the system's trusted CA certificates for you." msgstr "" #: ../../library/urllib.request.rst:123 msgid "" "Install an :class:`OpenerDirector` instance as the default global opener. " "Installing an opener is only necessary if you want urlopen to use that " -"opener; otherwise, simply call :meth:`OpenerDirector.open` instead of " -":func:`~urllib.request.urlopen`. The code does not check for a real " -":class:`OpenerDirector`, and any class with the appropriate interface will " -"work." +"opener; otherwise, simply call :meth:`OpenerDirector.open` instead of :func:" +"`~urllib.request.urlopen`. The code does not check for a real :class:" +"`OpenerDirector`, and any class with the appropriate interface will work." msgstr "" #: ../../library/urllib.request.rst:133 msgid "" -"Return an :class:`OpenerDirector` instance, which chains the handlers in the" -" order given. *handler*\\s can be either instances of :class:`BaseHandler`, " +"Return an :class:`OpenerDirector` instance, which chains the handlers in the " +"order given. *handler*\\s can be either instances of :class:`BaseHandler`, " "or subclasses of :class:`BaseHandler` (in which case it must be possible to " "call the constructor without any parameters). Instances of the following " "classes will be in front of the *handler*\\s, unless the *handler*\\s " -"contain them, instances of them or subclasses of them: :class:`ProxyHandler`" -" (if proxy settings are detected), :class:`UnknownHandler`, " -":class:`HTTPHandler`, :class:`HTTPDefaultErrorHandler`, " -":class:`HTTPRedirectHandler`, :class:`FTPHandler`, :class:`FileHandler`, " -":class:`HTTPErrorProcessor`." +"contain them, instances of them or subclasses of them: :class:`ProxyHandler` " +"(if proxy settings are detected), :class:`UnknownHandler`, :class:" +"`HTTPHandler`, :class:`HTTPDefaultErrorHandler`, :class:" +"`HTTPRedirectHandler`, :class:`FTPHandler`, :class:`FileHandler`, :class:" +"`HTTPErrorProcessor`." msgstr "" #: ../../library/urllib.request.rst:143 @@ -237,26 +237,26 @@ msgstr "" #: ../../library/urllib.request.rst:152 msgid "" "Convert the pathname *path* from the local syntax for a path to the form " -"used in the path component of a URL. This does not produce a complete URL." -" The return value will already be quoted using the " -":func:`~urllib.parse.quote` function." +"used in the path component of a URL. This does not produce a complete URL. " +"The return value will already be quoted using the :func:`~urllib.parse." +"quote` function." msgstr "" #: ../../library/urllib.request.rst:159 msgid "" "Convert the path component *path* from a percent-encoded URL to the local " -"syntax for a path. This does not accept a complete URL. This function uses" -" :func:`~urllib.parse.unquote` to decode *path*." +"syntax for a path. This does not accept a complete URL. This function " +"uses :func:`~urllib.parse.unquote` to decode *path*." msgstr "" #: ../../library/urllib.request.rst:165 msgid "" "This helper function returns a dictionary of scheme to proxy server URL " "mappings. It scans the environment for variables named ``_proxy``, " -"in a case insensitive approach, for all operating systems first, and when it" -" cannot find it, looks for proxy information from Mac OSX System " -"Configuration for Mac OS X and Windows Systems Registry for Windows. If both" -" lowercase and uppercase environment variables exist (and disagree), " +"in a case insensitive approach, for all operating systems first, and when it " +"cannot find it, looks for proxy information from Mac OSX System " +"Configuration for Mac OS X and Windows Systems Registry for Windows. If both " +"lowercase and uppercase environment variables exist (and disagree), " "lowercase is preferred." msgstr "" @@ -286,42 +286,42 @@ msgstr "" #: ../../library/urllib.request.rst:192 msgid "" "*data* must be an object specifying additional data to send to the server, " -"or ``None`` if no such data is needed. Currently HTTP requests are the only" -" ones that use *data*. The supported object types include bytes, file-like " +"or ``None`` if no such data is needed. Currently HTTP requests are the only " +"ones that use *data*. The supported object types include bytes, file-like " "objects, and iterables. If no ``Content-Length`` nor ``Transfer-Encoding`` " "header field has been provided, :class:`HTTPHandler` will set these headers " "according to the type of *data*. ``Content-Length`` will be used to send " -"bytes objects, while ``Transfer-Encoding: chunked`` as specified in " -":rfc:`7230`, Section 3.3.1 will be used to send files and other iterables." +"bytes objects, while ``Transfer-Encoding: chunked`` as specified in :rfc:" +"`7230`, Section 3.3.1 will be used to send files and other iterables." msgstr "" #: ../../library/urllib.request.rst:202 msgid "" -"For an HTTP POST request method, *data* should be a buffer in the standard " -":mimetype:`application/x-www-form-urlencoded` format. The " -":func:`urllib.parse.urlencode` function takes a mapping or sequence of " -"2-tuples and returns an ASCII string in this format. It should be encoded to" -" bytes before being used as the *data* parameter." +"For an HTTP POST request method, *data* should be a buffer in the standard :" +"mimetype:`application/x-www-form-urlencoded` format. The :func:`urllib." +"parse.urlencode` function takes a mapping or sequence of 2-tuples and " +"returns an ASCII string in this format. It should be encoded to bytes before " +"being used as the *data* parameter." msgstr "" #: ../../library/urllib.request.rst:208 msgid "" -"*headers* should be a dictionary, and will be treated as if " -":meth:`add_header` was called with each key and value as arguments. This is " -"often used to \"spoof\" the ``User-Agent`` header value, which is used by a " +"*headers* should be a dictionary, and will be treated as if :meth:" +"`add_header` was called with each key and value as arguments. This is often " +"used to \"spoof\" the ``User-Agent`` header value, which is used by a " "browser to identify itself -- some HTTP servers only allow requests coming " -"from common browsers as opposed to scripts. For example, Mozilla Firefox may" -" identify itself as ``\"Mozilla/5.0 (X11; U; Linux i686) Gecko/20071127 " -"Firefox/2.0.0.11\"``, while :mod:`urllib`'s default user agent string is " -"``\"Python-urllib/2.6\"`` (on Python 2.6)." +"from common browsers as opposed to scripts. For example, Mozilla Firefox may " +"identify itself as ``\"Mozilla/5.0 (X11; U; Linux i686) Gecko/20071127 " +"Firefox/2.0.0.11\"``, while :mod:`urllib`'s default user agent string is ``" +"\"Python-urllib/2.6\"`` (on Python 2.6)." msgstr "" #: ../../library/urllib.request.rst:218 msgid "" "An appropriate ``Content-Type`` header should be included if the *data* " -"argument is present. If this header has not been provided and *data* is not" -" None, ``Content-Type: application/x-www-form-urlencoded`` will be added as " -"a default." +"argument is present. If this header has not been provided and *data* is not " +"None, ``Content-Type: application/x-www-form-urlencoded`` will be added as a " +"default." msgstr "" #: ../../library/urllib.request.rst:223 @@ -333,11 +333,11 @@ msgstr "" #: ../../library/urllib.request.rst:226 msgid "" "*origin_req_host* should be the request-host of the origin transaction, as " -"defined by :rfc:`2965`. It defaults to " -"``http.cookiejar.request_host(self)``. This is the host name or IP address " -"of the original request that was initiated by the user. For example, if the " -"request is for an image in an HTML document, this should be the request-host" -" of the request for the page containing the image." +"defined by :rfc:`2965`. It defaults to ``http.cookiejar." +"request_host(self)``. This is the host name or IP address of the original " +"request that was initiated by the user. For example, if the request is for " +"an image in an HTML document, this should be the request-host of the request " +"for the page containing the image." msgstr "" #: ../../library/urllib.request.rst:234 @@ -351,20 +351,20 @@ msgstr "" #: ../../library/urllib.request.rst:241 msgid "" -"*method* should be a string that indicates the HTTP request method that will" -" be used (e.g. ``'HEAD'``). If provided, its value is stored in the " -":attr:`~Request.method` attribute and is used by :meth:`get_method()`. The " -"default is ``'GET'`` if *data* is ``None`` or ``'POST'`` otherwise. " -"Subclasses may indicate a different default method by setting the " -":attr:`~Request.method` attribute in the class itself." +"*method* should be a string that indicates the HTTP request method that will " +"be used (e.g. ``'HEAD'``). If provided, its value is stored in the :attr:" +"`~Request.method` attribute and is used by :meth:`get_method()`. The default " +"is ``'GET'`` if *data* is ``None`` or ``'POST'`` otherwise. Subclasses may " +"indicate a different default method by setting the :attr:`~Request.method` " +"attribute in the class itself." msgstr "" #: ../../library/urllib.request.rst:249 msgid "" "The request will not work as expected if the data object is unable to " "deliver its content more than once (e.g. a file or an iterable that can " -"produce the content only once) and the request is retried for HTTP redirects" -" or authentication. The *data* is sent to the HTTP server right away after " +"produce the content only once) and the request is retried for HTTP redirects " +"or authentication. The *data* is sent to the HTTP server right away after " "the headers. There is no support for a 100-continue expectation in the " "library." msgstr "" @@ -414,12 +414,12 @@ msgstr "" #: ../../library/urllib.request.rst:297 msgid "" "Cause requests to go through a proxy. If *proxies* is given, it must be a " -"dictionary mapping protocol names to URLs of proxies. The default is to read" -" the list of proxies from the environment variables ``_proxy``. " -"If no proxy environment variables are set, then in a Windows environment " -"proxy settings are obtained from the registry's Internet Settings section, " -"and in a Mac OS X environment proxy information is retrieved from the OS X " -"System Configuration Framework." +"dictionary mapping protocol names to URLs of proxies. The default is to read " +"the list of proxies from the environment variables ``_proxy``. If " +"no proxy environment variables are set, then in a Windows environment proxy " +"settings are obtained from the registry's Internet Settings section, and in " +"a Mac OS X environment proxy information is retrieved from the OS X System " +"Configuration Framework." msgstr "" #: ../../library/urllib.request.rst:305 @@ -429,8 +429,8 @@ msgstr "" #: ../../library/urllib.request.rst:307 msgid "" "The :envvar:`no_proxy` environment variable can be used to specify hosts " -"which shouldn't be reached via proxy; if set, it should be a comma-separated" -" list of hostname suffixes, optionally with ``:port`` appended, for example " +"which shouldn't be reached via proxy; if set, it should be a comma-separated " +"list of hostname suffixes, optionally with ``:port`` appended, for example " "``cern.ch,ncsa.uiuc.edu,some.host:8080``." msgstr "" @@ -463,16 +463,16 @@ msgstr "" msgid "" "This is a mixin class that helps with HTTP authentication, both to the " "remote host and to a proxy. *password_mgr*, if given, should be something " -"that is compatible with :class:`HTTPPasswordMgr`; refer to section :ref" -":`http-password-mgr` for information on the interface that must be " +"that is compatible with :class:`HTTPPasswordMgr`; refer to section :ref:" +"`http-password-mgr` for information on the interface that must be " "supported. If *passwd_mgr* also provides ``is_authenticated`` and " "``update_authenticated`` methods (see :ref:`http-password-mgr-with-prior-" "auth`), then the handler will use the ``is_authenticated`` result for a " "given URI to determine whether or not to send authentication credentials " "with the request. If ``is_authenticated`` returns ``True`` for the URI, " -"credentials are sent. If ``is_authenticated`` is ``False``, credentials are" -" not sent, and then if a ``401`` response is received the request is re-sent" -" with the authentication credentials. If authentication succeeds, " +"credentials are sent. If ``is_authenticated`` is ``False``, credentials are " +"not sent, and then if a ``401`` response is received the request is re-sent " +"with the authentication credentials. If authentication succeeds, " "``update_authenticated`` is called to set ``is_authenticated`` ``True`` for " "the URI, so that subsequent requests to the URI or any of its super-URIs " "will automatically include the authentication credentials." @@ -484,8 +484,8 @@ msgstr "" #: ../../library/urllib.request.rst:365 msgid "" -"Handle authentication with the remote host. *password_mgr*, if given, should" -" be something that is compatible with :class:`HTTPPasswordMgr`; refer to " +"Handle authentication with the remote host. *password_mgr*, if given, should " +"be something that is compatible with :class:`HTTPPasswordMgr`; refer to " "section :ref:`http-password-mgr` for information on the interface that must " "be supported. HTTPBasicAuthHandler will raise a :exc:`ValueError` when " "presented with a wrong Authentication scheme." @@ -494,31 +494,30 @@ msgstr "" #: ../../library/urllib.request.rst:374 ../../library/urllib.request.rst:408 msgid "" "Handle authentication with the proxy. *password_mgr*, if given, should be " -"something that is compatible with :class:`HTTPPasswordMgr`; refer to section" -" :ref:`http-password-mgr` for information on the interface that must be " -"supported." +"something that is compatible with :class:`HTTPPasswordMgr`; refer to " +"section :ref:`http-password-mgr` for information on the interface that must " +"be supported." msgstr "" #: ../../library/urllib.request.rst:382 msgid "" "This is a mixin class that helps with HTTP authentication, both to the " "remote host and to a proxy. *password_mgr*, if given, should be something " -"that is compatible with :class:`HTTPPasswordMgr`; refer to section :ref" -":`http-password-mgr` for information on the interface that must be " -"supported." +"that is compatible with :class:`HTTPPasswordMgr`; refer to section :ref:" +"`http-password-mgr` for information on the interface that must be supported." msgstr "" #: ../../library/urllib.request.rst:391 msgid "" -"Handle authentication with the remote host. *password_mgr*, if given, should" -" be something that is compatible with :class:`HTTPPasswordMgr`; refer to " +"Handle authentication with the remote host. *password_mgr*, if given, should " +"be something that is compatible with :class:`HTTPPasswordMgr`; refer to " "section :ref:`http-password-mgr` for information on the interface that must " "be supported. When both Digest Authentication Handler and Basic " -"Authentication Handler are both added, Digest Authentication is always tried" -" first. If the Digest Authentication returns a 40x response again, it is " -"sent to Basic Authentication handler to Handle. This Handler method will " -"raise a :exc:`ValueError` when presented with an authentication scheme other" -" than Digest or Basic." +"Authentication Handler are both added, Digest Authentication is always tried " +"first. If the Digest Authentication returns a 40x response again, it is sent " +"to Basic Authentication handler to Handle. This Handler method will raise " +"a :exc:`ValueError` when presented with an authentication scheme other than " +"Digest or Basic." msgstr "" #: ../../library/urllib.request.rst:401 @@ -581,9 +580,9 @@ msgstr "" #: ../../library/urllib.request.rst:474 msgid "" -"Request.full_url is a property with setter, getter and a deleter. Getting " -":attr:`~Request.full_url` returns the original request URL with the " -"fragment, if it was present." +"Request.full_url is a property with setter, getter and a deleter. Getting :" +"attr:`~Request.full_url` returns the original request URL with the fragment, " +"if it was present." msgstr "" #: ../../library/urllib.request.rst:480 @@ -612,24 +611,24 @@ msgstr "" #: ../../library/urllib.request.rst:500 msgid "" -"Changing value of :attr:`Request.data` now deletes \"Content-Length\" header" -" if it was previously set or calculated." +"Changing value of :attr:`Request.data` now deletes \"Content-Length\" header " +"if it was previously set or calculated." msgstr "" #: ../../library/urllib.request.rst:506 msgid "" -"boolean, indicates whether the request is unverifiable as defined by " -":rfc:`2965`." +"boolean, indicates whether the request is unverifiable as defined by :rfc:" +"`2965`." msgstr "" #: ../../library/urllib.request.rst:511 msgid "" "The HTTP request method to use. By default its value is :const:`None`, " "which means that :meth:`~Request.get_method` will do its normal computation " -"of the method to be used. Its value can be set (thus overriding the default" -" computation in :meth:`~Request.get_method`) either by providing a default " -"value by setting it at the class level in a :class:`Request` subclass, or by" -" passing a value in to the :class:`Request` constructor via the *method* " +"of the method to be used. Its value can be set (thus overriding the default " +"computation in :meth:`~Request.get_method`) either by providing a default " +"value by setting it at the class level in a :class:`Request` subclass, or by " +"passing a value in to the :class:`Request` constructor via the *method* " "argument." msgstr "" @@ -641,10 +640,10 @@ msgstr "" #: ../../library/urllib.request.rst:528 msgid "" -"Return a string indicating the HTTP request method. If " -":attr:`Request.method` is not ``None``, return its value, otherwise return " -"``'GET'`` if :attr:`Request.data` is ``None``, or ``'POST'`` if it's not. " -"This is only meaningful for HTTP requests." +"Return a string indicating the HTTP request method. If :attr:`Request." +"method` is not ``None``, return its value, otherwise return ``'GET'`` if :" +"attr:`Request.data` is ``None``, or ``'POST'`` if it's not. This is only " +"meaningful for HTTP requests." msgstr "" #: ../../library/urllib.request.rst:533 @@ -655,11 +654,11 @@ msgstr "" msgid "" "Add another header to the request. Headers are currently ignored by all " "handlers except HTTP handlers, where they are added to the list of headers " -"sent to the server. Note that there cannot be more than one header with the" -" same name, and later calls will overwrite previous calls in case the *key* " +"sent to the server. Note that there cannot be more than one header with the " +"same name, and later calls will overwrite previous calls in case the *key* " "collides. Currently, this is no loss of HTTP functionality, since all " -"headers which have meaning when used more than once have a (header-specific)" -" way of gaining the same functionality using only one header." +"headers which have meaning when used more than once have a (header-specific) " +"way of gaining the same functionality using only one header." msgstr "" #: ../../library/urllib.request.rst:550 @@ -677,6 +676,8 @@ msgid "" "Remove named header from the request instance (both from regular and " "unredirected headers)." msgstr "" +"Remove o cabeçalho nomeado da instância de solicitação (tanto de cabeçalhos " +"regulares como de cabeçalhos não-redirecionados)." #: ../../library/urllib.request.rst:569 msgid "Return the URL given in the constructor." @@ -724,10 +725,10 @@ msgid "" "*handler* should be an instance of :class:`BaseHandler`. The following " "methods are searched, and added to the possible chains (note that HTTP " "errors are a special case). Note that, in the following, *protocol* should " -"be replaced with the actual protocol to handle, for example " -":meth:`http_response` would be the HTTP protocol response handler. Also " -"*type* should be replaced with the actual HTTP code, for example " -":meth:`http_error_404` would handle HTTP 404 errors." +"be replaced with the actual protocol to handle, for example :meth:" +"`http_response` would be the HTTP protocol response handler. Also *type* " +"should be replaced with the actual HTTP code, for example :meth:" +"`http_error_404` would handle HTTP 404 errors." msgstr "" #: ../../library/urllib.request.rst:617 @@ -778,29 +779,28 @@ msgstr "" #: ../../library/urllib.request.rst:647 msgid "" -"Open the given *url* (which can be a request object or a string), optionally" -" passing the given *data*. Arguments, return values and exceptions raised " -"are the same as those of :func:`urlopen` (which simply calls the " -":meth:`open` method on the currently installed global " -":class:`OpenerDirector`). The optional *timeout* parameter specifies a " -"timeout in seconds for blocking operations like the connection attempt (if " -"not specified, the global default timeout setting will be used). The timeout" -" feature actually works only for HTTP, HTTPS and FTP connections)." +"Open the given *url* (which can be a request object or a string), optionally " +"passing the given *data*. Arguments, return values and exceptions raised are " +"the same as those of :func:`urlopen` (which simply calls the :meth:`open` " +"method on the currently installed global :class:`OpenerDirector`). The " +"optional *timeout* parameter specifies a timeout in seconds for blocking " +"operations like the connection attempt (if not specified, the global default " +"timeout setting will be used). The timeout feature actually works only for " +"HTTP, HTTPS and FTP connections)." msgstr "" #: ../../library/urllib.request.rst:659 msgid "" "Handle an error of the given protocol. This will call the registered error " -"handlers for the given protocol with the given arguments (which are protocol" -" specific). The HTTP protocol is a special case which uses the HTTP " -"response code to determine the specific error handler; refer to the " -":meth:`http_error_\\` methods of the handler classes." +"handlers for the given protocol with the given arguments (which are protocol " +"specific). The HTTP protocol is a special case which uses the HTTP response " +"code to determine the specific error handler; refer to the :meth:`http_error_" +"\\` methods of the handler classes." msgstr "" #: ../../library/urllib.request.rst:665 msgid "" -"Return values and exceptions raised are the same as those of " -":func:`urlopen`." +"Return values and exceptions raised are the same as those of :func:`urlopen`." msgstr "" #: ../../library/urllib.request.rst:667 @@ -822,25 +822,25 @@ msgstr "" #: ../../library/urllib.request.rst:675 msgid "" "Handlers with a method named like :meth:`_open` are called to " -"handle the request. This stage ends when a handler either returns a non-\\ " -":const:`None` value (ie. a response), or raises an exception (usually " -":exc:`~urllib.error.URLError`). Exceptions are allowed to propagate." +"handle the request. This stage ends when a handler either returns a non-\\ :" +"const:`None` value (ie. a response), or raises an exception (usually :exc:" +"`~urllib.error.URLError`). Exceptions are allowed to propagate." msgstr "" #: ../../library/urllib.request.rst:680 msgid "" -"In fact, the above algorithm is first tried for methods named " -":meth:`default_open`. If all such methods return :const:`None`, the " -"algorithm is repeated for methods named like :meth:`_open`. If " -"all such methods return :const:`None`, the algorithm is repeated for methods" -" named :meth:`unknown_open`." +"In fact, the above algorithm is first tried for methods named :meth:" +"`default_open`. If all such methods return :const:`None`, the algorithm is " +"repeated for methods named like :meth:`_open`. If all such " +"methods return :const:`None`, the algorithm is repeated for methods named :" +"meth:`unknown_open`." msgstr "" #: ../../library/urllib.request.rst:686 msgid "" "Note that the implementation of these methods may involve calls of the " -"parent :class:`OpenerDirector` instance's :meth:`~OpenerDirector.open` and " -":meth:`~OpenerDirector.error` methods." +"parent :class:`OpenerDirector` instance's :meth:`~OpenerDirector.open` and :" +"meth:`~OpenerDirector.error` methods." msgstr "" #: ../../library/urllib.request.rst:690 @@ -876,15 +876,15 @@ msgstr "" #: ../../library/urllib.request.rst:718 msgid "" -"The convention has been adopted that subclasses defining " -":meth:`_request` or :meth:`_response` methods are named " -":class:`\\*Processor`; all others are named :class:`\\*Handler`." +"The convention has been adopted that subclasses defining :meth:" +"`_request` or :meth:`_response` methods are named :class:" +"`\\*Processor`; all others are named :class:`\\*Handler`." msgstr "" #: ../../library/urllib.request.rst:725 msgid "" -"A valid :class:`OpenerDirector`, which can be used to open using a different" -" protocol, or handle errors." +"A valid :class:`OpenerDirector`, which can be used to open using a different " +"protocol, or handle errors." msgstr "" #: ../../library/urllib.request.rst:731 @@ -895,12 +895,12 @@ msgstr "" #: ../../library/urllib.request.rst:734 msgid "" -"This method, if implemented, will be called by the parent " -":class:`OpenerDirector`. It should return a file-like object as described " -"in the return value of the :meth:`open` of :class:`OpenerDirector`, or " -"``None``. It should raise :exc:`~urllib.error.URLError`, unless a truly " -"exceptional thing happens (for example, :exc:`MemoryError` should not be " -"mapped to :exc:`URLError`)." +"This method, if implemented, will be called by the parent :class:" +"`OpenerDirector`. It should return a file-like object as described in the " +"return value of the :meth:`open` of :class:`OpenerDirector`, or ``None``. It " +"should raise :exc:`~urllib.error.URLError`, unless a truly exceptional thing " +"happens (for example, :exc:`MemoryError` should not be mapped to :exc:" +"`URLError`)." msgstr "" #: ../../library/urllib.request.rst:741 @@ -915,32 +915,32 @@ msgstr "" #: ../../library/urllib.request.rst:751 msgid "" -"This method, if defined, will be called by the parent " -":class:`OpenerDirector`. Return values should be the same as for " -":meth:`default_open`." +"This method, if defined, will be called by the parent :class:" +"`OpenerDirector`. Return values should be the same as for :meth:" +"`default_open`." msgstr "" #: ../../library/urllib.request.rst:757 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " -"define it if they want to catch all URLs with no specific registered handler" -" to open it." +"define it if they want to catch all URLs with no specific registered handler " +"to open it." msgstr "" #: ../../library/urllib.request.rst:761 msgid "" -"This method, if implemented, will be called by the :attr:`parent` " -":class:`OpenerDirector`. Return values should be the same as for " -":meth:`default_open`." +"This method, if implemented, will be called by the :attr:`parent` :class:" +"`OpenerDirector`. Return values should be the same as for :meth:" +"`default_open`." msgstr "" #: ../../library/urllib.request.rst:768 msgid "" "This method is *not* defined in :class:`BaseHandler`, but subclasses should " "override it if they intend to provide a catch-all for otherwise unhandled " -"HTTP errors. It will be called automatically by the " -":class:`OpenerDirector` getting the error, and should not normally be called" -" in other circumstances." +"HTTP errors. It will be called automatically by the :class:" +"`OpenerDirector` getting the error, and should not normally be called in " +"other circumstances." msgstr "" #: ../../library/urllib.request.rst:773 @@ -953,8 +953,8 @@ msgstr "" #: ../../library/urllib.request.rst:778 msgid "" -"Return values and exceptions raised should be the same as those of " -":func:`urlopen`." +"Return values and exceptions raised should be the same as those of :func:" +"`urlopen`." msgstr "" #: ../../library/urllib.request.rst:785 @@ -970,8 +970,8 @@ msgstr "" #: ../../library/urllib.request.rst:791 msgid "" -"Arguments, return values and exceptions raised should be the same as for " -":meth:`http_error_default`." +"Arguments, return values and exceptions raised should be the same as for :" +"meth:`http_error_default`." msgstr "" #: ../../library/urllib.request.rst:799 @@ -982,9 +982,9 @@ msgstr "" #: ../../library/urllib.request.rst:802 msgid "" -"This method, if defined, will be called by the parent " -":class:`OpenerDirector`. *req* will be a :class:`Request` object. The return" -" value should be a :class:`Request` object." +"This method, if defined, will be called by the parent :class:" +"`OpenerDirector`. *req* will be a :class:`Request` object. The return value " +"should be a :class:`Request` object." msgstr "" #: ../../library/urllib.request.rst:811 @@ -995,11 +995,11 @@ msgstr "" #: ../../library/urllib.request.rst:814 msgid "" -"This method, if defined, will be called by the parent " -":class:`OpenerDirector`. *req* will be a :class:`Request` object. *response*" -" will be an object implementing the same interface as the return value of " -":func:`urlopen`. The return value should implement the same interface as " -"the return value of :func:`urlopen`." +"This method, if defined, will be called by the parent :class:" +"`OpenerDirector`. *req* will be a :class:`Request` object. *response* will " +"be an object implementing the same interface as the return value of :func:" +"`urlopen`. The return value should implement the same interface as the " +"return value of :func:`urlopen`." msgstr "" #: ../../library/urllib.request.rst:824 @@ -1009,15 +1009,15 @@ msgstr "" #: ../../library/urllib.request.rst:828 msgid "" "Some HTTP redirections require action from this module's client code. If " -"this is the case, :exc:`~urllib.error.HTTPError` is raised. See :rfc:`2616`" -" for details of the precise meanings of the various redirection codes." +"this is the case, :exc:`~urllib.error.HTTPError` is raised. See :rfc:`2616` " +"for details of the precise meanings of the various redirection codes." msgstr "" #: ../../library/urllib.request.rst:832 msgid "" "An :class:`HTTPError` exception raised as a security consideration if the " -"HTTPRedirectHandler is presented with a redirected URL which is not an HTTP," -" HTTPS or FTP URL." +"HTTPRedirectHandler is presented with a redirected URL which is not an HTTP, " +"HTTPS or FTP URL." msgstr "" #: ../../library/urllib.request.rst:839 @@ -1025,26 +1025,25 @@ msgid "" "Return a :class:`Request` or ``None`` in response to a redirect. This is " "called by the default implementations of the :meth:`http_error_30\\*` " "methods when a redirection is received from the server. If a redirection " -"should take place, return a new :class:`Request` to allow " -":meth:`http_error_30\\*` to perform the redirect to *newurl*. Otherwise, " -"raise :exc:`~urllib.error.HTTPError` if no other handler should try to " -"handle this URL, or return ``None`` if you can't but another handler might." +"should take place, return a new :class:`Request` to allow :meth:" +"`http_error_30\\*` to perform the redirect to *newurl*. Otherwise, raise :" +"exc:`~urllib.error.HTTPError` if no other handler should try to handle this " +"URL, or return ``None`` if you can't but another handler might." msgstr "" #: ../../library/urllib.request.rst:849 msgid "" -"The default implementation of this method does not strictly follow " -":rfc:`2616`, which says that 301 and 302 responses to ``POST`` requests must" -" not be automatically redirected without confirmation by the user. In " -"reality, browsers do allow automatic redirection of these responses, " -"changing the POST to a ``GET``, and the default implementation reproduces " -"this behavior." +"The default implementation of this method does not strictly follow :rfc:" +"`2616`, which says that 301 and 302 responses to ``POST`` requests must not " +"be automatically redirected without confirmation by the user. In reality, " +"browsers do allow automatic redirection of these responses, changing the " +"POST to a ``GET``, and the default implementation reproduces this behavior." msgstr "" #: ../../library/urllib.request.rst:858 msgid "" -"Redirect to the ``Location:`` or ``URI:`` URL. This method is called by the" -" parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' " +"Redirect to the ``Location:`` or ``URI:`` URL. This method is called by the " +"parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' " "response." msgstr "" @@ -1095,16 +1094,16 @@ msgstr "" #: ../../library/urllib.request.rst:911 msgid "" -"These methods are available on :class:`HTTPPasswordMgr` and " -":class:`HTTPPasswordMgrWithDefaultRealm` objects." +"These methods are available on :class:`HTTPPasswordMgr` and :class:" +"`HTTPPasswordMgrWithDefaultRealm` objects." msgstr "" #: ../../library/urllib.request.rst:917 msgid "" -"*uri* can be either a single URI, or a sequence of URIs. *realm*, *user* and" -" *passwd* must be strings. This causes ``(user, passwd)`` to be used as " -"authentication tokens when authentication for *realm* and a super-URI of any" -" of the given URIs is given." +"*uri* can be either a single URI, or a sequence of URIs. *realm*, *user* and " +"*passwd* must be strings. This causes ``(user, passwd)`` to be used as " +"authentication tokens when authentication for *realm* and a super-URI of any " +"of the given URIs is given." msgstr "" #: ../../library/urllib.request.rst:925 @@ -1132,10 +1131,10 @@ msgstr "" #: ../../library/urllib.request.rst:944 msgid "" -"*realm*, *uri*, *user*, *passwd* are as for " -":meth:`HTTPPasswordMgr.add_password`. *is_authenticated* sets the initial " -"value of the ``is_authenticated`` flag for the given URI or list of URIs. If" -" *is_authenticated* is specified as ``True``, *realm* is ignored." +"*realm*, *uri*, *user*, *passwd* are as for :meth:`HTTPPasswordMgr." +"add_password`. *is_authenticated* sets the initial value of the " +"``is_authenticated`` flag for the given URI or list of URIs. If " +"*is_authenticated* is specified as ``True``, *realm* is ignored." msgstr "" #: ../../library/urllib.request.rst:952 @@ -1149,8 +1148,7 @@ msgstr "" #: ../../library/urllib.request.rst:964 msgid "" -"Returns the current state of the ``is_authenticated`` flag for the given " -"URI." +"Returns the current state of the ``is_authenticated`` flag for the given URI." msgstr "" #: ../../library/urllib.request.rst:971 @@ -1161,9 +1159,9 @@ msgstr "" msgid "" "Handle an authentication request by getting a user/password pair, and re-" "trying the request. *authreq* should be the name of the header where the " -"information about the realm is included in the request, *host* specifies the" -" URL and path to authenticate for, *req* should be the (failed) " -":class:`Request` object, and *headers* should be the error headers." +"information about the realm is included in the request, *host* specifies the " +"URL and path to authenticate for, *req* should be the (failed) :class:" +"`Request` object, and *headers* should be the error headers." msgstr "" #: ../../library/urllib.request.rst:982 @@ -1213,8 +1211,8 @@ msgstr "" #: ../../library/urllib.request.rst:1054 msgid "" -"Send an HTTP request, which can be either GET or POST, depending on " -"``req.has_data()``." +"Send an HTTP request, which can be either GET or POST, depending on ``req." +"has_data()``." msgstr "" #: ../../library/urllib.request.rst:1061 @@ -1223,8 +1221,8 @@ msgstr "" #: ../../library/urllib.request.rst:1066 msgid "" -"Send an HTTPS request, which can be either GET or POST, depending on " -"``req.has_data()``." +"Send an HTTPS request, which can be either GET or POST, depending on ``req." +"has_data()``." msgstr "" #: ../../library/urllib.request.rst:1073 @@ -1250,8 +1248,8 @@ msgstr "" #: ../../library/urllib.request.rst:1093 msgid "" "Read a data URL. This kind of URL contains the content encoded in the URL " -"itself. The data URL syntax is specified in :rfc:`2397`. This implementation" -" ignores white spaces in base64 encoded data URLs so the URL may be wrapped " +"itself. The data URL syntax is specified in :rfc:`2397`. This implementation " +"ignores white spaces in base64 encoded data URLs so the URL may be wrapped " "in whatever source file it comes from. But even though some browsers don't " "mind about a missing padding at the end of a base64 encoded data URL, this " "implementation will raise an :exc:`ValueError` in that case." @@ -1303,11 +1301,10 @@ msgstr "" #: ../../library/urllib.request.rst:1154 msgid "" -"For non-200 error codes, this simply passes the job on to the " -":meth:`http_error_\\` handler methods, via " -":meth:`OpenerDirector.error`. Eventually, :class:`HTTPDefaultErrorHandler` " -"will raise an :exc:`~urllib.error.HTTPError` if no other handler handles the" -" error." +"For non-200 error codes, this simply passes the job on to the :meth:" +"`http_error_\\` handler methods, via :meth:`OpenerDirector.error`. " +"Eventually, :class:`HTTPDefaultErrorHandler` will raise an :exc:`~urllib." +"error.HTTPError` if no other handler handles the error." msgstr "" #: ../../library/urllib.request.rst:1162 @@ -1358,15 +1355,15 @@ msgstr "" #: ../../library/urllib.request.rst:1207 msgid "" -"It is also possible to achieve the same result without using the " -":term:`context manager` approach. ::" +"It is also possible to achieve the same result without using the :term:" +"`context manager` approach. ::" msgstr "" #: ../../library/urllib.request.rst:1216 msgid "" -"In the following example, we are sending a data-stream to the stdin of a CGI" -" and reading the data it returns to us. Note that this example will only " -"work when the Python installation supports SSL. ::" +"In the following example, we are sending a data-stream to the stdin of a CGI " +"and reading the data it returns to us. Note that this example will only work " +"when the Python installation supports SSL. ::" msgstr "" #: ../../library/urllib.request.rst:1228 @@ -1383,11 +1380,11 @@ msgstr "" #: ../../library/urllib.request.rst:1259 msgid "" -":func:`build_opener` provides many handlers by default, including a " -":class:`ProxyHandler`. By default, :class:`ProxyHandler` uses the " -"environment variables named ``_proxy``, where ```` is the " -"URL scheme involved. For example, the :envvar:`http_proxy` environment " -"variable is read to obtain the HTTP proxy's URL." +":func:`build_opener` provides many handlers by default, including a :class:" +"`ProxyHandler`. By default, :class:`ProxyHandler` uses the environment " +"variables named ``_proxy``, where ```` is the URL scheme " +"involved. For example, the :envvar:`http_proxy` environment variable is " +"read to obtain the HTTP proxy's URL." msgstr "" #: ../../library/urllib.request.rst:1265 @@ -1407,16 +1404,15 @@ msgstr "" #: ../../library/urllib.request.rst:1288 msgid "" -":class:`OpenerDirector` automatically adds a :mailheader:`User-Agent` header" -" to every :class:`Request`. To change this::" +":class:`OpenerDirector` automatically adds a :mailheader:`User-Agent` header " +"to every :class:`Request`. To change this::" msgstr "" #: ../../library/urllib.request.rst:1296 msgid "" -"Also, remember that a few standard headers (:mailheader:`Content-Length`, " -":mailheader:`Content-Type` and :mailheader:`Host`) are added when the " -":class:`Request` is passed to :func:`urlopen` (or " -":meth:`OpenerDirector.open`)." +"Also, remember that a few standard headers (:mailheader:`Content-Length`, :" +"mailheader:`Content-Type` and :mailheader:`Host`) are added when the :class:" +"`Request` is passed to :func:`urlopen` (or :meth:`OpenerDirector.open`)." msgstr "" #: ../../library/urllib.request.rst:1303 @@ -1457,12 +1453,12 @@ msgstr "" #: ../../library/urllib.request.rst:1353 msgid "" -"Copy a network object denoted by a URL to a local file. If the URL points to" -" a local file, the object will not be copied unless filename is supplied. " +"Copy a network object denoted by a URL to a local file. If the URL points to " +"a local file, the object will not be copied unless filename is supplied. " "Return a tuple ``(filename, headers)`` where *filename* is the local file " -"name under which the object can be found, and *headers* is whatever the " -":meth:`info` method of the object returned by :func:`urlopen` returned (for " -"a remote object). Exceptions are the same as for :func:`urlopen`." +"name under which the object can be found, and *headers* is whatever the :" +"meth:`info` method of the object returned by :func:`urlopen` returned (for a " +"remote object). Exceptions are the same as for :func:`urlopen`." msgstr "" #: ../../library/urllib.request.rst:1360 @@ -1485,9 +1481,9 @@ msgstr "" msgid "" "If the *url* uses the :file:`http:` scheme identifier, the optional *data* " "argument may be given to specify a ``POST`` request (normally the request " -"type is ``GET``). The *data* argument must be a bytes object in standard " -":mimetype:`application/x-www-form-urlencoded` format; see the " -":func:`urllib.parse.urlencode` function." +"type is ``GET``). The *data* argument must be a bytes object in standard :" +"mimetype:`application/x-www-form-urlencoded` format; see the :func:`urllib." +"parse.urlencode` function." msgstr "" #: ../../library/urllib.request.rst:1382 @@ -1501,8 +1497,8 @@ msgstr "" #: ../../library/urllib.request.rst:1387 msgid "" "The *Content-Length* is treated as a lower bound: if there's more data to " -"read, urlretrieve reads more data, but if less data is available, it raises" -" the exception." +"read, urlretrieve reads more data, but if less data is available, it raises " +"the exception." msgstr "" #: ../../library/urllib.request.rst:1391 @@ -1526,9 +1522,9 @@ msgstr "" #: ../../library/urllib.request.rst:1407 msgid "" -"Base class for opening and reading URLs. Unless you need to support opening" -" objects using schemes other than :file:`http:`, :file:`ftp:`, or " -":file:`file:`, you probably want to use :class:`FancyURLopener`." +"Base class for opening and reading URLs. Unless you need to support opening " +"objects using schemes other than :file:`http:`, :file:`ftp:`, or :file:`file:" +"`, you probably want to use :class:`FancyURLopener`." msgstr "" #: ../../library/urllib.request.rst:1411 @@ -1543,19 +1539,18 @@ msgstr "" #: ../../library/urllib.request.rst:1417 msgid "" -"The optional *proxies* parameter should be a dictionary mapping scheme names" -" to proxy URLs, where an empty dictionary turns proxies off completely. Its" -" default value is ``None``, in which case environmental proxy settings will " -"be used if present, as discussed in the definition of :func:`urlopen`, " -"above." +"The optional *proxies* parameter should be a dictionary mapping scheme names " +"to proxy URLs, where an empty dictionary turns proxies off completely. Its " +"default value is ``None``, in which case environmental proxy settings will " +"be used if present, as discussed in the definition of :func:`urlopen`, above." msgstr "" #: ../../library/urllib.request.rst:1422 msgid "" "Additional keyword parameters, collected in *x509*, may be used for " "authentication of the client when using the :file:`https:` scheme. The " -"keywords *key_file* and *cert_file* are supported to provide an SSL key and" -" certificate; both are needed to support client authentication." +"keywords *key_file* and *cert_file* are supported to provide an SSL key and " +"certificate; both are needed to support client authentication." msgstr "" #: ../../library/urllib.request.rst:1427 @@ -1567,10 +1562,10 @@ msgstr "" #: ../../library/urllib.request.rst:1432 msgid "" "Open *fullurl* using the appropriate protocol. This method sets up cache " -"and proxy information, then calls the appropriate open method with its input" -" arguments. If the scheme is not recognized, :meth:`open_unknown` is " -"called. The *data* argument has the same meaning as the *data* argument of " -":func:`urlopen`." +"and proxy information, then calls the appropriate open method with its input " +"arguments. If the scheme is not recognized, :meth:`open_unknown` is called. " +"The *data* argument has the same meaning as the *data* argument of :func:" +"`urlopen`." msgstr "" #: ../../library/urllib.request.rst:1438 @@ -1584,43 +1579,43 @@ msgstr "" #: ../../library/urllib.request.rst:1447 msgid "" "Retrieves the contents of *url* and places it in *filename*. The return " -"value is a tuple consisting of a local filename and either an " -":class:`email.message.Message` object containing the response headers (for " -"remote URLs) or ``None`` (for local URLs). The caller must then open and " -"read the contents of *filename*. If *filename* is not given and the URL " -"refers to a local file, the input filename is returned. If the URL is non-" -"local and *filename* is not given, the filename is the output of " -":func:`tempfile.mktemp` with a suffix that matches the suffix of the last " -"path component of the input URL. If *reporthook* is given, it must be a " -"function accepting three numeric parameters: A chunk number, the maximum " -"size chunks are read in and the total size of the download (-1 if unknown)." -" It will be called once at the start and after each chunk of data is read " -"from the network. *reporthook* is ignored for local URLs." +"value is a tuple consisting of a local filename and either an :class:`email." +"message.Message` object containing the response headers (for remote URLs) or " +"``None`` (for local URLs). The caller must then open and read the contents " +"of *filename*. If *filename* is not given and the URL refers to a local " +"file, the input filename is returned. If the URL is non-local and " +"*filename* is not given, the filename is the output of :func:`tempfile." +"mktemp` with a suffix that matches the suffix of the last path component of " +"the input URL. If *reporthook* is given, it must be a function accepting " +"three numeric parameters: A chunk number, the maximum size chunks are read " +"in and the total size of the download (-1 if unknown). It will be called " +"once at the start and after each chunk of data is read from the network. " +"*reporthook* is ignored for local URLs." msgstr "" #: ../../library/urllib.request.rst:1460 msgid "" "If the *url* uses the :file:`http:` scheme identifier, the optional *data* " "argument may be given to specify a ``POST`` request (normally the request " -"type is ``GET``). The *data* argument must in standard " -":mimetype:`application/x-www-form-urlencoded` format; see the " -":func:`urllib.parse.urlencode` function." +"type is ``GET``). The *data* argument must in standard :mimetype:" +"`application/x-www-form-urlencoded` format; see the :func:`urllib.parse." +"urlencode` function." msgstr "" #: ../../library/urllib.request.rst:1469 msgid "" -"Variable that specifies the user agent of the opener object. To get " -":mod:`urllib` to tell servers that it is a particular user agent, set this " -"in a subclass as a class variable or in the constructor before calling the " -"base constructor." +"Variable that specifies the user agent of the opener object. To get :mod:" +"`urllib` to tell servers that it is a particular user agent, set this in a " +"subclass as a class variable or in the constructor before calling the base " +"constructor." msgstr "" #: ../../library/urllib.request.rst:1479 msgid "" ":class:`FancyURLopener` subclasses :class:`URLopener` providing default " -"handling for the following HTTP response codes: 301, 302, 303, 307 and 401." -" For the 30x response codes listed above, the :mailheader:`Location` header" -" is used to fetch the actual URL. For 401 response codes (authentication " +"handling for the following HTTP response codes: 301, 302, 303, 307 and 401. " +"For the 30x response codes listed above, the :mailheader:`Location` header " +"is used to fetch the actual URL. For 401 response codes (authentication " "required), basic HTTP authentication is performed. For the 30x response " "codes, recursion is bounded by the value of the *maxtries* attribute, which " "defaults to 10." @@ -1644,8 +1639,8 @@ msgstr "" #: ../../library/urllib.request.rst:1496 msgid "" -"The parameters to the constructor are the same as those for " -":class:`URLopener`." +"The parameters to the constructor are the same as those for :class:" +"`URLopener`." msgstr "" #: ../../library/urllib.request.rst:1500 @@ -1699,22 +1694,21 @@ msgstr "" #: ../../library/urllib.request.rst:1534 msgid "" -"There should be a function to query whether a particular URL is in the " -"cache." +"There should be a function to query whether a particular URL is in the cache." msgstr "" #: ../../library/urllib.request.rst:1536 msgid "" "For backward compatibility, if a URL appears to point to a local file but " -"the file can't be opened, the URL is re-interpreted using the FTP protocol." -" This can sometimes cause confusing error messages." +"the file can't be opened, the URL is re-interpreted using the FTP protocol. " +"This can sometimes cause confusing error messages." msgstr "" #: ../../library/urllib.request.rst:1540 msgid "" "The :func:`urlopen` and :func:`urlretrieve` functions can cause arbitrarily " -"long delays while waiting for a network connection to be set up. This means" -" that it is difficult to build an interactive Web client using these " +"long delays while waiting for a network connection to be set up. This means " +"that it is difficult to build an interactive Web client using these " "functions without using threads." msgstr "" @@ -1723,27 +1717,27 @@ msgid "" "The data returned by :func:`urlopen` or :func:`urlretrieve` is the raw data " "returned by the server. This may be binary data (such as an image), plain " "text or (for example) HTML. The HTTP protocol provides type information in " -"the reply header, which can be inspected by looking at the :mailheader" -":`Content-Type` header. If the returned data is HTML, you can use the " +"the reply header, which can be inspected by looking at the :mailheader:" +"`Content-Type` header. If the returned data is HTML, you can use the " "module :mod:`html.parser` to parse it." msgstr "" #: ../../library/urllib.request.rst:1558 msgid "" -"The code handling the FTP protocol cannot differentiate between a file and a" -" directory. This can lead to unexpected behavior when attempting to read a " -"URL that points to a file that is not accessible. If the URL ends in a " -"``/``, it is assumed to refer to a directory and will be handled " -"accordingly. But if an attempt to read a file leads to a 550 error (meaning" -" the URL cannot be found or is not accessible, often for permission " -"reasons), then the path is treated as a directory in order to handle the " -"case when a directory is specified by a URL but the trailing ``/`` has been " -"left off. This can cause misleading results when you try to fetch a file " -"whose read permissions make it inaccessible; the FTP code will try to read " -"it, fail with a 550 error, and then perform a directory listing for the " -"unreadable file. If fine-grained control is needed, consider using the " -":mod:`ftplib` module, subclassing :class:`FancyURLopener`, or changing " -"*_urlopener* to meet your needs." +"The code handling the FTP protocol cannot differentiate between a file and a " +"directory. This can lead to unexpected behavior when attempting to read a " +"URL that points to a file that is not accessible. If the URL ends in a ``/" +"``, it is assumed to refer to a directory and will be handled accordingly. " +"But if an attempt to read a file leads to a 550 error (meaning the URL " +"cannot be found or is not accessible, often for permission reasons), then " +"the path is treated as a directory in order to handle the case when a " +"directory is specified by a URL but the trailing ``/`` has been left off. " +"This can cause misleading results when you try to fetch a file whose read " +"permissions make it inaccessible; the FTP code will try to read it, fail " +"with a 550 error, and then perform a directory listing for the unreadable " +"file. If fine-grained control is needed, consider using the :mod:`ftplib` " +"module, subclassing :class:`FancyURLopener`, or changing *_urlopener* to " +"meet your needs." msgstr "" #: ../../library/urllib.request.rst:1575 @@ -1752,10 +1746,10 @@ msgstr "" #: ../../library/urllib.request.rst:1580 msgid "" -"The :mod:`urllib.response` module defines functions and classes which define" -" a minimal file like interface, including ``read()`` and ``readline()``. The" -" typical response object is an addinfourl instance, which defines an " +"The :mod:`urllib.response` module defines functions and classes which define " +"a minimal file like interface, including ``read()`` and ``readline()``. The " +"typical response object is an addinfourl instance, which defines an " "``info()`` method and that returns headers and a ``geturl()`` method that " -"returns the url. Functions defined by this module are used internally by the" -" :mod:`urllib.request` module." +"returns the url. Functions defined by this module are used internally by " +"the :mod:`urllib.request` module." msgstr "" diff --git a/library/urllib.robotparser.po b/library/urllib.robotparser.po index ec0db165e..ac4b913f5 100644 --- a/library/urllib.robotparser.po +++ b/library/urllib.robotparser.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:19+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,17 +33,17 @@ msgstr "**Código Fonte:** :source:`Lib/urllib/robotparser.py`" #: ../../library/urllib.robotparser.rst:20 msgid "" -"This module provides a single class, :class:`RobotFileParser`, which answers" -" questions about whether or not a particular user agent can fetch a URL on " +"This module provides a single class, :class:`RobotFileParser`, which answers " +"questions about whether or not a particular user agent can fetch a URL on " "the Web site that published the :file:`robots.txt` file. For more details " -"on the structure of :file:`robots.txt` files, see " -"http://www.robotstxt.org/orig.html." +"on the structure of :file:`robots.txt` files, see http://www.robotstxt.org/" +"orig.html." msgstr "" #: ../../library/urllib.robotparser.rst:28 msgid "" -"This class provides methods to read, parse and answer questions about the " -":file:`robots.txt` file at *url*." +"This class provides methods to read, parse and answer questions about the :" +"file:`robots.txt` file at *url*." msgstr "" #: ../../library/urllib.robotparser.rst:33 @@ -65,8 +67,8 @@ msgstr "" #: ../../library/urllib.robotparser.rst:51 msgid "" "Returns the time the ``robots.txt`` file was last fetched. This is useful " -"for long-running web spiders that need to check for new ``robots.txt`` files" -" periodically." +"for long-running web spiders that need to check for new ``robots.txt`` files " +"periodically." msgstr "" #: ../../library/urllib.robotparser.rst:57 @@ -92,6 +94,6 @@ msgstr "" #: ../../library/urllib.robotparser.rst:80 msgid "" -"The following example demonstrates basic use of the :class:`RobotFileParser`" -" class::" +"The following example demonstrates basic use of the :class:`RobotFileParser` " +"class::" msgstr "" diff --git a/library/uu.po b/library/uu.po index f5285190c..d1ef684c6 100644 --- a/library/uu.po +++ b/library/uu.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:31+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,15 +35,14 @@ msgstr "**Código Fonte:** :source:`Lib/uu.py`" #: ../../library/uu.rst:13 msgid "" -"This module encodes and decodes files in uuencode format, allowing arbitrary" -" binary data to be transferred over ASCII-only connections. Wherever a file " +"This module encodes and decodes files in uuencode format, allowing arbitrary " +"binary data to be transferred over ASCII-only connections. Wherever a file " "argument is expected, the methods accept a file-like object. For backwards " "compatibility, a string containing a pathname is also accepted, and the " "corresponding file will be opened for reading and writing; the pathname " "``'-'`` is understood to mean the standard input or output. However, this " -"interface is deprecated; it's better for the caller to open the file itself," -" and be sure that, when required, the mode is ``'rb'`` or ``'wb'`` on " -"Windows." +"interface is deprecated; it's better for the caller to open the file itself, " +"and be sure that, when required, the mode is ``'rb'`` or ``'wb'`` on Windows." msgstr "" #: ../../library/uu.rst:26 @@ -57,9 +58,9 @@ msgstr "" msgid "" "Uuencode file *in_file* into file *out_file*. The uuencoded file will have " "the header specifying *name* and *mode* as the defaults for the results of " -"decoding the file. The default defaults are taken from *in_file*, or ``'-'``" -" and ``0o666`` respectively. If *backtick* is true, zeros are represented " -"by ``'`'`` instead of spaces." +"decoding the file. The default defaults are taken from *in_file*, or ``'-'`` " +"and ``0o666`` respectively. If *backtick* is true, zeros are represented by " +"``'`'`` instead of spaces." msgstr "" #: ../../library/uu.rst:39 @@ -78,8 +79,8 @@ msgstr "" #: ../../library/uu.rst:51 msgid "" ":func:`decode` may print a warning to standard error if the input was " -"produced by an incorrect uuencoder and Python could recover from that error." -" Setting *quiet* to a true value silences this warning." +"produced by an incorrect uuencoder and Python could recover from that " +"error. Setting *quiet* to a true value silences this warning." msgstr "" #: ../../library/uu.rst:58 diff --git a/library/uuid.po b/library/uuid.po index fa18a801a..fab86e79c 100644 --- a/library/uuid.po +++ b/library/uuid.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,7 +27,7 @@ msgstr "" #: ../../library/uuid.rst:2 msgid ":mod:`uuid` --- UUID objects according to :rfc:`4122`" -msgstr "" +msgstr ":mod:`uuid` --- UUID objects according to :rfc:`4122`" #: ../../library/uuid.rst:9 msgid "**Source code:** :source:`Lib/uuid.py`" @@ -34,15 +36,15 @@ msgstr "**Código Fonte:** :source:`Lib/uuid.py`" #: ../../library/uuid.rst:13 msgid "" "This module provides immutable :class:`UUID` objects (the :class:`UUID` " -"class) and the functions :func:`uuid1`, :func:`uuid3`, :func:`uuid4`, " -":func:`uuid5` for generating version 1, 3, 4, and 5 UUIDs as specified in " -":rfc:`4122`." +"class) and the functions :func:`uuid1`, :func:`uuid3`, :func:`uuid4`, :func:" +"`uuid5` for generating version 1, 3, 4, and 5 UUIDs as specified in :rfc:" +"`4122`." msgstr "" #: ../../library/uuid.rst:17 msgid "" -"If all you want is a unique ID, you should probably call :func:`uuid1` or " -":func:`uuid4`. Note that :func:`uuid1` may compromise privacy since it " +"If all you want is a unique ID, you should probably call :func:`uuid1` or :" +"func:`uuid4`. Note that :func:`uuid1` may compromise privacy since it " "creates a UUID containing the computer's network address. :func:`uuid4` " "creates a random UUID." msgstr "" @@ -53,8 +55,7 @@ msgid "" "not return a \"safe\" UUID. A safe UUID is one which is generated using " "synchronization methods that ensure no two processes can obtain the same " "UUID. All instances of :class:`UUID` have an :attr:`is_safe` attribute " -"which relays any information about the UUID's safety, using this " -"enumeration:" +"which relays any information about the UUID's safety, using this enumeration:" msgstr "" #: ../../library/uuid.rst:34 @@ -75,27 +76,27 @@ msgstr "" msgid "" "Create a UUID from either a string of 32 hexadecimal digits, a string of 16 " "bytes in big-endian order as the *bytes* argument, a string of 16 bytes in " -"little-endian order as the *bytes_le* argument, a tuple of six integers " -"(32-bit *time_low*, 16-bit *time_mid*, 16-bit *time_hi_version*, 8-bit " +"little-endian order as the *bytes_le* argument, a tuple of six integers (32-" +"bit *time_low*, 16-bit *time_mid*, 16-bit *time_hi_version*, 8-bit " "*clock_seq_hi_variant*, 8-bit *clock_seq_low*, 48-bit *node*) as the " -"*fields* argument, or a single 128-bit integer as the *int* argument. When a" -" string of hex digits is given, curly braces, hyphens, and a URN prefix are " +"*fields* argument, or a single 128-bit integer as the *int* argument. When a " +"string of hex digits is given, curly braces, hyphens, and a URN prefix are " "all optional. For example, these expressions all yield the same UUID::" msgstr "" #: ../../library/uuid.rst:66 msgid "" -"Exactly one of *hex*, *bytes*, *bytes_le*, *fields*, or *int* must be given." -" The *version* argument is optional; if given, the resulting UUID will have " -"its variant and version number set according to :rfc:`4122`, overriding bits" -" in the given *hex*, *bytes*, *bytes_le*, *fields*, or *int*." +"Exactly one of *hex*, *bytes*, *bytes_le*, *fields*, or *int* must be given. " +"The *version* argument is optional; if given, the resulting UUID will have " +"its variant and version number set according to :rfc:`4122`, overriding bits " +"in the given *hex*, *bytes*, *bytes_le*, *fields*, or *int*." msgstr "" #: ../../library/uuid.rst:71 msgid "" -"Comparison of UUID objects are made by way of comparing their " -":attr:`UUID.int` attributes. Comparison with a non-UUID object raises a " -":exc:`TypeError`." +"Comparison of UUID objects are made by way of comparing their :attr:`UUID." +"int` attributes. Comparison with a non-UUID object raises a :exc:" +"`TypeError`." msgstr "" #: ../../library/uuid.rst:75 @@ -137,7 +138,7 @@ msgstr "Significado" #: ../../library/uuid.rst:101 msgid ":attr:`time_low`" -msgstr "" +msgstr ":attr:`time_low`" #: ../../library/uuid.rst:101 msgid "the first 32 bits of the UUID" @@ -145,7 +146,7 @@ msgstr "" #: ../../library/uuid.rst:103 msgid ":attr:`time_mid`" -msgstr "" +msgstr ":attr:`time_mid`" #: ../../library/uuid.rst:103 ../../library/uuid.rst:105 msgid "the next 16 bits of the UUID" @@ -153,11 +154,11 @@ msgstr "" #: ../../library/uuid.rst:105 msgid ":attr:`time_hi_version`" -msgstr "" +msgstr ":attr:`time_hi_version`" #: ../../library/uuid.rst:107 msgid ":attr:`clock_seq_hi_variant`" -msgstr "" +msgstr ":attr:`clock_seq_hi_variant`" #: ../../library/uuid.rst:107 ../../library/uuid.rst:109 msgid "the next 8 bits of the UUID" @@ -165,11 +166,11 @@ msgstr "" #: ../../library/uuid.rst:109 msgid ":attr:`clock_seq_low`" -msgstr "" +msgstr ":attr:`clock_seq_low`" #: ../../library/uuid.rst:111 msgid ":attr:`node`" -msgstr "" +msgstr ":attr:`node`" #: ../../library/uuid.rst:111 msgid "the last 48 bits of the UUID" @@ -177,7 +178,7 @@ msgstr "" #: ../../library/uuid.rst:113 msgid ":attr:`time`" -msgstr "" +msgstr ":attr:`time`" #: ../../library/uuid.rst:113 msgid "the 60-bit timestamp" @@ -185,7 +186,7 @@ msgstr "" #: ../../library/uuid.rst:115 msgid ":attr:`clock_seq`" -msgstr "" +msgstr ":attr:`clock_seq`" #: ../../library/uuid.rst:115 msgid "the 14-bit sequence number" @@ -206,14 +207,14 @@ msgstr "" #: ../../library/uuid.rst:136 msgid "" "The UUID variant, which determines the internal layout of the UUID. This " -"will be one of the constants :const:`RESERVED_NCS`, :const:`RFC_4122`, " -":const:`RESERVED_MICROSOFT`, or :const:`RESERVED_FUTURE`." +"will be one of the constants :const:`RESERVED_NCS`, :const:`RFC_4122`, :" +"const:`RESERVED_MICROSOFT`, or :const:`RESERVED_FUTURE`." msgstr "" #: ../../library/uuid.rst:143 msgid "" -"The UUID version number (1 through 5, meaningful only when the variant is " -":const:`RFC_4122`)." +"The UUID version number (1 through 5, meaningful only when the variant is :" +"const:`RFC_4122`)." msgstr "" #: ../../library/uuid.rst:148 @@ -231,8 +232,8 @@ msgid "" "Get the hardware address as a 48-bit positive integer. The first time this " "runs, it may launch a separate program, which could be quite slow. If all " "attempts to obtain the hardware address fail, we choose a random 48-bit " -"number with the multicast bit (least significant bit of the first octet) set" -" to 1 as recommended in :rfc:`4122`. \"Hardware address\" means the MAC " +"number with the multicast bit (least significant bit of the first octet) set " +"to 1 as recommended in :rfc:`4122`. \"Hardware address\" means the MAC " "address of a network interface. On a machine with multiple network " "interfaces, universally administered MAC addresses (i.e. where the second " "least significant bit of the first octet is *unset*) will be preferred over " @@ -249,8 +250,8 @@ msgstr "" #: ../../library/uuid.rst:178 msgid "" "Generate a UUID from a host ID, sequence number, and the current time. If " -"*node* is not given, :func:`getnode` is used to obtain the hardware address." -" If *clock_seq* is given, it is used as the sequence number; otherwise a " +"*node* is not given, :func:`getnode` is used to obtain the hardware address. " +"If *clock_seq* is given, it is used as the sequence number; otherwise a " "random 14-bit sequence number is chosen." msgstr "" @@ -292,8 +293,8 @@ msgstr "" #: ../../library/uuid.rst:230 msgid "" -"When this namespace is specified, the *name* string is an X.500 DN in DER or" -" a text output format." +"When this namespace is specified, the *name* string is an X.500 DN in DER or " +"a text output format." msgstr "" #: ../../library/uuid.rst:233 diff --git a/library/venv.po b/library/venv.po index ca27defaf..4128e8763 100644 --- a/library/venv.po +++ b/library/venv.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Paulo Henrique Rodrigues Pinheiro , 2019 # Risaffi , 2019 # felipe caridade , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:29+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,17 +32,23 @@ msgstr ":mod:`venv`--- Criação de ambientes virtuais" #: ../../library/venv.rst:12 msgid "**Source code:** :source:`Lib/venv/`" -msgstr "" +msgstr "**Código-fonte:** :source:`Lib/venv/`" #: ../../library/venv.rst:18 msgid "" "The :mod:`venv` module provides support for creating lightweight \"virtual " "environments\" with their own site directories, optionally isolated from " -"system site directories. Each virtual environment has its own Python binary" -" (which matches the version of the binary that was used to create this " +"system site directories. Each virtual environment has its own Python binary " +"(which matches the version of the binary that was used to create this " "environment) and can have its own independent set of installed Python " "packages in its site directories." msgstr "" +"O módulo :mod:`venv` fornece suporte para a criação de \"ambientes virtuais" +"\" leves com seus próprios diretórios de site, opcionalmente isolados dos " +"diretórios de site do sistema. Cada ambiente virtual possui seu próprio " +"binário Python (que corresponde à versão do binário usado para criar esse " +"ambiente) e pode ter seu próprio conjunto independente de pacotes Python " +"instalados nos diretórios do site." #: ../../library/venv.rst:25 msgid "See :pep:`405` for more information about Python virtual environments." @@ -52,11 +60,13 @@ msgid "" "`Python Packaging User Guide: Creating and using virtual environments " "`__" msgstr "" +"`Python Packaging User Guide: Creating and using virtual environments " +"`__" #: ../../library/venv.rst:33 msgid "" -"The ``pyvenv`` script has been deprecated as of Python 3.6 in favor of using" -" ``python3 -m venv`` to help prevent any potential confusion as to which " +"The ``pyvenv`` script has been deprecated as of Python 3.6 in favor of using " +"``python3 -m venv`` to help prevent any potential confusion as to which " "Python interpreter a virtual environment will be based on." msgstr "" @@ -69,12 +79,14 @@ msgid "" "Creation of :ref:`virtual environments ` is done by executing the " "command ``venv``::" msgstr "" +"A criação de :ref:`ambientes virtuais ` é feita executando o " +"comando ``venv``::" #: ../../using/venv-create.inc:6 msgid "" "Running this command creates the target directory (creating any parent " -"directories that don't exist already) and places a ``pyvenv.cfg`` file in it" -" with a ``home`` key pointing to the Python installation from which the " +"directories that don't exist already) and places a ``pyvenv.cfg`` file in it " +"with a ``home`` key pointing to the Python installation from which the " "command was run. It also creates a ``bin`` (or ``Scripts`` on Windows) " "subdirectory containing a copy/symlink of the Python binary/binaries (as " "appropriate for the platform or arguments used at environment creation " @@ -86,24 +98,30 @@ msgstr "" #: ../../using/venv-create.inc:16 msgid "" "``pyvenv`` was the recommended tool for creating virtual environments for " -"Python 3.3 and 3.4, and is `deprecated in Python 3.6 " -"`_." +"Python 3.3 and 3.4, and is `deprecated in Python 3.6 `_." msgstr "" +"``pyvenv`` era a ferramenta recomendada para criar ambientes virtuais para " +"Python 3.3 e 3.4, e foi `descontinuado no Python 3.6 `_." #: ../../using/venv-create.inc:21 msgid "" "The use of ``venv`` is now recommended for creating virtual environments." msgstr "" +"O uso de ``venv`` agora é recomendado para a criação de ambientes virtuais." #: ../../using/venv-create.inc:26 msgid "On Windows, invoke the ``venv`` command as follows::" -msgstr "" +msgstr "No Windows, invoque o comando ``venv`` da seguinte forma::" #: ../../using/venv-create.inc:30 msgid "" "Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for " "your :ref:`Python installation `::" msgstr "" +"Como alternativa, se você configurou as variáveis ``PATH`` e ``PATHEXT`` " +"para a sua :ref:`instalação do Python`::" #: ../../using/venv-create.inc:35 msgid "The command, if run with ``-h``, will show the available options::" @@ -114,21 +132,27 @@ msgid "" "Installs pip by default, added the ``--without-pip`` and ``--copies`` " "options" msgstr "" -"Instala o pip por padrão, adicionadas as opções ``--without-pip`` e " -"``--copies``." +"Instala o pip por padrão, adicionadas as opções ``--without-pip`` e ``--" +"copies``." #: ../../using/venv-create.inc:71 msgid "" "In earlier versions, if the target directory already existed, an error was " "raised, unless the ``--clear`` or ``--upgrade`` option was provided." msgstr "" +"Nas versões anteriores, se o diretório de destino já existia, era levantado " +"um erro, a menos que a opção ``--clear`` ou ``--upgrade`` fosse fornecida." #: ../../using/venv-create.inc:76 msgid "" "While symlinks are supported on Windows, they are not recommended. Of " -"particular note is that double-clicking ``python.exe`` in File Explorer will" -" resolve the symlink eagerly and ignore the virtual environment." +"particular note is that double-clicking ``python.exe`` in File Explorer will " +"resolve the symlink eagerly and ignore the virtual environment." msgstr "" +"Embora haja suporte a links simbólicos no Windows, eles não são " +"recomendados. É importante notar que clicar duas vezes em ``python.exe`` no " +"Explorador de Arquivos resolverá o link simbólico com entusiasmo e ignorará " +"o ambiente virtual." #: ../../using/venv-create.inc:80 msgid "" @@ -136,12 +160,17 @@ msgid "" "packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-" "packages`` option, ``false`` otherwise." msgstr "" +"O arquivo ``pyvenv.cfg`` criado também inclui a chave ``include-system-site-" +"packages``, definida como ``true`` se ``venv`` for executado com a opção ``--" +"system-site-packages``; caso contrário, ``false``." #: ../../using/venv-create.inc:84 msgid "" "Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be " "invoked to bootstrap ``pip`` into the virtual environment." msgstr "" +"A menos que a opção ``--without-pip`` seja dada, :mod:`ensurepip` será " +"chamado para inicializar o ``pip`` no ambiente virtual." #: ../../using/venv-create.inc:87 msgid "" @@ -149,14 +178,21 @@ msgid "" "environment will be created, according to the given options, at each " "provided path." msgstr "" +"Vários caminhos podem ser dados para ``venv``, caso em que um ambiente " +"virtual idêntico será criado, de acordo com as opções fornecidas, em cada " +"caminho fornecido." #: ../../using/venv-create.inc:91 msgid "" -"Once a virtual environment has been created, it can be \"activated\" using a" -" script in the virtual environment's binary directory. The invocation of the" -" script is platform-specific (`` must be replaced by the path of the " +"Once a virtual environment has been created, it can be \"activated\" using a " +"script in the virtual environment's binary directory. The invocation of the " +"script is platform-specific (`` must be replaced by the path of the " "directory containing the virtual environment):" msgstr "" +"Depois que um ambiente virtual é criado, ele pode ser \"ativado\" usando um " +"script no diretório binário do ambiente virtual. A chamada do script é " +"específica da plataforma (`` deve ser substituído pelo caminho do " +"diretório que contém o ambiente virtual):" #: ../../using/venv-create.inc:97 msgid "Platform" @@ -164,11 +200,11 @@ msgstr "Plataforma" #: ../../using/venv-create.inc:97 msgid "Shell" -msgstr "" +msgstr "Shell" #: ../../using/venv-create.inc:97 msgid "Command to activate virtual environment" -msgstr "" +msgstr "Comando para ativar o ambiente virtual" #: ../../using/venv-create.inc:99 msgid "Posix" @@ -176,27 +212,27 @@ msgstr "" #: ../../using/venv-create.inc:99 msgid "bash/zsh" -msgstr "" +msgstr "bash/zsh" #: ../../using/venv-create.inc:99 msgid "$ source /bin/activate" -msgstr "" +msgstr "$ source /bin/activate" #: ../../using/venv-create.inc:101 msgid "fish" -msgstr "" +msgstr "fish" #: ../../using/venv-create.inc:101 msgid "$ . /bin/activate.fish" -msgstr "" +msgstr "$ . /bin/activate.fish" #: ../../using/venv-create.inc:103 msgid "csh/tcsh" -msgstr "" +msgstr "csh/tcsh" #: ../../using/venv-create.inc:103 msgid "$ source /bin/activate.csh" -msgstr "" +msgstr "$ source /bin/activate.csh" #: ../../using/venv-create.inc:105 msgid "Windows" @@ -208,15 +244,15 @@ msgstr "cmd.exe" #: ../../using/venv-create.inc:105 msgid "C:\\\\> \\\\Scripts\\\\activate.bat" -msgstr "" +msgstr "C:\\\\> \\\\Scripts\\\\activate.bat" #: ../../using/venv-create.inc:107 msgid "PowerShell" -msgstr "" +msgstr "PowerShell" #: ../../using/venv-create.inc:107 msgid "PS C:\\\\> \\\\Scripts\\\\Activate.ps1" -msgstr "" +msgstr "PS C:\\\\> \\\\Scripts\\\\Activate.ps1" #: ../../using/venv-create.inc:110 msgid "" @@ -227,6 +263,13 @@ msgid "" "scripts installed in a virtual environment should be runnable without " "activating it, and run with the virtual environment's Python automatically." msgstr "" +"Você não *precisa* especificamente ativar um ambiente; a ativação apenas " +"anexa o diretório binário do ambiente virtual ao seu caminho, para que " +"\"python\" invoque o interpretador Python do ambiente virtual e você possa " +"executar scripts instalados sem precisar usar o caminho completo. No " +"entanto, todos os scripts instalados em um ambiente virtual devem ser " +"executáveis sem ativá-lo e executados com o Python do ambiente virtual " +"automaticamente." #: ../../using/venv-create.inc:117 msgid "" @@ -234,47 +277,70 @@ msgid "" "shell. The exact mechanism is platform-specific and is an internal " "implementation detail (typically a script or shell function will be used)." msgstr "" +"Você pode desativar um ambiente virtual digitando \"deactivate\" no seu " +"shell. O mecanismo exato é específico da plataforma e é um detalhe interno " +"da implementação (normalmente, uma função de script ou shell será usada)." #: ../../using/venv-create.inc:121 msgid "``fish`` and ``csh`` activation scripts." -msgstr "" +msgstr "Scripts de ativação de ``fish`` e ``csh``." #: ../../library/venv.rst:46 msgid "" "A virtual environment is a Python environment such that the Python " -"interpreter, libraries and scripts installed into it are isolated from those" -" installed in other virtual environments, and (by default) any libraries " +"interpreter, libraries and scripts installed into it are isolated from those " +"installed in other virtual environments, and (by default) any libraries " "installed in a \"system\" Python, i.e., one which is installed as part of " "your operating system." msgstr "" +"Um ambiente virtual é um ambiente Python, de modo que o interpretador, as " +"bibliotecas e os scripts instalados nele são isolados daqueles instalados em " +"outros ambientes virtuais e (por padrão) quaisquer bibliotecas instaladas em " +"um Python do \"sistema\", ou seja, instalado como parte do seu sistema " +"operacional." #: ../../library/venv.rst:52 msgid "" "A virtual environment is a directory tree which contains Python executable " "files and other files which indicate that it is a virtual environment." msgstr "" +"Um ambiente virtual é uma árvore de diretórios que contém arquivos " +"executáveis em Python e outros arquivos que indicam que é um ambiente " +"virtual." #: ../../library/venv.rst:55 msgid "" -"Common installation tools such as setuptools_ and pip_ work as expected with" -" virtual environments. In other words, when a virtual environment is active," -" they install Python packages into the virtual environment without needing " -"to be told to do so explicitly." +"Common installation tools such as setuptools_ and pip_ work as expected with " +"virtual environments. In other words, when a virtual environment is active, " +"they install Python packages into the virtual environment without needing to " +"be told to do so explicitly." msgstr "" +"Ferramentas de instalação comuns, como setuptools_ e pip_, funcionam " +"conforme o esperado em ambientes virtuais. Em outras palavras, quando um " +"ambiente virtual está ativo, eles instalam pacotes Python no ambiente " +"virtual sem a necessidade de instruções explícitas." #: ../../library/venv.rst:60 msgid "" -"When a virtual environment is active (i.e., the virtual environment's Python" -" interpreter is running), the attributes :attr:`sys.prefix` and " -":attr:`sys.exec_prefix` point to the base directory of the virtual " -"environment, whereas :attr:`sys.base_prefix` and " -":attr:`sys.base_exec_prefix` point to the non-virtual environment Python " -"installation which was used to create the virtual environment. If a virtual " -"environment is not active, then :attr:`sys.prefix` is the same as " -":attr:`sys.base_prefix` and :attr:`sys.exec_prefix` is the same as " -":attr:`sys.base_exec_prefix` (they all point to a non-virtual environment " -"Python installation)." -msgstr "" +"When a virtual environment is active (i.e., the virtual environment's Python " +"interpreter is running), the attributes :attr:`sys.prefix` and :attr:`sys." +"exec_prefix` point to the base directory of the virtual environment, " +"whereas :attr:`sys.base_prefix` and :attr:`sys.base_exec_prefix` point to " +"the non-virtual environment Python installation which was used to create the " +"virtual environment. If a virtual environment is not active, then :attr:`sys." +"prefix` is the same as :attr:`sys.base_prefix` and :attr:`sys.exec_prefix` " +"is the same as :attr:`sys.base_exec_prefix` (they all point to a non-virtual " +"environment Python installation)." +msgstr "" +"Quando um ambiente virtual está ativo (ou seja, o interpretador Python do " +"ambiente virtual está em execução), os atributos :attr:`sys.prefix` e :attr:" +"`sys.exec_prefix` apontam para o diretório base do ambiente virtual, " +"enquanto :attr:`sys.base_prefix` e :attr:`sys.base_exec_prefix` apontam para " +"a instalação Python do ambiente não virtual que foi usada para criar o " +"ambiente virtual. Se um ambiente virtual não estiver ativo, então :attr:`sys." +"prefix` é o mesmo que :attr:`sys.base_prefix` e :attr:`sys.exec_prefix` é o " +"mesmo que :attr:`sys.base_exec_prefix` (todos eles apontam para uma " +"instalação Python de ambiente não virtual)." #: ../../library/venv.rst:71 msgid "" @@ -283,43 +349,68 @@ msgid "" "files to prevent projects being inadvertently installed outside of the " "virtual environment." msgstr "" +"Quando um ambiente virtual está ativo, todas as opções que alteram o caminho " +"da instalação serão ignoradas em todos os arquivos de configuração :mod:" +"`distutils` para impedir que projetos sejam inadvertidamente instalados fora " +"do ambiente virtual." #: ../../library/venv.rst:76 msgid "" -"When working in a command shell, users can make a virtual environment active" -" by running an ``activate`` script in the virtual environment's executables " +"When working in a command shell, users can make a virtual environment active " +"by running an ``activate`` script in the virtual environment's executables " "directory (the precise filename and command to use the file is shell-" "dependent), which prepends the virtual environment's directory for " "executables to the ``PATH`` environment variable for the running shell. " "There should be no need in other circumstances to activate a virtual " "environment; scripts installed into virtual environments have a \"shebang\" " "line which points to the virtual environment's Python interpreter. This " -"means that the script will run with that interpreter regardless of the value" -" of ``PATH``. On Windows, \"shebang\" line processing is supported if you " +"means that the script will run with that interpreter regardless of the value " +"of ``PATH``. On Windows, \"shebang\" line processing is supported if you " "have the Python Launcher for Windows installed (this was added to Python in " "3.3 - see :pep:`397` for more details). Thus, double-clicking an installed " "script in a Windows Explorer window should run the script with the correct " "interpreter without there needing to be any reference to its virtual " "environment in ``PATH``." msgstr "" +"Ao trabalhar em um shell de comando, os usuários podem ativar um ambiente " +"virtual executando um script ``activate`` no diretório de executáveis do " +"ambiente virtual (o nome do arquivo e o comando precisos para usar o arquivo " +"dependem do shell), que precede o ambiente virtual diretório para " +"executáveis ​​na variável de ambiente ``PATH`` do shell em execução. Em outras " +"circunstâncias, não há necessidade de ativar um ambiente virtual; scripts " +"instalados em ambientes virtuais têm uma linha \"shebang\" que aponta para o " +"interpretador Python do ambiente virtual. Isso significa que o script será " +"executado com esse interpretador, independentemente do valor de ``PATH``. No " +"Windows, o processamento da linha \"shebang\" é suportado se você tiver o " +"Python Launcher for Windows instalado (foi adicionado ao Python no 3.3 - " +"consulte :pep:`397` para obter mais detalhes). Portanto, clicar duas vezes " +"em um script instalado em uma janela do Explorador do Windows deve executar " +"o script com o interpretador correto, sem que seja necessário fazer " +"referência ao seu ambiente virtual em ``PATH``." #: ../../library/venv.rst:96 msgid "API" -msgstr "" +msgstr "API" #: ../../library/venv.rst:100 msgid "" "The high-level method described above makes use of a simple API which " "provides mechanisms for third-party virtual environment creators to " -"customize environment creation according to their needs, the " -":class:`EnvBuilder` class." +"customize environment creation according to their needs, the :class:" +"`EnvBuilder` class." msgstr "" +"O método de alto nível descrito acima utiliza uma API simples que fornece " +"mecanismos para que criadores de ambientes virtuais de terceiros " +"personalizem a criação do ambiente de acordo com suas necessidades, a " +"classe :class:`EnvBuilder`." #: ../../library/venv.rst:108 msgid "" "The :class:`EnvBuilder` class accepts the following keyword arguments on " "instantiation:" msgstr "" +"A classe :class:`EnvBuilder` aceita os seguintes argumentos nomeados na " +"instanciação:" #: ../../library/venv.rst:111 msgid "" @@ -327,18 +418,25 @@ msgid "" "Python site-packages should be available to the environment (defaults to " "``False``)." msgstr "" +"``system_site_packages`` -- um valor booleano indicando que os pacotes de " +"sites do sistema Python devem estar disponíveis para o ambiente (o padrão é " +"``False``)." #: ../../library/venv.rst:114 msgid "" -"``clear`` -- a Boolean value which, if true, will delete the contents of any" -" existing target directory, before creating the environment." +"``clear`` -- a Boolean value which, if true, will delete the contents of any " +"existing target directory, before creating the environment." msgstr "" +"``clear`` -- um valor booleano que, se verdadeiro, excluirá o conteúdo de " +"qualquer diretório de destino existente, antes de criar o ambiente." #: ../../library/venv.rst:117 msgid "" -"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the" -" Python binary rather than copying." +"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " +"Python binary rather than copying." msgstr "" +"``symlinks`` -- um valor booleano que indica se você deseja vincular o " +"binário Python ao invés de copiar." #: ../../library/venv.rst:120 msgid "" @@ -346,6 +444,9 @@ msgid "" "environment with the running Python - for use when that Python has been " "upgraded in-place (defaults to ``False``)." msgstr "" +"``upgrade`` -- um valor booleano que, se verdadeiro, atualizará um ambiente " +"existente com o Python em execução - para uso quando o Python tiver sido " +"atualizado no local (o padrão é ``False``)." #: ../../library/venv.rst:124 msgid "" @@ -353,65 +454,87 @@ msgid "" "the virtual environment. This uses :mod:`ensurepip` with the ``--default-" "pip`` option." msgstr "" +"``with_pip`` -- um valor booleano que, se verdadeiro, garante que o pip seja " +"instalado no ambiente virtual. Isso usa :mod:`ensurepip` com a opção ``--" +"default-pip``." #: ../../library/venv.rst:128 msgid "" "``prompt`` -- a String to be used after virtual environment is activated " -"(defaults to ``None`` which means directory name of the environment would be" -" used)." +"(defaults to ``None`` which means directory name of the environment would be " +"used)." msgstr "" +"``prompt`` -- uma String a ser usada após o ambiente virtual ser ativado (o " +"padrão é ``None``, o que significa que o nome do diretório do ambiente seria " +"usado)." #: ../../library/venv.rst:132 ../../library/venv.rst:250 msgid "Added the ``with_pip`` parameter" -msgstr "" +msgstr "Adicionado o parâmetro ``with_pip``" #: ../../library/venv.rst:135 ../../library/venv.rst:253 msgid "Added the ``prompt`` parameter" -msgstr "" +msgstr "Adicionado o parâmetro ``prompt``" #: ../../library/venv.rst:138 msgid "" "Creators of third-party virtual environment tools will be free to use the " "provided :class:`EnvBuilder` class as a base class." msgstr "" +"Os criadores de ferramentas de ambiente virtual de terceiros estarão livres " +"para usar a classe fornecida :class:`EnvBuilder` como uma classe base." #: ../../library/venv.rst:141 msgid "The returned env-builder is an object which has a method, ``create``:" -msgstr "" +msgstr "O env-builder retornado é um objeto que possui um método, ``create``:" #: ../../library/venv.rst:145 msgid "" -"Create a virtual environment by specifying the target directory (absolute or" -" relative to the current directory) which is to contain the virtual " +"Create a virtual environment by specifying the target directory (absolute or " +"relative to the current directory) which is to contain the virtual " "environment. The ``create`` method will either create the environment in " "the specified directory, or raise an appropriate exception." msgstr "" +"Cria um ambiente virtual especificando o diretório de destino (absoluto ou " +"relativo ao diretório atual) que deve conter o ambiente virtual. O método " +"``create`` cria o ambiente no diretório especificado ou levanta uma exceção " +"apropriada." #: ../../library/venv.rst:151 msgid "" -"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks" -" available for subclass customization::" +"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks " +"available for subclass customization::" msgstr "" +"O método ``create`` da classe :class:`EnvBuilder` ilustra os ganchos " +"disponíveis para personalização de subclasses::" #: ../../library/venv.rst:166 msgid "" -"Each of the methods :meth:`ensure_directories`, " -":meth:`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` " -"and :meth:`post_setup` can be overridden." +"Each of the methods :meth:`ensure_directories`, :meth:" +"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :" +"meth:`post_setup` can be overridden." msgstr "" +"Cada um dos métodos :meth:`ensure_directories`, :meth:" +"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` e :meth:" +"`post_setup` pode ser substituído." #: ../../library/venv.rst:172 msgid "" -"Creates the environment directory and all necessary directories, and returns" -" a context object. This is just a holder for attributes (such as paths), " -"for use by the other methods. The directories are allowed to exist already, " -"as long as either ``clear`` or ``upgrade`` were specified to allow operating" -" on an existing environment directory." +"Creates the environment directory and all necessary directories, and returns " +"a context object. This is just a holder for attributes (such as paths), for " +"use by the other methods. The directories are allowed to exist already, as " +"long as either ``clear`` or ``upgrade`` were specified to allow operating on " +"an existing environment directory." msgstr "" +"Cria o diretório do ambiente e todos os diretórios necessários e retorna um " +"objeto de contexto. Este é apenas um suporte para atributos (como caminhos), " +"para uso pelos outros métodos. Os diretórios já podem existir, desde que " +"``clear`` ou ``upgrade`` tenham sido especificados para permitir a operação " +"em um diretório de ambiente existente." #: ../../library/venv.rst:180 msgid "Creates the ``pyvenv.cfg`` configuration file in the environment." -msgstr "" +msgstr "Cria o arquivo de configuração ``pyvenv.cfg`` no ambiente." #: ../../library/venv.rst:184 msgid "" @@ -420,12 +543,18 @@ msgid "" "``python`` and ``python3`` will be created pointing to that executable, " "unless files with those names already exist." msgstr "" +"Cria uma cópia ou link simbólico para o executável Python no ambiente. Nos " +"sistemas POSIX, se um executável específico ``python3.x`` foi usado, links " +"simbólicos para ``python`` e ``python3`` serão criados apontando para esse " +"executável, a menos que já existam arquivos com esses nomes." #: ../../library/venv.rst:191 msgid "" "Installs activation scripts appropriate to the platform into the virtual " "environment." msgstr "" +"Instala scripts de ativação apropriados para a plataforma no ambiente " +"virtual." #: ../../library/venv.rst:196 msgid "" @@ -433,20 +562,30 @@ msgid "" "to pre-install packages in the virtual environment or perform other post-" "creation steps." msgstr "" +"Um método de espaço reservado que pode ser substituído em implementações de " +"terceiros para pré-instalar pacotes no ambiente virtual ou executar outras " +"etapas pós-criação." #: ../../library/venv.rst:200 msgid "" -"Windows now uses redirector scripts for ``python[w].exe`` instead of copying" -" the actual binaries. In 3.7.2 only :meth:`setup_python` does nothing unless" -" running from a build in the source tree." +"Windows now uses redirector scripts for ``python[w].exe`` instead of copying " +"the actual binaries. In 3.7.2 only :meth:`setup_python` does nothing unless " +"running from a build in the source tree." msgstr "" +"O Windows agora usa scripts redirecionadores para ``python[w].exe`` em vez " +"de copiar os binários reais. No 3.7.2, somente :meth:`setup_python` não faz " +"nada a menos que seja executado a partir de uma construção na árvore de " +"origem." #: ../../library/venv.rst:205 msgid "" "Windows copies the redirector scripts as part of :meth:`setup_python` " -"instead of :meth:`setup_scripts`. This was not the case in 3.7.2. When using" -" symlinks, the original executables will be linked." +"instead of :meth:`setup_scripts`. This was not the case in 3.7.2. When using " +"symlinks, the original executables will be linked." msgstr "" +"O Windows copia os scripts redirecionadores como parte do :meth:" +"`setup_python` em vez de :meth:`setup_scripts`. Este não foi o caso em " +"3.7.2. Ao usar links simbólicos, os executáveis originais serão vinculados." #: ../../library/venv.rst:210 msgid "" @@ -454,75 +593,101 @@ msgid "" "called from :meth:`setup_scripts` or :meth:`post_setup` in subclasses to " "assist in installing custom scripts into the virtual environment." msgstr "" +"Além disso, :class:`EnvBuilder` fornece este método utilitário que pode ser " +"chamado de :meth:`setup_scripts` ou :meth:`post_setup` nas subclasses para " +"ajudar na instalação de scripts personalizados no ambiente virtual." #: ../../library/venv.rst:216 msgid "" -"*path* is the path to a directory that should contain subdirectories " -"\"common\", \"posix\", \"nt\", each containing scripts destined for the bin " +"*path* is the path to a directory that should contain subdirectories \"common" +"\", \"posix\", \"nt\", each containing scripts destined for the bin " "directory in the environment. The contents of \"common\" and the directory " "corresponding to :data:`os.name` are copied after some text replacement of " "placeholders:" msgstr "" +"*path* é o caminho para um diretório que deve conter subdiretórios \"common" +"\", \"posix\" e \"nt\", cada um contendo scripts destinados ao diretório bin " +"no ambiente. O conteúdo de \"common\" e o diretório correspondente a :data:" +"`os.name` são copiados após alguma substituição de texto dos espaços " +"reservados:" #: ../../library/venv.rst:222 msgid "" "``__VENV_DIR__`` is replaced with the absolute path of the environment " "directory." msgstr "" +"``__VENV_DIR__`` é substituído pelo caminho absoluto do diretório do " +"ambiente." #: ../../library/venv.rst:225 msgid "" "``__VENV_NAME__`` is replaced with the environment name (final path segment " "of environment directory)." msgstr "" +"``__VENV_NAME__`` é substituído pelo nome do ambiente (segmento do caminho " +"final do diretório do ambiente)." #: ../../library/venv.rst:228 msgid "" "``__VENV_PROMPT__`` is replaced with the prompt (the environment name " "surrounded by parentheses and with a following space)" msgstr "" +"``__VENV_PROMPT__`` é substituído pelo prompt (o nome do ambiente entre " +"parênteses e com o seguinte espaço)" #: ../../library/venv.rst:231 msgid "" -"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either" -" ``bin`` or ``Scripts``)." +"``__VENV_BIN_NAME__`` is replaced with the name of the bin directory (either " +"``bin`` or ``Scripts``)." msgstr "" +"``__VENV_BIN_NAME__`` é substituído pelo nome do diretório bin (``bin`` ou " +"``Scripts``)." #: ../../library/venv.rst:234 msgid "" "``__VENV_PYTHON__`` is replaced with the absolute path of the environment's " "executable." msgstr "" +"``__VENV_PYTHON__`` é substituído pelo caminho absoluto do executável do " +"ambiente." #: ../../library/venv.rst:237 msgid "" "The directories are allowed to exist (for when an existing environment is " "being upgraded)." msgstr "" +"É permitido que os diretórios existam (para quando um ambiente existente " +"estiver sendo atualizado)." #: ../../library/venv.rst:240 msgid "There is also a module-level convenience function:" -msgstr "" +msgstr "Há também uma função de conveniência no nível do módulo:" #: ../../library/venv.rst:245 msgid "" -"Create an :class:`EnvBuilder` with the given keyword arguments, and call its" -" :meth:`~EnvBuilder.create` method with the *env_dir* argument." +"Create an :class:`EnvBuilder` with the given keyword arguments, and call " +"its :meth:`~EnvBuilder.create` method with the *env_dir* argument." msgstr "" +"Cria um :class:`EnvBuilder` com os argumentos nomeados fornecidos e chame " +"seu método :meth:`~EnvBuilder.create` com o argumento *env_dir*." #: ../../library/venv.rst:257 msgid "An example of extending ``EnvBuilder``" -msgstr "" +msgstr "Um exemplo de extensão de ``EnvBuilder``" #: ../../library/venv.rst:259 msgid "" -"The following script shows how to extend :class:`EnvBuilder` by implementing" -" a subclass which installs setuptools and pip into a created virtual " +"The following script shows how to extend :class:`EnvBuilder` by implementing " +"a subclass which installs setuptools and pip into a created virtual " "environment::" msgstr "" +"O script a seguir mostra como estender :class:`EnvBuilder` implementando uma " +"subclasse que instala setuptools e pip em um ambiente virtual criado::" #: ../../library/venv.rst:478 msgid "" -"This script is also available for download `online " -"`_." +"This script is also available for download `online `_." msgstr "" +"Esse script também está disponível para download `online `_." diff --git a/library/warnings.po b/library/warnings.po index f53ef01c5..f58b4c8c8 100644 --- a/library/warnings.po +++ b/library/warnings.po @@ -1,20 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Willian C Lopes , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:12+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,16 +36,16 @@ msgstr "**Código Fonte:** :source:`Lib/warnings.py`" msgid "" "Warning messages are typically issued in situations where it is useful to " "alert the user of some condition in a program, where that condition " -"(normally) doesn't warrant raising an exception and terminating the program." -" For example, one might want to issue a warning when a program uses an " -"obsolete module." +"(normally) doesn't warrant raising an exception and terminating the " +"program. For example, one might want to issue a warning when a program uses " +"an obsolete module." msgstr "" #: ../../library/warnings.rst:18 msgid "" "Python programmers issue warnings by calling the :func:`warn` function " -"defined in this module. (C programmers use :c:func:`PyErr_WarnEx`; see " -":ref:`exceptionhandling` for details)." +"defined in this module. (C programmers use :c:func:`PyErr_WarnEx`; see :ref:" +"`exceptionhandling` for details)." msgstr "" #: ../../library/warnings.rst:22 @@ -51,31 +54,31 @@ msgid "" "disposition can be changed flexibly, from ignoring all warnings to turning " "them into exceptions. The disposition of warnings can vary based on the " "warning category (see below), the text of the warning message, and the " -"source location where it is issued. Repetitions of a particular warning for" -" the same source location are typically suppressed." +"source location where it is issued. Repetitions of a particular warning for " +"the same source location are typically suppressed." msgstr "" #: ../../library/warnings.rst:29 msgid "" "There are two stages in warning control: first, each time a warning is " "issued, a determination is made whether a message should be issued or not; " -"next, if a message is to be issued, it is formatted and printed using a " -"user-settable hook." +"next, if a message is to be issued, it is formatted and printed using a user-" +"settable hook." msgstr "" #: ../../library/warnings.rst:33 msgid "" "The determination whether to issue a warning message is controlled by the " -"warning filter, which is a sequence of matching rules and actions. Rules can" -" be added to the filter by calling :func:`filterwarnings` and reset to its " +"warning filter, which is a sequence of matching rules and actions. Rules can " +"be added to the filter by calling :func:`filterwarnings` and reset to its " "default state by calling :func:`resetwarnings`." msgstr "" #: ../../library/warnings.rst:38 msgid "" "The printing of warning messages is done by calling :func:`showwarning`, " -"which may be overridden; the default implementation of this function formats" -" the message by calling :func:`formatwarning`, which is also available for " +"which may be overridden; the default implementation of this function formats " +"the message by calling :func:`formatwarning`, which is also available for " "use by custom implementations." msgstr "" @@ -91,21 +94,21 @@ msgstr "" #: ../../library/warnings.rst:53 msgid "" -"There are a number of built-in exceptions that represent warning categories." -" This categorization is useful to be able to filter out groups of warnings." +"There are a number of built-in exceptions that represent warning categories. " +"This categorization is useful to be able to filter out groups of warnings." msgstr "" #: ../../library/warnings.rst:56 msgid "" -"While these are technically :ref:`built-in exceptions `, they are documented here, because conceptually they belong " -"to the warnings mechanism." +"While these are technically :ref:`built-in exceptions `, they are documented here, because conceptually they belong to " +"the warnings mechanism." msgstr "" #: ../../library/warnings.rst:60 msgid "" -"User code can define additional warning categories by subclassing one of the" -" standard warning categories. A warning category must always be a subclass " +"User code can define additional warning categories by subclassing one of the " +"standard warning categories. A warning category must always be a subclass " "of the :exc:`Warning` class." msgstr "" @@ -123,17 +126,17 @@ msgstr "Description (descrição)" #: ../../library/warnings.rst:71 msgid ":exc:`Warning`" -msgstr "" +msgstr ":exc:`Warning`" #: ../../library/warnings.rst:71 msgid "" -"This is the base class of all warning category classes. It is a subclass of" -" :exc:`Exception`." +"This is the base class of all warning category classes. It is a subclass " +"of :exc:`Exception`." msgstr "" #: ../../library/warnings.rst:75 msgid ":exc:`UserWarning`" -msgstr "" +msgstr ":exc:`UserWarning`" #: ../../library/warnings.rst:75 msgid "The default category for :func:`warn`." @@ -141,18 +144,18 @@ msgstr "" #: ../../library/warnings.rst:77 msgid ":exc:`DeprecationWarning`" -msgstr "" +msgstr ":exc:`DeprecationWarning`" #: ../../library/warnings.rst:77 msgid "" -"Base category for warnings about deprecated features when those warnings are" -" intended for other Python developers (ignored by default, unless triggered " +"Base category for warnings about deprecated features when those warnings are " +"intended for other Python developers (ignored by default, unless triggered " "by code in ``__main__``)." msgstr "" #: ../../library/warnings.rst:82 msgid ":exc:`SyntaxWarning`" -msgstr "" +msgstr ":exc:`SyntaxWarning`" #: ../../library/warnings.rst:82 msgid "Base category for warnings about dubious syntactic features." @@ -160,7 +163,7 @@ msgstr "" #: ../../library/warnings.rst:85 msgid ":exc:`RuntimeWarning`" -msgstr "" +msgstr ":exc:`RuntimeWarning`" #: ../../library/warnings.rst:85 msgid "Base category for warnings about dubious runtime features." @@ -168,17 +171,17 @@ msgstr "" #: ../../library/warnings.rst:88 msgid ":exc:`FutureWarning`" -msgstr "" +msgstr ":exc:`FutureWarning`" #: ../../library/warnings.rst:88 msgid "" -"Base category for warnings about deprecated features when those warnings are" -" intended for end users of applications that are written in Python." +"Base category for warnings about deprecated features when those warnings are " +"intended for end users of applications that are written in Python." msgstr "" #: ../../library/warnings.rst:93 msgid ":exc:`PendingDeprecationWarning`" -msgstr "" +msgstr ":exc:`PendingDeprecationWarning`" #: ../../library/warnings.rst:93 msgid "" @@ -188,7 +191,7 @@ msgstr "" #: ../../library/warnings.rst:97 msgid ":exc:`ImportWarning`" -msgstr "" +msgstr ":exc:`ImportWarning`" #: ../../library/warnings.rst:97 msgid "" @@ -198,7 +201,7 @@ msgstr "" #: ../../library/warnings.rst:101 msgid ":exc:`UnicodeWarning`" -msgstr "" +msgstr ":exc:`UnicodeWarning`" #: ../../library/warnings.rst:101 msgid "Base category for warnings related to Unicode." @@ -215,7 +218,7 @@ msgstr "" #: ../../library/warnings.rst:107 msgid ":exc:`ResourceWarning`" -msgstr "" +msgstr ":exc:`ResourceWarning`" #: ../../library/warnings.rst:107 msgid "Base category for warnings related to resource usage." @@ -262,7 +265,7 @@ msgstr "" #: ../../library/warnings.rst:138 msgid "``\"default\"``" -msgstr "" +msgstr "``\"default\"``" #: ../../library/warnings.rst:138 msgid "" @@ -272,7 +275,7 @@ msgstr "" #: ../../library/warnings.rst:142 msgid "``\"error\"``" -msgstr "" +msgstr "``\"error\"``" #: ../../library/warnings.rst:142 msgid "turn matching warnings into exceptions" @@ -280,7 +283,7 @@ msgstr "" #: ../../library/warnings.rst:144 msgid "``\"ignore\"``" -msgstr "" +msgstr "``\"ignore\"``" #: ../../library/warnings.rst:144 msgid "never print matching warnings" @@ -288,7 +291,7 @@ msgstr "" #: ../../library/warnings.rst:146 msgid "``\"always\"``" -msgstr "" +msgstr "``\"always\"``" #: ../../library/warnings.rst:146 msgid "always print matching warnings" @@ -296,7 +299,7 @@ msgstr "" #: ../../library/warnings.rst:148 msgid "``\"module\"``" -msgstr "" +msgstr "``\"module\"``" #: ../../library/warnings.rst:148 msgid "" @@ -306,7 +309,7 @@ msgstr "" #: ../../library/warnings.rst:152 msgid "``\"once\"``" -msgstr "" +msgstr "``\"once\"``" #: ../../library/warnings.rst:152 msgid "" @@ -340,9 +343,8 @@ msgstr "" #: ../../library/warnings.rst:169 msgid "" -"Since the :exc:`Warning` class is derived from the built-in :exc:`Exception`" -" class, to turn a warning into an error we simply raise " -"``category(message)``." +"Since the :exc:`Warning` class is derived from the built-in :exc:`Exception` " +"class, to turn a warning into an error we simply raise ``category(message)``." msgstr "" #: ../../library/warnings.rst:172 @@ -358,8 +360,8 @@ msgstr "" #: ../../library/warnings.rst:181 msgid "" "The warnings filter is initialized by :option:`-W` options passed to the " -"Python interpreter command line and the :envvar:`PYTHONWARNINGS` environment" -" variable. The interpreter saves the arguments for all supplied entries " +"Python interpreter command line and the :envvar:`PYTHONWARNINGS` environment " +"variable. The interpreter saves the arguments for all supplied entries " "without interpretation in ``sys.warnoptions``; the :mod:`warnings` module " "parses these when it is first imported (invalid options are ignored, after " "printing a message to ``sys.stderr``)." @@ -374,11 +376,11 @@ msgstr "" #: ../../library/warnings.rst:193 msgid "" "The meaning of each of these fields is as described in :ref:`warning-" -"filter`. When listing multiple filters on a single line (as for " -":envvar:`PYTHONWARNINGS`), the individual filters are separated by " -"commas,and the filters listed later take precedence over those listed before" -" them (as they're applied left-to-right, and the most recently applied " -"filters take precedence over earlier ones)." +"filter`. When listing multiple filters on a single line (as for :envvar:" +"`PYTHONWARNINGS`), the individual filters are separated by commas,and the " +"filters listed later take precedence over those listed before them (as " +"they're applied left-to-right, and the most recently applied filters take " +"precedence over earlier ones)." msgstr "" #: ../../library/warnings.rst:200 @@ -394,8 +396,8 @@ msgstr "" #: ../../library/warnings.rst:219 msgid "" -"By default, Python installs several warning filters, which can be overridden" -" by the :option:`-W` command-line option, the :envvar:`PYTHONWARNINGS` " +"By default, Python installs several warning filters, which can be overridden " +"by the :option:`-W` command-line option, the :envvar:`PYTHONWARNINGS` " "environment variable and calls to :func:`filterwarnings`." msgstr "" @@ -411,8 +413,8 @@ msgstr "" #: ../../library/warnings.rst:234 msgid "" -":exc:`DeprecationWarning` is now ignored by default in addition to " -":exc:`PendingDeprecationWarning`." +":exc:`DeprecationWarning` is now ignored by default in addition to :exc:" +"`PendingDeprecationWarning`." msgstr "" #: ../../library/warnings.rst:238 @@ -436,10 +438,10 @@ msgstr "" msgid "" "Developers of applications written in Python may wish to hide *all* Python " "level warnings from their users by default, and only display them when " -"running tests or otherwise working on the application. The " -":data:`sys.warnoptions` attribute used to pass filter configurations to the " -"interpreter can be used as a marker to indicate whether or not warnings " -"should be disabled::" +"running tests or otherwise working on the application. The :data:`sys." +"warnoptions` attribute used to pass filter configurations to the interpreter " +"can be used as a marker to indicate whether or not warnings should be " +"disabled::" msgstr "" #: ../../library/warnings.rst:265 @@ -452,8 +454,8 @@ msgstr "" #: ../../library/warnings.rst:276 msgid "" "Finally, developers of interactive shells that run user code in a namespace " -"other than ``__main__`` are advised to ensure that :exc:`DeprecationWarning`" -" messages are made visible by default, using code like the following (where " +"other than ``__main__`` are advised to ensure that :exc:`DeprecationWarning` " +"messages are made visible by default, using code like the following (where " "``user_ns`` is the module used to execute code entered interactively)::" msgstr "" @@ -475,8 +477,8 @@ msgid "" "allows you to use known-deprecated code without having to see the warning " "while not suppressing the warning for other code that might not be aware of " "its use of deprecated code. Note: this can only be guaranteed in a single-" -"threaded application. If two or more threads use the :class:`catch_warnings`" -" context manager at the same time, the behavior is undefined." +"threaded application. If two or more threads use the :class:`catch_warnings` " +"context manager at the same time, the behavior is undefined." msgstr "" #: ../../library/warnings.rst:317 @@ -502,21 +504,20 @@ msgstr "" #: ../../library/warnings.rst:345 msgid "" -"Once the context manager exits, the warnings filter is restored to its state" -" when the context was entered. This prevents tests from changing the " -"warnings filter in unexpected ways between tests and leading to " -"indeterminate test results. The :func:`showwarning` function in the module " -"is also restored to its original value. Note: this can only be guaranteed " -"in a single-threaded application. If two or more threads use the " -":class:`catch_warnings` context manager at the same time, the behavior is " -"undefined." +"Once the context manager exits, the warnings filter is restored to its state " +"when the context was entered. This prevents tests from changing the warnings " +"filter in unexpected ways between tests and leading to indeterminate test " +"results. The :func:`showwarning` function in the module is also restored to " +"its original value. Note: this can only be guaranteed in a single-threaded " +"application. If two or more threads use the :class:`catch_warnings` context " +"manager at the same time, the behavior is undefined." msgstr "" #: ../../library/warnings.rst:353 msgid "" "When testing multiple operations that raise the same kind of warning, it is " -"important to test them in a manner that confirms each operation is raising a" -" new warning (e.g. set warnings to be raised as exceptions and check the " +"important to test them in a manner that confirms each operation is raising a " +"new warning (e.g. set warnings to be raised as exceptions and check the " "operations raise exceptions, check that the length of the warning list " "continues to increase after each operation, or else delete the previous " "entries from the warnings list before each new operation)." @@ -535,8 +536,8 @@ msgstr "" #: ../../library/warnings.rst:369 msgid "" -"Notably, this \"ignored by default\" list includes :exc:`DeprecationWarning`" -" (for every module except ``__main__``), which means developers should make " +"Notably, this \"ignored by default\" list includes :exc:`DeprecationWarning` " +"(for every module except ``__main__``), which means developers should make " "sure to test their code with typically ignored warnings made visible in " "order to receive timely notifications of future breaking API changes " "(whether in the standard library or third party packages)." @@ -545,8 +546,8 @@ msgstr "" #: ../../library/warnings.rst:375 msgid "" "In the ideal case, the code will have a suitable test suite, and the test " -"runner will take care of implicitly enabling all warnings when running tests" -" (the test runner provided by the :mod:`unittest` module does this)." +"runner will take care of implicitly enabling all warnings when running tests " +"(the test runner provided by the :mod:`unittest` module does this)." msgstr "" #: ../../library/warnings.rst:379 @@ -556,9 +557,9 @@ msgid "" "shorthand for :option:`!-W default`) or setting ``PYTHONWARNINGS=default`` " "in the environment. This enables default handling for all warnings, " "including those that are ignored by default. To change what action is taken " -"for encountered warnings you can change what argument is passed to " -":option:`-W` (e.g. :option:`!-W error`). See the :option:`-W` flag for more " -"details on what is possible." +"for encountered warnings you can change what argument is passed to :option:`-" +"W` (e.g. :option:`!-W error`). See the :option:`-W` flag for more details on " +"what is possible." msgstr "" #: ../../library/warnings.rst:392 @@ -569,9 +570,9 @@ msgstr "" msgid "" "Issue a warning, or maybe ignore it or raise an exception. The *category* " "argument, if given, must be a warning category class (see above); it " -"defaults to :exc:`UserWarning`. Alternatively *message* can be a " -":exc:`Warning` instance, in which case *category* will be ignored and " -"``message.__class__`` will be used. In this case the message text will be " +"defaults to :exc:`UserWarning`. Alternatively *message* can be a :exc:" +"`Warning` instance, in which case *category* will be ignored and ``message." +"__class__`` will be used. In this case the message text will be " "``str(message)``. This function raises an exception if the particular " "warning issued is changed into an error by the warnings filter see above. " "The *stacklevel* argument can be used by wrapper functions written in " @@ -580,15 +581,15 @@ msgstr "" #: ../../library/warnings.rst:409 msgid "" -"This makes the warning refer to :func:`deprecation`'s caller, rather than to" -" the source of :func:`deprecation` itself (since the latter would defeat the" -" purpose of the warning message)." +"This makes the warning refer to :func:`deprecation`'s caller, rather than to " +"the source of :func:`deprecation` itself (since the latter would defeat the " +"purpose of the warning message)." msgstr "" #: ../../library/warnings.rst:413 ../../library/warnings.rst:436 msgid "" -"*source*, if supplied, is the destroyed object which emitted a " -":exc:`ResourceWarning`." +"*source*, if supplied, is the destroyed object which emitted a :exc:" +"`ResourceWarning`." msgstr "" #: ../../library/warnings.rst:416 @@ -600,11 +601,11 @@ msgid "" "This is a low-level interface to the functionality of :func:`warn`, passing " "in explicitly the message, category, filename and line number, and " "optionally the module name and the registry (which should be the " -"``__warningregistry__`` dictionary of the module). The module name defaults" -" to the filename with ``.py`` stripped; if no registry is passed, the " -"warning is never suppressed. *message* must be a string and *category* a " -"subclass of :exc:`Warning` or *message* may be a :exc:`Warning` instance, in" -" which case *category* will be ignored." +"``__warningregistry__`` dictionary of the module). The module name defaults " +"to the filename with ``.py`` stripped; if no registry is passed, the warning " +"is never suppressed. *message* must be a string and *category* a subclass " +"of :exc:`Warning` or *message* may be a :exc:`Warning` instance, in which " +"case *category* will be ignored." msgstr "" #: ../../library/warnings.rst:431 @@ -624,18 +625,18 @@ msgid "" "Write a warning to a file. The default implementation calls " "``formatwarning(message, category, filename, lineno, line)`` and writes the " "resulting string to *file*, which defaults to ``sys.stderr``. You may " -"replace this function with any callable by assigning to " -"``warnings.showwarning``. *line* is a line of source code to be included in " -"the warning message; if *line* is not supplied, :func:`showwarning` will try" -" to read the line specified by *filename* and *lineno*." +"replace this function with any callable by assigning to ``warnings." +"showwarning``. *line* is a line of source code to be included in the warning " +"message; if *line* is not supplied, :func:`showwarning` will try to read the " +"line specified by *filename* and *lineno*." msgstr "" #: ../../library/warnings.rst:456 msgid "" "Format a warning the standard way. This returns a string which may contain " -"embedded newlines and ends in a newline. *line* is a line of source code to" -" be included in the warning message; if *line* is not supplied, " -":func:`formatwarning` will try to read the line specified by *filename* and " +"embedded newlines and ends in a newline. *line* is a line of source code to " +"be included in the warning message; if *line* is not supplied, :func:" +"`formatwarning` will try to read the line specified by *filename* and " "*lineno*." msgstr "" @@ -654,9 +655,9 @@ msgstr "" #: ../../library/warnings.rst:477 msgid "" "Insert a simple entry into the list of :ref:`warnings filter specifications " -"`. The meaning of the function parameters is as for " -":func:`filterwarnings`, but regular expressions are not needed as the filter" -" inserted always matches any message in any module as long as the category " +"`. The meaning of the function parameters is as for :func:" +"`filterwarnings`, but regular expressions are not needed as the filter " +"inserted always matches any message in any module as long as the category " "and line number match." msgstr "" @@ -674,21 +675,19 @@ msgstr "" #: ../../library/warnings.rst:496 msgid "" "A context manager that copies and, upon exit, restores the warnings filter " -"and the :func:`showwarning` function. If the *record* argument is " -":const:`False` (the default) the context manager returns :class:`None` on " -"entry. If *record* is :const:`True`, a list is returned that is " -"progressively populated with objects as seen by a custom :func:`showwarning`" -" function (which also suppresses output to ``sys.stdout``). Each object in " -"the list has attributes with the same names as the arguments to " -":func:`showwarning`." +"and the :func:`showwarning` function. If the *record* argument is :const:" +"`False` (the default) the context manager returns :class:`None` on entry. If " +"*record* is :const:`True`, a list is returned that is progressively " +"populated with objects as seen by a custom :func:`showwarning` function " +"(which also suppresses output to ``sys.stdout``). Each object in the list " +"has attributes with the same names as the arguments to :func:`showwarning`." msgstr "" #: ../../library/warnings.rst:505 msgid "" -"The *module* argument takes a module that will be used instead of the module" -" returned when you import :mod:`warnings` whose filter will be protected. " -"This argument exists primarily for testing the :mod:`warnings` module " -"itself." +"The *module* argument takes a module that will be used instead of the module " +"returned when you import :mod:`warnings` whose filter will be protected. " +"This argument exists primarily for testing the :mod:`warnings` module itself." msgstr "" #: ../../library/warnings.rst:512 diff --git a/library/wave.po b/library/wave.po index c2b1a9f02..15f33a1cb 100644 --- a/library/wave.po +++ b/library/wave.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,7 +51,7 @@ msgstr "" #: ../../library/wave.rst:26 msgid "``'rb'``" -msgstr "" +msgstr "``'rb'``" #: ../../library/wave.rst:26 msgid "Read only mode." @@ -57,7 +59,7 @@ msgstr "" #: ../../library/wave.rst:29 msgid "``'wb'``" -msgstr "" +msgstr "``'wb'``" #: ../../library/wave.rst:29 msgid "Write only mode." @@ -84,10 +86,10 @@ msgstr "" #: ../../library/wave.rst:42 msgid "" -"The :func:`.open` function may be used in a :keyword:`with` statement. When" -" the :keyword:`!with` block completes, the :meth:`Wave_read.close() " -"` or :meth:`Wave_write.close() " -"` method is called." +"The :func:`.open` function may be used in a :keyword:`with` statement. When " +"the :keyword:`!with` block completes, the :meth:`Wave_read.close() ` or :meth:`Wave_write.close() ` " +"method is called." msgstr "" #: ../../library/wave.rst:47 ../../library/wave.rst:170 @@ -148,12 +150,12 @@ msgstr "" #: ../../library/wave.rst:110 msgid "" "Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " -"framerate, nframes, comptype, compname)``, equivalent to output of the " -":meth:`get\\*` methods." +"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:" +"`get\\*` methods." msgstr "" "Retorna a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " -"framerate, nframes, comptype, compname)``, equivalente à saída dos métodos " -":meth:`get\\*`." +"framerate, nframes, comptype, compname)``, equivalente à saída dos métodos :" +"meth:`get\\*`." #: ../../library/wave.rst:117 msgid "" @@ -166,8 +168,8 @@ msgstr "" #: ../../library/wave.rst:124 msgid "" -"The following two methods are defined for compatibility with the :mod:`aifc`" -" module, and don't do anything interesting." +"The following two methods are defined for compatibility with the :mod:`aifc` " +"module, and don't do anything interesting." msgstr "" #: ../../library/wave.rst:130 @@ -201,28 +203,27 @@ msgid "" "For seekable output streams, the ``wave`` header will automatically be " "updated to reflect the number of frames actually written. For unseekable " "streams, the *nframes* value must be accurate when the first frame data is " -"written. An accurate *nframes* value can be achieved either by calling " -":meth:`~Wave_write.setnframes` or :meth:`~Wave_write.setparams` with the " +"written. An accurate *nframes* value can be achieved either by calling :" +"meth:`~Wave_write.setnframes` or :meth:`~Wave_write.setparams` with the " "number of frames that will be written before :meth:`~Wave_write.close` is " "called and then using :meth:`~Wave_write.writeframesraw` to write the frame " "data, or by calling :meth:`~Wave_write.writeframes` with all of the frame " -"data to be written. In the latter case :meth:`~Wave_write.writeframes` will" -" calculate the number of frames in the data and set *nframes* accordingly " +"data to be written. In the latter case :meth:`~Wave_write.writeframes` will " +"calculate the number of frames in the data and set *nframes* accordingly " "before writing the frame data." msgstr "" #: ../../library/wave.rst:168 msgid "" -"Wave_write objects, as returned by :func:`.open`, have the following " -"methods:" +"Wave_write objects, as returned by :func:`.open`, have the following methods:" msgstr "" #: ../../library/wave.rst:176 msgid "" -"Make sure *nframes* is correct, and close the file if it was opened by " -":mod:`wave`. This method is called upon object collection. It will raise " -"an exception if the output stream is not seekable and *nframes* does not " -"match the number of frames actually written." +"Make sure *nframes* is correct, and close the file if it was opened by :mod:" +"`wave`. This method is called upon object collection. It will raise an " +"exception if the output stream is not seekable and *nframes* does not match " +"the number of frames actually written." msgstr "" #: ../../library/wave.rst:184 @@ -256,15 +257,15 @@ msgstr "" #: ../../library/wave.rst:216 msgid "" -"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype," -" compname)``, with values valid for the :meth:`set\\*` methods. Sets all " +"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, " +"compname)``, with values valid for the :meth:`set\\*` methods. Sets all " "parameters." msgstr "" #: ../../library/wave.rst:223 msgid "" -"Return current position in the file, with the same disclaimer for the " -":meth:`Wave_read.tell` and :meth:`Wave_read.setpos` methods." +"Return current position in the file, with the same disclaimer for the :meth:" +"`Wave_read.tell` and :meth:`Wave_read.setpos` methods." msgstr "" #: ../../library/wave.rst:229 @@ -285,7 +286,7 @@ msgstr "" #: ../../library/wave.rst:246 msgid "" -"Note that it is invalid to set any parameters after calling " -":meth:`writeframes` or :meth:`writeframesraw`, and any attempt to do so will" -" raise :exc:`wave.Error`." +"Note that it is invalid to set any parameters after calling :meth:" +"`writeframes` or :meth:`writeframesraw`, and any attempt to do so will " +"raise :exc:`wave.Error`." msgstr "" diff --git a/library/weakref.po b/library/weakref.po index 6c36088e6..003525289 100644 --- a/library/weakref.po +++ b/library/weakref.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # And Past , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-16 12:00+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: And Past , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,17 +47,17 @@ msgstr "" #: ../../library/weakref.rst:25 msgid "" "A weak reference to an object is not enough to keep the object alive: when " -"the only remaining references to a referent are weak references, " -":term:`garbage collection` is free to destroy the referent and reuse its " -"memory for something else. However, until the object is actually destroyed " -"the weak reference may return the object even if there are no strong " -"references to it." +"the only remaining references to a referent are weak references, :term:" +"`garbage collection` is free to destroy the referent and reuse its memory " +"for something else. However, until the object is actually destroyed the " +"weak reference may return the object even if there are no strong references " +"to it." msgstr "" #: ../../library/weakref.rst:31 msgid "" -"A primary use for weak references is to implement caches or mappings holding" -" large objects, where it's desired that a large object not be kept alive " +"A primary use for weak references is to implement caches or mappings holding " +"large objects, where it's desired that a large object not be kept alive " "solely because it appears in a cache or mapping." msgstr "" @@ -65,13 +66,13 @@ msgid "" "For example, if you have a number of large binary image objects, you may " "wish to associate a name with each. If you used a Python dictionary to map " "names to images, or images to names, the image objects would remain alive " -"just because they appeared as values or keys in the dictionaries. The " -":class:`WeakKeyDictionary` and :class:`WeakValueDictionary` classes supplied" -" by the :mod:`weakref` module are an alternative, using weak references to " +"just because they appeared as values or keys in the dictionaries. The :" +"class:`WeakKeyDictionary` and :class:`WeakValueDictionary` classes supplied " +"by the :mod:`weakref` module are an alternative, using weak references to " "construct mappings that don't keep objects alive solely because they appear " -"in the mapping objects. If, for example, an image object is a value in a " -":class:`WeakValueDictionary`, then when the last remaining references to " -"that image object are the weak references held by weak mappings, garbage " +"in the mapping objects. If, for example, an image object is a value in a :" +"class:`WeakValueDictionary`, then when the last remaining references to that " +"image object are the weak references held by weak mappings, garbage " "collection can reclaim the object, and its corresponding entries in weak " "mappings are simply deleted." msgstr "" @@ -81,9 +82,9 @@ msgid "" ":class:`WeakKeyDictionary` and :class:`WeakValueDictionary` use weak " "references in their implementation, setting up callback functions on the " "weak references that notify the weak dictionaries when a key or value has " -"been reclaimed by garbage collection. :class:`WeakSet` implements the " -":class:`set` interface, but keeps weak references to its elements, just like" -" a :class:`WeakKeyDictionary` does." +"been reclaimed by garbage collection. :class:`WeakSet` implements the :" +"class:`set` interface, but keeps weak references to its elements, just like " +"a :class:`WeakKeyDictionary` does." msgstr "" #: ../../library/weakref.rst:55 @@ -97,8 +98,8 @@ msgstr "" #: ../../library/weakref.rst:61 msgid "" -"Most programs should find that using one of these weak container types or " -":class:`finalize` is all they need -- it's not usually necessary to create " +"Most programs should find that using one of these weak container types or :" +"class:`finalize` is all they need -- it's not usually necessary to create " "your own weak references directly. The low-level machinery is exposed by " "the :mod:`weakref` module for the benefit of advanced uses." msgstr "" @@ -107,9 +108,9 @@ msgstr "" msgid "" "Not all objects can be weakly referenced; those objects which can include " "class instances, functions written in Python (but not in C), instance " -"methods, sets, frozensets, some :term:`file objects `, " -":term:`generators `, type objects, sockets, arrays, deques, " -"regular expression pattern objects, and code objects." +"methods, sets, frozensets, some :term:`file objects `, :term:" +"`generators `, type objects, sockets, arrays, deques, regular " +"expression pattern objects, and code objects." msgstr "" #: ../../library/weakref.rst:72 @@ -130,27 +131,27 @@ msgstr "" #: ../../library/weakref.rst:88 msgid "" -"Extension types can easily be made to support weak references; see :ref" -":`weakref-support`." +"Extension types can easily be made to support weak references; see :ref:" +"`weakref-support`." msgstr "" #: ../../library/weakref.rst:94 msgid "" "Return a weak reference to *object*. The original object can be retrieved " "by calling the reference object if the referent is still alive; if the " -"referent is no longer alive, calling the reference object will cause " -":const:`None` to be returned. If *callback* is provided and not " -":const:`None`, and the returned weakref object is still alive, the callback " -"will be called when the object is about to be finalized; the weak reference " -"object will be passed as the only parameter to the callback; the referent " -"will no longer be available." +"referent is no longer alive, calling the reference object will cause :const:" +"`None` to be returned. If *callback* is provided and not :const:`None`, and " +"the returned weakref object is still alive, the callback will be called when " +"the object is about to be finalized; the weak reference object will be " +"passed as the only parameter to the callback; the referent will no longer be " +"available." msgstr "" #: ../../library/weakref.rst:102 msgid "" "It is allowable for many weak references to be constructed for the same " -"object. Callbacks registered for each weak reference will be called from the" -" most recently registered callback to the oldest registered callback." +"object. Callbacks registered for each weak reference will be called from the " +"most recently registered callback to the oldest registered callback." msgstr "" #: ../../library/weakref.rst:106 @@ -162,10 +163,10 @@ msgstr "" #: ../../library/weakref.rst:110 msgid "" -"Weak references are :term:`hashable` if the *object* is hashable. They will" -" maintain their hash value even after the *object* was deleted. If " -":func:`hash` is called the first time only after the *object* was deleted, " -"the call will raise :exc:`TypeError`." +"Weak references are :term:`hashable` if the *object* is hashable. They will " +"maintain their hash value even after the *object* was deleted. If :func:" +"`hash` is called the first time only after the *object* was deleted, the " +"call will raise :exc:`TypeError`." msgstr "" #: ../../library/weakref.rst:115 @@ -201,8 +202,8 @@ msgid "" "whether *object* is callable. Proxy objects are not :term:`hashable` " "regardless of the referent; this avoids a number of problems related to " "their fundamentally mutable nature, and prevent their use as dictionary " -"keys. *callback* is the same as the parameter of the same name to the " -":func:`ref` function." +"keys. *callback* is the same as the parameter of the same name to the :func:" +"`ref` function." msgstr "" #: ../../library/weakref.rst:146 @@ -220,8 +221,8 @@ msgstr "" msgid "" "Mapping class that references keys weakly. Entries in the dictionary will " "be discarded when there is no longer a strong reference to the key. This " -"can be used to associate additional data with an object owned by other parts" -" of an application without adding attributes to those objects. This can be " +"can be used to associate additional data with an object owned by other parts " +"of an application without adding attributes to those objects. This can be " "especially useful with objects that override attribute accesses." msgstr "" @@ -250,14 +251,14 @@ msgstr "" #: ../../library/weakref.rst:185 msgid "" -"Mapping class that references values weakly. Entries in the dictionary will" -" be discarded when no strong reference to the value exists any more." +"Mapping class that references values weakly. Entries in the dictionary will " +"be discarded when no strong reference to the value exists any more." msgstr "" #: ../../library/weakref.rst:190 msgid "" -"Caution: Because a :class:`WeakValueDictionary` is built on top of a Python" -" dictionary, it must not change size when iterating over it. This can be " +"Caution: Because a :class:`WeakValueDictionary` is built on top of a Python " +"dictionary, it must not change size when iterating over it. This can be " "difficult to ensure for a :class:`WeakValueDictionary` because actions " "performed by the program during iteration may cause items in the dictionary " "to vanish \"by magic\" (as a side effect of garbage collection)." @@ -301,29 +302,29 @@ msgstr "" msgid "" "A finalizer is considered *alive* until it is called (either explicitly or " "at garbage collection), and after that it is *dead*. Calling a live " -"finalizer returns the result of evaluating ``func(*arg, **kwargs)``, whereas" -" calling a dead finalizer returns :const:`None`." +"finalizer returns the result of evaluating ``func(*arg, **kwargs)``, whereas " +"calling a dead finalizer returns :const:`None`." msgstr "" #: ../../library/weakref.rst:252 msgid "" "Exceptions raised by finalizer callbacks during garbage collection will be " "shown on the standard error output, but cannot be propagated. They are " -"handled in the same way as exceptions raised from an object's " -":meth:`__del__` method or a weak reference's callback." +"handled in the same way as exceptions raised from an object's :meth:" +"`__del__` method or a weak reference's callback." msgstr "" #: ../../library/weakref.rst:258 msgid "" -"When the program exits, each remaining live finalizer is called unless its " -":attr:`atexit` attribute has been set to false. They are called in reverse " +"When the program exits, each remaining live finalizer is called unless its :" +"attr:`atexit` attribute has been set to false. They are called in reverse " "order of creation." msgstr "" #: ../../library/weakref.rst:262 msgid "" -"A finalizer will never invoke its callback during the later part of the " -":term:`interpreter shutdown` when module globals are liable to have been " +"A finalizer will never invoke its callback during the later part of the :" +"term:`interpreter shutdown` when module globals are liable to have been " "replaced by :const:`None`." msgstr "" @@ -383,48 +384,41 @@ msgid "" "both proxy types." msgstr "" -#: ../../library/weakref.rst:328 -msgid "" -"Exception raised when a proxy object is used but the underlying object has " -"been collected. This is the same as the standard :exc:`ReferenceError` " -"exception." -msgstr "" - -#: ../../library/weakref.rst:335 +#: ../../library/weakref.rst:329 msgid ":pep:`205` - Weak References" msgstr ":pep:`205` - Weak References" -#: ../../library/weakref.rst:335 +#: ../../library/weakref.rst:329 msgid "" "The proposal and rationale for this feature, including links to earlier " "implementations and information about similar features in other languages." msgstr "" -#: ../../library/weakref.rst:342 +#: ../../library/weakref.rst:336 msgid "Weak Reference Objects" msgstr "Objetos de Referência Fraca" -#: ../../library/weakref.rst:344 +#: ../../library/weakref.rst:338 msgid "" -"Weak reference objects have no methods and no attributes besides " -":attr:`ref.__callback__`. A weak reference object allows the referent to be " -"obtained, if it still exists, by calling it:" +"Weak reference objects have no methods and no attributes besides :attr:`ref." +"__callback__`. A weak reference object allows the referent to be obtained, " +"if it still exists, by calling it:" msgstr "" -#: ../../library/weakref.rst:358 +#: ../../library/weakref.rst:352 msgid "" -"If the referent no longer exists, calling the reference object returns " -":const:`None`:" +"If the referent no longer exists, calling the reference object returns :" +"const:`None`:" msgstr "" -#: ../../library/weakref.rst:365 +#: ../../library/weakref.rst:359 msgid "" "Testing that a weak reference object is still live should be done using the " "expression ``ref() is not None``. Normally, application code that needs to " "use a reference object should follow this pattern::" msgstr "" -#: ../../library/weakref.rst:378 +#: ../../library/weakref.rst:372 msgid "" "Using a separate test for \"liveness\" creates race conditions in threaded " "applications; another thread can cause a weak reference to become " @@ -432,96 +426,96 @@ msgid "" "safe in threaded applications as well as single-threaded applications." msgstr "" -#: ../../library/weakref.rst:383 +#: ../../library/weakref.rst:377 msgid "" "Specialized versions of :class:`ref` objects can be created through " -"subclassing. This is used in the implementation of the " -":class:`WeakValueDictionary` to reduce the memory overhead for each entry in" -" the mapping. This may be most useful to associate additional information " -"with a reference, but could also be used to insert additional processing on " -"calls to retrieve the referent." +"subclassing. This is used in the implementation of the :class:" +"`WeakValueDictionary` to reduce the memory overhead for each entry in the " +"mapping. This may be most useful to associate additional information with a " +"reference, but could also be used to insert additional processing on calls " +"to retrieve the referent." msgstr "" -#: ../../library/weakref.rst:389 +#: ../../library/weakref.rst:383 msgid "" "This example shows how a subclass of :class:`ref` can be used to store " "additional information about an object and affect the value that's returned " "when the referent is accessed::" msgstr "" -#: ../../library/weakref.rst:416 +#: ../../library/weakref.rst:410 msgid "Example" msgstr "Exemplo" -#: ../../library/weakref.rst:418 +#: ../../library/weakref.rst:412 msgid "" "This simple example shows how an application can use object IDs to retrieve " -"objects that it has seen before. The IDs of the objects can then be used in" -" other data structures without forcing the objects to remain alive, but the " +"objects that it has seen before. The IDs of the objects can then be used in " +"other data structures without forcing the objects to remain alive, but the " "objects can still be retrieved by ID if they do." msgstr "" -#: ../../library/weakref.rst:443 +#: ../../library/weakref.rst:437 msgid "Finalizer Objects" msgstr "" -#: ../../library/weakref.rst:445 +#: ../../library/weakref.rst:439 msgid "" "The main benefit of using :class:`finalize` is that it makes it simple to " "register a callback without needing to preserve the returned finalizer " "object. For instance" msgstr "" -#: ../../library/weakref.rst:459 +#: ../../library/weakref.rst:453 msgid "" "The finalizer can be called directly as well. However the finalizer will " "invoke the callback at most once." msgstr "" -#: ../../library/weakref.rst:475 +#: ../../library/weakref.rst:469 msgid "" "You can unregister a finalizer using its :meth:`~finalize.detach` method. " -"This kills the finalizer and returns the arguments passed to the constructor" -" when it was created." +"This kills the finalizer and returns the arguments passed to the constructor " +"when it was created." msgstr "" -#: ../../library/weakref.rst:489 +#: ../../library/weakref.rst:483 msgid "" "Unless you set the :attr:`~finalize.atexit` attribute to :const:`False`, a " "finalizer will be called when the program exits if it is still alive. For " "instance" msgstr "" -#: ../../library/weakref.rst:504 +#: ../../library/weakref.rst:498 msgid "Comparing finalizers with :meth:`__del__` methods" msgstr "" -#: ../../library/weakref.rst:506 +#: ../../library/weakref.rst:500 msgid "" "Suppose we want to create a class whose instances represent temporary " -"directories. The directories should be deleted with their contents when the" -" first of the following events occurs:" +"directories. The directories should be deleted with their contents when the " +"first of the following events occurs:" msgstr "" -#: ../../library/weakref.rst:510 +#: ../../library/weakref.rst:504 msgid "the object is garbage collected," msgstr "" -#: ../../library/weakref.rst:511 +#: ../../library/weakref.rst:505 msgid "the object's :meth:`remove` method is called, or" msgstr "" -#: ../../library/weakref.rst:512 +#: ../../library/weakref.rst:506 msgid "the program exits." msgstr "o programa finaliza." -#: ../../library/weakref.rst:514 +#: ../../library/weakref.rst:508 msgid "" "We might try to implement the class using a :meth:`__del__` method as " "follows::" msgstr "" -#: ../../library/weakref.rst:533 +#: ../../library/weakref.rst:527 msgid "" "Starting with Python 3.4, :meth:`__del__` methods no longer prevent " "reference cycles from being garbage collected, and module globals are no " @@ -529,39 +523,38 @@ msgid "" "code should work without any issues on CPython." msgstr "" -#: ../../library/weakref.rst:538 +#: ../../library/weakref.rst:532 msgid "" "However, handling of :meth:`__del__` methods is notoriously implementation " "specific, since it depends on internal details of the interpreter's garbage " "collector implementation." msgstr "" -#: ../../library/weakref.rst:542 +#: ../../library/weakref.rst:536 msgid "" -"A more robust alternative can be to define a finalizer which only references" -" the specific functions and objects that it needs, rather than having access" -" to the full state of the object::" +"A more robust alternative can be to define a finalizer which only references " +"the specific functions and objects that it needs, rather than having access " +"to the full state of the object::" msgstr "" -#: ../../library/weakref.rst:558 +#: ../../library/weakref.rst:552 msgid "" -"Defined like this, our finalizer only receives a reference to the details it" -" needs to clean up the directory appropriately. If the object never gets " +"Defined like this, our finalizer only receives a reference to the details it " +"needs to clean up the directory appropriately. If the object never gets " "garbage collected the finalizer will still be called at exit." msgstr "" -#: ../../library/weakref.rst:562 +#: ../../library/weakref.rst:556 msgid "" "The other advantage of weakref based finalizers is that they can be used to " "register finalizers for classes where the definition is controlled by a " "third party, such as running code when a module is unloaded::" msgstr "" -#: ../../library/weakref.rst:574 +#: ../../library/weakref.rst:568 msgid "" "If you create a finalizer object in a daemonic thread just as the program " "exits then there is the possibility that the finalizer does not get called " "at exit. However, in a daemonic thread :func:`atexit.register`, ``try: ... " -"finally: ...`` and ``with: ...`` do not guarantee that cleanup occurs " -"either." +"finally: ...`` and ``with: ...`` do not guarantee that cleanup occurs either." msgstr "" diff --git a/library/webbrowser.po b/library/webbrowser.po index b52fe6870..71004ff05 100644 --- a/library/webbrowser.po +++ b/library/webbrowser.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 # Adorilson Bezerra , 2019 -# +# Sheila Gomes , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:13+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,25 +54,25 @@ msgstr "" msgid "" "If the environment variable :envvar:`BROWSER` exists, it is interpreted as " "the :data:`os.pathsep`-separated list of browsers to try ahead of the " -"platform defaults. When the value of a list part contains the string " -"``%s``, then it is interpreted as a literal browser command line to be used " -"with the argument URL substituted for ``%s``; if the part does not contain " -"``%s``, it is simply interpreted as the name of the browser to launch. [1]_" +"platform defaults. When the value of a list part contains the string ``" +"%s``, then it is interpreted as a literal browser command line to be used " +"with the argument URL substituted for ``%s``; if the part does not contain ``" +"%s``, it is simply interpreted as the name of the browser to launch. [1]_" msgstr "" #: ../../library/webbrowser.rst:30 msgid "" "For non-Unix platforms, or when a remote browser is available on Unix, the " "controlling process will not wait for the user to finish with the browser, " -"but allow the remote browser to maintain its own windows on the display. If" -" remote browsers are not available on Unix, the controlling process will " +"but allow the remote browser to maintain its own windows on the display. If " +"remote browsers are not available on Unix, the controlling process will " "launch a new browser and wait." msgstr "" #: ../../library/webbrowser.rst:36 msgid "" -"The script :program:`webbrowser` can be used as a command-line interface for" -" the module. It accepts a URL as the argument. It accepts the following " +"The script :program:`webbrowser` can be used as a command-line interface for " +"the module. It accepts a URL as the argument. It accepts the following " "optional parameters: ``-n`` opens the URL in a new browser window, if " "possible; ``-t`` opens the URL in a new browser page (\"tab\"). The options " "are, naturally, mutually exclusive. Usage example::" @@ -90,18 +93,18 @@ msgstr "" #: ../../library/webbrowser.rst:56 msgid "" "Display *url* using the default browser. If *new* is 0, the *url* is opened " -"in the same browser window if possible. If *new* is 1, a new browser window" -" is opened if possible. If *new* is 2, a new browser page (\"tab\") is " +"in the same browser window if possible. If *new* is 1, a new browser window " +"is opened if possible. If *new* is 2, a new browser page (\"tab\") is " "opened if possible. If *autoraise* is ``True``, the window is raised if " -"possible (note that under many window managers this will occur regardless of" -" the setting of this variable)." +"possible (note that under many window managers this will occur regardless of " +"the setting of this variable)." msgstr "" #: ../../library/webbrowser.rst:63 msgid "" "Note that on some platforms, trying to open a filename using this function, " -"may work and start the operating system's associated program. However, this" -" is neither supported nor portable." +"may work and start the operating system's associated program. However, this " +"is neither supported nor portable." msgstr "" #: ../../library/webbrowser.rst:70 @@ -125,8 +128,8 @@ msgstr "" #: ../../library/webbrowser.rst:88 msgid "" -"Register the browser type *name*. Once a browser type is registered, the " -":func:`get` function can return a controller for that browser type. If " +"Register the browser type *name*. Once a browser type is registered, the :" +"func:`get` function can return a controller for that browser type. If " "*instance* is not provided, or is ``None``, *constructor* will be called " "without parameters to create an instance when needed. If *instance* is " "provided, *constructor* will never be called, and may be ``None``." @@ -134,10 +137,10 @@ msgstr "" #: ../../library/webbrowser.rst:94 msgid "" -"Setting *preferred* to ``True`` makes this browser a preferred result for a " -":func:`get` call with no argument. Otherwise, this entry point is only " -"useful if you plan to either set the :envvar:`BROWSER` variable or call " -":func:`get` with a nonempty argument matching the name of a handler you " +"Setting *preferred* to ``True`` makes this browser a preferred result for a :" +"func:`get` call with no argument. Otherwise, this entry point is only " +"useful if you plan to either set the :envvar:`BROWSER` variable or call :" +"func:`get` with a nonempty argument matching the name of a handler you " "declare." msgstr "" @@ -166,43 +169,43 @@ msgstr "Notas" #: ../../library/webbrowser.rst:110 msgid "``'mozilla'``" -msgstr "" +msgstr "``'mozilla'``" #: ../../library/webbrowser.rst:110 ../../library/webbrowser.rst:112 msgid ":class:`Mozilla('mozilla')`" -msgstr "" +msgstr ":class:`Mozilla('mozilla')`" #: ../../library/webbrowser.rst:112 msgid "``'firefox'``" -msgstr "" +msgstr "``'firefox'``" #: ../../library/webbrowser.rst:114 msgid "``'netscape'``" -msgstr "" +msgstr "``'netscape'``" #: ../../library/webbrowser.rst:114 msgid ":class:`Mozilla('netscape')`" -msgstr "" +msgstr ":class:`Mozilla('netscape')`" #: ../../library/webbrowser.rst:116 msgid "``'galeon'``" -msgstr "" +msgstr "``'galeon'``" #: ../../library/webbrowser.rst:116 msgid ":class:`Galeon('galeon')`" -msgstr "" +msgstr ":class:`Galeon('galeon')`" #: ../../library/webbrowser.rst:118 msgid "``'epiphany'``" -msgstr "" +msgstr "``'epiphany'``" #: ../../library/webbrowser.rst:118 msgid ":class:`Galeon('epiphany')`" -msgstr "" +msgstr ":class:`Galeon('epiphany')`" #: ../../library/webbrowser.rst:120 msgid "``'skipstone'``" -msgstr "" +msgstr "``'skipstone'``" #: ../../library/webbrowser.rst:120 msgid ":class:`BackgroundBrowser('skipstone')`" @@ -210,12 +213,12 @@ msgstr ":class:`BackgroundBrowser('skipstone')`" #: ../../library/webbrowser.rst:122 msgid "``'kfmclient'``" -msgstr "" +msgstr "``'kfmclient'``" #: ../../library/webbrowser.rst:122 ../../library/webbrowser.rst:124 #: ../../library/webbrowser.rst:126 msgid ":class:`Konqueror()`" -msgstr "" +msgstr ":class:`Konqueror()`" #: ../../library/webbrowser.rst:122 ../../library/webbrowser.rst:124 #: ../../library/webbrowser.rst:126 @@ -224,75 +227,75 @@ msgstr "\\(1)" #: ../../library/webbrowser.rst:124 msgid "``'konqueror'``" -msgstr "" +msgstr "``'konqueror'``" #: ../../library/webbrowser.rst:126 msgid "``'kfm'``" -msgstr "" +msgstr "``'kfm'``" #: ../../library/webbrowser.rst:128 msgid "``'mosaic'``" -msgstr "" +msgstr "``'mosaic'``" #: ../../library/webbrowser.rst:128 msgid ":class:`BackgroundBrowser('mosaic')`" -msgstr "" +msgstr ":class:`BackgroundBrowser('mosaic')`" #: ../../library/webbrowser.rst:130 msgid "``'opera'``" -msgstr "" +msgstr "``'opera'``" #: ../../library/webbrowser.rst:130 msgid ":class:`Opera()`" -msgstr "" +msgstr ":class:`Opera()`" #: ../../library/webbrowser.rst:132 msgid "``'grail'``" -msgstr "" +msgstr "``'grail'``" #: ../../library/webbrowser.rst:132 msgid ":class:`Grail()`" -msgstr "" +msgstr ":class:`Grail()`" #: ../../library/webbrowser.rst:134 msgid "``'links'``" -msgstr "" +msgstr "``'links'``" #: ../../library/webbrowser.rst:134 msgid ":class:`GenericBrowser('links')`" -msgstr "" +msgstr ":class:`GenericBrowser('links')`" #: ../../library/webbrowser.rst:136 msgid "``'elinks'``" -msgstr "" +msgstr "``'elinks'``" #: ../../library/webbrowser.rst:136 msgid ":class:`Elinks('elinks')`" -msgstr "" +msgstr ":class:`Elinks('elinks')`" #: ../../library/webbrowser.rst:138 msgid "``'lynx'``" -msgstr "" +msgstr "``'lynx'``" #: ../../library/webbrowser.rst:138 msgid ":class:`GenericBrowser('lynx')`" -msgstr "" +msgstr ":class:`GenericBrowser('lynx')`" #: ../../library/webbrowser.rst:140 msgid "``'w3m'``" -msgstr "" +msgstr "``'w3m'``" #: ../../library/webbrowser.rst:140 msgid ":class:`GenericBrowser('w3m')`" -msgstr "" +msgstr ":class:`GenericBrowser('w3m')`" #: ../../library/webbrowser.rst:142 msgid "``'windows-default'``" -msgstr "" +msgstr "``'windows-default'``" #: ../../library/webbrowser.rst:142 msgid ":class:`WindowsDefault`" -msgstr "" +msgstr ":class:`WindowsDefault`" #: ../../library/webbrowser.rst:142 msgid "\\(2)" @@ -300,11 +303,11 @@ msgstr "\\(2)" #: ../../library/webbrowser.rst:144 msgid "``'macosx'``" -msgstr "" +msgstr "``'macosx'``" #: ../../library/webbrowser.rst:144 msgid ":class:`MacOSX('default')`" -msgstr "" +msgstr ":class:`MacOSX('default')`" #: ../../library/webbrowser.rst:144 ../../library/webbrowser.rst:146 msgid "\\(3)" @@ -312,43 +315,43 @@ msgstr "\\(3)" #: ../../library/webbrowser.rst:146 msgid "``'safari'``" -msgstr "" +msgstr "``'safari'``" #: ../../library/webbrowser.rst:146 msgid ":class:`MacOSX('safari')`" -msgstr "" +msgstr ":class:`MacOSX('safari')`" #: ../../library/webbrowser.rst:148 msgid "``'google-chrome'``" -msgstr "" +msgstr "``'google-chrome'``" #: ../../library/webbrowser.rst:148 msgid ":class:`Chrome('google-chrome')`" -msgstr "" +msgstr ":class:`Chrome('google-chrome')`" #: ../../library/webbrowser.rst:150 msgid "``'chrome'``" -msgstr "" +msgstr "``'chrome'``" #: ../../library/webbrowser.rst:150 msgid ":class:`Chrome('chrome')`" -msgstr "" +msgstr ":class:`Chrome('chrome')`" #: ../../library/webbrowser.rst:152 msgid "``'chromium'``" -msgstr "" +msgstr "``'chromium'``" #: ../../library/webbrowser.rst:152 msgid ":class:`Chromium('chromium')`" -msgstr "" +msgstr ":class:`Chromium('chromium')`" #: ../../library/webbrowser.rst:154 msgid "``'chromium-browser'``" -msgstr "" +msgstr "``'chromium-browser'``" #: ../../library/webbrowser.rst:154 msgid ":class:`Chromium('chromium-browser')`" -msgstr "" +msgstr ":class:`Chromium('chromium-browser')`" #: ../../library/webbrowser.rst:157 msgid "Notes:" @@ -359,8 +362,8 @@ msgid "" "\"Konqueror\" is the file manager for the KDE desktop environment for Unix, " "and only makes sense to use if KDE is running. Some way of reliably " "detecting KDE would be nice; the :envvar:`KDEDIR` variable is not " -"sufficient. Note also that the name \"kfm\" is used even when using the " -":program:`konqueror` command with KDE 2 --- the implementation selects the " +"sufficient. Note also that the name \"kfm\" is used even when using the :" +"program:`konqueror` command with KDE 2 --- the implementation selects the " "best strategy for running Konqueror." msgstr "" @@ -386,22 +389,22 @@ msgstr "" #: ../../library/webbrowser.rst:191 msgid "" -"Browser controllers provide these methods which parallel three of the " -"module-level convenience functions:" +"Browser controllers provide these methods which parallel three of the module-" +"level convenience functions:" msgstr "" #: ../../library/webbrowser.rst:197 msgid "" -"Display *url* using the browser handled by this controller. If *new* is 1, a" -" new browser window is opened if possible. If *new* is 2, a new browser page" -" (\"tab\") is opened if possible." +"Display *url* using the browser handled by this controller. If *new* is 1, a " +"new browser window is opened if possible. If *new* is 2, a new browser page " +"(\"tab\") is opened if possible." msgstr "" #: ../../library/webbrowser.rst:204 msgid "" "Open *url* in a new window of the browser handled by this controller, if " -"possible, otherwise, open *url* in the only browser window. Alias " -":func:`open_new`." +"possible, otherwise, open *url* in the only browser window. Alias :func:" +"`open_new`." msgstr "" #: ../../library/webbrowser.rst:211 diff --git a/library/windows.po b/library/windows.po index e969d040d..9c88cad54 100644 --- a/library/windows.po +++ b/library/windows.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/library/winreg.po b/library/winreg.po index 6dd0227bd..a07a1f320 100644 --- a/library/winreg.po +++ b/library/winreg.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:27+0000\n" -"Last-Translator: Marciel Leal , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,10 +31,10 @@ msgstr "" #: ../../library/winreg.rst:12 msgid "" -"These functions expose the Windows registry API to Python. Instead of using" -" an integer as the registry handle, a :ref:`handle object ` " -"is used to ensure that the handles are closed correctly, even if the " -"programmer neglects to explicitly close them." +"These functions expose the Windows registry API to Python. Instead of using " +"an integer as the registry handle, a :ref:`handle object ` is " +"used to ensure that the handles are closed correctly, even if the programmer " +"neglects to explicitly close them." msgstr "" #: ../../library/winreg.rst:19 @@ -58,8 +60,7 @@ msgstr "" #: ../../library/winreg.rst:38 msgid "" "If *hkey* is not closed using this method (or via :meth:`hkey.Close() " -"`), it is closed when the *hkey* object is destroyed by " -"Python." +"`), it is closed when the *hkey* object is destroyed by Python." msgstr "" #: ../../library/winreg.rst:45 @@ -70,8 +71,8 @@ msgstr "" #: ../../library/winreg.rst:48 msgid "" -"*computer_name* is the name of the remote computer, of the form " -"``r\"\\\\computername\"``. If ``None``, the local computer is used." +"*computer_name* is the name of the remote computer, of the form ``r\"\\" +"\\computername\"``. If ``None``, the local computer is used." msgstr "" #: ../../library/winreg.rst:51 @@ -81,8 +82,8 @@ msgstr "" #: ../../library/winreg.rst:53 ../../library/winreg.rst:75 #: ../../library/winreg.rst:103 msgid "" -"The return value is the handle of the opened key. If the function fails, an " -":exc:`OSError` exception is raised." +"The return value is the handle of the opened key. If the function fails, an :" +"exc:`OSError` exception is raised." msgstr "" #: ../../library/winreg.rst:56 ../../library/winreg.rst:78 @@ -134,8 +135,8 @@ msgstr "" #: ../../library/winreg.rst:94 msgid "" "*access* is an integer that specifies an access mask that describes the " -"desired security access for the key. Default is :const:`KEY_WRITE`. See " -":ref:`Access Rights ` for other allowed values." +"desired security access for the key. Default is :const:`KEY_WRITE`. See :" +"ref:`Access Rights ` for other allowed values." msgstr "" #: ../../library/winreg.rst:114 ../../library/winreg.rst:133 @@ -163,8 +164,8 @@ msgstr "" msgid "" "The :func:`DeleteKeyEx` function is implemented with the RegDeleteKeyEx " "Windows API function, which is specific to 64-bit versions of Windows. See " -"the `RegDeleteKeyEx documentation `__." +"the `RegDeleteKeyEx documentation `__." msgstr "" #: ../../library/winreg.rst:144 @@ -198,14 +199,13 @@ msgid "Enumerates subkeys of an open registry key, returning a string." msgstr "" #: ../../library/winreg.rst:184 -msgid "" -"*index* is an integer that identifies the index of the key to retrieve." +msgid "*index* is an integer that identifies the index of the key to retrieve." msgstr "" #: ../../library/winreg.rst:186 msgid "" -"The function retrieves the name of one subkey each time it is called. It is" -" typically called repeatedly until an :exc:`OSError` exception is raised, " +"The function retrieves the name of one subkey each time it is called. It is " +"typically called repeatedly until an :exc:`OSError` exception is raised, " "indicating, no more values are available." msgstr "" @@ -242,7 +242,7 @@ msgstr "Significado" #: ../../library/winreg.rst:212 ../../library/winreg.rst:322 #: ../../library/winreg.rst:366 msgid "``0``" -msgstr "" +msgstr "``0``" #: ../../library/winreg.rst:212 msgid "A string that identifies the value name" @@ -265,14 +265,14 @@ msgstr "``2``" #: ../../library/winreg.rst:218 msgid "" -"An integer that identifies the type of the value data (see table in docs for" -" :meth:`SetValueEx`)" +"An integer that identifies the type of the value data (see table in docs " +"for :meth:`SetValueEx`)" msgstr "" #: ../../library/winreg.rst:232 msgid "" -"Expands environment variable placeholders ``%NAME%`` in strings like " -":const:`REG_EXPAND_SZ`::" +"Expands environment variable placeholders ``%NAME%`` in strings like :const:" +"`REG_EXPAND_SZ`::" msgstr "" #: ../../library/winreg.rst:241 @@ -283,11 +283,11 @@ msgstr "" msgid "" "It is not necessary to call :func:`FlushKey` to change a key. Registry " "changes are flushed to disk by the registry using its lazy flusher. " -"Registry changes are also flushed to disk at system shutdown. Unlike " -":func:`CloseKey`, the :func:`FlushKey` method returns only when all the data" -" has been written to the registry. An application should only call " -":func:`FlushKey` if it requires absolute certainty that registry changes are" -" on disk." +"Registry changes are also flushed to disk at system shutdown. Unlike :func:" +"`CloseKey`, the :func:`FlushKey` method returns only when all the data has " +"been written to the registry. An application should only call :func:" +"`FlushKey` if it requires absolute certainty that registry changes are on " +"disk." msgstr "" #: ../../library/winreg.rst:255 @@ -298,8 +298,8 @@ msgstr "" #: ../../library/winreg.rst:261 msgid "" -"Creates a subkey under the specified key and stores registration information" -" from a specified file into that subkey." +"Creates a subkey under the specified key and stores registration information " +"from a specified file into that subkey." msgstr "" #: ../../library/winreg.rst:264 @@ -321,11 +321,10 @@ msgstr "" #: ../../library/winreg.rst:273 msgid "" -"A call to :func:`LoadKey` fails if the calling process does not have the " -":const:`SE_RESTORE_PRIVILEGE` privilege. Note that privileges are different" -" from permissions -- see the `RegLoadKey documentation " -"`__ for" -" more details." +"A call to :func:`LoadKey` fails if the calling process does not have the :" +"const:`SE_RESTORE_PRIVILEGE` privilege. Note that privileges are different " +"from permissions -- see the `RegLoadKey documentation `__ for more details." msgstr "" #: ../../library/winreg.rst:279 @@ -351,8 +350,8 @@ msgstr "" #: ../../library/winreg.rst:295 msgid "" "*access* is an integer that specifies an access mask that describes the " -"desired security access for the key. Default is :const:`KEY_READ`. See " -":ref:`Access Rights ` for other allowed values." +"desired security access for the key. Default is :const:`KEY_READ`. See :" +"ref:`Access Rights ` for other allowed values." msgstr "" #: ../../library/winreg.rst:299 @@ -391,8 +390,8 @@ msgstr "" #: ../../library/winreg.rst:341 msgid "" -"*sub_key* is a string that holds the name of the subkey with which the value" -" is associated. If this parameter is ``None`` or empty, the function " +"*sub_key* is a string that holds the name of the subkey with which the value " +"is associated. If this parameter is ``None`` or empty, the function " "retrieves the value set by the :func:`SetValue` method for the key " "identified by *key*." msgstr "" @@ -400,9 +399,9 @@ msgstr "" #: ../../library/winreg.rst:345 msgid "" "Values in the registry have name, type, and data components. This method " -"retrieves the data for a key's first value that has a ``NULL`` name. But the" -" underlying API call doesn't return the type, so always use " -":func:`QueryValueEx` if possible." +"retrieves the data for a key's first value that has a ``NULL`` name. But the " +"underlying API call doesn't return the type, so always use :func:" +"`QueryValueEx` if possible." msgstr "" #: ../../library/winreg.rst:353 @@ -425,8 +424,8 @@ msgstr "" #: ../../library/winreg.rst:368 msgid "" -"An integer giving the registry type for this value (see table in docs for " -":meth:`SetValueEx`)" +"An integer giving the registry type for this value (see table in docs for :" +"meth:`SetValueEx`)" msgstr "" #: ../../library/winreg.rst:376 @@ -446,9 +445,9 @@ msgid "" "If *key* represents a key on a remote computer, the path described by " "*file_name* is relative to the remote computer. The caller of this method " "must possess the :const:`SeBackupPrivilege` security privilege. Note that " -"privileges are different than permissions -- see the `Conflicts Between User" -" Rights and Permissions documentation `__ for more details." +"privileges are different than permissions -- see the `Conflicts Between User " +"Rights and Permissions documentation `__ for more details." msgstr "" #: ../../library/winreg.rst:394 @@ -468,8 +467,8 @@ msgstr "" #: ../../library/winreg.rst:406 msgid "" "*type* is an integer that specifies the type of the data. Currently this " -"must be :const:`REG_SZ`, meaning only strings are supported. Use the " -":func:`SetValueEx` function for support for other data types." +"must be :const:`REG_SZ`, meaning only strings are supported. Use the :func:" +"`SetValueEx` function for support for other data types." msgstr "" #: ../../library/winreg.rst:410 ../../library/winreg.rst:438 @@ -478,8 +477,8 @@ msgstr "" #: ../../library/winreg.rst:412 msgid "" -"If the key specified by the *sub_key* parameter does not exist, the SetValue" -" function creates it." +"If the key specified by the *sub_key* parameter does not exist, the SetValue " +"function creates it." msgstr "" #: ../../library/winreg.rst:415 ../../library/winreg.rst:446 @@ -491,8 +490,8 @@ msgstr "" #: ../../library/winreg.rst:419 msgid "" -"The key identified by the *key* parameter must have been opened with " -":const:`KEY_SET_VALUE` access." +"The key identified by the *key* parameter must have been opened with :const:" +"`KEY_SET_VALUE` access." msgstr "" #: ../../library/winreg.rst:425 @@ -569,8 +568,7 @@ msgstr "Constantes" #: ../../library/winreg.rst:498 msgid "" -"The following constants are defined for use in many :mod:`_winreg` " -"functions." +"The following constants are defined for use in many :mod:`_winreg` functions." msgstr "" #: ../../library/winreg.rst:503 @@ -588,8 +586,8 @@ msgstr "" msgid "" "Registry entries subordinate to this key define the preferences of the " "current user. These preferences include the settings of environment " -"variables, data about program groups, colors, printers, network connections," -" and application preferences." +"variables, data about program groups, colors, printers, network connections, " +"and application preferences." msgstr "" #: ../../library/winreg.rst:521 @@ -602,8 +600,8 @@ msgstr "" #: ../../library/winreg.rst:527 msgid "" "Registry entries subordinate to this key define the default user " -"configuration for new users on the local computer and the user configuration" -" for the current user." +"configuration for new users on the local computer and the user configuration " +"for the current user." msgstr "" #: ../../library/winreg.rst:533 @@ -629,28 +627,28 @@ msgstr "" #: ../../library/winreg.rst:554 msgid "" -"For more information, see `Registry Key Security and Access " -"`__." +"For more information, see `Registry Key Security and Access `__." msgstr "" #: ../../library/winreg.rst:559 msgid "" -"Combines the STANDARD_RIGHTS_REQUIRED, :const:`KEY_QUERY_VALUE`, " -":const:`KEY_SET_VALUE`, :const:`KEY_CREATE_SUB_KEY`, " -":const:`KEY_ENUMERATE_SUB_KEYS`, :const:`KEY_NOTIFY`, and " -":const:`KEY_CREATE_LINK` access rights." +"Combines the STANDARD_RIGHTS_REQUIRED, :const:`KEY_QUERY_VALUE`, :const:" +"`KEY_SET_VALUE`, :const:`KEY_CREATE_SUB_KEY`, :const:" +"`KEY_ENUMERATE_SUB_KEYS`, :const:`KEY_NOTIFY`, and :const:`KEY_CREATE_LINK` " +"access rights." msgstr "" #: ../../library/winreg.rst:566 msgid "" -"Combines the STANDARD_RIGHTS_WRITE, :const:`KEY_SET_VALUE`, and " -":const:`KEY_CREATE_SUB_KEY` access rights." +"Combines the STANDARD_RIGHTS_WRITE, :const:`KEY_SET_VALUE`, and :const:" +"`KEY_CREATE_SUB_KEY` access rights." msgstr "" #: ../../library/winreg.rst:571 msgid "" -"Combines the STANDARD_RIGHTS_READ, :const:`KEY_QUERY_VALUE`, " -":const:`KEY_ENUMERATE_SUB_KEYS`, and :const:`KEY_NOTIFY` values." +"Combines the STANDARD_RIGHTS_READ, :const:`KEY_QUERY_VALUE`, :const:" +"`KEY_ENUMERATE_SUB_KEYS`, and :const:`KEY_NOTIFY` values." msgstr "" #: ../../library/winreg.rst:576 @@ -689,20 +687,20 @@ msgstr "" #: ../../library/winreg.rst:609 msgid "" -"For more information, see `Accessing an Alternate Registry View " -"`__." +"For more information, see `Accessing an Alternate Registry View `__." msgstr "" #: ../../library/winreg.rst:614 msgid "" -"Indicates that an application on 64-bit Windows should operate on the 64-bit" -" registry view." +"Indicates that an application on 64-bit Windows should operate on the 64-bit " +"registry view." msgstr "" #: ../../library/winreg.rst:619 msgid "" -"Indicates that an application on 64-bit Windows should operate on the 32-bit" -" registry view." +"Indicates that an application on 64-bit Windows should operate on the 32-bit " +"registry view." msgstr "" #: ../../library/winreg.rst:626 @@ -711,8 +709,8 @@ msgstr "" #: ../../library/winreg.rst:628 msgid "" -"For more information, see `Registry Value Types `__." +"For more information, see `Registry Value Types `__." msgstr "" #: ../../library/winreg.rst:633 @@ -734,8 +732,8 @@ msgstr "" #: ../../library/winreg.rst:649 msgid "" -"Null-terminated string containing references to environment variables " -"(``%PATH%``)." +"Null-terminated string containing references to environment variables (``" +"%PATH%``)." msgstr "" #: ../../library/winreg.rst:654 @@ -784,9 +782,8 @@ msgstr "" #: ../../library/winreg.rst:699 msgid "" "This object wraps a Windows HKEY object, automatically closing it when the " -"object is destroyed. To guarantee cleanup, you can call either the " -":meth:`~PyHKEY.Close` method on the object, or the :func:`CloseKey` " -"function." +"object is destroyed. To guarantee cleanup, you can call either the :meth:" +"`~PyHKEY.Close` method on the object, or the :func:`CloseKey` function." msgstr "" #: ../../library/winreg.rst:703 @@ -811,14 +808,14 @@ msgstr "" #: ../../library/winreg.rst:716 msgid "" -"The object also support comparison semantics, so handle objects will compare" -" true if they both reference the same underlying Windows handle value." +"The object also support comparison semantics, so handle objects will compare " +"true if they both reference the same underlying Windows handle value." msgstr "" #: ../../library/winreg.rst:719 msgid "" -"Handle objects can be converted to an integer (e.g., using the built-in " -":func:`int` function), in which case the underlying Windows handle value is " +"Handle objects can be converted to an integer (e.g., using the built-in :" +"func:`int` function), in which case the underlying Windows handle value is " "returned. You can also use the :meth:`~PyHKEY.Detach` method to return the " "integer handle, and also disconnect the Windows handle from the handle " "object." @@ -852,13 +849,12 @@ msgstr "" #: ../../library/winreg.rst:747 msgid "" -"The HKEY object implements :meth:`~object.__enter__` and " -":meth:`~object.__exit__` and thus supports the context protocol for the " -":keyword:`with` statement::" +"The HKEY object implements :meth:`~object.__enter__` and :meth:`~object." +"__exit__` and thus supports the context protocol for the :keyword:`with` " +"statement::" msgstr "" #: ../../library/winreg.rst:754 msgid "" -"will automatically close *key* when control leaves the :keyword:`with` " -"block." +"will automatically close *key* when control leaves the :keyword:`with` block." msgstr "" diff --git a/library/winsound.po b/library/winsound.po index 781a7c260..bb9acf653 100644 --- a/library/winsound.po +++ b/library/winsound.po @@ -1,20 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,7 +26,7 @@ msgstr "" #: ../../library/winsound.rst:2 msgid ":mod:`winsound` --- Sound-playing interface for Windows" -msgstr "" +msgstr ":mod:`winsound` --- Interface de reprodução de som para Windows" #: ../../library/winsound.rst:13 msgid "" @@ -31,25 +34,32 @@ msgid "" "machinery provided by Windows platforms. It includes functions and several " "constants." msgstr "" +"O módulo :mod:`winsound` fornece acesso ao mecanismo básico de reprodução de " +"som fornecido pelas plataformas Windows. Inclui funções e várias constantes." #: ../../library/winsound.rst:19 msgid "" "Beep the PC's speaker. The *frequency* parameter specifies frequency, in " "hertz, of the sound, and must be in the range 37 through 32,767. The " "*duration* parameter specifies the number of milliseconds the sound should " -"last. If the system is not able to beep the speaker, :exc:`RuntimeError` is" -" raised." +"last. If the system is not able to beep the speaker, :exc:`RuntimeError` is " +"raised." msgstr "" +"Emite um bipe no alto-falante do PC. O parâmetro *frequency* especifica a " +"frequência, em hertz, do som e deve estar no intervalo de 37 a 32.767. O " +"parâmetro *duration* especifica o número de milissegundos que o som deve " +"durar. Se o sistema não conseguir emitir um bipe no alto-falante, :exc:" +"`RuntimeError` é levantado." #: ../../library/winsound.rst:27 msgid "" -"Call the underlying :c:func:`PlaySound` function from the Platform API. The" -" *sound* parameter may be a filename, a system sound alias, audio data as a " -":term:`bytes-like object`, or ``None``. Its interpretation depends on the " +"Call the underlying :c:func:`PlaySound` function from the Platform API. The " +"*sound* parameter may be a filename, a system sound alias, audio data as a :" +"term:`bytes-like object`, or ``None``. Its interpretation depends on the " "value of *flags*, which can be a bitwise ORed combination of the constants " -"described below. If the *sound* parameter is ``None``, any currently playing" -" waveform sound is stopped. If the system indicates an error, " -":exc:`RuntimeError` is raised." +"described below. If the *sound* parameter is ``None``, any currently playing " +"waveform sound is stopped. If the system indicates an error, :exc:" +"`RuntimeError` is raised." msgstr "" #: ../../library/winsound.rst:38 @@ -66,16 +76,16 @@ msgstr "" #: ../../library/winsound.rst:49 msgid "" -"The *sound* parameter is the name of a WAV file. Do not use with " -":const:`SND_ALIAS`." +"The *sound* parameter is the name of a WAV file. Do not use with :const:" +"`SND_ALIAS`." msgstr "" #: ../../library/winsound.rst:55 msgid "" -"The *sound* parameter is a sound association name from the registry. If the" -" registry contains no such name, play the system default sound unless " -":const:`SND_NODEFAULT` is also specified. If no default sound is registered," -" raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`." +"The *sound* parameter is a sound association name from the registry. If the " +"registry contains no such name, play the system default sound unless :const:" +"`SND_NODEFAULT` is also specified. If no default sound is registered, raise :" +"exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`." msgstr "" #: ../../library/winsound.rst:60 @@ -94,7 +104,7 @@ msgstr "" #: ../../library/winsound.rst:66 msgid "``'SystemAsterisk'``" -msgstr "" +msgstr "``'SystemAsterisk'``" #: ../../library/winsound.rst:66 msgid "Asterisk" @@ -102,7 +112,7 @@ msgstr "" #: ../../library/winsound.rst:68 msgid "``'SystemExclamation'``" -msgstr "" +msgstr "``'SystemExclamation'``" #: ../../library/winsound.rst:68 msgid "Exclamation" @@ -110,7 +120,7 @@ msgstr "" #: ../../library/winsound.rst:70 msgid "``'SystemExit'``" -msgstr "" +msgstr "``'SystemExit'``" #: ../../library/winsound.rst:70 msgid "Exit Windows" @@ -118,7 +128,7 @@ msgstr "" #: ../../library/winsound.rst:72 msgid "``'SystemHand'``" -msgstr "" +msgstr "``'SystemHand'``" #: ../../library/winsound.rst:72 msgid "Critical Stop" @@ -126,7 +136,7 @@ msgstr "" #: ../../library/winsound.rst:74 msgid "``'SystemQuestion'``" -msgstr "" +msgstr "``'SystemQuestion'``" #: ../../library/winsound.rst:74 msgid "Question" @@ -138,8 +148,8 @@ msgstr "Por exemplo::" #: ../../library/winsound.rst:90 msgid "" -"Play the sound repeatedly. The :const:`SND_ASYNC` flag must also be used to" -" avoid blocking. Cannot be used with :const:`SND_MEMORY`." +"Play the sound repeatedly. The :const:`SND_ASYNC` flag must also be used to " +"avoid blocking. Cannot be used with :const:`SND_MEMORY`." msgstr "" #: ../../library/winsound.rst:96 @@ -151,8 +161,8 @@ msgstr "" #: ../../library/winsound.rst:101 msgid "" "This module does not support playing from a memory image asynchronously, so " -"a combination of this flag and :const:`SND_ASYNC` will raise " -":exc:`RuntimeError`." +"a combination of this flag and :const:`SND_ASYNC` will raise :exc:" +"`RuntimeError`." msgstr "" #: ../../library/winsound.rst:107 @@ -169,8 +179,7 @@ msgstr "" #: ../../library/winsound.rst:121 msgid "" -"If the specified sound cannot be found, do not play the system default " -"sound." +"If the specified sound cannot be found, do not play the system default sound." msgstr "" #: ../../library/winsound.rst:126 diff --git a/library/wsgiref.po b/library/wsgiref.po index 5a2d42c49..ee888c023 100644 --- a/library/wsgiref.po +++ b/library/wsgiref.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" "Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -72,18 +73,18 @@ msgstr "" #: ../../library/wsgiref.rst:51 msgid "" -"Return a guess for whether ``wsgi.url_scheme`` should be \"http\" or " -"\"https\", by checking for a ``HTTPS`` environment variable in the *environ*" -" dictionary. The return value is a string." +"Return a guess for whether ``wsgi.url_scheme`` should be \"http\" or \"https" +"\", by checking for a ``HTTPS`` environment variable in the *environ* " +"dictionary. The return value is a string." msgstr "" #: ../../library/wsgiref.rst:55 msgid "" -"This function is useful when creating a gateway that wraps CGI or a CGI-like" -" protocol such as FastCGI. Typically, servers providing such protocols will" -" include a ``HTTPS`` variable with a value of \"1\" \"yes\", or \"on\" when " -"a request is received via SSL. So, this function returns \"https\" if such " -"a value is found, and \"http\" otherwise." +"This function is useful when creating a gateway that wraps CGI or a CGI-like " +"protocol such as FastCGI. Typically, servers providing such protocols will " +"include a ``HTTPS`` variable with a value of \"1\" \"yes\", or \"on\" when a " +"request is received via SSL. So, this function returns \"https\" if such a " +"value is found, and \"http\" otherwise." msgstr "" #: ../../library/wsgiref.rst:64 @@ -120,22 +121,22 @@ msgid "" "path, for example to treat the path as a series of dictionary keys. This " "routine modifies the passed-in environment to make it suitable for invoking " "another WSGI application that is located at the target URI. For example, if " -"there is a WSGI application at ``/foo``, and the request URI path is " -"``/foo/bar/baz``, and the WSGI application at ``/foo`` calls " -":func:`shift_path_info`, it will receive the string \"bar\", and the " -"environment will be updated to be suitable for passing to a WSGI application" -" at ``/foo/bar``. That is, ``SCRIPT_NAME`` will change from ``/foo`` to " -"``/foo/bar``, and ``PATH_INFO`` will change from ``/bar/baz`` to ``/baz``." +"there is a WSGI application at ``/foo``, and the request URI path is ``/foo/" +"bar/baz``, and the WSGI application at ``/foo`` calls :func:" +"`shift_path_info`, it will receive the string \"bar\", and the environment " +"will be updated to be suitable for passing to a WSGI application at ``/foo/" +"bar``. That is, ``SCRIPT_NAME`` will change from ``/foo`` to ``/foo/bar``, " +"and ``PATH_INFO`` will change from ``/bar/baz`` to ``/baz``." msgstr "" #: ../../library/wsgiref.rst:95 msgid "" -"When ``PATH_INFO`` is just a \"/\", this routine returns an empty string and" -" appends a trailing slash to ``SCRIPT_NAME``, even though empty path " -"segments are normally ignored, and ``SCRIPT_NAME`` doesn't normally end in a" -" slash. This is intentional behavior, to ensure that an application can " -"tell the difference between URIs ending in ``/x`` from ones ending in " -"``/x/`` when using this routine to do object traversal." +"When ``PATH_INFO`` is just a \"/\", this routine returns an empty string and " +"appends a trailing slash to ``SCRIPT_NAME``, even though empty path segments " +"are normally ignored, and ``SCRIPT_NAME`` doesn't normally end in a slash. " +"This is intentional behavior, to ensure that an application can tell the " +"difference between URIs ending in ``/x`` from ones ending in ``/x/`` when " +"using this routine to do object traversal." msgstr "" #: ../../library/wsgiref.rst:105 @@ -146,9 +147,9 @@ msgstr "" msgid "" "This routine adds various parameters required for WSGI, including " "``HTTP_HOST``, ``SERVER_NAME``, ``SERVER_PORT``, ``REQUEST_METHOD``, " -"``SCRIPT_NAME``, ``PATH_INFO``, and all of the :pep:`3333`\\ -defined " -"``wsgi.*`` variables. It only supplies default values, and does not replace" -" any existing settings for these variables." +"``SCRIPT_NAME``, ``PATH_INFO``, and all of the :pep:`3333`\\ -defined ``wsgi." +"*`` variables. It only supplies default values, and does not replace any " +"existing settings for these variables." msgstr "" #: ../../library/wsgiref.rst:113 @@ -171,7 +172,7 @@ msgstr "" #: ../../library/wsgiref.rst:147 msgid "" -"Return true if 'header_name' is an HTTP/1.1 \"Hop-by-Hop\" header, as " +"Return ``True`` if 'header_name' is an HTTP/1.1 \"Hop-by-Hop\" header, as " "defined by :rfc:`2616`." msgstr "" @@ -180,17 +181,17 @@ msgid "" "A wrapper to convert a file-like object to an :term:`iterator`. The " "resulting objects support both :meth:`__getitem__` and :meth:`__iter__` " "iteration styles, for compatibility with Python 2.1 and Jython. As the " -"object is iterated over, the optional *blksize* parameter will be repeatedly" -" passed to the *filelike* object's :meth:`read` method to obtain bytestrings" -" to yield. When :meth:`read` returns an empty bytestring, iteration is " -"ended and is not resumable." +"object is iterated over, the optional *blksize* parameter will be repeatedly " +"passed to the *filelike* object's :meth:`read` method to obtain bytestrings " +"to yield. When :meth:`read` returns an empty bytestring, iteration is ended " +"and is not resumable." msgstr "" #: ../../library/wsgiref.rst:160 msgid "" -"If *filelike* has a :meth:`close` method, the returned object will also have" -" a :meth:`close` method, and it will invoke the *filelike* object's " -":meth:`close` method when called." +"If *filelike* has a :meth:`close` method, the returned object will also have " +"a :meth:`close` method, and it will invoke the *filelike* object's :meth:" +"`close` method when called." msgstr "" #: ../../library/wsgiref.rst:179 @@ -212,33 +213,33 @@ msgstr "" #: ../../library/wsgiref.rst:195 msgid "" -":class:`Headers` objects support typical mapping operations including " -":meth:`__getitem__`, :meth:`get`, :meth:`__setitem__`, :meth:`setdefault`, " -":meth:`__delitem__` and :meth:`__contains__`. For each of these methods, " -"the key is the header name (treated case-insensitively), and the value is " -"the first value associated with that header name. Setting a header deletes " -"any existing values for that header, then adds a new value at the end of the" -" wrapped header list. Headers' existing order is generally maintained, with" -" new headers added to the end of the wrapped list." +":class:`Headers` objects support typical mapping operations including :meth:" +"`__getitem__`, :meth:`get`, :meth:`__setitem__`, :meth:`setdefault`, :meth:" +"`__delitem__` and :meth:`__contains__`. For each of these methods, the key " +"is the header name (treated case-insensitively), and the value is the first " +"value associated with that header name. Setting a header deletes any " +"existing values for that header, then adds a new value at the end of the " +"wrapped header list. Headers' existing order is generally maintained, with " +"new headers added to the end of the wrapped list." msgstr "" #: ../../library/wsgiref.rst:204 msgid "" -"Unlike a dictionary, :class:`Headers` objects do not raise an error when you" -" try to get or delete a key that isn't in the wrapped header list. Getting a" -" nonexistent header just returns ``None``, and deleting a nonexistent header" -" does nothing." +"Unlike a dictionary, :class:`Headers` objects do not raise an error when you " +"try to get or delete a key that isn't in the wrapped header list. Getting a " +"nonexistent header just returns ``None``, and deleting a nonexistent header " +"does nothing." msgstr "" #: ../../library/wsgiref.rst:209 msgid "" -":class:`Headers` objects also support :meth:`keys`, :meth:`values`, and " -":meth:`items` methods. The lists returned by :meth:`keys` and :meth:`items`" -" can include the same key more than once if there is a multi-valued header." -" The ``len()`` of a :class:`Headers` object is the same as the length of " -"its :meth:`items`, which is the same as the length of the wrapped header " -"list. In fact, the :meth:`items` method just returns a copy of the wrapped " -"header list." +":class:`Headers` objects also support :meth:`keys`, :meth:`values`, and :" +"meth:`items` methods. The lists returned by :meth:`keys` and :meth:`items` " +"can include the same key more than once if there is a multi-valued header. " +"The ``len()`` of a :class:`Headers` object is the same as the length of its :" +"meth:`items`, which is the same as the length of the wrapped header list. " +"In fact, the :meth:`items` method just returns a copy of the wrapped header " +"list." msgstr "" #: ../../library/wsgiref.rst:216 @@ -246,15 +247,15 @@ msgid "" "Calling ``bytes()`` on a :class:`Headers` object returns a formatted " "bytestring suitable for transmission as HTTP response headers. Each header " "is placed on a line with its value, separated by a colon and a space. Each " -"line is terminated by a carriage return and line feed, and the bytestring is" -" terminated with a blank line." +"line is terminated by a carriage return and line feed, and the bytestring is " +"terminated with a blank line." msgstr "" #: ../../library/wsgiref.rst:222 msgid "" -"In addition to their mapping interface and formatting features, " -":class:`Headers` objects also have the following methods for querying and " -"adding multi-valued headers, and for adding headers with MIME parameters:" +"In addition to their mapping interface and formatting features, :class:" +"`Headers` objects also have the following methods for querying and adding " +"multi-valued headers, and for adding headers with MIME parameters:" msgstr "" #: ../../library/wsgiref.rst:229 @@ -264,8 +265,8 @@ msgstr "" #: ../../library/wsgiref.rst:231 msgid "" "The returned list will be sorted in the order they appeared in the original " -"header list or were added to this instance, and may contain duplicates. Any" -" fields deleted and re-inserted are always appended to the header list. If " +"header list or were added to this instance, and may contain duplicates. Any " +"fields deleted and re-inserted are always appended to the header list. If " "no fields exist with the given name, returns an empty list." msgstr "" @@ -304,10 +305,10 @@ msgid "" "This module implements a simple HTTP server (based on :mod:`http.server`) " "that serves WSGI applications. Each server instance serves a single WSGI " "application on a given host and port. If you want to serve multiple " -"applications on a single host and port, you should create a WSGI application" -" that parses ``PATH_INFO`` to select which application to invoke for each " -"request. (E.g., using the :func:`shift_path_info` function from " -":mod:`wsgiref.util`.)" +"applications on a single host and port, you should create a WSGI application " +"that parses ``PATH_INFO`` to select which application to invoke for each " +"request. (E.g., using the :func:`shift_path_info` function from :mod:" +"`wsgiref.util`.)" msgstr "" #: ../../library/wsgiref.rst:279 @@ -315,39 +316,37 @@ msgid "" "Create a new WSGI server listening on *host* and *port*, accepting " "connections for *app*. The return value is an instance of the supplied " "*server_class*, and will process requests using the specified " -"*handler_class*. *app* must be a WSGI application object, as defined by " -":pep:`3333`." +"*handler_class*. *app* must be a WSGI application object, as defined by :" +"pep:`3333`." msgstr "" #: ../../library/wsgiref.rst:300 msgid "" "This function is a small but complete WSGI application that returns a text " "page containing the message \"Hello world!\" and a list of the key/value " -"pairs provided in the *environ* parameter. It's useful for verifying that a" -" WSGI server (such as :mod:`wsgiref.simple_server`) is able to run a simple " +"pairs provided in the *environ* parameter. It's useful for verifying that a " +"WSGI server (such as :mod:`wsgiref.simple_server`) is able to run a simple " "WSGI application correctly." msgstr "" #: ../../library/wsgiref.rst:309 msgid "" -"Create a :class:`WSGIServer` instance. *server_address* should be a " -"``(host,port)`` tuple, and *RequestHandlerClass* should be the subclass of " -":class:`http.server.BaseHTTPRequestHandler` that will be used to process " -"requests." +"Create a :class:`WSGIServer` instance. *server_address* should be a ``(host," +"port)`` tuple, and *RequestHandlerClass* should be the subclass of :class:" +"`http.server.BaseHTTPRequestHandler` that will be used to process requests." msgstr "" #: ../../library/wsgiref.rst:314 msgid "" -"You do not normally need to call this constructor, as the " -":func:`make_server` function can handle all the details for you." +"You do not normally need to call this constructor, as the :func:" +"`make_server` function can handle all the details for you." msgstr "" #: ../../library/wsgiref.rst:317 msgid "" -":class:`WSGIServer` is a subclass of :class:`http.server.HTTPServer`, so all" -" of its methods (such as :meth:`serve_forever` and :meth:`handle_request`) " -"are available. :class:`WSGIServer` also provides these WSGI-specific " -"methods:" +":class:`WSGIServer` is a subclass of :class:`http.server.HTTPServer`, so all " +"of its methods (such as :meth:`serve_forever` and :meth:`handle_request`) " +"are available. :class:`WSGIServer` also provides these WSGI-specific methods:" msgstr "" #: ../../library/wsgiref.rst:324 @@ -362,25 +361,25 @@ msgstr "" #: ../../library/wsgiref.rst:332 msgid "" -"Normally, however, you do not need to use these additional methods, as " -":meth:`set_app` is normally called by :func:`make_server`, and the " -":meth:`get_app` exists mainly for the benefit of request handler instances." +"Normally, however, you do not need to use these additional methods, as :meth:" +"`set_app` is normally called by :func:`make_server`, and the :meth:`get_app` " +"exists mainly for the benefit of request handler instances." msgstr "" #: ../../library/wsgiref.rst:339 msgid "" "Create an HTTP handler for the given *request* (i.e. a socket), " -"*client_address* (a ``(host,port)`` tuple), and *server* " -"(:class:`WSGIServer` instance)." +"*client_address* (a ``(host,port)`` tuple), and *server* (:class:" +"`WSGIServer` instance)." msgstr "" #: ../../library/wsgiref.rst:342 msgid "" "You do not need to create instances of this class directly; they are " "automatically created as needed by :class:`WSGIServer` objects. You can, " -"however, subclass this class and supply it as a *handler_class* to the " -":func:`make_server` function. Some possibly relevant methods for overriding" -" in subclasses:" +"however, subclass this class and supply it as a *handler_class* to the :func:" +"`make_server` function. Some possibly relevant methods for overriding in " +"subclasses:" msgstr "" #: ../../library/wsgiref.rst:351 @@ -413,8 +412,8 @@ msgstr "" #: ../../library/wsgiref.rst:379 msgid "" "When creating new WSGI application objects, frameworks, servers, or " -"middleware, it can be useful to validate the new code's conformance using " -":mod:`wsgiref.validate`. This module provides a function that creates WSGI " +"middleware, it can be useful to validate the new code's conformance using :" +"mod:`wsgiref.validate`. This module provides a function that creates WSGI " "application objects that validate communications between a WSGI server or " "gateway and a WSGI application object, to check both sides for protocol " "conformance." @@ -449,8 +448,8 @@ msgid "" "raised; note, however, that how these errors are handled is server-" "dependent. For example, :mod:`wsgiref.simple_server` and other servers " "based on :mod:`wsgiref.handlers` (that don't override the error handling " -"methods to do something else) will simply output a message that an error has" -" occurred, and dump the traceback to ``sys.stderr`` or some other error " +"methods to do something else) will simply output a message that an error has " +"occurred, and dump the traceback to ``sys.stderr`` or some other error " "stream." msgstr "" @@ -479,17 +478,17 @@ msgstr "" #: ../../library/wsgiref.rst:455 msgid "" "CGI-based invocation via ``sys.stdin``, ``sys.stdout``, ``sys.stderr`` and " -"``os.environ``. This is useful when you have a WSGI application and want to" -" run it as a CGI script. Simply invoke ``CGIHandler().run(app)``, where " +"``os.environ``. This is useful when you have a WSGI application and want to " +"run it as a CGI script. Simply invoke ``CGIHandler().run(app)``, where " "``app`` is the WSGI application object you wish to invoke." msgstr "" #: ../../library/wsgiref.rst:460 msgid "" -"This class is a subclass of :class:`BaseCGIHandler` that sets " -"``wsgi.run_once`` to true, ``wsgi.multithread`` to false, and " -"``wsgi.multiprocess`` to true, and always uses :mod:`sys` and :mod:`os` to " -"obtain the necessary CGI streams and environment." +"This class is a subclass of :class:`BaseCGIHandler` that sets ``wsgi." +"run_once`` to true, ``wsgi.multithread`` to false, and ``wsgi.multiprocess`` " +"to true, and always uses :mod:`sys` and :mod:`os` to obtain the necessary " +"CGI streams and environment." msgstr "" #: ../../library/wsgiref.rst:468 @@ -501,8 +500,8 @@ msgstr "" #: ../../library/wsgiref.rst:472 msgid "" -"By default, IIS gives a ``PATH_INFO`` that duplicates the ``SCRIPT_NAME`` at" -" the front, causing problems for WSGI applications that wish to implement " +"By default, IIS gives a ``PATH_INFO`` that duplicates the ``SCRIPT_NAME`` at " +"the front, causing problems for WSGI applications that wish to implement " "routing. This handler strips any such duplicated path." msgstr "" @@ -510,9 +509,9 @@ msgstr "" msgid "" "IIS can be configured to pass the correct ``PATH_INFO``, but this causes " "another bug where ``PATH_TRANSLATED`` is wrong. Luckily this variable is " -"rarely used and is not guaranteed by WSGI. On IIS<7, though, the setting can" -" only be made on a vhost level, affecting all other script mappings, many of" -" which break when exposed to the ``PATH_TRANSLATED`` bug. For this reason " +"rarely used and is not guaranteed by WSGI. On IIS<7, though, the setting can " +"only be made on a vhost level, affecting all other script mappings, many of " +"which break when exposed to the ``PATH_TRANSLATED`` bug. For this reason " "IIS<7 is almost never deployed with the fix. (Even IIS7 rarely uses it " "because there is still no UI for it.)" msgstr "" @@ -520,18 +519,18 @@ msgstr "" #: ../../library/wsgiref.rst:484 msgid "" "There is no way for CGI code to tell whether the option was set, so a " -"separate handler class is provided. It is used in the same way as " -":class:`CGIHandler`, i.e., by calling ``IISCGIHandler().run(app)``, where " -"``app`` is the WSGI application object you wish to invoke." +"separate handler class is provided. It is used in the same way as :class:" +"`CGIHandler`, i.e., by calling ``IISCGIHandler().run(app)``, where ``app`` " +"is the WSGI application object you wish to invoke." msgstr "" #: ../../library/wsgiref.rst:494 msgid "" -"Similar to :class:`CGIHandler`, but instead of using the :mod:`sys` and " -":mod:`os` modules, the CGI environment and I/O streams are specified " -"explicitly. The *multithread* and *multiprocess* values are used to set the " -"``wsgi.multithread`` and ``wsgi.multiprocess`` flags for any applications " -"run by the handler instance." +"Similar to :class:`CGIHandler`, but instead of using the :mod:`sys` and :mod:" +"`os` modules, the CGI environment and I/O streams are specified explicitly. " +"The *multithread* and *multiprocess* values are used to set the ``wsgi." +"multithread`` and ``wsgi.multiprocess`` flags for any applications run by " +"the handler instance." msgstr "" #: ../../library/wsgiref.rst:500 @@ -552,12 +551,12 @@ msgstr "" #: ../../library/wsgiref.rst:513 msgid "" -"This class is a subclass of :class:`BaseHandler`. It overrides the " -":meth:`__init__`, :meth:`get_stdin`, :meth:`get_stderr`, " -":meth:`add_cgi_vars`, :meth:`_write`, and :meth:`_flush` methods to support " -"explicitly setting the environment and streams via the constructor. The " -"supplied environment and streams are stored in the :attr:`stdin`, " -":attr:`stdout`, :attr:`stderr`, and :attr:`environ` attributes." +"This class is a subclass of :class:`BaseHandler`. It overrides the :meth:" +"`__init__`, :meth:`get_stdin`, :meth:`get_stderr`, :meth:`add_cgi_vars`, :" +"meth:`_write`, and :meth:`_flush` methods to support explicitly setting the " +"environment and streams via the constructor. The supplied environment and " +"streams are stored in the :attr:`stdin`, :attr:`stdout`, :attr:`stderr`, " +"and :attr:`environ` attributes." msgstr "" #: ../../library/wsgiref.rst:520 @@ -568,9 +567,9 @@ msgstr "" #: ../../library/wsgiref.rst:526 msgid "" -"This is an abstract base class for running WSGI applications. Each instance" -" will handle a single HTTP request, although in principle you could create a" -" subclass that was reusable for multiple requests." +"This is an abstract base class for running WSGI applications. Each instance " +"will handle a single HTTP request, although in principle you could create a " +"subclass that was reusable for multiple requests." msgstr "" #: ../../library/wsgiref.rst:530 @@ -598,8 +597,8 @@ msgstr "" msgid "" "Buffer the bytes *data* for transmission to the client. It's okay if this " "method actually transmits the data; :class:`BaseHandler` just separates " -"write and flush operations for greater efficiency when the underlying system" -" actually has such a distinction." +"write and flush operations for greater efficiency when the underlying system " +"actually has such a distinction." msgstr "" #: ../../library/wsgiref.rst:554 @@ -631,8 +630,8 @@ msgid "" "Here are some other methods and attributes you may wish to override. This " "list is only a summary, however, and does not include every method that can " "be overridden. You should consult the docstrings and source code for " -"additional information before attempting to create a customized " -":class:`BaseHandler` subclass." +"additional information before attempting to create a customized :class:" +"`BaseHandler` subclass." msgstr "" #: ../../library/wsgiref.rst:580 @@ -648,8 +647,8 @@ msgstr "" #: ../../library/wsgiref.rst:592 msgid "" -"The value to be used for the ``wsgi.multiprocess`` environment variable. It" -" defaults to true in :class:`BaseHandler`, but may have a different default " +"The value to be used for the ``wsgi.multiprocess`` environment variable. It " +"defaults to true in :class:`BaseHandler`, but may have a different default " "(or be set by the constructor) in the other subclasses." msgstr "" @@ -663,9 +662,9 @@ msgstr "" #: ../../library/wsgiref.rst:606 msgid "" "The default environment variables to be included in every request's WSGI " -"environment. By default, this is a copy of ``os.environ`` at the time that " -":mod:`wsgiref.handlers` was imported, but subclasses can either create their" -" own at the class or instance level. Note that the dictionary should be " +"environment. By default, this is a copy of ``os.environ`` at the time that :" +"mod:`wsgiref.handlers` was imported, but subclasses can either create their " +"own at the class or instance level. Note that the dictionary should be " "considered read-only, since the default value is shared between multiple " "classes and instances." msgstr "" @@ -688,9 +687,9 @@ msgstr "" #: ../../library/wsgiref.rst:628 msgid "" "Return the URL scheme being used for the current request. The default " -"implementation uses the :func:`guess_scheme` function from " -":mod:`wsgiref.util` to guess whether the scheme should be \"http\" or " -"\"https\", based on the current request's :attr:`environ` variables." +"implementation uses the :func:`guess_scheme` function from :mod:`wsgiref." +"util` to guess whether the scheme should be \"http\" or \"https\", based on " +"the current request's :attr:`environ` variables." msgstr "" #: ../../library/wsgiref.rst:636 @@ -699,8 +698,8 @@ msgid "" "The default implementation uses all of the above methods and attributes, " "plus the :meth:`get_stdin`, :meth:`get_stderr`, and :meth:`add_cgi_vars` " "methods and the :attr:`wsgi_file_wrapper` attribute. It also inserts a " -"``SERVER_SOFTWARE`` key if not present, as long as the :attr:`origin_server`" -" attribute is a true value and the :attr:`server_software` attribute is set." +"``SERVER_SOFTWARE`` key if not present, as long as the :attr:`origin_server` " +"attribute is a true value and the :attr:`server_software` attribute is set." msgstr "" #: ../../library/wsgiref.rst:643 @@ -709,9 +708,9 @@ msgstr "" #: ../../library/wsgiref.rst:648 msgid "" -"Log the *exc_info* tuple in the server log. *exc_info* is a ``(type, value," -" traceback)`` tuple. The default implementation simply writes the traceback" -" to the request's ``wsgi.errors`` stream and flushes it. Subclasses can " +"Log the *exc_info* tuple in the server log. *exc_info* is a ``(type, value, " +"traceback)`` tuple. The default implementation simply writes the traceback " +"to the request's ``wsgi.errors`` stream and flushes it. Subclasses can " "override this method to change the format or retarget the output, mail the " "traceback to an administrator, or whatever other action may be deemed " "suitable." @@ -719,8 +718,8 @@ msgstr "" #: ../../library/wsgiref.rst:657 msgid "" -"The maximum number of frames to include in tracebacks output by the default " -":meth:`log_exception` method. If ``None``, all frames are included." +"The maximum number of frames to include in tracebacks output by the default :" +"meth:`log_exception` method. If ``None``, all frames are included." msgstr "" #: ../../library/wsgiref.rst:663 @@ -731,32 +730,30 @@ msgstr "" #: ../../library/wsgiref.rst:666 msgid "" -"This method can access the current error information using " -"``sys.exc_info()``, and should pass that information to *start_response* " -"when calling it (as described in the \"Error Handling\" section of " -":pep:`3333`)." +"This method can access the current error information using ``sys." +"exc_info()``, and should pass that information to *start_response* when " +"calling it (as described in the \"Error Handling\" section of :pep:`3333`)." msgstr "" #: ../../library/wsgiref.rst:670 msgid "" -"The default implementation just uses the :attr:`error_status`, " -":attr:`error_headers`, and :attr:`error_body` attributes to generate an " -"output page. Subclasses can override this to produce more dynamic error " -"output." +"The default implementation just uses the :attr:`error_status`, :attr:" +"`error_headers`, and :attr:`error_body` attributes to generate an output " +"page. Subclasses can override this to produce more dynamic error output." msgstr "" #: ../../library/wsgiref.rst:674 msgid "" -"Note, however, that it's not recommended from a security perspective to spit" -" out diagnostics to any old user; ideally, you should have to do something " -"special to enable diagnostic output, which is why the default implementation" -" doesn't include any." +"Note, however, that it's not recommended from a security perspective to spit " +"out diagnostics to any old user; ideally, you should have to do something " +"special to enable diagnostic output, which is why the default implementation " +"doesn't include any." msgstr "" #: ../../library/wsgiref.rst:682 msgid "" -"The HTTP status used for error responses. This should be a status string as" -" defined in :pep:`3333`; it defaults to a 500 code and message." +"The HTTP status used for error responses. This should be a status string as " +"defined in :pep:`3333`; it defaults to a 500 code and message." msgstr "" #: ../../library/wsgiref.rst:688 @@ -801,16 +798,16 @@ msgstr "" #: ../../library/wsgiref.rst:723 msgid "" -"This attribute should be set to a true value if the handler's :meth:`_write`" -" and :meth:`_flush` are being used to communicate directly to the client, " +"This attribute should be set to a true value if the handler's :meth:`_write` " +"and :meth:`_flush` are being used to communicate directly to the client, " "rather than via a CGI-like gateway protocol that wants the HTTP status in a " "special ``Status:`` header." msgstr "" #: ../../library/wsgiref.rst:728 msgid "" -"This attribute's default value is true in :class:`BaseHandler`, but false in" -" :class:`BaseCGIHandler` and :class:`CGIHandler`." +"This attribute's default value is true in :class:`BaseHandler`, but false " +"in :class:`BaseCGIHandler` and :class:`CGIHandler`." msgstr "" #: ../../library/wsgiref.rst:734 @@ -821,14 +818,14 @@ msgstr "" #: ../../library/wsgiref.rst:740 msgid "" -"Transcode CGI variables from ``os.environ`` to PEP 3333 \"bytes in unicode\"" -" strings, returning a new dictionary. This function is used by " -":class:`CGIHandler` and :class:`IISCGIHandler` in place of directly using " -"``os.environ``, which is not necessarily WSGI-compliant on all platforms and" -" web servers using Python 3 -- specifically, ones where the OS's actual " +"Transcode CGI variables from ``os.environ`` to PEP 3333 \"bytes in unicode\" " +"strings, returning a new dictionary. This function is used by :class:" +"`CGIHandler` and :class:`IISCGIHandler` in place of directly using ``os." +"environ``, which is not necessarily WSGI-compliant on all platforms and web " +"servers using Python 3 -- specifically, ones where the OS's actual " "environment is Unicode (i.e. Windows), or ones where the environment is " -"bytes, but the system encoding used by Python to decode it is anything other" -" than ISO-8859-1 (e.g. Unix systems using UTF-8)." +"bytes, but the system encoding used by Python to decode it is anything other " +"than ISO-8859-1 (e.g. Unix systems using UTF-8)." msgstr "" #: ../../library/wsgiref.rst:749 diff --git a/library/xdrlib.po b/library/xdrlib.po index e3d3d4f9e..4b8f9659f 100644 --- a/library/xdrlib.po +++ b/library/xdrlib.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" "Last-Translator: Leticia Portella , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,21 +40,21 @@ msgstr "" #: ../../library/xdrlib.rst:19 msgid "" -"The :mod:`xdrlib` module defines two classes, one for packing variables into" -" XDR representation, and another for unpacking from XDR representation. " +"The :mod:`xdrlib` module defines two classes, one for packing variables into " +"XDR representation, and another for unpacking from XDR representation. " "There are also two exception classes." msgstr "" #: ../../library/xdrlib.rst:26 msgid "" -":class:`Packer` is the class for packing data into XDR representation. The " -":class:`Packer` class is instantiated with no arguments." +":class:`Packer` is the class for packing data into XDR representation. The :" +"class:`Packer` class is instantiated with no arguments." msgstr "" #: ../../library/xdrlib.rst:32 msgid "" -"``Unpacker`` is the complementary class which unpacks XDR data values from a" -" string buffer. The input buffer is given as *data*." +"``Unpacker`` is the complementary class which unpacks XDR data values from a " +"string buffer. The input buffer is given as *data*." msgstr "" #: ../../library/xdrlib.rst:40 @@ -94,9 +95,9 @@ msgstr "" msgid "" "In general, you can pack any of the most common XDR data types by calling " "the appropriate ``pack_type()`` method. Each method takes a single " -"argument, the value to pack. The following simple data type packing methods" -" are supported: :meth:`pack_uint`, :meth:`pack_int`, :meth:`pack_enum`, " -":meth:`pack_bool`, :meth:`pack_uhyper`, and :meth:`pack_hyper`." +"argument, the value to pack. The following simple data type packing methods " +"are supported: :meth:`pack_uint`, :meth:`pack_int`, :meth:`pack_enum`, :meth:" +"`pack_bool`, :meth:`pack_uhyper`, and :meth:`pack_hyper`." msgstr "" #: ../../library/xdrlib.rst:72 @@ -113,9 +114,9 @@ msgstr "" #: ../../library/xdrlib.rst:84 msgid "" -"Packs a fixed length string, *s*. *n* is the length of the string but it is" -" *not* packed into the data buffer. The string is padded with null bytes if" -" necessary to guaranteed 4 byte alignment." +"Packs a fixed length string, *s*. *n* is the length of the string but it is " +"*not* packed into the data buffer. The string is padded with null bytes if " +"necessary to guaranteed 4 byte alignment." msgstr "" #: ../../library/xdrlib.rst:91 @@ -126,14 +127,13 @@ msgstr "" #: ../../library/xdrlib.rst:96 msgid "" "Packs a variable length string, *s*. The length of the string is first " -"packed as an unsigned integer, then the string data is packed with " -":meth:`pack_fstring`." +"packed as an unsigned integer, then the string data is packed with :meth:" +"`pack_fstring`." msgstr "" #: ../../library/xdrlib.rst:103 msgid "" -"Packs a variable length opaque data string, similarly to " -":meth:`pack_string`." +"Packs a variable length opaque data string, similarly to :meth:`pack_string`." msgstr "" #: ../../library/xdrlib.rst:108 @@ -161,8 +161,8 @@ msgstr "" #: ../../library/xdrlib.rst:131 msgid "" -"Packs a fixed length list (*array*) of homogeneous items. *n* is the length" -" of the list; it is *not* packed into the buffer, but a :exc:`ValueError` " +"Packs a fixed length list (*array*) of homogeneous items. *n* is the length " +"of the list; it is *not* packed into the buffer, but a :exc:`ValueError` " "exception is raised if ``len(array)`` is not equal to *n*. As above, " "*pack_item* is the function used to pack each element." msgstr "" @@ -170,8 +170,8 @@ msgstr "" #: ../../library/xdrlib.rst:139 msgid "" "Packs a variable length *list* of homogeneous items. First, the length of " -"the list is packed as an unsigned integer, then each element is packed as in" -" :meth:`pack_farray` above." +"the list is packed as an unsigned integer, then each element is packed as " +"in :meth:`pack_farray` above." msgstr "" #: ../../library/xdrlib.rst:147 @@ -202,8 +202,8 @@ msgstr "" #: ../../library/xdrlib.rst:175 msgid "" -"Indicates unpack completion. Raises an :exc:`Error` exception if all of the" -" data has not been unpacked." +"Indicates unpack completion. Raises an :exc:`Error` exception if all of the " +"data has not been unpacked." msgstr "" #: ../../library/xdrlib.rst:178 @@ -219,8 +219,8 @@ msgstr "" #: ../../library/xdrlib.rst:190 msgid "" -"Unpacks a double-precision floating point number, similarly to " -":meth:`unpack_float`." +"Unpacks a double-precision floating point number, similarly to :meth:" +"`unpack_float`." msgstr "" #: ../../library/xdrlib.rst:193 @@ -231,33 +231,32 @@ msgstr "" #: ../../library/xdrlib.rst:198 msgid "" "Unpacks and returns a fixed length string. *n* is the number of characters " -"expected. Padding with null bytes to guaranteed 4 byte alignment is " -"assumed." +"expected. Padding with null bytes to guaranteed 4 byte alignment is assumed." msgstr "" #: ../../library/xdrlib.rst:204 msgid "" -"Unpacks and returns a fixed length opaque data stream, similarly to " -":meth:`unpack_fstring`." +"Unpacks and returns a fixed length opaque data stream, similarly to :meth:" +"`unpack_fstring`." msgstr "" #: ../../library/xdrlib.rst:210 msgid "" "Unpacks and returns a variable length string. The length of the string is " -"first unpacked as an unsigned integer, then the string data is unpacked with" -" :meth:`unpack_fstring`." +"first unpacked as an unsigned integer, then the string data is unpacked " +"with :meth:`unpack_fstring`." msgstr "" #: ../../library/xdrlib.rst:217 msgid "" -"Unpacks and returns a variable length opaque data string, similarly to " -":meth:`unpack_string`." +"Unpacks and returns a variable length opaque data string, similarly to :meth:" +"`unpack_string`." msgstr "" #: ../../library/xdrlib.rst:223 msgid "" -"Unpacks and returns a variable length byte stream, similarly to " -":meth:`unpack_string`." +"Unpacks and returns a variable length byte stream, similarly to :meth:" +"`unpack_string`." msgstr "" #: ../../library/xdrlib.rst:226 @@ -283,8 +282,8 @@ msgstr "" #: ../../library/xdrlib.rst:247 msgid "" "Unpacks and returns a variable length *list* of homogeneous items. First, " -"the length of the list is unpacked as an unsigned integer, then each element" -" is unpacked as in :meth:`unpack_farray` above." +"the length of the list is unpacked as an unsigned integer, then each element " +"is unpacked as in :meth:`unpack_farray` above." msgstr "" #: ../../library/xdrlib.rst:255 @@ -297,8 +296,8 @@ msgstr "" #: ../../library/xdrlib.rst:262 msgid "" -"The base exception class. :exc:`Error` has a single public attribute " -":attr:`msg` containing the description of the error." +"The base exception class. :exc:`Error` has a single public attribute :attr:" +"`msg` containing the description of the error." msgstr "" #: ../../library/xdrlib.rst:268 diff --git a/library/xml.dom.minidom.po b/library/xml.dom.minidom.po index 572d8844f..8da97a605 100644 --- a/library/xml.dom.minidom.po +++ b/library/xml.dom.minidom.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-02 11:35+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,8 +37,8 @@ msgid "" ":mod:`xml.dom.minidom` is a minimal implementation of the Document Object " "Model interface, with an API similar to that in other languages. It is " "intended to be simpler than the full DOM and also significantly smaller. " -"Users who are not already proficient with the DOM should consider using the " -":mod:`xml.etree.ElementTree` module for their XML processing instead." +"Users who are not already proficient with the DOM should consider using the :" +"mod:`xml.etree.ElementTree` module for their XML processing instead." msgstr "" #: ../../library/xml.dom.minidom.rst:24 @@ -48,14 +50,13 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:29 msgid "" -"DOM applications typically start by parsing some XML into a DOM. With " -":mod:`xml.dom.minidom`, this is done through the parse functions::" +"DOM applications typically start by parsing some XML into a DOM. With :mod:" +"`xml.dom.minidom`, this is done through the parse functions::" msgstr "" #: ../../library/xml.dom.minidom.rst:41 msgid "" -"The :func:`parse` function can take either a filename or an open file " -"object." +"The :func:`parse` function can take either a filename or an open file object." msgstr "" #: ../../library/xml.dom.minidom.rst:46 @@ -75,15 +76,15 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:58 msgid "" -"Return a :class:`Document` that represents the *string*. This method creates" -" an :class:`io.StringIO` object for the string and passes that on to " -":func:`parse`." +"Return a :class:`Document` that represents the *string*. This method creates " +"an :class:`io.StringIO` object for the string and passes that on to :func:" +"`parse`." msgstr "" #: ../../library/xml.dom.minidom.rst:61 msgid "" -"Both functions return a :class:`Document` object representing the content of" -" the document." +"Both functions return a :class:`Document` object representing the content of " +"the document." msgstr "" #: ../../library/xml.dom.minidom.rst:64 @@ -91,8 +92,8 @@ msgid "" "What the :func:`parse` and :func:`parseString` functions do is connect an " "XML parser with a \"DOM builder\" that can accept parse events from any SAX " "parser and convert them into a DOM tree. The name of the functions are " -"perhaps misleading, but are easy to grasp when learning the interfaces. The" -" parsing of the document will be completed before these functions return; " +"perhaps misleading, but are easy to grasp when learning the interfaces. The " +"parsing of the document will be completed before these functions return; " "it's simply that these functions do not provide a parser implementation " "themselves." msgstr "" @@ -100,9 +101,9 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:71 msgid "" "You can also create a :class:`Document` by calling a method on a \"DOM " -"Implementation\" object. You can get this object either by calling the " -":func:`getDOMImplementation` function in the :mod:`xml.dom` package or the " -":mod:`xml.dom.minidom` module. Once you have a :class:`Document`, you can " +"Implementation\" object. You can get this object either by calling the :" +"func:`getDOMImplementation` function in the :mod:`xml.dom` package or the :" +"mod:`xml.dom.minidom` module. Once you have a :class:`Document`, you can " "add child nodes to it to populate the DOM::" msgstr "" @@ -110,30 +111,29 @@ msgstr "" msgid "" "Once you have a DOM document object, you can access the parts of your XML " "document through its properties and methods. These properties are defined " -"in the DOM specification. The main property of the document object is the " -":attr:`documentElement` property. It gives you the main element in the XML " +"in the DOM specification. The main property of the document object is the :" +"attr:`documentElement` property. It gives you the main element in the XML " "document: the one that holds all others. Here is an example program::" msgstr "" #: ../../library/xml.dom.minidom.rst:95 msgid "" -"When you are finished with a DOM tree, you may optionally call the " -":meth:`unlink` method to encourage early cleanup of the now-unneeded " -"objects. :meth:`unlink` is an :mod:`xml.dom.minidom`\\ -specific extension " -"to the DOM API that renders the node and its descendants are essentially " -"useless. Otherwise, Python's garbage collector will eventually take care of" -" the objects in the tree." +"When you are finished with a DOM tree, you may optionally call the :meth:" +"`unlink` method to encourage early cleanup of the now-unneeded objects. :" +"meth:`unlink` is an :mod:`xml.dom.minidom`\\ -specific extension to the DOM " +"API that renders the node and its descendants are essentially useless. " +"Otherwise, Python's garbage collector will eventually take care of the " +"objects in the tree." msgstr "" #: ../../library/xml.dom.minidom.rst:104 msgid "" -"`Document Object Model (DOM) Level 1 Specification `_" +"`Document Object Model (DOM) Level 1 Specification `_" msgstr "" #: ../../library/xml.dom.minidom.rst:105 -msgid "" -"The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`." +msgid "The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`." msgstr "" #: ../../library/xml.dom.minidom.rst:111 @@ -142,9 +142,9 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:113 msgid "" -"The definition of the DOM API for Python is given as part of the " -":mod:`xml.dom` module documentation. This section lists the differences " -"between the API and :mod:`xml.dom.minidom`." +"The definition of the DOM API for Python is given as part of the :mod:`xml." +"dom` module documentation. This section lists the differences between the " +"API and :mod:`xml.dom.minidom`." msgstr "" #: ../../library/xml.dom.minidom.rst:120 @@ -153,15 +153,15 @@ msgid "" "collected on versions of Python without cyclic GC. Even when cyclic GC is " "available, using this can make large amounts of memory available sooner, so " "calling this on DOM objects as soon as they are no longer needed is good " -"practice. This only needs to be called on the :class:`Document` object, but" -" may be called on child nodes to discard children of that node." +"practice. This only needs to be called on the :class:`Document` object, but " +"may be called on child nodes to discard children of that node." msgstr "" #: ../../library/xml.dom.minidom.rst:127 msgid "" "You can avoid calling this method explicitly by using the :keyword:`with` " -"statement. The following code will automatically unlink *dom* when the " -":keyword:`!with` block is exited::" +"statement. The following code will automatically unlink *dom* when the :" +"keyword:`!with` block is exited::" msgstr "" #: ../../library/xml.dom.minidom.rst:137 @@ -189,9 +189,9 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:153 msgid "" "With an explicit *encoding* [1]_ argument, the result is a byte string in " -"the specified encoding. With no *encoding* argument, the result is a Unicode" -" string, and the XML declaration in the resulting string does not specify an" -" encoding. Encoding this string in an encoding other than UTF-8 is likely " +"the specified encoding. With no *encoding* argument, the result is a Unicode " +"string, and the XML declaration in the resulting string does not specify an " +"encoding. Encoding this string in an encoding other than UTF-8 is likely " "incorrect, since UTF-8 is the default encoding of XML." msgstr "" @@ -204,8 +204,8 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:166 msgid "" -"The *encoding* argument behaves like the corresponding argument of " -":meth:`toxml`." +"The *encoding* argument behaves like the corresponding argument of :meth:" +"`toxml`." msgstr "" #: ../../library/xml.dom.minidom.rst:173 @@ -256,8 +256,7 @@ msgid "" "IDL attributes map to instance attributes. For compatibility with the OMG " "IDL language mapping for Python, an attribute ``foo`` can also be accessed " "through accessor methods :meth:`_get_foo` and :meth:`_set_foo`. " -"``readonly`` attributes must not be changed; this is not enforced at " -"runtime." +"``readonly`` attributes must not be changed; this is not enforced at runtime." msgstr "" #: ../../library/xml.dom.minidom.rst:206 @@ -284,14 +283,14 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:217 msgid "" "``DOMException`` is currently not supported in :mod:`xml.dom.minidom`. " -"Instead, :mod:`xml.dom.minidom` uses standard Python exceptions such as " -":exc:`TypeError` and :exc:`AttributeError`." +"Instead, :mod:`xml.dom.minidom` uses standard Python exceptions such as :exc:" +"`TypeError` and :exc:`AttributeError`." msgstr "" #: ../../library/xml.dom.minidom.rst:221 msgid "" -":class:`NodeList` objects are implemented using Python's built-in list type." -" These objects provide the interface defined in the DOM specification, but " +":class:`NodeList` objects are implemented using Python's built-in list type. " +"These objects provide the interface defined in the DOM specification, but " "with earlier versions of Python they do not support the official API. They " "are, however, much more \"Pythonic\" than the interface defined in the W3C " "recommendations." @@ -304,16 +303,16 @@ msgstr "" #: ../../library/xml.dom.minidom.rst:229 msgid ":class:`DOMTimeStamp`" -msgstr "" +msgstr ":class:`DOMTimeStamp`" #: ../../library/xml.dom.minidom.rst:231 msgid ":class:`EntityReference`" -msgstr "" +msgstr ":class:`EntityReference`" #: ../../library/xml.dom.minidom.rst:233 msgid "" -"Most of these reflect information in the XML document that is not of general" -" utility to most DOM users." +"Most of these reflect information in the XML document that is not of general " +"utility to most DOM users." msgstr "" #: ../../library/xml.dom.minidom.rst:237 diff --git a/library/xml.dom.po b/library/xml.dom.po index 135e37ca9..cfccd145a 100644 --- a/library/xml.dom.po +++ b/library/xml.dom.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Cauê Baasch de Souza , 2019 # (Douglas da Silva) , 2019 # Juliana Karoline , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Juliana Karoline , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,17 +39,16 @@ msgstr "**Código Fonte:** :source:`Lib/xml/dom/__init__.py`" msgid "" "The Document Object Model, or \"DOM,\" is a cross-language API from the " "World Wide Web Consortium (W3C) for accessing and modifying XML documents. " -"A DOM implementation presents an XML document as a tree structure, or allows" -" client code to build such a structure from scratch. It then gives access " -"to the structure through a set of objects which provided well-known " -"interfaces." +"A DOM implementation presents an XML document as a tree structure, or allows " +"client code to build such a structure from scratch. It then gives access to " +"the structure through a set of objects which provided well-known interfaces." msgstr "" #: ../../library/xml.dom.rst:20 msgid "" -"The DOM is extremely useful for random-access applications. SAX only allows" -" you a view of one bit of the document at a time. If you are looking at one" -" SAX element, you have no access to another. If you are looking at a text " +"The DOM is extremely useful for random-access applications. SAX only allows " +"you a view of one bit of the document at a time. If you are looking at one " +"SAX element, you have no access to another. If you are looking at a text " "node, you have no access to a containing element. When you write a SAX " "application, you need to keep track of your program's position in the " "document somewhere in your own code. SAX does not do it for you. Also, if " @@ -58,15 +59,15 @@ msgstr "" msgid "" "Some applications are simply impossible in an event driven model with no " "access to a tree. Of course you could build some sort of tree yourself in " -"SAX events, but the DOM allows you to avoid writing that code. The DOM is a" -" standard tree representation for XML data." +"SAX events, but the DOM allows you to avoid writing that code. The DOM is a " +"standard tree representation for XML data." msgstr "" #: ../../library/xml.dom.rst:33 msgid "" -"The Document Object Model is being defined by the W3C in stages, or " -"\"levels\" in their terminology. The Python mapping of the API is " -"substantially based on the DOM Level 2 recommendation." +"The Document Object Model is being defined by the W3C in stages, or \"levels" +"\" in their terminology. The Python mapping of the API is substantially " +"based on the DOM Level 2 recommendation." msgstr "" #: ../../library/xml.dom.rst:45 @@ -87,8 +88,8 @@ msgstr "" msgid "" "Once you have a DOM document object, you can access the parts of your XML " "document through its properties and methods. These properties are defined " -"in the DOM specification; this portion of the reference manual describes the" -" interpretation of the specification in Python." +"in the DOM specification; this portion of the reference manual describes the " +"interpretation of the specification in Python." msgstr "" #: ../../library/xml.dom.rst:61 @@ -96,15 +97,15 @@ msgid "" "The specification provided by the W3C defines the DOM API for Java, " "ECMAScript, and OMG IDL. The Python mapping defined here is based in large " "part on the IDL version of the specification, but strict compliance is not " -"required (though implementations are free to support the strict mapping from" -" IDL). See section :ref:`dom-conformance` for a detailed discussion of " +"required (though implementations are free to support the strict mapping from " +"IDL). See section :ref:`dom-conformance` for a detailed discussion of " "mapping requirements." msgstr "" #: ../../library/xml.dom.rst:71 msgid "" -"`Document Object Model (DOM) Level 2 Specification " -"`_" +"`Document Object Model (DOM) Level 2 Specification `_" msgstr "" #: ../../library/xml.dom.rst:71 @@ -113,19 +114,18 @@ msgstr "" #: ../../library/xml.dom.rst:74 msgid "" -"`Document Object Model (DOM) Level 1 Specification `_" +"`Document Object Model (DOM) Level 1 Specification `_" msgstr "" #: ../../library/xml.dom.rst:74 -msgid "" -"The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`." +msgid "The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`." msgstr "" #: ../../library/xml.dom.rst:76 msgid "" -"`Python Language Mapping Specification `_" +"`Python Language Mapping Specification `_" msgstr "" #: ../../library/xml.dom.rst:77 @@ -144,9 +144,9 @@ msgstr "" msgid "" "Register the *factory* function with the name *name*. The factory function " "should return an object which implements the :class:`DOMImplementation` " -"interface. The factory function can return the same object every time, or a" -" new one for each call, as appropriate for the specific implementation (e.g." -" if that implementation supports some customization)." +"interface. The factory function can return the same object every time, or a " +"new one for each call, as appropriate for the specific implementation (e.g. " +"if that implementation supports some customization)." msgstr "" #: ../../library/xml.dom.rst:97 @@ -162,9 +162,9 @@ msgstr "" #: ../../library/xml.dom.rst:103 msgid "" "If name is not given, this examines the available implementations to find " -"one with the required feature set. If no implementation can be found, raise" -" an :exc:`ImportError`. The features list must be a sequence of ``(feature," -" version)`` pairs which are passed to the :meth:`hasFeature` method on " +"one with the required feature set. If no implementation can be found, raise " +"an :exc:`ImportError`. The features list must be a sequence of ``(feature, " +"version)`` pairs which are passed to the :meth:`hasFeature` method on " "available :class:`DOMImplementation` objects." msgstr "" @@ -181,15 +181,15 @@ msgstr "" #: ../../library/xml.dom.rst:121 msgid "" -"The namespace URI associated with the reserved prefix ``xml``, as defined by" -" `Namespaces in XML `_ (section 4)." +"The namespace URI associated with the reserved prefix ``xml``, as defined by " +"`Namespaces in XML `_ (section 4)." msgstr "" #: ../../library/xml.dom.rst:127 msgid "" -"The namespace URI for namespace declarations, as defined by `Document Object" -" Model (DOM) Level 2 Core Specification `_ (section 1.1.8)." +"The namespace URI for namespace declarations, as defined by `Document Object " +"Model (DOM) Level 2 Core Specification `_ (section 1.1.8)." msgstr "" #: ../../library/xml.dom.rst:134 @@ -201,13 +201,13 @@ msgstr "" #: ../../library/xml.dom.rst:138 msgid "" "In addition, :mod:`xml.dom` contains a base :class:`Node` class and the DOM " -"exception classes. The :class:`Node` class provided by this module does not" -" implement any of the methods or attributes defined by the DOM " -"specification; concrete DOM implementations must provide those. The " -":class:`Node` class provided as part of this module does provide the " -"constants used for the :attr:`nodeType` attribute on concrete :class:`Node` " -"objects; they are located within the class rather than at the module level " -"to conform with the DOM specifications." +"exception classes. The :class:`Node` class provided by this module does not " +"implement any of the methods or attributes defined by the DOM specification; " +"concrete DOM implementations must provide those. The :class:`Node` class " +"provided as part of this module does provide the constants used for the :" +"attr:`nodeType` attribute on concrete :class:`Node` objects; they are " +"located within the class rather than at the module level to conform with the " +"DOM specifications." msgstr "" #: ../../library/xml.dom.rst:153 @@ -241,11 +241,11 @@ msgstr " **Propósito** " #: ../../library/xml.dom.rst:164 msgid ":class:`DOMImplementation`" -msgstr "" +msgstr ":class:`DOMImplementation`" #: ../../library/xml.dom.rst:164 msgid ":ref:`dom-implementation-objects`" -msgstr "" +msgstr ":ref:`dom-implementation-objects`" #: ../../library/xml.dom.rst:164 msgid "Interface to the underlying implementation." @@ -253,11 +253,11 @@ msgstr "" #: ../../library/xml.dom.rst:167 msgid ":class:`Node`" -msgstr "" +msgstr ":class:`Node`" #: ../../library/xml.dom.rst:167 msgid ":ref:`dom-node-objects`" -msgstr "" +msgstr ":ref:`dom-node-objects`" #: ../../library/xml.dom.rst:167 msgid "Base interface for most objects in a document." @@ -265,11 +265,11 @@ msgstr "" #: ../../library/xml.dom.rst:170 msgid ":class:`NodeList`" -msgstr "" +msgstr ":class:`NodeList`" #: ../../library/xml.dom.rst:170 msgid ":ref:`dom-nodelist-objects`" -msgstr "" +msgstr ":ref:`dom-nodelist-objects`" #: ../../library/xml.dom.rst:170 msgid "Interface for a sequence of nodes." @@ -277,11 +277,11 @@ msgstr "" #: ../../library/xml.dom.rst:173 msgid ":class:`DocumentType`" -msgstr "" +msgstr ":class:`DocumentType`" #: ../../library/xml.dom.rst:173 msgid ":ref:`dom-documenttype-objects`" -msgstr "" +msgstr ":ref:`dom-documenttype-objects`" #: ../../library/xml.dom.rst:173 msgid "Information about the declarations needed to process a document." @@ -289,11 +289,11 @@ msgstr "" #: ../../library/xml.dom.rst:177 msgid ":class:`Document`" -msgstr "" +msgstr ":class:`Document`" #: ../../library/xml.dom.rst:177 msgid ":ref:`dom-document-objects`" -msgstr "" +msgstr ":ref:`dom-document-objects`" #: ../../library/xml.dom.rst:177 msgid "Object which represents an entire document." @@ -301,11 +301,11 @@ msgstr "" #: ../../library/xml.dom.rst:180 msgid ":class:`Element`" -msgstr "" +msgstr ":class:`Element`" #: ../../library/xml.dom.rst:180 msgid ":ref:`dom-element-objects`" -msgstr "" +msgstr ":ref:`dom-element-objects`" #: ../../library/xml.dom.rst:180 msgid "Element nodes in the document hierarchy." @@ -313,11 +313,11 @@ msgstr "" #: ../../library/xml.dom.rst:183 msgid ":class:`Attr`" -msgstr "" +msgstr ":class:`Attr`" #: ../../library/xml.dom.rst:183 msgid ":ref:`dom-attr-objects`" -msgstr "" +msgstr ":ref:`dom-attr-objects`" #: ../../library/xml.dom.rst:183 msgid "Attribute value nodes on element nodes." @@ -325,11 +325,11 @@ msgstr "" #: ../../library/xml.dom.rst:186 msgid ":class:`Comment`" -msgstr "" +msgstr ":class:`Comment`" #: ../../library/xml.dom.rst:186 msgid ":ref:`dom-comment-objects`" -msgstr "" +msgstr ":ref:`dom-comment-objects`" #: ../../library/xml.dom.rst:186 msgid "Representation of comments in the source document." @@ -337,11 +337,11 @@ msgstr "" #: ../../library/xml.dom.rst:189 msgid ":class:`Text`" -msgstr "" +msgstr ":class:`Text`" #: ../../library/xml.dom.rst:189 msgid ":ref:`dom-text-objects`" -msgstr "" +msgstr ":ref:`dom-text-objects`" #: ../../library/xml.dom.rst:189 msgid "Nodes containing textual content from the document." @@ -349,11 +349,11 @@ msgstr "" #: ../../library/xml.dom.rst:192 msgid ":class:`ProcessingInstruction`" -msgstr "" +msgstr ":class:`ProcessingInstruction`" #: ../../library/xml.dom.rst:192 msgid ":ref:`dom-pi-objects`" -msgstr "" +msgstr ":ref:`dom-pi-objects`" #: ../../library/xml.dom.rst:192 msgid "Processing instruction representation." @@ -372,25 +372,25 @@ msgstr "" #: ../../library/xml.dom.rst:205 msgid "" "The :class:`DOMImplementation` interface provides a way for applications to " -"determine the availability of particular features in the DOM they are using." -" DOM Level 2 added the ability to create new :class:`Document` and " -":class:`DocumentType` objects using the :class:`DOMImplementation` as well." +"determine the availability of particular features in the DOM they are using. " +"DOM Level 2 added the ability to create new :class:`Document` and :class:" +"`DocumentType` objects using the :class:`DOMImplementation` as well." msgstr "" #: ../../library/xml.dom.rst:213 msgid "" -"Return true if the feature identified by the pair of strings *feature* and " -"*version* is implemented." +"Return ``True`` if the feature identified by the pair of strings *feature* " +"and *version* is implemented." msgstr "" #: ../../library/xml.dom.rst:219 msgid "" -"Return a new :class:`Document` object (the root of the DOM), with a child " -":class:`Element` object having the given *namespaceUri* and *qualifiedName*." -" The *doctype* must be a :class:`DocumentType` object created by " -":meth:`createDocumentType`, or ``None``. In the Python DOM API, the first " -"two arguments can also be ``None`` in order to indicate that no " -":class:`Element` child is to be created." +"Return a new :class:`Document` object (the root of the DOM), with a child :" +"class:`Element` object having the given *namespaceUri* and *qualifiedName*. " +"The *doctype* must be a :class:`DocumentType` object created by :meth:" +"`createDocumentType`, or ``None``. In the Python DOM API, the first two " +"arguments can also be ``None`` in order to indicate that no :class:`Element` " +"child is to be created." msgstr "" #: ../../library/xml.dom.rst:229 @@ -411,18 +411,18 @@ msgstr "" #: ../../library/xml.dom.rst:244 msgid "" -"An integer representing the node type. Symbolic constants for the types are" -" on the :class:`Node` object: :const:`ELEMENT_NODE`, " -":const:`ATTRIBUTE_NODE`, :const:`TEXT_NODE`, :const:`CDATA_SECTION_NODE`, " -":const:`ENTITY_NODE`, :const:`PROCESSING_INSTRUCTION_NODE`, " -":const:`COMMENT_NODE`, :const:`DOCUMENT_NODE`, :const:`DOCUMENT_TYPE_NODE`, " -":const:`NOTATION_NODE`. This is a read-only attribute." +"An integer representing the node type. Symbolic constants for the types are " +"on the :class:`Node` object: :const:`ELEMENT_NODE`, :const:" +"`ATTRIBUTE_NODE`, :const:`TEXT_NODE`, :const:`CDATA_SECTION_NODE`, :const:" +"`ENTITY_NODE`, :const:`PROCESSING_INSTRUCTION_NODE`, :const:`COMMENT_NODE`, :" +"const:`DOCUMENT_NODE`, :const:`DOCUMENT_TYPE_NODE`, :const:`NOTATION_NODE`. " +"This is a read-only attribute." msgstr "" #: ../../library/xml.dom.rst:254 msgid "" -"The parent of the current node, or ``None`` for the document node. The value" -" is always a :class:`Node` object or ``None``. For :class:`Element` nodes, " +"The parent of the current node, or ``None`` for the document node. The value " +"is always a :class:`Node` object or ``None``. For :class:`Element` nodes, " "this will be the parent element, except for the root element, in which case " "it will be the :class:`Document` object. For :class:`Attr` nodes, this is " "always ``None``. This is a read-only attribute." @@ -439,16 +439,16 @@ msgstr "" msgid "" "The node that immediately precedes this one with the same parent. For " "instance the element with an end-tag that comes just before the *self* " -"element's start-tag. Of course, XML documents are made up of more than just" -" elements so the previous sibling could be text, a comment, or something " +"element's start-tag. Of course, XML documents are made up of more than just " +"elements so the previous sibling could be text, a comment, or something " "else. If this node is the first child of the parent, this attribute will be " "``None``. This is a read-only attribute." msgstr "" #: ../../library/xml.dom.rst:280 msgid "" -"The node that immediately follows this one with the same parent. See also " -":attr:`previousSibling`. If this is the last child of the parent, this " +"The node that immediately follows this one with the same parent. See also :" +"attr:`previousSibling`. If this is the last child of the parent, this " "attribute will be ``None``. This is a read-only attribute." msgstr "" @@ -491,8 +491,8 @@ msgstr "" msgid "" "This has a different meaning for each node type; see the DOM specification " "for details. You can always get the information you would get here from " -"another property such as the :attr:`tagName` property for elements or the " -":attr:`name` property for attributes. For all node types, the value of this " +"another property such as the :attr:`tagName` property for elements or the :" +"attr:`name` property for attributes. For all node types, the value of this " "attribute will be either a string or ``None``. This is a read-only " "attribute." msgstr "" @@ -505,16 +505,16 @@ msgid "" msgstr "" #: ../../library/xml.dom.rst:338 -msgid "Returns true if the node has any attributes." +msgid "Return ``True`` if the node has any attributes." msgstr "" #: ../../library/xml.dom.rst:343 -msgid "Returns true if the node has any child nodes." +msgid "Return ``True`` if the node has any child nodes." msgstr "" #: ../../library/xml.dom.rst:348 msgid "" -"Returns true if *other* refers to the same node as this node. This is " +"Return ``True`` if *other* refers to the same node as this node. This is " "especially useful for DOM implementations which use any sort of proxy " "architecture (because more than one object can refer to the same node)." msgstr "" @@ -544,10 +544,9 @@ msgstr "" #: ../../library/xml.dom.rst:377 msgid "" -"Remove a child node. *oldChild* must be a child of this node; if not, " -":exc:`ValueError` is raised. *oldChild* is returned on success. If " -"*oldChild* will not be used further, its :meth:`unlink` method should be " -"called." +"Remove a child node. *oldChild* must be a child of this node; if not, :exc:" +"`ValueError` is raised. *oldChild* is returned on success. If *oldChild* " +"will not be used further, its :meth:`unlink` method should be called." msgstr "" #: ../../library/xml.dom.rst:384 @@ -558,9 +557,9 @@ msgstr "" #: ../../library/xml.dom.rst:390 msgid "" -"Join adjacent text nodes so that all stretches of text are stored as single " -":class:`Text` instances. This simplifies processing text from a DOM tree " -"for many applications." +"Join adjacent text nodes so that all stretches of text are stored as single :" +"class:`Text` instances. This simplifies processing text from a DOM tree for " +"many applications." msgstr "" #: ../../library/xml.dom.rst:397 @@ -577,9 +576,9 @@ msgstr "" msgid "" "A :class:`NodeList` represents a sequence of nodes. These objects are used " "in two ways in the DOM Core recommendation: an :class:`Element` object " -"provides one as its list of child nodes, and the " -":meth:`getElementsByTagName` and :meth:`getElementsByTagNameNS` methods of " -":class:`Node` return objects with this interface to represent query results." +"provides one as its list of child nodes, and the :meth:" +"`getElementsByTagName` and :meth:`getElementsByTagNameNS` methods of :class:" +"`Node` return objects with this interface to represent query results." msgstr "" #: ../../library/xml.dom.rst:412 @@ -590,8 +589,8 @@ msgstr "" #: ../../library/xml.dom.rst:418 msgid "" -"Return the *i*'th item from the sequence, if there is one, or ``None``. The" -" index *i* is not allowed to be less than zero or greater than or equal to " +"Return the *i*'th item from the sequence, if there is one, or ``None``. The " +"index *i* is not allowed to be less than zero or greater than or equal to " "the length of the sequence." msgstr "" @@ -603,17 +602,17 @@ msgstr "" msgid "" "In addition, the Python DOM interface requires that some additional support " "is provided to allow :class:`NodeList` objects to be used as Python " -"sequences. All :class:`NodeList` implementations must include support for " -":meth:`~object.__len__` and :meth:`~object.__getitem__`; this allows " -"iteration over the :class:`NodeList` in :keyword:`for` statements and proper" -" support for the :func:`len` built-in function." +"sequences. All :class:`NodeList` implementations must include support for :" +"meth:`~object.__len__` and :meth:`~object.__getitem__`; this allows " +"iteration over the :class:`NodeList` in :keyword:`for` statements and proper " +"support for the :func:`len` built-in function." msgstr "" #: ../../library/xml.dom.rst:435 msgid "" -"If a DOM implementation supports modification of the document, the " -":class:`NodeList` implementation must also support the " -":meth:`~object.__setitem__` and :meth:`~object.__delitem__` methods." +"If a DOM implementation supports modification of the document, the :class:" +"`NodeList` implementation must also support the :meth:`~object.__setitem__` " +"and :meth:`~object.__delitem__` methods." msgstr "" #: ../../library/xml.dom.rst:443 @@ -624,9 +623,9 @@ msgstr "" msgid "" "Information about the notations and entities declared by a document " "(including the external subset if the parser uses it and can provide the " -"information) is available from a :class:`DocumentType` object. The " -":class:`DocumentType` for a document is available from the :class:`Document`" -" object's :attr:`doctype` attribute; if there is no ``DOCTYPE`` declaration " +"information) is available from a :class:`DocumentType` object. The :class:" +"`DocumentType` for a document is available from the :class:`Document` " +"object's :attr:`doctype` attribute; if there is no ``DOCTYPE`` declaration " "for the document, the document's :attr:`doctype` attribute will be set to " "``None`` instead of an instance of this interface." msgstr "" @@ -664,8 +663,8 @@ msgstr "" #: ../../library/xml.dom.rst:484 msgid "" -"This is a :class:`NamedNodeMap` giving the definitions of external entities." -" For entity names defined more than once, only the first definition is " +"This is a :class:`NamedNodeMap` giving the definitions of external entities. " +"For entity names defined more than once, only the first definition is " "provided (others are ignored as required by the XML recommendation). This " "may be ``None`` if the information is not provided by the parser, or if no " "entities are defined." @@ -674,8 +673,8 @@ msgstr "" #: ../../library/xml.dom.rst:493 msgid "" "This is a :class:`NamedNodeMap` giving the definitions of notations. For " -"notation names defined more than once, only the first definition is provided" -" (others are ignored as required by the XML recommendation). This may be " +"notation names defined more than once, only the first definition is provided " +"(others are ignored as required by the XML recommendation). This may be " "``None`` if the information is not provided by the parser, or if no " "notations are defined." msgstr "" @@ -706,22 +705,22 @@ msgstr "" msgid "" "Create and return a new element with a namespace. The *tagName* may have a " "prefix. The element is not inserted into the document when it is created. " -"You need to explicitly insert it with one of the other methods such as " -":meth:`insertBefore` or :meth:`appendChild`." +"You need to explicitly insert it with one of the other methods such as :meth:" +"`insertBefore` or :meth:`appendChild`." msgstr "" #: ../../library/xml.dom.rst:532 msgid "" -"Create and return a text node containing the data passed as a parameter. As" -" with the other creation methods, this one does not insert the node into the" -" tree." +"Create and return a text node containing the data passed as a parameter. As " +"with the other creation methods, this one does not insert the node into the " +"tree." msgstr "" #: ../../library/xml.dom.rst:539 msgid "" -"Create and return a comment node containing the data passed as a parameter." -" As with the other creation methods, this one does not insert the node into" -" the tree." +"Create and return a comment node containing the data passed as a parameter. " +"As with the other creation methods, this one does not insert the node into " +"the tree." msgstr "" #: ../../library/xml.dom.rst:546 @@ -734,9 +733,9 @@ msgstr "" #: ../../library/xml.dom.rst:553 msgid "" "Create and return an attribute node. This method does not associate the " -"attribute node with any particular element. You must use " -":meth:`setAttributeNode` on the appropriate :class:`Element` object to use " -"the newly created attribute instance." +"attribute node with any particular element. You must use :meth:" +"`setAttributeNode` on the appropriate :class:`Element` object to use the " +"newly created attribute instance." msgstr "" #: ../../library/xml.dom.rst:561 @@ -750,15 +749,15 @@ msgstr "" #: ../../library/xml.dom.rst:569 msgid "" -"Search for all descendants (direct children, children's children, etc.) with" -" a particular element type name." +"Search for all descendants (direct children, children's children, etc.) with " +"a particular element type name." msgstr "" #: ../../library/xml.dom.rst:575 msgid "" -"Search for all descendants (direct children, children's children, etc.) with" -" a particular namespace URI and localname. The localname is the part of the" -" namespace after the prefix." +"Search for all descendants (direct children, children's children, etc.) with " +"a particular namespace URI and localname. The localname is the part of the " +"namespace after the prefix." msgstr "" #: ../../library/xml.dom.rst:583 @@ -782,12 +781,12 @@ msgid "Same as equivalent method in the :class:`Document` class." msgstr "" #: ../../library/xml.dom.rst:607 -msgid "Returns true if the element has an attribute named by *name*." +msgid "Return ``True`` if the element has an attribute named by *name*." msgstr "" #: ../../library/xml.dom.rst:612 msgid "" -"Returns true if the element has an attribute named by *namespaceURI* and " +"Return ``True`` if the element has an attribute named by *namespaceURI* and " "*localName*." msgstr "" @@ -804,8 +803,8 @@ msgstr "" #: ../../library/xml.dom.rst:629 msgid "" -"Return the value of the attribute named by *namespaceURI* and *localName* as" -" a string. If no such attribute exists, an empty string is returned, as if " +"Return the value of the attribute named by *namespaceURI* and *localName* as " +"a string. If no such attribute exists, an empty string is returned, as if " "the attribute had no value." msgstr "" @@ -816,8 +815,8 @@ msgstr "" #: ../../library/xml.dom.rst:641 msgid "" -"Remove an attribute by name. If there is no matching attribute, a " -":exc:`NotFoundErr` is raised." +"Remove an attribute by name. If there is no matching attribute, a :exc:" +"`NotFoundErr` is raised." msgstr "" #: ../../library/xml.dom.rst:647 @@ -840,23 +839,22 @@ msgstr "" msgid "" "Add a new attribute node to the element, replacing an existing attribute if " "necessary if the :attr:`name` attribute matches. If a replacement occurs, " -"the old attribute node will be returned. If *newAttr* is already in use, " -":exc:`InuseAttributeErr` will be raised." +"the old attribute node will be returned. If *newAttr* is already in use, :" +"exc:`InuseAttributeErr` will be raised." msgstr "" #: ../../library/xml.dom.rst:672 msgid "" "Add a new attribute node to the element, replacing an existing attribute if " "necessary if the :attr:`namespaceURI` and :attr:`localName` attributes " -"match. If a replacement occurs, the old attribute node will be returned. If" -" *newAttr* is already in use, :exc:`InuseAttributeErr` will be raised." +"match. If a replacement occurs, the old attribute node will be returned. If " +"*newAttr* is already in use, :exc:`InuseAttributeErr` will be raised." msgstr "" #: ../../library/xml.dom.rst:680 msgid "" "Set an attribute value from a string, given a *namespaceURI* and a *qname*. " -"Note that a qname is the whole attribute name. This is different than " -"above." +"Note that a qname is the whole attribute name. This is different than above." msgstr "" #: ../../library/xml.dom.rst:687 @@ -887,8 +885,8 @@ msgstr "" #: ../../library/xml.dom.rst:713 msgid "" -"The text value of the attribute. This is a synonym for the " -":attr:`nodeValue` attribute." +"The text value of the attribute. This is a synonym for the :attr:" +"`nodeValue` attribute." msgstr "" #: ../../library/xml.dom.rst:720 @@ -914,8 +912,8 @@ msgstr "" #: ../../library/xml.dom.rst:736 msgid "" "There are also experimental methods that give this class more mapping " -"behavior. You can use them or you can use the standardized " -":meth:`getAttribute\\*` family of methods on the :class:`Element` objects." +"behavior. You can use them or you can use the standardized :meth:" +"`getAttribute\\*` family of methods on the :class:`Element` objects." msgstr "" #: ../../library/xml.dom.rst:744 @@ -924,8 +922,8 @@ msgstr "" #: ../../library/xml.dom.rst:746 msgid "" -":class:`Comment` represents a comment in the XML document. It is a subclass" -" of :class:`Node`, but cannot have child nodes." +":class:`Comment` represents a comment in the XML document. It is a subclass " +"of :class:`Node`, but cannot have child nodes." msgstr "" #: ../../library/xml.dom.rst:752 @@ -943,15 +941,15 @@ msgstr "" msgid "" "The :class:`Text` interface represents text in the XML document. If the " "parser and DOM implementation support the DOM's XML extension, portions of " -"the text enclosed in CDATA marked sections are stored in " -":class:`CDATASection` objects. These two interfaces are identical, but " -"provide different values for the :attr:`nodeType` attribute." +"the text enclosed in CDATA marked sections are stored in :class:" +"`CDATASection` objects. These two interfaces are identical, but provide " +"different values for the :attr:`nodeType` attribute." msgstr "" #: ../../library/xml.dom.rst:768 msgid "" -"These interfaces extend the :class:`Node` interface. They cannot have child" -" nodes." +"These interfaces extend the :class:`Node` interface. They cannot have child " +"nodes." msgstr "" #: ../../library/xml.dom.rst:774 @@ -962,8 +960,8 @@ msgstr "" msgid "" "The use of a :class:`CDATASection` node does not indicate that the node " "represents a complete CDATA marked section, only that the content of the " -"node was part of a CDATA section. A single CDATA section may be represented" -" by more than one node in the document tree. There is no way to determine " +"node was part of a CDATA section. A single CDATA section may be represented " +"by more than one node in the document tree. There is no way to determine " "whether two adjacent :class:`CDATASection` nodes represent different CDATA " "marked sections." msgstr "" @@ -996,20 +994,20 @@ msgstr "Exceções" #: ../../library/xml.dom.rst:811 msgid "" -"The DOM Level 2 recommendation defines a single exception, " -":exc:`DOMException`, and a number of constants that allow applications to " -"determine what sort of error occurred. :exc:`DOMException` instances carry a" -" :attr:`code` attribute that provides the appropriate value for the specific" -" exception." +"The DOM Level 2 recommendation defines a single exception, :exc:" +"`DOMException`, and a number of constants that allow applications to " +"determine what sort of error occurred. :exc:`DOMException` instances carry " +"a :attr:`code` attribute that provides the appropriate value for the " +"specific exception." msgstr "" #: ../../library/xml.dom.rst:816 msgid "" -"The Python DOM interface provides the constants, but also expands the set of" -" exceptions so that a specific exception exists for each of the exception " +"The Python DOM interface provides the constants, but also expands the set of " +"exceptions so that a specific exception exists for each of the exception " "codes defined by the DOM. The implementations must raise the appropriate " -"specific exception, each of which carries the appropriate value for the " -":attr:`code` attribute." +"specific exception, each of which carries the appropriate value for the :" +"attr:`code` attribute." msgstr "" #: ../../library/xml.dom.rst:825 @@ -1063,15 +1061,15 @@ msgstr "" #: ../../library/xml.dom.rst:874 msgid "" -"Raised when an attempt is made to use an object that is not defined or is no" -" longer usable." +"Raised when an attempt is made to use an object that is not defined or is no " +"longer usable." msgstr "" #: ../../library/xml.dom.rst:880 msgid "" "If an attempt is made to change any object in a way that is not permitted " -"with regard to the `Namespaces in XML `_ recommendation, this exception is raised." +"with regard to the `Namespaces in XML `_ recommendation, this exception is raised." msgstr "" #: ../../library/xml.dom.rst:887 @@ -1083,8 +1081,8 @@ msgstr "" #: ../../library/xml.dom.rst:894 msgid "" -"Raised when the implementation does not support the requested type of object" -" or operation." +"Raised when the implementation does not support the requested type of object " +"or operation." msgstr "" #: ../../library/xml.dom.rst:900 @@ -1125,123 +1123,123 @@ msgstr "" #: ../../library/xml.dom.rst:930 msgid ":const:`DOMSTRING_SIZE_ERR`" -msgstr "" +msgstr ":const:`DOMSTRING_SIZE_ERR`" #: ../../library/xml.dom.rst:930 msgid ":exc:`DomstringSizeErr`" -msgstr "" +msgstr ":exc:`DomstringSizeErr`" #: ../../library/xml.dom.rst:932 msgid ":const:`HIERARCHY_REQUEST_ERR`" -msgstr "" +msgstr ":const:`HIERARCHY_REQUEST_ERR`" #: ../../library/xml.dom.rst:932 msgid ":exc:`HierarchyRequestErr`" -msgstr "" +msgstr ":exc:`HierarchyRequestErr`" #: ../../library/xml.dom.rst:934 msgid ":const:`INDEX_SIZE_ERR`" -msgstr "" +msgstr ":const:`INDEX_SIZE_ERR`" #: ../../library/xml.dom.rst:934 msgid ":exc:`IndexSizeErr`" -msgstr "" +msgstr ":exc:`IndexSizeErr`" #: ../../library/xml.dom.rst:936 msgid ":const:`INUSE_ATTRIBUTE_ERR`" -msgstr "" +msgstr ":const:`INUSE_ATTRIBUTE_ERR`" #: ../../library/xml.dom.rst:936 msgid ":exc:`InuseAttributeErr`" -msgstr "" +msgstr ":exc:`InuseAttributeErr`" #: ../../library/xml.dom.rst:938 msgid ":const:`INVALID_ACCESS_ERR`" -msgstr "" +msgstr ":const:`INVALID_ACCESS_ERR`" #: ../../library/xml.dom.rst:938 msgid ":exc:`InvalidAccessErr`" -msgstr "" +msgstr ":exc:`InvalidAccessErr`" #: ../../library/xml.dom.rst:940 msgid ":const:`INVALID_CHARACTER_ERR`" -msgstr "" +msgstr ":const:`INVALID_CHARACTER_ERR`" #: ../../library/xml.dom.rst:940 msgid ":exc:`InvalidCharacterErr`" -msgstr "" +msgstr ":exc:`InvalidCharacterErr`" #: ../../library/xml.dom.rst:942 msgid ":const:`INVALID_MODIFICATION_ERR`" -msgstr "" +msgstr ":const:`INVALID_MODIFICATION_ERR`" #: ../../library/xml.dom.rst:942 msgid ":exc:`InvalidModificationErr`" -msgstr "" +msgstr ":exc:`InvalidModificationErr`" #: ../../library/xml.dom.rst:944 msgid ":const:`INVALID_STATE_ERR`" -msgstr "" +msgstr ":const:`INVALID_STATE_ERR`" #: ../../library/xml.dom.rst:944 msgid ":exc:`InvalidStateErr`" -msgstr "" +msgstr ":exc:`InvalidStateErr`" #: ../../library/xml.dom.rst:946 msgid ":const:`NAMESPACE_ERR`" -msgstr "" +msgstr ":const:`NAMESPACE_ERR`" #: ../../library/xml.dom.rst:946 msgid ":exc:`NamespaceErr`" -msgstr "" +msgstr ":exc:`NamespaceErr`" #: ../../library/xml.dom.rst:948 msgid ":const:`NOT_FOUND_ERR`" -msgstr "" +msgstr ":const:`NOT_FOUND_ERR`" #: ../../library/xml.dom.rst:948 msgid ":exc:`NotFoundErr`" -msgstr "" +msgstr ":exc:`NotFoundErr`" #: ../../library/xml.dom.rst:950 msgid ":const:`NOT_SUPPORTED_ERR`" -msgstr "" +msgstr ":const:`NOT_SUPPORTED_ERR`" #: ../../library/xml.dom.rst:950 msgid ":exc:`NotSupportedErr`" -msgstr "" +msgstr ":exc:`NotSupportedErr`" #: ../../library/xml.dom.rst:952 msgid ":const:`NO_DATA_ALLOWED_ERR`" -msgstr "" +msgstr ":const:`NO_DATA_ALLOWED_ERR`" #: ../../library/xml.dom.rst:952 msgid ":exc:`NoDataAllowedErr`" -msgstr "" +msgstr ":exc:`NoDataAllowedErr`" #: ../../library/xml.dom.rst:954 msgid ":const:`NO_MODIFICATION_ALLOWED_ERR`" -msgstr "" +msgstr ":const:`NO_MODIFICATION_ALLOWED_ERR`" #: ../../library/xml.dom.rst:954 msgid ":exc:`NoModificationAllowedErr`" -msgstr "" +msgstr ":exc:`NoModificationAllowedErr`" #: ../../library/xml.dom.rst:956 msgid ":const:`SYNTAX_ERR`" -msgstr "" +msgstr ":const:`SYNTAX_ERR`" #: ../../library/xml.dom.rst:956 msgid ":exc:`SyntaxErr`" -msgstr "" +msgstr ":exc:`SyntaxErr`" #: ../../library/xml.dom.rst:958 msgid ":const:`WRONG_DOCUMENT_ERR`" -msgstr "" +msgstr ":const:`WRONG_DOCUMENT_ERR`" #: ../../library/xml.dom.rst:958 msgid ":exc:`WrongDocumentErr`" -msgstr "" +msgstr ":exc:`WrongDocumentErr`" #: ../../library/xml.dom.rst:965 msgid "Conformance" @@ -1274,16 +1272,16 @@ msgstr "Tipo em Python" #: ../../library/xml.dom.rst:983 msgid "``boolean``" -msgstr "" +msgstr "``boolean``" #: ../../library/xml.dom.rst:983 msgid "``bool`` or ``int``" msgstr "" -#: ../../library/xml.dom.rst:985 ../../library/xml.dom.rst:985 -#: ../../library/xml.dom.rst:987 ../../library/xml.dom.rst:989 +#: ../../library/xml.dom.rst:985 ../../library/xml.dom.rst:987 +#: ../../library/xml.dom.rst:989 msgid "``int``" -msgstr "" +msgstr "``int``" #: ../../library/xml.dom.rst:987 msgid "``long int``" @@ -1295,7 +1293,7 @@ msgstr "" #: ../../library/xml.dom.rst:991 msgid "``DOMString``" -msgstr "" +msgstr "``DOMString``" #: ../../library/xml.dom.rst:991 msgid "``str`` or ``bytes``" @@ -1303,7 +1301,7 @@ msgstr "" #: ../../library/xml.dom.rst:993 msgid "``null``" -msgstr "" +msgstr "``null``" #: ../../library/xml.dom.rst:993 msgid "``None``" @@ -1322,13 +1320,12 @@ msgstr "" #: ../../library/xml.dom.rst:1008 msgid "" -"yields three accessor functions: a \"get\" method for :attr:`someValue` " -"(:meth:`_get_someValue`), and \"get\" and \"set\" methods for " -":attr:`anotherValue` (:meth:`_get_anotherValue` and " -":meth:`_set_anotherValue`). The mapping, in particular, does not require " -"that the IDL attributes are accessible as normal Python attributes: " -"``object.someValue`` is *not* required to work, and may raise an " -":exc:`AttributeError`." +"yields three accessor functions: a \"get\" method for :attr:`someValue` (:" +"meth:`_get_someValue`), and \"get\" and \"set\" methods for :attr:" +"`anotherValue` (:meth:`_get_anotherValue` and :meth:`_set_anotherValue`). " +"The mapping, in particular, does not require that the IDL attributes are " +"accessible as normal Python attributes: ``object.someValue`` is *not* " +"required to work, and may raise an :exc:`AttributeError`." msgstr "" #: ../../library/xml.dom.rst:1015 @@ -1338,9 +1335,9 @@ msgid "" "compilers are not likely to work, and wrapper objects may be needed on the " "client if the DOM objects are accessed via CORBA. While this does require " "some additional consideration for CORBA DOM clients, the implementers with " -"experience using DOM over CORBA from Python do not consider this a problem." -" Attributes that are declared ``readonly`` may not restrict write access in" -" all DOM implementations." +"experience using DOM over CORBA from Python do not consider this a problem. " +"Attributes that are declared ``readonly`` may not restrict write access in " +"all DOM implementations." msgstr "" #: ../../library/xml.dom.rst:1024 @@ -1354,8 +1351,8 @@ msgstr "" #: ../../library/xml.dom.rst:1029 msgid "" -"The IDL definitions do not fully embody the requirements of the W3C DOM API," -" such as the notion of certain objects, such as the return value of " -":meth:`getElementsByTagName`, being \"live\". The Python DOM API does not " -"require implementations to enforce such requirements." +"The IDL definitions do not fully embody the requirements of the W3C DOM API, " +"such as the notion of certain objects, such as the return value of :meth:" +"`getElementsByTagName`, being \"live\". The Python DOM API does not require " +"implementations to enforce such requirements." msgstr "" diff --git a/library/xml.dom.pulldom.po b/library/xml.dom.pulldom.po index a20cb2df6..8d083c101 100644 --- a/library/xml.dom.pulldom.po +++ b/library/xml.dom.pulldom.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:21+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,9 +39,9 @@ msgid "" "necessary. The basic concept involves pulling \"events\" from a stream of " "incoming XML and processing them. In contrast to SAX which also employs an " "event-driven processing model together with callbacks, the user of a pull " -"parser is responsible for explicitly pulling events from the stream, looping" -" over those events until either processing is finished or an error condition" -" occurs." +"parser is responsible for explicitly pulling events from the stream, looping " +"over those events until either processing is finished or an error condition " +"occurs." msgstr "" #: ../../library/xml.dom.pulldom.rst:24 @@ -66,40 +68,40 @@ msgstr "" #: ../../library/xml.dom.pulldom.rst:56 msgid ":data:`START_ELEMENT`" -msgstr "" +msgstr ":data:`START_ELEMENT`" #: ../../library/xml.dom.pulldom.rst:57 msgid ":data:`END_ELEMENT`" -msgstr "" +msgstr ":data:`END_ELEMENT`" #: ../../library/xml.dom.pulldom.rst:58 msgid ":data:`COMMENT`" -msgstr "" +msgstr ":data:`COMMENT`" #: ../../library/xml.dom.pulldom.rst:59 msgid ":data:`START_DOCUMENT`" -msgstr "" +msgstr ":data:`START_DOCUMENT`" #: ../../library/xml.dom.pulldom.rst:60 msgid ":data:`END_DOCUMENT`" -msgstr "" +msgstr ":data:`END_DOCUMENT`" #: ../../library/xml.dom.pulldom.rst:61 msgid ":data:`CHARACTERS`" -msgstr "" +msgstr ":data:`CHARACTERS`" #: ../../library/xml.dom.pulldom.rst:62 msgid ":data:`PROCESSING_INSTRUCTION`" -msgstr "" +msgstr ":data:`PROCESSING_INSTRUCTION`" #: ../../library/xml.dom.pulldom.rst:63 msgid ":data:`IGNORABLE_WHITESPACE`" -msgstr "" +msgstr ":data:`IGNORABLE_WHITESPACE`" #: ../../library/xml.dom.pulldom.rst:65 msgid "" -"``node`` is an object of type :class:`xml.dom.minidom.Document`, " -":class:`xml.dom.minidom.Element` or :class:`xml.dom.minidom.Text`." +"``node`` is an object of type :class:`xml.dom.minidom.Document`, :class:`xml." +"dom.minidom.Element` or :class:`xml.dom.minidom.Text`." msgstr "" #: ../../library/xml.dom.pulldom.rst:68 @@ -110,9 +112,8 @@ msgid "" "consider hierarchical issues such as recursive searching of the document " "nodes, although if the context of elements were important, one would either " "need to maintain some context-related state (i.e. remembering where one is " -"in the document at any given point) or to make use of the " -":func:`DOMEventStream.expandNode` method and switch to DOM-related " -"processing." +"in the document at any given point) or to make use of the :func:" +"`DOMEventStream.expandNode` method and switch to DOM-related processing." msgstr "" #: ../../library/xml.dom.pulldom.rst:80 ../../library/xml.dom.pulldom.rst:85 @@ -156,11 +157,11 @@ msgstr "" #: ../../library/xml.dom.pulldom.rst:120 msgid "" -"Return a tuple containing *event* and the current *node* as " -":class:`xml.dom.minidom.Document` if event equals :data:`START_DOCUMENT`, " -":class:`xml.dom.minidom.Element` if event equals :data:`START_ELEMENT` or " -":data:`END_ELEMENT` or :class:`xml.dom.minidom.Text` if event equals " -":data:`CHARACTERS`. The current node does not contain information about its " +"Return a tuple containing *event* and the current *node* as :class:`xml.dom." +"minidom.Document` if event equals :data:`START_DOCUMENT`, :class:`xml.dom." +"minidom.Element` if event equals :data:`START_ELEMENT` or :data:" +"`END_ELEMENT` or :class:`xml.dom.minidom.Text` if event equals :data:" +"`CHARACTERS`. The current node does not contain information about its " "children, unless :func:`expandNode` is called." msgstr "" diff --git a/library/xml.etree.elementtree.po b/library/xml.etree.elementtree.po index 6def9adf4..999646275 100644 --- a/library/xml.etree.elementtree.po +++ b/library/xml.etree.elementtree.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 @@ -10,16 +10,18 @@ # And Past , 2019 # Adorilson Bezerra , 2019 # Ana Dulce Padovan Torres , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-12 03:27+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:24+0000\n" -"Last-Translator: Ana Dulce Padovan Torres , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,13 +41,13 @@ msgid "" "The :mod:`xml.etree.ElementTree` module implements a simple and efficient " "API for parsing and creating XML data." msgstr "" -"O módulo :mod:`xml.etree.ElementTree` implementa uma API simples e eficiente" -" para análise e criação de dados XML." +"O módulo :mod:`xml.etree.ElementTree` implementa uma API simples e eficiente " +"para análise e criação de dados XML." #: ../../library/xml.etree.elementtree.rst:16 msgid "" -"This module will use a fast implementation whenever available. The " -":mod:`xml.etree.cElementTree` module is deprecated." +"This module will use a fast implementation whenever available. The :mod:`xml." +"etree.cElementTree` module is deprecated." msgstr "" "Esse módulo usará uma implementação rápida sempre que esta estiver " "disponível. O módulo :mod:`xml.etree.cElementTree` está obsoleto." @@ -57,8 +59,8 @@ msgid "" "see :ref:`xml-vulnerabilities`." msgstr "" "O módulo :mod:`xml.etree.cElementTree` não é seguro contra dados " -"maliciosamente construídos. Se você precisa analisar dados não-confiáveis ou" -" não-autenticados seja :ref:`xml-vulnerabilities`." +"maliciosamente construídos. Se você precisa analisar dados não-confiáveis ou " +"não-autenticados seja :ref:`xml-vulnerabilities`." #: ../../library/xml.etree.elementtree.rst:28 msgid "Tutorial" @@ -71,8 +73,8 @@ msgid "" "concepts of the module." msgstr "" "Esse é um tutorial curto para usar :mod:`xml.etree.ElementTree` (``ET`` na " -"versão resumida). O objetivo é demonstrar alguns conceitos básicos e trechos" -" de códigos do módulo." +"versão resumida). O objetivo é demonstrar alguns conceitos básicos e trechos " +"de códigos do módulo." #: ../../library/xml.etree.elementtree.rst:35 msgid "XML tree and elements" @@ -81,19 +83,19 @@ msgstr "XML tree e elementos" #: ../../library/xml.etree.elementtree.rst:37 msgid "" "XML is an inherently hierarchical data format, and the most natural way to " -"represent it is with a tree. ``ET`` has two classes for this purpose - " -":class:`ElementTree` represents the whole XML document as a tree, and " -":class:`Element` represents a single node in this tree. Interactions with " -"the whole document (reading and writing to/from files) are usually done on " -"the :class:`ElementTree` level. Interactions with a single XML element and " -"its sub-elements are done on the :class:`Element` level." -msgstr "" -"XML é um formato de dados estritamento hierárquico, e a maneira mais natural" -" de representá-lo é como uma árvore. ``ET`` possui duas classes para esse " +"represent it is with a tree. ``ET`` has two classes for this purpose - :" +"class:`ElementTree` represents the whole XML document as a tree, and :class:" +"`Element` represents a single node in this tree. Interactions with the " +"whole document (reading and writing to/from files) are usually done on the :" +"class:`ElementTree` level. Interactions with a single XML element and its " +"sub-elements are done on the :class:`Element` level." +msgstr "" +"XML é um formato de dados estritamento hierárquico, e a maneira mais natural " +"de representá-lo é como uma árvore. ``ET`` possui duas classes para esse " "propósito - :class:`ElementTree` representa todo o documento XML como uma " "árvore e :class:`Element` representa um único nó desta árvore. Interações " -"com o documento inteiro (ler e escrever de/para arquivos) são frequentemente" -" feitos em nível de :class:`ElementTree`. Interações com um único elemento " +"com o documento inteiro (ler e escrever de/para arquivos) são frequentemente " +"feitos em nível de :class:`ElementTree`. Interações com um único elemento " "XML e seus subelementos são feitos a nível de :class:`Element` ." #: ../../library/xml.etree.elementtree.rst:48 @@ -105,8 +107,7 @@ msgid "" "We'll be using the following XML document as the sample data for this " "section:" msgstr "" -"Nós utilizaremos o seguinte documento XML como exemplo de dados nessa " -"seção:'" +"Nós utilizaremos o seguinte documento XML como exemplo de dados nessa seção:'" #: ../../library/xml.etree.elementtree.rst:78 msgid "We can import this data by reading from a file::" @@ -118,14 +119,14 @@ msgstr "Ou diretamente de uma string:" #: ../../library/xml.etree.elementtree.rst:88 msgid "" -":func:`fromstring` parses XML from a string directly into an " -":class:`Element`, which is the root element of the parsed tree. Other " -"parsing functions may create an :class:`ElementTree`. Check the " -"documentation to be sure." +":func:`fromstring` parses XML from a string directly into an :class:" +"`Element`, which is the root element of the parsed tree. Other parsing " +"functions may create an :class:`ElementTree`. Check the documentation to be " +"sure." msgstr "" -":func:`fromstring` obtém o XML de uma string e armazena em um " -":class:`Element`, que será o elemento raiz dessa árvore. Outras funções de " -"parsing podem criar um :class:`ElementTree`. Cheque a documentação para se " +":func:`fromstring` obtém o XML de uma string e armazena em um :class:" +"`Element`, que será o elemento raiz dessa árvore. Outras funções de parsing " +"podem criar um :class:`ElementTree`. Cheque a documentação para se " "certificar sobre qual dado será retornado." #: ../../library/xml.etree.elementtree.rst:92 @@ -162,21 +163,21 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:132 msgid "" -"Most parsing functions provided by this module require the whole document to" -" be read at once before returning any result. It is possible to use an " -":class:`XMLParser` and feed data into it incrementally, but it is a push API" -" that calls methods on a callback target, which is too low-level and " +"Most parsing functions provided by this module require the whole document to " +"be read at once before returning any result. It is possible to use an :" +"class:`XMLParser` and feed data into it incrementally, but it is a push API " +"that calls methods on a callback target, which is too low-level and " "inconvenient for most needs. Sometimes what the user really wants is to be " -"able to parse XML incrementally, without blocking operations, while enjoying" -" the convenience of fully constructed :class:`Element` objects." +"able to parse XML incrementally, without blocking operations, while enjoying " +"the convenience of fully constructed :class:`Element` objects." msgstr "" #: ../../library/xml.etree.elementtree.rst:140 msgid "" "The most powerful tool for doing this is :class:`XMLPullParser`. It does " "not require a blocking read to obtain the XML data, and is instead fed with " -"data incrementally with :meth:`XMLPullParser.feed` calls. To get the parsed" -" XML elements, call :meth:`XMLPullParser.read_events`. Here is an example::" +"data incrementally with :meth:`XMLPullParser.feed` calls. To get the parsed " +"XML elements, call :meth:`XMLPullParser.read_events`. Here is an example::" msgstr "" #: ../../library/xml.etree.elementtree.rst:156 @@ -211,8 +212,8 @@ msgstr "" msgid "" ":meth:`Element.findall` finds only elements with a tag which are direct " "children of the current element. :meth:`Element.find` finds the *first* " -"child with a particular tag, and :attr:`Element.text` accesses the element's" -" text content. :meth:`Element.get` accesses the element's attributes::" +"child with a particular tag, and :attr:`Element.text` accesses the element's " +"text content. :meth:`Element.get` accesses the element's attributes::" msgstr "" #: ../../library/xml.etree.elementtree.rst:196 @@ -235,8 +236,8 @@ msgstr "" msgid "" "Once created, an :class:`Element` object may be manipulated by directly " "changing its fields (such as :attr:`Element.text`), adding and modifying " -"attributes (:meth:`Element.set` method), as well as adding new children (for" -" example with :meth:`Element.append`)." +"attributes (:meth:`Element.set` method), as well as adding new children (for " +"example with :meth:`Element.append`)." msgstr "" #: ../../library/xml.etree.elementtree.rst:210 @@ -262,8 +263,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:282 msgid "" -"The :func:`SubElement` function also provides a convenient way to create new" -" sub-elements for a given element::" +"The :func:`SubElement` function also provides a convenient way to create new " +"sub-elements for a given element::" msgstr "" #: ../../library/xml.etree.elementtree.rst:293 @@ -272,25 +273,25 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:295 msgid "" -"If the XML input has `namespaces " -"`__, tags and attributes with " -"prefixes in the form ``prefix:sometag`` get expanded to ``{uri}sometag`` " -"where the *prefix* is replaced by the full *URI*. Also, if there is a " -"`default namespace `__, that " -"full URI gets prepended to all of the non-prefixed tags." +"If the XML input has `namespaces `__, tags and attributes with prefixes in the form ``prefix:" +"sometag`` get expanded to ``{uri}sometag`` where the *prefix* is replaced by " +"the full *URI*. Also, if there is a `default namespace `__, that full URI gets prepended to all of the non-" +"prefixed tags." msgstr "" #: ../../library/xml.etree.elementtree.rst:303 msgid "" -"Here is an XML example that incorporates two namespaces, one with the prefix" -" \"fictional\" and the other serving as the default namespace:" +"Here is an XML example that incorporates two namespaces, one with the prefix " +"\"fictional\" and the other serving as the default namespace:" msgstr "" #: ../../library/xml.etree.elementtree.rst:324 msgid "" -"One way to search and explore this XML example is to manually add the URI to" -" every tag or attribute in the xpath of a :meth:`~Element.find` or " -":meth:`~Element.findall`::" +"One way to search and explore this XML example is to manually add the URI to " +"every tag or attribute in the xpath of a :meth:`~Element.find` or :meth:" +"`~Element.findall`::" msgstr "" #: ../../library/xml.etree.elementtree.rst:335 @@ -319,10 +320,10 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:370 msgid "" -"This module provides limited support for `XPath expressions " -"`_ for locating elements in a tree. The goal " -"is to support a small subset of the abbreviated syntax; a full XPath engine " -"is outside the scope of the module." +"This module provides limited support for `XPath expressions `_ for locating elements in a tree. The goal is to support a " +"small subset of the abbreviated syntax; a full XPath engine is outside the " +"scope of the module." msgstr "" #: ../../library/xml.etree.elementtree.rst:376 @@ -333,8 +334,8 @@ msgstr "Exemplo" #: ../../library/xml.etree.elementtree.rst:378 msgid "" "Here's an example that demonstrates some of the XPath capabilities of the " -"module. We'll be using the ``countrydata`` XML document from the " -":ref:`Parsing XML ` section::" +"module. We'll be using the ``countrydata`` XML document from the :ref:" +"`Parsing XML ` section::" msgstr "" #: ../../library/xml.etree.elementtree.rst:403 @@ -351,18 +352,18 @@ msgstr "Significado" #: ../../library/xml.etree.elementtree.rst:410 msgid "``tag``" -msgstr "" +msgstr "``tag``" #: ../../library/xml.etree.elementtree.rst:410 msgid "" -"Selects all child elements with the given tag. For example, ``spam`` selects" -" all child elements named ``spam``, and ``spam/egg`` selects all " +"Selects all child elements with the given tag. For example, ``spam`` selects " +"all child elements named ``spam``, and ``spam/egg`` selects all " "grandchildren named ``egg`` in all children named ``spam``." msgstr "" #: ../../library/xml.etree.elementtree.rst:416 msgid "``*``" -msgstr "" +msgstr "``*``" #: ../../library/xml.etree.elementtree.rst:416 msgid "" @@ -372,7 +373,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:419 msgid "``.``" -msgstr "" +msgstr "``.``" #: ../../library/xml.etree.elementtree.rst:419 msgid "" @@ -382,7 +383,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:423 msgid "``//``" -msgstr "" +msgstr "``//``" #: ../../library/xml.etree.elementtree.rst:423 msgid "" @@ -392,7 +393,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:427 msgid "``..``" -msgstr "" +msgstr "``..``" #: ../../library/xml.etree.elementtree.rst:427 msgid "" @@ -402,7 +403,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:431 msgid "``[@attrib]``" -msgstr "" +msgstr "``[@attrib]``" #: ../../library/xml.etree.elementtree.rst:431 msgid "Selects all elements that have the given attribute." @@ -410,17 +411,17 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:433 msgid "``[@attrib='value']``" -msgstr "" +msgstr "``[@attrib='value']``" #: ../../library/xml.etree.elementtree.rst:433 msgid "" -"Selects all elements for which the given attribute has the given value. The" -" value cannot contain quotes." +"Selects all elements for which the given attribute has the given value. The " +"value cannot contain quotes." msgstr "" #: ../../library/xml.etree.elementtree.rst:437 msgid "``[tag]``" -msgstr "" +msgstr "``[tag]``" #: ../../library/xml.etree.elementtree.rst:437 msgid "" @@ -430,7 +431,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:440 msgid "``[.='text']``" -msgstr "" +msgstr "``[.='text']``" #: ../../library/xml.etree.elementtree.rst:440 msgid "" @@ -440,7 +441,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:445 msgid "``[tag='text']``" -msgstr "" +msgstr "``[tag='text']``" #: ../../library/xml.etree.elementtree.rst:445 msgid "" @@ -450,7 +451,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:449 msgid "``[position]``" -msgstr "" +msgstr "``[position]``" #: ../../library/xml.etree.elementtree.rst:449 msgid "" @@ -489,9 +490,9 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:477 msgid "" "Note that :class:`XMLParser` skips over comments in the input instead of " -"creating comment objects for them. An :class:`ElementTree` will only contain" -" comment nodes if they have been inserted into to the tree using one of the " -":class:`Element` methods." +"creating comment objects for them. An :class:`ElementTree` will only contain " +"comment nodes if they have been inserted into to the tree using one of the :" +"class:`Element` methods." msgstr "" #: ../../library/xml.etree.elementtree.rst:484 @@ -514,51 +515,51 @@ msgstr "" msgid "" "Parses an XML section from a string constant. Same as :func:`XML`. *text* " "is a string containing XML data. *parser* is an optional parser instance. " -"If not given, the standard :class:`XMLParser` parser is used. Returns an " -":class:`Element` instance." +"If not given, the standard :class:`XMLParser` parser is used. Returns an :" +"class:`Element` instance." msgstr "" #: ../../library/xml.etree.elementtree.rst:503 msgid "" -"Parses an XML document from a sequence of string fragments. *sequence* is a" -" list or other sequence containing XML data fragments. *parser* is an " +"Parses an XML document from a sequence of string fragments. *sequence* is a " +"list or other sequence containing XML data fragments. *parser* is an " "optional parser instance. If not given, the standard :class:`XMLParser` " "parser is used. Returns an :class:`Element` instance." msgstr "" #: ../../library/xml.etree.elementtree.rst:513 msgid "" -"Checks if an object appears to be a valid element object. *element* is an " -"element instance. Returns a true value if this is an element object." +"Check if an object appears to be a valid element object. *element* is an " +"element instance. Return ``True`` if this is an element object." msgstr "" #: ../../library/xml.etree.elementtree.rst:519 msgid "" -"Parses an XML section into an element tree incrementally, and reports what's" -" going on to the user. *source* is a filename or :term:`file object` " +"Parses an XML section into an element tree incrementally, and reports what's " +"going on to the user. *source* is a filename or :term:`file object` " "containing XML data. *events* is a sequence of events to report back. The " -"supported events are the strings ``\"start\"``, ``\"end\"``, ``\"start-" -"ns\"`` and ``\"end-ns\"`` (the \"ns\" events are used to get detailed " -"namespace information). If *events* is omitted, only ``\"end\"`` events are" -" reported. *parser* is an optional parser instance. If not given, the " -"standard :class:`XMLParser` parser is used. *parser* must be a subclass of " -":class:`XMLParser` and can only use the default :class:`TreeBuilder` as a " +"supported events are the strings ``\"start\"``, ``\"end\"``, ``\"start-ns" +"\"`` and ``\"end-ns\"`` (the \"ns\" events are used to get detailed " +"namespace information). If *events* is omitted, only ``\"end\"`` events are " +"reported. *parser* is an optional parser instance. If not given, the " +"standard :class:`XMLParser` parser is used. *parser* must be a subclass of :" +"class:`XMLParser` and can only use the default :class:`TreeBuilder` as a " "target. Returns an :term:`iterator` providing ``(event, elem)`` pairs." msgstr "" #: ../../library/xml.etree.elementtree.rst:530 msgid "" "Note that while :func:`iterparse` builds the tree incrementally, it issues " -"blocking reads on *source* (or the file it names). As such, it's unsuitable" -" for applications where blocking reads can't be made. For fully non-" -"blocking parsing, see :class:`XMLPullParser`." +"blocking reads on *source* (or the file it names). As such, it's unsuitable " +"for applications where blocking reads can't be made. For fully non-blocking " +"parsing, see :class:`XMLPullParser`." msgstr "" #: ../../library/xml.etree.elementtree.rst:537 msgid "" ":func:`iterparse` only guarantees that it has seen the \">\" character of a " -"starting tag when it emits a \"start\" event, so the attributes are defined," -" but the contents of the text and tail attributes are undefined at that " +"starting tag when it emits a \"start\" event, so the attributes are defined, " +"but the contents of the text and tail attributes are undefined at that " "point. The same applies to the element children; they may or may not be " "present." msgstr "" @@ -576,24 +577,24 @@ msgstr "" msgid "" "Parses an XML section into an element tree. *source* is a filename or file " "object containing XML data. *parser* is an optional parser instance. If " -"not given, the standard :class:`XMLParser` parser is used. Returns an " -":class:`ElementTree` instance." +"not given, the standard :class:`XMLParser` parser is used. Returns an :" +"class:`ElementTree` instance." msgstr "" #: ../../library/xml.etree.elementtree.rst:558 msgid "" "PI element factory. This factory function creates a special element that " "will be serialized as an XML processing instruction. *target* is a string " -"containing the PI target. *text* is a string containing the PI contents, if" -" given. Returns an element instance, representing a processing instruction." +"containing the PI target. *text* is a string containing the PI contents, if " +"given. Returns an element instance, representing a processing instruction." msgstr "" #: ../../library/xml.etree.elementtree.rst:563 msgid "" -"Note that :class:`XMLParser` skips over processing instructions in the input" -" instead of creating comment objects for them. An :class:`ElementTree` will " -"only contain processing instruction nodes if they have been inserted into to" -" the tree using one of the :class:`Element` methods." +"Note that :class:`XMLParser` skips over processing instructions in the input " +"instead of creating comment objects for them. An :class:`ElementTree` will " +"only contain processing instruction nodes if they have been inserted into to " +"the tree using one of the :class:`Element` methods." msgstr "" #: ../../library/xml.etree.elementtree.rst:571 @@ -601,8 +602,8 @@ msgid "" "Registers a namespace prefix. The registry is global, and any existing " "mapping for either the given prefix or the namespace URI will be removed. " "*prefix* is a namespace prefix. *uri* is a namespace uri. Tags and " -"attributes in this namespace will be serialized with the given prefix, if at" -" all possible." +"attributes in this namespace will be serialized with the given prefix, if at " +"all possible." msgstr "" #: ../../library/xml.etree.elementtree.rst:582 @@ -615,21 +616,20 @@ msgstr "" msgid "" "The element name, attribute names, and attribute values can be either " "bytestrings or Unicode strings. *parent* is the parent element. *tag* is " -"the subelement name. *attrib* is an optional dictionary, containing element" -" attributes. *extra* contains additional attributes, given as keyword " +"the subelement name. *attrib* is an optional dictionary, containing element " +"attributes. *extra* contains additional attributes, given as keyword " "arguments. Returns an element instance." msgstr "" #: ../../library/xml.etree.elementtree.rst:595 msgid "" "Generates a string representation of an XML element, including all " -"subelements. *element* is an :class:`Element` instance. *encoding* [1]_ is" -" the output encoding (default is US-ASCII). Use ``encoding=\"unicode\"`` to" -" generate a Unicode string (otherwise, a bytestring is generated). *method*" -" is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default is " -"``\"xml\"``). *short_empty_elements* has the same meaning as in " -":meth:`ElementTree.write`. Returns an (optionally) encoded string containing" -" the XML data." +"subelements. *element* is an :class:`Element` instance. *encoding* [1]_ is " +"the output encoding (default is US-ASCII). Use ``encoding=\"unicode\"`` to " +"generate a Unicode string (otherwise, a bytestring is generated). *method* " +"is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default is ``\"xml" +"\"``). *short_empty_elements* has the same meaning as in :meth:`ElementTree." +"write`. Returns an (optionally) encoded string containing the XML data." msgstr "" #: ../../library/xml.etree.elementtree.rst:603 @@ -641,31 +641,31 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:610 msgid "" "Generates a string representation of an XML element, including all " -"subelements. *element* is an :class:`Element` instance. *encoding* [1]_ is" -" the output encoding (default is US-ASCII). Use ``encoding=\"unicode\"`` to" -" generate a Unicode string (otherwise, a bytestring is generated). *method*" -" is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default is " -"``\"xml\"``). *short_empty_elements* has the same meaning as in " -":meth:`ElementTree.write`. Returns a list of (optionally) encoded strings " -"containing the XML data. It does not guarantee any specific sequence, except" -" that ``b\"\".join(tostringlist(element)) == tostring(element)``." +"subelements. *element* is an :class:`Element` instance. *encoding* [1]_ is " +"the output encoding (default is US-ASCII). Use ``encoding=\"unicode\"`` to " +"generate a Unicode string (otherwise, a bytestring is generated). *method* " +"is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default is ``\"xml" +"\"``). *short_empty_elements* has the same meaning as in :meth:`ElementTree." +"write`. Returns a list of (optionally) encoded strings containing the XML " +"data. It does not guarantee any specific sequence, except that ``b\"\"." +"join(tostringlist(element)) == tostring(element)``." msgstr "" #: ../../library/xml.etree.elementtree.rst:628 msgid "" "Parses an XML section from a string constant. This function can be used to " "embed \"XML literals\" in Python code. *text* is a string containing XML " -"data. *parser* is an optional parser instance. If not given, the standard " -":class:`XMLParser` parser is used. Returns an :class:`Element` instance." +"data. *parser* is an optional parser instance. If not given, the standard :" +"class:`XMLParser` parser is used. Returns an :class:`Element` instance." msgstr "" #: ../../library/xml.etree.elementtree.rst:636 msgid "" "Parses an XML section from a string constant, and also returns a dictionary " -"which maps from element id:s to elements. *text* is a string containing XML" -" data. *parser* is an optional parser instance. If not given, the standard" -" :class:`XMLParser` parser is used. Returns a tuple containing an " -":class:`Element` instance and a dictionary." +"which maps from element id:s to elements. *text* is a string containing XML " +"data. *parser* is an optional parser instance. If not given, the standard :" +"class:`XMLParser` parser is used. Returns a tuple containing an :class:" +"`Element` instance and a dictionary." msgstr "" #: ../../library/xml.etree.elementtree.rst:646 @@ -674,19 +674,18 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:648 msgid "" -"This module provides limited support for `XInclude directives " -"`_, via the :mod:`xml.etree.ElementInclude`" -" helper module. This module can be used to insert subtrees and text strings" -" into element trees, based on information in the tree." +"This module provides limited support for `XInclude directives `_, via the :mod:`xml.etree.ElementInclude` helper " +"module. This module can be used to insert subtrees and text strings into " +"element trees, based on information in the tree." msgstr "" #: ../../library/xml.etree.elementtree.rst:654 msgid "" "Here's an example that demonstrates use of the XInclude module. To include " -"an XML document in the current document, use the " -"``{http://www.w3.org/2001/XInclude}include`` element and set the **parse** " -"attribute to ``\"xml\"``, and use the **href** attribute to specify the " -"document to include." +"an XML document in the current document, use the ``{http://www.w3.org/2001/" +"XInclude}include`` element and set the **parse** attribute to ``\"xml\"``, " +"and use the **href** attribute to specify the document to include." msgstr "" #: ../../library/xml.etree.elementtree.rst:663 @@ -698,15 +697,15 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:665 msgid "" -"To process this file, load it as usual, and pass the root element to the " -":mod:`xml.etree.ElementTree` module:" +"To process this file, load it as usual, and pass the root element to the :" +"mod:`xml.etree.ElementTree` module:" msgstr "" #: ../../library/xml.etree.elementtree.rst:676 msgid "" -"The ElementInclude module replaces the " -"``{http://www.w3.org/2001/XInclude}include`` element with the root element " -"from the **source.xml** document. The result might look something like this:" +"The ElementInclude module replaces the ``{http://www.w3.org/2001/XInclude}" +"include`` element with the root element from the **source.xml** document. " +"The result might look something like this:" msgstr "" #: ../../library/xml.etree.elementtree.rst:684 @@ -717,9 +716,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:686 msgid "" -"To include a text document, use the " -"``{http://www.w3.org/2001/XInclude}include`` element, and set the **parse** " -"attribute to \"text\":" +"To include a text document, use the ``{http://www.w3.org/2001/XInclude}" +"include`` element, and set the **parse** attribute to \"text\":" msgstr "" #: ../../library/xml.etree.elementtree.rst:695 @@ -731,21 +729,21 @@ msgid "" "Default loader. This default loader reads an included resource from disk. " "*href* is a URL. *parse* is for parse mode either \"xml\" or \"text\". " "*encoding* is an optional text encoding. If not given, encoding is " -"``utf-8``. Returns the expanded resource. If the parse mode is " -"``\"xml\"``, this is an ElementTree instance. If the parse mode is " -"\"text\", this is a Unicode string. If the loader fails, it can return None" -" or raise an exception." +"``utf-8``. Returns the expanded resource. If the parse mode is ``\"xml" +"\"``, this is an ElementTree instance. If the parse mode is \"text\", this " +"is a Unicode string. If the loader fails, it can return None or raise an " +"exception." msgstr "" #: ../../library/xml.etree.elementtree.rst:723 msgid "" "This function expands XInclude directives. *elem* is the root element. " -"*loader* is an optional resource loader. If omitted, it defaults to " -":func:`default_loader`. If given, it should be a callable that implements " -"the same interface as :func:`default_loader`. Returns the expanded " -"resource. If the parse mode is ``\"xml\"``, this is an ElementTree " -"instance. If the parse mode is \"text\", this is a Unicode string. If the " -"loader fails, it can return None or raise an exception." +"*loader* is an optional resource loader. If omitted, it defaults to :func:" +"`default_loader`. If given, it should be a callable that implements the same " +"interface as :func:`default_loader`. Returns the expanded resource. If the " +"parse mode is ``\"xml\"``, this is an ElementTree instance. If the parse " +"mode is \"text\", this is a Unicode string. If the loader fails, it can " +"return None or raise an exception." msgstr "" #: ../../library/xml.etree.elementtree.rst:735 @@ -793,8 +791,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:774 msgid "" -"To collect the inner text of an element, see :meth:`itertext`, for example " -"``\"\".join(element.itertext())``." +"To collect the inner text of an element, see :meth:`itertext`, for example ``" +"\"\".join(element.itertext())``." msgstr "" #: ../../library/xml.etree.elementtree.rst:777 @@ -805,8 +803,8 @@ msgstr "" msgid "" "A dictionary containing the element's attributes. Note that while the " "*attrib* value is always a real mutable Python dictionary, an ElementTree " -"implementation may choose to use another internal representation, and create" -" the dictionary only if someone asks for it. To take advantage of such " +"implementation may choose to use another internal representation, and create " +"the dictionary only if someone asks for it. To take advantage of such " "implementations, use the dictionary methods below whenever possible." msgstr "" @@ -852,8 +850,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:825 msgid "" "Adds the element *subelement* to the end of this element's internal list of " -"subelements. Raises :exc:`TypeError` if *subelement* is not an " -":class:`Element`." +"subelements. Raises :exc:`TypeError` if *subelement* is not an :class:" +"`Element`." msgstr "" #: ../../library/xml.etree.elementtree.rst:832 @@ -864,16 +862,18 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:840 msgid "" -"Finds the first subelement matching *match*. *match* may be a tag name or a" -" :ref:`path `. Returns an element instance or ``None``." -" *namespaces* is an optional mapping from namespace prefix to full name." +"Finds the first subelement matching *match*. *match* may be a tag name or " +"a :ref:`path `. Returns an element instance or " +"``None``. *namespaces* is an optional mapping from namespace prefix to full " +"name." msgstr "" #: ../../library/xml.etree.elementtree.rst:848 msgid "" "Finds all matching subelements, by tag name or :ref:`path `. Returns a list containing all matching elements in document order." -" *namespaces* is an optional mapping from namespace prefix to full name." +"xpath>`. Returns a list containing all matching elements in document " +"order. *namespaces* is an optional mapping from namespace prefix to full " +"name." msgstr "" #: ../../library/xml.etree.elementtree.rst:856 @@ -895,8 +895,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:878 msgid "" -"Inserts *subelement* at the given position in this element. Raises " -":exc:`TypeError` if *subelement* is not an :class:`Element`." +"Inserts *subelement* at the given position in this element. Raises :exc:" +"`TypeError` if *subelement* is not an :class:`Element`." msgstr "" #: ../../library/xml.etree.elementtree.rst:884 @@ -931,22 +931,21 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:920 msgid "" "Removes *subelement* from the element. Unlike the find\\* methods this " -"method compares elements based on the instance identity, not on tag value or" -" contents." +"method compares elements based on the instance identity, not on tag value or " +"contents." msgstr "" #: ../../library/xml.etree.elementtree.rst:924 msgid "" ":class:`Element` objects also support the following sequence type methods " -"for working with subelements: :meth:`~object.__delitem__`, " -":meth:`~object.__getitem__`, :meth:`~object.__setitem__`, " -":meth:`~object.__len__`." +"for working with subelements: :meth:`~object.__delitem__`, :meth:`~object." +"__getitem__`, :meth:`~object.__setitem__`, :meth:`~object.__len__`." msgstr "" #: ../../library/xml.etree.elementtree.rst:929 msgid "" -"Caution: Elements with no subelements will test as ``False``. This behavior" -" will change in future versions. Use specific ``len(elem)`` or ``elem is " +"Caution: Elements with no subelements will test as ``False``. This behavior " +"will change in future versions. Use specific ``len(elem)`` or ``elem is " "None`` test instead. ::" msgstr "" @@ -963,14 +962,14 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:954 msgid "" -"*element* is the root element. The tree is initialized with the contents of" -" the XML *file* if given." +"*element* is the root element. The tree is initialized with the contents of " +"the XML *file* if given." msgstr "" #: ../../library/xml.etree.elementtree.rst:960 msgid "" -"Replaces the root element for this tree. This discards the current contents" -" of the tree, and replaces it with the given element. Use with care. " +"Replaces the root element for this tree. This discards the current contents " +"of the tree, and replaces it with the given element. Use with care. " "*element* is an element instance." msgstr "" @@ -997,8 +996,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:993 msgid "" "Creates and returns a tree iterator for the root element. The iterator " -"loops over all elements in this tree, in section order. *tag* is the tag to" -" look for (default is to return all elements)." +"loops over all elements in this tree, in section order. *tag* is the tag to " +"look for (default is to return all elements)." msgstr "" #: ../../library/xml.etree.elementtree.rst:1000 @@ -1015,27 +1014,26 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1017 msgid "" -"Writes the element tree to a file, as XML. *file* is a file name, or a " -":term:`file object` opened for writing. *encoding* [1]_ is the output " +"Writes the element tree to a file, as XML. *file* is a file name, or a :" +"term:`file object` opened for writing. *encoding* [1]_ is the output " "encoding (default is US-ASCII). *xml_declaration* controls if an XML " "declaration should be added to the file. Use ``False`` for never, ``True`` " "for always, ``None`` for only if not US-ASCII or UTF-8 or Unicode (default " -"is ``None``). *default_namespace* sets the default XML namespace (for " -"\"xmlns\"). *method* is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` " -"(default is ``\"xml\"``). The keyword-only *short_empty_elements* parameter " -"controls the formatting of elements that contain no content. If ``True`` " -"(the default), they are emitted as a single self-closed tag, otherwise they " -"are emitted as a pair of start/end tags." +"is ``None``). *default_namespace* sets the default XML namespace (for \"xmlns" +"\"). *method* is either ``\"xml\"``, ``\"html\"`` or ``\"text\"`` (default " +"is ``\"xml\"``). The keyword-only *short_empty_elements* parameter controls " +"the formatting of elements that contain no content. If ``True`` (the " +"default), they are emitted as a single self-closed tag, otherwise they are " +"emitted as a pair of start/end tags." msgstr "" #: ../../library/xml.etree.elementtree.rst:1031 msgid "" "The output is either a string (:class:`str`) or binary (:class:`bytes`). " -"This is controlled by the *encoding* argument. If *encoding* is " -"``\"unicode\"``, the output is a string; otherwise, it's binary. Note that " -"this may conflict with the type of *file* if it's an open :term:`file " -"object`; make sure you do not try to write a string to a binary stream and " -"vice versa." +"This is controlled by the *encoding* argument. If *encoding* is ``\"unicode" +"\"``, the output is a string; otherwise, it's binary. Note that this may " +"conflict with the type of *file* if it's an open :term:`file object`; make " +"sure you do not try to write a string to a binary stream and vice versa." msgstr "" #: ../../library/xml.etree.elementtree.rst:1042 @@ -1057,9 +1055,9 @@ msgid "" "QName wrapper. This can be used to wrap a QName attribute value, in order " "to get proper namespace handling on output. *text_or_uri* is a string " "containing the QName value, in the form {uri}local, or, if the tag argument " -"is given, the URI part of a QName. If *tag* is given, the first argument is" -" interpreted as a URI, and this argument is interpreted as a local name. " -":class:`QName` instances are opaque." +"is given, the URI part of a QName. If *tag* is given, the first argument is " +"interpreted as a URI, and this argument is interpreted as a local name. :" +"class:`QName` instances are opaque." msgstr "" #: ../../library/xml.etree.elementtree.rst:1090 @@ -1109,8 +1107,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1131 msgid "" "Handles a doctype declaration. *name* is the doctype name. *pubid* is the " -"public identifier. *system* is the system identifier. This method does not" -" exist on the default :class:`TreeBuilder` class." +"public identifier. *system* is the system identifier. This method does not " +"exist on the default :class:`TreeBuilder` class." msgstr "" #: ../../library/xml.etree.elementtree.rst:1141 @@ -1119,14 +1117,14 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1146 msgid "" -"This class is the low-level building block of the module. It uses " -":mod:`xml.parsers.expat` for efficient, event-based parsing of XML. It can " -"be fed XML data incrementally with the :meth:`feed` method, and parsing " -"events are translated to a push API - by invoking callbacks on the *target* " -"object. If *target* is omitted, the standard :class:`TreeBuilder` is used. " -"The *html* argument was historically used for backwards compatibility and is" -" now deprecated. If *encoding* [1]_ is given, the value overrides the " -"encoding specified in the XML file." +"This class is the low-level building block of the module. It uses :mod:`xml." +"parsers.expat` for efficient, event-based parsing of XML. It can be fed XML " +"data incrementally with the :meth:`feed` method, and parsing events are " +"translated to a push API - by invoking callbacks on the *target* object. If " +"*target* is omitted, the standard :class:`TreeBuilder` is used. The *html* " +"argument was historically used for backwards compatibility and is now " +"deprecated. If *encoding* [1]_ is given, the value overrides the encoding " +"specified in the XML file." msgstr "" #: ../../library/xml.etree.elementtree.rst:1155 @@ -1144,8 +1142,7 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1168 msgid "" -"Define the :meth:`TreeBuilder.doctype` method on a custom TreeBuilder " -"target." +"Define the :meth:`TreeBuilder.doctype` method on a custom TreeBuilder target." msgstr "" #: ../../library/xml.etree.elementtree.rst:1175 @@ -1155,11 +1152,11 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1177 msgid "" ":meth:`XMLParser.feed` calls *target*\\'s ``start(tag, attrs_dict)`` method " -"for each opening tag, its ``end(tag)`` method for each closing tag, and data" -" is processed by method ``data(data)``. :meth:`XMLParser.close` calls " -"*target*\\'s method ``close()``. :class:`XMLParser` can be used not only for" -" building a tree structure. This is an example of counting the maximum depth" -" of an XML file::" +"for each opening tag, its ``end(tag)`` method for each closing tag, and data " +"is processed by method ``data(data)``. :meth:`XMLParser.close` calls " +"*target*\\'s method ``close()``. :class:`XMLParser` can be used not only for " +"building a tree structure. This is an example of counting the maximum depth " +"of an XML file::" msgstr "" #: ../../library/xml.etree.elementtree.rst:1220 @@ -1168,14 +1165,14 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1224 msgid "" -"A pull parser suitable for non-blocking applications. Its input-side API is" -" similar to that of :class:`XMLParser`, but instead of pushing calls to a " -"callback target, :class:`XMLPullParser` collects an internal list of parsing" -" events and lets the user read from it. *events* is a sequence of events to " -"report back. The supported events are the strings ``\"start\"``, " -"``\"end\"``, ``\"start-ns\"`` and ``\"end-ns\"`` (the \"ns\" events are used" -" to get detailed namespace information). If *events* is omitted, only " -"``\"end\"`` events are reported." +"A pull parser suitable for non-blocking applications. Its input-side API is " +"similar to that of :class:`XMLParser`, but instead of pushing calls to a " +"callback target, :class:`XMLPullParser` collects an internal list of parsing " +"events and lets the user read from it. *events* is a sequence of events to " +"report back. The supported events are the strings ``\"start\"``, ``\"end" +"\"``, ``\"start-ns\"`` and ``\"end-ns\"`` (the \"ns\" events are used to get " +"detailed namespace information). If *events* is omitted, only ``\"end\"`` " +"events are reported." msgstr "" #: ../../library/xml.etree.elementtree.rst:1235 @@ -1184,10 +1181,10 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1239 msgid "" -"Signal the parser that the data stream is terminated. Unlike " -":meth:`XMLParser.close`, this method always returns :const:`None`. Any " -"events not yet retrieved when the parser is closed can still be read with " -":meth:`read_events`." +"Signal the parser that the data stream is terminated. Unlike :meth:" +"`XMLParser.close`, this method always returns :const:`None`. Any events not " +"yet retrieved when the parser is closed can still be read with :meth:" +"`read_events`." msgstr "" #: ../../library/xml.etree.elementtree.rst:1246 @@ -1230,8 +1227,8 @@ msgstr "" #: ../../library/xml.etree.elementtree.rst:1282 msgid "" -"A numeric error code from the expat parser. See the documentation of " -":mod:`xml.parsers.expat` for the list of error codes and their meanings." +"A numeric error code from the expat parser. See the documentation of :mod:" +"`xml.parsers.expat` for the list of error codes and their meanings." msgstr "" #: ../../library/xml.etree.elementtree.rst:1287 @@ -1245,8 +1242,8 @@ msgstr "Notas de rodapé" #: ../../library/xml.etree.elementtree.rst:1291 msgid "" -"The encoding string included in XML output should conform to the appropriate" -" standards. For example, \"UTF-8\" is valid, but \"UTF8\" is not. See " -"https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl and " -"https://www.iana.org/assignments/character-sets/character-sets.xhtml." +"The encoding string included in XML output should conform to the appropriate " +"standards. For example, \"UTF-8\" is valid, but \"UTF8\" is not. See " +"https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl and https://" +"www.iana.org/assignments/character-sets/character-sets.xhtml." msgstr "" diff --git a/library/xml.po b/library/xml.po index 579cf172f..88a5cd37b 100644 --- a/library/xml.po +++ b/library/xml.po @@ -1,20 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,8 +40,8 @@ msgstr "" #: ../../library/xml.rst:20 msgid "" "The XML modules are not secure against erroneous or maliciously constructed " -"data. If you need to parse untrusted or unauthenticated data see the :ref" -":`xml-vulnerabilities` and :ref:`defused-packages` sections." +"data. If you need to parse untrusted or unauthenticated data see the :ref:" +"`xml-vulnerabilities` and :ref:`defused-packages` sections." msgstr "" #: ../../library/xml.rst:25 @@ -51,8 +54,8 @@ msgstr "" #: ../../library/xml.rst:30 msgid "" -"The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the" -" definition of the Python bindings for the DOM and SAX interfaces." +"The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the " +"definition of the Python bindings for the DOM and SAX interfaces." msgstr "" #: ../../library/xml.rst:33 @@ -93,8 +96,8 @@ msgstr "" msgid "" "The XML processing modules are not secure against maliciously constructed " "data. An attacker can abuse XML features to carry out denial of service " -"attacks, access local files, generate network connections to other machines," -" or circumvent firewalls." +"attacks, access local files, generate network connections to other machines, " +"or circumvent firewalls." msgstr "" #: ../../library/xml.rst:60 @@ -105,7 +108,7 @@ msgstr "" #: ../../library/xml.rst:64 msgid "kind" -msgstr "" +msgstr "tipo" #: ../../library/xml.rst:64 msgid "sax" @@ -125,16 +128,13 @@ msgstr "" #: ../../library/xml.rst:64 msgid "xmlrpc" -msgstr "" +msgstr "xmlrpc" #: ../../library/xml.rst:66 msgid "billion laughs" msgstr "" -#: ../../library/xml.rst:66 ../../library/xml.rst:66 ../../library/xml.rst:66 -#: ../../library/xml.rst:66 ../../library/xml.rst:66 ../../library/xml.rst:67 -#: ../../library/xml.rst:67 ../../library/xml.rst:67 ../../library/xml.rst:67 -#: ../../library/xml.rst:67 ../../library/xml.rst:70 +#: ../../library/xml.rst:66 ../../library/xml.rst:67 ../../library/xml.rst:70 msgid "**Vulnerable**" msgstr "" @@ -146,8 +146,7 @@ msgstr "" msgid "external entity expansion" msgstr "" -#: ../../library/xml.rst:68 ../../library/xml.rst:68 ../../library/xml.rst:69 -#: ../../library/xml.rst:69 +#: ../../library/xml.rst:68 ../../library/xml.rst:69 msgid "Safe (4)" msgstr "" @@ -167,9 +166,7 @@ msgstr "" msgid "`DTD`_ retrieval" msgstr "" -#: ../../library/xml.rst:69 ../../library/xml.rst:69 ../../library/xml.rst:69 -#: ../../library/xml.rst:70 ../../library/xml.rst:70 ../../library/xml.rst:70 -#: ../../library/xml.rst:70 +#: ../../library/xml.rst:69 ../../library/xml.rst:70 msgid "Safe" msgstr "" @@ -179,8 +176,8 @@ msgstr "decompression bomb" #: ../../library/xml.rst:73 msgid "" -":mod:`xml.etree.ElementTree` doesn't expand external entities and raises a " -":exc:`ParserError` when an entity occurs." +":mod:`xml.etree.ElementTree` doesn't expand external entities and raises a :" +"exc:`ParserError` when an entity occurs." msgstr "" #: ../../library/xml.rst:75 @@ -220,16 +217,16 @@ msgstr "" msgid "" "A quadratic blowup attack is similar to a `Billion Laughs`_ attack; it " "abuses entity expansion, too. Instead of nested entities it repeats one " -"large entity with a couple of thousand chars over and over again. The attack" -" isn't as efficient as the exponential case but it avoids triggering parser " +"large entity with a couple of thousand chars over and over again. The attack " +"isn't as efficient as the exponential case but it avoids triggering parser " "countermeasures that forbid deeply-nested entities." msgstr "" #: ../../library/xml.rst:97 msgid "" "Entity declarations can contain more than just text for replacement. They " -"can also point to external resources or local files. The XML parser accesses" -" the resource and embeds the content into the XML document." +"can also point to external resources or local files. The XML parser accesses " +"the resource and embeds the content into the XML document." msgstr "" #: ../../library/xml.rst:102 @@ -242,9 +239,9 @@ msgstr "" #: ../../library/xml.rst:107 msgid "" "Decompression bombs (aka `ZIP bomb`_) apply to all XML libraries that can " -"parse compressed XML streams such as gzipped HTTP streams or LZMA-compressed" -" files. For an attacker it can reduce the amount of transmitted data by " -"three magnitudes or more." +"parse compressed XML streams such as gzipped HTTP streams or LZMA-compressed " +"files. For an attacker it can reduce the amount of transmitted data by three " +"magnitudes or more." msgstr "" #: ../../library/xml.rst:113 @@ -269,9 +266,9 @@ msgstr "" #: ../../library/xml.rst:127 msgid "" "`defusedexpat`_ provides a modified libexpat and a patched :mod:`pyexpat` " -"module that have countermeasures against entity expansion DoS attacks. The " -":mod:`defusedexpat` module still allows a sane and configurable amount of " +"module that have countermeasures against entity expansion DoS attacks. The :" +"mod:`defusedexpat` module still allows a sane and configurable amount of " "entity expansions. The modifications may be included in some future release " -"of Python, but will not be included in any bugfix releases of Python because" -" they break backward compatibility." +"of Python, but will not be included in any bugfix releases of Python because " +"they break backward compatibility." msgstr "" diff --git a/library/xml.sax.handler.po b/library/xml.sax.handler.po index b1b8adbed..767198863 100644 --- a/library/xml.sax.handler.po +++ b/library/xml.sax.handler.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# Hemílio Lauro , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Hemílio Lauro , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,20 +37,20 @@ msgid "" "error handlers, and entity resolvers. Applications normally only need to " "implement those interfaces whose events they are interested in; they can " "implement the interfaces in a single object or in multiple objects. Handler " -"implementations should inherit from the base classes provided in the module " -":mod:`xml.sax.handler`, so that all methods get default implementations." -msgstr "" +"implementations should inherit from the base classes provided in the module :" +"mod:`xml.sax.handler`, so that all methods get default implementations." +msgstr "A API SAX define " #: ../../library/xml.sax.handler.rst:24 msgid "" "This is the main callback interface in SAX, and the one most important to " -"applications. The order of events in this interface mirrors the order of the" -" information in the document." +"applications. The order of events in this interface mirrors the order of the " +"information in the document." msgstr "" #: ../../library/xml.sax.handler.rst:31 msgid "Handle DTD events." -msgstr "" +msgstr "Manipular eventos DTD." #: ../../library/xml.sax.handler.rst:33 msgid "" @@ -58,8 +60,8 @@ msgstr "" #: ../../library/xml.sax.handler.rst:39 msgid "" -"Basic interface for resolving entities. If you create an object implementing" -" this interface, then register the object with your Parser, the parser will " +"Basic interface for resolving entities. If you create an object implementing " +"this interface, then register the object with your Parser, the parser will " "call the method in your object to resolve all external entities." msgstr "" @@ -82,7 +84,7 @@ msgstr "" #: ../../library/xml.sax.handler.rst:57 msgid "true: Perform Namespace processing." -msgstr "" +msgstr "true: Executa o processamento do espaço de nomes." #: ../../library/xml.sax.handler.rst:59 msgid "" @@ -166,8 +168,8 @@ msgstr "" #: ../../library/xml.sax.handler.rst:105 msgid "" -"false: Do not include any external parameter entities, even the external DTD" -" subset." +"false: Do not include any external parameter entities, even the external DTD " +"subset." msgstr "" #: ../../library/xml.sax.handler.rst:111 @@ -186,6 +188,8 @@ msgstr "" msgid "" "description: An optional extension handler for lexical events like comments." msgstr "" +"descrição: Um manipulador de extensão opcional para eventos lexicais como " +"comentários." #: ../../library/xml.sax.handler.rst:120 ../../library/xml.sax.handler.rst:129 msgid "access: read/write" @@ -201,8 +205,8 @@ msgstr "" #: ../../library/xml.sax.handler.rst:128 msgid "" -"description: An optional extension handler for DTD-related events other than" -" notations and unparsed entities." +"description: An optional extension handler for DTD-related events other than " +"notations and unparsed entities." msgstr "" #: ../../library/xml.sax.handler.rst:134 @@ -262,8 +266,8 @@ msgstr "" msgid "" "SAX parsers are strongly encouraged (though not absolutely required) to " "supply a locator: if it does so, it must supply the locator to the " -"application by invoking this method before invoking any of the other methods" -" in the DocumentHandler interface." +"application by invoking this method before invoking any of the other methods " +"in the DocumentHandler interface." msgstr "" #: ../../library/xml.sax.handler.rst:175 @@ -301,8 +305,8 @@ msgstr "" msgid "" "The SAX parser will invoke this method only once, and it will be the last " "method invoked during the parse. The parser shall not invoke this method " -"until it has either abandoned parsing (because of an unrecoverable error) or" -" reached the end of input." +"until it has either abandoned parsing (because of an unrecoverable error) or " +"reached the end of input." msgstr "" #: ../../library/xml.sax.handler.rst:207 @@ -322,18 +326,18 @@ msgid "" "There are cases, however, when applications need to use prefixes in " "character data or in attribute values, where they cannot safely be expanded " "automatically; the :meth:`startPrefixMapping` and :meth:`endPrefixMapping` " -"events supply the information to the application to expand prefixes in those" -" contexts itself, if necessary." +"events supply the information to the application to expand prefixes in those " +"contexts itself, if necessary." msgstr "" #: ../../library/xml.sax.handler.rst:222 msgid "" -"Note that :meth:`startPrefixMapping` and :meth:`endPrefixMapping` events are" -" not guaranteed to be properly nested relative to each-other: all " -":meth:`startPrefixMapping` events will occur before the corresponding " -":meth:`startElement` event, and all :meth:`endPrefixMapping` events will " -"occur after the corresponding :meth:`endElement` event, but their order is " -"not guaranteed." +"Note that :meth:`startPrefixMapping` and :meth:`endPrefixMapping` events are " +"not guaranteed to be properly nested relative to each-other: all :meth:" +"`startPrefixMapping` events will occur before the corresponding :meth:" +"`startElement` event, and all :meth:`endPrefixMapping` events will occur " +"after the corresponding :meth:`endElement` event, but their order is not " +"guaranteed." msgstr "" #: ../../library/xml.sax.handler.rst:232 @@ -343,8 +347,8 @@ msgstr "" #: ../../library/xml.sax.handler.rst:234 msgid "" "See :meth:`startPrefixMapping` for details. This event will always occur " -"after the corresponding :meth:`endElement` event, but the order of " -":meth:`endPrefixMapping` events is not otherwise guaranteed." +"after the corresponding :meth:`endElement` event, but the order of :meth:" +"`endPrefixMapping` events is not otherwise guaranteed." msgstr "" #: ../../library/xml.sax.handler.rst:241 @@ -354,12 +358,12 @@ msgstr "" #: ../../library/xml.sax.handler.rst:243 msgid "" "The *name* parameter contains the raw XML 1.0 name of the element type as a " -"string and the *attrs* parameter holds an object of the " -":class:`~xml.sax.xmlreader.Attributes` interface (see :ref:`attributes-" -"objects`) containing the attributes of the element. The object passed as " -"*attrs* may be re-used by the parser; holding on to a reference to it is not" -" a reliable way to keep a copy of the attributes. To keep a copy of the " -"attributes, use the :meth:`copy` method of the *attrs* object." +"string and the *attrs* parameter holds an object of the :class:`~xml.sax." +"xmlreader.Attributes` interface (see :ref:`attributes-objects`) containing " +"the attributes of the element. The object passed as *attrs* may be re-used " +"by the parser; holding on to a reference to it is not a reliable way to keep " +"a copy of the attributes. To keep a copy of the attributes, use the :meth:" +"`copy` method of the *attrs* object." msgstr "" #: ../../library/xml.sax.handler.rst:255 @@ -368,8 +372,8 @@ msgstr "" #: ../../library/xml.sax.handler.rst:257 msgid "" -"The *name* parameter contains the name of the element type, just as with the" -" :meth:`startElement` event." +"The *name* parameter contains the name of the element type, just as with " +"the :meth:`startElement` event." msgstr "" #: ../../library/xml.sax.handler.rst:263 @@ -379,15 +383,15 @@ msgstr "" #: ../../library/xml.sax.handler.rst:265 msgid "" "The *name* parameter contains the name of the element type as a ``(uri, " -"localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used" -" in the source document, and the *attrs* parameter holds an instance of the " -":class:`~xml.sax.xmlreader.AttributesNS` interface (see :ref:`attributes-ns-" +"localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used " +"in the source document, and the *attrs* parameter holds an instance of the :" +"class:`~xml.sax.xmlreader.AttributesNS` interface (see :ref:`attributes-ns-" "objects`) containing the attributes of the element. If no namespace is " -"associated with the element, the *uri* component of *name* will be ``None``." -" The object passed as *attrs* may be re-used by the parser; holding on to a" -" reference to it is not a reliable way to keep a copy of the attributes. To" -" keep a copy of the attributes, use the :meth:`copy` method of the *attrs* " -"object." +"associated with the element, the *uri* component of *name* will be " +"``None``. The object passed as *attrs* may be re-used by the parser; " +"holding on to a reference to it is not a reliable way to keep a copy of the " +"attributes. To keep a copy of the attributes, use the :meth:`copy` method " +"of the *attrs* object." msgstr "" #: ../../library/xml.sax.handler.rst:276 @@ -402,8 +406,8 @@ msgstr "" #: ../../library/xml.sax.handler.rst:284 msgid "" -"The *name* parameter contains the name of the element type, just as with the" -" :meth:`startElementNS` method, likewise the *qname* parameter." +"The *name* parameter contains the name of the element type, just as with " +"the :meth:`startElementNS` method, likewise the *qname* parameter." msgstr "" #: ../../library/xml.sax.handler.rst:290 @@ -412,9 +416,9 @@ msgstr "" #: ../../library/xml.sax.handler.rst:292 msgid "" -"The Parser will call this method to report each chunk of character data. SAX" -" parsers may return all contiguous character data in a single chunk, or they" -" may split it into several chunks; however, all of the characters in any " +"The Parser will call this method to report each chunk of character data. SAX " +"parsers may return all contiguous character data in a single chunk, or they " +"may split it into several chunks; however, all of the characters in any " "single event must come from the same external entity so that the Locator " "provides useful information." msgstr "" @@ -521,13 +525,13 @@ msgstr "" msgid "" "Objects with this interface are used to receive error and warning " "information from the :class:`~xml.sax.xmlreader.XMLReader`. If you create " -"an object that implements this interface, then register the object with your" -" :class:`~xml.sax.xmlreader.XMLReader`, the parser will call the methods in " -"your object to report all warnings and errors. There are three levels of " -"errors available: warnings, (possibly) recoverable errors, and unrecoverable" -" errors. All methods take a :exc:`SAXParseException` as the only parameter." -" Errors and warnings may be converted to an exception by raising the " -"passed-in exception object." +"an object that implements this interface, then register the object with " +"your :class:`~xml.sax.xmlreader.XMLReader`, the parser will call the methods " +"in your object to report all warnings and errors. There are three levels of " +"errors available: warnings, (possibly) recoverable errors, and unrecoverable " +"errors. All methods take a :exc:`SAXParseException` as the only parameter. " +"Errors and warnings may be converted to an exception by raising the passed-" +"in exception object." msgstr "" #: ../../library/xml.sax.handler.rst:397 diff --git a/library/xml.sax.po b/library/xml.sax.po index ea7b086b2..d647280ee 100644 --- a/library/xml.sax.po +++ b/library/xml.sax.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:15+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,9 +51,9 @@ msgid "" "The SAX parser no longer processes general external entities by default to " "increase security. Before, the parser created network connections to fetch " "remote files or loaded local files from the file system for DTD and " -"entities. The feature can be enabled again with method " -":meth:`~xml.sax.xmlreader.XMLReader.setFeature` on the parser object and " -"argument :data:`~xml.sax.handler.feature_external_ges`." +"entities. The feature can be enabled again with method :meth:`~xml.sax." +"xmlreader.XMLReader.setFeature` on the parser object and argument :data:" +"`~xml.sax.handler.feature_external_ges`." msgstr "" #: ../../library/xml.sax.rst:36 @@ -61,17 +63,17 @@ msgstr "" #: ../../library/xml.sax.rst:41 msgid "" "Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The " -"first parser found will be used. If *parser_list* is provided, it must be a" -" list of strings which name modules that have a function named " -":func:`create_parser`. Modules listed in *parser_list* will be used before " +"first parser found will be used. If *parser_list* is provided, it must be a " +"list of strings which name modules that have a function named :func:" +"`create_parser`. Modules listed in *parser_list* will be used before " "modules in the default list of parsers." msgstr "" #: ../../library/xml.sax.rst:50 msgid "" -"Create a SAX parser and use it to parse a document. The document, passed in" -" as *filename_or_stream*, can be a filename or a file object. The *handler*" -" parameter needs to be a SAX :class:`~handler.ContentHandler` instance. If " +"Create a SAX parser and use it to parse a document. The document, passed in " +"as *filename_or_stream*, can be a filename or a file object. The *handler* " +"parameter needs to be a SAX :class:`~handler.ContentHandler` instance. If " "*error_handler* is given, it must be a SAX :class:`~handler.ErrorHandler` " "instance; if omitted, :exc:`SAXParseException` will be raised on all " "errors. There is no return value; all work must be done by the *handler* " @@ -91,15 +93,15 @@ msgstr "" #: ../../library/xml.sax.rst:68 msgid "" -"A typical SAX application uses three kinds of objects: readers, handlers and" -" input sources. \"Reader\" in this context is another term for parser, i.e." -" some piece of code that reads the bytes or characters from the input " -"source, and produces a sequence of events. The events then get distributed " -"to the handler objects, i.e. the reader invokes a method on the handler. A " -"SAX application must therefore obtain a reader object, create or open the " -"input sources, create the handlers, and connect these objects all together." -" As the final step of preparation, the reader is called to parse the input." -" During parsing, methods on the handler objects are called based on " +"A typical SAX application uses three kinds of objects: readers, handlers and " +"input sources. \"Reader\" in this context is another term for parser, i.e. " +"some piece of code that reads the bytes or characters from the input source, " +"and produces a sequence of events. The events then get distributed to the " +"handler objects, i.e. the reader invokes a method on the handler. A SAX " +"application must therefore obtain a reader object, create or open the input " +"sources, create the handlers, and connect these objects all together. As " +"the final step of preparation, the reader is called to parse the input. " +"During parsing, methods on the handler objects are called based on " "structural and syntactic events from the input data." msgstr "" @@ -109,15 +111,14 @@ msgid "" "instantiated by the application itself. Since Python does not have an " "explicit notion of interface, they are formally introduced as classes, but " "applications may use implementations which do not inherit from the provided " -"classes. The :class:`~xml.sax.xmlreader.InputSource`, " -":class:`~xml.sax.xmlreader.Locator`, :class:`~xml.sax.xmlreader.Attributes`," -" :class:`~xml.sax.xmlreader.AttributesNS`, and " -":class:`~xml.sax.xmlreader.XMLReader` interfaces are defined in the module " -":mod:`xml.sax.xmlreader`. The handler interfaces are defined in " -":mod:`xml.sax.handler`. For convenience, " -":class:`~xml.sax.xmlreader.InputSource` (which is often instantiated " -"directly) and the handler classes are also available from :mod:`xml.sax`. " -"These interfaces are described below." +"classes. The :class:`~xml.sax.xmlreader.InputSource`, :class:`~xml.sax." +"xmlreader.Locator`, :class:`~xml.sax.xmlreader.Attributes`, :class:`~xml.sax." +"xmlreader.AttributesNS`, and :class:`~xml.sax.xmlreader.XMLReader` " +"interfaces are defined in the module :mod:`xml.sax.xmlreader`. The handler " +"interfaces are defined in :mod:`xml.sax.handler`. For convenience, :class:" +"`~xml.sax.xmlreader.InputSource` (which is often instantiated directly) and " +"the handler classes are also available from :mod:`xml.sax`. These " +"interfaces are described below." msgstr "" #: ../../library/xml.sax.rst:92 @@ -129,12 +130,12 @@ msgstr "" #: ../../library/xml.sax.rst:98 msgid "" "Encapsulate an XML error or warning. This class can contain basic error or " -"warning information from either the XML parser or the application: it can be" -" subclassed to provide additional functionality or to add localization. " -"Note that although the handlers defined in the " -":class:`~xml.sax.handler.ErrorHandler` interface receive instances of this " -"exception, it is not required to actually raise the exception --- it is also" -" useful as a container for information." +"warning information from either the XML parser or the application: it can be " +"subclassed to provide additional functionality or to add localization. Note " +"that although the handlers defined in the :class:`~xml.sax.handler." +"ErrorHandler` interface receive instances of this exception, it is not " +"required to actually raise the exception --- it is also useful as a " +"container for information." msgstr "" #: ../../library/xml.sax.rst:106 @@ -152,28 +153,25 @@ msgstr "" #: ../../library/xml.sax.rst:115 msgid "" "Subclass of :exc:`SAXException` raised on parse errors. Instances of this " -"class are passed to the methods of the SAX " -":class:`~xml.sax.handler.ErrorHandler` interface to provide information " -"about the parse error. This class supports the SAX " -":class:`~xml.sax.xmlreader.Locator` interface as well as the " -":class:`SAXException` interface." +"class are passed to the methods of the SAX :class:`~xml.sax.handler." +"ErrorHandler` interface to provide information about the parse error. This " +"class supports the SAX :class:`~xml.sax.xmlreader.Locator` interface as well " +"as the :class:`SAXException` interface." msgstr "" #: ../../library/xml.sax.rst:125 msgid "" -"Subclass of :exc:`SAXException` raised when a SAX " -":class:`~xml.sax.xmlreader.XMLReader` is confronted with an unrecognized " -"feature or property. SAX applications and extensions may use this class for" -" similar purposes." +"Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader." +"XMLReader` is confronted with an unrecognized feature or property. SAX " +"applications and extensions may use this class for similar purposes." msgstr "" #: ../../library/xml.sax.rst:133 msgid "" -"Subclass of :exc:`SAXException` raised when a SAX " -":class:`~xml.sax.xmlreader.XMLReader` is asked to enable a feature that is " -"not supported, or to set a property to a value that the implementation does " -"not support. SAX applications and extensions may use this class for similar" -" purposes." +"Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader." +"XMLReader` is asked to enable a feature that is not supported, or to set a " +"property to a value that the implementation does not support. SAX " +"applications and extensions may use this class for similar purposes." msgstr "" #: ../../library/xml.sax.rst:145 @@ -182,8 +180,8 @@ msgstr "" #: ../../library/xml.sax.rst:143 msgid "" -"This site is the focal point for the definition of the SAX API. It provides" -" a Java implementation and online documentation. Links to implementations " +"This site is the focal point for the definition of the SAX API. It provides " +"a Java implementation and online documentation. Links to implementations " "and historical information are also available." msgstr "" diff --git a/library/xml.sax.reader.po b/library/xml.sax.reader.po index 74c691d8e..779b870e5 100644 --- a/library/xml.sax.reader.po +++ b/library/xml.sax.reader.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:25+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,8 +33,8 @@ msgstr "**Código Fonte:** :source:`Lib/xml/sax/xmlreader.py`" #: ../../library/xml.sax.reader.rst:14 msgid "" -"SAX parsers implement the :class:`XMLReader` interface. They are implemented" -" in a Python module, which must provide a function :func:`create_parser`. " +"SAX parsers implement the :class:`XMLReader` interface. They are implemented " +"in a Python module, which must provide a function :func:`create_parser`. " "This function is invoked by :func:`xml.sax.make_parser` with no arguments " "to create a new parser object." msgstr "" @@ -44,19 +46,19 @@ msgstr "" #: ../../library/xml.sax.reader.rst:27 msgid "" "In some cases, it is desirable not to parse an input source at once, but to " -"feed chunks of the document as they get available. Note that the reader will" -" normally not read the entire file, but read it in chunks as well; still " -":meth:`parse` won't return until the entire document is processed. So these " +"feed chunks of the document as they get available. Note that the reader will " +"normally not read the entire file, but read it in chunks as well; still :" +"meth:`parse` won't return until the entire document is processed. So these " "interfaces should be used if the blocking behaviour of :meth:`parse` is not " "desirable." msgstr "" #: ../../library/xml.sax.reader.rst:33 msgid "" -"When the parser is instantiated it is ready to begin accepting data from the" -" feed method immediately. After parsing has been finished with a call to " -"close the reset method must be called to make the parser ready to accept new" -" data, either from feed or using the parse method." +"When the parser is instantiated it is ready to begin accepting data from the " +"feed method immediately. After parsing has been finished with a call to " +"close the reset method must be called to make the parser ready to accept new " +"data, either from feed or using the parse method." msgstr "" #: ../../library/xml.sax.reader.rst:38 @@ -76,8 +78,8 @@ msgstr "" msgid "" "Interface for associating a SAX event with a document location. A locator " "object will return valid results only during calls to DocumentHandler " -"methods; at any other time, the results are unpredictable. If information is" -" not available, methods may return ``None``." +"methods; at any other time, the results are unpredictable. If information is " +"not available, methods may return ``None``." msgstr "" #: ../../library/xml.sax.reader.rst:56 @@ -89,15 +91,14 @@ msgstr "" #: ../../library/xml.sax.reader.rst:59 msgid "" "This class may include information about the public identifier, system " -"identifier, byte stream (possibly with character encoding information) " -"and/or the character stream of an entity." +"identifier, byte stream (possibly with character encoding information) and/" +"or the character stream of an entity." msgstr "" #: ../../library/xml.sax.reader.rst:63 msgid "" -"Applications will create objects of this class for use in the " -":meth:`XMLReader.parse` method and for returning from " -"EntityResolver.resolveEntity." +"Applications will create objects of this class for use in the :meth:" +"`XMLReader.parse` method and for returning from EntityResolver.resolveEntity." msgstr "" #: ../../library/xml.sax.reader.rst:67 @@ -109,23 +110,23 @@ msgstr "" #: ../../library/xml.sax.reader.rst:74 msgid "" -"This is an implementation of the :class:`Attributes` interface (see section " -":ref:`attributes-objects`). This is a dictionary-like object which " +"This is an implementation of the :class:`Attributes` interface (see section :" +"ref:`attributes-objects`). This is a dictionary-like object which " "represents the element attributes in a :meth:`startElement` call. In " "addition to the most useful dictionary operations, it supports a number of " -"other methods as described by the interface. Objects of this class should be" -" instantiated by readers; *attrs* must be a dictionary-like object " -"containing a mapping from attribute names to attribute values." +"other methods as described by the interface. Objects of this class should be " +"instantiated by readers; *attrs* must be a dictionary-like object containing " +"a mapping from attribute names to attribute values." msgstr "" #: ../../library/xml.sax.reader.rst:85 msgid "" -"Namespace-aware variant of :class:`AttributesImpl`, which will be passed to " -":meth:`startElementNS`. It is derived from :class:`AttributesImpl`, but " -"understands attribute names as two-tuples of *namespaceURI* and *localname*." -" In addition, it provides a number of methods expecting qualified names as " -"they appear in the original document. This class implements the " -":class:`AttributesNS` interface (see section :ref:`attributes-ns-objects`)." +"Namespace-aware variant of :class:`AttributesImpl`, which will be passed to :" +"meth:`startElementNS`. It is derived from :class:`AttributesImpl`, but " +"understands attribute names as two-tuples of *namespaceURI* and *localname*. " +"In addition, it provides a number of methods expecting qualified names as " +"they appear in the original document. This class implements the :class:" +"`AttributesNS` interface (see section :ref:`attributes-ns-objects`)." msgstr "" #: ../../library/xml.sax.reader.rst:96 @@ -139,9 +140,9 @@ msgstr "" #: ../../library/xml.sax.reader.rst:103 msgid "" "Process an input source, producing SAX events. The *source* object can be a " -"system identifier (a string identifying the input source -- typically a file" -" name or a URL), a file-like object, or an :class:`InputSource` object. When" -" :meth:`parse` returns, the input is completely processed, and the parser " +"system identifier (a string identifying the input source -- typically a file " +"name or a URL), a file-like object, or an :class:`InputSource` object. When :" +"meth:`parse` returns, the input is completely processed, and the parser " "object can be discarded or reset." msgstr "" @@ -155,9 +156,8 @@ msgstr "" #: ../../library/xml.sax.reader.rst:120 msgid "" -"Set the current :class:`~xml.sax.handler.ContentHandler`. If no " -":class:`~xml.sax.handler.ContentHandler` is set, content events will be " -"discarded." +"Set the current :class:`~xml.sax.handler.ContentHandler`. If no :class:" +"`~xml.sax.handler.ContentHandler` is set, content events will be discarded." msgstr "" #: ../../library/xml.sax.reader.rst:127 @@ -166,8 +166,8 @@ msgstr "" #: ../../library/xml.sax.reader.rst:132 msgid "" -"Set the current :class:`~xml.sax.handler.DTDHandler`. If no " -":class:`~xml.sax.handler.DTDHandler` is set, DTD events will be discarded." +"Set the current :class:`~xml.sax.handler.DTDHandler`. If no :class:`~xml." +"sax.handler.DTDHandler` is set, DTD events will be discarded." msgstr "" #: ../../library/xml.sax.reader.rst:139 @@ -176,10 +176,10 @@ msgstr "" #: ../../library/xml.sax.reader.rst:144 msgid "" -"Set the current :class:`~xml.sax.handler.EntityResolver`. If no " -":class:`~xml.sax.handler.EntityResolver` is set, attempts to resolve an " -"external entity will result in opening the system identifier for the entity," -" and fail if it is not available." +"Set the current :class:`~xml.sax.handler.EntityResolver`. If no :class:" +"`~xml.sax.handler.EntityResolver` is set, attempts to resolve an external " +"entity will result in opening the system identifier for the entity, and fail " +"if it is not available." msgstr "" #: ../../library/xml.sax.reader.rst:152 @@ -188,8 +188,8 @@ msgstr "" #: ../../library/xml.sax.reader.rst:157 msgid "" -"Set the current error handler. If no :class:`~xml.sax.handler.ErrorHandler`" -" is set, errors will be raised as exceptions, and warnings will be printed." +"Set the current error handler. If no :class:`~xml.sax.handler.ErrorHandler` " +"is set, errors will be raised as exceptions, and warnings will be printed." msgstr "" #: ../../library/xml.sax.reader.rst:163 @@ -206,30 +206,30 @@ msgstr "" #: ../../library/xml.sax.reader.rst:172 msgid "" -"Return the current setting for feature *featurename*. If the feature is not" -" recognized, :exc:`SAXNotRecognizedException` is raised. The well-known " +"Return the current setting for feature *featurename*. If the feature is not " +"recognized, :exc:`SAXNotRecognizedException` is raised. The well-known " "featurenames are listed in the module :mod:`xml.sax.handler`." msgstr "" #: ../../library/xml.sax.reader.rst:179 msgid "" -"Set the *featurename* to *value*. If the feature is not recognized, " -":exc:`SAXNotRecognizedException` is raised. If the feature or its setting is" -" not supported by the parser, *SAXNotSupportedException* is raised." +"Set the *featurename* to *value*. If the feature is not recognized, :exc:" +"`SAXNotRecognizedException` is raised. If the feature or its setting is not " +"supported by the parser, *SAXNotSupportedException* is raised." msgstr "" #: ../../library/xml.sax.reader.rst:186 msgid "" "Return the current setting for property *propertyname*. If the property is " -"not recognized, a :exc:`SAXNotRecognizedException` is raised. The well-known" -" propertynames are listed in the module :mod:`xml.sax.handler`." +"not recognized, a :exc:`SAXNotRecognizedException` is raised. The well-known " +"propertynames are listed in the module :mod:`xml.sax.handler`." msgstr "" #: ../../library/xml.sax.reader.rst:193 msgid "" -"Set the *propertyname* to *value*. If the property is not recognized, " -":exc:`SAXNotRecognizedException` is raised. If the property or its setting " -"is not supported by the parser, *SAXNotSupportedException* is raised." +"Set the *propertyname* to *value*. If the property is not recognized, :exc:" +"`SAXNotRecognizedException` is raised. If the property or its setting is not " +"supported by the parser, *SAXNotSupportedException* is raised." msgstr "" #: ../../library/xml.sax.reader.rst:201 @@ -316,8 +316,8 @@ msgstr "" #: ../../library/xml.sax.reader.rst:286 msgid "" -"The encoding attribute of the :class:`InputSource` is ignored if the " -":class:`InputSource` also contains a character stream." +"The encoding attribute of the :class:`InputSource` is ignored if the :class:" +"`InputSource` also contains a character stream." msgstr "" #: ../../library/xml.sax.reader.rst:292 @@ -373,12 +373,11 @@ msgstr "" #: ../../library/xml.sax.reader.rst:332 msgid "" ":class:`Attributes` objects implement a portion of the :term:`mapping " -"protocol `, including the methods " -":meth:`~collections.abc.Mapping.copy`, :meth:`~collections.abc.Mapping.get`," -" :meth:`~object.__contains__`, :meth:`~collections.abc.Mapping.items`, " -":meth:`~collections.abc.Mapping.keys`, and " -":meth:`~collections.abc.Mapping.values`. The following methods are also " -"provided:" +"protocol `, including the methods :meth:`~collections.abc.Mapping." +"copy`, :meth:`~collections.abc.Mapping.get`, :meth:`~object.__contains__`, :" +"meth:`~collections.abc.Mapping.items`, :meth:`~collections.abc.Mapping." +"keys`, and :meth:`~collections.abc.Mapping.values`. The following methods " +"are also provided:" msgstr "" #: ../../library/xml.sax.reader.rst:342 @@ -405,8 +404,8 @@ msgstr "" #: ../../library/xml.sax.reader.rst:368 msgid "" "This interface is a subtype of the :class:`Attributes` interface (see " -"section :ref:`attributes-objects`). All methods supported by that interface" -" are also available on :class:`AttributesNS` objects." +"section :ref:`attributes-objects`). All methods supported by that interface " +"are also available on :class:`AttributesNS` objects." msgstr "" #: ../../library/xml.sax.reader.rst:372 diff --git a/library/xml.sax.utils.po b/library/xml.sax.utils.po index 432f5adaf..cc70d9cd9 100644 --- a/library/xml.sax.utils.po +++ b/library/xml.sax.utils.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:18+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +34,8 @@ msgstr "**Código Fonte:** :source:`Lib/xml/sax/saxutils.py`" #: ../../library/xml.sax.utils.rst:14 msgid "" "The module :mod:`xml.sax.saxutils` contains a number of classes and " -"functions that are commonly useful when creating SAX applications, either in" -" direct use, or as base classes." +"functions that are commonly useful when creating SAX applications, either in " +"direct use, or as base classes." msgstr "" #: ../../library/xml.sax.utils.rst:21 @@ -42,8 +44,8 @@ msgstr "" #: ../../library/xml.sax.utils.rst:23 msgid "" -"You can escape other strings of data by passing a dictionary as the optional" -" *entities* parameter. The keys and values must all be strings; each key " +"You can escape other strings of data by passing a dictionary as the optional " +"*entities* parameter. The keys and values must all be strings; each key " "will be replaced with its corresponding value. The characters ``'&'``, " "``'<'`` and ``'>'`` are always escaped, even if *entities* is provided." msgstr "" @@ -67,8 +69,8 @@ msgid "" "attribute value. The return value is a quoted version of *data* with any " "additional required replacements. :func:`quoteattr` will select a quote " "character based on the content of *data*, attempting to avoid encoding any " -"quote characters in the string. If both single- and double-quote characters" -" are already in *data*, the double-quote characters will be encoded and " +"quote characters in the string. If both single- and double-quote characters " +"are already in *data*, the double-quote characters will be encoded and " "*data* will be wrapped in double-quotes. The resulting string can be used " "directly as an attribute value::" msgstr "" @@ -81,13 +83,13 @@ msgstr "" #: ../../library/xml.sax.utils.rst:59 msgid "" -"This class implements the :class:`~xml.sax.handler.ContentHandler` interface" -" by writing SAX events back into an XML document. In other words, using an " -":class:`XMLGenerator` as the content handler will reproduce the original " -"document being parsed. *out* should be a file-like object which will default" -" to *sys.stdout*. *encoding* is the encoding of the output stream which " -"defaults to ``'iso-8859-1'``. *short_empty_elements* controls the formatting" -" of elements that contain no content: if ``False`` (the default) they are " +"This class implements the :class:`~xml.sax.handler.ContentHandler` interface " +"by writing SAX events back into an XML document. In other words, using an :" +"class:`XMLGenerator` as the content handler will reproduce the original " +"document being parsed. *out* should be a file-like object which will default " +"to *sys.stdout*. *encoding* is the encoding of the output stream which " +"defaults to ``'iso-8859-1'``. *short_empty_elements* controls the formatting " +"of elements that contain no content: if ``False`` (the default) they are " "emitted as a pair of start/end tags, if set to ``True`` they are emitted as " "a single self-closed tag." msgstr "" @@ -98,12 +100,11 @@ msgstr "" #: ../../library/xml.sax.utils.rst:75 msgid "" -"This class is designed to sit between an " -":class:`~xml.sax.xmlreader.XMLReader` and the client application's event " -"handlers. By default, it does nothing but pass requests up to the reader " -"and events on to the handlers unmodified, but subclasses can override " -"specific methods to modify the event stream or the configuration requests as" -" they pass through." +"This class is designed to sit between an :class:`~xml.sax.xmlreader." +"XMLReader` and the client application's event handlers. By default, it does " +"nothing but pass requests up to the reader and events on to the handlers " +"unmodified, but subclasses can override specific methods to modify the event " +"stream or the configuration requests as they pass through." msgstr "" #: ../../library/xml.sax.utils.rst:85 @@ -112,6 +113,6 @@ msgid "" "fully resolved :class:`~xml.sax.xmlreader.InputSource` object ready for " "reading. The input source can be given as a string, a file-like object, or " "an :class:`~xml.sax.xmlreader.InputSource` object; parsers will use this " -"function to implement the polymorphic *source* argument to their " -":meth:`parse` method." +"function to implement the polymorphic *source* argument to their :meth:" +"`parse` method." msgstr "" diff --git a/library/xmlrpc.client.po b/library/xmlrpc.client.po index 07be976c9..9b5375822 100644 --- a/library/xmlrpc.client.po +++ b/library/xmlrpc.client.po @@ -1,21 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,8 +38,8 @@ msgid "" "XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP(S) " "as a transport. With it, a client can call methods with parameters on a " "remote server (the server is named by a URI) and get back structured data. " -"This module supports writing XML-RPC client code; it handles all the details" -" of translating between conformable Python objects and XML on the wire." +"This module supports writing XML-RPC client code; it handles all the details " +"of translating between conformable Python objects and XML on the wire." msgstr "" #: ../../library/xmlrpc.client.rst:26 @@ -54,12 +57,12 @@ msgstr "" #: ../../library/xmlrpc.client.rst:39 ../../library/xmlrpc.client.rst:546 msgid "The *use_builtin_types* flag was added." -msgstr "" +msgstr "O sinalizador *use_builtin_types* foi adicionado." #: ../../library/xmlrpc.client.rst:42 msgid "" -"A :class:`ServerProxy` instance is an object that manages communication with" -" a remote XML-RPC server. The required first argument is a URI (Uniform " +"A :class:`ServerProxy` instance is an object that manages communication with " +"a remote XML-RPC server. The required first argument is a URI (Uniform " "Resource Indicator), and will normally be the URL of the server. The " "optional second argument is a transport factory instance; by default it is " "an internal :class:`SafeTransport` instance for https: URLs and an internal " @@ -72,30 +75,29 @@ msgstr "" msgid "" "The following parameters govern the use of the returned proxy instance. If " "*allow_none* is true, the Python constant ``None`` will be translated into " -"XML; the default behaviour is for ``None`` to raise a :exc:`TypeError`. This" -" is a commonly-used extension to the XML-RPC specification, but isn't " -"supported by all clients and servers; see `http://ontosys.com/xml-" -"rpc/extensions.php " -"`_ for a description. The *use_builtin_types* flag can be" -" used to cause date/time values to be presented as " -":class:`datetime.datetime` objects and binary data to be presented as " -":class:`bytes` objects; this flag is false by default. " -":class:`datetime.datetime`, :class:`bytes` and :class:`bytearray` objects " -"may be passed to calls. The obsolete *use_datetime* flag is similar to " -"*use_builtin_types* but it applies only to date/time values." +"XML; the default behaviour is for ``None`` to raise a :exc:`TypeError`. This " +"is a commonly-used extension to the XML-RPC specification, but isn't " +"supported by all clients and servers; see `http://ontosys.com/xml-rpc/" +"extensions.php `_ for a description. The *use_builtin_types* " +"flag can be used to cause date/time values to be presented as :class:" +"`datetime.datetime` objects and binary data to be presented as :class:" +"`bytes` objects; this flag is false by default. :class:`datetime.datetime`, :" +"class:`bytes` and :class:`bytearray` objects may be passed to calls. The " +"obsolete *use_datetime* flag is similar to *use_builtin_types* but it " +"applies only to date/time values." msgstr "" #: ../../library/xmlrpc.client.rst:65 msgid "" -"Both the HTTP and HTTPS transports support the URL syntax extension for HTTP" -" Basic Authentication: ``http://user:pass@host:port/path``. The " -"``user:pass`` portion will be base64-encoded as an HTTP 'Authorization' " -"header, and sent to the remote server as part of the connection process when" -" invoking an XML-RPC method. You only need to use this if the remote server" -" requires a Basic Authentication user and password. If an HTTPS URL is " -"provided, *context* may be :class:`ssl.SSLContext` and configures the SSL " -"settings of the underlying HTTPS connection." +"Both the HTTP and HTTPS transports support the URL syntax extension for HTTP " +"Basic Authentication: ``http://user:pass@host:port/path``. The ``user:" +"pass`` portion will be base64-encoded as an HTTP 'Authorization' header, and " +"sent to the remote server as part of the connection process when invoking an " +"XML-RPC method. You only need to use this if the remote server requires a " +"Basic Authentication user and password. If an HTTPS URL is provided, " +"*context* may be :class:`ssl.SSLContext` and configures the SSL settings of " +"the underlying HTTPS connection." msgstr "" #: ../../library/xmlrpc.client.rst:74 @@ -124,11 +126,11 @@ msgstr "Python type" #: ../../library/xmlrpc.client.rst:89 msgid "``boolean``" -msgstr "" +msgstr "``boolean``" #: ../../library/xmlrpc.client.rst:89 msgid ":class:`bool`" -msgstr "" +msgstr ":class:`bool`" #: ../../library/xmlrpc.client.rst:91 msgid "``int``, ``i1``, ``i2``, ``i4``, ``i8`` or ``biginteger``" @@ -150,36 +152,36 @@ msgstr "" #: ../../library/xmlrpc.client.rst:99 msgid "``string``" -msgstr "" +msgstr "``string``" #: ../../library/xmlrpc.client.rst:99 msgid ":class:`str`" -msgstr "" +msgstr ":class:`str`" #: ../../library/xmlrpc.client.rst:101 msgid "``array``" -msgstr "" +msgstr "``array``" #: ../../library/xmlrpc.client.rst:101 msgid "" -":class:`list` or :class:`tuple` containing conformable elements. Arrays are" -" returned as :class:`lists `." +":class:`list` or :class:`tuple` containing conformable elements. Arrays are " +"returned as :class:`lists `." msgstr "" #: ../../library/xmlrpc.client.rst:105 msgid "``struct``" -msgstr "" +msgstr "``struct``" #: ../../library/xmlrpc.client.rst:105 msgid "" ":class:`dict`. Keys must be strings, values may be any conformable type. " -"Objects of user-defined classes can be passed in; only their " -":attr:`~object.__dict__` attribute is transmitted." +"Objects of user-defined classes can be passed in; only their :attr:`~object." +"__dict__` attribute is transmitted." msgstr "" #: ../../library/xmlrpc.client.rst:110 msgid "``dateTime.iso8601``" -msgstr "" +msgstr "``dateTime.iso8601``" #: ../../library/xmlrpc.client.rst:110 msgid "" @@ -189,7 +191,7 @@ msgstr "" #: ../../library/xmlrpc.client.rst:114 msgid "``base64``" -msgstr "" +msgstr "``base64``" #: ../../library/xmlrpc.client.rst:114 msgid "" @@ -199,7 +201,7 @@ msgstr "" #: ../../library/xmlrpc.client.rst:118 msgid "``nil``" -msgstr "" +msgstr "``nil``" #: ../../library/xmlrpc.client.rst:118 msgid "" @@ -232,9 +234,8 @@ msgid "" "allowed in XML, such as the control characters with ASCII values between 0 " "and 31 (except, of course, tab, newline and carriage return); failing to do " "this will result in an XML-RPC request that isn't well-formed XML. If you " -"have to pass arbitrary bytes via XML-RPC, use :class:`bytes` or " -":class:`bytearray` classes or the :class:`Binary` wrapper class described " -"below." +"have to pass arbitrary bytes via XML-RPC, use :class:`bytes` or :class:" +"`bytearray` classes or the :class:`Binary` wrapper class described below." msgstr "" #: ../../library/xmlrpc.client.rst:140 @@ -249,11 +250,10 @@ msgstr "" #: ../../library/xmlrpc.client.rst:146 msgid "" -"Added support of type tags with prefixes (e.g. ``ex:nil``). Added support of" -" unmarshalling additional types used by Apache XML-RPC implementation for " +"Added support of type tags with prefixes (e.g. ``ex:nil``). Added support of " +"unmarshalling additional types used by Apache XML-RPC implementation for " "numerics: ``i1``, ``i2``, ``i8``, ``biginteger``, ``float`` and " -"``bigdecimal``. See http://ws.apache.org/xmlrpc/types.html for a " -"description." +"``bigdecimal``. See http://ws.apache.org/xmlrpc/types.html for a description." msgstr "" #: ../../library/xmlrpc.client.rst:158 @@ -263,14 +263,13 @@ msgstr "" #: ../../library/xmlrpc.client.rst:157 msgid "" "A good description of XML-RPC operation and client software in several " -"languages. Contains pretty much everything an XML-RPC client developer needs" -" to know." +"languages. Contains pretty much everything an XML-RPC client developer needs " +"to know." msgstr "" #: ../../library/xmlrpc.client.rst:161 msgid "" -"`XML-RPC Introspection " -"`_" +"`XML-RPC Introspection `_" msgstr "" #: ../../library/xmlrpc.client.rst:161 @@ -286,8 +285,7 @@ msgid "The official specification." msgstr "" #: ../../library/xmlrpc.client.rst:169 -msgid "" -"`Unofficial XML-RPC Errata `_" +msgid "`Unofficial XML-RPC Errata `_" msgstr "" #: ../../library/xmlrpc.client.rst:167 @@ -305,11 +303,10 @@ msgstr "" msgid "" "A :class:`ServerProxy` instance has a method corresponding to each remote " "procedure call accepted by the XML-RPC server. Calling the method performs " -"an RPC, dispatched by both name and argument signature (e.g. the same method" -" name can be overloaded with multiple argument signatures). The RPC " -"finishes by returning a value, which may be either returned data in a " -"conformant type or a :class:`Fault` or :class:`ProtocolError` object " -"indicating an error." +"an RPC, dispatched by both name and argument signature (e.g. the same method " +"name can be overloaded with multiple argument signatures). The RPC finishes " +"by returning a value, which may be either returned data in a conformant type " +"or a :class:`Fault` or :class:`ProtocolError` object indicating an error." msgstr "" #: ../../library/xmlrpc.client.rst:184 @@ -326,10 +323,10 @@ msgstr "" #: ../../library/xmlrpc.client.rst:196 msgid "" -"This method takes one parameter, the name of a method implemented by the " -"XML-RPC server. It returns an array of possible signatures for this method. " -"A signature is an array of types. The first of these types is the return " -"type of the method, the rest are parameters." +"This method takes one parameter, the name of a method implemented by the XML-" +"RPC server. It returns an array of possible signatures for this method. A " +"signature is an array of types. The first of these types is the return type " +"of the method, the rest are parameters." msgstr "" #: ../../library/xmlrpc.client.rst:201 @@ -340,26 +337,26 @@ msgstr "" #: ../../library/xmlrpc.client.rst:204 msgid "" -"Signatures themselves are restricted to the top level parameters expected by" -" a method. For instance if a method expects one array of structs as a " -"parameter, and it returns a string, its signature is simply \"string, " -"array\". If it expects three integers and returns a string, its signature is" -" \"string, int, int, int\"." +"Signatures themselves are restricted to the top level parameters expected by " +"a method. For instance if a method expects one array of structs as a " +"parameter, and it returns a string, its signature is simply \"string, array" +"\". If it expects three integers and returns a string, its signature is " +"\"string, int, int, int\"." msgstr "" #: ../../library/xmlrpc.client.rst:209 msgid "" -"If no signature is defined for the method, a non-array value is returned. In" -" Python this means that the type of the returned value will be something " +"If no signature is defined for the method, a non-array value is returned. In " +"Python this means that the type of the returned value will be something " "other than list." msgstr "" #: ../../library/xmlrpc.client.rst:216 msgid "" -"This method takes one parameter, the name of a method implemented by the " -"XML-RPC server. It returns a documentation string describing the use of " -"that method. If no such string is available, an empty string is returned. " -"The documentation string may contain HTML markup." +"This method takes one parameter, the name of a method implemented by the XML-" +"RPC server. It returns a documentation string describing the use of that " +"method. If no such string is available, an empty string is returned. The " +"documentation string may contain HTML markup." msgstr "" #: ../../library/xmlrpc.client.rst:223 @@ -383,10 +380,10 @@ msgstr "Objetos DateTime" #: ../../library/xmlrpc.client.rst:254 msgid "" -"This class may be initialized with seconds since the epoch, a time tuple, an" -" ISO 8601 time/date string, or a :class:`datetime.datetime` instance. It " -"has the following methods, supported mainly for internal use by the " -"marshalling/unmarshalling code:" +"This class may be initialized with seconds since the epoch, a time tuple, an " +"ISO 8601 time/date string, or a :class:`datetime.datetime` instance. It has " +"the following methods, supported mainly for internal use by the marshalling/" +"unmarshalling code:" msgstr "" #: ../../library/xmlrpc.client.rst:262 @@ -443,14 +440,14 @@ msgstr "" #: ../../library/xmlrpc.client.rst:330 msgid "" "The encoded data will have newlines every 76 characters as per :rfc:`RFC " -"2045 section 6.8 <2045#section-6.8>`, which was the de facto standard base64" -" specification when the XML-RPC spec was written." +"2045 section 6.8 <2045#section-6.8>`, which was the de facto standard base64 " +"specification when the XML-RPC spec was written." msgstr "" #: ../../library/xmlrpc.client.rst:335 msgid "" -"It also supports certain of Python's built-in operators through " -":meth:`__eq__` and :meth:`__ne__` methods." +"It also supports certain of Python's built-in operators through :meth:" +"`__eq__` and :meth:`__ne__` methods." msgstr "" #: ../../library/xmlrpc.client.rst:338 @@ -493,9 +490,9 @@ msgstr "Objeto ProtocolError" #: ../../library/xmlrpc.client.rst:419 msgid "" -"A :class:`ProtocolError` object describes a protocol error in the underlying" -" transport layer (such as a 404 'not found' error if the server named by the" -" URI does not exist). It has the following attributes:" +"A :class:`ProtocolError` object describes a protocol error in the underlying " +"transport layer (such as a 404 'not found' error if the server named by the " +"URI does not exist). It has the following attributes:" msgstr "" #: ../../library/xmlrpc.client.rst:426 @@ -518,8 +515,8 @@ msgstr "" #: ../../library/xmlrpc.client.rst:444 msgid "" -"In the following example we're going to intentionally cause a " -":exc:`ProtocolError` by providing an invalid URI::" +"In the following example we're going to intentionally cause a :exc:" +"`ProtocolError` by providing an invalid URI::" msgstr "" #: ../../library/xmlrpc.client.rst:462 @@ -538,8 +535,8 @@ msgid "" "target of the call. Calls can be made to the result object, but they will " "immediately return ``None``, and only store the call name and parameters in " "the :class:`MultiCall` object. Calling the object itself causes all stored " -"calls to be transmitted as a single ``system.multicall`` request. The result" -" of this call is a :term:`generator`; iterating over this generator yields " +"calls to be transmitted as a single ``system.multicall`` request. The result " +"of this call is a :term:`generator`; iterating over this generator yields " "the individual results." msgstr "" @@ -556,11 +553,11 @@ msgid "" "Convert *params* into an XML-RPC request. or into a response if " "*methodresponse* is true. *params* can be either a tuple of arguments or an " "instance of the :exc:`Fault` exception class. If *methodresponse* is true, " -"only a single value can be returned, meaning that *params* must be of length" -" 1. *encoding*, if supplied, is the encoding to use in the generated XML; " -"the default is UTF-8. Python's :const:`None` value cannot be used in " -"standard XML-RPC; to allow using it via an extension, provide a true value " -"for *allow_none*." +"only a single value can be returned, meaning that *params* must be of length " +"1. *encoding*, if supplied, is the encoding to use in the generated XML; the " +"default is UTF-8. Python's :const:`None` value cannot be used in standard " +"XML-RPC; to allow using it via an extension, provide a true value for " +"*allow_none*." msgstr "" #: ../../library/xmlrpc.client.rst:535 @@ -568,10 +565,10 @@ msgid "" "Convert an XML-RPC request or response into Python objects, a ``(params, " "methodname)``. *params* is a tuple of argument; *methodname* is a string, " "or ``None`` if no method name is present in the packet. If the XML-RPC " -"packet represents a fault condition, this function will raise a :exc:`Fault`" -" exception. The *use_builtin_types* flag can be used to cause date/time " -"values to be presented as :class:`datetime.datetime` objects and binary data" -" to be presented as :class:`bytes` objects; this flag is false by default." +"packet represents a fault condition, this function will raise a :exc:`Fault` " +"exception. The *use_builtin_types* flag can be used to cause date/time " +"values to be presented as :class:`datetime.datetime` objects and binary data " +"to be presented as :class:`bytes` objects; this flag is false by default." msgstr "" #: ../../library/xmlrpc.client.rst:543 @@ -605,5 +602,6 @@ msgstr "Notas de rodapé" #: ../../library/xmlrpc.client.rst:602 msgid "" "This approach has been first presented in `a discussion on xmlrpc.com " -"`_." +"`_." msgstr "" diff --git a/library/xmlrpc.po b/library/xmlrpc.po index c4c81eb09..f96bfa995 100644 --- a/library/xmlrpc.po +++ b/library/xmlrpc.po @@ -1,20 +1,21 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:28+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,19 +28,19 @@ msgstr ":mod:`xmlrpc` --- Módulos de servidor e cliente XMLRPC" #: ../../library/xmlrpc.rst:4 msgid "" -"XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a" -" transport. With it, a client can call methods with parameters on a remote " +"XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a " +"transport. With it, a client can call methods with parameters on a remote " "server (the server is named by a URI) and get back structured data." msgstr "" "XML-RPC é um método de chamada de procedimento remoto que usa XML passado " "via HTTP como um transporte. Com ele, um cliente pode chamar métodos com " -"parâmetros em um servidor remoto (o servidor é nomeado por um URI) e receber" -" dados estruturados." +"parâmetros em um servidor remoto (o servidor é nomeado por um URI) e receber " +"dados estruturados." #: ../../library/xmlrpc.rst:8 msgid "" -"``xmlrpc`` is a package that collects server and client modules implementing" -" XML-RPC. The modules are:" +"``xmlrpc`` is a package that collects server and client modules implementing " +"XML-RPC. The modules are:" msgstr "" "``xmlrpc`` é um pacote que coleta módulos de servidor e de cliente que " "implementam o XML-RPC. Os módulos são:" diff --git a/library/xmlrpc.server.po b/library/xmlrpc.server.po index 5563c2148..344173782 100644 --- a/library/xmlrpc.server.po +++ b/library/xmlrpc.server.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Italo Penaforte , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:22+0000\n" -"Last-Translator: Italo Penaforte , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +26,7 @@ msgstr "" #: ../../library/xmlrpc.server.rst:2 msgid ":mod:`xmlrpc.server` --- Basic XML-RPC servers" -msgstr "" +msgstr ":mod:`xmlrpc.server` --- Servidores XML-RPC básicos" #: ../../library/xmlrpc.server.rst:10 msgid "**Source code:** :source:`Lib/xmlrpc/server.py`" @@ -33,10 +35,14 @@ msgstr "**Código Fonte:** :source:`Lib/xmlrpc/server.py`" #: ../../library/xmlrpc.server.rst:14 msgid "" "The :mod:`xmlrpc.server` module provides a basic server framework for XML-" -"RPC servers written in Python. Servers can either be free standing, using " -":class:`SimpleXMLRPCServer`, or embedded in a CGI environment, using " -":class:`CGIXMLRPCRequestHandler`." +"RPC servers written in Python. Servers can either be free standing, using :" +"class:`SimpleXMLRPCServer`, or embedded in a CGI environment, using :class:" +"`CGIXMLRPCRequestHandler`." msgstr "" +"O módulo :mod:`xmlrpc.server` fornece um framework básico de servidor para " +"servidores XML-RPC escritos em Python. Os servidores podem ser " +"independentes, usando :class:`SimpleXMLRPCServer`, ou incorporados em um " +"ambiente CGI, usando :class:`CGIXMLRPCRequestHandler`." #: ../../library/xmlrpc.server.rst:22 msgid "" @@ -44,6 +50,9 @@ msgid "" "constructed data. If you need to parse untrusted or unauthenticated data " "see :ref:`xml-vulnerabilities`." msgstr "" +"O módulo :mod:`xmlrpc.server` não é seguro contra dados criados com códigos " +"maliciosos. Se você precisar analisar dados não confiáveis ou não " +"autenticados, consulte :ref:`xml-vulnerabilities`." #: ../../library/xmlrpc.server.rst:31 msgid "" @@ -51,34 +60,56 @@ msgid "" "of functions that can be called by the XML-RPC protocol. The " "*requestHandler* parameter should be a factory for request handler " "instances; it defaults to :class:`SimpleXMLRPCRequestHandler`. The *addr* " -"and *requestHandler* parameters are passed to the " -":class:`socketserver.TCPServer` constructor. If *logRequests* is true (the " -"default), requests will be logged; setting this parameter to false will turn" -" off logging. The *allow_none* and *encoding* parameters are passed on to " -":mod:`xmlrpc.client` and control the XML-RPC responses that will be returned" -" from the server. The *bind_and_activate* parameter controls whether " -":meth:`server_bind` and :meth:`server_activate` are called immediately by " -"the constructor; it defaults to true. Setting it to false allows code to " -"manipulate the *allow_reuse_address* class variable before the address is " -"bound. The *use_builtin_types* parameter is passed to the " -":func:`~xmlrpc.client.loads` function and controls which types are processed" -" when date/times values or binary data are received; it defaults to false." -msgstr "" +"and *requestHandler* parameters are passed to the :class:`socketserver." +"TCPServer` constructor. If *logRequests* is true (the default), requests " +"will be logged; setting this parameter to false will turn off logging. The " +"*allow_none* and *encoding* parameters are passed on to :mod:`xmlrpc.client` " +"and control the XML-RPC responses that will be returned from the server. The " +"*bind_and_activate* parameter controls whether :meth:`server_bind` and :meth:" +"`server_activate` are called immediately by the constructor; it defaults to " +"true. Setting it to false allows code to manipulate the " +"*allow_reuse_address* class variable before the address is bound. The " +"*use_builtin_types* parameter is passed to the :func:`~xmlrpc.client.loads` " +"function and controls which types are processed when date/times values or " +"binary data are received; it defaults to false." +msgstr "" +"Cria uma nova instância do servidor. Esta classe fornece métodos para " +"registro de funções que podem ser chamadas pelo protocolo XML-RPC. O " +"parâmetro *requestHandler* deve ser uma fábrica para instâncias do tratador " +"de solicitações; o padrão é :class:`SimpleXMLRPCRequestHandler`. Os " +"parâmetros *addr* e *requestHandler* são passados ​​para o construtor :class:" +"`socketserver.TCPServer`. Se *logRequests* for true (o padrão), as " +"solicitações serão registradas; definir esse parâmetro como false desativará " +"o log. Os parâmetros *allow_none* e *encoding* são transmitidos para :mod:" +"`xmlrpc.client` e controlam as respostas XML-RPC que serão retornadas do " +"servidor. O parâmetro *bind_and_activate* controla se :meth:`server_bind` e :" +"meth:`server_activate` são chamados imediatamente pelo construtor; o padrão " +"é true. A configuração como false permite que o código manipule a variável " +"de classe *allow_reuse_address* antes que o endereço seja vinculado. O " +"parâmetro *use_builtin_types* é passado para a função :func:`~xmlrpc.client." +"loads` e controla quais tipos são processados ​​quando valores de data/hora ou " +"dados binários são recebidos; o padrão é false." #: ../../library/xmlrpc.server.rst:47 ../../library/xmlrpc.server.rst:61 #: ../../library/xmlrpc.server.rst:373 msgid "The *use_builtin_types* flag was added." -msgstr "" +msgstr "O sinalizador *use_builtin_types* foi adicionado." #: ../../library/xmlrpc.server.rst:54 msgid "" "Create a new instance to handle XML-RPC requests in a CGI environment. The " -"*allow_none* and *encoding* parameters are passed on to :mod:`xmlrpc.client`" -" and control the XML-RPC responses that will be returned from the server. " -"The *use_builtin_types* parameter is passed to the " -":func:`~xmlrpc.client.loads` function and controls which types are processed" -" when date/times values or binary data are received; it defaults to false." -msgstr "" +"*allow_none* and *encoding* parameters are passed on to :mod:`xmlrpc.client` " +"and control the XML-RPC responses that will be returned from the server. The " +"*use_builtin_types* parameter is passed to the :func:`~xmlrpc.client.loads` " +"function and controls which types are processed when date/times values or " +"binary data are received; it defaults to false." +msgstr "" +"Cria uma nova instância para manipular solicitações XML-RPC em um ambiente " +"CGI. Os parâmetros *allow_none* e *encoding* são transmitidos para :mod:" +"`xmlrpc.client` e controlam as respostas XML-RPC que serão retornadas do " +"servidor. O parâmetro *use_builtin_types* é passado para a função :func:" +"`~xmlrpc.client.loads` e controla quais tipos são processados quando valores " +"de data/hora ou dados binários são recebidos; o padrão é false." #: ../../library/xmlrpc.server.rst:67 msgid "" @@ -86,17 +117,24 @@ msgid "" "``POST`` requests and modifies logging so that the *logRequests* parameter " "to the :class:`SimpleXMLRPCServer` constructor parameter is honored." msgstr "" +"Cria uma nova instância do manipulador de solicitações. Este manipulador de " +"solicitação possui suporte a solicitações ``POST`` e modifica o log para que " +"o parâmetro *logRequests* para o construtor de :class:`SimpleXMLRPCServer` " +"seja respeitado." #: ../../library/xmlrpc.server.rst:75 msgid "SimpleXMLRPCServer Objects" -msgstr "" +msgstr "Objetos de SimpleXMLRPCServer" #: ../../library/xmlrpc.server.rst:77 msgid "" -"The :class:`SimpleXMLRPCServer` class is based on " -":class:`socketserver.TCPServer` and provides a means of creating simple, " -"stand alone XML-RPC servers." +"The :class:`SimpleXMLRPCServer` class is based on :class:`socketserver." +"TCPServer` and provides a means of creating simple, stand alone XML-RPC " +"servers." msgstr "" +"A classe :class:`SimpleXMLRPCServer` é baseada em :class:`socketserver." +"TCPServer` e fornece um meio de criar servidores XML-RPC simples e " +"independentes." #: ../../library/xmlrpc.server.rst:84 ../../library/xmlrpc.server.rst:298 msgid "" @@ -105,6 +143,11 @@ msgid "" "``function.__name__`` will be used. *name* is a string, and may contain " "characters not legal in Python identifiers, including the period character." msgstr "" +"Registra uma função que possa responder às solicitações XML-RPC. Se *name* " +"for fornecido, será o nome do método associado a *function*, caso contrário, " +"``function.__name__`` será usado. *name* é uma string e pode conter " +"caracteres ilegais nos identificadores Python, incluindo o caractere de " +"ponto." #: ../../library/xmlrpc.server.rst:89 ../../library/xmlrpc.server.rst:303 msgid "" @@ -112,24 +155,38 @@ msgid "" "*name* can only be given as a keyword argument to register *function* under " "*name*. If no *name* is given, ``function.__name__`` will be used." msgstr "" +"Este método também pode ser usado como um decorador. Quando usado como " +"decorador, *name* só pode ser fornecido como argumento nomeado para " +"registrar *function* em *name*. Se nenhum *nome* for fornecido, ``function." +"__name__`` será usado." #: ../../library/xmlrpc.server.rst:93 ../../library/xmlrpc.server.rst:307 msgid ":meth:`register_function` can be used as a decorator." -msgstr "" +msgstr ":meth:`register_function` pode ser usado como um decorador." #: ../../library/xmlrpc.server.rst:99 msgid "" "Register an object which is used to expose method names which have not been " -"registered using :meth:`register_function`. If *instance* contains a " -":meth:`_dispatch` method, it is called with the requested method name and " -"the parameters from the request. Its API is ``def _dispatch(self, method, " -"params)`` (note that *params* does not represent a variable argument list)." -" If it calls an underlying function to perform its task, that function is " +"registered using :meth:`register_function`. If *instance* contains a :meth:" +"`_dispatch` method, it is called with the requested method name and the " +"parameters from the request. Its API is ``def _dispatch(self, method, " +"params)`` (note that *params* does not represent a variable argument list). " +"If it calls an underlying function to perform its task, that function is " "called as ``func(*params)``, expanding the parameter list. The return value " "from :meth:`_dispatch` is returned to the client as the result. If " "*instance* does not have a :meth:`_dispatch` method, it is searched for an " "attribute matching the name of the requested method." msgstr "" +"Registra um objeto que é usado para expor nomes de métodos que não foram " +"registrados usando :meth:`register_function`. Se *instance* contiver um " +"método :meth:`_dispatch`, ele será chamado com o nome do método solicitado e " +"os parâmetros da solicitação. Sua API é ``def _dispatch(self, method, " +"params)`` (observe que *params* não representa uma lista de argumentos " +"variáveis). Se ele chama uma função subjacente para executar sua tarefa, " +"essa função é chamada como ``func(*params)``, expandindo a lista de " +"parâmetros. O valor de retorno de :meth:`_dispatch` é retornado ao cliente " +"como resultado. Se *instance* não possui o método :meth:`_dispatch`, é " +"procurado por um atributo correspondente ao nome do método solicitado." #: ../../library/xmlrpc.server.rst:110 msgid "" @@ -141,6 +198,12 @@ msgid "" "parameters from the request, and the return value is passed back to the " "client." msgstr "" +"Se o argumento opcional *allow_dotted_names* for true e a instância não " +"tiver o método :meth:`_dispatch`, se o nome do método solicitado contiver " +"pontos, cada componente do nome do método será pesquisado individualmente, " +"com o efeito de que um simples pesquisa hierárquica é realizada. O valor " +"encontrado nessa pesquisa é chamado com os parâmetros da solicitação e o " +"valor retornado é passado de volta ao cliente." #: ../../library/xmlrpc.server.rst:119 msgid "" @@ -148,16 +211,22 @@ msgid "" "module's global variables and may allow intruders to execute arbitrary code " "on your machine. Only use this option on a secure, closed network." msgstr "" +"A ativação da opção *allow_dotted_names* permite que os invasores acessem as " +"variáveis globais do seu módulo e podem permitir que os invasores executem " +"códigos arbitrários em sua máquina. Use esta opção apenas em uma rede " +"fechada e segura." #: ../../library/xmlrpc.server.rst:126 msgid "" "Registers the XML-RPC introspection functions ``system.listMethods``, " "``system.methodHelp`` and ``system.methodSignature``." msgstr "" +"Registradores de funções de introspecção XML-RPC ``system.listMethods``, " +"``system.methodHelp`` e ``system.methodSignature``." #: ../../library/xmlrpc.server.rst:132 msgid "Registers the XML-RPC multicall function system.multicall." -msgstr "" +msgstr "Registra a função de multichamada XML-RPC system.multicall." #: ../../library/xmlrpc.server.rst:137 msgid "" @@ -166,97 +235,133 @@ msgid "" "result in a 404 \"no such page\" HTTP error. If this tuple is empty, all " "paths will be considered valid. The default value is ``('/', '/RPC2')``." msgstr "" +"Um valor de atributo que deve ser uma tupla listando partes do caminho " +"válidas da URL para receber solicitações XML-RPC. Solicitações postadas em " +"outros caminhos resultarão em um erro HTTP 404 \"página inexistente\". Se " +"esta tupla estiver vazia, todos os caminhos serão considerados válidos. O " +"valor padrão é ``('/', '/RPC2')``." #: ../../library/xmlrpc.server.rst:146 msgid "SimpleXMLRPCServer Example" -msgstr "" +msgstr "Exemplo de SimpleXMLRPCServer" #: ../../library/xmlrpc.server.rst:147 msgid "Server code::" -msgstr "" +msgstr "Código do servidor::" #: ../../library/xmlrpc.server.rst:181 msgid "" "The following client code will call the methods made available by the " "preceding server::" msgstr "" +"O código do cliente a seguir chamará os métodos disponibilizados pelo " +"servidor anterior::" #: ../../library/xmlrpc.server.rst:194 msgid "" ":meth:`register_function` can also be used as a decorator. The previous " "server example can register functions in a decorator way::" msgstr "" +":meth:`register_function` também pode ser usado como um decorador. O exemplo " +"anterior do servidor pode registrar funções de um jeito decorador::" #: ../../library/xmlrpc.server.rst:225 msgid "" "The following example included in the :file:`Lib/xmlrpc/server.py` module " "shows a server allowing dotted names and registering a multicall function." msgstr "" +"O exemplo a seguir incluído no módulo :file:`Lib/xmlrpc/server.py` mostra um " +"servidor que permite nomes com pontos e registra uma função de várias " +"chamadas." #: ../../library/xmlrpc.server.rst:230 msgid "" "Enabling the *allow_dotted_names* option allows intruders to access your " "module's global variables and may allow intruders to execute arbitrary code " -"on your machine. Only use this example only within a secure, closed " -"network." +"on your machine. Only use this example only within a secure, closed network." msgstr "" +"A ativação da opção *allow_dotted_names* permite que os invasores acessem as " +"variáveis globais do seu módulo e podem permitir que os invasores executem " +"códigos arbitrários em sua máquina. Use este exemplo apenas em uma rede " +"fechada e segura." #: ../../library/xmlrpc.server.rst:259 msgid "This ExampleService demo can be invoked from the command line::" -msgstr "" +msgstr "Esta demonstração ExampleService pode ser chamada na linha de comando:" #: ../../library/xmlrpc.server.rst:264 msgid "" -"The client that interacts with the above server is included in " -"`Lib/xmlrpc/client.py`::" +"The client that interacts with the above server is included in `Lib/xmlrpc/" +"client.py`::" msgstr "" +"O cliente que interage com o servidor acima está incluído em `Lib/xmlrpc/" +"client.py`::" #: ../../library/xmlrpc.server.rst:284 msgid "" "This client which interacts with the demo XMLRPC server can be invoked as::" msgstr "" +"Este cliente que interage com o servidor XMLRPC de demonstração pode ser " +"chamado como::" #: ../../library/xmlrpc.server.rst:290 msgid "CGIXMLRPCRequestHandler" -msgstr "" +msgstr "CGIXMLRPCRequestHandler" #: ../../library/xmlrpc.server.rst:292 msgid "" "The :class:`CGIXMLRPCRequestHandler` class can be used to handle XML-RPC " "requests sent to Python CGI scripts." msgstr "" +"A classe :class:`CGIXMLRPCRequestHandler` pode ser usada para lidar com " +"solicitações XML-RPC enviadas para scripts CGI do Python." #: ../../library/xmlrpc.server.rst:313 msgid "" -"Register an object which is used to expose method names which have not been" -" registered using :meth:`register_function`. If instance contains a " -":meth:`_dispatch` method, it is called with the requested method name and " -"the parameters from the request; the return value is returned to the client" -" as the result. If instance does not have a :meth:`_dispatch` method, it is " -"searched for an attribute matching the name of the requested method; if the" -" requested method name contains periods, each component of the method name " +"Register an object which is used to expose method names which have not been " +"registered using :meth:`register_function`. If instance contains a :meth:" +"`_dispatch` method, it is called with the requested method name and the " +"parameters from the request; the return value is returned to the client as " +"the result. If instance does not have a :meth:`_dispatch` method, it is " +"searched for an attribute matching the name of the requested method; if the " +"requested method name contains periods, each component of the method name " "is searched for individually, with the effect that a simple hierarchical " "search is performed. The value found from this search is then called with " "the parameters from the request, and the return value is passed back to " "the client." msgstr "" +"Registra um objeto que é usado para expor nomes de métodos que não foram " +"registrados usando :meth:`register_function`. Se a instância contiver um " +"método :meth:`_dispatch`, ela será chamada com o nome do método solicitado e " +"os parâmetros da solicitação; o valor retornado é retornado ao cliente como " +"resultado. Se a instância não tiver um método :meth:`_dispatch`, será " +"procurado um atributo correspondente ao nome do método solicitado; se o nome " +"do método solicitado contiver pontos, cada componente do nome do método será " +"pesquisado individualmente, com o efeito de que uma pesquisa hierárquica " +"simples é executada. O valor encontrado nessa pesquisa é chamado com os " +"parâmetros da solicitação e o valor retornado é passado de volta ao cliente." #: ../../library/xmlrpc.server.rst:327 msgid "" "Register the XML-RPC introspection functions ``system.listMethods``, " "``system.methodHelp`` and ``system.methodSignature``." msgstr "" +"Registra as funções de introspecção XML-RPC ``system.listMethods``, ``system." +"methodHelp`` e ``system.methodSignature``." #: ../../library/xmlrpc.server.rst:333 msgid "Register the XML-RPC multicall function ``system.multicall``." -msgstr "" +msgstr "Registra a função de multichamada XML-RPC ``system.multicall``." #: ../../library/xmlrpc.server.rst:338 msgid "" -"Handle an XML-RPC request. If *request_text* is given, it should be the POST" -" data provided by the HTTP server, otherwise the contents of stdin will be " +"Handle an XML-RPC request. If *request_text* is given, it should be the POST " +"data provided by the HTTP server, otherwise the contents of stdin will be " "used." msgstr "" +"Manipula uma solicitação XML-RPC. Se *request_text* for fornecido, devem ser " +"os dados POST fornecidos pelo servidor HTTP, caso contrário, o conteúdo do " +"stdin será usado." #: ../../library/xmlrpc.server.rst:341 msgid "Example::" @@ -264,60 +369,83 @@ msgstr "Exemplo::" #: ../../library/xmlrpc.server.rst:357 msgid "Documenting XMLRPC server" -msgstr "" +msgstr "Documentando servidor XMLRPC" #: ../../library/xmlrpc.server.rst:359 msgid "" "These classes extend the above classes to serve HTML documentation in " -"response to HTTP GET requests. Servers can either be free standing, using " -":class:`DocXMLRPCServer`, or embedded in a CGI environment, using " -":class:`DocCGIXMLRPCRequestHandler`." +"response to HTTP GET requests. Servers can either be free standing, using :" +"class:`DocXMLRPCServer`, or embedded in a CGI environment, using :class:" +"`DocCGIXMLRPCRequestHandler`." msgstr "" +"Essas classes estendem as classes acima para servir a documentação HTML em " +"resposta a solicitações HTTP GET. Os servidores podem ser independentes, " +"usando :class:`DocXMLRPCServer` ou incorporados em um ambiente CGI, usando :" +"class:`DocCGIXMLRPCRequestHandler`." #: ../../library/xmlrpc.server.rst:369 msgid "" -"Create a new server instance. All parameters have the same meaning as for " -":class:`SimpleXMLRPCServer`; *requestHandler* defaults to " -":class:`DocXMLRPCRequestHandler`." +"Create a new server instance. All parameters have the same meaning as for :" +"class:`SimpleXMLRPCServer`; *requestHandler* defaults to :class:" +"`DocXMLRPCRequestHandler`." msgstr "" +"Cria uma nova instância do servidor. Todos os parâmetros têm o mesmo " +"significado que para :class:`SimpleXMLRPCServer`; *requestHandler* assume " +"como padrão :class:`DocXMLRPCRequestHandler`." #: ../../library/xmlrpc.server.rst:379 msgid "Create a new instance to handle XML-RPC requests in a CGI environment." msgstr "" +"Cria uma nova instância para manipular solicitações XML-RPC em um ambiente " +"CGI." #: ../../library/xmlrpc.server.rst:384 msgid "" -"Create a new request handler instance. This request handler supports XML-RPC" -" POST requests, documentation GET requests, and modifies logging so that the" -" *logRequests* parameter to the :class:`DocXMLRPCServer` constructor " +"Create a new request handler instance. This request handler supports XML-RPC " +"POST requests, documentation GET requests, and modifies logging so that the " +"*logRequests* parameter to the :class:`DocXMLRPCServer` constructor " "parameter is honored." msgstr "" +"Cria uma nova instância do manipulador de solicitações. Este manipulador de " +"solicitações possui suporte a solicitações POST de XML-RPC, documenta " +"solicitações GET e modifica o log para que o parâmetro *logRequests* no " +"parâmetro :class:`DocXMLRPCServer` seja respeitado." #: ../../library/xmlrpc.server.rst:393 msgid "DocXMLRPCServer Objects" -msgstr "" +msgstr "Objetos de DocXMLRPCServer" #: ../../library/xmlrpc.server.rst:395 msgid "" -"The :class:`DocXMLRPCServer` class is derived from " -":class:`SimpleXMLRPCServer` and provides a means of creating self-" -"documenting, stand alone XML-RPC servers. HTTP POST requests are handled as " -"XML-RPC method calls. HTTP GET requests are handled by generating pydoc-" -"style HTML documentation. This allows a server to provide its own web-based " +"The :class:`DocXMLRPCServer` class is derived from :class:" +"`SimpleXMLRPCServer` and provides a means of creating self-documenting, " +"stand alone XML-RPC servers. HTTP POST requests are handled as XML-RPC " +"method calls. HTTP GET requests are handled by generating pydoc-style HTML " +"documentation. This allows a server to provide its own web-based " "documentation." msgstr "" +"A classe :class:`DocXMLRPCServer` é derivada de :class:`SimpleXMLRPCServer` " +"e fornece um meio de criar servidores XML-RPC autodocumentados e " +"independentes. Solicitações HTTP POST são tratadas como chamadas de método " +"XML-RPC. As solicitações HTTP GET são tratadas gerando documentação HTML no " +"estilo pydoc. Isso permite que um servidor forneça sua própria documentação " +"baseada na Web." #: ../../library/xmlrpc.server.rst:404 ../../library/xmlrpc.server.rst:432 msgid "" "Set the title used in the generated HTML documentation. This title will be " "used inside the HTML \"title\" element." msgstr "" +"Define o título usado na documentação HTML gerada. Este título será usado " +"dentro do elemento \"title\" do HTML." #: ../../library/xmlrpc.server.rst:410 ../../library/xmlrpc.server.rst:438 msgid "" -"Set the name used in the generated HTML documentation. This name will appear" -" at the top of the generated documentation inside a \"h1\" element." +"Set the name used in the generated HTML documentation. This name will appear " +"at the top of the generated documentation inside a \"h1\" element." msgstr "" +"Define o nome usado na documentação HTML gerada. Este nome aparecerá na " +"parte superior da documentação gerada dentro de um elemento \"h1\"." #: ../../library/xmlrpc.server.rst:416 ../../library/xmlrpc.server.rst:444 msgid "" @@ -325,17 +453,24 @@ msgid "" "description will appear as a paragraph, below the server name, in the " "documentation." msgstr "" +"Define a descrição usada na documentação HTML gerada. Esta descrição " +"aparecerá como um parágrafo, abaixo do nome do servidor, na documentação." #: ../../library/xmlrpc.server.rst:421 msgid "DocCGIXMLRPCRequestHandler" -msgstr "" +msgstr "DocCGIXMLRPCRequestHandler" #: ../../library/xmlrpc.server.rst:423 msgid "" -"The :class:`DocCGIXMLRPCRequestHandler` class is derived from " -":class:`CGIXMLRPCRequestHandler` and provides a means of creating self-" -"documenting, XML-RPC CGI scripts. HTTP POST requests are handled as XML-RPC " -"method calls. HTTP GET requests are handled by generating pydoc-style HTML " -"documentation. This allows a server to provide its own web-based " -"documentation." -msgstr "" +"The :class:`DocCGIXMLRPCRequestHandler` class is derived from :class:" +"`CGIXMLRPCRequestHandler` and provides a means of creating self-documenting, " +"XML-RPC CGI scripts. HTTP POST requests are handled as XML-RPC method calls. " +"HTTP GET requests are handled by generating pydoc-style HTML documentation. " +"This allows a server to provide its own web-based documentation." +msgstr "" +"A classe :class:`DocCGIXMLRPCRequestHandler` é derivada de :class:" +"`CGIXMLRPCRequestHandler` e fornece um meio de criar scripts CGI XML-RPC " +"autodocumentados. Solicitações HTTP POST são tratadas como chamadas de " +"método XML-RPC. As solicitações HTTP GET são tratadas gerando documentação " +"HTML no estilo pydoc. Isso permite que um servidor forneça sua própria " +"documentação baseada na web." diff --git a/library/zipapp.po b/library/zipapp.po index b3887841e..e67374bca 100644 --- a/library/zipapp.po +++ b/library/zipapp.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:17+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,8 +35,8 @@ msgstr "**Código Fonte:** :source:`Lib/zipapp.py`" #: ../../library/zipapp.rst:16 msgid "" "This module provides tools to manage the creation of zip files containing " -"Python code, which can be :ref:`executed directly by the Python interpreter" -" `. The module provides both a :ref:`zipapp-" +"Python code, which can be :ref:`executed directly by the Python interpreter " +"`. The module provides both a :ref:`zipapp-" "command-line-interface` and a :ref:`zipapp-python-api`." msgstr "" @@ -44,8 +46,8 @@ msgstr "" #: ../../library/zipapp.rst:25 msgid "" -"The following example shows how the :ref:`zipapp-command-line-interface` can" -" be used to create an executable archive from a directory containing Python " +"The following example shows how the :ref:`zipapp-command-line-interface` can " +"be used to create an executable archive from a directory containing Python " "code. When run, the archive will execute the ``main`` function from the " "module ``myapp`` in the archive." msgstr "" @@ -61,8 +63,8 @@ msgstr "" #: ../../library/zipapp.rst:48 msgid "" -"If *source* is a directory, this will create an archive from the contents of" -" *source*. If *source* is a file, it should be an archive, and it will be " +"If *source* is a directory, this will create an archive from the contents of " +"*source*. If *source* is a file, it should be an archive, and it will be " "copied to the target archive (or the contents of its shebang line will be " "displayed if the --info option is specified)." msgstr "" @@ -73,8 +75,8 @@ msgstr "" #: ../../library/zipapp.rst:59 msgid "" -"Write the output to a file named *output*. If this option is not specified," -" the output filename will be the same as the input *source*, with the " +"Write the output to a file named *output*. If this option is not specified, " +"the output filename will be the same as the input *source*, with the " "extension ``.pyz`` added. If an explicit filename is given, it is used as " "is (so a ``.pyz`` extension should be included if required)." msgstr "" @@ -151,8 +153,7 @@ msgid "" "The name of an existing application archive file, or a :term:`path-like " "object` referring to such a file, in which case the file is copied to the " "target (modifying it to reflect the value given for the *interpreter* " -"argument). The file name should include the ``.pyz`` extension, if " -"required." +"argument). The file name should include the ``.pyz`` extension, if required." msgstr "" #: ../../library/zipapp.rst:122 @@ -164,14 +165,13 @@ msgstr "" #: ../../library/zipapp.rst:126 msgid "" -"The *target* argument determines where the resulting archive will be " -"written:" +"The *target* argument determines where the resulting archive will be written:" msgstr "" #: ../../library/zipapp.rst:129 msgid "" -"If it is the name of a file, or a :term:`path-like object`, the archive will" -" be written to that file." +"If it is the name of a file, or a :term:`path-like object`, the archive will " +"be written to that file." msgstr "" #: ../../library/zipapp.rst:131 @@ -189,20 +189,20 @@ msgstr "" #: ../../library/zipapp.rst:137 msgid "" -"The *interpreter* argument specifies the name of the Python interpreter with" -" which the archive will be executed. It is written as a \"shebang\" line at" -" the start of the archive. On POSIX, this will be interpreted by the OS, " -"and on Windows it will be handled by the Python launcher. Omitting the " +"The *interpreter* argument specifies the name of the Python interpreter with " +"which the archive will be executed. It is written as a \"shebang\" line at " +"the start of the archive. On POSIX, this will be interpreted by the OS, and " +"on Windows it will be handled by the Python launcher. Omitting the " "*interpreter* results in no shebang line being written. If an interpreter " -"is specified, and the target is a filename, the executable bit of the target" -" file will be set." +"is specified, and the target is a filename, the executable bit of the target " +"file will be set." msgstr "" #: ../../library/zipapp.rst:145 msgid "" "The *main* argument specifies the name of a callable which will be used as " -"the main program for the archive. It can only be specified if the source is" -" a directory, and the source does not already contain a ``__main__.py`` " +"the main program for the archive. It can only be specified if the source is " +"a directory, and the source does not already contain a ``__main__.py`` " "file. The *main* argument should take the form \"pkg.module:callable\" and " "the archive will be run by importing \"pkg.module\" and executing the given " "callable with no arguments. It is an error to omit *main* if the source is " @@ -213,14 +213,14 @@ msgstr "" #: ../../library/zipapp.rst:155 msgid "" "The optional *filter* argument specifies a callback function that is passed " -"a Path object representing the path to the file being added (relative to the" -" source directory). It should return ``True`` if the file is to be added." +"a Path object representing the path to the file being added (relative to the " +"source directory). It should return ``True`` if the file is to be added." msgstr "" #: ../../library/zipapp.rst:160 msgid "" -"The optional *compressed* argument determines whether files are compressed." -" If set to ``True``, files in the archive are compressed with the deflate " +"The optional *compressed* argument determines whether files are compressed. " +"If set to ``True``, files in the archive are compressed with the deflate " "method; otherwise, files are stored uncompressed. This argument has no " "effect when copying an existing archive." msgstr "" @@ -235,8 +235,8 @@ msgstr "" msgid "" "When copying an existing archive, file objects supplied only need ``read`` " "and ``readline``, or ``write`` methods. When creating an archive from a " -"directory, if the target is a file object it will be passed to the " -"``zipfile.ZipFile`` class, and must supply the methods needed by that class." +"directory, if the target is a file object it will be passed to the ``zipfile." +"ZipFile`` class, and must supply the methods needed by that class." msgstr "" #: ../../library/zipapp.rst:174 @@ -265,8 +265,8 @@ msgstr "" #: ../../library/zipapp.rst:203 msgid "" -"To make the application directly executable on POSIX, specify an interpreter" -" to use." +"To make the application directly executable on POSIX, specify an interpreter " +"to use." msgstr "" #: ../../library/zipapp.rst:212 @@ -277,12 +277,12 @@ msgstr "" #: ../../library/zipapp.rst:218 msgid "" -"To update the file in place, do the replacement in memory using a " -":class:`BytesIO` object, and then overwrite the source afterwards. Note " -"that there is a risk when overwriting a file in place that an error will " -"result in the loss of the original file. This code does not protect against" -" such errors, but production code should do so. Also, this method will only" -" work if the archive fits in memory::" +"To update the file in place, do the replacement in memory using a :class:" +"`BytesIO` object, and then overwrite the source afterwards. Note that there " +"is a risk when overwriting a file in place that an error will result in the " +"loss of the original file. This code does not protect against such errors, " +"but production code should do so. Also, this method will only work if the " +"archive fits in memory::" msgstr "" #: ../../library/zipapp.rst:236 @@ -291,10 +291,10 @@ msgstr "" #: ../../library/zipapp.rst:238 msgid "" -"Note that if you specify an interpreter and then distribute your application" -" archive, you need to ensure that the interpreter used is portable. The " -"Python launcher for Windows supports most common forms of POSIX ``#!`` line," -" but there are other issues to consider:" +"Note that if you specify an interpreter and then distribute your application " +"archive, you need to ensure that the interpreter used is portable. The " +"Python launcher for Windows supports most common forms of POSIX ``#!`` line, " +"but there are other issues to consider:" msgstr "" #: ../../library/zipapp.rst:243 @@ -308,8 +308,8 @@ msgstr "" #: ../../library/zipapp.rst:247 msgid "" "If you use an explicit version, for example \"/usr/bin/env python3\" your " -"application will not work for users who do not have that version. (This may" -" be what you want if you have not made your code Python 2 compatible)." +"application will not work for users who do not have that version. (This may " +"be what you want if you have not made your code Python 2 compatible)." msgstr "" #: ../../library/zipapp.rst:250 @@ -332,8 +332,8 @@ msgstr "" #: ../../library/zipapp.rst:261 msgid "" "Using the :mod:`zipapp` module, it is possible to create self-contained " -"Python programs, which can be distributed to end users who only need to have" -" a suitable version of Python installed on their system. The key to doing " +"Python programs, which can be distributed to end users who only need to have " +"a suitable version of Python installed on their system. The key to doing " "this is to bundle all of the application's dependencies into the archive, " "along with the application code." msgstr "" @@ -351,8 +351,8 @@ msgstr "" #: ../../library/zipapp.rst:273 msgid "" -"Install all of your application's dependencies into the ``myapp`` directory," -" using pip:" +"Install all of your application's dependencies into the ``myapp`` directory, " +"using pip:" msgstr "" #: ../../library/zipapp.rst:280 @@ -365,8 +365,8 @@ msgstr "" #: ../../library/zipapp.rst:284 msgid "" "Optionally, delete the ``.dist-info`` directories created by pip in the " -"``myapp`` directory. These hold metadata for pip to manage the packages, and" -" as you won't be making any further use of pip they aren't required - " +"``myapp`` directory. These hold metadata for pip to manage the packages, and " +"as you won't be making any further use of pip they aren't required - " "although it won't do any harm if you leave them." msgstr "" @@ -398,19 +398,20 @@ msgstr "" msgid "" "On Windows, registration of the ``.pyz`` extension is optional, and " "furthermore, there are certain places that don't recognise registered " -"extensions \"transparently\" (the simplest example is that " -"``subprocess.run(['myapp'])`` won't find your application - you need to " -"explicitly specify the extension)." +"extensions \"transparently\" (the simplest example is that ``subprocess." +"run(['myapp'])`` won't find your application - you need to explicitly " +"specify the extension)." msgstr "" #: ../../library/zipapp.rst:315 msgid "" "On Windows, therefore, it is often preferable to create an executable from " -"the zipapp. This is relatively easy, although it does require a C compiler." -" The basic approach relies on the fact that zipfiles can have arbitrary " -"data prepended, and Windows exe files can have arbitrary data appended. So " -"by creating a suitable launcher and tacking the ``.pyz`` file onto the end " -"of it, you end up with a single-file executable that runs your application." +"the zipapp. This is relatively easy, although it does require a C " +"compiler. The basic approach relies on the fact that zipfiles can have " +"arbitrary data prepended, and Windows exe files can have arbitrary data " +"appended. So by creating a suitable launcher and tacking the ``.pyz`` file " +"onto the end of it, you end up with a single-file executable that runs your " +"application." msgstr "" #: ../../library/zipapp.rst:322 @@ -425,24 +426,24 @@ msgstr "" #: ../../library/zipapp.rst:350 msgid "" -"To compile the executable, you can either just use the standard MSVC command" -" line tools, or you can take advantage of the fact that distutils knows how " +"To compile the executable, you can either just use the standard MSVC command " +"line tools, or you can take advantage of the fact that distutils knows how " "to compile Python source::" msgstr "" #: ../../library/zipapp.rst:377 msgid "" "The resulting launcher uses the \"Limited ABI\", so it will run unchanged " -"with any version of Python 3.x. All it needs is for Python " -"(``python3.dll``) to be on the user's ``PATH``." +"with any version of Python 3.x. All it needs is for Python (``python3." +"dll``) to be on the user's ``PATH``." msgstr "" #: ../../library/zipapp.rst:381 msgid "" "For a fully standalone distribution, you can distribute the launcher with " "your application appended, bundled with the Python \"embedded\" " -"distribution. This will run on any PC with the appropriate architecture (32" -" bit or 64 bit)." +"distribution. This will run on any PC with the appropriate architecture (32 " +"bit or 64 bit)." msgstr "" #: ../../library/zipapp.rst:387 @@ -466,27 +467,27 @@ msgid "" "zipfile and add code to your ``__main__.py`` to include the directory " "containing the unzipped module in ``sys.path``. In this case, you will need " "to make sure to ship appropriate binaries for your target architecture(s) " -"(and potentially pick the correct version to add to ``sys.path`` at runtime," -" based on the user's machine)." +"(and potentially pick the correct version to add to ``sys.path`` at runtime, " +"based on the user's machine)." msgstr "" #: ../../library/zipapp.rst:403 msgid "" -"If you are shipping a Windows executable as described above, you either need" -" to ensure that your users have ``python3.dll`` on their PATH (which is not " +"If you are shipping a Windows executable as described above, you either need " +"to ensure that your users have ``python3.dll`` on their PATH (which is not " "the default behaviour of the installer) or you should bundle your " "application with the embedded distribution." msgstr "" #: ../../library/zipapp.rst:408 msgid "" -"The suggested launcher above uses the Python embedding API. This means that" -" in your application, ``sys.executable`` will be your application, and *not*" -" a conventional Python interpreter. Your code and its dependencies need to " -"be prepared for this possibility. For example, if your application uses the" -" :mod:`multiprocessing` module, it will need to call " -":func:`multiprocessing.set_executable` to let the module know where to find " -"the standard Python interpreter." +"The suggested launcher above uses the Python embedding API. This means that " +"in your application, ``sys.executable`` will be your application, and *not* " +"a conventional Python interpreter. Your code and its dependencies need to " +"be prepared for this possibility. For example, if your application uses " +"the :mod:`multiprocessing` module, it will need to call :func:" +"`multiprocessing.set_executable` to let the module know where to find the " +"standard Python interpreter." msgstr "" #: ../../library/zipapp.rst:418 @@ -498,10 +499,10 @@ msgid "" "Python has been able to execute zip files which contain a ``__main__.py`` " "file since version 2.6. In order to be executed by Python, an application " "archive simply has to be a standard zip file containing a ``__main__.py`` " -"file which will be run as the entry point for the application. As usual for" -" any Python script, the parent of the script (in this case the zip file) " -"will be placed on :data:`sys.path` and thus further modules can be imported " -"from the zip file." +"file which will be run as the entry point for the application. As usual for " +"any Python script, the parent of the script (in this case the zip file) will " +"be placed on :data:`sys.path` and thus further modules can be imported from " +"the zip file." msgstr "" #: ../../library/zipapp.rst:427 @@ -517,8 +518,8 @@ msgstr "" #: ../../library/zipapp.rst:433 msgid "" -"An optional shebang line, containing the characters ``b'#!'`` followed by an" -" interpreter name, and then a newline (``b'\\n'``) character. The " +"An optional shebang line, containing the characters ``b'#!'`` followed by an " +"interpreter name, and then a newline (``b'\\n'``) character. The " "interpreter name can be anything acceptable to the OS \"shebang\" " "processing, or the Python launcher on Windows. The interpreter should be " "encoded in UTF-8 on Windows, and in :func:`sys.getfilesystemencoding()` on " @@ -529,14 +530,14 @@ msgstr "" msgid "" "Standard zipfile data, as generated by the :mod:`zipfile` module. The " "zipfile content *must* include a file called ``__main__.py`` (which must be " -"in the \"root\" of the zipfile - i.e., it cannot be in a subdirectory). The" -" zipfile data can be compressed or uncompressed." +"in the \"root\" of the zipfile - i.e., it cannot be in a subdirectory). The " +"zipfile data can be compressed or uncompressed." msgstr "" #: ../../library/zipapp.rst:443 msgid "" -"If an application archive has a shebang line, it may have the executable bit" -" set on POSIX systems, to allow it to be executed directly." +"If an application archive has a shebang line, it may have the executable bit " +"set on POSIX systems, to allow it to be executed directly." msgstr "" #: ../../library/zipapp.rst:446 diff --git a/library/zipfile.po b/library/zipfile.po index dac608221..a6efbaadb 100644 --- a/library/zipfile.po +++ b/library/zipfile.po @@ -1,24 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Marciel Leal , 2019 # Christian Janiake , 2019 # Giovana Morais , 2019 -# +# Rafael Fontenelle , 2019 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:23+0000\n" -"Last-Translator: Giovana Morais , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,12 +40,12 @@ msgstr "**Código Fonte:** :source:`Lib/zipfile.py`" msgid "" "The ZIP file format is a common archive and compression standard. This " "module provides tools to create, read, write, append, and list a ZIP file. " -"Any advanced use of this module will require an understanding of the format," -" as defined in `PKZIP Application Note`_." +"Any advanced use of this module will require an understanding of the format, " +"as defined in `PKZIP Application Note`_." msgstr "" "O formato de arquivo ZIP é um padrão de compactação e arquivamento. Este " -"módulo fornece ferramentas para criar, ler, escrever, adicionar, e listar um" -" arquivo ZIP. Qualquer uso avançado deste módulo vai exigir um entendimento " +"módulo fornece ferramentas para criar, ler, escrever, adicionar, e listar um " +"arquivo ZIP. Qualquer uso avançado deste módulo vai exigir um entendimento " "do formato, como definido em `PKZIP Application Note`_. " #: ../../library/zipfile.rst:19 @@ -57,8 +60,8 @@ msgstr "" "com arquivos ZIP que usam as extensões ZIP64 (ou seja arquivos ZIP com " "tamanho maior do que 4 Gb). Ele suporta descriptografia de arquivos " "criptografados dentro do ZIP, mas atualmente não pode criar um arquivo " -"criptografado. A descriptografia é extremamente lenta pois é implementada em" -" Python nativo ao invés de C." +"criptografado. A descriptografia é extremamente lenta pois é implementada em " +"Python nativo ao invés de C." #: ../../library/zipfile.rst:26 msgid "The module defines the following items:" @@ -103,12 +106,12 @@ msgid "" "module will not need to create these, but only use those created by this " "module. *filename* should be the full name of the archive member, and " "*date_time* should be a tuple containing six fields which describe the time " -"of the last modification to the file; the fields are described in section " -":ref:`zipinfo-objects`." +"of the last modification to the file; the fields are described in section :" +"ref:`zipinfo-objects`." msgstr "" "Classe usada para representar informação sobre um membro de um archive. " -"Instâncias desta classe são retornadas pelos métodos :meth:`.getinfo` e " -":meth:`.infolist` de objetos da classe :class:`ZipFile`. A maioria dos " +"Instâncias desta classe são retornadas pelos métodos :meth:`.getinfo` e :" +"meth:`.infolist` de objetos da classe :class:`ZipFile`. A maioria dos " "usuários do módulo :mod:`zipfile` não vai precisar criar, mas apenas usar " "objetos criados pelo módulo. *filename* deveria ser o caminho completo do " "membro do arquivo, e *date_time* deveria ser uma tupla contendo seis campos " @@ -138,38 +141,38 @@ msgid "" "The numeric constant for the usual ZIP compression method. This requires " "the :mod:`zlib` module." msgstr "" -"Código numérico para o método de compactação usual. Requer o módulo " -":mod:`zlib` ." +"Código numérico para o método de compactação usual. Requer o módulo :mod:" +"`zlib` ." #: ../../library/zipfile.rst:95 msgid "" -"The numeric constant for the BZIP2 compression method. This requires the " -":mod:`bz2` module." +"The numeric constant for the BZIP2 compression method. This requires the :" +"mod:`bz2` module." msgstr "" -"Código numérico para o método de compactação BZIP2. Requer o módulo " -":mod:`bz2`." +"Código numérico para o método de compactação BZIP2. Requer o módulo :mod:" +"`bz2`." #: ../../library/zipfile.rst:102 msgid "" -"The numeric constant for the LZMA compression method. This requires the " -":mod:`lzma` module." +"The numeric constant for the LZMA compression method. This requires the :" +"mod:`lzma` module." msgstr "" -"Código numérico para o método de compactação LZMA. Requer o módulo " -":mod:`lzma`." +"Código numérico para o método de compactação LZMA. Requer o módulo :mod:" +"`lzma`." #: ../../library/zipfile.rst:109 msgid "" -"The ZIP file format specification has included support for bzip2 compression" -" since 2001, and for LZMA compression since 2006. However, some tools " +"The ZIP file format specification has included support for bzip2 compression " +"since 2001, and for LZMA compression since 2006. However, some tools " "(including older Python releases) do not support these compression methods, " -"and may either refuse to process the ZIP file altogether, or fail to extract" -" individual files." +"and may either refuse to process the ZIP file altogether, or fail to extract " +"individual files." msgstr "" "A especificação do formato ZIP incluiu suporte para compactação bzip2 desde " "2001, e para compactação LZMA desde 2006. Porém, algumas ferramentas " "(incluindo versões mais antigas de Python) não suportam esses métodos de " -"compactação, e podem recusar processar o arquivo ZIP como um todo, ou falhar" -" em extrair arquivos individuais." +"compactação, e podem recusar processar o arquivo ZIP como um todo, ou falhar " +"em extrair arquivos individuais." #: ../../library/zipfile.rst:120 msgid "`PKZIP Application Note`_" @@ -177,8 +180,8 @@ msgstr "`PKZIP Notas da Aplicação`_" #: ../../library/zipfile.rst:119 msgid "" -"Documentation on the ZIP file format by Phil Katz, the creator of the format" -" and algorithms used." +"Documentation on the ZIP file format by Phil Katz, the creator of the format " +"and algorithms used." msgstr "" "Documentação do formato de arquivo ZIP feita por Phil Katz, criador do " "formato e dos algoritmos usados." @@ -211,9 +214,9 @@ msgstr "" msgid "" "The *mode* parameter should be ``'r'`` to read an existing file, ``'w'`` to " "truncate and write a new file, ``'a'`` to append to an existing file, or " -"``'x'`` to exclusively create and write a new file. If *mode* is ``'x'`` and" -" *file* refers to an existing file, a :exc:`FileExistsError` will be raised." -" If *mode* is ``'a'`` and *file* refers to an existing ZIP file, then " +"``'x'`` to exclusively create and write a new file. If *mode* is ``'x'`` and " +"*file* refers to an existing file, a :exc:`FileExistsError` will be raised. " +"If *mode* is ``'a'`` and *file* refers to an existing ZIP file, then " "additional files are added to it. If *file* does not refer to a ZIP file, " "then a new ZIP archive is appended to the file. This is meant for adding a " "ZIP archive to another file (such as :file:`python.exe`). If *mode* is " @@ -222,81 +225,80 @@ msgid "" msgstr "" "O parâmetro *mode* deve ser ``'r'`` para ler um arquivo existente, ``'w'`` " "para truncar e gravar um novo arquivo, ``'a'`` para adicionar a um arquivo " -"existente, ou ``'x'`` exclusivamente para criar e gravar um novo arquivo. Se" -" o *mode* é ``'x'`` e *file* se refere a um arquivo existente, um " -":exc:`FileExistsError` vai ser lançado. Se o *mode* é ``'a'`` e *file* se " -"refere a um arquivo ZIP existente, então arquivos adicionais são adicionados" -" ao mesmo. Se *file* não se refere a um arquivo ZIP, então um novo arquivo " -"ZIP é adicionado ao arquivo. Isso diz respeitoa adicionar um arquivo ZIP a " -"um outro arquivo (como por exemplo :file:`python.exe`). Se o *mode* é " -"``'a'`` e o arquivo não existe, ele será criado. Se o *mode* é ``'r'`` ou " -"``'a'``, o arquivo deve ser percorrível." +"existente, ou ``'x'`` exclusivamente para criar e gravar um novo arquivo. Se " +"o *mode* é ``'x'`` e *file* se refere a um arquivo existente, um :exc:" +"`FileExistsError` vai ser lançado. Se o *mode* é ``'a'`` e *file* se refere " +"a um arquivo ZIP existente, então arquivos adicionais são adicionados ao " +"mesmo. Se *file* não se refere a um arquivo ZIP, então um novo arquivo ZIP é " +"adicionado ao arquivo. Isso diz respeitoa adicionar um arquivo ZIP a um " +"outro arquivo (como por exemplo :file:`python.exe`). Se o *mode* é ``'a'`` e " +"o arquivo não existe, ele será criado. Se o *mode* é ``'r'`` ou ``'a'``, o " +"arquivo deve ser percorrível." #: ../../library/zipfile.rst:151 msgid "" -"*compression* is the ZIP compression method to use when writing the archive," -" and should be :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`, " -":const:`ZIP_BZIP2` or :const:`ZIP_LZMA`; unrecognized values will cause " -":exc:`NotImplementedError` to be raised. If :const:`ZIP_DEFLATED`, " -":const:`ZIP_BZIP2` or :const:`ZIP_LZMA` is specified but the corresponding " -"module (:mod:`zlib`, :mod:`bz2` or :mod:`lzma`) is not available, " -":exc:`RuntimeError` is raised. The default is :const:`ZIP_STORED`." -msgstr "" -"*compression* é o método de compactação ZIP para usar ao escrever o arquivo," -" e deve ser :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`, :const:`ZIP_BZIP2` " -"ou :const:`ZIP_LZMA`; valores desconhecidos devem causar " -":exc:`NotImplementedError`. Se :const:`ZIP_DEFLATED`, :const:`ZIP_BZIP2` or " -":const:`ZIP_LZMA` for especificado mas o módulo correspondente (:mod:`zlib`," -" :mod:`bz2` or :mod:`lzma`) não estiver disponível, é lançado um " -":exc:`RuntimeError`. O valor padrão é :const:`ZIP_STORED`." +"*compression* is the ZIP compression method to use when writing the archive, " +"and should be :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`, :const:`ZIP_BZIP2` " +"or :const:`ZIP_LZMA`; unrecognized values will cause :exc:" +"`NotImplementedError` to be raised. If :const:`ZIP_DEFLATED`, :const:" +"`ZIP_BZIP2` or :const:`ZIP_LZMA` is specified but the corresponding module (:" +"mod:`zlib`, :mod:`bz2` or :mod:`lzma`) is not available, :exc:`RuntimeError` " +"is raised. The default is :const:`ZIP_STORED`." +msgstr "" +"*compression* é o método de compactação ZIP para usar ao escrever o arquivo, " +"e deve ser :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`, :const:`ZIP_BZIP2` " +"ou :const:`ZIP_LZMA`; valores desconhecidos devem causar :exc:" +"`NotImplementedError`. Se :const:`ZIP_DEFLATED`, :const:`ZIP_BZIP2` or :" +"const:`ZIP_LZMA` for especificado mas o módulo correspondente (:mod:`zlib`, :" +"mod:`bz2` or :mod:`lzma`) não estiver disponível, é lançado um :exc:" +"`RuntimeError`. O valor padrão é :const:`ZIP_STORED`." #: ../../library/zipfile.rst:159 msgid "" -"If *allowZip64* is ``True`` (the default) zipfile will create ZIP files that" -" use the ZIP64 extensions when the zipfile is larger than 4 GiB. If it is " +"If *allowZip64* is ``True`` (the default) zipfile will create ZIP files that " +"use the ZIP64 extensions when the zipfile is larger than 4 GiB. If it is " "``false`` :mod:`zipfile` will raise an exception when the ZIP file would " "require ZIP64 extensions." msgstr "" "Se *allowZip64* é ``True`` (valor padrão), então zipfile vai criar arquivos " -"ZIP que usem as extensões ZIP64 quando o arquivo ZIP é maior do que 4 Gb. Se" -" é ``false`` :mod:`zipfile` lança uma exceção quando o arquivo ZIP " -"precisaria das extensões ZIP64." +"ZIP que usem as extensões ZIP64 quando o arquivo ZIP é maior do que 4 Gb. Se " +"é ``false`` :mod:`zipfile` lança uma exceção quando o arquivo ZIP precisaria " +"das extensões ZIP64." #: ../../library/zipfile.rst:164 msgid "" "The *compresslevel* parameter controls the compression level to use when " -"writing files to the archive. When using :const:`ZIP_STORED` or " -":const:`ZIP_LZMA` it has no effect. When using :const:`ZIP_DEFLATED` " -"integers ``0`` through ``9`` are accepted (see :class:`zlib " -"` for more information). When using :const:`ZIP_BZIP2` " -"integers ``1`` through ``9`` are accepted (see :class:`bz2 ` " -"for more information)." +"writing files to the archive. When using :const:`ZIP_STORED` or :const:" +"`ZIP_LZMA` it has no effect. When using :const:`ZIP_DEFLATED` integers ``0`` " +"through ``9`` are accepted (see :class:`zlib ` for more " +"information). When using :const:`ZIP_BZIP2` integers ``1`` through ``9`` are " +"accepted (see :class:`bz2 ` for more information)." msgstr "" "O parâmetro *compresslevel* controla o nível de compactação para usar ao " -"gravar no arquivo ZIP. Quando usado :const:`ZIP_STORED` ou :const:`ZIP_LZMA`" -" não tem efeito. Quando usado :const:`ZIP_DEFLATED` inteiros de ``0`` a " -"``9`` são aceitos (veja :class:`zlib ` para mais " -"informações). Quando usado :const:`ZIP_BZIP2` inteiros de ``1`` a ``9`` são " -"aceitos (veja :class:`bz2 ` para mais informações)." +"gravar no arquivo ZIP. Quando usado :const:`ZIP_STORED` ou :const:`ZIP_LZMA` " +"não tem efeito. Quando usado :const:`ZIP_DEFLATED` inteiros de ``0`` a ``9`` " +"são aceitos (veja :class:`zlib ` para mais informações). " +"Quando usado :const:`ZIP_BZIP2` inteiros de ``1`` a ``9`` são aceitos (veja :" +"class:`bz2 ` para mais informações)." #: ../../library/zipfile.rst:172 msgid "" -"If the file is created with mode ``'w'``, ``'x'`` or ``'a'`` and then " -":meth:`closed ` without adding any files to the archive, the " -"appropriate ZIP structures for an empty archive will be written to the file." +"If the file is created with mode ``'w'``, ``'x'`` or ``'a'`` and then :meth:" +"`closed ` without adding any files to the archive, the appropriate " +"ZIP structures for an empty archive will be written to the file." msgstr "" -"Se o arquivo é criado com modo ``'w'``, ``'x'`` ou ``'a'`` e então " -":meth:`closed` sem adicionar nada ao arquivo, a estrutura própria para um " -"arquivo vazio será escrita no arquivo. " +"Se o arquivo é criado com modo ``'w'``, ``'x'`` ou ``'a'`` e então :meth:" +"`closed` sem adicionar nada ao arquivo, a estrutura própria para um arquivo " +"vazio será escrita no arquivo. " #: ../../library/zipfile.rst:176 msgid "" -"ZipFile is also a context manager and therefore supports the :keyword:`with`" -" statement. In the example, *myzip* is closed after the :keyword:`!with` " +"ZipFile is also a context manager and therefore supports the :keyword:`with` " +"statement. In the example, *myzip* is closed after the :keyword:`!with` " "statement's suite is finished---even if an exception occurs::" msgstr "" -"ZipFile também é um gerenciador de contexto e portanto suporta a declaração " -":keyword:`with`. Neste exemplo, *myzip* é fechado ao final da execução da " +"ZipFile também é um gerenciador de contexto e portanto suporta a declaração :" +"keyword:`with`. Neste exemplo, *myzip* é fechado ao final da execução da " "declaração :keyword:`!with` -- mesmo que ocorra uma exceção." #: ../../library/zipfile.rst:183 @@ -371,69 +373,67 @@ msgstr "Retorna uma lista de membros do arquivo por nome." msgid "" "Access a member of the archive as a binary file-like object. *name* can be " "either the name of a file within the archive or a :class:`ZipInfo` object. " -"The *mode* parameter, if included, must be ``'r'`` (the default) or ``'w'``." -" *pwd* is the password used to decrypt encrypted ZIP files." +"The *mode* parameter, if included, must be ``'r'`` (the default) or " +"``'w'``. *pwd* is the password used to decrypt encrypted ZIP files." msgstr "" "Acessa um membro do arquivo como um objeto file-like ou arquivo binário. " -"*name* pode ser o nome de um arquivo membro ou um objeto :class:`ZipInfo`. O" -" parâmetro *mode*, se informado, deve ser ``'r'`` (valor padrão) or ``'w'``." -" *pwd* é a senha usada para descriptografar arquivos ZIP criptografados." +"*name* pode ser o nome de um arquivo membro ou um objeto :class:`ZipInfo`. O " +"parâmetro *mode*, se informado, deve ser ``'r'`` (valor padrão) or ``'w'``. " +"*pwd* é a senha usada para descriptografar arquivos ZIP criptografados." #: ../../library/zipfile.rst:239 msgid "" -":meth:`~ZipFile.open` is also a context manager and therefore supports the " -":keyword:`with` statement::" +":meth:`~ZipFile.open` is also a context manager and therefore supports the :" +"keyword:`with` statement::" msgstr "" -":meth:`~ZipFile.open` também é um gerenciador de contexto e portanto suporta" -" declarações com :keyword:`with`" +":meth:`~ZipFile.open` também é um gerenciador de contexto e portanto suporta " +"declarações com :keyword:`with`" #: ../../library/zipfile.rst:246 msgid "" "With *mode* ``'r'`` the file-like object (``ZipExtFile``) is read-only and " -"provides the following methods: :meth:`~io.BufferedIOBase.read`, " -":meth:`~io.IOBase.readline`, :meth:`~io.IOBase.readlines`, " -":meth:`~io.IOBase.seek`, :meth:`~io.IOBase.tell`, :meth:`__iter__`, " -":meth:`~iterator.__next__`. These objects can operate independently of the " -"ZipFile." -msgstr "" -"Com *mode* ``'r'`` o objeto file-like (``ZipExtFile``) é read-only e fornece" -" os seguintes métodos: :meth:`~io.BufferedIOBase.read`, " -":meth:`~io.IOBase.readline`, :meth:`~io.IOBase.readlines`, " -":meth:`~io.IOBase.seek`, :meth:`~io.IOBase.tell`, :meth:`__iter__`, " -":meth:`~iterator.__next__`. Esses objetos podem operar independentemente do " -"ZipFile." +"provides the following methods: :meth:`~io.BufferedIOBase.read`, :meth:`~io." +"IOBase.readline`, :meth:`~io.IOBase.readlines`, :meth:`~io.IOBase.seek`, :" +"meth:`~io.IOBase.tell`, :meth:`__iter__`, :meth:`~iterator.__next__`. These " +"objects can operate independently of the ZipFile." +msgstr "" +"Com *mode* ``'r'`` o objeto file-like (``ZipExtFile``) é read-only e fornece " +"os seguintes métodos: :meth:`~io.BufferedIOBase.read`, :meth:`~io.IOBase." +"readline`, :meth:`~io.IOBase.readlines`, :meth:`~io.IOBase.seek`, :meth:`~io." +"IOBase.tell`, :meth:`__iter__`, :meth:`~iterator.__next__`. Esses objetos " +"podem operar independentemente do ZipFile." #: ../../library/zipfile.rst:253 msgid "" -"With ``mode='w'``, a writable file handle is returned, which supports the " -":meth:`~io.BufferedIOBase.write` method. While a writable file handle is " -"open, attempting to read or write other files in the ZIP file will raise a " -":exc:`ValueError`." +"With ``mode='w'``, a writable file handle is returned, which supports the :" +"meth:`~io.BufferedIOBase.write` method. While a writable file handle is " +"open, attempting to read or write other files in the ZIP file will raise a :" +"exc:`ValueError`." msgstr "" -"Com ``mode='w'``, é retornado um handle de arquivo, que suporta o método " -":meth:`~io.BufferedIOBase.write`. Quando um handle de arquivo modificável é " -"aberto, tentativas de ler ou gravar outros arquivos no arquivo ZIP lança um " -":exc:`ValueError`." +"Com ``mode='w'``, é retornado um handle de arquivo, que suporta o método :" +"meth:`~io.BufferedIOBase.write`. Quando um handle de arquivo modificável é " +"aberto, tentativas de ler ou gravar outros arquivos no arquivo ZIP lança um :" +"exc:`ValueError`." #: ../../library/zipfile.rst:258 msgid "" -"When writing a file, if the file size is not known in advance but may exceed" -" 2 GiB, pass ``force_zip64=True`` to ensure that the header format is " -"capable of supporting large files. If the file size is known in advance, " -"construct a :class:`ZipInfo` object with :attr:`~ZipInfo.file_size` set, and" -" use that as the *name* parameter." +"When writing a file, if the file size is not known in advance but may exceed " +"2 GiB, pass ``force_zip64=True`` to ensure that the header format is capable " +"of supporting large files. If the file size is known in advance, construct " +"a :class:`ZipInfo` object with :attr:`~ZipInfo.file_size` set, and use that " +"as the *name* parameter." msgstr "" "Ao gravar um arquivo, se o tamanho do arquivo não é conhecido mas pode " "exceder 2 Gb, passe ``force_zip64=True`` para assegurar que o formato do " "header é capaz de suportar arquivos grandes. Se o tamanho do arquivo é " -"conhecido, construa um objeto :class:`ZipInfo` com " -":attr:`~ZipInfo.file_size` informado, então use-o como parâmetro *name*." +"conhecido, construa um objeto :class:`ZipInfo` com :attr:`~ZipInfo." +"file_size` informado, então use-o como parâmetro *name*." #: ../../library/zipfile.rst:266 msgid "" "The :meth:`.open`, :meth:`read` and :meth:`extract` methods can take a " -"filename or a :class:`ZipInfo` object. You will appreciate this when trying" -" to read a ZIP file that contains members with duplicate names." +"filename or a :class:`ZipInfo` object. You will appreciate this when trying " +"to read a ZIP file that contains members with duplicate names." msgstr "" "Os métodos :meth:`.open`, :meth:`read` e :meth:`extract` podem receber um " "nome de arquivo ou um objeto :class:`ZipInfo`. Voce vai gostar disso quando " @@ -465,17 +465,17 @@ msgstr "" #: ../../library/zipfile.rst:285 msgid "" -"Extract a member from the archive to the current working directory; *member*" -" must be its full name or a :class:`ZipInfo` object. Its file information " -"is extracted as accurately as possible. *path* specifies a different " -"directory to extract to. *member* can be a filename or a :class:`ZipInfo` " -"object. *pwd* is the password used for encrypted files." +"Extract a member from the archive to the current working directory; *member* " +"must be its full name or a :class:`ZipInfo` object. Its file information is " +"extracted as accurately as possible. *path* specifies a different directory " +"to extract to. *member* can be a filename or a :class:`ZipInfo` object. " +"*pwd* is the password used for encrypted files." msgstr "" -"Extrai um membro do arquivo para o diretório atual; *member* deve ser o nome" -" complelto ou um objeto :class:`ZipInfo`. A informação do arquivo é " -"extraída com maior precisão possível. *path* especifica um outro diretório " -"em que deve ser gravado. *member* pode ser um nome de arquivo ou um objeto " -":class:`ZipInfo`. *pwd* é a senha usada para criptografar arquivos." +"Extrai um membro do arquivo para o diretório atual; *member* deve ser o nome " +"complelto ou um objeto :class:`ZipInfo`. A informação do arquivo é extraída " +"com maior precisão possível. *path* especifica um outro diretório em que " +"deve ser gravado. *member* pode ser um nome de arquivo ou um objeto :class:" +"`ZipInfo`. *pwd* é a senha usada para criptografar arquivos." #: ../../library/zipfile.rst:291 msgid "Returns the normalized path created (a directory or new file)." @@ -483,13 +483,13 @@ msgstr "Retorna o caminho normalizado criado (um diretório ou novo arquivo)." #: ../../library/zipfile.rst:295 msgid "" -"If a member filename is an absolute path, a drive/UNC sharepoint and leading" -" (back)slashes will be stripped, e.g.: ``///foo/bar`` becomes ``foo/bar`` on" -" Unix, and ``C:\\foo\\bar`` becomes ``foo\\bar`` on Windows. And all " -"``\"..\"`` components in a member filename will be removed, e.g.: " -"``../../foo../../ba..r`` becomes ``foo../ba..r``. On Windows illegal " -"characters (``:``, ``<``, ``>``, ``|``, ``\"``, ``?``, and ``*``) replaced " -"by underscore (``_``)." +"If a member filename is an absolute path, a drive/UNC sharepoint and leading " +"(back)slashes will be stripped, e.g.: ``///foo/bar`` becomes ``foo/bar`` on " +"Unix, and ``C:\\foo\\bar`` becomes ``foo\\bar`` on Windows. And all ``\".." +"\"`` components in a member filename will be removed, e.g.: ``../../foo../../" +"ba..r`` becomes ``foo../ba..r``. On Windows illegal characters (``:``, " +"``<``, ``>``, ``|``, ``\"``, ``?``, and ``*``) replaced by underscore " +"(``_``)." msgstr "" "Se um nome de arquivo membro é um caminho absoluto, o drive/UNC e " "(contra)barras no início serão removidos, por exemplo: ``///foo/bar`` se " @@ -501,8 +501,8 @@ msgstr "" #: ../../library/zipfile.rst:303 msgid "" -"Calling :meth:`extract` on a closed ZipFile will raise a :exc:`ValueError`." -" Previously, a :exc:`RuntimeError` was raised." +"Calling :meth:`extract` on a closed ZipFile will raise a :exc:`ValueError`. " +"Previously, a :exc:`RuntimeError` was raised." msgstr "" "Chamar :meth:`extract` em um ZipFile fechado lança um :exc:`ValueError`. " "Anteriormente, um :exc:`RuntimeError` era lançado." @@ -514,32 +514,32 @@ msgstr "O parâmetro *path* aceita um objeto :term:`path-like." #: ../../library/zipfile.rst:313 msgid "" "Extract all members from the archive to the current working directory. " -"*path* specifies a different directory to extract to. *members* is optional" -" and must be a subset of the list returned by :meth:`namelist`. *pwd* is " -"the password used for encrypted files." +"*path* specifies a different directory to extract to. *members* is optional " +"and must be a subset of the list returned by :meth:`namelist`. *pwd* is the " +"password used for encrypted files." msgstr "" "Extrai todos os membros de um arquivo para o diretório atual. *path* " "especifica um diretório diferente para gravar os arquivos extraídos. " -"*members* é opcional e deve ser um sub-conjunto da lista retornada por " -":meth:`namelist`. *pwd* é uma senha usada para criptografar arquivos." +"*members* é opcional e deve ser um sub-conjunto da lista retornada por :meth:" +"`namelist`. *pwd* é uma senha usada para criptografar arquivos." #: ../../library/zipfile.rst:320 msgid "" "Never extract archives from untrusted sources without prior inspection. It " -"is possible that files are created outside of *path*, e.g. members that have" -" absolute filenames starting with ``\"/\"`` or filenames with two dots " -"``\"..\"``. This module attempts to prevent that. See :meth:`extract` note." +"is possible that files are created outside of *path*, e.g. members that have " +"absolute filenames starting with ``\"/\"`` or filenames with two dots ``\".." +"\"``. This module attempts to prevent that. See :meth:`extract` note." msgstr "" "Nunca extraia arquivos de fontes não confiáveis sem inspeção prévia. É " "possível que os arquivos sejam criados fora do *path*, por exemplo membros " "que tem nomes absolutos de arquivos começando com ``\"/\"`` ou nomes com " -"dois pontos ``\"..\"``. Este módulo tenta prevenir isto. Veja nota em " -":meth:`extract`." +"dois pontos ``\"..\"``. Este módulo tenta prevenir isto. Veja nota em :meth:" +"`extract`." #: ../../library/zipfile.rst:326 msgid "" -"Calling :meth:`extractall` on a closed ZipFile will raise a " -":exc:`ValueError`. Previously, a :exc:`RuntimeError` was raised." +"Calling :meth:`extractall` on a closed ZipFile will raise a :exc:" +"`ValueError`. Previously, a :exc:`RuntimeError` was raised." msgstr "" "Chamar :meth:`extractall` em um ZipFile fechado lança um :exc:`ValueError`. " "Anteriormente, um :exc:`RuntimeError` era lançado." @@ -557,22 +557,22 @@ msgid "" "Return the bytes of the file *name* in the archive. *name* is the name of " "the file in the archive, or a :class:`ZipInfo` object. The archive must be " "open for read or append. *pwd* is the password used for encrypted files " -"and, if specified, it will override the default password set with " -":meth:`setpassword`. Calling :meth:`read` on a ZipFile that uses a " -"compression method other than :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`, " -":const:`ZIP_BZIP2` or :const:`ZIP_LZMA` will raise a " -":exc:`NotImplementedError`. An error will also be raised if the " -"corresponding compression module is not available." -msgstr "" -"Retorna os bytes do arquivo *name* no arquivo compactado. *name* é o nome do" -" arquivo no arquivo compactado, ou um objeto :class:`ZipInfo`. O arquivo " +"and, if specified, it will override the default password set with :meth:" +"`setpassword`. Calling :meth:`read` on a ZipFile that uses a compression " +"method other than :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`, :const:" +"`ZIP_BZIP2` or :const:`ZIP_LZMA` will raise a :exc:`NotImplementedError`. An " +"error will also be raised if the corresponding compression module is not " +"available." +msgstr "" +"Retorna os bytes do arquivo *name* no arquivo compactado. *name* é o nome do " +"arquivo no arquivo compactado, ou um objeto :class:`ZipInfo`. O arquivo " "compactado deve estar aberto para leitura ou append. *pwd* é a senha usada " "para criptografar arquivos e, se especificada, vai sobrepor a senha padrão " "configurada com :meth:`setpassword`. Chamar :meth:`read` em um ZipFile que " -"use um método de compactação diferente de :const:`ZIP_STORED`, " -":const:`ZIP_DEFLATED`, :const:`ZIP_BZIP2` ou :const:`ZIP_LZMA` lança um " -":exc:`NotImplementedError`. Um erro também é lançado se o módulo de " -"compactação correspondente não está disponível. " +"use um método de compactação diferente de :const:`ZIP_STORED`, :const:" +"`ZIP_DEFLATED`, :const:`ZIP_BZIP2` ou :const:`ZIP_LZMA` lança um :exc:" +"`NotImplementedError`. Um erro também é lançado se o módulo de compactação " +"correspondente não está disponível. " #: ../../library/zipfile.rst:355 msgid "" @@ -593,8 +593,8 @@ msgstr "" #: ../../library/zipfile.rst:365 msgid "" -"Calling :meth:`testzip` on a closed ZipFile will raise a :exc:`ValueError`." -" Previously, a :exc:`RuntimeError` was raised." +"Calling :meth:`testzip` on a closed ZipFile will raise a :exc:`ValueError`. " +"Previously, a :exc:`RuntimeError` was raised." msgstr "" "Chamar :meth:`testzip` em um ZipFile fechado lança um :exc:`ValueError`. " "Anteriormente, um :exc:`RuntimeError` era lançado." @@ -604,9 +604,9 @@ msgid "" "Write the file named *filename* to the archive, giving it the archive name " "*arcname* (by default, this will be the same as *filename*, but without a " "drive letter and with leading path separators removed). If given, " -"*compress_type* overrides the value given for the *compression* parameter to" -" the constructor for the new entry. Similarly, *compresslevel* will override" -" the constructor if given. The archive must be open with mode ``'w'``, " +"*compress_type* overrides the value given for the *compression* parameter to " +"the constructor for the new entry. Similarly, *compresslevel* will override " +"the constructor if given. The archive must be open with mode ``'w'``, " "``'x'`` or ``'a'``." msgstr "" "Grava o arquivo chamado *filename* no arquivo compactado, dando ao arquivo " @@ -622,17 +622,17 @@ msgid "" "Archive names should be relative to the archive root, that is, they should " "not start with a path separator." msgstr "" -"Nomes de arquivo compactado devem ser relativos a raiz do mesmo, isto é, não" -" devem começar com um separador de caminho." +"Nomes de arquivo compactado devem ser relativos a raiz do mesmo, isto é, não " +"devem começar com um separador de caminho." #: ../../library/zipfile.rst:388 msgid "" "If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a " -"null byte, the name of the file in the archive will be truncated at the null" -" byte." +"null byte, the name of the file in the archive will be truncated at the null " +"byte." msgstr "" -"Se ``arcname`` (ou ``filename``, se ``arcname`` não for informado) contém um" -" byte nulo, o nome do arquivo no arquivo compactado será truncado no byte " +"Se ``arcname`` (ou ``filename``, se ``arcname`` não for informado) contém um " +"byte nulo, o nome do arquivo no arquivo compactado será truncado no byte " "nulo." #: ../../library/zipfile.rst:391 @@ -658,20 +658,20 @@ msgstr "" "Grava um arquivo no arquivo compactado. O conteúdo é *data*, que pode ser " "uma instância de :class:`str` ou de :class:`bytes`; Se é uma :class:`str`, " "ela é encodada como UTF-8 primeiro. *zinfo_or_arcname* é o nome que será " -"dado ao arquivo no arquivo compactado, ou uma instância de :class:`ZipInfo`." -" Se é uma instância, pelo menos o nome do arquivo, a data, e a hora devem " -"ser informados. Se é um nome, a data e hora recebem a data e hora atual. O " +"dado ao arquivo no arquivo compactado, ou uma instância de :class:`ZipInfo`. " +"Se é uma instância, pelo menos o nome do arquivo, a data, e a hora devem ser " +"informados. Se é um nome, a data e hora recebem a data e hora atual. O " "arquivo compactado deve ser aberto em modo ``'w'``, ``'x'`` ou ``'a'``." #: ../../library/zipfile.rst:408 msgid "" "If given, *compress_type* overrides the value given for the *compression* " -"parameter to the constructor for the new entry, or in the *zinfo_or_arcname*" -" (if that is a :class:`ZipInfo` instance). Similarly, *compresslevel* will " +"parameter to the constructor for the new entry, or in the *zinfo_or_arcname* " +"(if that is a :class:`ZipInfo` instance). Similarly, *compresslevel* will " "override the constructor if given." msgstr "" -"Se informado, *compress_type* sobrescreve o valor do parâmetro *compression*" -" do construtor para a nova entrada, ou no *zinfo_or_arcname* (se é uma " +"Se informado, *compress_type* sobrescreve o valor do parâmetro *compression* " +"do construtor para a nova entrada, ou no *zinfo_or_arcname* (se é uma " "instância de :class:`ZipInfo`). Da mesma forma, *compresslevel* vai " "sobrescrever o construtor se informado." @@ -685,8 +685,8 @@ msgstr "" "Quando é passada uma instância de :class:`ZipInfo` ou o parâmetro " "*zinfo_or_arcname*, o método de compactação usado será aquele especificado " "no *compress_type* da instância de :class:`ZipInfo`. Por padrão, o " -"construtor da classe :class:`ZipInfo` seta este membro para " -":const:`ZIP_STORED`." +"construtor da classe :class:`ZipInfo` seta este membro para :const:" +"`ZIP_STORED`." #: ../../library/zipfile.rst:420 msgid "The *compress_type* argument." @@ -699,8 +699,8 @@ msgid "" "was raised." msgstr "" "Chamar :meth:`writestr` em um ZipFile criado com modo ``'r'`` ou em um " -"ZipFile fechado lança um :exc:`ValueError`. Anteriormente, um " -":exc:`RuntimeError` era lançado." +"ZipFile fechado lança um :exc:`ValueError`. Anteriormente, um :exc:" +"`RuntimeError` era lançado." #: ../../library/zipfile.rst:429 msgid "The following data attributes are also available:" @@ -717,8 +717,8 @@ msgid "" "``sys.stdout``." msgstr "" "O nível de saída de debug para usar. Pode ser setado de `0`` (valor padrão, " -"sem nenhuma saída) a ``3`` (com mais saída). A informação de debug é escrita" -" em ``sys.stdout``." +"sem nenhuma saída) a ``3`` (com mais saída). A informação de debug é escrita " +"em ``sys.stdout``." #: ../../library/zipfile.rst:443 msgid "" @@ -734,8 +734,8 @@ msgstr "Objetos PyZipFile" #: ../../library/zipfile.rst:455 msgid "" -"The :class:`PyZipFile` constructor takes the same parameters as the " -":class:`ZipFile` constructor, and one additional parameter, *optimize*." +"The :class:`PyZipFile` constructor takes the same parameters as the :class:" +"`ZipFile` constructor, and one additional parameter, *optimize*." msgstr "" #: ../../library/zipfile.rst:461 @@ -761,8 +761,8 @@ msgstr "" #: ../../library/zipfile.rst:477 msgid "" -"If the *optimize* parameter to :class:`PyZipFile` was ``0``, ``1`` or ``2``," -" only files with that optimization level (see :func:`compile`) are added to " +"If the *optimize* parameter to :class:`PyZipFile` was ``0``, ``1`` or ``2``, " +"only files with that optimization level (see :func:`compile`) are added to " "the archive, compiling if necessary." msgstr "" @@ -770,14 +770,24 @@ msgstr "" msgid "" "If *pathname* is a file, the filename must end with :file:`.py`, and just " "the (corresponding :file:`\\*.pyc`) file is added at the top level (no path " -"information). If *pathname* is a file that does not end with :file:`.py`, a" -" :exc:`RuntimeError` will be raised. If it is a directory, and the " -"directory is not a package directory, then all the files :file:`\\*.pyc` are" -" added at the top level. If the directory is a package directory, then all " -":file:`\\*.pyc` are added under the package name as a file path, and if any " +"information). If *pathname* is a file that does not end with :file:`.py`, " +"a :exc:`RuntimeError` will be raised. If it is a directory, and the " +"directory is not a package directory, then all the files :file:`\\*.pyc` are " +"added at the top level. If the directory is a package directory, then all :" +"file:`\\*.pyc` are added under the package name as a file path, and if any " "subdirectories are package directories, all of these are added recursively " "in sorted order." msgstr "" +"Se *pathname* for um arquivo, o nome do arquivo deverá terminar com :file:`." +"py`, e apenas o arquivo (:file:`\\*.pyc` correspondente) será adicionado no " +"nível superior (sem informações do caminho). Se *pathname* for um arquivo " +"que não termine com :file:`.py`, um :exc:`RuntimeError` será levantado. Se " +"for um diretório, e o diretório não for um diretório de pacotes, todos os " +"arquivos :file:`\\*.pyc` serão adicionados no nível superior. Se o diretório " +"for um diretório de pacotes, todos :file:`\\*.pyc` serão adicionados sob o " +"nome do pacote como um caminho de arquivo e, se algum subdiretório for um " +"diretório de pacotes, todos serão adicionados recursivamente na ordem de " +"classificação." #: ../../library/zipfile.rst:491 msgid "*basename* is intended for internal use only." @@ -785,13 +795,13 @@ msgstr "" #: ../../library/zipfile.rst:493 msgid "" -"*filterfunc*, if given, must be a function taking a single string argument." -" It will be passed each path (including each individual full file path) " +"*filterfunc*, if given, must be a function taking a single string argument. " +"It will be passed each path (including each individual full file path) " "before it is added to the archive. If *filterfunc* returns a false value, " "the path will not be added, and if it is a directory its contents will be " "ignored. For example, if our test files are all either in ``test`` " -"directories or start with the string ``test_``, we can use a *filterfunc* to" -" exclude them::" +"directories or start with the string ``test_``, we can use a *filterfunc* to " +"exclude them::" msgstr "" #: ../../library/zipfile.rst:507 @@ -816,8 +826,8 @@ msgstr "" #: ../../library/zipfile.rst:531 msgid "" -"Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo`" -" and :meth:`.infolist` methods of :class:`ZipFile` objects. Each object " +"Instances of the :class:`ZipInfo` class are returned by the :meth:`.getinfo` " +"and :meth:`.infolist` methods of :class:`ZipFile` objects. Each object " "stores information about a single member of the ZIP archive." msgstr "" @@ -834,8 +844,7 @@ msgid "" msgstr "" #: ../../library/zipfile.rst:543 -msgid "" -"*filename* should be the path to a file or directory on the filesystem." +msgid "*filename* should be the path to a file or directory on the filesystem." msgstr "" #: ../../library/zipfile.rst:545 @@ -867,8 +876,8 @@ msgstr "" #: ../../library/zipfile.rst:573 msgid "" -"The time and date of the last modification to the archive member. This is a" -" tuple of six values:" +"The time and date of the last modification to the archive member. This is a " +"tuple of six values:" msgstr "" #: ../../library/zipfile.rst:577 @@ -881,7 +890,7 @@ msgstr "Valor" #: ../../library/zipfile.rst:579 msgid "``0``" -msgstr "" +msgstr "``0``" #: ../../library/zipfile.rst:579 msgid "Year (>= 1980)" @@ -921,7 +930,7 @@ msgstr "" #: ../../library/zipfile.rst:589 msgid "``5``" -msgstr "" +msgstr "``5``" #: ../../library/zipfile.rst:589 msgid "Seconds (zero-based)" @@ -1006,8 +1015,8 @@ msgstr "" #: ../../library/zipfile.rst:683 msgid "" -"If you want to create a new ZIP archive, specify its name after the " -":option:`-c` option and then list the filename(s) that should be included:" +"If you want to create a new ZIP archive, specify its name after the :option:" +"`-c` option and then list the filename(s) that should be included:" msgstr "" #: ../../library/zipfile.rst:690 @@ -1016,8 +1025,8 @@ msgstr "" #: ../../library/zipfile.rst:696 msgid "" -"If you want to extract a ZIP archive into the specified directory, use the " -":option:`-e` option:" +"If you want to extract a ZIP archive into the specified directory, use the :" +"option:`-e` option:" msgstr "" #: ../../library/zipfile.rst:703 diff --git a/library/zipimport.po b/library/zipimport.po index 1589639a6..70e3dd611 100644 --- a/library/zipimport.po +++ b/library/zipimport.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Christian Janiake , 2019 # Rafael Fontenelle , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:46+0000\n" "Last-Translator: Rafael Fontenelle , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,11 +30,11 @@ msgstr "" #: ../../library/zipimport.rst:11 msgid "" -"This module adds the ability to import Python modules (:file:`\\*.py`, " -":file:`\\*.pyc`) and packages from ZIP-format archives. It is usually not " -"needed to use the :mod:`zipimport` module explicitly; it is automatically " -"used by the built-in :keyword:`import` mechanism for :data:`sys.path` items " -"that are paths to ZIP archives." +"This module adds the ability to import Python modules (:file:`\\*.py`, :file:" +"`\\*.pyc`) and packages from ZIP-format archives. It is usually not needed " +"to use the :mod:`zipimport` module explicitly; it is automatically used by " +"the built-in :keyword:`import` mechanism for :data:`sys.path` items that are " +"paths to ZIP archives." msgstr "" #: ../../library/zipimport.rst:17 @@ -42,19 +43,19 @@ msgid "" "module also allows an item of :data:`sys.path` to be a string naming a ZIP " "file archive. The ZIP archive can contain a subdirectory structure to " "support package imports, and a path within the archive can be specified to " -"only import from a subdirectory. For example, the path " -":file:`example.zip/lib/` would only import from the :file:`lib/` " -"subdirectory within the archive." +"only import from a subdirectory. For example, the path :file:`example.zip/" +"lib/` would only import from the :file:`lib/` subdirectory within the " +"archive." msgstr "" #: ../../library/zipimport.rst:24 msgid "" -"Any files may be present in the ZIP archive, but only files :file:`.py` and " -":file:`.pyc` are available for import. ZIP import of dynamic modules " -"(:file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only " -"contains :file:`.py` files, Python will not attempt to modify the archive by" -" adding the corresponding :file:`.pyc` file, meaning that if a ZIP archive " -"doesn't contain :file:`.pyc` files, importing may be rather slow." +"Any files may be present in the ZIP archive, but only files :file:`.py` and :" +"file:`.pyc` are available for import. ZIP import of dynamic modules (:file:" +"`.pyd`, :file:`.so`) is disallowed. Note that if an archive only contains :" +"file:`.py` files, Python will not attempt to modify the archive by adding " +"the corresponding :file:`.pyc` file, meaning that if a ZIP archive doesn't " +"contain :file:`.pyc` files, importing may be rather slow." msgstr "" #: ../../library/zipimport.rst:31 @@ -63,14 +64,14 @@ msgstr "" #: ../../library/zipimport.rst:37 msgid "" -"`PKZIP Application Note " -"`_" +"`PKZIP Application Note `_" msgstr "" #: ../../library/zipimport.rst:36 msgid "" -"Documentation on the ZIP file format by Phil Katz, the creator of the format" -" and algorithms used." +"Documentation on the ZIP file format by Phil Katz, the creator of the format " +"and algorithms used." msgstr "" "Documentação do formato de arquivo ZIP feita por Phil Katz, criador do " "formato e dos algoritmos usados." @@ -82,8 +83,8 @@ msgstr "" #: ../../library/zipimport.rst:40 msgid "" "Written by James C. Ahlstrom, who also provided an implementation. Python " -"2.3 follows the specification in PEP 273, but uses an implementation written" -" by Just van Rossum that uses the import hooks described in PEP 302." +"2.3 follows the specification in PEP 273, but uses an implementation written " +"by Just van Rossum that uses the import hooks described in PEP 302." msgstr "" #: ../../library/zipimport.rst:44 @@ -100,8 +101,8 @@ msgstr "" #: ../../library/zipimport.rst:52 msgid "" -"Exception raised by zipimporter objects. It's a subclass of " -":exc:`ImportError`, so it can be caught as :exc:`ImportError`, too." +"Exception raised by zipimporter objects. It's a subclass of :exc:" +"`ImportError`, so it can be caught as :exc:`ImportError`, too." msgstr "" #: ../../library/zipimport.rst:59 @@ -116,9 +117,9 @@ msgstr "" msgid "" "Create a new zipimporter instance. *archivepath* must be a path to a ZIP " "file, or to a specific path within a ZIP file. For example, an " -"*archivepath* of :file:`foo/bar.zip/lib` will look for modules in the " -":file:`lib` directory inside the ZIP file :file:`foo/bar.zip` (provided that" -" it exists)." +"*archivepath* of :file:`foo/bar.zip/lib` will look for modules in the :file:" +"`lib` directory inside the ZIP file :file:`foo/bar.zip` (provided that it " +"exists)." msgstr "" #: ../../library/zipimport.rst:70 @@ -138,14 +139,14 @@ msgstr "" #: ../../library/zipimport.rst:84 msgid "" -"Return the code object for the specified module. Raise :exc:`ZipImportError`" -" if the module couldn't be found." +"Return the code object for the specified module. Raise :exc:`ZipImportError` " +"if the module couldn't be found." msgstr "" #: ../../library/zipimport.rst:90 msgid "" -"Return the data associated with *pathname*. Raise :exc:`OSError` if the file" -" wasn't found." +"Return the data associated with *pathname*. Raise :exc:`OSError` if the file " +"wasn't found." msgstr "" #: ../../library/zipimport.rst:93 @@ -160,22 +161,22 @@ msgstr "" #: ../../library/zipimport.rst:108 msgid "" -"Return the source code for the specified module. Raise :exc:`ZipImportError`" -" if the module couldn't be found, return :const:`None` if the archive does " +"Return the source code for the specified module. Raise :exc:`ZipImportError` " +"if the module couldn't be found, return :const:`None` if the archive does " "contain the module, but has no source for it." msgstr "" #: ../../library/zipimport.rst:116 msgid "" -"Return ``True`` if the module specified by *fullname* is a package. Raise " -":exc:`ZipImportError` if the module couldn't be found." +"Return ``True`` if the module specified by *fullname* is a package. Raise :" +"exc:`ZipImportError` if the module couldn't be found." msgstr "" #: ../../library/zipimport.rst:122 msgid "" "Load the module specified by *fullname*. *fullname* must be the fully " -"qualified (dotted) module name. It returns the imported module, or raises " -":exc:`ZipImportError` if it wasn't found." +"qualified (dotted) module name. It returns the imported module, or raises :" +"exc:`ZipImportError` if it wasn't found." msgstr "" #: ../../library/zipimport.rst:129 @@ -187,15 +188,14 @@ msgstr "" #: ../../library/zipimport.rst:135 msgid "" "The subpath within the ZIP file where modules are searched. This is the " -"empty string for zipimporter objects which point to the root of the ZIP " -"file." +"empty string for zipimporter objects which point to the root of the ZIP file." msgstr "" #: ../../library/zipimport.rst:139 msgid "" "The :attr:`archive` and :attr:`prefix` attributes, when combined with a " -"slash, equal the original *archivepath* argument given to the " -":class:`zipimporter` constructor." +"slash, equal the original *archivepath* argument given to the :class:" +"`zipimporter` constructor." msgstr "" #: ../../library/zipimport.rst:147 @@ -204,6 +204,6 @@ msgstr "Exemplos" #: ../../library/zipimport.rst:149 msgid "" -"Here is an example that imports a module from a ZIP archive - note that the " -":mod:`zipimport` module is not explicitly used." +"Here is an example that imports a module from a ZIP archive - note that the :" +"mod:`zipimport` module is not explicitly used." msgstr "" diff --git a/library/zlib.po b/library/zlib.po index b374bc736..b1ee95c6f 100644 --- a/library/zlib.po +++ b/library/zlib.po @@ -1,16 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# +# Translators: +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:11+0000\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,42 +25,53 @@ msgstr "" #: ../../library/zlib.rst:2 msgid ":mod:`zlib` --- Compression compatible with :program:`gzip`" -msgstr "" +msgstr ":mod:`zlib` --- Compression compatible with :program:`gzip`" #: ../../library/zlib.rst:10 msgid "" -"For applications that require data compression, the functions in this module" -" allow compression and decompression, using the zlib library. The zlib " +"For applications that require data compression, the functions in this module " +"allow compression and decompression, using the zlib library. The zlib " "library has its own home page at http://www.zlib.net. There are known " -"incompatibilities between the Python module and versions of the zlib library" -" earlier than 1.1.3; 1.1.3 has a security vulnerability, so we recommend " +"incompatibilities between the Python module and versions of the zlib library " +"earlier than 1.1.3; 1.1.3 has a security vulnerability, so we recommend " "using 1.1.4 or later." msgstr "" +"Para aplicativos que requerem compactação de dados, as funções neste módulo " +"permitem compactação e descompactação, usando a biblioteca zlib. A " +"biblioteca zlib tem seu próprio site em http://www.zlib.net. Existem " +"incompatibilidades conhecidas entre o módulo Python e as versões da " +"biblioteca zlib anteriores à 1.1.3; O 1.1.3 possui uma vulnerabilidade de " +"segurança, por isso recomendamos o uso do 1.1.4 ou posterior." #: ../../library/zlib.rst:17 msgid "" -"zlib's functions have many options and often need to be used in a particular" -" order. This documentation doesn't attempt to cover all of the " -"permutations; consult the zlib manual at http://www.zlib.net/manual.html for" -" authoritative information." +"zlib's functions have many options and often need to be used in a particular " +"order. This documentation doesn't attempt to cover all of the permutations; " +"consult the zlib manual at http://www.zlib.net/manual.html for authoritative " +"information." msgstr "" +"As funções do zlib têm muitas opções e geralmente precisam ser usadas em uma " +"ordem específica. Esta documentação não tenta cobrir todas as permutações; " +"consulte o manual do zlib em http://www.zlib.net/manual.html para obter " +"informações oficiais." #: ../../library/zlib.rst:22 msgid "For reading and writing ``.gz`` files see the :mod:`gzip` module." msgstr "" +"Para leitura e escrita de arquivos ``.gz``, consulte o módulo :mod:`gzip`." #: ../../library/zlib.rst:24 msgid "The available exception and functions in this module are:" -msgstr "" +msgstr "A exceção e as funções disponíveis neste módulo são:" #: ../../library/zlib.rst:29 msgid "Exception raised on compression and decompression errors." -msgstr "" +msgstr "Exceção levantada em erros de compactação e descompactação." #: ../../library/zlib.rst:34 msgid "" -"Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as" -" reliable as a CRC32 but can be computed much more quickly.) The result is " +"Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as " +"reliable as a CRC32 but can be computed much more quickly.) The result is " "an unsigned 32-bit integer. If *value* is present, it is used as the " "starting value of the checksum; otherwise, a default value of 1 is used. " "Passing in *value* allows computing a running checksum over the " @@ -63,12 +80,25 @@ msgid "" "Since the algorithm is designed for use as a checksum algorithm, it is not " "suitable for use as a general hash algorithm." msgstr "" +"Calcula uma soma de verificação Adler-32 de *data*. (Uma soma de verificação " +"Adler-32 é quase tão confiável quanto uma CRC32, mas pode ser calculada " +"muito mais rapidamente.) O resultado é um número inteiro em sinal de 32 " +"bits. Se *value* estiver presente, ele será usado como o valor inicial da " +"soma de verificação; caso contrário, um valor padrão de 1 é usado. A " +"passagem de *value* permite calcular uma soma de verificação em execução " +"através da concatenação de várias entradas. O algoritmo não é " +"criptograficamente forte e não deve ser usado para autenticação ou " +"assinaturas digitais. Como o algoritmo foi projetado para uso como um " +"algoritmo de soma de verificação, não é adequado para uso como um algoritmo " +"de hash geral." #: ../../library/zlib.rst:44 msgid "" "Always returns an unsigned value. To generate the same numeric value across " "all Python versions and platforms, use ``adler32(data) & 0xffffffff``." msgstr "" +"Sempre retorna um valor sem sinal. Para gerar o mesmo valor numérico em " +"todas as versões e plataformas do Python, use ``adler32(data) & 0xffffffff``." #: ../../library/zlib.rst:52 msgid "" @@ -77,20 +107,30 @@ msgid "" "controlling the level of compression; ``1`` (Z_BEST_SPEED) is fastest and " "produces the least compression, ``9`` (Z_BEST_COMPRESSION) is slowest and " "produces the most. ``0`` (Z_NO_COMPRESSION) is no compression. The default " -"value is ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION represents a" -" default compromise between speed and compression (currently equivalent to " +"value is ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION represents a " +"default compromise between speed and compression (currently equivalent to " "level 6). Raises the :exc:`error` exception if any error occurs." msgstr "" +"Compacta os bytes em *data*, retornando um objeto de bytes contendo dados " +"compactados. *level* é um número inteiro de ``0`` a ``9`` ou ``-1`` " +"controlando o nível de compactação; ``1`` (Z_BEST_SPEED) é o mais rápido e " +"produz a menor compactação, ``9`` (Z_BEST_COMPRESSION) é o mais lento e " +"produz o máximo. ``0`` (Z_NO_COMPRESSION) é nenhuma compactação. O valor " +"padrão é ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION representa um " +"compromisso padrão entre velocidade e compactação (atualmente equivalente ao " +"nível 6). Levanta a exceção :exc:`error` se ocorrer algum erro." #: ../../library/zlib.rst:60 msgid "*level* can now be used as a keyword parameter." -msgstr "" +msgstr "*level* pode agora ser usado como um parâmetro nomeado." #: ../../library/zlib.rst:66 msgid "" "Returns a compression object, to be used for compressing data streams that " "won't fit into memory at once." msgstr "" +"Retorna um objeto de compactação, a ser usado para compactar fluxos de dados " +"que não cabem na memória de uma só vez." #: ../../library/zlib.rst:69 msgid "" @@ -102,12 +142,21 @@ msgid "" "default compromise between speed and compression (currently equivalent to " "level 6)." msgstr "" +"*level* é o nível de compactação -- um número inteiro de ``0`` a ``9`` ou " +"``-1``. Um valor de ``1`` (Z_BEST_SPEED) é mais rápido e produz a menor " +"compactação, enquanto um valor de ``9`` (Z_BEST_COMPRESSION) é mais lento e " +"produz o máximo. ``0`` (Z_NO_COMPRESSION) é nenhuma compactação. O valor " +"padrão é ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION representa um " +"meio termo padrão entre velocidade e compactação (atualmente equivalente ao " +"nível 6)." #: ../../library/zlib.rst:76 msgid "" "*method* is the compression algorithm. Currently, the only supported value " "is :const:`DEFLATED`." msgstr "" +"*method* é o algoritmo de compactação. Atualmente, o único valor suportado " +"é :const:`DEFLATED`." #: ../../library/zlib.rst:79 msgid "" @@ -116,20 +165,31 @@ msgid "" "trailer is included in the output. It can take several ranges of values, " "defaulting to ``15`` (MAX_WBITS):" msgstr "" +"O argumento *wbits* controla o tamanho do buffer do histórico (ou o " +"\"tamanho da janela\") usado ao compactar dados e se um cabeçalho e um " +"trailer estão incluídos na saída. Pode levar vários intervalos de valores, " +"padronizando para ``15`` (MAX_WBITS):" #: ../../library/zlib.rst:84 msgid "" -"+9 to +15: The base-two logarithm of the window size, which therefore ranges" -" between 512 and 32768. Larger values produce better compression at the " +"+9 to +15: The base-two logarithm of the window size, which therefore ranges " +"between 512 and 32768. Larger values produce better compression at the " "expense of greater memory usage. The resulting output will include a zlib-" "specific header and trailer." msgstr "" +"+9 a +15: o logaritmo de base dois do tamanho da janela, que varia entre 512 " +"e 32768. Valores maiores produzem melhor compactação às custas de maior uso " +"de memória. A saída resultante incluirá um cabeçalho e uma sequência " +"específicos para zlib." #: ../../library/zlib.rst:89 msgid "" "−9 to −15: Uses the absolute value of *wbits* as the window size logarithm, " "while producing a raw output stream with no header or trailing checksum." msgstr "" +"-9 a -15: Usa o valor absoluto de *wbits* como o logaritmo do tamanho da " +"janela, enquanto produz um fluxo de saída bruto sem cabeçalho ou soma de " +"verificação à direita." #: ../../library/zlib.rst:93 msgid "" @@ -137,33 +197,47 @@ msgid "" "size logarithm, while including a basic :program:`gzip` header and trailing " "checksum in the output." msgstr "" +"+25 to +31 = 16 + (9 to 15): Usa os 4 bits baixos do valor como logaritmo do " +"tamanho da janela, incluindo um cabeçalho básico :program:`gzip` e a soma de " +"verificação à direita na saída." #: ../../library/zlib.rst:97 msgid "" "The *memLevel* argument controls the amount of memory used for the internal " -"compression state. Valid values range from ``1`` to ``9``. Higher values use" -" more memory, but are faster and produce smaller output." +"compression state. Valid values range from ``1`` to ``9``. Higher values use " +"more memory, but are faster and produce smaller output." msgstr "" +"O argumento *memLevel* controla a quantidade de memória usada para o estado " +"de compactação interno. Os valores válidos variam de ``1`` a ``9``. Valores " +"mais altos usam mais memória, mas são mais rápidos e produzem uma saída " +"menor." #: ../../library/zlib.rst:101 msgid "" -"*strategy* is used to tune the compression algorithm. Possible values are " -":const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`, " -":const:`Z_RLE` (zlib 1.2.0.1) and :const:`Z_FIXED` (zlib 1.2.2.2)." +"*strategy* is used to tune the compression algorithm. Possible values are :" +"const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`, :" +"const:`Z_RLE` (zlib 1.2.0.1) and :const:`Z_FIXED` (zlib 1.2.2.2)." msgstr "" +"*strategy* é usado para ajustar o algoritmo de compactação. Os valores " +"possíveis são :const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:" +"`Z_HUFFMAN_ONLY`, :const:`Z_RLE` (zlib 1.2.0.1) e :const:`Z_FIXED` (zlib " +"1.2.2.2)." #: ../../library/zlib.rst:105 msgid "" "*zdict* is a predefined compression dictionary. This is a sequence of bytes " "(such as a :class:`bytes` object) containing subsequences that are expected " -"to occur frequently in the data that is to be compressed. Those subsequences" -" that are expected to be most common should come at the end of the " -"dictionary." +"to occur frequently in the data that is to be compressed. Those subsequences " +"that are expected to be most common should come at the end of the dictionary." msgstr "" +"*zdict* é um dicionário de compactação predefinido. Esta é uma sequência de " +"bytes (como um objeto :class:`bytes`) que contém subsequências que se espera " +"que ocorram com frequência nos dados a serem compactados. As subsequências " +"que se espera serem mais comuns devem aparecer no final do dicionário." #: ../../library/zlib.rst:110 msgid "Added the *zdict* parameter and keyword argument support." -msgstr "" +msgstr "Adicionado o suporte ao parâmetro e argumento nomeado *zdict*." #: ../../library/zlib.rst:120 msgid "" @@ -176,21 +250,37 @@ msgid "" "Since the algorithm is designed for use as a checksum algorithm, it is not " "suitable for use as a general hash algorithm." msgstr "" +"Calcula uma soma de verificação CRC (Cyclic Redundancy Check) de *data*. O " +"resultado é um número inteiro sem sinal de 32 bits. Se *value* estiver " +"presente, ele será usado como o valor inicial da soma de verificação; caso " +"contrário, um valor padrão de 1 é usado. A passagem de *value* permite " +"calcular uma soma de verificação em execução através da concatenação de " +"várias entradas. O algoritmo não é criptograficamente forte e não deve ser " +"usado para autenticação ou assinaturas digitais. Como o algoritmo foi " +"projetado para uso como um algoritmo de soma de verificação, não é adequado " +"para uso como um algoritmo de hash geral." #: ../../library/zlib.rst:129 msgid "" "Always returns an unsigned value. To generate the same numeric value across " "all Python versions and platforms, use ``crc32(data) & 0xffffffff``." msgstr "" +"Sempre retorna um valor sem sinal. Para gerar o mesmo valor numérico em " +"todas as versões e plataformas do Python, use ``crc32(data) & 0xffffffff``." #: ../../library/zlib.rst:137 msgid "" "Decompresses the bytes in *data*, returning a bytes object containing the " "uncompressed data. The *wbits* parameter depends on the format of *data*, " "and is discussed further below. If *bufsize* is given, it is used as the " -"initial size of the output buffer. Raises the :exc:`error` exception if any" -" error occurs." +"initial size of the output buffer. Raises the :exc:`error` exception if any " +"error occurs." msgstr "" +"Descompacta os bytes em *data*, retornando um objeto de bytes que contém os " +"dados não compactados. O parâmetro *wbits* depende do formato de *data* e é " +"discutido mais abaixo. Se *bufsize* for fornecido, ele será usado como o " +"tamanho inicial do buffer de saída. Levanta a exceção :exc:`error` se " +"ocorrer algum erro." #: ../../library/zlib.rst:145 msgid "" @@ -198,36 +288,51 @@ msgid "" "size\"), and what header and trailer format is expected. It is similar to " "the parameter for :func:`compressobj`, but accepts more ranges of values:" msgstr "" +"O parâmetro *wbits* controla o tamanho do buffer do histórico (ou \"tamanho " +"da janela\") e qual formato de cabeçalho e sequência é esperado. É " +"semelhante ao parâmetro para :func:`compressobj`, mas aceita mais intervalos " +"de valores:" #: ../../library/zlib.rst:150 msgid "" "+8 to +15: The base-two logarithm of the window size. The input must " "include a zlib header and trailer." msgstr "" +"+8 to +15: O logaritmo de base dois do tamanho da janela. A entrada deve " +"incluir um cabeçalho e uma sequência de zlib." #: ../../library/zlib.rst:153 msgid "" "0: Automatically determine the window size from the zlib header. Only " "supported since zlib 1.2.3.5." msgstr "" +"0: Determina automaticamente o tamanho da janela no cabeçalho zlib. " +"Suportado apenas desde o zlib 1.2.3.5." #: ../../library/zlib.rst:156 msgid "" -"−8 to −15: Uses the absolute value of *wbits* as the window size logarithm." -" The input must be a raw stream with no header or trailer." +"−8 to −15: Uses the absolute value of *wbits* as the window size logarithm. " +"The input must be a raw stream with no header or trailer." msgstr "" +"−8 to −15: Usa o valor absoluto de *wbits* como o logaritmo do tamanho da " +"janela. A entrada deve ser um fluxo bruto sem cabeçalho ou sequência." #: ../../library/zlib.rst:159 msgid "" "+24 to +31 = 16 + (8 to 15): Uses the low 4 bits of the value as the window " "size logarithm. The input must include a gzip header and trailer." msgstr "" +"+24 para +31 = 16 + (8 para 15): Usa os 4 bits baixos do valor como " +"logaritmo do tamanho da janela. A entrada deve incluir um cabeçalho e " +"sequência de gzip." #: ../../library/zlib.rst:163 msgid "" "+40 to +47 = 32 + (8 to 15): Uses the low 4 bits of the value as the window " "size logarithm, and automatically accepts either the zlib or gzip format." msgstr "" +"+40 a +47 = 32 + (8 a 15): Usa os 4 bits baixos do valor como logaritmo do " +"tamanho da janela e aceita automaticamente o formato zlib ou gzip." #: ../../library/zlib.rst:167 msgid "" @@ -237,14 +342,24 @@ msgid "" "to the largest window size and requires a zlib header and trailer to be " "included." msgstr "" +"Ao descompactar um fluxo, o tamanho da janela não deve ser menor que o " +"tamanho originalmente usado para compactar o fluxo; o uso de um valor muito " +"pequeno pode resultar em uma exceção :exc:`error`. O valor padrão *wbits* " +"corresponde ao maior tamanho da janela e requer que um cabeçalho e uma " +"sequência de zlib sejam incluídos." #: ../../library/zlib.rst:173 msgid "" -"*bufsize* is the initial size of the buffer used to hold decompressed data." -" If more space is required, the buffer size will be increased as needed, so" -" you don't have to get this value exactly right; tuning it will only save a " +"*bufsize* is the initial size of the buffer used to hold decompressed data. " +"If more space is required, the buffer size will be increased as needed, so " +"you don't have to get this value exactly right; tuning it will only save a " "few calls to :c:func:`malloc`." msgstr "" +"*bufsize* é o tamanho inicial do buffer usado para armazenar dados " +"descompactados. Se for necessário mais espaço, o tamanho do buffer será " +"aumentado conforme necessário, para que você não precise obter esse valor " +"exatamente correto; sintonizando, apenas algumas chamadas serão salvas em :c:" +"func:`malloc`." #: ../../library/zlib.rst:178 msgid "*wbits* and *bufsize* can be used as keyword arguments." @@ -289,22 +404,22 @@ msgstr "" msgid "" "Compress *data*, returning a bytes object containing compressed data for at " "least part of the data in *data*. This data should be concatenated to the " -"output produced by any preceding calls to the :meth:`compress` method. Some" -" input may be kept in internal buffers for later processing." +"output produced by any preceding calls to the :meth:`compress` method. Some " +"input may be kept in internal buffers for later processing." msgstr "" #: ../../library/zlib.rst:217 msgid "" "All pending input is processed, and a bytes object containing the remaining " -"compressed output is returned. *mode* can be selected from the constants " -":const:`Z_NO_FLUSH`, :const:`Z_PARTIAL_FLUSH`, :const:`Z_SYNC_FLUSH`, " -":const:`Z_FULL_FLUSH`, :const:`Z_BLOCK` (zlib 1.2.3.4), or " -":const:`Z_FINISH`, defaulting to :const:`Z_FINISH`. Except " -":const:`Z_FINISH`, all constants allow compressing further bytestrings of " -"data, while :const:`Z_FINISH` finishes the compressed stream and prevents " -"compressing any more data. After calling :meth:`flush` with *mode* set to " -":const:`Z_FINISH`, the :meth:`compress` method cannot be called again; the " -"only realistic action is to delete the object." +"compressed output is returned. *mode* can be selected from the constants :" +"const:`Z_NO_FLUSH`, :const:`Z_PARTIAL_FLUSH`, :const:`Z_SYNC_FLUSH`, :const:" +"`Z_FULL_FLUSH`, :const:`Z_BLOCK` (zlib 1.2.3.4), or :const:`Z_FINISH`, " +"defaulting to :const:`Z_FINISH`. Except :const:`Z_FINISH`, all constants " +"allow compressing further bytestrings of data, while :const:`Z_FINISH` " +"finishes the compressed stream and prevents compressing any more data. " +"After calling :meth:`flush` with *mode* set to :const:`Z_FINISH`, the :meth:" +"`compress` method cannot be called again; the only realistic action is to " +"delete the object." msgstr "" #: ../../library/zlib.rst:230 @@ -319,16 +434,16 @@ msgstr "" #: ../../library/zlib.rst:239 msgid "" -"A bytes object which contains any bytes past the end of the compressed data." -" That is, this remains ``b\"\"`` until the last byte that contains " +"A bytes object which contains any bytes past the end of the compressed data. " +"That is, this remains ``b\"\"`` until the last byte that contains " "compression data is available. If the whole bytestring turned out to " "contain compressed data, this is ``b\"\"``, an empty bytes object." msgstr "" #: ../../library/zlib.rst:247 msgid "" -"A bytes object that contains any data that was not consumed by the last " -":meth:`decompress` call because it exceeded the limit for the uncompressed " +"A bytes object that contains any data that was not consumed by the last :" +"meth:`decompress` call because it exceeded the limit for the uncompressed " "data buffer. This data has not yet been seen by the zlib machinery, so you " "must feed it (possibly with further data concatenated to it) back to a " "subsequent :meth:`decompress` method call in order to get correct output." @@ -348,22 +463,22 @@ msgstr "" #: ../../library/zlib.rst:267 msgid "" -"Decompress *data*, returning a bytes object containing the uncompressed data" -" corresponding to at least part of the data in *string*. This data should " -"be concatenated to the output produced by any preceding calls to the " -":meth:`decompress` method. Some of the input data may be preserved in " -"internal buffers for later processing." +"Decompress *data*, returning a bytes object containing the uncompressed data " +"corresponding to at least part of the data in *string*. This data should be " +"concatenated to the output produced by any preceding calls to the :meth:" +"`decompress` method. Some of the input data may be preserved in internal " +"buffers for later processing." msgstr "" #: ../../library/zlib.rst:273 msgid "" "If the optional parameter *max_length* is non-zero then the return value " "will be no longer than *max_length*. This may mean that not all of the " -"compressed input can be processed; and unconsumed data will be stored in the" -" attribute :attr:`unconsumed_tail`. This bytestring must be passed to a " +"compressed input can be processed; and unconsumed data will be stored in the " +"attribute :attr:`unconsumed_tail`. This bytestring must be passed to a " "subsequent call to :meth:`decompress` if decompression is to continue. If " -"*max_length* is zero then the whole input is decompressed, and " -":attr:`unconsumed_tail` is empty." +"*max_length* is zero then the whole input is decompressed, and :attr:" +"`unconsumed_tail` is empty." msgstr "" #: ../../library/zlib.rst:280 @@ -373,9 +488,9 @@ msgstr "" #: ../../library/zlib.rst:286 msgid "" "All pending input is processed, and a bytes object containing the remaining " -"uncompressed output is returned. After calling :meth:`flush`, the " -":meth:`decompress` method cannot be called again; the only realistic action " -"is to delete the object." +"uncompressed output is returned. After calling :meth:`flush`, the :meth:" +"`decompress` method cannot be called again; the only realistic action is to " +"delete the object." msgstr "" #: ../../library/zlib.rst:291 diff --git a/license.po b/license.po index e906ef6cd..83fde2056 100644 --- a/license.po +++ b/license.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Otávio Carneiro , 2019 # felipe caridade , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-23 03:52+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -50,9 +52,8 @@ msgid "" "Virginia where he released several versions of the software." msgstr "" "Em 1995, Guido continuou seu trabalho em Python na Corporação para " -"Iniciativas Nacionais de Pesquisa (CNRI, veja " -"https://www.cnri.reston.va.us/) em Reston, Virgínia, onde lançou várias " -"versões do software." +"Iniciativas Nacionais de Pesquisa (CNRI, veja https://www.cnri.reston.va." +"us/) em Reston, Virgínia, onde lançou várias versões do software." #: ../../license.rst:22 msgid "" @@ -64,6 +65,14 @@ msgid "" "specifically to own Python-related Intellectual Property. Zope Corporation " "is a sponsoring member of the PSF." msgstr "" +"Em maio de 2000, Guido e a equipe de desenvolvimento principal do Python " +"foram para BeOpen.com para formar a equipe do BeOpen PythonLabs. Em outubro " +"do mesmo ano, a equipe do PythonLabs mudou-se para a Digital Creations " +"(agora Zope Corporation; consulte https://www.zope.org/). Em 2001, a Python " +"Software Foundation (PSF, consulte https://www.python.org/psf/) foi formada, " +"uma organização sem fins lucrativos criada especificamente para possuir a " +"Propriedade Intelectual relacionada ao Python. A Zope Corporation é um " +"membro patrocinador do PSF." #: ../../license.rst:30 msgid "" @@ -72,10 +81,10 @@ msgid "" "have also been GPL-compatible; the table below summarizes the various " "releases." msgstr "" -"Todas as versões do Python são de código aberto (consulte " -"https://opensource.org/ para a definição de código aberto). Historicamente, " -"a maioria, mas não todas, versões do Python também são compatíveis com GPL; " -"a tabela abaixo resume os vários lançamentos." +"Todas as versões do Python são de código aberto (consulte https://opensource." +"org/ para a definição de código aberto). Historicamente, a maioria, mas não " +"todas, versões do Python também são compatíveis com GPL; a tabela abaixo " +"resume os vários lançamentos." #: ../../license.rst:35 msgid "Release" @@ -218,8 +227,8 @@ msgstr "2001-agora" msgid "" "GPL-compatible doesn't mean that we're distributing Python under the GPL. " "All Python licenses, unlike the GPL, let you distribute a modified version " -"without making your changes open source. The GPL-compatible licenses make it" -" possible to combine Python with other software that is released under the " +"without making your changes open source. The GPL-compatible licenses make it " +"possible to combine Python with other software that is released under the " "GPL; the others don't." msgstr "" "Compatível com GPL não significa que estamos distribuindo Python sob a GPL. " @@ -270,8 +279,8 @@ msgid "" "acknowledgements for third-party software incorporated in the Python " "distribution." msgstr "" -"Esta seção é uma lista incompleta, mas crescente, de licenças e confirmações" -" para softwares de terceiros incorporados na distribuição do Python." +"Esta seção é uma lista incompleta, mas crescente, de licenças e confirmações " +"para softwares de terceiros incorporados na distribuição do Python." #: ../../license.rst:269 msgid "Mersenne Twister" @@ -279,13 +288,13 @@ msgstr "Mersenne Twister" #: ../../license.rst:271 msgid "" -"The :mod:`_random` module includes code based on a download from " -"http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html. The " -"following are the verbatim comments from the original code::" +"The :mod:`_random` module includes code based on a download from http://www." +"math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html. The following " +"are the verbatim comments from the original code::" msgstr "" -"O módulo: mod: `_random` inclui código baseado em um download de " -"http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html. A " -"seguir estão os comentários literais do código original:" +"O módulo: mod: `_random` inclui código baseado em um download de http://www." +"math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html. A seguir estão " +"os comentários literais do código original:" #: ../../license.rst:318 msgid "Sockets" @@ -293,8 +302,8 @@ msgstr "Sockets" #: ../../license.rst:320 msgid "" -"The :mod:`socket` module uses the functions, :func:`getaddrinfo`, and " -":func:`getnameinfo`, which are coded in separate source files from the WIDE " +"The :mod:`socket` module uses the functions, :func:`getaddrinfo`, and :func:" +"`getnameinfo`, which are coded in separate source files from the WIDE " "Project, http://www.wide.ad.jp/. ::" msgstr "" "O módulo: mod: `socket` usa as funções: func:` getaddrinfo` e: func: " @@ -361,8 +370,7 @@ msgid "" "The :mod:`select` module contains the following notice for the kqueue " "interface::" msgstr "" -"O módulo: mod: `select` contém o seguinte aviso para a interface do kqueue " -"::" +"O módulo: mod: `select` contém o seguinte aviso para a interface do kqueue ::" #: ../../license.rst:561 msgid "SipHash24" @@ -370,8 +378,8 @@ msgstr "SipHash24" #: ../../license.rst:563 msgid "" -"The file :file:`Python/pyhash.c` contains Marek Majkowski' implementation of" -" Dan Bernstein's SipHash24 algorithm. It contains the following note::" +"The file :file:`Python/pyhash.c` contains Marek Majkowski' implementation of " +"Dan Bernstein's SipHash24 algorithm. It contains the following note::" msgstr "" "O arquivo: file: `Python / pyhash.c` contém a implementação de Marek " "Majkowski do algoritmo SipHash24 de Dan Bernstein. Contém a seguinte nota ::" @@ -383,17 +391,16 @@ msgstr "strtod e dtoa" #: ../../license.rst:592 msgid "" "The file :file:`Python/dtoa.c`, which supplies C functions dtoa and strtod " -"for conversion of C doubles to and from strings, is derived from the file of" -" the same name by David M. Gay, currently available from " -"http://www.netlib.org/fp/. The original file, as retrieved on March 16, " -"2009, contains the following copyright and licensing notice::" +"for conversion of C doubles to and from strings, is derived from the file of " +"the same name by David M. Gay, currently available from http://www.netlib." +"org/fp/. The original file, as retrieved on March 16, 2009, contains the " +"following copyright and licensing notice::" msgstr "" "O arquivo: file: `Python / dtoa.c`, que fornece as funções C dtoa e strtod " -"para conversão de duplas de C para e de strings, é derivado do arquivo com o" -" mesmo nome de David M. Gay, atualmente disponível em " -"http://www.netlib.org/fp/. O arquivo original, conforme recuperado em 16 de " -"março de 2009, contém os seguintes avisos de direitos autorais e de " -"licenciamento ::" +"para conversão de duplas de C para e de strings, é derivado do arquivo com o " +"mesmo nome de David M. Gay, atualmente disponível em http://www.netlib.org/" +"fp/. O arquivo original, conforme recuperado em 16 de março de 2009, contém " +"os seguintes avisos de direitos autorais e de licenciamento ::" #: ../../license.rst:620 msgid "OpenSSL" @@ -404,12 +411,12 @@ msgid "" "The modules :mod:`hashlib`, :mod:`posix`, :mod:`ssl`, :mod:`crypt` use the " "OpenSSL library for added performance if made available by the operating " "system. Additionally, the Windows and Mac OS X installers for Python may " -"include a copy of the OpenSSL libraries, so we include a copy of the OpenSSL" -" license here::" +"include a copy of the OpenSSL libraries, so we include a copy of the OpenSSL " +"license here::" msgstr "" -"Os módulos: mod: `hashlib`,: mod:` posix`,: mod: `ssl`,: mod:` crypt` usam a" -" biblioteca OpenSSL para desempenho adicional se forem disponibilizados pelo" -" sistema operacional. Além disso, os instaladores do Windows e do Mac OS X " +"Os módulos: mod: `hashlib`,: mod:` posix`,: mod: `ssl`,: mod:` crypt` usam a " +"biblioteca OpenSSL para desempenho adicional se forem disponibilizados pelo " +"sistema operacional. Além disso, os instaladores do Windows e do Mac OS X " "para Python podem incluir uma cópia das bibliotecas do OpenSSL, portanto " "incluímos uma cópia da licença do OpenSSL aqui:" @@ -422,9 +429,9 @@ msgid "" "The :mod:`pyexpat` extension is built using an included copy of the expat " "sources unless the build is configured ``--with-system-expat``::" msgstr "" -"A extensão: mod: `pyexpat` é construída usando uma cópia incluída das fontes" -" de expatriadas, a menos que a compilação esteja configurada ``--with-" -"system-expat``::" +"A extensão: mod: `pyexpat` é construída usando uma cópia incluída das fontes " +"de expatriadas, a menos que a compilação esteja configurada ``--with-system-" +"expat``::" #: ../../license.rst:786 msgid "libffi" @@ -435,8 +442,8 @@ msgid "" "The :mod:`_ctypes` extension is built using an included copy of the libffi " "sources unless the build is configured ``--with-system-libffi``::" msgstr "" -"A extensão: mod: `_ctypes` é construída usando uma cópia incluída das fontes" -" libffi, a menos que a compilação esteja configurada ``--with-system-" +"A extensão: mod: `_ctypes` é construída usando uma cópia incluída das fontes " +"libffi, a menos que a compilação esteja configurada ``--with-system-" "libffi``::" #: ../../license.rst:815 @@ -459,8 +466,8 @@ msgstr "cfuhash" #: ../../license.rst:848 msgid "" -"The implementation of the hash table used by the :mod:`tracemalloc` is based" -" on the cfuhash project::" +"The implementation of the hash table used by the :mod:`tracemalloc` is based " +"on the cfuhash project::" msgstr "" "A implementação da tabela de hash usada pelo: mod: `tracemalloc` é baseada " "no projeto cfuhash ::" diff --git a/reference/compound_stmts.po b/reference/compound_stmts.po index d6155205a..060f53b9d 100644 --- a/reference/compound_stmts.po +++ b/reference/compound_stmts.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 # Alexandre B A Villares, 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" -"Last-Translator: Alexandre B A Villares, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,18 +46,17 @@ msgstr "" msgid "" "The :keyword:`if`, :keyword:`while` and :keyword:`for` statements implement " "traditional control flow constructs. :keyword:`try` specifies exception " -"handlers and/or cleanup code for a group of statements, while the " -":keyword:`with` statement allows the execution of initialization and " -"finalization code around a block of code. Function and class definitions " -"are also syntactically compound statements." +"handlers and/or cleanup code for a group of statements, while the :keyword:" +"`with` statement allows the execution of initialization and finalization " +"code around a block of code. Function and class definitions are also " +"syntactically compound statements." msgstr "" "As instruções :keyword:`if`, :keyword:`while` e :keyword:`for` implementam " "construções tradicionais de controle do fluxo de execução. :keyword:`try` " "especifica tratadores de exceções e/ou código de limpeza para um grupo de " -"instruções, enquanto a palavra reservada :keyword:`with` permite a execução" -" de código de inicialização e finalização em volta de um bloco de código. " -"Definições de função e classe também são sintaticamente instruções " -"compostas." +"instruções, enquanto a palavra reservada :keyword:`with` permite a execução " +"de código de inicialização e finalização em volta de um bloco de código. " +"Definições de função e classe também são sintaticamente instruções compostas." #: ../../reference/compound_stmts.rst:26 msgid "" @@ -67,9 +68,9 @@ msgid "" "semicolon-separated simple statements on the same line as the header, " "following the header's colon, or it can be one or more indented statements " "on subsequent lines. Only the latter form of a suite can contain nested " -"compound statements; the following is illegal, mostly because it wouldn't be" -" clear to which :keyword:`if` clause a following :keyword:`else` clause " -"would belong::" +"compound statements; the following is illegal, mostly because it wouldn't be " +"clear to which :keyword:`if` clause a following :keyword:`else` clause would " +"belong::" msgstr "" #: ../../reference/compound_stmts.rst:39 @@ -88,14 +89,14 @@ msgid "" "Note that statements always end in a ``NEWLINE`` possibly followed by a " "``DEDENT``. Also note that optional continuation clauses always begin with " "a keyword that cannot start a statement, thus there are no ambiguities (the " -"'dangling :keyword:`else`' problem is solved in Python by requiring nested " -":keyword:`if` statements to be indented)." +"'dangling :keyword:`else`' problem is solved in Python by requiring nested :" +"keyword:`if` statements to be indented)." msgstr "" -"Note que instruções sempre terminam em uma ``NEWLINE`` possivelmente seguida" -" por uma ``DEDENT``. Note também que cláusulas de continuação sempre começam" -" com uma palavra reservada que não pode iniciar uma instrução, desta forma " -"não há ambiguidades (o problema do :keyword:`else`' pendurado é resolvido em" -" Python obrigando que instruções :keyword:`if` aninhadas tenham indentação)" +"Note que instruções sempre terminam em uma ``NEWLINE`` possivelmente seguida " +"por uma ``DEDENT``. Note também que cláusulas de continuação sempre começam " +"com uma palavra reservada que não pode iniciar uma instrução, desta forma " +"não há ambiguidades (o problema do :keyword:`else`' pendurado é resolvido em " +"Python obrigando que instruções :keyword:`if` aninhadas tenham indentação)" #: ../../reference/compound_stmts.rst:73 msgid "" @@ -136,17 +137,17 @@ msgstr "" #: ../../reference/compound_stmts.rst:122 msgid "" "This repeatedly tests the expression and, if it is true, executes the first " -"suite; if the expression is false (which may be the first time it is tested)" -" the suite of the :keyword:`!else` clause, if present, is executed and the " +"suite; if the expression is false (which may be the first time it is tested) " +"the suite of the :keyword:`!else` clause, if present, is executed and the " "loop terminates." msgstr "" #: ../../reference/compound_stmts.rst:131 msgid "" -"A :keyword:`break` statement executed in the first suite terminates the loop" -" without executing the :keyword:`!else` clause's suite. A " -":keyword:`continue` statement executed in the first suite skips the rest of " -"the suite and goes back to testing the expression." +"A :keyword:`break` statement executed in the first suite terminates the loop " +"without executing the :keyword:`!else` clause's suite. A :keyword:" +"`continue` statement executed in the first suite skips the rest of the suite " +"and goes back to testing the expression." msgstr "" #: ../../reference/compound_stmts.rst:140 @@ -162,8 +163,8 @@ msgstr "" #: ../../reference/compound_stmts.rst:158 msgid "" "The expression list is evaluated once; it should yield an iterable object. " -"An iterator is created for the result of the ``expression_list``. The suite" -" is then executed once for each item provided by the iterator, in the order " +"An iterator is created for the result of the ``expression_list``. The suite " +"is then executed once for each item provided by the iterator, in the order " "returned by the iterator. Each item in turn is assigned to the target list " "using the standard rules for assignments (see :ref:`assignment`), and then " "the suite is executed. When the items are exhausted (which is immediately " @@ -174,11 +175,11 @@ msgstr "" #: ../../reference/compound_stmts.rst:171 msgid "" -"A :keyword:`break` statement executed in the first suite terminates the loop" -" without executing the :keyword:`!else` clause's suite. A " -":keyword:`continue` statement executed in the first suite skips the rest of " -"the suite and continues with the next item, or with the :keyword:`!else` " -"clause if there is no next item." +"A :keyword:`break` statement executed in the first suite terminates the loop " +"without executing the :keyword:`!else` clause's suite. A :keyword:" +"`continue` statement executed in the first suite skips the rest of the suite " +"and continues with the next item, or with the :keyword:`!else` clause if " +"there is no next item." msgstr "" #: ../../reference/compound_stmts.rst:177 @@ -203,12 +204,12 @@ msgid "" "can only occur for mutable sequences, e.g. lists). An internal counter is " "used to keep track of which item is used next, and this is incremented on " "each iteration. When this counter has reached the length of the sequence " -"the loop terminates. This means that if the suite deletes the current (or a" -" previous) item from the sequence, the next item will be skipped (since it " +"the loop terminates. This means that if the suite deletes the current (or a " +"previous) item from the sequence, the next item will be skipped (since it " "gets the index of the current item which has already been treated). " "Likewise, if the suite inserts an item in the sequence before the current " -"item, the current item will be treated again the next time through the loop." -" This can lead to nasty bugs that can be avoided by making a temporary copy " +"item, the current item will be treated again the next time through the loop. " +"This can lead to nasty bugs that can be avoided by making a temporary copy " "using a slice of the whole sequence, e.g., ::" msgstr "" @@ -224,8 +225,8 @@ msgstr "" #: ../../reference/compound_stmts.rst:247 msgid "" -"The :keyword:`except` clause(s) specify one or more exception handlers. When" -" no exception occurs in the :keyword:`try` clause, no exception handler is " +"The :keyword:`except` clause(s) specify one or more exception handlers. When " +"no exception occurs in the :keyword:`try` clause, no exception handler is " "executed. When an exception occurs in the :keyword:`!try` suite, a search " "for an exception handler is started. This search inspects the except " "clauses in turn until one is found that matches the exception. An " @@ -256,10 +257,10 @@ msgstr "" msgid "" "When a matching except clause is found, the exception is assigned to the " "target specified after the :keyword:`!as` keyword in that except clause, if " -"present, and the except clause's suite is executed. All except clauses must" -" have an executable block. When the end of this block is reached, execution" -" continues normally after the entire try statement. (This means that if two" -" nested handlers exist for the same exception, and the exception occurs in " +"present, and the except clause's suite is executed. All except clauses must " +"have an executable block. When the end of this block is reached, execution " +"continues normally after the entire try statement. (This means that if two " +"nested handlers exist for the same exception, and the exception occurs in " "the try clause of the inner handler, the outer handler will not handle the " "exception.)" msgstr "" @@ -285,37 +286,35 @@ msgstr "" #: ../../reference/compound_stmts.rst:299 msgid "" -"Before an except clause's suite is executed, details about the exception are" -" stored in the :mod:`sys` module and can be accessed via " -":func:`sys.exc_info`. :func:`sys.exc_info` returns a 3-tuple consisting of " -"the exception class, the exception instance and a traceback object (see " -"section :ref:`types`) identifying the point in the program where the " -"exception occurred. :func:`sys.exc_info` values are restored to their " -"previous values (before the call) when returning from a function that " -"handled an exception." +"Before an except clause's suite is executed, details about the exception are " +"stored in the :mod:`sys` module and can be accessed via :func:`sys." +"exc_info`. :func:`sys.exc_info` returns a 3-tuple consisting of the " +"exception class, the exception instance and a traceback object (see section :" +"ref:`types`) identifying the point in the program where the exception " +"occurred. :func:`sys.exc_info` values are restored to their previous values " +"(before the call) when returning from a function that handled an exception." msgstr "" #: ../../reference/compound_stmts.rst:313 msgid "" "The optional :keyword:`!else` clause is executed if the control flow leaves " -"the :keyword:`try` suite, no exception was raised, and no :keyword:`return`," -" :keyword:`continue`, or :keyword:`break` statement was executed. " -"Exceptions in the :keyword:`!else` clause are not handled by the preceding " -":keyword:`except` clauses." +"the :keyword:`try` suite, no exception was raised, and no :keyword:" +"`return`, :keyword:`continue`, or :keyword:`break` statement was executed. " +"Exceptions in the :keyword:`!else` clause are not handled by the preceding :" +"keyword:`except` clauses." msgstr "" #: ../../reference/compound_stmts.rst:321 msgid "" -"If :keyword:`finally` is present, it specifies a 'cleanup' handler. The " -":keyword:`try` clause is executed, including any :keyword:`except` and " -":keyword:`!else` clauses. If an exception occurs in any of the clauses and " +"If :keyword:`finally` is present, it specifies a 'cleanup' handler. The :" +"keyword:`try` clause is executed, including any :keyword:`except` and :" +"keyword:`!else` clauses. If an exception occurs in any of the clauses and " "is not handled, the exception is temporarily saved. The :keyword:`!finally` " "clause is executed. If there is a saved exception it is re-raised at the " "end of the :keyword:`!finally` clause. If the :keyword:`!finally` clause " "raises another exception, the saved exception is set as the context of the " -"new exception. If the :keyword:`!finally` clause executes a " -":keyword:`return` or :keyword:`break` statement, the saved exception is " -"discarded::" +"new exception. If the :keyword:`!finally` clause executes a :keyword:" +"`return` or :keyword:`break` statement, the saved exception is discarded::" msgstr "" #: ../../reference/compound_stmts.rst:340 @@ -327,26 +326,26 @@ msgstr "" #: ../../reference/compound_stmts.rst:348 msgid "" "When a :keyword:`return`, :keyword:`break` or :keyword:`continue` statement " -"is executed in the :keyword:`try` suite of a :keyword:`!try`...\\ " -":keyword:`!finally` statement, the :keyword:`finally` clause is also " -"executed 'on the way out.' A :keyword:`continue` statement is illegal in the" -" :keyword:`!finally` clause. (The reason is a problem with the current " -"implementation --- this restriction may be lifted in the future)." +"is executed in the :keyword:`try` suite of a :keyword:`!try`...\\ :keyword:`!" +"finally` statement, the :keyword:`finally` clause is also executed 'on the " +"way out.' A :keyword:`continue` statement is illegal in the :keyword:`!" +"finally` clause. (The reason is a problem with the current implementation " +"--- this restriction may be lifted in the future)." msgstr "" #: ../../reference/compound_stmts.rst:355 msgid "" "The return value of a function is determined by the last :keyword:`return` " -"statement executed. Since the :keyword:`finally` clause always executes, a " -":keyword:`!return` statement executed in the :keyword:`!finally` clause will" -" always be the last one executed::" +"statement executed. Since the :keyword:`finally` clause always executes, a :" +"keyword:`!return` statement executed in the :keyword:`!finally` clause will " +"always be the last one executed::" msgstr "" #: ../../reference/compound_stmts.rst:369 msgid "" -"Additional information on exceptions can be found in section " -":ref:`exceptions`, and information on using the :keyword:`raise` statement " -"to generate exceptions may be found in section :ref:`raise`." +"Additional information on exceptions can be found in section :ref:" +"`exceptions`, and information on using the :keyword:`raise` statement to " +"generate exceptions may be found in section :ref:`raise`." msgstr "" #: ../../reference/compound_stmts.rst:378 @@ -357,14 +356,14 @@ msgstr "" msgid "" "The :keyword:`with` statement is used to wrap the execution of a block with " "methods defined by a context manager (see section :ref:`context-managers`). " -"This allows common :keyword:`try`...\\ :keyword:`except`...\\ " -":keyword:`finally` usage patterns to be encapsulated for convenient reuse." +"This allows common :keyword:`try`...\\ :keyword:`except`...\\ :keyword:" +"`finally` usage patterns to be encapsulated for convenient reuse." msgstr "" #: ../../reference/compound_stmts.rst:396 msgid "" -"The execution of the :keyword:`with` statement with one \"item\" proceeds as" -" follows:" +"The execution of the :keyword:`with` statement with one \"item\" proceeds as " +"follows:" msgstr "" #: ../../reference/compound_stmts.rst:398 @@ -392,8 +391,8 @@ msgid "" "The :keyword:`with` statement guarantees that if the :meth:`__enter__` " "method returns without an error, then :meth:`__exit__` will always be " "called. Thus, if an error occurs during the assignment to the target list, " -"it will be treated the same as an error occurring within the suite would be." -" See step 6 below." +"it will be treated the same as an error occurring within the suite would be. " +"See step 6 below." msgstr "" #: ../../reference/compound_stmts.rst:416 @@ -410,23 +409,23 @@ msgstr "" #: ../../reference/compound_stmts.rst:423 msgid "" -"If the suite was exited due to an exception, and the return value from the " -":meth:`__exit__` method was false, the exception is reraised. If the return" -" value was true, the exception is suppressed, and execution continues with " +"If the suite was exited due to an exception, and the return value from the :" +"meth:`__exit__` method was false, the exception is reraised. If the return " +"value was true, the exception is suppressed, and execution continues with " "the statement following the :keyword:`with` statement." msgstr "" #: ../../reference/compound_stmts.rst:428 msgid "" "If the suite was exited for any reason other than an exception, the return " -"value from :meth:`__exit__` is ignored, and execution proceeds at the normal" -" location for the kind of exit that was taken." +"value from :meth:`__exit__` is ignored, and execution proceeds at the normal " +"location for the kind of exit that was taken." msgstr "" #: ../../reference/compound_stmts.rst:432 msgid "" -"With more than one item, the context managers are processed as if multiple " -":keyword:`with` statements were nested::" +"With more than one item, the context managers are processed as if multiple :" +"keyword:`with` statements were nested::" msgstr "" #: ../../reference/compound_stmts.rst:438 @@ -454,17 +453,17 @@ msgstr "" #: ../../reference/compound_stmts.rst:476 msgid "" -"A function definition defines a user-defined function object (see section " -":ref:`types`):" +"A function definition defines a user-defined function object (see section :" +"ref:`types`):" msgstr "" #: ../../reference/compound_stmts.rst:494 msgid "" "A function definition is an executable statement. Its execution binds the " -"function name in the current local namespace to a function object (a wrapper" -" around the executable code for the function). This function object " -"contains a reference to the current global namespace as the global namespace" -" to be used when the function is called." +"function name in the current local namespace to a function object (a wrapper " +"around the executable code for the function). This function object contains " +"a reference to the current global namespace as the global namespace to be " +"used when the function is called." msgstr "" #: ../../reference/compound_stmts.rst:500 @@ -498,12 +497,12 @@ msgstr "" #: ../../reference/compound_stmts.rst:529 msgid "" "When one or more :term:`parameters ` have the form *parameter* " -"``=`` *expression*, the function is said to have \"default parameter " -"values.\" For a parameter with a default value, the corresponding " -":term:`argument` may be omitted from a call, in which case the parameter's " -"default value is substituted. If a parameter has a default value, all " -"following parameters up until the \"``*``\" must also have a default value " -"--- this is a syntactic restriction that is not expressed by the grammar." +"``=`` *expression*, the function is said to have \"default parameter values." +"\" For a parameter with a default value, the corresponding :term:`argument` " +"may be omitted from a call, in which case the parameter's default value is " +"substituted. If a parameter has a default value, all following parameters " +"up until the \"``*``\" must also have a default value --- this is a " +"syntactic restriction that is not expressed by the grammar." msgstr "" #: ../../reference/compound_stmts.rst:537 @@ -512,20 +511,20 @@ msgid "" "function definition is executed.** This means that the expression is " "evaluated once, when the function is defined, and that the same \"pre-" "computed\" value is used for each call. This is especially important to " -"understand when a default parameter is a mutable object, such as a list or a" -" dictionary: if the function modifies the object (e.g. by appending an item " +"understand when a default parameter is a mutable object, such as a list or a " +"dictionary: if the function modifies the object (e.g. by appending an item " "to a list), the default value is in effect modified. This is generally not " -"what was intended. A way around this is to use ``None`` as the default, and" -" explicitly test for it in the body of the function, e.g.::" +"what was intended. A way around this is to use ``None`` as the default, and " +"explicitly test for it in the body of the function, e.g.::" msgstr "" #: ../../reference/compound_stmts.rst:557 msgid "" -"Function call semantics are described in more detail in section " -":ref:`calls`. A function call always assigns values to all parameters " -"mentioned in the parameter list, either from position arguments, from " -"keyword arguments, or from default values. If the form \"``*identifier``\" " -"is present, it is initialized to a tuple receiving any excess positional " +"Function call semantics are described in more detail in section :ref:" +"`calls`. A function call always assigns values to all parameters mentioned " +"in the parameter list, either from position arguments, from keyword " +"arguments, or from default values. If the form \"``*identifier``\" is " +"present, it is initialized to a tuple receiving any excess positional " "parameters, defaulting to the empty tuple. If the form \"``**identifier``\" " "is present, it is initialized to a new ordered mapping receiving any excess " "keyword arguments, defaulting to a new empty mapping of the same type. " @@ -557,8 +556,8 @@ msgid "" "described in section :ref:`lambda`. Note that the lambda expression is " "merely a shorthand for a simplified function definition; a function defined " "in a \":keyword:`def`\" statement can be passed around or assigned to " -"another name just like a function defined by a lambda expression. The " -"\":keyword:`!def`\" form is actually more powerful since it allows the " +"another name just like a function defined by a lambda expression. The \":" +"keyword:`!def`\" form is actually more powerful since it allows the " "execution of multiple statements and annotations." msgstr "" @@ -567,8 +566,8 @@ msgid "" "**Programmer's note:** Functions are first-class objects. A \"``def``\" " "statement executed inside a function definition defines a local function " "that can be returned or passed around. Free variables used in the nested " -"function can access the local variables of the function containing the def." -" See section :ref:`naming` for details." +"function can access the local variables of the function containing the def. " +"See section :ref:`naming` for details." msgstr "" #: ../../reference/compound_stmts.rst:605 @@ -617,8 +616,8 @@ msgstr "" #: ../../reference/compound_stmts.rst:644 msgid "" -"A class definition is an executable statement. The inheritance list usually" -" gives a list of base classes (see :ref:`metaclasses` for more advanced " +"A class definition is an executable statement. The inheritance list usually " +"gives a list of base classes (see :ref:`metaclasses` for more advanced " "uses), so each item in the list should evaluate to a class object which " "allows subclassing. Classes without an inheritance list inherit, by " "default, from the base class :class:`object`; hence, ::" @@ -626,14 +625,14 @@ msgstr "" #: ../../reference/compound_stmts.rst:658 msgid "" -"The class's suite is then executed in a new execution frame (see " -":ref:`naming`), using a newly created local namespace and the original " -"global namespace. (Usually, the suite contains mostly function definitions.)" -" When the class's suite finishes execution, its execution frame is " -"discarded but its local namespace is saved. [#]_ A class object is then " -"created using the inheritance list for the base classes and the saved local " -"namespace for the attribute dictionary. The class name is bound to this " -"class object in the original local namespace." +"The class's suite is then executed in a new execution frame (see :ref:" +"`naming`), using a newly created local namespace and the original global " +"namespace. (Usually, the suite contains mostly function definitions.) When " +"the class's suite finishes execution, its execution frame is discarded but " +"its local namespace is saved. [#]_ A class object is then created using the " +"inheritance list for the base classes and the saved local namespace for the " +"attribute dictionary. The class name is bound to this class object in the " +"original local namespace." msgstr "" #: ../../reference/compound_stmts.rst:667 @@ -663,19 +662,19 @@ msgstr "" #: ../../reference/compound_stmts.rst:691 msgid "" "**Programmer's note:** Variables defined in the class definition are class " -"attributes; they are shared by instances. Instance attributes can be set in" -" a method with ``self.name = value``. Both class and instance attributes " -"are accessible through the notation \"``self.name``\", and an instance " -"attribute hides a class attribute with the same name when accessed in this " -"way. Class attributes can be used as defaults for instance attributes, but " -"using mutable values there can lead to unexpected results. " -":ref:`Descriptors ` can be used to create instance variables " -"with different implementation details." +"attributes; they are shared by instances. Instance attributes can be set in " +"a method with ``self.name = value``. Both class and instance attributes are " +"accessible through the notation \"``self.name``\", and an instance attribute " +"hides a class attribute with the same name when accessed in this way. Class " +"attributes can be used as defaults for instance attributes, but using " +"mutable values there can lead to unexpected results. :ref:`Descriptors " +"` can be used to create instance variables with different " +"implementation details." msgstr "" #: ../../reference/compound_stmts.rst:706 msgid ":pep:`3115` - Metaclasses in Python 3000" -msgstr "" +msgstr ":pep:`3115` - Metaclasses no Python 3000" #: ../../reference/compound_stmts.rst:704 msgid "" @@ -704,10 +703,10 @@ msgstr "" #: ../../reference/compound_stmts.rst:734 msgid "" "Execution of Python coroutines can be suspended and resumed at many points " -"(see :term:`coroutine`). Inside the body of a coroutine function, ``await``" -" and ``async`` identifiers become reserved keywords; :keyword:`await` " -"expressions, :keyword:`async for` and :keyword:`async with` can only be used" -" in coroutine function bodies." +"(see :term:`coroutine`). Inside the body of a coroutine function, ``await`` " +"and ``async`` identifiers become reserved keywords; :keyword:`await` " +"expressions, :keyword:`async for` and :keyword:`async with` can only be used " +"in coroutine function bodies." msgstr "" #: ../../reference/compound_stmts.rst:740 @@ -769,8 +768,8 @@ msgstr "" #: ../../reference/compound_stmts.rst:806 msgid "" -"An :term:`asynchronous context manager` is a :term:`context manager` that is" -" able to suspend execution in its *enter* and *exit* methods." +"An :term:`asynchronous context manager` is a :term:`context manager` that is " +"able to suspend execution in its *enter* and *exit* methods." msgstr "" #: ../../reference/compound_stmts.rst:829 @@ -789,8 +788,8 @@ msgstr "" #: ../../reference/compound_stmts.rst:837 msgid "" -"The proposal that made coroutines a proper standalone concept in Python, and" -" added supporting syntax." +"The proposal that made coroutines a proper standalone concept in Python, and " +"added supporting syntax." msgstr "" #: ../../reference/compound_stmts.rst:842 @@ -799,9 +798,9 @@ msgstr "Notas de rodapé" #: ../../reference/compound_stmts.rst:843 msgid "" -"The exception is propagated to the invocation stack unless there is a " -":keyword:`finally` clause which happens to raise another exception. That new" -" exception causes the old one to be lost." +"The exception is propagated to the invocation stack unless there is a :" +"keyword:`finally` clause which happens to raise another exception. That new " +"exception causes the old one to be lost." msgstr "" #: ../../reference/compound_stmts.rst:847 @@ -814,6 +813,6 @@ msgstr "" #: ../../reference/compound_stmts.rst:851 msgid "" "A string literal appearing as the first statement in the class body is " -"transformed into the namespace's ``__doc__`` item and therefore the class's " -":term:`docstring`." +"transformed into the namespace's ``__doc__`` item and therefore the class's :" +"term:`docstring`." msgstr "" diff --git a/reference/datamodel.po b/reference/datamodel.po index c7b8a37ff..548234026 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -1,10 +1,9 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: -# Marco Rougeth , 2019 # Tiago Henrique , 2019 # Raphael Mendonça, 2019 # Adorilson Bezerra , 2019 @@ -12,16 +11,19 @@ # Claudio Rogerio Carvalho Filho , 2019 # Welington Carlos , 2019 # Alexandre B A Villares, 2019 -# +# Rafael Fontenelle , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-11 01:07+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" -"Last-Translator: Alexandre B A Villares, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,12 +43,8 @@ msgid "" ":dfn:`Objects` are Python's abstraction for data. All data in a Python " "program is represented by objects or by relations between objects. (In a " "sense, and in conformance to Von Neumann's model of a \"stored program " -"computer,\" code is also represented by objects.)" +"computer\", code is also represented by objects.)" msgstr "" -":dfn:`Objetos` são abstrações do Python para dados. Todo dados em um " -"programa Python, é representados por objetos ou por relações entre " -"objetos.(De certo modo, e em conformidade com o modelo de Von Neumann em " -"\"stored program computer,\" código também é representado por objetos.)" #: ../../reference/datamodel.rst:35 msgid "" @@ -57,8 +55,8 @@ msgid "" "identity." msgstr "" "Todo objeto tem uma identidade, um tipo e um valor. A *identidade de um " -"objeto, nunca muda depois de criado; você pode pensar nisso como endereço de" -" objetos em memória. O operador ': keyword: `is`' compara as identidades de " +"objeto, nunca muda depois de criado; você pode pensar nisso como endereço de " +"objetos em memória. O operador ': keyword: `is`' compara as identidades de " "dois objetos; a função :func:`id` retorna um inteiro representando sua " "identidade." @@ -71,9 +69,9 @@ msgstr "" #: ../../reference/datamodel.rst:44 msgid "" "An object's type determines the operations that the object supports (e.g., " -"\"does it have a length?\") and also defines the possible values for objects" -" of that type. The :func:`type` function returns an object's type (which is" -" an object itself). Like its identity, an object's :dfn:`type` is also " +"\"does it have a length?\") and also defines the possible values for objects " +"of that type. The :func:`type` function returns an object's type (which is " +"an object itself). Like its identity, an object's :dfn:`type` is also " "unchangeable. [#]_" msgstr "" "O tipo de um objeto determina as operações que o objeto suporta (por " @@ -90,8 +88,8 @@ msgid "" "that contains a reference to a mutable object can change when the latter's " "value is changed; however the container is still considered immutable, " "because the collection of objects it contains cannot be changed. So, " -"immutability is not strictly the same as having an unchangeable value, it is" -" more subtle.) An object's mutability is determined by its type; for " +"immutability is not strictly the same as having an unchangeable value, it is " +"more subtle.) An object's mutability is determined by its type; for " "instance, numbers, strings and tuples are immutable, while dictionaries and " "lists are mutable." msgstr "" @@ -101,9 +99,9 @@ msgstr "" "contém uma referência a um objeto mutável pode mudar quando o valor deste " "último for mudado; no entanto a coleção é ainda assim considerada imutável, " "pois a coleção de objetos que contém não pode ser mudada. Então a " -"imutabilidade não é estritamente o mesmo do que não haver mudanças de valor," -" é mais sutil.) A mutabilidade de um objeto é determinada pelo seu tipo; por" -" exemplo, números, strings e tuplas são imutáveis, enquanto dicionários e " +"imutabilidade não é estritamente o mesmo do que não haver mudanças de valor, " +"é mais sutil.) A mutabilidade de um objeto é determinada pelo seu tipo; por " +"exemplo, números, strings e tuplas são imutáveis, enquanto dicionários e " "listas são mutáveis." #: ../../reference/datamodel.rst:65 @@ -137,22 +135,22 @@ msgstr "" #: ../../reference/datamodel.rst:87 msgid "" -"Some objects contain references to \"external\" resources such as open files" -" or windows. It is understood that these resources are freed when the " -"object is garbage-collected, but since garbage collection is not guaranteed " -"to happen, such objects also provide an explicit way to release the external" -" resource, usually a :meth:`close` method. Programs are strongly recommended" -" to explicitly close such objects. The ':keyword:`try`...\\ " -":keyword:`finally`' statement and the ':keyword:`with`' statement provide " -"convenient ways to do this." +"Some objects contain references to \"external\" resources such as open files " +"or windows. It is understood that these resources are freed when the object " +"is garbage-collected, but since garbage collection is not guaranteed to " +"happen, such objects also provide an explicit way to release the external " +"resource, usually a :meth:`close` method. Programs are strongly recommended " +"to explicitly close such objects. The ':keyword:`try`...\\ :keyword:" +"`finally`' statement and the ':keyword:`with`' statement provide convenient " +"ways to do this." msgstr "" #: ../../reference/datamodel.rst:97 msgid "" "Some objects contain references to other objects; these are called " "*containers*. Examples of containers are tuples, lists and dictionaries. " -"The references are part of a container's value. In most cases, when we talk" -" about the value of a container, we imply the values, not the identities of " +"The references are part of a container's value. In most cases, when we talk " +"about the value of a container, we imply the values, not the identities of " "the contained objects; however, when we talk about the mutability of a " "container, only the identities of the immediately contained objects are " "implied. So, if an immutable container (like a tuple) contains a reference " @@ -165,9 +163,9 @@ msgid "" "object identity is affected in some sense: for immutable types, operations " "that compute new values may actually return a reference to any existing " "object with the same type and value, while for mutable objects this is not " -"allowed. E.g., after ``a = 1; b = 1``, ``a`` and ``b`` may or may not refer" -" to the same object with the value one, depending on the implementation, but" -" after ``c = []; d = []``, ``c`` and ``d`` are guaranteed to refer to two " +"allowed. E.g., after ``a = 1; b = 1``, ``a`` and ``b`` may or may not refer " +"to the same object with the value one, depending on the implementation, but " +"after ``c = []; d = []``, ``c`` and ``d`` are guaranteed to refer to two " "different, unique, newly created empty lists. (Note that ``c = d = []`` " "assigns the same object to both ``c`` and ``d``.)" msgstr "" @@ -180,8 +178,8 @@ msgstr "" msgid "" "Below is a list of the types that are built into Python. Extension modules " "(written in C, Java, or other languages, depending on the implementation) " -"can define additional types. Future versions of Python may add types to the" -" type hierarchy (e.g., rational numbers, efficiently stored arrays of " +"can define additional types. Future versions of Python may add types to the " +"type hierarchy (e.g., rational numbers, efficiently stored arrays of " "integers, etc.), although such additions will often be provided via the " "standard library instead." msgstr "" @@ -189,8 +187,8 @@ msgstr "" #: ../../reference/datamodel.rst:140 msgid "" "Some of the type descriptions below contain a paragraph listing 'special " -"attributes.' These are attributes that provide access to the implementation" -" and are not intended for general use. Their definition may change in the " +"attributes.' These are attributes that provide access to the implementation " +"and are not intended for general use. Their definition may change in the " "future." msgstr "" @@ -202,8 +200,8 @@ msgstr "None" msgid "" "This type has a single value. There is a single object with this value. " "This object is accessed through the built-in name ``None``. It is used to " -"signify the absence of a value in many situations, e.g., it is returned from" -" functions that don't explicitly return anything. Its truth value is false." +"signify the absence of a value in many situations, e.g., it is returned from " +"functions that don't explicitly return anything. Its truth value is false." msgstr "" #: ../../reference/datamodel.rst:165 @@ -214,10 +212,10 @@ msgstr "NotImplemented" msgid "" "This type has a single value. There is a single object with this value. " "This object is accessed through the built-in name ``NotImplemented``. " -"Numeric methods and rich comparison methods should return this value if they" -" do not implement the operation for the operands provided. (The interpreter" -" will then try the reflected operation, or some other fallback, depending on" -" the operator.) Its truth value is true." +"Numeric methods and rich comparison methods should return this value if they " +"do not implement the operation for the operands provided. (The interpreter " +"will then try the reflected operation, or some other fallback, depending on " +"the operator.) Its truth value is true." msgstr "" #: ../../reference/datamodel.rst:162 @@ -244,8 +242,8 @@ msgstr ":class:`numbers.Number`" #: ../../reference/datamodel.rst:179 msgid "" "These are created by numeric literals and returned as results by arithmetic " -"operators and arithmetic built-in functions. Numeric objects are immutable;" -" once created their value never changes. Python numbers are of course " +"operators and arithmetic built-in functions. Numeric objects are immutable; " +"once created their value never changes. Python numbers are of course " "strongly related to mathematical numbers, but subject to the limitations of " "numerical representation in computers." msgstr "" @@ -258,12 +256,12 @@ msgstr "" #: ../../reference/datamodel.rst:219 msgid ":class:`numbers.Integral`" -msgstr "" +msgstr ":class:`numbers.Integral`" #: ../../reference/datamodel.rst:191 msgid "" -"These represent elements from the mathematical set of integers (positive and" -" negative)." +"These represent elements from the mathematical set of integers (positive and " +"negative)." msgstr "" #: ../../reference/datamodel.rst:194 @@ -290,11 +288,11 @@ msgstr "Booleans (:class:`bool`)" #: ../../reference/datamodel.rst:210 msgid "" "These represent the truth values False and True. The two objects " -"representing the values ``False`` and ``True`` are the only Boolean objects." -" The Boolean type is a subtype of the integer type, and Boolean values " -"behave like the values 0 and 1, respectively, in almost all contexts, the " -"exception being that when converted to a string, the strings ``\"False\"`` " -"or ``\"True\"`` are returned, respectively." +"representing the values ``False`` and ``True`` are the only Boolean objects. " +"The Boolean type is a subtype of the integer type, and Boolean values behave " +"like the values 0 and 1, respectively, in almost all contexts, the exception " +"being that when converted to a string, the strings ``\"False\"`` or ``\"True" +"\"`` are returned, respectively." msgstr "" #: ../../reference/datamodel.rst:218 @@ -312,11 +310,11 @@ msgstr ":class:`numbers.Real` (:class:`float`)" msgid "" "These represent machine-level double precision floating point numbers. You " "are at the mercy of the underlying machine architecture (and C or Java " -"implementation) for the accepted range and handling of overflow. Python does" -" not support single-precision floating point numbers; the savings in " +"implementation) for the accepted range and handling of overflow. Python does " +"not support single-precision floating point numbers; the savings in " "processor and memory usage that are usually the reason for using these are " -"dwarfed by the overhead of using objects in Python, so there is no reason to" -" complicate the language with two kinds of floating point numbers." +"dwarfed by the overhead of using objects in Python, so there is no reason to " +"complicate the language with two kinds of floating point numbers." msgstr "" #: ../../reference/datamodel.rst:244 @@ -369,8 +367,8 @@ msgstr "Sequências Imutáveis" #: ../../reference/datamodel.rst:277 msgid "" "An object of an immutable sequence type cannot change once it is created. " -"(If the object contains references to other objects, these other objects may" -" be mutable and may be changed; however, the collection of objects directly " +"(If the object contains references to other objects, these other objects may " +"be mutable and may be changed; however, the collection of objects directly " "referenced by an immutable object cannot change.)" msgstr "" @@ -384,16 +382,16 @@ msgstr "Strings" #: ../../reference/datamodel.rst:295 msgid "" -"A string is a sequence of values that represent Unicode code points. All the" -" code points in the range ``U+0000 - U+10FFFF`` can be represented in a " +"A string is a sequence of values that represent Unicode code points. All the " +"code points in the range ``U+0000 - U+10FFFF`` can be represented in a " "string. Python doesn't have a :c:type:`char` type; instead, every code " "point in the string is represented as a string object with length ``1``. " -"The built-in function :func:`ord` converts a code point from its string form" -" to an integer in the range ``0 - 10FFFF``; :func:`chr` converts an integer " -"in the range ``0 - 10FFFF`` to the corresponding length ``1`` string object." -" :meth:`str.encode` can be used to convert a :class:`str` to :class:`bytes` " -"using the given text encoding, and :meth:`bytes.decode` can be used to " -"achieve the opposite." +"The built-in function :func:`ord` converts a code point from its string form " +"to an integer in the range ``0 - 10FFFF``; :func:`chr` converts an integer " +"in the range ``0 - 10FFFF`` to the corresponding length ``1`` string " +"object. :meth:`str.encode` can be used to convert a :class:`str` to :class:" +"`bytes` using the given text encoding, and :meth:`bytes.decode` can be used " +"to achieve the opposite." msgstr "" #: ../../reference/datamodel.rst:318 @@ -419,8 +417,8 @@ msgid "" "A bytes object is an immutable array. The items are 8-bit bytes, " "represented by integers in the range 0 <= x < 256. Bytes literals (like " "``b'abc'``) and the built-in :func:`bytes()` constructor can be used to " -"create bytes objects. Also, bytes objects can be decoded to strings via the" -" :meth:`~bytes.decode` method." +"create bytes objects. Also, bytes objects can be decoded to strings via " +"the :meth:`~bytes.decode` method." msgstr "" #: ../../reference/datamodel.rst:361 @@ -430,8 +428,8 @@ msgstr "Sequências Mutáveis" #: ../../reference/datamodel.rst:337 msgid "" "Mutable sequences can be changed after they are created. The subscription " -"and slicing notations can be used as the target of assignment and " -":keyword:`del` (delete) statements." +"and slicing notations can be used as the target of assignment and :keyword:" +"`del` (delete) statements." msgstr "" #: ../../reference/datamodel.rst:341 @@ -445,8 +443,8 @@ msgstr "Listas" #: ../../reference/datamodel.rst:346 msgid "" "The items of a list are arbitrary Python objects. Lists are formed by " -"placing a comma-separated list of expressions in square brackets. (Note that" -" there are no special cases needed to form lists of length 0 or 1.)" +"placing a comma-separated list of expressions in square brackets. (Note that " +"there are no special cases needed to form lists of length 0 or 1.)" msgstr "" #: ../../reference/datamodel.rst:356 @@ -455,8 +453,8 @@ msgstr "Arrays de Bytes" #: ../../reference/datamodel.rst:353 msgid "" -"A bytearray object is a mutable array. They are created by the built-in " -":func:`bytearray` constructor. Aside from being mutable (and hence " +"A bytearray object is a mutable array. They are created by the built-in :" +"func:`bytearray` constructor. Aside from being mutable (and hence " "unhashable), byte arrays otherwise provide the same interface and " "functionality as immutable :class:`bytes` objects." msgstr "" @@ -474,18 +472,18 @@ msgstr "Tipo Conjunto" #: ../../reference/datamodel.rst:368 msgid "" "These represent unordered, finite sets of unique, immutable objects. As " -"such, they cannot be indexed by any subscript. However, they can be iterated" -" over, and the built-in function :func:`len` returns the number of items in " -"a set. Common uses for sets are fast membership testing, removing duplicates" -" from a sequence, and computing mathematical operations such as " -"intersection, union, difference, and symmetric difference." +"such, they cannot be indexed by any subscript. However, they can be iterated " +"over, and the built-in function :func:`len` returns the number of items in a " +"set. Common uses for sets are fast membership testing, removing duplicates " +"from a sequence, and computing mathematical operations such as intersection, " +"union, difference, and symmetric difference." msgstr "" #: ../../reference/datamodel.rst:375 msgid "" "For set elements, the same immutability rules apply as for dictionary keys. " -"Note that numeric types obey the normal rules for numeric comparison: if two" -" numbers compare equal (e.g., ``1`` and ``1.0``), only one of them can be " +"Note that numeric types obey the normal rules for numeric comparison: if two " +"numbers compare equal (e.g., ``1`` and ``1.0``), only one of them can be " "contained in a set." msgstr "" @@ -500,8 +498,8 @@ msgstr "Conjuntos" #: ../../reference/datamodel.rst:385 msgid "" "These represent a mutable set. They are created by the built-in :func:`set` " -"constructor and can be modified afterwards by several methods, such as " -":meth:`~set.add`." +"constructor and can be modified afterwards by several methods, such as :meth:" +"`~set.add`." msgstr "" #: ../../reference/datamodel.rst:395 @@ -510,13 +508,12 @@ msgstr "Frozen sets" #: ../../reference/datamodel.rst:392 msgid "" -"These represent an immutable set. They are created by the built-in " -":func:`frozenset` constructor. As a frozenset is immutable and " -":term:`hashable`, it can be used again as an element of another set, or as a" -" dictionary key." +"These represent an immutable set. They are created by the built-in :func:" +"`frozenset` constructor. As a frozenset is immutable and :term:`hashable`, " +"it can be used again as an element of another set, or as a dictionary key." msgstr "" -#: ../../reference/datamodel.rst:432 +#: ../../reference/datamodel.rst:442 msgid "Mappings" msgstr "Mappings" @@ -533,7 +530,7 @@ msgstr "" msgid "There is currently a single intrinsic mapping type:" msgstr "" -#: ../../reference/datamodel.rst:432 +#: ../../reference/datamodel.rst:442 msgid "Dictionaries" msgstr "Dicionários" @@ -551,227 +548,242 @@ msgstr "" #: ../../reference/datamodel.rst:423 msgid "" -"Dictionaries are mutable; they can be created by the ``{...}`` notation (see" -" section :ref:`dict`)." +"Dictionaries preserve insertion order, meaning that keys will be produced in " +"the same order they were added sequentially over the dictionary. Replacing " +"an existing key does not change the order, however removing a key and re-" +"inserting it will add it to the end instead of keeping its old place." msgstr "" -#: ../../reference/datamodel.rst:430 +#: ../../reference/datamodel.rst:428 +msgid "" +"Dictionaries are mutable; they can be created by the ``{...}`` notation (see " +"section :ref:`dict`)." +msgstr "" + +#: ../../reference/datamodel.rst:435 msgid "" "The extension modules :mod:`dbm.ndbm` and :mod:`dbm.gnu` provide additional " "examples of mapping types, as does the :mod:`collections` module." msgstr "" -#: ../../reference/datamodel.rst:694 +#: ../../reference/datamodel.rst:439 +msgid "" +"Dictionaries did not preserve insertion order in versions of Python before " +"3.6. In CPython 3.6, insertion order was preserved, but it was considered an " +"implementation detail at that time rather than a language guarantee." +msgstr "" + +#: ../../reference/datamodel.rst:704 msgid "Callable types" msgstr "Tipo Callable" -#: ../../reference/datamodel.rst:441 +#: ../../reference/datamodel.rst:451 msgid "" -"These are the types to which the function call operation (see section " -":ref:`calls`) can be applied:" +"These are the types to which the function call operation (see section :ref:" +"`calls`) can be applied:" msgstr "" -#: ../../reference/datamodel.rst:542 +#: ../../reference/datamodel.rst:552 msgid "User-defined functions" msgstr "Funções Definidas pelo Usuário" -#: ../../reference/datamodel.rst:450 +#: ../../reference/datamodel.rst:460 msgid "" "A user-defined function object is created by a function definition (see " "section :ref:`function`). It should be called with an argument list " "containing the same number of items as the function's formal parameter list." msgstr "" "Um objeto função definido pelo usuário será criado pela definição de função " -"(veja a seção :ref:`function`). A mesma deverá ser invocada com uma lista de" -" argumentos contendo o mesmo número de itens que a lista de parâmetros " +"(veja a seção :ref:`function`). A mesma deverá ser invocada com uma lista de " +"argumentos contendo o mesmo número de itens que a lista de parâmetros " "formais da função." -#: ../../reference/datamodel.rst:455 +#: ../../reference/datamodel.rst:465 msgid "Special attributes:" msgstr "Atributos Especiais:" -#: ../../reference/datamodel.rst:473 +#: ../../reference/datamodel.rst:483 msgid "Attribute" msgstr "Atributo" -#: ../../reference/datamodel.rst:473 +#: ../../reference/datamodel.rst:483 msgid "Meaning" msgstr "Significado" -#: ../../reference/datamodel.rst:475 +#: ../../reference/datamodel.rst:485 msgid ":attr:`__doc__`" msgstr ":attr:`__doc__`" -#: ../../reference/datamodel.rst:475 +#: ../../reference/datamodel.rst:485 msgid "" "The function's documentation string, or ``None`` if unavailable; not " "inherited by subclasses." msgstr "" -#: ../../reference/datamodel.rst:475 ../../reference/datamodel.rst:480 -#: ../../reference/datamodel.rst:483 ../../reference/datamodel.rst:488 -#: ../../reference/datamodel.rst:492 ../../reference/datamodel.rst:498 -#: ../../reference/datamodel.rst:508 ../../reference/datamodel.rst:519 -#: ../../reference/datamodel.rst:526 +#: ../../reference/datamodel.rst:485 ../../reference/datamodel.rst:490 +#: ../../reference/datamodel.rst:493 ../../reference/datamodel.rst:498 +#: ../../reference/datamodel.rst:502 ../../reference/datamodel.rst:508 +#: ../../reference/datamodel.rst:518 ../../reference/datamodel.rst:529 +#: ../../reference/datamodel.rst:536 msgid "Writable" msgstr "Writable" -#: ../../reference/datamodel.rst:480 +#: ../../reference/datamodel.rst:490 msgid ":attr:`~definition.\\ __name__`" msgstr ":attr:`~definition.\\ __name__`" -#: ../../reference/datamodel.rst:480 +#: ../../reference/datamodel.rst:490 msgid "The function's name." msgstr "" -#: ../../reference/datamodel.rst:483 +#: ../../reference/datamodel.rst:493 msgid ":attr:`~definition.\\ __qualname__`" msgstr ":attr:`~definition.\\ __qualname__`" -#: ../../reference/datamodel.rst:483 +#: ../../reference/datamodel.rst:493 msgid "The function's :term:`qualified name`." msgstr "" -#: ../../reference/datamodel.rst:488 +#: ../../reference/datamodel.rst:498 msgid ":attr:`__module__`" msgstr ":attr:`__module__`" -#: ../../reference/datamodel.rst:488 +#: ../../reference/datamodel.rst:498 msgid "" "The name of the module the function was defined in, or ``None`` if " "unavailable." msgstr "" -#: ../../reference/datamodel.rst:492 +#: ../../reference/datamodel.rst:502 msgid ":attr:`__defaults__`" msgstr ":attr:`__defaults__`" -#: ../../reference/datamodel.rst:492 +#: ../../reference/datamodel.rst:502 msgid "" "A tuple containing default argument values for those arguments that have " "defaults, or ``None`` if no arguments have a default value." msgstr "" -#: ../../reference/datamodel.rst:498 +#: ../../reference/datamodel.rst:508 msgid ":attr:`__code__`" msgstr ":attr:`__code__`" -#: ../../reference/datamodel.rst:498 +#: ../../reference/datamodel.rst:508 msgid "The code object representing the compiled function body." msgstr "" -#: ../../reference/datamodel.rst:501 +#: ../../reference/datamodel.rst:511 msgid ":attr:`__globals__`" msgstr ":attr:`__globals__`" -#: ../../reference/datamodel.rst:501 +#: ../../reference/datamodel.rst:511 msgid "" -"A reference to the dictionary that holds the function's global variables ---" -" the global namespace of the module in which the function was defined." +"A reference to the dictionary that holds the function's global variables --- " +"the global namespace of the module in which the function was defined." msgstr "" -#: ../../reference/datamodel.rst:501 ../../reference/datamodel.rst:512 +#: ../../reference/datamodel.rst:511 ../../reference/datamodel.rst:522 msgid "Read-only" msgstr "Somente Leitura" -#: ../../reference/datamodel.rst:508 +#: ../../reference/datamodel.rst:518 msgid ":attr:`~object.__dict__`" msgstr ":attr:`~object.__dict__`" -#: ../../reference/datamodel.rst:508 +#: ../../reference/datamodel.rst:518 msgid "The namespace supporting arbitrary function attributes." msgstr "" -#: ../../reference/datamodel.rst:512 +#: ../../reference/datamodel.rst:522 msgid ":attr:`__closure__`" msgstr ":attr:`__closure__`" -#: ../../reference/datamodel.rst:512 +#: ../../reference/datamodel.rst:522 msgid "" "``None`` or a tuple of cells that contain bindings for the function's free " "variables. See below for information on the ``cell_contents`` attribute." msgstr "" -#: ../../reference/datamodel.rst:519 +#: ../../reference/datamodel.rst:529 msgid ":attr:`__annotations__`" msgstr ":attr:`__annotations__`" -#: ../../reference/datamodel.rst:519 +#: ../../reference/datamodel.rst:529 msgid "" "A dict containing annotations of parameters. The keys of the dict are the " "parameter names, and ``'return'`` for the return annotation, if provided." msgstr "" -#: ../../reference/datamodel.rst:526 +#: ../../reference/datamodel.rst:536 msgid ":attr:`__kwdefaults__`" msgstr ":attr:`__kwdefaults__`" -#: ../../reference/datamodel.rst:526 +#: ../../reference/datamodel.rst:536 msgid "A dict containing defaults for keyword-only parameters." msgstr "" -#: ../../reference/datamodel.rst:530 +#: ../../reference/datamodel.rst:540 msgid "" "Most of the attributes labelled \"Writable\" check the type of the assigned " "value." msgstr "" -#: ../../reference/datamodel.rst:532 +#: ../../reference/datamodel.rst:542 msgid "" "Function objects also support getting and setting arbitrary attributes, " "which can be used, for example, to attach metadata to functions. Regular " "attribute dot-notation is used to get and set such attributes. *Note that " -"the current implementation only supports function attributes on user-defined" -" functions. Function attributes on built-in functions may be supported in " -"the future.*" +"the current implementation only supports function attributes on user-defined " +"functions. Function attributes on built-in functions may be supported in the " +"future.*" msgstr "" -#: ../../reference/datamodel.rst:538 +#: ../../reference/datamodel.rst:548 msgid "" "A cell object has the attribute ``cell_contents``. This can be used to get " "the value of the cell, as well as set the value." msgstr "" -#: ../../reference/datamodel.rst:541 +#: ../../reference/datamodel.rst:551 msgid "" "Additional information about a function's definition can be retrieved from " "its code object; see the description of internal types below." msgstr "" -#: ../../reference/datamodel.rst:611 +#: ../../reference/datamodel.rst:621 msgid "Instance methods" msgstr "Instância de Métodos" -#: ../../reference/datamodel.rst:550 +#: ../../reference/datamodel.rst:560 msgid "" "An instance method object combines a class, a class instance and any " "callable object (normally a user-defined function)." msgstr "" -#: ../../reference/datamodel.rst:560 +#: ../../reference/datamodel.rst:570 msgid "" -"Special read-only attributes: :attr:`__self__` is the class instance object," -" :attr:`__func__` is the function object; :attr:`__doc__` is the method's " -"documentation (same as ``__func__.__doc__``); :attr:`~definition.__name__` " -"is the method name (same as ``__func__.__name__``); :attr:`__module__` is " -"the name of the module the method was defined in, or ``None`` if " -"unavailable." +"Special read-only attributes: :attr:`__self__` is the class instance " +"object, :attr:`__func__` is the function object; :attr:`__doc__` is the " +"method's documentation (same as ``__func__.__doc__``); :attr:`~definition." +"__name__` is the method name (same as ``__func__.__name__``); :attr:" +"`__module__` is the name of the module the method was defined in, or " +"``None`` if unavailable." msgstr "" -#: ../../reference/datamodel.rst:566 +#: ../../reference/datamodel.rst:576 msgid "" "Methods also support accessing (but not setting) the arbitrary function " "attributes on the underlying function object." msgstr "" -#: ../../reference/datamodel.rst:569 +#: ../../reference/datamodel.rst:579 msgid "" "User-defined method objects may be created when getting an attribute of a " "class (perhaps via an instance of that class), if that attribute is a user-" "defined function object or a class method object." msgstr "" -#: ../../reference/datamodel.rst:573 +#: ../../reference/datamodel.rst:583 msgid "" "When an instance method object is created by retrieving a user-defined " "function object from a class via one of its instances, its :attr:`__self__` " @@ -779,33 +791,32 @@ msgid "" "new method's :attr:`__func__` attribute is the original function object." msgstr "" -#: ../../reference/datamodel.rst:579 +#: ../../reference/datamodel.rst:589 msgid "" "When a user-defined method object is created by retrieving another method " -"object from a class or instance, the behaviour is the same as for a function" -" object, except that the :attr:`__func__` attribute of the new instance is " +"object from a class or instance, the behaviour is the same as for a function " +"object, except that the :attr:`__func__` attribute of the new instance is " "not the original method object but its :attr:`__func__` attribute." msgstr "" -#: ../../reference/datamodel.rst:585 +#: ../../reference/datamodel.rst:595 msgid "" "When an instance method object is created by retrieving a class method " -"object from a class or instance, its :attr:`__self__` attribute is the class" -" itself, and its :attr:`__func__` attribute is the function object " -"underlying the class method." +"object from a class or instance, its :attr:`__self__` attribute is the class " +"itself, and its :attr:`__func__` attribute is the function object underlying " +"the class method." msgstr "" -#: ../../reference/datamodel.rst:590 +#: ../../reference/datamodel.rst:600 msgid "" -"When an instance method object is called, the underlying function " -"(:attr:`__func__`) is called, inserting the class instance " -"(:attr:`__self__`) in front of the argument list. For instance, when " -":class:`C` is a class which contains a definition for a function :meth:`f`, " -"and ``x`` is an instance of :class:`C`, calling ``x.f(1)`` is equivalent to " -"calling ``C.f(x, 1)``." +"When an instance method object is called, the underlying function (:attr:" +"`__func__`) is called, inserting the class instance (:attr:`__self__`) in " +"front of the argument list. For instance, when :class:`C` is a class which " +"contains a definition for a function :meth:`f`, and ``x`` is an instance of :" +"class:`C`, calling ``x.f(1)`` is equivalent to calling ``C.f(x, 1)``." msgstr "" -#: ../../reference/datamodel.rst:597 +#: ../../reference/datamodel.rst:607 msgid "" "When an instance method object is derived from a class method object, the " "\"class instance\" stored in :attr:`__self__` will actually be the class " @@ -813,154 +824,154 @@ msgid "" "calling ``f(C,1)`` where ``f`` is the underlying function." msgstr "" -#: ../../reference/datamodel.rst:602 +#: ../../reference/datamodel.rst:612 msgid "" "Note that the transformation from function object to instance method object " "happens each time the attribute is retrieved from the instance. In some " "cases, a fruitful optimization is to assign the attribute to a local " "variable and call that local variable. Also notice that this transformation " -"only happens for user-defined functions; other callable objects (and all " -"non-callable objects) are retrieved without transformation. It is also " +"only happens for user-defined functions; other callable objects (and all non-" +"callable objects) are retrieved without transformation. It is also " "important to note that user-defined functions which are attributes of a " "class instance are not converted to bound methods; this *only* happens when " "the function is an attribute of the class." msgstr "" -#: ../../reference/datamodel.rst:626 +#: ../../reference/datamodel.rst:636 msgid "Generator functions" msgstr "Funções Geradoras" -#: ../../reference/datamodel.rst:618 +#: ../../reference/datamodel.rst:628 msgid "" -"A function or method which uses the :keyword:`yield` statement (see section " -":ref:`yield`) is called a :dfn:`generator function`. Such a function, when " +"A function or method which uses the :keyword:`yield` statement (see section :" +"ref:`yield`) is called a :dfn:`generator function`. Such a function, when " "called, always returns an iterator object which can be used to execute the " "body of the function: calling the iterator's :meth:`iterator.__next__` " "method will cause the function to execute until it provides a value using " -"the :keyword:`!yield` statement. When the function executes a " -":keyword:`return` statement or falls off the end, a :exc:`StopIteration` " -"exception is raised and the iterator will have reached the end of the set of" -" values to be returned." +"the :keyword:`!yield` statement. When the function executes a :keyword:" +"`return` statement or falls off the end, a :exc:`StopIteration` exception is " +"raised and the iterator will have reached the end of the set of values to be " +"returned." msgstr "" -#: ../../reference/datamodel.rst:636 +#: ../../reference/datamodel.rst:646 msgid "Coroutine functions" msgstr "Coroutine functions" -#: ../../reference/datamodel.rst:632 +#: ../../reference/datamodel.rst:642 msgid "" -"A function or method which is defined using :keyword:`async def` is called a" -" :dfn:`coroutine function`. Such a function, when called, returns a " -":term:`coroutine` object. It may contain :keyword:`await` expressions, as " -"well as :keyword:`async with` and :keyword:`async for` statements. See also " -"the :ref:`coroutine-objects` section." +"A function or method which is defined using :keyword:`async def` is called " +"a :dfn:`coroutine function`. Such a function, when called, returns a :term:" +"`coroutine` object. It may contain :keyword:`await` expressions, as well " +"as :keyword:`async with` and :keyword:`async for` statements. See also the :" +"ref:`coroutine-objects` section." msgstr "" -#: ../../reference/datamodel.rst:655 +#: ../../reference/datamodel.rst:665 msgid "Asynchronous generator functions" msgstr "" -#: ../../reference/datamodel.rst:643 +#: ../../reference/datamodel.rst:653 msgid "" "A function or method which is defined using :keyword:`async def` and which " -"uses the :keyword:`yield` statement is called a :dfn:`asynchronous generator" -" function`. Such a function, when called, returns an asynchronous iterator " -"object which can be used in an :keyword:`async for` statement to execute the" -" body of the function." +"uses the :keyword:`yield` statement is called a :dfn:`asynchronous generator " +"function`. Such a function, when called, returns an asynchronous iterator " +"object which can be used in an :keyword:`async for` statement to execute the " +"body of the function." msgstr "" -#: ../../reference/datamodel.rst:649 +#: ../../reference/datamodel.rst:659 msgid "" "Calling the asynchronous iterator's :meth:`aiterator.__anext__` method will " "return an :term:`awaitable` which when awaited will execute until it " "provides a value using the :keyword:`yield` expression. When the function " -"executes an empty :keyword:`return` statement or falls off the end, a " -":exc:`StopAsyncIteration` exception is raised and the asynchronous iterator " -"will have reached the end of the set of values to be yielded." +"executes an empty :keyword:`return` statement or falls off the end, a :exc:" +"`StopAsyncIteration` exception is raised and the asynchronous iterator will " +"have reached the end of the set of values to be yielded." msgstr "" -#: ../../reference/datamodel.rst:670 +#: ../../reference/datamodel.rst:680 msgid "Built-in functions" msgstr "Funções Built-in" -#: ../../reference/datamodel.rst:663 +#: ../../reference/datamodel.rst:673 msgid "" "A built-in function object is a wrapper around a C function. Examples of " "built-in functions are :func:`len` and :func:`math.sin` (:mod:`math` is a " "standard built-in module). The number and type of the arguments are " "determined by the C function. Special read-only attributes: :attr:`__doc__` " -"is the function's documentation string, or ``None`` if unavailable; " -":attr:`~definition.__name__` is the function's name; :attr:`__self__` is set" -" to ``None`` (but see the next item); :attr:`__module__` is the name of the " +"is the function's documentation string, or ``None`` if unavailable; :attr:" +"`~definition.__name__` is the function's name; :attr:`__self__` is set to " +"``None`` (but see the next item); :attr:`__module__` is the name of the " "module the function was defined in or ``None`` if unavailable." msgstr "" -#: ../../reference/datamodel.rst:682 +#: ../../reference/datamodel.rst:692 msgid "Built-in methods" msgstr "Métodos Built-in" -#: ../../reference/datamodel.rst:678 +#: ../../reference/datamodel.rst:688 msgid "" "This is really a different disguise of a built-in function, this time " -"containing an object passed to the C function as an implicit extra argument." -" An example of a built-in method is ``alist.append()``, assuming *alist* is" -" a list object. In this case, the special read-only attribute " -":attr:`__self__` is set to the object denoted by *alist*." +"containing an object passed to the C function as an implicit extra " +"argument. An example of a built-in method is ``alist.append()``, assuming " +"*alist* is a list object. In this case, the special read-only attribute :" +"attr:`__self__` is set to the object denoted by *alist*." msgstr "" -#: ../../reference/datamodel.rst:689 +#: ../../reference/datamodel.rst:699 msgid "Classes" msgstr "Classes" -#: ../../reference/datamodel.rst:685 +#: ../../reference/datamodel.rst:695 msgid "" "Classes are callable. These objects normally act as factories for new " "instances of themselves, but variations are possible for class types that " -"override :meth:`__new__`. The arguments of the call are passed to " -":meth:`__new__` and, in the typical case, to :meth:`__init__` to initialize " -"the new instance." +"override :meth:`__new__`. The arguments of the call are passed to :meth:" +"`__new__` and, in the typical case, to :meth:`__init__` to initialize the " +"new instance." msgstr "" -#: ../../reference/datamodel.rst:694 +#: ../../reference/datamodel.rst:704 msgid "Class Instances" msgstr "Instância de Classe" -#: ../../reference/datamodel.rst:692 +#: ../../reference/datamodel.rst:702 msgid "" -"Instances of arbitrary classes can be made callable by defining a " -":meth:`__call__` method in their class." +"Instances of arbitrary classes can be made callable by defining a :meth:" +"`__call__` method in their class." msgstr "" -#: ../../reference/datamodel.rst:744 +#: ../../reference/datamodel.rst:754 msgid "Modules" msgstr "Módulos" -#: ../../reference/datamodel.rst:701 +#: ../../reference/datamodel.rst:711 msgid "" "Modules are a basic organizational unit of Python code, and are created by " -"the :ref:`import system ` as invoked either by the " -":keyword:`import` statement, or by calling functions such as " -":func:`importlib.import_module` and built-in :func:`__import__`. A module " -"object has a namespace implemented by a dictionary object (this is the " -"dictionary referenced by the ``__globals__`` attribute of functions defined " -"in the module). Attribute references are translated to lookups in this " -"dictionary, e.g., ``m.x`` is equivalent to ``m.__dict__[\"x\"]``. A module " -"object does not contain the code object used to initialize the module (since" -" it isn't needed once the initialization is done)." +"the :ref:`import system ` as invoked either by the :keyword:" +"`import` statement, or by calling functions such as :func:`importlib." +"import_module` and built-in :func:`__import__`. A module object has a " +"namespace implemented by a dictionary object (this is the dictionary " +"referenced by the ``__globals__`` attribute of functions defined in the " +"module). Attribute references are translated to lookups in this dictionary, " +"e.g., ``m.x`` is equivalent to ``m.__dict__[\"x\"]``. A module object does " +"not contain the code object used to initialize the module (since it isn't " +"needed once the initialization is done)." msgstr "" -#: ../../reference/datamodel.rst:713 +#: ../../reference/datamodel.rst:723 msgid "" "Attribute assignment updates the module's namespace dictionary, e.g., ``m.x " "= 1`` is equivalent to ``m.__dict__[\"x\"] = 1``." msgstr "" -#: ../../reference/datamodel.rst:723 +#: ../../reference/datamodel.rst:733 msgid "" -"Predefined (writable) attributes: :attr:`__name__` is the module's name; " -":attr:`__doc__` is the module's documentation string, or ``None`` if " -"unavailable; :attr:`__annotations__` (optional) is a dictionary containing " -":term:`variable annotations ` collected during module " +"Predefined (writable) attributes: :attr:`__name__` is the module's name; :" +"attr:`__doc__` is the module's documentation string, or ``None`` if " +"unavailable; :attr:`__annotations__` (optional) is a dictionary containing :" +"term:`variable annotations ` collected during module " "body execution; :attr:`__file__` is the pathname of the file from which the " "module was loaded, if it was loaded from a file. The :attr:`__file__` " "attribute may be missing for certain types of modules, such as C modules " @@ -969,81 +980,80 @@ msgid "" "library file." msgstr "" -#: ../../reference/datamodel.rst:736 +#: ../../reference/datamodel.rst:746 msgid "" "Special read-only attribute: :attr:`~object.__dict__` is the module's " "namespace as a dictionary object." msgstr "" -#: ../../reference/datamodel.rst:741 +#: ../../reference/datamodel.rst:751 msgid "" -"Because of the way CPython clears module dictionaries, the module dictionary" -" will be cleared when the module falls out of scope even if the dictionary " +"Because of the way CPython clears module dictionaries, the module dictionary " +"will be cleared when the module falls out of scope even if the dictionary " "still has live references. To avoid this, copy the dictionary or keep the " "module around while using its dictionary directly." msgstr "" -#: ../../reference/datamodel.rst:803 +#: ../../reference/datamodel.rst:813 msgid "Custom classes" msgstr "Classes Personalizadas" -#: ../../reference/datamodel.rst:747 +#: ../../reference/datamodel.rst:757 msgid "" -"Custom class types are typically created by class definitions (see section " -":ref:`class`). A class has a namespace implemented by a dictionary object. " -"Class attribute references are translated to lookups in this dictionary, " -"e.g., ``C.x`` is translated to ``C.__dict__[\"x\"]`` (although there are a " +"Custom class types are typically created by class definitions (see section :" +"ref:`class`). A class has a namespace implemented by a dictionary object. " +"Class attribute references are translated to lookups in this dictionary, e." +"g., ``C.x`` is translated to ``C.__dict__[\"x\"]`` (although there are a " "number of hooks which allow for other means of locating attributes). When " -"the attribute name is not found there, the attribute search continues in the" -" base classes. This search of the base classes uses the C3 method resolution" -" order which behaves correctly even in the presence of 'diamond' inheritance" -" structures where there are multiple inheritance paths leading back to a " +"the attribute name is not found there, the attribute search continues in the " +"base classes. This search of the base classes uses the C3 method resolution " +"order which behaves correctly even in the presence of 'diamond' inheritance " +"structures where there are multiple inheritance paths leading back to a " "common ancestor. Additional details on the C3 MRO used by Python can be " -"found in the documentation accompanying the 2.3 release at " -"https://www.python.org/download/releases/2.3/mro/." +"found in the documentation accompanying the 2.3 release at https://www." +"python.org/download/releases/2.3/mro/." msgstr "" -#: ../../reference/datamodel.rst:771 +#: ../../reference/datamodel.rst:781 msgid "" "When a class attribute reference (for class :class:`C`, say) would yield a " -"class method object, it is transformed into an instance method object whose " -":attr:`__self__` attribute is :class:`C`. When it would yield a static " +"class method object, it is transformed into an instance method object whose :" +"attr:`__self__` attribute is :class:`C`. When it would yield a static " "method object, it is transformed into the object wrapped by the static " "method object. See section :ref:`descriptors` for another way in which " "attributes retrieved from a class may differ from those actually contained " "in its :attr:`~object.__dict__`." msgstr "" -#: ../../reference/datamodel.rst:781 +#: ../../reference/datamodel.rst:791 msgid "" "Class attribute assignments update the class's dictionary, never the " "dictionary of a base class." msgstr "" -#: ../../reference/datamodel.rst:786 +#: ../../reference/datamodel.rst:796 msgid "" "A class object can be called (see above) to yield a class instance (see " "below)." msgstr "" -#: ../../reference/datamodel.rst:796 +#: ../../reference/datamodel.rst:806 msgid "" -"Special attributes: :attr:`~definition.__name__` is the class name; " -":attr:`__module__` is the module name in which the class was defined; " -":attr:`~object.__dict__` is the dictionary containing the class's namespace;" -" :attr:`~class.__bases__` is a tuple containing the base classes, in the " -"order of their occurrence in the base class list; :attr:`__doc__` is the " -"class's documentation string, or ``None`` if undefined; " -":attr:`__annotations__` (optional) is a dictionary containing " -":term:`variable annotations ` collected during class " -"body execution." +"Special attributes: :attr:`~definition.__name__` is the class name; :attr:" +"`__module__` is the module name in which the class was defined; :attr:" +"`~object.__dict__` is the dictionary containing the class's namespace; :attr:" +"`~class.__bases__` is a tuple containing the base classes, in the order of " +"their occurrence in the base class list; :attr:`__doc__` is the class's " +"documentation string, or ``None`` if undefined; :attr:`__annotations__` " +"(optional) is a dictionary containing :term:`variable annotations ` collected during class body execution." msgstr "" -#: ../../reference/datamodel.rst:846 +#: ../../reference/datamodel.rst:856 msgid "Class instances" msgstr "Instância de Classe" -#: ../../reference/datamodel.rst:812 +#: ../../reference/datamodel.rst:822 msgid "" "A class instance is created by calling a class object (see above). A class " "instance has a namespace implemented as a dictionary which is the first " @@ -1060,174 +1070,173 @@ msgid "" "method, that is called to satisfy the lookup." msgstr "" -#: ../../reference/datamodel.rst:828 +#: ../../reference/datamodel.rst:838 msgid "" "Attribute assignments and deletions update the instance's dictionary, never " -"a class's dictionary. If the class has a :meth:`__setattr__` or " -":meth:`__delattr__` method, this is called instead of updating the instance " +"a class's dictionary. If the class has a :meth:`__setattr__` or :meth:" +"`__delattr__` method, this is called instead of updating the instance " "dictionary directly." msgstr "" -#: ../../reference/datamodel.rst:838 +#: ../../reference/datamodel.rst:848 msgid "" "Class instances can pretend to be numbers, sequences, or mappings if they " "have methods with certain special names. See section :ref:`specialnames`." msgstr "" -#: ../../reference/datamodel.rst:845 +#: ../../reference/datamodel.rst:855 msgid "" -"Special attributes: :attr:`~object.__dict__` is the attribute dictionary; " -":attr:`~instance.__class__` is the instance's class." +"Special attributes: :attr:`~object.__dict__` is the attribute dictionary; :" +"attr:`~instance.__class__` is the instance's class." msgstr "" -#: ../../reference/datamodel.rst:872 +#: ../../reference/datamodel.rst:882 msgid "I/O objects (also known as file objects)" msgstr "" -#: ../../reference/datamodel.rst:862 +#: ../../reference/datamodel.rst:872 msgid "" "A :term:`file object` represents an open file. Various shortcuts are " "available to create file objects: the :func:`open` built-in function, and " -"also :func:`os.popen`, :func:`os.fdopen`, and the " -":meth:`~socket.socket.makefile` method of socket objects (and perhaps by " -"other functions or methods provided by extension modules)." +"also :func:`os.popen`, :func:`os.fdopen`, and the :meth:`~socket.socket." +"makefile` method of socket objects (and perhaps by other functions or " +"methods provided by extension modules)." msgstr "" -#: ../../reference/datamodel.rst:868 +#: ../../reference/datamodel.rst:878 msgid "" -"The objects ``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are initialized" -" to file objects corresponding to the interpreter's standard input, output " +"The objects ``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are initialized " +"to file objects corresponding to the interpreter's standard input, output " "and error streams; they are all open in text mode and therefore follow the " "interface defined by the :class:`io.TextIOBase` abstract class." msgstr "" -#: ../../reference/datamodel.rst:1110 +#: ../../reference/datamodel.rst:1120 msgid "Internal types" msgstr "Tipos Internos" -#: ../../reference/datamodel.rst:879 +#: ../../reference/datamodel.rst:889 msgid "" "A few types used internally by the interpreter are exposed to the user. " "Their definitions may change with future versions of the interpreter, but " "they are mentioned here for completeness." msgstr "" -#: ../../reference/datamodel.rst:947 +#: ../../reference/datamodel.rst:957 msgid "Code objects" msgstr "Objeto Código" -#: ../../reference/datamodel.rst:886 -msgid "" -"Code objects represent *byte-compiled* executable Python code, or " -":term:`bytecode`. The difference between a code object and a function object" -" is that the function object contains an explicit reference to the " -"function's globals (the module in which it was defined), while a code object" -" contains no context; also the default argument values are stored in the " -"function object, not in the code object (because they represent values " -"calculated at run-time). Unlike function objects, code objects are " -"immutable and contain no references (directly or indirectly) to mutable " -"objects." -msgstr "" - -#: ../../reference/datamodel.rst:911 -msgid "" -"Special read-only attributes: :attr:`co_name` gives the function name; " -":attr:`co_argcount` is the number of positional arguments (including " -"arguments with default values); :attr:`co_nlocals` is the number of local " -"variables used by the function (including arguments); :attr:`co_varnames` is" -" a tuple containing the names of the local variables (starting with the " -"argument names); :attr:`co_cellvars` is a tuple containing the names of " -"local variables that are referenced by nested functions; :attr:`co_freevars`" -" is a tuple containing the names of free variables; :attr:`co_code` is a " -"string representing the sequence of bytecode instructions; :attr:`co_consts`" -" is a tuple containing the literals used by the bytecode; :attr:`co_names` " -"is a tuple containing the names used by the bytecode; :attr:`co_filename` is" -" the filename from which the code was compiled; :attr:`co_firstlineno` is " -"the first line number of the function; :attr:`co_lnotab` is a string " -"encoding the mapping from bytecode offsets to line numbers (for details see " -"the source code of the interpreter); :attr:`co_stacksize` is the required " -"stack size (including local variables); :attr:`co_flags` is an integer " -"encoding a number of flags for the interpreter." -msgstr "" - -#: ../../reference/datamodel.rst:930 +#: ../../reference/datamodel.rst:896 +msgid "" +"Code objects represent *byte-compiled* executable Python code, or :term:" +"`bytecode`. The difference between a code object and a function object is " +"that the function object contains an explicit reference to the function's " +"globals (the module in which it was defined), while a code object contains " +"no context; also the default argument values are stored in the function " +"object, not in the code object (because they represent values calculated at " +"run-time). Unlike function objects, code objects are immutable and contain " +"no references (directly or indirectly) to mutable objects." +msgstr "" + +#: ../../reference/datamodel.rst:921 +msgid "" +"Special read-only attributes: :attr:`co_name` gives the function name; :attr:" +"`co_argcount` is the number of positional arguments (including arguments " +"with default values); :attr:`co_nlocals` is the number of local variables " +"used by the function (including arguments); :attr:`co_varnames` is a tuple " +"containing the names of the local variables (starting with the argument " +"names); :attr:`co_cellvars` is a tuple containing the names of local " +"variables that are referenced by nested functions; :attr:`co_freevars` is a " +"tuple containing the names of free variables; :attr:`co_code` is a string " +"representing the sequence of bytecode instructions; :attr:`co_consts` is a " +"tuple containing the literals used by the bytecode; :attr:`co_names` is a " +"tuple containing the names used by the bytecode; :attr:`co_filename` is the " +"filename from which the code was compiled; :attr:`co_firstlineno` is the " +"first line number of the function; :attr:`co_lnotab` is a string encoding " +"the mapping from bytecode offsets to line numbers (for details see the " +"source code of the interpreter); :attr:`co_stacksize` is the required stack " +"size; :attr:`co_flags` is an integer encoding a number of flags for the " +"interpreter." +msgstr "" + +#: ../../reference/datamodel.rst:940 msgid "" "The following flag bits are defined for :attr:`co_flags`: bit ``0x04`` is " "set if the function uses the ``*arguments`` syntax to accept an arbitrary " -"number of positional arguments; bit ``0x08`` is set if the function uses the" -" ``**keywords`` syntax to accept arbitrary keyword arguments; bit ``0x20`` " -"is set if the function is a generator." +"number of positional arguments; bit ``0x08`` is set if the function uses the " +"``**keywords`` syntax to accept arbitrary keyword arguments; bit ``0x20`` is " +"set if the function is a generator." msgstr "" -#: ../../reference/datamodel.rst:936 +#: ../../reference/datamodel.rst:946 msgid "" "Future feature declarations (``from __future__ import division``) also use " -"bits in :attr:`co_flags` to indicate whether a code object was compiled with" -" a particular feature enabled: bit ``0x2000`` is set if the function was " +"bits in :attr:`co_flags` to indicate whether a code object was compiled with " +"a particular feature enabled: bit ``0x2000`` is set if the function was " "compiled with future division enabled; bits ``0x10`` and ``0x1000`` were " "used in earlier versions of Python." msgstr "" -#: ../../reference/datamodel.rst:942 +#: ../../reference/datamodel.rst:952 msgid "Other bits in :attr:`co_flags` are reserved for internal use." msgstr "" -#: ../../reference/datamodel.rst:946 +#: ../../reference/datamodel.rst:956 msgid "" "If a code object represents a function, the first item in :attr:`co_consts` " "is the documentation string of the function, or ``None`` if undefined." msgstr "" -#: ../../reference/datamodel.rst:1006 +#: ../../reference/datamodel.rst:1016 msgid "Frame objects" msgstr "" -#: ../../reference/datamodel.rst:954 +#: ../../reference/datamodel.rst:964 msgid "" "Frame objects represent execution frames. They may occur in traceback " "objects (see below), and are also passed to registered trace functions." msgstr "" -#: ../../reference/datamodel.rst:965 +#: ../../reference/datamodel.rst:975 msgid "" "Special read-only attributes: :attr:`f_back` is to the previous stack frame " -"(towards the caller), or ``None`` if this is the bottom stack frame; " -":attr:`f_code` is the code object being executed in this frame; " -":attr:`f_locals` is the dictionary used to look up local variables; " -":attr:`f_globals` is used for global variables; :attr:`f_builtins` is used " -"for built-in (intrinsic) names; :attr:`f_lasti` gives the precise " -"instruction (this is an index into the bytecode string of the code object)." +"(towards the caller), or ``None`` if this is the bottom stack frame; :attr:" +"`f_code` is the code object being executed in this frame; :attr:`f_locals` " +"is the dictionary used to look up local variables; :attr:`f_globals` is used " +"for global variables; :attr:`f_builtins` is used for built-in (intrinsic) " +"names; :attr:`f_lasti` gives the precise instruction (this is an index into " +"the bytecode string of the code object)." msgstr "" -#: ../../reference/datamodel.rst:979 +#: ../../reference/datamodel.rst:989 msgid "" -"Special writable attributes: :attr:`f_trace`, if not ``None``, is a function" -" called for various events during code execution (this is used by the " +"Special writable attributes: :attr:`f_trace`, if not ``None``, is a function " +"called for various events during code execution (this is used by the " "debugger). Normally an event is triggered for each new source line - this " "can be disabled by setting :attr:`f_trace_lines` to :const:`False`." msgstr "" -#: ../../reference/datamodel.rst:984 +#: ../../reference/datamodel.rst:994 msgid "" -"Implementations *may* allow per-opcode events to be requested by setting " -":attr:`f_trace_opcodes` to :const:`True`. Note that this may lead to " +"Implementations *may* allow per-opcode events to be requested by setting :" +"attr:`f_trace_opcodes` to :const:`True`. Note that this may lead to " "undefined interpreter behaviour if exceptions raised by the trace function " "escape to the function being traced." msgstr "" -#: ../../reference/datamodel.rst:989 +#: ../../reference/datamodel.rst:999 msgid "" -":attr:`f_lineno` is the current line number of the frame --- writing to this" -" from within a trace function jumps to the given line (only for the bottom-" +":attr:`f_lineno` is the current line number of the frame --- writing to this " +"from within a trace function jumps to the given line (only for the bottom-" "most frame). A debugger can implement a Jump command (aka Set Next " "Statement) by writing to f_lineno." msgstr "" -#: ../../reference/datamodel.rst:994 +#: ../../reference/datamodel.rst:1004 msgid "Frame objects support one method:" msgstr "" -#: ../../reference/datamodel.rst:998 +#: ../../reference/datamodel.rst:1008 msgid "" "This method clears all references to local variables held by the frame. " "Also, if the frame belonged to a generator, the generator is finalized. " @@ -1235,92 +1244,90 @@ msgid "" "catching an exception and storing its traceback for later use)." msgstr "" -#: ../../reference/datamodel.rst:1004 +#: ../../reference/datamodel.rst:1014 msgid ":exc:`RuntimeError` is raised if the frame is currently executing." msgstr "" -#: ../../reference/datamodel.rst:1066 +#: ../../reference/datamodel.rst:1076 msgid "Traceback objects" msgstr "" -#: ../../reference/datamodel.rst:1021 +#: ../../reference/datamodel.rst:1031 msgid "" "Traceback objects represent a stack trace of an exception. A traceback " "object is implicitly created when an exception occurs, and may also be " "explicitly created by calling :class:`types.TracebackType`." msgstr "" -#: ../../reference/datamodel.rst:1025 +#: ../../reference/datamodel.rst:1035 msgid "" "For implicitly created tracebacks, when the search for an exception handler " "unwinds the execution stack, at each unwound level a traceback object is " "inserted in front of the current traceback. When an exception handler is " -"entered, the stack trace is made available to the program. (See section " -":ref:`try`.) It is accessible as the third item of the tuple returned by " -"``sys.exc_info()``, and as the ``__traceback__`` attribute of the caught " -"exception." +"entered, the stack trace is made available to the program. (See section :ref:" +"`try`.) It is accessible as the third item of the tuple returned by ``sys." +"exc_info()``, and as the ``__traceback__`` attribute of the caught exception." msgstr "" -#: ../../reference/datamodel.rst:1033 +#: ../../reference/datamodel.rst:1043 msgid "" "When the program contains no suitable handler, the stack trace is written " "(nicely formatted) to the standard error stream; if the interpreter is " -"interactive, it is also made available to the user as " -"``sys.last_traceback``." +"interactive, it is also made available to the user as ``sys.last_traceback``." msgstr "" -#: ../../reference/datamodel.rst:1038 +#: ../../reference/datamodel.rst:1048 msgid "" "For explicitly created tracebacks, it is up to the creator of the traceback " "to determine how the ``tb_next`` attributes should be linked to form a full " "stack trace." msgstr "" -#: ../../reference/datamodel.rst:1048 +#: ../../reference/datamodel.rst:1058 msgid "" -"Special read-only attributes: :attr:`tb_frame` points to the execution frame" -" of the current level; :attr:`tb_lineno` gives the line number where the " +"Special read-only attributes: :attr:`tb_frame` points to the execution frame " +"of the current level; :attr:`tb_lineno` gives the line number where the " "exception occurred; :attr:`tb_lasti` indicates the precise instruction. The " "line number and last instruction in the traceback may differ from the line " "number of its frame object if the exception occurred in a :keyword:`try` " "statement with no matching except clause or with a finally clause." msgstr "" -#: ../../reference/datamodel.rst:1060 +#: ../../reference/datamodel.rst:1070 msgid "" "Special writable attribute: :attr:`tb_next` is the next level in the stack " -"trace (towards the frame where the exception occurred), or ``None`` if there" -" is no next level." +"trace (towards the frame where the exception occurred), or ``None`` if there " +"is no next level." msgstr "" -#: ../../reference/datamodel.rst:1064 +#: ../../reference/datamodel.rst:1074 msgid "" "Traceback objects can now be explicitly instantiated from Python code, and " "the ``tb_next`` attribute of existing instances can be updated." msgstr "" -#: ../../reference/datamodel.rst:1092 +#: ../../reference/datamodel.rst:1102 msgid "Slice objects" msgstr "" -#: ../../reference/datamodel.rst:1071 +#: ../../reference/datamodel.rst:1081 msgid "" -"Slice objects are used to represent slices for :meth:`__getitem__` methods." -" They are also created by the built-in :func:`slice` function." +"Slice objects are used to represent slices for :meth:`__getitem__` methods. " +"They are also created by the built-in :func:`slice` function." msgstr "" -#: ../../reference/datamodel.rst:1079 +#: ../../reference/datamodel.rst:1089 msgid "" -"Special read-only attributes: :attr:`~slice.start` is the lower bound; " -":attr:`~slice.stop` is the upper bound; :attr:`~slice.step` is the step " -"value; each is ``None`` if omitted. These attributes can have any type." +"Special read-only attributes: :attr:`~slice.start` is the lower bound; :attr:" +"`~slice.stop` is the upper bound; :attr:`~slice.step` is the step value; " +"each is ``None`` if omitted. These attributes can have any type." msgstr "" -#: ../../reference/datamodel.rst:1083 +#: ../../reference/datamodel.rst:1093 msgid "Slice objects support one method:" msgstr "" -#: ../../reference/datamodel.rst:1087 +#: ../../reference/datamodel.rst:1097 msgid "" "This method takes a single integer argument *length* and computes " "information about the slice that the slice object would describe if applied " @@ -1330,11 +1337,11 @@ msgid "" "a manner consistent with regular slices." msgstr "" -#: ../../reference/datamodel.rst:1102 +#: ../../reference/datamodel.rst:1112 msgid "Static method objects" msgstr "" -#: ../../reference/datamodel.rst:1095 +#: ../../reference/datamodel.rst:1105 msgid "" "Static method objects provide a way of defeating the transformation of " "function objects to method objects described above. A static method object " @@ -1346,71 +1353,71 @@ msgid "" "are created by the built-in :func:`staticmethod` constructor." msgstr "" -#: ../../reference/datamodel.rst:1110 +#: ../../reference/datamodel.rst:1120 msgid "Class method objects" msgstr "" -#: ../../reference/datamodel.rst:1105 +#: ../../reference/datamodel.rst:1115 msgid "" "A class method object, like a static method object, is a wrapper around " "another object that alters the way in which that object is retrieved from " -"classes and class instances. The behaviour of class method objects upon such" -" retrieval is described above, under \"User-defined methods\". Class method " +"classes and class instances. The behaviour of class method objects upon such " +"retrieval is described above, under \"User-defined methods\". Class method " "objects are created by the built-in :func:`classmethod` constructor." msgstr "" -#: ../../reference/datamodel.rst:1115 +#: ../../reference/datamodel.rst:1125 msgid "Special method names" msgstr "" -#: ../../reference/datamodel.rst:1121 +#: ../../reference/datamodel.rst:1131 msgid "" "A class can implement certain operations that are invoked by special syntax " "(such as arithmetic operations or subscripting and slicing) by defining " "methods with special names. This is Python's approach to :dfn:`operator " "overloading`, allowing classes to define their own behavior with respect to " -"language operators. For instance, if a class defines a method named " -":meth:`__getitem__`, and ``x`` is an instance of this class, then ``x[i]`` " -"is roughly equivalent to ``type(x).__getitem__(x, i)``. Except where " +"language operators. For instance, if a class defines a method named :meth:" +"`__getitem__`, and ``x`` is an instance of this class, then ``x[i]`` is " +"roughly equivalent to ``type(x).__getitem__(x, i)``. Except where " "mentioned, attempts to execute an operation raise an exception when no " -"appropriate method is defined (typically :exc:`AttributeError` or " -":exc:`TypeError`)." +"appropriate method is defined (typically :exc:`AttributeError` or :exc:" +"`TypeError`)." msgstr "" -#: ../../reference/datamodel.rst:1131 +#: ../../reference/datamodel.rst:1141 msgid "" "Setting a special method to ``None`` indicates that the corresponding " "operation is not available. For example, if a class sets :meth:`__iter__` " "to ``None``, the class is not iterable, so calling :func:`iter` on its " -"instances will raise a :exc:`TypeError` (without falling back to " -":meth:`__getitem__`). [#]_" +"instances will raise a :exc:`TypeError` (without falling back to :meth:" +"`__getitem__`). [#]_" msgstr "" -#: ../../reference/datamodel.rst:1137 +#: ../../reference/datamodel.rst:1147 msgid "" "When implementing a class that emulates any built-in type, it is important " -"that the emulation only be implemented to the degree that it makes sense for" -" the object being modelled. For example, some sequences may work well with " -"retrieval of individual elements, but extracting a slice may not make sense." -" (One example of this is the :class:`~xml.dom.NodeList` interface in the " -"W3C's Document Object Model.)" +"that the emulation only be implemented to the degree that it makes sense for " +"the object being modelled. For example, some sequences may work well with " +"retrieval of individual elements, but extracting a slice may not make " +"sense. (One example of this is the :class:`~xml.dom.NodeList` interface in " +"the W3C's Document Object Model.)" msgstr "" -#: ../../reference/datamodel.rst:1148 +#: ../../reference/datamodel.rst:1158 msgid "Basic customization" msgstr "" -#: ../../reference/datamodel.rst:1154 +#: ../../reference/datamodel.rst:1164 msgid "" -"Called to create a new instance of class *cls*. :meth:`__new__` is a static" -" method (special-cased so you need not declare it as such) that takes the " +"Called to create a new instance of class *cls*. :meth:`__new__` is a static " +"method (special-cased so you need not declare it as such) that takes the " "class of which an instance was requested as its first argument. The " "remaining arguments are those passed to the object constructor expression " "(the call to the class). The return value of :meth:`__new__` should be the " "new object instance (usually an instance of *cls*)." msgstr "" -#: ../../reference/datamodel.rst:1161 +#: ../../reference/datamodel.rst:1171 msgid "" "Typical implementations create a new instance of the class by invoking the " "superclass's :meth:`__new__` method using ``super().__new__(cls[, ...])`` " @@ -1418,21 +1425,21 @@ msgid "" "necessary before returning it." msgstr "" -#: ../../reference/datamodel.rst:1166 +#: ../../reference/datamodel.rst:1176 msgid "" -"If :meth:`__new__` returns an instance of *cls*, then the new instance's " -":meth:`__init__` method will be invoked like ``__init__(self[, ...])``, " -"where *self* is the new instance and the remaining arguments are the same as" -" were passed to :meth:`__new__`." +"If :meth:`__new__` returns an instance of *cls*, then the new instance's :" +"meth:`__init__` method will be invoked like ``__init__(self[, ...])``, where " +"*self* is the new instance and the remaining arguments are the same as were " +"passed to :meth:`__new__`." msgstr "" -#: ../../reference/datamodel.rst:1171 +#: ../../reference/datamodel.rst:1181 msgid "" "If :meth:`__new__` does not return an instance of *cls*, then the new " "instance's :meth:`__init__` method will not be invoked." msgstr "" -#: ../../reference/datamodel.rst:1174 +#: ../../reference/datamodel.rst:1184 msgid "" ":meth:`__new__` is intended mainly to allow subclasses of immutable types " "(like int, str, or tuple) to customize instance creation. It is also " @@ -1440,17 +1447,17 @@ msgid "" "creation." msgstr "" -#: ../../reference/datamodel.rst:1183 +#: ../../reference/datamodel.rst:1193 msgid "" "Called after the instance has been created (by :meth:`__new__`), but before " "it is returned to the caller. The arguments are those passed to the class " -"constructor expression. If a base class has an :meth:`__init__` method, the" -" derived class's :meth:`__init__` method, if any, must explicitly call it to" -" ensure proper initialization of the base class part of the instance; for " +"constructor expression. If a base class has an :meth:`__init__` method, the " +"derived class's :meth:`__init__` method, if any, must explicitly call it to " +"ensure proper initialization of the base class part of the instance; for " "example: ``super().__init__([args...])``." msgstr "" -#: ../../reference/datamodel.rst:1190 +#: ../../reference/datamodel.rst:1200 msgid "" "Because :meth:`__new__` and :meth:`__init__` work together in constructing " "objects (:meth:`__new__` to create it, and :meth:`__init__` to customize " @@ -1458,266 +1465,265 @@ msgid "" "will cause a :exc:`TypeError` to be raised at runtime." msgstr "" -#: ../../reference/datamodel.rst:1203 +#: ../../reference/datamodel.rst:1213 msgid "" "Called when the instance is about to be destroyed. This is also called a " -"finalizer or (improperly) a destructor. If a base class has a " -":meth:`__del__` method, the derived class's :meth:`__del__` method, if any, " -"must explicitly call it to ensure proper deletion of the base class part of " -"the instance." +"finalizer or (improperly) a destructor. If a base class has a :meth:" +"`__del__` method, the derived class's :meth:`__del__` method, if any, must " +"explicitly call it to ensure proper deletion of the base class part of the " +"instance." msgstr "" -#: ../../reference/datamodel.rst:1209 +#: ../../reference/datamodel.rst:1219 msgid "" "It is possible (though not recommended!) for the :meth:`__del__` method to " "postpone destruction of the instance by creating a new reference to it. " "This is called object *resurrection*. It is implementation-dependent " -"whether :meth:`__del__` is called a second time when a resurrected object is" -" about to be destroyed; the current :term:`CPython` implementation only " -"calls it once." +"whether :meth:`__del__` is called a second time when a resurrected object is " +"about to be destroyed; the current :term:`CPython` implementation only calls " +"it once." msgstr "" -#: ../../reference/datamodel.rst:1216 +#: ../../reference/datamodel.rst:1226 msgid "" "It is not guaranteed that :meth:`__del__` methods are called for objects " "that still exist when the interpreter exits." msgstr "" -#: ../../reference/datamodel.rst:1221 +#: ../../reference/datamodel.rst:1231 msgid "" "``del x`` doesn't directly call ``x.__del__()`` --- the former decrements " "the reference count for ``x`` by one, and the latter is only called when " "``x``'s reference count reaches zero." msgstr "" -#: ../../reference/datamodel.rst:1236 +#: ../../reference/datamodel.rst:1246 msgid "Documentation for the :mod:`gc` module." msgstr "" -#: ../../reference/datamodel.rst:1240 +#: ../../reference/datamodel.rst:1250 msgid "" "Due to the precarious circumstances under which :meth:`__del__` methods are " "invoked, exceptions that occur during their execution are ignored, and a " "warning is printed to ``sys.stderr`` instead. In particular:" msgstr "" -#: ../../reference/datamodel.rst:1244 +#: ../../reference/datamodel.rst:1254 msgid "" ":meth:`__del__` can be invoked when arbitrary code is being executed, " "including from any arbitrary thread. If :meth:`__del__` needs to take a " "lock or invoke any other blocking resource, it may deadlock as the resource " -"may already be taken by the code that gets interrupted to execute " -":meth:`__del__`." +"may already be taken by the code that gets interrupted to execute :meth:" +"`__del__`." msgstr "" -#: ../../reference/datamodel.rst:1250 +#: ../../reference/datamodel.rst:1260 msgid "" ":meth:`__del__` can be executed during interpreter shutdown. As a " "consequence, the global variables it needs to access (including other " -"modules) may already have been deleted or set to ``None``. Python guarantees" -" that globals whose name begins with a single underscore are deleted from " +"modules) may already have been deleted or set to ``None``. Python guarantees " +"that globals whose name begins with a single underscore are deleted from " "their module before other globals are deleted; if no other references to " "such globals exist, this may help in assuring that imported modules are " "still available at the time when the :meth:`__del__` method is called." msgstr "" -#: ../../reference/datamodel.rst:1265 +#: ../../reference/datamodel.rst:1275 msgid "" "Called by the :func:`repr` built-in function to compute the \"official\" " "string representation of an object. If at all possible, this should look " -"like a valid Python expression that could be used to recreate an object with" -" the same value (given an appropriate environment). If this is not " -"possible, a string of the form ``<...some useful description...>`` should be" -" returned. The return value must be a string object. If a class defines " -":meth:`__repr__` but not :meth:`__str__`, then :meth:`__repr__` is also used" -" when an \"informal\" string representation of instances of that class is " -"required." +"like a valid Python expression that could be used to recreate an object with " +"the same value (given an appropriate environment). If this is not possible, " +"a string of the form ``<...some useful description...>`` should be returned. " +"The return value must be a string object. If a class defines :meth:" +"`__repr__` but not :meth:`__str__`, then :meth:`__repr__` is also used when " +"an \"informal\" string representation of instances of that class is required." msgstr "" -#: ../../reference/datamodel.rst:1274 +#: ../../reference/datamodel.rst:1284 msgid "" "This is typically used for debugging, so it is important that the " "representation is information-rich and unambiguous." msgstr "" -#: ../../reference/datamodel.rst:1285 +#: ../../reference/datamodel.rst:1295 msgid "" -"Called by :func:`str(object) ` and the built-in functions " -":func:`format` and :func:`print` to compute the \"informal\" or nicely " -"printable string representation of an object. The return value must be a " -":ref:`string ` object." +"Called by :func:`str(object) ` and the built-in functions :func:" +"`format` and :func:`print` to compute the \"informal\" or nicely printable " +"string representation of an object. The return value must be a :ref:`string " +"` object." msgstr "" -#: ../../reference/datamodel.rst:1290 +#: ../../reference/datamodel.rst:1300 msgid "" "This method differs from :meth:`object.__repr__` in that there is no " "expectation that :meth:`__str__` return a valid Python expression: a more " "convenient or concise representation can be used." msgstr "" -#: ../../reference/datamodel.rst:1294 +#: ../../reference/datamodel.rst:1304 msgid "" "The default implementation defined by the built-in type :class:`object` " "calls :meth:`object.__repr__`." msgstr "" -#: ../../reference/datamodel.rst:1304 +#: ../../reference/datamodel.rst:1314 msgid "" "Called by :ref:`bytes ` to compute a byte-string representation " "of an object. This should return a :class:`bytes` object." msgstr "" -#: ../../reference/datamodel.rst:1315 +#: ../../reference/datamodel.rst:1325 msgid "" -"Called by the :func:`format` built-in function, and by extension, evaluation" -" of :ref:`formatted string literals ` and the :meth:`str.format` " +"Called by the :func:`format` built-in function, and by extension, evaluation " +"of :ref:`formatted string literals ` and the :meth:`str.format` " "method, to produce a \"formatted\" string representation of an object. The " "*format_spec* argument is a string that contains a description of the " -"formatting options desired. The interpretation of the *format_spec* argument" -" is up to the type implementing :meth:`__format__`, however most classes " -"will either delegate formatting to one of the built-in types, or use a " -"similar formatting option syntax." +"formatting options desired. The interpretation of the *format_spec* argument " +"is up to the type implementing :meth:`__format__`, however most classes will " +"either delegate formatting to one of the built-in types, or use a similar " +"formatting option syntax." msgstr "" -#: ../../reference/datamodel.rst:1325 +#: ../../reference/datamodel.rst:1335 msgid "" "See :ref:`formatspec` for a description of the standard formatting syntax." msgstr "" -#: ../../reference/datamodel.rst:1327 +#: ../../reference/datamodel.rst:1337 msgid "The return value must be a string object." msgstr "" -#: ../../reference/datamodel.rst:1329 +#: ../../reference/datamodel.rst:1339 msgid "" "The __format__ method of ``object`` itself raises a :exc:`TypeError` if " "passed any non-empty string." msgstr "" -#: ../../reference/datamodel.rst:1333 +#: ../../reference/datamodel.rst:1343 msgid "" "``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than " "``format(str(self), '')``." msgstr "" -#: ../../reference/datamodel.rst:1349 +#: ../../reference/datamodel.rst:1359 msgid "" "These are the so-called \"rich comparison\" methods. The correspondence " -"between operator symbols and method names is as follows: ``xy`` calls " -"``x.__gt__(y)``, and ``x>=y`` calls ``x.__ge__(y)``." +"between operator symbols and method names is as follows: ``xy`` calls ``x.__gt__(y)``, and ``x>=y`` " +"calls ``x.__ge__(y)``." msgstr "" -#: ../../reference/datamodel.rst:1355 +#: ../../reference/datamodel.rst:1365 msgid "" "A rich comparison method may return the singleton ``NotImplemented`` if it " "does not implement the operation for a given pair of arguments. By " -"convention, ``False`` and ``True`` are returned for a successful comparison." -" However, these methods can return any value, so if the comparison operator " +"convention, ``False`` and ``True`` are returned for a successful comparison. " +"However, these methods can return any value, so if the comparison operator " "is used in a Boolean context (e.g., in the condition of an ``if`` " "statement), Python will call :func:`bool` on the value to determine if the " "result is true or false." msgstr "" -#: ../../reference/datamodel.rst:1362 +#: ../../reference/datamodel.rst:1372 msgid "" "By default, :meth:`__ne__` delegates to :meth:`__eq__` and inverts the " "result unless it is ``NotImplemented``. There are no other implied " "relationships among the comparison operators, for example, the truth of " "``(x.__hash__``." msgstr "" -#: ../../reference/datamodel.rst:1436 +#: ../../reference/datamodel.rst:1446 msgid "" "If a class that does not override :meth:`__eq__` wishes to suppress hash " "support, it should include ``__hash__ = None`` in the class definition. A " -"class which defines its own :meth:`__hash__` that explicitly raises a " -":exc:`TypeError` would be incorrectly identified as hashable by an " +"class which defines its own :meth:`__hash__` that explicitly raises a :exc:" +"`TypeError` would be incorrectly identified as hashable by an " "``isinstance(obj, collections.abc.Hashable)`` call." msgstr "" -#: ../../reference/datamodel.rst:1445 +#: ../../reference/datamodel.rst:1455 msgid "" "By default, the :meth:`__hash__` values of str, bytes and datetime objects " "are \"salted\" with an unpredictable random value. Although they remain " @@ -1725,64 +1731,64 @@ msgid "" "between repeated invocations of Python." msgstr "" -#: ../../reference/datamodel.rst:1450 +#: ../../reference/datamodel.rst:1460 msgid "" -"This is intended to provide protection against a denial-of-service caused by" -" carefully-chosen inputs that exploit the worst case performance of a dict " -"insertion, O(n^2) complexity. See " -"http://www.ocert.org/advisories/ocert-2011-003.html for details." +"This is intended to provide protection against a denial-of-service caused by " +"carefully-chosen inputs that exploit the worst case performance of a dict " +"insertion, O(n^2) complexity. See http://www.ocert.org/advisories/" +"ocert-2011-003.html for details." msgstr "" -#: ../../reference/datamodel.rst:1455 +#: ../../reference/datamodel.rst:1465 msgid "" "Changing hash values affects the iteration order of sets. Python has never " "made guarantees about this ordering (and it typically varies between 32-bit " "and 64-bit builds)." msgstr "" -#: ../../reference/datamodel.rst:1459 +#: ../../reference/datamodel.rst:1469 msgid "See also :envvar:`PYTHONHASHSEED`." msgstr "" -#: ../../reference/datamodel.rst:1461 +#: ../../reference/datamodel.rst:1471 msgid "Hash randomization is enabled by default." msgstr "" -#: ../../reference/datamodel.rst:1469 +#: ../../reference/datamodel.rst:1479 msgid "" "Called to implement truth value testing and the built-in operation " "``bool()``; should return ``False`` or ``True``. When this method is not " "defined, :meth:`__len__` is called, if it is defined, and the object is " -"considered true if its result is nonzero. If a class defines neither " -":meth:`__len__` nor :meth:`__bool__`, all its instances are considered true." +"considered true if its result is nonzero. If a class defines neither :meth:" +"`__len__` nor :meth:`__bool__`, all its instances are considered true." msgstr "" -#: ../../reference/datamodel.rst:1480 +#: ../../reference/datamodel.rst:1490 msgid "Customizing attribute access" msgstr "" -#: ../../reference/datamodel.rst:1482 +#: ../../reference/datamodel.rst:1492 msgid "" "The following methods can be defined to customize the meaning of attribute " "access (use of, assignment to, or deletion of ``x.name``) for class " "instances." msgstr "" -#: ../../reference/datamodel.rst:1490 +#: ../../reference/datamodel.rst:1500 msgid "" -"Called when the default attribute access fails with an :exc:`AttributeError`" -" (either :meth:`__getattribute__` raises an :exc:`AttributeError` because " +"Called when the default attribute access fails with an :exc:`AttributeError` " +"(either :meth:`__getattribute__` raises an :exc:`AttributeError` because " "*name* is not an instance attribute or an attribute in the class tree for " -"``self``; or :meth:`__get__` of a *name* property raises " -":exc:`AttributeError`). This method should either return the (computed) " +"``self``; or :meth:`__get__` of a *name* property raises :exc:" +"`AttributeError`). This method should either return the (computed) " "attribute value or raise an :exc:`AttributeError` exception." msgstr "" -#: ../../reference/datamodel.rst:1497 +#: ../../reference/datamodel.rst:1507 msgid "" -"Note that if the attribute is found through the normal mechanism, " -":meth:`__getattr__` is not called. (This is an intentional asymmetry " -"between :meth:`__getattr__` and :meth:`__setattr__`.) This is done both for " +"Note that if the attribute is found through the normal mechanism, :meth:" +"`__getattr__` is not called. (This is an intentional asymmetry between :" +"meth:`__getattr__` and :meth:`__setattr__`.) This is done both for " "efficiency reasons and because otherwise :meth:`__getattr__` would have no " "way to access other attributes of the instance. Note that at least for " "instance variables, you can fake total control by not inserting any values " @@ -1791,121 +1797,121 @@ msgid "" "actually get total control over attribute access." msgstr "" -#: ../../reference/datamodel.rst:1510 +#: ../../reference/datamodel.rst:1520 msgid "" "Called unconditionally to implement attribute accesses for instances of the " -"class. If the class also defines :meth:`__getattr__`, the latter will not be" -" called unless :meth:`__getattribute__` either calls it explicitly or raises" -" an :exc:`AttributeError`. This method should return the (computed) " -"attribute value or raise an :exc:`AttributeError` exception. In order to " -"avoid infinite recursion in this method, its implementation should always " -"call the base class method with the same name to access any attributes it " -"needs, for example, ``object.__getattribute__(self, name)``." +"class. If the class also defines :meth:`__getattr__`, the latter will not be " +"called unless :meth:`__getattribute__` either calls it explicitly or raises " +"an :exc:`AttributeError`. This method should return the (computed) attribute " +"value or raise an :exc:`AttributeError` exception. In order to avoid " +"infinite recursion in this method, its implementation should always call the " +"base class method with the same name to access any attributes it needs, for " +"example, ``object.__getattribute__(self, name)``." msgstr "" -#: ../../reference/datamodel.rst:1521 +#: ../../reference/datamodel.rst:1531 msgid "" "This method may still be bypassed when looking up special methods as the " -"result of implicit invocation via language syntax or built-in functions. See" -" :ref:`special-lookup`." +"result of implicit invocation via language syntax or built-in functions. " +"See :ref:`special-lookup`." msgstr "" -#: ../../reference/datamodel.rst:1528 +#: ../../reference/datamodel.rst:1538 msgid "" -"Called when an attribute assignment is attempted. This is called instead of" -" the normal mechanism (i.e. store the value in the instance dictionary). " +"Called when an attribute assignment is attempted. This is called instead of " +"the normal mechanism (i.e. store the value in the instance dictionary). " "*name* is the attribute name, *value* is the value to be assigned to it." msgstr "" -#: ../../reference/datamodel.rst:1532 +#: ../../reference/datamodel.rst:1542 msgid "" "If :meth:`__setattr__` wants to assign to an instance attribute, it should " -"call the base class method with the same name, for example, " -"``object.__setattr__(self, name, value)``." +"call the base class method with the same name, for example, ``object." +"__setattr__(self, name, value)``." msgstr "" -#: ../../reference/datamodel.rst:1539 +#: ../../reference/datamodel.rst:1549 msgid "" "Like :meth:`__setattr__` but for attribute deletion instead of assignment. " "This should only be implemented if ``del obj.name`` is meaningful for the " "object." msgstr "" -#: ../../reference/datamodel.rst:1545 +#: ../../reference/datamodel.rst:1555 msgid "" "Called when :func:`dir` is called on the object. A sequence must be " "returned. :func:`dir` converts the returned sequence to a list and sorts it." msgstr "" -#: ../../reference/datamodel.rst:1550 +#: ../../reference/datamodel.rst:1560 msgid "Customizing module attribute access" msgstr "" -#: ../../reference/datamodel.rst:1557 +#: ../../reference/datamodel.rst:1567 msgid "" "Special names ``__getattr__`` and ``__dir__`` can be also used to customize " "access to module attributes. The ``__getattr__`` function at the module " "level should accept one argument which is the name of an attribute and " -"return the computed value or raise an :exc:`AttributeError`. If an attribute" -" is not found on a module object through the normal lookup, i.e. " -":meth:`object.__getattribute__`, then ``__getattr__`` is searched in the " -"module ``__dict__`` before raising an :exc:`AttributeError`. If found, it is" -" called with the attribute name and the result is returned." +"return the computed value or raise an :exc:`AttributeError`. If an attribute " +"is not found on a module object through the normal lookup, i.e. :meth:" +"`object.__getattribute__`, then ``__getattr__`` is searched in the module " +"``__dict__`` before raising an :exc:`AttributeError`. If found, it is called " +"with the attribute name and the result is returned." msgstr "" -#: ../../reference/datamodel.rst:1566 +#: ../../reference/datamodel.rst:1576 msgid "" -"The ``__dir__`` function should accept no arguments, and return a list of " -"strings that represents the names accessible on module. If present, this " +"The ``__dir__`` function should accept no arguments, and return a sequence " +"of strings that represents the names accessible on module. If present, this " "function overrides the standard :func:`dir` search on a module." msgstr "" -#: ../../reference/datamodel.rst:1570 +#: ../../reference/datamodel.rst:1580 msgid "" "For a more fine grained customization of the module behavior (setting " "attributes, properties, etc.), one can set the ``__class__`` attribute of a " "module object to a subclass of :class:`types.ModuleType`. For example::" msgstr "" -#: ../../reference/datamodel.rst:1588 +#: ../../reference/datamodel.rst:1598 msgid "" -"Defining module ``__getattr__`` and setting module ``__class__`` only affect" -" lookups made using the attribute access syntax -- directly accessing the " -"module globals (whether by code within the module, or via a reference to the" -" module's globals dictionary) is unaffected." +"Defining module ``__getattr__`` and setting module ``__class__`` only affect " +"lookups made using the attribute access syntax -- directly accessing the " +"module globals (whether by code within the module, or via a reference to the " +"module's globals dictionary) is unaffected." msgstr "" -#: ../../reference/datamodel.rst:1593 +#: ../../reference/datamodel.rst:1603 msgid "``__class__`` module attribute is now writable." msgstr "" -#: ../../reference/datamodel.rst:1596 +#: ../../reference/datamodel.rst:1606 msgid "``__getattr__`` and ``__dir__`` module attributes." msgstr "" -#: ../../reference/datamodel.rst:1601 +#: ../../reference/datamodel.rst:1611 msgid ":pep:`562` - Module __getattr__ and __dir__" msgstr "" -#: ../../reference/datamodel.rst:1602 +#: ../../reference/datamodel.rst:1612 msgid "Describes the ``__getattr__`` and ``__dir__`` functions on modules." msgstr "" -#: ../../reference/datamodel.rst:1608 +#: ../../reference/datamodel.rst:1618 msgid "Implementing Descriptors" msgstr "" -#: ../../reference/datamodel.rst:1610 +#: ../../reference/datamodel.rst:1620 msgid "" "The following methods only apply when an instance of the class containing " -"the method (a so-called *descriptor* class) appears in an *owner* class (the" -" descriptor must be in either the owner's class dictionary or in the class " -"dictionary for one of its parents). In the examples below, \"the " -"attribute\" refers to the attribute whose name is the key of the property in" -" the owner class' :attr:`~object.__dict__`." +"the method (a so-called *descriptor* class) appears in an *owner* class (the " +"descriptor must be in either the owner's class dictionary or in the class " +"dictionary for one of its parents). In the examples below, \"the attribute" +"\" refers to the attribute whose name is the key of the property in the " +"owner class' :attr:`~object.__dict__`." msgstr "" -#: ../../reference/datamodel.rst:1620 +#: ../../reference/datamodel.rst:1630 msgid "" "Called to get the attribute of the owner class (class attribute access) or " "of an instance of that class (instance attribute access). *owner* is always " @@ -1915,24 +1921,35 @@ msgid "" "an :exc:`AttributeError` exception." msgstr "" -#: ../../reference/datamodel.rst:1630 +#: ../../reference/datamodel.rst:1640 msgid "" "Called to set the attribute on an instance *instance* of the owner class to " "a new value, *value*." msgstr "" -#: ../../reference/datamodel.rst:1636 +#: ../../reference/datamodel.rst:1646 msgid "" "Called to delete the attribute on an instance *instance* of the owner class." msgstr "" -#: ../../reference/datamodel.rst:1641 +#: ../../reference/datamodel.rst:1651 msgid "" "Called at the time the owning class *owner* is created. The descriptor has " "been assigned to *name*." msgstr "" -#: ../../reference/datamodel.rst:1647 +#: ../../reference/datamodel.rst:1656 +msgid "" +":meth:`__set_name__` is only called implicitly as part of the :class:`type` " +"constructor, so it will need to be called explicitly with the appropriate " +"parameters when a descriptor is added to a class after initial creation::" +msgstr "" + +#: ../../reference/datamodel.rst:1667 +msgid "See :ref:`class-object-creation` for more details." +msgstr "" + +#: ../../reference/datamodel.rst:1671 msgid "" "The attribute :attr:`__objclass__` is interpreted by the :mod:`inspect` " "module as specifying the class where this object was defined (setting this " @@ -1943,11 +1960,11 @@ msgid "" "are implemented in C)." msgstr "" -#: ../../reference/datamodel.rst:1658 +#: ../../reference/datamodel.rst:1682 msgid "Invoking Descriptors" msgstr "Invoking Descriptors" -#: ../../reference/datamodel.rst:1660 +#: ../../reference/datamodel.rst:1684 msgid "" "In general, a descriptor is an object attribute with \"binding behavior\", " "one whose attribute access has been overridden by methods in the descriptor " @@ -1955,15 +1972,15 @@ msgid "" "of those methods are defined for an object, it is said to be a descriptor." msgstr "" -#: ../../reference/datamodel.rst:1665 +#: ../../reference/datamodel.rst:1689 msgid "" "The default behavior for attribute access is to get, set, or delete the " "attribute from an object's dictionary. For instance, ``a.x`` has a lookup " -"chain starting with ``a.__dict__['x']``, then ``type(a).__dict__['x']``, and" -" continuing through the base classes of ``type(a)`` excluding metaclasses." +"chain starting with ``a.__dict__['x']``, then ``type(a).__dict__['x']``, and " +"continuing through the base classes of ``type(a)`` excluding metaclasses." msgstr "" -#: ../../reference/datamodel.rst:1670 +#: ../../reference/datamodel.rst:1694 msgid "" "However, if the looked-up value is an object defining one of the descriptor " "methods, then Python may override the default behavior and invoke the " @@ -1971,130 +1988,129 @@ msgid "" "depends on which descriptor methods were defined and how they were called." msgstr "" -#: ../../reference/datamodel.rst:1675 +#: ../../reference/datamodel.rst:1699 msgid "" "The starting point for descriptor invocation is a binding, ``a.x``. How the " "arguments are assembled depends on ``a``:" msgstr "" -#: ../../reference/datamodel.rst:1680 +#: ../../reference/datamodel.rst:1704 msgid "Direct Call" msgstr "" -#: ../../reference/datamodel.rst:1679 +#: ../../reference/datamodel.rst:1703 msgid "" "The simplest and least common call is when user code directly invokes a " "descriptor method: ``x.__get__(a)``." msgstr "" -#: ../../reference/datamodel.rst:1684 +#: ../../reference/datamodel.rst:1708 msgid "Instance Binding" msgstr "" -#: ../../reference/datamodel.rst:1683 +#: ../../reference/datamodel.rst:1707 msgid "" "If binding to an object instance, ``a.x`` is transformed into the call: " "``type(a).__dict__['x'].__get__(a, type(a))``." msgstr "" -#: ../../reference/datamodel.rst:1688 +#: ../../reference/datamodel.rst:1712 msgid "Class Binding" msgstr "" -#: ../../reference/datamodel.rst:1687 +#: ../../reference/datamodel.rst:1711 msgid "" -"If binding to a class, ``A.x`` is transformed into the call: " -"``A.__dict__['x'].__get__(None, A)``." +"If binding to a class, ``A.x`` is transformed into the call: ``A." +"__dict__['x'].__get__(None, A)``." msgstr "" -#: ../../reference/datamodel.rst:1694 +#: ../../reference/datamodel.rst:1718 msgid "Super Binding" msgstr "" -#: ../../reference/datamodel.rst:1691 +#: ../../reference/datamodel.rst:1715 msgid "" -"If ``a`` is an instance of :class:`super`, then the binding ``super(B, " -"obj).m()`` searches ``obj.__class__.__mro__`` for the base class ``A`` " +"If ``a`` is an instance of :class:`super`, then the binding ``super(B, obj)." +"m()`` searches ``obj.__class__.__mro__`` for the base class ``A`` " "immediately preceding ``B`` and then invokes the descriptor with the call: " "``A.__dict__['m'].__get__(obj, obj.__class__)``." msgstr "" -#: ../../reference/datamodel.rst:1696 +#: ../../reference/datamodel.rst:1720 msgid "" "For instance bindings, the precedence of descriptor invocation depends on " "the which descriptor methods are defined. A descriptor can define any " "combination of :meth:`__get__`, :meth:`__set__` and :meth:`__delete__`. If " -"it does not define :meth:`__get__`, then accessing the attribute will return" -" the descriptor object itself unless there is a value in the object's " -"instance dictionary. If the descriptor defines :meth:`__set__` and/or " -":meth:`__delete__`, it is a data descriptor; if it defines neither, it is a " -"non-data descriptor. Normally, data descriptors define both :meth:`__get__`" -" and :meth:`__set__`, while non-data descriptors have just the " -":meth:`__get__` method. Data descriptors with :meth:`__set__` and " -":meth:`__get__` defined always override a redefinition in an instance " -"dictionary. In contrast, non-data descriptors can be overridden by " -"instances." +"it does not define :meth:`__get__`, then accessing the attribute will return " +"the descriptor object itself unless there is a value in the object's " +"instance dictionary. If the descriptor defines :meth:`__set__` and/or :meth:" +"`__delete__`, it is a data descriptor; if it defines neither, it is a non-" +"data descriptor. Normally, data descriptors define both :meth:`__get__` " +"and :meth:`__set__`, while non-data descriptors have just the :meth:" +"`__get__` method. Data descriptors with :meth:`__set__` and :meth:`__get__` " +"defined always override a redefinition in an instance dictionary. In " +"contrast, non-data descriptors can be overridden by instances." msgstr "" -#: ../../reference/datamodel.rst:1709 +#: ../../reference/datamodel.rst:1733 msgid "" "Python methods (including :func:`staticmethod` and :func:`classmethod`) are " "implemented as non-data descriptors. Accordingly, instances can redefine " -"and override methods. This allows individual instances to acquire behaviors" -" that differ from other instances of the same class." +"and override methods. This allows individual instances to acquire behaviors " +"that differ from other instances of the same class." msgstr "" -#: ../../reference/datamodel.rst:1714 +#: ../../reference/datamodel.rst:1738 msgid "" "The :func:`property` function is implemented as a data descriptor. " "Accordingly, instances cannot override the behavior of a property." msgstr "" -#: ../../reference/datamodel.rst:1721 +#: ../../reference/datamodel.rst:1745 msgid "__slots__" msgstr "__slots__" -#: ../../reference/datamodel.rst:1723 +#: ../../reference/datamodel.rst:1747 msgid "" "*__slots__* allow us to explicitly declare data members (like properties) " "and deny the creation of *__dict__* and *__weakref__* (unless explicitly " "declared in *__slots__* or available in a parent.)" msgstr "" -#: ../../reference/datamodel.rst:1727 +#: ../../reference/datamodel.rst:1751 msgid "" "The space saved over using *__dict__* can be significant. Attribute lookup " "speed can be significantly improved as well." msgstr "" -#: ../../reference/datamodel.rst:1732 +#: ../../reference/datamodel.rst:1756 msgid "" "This class variable can be assigned a string, iterable, or sequence of " "strings with variable names used by instances. *__slots__* reserves space " -"for the declared variables and prevents the automatic creation of *__dict__*" -" and *__weakref__* for each instance." +"for the declared variables and prevents the automatic creation of *__dict__* " +"and *__weakref__* for each instance." msgstr "" -#: ../../reference/datamodel.rst:1739 +#: ../../reference/datamodel.rst:1763 msgid "Notes on using *__slots__*" msgstr "" -#: ../../reference/datamodel.rst:1741 +#: ../../reference/datamodel.rst:1765 msgid "" "When inheriting from a class without *__slots__*, the *__dict__* and " "*__weakref__* attribute of the instances will always be accessible." msgstr "" -#: ../../reference/datamodel.rst:1744 +#: ../../reference/datamodel.rst:1768 msgid "" "Without a *__dict__* variable, instances cannot be assigned new variables " -"not listed in the *__slots__* definition. Attempts to assign to an unlisted" -" variable name raises :exc:`AttributeError`. If dynamic assignment of new " +"not listed in the *__slots__* definition. Attempts to assign to an unlisted " +"variable name raises :exc:`AttributeError`. If dynamic assignment of new " "variables is desired, then add ``'__dict__'`` to the sequence of strings in " "the *__slots__* declaration." msgstr "" -#: ../../reference/datamodel.rst:1750 +#: ../../reference/datamodel.rst:1774 msgid "" "Without a *__weakref__* variable for each instance, classes defining " "*__slots__* do not support weak references to its instances. If weak " @@ -2102,25 +2118,24 @@ msgid "" "strings in the *__slots__* declaration." msgstr "" -#: ../../reference/datamodel.rst:1755 +#: ../../reference/datamodel.rst:1779 msgid "" -"*__slots__* are implemented at the class level by creating descriptors " -"(:ref:`descriptors`) for each variable name. As a result, class attributes " -"cannot be used to set default values for instance variables defined by " -"*__slots__*; otherwise, the class attribute would overwrite the descriptor " -"assignment." +"*__slots__* are implemented at the class level by creating descriptors (:ref:" +"`descriptors`) for each variable name. As a result, class attributes cannot " +"be used to set default values for instance variables defined by *__slots__*; " +"otherwise, the class attribute would overwrite the descriptor assignment." msgstr "" -#: ../../reference/datamodel.rst:1761 +#: ../../reference/datamodel.rst:1785 msgid "" -"The action of a *__slots__* declaration is not limited to the class where it" -" is defined. *__slots__* declared in parents are available in child " -"classes. However, child subclasses will get a *__dict__* and *__weakref__* " -"unless they also define *__slots__* (which should only contain names of any " +"The action of a *__slots__* declaration is not limited to the class where it " +"is defined. *__slots__* declared in parents are available in child classes. " +"However, child subclasses will get a *__dict__* and *__weakref__* unless " +"they also define *__slots__* (which should only contain names of any " "*additional* slots)." msgstr "" -#: ../../reference/datamodel.rst:1767 +#: ../../reference/datamodel.rst:1791 msgid "" "If a class defines a slot also defined in a base class, the instance " "variable defined by the base class slot is inaccessible (except by " @@ -2129,37 +2144,43 @@ msgid "" "prevent this." msgstr "" -#: ../../reference/datamodel.rst:1772 +#: ../../reference/datamodel.rst:1796 msgid "" -"Nonempty *__slots__* does not work for classes derived from \"variable-" -"length\" built-in types such as :class:`int`, :class:`bytes` and " -":class:`tuple`." +"Nonempty *__slots__* does not work for classes derived from \"variable-length" +"\" built-in types such as :class:`int`, :class:`bytes` and :class:`tuple`." msgstr "" -#: ../../reference/datamodel.rst:1775 +#: ../../reference/datamodel.rst:1799 msgid "" -"Any non-string iterable may be assigned to *__slots__*. Mappings may also be" -" used; however, in the future, special meaning may be assigned to the values" -" corresponding to each key." +"Any non-string iterable may be assigned to *__slots__*. Mappings may also be " +"used; however, in the future, special meaning may be assigned to the values " +"corresponding to each key." msgstr "" -#: ../../reference/datamodel.rst:1779 +#: ../../reference/datamodel.rst:1803 msgid "" "*__class__* assignment works only if both classes have the same *__slots__*." msgstr "" -#: ../../reference/datamodel.rst:1781 +#: ../../reference/datamodel.rst:1805 msgid "" "Multiple inheritance with multiple slotted parent classes can be used, but " "only one parent is allowed to have attributes created by slots (the other " "bases must have empty slot layouts) - violations raise :exc:`TypeError`." msgstr "" -#: ../../reference/datamodel.rst:1789 +#: ../../reference/datamodel.rst:1810 +msgid "" +"If an iterator is used for *__slots__* then a descriptor is created for each " +"of the iterator's values. However, the *__slots__* attribute will be an " +"empty iterator." +msgstr "" + +#: ../../reference/datamodel.rst:1817 msgid "Customizing class creation" msgstr "" -#: ../../reference/datamodel.rst:1791 +#: ../../reference/datamodel.rst:1819 msgid "" "Whenever a class inherits from another class, *__init_subclass__* is called " "on that class. This way, it is possible to write classes which change the " @@ -2169,14 +2190,14 @@ msgid "" "defining the method." msgstr "" -#: ../../reference/datamodel.rst:1800 +#: ../../reference/datamodel.rst:1828 msgid "" "This method is called whenever the containing class is subclassed. *cls* is " "then the new subclass. If defined as a normal instance method, this method " "is implicitly converted to a class method." msgstr "" -#: ../../reference/datamodel.rst:1804 +#: ../../reference/datamodel.rst:1832 msgid "" "Keyword arguments which are given to a new class are passed to the parent's " "class ``__init_subclass__``. For compatibility with other classes using " @@ -2184,32 +2205,32 @@ msgid "" "pass the others over to the base class, as in::" msgstr "" -#: ../../reference/datamodel.rst:1818 +#: ../../reference/datamodel.rst:1846 msgid "" "The default implementation ``object.__init_subclass__`` does nothing, but " "raises an error if it is called with any arguments." msgstr "" -#: ../../reference/datamodel.rst:1823 +#: ../../reference/datamodel.rst:1851 msgid "" "The metaclass hint ``metaclass`` is consumed by the rest of the type " -"machinery, and is never passed to ``__init_subclass__`` implementations. The" -" actual metaclass (rather than the explicit hint) can be accessed as " +"machinery, and is never passed to ``__init_subclass__`` implementations. The " +"actual metaclass (rather than the explicit hint) can be accessed as " "``type(cls)``." msgstr "" -#: ../../reference/datamodel.rst:1834 +#: ../../reference/datamodel.rst:1862 msgid "Metaclasses" msgstr "Metaclasses" -#: ../../reference/datamodel.rst:1841 +#: ../../reference/datamodel.rst:1869 msgid "" "By default, classes are constructed using :func:`type`. The class body is " "executed in a new namespace and the class name is bound locally to the " "result of ``type(name, bases, namespace)``." msgstr "" -#: ../../reference/datamodel.rst:1845 +#: ../../reference/datamodel.rst:1873 msgid "" "The class creation process can be customized by passing the ``metaclass`` " "keyword argument in the class definition line, or by inheriting from an " @@ -2217,119 +2238,123 @@ msgid "" "both ``MyClass`` and ``MySubclass`` are instances of ``Meta``::" msgstr "" -#: ../../reference/datamodel.rst:1859 +#: ../../reference/datamodel.rst:1887 msgid "" "Any other keyword arguments that are specified in the class definition are " "passed through to all metaclass operations described below." msgstr "" -#: ../../reference/datamodel.rst:1862 +#: ../../reference/datamodel.rst:1890 msgid "When a class definition is executed, the following steps occur:" msgstr "" -#: ../../reference/datamodel.rst:1864 +#: ../../reference/datamodel.rst:1892 msgid "MRO entries are resolved;" msgstr "" -#: ../../reference/datamodel.rst:1865 +#: ../../reference/datamodel.rst:1893 msgid "the appropriate metaclass is determined;" msgstr "" -#: ../../reference/datamodel.rst:1866 +#: ../../reference/datamodel.rst:1894 msgid "the class namespace is prepared;" msgstr "" -#: ../../reference/datamodel.rst:1867 +#: ../../reference/datamodel.rst:1895 msgid "the class body is executed;" msgstr "" -#: ../../reference/datamodel.rst:1868 +#: ../../reference/datamodel.rst:1896 msgid "the class object is created." msgstr "" -#: ../../reference/datamodel.rst:1872 +#: ../../reference/datamodel.rst:1900 msgid "Resolving MRO entries" msgstr "" -#: ../../reference/datamodel.rst:1874 +#: ../../reference/datamodel.rst:1902 msgid "" -"If a base that appears in class definition is not an instance of " -":class:`type`, then an ``__mro_entries__`` method is searched on it. If " -"found, it is called with the original bases tuple. This method must return a" -" tuple of classes that will be used instead of this base. The tuple may be " -"empty, in such case the original base is ignored." +"If a base that appears in class definition is not an instance of :class:" +"`type`, then an ``__mro_entries__`` method is searched on it. If found, it " +"is called with the original bases tuple. This method must return a tuple of " +"classes that will be used instead of this base. The tuple may be empty, in " +"such case the original base is ignored." msgstr "" -#: ../../reference/datamodel.rst:1882 ../../reference/datamodel.rst:2070 +#: ../../reference/datamodel.rst:1910 ../../reference/datamodel.rst:2101 msgid ":pep:`560` - Core support for typing module and generic types" -msgstr "" +msgstr ":pep:`560` - Suporte básico para inserir módulo e tipos genéricos" -#: ../../reference/datamodel.rst:1886 +#: ../../reference/datamodel.rst:1914 msgid "Determining the appropriate metaclass" msgstr "" -#: ../../reference/datamodel.rst:1890 +#: ../../reference/datamodel.rst:1918 msgid "" "The appropriate metaclass for a class definition is determined as follows:" msgstr "" -#: ../../reference/datamodel.rst:1892 +#: ../../reference/datamodel.rst:1920 msgid "" "if no bases and no explicit metaclass are given, then :func:`type` is used;" msgstr "" -#: ../../reference/datamodel.rst:1893 +#: ../../reference/datamodel.rst:1921 msgid "" -"if an explicit metaclass is given and it is *not* an instance of " -":func:`type`, then it is used directly as the metaclass;" +"if an explicit metaclass is given and it is *not* an instance of :func:" +"`type`, then it is used directly as the metaclass;" msgstr "" -#: ../../reference/datamodel.rst:1895 +#: ../../reference/datamodel.rst:1923 msgid "" "if an instance of :func:`type` is given as the explicit metaclass, or bases " "are defined, then the most derived metaclass is used." msgstr "" -#: ../../reference/datamodel.rst:1898 +#: ../../reference/datamodel.rst:1926 msgid "" "The most derived metaclass is selected from the explicitly specified " -"metaclass (if any) and the metaclasses (i.e. ``type(cls)``) of all specified" -" base classes. The most derived metaclass is one which is a subtype of *all*" -" of these candidate metaclasses. If none of the candidate metaclasses meets " +"metaclass (if any) and the metaclasses (i.e. ``type(cls)``) of all specified " +"base classes. The most derived metaclass is one which is a subtype of *all* " +"of these candidate metaclasses. If none of the candidate metaclasses meets " "that criterion, then the class definition will fail with ``TypeError``." msgstr "" -#: ../../reference/datamodel.rst:1908 +#: ../../reference/datamodel.rst:1936 msgid "Preparing the class namespace" msgstr "" -#: ../../reference/datamodel.rst:1913 +#: ../../reference/datamodel.rst:1941 msgid "" -"Once the appropriate metaclass has been identified, then the class namespace" -" is prepared. If the metaclass has a ``__prepare__`` attribute, it is called" -" as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the " -"additional keyword arguments, if any, come from the class definition)." +"Once the appropriate metaclass has been identified, then the class namespace " +"is prepared. If the metaclass has a ``__prepare__`` attribute, it is called " +"as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the " +"additional keyword arguments, if any, come from the class definition). The " +"``__prepare__`` method should be implemented as a :func:`classmethod`. The " +"namespace returned by ``__prepare__`` is passed in to ``__new__``, but when " +"the final class object is created the namespace is copied into a new " +"``dict``." msgstr "" -#: ../../reference/datamodel.rst:1918 +#: ../../reference/datamodel.rst:1949 msgid "" "If the metaclass has no ``__prepare__`` attribute, then the class namespace " "is initialised as an empty ordered mapping." msgstr "" -#: ../../reference/datamodel.rst:1923 +#: ../../reference/datamodel.rst:1954 msgid ":pep:`3115` - Metaclasses in Python 3000" -msgstr "" +msgstr ":pep:`3115` - Metaclasses no Python 3000" -#: ../../reference/datamodel.rst:1924 +#: ../../reference/datamodel.rst:1955 msgid "Introduced the ``__prepare__`` namespace hook" -msgstr "" +msgstr "Introduzido o gancho de espaço de nomes ``__prepare__``" -#: ../../reference/datamodel.rst:1928 +#: ../../reference/datamodel.rst:1959 msgid "Executing the class body" msgstr "" -#: ../../reference/datamodel.rst:1933 +#: ../../reference/datamodel.rst:1964 msgid "" "The class body is executed (approximately) as ``exec(body, globals(), " "namespace)``. The key difference from a normal call to :func:`exec` is that " @@ -2338,7 +2363,7 @@ msgid "" "inside a function." msgstr "" -#: ../../reference/datamodel.rst:1939 +#: ../../reference/datamodel.rst:1970 msgid "" "However, even when the class definition occurs inside the function, methods " "defined inside the class still cannot see names defined at the class scope. " @@ -2347,72 +2372,71 @@ msgid "" "reference described in the next section." msgstr "" -#: ../../reference/datamodel.rst:1948 +#: ../../reference/datamodel.rst:1979 msgid "Creating the class object" msgstr "" -#: ../../reference/datamodel.rst:1955 +#: ../../reference/datamodel.rst:1986 msgid "" -"Once the class namespace has been populated by executing the class body, the" -" class object is created by calling ``metaclass(name, bases, namespace, " +"Once the class namespace has been populated by executing the class body, the " +"class object is created by calling ``metaclass(name, bases, namespace, " "**kwds)`` (the additional keywords passed here are the same as those passed " "to ``__prepare__``)." msgstr "" -#: ../../reference/datamodel.rst:1960 +#: ../../reference/datamodel.rst:1991 msgid "" "This class object is the one that will be referenced by the zero-argument " "form of :func:`super`. ``__class__`` is an implicit closure reference " "created by the compiler if any methods in a class body refer to either " -"``__class__`` or ``super``. This allows the zero argument form of " -":func:`super` to correctly identify the class being defined based on lexical" -" scoping, while the class or instance that was used to make the current call" -" is identified based on the first argument passed to the method." +"``__class__`` or ``super``. This allows the zero argument form of :func:" +"`super` to correctly identify the class being defined based on lexical " +"scoping, while the class or instance that was used to make the current call " +"is identified based on the first argument passed to the method." msgstr "" -#: ../../reference/datamodel.rst:1970 +#: ../../reference/datamodel.rst:2001 msgid "" "In CPython 3.6 and later, the ``__class__`` cell is passed to the metaclass " "as a ``__classcell__`` entry in the class namespace. If present, this must " "be propagated up to the ``type.__new__`` call in order for the class to be " -"initialised correctly. Failing to do so will result in a " -":exc:`DeprecationWarning` in Python 3.6, and a :exc:`RuntimeError` in Python" -" 3.8." +"initialised correctly. Failing to do so will result in a :exc:" +"`DeprecationWarning` in Python 3.6, and a :exc:`RuntimeError` in Python 3.8." msgstr "" -#: ../../reference/datamodel.rst:1977 +#: ../../reference/datamodel.rst:2008 msgid "" "When using the default metaclass :class:`type`, or any metaclass that " "ultimately calls ``type.__new__``, the following additional customisation " "steps are invoked after creating the class object:" msgstr "" -#: ../../reference/datamodel.rst:1981 +#: ../../reference/datamodel.rst:2012 msgid "" "first, ``type.__new__`` collects all of the descriptors in the class " "namespace that define a :meth:`~object.__set_name__` method;" msgstr "" -#: ../../reference/datamodel.rst:1983 +#: ../../reference/datamodel.rst:2014 msgid "" "second, all of these ``__set_name__`` methods are called with the class " "being defined and the assigned name of that particular descriptor;" msgstr "" -#: ../../reference/datamodel.rst:1985 +#: ../../reference/datamodel.rst:2016 msgid "" "finally, the :meth:`~object.__init_subclass__` hook is called on the " "immediate parent of the new class in its method resolution order." msgstr "" -#: ../../reference/datamodel.rst:1988 +#: ../../reference/datamodel.rst:2019 msgid "" "After the class object is created, it is passed to the class decorators " "included in the class definition (if any) and the resulting object is bound " "in the local namespace as the defined class." msgstr "" -#: ../../reference/datamodel.rst:1992 +#: ../../reference/datamodel.rst:2023 msgid "" "When a new class is created by ``type.__new__``, the object provided as the " "namespace parameter is copied to a new ordered mapping and the original " @@ -2420,19 +2444,19 @@ msgid "" "becomes the :attr:`~object.__dict__` attribute of the class object." msgstr "" -#: ../../reference/datamodel.rst:1999 +#: ../../reference/datamodel.rst:2030 msgid ":pep:`3135` - New super" msgstr "" -#: ../../reference/datamodel.rst:2000 +#: ../../reference/datamodel.rst:2031 msgid "Describes the implicit ``__class__`` closure reference" msgstr "" -#: ../../reference/datamodel.rst:2004 +#: ../../reference/datamodel.rst:2035 msgid "Uses for metaclasses" msgstr "" -#: ../../reference/datamodel.rst:2006 +#: ../../reference/datamodel.rst:2037 msgid "" "The potential uses for metaclasses are boundless. Some ideas that have been " "explored include enum, logging, interface checking, automatic delegation, " @@ -2440,17 +2464,17 @@ msgid "" "locking/synchronization." msgstr "" -#: ../../reference/datamodel.rst:2013 +#: ../../reference/datamodel.rst:2044 msgid "Customizing instance and subclass checks" msgstr "" -#: ../../reference/datamodel.rst:2015 +#: ../../reference/datamodel.rst:2046 msgid "" -"The following methods are used to override the default behavior of the " -":func:`isinstance` and :func:`issubclass` built-in functions." +"The following methods are used to override the default behavior of the :func:" +"`isinstance` and :func:`issubclass` built-in functions." msgstr "" -#: ../../reference/datamodel.rst:2018 +#: ../../reference/datamodel.rst:2049 msgid "" "In particular, the metaclass :class:`abc.ABCMeta` implements these methods " "in order to allow the addition of Abstract Base Classes (ABCs) as \"virtual " @@ -2458,21 +2482,21 @@ msgid "" "other ABCs." msgstr "" -#: ../../reference/datamodel.rst:2025 +#: ../../reference/datamodel.rst:2056 msgid "" "Return true if *instance* should be considered a (direct or indirect) " "instance of *class*. If defined, called to implement ``isinstance(instance, " "class)``." msgstr "" -#: ../../reference/datamodel.rst:2032 +#: ../../reference/datamodel.rst:2063 msgid "" "Return true if *subclass* should be considered a (direct or indirect) " -"subclass of *class*. If defined, called to implement ``issubclass(subclass," -" class)``." +"subclass of *class*. If defined, called to implement ``issubclass(subclass, " +"class)``." msgstr "" -#: ../../reference/datamodel.rst:2037 +#: ../../reference/datamodel.rst:2068 msgid "" "Note that these methods are looked up on the type (metaclass) of a class. " "They cannot be defined as class methods in the actual class. This is " @@ -2480,92 +2504,92 @@ msgid "" "only in this case the instance is itself a class." msgstr "" -#: ../../reference/datamodel.rst:2048 +#: ../../reference/datamodel.rst:2079 msgid ":pep:`3119` - Introducing Abstract Base Classes" msgstr ":pep:`3119` - Introducing Abstract Base Classes" -#: ../../reference/datamodel.rst:2045 +#: ../../reference/datamodel.rst:2076 msgid "" -"Includes the specification for customizing :func:`isinstance` and " -":func:`issubclass` behavior through :meth:`~class.__instancecheck__` and " -":meth:`~class.__subclasscheck__`, with motivation for this functionality in " -"the context of adding Abstract Base Classes (see the :mod:`abc` module) to " -"the language." +"Includes the specification for customizing :func:`isinstance` and :func:" +"`issubclass` behavior through :meth:`~class.__instancecheck__` and :meth:" +"`~class.__subclasscheck__`, with motivation for this functionality in the " +"context of adding Abstract Base Classes (see the :mod:`abc` module) to the " +"language." msgstr "" -#: ../../reference/datamodel.rst:2053 +#: ../../reference/datamodel.rst:2084 msgid "Emulating generic types" msgstr "" -#: ../../reference/datamodel.rst:2055 +#: ../../reference/datamodel.rst:2086 msgid "" "One can implement the generic class syntax as specified by :pep:`484` (for " "example ``List[int]``) by defining a special method:" msgstr "" -#: ../../reference/datamodel.rst:2060 +#: ../../reference/datamodel.rst:2091 msgid "" "Return an object representing the specialization of a generic class by type " "arguments found in *key*." msgstr "" -#: ../../reference/datamodel.rst:2063 +#: ../../reference/datamodel.rst:2094 msgid "" -"This method is looked up on the class object itself, and when defined in the" -" class body, this method is implicitly a class method. Note, this mechanism" -" is primarily reserved for use with static type hints, other usage is " +"This method is looked up on the class object itself, and when defined in the " +"class body, this method is implicitly a class method. Note, this mechanism " +"is primarily reserved for use with static type hints, other usage is " "discouraged." msgstr "" -#: ../../reference/datamodel.rst:2076 +#: ../../reference/datamodel.rst:2107 msgid "Emulating callable objects" msgstr "" -#: ../../reference/datamodel.rst:2083 +#: ../../reference/datamodel.rst:2114 msgid "" "Called when the instance is \"called\" as a function; if this method is " -"defined, ``x(arg1, arg2, ...)`` is a shorthand for ``x.__call__(arg1, arg2, " -"...)``." +"defined, ``x(arg1, arg2, ...)`` is a shorthand for ``x.__call__(arg1, " +"arg2, ...)``." msgstr "" -#: ../../reference/datamodel.rst:2090 +#: ../../reference/datamodel.rst:2121 msgid "Emulating container types" msgstr "" -#: ../../reference/datamodel.rst:2092 +#: ../../reference/datamodel.rst:2123 msgid "" "The following methods can be defined to implement container objects. " -"Containers usually are sequences (such as lists or tuples) or mappings (like" -" dictionaries), but can represent other containers as well. The first set " -"of methods is used either to emulate a sequence or to emulate a mapping; the" -" difference is that for a sequence, the allowable keys should be the " -"integers *k* for which ``0 <= k < N`` where *N* is the length of the " -"sequence, or slice objects, which define a range of items. It is also " -"recommended that mappings provide the methods :meth:`keys`, :meth:`values`, " -":meth:`items`, :meth:`get`, :meth:`clear`, :meth:`setdefault`, :meth:`pop`, " -":meth:`popitem`, :meth:`!copy`, and :meth:`update` behaving similar to those" -" for Python's standard dictionary objects. The :mod:`collections.abc` " -"module provides a :class:`~collections.abc.MutableMapping` abstract base " -"class to help create those methods from a base set of :meth:`__getitem__`, " -":meth:`__setitem__`, :meth:`__delitem__`, and :meth:`keys`. Mutable " -"sequences should provide methods :meth:`append`, :meth:`count`, " -":meth:`index`, :meth:`extend`, :meth:`insert`, :meth:`pop`, :meth:`remove`, " -":meth:`reverse` and :meth:`sort`, like Python standard list objects. " -"Finally, sequence types should implement addition (meaning concatenation) " -"and multiplication (meaning repetition) by defining the methods " -":meth:`__add__`, :meth:`__radd__`, :meth:`__iadd__`, :meth:`__mul__`, " -":meth:`__rmul__` and :meth:`__imul__` described below; they should not " -"define other numerical operators. It is recommended that both mappings and " -"sequences implement the :meth:`__contains__` method to allow efficient use " -"of the ``in`` operator; for mappings, ``in`` should search the mapping's " -"keys; for sequences, it should search through the values. It is further " -"recommended that both mappings and sequences implement the :meth:`__iter__` " -"method to allow efficient iteration through the container; for mappings, " -":meth:`__iter__` should be the same as :meth:`keys`; for sequences, it " +"Containers usually are sequences (such as lists or tuples) or mappings (like " +"dictionaries), but can represent other containers as well. The first set of " +"methods is used either to emulate a sequence or to emulate a mapping; the " +"difference is that for a sequence, the allowable keys should be the integers " +"*k* for which ``0 <= k < N`` where *N* is the length of the sequence, or " +"slice objects, which define a range of items. It is also recommended that " +"mappings provide the methods :meth:`keys`, :meth:`values`, :meth:`items`, :" +"meth:`get`, :meth:`clear`, :meth:`setdefault`, :meth:`pop`, :meth:" +"`popitem`, :meth:`!copy`, and :meth:`update` behaving similar to those for " +"Python's standard dictionary objects. The :mod:`collections.abc` module " +"provides a :class:`~collections.abc.MutableMapping` abstract base class to " +"help create those methods from a base set of :meth:`__getitem__`, :meth:" +"`__setitem__`, :meth:`__delitem__`, and :meth:`keys`. Mutable sequences " +"should provide methods :meth:`append`, :meth:`count`, :meth:`index`, :meth:" +"`extend`, :meth:`insert`, :meth:`pop`, :meth:`remove`, :meth:`reverse` and :" +"meth:`sort`, like Python standard list objects. Finally, sequence types " +"should implement addition (meaning concatenation) and multiplication " +"(meaning repetition) by defining the methods :meth:`__add__`, :meth:" +"`__radd__`, :meth:`__iadd__`, :meth:`__mul__`, :meth:`__rmul__` and :meth:" +"`__imul__` described below; they should not define other numerical " +"operators. It is recommended that both mappings and sequences implement " +"the :meth:`__contains__` method to allow efficient use of the ``in`` " +"operator; for mappings, ``in`` should search the mapping's keys; for " +"sequences, it should search through the values. It is further recommended " +"that both mappings and sequences implement the :meth:`__iter__` method to " +"allow efficient iteration through the container; for mappings, :meth:" +"`__iter__` should iterate through the object's keys; for sequences, it " "should iterate through the values." msgstr "" -#: ../../reference/datamodel.rst:2127 +#: ../../reference/datamodel.rst:2158 msgid "" "Called to implement the built-in function :func:`len`. Should return the " "length of the object, an integer ``>=`` 0. Also, an object that doesn't " @@ -2573,40 +2597,39 @@ msgid "" "zero is considered to be false in a Boolean context." msgstr "" -#: ../../reference/datamodel.rst:2134 +#: ../../reference/datamodel.rst:2165 msgid "" -"In CPython, the length is required to be at most :attr:`sys.maxsize`. If the" -" length is larger than :attr:`!sys.maxsize` some features (such as " -":func:`len`) may raise :exc:`OverflowError`. To prevent raising " -":exc:`!OverflowError` by truth value testing, an object must define a " -":meth:`__bool__` method." +"In CPython, the length is required to be at most :attr:`sys.maxsize`. If the " +"length is larger than :attr:`!sys.maxsize` some features (such as :func:" +"`len`) may raise :exc:`OverflowError`. To prevent raising :exc:`!" +"OverflowError` by truth value testing, an object must define a :meth:" +"`__bool__` method." msgstr "" -#: ../../reference/datamodel.rst:2143 +#: ../../reference/datamodel.rst:2174 msgid "" -"Called to implement :func:`operator.length_hint`. Should return an estimated" -" length for the object (which may be greater or less than the actual " -"length). The length must be an integer ``>=`` 0. The return value may also " -"be :const:`NotImplemented`, which is treated the same as if the " -"``__length_hint__`` method didn't exist at all. This method is purely an " -"optimization and is never required for correctness." +"Called to implement :func:`operator.length_hint`. Should return an estimated " +"length for the object (which may be greater or less than the actual length). " +"The length must be an integer ``>=`` 0. The return value may also be :const:" +"`NotImplemented`, which is treated the same as if the ``__length_hint__`` " +"method didn't exist at all. This method is purely an optimization and is " +"never required for correctness." msgstr "" -#: ../../reference/datamodel.rst:2157 +#: ../../reference/datamodel.rst:2188 msgid "" -"Slicing is done exclusively with the following three methods. A call like " -"::" +"Slicing is done exclusively with the following three methods. A call like ::" msgstr "" -#: ../../reference/datamodel.rst:2161 +#: ../../reference/datamodel.rst:2192 msgid "is translated to ::" msgstr "" -#: ../../reference/datamodel.rst:2165 +#: ../../reference/datamodel.rst:2196 msgid "and so forth. Missing slice items are always filled in with ``None``." msgstr "" -#: ../../reference/datamodel.rst:2170 +#: ../../reference/datamodel.rst:2201 msgid "" "Called to implement evaluation of ``self[key]``. For sequence types, the " "accepted keys should be integers and slice objects. Note that the special " @@ -2618,37 +2641,37 @@ msgid "" "*key* is missing (not in the container), :exc:`KeyError` should be raised." msgstr "" -#: ../../reference/datamodel.rst:2181 +#: ../../reference/datamodel.rst:2212 msgid "" ":keyword:`for` loops expect that an :exc:`IndexError` will be raised for " "illegal indexes to allow proper detection of the end of the sequence." msgstr "" -#: ../../reference/datamodel.rst:2187 +#: ../../reference/datamodel.rst:2218 msgid "" -"Called to implement assignment to ``self[key]``. Same note as for " -":meth:`__getitem__`. This should only be implemented for mappings if the " -"objects support changes to the values for keys, or if new keys can be added," -" or for sequences if elements can be replaced. The same exceptions should " -"be raised for improper *key* values as for the :meth:`__getitem__` method." +"Called to implement assignment to ``self[key]``. Same note as for :meth:" +"`__getitem__`. This should only be implemented for mappings if the objects " +"support changes to the values for keys, or if new keys can be added, or for " +"sequences if elements can be replaced. The same exceptions should be raised " +"for improper *key* values as for the :meth:`__getitem__` method." msgstr "" -#: ../../reference/datamodel.rst:2196 +#: ../../reference/datamodel.rst:2227 msgid "" -"Called to implement deletion of ``self[key]``. Same note as for " -":meth:`__getitem__`. This should only be implemented for mappings if the " -"objects support removal of keys, or for sequences if elements can be removed" -" from the sequence. The same exceptions should be raised for improper *key*" -" values as for the :meth:`__getitem__` method." +"Called to implement deletion of ``self[key]``. Same note as for :meth:" +"`__getitem__`. This should only be implemented for mappings if the objects " +"support removal of keys, or for sequences if elements can be removed from " +"the sequence. The same exceptions should be raised for improper *key* " +"values as for the :meth:`__getitem__` method." msgstr "" -#: ../../reference/datamodel.rst:2205 +#: ../../reference/datamodel.rst:2236 msgid "" -"Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]``" -" for dict subclasses when key is not in the dictionary." +"Called by :class:`dict`\\ .\\ :meth:`__getitem__` to implement ``self[key]`` " +"for dict subclasses when key is not in the dictionary." msgstr "" -#: ../../reference/datamodel.rst:2211 +#: ../../reference/datamodel.rst:2242 msgid "" "This method is called when an iterator is required for a container. This " "method should return a new iterator object that can iterate over all the " @@ -2656,45 +2679,45 @@ msgid "" "the container." msgstr "" -#: ../../reference/datamodel.rst:2215 +#: ../../reference/datamodel.rst:2246 msgid "" "Iterator objects also need to implement this method; they are required to " -"return themselves. For more information on iterator objects, see " -":ref:`typeiter`." +"return themselves. For more information on iterator objects, see :ref:" +"`typeiter`." msgstr "" -#: ../../reference/datamodel.rst:2221 +#: ../../reference/datamodel.rst:2252 msgid "" "Called (if present) by the :func:`reversed` built-in to implement reverse " "iteration. It should return a new iterator object that iterates over all " "the objects in the container in reverse order." msgstr "" -#: ../../reference/datamodel.rst:2225 +#: ../../reference/datamodel.rst:2256 msgid "" "If the :meth:`__reversed__` method is not provided, the :func:`reversed` " -"built-in will fall back to using the sequence protocol (:meth:`__len__` and " -":meth:`__getitem__`). Objects that support the sequence protocol should " -"only provide :meth:`__reversed__` if they can provide an implementation that" -" is more efficient than the one provided by :func:`reversed`." +"built-in will fall back to using the sequence protocol (:meth:`__len__` and :" +"meth:`__getitem__`). Objects that support the sequence protocol should only " +"provide :meth:`__reversed__` if they can provide an implementation that is " +"more efficient than the one provided by :func:`reversed`." msgstr "" -#: ../../reference/datamodel.rst:2232 +#: ../../reference/datamodel.rst:2263 msgid "" "The membership test operators (:keyword:`in` and :keyword:`not in`) are " -"normally implemented as an iteration through a sequence. However, container" -" objects can supply the following special method with a more efficient " -"implementation, which also does not require the object be a sequence." +"normally implemented as an iteration through a container. However, container " +"objects can supply the following special method with a more efficient " +"implementation, which also does not require the object be iterable." msgstr "" -#: ../../reference/datamodel.rst:2239 +#: ../../reference/datamodel.rst:2270 msgid "" -"Called to implement membership test operators. Should return true if *item*" -" is in *self*, false otherwise. For mapping objects, this should consider " +"Called to implement membership test operators. Should return true if *item* " +"is in *self*, false otherwise. For mapping objects, this should consider " "the keys of the mapping rather than the values or the key-item pairs." msgstr "" -#: ../../reference/datamodel.rst:2243 +#: ../../reference/datamodel.rst:2274 msgid "" "For objects that don't define :meth:`__contains__`, the membership test " "first tries iteration via :meth:`__iter__`, then the old sequence iteration " @@ -2702,57 +2725,56 @@ msgid "" "reference `." msgstr "" -#: ../../reference/datamodel.rst:2252 +#: ../../reference/datamodel.rst:2283 msgid "Emulating numeric types" msgstr "" -#: ../../reference/datamodel.rst:2254 +#: ../../reference/datamodel.rst:2285 msgid "" "The following methods can be defined to emulate numeric objects. Methods " -"corresponding to operations that are not supported by the particular kind of" -" number implemented (e.g., bitwise operations for non-integral numbers) " +"corresponding to operations that are not supported by the particular kind of " +"number implemented (e.g., bitwise operations for non-integral numbers) " "should be left undefined." msgstr "" -#: ../../reference/datamodel.rst:2280 +#: ../../reference/datamodel.rst:2311 msgid "" -"These methods are called to implement the binary arithmetic operations " -"(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, " -":func:`pow`, ``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``). For instance, to" -" evaluate the expression ``x + y``, where *x* is an instance of a class that" -" has an :meth:`__add__` method, ``x.__add__(y)`` is called. The " -":meth:`__divmod__` method should be the equivalent to using " -":meth:`__floordiv__` and :meth:`__mod__`; it should not be related to " -":meth:`__truediv__`. Note that :meth:`__pow__` should be defined to accept " -"an optional third argument if the ternary version of the built-in " -":func:`pow` function is to be supported." +"These methods are called to implement the binary arithmetic operations (``" +"+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " +"``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``). For instance, to evaluate the " +"expression ``x + y``, where *x* is an instance of a class that has an :meth:" +"`__add__` method, ``x.__add__(y)`` is called. The :meth:`__divmod__` method " +"should be the equivalent to using :meth:`__floordiv__` and :meth:`__mod__`; " +"it should not be related to :meth:`__truediv__`. Note that :meth:`__pow__` " +"should be defined to accept an optional third argument if the ternary " +"version of the built-in :func:`pow` function is to be supported." msgstr "" -#: ../../reference/datamodel.rst:2291 +#: ../../reference/datamodel.rst:2322 msgid "" "If one of those methods does not support the operation with the supplied " "arguments, it should return ``NotImplemented``." msgstr "" -#: ../../reference/datamodel.rst:2314 +#: ../../reference/datamodel.rst:2345 msgid "" -"These methods are called to implement the binary arithmetic operations " -"(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, " -":func:`pow`, ``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``) with reflected " -"(swapped) operands. These functions are only called if the left operand " -"does not support the corresponding operation [#]_ and the operands are of " -"different types. [#]_ For instance, to evaluate the expression ``x - y``, " -"where *y* is an instance of a class that has an :meth:`__rsub__` method, " -"``y.__rsub__(x)`` is called if ``x.__sub__(y)`` returns *NotImplemented*." +"These methods are called to implement the binary arithmetic operations (``" +"+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, " +"``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``) with reflected (swapped) " +"operands. These functions are only called if the left operand does not " +"support the corresponding operation [#]_ and the operands are of different " +"types. [#]_ For instance, to evaluate the expression ``x - y``, where *y* is " +"an instance of a class that has an :meth:`__rsub__` method, ``y." +"__rsub__(x)`` is called if ``x.__sub__(y)`` returns *NotImplemented*." msgstr "" -#: ../../reference/datamodel.rst:2325 +#: ../../reference/datamodel.rst:2356 msgid "" "Note that ternary :func:`pow` will not try calling :meth:`__rpow__` (the " "coercion rules would become too complicated)." msgstr "" -#: ../../reference/datamodel.rst:2330 +#: ../../reference/datamodel.rst:2361 msgid "" "If the right operand's type is a subclass of the left operand's type and " "that subclass provides the reflected method for the operation, this method " @@ -2760,35 +2782,35 @@ msgid "" "behavior allows subclasses to override their ancestors' operations." msgstr "" -#: ../../reference/datamodel.rst:2350 +#: ../../reference/datamodel.rst:2381 msgid "" "These methods are called to implement the augmented arithmetic assignments " "(``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, ``**=``, ``<<=``, " "``>>=``, ``&=``, ``^=``, ``|=``). These methods should attempt to do the " -"operation in-place (modifying *self*) and return the result (which could be," -" but does not have to be, *self*). If a specific method is not defined, the" -" augmented assignment falls back to the normal methods. For instance, if " -"*x* is an instance of a class with an :meth:`__iadd__` method, ``x += y`` is" -" equivalent to ``x = x.__iadd__(y)`` . Otherwise, ``x.__add__(y)`` and " -"``y.__radd__(x)`` are considered, as with the evaluation of ``x + y``. In " +"operation in-place (modifying *self*) and return the result (which could be, " +"but does not have to be, *self*). If a specific method is not defined, the " +"augmented assignment falls back to the normal methods. For instance, if *x* " +"is an instance of a class with an :meth:`__iadd__` method, ``x += y`` is " +"equivalent to ``x = x.__iadd__(y)`` . Otherwise, ``x.__add__(y)`` and ``y." +"__radd__(x)`` are considered, as with the evaluation of ``x + y``. In " "certain situations, augmented assignment can result in unexpected errors " "(see :ref:`faq-augmented-assignment-tuple-error`), but this behavior is in " "fact part of the data model." msgstr "" -#: ../../reference/datamodel.rst:2371 +#: ../../reference/datamodel.rst:2402 msgid "" -"Called to implement the unary arithmetic operations (``-``, ``+``, " -":func:`abs` and ``~``)." +"Called to implement the unary arithmetic operations (``-``, ``+``, :func:" +"`abs` and ``~``)." msgstr "" -#: ../../reference/datamodel.rst:2384 +#: ../../reference/datamodel.rst:2415 msgid "" -"Called to implement the built-in functions :func:`complex`, :func:`int` and " -":func:`float`. Should return a value of the appropriate type." +"Called to implement the built-in functions :func:`complex`, :func:`int` and :" +"func:`float`. Should return a value of the appropriate type." msgstr "" -#: ../../reference/datamodel.rst:2391 +#: ../../reference/datamodel.rst:2422 msgid "" "Called to implement :func:`operator.index`, and whenever Python needs to " "losslessly convert the numeric object to an integer object (such as in " @@ -2797,14 +2819,14 @@ msgid "" "integer type. Must return an integer." msgstr "" -#: ../../reference/datamodel.rst:2399 +#: ../../reference/datamodel.rst:2430 msgid "" "In order to have a coherent integer type class, when :meth:`__index__` is " "defined :meth:`__int__` should also be defined, and both should return the " "same value." msgstr "" -#: ../../reference/datamodel.rst:2411 +#: ../../reference/datamodel.rst:2442 msgid "" "Called to implement the built-in function :func:`round` and :mod:`math` " "functions :func:`~math.trunc`, :func:`~math.floor` and :func:`~math.ceil`. " @@ -2813,80 +2835,80 @@ msgid "" "(typically an :class:`int`)." msgstr "" -#: ../../reference/datamodel.rst:2417 +#: ../../reference/datamodel.rst:2448 msgid "" "If :meth:`__int__` is not defined then the built-in function :func:`int` " "falls back to :meth:`__trunc__`." msgstr "" -#: ../../reference/datamodel.rst:2424 +#: ../../reference/datamodel.rst:2455 msgid "With Statement Context Managers" msgstr "" -#: ../../reference/datamodel.rst:2426 +#: ../../reference/datamodel.rst:2457 msgid "" -"A :dfn:`context manager` is an object that defines the runtime context to be" -" established when executing a :keyword:`with` statement. The context manager" -" handles the entry into, and the exit from, the desired runtime context for " +"A :dfn:`context manager` is an object that defines the runtime context to be " +"established when executing a :keyword:`with` statement. The context manager " +"handles the entry into, and the exit from, the desired runtime context for " "the execution of the block of code. Context managers are normally invoked " -"using the :keyword:`!with` statement (described in section :ref:`with`), but" -" can also be used by directly invoking their methods." +"using the :keyword:`!with` statement (described in section :ref:`with`), but " +"can also be used by directly invoking their methods." msgstr "" -#: ../../reference/datamodel.rst:2437 +#: ../../reference/datamodel.rst:2468 msgid "" "Typical uses of context managers include saving and restoring various kinds " "of global state, locking and unlocking resources, closing opened files, etc." msgstr "" -#: ../../reference/datamodel.rst:2440 +#: ../../reference/datamodel.rst:2471 msgid "" "For more information on context managers, see :ref:`typecontextmanager`." msgstr "" -#: ../../reference/datamodel.rst:2445 +#: ../../reference/datamodel.rst:2476 msgid "" "Enter the runtime context related to this object. The :keyword:`with` " -"statement will bind this method's return value to the target(s) specified in" -" the :keyword:`!as` clause of the statement, if any." +"statement will bind this method's return value to the target(s) specified in " +"the :keyword:`!as` clause of the statement, if any." msgstr "" -#: ../../reference/datamodel.rst:2452 +#: ../../reference/datamodel.rst:2483 msgid "" -"Exit the runtime context related to this object. The parameters describe the" -" exception that caused the context to be exited. If the context was exited " +"Exit the runtime context related to this object. The parameters describe the " +"exception that caused the context to be exited. If the context was exited " "without an exception, all three arguments will be :const:`None`." msgstr "" -#: ../../reference/datamodel.rst:2456 +#: ../../reference/datamodel.rst:2487 msgid "" -"If an exception is supplied, and the method wishes to suppress the exception" -" (i.e., prevent it from being propagated), it should return a true value. " +"If an exception is supplied, and the method wishes to suppress the exception " +"(i.e., prevent it from being propagated), it should return a true value. " "Otherwise, the exception will be processed normally upon exit from this " "method." msgstr "" -#: ../../reference/datamodel.rst:2460 +#: ../../reference/datamodel.rst:2491 msgid "" "Note that :meth:`__exit__` methods should not reraise the passed-in " "exception; this is the caller's responsibility." msgstr "" -#: ../../reference/datamodel.rst:2467 +#: ../../reference/datamodel.rst:2498 msgid ":pep:`343` - The \"with\" statement" msgstr ":pep:`343` - The \"with\" statement" -#: ../../reference/datamodel.rst:2467 +#: ../../reference/datamodel.rst:2498 msgid "" "The specification, background, and examples for the Python :keyword:`with` " "statement." msgstr "" -#: ../../reference/datamodel.rst:2474 +#: ../../reference/datamodel.rst:2505 msgid "Special method lookup" msgstr "" -#: ../../reference/datamodel.rst:2476 +#: ../../reference/datamodel.rst:2507 msgid "" "For custom classes, implicit invocations of special methods are only " "guaranteed to work correctly if defined on an object's type, not in the " @@ -2894,7 +2916,7 @@ msgid "" "following code raises an exception::" msgstr "" -#: ../../reference/datamodel.rst:2491 +#: ../../reference/datamodel.rst:2522 msgid "" "The rationale behind this behaviour lies with a number of special methods " "such as :meth:`__hash__` and :meth:`__repr__` that are implemented by all " @@ -2903,21 +2925,21 @@ msgid "" "type object itself::" msgstr "" -#: ../../reference/datamodel.rst:2504 +#: ../../reference/datamodel.rst:2535 msgid "" -"Incorrectly attempting to invoke an unbound method of a class in this way is" -" sometimes referred to as 'metaclass confusion', and is avoided by bypassing" -" the instance when looking up special methods::" +"Incorrectly attempting to invoke an unbound method of a class in this way is " +"sometimes referred to as 'metaclass confusion', and is avoided by bypassing " +"the instance when looking up special methods::" msgstr "" -#: ../../reference/datamodel.rst:2513 +#: ../../reference/datamodel.rst:2544 msgid "" "In addition to bypassing any instance attributes in the interest of " -"correctness, implicit special method lookup generally also bypasses the " -":meth:`__getattribute__` method even of the object's metaclass::" +"correctness, implicit special method lookup generally also bypasses the :" +"meth:`__getattribute__` method even of the object's metaclass::" msgstr "" -#: ../../reference/datamodel.rst:2539 +#: ../../reference/datamodel.rst:2570 msgid "" "Bypassing the :meth:`__getattribute__` machinery in this fashion provides " "significant scope for speed optimisations within the interpreter, at the " @@ -2926,206 +2948,205 @@ msgid "" "invoked by the interpreter)." msgstr "" -#: ../../reference/datamodel.rst:2550 +#: ../../reference/datamodel.rst:2581 msgid "Coroutines" msgstr "Coroutines" -#: ../../reference/datamodel.rst:2554 +#: ../../reference/datamodel.rst:2585 msgid "Awaitable Objects" msgstr "" -#: ../../reference/datamodel.rst:2556 +#: ../../reference/datamodel.rst:2587 msgid "" "An :term:`awaitable` object generally implements an :meth:`__await__` " "method. :term:`Coroutine` objects returned from :keyword:`async def` " "functions are awaitable." msgstr "" -#: ../../reference/datamodel.rst:2562 +#: ../../reference/datamodel.rst:2593 msgid "" "The :term:`generator iterator` objects returned from generators decorated " "with :func:`types.coroutine` or :func:`asyncio.coroutine` are also " "awaitable, but they do not implement :meth:`__await__`." msgstr "" -#: ../../reference/datamodel.rst:2568 +#: ../../reference/datamodel.rst:2599 msgid "" -"Must return an :term:`iterator`. Should be used to implement " -":term:`awaitable` objects. For instance, :class:`asyncio.Future` implements" -" this method to be compatible with the :keyword:`await` expression." +"Must return an :term:`iterator`. Should be used to implement :term:" +"`awaitable` objects. For instance, :class:`asyncio.Future` implements this " +"method to be compatible with the :keyword:`await` expression." msgstr "" -#: ../../reference/datamodel.rst:2574 +#: ../../reference/datamodel.rst:2605 msgid ":pep:`492` for additional information about awaitable objects." msgstr "" -#: ../../reference/datamodel.rst:2580 +#: ../../reference/datamodel.rst:2611 msgid "Coroutine Objects" msgstr "Objetos Coroutine" -#: ../../reference/datamodel.rst:2582 +#: ../../reference/datamodel.rst:2613 msgid "" ":term:`Coroutine` objects are :term:`awaitable` objects. A coroutine's " "execution can be controlled by calling :meth:`__await__` and iterating over " "the result. When the coroutine has finished executing and returns, the " -"iterator raises :exc:`StopIteration`, and the exception's " -":attr:`~StopIteration.value` attribute holds the return value. If the " -"coroutine raises an exception, it is propagated by the iterator. Coroutines" -" should not directly raise unhandled :exc:`StopIteration` exceptions." +"iterator raises :exc:`StopIteration`, and the exception's :attr:" +"`~StopIteration.value` attribute holds the return value. If the coroutine " +"raises an exception, it is propagated by the iterator. Coroutines should " +"not directly raise unhandled :exc:`StopIteration` exceptions." msgstr "" -#: ../../reference/datamodel.rst:2590 +#: ../../reference/datamodel.rst:2621 msgid "" "Coroutines also have the methods listed below, which are analogous to those " "of generators (see :ref:`generator-methods`). However, unlike generators, " "coroutines do not directly support iteration." msgstr "" -#: ../../reference/datamodel.rst:2594 +#: ../../reference/datamodel.rst:2625 msgid "It is a :exc:`RuntimeError` to await on a coroutine more than once." msgstr "" -#: ../../reference/datamodel.rst:2600 +#: ../../reference/datamodel.rst:2631 msgid "" "Starts or resumes execution of the coroutine. If *value* is ``None``, this " "is equivalent to advancing the iterator returned by :meth:`__await__`. If " -"*value* is not ``None``, this method delegates to the " -":meth:`~generator.send` method of the iterator that caused the coroutine to " -"suspend. The result (return value, :exc:`StopIteration`, or other " -"exception) is the same as when iterating over the :meth:`__await__` return " -"value, described above." +"*value* is not ``None``, this method delegates to the :meth:`~generator." +"send` method of the iterator that caused the coroutine to suspend. The " +"result (return value, :exc:`StopIteration`, or other exception) is the same " +"as when iterating over the :meth:`__await__` return value, described above." msgstr "" -#: ../../reference/datamodel.rst:2610 +#: ../../reference/datamodel.rst:2641 msgid "" "Raises the specified exception in the coroutine. This method delegates to " "the :meth:`~generator.throw` method of the iterator that caused the " "coroutine to suspend, if it has such a method. Otherwise, the exception is " -"raised at the suspension point. The result (return value, " -":exc:`StopIteration`, or other exception) is the same as when iterating over" -" the :meth:`__await__` return value, described above. If the exception is " -"not caught in the coroutine, it propagates back to the caller." +"raised at the suspension point. The result (return value, :exc:" +"`StopIteration`, or other exception) is the same as when iterating over the :" +"meth:`__await__` return value, described above. If the exception is not " +"caught in the coroutine, it propagates back to the caller." msgstr "" -#: ../../reference/datamodel.rst:2621 +#: ../../reference/datamodel.rst:2652 msgid "" "Causes the coroutine to clean itself up and exit. If the coroutine is " "suspended, this method first delegates to the :meth:`~generator.close` " "method of the iterator that caused the coroutine to suspend, if it has such " "a method. Then it raises :exc:`GeneratorExit` at the suspension point, " -"causing the coroutine to immediately clean itself up. Finally, the coroutine" -" is marked as having finished executing, even if it was never started." +"causing the coroutine to immediately clean itself up. Finally, the coroutine " +"is marked as having finished executing, even if it was never started." msgstr "" -#: ../../reference/datamodel.rst:2629 +#: ../../reference/datamodel.rst:2660 msgid "" -"Coroutine objects are automatically closed using the above process when they" -" are about to be destroyed." +"Coroutine objects are automatically closed using the above process when they " +"are about to be destroyed." msgstr "" -#: ../../reference/datamodel.rst:2635 +#: ../../reference/datamodel.rst:2666 msgid "Asynchronous Iterators" msgstr "Iteradores Assíncronos" -#: ../../reference/datamodel.rst:2637 +#: ../../reference/datamodel.rst:2668 msgid "" "An *asynchronous iterator* can call asynchronous code in its ``__anext__`` " "method." msgstr "" -#: ../../reference/datamodel.rst:2640 +#: ../../reference/datamodel.rst:2671 msgid "" "Asynchronous iterators can be used in an :keyword:`async for` statement." msgstr "" -#: ../../reference/datamodel.rst:2644 +#: ../../reference/datamodel.rst:2675 msgid "Must return an *asynchronous iterator* object." msgstr "" -#: ../../reference/datamodel.rst:2648 +#: ../../reference/datamodel.rst:2679 msgid "" "Must return an *awaitable* resulting in a next value of the iterator. " "Should raise a :exc:`StopAsyncIteration` error when the iteration is over." msgstr "" -#: ../../reference/datamodel.rst:2651 +#: ../../reference/datamodel.rst:2682 msgid "An example of an asynchronous iterable object::" msgstr "" -#: ../../reference/datamodel.rst:2668 +#: ../../reference/datamodel.rst:2699 msgid "" "Prior to Python 3.7, ``__aiter__`` could return an *awaitable* that would " "resolve to an :term:`asynchronous iterator `." msgstr "" -#: ../../reference/datamodel.rst:2673 +#: ../../reference/datamodel.rst:2704 msgid "" -"Starting with Python 3.7, ``__aiter__`` must return an asynchronous iterator" -" object. Returning anything else will result in a :exc:`TypeError` error." +"Starting with Python 3.7, ``__aiter__`` must return an asynchronous iterator " +"object. Returning anything else will result in a :exc:`TypeError` error." msgstr "" -#: ../../reference/datamodel.rst:2681 +#: ../../reference/datamodel.rst:2712 msgid "Asynchronous Context Managers" msgstr "" -#: ../../reference/datamodel.rst:2683 +#: ../../reference/datamodel.rst:2714 msgid "" "An *asynchronous context manager* is a *context manager* that is able to " "suspend execution in its ``__aenter__`` and ``__aexit__`` methods." msgstr "" -#: ../../reference/datamodel.rst:2686 +#: ../../reference/datamodel.rst:2717 msgid "" "Asynchronous context managers can be used in an :keyword:`async with` " "statement." msgstr "" -#: ../../reference/datamodel.rst:2690 +#: ../../reference/datamodel.rst:2721 msgid "" "This method is semantically similar to the :meth:`__enter__`, with only " "difference that it must return an *awaitable*." msgstr "" -#: ../../reference/datamodel.rst:2695 +#: ../../reference/datamodel.rst:2726 msgid "" "This method is semantically similar to the :meth:`__exit__`, with only " "difference that it must return an *awaitable*." msgstr "" -#: ../../reference/datamodel.rst:2698 +#: ../../reference/datamodel.rst:2729 msgid "An example of an asynchronous context manager class::" msgstr "" -#: ../../reference/datamodel.rst:2711 +#: ../../reference/datamodel.rst:2742 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../reference/datamodel.rst:2712 +#: ../../reference/datamodel.rst:2743 msgid "" "It *is* possible in some cases to change an object's type, under certain " "controlled conditions. It generally isn't a good idea though, since it can " "lead to some very strange behaviour if it is handled incorrectly." msgstr "" -#: ../../reference/datamodel.rst:2716 +#: ../../reference/datamodel.rst:2747 msgid "" -"The :meth:`__hash__`, :meth:`__iter__`, :meth:`__reversed__`, and " -":meth:`__contains__` methods have special handling for this; others will " -"still raise a :exc:`TypeError`, but may do so by relying on the behavior " -"that ``None`` is not callable." +"The :meth:`__hash__`, :meth:`__iter__`, :meth:`__reversed__`, and :meth:" +"`__contains__` methods have special handling for this; others will still " +"raise a :exc:`TypeError`, but may do so by relying on the behavior that " +"``None`` is not callable." msgstr "" -#: ../../reference/datamodel.rst:2721 +#: ../../reference/datamodel.rst:2752 msgid "" "\"Does not support\" here means that the class has no such method, or the " -"method returns ``NotImplemented``. Do not set the method to ``None`` if you" -" want to force fallback to the right operand's reflected method—that will " +"method returns ``NotImplemented``. Do not set the method to ``None`` if you " +"want to force fallback to the right operand's reflected method—that will " "instead have the opposite effect of explicitly *blocking* such fallback." msgstr "" -#: ../../reference/datamodel.rst:2727 +#: ../../reference/datamodel.rst:2758 msgid "" "For operands of the same type, it is assumed that if the non-reflected " -"method (such as :meth:`__add__`) fails the operation is not supported, which" -" is why the reflected method is not called." +"method (such as :meth:`__add__`) fails the operation is not supported, which " +"is why the reflected method is not called." msgstr "" diff --git a/reference/executionmodel.po b/reference/executionmodel.po index 01614c1ec..399d099f7 100644 --- a/reference/executionmodel.po +++ b/reference/executionmodel.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Leticia Portella , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-14 11:26+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,14 +35,14 @@ msgstr "" #: ../../reference/executionmodel.rst:19 msgid "" "A Python program is constructed from code blocks. A :dfn:`block` is a piece " -"of Python program text that is executed as a unit. The following are blocks:" -" a module, a function body, and a class definition. Each command typed " +"of Python program text that is executed as a unit. The following are blocks: " +"a module, a function body, and a class definition. Each command typed " "interactively is a block. A script file (a file given as standard input to " "the interpreter or specified as a command line argument to the interpreter) " "is a code block. A script command (a command specified on the interpreter " "command line with the :option:`-c` option) is a code block. The string " -"argument passed to the built-in functions :func:`eval` and :func:`exec` is a" -" code block." +"argument passed to the built-in functions :func:`eval` and :func:`exec` is a " +"code block." msgstr "" #: ../../reference/executionmodel.rst:31 @@ -67,9 +68,9 @@ msgstr "" #: ../../reference/executionmodel.rst:57 msgid "" -"The following constructs bind names: formal parameters to functions, " -":keyword:`import` statements, class and function definitions (these bind the" -" class or function name in the defining block), and targets that are " +"The following constructs bind names: formal parameters to functions, :" +"keyword:`import` statements, class and function definitions (these bind the " +"class or function name in the defining block), and targets that are " "identifiers if occurring in an assignment, :keyword:`for` loop header, or " "after :keyword:`!as` in a :keyword:`with` statement or :keyword:`except` " "clause. The :keyword:`!import` statement of the form ``from ... import *`` " @@ -85,17 +86,17 @@ msgstr "" #: ../../reference/executionmodel.rst:70 msgid "" -"Each assignment or import statement occurs within a block defined by a class" -" or function definition or at the module level (the top-level code block)." +"Each assignment or import statement occurs within a block defined by a class " +"or function definition or at the module level (the top-level code block)." msgstr "" #: ../../reference/executionmodel.rst:75 msgid "" "If a name is bound in a block, it is a local variable of that block, unless " -"declared as :keyword:`nonlocal` or :keyword:`global`. If a name is bound at" -" the module level, it is a global variable. (The variables of the module " -"code block are local and global.) If a variable is used in a code block but" -" not defined there, it is a :dfn:`free variable`." +"declared as :keyword:`nonlocal` or :keyword:`global`. If a name is bound at " +"the module level, it is a global variable. (The variables of the module " +"code block are local and global.) If a variable is used in a code block but " +"not defined there, it is a :dfn:`free variable`." msgstr "" #: ../../reference/executionmodel.rst:81 @@ -129,14 +130,14 @@ msgid "" "When a name is not found at all, a :exc:`NameError` exception is raised. If " "the current scope is a function scope, and the name refers to a local " "variable that has not yet been bound to a value at the point where the name " -"is used, an :exc:`UnboundLocalError` exception is raised. " -":exc:`UnboundLocalError` is a subclass of :exc:`NameError`." +"is used, an :exc:`UnboundLocalError` exception is raised. :exc:" +"`UnboundLocalError` is a subclass of :exc:`NameError`." msgstr "" #: ../../reference/executionmodel.rst:113 msgid "" -"If a name binding operation occurs anywhere within a code block, all uses of" -" the name within the block are treated as references to the current block. " +"If a name binding operation occurs anywhere within a code block, all uses of " +"the name within the block are treated as references to the current block. " "This can lead to errors when a name is used within a block before it is " "bound. This rule is subtle. Python lacks declarations and allows name " "binding operations to occur anywhere within a code block. The local " @@ -147,13 +148,13 @@ msgstr "" #: ../../reference/executionmodel.rst:120 msgid "" "If the :keyword:`global` statement occurs within a block, all uses of the " -"name specified in the statement refer to the binding of that name in the " -"top-level namespace. Names are resolved in the top-level namespace by " -"searching the global namespace, i.e. the namespace of the module containing " -"the code block, and the builtins namespace, the namespace of the module " -":mod:`builtins`. The global namespace is searched first. If the name is " -"not found there, the builtins namespace is searched. The :keyword:`!global`" -" statement must precede all uses of the name." +"name specified in the statement refer to the binding of that name in the top-" +"level namespace. Names are resolved in the top-level namespace by searching " +"the global namespace, i.e. the namespace of the module containing the code " +"block, and the builtins namespace, the namespace of the module :mod:" +"`builtins`. The global namespace is searched first. If the name is not " +"found there, the builtins namespace is searched. The :keyword:`!global` " +"statement must precede all uses of the name." msgstr "" #: ../../reference/executionmodel.rst:129 @@ -167,9 +168,9 @@ msgstr "" #: ../../reference/executionmodel.rst:135 msgid "" "The :keyword:`nonlocal` statement causes corresponding names to refer to " -"previously bound variables in the nearest enclosing function scope. " -":exc:`SyntaxError` is raised at compile time if the given name does not " -"exist in any enclosing function scope." +"previously bound variables in the nearest enclosing function scope. :exc:" +"`SyntaxError` is raised at compile time if the given name does not exist in " +"any enclosing function scope." msgstr "" #: ../../reference/executionmodel.rst:142 @@ -185,8 +186,8 @@ msgid "" "executable statement that may use and define names. These references follow " "the normal rules for name resolution with an exception that unbound local " "variables are looked up in the global namespace. The namespace of the class " -"definition becomes the attribute dictionary of the class. The scope of names" -" defined in a class block is limited to the class block; it does not extend " +"definition becomes the attribute dictionary of the class. The scope of names " +"defined in a class block is limited to the class block; it does not extend " "to the code blocks of methods -- this includes comprehensions and generator " "expressions since they are implemented using a function scope. This means " "that the following will fail::" @@ -199,8 +200,8 @@ msgstr "" #: ../../reference/executionmodel.rst:169 msgid "" "Users should not touch ``__builtins__``; it is strictly an implementation " -"detail. Users wanting to override values in the builtins namespace should " -":keyword:`import` the :mod:`builtins` module and modify its attributes " +"detail. Users wanting to override values in the builtins namespace should :" +"keyword:`import` the :mod:`builtins` module and modify its attributes " "appropriately." msgstr "" @@ -210,9 +211,9 @@ msgid "" "actually found by looking up the name ``__builtins__`` in its global " "namespace; this should be a dictionary or a module (in the latter case the " "module's dictionary is used). By default, when in the :mod:`__main__` " -"module, ``__builtins__`` is the built-in module :mod:`builtins`; when in any" -" other module, ``__builtins__`` is an alias for the dictionary of the " -":mod:`builtins` module itself." +"module, ``__builtins__`` is the built-in module :mod:`builtins`; when in any " +"other module, ``__builtins__`` is an alias for the dictionary of the :mod:" +"`builtins` module itself." msgstr "" #: ../../reference/executionmodel.rst:186 @@ -230,10 +231,10 @@ msgid "" "The :func:`eval` and :func:`exec` functions do not have access to the full " "environment for resolving names. Names may be resolved in the local and " "global namespaces of the caller. Free variables are not resolved in the " -"nearest enclosing namespace, but in the global namespace. [#]_ The " -":func:`exec` and :func:`eval` functions have optional arguments to override " -"the global and local namespace. If only one namespace is specified, it is " -"used for both." +"nearest enclosing namespace, but in the global namespace. [#]_ The :func:" +"`exec` and :func:`eval` functions have optional arguments to override the " +"global and local namespace. If only one namespace is specified, it is used " +"for both." msgstr "" #: ../../reference/executionmodel.rst:210 @@ -254,49 +255,49 @@ msgid "" "The Python interpreter raises an exception when it detects a run-time error " "(such as division by zero). A Python program can also explicitly raise an " "exception with the :keyword:`raise` statement. Exception handlers are " -"specified with the :keyword:`try` ... :keyword:`except` statement. The " -":keyword:`finally` clause of such a statement can be used to specify cleanup" -" code which does not handle the exception, but is executed whether an " +"specified with the :keyword:`try` ... :keyword:`except` statement. The :" +"keyword:`finally` clause of such a statement can be used to specify cleanup " +"code which does not handle the exception, but is executed whether an " "exception occurred or not in the preceding code." msgstr "" #: ../../reference/executionmodel.rst:237 msgid "" "Python uses the \"termination\" model of error handling: an exception " -"handler can find out what happened and continue execution at an outer level," -" but it cannot repair the cause of the error and retry the failing operation" -" (except by re-entering the offending piece of code from the top)." +"handler can find out what happened and continue execution at an outer level, " +"but it cannot repair the cause of the error and retry the failing operation " +"(except by re-entering the offending piece of code from the top)." msgstr "" #: ../../reference/executionmodel.rst:244 msgid "" "When an exception is not handled at all, the interpreter terminates " "execution of the program, or returns to its interactive main loop. In " -"either case, it prints a stack traceback, except when the exception is " -":exc:`SystemExit`." +"either case, it prints a stack traceback, except when the exception is :exc:" +"`SystemExit`." msgstr "" #: ../../reference/executionmodel.rst:248 msgid "" "Exceptions are identified by class instances. The :keyword:`except` clause " "is selected depending on the class of the instance: it must reference the " -"class of the instance or a base class thereof. The instance can be received" -" by the handler and can carry additional information about the exceptional " +"class of the instance or a base class thereof. The instance can be received " +"by the handler and can carry additional information about the exceptional " "condition." msgstr "" #: ../../reference/executionmodel.rst:255 msgid "" "Exception messages are not part of the Python API. Their contents may " -"change from one version of Python to the next without warning and should not" -" be relied on by code which will run under multiple versions of the " +"change from one version of Python to the next without warning and should not " +"be relied on by code which will run under multiple versions of the " "interpreter." msgstr "" #: ../../reference/executionmodel.rst:259 msgid "" -"See also the description of the :keyword:`try` statement in section " -":ref:`try` and :keyword:`raise` statement in section :ref:`raise`." +"See also the description of the :keyword:`try` statement in section :ref:" +"`try` and :keyword:`raise` statement in section :ref:`raise`." msgstr "" #: ../../reference/executionmodel.rst:264 @@ -305,6 +306,6 @@ msgstr "Notas de rodapé" #: ../../reference/executionmodel.rst:265 msgid "" -"This limitation occurs because the code that is executed by these operations" -" is not available at the time the module is compiled." +"This limitation occurs because the code that is executed by these operations " +"is not available at the time the module is compiled." msgstr "" diff --git a/reference/expressions.po b/reference/expressions.po index de6bdd0bf..0082dc66f 100644 --- a/reference/expressions.po +++ b/reference/expressions.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Adorilson Bezerra , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Misael borges , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-12 03:27+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,7 +55,7 @@ msgstr "" #: ../../reference/expressions.rst:30 msgid "" "When a description of an arithmetic operator below uses the phrase \"the " -"numeric arguments are converted to a common type,\" this means that the " +"numeric arguments are converted to a common type\", this means that the " "operator implementation for built-in types works as follows:" msgstr "" @@ -96,16 +98,16 @@ msgstr "" #: ../../reference/expressions.rst:70 msgid "" -"An identifier occurring as an atom is a name. See section " -":ref:`identifiers` for lexical definition and section :ref:`naming` for " +"An identifier occurring as an atom is a name. See section :ref:" +"`identifiers` for lexical definition and section :ref:`naming` for " "documentation of naming and binding." msgstr "" #: ../../reference/expressions.rst:76 msgid "" "When the name is bound to an object, evaluation of the atom yields that " -"object. When a name is not bound, an attempt to evaluate it raises a " -":exc:`NameError` exception." +"object. When a name is not bound, an attempt to evaluate it raises a :exc:" +"`NameError` exception." msgstr "" #: ../../reference/expressions.rst:84 @@ -114,9 +116,9 @@ msgid "" "class definition begins with two or more underscore characters and does not " "end in two or more underscores, it is considered a :dfn:`private name` of " "that class. Private names are transformed to a longer form before code is " -"generated for them. The transformation inserts the class name, with leading" -" underscores removed and a single underscore inserted, in front of the name." -" For example, the identifier ``__spam`` occurring in a class named ``Ham`` " +"generated for them. The transformation inserts the class name, with leading " +"underscores removed and a single underscore inserted, in front of the name. " +"For example, the identifier ``__spam`` occurring in a class named ``Ham`` " "will be transformed to ``_Ham__spam``. This transformation is independent " "of the syntactical context in which the identifier is used. If the " "transformed name is extremely long (longer than 255 characters), " @@ -129,8 +131,7 @@ msgid "Literals" msgstr "Literais" #: ../../reference/expressions.rst:104 -msgid "" -"Python supports string and bytes literals and various numeric literals:" +msgid "Python supports string and bytes literals and various numeric literals:" msgstr "" #: ../../reference/expressions.rst:110 @@ -144,8 +145,8 @@ msgstr "" #: ../../reference/expressions.rst:119 msgid "" "All literals correspond to immutable data types, and hence the object's " -"identity is less important than its value. Multiple evaluations of literals" -" with the same value (either the same occurrence in the program text or a " +"identity is less important than its value. Multiple evaluations of literals " +"with the same value (either the same occurrence in the program text or a " "different occurrence) may obtain the same object or a different object with " "the same value." msgstr "" @@ -161,24 +162,24 @@ msgstr "" #: ../../reference/expressions.rst:140 msgid "" -"A parenthesized expression list yields whatever that expression list yields:" -" if the list contains at least one comma, it yields a tuple; otherwise, it " +"A parenthesized expression list yields whatever that expression list yields: " +"if the list contains at least one comma, it yields a tuple; otherwise, it " "yields the single expression that makes up the expression list." msgstr "" #: ../../reference/expressions.rst:146 msgid "" -"An empty pair of parentheses yields an empty tuple object. Since tuples are" -" immutable, the same rules as for literals apply (i.e., two occurrences of " +"An empty pair of parentheses yields an empty tuple object. Since tuples are " +"immutable, the same rules as for literals apply (i.e., two occurrences of " "the empty tuple may or may not yield the same object)." msgstr "" #: ../../reference/expressions.rst:154 msgid "" -"Note that tuples are not formed by the parentheses, but rather by use of the" -" comma operator. The exception is the empty tuple, for which parentheses " -"*are* required --- allowing unparenthesized \"nothing\" in expressions would" -" cause ambiguities and allow common typos to pass uncaught." +"Note that tuples are not formed by the parentheses, but rather by use of the " +"comma operator. The exception is the empty tuple, for which parentheses " +"*are* required --- allowing unparenthesized \"nothing\" in expressions would " +"cause ambiguities and allow common typos to pass uncaught." msgstr "" #: ../../reference/expressions.rst:163 @@ -197,8 +198,8 @@ msgstr "" #: ../../reference/expressions.rst:170 msgid "" -"they are computed via a set of looping and filtering instructions, called a " -":dfn:`comprehension`." +"they are computed via a set of looping and filtering instructions, called a :" +"dfn:`comprehension`." msgstr "" #: ../../reference/expressions.rst:178 @@ -207,20 +208,19 @@ msgstr "" #: ../../reference/expressions.rst:186 msgid "" -"The comprehension consists of a single expression followed by at least one " -":keyword:`!for` clause and zero or more :keyword:`!for` or :keyword:`!if` " +"The comprehension consists of a single expression followed by at least one :" +"keyword:`!for` clause and zero or more :keyword:`!for` or :keyword:`!if` " "clauses. In this case, the elements of the new container are those that " -"would be produced by considering each of the :keyword:`!for` or " -":keyword:`!if` clauses a block, nesting from left to right, and evaluating " -"the expression to produce an element each time the innermost block is " -"reached." +"would be produced by considering each of the :keyword:`!for` or :keyword:`!" +"if` clauses a block, nesting from left to right, and evaluating the " +"expression to produce an element each time the innermost block is reached." msgstr "" #: ../../reference/expressions.rst:193 msgid "" "However, aside from the iterable expression in the leftmost :keyword:`!for` " -"clause, the comprehension is executed in a separate implicitly nested scope." -" This ensures that names assigned to in the target list don't \"leak\" into " +"clause, the comprehension is executed in a separate implicitly nested scope. " +"This ensures that names assigned to in the target list don't \"leak\" into " "the enclosing scope." msgstr "" @@ -236,19 +236,19 @@ msgstr "" #: ../../reference/expressions.rst:204 msgid "" -"To ensure the comprehension always results in a container of the appropriate" -" type, ``yield`` and ``yield from`` expressions are prohibited in the " -"implicitly nested scope (in Python 3.7, such expressions emit " -":exc:`DeprecationWarning` when compiled, in Python 3.8+ they will emit " -":exc:`SyntaxError`)." +"To ensure the comprehension always results in a container of the appropriate " +"type, ``yield`` and ``yield from`` expressions are prohibited in the " +"implicitly nested scope (in Python 3.7, such expressions emit :exc:" +"`DeprecationWarning` when compiled, in Python 3.8+ they will emit :exc:" +"`SyntaxError`)." msgstr "" #: ../../reference/expressions.rst:212 msgid "" "Since Python 3.6, in an :keyword:`async def` function, an :keyword:`!async " "for` clause may be used to iterate over a :term:`asynchronous iterator`. A " -"comprehension in an :keyword:`!async def` function may consist of either a " -":keyword:`!for` or :keyword:`!async for` clause following the leading " +"comprehension in an :keyword:`!async def` function may consist of either a :" +"keyword:`!for` or :keyword:`!async for` clause following the leading " "expression, may contain additional :keyword:`!for` or :keyword:`!async for` " "clauses, and may also use :keyword:`await` expressions. If a comprehension " "contains either :keyword:`!async for` clauses or :keyword:`!await` " @@ -262,8 +262,7 @@ msgid "Asynchronous comprehensions were introduced." msgstr "" #: ../../reference/expressions.rst:227 ../../reference/expressions.rst:394 -msgid "" -"``yield`` and ``yield from`` deprecated in the implicitly nested scope." +msgid "``yield`` and ``yield from`` deprecated in the implicitly nested scope." msgstr "" #: ../../reference/expressions.rst:234 @@ -292,8 +291,8 @@ msgstr "" #: ../../reference/expressions.rst:268 msgid "" -"A set display is denoted by curly braces and distinguishable from dictionary" -" displays by the lack of colons separating keys and values:" +"A set display is denoted by curly braces and distinguishable from dictionary " +"displays by the lack of colons separating keys and values:" msgstr "" #: ../../reference/expressions.rst:274 @@ -352,15 +351,15 @@ msgstr "" msgid "" "A dict comprehension, in contrast to list and set comprehensions, needs two " "expressions separated with a colon followed by the usual \"for\" and \"if\" " -"clauses. When the comprehension is run, the resulting key and value elements" -" are inserted in the new dictionary in the order they are produced." +"clauses. When the comprehension is run, the resulting key and value elements " +"are inserted in the new dictionary in the order they are produced." msgstr "" #: ../../reference/expressions.rst:334 msgid "" -"Restrictions on the types of the key values are listed earlier in section " -":ref:`types`. (To summarize, the key type should be :term:`hashable`, which" -" excludes all mutable objects.) Clashes between duplicate keys are not " +"Restrictions on the types of the key values are listed earlier in section :" +"ref:`types`. (To summarize, the key type should be :term:`hashable`, which " +"excludes all mutable objects.) Clashes between duplicate keys are not " "detected; the last datum (textually rightmost in the display) stored for a " "given key value prevails." msgstr "" @@ -382,40 +381,40 @@ msgstr "" #: ../../reference/expressions.rst:360 msgid "" -"Variables used in the generator expression are evaluated lazily when the " -":meth:`~generator.__next__` method is called for the generator object (in " -"the same fashion as normal generators). However, the iterable expression in" -" the leftmost :keyword:`!for` clause is immediately evaluated, so that an " -"error produced by it will be emitted at the point where the generator " -"expression is defined, rather than at the point where the first value is " -"retrieved. Subsequent :keyword:`!for` clauses and any filter condition in " -"the leftmost :keyword:`!for` clause cannot be evaluated in the enclosing " -"scope as they may depend on the values obtained from the leftmost iterable. " -"For example: ``(x*y for x in range(10) for y in range(x, x+10))``." +"Variables used in the generator expression are evaluated lazily when the :" +"meth:`~generator.__next__` method is called for the generator object (in the " +"same fashion as normal generators). However, the iterable expression in the " +"leftmost :keyword:`!for` clause is immediately evaluated, so that an error " +"produced by it will be emitted at the point where the generator expression " +"is defined, rather than at the point where the first value is retrieved. " +"Subsequent :keyword:`!for` clauses and any filter condition in the leftmost :" +"keyword:`!for` clause cannot be evaluated in the enclosing scope as they may " +"depend on the values obtained from the leftmost iterable. For example: " +"``(x*y for x in range(10) for y in range(x, x+10))``." msgstr "" #: ../../reference/expressions.rst:371 msgid "" -"The parentheses can be omitted on calls with only one argument. See section" -" :ref:`calls` for details." +"The parentheses can be omitted on calls with only one argument. See " +"section :ref:`calls` for details." msgstr "" #: ../../reference/expressions.rst:374 msgid "" -"To avoid interfering with the expected operation of the generator expression" -" itself, ``yield`` and ``yield from`` expressions are prohibited in the " -"implicitly defined generator (in Python 3.7, such expressions emit " -":exc:`DeprecationWarning` when compiled, in Python 3.8+ they will emit " -":exc:`SyntaxError`)." +"To avoid interfering with the expected operation of the generator expression " +"itself, ``yield`` and ``yield from`` expressions are prohibited in the " +"implicitly defined generator (in Python 3.7, such expressions emit :exc:" +"`DeprecationWarning` when compiled, in Python 3.8+ they will emit :exc:" +"`SyntaxError`)." msgstr "" #: ../../reference/expressions.rst:380 msgid "" -"If a generator expression contains either :keyword:`!async for` clauses or " -":keyword:`await` expressions it is called an :dfn:`asynchronous generator " +"If a generator expression contains either :keyword:`!async for` clauses or :" +"keyword:`await` expressions it is called an :dfn:`asynchronous generator " "expression`. An asynchronous generator expression returns a new " -"asynchronous generator object, which is an asynchronous iterator (see :ref" -":`async-iterators`)." +"asynchronous generator object, which is an asynchronous iterator (see :ref:" +"`async-iterators`)." msgstr "" #: ../../reference/expressions.rst:386 @@ -424,8 +423,8 @@ msgstr "" #: ../../reference/expressions.rst:389 msgid "" -"Prior to Python 3.7, asynchronous generator expressions could only appear in" -" :keyword:`async def` coroutines. Starting with 3.7, any function can use " +"Prior to Python 3.7, asynchronous generator expressions could only appear " +"in :keyword:`async def` coroutines. Starting with 3.7, any function can use " "asynchronous generator expressions." msgstr "" @@ -438,18 +437,18 @@ msgid "" "The yield expression is used when defining a :term:`generator` function or " "an :term:`asynchronous generator` function and thus can only be used in the " "body of a function definition. Using a yield expression in a function's " -"body causes that function to be a generator, and using it in an " -":keyword:`async def` function's body causes that coroutine function to be an" -" asynchronous generator. For example::" +"body causes that function to be a generator, and using it in an :keyword:" +"`async def` function's body causes that coroutine function to be an " +"asynchronous generator. For example::" msgstr "" #: ../../reference/expressions.rst:426 msgid "" -"Due to their side effects on the containing scope, ``yield`` expressions are" -" not permitted as part of the implicitly defined scopes used to implement " +"Due to their side effects on the containing scope, ``yield`` expressions are " +"not permitted as part of the implicitly defined scopes used to implement " "comprehensions and generator expressions (in Python 3.7, such expressions " -"emit :exc:`DeprecationWarning` when compiled, in Python 3.8+ they will emit " -":exc:`SyntaxError`).." +"emit :exc:`DeprecationWarning` when compiled, in Python 3.8+ they will emit :" +"exc:`SyntaxError`).." msgstr "" #: ../../reference/expressions.rst:432 @@ -470,19 +469,19 @@ msgid "" "When a generator function is called, it returns an iterator known as a " "generator. That generator then controls the execution of the generator " "function. The execution starts when one of the generator's methods is " -"called. At that time, the execution proceeds to the first yield expression," -" where it is suspended again, returning the value of " -":token:`expression_list` to the generator's caller. By suspended, we mean " -"that all local state is retained, including the current bindings of local " -"variables, the instruction pointer, the internal evaluation stack, and the " -"state of any exception handling. When the execution is resumed by calling " -"one of the generator's methods, the function can proceed exactly as if the " -"yield expression were just another external call. The value of the yield " -"expression after resuming depends on the method which resumed the execution." -" If :meth:`~generator.__next__` is used (typically via either a " -":keyword:`for` or the :func:`next` builtin) then the result is " -":const:`None`. Otherwise, if :meth:`~generator.send` is used, then the " -"result will be the value passed in to that method." +"called. At that time, the execution proceeds to the first yield expression, " +"where it is suspended again, returning the value of :token:`expression_list` " +"to the generator's caller. By suspended, we mean that all local state is " +"retained, including the current bindings of local variables, the instruction " +"pointer, the internal evaluation stack, and the state of any exception " +"handling. When the execution is resumed by calling one of the generator's " +"methods, the function can proceed exactly as if the yield expression were " +"just another external call. The value of the yield expression after " +"resuming depends on the method which resumed the execution. If :meth:" +"`~generator.__next__` is used (typically via either a :keyword:`for` or the :" +"func:`next` builtin) then the result is :const:`None`. Otherwise, if :meth:" +"`~generator.send` is used, then the result will be the value passed in to " +"that method." msgstr "" #: ../../reference/expressions.rst:459 @@ -490,39 +489,38 @@ msgid "" "All of this makes generator functions quite similar to coroutines; they " "yield multiple times, they have more than one entry point and their " "execution can be suspended. The only difference is that a generator " -"function cannot control where the execution should continue after it yields;" -" the control is always transferred to the generator's caller." +"function cannot control where the execution should continue after it yields; " +"the control is always transferred to the generator's caller." msgstr "" #: ../../reference/expressions.rst:465 msgid "" "Yield expressions are allowed anywhere in a :keyword:`try` construct. If " "the generator is not resumed before it is finalized (by reaching a zero " -"reference count or by being garbage collected), the generator-iterator's " -":meth:`~generator.close` method will be called, allowing any pending " -":keyword:`finally` clauses to execute." +"reference count or by being garbage collected), the generator-iterator's :" +"meth:`~generator.close` method will be called, allowing any pending :keyword:" +"`finally` clauses to execute." msgstr "" #: ../../reference/expressions.rst:474 msgid "" "When ``yield from `` is used, it treats the supplied expression as a " "subiterator. All values produced by that subiterator are passed directly to " -"the caller of the current generator's methods. Any values passed in with " -":meth:`~generator.send` and any exceptions passed in with " -":meth:`~generator.throw` are passed to the underlying iterator if it has the" -" appropriate methods. If this is not the case, then :meth:`~generator.send`" -" will raise :exc:`AttributeError` or :exc:`TypeError`, while " -":meth:`~generator.throw` will just raise the passed in exception " -"immediately." +"the caller of the current generator's methods. Any values passed in with :" +"meth:`~generator.send` and any exceptions passed in with :meth:`~generator." +"throw` are passed to the underlying iterator if it has the appropriate " +"methods. If this is not the case, then :meth:`~generator.send` will raise :" +"exc:`AttributeError` or :exc:`TypeError`, while :meth:`~generator.throw` " +"will just raise the passed in exception immediately." msgstr "" #: ../../reference/expressions.rst:483 msgid "" "When the underlying iterator is complete, the :attr:`~StopIteration.value` " "attribute of the raised :exc:`StopIteration` instance becomes the value of " -"the yield expression. It can be either set explicitly when raising " -":exc:`StopIteration`, or automatically when the subiterator is a generator " -"(by returning a value from the subgenerator)." +"the yield expression. It can be either set explicitly when raising :exc:" +"`StopIteration`, or automatically when the subiterator is a generator (by " +"returning a value from the subgenerator)." msgstr "" #: ../../reference/expressions.rst:489 @@ -551,8 +549,8 @@ msgstr "" #: ../../reference/expressions.rst:501 msgid "" -"The proposal to enhance the API and syntax of generators, making them usable" -" as simple coroutines." +"The proposal to enhance the API and syntax of generators, making them usable " +"as simple coroutines." msgstr "" #: ../../reference/expressions.rst:506 @@ -571,8 +569,8 @@ msgstr "" #: ../../reference/expressions.rst:509 msgid "" -"The proposal that expanded on :pep:`492` by adding generator capabilities to" -" coroutine functions." +"The proposal that expanded on :pep:`492` by adding generator capabilities to " +"coroutine functions." msgstr "" #: ../../reference/expressions.rst:516 @@ -594,19 +592,19 @@ msgstr "" #: ../../reference/expressions.rst:529 msgid "" "Starts the execution of a generator function or resumes it at the last " -"executed yield expression. When a generator function is resumed with a " -":meth:`~generator.__next__` method, the current yield expression always " +"executed yield expression. When a generator function is resumed with a :" +"meth:`~generator.__next__` method, the current yield expression always " "evaluates to :const:`None`. The execution then continues to the next yield " -"expression, where the generator is suspended again, and the value of the " -":token:`expression_list` is returned to :meth:`__next__`'s caller. If the " +"expression, where the generator is suspended again, and the value of the :" +"token:`expression_list` is returned to :meth:`__next__`'s caller. If the " "generator exits without yielding another value, a :exc:`StopIteration` " "exception is raised." msgstr "" #: ../../reference/expressions.rst:538 msgid "" -"This method is normally called implicitly, e.g. by a :keyword:`for` loop, or" -" by the built-in :func:`next` function." +"This method is normally called implicitly, e.g. by a :keyword:`for` loop, or " +"by the built-in :func:`next` function." msgstr "" #: ../../reference/expressions.rst:544 @@ -625,20 +623,20 @@ msgid "" "Raises an exception of type ``type`` at the point where the generator was " "paused, and returns the next value yielded by the generator function. If " "the generator exits without yielding another value, a :exc:`StopIteration` " -"exception is raised. If the generator function does not catch the passed-in" -" exception, or raises a different exception, then that exception propagates " +"exception is raised. If the generator function does not catch the passed-in " +"exception, or raises a different exception, then that exception propagates " "to the caller." msgstr "" #: ../../reference/expressions.rst:566 msgid "" "Raises a :exc:`GeneratorExit` at the point where the generator function was " -"paused. If the generator function then exits gracefully, is already closed," -" or raises :exc:`GeneratorExit` (by not catching the exception), close " -"returns to its caller. If the generator yields a value, a " -":exc:`RuntimeError` is raised. If the generator raises any other exception," -" it is propagated to the caller. :meth:`close` does nothing if the " -"generator has already exited due to an exception or normal exit." +"paused. If the generator function then exits gracefully, is already closed, " +"or raises :exc:`GeneratorExit` (by not catching the exception), close " +"returns to its caller. If the generator yields a value, a :exc:" +"`RuntimeError` is raised. If the generator raises any other exception, it " +"is propagated to the caller. :meth:`close` does nothing if the generator " +"has already exited due to an exception or normal exit." msgstr "" #: ../../reference/expressions.rst:577 @@ -663,38 +661,37 @@ msgstr "" #: ../../reference/expressions.rst:614 msgid "" -"The presence of a yield expression in a function or method defined using " -":keyword:`async def` further defines the function as an :term:`asynchronous " +"The presence of a yield expression in a function or method defined using :" +"keyword:`async def` further defines the function as an :term:`asynchronous " "generator` function." msgstr "" #: ../../reference/expressions.rst:618 msgid "" "When an asynchronous generator function is called, it returns an " -"asynchronous iterator known as an asynchronous generator object. That object" -" then controls the execution of the generator function. An asynchronous " -"generator object is typically used in an :keyword:`async for` statement in a" -" coroutine function analogously to how a generator object would be used in a" -" :keyword:`for` statement." +"asynchronous iterator known as an asynchronous generator object. That object " +"then controls the execution of the generator function. An asynchronous " +"generator object is typically used in an :keyword:`async for` statement in a " +"coroutine function analogously to how a generator object would be used in a :" +"keyword:`for` statement." msgstr "" #: ../../reference/expressions.rst:625 msgid "" -"Calling one of the asynchronous generator's methods returns an " -":term:`awaitable` object, and the execution starts when this object is " -"awaited on. At that time, the execution proceeds to the first yield " -"expression, where it is suspended again, returning the value of " -":token:`expression_list` to the awaiting coroutine. As with a generator, " -"suspension means that all local state is retained, including the current " -"bindings of local variables, the instruction pointer, the internal " -"evaluation stack, and the state of any exception handling. When the " -"execution is resumed by awaiting on the next object returned by the " -"asynchronous generator's methods, the function can proceed exactly as if the" -" yield expression were just another external call. The value of the yield " -"expression after resuming depends on the method which resumed the execution." -" If :meth:`~agen.__anext__` is used then the result is :const:`None`. " -"Otherwise, if :meth:`~agen.asend` is used, then the result will be the value" -" passed in to that method." +"Calling one of the asynchronous generator's methods returns an :term:" +"`awaitable` object, and the execution starts when this object is awaited on. " +"At that time, the execution proceeds to the first yield expression, where it " +"is suspended again, returning the value of :token:`expression_list` to the " +"awaiting coroutine. As with a generator, suspension means that all local " +"state is retained, including the current bindings of local variables, the " +"instruction pointer, the internal evaluation stack, and the state of any " +"exception handling. When the execution is resumed by awaiting on the next " +"object returned by the asynchronous generator's methods, the function can " +"proceed exactly as if the yield expression were just another external call. " +"The value of the yield expression after resuming depends on the method which " +"resumed the execution. If :meth:`~agen.__anext__` is used then the result " +"is :const:`None`. Otherwise, if :meth:`~agen.asend` is used, then the result " +"will be the value passed in to that method." msgstr "" #: ../../reference/expressions.rst:641 @@ -707,20 +704,20 @@ msgid "" "pending :keyword:`finally` clauses. In this case, it is the responsibility " "of the event loop or scheduler running the asynchronous generator to call " "the asynchronous generator-iterator's :meth:`~agen.aclose` method and run " -"the resulting coroutine object, thus allowing any pending " -":keyword:`!finally` clauses to execute." +"the resulting coroutine object, thus allowing any pending :keyword:`!" +"finally` clauses to execute." msgstr "" #: ../../reference/expressions.rst:652 msgid "" "To take care of finalization, an event loop should define a *finalizer* " -"function which takes an asynchronous generator-iterator and presumably calls" -" :meth:`~agen.aclose` and executes the coroutine. This *finalizer* may be " -"registered by calling :func:`sys.set_asyncgen_hooks`. When first iterated " +"function which takes an asynchronous generator-iterator and presumably " +"calls :meth:`~agen.aclose` and executes the coroutine. This *finalizer* may " +"be registered by calling :func:`sys.set_asyncgen_hooks`. When first iterated " "over, an asynchronous generator-iterator will store the registered " "*finalizer* to be called upon finalization. For a reference example of a " -"*finalizer* method see the implementation of " -"``asyncio.Loop.shutdown_asyncgens`` in :source:`Lib/asyncio/base_events.py`." +"*finalizer* method see the implementation of ``asyncio.Loop." +"shutdown_asyncgens`` in :source:`Lib/asyncio/base_events.py`." msgstr "" #: ../../reference/expressions.rst:661 @@ -735,8 +732,8 @@ msgstr "" #: ../../reference/expressions.rst:670 msgid "" -"This subsection describes the methods of an asynchronous generator iterator," -" which are used to control the execution of a generator function." +"This subsection describes the methods of an asynchronous generator iterator, " +"which are used to control the execution of a generator function." msgstr "" #: ../../reference/expressions.rst:678 @@ -763,23 +760,23 @@ msgid "" "Returns an awaitable which when run resumes the execution of the " "asynchronous generator. As with the :meth:`~generator.send()` method for a " "generator, this \"sends\" a value into the asynchronous generator function, " -"and the *value* argument becomes the result of the current yield expression." -" The awaitable returned by the :meth:`asend` method will return the next " -"value yielded by the generator as the value of the raised " -":exc:`StopIteration`, or raises :exc:`StopAsyncIteration` if the " -"asynchronous generator exits without yielding another value. When " -":meth:`asend` is called to start the asynchronous generator, it must be " -"called with :const:`None` as the argument, because there is no yield " -"expression that could receive the value." +"and the *value* argument becomes the result of the current yield expression. " +"The awaitable returned by the :meth:`asend` method will return the next " +"value yielded by the generator as the value of the raised :exc:" +"`StopIteration`, or raises :exc:`StopAsyncIteration` if the asynchronous " +"generator exits without yielding another value. When :meth:`asend` is " +"called to start the asynchronous generator, it must be called with :const:" +"`None` as the argument, because there is no yield expression that could " +"receive the value." msgstr "" #: ../../reference/expressions.rst:710 msgid "" "Returns an awaitable that raises an exception of type ``type`` at the point " "where the asynchronous generator was paused, and returns the next value " -"yielded by the generator function as the value of the raised " -":exc:`StopIteration` exception. If the asynchronous generator exits without" -" yielding another value, a :exc:`StopAsyncIteration` exception is raised by " +"yielded by the generator function as the value of the raised :exc:" +"`StopIteration` exception. If the asynchronous generator exits without " +"yielding another value, a :exc:`StopAsyncIteration` exception is raised by " "the awaitable. If the generator function does not catch the passed-in " "exception, or raises a different exception, then when the awaitable is run " "that exception propagates to the caller of the awaitable." @@ -788,9 +785,9 @@ msgstr "" #: ../../reference/expressions.rst:725 msgid "" "Returns an awaitable that when run will throw a :exc:`GeneratorExit` into " -"the asynchronous generator function at the point where it was paused. If the" -" asynchronous generator function then exits gracefully, is already closed, " -"or raises :exc:`GeneratorExit` (by not catching the exception), then the " +"the asynchronous generator function at the point where it was paused. If the " +"asynchronous generator function then exits gracefully, is already closed, or " +"raises :exc:`GeneratorExit` (by not catching the exception), then the " "returned awaitable will raise a :exc:`StopIteration` exception. Any further " "awaitables returned by subsequent calls to the asynchronous generator will " "raise a :exc:`StopAsyncIteration` exception. If the asynchronous generator " @@ -807,8 +804,8 @@ msgstr "" #: ../../reference/expressions.rst:745 msgid "" -"Primaries represent the most tightly bound operations of the language. Their" -" syntax is:" +"Primaries represent the most tightly bound operations of the language. Their " +"syntax is:" msgstr "" #: ../../reference/expressions.rst:755 @@ -822,12 +819,12 @@ msgstr "" #: ../../reference/expressions.rst:771 msgid "" "The primary must evaluate to an object of a type that supports attribute " -"references, which most objects do. This object is then asked to produce the" -" attribute whose name is the identifier. This production can be customized " +"references, which most objects do. This object is then asked to produce the " +"attribute whose name is the identifier. This production can be customized " "by overriding the :meth:`__getattr__` method. If this attribute is not " "available, the exception :exc:`AttributeError` is raised. Otherwise, the " -"type and value of the object produced is determined by the object. Multiple" -" evaluations of the same attribute reference may yield different objects." +"type and value of the object produced is determined by the object. Multiple " +"evaluations of the same attribute reference may yield different objects." msgstr "" #: ../../reference/expressions.rst:783 @@ -843,8 +840,8 @@ msgstr "" #: ../../reference/expressions.rst:804 msgid "" "The primary must evaluate to an object that supports subscription (lists or " -"dictionaries for example). User-defined objects can support subscription by" -" defining a :meth:`__getitem__` method." +"dictionaries for example). User-defined objects can support subscription by " +"defining a :meth:`__getitem__` method." msgstr "" #: ../../reference/expressions.rst:808 @@ -857,8 +854,8 @@ msgstr "" msgid "" "If the primary is a mapping, the expression list must evaluate to an object " "whose value is one of the keys of the mapping, and the subscription selects " -"the value in the mapping that corresponds to that key. (The expression list" -" is a tuple except if it has exactly one item.)" +"the value in the mapping that corresponds to that key. (The expression list " +"is a tuple except if it has exactly one item.)" msgstr "" #: ../../reference/expressions.rst:815 @@ -871,8 +868,8 @@ msgstr "" msgid "" "The formal syntax makes no special provision for negative indices in " "sequences; however, built-in sequences all provide a :meth:`__getitem__` " -"method that interprets negative indices by adding the length of the sequence" -" to the index (so that ``x[-1]`` selects the last item of ``x``). The " +"method that interprets negative indices by adding the length of the sequence " +"to the index (so that ``x[-1]`` selects the last item of ``x``). The " "resulting value must be a nonnegative integer less than the number of items " "in the sequence, and the subscription selects the item whose index is that " "value (counting from zero). Since the support for negative indices and " @@ -901,8 +898,8 @@ msgstr "" msgid "" "There is ambiguity in the formal syntax here: anything that looks like an " "expression list also looks like a slice list, so any subscription can be " -"interpreted as a slicing. Rather than further complicating the syntax, this" -" is disambiguated by defining that in this case the interpretation as a " +"interpreted as a slicing. Rather than further complicating the syntax, this " +"is disambiguated by defining that in this case the interpretation as a " "subscription takes priority over the interpretation as a slicing (this is " "the case if the slice list contains no proper slice)." msgstr "" @@ -915,11 +912,11 @@ msgid "" "at least one comma, the key is a tuple containing the conversion of the " "slice items; otherwise, the conversion of the lone slice item is the key. " "The conversion of a slice item that is an expression is that expression. " -"The conversion of a proper slice is a slice object (see section " -":ref:`types`) whose :attr:`~slice.start`, :attr:`~slice.stop` and " -":attr:`~slice.step` attributes are the values of the expressions given as " -"lower bound, upper bound and stride, respectively, substituting ``None`` for" -" missing expressions." +"The conversion of a proper slice is a slice object (see section :ref:" +"`types`) whose :attr:`~slice.start`, :attr:`~slice.stop` and :attr:`~slice." +"step` attributes are the values of the expressions given as lower bound, " +"upper bound and stride, respectively, substituting ``None`` for missing " +"expressions." msgstr "" #: ../../reference/expressions.rst:902 @@ -944,8 +941,8 @@ msgid "" "built-in functions, methods of built-in objects, class objects, methods of " "class instances, and all objects having a :meth:`__call__` method are " "callable). All argument expressions are evaluated before the call is " -"attempted. Please refer to section :ref:`function` for the syntax of formal" -" :term:`parameter` lists." +"attempted. Please refer to section :ref:`function` for the syntax of " +"formal :term:`parameter` lists." msgstr "" #: ../../reference/expressions.rst:934 @@ -972,11 +969,11 @@ msgstr "" #: ../../reference/expressions.rst:954 msgid "" -"An implementation may provide built-in functions whose positional parameters" -" do not have names, even if they are 'named' for the purpose of " +"An implementation may provide built-in functions whose positional parameters " +"do not have names, even if they are 'named' for the purpose of " "documentation, and which therefore cannot be supplied by keyword. In " -"CPython, this is the case for functions implemented in C that use " -":c:func:`PyArg_ParseTuple` to parse their arguments." +"CPython, this is the case for functions implemented in C that use :c:func:" +"`PyArg_ParseTuple` to parse their arguments." msgstr "" #: ../../reference/expressions.rst:960 @@ -984,14 +981,14 @@ msgid "" "If there are more positional arguments than there are formal parameter " "slots, a :exc:`TypeError` exception is raised, unless a formal parameter " "using the syntax ``*identifier`` is present; in this case, that formal " -"parameter receives a tuple containing the excess positional arguments (or an" -" empty tuple if there were no excess positional arguments)." +"parameter receives a tuple containing the excess positional arguments (or an " +"empty tuple if there were no excess positional arguments)." msgstr "" #: ../../reference/expressions.rst:966 msgid "" -"If any keyword argument does not correspond to a formal parameter name, a " -":exc:`TypeError` exception is raised, unless a formal parameter using the " +"If any keyword argument does not correspond to a formal parameter name, a :" +"exc:`TypeError` exception is raised, unless a formal parameter using the " "syntax ``**identifier`` is present; in this case, that formal parameter " "receives a dictionary containing the excess keyword arguments (using the " "keywords as keys and the argument values as corresponding values), or a " @@ -1004,14 +1001,14 @@ msgid "" "must evaluate to an :term:`iterable`. Elements from these iterables are " "treated as if they were additional positional arguments. For the call " "``f(x1, x2, *y, x3, x4)``, if *y* evaluates to a sequence *y1*, ..., *yM*, " -"this is equivalent to a call with M+4 positional arguments *x1*, *x2*, *y1*," -" ..., *yM*, *x3*, *x4*." +"this is equivalent to a call with M+4 positional arguments *x1*, *x2*, " +"*y1*, ..., *yM*, *x3*, *x4*." msgstr "" #: ../../reference/expressions.rst:984 msgid "" -"A consequence of this is that although the ``*expression`` syntax may appear" -" *after* explicit keyword arguments, it is processed *before* the keyword " +"A consequence of this is that although the ``*expression`` syntax may appear " +"*after* explicit keyword arguments, it is processed *before* the keyword " "arguments (and any ``**expression`` arguments -- see below). So::" msgstr "" @@ -1102,11 +1099,11 @@ msgstr "" #: ../../reference/expressions.rst:1076 msgid "" -"The class must define a :meth:`__call__` method; the effect is then the same" -" as if that method was called." +"The class must define a :meth:`__call__` method; the effect is then the same " +"as if that method was called." msgstr "" -#: ../../reference/expressions.rst:1084 ../../reference/expressions.rst:1830 +#: ../../reference/expressions.rst:1084 ../../reference/expressions.rst:1831 msgid "Await expression" msgstr "" @@ -1136,8 +1133,8 @@ msgstr "" #: ../../reference/expressions.rst:1114 msgid "" "The power operator has the same semantics as the built-in :func:`pow` " -"function, when called with two arguments: it yields its left argument raised" -" to the power of its right argument. The numeric arguments are first " +"function, when called with two arguments: it yields its left argument raised " +"to the power of its right argument. The numeric arguments are first " "converted to a common type, and the result is of that type." msgstr "" @@ -1152,9 +1149,8 @@ msgstr "" #: ../../reference/expressions.rst:1124 msgid "" "Raising ``0.0`` to a negative power results in a :exc:`ZeroDivisionError`. " -"Raising a negative number to a fractional power results in a " -":class:`complex` number. (In earlier versions it raised a " -":exc:`ValueError`.)" +"Raising a negative number to a fractional power results in a :class:" +"`complex` number. (In earlier versions it raised a :exc:`ValueError`.)" msgstr "" #: ../../reference/expressions.rst:1132 @@ -1167,8 +1163,7 @@ msgstr "" #: ../../reference/expressions.rst:1149 msgid "" -"The unary ``-`` (minus) operator yields the negation of its numeric " -"argument." +"The unary ``-`` (minus) operator yields the negation of its numeric argument." msgstr "" #: ../../reference/expressions.rst:1156 @@ -1178,14 +1173,14 @@ msgstr "" #: ../../reference/expressions.rst:1162 msgid "" "The unary ``~`` (invert) operator yields the bitwise inversion of its " -"integer argument. The bitwise inversion of ``x`` is defined as ``-(x+1)``." -" It only applies to integral numbers." +"integer argument. The bitwise inversion of ``x`` is defined as ``-(x+1)``. " +"It only applies to integral numbers." msgstr "" #: ../../reference/expressions.rst:1168 msgid "" -"In all three cases, if the argument does not have the proper type, a " -":exc:`TypeError` exception is raised." +"In all three cases, if the argument does not have the proper type, a :exc:" +"`TypeError` exception is raised." msgstr "" #: ../../reference/expressions.rst:1175 @@ -1195,8 +1190,8 @@ msgstr "" #: ../../reference/expressions.rst:1179 msgid "" "The binary arithmetic operations have the conventional priority levels. " -"Note that some of these operations also apply to certain non-numeric types." -" Apart from the power operator, there are only two levels, one for " +"Note that some of these operations also apply to certain non-numeric types. " +"Apart from the power operator, there are only two levels, one for " "multiplicative operators and one for additive operators:" msgstr "" @@ -1219,8 +1214,8 @@ msgstr "" #: ../../reference/expressions.rst:1215 msgid "" "The ``/`` (division) and ``//`` (floor division) operators yield the " -"quotient of their arguments. The numeric arguments are first converted to a" -" common type. Division of integers yields a float, while floor division of " +"quotient of their arguments. The numeric arguments are first converted to a " +"common type. Division of integers yields a float, while floor division of " "integers results in an integer; the result is that of mathematical division " "with the 'floor' function applied to the result. Division by zero raises " "the :exc:`ZeroDivisionError` exception." @@ -1233,8 +1228,8 @@ msgid "" "a common type. A zero right argument raises the :exc:`ZeroDivisionError` " "exception. The arguments may be floating point numbers, e.g., ``3.14%0.7`` " "equals ``0.34`` (since ``3.14`` equals ``4*0.7 + 0.34``.) The modulo " -"operator always yields a result with the same sign as its second operand (or" -" zero); the absolute value of the result is strictly smaller than the " +"operator always yields a result with the same sign as its second operand (or " +"zero); the absolute value of the result is strictly smaller than the " "absolute value of the second operand [#]_." msgstr "" @@ -1242,8 +1237,8 @@ msgstr "" msgid "" "The floor division and modulo operators are connected by the following " "identity: ``x == (x//y)*y + (x%y)``. Floor division and modulo are also " -"connected with the built-in function :func:`divmod`: ``divmod(x, y) == " -"(x//y, x%y)``. [#]_." +"connected with the built-in function :func:`divmod`: ``divmod(x, y) == (x//" +"y, x%y)``. [#]_." msgstr "" #: ../../reference/expressions.rst:1240 @@ -1265,9 +1260,9 @@ msgstr "" #: ../../reference/expressions.rst:1254 msgid "" "The ``+`` (addition) operator yields the sum of its arguments. The " -"arguments must either both be numbers or both be sequences of the same type." -" In the former case, the numbers are converted to a common type and then " -"added together. In the latter case, the sequences are concatenated." +"arguments must either both be numbers or both be sequences of the same " +"type. In the former case, the numbers are converted to a common type and " +"then added together. In the latter case, the sequences are concatenated." msgstr "" #: ../../reference/expressions.rst:1264 @@ -1287,8 +1282,8 @@ msgstr "" #: ../../reference/expressions.rst:1283 msgid "" -"These operators accept integers as arguments. They shift the first argument" -" to the left or right by the number of bits given by the second argument." +"These operators accept integers as arguments. They shift the first argument " +"to the left or right by the number of bits given by the second argument." msgstr "" #: ../../reference/expressions.rst:1288 @@ -1319,8 +1314,8 @@ msgstr "" #: ../../reference/expressions.rst:1326 msgid "" -"The ``|`` operator yields the bitwise (inclusive) OR of its arguments, which" -" must be integers." +"The ``|`` operator yields the bitwise (inclusive) OR of its arguments, which " +"must be integers." msgstr "" #: ../../reference/expressions.rst:1333 @@ -1349,17 +1344,17 @@ msgstr "" #: ../../reference/expressions.rst:1363 msgid "" -"Formally, if *a*, *b*, *c*, ..., *y*, *z* are expressions and *op1*, *op2*, " -"..., *opN* are comparison operators, then ``a op1 b op2 c ... y opN z`` is " -"equivalent to ``a op1 b and b op2 c and ... y opN z``, except that each " -"expression is evaluated at most once." +"Formally, if *a*, *b*, *c*, ..., *y*, *z* are expressions and *op1*, " +"*op2*, ..., *opN* are comparison operators, then ``a op1 b op2 c ... y opN " +"z`` is equivalent to ``a op1 b and b op2 c and ... y opN z``, except that " +"each expression is evaluated at most once." msgstr "" #: ../../reference/expressions.rst:1368 msgid "" -"Note that ``a op1 b op2 c`` doesn't imply any kind of comparison between *a*" -" and *c*, so that, e.g., ``x < y > z`` is perfectly legal (though perhaps " -"not pretty)." +"Note that ``a op1 b op2 c`` doesn't imply any kind of comparison between *a* " +"and *c*, so that, e.g., ``x < y > z`` is perfectly legal (though perhaps not " +"pretty)." msgstr "" #: ../../reference/expressions.rst:1373 @@ -1374,8 +1369,8 @@ msgstr "" #: ../../reference/expressions.rst:1378 msgid "" -"Chapter :ref:`objects` states that objects have a value (in addition to type" -" and identity). The value of an object is a rather abstract notion in " +"Chapter :ref:`objects` states that objects have a value (in addition to type " +"and identity). The value of an object is a rather abstract notion in " "Python: For example, there is no canonical access method for an object's " "value. Also, there is no requirement that the value of an object should be " "constructed in a particular way, e.g. comprised of all its data attributes. " @@ -1386,16 +1381,16 @@ msgstr "" #: ../../reference/expressions.rst:1387 msgid "" -"Because all types are (direct or indirect) subtypes of :class:`object`, they" -" inherit the default comparison behavior from :class:`object`. Types can " +"Because all types are (direct or indirect) subtypes of :class:`object`, they " +"inherit the default comparison behavior from :class:`object`. Types can " "customize their comparison behavior by implementing :dfn:`rich comparison " "methods` like :meth:`__lt__`, described in :ref:`customization`." msgstr "" #: ../../reference/expressions.rst:1393 msgid "" -"The default behavior for equality comparison (``==`` and ``!=``) is based on" -" the identity of the objects. Hence, equality comparison of instances with " +"The default behavior for equality comparison (``==`` and ``!=``) is based on " +"the identity of the objects. Hence, equality comparison of instances with " "the same identity results in equality, and equality comparison of instances " "with different identities results in inequality. A motivation for this " "default behavior is the desire that all objects should be reflexive (i.e. " @@ -1405,8 +1400,8 @@ msgstr "" #: ../../reference/expressions.rst:1400 msgid "" "A default order comparison (``<``, ``>``, ``<=``, and ``>=``) is not " -"provided; an attempt raises :exc:`TypeError`. A motivation for this default" -" behavior is the lack of a similar invariant as for equality." +"provided; an attempt raises :exc:`TypeError`. A motivation for this default " +"behavior is the lack of a similar invariant as for equality." msgstr "" #: ../../reference/expressions.rst:1404 @@ -1428,10 +1423,10 @@ msgstr "" msgid "" "Numbers of built-in numeric types (:ref:`typesnumeric`) and of the standard " "library types :class:`fractions.Fraction` and :class:`decimal.Decimal` can " -"be compared within and across their types, with the restriction that complex" -" numbers do not support order comparison. Within the limits of the types " -"involved, they compare mathematically (algorithmically) correct without loss" -" of precision." +"be compared within and across their types, with the restriction that complex " +"numbers do not support order comparison. Within the limits of the types " +"involved, they compare mathematically (algorithmically) correct without loss " +"of precision." msgstr "" #: ../../reference/expressions.rst:1420 @@ -1439,30 +1434,30 @@ msgid "" "The not-a-number values ``float('NaN')`` and ``decimal.Decimal('NaN')`` are " "special. Any ordered comparison of a number to a not-a-number value is " "false. A counter-intuitive implication is that not-a-number values are not " -"equal to themselves. For example, if ``x = float('NaN')``, ``3 < x``, ``x <" -" 3``, ``x == x``, ``x != x`` are all false. This behavior is compliant with" -" IEEE 754." +"equal to themselves. For example, if ``x = float('NaN')``, ``3 < x``, ``x < " +"3`` and ``x == x`` are all false, while ``x != x`` is true. This behavior " +"is compliant with IEEE 754." msgstr "" -#: ../../reference/expressions.rst:1426 +#: ../../reference/expressions.rst:1427 msgid "" "Binary sequences (instances of :class:`bytes` or :class:`bytearray`) can be " "compared within and across their types. They compare lexicographically " "using the numeric values of their elements." msgstr "" -#: ../../reference/expressions.rst:1430 +#: ../../reference/expressions.rst:1431 msgid "" "Strings (instances of :class:`str`) compare lexicographically using the " -"numerical Unicode code points (the result of the built-in function " -":func:`ord`) of their characters. [#]_" +"numerical Unicode code points (the result of the built-in function :func:" +"`ord`) of their characters. [#]_" msgstr "" -#: ../../reference/expressions.rst:1434 +#: ../../reference/expressions.rst:1435 msgid "Strings and binary sequences cannot be directly compared." msgstr "" -#: ../../reference/expressions.rst:1436 +#: ../../reference/expressions.rst:1437 msgid "" "Sequences (instances of :class:`tuple`, :class:`list`, or :class:`range`) " "can be compared only within each of their types, with the restriction that " @@ -1471,13 +1466,13 @@ msgid "" "raises :exc:`TypeError`." msgstr "" -#: ../../reference/expressions.rst:1442 +#: ../../reference/expressions.rst:1443 msgid "" "Sequences compare lexicographically using comparison of corresponding " "elements, whereby reflexivity of the elements is enforced." msgstr "" -#: ../../reference/expressions.rst:1445 +#: ../../reference/expressions.rst:1446 msgid "" "In enforcing reflexivity of elements, the comparison of collections assumes " "that for a collection element ``x``, ``x == x`` is always true. Based on " @@ -1485,24 +1480,24 @@ msgid "" "is performed only for distinct elements. This approach yields the same " "result as a strict element comparison would, if the compared elements are " "reflexive. For non-reflexive elements, the result is different than for " -"strict element comparison, and may be surprising: The non-reflexive " -"not-a-number values for example result in the following comparison behavior " -"when used in a list::" +"strict element comparison, and may be surprising: The non-reflexive not-a-" +"number values for example result in the following comparison behavior when " +"used in a list::" msgstr "" -#: ../../reference/expressions.rst:1463 +#: ../../reference/expressions.rst:1464 msgid "" "Lexicographical comparison between built-in collections works as follows:" msgstr "" -#: ../../reference/expressions.rst:1465 +#: ../../reference/expressions.rst:1466 msgid "" "For two collections to compare equal, they must be of the same type, have " "the same length, and each pair of corresponding elements must compare equal " "(for example, ``[1,2] == (1,2)`` is false because the type is not the same)." msgstr "" -#: ../../reference/expressions.rst:1470 +#: ../../reference/expressions.rst:1471 msgid "" "Collections that support order comparison are ordered the same as their " "first unequal elements (for example, ``[1,2,x] <= [1,2,y]`` has the same " @@ -1511,165 +1506,165 @@ msgid "" "true)." msgstr "" -#: ../../reference/expressions.rst:1476 +#: ../../reference/expressions.rst:1477 msgid "" -"Mappings (instances of :class:`dict`) compare equal if and only if they have" -" equal `(key, value)` pairs. Equality comparison of the keys and values " +"Mappings (instances of :class:`dict`) compare equal if and only if they have " +"equal `(key, value)` pairs. Equality comparison of the keys and values " "enforces reflexivity." msgstr "" -#: ../../reference/expressions.rst:1480 +#: ../../reference/expressions.rst:1481 msgid "" "Order comparisons (``<``, ``>``, ``<=``, and ``>=``) raise :exc:`TypeError`." msgstr "" -#: ../../reference/expressions.rst:1482 +#: ../../reference/expressions.rst:1483 msgid "" "Sets (instances of :class:`set` or :class:`frozenset`) can be compared " "within and across their types." msgstr "" -#: ../../reference/expressions.rst:1485 +#: ../../reference/expressions.rst:1486 msgid "" "They define order comparison operators to mean subset and superset tests. " "Those relations do not define total orderings (for example, the two sets " "``{1,2}`` and ``{2,3}`` are not equal, nor subsets of one another, nor " "supersets of one another). Accordingly, sets are not appropriate arguments " -"for functions which depend on total ordering (for example, :func:`min`, " -":func:`max`, and :func:`sorted` produce undefined results given a list of " +"for functions which depend on total ordering (for example, :func:`min`, :" +"func:`max`, and :func:`sorted` produce undefined results given a list of " "sets as inputs)." msgstr "" -#: ../../reference/expressions.rst:1493 +#: ../../reference/expressions.rst:1494 msgid "Comparison of sets enforces reflexivity of its elements." msgstr "" -#: ../../reference/expressions.rst:1495 +#: ../../reference/expressions.rst:1496 msgid "" "Most other built-in types have no comparison methods implemented, so they " "inherit the default comparison behavior." msgstr "" -#: ../../reference/expressions.rst:1498 +#: ../../reference/expressions.rst:1499 msgid "" "User-defined classes that customize their comparison behavior should follow " "some consistency rules, if possible:" msgstr "" -#: ../../reference/expressions.rst:1501 +#: ../../reference/expressions.rst:1502 msgid "" "Equality comparison should be reflexive. In other words, identical objects " "should compare equal:" msgstr "" -#: ../../reference/expressions.rst:1504 +#: ../../reference/expressions.rst:1505 msgid "``x is y`` implies ``x == y``" msgstr "" -#: ../../reference/expressions.rst:1506 +#: ../../reference/expressions.rst:1507 msgid "" "Comparison should be symmetric. In other words, the following expressions " "should have the same result:" msgstr "" -#: ../../reference/expressions.rst:1509 +#: ../../reference/expressions.rst:1510 msgid "``x == y`` and ``y == x``" msgstr "" -#: ../../reference/expressions.rst:1511 +#: ../../reference/expressions.rst:1512 msgid "``x != y`` and ``y != x``" msgstr "" -#: ../../reference/expressions.rst:1513 +#: ../../reference/expressions.rst:1514 msgid "``x < y`` and ``y > x``" msgstr "" -#: ../../reference/expressions.rst:1515 +#: ../../reference/expressions.rst:1516 msgid "``x <= y`` and ``y >= x``" msgstr "" -#: ../../reference/expressions.rst:1517 +#: ../../reference/expressions.rst:1518 msgid "" "Comparison should be transitive. The following (non-exhaustive) examples " "illustrate that:" msgstr "" -#: ../../reference/expressions.rst:1520 +#: ../../reference/expressions.rst:1521 msgid "``x > y and y > z`` implies ``x > z``" msgstr "" -#: ../../reference/expressions.rst:1522 +#: ../../reference/expressions.rst:1523 msgid "``x < y and y <= z`` implies ``x < z``" msgstr "" -#: ../../reference/expressions.rst:1524 +#: ../../reference/expressions.rst:1525 msgid "" "Inverse comparison should result in the boolean negation. In other words, " "the following expressions should have the same result:" msgstr "" -#: ../../reference/expressions.rst:1527 +#: ../../reference/expressions.rst:1528 msgid "``x == y`` and ``not x != y``" msgstr "" -#: ../../reference/expressions.rst:1529 +#: ../../reference/expressions.rst:1530 msgid "``x < y`` and ``not x >= y`` (for total ordering)" msgstr "" -#: ../../reference/expressions.rst:1531 +#: ../../reference/expressions.rst:1532 msgid "``x > y`` and ``not x <= y`` (for total ordering)" msgstr "" -#: ../../reference/expressions.rst:1533 +#: ../../reference/expressions.rst:1534 msgid "" "The last two expressions apply to totally ordered collections (e.g. to " -"sequences, but not to sets or mappings). See also the " -":func:`~functools.total_ordering` decorator." +"sequences, but not to sets or mappings). See also the :func:`~functools." +"total_ordering` decorator." msgstr "" -#: ../../reference/expressions.rst:1537 +#: ../../reference/expressions.rst:1538 msgid "" -"The :func:`hash` result should be consistent with equality. Objects that are" -" equal should either have the same hash value, or be marked as unhashable." +"The :func:`hash` result should be consistent with equality. Objects that are " +"equal should either have the same hash value, or be marked as unhashable." msgstr "" -#: ../../reference/expressions.rst:1541 +#: ../../reference/expressions.rst:1542 msgid "" "Python does not enforce these consistency rules. In fact, the not-a-number " "values are an example for not following these rules." msgstr "" -#: ../../reference/expressions.rst:1550 +#: ../../reference/expressions.rst:1551 msgid "Membership test operations" msgstr "" -#: ../../reference/expressions.rst:1552 +#: ../../reference/expressions.rst:1553 msgid "" "The operators :keyword:`in` and :keyword:`not in` test for membership. ``x " "in s`` evaluates to ``True`` if *x* is a member of *s*, and ``False`` " "otherwise. ``x not in s`` returns the negation of ``x in s``. All built-in " -"sequences and set types support this as well as dictionary, for which " -":keyword:`!in` tests whether the dictionary has a given key. For container " +"sequences and set types support this as well as dictionary, for which :" +"keyword:`!in` tests whether the dictionary has a given key. For container " "types such as list, tuple, set, frozenset, dict, or collections.deque, the " "expression ``x in y`` is equivalent to ``any(x is e or x == e for e in y)``." msgstr "" -#: ../../reference/expressions.rst:1560 +#: ../../reference/expressions.rst:1561 msgid "" -"For the string and bytes types, ``x in y`` is ``True`` if and only if *x* is" -" a substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty " -"strings are always considered to be a substring of any other string, so " -"``\"\" in \"abc\"`` will return ``True``." +"For the string and bytes types, ``x in y`` is ``True`` if and only if *x* is " +"a substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty " +"strings are always considered to be a substring of any other string, so ``" +"\"\" in \"abc\"`` will return ``True``." msgstr "" -#: ../../reference/expressions.rst:1565 +#: ../../reference/expressions.rst:1566 msgid "" "For user-defined classes which define the :meth:`__contains__` method, ``x " "in y`` returns ``True`` if ``y.__contains__(x)`` returns a true value, and " "``False`` otherwise." msgstr "" -#: ../../reference/expressions.rst:1569 +#: ../../reference/expressions.rst:1570 msgid "" "For user-defined classes which do not define :meth:`__contains__` but do " "define :meth:`__iter__`, ``x in y`` is ``True`` if some value ``z``, for " @@ -1678,38 +1673,38 @@ msgid "" "as if :keyword:`in` raised that exception." msgstr "" -#: ../../reference/expressions.rst:1575 +#: ../../reference/expressions.rst:1576 msgid "" -"Lastly, the old-style iteration protocol is tried: if a class defines " -":meth:`__getitem__`, ``x in y`` is ``True`` if and only if there is a non-" -"negative integer index *i* such that ``x is y[i] or x == y[i]``, and no " -"lower integer index raises the :exc:`IndexError` exception. (If any other " -"exception is raised, it is as if :keyword:`in` raised that exception)." +"Lastly, the old-style iteration protocol is tried: if a class defines :meth:" +"`__getitem__`, ``x in y`` is ``True`` if and only if there is a non-negative " +"integer index *i* such that ``x is y[i] or x == y[i]``, and no lower integer " +"index raises the :exc:`IndexError` exception. (If any other exception is " +"raised, it is as if :keyword:`in` raised that exception)." msgstr "" -#: ../../reference/expressions.rst:1587 +#: ../../reference/expressions.rst:1588 msgid "" -"The operator :keyword:`not in` is defined to have the inverse truth value of" -" :keyword:`in`." +"The operator :keyword:`not in` is defined to have the inverse truth value " +"of :keyword:`in`." msgstr "" -#: ../../reference/expressions.rst:1600 +#: ../../reference/expressions.rst:1601 msgid "Identity comparisons" msgstr "" -#: ../../reference/expressions.rst:1602 +#: ../../reference/expressions.rst:1603 msgid "" "The operators :keyword:`is` and :keyword:`is not` test for an object's " -"identity: ``x is y`` is true if and only if *x* and *y* are the same object." -" An Object's identity is determined using the :meth:`id` function. ``x is " -"not y`` yields the inverse truth value. [#]_" +"identity: ``x is y`` is true if and only if *x* and *y* are the same " +"object. An Object's identity is determined using the :meth:`id` function. " +"``x is not y`` yields the inverse truth value. [#]_" msgstr "" -#: ../../reference/expressions.rst:1614 +#: ../../reference/expressions.rst:1615 msgid "Boolean operations" msgstr "" -#: ../../reference/expressions.rst:1625 +#: ../../reference/expressions.rst:1626 msgid "" "In the context of Boolean operations, and also when expressions are used by " "control flow statements, the following values are interpreted as false: " @@ -1720,131 +1715,130 @@ msgid "" "method." msgstr "" -#: ../../reference/expressions.rst:1634 +#: ../../reference/expressions.rst:1635 msgid "" "The operator :keyword:`not` yields ``True`` if its argument is false, " "``False`` otherwise." msgstr "" -#: ../../reference/expressions.rst:1639 +#: ../../reference/expressions.rst:1640 msgid "" "The expression ``x and y`` first evaluates *x*; if *x* is false, its value " -"is returned; otherwise, *y* is evaluated and the resulting value is " -"returned." +"is returned; otherwise, *y* is evaluated and the resulting value is returned." msgstr "" -#: ../../reference/expressions.rst:1644 +#: ../../reference/expressions.rst:1645 msgid "" "The expression ``x or y`` first evaluates *x*; if *x* is true, its value is " "returned; otherwise, *y* is evaluated and the resulting value is returned." msgstr "" -#: ../../reference/expressions.rst:1647 +#: ../../reference/expressions.rst:1648 msgid "" "Note that neither :keyword:`and` nor :keyword:`or` restrict the value and " "type they return to ``False`` and ``True``, but rather return the last " "evaluated argument. This is sometimes useful, e.g., if ``s`` is a string " "that should be replaced by a default value if it is empty, the expression " "``s or 'foo'`` yields the desired value. Because :keyword:`not` has to " -"create a new value, it returns a boolean value regardless of the type of its" -" argument (for example, ``not 'foo'`` produces ``False`` rather than " -"``''``.)" +"create a new value, it returns a boolean value regardless of the type of its " +"argument (for example, ``not 'foo'`` produces ``False`` rather than ``''``.)" msgstr "" -#: ../../reference/expressions.rst:1659 +#: ../../reference/expressions.rst:1660 msgid "Conditional expressions" msgstr "" -#: ../../reference/expressions.rst:1672 +#: ../../reference/expressions.rst:1673 msgid "" "Conditional expressions (sometimes called a \"ternary operator\") have the " "lowest priority of all Python operations." msgstr "" -#: ../../reference/expressions.rst:1675 +#: ../../reference/expressions.rst:1676 msgid "" "The expression ``x if C else y`` first evaluates the condition, *C* rather " "than *x*. If *C* is true, *x* is evaluated and its value is returned; " "otherwise, *y* is evaluated and its value is returned." msgstr "" -#: ../../reference/expressions.rst:1679 +#: ../../reference/expressions.rst:1680 msgid "See :pep:`308` for more details about conditional expressions." msgstr "" -#: ../../reference/expressions.rst:1686 +#: ../../reference/expressions.rst:1687 msgid "Lambdas" msgstr "" -#: ../../reference/expressions.rst:1698 +#: ../../reference/expressions.rst:1699 msgid "" "Lambda expressions (sometimes called lambda forms) are used to create " -"anonymous functions. The expression ``lambda parameters: expression`` yields" -" a function object. The unnamed object behaves like a function object " +"anonymous functions. The expression ``lambda parameters: expression`` yields " +"a function object. The unnamed object behaves like a function object " "defined with:" msgstr "" -#: ../../reference/expressions.rst:1707 +#: ../../reference/expressions.rst:1708 msgid "" "See section :ref:`function` for the syntax of parameter lists. Note that " "functions created with lambda expressions cannot contain statements or " "annotations." msgstr "" -#: ../../reference/expressions.rst:1715 +#: ../../reference/expressions.rst:1716 msgid "Expression lists" msgstr "" -#: ../../reference/expressions.rst:1729 +#: ../../reference/expressions.rst:1730 msgid "" "Except when part of a list or set display, an expression list containing at " "least one comma yields a tuple. The length of the tuple is the number of " "expressions in the list. The expressions are evaluated from left to right." msgstr "" -#: ../../reference/expressions.rst:1738 +#: ../../reference/expressions.rst:1739 msgid "" -"An asterisk ``*`` denotes :dfn:`iterable unpacking`. Its operand must be an" -" :term:`iterable`. The iterable is expanded into a sequence of items, which" -" are included in the new tuple, list, or set, at the site of the unpacking." +"An asterisk ``*`` denotes :dfn:`iterable unpacking`. Its operand must be " +"an :term:`iterable`. The iterable is expanded into a sequence of items, " +"which are included in the new tuple, list, or set, at the site of the " +"unpacking." msgstr "" -#: ../../reference/expressions.rst:1743 +#: ../../reference/expressions.rst:1744 msgid "" "Iterable unpacking in expression lists, originally proposed by :pep:`448`." msgstr "" -#: ../../reference/expressions.rst:1748 +#: ../../reference/expressions.rst:1749 msgid "" "The trailing comma is required only to create a single tuple (a.k.a. a " "*singleton*); it is optional in all other cases. A single expression " -"without a trailing comma doesn't create a tuple, but rather yields the value" -" of that expression. (To create an empty tuple, use an empty pair of " +"without a trailing comma doesn't create a tuple, but rather yields the value " +"of that expression. (To create an empty tuple, use an empty pair of " "parentheses: ``()``.)" msgstr "" -#: ../../reference/expressions.rst:1758 +#: ../../reference/expressions.rst:1759 msgid "Evaluation order" msgstr "" -#: ../../reference/expressions.rst:1762 +#: ../../reference/expressions.rst:1763 msgid "" "Python evaluates expressions from left to right. Notice that while " "evaluating an assignment, the right-hand side is evaluated before the left-" "hand side." msgstr "" -#: ../../reference/expressions.rst:1765 +#: ../../reference/expressions.rst:1766 msgid "" "In the following lines, expressions will be evaluated in the arithmetic " "order of their suffixes::" msgstr "" -#: ../../reference/expressions.rst:1779 +#: ../../reference/expressions.rst:1780 msgid "Operator precedence" msgstr "" -#: ../../reference/expressions.rst:1784 +#: ../../reference/expressions.rst:1785 msgid "" "The following table summarizes the operator precedence in Python, from " "lowest precedence (least binding) to highest precedence (most binding). " @@ -1853,171 +1847,173 @@ msgid "" "left to right (except for exponentiation, which groups from right to left)." msgstr "" -#: ../../reference/expressions.rst:1790 +#: ../../reference/expressions.rst:1791 msgid "" "Note that comparisons, membership tests, and identity tests, all have the " "same precedence and have a left-to-right chaining feature as described in " "the :ref:`comparisons` section." msgstr "" -#: ../../reference/expressions.rst:1796 +#: ../../reference/expressions.rst:1797 msgid "Operator" msgstr "" -#: ../../reference/expressions.rst:1796 +#: ../../reference/expressions.rst:1797 msgid "Description" msgstr "Description (descrição)" -#: ../../reference/expressions.rst:1798 +#: ../../reference/expressions.rst:1799 msgid ":keyword:`lambda`" -msgstr "" +msgstr ":keyword:`lambda`" -#: ../../reference/expressions.rst:1798 +#: ../../reference/expressions.rst:1799 msgid "Lambda expression" msgstr "" -#: ../../reference/expressions.rst:1800 +#: ../../reference/expressions.rst:1801 msgid ":keyword:`if ` -- :keyword:`!else`" -msgstr "" +msgstr ":keyword:`if ` -- :keyword:`!else`" -#: ../../reference/expressions.rst:1800 +#: ../../reference/expressions.rst:1801 msgid "Conditional expression" msgstr "" -#: ../../reference/expressions.rst:1802 +#: ../../reference/expressions.rst:1803 msgid ":keyword:`or`" -msgstr "" +msgstr ":keyword:`or`" -#: ../../reference/expressions.rst:1802 +#: ../../reference/expressions.rst:1803 msgid "Boolean OR" msgstr "" -#: ../../reference/expressions.rst:1804 +#: ../../reference/expressions.rst:1805 msgid ":keyword:`and`" -msgstr "" +msgstr ":keyword:`and`" -#: ../../reference/expressions.rst:1804 +#: ../../reference/expressions.rst:1805 msgid "Boolean AND" msgstr "" -#: ../../reference/expressions.rst:1806 +#: ../../reference/expressions.rst:1807 msgid ":keyword:`not` ``x``" -msgstr "" +msgstr ":keyword:`not` ``x``" -#: ../../reference/expressions.rst:1806 +#: ../../reference/expressions.rst:1807 msgid "Boolean NOT" msgstr "" -#: ../../reference/expressions.rst:1808 +#: ../../reference/expressions.rst:1809 msgid "" ":keyword:`in`, :keyword:`not in`, :keyword:`is`, :keyword:`is not`, ``<``, " "``<=``, ``>``, ``>=``, ``!=``, ``==``" msgstr "" +":keyword:`in`, :keyword:`not in`, :keyword:`is`, :keyword:`is not`, ``<``, " +"``<=``, ``>``, ``>=``, ``!=``, ``==``" -#: ../../reference/expressions.rst:1808 +#: ../../reference/expressions.rst:1809 msgid "Comparisons, including membership tests and identity tests" msgstr "" -#: ../../reference/expressions.rst:1812 +#: ../../reference/expressions.rst:1813 msgid "``|``" msgstr "``|``" -#: ../../reference/expressions.rst:1812 +#: ../../reference/expressions.rst:1813 msgid "Bitwise OR" msgstr "" -#: ../../reference/expressions.rst:1814 +#: ../../reference/expressions.rst:1815 msgid "``^``" msgstr "``^``" -#: ../../reference/expressions.rst:1814 +#: ../../reference/expressions.rst:1815 msgid "Bitwise XOR" msgstr "" -#: ../../reference/expressions.rst:1816 +#: ../../reference/expressions.rst:1817 msgid "``&``" -msgstr "" +msgstr "``&``" -#: ../../reference/expressions.rst:1816 +#: ../../reference/expressions.rst:1817 msgid "Bitwise AND" msgstr "" -#: ../../reference/expressions.rst:1818 +#: ../../reference/expressions.rst:1819 msgid "``<<``, ``>>``" msgstr "" -#: ../../reference/expressions.rst:1818 +#: ../../reference/expressions.rst:1819 msgid "Shifts" msgstr "" -#: ../../reference/expressions.rst:1820 +#: ../../reference/expressions.rst:1821 msgid "``+``, ``-``" msgstr "" -#: ../../reference/expressions.rst:1820 +#: ../../reference/expressions.rst:1821 msgid "Addition and subtraction" msgstr "" -#: ../../reference/expressions.rst:1822 +#: ../../reference/expressions.rst:1823 msgid "``*``, ``@``, ``/``, ``//``, ``%``" msgstr "" -#: ../../reference/expressions.rst:1822 +#: ../../reference/expressions.rst:1823 msgid "" "Multiplication, matrix multiplication, division, floor division, remainder " "[#]_" msgstr "" -#: ../../reference/expressions.rst:1826 +#: ../../reference/expressions.rst:1827 msgid "``+x``, ``-x``, ``~x``" msgstr "" -#: ../../reference/expressions.rst:1826 +#: ../../reference/expressions.rst:1827 msgid "Positive, negative, bitwise NOT" msgstr "" -#: ../../reference/expressions.rst:1828 +#: ../../reference/expressions.rst:1829 msgid "``**``" -msgstr "" +msgstr "``**``" -#: ../../reference/expressions.rst:1828 +#: ../../reference/expressions.rst:1829 msgid "Exponentiation [#]_" msgstr "" -#: ../../reference/expressions.rst:1830 +#: ../../reference/expressions.rst:1831 msgid ":keyword:`await` ``x``" -msgstr "" +msgstr ":keyword:`await` ``x``" -#: ../../reference/expressions.rst:1832 +#: ../../reference/expressions.rst:1833 msgid "``x[index]``, ``x[index:index]``, ``x(arguments...)``, ``x.attribute``" msgstr "" -#: ../../reference/expressions.rst:1832 +#: ../../reference/expressions.rst:1833 msgid "Subscription, slicing, call, attribute reference" msgstr "" -#: ../../reference/expressions.rst:1835 +#: ../../reference/expressions.rst:1836 msgid "``(expressions...)``," msgstr "" -#: ../../reference/expressions.rst:1837 +#: ../../reference/expressions.rst:1838 msgid "``[expressions...]``, ``{key: value...}``, ``{expressions...}``" msgstr "" -#: ../../reference/expressions.rst:1835 +#: ../../reference/expressions.rst:1836 msgid "" "Binding or parenthesized expression, list display, dictionary display, set " "display" msgstr "" -#: ../../reference/expressions.rst:1844 +#: ../../reference/expressions.rst:1845 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../reference/expressions.rst:1845 +#: ../../reference/expressions.rst:1846 msgid "" -"While ``abs(x%y) < abs(y)`` is true mathematically, for floats it may not be" -" true numerically due to roundoff. For example, and assuming a platform on " +"While ``abs(x%y) < abs(y)`` is true mathematically, for floats it may not be " +"true numerically due to roundoff. For example, and assuming a platform on " "which a Python float is an IEEE 754 double-precision number, in order that " "``-1e-100 % 1e100`` have the same sign as ``1e100``, the computed result is " "``-1e-100 + 1e100``, which is numerically exactly equal to ``1e100``. The " @@ -2026,21 +2022,21 @@ msgid "" "approach is more appropriate depends on the application." msgstr "" -#: ../../reference/expressions.rst:1854 +#: ../../reference/expressions.rst:1855 msgid "" -"If x is very close to an exact integer multiple of y, it's possible for " -"``x//y`` to be one larger than ``(x-x%y)//y`` due to rounding. In such " -"cases, Python returns the latter result, in order to preserve that " -"``divmod(x,y)[0] * y + x % y`` be very close to ``x``." +"If x is very close to an exact integer multiple of y, it's possible for ``x//" +"y`` to be one larger than ``(x-x%y)//y`` due to rounding. In such cases, " +"Python returns the latter result, in order to preserve that ``divmod(x,y)[0] " +"* y + x % y`` be very close to ``x``." msgstr "" -#: ../../reference/expressions.rst:1859 +#: ../../reference/expressions.rst:1860 msgid "" "The Unicode standard distinguishes between :dfn:`code points` (e.g. U+0041) " -"and :dfn:`abstract characters` (e.g. \"LATIN CAPITAL LETTER A\"). While most" -" abstract characters in Unicode are only represented using one code point, " -"there is a number of abstract characters that can in addition be represented" -" using a sequence of more than one code point. For example, the abstract " +"and :dfn:`abstract characters` (e.g. \"LATIN CAPITAL LETTER A\"). While most " +"abstract characters in Unicode are only represented using one code point, " +"there is a number of abstract characters that can in addition be represented " +"using a sequence of more than one code point. For example, the abstract " "character \"LATIN CAPITAL LETTER C WITH CEDILLA\" can be represented as a " "single :dfn:`precomposed character` at code position U+00C7, or as a " "sequence of a :dfn:`base character` at code position U+0043 (LATIN CAPITAL " @@ -2048,21 +2044,21 @@ msgid "" "(COMBINING CEDILLA)." msgstr "" -#: ../../reference/expressions.rst:1870 +#: ../../reference/expressions.rst:1871 msgid "" "The comparison operators on strings compare at the level of Unicode code " -"points. This may be counter-intuitive to humans. For example, ``\"\\u00C7\"" -" == \"\\u0043\\u0327\"`` is ``False``, even though both strings represent " -"the same abstract character \"LATIN CAPITAL LETTER C WITH CEDILLA\"." +"points. This may be counter-intuitive to humans. For example, ``\"\\u00C7\" " +"== \"\\u0043\\u0327\"`` is ``False``, even though both strings represent the " +"same abstract character \"LATIN CAPITAL LETTER C WITH CEDILLA\"." msgstr "" -#: ../../reference/expressions.rst:1875 +#: ../../reference/expressions.rst:1876 msgid "" "To compare strings at the level of abstract characters (that is, in a way " "intuitive to humans), use :func:`unicodedata.normalize`." msgstr "" -#: ../../reference/expressions.rst:1878 +#: ../../reference/expressions.rst:1879 msgid "" "Due to automatic garbage-collection, free lists, and the dynamic nature of " "descriptors, you may notice seemingly unusual behaviour in certain uses of " @@ -2070,13 +2066,13 @@ msgid "" "instance methods, or constants. Check their documentation for more info." msgstr "" -#: ../../reference/expressions.rst:1883 +#: ../../reference/expressions.rst:1884 msgid "" "The ``%`` operator is also used for string formatting; the same precedence " "applies." msgstr "" -#: ../../reference/expressions.rst:1886 +#: ../../reference/expressions.rst:1887 msgid "" "The power operator ``**`` binds less tightly than an arithmetic or bitwise " "unary operator on its right, that is, ``2**-1`` is ``0.5``." diff --git a/reference/grammar.po b/reference/grammar.po index 73e8bf8b3..265c8da84 100644 --- a/reference/grammar.po +++ b/reference/grammar.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/reference/import.po b/reference/import.po index f496fcbc5..230d91fa8 100644 --- a/reference/import.po +++ b/reference/import.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-25 11:16+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,41 +31,40 @@ msgstr "" #: ../../reference/import.rst:10 msgid "" -"Python code in one :term:`module` gains access to the code in another module" -" by the process of :term:`importing` it. The :keyword:`import` statement is" -" the most common way of invoking the import machinery, but it is not the " -"only way. Functions such as :func:`importlib.import_module` and built-in " -":func:`__import__` can also be used to invoke the import machinery." +"Python code in one :term:`module` gains access to the code in another module " +"by the process of :term:`importing` it. The :keyword:`import` statement is " +"the most common way of invoking the import machinery, but it is not the only " +"way. Functions such as :func:`importlib.import_module` and built-in :func:" +"`__import__` can also be used to invoke the import machinery." msgstr "" #: ../../reference/import.rst:16 msgid "" -"The :keyword:`import` statement combines two operations; it searches for the" -" named module, then it binds the results of that search to a name in the " +"The :keyword:`import` statement combines two operations; it searches for the " +"named module, then it binds the results of that search to a name in the " "local scope. The search operation of the :keyword:`!import` statement is " "defined as a call to the :func:`__import__` function, with the appropriate " "arguments. The return value of :func:`__import__` is used to perform the " -"name binding operation of the :keyword:`!import` statement. See the " -":keyword:`!import` statement for the exact details of that name binding " +"name binding operation of the :keyword:`!import` statement. See the :" +"keyword:`!import` statement for the exact details of that name binding " "operation." msgstr "" #: ../../reference/import.rst:25 msgid "" "A direct call to :func:`__import__` performs only the module search and, if " -"found, the module creation operation. While certain side-effects may occur," -" such as the importing of parent packages, and the updating of various " -"caches (including :data:`sys.modules`), only the :keyword:`import` statement" -" performs a name binding operation." +"found, the module creation operation. While certain side-effects may occur, " +"such as the importing of parent packages, and the updating of various caches " +"(including :data:`sys.modules`), only the :keyword:`import` statement " +"performs a name binding operation." msgstr "" #: ../../reference/import.rst:31 msgid "" -"When an :keyword:`import` statement is executed, the standard builtin " -":func:`__import__` function is called. Other mechanisms for invoking the " -"import system (such as :func:`importlib.import_module`) may choose to bypass" -" :func:`__import__` and use their own solutions to implement import " -"semantics." +"When an :keyword:`import` statement is executed, the standard builtin :func:" +"`__import__` function is called. Other mechanisms for invoking the import " +"system (such as :func:`importlib.import_module`) may choose to bypass :func:" +"`__import__` and use their own solutions to implement import semantics." msgstr "" #: ../../reference/import.rst:36 @@ -71,22 +72,22 @@ msgid "" "When a module is first imported, Python searches for the module and if " "found, it creates a module object [#fnmo]_, initializing it. If the named " "module cannot be found, a :exc:`ModuleNotFoundError` is raised. Python " -"implements various strategies to search for the named module when the import" -" machinery is invoked. These strategies can be modified and extended by " +"implements various strategies to search for the named module when the import " +"machinery is invoked. These strategies can be modified and extended by " "using various hooks described in the sections below." msgstr "" #: ../../reference/import.rst:43 msgid "" -"The import system has been updated to fully implement the second phase of " -":pep:`302`. There is no longer any implicit import machinery - the full " +"The import system has been updated to fully implement the second phase of :" +"pep:`302`. There is no longer any implicit import machinery - the full " "import system is exposed through :data:`sys.meta_path`. In addition, native " "namespace package support has been implemented (see :pep:`420`)." msgstr "" #: ../../reference/import.rst:51 msgid ":mod:`importlib`" -msgstr "" +msgstr ":mod:`importlib`" #: ../../reference/import.rst:53 msgid "" @@ -103,21 +104,21 @@ msgstr "Pacotes" #: ../../reference/import.rst:67 msgid "" -"Python has only one type of module object, and all modules are of this type," -" regardless of whether the module is implemented in Python, C, or something " -"else. To help organize modules and provide a naming hierarchy, Python has a" -" concept of :term:`packages `." +"Python has only one type of module object, and all modules are of this type, " +"regardless of whether the module is implemented in Python, C, or something " +"else. To help organize modules and provide a naming hierarchy, Python has a " +"concept of :term:`packages `." msgstr "" #: ../../reference/import.rst:72 msgid "" -"You can think of packages as the directories on a file system and modules as" -" files within directories, but don't take this analogy too literally since " +"You can think of packages as the directories on a file system and modules as " +"files within directories, but don't take this analogy too literally since " "packages and modules need not originate from the file system. For the " "purposes of this documentation, we'll use this convenient analogy of " -"directories and files. Like file system directories, packages are organized" -" hierarchically, and packages may themselves contain subpackages, as well as" -" regular modules." +"directories and files. Like file system directories, packages are organized " +"hierarchically, and packages may themselves contain subpackages, as well as " +"regular modules." msgstr "" #: ../../reference/import.rst:80 @@ -132,8 +133,8 @@ msgstr "" msgid "" "All modules have a name. Subpackage names are separated from their parent " "package name by dots, akin to Python's standard attribute access syntax. " -"Thus you might have a module called :mod:`sys` and a package called " -":mod:`email`, which in turn has a subpackage called :mod:`email.mime` and a " +"Thus you might have a module called :mod:`sys` and a package called :mod:" +"`email`, which in turn has a subpackage called :mod:`email.mime` and a " "module within that subpackage called :mod:`email.mime.text`." msgstr "" @@ -145,27 +146,27 @@ msgstr "" msgid "" "Python defines two types of packages, :term:`regular packages ` and :term:`namespace packages `. Regular " -"packages are traditional packages as they existed in Python 3.2 and earlier." -" A regular package is typically implemented as a directory containing an " -"``__init__.py`` file. When a regular package is imported, this " -"``__init__.py`` file is implicitly executed, and the objects it defines are " -"bound to names in the package's namespace. The ``__init__.py`` file can " -"contain the same Python code that any other module can contain, and Python " -"will add some additional attributes to the module when it is imported." +"packages are traditional packages as they existed in Python 3.2 and earlier. " +"A regular package is typically implemented as a directory containing an " +"``__init__.py`` file. When a regular package is imported, this ``__init__." +"py`` file is implicitly executed, and the objects it defines are bound to " +"names in the package's namespace. The ``__init__.py`` file can contain the " +"same Python code that any other module can contain, and Python will add some " +"additional attributes to the module when it is imported." msgstr "" #: ../../reference/import.rst:108 msgid "" -"For example, the following file system layout defines a top level ``parent``" -" package with three subpackages::" +"For example, the following file system layout defines a top level ``parent`` " +"package with three subpackages::" msgstr "" #: ../../reference/import.rst:120 msgid "" "Importing ``parent.one`` will implicitly execute ``parent/__init__.py`` and " "``parent/one/__init__.py``. Subsequent imports of ``parent.two`` or " -"``parent.three`` will execute ``parent/two/__init__.py`` and " -"``parent/three/__init__.py`` respectively." +"``parent.three`` will execute ``parent/two/__init__.py`` and ``parent/three/" +"__init__.py`` respectively." msgstr "" #: ../../reference/import.rst:127 @@ -175,9 +176,9 @@ msgstr "" #: ../../reference/import.rst:133 msgid "" "A namespace package is a composite of various :term:`portions `, " -"where each portion contributes a subpackage to the parent package. Portions" -" may reside in different locations on the file system. Portions may also be" -" found in zip files, on the network, or anywhere else that Python searches " +"where each portion contributes a subpackage to the parent package. Portions " +"may reside in different locations on the file system. Portions may also be " +"found in zip files, on the network, or anywhere else that Python searches " "during import. Namespace packages may or may not correspond directly to " "objects on the file system; they may be virtual modules that have no " "concrete representation." @@ -197,9 +198,9 @@ msgid "" "With namespace packages, there is no ``parent/__init__.py`` file. In fact, " "there may be multiple ``parent`` directories found during import search, " "where each one is provided by a different portion. Thus ``parent/one`` may " -"not be physically located next to ``parent/two``. In this case, Python will" -" create a namespace package for the top-level ``parent`` package whenever it" -" or one of its subpackages is imported." +"not be physically located next to ``parent/two``. In this case, Python will " +"create a namespace package for the top-level ``parent`` package whenever it " +"or one of its subpackages is imported." msgstr "" #: ../../reference/import.rst:154 @@ -222,11 +223,11 @@ msgstr "" #: ../../reference/import.rst:166 msgid "" -"This name will be used in various phases of the import search, and it may be" -" the dotted path to a submodule, e.g. ``foo.bar.baz``. In this case, Python" -" first tries to import ``foo``, then ``foo.bar``, and finally " -"``foo.bar.baz``. If any of the intermediate imports fail, a " -":exc:`ModuleNotFoundError` is raised." +"This name will be used in various phases of the import search, and it may be " +"the dotted path to a submodule, e.g. ``foo.bar.baz``. In this case, Python " +"first tries to import ``foo``, then ``foo.bar``, and finally ``foo.bar." +"baz``. If any of the intermediate imports fail, a :exc:`ModuleNotFoundError` " +"is raised." msgstr "" #: ../../reference/import.rst:173 @@ -236,10 +237,10 @@ msgstr "" #: ../../reference/import.rst:178 msgid "" "The first place checked during import search is :data:`sys.modules`. This " -"mapping serves as a cache of all modules that have been previously imported," -" including the intermediate paths. So if ``foo.bar.baz`` was previously " -"imported, :data:`sys.modules` will contain entries for ``foo``, ``foo.bar``," -" and ``foo.bar.baz``. Each key will have as its value the corresponding " +"mapping serves as a cache of all modules that have been previously imported, " +"including the intermediate paths. So if ``foo.bar.baz`` was previously " +"imported, :data:`sys.modules` will contain entries for ``foo``, ``foo.bar``, " +"and ``foo.bar.baz``. Each key will have as its value the corresponding " "module object." msgstr "" @@ -247,9 +248,9 @@ msgstr "" msgid "" "During import, the module name is looked up in :data:`sys.modules` and if " "present, the associated value is the module satisfying the import, and the " -"process completes. However, if the value is ``None``, then a " -":exc:`ModuleNotFoundError` is raised. If the module name is missing, Python" -" will continue searching for the module." +"process completes. However, if the value is ``None``, then a :exc:" +"`ModuleNotFoundError` is raised. If the module name is missing, Python will " +"continue searching for the module." msgstr "" #: ../../reference/import.rst:191 @@ -257,18 +258,18 @@ msgid "" ":data:`sys.modules` is writable. Deleting a key may not destroy the " "associated module (as other modules may hold references to it), but it will " "invalidate the cache entry for the named module, causing Python to search " -"anew for the named module upon its next import. The key can also be assigned" -" to ``None``, forcing the next import of the module to result in a " -":exc:`ModuleNotFoundError`." +"anew for the named module upon its next import. The key can also be assigned " +"to ``None``, forcing the next import of the module to result in a :exc:" +"`ModuleNotFoundError`." msgstr "" #: ../../reference/import.rst:198 msgid "" "Beware though, as if you keep a reference to the module object, invalidate " -"its cache entry in :data:`sys.modules`, and then re-import the named module," -" the two module objects will *not* be the same. By contrast, " -":func:`importlib.reload` will reuse the *same* module object, and simply " -"reinitialise the module contents by rerunning the module's code." +"its cache entry in :data:`sys.modules`, and then re-import the named module, " +"the two module objects will *not* be the same. By contrast, :func:`importlib." +"reload` will reuse the *same* module object, and simply reinitialise the " +"module contents by rerunning the module's code." msgstr "" #: ../../reference/import.rst:206 @@ -279,12 +280,12 @@ msgstr "" msgid "" "If the named module is not found in :data:`sys.modules`, then Python's " "import protocol is invoked to find and load the module. This protocol " -"consists of two conceptual objects, :term:`finders ` and " -":term:`loaders `. A finder's job is to determine whether it can find" -" the named module using whatever strategy it knows about. Objects that " -"implement both of these interfaces are referred to as :term:`importers " -"` - they return themselves when they find that they can load the " -"requested module." +"consists of two conceptual objects, :term:`finders ` and :term:" +"`loaders `. A finder's job is to determine whether it can find the " +"named module using whatever strategy it knows about. Objects that implement " +"both of these interfaces are referred to as :term:`importers ` - " +"they return themselves when they find that they can load the requested " +"module." msgstr "" #: ../../reference/import.rst:221 @@ -313,8 +314,8 @@ msgstr "" #: ../../reference/import.rst:235 msgid "" -"The following sections describe the protocol for finders and loaders in more" -" detail, including how you can create and register new ones to extend the " +"The following sections describe the protocol for finders and loaders in more " +"detail, including how you can create and register new ones to extend the " "import machinery." msgstr "" @@ -331,8 +332,8 @@ msgstr "" #: ../../reference/import.rst:255 msgid "" -"The import machinery is designed to be extensible; the primary mechanism for" -" this are the *import hooks*. There are two types of import hooks: *meta " +"The import machinery is designed to be extensible; the primary mechanism for " +"this are the *import hooks*. There are two types of import hooks: *meta " "hooks* and *import path hooks*." msgstr "" @@ -347,10 +348,10 @@ msgstr "" #: ../../reference/import.rst:265 msgid "" -"Import path hooks are called as part of :data:`sys.path` (or " -"``package.__path__``) processing, at the point where their associated path " -"item is encountered. Import path hooks are registered by adding new " -"callables to :data:`sys.path_hooks` as described below." +"Import path hooks are called as part of :data:`sys.path` (or ``package." +"__path__``) processing, at the point where their associated path item is " +"encountered. Import path hooks are registered by adding new callables to :" +"data:`sys.path_hooks` as described below." msgstr "" #: ../../reference/import.rst:272 @@ -362,8 +363,8 @@ msgid "" "When the named module is not found in :data:`sys.modules`, Python next " "searches :data:`sys.meta_path`, which contains a list of meta path finder " "objects. These finders are queried in order to see if they know how to " -"handle the named module. Meta path finders must implement a method called " -":meth:`~importlib.abc.MetaPathFinder.find_spec()` which takes three " +"handle the named module. Meta path finders must implement a method called :" +"meth:`~importlib.abc.MetaPathFinder.find_spec()` which takes three " "arguments: a name, an import path, and (optionally) a target module. The " "meta path finder can use any strategy it wants to determine whether it can " "handle the named module or not." @@ -372,8 +373,8 @@ msgstr "" #: ../../reference/import.rst:287 msgid "" "If the meta path finder knows how to handle the named module, it returns a " -"spec object. If it cannot handle the named module, it returns ``None``. If" -" :data:`sys.meta_path` processing reaches the end of its list without " +"spec object. If it cannot handle the named module, it returns ``None``. " +"If :data:`sys.meta_path` processing reaches the end of its list without " "returning a spec, then a :exc:`ModuleNotFoundError` is raised. Any other " "exceptions raised are simply propagated up, aborting the import process." msgstr "" @@ -399,10 +400,9 @@ msgid "" "importing ``foo.bar.baz`` will first perform a top level import, calling " "``mpf.find_spec(\"foo\", None, None)`` on each meta path finder (``mpf``). " "After ``foo`` has been imported, ``foo.bar`` will be imported by traversing " -"the meta path a second time, calling ``mpf.find_spec(\"foo.bar\", " -"foo.__path__, None)``. Once ``foo.bar`` has been imported, the final " -"traversal will call ``mpf.find_spec(\"foo.bar.baz\", foo.bar.__path__, " -"None)``." +"the meta path a second time, calling ``mpf.find_spec(\"foo.bar\", foo." +"__path__, None)``. Once ``foo.bar`` has been imported, the final traversal " +"will call ``mpf.find_spec(\"foo.bar.baz\", foo.bar.__path__, None)``." msgstr "" #: ../../reference/import.rst:314 @@ -414,8 +414,8 @@ msgstr "" #: ../../reference/import.rst:318 msgid "" -"Python's default :data:`sys.meta_path` has three meta path finders, one that" -" knows how to import built-in modules, one that knows how to import frozen " +"Python's default :data:`sys.meta_path` has three meta path finders, one that " +"knows how to import built-in modules, one that knows how to import frozen " "modules, and one that knows how to import modules from an :term:`import " "path` (i.e. the :term:`path based finder`)." msgstr "" @@ -423,8 +423,8 @@ msgstr "" #: ../../reference/import.rst:323 msgid "" "The :meth:`~importlib.abc.MetaPathFinder.find_spec` method of meta path " -"finders replaced :meth:`~importlib.abc.MetaPathFinder.find_module`, which is" -" now deprecated. While it will continue to work without change, the import " +"finders replaced :meth:`~importlib.abc.MetaPathFinder.find_module`, which is " +"now deprecated. While it will continue to work without change, the import " "machinery will try it only if the finder does not implement ``find_spec()``." msgstr "" @@ -445,8 +445,8 @@ msgstr "" #: ../../reference/import.rst:371 msgid "" -"If there is an existing module object with the given name in " -":data:`sys.modules`, import will have already returned it." +"If there is an existing module object with the given name in :data:`sys." +"modules`, import will have already returned it." msgstr "" #: ../../reference/import.rst:374 @@ -461,10 +461,10 @@ msgstr "" #: ../../reference/import.rst:380 msgid "" "If loading fails, the failing module -- and only the failing module -- gets " -"removed from :data:`sys.modules`. Any module already in the " -":data:`sys.modules` cache, and any module that was successfully loaded as a " -"side-effect, must remain in the cache. This contrasts with reloading where " -"even the failing module is left in :data:`sys.modules`." +"removed from :data:`sys.modules`. Any module already in the :data:`sys." +"modules` cache, and any module that was successfully loaded as a side-" +"effect, must remain in the cache. This contrasts with reloading where even " +"the failing module is left in :data:`sys.modules`." msgstr "" #: ../../reference/import.rst:386 @@ -484,15 +484,15 @@ msgstr "" #: ../../reference/import.rst:395 msgid "" -"The module created during loading and passed to exec_module() may not be the" -" one returned at the end of import [#fnlo]_." +"The module created during loading and passed to exec_module() may not be the " +"one returned at the end of import [#fnlo]_." msgstr "" #: ../../reference/import.rst:398 msgid "" "The import system has taken over the boilerplate responsibilities of " -"loaders. These were previously performed by the " -":meth:`importlib.abc.Loader.load_module` method." +"loaders. These were previously performed by the :meth:`importlib.abc.Loader." +"load_module` method." msgstr "" #: ../../reference/import.rst:404 @@ -520,16 +520,16 @@ msgstr "" #: ../../reference/import.rst:417 msgid "" -"If the loader cannot execute the module, it should raise an " -":exc:`ImportError`, although any other exception raised during " -":meth:`~importlib.abc.Loader.exec_module` will be propagated." +"If the loader cannot execute the module, it should raise an :exc:" +"`ImportError`, although any other exception raised during :meth:`~importlib." +"abc.Loader.exec_module` will be propagated." msgstr "" #: ../../reference/import.rst:421 msgid "" "In many cases, the finder and loader can be the same object; in such cases " -"the :meth:`~importlib.abc.MetaPathFinder.find_spec` method would just return" -" a spec with the loader set to ``self``." +"the :meth:`~importlib.abc.MetaPathFinder.find_spec` method would just return " +"a spec with the loader set to ``self``." msgstr "" #: ../../reference/import.rst:425 @@ -548,9 +548,9 @@ msgstr "" #: ../../reference/import.rst:435 msgid "" -"The :meth:`~importlib.abc.Loader.load_module` method was replaced by " -":meth:`~importlib.abc.Loader.exec_module` and the import machinery assumed " -"all the boilerplate responsibilities of loading." +"The :meth:`~importlib.abc.Loader.load_module` method was replaced by :meth:" +"`~importlib.abc.Loader.exec_module` and the import machinery assumed all the " +"boilerplate responsibilities of loading." msgstr "" #: ../../reference/import.rst:440 @@ -570,11 +570,11 @@ msgstr "" #: ../../reference/import.rst:449 msgid "" -"If there is an existing module object with the given name in " -":data:`sys.modules`, the loader must use that existing module. (Otherwise, " -":func:`importlib.reload` will not work correctly.) If the named module does" -" not exist in :data:`sys.modules`, the loader must create a new module " -"object and add it to :data:`sys.modules`." +"If there is an existing module object with the given name in :data:`sys." +"modules`, the loader must use that existing module. (Otherwise, :func:" +"`importlib.reload` will not work correctly.) If the named module does not " +"exist in :data:`sys.modules`, the loader must create a new module object and " +"add it to :data:`sys.modules`." msgstr "" #: ../../reference/import.rst:455 @@ -585,8 +585,8 @@ msgstr "" #: ../../reference/import.rst:459 msgid "" -"If loading fails, the loader must remove any modules it has inserted into " -":data:`sys.modules`, but it must remove **only** the failing module(s), and " +"If loading fails, the loader must remove any modules it has inserted into :" +"data:`sys.modules`, but it must remove **only** the failing module(s), and " "only if the loader itself has loaded the module(s) explicitly." msgstr "" @@ -608,8 +608,8 @@ msgstr "Submódulos" #: ../../reference/import.rst:475 msgid "" -"When a submodule is loaded using any mechanism (e.g. ``importlib`` APIs, the" -" ``import`` or ``import-from`` statements, or built-in ``__import__()``) a " +"When a submodule is loaded using any mechanism (e.g. ``importlib`` APIs, the " +"``import`` or ``import-from`` statements, or built-in ``__import__()``) a " "binding is placed in the parent module's namespace to the submodule object. " "For example, if package ``spam`` has a submodule ``foo``, after importing " "``spam.foo``, ``spam`` will have an attribute ``foo`` which is bound to the " @@ -630,9 +630,9 @@ msgstr "" msgid "" "Given Python's familiar name binding rules this might seem surprising, but " "it's actually a fundamental feature of the import system. The invariant " -"holding is that if you have ``sys.modules['spam']`` and " -"``sys.modules['spam.foo']`` (as you would after the above import), the " -"latter must appear as the ``foo`` attribute of the former." +"holding is that if you have ``sys.modules['spam']`` and ``sys.modules['spam." +"foo']`` (as you would after the above import), the latter must appear as the " +"``foo`` attribute of the former." msgstr "" #: ../../reference/import.rst:508 @@ -642,8 +642,8 @@ msgstr "" #: ../../reference/import.rst:510 msgid "" "The import machinery uses a variety of information about each module during " -"import, especially before loading. Most of the information is common to all" -" modules. The purpose of a module's spec is to encapsulate this import-" +"import, especially before loading. Most of the information is common to all " +"modules. The purpose of a module's spec is to encapsulate this import-" "related information on a per-module basis." msgstr "" @@ -684,8 +684,8 @@ msgstr "" msgid "" "The ``__loader__`` attribute must be set to the loader object that the " "import machinery used when loading the module. This is mostly for " -"introspection, but can be used for additional loader-specific functionality," -" for example getting data associated with a loader." +"introspection, but can be used for additional loader-specific functionality, " +"for example getting data associated with a loader." msgstr "" #: ../../reference/import.rst:551 @@ -693,8 +693,8 @@ msgid "" "The module's ``__package__`` attribute must be set. Its value must be a " "string, but it can be the same value as its ``__name__``. When the module " "is a package, its ``__package__`` value should be set to its ``__name__``. " -"When the module is not a package, ``__package__`` should be set to the empty" -" string for top-level modules, or for submodules, to the parent package's " +"When the module is not a package, ``__package__`` should be set to the empty " +"string for top-level modules, or for submodules, to the parent package's " "name. See :pep:`366` for further details." msgstr "" @@ -707,15 +707,15 @@ msgstr "" #: ../../reference/import.rst:563 msgid "" -"The value of ``__package__`` is expected to be the same as " -"``__spec__.parent``." +"The value of ``__package__`` is expected to be the same as ``__spec__." +"parent``." msgstr "" #: ../../reference/import.rst:569 msgid "" -"The ``__spec__`` attribute must be set to the module spec that was used when" -" importing the module. Setting ``__spec__`` appropriately applies equally to" -" :ref:`modules initialized during interpreter startup `. The one " +"The ``__spec__`` attribute must be set to the module spec that was used when " +"importing the module. Setting ``__spec__`` appropriately applies equally to :" +"ref:`modules initialized during interpreter startup `. The one " "exception is ``__main__``, where ``__spec__`` is :ref:`set to None in some " "cases `." msgstr "" @@ -738,8 +738,8 @@ msgid "" "object's ``__path__`` attribute must be set. The value must be iterable, " "but may be empty if ``__path__`` has no further significance. If " "``__path__`` is not empty, it must produce strings when iterated over. More " -"details on the semantics of ``__path__`` are given :ref:`below `." +"details on the semantics of ``__path__`` are given :ref:`below `." msgstr "" #: ../../reference/import.rst:593 @@ -755,11 +755,11 @@ msgstr "" #: ../../reference/import.rst:602 msgid "" -"If ``__file__`` is set, it may also be appropriate to set the ``__cached__``" -" attribute which is the path to any compiled version of the code (e.g. byte-" +"If ``__file__`` is set, it may also be appropriate to set the ``__cached__`` " +"attribute which is the path to any compiled version of the code (e.g. byte-" "compiled file). The file does not need to exist to set this attribute; the " -"path can simply point to where the compiled file would exist (see " -":pep:`3147`)." +"path can simply point to where the compiled file would exist (see :pep:" +"`3147`)." msgstr "" #: ../../reference/import.rst:608 @@ -783,26 +783,26 @@ msgstr "" #: ../../reference/import.rst:621 msgid "" "A package's ``__path__`` attribute is used during imports of its " -"subpackages. Within the import machinery, it functions much the same as " -":data:`sys.path`, i.e. providing a list of locations to search for modules " -"during import. However, ``__path__`` is typically much more constrained than" -" :data:`sys.path`." +"subpackages. Within the import machinery, it functions much the same as :" +"data:`sys.path`, i.e. providing a list of locations to search for modules " +"during import. However, ``__path__`` is typically much more constrained " +"than :data:`sys.path`." msgstr "" #: ../../reference/import.rst:627 msgid "" "``__path__`` must be an iterable of strings, but it may be empty. The same " -"rules used for :data:`sys.path` also apply to a package's ``__path__``, and " -":data:`sys.path_hooks` (described below) are consulted when traversing a " +"rules used for :data:`sys.path` also apply to a package's ``__path__``, and :" +"data:`sys.path_hooks` (described below) are consulted when traversing a " "package's ``__path__``." msgstr "" #: ../../reference/import.rst:632 msgid "" -"A package's ``__init__.py`` file may set or alter the package's ``__path__``" -" attribute, and this was typically the way namespace packages were " -"implemented prior to :pep:`420`. With the adoption of :pep:`420`, namespace" -" packages no longer need to supply ``__init__.py`` files containing only " +"A package's ``__init__.py`` file may set or alter the package's ``__path__`` " +"attribute, and this was typically the way namespace packages were " +"implemented prior to :pep:`420`. With the adoption of :pep:`420`, namespace " +"packages no longer need to supply ``__init__.py`` files containing only " "``__path__`` manipulation code; the import machinery automatically sets " "``__path__`` correctly for the namespace package." msgstr "" @@ -823,9 +823,9 @@ msgid "" "If the module has a spec (``__spec__``), the import machinery will try to " "generate a repr from it. If that fails or there is no spec, the import " "system will craft a default repr using whatever information is available on " -"the module. It will try to use the ``module.__name__``, " -"``module.__file__``, and ``module.__loader__`` as input into the repr, with " -"defaults for whatever information is missing." +"the module. It will try to use the ``module.__name__``, ``module." +"__file__``, and ``module.__loader__`` as input into the repr, with defaults " +"for whatever information is missing." msgstr "" #: ../../reference/import.rst:653 @@ -847,8 +847,8 @@ msgstr "" #: ../../reference/import.rst:662 msgid "" -"If the module has no ``__file__`` but does have a ``__loader__`` that is not" -" ``None``, then the loader's repr is used as part of the module's repr." +"If the module has no ``__file__`` but does have a ``__loader__`` that is not " +"``None``, then the loader's repr is used as part of the module's repr." msgstr "" #: ../../reference/import.rst:665 @@ -866,8 +866,8 @@ msgstr "" msgid "" "For backward compatibility with Python 3.3, the module repr will be " "generated by calling the loader's :meth:`~importlib.abc.Loader.module_repr` " -"method, if defined, before trying either approach described above. However," -" the method is deprecated." +"method, if defined, before trying either approach described above. However, " +"the method is deprecated." msgstr "" #: ../../reference/import.rst:680 @@ -879,8 +879,8 @@ msgid "" "Before Python loads cached bytecode from ``.pyc`` file, it checks whether " "the cache is up-to-date with the source ``.py`` file. By default, Python " "does this by storing the source's last-modified timestamp and size in the " -"cache file when writing it. At runtime, the import system then validates the" -" cache file by checking the stored metadata in the cache file against at " +"cache file when writing it. At runtime, the import system then validates the " +"cache file by checking the stored metadata in the cache file against the " "source's metadata." msgstr "" @@ -888,20 +888,20 @@ msgstr "" msgid "" "Python also supports \"hash-based\" cache files, which store a hash of the " "source file's contents rather than its metadata. There are two variants of " -"hash-based ``.pyc`` files: checked and unchecked. For checked hash-based " -"``.pyc`` files, Python validates the cache file by hashing the source file " -"and comparing the resulting hash with the hash in the cache file. If a " -"checked hash-based cache file is found to be invalid, Python regenerates it " -"and writes a new checked hash-based cache file. For unchecked hash-based " -"``.pyc`` files, Python simply assumes the cache file is valid if it exists. " -"Hash-based ``.pyc`` files validation behavior may be overridden with the " -":option:`--check-hash-based-pycs` flag." +"hash-based ``.pyc`` files: checked and unchecked. For checked hash-based ``." +"pyc`` files, Python validates the cache file by hashing the source file and " +"comparing the resulting hash with the hash in the cache file. If a checked " +"hash-based cache file is found to be invalid, Python regenerates it and " +"writes a new checked hash-based cache file. For unchecked hash-based ``." +"pyc`` files, Python simply assumes the cache file is valid if it exists. " +"Hash-based ``.pyc`` files validation behavior may be overridden with the :" +"option:`--check-hash-based-pycs` flag." msgstr "" #: ../../reference/import.rst:700 msgid "" -"Added hash-based ``.pyc`` files. Previously, Python only supported " -"timestamp-based invalidation of bytecode caches." +"Added hash-based ``.pyc`` files. Previously, Python only supported timestamp-" +"based invalidation of bytecode caches." msgstr "" #: ../../reference/import.rst:706 @@ -911,10 +911,10 @@ msgstr "" #: ../../reference/import.rst:711 msgid "" "As mentioned previously, Python comes with several default meta path " -"finders. One of these, called the :term:`path based finder` " -"(:class:`~importlib.machinery.PathFinder`), searches an :term:`import path`," -" which contains a list of :term:`path entries `. Each path " -"entry names a location to search for modules." +"finders. One of these, called the :term:`path based finder` (:class:" +"`~importlib.machinery.PathFinder`), searches an :term:`import path`, which " +"contains a list of :term:`path entries `. Each path entry names " +"a location to search for modules." msgstr "" #: ../../reference/import.rst:717 @@ -929,10 +929,10 @@ msgid "" "The default set of path entry finders implement all the semantics for " "finding modules on the file system, handling special file types such as " "Python source code (``.py`` files), Python byte code (``.pyc`` files) and " -"shared libraries (e.g. ``.so`` files). When supported by the " -":mod:`zipimport` module in the standard library, the default path entry " -"finders also handle loading all of these file types (other than shared " -"libraries) from zipfiles." +"shared libraries (e.g. ``.so`` files). When supported by the :mod:" +"`zipimport` module in the standard library, the default path entry finders " +"also handle loading all of these file types (other than shared libraries) " +"from zipfiles." msgstr "" #: ../../reference/import.rst:728 @@ -945,19 +945,19 @@ msgstr "" #: ../../reference/import.rst:732 msgid "" "The path based finder provides additional hooks and protocols so that you " -"can extend and customize the types of searchable path entries. For example," -" if you wanted to support path entries as network URLs, you could write a " +"can extend and customize the types of searchable path entries. For example, " +"if you wanted to support path entries as network URLs, you could write a " "hook that implements HTTP semantics to find modules on the web. This hook " "(a callable) would return a :term:`path entry finder` supporting the " -"protocol described below, which was then used to get a loader for the module" -" from the web." +"protocol described below, which was then used to get a loader for the module " +"from the web." msgstr "" #: ../../reference/import.rst:740 msgid "" -"A word of warning: this section and the previous both use the term *finder*," -" distinguishing between them by using the terms :term:`meta path finder` and" -" :term:`path entry finder`. These two types of finders are very similar, " +"A word of warning: this section and the previous both use the term *finder*, " +"distinguishing between them by using the terms :term:`meta path finder` and :" +"term:`path entry finder`. These two types of finders are very similar, " "support similar protocols, and function in similar ways during the import " "process, but it's important to keep in mind that they are subtly different. " "In particular, meta path finders operate at the beginning of the import " @@ -986,16 +986,16 @@ msgstr "" #: ../../reference/import.rst:768 msgid "" -"As a meta path finder, the :term:`path based finder` implements the " -":meth:`~importlib.abc.MetaPathFinder.find_spec` protocol previously " -"described, however it exposes additional hooks that can be used to customize" -" how modules are found and loaded from the :term:`import path`." +"As a meta path finder, the :term:`path based finder` implements the :meth:" +"`~importlib.abc.MetaPathFinder.find_spec` protocol previously described, " +"however it exposes additional hooks that can be used to customize how " +"modules are found and loaded from the :term:`import path`." msgstr "" #: ../../reference/import.rst:773 msgid "" -"Three variables are used by the :term:`path based finder`, :data:`sys.path`," -" :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The " +"Three variables are used by the :term:`path based finder`, :data:`sys." +"path`, :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The " "``__path__`` attributes on package objects are also used. These provide " "additional ways that the import machinery can be customized." msgstr "" @@ -1006,12 +1006,11 @@ msgid "" "modules and packages. It is initialized from the :data:`PYTHONPATH` " "environment variable and various other installation- and implementation-" "specific defaults. Entries in :data:`sys.path` can name directories on the " -"file system, zip files, and potentially other \"locations\" (see the " -":mod:`site` module) that should be searched for modules, such as URLs, or " -"database queries. Only strings and bytes should be present on " -":data:`sys.path`; all other data types are ignored. The encoding of bytes " -"entries is determined by the individual :term:`path entry finders `." +"file system, zip files, and potentially other \"locations\" (see the :mod:" +"`site` module) that should be searched for modules, such as URLs, or " +"database queries. Only strings and bytes should be present on :data:`sys." +"path`; all other data types are ignored. The encoding of bytes entries is " +"determined by the individual :term:`path entry finders `." msgstr "" #: ../../reference/import.rst:789 @@ -1019,40 +1018,39 @@ msgid "" "The :term:`path based finder` is a :term:`meta path finder`, so the import " "machinery begins the :term:`import path` search by calling the path based " "finder's :meth:`~importlib.machinery.PathFinder.find_spec` method as " -"described previously. When the ``path`` argument to " -":meth:`~importlib.machinery.PathFinder.find_spec` is given, it will be a " -"list of string paths to traverse - typically a package's ``__path__`` " -"attribute for an import within that package. If the ``path`` argument is " -"``None``, this indicates a top level import and :data:`sys.path` is used." +"described previously. When the ``path`` argument to :meth:`~importlib." +"machinery.PathFinder.find_spec` is given, it will be a list of string paths " +"to traverse - typically a package's ``__path__`` attribute for an import " +"within that package. If the ``path`` argument is ``None``, this indicates a " +"top level import and :data:`sys.path` is used." msgstr "" #: ../../reference/import.rst:798 msgid "" "The path based finder iterates over every entry in the search path, and for " -"each of these, looks for an appropriate :term:`path entry finder` " -"(:class:`~importlib.abc.PathEntryFinder`) for the path entry. Because this " -"can be an expensive operation (e.g. there may be `stat()` call overheads for" -" this search), the path based finder maintains a cache mapping path entries " -"to path entry finders. This cache is maintained in " -":data:`sys.path_importer_cache` (despite the name, this cache actually " -"stores finder objects rather than being limited to :term:`importer` " -"objects). In this way, the expensive search for a particular :term:`path " -"entry` location's :term:`path entry finder` need only be done once. User " -"code is free to remove cache entries from :data:`sys.path_importer_cache` " -"forcing the path based finder to perform the path entry search again " -"[#fnpic]_." +"each of these, looks for an appropriate :term:`path entry finder` (:class:" +"`~importlib.abc.PathEntryFinder`) for the path entry. Because this can be " +"an expensive operation (e.g. there may be `stat()` call overheads for this " +"search), the path based finder maintains a cache mapping path entries to " +"path entry finders. This cache is maintained in :data:`sys." +"path_importer_cache` (despite the name, this cache actually stores finder " +"objects rather than being limited to :term:`importer` objects). In this way, " +"the expensive search for a particular :term:`path entry` location's :term:" +"`path entry finder` need only be done once. User code is free to remove " +"cache entries from :data:`sys.path_importer_cache` forcing the path based " +"finder to perform the path entry search again [#fnpic]_." msgstr "" #: ../../reference/import.rst:811 msgid "" "If the path entry is not present in the cache, the path based finder " -"iterates over every callable in :data:`sys.path_hooks`. Each of the " -":term:`path entry hooks ` in this list is called with a " -"single argument, the path entry to be searched. This callable may either " -"return a :term:`path entry finder` that can handle the path entry, or it may" -" raise :exc:`ImportError`. An :exc:`ImportError` is used by the path based " -"finder to signal that the hook cannot find a :term:`path entry finder` for " -"that :term:`path entry`. The exception is ignored and :term:`import path` " +"iterates over every callable in :data:`sys.path_hooks`. Each of the :term:" +"`path entry hooks ` in this list is called with a single " +"argument, the path entry to be searched. This callable may either return a :" +"term:`path entry finder` that can handle the path entry, or it may raise :" +"exc:`ImportError`. An :exc:`ImportError` is used by the path based finder " +"to signal that the hook cannot find a :term:`path entry finder` for that :" +"term:`path entry`. The exception is ignored and :term:`import path` " "iteration continues. The hook should expect either a string or bytes " "object; the encoding of bytes objects is up to the hook (e.g. it may be a " "file system encoding, UTF-8, or something else), and if the hook cannot " @@ -1062,17 +1060,17 @@ msgstr "" #: ../../reference/import.rst:825 msgid "" "If :data:`sys.path_hooks` iteration ends with no :term:`path entry finder` " -"being returned, then the path based finder's " -":meth:`~importlib.machinery.PathFinder.find_spec` method will store ``None``" -" in :data:`sys.path_importer_cache` (to indicate that there is no finder for" -" this path entry) and return ``None``, indicating that this :term:`meta path" -" finder` could not find the module." +"being returned, then the path based finder's :meth:`~importlib.machinery." +"PathFinder.find_spec` method will store ``None`` in :data:`sys." +"path_importer_cache` (to indicate that there is no finder for this path " +"entry) and return ``None``, indicating that this :term:`meta path finder` " +"could not find the module." msgstr "" #: ../../reference/import.rst:832 msgid "" -"If a :term:`path entry finder` *is* returned by one of the :term:`path entry" -" hook` callables on :data:`sys.path_hooks`, then the following protocol is " +"If a :term:`path entry finder` *is* returned by one of the :term:`path entry " +"hook` callables on :data:`sys.path_hooks`, then the following protocol is " "used to ask the finder for a module spec, which is then used when loading " "the module." msgstr "" @@ -1081,12 +1079,12 @@ msgstr "" msgid "" "The current working directory -- denoted by an empty string -- is handled " "slightly differently from other entries on :data:`sys.path`. First, if the " -"current working directory is found to not exist, no value is stored in " -":data:`sys.path_importer_cache`. Second, the value for the current working " +"current working directory is found to not exist, no value is stored in :data:" +"`sys.path_importer_cache`. Second, the value for the current working " "directory is looked up fresh for each module lookup. Third, the path used " -"for :data:`sys.path_importer_cache` and returned by " -":meth:`importlib.machinery.PathFinder.find_spec` will be the actual current " -"working directory and not the empty string." +"for :data:`sys.path_importer_cache` and returned by :meth:`importlib." +"machinery.PathFinder.find_spec` will be the actual current working directory " +"and not the empty string." msgstr "" #: ../../reference/import.rst:847 @@ -1096,39 +1094,38 @@ msgstr "" #: ../../reference/import.rst:849 msgid "" "In order to support imports of modules and initialized packages and also to " -"contribute portions to namespace packages, path entry finders must implement" -" the :meth:`~importlib.abc.PathEntryFinder.find_spec` method." +"contribute portions to namespace packages, path entry finders must implement " +"the :meth:`~importlib.abc.PathEntryFinder.find_spec` method." msgstr "" #: ../../reference/import.rst:853 msgid "" -":meth:`~importlib.abc.PathEntryFinder.find_spec` takes two argument, the " -"fully qualified name of the module being imported, and the (optional) target" -" module. ``find_spec()`` returns a fully populated spec for the module. " -"This spec will always have \"loader\" set (with one exception)." +":meth:`~importlib.abc.PathEntryFinder.find_spec` takes two arguments: the " +"fully qualified name of the module being imported, and the (optional) target " +"module. ``find_spec()`` returns a fully populated spec for the module. This " +"spec will always have \"loader\" set (with one exception)." msgstr "" #: ../../reference/import.rst:858 msgid "" -"To indicate to the import machinery that the spec represents a namespace " -":term:`portion`. the path entry finder sets \"loader\" on the spec to " -"``None`` and \"submodule_search_locations\" to a list containing the " -"portion." +"To indicate to the import machinery that the spec represents a namespace :" +"term:`portion`, the path entry finder sets \"loader\" on the spec to " +"``None`` and \"submodule_search_locations\" to a list containing the portion." msgstr "" #: ../../reference/import.rst:863 msgid "" -":meth:`~importlib.abc.PathEntryFinder.find_spec` replaced " -":meth:`~importlib.abc.PathEntryFinder.find_loader` and " -":meth:`~importlib.abc.PathEntryFinder.find_module`, both of which are now " -"deprecated, but will be used if ``find_spec()`` is not defined." +":meth:`~importlib.abc.PathEntryFinder.find_spec` replaced :meth:`~importlib." +"abc.PathEntryFinder.find_loader` and :meth:`~importlib.abc.PathEntryFinder." +"find_module`, both of which are now deprecated, but will be used if " +"``find_spec()`` is not defined." msgstr "" #: ../../reference/import.rst:869 msgid "" "Older path entry finders may implement one of these two deprecated methods " -"instead of ``find_spec()``. The methods are still respected for the sake of" -" backward compatibility. However, if ``find_spec()`` is implemented on the " +"instead of ``find_spec()``. The methods are still respected for the sake of " +"backward compatibility. However, if ``find_spec()`` is implemented on the " "path entry finder, the legacy methods are ignored." msgstr "" @@ -1138,10 +1135,10 @@ msgid "" "fully qualified name of the module being imported. ``find_loader()`` " "returns a 2-tuple where the first item is the loader and the second item is " "a namespace :term:`portion`. When the first item (i.e. the loader) is " -"``None``, this means that while the path entry finder does not have a loader" -" for the named module, it knows that the path entry contributes to a " -"namespace portion for the named module. This will almost always be the case" -" where Python is asked to import a namespace package that has no physical " +"``None``, this means that while the path entry finder does not have a loader " +"for the named module, it knows that the path entry contributes to a " +"namespace portion for the named module. This will almost always be the case " +"where Python is asked to import a namespace package that has no physical " "presence on the file system. When a path entry finder returns ``None`` for " "the loader, the second item of the 2-tuple return value must be a sequence, " "although it can be empty." @@ -1166,8 +1163,8 @@ msgstr "" #: ../../reference/import.rst:897 msgid "" -"The ``find_module()`` method on path entry finders is deprecated, as it does" -" not allow the path entry finder to contribute portions to namespace " +"The ``find_module()`` method on path entry finders is deprecated, as it does " +"not allow the path entry finder to contribute portions to namespace " "packages. If both ``find_loader()`` and ``find_module()`` exist on a path " "entry finder, the import system will always call ``find_loader()`` in " "preference to ``find_module()``." @@ -1186,8 +1183,8 @@ msgstr "" #: ../../reference/import.rst:911 msgid "" -"If it is acceptable to only alter the behaviour of import statements without" -" affecting other APIs that access the import system, then replacing the " +"If it is acceptable to only alter the behaviour of import statements without " +"affecting other APIs that access the import system, then replacing the " "builtin :func:`__import__` function may be sufficient. This technique may " "also be employed at the module level to only alter the behaviour of import " "statements within that module." @@ -1195,12 +1192,12 @@ msgstr "" #: ../../reference/import.rst:917 msgid "" -"To selectively prevent import of some modules from a hook early on the meta " -"path (rather than disabling the standard import system entirely), it is " -"sufficient to raise :exc:`ModuleNotFoundError` directly from " -":meth:`~importlib.abc.MetaPathFinder.find_spec` instead of returning " -"``None``. The latter indicates that the meta path search should continue, " -"while raising an exception terminates it immediately." +"To selectively prevent the import of some modules from a hook early on the " +"meta path (rather than disabling the standard import system entirely), it is " +"sufficient to raise :exc:`ModuleNotFoundError` directly from :meth:" +"`~importlib.abc.MetaPathFinder.find_spec` instead of returning ``None``. The " +"latter indicates that the meta path search should continue, while raising an " +"exception terminates it immediately." msgstr "" #: ../../reference/import.rst:927 @@ -1209,11 +1206,10 @@ msgstr "" #: ../../reference/import.rst:929 msgid "" -"Relative imports use leading dots. A single leading dot indicates a relative" -" import, starting with the current package. Two or more leading dots " -"indicate a relative import to the parent(s) of the current package, one " -"level per dot after the first. For example, given the following package " -"layout::" +"Relative imports use leading dots. A single leading dot indicates a relative " +"import, starting with the current package. Two or more leading dots indicate " +"a relative import to the parent(s) of the current package, one level per dot " +"after the first. For example, given the following package layout::" msgstr "" #: ../../reference/import.rst:945 @@ -1243,9 +1239,9 @@ msgstr "" msgid "" "The :mod:`__main__` module is a special case relative to Python's import " "system. As noted :ref:`elsewhere `, the ``__main__`` module is " -"directly initialized at interpreter startup, much like :mod:`sys` and " -":mod:`builtins`. However, unlike those two, it doesn't strictly qualify as " -"a built-in module. This is because the manner in which ``__main__`` is " +"directly initialized at interpreter startup, much like :mod:`sys` and :mod:" +"`builtins`. However, unlike those two, it doesn't strictly qualify as a " +"built-in module. This is because the manner in which ``__main__`` is " "initialized depends on the flags and other options with which the " "interpreter is invoked." msgstr "" @@ -1263,16 +1259,16 @@ msgstr "" #: ../../reference/import.rst:984 msgid "" "When Python is started with the :option:`-m` option, ``__spec__`` is set to " -"the module spec of the corresponding module or package. ``__spec__`` is also" -" populated when the ``__main__`` module is loaded as part of executing a " +"the module spec of the corresponding module or package. ``__spec__`` is also " +"populated when the ``__main__`` module is loaded as part of executing a " "directory, zipfile or other :data:`sys.path` entry." msgstr "" #: ../../reference/import.rst:989 msgid "" -"In :ref:`the remaining cases ` " -"``__main__.__spec__`` is set to ``None``, as the code used to populate the " -":mod:`__main__` does not correspond directly with an importable module:" +"In :ref:`the remaining cases ` ``__main__." +"__spec__`` is set to ``None``, as the code used to populate the :mod:" +"`__main__` does not correspond directly with an importable module:" msgstr "" #: ../../reference/import.rst:993 @@ -1294,9 +1290,9 @@ msgstr "" #: ../../reference/import.rst:998 msgid "" "Note that ``__main__.__spec__`` is always ``None`` in the last case, *even " -"if* the file could technically be imported directly as a module instead. Use" -" the :option:`-m` switch if valid module metadata is desired in " -":mod:`__main__`." +"if* the file could technically be imported directly as a module instead. Use " +"the :option:`-m` switch if valid module metadata is desired in :mod:" +"`__main__`." msgstr "" #: ../../reference/import.rst:1003 @@ -1337,8 +1333,8 @@ msgstr "" #: ../../reference/import.rst:1025 msgid "" -"XXX Add more info on ``__main__`` quirks/pitfalls (i.e. copy from " -":pep:`395`)." +"XXX Add more info on ``__main__`` quirks/pitfalls (i.e. copy from :pep:" +"`395`)." msgstr "" #: ../../reference/import.rst:1030 @@ -1348,9 +1344,9 @@ msgstr "Referências" #: ../../reference/import.rst:1032 msgid "" "The import machinery has evolved considerably since Python's early days. " -"The original `specification for packages " -"`_ is still available to read, " -"although some details have changed since the writing of that document." +"The original `specification for packages `_ is still available to read, although some details have changed " +"since the writing of that document." msgstr "" #: ../../reference/import.rst:1037 @@ -1387,8 +1383,8 @@ msgstr "" msgid "" ":pep:`451` adds the encapsulation of per-module import state in spec " "objects. It also off-loads most of the boilerplate responsibilities of " -"loaders back onto the import machinery. These changes allow the deprecation" -" of several APIs in the import system and also addition of new methods to " +"loaders back onto the import machinery. These changes allow the deprecation " +"of several APIs in the import system and also addition of new methods to " "finders and loaders." msgstr "" @@ -1403,16 +1399,16 @@ msgstr "" #: ../../reference/import.rst:1063 msgid "" "The importlib implementation avoids using the return value directly. " -"Instead, it gets the module object by looking the module name up in " -":data:`sys.modules`. The indirect effect of this is that an imported module" -" may replace itself in :data:`sys.modules`. This is implementation-specific" -" behavior that is not guaranteed to work in other Python implementations." +"Instead, it gets the module object by looking the module name up in :data:" +"`sys.modules`. The indirect effect of this is that an imported module may " +"replace itself in :data:`sys.modules`. This is implementation-specific " +"behavior that is not guaranteed to work in other Python implementations." msgstr "" #: ../../reference/import.rst:1070 msgid "" -"In legacy code, it is possible to find instances of " -":class:`imp.NullImporter` in the :data:`sys.path_importer_cache`. It is " -"recommended that code be changed to use ``None`` instead. See " -":ref:`portingpythoncode` for more details." +"In legacy code, it is possible to find instances of :class:`imp." +"NullImporter` in the :data:`sys.path_importer_cache`. It is recommended " +"that code be changed to use ``None`` instead. See :ref:`portingpythoncode` " +"for more details." msgstr "" diff --git a/reference/index.po b/reference/index.po index a6d7ce98a..d69d0efcb 100644 --- a/reference/index.po +++ b/reference/index.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" -"Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -36,3 +38,11 @@ msgid "" "picture of how to write a Python extension module, and the :ref:`c-api-" "index` describes the interfaces available to C/C++ programmers in detail." msgstr "" +"Este manual de referência descreve a sintaxe e a \"semântica central\" da " +"linguagem. É conciso, mas tenta ser exato e completo. A semântica dos tipos " +"de objetos internos não essenciais e das funções e módulos internos é " +"descrita em :ref:`library-index`. Para uma introdução informal à linguagem, " +"consulte :ref:`tutorial-index`. Para programadores em C ou C++, existem dois " +"manuais adicionais: :ref:`extending-index` descreve a imagem de alto nível " +"de como escrever um módulo de extensão Python, e o :ref:`c-api-index` " +"descreve as interfaces disponíveis para programadores C/C++ em detalhes." diff --git a/reference/introduction.po b/reference/introduction.po index 7c05cd6c5..0fb24f6e8 100644 --- a/reference/introduction.po +++ b/reference/introduction.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Ruan Aragão , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,8 +43,8 @@ msgid "" "reader, but will leave room for ambiguities. Consequently, if you were " "coming from Mars and tried to re-implement Python from this document alone, " "you might have to guess things and in fact you would probably end up " -"implementing quite a different language. On the other hand, if you are using" -" Python and wonder what the precise rules about a particular area of the " +"implementing quite a different language. On the other hand, if you are using " +"Python and wonder what the precise rules about a particular area of the " "language are, you should definitely be able to find them here. If you would " "like to see a more formal definition of the language, maybe you could " "volunteer your time --- or invent a cloning machine :-)." @@ -52,8 +53,8 @@ msgstr "" "especificações em inglês e não formal para tudo, exceto para a sintaxe e " "análise léxica. Isso deve tornar o documento mais compreensível para o " "leitor intermediário, mas deixará margem para ambiguidades. " -"Consequentemente, caso estivesses vindo de Marte e tentasse re-implementar o" -" Python a partir deste documento, sozinho, talvez precisarias adivinhar " +"Consequentemente, caso estivesses vindo de Marte e tentasse re-implementar o " +"Python a partir deste documento, sozinho, talvez precisarias adivinhar " "algumas coisas e, na verdade, provavelmente acabaria por implementar um " "linguagem bem diferente. Por outro lado, se estiveres usando o Python e se " "perguntando quais são as regras precisas sobre uma determinada área da " @@ -77,8 +78,8 @@ msgstr "" "implementações da mesma linguagem podem funcionar de forma diferente. Por " "outro lado, o CPython é a única implementação de Python em uso de forma " "generalizada (embora as implementações alternativas continuem a ganhar " -"suporte), e suas peculiaridades e particulares são por vezes dignas de serem" -" mencionadas, especialmente quando a implementação impõe limitações " +"suporte), e suas peculiaridades e particulares são por vezes dignas de serem " +"mencionadas, especialmente quando a implementação impõe limitações " "adicionais. Portanto, encontrarás poucas \"notas sobre a implementação\" " "espalhadas neste documento." @@ -101,12 +102,12 @@ msgstr "Implementações Alternativas" #: ../../reference/introduction.rst:43 msgid "" "Though there is one Python implementation which is by far the most popular, " -"there are some alternate implementations which are of particular interest to" -" different audiences." +"there are some alternate implementations which are of particular interest to " +"different audiences." msgstr "" "Embora exista uma implementação do Python que seja, de longe, a mais " -"popular, existem algumas implementações alternativas que são de de interesse" -" particular e para públicos diferentes." +"popular, existem algumas implementações alternativas que são de de interesse " +"particular e para públicos diferentes." #: ../../reference/introduction.rst:47 msgid "Known implementations include:" @@ -134,15 +135,15 @@ msgid "" "Python implemented in Java. This implementation can be used as a scripting " "language for Java applications, or can be used to create applications using " "the Java class libraries. It is also often used to create tests for Java " -"libraries. More information can be found at `the Jython website " -"`_." +"libraries. More information can be found at `the Jython website `_." msgstr "" "Versão do Python implementado em Java. Esta implementação pode ser usada " "como linguagem de Script em aplicações Java, ou pode ser usada para criar " "aplicativos usando as bibliotecas das classes do Java. Também vem sendo " "bastante utilizado na construção de testes unitários para as bibliotecas do " -"Java. Mais informações podem ser encontradas no `the Jython website " -"`_." +"Java. Mais informações podem ser encontradas no `the Jython website `_." #: ../../reference/introduction.rst:63 msgid "Python for .NET" @@ -151,14 +152,14 @@ msgstr "Python for .NET" #: ../../reference/introduction.rst:60 msgid "" "This implementation actually uses the CPython implementation, but is a " -"managed .NET application and makes .NET libraries available. It was created" -" by Brian Lloyd. For more information, see the `Python for .NET home page " +"managed .NET application and makes .NET libraries available. It was created " +"by Brian Lloyd. For more information, see the `Python for .NET home page " "`_." msgstr "" "Essa implementação utiliza de fato a implementação CPython, mas é um " "aplicativo gerenciado .NET e disponibilizado como uma bibliotecas .NET. Foi " -"desenvolvido por Brian Lloyd. Para obter mais informações, consulte `Python" -" for .NET home page `_." +"desenvolvido por Brian Lloyd. Para obter mais informações, consulte `Python " +"for .NET home page `_." #: ../../reference/introduction.rst:69 msgid "IronPython" @@ -168,9 +169,8 @@ msgstr "IronPython" msgid "" "An alternate Python for .NET. Unlike Python.NET, this is a complete Python " "implementation that generates IL, and compiles Python code directly to .NET " -"assemblies. It was created by Jim Hugunin, the original creator of Jython." -" For more information, see `the IronPython website " -"`_." +"assemblies. It was created by Jim Hugunin, the original creator of Jython. " +"For more information, see `the IronPython website `_." msgstr "" "Um versão alternativa do Python para a plataforma .NET. Ao contrário do " "Python.NET, esta é uma implementação completa do Python que gera IL e " @@ -189,16 +189,16 @@ msgid "" "support and a Just in Time compiler. One of the goals of the project is to " "encourage experimentation with the language itself by making it easier to " "modify the interpreter (since it is written in Python). Additional " -"information is available on `the PyPy project's home page " -"`_." +"information is available on `the PyPy project's home page `_." msgstr "" -"Uma implementação do Python escrita completamente em Python. A mesma suporta" -" vários recursos avançados não encontrados em outras implementações, como " -"suporte sem pilhas e um compilador Just in Time. Um dos objetivos do projeto" -" é incentivar a construção de experimentos com a própria linguagem, " +"Uma implementação do Python escrita completamente em Python. A mesma suporta " +"vários recursos avançados não encontrados em outras implementações, como " +"suporte sem pilhas e um compilador Just in Time. Um dos objetivos do projeto " +"é incentivar a construção de experimentos com a própria linguagem, " "facilitando a modificação do interpretador (uma vez que o mesmos está " -"escrito em Python). Informações adicionais estão disponíveis na página `the" -" PyPy project's home page `_." +"escrito em Python). Informações adicionais estão disponíveis na página `the " +"PyPy project's home page `_." #: ../../reference/introduction.rst:79 msgid "" @@ -231,50 +231,49 @@ msgid "" "The first line says that a ``name`` is an ``lc_letter`` followed by a " "sequence of zero or more ``lc_letter``\\ s and underscores. An " "``lc_letter`` in turn is any of the single characters ``'a'`` through " -"``'z'``. (This rule is actually adhered to for the names defined in lexical" -" and grammar rules in this document.)" +"``'z'``. (This rule is actually adhered to for the names defined in lexical " +"and grammar rules in this document.)" msgstr "" "A primeira linha diz que um ``nome`` é um ``lc_letter`` seguido de uma " -"seqüência de zero ou mais ``lc_letter``s e underscores. Um ``lc_letter`` por" -" sua vez é qualquer um dos caracteres simples ``'a'`` através de ``'z'``. " +"seqüência de zero ou mais ``lc_letter``s e underscores. Um ``lc_letter`` por " +"sua vez é qualquer um dos caracteres simples ``'a'`` através de ``'z'``. " "(Esta regra é aderida pelos nomes definidos nas regras léxicas e gramáticas " "deste documento.)" #: ../../reference/introduction.rst:105 msgid "" -"Each rule begins with a name (which is the name defined by the rule) and " -"``::=``. A vertical bar (``|``) is used to separate alternatives; it is the" -" least binding operator in this notation. A star (``*``) means zero or more" -" repetitions of the preceding item; likewise, a plus (``+``) means one or " +"Each rule begins with a name (which is the name defined by the rule) and ``::" +"=``. A vertical bar (``|``) is used to separate alternatives; it is the " +"least binding operator in this notation. A star (``*``) means zero or more " +"repetitions of the preceding item; likewise, a plus (``+``) means one or " "more repetitions, and a phrase enclosed in square brackets (``[ ]``) means " "zero or one occurrences (in other words, the enclosed phrase is optional). " "The ``*`` and ``+`` operators bind as tightly as possible; parentheses are " "used for grouping. Literal strings are enclosed in quotes. White space is " -"only meaningful to separate tokens. Rules are normally contained on a single" -" line; rules with many alternatives may be formatted alternatively with each" -" line after the first beginning with a vertical bar." +"only meaningful to separate tokens. Rules are normally contained on a single " +"line; rules with many alternatives may be formatted alternatively with each " +"line after the first beginning with a vertical bar." msgstr "" -"Cada regra começa com um nome (no caso, o nome definido pela regra) e " -"``::=``. Uma barra vertical (``|``) é usada para separar alternativas; o " -"mesmo é o operador menos vinculativo nesta notação. Uma estrela (``*``) " -"significa zero ou mais repetições do item anterior; da mesma forma, o sinal " -"de adição (``+``) significa uma ou mais repetições, e uma frase entre " -"colchetes (``[]``) significa zero ou uma ocorrência (em outras palavras, a " -"frase anexada é opcional). Os operadores ``*`` e ``+`` se ligam tão forte " -"quanto possível; parêntesis são usados para o agrupamento. Os literais " -"Strings são delimitados por aspas. O espaço em branco só é significativo " -"para separar os tokens. As regras normalmente estão contidas numa única " -"linha; as regras com muitas alternativas podem ser formatadas " -"alternativamente com cada linha após o primeiro começo com uma barra " -"vertical." +"Cada regra começa com um nome (no caso, o nome definido pela regra) e ``::" +"=``. Uma barra vertical (``|``) é usada para separar alternativas; o mesmo é " +"o operador menos vinculativo nesta notação. Uma estrela (``*``) significa " +"zero ou mais repetições do item anterior; da mesma forma, o sinal de adição " +"(``+``) significa uma ou mais repetições, e uma frase entre colchetes " +"(``[]``) significa zero ou uma ocorrência (em outras palavras, a frase " +"anexada é opcional). Os operadores ``*`` e ``+`` se ligam tão forte quanto " +"possível; parêntesis são usados para o agrupamento. Os literais Strings são " +"delimitados por aspas. O espaço em branco só é significativo para separar os " +"tokens. As regras normalmente estão contidas numa única linha; as regras com " +"muitas alternativas podem ser formatadas alternativamente com cada linha " +"após o primeiro começo com uma barra vertical." #: ../../reference/introduction.rst:119 msgid "" "In lexical definitions (as the example above), two more conventions are " "used: Two literal characters separated by three dots mean a choice of any " "single character in the given (inclusive) range of ASCII characters. A " -"phrase between angular brackets (``<...>``) gives an informal description of" -" the symbol defined; e.g., this could be used to describe the notion of " +"phrase between angular brackets (``<...>``) gives an informal description of " +"the symbol defined; e.g., this could be used to describe the notion of " "'control character' if needed." msgstr "" "Nas definições léxicas (como o exemplo acima), são utilizadas mais duas " @@ -291,13 +290,13 @@ msgid "" "between the meaning of lexical and syntactic definitions: a lexical " "definition operates on the individual characters of the input source, while " "a syntax definition operates on the stream of tokens generated by the " -"lexical analysis. All uses of BNF in the next chapter (\"Lexical Analysis\")" -" are lexical definitions; uses in subsequent chapters are syntactic " +"lexical analysis. All uses of BNF in the next chapter (\"Lexical Analysis\") " +"are lexical definitions; uses in subsequent chapters are syntactic " "definitions." msgstr "" -"Embora a notação utilizada seja quase a mesma, há uma grande diferença entre" -" o significado das definições lexicais e sintáticas: uma definição lexical " -"opera nos caracteres individuais da fonte de entrada, enquanto uma definição" -" de sintaxe opera no fluxo de tokens gerados pelo analisador lexico. Todos " -"os usos do BNF no próximo capítulo (\"Lexical Analysis\") são definições " +"Embora a notação utilizada seja quase a mesma, há uma grande diferença entre " +"o significado das definições lexicais e sintáticas: uma definição lexical " +"opera nos caracteres individuais da fonte de entrada, enquanto uma definição " +"de sintaxe opera no fluxo de tokens gerados pelo analisador lexico. Todos os " +"usos do BNF no próximo capítulo (\"Lexical Analysis\") são definições " "léxicas; os usos nos capítulos subsequentes são definições sintáticas." diff --git a/reference/lexical_analysis.po b/reference/lexical_analysis.po index f04ae8e34..92bdee32c 100644 --- a/reference/lexical_analysis.po +++ b/reference/lexical_analysis.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Welington Carlos , 2019 @@ -10,16 +10,17 @@ # (Douglas da Silva) , 2019 # Misael borges , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-14 11:26+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,9 +41,9 @@ msgstr "" #: ../../reference/lexical_analysis.rst:14 msgid "" "Python reads program text as Unicode code points; the encoding of a source " -"file can be given by an encoding declaration and defaults to UTF-8, see " -":pep:`3120` for details. If the source file cannot be decoded, a " -":exc:`SyntaxError` is raised." +"file can be given by an encoding declaration and defaults to UTF-8, see :pep:" +"`3120` for details. If the source file cannot be decoded, a :exc:" +"`SyntaxError` is raised." msgstr "" #: ../../reference/lexical_analysis.rst:23 @@ -80,11 +81,11 @@ msgstr "Linha Física" msgid "" "A physical line is a sequence of characters terminated by an end-of-line " "sequence. In source files and strings, any of the standard platform line " -"termination sequences can be used - the Unix form using ASCII LF (linefeed)," -" the Windows form using the ASCII sequence CR LF (return followed by " -"linefeed), or the old Macintosh form using the ASCII CR (return) character." -" All of these forms can be used equally, regardless of platform. The end of" -" input also serves as an implicit terminator for the final physical line." +"termination sequences can be used - the Unix form using ASCII LF (linefeed), " +"the Windows form using the ASCII sequence CR LF (return followed by " +"linefeed), or the old Macintosh form using the ASCII CR (return) character. " +"All of these forms can be used equally, regardless of platform. The end of " +"input also serves as an implicit terminator for the final physical line." msgstr "" #: ../../reference/lexical_analysis.rst:57 @@ -162,8 +163,8 @@ msgstr "" #: ../../reference/lexical_analysis.rst:129 msgid "" "A line ending in a backslash cannot carry a comment. A backslash does not " -"continue a comment. A backslash does not continue a token except for string" -" literals (i.e., tokens other than string literals cannot be split across " +"continue a comment. A backslash does not continue a token except for string " +"literals (i.e., tokens other than string literals cannot be split across " "physical lines using a backslash). A backslash is illegal elsewhere on a " "line outside a string literal." msgstr "" @@ -216,12 +217,12 @@ msgstr "" #: ../../reference/lexical_analysis.rst:182 msgid "" "Tabs are replaced (from left to right) by one to eight spaces such that the " -"total number of characters up to and including the replacement is a multiple" -" of eight (this is intended to be the same rule as used by Unix). The total" -" number of spaces preceding the first non-blank character then determines " -"the line's indentation. Indentation cannot be split over multiple physical " -"lines using backslashes; the whitespace up to the first backslash determines" -" the indentation." +"total number of characters up to and including the replacement is a multiple " +"of eight (this is intended to be the same rule as used by Unix). The total " +"number of spaces preceding the first non-blank character then determines the " +"line's indentation. Indentation cannot be split over multiple physical " +"lines using backslashes; the whitespace up to the first backslash determines " +"the indentation." msgstr "" #: ../../reference/lexical_analysis.rst:190 @@ -233,9 +234,9 @@ msgstr "" #: ../../reference/lexical_analysis.rst:194 msgid "" -"**Cross-platform compatibility note:** because of the nature of text editors" -" on non-UNIX platforms, it is unwise to use a mixture of spaces and tabs for" -" the indentation in a single source file. It should also be noted that " +"**Cross-platform compatibility note:** because of the nature of text editors " +"on non-UNIX platforms, it is unwise to use a mixture of spaces and tabs for " +"the indentation in a single source file. It should also be noted that " "different platforms may explicitly limit the maximum indentation level." msgstr "" @@ -256,11 +257,11 @@ msgstr "" #: ../../reference/lexical_analysis.rst:209 msgid "" "Before the first line of the file is read, a single zero is pushed on the " -"stack; this will never be popped off again. The numbers pushed on the stack" -" will always be strictly increasing from bottom to top. At the beginning of" -" each logical line, the line's indentation level is compared to the top of " -"the stack. If it is equal, nothing happens. If it is larger, it is pushed on" -" the stack, and one INDENT token is generated. If it is smaller, it *must* " +"stack; this will never be popped off again. The numbers pushed on the stack " +"will always be strictly increasing from bottom to top. At the beginning of " +"each logical line, the line's indentation level is compared to the top of " +"the stack. If it is equal, nothing happens. If it is larger, it is pushed on " +"the stack, and one INDENT token is generated. If it is smaller, it *must* " "be one of the numbers occurring on the stack; all numbers on the stack that " "are larger are popped off, and for each number popped off a DEDENT token is " "generated. At the end of the file, a DEDENT token is generated for each " @@ -291,8 +292,8 @@ msgstr "" #: ../../reference/lexical_analysis.rst:255 msgid "" "Except at the beginning of a logical line or in string literals, the " -"whitespace characters space, tab and formfeed can be used interchangeably to" -" separate tokens. Whitespace is needed between two tokens only if their " +"whitespace characters space, tab and formfeed can be used interchangeably to " +"separate tokens. Whitespace is needed between two tokens only if their " "concatenation could otherwise be interpreted as a different token (e.g., ab " "is one token, but a b is two tokens)." msgstr "" @@ -304,8 +305,8 @@ msgstr "Outros Tokens" #: ../../reference/lexical_analysis.rst:267 msgid "" "Besides NEWLINE, INDENT and DEDENT, the following categories of tokens " -"exist: *identifiers*, *keywords*, *literals*, *operators*, and *delimiters*." -" Whitespace characters (other than line terminators, discussed earlier) are " +"exist: *identifiers*, *keywords*, *literals*, *operators*, and *delimiters*. " +"Whitespace characters (other than line terminators, discussed earlier) are " "not tokens, but serve to delimit tokens. Where ambiguity exists, a token " "comprises the longest possible string that forms a legal token, when read " "from left to right." @@ -340,8 +341,8 @@ msgstr "" msgid "" "Python 3.0 introduces additional characters from outside the ASCII range " "(see :pep:`3131`). For these characters, the classification uses the " -"version of the Unicode Character Database as included in the " -":mod:`unicodedata` module." +"version of the Unicode Character Database as included in the :mod:" +"`unicodedata` module." msgstr "" #: ../../reference/lexical_analysis.rst:297 @@ -394,9 +395,9 @@ msgstr "*Pc* - pontuações de conectores" #: ../../reference/lexical_analysis.rst:318 msgid "" -"*Other_ID_Start* - explicit list of characters in `PropList.txt " -"`_ to support " -"backwards compatibility" +"*Other_ID_Start* - explicit list of characters in `PropList.txt `_ to support backwards " +"compatibility" msgstr "" #: ../../reference/lexical_analysis.rst:321 @@ -412,8 +413,8 @@ msgstr "" #: ../../reference/lexical_analysis.rst:326 msgid "" "A non-normative HTML file listing all valid identifier characters for " -"Unicode 4.1 can be found at https://www.dcl.hpi.uni-" -"potsdam.de/home/loewis/table-3131.html." +"Unicode 4.1 can be found at https://www.dcl.hpi.uni-potsdam.de/home/loewis/" +"table-3131.html." msgstr "" #: ../../reference/lexical_analysis.rst:334 @@ -456,8 +457,8 @@ msgstr "" #: ../../reference/lexical_analysis.rst:374 msgid "" -"The name ``_`` is often used in conjunction with internationalization; refer" -" to the documentation for the :mod:`gettext` module for more information on " +"The name ``_`` is often used in conjunction with internationalization; refer " +"to the documentation for the :mod:`gettext` module for more information on " "this convention." msgstr "" @@ -467,12 +468,12 @@ msgstr "``__*__``" #: ../../reference/lexical_analysis.rst:379 msgid "" -"System-defined names. These names are defined by the interpreter and its " -"implementation (including the standard library). Current system names are " -"discussed in the :ref:`specialnames` section and elsewhere. More will " -"likely be defined in future versions of Python. *Any* use of ``__*__`` " -"names, in any context, that does not follow explicitly documented use, is " -"subject to breakage without warning." +"System-defined names, informally known as \"dunder\" names. These names are " +"defined by the interpreter and its implementation (including the standard " +"library). Current system names are discussed in the :ref:`specialnames` " +"section and elsewhere. More will likely be defined in future versions of " +"Python. *Any* use of ``__*__`` names, in any context, that does not follow " +"explicitly documented use, is subject to breakage without warning." msgstr "" #: ../../reference/lexical_analysis.rst:391 @@ -483,8 +484,8 @@ msgstr "``__*``" msgid "" "Class-private names. Names in this category, when used within the context " "of a class definition, are re-written to use a mangled form to help avoid " -"name clashes between \"private\" attributes of base and derived classes. See" -" section :ref:`atom-identifiers`." +"name clashes between \"private\" attributes of base and derived classes. See " +"section :ref:`atom-identifiers`." msgstr "" #: ../../reference/lexical_analysis.rst:396 @@ -508,10 +509,10 @@ msgstr "" #: ../../reference/lexical_analysis.rst:438 msgid "" "One syntactic restriction not indicated by these productions is that " -"whitespace is not allowed between the :token:`stringprefix` or " -":token:`bytesprefix` and the rest of the literal. The source character set " -"is defined by the encoding declaration; it is UTF-8 if no encoding " -"declaration is given in the source file; see section :ref:`encodings`." +"whitespace is not allowed between the :token:`stringprefix` or :token:" +"`bytesprefix` and the rest of the literal. The source character set is " +"defined by the encoding declaration; it is UTF-8 if no encoding declaration " +"is given in the source file; see section :ref:`encodings`." msgstr "" #: ../../reference/lexical_analysis.rst:448 @@ -551,8 +552,8 @@ msgstr "" #: ../../reference/lexical_analysis.rst:479 msgid "" "Support for the unicode legacy literal (``u'value'``) was reintroduced to " -"simplify the maintenance of dual Python 2.x and 3.x codebases. See " -":pep:`414` for more information." +"simplify the maintenance of dual Python 2.x and 3.x codebases. See :pep:" +"`414` for more information." msgstr "" #: ../../reference/lexical_analysis.rst:488 @@ -777,8 +778,8 @@ msgstr "São necessários quatro dígitos hexadecimais." #: ../../reference/lexical_analysis.rst:583 msgid "" -"Any Unicode character can be encoded this way. Exactly eight hex digits are" -" required." +"Any Unicode character can be encoded this way. Exactly eight hex digits are " +"required." msgstr "" #: ../../reference/lexical_analysis.rst:589 @@ -801,10 +802,10 @@ msgstr "" msgid "" "Even in a raw literal, quotes can be escaped with a backslash, but the " "backslash remains in the result; for example, ``r\"\\\"\"`` is a valid " -"string literal consisting of two characters: a backslash and a double quote;" -" ``r\"\\\"`` is not a valid string literal (even a raw string cannot end in " -"an odd number of backslashes). Specifically, *a raw literal cannot end in a" -" single backslash* (since the backslash would escape the following quote " +"string literal consisting of two characters: a backslash and a double quote; " +"``r\"\\\"`` is not a valid string literal (even a raw string cannot end in " +"an odd number of backslashes). Specifically, *a raw literal cannot end in a " +"single backslash* (since the backslash would escape the following quote " "character). Note also that a single backslash followed by a newline is " "interpreted as those two characters as part of the literal, *not* as a line " "continuation." @@ -817,11 +818,11 @@ msgstr "" #: ../../reference/lexical_analysis.rst:615 msgid "" "Multiple adjacent string or bytes literals (delimited by whitespace), " -"possibly using different quoting conventions, are allowed, and their meaning" -" is the same as their concatenation. Thus, ``\"hello\" 'world'`` is " +"possibly using different quoting conventions, are allowed, and their meaning " +"is the same as their concatenation. Thus, ``\"hello\" 'world'`` is " "equivalent to ``\"helloworld\"``. This feature can be used to reduce the " -"number of backslashes needed, to split long strings conveniently across long" -" lines, or even to add comments to parts of strings, for example::" +"number of backslashes needed, to split long strings conveniently across long " +"lines, or even to add comments to parts of strings, for example::" msgstr "" #: ../../reference/lexical_analysis.rst:626 @@ -849,8 +850,8 @@ msgstr "" #: ../../reference/lexical_analysis.rst:655 msgid "" -"Escape sequences are decoded like in ordinary string literals (except when a" -" literal is also marked as a raw string). After decoding, the grammar for " +"Escape sequences are decoded like in ordinary string literals (except when a " +"literal is also marked as a raw string). After decoding, the grammar for " "the contents of the string is:" msgstr "" @@ -859,8 +860,8 @@ msgid "" "The parts of the string outside curly braces are treated literally, except " "that any doubled curly braces ``'{{'`` or ``'}}'`` are replaced with the " "corresponding single curly brace. A single opening curly bracket ``'{'`` " -"marks a replacement field, which starts with a Python expression. After the" -" expression, there may be a conversion field, introduced by an exclamation " +"marks a replacement field, which starts with a Python expression. After the " +"expression, there may be a conversion field, introduced by an exclamation " "point ``'!'``. A format specifier may also be appended, introduced by a " "colon ``':'``. A replacement field ends with a closing curly bracket " "``'}'``." @@ -879,12 +880,19 @@ msgstr "" #: ../../reference/lexical_analysis.rst:686 msgid "" +"Prior to Python 3.7, an :keyword:`await` expression and comprehensions " +"containing an :keyword:`async for` clause were illegal in the expressions in " +"formatted string literals due to a problem with the implementation." +msgstr "" + +#: ../../reference/lexical_analysis.rst:691 +msgid "" "If a conversion is specified, the result of evaluating the expression is " "converted before formatting. Conversion ``'!s'`` calls :func:`str` on the " "result, ``'!r'`` calls :func:`repr`, and ``'!a'`` calls :func:`ascii`." msgstr "" -#: ../../reference/lexical_analysis.rst:690 +#: ../../reference/lexical_analysis.rst:695 msgid "" "The result is then formatted using the :func:`format` protocol. The format " "specifier is passed to the :meth:`__format__` method of the expression or " @@ -893,123 +901,123 @@ msgid "" "whole string." msgstr "" -#: ../../reference/lexical_analysis.rst:696 +#: ../../reference/lexical_analysis.rst:701 msgid "" "Top-level format specifiers may include nested replacement fields. These " "nested fields may include their own conversion fields and :ref:`format " -"specifiers `, but may not include more deeply-nested replacement" -" fields. The :ref:`format specifier mini-language ` is the same " +"specifiers `, but may not include more deeply-nested replacement " +"fields. The :ref:`format specifier mini-language ` is the same " "as that used by the string .format() method." msgstr "" -#: ../../reference/lexical_analysis.rst:702 +#: ../../reference/lexical_analysis.rst:707 msgid "" -"Formatted string literals may be concatenated, but replacement fields cannot" -" be split across literals." +"Formatted string literals may be concatenated, but replacement fields cannot " +"be split across literals." msgstr "" -#: ../../reference/lexical_analysis.rst:705 +#: ../../reference/lexical_analysis.rst:710 msgid "Some examples of formatted string literals::" msgstr "Alguns exemplos de literais formatados::" -#: ../../reference/lexical_analysis.rst:724 +#: ../../reference/lexical_analysis.rst:729 msgid "" "A consequence of sharing the same syntax as regular string literals is that " -"characters in the replacement fields must not conflict with the quoting used" -" in the outer formatted string literal::" +"characters in the replacement fields must not conflict with the quoting used " +"in the outer formatted string literal::" msgstr "" -#: ../../reference/lexical_analysis.rst:731 +#: ../../reference/lexical_analysis.rst:736 msgid "" "Backslashes are not allowed in format expressions and will raise an error::" msgstr "" "As barras invertidas não são permitidas nas expressões de formatação e " "levantarão uma exceção::" -#: ../../reference/lexical_analysis.rst:736 +#: ../../reference/lexical_analysis.rst:741 msgid "" "To include a value in which a backslash escape is required, create a " "temporary variable." msgstr "" -#: ../../reference/lexical_analysis.rst:743 +#: ../../reference/lexical_analysis.rst:748 msgid "" "Formatted string literals cannot be used as docstrings, even if they do not " "include expressions." msgstr "" -#: ../../reference/lexical_analysis.rst:754 +#: ../../reference/lexical_analysis.rst:759 msgid "" "See also :pep:`498` for the proposal that added formatted string literals, " "and :meth:`str.format`, which uses a related format string mechanism." msgstr "" -#: ../../reference/lexical_analysis.rst:761 +#: ../../reference/lexical_analysis.rst:766 msgid "Numeric literals" msgstr "Literais Numéricos" -#: ../../reference/lexical_analysis.rst:767 +#: ../../reference/lexical_analysis.rst:772 msgid "" -"There are three types of numeric literals: integers, floating point numbers," -" and imaginary numbers. There are no complex literals (complex numbers can " +"There are three types of numeric literals: integers, floating point numbers, " +"and imaginary numbers. There are no complex literals (complex numbers can " "be formed by adding a real number and an imaginary number)." msgstr "" -#: ../../reference/lexical_analysis.rst:771 +#: ../../reference/lexical_analysis.rst:776 msgid "" "Note that numeric literals do not include a sign; a phrase like ``-1`` is " "actually an expression composed of the unary operator '``-``' and the " "literal ``1``." msgstr "" -#: ../../reference/lexical_analysis.rst:785 +#: ../../reference/lexical_analysis.rst:790 msgid "Integer literals" msgstr "Inteiros Literais" -#: ../../reference/lexical_analysis.rst:787 +#: ../../reference/lexical_analysis.rst:792 msgid "Integer literals are described by the following lexical definitions:" msgstr "" -#: ../../reference/lexical_analysis.rst:801 +#: ../../reference/lexical_analysis.rst:806 msgid "" "There is no limit for the length of integer literals apart from what can be " "stored in available memory." msgstr "" -#: ../../reference/lexical_analysis.rst:804 +#: ../../reference/lexical_analysis.rst:809 msgid "" "Underscores are ignored for determining the numeric value of the literal. " "They can be used to group digits for enhanced readability. One underscore " "can occur between digits, and after base specifiers like ``0x``." msgstr "" -#: ../../reference/lexical_analysis.rst:808 +#: ../../reference/lexical_analysis.rst:813 msgid "" "Note that leading zeros in a non-zero decimal number are not allowed. This " "is for disambiguation with C-style octal literals, which Python used before " "version 3.0." msgstr "" -#: ../../reference/lexical_analysis.rst:812 +#: ../../reference/lexical_analysis.rst:817 msgid "Some examples of integer literals::" msgstr "Alguns exemplos de inteiros literais::" -#: ../../reference/lexical_analysis.rst:818 -#: ../../reference/lexical_analysis.rst:850 +#: ../../reference/lexical_analysis.rst:823 +#: ../../reference/lexical_analysis.rst:855 msgid "Underscores are now allowed for grouping purposes in literals." msgstr "" "Os underscores agora são permitidos para fins de agrupamento de literais." -#: ../../reference/lexical_analysis.rst:829 +#: ../../reference/lexical_analysis.rst:834 msgid "Floating point literals" msgstr "Literais de Ponto Flutuante" -#: ../../reference/lexical_analysis.rst:831 +#: ../../reference/lexical_analysis.rst:836 msgid "" "Floating point literals are described by the following lexical definitions:" msgstr "" -#: ../../reference/lexical_analysis.rst:841 +#: ../../reference/lexical_analysis.rst:846 msgid "" "Note that the integer and exponent parts are always interpreted using radix " "10. For example, ``077e010`` is legal, and denotes the same number as " @@ -1018,24 +1026,24 @@ msgid "" "grouping." msgstr "" -#: ../../reference/lexical_analysis.rst:846 +#: ../../reference/lexical_analysis.rst:851 msgid "Some examples of floating point literals::" msgstr "Alguns exemplos de literais de ponto flutuante::" -#: ../../reference/lexical_analysis.rst:859 +#: ../../reference/lexical_analysis.rst:864 msgid "Imaginary literals" msgstr "Literais Imaginários" -#: ../../reference/lexical_analysis.rst:861 +#: ../../reference/lexical_analysis.rst:866 msgid "Imaginary literals are described by the following lexical definitions:" msgstr "" "Os literais imaginários são descritos pelas seguintes definições léxicas:" -#: ../../reference/lexical_analysis.rst:866 +#: ../../reference/lexical_analysis.rst:871 msgid "" "An imaginary literal yields a complex number with a real part of 0.0. " -"Complex numbers are represented as a pair of floating point numbers and have" -" the same restrictions on their range. To create a complex number with a " +"Complex numbers are represented as a pair of floating point numbers and have " +"the same restrictions on their range. To create a complex number with a " "nonzero real part, add a floating point number to it, e.g., ``(3+4j)``. " "Some examples of imaginary literals::" msgstr "" @@ -1046,28 +1054,28 @@ msgstr "" "flutuante a ele, por exemplo, ``(3 + 4j)``. Alguns exemplos de literais " "imaginários ::" -#: ../../reference/lexical_analysis.rst:878 +#: ../../reference/lexical_analysis.rst:883 msgid "Operators" msgstr "Operadores" -#: ../../reference/lexical_analysis.rst:882 +#: ../../reference/lexical_analysis.rst:887 msgid "The following tokens are operators:" msgstr "Os seguintes tokens são operadores:" -#: ../../reference/lexical_analysis.rst:895 +#: ../../reference/lexical_analysis.rst:900 msgid "Delimiters" msgstr "Delimitadores" -#: ../../reference/lexical_analysis.rst:899 +#: ../../reference/lexical_analysis.rst:904 msgid "The following tokens serve as delimiters in the grammar:" msgstr "Os seguintes tokens servem como delimitadores na gramática:" -#: ../../reference/lexical_analysis.rst:908 +#: ../../reference/lexical_analysis.rst:913 msgid "" "The period can also occur in floating-point and imaginary literals. A " "sequence of three periods has a special meaning as an ellipsis literal. The " -"second half of the list, the augmented assignment operators, serve lexically" -" as delimiters, but also perform an operation." +"second half of the list, the augmented assignment operators, serve lexically " +"as delimiters, but also perform an operation." msgstr "" "O período também pode ocorrer em literais de ponto flutuante e imaginário. " "Uma sequência de três períodos tem um significado especial como um literal " @@ -1075,22 +1083,22 @@ msgstr "" "aumentada, servem lexicamente como delimitadores, mas também realizam uma " "operação." -#: ../../reference/lexical_analysis.rst:913 +#: ../../reference/lexical_analysis.rst:918 msgid "" "The following printing ASCII characters have special meaning as part of " "other tokens or are otherwise significant to the lexical analyzer:" msgstr "" -#: ../../reference/lexical_analysis.rst:920 +#: ../../reference/lexical_analysis.rst:925 msgid "" "The following printing ASCII characters are not used in Python. Their " "occurrence outside string literals and comments is an unconditional error:" msgstr "" -#: ../../reference/lexical_analysis.rst:929 +#: ../../reference/lexical_analysis.rst:934 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../reference/lexical_analysis.rst:930 +#: ../../reference/lexical_analysis.rst:935 msgid "http://www.unicode.org/Public/11.0.0/ucd/NameAliases.txt" msgstr "" diff --git a/reference/simple_stmts.po b/reference/simple_stmts.po index dfb7baa84..633cbb0b1 100644 --- a/reference/simple_stmts.po +++ b/reference/simple_stmts.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-25 11:16+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:43+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,8 +30,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:10 msgid "" -"A simple statement is comprised within a single logical line. Several simple" -" statements may occur on a single line separated by semicolons. The syntax " +"A simple statement is comprised within a single logical line. Several simple " +"statements may occur on a single line separated by semicolons. The syntax " "for simple statements is:" msgstr "" @@ -40,8 +41,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:43 msgid "" -"Expression statements are used (mostly interactively) to compute and write a" -" value, or (usually) to call a procedure (a function that returns no " +"Expression statements are used (mostly interactively) to compute and write a " +"value, or (usually) to call a procedure (a function that returns no " "meaningful result; in Python, procedures return the value ``None``). Other " "uses of expression statements are allowed and occasionally useful. The " "syntax for an expression statement is:" @@ -49,8 +50,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:52 msgid "" -"An expression statement evaluates the expression list (which may be a single" -" expression)." +"An expression statement evaluates the expression list (which may be a single " +"expression)." msgstr "" #: ../../reference/simple_stmts.rst:64 @@ -73,8 +74,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:96 msgid "" -"(See section :ref:`primaries` for the syntax definitions for *attributeref*," -" *subscription*, and *slicing*.)" +"(See section :ref:`primaries` for the syntax definitions for *attributeref*, " +"*subscription*, and *slicing*.)" msgstr "" #: ../../reference/simple_stmts.rst:99 @@ -98,8 +99,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:121 msgid "" -"Assignment of an object to a target list, optionally enclosed in parentheses" -" or square brackets, is recursively defined as follows." +"Assignment of an object to a target list, optionally enclosed in parentheses " +"or square brackets, is recursively defined as follows." msgstr "" #: ../../reference/simple_stmts.rst:124 @@ -121,15 +122,14 @@ msgid "" "\"starred\" target: The object must be an iterable with at least as many " "items as there are targets in the target list, minus one. The first items " "of the iterable are assigned, from left to right, to the targets before the " -"starred target. The final items of the iterable are assigned to the targets" -" after the starred target. A list of the remaining items in the iterable is" -" then assigned to the starred target (the list can be empty)." +"starred target. The final items of the iterable are assigned to the targets " +"after the starred target. A list of the remaining items in the iterable is " +"then assigned to the starred target (the list can be empty)." msgstr "" #: ../../reference/simple_stmts.rst:143 msgid "" -"Assignment of an object to a single target is recursively defined as " -"follows." +"Assignment of an object to a single target is recursively defined as follows." msgstr "" #: ../../reference/simple_stmts.rst:145 @@ -152,8 +152,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:156 msgid "" "The name is rebound if it was already bound. This may cause the reference " -"count for the object previously bound to the name to reach zero, causing the" -" object to be deallocated and its destructor (if it has one) to be called." +"count for the object previously bound to the name to reach zero, causing the " +"object to be deallocated and its destructor (if it has one) to be called." msgstr "" #: ../../reference/simple_stmts.rst:162 @@ -162,8 +162,8 @@ msgid "" "reference is evaluated. It should yield an object with assignable " "attributes; if this is not the case, :exc:`TypeError` is raised. That " "object is then asked to assign the assigned object to the given attribute; " -"if it cannot perform the assignment, it raises an exception (usually but not" -" necessarily :exc:`AttributeError`)." +"if it cannot perform the assignment, it raises an exception (usually but not " +"necessarily :exc:`AttributeError`)." msgstr "" #: ../../reference/simple_stmts.rst:171 @@ -173,9 +173,9 @@ msgid "" "access either an instance attribute or (if no instance attribute exists) a " "class attribute. The LHS target ``a.x`` is always set as an instance " "attribute, creating it if necessary. Thus, the two occurrences of ``a.x`` " -"do not necessarily refer to the same attribute: if the RHS expression refers" -" to a class attribute, the LHS creates a new instance attribute as the " -"target of the assignment::" +"do not necessarily refer to the same attribute: if the RHS expression refers " +"to a class attribute, the LHS creates a new instance attribute as the target " +"of the assignment::" msgstr "" #: ../../reference/simple_stmts.rst:185 @@ -195,12 +195,12 @@ msgstr "" #: ../../reference/simple_stmts.rst:201 msgid "" "If the primary is a mutable sequence object (such as a list), the subscript " -"must yield an integer. If it is negative, the sequence's length is added to" -" it. The resulting value must be a nonnegative integer less than the " +"must yield an integer. If it is negative, the sequence's length is added to " +"it. The resulting value must be a nonnegative integer less than the " "sequence's length, and the sequence is asked to assign the assigned object " -"to its item with that index. If the index is out of range, " -":exc:`IndexError` is raised (assignment to a subscripted sequence cannot add" -" new items to a list)." +"to its item with that index. If the index is out of range, :exc:" +"`IndexError` is raised (assignment to a subscripted sequence cannot add new " +"items to a list)." msgstr "" #: ../../reference/simple_stmts.rst:212 @@ -222,12 +222,12 @@ msgstr "" #: ../../reference/simple_stmts.rst:223 msgid "" "If the target is a slicing: The primary expression in the reference is " -"evaluated. It should yield a mutable sequence object (such as a list). The" -" assigned object should be a sequence object of the same type. Next, the " +"evaluated. It should yield a mutable sequence object (such as a list). The " +"assigned object should be a sequence object of the same type. Next, the " "lower and upper bound expressions are evaluated, insofar they are present; " "defaults are zero and the sequence's length. The bounds should evaluate to " -"integers. If either bound is negative, the sequence's length is added to it." -" The resulting bounds are clipped to lie between zero and the sequence's " +"integers. If either bound is negative, the sequence's length is added to " +"it. The resulting bounds are clipped to lie between zero and the sequence's " "length, inclusive. Finally, the sequence object is asked to replace the " "slice with the items of the assigned sequence. The length of the slice may " "be different from the length of the assigned sequence, thus changing the " @@ -243,11 +243,11 @@ msgstr "" #: ../../reference/simple_stmts.rst:241 msgid "" -"Although the definition of assignment implies that overlaps between the " -"left-hand side and the right-hand side are 'simultaneous' (for example ``a, " -"b = b, a`` swaps two variables), overlaps *within* the collection of " -"assigned-to variables occur left-to-right, sometimes resulting in confusion." -" For instance, the following program prints ``[0, 2]``::" +"Although the definition of assignment implies that overlaps between the left-" +"hand side and the right-hand side are 'simultaneous' (for example ``a, b = " +"b, a`` swaps two variables), overlaps *within* the collection of assigned-to " +"variables occur left-to-right, sometimes resulting in confusion. For " +"instance, the following program prints ``[0, 2]``::" msgstr "" #: ../../reference/simple_stmts.rst:255 @@ -279,24 +279,23 @@ msgid "" "An augmented assignment evaluates the target (which, unlike normal " "assignment statements, cannot be an unpacking) and the expression list, " "performs the binary operation specific to the type of assignment on the two " -"operands, and assigns the result to the original target. The target is only" -" evaluated once." +"operands, and assigns the result to the original target. The target is only " +"evaluated once." msgstr "" #: ../../reference/simple_stmts.rst:297 msgid "" -"An augmented assignment expression like ``x += 1`` can be rewritten as ``x =" -" x + 1`` to achieve a similar, but not exactly equal effect. In the " -"augmented version, ``x`` is only evaluated once. Also, when possible, the " -"actual operation is performed *in-place*, meaning that rather than creating " -"a new object and assigning that to the target, the old object is modified " -"instead." +"An augmented assignment expression like ``x += 1`` can be rewritten as ``x = " +"x + 1`` to achieve a similar, but not exactly equal effect. In the augmented " +"version, ``x`` is only evaluated once. Also, when possible, the actual " +"operation is performed *in-place*, meaning that rather than creating a new " +"object and assigning that to the target, the old object is modified instead." msgstr "" #: ../../reference/simple_stmts.rst:303 msgid "" -"Unlike normal assignments, augmented assignments evaluate the left-hand side" -" *before* evaluating the right-hand side. For example, ``a[i] += f(x)`` " +"Unlike normal assignments, augmented assignments evaluate the left-hand side " +"*before* evaluating the right-hand side. For example, ``a[i] += f(x)`` " "first looks-up ``a[i]``, then it evaluates ``f(x)`` and performs the " "addition, and lastly, it writes the result back to ``a[i]``." msgstr "" @@ -304,8 +303,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:308 msgid "" "With the exception of assigning to tuples and multiple targets in a single " -"statement, the assignment done by augmented assignment statements is handled" -" the same way as normal assignments. Similarly, with the exception of the " +"statement, the assignment done by augmented assignment statements is handled " +"the same way as normal assignments. Similarly, with the exception of the " "possible *in-place* behavior, the binary operation performed by augmented " "assignment is the same as the normal binary operations." msgstr "" @@ -323,8 +322,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:328 msgid "" -":term:`Annotation ` assignment is the combination, in a" -" single statement, of a variable or attribute annotation and an optional " +":term:`Annotation ` assignment is the combination, in a " +"single statement, of a variable or attribute annotation and an optional " "assignment statement:" msgstr "" @@ -337,11 +336,11 @@ msgstr "" #: ../../reference/simple_stmts.rst:337 msgid "" "For simple names as assignment targets, if in class or module scope, the " -"annotations are evaluated and stored in a special class or module attribute " -":attr:`__annotations__` that is a dictionary mapping from variable names " +"annotations are evaluated and stored in a special class or module attribute :" +"attr:`__annotations__` that is a dictionary mapping from variable names " "(mangled if private) to evaluated annotations. This attribute is writable " -"and is automatically created at the start of class or module body execution," -" if annotations are found statically." +"and is automatically created at the start of class or module body execution, " +"if annotations are found statically." msgstr "" #: ../../reference/simple_stmts.rst:345 @@ -352,8 +351,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:348 msgid "" -"If a name is annotated in a function scope, then this name is local for that" -" scope. Annotations are never evaluated and stored in function scopes." +"If a name is annotated in a function scope, then this name is local for that " +"scope. Annotations are never evaluated and stored in function scopes." msgstr "" #: ../../reference/simple_stmts.rst:351 @@ -361,8 +360,8 @@ msgid "" "If the right hand side is present, an annotated assignment performs the " "actual assignment before evaluating annotations (where applicable). If the " "right hand side is not present for an expression target, then the " -"interpreter evaluates the target except for the last :meth:`__setitem__` or " -":meth:`__setattr__` call." +"interpreter evaluates the target except for the last :meth:`__setitem__` or :" +"meth:`__setattr__` call." msgstr "" #: ../../reference/simple_stmts.rst:362 @@ -393,8 +392,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:380 msgid "" -"Assert statements are a convenient way to insert debugging assertions into a" -" program:" +"Assert statements are a convenient way to insert debugging assertions into a " +"program:" msgstr "" #: ../../reference/simple_stmts.rst:386 @@ -411,8 +410,8 @@ msgid "" "These equivalences assume that :const:`__debug__` and :exc:`AssertionError` " "refer to the built-in variables with those names. In the current " "implementation, the built-in variable :const:`__debug__` is ``True`` under " -"normal circumstances, ``False`` when optimization is requested (command line" -" option :option:`-O`). The current code generator emits no code for an " +"normal circumstances, ``False`` when optimization is requested (command line " +"option :option:`-O`). The current code generator emits no code for an " "assert statement when optimization is requested at compile time. Note that " "it is unnecessary to include the source code for the expression that failed " "in the error message; it will be displayed as part of the stack trace." @@ -453,10 +452,10 @@ msgstr "" #: ../../reference/simple_stmts.rst:457 msgid "" -"Deletion of a name removes the binding of that name from the local or global" -" namespace, depending on whether the name occurs in a :keyword:`global` " -"statement in the same code block. If the name is unbound, a " -":exc:`NameError` exception will be raised." +"Deletion of a name removes the binding of that name from the local or global " +"namespace, depending on whether the name occurs in a :keyword:`global` " +"statement in the same code block. If the name is unbound, a :exc:" +"`NameError` exception will be raised." msgstr "" #: ../../reference/simple_stmts.rst:464 @@ -497,8 +496,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:497 msgid "" -"When :keyword:`return` passes control out of a :keyword:`try` statement with" -" a :keyword:`finally` clause, that :keyword:`!finally` clause is executed " +"When :keyword:`return` passes control out of a :keyword:`try` statement with " +"a :keyword:`finally` clause, that :keyword:`!finally` clause is executed " "before really leaving the function." msgstr "" @@ -506,16 +505,16 @@ msgstr "" msgid "" "In a generator function, the :keyword:`return` statement indicates that the " "generator is done and will cause :exc:`StopIteration` to be raised. The " -"returned value (if any) is used as an argument to construct " -":exc:`StopIteration` and becomes the :attr:`StopIteration.value` attribute." +"returned value (if any) is used as an argument to construct :exc:" +"`StopIteration` and becomes the :attr:`StopIteration.value` attribute." msgstr "" #: ../../reference/simple_stmts.rst:506 msgid "" "In an asynchronous generator function, an empty :keyword:`return` statement " -"indicates that the asynchronous generator is done and will cause " -":exc:`StopAsyncIteration` to be raised. A non-empty :keyword:`!return` " -"statement is a syntax error in an asynchronous generator function." +"indicates that the asynchronous generator is done and will cause :exc:" +"`StopAsyncIteration` to be raised. A non-empty :keyword:`!return` statement " +"is a syntax error in an asynchronous generator function." msgstr "" #: ../../reference/simple_stmts.rst:514 @@ -536,16 +535,16 @@ msgstr "" #: ../../reference/simple_stmts.rst:539 msgid "" -"Yield expressions and statements are only used when defining a " -":term:`generator` function, and are only used in the body of the generator " +"Yield expressions and statements are only used when defining a :term:" +"`generator` function, and are only used in the body of the generator " "function. Using yield in a function definition is sufficient to cause that " "definition to create a generator function instead of a normal function." msgstr "" #: ../../reference/simple_stmts.rst:544 msgid "" -"For full details of :keyword:`yield` semantics, refer to the " -":ref:`yieldexpr` section." +"For full details of :keyword:`yield` semantics, refer to the :ref:" +"`yieldexpr` section." msgstr "" #: ../../reference/simple_stmts.rst:550 @@ -554,8 +553,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:561 msgid "" -"If no expressions are present, :keyword:`raise` re-raises the last exception" -" that was active in the current scope. If no exception is active in the " +"If no expressions are present, :keyword:`raise` re-raises the last exception " +"that was active in the current scope. If no exception is active in the " "current scope, a :exc:`RuntimeError` exception is raised indicating that " "this is an error." msgstr "" @@ -563,31 +562,31 @@ msgstr "" #: ../../reference/simple_stmts.rst:566 msgid "" "Otherwise, :keyword:`raise` evaluates the first expression as the exception " -"object. It must be either a subclass or an instance of " -":class:`BaseException`. If it is a class, the exception instance will be " -"obtained when needed by instantiating the class with no arguments." +"object. It must be either a subclass or an instance of :class:" +"`BaseException`. If it is a class, the exception instance will be obtained " +"when needed by instantiating the class with no arguments." msgstr "" #: ../../reference/simple_stmts.rst:571 msgid "" -"The :dfn:`type` of the exception is the exception instance's class, the " -":dfn:`value` is the instance itself." +"The :dfn:`type` of the exception is the exception instance's class, the :dfn:" +"`value` is the instance itself." msgstr "" #: ../../reference/simple_stmts.rst:576 msgid "" "A traceback object is normally created automatically when an exception is " "raised and attached to it as the :attr:`__traceback__` attribute, which is " -"writable. You can create an exception and set your own traceback in one step" -" using the :meth:`with_traceback` exception method (which returns the same " +"writable. You can create an exception and set your own traceback in one step " +"using the :meth:`with_traceback` exception method (which returns the same " "exception instance, with its traceback set to its argument), like so::" msgstr "" #: ../../reference/simple_stmts.rst:588 msgid "" "The ``from`` clause is used for exception chaining: if given, the second " -"*expression* must be another exception class or instance, which will then be" -" attached to the raised exception as the :attr:`__cause__` attribute (which " +"*expression* must be another exception class or instance, which will then be " +"attached to the raised exception as the :attr:`__cause__` attribute (which " "is writable). If the raised exception is not handled, both exceptions will " "be printed::" msgstr "" @@ -607,9 +606,9 @@ msgstr "" #: ../../reference/simple_stmts.rst:640 msgid "" -"Additional information on exceptions can be found in section " -":ref:`exceptions`, and information about handling exceptions is in section " -":ref:`try`." +"Additional information on exceptions can be found in section :ref:" +"`exceptions`, and information about handling exceptions is in section :ref:" +"`try`." msgstr "" #: ../../reference/simple_stmts.rst:643 @@ -628,21 +627,21 @@ msgstr "" #: ../../reference/simple_stmts.rst:664 msgid "" -":keyword:`break` may only occur syntactically nested in a :keyword:`for` or " -":keyword:`while` loop, but not nested in a function or class definition " +":keyword:`break` may only occur syntactically nested in a :keyword:`for` or :" +"keyword:`while` loop, but not nested in a function or class definition " "within that loop." msgstr "" #: ../../reference/simple_stmts.rst:671 msgid "" -"It terminates the nearest enclosing loop, skipping the optional " -":keyword:`!else` clause if the loop has one." +"It terminates the nearest enclosing loop, skipping the optional :keyword:`!" +"else` clause if the loop has one." msgstr "" #: ../../reference/simple_stmts.rst:674 msgid "" -"If a :keyword:`for` loop is terminated by :keyword:`break`, the loop control" -" target keeps its current value." +"If a :keyword:`for` loop is terminated by :keyword:`break`, the loop control " +"target keeps its current value." msgstr "" #: ../../reference/simple_stmts.rst:679 @@ -687,15 +686,15 @@ msgstr "" #: ../../reference/simple_stmts.rst:738 msgid "" -"define a name or names in the local namespace for the scope where the " -":keyword:`import` statement occurs." +"define a name or names in the local namespace for the scope where the :" +"keyword:`import` statement occurs." msgstr "" #: ../../reference/simple_stmts.rst:741 msgid "" "When the statement contains multiple clauses (separated by commas) the two " -"steps are carried out separately for each clause, just as though the clauses" -" had been separated out into individual import statements." +"steps are carried out separately for each clause, just as though the clauses " +"had been separated out into individual import statements." msgstr "" #: ../../reference/simple_stmts.rst:746 @@ -711,14 +710,14 @@ msgstr "" #: ../../reference/simple_stmts.rst:754 msgid "" -"If the requested module is retrieved successfully, it will be made available" -" in the local namespace in one of three ways:" +"If the requested module is retrieved successfully, it will be made available " +"in the local namespace in one of three ways:" msgstr "" #: ../../reference/simple_stmts.rst:759 msgid "" -"If the module name is followed by :keyword:`!as`, then the name following " -":keyword:`!as` is bound directly to the imported module." +"If the module name is followed by :keyword:`!as`, then the name following :" +"keyword:`!as` is bound directly to the imported module." msgstr "" "Se o nome do módulo é seguido pela palavra-chave :keyword:`!as`, o nome a " "seguir é vinculado diretamente ao módulo importado." @@ -749,8 +748,7 @@ msgid "" msgstr "" #: ../../reference/simple_stmts.rst:778 -msgid "" -"for each of the identifiers specified in the :keyword:`import` clauses:" +msgid "for each of the identifiers specified in the :keyword:`import` clauses:" msgstr "" #: ../../reference/simple_stmts.rst:780 @@ -769,9 +767,9 @@ msgstr "" #: ../../reference/simple_stmts.rst:784 msgid "" -"otherwise, a reference to that value is stored in the local namespace, using" -" the name in the :keyword:`!as` clause if it is present, otherwise using the" -" attribute name" +"otherwise, a reference to that value is stored in the local namespace, using " +"the name in the :keyword:`!as` clause if it is present, otherwise using the " +"attribute name" msgstr "" #: ../../reference/simple_stmts.rst:788 @@ -780,8 +778,8 @@ msgstr "Exemplos::" #: ../../reference/simple_stmts.rst:798 msgid "" -"If the list of identifiers is replaced by a star (``'*'``), all public names" -" defined in the module are bound in the local namespace for the scope where " +"If the list of identifiers is replaced by a star (``'*'``), all public names " +"defined in the module are bound in the local namespace for the scope where " "the :keyword:`import` statement occurs." msgstr "" @@ -790,13 +788,12 @@ msgid "" "The *public names* defined by a module are determined by checking the " "module's namespace for a variable named ``__all__``; if defined, it must be " "a sequence of strings which are names defined or imported by that module. " -"The names given in ``__all__`` are all considered public and are required to" -" exist. If ``__all__`` is not defined, the set of public names includes all" -" names found in the module's namespace which do not begin with an underscore" -" character (``'_'``). ``__all__`` should contain the entire public API. It " +"The names given in ``__all__`` are all considered public and are required to " +"exist. If ``__all__`` is not defined, the set of public names includes all " +"names found in the module's namespace which do not begin with an underscore " +"character (``'_'``). ``__all__`` should contain the entire public API. It " "is intended to avoid accidentally exporting items that are not part of the " -"API (such as library modules which were imported and used within the " -"module)." +"API (such as library modules which were imported and used within the module)." msgstr "" #: ../../reference/simple_stmts.rst:814 @@ -810,12 +807,12 @@ msgstr "" msgid "" "When specifying what module to import you do not have to specify the " "absolute name of the module. When a module or package is contained within " -"another package it is possible to make a relative import within the same top" -" package without having to mention the package name. By using leading dots " -"in the specified module or package after :keyword:`from` you can specify how" -" high to traverse up the current package hierarchy without specifying exact " -"names. One leading dot means the current package where the module making the" -" import exists. Two dots means up one package level. Three dots is up two " +"another package it is possible to make a relative import within the same top " +"package without having to mention the package name. By using leading dots in " +"the specified module or package after :keyword:`from` you can specify how " +"high to traverse up the current package hierarchy without specifying exact " +"names. One leading dot means the current package where the module making the " +"import exists. Two dots means up one package level. Three dots is up two " "levels, etc. So if you execute ``from . import mod`` from a module in the " "``pkg`` package then you will end up importing ``pkg.mod``. If you execute " "``from ..subpkg2 import mod`` from within ``pkg.subpkg1`` you will import " @@ -878,8 +875,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:875 msgid "" -"All historical features enabled by the future statement are still recognized" -" by Python 3. The list includes ``absolute_import``, ``division``, " +"All historical features enabled by the future statement are still recognized " +"by Python 3. The list includes ``absolute_import``, ``division``, " "``generators``, ``generator_stop``, ``unicode_literals``, " "``print_function``, ``nested_scopes`` and ``with_statement``. They are all " "redundant because they are always enabled, and only kept for backwards " @@ -905,8 +902,8 @@ msgstr "" #: ../../reference/simple_stmts.rst:893 msgid "" -"The direct runtime semantics are the same as for any import statement: there" -" is a standard module :mod:`__future__`, described later, and it will be " +"The direct runtime semantics are the same as for any import statement: there " +"is a standard module :mod:`__future__`, described later, and it will be " "imported in the usual way at the time the future statement is executed." msgstr "" @@ -928,11 +925,11 @@ msgstr "" #: ../../reference/simple_stmts.rst:907 msgid "" -"Code compiled by calls to the built-in functions :func:`exec` and " -":func:`compile` that occur in a module :mod:`M` containing a future " -"statement will, by default, use the new syntax or semantics associated with " -"the future statement. This can be controlled by optional arguments to " -":func:`compile` --- see the documentation of that function for details." +"Code compiled by calls to the built-in functions :func:`exec` and :func:" +"`compile` that occur in a module :mod:`M` containing a future statement " +"will, by default, use the new syntax or semantics associated with the future " +"statement. This can be controlled by optional arguments to :func:`compile` " +"--- see the documentation of that function for details." msgstr "" #: ../../reference/simple_stmts.rst:913 @@ -992,10 +989,10 @@ msgid "" "applies only to code parsed at the same time as the :keyword:`!global` " "statement. In particular, a :keyword:`!global` statement contained in a " "string or code object supplied to the built-in :func:`exec` function does " -"not affect the code block *containing* the function call, and code contained" -" in such a string is unaffected by :keyword:`!global` statements in the code" -" containing the function call. The same applies to the :func:`eval` and " -":func:`compile` functions." +"not affect the code block *containing* the function call, and code contained " +"in such a string is unaffected by :keyword:`!global` statements in the code " +"containing the function call. The same applies to the :func:`eval` and :" +"func:`compile` functions." msgstr "" #: ../../reference/simple_stmts.rst:975 @@ -1005,16 +1002,16 @@ msgstr "" #: ../../reference/simple_stmts.rst:987 msgid "" "The :keyword:`nonlocal` statement causes the listed identifiers to refer to " -"previously bound variables in the nearest enclosing scope excluding globals." -" This is important because the default behavior for binding is to search the" -" local namespace first. The statement allows encapsulated code to rebind " +"previously bound variables in the nearest enclosing scope excluding globals. " +"This is important because the default behavior for binding is to search the " +"local namespace first. The statement allows encapsulated code to rebind " "variables outside of the local scope besides the global (module) scope." msgstr "" #: ../../reference/simple_stmts.rst:997 msgid "" -"Names listed in a :keyword:`nonlocal` statement, unlike those listed in a " -":keyword:`global` statement, must refer to pre-existing bindings in an " +"Names listed in a :keyword:`nonlocal` statement, unlike those listed in a :" +"keyword:`global` statement, must refer to pre-existing bindings in an " "enclosing scope (the scope in which a new binding should be created cannot " "be determined unambiguously)." msgstr "" diff --git a/reference/toplevel_components.po b/reference/toplevel_components.po index 185cb4cd2..6b2d6b8c6 100644 --- a/reference/toplevel_components.po +++ b/reference/toplevel_components.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# +# Julia Rizza , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:42+0000\n" -"Last-Translator: Raphael Mendonça, 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Julia Rizza , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,10 +34,14 @@ msgid "" "interactively, from a module source file, etc. This chapter gives the " "syntax used in these cases." msgstr "" +"O interpretador Python pode receber suas entradas de uma quantidade de " +"fontes: de um script passado a ele como entrada padrão ou como um argumento " +"do programa, digitado interativamente, de um arquivo fonte de um módulo, " +"etc. Este capítulo mostra a sintaxe usada nesses casos." #: ../../reference/toplevel_components.rst:19 msgid "Complete Python programs" -msgstr "" +msgstr "Programas Python completos" #: ../../reference/toplevel_components.rst:28 msgid "" @@ -43,17 +49,27 @@ msgid "" "interpreter is invoked, it is useful to have a notion of a complete Python " "program. A complete Python program is executed in a minimally initialized " "environment: all built-in and standard modules are available, but none have " -"been initialized, except for :mod:`sys` (various system services), " -":mod:`builtins` (built-in functions, exceptions and ``None``) and " -":mod:`__main__`. The latter is used to provide the local and global " -"namespace for execution of the complete program." -msgstr "" +"been initialized, except for :mod:`sys` (various system services), :mod:" +"`builtins` (built-in functions, exceptions and ``None``) and :mod:" +"`__main__`. The latter is used to provide the local and global namespace " +"for execution of the complete program." +msgstr "" +"Ainda que uma especificação de linguagem não precise prescrever como o " +"interpretador da linguagem é invocado, é útil ter uma noção de um programa " +"Python completo. Um programa Python completo é executado em um ambiente " +"minimamente inicializado: todos os módulos internos e padrão estão " +"disponíveis, mas nenhum foi inicializado, exceto por :mod:`sys` (serviços de " +"sistema diversos), :mod:`builtins` (funções internas, exceções e ``None``) " +"e :mod:`__main__`. O último é usado para fornecer o espaço de nomes global e " +"local para execução de um programa completo." #: ../../reference/toplevel_components.rst:36 msgid "" "The syntax for a complete Python program is that for file input, described " "in the next section." msgstr "" +"A sintaxe para um programa Python completo é esta para uma entrada de " +"arquivo, descrita na próxima seção." #: ../../reference/toplevel_components.rst:43 msgid "" @@ -63,61 +79,79 @@ msgid "" "identical to that of a complete program; each statement is executed in the " "namespace of :mod:`__main__`." msgstr "" +"O interpretador também pode ser invocado no modo interativo; neste caso, ele " +"não lê e executa um programa completo, mas lê e executa uma instrução " +"(possivelmente composta) por vez. O ambiente inicial é idêntico àquele de um " +"programa completo; cada instrução é executada no espaço de nomes de :mod:" +"`__main__`." #: ../../reference/toplevel_components.rst:55 msgid "" -"A complete program can be passed to the interpreter in three forms: with the" -" :option:`-c` *string* command line option, as a file passed as the first " +"A complete program can be passed to the interpreter in three forms: with " +"the :option:`-c` *string* command line option, as a file passed as the first " "command line argument, or as standard input. If the file or standard input " "is a tty device, the interpreter enters interactive mode; otherwise, it " "executes the file as a complete program." msgstr "" +"Um programa completo pode ser passado ao interpretador de três formas: com a " +"opção de linha de comando :option:`-c` *string*, como um arquivo passado " +"como o primeiro argumento da linha de comando, ou como uma entrada padrão. " +"Se o arquivo ou a entrada padrão é um dispositivo tty, o interpretador entra " +"em modo interativo; caso contrário, ele executa o arquivo como um programa " +"completo." #: ../../reference/toplevel_components.rst:65 msgid "File input" -msgstr "" +msgstr "Entrada de arquivo" #: ../../reference/toplevel_components.rst:67 msgid "All input read from non-interactive files has the same form:" -msgstr "" +msgstr "Toda entrada lida de arquivos não-interativos têm a mesma forma:" #: ../../reference/toplevel_components.rst:72 msgid "This syntax is used in the following situations:" -msgstr "" +msgstr "Essa sintaxe é usada nas seguintes situações:" #: ../../reference/toplevel_components.rst:74 msgid "when parsing a complete Python program (from a file or from a string);" msgstr "" +"quando analisando um programa Python completo (a partir de um arquivo ou de " +"uma string);" #: ../../reference/toplevel_components.rst:76 msgid "when parsing a module;" -msgstr "" +msgstr "quando analisando um módulo;" #: ../../reference/toplevel_components.rst:78 msgid "when parsing a string passed to the :func:`exec` function;" -msgstr "" +msgstr "quando analisando uma string passada à função :func:`exec`;" #: ../../reference/toplevel_components.rst:84 msgid "Interactive input" -msgstr "" +msgstr "Entrada interativa" #: ../../reference/toplevel_components.rst:86 msgid "Input in interactive mode is parsed using the following grammar:" -msgstr "" +msgstr "A entrada em modo interativo é analisada usando a seguinte gramática:" #: ../../reference/toplevel_components.rst:91 msgid "" "Note that a (top-level) compound statement must be followed by a blank line " -"in interactive mode; this is needed to help the parser detect the end of the" -" input." +"in interactive mode; this is needed to help the parser detect the end of the " +"input." msgstr "" +"Note que uma instrução composta (de alto-nível) deve ser seguida por uma " +"linha em branco no modo interativo; isso é necessário para ajudar o " +"analisador sintático a detectar o fim da entrada." #: ../../reference/toplevel_components.rst:98 msgid "Expression input" -msgstr "" +msgstr "Entrada de expressão" #: ../../reference/toplevel_components.rst:103 msgid "" ":func:`eval` is used for expression input. It ignores leading whitespace. " "The string argument to :func:`eval` must have the following form:" msgstr "" +"A :func:`eval` é usada para uma entrada de expressão. Ela ignora espaços à " +"esquerda. O argumento em string para :func:`eval` deve ter a seguinte forma:" diff --git a/sphinx.po b/sphinx.po index 753e7b092..c06f24fbe 100644 --- a/sphinx.po +++ b/sphinx.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 @@ -11,16 +11,18 @@ # Ruan Aragão , 2019 # And Past , 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-15 03:48+0000\n" +"POT-Creation-Date: 2020-04-15 13:39+0000\n" "PO-Revision-Date: 2019-09-01 02:40+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -62,10 +64,11 @@ msgid "What's new in Python %(version)s?" msgstr "O que temos de novo no Python %(version)s?" #: ../../tools/templates/indexcontent.html:14 -msgid "or all \"What's new\" documents since 2.0" +msgid "" +"or all \"What's new\" documents since 2.0" msgstr "" -"ou todos os documentos \"O que temos de " -"novo\" desde a 2.0" +"ou todos os documentos \"O que temos de novo" +"\" desde a 2.0" #: ../../tools/templates/indexcontent.html:15 msgid "Tutorial" @@ -230,7 +233,7 @@ msgstr "Python 3.9 (em desenvolvimento)" #: ../../tools/templates/indexsidebar.html:6 msgid "Python 3.8 (stable)" -msgstr "" +msgstr "Python 3.8 (estável)" #: ../../tools/templates/indexsidebar.html:7 msgid "Python 3.7 (stable)" @@ -245,8 +248,8 @@ msgid "Python 3.5 (security-fixes)" msgstr "Python 3.5 (correções de segurança)" #: ../../tools/templates/indexsidebar.html:10 -msgid "Python 2.7 (stable)" -msgstr "Python 2.7 (estável)" +msgid "Python 2.7 (EOL)" +msgstr "Python 2.7 (EOL)" #: ../../tools/templates/indexsidebar.html:11 msgid "All versions" @@ -277,7 +280,8 @@ msgid "" "This document is for an old version of Python that is no longer supported.\n" " You should upgrade, and read the " msgstr "" -"Esta documentação é de uma versão antiga do Python que não é mais atualizada.\n" +"Esta documentação é de uma versão antiga do Python que não é mais " +"atualizada.\n" " Você deveria atualizar e ler a" #: ../../tools/templates/layout.html:8 diff --git a/tutorial/appendix.po b/tutorial/appendix.po index 0ddb80cf6..3914706ba 100644 --- a/tutorial/appendix.po +++ b/tutorial/appendix.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Cauê Baasch de Souza , 2019 # msilvavieira, 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -41,35 +42,35 @@ msgid "" "When an error occurs, the interpreter prints an error message and a stack " "trace. In interactive mode, it then returns to the primary prompt; when " "input came from a file, it exits with a nonzero exit status after printing " -"the stack trace. (Exceptions handled by an :keyword:`except` clause in a " -":keyword:`try` statement are not errors in this context.) Some errors are " -"unconditionally fatal and cause an exit with a nonzero exit; this applies to" -" internal inconsistencies and some cases of running out of memory. All " -"error messages are written to the standard error stream; normal output from " +"the stack trace. (Exceptions handled by an :keyword:`except` clause in a :" +"keyword:`try` statement are not errors in this context.) Some errors are " +"unconditionally fatal and cause an exit with a nonzero exit; this applies to " +"internal inconsistencies and some cases of running out of memory. All error " +"messages are written to the standard error stream; normal output from " "executed commands is written to standard output." msgstr "" "Quando um erro ocorre, o interpretador exibe uma mensagem de erro e um " "*stack trace* (rastreamento de pilha). Se estiver no modo interativo, ele " "volta para o prompt primário; se a entrada veio de um arquivo, a execução " -"termina com um status de saída *nonzero* (diferente de zero) após a exibição" -" do *stack trace*. (Exceções tratadas por uma cláusula :keyword:`except` " -"numa declaração :keyword:`try` não são consideradas erros, nesse contexto.) " +"termina com um status de saída *nonzero* (diferente de zero) após a exibição " +"do *stack trace*. (Exceções tratadas por uma cláusula :keyword:`except` numa " +"declaração :keyword:`try` não são consideradas erros, nesse contexto.) " "Alguns erros são irremediavelmente graves e causam términos de execução com " "status de saída *nonzero*; isso pode acontecer devido a inconsistências " "internas e em alguns casos por falta de memória. Todas as mensagens de erro " -"são escritas no fluxo de erros padrão; a saída normal resultante da execução" -" de comandos é escrita no canal de saída padrão." +"são escritas no fluxo de erros padrão; a saída normal resultante da execução " +"de comandos é escrita no canal de saída padrão." #: ../../tutorial/appendix.rst:28 msgid "" "Typing the interrupt character (usually :kbd:`Control-C` or :kbd:`Delete`) " "to the primary or secondary prompt cancels the input and returns to the " -"primary prompt. [#]_ Typing an interrupt while a command is executing raises" -" the :exc:`KeyboardInterrupt` exception, which may be handled by a " -":keyword:`try` statement." +"primary prompt. [#]_ Typing an interrupt while a command is executing raises " +"the :exc:`KeyboardInterrupt` exception, which may be handled by a :keyword:" +"`try` statement." msgstr "" -"Digitar o caractere de interrupção (geralmente :kbd:`Control-C` ou " -":kbd:`Delete`) em prompts primários ou secundários causam a interrupção da " +"Digitar o caractere de interrupção (geralmente :kbd:`Control-C` ou :kbd:" +"`Delete`) em prompts primários ou secundários causam a interrupção da " "entrada de dados e o retorno ao prompt primário. [#]_ Digitar a interrupção " "durante a execução de um comando lança a exceção :exc:`KeyboardInterrupt`, " "que pode ser tratada por uma declaração :keyword:`try`." @@ -90,8 +91,8 @@ msgstr "" msgid "" "(assuming that the interpreter is on the user's :envvar:`PATH`) at the " "beginning of the script and giving the file an executable mode. The ``#!`` " -"must be the first two characters of the file. On some platforms, this first" -" line must end with a Unix-style line ending (``'\\n'``), not a Windows " +"must be the first two characters of the file. On some platforms, this first " +"line must end with a Unix-style line ending (``'\\n'``), not a Windows " "(``'\\r\\n'``) line ending. Note that the hash, or pound, character, " "``'#'``, is used to start a comment in Python." msgstr "" @@ -105,8 +106,8 @@ msgstr "" #: ../../tutorial/appendix.rst:52 msgid "" -"The script can be given an executable mode, or permission, using the " -":program:`chmod` command." +"The script can be given an executable mode, or permission, using the :" +"program:`chmod` command." msgstr "" "O script pode receber a permissão para atuar em modo executável através do " "comando :program:`chmod`." @@ -120,10 +121,10 @@ msgid "" "normally appears is suppressed." msgstr "" "Em sistemas Windows, não existe a noção de um \"modo executável\". O " -"instalador Python associa automaticamente os arquivos ``.py`` com o " -"``python.exe``, de forma que um clique duplo num arquivo Python o executará " -"como um script. A extensão pode ser também ``.pyw``, o que omite a janela de" -" console que normalmente aparece." +"instalador Python associa automaticamente os arquivos ``.py`` com o ``python." +"exe``, de forma que um clique duplo num arquivo Python o executará como um " +"script. A extensão pode ser também ``.pyw``, o que omite a janela de console " +"que normalmente aparece." #: ../../tutorial/appendix.rst:69 msgid "The Interactive Startup File" @@ -150,8 +151,8 @@ msgid "" "commands from a script, and not when :file:`/dev/tty` is given as the " "explicit source of commands (which otherwise behaves like an interactive " "session). It is executed in the same namespace where interactive commands " -"are executed, so that objects that it defines or imports can be used without" -" qualification in the interactive session. You can also change the prompts " +"are executed, so that objects that it defines or imports can be used without " +"qualification in the interactive session. You can also change the prompts " "``sys.ps1`` and ``sys.ps2`` in this file." msgstr "" "Esse arquivo será lido apenas em sessões do modo interativo, e não quando " @@ -166,10 +167,10 @@ msgstr "" #: ../../tutorial/appendix.rst:85 msgid "" "If you want to read an additional start-up file from the current directory, " -"you can program this in the global start-up file using code like ``if " -"os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())``. If you " -"want to use the startup file in a script, you must do this explicitly in the" -" script::" +"you can program this in the global start-up file using code like ``if os." +"path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())``. If you " +"want to use the startup file in a script, you must do this explicitly in the " +"script::" msgstr "" "Caso deseje usar um arquivo de inicialização adicional a partir do atual " "diretório de trabalho, você pode programá-lo no arquivo de inicialização " @@ -183,39 +184,39 @@ msgstr "Módulos de customização" #: ../../tutorial/appendix.rst:104 msgid "" -"Python provides two hooks to let you customize it: :mod:`sitecustomize` and " -":mod:`usercustomize`. To see how it works, you need first to find the " +"Python provides two hooks to let you customize it: :mod:`sitecustomize` and :" +"mod:`usercustomize`. To see how it works, you need first to find the " "location of your user site-packages directory. Start Python and run this " "code::" msgstr "" -"Python oferece dois *hooks* que permitem sua customização: " -":mod:`sitecustomize` e :mod:`usercustomize`. Para entender como funcionam, " +"Python oferece dois *hooks* que permitem sua customização: :mod:" +"`sitecustomize` e :mod:`usercustomize`. Para entender como funcionam, " "primeiro você deve localizar o diretório site-packages do usuário. Inicie o " "Python e execute este código::" #: ../../tutorial/appendix.rst:112 msgid "" "Now you can create a file named :file:`usercustomize.py` in that directory " -"and put anything you want in it. It will affect every invocation of Python," -" unless it is started with the :option:`-s` option to disable the automatic " +"and put anything you want in it. It will affect every invocation of Python, " +"unless it is started with the :option:`-s` option to disable the automatic " "import." msgstr "" "Agora você pode criar um arquivo chamado :file:`usercustomize.py` neste " "diretório e colocar qualquer coisa que quiser dentro. Isto vai afetar toda " -"invocação do Python, a menos que seja iniciado com a opção :option:`-s` para" -" desabilitar a importação automática." +"invocação do Python, a menos que seja iniciado com a opção :option:`-s` para " +"desabilitar a importação automática." #: ../../tutorial/appendix.rst:116 msgid "" ":mod:`sitecustomize` works in the same way, but is typically created by an " "administrator of the computer in the global site-packages directory, and is " -"imported before :mod:`usercustomize`. See the documentation of the " -":mod:`site` module for more details." +"imported before :mod:`usercustomize`. See the documentation of the :mod:" +"`site` module for more details." msgstr "" ":mod:`sitecustomize` funciona da mesma forma, mas normalmente é criado por " "um administrador do computador no diretório site-packages global e é " -"importado antes de :mod:`usercustomize`. Veja a documentação do módulo " -":mod:`site` para mais detalhes." +"importado antes de :mod:`usercustomize`. Veja a documentação do módulo :mod:" +"`site` para mais detalhes." #: ../../tutorial/appendix.rst:123 msgid "Footnotes" @@ -223,5 +224,4 @@ msgstr "Notas de rodapé" #: ../../tutorial/appendix.rst:124 msgid "A problem with the GNU Readline package may prevent this." -msgstr "" -"Um problema com a package GNU Readline pode impedir que isso aconteça." +msgstr "Um problema com a package GNU Readline pode impedir que isso aconteça." diff --git a/tutorial/appetite.po b/tutorial/appetite.po index 0a23d0c00..b34069a9b 100644 --- a/tutorial/appetite.po +++ b/tutorial/appetite.po @@ -1,21 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Adson Rodrigues , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" "Last-Translator: Adson Rodrigues , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,18 +29,18 @@ msgstr "Abrindo o apetite" #: ../../tutorial/appetite.rst:7 msgid "" -"If you do much work on computers, eventually you find that there's some task" -" you'd like to automate. For example, you may wish to perform a search-and-" +"If you do much work on computers, eventually you find that there's some task " +"you'd like to automate. For example, you may wish to perform a search-and-" "replace over a large number of text files, or rename and rearrange a bunch " "of photo files in a complicated way. Perhaps you'd like to write a small " "custom database, or a specialized GUI application, or a simple game." msgstr "" "Se você trabalha muito com computadores, acabará encontrando alguma tarefa " -"que gostaria de automatizar. Por exemplo, você pode querer fazer " -"busca-e-troca em um grande número de arquivos de texto, ou renomear e " -"reorganizar um monte de arquivos de fotos de uma maneira complicada. Talvez " -"você gostaria de escrever um pequeno banco de dados personalizado, ou um " -"aplicativo GUI especializado, ou um jogo simples." +"que gostaria de automatizar. Por exemplo, você pode querer fazer busca-e-" +"troca em um grande número de arquivos de texto, ou renomear e reorganizar um " +"monte de arquivos de fotos de uma maneira complicada. Talvez você gostaria " +"de escrever um pequeno banco de dados personalizado, ou um aplicativo GUI " +"especializado, ou um jogo simples." #: ../../tutorial/appetite.rst:13 msgid "" @@ -51,12 +52,12 @@ msgid "" "to design and implement a whole new language for your application." msgstr "" "Se você é um desenvolvedor de software profissional, pode ter que trabalhar " -"com várias bibliotecas C/C++/Java, mas o tradicional ciclo " -"escrever/compilar/testar/recompilar é muito lento. Talvez você esteja " -"escrevendo um conjunto de testes para uma biblioteca e está achando tedioso " -"codificar os testes. Ou talvez você tenha escrito um programa que poderia " -"utilizar uma linguagem de extensão, e você não quer conceber e implementar " -"toda uma nova linguagem para sua aplicação." +"com várias bibliotecas C/C++/Java, mas o tradicional ciclo escrever/compilar/" +"testar/recompilar é muito lento. Talvez você esteja escrevendo um conjunto " +"de testes para uma biblioteca e está achando tedioso codificar os testes. Ou " +"talvez você tenha escrito um programa que poderia utilizar uma linguagem de " +"extensão, e você não quer conceber e implementar toda uma nova linguagem " +"para sua aplicação." #: ../../tutorial/appetite.rst:20 msgid "Python is just the language for you." @@ -64,20 +65,19 @@ msgstr "Python é a linguagem para você." #: ../../tutorial/appetite.rst:22 msgid "" -"You could write a Unix shell script or Windows batch files for some of these" -" tasks, but shell scripts are best at moving around files and changing text " -"data, not well-suited for GUI applications or games. You could write a " -"C/C++/Java program, but it can take a lot of development time to get even a " -"first-draft program. Python is simpler to use, available on Windows, Mac OS" -" X, and Unix operating systems, and will help you get the job done more " -"quickly." +"You could write a Unix shell script or Windows batch files for some of these " +"tasks, but shell scripts are best at moving around files and changing text " +"data, not well-suited for GUI applications or games. You could write a C/C++/" +"Java program, but it can take a lot of development time to get even a first-" +"draft program. Python is simpler to use, available on Windows, Mac OS X, " +"and Unix operating systems, and will help you get the job done more quickly." msgstr "" "Você poderia escrever um script para o shell do Unix ou arquivos em lote do " "Windows para algumas dessas tarefas, mas scripts shell são bons para mover " "arquivos e alterar textos, mas não adequados para aplicações GUI ou jogos. " "Você poderia escrever um programa em C/C++/Java, mas pode tomar tempo de " -"desenvolvimento para chegar até um primeiro rascunho. Python é mais simples," -" está disponível em Windows, Mac OS X, e sistemas operacionais Unix, e vai " +"desenvolvimento para chegar até um primeiro rascunho. Python é mais simples, " +"está disponível em Windows, Mac OS X, e sistemas operacionais Unix, e vai " "ajudá-lo a fazer o trabalho mais rapidamente." #: ../../tutorial/appetite.rst:29 @@ -87,8 +87,8 @@ msgid "" "batch files can offer. On the other hand, Python also offers much more " "error checking than C, and, being a *very-high-level language*, it has high-" "level data types built in, such as flexible arrays and dictionaries. " -"Because of its more general data types Python is applicable to a much larger" -" problem domain than Awk or even Perl, yet many things are at least as easy " +"Because of its more general data types Python is applicable to a much larger " +"problem domain than Awk or even Perl, yet many things are at least as easy " "in Python as in those languages." msgstr "" "Python é fácil de usar, sem deixar de ser uma linguagem de programação de " @@ -104,8 +104,8 @@ msgstr "" #: ../../tutorial/appetite.rst:37 msgid "" "Python allows you to split your program into modules that can be reused in " -"other Python programs. It comes with a large collection of standard modules" -" that you can use as the basis of your programs --- or as examples to start " +"other Python programs. It comes with a large collection of standard modules " +"that you can use as the basis of your programs --- or as examples to start " "learning to program in Python. Some of these modules provide things like " "file I/O, system calls, sockets, and even interfaces to graphical user " "interface toolkits like Tk." @@ -114,18 +114,17 @@ msgstr "" "reutilizados em outros programas escritos em Python. A linguagem provê uma " "vasta coleção de módulos que podem ser utilizados como base para sua " "aplicação --- ou como exemplos para estudo e aprofundamento. Alguns desses " -"módulos implementam manipulação de arquivos, chamadas do sistema, sockets, e" -" até mesmo acesso a bibliotecas de construção de interfaces gráficas, como " -"Tk." +"módulos implementam manipulação de arquivos, chamadas do sistema, sockets, e " +"até mesmo acesso a bibliotecas de construção de interfaces gráficas, como Tk." #: ../../tutorial/appetite.rst:44 msgid "" "Python is an interpreted language, which can save you considerable time " -"during program development because no compilation and linking is necessary." -" The interpreter can be used interactively, which makes it easy to " -"experiment with features of the language, to write throw-away programs, or " -"to test functions during bottom-up program development. It is also a handy " -"desk calculator." +"during program development because no compilation and linking is necessary. " +"The interpreter can be used interactively, which makes it easy to experiment " +"with features of the language, to write throw-away programs, or to test " +"functions during bottom-up program development. It is also a handy desk " +"calculator." msgstr "" "Python é uma linguagem interpretada, por isso você pode economizar um tempo " "considerável durante o desenvolvimento, uma vez que não há necessidade de " @@ -162,8 +161,7 @@ msgstr "" #: ../../tutorial/appetite.rst:60 msgid "no variable or argument declarations are necessary." -msgstr "" -"* não há necessidade de declaração de variáveis ou parâmetros formais;" +msgstr "* não há necessidade de declaração de variáveis ou parâmetros formais;" #: ../../tutorial/appetite.rst:62 msgid "" @@ -177,16 +175,16 @@ msgid "" msgstr "" "Python é *extensível*: se você sabe como programar em C, é fácil adicionar " "funções ou módulos diretamente no interpretador, seja para desempenhar " -"operações críticas em máxima velocidade, ou para vincular programas Python a" -" bibliotecas que só estejam disponíveis em formato binário (como uma " +"operações críticas em máxima velocidade, ou para vincular programas Python a " +"bibliotecas que só estejam disponíveis em formato binário (como uma " "biblioteca gráfica de terceiros). Uma vez que você tenha sido fisgado, você " "pode vincular o interpretador Python a uma aplicação escrita em C e utilizá-" "la como linguagem de comandos ou extensão para esta aplicação." #: ../../tutorial/appetite.rst:70 msgid "" -"By the way, the language is named after the BBC show \"Monty Python's Flying" -" Circus\" and has nothing to do with reptiles. Making references to Monty " +"By the way, the language is named after the BBC show \"Monty Python's Flying " +"Circus\" and has nothing to do with reptiles. Making references to Monty " "Python skits in documentation is not only allowed, it is encouraged!" msgstr "" "A propósito, a linguagem foi batizada a partir do famoso show da BBC “Monty " @@ -196,8 +194,8 @@ msgstr "" #: ../../tutorial/appetite.rst:74 msgid "" -"Now that you are all excited about Python, you'll want to examine it in some" -" more detail. Since the best way to learn a language is to use it, the " +"Now that you are all excited about Python, you'll want to examine it in some " +"more detail. Since the best way to learn a language is to use it, the " "tutorial invites you to play with the Python interpreter as you read." msgstr "" "Agora que você está entusiasmado com Python, vai querer conhecê-la com mais " @@ -221,7 +219,7 @@ msgid "" "and data types, through functions and modules, and finally touching upon " "advanced concepts like exceptions and user-defined classes." msgstr "" -"O resto do tutorial introduz diversos aspectos do sistema e linguagem Python" -" por intermédio de exemplos. Serão abordadas expressões simples, comandos, " +"O resto do tutorial introduz diversos aspectos do sistema e linguagem Python " +"por intermédio de exemplos. Serão abordadas expressões simples, comandos, " "tipos, funções e módulos. Finalmente, serão explicados alguns conceitos " "avançados como exceções e classes definidas pelo usuário." diff --git a/tutorial/classes.po b/tutorial/classes.po index 314b52bf2..ecd5a1411 100644 --- a/tutorial/classes.po +++ b/tutorial/classes.po @@ -1,24 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # msilvavieira, 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2020 +# guilhermegouw , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: guilhermegouw , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -60,20 +63,20 @@ msgstr "" "de Python introduz a programação orientada a objetos sem acrescentar muitas " "novidades de sintaxe ou semântica. É uma mistura de mecanismos equivalentes " "encontrados em C++ e Modula-3. As classes em Python oferecem todas as " -"características tradicionais da programação orientada a objetos: o mecanismo" -" de herança permite múltiplas classes base (herança múltipla), uma classe " +"características tradicionais da programação orientada a objetos: o mecanismo " +"de herança permite múltiplas classes base (herança múltipla), uma classe " "derivada pode sobrescrever quaisquer métodos de uma classe ancestral, e um " "método pode invocar outro método homônimo de uma classe ancestral. Objetos " "podem armazenar uma quantidade arbitrária de dados de qualquer tipo. Assim " -"como acontece com os módulos, as classes fazem parte da natureza dinâmica de" -" Python: são criadas em tempo de execução, e podem ser alteradas após sua " +"como acontece com os módulos, as classes fazem parte da natureza dinâmica de " +"Python: são criadas em tempo de execução, e podem ser alteradas após sua " "criação." #: ../../tutorial/classes.rst:23 msgid "" "In C++ terminology, normally class members (including the data members) are " -"*public* (except see below :ref:`tut-private`), and all member functions are" -" *virtual*. As in Modula-3, there are no shorthands for referencing the " +"*public* (except see below :ref:`tut-private`), and all member functions are " +"*virtual*. As in Modula-3, there are no shorthands for referencing the " "object's members from its methods: the method function is declared with an " "explicit first argument representing the object, which is provided " "implicitly by the call. As in Smalltalk, classes themselves are objects. " @@ -88,25 +91,24 @@ msgstr "" "funções membro são \"virtuais\". Como em Modula-3, não existem atalhos para " "referenciar membros do objeto de dentro dos seus métodos: o método (função " "definida em uma classe) é declarado com um primeiro argumento explícito " -"representando o objeto (instância da classe), que é fornecido implicitamente" -" pela chamada ao método. Como em Smalltalk, classes são objetos. Isso " -"fornece uma semântica para importar e renomear. Ao contrário de C++ ou " -"Modula-3, tipos pré-definidos podem ser utilizados como classes base para " -"extensões por herança pelo usuário. Também, como em C++, a maioria dos " -"operadores (aritméticos, indexação, etc) podem ser redefinidos por " -"instâncias de classe." +"representando o objeto (instância da classe), que é fornecido implicitamente " +"pela chamada ao método. Como em Smalltalk, classes são objetos. Isso fornece " +"uma semântica para importar e renomear. Ao contrário de C++ ou Modula-3, " +"tipos pré-definidos podem ser utilizados como classes base para extensões " +"por herança pelo usuário. Também, como em C++, a maioria dos operadores " +"(aritméticos, indexação, etc) podem ser redefinidos por instâncias de classe." #: ../../tutorial/classes.rst:34 msgid "" -"(Lacking universally accepted terminology to talk about classes, I will make" -" occasional use of Smalltalk and C++ terms. I would use Modula-3 terms, " +"(Lacking universally accepted terminology to talk about classes, I will make " +"occasional use of Smalltalk and C++ terms. I would use Modula-3 terms, " "since its object-oriented semantics are closer to those of Python than C++, " "but I expect that few readers have heard of it.)" msgstr "" "(Na falta de uma terminologia universalmente aceita para falar sobre " "classes, ocasionalmente farei uso de termos comuns em Smalltalk ou C++. Eu " -"usaria termos de Modula-3, já que sua semântica é mais próxima da de Python," -" mas creio que poucos leitores já ouviram falar dessa linguagem.)" +"usaria termos de Modula-3, já que sua semântica é mais próxima da de Python, " +"mas creio que poucos leitores já ouviram falar dessa linguagem.)" #: ../../tutorial/classes.rst:43 msgid "A Word About Names and Objects" @@ -133,14 +135,13 @@ msgstr "" "objeto pode ter vários nomes.) Geralmente, esta característica não é muito " "apreciada, e pode ser ignorada com segurança ao lidar com tipos imutáveis " "(números, strings, tuplas). Entretanto, \"aliasing\" pode ter um efeito " -"surpreendente na semântica do código Python envolvendo objetos mutáveis como" -" listas, dicionários e a maioria dos outros tipos. Isso pode ser usado em " +"surpreendente na semântica do código Python envolvendo objetos mutáveis como " +"listas, dicionários e a maioria dos outros tipos. Isso pode ser usado em " "benefício do programa, porque os *aliases* (apelidos) funcionam de certa " -"forma como ponteiros. Por exemplo, passar um objeto como argumento é barato," -" pois só um ponteiro é passado na implementação; e se uma função modifica um" -" objeto passado como argumento, o invocador verá a mudança --- isso elimina " -"a necessidade de ter dois mecanismos de passagem de parâmetros como em " -"Pascal." +"forma como ponteiros. Por exemplo, passar um objeto como argumento é barato, " +"pois só um ponteiro é passado na implementação; e se uma função modifica um " +"objeto passado como argumento, o invocador verá a mudança --- isso elimina a " +"necessidade de ter dois mecanismos de passagem de parâmetros como em Pascal." #: ../../tutorial/classes.rst:61 msgid "Python Scopes and Namespaces" @@ -154,8 +155,8 @@ msgid "" "understand what's going on. Incidentally, knowledge about this subject is " "useful for any advanced Python programmer." msgstr "" -"Antes de introduzir classes, é preciso falar das regras de escopo em Python." -" Definições de classe fazem alguns truques com *namespaces* (espaços de " +"Antes de introduzir classes, é preciso falar das regras de escopo em Python. " +"Definições de classe fazem alguns truques com *namespaces* (espaços de " "nomes). Portanto, primeiro é preciso entender claramente como escopos e " "*namespaces* funcionam, para entender o que está acontecendo. Esse " "conhecimento é muito útil para qualquer programador avançado em Python." @@ -171,8 +172,8 @@ msgid "" "noticeable in any way (except for performance), and it may change in the " "future. Examples of namespaces are: the set of built-in names (containing " "functions such as :func:`abs`, and built-in exception names); the global " -"names in a module; and the local names in a function invocation. In a sense" -" the set of attributes of an object also form a namespace. The important " +"names in a module; and the local names in a function invocation. In a sense " +"the set of attributes of an object also form a namespace. The important " "thing to know about namespaces is that there is absolutely no relation " "between names in different namespaces; for instance, two different modules " "may both define a function ``maximize`` without confusion --- users of the " @@ -181,11 +182,11 @@ msgstr "" "Um *namespace* (ou espaço de nomes) é um mapeamento que associa nomes a " "objetos. Atualmente, são implementados como dicionários em Python, mas isso " "não é perceptível (a não ser pelo desempenho), e pode mudar no futuro. " -"Exemplos de espaços de nomes são: o conjunto de nomes pré-definidos (funções" -" como :func:`abs` e as exceções pré-definidas); nomes globais em um módulo; " -"e nomes locais na invocação de uma função. De uma certa forma, os atributos " -"de um objeto também formam um espaço de nomes. O mais importante é saber que" -" não existe nenhuma relação entre nomes em \"espaços de nomes\" distintos. " +"Exemplos de espaços de nomes são: o conjunto de nomes pré-definidos (funções " +"como :func:`abs` e as exceções pré-definidas); nomes globais em um módulo; e " +"nomes locais na invocação de uma função. De uma certa forma, os atributos de " +"um objeto também formam um espaço de nomes. O mais importante é saber que " +"não existe nenhuma relação entre nomes em \"espaços de nomes\" distintos. " "Por exemplo, dois módulos podem definir uma função de nome ``maximize`` sem " "confusão --- usuários dos módulos devem prefixar a função com o nome do " "módulo, para evitar colisão." @@ -195,17 +196,16 @@ msgid "" "By the way, I use the word *attribute* for any name following a dot --- for " "example, in the expression ``z.real``, ``real`` is an attribute of the " "object ``z``. Strictly speaking, references to names in modules are " -"attribute references: in the expression ``modname.funcname``, ``modname`` is" -" a module object and ``funcname`` is an attribute of it. In this case there" -" happens to be a straightforward mapping between the module's attributes and" -" the global names defined in the module: they share the same namespace! " -"[#]_" +"attribute references: in the expression ``modname.funcname``, ``modname`` is " +"a module object and ``funcname`` is an attribute of it. In this case there " +"happens to be a straightforward mapping between the module's attributes and " +"the global names defined in the module: they share the same namespace! [#]_" msgstr "" "A propósito, utilizo a palavra *atributo* para qualquer nome depois de um " "ponto. Na expressão ``z.real``, por exemplo, ``real`` é um atributo do " "objeto ``z``. Estritamente falando, referências para nomes em módulos são " -"atributos: na expressão ``modname.funcname``, ``modname`` é um objeto módulo" -" e ``funcname`` é um de seus atributos. Neste caso, existe um mapeamento " +"atributos: na expressão ``modname.funcname``, ``modname`` é um objeto módulo " +"e ``funcname`` é um de seus atributos. Neste caso, existe um mapeamento " "direto entre os atributos de um módulo e os nomes globais definidos no " "módulo: eles compartilham o mesmo espaço de nomes! [#]_" @@ -215,15 +215,14 @@ msgid "" "attributes is possible. Module attributes are writable: you can write " "``modname.the_answer = 42``. Writable attributes may also be deleted with " "the :keyword:`del` statement. For example, ``del modname.the_answer`` will " -"remove the attribute :attr:`the_answer` from the object named by " -"``modname``." +"remove the attribute :attr:`the_answer` from the object named by ``modname``." msgstr "" "Atributos podem ser somente-leitura ou para leitura e escrita. No segundo " "caso, é possível atribuir um novo valor ao atributo. Atributos de módulos " -"são passíveis de atribuição: você pode escrever ``modname.the_answer = 42``." -" Atributos que aceitam escrita também podem ser apagados através da " -"instrução :keyword:`del`. Por exemplo, ``del modname.the_answer`` removerá o" -" atributo :attr:`the_answer` do objeto referenciado por ``modname``." +"são passíveis de atribuição: você pode escrever ``modname.the_answer = 42``. " +"Atributos que aceitam escrita também podem ser apagados através da " +"instrução :keyword:`del`. Por exemplo, ``del modname.the_answer`` removerá o " +"atributo :attr:`the_answer` do objeto referenciado por ``modname``." #: ../../tutorial/classes.rst:96 msgid "" @@ -233,9 +232,9 @@ msgid "" "module is created when the module definition is read in; normally, module " "namespaces also last until the interpreter quits. The statements executed " "by the top-level invocation of the interpreter, either read from a script " -"file or interactively, are considered part of a module called " -":mod:`__main__`, so they have their own global namespace. (The built-in " -"names actually also live in a module; this is called :mod:`builtins`.)" +"file or interactively, are considered part of a module called :mod:" +"`__main__`, so they have their own global namespace. (The built-in names " +"actually also live in a module; this is called :mod:`builtins`.)" msgstr "" "Espaços de nomes são criados em momentos diferentes e possuem diferentes " "ciclos de vida. O espaço de nomes que contém os nomes embutidos é criado " @@ -251,13 +250,13 @@ msgstr "" msgid "" "The local namespace for a function is created when the function is called, " "and deleted when the function returns or raises an exception that is not " -"handled within the function. (Actually, forgetting would be a better way to" -" describe what actually happens.) Of course, recursive invocations each " -"have their own local namespace." +"handled within the function. (Actually, forgetting would be a better way to " +"describe what actually happens.) Of course, recursive invocations each have " +"their own local namespace." msgstr "" -"O espaço de nomes local de uma função é criado quando a função é invocada, e" -" apagado quando a função retorna ou levanta uma exceção que não é tratada na" -" própria função. (Na verdade, uma forma melhor de descrever o que realmente " +"O espaço de nomes local de uma função é criado quando a função é invocada, e " +"apagado quando a função retorna ou levanta uma exceção que não é tratada na " +"própria função. (Na verdade, uma forma melhor de descrever o que realmente " "acontece é que o espaço de nomes local é \"esquecido\" quando a função " "termina.) Naturalmente, cada invocação recursiva de uma função tem seu " "próprio espaço de nomes." @@ -265,22 +264,22 @@ msgstr "" #: ../../tutorial/classes.rst:112 msgid "" "A *scope* is a textual region of a Python program where a namespace is " -"directly accessible. \"Directly accessible\" here means that an unqualified" -" reference to a name attempts to find the name in the namespace." +"directly accessible. \"Directly accessible\" here means that an unqualified " +"reference to a name attempts to find the name in the namespace." msgstr "" "Um *escopo* é uma região textual de um programa Python onde um espaço de " -"nomes é diretamente acessível. Aqui, \"diretamente acessível\" significa que" -" uma referência sem um prefixo qualificador permite o acesso ao nome." +"nomes é diretamente acessível. Aqui, \"diretamente acessível\" significa que " +"uma referência sem um prefixo qualificador permite o acesso ao nome." #: ../../tutorial/classes.rst:116 msgid "" -"Although scopes are determined statically, they are used dynamically. At any" -" time during execution, there are at least three nested scopes whose " +"Although scopes are determined statically, they are used dynamically. At any " +"time during execution, there are at least three nested scopes whose " "namespaces are directly accessible:" msgstr "" "Ainda que escopos sejam determinados estaticamente, eles são usados " -"dinamicamente. A qualquer momento durante a execução, existem no mínimo três" -" escopos diretamente acessíveis:" +"dinamicamente. A qualquer momento durante a execução, existem no mínimo três " +"escopos diretamente acessíveis:" #: ../../tutorial/classes.rst:120 msgid "the innermost scope, which is searched first, contains the local names" @@ -312,17 +311,17 @@ msgstr "" msgid "" "If a name is declared global, then all references and assignments go " "directly to the middle scope containing the module's global names. To " -"rebind variables found outside of the innermost scope, the " -":keyword:`nonlocal` statement can be used; if not declared nonlocal, those " -"variables are read-only (an attempt to write to such a variable will simply " -"create a *new* local variable in the innermost scope, leaving the " -"identically named outer variable unchanged)." +"rebind variables found outside of the innermost scope, the :keyword:" +"`nonlocal` statement can be used; if not declared nonlocal, those variables " +"are read-only (an attempt to write to such a variable will simply create a " +"*new* local variable in the innermost scope, leaving the identically named " +"outer variable unchanged)." msgstr "" "Se um nome é declarado no escopo global, então todas as referências e " "atribuições de valores vão diretamente para o escopo intermediário, que " "contém os nomes globais do módulo. Caso contrário, todas as variáveis " -"encontradas fora do escopo mais interno são apenas para leitura (a tentativa" -" de atribuir valores a essas variáveis irá simplesmente criar uma *nova* " +"encontradas fora do escopo mais interno são apenas para leitura (a tentativa " +"de atribuir valores a essas variáveis irá simplesmente criar uma *nova* " "variável local, no escopo interno, não alterando nada na variável de nome " "idêntico fora dele)." @@ -333,10 +332,10 @@ msgid "" "namespace as the global scope: the module's namespace. Class definitions " "place yet another namespace in the local scope." msgstr "" -"Normalmente, o escopo local referencia os nomes locais da função corrente no" -" texto do programa. Fora de funções, o escopo local referencia os nomes do " -"escopo global: espaço de nomes do módulo. Definições de classes adicionam um" -" outro espaço de nomes ao escopo local." +"Normalmente, o escopo local referencia os nomes locais da função corrente no " +"texto do programa. Fora de funções, o escopo local referencia os nomes do " +"escopo global: espaço de nomes do módulo. Definições de classes adicionam um " +"outro espaço de nomes ao escopo local." #: ../../tutorial/classes.rst:138 msgid "" @@ -344,12 +343,12 @@ msgid "" "scope of a function defined in a module is that module's namespace, no " "matter from where or by what alias the function is called. On the other " "hand, the actual search for names is done dynamically, at run time --- " -"however, the language definition is evolving towards static name resolution," -" at \"compile\" time, so don't rely on dynamic name resolution! (In fact, " +"however, the language definition is evolving towards static name resolution, " +"at \"compile\" time, so don't rely on dynamic name resolution! (In fact, " "local variables are already determined statically.)" msgstr "" -"É importante perceber que escopos são determinados estaticamente, pelo texto" -" do código fonte: o escopo global de uma função definida em um módulo é o " +"É importante perceber que escopos são determinados estaticamente, pelo texto " +"do código fonte: o escopo global de uma função definida em um módulo é o " "espaço de nomes deste módulo, sem importar de onde ou por qual apelido a " "função é invocada. Por outro lado, a busca de nomes é dinâmica, ocorrendo " "durante a execução. Porém, a evolução da linguagem está caminhando para uma " @@ -359,34 +358,35 @@ msgstr "" #: ../../tutorial/classes.rst:146 msgid "" -"A special quirk of Python is that -- if no :keyword:`global` statement is in" -" effect -- assignments to names always go into the innermost scope. " -"Assignments do not copy data --- they just bind names to objects. The same " -"is true for deletions: the statement ``del x`` removes the binding of ``x`` " -"from the namespace referenced by the local scope. In fact, all operations " -"that introduce new names use the local scope: in particular, " -":keyword:`import` statements and function definitions bind the module or " -"function name in the local scope." -msgstr "" -"Uma peculiaridade de Python é que atribuições ocorrem sempre no escopo mais " -"interno, exceto quando a instrução :keyword:`global` é usada. Atribuições " -"não copiam dados, apenas associam nomes a objetos. O mesmo vale para " -"remoções: o comando ``del x`` remove o vínculo de ``x`` do espaço de nomes " -"do escopo local. De fato, todas as operações que introduzem novos nomes usam" -" o escopo local. Em particular, instruções :keyword:`import` e definições de" -" funções associam o nome do módulo ou da função ao escopo local." +"A special quirk of Python is that -- if no :keyword:`global` or :keyword:" +"`nonlocal` statement is in effect -- assignments to names always go into the " +"innermost scope. Assignments do not copy data --- they just bind names to " +"objects. The same is true for deletions: the statement ``del x`` removes " +"the binding of ``x`` from the namespace referenced by the local scope. In " +"fact, all operations that introduce new names use the local scope: in " +"particular, :keyword:`import` statements and function definitions bind the " +"module or function name in the local scope." +msgstr "" +"Uma peculiaridade especial do Python é que -- se nenhuma instrução :keyword:" +"`global` ou :keyword:`nonlocal` estiver em vigor -- as atribuições de nomes " +"sempre entram no escopo mais interno. As atribuições não copiam dados --- " +"elas apenas vinculam nomes aos objetos. O mesmo vale para exclusões: a " +"instrução ``del x`` remove a ligação de ``x`` do espaço de nomes " +"referenciado pelo escopo local. De fato, todas as operações que introduzem " +"novos nomes usam o escopo local: em particular, instruções :keyword:`import` " +"e definições de funções ligam o módulo ou o nome da função no escopo local." #: ../../tutorial/classes.rst:154 msgid "" "The :keyword:`global` statement can be used to indicate that particular " -"variables live in the global scope and should be rebound there; the " -":keyword:`nonlocal` statement indicates that particular variables live in an" -" enclosing scope and should be rebound there." +"variables live in the global scope and should be rebound there; the :keyword:" +"`nonlocal` statement indicates that particular variables live in an " +"enclosing scope and should be rebound there." msgstr "" "A instrução :keyword:`global` pode ser usada para indicar que certas " -"variáveis residem no escopo global ao invés do local; a instrução " -":keyword:`nonlocal` indica que variáveis particulares estão num espaço " -"reservado e devem ser recuperadas lá." +"variáveis residem no escopo global ao invés do local; a instrução :keyword:" +"`nonlocal` indica que variáveis particulares estão num espaço reservado e " +"devem ser recuperadas lá." #: ../../tutorial/classes.rst:162 msgid "Scopes and Namespaces Example" @@ -398,8 +398,8 @@ msgid "" "namespaces, and how :keyword:`global` and :keyword:`nonlocal` affect " "variable binding::" msgstr "" -"Este é um exemplo que demonstra como se referir aos diferentes escopos e aos" -" espaços de nomes como :keyword:`global` e :keyword:`non-local' pode afetar " +"Este é um exemplo que demonstra como se referir aos diferentes escopos e aos " +"espaços de nomes como :keyword:`global` e :keyword:`non-local' pode afetar " "ligação entre as variáveis::" #: ../../tutorial/classes.rst:191 @@ -408,20 +408,20 @@ msgstr "A saída do código de exemplo é:" #: ../../tutorial/classes.rst:200 msgid "" -"Note how the *local* assignment (which is default) didn't change " -"*scope_test*\\'s binding of *spam*. The :keyword:`nonlocal` assignment " -"changed *scope_test*\\'s binding of *spam*, and the :keyword:`global` " -"assignment changed the module-level binding." +"Note how the *local* assignment (which is default) didn't change *scope_test*" +"\\'s binding of *spam*. The :keyword:`nonlocal` assignment changed " +"*scope_test*\\'s binding of *spam*, and the :keyword:`global` assignment " +"changed the module-level binding." msgstr "" -"Observe como uma atribuição *local* (que é o padrão) não altera o vínculo de" -" *scope_test* a *spam*. A instrução :keyworkd:`nonlocal` mudou o vínculo de " +"Observe como uma atribuição *local* (que é o padrão) não altera o vínculo de " +"*scope_test* a *spam*. A instrução :keyworkd:`nonlocal` mudou o vínculo de " "*scope_test* de *spam* e a atribuição :keyword:`global` alterou a ligação " "para o nível do módulo." #: ../../tutorial/classes.rst:205 msgid "" -"You can also see that there was no previous binding for *spam* before the " -":keyword:`global` assignment." +"You can also see that there was no previous binding for *spam* before the :" +"keyword:`global` assignment." msgstr "" "Você também pode ver que não havia nenhuma ligação anterior para *spam* " "antes da atribuição :keyword:`global`." @@ -453,32 +453,32 @@ msgid "" "a class definition in a branch of an :keyword:`if` statement, or inside a " "function.)" msgstr "" -"Definições de classe, assim como definições de função (instruções " -":keyword:`def`), precisam ser executadas antes que tenham qualquer efeito. " -"(Você pode colocar uma definição de classe dentro do teste condicional de um" -" :keyword:`if` ou dentro de uma função.)" +"Definições de classe, assim como definições de função (instruções :keyword:" +"`def`), precisam ser executadas antes que tenham qualquer efeito. (Você pode " +"colocar uma definição de classe dentro do teste condicional de um :keyword:" +"`if` ou dentro de uma função.)" #: ../../tutorial/classes.rst:236 msgid "" "In practice, the statements inside a class definition will usually be " -"function definitions, but other statements are allowed, and sometimes useful" -" --- we'll come back to this later. The function definitions inside a class" -" normally have a peculiar form of argument list, dictated by the calling " +"function definitions, but other statements are allowed, and sometimes useful " +"--- we'll come back to this later. The function definitions inside a class " +"normally have a peculiar form of argument list, dictated by the calling " "conventions for methods --- again, this is explained later." msgstr "" "Na prática, as instruções dentro da definição de classe geralmente serão " "definições de funções, mas outras instruções são permitidas, e às vezes são " -"bem úteis --- voltaremos a este tema depois. Definições de funções dentro da" -" classe normalmente têm um forma peculiar de lista de argumentos, " -"determinada pela convenção de chamada a métodos --- isso também será " -"explicado mais tarde." +"bem úteis --- voltaremos a este tema depois. Definições de funções dentro da " +"classe normalmente têm um forma peculiar de lista de argumentos, determinada " +"pela convenção de chamada a métodos --- isso também será explicado mais " +"tarde." #: ../../tutorial/classes.rst:242 msgid "" "When a class definition is entered, a new namespace is created, and used as " "the local scope --- thus, all assignments to local variables go into this " -"new namespace. In particular, function definitions bind the name of the new" -" function here." +"new namespace. In particular, function definitions bind the name of the new " +"function here." msgstr "" "Quando se inicia a definição de classe, um novo espaço de nomes é criado, e " "usado como escopo local --- assim, todas atribuições a variáveis locais " @@ -489,11 +489,11 @@ msgstr "" msgid "" "When a class definition is left normally (via the end), a *class object* is " "created. This is basically a wrapper around the contents of the namespace " -"created by the class definition; we'll learn more about class objects in the" -" next section. The original local scope (the one in effect just before the " +"created by the class definition; we'll learn more about class objects in the " +"next section. The original local scope (the one in effect just before the " "class definition was entered) is reinstated, and the class object is bound " -"here to the class name given in the class definition header " -"(:class:`ClassName` in the example)." +"here to the class name given in the class definition header (:class:" +"`ClassName` in the example)." msgstr "" "Quando uma definição de classe é completado (normalmente, sem erros), um " "*objeto classe* é criado. Este objeto encapsula o conteúdo do espaço de " @@ -511,18 +511,18 @@ msgid "" "Class objects support two kinds of operations: attribute references and " "instantiation." msgstr "" -"Objetos classe suportam dois tipos de operações: *referências a atributos* e" -" *instanciação*." +"Objetos classe suportam dois tipos de operações: *referências a atributos* e " +"*instanciação*." #: ../../tutorial/classes.rst:264 msgid "" "*Attribute references* use the standard syntax used for all attribute " -"references in Python: ``obj.name``. Valid attribute names are all the names" -" that were in the class's namespace when the class object was created. So, " +"references in Python: ``obj.name``. Valid attribute names are all the names " +"that were in the class's namespace when the class object was created. So, " "if the class definition looked like this::" msgstr "" -"*Referências a atributos* de classe utilizam a sintaxe padrão utilizada para" -" quaisquer referências a atributos em Python: ``obj.name``. Nomes de " +"*Referências a atributos* de classe utilizam a sintaxe padrão utilizada para " +"quaisquer referências a atributos em Python: ``obj.name``. Nomes de " "atributos válidos são todos os nomes presentes dentro do espaço d nomes da " "classe, quando o objeto classe foi criado. Portanto, se a definição de " "classe tem esta forma::" @@ -537,19 +537,19 @@ msgid "" msgstr "" "então ``MyClass.i`` e ``MyClass.f`` são referências a atributo válidas, " "retornando, respectivamente, um inteiro e um objeto função. Atributos de " -"classe podem receber valores, pode-se modificar o valor de ``MyClass.i`` num" -" atribuição. :attr:`__doc__` também é um atributo válido da classe, " +"classe podem receber valores, pode-se modificar o valor de ``MyClass.i`` num " +"atribuição. :attr:`__doc__` também é um atributo válido da classe, " "retornando a *documentação* associada: ``\"A simple example class\"``." #: ../../tutorial/classes.rst:282 msgid "" "Class *instantiation* uses function notation. Just pretend that the class " -"object is a parameterless function that returns a new instance of the class." -" For example (assuming the above class)::" +"object is a parameterless function that returns a new instance of the class. " +"For example (assuming the above class)::" msgstr "" "Para *instanciar* uma classe, usa-se a mesma sintaxe de invocar uma função. " -"Apenas finja que o objeto classe do exemplo é uma função sem parâmetros, que" -" devolve uma nova instância da classe. Por exemplo (assumindo a classe " +"Apenas finja que o objeto classe do exemplo é uma função sem parâmetros, que " +"devolve uma nova instância da classe. Por exemplo (assumindo a classe " "acima)::" #: ../../tutorial/classes.rst:288 @@ -557,31 +557,32 @@ msgid "" "creates a new *instance* of the class and assigns this object to the local " "variable ``x``." msgstr "" -"cria uma nova *instância* da classe e atribui o objeto resultante à variável" -" local ``x``." +"cria uma nova *instância* da classe e atribui o objeto resultante à variável " +"local ``x``." #: ../../tutorial/classes.rst:291 msgid "" "The instantiation operation (\"calling\" a class object) creates an empty " "object. Many classes like to create objects with instances customized to a " -"specific initial state. Therefore a class may define a special method named " -":meth:`__init__`, like this::" +"specific initial state. Therefore a class may define a special method named :" +"meth:`__init__`, like this::" msgstr "" "A operação de instanciação (\"invocar\" um objeto classe) cria um objeto " "vazio. Muitas classes preferem criar novos objetos com um estado inicial " -"predeterminado. Para tanto, a classe pode definir um método especial chamado" -" :meth:`__init__`, assim::" +"predeterminado. Para tanto, a classe pode definir um método especial " +"chamado :meth:`__init__`, assim::" #: ../../tutorial/classes.rst:299 msgid "" "When a class defines an :meth:`__init__` method, class instantiation " -"automatically invokes :meth:`__init__` for the newly-created class instance." -" So in this example, a new, initialized instance can be obtained by::" +"automatically invokes :meth:`__init__` for the newly-created class " +"instance. So in this example, a new, initialized instance can be obtained " +"by::" msgstr "" "Quando uma classe define um método :meth:`__init__`, o processo de " -"instanciação automaticamente invoca :meth:`__init__` sobre a instância recém" -" criada. Em nosso exemplo, uma nova instância já inicializada pode ser " -"obtida desta maneira::" +"instanciação automaticamente invoca :meth:`__init__` sobre a instância recém " +"criada. Em nosso exemplo, uma nova instância já inicializada pode ser obtida " +"desta maneira::" #: ../../tutorial/classes.rst:305 msgid "" @@ -599,13 +600,14 @@ msgstr "Objetos de Instância" #: ../../tutorial/classes.rst:324 msgid "" -"Now what can we do with instance objects? The only operations understood by" -" instance objects are attribute references. There are two kinds of valid " -"attribute names, data attributes and methods." +"Now what can we do with instance objects? The only operations understood by " +"instance objects are attribute references. There are two kinds of valid " +"attribute names: data attributes and methods." msgstr "" -"Agora, o que podemos fazer com instâncias? As únicas operações reconhecidas " -"por instâncias são referências a atributos. Existem dois tipos de nomes de " -"atributos válidos: atributos de dados e métodos." +"Agora o que podemos fazer com objetos de instância? As únicas operações " +"compreendidas por objetos de instância são os atributos de referência. " +"Existem duas maneiras válidas para nomear atributos: atributos de dados e " +"métodos." #: ../../tutorial/classes.rst:328 msgid "" @@ -616,20 +618,20 @@ msgid "" "following piece of code will print the value ``16``, without leaving a " "trace::" msgstr "" -"Atributos de dados correspondem a \"variáveis de instância\" em Smalltalk, e" -" a \"membros de dados\" em C++. Atributos de dados não precisam ser " +"Atributos de dados correspondem a \"variáveis de instância\" em Smalltalk, e " +"a \"membros de dados\" em C++. Atributos de dados não precisam ser " "declarados. Assim como variáveis locais, eles passam a existir na primeira " -"vez em que é feita uma atribuição. Por exemplo, se ``x`` é uma instância da " -":class:`MyClass` criada acima, o próximo trecho de código irá exibir o valor" -" ``16``, sem deixar nenhum rastro::" +"vez em que é feita uma atribuição. Por exemplo, se ``x`` é uma instância da :" +"class:`MyClass` criada acima, o próximo trecho de código irá exibir o valor " +"``16``, sem deixar nenhum rastro::" #: ../../tutorial/classes.rst:340 msgid "" "The other kind of instance attribute reference is a *method*. A method is a " "function that \"belongs to\" an object. (In Python, the term method is not " -"unique to class instances: other object types can have methods as well. For" -" example, list objects have methods called append, insert, remove, sort, and" -" so on. However, in the following discussion, we'll use the term method " +"unique to class instances: other object types can have methods as well. For " +"example, list objects have methods called append, insert, remove, sort, and " +"so on. However, in the following discussion, we'll use the term method " "exclusively to mean methods of class instance objects, unless explicitly " "stated otherwise.)" msgstr "" @@ -637,8 +639,8 @@ msgstr "" "método é uma função que \"pertence\" a uma instância. (Em Python, o termo " "método não é aplicado exclusivamente a instâncias de classes definidas pelo " "usuário: outros tipos de objetos também podem ter métodos. Por exemplo, " -"listas possuem os métodos append, insert, remove, sort, entre outros. Porém," -" na discussão a seguir, usaremos o termo método apenas para se referir a " +"listas possuem os métodos append, insert, remove, sort, entre outros. Porém, " +"na discussão a seguir, usaremos o termo método apenas para se referir a " "métodos de classes definidas pelo usuário. Seremos explícitos ao falar de " "outros métodos.)" @@ -656,8 +658,8 @@ msgstr "" "método das instâncias. Em nosso exemplo, ``x.f`` é uma referência de método " "válida já que ``MyClass.f`` é uma função, enquanto ``x.i`` não é, já que " "``MyClass.i`` não é uma função. Entretanto, ``x.f`` não é o mesmo que " -"``MyClass.f``. A referência ``x.f`` acessa um objeto método e a " -"``MyClass.f`` acessa um objeto função." +"``MyClass.f``. A referência ``x.f`` acessa um objeto método e a ``MyClass." +"f`` acessa um objeto função." #: ../../tutorial/classes.rst:360 msgid "Method Objects" @@ -665,8 +667,7 @@ msgstr "Objetos Métodos" #: ../../tutorial/classes.rst:362 msgid "Usually, a method is called right after it is bound::" -msgstr "" -"Normalmente, um método é chamado imediatamente após ser referenciado::" +msgstr "Normalmente, um método é chamado imediatamente após ser referenciado::" #: ../../tutorial/classes.rst:366 msgid "" @@ -686,54 +687,54 @@ msgstr "Esse código exibirá o texto ``hello world`` até o mundo acabar." #: ../../tutorial/classes.rst:376 msgid "" -"What exactly happens when a method is called? You may have noticed that " -"``x.f()`` was called without an argument above, even though the function " +"What exactly happens when a method is called? You may have noticed that ``x." +"f()`` was called without an argument above, even though the function " "definition for :meth:`f` specified an argument. What happened to the " -"argument? Surely Python raises an exception when a function that requires an" -" argument is called without any --- even if the argument isn't actually " +"argument? Surely Python raises an exception when a function that requires an " +"argument is called without any --- even if the argument isn't actually " "used..." msgstr "" "O que ocorre precisamente quando um método é invocado? Você deve ter notado " -"que ``x.f()`` foi chamado sem nenhum parâmetro, porém a definição da função " -":meth:`f` especificava um parâmetro. O que aconteceu com esse parâmetro? " +"que ``x.f()`` foi chamado sem nenhum parâmetro, porém a definição da função :" +"meth:`f` especificava um parâmetro. O que aconteceu com esse parâmetro? " "Certamente Python levanta uma exceção quando uma função que declara um " -"parâmetro é invocada sem nenhum argumento --- mesmo que o argumento não seja" -" usado no corpo da função..." +"parâmetro é invocada sem nenhum argumento --- mesmo que o argumento não seja " +"usado no corpo da função..." #: ../../tutorial/classes.rst:382 msgid "" "Actually, you may have guessed the answer: the special thing about methods " -"is that the instance object is passed as the first argument of the function." -" In our example, the call ``x.f()`` is exactly equivalent to " -"``MyClass.f(x)``. In general, calling a method with a list of *n* arguments" -" is equivalent to calling the corresponding function with an argument list " +"is that the instance object is passed as the first argument of the " +"function. In our example, the call ``x.f()`` is exactly equivalent to " +"``MyClass.f(x)``. In general, calling a method with a list of *n* arguments " +"is equivalent to calling the corresponding function with an argument list " "that is created by inserting the method's instance object before the first " "argument." msgstr "" "Na verdade, pode-se supor a resposta: a particularidade sobre os métodos é " "que o objeto da instância é passado como o primeiro argumento da função. Em " -"nosso exemplo, a chamada ``x.f()`` é exatamente equivalente a " -"``MyClass.f(x)``. Em geral, chamar um método com uma lista de *n* " -"argumentos é equivalente a chamar a função correspondente com uma lista de " -"argumentos que é criada inserindo o objeto de instância do método antes do " -"primeiro argumento." +"nosso exemplo, a chamada ``x.f()`` é exatamente equivalente a ``MyClass." +"f(x)``. Em geral, chamar um método com uma lista de *n* argumentos é " +"equivalente a chamar a função correspondente com uma lista de argumentos que " +"é criada inserindo o objeto de instância do método antes do primeiro " +"argumento." #: ../../tutorial/classes.rst:389 msgid "" -"If you still don't understand how methods work, a look at the implementation" -" can perhaps clarify matters. When a non-data attribute of an instance is " +"If you still don't understand how methods work, a look at the implementation " +"can perhaps clarify matters. When a non-data attribute of an instance is " "referenced, the instance's class is searched. If the name denotes a valid " "class attribute that is a function object, a method object is created by " -"packing (pointers to) the instance object and the function object just found" -" together in an abstract object: this is the method object. When the method" -" object is called with an argument list, a new argument list is constructed " +"packing (pointers to) the instance object and the function object just found " +"together in an abstract object: this is the method object. When the method " +"object is called with an argument list, a new argument list is constructed " "from the instance object and the argument list, and the function object is " "called with this new argument list." msgstr "" "Se você ainda não entende como os métodos funcionam, dê uma olhada na " "implementação para esclarecer as coisas. Quando um atributo de uma " -"instância, não relacionado a dados, é referenciado, a classe da instância é" -" pesquisada. Se o nome é um atributo de classe válido, e é o nome de uma " +"instância, não relacionado a dados, é referenciado, a classe da instância é " +"pesquisada. Se o nome é um atributo de classe válido, e é o nome de uma " "função, um método é criado, empacotando a instância e a função, que estão " "juntos num objeto abstrato: este é o método. Quando o método é chamado com " "uma lista de argumentos, uma nova lista de argumentos é construída a partir " @@ -792,8 +793,8 @@ msgstr "" "Atributos de dados sobrescrevem atributos métodos homônimos. Para evitar " "conflitos acidentais de nome, que podem gerar erros de difícil detecção em " "programas extensos, é sábio adotar algum tipo de convenção que minimize a " -"chance de conflitos. Convenções comuns incluem: definir nomes de métodos com" -" inicial maiúscula, prefixar nomes de atributos de dados com caracteres " +"chance de conflitos. Convenções comuns incluem: definir nomes de métodos com " +"inicial maiúscula, prefixar nomes de atributos de dados com caracteres " "diferenciados (quem sabe apenas um sublinhado \"_\"), ou usar sempre verbos " "para nomear métodos e substantivos para atributos de dados." @@ -803,13 +804,13 @@ msgid "" "(\"clients\") of an object. In other words, classes are not usable to " "implement pure abstract data types. In fact, nothing in Python makes it " "possible to enforce data hiding --- it is all based upon convention. (On " -"the other hand, the Python implementation, written in C, can completely hide" -" implementation details and control access to an object if necessary; this " +"the other hand, the Python implementation, written in C, can completely hide " +"implementation details and control access to an object if necessary; this " "can be used by extensions to Python written in C.)" msgstr "" -"Atributos de dados podem ser referenciados por métodos da própria instância," -" bem como por qualquer outro usuário do objeto (também chamados \"clientes\"" -" do objeto). Em outras palavras, classes não servem para implementar tipos " +"Atributos de dados podem ser referenciados por métodos da própria instância, " +"bem como por qualquer outro usuário do objeto (também chamados \"clientes\" " +"do objeto). Em outras palavras, classes não servem para implementar tipos " "puramente abstratos de dados. De fato, nada em Python torna possível " "assegurar o encapsulamento de dados --- tudo é baseado em convenção. (Por " "outro lado, a implementação de Python, escrita em C, pode esconder " @@ -820,9 +821,9 @@ msgstr "" msgid "" "Clients should use data attributes with care --- clients may mess up " "invariants maintained by the methods by stamping on their data attributes. " -"Note that clients may add data attributes of their own to an instance object" -" without affecting the validity of the methods, as long as name conflicts " -"are avoided --- again, a naming convention can save a lot of headaches here." +"Note that clients may add data attributes of their own to an instance object " +"without affecting the validity of the methods, as long as name conflicts are " +"avoided --- again, a naming convention can save a lot of headaches here." msgstr "" "Clientes devem utilizar atributos de dados com cuidado, pois podem bagunçar " "invariantes assumidas pelos métodos ao esbarrar em seus atributos de dados. " @@ -834,13 +835,13 @@ msgstr "" #: ../../tutorial/classes.rst:499 msgid "" "There is no shorthand for referencing data attributes (or other methods!) " -"from within methods. I find that this actually increases the readability of" -" methods: there is no chance of confusing local variables and instance " +"from within methods. I find that this actually increases the readability of " +"methods: there is no chance of confusing local variables and instance " "variables when glancing through a method." msgstr "" "Não existe atalho para referenciar atributos de dados (ou outros métodos!) " -"de dentro de um método. Isso aumenta a legibilidade dos métodos: não há como" -" confundir variáveis locais com variáveis da instância quando lemos " +"de dentro de um método. Isso aumenta a legibilidade dos métodos: não há como " +"confundir variáveis locais com variáveis da instância quando lemos " "rapidamente um método." #: ../../tutorial/classes.rst:504 @@ -848,8 +849,8 @@ msgid "" "Often, the first argument of a method is called ``self``. This is nothing " "more than a convention: the name ``self`` has absolutely no special meaning " "to Python. Note, however, that by not following the convention your code " -"may be less readable to other Python programmers, and it is also conceivable" -" that a *class browser* program might be written that relies upon such a " +"may be less readable to other Python programmers, and it is also conceivable " +"that a *class browser* program might be written that relies upon such a " "convention." msgstr "" "Frequentemente, o primeiro argumento de um método é chamado ``self``. Isso " @@ -861,10 +862,10 @@ msgstr "" #: ../../tutorial/classes.rst:510 msgid "" -"Any function object that is a class attribute defines a method for instances" -" of that class. It is not necessary that the function definition is " -"textually enclosed in the class definition: assigning a function object to a" -" local variable in the class is also ok. For example::" +"Any function object that is a class attribute defines a method for instances " +"of that class. It is not necessary that the function definition is " +"textually enclosed in the class definition: assigning a function object to a " +"local variable in the class is also ok. For example::" msgstr "" "Qualquer objeto função que é atributo de uma classe, define um método para " "as instâncias dessa classe. Não é necessário que a definição da função " @@ -873,9 +874,9 @@ msgstr "" #: ../../tutorial/classes.rst:527 msgid "" -"Now ``f``, ``g`` and ``h`` are all attributes of class :class:`C` that refer" -" to function objects, and consequently they are all methods of instances of " -":class:`C` --- ``h`` being exactly equivalent to ``g``. Note that this " +"Now ``f``, ``g`` and ``h`` are all attributes of class :class:`C` that refer " +"to function objects, and consequently they are all methods of instances of :" +"class:`C` --- ``h`` being exactly equivalent to ``g``. Note that this " "practice usually only serves to confuse the reader of a program." msgstr "" "Agora ``f``, ``g`` e ``h`` são todos atributos da classe :class:`C` que " @@ -899,16 +900,16 @@ msgid "" "legitimate uses of the global scope: for one thing, functions and modules " "imported into the global scope can be used by methods, as well as functions " "and classes defined in it. Usually, the class containing the method is " -"itself defined in this global scope, and in the next section we'll find some" -" good reasons why a method would want to reference its own class." +"itself defined in this global scope, and in the next section we'll find some " +"good reasons why a method would want to reference its own class." msgstr "" -"Métodos podem referenciar nomes globais da mesma forma que funções comuns. O" -" escopo global associado a um método é o módulo contendo sua definição na " -"classe (a classe propriamente dita nunca é usada como escopo global!). Ainda" -" que seja raro justificar o uso de dados globais em um método, há diversos " +"Métodos podem referenciar nomes globais da mesma forma que funções comuns. O " +"escopo global associado a um método é o módulo contendo sua definição na " +"classe (a classe propriamente dita nunca é usada como escopo global!). Ainda " +"que seja raro justificar o uso de dados globais em um método, há diversos " "usos legítimos do escopo global. Por exemplo, funções e módulos importados " -"no escopo global podem ser usados por métodos, bem como as funções e classes" -" definidas no próprio escopo global. Provavelmente, a classe contendo o " +"no escopo global podem ser usados por métodos, bem como as funções e classes " +"definidas no próprio escopo global. Provavelmente, a classe contendo o " "método em questão também foi definida neste escopo global. Na próxima seção " "veremos razões pelas quais um método pode querer referenciar sua própria " "classe." @@ -943,24 +944,24 @@ msgid "" msgstr "" "O identificador :class:`BaseClassName` deve estar definido no escopo que " "contém a definição da classe derivada. No lugar do nome da classe base, " -"também são aceitas outras expressões. Isso é muito útil, por exemplo, quando" -" a classe base é definida em outro módulo::" +"também são aceitas outras expressões. Isso é muito útil, por exemplo, quando " +"a classe base é definida em outro módulo::" #: ../../tutorial/classes.rst:583 msgid "" "Execution of a derived class definition proceeds the same as for a base " "class. When the class object is constructed, the base class is remembered. " -"This is used for resolving attribute references: if a requested attribute is" -" not found in the class, the search proceeds to look in the base class. " -"This rule is applied recursively if the base class itself is derived from " -"some other class." +"This is used for resolving attribute references: if a requested attribute is " +"not found in the class, the search proceeds to look in the base class. This " +"rule is applied recursively if the base class itself is derived from some " +"other class." msgstr "" "A execução de uma definição de classe derivada procede da mesma forma que a " "de uma classe base. Quando o objeto classe é construído, a classe base é " "lembrada. Isso é utilizado para resolver referências a atributos. Se um " -"atributo requisitado não for encontrado na classe, ele é procurado na classe" -" base. Essa regra é aplicada recursivamente se a classe base por sua vez for" -" derivada de outra." +"atributo requisitado não for encontrado na classe, ele é procurado na classe " +"base. Essa regra é aplicada recursivamente se a classe base por sua vez for " +"derivada de outra." #: ../../tutorial/classes.rst:589 msgid "" @@ -978,9 +979,9 @@ msgstr "" #: ../../tutorial/classes.rst:595 msgid "" -"Derived classes may override methods of their base classes. Because methods" -" have no special privileges when calling other methods of the same object, a" -" method of a base class that calls another method defined in the same base " +"Derived classes may override methods of their base classes. Because methods " +"have no special privileges when calling other methods of the same object, a " +"method of a base class that calls another method defined in the same base " "class may end up calling a method of a derived class that overrides it. " "(For C++ programmers: all methods in Python are effectively ``virtual``.)" msgstr "" @@ -988,20 +989,20 @@ msgstr "" "que métodos não possuem privilégios especiais quando invocam outros métodos " "no mesmo objeto, um método na classe base que invoca um outro método da " "mesma classe base pode, efetivamente, acabar invocando um método sobreposto " -"por uma classe derivada. (Para programadores C++ isso significa que todos os" -" métodos em Python são realmente virtuais.)" +"por uma classe derivada. (Para programadores C++ isso significa que todos os " +"métodos em Python são realmente virtuais.)" #: ../../tutorial/classes.rst:601 msgid "" "An overriding method in a derived class may in fact want to extend rather " "than simply replace the base class method of the same name. There is a " -"simple way to call the base class method directly: just call " -"``BaseClassName.methodname(self, arguments)``. This is occasionally useful " -"to clients as well. (Note that this only works if the base class is " -"accessible as ``BaseClassName`` in the global scope.)" +"simple way to call the base class method directly: just call ``BaseClassName." +"methodname(self, arguments)``. This is occasionally useful to clients as " +"well. (Note that this only works if the base class is accessible as " +"``BaseClassName`` in the global scope.)" msgstr "" -"Um método sobrescrito em uma classe derivada, de fato, pode querer estender," -" em vez de simplesmente substituir, o método da classe base, de mesmo nome. " +"Um método sobrescrito em uma classe derivada, de fato, pode querer estender, " +"em vez de simplesmente substituir, o método da classe base, de mesmo nome. " "Existe uma maneira simples de chamar diretamente o método da classe base: " "apenas chame ``BaseClassName.methodname(self, arguments)``. Isso é " "geralmente útil para os clientes também. (Note que isto só funciona se a " @@ -1013,8 +1014,8 @@ msgstr "Python tem duas funções embutidas que trabalham com herança:" #: ../../tutorial/classes.rst:610 msgid "" -"Use :func:`isinstance` to check an instance's type: ``isinstance(obj, int)``" -" will be ``True`` only if ``obj.__class__`` is :class:`int` or some class " +"Use :func:`isinstance` to check an instance's type: ``isinstance(obj, int)`` " +"will be ``True`` only if ``obj.__class__`` is :class:`int` or some class " "derived from :class:`int`." msgstr "" "* Use :func:`isinstance` para verificar o tipo de uma instância: " @@ -1023,15 +1024,15 @@ msgstr "" #: ../../tutorial/classes.rst:614 msgid "" -"Use :func:`issubclass` to check class inheritance: ``issubclass(bool, int)``" -" is ``True`` since :class:`bool` is a subclass of :class:`int`. However, " +"Use :func:`issubclass` to check class inheritance: ``issubclass(bool, int)`` " +"is ``True`` since :class:`bool` is a subclass of :class:`int`. However, " "``issubclass(float, int)`` is ``False`` since :class:`float` is not a " "subclass of :class:`int`." msgstr "" "* Use :func:`issubclass` para verificar herança entre classes: " "``issubclass(bool, int)`` é ``True`` porque :class:`bool` é uma subclasse " -"de :class:`int`. Porém, ``issubclass(float, int)`` é ``False`` porque " -":class:`float` não é uma subclasse de :class:`int`." +"de :class:`int`. Porém, ``issubclass(float, int)`` é ``False`` porque :" +"class:`float` não é uma subclasse de :class:`int`." #: ../../tutorial/classes.rst:624 msgid "Multiple Inheritance" @@ -1042,8 +1043,8 @@ msgid "" "Python supports a form of multiple inheritance as well. A class definition " "with multiple base classes looks like this::" msgstr "" -"Python também suporta uma forma de herança múltipla. Uma definição de classe" -" com várias classes base tem esta forma::" +"Python também suporta uma forma de herança múltipla. Uma definição de classe " +"com várias classes base tem esta forma::" #: ../../tutorial/classes.rst:636 msgid "" @@ -1051,15 +1052,15 @@ msgid "" "attributes inherited from a parent class as depth-first, left-to-right, not " "searching twice in the same class where there is an overlap in the " "hierarchy. Thus, if an attribute is not found in :class:`DerivedClassName`, " -"it is searched for in :class:`Base1`, then (recursively) in the base classes" -" of :class:`Base1`, and if it was not found there, it was searched for in " -":class:`Base2`, and so on." +"it is searched for in :class:`Base1`, then (recursively) in the base classes " +"of :class:`Base1`, and if it was not found there, it was searched for in :" +"class:`Base2`, and so on." msgstr "" "Para a maioria dos casos mais simples, pense na pesquisa de atributos " "herdados de uma classe pai como o primeiro nível de profundidade, da " "esquerda para a direita, não pesquisando duas vezes na mesma classe em que " -"há uma sobreposição na hierarquia. Assim, se um atributo não é encontrado em" -" :class:`DerivedClassName`, é procurado em :class:`Base1`, depois, " +"há uma sobreposição na hierarquia. Assim, se um atributo não é encontrado " +"em :class:`DerivedClassName`, é procurado em :class:`Base1`, depois, " "recursivamente, nas classes base de :class:`Base1`, e se não for encontrado " "lá, é pesquisado em :class:`Base2` e assim por diante." @@ -1090,8 +1091,8 @@ msgid "" "and that is monotonic (meaning that a class can be subclassed without " "affecting the precedence order of its parents). Taken together, these " "properties make it possible to design reliable and extensible classes with " -"multiple inheritance. For more detail, see " -"https://www.python.org/download/releases/2.3/mro/." +"multiple inheritance. For more detail, see https://www.python.org/download/" +"releases/2.3/mro/." msgstr "" "A ordenação dinâmica é necessária porque todos os casos de herança múltipla " "exibem um ou mais relacionamentos de diamante (em que pelo menos uma das " @@ -1113,15 +1114,15 @@ msgstr "Variáveis Privadas" #: ../../tutorial/classes.rst:668 msgid "" -"\"Private\" instance variables that cannot be accessed except from inside an" -" object don't exist in Python. However, there is a convention that is " +"\"Private\" instance variables that cannot be accessed except from inside an " +"object don't exist in Python. However, there is a convention that is " "followed by most Python code: a name prefixed with an underscore (e.g. " "``_spam``) should be treated as a non-public part of the API (whether it is " "a function, a method or a data member). It should be considered an " "implementation detail and subject to change without notice." msgstr "" -"Variáveis de instância \"privadas\", que não podem ser acessadas, ​​exceto " -"em métodos do próprio objeto, não existem em Python. No entanto, existe uma " +"Variáveis de instância \"privadas\", que não podem ser acessadas, ​​exceto em " +"métodos do próprio objeto, não existem em Python. No entanto, existe uma " "convenção que é seguida pela maioria dos programas em Python: um nome " "prefixado com um sublinhado (por exemplo: ``_spam`` ) deve ser tratado como " "uma parte não-pública da API (seja uma função, um método ou um atributo de " @@ -1135,20 +1136,20 @@ msgid "" "support for such a mechanism, called :dfn:`name mangling`. Any identifier " "of the form ``__spam`` (at least two leading underscores, at most one " "trailing underscore) is textually replaced with ``_classname__spam``, where " -"``classname`` is the current class name with leading underscore(s) stripped." -" This mangling is done without regard to the syntactic position of the " -"identifier, as long as it occurs within the definition of a class." +"``classname`` is the current class name with leading underscore(s) " +"stripped. This mangling is done without regard to the syntactic position of " +"the identifier, as long as it occurs within the definition of a class." msgstr "" "Uma vez que existe um caso de uso válido para a definição de atributos " "privados em classes (especificamente para evitar conflitos com nomes " "definidos em subclasses), existe um suporte limitado a identificadores " "privados em classes, chamado :dfn:`name mangling`, desfiguração de nomes. " -"Qualquer identificador no formato ``__spam`` (pelo menos dois sublinhados no" -" início, e no máximo um sublinhado no final) é textualmente substituído por " +"Qualquer identificador no formato ``__spam`` (pelo menos dois sublinhados no " +"início, e no máximo um sublinhado no final) é textualmente substituído por " "``_classname__spam``, onde ``classname`` é o nome da classe atual com " "sublinhado(s) iniciais omitidos. Essa desfiguração independe da posição " -"sintática do identificador, desde que ele apareça dentro da definição de uma" -" classe." +"sintática do identificador, desde que ele apareça dentro da definição de uma " +"classe." #: ../../tutorial/classes.rst:687 msgid "" @@ -1161,21 +1162,22 @@ msgstr "" #: ../../tutorial/classes.rst:709 msgid "" -"The above example would work even if ``MappingSubclass`` were to introduce a" -" ``__update`` identifier since it is replaced with ``_Mapping__update`` in " +"The above example would work even if ``MappingSubclass`` were to introduce a " +"``__update`` identifier since it is replaced with ``_Mapping__update`` in " "the ``Mapping`` class and ``_MappingSubclass__update`` in the " "``MappingSubclass`` class respectively." msgstr "" "O exemplo acima deve funcionar mesmo se ``MappingSubclass`` introduzisse um " "identificador ``__update`` uma vez que é substituído por " -"``_Mapping__update`` na classe ``Mapping`` e ``_MappingSubclass__update`` na" -" classe ``MappingSubclass``, respectivamente." +"``_Mapping__update`` na classe ``Mapping`` e ``_MappingSubclass__update`` na " +"classe ``MappingSubclass``, respectivamente." #: ../../tutorial/classes.rst:714 msgid "" "Note that the mangling rules are designed mostly to avoid accidents; it " -"still is possible to access or modify a variable that is considered private." -" This can even be useful in special circumstances, such as in the debugger." +"still is possible to access or modify a variable that is considered " +"private. This can even be useful in special circumstances, such as in the " +"debugger." msgstr "" "Note que as regras de desfiguração de nomes foram projetadas para evitar " "acidentes; ainda é possível acessar ou modificar uma variável que é " @@ -1192,11 +1194,11 @@ msgid "" "referencing ``__dict__`` directly." msgstr "" "Código passado para ``exec()`` ou ``eval()`` não considera o nome da classe " -"que invocou como sendo a classe corrente; isso é semelhante ao funcionamento" -" da instrução ``global``, cujo efeito se aplica somente ao código que é " +"que invocou como sendo a classe corrente; isso é semelhante ao funcionamento " +"da instrução ``global``, cujo efeito se aplica somente ao código que é " "compilado junto. A mesma restrição se aplica às funções ``getattr()``, " -"``setattr()`` e ``delattr()``, e quando acessamos diretamente o ``__dict__``" -" da classe." +"``setattr()`` e ``delattr()``, e quando acessamos diretamente o ``__dict__`` " +"da classe." #: ../../tutorial/classes.rst:729 msgid "Odds and Ends" @@ -1209,17 +1211,17 @@ msgid "" "definition will do nicely::" msgstr "" "Às vezes, é útil ter um tipo semelhante ao \"record\" de Pascal ou ao " -"\"struct\" de C, para agrupar alguns itens de dados. Uma definição de classe" -" vazia funciona bem para este fim::" +"\"struct\" de C, para agrupar alguns itens de dados. Uma definição de classe " +"vazia funciona bem para este fim::" #: ../../tutorial/classes.rst:745 msgid "" "A piece of Python code that expects a particular abstract data type can " -"often be passed a class that emulates the methods of that data type instead." -" For instance, if you have a function that formats some data from a file " -"object, you can define a class with methods :meth:`read` and " -":meth:`!readline` that get the data from a string buffer instead, and pass " -"it as an argument." +"often be passed a class that emulates the methods of that data type " +"instead. For instance, if you have a function that formats some data from a " +"file object, you can define a class with methods :meth:`read` and :meth:`!" +"readline` that get the data from a string buffer instead, and pass it as an " +"argument." msgstr "" "Um trecho de código Python que espera um tipo de dado abstrato em " "particular, pode receber, ao invés disso, uma classe que imita os métodos " @@ -1230,9 +1232,9 @@ msgstr "" #: ../../tutorial/classes.rst:756 msgid "" -"Instance method objects have attributes, too: ``m.__self__`` is the instance" -" object with the method :meth:`m`, and ``m.__func__`` is the function object" -" corresponding to the method." +"Instance method objects have attributes, too: ``m.__self__`` is the instance " +"object with the method :meth:`m`, and ``m.__func__`` is the function object " +"corresponding to the method." msgstr "" "Métodos de instância tem atributos também: ``m.__self__`` é o objeto " "instância com o método :meth:`m`, e ``m.__func__`` é o objeto função " @@ -1247,30 +1249,29 @@ msgid "" "By now you have probably noticed that most container objects can be looped " "over using a :keyword:`for` statement::" msgstr "" -"Você já deve ter notado que pode usar laços :keyword:`for` com a maioria das" -" coleções em Python::" +"Você já deve ter notado que pode usar laços :keyword:`for` com a maioria das " +"coleções em Python::" #: ../../tutorial/classes.rst:780 msgid "" "This style of access is clear, concise, and convenient. The use of " -"iterators pervades and unifies Python. Behind the scenes, the " -":keyword:`for` statement calls :func:`iter` on the container object. The " -"function returns an iterator object that defines the method " -":meth:`~iterator.__next__` which accesses elements in the container one at a" -" time. When there are no more elements, :meth:`~iterator.__next__` raises a" -" :exc:`StopIteration` exception which tells the :keyword:`!for` loop to " -"terminate. You can call the :meth:`~iterator.__next__` method using the " -":func:`next` built-in function; this example shows how it all works::" +"iterators pervades and unifies Python. Behind the scenes, the :keyword:" +"`for` statement calls :func:`iter` on the container object. The function " +"returns an iterator object that defines the method :meth:`~iterator." +"__next__` which accesses elements in the container one at a time. When " +"there are no more elements, :meth:`~iterator.__next__` raises a :exc:" +"`StopIteration` exception which tells the :keyword:`!for` loop to " +"terminate. You can call the :meth:`~iterator.__next__` method using the :" +"func:`next` built-in function; this example shows how it all works::" msgstr "" "Esse estilo de acesso é claro, conciso e conveniente. O uso de iteradores " -"permeia e unifica o Python. Nos bastidores, a instrução :keyword:`for` chama" -" :func:`iter` no objeto contêiner. A função retorna um objeto iterador que " -"define o método :meth:`~iterator.__ next__` que acessa elementos no " -"contêiner, um de cada vez. Quando não há mais elementos, :meth:`~iterator.__" -" next__` gera uma exceção :exc:`StopIteration` que informa ao " -":keyword:`!for` para terminar. Você pode chamar o método :meth:`~iterator.__" -" next__` usando a função interna :func:`next`; este exemplo mostra como tudo" -" funciona::" +"permeia e unifica o Python. Nos bastidores, a instrução :keyword:`for` " +"chama :func:`iter` no objeto contêiner. A função retorna um objeto iterador " +"que define o método :meth:`~iterator.__ next__` que acessa elementos no " +"contêiner, um de cada vez. Quando não há mais elementos, :meth:`~iterator.__ " +"next__` gera uma exceção :exc:`StopIteration` que informa ao :keyword:`!for` " +"para terminar. Você pode chamar o método :meth:`~iterator.__ next__` usando " +"a função interna :func:`next`; este exemplo mostra como tudo funciona::" #: ../../tutorial/classes.rst:805 msgid "" @@ -1280,10 +1281,10 @@ msgid "" "defines :meth:`__next__`, then :meth:`__iter__` can just return ``self``::" msgstr "" "Observando o mecanismo por trás do protocolo dos iteradores, fica fácil " -"adicionar esse comportamento às suas classes. Defina um método " -":meth:`__iter__` que retorna um objeto que tenha um método " -":meth:`~iterator.__next__`. Se uma classe já define :meth:`__next__`, então " -":meth:`__iter__` pode simplesmente retornar ``self``::" +"adicionar esse comportamento às suas classes. Defina um método :meth:" +"`__iter__` que retorna um objeto que tenha um método :meth:`~iterator." +"__next__`. Se uma classe já define :meth:`__next__`, então :meth:`__iter__` " +"pode simplesmente retornar ``self``::" #: ../../tutorial/classes.rst:842 msgid "Generators" @@ -1291,8 +1292,8 @@ msgstr "Geradores" #: ../../tutorial/classes.rst:844 msgid "" -":term:`Generator`\\s are a simple and powerful tool for creating iterators." -" They are written like regular functions but use the :keyword:`yield` " +":term:`Generator`\\s are a simple and powerful tool for creating iterators. " +"They are written like regular functions but use the :keyword:`yield` " "statement whenever they want to return data. Each time :func:`next` is " "called on it, the generator resumes where it left off (it remembers all the " "data values and which statement was last executed). An example shows that " @@ -1309,20 +1310,20 @@ msgstr "" msgid "" "Anything that can be done with generators can also be done with class-based " "iterators as described in the previous section. What makes generators so " -"compact is that the :meth:`__iter__` and :meth:`~generator.__next__` methods" -" are created automatically." +"compact is that the :meth:`__iter__` and :meth:`~generator.__next__` methods " +"are created automatically." msgstr "" "Qualquer coisa que possa ser feita com geradores também pode ser feita com " "iteradores baseados numa classe, como descrito na seção anterior. O que " -"torna geradores tão compactos é que os métodos :meth:`__iter__` e " -":meth:`~generator.__next__` são criados automaticamente." +"torna geradores tão compactos é que os métodos :meth:`__iter__` e :meth:" +"`~generator.__next__` são criados automaticamente." #: ../../tutorial/classes.rst:870 msgid "" "Another key feature is that the local variables and execution state are " "automatically saved between calls. This made the function easier to write " -"and much more clear than an approach using instance variables like " -"``self.index`` and ``self.data``." +"and much more clear than an approach using instance variables like ``self." +"index`` and ``self.data``." msgstr "" "Outro ponto chave é que as variáveis locais e o estado da execução são " "preservados automaticamente entre as chamadas. Isto torna a função mais " @@ -1346,18 +1347,18 @@ msgstr "Expressões Geradoras" #: ../../tutorial/classes.rst:886 msgid "" -"Some simple generators can be coded succinctly as expressions using a syntax" -" similar to list comprehensions but with parentheses instead of square " +"Some simple generators can be coded succinctly as expressions using a syntax " +"similar to list comprehensions but with parentheses instead of square " "brackets. These expressions are designed for situations where the generator " -"is used right away by an enclosing function. Generator expressions are more" -" compact but less versatile than full generator definitions and tend to be " +"is used right away by an enclosing function. Generator expressions are more " +"compact but less versatile than full generator definitions and tend to be " "more memory friendly than equivalent list comprehensions." msgstr "" "Alguns geradores simples podem ser codificados, de forma sucinta, como " "expressões, usando uma sintaxe semelhante a compreensões de lista, mas com " "parênteses em vez de colchetes. Essas expressões são projetadas para " -"situações em que o gerador é usado imediatamente, pela função que o engloba." -" As expressões geradoras são mais compactas, mas menos versáteis do que as " +"situações em que o gerador é usado imediatamente, pela função que o engloba. " +"As expressões geradoras são mais compactas, mas menos versáteis do que as " "definições completas do gerador, e tendem a ser mais amigáveis à memória do " "que as compreensões de lista equivalentes." @@ -1379,8 +1380,8 @@ msgid "" "like post-mortem debuggers." msgstr "" "Exceto por uma coisa. Os objetos módulo têm um atributo secreto e somente " -"para leitura chamado :attr:`~object.__dict__` que retorna o dicionário usado" -" para implementar o espaço de nomes do módulo; o nome " -":attr:`~object.__dict__` é um atributo, mas não um nome global. Obviamente, " -"usar isso viola a abstração da implementação do espaço de nomes, e deve ser " -"restrito a coisas como depuradores post-mortem." +"para leitura chamado :attr:`~object.__dict__` que retorna o dicionário usado " +"para implementar o espaço de nomes do módulo; o nome :attr:`~object." +"__dict__` é um atributo, mas não um nome global. Obviamente, usar isso viola " +"a abstração da implementação do espaço de nomes, e deve ser restrito a " +"coisas como depuradores post-mortem." diff --git a/tutorial/controlflow.po b/tutorial/controlflow.po index 6e065c89e..9e29e1e45 100644 --- a/tutorial/controlflow.po +++ b/tutorial/controlflow.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-19 03:32+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,8 +33,8 @@ msgid "" "Besides the :keyword:`while` statement just introduced, Python uses the " "usual flow control statements known from other languages, with some twists." msgstr "" -"Além do comando :keyword:`while` recém apresentado, Python tem as estruturas" -" usuais de controle de fluxo conhecidas em outras linguagens, com algumas " +"Além do comando :keyword:`while` recém apresentado, Python tem as estruturas " +"usuais de controle de fluxo conhecidas em outras linguagens, com algumas " "particulares." #: ../../tutorial/controlflow.rst:14 @@ -45,21 +46,21 @@ msgid "" "Perhaps the most well-known statement type is the :keyword:`if` statement. " "For example::" msgstr "" -"Provavelmente o mais conhecido comando de controle de fluxo é o " -":keyword:`if`. Por exemplo::" +"Provavelmente o mais conhecido comando de controle de fluxo é o :keyword:" +"`if`. Por exemplo::" #: ../../tutorial/controlflow.rst:33 msgid "" "There can be zero or more :keyword:`elif` parts, and the :keyword:`else` " "part is optional. The keyword ':keyword:`!elif`' is short for 'else if', " -"and is useful to avoid excessive indentation. An :keyword:`!if` ... " -":keyword:`!elif` ... :keyword:`!elif` ... sequence is a substitute for the " +"and is useful to avoid excessive indentation. An :keyword:`!if` ... :" +"keyword:`!elif` ... :keyword:`!elif` ... sequence is a substitute for the " "``switch`` or ``case`` statements found in other languages." msgstr "" "Pode haver zero ou mais partes :keyword:`elif`, e a parte :keyword:`else` é " "opcional. A palavra-chave ':keyword:`!elif`' é uma abreviação para 'else " -"if', e é útil para evitar identação excessiva. Uma sequência :keyword:`!if` " -"... :keyword:`!elif` ... :keyword:`!elif` ... substitui os comandos " +"if', e é útil para evitar identação excessiva. Uma sequência :keyword:`!" +"if` ... :keyword:`!elif` ... :keyword:`!elif` ... substitui os comandos " "``switch`` ou ``case``, encontrados em outras linguagens." #: ../../tutorial/controlflow.rst:43 @@ -71,17 +72,17 @@ msgid "" "The :keyword:`for` statement in Python differs a bit from what you may be " "used to in C or Pascal. Rather than always iterating over an arithmetic " "progression of numbers (like in Pascal), or giving the user the ability to " -"define both the iteration step and halting condition (as C), Python's " -":keyword:`!for` statement iterates over the items of any sequence (a list or" -" a string), in the order that they appear in the sequence. For example (no " +"define both the iteration step and halting condition (as C), Python's :" +"keyword:`!for` statement iterates over the items of any sequence (a list or " +"a string), in the order that they appear in the sequence. For example (no " "pun intended):" msgstr "" "O comando :keyword:`for` em Python é um pouco diferente do que costuma ser " -"em C ou Pascal. Ao invés de sempre iterar sobre uma progressão aritmética de" -" números (como no Pascal), ou permitir ao usuário definir o passo de " -"iteração e a condição de parada (como C), o comando :keyword:`!for` do " -"Python itera sobre os itens de qualquer sequência (seja uma lista ou uma " -"string), na ordem que aparecem na sequência. Por exemplo (sem trocadilhos):" +"em C ou Pascal. Ao invés de sempre iterar sobre uma progressão aritmética de " +"números (como no Pascal), ou permitir ao usuário definir o passo de iteração " +"e a condição de parada (como C), o comando :keyword:`!for` do Python itera " +"sobre os itens de qualquer sequência (seja uma lista ou uma string), na " +"ordem que aparecem na sequência. Por exemplo (sem trocadilhos):" #: ../../tutorial/controlflow.rst:69 msgid "" @@ -110,18 +111,18 @@ msgstr "A função :func:`range`" #: ../../tutorial/controlflow.rst:90 msgid "" -"If you do need to iterate over a sequence of numbers, the built-in function " -":func:`range` comes in handy. It generates arithmetic progressions::" +"If you do need to iterate over a sequence of numbers, the built-in function :" +"func:`range` comes in handy. It generates arithmetic progressions::" msgstr "" -"Se você precisar iterar sobre sequências numéricas, a função embutida " -":func:`range` é a resposta. Ela gera progressões aritméticas::" +"Se você precisar iterar sobre sequências numéricas, a função embutida :func:" +"`range` é a resposta. Ela gera progressões aritméticas::" #: ../../tutorial/controlflow.rst:102 msgid "" "The given end point is never part of the generated sequence; ``range(10)`` " -"generates 10 values, the legal indices for items of a sequence of length 10." -" It is possible to let the range start at another number, or to specify a " -"different increment (even negative; sometimes this is called the 'step')::" +"generates 10 values, the legal indices for items of a sequence of length " +"10. It is possible to let the range start at another number, or to specify " +"a different increment (even negative; sometimes this is called the 'step')::" msgstr "" "O ponto de parada fornecido nunca é incluído na lista; ``range(10)`` gera " "uma lista com 10 valores, exatamente os índices válidos para uma sequência " @@ -130,19 +131,19 @@ msgstr "" #: ../../tutorial/controlflow.rst:116 msgid "" -"To iterate over the indices of a sequence, you can combine :func:`range` and" -" :func:`len` as follows::" +"To iterate over the indices of a sequence, you can combine :func:`range` " +"and :func:`len` as follows::" msgstr "" -"Para iterar sobre os índices de uma sequência, combine :func:`range` e " -":func:`len` da seguinte forma:" +"Para iterar sobre os índices de uma sequência, combine :func:`range` e :func:" +"`len` da seguinte forma:" #: ../../tutorial/controlflow.rst:129 msgid "" "In most such cases, however, it is convenient to use the :func:`enumerate` " "function, see :ref:`tut-loopidioms`." msgstr "" -"Na maioria dos casos, porém, é mais conveniente usar a função " -":func:`enumerate`, veja :ref:`tut-loopidioms`." +"Na maioria dos casos, porém, é mais conveniente usar a função :func:" +"`enumerate`, veja :ref:`tut-loopidioms`." #: ../../tutorial/controlflow.rst:132 msgid "A strange thing happens if you just print a range::" @@ -155,8 +156,8 @@ msgid "" "items of the desired sequence when you iterate over it, but it doesn't " "really make the list, thus saving space." msgstr "" -"Em muitos aspectos, o objeto retornado pela função :func:`range` se comporta" -" como se fosse uma lista, mas na verdade não é. É um objeto que retorna os " +"Em muitos aspectos, o objeto retornado pela função :func:`range` se comporta " +"como se fosse uma lista, mas na verdade não é. É um objeto que retorna os " "itens sucessivos da sequência desejada quando você itera sobre a mesma, mas " "na verdade ele não gera a lista, economizando espaço." @@ -164,19 +165,19 @@ msgstr "" msgid "" "We say such an object is *iterable*, that is, suitable as a target for " "functions and constructs that expect something from which they can obtain " -"successive items until the supply is exhausted. We have seen that the " -":keyword:`for` statement is such an *iterator*. The function :func:`list` is" -" another; it creates lists from iterables::" +"successive items until the supply is exhausted. We have seen that the :" +"keyword:`for` statement is such an *iterator*. The function :func:`list` is " +"another; it creates lists from iterables::" msgstr "" "Nós dizemos que tal objeto é *iterável*, isto é, adequado como um alvo para " -"funções e construções que esperam algo do qual possam obter itens sucessivos" -" até que o suprimento se esgote. Vimos que a instrução :keyword:`for` é um " +"funções e construções que esperam algo do qual possam obter itens sucessivos " +"até que o suprimento se esgote. Vimos que a instrução :keyword:`for` é um " "*iterador*. A função :func:`list` é outro; cria listas de iteráveis::" #: ../../tutorial/controlflow.rst:152 msgid "" -"Later we will see more functions that return iterables and take iterables as" -" argument." +"Later we will see more functions that return iterables and take iterables as " +"argument." msgstr "" "Mais tarde, veremos mais funções que retornam *iteráveis* e recebem " "*iteráveis* como argumento." @@ -186,8 +187,8 @@ msgid "" ":keyword:`!break` and :keyword:`!continue` Statements, and :keyword:`!else` " "Clauses on Loops" msgstr "" -"Comandos :keyword:`!break` e :keyword:`!continue`, e cláusula " -":keyword:`!else`, nos laços de repetição" +"Comandos :keyword:`!break` e :keyword:`!continue`, e cláusula :keyword:`!" +"else`, nos laços de repetição" #: ../../tutorial/controlflow.rst:160 msgid "" @@ -199,16 +200,16 @@ msgstr "" #: ../../tutorial/controlflow.rst:163 msgid "" -"Loop statements may have an :keyword:`!else` clause; it is executed when the" -" loop terminates through exhaustion of the list (with :keyword:`for`) or " -"when the condition becomes false (with :keyword:`while`), but not when the " -"loop is terminated by a :keyword:`break` statement. This is exemplified by " -"the following loop, which searches for prime numbers::" +"Loop statements may have an :keyword:`!else` clause; it is executed when the " +"loop terminates through exhaustion of the list (with :keyword:`for`) or when " +"the condition becomes false (with :keyword:`while`), but not when the loop " +"is terminated by a :keyword:`break` statement. This is exemplified by the " +"following loop, which searches for prime numbers::" msgstr "" "Comanos de repetição podem ter uma cláusula :keyword:`!else`; que é " -"executada quando o laço termina, pela exaustão da lista (com :keyword:`for`)" -" ou quando a condição se torna falsa (com :keyword:`while`), mas não quando " -"a repetição é terminada por um comando :keyword:`break`. Exemplificado a " +"executada quando o laço termina, pela exaustão da lista (com :keyword:`for`) " +"ou quando a condição se torna falsa (com :keyword:`while`), mas não quando a " +"repetição é terminada por um comando :keyword:`break`. Exemplificado a " "seguir por um laço de repetição que busca por números primos::" #: ../../tutorial/controlflow.rst:187 @@ -222,18 +223,18 @@ msgstr "" #: ../../tutorial/controlflow.rst:190 msgid "" "When used with a loop, the ``else`` clause has more in common with the " -"``else`` clause of a :keyword:`try` statement than it does that of " -":keyword:`if` statements: a :keyword:`!try` statement's ``else`` clause runs" -" when no exception occurs, and a loop's ``else`` clause runs when no " -"``break`` occurs. For more on the :keyword:`!try` statement and exceptions, " -"see :ref:`tut-handling`." -msgstr "" -"Quando usado com um laço de repetição, a cláusula ``else`` tem mais em comum" -" com o ``else`` do comando :keyword:`try`, do que aquele dos comandos " -":keyword:`if`:: a cláusula ``else`` do comando :keyword:`!try` executa " +"``else`` clause of a :keyword:`try` statement than it does that of :keyword:" +"`if` statements: a :keyword:`!try` statement's ``else`` clause runs when no " +"exception occurs, and a loop's ``else`` clause runs when no ``break`` " +"occurs. For more on the :keyword:`!try` statement and exceptions, see :ref:" +"`tut-handling`." +msgstr "" +"Quando usado com um laço de repetição, a cláusula ``else`` tem mais em comum " +"com o ``else`` do comando :keyword:`try`, do que aquele dos comandos :" +"keyword:`if`:: a cláusula ``else`` do comando :keyword:`!try` executa " "quando nenhuma exceção ocorre, e a cláusula ``else`` dos laços de repetição " -"executa quando nenhum ``break`` ocorre. Mais explicações do comando " -":keyword:`!try` e exceções, consulte :ref:`tut-handling`." +"executa quando nenhum ``break`` ocorre. Mais explicações do comando :keyword:" +"`!try` e exceções, consulte :ref:`tut-handling`." #: ../../tutorial/controlflow.rst:197 msgid "" @@ -264,8 +265,8 @@ msgstr "Isto é usado muitas vezes para se definir classes mínimas::" msgid "" "Another place :keyword:`pass` can be used is as a place-holder for a " "function or conditional body when you are working on new code, allowing you " -"to keep thinking at a more abstract level. The :keyword:`!pass` is silently" -" ignored::" +"to keep thinking at a more abstract level. The :keyword:`!pass` is silently " +"ignored::" msgstr "" "Outra ocasião em que o :keyword:`pass` pode ser usado é como um substituto " "temporário para uma função ou bloco condicional, quando se está trabalhando " @@ -298,22 +299,21 @@ msgstr "" #: ../../tutorial/controlflow.rst:270 msgid "" -"The first statement of the function body can optionally be a string literal;" -" this string literal is the function's documentation string, or " -":dfn:`docstring`. (More about docstrings can be found in the section :ref" -":`tut-docstrings`.) There are tools which use docstrings to automatically " -"produce online or printed documentation, or to let the user interactively " -"browse through code; it's good practice to include docstrings in code that " -"you write, so make a habit of it." +"The first statement of the function body can optionally be a string literal; " +"this string literal is the function's documentation string, or :dfn:" +"`docstring`. (More about docstrings can be found in the section :ref:`tut-" +"docstrings`.) There are tools which use docstrings to automatically produce " +"online or printed documentation, or to let the user interactively browse " +"through code; it's good practice to include docstrings in code that you " +"write, so make a habit of it." msgstr "" "Opcionalmente, a primeira linha do corpo da função pode ser uma literal " -"string, cujo propósito é documentar a função. Se presente, essa string " -"chama-se :dfn:`docstring`. (Há mais informação sobre docstrings na seção " -":ref:`tut-docstrings`.) Existem ferramentas que utilizam docstrings para " -"produzir automaticamente documentação online ou para imprimir, ou ainda, " -"permitir que o usuário navegue interativamente pelo código. É uma boa " -"prática incluir sempre docstrings em suas funções, portanto, tente fazer " -"disso um hábito." +"string, cujo propósito é documentar a função. Se presente, essa string chama-" +"se :dfn:`docstring`. (Há mais informação sobre docstrings na seção :ref:`tut-" +"docstrings`.) Existem ferramentas que utilizam docstrings para produzir " +"automaticamente documentação online ou para imprimir, ou ainda, permitir que " +"o usuário navegue interativamente pelo código. É uma boa prática incluir " +"sempre docstrings em suas funções, portanto, tente fazer disso um hábito." #: ../../tutorial/controlflow.rst:277 msgid "" @@ -336,14 +336,14 @@ msgstr "" "circundantes, depois na tabela de símbolos global e, finalmente, na tabela " "de nomes da própria linguagem. Embora possam ser referenciadas, variáveis " "globais e de funções externas não podem ter atribuições (a menos que seja " -"utilizado o comando :keyword:`global`, para variáveis globais, ou " -":keyword:`nonlocal`, para variáveis de funções externas)." +"utilizado o comando :keyword:`global`, para variáveis globais, ou :keyword:" +"`nonlocal`, para variáveis de funções externas)." #: ../../tutorial/controlflow.rst:288 msgid "" "The actual parameters (arguments) to a function call are introduced in the " -"local symbol table of the called function when it is called; thus, arguments" -" are passed using *call by value* (where the *value* is always an object " +"local symbol table of the called function when it is called; thus, arguments " +"are passed using *call by value* (where the *value* is always an object " "*reference*, not the value of the object). [#]_ When a function calls " "another function, a new local symbol table is created for that call." msgstr "" @@ -369,21 +369,21 @@ msgstr "" #: ../../tutorial/controlflow.rst:306 msgid "" -"Coming from other languages, you might object that ``fib`` is not a function" -" but a procedure since it doesn't return a value. In fact, even functions " +"Coming from other languages, you might object that ``fib`` is not a function " +"but a procedure since it doesn't return a value. In fact, even functions " "without a :keyword:`return` statement do return a value, albeit a rather " "boring one. This value is called ``None`` (it's a built-in name). Writing " "the value ``None`` is normally suppressed by the interpreter if it would be " -"the only value written. You can see it if you really want to using " -":func:`print`::" +"the only value written. You can see it if you really want to using :func:" +"`print`::" msgstr "" "Conhecendo outras linguagens, pode-se questionar que ``fib`` não é uma " "função, mas um procedimento, pois ela não devolve um valor. Na verdade, " "mesmo funções que não usam o comando :keyword:`return` devolvem um valor, " "ainda que pouco interessante. Esse valor é chamado ``None`` (é um nome " -"embutido). O interpretador interativo evita escrever ``None`` quando ele é o" -" único resultado de uma expressão. Mas se quiser vê-lo pode usar o comando " -":keyword:`print`::" +"embutido). O interpretador interativo evita escrever ``None`` quando ele é o " +"único resultado de uma expressão. Mas se quiser vê-lo pode usar o comando :" +"keyword:`print`::" #: ../../tutorial/controlflow.rst:317 msgid "" @@ -399,8 +399,8 @@ msgstr "Este exemplo demonstra novos recursos de Python:" #: ../../tutorial/controlflow.rst:335 msgid "" -"The :keyword:`return` statement returns with a value from a function. " -":keyword:`!return` without an expression argument returns ``None``. Falling " +"The :keyword:`return` statement returns with a value from a function. :" +"keyword:`!return` without an expression argument returns ``None``. Falling " "off the end of a function also returns ``None``." msgstr "" "A instrução :keyword:`return` finaliza a execução e retorna um valor da " @@ -410,28 +410,26 @@ msgstr "" #: ../../tutorial/controlflow.rst:339 msgid "" "The statement ``result.append(a)`` calls a *method* of the list object " -"``result``. A method is a function that 'belongs' to an object and is named" -" ``obj.methodname``, where ``obj`` is some object (this may be an " +"``result``. A method is a function that 'belongs' to an object and is named " +"``obj.methodname``, where ``obj`` is some object (this may be an " "expression), and ``methodname`` is the name of a method that is defined by " "the object's type. Different types define different methods. Methods of " "different types may have the same name without causing ambiguity. (It is " -"possible to define your own object types and methods, using *classes*, see " -":ref:`tut-classes`) The method :meth:`append` shown in the example is " -"defined for list objects; it adds a new element at the end of the list. In " -"this example it is equivalent to ``result = result + [a]``, but more " -"efficient." +"possible to define your own object types and methods, using *classes*, see :" +"ref:`tut-classes`) The method :meth:`append` shown in the example is defined " +"for list objects; it adds a new element at the end of the list. In this " +"example it is equivalent to ``result = result + [a]``, but more efficient." msgstr "" "A instrução ``result.append(a)`` chama um *método* do objeto lista " "``result``. Um método é uma função que 'pertence' a um objeto, e é chamada " "``obj.methodname``, onde ``obj`` é um objeto qualquer (pode ser uma " "expressão), e ``methodname`` é o nome de um método que foi definido pelo " "tipo do objeto. Tipos diferentes definem métodos diferentes. Métodos de " -"diferentes tipos podem ter o mesmo nome sem ambiguidade. (É possível definir" -" seus próprios tipos de objetos e métodos, utilizando *classes*, veja em " -":ref:`tut-classes`) O método :meth:`append`, mostrado no exemplo é definido " -"para objetos do tipo lista; adiciona um novo elemento ao final da lista. " -"Neste exemplo, ele equivale a ``result = result + [a]``, só que mais " -"eficiente." +"diferentes tipos podem ter o mesmo nome sem ambiguidade. (É possível definir " +"seus próprios tipos de objetos e métodos, utilizando *classes*, veja em :ref:" +"`tut-classes`) O método :meth:`append`, mostrado no exemplo é definido para " +"objetos do tipo lista; adiciona um novo elemento ao final da lista. Neste " +"exemplo, ele equivale a ``result = result + [a]``, só que mais eficiente." #: ../../tutorial/controlflow.rst:354 msgid "More on Defining Functions" @@ -439,8 +437,8 @@ msgstr "Mais sobre definição de funções" #: ../../tutorial/controlflow.rst:356 msgid "" -"It is also possible to define functions with a variable number of arguments." -" There are three forms, which can be combined." +"It is also possible to define functions with a variable number of arguments. " +"There are three forms, which can be combined." msgstr "" "É possível definir funções com um número variável de argumentos. Existem " "três formas, que podem ser combinadas." @@ -465,8 +463,7 @@ msgstr "Essa função pode ser chamada de várias formas:" #: ../../tutorial/controlflow.rst:383 msgid "" -"giving only the mandatory argument: ``ask_ok('Do you really want to " -"quit?')``" +"giving only the mandatory argument: ``ask_ok('Do you really want to quit?')``" msgstr "" "fornecendo apenas o argumento obrigatório: ``ask_ok('Do you really want to " "quit?')``" @@ -481,8 +478,8 @@ msgstr "" #: ../../tutorial/controlflow.rst:387 msgid "" -"or even giving all arguments: ``ask_ok('OK to overwrite the file?', 2, 'Come" -" on, only yes or no!')``" +"or even giving all arguments: ``ask_ok('OK to overwrite the file?', 2, 'Come " +"on, only yes or no!')``" msgstr "" "ou fornecendo todos os argumentos: ``ask_ok('OK to overwrite the file?', 2, " "'Come on, only yes or no!')``" @@ -509,15 +506,15 @@ msgstr "irá exibir ``5``." #: ../../tutorial/controlflow.rst:406 msgid "" -"**Important warning:** The default value is evaluated only once. This makes" -" a difference when the default is a mutable object such as a list, " +"**Important warning:** The default value is evaluated only once. This makes " +"a difference when the default is a mutable object such as a list, " "dictionary, or instances of most classes. For example, the following " "function accumulates the arguments passed to it on subsequent calls::" msgstr "" "**Aviso importante:** Valores padronizados são avaliados apenas uma vez. " "Isso faz diferença quando o valor é um objeto mutável, como uma lista, " -"dicionário, ou instâncias de classes. Por exemplo, a função a seguir acumula" -" os argumentos passados, nas chamadas subsequentes::" +"dicionário, ou instâncias de classes. Por exemplo, a função a seguir acumula " +"os argumentos passados, nas chamadas subsequentes::" #: ../../tutorial/controlflow.rst:419 msgid "This will print ::" @@ -525,8 +522,8 @@ msgstr "Isso exibirá::" #: ../../tutorial/controlflow.rst:425 msgid "" -"If you don't want the default to be shared between subsequent calls, you can" -" write the function like this instead::" +"If you don't want the default to be shared between subsequent calls, you can " +"write the function like this instead::" msgstr "" "Se não quiser que o valor padrão seja compartilhado entre chamadas " "subsequentes, pode reescrever a função assim::" @@ -561,12 +558,12 @@ msgstr "mas todas as formas a seguir seriam inválidas::" #: ../../tutorial/controlflow.rst:467 msgid "" "In a function call, keyword arguments must follow positional arguments. All " -"the keyword arguments passed must match one of the arguments accepted by the" -" function (e.g. ``actor`` is not a valid argument for the ``parrot`` " +"the keyword arguments passed must match one of the arguments accepted by the " +"function (e.g. ``actor`` is not a valid argument for the ``parrot`` " "function), and their order is not important. This also includes non-" -"optional arguments (e.g. ``parrot(voltage=1000)`` is valid too). No argument" -" may receive a value more than once. Here's an example that fails due to " -"this restriction::" +"optional arguments (e.g. ``parrot(voltage=1000)`` is valid too). No argument " +"may receive a value more than once. Here's an example that fails due to this " +"restriction::" msgstr "" "Numa chamada de função, argumentos nomeados devem vir depois dos argumentos " "posicionais. Todos os argumentos nomeados passados devem corresponder com " @@ -578,8 +575,8 @@ msgstr "" #: ../../tutorial/controlflow.rst:483 msgid "" -"When a final formal parameter of the form ``**name`` is present, it receives" -" a dictionary (see :ref:`typesmapping`) containing all keyword arguments " +"When a final formal parameter of the form ``**name`` is present, it receives " +"a dictionary (see :ref:`typesmapping`) containing all keyword arguments " "except for those corresponding to a formal parameter. This may be combined " "with a formal parameter of the form ``*name`` (described in the next " "subsection) which receives a :ref:`tuple ` containing the " @@ -587,9 +584,9 @@ msgid "" "occur before ``**name``.) For example, if we define a function like this::" msgstr "" "Quando um último parâmetro formal no formato ``**name`` está presente, ele " -"recebe um dicionário (veja :ref:`typesmapping`) contendo todos os argumentos" -" nomeados, exceto aqueles que correspondem a um parâmetro formal. Isto pode" -" ser combinado com um parâmetro formal no formato ``*name`` (descrito na " +"recebe um dicionário (veja :ref:`typesmapping`) contendo todos os argumentos " +"nomeados, exceto aqueles que correspondem a um parâmetro formal. Isto pode " +"ser combinado com um parâmetro formal no formato ``*name`` (descrito na " "próxima subseção) que recebe uma :ref:`tuple ` contendo os " "argumentos posicionais, além da lista de parâmetros formais. (``*name`` " "deve ocorrer antes de ``**name``.) Por exemplo, se definirmos uma função " @@ -605,8 +602,8 @@ msgstr "e, claro, exibiria:" #: ../../tutorial/controlflow.rst:521 msgid "" -"Note that the order in which the keyword arguments are printed is guaranteed" -" to match the order in which they were provided in the function call." +"Note that the order in which the keyword arguments are printed is guaranteed " +"to match the order in which they were provided in the function call." msgstr "" "Observe que a ordem em que os argumentos nomeados são exibidos é garantida " "corresponder à ordem em que foram fornecidos na chamada da função." @@ -632,8 +629,8 @@ msgid "" "Normally, these ``variadic`` arguments will be last in the list of formal " "parameters, because they scoop up all remaining input arguments that are " "passed to the function. Any formal parameters which occur after the " -"``*args`` parameter are 'keyword-only' arguments, meaning that they can only" -" be used as keywords rather than positional arguments. ::" +"``*args`` parameter are 'keyword-only' arguments, meaning that they can only " +"be used as keywords rather than positional arguments. ::" msgstr "" "Normalmente, esses argumentos ``variadic`` estarão no final da lista de " "parâmetros formais, porque eles englobam todos os argumentos de entrada " @@ -657,8 +654,8 @@ msgid "" msgstr "" "A situação contrária ocorre quando os argumentos já estão numa lista ou " "tupla, mas precisam ser desempacotados, para chamar uma função que requer " -"argumentos posicionais. Por exemplo, a função embutida :func:`range` espera" -" argumentos separados *start* e *stop*. Se eles não estão disponíveis " +"argumentos posicionais. Por exemplo, a função embutida :func:`range` espera " +"argumentos separados *start* e *stop*. Se eles não estão disponíveis " "separadamente, escreva a chamada da função com o operador ``*`` para " "desempacotar os argumentos da lista ou tupla::" @@ -676,29 +673,29 @@ msgstr "Expressões lambda" #: ../../tutorial/controlflow.rst:595 msgid "" -"Small anonymous functions can be created with the :keyword:`lambda` keyword." -" This function returns the sum of its two arguments: ``lambda a, b: a+b``. " +"Small anonymous functions can be created with the :keyword:`lambda` keyword. " +"This function returns the sum of its two arguments: ``lambda a, b: a+b``. " "Lambda functions can be used wherever function objects are required. They " -"are syntactically restricted to a single expression. Semantically, they are" -" just syntactic sugar for a normal function definition. Like nested " -"function definitions, lambda functions can reference variables from the " -"containing scope::" -msgstr "" -"Pequenas funções anônimas podem ser criadas com a palavra-chave " -":keyword:`lambda`. Esta função retorna a soma de seus dois argumentos: " -"``lambda a, b: a+b``. As funções Lambda podem ser usadas sempre que objetos " -"função forem necessários. Eles são sintaticamente restritos a uma única " -"expressão. Semanticamente, eles são apenas açúcar sintático para uma " -"definição de função normal. Como definições de funções aninhadas, as funções" -" lambda podem referenciar variáveis contidas no escopo::" +"are syntactically restricted to a single expression. Semantically, they are " +"just syntactic sugar for a normal function definition. Like nested function " +"definitions, lambda functions can reference variables from the containing " +"scope::" +msgstr "" +"Pequenas funções anônimas podem ser criadas com a palavra-chave :keyword:" +"`lambda`. Esta função retorna a soma de seus dois argumentos: ``lambda a, b: " +"a+b``. As funções Lambda podem ser usadas sempre que objetos função forem " +"necessários. Eles são sintaticamente restritos a uma única expressão. " +"Semanticamente, eles são apenas açúcar sintático para uma definição de " +"função normal. Como definições de funções aninhadas, as funções lambda podem " +"referenciar variáveis contidas no escopo::" #: ../../tutorial/controlflow.rst:612 msgid "" "The above example uses a lambda expression to return a function. Another " "use is to pass a small function as an argument::" msgstr "" -"O exemplo acima usa uma expressão lambda para retornar uma função. Outro uso" -" é passar uma pequena função como um argumento::" +"O exemplo acima usa uma expressão lambda para retornar uma função. Outro uso " +"é passar uma pequena função como um argumento::" #: ../../tutorial/controlflow.rst:624 msgid "Documentation Strings" @@ -721,41 +718,41 @@ msgid "" "with a capital letter and end with a period." msgstr "" "A primeira linha deve sempre ser curta, um resumo conciso do propósito do " -"objeto. Por brevidade, não deve explicitamente se referir ao nome ou tipo do" -" objeto, uma vez que estas informações estão disponíveis por outros meios " -"(exceto se o nome da função for o próprio verbo que descreve a finalidade da" -" função). Essa linha deve começar com letra maiúscula e terminar com ponto." +"objeto. Por brevidade, não deve explicitamente se referir ao nome ou tipo do " +"objeto, uma vez que estas informações estão disponíveis por outros meios " +"(exceto se o nome da função for o próprio verbo que descreve a finalidade da " +"função). Essa linha deve começar com letra maiúscula e terminar com ponto." #: ../../tutorial/controlflow.rst:640 msgid "" "If there are more lines in the documentation string, the second line should " -"be blank, visually separating the summary from the rest of the description." -" The following lines should be one or more paragraphs describing the " -"object's calling conventions, its side effects, etc." +"be blank, visually separating the summary from the rest of the description. " +"The following lines should be one or more paragraphs describing the object's " +"calling conventions, its side effects, etc." msgstr "" -"Se existem mais linhas na string de documentação, a segunda linha deve estar" -" em branco, separando visualmente o resumo do resto da descrição. As linhas " +"Se existem mais linhas na string de documentação, a segunda linha deve estar " +"em branco, separando visualmente o resumo do resto da descrição. As linhas " "seguintes devem conter um ou mais parágrafos descrevendo as convenções de " "chamada ao objeto, seus efeitos colaterais, etc." #: ../../tutorial/controlflow.rst:645 msgid "" -"The Python parser does not strip indentation from multi-line string literals" -" in Python, so tools that process documentation have to strip indentation if" -" desired. This is done using the following convention. The first non-blank " +"The Python parser does not strip indentation from multi-line string literals " +"in Python, so tools that process documentation have to strip indentation if " +"desired. This is done using the following convention. The first non-blank " "line *after* the first line of the string determines the amount of " "indentation for the entire documentation string. (We can't use the first " "line since it is generally adjacent to the string's opening quotes so its " -"indentation is not apparent in the string literal.) Whitespace " -"\"equivalent\" to this indentation is then stripped from the start of all " -"lines of the string. Lines that are indented less should not occur, but if " -"they occur all their leading whitespace should be stripped. Equivalence of " -"whitespace should be tested after expansion of tabs (to 8 spaces, normally)." +"indentation is not apparent in the string literal.) Whitespace \"equivalent" +"\" to this indentation is then stripped from the start of all lines of the " +"string. Lines that are indented less should not occur, but if they occur " +"all their leading whitespace should be stripped. Equivalence of whitespace " +"should be tested after expansion of tabs (to 8 spaces, normally)." msgstr "" "O analisador Python não remove a indentação de literais string multi-linha. " "Portanto, ferramentas que processem strings de documentação precisam lidar " -"com isso, quando desejável. Existe uma convenção para isso. A primeira linha" -" não vazia após a linha de sumário determina a indentação para o resto da " +"com isso, quando desejável. Existe uma convenção para isso. A primeira linha " +"não vazia após a linha de sumário determina a indentação para o resto da " "string de documentação. (Não podemos usar a primeira linha para isso porque " "ela em geral está adjacente às aspas que iniciam a string, portanto sua " "indentação real não fica aparente.) Espaços em branco \"equivalentes\" a " @@ -784,25 +781,24 @@ msgstr "" #: ../../tutorial/controlflow.rst:687 msgid "" -":term:`Annotations ` are stored in the " -":attr:`__annotations__` attribute of the function as a dictionary and have " -"no effect on any other part of the function. Parameter annotations are " -"defined by a colon after the parameter name, followed by an expression " -"evaluating to the value of the annotation. Return annotations are defined " -"by a literal ``->``, followed by an expression, between the parameter list " -"and the colon denoting the end of the :keyword:`def` statement. The " -"following example has a positional argument, a keyword argument, and the " -"return value annotated::" -msgstr "" -":term:`Annotations ` são armazenadas no atributo " -":attr:`__annotations__` da função, como um dicionário, e não tem efeito em " -"nenhuma otra parte da função. Anotações nos parâmetros são definidas por um" -" dois-pontos após o nome do parâmetro, seguido por uma expressão que " -"representa o valor da anotação. Anotações de retorno são definidas pelo " -"literal ``->``, seguido por uma expressão, entre a lista de parâmetros e os " -"dois-pontos que indica o final do comando :keyword:`def`. O exemplo a " -"seguir tem um argumento posicional, um argumento nomeado e o seu valor de " -"retorno está anotado::" +":term:`Annotations ` are stored in the :attr:" +"`__annotations__` attribute of the function as a dictionary and have no " +"effect on any other part of the function. Parameter annotations are defined " +"by a colon after the parameter name, followed by an expression evaluating to " +"the value of the annotation. Return annotations are defined by a literal ``-" +">``, followed by an expression, between the parameter list and the colon " +"denoting the end of the :keyword:`def` statement. The following example has " +"a positional argument, a keyword argument, and the return value annotated::" +msgstr "" +":term:`Annotations ` são armazenadas no atributo :attr:" +"`__annotations__` da função, como um dicionário, e não tem efeito em nenhuma " +"otra parte da função. Anotações nos parâmetros são definidas por um dois-" +"pontos após o nome do parâmetro, seguido por uma expressão que representa o " +"valor da anotação. Anotações de retorno são definidas pelo literal ``->``, " +"seguido por uma expressão, entre a lista de parâmetros e os dois-pontos que " +"indica o final do comando :keyword:`def`. O exemplo a seguir tem um " +"argumento posicional, um argumento nomeado e o seu valor de retorno está " +"anotado::" #: ../../tutorial/controlflow.rst:709 msgid "Intermezzo: Coding Style" @@ -810,14 +806,14 @@ msgstr "Intermezzo: estilo de codificação" #: ../../tutorial/controlflow.rst:714 msgid "" -"Now that you are about to write longer, more complex pieces of Python, it is" -" a good time to talk about *coding style*. Most languages can be written " -"(or more concise, *formatted*) in different styles; some are more readable " -"than others. Making it easy for others to read your code is always a good " -"idea, and adopting a nice coding style helps tremendously for that." +"Now that you are about to write longer, more complex pieces of Python, it is " +"a good time to talk about *coding style*. Most languages can be written (or " +"more concise, *formatted*) in different styles; some are more readable than " +"others. Making it easy for others to read your code is always a good idea, " +"and adopting a nice coding style helps tremendously for that." msgstr "" -"Agora que está prestes a escrever códigos mais longos e complexos em Python," -" é um bom momento para falar sobre *estilo de codificação*. A maioria das " +"Agora que está prestes a escrever códigos mais longos e complexos em Python, " +"é um bom momento para falar sobre *estilo de codificação*. A maioria das " "linguagens podem ser escritas (ou *formatadas*) em diferentes estilos; " "alguns são mais legíveis do que outros. Tornar o seu código mais fácil de " "ler, para os outros, é sempre uma boa ideia, e adotar um estilo de " @@ -826,8 +822,8 @@ msgstr "" #: ../../tutorial/controlflow.rst:720 msgid "" "For Python, :pep:`8` has emerged as the style guide that most projects " -"adhere to; it promotes a very readable and eye-pleasing coding style. Every" -" Python developer should read it at some point; here are the most important " +"adhere to; it promotes a very readable and eye-pleasing coding style. Every " +"Python developer should read it at some point; here are the most important " "points extracted for you:" msgstr "" "Em Python, o :pep:`8` tornou-se o guia de estilo adotado pela maioria dos " @@ -863,8 +859,8 @@ msgstr "" #: ../../tutorial/controlflow.rst:736 msgid "" -"Use blank lines to separate functions and classes, and larger blocks of code" -" inside functions." +"Use blank lines to separate functions and classes, and larger blocks of code " +"inside functions." msgstr "" "Deixe linhas em branco para separar funções e classes, e blocos de código " "dentro de funções." @@ -889,8 +885,8 @@ msgstr "" msgid "" "Name your classes and functions consistently; the convention is to use " "``UpperCamelCase`` for classes and ``lowercase_with_underscores`` for " -"functions and methods. Always use ``self`` as the name for the first method" -" argument (see :ref:`tut-firstclasses` for more on classes and methods)." +"functions and methods. Always use ``self`` as the name for the first method " +"argument (see :ref:`tut-firstclasses` for more on classes and methods)." msgstr "" "Nomeie suas classes e funções de forma consistente; a convenção é usar " "``MaiusculoCamelCase`` para classes e ``minusculo_com_underscores`` para " @@ -901,8 +897,8 @@ msgstr "" #: ../../tutorial/controlflow.rst:751 msgid "" "Don't use fancy encodings if your code is meant to be used in international " -"environments. Python's default, UTF-8, or even plain ASCII work best in any" -" case." +"environments. Python's default, UTF-8, or even plain ASCII work best in any " +"case." msgstr "" "Não use codificações exóticas se o seu código é feito para ser usado em um " "contexto internacional. O padrão do Python, UTF-8, ou mesmo ASCII puro " @@ -910,13 +906,13 @@ msgstr "" #: ../../tutorial/controlflow.rst:755 msgid "" -"Likewise, don't use non-ASCII characters in identifiers if there is only the" -" slightest chance people speaking a different language will read or maintain" -" the code." +"Likewise, don't use non-ASCII characters in identifiers if there is only the " +"slightest chance people speaking a different language will read or maintain " +"the code." msgstr "" "Da mesma forma, não use caracteres não-ASCII em identificadores se houver " -"apenas a menor chance de pessoas falando um idioma diferente ler ou manter o" -" código." +"apenas a menor chance de pessoas falando um idioma diferente ler ou manter o " +"código." #: ../../tutorial/controlflow.rst:761 msgid "Footnotes" @@ -924,9 +920,9 @@ msgstr "Notas de rodapé" #: ../../tutorial/controlflow.rst:762 msgid "" -"Actually, *call by object reference* would be a better description, since if" -" a mutable object is passed, the caller will see any changes the callee " -"makes to it (items inserted into a list)." +"Actually, *call by object reference* would be a better description, since if " +"a mutable object is passed, the caller will see any changes the callee makes " +"to it (items inserted into a list)." msgstr "" "Na verdade, *passagem por referência para objeto* seria uma descrição " "melhor, pois, se um objeto mutável for passado, quem chamou verá as " diff --git a/tutorial/datastructures.po b/tutorial/datastructures.po index 5d91ab89f..006583887 100644 --- a/tutorial/datastructures.po +++ b/tutorial/datastructures.po @@ -1,24 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Cauê Baasch de Souza , 2019 # Victor Matheus Castro , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -56,8 +57,8 @@ msgstr "Adiciona um item ao fim da lista. Equivalente a ``a[len(a):] = [x]``." #: ../../tutorial/datastructures.rst:28 msgid "" -"Extend the list by appending all the items from the iterable. Equivalent to" -" ``a[len(a):] = iterable``." +"Extend the list by appending all the items from the iterable. Equivalent to " +"``a[len(a):] = iterable``." msgstr "" "Prolonga a lista, adicionando no fim todos os elementos do argumento " "`iterable` passado como parâmetro. Equivalente a ``a[len(a):] = iterable``." @@ -92,8 +93,8 @@ msgid "" msgstr "" "Remove um item em uma dada posição na lista e o retorna. Se nenhum índice é " "especificado, ``a.pop()`` remove e retorna o último item da lista. (Os " -"colchetes ao redor do *i* na demonstração do método indica que o parâmetro é" -" opcional, e não que é necessário escrever estes colchetes ao chamar o " +"colchetes ao redor do *i* na demonstração do método indica que o parâmetro é " +"opcional, e não que é necessário escrever estes colchetes ao chamar o " "método. Você verá este tipo de notação frequentemente na Biblioteca de " "Referência Python.)" @@ -112,9 +113,9 @@ msgstr "" #: ../../tutorial/datastructures.rst:69 msgid "" "The optional arguments *start* and *end* are interpreted as in the slice " -"notation and are used to limit the search to a particular subsequence of the" -" list. The returned index is computed relative to the beginning of the full" -" sequence rather than the *start* argument." +"notation and are used to limit the search to a particular subsequence of the " +"list. The returned index is computed relative to the beginning of the full " +"sequence rather than the *start* argument." msgstr "" "Os argumentos opcionais *start* e *end* são interpretados como nas notações " "de fatiamento e são usados para limitar a busca para uma subsequência " @@ -130,8 +131,8 @@ msgid "" "Sort the items of the list in place (the arguments can be used for sort " "customization, see :func:`sorted` for their explanation)." msgstr "" -"Ordena os itens na lista (os argumentos podem ser usados para personalizar a" -" ordenação, veja a função :func:`sorted` para maiores explicações)." +"Ordena os itens na lista (os argumentos podem ser usados para personalizar a " +"ordenação, veja a função :func:`sorted` para maiores explicações)." #: ../../tutorial/datastructures.rst:91 msgid "Reverse the elements of the list in place." @@ -152,8 +153,8 @@ msgid "" "default ``None``. [1]_ This is a design principle for all mutable data " "structures in Python." msgstr "" -"Você pode ter percebido que métodos como ``insert``, ``remove`` ou ``sort``," -" que apenas modificam a lista, não têm valor de retorno impresso -- eles " +"Você pode ter percebido que métodos como ``insert``, ``remove`` ou ``sort``, " +"que apenas modificam a lista, não têm valor de retorno impresso -- eles " "retornam o ``None`` padrão. [1]_ Isto é um princípio de design para todas " "as estruturas de dados mutáveis em Python." @@ -170,9 +171,9 @@ msgid "" "For example::" msgstr "" "Os métodos de lista tornam muito fácil utilizar listas como pilhas, onde o " -"item adicionado por último é o primeiro a ser recuperado (política “último a" -" entrar, primeiro a sair”). Para adicionar um item ao topo da pilha, use " -":meth:`append`. Para recuperar um item do topo da pilha use :meth:`pop` sem " +"item adicionado por último é o primeiro a ser recuperado (política “último a " +"entrar, primeiro a sair”). Para adicionar um item ao topo da pilha, use :" +"meth:`append`. Para recuperar um item do topo da pilha use :meth:`pop` sem " "nenhum índice. Por exemplo::" #: ../../tutorial/datastructures.rst:162 @@ -182,9 +183,9 @@ msgstr "Usando listas como filas" #: ../../tutorial/datastructures.rst:166 msgid "" "It is also possible to use a list as a queue, where the first element added " -"is the first element retrieved (\"first-in, first-out\"); however, lists are" -" not efficient for this purpose. While appends and pops from the end of " -"list are fast, doing inserts or pops from the beginning of a list is slow " +"is the first element retrieved (\"first-in, first-out\"); however, lists are " +"not efficient for this purpose. While appends and pops from the end of list " +"are fast, doing inserts or pops from the beginning of a list is slow " "(because all of the other elements have to be shifted by one)." msgstr "" "Você também pode usar uma lista como uma fila, onde o primeiro item " @@ -200,8 +201,8 @@ msgid "" "have fast appends and pops from both ends. For example::" msgstr "" "Para implementar uma fila, use a classe :class:`collections.deque` que foi " -"projetada para permitir *appends* e *pops* eficientes nas duas extremidades." -" Por exemplo::" +"projetada para permitir *appends* e *pops* eficientes nas duas extremidades. " +"Por exemplo::" #: ../../tutorial/datastructures.rst:190 msgid "List Comprehensions" @@ -215,11 +216,11 @@ msgid "" "create a subsequence of those elements that satisfy a certain condition." msgstr "" "Compreensões de lista fornece uma maneira concisa de criar uma lista. " -"Aplicações comuns são criar novas listas onde cada elemento é o resultado de" -" alguma operação aplicada a cada elemento de outra sequência ou iterável, ou" -" criar uma subsequência de elementos que satisfaçam uma certa condição. " -"(N.d.T. o termo original em inglês é *list comprehensions*, muito utilizado " -"no Brasil; também se usa a abreviação *listcomp*)." +"Aplicações comuns são criar novas listas onde cada elemento é o resultado de " +"alguma operação aplicada a cada elemento de outra sequência ou iterável, ou " +"criar uma subsequência de elementos que satisfaçam uma certa condição. (N.d." +"T. o termo original em inglês é *list comprehensions*, muito utilizado no " +"Brasil; também se usa a abreviação *listcomp*)." #: ../../tutorial/datastructures.rst:197 msgid "For example, assume we want to create a list of squares, like::" @@ -247,17 +248,17 @@ msgstr "que é mais conciso e legível." #: ../../tutorial/datastructures.rst:218 msgid "" "A list comprehension consists of brackets containing an expression followed " -"by a :keyword:`!for` clause, then zero or more :keyword:`!for` or " -":keyword:`!if` clauses. The result will be a new list resulting from " -"evaluating the expression in the context of the :keyword:`!for` and " -":keyword:`!if` clauses which follow it. For example, this listcomp combines " -"the elements of two lists if they are not equal::" +"by a :keyword:`!for` clause, then zero or more :keyword:`!for` or :keyword:`!" +"if` clauses. The result will be a new list resulting from evaluating the " +"expression in the context of the :keyword:`!for` and :keyword:`!if` clauses " +"which follow it. For example, this listcomp combines the elements of two " +"lists if they are not equal::" msgstr "" "Um compreensão de lista consiste de um par de colchetes contendo uma " "expressão seguida de uma cláusula :keyword:`!for`, e então zero ou mais " "cláusulas :keyword:`!for` ou :keyword:`!if`. O resultado será uma nova " -"lista resultante da avaliação da expressão no contexto das cláusulas " -":keyword:`!for` e :keyword:`!if`. Por exemplo, essa compreensão combina os " +"lista resultante da avaliação da expressão no contexto das cláusulas :" +"keyword:`!for` e :keyword:`!if`. Por exemplo, essa compreensão combina os " "elementos de duas listas se eles forem diferentes::" #: ../../tutorial/datastructures.rst:228 @@ -266,11 +267,11 @@ msgstr "e é equivalente a::" #: ../../tutorial/datastructures.rst:239 msgid "" -"Note how the order of the :keyword:`for` and :keyword:`if` statements is the" -" same in both these snippets." +"Note how the order of the :keyword:`for` and :keyword:`if` statements is the " +"same in both these snippets." msgstr "" -"Note como a ordem das instruções :keyword:`for` e :keyword:`if` é a mesma em" -" ambos os trechos." +"Note como a ordem das instruções :keyword:`for` e :keyword:`if` é a mesma em " +"ambos os trechos." #: ../../tutorial/datastructures.rst:242 msgid "" @@ -284,8 +285,7 @@ msgstr "" msgid "" "List comprehensions can contain complex expressions and nested functions::" msgstr "" -"Compreensões de lista podem conter expressões complexas e funções " -"aninhadas::" +"Compreensões de lista podem conter expressões complexas e funções aninhadas::" #: ../../tutorial/datastructures.rst:280 msgid "Nested List Comprehensions" @@ -314,11 +314,11 @@ msgstr "A compreensão de listas abaixo transpõe as linhas e colunas::" #: ../../tutorial/datastructures.rst:299 msgid "" "As we saw in the previous section, the nested listcomp is evaluated in the " -"context of the :keyword:`for` that follows it, so this example is equivalent" -" to::" +"context of the :keyword:`for` that follows it, so this example is equivalent " +"to::" msgstr "" -"Como vimos na seção anterior, a compreensão de lista aninhada é computada no" -" contexto da cláusula :keyword:`for` seguinte, portanto o exemplo acima " +"Como vimos na seção anterior, a compreensão de lista aninhada é computada no " +"contexto da cláusula :keyword:`for` seguinte, portanto o exemplo acima " "equivale a::" #: ../../tutorial/datastructures.rst:310 @@ -328,8 +328,7 @@ msgstr "e isso, por sua vez, faz o mesmo que isto::" #: ../../tutorial/datastructures.rst:323 msgid "" "In the real world, you should prefer built-in functions to complex flow " -"statements. The :func:`zip` function would do a great job for this use " -"case::" +"statements. The :func:`zip` function would do a great job for this use case::" msgstr "" "Na prática, você deve dar preferência a funções embutidas em vez de " "expressões complexas. A função :func:`zip` resolve muito bem este caso de " @@ -355,11 +354,10 @@ msgid "" "earlier by assignment of an empty list to the slice). For example::" msgstr "" "Existe uma maneira de remover um item de uma lista usando seu índice no " -"lugar do seu valor: a instrução :keyword:`del`. Ele difere do método " -":meth:`pop` que retorna um valor. A instrução :keyword:`!del` pode também " -"ser utilizada para remover fatias de uma lista ou limpar a lista inteira " -"(que fizemos antes atribuindo uma lista vazia à fatia ``a[:]``). Por " -"exemplo:: " +"lugar do seu valor: a instrução :keyword:`del`. Ele difere do método :meth:" +"`pop` que retorna um valor. A instrução :keyword:`!del` pode também ser " +"utilizada para remover fatias de uma lista ou limpar a lista inteira (que " +"fizemos antes atribuindo uma lista vazia à fatia ``a[:]``). Por exemplo:: " #: ../../tutorial/datastructures.rst:353 msgid ":keyword:`del` can also be used to delete entire variables::" @@ -372,8 +370,8 @@ msgid "" "value is assigned to it). We'll find other uses for :keyword:`del` later." msgstr "" "Referenciar a variável ``a`` depois de sua remoção constitui erro (pelo " -"menos até que seja feita uma nova atribuição para ela). Encontraremos outros" -" usos para a instrução :keyword:`del` mais tarde." +"menos até que seja feita uma nova atribuição para ela). Encontraremos outros " +"usos para a instrução :keyword:`del` mais tarde." #: ../../tutorial/datastructures.rst:364 msgid "Tuples and Sequences" @@ -382,14 +380,14 @@ msgstr "Tuplas e Sequências" #: ../../tutorial/datastructures.rst:366 msgid "" "We saw that lists and strings have many common properties, such as indexing " -"and slicing operations. They are two examples of *sequence* data types (see" -" :ref:`typesseq`). Since Python is an evolving language, other sequence " -"data types may be added. There is also another standard sequence data type:" -" the *tuple*." +"and slicing operations. They are two examples of *sequence* data types " +"(see :ref:`typesseq`). Since Python is an evolving language, other sequence " +"data types may be added. There is also another standard sequence data type: " +"the *tuple*." msgstr "" "Vimos que listas e strings têm muitas propriedades em comum, como indexação " -"e operações de fatiamento. Elas são dois exemplos de *sequências* (veja " -":ref:`typesseq`). Como Python é uma linguagem em evolução, outros tipos de " +"e operações de fatiamento. Elas são dois exemplos de *sequências* (veja :ref:" +"`typesseq`). Como Python é uma linguagem em evolução, outros tipos de " "sequências podem ser adicionados. Existe ainda um outro tipo de sequência " "padrão na linguagem: a *tupla*." @@ -404,15 +402,15 @@ msgstr "" msgid "" "As you see, on output tuples are always enclosed in parentheses, so that " "nested tuples are interpreted correctly; they may be input with or without " -"surrounding parentheses, although often parentheses are necessary anyway (if" -" the tuple is part of a larger expression). It is not possible to assign to" -" the individual items of a tuple, however it is possible to create tuples " +"surrounding parentheses, although often parentheses are necessary anyway (if " +"the tuple is part of a larger expression). It is not possible to assign to " +"the individual items of a tuple, however it is possible to create tuples " "which contain mutable objects, such as lists." msgstr "" -"Como você pode ver no trecho acima, na saída do console as tuplas são sempre" -" envolvidas por parênteses, assim tuplas aninhadas podem ser lidas " -"corretamente. Na criação, tuplas podem ser envolvidas ou não por parênteses," -" desde que o contexto não exija os parênteses (como no caso da tupla dentro " +"Como você pode ver no trecho acima, na saída do console as tuplas são sempre " +"envolvidas por parênteses, assim tuplas aninhadas podem ser lidas " +"corretamente. Na criação, tuplas podem ser envolvidas ou não por parênteses, " +"desde que o contexto não exija os parênteses (como no caso da tupla dentro " "de uma expressão maior). Não é possível atribuir itens individuais de uma " "tupla, contudo é possível criar tuplas que contenham objetos mutáveis, como " "listas." @@ -423,13 +421,13 @@ msgid "" "situations and for different purposes. Tuples are :term:`immutable`, and " "usually contain a heterogeneous sequence of elements that are accessed via " "unpacking (see later in this section) or indexing (or even by attribute in " -"the case of :func:`namedtuples `). Lists are " -":term:`mutable`, and their elements are usually homogeneous and are accessed" -" by iterating over the list." +"the case of :func:`namedtuples `). Lists are :term:" +"`mutable`, and their elements are usually homogeneous and are accessed by " +"iterating over the list." msgstr "" "Apesar de tuplas serem similares a listas, elas são frequentemente " -"utilizadas em situações diferentes e com propósitos distintos. Tuplas são " -":term:`imutáveis `, e usualmente contém uma sequência heterogênea " +"utilizadas em situações diferentes e com propósitos distintos. Tuplas são :" +"term:`imutáveis `, e usualmente contém uma sequência heterogênea " "de elementos que são acessados via desempacotamento (ver a seguir nessa " "seção) ou índice (ou mesmo por um atributo no caso de :func:`namedtuples " "`). Listas são :term:`mutáveis `, e seus " @@ -437,8 +435,8 @@ msgstr "" #: ../../tutorial/datastructures.rst:409 msgid "" -"A special problem is the construction of tuples containing 0 or 1 items: the" -" syntax has some extra quirks to accommodate these. Empty tuples are " +"A special problem is the construction of tuples containing 0 or 1 items: the " +"syntax has some extra quirks to accommodate these. Empty tuples are " "constructed by an empty pair of parentheses; a tuple with one item is " "constructed by following a value with a comma (it is not sufficient to " "enclose a single value in parentheses). Ugly, but effective. For example::" @@ -446,8 +444,8 @@ msgstr "" "Um problema especial é a criação de tuplas contendo 0 ou 1 itens: a sintaxe " "usa certos truques para acomodar estes casos. Tuplas vazias são construídas " "por uma par de parênteses vazios; uma tupla unitária é construída por um " -"único valor e uma vírgula entre parênteses (não basta colocar um único valor" -" entre parênteses). Feio, mas funciona. Por exemplo::" +"único valor e uma vírgula entre parênteses (não basta colocar um único valor " +"entre parênteses). Feio, mas funciona. Por exemplo::" #: ../../tutorial/datastructures.rst:424 msgid "" @@ -461,11 +459,11 @@ msgstr "" #: ../../tutorial/datastructures.rst:430 msgid "" -"This is called, appropriately enough, *sequence unpacking* and works for any" -" sequence on the right-hand side. Sequence unpacking requires that there " -"are as many variables on the left side of the equals sign as there are " -"elements in the sequence. Note that multiple assignment is really just a " -"combination of tuple packing and sequence unpacking." +"This is called, appropriately enough, *sequence unpacking* and works for any " +"sequence on the right-hand side. Sequence unpacking requires that there are " +"as many variables on the left side of the equals sign as there are elements " +"in the sequence. Note that multiple assignment is really just a combination " +"of tuple packing and sequence unpacking." msgstr "" "Isso é chamado, apropriadamente, de *sequência de desempacotamento* e " "funciona para qualquer sequência no lado direito. O desempacotamento de " @@ -523,16 +521,16 @@ msgstr "Dicionários" #: ../../tutorial/datastructures.rst:489 msgid "" -"Another useful data type built into Python is the *dictionary* (see " -":ref:`typesmapping`). Dictionaries are sometimes found in other languages as" -" \"associative memories\" or \"associative arrays\". Unlike sequences, " -"which are indexed by a range of numbers, dictionaries are indexed by *keys*," -" which can be any immutable type; strings and numbers can always be keys. " -"Tuples can be used as keys if they contain only strings, numbers, or tuples;" -" if a tuple contains any mutable object either directly or indirectly, it " -"cannot be used as a key. You can't use lists as keys, since lists can be " -"modified in place using index assignments, slice assignments, or methods " -"like :meth:`append` and :meth:`extend`." +"Another useful data type built into Python is the *dictionary* (see :ref:" +"`typesmapping`). Dictionaries are sometimes found in other languages as " +"\"associative memories\" or \"associative arrays\". Unlike sequences, which " +"are indexed by a range of numbers, dictionaries are indexed by *keys*, which " +"can be any immutable type; strings and numbers can always be keys. Tuples " +"can be used as keys if they contain only strings, numbers, or tuples; if a " +"tuple contains any mutable object either directly or indirectly, it cannot " +"be used as a key. You can't use lists as keys, since lists can be modified " +"in place using index assignments, slice assignments, or methods like :meth:" +"`append` and :meth:`extend`." msgstr "" "Outra estrutura de dados muito útil embutida em Python é o *dicionário*, " "cujo tipo é ``dict`` (ver :ref:`typesmapping`). Dicionários são também " @@ -543,13 +541,13 @@ msgstr "" "contiverem apenas strings, inteiros ou outras tuplas. Se a tupla contiver, " "direta ou indiretamente, qualquer valor mutável, não poderá ser chave. " "Listas não podem ser usadas como chaves porque podem ser modificadas " -"*internamente* pela atribuição em índices ou fatias, e por métodos como " -":meth:`append` e :meth:`extend`." +"*internamente* pela atribuição em índices ou fatias, e por métodos como :" +"meth:`append` e :meth:`extend`." #: ../../tutorial/datastructures.rst:500 msgid "" -"It is best to think of a dictionary as a set of *key: value* pairs, with the" -" requirement that the keys are unique (within one dictionary). A pair of " +"It is best to think of a dictionary as a set of *key: value* pairs, with the " +"requirement that the keys are unique (within one dictionary). A pair of " "braces creates an empty dictionary: ``{}``. Placing a comma-separated list " "of key:value pairs within the braces adds initial key:value pairs to the " "dictionary; this is also the way dictionaries are written on output." @@ -558,19 +556,19 @@ msgstr "" "de pares *chave: valor*, onde as chaves são únicas em uma dada instância do " "dicionário. Dicionários são delimitados por chaves: ``{}``, e contém uma " "lista de pares chave:valor separada por vírgulas. Dessa forma também será " -"exibido o conteúdo de um dicionário no console do Python. O dicionário vazio" -" é ``{}``." +"exibido o conteúdo de um dicionário no console do Python. O dicionário vazio " +"é ``{}``." #: ../../tutorial/datastructures.rst:506 msgid "" "The main operations on a dictionary are storing a value with some key and " -"extracting the value given the key. It is also possible to delete a " -"key:value pair with ``del``. If you store using a key that is already in " -"use, the old value associated with that key is forgotten. It is an error to" -" extract a value using a non-existent key." +"extracting the value given the key. It is also possible to delete a key:" +"value pair with ``del``. If you store using a key that is already in use, " +"the old value associated with that key is forgotten. It is an error to " +"extract a value using a non-existent key." msgstr "" -"As principais operações em um dicionário são armazenar e recuperar valores a" -" partir de chaves. Também é possível remover um par *chave:valor* com o " +"As principais operações em um dicionário são armazenar e recuperar valores a " +"partir de chaves. Também é possível remover um par *chave:valor* com o " "comando ``del``. Se você armazenar um valor utilizando uma chave já " "presente, o antigo valor será substituído pelo novo. Se tentar recuperar um " "valor usando uma chave inexistente, será gerado um erro." @@ -640,25 +638,25 @@ msgid "" "To loop over two or more sequences at the same time, the entries can be " "paired with the :func:`zip` function. ::" msgstr "" -"Para percorrer duas ou mais sequências ao mesmo tempo, as entradas podem ser" -" pareadas com a função :func:`zip`. ::" +"Para percorrer duas ou mais sequências ao mesmo tempo, as entradas podem ser " +"pareadas com a função :func:`zip`. ::" #: ../../tutorial/datastructures.rst:594 msgid "" "To loop over a sequence in reverse, first specify the sequence in a forward " "direction and then call the :func:`reversed` function. ::" msgstr "" -"Para percorrer uma sequência em ordem inversa, chame a função " -":func:`reversed` com a sequência na ordem original. ::" +"Para percorrer uma sequência em ordem inversa, chame a função :func:" +"`reversed` com a sequência na ordem original. ::" #: ../../tutorial/datastructures.rst:606 msgid "" "To loop over a sequence in sorted order, use the :func:`sorted` function " "which returns a new sorted list while leaving the source unaltered. ::" msgstr "" -"Para percorrer uma sequência de maneira ordenada, use a função " -":func:`sorted`, que retorna uma lista ordenada com os itens, mantendo a " -"sequência original inalterada. ::" +"Para percorrer uma sequência de maneira ordenada, use a função :func:" +"`sorted`, que retorna uma lista ordenada com os itens, mantendo a sequência " +"original inalterada. ::" #: ../../tutorial/datastructures.rst:618 msgid "" @@ -677,19 +675,19 @@ msgid "" "The conditions used in ``while`` and ``if`` statements can contain any " "operators, not just comparisons." msgstr "" -"As condições de controle usadas em ``while`` e ``if`` podem conter quaisquer" -" operadores, não apenas comparações." +"As condições de controle usadas em ``while`` e ``if`` podem conter quaisquer " +"operadores, não apenas comparações." #: ../../tutorial/datastructures.rst:640 msgid "" "The comparison operators ``in`` and ``not in`` check whether a value occurs " -"(does not occur) in a sequence. The operators ``is`` and ``is not`` compare" -" whether two objects are really the same object; this only matters for " +"(does not occur) in a sequence. The operators ``is`` and ``is not`` compare " +"whether two objects are really the same object; this only matters for " "mutable objects like lists. All comparison operators have the same " "priority, which is lower than that of all numerical operators." msgstr "" -"Os operadores de comparação ``in`` e ``not in`` verificam se um valor ocorre" -" (ou não ocorre) em uma dada sequência. Os operadores ``is`` e ``is not`` " +"Os operadores de comparação ``in`` e ``not in`` verificam se um valor ocorre " +"(ou não ocorre) em uma dada sequência. Os operadores ``is`` e ``is not`` " "comparam se dois objetos são na verdade o mesmo objeto; isto só é relevante " "no contexto de objetos mutáveis, como listas. Todos os operadores de " "comparação possuem a mesma precedência, que é menor do que a prioridade de " @@ -697,8 +695,8 @@ msgstr "" #: ../../tutorial/datastructures.rst:646 msgid "" -"Comparisons can be chained. For example, ``a < b == c`` tests whether ``a``" -" is less than ``b`` and moreover ``b`` equals ``c``." +"Comparisons can be chained. For example, ``a < b == c`` tests whether ``a`` " +"is less than ``b`` and moreover ``b`` equals ``c``." msgstr "" "Comparações podem ser encadeadas: Por exemplo ``a < b == c`` testa se ``a`` " "é menor que ``b`` e também se ``b`` é igual a ``c``." @@ -716,26 +714,26 @@ msgstr "" "``or``, e o resultado de uma comparação (ou de qualquer outra expressão), " "pode ter seu valor booleano negado através de ``not``. Estes possuem menor " "prioridade que os demais operadores de comparação. Entre eles, ``not`` é o " -"de maior prioridade e ``or`` o de menor. Dessa forma, a condição ``A and not" -" B or C`` é equivalente a ``(A and (not B)) or C``. Naturalmente, parênteses" -" podem ser usados para expressar o agrupamento desejado." +"de maior prioridade e ``or`` o de menor. Dessa forma, a condição ``A and not " +"B or C`` é equivalente a ``(A and (not B)) or C``. Naturalmente, parênteses " +"podem ser usados para expressar o agrupamento desejado." #: ../../tutorial/datastructures.rst:656 msgid "" "The Boolean operators ``and`` and ``or`` are so-called *short-circuit* " "operators: their arguments are evaluated from left to right, and evaluation " -"stops as soon as the outcome is determined. For example, if ``A`` and ``C``" -" are true but ``B`` is false, ``A and B and C`` does not evaluate the " +"stops as soon as the outcome is determined. For example, if ``A`` and ``C`` " +"are true but ``B`` is false, ``A and B and C`` does not evaluate the " "expression ``C``. When used as a general value and not as a Boolean, the " "return value of a short-circuit operator is the last evaluated argument." msgstr "" "Os operadores booleanos ``and`` e ``or`` são operadores *short-circuit*: " -"seus argumentos são avaliados da esquerda para a direita, e a avaliação para" -" quando o resultado é determinado. Por exemplo, se ``A`` e ``C`` são " -"expressões verdadeiras, mas ``B`` é falsa, então ``A and B and C`` não chega" -" a avaliar a expressão ``C``. Em geral, quando usado sobre valores genéricos" -" e não como booleanos, o valor do resultado de um operador atalho é o último" -" valor avaliado na expressão." +"seus argumentos são avaliados da esquerda para a direita, e a avaliação para " +"quando o resultado é determinado. Por exemplo, se ``A`` e ``C`` são " +"expressões verdadeiras, mas ``B`` é falsa, então ``A and B and C`` não chega " +"a avaliar a expressão ``C``. Em geral, quando usado sobre valores genéricos " +"e não como booleanos, o valor do resultado de um operador atalho é o último " +"valor avaliado na expressão." #: ../../tutorial/datastructures.rst:663 msgid "" @@ -747,15 +745,15 @@ msgstr "" #: ../../tutorial/datastructures.rst:671 msgid "" -"Note that in Python, unlike C, assignment cannot occur inside expressions. C" -" programmers may grumble about this, but it avoids a common class of " -"problems encountered in C programs: typing ``=`` in an expression when " -"``==`` was intended." +"Note that in Python, unlike C, assignment cannot occur inside expressions. C " +"programmers may grumble about this, but it avoids a common class of problems " +"encountered in C programs: typing ``=`` in an expression when ``==`` was " +"intended." msgstr "" -"Observe que em Python, diferente de C, atribuição não pode ocorrer dentro de" -" uma expressão. Programadores C podem resmungar, mas isso evita toda uma " -"classe de problemas frequentemente encontrados em programas C: digitar ``=``" -" numa expressão quando a intenção era ``==``." +"Observe que em Python, diferente de C, atribuição não pode ocorrer dentro de " +"uma expressão. Programadores C podem resmungar, mas isso evita toda uma " +"classe de problemas frequentemente encontrados em programas C: digitar ``=`` " +"numa expressão quando a intenção era ``==``." #: ../../tutorial/datastructures.rst:680 msgid "Comparing Sequences and Other Types" @@ -773,8 +771,8 @@ msgid "" "sequences are considered equal. If one sequence is an initial sub-sequence " "of the other, the shorter sequence is the smaller (lesser) one. " "Lexicographical ordering for strings uses the Unicode code point number to " -"order individual characters. Some examples of comparisons between sequences" -" of the same type::" +"order individual characters. Some examples of comparisons between sequences " +"of the same type::" msgstr "" "Objetos sequência podem ser comparados com outros objetos sequência, desde " "que o tipo das sequências seja o mesmo. A comparação utiliza a ordem " @@ -783,26 +781,26 @@ msgstr "" "próximos dois itens serão comparados, e assim por diante até que se tenha " "exaurido alguma das sequências. Se em uma comparação de itens, os mesmos " "forem também sequências (aninhadas), então é disparada recursivamente outra " -"comparação lexicográfica. Se todos os itens da sequência forem iguais, então" -" as sequências são ditas iguais. Se uma das sequências é uma subsequência da" -" outra, então a subsequência é a menor. A comparação lexicográfica de " -"strings codificação Unicode para definir a ordenação. Alguns exemplos de " -"comparações entre sequências do mesmo tipo:" +"comparação lexicográfica. Se todos os itens da sequência forem iguais, então " +"as sequências são ditas iguais. Se uma das sequências é uma subsequência da " +"outra, então a subsequência é a menor. A comparação lexicográfica de strings " +"codificação Unicode para definir a ordenação. Alguns exemplos de comparações " +"entre sequências do mesmo tipo:" #: ../../tutorial/datastructures.rst:702 msgid "" "Note that comparing objects of different types with ``<`` or ``>`` is legal " -"provided that the objects have appropriate comparison methods. For example," -" mixed numeric types are compared according to their numeric value, so 0 " +"provided that the objects have appropriate comparison methods. For example, " +"mixed numeric types are compared according to their numeric value, so 0 " "equals 0.0, etc. Otherwise, rather than providing an arbitrary ordering, " "the interpreter will raise a :exc:`TypeError` exception." msgstr "" -"Note que comparar objetos de tipos diferentes com ``<`` ou ``>`` é permitido" -" desde que os objetos possuam os métodos de comparação apropriados. Por " -"exemplo, tipos numéricos mistos são comparados de acordo com os seus valores" -" numéricos, portanto 0 é igual a 0.0, etc. Em caso contrário, ao invés de " -"fornecer uma ordenação arbitrária, o interpretador levantará um " -":exc:`TypeError`." +"Note que comparar objetos de tipos diferentes com ``<`` ou ``>`` é permitido " +"desde que os objetos possuam os métodos de comparação apropriados. Por " +"exemplo, tipos numéricos mistos são comparados de acordo com os seus valores " +"numéricos, portanto 0 é igual a 0.0, etc. Em caso contrário, ao invés de " +"fornecer uma ordenação arbitrária, o interpretador levantará um :exc:" +"`TypeError`." #: ../../tutorial/datastructures.rst:710 msgid "Footnotes" @@ -810,8 +808,8 @@ msgstr "Notas de rodapé" #: ../../tutorial/datastructures.rst:711 msgid "" -"Other languages may return the mutated object, which allows method chaining," -" such as ``d->insert(\"a\")->remove(\"b\")->sort();``." +"Other languages may return the mutated object, which allows method chaining, " +"such as ``d->insert(\"a\")->remove(\"b\")->sort();``." msgstr "" "Outras linguagens podem retornar o objeto modificado, o que permite " "encadeamento de métodos, como ``d->insert(\"a\")->remove(\"b\")->sort();``." diff --git a/tutorial/errors.po b/tutorial/errors.po index dea8d7551..b33f62889 100644 --- a/tutorial/errors.po +++ b/tutorial/errors.po @@ -1,22 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Leticia Portella , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-27 03:37+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -51,18 +53,18 @@ msgstr "" #: ../../tutorial/errors.rst:26 msgid "" -"The parser repeats the offending line and displays a little 'arrow' pointing" -" at the earliest point in the line where the error was detected. The error " +"The parser repeats the offending line and displays a little 'arrow' pointing " +"at the earliest point in the line where the error was detected. The error " "is caused by (or at least detected at) the token *preceding* the arrow: in " "the example, the error is detected at the function :func:`print`, since a " -"colon (``':'``) is missing before it. File name and line number are printed" -" so you know where to look in case the input came from a script." +"colon (``':'``) is missing before it. File name and line number are printed " +"so you know where to look in case the input came from a script." msgstr "" "O parser repete a linha inválida e apresenta uma pequena 'seta' apontando " "para o ponto da linha em que o erro foi detectado. O erro é causado (ou ao " "menos detectado) pelo token que *precede* a seta: no exemplo, o erro foi " -"detectado na função :func:`print`, uma vez que um dois-pontos (``':'``) está" -" faltando antes dela. O nome de arquivo e número de linha são exibidos para " +"detectado na função :func:`print`, uma vez que um dois-pontos (``':'``) está " +"faltando antes dela. O nome de arquivo e número de linha são exibidos para " "que você possa rastrear o erro no texto do script." #: ../../tutorial/errors.rst:37 @@ -81,42 +83,42 @@ msgstr "" "Mesmo que um comando ou expressão estejam sintaticamente corretos, talvez " "ocorra um erro na hora de sua execução. Erros detectados durante a execução " "são chamados *exceções* e não são necessariamente fatais: logo veremos como " -"tratá-las em programas Python. A maioria das exceções não são tratadas pelos" -" programas e acabam resultando em mensagens de erro::" +"tratá-las em programas Python. A maioria das exceções não são tratadas pelos " +"programas e acabam resultando em mensagens de erro::" #: ../../tutorial/errors.rst:58 msgid "" "The last line of the error message indicates what happened. Exceptions come " "in different types, and the type is printed as part of the message: the " -"types in the example are :exc:`ZeroDivisionError`, :exc:`NameError` and " -":exc:`TypeError`. The string printed as the exception type is the name of " -"the built-in exception that occurred. This is true for all built-in " -"exceptions, but need not be true for user-defined exceptions (although it is" -" a useful convention). Standard exception names are built-in identifiers " -"(not reserved keywords)." +"types in the example are :exc:`ZeroDivisionError`, :exc:`NameError` and :exc:" +"`TypeError`. The string printed as the exception type is the name of the " +"built-in exception that occurred. This is true for all built-in exceptions, " +"but need not be true for user-defined exceptions (although it is a useful " +"convention). Standard exception names are built-in identifiers (not reserved " +"keywords)." msgstr "" "A última linha da mensagem de erro indica o que aconteceu. Exceções surgem " -"com diferentes tipos, e o tipo é exibido como parte da mensagem: os tipos no" -" exemplo são :exc:`ZeroDivisionError`, :exc:`NameError` e :exc:`TypeError`. " -"A string exibida como sendo o tipo da exceção é o nome exceção nativa que " -"ocorreu. Isso é verdade para todas exceções pré-definidas em Python, mas não" -" é necessariamente verdade para exceções definidas pelo usuário (embora seja" -" uma convenção útil). Os nomes das exceções padrões são identificadores " +"com diferentes tipos, e o tipo é exibido como parte da mensagem: os tipos no " +"exemplo são :exc:`ZeroDivisionError`, :exc:`NameError` e :exc:`TypeError`. A " +"string exibida como sendo o tipo da exceção é o nome exceção nativa que " +"ocorreu. Isso é verdade para todas exceções pré-definidas em Python, mas não " +"é necessariamente verdade para exceções definidas pelo usuário (embora seja " +"uma convenção útil). Os nomes das exceções padrões são identificadores " "embutidos (não palavras reservadas)." #: ../../tutorial/errors.rst:66 msgid "" -"The rest of the line provides detail based on the type of exception and what" -" caused it." +"The rest of the line provides detail based on the type of exception and what " +"caused it." msgstr "" -"O resto da linha é um detalhamento que depende do tipo da exceção ocorrida e" -" sua causa." +"O resto da linha é um detalhamento que depende do tipo da exceção ocorrida e " +"sua causa." #: ../../tutorial/errors.rst:69 msgid "" "The preceding part of the error message shows the context where the " -"exception happened, in the form of a stack traceback. In general it contains" -" a stack traceback listing source lines; however, it will not display lines " +"exception happened, in the form of a stack traceback. In general it contains " +"a stack traceback listing source lines; however, it will not display lines " "read from standard input." msgstr "" "A parte anterior da mensagem de erro apresenta o contexto onde ocorreu a " @@ -138,17 +140,17 @@ msgstr "Tratamento de exceções" msgid "" "It is possible to write programs that handle selected exceptions. Look at " "the following example, which asks the user for input until a valid integer " -"has been entered, but allows the user to interrupt the program (using " -":kbd:`Control-C` or whatever the operating system supports); note that a " -"user-generated interruption is signalled by raising the " -":exc:`KeyboardInterrupt` exception. ::" +"has been entered, but allows the user to interrupt the program (using :kbd:" +"`Control-C` or whatever the operating system supports); note that a user-" +"generated interruption is signalled by raising the :exc:`KeyboardInterrupt` " +"exception. ::" msgstr "" "É possível escrever programas que tratam exceções específicas. Observe o " "exemplo seguinte, que pede dados ao usuário até que um inteiro válido seja " -"fornecido, ainda permitindo que o programa seja interrompido (utilizando " -":kbd:`Control-C` ou seja lá o que for que o sistema operacional suporte); " -"note que uma interrupção gerada pelo usuário será sinalizada pela exceção " -":exc:`KeyboardInterrupt`. ::" +"fornecido, ainda permitindo que o programa seja interrompido (utilizando :" +"kbd:`Control-C` ou seja lá o que for que o sistema operacional suporte); " +"note que uma interrupção gerada pelo usuário será sinalizada pela exceção :" +"exc:`KeyboardInterrupt`. ::" #: ../../tutorial/errors.rst:96 msgid "The :keyword:`try` statement works as follows." @@ -156,16 +158,16 @@ msgstr "A instrução :keyword:`try` funciona da seguinte maneira:" #: ../../tutorial/errors.rst:98 msgid "" -"First, the *try clause* (the statement(s) between the :keyword:`try` and " -":keyword:`except` keywords) is executed." +"First, the *try clause* (the statement(s) between the :keyword:`try` and :" +"keyword:`except` keywords) is executed." msgstr "" "Primeiramente, a *cláusula try* (o conjunto de instruções entre as palavras\n" " reservadas :keyword:`try` e :keyword:`except` ) é executada." #: ../../tutorial/errors.rst:101 msgid "" -"If no exception occurs, the *except clause* is skipped and execution of the " -":keyword:`try` statement is finished." +"If no exception occurs, the *except clause* is skipped and execution of the :" +"keyword:`try` statement is finished." msgstr "" "Se nenhuma exceção ocorrer, a *cláusula except* é ignorada e a execução da " "instrução :keyword:`try` é finalizada." @@ -173,13 +175,13 @@ msgstr "" #: ../../tutorial/errors.rst:104 msgid "" "If an exception occurs during execution of the try clause, the rest of the " -"clause is skipped. Then if its type matches the exception named after the " -":keyword:`except` keyword, the except clause is executed, and then execution" -" continues after the :keyword:`try` statement." +"clause is skipped. Then if its type matches the exception named after the :" +"keyword:`except` keyword, the except clause is executed, and then execution " +"continues after the :keyword:`try` statement." msgstr "" "Se ocorrer uma execução durante a execução da cláusula try, as instruções " -"remanescentes na cláusula são ignoradas. Se o tipo da exceção ocorrida tiver" -" sido previsto em algum :keyword:`except`, então essa cláusula será " +"remanescentes na cláusula são ignoradas. Se o tipo da exceção ocorrida tiver " +"sido previsto em algum :keyword:`except`, então essa cláusula será " "executada. Depois disso, a execução continua na próxima instrução após o " "conjunto *try/except*." @@ -190,11 +192,11 @@ msgid "" "handler is found, it is an *unhandled exception* and execution stops with a " "message as shown above." msgstr "" -"Se a exceção levantada não foi prevista em nenhuma cláusula " -":keyword:`except` da cláusula :keyword:`try` em que ocorreu, então ela é " -"entregue a uma instrução :keyword:`try` mais externa. Se não existir nenhum " -"tratador previsto para tal exceção, será uma *exceção não tratada* e a " -"execução do programa termina com uma mensagem de erro." +"Se a exceção levantada não foi prevista em nenhuma cláusula :keyword:" +"`except` da cláusula :keyword:`try` em que ocorreu, então ela é entregue a " +"uma instrução :keyword:`try` mais externa. Se não existir nenhum tratador " +"previsto para tal exceção, será uma *exceção não tratada* e a execução do " +"programa termina com uma mensagem de erro." #: ../../tutorial/errors.rst:114 msgid "" @@ -205,8 +207,8 @@ msgid "" "clause may name multiple exceptions as a parenthesized tuple, for example::" msgstr "" "A instrução :keyword:`try` pode ter uma ou mais cláusula :keyword:`except`, " -"para especificar múltiplos tratadores para diferentes exceções. No máximo um" -" único tratador será executado. Tratadores só são sensíveis às exceções " +"para especificar múltiplos tratadores para diferentes exceções. No máximo um " +"único tratador será executado. Tratadores só são sensíveis às exceções " "levantadas no interior da cláusula try, e não às que tenham ocorrido no " "interior de outro tratador numa mesma instrução :keyword:`try`. Um tratador " "pode ser sensível a múltiplas exceções, desde que as especifique em uma " @@ -214,26 +216,25 @@ msgstr "" #: ../../tutorial/errors.rst:123 msgid "" -"A class in an :keyword:`except` clause is compatible with an exception if it" -" is the same class or a base class thereof (but not the other way around ---" -" an except clause listing a derived class is not compatible with a base " +"A class in an :keyword:`except` clause is compatible with an exception if it " +"is the same class or a base class thereof (but not the other way around --- " +"an except clause listing a derived class is not compatible with a base " "class). For example, the following code will print B, C, D in that order::" msgstr "" "Em uma cláusula :keyword:`except`, uma classe é compatível com a exceção " "levantada se é a mesma classe ou uma classe ancestral dela (mas não o " "contrário: uma cláusula :keyword:`except` que menciona uma classe derivada " -"daquela que foi levantada não vai capturar tal exceção). No exemplo a seguir" -" será exibido B, C e D nessa ordem::" +"daquela que foi levantada não vai capturar tal exceção). No exemplo a seguir " +"será exibido B, C e D nessa ordem::" #: ../../tutorial/errors.rst:147 msgid "" "Note that if the except clauses were reversed (with ``except B`` first), it " -"would have printed B, B, B --- the first matching except clause is " -"triggered." +"would have printed B, B, B --- the first matching except clause is triggered." msgstr "" "Se a ordem das cláusulas fosse invertida (``except B`` no início), seria " -"exibido B, B, B --- somente a primeira cláusula :keyword:`except` compatível" -" é ativada." +"exibido B, B, B --- somente a primeira cláusula :keyword:`except` compatível " +"é ativada." #: ../../tutorial/errors.rst:150 msgid "" @@ -246,8 +247,8 @@ msgstr "" "A última cláusula :keyword:`except` pode omitir o nome da exceção, " "funcionando como um curinga. Utilize esse recurso com extrema cautela, uma " "vez que isso pode esconder erros do programador e do usuário! Também pode " -"ser utilizado para exibir uma mensagem de erro e então re-levantar a exceção" -" (permitindo que o invocador da função atual também possa tratá-la)::" +"ser utilizado para exibir uma mensagem de erro e então re-levantar a exceção " +"(permitindo que o invocador da função atual também possa tratá-la)::" #: ../../tutorial/errors.rst:169 msgid "" @@ -256,41 +257,41 @@ msgid "" "for code that must be executed if the try clause does not raise an " "exception. For example::" msgstr "" -"A construção :keyword:`try` ... :keyword:`except` possui uma *cláusula else*" -" opcional, que quando presente, deve ser colocada depois de todas as outras " +"A construção :keyword:`try` ... :keyword:`except` possui uma *cláusula else* " +"opcional, que quando presente, deve ser colocada depois de todas as outras " "cláusulas. É útil para um código que precisa ser executado se nenhuma " "exceção foi levantada. Por exemplo::" #: ../../tutorial/errors.rst:183 msgid "" -"The use of the :keyword:`!else` clause is better than adding additional code" -" to the :keyword:`try` clause because it avoids accidentally catching an " -"exception that wasn't raised by the code being protected by the " -":keyword:`!try` ... :keyword:`!except` statement." +"The use of the :keyword:`!else` clause is better than adding additional code " +"to the :keyword:`try` clause because it avoids accidentally catching an " +"exception that wasn't raised by the code being protected by the :keyword:`!" +"try` ... :keyword:`!except` statement." msgstr "" -"Esse recurso é melhor do que simplesmente adicionar o código da cláusula " -":keyword:`else` ao corpo da cláusula :keyword:`try`, pois mantém as exceções" -" levantadas no :keyword:`else` num escopo diferente de tratamento das " +"Esse recurso é melhor do que simplesmente adicionar o código da cláusula :" +"keyword:`else` ao corpo da cláusula :keyword:`try`, pois mantém as exceções " +"levantadas no :keyword:`else` num escopo diferente de tratamento das " "exceções levantadas na cláusula :keyword:`try`, evitando que acidentalmente " "seja tratada uma exceção que não foi levantada pelo código protegido pela " "construção :keyword:`!try` ... :keyword:`!except`." #: ../../tutorial/errors.rst:188 msgid "" -"When an exception occurs, it may have an associated value, also known as the" -" exception's *argument*. The presence and type of the argument depend on the" -" exception type." +"When an exception occurs, it may have an associated value, also known as the " +"exception's *argument*. The presence and type of the argument depend on the " +"exception type." msgstr "" "Quando uma exceção ocorre, ela pode estar associada a um valor chamado " -"*argumento* da exceção. A presença e o tipo do argumento dependem do tipo da" -" exceção." +"*argumento* da exceção. A presença e o tipo do argumento dependem do tipo da " +"exceção." #: ../../tutorial/errors.rst:192 msgid "" "The except clause may specify a variable after the exception name. The " "variable is bound to an exception instance with the arguments stored in " -"``instance.args``. For convenience, the exception instance defines " -":meth:`__str__` so the arguments can be printed directly without having to " +"``instance.args``. For convenience, the exception instance defines :meth:" +"`__str__` so the arguments can be printed directly without having to " "reference ``.args``. One may also instantiate an exception first before " "raising it and add any attributes to it as desired. ::" msgstr "" @@ -298,8 +299,8 @@ msgstr "" "de nomes) da exceção. A variável é associada à instância de exceção " "capturada, com os argumentos armazenados em ``instancia.args``. Por " "conveniência, a instância define o método :meth:`__str__` para que os " -"argumentos possam ser exibidos diretamente sem necessidade de acessar " -"``.args``. Pode-se também instanciar uma exceção antes de levantá-la e " +"argumentos possam ser exibidos diretamente sem necessidade de acessar ``." +"args``. Pode-se também instanciar uma exceção antes de levantá-la e " "adicionar qualquer atributo a ela, conforme desejado." #: ../../tutorial/errors.rst:216 @@ -312,8 +313,8 @@ msgstr "" #: ../../tutorial/errors.rst:219 msgid "" -"Exception handlers don't just handle exceptions if they occur immediately in" -" the try clause, but also if they occur inside functions that are called " +"Exception handlers don't just handle exceptions if they occur immediately in " +"the try clause, but also if they occur inside functions that are called " "(even indirectly) in the try clause. For example::" msgstr "" "Além disso, tratadores de exceção são capazes de capturar exceções que " @@ -348,9 +349,9 @@ msgstr "" #: ../../tutorial/errors.rst:254 msgid "" -"If you need to determine whether an exception was raised but don't intend to" -" handle it, a simpler form of the :keyword:`raise` statement allows you to " -"re-raise the exception::" +"If you need to determine whether an exception was raised but don't intend to " +"handle it, a simpler form of the :keyword:`raise` statement allows you to re-" +"raise the exception::" msgstr "" "Caso você precise determinar se uma exceção foi levantada ou não, mas não " "quer manipular o erro, uma forma simples de instrução :keyword:`raise` " @@ -375,37 +376,37 @@ msgstr "" #: ../../tutorial/errors.rst:279 msgid "" "Exception classes can be defined which do anything any other class can do, " -"but are usually kept simple, often only offering a number of attributes that" -" allow information about the error to be extracted by handlers for the " -"exception. When creating a module that can raise several distinct errors, a" -" common practice is to create a base class for exceptions defined by that " -"module, and subclass that to create specific exception classes for different" -" error conditions::" +"but are usually kept simple, often only offering a number of attributes that " +"allow information about the error to be extracted by handlers for the " +"exception. When creating a module that can raise several distinct errors, a " +"common practice is to create a base class for exceptions defined by that " +"module, and subclass that to create specific exception classes for different " +"error conditions::" msgstr "" "Classes de exceções podem ser definidas para fazer qualquer coisa que " "qualquer outra classe faz, mas em geral são bem simples, frequentemente " -"oferecendo apenas alguns atributos que fornecem informações sobre o erro que" -" ocorreu. Ao criar um módulo que pode gerar diversos erros, uma prática " -"comum é criar uma classe base para as exceções definidas por aquele módulo, " -"e as classes específicas para cada condição de erro como subclasses dela::" +"oferecendo apenas alguns atributos que fornecem informações sobre o erro que " +"ocorreu. Ao criar um módulo que pode gerar diversos erros, uma prática comum " +"é criar uma classe base para as exceções definidas por aquele módulo, e as " +"classes específicas para cada condição de erro como subclasses dela::" #: ../../tutorial/errors.rst:317 msgid "" -"Most exceptions are defined with names that end in \"Error\", similar to the" -" naming of the standard exceptions." +"Most exceptions are defined with names that end in \"Error\", similar to the " +"naming of the standard exceptions." msgstr "" -"É comum que novas exceções sejam definidas com nomes terminando em " -"\"Error\", semelhante a muitas exceções embutidas." +"É comum que novas exceções sejam definidas com nomes terminando em \"Error" +"\", semelhante a muitas exceções embutidas." #: ../../tutorial/errors.rst:320 msgid "" "Many standard modules define their own exceptions to report errors that may " -"occur in functions they define. More information on classes is presented in" -" chapter :ref:`tut-classes`." +"occur in functions they define. More information on classes is presented in " +"chapter :ref:`tut-classes`." msgstr "" -"Muitos módulos padrão definem novas exceções para reportar erros que ocorrem" -" no interior das funções que definem. Mais informações sobre classes " -"aparecem no capítulo :ref:`tut-classes`." +"Muitos módulos padrão definem novas exceções para reportar erros que ocorrem " +"no interior das funções que definem. Mais informações sobre classes aparecem " +"no capítulo :ref:`tut-classes`." #: ../../tutorial/errors.rst:328 msgid "Defining Clean-up Actions" @@ -417,88 +418,91 @@ msgid "" "to define clean-up actions that must be executed under all circumstances. " "For example::" msgstr "" -"A instrução :keyword:`try` possui outra cláusula opcional, cuja finalidade é" -" permitir a implementação de ações de limpeza, que sempre devem ser " +"A instrução :keyword:`try` possui outra cláusula opcional, cuja finalidade é " +"permitir a implementação de ações de limpeza, que sempre devem ser " "executadas independentemente da ocorrência de exceções. Como no exemplo::" #: ../../tutorial/errors.rst:344 msgid "" -"If a :keyword:`finally` clause is present, the :keyword:`finally` clause " -"will execute as the last task before the :keyword:`try` statement completes." -" The :keyword:`finally` clause runs whether or not the :keyword:`try` " +"If a :keyword:`finally` clause is present, the :keyword:`!finally` clause " +"will execute as the last task before the :keyword:`try` statement completes. " +"The :keyword:`!finally` clause runs whether or not the :keyword:`!try` " "statement produces an exception. The following points discuss more complex " "cases when an exception occurs:" msgstr "" -"Se existir uma cláusula :keyword:`finally`, ela sempre será executada como " -"última ação antes da instrução :keyword:`try` ser finalizada. A clause " -":keyword:`finally` é sempre executada, ocorrendo ou não uma exceção. Os " -"pontos seguintes discutem casos mais complexos de quando uma exceção ocorre:" +"Se uma cláusula :keyword:`finally` estiver presente, a cláusula :keyword:`!" +"finally` será executada como a última tarefa antes da conclusão da " +"instrução :keyword:`try`. A cláusula :keyword:`!finally` executa se a " +"instrução :keyword:`!try` produz uma exceção. Os pontos a seguir discutem " +"casos mais complexos quando ocorre uma exceção:" -#: ../../tutorial/errors.rst:346 +#: ../../tutorial/errors.rst:350 msgid "" "If an exception occurs during execution of the :keyword:`!try` clause, the " -"exception may be handled by an :keyword:`except` clause. If the exception is" -" not handled by an :keyword:`except` clause, the exception is re-raised " +"exception may be handled by an :keyword:`except` clause. If the exception is " +"not handled by an :keyword:`!except` clause, the exception is re-raised " "after the :keyword:`!finally` clause has been executed." msgstr "" -"Se uma exceção ocorre durante a execução da cláusula :keyword:`!try`, a " -"exceção deve ser tratada por uma cláusula :keyword:`except`. Se a exceção " -"não é tratada por uma cláusula :keyword:`except`, a exceção é re-lançada " -"depois da cláusula :keyword:`!finally` ser executada." +"Se ocorrer uma exceção durante a execução da cláusula :keyword:`!try`, a " +"exceção poderá ser tratada por uma cláusula :keyword:`except`. Se a exceção " +"não for tratada por uma cláusula :keyword:`!except`, a exceção será gerada " +"novamente após a execução da cláusula: keyword:`!finally`." -#: ../../tutorial/errors.rst:348 +#: ../../tutorial/errors.rst:356 msgid "" -"An exception could occur during execution of an :keyword:`!except` or " -":keyword:`!else` clause. Again, the exception is re-raised after the " -":keyword:`!finally` clause has been executed." +"An exception could occur during execution of an :keyword:`!except` or :" +"keyword:`!else` clause. Again, the exception is re-raised after the :keyword:" +"`!finally` clause has been executed." msgstr "" -"Uma exceção pode ocorrer durante a execução de uma cláusula " -":keyword:`!except` ou :keyword:`!else`. Novamente, a exceção é re-levantada " -"depois que :keyword:`!finally` é executada." +"Uma exceção pode ocorrer durante a execução de uma cláusula :keyword:`!" +"except` ou :keyword:`!else`. Novamente, a exceção é re-levantada depois que :" +"keyword:`!finally` é executada." -#: ../../tutorial/errors.rst:350 +#: ../../tutorial/errors.rst:360 msgid "" -"If the :keyword:`!try` statement reaches a :keyword:`break`, " -":keyword:`continue` or :keyword:`return` statement, the :keyword:`finally` " -"clause will execute just prior to the :keyword:`break`, :keyword:`continue` " -"or :keyword:`return` statement's execution." +"If the :keyword:`!try` statement reaches a :keyword:`break`, :keyword:" +"`continue` or :keyword:`return` statement, the :keyword:`!finally` clause " +"will execute just prior to the :keyword:`!break`, :keyword:`!continue` or :" +"keyword:`!return` statement's execution." msgstr "" -"Se a instrução :keyword:`!try` executa um :keyword:`break`, " -":keyword:`continue` uma :keyword:`return`, a cláusula :keyword:`finally` " -"será executada imediatamente após a execução do :keyword:`break`, " -":keyword:`continue` ou :keyword:`return`." +"Se a instrução :keyword:`!try` atingir um :keyword:`break`, :keyword:" +"`continue` ou :keyword:`return`, a cláusula :keyword:`!finally` será " +"executada imediatamente antes da execução da instrução :keyword:`!break`, :" +"keyword:`!continue` or :keyword:`!return`." -#: ../../tutorial/errors.rst:352 +#: ../../tutorial/errors.rst:366 msgid "" -"If a :keyword:`finally` clause includes a :keyword:`return` statement, the " -":keyword:`finally` clause's :keyword:`return` statement will execute before," -" and instead of, the :keyword:`return` statement in a :keyword:`try` clause." +"If a :keyword:`!finally` clause includes a :keyword:`!return` statement, the " +"returned value will be the one from the :keyword:`!finally` clause's :" +"keyword:`!return` statement, not the value from the :keyword:`!try` " +"clause's :keyword:`!return` statement." msgstr "" -"Se uma cláusula :keyword:`finally` executa uma instrução :keyword:`return`, " -"esse instrução :keyword:`return` será executada no lugar da instrução " -":keyword:`return` presente na cláusula :keyword:`try`." +"Se uma cláusula :keyword:`!finally` incluir uma instrução :keyword:`!" +"return`, o valor retornado será aquele da instrução :keyword:`!return` da " +"cláusula :keyword:`!finally`, não o valor da instrução :keyword:`!return` da " +"cláusula :keyword:`!try`." -#: ../../tutorial/errors.rst:354 +#: ../../tutorial/errors.rst:372 msgid "For example::" msgstr "Por exemplo::" -#: ../../tutorial/errors.rst:365 +#: ../../tutorial/errors.rst:383 msgid "A more complicated example::" msgstr "Um exemplo mais complicado::" -#: ../../tutorial/errors.rst:390 +#: ../../tutorial/errors.rst:408 msgid "" -"As you can see, the :keyword:`finally` clause is executed in any event. The" -" :exc:`TypeError` raised by dividing two strings is not handled by the " -":keyword:`except` clause and therefore re-raised after the " -":keyword:`!finally` clause has been executed." +"As you can see, the :keyword:`finally` clause is executed in any event. " +"The :exc:`TypeError` raised by dividing two strings is not handled by the :" +"keyword:`except` clause and therefore re-raised after the :keyword:`!" +"finally` clause has been executed." msgstr "" "Como você pode ver, a cláusula :keyword:`finally` é executado em todos os " -"casos. A exceção :exc:`TypeError` levantada pela divisão de duas strings não" -" é tratada pela cláusula :keyword:`except` e portanto é re-levantada depois " +"casos. A exceção :exc:`TypeError` levantada pela divisão de duas strings não " +"é tratada pela cláusula :keyword:`except` e portanto é re-levantada depois " "que a cláusula :keyword:`finally` é executada." -#: ../../tutorial/errors.rst:395 +#: ../../tutorial/errors.rst:413 msgid "" "In real world applications, the :keyword:`finally` clause is useful for " "releasing external resources (such as files or network connections), " @@ -508,46 +512,46 @@ msgstr "" "liberar recursos externos (como arquivos ou conexões de rede), " "independentemente do uso do recurso ter sido bem sucedido ou não." -#: ../../tutorial/errors.rst:403 +#: ../../tutorial/errors.rst:421 msgid "Predefined Clean-up Actions" msgstr "Ações de limpeza predefinidas" -#: ../../tutorial/errors.rst:405 +#: ../../tutorial/errors.rst:423 msgid "" "Some objects define standard clean-up actions to be undertaken when the " -"object is no longer needed, regardless of whether or not the operation using" -" the object succeeded or failed. Look at the following example, which tries " +"object is no longer needed, regardless of whether or not the operation using " +"the object succeeded or failed. Look at the following example, which tries " "to open a file and print its contents to the screen. ::" msgstr "" -"Alguns objetos definem ações de limpeza padrões para serem executadas quando" -" o objeto não é mais necessário, independentemente da operação que estava " +"Alguns objetos definem ações de limpeza padrões para serem executadas quando " +"o objeto não é mais necessário, independentemente da operação que estava " "usando o objeto ter sido ou não bem sucedida. Veja o exemplo a seguir, que " "tenta abrir um arquivo e exibir seu conteúdo na tela. ::" -#: ../../tutorial/errors.rst:413 +#: ../../tutorial/errors.rst:431 msgid "" "The problem with this code is that it leaves the file open for an " "indeterminate amount of time after this part of the code has finished " "executing. This is not an issue in simple scripts, but can be a problem for " -"larger applications. The :keyword:`with` statement allows objects like files" -" to be used in a way that ensures they are always cleaned up promptly and " +"larger applications. The :keyword:`with` statement allows objects like files " +"to be used in a way that ensures they are always cleaned up promptly and " "correctly. ::" msgstr "" "O problema com esse código é que ele deixa o arquivo aberto um período " -"indeterminado depois que o código é executado. Isso não chega a ser problema" -" em scripts simples, mas pode ser um problema para grandes aplicações. A " +"indeterminado depois que o código é executado. Isso não chega a ser problema " +"em scripts simples, mas pode ser um problema para grandes aplicações. A " "palavra reservada :keyword:`with` permite que objetos como arquivos sejam " "utilizados com a certeza de que sempre serão prontamente e corretamente " "finalizados. ::" -#: ../../tutorial/errors.rst:423 +#: ../../tutorial/errors.rst:441 msgid "" "After the statement is executed, the file *f* is always closed, even if a " "problem was encountered while processing the lines. Objects which, like " "files, provide predefined clean-up actions will indicate this in their " "documentation." msgstr "" -"Depois que a instrução é executada, o arquivo *f* é sempre fechado, mesmo se" -" ocorrer um problema durante o processamento das linhas. Outros objetos que," -" como arquivos, fornecem ações de limpeza predefinidas as indicarão em suas " +"Depois que a instrução é executada, o arquivo *f* é sempre fechado, mesmo se " +"ocorrer um problema durante o processamento das linhas. Outros objetos que, " +"como arquivos, fornecem ações de limpeza predefinidas as indicarão em suas " "documentações." diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 05b858b16..7fca11c99 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,8 +47,10 @@ msgid "" "only real difference being that the first is written in base 10 fractional " "notation, and the second in base 2." msgstr "" -"tem o valor 0/2 + 0/4 + 1/8. Essas duas frações têm valores idênticos, a única\n" -"diferença real é que a primeira está representada na forma de frações base 10,\n" +"tem o valor 0/2 + 0/4 + 1/8. Essas duas frações têm valores idênticos, a " +"única\n" +"diferença real é que a primeira está representada na forma de frações base " +"10,\n" "e a segunda na base 2." #: ../../tutorial/floatingpoint.rst:27 @@ -56,7 +60,8 @@ msgid "" "point numbers you enter are only approximated by the binary floating-point " "numbers actually stored in the machine." msgstr "" -"Infelizmente, muitas frações decimais não podem ser representadas precisamente\n" +"Infelizmente, muitas frações decimais não podem ser representadas " +"precisamente\n" "como frações binárias. O resultado é que, em geral, os números decimais de\n" "ponto flutuante que você digita acabam sendo armazenados de forma apenas\n" "aproximada, na forma de números binários de ponto flutuante." @@ -79,14 +84,15 @@ msgid "" "result will never be exactly 1/3, but will be an increasingly better " "approximation of 1/3." msgstr "" -"e assim por diante. Não importa quantos dígitos você está disposto a escrever,\n" +"e assim por diante. Não importa quantos dígitos você está disposto a " +"escrever,\n" "o resultado nunca será exatamente 1/3, mas será uma aproximação de cada vez\n" "melhor de 1/3." #: ../../tutorial/floatingpoint.rst:49 msgid "" -"In the same way, no matter how many base 2 digits you're willing to use, the" -" decimal value 0.1 cannot be represented exactly as a base 2 fraction. In " +"In the same way, no matter how many base 2 digits you're willing to use, the " +"decimal value 0.1 cannot be represented exactly as a base 2 fraction. In " "base 2, 1/10 is the infinitely repeating fraction ::" msgstr "" "Da mesma forma, não importa quantos dígitos de base 2 estejas disposto a " @@ -98,17 +104,17 @@ msgstr "" msgid "" "Stop at any finite number of bits, and you get an approximation. On most " "machines today, floats are approximated using a binary fraction with the " -"numerator using the first 53 bits starting with the most significant bit and" -" with the denominator as a power of two. In the case of 1/10, the binary " -"fraction is ``3602879701896397 / 2 ** 55`` which is close to but not exactly" -" equal to the true value of 1/10." +"numerator using the first 53 bits starting with the most significant bit and " +"with the denominator as a power of two. In the case of 1/10, the binary " +"fraction is ``3602879701896397 / 2 ** 55`` which is close to but not exactly " +"equal to the true value of 1/10." msgstr "" "Se parares em qualquer número finito de bits, obterás uma aproximação. Hoje " "em dia, na maioria dos computadores, as casas decimais são aproximados " "usando uma fração binária onde o numerado utiliza os primeiros 53 bits " -"iniciando no bit mais significativo e tendo como denominador uma potência de" -" dois. No caso de 1/10, a fração binária seria ``602879701896397 / 2 ** 55``" -" o que chega bem perto, mas mesmo assim, não é igual ao valor original de " +"iniciando no bit mais significativo e tendo como denominador uma potência de " +"dois. No caso de 1/10, a fração binária seria ``602879701896397 / 2 ** 55`` " +"o que chega bem perto, mas mesmo assim, não é igual ao valor original de " "1/10." #: ../../tutorial/floatingpoint.rst:62 @@ -128,8 +134,8 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:71 msgid "" -"That is more digits than most people find useful, so Python keeps the number" -" of digits manageable by displaying a rounded value instead ::" +"That is more digits than most people find useful, so Python keeps the number " +"of digits manageable by displaying a rounded value instead ::" msgstr "" "Contém muito mais dígitos do que é o esperado e utilizado pela grande " "maioria dos desenvolvedores, portanto, o Python limita o número de dígitos " @@ -167,33 +173,33 @@ msgstr "" msgid "" "Historically, the Python prompt and built-in :func:`repr` function would " "choose the one with 17 significant digits, ``0.10000000000000001``. " -"Starting with Python 3.1, Python (on most systems) is now able to choose the" -" shortest of these and simply display ``0.1``." +"Starting with Python 3.1, Python (on most systems) is now able to choose the " +"shortest of these and simply display ``0.1``." msgstr "" "Historicamente, o prompt do Python e a função builtin :func:`repr` " -"utilizaria o que contivesse 17 dígitos " -"significativos,``0.10000000000000001``. Desde a versão do Python 3.1, o " -"Python (na maioria dos sistemas) agora é possível optar pela forma mais " -"curta (reduzida) exibindo simplesmente o número ``0.1``." +"utilizaria o que contivesse 17 dígitos significativos," +"``0.10000000000000001``. Desde a versão do Python 3.1, o Python (na maioria " +"dos sistemas) agora é possível optar pela forma mais curta (reduzida) " +"exibindo simplesmente o número ``0.1``." #: ../../tutorial/floatingpoint.rst:93 msgid "" -"Note that this is in the very nature of binary floating-point: this is not a" -" bug in Python, and it is not a bug in your code either. You'll see the " -"same kind of thing in all languages that support your hardware's floating-" -"point arithmetic (although some languages may not *display* the difference " -"by default, or in all output modes)." +"Note that this is in the very nature of binary floating-point: this is not a " +"bug in Python, and it is not a bug in your code either. You'll see the same " +"kind of thing in all languages that support your hardware's floating-point " +"arithmetic (although some languages may not *display* the difference by " +"default, or in all output modes)." msgstr "" "Note que essa é a própria natureza do ponto flutuante binário: não é um bug " -"do Python, e nem é um bug do seu código. Essa situação pode ser observada em" -" todas as linguagens que usam as instruções aritméticas de ponto flutuante " -"do hardware (apesar de algumas linguagens não *mostrarem* a diferença, por " +"do Python, e nem é um bug do seu código. Essa situação pode ser observada em " +"todas as linguagens que usam as instruções aritméticas de ponto flutuante do " +"hardware (apesar de algumas linguagens não *mostrarem* a diferença, por " "padrão, ou em todos os modos de saída)." #: ../../tutorial/floatingpoint.rst:99 msgid "" -"For more pleasant output, you may wish to use string formatting to produce a" -" limited number of significant digits::" +"For more pleasant output, you may wish to use string formatting to produce a " +"limited number of significant digits::" msgstr "" "Para obter um valor mais agradável, poderás utilizar a formatação de " "seqüência de caracteres sendo capaz de gerar um número limitado de dígitos " @@ -201,16 +207,16 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:111 msgid "" -"It's important to realize that this is, in a real sense, an illusion: you're" -" simply rounding the *display* of the true machine value." +"It's important to realize that this is, in a real sense, an illusion: you're " +"simply rounding the *display* of the true machine value." msgstr "" "É importante perceber que tudo não passa de pura ilusão: estas simplesmente " "arredondando a *exibição* da verdadeira maquinaria do valor." #: ../../tutorial/floatingpoint.rst:114 msgid "" -"One illusion may beget another. For example, since 0.1 is not exactly 1/10," -" summing three values of 0.1 may not yield exactly 0.3, either::" +"One illusion may beget another. For example, since 0.1 is not exactly 1/10, " +"summing three values of 0.1 may not yield exactly 0.3, either::" msgstr "" "Uma ilusão pode gerar outra. Por exemplo, uma vez que 0,1 não é exatamente " "1/10, somar três vezes o valor 0.1, não garantirá que o resultado seja " @@ -218,9 +224,9 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:120 msgid "" -"Also, since the 0.1 cannot get any closer to the exact value of 1/10 and 0.3" -" cannot get any closer to the exact value of 3/10, then pre-rounding with " -":func:`round` function cannot help::" +"Also, since the 0.1 cannot get any closer to the exact value of 1/10 and 0.3 " +"cannot get any closer to the exact value of 3/10, then pre-rounding with :" +"func:`round` function cannot help::" msgstr "" "Inclusive, uma vez que o 0,1 não consegue aproximar-se do valor exato de " "1/10 e 0,3 não pode se aproximar mais do valor exato de 3/10, temos então " @@ -228,9 +234,9 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:127 msgid "" -"Though the numbers cannot be made closer to their intended exact values, the" -" :func:`round` function can be useful for post-rounding so that results with" -" inexact values become comparable to one another::" +"Though the numbers cannot be made closer to their intended exact values, " +"the :func:`round` function can be useful for post-rounding so that results " +"with inexact values become comparable to one another::" msgstr "" "Embora os números não possam se aproximar mais dos exatos valores que " "desejamos, a função :func:`round` poderá ser útil na obtenção do pós-" @@ -241,15 +247,15 @@ msgstr "" msgid "" "Binary floating-point arithmetic holds many surprises like this. The " "problem with \"0.1\" is explained in precise detail below, in the " -"\"Representation Error\" section. See `The Perils of Floating Point " -"`_ for a more complete account of other " -"common surprises." +"\"Representation Error\" section. See `The Perils of Floating Point `_ for a more complete account of other common " +"surprises." msgstr "" "A aritmética de ponto flutuante binário traz muitas surpresas como essas. O " "problema do \"0.1\" é explicado em detalhes precisos abaixo, na seção `Erro " -"de Representação`_. Para uma descrição mais completa de outras surpresas que" -" comumente nos deparamos, veja a seção `The Perils of Floating Point " -"`_ que contém diversos exemplos distintos." +"de Representação`_. Para uma descrição mais completa de outras surpresas que " +"comumente nos deparamos, veja a seção `The Perils of Floating Point `_ que contém diversos exemplos distintos." #: ../../tutorial/floatingpoint.rst:139 msgid "" @@ -262,10 +268,10 @@ msgid "" "error." msgstr "" "Como dizemos perto do final, \"não há respostas fáceis\". Ainda assim, não " -"se percam indevidamente no uso do ponto flutuante! Os erros nas operações do" -" tipo float do Python são heranças do hardware de ponto flutuante e, a " -"maioria dos computadores estão na ordem de não mais do que 1 parte em " -"2\\*\\*53 por operação. Isso é mais do que o suficiente para a maioria das " +"se percam indevidamente no uso do ponto flutuante! Os erros nas operações do " +"tipo float do Python são heranças do hardware de ponto flutuante e, a " +"maioria dos computadores estão na ordem de não mais do que 1 parte em 2\\*" +"\\*53 por operação. Isso é mais do que o suficiente para a maioria das " "tarefas, portanto, é importante lembrar que não se trata de uma aritmética " "decimal e que toda operação com o tipo float poderá via a apresentar novos " "problemas referentes ao arredondamento." @@ -275,44 +281,44 @@ msgid "" "While pathological cases do exist, for most casual use of floating-point " "arithmetic you'll see the result you expect in the end if you simply round " "the display of your final results to the number of decimal digits you " -"expect. :func:`str` usually suffices, and for finer control see the " -":meth:`str.format` method's format specifiers in :ref:`formatstrings`." +"expect. :func:`str` usually suffices, and for finer control see the :meth:" +"`str.format` method's format specifiers in :ref:`formatstrings`." msgstr "" "Embora existam casos patológicos, na maior parte das vezes, terás como " "resultado final o valor esperado, se simplesmente arredondares a exibição " "final dos resultados para a quantidade de dígitos decimais que esperas a " -"função :func:`str` geralmente será o suficiente, e , para seja necessário um" -" valor refinado, veja os especificadores de formato :meth:`str.format` " +"função :func:`str` geralmente será o suficiente, e , para seja necessário um " +"valor refinado, veja os especificadores de formato :meth:`str.format` " "contido na seção :ref:`formatstrings`." #: ../../tutorial/floatingpoint.rst:152 msgid "" -"For use cases which require exact decimal representation, try using the " -":mod:`decimal` module which implements decimal arithmetic suitable for " -"accounting applications and high-precision applications." +"For use cases which require exact decimal representation, try using the :mod:" +"`decimal` module which implements decimal arithmetic suitable for accounting " +"applications and high-precision applications." msgstr "" "Para as situações que exijam uma representação decimal exata, experimente o " -"módulo :mod:`decimal` que possui, a implementação de uma adequada aritmética" -" decimal bastante utilizada nas aplicações contábeis e pelas aplicações que " +"módulo :mod:`decimal` que possui, a implementação de uma adequada aritmética " +"decimal bastante utilizada nas aplicações contábeis e pelas aplicações que " "demandam alta precisão." #: ../../tutorial/floatingpoint.rst:156 msgid "" -"Another form of exact arithmetic is supported by the :mod:`fractions` module" -" which implements arithmetic based on rational numbers (so the numbers like " +"Another form of exact arithmetic is supported by the :mod:`fractions` module " +"which implements arithmetic based on rational numbers (so the numbers like " "1/3 can be represented exactly)." msgstr "" -"Uma outra forma de obter uma aritmética exata tem suporte pelo módulo " -":mod:`fracções` que implementa a aritmética baseada em números racionais " +"Uma outra forma de obter uma aritmética exata tem suporte pelo módulo :mod:" +"`fracções` que implementa a aritmética baseada em números racionais " "(portanto, os números fracionários como o 1/3 conseguem uma representação " "precisa)." #: ../../tutorial/floatingpoint.rst:160 msgid "" "If you are a heavy user of floating point operations you should take a look " -"at the Numerical Python package and many other packages for mathematical and" -" statistical operations supplied by the SciPy project. See " -"." +"at the Numerical Python package and many other packages for mathematical and " +"statistical operations supplied by the SciPy project. See ." msgstr "" "Caso necessites fazer um intenso uso das operações de ponto flutuante, é " "importante que conheças o pacote Numerical Python e, também é importante " @@ -323,19 +329,18 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:164 msgid "" "Python provides tools that may help on those rare occasions when you really " -"*do* want to know the exact value of a float. The " -":meth:`float.as_integer_ratio` method expresses the value of a float as a " -"fraction::" +"*do* want to know the exact value of a float. The :meth:`float." +"as_integer_ratio` method expresses the value of a float as a fraction::" msgstr "" "O Python fornece ferramentas que podem ajudar nessas raras ocasiões em que " -"realmente *faz* necessitas conhecer o valor exato de um float. O método " -":meth:`float.as_integer_ratio` expressa o valor do tipo float em sua forma " +"realmente *faz* necessitas conhecer o valor exato de um float. O método :" +"meth:`float.as_integer_ratio` expressa o valor do tipo float em sua forma " "fracionária::" #: ../../tutorial/floatingpoint.rst:173 msgid "" -"Since the ratio is exact, it can be used to losslessly recreate the original" -" value::" +"Since the ratio is exact, it can be used to losslessly recreate the original " +"value::" msgstr "" "Uma vez que a relação seja exata, será possível utiliza-la para obter, sem " "que haja quaisquer perda o valor original::" @@ -350,8 +355,8 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:185 msgid "" -"This precise hexadecimal representation can be used to reconstruct the float" -" value exactly::" +"This precise hexadecimal representation can be used to reconstruct the float " +"value exactly::" msgstr "" "Sua precisa representação hexadecimal poderá ser utilizada para reconstruir " "o valor exato do float::" @@ -365,15 +370,15 @@ msgid "" msgstr "" "Como a representação será exata, é interessante utilizar valores confiáveis " "em diferentes versões do Python (independente da plataforma) e a troca de " -"dados entre idiomas diferentes que forneçam o mesmo formato (como o Java e o" -" C99)." +"dados entre idiomas diferentes que forneçam o mesmo formato (como o Java e o " +"C99)." #: ../../tutorial/floatingpoint.rst:195 msgid "" "Another helpful tool is the :func:`math.fsum` function which helps mitigate " -"loss-of-precision during summation. It tracks \"lost digits\" as values are" -" added onto a running total. That can make a difference in overall accuracy" -" so that the errors do not accumulate to the point where they affect the " +"loss-of-precision during summation. It tracks \"lost digits\" as values are " +"added onto a running total. That can make a difference in overall accuracy " +"so that the errors do not accumulate to the point where they affect the " "final total:" msgstr "" "Uma outra ferramenta que poderá ser útil é a função :func:`math.fsum` que " @@ -405,19 +410,19 @@ msgid "" "expect." msgstr "" ":dfn:`Erro de representação` refere-se ao fato de que algumas frações " -"decimais (a maioria, na verdade) não podem ser representadas exatamente como" -" frações binárias (base 2). Esta é a principal razão por que o Python (ou " +"decimais (a maioria, na verdade) não podem ser representadas exatamente como " +"frações binárias (base 2). Esta é a principal razão por que o Python (ou " "Perl, C, C++, Java, Fortran, e muitas outras) frequentemente não exibe o " "número decimal exato conforme o esperado::" #: ../../tutorial/floatingpoint.rst:220 msgid "" -"Why is that? 1/10 is not exactly representable as a binary fraction. Almost" -" all machines today (November 2000) use IEEE-754 floating point arithmetic, " -"and almost all platforms map Python floats to IEEE-754 \"double precision\"." -" 754 doubles contain 53 bits of precision, so on input the computer strives" -" to convert 0.1 to the closest fraction it can of the form *J*/2**\\ *N* " -"where *J* is an integer containing exactly 53 bits. Rewriting ::" +"Why is that? 1/10 is not exactly representable as a binary fraction. Almost " +"all machines today (November 2000) use IEEE-754 floating point arithmetic, " +"and almost all platforms map Python floats to IEEE-754 \"double precision" +"\". 754 doubles contain 53 bits of precision, so on input the computer " +"strives to convert 0.1 to the closest fraction it can of the form *J*/2**\\ " +"*N* where *J* is an integer containing exactly 53 bits. Rewriting ::" msgstr "" "Por que isso acontece? 1/10 e 2/10 não são podem ser representados " "exatamente ​​sendo frações binárias. Atualmente, quase todos computadores " @@ -443,8 +448,8 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:239 msgid "" -"That is, 56 is the only value for *N* that leaves *J* with exactly 53 bits." -" The best possible value for *J* is then that quotient rounded::" +"That is, 56 is the only value for *N* that leaves *J* with exactly 53 bits. " +"The best possible value for *J* is then that quotient rounded::" msgstr "" "Ou seja, 56 é o único valor de *N* que deixa *J* com exatamente 53 bits. " "Portanto, o melhor valor que conseguimos obter pra *J* será aquele que " @@ -477,19 +482,18 @@ msgid "" "1/10; if we had not rounded up, the quotient would have been a little bit " "smaller than 1/10. But in no case can it be *exactly* 1/10!" msgstr "" -"Note que, como arredondamos para cima, esse valor é, de fato, um pouco maior" -" que 1/10; se não tivéssemos arredondado para cima, o quociente teria sido " -"um pouco menor que 1/10. Mas em nenhum caso seria possível obter " -"*exatamente* o valor 1/10!" +"Note que, como arredondamos para cima, esse valor é, de fato, um pouco maior " +"que 1/10; se não tivéssemos arredondado para cima, o quociente teria sido um " +"pouco menor que 1/10. Mas em nenhum caso seria possível obter *exatamente* o " +"valor 1/10!" #: ../../tutorial/floatingpoint.rst:264 msgid "" "So the computer never \"sees\" 1/10: what it sees is the exact fraction " "given above, the best 754 double approximation it can get::" msgstr "" -"Por isso, o computador nunca \"vê\" 1/10: o que ele vê é exatamente a fração" -" que é obtida pra cima, a melhor aproximação \"IEEE-754 double\" possível " -"é::" +"Por isso, o computador nunca \"vê\" 1/10: o que ele vê é exatamente a fração " +"que é obtida pra cima, a melhor aproximação \"IEEE-754 double\" possível é::" #: ../../tutorial/floatingpoint.rst:270 msgid "" @@ -501,10 +505,10 @@ msgstr "" #: ../../tutorial/floatingpoint.rst:276 msgid "" -"meaning that the exact number stored in the computer is equal to the decimal" -" value 0.1000000000000000055511151231257827021181583404541015625. Instead of" -" displaying the full decimal value, many languages (including older versions" -" of Python), round the result to 17 significant digits::" +"meaning that the exact number stored in the computer is equal to the decimal " +"value 0.1000000000000000055511151231257827021181583404541015625. Instead of " +"displaying the full decimal value, many languages (including older versions " +"of Python), round the result to 17 significant digits::" msgstr "" "o que significa que o número exato armazenados no computador será " "aproximadamente igual ao o valor decimal 0.100000000000000005551115123125. " diff --git a/tutorial/index.po b/tutorial/index.po index 575cf5d1a..263b37aa9 100644 --- a/tutorial/index.po +++ b/tutorial/index.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" "Last-Translator: Leticia Portella , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -59,8 +60,8 @@ msgstr "" #: ../../tutorial/index.rst:19 msgid "" "The Python interpreter is easily extended with new functions and data types " -"implemented in C or C++ (or other languages callable from C). Python is also" -" suitable as an extension language for customizable applications." +"implemented in C or C++ (or other languages callable from C). Python is also " +"suitable as an extension language for customizable applications." msgstr "" "O interpretador Python pode ser facilmente extendido com novas funções e " "tipos de dados implementados em C ou C++ (ou outras linguagens chamados a " @@ -81,25 +82,25 @@ msgstr "" #: ../../tutorial/index.rst:28 msgid "" -"For a description of standard objects and modules, see :ref:`library-index`." -" :ref:`reference-index` gives a more formal definition of the language. To " -"write extensions in C or C++, read :ref:`extending-index` and :ref:`c-api-" -"index`. There are also several books covering Python in depth." +"For a description of standard objects and modules, see :ref:`library-" +"index`. :ref:`reference-index` gives a more formal definition of the " +"language. To write extensions in C or C++, read :ref:`extending-index` and :" +"ref:`c-api-index`. There are also several books covering Python in depth." msgstr "" -"Para uma descrição detalhada dos módulos e objetos padrões, veja :ref" -":`library-index`. Em :ref:`reference-index` você encontra uma definição " -"mais formal da linguagem. Para escrever extensões em C ou C++ leia :ref" -":`extending-index` e :ref:`c-api-index`. Existe uma série de livros que " +"Para uma descrição detalhada dos módulos e objetos padrões, veja :ref:" +"`library-index`. Em :ref:`reference-index` você encontra uma definição mais " +"formal da linguagem. Para escrever extensões em C ou C++ leia :ref:" +"`extending-index` e :ref:`c-api-index`. Existe uma série de livros que " "cobrem Python em profundidade." #: ../../tutorial/index.rst:33 msgid "" "This tutorial does not attempt to be comprehensive and cover every single " -"feature, or even every commonly used feature. Instead, it introduces many of" -" Python's most noteworthy features, and will give you a good idea of the " +"feature, or even every commonly used feature. Instead, it introduces many of " +"Python's most noteworthy features, and will give you a good idea of the " "language's flavor and style. After reading it, you will be able to read and " -"write Python modules and programs, and you will be ready to learn more about" -" the various Python library modules described in :ref:`library-index`." +"write Python modules and programs, and you will be ready to learn more about " +"the various Python library modules described in :ref:`library-index`." msgstr "" "Este tutorial não espera ser abrangente e cobrir todos os recursos ou mesmo " "os recursos mais usados. Ele busca introduzir diversos dos recursos mais " diff --git a/tutorial/inputoutput.po b/tutorial/inputoutput.po index f99c818bc..db276e038 100644 --- a/tutorial/inputoutput.po +++ b/tutorial/inputoutput.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adson Rodrigues , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-15 03:29+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +35,8 @@ msgid "" "printed in a human-readable form, or written to a file for future use. This " "chapter will discuss some of the possibilities." msgstr "" -"Existem várias maneiras de apresentar a saída de um programa; os dados podem" -" ser exibidos em forma legível para seres humanos, ou escritos em arquivos " +"Existem várias maneiras de apresentar a saída de um programa; os dados podem " +"ser exibidos em forma legível para seres humanos, ou escritos em arquivos " "para uso posterior. Este capítulo apresentará algumas das possibilidades." #: ../../tutorial/inputoutput.rst:15 @@ -44,16 +45,16 @@ msgstr "Refinando a formatação de saída" #: ../../tutorial/inputoutput.rst:17 msgid "" -"So far we've encountered two ways of writing values: *expression statements*" -" and the :func:`print` function. (A third way is using the :meth:`write` " -"method of file objects; the standard output file can be referenced as " -"``sys.stdout``. See the Library Reference for more information on this.)" +"So far we've encountered two ways of writing values: *expression statements* " +"and the :func:`print` function. (A third way is using the :meth:`write` " +"method of file objects; the standard output file can be referenced as ``sys." +"stdout``. See the Library Reference for more information on this.)" msgstr "" -"Até agora vimos duas maneiras de exibir valores: *expressões* e a função " -":func:`print`. (Uma outra maneira é utilizar o método :meth:`write` de " +"Até agora vimos duas maneiras de exibir valores: *expressões* e a função :" +"func:`print`. (Uma outra maneira é utilizar o método :meth:`write` de " "objetos do tipo arquivo; o arquivo saída padrão pode ser referenciado como " -"``sys.stdout``. Veja a Referência da Biblioteca Python para mais informações" -" sobre isso.)" +"``sys.stdout``. Veja a Referência da Biblioteca Python para mais informações " +"sobre isso.)" #: ../../tutorial/inputoutput.rst:22 msgid "" @@ -62,20 +63,20 @@ msgid "" "output." msgstr "" "Muitas vezes se deseja mais controle sobre a formatação da saída do que " -"simplesmente exibir valores separados por espaço. Existem várias maneiras de" -" formatar a saída." +"simplesmente exibir valores separados por espaço. Existem várias maneiras de " +"formatar a saída." #: ../../tutorial/inputoutput.rst:25 msgid "" -"To use :ref:`formatted string literals `, begin a string with" -" ``f`` or ``F`` before the opening quotation mark or triple quotation mark. " -"Inside this string, you can write a Python expression between ``{`` and " -"``}`` characters that can refer to variables or literal values." +"To use :ref:`formatted string literals `, begin a string with " +"``f`` or ``F`` before the opening quotation mark or triple quotation mark. " +"Inside this string, you can write a Python expression between ``{`` and ``}" +"`` characters that can refer to variables or literal values." msgstr "" "Para usar :ref:`strings literais formatadas `, comece uma " "string com ``f`` ou ``F``, antes de abrir as aspas ou aspas triplas. Dentro " -"dessa string, pode-se escrever uma expressão Python entre caracteres ``{`` e" -" ``}``, que podem se referir a variáveis, ou valores literais." +"dessa string, pode-se escrever uma expressão Python entre caracteres ``{`` e " +"``}``, que podem se referir a variáveis, ou valores literais." #: ../../tutorial/inputoutput.rst:37 msgid "" @@ -86,26 +87,26 @@ msgid "" msgstr "" "O método de strings :meth:`str.format` requer mais esforço manual. Ainda " "será necessário usar ``{`` e ``}`` para marcar onde a variável será " -"substituída e pode-se incluir diretivas de formatação detalhadas, mas também" -" precisará incluir a informação a ser formatada." +"substituída e pode-se incluir diretivas de formatação detalhadas, mas também " +"precisará incluir a informação a ser formatada." #: ../../tutorial/inputoutput.rst:50 msgid "" -"Finally, you can do all the string handling yourself by using string slicing" -" and concatenation operations to create any layout you can imagine. The " +"Finally, you can do all the string handling yourself by using string slicing " +"and concatenation operations to create any layout you can imagine. The " "string type has some methods that perform useful operations for padding " "strings to a given column width." msgstr "" "Finalmente, pode-se fazer todo o tratamento da saída usando as operações de " -"fatiamento e concatenação de strings para criar qualquer layout que se possa" -" imaginar. O tipo string possui alguns métodos que realizam operações úteis " +"fatiamento e concatenação de strings para criar qualquer layout que se possa " +"imaginar. O tipo string possui alguns métodos que realizam operações úteis " "para preenchimento de strings para uma determinada largura de coluna." #: ../../tutorial/inputoutput.rst:55 msgid "" "When you don't need fancy output but just want a quick display of some " -"variables for debugging purposes, you can convert any value to a string with" -" the :func:`repr` or :func:`str` functions." +"variables for debugging purposes, you can convert any value to a string with " +"the :func:`repr` or :func:`str` functions." msgstr "" "Quando não é necessário sofisticar a saída, mas apenas exibir algumas " "variáveis com propósito de depuração, pode-se converter qualquer valor para " @@ -115,22 +116,21 @@ msgstr "" msgid "" "The :func:`str` function is meant to return representations of values which " "are fairly human-readable, while :func:`repr` is meant to generate " -"representations which can be read by the interpreter (or will force a " -":exc:`SyntaxError` if there is no equivalent syntax). For objects which " -"don't have a particular representation for human consumption, :func:`str` " -"will return the same value as :func:`repr`. Many values, such as numbers or" -" structures like lists and dictionaries, have the same representation using " +"representations which can be read by the interpreter (or will force a :exc:" +"`SyntaxError` if there is no equivalent syntax). For objects which don't " +"have a particular representation for human consumption, :func:`str` will " +"return the same value as :func:`repr`. Many values, such as numbers or " +"structures like lists and dictionaries, have the same representation using " "either function. Strings, in particular, have two distinct representations." msgstr "" -"A função :func:`str` serve para retornar representações de valores que sejam" -" legíveis para as pessoas, enquanto :func:`repr` é para gerar representações" -" que o interpretador Python consegue ler (ou levantará uma exceção " -":exc:`SyntaxError`, se não houver sintaxe equivalente). Para objetos que não" -" têm uma representação adequada para consumo humano, :func:`str` devolve o " -"mesmo valor que :func:`repr`. Muitos valores, tal como números ou " -"estruturas, como listas e dicionários, têm a mesma representação usando " -"quaisquer das funções. Strings, em particular, têm duas representações " -"distintas." +"A função :func:`str` serve para retornar representações de valores que sejam " +"legíveis para as pessoas, enquanto :func:`repr` é para gerar representações " +"que o interpretador Python consegue ler (ou levantará uma exceção :exc:" +"`SyntaxError`, se não houver sintaxe equivalente). Para objetos que não têm " +"uma representação adequada para consumo humano, :func:`str` devolve o mesmo " +"valor que :func:`repr`. Muitos valores, tal como números ou estruturas, como " +"listas e dicionários, têm a mesma representação usando quaisquer das " +"funções. Strings, em particular, têm duas representações distintas." #: ../../tutorial/inputoutput.rst:68 msgid "Some examples::" @@ -139,13 +139,13 @@ msgstr "Alguns exemplos:" #: ../../tutorial/inputoutput.rst:91 msgid "" "The :mod:`string` module contains a :class:`~string.Template` class that " -"offers yet another way to substitute values into strings, using placeholders" -" like ``$x`` and replacing them with values from a dictionary, but offers " +"offers yet another way to substitute values into strings, using placeholders " +"like ``$x`` and replacing them with values from a dictionary, but offers " "much less control of the formatting." msgstr "" "O módulo :mod:`string` contém uma classe :class:`~string.Template` que " -"oferece ainda outra maneira de substituir valores em strings, usando espaços" -" reservados como ``$x`` e substituindo-os por valores de um dicionário, mas " +"oferece ainda outra maneira de substituir valores em strings, usando espaços " +"reservados como ``$x`` e substituindo-os por valores de um dicionário, mas " "oferece muito menos controle da formatação." #: ../../tutorial/inputoutput.rst:100 @@ -161,8 +161,8 @@ msgid "" msgstr "" ":ref:`Strings literais formatadas ` (também chamadas f-strings, " "para abreviar) permite que se inclua o valor de expressões Python dentro de " -"uma string, prefixando-a com ``f`` ou ``F`` e escrevendo expressões na forma" -" ``{expression}``." +"uma string, prefixando-a com ``f`` ou ``F`` e escrevendo expressões na forma " +"``{expression}``." #: ../../tutorial/inputoutput.rst:107 msgid "" @@ -184,13 +184,13 @@ msgstr "" #: ../../tutorial/inputoutput.rst:126 msgid "" -"Other modifiers can be used to convert the value before it is formatted. " -"``'!a'`` applies :func:`ascii`, ``'!s'`` applies :func:`str`, and ``'!r'`` " +"Other modifiers can be used to convert the value before it is formatted. ``'!" +"a'`` applies :func:`ascii`, ``'!s'`` applies :func:`str`, and ``'!r'`` " "applies :func:`repr`::" msgstr "" "Outros modificadores podem ser usados para converter o valor antes de ser " -"formatado. ``'!a'`` aplica a função :func:`ascii`, ``'!s'`` aplica a função " -":func:`str` e ``'!r'`` aplica a função :func:`repr` ::" +"formatado. ``'!a'`` aplica a função :func:`ascii`, ``'!s'`` aplica a função :" +"func:`str` e ``'!r'`` aplica a função :func:`repr` ::" #: ../../tutorial/inputoutput.rst:136 msgid "" @@ -211,19 +211,19 @@ msgstr "Um uso básico do método :meth:`str.format` tem esta forma::" #: ../../tutorial/inputoutput.rst:149 msgid "" "The brackets and characters within them (called format fields) are replaced " -"with the objects passed into the :meth:`str.format` method. A number in the" -" brackets can be used to refer to the position of the object passed into the" -" :meth:`str.format` method. ::" +"with the objects passed into the :meth:`str.format` method. A number in the " +"brackets can be used to refer to the position of the object passed into the :" +"meth:`str.format` method. ::" msgstr "" "As chaves e seus conteúdos (chamados campos de formatação) são substituídos " "pelos objetos passados para o método :meth:`str.format`. Um número nas " -"chaves pode ser usado para referenciar a posição do objeto passado no método" -" :meth:`str.format`. ::" +"chaves pode ser usado para referenciar a posição do objeto passado no " +"método :meth:`str.format`. ::" #: ../../tutorial/inputoutput.rst:159 msgid "" -"If keyword arguments are used in the :meth:`str.format` method, their values" -" are referred to by using the name of the argument. ::" +"If keyword arguments are used in the :meth:`str.format` method, their values " +"are referred to by using the name of the argument. ::" msgstr "" "Se argumentos nomeados são passados para o método :meth:`str.format`, seus " "valores serão referenciados usando o nome do argumento::" @@ -254,8 +254,8 @@ msgstr "" #: ../../tutorial/inputoutput.rst:189 msgid "" -"This is particularly useful in combination with the built-in function " -":func:`vars`, which returns a dictionary containing all local variables." +"This is particularly useful in combination with the built-in function :func:" +"`vars`, which returns a dictionary containing all local variables." msgstr "" "Isto é particularmente útil em conjunto com a função embutida :func:`vars`, " "que devolve um dicionário contendo todas as variáveis locais." @@ -265,13 +265,13 @@ msgid "" "As an example, the following lines produce a tidily-aligned set of columns " "giving integers and their squares and cubes::" msgstr "" -"Como exemplo, as linhas seguintes produzem um conjunto de colunas alinhadas," -" com alguns inteiros e seus quadrados e cubos::" +"Como exemplo, as linhas seguintes produzem um conjunto de colunas alinhadas, " +"com alguns inteiros e seus quadrados e cubos::" #: ../../tutorial/inputoutput.rst:209 msgid "" -"For a complete overview of string formatting with :meth:`str.format`, see " -":ref:`formatstrings`." +"For a complete overview of string formatting with :meth:`str.format`, see :" +"ref:`formatstrings`." msgstr "" "Para uma visão completa da formatação de strings com :meth:`str.format`, " "veja a seção :ref:`formatstrings`." @@ -287,20 +287,20 @@ msgstr "" #: ../../tutorial/inputoutput.rst:234 msgid "" -"(Note that the one space between each column was added by the way " -":func:`print` works: it always adds spaces between its arguments.)" +"(Note that the one space between each column was added by the way :func:" +"`print` works: it always adds spaces between its arguments.)" msgstr "" -"(Note que o espaço entre cada coluna foi adicionado pela forma que a função " -":func:`print` funciona: sempre adiciona espaços entre seus argumentos.)" +"(Note que o espaço entre cada coluna foi adicionado pela forma que a função :" +"func:`print` funciona: sempre adiciona espaços entre seus argumentos.)" #: ../../tutorial/inputoutput.rst:237 msgid "" -"The :meth:`str.rjust` method of string objects right-justifies a string in a" -" field of a given width by padding it with spaces on the left. There are " +"The :meth:`str.rjust` method of string objects right-justifies a string in a " +"field of a given width by padding it with spaces on the left. There are " "similar methods :meth:`str.ljust` and :meth:`str.center`. These methods do " "not write anything, they just return a new string. If the input string is " -"too long, they don't truncate it, but return it unchanged; this will mess up" -" your column lay-out but that's usually better than the alternative, which " +"too long, they don't truncate it, but return it unchanged; this will mess up " +"your column lay-out but that's usually better than the alternative, which " "would be lying about a value. (If you really want truncation you can always " "add a slice operation, as in ``x.ljust(n)[:n]``.)" msgstr "" @@ -311,16 +311,16 @@ msgstr "" "string. Se a string de entrada é muito longa, os métodos não truncarão a " "saída, e retornarão a mesma string, sem mudança; isso vai atrapalhar o " "layout da coluna, mas geralmente é melhor do que a alternativa, que estaria " -"distorcendo o valor. (Se realmente quiser truncar, sempre se pode adicionar" -" uma operação de fatiamento, como em ``x.ljust(n)[:n]``.)" +"distorcendo o valor. (Se realmente quiser truncar, sempre se pode adicionar " +"uma operação de fatiamento, como em ``x.ljust(n)[:n]``.)" #: ../../tutorial/inputoutput.rst:246 msgid "" "There is another method, :meth:`str.zfill`, which pads a numeric string on " "the left with zeros. It understands about plus and minus signs::" msgstr "" -"Existe ainda o método :meth:`str.zfill` que preenche uma string numérica com" -" zeros à esquerda, e sabe lidar com sinais positivos e negativos::" +"Existe ainda o método :meth:`str.zfill` que preenche uma string numérica com " +"zeros à esquerda, e sabe lidar com sinais positivos e negativos::" #: ../../tutorial/inputoutput.rst:258 msgid "Old string formatting" @@ -328,8 +328,8 @@ msgstr "Formatação de strings à moda antiga" #: ../../tutorial/inputoutput.rst:260 msgid "" -"The ``%`` operator can also be used for string formatting. It interprets the" -" left argument much like a :c:func:`sprintf`\\ -style format string to be " +"The ``%`` operator can also be used for string formatting. It interprets the " +"left argument much like a :c:func:`sprintf`\\ -style format string to be " "applied to the right argument, and returns the string resulting from this " "formatting operation. For example::" msgstr "" @@ -359,8 +359,8 @@ msgstr "" #: ../../tutorial/inputoutput.rst:293 msgid "" -"The first argument is a string containing the filename. The second argument" -" is another string containing a few characters describing the way in which " +"The first argument is a string containing the filename. The second argument " +"is another string containing a few characters describing the way in which " "the file will be used. *mode* can be ``'r'`` when the file will only be " "read, ``'w'`` for only writing (an existing file with the same name will be " "erased), and ``'a'`` opens the file for appending; any data written to the " @@ -373,26 +373,26 @@ msgstr "" "como o arquivo será usado. *mode* pode ser ``'r'`` quando o arquivo será " "apenas lido, ``'w'`` para escrever (se o arquivo já existir seu conteúdo " "prévio será apagado), e ``'a'`` para abrir o arquivo para adição; qualquer " -"escrita será adicionada ao final do arquivo. A opção ``'r+'`` abre o arquivo" -" tanto para leitura como para escrita. O argumento *mode* é opcional, em " -"caso de omissão será assumido ``'r'``." +"escrita será adicionada ao final do arquivo. A opção ``'r+'`` abre o arquivo " +"tanto para leitura como para escrita. O argumento *mode* é opcional, em caso " +"de omissão será assumido ``'r'``." #: ../../tutorial/inputoutput.rst:302 msgid "" "Normally, files are opened in :dfn:`text mode`, that means, you read and " "write strings from and to the file, which are encoded in a specific " "encoding. If encoding is not specified, the default is platform dependent " -"(see :func:`open`). ``'b'`` appended to the mode opens the file in " -":dfn:`binary mode`: now the data is read and written in the form of bytes " +"(see :func:`open`). ``'b'`` appended to the mode opens the file in :dfn:" +"`binary mode`: now the data is read and written in the form of bytes " "objects. This mode should be used for all files that don't contain text." msgstr "" "Normalmente, arquivos são abertos em :dfn:`text mode`, ou seja, você lê e " "grava strings, de e para o arquivo, numa codificação específica. Se a " -"codificação não for especificada, o padrão é dependente da " -"plataforma/sistema operacional (consulte :func:`open`). Incluir ``'b'`` ao " -"*mode* abre o arquivo em :dfn:`binary mode`: os dados são lidos e escritos " -"na forma de bytes. Esse modo deve ser usado para todos os arquivos que não " -"contenham texto." +"codificação não for especificada, o padrão é dependente da plataforma/" +"sistema operacional (consulte :func:`open`). Incluir ``'b'`` ao *mode* abre " +"o arquivo em :dfn:`binary mode`: os dados são lidos e escritos na forma de " +"bytes. Esse modo deve ser usado para todos os arquivos que não contenham " +"texto." #: ../../tutorial/inputoutput.rst:309 msgid "" @@ -400,8 +400,8 @@ msgid "" "endings (``\\n`` on Unix, ``\\r\\n`` on Windows) to just ``\\n``. When " "writing in text mode, the default is to convert occurrences of ``\\n`` back " "to platform-specific line endings. This behind-the-scenes modification to " -"file data is fine for text files, but will corrupt binary data like that in " -":file:`JPEG` or :file:`EXE` files. Be very careful to use binary mode when " +"file data is fine for text files, but will corrupt binary data like that in :" +"file:`JPEG` or :file:`EXE` files. Be very careful to use binary mode when " "reading and writing such files." msgstr "" "Em modo texto, o padrão durante a leitura é converter terminadores de linha " @@ -409,17 +409,17 @@ msgstr "" "apenas ``\\n``. Ao escrever no modo de texto, o padrão é converter as " "ocorrências de ``\\n`` de volta para os finais de linha específicos da " "plataforma. Essa modificação de bastidores nos dados do arquivo é adequada " -"para arquivos de texto, mas corromperá dados binários, como arquivos " -":file:`JPEG` ou :file:`EXE`. Tenha muito cuidado para só usar o modo " -"binário, ao ler e gravar esses arquivos." +"para arquivos de texto, mas corromperá dados binários, como arquivos :file:" +"`JPEG` ou :file:`EXE`. Tenha muito cuidado para só usar o modo binário, ao " +"ler e gravar esses arquivos." #: ../../tutorial/inputoutput.rst:317 msgid "" "It is good practice to use the :keyword:`with` keyword when dealing with " "file objects. The advantage is that the file is properly closed after its " -"suite finishes, even if an exception is raised at some point. Using " -":keyword:`!with` is also much shorter than writing equivalent " -":keyword:`try`\\ -\\ :keyword:`finally` blocks::" +"suite finishes, even if an exception is raised at some point. Using :" +"keyword:`!with` is also much shorter than writing equivalent :keyword:`try`" +"\\ -\\ :keyword:`finally` blocks::" msgstr "" "É uma boa prática usar a palavra-chave :keyword:`with` ao lidar com " "arquivos. A vantagem é que o arquivo é fechado corretamente após o término " @@ -429,12 +429,12 @@ msgstr "" #: ../../tutorial/inputoutput.rst:328 msgid "" -"If you're not using the :keyword:`with` keyword, then you should call " -"``f.close()`` to close the file and immediately free up any system resources" -" used by it. If you don't explicitly close a file, Python's garbage " -"collector will eventually destroy the object and close the open file for " -"you, but the file may stay open for a while. Another risk is that different" -" Python implementations will do this clean-up at different times." +"If you're not using the :keyword:`with` keyword, then you should call ``f." +"close()`` to close the file and immediately free up any system resources " +"used by it. If you don't explicitly close a file, Python's garbage collector " +"will eventually destroy the object and close the open file for you, but the " +"file may stay open for a while. Another risk is that different Python " +"implementations will do this clean-up at different times." msgstr "" "Se você não estiver usando a palavra-chave :keyword:`with`, então você deve " "chamar ``f.close()`` para fechar o arquivo, e liberar imediatamente " @@ -469,27 +469,27 @@ msgstr "" #: ../../tutorial/inputoutput.rst:355 msgid "" "To read a file's contents, call ``f.read(size)``, which reads some quantity " -"of data and returns it as a string (in text mode) or bytes object (in binary" -" mode). *size* is an optional numeric argument. When *size* is omitted or " +"of data and returns it as a string (in text mode) or bytes object (in binary " +"mode). *size* is an optional numeric argument. When *size* is omitted or " "negative, the entire contents of the file will be read and returned; it's " "your problem if the file is twice as large as your machine's memory. " "Otherwise, at most *size* characters (in text mode) or *size* bytes (in " -"binary mode) are read and returned. If the end of the file has been reached," -" ``f.read()`` will return an empty string (``''``). ::" +"binary mode) are read and returned. If the end of the file has been reached, " +"``f.read()`` will return an empty string (``''``). ::" msgstr "" "Para ler o conteúdo de um arquivo, chame ``f.read(tamanho)``,que lê um " "punhado de dados devolvendo-os como uma string (em modo texto) ou bytes (em " -"modo binário). *tamanho* é um argumento numérico opcional. Quando *tamanho*" -" é omitido ou negativo, todo o conteúdo do arquivo é lido e devolvido; se o " +"modo binário). *tamanho* é um argumento numérico opcional. Quando *tamanho* " +"é omitido ou negativo, todo o conteúdo do arquivo é lido e devolvido; se o " "arquivo é duas vezes maior que memória da máquina, o problema é seu. Caso " -"contrário, no máximo *tamanho* caracteres (em modo texto) ou *tamanho* bytes" -" (em modo binário) são lidos e devolvidos. Se o fim do arquivo for atingido," -" ``f.read()``devolve uma string vazia (``''``). ::" +"contrário, no máximo *tamanho* caracteres (em modo texto) ou *tamanho* bytes " +"(em modo binário) são lidos e devolvidos. Se o fim do arquivo for atingido, " +"``f.read()``devolve uma string vazia (``''``). ::" #: ../../tutorial/inputoutput.rst:369 msgid "" -"``f.readline()`` reads a single line from the file; a newline character " -"(``\\n``) is left at the end of the string, and is only omitted on the last " +"``f.readline()`` reads a single line from the file; a newline character (``" +"\\n``) is left at the end of the string, and is only omitted on the last " "line of the file if the file doesn't end in a newline. This makes the " "return value unambiguous; if ``f.readline()`` returns an empty string, the " "end of the file has been reached, while a blank line is represented by " @@ -532,14 +532,14 @@ msgid "" "Other types of objects need to be converted -- either to a string (in text " "mode) or a bytes object (in binary mode) -- before writing them::" msgstr "" -"Outros tipos de objetos precisam ser convertidos -- seja para uma string (em" -" modo texto) ou para bytes (em modo binário) -- antes de escrevê-los::" +"Outros tipos de objetos precisam ser convertidos -- seja para uma string (em " +"modo texto) ou para bytes (em modo binário) -- antes de escrevê-los::" #: ../../tutorial/inputoutput.rst:409 msgid "" -"``f.tell()`` returns an integer giving the file object's current position in" -" the file represented as number of bytes from the beginning of the file when" -" in binary mode and an opaque number when in text mode." +"``f.tell()`` returns an integer giving the file object's current position in " +"the file represented as number of bytes from the beginning of the file when " +"in binary mode and an opaque number when in text mode." msgstr "" "``f.tell()`` retorna um inteiro dando a posição atual do objeto arquivo, no " "arquivo representado, como número de bytes desde o início do arquivo, no " @@ -549,8 +549,8 @@ msgstr "" msgid "" "To change the file object's position, use ``f.seek(offset, whence)``. The " "position is computed from adding *offset* to a reference point; the " -"reference point is selected by the *whence* argument. A *whence* value of 0" -" measures from the beginning of the file, 1 uses the current file position, " +"reference point is selected by the *whence* argument. A *whence* value of 0 " +"measures from the beginning of the file, 1 uses the current file position, " "and 2 uses the end of the file as the reference point. *whence* can be " "omitted and defaults to 0, using the beginning of the file as the reference " "point. ::" @@ -558,8 +558,8 @@ msgstr "" "Para mudar a posição, use ``f.seek(offset, de_onde)``. A nova posição é " "computada pela soma do deslocamento *offset* a um ponto de referência " "especificado pelo argumento *de-onde*. Se o valor de *de_onde* é 0,a " -"referência é o início do arquivo, 1 refere-se à posição atual, e 2 refere-se" -" ao fim do arquivo. Este argumento pode ser omitido e o valor padrão é 0, " +"referência é o início do arquivo, 1 refere-se à posição atual, e 2 refere-se " +"ao fim do arquivo. Este argumento pode ser omitido e o valor padrão é 0, " "usando o início do arquivo como referência. ::" #: ../../tutorial/inputoutput.rst:432 @@ -567,8 +567,8 @@ msgid "" "In text files (those opened without a ``b`` in the mode string), only seeks " "relative to the beginning of the file are allowed (the exception being " "seeking to the very file end with ``seek(0, 2)``) and the only valid " -"*offset* values are those returned from the ``f.tell()``, or zero. Any other" -" *offset* value produces undefined behaviour." +"*offset* values are those returned from the ``f.tell()``, or zero. Any other " +"*offset* value produces undefined behaviour." msgstr "" "Em arquivos texto (abertos sem um ``b``, em modo string), somente *seeks* " "relativos ao início do arquivo serão permitidos (exceto se for indicado o " @@ -578,12 +578,12 @@ msgstr "" #: ../../tutorial/inputoutput.rst:438 msgid "" -"File objects have some additional methods, such as :meth:`~file.isatty` and " -":meth:`~file.truncate` which are less frequently used; consult the Library " +"File objects have some additional methods, such as :meth:`~file.isatty` and :" +"meth:`~file.truncate` which are less frequently used; consult the Library " "Reference for a complete guide to file objects." msgstr "" -"Objetos arquivo tem alguns método adicionais, como :meth:`~file.isatty` e " -":meth:`~file.truncate` que não são usados com frequência; consulte a " +"Objetos arquivo tem alguns método adicionais, como :meth:`~file.isatty` e :" +"meth:`~file.truncate` que não são usados com frequência; consulte a " "Biblioteca de Referência para um guia completo de objetos arquivo." #: ../../tutorial/inputoutput.rst:446 @@ -600,32 +600,32 @@ msgid "" "serializing by hand becomes complicated." msgstr "" "Strings podem ser facilmente gravadas e lidas em um arquivo. Números dão um " -"pouco mais de trabalho, já que o método :meth:`read` só retorna strings, que" -" terão que ser passadas para uma função como :func:`int`, que pega uma " -"string como ``'123'`` e retorna seu valor numérico 123. Quando você deseja " -"salvar tipos de dados mais complexos, como listas e dicionários aninhados, a" -" análise e serialização manual tornam-se complicadas." +"pouco mais de trabalho, já que o método :meth:`read` só retorna strings, que " +"terão que ser passadas para uma função como :func:`int`, que pega uma string " +"como ``'123'`` e retorna seu valor numérico 123. Quando você deseja salvar " +"tipos de dados mais complexos, como listas e dicionários aninhados, a " +"análise e serialização manual tornam-se complicadas." #: ../../tutorial/inputoutput.rst:457 msgid "" "Rather than having users constantly writing and debugging code to save " "complicated data types to files, Python allows you to use the popular data " -"interchange format called `JSON (JavaScript Object Notation) " -"`_. The standard module called :mod:`json` can take Python" -" data hierarchies, and convert them to string representations; this process " -"is called :dfn:`serializing`. Reconstructing the data from the string " +"interchange format called `JSON (JavaScript Object Notation) `_. The standard module called :mod:`json` can take Python data " +"hierarchies, and convert them to string representations; this process is " +"called :dfn:`serializing`. Reconstructing the data from the string " "representation is called :dfn:`deserializing`. Between serializing and " "deserializing, the string representing the object may have been stored in a " "file or data, or sent over a network connection to some distant machine." msgstr "" "Ao invés de ter usuários constantemente escrevendo e depurando código para " -"gravar tipos complicados de dados em arquivos, o Python permite que se use o" -" popular formato de troca de dados chamado `JSON (JavaScript Object " -"Notation) `_. O módulo padrão chamado :mod:`json` pode " -"pegar hierarquias de dados em Python e convertê-las em representações de " -"strings; esse processo é chamado :dfn:`serialização`. Reconstruir os dados " -"estruturados da representação string é chamado :dfn:`desserialização`. Entre" -" serializar e desserializar, a string que representa o objeto pode ser " +"gravar tipos complicados de dados em arquivos, o Python permite que se use o " +"popular formato de troca de dados chamado `JSON (JavaScript Object Notation) " +"`_. O módulo padrão chamado :mod:`json` pode pegar " +"hierarquias de dados em Python e convertê-las em representações de strings; " +"esse processo é chamado :dfn:`serialização`. Reconstruir os dados " +"estruturados da representação string é chamado :dfn:`desserialização`. Entre " +"serializar e desserializar, a string que representa o objeto pode ser " "armazenada em um arquivo, ou estrutura de dados, ou enviada por uma conexão " "de rede para alguma outra máquina." @@ -649,9 +649,9 @@ msgstr "" #: ../../tutorial/inputoutput.rst:479 msgid "" -"Another variant of the :func:`~json.dumps` function, called " -":func:`~json.dump`, simply serializes the object to a :term:`text file`. So" -" if ``f`` is a :term:`text file` object opened for writing, we can do this::" +"Another variant of the :func:`~json.dumps` function, called :func:`~json." +"dump`, simply serializes the object to a :term:`text file`. So if ``f`` is " +"a :term:`text file` object opened for writing, we can do this::" msgstr "" "Outra variação da função :func:`~json.dumps`, chamada :func:`~json.dump`, " "serializa o objeto para um :term:`text file`. Se ``f`` é um :term:`text " @@ -659,11 +659,11 @@ msgstr "" #: ../../tutorial/inputoutput.rst:485 msgid "" -"To decode the object again, if ``f`` is a :term:`text file` object which has" -" been opened for reading::" +"To decode the object again, if ``f`` is a :term:`text file` object which has " +"been opened for reading::" msgstr "" -"Para decodificar o objeto novamente, se ``f`` é um :term:`text file` que foi" -" aberto para leitura::" +"Para decodificar o objeto novamente, se ``f`` é um :term:`text file` que foi " +"aberto para leitura::" #: ../../tutorial/inputoutput.rst:490 msgid "" diff --git a/tutorial/interactive.po b/tutorial/interactive.po index 11222245b..8a1f1bd84 100644 --- a/tutorial/interactive.po +++ b/tutorial/interactive.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -28,18 +30,17 @@ msgstr "Edição de entrada interativa e substituição de histórico" #: ../../tutorial/interactive.rst:7 msgid "" -"Some versions of the Python interpreter support editing of the current input" -" line and history substitution, similar to facilities found in the Korn " -"shell and the GNU Bash shell. This is implemented using the `GNU Readline`_" -" library, which supports various styles of editing. This library has its " -"own documentation which we won't duplicate here." +"Some versions of the Python interpreter support editing of the current input " +"line and history substitution, similar to facilities found in the Korn shell " +"and the GNU Bash shell. This is implemented using the `GNU Readline`_ " +"library, which supports various styles of editing. This library has its own " +"documentation which we won't duplicate here." msgstr "" "Algumas versões do interpretador Python suportam a edição da linha de " "entrada atual e a substituição da história, semelhante às habilidade " "encontradas no shell Korn e no shell GNU Bash. Isso é implementado usando a " "biblioteca `GNU Readline`_, que oferece suporte a vários estilos de edição. " -"Esta biblioteca possui sua própria documentação, que não vamos duplicar " -"aqui." +"Esta biblioteca possui sua própria documentação, que não vamos duplicar aqui." #: ../../tutorial/interactive.rst:17 msgid "Tab Completion and History Editing" @@ -53,15 +54,15 @@ msgid "" "current local variables, and the available module names. For dotted " "expressions such as ``string.a``, it will evaluate the expression up to the " "final ``'.'`` and then suggest completions from the attributes of the " -"resulting object. Note that this may execute application-defined code if an" -" object with a :meth:`__getattr__` method is part of the expression. The " -"default configuration also saves your history into a file named " -":file:`.python_history` in your user directory. The history will be " -"available again during the next interactive interpreter session." +"resulting object. Note that this may execute application-defined code if an " +"object with a :meth:`__getattr__` method is part of the expression. The " +"default configuration also saves your history into a file named :file:`." +"python_history` in your user directory. The history will be available again " +"during the next interactive interpreter session." msgstr "" "A conclusão dos nomes de variáveis e módulos é :ref: `ativado automaticamente na inicialização do interpretador para que a chave " -":kbd:` Tab` invoca a função de conclusão; Ele analisa os nomes das " +"config>automaticamente na inicialização do interpretador para que a chave :" +"kbd:` Tab` invoca a função de conclusão; Ele analisa os nomes das " "declarações Python, as variáveis locais atuais e os nomes dos módulos " "disponíveis. Para expressões pontilhadas como `` string.a``, ele avaliará a " "expressão até o `` '.'` final e então sugerirá conclusões dos atributos do " @@ -80,17 +81,17 @@ msgstr "Alternativas ao interpretador interativo" msgid "" "This facility is an enormous step forward compared to earlier versions of " "the interpreter; however, some wishes are left: It would be nice if the " -"proper indentation were suggested on continuation lines (the parser knows if" -" an indent token is required next). The completion mechanism might use the " +"proper indentation were suggested on continuation lines (the parser knows if " +"an indent token is required next). The completion mechanism might use the " "interpreter's symbol table. A command to check (or even suggest) matching " "parentheses, quotes, etc., would also be useful." msgstr "" "Esta facilidade é um enorme passo em frente em comparação com as versões " "anteriores do intérpretador; No entanto, alguns desejos são deixados: seria " "bom se a indentação adequada fosse sugerida nas linhas de continuação (o " -"analisador sabe se é necessário um token de recuo). O mecanismo de conclusão" -" pode usar a tabela de símbolos do intérprete. Um comando para verificar (ou" -" mesmo sugerir) parênteses, citações, etc., também seria útil." +"analisador sabe se é necessário um token de recuo). O mecanismo de conclusão " +"pode usar a tabela de símbolos do intérprete. Um comando para verificar (ou " +"mesmo sugerir) parênteses, citações, etc., também seria útil." #: ../../tutorial/interactive.rst:45 msgid "" @@ -101,7 +102,7 @@ msgid "" "interactive environment is bpython_." msgstr "" "Um intérprete interativo aprimorado e alternativo que existe há algum tempo " -"é o IPython_, que apresenta a conclusão da guia, a exploração de objetos e o" -" gerenciamento de histórico avançado. Também pode ser completamente " +"é o IPython_, que apresenta a conclusão da guia, a exploração de objetos e o " +"gerenciamento de histórico avançado. Também pode ser completamente " "personalizado e incorporado em outras aplicações. Outro ambiente interativo " "aprimorado similar é bpython_." diff --git a/tutorial/interpreter.po b/tutorial/interpreter.po index 638d94ffb..13e406d9a 100644 --- a/tutorial/interpreter.po +++ b/tutorial/interpreter.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Hildeberto Abreu Magalhães , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-06 03:59+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,53 +35,53 @@ msgstr "Chamando o interpretador" #: ../../tutorial/interpreter.rst:13 msgid "" -"The Python interpreter is usually installed as " -":file:`/usr/local/bin/python3.7` on those machines where it is available; " -"putting :file:`/usr/local/bin` in your Unix shell's search path makes it " -"possible to start it by typing the command:" +"The Python interpreter is usually installed as :file:`/usr/local/bin/" +"python3.7` on those machines where it is available; putting :file:`/usr/" +"local/bin` in your Unix shell's search path makes it possible to start it by " +"typing the command:" msgstr "" -"O interpretador Python geralmente está instalado como " -":file:`/usr/local/bin/python3.7` nas máquinas onde está disponível; " -"colocando :file:`/usr/local/bin` no caminho de busca do seu shell Unix torna" -" possível iniciá-lo digitando o comando:" +"O interpretador Python geralmente está instalado como :file:`/usr/local/bin/" +"python3.7` nas máquinas onde está disponível; colocando :file:`/usr/local/" +"bin` no caminho de busca do seu shell Unix torna possível iniciá-lo " +"digitando o comando:" #: ../../tutorial/interpreter.rst:21 msgid "" "to the shell. [#]_ Since the choice of the directory where the interpreter " "lives is an installation option, other places are possible; check with your " -"local Python guru or system administrator. (E.g., :file:`/usr/local/python`" -" is a popular alternative location.)" +"local Python guru or system administrator. (E.g., :file:`/usr/local/python` " +"is a popular alternative location.)" msgstr "" "para o shell. [#]_ Como a escolha do diretório onde o interpretador está é " -"uma opção de instalação, outros locais são possíveis; verifique com seu guru" -" Python ou administrador do sistema local. (Por exemplo, " -":file:`/usr/local/python` é um local alternativo popular.)" +"uma opção de instalação, outros locais são possíveis; verifique com seu guru " +"Python ou administrador do sistema local. (Por exemplo, :file:`/usr/local/" +"python` é um local alternativo popular.)" #: ../../tutorial/interpreter.rst:26 msgid "" -"On Windows machines where you have installed Python from the :ref:`Microsoft" -" Store `, the :file:`python3.7` command will be available. If" -" you have the :ref:`py.exe launcher ` installed, you can use the " -":file:`py` command. See :ref:`setting-envvars` for other ways to launch " +"On Windows machines where you have installed Python from the :ref:`Microsoft " +"Store `, the :file:`python3.7` command will be available. If " +"you have the :ref:`py.exe launcher ` installed, you can use the :" +"file:`py` command. See :ref:`setting-envvars` for other ways to launch " "Python." msgstr "" #: ../../tutorial/interpreter.rst:31 msgid "" "Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` " -"on Windows) at the primary prompt causes the interpreter to exit with a zero" -" exit status. If that doesn't work, you can exit the interpreter by typing " +"on Windows) at the primary prompt causes the interpreter to exit with a zero " +"exit status. If that doesn't work, you can exit the interpreter by typing " "the following command: ``quit()``." msgstr "" -"Digitando um caractere fim-de-arquivo (:kbd:`Control-D` no Unix, " -":kbd:`Control-Z` no Windows) diretamente no prompt força o interpretador a " -"sair com status de saída zero. Se isso não funcionar, você pode sair do " +"Digitando um caractere fim-de-arquivo (:kbd:`Control-D` no Unix, :kbd:" +"`Control-Z` no Windows) diretamente no prompt força o interpretador a sair " +"com status de saída zero. Se isso não funcionar, você pode sair do " "interpretador digitando o seguinte comando: ``quit()``." #: ../../tutorial/interpreter.rst:36 msgid "" -"The interpreter's line-editing features include interactive editing, history" -" substitution and code completion on systems that support the `GNU Readline " +"The interpreter's line-editing features include interactive editing, history " +"substitution and code completion on systems that support the `GNU Readline " "`_ library. Perhaps " "the quickest check to see whether command line editing is supported is " "typing :kbd:`Control-P` to the first Python prompt you get. If it beeps, " @@ -91,15 +92,14 @@ msgid "" msgstr "" "Os recursos de edição de linha do interpretador incluem edição interativa, " "substituição de histórico e complemento de código, em sistemas que suportam " -"a biblioteca `GNU Readline " -"`_. Talvez a " -"verificação mais rápida, para ver se a edição de linha de comando é " -"suportada, é digitando :kbd:`Control-P` no primeiro prompt oferecido pelo " -"Python. Se for emitido um bipe, você terá a edição da linha de comando; veja" -" Apêndice :ref:`tut-interacting` para uma introdução às combinações. Se nada" -" acontecer, ou se ``^P`` aparecer na tela, a edição da linha de comando não " -"está disponível; você só poderá usar backspace para remover caracteres da " -"linha atual." +"a biblioteca `GNU Readline `_. Talvez a verificação mais rápida, para ver se a edição de linha de " +"comando é suportada, é digitando :kbd:`Control-P` no primeiro prompt " +"oferecido pelo Python. Se for emitido um bipe, você terá a edição da linha " +"de comando; veja Apêndice :ref:`tut-interacting` para uma introdução às " +"combinações. Se nada acontecer, ou se ``^P`` aparecer na tela, a edição da " +"linha de comando não está disponível; você só poderá usar backspace para " +"remover caracteres da linha atual." #: ../../tutorial/interpreter.rst:46 msgid "" @@ -110,24 +110,23 @@ msgid "" msgstr "" "O interpretador trabalha de forma semelhante a uma shell de UNIX: quando " "chamado com a saída padrão conectada a um console de terminal, ele lê e " -"executa comandos interativamente; quando chamado com um nome de arquivo como" -" argumento, ou com redirecionamento da entrada padrão para ler um arquivo, o" -" interpretador lê e executa o *script* contido no arquivo." +"executa comandos interativamente; quando chamado com um nome de arquivo como " +"argumento, ou com redirecionamento da entrada padrão para ler um arquivo, o " +"interpretador lê e executa o *script* contido no arquivo." #: ../../tutorial/interpreter.rst:51 msgid "" -"A second way of starting the interpreter is ``python -c command [arg] ...``," -" which executes the statement(s) in *command*, analogous to the shell's " -":option:`-c` option. Since Python statements often contain spaces or other " +"A second way of starting the interpreter is ``python -c command [arg] ...``, " +"which executes the statement(s) in *command*, analogous to the shell's :" +"option:`-c` option. Since Python statements often contain spaces or other " "characters that are special to the shell, it is usually advised to quote " "*command* in its entirety with single quotes." msgstr "" -"Uma segunda forma de rodar o interpretador é ``python -c command [arg] " -"...``, que executa um ou mais comandos especificados na posição *comando*, " -"analogamente à opção de shell :option:`-c`. Considerando que comandos Python" -" frequentemente têm espaços em branco (ou outros caracteres que são " -"especiais para a shell) é aconselhável que o *comando* esteja dentro de " -"aspas duplas." +"Uma segunda forma de rodar o interpretador é ``python -c command [arg] ..." +"``, que executa um ou mais comandos especificados na posição *comando*, " +"analogamente à opção de shell :option:`-c`. Considerando que comandos Python " +"frequentemente têm espaços em branco (ou outros caracteres que são especiais " +"para a shell) é aconselhável que o *comando* esteja dentro de aspas duplas." #: ../../tutorial/interpreter.rst:57 msgid "" @@ -143,8 +142,8 @@ msgstr "" #: ../../tutorial/interpreter.rst:61 msgid "" "When a script file is used, it is sometimes useful to be able to run the " -"script and enter interactive mode afterwards. This can be done by passing " -":option:`-i` before the script." +"script and enter interactive mode afterwards. This can be done by passing :" +"option:`-i` before the script." msgstr "" "Quando um arquivo de script é utilizado, as vezes é útil executá-lo e logo " "em seguida entrar em modo interativo. Isto pode ser feito acrescentando o " @@ -153,8 +152,7 @@ msgstr "" #: ../../tutorial/interpreter.rst:65 msgid "All command line options are described in :ref:`using-on-general`." msgstr "" -"Todas as opções de linha de comando são descritas em :ref:`using-on-" -"general`." +"Todas as opções de linha de comando são descritas em :ref:`using-on-general`." #: ../../tutorial/interpreter.rst:71 msgid "Argument Passing" @@ -166,26 +164,26 @@ msgid "" "thereafter are turned into a list of strings and assigned to the ``argv`` " "variable in the ``sys`` module. You can access this list by executing " "``import sys``. The length of the list is at least one; when no script and " -"no arguments are given, ``sys.argv[0]`` is an empty string. When the script" -" name is given as ``'-'`` (meaning standard input), ``sys.argv[0]`` is set " +"no arguments are given, ``sys.argv[0]`` is an empty string. When the script " +"name is given as ``'-'`` (meaning standard input), ``sys.argv[0]`` is set " "to ``'-'``. When :option:`-c` *command* is used, ``sys.argv[0]`` is set to " "``'-c'``. When :option:`-m` *module* is used, ``sys.argv[0]`` is set to " "the full name of the located module. Options found after :option:`-c` " "*command* or :option:`-m` *module* are not consumed by the Python " -"interpreter's option processing but left in ``sys.argv`` for the command or" -" module to handle." +"interpreter's option processing but left in ``sys.argv`` for the command or " +"module to handle." msgstr "" "Quando são de conhecimento do interpretador, o nome do script e demais " "argumentos da linha de comando da shell são acessíveis ao próprio script " "através da variável ``argv`` do módulo ``sys``. Pode-se acessar essa lista " "executando ``import sys``. Essa lista tem sempre ao menos um elemento; " -"quando nenhum script ou argumento for passado para o interpretador, " -"``sys.argv[0]`` será uma string vazia. Quando o nome do script for ``'-'`` " +"quando nenhum script ou argumento for passado para o interpretador, ``sys." +"argv[0]`` será uma string vazia. Quando o nome do script for ``'-'`` " "(significando entrada padrão), o conteúdo de ``sys.argv[0]`` será ``'-'``. " -"Quando for utilizado :option:`-c` *comando*, ``sys.argv[0]`` conterá " -"``'-c'``. Quando for utilizado :option:`-m` *módulo*, ``sys.argv[0]`` " -"conterá o caminho completo do módulo localizado. Opções especificadas após " -":option:`-c` *comando* ou :option:`-m` *módulo* não serão consumidas pelo " +"Quando for utilizado :option:`-c` *comando*, ``sys.argv[0]`` conterá ``'-" +"c'``. Quando for utilizado :option:`-m` *módulo*, ``sys.argv[0]`` conterá o " +"caminho completo do módulo localizado. Opções especificadas após :option:`-" +"c` *comando* ou :option:`-m` *módulo* não serão consumidas pelo " "interpretador mas deixadas em ``sys.argv`` para serem tratadas pelo comando " "ou módulo." @@ -199,12 +197,12 @@ msgid "" "*interactive mode*. In this mode it prompts for the next command with the " "*primary prompt*, usually three greater-than signs (``>>>``); for " "continuation lines it prompts with the *secondary prompt*, by default three " -"dots (``...``). The interpreter prints a welcome message stating its version" -" number and a copyright notice before printing the first prompt:" +"dots (``...``). The interpreter prints a welcome message stating its version " +"number and a copyright notice before printing the first prompt:" msgstr "" -"Quando os comandos são lidos a partir do console, diz-se que o interpretador" -" está em modo interativo. Nesse modo ele solicita um próximo comando através" -" do *prompt primário*, tipicamente três sinais de maior (``>>>``); para " +"Quando os comandos são lidos a partir do console, diz-se que o interpretador " +"está em modo interativo. Nesse modo ele solicita um próximo comando através " +"do *prompt primário*, tipicamente três sinais de maior (``>>>``); para " "linhas de continuação do comando atual, o *prompt secundário* padrão é " "formado por três pontos (``...``). O interpretador exibe uma mensagem de " "boas vindas, informando seu número de versão e um aviso de copyright antes " @@ -235,17 +233,17 @@ msgstr "Edição de Código Fonte" msgid "" "By default, Python source files are treated as encoded in UTF-8. In that " "encoding, characters of most languages in the world can be used " -"simultaneously in string literals, identifiers and comments --- although the" -" standard library only uses ASCII characters for identifiers, a convention " +"simultaneously in string literals, identifiers and comments --- although the " +"standard library only uses ASCII characters for identifiers, a convention " "that any portable code should follow. To display all these characters " -"properly, your editor must recognize that the file is UTF-8, and it must use" -" a font that supports all the characters in the file." +"properly, your editor must recognize that the file is UTF-8, and it must use " +"a font that supports all the characters in the file." msgstr "" "Por padrão, arquivos fonte de Python são tratados com codificação UTF-8. " "Nessa codificação, caracteres de muitos idiomas no mundo podem ser usados " "simultaneamente em literais string, identificadores e comentários --- " -"embora a biblioteca padrão use apenas caracteres ASCII para identificadores," -" uma convenção que qualquer código portável deve seguir. Para exibir todos " +"embora a biblioteca padrão use apenas caracteres ASCII para identificadores, " +"uma convenção que qualquer código portável deve seguir. Para exibir todos " "esses caracteres corretamente, seu editor deve reconhecer que o arquivo é " "UTF-8 e deve usar uma fonte que suporte todos os caracteres no arquivo." @@ -259,10 +257,8 @@ msgstr "" "essa::" #: ../../tutorial/interpreter.rst:145 -msgid "" -"where *encoding* is one of the valid :mod:`codecs` supported by Python." -msgstr "" -"onde *encoding* é uma das :mod:`codecs` válidas suportada pelo Python." +msgid "where *encoding* is one of the valid :mod:`codecs` supported by Python." +msgstr "onde *encoding* é uma das :mod:`codecs` válidas suportada pelo Python." #: ../../tutorial/interpreter.rst:147 msgid "" @@ -274,8 +270,8 @@ msgstr "" #: ../../tutorial/interpreter.rst:152 msgid "" -"One exception to the *first line* rule is when the source code starts with a" -" :ref:`UNIX \"shebang\" line `. In this case, the encoding " +"One exception to the *first line* rule is when the source code starts with " +"a :ref:`UNIX \"shebang\" line `. In this case, the encoding " "declaration should be added as the second line of the file. For example::" msgstr "" "Uma exceção para a regra da *primeira linha* é quando o código fonte inicia " diff --git a/tutorial/introduction.po b/tutorial/introduction.po index 27c1258f5..711743f85 100644 --- a/tutorial/introduction.po +++ b/tutorial/introduction.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Adson Rodrigues , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-06 11:31+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,15 +33,15 @@ msgstr "Uma introdução informal ao Python" msgid "" "In the following examples, input and output are distinguished by the " "presence or absence of prompts (:term:`>>>` and :term:`...`): to repeat the " -"example, you must type everything after the prompt, when the prompt appears;" -" lines that do not begin with a prompt are output from the interpreter. Note" -" that a secondary prompt on a line by itself in an example means you must " +"example, you must type everything after the prompt, when the prompt appears; " +"lines that do not begin with a prompt are output from the interpreter. Note " +"that a secondary prompt on a line by itself in an example means you must " "type a blank line; this is used to end a multi-line command." msgstr "" "Nos exemplos seguintes, pode-se distinguir entrada e saída pela presença ou " "ausência dos prompts (``>>>`` e ``...``): para repetir o exemplo, você deve " -"digitar tudo após o prompt, quando o mesmo aparece; linhas que não começarem" -" com um prompt são na verdade as saídas geradas pelo interpretador. Observe " +"digitar tudo após o prompt, quando o mesmo aparece; linhas que não começarem " +"com um prompt são na verdade as saídas geradas pelo interpretador. Observe " "que quando aparece uma linha contendo apenas o prompt secundário ``...`` " "você deve digitar uma linha em branco; é assim que se encerra um comando de " "múltiplas linhas." @@ -48,12 +49,12 @@ msgstr "" #: ../../tutorial/introduction.rst:16 msgid "" "Many of the examples in this manual, even those entered at the interactive " -"prompt, include comments. Comments in Python start with the hash character," -" ``#``, and extend to the end of the physical line. A comment may appear at" -" the start of a line or following whitespace or code, but not within a " -"string literal. A hash character within a string literal is just a hash " -"character. Since comments are to clarify code and are not interpreted by " -"Python, they may be omitted when typing in examples." +"prompt, include comments. Comments in Python start with the hash character, " +"``#``, and extend to the end of the physical line. A comment may appear at " +"the start of a line or following whitespace or code, but not within a string " +"literal. A hash character within a string literal is just a hash character. " +"Since comments are to clarify code and are not interpreted by Python, they " +"may be omitted when typing in examples." msgstr "" "Muitos exemplos neste manual, mesmo aqueles inscritos na linha de comando " "interativa, incluem comentários. Comentários em Python começam com o " @@ -77,8 +78,8 @@ msgid "" "Let's try some simple Python commands. Start the interpreter and wait for " "the primary prompt, ``>>>``. (It shouldn't take long.)" msgstr "" -"Vamos experimentar alguns comandos simples em Python. Inicie o interpretador" -" e aguarde o prompt primário, ``>>>``. (Não deve demorar muito.)" +"Vamos experimentar alguns comandos simples em Python. Inicie o interpretador " +"e aguarde o prompt primário, ``>>>``. (Não deve demorar muito.)" #: ../../tutorial/introduction.rst:44 msgid "Numbers" @@ -92,8 +93,8 @@ msgid "" "languages (for example, Pascal or C); parentheses (``()``) can be used for " "grouping. For example::" msgstr "" -"O interpretador funciona como uma calculadora bem simples: você pode digitar" -" uma expressão e o resultado será apresentado. A sintaxe de expressões é a " +"O interpretador funciona como uma calculadora bem simples: você pode digitar " +"uma expressão e o resultado será apresentado. A sintaxe de expressões é a " "usual: operadores ``+``, ``-``, ``*`` e ``/`` funcionam da mesma forma que " "em outras linguagens tradicionais (por exemplo, Pascal ou C); parênteses " "(``()``) podem ser usados para agrupar expressões. Por exemplo::" @@ -101,24 +102,23 @@ msgstr "" #: ../../tutorial/introduction.rst:61 msgid "" "The integer numbers (e.g. ``2``, ``4``, ``20``) have type :class:`int`, the " -"ones with a fractional part (e.g. ``5.0``, ``1.6``) have type " -":class:`float`. We will see more about numeric types later in the tutorial." +"ones with a fractional part (e.g. ``5.0``, ``1.6``) have type :class:" +"`float`. We will see more about numeric types later in the tutorial." msgstr "" "Os números inteiros (ex. ``2``, ``4``, ``20``) são do tipo :class:`int`, " -"aqueles com parte fracionária (ex. ``5.0``, ``1.6``) são do tipo " -":class:`float`. Veremos mais sobre tipos numéricos posteriormente neste " -"tutorial." +"aqueles com parte fracionária (ex. ``5.0``, ``1.6``) são do tipo :class:" +"`float`. Veremos mais sobre tipos numéricos posteriormente neste tutorial." #: ../../tutorial/introduction.rst:65 msgid "" "Division (``/``) always returns a float. To do :term:`floor division` and " -"get an integer result (discarding any fractional result) you can use the " -"``//`` operator; to calculate the remainder you can use ``%``::" +"get an integer result (discarding any fractional result) you can use the ``//" +"`` operator; to calculate the remainder you can use ``%``::" msgstr "" -"Divisão (``/``) sempre retorna ponto flutuante (float). Para fazer uma " -":term:`divisão pelo piso` e receber um inteiro como resultado (descartando a" -" parte fracionária) você pode usar o operador ``//``; para calcular o resto " -"você pode usar o ``%``::" +"Divisão (``/``) sempre retorna ponto flutuante (float). Para fazer uma :term:" +"`divisão pelo piso` e receber um inteiro como resultado (descartando a parte " +"fracionária) você pode usar o operador ``//``; para calcular o resto você " +"pode usar o ``%``::" #: ../../tutorial/introduction.rst:79 msgid "" @@ -146,16 +146,16 @@ msgstr "" #: ../../tutorial/introduction.rst:102 msgid "" -"There is full support for floating point; operators with mixed type operands" -" convert the integer operand to floating point::" +"There is full support for floating point; operators with mixed type operands " +"convert the integer operand to floating point::" msgstr "" -"Há suporte completo para ponto flutuante (*float*); operadores com operandos" -" de diferentes tipos convertem o inteiro para ponto flutuante:" +"Há suporte completo para ponto flutuante (*float*); operadores com operandos " +"de diferentes tipos convertem o inteiro para ponto flutuante:" #: ../../tutorial/introduction.rst:108 msgid "" -"In interactive mode, the last printed expression is assigned to the variable" -" ``_``. This means that when you are using Python as a desk calculator, it " +"In interactive mode, the last printed expression is assigned to the variable " +"``_``. This means that when you are using Python as a desk calculator, it " "is somewhat easier to continue calculations, for example::" msgstr "" "No modo interativo, o valor da última expressão exibida é atribuída a " @@ -165,26 +165,26 @@ msgstr "" #: ../../tutorial/introduction.rst:121 msgid "" "This variable should be treated as read-only by the user. Don't explicitly " -"assign a value to it --- you would create an independent local variable with" -" the same name masking the built-in variable with its magic behavior." +"assign a value to it --- you would create an independent local variable with " +"the same name masking the built-in variable with its magic behavior." msgstr "" "Essa variável especial deve ser tratada como *somente para leitura* pelo " -"usuário. Nunca lhe atribua explicitamente um valor --- do contrário, estaria" -" criando uma outra variável (homônima) independente, que mascararia a " +"usuário. Nunca lhe atribua explicitamente um valor --- do contrário, estaria " +"criando uma outra variável (homônima) independente, que mascararia a " "variável especial com seu comportamento mágico." #: ../../tutorial/introduction.rst:125 msgid "" "In addition to :class:`int` and :class:`float`, Python supports other types " -"of numbers, such as :class:`~decimal.Decimal` and " -":class:`~fractions.Fraction`. Python also has built-in support for " -":ref:`complex numbers `, and uses the ``j`` or ``J`` suffix to" -" indicate the imaginary part (e.g. ``3+5j``)." +"of numbers, such as :class:`~decimal.Decimal` and :class:`~fractions." +"Fraction`. Python also has built-in support for :ref:`complex numbers " +"`, and uses the ``j`` or ``J`` suffix to indicate the " +"imaginary part (e.g. ``3+5j``)." msgstr "" "Além de :class:`int` e :class:`float`, o Python suporta outros tipos de " -"números, tais como :class:`~decimal.Decimal` e :class:`~fractions.Fraction`." -" O Python também possui suporte nativo a :ref:`complex numbers 1`, e usa os" -" sufixos ``j`` ou ``J`` para indicar a parte imaginária (por exemplo, " +"números, tais como :class:`~decimal.Decimal` e :class:`~fractions.Fraction`. " +"O Python também possui suporte nativo a :ref:`complex numbers 1`, e usa os " +"sufixos ``j`` ou ``J`` para indicar a parte imaginária (por exemplo, " "``3+5j``)." #: ../../tutorial/introduction.rst:135 @@ -205,8 +205,8 @@ msgstr "" #: ../../tutorial/introduction.rst:155 msgid "" "In the interactive interpreter, the output string is enclosed in quotes and " -"special characters are escaped with backslashes. While this might sometimes" -" look different from the input (the enclosing quotes could change), the two " +"special characters are escaped with backslashes. While this might sometimes " +"look different from the input (the enclosing quotes could change), the two " "strings are equivalent. The string is enclosed in double quotes if the " "string contains a single quote and no double quotes, otherwise it is " "enclosed in single quotes. The :func:`print` function produces a more " @@ -216,15 +216,15 @@ msgstr "" "Na interpretação interativa, a string de saída é delimitada com aspas e " "caracteres especiais são escapados com barras invertidas. Embora isso possa " "às vezes parecer diferente da entrada (as aspas podem mudar), as duas " -"strings são equivalentes. A string é delimitada com aspas duplas se a string" -" contiver uma única aspa simples e nenhuma aspa dupla, caso contrário, ela é" -" delimitada com aspas simples. A função :func:`print` produz uma saída mais " +"strings são equivalentes. A string é delimitada com aspas duplas se a string " +"contiver uma única aspa simples e nenhuma aspa dupla, caso contrário, ela é " +"delimitada com aspas simples. A função :func:`print` produz uma saída mais " "legível, ao omitir as aspas e ao imprimir caracteres escapados e especiais::" #: ../../tutorial/introduction.rst:175 msgid "" -"If you don't want characters prefaced by ``\\`` to be interpreted as special" -" characters, you can use *raw strings* by adding an ``r`` before the first " +"If you don't want characters prefaced by ``\\`` to be interpreted as special " +"characters, you can use *raw strings* by adding an ``r`` before the first " "quote::" msgstr "" "Se não quiseres que os caracteres sejam precedidos por ``\\`` para serem " @@ -234,10 +234,10 @@ msgstr "" #: ../../tutorial/introduction.rst:185 msgid "" -"String literals can span multiple lines. One way is using triple-quotes: " -"``\"\"\"...\"\"\"`` or ``'''...'''``. End of lines are automatically " -"included in the string, but it's possible to prevent this by adding a ``\\``" -" at the end of the line. The following example::" +"String literals can span multiple lines. One way is using triple-quotes: ``" +"\"\"\"...\"\"\"`` or ``'''...'''``. End of lines are automatically included " +"in the string, but it's possible to prevent this by adding a ``\\`` at the " +"end of the line. The following example::" msgstr "" "As strings literais podem abranger várias linhas. Uma maneira é usar as " "aspas triplas: ``\"\"\"...\"\"\"`` ou ``'''...'''``. O fim das linhas é " @@ -271,33 +271,29 @@ msgstr "" msgid "" "This feature is particularly useful when you want to break long strings::" msgstr "" -"Esse recurso é particularmente útil quando você quer quebrar strings " -"longas::" +"Esse recurso é particularmente útil quando você quer quebrar strings longas::" #: ../../tutorial/introduction.rst:224 msgid "" -"This only works with two literals though, not with variables or " -"expressions::" +"This only works with two literals though, not with variables or expressions::" msgstr "" -"Isso só funciona com duas strings literais, não com variáveis ou " -"expressões::" +"Isso só funciona com duas strings literais, não com variáveis ou expressões::" #: ../../tutorial/introduction.rst:238 msgid "" -"If you want to concatenate variables or a variable and a literal, use " -"``+``::" +"If you want to concatenate variables or a variable and a literal, use ``+``::" msgstr "" -"Se você quiser concatenar variáveis ou uma variável e uma literal, use " -"``+``::" +"Se você quiser concatenar variáveis ou uma variável e uma literal, use ``" +"+``::" #: ../../tutorial/introduction.rst:243 msgid "" "Strings can be *indexed* (subscripted), with the first character having " -"index 0. There is no separate character type; a character is simply a string" -" of size one::" +"index 0. There is no separate character type; a character is simply a string " +"of size one::" msgstr "" -"As strings podem ser *indexadas* (subscritas), com o primeiro caractere como" -" índice 0. Não existe um tipo específico para caracteres; um caractere é " +"As strings podem ser *indexadas* (subscritas), com o primeiro caractere como " +"índice 0. Não existe um tipo específico para caracteres; um caractere é " "simplesmente uma string cujo tamanho é 1::" #: ../../tutorial/introduction.rst:253 @@ -309,8 +305,7 @@ msgstr "" #: ../../tutorial/introduction.rst:262 msgid "Note that since -0 is the same as 0, negative indices start from -1." -msgstr "" -"Note que dado que -0 é o mesmo que 0, índices negativos começam em -1." +msgstr "Note que dado que -0 é o mesmo que 0, índices negativos começam em -1." #: ../../tutorial/introduction.rst:264 msgid "" @@ -332,8 +327,8 @@ msgstr "" #: ../../tutorial/introduction.rst:280 msgid "" -"Slice indices have useful defaults; an omitted first index defaults to zero," -" an omitted second index defaults to the size of the string being sliced. ::" +"Slice indices have useful defaults; an omitted first index defaults to zero, " +"an omitted second index defaults to the size of the string being sliced. ::" msgstr "" "Os índices do fatiamento possuem padrões úteis; um primeiro índice omitido " "padrão é zero, um segundo índice omitido é por padrão o tamanho da string " @@ -346,8 +341,8 @@ msgid "" "Then the right edge of the last character of a string of *n* characters has " "index *n*, for example::" msgstr "" -"Uma maneira de lembrar como fatias funcionam é pensar que os índices indicam" -" posições *entre* caracteres, onde a borda esquerda do primeiro caractere é " +"Uma maneira de lembrar como fatias funcionam é pensar que os índices indicam " +"posições *entre* caracteres, onde a borda esquerda do primeiro caractere é " "0. Assim, a borda direita do último caractere de uma string de comprimento " "*n* tem índice *n*, por exemplo::" @@ -355,8 +350,8 @@ msgstr "" msgid "" "The first row of numbers gives the position of the indices 0...6 in the " "string; the second row gives the corresponding negative indices. The slice " -"from *i* to *j* consists of all characters between the edges labeled *i* and" -" *j*, respectively." +"from *i* to *j* consists of all characters between the edges labeled *i* and " +"*j*, respectively." msgstr "" "A primeira fileira de números indica a posição dos índices 0...6 na string; " "a segunda fileira indica a posição dos respectivos índices negativos. Uma " @@ -394,9 +389,9 @@ msgid "" "Python strings cannot be changed --- they are :term:`immutable`. Therefore, " "assigning to an indexed position in the string results in an error::" msgstr "" -"As strings do Python não podem ser alteradas --- uma string é " -":term:`imutável`. Portanto, atribuir a uma posição indexada na sequência " -"resulta em um erro::" +"As strings do Python não podem ser alteradas --- uma string é :term:" +"`imutável`. Portanto, atribuir a uma posição indexada na sequência resulta " +"em um erro::" #: ../../tutorial/introduction.rst:337 msgid "If you need a different string, you should create a new one::" @@ -465,11 +460,10 @@ msgstr "Listas" #: ../../tutorial/introduction.rst:377 msgid "" -"Python knows a number of *compound* data types, used to group together other" -" values. The most versatile is the *list*, which can be written as a list " -"of comma-separated values (items) between square brackets. Lists might " -"contain items of different types, but usually the items all have the same " -"type. ::" +"Python knows a number of *compound* data types, used to group together other " +"values. The most versatile is the *list*, which can be written as a list of " +"comma-separated values (items) between square brackets. Lists might contain " +"items of different types, but usually the items all have the same type. ::" msgstr "" "Python inclui diversas estruturas de dados *compostas*, usadas para agrupar " "outros valores. A mais versátil é *list* (lista), que pode ser escrita como " @@ -503,16 +497,16 @@ msgid "" "Unlike strings, which are :term:`immutable`, lists are a :term:`mutable` " "type, i.e. it is possible to change their content::" msgstr "" -"Diferentemente de strings, que são *imutáveis*, é possível alterar elementos" -" individuais de uma lista::" +"Diferentemente de strings, que são *imutáveis*, é possível alterar elementos " +"individuais de uma lista::" #: ../../tutorial/introduction.rst:417 msgid "" -"You can also add new items at the end of the list, by using the " -":meth:`~list.append` *method* (we will see more about methods later)::" +"You can also add new items at the end of the list, by using the :meth:`~list." +"append` *method* (we will see more about methods later)::" msgstr "" -"Você também pode adicionar novos itens no final da lista, usando o *método* " -":meth:`~list.append` (estudaremos mais a respeito dos métodos " +"Você também pode adicionar novos itens no final da lista, usando o *método* :" +"meth:`~list.append` (estudaremos mais a respeito dos métodos " "posteriormente)::" #: ../../tutorial/introduction.rst:425 @@ -546,9 +540,9 @@ msgid "" "`Fibonacci series `_ as " "follows::" msgstr "" -"Claro, podemos usar o Python para tarefas mais complicadas do que somar 2+2." -" Por exemplo, podemos escrever o início da sequência de `Fibonacci " -" `_ assim:" +"Claro, podemos usar o Python para tarefas mais complicadas do que somar 2+2. " +"Por exemplo, podemos escrever o início da sequência de `Fibonacci `_ assim:" #: ../../tutorial/introduction.rst:488 msgid "This example introduces several new features." @@ -600,12 +594,12 @@ msgid "" "(since the parser cannot guess when you have typed the last line). Note " "that each line within a basic block must be indented by the same amount." msgstr "" -"O *corpo* do laço é *indentado*: indentação em Python é a maneira de agrupar" -" comandos em blocos. No console interativo padrão você terá que digitar tab " +"O *corpo* do laço é *indentado*: indentação em Python é a maneira de agrupar " +"comandos em blocos. No console interativo padrão você terá que digitar tab " "ou espaços para indentar cada linha. Na prática você vai preparar scripts " "Python mais complicados em um editor de texto; a maioria dos editores de " -"texto tem facilidades de indentação automática. Quando um comando composto é" -" digitado interativamente, deve ser finalizado por uma linha em branco (já " +"texto tem facilidades de indentação automática. Quando um comando composto é " +"digitado interativamente, deve ser finalizado por uma linha em branco (já " "que o interpretador não tem como adivinhar qual é a última linha do " "comando). Observe que toda linha de um mesmo bloco de comandos deve ter a " "mesma indentação." @@ -640,9 +634,9 @@ msgstr "Notas de rodapé" #: ../../tutorial/introduction.rst:538 msgid "" -"Since ``**`` has higher precedence than ``-``, ``-3**2`` will be interpreted" -" as ``-(3**2)`` and thus result in ``-9``. To avoid this and get ``9``, you" -" can use ``(-3)**2``." +"Since ``**`` has higher precedence than ``-``, ``-3**2`` will be interpreted " +"as ``-(3**2)`` and thus result in ``-9``. To avoid this and get ``9``, you " +"can use ``(-3)**2``." msgstr "" "Uma vez que ``**`` tem precedência mais alta que ``-``, ``-3**2`` será " "interpretado como ``-(3**2)`` e assim resultará em ``-9``. Para evitar " @@ -656,6 +650,6 @@ msgid "" "to escape ``\"`` (but you have to escape ``\\'``) and vice versa." msgstr "" "Ao contrário de outras linguagens, caracteres especiais como ``\\n`` têm o " -"mesmo significado com as aspas simples (``'...'``) e duplas (``\"...\"``) ." -" A única diferença entre as duas é que, dentro de aspas simples, você não " +"mesmo significado com as aspas simples (``'...'``) e duplas (``\"...\"``) . " +"A única diferença entre as duas é que, dentro de aspas simples, você não " "precisa escapar o ``\"`` (mas você deve escapar a ``\\'``) e vice-versa." diff --git a/tutorial/modules.po b/tutorial/modules.po index 23883dbf2..44a061ebb 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Hildeberto Abreu Magalhães , 2019 # Tiago Henrique , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-01 11:19+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,29 +34,29 @@ msgid "" "If you quit from the Python interpreter and enter it again, the definitions " "you have made (functions and variables) are lost. Therefore, if you want to " "write a somewhat longer program, you are better off using a text editor to " -"prepare the input for the interpreter and running it with that file as input" -" instead. This is known as creating a *script*. As your program gets " -"longer, you may want to split it into several files for easier maintenance." -" You may also want to use a handy function that you've written in several " +"prepare the input for the interpreter and running it with that file as input " +"instead. This is known as creating a *script*. As your program gets " +"longer, you may want to split it into several files for easier maintenance. " +"You may also want to use a handy function that you've written in several " "programs without copying its definition into each program." msgstr "" "Ao sair e entrar de novo no interpretador Python, as definições anteriores " -"(funções e variáveis) são perdidas. Portanto, se quiser escrever um programa" -" maior, será mais eficiente usar um editor de texto para preparar as " -"entradas para o interpretador, e executá-lo usando o arquivo como entrada. " -"Isso é conhecido como criar um *script*. Se o programa se torna ainda maior," -" é uma boa prática dividi-lo em arquivos menores, para facilitar a " -"manutenção. Também é preferível usar um arquivo separado para uma função que" -" você escreveria em vários programas diferentes, para não copiar a definição" -" de função em cada um deles." +"(funções e variáveis) são perdidas. Portanto, se quiser escrever um programa " +"maior, será mais eficiente usar um editor de texto para preparar as entradas " +"para o interpretador, e executá-lo usando o arquivo como entrada. Isso é " +"conhecido como criar um *script*. Se o programa se torna ainda maior, é uma " +"boa prática dividi-lo em arquivos menores, para facilitar a manutenção. " +"Também é preferível usar um arquivo separado para uma função que você " +"escreveria em vários programas diferentes, para não copiar a definição de " +"função em cada um deles." #: ../../tutorial/modules.rst:16 msgid "" "To support this, Python has a way to put definitions in a file and use them " -"in a script or in an interactive instance of the interpreter. Such a file is" -" called a *module*; definitions from a module can be *imported* into other " -"modules or into the *main* module (the collection of variables that you have" -" access to in a script executed at the top level and in calculator mode)." +"in a script or in an interactive instance of the interpreter. Such a file is " +"called a *module*; definitions from a module can be *imported* into other " +"modules or into the *main* module (the collection of variables that you have " +"access to in a script executed at the top level and in calculator mode)." msgstr "" "Para permitir isso, o Python tem uma maneira de colocar as definições em um " "arquivo e então usá-las em um script ou em uma execução interativa do " @@ -90,9 +91,9 @@ msgstr "" #: ../../tutorial/modules.rst:50 msgid "" -"This does not enter the names of the functions defined in ``fibo`` directly" -" in the current symbol table; it only enters the module name ``fibo`` there." -" Using the module name you can access the functions::" +"This does not enter the names of the functions defined in ``fibo`` directly " +"in the current symbol table; it only enters the module name ``fibo`` there. " +"Using the module name you can access the functions::" msgstr "" "Isso não coloca os nomes das funções definidas em ``fibo`` diretamente na " "tabela de símbolos atual; isso coloca somente o nome do módulo ``fibo``. " @@ -113,12 +114,12 @@ msgstr "Mais sobre Módulos" msgid "" "A module can contain executable statements as well as function definitions. " "These statements are intended to initialize the module. They are executed " -"only the *first* time the module name is encountered in an import statement." -" [#]_ (They are also run if the file is executed as a script.)" +"only the *first* time the module name is encountered in an import statement. " +"[#]_ (They are also run if the file is executed as a script.)" msgstr "" "Um módulo pode conter tanto comandos executáveis quanto definições de " -"funções e classes. Esses comandos servem para inicializar o módulo. Eles são" -" executados somente na *primeira* vez que o módulo é encontrado num comando " +"funções e classes. Esses comandos servem para inicializar o módulo. Eles são " +"executados somente na *primeira* vez que o módulo é encontrado num comando " "import. [#]_ (Também rodam se o arquivo é executado como um script.)" #: ../../tutorial/modules.rst:78 @@ -126,8 +127,8 @@ msgid "" "Each module has its own private symbol table, which is used as the global " "symbol table by all functions defined in the module. Thus, the author of a " "module can use global variables in the module without worrying about " -"accidental clashes with a user's global variables. On the other hand, if you" -" know what you are doing you can touch a module's global variables with the " +"accidental clashes with a user's global variables. On the other hand, if you " +"know what you are doing you can touch a module's global variables with the " "same notation used to refer to its functions, ``modname.itemname``." msgstr "" "Cada módulo tem sua própria tabela de símbolos privada, que é usada como " @@ -135,19 +136,19 @@ msgstr "" "o autor de um módulo pode usar variáveis globais no seu módulo sem se " "preocupar com conflitos acidentais com as variáveis globais do usuário. Por " "outro lado, se você precisar usar uma variável global de um módulo, poderá " -"fazê-lo com a mesma notação usada para se referir às suas funções, " -"``modname.itemname``." +"fazê-lo com a mesma notação usada para se referir às suas funções, ``modname." +"itemname``." #: ../../tutorial/modules.rst:85 msgid "" -"Modules can import other modules. It is customary but not required to place" -" all :keyword:`import` statements at the beginning of a module (or script, " +"Modules can import other modules. It is customary but not required to place " +"all :keyword:`import` statements at the beginning of a module (or script, " "for that matter). The imported module names are placed in the importing " "module's global symbol table." msgstr "" "Módulos podem importar outros módulos. É costume, porém não obrigatório, " -"colocar todos os comandos :keyword:`import` no início do módulo (ou script ," -" se preferir). As definições do módulo importado são colocadas na tabela de " +"colocar todos os comandos :keyword:`import` no início do módulo (ou script , " +"se preferir). As definições do módulo importado são colocadas na tabela de " "símbolos global do módulo que faz a importação." #: ../../tutorial/modules.rst:90 @@ -171,13 +172,12 @@ msgstr "" #: ../../tutorial/modules.rst:100 msgid "There is even a variant to import all names that a module defines::" msgstr "" -"Existe ainda uma variante que importa todos os nomes definidos em um " -"módulo::" +"Existe ainda uma variante que importa todos os nomes definidos em um módulo::" #: ../../tutorial/modules.rst:106 msgid "" -"This imports all names except those beginning with an underscore (``_``). In" -" most cases Python programmers do not use this facility since it introduces " +"This imports all names except those beginning with an underscore (``_``). In " +"most cases Python programmers do not use this facility since it introduces " "an unknown set of names into the interpreter, possibly hiding some things " "you have already defined." msgstr "" @@ -198,8 +198,8 @@ msgstr "" #: ../../tutorial/modules.rst:115 msgid "" -"If the module name is followed by :keyword:`!as`, then the name following " -":keyword:`!as` is bound directly to the imported module." +"If the module name is followed by :keyword:`!as`, then the name following :" +"keyword:`!as` is bound directly to the imported module." msgstr "" "Se o nome do módulo é seguido pela palavra-chave :keyword:`!as`, o nome a " "seguir é vinculado diretamente ao módulo importado." @@ -224,13 +224,13 @@ msgid "" "For efficiency reasons, each module is only imported once per interpreter " "session. Therefore, if you change your modules, you must restart the " "interpreter -- or, if it's just one module you want to test interactively, " -"use :func:`importlib.reload`, e.g. ``import importlib; " -"importlib.reload(modulename)``." +"use :func:`importlib.reload`, e.g. ``import importlib; importlib." +"reload(modulename)``." msgstr "" " Por razões de eficiência, cada módulo é importado uma única vez por sessão " "do interpretador. Portanto, se você alterar seus módulos, você deve " -"reiniciar o interpretador -- ou, se é somente um módulo que você quer testar" -" interativamente, use a função :func:`reload`, ex. ``import importlib; " +"reiniciar o interpretador -- ou, se é somente um módulo que você quer testar " +"interativamente, use a função :func:`reload`, ex. ``import importlib; " "importlib.reload(modulename)``." #: ../../tutorial/modules.rst:146 @@ -258,8 +258,8 @@ msgid "" "executed as the \"main\" file:" msgstr "" "você pode tornar o arquivo utilizável tanto como script quanto como um " -"módulo importável, porque o código que analisa a linha de comando só roda se" -" o módulo é executado como arquivo \"principal\":" +"módulo importável, porque o código que analisa a linha de comando só roda se " +"o módulo é executado como arquivo \"principal\":" #: ../../tutorial/modules.rst:169 msgid "If the module is imported, the code is not run::" @@ -283,13 +283,13 @@ msgstr "O caminho de busca dos módulos" msgid "" "When a module named :mod:`spam` is imported, the interpreter first searches " "for a built-in module with that name. If not found, it then searches for a " -"file named :file:`spam.py` in a list of directories given by the variable " -":data:`sys.path`. :data:`sys.path` is initialized from these locations:" +"file named :file:`spam.py` in a list of directories given by the variable :" +"data:`sys.path`. :data:`sys.path` is initialized from these locations:" msgstr "" -"Quando um módulo chamado :mod:`spam` é importado, o interpretador procura um" -" módulo embutido com este nome. Se não encontra, procura um arquivo chamado " -":file:`spam.py` em uma lista de diretórios incluídos na variável " -":data:`sys.path`, que é inicializada com estes locais:" +"Quando um módulo chamado :mod:`spam` é importado, o interpretador procura um " +"módulo embutido com este nome. Se não encontra, procura um arquivo chamado :" +"file:`spam.py` em uma lista de diretórios incluídos na variável :data:`sys." +"path`, que é inicializada com estes locais:" #: ../../tutorial/modules.rst:190 msgid "" @@ -301,8 +301,8 @@ msgstr "" #: ../../tutorial/modules.rst:192 msgid "" -":envvar:`PYTHONPATH` (a list of directory names, with the same syntax as the" -" shell variable :envvar:`PATH`)." +":envvar:`PYTHONPATH` (a list of directory names, with the same syntax as the " +"shell variable :envvar:`PATH`)." msgstr "" "A variável de ambiente :envvar:`PYTHONPATH` (uma lista de nomes de " "diretórios, com a mesma sintaxe da variável de ambiente :envvar:`PATH`)." @@ -317,9 +317,9 @@ msgid "" "script is calculated after the symlink is followed. In other words the " "directory containing the symlink is **not** added to the module search path." msgstr "" -"Nos sistemas de arquivos que suportam links simbólicos, o diretório contendo" -" o script de entrada é resultante do diretório apontado pelo link simbólico." -" Em outras palavras o diretório que contém o link simbólico **não** é " +"Nos sistemas de arquivos que suportam links simbólicos, o diretório contendo " +"o script de entrada é resultante do diretório apontado pelo link simbólico. " +"Em outras palavras o diretório que contém o link simbólico **não** é " "adicionado ao caminho de busca de módulos." #: ../../tutorial/modules.rst:201 @@ -328,8 +328,8 @@ msgid "" "directory containing the script being run is placed at the beginning of the " "search path, ahead of the standard library path. This means that scripts in " "that directory will be loaded instead of modules of the same name in the " -"library directory. This is an error unless the replacement is intended. See" -" section :ref:`tut-standardmodules` for more information." +"library directory. This is an error unless the replacement is intended. See " +"section :ref:`tut-standardmodules` for more information." msgstr "" "Após a inicialização, programas Python podem modificar :data:`sys.path`. O " "diretório que contém o script sendo executado é colocado no início da lista " @@ -345,22 +345,21 @@ msgstr "Arquivos Python \"compilados\"" #: ../../tutorial/modules.rst:214 msgid "" "To speed up loading modules, Python caches the compiled version of each " -"module in the ``__pycache__`` directory under the name " -":file:`module.{version}.pyc`, where the version encodes the format of the " -"compiled file; it generally contains the Python version number. For " -"example, in CPython release 3.3 the compiled version of spam.py would be " -"cached as ``__pycache__/spam.cpython-33.pyc``. This naming convention " -"allows compiled modules from different releases and different versions of " -"Python to coexist." +"module in the ``__pycache__`` directory under the name :file:`module." +"{version}.pyc`, where the version encodes the format of the compiled file; " +"it generally contains the Python version number. For example, in CPython " +"release 3.3 the compiled version of spam.py would be cached as ``__pycache__/" +"spam.cpython-33.pyc``. This naming convention allows compiled modules from " +"different releases and different versions of Python to coexist." msgstr "" "Para acelerar o carregamento de módulos, o Python guarda versões compiladas " -"de cada módulo no diretório ``__pycache__`` com o nome " -":file:`module.{version}.pyc`, onde a versão corresponde ao formato do " -"arquivo compilado; geralmente contêm o número da versão Python utilizada. " -"Por exemplo, no CPython release 3.3 a versão compilada de spam.py será " -"guardada como ``__pycache__/spam.cpython-33.pyc``. Esta convenção de nomes " -"permite a coexistência de módulos compilados de diferentes releases e " -"versões de Python." +"de cada módulo no diretório ``__pycache__`` com o nome :file:`module." +"{version}.pyc`, onde a versão corresponde ao formato do arquivo compilado; " +"geralmente contêm o número da versão Python utilizada. Por exemplo, no " +"CPython release 3.3 a versão compilada de spam.py será guardada como " +"``__pycache__/spam.cpython-33.pyc``. Esta convenção de nomes permite a " +"coexistência de módulos compilados de diferentes releases e versões de " +"Python." #: ../../tutorial/modules.rst:222 msgid "" @@ -382,8 +381,8 @@ msgid "" "recompiles and does not store the result for the module that's loaded " "directly from the command line. Second, it does not check the cache if " "there is no source module. To support a non-source (compiled only) " -"distribution, the compiled module must be in the source directory, and there" -" must not be a source module." +"distribution, the compiled module must be in the source directory, and there " +"must not be a source module." msgstr "" "O Python não verifica as versões compiladas em duas circunstâncias. " "Primeiro, sempre recompila e não armazena o resultado para módulos " @@ -398,17 +397,17 @@ msgstr "Algumas dicas para especialistas:" #: ../../tutorial/modules.rst:236 msgid "" -"You can use the :option:`-O` or :option:`-OO` switches on the Python command" -" to reduce the size of a compiled module. The ``-O`` switch removes assert " +"You can use the :option:`-O` or :option:`-OO` switches on the Python command " +"to reduce the size of a compiled module. The ``-O`` switch removes assert " "statements, the ``-OO`` switch removes both assert statements and __doc__ " -"strings. Since some programs may rely on having these available, you should" -" only use this option if you know what you're doing. \"Optimized\" modules " +"strings. Since some programs may rely on having these available, you should " +"only use this option if you know what you're doing. \"Optimized\" modules " "have an ``opt-`` tag and are usually smaller. Future releases may change " "the effects of optimization." msgstr "" "Você pode usar as opções :option:`-O` ou :option:`-OO` no comando Python " -"para reduzir o tamnho de um módulo compilado. A opção ``-O`` remove comandos" -" assert, e a opção ``-OO`` remove, além dos comandos assert, as strings de " +"para reduzir o tamnho de um módulo compilado. A opção ``-O`` remove comandos " +"assert, e a opção ``-OO`` remove, além dos comandos assert, as strings de " "documentações. Como alguns programas podem contar com essa disponibilidade, " "só use essa opção se souber o que está fazendo. Módulos \"otimizados\" tem " "uma marcação ``opt-`` e são geralmente de menor tamanho. Futuros releases " @@ -417,11 +416,11 @@ msgstr "" #: ../../tutorial/modules.rst:244 msgid "" "A program doesn't run any faster when it is read from a ``.pyc`` file than " -"when it is read from a ``.py`` file; the only thing that's faster about " -"``.pyc`` files is the speed with which they are loaded." +"when it is read from a ``.py`` file; the only thing that's faster about ``." +"pyc`` files is the speed with which they are loaded." msgstr "" -"Um programa não roda mais rápido quando é lido de um arquivo ``.pyc`` do que" -" quando lido de um arquivo ``.py``; a única coisa que é mais rápida com " +"Um programa não roda mais rápido quando é lido de um arquivo ``.pyc`` do que " +"quando lido de um arquivo ``.py``; a única coisa que é mais rápida com " "arquivos ``.pyc`` é sua velocidade de carregamento." #: ../../tutorial/modules.rst:248 @@ -429,16 +428,16 @@ msgid "" "The module :mod:`compileall` can create .pyc files for all modules in a " "directory." msgstr "" -"O módulo :mod:`compileall` pode criar arquivos .pyc para todos os módulos de" -" um diretório." +"O módulo :mod:`compileall` pode criar arquivos .pyc para todos os módulos de " +"um diretório." #: ../../tutorial/modules.rst:251 msgid "" "There is more detail on this process, including a flow chart of the " "decisions, in :pep:`3147`." msgstr "" -"Há mais detalhes desse processo, incluindo um fluxograma de decisões, no " -":pep:`3147`." +"Há mais detalhes desse processo, incluindo um fluxograma de decisões, no :" +"pep:`3147`." #: ../../tutorial/modules.rst:258 msgid "Standard Modules" @@ -459,16 +458,16 @@ msgid "" "define the strings used as primary and secondary prompts::" msgstr "" "O Python traz uma biblioteca padrão de módulos, descrita em um documento em " -"separado, a Python Library Reference (doravante “Library Reference”). Alguns" -" módulos estão embutidos no interpretador; estes possibilitam acesso a " +"separado, a Python Library Reference (doravante “Library Reference”). Alguns " +"módulos estão embutidos no interpretador; estes possibilitam acesso a " "operações que não são parte do núcleo da linguagem, mas estão no " "interpretador seja por eficiência ou para permitir o acesso a chamadas do " "sistema operacional. O conjunto destes módulos é uma opção de configuração " -"que depende também da plataforma utilizada. Por exemplo, o módulo " -":mod:`winreg` só está disponível em sistemas Windows. Existe um módulo que " -"requer especial atenção: :mod:`sys`, que é embutido em qualquer " -"interpretador Python. As variáveis ``sys.ps1`` e ``sys.ps2`` definem as " -"strings utilizadas como prompt primário e secundário::" +"que depende também da plataforma utilizada. Por exemplo, o módulo :mod:" +"`winreg` só está disponível em sistemas Windows. Existe um módulo que requer " +"especial atenção: :mod:`sys`, que é embutido em qualquer interpretador " +"Python. As variáveis ``sys.ps1`` e ``sys.ps2`` definem as strings utilizadas " +"como prompt primário e secundário::" #: ../../tutorial/modules.rst:285 msgid "" @@ -482,14 +481,14 @@ msgstr "" msgid "" "The variable ``sys.path`` is a list of strings that determines the " "interpreter's search path for modules. It is initialized to a default path " -"taken from the environment variable :envvar:`PYTHONPATH`, or from a built-in" -" default if :envvar:`PYTHONPATH` is not set. You can modify it using " +"taken from the environment variable :envvar:`PYTHONPATH`, or from a built-in " +"default if :envvar:`PYTHONPATH` is not set. You can modify it using " "standard list operations::" msgstr "" "A variável ``sys.path`` contém uma lista de strings que determina os " "caminhos de busca de módulos conhecidos pelo interpretador. Ela é " -"inicializada para um caminho padrão, determinado pela variável de ambiente " -":envvar:`PYTHONPATH`, ou por um valor default interno, se a variável não " +"inicializada para um caminho padrão, determinado pela variável de ambiente :" +"envvar:`PYTHONPATH`, ou por um valor default interno, se a variável não " "estiver definida. Você pode modificar ``sys.path`` com as operações típicas " "de lista, por exemplo::" @@ -518,9 +517,9 @@ msgstr "" #: ../../tutorial/modules.rst:339 msgid "" -":func:`dir` does not list the names of built-in functions and variables. If" -" you want a list of those, they are defined in the standard module " -":mod:`builtins`::" +":func:`dir` does not list the names of built-in functions and variables. If " +"you want a list of those, they are defined in the standard module :mod:" +"`builtins`::" msgstr "" ":func:`dir` não lista os nomes de variáveis e funções embutidas. Esta lista " "está disponível no módulo padrão :mod:`builtins`::" @@ -532,28 +531,28 @@ msgstr "Pacotes" #: ../../tutorial/modules.rst:380 msgid "" "Packages are a way of structuring Python's module namespace by using " -"\"dotted module names\". For example, the module name :mod:`A.B` designates" -" a submodule named ``B`` in a package named ``A``. Just like the use of " +"\"dotted module names\". For example, the module name :mod:`A.B` designates " +"a submodule named ``B`` in a package named ``A``. Just like the use of " "modules saves the authors of different modules from having to worry about " -"each other's global variable names, the use of dotted module names saves the" -" authors of multi-module packages like NumPy or Pillow from having to worry " +"each other's global variable names, the use of dotted module names saves the " +"authors of multi-module packages like NumPy or Pillow from having to worry " "about each other's module names." msgstr "" "Os pacotes são uma maneira de estruturar o \"espaço de nomes\" dos módulos " -"Python, usando \"nomes de módulo com pontos\". Por exemplo, o nome do módulo" -" :mod:`A.B` designa um sub-módulo chamado ``B``, em um pacote chamado ``A``." -" Assim como o uso de módulos evita que os autores de módulos diferentes " -"tenham que se preocupar com nomes de variáveis globais, o uso de nomes de " -"módulos com pontos evita que os autores de pacotes com muitos módulos, como " -"NumPy ou Pillow, tenham que se preocupar com os nomes dos módulos uns dos " -"outros." +"Python, usando \"nomes de módulo com pontos\". Por exemplo, o nome do " +"módulo :mod:`A.B` designa um sub-módulo chamado ``B``, em um pacote chamado " +"``A``. Assim como o uso de módulos evita que os autores de módulos " +"diferentes tenham que se preocupar com nomes de variáveis globais, o uso de " +"nomes de módulos com pontos evita que os autores de pacotes com muitos " +"módulos, como NumPy ou Pillow, tenham que se preocupar com os nomes dos " +"módulos uns dos outros." #: ../../tutorial/modules.rst:388 msgid "" "Suppose you want to design a collection of modules (a \"package\") for the " "uniform handling of sound files and sound data. There are many different " -"sound file formats (usually recognized by their extension, for example: " -":file:`.wav`, :file:`.aiff`, :file:`.au`), so you may need to create and " +"sound file formats (usually recognized by their extension, for example: :" +"file:`.wav`, :file:`.aiff`, :file:`.au`), so you may need to create and " "maintain a growing collection of modules for the conversion between the " "various file formats. There are also many different operations you might " "want to perform on sound data (such as mixing, adding echo, applying an " @@ -562,22 +561,22 @@ msgid "" "operations. Here's a possible structure for your package (expressed in " "terms of a hierarchical filesystem):" msgstr "" -"Suponha que você queira projetar uma coleção de módulos (um \"pacote\") para" -" o gerenciamento uniforme de arquivos de som. Existem muitos formatos " +"Suponha que você queira projetar uma coleção de módulos (um \"pacote\") para " +"o gerenciamento uniforme de arquivos de som. Existem muitos formatos " "diferentes (normalmente identificados pela extensão do nome de arquivo, por " "exemplo. :file:`.wav`, :file:`.aiff`, :file:`.au`), de forma que você pode " "precisar criar e manter uma crescente coleção de módulos de conversão entre " "formatos. Ainda podem existir muitas operações diferentes, passíveis de " -"aplicação sobre os arquivos de som (mixagem, eco, equalização, efeito stereo" -" artificial). Logo, possivelmente você também estará escrevendo uma coleção " +"aplicação sobre os arquivos de som (mixagem, eco, equalização, efeito stereo " +"artificial). Logo, possivelmente você também estará escrevendo uma coleção " "sempre crescente de módulos para aplicar estas operações. Eis uma possível " "estrutura para o seu pacote (expressa em termos de um sistema de arquivos " "hierárquico)::" #: ../../tutorial/modules.rst:425 msgid "" -"When importing the package, Python searches through the directories on " -"``sys.path`` looking for the package subdirectory." +"When importing the package, Python searches through the directories on ``sys." +"path`` looking for the package subdirectory." msgstr "" "Ao importar esse pacote, Python busca pelo subdiretório com mesmo nome, nos " "diretórios listados em ``sys.path``." @@ -633,37 +632,37 @@ msgstr "Também é possível importar diretamente uma única variável ou funç #: ../../tutorial/modules.rst:458 msgid "" -"Again, this loads the submodule :mod:`echo`, but this makes its function " -":func:`echofilter` directly available::" +"Again, this loads the submodule :mod:`echo`, but this makes its function :" +"func:`echofilter` directly available::" msgstr "" -"Novamente, isso carrega o submódulo :mod:`echo`, mas a função " -":func:`echofilter` está acessível diretamente sem prefixo::" +"Novamente, isso carrega o submódulo :mod:`echo`, mas a função :func:" +"`echofilter` está acessível diretamente sem prefixo::" #: ../../tutorial/modules.rst:463 msgid "" "Note that when using ``from package import item``, the item can be either a " -"submodule (or subpackage) of the package, or some other name defined in the" -" package, like a function, class or variable. The ``import`` statement " -"first tests whether the item is defined in the package; if not, it assumes " -"it is a module and attempts to load it. If it fails to find it, an " -":exc:`ImportError` exception is raised." +"submodule (or subpackage) of the package, or some other name defined in the " +"package, like a function, class or variable. The ``import`` statement first " +"tests whether the item is defined in the package; if not, it assumes it is a " +"module and attempts to load it. If it fails to find it, an :exc:" +"`ImportError` exception is raised." msgstr "" "Observe que ao utilizar ``from package import item``, o item pode ser um " "subpacote, submódulo, classe, função ou variável. O comando ``import`` " "primeiro testa se o item está definido no pacote, senão assume que é um " -"módulo e tenta carregá-lo. Se falhar em encontrar o módulo, uma exceção " -":exc:`ImportError` é lançada." +"módulo e tenta carregá-lo. Se falhar em encontrar o módulo, uma exceção :exc:" +"`ImportError` é lançada." #: ../../tutorial/modules.rst:470 msgid "" "Contrarily, when using syntax like ``import item.subitem.subsubitem``, each " -"item except for the last must be a package; the last item can be a module or" -" a package but can't be a class or function or variable defined in the " +"item except for the last must be a package; the last item can be a module or " +"a package but can't be a class or function or variable defined in the " "previous item." msgstr "" -"Em oposição, em uma construção como ``import item.subitem.subsubitem``, cada" -" item, com exceção do último, deve ser um pacote. O último pode ser também " -"um pacote ou módulo, mas nunca uma classe, função ou variável contida em um " +"Em oposição, em uma construção como ``import item.subitem.subsubitem``, cada " +"item, com exceção do último, deve ser um pacote. O último pode ser também um " +"pacote ou módulo, mas nunca uma classe, função ou variável contida em um " "módulo." #: ../../tutorial/modules.rst:479 @@ -688,23 +687,23 @@ msgstr "" #: ../../tutorial/modules.rst:489 msgid "" "The only solution is for the package author to provide an explicit index of " -"the package. The :keyword:`import` statement uses the following convention:" -" if a package's :file:`__init__.py` code defines a list named ``__all__``, " -"it is taken to be the list of module names that should be imported when " -"``from package import *`` is encountered. It is up to the package author to" -" keep this list up-to-date when a new version of the package is released. " -"Package authors may also decide not to support it, if they don't see a use " -"for importing \\* from their package. For example, the file " -":file:`sound/effects/__init__.py` could contain the following code::" +"the package. The :keyword:`import` statement uses the following convention: " +"if a package's :file:`__init__.py` code defines a list named ``__all__``, it " +"is taken to be the list of module names that should be imported when ``from " +"package import *`` is encountered. It is up to the package author to keep " +"this list up-to-date when a new version of the package is released. Package " +"authors may also decide not to support it, if they don't see a use for " +"importing \\* from their package. For example, the file :file:`sound/" +"effects/__init__.py` could contain the following code::" msgstr "" "A única solução é o autor do pacote fornecer um índice explícito do pacote. " -"O comando :keyword:`import` usa a seguinte convenção: se o arquivo " -":file:`__init__.py` do pacote define uma lista chamada ``__all__``, então " -"esta lista indica os nomes dos módulos a serem importados quando o comando " -"``from pacote import *`` é acionado. Fica a cargo do autor do pacote manter " -"esta lista atualizada, inclusive fica a seu critério excluir inteiramente o " -"suporte a importação direta de todo o pacote através de ``from pacote import" -" *``. Por exemplo, o arquivo :file:`sounds/effects/__init__.py` poderia " +"O comando :keyword:`import` usa a seguinte convenção: se o arquivo :file:" +"`__init__.py` do pacote define uma lista chamada ``__all__``, então esta " +"lista indica os nomes dos módulos a serem importados quando o comando ``from " +"pacote import *`` é acionado. Fica a cargo do autor do pacote manter esta " +"lista atualizada, inclusive fica a seu critério excluir inteiramente o " +"suporte a importação direta de todo o pacote através de ``from pacote import " +"*``. Por exemplo, o arquivo :file:`sounds/effects/__init__.py` poderia " "conter apenas::" #: ../../tutorial/modules.rst:501 @@ -717,37 +716,37 @@ msgstr "" #: ../../tutorial/modules.rst:504 msgid "" -"If ``__all__`` is not defined, the statement ``from sound.effects import *``" -" does *not* import all submodules from the package :mod:`sound.effects` into" -" the current namespace; it only ensures that the package " -":mod:`sound.effects` has been imported (possibly running any initialization " -"code in :file:`__init__.py`) and then imports whatever names are defined in " -"the package. This includes any names defined (and submodules explicitly " -"loaded) by :file:`__init__.py`. It also includes any submodules of the " -"package that were explicitly loaded by previous :keyword:`import` " -"statements. Consider this code::" +"If ``__all__`` is not defined, the statement ``from sound.effects import *`` " +"does *not* import all submodules from the package :mod:`sound.effects` into " +"the current namespace; it only ensures that the package :mod:`sound.effects` " +"has been imported (possibly running any initialization code in :file:" +"`__init__.py`) and then imports whatever names are defined in the package. " +"This includes any names defined (and submodules explicitly loaded) by :file:" +"`__init__.py`. It also includes any submodules of the package that were " +"explicitly loaded by previous :keyword:`import` statements. Consider this " +"code::" msgstr "" "Se ``__all__`` não estiver definido, o comando ``from sound.effects import " -"*`` não importa todos os submódulos do pacote :mod:`sound.effects` no espaço" -" de nomes atual. Há apenas garantia que o pacote :mod:`sound.effects` foi " -"importado (possivelmente executando qualquer código de inicialização em " -":file:`__init__.py`) juntamente com os nomes definidos no pacote. Isso " -"inclui todo nome definido em :file:`__init__.py` bem como em qualquer " -"submódulo importado a partir deste. Também inclui quaisquer submódulos do " -"pacote que tenham sido carregados explicitamente por comandos " -":keyword:`import` anteriores. Considere o código abaixo::" +"*`` não importa todos os submódulos do pacote :mod:`sound.effects` no espaço " +"de nomes atual. Há apenas garantia que o pacote :mod:`sound.effects` foi " +"importado (possivelmente executando qualquer código de inicialização em :" +"file:`__init__.py`) juntamente com os nomes definidos no pacote. Isso inclui " +"todo nome definido em :file:`__init__.py` bem como em qualquer submódulo " +"importado a partir deste. Também inclui quaisquer submódulos do pacote que " +"tenham sido carregados explicitamente por comandos :keyword:`import` " +"anteriores. Considere o código abaixo::" #: ../../tutorial/modules.rst:517 msgid "" -"In this example, the :mod:`echo` and :mod:`surround` modules are imported in" -" the current namespace because they are defined in the :mod:`sound.effects` " +"In this example, the :mod:`echo` and :mod:`surround` modules are imported in " +"the current namespace because they are defined in the :mod:`sound.effects` " "package when the ``from...import`` statement is executed. (This also works " "when ``__all__`` is defined.)" msgstr "" "Nesse exemplo, os nomes :mod:`echo` e :mod:`surround` são importados no " "espaço de nomes atual, no momento em que o comando ``from...import`` é " -"executado, pois estão definidos no pacote :mod:`sound.effects`. (Isso também" -" funciona quando ``__all__`` estiver definida.)" +"executado, pois estão definidos no pacote :mod:`sound.effects`. (Isso também " +"funciona quando ``__all__`` estiver definida.)" #: ../../tutorial/modules.rst:522 msgid "" @@ -756,8 +755,8 @@ msgid "" "practice in production code." msgstr "" "Apesar de que certos módulos são projetados para exportar apenas nomes " -"conforme algum critério quando se faz ``import *``, ainda assim essa sintaxe" -" é considerada uma prática ruim em código de produção." +"conforme algum critério quando se faz ``import *``, ainda assim essa sintaxe " +"é considerada uma prática ruim em código de produção." #: ../../tutorial/modules.rst:526 msgid "" @@ -778,14 +777,14 @@ msgstr "Referências em um mesmo pacote" #: ../../tutorial/modules.rst:535 msgid "" "When packages are structured into subpackages (as with the :mod:`sound` " -"package in the example), you can use absolute imports to refer to submodules" -" of siblings packages. For example, if the module " -":mod:`sound.filters.vocoder` needs to use the :mod:`echo` module in the " -":mod:`sound.effects` package, it can use ``from sound.effects import echo``." +"package in the example), you can use absolute imports to refer to submodules " +"of siblings packages. For example, if the module :mod:`sound.filters." +"vocoder` needs to use the :mod:`echo` module in the :mod:`sound.effects` " +"package, it can use ``from sound.effects import echo``." msgstr "" "Quando pacotes são estruturados em sub-pacotes (como no pacote :mod:`sound` " -"do exemplo), pode-se usar a sintaxe de um :keyword:`import` absoluto para se" -" referir aos submódulos de pacotes irmãos (o que na prática é uma forma de " +"do exemplo), pode-se usar a sintaxe de um :keyword:`import` absoluto para se " +"referir aos submódulos de pacotes irmãos (o que na prática é uma forma de " "fazer um import relativo, a partir da base do pacote). Por exemplo, se o " "módulo :mod:`sound.filters.vocoder` precisa usar o módulo :mod:`echo` do " "pacote :mod:`sound.effects`, é preciso importá-lo com ``from sound.effects " @@ -795,8 +794,8 @@ msgstr "" msgid "" "You can also write relative imports, with the ``from module import name`` " "form of import statement. These imports use leading dots to indicate the " -"current and parent packages involved in the relative import. From the " -":mod:`surround` module for example, you might use::" +"current and parent packages involved in the relative import. From the :mod:" +"`surround` module for example, you might use::" msgstr "" "Também é possível escrever imports relativos, com a forma ``from module " "import name``. Esses imports usam pontos para indicar o pacote pai e o " @@ -810,10 +809,10 @@ msgid "" "intended for use as the main module of a Python application must always use " "absolute imports." msgstr "" -"Note que imports relativos são baseados no nome do módulo atual. Uma vez que" -" o nome do módulo principal é sempre ``\"__main__\"``, módulos destinados ao" -" uso como módulo principal de um aplicativo Python devem sempre usar imports" -" absolutos." +"Note que imports relativos são baseados no nome do módulo atual. Uma vez que " +"o nome do módulo principal é sempre ``\"__main__\"``, módulos destinados ao " +"uso como módulo principal de um aplicativo Python devem sempre usar imports " +"absolutos." #: ../../tutorial/modules.rst:556 msgid "Packages in Multiple Directories" @@ -828,18 +827,18 @@ msgid "" "and subpackages contained in the package." msgstr "" "Pacotes possuem mais um atributo especial, :attr:`__path__`. Inicializado " -"como uma lista contendo o nome do diretório onde está o arquivo " -":file:`__init__.py` do pacote, antes do código naquele arquivo ser " -"executado. Esta variável pode ser modificada; isso afeta a busca futura de " -"módulos e sub-pacotes contidos no pacote." +"como uma lista contendo o nome do diretório onde está o arquivo :file:" +"`__init__.py` do pacote, antes do código naquele arquivo ser executado. Esta " +"variável pode ser modificada; isso afeta a busca futura de módulos e sub-" +"pacotes contidos no pacote." #: ../../tutorial/modules.rst:564 msgid "" "While this feature is not often needed, it can be used to extend the set of " "modules found in a package." msgstr "" -"Apesar de não ser muito usado, esse mecanismo permite estender o conjunto de" -" módulos encontrados em um pacote." +"Apesar de não ser muito usado, esse mecanismo permite estender o conjunto de " +"módulos encontrados em um pacote." #: ../../tutorial/modules.rst:569 msgid "Footnotes" diff --git a/tutorial/stdlib.po b/tutorial/stdlib.po index 4bc927f1c..086265e4a 100644 --- a/tutorial/stdlib.po +++ b/tutorial/stdlib.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 # Leticia Portella , 2019 # Misael borges , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-08 08:00+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -47,25 +48,24 @@ msgid "" "function which operates much differently." msgstr "" "Tome cuidado para usar a forma ``import os`` ao invés de ``from os import " -"*``. Isso evitará que :func:`os.open` oculte a função :func:`open` que opera" -" de forma muito diferente." +"*``. Isso evitará que :func:`os.open` oculte a função :func:`open` que opera " +"de forma muito diferente." #: ../../tutorial/stdlib.rst:29 msgid "" "The built-in :func:`dir` and :func:`help` functions are useful as " "interactive aids for working with large modules like :mod:`os`::" msgstr "" -"As funções embutidas :func:`dir` e :func:`help` são úteis como um sistema de" -" ajuda interativa pra lidar com módulos grandes como :mod:`os`::" +"As funções embutidas :func:`dir` e :func:`help` são úteis como um sistema de " +"ajuda interativa pra lidar com módulos grandes como :mod:`os`::" #: ../../tutorial/stdlib.rst:38 msgid "" "For daily file and directory management tasks, the :mod:`shutil` module " "provides a higher level interface that is easier to use::" msgstr "" -"Para tarefas de gerenciamento cotidiano de arquivos e diretórios, o módulo " -":mod:`shutil` fornece uma interface de alto nível que é mais simples de " -"usar::" +"Para tarefas de gerenciamento cotidiano de arquivos e diretórios, o módulo :" +"mod:`shutil` fornece uma interface de alto nível que é mais simples de usar::" #: ../../tutorial/stdlib.rst:51 msgid "File Wildcards" @@ -86,9 +86,9 @@ msgstr "Argumentos de linha de comando" #: ../../tutorial/stdlib.rst:66 msgid "" "Common utility scripts often need to process command line arguments. These " -"arguments are stored in the :mod:`sys` module's *argv* attribute as a list." -" For instance the following output results from running ``python demo.py " -"one two three`` at the command line::" +"arguments are stored in the :mod:`sys` module's *argv* attribute as a list. " +"For instance the following output results from running ``python demo.py one " +"two three`` at the command line::" msgstr "" "Scripts geralmente precisam processar argumentos passados na linha de " "comando. Esses argumentos são armazenados como uma lista no atributo *argv* " @@ -97,23 +97,29 @@ msgstr "" #: ../../tutorial/stdlib.rst:75 msgid "" -"The :mod:`argparse` module provides a mechanism to process command line " -"arguments. It should always be preferred over directly processing " -"``sys.argv`` manually." +"The :mod:`argparse` module provides a more sophisticated mechanism to " +"process command line arguments. The following script extracts one or more " +"filenames and an optional number of lines to be displayed::" msgstr "" -"O módulo :mod:`argparse` fornece um mecanismo para processamento de " -"argumentos de linha de comando. Isso deve ser ter a preferência sobre " -"processar ``sys.argv`` manualmente." +"O módulo :mod:`argparse` fornece um mecanismo mais sofisticado para " +"processar argumentos de linha de comando. O script seguinte extrai e exibe " +"um ou mais nomes de arquivos e um número de linhas opcional::" -#: ../../tutorial/stdlib.rst:78 -msgid "Take, for example, the below snippet of code::" -msgstr "Veja, por exemplo, o seguinte trecho de código::" +#: ../../tutorial/stdlib.rst:88 +msgid "" +"When run at the command line with ``python top.py --lines=5 alpha.txt beta." +"txt``, the script sets ``args.lines`` to ``5`` and ``args.filenames`` to " +"``['alpha.txt', 'beta.txt']``." +msgstr "" +"Quando executado a linha de comando ``python top.py --lines=5 alpha.txt beta." +"txt``, o script define ``args.lines`` para ``5`` e ``args.filenames`` para " +"``['alpha.txt', 'beta.txt']``." -#: ../../tutorial/stdlib.rst:94 +#: ../../tutorial/stdlib.rst:96 msgid "Error Output Redirection and Program Termination" msgstr "Redirecionamento de erros e encerramento do programa" -#: ../../tutorial/stdlib.rst:96 +#: ../../tutorial/stdlib.rst:98 msgid "" "The :mod:`sys` module also has attributes for *stdin*, *stdout*, and " "*stderr*. The latter is useful for emitting warnings and error messages to " @@ -123,25 +129,25 @@ msgstr "" "*stderr*. O último é usado para emitir avisos e mensagens de erros visíveis " "mesmo quando *stdout* foi redirecionado::" -#: ../../tutorial/stdlib.rst:103 +#: ../../tutorial/stdlib.rst:105 msgid "The most direct way to terminate a script is to use ``sys.exit()``." msgstr "A forma mais direta de encerrar um script é usando ``sys.exit()``." -#: ../../tutorial/stdlib.rst:109 +#: ../../tutorial/stdlib.rst:111 msgid "String Pattern Matching" msgstr "Reconhecimento de padrões em strings" -#: ../../tutorial/stdlib.rst:111 +#: ../../tutorial/stdlib.rst:113 msgid "" "The :mod:`re` module provides regular expression tools for advanced string " -"processing. For complex matching and manipulation, regular expressions offer" -" succinct, optimized solutions::" +"processing. For complex matching and manipulation, regular expressions offer " +"succinct, optimized solutions::" msgstr "" "O módulo :mod:`re` fornece ferramentas para lidar com processamento de " "strings através de expressões regulares. Para reconhecimento de padrões " "complexos, expressões regulares oferecem uma solução sucinta e eficiente::" -#: ../../tutorial/stdlib.rst:121 +#: ../../tutorial/stdlib.rst:123 msgid "" "When only simple capabilities are needed, string methods are preferred " "because they are easier to read and debug::" @@ -149,11 +155,11 @@ msgstr "" "Quando as exigências são simples, métodos de strings são preferíveis por " "serem mais fáceis de ler e depurar::" -#: ../../tutorial/stdlib.rst:131 +#: ../../tutorial/stdlib.rst:133 msgid "Mathematics" msgstr "Matemática" -#: ../../tutorial/stdlib.rst:133 +#: ../../tutorial/stdlib.rst:135 msgid "" "The :mod:`math` module gives access to the underlying C library functions " "for floating point math::" @@ -161,12 +167,12 @@ msgstr "" "O módulo :mod:`math` oferece acesso as funções da biblioteca C para " "matemática de ponto flutuante::" -#: ../../tutorial/stdlib.rst:142 +#: ../../tutorial/stdlib.rst:144 msgid "The :mod:`random` module provides tools for making random selections::" msgstr "" "O módulo :mod:`random` fornece ferramentas para gerar seleções aleatórias::" -#: ../../tutorial/stdlib.rst:154 +#: ../../tutorial/stdlib.rst:156 msgid "" "The :mod:`statistics` module calculates basic statistical properties (the " "mean, median, variance, etc.) of numeric data::" @@ -174,7 +180,7 @@ msgstr "" "O módulo :mod:`statistics` calcula as propriedades estatísticas básicas (a " "média, a mediana, a variação, etc.) de dados numéricos::" -#: ../../tutorial/stdlib.rst:166 +#: ../../tutorial/stdlib.rst:168 msgid "" "The SciPy project has many other modules for numerical " "computations." @@ -182,11 +188,11 @@ msgstr "" "O projeto SciPy tem muitos outros módulos para cálculos " "numéricos." -#: ../../tutorial/stdlib.rst:172 +#: ../../tutorial/stdlib.rst:174 msgid "Internet Access" msgstr "Acesso à internet" -#: ../../tutorial/stdlib.rst:174 +#: ../../tutorial/stdlib.rst:176 msgid "" "There are a number of modules for accessing the internet and processing " "internet protocols. Two of the simplest are :mod:`urllib.request` for " @@ -197,50 +203,49 @@ msgstr "" "dados a partir de URLs e :mod:`smtplib` para enviar mensagens de correio " "eletrônico::" -#: ../../tutorial/stdlib.rst:197 -msgid "" -"(Note that the second example needs a mailserver running on localhost.)" +#: ../../tutorial/stdlib.rst:199 +msgid "(Note that the second example needs a mailserver running on localhost.)" msgstr "" "(Note que o segundo exemplo precisa de um servidor de email rodando em " "localhost.)" -#: ../../tutorial/stdlib.rst:203 +#: ../../tutorial/stdlib.rst:205 msgid "Dates and Times" msgstr "Data e hora" -#: ../../tutorial/stdlib.rst:205 +#: ../../tutorial/stdlib.rst:207 msgid "" -"The :mod:`datetime` module supplies classes for manipulating dates and times" -" in both simple and complex ways. While date and time arithmetic is " -"supported, the focus of the implementation is on efficient member extraction" -" for output formatting and manipulation. The module also supports objects " +"The :mod:`datetime` module supplies classes for manipulating dates and times " +"in both simple and complex ways. While date and time arithmetic is " +"supported, the focus of the implementation is on efficient member extraction " +"for output formatting and manipulation. The module also supports objects " "that are timezone aware. ::" msgstr "" "O módulo :mod:`datetime` fornece classes para manipulação de datas e horas " -"nas mais variadas formas. Apesar da disponibilidade de aritmética com data e" -" hora, o foco da implementação é na extração eficiente dos membros para " -"formatação e manipulação. O módulo também oferece objetos que levam os fusos" -" horários em consideração. ::" +"nas mais variadas formas. Apesar da disponibilidade de aritmética com data e " +"hora, o foco da implementação é na extração eficiente dos membros para " +"formatação e manipulação. O módulo também oferece objetos que levam os fusos " +"horários em consideração. ::" -#: ../../tutorial/stdlib.rst:229 +#: ../../tutorial/stdlib.rst:231 msgid "Data Compression" msgstr "Compressão de dados" -#: ../../tutorial/stdlib.rst:231 +#: ../../tutorial/stdlib.rst:233 msgid "" "Common data archiving and compression formats are directly supported by " -"modules including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`lzma`, " -":mod:`zipfile` and :mod:`tarfile`. ::" +"modules including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`lzma`, :mod:" +"`zipfile` and :mod:`tarfile`. ::" msgstr "" "Formatos comuns de arquivamento e compressão de dados estão disponíveis " -"diretamente através de alguns módulos, entre eles: :mod:`zlib`, :mod:`gzip`," -" :mod:`bz2`, :mod:`lzma`, :mod:`zipfile` and :mod:`tarfile`. ::" +"diretamente através de alguns módulos, entre eles: :mod:`zlib`, :mod:" +"`gzip`, :mod:`bz2`, :mod:`lzma`, :mod:`zipfile` and :mod:`tarfile`. ::" -#: ../../tutorial/stdlib.rst:251 +#: ../../tutorial/stdlib.rst:253 msgid "Performance Measurement" msgstr "Medição de desempenho" -#: ../../tutorial/stdlib.rst:253 +#: ../../tutorial/stdlib.rst:255 msgid "" "Some Python users develop a deep interest in knowing the relative " "performance of different approaches to the same problem. Python provides a " @@ -250,48 +255,48 @@ msgstr "" "relativo de diferentes abordagens para o mesmo problema. Python oferece uma " "ferramenta de medição que esclarece essas dúvidas rapidamente." -#: ../../tutorial/stdlib.rst:257 +#: ../../tutorial/stdlib.rst:259 msgid "" "For example, it may be tempting to use the tuple packing and unpacking " -"feature instead of the traditional approach to swapping arguments. The " -":mod:`timeit` module quickly demonstrates a modest performance advantage::" +"feature instead of the traditional approach to swapping arguments. The :mod:" +"`timeit` module quickly demonstrates a modest performance advantage::" msgstr "" "Por exemplo, pode ser tentador usar o empacotamento e desempacotamento de " -"tuplas ao invés da abordagem tradicional de permutar os argumentos. O módulo" -" :mod:`timeit` rapidamente mostra uma modesta vantagem de desempenho::" +"tuplas ao invés da abordagem tradicional de permutar os argumentos. O " +"módulo :mod:`timeit` rapidamente mostra uma modesta vantagem de desempenho::" -#: ../../tutorial/stdlib.rst:267 +#: ../../tutorial/stdlib.rst:269 msgid "" -"In contrast to :mod:`timeit`'s fine level of granularity, the :mod:`profile`" -" and :mod:`pstats` modules provide tools for identifying time critical " +"In contrast to :mod:`timeit`'s fine level of granularity, the :mod:`profile` " +"and :mod:`pstats` modules provide tools for identifying time critical " "sections in larger blocks of code." msgstr "" -"Em contraste com granulidade fina do módulo :mod:`timeit`, os módulos " -":mod:`profile` e :mod:`pstats` oferecem ferramentas para identificar os " -"trechos mais críticos em grandes blocos de código." +"Em contraste com granulidade fina do módulo :mod:`timeit`, os módulos :mod:" +"`profile` e :mod:`pstats` oferecem ferramentas para identificar os trechos " +"mais críticos em grandes blocos de código." -#: ../../tutorial/stdlib.rst:275 +#: ../../tutorial/stdlib.rst:277 msgid "Quality Control" msgstr "Controle de qualidade" -#: ../../tutorial/stdlib.rst:277 +#: ../../tutorial/stdlib.rst:279 msgid "" -"One approach for developing high quality software is to write tests for each" -" function as it is developed and to run those tests frequently during the " +"One approach for developing high quality software is to write tests for each " +"function as it is developed and to run those tests frequently during the " "development process." msgstr "" -"Uma das abordagens usadas no desenvolvimento de software de alta qualidade é" -" escrever testes para cada função à medida que é desenvolvida e executar " +"Uma das abordagens usadas no desenvolvimento de software de alta qualidade é " +"escrever testes para cada função à medida que é desenvolvida e executar " "esses testes frequentemente durante o processo de desenvolvimento." -#: ../../tutorial/stdlib.rst:281 +#: ../../tutorial/stdlib.rst:283 msgid "" "The :mod:`doctest` module provides a tool for scanning a module and " "validating tests embedded in a program's docstrings. Test construction is " "as simple as cutting-and-pasting a typical call along with its results into " -"the docstring. This improves the documentation by providing the user with an" -" example and it allows the doctest module to make sure the code remains true" -" to the documentation::" +"the docstring. This improves the documentation by providing the user with an " +"example and it allows the doctest module to make sure the code remains true " +"to the documentation::" msgstr "" "O módulo :mod:`doctest` oferece uma ferramenta para realizar um trabalho de " "varredura e validação de testes escritos nas strings de documentação " @@ -301,21 +306,21 @@ msgstr "" "real, e permite que o módulo doctest verifique se o código continua fiel à " "documentação::" -#: ../../tutorial/stdlib.rst:299 +#: ../../tutorial/stdlib.rst:301 msgid "" "The :mod:`unittest` module is not as effortless as the :mod:`doctest` " "module, but it allows a more comprehensive set of tests to be maintained in " "a separate file::" msgstr "" -"O módulo :mod:`unittest` não é tão simples de usar quanto o módulo " -":mod:`doctest`, mas permite que um conjunto muito maior de testes seja " -"mantido em um arquivo separado::" +"O módulo :mod:`unittest` não é tão simples de usar quanto o módulo :mod:" +"`doctest`, mas permite que um conjunto muito maior de testes seja mantido em " +"um arquivo separado::" -#: ../../tutorial/stdlib.rst:321 +#: ../../tutorial/stdlib.rst:323 msgid "Batteries Included" msgstr "Baterias incluídas" -#: ../../tutorial/stdlib.rst:323 +#: ../../tutorial/stdlib.rst:325 msgid "" "Python has a \"batteries included\" philosophy. This is best seen through " "the sophisticated and robust capabilities of its larger packages. For " @@ -324,7 +329,7 @@ msgstr "" "Python tem uma filosofia de \"baterias incluídas\". Isso fica mais evidente " "através da sofisticação e robustez dos seus maiores pacotes. Por exemplo:" -#: ../../tutorial/stdlib.rst:326 +#: ../../tutorial/stdlib.rst:328 msgid "" "The :mod:`xmlrpc.client` and :mod:`xmlrpc.server` modules make implementing " "remote procedure calls into an almost trivial task. Despite the modules " @@ -335,10 +340,10 @@ msgstr "" "quase trivial. Apesar dos nomes dos módulos, nenhum conhecimento direto ou " "manipulação de XML é necessário." -#: ../../tutorial/stdlib.rst:330 +#: ../../tutorial/stdlib.rst:332 msgid "" -"The :mod:`email` package is a library for managing email messages, including" -" MIME and other :rfc:`2822`-based message documents. Unlike :mod:`smtplib` " +"The :mod:`email` package is a library for managing email messages, including " +"MIME and other :rfc:`2822`-based message documents. Unlike :mod:`smtplib` " "and :mod:`poplib` which actually send and receive messages, the email " "package has a complete toolset for building or decoding complex message " "structures (including attachments) and for implementing internet encoding " @@ -348,29 +353,29 @@ msgstr "" "correio eletrônico, incluindo MIME e outros baseados no :rfc:`2822`. " "Diferente dos módulos :mod:`smtplib` e :mod:`poplib` que apenas enviam e " "recebem mensagens, o pacote :mod:`email` tem um conjunto completo de " -"ferramentas para construir ou decodificar a estrutura de mensagens complexas" -" (incluindo anexos) e para implementação de protocolos de codificação e " +"ferramentas para construir ou decodificar a estrutura de mensagens complexas " +"(incluindo anexos) e para implementação de protocolos de codificação e " "cabeçalhos." -#: ../../tutorial/stdlib.rst:337 +#: ../../tutorial/stdlib.rst:339 msgid "" "The :mod:`json` package provides robust support for parsing this popular " "data interchange format. The :mod:`csv` module supports direct reading and " "writing of files in Comma-Separated Value format, commonly supported by " -"databases and spreadsheets. XML processing is supported by the " -":mod:`xml.etree.ElementTree`, :mod:`xml.dom` and :mod:`xml.sax` packages. " -"Together, these modules and packages greatly simplify data interchange " -"between Python applications and other tools." +"databases and spreadsheets. XML processing is supported by the :mod:`xml." +"etree.ElementTree`, :mod:`xml.dom` and :mod:`xml.sax` packages. Together, " +"these modules and packages greatly simplify data interchange between Python " +"applications and other tools." msgstr "" "O pacote :mod:`json` oferece um suporte robusto para analisar este popular " "formato para troca de dados. O módulo :mod:`csv` oferece suporte para " "leitura e escrita direta em arquivos no formato Comma-Separated Value, " "comumente suportado por bancos de dados e planilhas. O processamento XML é " -"fornecido pelos pacotes :mod:`xml.etree.ElementTree`, :mod:`xml.dom` e " -":mod:`xml.sax`. Juntos, esses módulos e pacotes simplificam muito a troca de" -" informações entre aplicativos Python e outras ferramentas." +"fornecido pelos pacotes :mod:`xml.etree.ElementTree`, :mod:`xml.dom` e :mod:" +"`xml.sax`. Juntos, esses módulos e pacotes simplificam muito a troca de " +"informações entre aplicativos Python e outras ferramentas." -#: ../../tutorial/stdlib.rst:346 +#: ../../tutorial/stdlib.rst:348 msgid "" "The :mod:`sqlite3` module is a wrapper for the SQLite database library, " "providing a persistent database that can be updated and accessed using " @@ -380,10 +385,10 @@ msgstr "" "SQLite, fornecendo um banco de dados persistente que pode ser atualizado e " "acessado usando sintaxe SQL ligeiramente NONSTANDARD." -#: ../../tutorial/stdlib.rst:350 +#: ../../tutorial/stdlib.rst:352 msgid "" -"Internationalization is supported by a number of modules including " -":mod:`gettext`, :mod:`locale`, and the :mod:`codecs` package." +"Internationalization is supported by a number of modules including :mod:" +"`gettext`, :mod:`locale`, and the :mod:`codecs` package." msgstr "" -"Internacionalização está disponível através de diversos módulos, como " -":mod:`gettext`, :mod:`locale`, e o pacote :mod:`codecs`." +"Internacionalização está disponível através de diversos módulos, como :mod:" +"`gettext`, :mod:`locale`, e o pacote :mod:`codecs`." diff --git a/tutorial/stdlib2.po b/tutorial/stdlib2.po index da8e9ebf5..4b9b53a55 100644 --- a/tutorial/stdlib2.po +++ b/tutorial/stdlib2.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:41+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -44,18 +46,19 @@ msgid "" "abbreviated displays of large or deeply nested containers::" msgstr "" "O módulo :mod:`reprlib` fornece uma versão de :func:`repr` personalizado " -"para exibições abreviadas de contêineres grandes ou profundamente " -"aninhados::" +"para exibições abreviadas de contêineres grandes ou profundamente aninhados::" #: ../../tutorial/stdlib2.rst:23 msgid "" "The :mod:`pprint` module offers more sophisticated control over printing " "both built-in and user defined objects in a way that is readable by the " -"interpreter. When the result is longer than one line, the \"pretty printer\"" -" adds line breaks and indentation to more clearly reveal data structure::" +"interpreter. When the result is longer than one line, the \"pretty printer\" " +"adds line breaks and indentation to more clearly reveal data structure::" msgstr "" -"O módulo :mod:`pprint` oferece um controle mais sofisticado na exibição tanto\n" -"de objetos embutidos quanto aqueles criados pelo usuário de maneira que fique\n" +"O módulo :mod:`pprint` oferece um controle mais sofisticado na exibição " +"tanto\n" +"de objetos embutidos quanto aqueles criados pelo usuário de maneira que " +"fique\n" "legível para o interpretador. Quando o resultado é maior que uma linha, o\n" "\"pretty printer\" acrescenta quebras de linha e indentação para revelar as\n" "estruturas de maneira mais clara::" @@ -75,7 +78,8 @@ msgid "" "direct way of formatting numbers with group separators::" msgstr "" "O módulo :mod:`locale` acessa uma base de dados de formatos específicos a\n" -"determinada cultura. O argumento ``grouping`` da função :func:`format` oferece\n" +"determinada cultura. O argumento ``grouping`` da função :func:`format` " +"oferece\n" "uma forma direta de formatar números com separadores de grupo::" #: ../../tutorial/stdlib2.rst:72 @@ -91,7 +95,8 @@ msgid "" msgstr "" "módulo :mod:`string` inclui a versátil classe :class:`Template` com uma\n" "sintaxe simplificada, adequada para ser editada por usuários finais. Isso\n" -"permite que usuários personalizem suas aplicações sem a necessidade de alterar\n" +"permite que usuários personalizem suas aplicações sem a necessidade de " +"alterar\n" "a aplicação." #: ../../tutorial/stdlib2.rst:78 @@ -99,22 +104,24 @@ msgid "" "The format uses placeholder names formed by ``$`` with valid Python " "identifiers (alphanumeric characters and underscores). Surrounding the " "placeholder with braces allows it to be followed by more alphanumeric " -"letters with no intervening spaces. Writing ``$$`` creates a single escaped" -" ``$``::" +"letters with no intervening spaces. Writing ``$$`` creates a single escaped " +"``$``::" msgstr "" -"Em um template são colocadas marcações indicando o local onde o texto variável\n" +"Em um template são colocadas marcações indicando o local onde o texto " +"variável\n" "deve ser inserido. Uma marcação é formada por ``$`` seguido de um\n" "identificador Python válido (caracteres alfanuméricos e underscores).\n" -"Envolvendo-se o identificador da marcação entre chaves, permite que ele seja\n" +"Envolvendo-se o identificador da marcação entre chaves, permite que ele " +"seja\n" "seguido por mais caracteres alfanuméricos sem a necessidade de espaços.\n" "Escrevendo-se ``$$`` cria-se um único ``$``::" #: ../../tutorial/stdlib2.rst:88 msgid "" -"The :meth:`~string.Template.substitute` method raises a :exc:`KeyError` when" -" a placeholder is not supplied in a dictionary or a keyword argument. For " -"mail-merge style applications, user supplied data may be incomplete and the " -":meth:`~string.Template.safe_substitute` method may be more appropriate --- " +"The :meth:`~string.Template.substitute` method raises a :exc:`KeyError` when " +"a placeholder is not supplied in a dictionary or a keyword argument. For " +"mail-merge style applications, user supplied data may be incomplete and the :" +"meth:`~string.Template.safe_substitute` method may be more appropriate --- " "it will leave placeholders unchanged if data is missing::" msgstr "" "O método :meth:`substitute` levanta uma exceção :exc:`KeyError` quando o\n" @@ -142,7 +149,8 @@ msgid "" "details of multiple output formats. This makes it possible to substitute " "custom templates for XML files, plain text reports, and HTML web reports." msgstr "" -"Outra aplicação para templates é separar a lógica da aplicação dos detalhes de\n" +"Outra aplicação para templates é separar a lógica da aplicação dos detalhes " +"de\n" "múltiplos formatos de saída. Assim é possível usar templates personalizados\n" "para gerar arquivos XML, relatórios em texto puro e relatórios web em HTML." @@ -152,20 +160,22 @@ msgstr "Trabalhando com formatos binários de dados" #: ../../tutorial/stdlib2.rst:135 msgid "" -"The :mod:`struct` module provides :func:`~struct.pack` and " -":func:`~struct.unpack` functions for working with variable length binary " -"record formats. The following example shows how to loop through header " -"information in a ZIP file without using the :mod:`zipfile` module. Pack " -"codes ``\"H\"`` and ``\"I\"`` represent two and four byte unsigned numbers " -"respectively. The ``\"<\"`` indicates that they are standard size and in " -"little-endian byte order::" +"The :mod:`struct` module provides :func:`~struct.pack` and :func:`~struct." +"unpack` functions for working with variable length binary record formats. " +"The following example shows how to loop through header information in a ZIP " +"file without using the :mod:`zipfile` module. Pack codes ``\"H\"`` and ``\"I" +"\"`` represent two and four byte unsigned numbers respectively. The ``\"<" +"\"`` indicates that they are standard size and in little-endian byte order::" msgstr "" -"O módulo :mod:`struct` oferece as funções :func:`pack` e :func:`unpack` para\n" +"O módulo :mod:`struct` oferece as funções :func:`pack` e :func:`unpack` " +"para\n" "trabalhar com registros binários de tamanho variável. O exemplo a seguir\n" -"mostra como iterar através do cabeçalho de informação num aquivo ZIP sem usar\n" +"mostra como iterar através do cabeçalho de informação num aquivo ZIP sem " +"usar\n" "o módulo :mod:`zipfile`. Os códigos de empacotamento ``\"H\"`` e ``\"I\"``\n" "representam números sem sinal de dois e quatro bytes respectivamente. O\n" -"``\"<\"`` indica que os números têm tamanho padrão e são little-endian (bytes\n" +"``\"<\"`` indica que os números têm tamanho padrão e são little-endian " +"(bytes\n" "menos significativos primeiro)::" #: ../../tutorial/stdlib2.rst:166 @@ -176,13 +186,15 @@ msgstr "Multi-threading" msgid "" "Threading is a technique for decoupling tasks which are not sequentially " "dependent. Threads can be used to improve the responsiveness of " -"applications that accept user input while other tasks run in the background." -" A related use case is running I/O in parallel with computations in another" -" thread." +"applications that accept user input while other tasks run in the " +"background. A related use case is running I/O in parallel with computations " +"in another thread." msgstr "" "O uso de threads é uma técnica para desacoplar tarefas que não são\n" -"sequencialmente dependentes. Threads podem ser usadas para melhorar o tempo de\n" -"resposta de aplicações que aceitam entradas do usuário enquanto outras tarefas\n" +"sequencialmente dependentes. Threads podem ser usadas para melhorar o tempo " +"de\n" +"resposta de aplicações que aceitam entradas do usuário enquanto outras " +"tarefas\n" "são executadas em segundo plano. Um caso relacionado é executar ações de\n" "entrada e saída (I/O) em uma thread paralelamente a cálculos em outra thread." @@ -202,9 +214,12 @@ msgid "" "module provides a number of synchronization primitives including locks, " "events, condition variables, and semaphores." msgstr "" -"O principal desafio para as aplicações que usam múltiplas threads é coordenar\n" -"as threads que compartilham dados ou outros recursos. Para esta finalidade, o\n" -"módulo threading oferece alguns mecanismos primitivos de sincronização, como\n" +"O principal desafio para as aplicações que usam múltiplas threads é " +"coordenar\n" +"as threads que compartilham dados ou outros recursos. Para esta finalidade, " +"o\n" +"módulo threading oferece alguns mecanismos primitivos de sincronização, " +"como\n" "travas (locks), eventos, variáveis de condição e semáforos." #: ../../tutorial/stdlib2.rst:202 @@ -233,8 +248,8 @@ msgstr "Gerando logs" #: ../../tutorial/stdlib2.rst:215 msgid "" "The :mod:`logging` module offers a full featured and flexible logging " -"system. At its simplest, log messages are sent to a file or to " -"``sys.stderr``::" +"system. At its simplest, log messages are sent to a file or to ``sys." +"stderr``::" msgstr "" "O módulo :mod:`logging` oferece um completo e flexível sistema de log. Da\n" "maneira mais simples, mensagens de log são enviadas para um arquivo ou para\n" @@ -249,15 +264,20 @@ msgid "" "By default, informational and debugging messages are suppressed and the " "output is sent to standard error. Other output options include routing " "messages through email, datagrams, sockets, or to an HTTP Server. New " -"filters can select different routing based on message priority: " -":const:`~logging.DEBUG`, :const:`~logging.INFO`, :const:`~logging.WARNING`, " -":const:`~logging.ERROR`, and :const:`~logging.CRITICAL`." -msgstr "" -"Por padrão, mensagens informativas e de depuração são suprimidas e a saída é\n" -"enviada para a saída de erros padrão (stderr). Outras opções de saída incluem\n" -"envio de mensagens através de correio eletrônico, datagramas, sockets ou para\n" -"um servidor HTTP. Novos filtros podem selecionar diferentes formas de envio de\n" -"mensagens, baseadas na prioridade da mensagem: :const:`DEBUG`, :const:`INFO`,\n" +"filters can select different routing based on message priority: :const:" +"`~logging.DEBUG`, :const:`~logging.INFO`, :const:`~logging.WARNING`, :const:" +"`~logging.ERROR`, and :const:`~logging.CRITICAL`." +msgstr "" +"Por padrão, mensagens informativas e de depuração são suprimidas e a saída " +"é\n" +"enviada para a saída de erros padrão (stderr). Outras opções de saída " +"incluem\n" +"envio de mensagens através de correio eletrônico, datagramas, sockets ou " +"para\n" +"um servidor HTTP. Novos filtros podem selecionar diferentes formas de envio " +"de\n" +"mensagens, baseadas na prioridade da mensagem: :const:`DEBUG`, :const:" +"`INFO`,\n" ":const:`WARNING`, :const:`ERROR` e :const:`CRITICAL`." #: ../../tutorial/stdlib2.rst:240 @@ -276,30 +296,35 @@ msgstr "Referências fracas" #: ../../tutorial/stdlib2.rst:250 msgid "" -"Python does automatic memory management (reference counting for most objects" -" and :term:`garbage collection` to eliminate cycles). The memory is freed " +"Python does automatic memory management (reference counting for most objects " +"and :term:`garbage collection` to eliminate cycles). The memory is freed " "shortly after the last reference to it has been eliminated." msgstr "" -"Python faz gerenciamento automático de memória (contagem de referências para a\n" -"maioria dos objetos e :term:`garbage collection ` [coleta\n" +"Python faz gerenciamento automático de memória (contagem de referências para " +"a\n" +"maioria dos objetos e :term:`garbage collection ` " +"[coleta\n" "de lixo] para eliminar ciclos). A memória ocupada por um objeto é liberada\n" "logo depois da última referência a ele ser eliminada." #: ../../tutorial/stdlib2.rst:254 msgid "" "This approach works fine for most applications but occasionally there is a " -"need to track objects only as long as they are being used by something else." -" Unfortunately, just tracking them creates a reference that makes them " +"need to track objects only as long as they are being used by something else. " +"Unfortunately, just tracking them creates a reference that makes them " "permanent. The :mod:`weakref` module provides tools for tracking objects " "without creating a reference. When the object is no longer needed, it is " "automatically removed from a weakref table and a callback is triggered for " "weakref objects. Typical applications include caching objects that are " "expensive to create::" msgstr "" -"Essa abordagem funciona bem para a maioria das aplicações, mas ocasionalmente\n" -"surge a necessidade de rastrear objetos apenas enquanto estão sendo usados por\n" +"Essa abordagem funciona bem para a maioria das aplicações, mas " +"ocasionalmente\n" +"surge a necessidade de rastrear objetos apenas enquanto estão sendo usados " +"por\n" "algum outro. Infelizmente rastreá-los cria uma referência, e isso os fazem\n" -"permanentes. O módulo :mod:`weakref` oferece ferramentas para rastrear objetos\n" +"permanentes. O módulo :mod:`weakref` oferece ferramentas para rastrear " +"objetos\n" "sem criar uma referência. Quando o objeto não é mais necessário, ele é\n" "automaticamente removido de uma tabela de referências fracas e uma chamada\n" "(*callback*) é disparada. Aplicações típicas incluem cacheamento de objetos\n" @@ -315,7 +340,8 @@ msgid "" "sometimes there is a need for alternative implementations with different " "performance trade-offs." msgstr "" -"Muitas necessidades envolvendo estruturas de dados podem ser satisfeitas com o\n" +"Muitas necessidades envolvendo estruturas de dados podem ser satisfeitas com " +"o\n" "tipo embutido lista. Entretanto, algumas vezes há uma necessidade por\n" "implementações alternativas que sacrificam algumas facilidades em nome de\n" "melhor desempenho." @@ -323,14 +349,16 @@ msgstr "" #: ../../tutorial/stdlib2.rst:295 msgid "" "The :mod:`array` module provides an :class:`~array.array()` object that is " -"like a list that stores only homogeneous data and stores it more compactly." -" The following example shows an array of numbers stored as two byte " -"unsigned binary numbers (typecode ``\"H\"``) rather than the usual 16 bytes " -"per entry for regular lists of Python int objects::" +"like a list that stores only homogeneous data and stores it more compactly. " +"The following example shows an array of numbers stored as two byte unsigned " +"binary numbers (typecode ``\"H\"``) rather than the usual 16 bytes per entry " +"for regular lists of Python int objects::" msgstr "" "O módulo :mod:`array` oferece uma classe :class:`array`, semelhante a uma\n" -"lista, mas que armazena apenas dados homogêneos e de maneira mais compacta. O\n" -"exemplo a seguir mostra um vetor de números armazenados como números binários\n" +"lista, mas que armazena apenas dados homogêneos e de maneira mais compacta. " +"O\n" +"exemplo a seguir mostra um vetor de números armazenados como números " +"binários\n" "de dois bytes sem sinal (código de tipo ``\"H\"``) ao invés dos 16 bytes\n" "usuais para cada item em uma lista de ``int``::" @@ -341,17 +369,19 @@ msgid "" "but slower lookups in the middle. These objects are well suited for " "implementing queues and breadth first tree searches::" msgstr "" -"O módulo :mod:`collections` oferece um objeto :class:`deque()` que comporta-se\n" +"O módulo :mod:`collections` oferece um objeto :class:`deque()` que comporta-" +"se\n" "como uma lista mas com *appends* e *pops* pela esquerda mais rápidos, porém\n" -"mais lento ao percorrer o meio da sequência. Esses objetos são adequados para\n" +"mais lento ao percorrer o meio da sequência. Esses objetos são adequados " +"para\n" "implementar filas e buscas de amplitude em árvores de dados (*breadth first\n" "tree searches*)::" #: ../../tutorial/stdlib2.rst:329 msgid "" "In addition to alternative list implementations, the library also offers " -"other tools such as the :mod:`bisect` module with functions for manipulating" -" sorted lists::" +"other tools such as the :mod:`bisect` module with functions for manipulating " +"sorted lists::" msgstr "" "Além de implementações alternativas de listas, a biblioteca também oferece\n" "outras ferramentas como o módulo :mod:`bisect` com funções para manipulação\n" @@ -361,12 +391,15 @@ msgstr "" msgid "" "The :mod:`heapq` module provides functions for implementing heaps based on " "regular lists. The lowest valued entry is always kept at position zero. " -"This is useful for applications which repeatedly access the smallest element" -" but do not want to run a full list sort::" -msgstr "" -"O módulo :mod:`heapq` oferece funções para implementação de *heaps* baseadas\n" -"em listas normais. O valor mais baixo é sempre mantido na posição zero. Isso é\n" -"útil para aplicações que acessam repetidamente o menor elemento, mas não querem\n" +"This is useful for applications which repeatedly access the smallest element " +"but do not want to run a full list sort::" +msgstr "" +"O módulo :mod:`heapq` oferece funções para implementação de *heaps* " +"baseadas\n" +"em listas normais. O valor mais baixo é sempre mantido na posição zero. Isso " +"é\n" +"útil para aplicações que acessam repetidamente o menor elemento, mas não " +"querem\n" "reordenar a lista toda a cada acesso::" #: ../../tutorial/stdlib2.rst:355 @@ -380,8 +413,10 @@ msgid "" "implementation of binary floating point, the class is especially helpful for" msgstr "" "O módulo :mod:`decimal` oferece o tipo :class:`Decimal` para aritmética\n" -"decimal com ponto flutuante. Comparado a implementação embutida :class:`float`\n" -"que usa aritmética binária de ponto flutuante, a classe é especialmente útil\n" +"decimal com ponto flutuante. Comparado a implementação embutida :class:" +"`float`\n" +"que usa aritmética binária de ponto flutuante, a classe é especialmente " +"útil\n" "para:" #: ../../tutorial/stdlib2.rst:361 @@ -431,7 +466,8 @@ msgid "" msgstr "" "O resultado de :class:`Decimal` considera zeros à direita, automaticamente\n" "inferindo quatro casas decimais a partir de multiplicandos com duas casas\n" -"decimais. O módulo :mod:`decimal` reproduz a aritmética como fazemos à mão e\n" +"decimais. O módulo :mod:`decimal` reproduz a aritmética como fazemos à mão " +"e\n" "evita problemas que podem ocorrer quando a representação binária do ponto\n" "flutuante não consegue representar quantidades decimais com exatidão." @@ -441,7 +477,8 @@ msgid "" "modulo calculations and equality tests that are unsuitable for binary " "floating point::" msgstr "" -"A representação exata permite à classe :class:`Decimal` executar cálculos de\n" +"A representação exata permite à classe :class:`Decimal` executar cálculos " +"de\n" "módulo e testes de igualdade que não funcionam bem em ponto flutuante\n" "binário::" diff --git a/tutorial/venv.po b/tutorial/venv.po index f504c9a55..562e69bb8 100644 --- a/tutorial/venv.po +++ b/tutorial/venv.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Ruan Aragão , 2019 # Leticia Portella , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,15 +50,15 @@ msgstr "" msgid "" "This means it may not be possible for one Python installation to meet the " "requirements of every application. If application A needs version 1.0 of a " -"particular module but application B needs version 2.0, then the requirements" -" are in conflict and installing either version 1.0 or 2.0 will leave one " +"particular module but application B needs version 2.0, then the requirements " +"are in conflict and installing either version 1.0 or 2.0 will leave one " "application unable to run." msgstr "" "Isso significa que talvez não seja possível que uma instalação Python " -"preencha os requisitos de qualquer aplicação. Se uma aplicação A necessita a" -" versão 1.0 de um módulo particular mas a aplicação B necessita a versão " -"2.0, os requisitos entrarão em conflito e instalar qualquer uma das duas " -"versões 1.0 ou 2.0 fará com que uma das aplicações não consiga executar. " +"preencha os requisitos de qualquer aplicação. Se uma aplicação A necessita a " +"versão 1.0 de um módulo particular mas a aplicação B necessita a versão 2.0, " +"os requisitos entrarão em conflito e instalar qualquer uma das duas versões " +"1.0 ou 2.0 fará com que uma das aplicações não consiga executar. " #: ../../tutorial/venv.rst:23 msgid "" @@ -65,9 +66,9 @@ msgid "" "self-contained directory tree that contains a Python installation for a " "particular version of Python, plus a number of additional packages." msgstr "" -"A solução para este problema é criar um :term:`ambiente virtual`, uma árvore" -" de diretórios que contém uma instalação Python para uma versão particular " -"do Python, além de uma série de pacotes adicionais. " +"A solução para este problema é criar um :term:`ambiente virtual`, uma árvore " +"de diretórios que contém uma instalação Python para uma versão particular do " +"Python, além de uma série de pacotes adicionais. " #: ../../tutorial/venv.rst:27 msgid "" @@ -91,16 +92,16 @@ msgstr "Criando ambientes virtuais" #: ../../tutorial/venv.rst:38 msgid "" -"The module used to create and manage virtual environments is called " -":mod:`venv`. :mod:`venv` will usually install the most recent version of " -"Python that you have available. If you have multiple versions of Python on " -"your system, you can select a specific Python version by running ``python3``" -" or whichever version you want." +"The module used to create and manage virtual environments is called :mod:" +"`venv`. :mod:`venv` will usually install the most recent version of Python " +"that you have available. If you have multiple versions of Python on your " +"system, you can select a specific Python version by running ``python3`` or " +"whichever version you want." msgstr "" -"O módulo usado para criar e gerenciar ambientes virtuais é chamado " -":mod:`venv`. O :mod:`venv` normalmente irá instalar a versão mais recente de" -" Python que você tiver disponível. Se você tiver múltiplas versões de Python" -" no seu sistema, você pode selecionar uma versão específica do Python " +"O módulo usado para criar e gerenciar ambientes virtuais é chamado :mod:" +"`venv`. O :mod:`venv` normalmente irá instalar a versão mais recente de " +"Python que você tiver disponível. Se você tiver múltiplas versões de Python " +"no seu sistema, você pode selecionar uma versão específica do Python " "executando ``python3`` ou qualquer versão que você desejar." #: ../../tutorial/venv.rst:44 @@ -109,8 +110,8 @@ msgid "" "place it, and run the :mod:`venv` module as a script with the directory " "path::" msgstr "" -"Para criar um ambiente virtual, escolha um diretório onde deseja colocá-lo e" -" execute o módulo :mod:`venv` como um script com o caminho do diretório::" +"Para criar um ambiente virtual, escolha um diretório onde deseja colocá-lo e " +"execute o módulo :mod:`venv` como um script com o caminho do diretório::" #: ../../tutorial/venv.rst:49 msgid "" @@ -162,43 +163,43 @@ msgstr "Gerenciando pacotes com o pip" #: ../../tutorial/venv.rst:89 msgid "" -"You can install, upgrade, and remove packages using a program called " -":program:`pip`. By default ``pip`` will install packages from the Python " +"You can install, upgrade, and remove packages using a program called :" +"program:`pip`. By default ``pip`` will install packages from the Python " "Package Index, . You can browse the Python Package Index " "by going to it in your web browser, or you can use ``pip``'s limited search " "feature:" msgstr "" -"Você pode instalar, atualizar e remover pacotes usando um programa chamado " -":program:`pip`. Por padrão ``pip`` irá instalar pacotes do Python Package " +"Você pode instalar, atualizar e remover pacotes usando um programa chamado :" +"program:`pip`. Por padrão ``pip`` irá instalar pacotes do Python Package " "Index, . Você pode navegar pelo Python Package Index " "através do seu navegador web, ou usando os recursos limitados de busca do " "``pip``:" #: ../../tutorial/venv.rst:105 msgid "" -"``pip`` has a number of subcommands: \"search\", \"install\", \"uninstall\"," -" \"freeze\", etc. (Consult the :ref:`installing-index` guide for complete " +"``pip`` has a number of subcommands: \"search\", \"install\", \"uninstall\", " +"\"freeze\", etc. (Consult the :ref:`installing-index` guide for complete " "documentation for ``pip``.)" msgstr "" -"``pip`` tem uma série de subcomandos: \"search\", \"install\", " -"\"uninstall\", \"freeze\", etc. (Consulte o guia :ref:`installing-index` " -"para a documentação completa do ``pip``.)" +"``pip`` tem uma série de subcomandos: \"search\", \"install\", \"uninstall" +"\", \"freeze\", etc. (Consulte o guia :ref:`installing-index` para a " +"documentação completa do ``pip``.)" #: ../../tutorial/venv.rst:109 msgid "" "You can install the latest version of a package by specifying a package's " "name:" msgstr "" -"Você pode instalar a última versão de um pacote apenas especificando nome do" -" pacote:" +"Você pode instalar a última versão de um pacote apenas especificando nome do " +"pacote:" #: ../../tutorial/venv.rst:120 msgid "" "You can also install a specific version of a package by giving the package " "name followed by ``==`` and the version number:" msgstr "" -"Você também pode instalar uma versão específica de um pacote dando o nome do" -" pacote seguido por ``==`` e o número da versão:" +"Você também pode instalar uma versão específica de um pacote dando o nome do " +"pacote seguido por ``==`` e o número da versão:" #: ../../tutorial/venv.rst:131 msgid "" @@ -209,8 +210,8 @@ msgid "" msgstr "" "Se você re-executar esse comando, ``pip`` vai perceber que aquela versão " "requisitada já foi instalada e não fará nada. Você pode definir uma versão " -"diferente para instalar aquela versão ou você pode executar ``pip install " -"--upgrade`` para fazer a atualização do pacote para a última versão." +"diferente para instalar aquela versão ou você pode executar ``pip install --" +"upgrade`` para fazer a atualização do pacote para a última versão." #: ../../tutorial/venv.rst:146 msgid "" @@ -235,31 +236,31 @@ msgstr "" #: ../../tutorial/venv.rst:178 msgid "" "``pip freeze`` will produce a similar list of the installed packages, but " -"the output uses the format that ``pip install`` expects. A common convention" -" is to put this list in a ``requirements.txt`` file:" +"the output uses the format that ``pip install`` expects. A common convention " +"is to put this list in a ``requirements.txt`` file:" msgstr "" -"``pip freeze`` irá mostrar uma lista dos pacotes instalados, mas o resultado" -" usa o formato que o ``pip install`` aceita. Uma convenção comum é colocar " +"``pip freeze`` irá mostrar uma lista dos pacotes instalados, mas o resultado " +"usa o formato que o ``pip install`` aceita. Uma convenção comum é colocar " "essa lista em um arquivo chamado ``requirements.txt``:" #: ../../tutorial/venv.rst:190 msgid "" "The ``requirements.txt`` can then be committed to version control and " -"shipped as part of an application. Users can then install all the necessary" -" packages with ``install -r``:" +"shipped as part of an application. Users can then install all the necessary " +"packages with ``install -r``:" msgstr "" "O arquivo ``requirements.txt`` pode ser submetido no controle de versão e " -"adicionado como parte da aplicação. Usuários poderão então instalar todos os" -" pacotes necessários com um ``install -r``:" +"adicionado como parte da aplicação. Usuários poderão então instalar todos os " +"pacotes necessários com um ``install -r``:" #: ../../tutorial/venv.rst:207 msgid "" "``pip`` has many more options. Consult the :ref:`installing-index` guide " "for complete documentation for ``pip``. When you've written a package and " -"want to make it available on the Python Package Index, consult the :ref" -":`distributing-index` guide." +"want to make it available on the Python Package Index, consult the :ref:" +"`distributing-index` guide." msgstr "" "``pip`` tem inúmeras outras opções. Consulte o guia :ref:`installing-index` " "para a documentação completa do ``pip``. Quando você escrever um pacote e " -"desejar deixá-lo disponível no Python Package Index, consulte o guia :ref" -":`distributing-index`." +"desejar deixá-lo disponível no Python Package Index, consulte o guia :ref:" +"`distributing-index`." diff --git a/tutorial/whatnow.po b/tutorial/whatnow.po index 3c9916e2d..a64966e7c 100644 --- a/tutorial/whatnow.po +++ b/tutorial/whatnow.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Otávio Carneiro , 2019 # Adorilson Bezerra , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-08 11:22+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:42+0000\n" "Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,12 +31,12 @@ msgstr "E agora?" #: ../../tutorial/whatnow.rst:7 msgid "" "Reading this tutorial has probably reinforced your interest in using Python " -"--- you should be eager to apply Python to solving your real-world problems." -" Where should you go to learn more?" +"--- you should be eager to apply Python to solving your real-world problems. " +"Where should you go to learn more?" msgstr "" "Ler este tutorial provavelmente reforçou seu interesse em usar Python --- " -"você deve estar ansioso para aplicar Python para resolver problemas do mundo" -" real. Aonde você deveria ir para aprender mais?" +"você deve estar ansioso para aplicar Python para resolver problemas do mundo " +"real. Aonde você deveria ir para aprender mais?" #: ../../tutorial/whatnow.rst:11 msgid "" @@ -54,18 +55,18 @@ msgid "" "You should browse through this manual, which gives complete (though terse) " "reference material about types, functions, and the modules in the standard " "library. The standard Python distribution includes a *lot* of additional " -"code. There are modules to read Unix mailboxes, retrieve documents via HTTP," -" generate random numbers, parse command-line options, write CGI programs, " +"code. There are modules to read Unix mailboxes, retrieve documents via HTTP, " +"generate random numbers, parse command-line options, write CGI programs, " "compress data, and many other tasks. Skimming through the Library Reference " "will give you an idea of what's available." msgstr "" "Você deveria navegar através deste manual, que lhe dará material completo " -"(ainda que breve) de referência sobre tipos, funções e módulos na biblioteca" -" padrão. A distribuição padrão do Python inclui *muito* código adicional. Há" -" módulos para ler caixa de correio Unix, baixar documentos via HTTP, gerar " -"números aleatórios, processar opções de linha de comando, escrever programas" -" CGI, comprimir dados a muitas outras tarefas. Uma lida rápida da Referência" -" da Biblioteca lhe dará uma ideia do que está disponível." +"(ainda que breve) de referência sobre tipos, funções e módulos na biblioteca " +"padrão. A distribuição padrão do Python inclui *muito* código adicional. Há " +"módulos para ler caixa de correio Unix, baixar documentos via HTTP, gerar " +"números aleatórios, processar opções de linha de comando, escrever programas " +"CGI, comprimir dados a muitas outras tarefas. Uma lida rápida da Referência " +"da Biblioteca lhe dará uma ideia do que está disponível." #: ../../tutorial/whatnow.rst:24 msgid "" @@ -121,15 +122,15 @@ msgstr "" #: ../../tutorial/whatnow.rst:46 msgid "" -"https://code.activestate.com/recipes/langs/python/: The Python Cookbook is a" -" sizable collection of code examples, larger modules, and useful scripts. " +"https://code.activestate.com/recipes/langs/python/: The Python Cookbook is a " +"sizable collection of code examples, larger modules, and useful scripts. " "Particularly notable contributions are collected in a book also titled " "Python Cookbook (O'Reilly & Associates, ISBN 0-596-00797-3.)" msgstr "" -"https://code.activestate.com/recipes/langs/python/: O Python Cookbook (livro" -" de receitas de Python) é uma grande coleção de exemplos de código, módulos " -"maiores e scripts úteis.Contribuições particularmente notáveis são coletadas" -" em um livro também chamado Python Cookbook (O'Reilly & Associates, ISBN " +"https://code.activestate.com/recipes/langs/python/: O Python Cookbook (livro " +"de receitas de Python) é uma grande coleção de exemplos de código, módulos " +"maiores e scripts úteis.Contribuições particularmente notáveis são coletadas " +"em um livro também chamado Python Cookbook (O'Reilly & Associates, ISBN " "0-596-00797-3.)" #: ../../tutorial/whatnow.rst:51 @@ -143,8 +144,8 @@ msgstr "" #: ../../tutorial/whatnow.rst:54 msgid "" "https://scipy.org: The Scientific Python project includes modules for fast " -"array computations and manipulations plus a host of packages for such things" -" as linear algebra, Fourier transforms, non-linear solvers, random number " +"array computations and manipulations plus a host of packages for such things " +"as linear algebra, Fourier transforms, non-linear solvers, random number " "distributions, statistical analysis and the like." msgstr "" "https://scipy.org: O projeto Scientific Python ( Python Científico) inclui " @@ -156,18 +157,18 @@ msgstr "" #: ../../tutorial/whatnow.rst:59 msgid "" "For Python-related questions and problem reports, you can post to the " -"newsgroup :newsgroup:`comp.lang.python`, or send them to the mailing list at" -" python-list@python.org. The newsgroup and mailing list are gatewayed, so " +"newsgroup :newsgroup:`comp.lang.python`, or send them to the mailing list at " +"python-list@python.org. The newsgroup and mailing list are gatewayed, so " "messages posted to one will automatically be forwarded to the other. There " -"are hundreds of postings a day, asking (and answering) questions, suggesting" -" new features, and announcing new modules. Mailing list archives are " +"are hundreds of postings a day, asking (and answering) questions, suggesting " +"new features, and announcing new modules. Mailing list archives are " "available at https://mail.python.org/pipermail/." msgstr "" "Para reportar questões e problemas relacionadas a Python, você pode postar " -"no newsgroup :newsgroup:`comp.lang.python` ou enviá-los para o grupo de " -"e-mail em python-list@python.org. O newsgroup e a lista são conectados, " -"então mensagens postadas em um são automaticamente encaminhadas ao outro. Há" -" centenas de postagem diárias perguntando (e respondendo) perguntas, " +"no newsgroup :newsgroup:`comp.lang.python` ou enviá-los para o grupo de e-" +"mail em python-list@python.org. O newsgroup e a lista são conectados, então " +"mensagens postadas em um são automaticamente encaminhadas ao outro. Há " +"centenas de postagem diárias perguntando (e respondendo) perguntas, " "sugerindo novas funcionalidades e anunciando novos módulos. E-mails " "arquivados estão disponíveis em https://mail.python.org/pipermail/. Existe " "também o grupo de discussão da comunidade brasileira de Python: python-" @@ -178,13 +179,13 @@ msgstr "" msgid "" "Before posting, be sure to check the list of :ref:`Frequently Asked " "Questions ` (also called the FAQ). The FAQ answers many of the " -"questions that come up again and again, and may already contain the solution" -" for your problem." +"questions that come up again and again, and may already contain the solution " +"for your problem." msgstr "" -"Antes de postar, certifique-se de checar a lista de Perguntas Frequentes " -"(:ref:`Frequently Asked Questions ` , também chamada de FAQ). A " -"FAQ responde muitas das perguntas que aparecem com frequência e pode já " -"conter a solução para o seu problema." +"Antes de postar, certifique-se de checar a lista de Perguntas Frequentes (:" +"ref:`Frequently Asked Questions ` , também chamada de FAQ). A FAQ " +"responde muitas das perguntas que aparecem com frequência e pode já conter a " +"solução para o seu problema." #: ../../tutorial/whatnow.rst:73 msgid "Footnotes" @@ -192,8 +193,8 @@ msgstr "Notas de rodapé" #: ../../tutorial/whatnow.rst:74 msgid "" -"\"Cheese Shop\" is a Monty Python's sketch: a customer enters a cheese shop," -" but whatever cheese he asks for, the clerk says it's missing." +"\"Cheese Shop\" is a Monty Python's sketch: a customer enters a cheese shop, " +"but whatever cheese he asks for, the clerk says it's missing." msgstr "" "\"Cheese Shop\" é o título de um quadro do grupo Monty Python: um freguês " "entra em uma loja especializada em queijos, mas qualquer queijo que ele " diff --git a/using/cmdline.po b/using/cmdline.po index 606c7ed37..588e7de96 100644 --- a/using/cmdline.po +++ b/using/cmdline.po @@ -1,21 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Mariana Costa , 2019 -# +# Hemílio Lauro , 2020 +# Willian C Lopes , 2020 +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-17 03:30+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Mariana Costa , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,8 +38,8 @@ msgstr "" #: ../../using/cmdline.rst:16 msgid "" -"Other implementations' command line schemes may differ. See " -":ref:`implementations` for further resources." +"Other implementations' command line schemes may differ. See :ref:" +"`implementations` for further resources." msgstr "" #: ../../using/cmdline.rst:23 @@ -44,8 +48,7 @@ msgstr "Linha de comando" #: ../../using/cmdline.rst:25 msgid "When invoking Python, you may specify any of these options::" -msgstr "" -"Ao invocar o Python, você pode especificar qualquer uma destas opções:" +msgstr "Ao invocar o Python, você pode especificar qualquer uma destas opções:" #: ../../using/cmdline.rst:29 msgid "" @@ -119,24 +122,24 @@ msgstr "" #: ../../using/cmdline.rst:68 msgid "" -"If this option is given, the first element of :data:`sys.argv` will be " -"``\"-c\"`` and the current directory will be added to the start of " -":data:`sys.path` (allowing modules in that directory to be imported as top " -"level modules)." +"If this option is given, the first element of :data:`sys.argv` will be ``\"-c" +"\"`` and the current directory will be added to the start of :data:`sys." +"path` (allowing modules in that directory to be imported as top level " +"modules)." msgstr "" #: ../../using/cmdline.rst:76 msgid "" -"Search :data:`sys.path` for the named module and execute its contents as the" -" :mod:`__main__` module." +"Search :data:`sys.path` for the named module and execute its contents as " +"the :mod:`__main__` module." msgstr "" #: ../../using/cmdline.rst:79 msgid "" "Since the argument is a *module* name, you must not give a file extension " "(``.py``). The module name should be a valid absolute Python module name, " -"but the implementation may not always enforce this (e.g. it may allow you to" -" use a name that includes a hyphen)." +"but the implementation may not always enforce this (e.g. it may allow you to " +"use a name that includes a hyphen)." msgstr "" #: ../../using/cmdline.rst:84 @@ -166,10 +169,10 @@ msgstr "" #: ../../using/cmdline.rst:103 msgid "" -":option:`-I` option can be used to run the script in isolated mode where " -":data:`sys.path` contains neither the current directory nor the user's site-" -"packages directory. All :envvar:`PYTHON*` environment variables are ignored," -" too." +":option:`-I` option can be used to run the script in isolated mode where :" +"data:`sys.path` contains neither the current directory nor the user's site-" +"packages directory. All :envvar:`PYTHON*` environment variables are ignored, " +"too." msgstr "" #: ../../using/cmdline.rst:108 @@ -180,7 +183,7 @@ msgstr "" #: ../../using/cmdline.rst:116 msgid ":func:`runpy.run_module`" -msgstr "" +msgstr ":func:`runpy.run_module`" #: ../../using/cmdline.rst:116 ../../using/cmdline.rst:166 msgid "Equivalent functionality directly available to Python code" @@ -188,7 +191,7 @@ msgstr "" #: ../../using/cmdline.rst:118 msgid ":pep:`338` -- Executing modules as scripts" -msgstr "" +msgstr ":pep:`338` -- Executando módulos como scripts" #: ../../using/cmdline.rst:121 msgid "Supply the package name to run a ``__main__`` submodule." @@ -200,23 +203,23 @@ msgstr "" #: ../../using/cmdline.rst:131 msgid "" -"Read commands from standard input (:data:`sys.stdin`). If standard input is" -" a terminal, :option:`-i` is implied." +"Read commands from standard input (:data:`sys.stdin`). If standard input is " +"a terminal, :option:`-i` is implied." msgstr "" #: ../../using/cmdline.rst:134 msgid "" -"If this option is given, the first element of :data:`sys.argv` will be " -"``\"-\"`` and the current directory will be added to the start of " -":data:`sys.path`." +"If this option is given, the first element of :data:`sys.argv` will be ``\"-" +"\"`` and the current directory will be added to the start of :data:`sys." +"path`." msgstr "" #: ../../using/cmdline.rst:143 msgid "" "Execute the Python code contained in *script*, which must be a filesystem " "path (absolute or relative) referring to either a Python file, a directory " -"containing a ``__main__.py`` file, or a zipfile containing a ``__main__.py``" -" file." +"containing a ``__main__.py`` file, or a zipfile containing a ``__main__.py`` " +"file." msgstr "" #: ../../using/cmdline.rst:148 @@ -228,8 +231,8 @@ msgstr "" #: ../../using/cmdline.rst:151 msgid "" "If the script name refers directly to a Python file, the directory " -"containing that file is added to the start of :data:`sys.path`, and the file" -" is executed as the :mod:`__main__` module." +"containing that file is added to the start of :data:`sys.path`, and the file " +"is executed as the :mod:`__main__` module." msgstr "" #: ../../using/cmdline.rst:155 @@ -241,20 +244,20 @@ msgstr "" #: ../../using/cmdline.rst:159 msgid "" -":option:`-I` option can be used to run the script in isolated mode where " -":data:`sys.path` contains neither the script's directory nor the user's " -"site-packages directory. All :envvar:`PYTHON*` environment variables are " -"ignored, too." +":option:`-I` option can be used to run the script in isolated mode where :" +"data:`sys.path` contains neither the script's directory nor the user's site-" +"packages directory. All :envvar:`PYTHON*` environment variables are ignored, " +"too." msgstr "" #: ../../using/cmdline.rst:165 msgid ":func:`runpy.run_path`" -msgstr "" +msgstr ":func:`runpy.run_path`" #: ../../using/cmdline.rst:169 msgid "" -"If no interface option is given, :option:`-i` is implied, ``sys.argv[0]`` is" -" an empty string (``\"\"``) and the current directory will be added to the " +"If no interface option is given, :option:`-i` is implied, ``sys.argv[0]`` is " +"an empty string (``\"\"``) and the current directory will be added to the " "start of :data:`sys.path`. Also, tab-completion and history editing is " "automatically enabled, if available on your platform (see :ref:`rlcompleter-" "config`)." @@ -262,7 +265,7 @@ msgstr "" #: ../../using/cmdline.rst:175 msgid ":ref:`tut-invoking`" -msgstr "" +msgstr ":ref:`tut-invoking`" #: ../../using/cmdline.rst:177 msgid "Automatic enabling of tab-completion and history editing." @@ -294,8 +297,8 @@ msgstr "" #: ../../using/cmdline.rst:217 msgid "" -"Issue a warning when comparing :class:`bytes` or :class:`bytearray` with " -":class:`str` or :class:`bytes` with :class:`int`. Issue an error when the " +"Issue a warning when comparing :class:`bytes` or :class:`bytearray` with :" +"class:`str` or :class:`bytes` with :class:`int`. Issue an error when the " "option is given twice (:option:`!-bb`)." msgstr "" @@ -334,16 +337,16 @@ msgstr "" #: ../../using/cmdline.rst:252 msgid "" -"Ignore all :envvar:`PYTHON*` environment variables, e.g. " -":envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." +"Ignore all :envvar:`PYTHON*` environment variables, e.g. :envvar:" +"`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set." msgstr "" #: ../../using/cmdline.rst:258 msgid "" "When a script is passed as first argument or the :option:`-c` option is " -"used, enter interactive mode after executing the script or the command, even" -" when :data:`sys.stdin` does not appear to be a terminal. The " -":envvar:`PYTHONSTARTUP` file is not read." +"used, enter interactive mode after executing the script or the command, even " +"when :data:`sys.stdin` does not appear to be a terminal. The :envvar:" +"`PYTHONSTARTUP` file is not read." msgstr "" #: ../../using/cmdline.rst:263 @@ -354,19 +357,19 @@ msgstr "" #: ../../using/cmdline.rst:269 msgid "" -"Run Python in isolated mode. This also implies -E and -s. In isolated mode " -":data:`sys.path` contains neither the script's directory nor the user's " -"site-packages directory. All :envvar:`PYTHON*` environment variables are " -"ignored, too. Further restrictions may be imposed to prevent the user from " -"injecting malicious code." +"Run Python in isolated mode. This also implies -E and -s. In isolated mode :" +"data:`sys.path` contains neither the script's directory nor the user's site-" +"packages directory. All :envvar:`PYTHON*` environment variables are ignored, " +"too. Further restrictions may be imposed to prevent the user from injecting " +"malicious code." msgstr "" #: ../../using/cmdline.rst:280 msgid "" -"Remove assert statements and any code conditional on the value of " -":const:`__debug__`. Augment the filename for compiled (:term:`bytecode`) " -"files by adding ``.opt-1`` before the ``.pyc`` extension (see :pep:`488`). " -"See also :envvar:`PYTHONOPTIMIZE`." +"Remove assert statements and any code conditional on the value of :const:" +"`__debug__`. Augment the filename for compiled (:term:`bytecode`) files by " +"adding ``.opt-1`` before the ``.pyc`` extension (see :pep:`488`). See also :" +"envvar:`PYTHONOPTIMIZE`." msgstr "" #: ../../using/cmdline.rst:285 ../../using/cmdline.rst:295 @@ -384,11 +387,13 @@ msgstr "" msgid "" "Don't display the copyright and version messages even in interactive mode." msgstr "" +"Não exibe as mensagens de copyright e de versão nem mesmo no modo " +"interativo. " #: ../../using/cmdline.rst:308 msgid "" -"Turn on hash randomization. This option only has an effect if the " -":envvar:`PYTHONHASHSEED` environment variable is set to ``0``, since hash " +"Turn on hash randomization. This option only has an effect if the :envvar:" +"`PYTHONHASHSEED` environment variable is set to ``0``, since hash " "randomization is enabled by default." msgstr "" @@ -396,8 +401,8 @@ msgstr "" msgid "" "On previous versions of Python, this option turns on hash randomization, so " "that the :meth:`__hash__` values of str, bytes and datetime are \"salted\" " -"with an unpredictable random value. Although they remain constant within an" -" individual Python process, they are not predictable between repeated " +"with an unpredictable random value. Although they remain constant within an " +"individual Python process, they are not predictable between repeated " "invocations of Python." msgstr "" @@ -405,8 +410,8 @@ msgstr "" msgid "" "Hash randomization is intended to provide protection against a denial-of-" "service caused by carefully-chosen inputs that exploit the worst case " -"performance of a dict construction, O(n^2) complexity. See " -"http://www.ocert.org/advisories/ocert-2011-003.html for details." +"performance of a dict construction, O(n^2) complexity. See http://www.ocert." +"org/advisories/ocert-2011-003.html for details." msgstr "" #: ../../using/cmdline.rst:323 @@ -421,8 +426,8 @@ msgstr "A opção não é mais ignorada." #: ../../using/cmdline.rst:334 msgid "" -"Don't add the :data:`user site-packages directory ` to " -":data:`sys.path`." +"Don't add the :data:`user site-packages directory ` to :data:" +"`sys.path`." msgstr "" #: ../../using/cmdline.rst:339 ../../using/cmdline.rst:647 @@ -434,8 +439,8 @@ msgstr "" msgid "" "Disable the import of the module :mod:`site` and the site-dependent " "manipulations of :data:`sys.path` that it entails. Also disable these " -"manipulations if :mod:`site` is explicitly imported later (call " -":func:`site.main` if you want them to be triggered)." +"manipulations if :mod:`site` is explicitly imported later (call :func:`site." +"main` if you want them to be triggered)." msgstr "" #: ../../using/cmdline.rst:352 @@ -455,8 +460,8 @@ msgstr "" #: ../../using/cmdline.rst:363 msgid "" "Print a message each time a module is initialized, showing the place " -"(filename or built-in module) from which it is loaded. When given twice " -"(:option:`!-vv`), print a message for each file that is checked for when " +"(filename or built-in module) from which it is loaded. When given twice (:" +"option:`!-vv`), print a message for each file that is checked for when " "searching for a module. Also provides information on module cleanup at " "exit. See also :envvar:`PYTHONVERBOSE`." msgstr "" @@ -464,8 +469,8 @@ msgstr "" #: ../../using/cmdline.rst:373 msgid "" "Warning control. Python's warning machinery by default prints warning " -"messages to :data:`sys.stderr`. A typical warning message has the following" -" form:" +"messages to :data:`sys.stderr`. A typical warning message has the following " +"form:" msgstr "" #: ../../using/cmdline.rst:381 @@ -476,17 +481,17 @@ msgstr "" #: ../../using/cmdline.rst:384 msgid "" -"Multiple :option:`-W` options may be given; when a warning matches more than" -" one option, the action for the last matching option is performed. Invalid " -":option:`-W` options are ignored (though, a warning message is printed about" -" invalid options when the first warning is issued)." +"Multiple :option:`-W` options may be given; when a warning matches more than " +"one option, the action for the last matching option is performed. Invalid :" +"option:`-W` options are ignored (though, a warning message is printed about " +"invalid options when the first warning is issued)." msgstr "" #: ../../using/cmdline.rst:389 msgid "" "Warnings can also be controlled using the :envvar:`PYTHONWARNINGS` " -"environment variable and from within a Python program using the " -":mod:`warnings` module." +"environment variable and from within a Python program using the :mod:" +"`warnings` module." msgstr "" #: ../../using/cmdline.rst:393 ../../using/cmdline.rst:675 @@ -498,8 +503,8 @@ msgstr "" #: ../../using/cmdline.rst:404 msgid "" -"The action names can be abbreviated as desired (e.g. ``-Wi``, ``-Wd``, " -"``-Wa``, ``-We``) and the interpreter will resolve them to the appropriate " +"The action names can be abbreviated as desired (e.g. ``-Wi``, ``-Wd``, ``-" +"Wa``, ``-We``) and the interpreter will resolve them to the appropriate " "action name." msgstr "" @@ -511,8 +516,8 @@ msgstr "" #: ../../using/cmdline.rst:414 msgid "" -"Skip the first line of the source, allowing use of non-Unix forms of " -"``#!cmd``. This is intended for a DOS specific hack only." +"Skip the first line of the source, allowing use of non-Unix forms of ``#!" +"cmd``. This is intended for a DOS specific hack only." msgstr "" #: ../../using/cmdline.rst:420 @@ -534,11 +539,11 @@ msgstr "" #: ../../using/cmdline.rst:427 msgid "" -"``-X tracemalloc`` to start tracing Python memory allocations using the " -":mod:`tracemalloc` module. By default, only the most recent frame is stored " -"in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start tracing " -"with a traceback limit of *NFRAME* frames. See the :func:`tracemalloc.start`" -" for more information." +"``-X tracemalloc`` to start tracing Python memory allocations using the :mod:" +"`tracemalloc` module. By default, only the most recent frame is stored in a " +"traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start tracing with a " +"traceback limit of *NFRAME* frames. See the :func:`tracemalloc.start` for " +"more information." msgstr "" #: ../../using/cmdline.rst:432 @@ -552,9 +557,9 @@ msgstr "" msgid "" "``-X importtime`` to show how long each import takes. It shows module name, " "cumulative time (including nested imports) and self time (excluding nested " -"imports). Note that its output may be broken in multi-threaded application." -" Typical usage is ``python3 -X importtime -c 'import asyncio'``. See also " -":envvar:`PYTHONPROFILEIMPORTTIME`." +"imports). Note that its output may be broken in multi-threaded " +"application. Typical usage is ``python3 -X importtime -c 'import " +"asyncio'``. See also :envvar:`PYTHONPROFILEIMPORTTIME`." msgstr "" #: ../../using/cmdline.rst:440 @@ -571,8 +576,8 @@ msgstr "" #: ../../using/cmdline.rst:446 msgid "" -"Install debug hooks on memory allocators: see the " -":c:func:`PyMem_SetupDebugHooks` C function." +"Install debug hooks on memory allocators: see the :c:func:" +"`PyMem_SetupDebugHooks` C function." msgstr "" #: ../../using/cmdline.rst:448 @@ -588,21 +593,21 @@ msgstr "" #: ../../using/cmdline.rst:451 msgid "" "Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to " -"``True``" +"``True``." msgstr "" #: ../../using/cmdline.rst:454 msgid "" "``-X utf8`` enables UTF-8 mode for operating system interfaces, overriding " "the default locale-aware mode. ``-X utf8=0`` explicitly disables UTF-8 mode " -"(even when it would otherwise activate automatically). See " -":envvar:`PYTHONUTF8` for more details." +"(even when it would otherwise activate automatically). See :envvar:" +"`PYTHONUTF8` for more details." msgstr "" #: ../../using/cmdline.rst:459 msgid "" -"It also allows passing arbitrary values and retrieving them through the " -":data:`sys._xoptions` dictionary." +"It also allows passing arbitrary values and retrieving them through the :" +"data:`sys._xoptions` dictionary." msgstr "" #: ../../using/cmdline.rst:462 @@ -648,25 +653,24 @@ msgstr "" #: ../../using/cmdline.rst:500 msgid "" "Change the location of the standard Python libraries. By default, the " -"libraries are searched in :file:`{prefix}/lib/python{version}` and " -":file:`{exec_prefix}/lib/python{version}`, where :file:`{prefix}` and " -":file:`{exec_prefix}` are installation-dependent directories, both " -"defaulting to :file:`/usr/local`." +"libraries are searched in :file:`{prefix}/lib/python{version}` and :file:" +"`{exec_prefix}/lib/python{version}`, where :file:`{prefix}` and :file:" +"`{exec_prefix}` are installation-dependent directories, both defaulting to :" +"file:`/usr/local`." msgstr "" #: ../../using/cmdline.rst:506 msgid "" "When :envvar:`PYTHONHOME` is set to a single directory, its value replaces " "both :file:`{prefix}` and :file:`{exec_prefix}`. To specify different " -"values for these, set :envvar:`PYTHONHOME` to " -":file:`{prefix}:{exec_prefix}`." +"values for these, set :envvar:`PYTHONHOME` to :file:`{prefix}:{exec_prefix}`." msgstr "" #: ../../using/cmdline.rst:513 msgid "" -"Augment the default search path for module files. The format is the same as" -" the shell's :envvar:`PATH`: one or more directory pathnames separated by " -":data:`os.pathsep` (e.g. colons on Unix or semicolons on Windows). Non-" +"Augment the default search path for module files. The format is the same as " +"the shell's :envvar:`PATH`: one or more directory pathnames separated by :" +"data:`os.pathsep` (e.g. colons on Unix or semicolons on Windows). Non-" "existent directories are silently ignored." msgstr "" @@ -679,35 +683,35 @@ msgstr "" #: ../../using/cmdline.rst:522 msgid "" -"The default search path is installation dependent, but generally begins with" -" :file:`{prefix}/lib/python{version}` (see :envvar:`PYTHONHOME` above). It " -"is *always* appended to :envvar:`PYTHONPATH`." +"The default search path is installation dependent, but generally begins " +"with :file:`{prefix}/lib/python{version}` (see :envvar:`PYTHONHOME` above). " +"It is *always* appended to :envvar:`PYTHONPATH`." msgstr "" #: ../../using/cmdline.rst:526 msgid "" -"An additional directory will be inserted in the search path in front of " -":envvar:`PYTHONPATH` as described above under :ref:`using-on-interface-" -"options`. The search path can be manipulated from within a Python program as" -" the variable :data:`sys.path`." +"An additional directory will be inserted in the search path in front of :" +"envvar:`PYTHONPATH` as described above under :ref:`using-on-interface-" +"options`. The search path can be manipulated from within a Python program as " +"the variable :data:`sys.path`." msgstr "" #: ../../using/cmdline.rst:534 msgid "" -"If this is the name of a readable file, the Python commands in that file are" -" executed before the first prompt is displayed in interactive mode. The " -"file is executed in the same namespace where interactive commands are " -"executed so that objects defined or imported in it can be used without " -"qualification in the interactive session. You can also change the prompts " -":data:`sys.ps1` and :data:`sys.ps2` and the hook " -":data:`sys.__interactivehook__` in this file." +"If this is the name of a readable file, the Python commands in that file are " +"executed before the first prompt is displayed in interactive mode. The file " +"is executed in the same namespace where interactive commands are executed so " +"that objects defined or imported in it can be used without qualification in " +"the interactive session. You can also change the prompts :data:`sys.ps1` " +"and :data:`sys.ps2` and the hook :data:`sys.__interactivehook__` in this " +"file." msgstr "" #: ../../using/cmdline.rst:544 msgid "" -"If this is set to a non-empty string it is equivalent to specifying the " -":option:`-O` option. If set to an integer, it is equivalent to specifying " -":option:`-O` multiple times." +"If this is set to a non-empty string it is equivalent to specifying the :" +"option:`-O` option. If set to an integer, it is equivalent to specifying :" +"option:`-O` multiple times." msgstr "" #: ../../using/cmdline.rst:551 @@ -717,21 +721,21 @@ msgid "" "by the default implementation of :func:`sys.breakpointhook` which itself is " "called by built-in :func:`breakpoint`. If not set, or set to the empty " "string, it is equivalent to the value \"pdb.set_trace\". Setting this to " -"the string \"0\" causes the default implementation of " -":func:`sys.breakpointhook` to do nothing but return immediately." +"the string \"0\" causes the default implementation of :func:`sys." +"breakpointhook` to do nothing but return immediately." msgstr "" #: ../../using/cmdline.rst:563 msgid "" -"If this is set to a non-empty string it is equivalent to specifying the " -":option:`-d` option. If set to an integer, it is equivalent to specifying " -":option:`-d` multiple times." +"If this is set to a non-empty string it is equivalent to specifying the :" +"option:`-d` option. If set to an integer, it is equivalent to specifying :" +"option:`-d` multiple times." msgstr "" #: ../../using/cmdline.rst:570 msgid "" -"If this is set to a non-empty string it is equivalent to specifying the " -":option:`-i` option." +"If this is set to a non-empty string it is equivalent to specifying the :" +"option:`-i` option." msgstr "" #: ../../using/cmdline.rst:573 @@ -742,15 +746,15 @@ msgstr "" #: ../../using/cmdline.rst:579 msgid "" -"If this is set to a non-empty string it is equivalent to specifying the " -":option:`-u` option." +"If this is set to a non-empty string it is equivalent to specifying the :" +"option:`-u` option." msgstr "" #: ../../using/cmdline.rst:585 msgid "" -"If this is set to a non-empty string it is equivalent to specifying the " -":option:`-v` option. If set to an integer, it is equivalent to specifying " -":option:`-v` multiple times." +"If this is set to a non-empty string it is equivalent to specifying the :" +"option:`-v` option. If set to an integer, it is equivalent to specifying :" +"option:`-v` multiple times." msgstr "" #: ../../using/cmdline.rst:592 @@ -762,8 +766,8 @@ msgstr "" #: ../../using/cmdline.rst:598 msgid "" "If this is set to a non-empty string, Python won't try to write ``.pyc`` " -"files on the import of source modules. This is equivalent to specifying the" -" :option:`-B` option." +"files on the import of source modules. This is equivalent to specifying " +"the :option:`-B` option." msgstr "" #: ../../using/cmdline.rst:605 @@ -827,9 +831,9 @@ msgstr "" #: ../../using/cmdline.rst:652 msgid "" "Defines the :data:`user base directory `, which is used to " -"compute the path of the :data:`user site-packages directory " -"` and :ref:`Distutils installation paths ` for ``python setup.py install --user``." +"compute the path of the :data:`user site-packages directory ` and :ref:`Distutils installation paths ` " +"for ``python setup.py install --user``." msgstr "" #: ../../using/cmdline.rst:664 @@ -848,11 +852,11 @@ msgstr "" #: ../../using/cmdline.rst:692 msgid "" -"If this environment variable is set to a non-empty string, " -":func:`faulthandler.enable` is called at startup: install a handler for " -":const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and " -":const:`SIGILL` signals to dump the Python traceback. This is equivalent to" -" :option:`-X` ``faulthandler`` option." +"If this environment variable is set to a non-empty string, :func:" +"`faulthandler.enable` is called at startup: install a handler for :const:" +"`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and :const:" +"`SIGILL` signals to dump the Python traceback. This is equivalent to :" +"option:`-X` ``faulthandler`` option." msgstr "" #: ../../using/cmdline.rst:703 @@ -873,8 +877,8 @@ msgstr "" #: ../../using/cmdline.rst:723 msgid "" -"If this environment variable is set to a non-empty string, enable the " -":ref:`debug mode ` of the :mod:`asyncio` module." +"If this environment variable is set to a non-empty string, enable the :ref:" +"`debug mode ` of the :mod:`asyncio` module." msgstr "" #: ../../using/cmdline.rst:731 @@ -894,15 +898,15 @@ msgstr "" #: ../../using/cmdline.rst:737 msgid "" "``malloc``: use the :c:func:`malloc` function of the C library for all " -"domains (:c:data:`PYMEM_DOMAIN_RAW`, :c:data:`PYMEM_DOMAIN_MEM`, " -":c:data:`PYMEM_DOMAIN_OBJ`)." +"domains (:c:data:`PYMEM_DOMAIN_RAW`, :c:data:`PYMEM_DOMAIN_MEM`, :c:data:" +"`PYMEM_DOMAIN_OBJ`)." msgstr "" #: ../../using/cmdline.rst:740 msgid "" -"``pymalloc``: use the :ref:`pymalloc allocator ` for " -":c:data:`PYMEM_DOMAIN_MEM` and :c:data:`PYMEM_DOMAIN_OBJ` domains and use " -"the :c:func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain." +"``pymalloc``: use the :ref:`pymalloc allocator ` for :c:data:" +"`PYMEM_DOMAIN_MEM` and :c:data:`PYMEM_DOMAIN_OBJ` domains and use the :c:" +"func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain." msgstr "" #: ../../using/cmdline.rst:744 @@ -911,22 +915,22 @@ msgstr "" #: ../../using/cmdline.rst:746 msgid "" -"``debug``: install debug hooks on top of the :ref:`default memory allocators" -" `." +"``debug``: install debug hooks on top of the :ref:`default memory allocators " +"`." msgstr "" #: ../../using/cmdline.rst:748 -msgid "``malloc_debug``: same as ``malloc`` but also install debug hooks" +msgid "``malloc_debug``: same as ``malloc`` but also install debug hooks." msgstr "" #: ../../using/cmdline.rst:749 -msgid "``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks" +msgid "``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks." msgstr "" #: ../../using/cmdline.rst:751 msgid "" -"See the :ref:`default memory allocators ` and the" -" :c:func:`PyMem_SetupDebugHooks` function (install debug hooks on Python " +"See the :ref:`default memory allocators ` and " +"the :c:func:`PyMem_SetupDebugHooks` function (install debug hooks on Python " "memory allocators)." msgstr "" @@ -936,9 +940,9 @@ msgstr "" #: ../../using/cmdline.rst:763 msgid "" -"If set to a non-empty string, Python will print statistics of the " -":ref:`pymalloc memory allocator ` every time a new pymalloc object" -" arena is created, and on shutdown." +"If set to a non-empty string, Python will print statistics of the :ref:" +"`pymalloc memory allocator ` every time a new pymalloc object " +"arena is created, and on shutdown." msgstr "" #: ../../using/cmdline.rst:767 @@ -964,17 +968,17 @@ msgstr "" #: ../../using/cmdline.rst:782 msgid "" -"This may also be enabled at runtime with " -":func:`sys._enablelegacywindowsfsencoding()`." +"This may also be enabled at runtime with :func:`sys." +"_enablelegacywindowsfsencoding()`." msgstr "" #: ../../using/cmdline.rst:786 ../../using/cmdline.rst:800 msgid ":ref:`Availability `: Windows." -msgstr "" +msgstr ":ref:`Disponibilidade `: Windows." #: ../../using/cmdline.rst:787 msgid "See :pep:`529` for more details." -msgstr "" +msgstr "Veja :pep:`529` para mais detalhes." #: ../../using/cmdline.rst:792 msgid "" @@ -985,8 +989,8 @@ msgstr "" #: ../../using/cmdline.rst:796 msgid "" -"This variable is ignored if the standard streams are redirected (to files or" -" pipes) rather than referring to console buffers." +"This variable is ignored if the standard streams are redirected (to files or " +"pipes) rather than referring to console buffers." msgstr "" #: ../../using/cmdline.rst:806 @@ -1009,45 +1013,45 @@ msgstr "" #: ../../using/cmdline.rst:818 msgid "``C.UTF-8``" -msgstr "" +msgstr "``C.UTF-8``" #: ../../using/cmdline.rst:819 msgid "``C.utf8``" -msgstr "" +msgstr "``C.utf8``" #: ../../using/cmdline.rst:820 msgid "``UTF-8``" -msgstr "" +msgstr "``UTF-8``" #: ../../using/cmdline.rst:822 msgid "" "If setting one of these locale categories succeeds, then the ``LC_CTYPE`` " "environment variable will also be set accordingly in the current process " "environment before the Python runtime is initialized. This ensures that in " -"addition to being seen by both the interpreter itself and other locale-aware" -" components running in the same process (such as the GNU ``readline`` " +"addition to being seen by both the interpreter itself and other locale-aware " +"components running in the same process (such as the GNU ``readline`` " "library), the updated setting is also seen in subprocesses (regardless of " -"whether or not those processes are running a Python interpreter), as well as" -" in operations that query the environment rather than the current C locale " +"whether or not those processes are running a Python interpreter), as well as " +"in operations that query the environment rather than the current C locale " "(such as Python's own :func:`locale.getdefaultlocale`)." msgstr "" #: ../../using/cmdline.rst:832 msgid "" "Configuring one of these locales (either explicitly or via the above " -"implicit locale coercion) automatically enables the ``surrogateescape`` " -":ref:`error handler ` for :data:`sys.stdin` and " -":data:`sys.stdout` (:data:`sys.stderr` continues to use ``backslashreplace``" -" as it does in any other locale). This stream handling behavior can be " -"overridden using :envvar:`PYTHONIOENCODING` as usual." +"implicit locale coercion) automatically enables the ``surrogateescape`` :ref:" +"`error handler ` for :data:`sys.stdin` and :data:`sys." +"stdout` (:data:`sys.stderr` continues to use ``backslashreplace`` as it does " +"in any other locale). This stream handling behavior can be overridden using :" +"envvar:`PYTHONIOENCODING` as usual." msgstr "" #: ../../using/cmdline.rst:839 msgid "" "For debugging purposes, setting ``PYTHONCOERCECLOCALE=warn`` will cause " "Python to emit warning messages on ``stderr`` if either the locale coercion " -"activates, or else if a locale that *would* have triggered coercion is still" -" active when the Python runtime is initialized." +"activates, or else if a locale that *would* have triggered coercion is still " +"active when the Python runtime is initialized." msgstr "" #: ../../using/cmdline.rst:844 @@ -1059,7 +1063,7 @@ msgid "" "system interfaces." msgstr "" -#: ../../using/cmdline.rst:851 ../../using/cmdline.rst:912 +#: ../../using/cmdline.rst:851 msgid ":ref:`Availability `: \\*nix." msgstr "" @@ -1086,8 +1090,8 @@ msgstr "" #: ../../using/cmdline.rst:871 msgid "" -":func:`sys.getfilesystemencoding()` returns ``'UTF-8'`` (the locale encoding" -" is ignored)." +":func:`sys.getfilesystemencoding()` returns ``'UTF-8'`` (the locale encoding " +"is ignored)." msgstr "" #: ../../using/cmdline.rst:873 @@ -1101,9 +1105,9 @@ msgstr "" msgid "" ":data:`sys.stdin`, :data:`sys.stdout`, and :data:`sys.stderr` all use UTF-8 " "as their text encoding, with the ``surrogateescape`` :ref:`error handler " -"` being enabled for :data:`sys.stdin` and :data:`sys.stdout`" -" (:data:`sys.stderr` continues to use ``backslashreplace`` as it does in the" -" default locale-aware mode)" +"` being enabled for :data:`sys.stdin` and :data:`sys.stdout` " +"(:data:`sys.stderr` continues to use ``backslashreplace`` as it does in the " +"default locale-aware mode)" msgstr "" #: ../../using/cmdline.rst:882 @@ -1119,8 +1123,7 @@ msgid "" msgstr "" #: ../../using/cmdline.rst:887 -msgid "" -":func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding." +msgid ":func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding." msgstr "" #: ../../using/cmdline.rst:888 @@ -1133,14 +1136,13 @@ msgstr "" #: ../../using/cmdline.rst:893 msgid "" -"Note that the standard stream settings in UTF-8 mode can be overridden by " -":envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware " +"Note that the standard stream settings in UTF-8 mode can be overridden by :" +"envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware " "mode)." msgstr "" #: ../../using/cmdline.rst:897 -msgid "" -"If set to ``0``, the interpreter runs in its default locale-aware mode." +msgid "If set to ``0``, the interpreter runs in its default locale-aware mode." msgstr "" #: ../../using/cmdline.rst:899 @@ -1153,35 +1155,35 @@ msgstr "" msgid "" "If this environment variable is not set at all, then the interpreter " "defaults to using the current locale settings, *unless* the current locale " -"is identified as a legacy ASCII-based locale (as described for " -":envvar:`PYTHONCOERCECLOCALE`), and locale coercion is either disabled or " -"fails. In such legacy locales, the interpreter will default to enabling " -"UTF-8 mode unless explicitly instructed not to do so." +"is identified as a legacy ASCII-based locale (as described for :envvar:" +"`PYTHONCOERCECLOCALE`), and locale coercion is either disabled or fails. In " +"such legacy locales, the interpreter will default to enabling UTF-8 mode " +"unless explicitly instructed not to do so." msgstr "" #: ../../using/cmdline.rst:909 msgid "Also available as the :option:`-X` ``utf8`` option." msgstr "" -#: ../../using/cmdline.rst:913 +#: ../../using/cmdline.rst:911 msgid "See :pep:`540` for more details." msgstr "" -#: ../../using/cmdline.rst:918 +#: ../../using/cmdline.rst:916 msgid "Debug-mode variables" msgstr "" -#: ../../using/cmdline.rst:920 +#: ../../using/cmdline.rst:918 msgid "" "Setting these variables only has an effect in a debug build of Python, that " "is, if Python was configured with the ``--with-pydebug`` build option." msgstr "" -#: ../../using/cmdline.rst:925 +#: ../../using/cmdline.rst:923 msgid "If set, Python will print threading debug info." msgstr "" -#: ../../using/cmdline.rst:930 +#: ../../using/cmdline.rst:928 msgid "" "If set, Python will dump objects and reference counts still alive after " "shutting down the interpreter." diff --git a/using/editors.po b/using/editors.po new file mode 100644 index 000000000..2e43a017a --- /dev/null +++ b/using/editors.po @@ -0,0 +1,50 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2001-2020, Python Software Foundation +# This file is distributed under the same license as the Python package. +# FIRST AUTHOR , YEAR. +# +# Translators: +# Hildeberto Abreu Magalhães , 2019 +# Claudio Rogerio Carvalho Filho , 2019 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Python 3.7\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 02:43+0000\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: ../../using/editors.rst:7 +msgid "Editors and IDEs" +msgstr "Editores e IDEs" + +#: ../../using/editors.rst:9 +msgid "" +"There are a number of IDEs that support Python programming language. Many " +"editors and IDEs provide syntax highlighting, debugging tools, and :pep:`8` " +"checks." +msgstr "" +"Há um grande número de IDEs que suportam a linguagem de programação Python. " +"Vários editores e IDEs provêem destaques coloridos de sintaxe, ferramentas " +"de depuração, e checagem do código frente à :pep:`8`." + +#: ../../using/editors.rst:12 +msgid "" +"Please go to `Python Editors `_ " +"and `Integrated Development Environments `_ for a comprehensive list." +msgstr "" +"Por favor, vá para `Python Editors `_ and `Integrated Development Environments `_ para obter uma lista " +"completa." diff --git a/using/index.po b/using/index.po index 2f8b10b15..1b1af4da0 100644 --- a/using/index.po +++ b/using/index.po @@ -1,20 +1,22 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Adorilson Bezerra , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Adorilson Bezerra , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,3 +33,6 @@ msgid "" "setup of the Python environment on different platforms, the invocation of " "the interpreter and things that make working with Python easier." msgstr "" +"Esta parte da documentação é dedicada a informações gerais sobre a " +"configuração do ambiente Python em diferentes plataformas, a chamada do " +"interpretador e outras coisas que facilitam o trabalho com o Python." diff --git a/using/mac.po b/using/mac.po index c0fbfda92..918aeeecc 100644 --- a/using/mac.po +++ b/using/mac.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-12 11:38+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:44+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,8 +40,7 @@ msgstr "" msgid "" "Python on a Macintosh running Mac OS X is in principle very similar to " "Python on any other Unix platform, but there are a number of additional " -"features such as the IDE and the Package Manager that are worth pointing " -"out." +"features such as the IDE and the Package Manager that are worth pointing out." msgstr "" #: ../../using/mac.rst:18 @@ -61,8 +62,8 @@ msgstr "" #: ../../using/mac.rst:28 msgid "" -"A :file:`Python 3.7` folder in your :file:`Applications` folder. In here you" -" find IDLE, the development environment that is a standard part of official " +"A :file:`Python 3.7` folder in your :file:`Applications` folder. In here you " +"find IDLE, the development environment that is a standard part of official " "Python distributions; PythonLauncher, which handles double-clicking Python " "scripts from the Finder; and the \"Build Applet\" tool, which allows you to " "package Python scripts as standalone applications on your system." @@ -70,28 +71,27 @@ msgstr "" #: ../../using/mac.rst:34 msgid "" -"A framework :file:`/Library/Frameworks/Python.framework`, which includes the" -" Python executable and libraries. The installer adds this location to your " +"A framework :file:`/Library/Frameworks/Python.framework`, which includes the " +"Python executable and libraries. The installer adds this location to your " "shell path. To uninstall MacPython, you can simply remove these three " "things. A symlink to the Python executable is placed in /usr/local/bin/." msgstr "" #: ../../using/mac.rst:39 msgid "" -"The Apple-provided build of Python is installed in " -":file:`/System/Library/Frameworks/Python.framework` and " -":file:`/usr/bin/python`, respectively. You should never modify or delete " -"these, as they are Apple-controlled and are used by Apple- or third-party " -"software. Remember that if you choose to install a newer Python version " -"from python.org, you will have two different but functional Python " -"installations on your computer, so it will be important that your paths and " -"usages are consistent with what you want to do." +"The Apple-provided build of Python is installed in :file:`/System/Library/" +"Frameworks/Python.framework` and :file:`/usr/bin/python`, respectively. You " +"should never modify or delete these, as they are Apple-controlled and are " +"used by Apple- or third-party software. Remember that if you choose to " +"install a newer Python version from python.org, you will have two different " +"but functional Python installations on your computer, so it will be " +"important that your paths and usages are consistent with what you want to do." msgstr "" #: ../../using/mac.rst:47 msgid "" -"IDLE includes a help menu that allows you to access Python documentation. If" -" you are completely new to Python you should start reading the tutorial " +"IDLE includes a help menu that allows you to access Python documentation. If " +"you are completely new to Python you should start reading the tutorial " "introduction in that document." msgstr "" @@ -117,18 +117,18 @@ msgid "" "If you want to run Python scripts from the Terminal window command line or " "from the Finder you first need an editor to create your script. Mac OS X " "comes with a number of standard Unix command line editors, :program:`vim` " -"and :program:`emacs` among them. If you want a more Mac-like editor, " -":program:`BBEdit` or :program:`TextWrangler` from Bare Bones Software (see " -"http://www.barebones.com/products/bbedit/index.html) are good choices, as is" -" :program:`TextMate` (see https://macromates.com/). Other editors include " -":program:`Gvim` (http://macvim-dev.github.io/macvim/) and " -":program:`Aquamacs` (http://aquamacs.org/)." +"and :program:`emacs` among them. If you want a more Mac-like editor, :" +"program:`BBEdit` or :program:`TextWrangler` from Bare Bones Software (see " +"http://www.barebones.com/products/bbedit/index.html) are good choices, as " +"is :program:`TextMate` (see https://macromates.com/). Other editors include :" +"program:`Gvim` (http://macvim-dev.github.io/macvim/) and :program:`Aquamacs` " +"(http://aquamacs.org/)." msgstr "" #: ../../using/mac.rst:72 msgid "" -"To run your script from the Terminal window you must make sure that " -":file:`/usr/local/bin` is in your shell search path." +"To run your script from the Terminal window you must make sure that :file:`/" +"usr/local/bin` is in your shell search path." msgstr "" #: ../../using/mac.rst:75 @@ -156,8 +156,8 @@ msgstr "" msgid "" "With older versions of Python, there is one Mac OS X quirk that you need to " "be aware of: programs that talk to the Aqua window manager (in other words, " -"anything that has a GUI) need to be run in a special way. Use " -":program:`pythonw` instead of :program:`python` to start such scripts." +"anything that has a GUI) need to be run in a special way. Use :program:" +"`pythonw` instead of :program:`python` to start such scripts." msgstr "" #: ../../using/mac.rst:96 @@ -171,12 +171,11 @@ msgstr "" #: ../../using/mac.rst:102 msgid "" -"Python on OS X honors all standard Unix environment variables such as " -":envvar:`PYTHONPATH`, but setting these variables for programs started from " -"the Finder is non-standard as the Finder does not read your :file:`.profile`" -" or :file:`.cshrc` at startup. You need to create a file " -":file:`~/.MacOSX/environment.plist`. See Apple's Technical Document QA1067 " -"for details." +"Python on OS X honors all standard Unix environment variables such as :" +"envvar:`PYTHONPATH`, but setting these variables for programs started from " +"the Finder is non-standard as the Finder does not read your :file:`.profile` " +"or :file:`.cshrc` at startup. You need to create a file :file:`~/.MacOSX/" +"environment.plist`. See Apple's Technical Document QA1067 for details." msgstr "" #: ../../using/mac.rst:109 @@ -192,8 +191,8 @@ msgstr "" #: ../../using/mac.rst:118 msgid "" "MacPython ships with the standard IDLE development environment. A good " -"introduction to using IDLE can be found at " -"http://www.hashcollision.org/hkn/python/idle_intro/index.html." +"introduction to using IDLE can be found at http://www.hashcollision.org/hkn/" +"python/idle_intro/index.html." msgstr "" #: ../../using/mac.rst:126 @@ -238,22 +237,21 @@ msgid "" "The standard Python GUI toolkit is :mod:`tkinter`, based on the cross-" "platform Tk toolkit (https://www.tcl.tk). An Aqua-native version of Tk is " "bundled with OS X by Apple, and the latest version can be downloaded and " -"installed from https://www.activestate.com; it can also be built from " -"source." +"installed from https://www.activestate.com; it can also be built from source." msgstr "" #: ../../using/mac.rst:151 msgid "" "*wxPython* is another popular cross-platform GUI toolkit that runs natively " -"on Mac OS X. Packages and documentation are available from " -"https://www.wxpython.org." +"on Mac OS X. Packages and documentation are available from https://www." +"wxpython.org." msgstr "" #: ../../using/mac.rst:154 msgid "" "*PyQt* is another popular cross-platform GUI toolkit that runs natively on " -"Mac OS X. More information can be found at " -"https://riverbankcomputing.com/software/pyqt/intro." +"Mac OS X. More information can be found at https://riverbankcomputing.com/" +"software/pyqt/intro." msgstr "" #: ../../using/mac.rst:160 @@ -262,16 +260,16 @@ msgstr "" #: ../../using/mac.rst:162 msgid "" -"The \"Build Applet\" tool that is placed in the MacPython 3.6 folder is fine" -" for packaging small Python scripts on your own machine to run as a standard" -" Mac application. This tool, however, is not robust enough to distribute " +"The \"Build Applet\" tool that is placed in the MacPython 3.6 folder is fine " +"for packaging small Python scripts on your own machine to run as a standard " +"Mac application. This tool, however, is not robust enough to distribute " "Python applications to other users." msgstr "" #: ../../using/mac.rst:167 msgid "" -"The standard tool for deploying standalone Python applications on the Mac is" -" :program:`py2app`. More information on installing and using py2app can be " +"The standard tool for deploying standalone Python applications on the Mac " +"is :program:`py2app`. More information on installing and using py2app can be " "found at http://undefined.org/python/#py2app." msgstr "" @@ -281,8 +279,8 @@ msgstr "" #: ../../using/mac.rst:175 msgid "" -"The MacPython mailing list is an excellent support resource for Python users" -" and developers on the Mac:" +"The MacPython mailing list is an excellent support resource for Python users " +"and developers on the Mac:" msgstr "" #: ../../using/mac.rst:178 diff --git a/using/unix.po b/using/unix.po index b9c9a8f75..81bc2f2c3 100644 --- a/using/unix.po +++ b/using/unix.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Welington Carlos , 2019 # Claudio Rogerio Carvalho Filho , 2019 # utzig , 2019 -# +# Rafael Fontenelle , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-19 02:58+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: utzig , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,10 +41,10 @@ msgstr "No Linux" #: ../../using/unix.rst:18 msgid "" -"Python comes preinstalled on most Linux distributions, and is available as a" -" package on all others. However there are certain features you might want " -"to use that are not available on your distro's package. You can easily " -"compile the latest version of Python from source." +"Python comes preinstalled on most Linux distributions, and is available as a " +"package on all others. However there are certain features you might want to " +"use that are not available on your distro's package. You can easily compile " +"the latest version of Python from source." msgstr "" "O Python vem pré-instalado na maioria das distribuições Linux e está " "disponível como um pacote em todos as outras. No entanto, existem certos " @@ -78,9 +80,11 @@ msgstr "para usuários OpenSuse" #: ../../using/unix.rst:33 msgid "" -"https://docs-old.fedoraproject.org/en-" -"US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-creating-rpms.html" +"https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/" +"RPM_Guide/ch-creating-rpms.html" msgstr "" +"https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/" +"RPM_Guide/ch-creating-rpms.html" #: ../../using/unix.rst:34 msgid "for Fedora users" @@ -119,8 +123,8 @@ msgstr "No OpenSolaris" #: ../../using/unix.rst:60 msgid "" "You can get Python from `OpenCSW `_. Various " -"versions of Python are available and can be installed with e.g. ``pkgutil -i" -" python27``." +"versions of Python are available and can be installed with e.g. ``pkgutil -i " +"python27``." msgstr "" "Podes baixar o Python desde `OpenCSW `_. Várias " "versões do Python estão disponíveis e poderás instala-las, por exemplo " @@ -134,15 +138,15 @@ msgstr "Construindo o Python" msgid "" "If you want to compile CPython yourself, first thing you should do is get " "the `source `_. You can download " -"either the latest release's source or just grab a fresh `clone " -"`_. (If you " -"want to contribute patches, you will need a clone.)" +"either the latest release's source or just grab a fresh `clone `_. (If you want to " +"contribute patches, you will need a clone.)" msgstr "" "Se você quer compilar o CPython, a primeira coisa que você precisa fazer é " "baixar o `código-fonte `_. Você " -"pode baixar a última versão ou usar o git para fazer um `clone " -"`_. (Se você " -"pretende contribuir modificações, você vai precisar um \"clone\".)" +"pode baixar a última versão ou usar o git para fazer um `clone `_. (Se você pretende " +"contribuir modificações, você vai precisar um \"clone\".)" #: ../../using/unix.rst:75 msgid "The build process consists in the usual ::" @@ -155,8 +159,8 @@ msgid "" "the Python source tree." msgstr "" "invocações. As opções de configuração e as ressalvas para plataformas " -"específicas do Unix estão amplamente documentadas no arquivo " -":source:`README.rst` na raiz da árvore de origem do Python." +"específicas do Unix estão amplamente documentadas no arquivo :source:`README." +"rst` na raiz da árvore de origem do Python." #: ../../using/unix.rst:87 msgid "" @@ -164,10 +168,10 @@ msgid "" "``make altinstall`` is therefore recommended instead of ``make install`` " "since it only installs :file:`{exec_prefix}/bin/python{version}`." msgstr "" -"``make install`` pode sobrescrever ou mascarar o arquivo binário " -":file:`python3`. ``make altinstall`` é, portanto, recomendado ao invés de " -"``make install`` uma vez que o mesmo apenas instala o arquivo " -":file:`{exec_prefix}/bin/python{version}`." +"``make install`` pode sobrescrever ou mascarar o arquivo binário :file:" +"`python3`. ``make altinstall`` é, portanto, recomendado ao invés de ``make " +"install`` uma vez que o mesmo apenas instala o arquivo :file:`{exec_prefix}/" +"bin/python{version}`." #: ../../using/unix.rst:93 msgid "Python-related paths and files" @@ -175,22 +179,22 @@ msgstr "Paths e arquivos relacionados com o Python" #: ../../using/unix.rst:95 msgid "" -"These are subject to difference depending on local installation conventions;" -" :envvar:`prefix` (``${prefix}``) and :envvar:`exec_prefix` " -"(``${exec_prefix}``) are installation-dependent and should be interpreted as" -" for GNU software; they may be the same." +"These are subject to difference depending on local installation " +"conventions; :envvar:`prefix` (``${prefix}``) and :envvar:`exec_prefix` (``" +"${exec_prefix}``) are installation-dependent and should be interpreted as " +"for GNU software; they may be the same." msgstr "" "Estes estão sujeitos a diferenças dependendo das convenções de instalação " -"local; :envvar:`prefix` (``${prefix}``) e :envvar:`exec_prefix` " -"(``${exec_prefix}``) dependem da instalação e devem ser interpretados da " -"mesma forma que para o software GNU; eles poderão ser os mesmos." +"local; :envvar:`prefix` (``${prefix}``) e :envvar:`exec_prefix` (``" +"${exec_prefix}``) dependem da instalação e devem ser interpretados da mesma " +"forma que para o software GNU; eles poderão ser os mesmos." #: ../../using/unix.rst:100 msgid "" "For example, on most Linux systems, the default for both is :file:`/usr`." msgstr "" -"Por exemplo, na maioria dos sistemas Linux, o padrão para ambos é " -":file:`/usr`." +"Por exemplo, na maioria dos sistemas Linux, o padrão para ambos é :file:`/" +"usr`." #: ../../using/unix.rst:103 msgid "File/directory" @@ -210,11 +214,11 @@ msgstr "Localização recomendada do intérprete." #: ../../using/unix.rst:107 msgid "" -":file:`{prefix}/lib/python{version}`, " -":file:`{exec_prefix}/lib/python{version}`" +":file:`{prefix}/lib/python{version}`, :file:`{exec_prefix}/lib/" +"python{version}`" msgstr "" -":file:`{prefix}/lib/python{version}`, " -":file:`{exec_prefix}/lib/python{version}`" +":file:`{prefix}/lib/python{version}`, :file:`{exec_prefix}/lib/" +"python{version}`" #: ../../using/unix.rst:107 msgid "" @@ -223,16 +227,16 @@ msgstr "A Localização recomendada dos diretórios contendo os módulos padrão #: ../../using/unix.rst:110 msgid "" -":file:`{prefix}/include/python{version}`, " -":file:`{exec_prefix}/include/python{version}`" +":file:`{prefix}/include/python{version}`, :file:`{exec_prefix}/include/" +"python{version}`" msgstr "" -":file:`{prefix}/include/python{version}`, " -":file:`{exec_prefix}/include/python{version}`" +":file:`{prefix}/include/python{version}`, :file:`{exec_prefix}/include/" +"python{version}`" #: ../../using/unix.rst:110 msgid "" -"Recommended locations of the directories containing the include files needed" -" for developing Python extensions and embedding the interpreter." +"Recommended locations of the directories containing the include files needed " +"for developing Python extensions and embedding the interpreter." msgstr "" "Localizações recomendadas dos diretórios contendo os arquivos de inclusão " "necessários para o desenvolvimento de extensões Python e incorporação do " @@ -244,14 +248,16 @@ msgstr "Diversos" #: ../../using/unix.rst:120 msgid "" -"To easily use Python scripts on Unix, you need to make them executable, e.g." -" with" +"To easily use Python scripts on Unix, you need to make them executable, e.g. " +"with" msgstr "" +"Para usar facilmente scripts Python no Unix, você precisa torná-los " +"executáveis, por exemplo, com" #: ../../using/unix.rst:127 msgid "" -"and put an appropriate Shebang line at the top of the script. A good choice" -" is usually ::" +"and put an appropriate Shebang line at the top of the script. A good choice " +"is usually ::" msgstr "" "e coloque uma linha Shebang apropriada no topo do script. Uma boa escolha " "normalmente é::" @@ -263,13 +269,13 @@ msgid "" "need to hardcode ``/usr/bin/python3`` as the interpreter path." msgstr "" "que procura o intérprete do Python no conjunto :envvar:`PATH`. No entanto, " -"alguns Unices podem não ter o comando :program:`env`, então poderás precisar" -" do hardcode ``/usr/bin/python3`` como o caminho até o interpretador." +"alguns Unices podem não ter o comando :program:`env`, então poderás precisar " +"do hardcode ``/usr/bin/python3`` como o caminho até o interpretador." #: ../../using/unix.rst:136 msgid "" "To use shell commands in your Python scripts, look at the :mod:`subprocess` " "module." msgstr "" -"Para usar comandos Shell em seus scripts Python, veja o módulo " -":mod:`subprocess`." +"Para usar comandos Shell em seus scripts Python, veja o módulo :mod:" +"`subprocess`." diff --git a/using/windows.po b/using/windows.po index 28fc1e6cd..7aa7df6da 100644 --- a/using/windows.po +++ b/using/windows.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # felipe caridade , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Julia Rizza , 2019 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-29 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 02:43+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Julia Rizza , 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,64 +42,93 @@ msgstr "" #: ../../using/windows.rst:15 msgid "" "Unlike most Unix systems and services, Windows does not include a system " -"supported installation of Python. To make Python available, the CPython team" -" has compiled Windows installers (MSI packages) with every `release " -"`_ for many years. These " -"installers are primarily intended to add a per-user installation of Python, " -"with the core interpreter and library being used by a single user. The " -"installer is also able to install for all users of a single machine, and a " -"separate ZIP file is available for application-local distributions." -msgstr "" +"supported installation of Python. To make Python available, the CPython team " +"has compiled Windows installers (MSI packages) with every `release `_ for many years. These installers are " +"primarily intended to add a per-user installation of Python, with the core " +"interpreter and library being used by a single user. The installer is also " +"able to install for all users of a single machine, and a separate ZIP file " +"is available for application-local distributions." +msgstr "" +"Diferente da maioria dos sistemas e serviços Unix, o Windows não inclui uma " +"instalação suportada do Python. Para deixar o Python disponível, o time " +"CPython compilou os instaladores do Windows (pacotes MSI) com cada `versão " +"`_ por vários anos. Esses " +"instaladores têm a intenção primária de adicionar uma instalação de Python " +"por usuário, com o interpretador e as bibliotecas núcleo sendo utilizadas " +"por um único usuário. O instalador também é capaz de instalar para todos os " +"usuários de uma única máquina, e um arquivo ZIP separado está disponível " +"para distribuições locais de aplicação." #: ../../using/windows.rst:24 msgid "" -"As specified in :pep:`11`, a Python release only supports a Windows platform" -" while Microsoft considers the platform under extended support. This means " +"As specified in :pep:`11`, a Python release only supports a Windows platform " +"while Microsoft considers the platform under extended support. This means " "that Python |version| supports Windows Vista and newer. If you require " "Windows XP support then please install Python 3.4." msgstr "" +"Como especificado na :pep:`11`, uma versão Python suporta apenas uma " +"plataforma Windows enquanto a Microsoft considera a plataforma sob suporte " +"extendido. Isso significa que o Python |version| suporta Windows Vista ou " +"superiores. Se você requer suporte à Windows XP, então por favor instale o " +"Python 3.4." #: ../../using/windows.rst:29 msgid "" "There are a number of different installers available for Windows, each with " "certain benefits and downsides." msgstr "" +"Há uma quantidade de instaladores diferentes disponíveis para Windows, cada " +"um com algumas vantagens e desvantagens." #: ../../using/windows.rst:32 msgid "" ":ref:`windows-full` contains all components and is the best option for " "developers using Python for any kind of project." msgstr "" +":ref:`windows-full` contém todos os componentes e é a melhor opção para " +"desenvolvedores usando Python para qualquer tipo de projeto." #: ../../using/windows.rst:35 msgid "" -":ref:`windows-store` is a simple installation of Python that is suitable for" -" running scripts and packages, and using IDLE or other development " +":ref:`windows-store` is a simple installation of Python that is suitable for " +"running scripts and packages, and using IDLE or other development " "environments. It requires Windows 10, but can be safely installed without " "corrupting other programs. It also provides many convenient commands for " "launching Python and its tools." msgstr "" +":ref:`windows-store` é uma instalação simples do Python que é adequada para " +"rodar scripts e pacotes, e para usar a IDLE ou outros ambientes de " +"desenvolvimento. Ela requer Windows 10, mas pode ser instalada de forma " +"segura sem corromper outros programas. Ela também fornece vários comandos " +"convenientes para iniciar o Python e suas ferramentas." #: ../../using/windows.rst:41 msgid "" ":ref:`windows-nuget` are lightweight installations intended for continuous " -"integration systems. It can be used to build Python packages or run scripts," -" but is not updateable and has no user interface tools." +"integration systems. It can be used to build Python packages or run scripts, " +"but is not updateable and has no user interface tools." msgstr "" +":ref:`windows-nuget` são instalações leves criadas para integração contínua " +"de sistemas. Elas podem ser usadas para construir pacotes Python ou executar " +"scripts, mas não são atualizáveis e não possuem ferramentas de interface de " +"usuário." #: ../../using/windows.rst:45 msgid "" ":ref:`windows-embeddable` is a minimal package of Python suitable for " "embedding into a larger application." msgstr "" +":ref:`windows-embeddable` é um pacote mínimo de Python adequado para ser " +"incorporado em uma aplicação maior." #: ../../using/windows.rst:52 msgid "The full installer" -msgstr "" +msgstr "O instalador completo" #: ../../using/windows.rst:55 msgid "Installation steps" -msgstr "" +msgstr "Etapas de instalação" #: ../../using/windows.rst:57 msgid "" @@ -106,13 +137,20 @@ msgid "" "small initial download, and it will automatically download the required " "components as necessary. The *offline installer* includes the components " "necessary for a default installation and only requires an internet " -"connection for optional features. See :ref:`install-layout-option` for other" -" ways to avoid downloading during installation." +"connection for optional features. See :ref:`install-layout-option` for other " +"ways to avoid downloading during installation." msgstr "" +"Quatro instaladores Python |version| estão disponíveis para download - dois " +"de cada para as versões 32-bit e 64-bit do interpretador. O *instalador web* " +"é um download inicial menor, e ele irá automaticamente fazer o download dos " +"componentes solicitados na medida do necessário. O *instalador offline* " +"inclui os componentes necessários para uma instalação padrão e requer apenas " +"uma conexão de internet para recursos opcionais. Veja :ref:`install-layout-" +"option` para outras formas de evitar o download durante a instalação." #: ../../using/windows.rst:65 msgid "After starting the installer, one of two options may be selected:" -msgstr "" +msgstr "Após iniciar o instalador, uma de duas opções deve ser selecionada:" #: ../../using/windows.rst:69 msgid "If you select \"Install Now\":" @@ -120,96 +158,120 @@ msgstr "Se você selecionar \"Install Now\":" #: ../../using/windows.rst:71 msgid "" -"You will *not* need to be an administrator (unless a system update for the C" -" Runtime Library is required or you install the :ref:`launcher` for all " -"users)" +"You will *not* need to be an administrator (unless a system update for the C " +"Runtime Library is required or you install the :ref:`launcher` for all users)" msgstr "" +"Você *não* precisará ser um administrador (a menos que uma atualização de " +"sistema para a Biblioteca em Tempo de Execução C seja necessária ou que você " +"instale o :ref:`launcher` para todos os usuários)" #: ../../using/windows.rst:74 msgid "Python will be installed into your user directory" -msgstr "" +msgstr "Python será instalado dentro do seu diretório de usuário" #: ../../using/windows.rst:75 msgid "" "The :ref:`launcher` will be installed according to the option at the bottom " "of the first page" msgstr "" +"O :ref:`launcher` será instalado de acordo com a opção ao final da primeira " +"página" #: ../../using/windows.rst:77 msgid "The standard library, test suite, launcher and pip will be installed" msgstr "" +"A biblioteca padrão, a suíte de testes, o inicializador e o pip serão " +"instalados" #: ../../using/windows.rst:78 -msgid "" -"If selected, the install directory will be added to your :envvar:`PATH`" +msgid "If selected, the install directory will be added to your :envvar:`PATH`" msgstr "" +"Se selecionado, o diretório de instalação será adicionado no seu :envvar:" +"`PATH`" #: ../../using/windows.rst:79 msgid "Shortcuts will only be visible for the current user" -msgstr "" +msgstr "Atalhos serão visíveis apenas para o usuário atual" #: ../../using/windows.rst:81 msgid "" "Selecting \"Customize installation\" will allow you to select the features " "to install, the installation location and other options or post-install " -"actions. To install debugging symbols or binaries, you will need to use this" -" option." +"actions. To install debugging symbols or binaries, you will need to use this " +"option." msgstr "" +"Selecionando \"Customize installation\" irá permitir que você selecione os " +"recursos a serem instalados, o local da instalação e outras opções ou ações " +"pós-instalação. Para instalar símbolos de depuração ou binários, você " +"precisará usar essa opção." #: ../../using/windows.rst:85 msgid "" "To perform an all-users installation, you should select \"Customize " "installation\". In this case:" msgstr "" +"Para realizar uma instalação para todos os usuários, você deve selecionar " +"\"Customize installation\". Neste caso:" #: ../../using/windows.rst:88 msgid "You may be required to provide administrative credentials or approval" msgstr "" +"Você pode ser solicitado a providenciar credenciais administrativas ou " +"aprovação" #: ../../using/windows.rst:89 msgid "Python will be installed into the Program Files directory" -msgstr "" +msgstr "Python será instalado dentro do diretório Program Files" #: ../../using/windows.rst:90 msgid "The :ref:`launcher` will be installed into the Windows directory" -msgstr "" +msgstr "O :ref:`launcher` será instalado dentro do diretório Windows" #: ../../using/windows.rst:91 msgid "Optional features may be selected during installation" -msgstr "" +msgstr "Recursos opcionais podem ser selecionados durante a instalação" #: ../../using/windows.rst:92 msgid "The standard library can be pre-compiled to bytecode" -msgstr "" +msgstr "A biblioteca padrão pode ser pré-compilada em bytecode" #: ../../using/windows.rst:93 msgid "" -"If selected, the install directory will be added to the system " -":envvar:`PATH`" +"If selected, the install directory will be added to the system :envvar:`PATH`" msgstr "" +"Se selecionado, o diretório de instalação será adicionado ao :envvar:`PATH` " +"do sistema" #: ../../using/windows.rst:94 msgid "Shortcuts are available for all users" -msgstr "" +msgstr "Atalhos estão disponíveis para todos os usuários" #: ../../using/windows.rst:99 msgid "Removing the MAX_PATH Limitation" -msgstr "" +msgstr "Removendo a limitação do MAX_PATH" #: ../../using/windows.rst:101 msgid "" "Windows historically has limited path lengths to 260 characters. This meant " "that paths longer than this would not resolve and errors would result." msgstr "" +"O Windows historicamente tem limitado os comprimentos dos caminhos de " +"arquivos em 260 caracteres. Isso significava que caminhos maiores que isso " +"não seriam resolvidos e resultariam em erros." #: ../../using/windows.rst:104 msgid "" "In the latest versions of Windows, this limitation can be expanded to " "approximately 32,000 characters. Your administrator will need to activate " "the \"Enable Win32 long paths\" group policy, or set the registry value " -"``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\FileSystem@LongPathsEnabled``" -" to ``1``." +"``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control" +"\\FileSystem@LongPathsEnabled`` to ``1``." msgstr "" +"Nas últimas versões do Windows, essa limitação pode ser expandida para " +"aproximadamente 32.000 caracteres. Seu administrador irá precisar ativar a " +"política de grupo \"Enable Win32 long paths\", ou definir um valor de " +"registro ``HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control" +"\\FileSystem@LongPathsEnabled`` para ``1``." #: ../../using/windows.rst:110 msgid "" @@ -218,14 +280,20 @@ msgid "" "when using strings. (Use of bytes as paths is deprecated on Windows, and " "this feature is not available when using bytes.)" msgstr "" +"Isso permite que a função :func:`open`, o módulo :mod:`os` e a maior parte " +"das outras funcionalidades de caminho aceitem e retornem caminhos maiores " +"que 260 caracteres quando usando strings. (O uso de bytes como caminhos está " +"descontinuado no Windows, e esse recurso não está disponível quando usando " +"bytes.)" #: ../../using/windows.rst:115 msgid "After changing the above option, no further configuration is required." msgstr "" +"Após alterar a opção acima, nenhuma configuração adicional é necessária." #: ../../using/windows.rst:119 msgid "Support for long paths was enabled in Python." -msgstr "" +msgstr "Suporte para caminhos longos foi ativado no Python." #: ../../using/windows.rst:124 msgid "Installing Without UI" @@ -238,15 +306,24 @@ msgid "" "on many machines without user interaction. These options may also be set " "without suppressing the UI in order to change some of the defaults." msgstr "" +"Todas as opções disponíveis na IU do instalador também podem ser " +"especificadas a partir da linha de comando, permitindo que instaladores por " +"script repliquem uma instalação em várias máquinas sem interação do usuário. " +"Essas opções também podem ser definidas sem suprimir a IU para alterar " +"alguns dos padrões." #: ../../using/windows.rst:131 msgid "" -"To completely hide the installer UI and install Python silently, pass the " -"``/quiet`` option. To skip past the user interaction but still display " -"progress and errors, pass the ``/passive`` option. The ``/uninstall`` option" -" may be passed to immediately begin removing Python - no prompt will be " -"displayed." +"To completely hide the installer UI and install Python silently, pass the ``/" +"quiet`` option. To skip past the user interaction but still display progress " +"and errors, pass the ``/passive`` option. The ``/uninstall`` option may be " +"passed to immediately begin removing Python - no prompt will be displayed." msgstr "" +"Para esconder completamente a IU do instalador e instalar o Python " +"silenciosamente, passe a opção ``/quiet``. Para pular a interação de usuário " +"mas ainda exibir o progresso e os erros, passe a opção ``/passive``. A opção " +"``/uninstall`` pode ser passada para imediatamente começar a remover o " +"Python - nenhuma confirmação será exibida." #: ../../using/windows.rst:137 msgid "" @@ -254,6 +331,9 @@ msgid "" "``0`` to disable a feature, ``1`` to enable a feature, or a path. The full " "list of available options is shown below." msgstr "" +"Todas as outras opções são passadas como ``nome=valor``, onde o valor é " +"usualmente ``0`` para desabilitar o recurso, ``1`` para ativar o recurso, ou " +"um caminho. A lista completa de opções disponíveis é mostrada abaixo." #: ../../using/windows.rst:142 msgid "Name" @@ -297,21 +377,19 @@ msgstr "Selecionado com base em \"Instalar para Todos os Usuários\"" #: ../../using/windows.rst:149 msgid "DefaultAllUsersTargetDir" msgstr "" -"DefaultAllUsersTargetDir (Diretório de Destino Padrão para Todos os " -"usuários)" +"DefaultAllUsersTargetDir (Diretório de Destino Padrão para Todos os usuários)" #: ../../using/windows.rst:149 msgid "The default installation directory for all-user installs" -msgstr "" -"O diretório de instalação padrão para instalações de todos os usuários" +msgstr "O diretório de instalação padrão para instalações de todos os usuários" #: ../../using/windows.rst:149 msgid "" -":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ " -"%ProgramFiles(x86)%\\\\\\ Python X.Y`" +":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\" +"\\ Python X.Y`" msgstr "" -":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ " -"%ProgramFiles(x86)%\\\\\\ Python X.Y`" +":file:`%ProgramFiles%\\\\\\ Python X.Y` or :file:`\\ %ProgramFiles(x86)%\\\\" +"\\ Python X.Y`" #: ../../using/windows.rst:154 msgid "DefaultJustForMeTargetDir" @@ -323,10 +401,13 @@ msgstr "O diretório de instalação padrão para instalações just-for-me" #: ../../using/windows.rst:154 msgid "" -":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or " -":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY-32` or " -":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY-64`" +":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` or :file:`%LocalAppData%\\" +"\\\\ Programs\\\\PythonXY-32` or :file:`%LocalAppData%\\\\\\ Programs\\" +"\\PythonXY-64`" msgstr "" +":file:`%LocalAppData%\\\\\\ Programs\\\\PythonXY` ou :file:`%LocalAppData%\\" +"\\\\ Programs\\\\PythonXY-32` ou :file:`%LocalAppData%\\\\\\ Programs\\" +"\\PythonXY-64`" #: ../../using/windows.rst:161 msgid "DefaultCustomTargetDir" @@ -372,9 +453,11 @@ msgstr "PrependPath (path a ser percorrido)" #: ../../using/windows.rst:170 msgid "" -"Add install and Scripts directories to :envvar:`PATH` and ``.PY`` to " -":envvar:`PATHEXT`" +"Add install and Scripts directories to :envvar:`PATH` and ``.PY`` to :envvar:" +"`PATHEXT`" msgstr "" +"Adicione o diretório de instalação e o de Scripts para :envvar:`PATH` e ``." +"PY`` para :envvar:`PATHEXT`" #: ../../using/windows.rst:174 msgid "Shortcuts" @@ -505,12 +588,17 @@ msgstr "SimpleInstallDescription" #: ../../using/windows.rst:210 msgid "A custom message to display when the simplified install UI is used." msgstr "" +"Uma mensagem personalizada para exibir quando a IU de instalação " +"simplificada é usada." #: ../../using/windows.rst:214 msgid "" -"For example, to silently install a default, system-wide Python installation," -" you could use the following command (from an elevated command prompt)::" +"For example, to silently install a default, system-wide Python installation, " +"you could use the following command (from an elevated command prompt)::" msgstr "" +"Por exemplo, para instalar silenciosamente uma instalação de Python padrão e " +"em todo o sistema, você pode usar o seguinte comando (a partir de um " +"terminal de comando autorizado)::" #: ../../using/windows.rst:219 msgid "" @@ -518,6 +606,9 @@ msgid "" "suite, you could provide a shortcut with the following command. This will " "display a simplified initial page and disallow customization::" msgstr "" +"Para permitir que usuários instalem facilmente uma cópia do Python sem a " +"suíte de testes, você pode fornecer um atalho com o seguinte comando. Isso " +"irá exibir uma página inicial simplificado e bloquear a personalização::" #: ../../using/windows.rst:226 msgid "" @@ -525,20 +616,28 @@ msgid "" "recommended for per-user installs when there is also a system-wide " "installation that included the launcher.)" msgstr "" +"(Observe que omitir o inicializador também omite associações de arquivos, e " +"só é recomendado para instalações por usuários quando também existe uma " +"instalação por todo o sistema que inclui o inicializador.)" #: ../../using/windows.rst:230 msgid "" -"The options listed above can also be provided in a file named " -"``unattend.xml`` alongside the executable. This file specifies a list of " -"options and values. When a value is provided as an attribute, it will be " -"converted to a number if possible. Values provided as element text are " -"always left as strings. This example file sets the same options as the " -"previous example:" +"The options listed above can also be provided in a file named ``unattend." +"xml`` alongside the executable. This file specifies a list of options and " +"values. When a value is provided as an attribute, it will be converted to a " +"number if possible. Values provided as element text are always left as " +"strings. This example file sets the same options as the previous example:" msgstr "" +"As opções listadas acima também podem ser fornecidas em um arquivo chamado " +"``unattend.xml`` juntamente com o executável. Esse arquivo especifica uma " +"lista de opções e valores. Quando um valor é fornecido como um atributo, ele " +"será convertido para um número se possível. Valores fornecidos como " +"elementos de texto são sempre deixados como strings. Esse arquivo de exemplo " +"define as mesmas opções que o exemplo anterior:" #: ../../using/windows.rst:249 msgid "Installing Without Downloading" -msgstr "" +msgstr "Instalando Sem Download" #: ../../using/windows.rst:251 msgid "" @@ -547,9 +646,16 @@ msgid "" "avoid this need, all possible components may be downloaded on-demand to " "create a complete *layout* that will no longer require an internet " "connection regardless of the selected features. Note that this download may " -"be bigger than required, but where a large number of installations are going" -" to be performed it is very useful to have a locally cached copy." +"be bigger than required, but where a large number of installations are going " +"to be performed it is very useful to have a locally cached copy." msgstr "" +"Como alguns recursos do Python não estão inclusos no download inicial do " +"instalador, selecionar esses recursos pode exigir uma conexão com a " +"internet. Para evitar isso, todos os possíveis componentes podem ser " +"baixados sob demanda para criar um *layout* completo que não irá precisar de " +"uma conexão de internet independentemente dos recursos selecionados. Note " +"que este download pode ser maior que o necessário, mas onde um grande número " +"de instalações serão realizadas é bem útil ter uma cópia em cache local." #: ../../using/windows.rst:259 msgid "" @@ -563,10 +669,12 @@ msgstr "" msgid "" "You may also specify the ``/quiet`` option to hide the progress display." msgstr "" +"Você também pode especificar a opção ``/quiet`` para esconder o " +"acompanhamento de progresso." #: ../../using/windows.rst:271 msgid "Modifying an install" -msgstr "" +msgstr "Modificando uma instalação" #: ../../using/windows.rst:273 msgid "" @@ -574,6 +682,10 @@ msgid "" "Programs and Features tool that is part of Windows. Select the Python entry " "and choose \"Uninstall/Change\" to open the installer in maintenance mode." msgstr "" +"Uma vez que o Python foi instalado, você pode adicionar ou remover recursos " +"através da ferramenta Programas e Recursos que é parte do Windows. Selecione " +"o registro do Python e escolha \"Uninstall/Change\" para abrir o instalador " +"no modo de manutenção." #: ../../using/windows.rst:277 msgid "" @@ -582,22 +694,32 @@ msgid "" "cannot be changed in this mode, such as the install directory; to modify " "these, you will need to remove and then reinstall Python completely." msgstr "" +"\"Modify\" permite que você adicione ou remova recursos modificando as " +"caixas de entrada - caixas de entrada não modificadas não irão instalar ou " +"remover nada. Algumas opções não podem ser modificadas dessa forma, como o " +"diretório de instalação; para modificá-las, você precisará remover e então " +"reinstalar o Python completamente." #: ../../using/windows.rst:282 msgid "" "\"Repair\" will verify all the files that should be installed using the " "current settings and replace any that have been removed or modified." msgstr "" +"\"Repair\" irá verificar todos os arquivos que devem ser instalados usando " +"as configurações atuais e substituir qualquer um que tiver sido removido ou " +"modificado." #: ../../using/windows.rst:285 msgid "" -"\"Uninstall\" will remove Python entirely, with the exception of the " -":ref:`launcher`, which has its own entry in Programs and Features." +"\"Uninstall\" will remove Python entirely, with the exception of the :ref:" +"`launcher`, which has its own entry in Programs and Features." msgstr "" +"\"Uninstall\" irá remover o Python completamente, com a exceção do :ref:" +"`launcher`, que tem seu próprio registro nos Programas e Recursos." #: ../../using/windows.rst:292 msgid "The Microsoft Store package" -msgstr "" +msgstr "O pacote Microsoft Store" #: ../../using/windows.rst:297 msgid "" @@ -609,22 +731,30 @@ msgstr "" #: ../../using/windows.rst:302 msgid "" -"The Microsoft Store package is an easily installable Python interpreter that" -" is intended mainly for interactive use, for example, by students." +"The Microsoft Store package is an easily installable Python interpreter that " +"is intended mainly for interactive use, for example, by students." msgstr "" +"O pacote Microsoft Store é um interpretador Python facilmente instalável " +"criado principalmente para uso interativo, por exemplo, por estudantes." #: ../../using/windows.rst:305 msgid "" "To install the package, ensure you have the latest Windows 10 updates and " -"search the Microsoft Store app for \"Python |version|\". Ensure that the app" -" you select is published by the Python Software Foundation, and install it." +"search the Microsoft Store app for \"Python |version|\". Ensure that the app " +"you select is published by the Python Software Foundation, and install it." msgstr "" +"Para instalar o pacote, certifique-se de que você possui as últimas 10 " +"atualizações do Windows e procure o app \"Python |version|\" na Microsoft " +"Store. Certifique-se que o app que você selecionou foi publicado pela Python " +"Software Foundation, e instale-o." #: ../../using/windows.rst:310 msgid "" "Python will always be available for free on the Microsoft Store. If you are " "asked to pay for it, you have not selected the correct package." msgstr "" +"Python sempre estará disponível gratuitamente na Microsoft Store. Se você " +"for solicitado a pagar por ele, você não selecionou o pacote correto." #: ../../using/windows.rst:313 msgid "" @@ -633,13 +763,18 @@ msgid "" "session by typing ``python``. Further, pip and IDLE may be used by typing " "``pip`` or ``idle``. IDLE can also be found in Start." msgstr "" +"Após a instalação, o Python pode ser inicializado por pesquisa no menu " +"Iniciar. Alternativamente, ele estará disponível a partir de qualquer Prompt " +"de Comando ou sessão PowerShell apenas digitando ``python``. Além disso, o " +"pip e a IDLE podem ser usados digitando ``pip`` ou ``idle``. A IDLE também " +"pode ser encontrada no menu Iniciar." #: ../../using/windows.rst:318 msgid "" "All three commands are also available with version number suffixes, for " "example, as ``python3.exe`` and ``python3.x.exe`` as well as ``python.exe`` " -"(where ``3.x`` is the specific version you want to launch, such as " -"|version|)." +"(where ``3.x`` is the specific version you want to launch, such as |" +"version|)." msgstr "" #: ../../using/windows.rst:323 @@ -647,14 +782,20 @@ msgid "" "Virtual environments can be created with ``python -m venv`` and activated " "and used as normal." msgstr "" +"Ambientes virtuais podem ser criados com ``python -m venv`` e ativados e " +"usados normalmente." #: ../../using/windows.rst:326 msgid "" "If you have installed another version of Python and added it to your " "``PATH`` variable, it will be available as ``python.exe`` rather than the " -"one from the Microsoft Store. To access the new installation, use " -"``python3.exe`` or ``python3.x.exe``." +"one from the Microsoft Store. To access the new installation, use ``python3." +"exe`` or ``python3.x.exe``." msgstr "" +"Se você instalou outra versão do Python e adicionou ela à sua variável " +"``PATH``, ela estará disponível com ``python.exe`` ao invés de uma instalada " +"pela Microsoft Store. Para acessar a nova instalação, use ``python3.exe`` ou " +"``python3.x.exe``." #: ../../using/windows.rst:331 msgid "" @@ -663,10 +804,15 @@ msgid "" "remove all packages you installed directly into this Python installation, " "but will not remove any virtual environments" msgstr "" +"Para remover o Python, abra as Configurações e use Apps e Recursos, ou " +"encontre o Python no menu Iniciar e clique com o botão direito para " +"selecionar Desinstalar. A desinstalação irá remover todos os pacotes que " +"você instalou diretamente dentro dessa instalação do Python, mas não irá " +"remover nenhum ambiente virtual." #: ../../using/windows.rst:337 msgid "Known Issues" -msgstr "" +msgstr "Problemas Conhecidos" #: ../../using/windows.rst:339 msgid "" @@ -676,15 +822,20 @@ msgstr "" #: ../../using/windows.rst:342 msgid "" -"Because of restrictions on Microsoft Store apps, Python scripts may not have" -" full write access to shared locations such as ``TEMP`` and the registry. " +"Because of restrictions on Microsoft Store apps, Python scripts may not have " +"full write access to shared locations such as ``TEMP`` and the registry. " "Instead, it will write to a private copy. If your scripts must modify the " "shared locations, you will need to install the full installer." msgstr "" +"Por causa de restrições nos apps da Microsoft Store, scripts Python podem " +"não ter acesso de escrita completo em locais compartilhados como ``TEMP`` ou " +"o registro. Ao invés disso, ele irá escrever uma cópia privada. Se seus " +"scripts precisam modificar locais compartilhados, você terá que instalar o " +"instalador completo." #: ../../using/windows.rst:351 msgid "The nuget.org packages" -msgstr "" +msgstr "Os pacotes nuget.org" #: ../../using/windows.rst:355 msgid "" @@ -693,13 +844,21 @@ msgid "" "install of Python. While nuget is \"the package manager for .NET\", it also " "works perfectly fine for packages containing build-time tools." msgstr "" +"O pacote nuget.org é um ambiente Python de tamanho reduzido criado para uso " +"em integração contínua e construção de sistemas que não precisam de uma " +"instalação de Python por todo o sistema da máquina. Enquanto nuget é o " +"\"gerenciador de pacotes para .NET\", ele também funciona perfeitamente bem " +"para pacotes contendo ferramentas em tempo de construção." #: ../../using/windows.rst:360 msgid "" "Visit `nuget.org `_ for the most up-to-date " -"information on using nuget. What follows is a summary that is sufficient for" -" Python developers." +"information on using nuget. What follows is a summary that is sufficient for " +"Python developers." msgstr "" +"Visite `nuget.org `_ para informações mais " +"atualizadas sobre utilização do nuget. A seguir está um sumário que é " +"suficiente para desenvolvedores Python." #: ../../using/windows.rst:364 msgid "" @@ -708,6 +867,10 @@ msgid "" "the tool, the latest version of Python for 64-bit or 32-bit machines is " "installed using::" msgstr "" +"A ferramenta de linha de comando ``nuget.exe`` pode ser baixada diretamente " +"de ``https://aka.ms/nugetclidl``, por exemplo, usando o curl ou PowerShell. " +"Com a ferramenta, a versão mais recente do Python para máquinas 64-bit ou 32-" +"bit é instalada usando::" #: ../../using/windows.rst:372 msgid "" @@ -718,34 +881,54 @@ msgid "" "the specific version installed. Inside the subdirectory is a ``tools`` " "directory that contains the Python installation::" msgstr "" +"Para selecionar uma versão específica, adicione ``-Version 3.x.y``. O " +"diretório de saída pode ser mudado de ``.``, e o pacote será instalado em um " +"subdiretório. Por padrão, o subdiretório é nomeado igual ao pacote, e sem a " +"opção ``-ExcludeVersion`` esse nome irá incluir a versão específica " +"instalada. Dentro do subdiretório está um diretório ``tools`` que contém a " +"instalação do Python::" #: ../../using/windows.rst:387 msgid "" -"In general, nuget packages are not upgradeable, and newer versions should be" -" installed side-by-side and referenced using the full path. Alternatively, " +"In general, nuget packages are not upgradeable, and newer versions should be " +"installed side-by-side and referenced using the full path. Alternatively, " "delete the package directory manually and install it again. Many CI systems " "will do this automatically if they do not preserve files between builds." msgstr "" +"Em geral, pacotes nuget não são atualizáveis, e novas versões devem ser " +"instaladas lado-a-lado e referenciadas usando o caminho completo. " +"Alternativamente, delete o diretório do pacote manualmente e instale " +"novamente. Muitos sistemas CI irão fazer isso automaticamente se eles não " +"preservam arquivos entre construções de pacotes." #: ../../using/windows.rst:392 msgid "" "Alongside the ``tools`` directory is a ``build\\native`` directory. This " -"contains a MSBuild properties file ``python.props`` that can be used in a " -"C++ project to reference the Python install. Including the settings will " +"contains a MSBuild properties file ``python.props`` that can be used in a C+" +"+ project to reference the Python install. Including the settings will " "automatically use the headers and import libraries in your build." msgstr "" +"Juntamente com o diretório ``tools`` está o diretório ``build\\native``. Ele " +"contém um arquivo de propriedades MSBuild ``python.props`` que pode ser " +"usado em um projeto C++ para referenciar a instalação do Python. Incluir as " +"configurações irá automaticamente usar os cabeçalhos e importar as " +"bibliotecas na sua construção de projeto." #: ../../using/windows.rst:397 msgid "" -"The package information pages on nuget.org are " -"`www.nuget.org/packages/python `_ for" -" the 64-bit version and `www.nuget.org/packages/pythonx86 " -"`_ for the 32-bit version." +"The package information pages on nuget.org are `www.nuget.org/packages/" +"python `_ for the 64-bit version and " +"`www.nuget.org/packages/pythonx86 `_ for the 32-bit version." msgstr "" +"As páginas de informação dos pacotes em nuget.org são `www.nuget.org/" +"packages/python `_ para a versão 64-" +"bit e `www.nuget.org/packages/pythonx86 `_ para a versão 32-bit." #: ../../using/windows.rst:406 msgid "The embeddable package" -msgstr "" +msgstr "O pacote embutível" #: ../../using/windows.rst:410 msgid "" @@ -753,6 +936,9 @@ msgid "" "environment. It is intended for acting as part of another application, " "rather than being directly accessed by end-users." msgstr "" +"A distribuição embutida é um arquivo ZIP contendo um ambiente Python mínimo. " +"Ela foi criada para atuar como parte de outra aplicação, ao invés de ser " +"diretamente acessada por usuários finais." #: ../../using/windows.rst:414 msgid "" @@ -760,36 +946,59 @@ msgid "" "the user's system, including environment variables, system registry " "settings, and installed packages. The standard library is included as pre-" "compiled and optimized ``.pyc`` files in a ZIP, and ``python3.dll``, " -"``python37.dll``, ``python.exe`` and ``pythonw.exe`` are all provided. " -"Tcl/tk (including all dependants, such as Idle), pip and the Python " +"``python37.dll``, ``python.exe`` and ``pythonw.exe`` are all provided. Tcl/" +"tk (including all dependants, such as Idle), pip and the Python " "documentation are not included." msgstr "" +"Quando extraída, a versão embutida é (quase) completamente isolada do " +"sistema do usuário, incluindo variáveis de ambiente, configurações de " +"registro de sistema, e pacotes instalados. A biblioteca padrão está inclusa " +"como arquivos ``.pyc`` pré-compilados e otimizados em um ZIP, e ``python3." +"dll``, ``python37.dll``, ``python.exe`` e ``pythonw.exe`` estão todos " +"disponíveis. Tcl/tk (incluindo todas as dependências, como a Idle), pip e a " +"documentação do Python não estão inclusos." #: ../../using/windows.rst:423 msgid "" -"The embedded distribution does not include the `Microsoft C Runtime " -"`_ and it is" -" the responsibility of the application installer to provide this. The " -"runtime may have already been installed on a user's system previously or " -"automatically via Windows Update, and can be detected by finding " -"``ucrtbase.dll`` in the system directory." +"The embedded distribution does not include the `Microsoft C Runtime `_ and it is the " +"responsibility of the application installer to provide this. The runtime may " +"have already been installed on a user's system previously or automatically " +"via Windows Update, and can be detected by finding ``ucrtbase.dll`` in the " +"system directory." msgstr "" +"A distribuição embutida não inclui o `Microsoft C Runtime `_ e é de " +"responsabilidade do instalador da aplicação providenciar isso. O aplicativo " +"de tempo de execução pode já ter sido instalado no sistema de um usuário " +"previamente ou automaticamente via Windows Update, e pode ser detectado " +"procurando por ``ucrtbase.dll`` no diretório do sistema." #: ../../using/windows.rst:430 msgid "" "Third-party packages should be installed by the application installer " -"alongside the embedded distribution. Using pip to manage dependencies as for" -" a regular Python installation is not supported with this distribution, " +"alongside the embedded distribution. Using pip to manage dependencies as for " +"a regular Python installation is not supported with this distribution, " "though with some care it may be possible to include and use pip for " "automatic updates. In general, third-party packages should be treated as " "part of the application (\"vendoring\") so that the developer can ensure " "compatibility with newer versions before providing updates to users." msgstr "" +"Pacotes de terceiros devem ser instalados pelo instalador da aplicação " +"juntamente com a distribuição embutida. Usar o pip para gerenciar as " +"dependências como em uma instalação regular do Python não é suportado nessa " +"distribuição, apesar de que com algum cuidado pode ser possível incluir e " +"usar o pip para atualizações automáticas. Em geral, pacotes de terceiros " +"devem ser tratados como parte da aplicação (\"vendoring\") para que o " +"desenvolvedor consiga garantir compatibilidade com versões mais recentes " +"antes de fornecer atualizações para os usuários." #: ../../using/windows.rst:438 msgid "" "The two recommended use cases for this distribution are described below." msgstr "" +"Os dois casos de uso recomendados para essa distribuição são descritos " +"abaixo." #: ../../using/windows.rst:441 msgid "Python Application" @@ -800,9 +1009,14 @@ msgid "" "An application written in Python does not necessarily require users to be " "aware of that fact. The embedded distribution may be used in this case to " "include a private version of Python in an install package. Depending on how " -"transparent it should be (or conversely, how professional it should appear)," -" there are two options." +"transparent it should be (or conversely, how professional it should appear), " +"there are two options." msgstr "" +"Uma aplicação escrita em Python não requer necessariamente que os usuários " +"estejam cientes deste fato. A distribuição embutida pode ser usada neste " +"caso para incluir uma versão privada do pacote de instalação do Python. " +"Dependendo de quão transparente deve ser (ou pelo contrário, quão " +"profissional deve parecer), existem duas opções." #: ../../using/windows.rst:449 msgid "" @@ -811,27 +1025,45 @@ msgid "" "launcher, there are no obvious indications that the program is running on " "Python: icons can be customized, company and version information can be " "specified, and file associations behave properly. In most cases, a custom " -"launcher should simply be able to call ``Py_Main`` with a hard-coded command" -" line." +"launcher should simply be able to call ``Py_Main`` with a hard-coded command " +"line." msgstr "" +"Usando um executável especializado como inicializador requer um pouco de " +"código, mas fornece a experiência mais transparente para os usuários. Com um " +"inicializador customizado, não existem indicações óbvias que o programa está " +"rodando em Python: ícones podem ser personalizados, informações da empresa e " +"versão podem ser especificadas, e associações de arquivo se comportam de " +"forma apropriada. Na maioria dos casos, um inicializador personalizado deve " +"simplesmente ser capaz de chamar ``Py_Main`` com uma linha de comando " +"predefinida (hard-coded)." #: ../../using/windows.rst:456 msgid "" "The simpler approach is to provide a batch file or generated shortcut that " "directly calls the ``python.exe`` or ``pythonw.exe`` with the required " "command-line arguments. In this case, the application will appear to be " -"Python and not its actual name, and users may have trouble distinguishing it" -" from other running Python processes or file associations." +"Python and not its actual name, and users may have trouble distinguishing it " +"from other running Python processes or file associations." msgstr "" +"A abordagem mais simples é fornecer um arquivo batch ou um atalho gerado que " +"chama diretamente o ``python.exe`` ou ``pythonw.exe`` com os argumentos de " +"linha de comando necessários. Neste caso, a aplicação irá aparecer como " +"Python e não seu nome real, e os usuários podem ter problemas em distinguir " +"ela de outros processos ou associações de arquivo em Python." #: ../../using/windows.rst:462 msgid "" "With the latter approach, packages should be installed as directories " "alongside the Python executable to ensure they are available on the path. " -"With the specialized launcher, packages can be located in other locations as" -" there is an opportunity to specify the search path before launching the " +"With the specialized launcher, packages can be located in other locations as " +"there is an opportunity to specify the search path before launching the " "application." msgstr "" +"Com a abordagem anterior, pacotes devem ser instalados como diretórios " +"juntamente do executável do Python para garantir que estarão disponíveis no " +"caminho do ambiente. Com o instalador especializado, pacotes podem ser " +"armazenados em outras localidades já que há uma oportunidade de especificar " +"o caminho de busca antes de executar a aplicação." #: ../../using/windows.rst:468 msgid "Embedding Python" @@ -840,13 +1072,20 @@ msgstr "Incorporando Python" #: ../../using/windows.rst:470 msgid "" "Applications written in native code often require some form of scripting " -"language, and the embedded Python distribution can be used for this purpose." -" In general, the majority of the application is in native code, and some " -"part will either invoke ``python.exe`` or directly use ``python3.dll``. For " +"language, and the embedded Python distribution can be used for this purpose. " +"In general, the majority of the application is in native code, and some part " +"will either invoke ``python.exe`` or directly use ``python3.dll``. For " "either case, extracting the embedded distribution to a subdirectory of the " "application installation is sufficient to provide a loadable Python " "interpreter." msgstr "" +"Aplicações escritas em código nativo frequentemente precisam de alguma forma " +"de linguagem de script, e a distribuição embutida do Python pode ser usada " +"para esse propósito. Em geral, a maior parte da aplicação é em código " +"nativo, e uma parte irá ou invocar ``python.exe`` ou usar diretamente " +"``python3.dll``. Para ambos os casos, extrair a distribuição embutida em um " +"subdiretório da instalação da aplicação é suficiente para providenciar um " +"interpretador Python carregável." #: ../../using/windows.rst:477 msgid "" @@ -855,6 +1094,10 @@ msgid "" "interpreter. Otherwise, there is no fundamental differences between using " "the embedded distribution and a regular installation." msgstr "" +"Para uso da aplicação, pacotes podem ser instalados em qualquer local já que " +"há uma oportunidade de especificar caminhos de busca antes de inicializar o " +"interpretador. De outra forma, não existem diferenças fundamentais entre " +"usar a distribuição embutida ou a instalação regular." #: ../../using/windows.rst:484 msgid "Alternative bundles" @@ -866,6 +1109,9 @@ msgid "" "including additional functionality. The following is a list of popular " "versions and their key features:" msgstr "" +"À parte da distribuição padrão CPython, existem pacotes modificados " +"incluindo funcionalidades adicionais. A seguir está uma lista de versões " +"populares e seus recursos chave:" #: ../../using/windows.rst:491 msgid "`ActivePython `_" @@ -873,27 +1119,31 @@ msgstr "`ActivePython `_" #: ../../using/windows.rst:491 msgid "Installer with multi-platform compatibility, documentation, PyWin32" -msgstr "" +msgstr "Instalador com compatibilidade multi-plataforma, documentação, PyWin32" #: ../../using/windows.rst:495 msgid "`Anaconda `_" -msgstr "" +msgstr "`Anaconda `_" #: ../../using/windows.rst:494 msgid "" "Popular scientific modules (such as numpy, scipy and pandas) and the " "``conda`` package manager." msgstr "" +"Módulos científicos populares (como o numpy, scipy e pandas) e o gerenciador " +"de pacotes ``conda``." #: ../../using/windows.rst:499 msgid "`Canopy `_" -msgstr "" +msgstr "`Canopy `_" #: ../../using/windows.rst:498 msgid "" "A \"comprehensive Python analysis environment\" with editors and other " "development tools." msgstr "" +"Um \"ambiente de análise Python compreensivo\" com editores e outras " +"ferramentas de desenvolvimento." #: ../../using/windows.rst:503 msgid "`WinPython `_" @@ -904,13 +1154,17 @@ msgid "" "Windows-specific distribution with prebuilt scientific packages and tools " "for building packages." msgstr "" +"Distribuição específica do Windows com pacotes científicos pré-construídos e " +"ferramentas para construir pacotes." #: ../../using/windows.rst:505 msgid "" "Note that these packages may not include the latest versions of Python or " -"other libraries, and are not maintained or supported by the core Python " -"team." +"other libraries, and are not maintained or supported by the core Python team." msgstr "" +"Note que esses pacotes podem não incluir as últimas versões do Python ou " +"outras bibliotecas, e não são mantidos ou suportados pelo time do núcleo do " +"Python." #: ../../using/windows.rst:511 msgid "Configuring Python" @@ -919,59 +1173,87 @@ msgstr "Configurando o Python" #: ../../using/windows.rst:513 msgid "" "To run Python conveniently from a command prompt, you might consider " -"changing some default environment variables in Windows. While the installer" -" provides an option to configure the PATH and PATHEXT variables for you, " -"this is only reliable for a single, system-wide installation. If you " -"regularly use multiple versions of Python, consider using the " -":ref:`launcher`." -msgstr "" +"changing some default environment variables in Windows. While the installer " +"provides an option to configure the PATH and PATHEXT variables for you, this " +"is only reliable for a single, system-wide installation. If you regularly " +"use multiple versions of Python, consider using the :ref:`launcher`." +msgstr "" +"Para executar o Python convenientemente de um prompt de comando, você pode " +"considerar mudar algumas variáveis de ambiente padrão do Windows. Ainda que " +"o instalador forneça uma opção para configurar as variáveis PATH e PATHEXT " +"para você, isso só é confiável para uma instalação única e global no " +"sistema. Se você usa regularmente múltiplas versões do Python, considere " +"usar o :ref:`launcher`." #: ../../using/windows.rst:523 msgid "Excursus: Setting environment variables" -msgstr "" +msgstr "Excursus: Configurando variáveis de ambiente" #: ../../using/windows.rst:525 msgid "" "Windows allows environment variables to be configured permanently at both " "the User level and the System level, or temporarily in a command prompt." msgstr "" +"O Windows permite que variáveis de ambiente sejam configuradas de forma " +"permanente em ambos os níveis de Usuário e de Sistema, ou temporariamente em " +"um prompt de comando." #: ../../using/windows.rst:528 msgid "" -"To temporarily set environment variables, open Command Prompt and use the " -":command:`set` command:" +"To temporarily set environment variables, open Command Prompt and use the :" +"command:`set` command:" msgstr "" +"Para definir as variáveis de ambiente temporariamente, abra um Prompt de " +"Comando e use o comando :command:`set`:" #: ../../using/windows.rst:537 msgid "" "These changes will apply to any further commands executed in that console, " "and will be inherited by any applications started from the console." msgstr "" +"Essas mudanças serão aplicadas em quaisquer comandos posteriores que forem " +"executados neste console, e serão herdadas por quaisquer aplicações " +"iniciadas pelo console." #: ../../using/windows.rst:540 msgid "" -"Including the variable name within percent signs will expand to the existing" -" value, allowing you to add your new value at either the start or the end. " -"Modifying :envvar:`PATH` by adding the directory containing " -":program:`python.exe` to the start is a common way to ensure the correct " -"version of Python is launched." +"Including the variable name within percent signs will expand to the existing " +"value, allowing you to add your new value at either the start or the end. " +"Modifying :envvar:`PATH` by adding the directory containing :program:`python." +"exe` to the start is a common way to ensure the correct version of Python is " +"launched." msgstr "" +"Incluir o nome da variável com sinais de porcentagem irá expandir o valor " +"existente, permitindo que você adicione seu novo valor ao início ou final. " +"Modificar o :envvar:`PATH` adicionando o diretório contendo :program:`python." +"exe` ao início é o modo mais comum de garantir que a versão correta do " +"Python seja iniciada." #: ../../using/windows.rst:546 msgid "" "To permanently modify the default environment variables, click Start and " -"search for 'edit environment variables', or open System properties, " -":guilabel:`Advanced system settings` and click the :guilabel:`Environment " +"search for 'edit environment variables', or open System properties, :" +"guilabel:`Advanced system settings` and click the :guilabel:`Environment " "Variables` button. In this dialog, you can add or modify User and System " "variables. To change System variables, you need non-restricted access to " "your machine (i.e. Administrator rights)." msgstr "" +"Para modificar permanentemente as variáveis de ambiente padrão, clique em " +"Iniciar e procure por 'Editar as variáveis de ambiente do sistema`, ou abra " +"as propriedades do Sistema, :guilabel:`Configurações avançadas do sistema` e " +"clique no botão :guilabel:`Variáveis de Ambiente`. Neste diálogo, você pode " +"adicionar ou modificar as variáveis de Usuário ou Sistema. Para mudar as " +"variáveis do Sistema, você precisa de acesso não-restrito à sua máquina " +"(isto é, direitos de Administrador)." #: ../../using/windows.rst:555 msgid "" "Windows will concatenate User variables *after* System variables, which may " "cause unexpected results when modifying :envvar:`PATH`." msgstr "" +"O Windows irá concatenar as variáveis de Usuário *após* as variáveis de " +"Sistema, o que pode causar resultados inesperados quando modificando o :" +"envvar:`PATH`." #: ../../using/windows.rst:558 msgid "" @@ -980,14 +1262,18 @@ msgid "" "only includes code that is compatible with all of your installed Python " "versions." msgstr "" +"A variável :envvar:`PYTHONPATH` é usada por todas as versões do Python 2 e " +"Python 3, então você não deve configurar permanentemente esta variável a " +"menos que ela apenas inclua código que seja compatível com todas as suas " +"versões instaladas do Python." #: ../../using/windows.rst:566 msgid "https://www.microsoft.com/en-us/wdsi/help/folder-variables" -msgstr "" +msgstr "https://www.microsoft.com/en-us/wdsi/help/folder-variables" #: ../../using/windows.rst:566 msgid "Environment variables in Windows NT" -msgstr "" +msgstr "Variáveis de ambiente no Windows NT" #: ../../using/windows.rst:569 msgid "https://technet.microsoft.com/en-us/library/cc754250.aspx" @@ -995,7 +1281,7 @@ msgstr "https://technet.microsoft.com/en-us/library/cc754250.aspx" #: ../../using/windows.rst:569 msgid "The SET command, for temporarily modifying environment variables" -msgstr "" +msgstr "O comando SET, para modificar temporariamente as variáveis de ambiente" #: ../../using/windows.rst:572 msgid "https://technet.microsoft.com/en-us/library/cc755104.aspx" @@ -1004,28 +1290,31 @@ msgstr "https://technet.microsoft.com/en-us/library/cc755104.aspx" #: ../../using/windows.rst:572 msgid "The SETX command, for permanently modifying environment variables" msgstr "" +"O comando SETX, para modificar permanentemente as variáveis de ambiente" #: ../../using/windows.rst:575 msgid "" "https://support.microsoft.com/en-us/help/310519/how-to-manage-environment-" "variables-in-windows-xp" msgstr "" +"https://support.microsoft.com/en-us/help/310519/how-to-manage-environment-" +"variables-in-windows-xp" #: ../../using/windows.rst:575 msgid "How To Manage Environment Variables in Windows XP" -msgstr "" +msgstr "Como Gerenciar Variáveis de Ambiente no Windows XP" #: ../../using/windows.rst:577 msgid "https://www.chem.gla.ac.uk/~louis/software/faq/q1.html" -msgstr "" +msgstr "https://www.chem.gla.ac.uk/~louis/software/faq/q1.html" #: ../../using/windows.rst:578 msgid "Setting Environment variables, Louis J. Farrugia" -msgstr "" +msgstr "Configurando variáveis de ambiente, Lous J. Farrugia" #: ../../using/windows.rst:583 msgid "Finding the Python executable" -msgstr "" +msgstr "Encontrando o executável do Python" #: ../../using/windows.rst:587 msgid "" @@ -1033,17 +1322,27 @@ msgid "" "interpreter, you might want to start Python in the command prompt. The " "installer has an option to set that up for you." msgstr "" +"Além de usar o registro do menu Iniciar criado automaticamente para o " +"interpretador do Python, você pode querer iniciar o Python no prompt de " +"comando. O instalador possui uma opção para configurar isso pra você." #: ../../using/windows.rst:591 msgid "" -"On the first page of the installer, an option labelled \"Add Python to " -"PATH\" may be selected to have the installer add the install location into " -"the :envvar:`PATH`. The location of the :file:`Scripts\\\\` folder is also " -"added. This allows you to type :command:`python` to run the interpreter, and" -" :command:`pip` for the package installer. Thus, you can also execute your " -"scripts with command line options, see :ref:`using-on-cmdline` " +"On the first page of the installer, an option labelled \"Add Python to PATH" +"\" may be selected to have the installer add the install location into the :" +"envvar:`PATH`. The location of the :file:`Scripts\\\\` folder is also " +"added. This allows you to type :command:`python` to run the interpreter, " +"and :command:`pip` for the package installer. Thus, you can also execute " +"your scripts with command line options, see :ref:`using-on-cmdline` " "documentation." msgstr "" +"Na primeira página do instalador, uma opção chamada \"Add Python to PATH\" " +"pode ser selecionada para que o instalador adicione o local de instalação na " +"sua variável :envvar:`PATH`. O local da pasta de :file:`Scripts\\\\` também " +"é adicionado. Isso permite que você digite :command:`python` para executar o " +"interpretador, e :command:`pip` para o instalador de pacotes. Além disso, " +"você pode também executar seus scripts com as opções de linha de comando, " +"veja a documentação :ref:`using-on-cmdline`." #: ../../using/windows.rst:598 msgid "" @@ -1055,158 +1354,285 @@ msgid "" "entries. An example variable could look like this (assuming the first two " "entries already existed)::" msgstr "" +"Se você não habilitar essa opção no momento de instalação, você sempre pode " +"re-executar o instalador, selecionar Modify, e habilitá-la. " +"Alternativamente, você pode modificar manualmente a variável :envvar:`PATH` " +"usando os direcionamentos em :ref:`setting-envvars`. Você precisa definir " +"sua variável de ambiente :envvar:`PATH` para incluir o diretório da sua " +"instalação Python, delimitado por um ponto e vírgula de outras entradas. Uma " +"variável exemplo pode parecer com isso (assumindo que as duas primeiras " +"entradas já existem)::" #: ../../using/windows.rst:611 -msgid "Python Launcher for Windows" +msgid "UTF-8 mode" msgstr "" #: ../../using/windows.rst:615 msgid "" +"Windows still uses legacy encodings for the system encoding (the ANSI Code " +"Page). Python uses it for the default encoding of text files (e.g. :func:" +"`locale.getpreferredencoding`)." +msgstr "" + +#: ../../using/windows.rst:619 +msgid "" +"This may cause issues because UTF-8 is widely used on the internet and most " +"Unix systems, including WSL (Windows Subsystem for Linux)." +msgstr "" + +#: ../../using/windows.rst:622 +msgid "" +"You can use UTF-8 mode to change the default text encoding to UTF-8. You can " +"enable UTF-8 mode via the ``-X utf8`` command line option, or the " +"``PYTHONUTF8=1`` environment variable. See :envvar:`PYTHONUTF8` for " +"enabling UTF-8 mode, and :ref:`setting-envvars` for how to modify " +"environment variables." +msgstr "" + +#: ../../using/windows.rst:628 +msgid "When UTF-8 mode is enabled:" +msgstr "" + +#: ../../using/windows.rst:630 +msgid "" +":func:`locale.getpreferredencoding` returns ``'UTF-8'`` instead of the " +"system encoding. This function is used for the default text encoding in " +"many places, including :func:`open`, :class:`Popen`, :meth:`Path.read_text`, " +"etc." +msgstr "" + +#: ../../using/windows.rst:634 +msgid "" +":data:`sys.stdin`, :data:`sys.stdout`, and :data:`sys.stderr` all use UTF-8 " +"as their text encoding." +msgstr "" + +#: ../../using/windows.rst:636 +msgid "You can still use the system encoding via the \"mbcs\" codec." +msgstr "" + +#: ../../using/windows.rst:638 +msgid "" +"Note that adding ``PYTHONUTF8=1`` to the default environment variables will " +"affect all Python 3.7+ applications on your system. If you have any Python " +"3.7+ applications which rely on the legacy system encoding, it is " +"recommended to set the environment variable temporarily or use the ``-X " +"utf8`` command line option." +msgstr "" + +#: ../../using/windows.rst:645 +msgid "" +"Even when UTF-8 mode is disabled, Python uses UTF-8 by default on Windows " +"for:" +msgstr "" + +#: ../../using/windows.rst:648 +msgid "Console I/O including standard I/O (see :pep:`528` for details)." +msgstr "" + +#: ../../using/windows.rst:649 +msgid "The filesystem encoding (see :pep:`529` for details)." +msgstr "" + +#: ../../using/windows.rst:655 +msgid "Python Launcher for Windows" +msgstr "Inicializador Python para Windows" + +#: ../../using/windows.rst:659 +msgid "" "The Python launcher for Windows is a utility which aids in locating and " "executing of different Python versions. It allows scripts (or the command-" "line) to indicate a preference for a specific Python version, and will " "locate and execute that version." msgstr "" +"O inicializador Python para Windows é um utilitário que auxilia na " +"localização e execução de diferentes versões do Python. Ele permite que " +"scripts (ou a linha de comando) indiquem uma preferência por uma versão do " +"Python específica, e irá localizar e executar essa versão." -#: ../../using/windows.rst:620 +#: ../../using/windows.rst:664 msgid "" "Unlike the :envvar:`PATH` variable, the launcher will correctly select the " "most appropriate version of Python. It will prefer per-user installations " "over system-wide ones, and orders by language version rather than using the " "most recently installed version." msgstr "" +"Ao contrário da variável :envvar:`PATH`, o inicializador irá corretamente " +"selecionar a versão mais apropriada do Python. Ele irá preferir instalações " +"por usuário ao invés de instalações globais no sistema, e ordenará por " +"versão da linguagem ao invés de usar a versão instalada mais recentemente." -#: ../../using/windows.rst:625 +#: ../../using/windows.rst:669 msgid "The launcher was originally specified in :pep:`397`." -msgstr "" +msgstr "O inicializador foi originalmente especificado na :pep:`397`." -#: ../../using/windows.rst:628 +#: ../../using/windows.rst:672 msgid "Getting started" -msgstr "" +msgstr "Começando" -#: ../../using/windows.rst:631 +#: ../../using/windows.rst:675 msgid "From the command-line" -msgstr "" +msgstr "Pela linha de comando" -#: ../../using/windows.rst:635 +#: ../../using/windows.rst:679 msgid "" "System-wide installations of Python 3.3 and later will put the launcher on " "your :envvar:`PATH`. The launcher is compatible with all available versions " "of Python, so it does not matter which version is installed. To check that " "the launcher is available, execute the following command in Command Prompt:" msgstr "" +"Instalações globais no sistema do Python 3.3 ou posterior irão colocar o " +"inicializador no seu :envvar:`PATH`. O inicializador é compatível com todas " +"as versões disponíveis do Python, então não importa qual versão está " +"instalada. Para verificar se o inicializador está disponível, execute o " +"seguinte comando no Prompt de Comando:" -#: ../../using/windows.rst:644 +#: ../../using/windows.rst:688 msgid "" "You should find that the latest version of Python you have installed is " "started - it can be exited as normal, and any additional command-line " "arguments specified will be sent directly to Python." msgstr "" +"Você deve perceber que a última versão do Python que você tem é iniciada - " +"ela pode ser fechada normalmente, e qualquer argumento da linha de comando " +"adicional especificado será enviado diretamente para o Python." -#: ../../using/windows.rst:648 +#: ../../using/windows.rst:692 msgid "" "If you have multiple versions of Python installed (e.g., 2.7 and |version|) " "you will have noticed that Python |version| was started - to launch Python " "2.7, try the command:" msgstr "" +"Se você tem múltiplas versões do Python instaladas (por exemplo, 2.7 e |" +"version|) você deve ter notado que o Python |version| foi iniciado - para " +"iniciar o Python 2.7, use o comando:" -#: ../../using/windows.rst:656 +#: ../../using/windows.rst:700 msgid "" "If you want the latest version of Python 2.x you have installed, try the " "command:" msgstr "" +"Se você quer a versão mais recente do Python 2.x que você tem instalada, " +"tente o comando:" -#: ../../using/windows.rst:663 +#: ../../using/windows.rst:707 msgid "You should find the latest version of Python 2.x starts." -msgstr "" +msgstr "Você deve perceber que a versão mais recente do Python 2.x iniciou." -#: ../../using/windows.rst:665 -msgid "" -"If you see the following error, you do not have the launcher installed:" -msgstr "" +#: ../../using/windows.rst:709 +msgid "If you see the following error, you do not have the launcher installed:" +msgstr "Se você ver o seguinte erro, você não tem o inicializador instalado:" -#: ../../using/windows.rst:672 +#: ../../using/windows.rst:716 msgid "" "Per-user installations of Python do not add the launcher to :envvar:`PATH` " "unless the option was selected on installation." msgstr "" +"Instalações do Python por usuário não permitem adicionar o inicializador ao :" +"envvar:`PATH` a não ser que a opção seja selecionada na instalação." -#: ../../using/windows.rst:676 +#: ../../using/windows.rst:720 msgid "Virtual environments" -msgstr "" +msgstr "Ambientes virtuais" -#: ../../using/windows.rst:680 +#: ../../using/windows.rst:724 msgid "" "If the launcher is run with no explicit Python version specification, and a " -"virtual environment (created with the standard library :mod:`venv` module or" -" the external ``virtualenv`` tool) active, the launcher will run the virtual" -" environment's interpreter rather than the global one. To run the global " +"virtual environment (created with the standard library :mod:`venv` module or " +"the external ``virtualenv`` tool) active, the launcher will run the virtual " +"environment's interpreter rather than the global one. To run the global " "interpreter, either deactivate the virtual environment, or explicitly " "specify the global Python version." msgstr "" +"Se o inicializador é executado sem versão explícita do Python especificada, " +"e um ambiente virtual (criado com o módulo da biblioteca padrão :mod:`venv` " +"ou da ferramenta externa ``virtualenv``) está ativo, o inicializador irá " +"executar o interpretador do ambiente virtual ao invés do global. Para " +"executar o interpretador global, ou desative o ambiente virtual, ou " +"explicitamente especifique a versão global do Python." -#: ../../using/windows.rst:688 +#: ../../using/windows.rst:732 msgid "From a script" -msgstr "" +msgstr "Por um script" -#: ../../using/windows.rst:690 +#: ../../using/windows.rst:734 msgid "" "Let's create a test Python script - create a file called ``hello.py`` with " "the following contents" msgstr "" +"Vamos criar um script teste de Python - crie um arquivo chamado ``hello.py`` " +"com os seguintes conteúdos:" -#: ../../using/windows.rst:699 +#: ../../using/windows.rst:743 msgid "From the directory in which hello.py lives, execute the command:" -msgstr "" +msgstr "A partir do diretório onde hello.py está, execute o comando:" -#: ../../using/windows.rst:705 +#: ../../using/windows.rst:749 msgid "" "You should notice the version number of your latest Python 2.x installation " "is printed. Now try changing the first line to be:" msgstr "" +"Você deve notar que o número da versão da sua instalação mais recente do " +"Python 2.x é exibido. Agora tente mudar a primeira linha para ser:" -#: ../../using/windows.rst:712 +#: ../../using/windows.rst:756 msgid "" -"Re-executing the command should now print the latest Python 3.x information." -" As with the above command-line examples, you can specify a more explicit " -"version qualifier. Assuming you have Python 2.6 installed, try changing the" -" first line to ``#! python2.6`` and you should find the 2.6 version " +"Re-executing the command should now print the latest Python 3.x information. " +"As with the above command-line examples, you can specify a more explicit " +"version qualifier. Assuming you have Python 2.6 installed, try changing the " +"first line to ``#! python2.6`` and you should find the 2.6 version " "information printed." msgstr "" +"Re-executar o comando agora deve exibir informações da última versão do " +"Python 3.x. Como nos exemplos da linha de comando acima, você pode " +"especificar um qualificador de versão mais explícito. Assumindo que você tem " +"o Python 2.6 instalado, tente mudar a primeira linha para ``#! python2.6`` e " +"você deve ver as informações da versão 2.6 sendo exibidas." -#: ../../using/windows.rst:718 +#: ../../using/windows.rst:762 msgid "" "Note that unlike interactive use, a bare \"python\" will use the latest " "version of Python 2.x that you have installed. This is for backward " "compatibility and for compatibility with Unix, where the command ``python`` " "typically refers to Python 2." msgstr "" +"Note que diferentemente do uso interativo, um simples \"python\" irá usar a " +"última versão do Python 2.x que você tem instalada. Isso é para " +"retrocompatibilidade e para compatibilidade com Unix, onde o comando " +"``python`` tipicamente se refere ao Python 2." -#: ../../using/windows.rst:724 +#: ../../using/windows.rst:768 msgid "From file associations" -msgstr "" +msgstr "Por associação de arquivos" -#: ../../using/windows.rst:726 +#: ../../using/windows.rst:770 msgid "" -"The launcher should have been associated with Python files (i.e. ``.py``, " -"``.pyw``, ``.pyc`` files) when it was installed. This means that when you " +"The launcher should have been associated with Python files (i.e. ``.py``, ``." +"pyw``, ``.pyc`` files) when it was installed. This means that when you " "double-click on one of these files from Windows explorer the launcher will " "be used, and therefore you can use the same facilities described above to " "have the script specify the version which should be used." msgstr "" +"O inicializador deve ter sido associado com arquivos Python (isto é, " +"arquivos ``.py``, ``.pyw``, ``.pyc``) quando foi instalado. Isso significa " +"que quando você clica duas vezes em um desses arquivos a partir do " +"Explorador de Arquivos do Windows o inicializador será usado, e assim você " +"pode usar as mesmas facilidades descritas acima para que o script " +"especifique qual versão deve ser usada." -#: ../../using/windows.rst:732 +#: ../../using/windows.rst:776 msgid "" "The key benefit of this is that a single launcher can support multiple " -"Python versions at the same time depending on the contents of the first " -"line." +"Python versions at the same time depending on the contents of the first line." msgstr "" +"O benefício chave disso é que um único inicializador pode suportar múltiplas " +"versões do Python ao mesmo tempo dependendo dos conteúdos da primeira linha." -#: ../../using/windows.rst:736 +#: ../../using/windows.rst:780 msgid "Shebang Lines" -msgstr "" +msgstr "Linhas Shebang" -#: ../../using/windows.rst:738 +#: ../../using/windows.rst:782 msgid "" "If the first line of a script file starts with ``#!``, it is known as a " "\"shebang\" line. Linux and other Unix like operating systems have native " @@ -1215,60 +1641,83 @@ msgid "" "facilities to be used with Python scripts on Windows and the examples above " "demonstrate their use." msgstr "" +"Se a primeira linha de um arquivo de script começa com ``#!``, ela é " +"conhecida como linha \"shebang\". Linux e outros tipos de sistemas " +"operacionais Unix têm suporte nativo para essas linhas e elas são comumente " +"usadas nesses sistemas para indicar como um script deve ser executado. Esse " +"inicializador permite que as mesmas facilidades sejam usadas com scripts " +"Python no Windows e os exemplos acima demonstram seu uso." -#: ../../using/windows.rst:745 +#: ../../using/windows.rst:789 msgid "" "To allow shebang lines in Python scripts to be portable between Unix and " "Windows, this launcher supports a number of 'virtual' commands to specify " "which interpreter to use. The supported virtual commands are:" msgstr "" +"Para permitir que linhas shebang em scripts Python sejam portáveis entre " +"Unix e Windows, este inicializador suporta um número de comandos 'virtuais' " +"para especificar qual interpretador deve ser usado. Os comandos virtuais " +"suportados são:" -#: ../../using/windows.rst:749 +#: ../../using/windows.rst:793 msgid "``/usr/bin/env python``" msgstr "``/usr/bin/env python``" -#: ../../using/windows.rst:750 +#: ../../using/windows.rst:794 msgid "``/usr/bin/python``" msgstr "``/usr/bin/python``" -#: ../../using/windows.rst:751 +#: ../../using/windows.rst:795 msgid "``/usr/local/bin/python``" msgstr "``/usr/local/bin/python``" -#: ../../using/windows.rst:752 +#: ../../using/windows.rst:796 msgid "``python``" msgstr "``python``" -#: ../../using/windows.rst:754 +#: ../../using/windows.rst:798 msgid "For example, if the first line of your script starts with" -msgstr "" +msgstr "Por exemplo, se a primeira linha do seu script começa com" -#: ../../using/windows.rst:760 +#: ../../using/windows.rst:804 msgid "" -"The default Python will be located and used. As many Python scripts written" -" to work on Unix will already have this line, you should find these scripts " +"The default Python will be located and used. As many Python scripts written " +"to work on Unix will already have this line, you should find these scripts " "can be used by the launcher without modification. If you are writing a new " "script on Windows which you hope will be useful on Unix, you should use one " "of the shebang lines starting with ``/usr``." msgstr "" +"O Python padrão será localizado e utilizado. Como muitos scripts Python " +"escritos para funcionar no Unix já terão essa linha, você deve perceber que " +"esses scripts podem ser usados pelo inicializador sem modificação. Se você " +"está escrevendo um novo script no Windows que você espera que seja útil no " +"Unix, você deve usar uma dessas linhas shebang começando com ``/usr``." -#: ../../using/windows.rst:766 +#: ../../using/windows.rst:810 msgid "" "Any of the above virtual commands can be suffixed with an explicit version " -"(either just the major version, or the major and minor version). Furthermore" -" the 32-bit version can be requested by adding \"-32\" after the minor " +"(either just the major version, or the major and minor version). Furthermore " +"the 32-bit version can be requested by adding \"-32\" after the minor " "version. I.e. ``/usr/bin/python2.7-32`` will request usage of the 32-bit " "python 2.7." msgstr "" +"Qualquer um dos comandos virtuais acima pode ser sufixado com uma versão " +"explícita (ou apenas a maior versão, ou a maior e a menor versão). Além " +"disso, a versão de 32-bit pode ser solicitada adicionando \"-32\" após a " +"menor versão. Isto é, ``/usr/bin/python2.7-32`` irá solicitar o uso do " +"python 2.7 32-bit." -#: ../../using/windows.rst:774 +#: ../../using/windows.rst:818 msgid "" "Beginning with python launcher 3.7 it is possible to request 64-bit version " "by the \"-64\" suffix. Furthermore it is possible to specify a major and " "architecture without minor (i.e. ``/usr/bin/python3-64``)." msgstr "" +"A partir do inicializador do python 3.7 é possível solicitar a versão 64-bit " +"adicionando o sufixo \"-64\". Além disso é possível especificar uma versão " +"maior e arquitetura sem a menor (isto é, ``/usr/bin/python3-64``)." -#: ../../using/windows.rst:778 +#: ../../using/windows.rst:822 msgid "" "The ``/usr/bin/env`` form of shebang line has one further special property. " "Before looking for installed Python interpreters, this form will search the " @@ -1276,52 +1725,70 @@ msgid "" "behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` " "search." msgstr "" +"A forma de linha shebang ``/usr/bin/env`` tem uma propriedade especial " +"adicional. Antes de procurar pela versão dos interpretadores de Python " +"instalados, essa forma irá pesquisar no :envvar:`PATH` por um executável " +"Python. Isso corresponde ao comportamento do programa ``env`` do Unix, que " +"realiza a pesquisa no :envvar:`PATH`." -#: ../../using/windows.rst:784 +#: ../../using/windows.rst:828 msgid "Arguments in shebang lines" -msgstr "" +msgstr "Argumentos em linhas shebang" -#: ../../using/windows.rst:786 +#: ../../using/windows.rst:830 msgid "" "The shebang lines can also specify additional options to be passed to the " "Python interpreter. For example, if you have a shebang line:" msgstr "" +"As linhas shebang também podem especificar opções adicionais a serem " +"passadas ao interpretador Python. Por exemplo, se você tem uma linha shebang:" -#: ../../using/windows.rst:793 +#: ../../using/windows.rst:837 msgid "Then Python will be started with the ``-v`` option" -msgstr "" +msgstr "O Python será iniciado com a opção ``-v``" -#: ../../using/windows.rst:796 +#: ../../using/windows.rst:840 msgid "Customization" -msgstr "" +msgstr "Personalização" -#: ../../using/windows.rst:799 +#: ../../using/windows.rst:843 msgid "Customization via INI files" -msgstr "" +msgstr "Personalização via arquivos INI" -#: ../../using/windows.rst:801 +#: ../../using/windows.rst:845 msgid "" "Two .ini files will be searched by the launcher - ``py.ini`` in the current " "user's \"application data\" directory (i.e. the directory returned by " "calling the Windows function ``SHGetFolderPath`` with " "``CSIDL_LOCAL_APPDATA``) and ``py.ini`` in the same directory as the " -"launcher. The same .ini files are used for both the 'console' version of the" -" launcher (i.e. py.exe) and for the 'windows' version (i.e. pyw.exe)." +"launcher. The same .ini files are used for both the 'console' version of the " +"launcher (i.e. py.exe) and for the 'windows' version (i.e. pyw.exe)." msgstr "" +"Dois arquivos .ini serão pesquisados pelo inicializador - ``py.ini`` no " +"diretório \"application data\" do usuário atual (isto é, o diretório " +"retornado ao chamar a função do Windows ``SHGetFolderPath`` com " +"``CSIDL_LOCAL_APPDATA``) e ``py.ini`` no mesmo diretório que o " +"inicializador. Os mesmos arquivos .ini são usados para ambas a versão " +"'console' do inicializador (isto é, py.exe) e a versão 'windows' (isto é, " +"pyw.exe)." -#: ../../using/windows.rst:808 +#: ../../using/windows.rst:852 msgid "" "Customization specified in the \"application directory\" will have " "precedence over the one next to the executable, so a user, who may not have " -"write access to the .ini file next to the launcher, can override commands in" -" that global .ini file." +"write access to the .ini file next to the launcher, can override commands in " +"that global .ini file." msgstr "" +"Personalização especificada no \"diretório da aplicação\" terão precedência " +"sobre àquela especificada junto do executável, portanto um usuário, que pode " +"não ter acesso de escrita ao arquivo .ini junto do inicializador, pode " +"sobrescrever comandos naquele arquivo .ini global." -#: ../../using/windows.rst:813 +#: ../../using/windows.rst:857 msgid "Customizing default Python versions" -msgstr "" +msgstr "Personalizando versões padrão do Python" -#: ../../using/windows.rst:815 +#: ../../using/windows.rst:859 msgid "" "In some cases, a version qualifier can be included in a command to dictate " "which version of Python will be used by the command. A version qualifier " @@ -1331,277 +1798,406 @@ msgid "" "\"-32\" or \"-64\"." msgstr "" -#: ../../using/windows.rst:821 +#: ../../using/windows.rst:865 msgid "" "For example, a shebang line of ``#!python`` has no version qualifier, while " "``#!python3`` has a version qualifier which specifies only a major version." msgstr "" +"Por exemplo, uma linha shebang ``#!python`` não tem qualificador de versão, " +"enquanto ``#!python3`` tem um qualificador de versão que especifica apenas " +"uma versão maior." -#: ../../using/windows.rst:824 +#: ../../using/windows.rst:868 msgid "" -"If no version qualifiers are found in a command, the environment variable " -":envvar:`PY_PYTHON` can be set to specify the default version qualifier. If " -"it is not set, the default is \"3\". The variable can specify any value that" -" may be passed on the command line, such as \"3\", \"3.7\", \"3.7-32\" or " +"If no version qualifiers are found in a command, the environment variable :" +"envvar:`PY_PYTHON` can be set to specify the default version qualifier. If " +"it is not set, the default is \"3\". The variable can specify any value that " +"may be passed on the command line, such as \"3\", \"3.7\", \"3.7-32\" or " "\"3.7-64\". (Note that the \"-64\" option is only available with the " "launcher included with Python 3.7 or newer.)" msgstr "" +"Se nenhum qualificador de versão é encontrado em um comando, a variável de " +"ambiente :envvar:`PY_PYTHON` pode ser definida para especificar o " +"qualificador de versão padrão. Se ela não está definida, o padrão é \"3\". A " +"variável pode especificar qualquer valor que pode ser passado para a linha " +"de comando, como \"3\", \"3.7\", \"3.7-32\" ou \"3.7-64\". (Note que a opção " +"\"-64\" está disponível apenas com o inicializador incluso no Python 3.7 ou " +"mais recente.)" -#: ../../using/windows.rst:831 +#: ../../using/windows.rst:875 msgid "" "If no minor version qualifiers are found, the environment variable " "``PY_PYTHON{major}`` (where ``{major}`` is the current major version " -"qualifier as determined above) can be set to specify the full version. If no" -" such option is found, the launcher will enumerate the installed Python " -"versions and use the latest minor release found for the major version, which" -" is likely, although not guaranteed, to be the most recently installed " +"qualifier as determined above) can be set to specify the full version. If no " +"such option is found, the launcher will enumerate the installed Python " +"versions and use the latest minor release found for the major version, which " +"is likely, although not guaranteed, to be the most recently installed " "version in that family." msgstr "" +"Se nenhum qualificador de versão menor é encontrado, a variável de ambiente " +"``PY_PYTHON{major}`` (onde ``{major}`` é o qualificador da versão maior " +"atual, como determinado acima) pode ser definida para especificar a versão " +"completa. Se nenhuma opção é encontrada, o inicializador irá enumerar as " +"versões do Python instaladas e usar a última versão menor encontrada como " +"versão maior, o que é provavelmente, ainda que não garantido, a versão " +"instalada mais recentemente naquela família." -#: ../../using/windows.rst:839 +#: ../../using/windows.rst:883 msgid "" "On 64-bit Windows with both 32-bit and 64-bit implementations of the same " "(major.minor) Python version installed, the 64-bit version will always be " "preferred. This will be true for both 32-bit and 64-bit implementations of " "the launcher - a 32-bit launcher will prefer to execute a 64-bit Python " "installation of the specified version if available. This is so the behavior " -"of the launcher can be predicted knowing only what versions are installed on" -" the PC and without regard to the order in which they were installed (i.e., " +"of the launcher can be predicted knowing only what versions are installed on " +"the PC and without regard to the order in which they were installed (i.e., " "without knowing whether a 32 or 64-bit version of Python and corresponding " -"launcher was installed last). As noted above, an optional \"-32\" or \"-64\"" -" suffix can be used on a version specifier to change this behaviour." -msgstr "" - -#: ../../using/windows.rst:850 +"launcher was installed last). As noted above, an optional \"-32\" or \"-64\" " +"suffix can be used on a version specifier to change this behaviour." +msgstr "" +"Em um Windows 64-bit com ambas as implementações de 32-bit e 64-bit da mesma " +"(maior.menor) versão do Python instaladas, a versão 64-bit sempre será " +"preferida. Isso será verdadeiro para ambas as implementações de 32-bit e 64-" +"bit do inicializador - um inicializador 32-bit irá preferir executar uma " +"instalação 64-bit do Python da versão especificada, se disponível. Isso é " +"para que o comportamento do inicializador possa ser previsto sabendo apenas " +"quais versões estão instaladas no PC e sem considerar a ordem com que elas " +"foram instaladas (isto é, sem saber se a última a ser instalada foi a versão " +"32 ou 64-bit do Python e do instalador correspondente). Como observado " +"acima, um sufixo opcional \"-32\" ou \"-64\" pode ser usado como " +"especificador de versão para mudar esse comportamento." + +#: ../../using/windows.rst:894 msgid "Examples:" msgstr "Exemplos:" -#: ../../using/windows.rst:852 +#: ../../using/windows.rst:896 msgid "" -"If no relevant options are set, the commands ``python`` and ``python2`` will" -" use the latest Python 2.x version installed and the command ``python3`` " -"will use the latest Python 3.x installed." +"If no relevant options are set, the commands ``python`` and ``python2`` will " +"use the latest Python 2.x version installed and the command ``python3`` will " +"use the latest Python 3.x installed." msgstr "" +"Se nenhuma opção relevante for definida, os comandos ``python`` e " +"``python2`` irão usar a última versão instalada do Python 2.x e o comando " +"``python3`` irá usar o último Python 3.x instalado." -#: ../../using/windows.rst:856 +#: ../../using/windows.rst:900 msgid "" -"The commands ``python3.1`` and ``python2.7`` will not consult any options at" -" all as the versions are fully specified." +"The commands ``python3.1`` and ``python2.7`` will not consult any options at " +"all as the versions are fully specified." msgstr "" +"Os comandos ``python3.1`` e ``python2.7`` não irão consultar nenhuma opção " +"já que as versões estão completamente especificadas." -#: ../../using/windows.rst:859 +#: ../../using/windows.rst:903 msgid "" "If ``PY_PYTHON=3``, the commands ``python`` and ``python3`` will both use " "the latest installed Python 3 version." msgstr "" +"Se ``PY_PYTHON=3``, os comandos ``python`` e ``python3`` irão ambos usar a " +"última versão do Python 3 instalada." -#: ../../using/windows.rst:862 +#: ../../using/windows.rst:906 msgid "" "If ``PY_PYTHON=3.1-32``, the command ``python`` will use the 32-bit " "implementation of 3.1 whereas the command ``python3`` will use the latest " -"installed Python (PY_PYTHON was not considered at all as a major version was" -" specified.)" +"installed Python (PY_PYTHON was not considered at all as a major version was " +"specified.)" msgstr "" +"Se ``PY_PYTHON=3.1-32``, o comando ``python`` irá usar a implementação 32-" +"bit do 3.1 enquanto o comando ``python3`` irá usar o último Python instalado " +"(PY_PYTHON não foi considerado porque uma versão maior foi especificada)." -#: ../../using/windows.rst:867 +#: ../../using/windows.rst:911 msgid "" "If ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1``, the commands ``python`` and " "``python3`` will both use specifically 3.1" msgstr "" +"Se ``PY_PYTHON=3`` e ``PY_PYTHON3=3.1``, os comandos ``python`` e " +"``python3`` irão ambos usar especificamente 3.1." -#: ../../using/windows.rst:870 +#: ../../using/windows.rst:914 msgid "" -"In addition to environment variables, the same settings can be configured in" -" the .INI file used by the launcher. The section in the INI file is called " +"In addition to environment variables, the same settings can be configured in " +"the .INI file used by the launcher. The section in the INI file is called " "``[defaults]`` and the key name will be the same as the environment " -"variables without the leading ``PY_`` prefix (and note that the key names in" -" the INI file are case insensitive.) The contents of an environment " -"variable will override things specified in the INI file." -msgstr "" - -#: ../../using/windows.rst:877 +"variables without the leading ``PY_`` prefix (and note that the key names in " +"the INI file are case insensitive.) The contents of an environment variable " +"will override things specified in the INI file." +msgstr "" +"Em adição às variáveis de ambiente, as mesmas configurações podem ser feitas " +"no arquivo .INI usado pelo inicializador. A seção nos arquivos INI é chamada " +"``[defaults]`` e o nome da chave será o mesmo que as variáveis de ambiente " +"sem o prefixo ``PY_`` (e observe que os nomes das chaves no arquivo INI não " +"diferem maiúsculas e minúsculas). Os conteúdos de uma variável de ambiente " +"irão sobrescrever coisas especificadas em um arquivo INI." + +#: ../../using/windows.rst:921 msgid "For example:" msgstr "Por exemplo:" -#: ../../using/windows.rst:879 +#: ../../using/windows.rst:923 msgid "Setting ``PY_PYTHON=3.1`` is equivalent to the INI file containing:" -msgstr "" +msgstr "Configurar ``PY_PYTHON=3.1`` é o equivalente ao arquivo INI contendo:" -#: ../../using/windows.rst:886 +#: ../../using/windows.rst:930 msgid "" -"Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file" -" containing:" +"Setting ``PY_PYTHON=3`` and ``PY_PYTHON3=3.1`` is equivalent to the INI file " +"containing:" msgstr "" +"Configurar ``PY_PYTHON=3`` e ``PY_PYTHON3=3.1`` é o equivalente ao arquivo " +"INI contendo:" -#: ../../using/windows.rst:896 +#: ../../using/windows.rst:940 msgid "Diagnostics" -msgstr "" +msgstr "Diagnósticos" -#: ../../using/windows.rst:898 +#: ../../using/windows.rst:942 msgid "" "If an environment variable ``PYLAUNCH_DEBUG`` is set (to any value), the " "launcher will print diagnostic information to stderr (i.e. to the console). " "While this information manages to be simultaneously verbose *and* terse, it " "should allow you to see what versions of Python were located, why a " -"particular version was chosen and the exact command-line used to execute the" -" target Python." +"particular version was chosen and the exact command-line used to execute the " +"target Python." msgstr "" +"Se uma variável de ambiente ``PYLAUNCH_DEBUG`` é configurada (para qualquer " +"valor), o inicializador irá exibir a informação de diagnóstico do stderr " +"(isto é, no console). Enquanto essa informação consegue ser simultaneamente " +"verbosa *e* concisa, ela deve permitir que você veja quais versões do Python " +"foram localizadas, porquê uma versão particular foi escolhida e qual linha " +"de comando exatamente foi usada para executar o Python alvo." -#: ../../using/windows.rst:910 +#: ../../using/windows.rst:954 msgid "Finding modules" -msgstr "" +msgstr "Encontrando módulos" -#: ../../using/windows.rst:912 +#: ../../using/windows.rst:956 msgid "" -"Python usually stores its library (and thereby your site-packages folder) in" -" the installation directory. So, if you had installed Python to " -":file:`C:\\\\Python\\\\`, the default library would reside in " -":file:`C:\\\\Python\\\\Lib\\\\` and third-party modules should be stored in " -":file:`C:\\\\Python\\\\Lib\\\\site-packages\\\\`." +"Python usually stores its library (and thereby your site-packages folder) in " +"the installation directory. So, if you had installed Python to :file:`C:\\" +"\\Python\\\\`, the default library would reside in :file:`C:\\\\Python\\\\Lib" +"\\\\` and third-party modules should be stored in :file:`C:\\\\Python\\\\Lib" +"\\\\site-packages\\\\`." msgstr "" +"O Python geralmente armazena sua biblioteca (e assim sua pasta de site-" +"packages) no diretório de instalação. Então, se você instalou o Python em :" +"file:`C:\\\\Python\\\\`, a biblioteca padrão irá residir em :file:`C:\\" +"\\Python\\\\Lib\\\\` e módulos de terceiros serão armazenados em :file:`C:\\" +"\\Python\\\\Lib\\\\site-packages\\\\`." -#: ../../using/windows.rst:918 +#: ../../using/windows.rst:962 msgid "" "To completely override :data:`sys.path`, create a ``._pth`` file with the " -"same name as the DLL (``python37._pth``) or the executable (``python._pth``)" -" and specify one line for each path to add to :data:`sys.path`. The file " +"same name as the DLL (``python37._pth``) or the executable (``python._pth``) " +"and specify one line for each path to add to :data:`sys.path`. The file " "based on the DLL name overrides the one based on the executable, which " -"allows paths to be restricted for any program loading the runtime if " -"desired." +"allows paths to be restricted for any program loading the runtime if desired." msgstr "" +"Para completamente sobrescrever :data:`sys.path´, crie um arquivo ``._pth` " +"com o mesmo nome que a DLL (``python37._pth``) ou o executável (``python." +"_pth``) e especifique uma linha para cada caminho a adicionar ao :data:`sys." +"path`. O arquivo baseado no nome da DLL sobrescreve o arquivo baseado no " +"executável, o que permite que caminhos sejam restritos para qualquer " +"programa carregando o tempo de execução, se desejado." -#: ../../using/windows.rst:924 +#: ../../using/windows.rst:968 msgid "" "When the file exists, all registry and environment variables are ignored, " -"isolated mode is enabled, and :mod:`site` is not imported unless one line in" -" the file specifies ``import site``. Blank paths and lines starting with " +"isolated mode is enabled, and :mod:`site` is not imported unless one line in " +"the file specifies ``import site``. Blank paths and lines starting with " "``#`` are ignored. Each path may be absolute or relative to the location of " "the file. Import statements other than to ``site`` are not permitted, and " "arbitrary code cannot be specified." msgstr "" +"Quando o arquivo existe, todos os registros e variáveis de ambiente são " +"ignorados, o modo isolado é ativado, e :mod:`site` não é importado a menos " +"que uma linha do arquivo especifique ``import site``. Caminhos em branco e " +"linhas começando com ``#`` são ignorados. Cada caminho pode ser absoluto ou " +"relativo ao local do arquivo. Instruções de importação que não seja ao " +"``site`` não são permitidas, e código arbitrário não pode ser especificado." -#: ../../using/windows.rst:931 +#: ../../using/windows.rst:975 msgid "" "Note that ``.pth`` files (without leading underscore) will be processed " "normally by the :mod:`site` module when ``import site`` has been specified." msgstr "" +"Note que arquivos ``.pth`` (sem o sublinhado no início) serão processados " +"normalmente pelo módulo :mod:`site` quando ``import site`` tiver sido " +"especificado." -#: ../../using/windows.rst:934 +#: ../../using/windows.rst:978 msgid "" "When no ``._pth`` file is found, this is how :data:`sys.path` is populated " "on Windows:" msgstr "" +"Quando nenhum arquivo ``._pth`` é encontrado, assim é como :data:`sys.path` " +"é populado no Windows:" -#: ../../using/windows.rst:937 +#: ../../using/windows.rst:981 msgid "" "An empty entry is added at the start, which corresponds to the current " "directory." msgstr "" +"Uma entrada em branco é adicionada ao início, que corresponde ao diretório " +"atual." -#: ../../using/windows.rst:940 +#: ../../using/windows.rst:984 msgid "" -"If the environment variable :envvar:`PYTHONPATH` exists, as described in " -":ref:`using-on-envvars`, its entries are added next. Note that on Windows, " +"If the environment variable :envvar:`PYTHONPATH` exists, as described in :" +"ref:`using-on-envvars`, its entries are added next. Note that on Windows, " "paths in this variable must be separated by semicolons, to distinguish them " "from the colon used in drive identifiers (``C:\\`` etc.)." msgstr "" +"Se a variável de ambiente :envvar:`PYTHONPATH` existe, como descrito em :ref:" +"`using-on-envvars`, suas entradas são adicionadas em seguida. Note que no " +"Windows, caminhos nessa variável devem ser separados por ponto e vírgula, " +"para distinguir eles dos dois pontos usados nos identificadores de drivers " +"(``C:\\`` etc.)." -#: ../../using/windows.rst:945 +#: ../../using/windows.rst:989 msgid "" -"Additional \"application paths\" can be added in the registry as subkeys of " -":samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` " -"under both the ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. " -"Subkeys which have semicolon-delimited path strings as their default value " -"will cause each path to be added to :data:`sys.path`. (Note that all known " +"Additional \"application paths\" can be added in the registry as subkeys of :" +"samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\\\PythonPath` under " +"both the ``HKEY_CURRENT_USER`` and ``HKEY_LOCAL_MACHINE`` hives. Subkeys " +"which have semicolon-delimited path strings as their default value will " +"cause each path to be added to :data:`sys.path`. (Note that all known " "installers only use HKLM, so HKCU is typically empty.)" msgstr "" +"\"Caminhos da aplicação\" adicionais podem ser adicionados ao registro como " +"subchaves de :samp:`\\\\SOFTWARE\\\\Python\\\\PythonCore\\\\{version}\\" +"\\PythonPath` sob ambas ``HKEY_CURRENT_USER`` e ``HKEY_LOCAL_MACHINE``. " +"Subchaves que possuem string de caminhos delimitados por ponto e vírgula " +"como seu valor padrão farão com que cada caminho seja adicionado ao :data:" +"`sys.path`. (Note que todos os instaladores conhecidos usam apenas HKLM, " +"portanto HKCU está tipicamente vazio.)" -#: ../../using/windows.rst:952 +#: ../../using/windows.rst:996 msgid "" "If the environment variable :envvar:`PYTHONHOME` is set, it is assumed as " "\"Python Home\". Otherwise, the path of the main Python executable is used " -"to locate a \"landmark file\" (either ``Lib\\os.py`` or ``pythonXY.zip``) to" -" deduce the \"Python Home\". If a Python home is found, the relevant sub-" -"directories added to :data:`sys.path` (``Lib``, ``plat-win``, etc) are based" -" on that folder. Otherwise, the core Python path is constructed from the " +"to locate a \"landmark file\" (either ``Lib\\os.py`` or ``pythonXY.zip``) to " +"deduce the \"Python Home\". If a Python home is found, the relevant sub-" +"directories added to :data:`sys.path` (``Lib``, ``plat-win``, etc) are based " +"on that folder. Otherwise, the core Python path is constructed from the " "PythonPath stored in the registry." msgstr "" +"Se a variável de ambiente :envvar:`PYTHONHOME` está definida, ela é assumida " +"como \"Python Home\". Caso contrário, o caminho do principal executável do " +"Python é usado para localizar um \"arquivo de referência\" (ou ``Lib\\os." +"py`` ou ``pythonXY.zip``) para deduzir o \"Python Home\". Se um Python Home " +"é encontrado, os subdiretórios relevantes adicionados ao :data:`sys.path` " +"(``Lib``, ``plat-win``, etc) são baseados naquela pasta. Se não, o caminho " +"núcleo do Python é construído a partir do PythonPath armazenado no registro." -#: ../../using/windows.rst:960 +#: ../../using/windows.rst:1004 msgid "" "If the Python Home cannot be located, no :envvar:`PYTHONPATH` is specified " "in the environment, and no registry entries can be found, a default path " "with relative entries is used (e.g. ``.\\Lib;.\\plat-win``, etc)." msgstr "" +"Se o Python Home não puder ser localizado, nenhum :envvar:`PYTHONPATH` está " +"especificado no ambiente, e nenhuma entrada de registro pôde ser encontrada, " +"um caminho padrão com entradas relativas é usado (por exemplo, ``.\\Lib;." +"\\plat-win``, etc)." -#: ../../using/windows.rst:964 +#: ../../using/windows.rst:1008 msgid "" "If a ``pyvenv.cfg`` file is found alongside the main executable or in the " "directory one level above the executable, the following variations apply:" msgstr "" +"Se um arquivo ``pyvenv.cfg`` for encontrado juntamente com o principal " +"executável ou no diretório um nível acima do executável, as seguintes " +"variações se aplicam:" -#: ../../using/windows.rst:967 +#: ../../using/windows.rst:1011 msgid "" "If ``home`` is an absolute path and :envvar:`PYTHONHOME` is not set, this " "path is used instead of the path to the main executable when deducing the " "home location." msgstr "" +"Se ``home`` é um caminho absoluto e :envvar:`PYTHONHOME` não está definido, " +"o caminho é usado ao invés do caminho ao principal executável quando " +"deduzindo a localização do Home." -#: ../../using/windows.rst:971 +#: ../../using/windows.rst:1015 msgid "The end result of all this is:" -msgstr "" +msgstr "O resultado final de tudo isso é:" -#: ../../using/windows.rst:973 +#: ../../using/windows.rst:1017 msgid "" "When running :file:`python.exe`, or any other .exe in the main Python " "directory (either an installed version, or directly from the PCbuild " -"directory), the core path is deduced, and the core paths in the registry are" -" ignored. Other \"application paths\" in the registry are always read." +"directory), the core path is deduced, and the core paths in the registry are " +"ignored. Other \"application paths\" in the registry are always read." msgstr "" +"Quando executando :file:`python.exe`, ou qualquer outro .exe no diretório " +"principal do Python (ou uma versão instalada, ou diretamente do diretório " +"PCbuild), o caminho núcleo é deduzido, e os caminhos núcleo no registro são " +"ignorados. Outros \"caminhos da aplicação\" no registro são sempre lidos." -#: ../../using/windows.rst:978 +#: ../../using/windows.rst:1022 msgid "" "When Python is hosted in another .exe (different directory, embedded via " "COM, etc), the \"Python Home\" will not be deduced, so the core path from " "the registry is used. Other \"application paths\" in the registry are " "always read." msgstr "" +"Quando Python é hospedado em outro .exe (diretório diferente, embutido via " +"COM, etc), o \"Python Home\" não será deduzido, então o caminho núcleo do " +"registro é usado. Outros \"caminhos da aplicação\" no registro sempre são " +"lidos." -#: ../../using/windows.rst:982 +#: ../../using/windows.rst:1026 msgid "" "If Python can't find its home and there are no registry value (frozen .exe, " "some very strange installation setup) you get a path with some default, but " "relative, paths." msgstr "" +"Se o Python não puder encontrar seu Home e não existem valores no registro (." +"exe imutáveis, algumas configurações de instalação bem estranhas) você " +"recebe um caminho com alguns caminhos padrão, porém relativos." -#: ../../using/windows.rst:986 +#: ../../using/windows.rst:1030 msgid "" "For those who want to bundle Python into their application or distribution, " "the following advice will prevent conflicts with other installations:" msgstr "" +"Para aqueles que querem empacotar o Python em suas aplicações ou " +"distribuições, o seguinte conselho irá prevenir conflitos com outras " +"instalações:" -#: ../../using/windows.rst:989 +#: ../../using/windows.rst:1033 msgid "" "Include a ``._pth`` file alongside your executable containing the " "directories to include. This will ignore paths listed in the registry and " -"environment variables, and also ignore :mod:`site` unless ``import site`` is" -" listed." +"environment variables, and also ignore :mod:`site` unless ``import site`` is " +"listed." msgstr "" +"Inclua um arquivo ``._pth`` juntamente do executável contendo os diretórios " +"a serem incluídos. Isso irá ignorar caminhos listados no registro e " +"variáveis de ambiente, e também ignorar :mod:`sites` a não ser que ``import " +"site`` seja listado." -#: ../../using/windows.rst:994 +#: ../../using/windows.rst:1038 msgid "" "If you are loading :file:`python3.dll` or :file:`python37.dll` in your own " -"executable, explicitly call :c:func:`Py_SetPath` or (at least) " -":c:func:`Py_SetProgramName` before :c:func:`Py_Initialize`." +"executable, explicitly call :c:func:`Py_SetPath` or (at least) :c:func:" +"`Py_SetProgramName` before :c:func:`Py_Initialize`." msgstr "" +"Se você está carregando o :file:`python3.dll` ou :file:`python37.dll` no seu " +"próprio executável, explicitamente chame :c:func:`Py_SetPath` ou (pelo " +"menos) :c:func:`Py_SetProgramName` antes de :c:func:`Py_Initialize`." -#: ../../using/windows.rst:998 +#: ../../using/windows.rst:1042 msgid "" "Clear and/or overwrite :envvar:`PYTHONPATH` and set :envvar:`PYTHONHOME` " "before launching :file:`python.exe` from your application." msgstr "" +"Limpe e/ou sobrescreva :envvar:`PYTHONPATH` e defina :envvar:`PYTHONHOME` " +"antes de iniciar o :file:`python.exe` a partir da sua aplicação." -#: ../../using/windows.rst:1001 +#: ../../using/windows.rst:1045 msgid "" "If you cannot use the previous suggestions (for example, you are a " "distribution that allows people to run :file:`python.exe` directly), ensure " @@ -1609,217 +2205,287 @@ msgid "" "directory. (Note that it will not be detected inside a ZIP file, but a " "correctly named ZIP file will be detected instead.)" msgstr "" +"Se você não puder usar as sugestões anteriores (por exemplo, você é uma " +"distribuição que permite que as pessoas executem o arquivo :file:`python." +"exe` diretamente), certifique-se de que o arquivo de referência (:file:`Lib\\" +"\\os.py`) existe no seu diretório de instalação. (Note que ele não será " +"detectado dentro de um arquivo ZIP, mas um arquivo ZIP corretamente nomeado " +"será detectado ao invés disso.)" -#: ../../using/windows.rst:1007 +#: ../../using/windows.rst:1051 msgid "" -"These will ensure that the files in a system-wide installation will not take" -" precedence over the copy of the standard library bundled with your " +"These will ensure that the files in a system-wide installation will not take " +"precedence over the copy of the standard library bundled with your " "application. Otherwise, your users may experience problems using your " "application. Note that the first suggestion is the best, as the others may " "still be susceptible to non-standard paths in the registry and user site-" "packages." msgstr "" +"Isso irá garantir que seus arquivos em uma instalação global no sistema não " +"terão precedência sobre uma cópia da biblioteca padrão empacotada com a sua " +"aplicação. Caso contrário, seus usuários podem experienciar problemas usando " +"sua aplicação. Note que a primeira sugestão é a melhor, pois as outras podem " +"ainda estar suscetíveis a caminhos não-padrão no registro e no site-packages " +"do usuário." -#: ../../using/windows.rst:1016 +#: ../../using/windows.rst:1060 msgid "" -"Adds ``._pth`` file support and removes ``applocal`` option from " -"``pyvenv.cfg``." +"Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv." +"cfg``." msgstr "" +"Adiciona suporte a arquivos ``._pth`` e remove a opção ``applocal`` do " +"``pyvenv.cfg``." -#: ../../using/windows.rst:1018 +#: ../../using/windows.rst:1062 msgid "" "Adds ``pythonXX.zip`` as a potential landmark when directly adjacent to the " "executable." msgstr "" +"Adiciona ``pythonXX.zip`` como uma possível referência quando diretamente " +"adjacente ao executável." -#: ../../using/windows.rst:1024 +#: ../../using/windows.rst:1068 msgid "" -"Modules specified in the registry under ``Modules`` (not ``PythonPath``) may" -" be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " +"Modules specified in the registry under ``Modules`` (not ``PythonPath``) may " +"be imported by :class:`importlib.machinery.WindowsRegistryFinder`. This " "finder is enabled on Windows in 3.6.0 and earlier, but may need to be " "explicitly added to :attr:`sys.meta_path` in the future." msgstr "" +"Módulos especificados no registro sob ``Modules`` (não ``PythonPath``) podem " +"ser importados por :class:`importlib.machinery.WindowsRegistryFinder`. Este " +"localizador está ativo no Windows no 3.6.0 e anteriores, mas pode precisar " +"ser explicitamente adicionado ao :attr:`sys.meta_path` no futuro." -#: ../../using/windows.rst:1030 +#: ../../using/windows.rst:1074 msgid "Additional modules" -msgstr "" +msgstr "Módulos adicionais" -#: ../../using/windows.rst:1032 +#: ../../using/windows.rst:1076 msgid "" "Even though Python aims to be portable among all platforms, there are " "features that are unique to Windows. A couple of modules, both in the " "standard library and external, and snippets exist to use these features." msgstr "" +"Mesmo que o Python tenha como objetivo ser portável através de todas as " +"plataformas, existem recursos que são únicos para o Windows. Alguns módulos, " +"em ambas as bibliotecas padrão e externa, e trechos de código existem para " +"usar esses recursos." -#: ../../using/windows.rst:1036 +#: ../../using/windows.rst:1080 msgid "" -"The Windows-specific standard modules are documented in :ref:`mswin-" -"specific-services`." +"The Windows-specific standard modules are documented in :ref:`mswin-specific-" +"services`." msgstr "" +"Os módulos padrão específicos para Windows estão documentados em :ref:`mswin-" +"specific-services`." -#: ../../using/windows.rst:1040 +#: ../../using/windows.rst:1084 msgid "PyWin32" -msgstr "" +msgstr "PyWin32" -#: ../../using/windows.rst:1042 +#: ../../using/windows.rst:1086 msgid "" "The `PyWin32 `_ module by Mark Hammond is " "a collection of modules for advanced Windows-specific support. This " "includes utilities for:" msgstr "" +"O módulo `PyWin32 `_ de Mark Hammond é uma " +"coleção de módulos para suporte avançado específico para Windows. Isso " +"inclui utilitários para:" -#: ../../using/windows.rst:1046 +#: ../../using/windows.rst:1090 msgid "" -"`Component Object Model `_ (COM)" +"`Component Object Model `_ (COM)" msgstr "" +"`Component Object Model `_ (COM)" -#: ../../using/windows.rst:1049 +#: ../../using/windows.rst:1093 msgid "Win32 API calls" msgstr "Chamadas à API Win32" -#: ../../using/windows.rst:1050 +#: ../../using/windows.rst:1094 msgid "Registry" msgstr "Registro" -#: ../../using/windows.rst:1051 +#: ../../using/windows.rst:1095 msgid "Event log" msgstr "Log de Eventos" -#: ../../using/windows.rst:1052 +#: ../../using/windows.rst:1096 msgid "" -"`Microsoft Foundation Classes `_ (MFC) user interfaces" +"`Microsoft Foundation Classes `_ (MFC) user interfaces" msgstr "" -"`Microsoft Foundation Classes `_ (MFC) interface de usuário" +"`Microsoft Foundation Classes `_ (MFC) interface de usuário" -#: ../../using/windows.rst:1055 +#: ../../using/windows.rst:1099 msgid "" -"`PythonWin `_ is a sample MFC application " -"shipped with PyWin32. It is an embeddable IDE with a built-in debugger." +"`PythonWin `_ is a sample MFC application shipped with PyWin32. " +"It is an embeddable IDE with a built-in debugger." msgstr "" +"`PythonWin `_ é uma aplicação MFC de exemplo enviada com o " +"PyWin32. É uma IDE embutível com um depurador embutido." -#: ../../using/windows.rst:1062 +#: ../../using/windows.rst:1106 msgid "" "`Win32 How Do I...? `_" msgstr "" "`Win32 How Do I...? `_" -#: ../../using/windows.rst:1062 +#: ../../using/windows.rst:1106 msgid "by Tim Golden" msgstr "por Tim Golden" -#: ../../using/windows.rst:1064 +#: ../../using/windows.rst:1108 msgid "`Python and COM `_" msgstr "`Python and COM `_" -#: ../../using/windows.rst:1065 +#: ../../using/windows.rst:1109 msgid "by David and Paul Boddie" msgstr "by David and Paul Boddie" -#: ../../using/windows.rst:1069 +#: ../../using/windows.rst:1113 msgid "cx_Freeze" msgstr "cx_Freeze" -#: ../../using/windows.rst:1071 +#: ../../using/windows.rst:1115 msgid "" -"`cx_Freeze `_ is a " -":mod:`distutils` extension (see :ref:`extending-distutils`) which wraps " -"Python scripts into executable Windows programs (:file:`{*}.exe` files). " -"When you have done this, you can distribute your application without " -"requiring your users to install Python." +"`cx_Freeze `_ is a :mod:" +"`distutils` extension (see :ref:`extending-distutils`) which wraps Python " +"scripts into executable Windows programs (:file:`{*}.exe` files). When you " +"have done this, you can distribute your application without requiring your " +"users to install Python." msgstr "" +"`cx_Freeze `_ é uma extensão :" +"mod:`distutils` (veja :ref:`extending-distutils`) que encapsula scripts " +"Python em programas executáveis do Windows (arquivos :file:`{*}.exe`). " +"Quando você tiver feito isso, você pode distribuir sua aplicação sem " +"solicitar que os seus usuários instalem o Python." -#: ../../using/windows.rst:1079 +#: ../../using/windows.rst:1123 msgid "WConio" msgstr "WConio" -#: ../../using/windows.rst:1081 +#: ../../using/windows.rst:1125 msgid "" "Since Python's advanced terminal handling layer, :mod:`curses`, is " "restricted to Unix-like systems, there is a library exclusive to Windows as " "well: Windows Console I/O for Python." msgstr "" +"Dado que a camada de manipulação de terminal avançada do Python, :mod:" +"`curses`, é restrita a sistemas tipo Unix, existe uma biblioteca exclusiva " +"para o Windows: Windows Console I/O para Python." -#: ../../using/windows.rst:1085 +#: ../../using/windows.rst:1129 msgid "" -"`WConio `_ is a wrapper" -" for Turbo-C's :file:`CONIO.H`, used to create text user interfaces." +"`WConio `_ is a wrapper " +"for Turbo-C's :file:`CONIO.H`, used to create text user interfaces." msgstr "" +"`WConio `_ é um " +"encapsulador para o :file:`CONIO.H` do Turbo-C usado para criar texto sob " +"interfaces de usuário." -#: ../../using/windows.rst:1091 +#: ../../using/windows.rst:1135 msgid "Compiling Python on Windows" -msgstr "" +msgstr "Compilando Python no Windows" -#: ../../using/windows.rst:1093 +#: ../../using/windows.rst:1137 msgid "" "If you want to compile CPython yourself, first thing you should do is get " "the `source `_. You can download " -"either the latest release's source or just grab a fresh `checkout " -"`_." +"either the latest release's source or just grab a fresh `checkout `_." msgstr "" +"Se você quer compilar o CPython por conta própria, a primeira coisa que você " +"precisa ter é a `fonte `_. Você " +"pode fazer o download tanto da fonte da última versão quanto pegar um novo " +"`checkout `_." -#: ../../using/windows.rst:1098 +#: ../../using/windows.rst:1142 msgid "" "The source tree contains a build solution and project files for Microsoft " "Visual Studio 2015, which is the compiler used to build the official Python " "releases. These files are in the :file:`PCbuild` directory." msgstr "" +"A árvore de fontes contém uma solução de construção e arquivos de projeto " +"para o Microsoft Visual Studio 2015, que é o compilador usado para construir " +"as versões do Python oficiais. Esses arquivos estão no diretório :file:" +"`PCbuild`." -#: ../../using/windows.rst:1102 +#: ../../using/windows.rst:1146 msgid "" "Check :file:`PCbuild/readme.txt` for general information on the build " "process." msgstr "" +"Configra o :file:`PCbuild/readme.txt` para informações gerais sobre o " +"processo de construção." -#: ../../using/windows.rst:1105 +#: ../../using/windows.rst:1149 msgid "For extension modules, consult :ref:`building-on-windows`." -msgstr "" +msgstr "Para módulos de extensão, consulte :ref:`building-on-windows`." -#: ../../using/windows.rst:1112 +#: ../../using/windows.rst:1156 msgid "" -"`Python + Windows + distutils + SWIG + gcc MinGW " -"`_" +"`Python + Windows + distutils + SWIG + gcc MinGW `_" msgstr "" +"`Python + Windows + distutils + SWIG + gcc MinGW `_" -#: ../../using/windows.rst:1110 +#: ../../using/windows.rst:1154 msgid "" "or \"Creating Python extensions in C/C++ with SWIG and compiling them with " "MinGW gcc under Windows\" or \"Installing Python extension with distutils " "and without Microsoft Visual C++\" by Sébastien Sauvage, 2003" msgstr "" +"ou \"Creating Python extensions in C/C++ with SWIG and compiling them with " +"MinGW gcc under Windows\" ou \"Installing Python extension with distutils " +"and without Microsoft Visual C++\" por Sébastien Sauvage, 2003" -#: ../../using/windows.rst:1114 +#: ../../using/windows.rst:1158 msgid "`MingW -- Python extensions `_" -msgstr "" +msgstr "`MingW -- extensões Python`_" -#: ../../using/windows.rst:1118 +#: ../../using/windows.rst:1162 msgid "Other Platforms" msgstr "Outras plataformas" -#: ../../using/windows.rst:1120 +#: ../../using/windows.rst:1164 msgid "" -"With ongoing development of Python, some platforms that used to be supported" -" earlier are no longer supported (due to the lack of users or developers). " +"With ongoing development of Python, some platforms that used to be supported " +"earlier are no longer supported (due to the lack of users or developers). " "Check :pep:`11` for details on all unsupported platforms." msgstr "" +"Com o desenvolvimento do Python em andamento, algumas plataformas que " +"costumavam ser suportadas anteriormente não são mais suportadas (devido à " +"falta de usuário ou desenvolvedores). Confira a :pep:`11` para detalhes de " +"todas as plataformas não suportadas." -#: ../../using/windows.rst:1124 +#: ../../using/windows.rst:1168 msgid "`Windows CE `_ is still supported." msgstr "`Windows CE `_ ainda é suportado." -#: ../../using/windows.rst:1125 +#: ../../using/windows.rst:1169 msgid "" "The `Cygwin `_ installer offers to install the Python " -"interpreter as well (cf. `Cygwin package source `_, " -"`Maintainer releases `_)" +"interpreter as well (cf. `Cygwin package source `_, `Maintainer " +"releases `_)" msgstr "" +"O instalador `Cygwin `_ também oferece instalação do " +"interpretador do Python (cf. `Cygwin package source `_, `Maintainer " +"releases `_)" -#: ../../using/windows.rst:1131 +#: ../../using/windows.rst:1175 msgid "" "See `Python for Windows `_ for " "detailed information about platforms with pre-compiled installers." msgstr "" +"Veja `Python for Windows `_ para " +"informação detalhada sobre as plataformas com instaladores pré-compilados." diff --git a/whatsnew/2.0.po b/whatsnew/2.0.po index 58f6c311d..33a42fa88 100644 --- a/whatsnew/2.0.po +++ b/whatsnew/2.0.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Victor Matheus Castro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Victor Matheus Castro , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,13 +44,13 @@ msgstr "Introdução" #: ../../whatsnew/2.0.rst:15 msgid "" -"A new release of Python, version 2.0, was released on October 16, 2000. This" -" article covers the exciting new features in 2.0, highlights some other " +"A new release of Python, version 2.0, was released on October 16, 2000. This " +"article covers the exciting new features in 2.0, highlights some other " "useful changes, and points out a few incompatible changes that may require " "rewriting code." msgstr "" -"Uma nova versão do Python, versão 2.0, foi lançada em 16 de outubro de 2000." -" Este artigo aborda os novos recursos interessantes da versão, destaca " +"Uma nova versão do Python, versão 2.0, foi lançada em 16 de outubro de 2000. " +"Este artigo aborda os novos recursos interessantes da versão, destaca " "algumas outras mudanças úteis e aponta algumas alterações incompatíveis que " "podem exigir a reescrita do código." @@ -61,8 +63,7 @@ msgid "" "certainly significant. Consult the publicly-available CVS logs if you want " "to see the full list. This progress is due to the five developers working " "for PythonLabs are now getting paid to spend their days fixing bugs, and " -"also due to the improved communication resulting from moving to " -"SourceForge." +"also due to the improved communication resulting from moving to SourceForge." msgstr "" #: ../../whatsnew/2.0.rst:33 @@ -72,13 +73,13 @@ msgstr "E quanto ao Python 1.6?" #: ../../whatsnew/2.0.rst:35 msgid "" "Python 1.6 can be thought of as the Contractual Obligations Python release. " -"After the core development team left CNRI in May 2000, CNRI requested that a" -" 1.6 release be created, containing all the work on Python that had been " +"After the core development team left CNRI in May 2000, CNRI requested that a " +"1.6 release be created, containing all the work on Python that had been " "performed at CNRI. Python 1.6 therefore represents the state of the CVS " "tree as of May 2000, with the most significant new feature being Unicode " "support. Development continued after May, of course, so the 1.6 tree " -"received a few fixes to ensure that it's forward-compatible with Python 2.0." -" 1.6 is therefore part of Python's evolution, and not a side branch." +"received a few fixes to ensure that it's forward-compatible with Python " +"2.0. 1.6 is therefore part of Python's evolution, and not a side branch." msgstr "" #: ../../whatsnew/2.0.rst:44 @@ -89,8 +90,8 @@ msgid "" "have applications to maintain, there seems little point in breaking things " "by moving to 1.6, fixing them, and then having another round of breakage " "within a month by moving to 2.0; you're better off just going straight to " -"2.0. Most of the really interesting features described in this document are" -" only in 2.0, because a lot of work was done between May and September." +"2.0. Most of the really interesting features described in this document are " +"only in 2.0, because a lot of work was done between May and September." msgstr "" #: ../../whatsnew/2.0.rst:57 @@ -102,10 +103,10 @@ msgid "" "The most important change in Python 2.0 may not be to the code at all, but " "to how Python is developed: in May 2000 the Python developers began using " "the tools made available by SourceForge for storing source code, tracking " -"bug reports, and managing the queue of patch submissions. To report bugs or" -" submit patches for Python 2.0, use the bug tracking and patch manager tools" -" available from Python's project page, located at " -"https://sourceforge.net/projects/python/." +"bug reports, and managing the queue of patch submissions. To report bugs or " +"submit patches for Python 2.0, use the bug tracking and patch manager tools " +"available from Python's project page, located at https://sourceforge.net/" +"projects/python/." msgstr "" #: ../../whatsnew/2.0.rst:66 @@ -115,8 +116,8 @@ msgid "" "Python. Previously, there were roughly 7 or so people who had write access " "to the CVS tree, and all patches had to be inspected and checked in by one " "of the people on this short list. Obviously, this wasn't very scalable. By " -"moving the CVS tree to SourceForge, it became possible to grant write access" -" to more people; as of September 2000 there were 27 people able to check in " +"moving the CVS tree to SourceForge, it became possible to grant write access " +"to more people; as of September 2000 there were 27 people able to check in " "changes, a fourfold increase. This makes possible large-scale changes that " "wouldn't be attempted if they'd have to be filtered through the small group " "of core developers. For example, one day Peter Schneider-Kamp took it into " @@ -134,8 +135,8 @@ msgid "" "increase in the speed of development. Patches now get submitted, commented " "on, revised by people other than the original submitter, and bounced back " "and forth between people until the patch is deemed worth checking in. Bugs " -"are tracked in one central location and can be assigned to a specific person" -" for fixing, and we can count the number of open bugs to measure progress. " +"are tracked in one central location and can be assigned to a specific person " +"for fixing, and we can count the number of open bugs to measure progress. " "This didn't come without a cost: developers now have more e-mail to deal " "with, more mailing lists to follow, and special tools had to be written for " "the new environment. For example, SourceForge sends default patch and bug " @@ -145,13 +146,13 @@ msgstr "" #: ../../whatsnew/2.0.rst:95 msgid "" -"The ease of adding code caused a few initial growing pains, such as code was" -" checked in before it was ready or without getting clear agreement from the " +"The ease of adding code caused a few initial growing pains, such as code was " +"checked in before it was ready or without getting clear agreement from the " "developer group. The approval process that has emerged is somewhat similar " -"to that used by the Apache group. Developers can vote +1, +0, -0, or -1 on a" -" patch; +1 and -1 denote acceptance or rejection, while +0 and -0 mean the " -"developer is mostly indifferent to the change, though with a slight positive" -" or negative slant. The most significant change from the Apache model is " +"to that used by the Apache group. Developers can vote +1, +0, -0, or -1 on a " +"patch; +1 and -1 denote acceptance or rejection, while +0 and -0 mean the " +"developer is mostly indifferent to the change, though with a slight positive " +"or negative slant. The most significant change from the Apache model is " "that the voting is essentially advisory, letting Guido van Rossum, who has " "Benevolent Dictator For Life status, know what the general opinion is. He " "can still ignore the result of a vote, and approve or reject a change even " @@ -166,9 +167,9 @@ msgid "" "threads, making the discussion hard to follow, and no one can read every " "posting to python-dev. Therefore, a relatively formal process has been set " "up to write Python Enhancement Proposals (PEPs), modelled on the Internet " -"RFC process. PEPs are draft documents that describe a proposed new feature," -" and are continually revised until the community reaches a consensus, either" -" accepting or rejecting the proposal. Quoting from the introduction to PEP " +"RFC process. PEPs are draft documents that describe a proposed new feature, " +"and are continually revised until the community reaches a consensus, either " +"accepting or rejecting the proposal. Quoting from the introduction to PEP " "1, \"PEP Purpose and Guidelines\":" msgstr "" @@ -176,8 +177,8 @@ msgstr "" msgid "" "PEP stands for Python Enhancement Proposal. A PEP is a design document " "providing information to the Python community, or describing a new feature " -"for Python. The PEP should provide a concise technical specification of the" -" feature and a rationale for the feature." +"for Python. The PEP should provide a concise technical specification of the " +"feature and a rationale for the feature." msgstr "" #: ../../whatsnew/2.0.rst:125 @@ -194,8 +195,8 @@ msgid "" "and format. PEPs are kept in the Python CVS tree on SourceForge, though " "they're not part of the Python 2.0 distribution, and are also available in " "HTML form from https://www.python.org/dev/peps/. As of September 2000, " -"there are 25 PEPS, ranging from PEP 201, \"Lockstep Iteration\", to PEP 225," -" \"Elementwise/Objectwise Operators\"." +"there are 25 PEPS, ranging from PEP 201, \"Lockstep Iteration\", to PEP 225, " +"\"Elementwise/Objectwise Operators\"." msgstr "" #: ../../whatsnew/2.0.rst:141 @@ -223,11 +224,10 @@ msgstr "" #: ../../whatsnew/2.0.rst:155 msgid "" "In Python source code, Unicode strings are written as ``u\"string\"``. " -"Arbitrary Unicode characters can be written using a new escape sequence, " -"``\\uHHHH``, where *HHHH* is a 4-digit hexadecimal number from 0000 to FFFF." -" The existing ``\\xHHHH`` escape sequence can also be used, and octal " -"escapes can be used for characters up to U+01FF, which is represented by " -"``\\777``." +"Arbitrary Unicode characters can be written using a new escape sequence, ``" +"\\uHHHH``, where *HHHH* is a 4-digit hexadecimal number from 0000 to FFFF. " +"The existing ``\\xHHHH`` escape sequence can also be used, and octal escapes " +"can be used for characters up to U+01FF, which is represented by ``\\777``." msgstr "" #: ../../whatsnew/2.0.rst:161 @@ -240,8 +240,8 @@ msgid "" "implementing and registering new encodings that are then available " "throughout a Python program. If an encoding isn't specified, the default " "encoding is usually 7-bit ASCII, though it can be changed for your Python " -"installation by calling the ``sys.setdefaultencoding(encoding)`` function in" -" a customized version of :file:`site.py`." +"installation by calling the ``sys.setdefaultencoding(encoding)`` function in " +"a customized version of :file:`site.py`." msgstr "" #: ../../whatsnew/2.0.rst:172 @@ -282,34 +282,33 @@ msgstr "" #: ../../whatsnew/2.0.rst:192 msgid "" "The ``exec`` statement, and various built-ins such as ``eval()``, " -"``getattr()``, and ``setattr()`` will also accept Unicode strings as well as" -" regular strings. (It's possible that the process of fixing this missed " -"some built-ins; if you find a built-in function that accepts strings but " -"doesn't accept Unicode strings at all, please report it as a bug.)" +"``getattr()``, and ``setattr()`` will also accept Unicode strings as well as " +"regular strings. (It's possible that the process of fixing this missed some " +"built-ins; if you find a built-in function that accepts strings but doesn't " +"accept Unicode strings at all, please report it as a bug.)" msgstr "" #: ../../whatsnew/2.0.rst:198 msgid "" -"A new module, :mod:`unicodedata`, provides an interface to Unicode character" -" properties. For example, ``unicodedata.category(u'A')`` returns the " -"2-character string 'Lu', the 'L' denoting it's a letter, and 'u' meaning " -"that it's uppercase. ``unicodedata.bidirectional(u'\\u0660')`` returns 'AN'," -" meaning that U+0660 is an Arabic number." +"A new module, :mod:`unicodedata`, provides an interface to Unicode character " +"properties. For example, ``unicodedata.category(u'A')`` returns the 2-" +"character string 'Lu', the 'L' denoting it's a letter, and 'u' meaning that " +"it's uppercase. ``unicodedata.bidirectional(u'\\u0660')`` returns 'AN', " +"meaning that U+0660 is an Arabic number." msgstr "" #: ../../whatsnew/2.0.rst:204 msgid "" "The :mod:`codecs` module contains functions to look up existing encodings " "and register new ones. Unless you want to implement a new encoding, you'll " -"most often use the ``codecs.lookup(encoding)`` function, which returns a " -"4-element tuple: ``(encode_func, decode_func, stream_reader, " -"stream_writer)``." +"most often use the ``codecs.lookup(encoding)`` function, which returns a 4-" +"element tuple: ``(encode_func, decode_func, stream_reader, stream_writer)``." msgstr "" #: ../../whatsnew/2.0.rst:209 msgid "" -"*encode_func* is a function that takes a Unicode string, and returns a " -"2-tuple ``(string, length)``. *string* is an 8-bit string containing a " +"*encode_func* is a function that takes a Unicode string, and returns a 2-" +"tuple ``(string, length)``. *string* is an 8-bit string containing a " "portion (perhaps all) of the Unicode string converted into the given " "encoding, and *length* tells you how much of the Unicode string was " "converted." @@ -319,23 +318,23 @@ msgstr "" msgid "" "*decode_func* is the opposite of *encode_func*, taking an 8-bit string and " "returning a 2-tuple ``(ustring, length)``, consisting of the resulting " -"Unicode string *ustring* and the integer *length* telling how much of the " -"8-bit string was consumed." +"Unicode string *ustring* and the integer *length* telling how much of the 8-" +"bit string was consumed." msgstr "" #: ../../whatsnew/2.0.rst:219 msgid "" "*stream_reader* is a class that supports decoding input from a stream. " -"*stream_reader(file_obj)* returns an object that supports the :meth:`read`, " -":meth:`readline`, and :meth:`readlines` methods. These methods will all " +"*stream_reader(file_obj)* returns an object that supports the :meth:`read`, :" +"meth:`readline`, and :meth:`readlines` methods. These methods will all " "translate from the given encoding and return Unicode strings." msgstr "" #: ../../whatsnew/2.0.rst:224 msgid "" "*stream_writer*, similarly, is a class that supports encoding output to a " -"stream. *stream_writer(file_obj)* returns an object that supports the " -":meth:`write` and :meth:`writelines` methods. These methods expect Unicode " +"stream. *stream_writer(file_obj)* returns an object that supports the :meth:" +"`write` and :meth:`writelines` methods. These methods expect Unicode " "strings, translating them to the given encoding on output." msgstr "" @@ -361,8 +360,8 @@ msgid "" "A ``-U`` command line option was added which causes the Python compiler to " "interpret all string literals as Unicode string literals. This is intended " "to be used in testing and future-proofing your Python code, since some " -"future version of Python may drop support for 8-bit strings and provide only" -" Unicode strings." +"future version of Python may drop support for 8-bit strings and provide only " +"Unicode strings." msgstr "" #: ../../whatsnew/2.0.rst:262 @@ -385,10 +384,10 @@ msgid "" "purpose, but they require a function as one of their arguments. This is " "fine if there's an existing built-in function that can be passed directly, " "but if there isn't, you have to create a little function to do the required " -"work, and Python's scoping rules make the result ugly if the little function" -" needs additional information. Take the first example in the previous " -"paragraph, finding all the strings in the list containing a given substring." -" You could write the following to do it::" +"work, and Python's scoping rules make the result ugly if the little function " +"needs additional information. Take the first example in the previous " +"paragraph, finding all the strings in the list containing a given " +"substring. You could write the following to do it::" msgstr "" #: ../../whatsnew/2.0.rst:286 @@ -408,9 +407,9 @@ msgid "" "iterated over. The sequences do not have to be the same length, because " "they are *not* iterated over in parallel, but from left to right; this is " "explained more clearly in the following paragraphs. The elements of the " -"generated list will be the successive values of *expression*. The final " -":keyword:`!if` clause is optional; if present, *expression* is only " -"evaluated and added to the result if *condition* is true." +"generated list will be the successive values of *expression*. The final :" +"keyword:`!if` clause is optional; if present, *expression* is only evaluated " +"and added to the result if *condition* is true." msgstr "" #: ../../whatsnew/2.0.rst:307 @@ -450,10 +449,10 @@ msgstr "" #: ../../whatsnew/2.0.rst:351 msgid "" "Augmented assignment operators, another long-requested feature, have been " -"added to Python 2.0. Augmented assignment operators include ``+=``, ``-=``," -" ``*=``, and so forth. For example, the statement ``a += 2`` increments the" -" value of the variable ``a`` by 2, equivalent to the slightly lengthier ``a" -" = a + 2``." +"added to Python 2.0. Augmented assignment operators include ``+=``, ``-=``, " +"``*=``, and so forth. For example, the statement ``a += 2`` increments the " +"value of the variable ``a`` by 2, equivalent to the slightly lengthier ``a " +"= a + 2``." msgstr "" #: ../../whatsnew/2.0.rst:356 @@ -488,13 +487,13 @@ msgstr "Métodos de String" #: ../../whatsnew/2.0.rst:392 msgid "" -"Until now string-manipulation functionality was in the :mod:`string` module," -" which was usually a front-end for the :mod:`strop` module written in C. " -"The addition of Unicode posed a difficulty for the :mod:`strop` module, " -"because the functions would all need to be rewritten in order to accept " -"either 8-bit or Unicode strings. For functions such as " -":func:`string.replace`, which takes 3 string arguments, that means eight " -"possible permutations, and correspondingly complicated code." +"Until now string-manipulation functionality was in the :mod:`string` module, " +"which was usually a front-end for the :mod:`strop` module written in C. The " +"addition of Unicode posed a difficulty for the :mod:`strop` module, because " +"the functions would all need to be rewritten in order to accept either 8-bit " +"or Unicode strings. For functions such as :func:`string.replace`, which " +"takes 3 string arguments, that means eight possible permutations, and " +"correspondingly complicated code." msgstr "" #: ../../whatsnew/2.0.rst:400 @@ -521,18 +520,18 @@ msgstr "" #: ../../whatsnew/2.0.rst:418 msgid "" "Two methods which have no parallel in pre-2.0 versions, although they did " -"exist in JPython for quite some time, are :meth:`startswith` and " -":meth:`endswith`. ``s.startswith(t)`` is equivalent to ``s[:len(t)] == t``, " -"while ``s.endswith(t)`` is equivalent to ``s[-len(t):] == t``." +"exist in JPython for quite some time, are :meth:`startswith` and :meth:" +"`endswith`. ``s.startswith(t)`` is equivalent to ``s[:len(t)] == t``, while " +"``s.endswith(t)`` is equivalent to ``s[-len(t):] == t``." msgstr "" #: ../../whatsnew/2.0.rst:423 msgid "" -"One other method which deserves special mention is :meth:`join`. The " -":meth:`join` method of a string receives one parameter, a sequence of " -"strings, and is equivalent to the :func:`string.join` function from the old " -":mod:`string` module, with the arguments reversed. In other words, " -"``s.join(seq)`` is equivalent to the old ``string.join(seq, s)``." +"One other method which deserves special mention is :meth:`join`. The :meth:" +"`join` method of a string receives one parameter, a sequence of strings, and " +"is equivalent to the :func:`string.join` function from the old :mod:`string` " +"module, with the arguments reversed. In other words, ``s.join(seq)`` is " +"equivalent to the old ``string.join(seq, s)``." msgstr "" #: ../../whatsnew/2.0.rst:433 @@ -551,12 +550,12 @@ msgstr "" #: ../../whatsnew/2.0.rst:442 msgid "" -"Reference counting has some pleasant properties: it's easy to understand and" -" implement, and the resulting implementation is portable, fairly fast, and " +"Reference counting has some pleasant properties: it's easy to understand and " +"implement, and the resulting implementation is portable, fairly fast, and " "reacts well with other libraries that implement their own memory handling " "schemes. The major problem with reference counting is that it sometimes " -"doesn't realise that objects are no longer accessible, resulting in a memory" -" leak. This happens when there are cycles of references." +"doesn't realise that objects are no longer accessible, resulting in a memory " +"leak. This happens when there are cycles of references." msgstr "" #: ../../whatsnew/2.0.rst:449 @@ -567,18 +566,18 @@ msgstr "" #: ../../whatsnew/2.0.rst:455 msgid "" -"After the above two lines of code have been executed, the reference count of" -" ``instance`` is 2; one reference is from the variable named ``'instance'``," -" and the other is from the ``myself`` attribute of the instance." +"After the above two lines of code have been executed, the reference count of " +"``instance`` is 2; one reference is from the variable named ``'instance'``, " +"and the other is from the ``myself`` attribute of the instance." msgstr "" #: ../../whatsnew/2.0.rst:459 msgid "" "If the next line of code is ``del instance``, what happens? The reference " "count of ``instance`` is decreased by 1, so it has a reference count of 1; " -"the reference in the ``myself`` attribute still exists. Yet the instance is" -" no longer accessible through Python code, and it could be deleted. Several" -" objects can participate in a cycle if they have references to each other, " +"the reference in the ``myself`` attribute still exists. Yet the instance is " +"no longer accessible through Python code, and it could be deleted. Several " +"objects can participate in a cycle if they have references to each other, " "causing all of the objects to be leaked." msgstr "" @@ -595,9 +594,9 @@ msgstr "" msgid "" "Running the cycle detection algorithm takes some time, and therefore will " "result in some additional overhead. It is hoped that after we've gotten " -"experience with the cycle collection from using 2.0, Python 2.1 will be able" -" to minimize the overhead with careful tuning. It's not yet obvious how " -"much performance is lost, because benchmarking this is tricky and depends " +"experience with the cycle collection from using 2.0, Python 2.1 will be able " +"to minimize the overhead with careful tuning. It's not yet obvious how much " +"performance is lost, because benchmarking this is tricky and depends " "crucially on how often the program creates and destroys objects. The " "detection of cycles can be disabled when Python is compiled, if you can't " "afford even a tiny speed penalty or suspect that the cycle collection is " @@ -607,13 +606,13 @@ msgstr "" #: ../../whatsnew/2.0.rst:482 msgid "" -"Several people tackled this problem and contributed to a solution. An early" -" implementation of the cycle detection approach was written by Toby Kelsey." -" The current algorithm was suggested by Eric Tiedemann during a visit to " +"Several people tackled this problem and contributed to a solution. An early " +"implementation of the cycle detection approach was written by Toby Kelsey. " +"The current algorithm was suggested by Eric Tiedemann during a visit to " "CNRI, and Guido van Rossum and Neil Schemenauer wrote two different " "implementations, which were later integrated by Neil. Lots of other people " -"offered suggestions along the way; the March 2000 archives of the python-dev" -" mailing list contain most of the relevant discussion, especially in the " +"offered suggestions along the way; the March 2000 archives of the python-dev " +"mailing list contain most of the relevant discussion, especially in the " "threads titled \"Reference cycle collection for Python\" and \"Finalization " "again\"." msgstr "" @@ -641,17 +640,17 @@ msgid "" "kw)`` calls the function :func:`f` with the argument tuple *args* and the " "keyword arguments in the dictionary *kw*. :func:`apply` is the same in " "2.0, but thanks to a patch from Greg Ewing, ``f(*args, **kw)`` is a shorter " -"and clearer way to achieve the same effect. This syntax is symmetrical with" -" the syntax for defining functions::" +"and clearer way to achieve the same effect. This syntax is symmetrical with " +"the syntax for defining functions::" msgstr "" #: ../../whatsnew/2.0.rst:518 msgid "" "The ``print`` statement can now have its output directed to a file-like " "object by following the ``print`` with ``>> file``, similar to the " -"redirection operator in Unix shells. Previously you'd either have to use the" -" :meth:`write` method of the file-like object, which lacks the convenience " -"and simplicity of ``print``, or you could assign a new value to " +"redirection operator in Unix shells. Previously you'd either have to use " +"the :meth:`write` method of the file-like object, which lacks the " +"convenience and simplicity of ``print``, or you could assign a new value to " "``sys.stdout`` and then restore the old value. For sending output to " "standard error, it's much easier to write this::" msgstr "" @@ -659,8 +658,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:528 msgid "" "Modules can now be renamed on importing them, using the syntax ``import " -"module as name`` or ``from module import name as othername``. The patch was" -" submitted by Thomas Wouters." +"module as name`` or ``from module import name as othername``. The patch was " +"submitted by Thomas Wouters." msgstr "" #: ../../whatsnew/2.0.rst:532 @@ -690,16 +689,16 @@ msgid "" "Earlier versions of Python used a recursive algorithm for deleting objects. " "Deeply nested data structures could cause the interpreter to fill up the C " "stack and crash; Christian Tismer rewrote the deletion logic to fix this " -"problem. On a related note, comparing recursive objects recursed infinitely" -" and crashed; Jeremy Hylton rewrote the code to no longer crash, producing a" -" useful result instead. For example, after this code::" +"problem. On a related note, comparing recursive objects recursed infinitely " +"and crashed; Jeremy Hylton rewrote the code to no longer crash, producing a " +"useful result instead. For example, after this code::" msgstr "" #: ../../whatsnew/2.0.rst:559 msgid "" "The comparison ``a==b`` returns true, because the two recursive data " -"structures are isomorphic. See the thread \"trashcan and PR#7\" in the April" -" 2000 archives of the python-dev mailing list for the discussion leading up " +"structures are isomorphic. See the thread \"trashcan and PR#7\" in the April " +"2000 archives of the python-dev mailing list for the discussion leading up " "to this implementation, and some useful relevant links. Note that " "comparisons can now also raise exceptions. In earlier versions of Python, a " "comparison operation such as ``cmp(a,b)`` would always produce an answer, " @@ -710,11 +709,11 @@ msgstr "" #: ../../whatsnew/2.0.rst:571 msgid "" "Work has been done on porting Python to 64-bit Windows on the Itanium " -"processor, mostly by Trent Mick of ActiveState. (Confusingly, " -"``sys.platform`` is still ``'win32'`` on Win64 because it seems that for " -"ease of porting, MS Visual C++ treats code as 32 bit on Itanium.) PythonWin " -"also supports Windows CE; see the Python CE page at " -"http://pythonce.sourceforge.net/ for more information." +"processor, mostly by Trent Mick of ActiveState. (Confusingly, ``sys." +"platform`` is still ``'win32'`` on Win64 because it seems that for ease of " +"porting, MS Visual C++ treats code as 32 bit on Itanium.) PythonWin also " +"supports Windows CE; see the Python CE page at http://pythonce.sourceforge." +"net/ for more information." msgstr "" #: ../../whatsnew/2.0.rst:577 @@ -731,10 +730,10 @@ msgid "" "confusing :exc:`NameError` exception when code refers to a local variable " "before the variable has been assigned a value. For example, the following " "code raises an exception on the ``print`` statement in both 1.5.2 and 2.0; " -"in 1.5.2 a :exc:`NameError` exception is raised, while 2.0 raises a new " -":exc:`UnboundLocalError` exception. :exc:`UnboundLocalError` is a subclass " -"of :exc:`NameError`, so any existing code that expects :exc:`NameError` to " -"be raised should still work. ::" +"in 1.5.2 a :exc:`NameError` exception is raised, while 2.0 raises a new :exc:" +"`UnboundLocalError` exception. :exc:`UnboundLocalError` is a subclass of :" +"exc:`NameError`, so any existing code that expects :exc:`NameError` to be " +"raised should still work. ::" msgstr "" #: ../../whatsnew/2.0.rst:595 @@ -762,8 +761,8 @@ msgstr "" msgid "" "The :func:`int` and :func:`long` functions now accept an optional \"base\" " "parameter when the first argument is a string. ``int('123', 10)`` returns " -"123, while ``int('123', 16)`` returns 291. ``int(123, 16)`` raises a " -":exc:`TypeError` exception with the message \"can't convert non-string with " +"123, while ``int('123', 16)`` returns 291. ``int(123, 16)`` raises a :exc:" +"`TypeError` exception with the message \"can't convert non-string with " "explicit base\"." msgstr "" @@ -771,18 +770,18 @@ msgstr "" msgid "" "A new variable holding more detailed version information has been added to " "the :mod:`sys` module. ``sys.version_info`` is a tuple ``(major, minor, " -"micro, level, serial)`` For example, in a hypothetical 2.0.1beta1, " -"``sys.version_info`` would be ``(2, 0, 1, 'beta', 1)``. *level* is a string " -"such as ``\"alpha\"``, ``\"beta\"``, or ``\"final\"`` for a final release." +"micro, level, serial)`` For example, in a hypothetical 2.0.1beta1, ``sys." +"version_info`` would be ``(2, 0, 1, 'beta', 1)``. *level* is a string such " +"as ``\"alpha\"``, ``\"beta\"``, or ``\"final\"`` for a final release." msgstr "" #: ../../whatsnew/2.0.rst:622 msgid "" "Dictionaries have an odd new method, ``setdefault(key, default)``, which " "behaves similarly to the existing :meth:`get` method. However, if the key " -"is missing, :meth:`setdefault` both returns the value of *default* as " -":meth:`get` would do, and also inserts it into the dictionary as the value " -"for *key*. Thus, the following lines of code::" +"is missing, :meth:`setdefault` both returns the value of *default* as :meth:" +"`get` would do, and also inserts it into the dictionary as the value for " +"*key*. Thus, the following lines of code::" msgstr "" #: ../../whatsnew/2.0.rst:633 @@ -795,10 +794,10 @@ msgid "" "The interpreter sets a maximum recursion depth in order to catch runaway " "recursion before filling the C stack and causing a core dump or GPF.. " "Previously this limit was fixed when you compiled Python, but in 2.0 the " -"maximum recursion depth can be read and modified using " -":func:`sys.getrecursionlimit` and :func:`sys.setrecursionlimit`. The default" -" value is 1000, and a rough maximum value for a given platform can be found " -"by running a new script, :file:`Misc/find_recursionlimit.py`." +"maximum recursion depth can be read and modified using :func:`sys." +"getrecursionlimit` and :func:`sys.setrecursionlimit`. The default value is " +"1000, and a rough maximum value for a given platform can be found by running " +"a new script, :file:`Misc/find_recursionlimit.py`." msgstr "" #: ../../whatsnew/2.0.rst:647 @@ -809,8 +808,8 @@ msgstr "" msgid "" "New Python releases try hard to be compatible with previous releases, and " "the record has been pretty good. However, some changes are considered " -"useful enough, usually because they fix initial design decisions that turned" -" out to be actively mistaken, that breaking backward compatibility can't " +"useful enough, usually because they fix initial design decisions that turned " +"out to be actively mistaken, that breaking backward compatibility can't " "always be avoided. This section lists the changes in Python 2.0 that may " "cause old Python code to break." msgstr "" @@ -823,8 +822,8 @@ msgid "" "as :meth:`append` and :meth:`insert`. In earlier versions of Python, if " "``L`` is a list, ``L.append( 1,2 )`` appends the tuple ``(1,2)`` to the " "list. In Python 2.0 this causes a :exc:`TypeError` exception to be raised, " -"with the message: 'append requires exactly 1 argument; 2 given'. The fix is" -" to simply add an extra set of parentheses to pass both values as a tuple: " +"with the message: 'append requires exactly 1 argument; 2 given'. The fix is " +"to simply add an extra set of parentheses to pass both values as a tuple: " "``L.append( (1,2) )``." msgstr "" @@ -836,40 +835,40 @@ msgid "" "parsing function, which provides more helpful error messages and treats " "multi-argument calls as errors. If you absolutely must use 2.0 but can't " "fix your code, you can edit :file:`Objects/listobject.c` and define the " -"preprocessor symbol ``NO_STRICT_LIST_APPEND`` to preserve the old behaviour;" -" this isn't recommended." +"preprocessor symbol ``NO_STRICT_LIST_APPEND`` to preserve the old behaviour; " +"this isn't recommended." msgstr "" #: ../../whatsnew/2.0.rst:673 msgid "" "Some of the functions in the :mod:`socket` module are still forgiving in " "this way. For example, :func:`socket.connect( ('hostname', 25) )` is the " -"correct form, passing a tuple representing an IP address, but " -":func:`socket.connect( 'hostname', 25 )` also works. " -":func:`socket.connect_ex` and :func:`socket.bind` are similarly easy-going." -" 2.0alpha1 tightened these functions up, but because the documentation " -"actually used the erroneous multiple argument form, many people wrote code " -"which would break with the stricter checking. GvR backed out the changes in" -" the face of public reaction, so for the :mod:`socket` module, the " -"documentation was fixed and the multiple argument form is simply marked as " -"deprecated; it *will* be tightened up again in a future Python version." +"correct form, passing a tuple representing an IP address, but :func:`socket." +"connect( 'hostname', 25 )` also works. :func:`socket.connect_ex` and :func:" +"`socket.bind` are similarly easy-going. 2.0alpha1 tightened these functions " +"up, but because the documentation actually used the erroneous multiple " +"argument form, many people wrote code which would break with the stricter " +"checking. GvR backed out the changes in the face of public reaction, so for " +"the :mod:`socket` module, the documentation was fixed and the multiple " +"argument form is simply marked as deprecated; it *will* be tightened up " +"again in a future Python version." msgstr "" #: ../../whatsnew/2.0.rst:684 msgid "" "The ``\\x`` escape in string literals now takes exactly 2 hex digits. " "Previously it would consume all the hex digits following the 'x' and take " -"the lowest 8 bits of the result, so ``\\x123456`` was equivalent to " -"``\\x56``." +"the lowest 8 bits of the result, so ``\\x123456`` was equivalent to ``" +"\\x56``." msgstr "" #: ../../whatsnew/2.0.rst:688 msgid "" "The :exc:`AttributeError` and :exc:`NameError` exceptions have a more " "friendly error message, whose text will be something like ``'Spam' instance " -"has no attribute 'eggs'`` or ``name 'eggs' is not defined``. Previously the" -" error message was just the missing attribute name ``eggs``, and code " -"written to take advantage of this fact will break in 2.0." +"has no attribute 'eggs'`` or ``name 'eggs' is not defined``. Previously the " +"error message was just the missing attribute name ``eggs``, and code written " +"to take advantage of this fact will break in 2.0." msgstr "" #: ../../whatsnew/2.0.rst:694 @@ -884,8 +883,8 @@ msgid "" "as you'd intuitively expect it to; ``3L * 'abc'`` produces 'abcabcabc', and " "``(0,1,2,3)[2L:4L]`` produces (2,3). Long integers can also be used in " "various contexts where previously only integers were accepted, such as in " -"the :meth:`seek` method of file objects, and in the formats supported by the" -" ``%`` operator (``%d``, ``%i``, ``%x``, etc.). For example, ``\"%d\" % " +"the :meth:`seek` method of file objects, and in the formats supported by the " +"``%`` operator (``%d``, ``%i``, ``%x``, etc.). For example, ``\"%d\" % " "2L**64`` will produce the string ``18446744073709551616``." msgstr "" @@ -895,28 +894,28 @@ msgid "" "integer no longer has a trailing 'L' character, though :func:`repr` still " "includes it. The 'L' annoyed many people who wanted to print long integers " "that looked just like regular integers, since they had to go out of their " -"way to chop off the character. This is no longer a problem in 2.0, but code" -" which does ``str(longval)[:-1]`` and assumes the 'L' is there, will now " -"lose the final digit." +"way to chop off the character. This is no longer a problem in 2.0, but code " +"which does ``str(longval)[:-1]`` and assumes the 'L' is there, will now lose " +"the final digit." msgstr "" #: ../../whatsnew/2.0.rst:716 msgid "" -"Taking the :func:`repr` of a float now uses a different formatting precision" -" than :func:`str`. :func:`repr` uses ``%.17g`` format string for C's " -":func:`sprintf`, while :func:`str` uses ``%.12g`` as before. The effect is " -"that :func:`repr` may occasionally show more decimal places than " -":func:`str`, for certain numbers. For example, the number 8.1 can't be " -"represented exactly in binary, so ``repr(8.1)`` is ``'8.0999999999999996'``," -" while str(8.1) is ``'8.1'``." +"Taking the :func:`repr` of a float now uses a different formatting precision " +"than :func:`str`. :func:`repr` uses ``%.17g`` format string for C's :func:" +"`sprintf`, while :func:`str` uses ``%.12g`` as before. The effect is that :" +"func:`repr` may occasionally show more decimal places than :func:`str`, for " +"certain numbers. For example, the number 8.1 can't be represented exactly " +"in binary, so ``repr(8.1)`` is ``'8.0999999999999996'``, while str(8.1) is " +"``'8.1'``." msgstr "" #: ../../whatsnew/2.0.rst:724 msgid "" "The ``-X`` command-line option, which turned all standard exceptions into " "strings instead of classes, has been removed; the standard exceptions will " -"now always be classes. The :mod:`exceptions` module containing the standard" -" exceptions was translated from Python to a built-in C module, written by " +"now always be classes. The :mod:`exceptions` module containing the standard " +"exceptions was translated from Python to a built-in C module, written by " "Barry Warsaw and Fredrik Lundh." msgstr "" @@ -937,25 +936,25 @@ msgid "" "The version number of the Python C API was incremented, so C extensions " "compiled for 1.5.2 must be recompiled in order to work with 2.0. On " "Windows, it's not possible for Python 2.0 to import a third party extension " -"built for Python 1.5.x due to how Windows DLLs work, so Python will raise an" -" exception and the import will fail." +"built for Python 1.5.x due to how Windows DLLs work, so Python will raise an " +"exception and the import will fail." msgstr "" #: ../../whatsnew/2.0.rst:753 msgid "" -"Users of Jim Fulton's ExtensionClass module will be pleased to find out that" -" hooks have been added so that ExtensionClasses are now supported by " -":func:`isinstance` and :func:`issubclass`. This means you no longer have to " -"remember to write code such as ``if type(obj) == myExtensionClass``, but can" -" use the more natural ``if isinstance(obj, myExtensionClass)``." +"Users of Jim Fulton's ExtensionClass module will be pleased to find out that " +"hooks have been added so that ExtensionClasses are now supported by :func:" +"`isinstance` and :func:`issubclass`. This means you no longer have to " +"remember to write code such as ``if type(obj) == myExtensionClass``, but can " +"use the more natural ``if isinstance(obj, myExtensionClass)``." msgstr "" #: ../../whatsnew/2.0.rst:759 msgid "" "The :file:`Python/importdl.c` file, which was a mass of #ifdefs to support " "dynamic loading on many different platforms, was cleaned up and reorganised " -"by Greg Stein. :file:`importdl.c` is now quite small, and platform-specific" -" code has been moved into a bunch of :file:`Python/dynload_\\*.c` files. " +"by Greg Stein. :file:`importdl.c` is now quite small, and platform-specific " +"code has been moved into a bunch of :file:`Python/dynload_\\*.c` files. " "Another cleanup: there were also a number of :file:`my\\*.h` files in the " "Include/ directory that held various portability hacks; they've been merged " "into a single file, :file:`Include/pyport.h`." @@ -965,8 +964,8 @@ msgstr "" msgid "" "Vladimir Marangozov's long-awaited malloc restructuring was completed, to " "make it easy to have the Python interpreter use a custom allocator instead " -"of C's standard :func:`malloc`. For documentation, read the comments in " -":file:`Include/pymem.h` and :file:`Include/objimpl.h`. For the lengthy " +"of C's standard :func:`malloc`. For documentation, read the comments in :" +"file:`Include/pymem.h` and :file:`Include/objimpl.h`. For the lengthy " "discussions during which the interface was hammered out, see the Web " "archives of the 'patches' and 'python-dev' lists at python.org." msgstr "" @@ -982,35 +981,35 @@ msgstr "" #: ../../whatsnew/2.0.rst:779 msgid "" "Threading support on Windows was enhanced, too. Windows supports thread " -"locks that use kernel objects only in case of contention; in the common case" -" when there's no contention, they use simpler functions which are an order " -"of magnitude faster. A threaded version of Python 1.5.2 on NT is twice as " -"slow as an unthreaded version; with the 2.0 changes, the difference is only " -"10%. These improvements were contributed by Yakov Markovitch." +"locks that use kernel objects only in case of contention; in the common case " +"when there's no contention, they use simpler functions which are an order of " +"magnitude faster. A threaded version of Python 1.5.2 on NT is twice as slow " +"as an unthreaded version; with the 2.0 changes, the difference is only 10%. " +"These improvements were contributed by Yakov Markovitch." msgstr "" #: ../../whatsnew/2.0.rst:786 msgid "" -"Python 2.0's source now uses only ANSI C prototypes, so compiling Python now" -" requires an ANSI C compiler, and can no longer be done using a compiler " -"that only supports K&R C." +"Python 2.0's source now uses only ANSI C prototypes, so compiling Python now " +"requires an ANSI C compiler, and can no longer be done using a compiler that " +"only supports K&R C." msgstr "" #: ../../whatsnew/2.0.rst:790 msgid "" "Previously the Python virtual machine used 16-bit numbers in its bytecode, " -"limiting the size of source files. In particular, this affected the maximum" -" size of literal lists and dictionaries in Python source; occasionally " -"people who are generating Python code would run into this limit. A patch by" -" Charles G. Waldman raises the limit from ``2^16`` to ``2^{32}``." +"limiting the size of source files. In particular, this affected the maximum " +"size of literal lists and dictionaries in Python source; occasionally people " +"who are generating Python code would run into this limit. A patch by " +"Charles G. Waldman raises the limit from ``2^16`` to ``2^{32}``." msgstr "" #: ../../whatsnew/2.0.rst:796 msgid "" "Three new convenience functions intended for adding constants to a module's " -"dictionary at module initialization time were added: " -":func:`PyModule_AddObject`, :func:`PyModule_AddIntConstant`, and " -":func:`PyModule_AddStringConstant`. Each of these functions takes a module " +"dictionary at module initialization time were added: :func:" +"`PyModule_AddObject`, :func:`PyModule_AddIntConstant`, and :func:" +"`PyModule_AddStringConstant`. Each of these functions takes a module " "object, a null-terminated C string containing the name to be added, and a " "third argument for the value to be assigned to the name. This third " "argument is, respectively, a Python object, a C long, or a C string." @@ -1030,18 +1029,18 @@ msgstr "" msgid "" "Before Python 2.0, installing modules was a tedious affair -- there was no " "way to figure out automatically where Python is installed, or what compiler " -"options to use for extension modules. Software authors had to go through an" -" arduous ritual of editing Makefiles and configuration files, which only " +"options to use for extension modules. Software authors had to go through an " +"arduous ritual of editing Makefiles and configuration files, which only " "really work on Unix and leave Windows and MacOS unsupported. Python users " "faced wildly differing installation instructions which varied between " -"different extension packages, which made administering a Python installation" -" something of a chore." +"different extension packages, which made administering a Python installation " +"something of a chore." msgstr "" #: ../../whatsnew/2.0.rst:821 msgid "" -"The SIG for distribution utilities, shepherded by Greg Ward, has created the" -" Distutils, a system to make package installation much easier. They form " +"The SIG for distribution utilities, shepherded by Greg Ward, has created the " +"Distutils, a system to make package installation much easier. They form " "the :mod:`distutils` package, a new part of Python's standard library. In " "the best case, installing a Python module from source will require the same " "steps: first you simply mean unpack the tarball or zip archive, and the run " @@ -1050,15 +1049,15 @@ msgid "" "compiled, and the distribution installed into the proper directory. " "Optional command-line arguments provide more control over the installation " "process, the distutils package offers many places to override defaults -- " -"separating the build from the install, building or installing in non-default" -" directories, and more." +"separating the build from the install, building or installing in non-default " +"directories, and more." msgstr "" #: ../../whatsnew/2.0.rst:833 msgid "" -"In order to use the Distutils, you need to write a :file:`setup.py` script." -" For the simple case, when the software contains only .py files, a minimal " -":file:`setup.py` can be just a few lines long::" +"In order to use the Distutils, you need to write a :file:`setup.py` script. " +"For the simple case, when the software contains only .py files, a minimal :" +"file:`setup.py` can be just a few lines long::" msgstr "" #: ../../whatsnew/2.0.rst:841 @@ -1069,8 +1068,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:848 msgid "" -"A C extension can be the most complicated case; here's an example taken from" -" the PyXML package::" +"A C extension can be the most complicated case; here's an example taken from " +"the PyXML package::" msgstr "" #: ../../whatsnew/2.0.rst:864 @@ -1104,10 +1103,10 @@ msgid "" "similarities to :mod:`xmllib`, and the DOM (Document Object Model) provides " "a tree-based interface, transforming an XML document into a tree of nodes " "that can be traversed and modified. Python 2.0 includes a SAX2 interface " -"and a stripped-down DOM interface as part of the :mod:`xml` package. Here we" -" will give a brief overview of these new interfaces; consult the Python " -"documentation or the source code for complete details. The Python XML SIG is" -" also working on improved documentation." +"and a stripped-down DOM interface as part of the :mod:`xml` package. Here we " +"will give a brief overview of these new interfaces; consult the Python " +"documentation or the source code for complete details. The Python XML SIG is " +"also working on improved documentation." msgstr "" #: ../../whatsnew/2.0.rst:896 @@ -1116,13 +1115,13 @@ msgstr "" #: ../../whatsnew/2.0.rst:898 msgid "" -"SAX defines an event-driven interface for parsing XML. To use SAX, you must" -" write a SAX handler class. Handler classes inherit from various classes " +"SAX defines an event-driven interface for parsing XML. To use SAX, you must " +"write a SAX handler class. Handler classes inherit from various classes " "provided by SAX, and override various methods that will then be called by " -"the XML parser. For example, the :meth:`startElement` and " -":meth:`endElement` methods are called for every starting and end tag " -"encountered by the parser, the :meth:`characters` method is called for every" -" chunk of character data, and so forth." +"the XML parser. For example, the :meth:`startElement` and :meth:" +"`endElement` methods are called for every starting and end tag encountered " +"by the parser, the :meth:`characters` method is called for every chunk of " +"character data, and so forth." msgstr "" #: ../../whatsnew/2.0.rst:906 @@ -1137,8 +1136,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:912 msgid "" "For example, this little example program defines a handler that prints a " -"message for every starting and ending tag, and then parses the file " -":file:`hamlet.xml` using it::" +"message for every starting and ending tag, and then parses the file :file:" +"`hamlet.xml` using it::" msgstr "" #: ../../whatsnew/2.0.rst:935 @@ -1156,8 +1155,8 @@ msgid "" "The Document Object Model is a tree-based representation for an XML " "document. A top-level :class:`Document` instance is the root of the tree, " "and has a single child which is the top-level :class:`Element` instance. " -"This :class:`Element` has children nodes representing character data and any" -" sub-elements, which may have further children of their own, and so forth. " +"This :class:`Element` has children nodes representing character data and any " +"sub-elements, which may have further children of their own, and so forth. " "Using the DOM you can traverse the resulting tree any way you like, access " "element and attribute values, insert and delete nodes, and convert the tree " "back into XML." @@ -1175,11 +1174,10 @@ msgstr "" #: ../../whatsnew/2.0.rst:956 msgid "" -"The DOM implementation included with Python lives in the " -":mod:`xml.dom.minidom` module. It's a lightweight implementation of the " -"Level 1 DOM with support for XML namespaces. The :func:`parse` and " -":func:`parseString` convenience functions are provided for generating a DOM " -"tree::" +"The DOM implementation included with Python lives in the :mod:`xml.dom." +"minidom` module. It's a lightweight implementation of the Level 1 DOM with " +"support for XML namespaces. The :func:`parse` and :func:`parseString` " +"convenience functions are provided for generating a DOM tree::" msgstr "" #: ../../whatsnew/2.0.rst:964 @@ -1187,10 +1185,10 @@ msgid "" "``doc`` is a :class:`Document` instance. :class:`Document`, like all the " "other DOM classes such as :class:`Element` and :class:`Text`, is a subclass " "of the :class:`Node` base class. All the nodes in a DOM tree therefore " -"support certain common methods, such as :meth:`toxml` which returns a string" -" containing the XML representation of the node and its children. Each class" -" also has special methods of its own; for example, :class:`Element` and " -":class:`Document` instances have a method to find all child elements with a " +"support certain common methods, such as :meth:`toxml` which returns a string " +"containing the XML representation of the node and its children. Each class " +"also has special methods of its own; for example, :class:`Element` and :" +"class:`Document` instances have a method to find all child elements with a " "given tag name. Continuing from the previous 2-line example::" msgstr "" @@ -1232,8 +1230,8 @@ msgid "" "Many applications can get by with the XML support that is included with " "Python 2.0, but more complicated applications will require that the full " "PyXML package will be installed. When installed, PyXML versions 0.6.0 or " -"greater will replace the :mod:`xml` package shipped with Python, and will be" -" a strict superset of the standard package, adding a bunch of additional " +"greater will replace the :mod:`xml` package shipped with Python, and will be " +"a strict superset of the standard package, adding a bunch of additional " "features. Some of the additional features in PyXML include:" msgstr "" @@ -1256,23 +1254,23 @@ msgstr "" #: ../../whatsnew/2.0.rst:1031 msgid "" "Lots of improvements and bugfixes were made to Python's extensive standard " -"library; some of the affected modules include :mod:`readline`, " -":mod:`ConfigParser`, :mod:`cgi`, :mod:`calendar`, :mod:`posix`, " -":mod:`readline`, :mod:`xmllib`, :mod:`aifc`, :mod:`chunk, wave`, " -":mod:`random`, :mod:`shelve`, and :mod:`nntplib`. Consult the CVS logs for " -"the exact patch-by-patch details." +"library; some of the affected modules include :mod:`readline`, :mod:" +"`ConfigParser`, :mod:`cgi`, :mod:`calendar`, :mod:`posix`, :mod:`readline`, :" +"mod:`xmllib`, :mod:`aifc`, :mod:`chunk, wave`, :mod:`random`, :mod:`shelve`, " +"and :mod:`nntplib`. Consult the CVS logs for the exact patch-by-patch " +"details." msgstr "" #: ../../whatsnew/2.0.rst:1037 msgid "" "Brian Gallew contributed OpenSSL support for the :mod:`socket` module. " "OpenSSL is an implementation of the Secure Socket Layer, which encrypts the " -"data being sent over a socket. When compiling Python, you can edit " -":file:`Modules/Setup` to include SSL support, which adds an additional " -"function to the :mod:`socket` module: ``socket.ssl(socket, keyfile, " -"certfile)``, which takes a socket object and returns an SSL socket. The " -":mod:`httplib` and :mod:`urllib` modules were also changed to support " -"``https://`` URLs, though no one has implemented FTP or SMTP over SSL." +"data being sent over a socket. When compiling Python, you can edit :file:" +"`Modules/Setup` to include SSL support, which adds an additional function to " +"the :mod:`socket` module: ``socket.ssl(socket, keyfile, certfile)``, which " +"takes a socket object and returns an SSL socket. The :mod:`httplib` and :" +"mod:`urllib` modules were also changed to support ``https://`` URLs, though " +"no one has implemented FTP or SMTP over SSL." msgstr "" #: ../../whatsnew/2.0.rst:1046 @@ -1286,8 +1284,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:1051 msgid "" "The :mod:`Tkinter` module now supports Tcl/Tk version 8.1, 8.2, or 8.3, and " -"support for the older 7.x versions has been dropped. The Tkinter module now" -" supports displaying Unicode strings in Tk widgets. Also, Fredrik Lundh " +"support for the older 7.x versions has been dropped. The Tkinter module now " +"supports displaying Unicode strings in Tk widgets. Also, Fredrik Lundh " "contributed an optimization which makes operations like ``create_line`` and " "``create_polygon`` much faster, especially when using lots of coordinates." msgstr "" @@ -1297,18 +1295,18 @@ msgid "" "The :mod:`curses` module has been greatly extended, starting from Oliver " "Andrich's enhanced version, to provide many additional functions from " "ncurses and SYSV curses, such as colour, alternative character set support, " -"pads, and mouse support. This means the module is no longer compatible with" -" operating systems that only have BSD curses, but there don't seem to be any" -" currently maintained OSes that fall into this category." +"pads, and mouse support. This means the module is no longer compatible with " +"operating systems that only have BSD curses, but there don't seem to be any " +"currently maintained OSes that fall into this category." msgstr "" #: ../../whatsnew/2.0.rst:1064 msgid "" "As mentioned in the earlier discussion of 2.0's Unicode support, the " -"underlying implementation of the regular expressions provided by the " -":mod:`re` module has been changed. SRE, a new regular expression engine " -"written by Fredrik Lundh and partially funded by Hewlett Packard, supports " -"matching against both 8-bit strings and Unicode strings." +"underlying implementation of the regular expressions provided by the :mod:" +"`re` module has been changed. SRE, a new regular expression engine written " +"by Fredrik Lundh and partially funded by Hewlett Packard, supports matching " +"against both 8-bit strings and Unicode strings." msgstr "" #: ../../whatsnew/2.0.rst:1074 @@ -1325,10 +1323,10 @@ msgstr "" #: ../../whatsnew/2.0.rst:1080 msgid "" ":mod:`atexit`: For registering functions to be called before the Python " -"interpreter exits. Code that currently sets ``sys.exitfunc`` directly should" -" be changed to use the :mod:`atexit` module instead, importing " -":mod:`atexit` and calling :func:`atexit.register` with the function to be " -"called on exit. (Contributed by Skip Montanaro.)" +"interpreter exits. Code that currently sets ``sys.exitfunc`` directly should " +"be changed to use the :mod:`atexit` module instead, importing :mod:`atexit` " +"and calling :func:`atexit.register` with the function to be called on exit. " +"(Contributed by Skip Montanaro.)" msgstr "" #: ../../whatsnew/2.0.rst:1086 @@ -1339,16 +1337,16 @@ msgstr "" #: ../../whatsnew/2.0.rst:1089 msgid "" -":mod:`filecmp`: Supersedes the old :mod:`cmp`, :mod:`cmpcache` and " -":mod:`dircmp` modules, which have now become deprecated. (Contributed by " -"Gordon MacMillan and Moshe Zadka.)" +":mod:`filecmp`: Supersedes the old :mod:`cmp`, :mod:`cmpcache` and :mod:" +"`dircmp` modules, which have now become deprecated. (Contributed by Gordon " +"MacMillan and Moshe Zadka.)" msgstr "" #: ../../whatsnew/2.0.rst:1093 msgid "" ":mod:`gettext`: This module provides internationalization (I18N) and " -"localization (L10N) support for Python programs by providing an interface to" -" the GNU gettext message catalog library. (Integrated by Barry Warsaw, from " +"localization (L10N) support for Python programs by providing an interface to " +"the GNU gettext message catalog library. (Integrated by Barry Warsaw, from " "separate contributions by Martin von Löwis, Peter Funk, and James " "Henstridge.)" msgstr "" @@ -1356,8 +1354,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:1098 msgid "" ":mod:`linuxaudiodev`: Support for the :file:`/dev/audio` device on Linux, a " -"twin to the existing :mod:`sunaudiodev` module. (Contributed by Peter Bosch," -" with fixes by Jeremy Hylton.)" +"twin to the existing :mod:`sunaudiodev` module. (Contributed by Peter Bosch, " +"with fixes by Jeremy Hylton.)" msgstr "" #: ../../whatsnew/2.0.rst:1102 @@ -1366,8 +1364,8 @@ msgid "" "A file's contents can be mapped directly into memory, at which point it " "behaves like a mutable string, so its contents can be read and modified. " "They can even be passed to functions that expect ordinary strings, such as " -"the :mod:`re` module. (Contributed by Sam Rushing, with some extensions by " -"A.M. Kuchling.)" +"the :mod:`re` module. (Contributed by Sam Rushing, with some extensions by A." +"M. Kuchling.)" msgstr "" #: ../../whatsnew/2.0.rst:1108 @@ -1393,8 +1391,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:1120 msgid "" -":mod:`UserString`: A base class useful for deriving objects that behave like" -" strings." +":mod:`UserString`: A base class useful for deriving objects that behave like " +"strings." msgstr "" #: ../../whatsnew/2.0.rst:1123 @@ -1402,25 +1400,25 @@ msgid "" ":mod:`webbrowser`: A module that provides a platform independent way to " "launch a web browser on a specific URL. For each platform, various browsers " "are tried in a specific order. The user can alter which browser is launched " -"by setting the *BROWSER* environment variable. (Originally inspired by Eric" -" S. Raymond's patch to :mod:`urllib` which added similar functionality, but " -"the final module comes from code originally implemented by Fred Drake as " -":file:`Tools/idle/BrowserControl.py`, and adapted for the standard library " -"by Fred.)" +"by setting the *BROWSER* environment variable. (Originally inspired by Eric " +"S. Raymond's patch to :mod:`urllib` which added similar functionality, but " +"the final module comes from code originally implemented by Fred Drake as :" +"file:`Tools/idle/BrowserControl.py`, and adapted for the standard library by " +"Fred.)" msgstr "" #: ../../whatsnew/2.0.rst:1132 msgid "" ":mod:`_winreg`: An interface to the Windows registry. :mod:`_winreg` is an " -"adaptation of functions that have been part of PythonWin since 1995, but has" -" now been added to the core distribution, and enhanced to support Unicode. " -":mod:`_winreg` was written by Bill Tutt and Mark Hammond." +"adaptation of functions that have been part of PythonWin since 1995, but has " +"now been added to the core distribution, and enhanced to support Unicode. :" +"mod:`_winreg` was written by Bill Tutt and Mark Hammond." msgstr "" #: ../../whatsnew/2.0.rst:1137 msgid "" -":mod:`zipfile`: A module for reading and writing ZIP-format archives. These" -" are archives produced by :program:`PKZIP` on DOS/Windows or :program:`zip` " +":mod:`zipfile`: A module for reading and writing ZIP-format archives. These " +"are archives produced by :program:`PKZIP` on DOS/Windows or :program:`zip` " "on Unix, not to be confused with :program:`gzip`\\ -format files (which are " "supported by the :mod:`gzip` module) (Contributed by James C. Ahlstrom.)" msgstr "" @@ -1464,14 +1462,14 @@ msgstr "" #: ../../whatsnew/2.0.rst:1165 msgid "" -"There is now support for calling browsers on various platforms, used to open" -" the Python documentation in a browser." +"There is now support for calling browsers on various platforms, used to open " +"the Python documentation in a browser." msgstr "" #: ../../whatsnew/2.0.rst:1168 msgid "" -"IDLE now has a command line, which is largely similar to the vanilla Python" -" interpreter." +"IDLE now has a command line, which is largely similar to the vanilla Python " +"interpreter." msgstr "" #: ../../whatsnew/2.0.rst:1171 @@ -1488,8 +1486,8 @@ msgstr "" #: ../../whatsnew/2.0.rst:1177 msgid "" -"Three new keystroke commands: Check module (:kbd:`Alt-F5`), Import module " -"(:kbd:`F5`) and Run script (:kbd:`Ctrl-F5`)." +"Three new keystroke commands: Check module (:kbd:`Alt-F5`), Import module (:" +"kbd:`F5`) and Run script (:kbd:`Ctrl-F5`)." msgstr "" #: ../../whatsnew/2.0.rst:1184 @@ -1499,20 +1497,19 @@ msgstr "Módulos apagados e desativados" #: ../../whatsnew/2.0.rst:1186 msgid "" "A few modules have been dropped because they're obsolete, or because there " -"are now better ways to do the same thing. The :mod:`stdwin` module is gone;" -" it was for a platform-independent windowing toolkit that's no longer " +"are now better ways to do the same thing. The :mod:`stdwin` module is gone; " +"it was for a platform-independent windowing toolkit that's no longer " "developed." msgstr "" #: ../../whatsnew/2.0.rst:1190 msgid "" -"A number of modules have been moved to the :file:`lib-old` subdirectory: " -":mod:`cmp`, :mod:`cmpcache`, :mod:`dircmp`, :mod:`dump`, :mod:`find`, " -":mod:`grep`, :mod:`packmail`, :mod:`poly`, :mod:`util`, :mod:`whatsound`, " -":mod:`zmod`. If you have code which relies on a module that's been moved " -"to :file:`lib-old`, you can simply add that directory to ``sys.path`` to " -"get them back, but you're encouraged to update any code that uses these " -"modules." +"A number of modules have been moved to the :file:`lib-old` subdirectory: :" +"mod:`cmp`, :mod:`cmpcache`, :mod:`dircmp`, :mod:`dump`, :mod:`find`, :mod:" +"`grep`, :mod:`packmail`, :mod:`poly`, :mod:`util`, :mod:`whatsound`, :mod:" +"`zmod`. If you have code which relies on a module that's been moved to :" +"file:`lib-old`, you can simply add that directory to ``sys.path`` to get " +"them back, but you're encouraged to update any code that uses these modules." msgstr "" #: ../../whatsnew/2.0.rst:1199 diff --git a/whatsnew/2.1.po b/whatsnew/2.1.po index d2f700628..d8fc9cceb 100644 --- a/whatsnew/2.1.po +++ b/whatsnew/2.1.po @@ -1,8 +1,8 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 @@ -11,16 +11,17 @@ # Victor Matheus Castro , 2019 # (Douglas da Silva) , 2019 # Misael borges , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" "Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,24 +46,24 @@ msgstr "Introdução" #: ../../whatsnew/2.1.rst:15 msgid "" -"This article explains the new features in Python 2.1. While there aren't as" -" many changes in 2.1 as there were in Python 2.0, there are still some " -"pleasant surprises in store. 2.1 is the first release to be steered through" -" the use of Python Enhancement Proposals, or PEPs, so most of the sizable " +"This article explains the new features in Python 2.1. While there aren't as " +"many changes in 2.1 as there were in Python 2.0, there are still some " +"pleasant surprises in store. 2.1 is the first release to be steered through " +"the use of Python Enhancement Proposals, or PEPs, so most of the sizable " "changes have accompanying PEPs that provide more complete documentation and " -"a design rationale for the change. This article doesn't attempt to document" -" the new features completely, but simply provides an overview of the new " +"a design rationale for the change. This article doesn't attempt to document " +"the new features completely, but simply provides an overview of the new " "features for Python programmers. Refer to the Python 2.1 documentation, or " "to the specific PEP, for more details about any new feature that " "particularly interests you." msgstr "" -"This article explains the new features in Python 2.1. While there aren't as" -" many changes in 2.1 as there were in Python 2.0, there are still some " -"pleasant surprises in store. 2.1 is the first release to be steered through" -" the use of Python Enhancement Proposals, or PEPs, so most of the sizable " +"This article explains the new features in Python 2.1. While there aren't as " +"many changes in 2.1 as there were in Python 2.0, there are still some " +"pleasant surprises in store. 2.1 is the first release to be steered through " +"the use of Python Enhancement Proposals, or PEPs, so most of the sizable " "changes have accompanying PEPs that provide more complete documentation and " -"a design rationale for the change. This article doesn't attempt to document" -" the new features completely, but simply provides an overview of the new " +"a design rationale for the change. This article doesn't attempt to document " +"the new features completely, but simply provides an overview of the new " "features for Python programmers. Refer to the Python 2.1 documentation, or " "to the specific PEP, for more details about any new feature that " "particularly interests you." @@ -91,24 +92,24 @@ msgstr "PEP 227: Nested Scopes" msgid "" "The largest change in Python 2.1 is to Python's scoping rules. In Python " "2.0, at any given time there are at most three namespaces used to look up " -"variable names: local, module-level, and the built-in namespace. This often" -" surprised people because it didn't match their intuitive expectations. For" -" example, a nested recursive function definition doesn't work::" +"variable names: local, module-level, and the built-in namespace. This often " +"surprised people because it didn't match their intuitive expectations. For " +"example, a nested recursive function definition doesn't work::" msgstr "" "The largest change in Python 2.1 is to Python's scoping rules. In Python " "2.0, at any given time there are at most three namespaces used to look up " -"variable names: local, module-level, and the built-in namespace. This often" -" surprised people because it didn't match their intuitive expectations. For" -" example, a nested recursive function definition doesn't work::" +"variable names: local, module-level, and the built-in namespace. This often " +"surprised people because it didn't match their intuitive expectations. For " +"example, a nested recursive function definition doesn't work::" #: ../../whatsnew/2.1.rst:51 msgid "" "The function :func:`g` will always raise a :exc:`NameError` exception, " -"because the binding of the name ``g`` isn't in either its local namespace or" -" in the module-level namespace. This isn't much of a problem in practice " +"because the binding of the name ``g`` isn't in either its local namespace or " +"in the module-level namespace. This isn't much of a problem in practice " "(how often do you recursively define interior functions like this?), but " -"this also made using the :keyword:`lambda` expression clumsier, and this was" -" a problem in practice. In code which uses :keyword:`lambda` you can often " +"this also made using the :keyword:`lambda` expression clumsier, and this was " +"a problem in practice. In code which uses :keyword:`lambda` you can often " "find local variables being copied by passing them as the default values of " "arguments. ::" msgstr "" @@ -125,23 +126,21 @@ msgstr "" msgid "" "The most significant change to Python 2.1 is that static scoping has been " "added to the language to fix this problem. As a first effect, the " -"``name=name`` default argument is now unnecessary in the above example. Put" -" simply, when a given variable name is not assigned a value within a " -"function (by an assignment, or the :keyword:`def`, :keyword:`class`, or " -":keyword:`import` statements), references to the variable will be looked up " -"in the local namespace of the enclosing scope. A more detailed explanation " -"of the rules, and a dissection of the implementation, can be found in the " -"PEP." +"``name=name`` default argument is now unnecessary in the above example. Put " +"simply, when a given variable name is not assigned a value within a function " +"(by an assignment, or the :keyword:`def`, :keyword:`class`, or :keyword:" +"`import` statements), references to the variable will be looked up in the " +"local namespace of the enclosing scope. A more detailed explanation of the " +"rules, and a dissection of the implementation, can be found in the PEP." msgstr "" "The most significant change to Python 2.1 is that static scoping has been " "added to the language to fix this problem. As a first effect, the " -"``name=name`` default argument is now unnecessary in the above example. Put" -" simply, when a given variable name is not assigned a value within a " -"function (by an assignment, or the :keyword:`def`, :keyword:`class`, or " -":keyword:`import` statements), references to the variable will be looked up " -"in the local namespace of the enclosing scope. A more detailed explanation " -"of the rules, and a dissection of the implementation, can be found in the " -"PEP." +"``name=name`` default argument is now unnecessary in the above example. Put " +"simply, when a given variable name is not assigned a value within a function " +"(by an assignment, or the :keyword:`def`, :keyword:`class`, or :keyword:" +"`import` statements), references to the variable will be looked up in the " +"local namespace of the enclosing scope. A more detailed explanation of the " +"rules, and a dissection of the implementation, can be found in the PEP." #: ../../whatsnew/2.1.rst:77 msgid "" @@ -162,30 +161,28 @@ msgid "" "One side effect of the change is that the ``from module import *`` and " "``exec`` statements have been made illegal inside a function scope under " "certain conditions. The Python reference manual has said all along that " -"``from module import *`` is only legal at the top level of a module, but the" -" CPython interpreter has never enforced this before. As part of the " -"implementation of nested scopes, the compiler which turns Python source into" -" bytecodes has to generate different code to access variables in a " -"containing scope. ``from module import *`` and ``exec`` make it impossible " -"for the compiler to figure this out, because they add names to the local " -"namespace that are unknowable at compile time. Therefore, if a function " -"contains function definitions or :keyword:`lambda` expressions with free " -"variables, the compiler will flag this by raising a :exc:`SyntaxError` " -"exception." +"``from module import *`` is only legal at the top level of a module, but the " +"CPython interpreter has never enforced this before. As part of the " +"implementation of nested scopes, the compiler which turns Python source into " +"bytecodes has to generate different code to access variables in a containing " +"scope. ``from module import *`` and ``exec`` make it impossible for the " +"compiler to figure this out, because they add names to the local namespace " +"that are unknowable at compile time. Therefore, if a function contains " +"function definitions or :keyword:`lambda` expressions with free variables, " +"the compiler will flag this by raising a :exc:`SyntaxError` exception." msgstr "" "One side effect of the change is that the ``from module import *`` and " "``exec`` statements have been made illegal inside a function scope under " "certain conditions. The Python reference manual has said all along that " -"``from module import *`` is only legal at the top level of a module, but the" -" CPython interpreter has never enforced this before. As part of the " -"implementation of nested scopes, the compiler which turns Python source into" -" bytecodes has to generate different code to access variables in a " -"containing scope. ``from module import *`` and ``exec`` make it impossible " -"for the compiler to figure this out, because they add names to the local " -"namespace that are unknowable at compile time. Therefore, if a function " -"contains function definitions or :keyword:`lambda` expressions with free " -"variables, the compiler will flag this by raising a :exc:`SyntaxError` " -"exception." +"``from module import *`` is only legal at the top level of a module, but the " +"CPython interpreter has never enforced this before. As part of the " +"implementation of nested scopes, the compiler which turns Python source into " +"bytecodes has to generate different code to access variables in a containing " +"scope. ``from module import *`` and ``exec`` make it impossible for the " +"compiler to figure this out, because they add names to the local namespace " +"that are unknowable at compile time. Therefore, if a function contains " +"function definitions or :keyword:`lambda` expressions with free variables, " +"the compiler will flag this by raising a :exc:`SyntaxError` exception." #: ../../whatsnew/2.1.rst:96 msgid "To make the preceding explanation a bit clearer, here's an example::" @@ -194,12 +191,12 @@ msgstr "To make the preceding explanation a bit clearer, here's an example::" #: ../../whatsnew/2.1.rst:105 msgid "" "Line 4 containing the ``exec`` statement is a syntax error, since ``exec`` " -"would define a new local variable named ``x`` whose value should be accessed" -" by :func:`g`." +"would define a new local variable named ``x`` whose value should be accessed " +"by :func:`g`." msgstr "" "Line 4 containing the ``exec`` statement is a syntax error, since ``exec`` " -"would define a new local variable named ``x`` whose value should be accessed" -" by :func:`g`." +"would define a new local variable named ``x`` whose value should be accessed " +"by :func:`g`." #: ../../whatsnew/2.1.rst:109 msgid "" @@ -213,19 +210,19 @@ msgstr "" #: ../../whatsnew/2.1.rst:113 msgid "" -"Compatibility concerns have led to nested scopes being introduced gradually;" -" in Python 2.1, they aren't enabled by default, but can be turned on within " -"a module by using a future statement as described in PEP 236. (See the " -"following section for further discussion of PEP 236.) In Python 2.2, nested" -" scopes will become the default and there will be no way to turn them off, " +"Compatibility concerns have led to nested scopes being introduced gradually; " +"in Python 2.1, they aren't enabled by default, but can be turned on within a " +"module by using a future statement as described in PEP 236. (See the " +"following section for further discussion of PEP 236.) In Python 2.2, nested " +"scopes will become the default and there will be no way to turn them off, " "but users will have had all of 2.1's lifetime to fix any breakage resulting " "from their introduction." msgstr "" -"Compatibility concerns have led to nested scopes being introduced gradually;" -" in Python 2.1, they aren't enabled by default, but can be turned on within " -"a module by using a future statement as described in PEP 236. (See the " -"following section for further discussion of PEP 236.) In Python 2.2, nested" -" scopes will become the default and there will be no way to turn them off, " +"Compatibility concerns have led to nested scopes being introduced gradually; " +"in Python 2.1, they aren't enabled by default, but can be turned on within a " +"module by using a future statement as described in PEP 236. (See the " +"following section for further discussion of PEP 236.) In Python 2.2, nested " +"scopes will become the default and there will be no way to turn them off, " "but users will have had all of 2.1's lifetime to fix any breakage resulting " "from their introduction." @@ -257,22 +254,22 @@ msgstr "" #: ../../whatsnew/2.1.rst:138 msgid "" -"The syntax uses a ``from...import`` statement using the reserved module name" -" :mod:`__future__`. Nested scopes can be enabled by the following " +"The syntax uses a ``from...import`` statement using the reserved module " +"name :mod:`__future__`. Nested scopes can be enabled by the following " "statement::" msgstr "" -"The syntax uses a ``from...import`` statement using the reserved module name" -" :mod:`__future__`. Nested scopes can be enabled by the following " +"The syntax uses a ``from...import`` statement using the reserved module " +"name :mod:`__future__`. Nested scopes can be enabled by the following " "statement::" #: ../../whatsnew/2.1.rst:143 msgid "" "While it looks like a normal :keyword:`import` statement, it's not; there " "are strict rules on where such a future statement can be put. They can only " -"be at the top of a module, and must precede any Python code or regular " -":keyword:`!import` statements. This is because such statements can affect " -"how the Python bytecode compiler parses code and generates bytecode, so they" -" must precede any statement that will result in bytecodes being produced." +"be at the top of a module, and must precede any Python code or regular :" +"keyword:`!import` statements. This is because such statements can affect " +"how the Python bytecode compiler parses code and generates bytecode, so they " +"must precede any statement that will result in bytecodes being produced." msgstr "" #: ../../whatsnew/2.1.rst:153 @@ -295,8 +292,8 @@ msgid "" "and could only return 0 if they were equal or +1 or -1 if they weren't; the " "method couldn't raise an exception or return anything other than a Boolean " "value. Users of Numeric Python often found this model too weak and " -"restrictive, because in the number-crunching programs that numeric Python is" -" used for, it would be more useful to be able to perform elementwise " +"restrictive, because in the number-crunching programs that numeric Python is " +"used for, it would be more useful to be able to perform elementwise " "comparisons of two matrices, returning a matrix containing the results of a " "given comparison for each element. If the two matrices are of different " "sizes, then the compare has to be able to raise an exception to signal the " @@ -308,8 +305,8 @@ msgstr "" "and could only return 0 if they were equal or +1 or -1 if they weren't; the " "method couldn't raise an exception or return anything other than a Boolean " "value. Users of Numeric Python often found this model too weak and " -"restrictive, because in the number-crunching programs that numeric Python is" -" used for, it would be more useful to be able to perform elementwise " +"restrictive, because in the number-crunching programs that numeric Python is " +"used for, it would be more useful to be able to perform elementwise " "comparisons of two matrices, returning a matrix containing the results of a " "given comparison for each element. If the two matrices are of different " "sizes, then the compare has to be able to raise an exception to signal the " @@ -385,13 +382,13 @@ msgstr ":meth:`__ne__`" #: ../../whatsnew/2.1.rst:194 msgid "" -"(The magic methods are named after the corresponding Fortran operators " -"``.LT.``. ``.LE.``, &c. Numeric programmers are almost certainly quite " -"familiar with these names and will find them easy to remember.)" +"(The magic methods are named after the corresponding Fortran operators ``.LT." +"``. ``.LE.``, &c. Numeric programmers are almost certainly quite familiar " +"with these names and will find them easy to remember.)" msgstr "" -"(The magic methods are named after the corresponding Fortran operators " -"``.LT.``. ``.LE.``, &c. Numeric programmers are almost certainly quite " -"familiar with these names and will find them easy to remember.)" +"(The magic methods are named after the corresponding Fortran operators ``.LT." +"``. ``.LE.``, &c. Numeric programmers are almost certainly quite familiar " +"with these names and will find them easy to remember.)" #: ../../whatsnew/2.1.rst:198 msgid "" @@ -407,13 +404,13 @@ msgstr "" #: ../../whatsnew/2.1.rst:203 msgid "" -"Each of these magic methods can return anything at all: a Boolean, a matrix," -" a list, or any other Python object. Alternatively they can raise an " +"Each of these magic methods can return anything at all: a Boolean, a matrix, " +"a list, or any other Python object. Alternatively they can raise an " "exception if the comparison is impossible, inconsistent, or otherwise " "meaningless." msgstr "" -"Each of these magic methods can return anything at all: a Boolean, a matrix," -" a list, or any other Python object. Alternatively they can raise an " +"Each of these magic methods can return anything at all: a Boolean, a matrix, " +"a list, or any other Python object. Alternatively they can raise an " "exception if the comparison is impossible, inconsistent, or otherwise " "meaningless." @@ -421,33 +418,31 @@ msgstr "" msgid "" "The built-in ``cmp(A,B)`` function can use the rich comparison machinery, " "and now accepts an optional argument specifying which comparison operation " -"to use; this is given as one of the strings ``\"<\"``, ``\"<=\"``, " -"``\">\"``, ``\">=\"``, ``\"==\"``, or ``\"!=\"``. If called without the " -"optional third argument, :func:`cmp` will only return -1, 0, or +1 as in " -"previous versions of Python; otherwise it will call the appropriate method " -"and can return any Python object." +"to use; this is given as one of the strings ``\"<\"``, ``\"<=\"``, ``\">" +"\"``, ``\">=\"``, ``\"==\"``, or ``\"!=\"``. If called without the optional " +"third argument, :func:`cmp` will only return -1, 0, or +1 as in previous " +"versions of Python; otherwise it will call the appropriate method and can " +"return any Python object." msgstr "" "The built-in ``cmp(A,B)`` function can use the rich comparison machinery, " "and now accepts an optional argument specifying which comparison operation " -"to use; this is given as one of the strings ``\"<\"``, ``\"<=\"``, " -"``\">\"``, ``\">=\"``, ``\"==\"``, or ``\"!=\"``. If called without the " -"optional third argument, :func:`cmp` will only return -1, 0, or +1 as in " -"previous versions of Python; otherwise it will call the appropriate method " -"and can return any Python object." +"to use; this is given as one of the strings ``\"<\"``, ``\"<=\"``, ``\">" +"\"``, ``\">=\"``, ``\"==\"``, or ``\"!=\"``. If called without the optional " +"third argument, :func:`cmp` will only return -1, 0, or +1 as in previous " +"versions of Python; otherwise it will call the appropriate method and can " +"return any Python object." #: ../../whatsnew/2.1.rst:214 msgid "" -"There are also corresponding changes of interest to C programmers; there's a" -" new slot ``tp_richcmp`` in type objects and an API for performing a given " +"There are also corresponding changes of interest to C programmers; there's a " +"new slot ``tp_richcmp`` in type objects and an API for performing a given " "rich comparison. I won't cover the C API here, but will refer you to PEP " -"207, or to 2.1's C API documentation, for the full list of related " -"functions." +"207, or to 2.1's C API documentation, for the full list of related functions." msgstr "" -"There are also corresponding changes of interest to C programmers; there's a" -" new slot ``tp_richcmp`` in type objects and an API for performing a given " +"There are also corresponding changes of interest to C programmers; there's a " +"new slot ``tp_richcmp`` in type objects and an API for performing a given " "rich comparison. I won't cover the C API here, but will refer you to PEP " -"207, or to 2.1's C API documentation, for the full list of related " -"functions." +"207, or to 2.1's C API documentation, for the full list of related functions." #: ../../whatsnew/2.1.rst:223 msgid ":pep:`207` - Rich Comparisons" @@ -473,9 +468,9 @@ msgid "" "uses it --- perhaps no programs depend on the feature, or perhaps many do. " "To enable removing old features in a more structured way, a warning " "framework was added. When the Python developers want to get rid of a " -"feature, it will first trigger a warning in the next version of Python. The" -" following Python version can then drop the feature, and users will have had" -" a full release cycle to remove uses of the old feature." +"feature, it will first trigger a warning in the next version of Python. The " +"following Python version can then drop the feature, and users will have had " +"a full release cycle to remove uses of the old feature." msgstr "" "Over its 10 years of existence, Python has accumulated a certain number of " "obsolete modules and features along the way. It's difficult to know when a " @@ -483,22 +478,22 @@ msgstr "" "uses it --- perhaps no programs depend on the feature, or perhaps many do. " "To enable removing old features in a more structured way, a warning " "framework was added. When the Python developers want to get rid of a " -"feature, it will first trigger a warning in the next version of Python. The" -" following Python version can then drop the feature, and users will have had" -" a full release cycle to remove uses of the old feature." +"feature, it will first trigger a warning in the next version of Python. The " +"following Python version can then drop the feature, and users will have had " +"a full release cycle to remove uses of the old feature." #: ../../whatsnew/2.1.rst:242 msgid "" -"Python 2.1 adds the warning framework to be used in this scheme. It adds a " -":mod:`warnings` module that provide functions to issue warnings, and to " -"filter out warnings that you don't want to be displayed. Third-party modules" -" can also use this framework to deprecate old features that they no longer " +"Python 2.1 adds the warning framework to be used in this scheme. It adds a :" +"mod:`warnings` module that provide functions to issue warnings, and to " +"filter out warnings that you don't want to be displayed. Third-party modules " +"can also use this framework to deprecate old features that they no longer " "wish to support." msgstr "" -"Python 2.1 adds the warning framework to be used in this scheme. It adds a " -":mod:`warnings` module that provide functions to issue warnings, and to " -"filter out warnings that you don't want to be displayed. Third-party modules" -" can also use this framework to deprecate old features that they no longer " +"Python 2.1 adds the warning framework to be used in this scheme. It adds a :" +"mod:`warnings` module that provide functions to issue warnings, and to " +"filter out warnings that you don't want to be displayed. Third-party modules " +"can also use this framework to deprecate old features that they no longer " "wish to support." #: ../../whatsnew/2.1.rst:248 @@ -511,8 +506,7 @@ msgstr "" #: ../../whatsnew/2.1.rst:256 msgid "Warnings can be issued by calling the :func:`warnings.warn` function::" -msgstr "" -"Warnings can be issued by calling the :func:`warnings.warn` function::" +msgstr "Warnings can be issued by calling the :func:`warnings.warn` function::" #: ../../whatsnew/2.1.rst:260 msgid "" @@ -526,35 +520,33 @@ msgstr "" msgid "" "Filters can be added to disable certain warnings; a regular expression " "pattern can be applied to the message or to the module name in order to " -"suppress a warning. For example, you may have a program that uses the " -":mod:`regex` module and not want to spare the time to convert it to use the " -":mod:`re` module right now. The warning can be suppressed by calling ::" +"suppress a warning. For example, you may have a program that uses the :mod:" +"`regex` module and not want to spare the time to convert it to use the :mod:" +"`re` module right now. The warning can be suppressed by calling ::" msgstr "" "Filters can be added to disable certain warnings; a regular expression " "pattern can be applied to the message or to the module name in order to " -"suppress a warning. For example, you may have a program that uses the " -":mod:`regex` module and not want to spare the time to convert it to use the " -":mod:`re` module right now. The warning can be suppressed by calling ::" +"suppress a warning. For example, you may have a program that uses the :mod:" +"`regex` module and not want to spare the time to convert it to use the :mod:" +"`re` module right now. The warning can be suppressed by calling ::" #: ../../whatsnew/2.1.rst:275 msgid "" -"This adds a filter that will apply only to warnings of the class " -":class:`DeprecationWarning` triggered in the :mod:`__main__` module, and " -"applies a regular expression to only match the message about the " -":mod:`regex` module being deprecated, and will cause such warnings to be " -"ignored. Warnings can also be printed only once, printed every time the " -"offending code is executed, or turned into exceptions that will cause the " -"program to stop (unless the exceptions are caught in the usual way, of " -"course)." -msgstr "" -"This adds a filter that will apply only to warnings of the class " -":class:`DeprecationWarning` triggered in the :mod:`__main__` module, and " -"applies a regular expression to only match the message about the " -":mod:`regex` module being deprecated, and will cause such warnings to be " -"ignored. Warnings can also be printed only once, printed every time the " -"offending code is executed, or turned into exceptions that will cause the " -"program to stop (unless the exceptions are caught in the usual way, of " -"course)." +"This adds a filter that will apply only to warnings of the class :class:" +"`DeprecationWarning` triggered in the :mod:`__main__` module, and applies a " +"regular expression to only match the message about the :mod:`regex` module " +"being deprecated, and will cause such warnings to be ignored. Warnings can " +"also be printed only once, printed every time the offending code is " +"executed, or turned into exceptions that will cause the program to stop " +"(unless the exceptions are caught in the usual way, of course)." +msgstr "" +"This adds a filter that will apply only to warnings of the class :class:" +"`DeprecationWarning` triggered in the :mod:`__main__` module, and applies a " +"regular expression to only match the message about the :mod:`regex` module " +"being deprecated, and will cause such warnings to be ignored. Warnings can " +"also be printed only once, printed every time the offending code is " +"executed, or turned into exceptions that will cause the program to stop " +"(unless the exceptions are caught in the usual way, of course)." #: ../../whatsnew/2.1.rst:283 msgid "" @@ -594,69 +586,67 @@ msgstr "PEP 229: New Build System" #: ../../whatsnew/2.1.rst:304 msgid "" -"When compiling Python, the user had to go in and edit the " -":file:`Modules/Setup` file in order to enable various additional modules; " -"the default set is relatively small and limited to modules that compile on " -"most Unix platforms. This means that on Unix platforms with many more " -"features, most notably Linux, Python installations often don't contain all " -"useful modules they could." +"When compiling Python, the user had to go in and edit the :file:`Modules/" +"Setup` file in order to enable various additional modules; the default set " +"is relatively small and limited to modules that compile on most Unix " +"platforms. This means that on Unix platforms with many more features, most " +"notably Linux, Python installations often don't contain all useful modules " +"they could." msgstr "" -"When compiling Python, the user had to go in and edit the " -":file:`Modules/Setup` file in order to enable various additional modules; " -"the default set is relatively small and limited to modules that compile on " -"most Unix platforms. This means that on Unix platforms with many more " -"features, most notably Linux, Python installations often don't contain all " -"useful modules they could." +"When compiling Python, the user had to go in and edit the :file:`Modules/" +"Setup` file in order to enable various additional modules; the default set " +"is relatively small and limited to modules that compile on most Unix " +"platforms. This means that on Unix platforms with many more features, most " +"notably Linux, Python installations often don't contain all useful modules " +"they could." #: ../../whatsnew/2.1.rst:310 msgid "" "Python 2.0 added the Distutils, a set of modules for distributing and " "installing extensions. In Python 2.1, the Distutils are used to compile " "much of the standard library of extension modules, autodetecting which ones " -"are supported on the current machine. It's hoped that this will make Python" -" installations easier and more featureful." +"are supported on the current machine. It's hoped that this will make Python " +"installations easier and more featureful." msgstr "" "Python 2.0 added the Distutils, a set of modules for distributing and " "installing extensions. In Python 2.1, the Distutils are used to compile " "much of the standard library of extension modules, autodetecting which ones " -"are supported on the current machine. It's hoped that this will make Python" -" installations easier and more featureful." +"are supported on the current machine. It's hoped that this will make Python " +"installations easier and more featureful." #: ../../whatsnew/2.1.rst:316 msgid "" "Instead of having to edit the :file:`Modules/Setup` file in order to enable " -"modules, a :file:`setup.py` script in the top directory of the Python source" -" distribution is run at build time, and attempts to discover which modules " +"modules, a :file:`setup.py` script in the top directory of the Python source " +"distribution is run at build time, and attempts to discover which modules " "can be enabled by examining the modules and header files on the system. If " -"a module is configured in :file:`Modules/Setup`, the :file:`setup.py` script" -" won't attempt to compile that module and will defer to the " -":file:`Modules/Setup` file's contents. This provides a way to specific any " -"strange command-line flags or libraries that are required for a specific " -"platform." +"a module is configured in :file:`Modules/Setup`, the :file:`setup.py` script " +"won't attempt to compile that module and will defer to the :file:`Modules/" +"Setup` file's contents. This provides a way to specific any strange command-" +"line flags or libraries that are required for a specific platform." msgstr "" "Instead of having to edit the :file:`Modules/Setup` file in order to enable " -"modules, a :file:`setup.py` script in the top directory of the Python source" -" distribution is run at build time, and attempts to discover which modules " +"modules, a :file:`setup.py` script in the top directory of the Python source " +"distribution is run at build time, and attempts to discover which modules " "can be enabled by examining the modules and header files on the system. If " -"a module is configured in :file:`Modules/Setup`, the :file:`setup.py` script" -" won't attempt to compile that module and will defer to the " -":file:`Modules/Setup` file's contents. This provides a way to specific any " -"strange command-line flags or libraries that are required for a specific " -"platform." +"a module is configured in :file:`Modules/Setup`, the :file:`setup.py` script " +"won't attempt to compile that module and will defer to the :file:`Modules/" +"Setup` file's contents. This provides a way to specific any strange command-" +"line flags or libraries that are required for a specific platform." #: ../../whatsnew/2.1.rst:325 msgid "" "In another far-reaching change to the build mechanism, Neil Schemenauer " "restructured things so Python now uses a single makefile that isn't " -"recursive, instead of makefiles in the top directory and in each of the " -":file:`Python/`, :file:`Parser/`, :file:`Objects/`, and :file:`Modules/` " +"recursive, instead of makefiles in the top directory and in each of the :" +"file:`Python/`, :file:`Parser/`, :file:`Objects/`, and :file:`Modules/` " "subdirectories. This makes building Python faster and also makes hacking " "the Makefiles clearer and simpler." msgstr "" "In another far-reaching change to the build mechanism, Neil Schemenauer " "restructured things so Python now uses a single makefile that isn't " -"recursive, instead of makefiles in the top directory and in each of the " -":file:`Python/`, :file:`Parser/`, :file:`Objects/`, and :file:`Modules/` " +"recursive, instead of makefiles in the top directory and in each of the :" +"file:`Python/`, :file:`Parser/`, :file:`Objects/`, and :file:`Modules/` " "subdirectories. This makes building Python faster and also makes hacking " "the Makefiles clearer and simpler." @@ -685,14 +675,14 @@ msgid "" "Storing a reference to an object (say, in a dictionary or a list) has the " "side effect of keeping that object alive forever. There are a few specific " "cases where this behaviour is undesirable, object caches being the most " -"common one, and another being circular references in data structures such as" -" trees." +"common one, and another being circular references in data structures such as " +"trees." msgstr "" "Storing a reference to an object (say, in a dictionary or a list) has the " "side effect of keeping that object alive forever. There are a few specific " "cases where this behaviour is undesirable, object caches being the most " -"common one, and another being circular references in data structures such as" -" trees." +"common one, and another being circular references in data structures such as " +"trees." #: ../../whatsnew/2.1.rst:352 msgid "" @@ -707,16 +697,16 @@ msgstr "" #: ../../whatsnew/2.1.rst:368 msgid "" "This version works for simple things such as integers, but it has a side " -"effect; the ``_cache`` dictionary holds a reference to the return values, so" -" they'll never be deallocated until the Python process exits and cleans up. " -"This isn't very noticeable for integers, but if :func:`f` returns an object," -" or a data structure that takes up a lot of memory, this can be a problem." +"effect; the ``_cache`` dictionary holds a reference to the return values, so " +"they'll never be deallocated until the Python process exits and cleans up. " +"This isn't very noticeable for integers, but if :func:`f` returns an object, " +"or a data structure that takes up a lot of memory, this can be a problem." msgstr "" "This version works for simple things such as integers, but it has a side " -"effect; the ``_cache`` dictionary holds a reference to the return values, so" -" they'll never be deallocated until the Python process exits and cleans up. " -"This isn't very noticeable for integers, but if :func:`f` returns an object," -" or a data structure that takes up a lot of memory, this can be a problem." +"effect; the ``_cache`` dictionary holds a reference to the return values, so " +"they'll never be deallocated until the Python process exits and cleans up. " +"This isn't very noticeable for integers, but if :func:`f` returns an object, " +"or a data structure that takes up a lot of memory, this can be a problem." #: ../../whatsnew/2.1.rst:374 msgid "" @@ -779,26 +769,26 @@ msgstr "PEP 232: Function Attributes" #: ../../whatsnew/2.1.rst:425 msgid "" "In Python 2.1, functions can now have arbitrary information attached to " -"them. People were often using docstrings to hold information about functions" -" and methods, because the ``__doc__`` attribute was the only way of " -"attaching any information to a function. For example, in the Zope Web " -"application server, functions are marked as safe for public access by having" -" a docstring, and in John Aycock's SPARK parsing framework, docstrings hold " +"them. People were often using docstrings to hold information about functions " +"and methods, because the ``__doc__`` attribute was the only way of attaching " +"any information to a function. For example, in the Zope Web application " +"server, functions are marked as safe for public access by having a " +"docstring, and in John Aycock's SPARK parsing framework, docstrings hold " "parts of the BNF grammar to be parsed. This overloading is unfortunate, " -"since docstrings are really intended to hold a function's documentation; for" -" example, it means you can't properly document functions intended for " -"private use in Zope." +"since docstrings are really intended to hold a function's documentation; for " +"example, it means you can't properly document functions intended for private " +"use in Zope." msgstr "" "In Python 2.1, functions can now have arbitrary information attached to " -"them. People were often using docstrings to hold information about functions" -" and methods, because the ``__doc__`` attribute was the only way of " -"attaching any information to a function. For example, in the Zope Web " -"application server, functions are marked as safe for public access by having" -" a docstring, and in John Aycock's SPARK parsing framework, docstrings hold " +"them. People were often using docstrings to hold information about functions " +"and methods, because the ``__doc__`` attribute was the only way of attaching " +"any information to a function. For example, in the Zope Web application " +"server, functions are marked as safe for public access by having a " +"docstring, and in John Aycock's SPARK parsing framework, docstrings hold " "parts of the BNF grammar to be parsed. This overloading is unfortunate, " -"since docstrings are really intended to hold a function's documentation; for" -" example, it means you can't properly document functions intended for " -"private use in Zope." +"since docstrings are really intended to hold a function's documentation; for " +"example, it means you can't properly document functions intended for private " +"use in Zope." #: ../../whatsnew/2.1.rst:435 msgid "" @@ -810,18 +800,18 @@ msgstr "" #: ../../whatsnew/2.1.rst:444 msgid "" -"The dictionary containing attributes can be accessed as the function's " -":attr:`~object.__dict__`. Unlike the :attr:`~object.__dict__` attribute of " -"class instances, in functions you can actually assign a new dictionary to " -":attr:`~object.__dict__`, though the new value is restricted to a regular " -"Python dictionary; you *can't* be tricky and set it to a :class:`UserDict` " +"The dictionary containing attributes can be accessed as the function's :attr:" +"`~object.__dict__`. Unlike the :attr:`~object.__dict__` attribute of class " +"instances, in functions you can actually assign a new dictionary to :attr:" +"`~object.__dict__`, though the new value is restricted to a regular Python " +"dictionary; you *can't* be tricky and set it to a :class:`UserDict` " "instance, or any other random object that behaves like a mapping." msgstr "" -"The dictionary containing attributes can be accessed as the function's " -":attr:`~object.__dict__`. Unlike the :attr:`~object.__dict__` attribute of " -"class instances, in functions you can actually assign a new dictionary to " -":attr:`~object.__dict__`, though the new value is restricted to a regular " -"Python dictionary; you *can't* be tricky and set it to a :class:`UserDict` " +"The dictionary containing attributes can be accessed as the function's :attr:" +"`~object.__dict__`. Unlike the :attr:`~object.__dict__` attribute of class " +"instances, in functions you can actually assign a new dictionary to :attr:" +"`~object.__dict__`, though the new value is restricted to a regular Python " +"dictionary; you *can't* be tricky and set it to a :class:`UserDict` " "instance, or any other random object that behaves like a mapping." #: ../../whatsnew/2.1.rst:454 @@ -838,13 +828,13 @@ msgstr "PEP 235: Importing Modules on Case-Insensitive Platforms" #: ../../whatsnew/2.1.rst:463 msgid "" -"Some operating systems have filesystems that are case-insensitive, MacOS and" -" Windows being the primary examples; on these systems, it's impossible to " +"Some operating systems have filesystems that are case-insensitive, MacOS and " +"Windows being the primary examples; on these systems, it's impossible to " "distinguish the filenames ``FILE.PY`` and ``file.py``, even though they do " "store the file's name in its original case (they're case-preserving, too)." msgstr "" -"Some operating systems have filesystems that are case-insensitive, MacOS and" -" Windows being the primary examples; on these systems, it's impossible to " +"Some operating systems have filesystems that are case-insensitive, MacOS and " +"Windows being the primary examples; on these systems, it's impossible to " "distinguish the filenames ``FILE.PY`` and ``file.py``, even though they do " "store the file's name in its original case (they're case-preserving, too)." @@ -853,18 +843,16 @@ msgid "" "In Python 2.1, the :keyword:`import` statement will work to simulate case-" "sensitivity on case-insensitive platforms. Python will now search for the " "first case-sensitive match by default, raising an :exc:`ImportError` if no " -"such file is found, so ``import file`` will not import a module named " -"``FILE.PY``. Case-insensitive matching can be requested by setting the " -":envvar:`PYTHONCASEOK` environment variable before starting the Python " -"interpreter." +"such file is found, so ``import file`` will not import a module named ``FILE." +"PY``. Case-insensitive matching can be requested by setting the :envvar:" +"`PYTHONCASEOK` environment variable before starting the Python interpreter." msgstr "" "In Python 2.1, the :keyword:`import` statement will work to simulate case-" "sensitivity on case-insensitive platforms. Python will now search for the " "first case-sensitive match by default, raising an :exc:`ImportError` if no " -"such file is found, so ``import file`` will not import a module named " -"``FILE.PY``. Case-insensitive matching can be requested by setting the " -":envvar:`PYTHONCASEOK` environment variable before starting the Python " -"interpreter." +"such file is found, so ``import file`` will not import a module named ``FILE." +"PY``. Case-insensitive matching can be requested by setting the :envvar:" +"`PYTHONCASEOK` environment variable before starting the Python interpreter." #: ../../whatsnew/2.1.rst:479 msgid "PEP 217: Interactive Display Hook" @@ -908,8 +896,8 @@ msgstr "" #: ../../whatsnew/2.1.rst:515 msgid "" -"Extension types can now set the type flag ``Py_TPFLAGS_CHECKTYPES`` in their" -" ``PyTypeObject`` structure to indicate that they support the new coercion " +"Extension types can now set the type flag ``Py_TPFLAGS_CHECKTYPES`` in their " +"``PyTypeObject`` structure to indicate that they support the new coercion " "model. In such extension types, the numeric slot functions can no longer " "assume that they'll be passed two arguments of the same type; instead they " "may be passed two arguments of differing types, and can then perform their " @@ -923,8 +911,8 @@ msgid "" "not exist (perhaps raising a :exc:`TypeError`, perhaps trying another " "object's numeric methods)." msgstr "" -"Extension types can now set the type flag ``Py_TPFLAGS_CHECKTYPES`` in their" -" ``PyTypeObject`` structure to indicate that they support the new coercion " +"Extension types can now set the type flag ``Py_TPFLAGS_CHECKTYPES`` in their " +"``PyTypeObject`` structure to indicate that they support the new coercion " "model. In such extension types, the numeric slot functions can no longer " "assume that they'll be passed two arguments of the same type; instead they " "may be passed two arguments of differing types, and can then perform their " @@ -944,12 +932,12 @@ msgstr ":pep:`208` - Reworking the Coercion Model" #: ../../whatsnew/2.1.rst:533 msgid "" -"Written and implemented by Neil Schemenauer, heavily based upon earlier work" -" by Marc-André Lemburg. Read this to understand the fine points of how " +"Written and implemented by Neil Schemenauer, heavily based upon earlier work " +"by Marc-André Lemburg. Read this to understand the fine points of how " "numeric operations will now be processed at the C level." msgstr "" -"Written and implemented by Neil Schemenauer, heavily based upon earlier work" -" by Marc-André Lemburg. Read this to understand the fine points of how " +"Written and implemented by Neil Schemenauer, heavily based upon earlier work " +"by Marc-André Lemburg. Read this to understand the fine points of how " "numeric operations will now be processed at the C level." #: ../../whatsnew/2.1.rst:541 @@ -960,25 +948,23 @@ msgstr "PEP 241: Metadata in Python Packages" msgid "" "A common complaint from Python users is that there's no single catalog of " "all the Python modules in existence. T. Middleton's Vaults of Parnassus at " -"http://www.vex.net/parnassus/ are the largest catalog of Python modules, but" -" registering software at the Vaults is optional, and many people don't " -"bother." +"http://www.vex.net/parnassus/ are the largest catalog of Python modules, but " +"registering software at the Vaults is optional, and many people don't bother." msgstr "" "A common complaint from Python users is that there's no single catalog of " "all the Python modules in existence. T. Middleton's Vaults of Parnassus at " -"http://www.vex.net/parnassus/ are the largest catalog of Python modules, but" -" registering software at the Vaults is optional, and many people don't " -"bother." +"http://www.vex.net/parnassus/ are the largest catalog of Python modules, but " +"registering software at the Vaults is optional, and many people don't bother." #: ../../whatsnew/2.1.rst:548 msgid "" "As a first small step toward fixing the problem, Python software packaged " -"using the Distutils :command:`sdist` command will include a file named :file" -":`PKG-INFO` containing information about the package such as its name, " +"using the Distutils :command:`sdist` command will include a file named :file:" +"`PKG-INFO` containing information about the package such as its name, " "version, and author (metadata, in cataloguing terminology). PEP 241 " -"contains the full list of fields that can be present in the :file:`PKG-INFO`" -" file. As people began to package their software using Python 2.1, more and" -" more packages will include metadata, making it possible to build automated " +"contains the full list of fields that can be present in the :file:`PKG-INFO` " +"file. As people began to package their software using Python 2.1, more and " +"more packages will include metadata, making it possible to build automated " "cataloguing systems and experiment with them. With the result experience, " "perhaps it'll be possible to design a really good catalog and then build " "support for it into Python 2.2. For example, the Distutils :command:`sdist` " @@ -986,12 +972,12 @@ msgid "" "would automatically upload your package to a catalog server." msgstr "" "As a first small step toward fixing the problem, Python software packaged " -"using the Distutils :command:`sdist` command will include a file named :file" -":`PKG-INFO` containing information about the package such as its name, " +"using the Distutils :command:`sdist` command will include a file named :file:" +"`PKG-INFO` containing information about the package such as its name, " "version, and author (metadata, in cataloguing terminology). PEP 241 " -"contains the full list of fields that can be present in the :file:`PKG-INFO`" -" file. As people began to package their software using Python 2.1, more and" -" more packages will include metadata, making it possible to build automated " +"contains the full list of fields that can be present in the :file:`PKG-INFO` " +"file. As people began to package their software using Python 2.1, more and " +"more packages will include metadata, making it possible to build automated " "cataloguing systems and experiment with them. With the result experience, " "perhaps it'll be possible to design a really good catalog and then build " "support for it into Python 2.2. For example, the Distutils :command:`sdist` " @@ -1004,15 +990,15 @@ msgid "" "not using Python 2.1, since a new release of the Distutils will be made for " "users of earlier Python versions. Version 1.0.2 of the Distutils includes " "the changes described in PEP 241, as well as various bugfixes and " -"enhancements. It will be available from the Distutils SIG at " -"https://www.python.org/community/sigs/current/distutils-sig/." +"enhancements. It will be available from the Distutils SIG at https://www." +"python.org/community/sigs/current/distutils-sig/." msgstr "" "You can start creating packages containing :file:`PKG-INFO` even if you're " "not using Python 2.1, since a new release of the Distutils will be made for " "users of earlier Python versions. Version 1.0.2 of the Distutils includes " "the changes described in PEP 241, as well as various bugfixes and " -"enhancements. It will be available from the Distutils SIG at " -"https://www.python.org/community/sigs/current/distutils-sig/." +"enhancements. It will be available from the Distutils SIG at https://www." +"python.org/community/sigs/current/distutils-sig/." #: ../../whatsnew/2.1.rst:571 msgid ":pep:`241` - Metadata for Python Software Packages" @@ -1024,11 +1010,11 @@ msgstr ":pep:`243` - Module Repository Upload Mechanism" #: ../../whatsnew/2.1.rst:574 msgid "" -"Written by Sean Reifschneider, this draft PEP describes a proposed mechanism" -" for uploading Python packages to a central server." +"Written by Sean Reifschneider, this draft PEP describes a proposed mechanism " +"for uploading Python packages to a central server." msgstr "" -"Written by Sean Reifschneider, this draft PEP describes a proposed mechanism" -" for uploading Python packages to a central server." +"Written by Sean Reifschneider, this draft PEP describes a proposed mechanism " +"for uploading Python packages to a central server." #: ../../whatsnew/2.1.rst:581 msgid "New and Improved Modules" @@ -1038,43 +1024,43 @@ msgstr "Módulos Novos ou Aprimorados" msgid "" "Ka-Ping Yee contributed two new modules: :mod:`inspect.py`, a module for " "getting information about live Python code, and :mod:`pydoc.py`, a module " -"for interactively converting docstrings to HTML or text. As a bonus, " -":file:`Tools/scripts/pydoc`, which is now automatically installed, uses " -":mod:`pydoc.py` to display documentation given a Python module, package, or " -"class name. For example, ``pydoc xml.dom`` displays the following::" +"for interactively converting docstrings to HTML or text. As a bonus, :file:" +"`Tools/scripts/pydoc`, which is now automatically installed, uses :mod:" +"`pydoc.py` to display documentation given a Python module, package, or class " +"name. For example, ``pydoc xml.dom`` displays the following::" msgstr "" "Ka-Ping Yee contributed two new modules: :mod:`inspect.py`, a module for " "getting information about live Python code, and :mod:`pydoc.py`, a module " -"for interactively converting docstrings to HTML or text. As a bonus, " -":file:`Tools/scripts/pydoc`, which is now automatically installed, uses " -":mod:`pydoc.py` to display documentation given a Python module, package, or " -"class name. For example, ``pydoc xml.dom`` displays the following::" +"for interactively converting docstrings to HTML or text. As a bonus, :file:" +"`Tools/scripts/pydoc`, which is now automatically installed, uses :mod:" +"`pydoc.py` to display documentation given a Python module, package, or class " +"name. For example, ``pydoc xml.dom`` displays the following::" #: ../../whatsnew/2.1.rst:605 msgid "" -":file:`pydoc` also includes a Tk-based interactive help browser. " -":file:`pydoc` quickly becomes addictive; try it out!" +":file:`pydoc` also includes a Tk-based interactive help browser. :file:" +"`pydoc` quickly becomes addictive; try it out!" msgstr "" -":file:`pydoc` also includes a Tk-based interactive help browser. " -":file:`pydoc` quickly becomes addictive; try it out!" +":file:`pydoc` also includes a Tk-based interactive help browser. :file:" +"`pydoc` quickly becomes addictive; try it out!" #: ../../whatsnew/2.1.rst:608 msgid "" "Two different modules for unit testing were added to the standard library. " "The :mod:`doctest` module, contributed by Tim Peters, provides a testing " -"framework based on running embedded examples in docstrings and comparing the" -" results against the expected output. PyUnit, contributed by Steve Purcell," -" is a unit testing framework inspired by JUnit, which was in turn an " -"adaptation of Kent Beck's Smalltalk testing framework. See " -"http://pyunit.sourceforge.net/ for more information about PyUnit." +"framework based on running embedded examples in docstrings and comparing the " +"results against the expected output. PyUnit, contributed by Steve Purcell, " +"is a unit testing framework inspired by JUnit, which was in turn an " +"adaptation of Kent Beck's Smalltalk testing framework. See http://pyunit." +"sourceforge.net/ for more information about PyUnit." msgstr "" "Two different modules for unit testing were added to the standard library. " "The :mod:`doctest` module, contributed by Tim Peters, provides a testing " -"framework based on running embedded examples in docstrings and comparing the" -" results against the expected output. PyUnit, contributed by Steve Purcell," -" is a unit testing framework inspired by JUnit, which was in turn an " -"adaptation of Kent Beck's Smalltalk testing framework. See " -"http://pyunit.sourceforge.net/ for more information about PyUnit." +"framework based on running embedded examples in docstrings and comparing the " +"results against the expected output. PyUnit, contributed by Steve Purcell, " +"is a unit testing framework inspired by JUnit, which was in turn an " +"adaptation of Kent Beck's Smalltalk testing framework. See http://pyunit." +"sourceforge.net/ for more information about PyUnit." #: ../../whatsnew/2.1.rst:616 msgid "" @@ -1094,70 +1080,70 @@ msgstr "" #: ../../whatsnew/2.1.rst:622 msgid "" -":mod:`curses.panel`, a wrapper for the panel library, part of ncurses and of" -" SYSV curses, was contributed by Thomas Gellekum. The panel library " -"provides windows with the additional feature of depth. Windows can be moved " -"higher or lower in the depth ordering, and the panel library figures out " -"where panels overlap and which sections are visible." +":mod:`curses.panel`, a wrapper for the panel library, part of ncurses and of " +"SYSV curses, was contributed by Thomas Gellekum. The panel library provides " +"windows with the additional feature of depth. Windows can be moved higher or " +"lower in the depth ordering, and the panel library figures out where panels " +"overlap and which sections are visible." msgstr "" -":mod:`curses.panel`, a wrapper for the panel library, part of ncurses and of" -" SYSV curses, was contributed by Thomas Gellekum. The panel library " -"provides windows with the additional feature of depth. Windows can be moved " -"higher or lower in the depth ordering, and the panel library figures out " -"where panels overlap and which sections are visible." +":mod:`curses.panel`, a wrapper for the panel library, part of ncurses and of " +"SYSV curses, was contributed by Thomas Gellekum. The panel library provides " +"windows with the additional feature of depth. Windows can be moved higher or " +"lower in the depth ordering, and the panel library figures out where panels " +"overlap and which sections are visible." #: ../../whatsnew/2.1.rst:628 msgid "" "The PyXML package has gone through a few releases since Python 2.0, and " "Python 2.1 includes an updated version of the :mod:`xml` package. Some of " -"the noteworthy changes include support for Expat 1.2 and later versions, the" -" ability for Expat parsers to handle files in any encoding supported by " +"the noteworthy changes include support for Expat 1.2 and later versions, the " +"ability for Expat parsers to handle files in any encoding supported by " "Python, and various bugfixes for SAX, DOM, and the :mod:`minidom` module." msgstr "" "The PyXML package has gone through a few releases since Python 2.0, and " "Python 2.1 includes an updated version of the :mod:`xml` package. Some of " -"the noteworthy changes include support for Expat 1.2 and later versions, the" -" ability for Expat parsers to handle files in any encoding supported by " +"the noteworthy changes include support for Expat 1.2 and later versions, the " +"ability for Expat parsers to handle files in any encoding supported by " "Python, and various bugfixes for SAX, DOM, and the :mod:`minidom` module." #: ../../whatsnew/2.1.rst:634 msgid "" -"Ping also contributed another hook for handling uncaught exceptions. " -":func:`sys.excepthook` can be set to a callable object. When an exception " -"isn't caught by any :keyword:`try`...\\ :keyword:`except` blocks, the " -"exception will be passed to :func:`sys.excepthook`, which can then do " -"whatever it likes. At the Ninth Python Conference, Ping demonstrated an " -"application for this hook: printing an extended traceback that not only " -"lists the stack frames, but also lists the function arguments and the local " -"variables for each frame." -msgstr "" -"Ping also contributed another hook for handling uncaught exceptions. " -":func:`sys.excepthook` can be set to a callable object. When an exception " -"isn't caught by any :keyword:`try`...\\ :keyword:`except` blocks, the " -"exception will be passed to :func:`sys.excepthook`, which can then do " -"whatever it likes. At the Ninth Python Conference, Ping demonstrated an " -"application for this hook: printing an extended traceback that not only " -"lists the stack frames, but also lists the function arguments and the local " -"variables for each frame." +"Ping also contributed another hook for handling uncaught exceptions. :func:" +"`sys.excepthook` can be set to a callable object. When an exception isn't " +"caught by any :keyword:`try`...\\ :keyword:`except` blocks, the exception " +"will be passed to :func:`sys.excepthook`, which can then do whatever it " +"likes. At the Ninth Python Conference, Ping demonstrated an application for " +"this hook: printing an extended traceback that not only lists the stack " +"frames, but also lists the function arguments and the local variables for " +"each frame." +msgstr "" +"Ping also contributed another hook for handling uncaught exceptions. :func:" +"`sys.excepthook` can be set to a callable object. When an exception isn't " +"caught by any :keyword:`try`...\\ :keyword:`except` blocks, the exception " +"will be passed to :func:`sys.excepthook`, which can then do whatever it " +"likes. At the Ninth Python Conference, Ping demonstrated an application for " +"this hook: printing an extended traceback that not only lists the stack " +"frames, but also lists the function arguments and the local variables for " +"each frame." #: ../../whatsnew/2.1.rst:642 msgid "" -"Various functions in the :mod:`time` module, such as :func:`asctime` and " -":func:`localtime`, require a floating point argument containing the time in " +"Various functions in the :mod:`time` module, such as :func:`asctime` and :" +"func:`localtime`, require a floating point argument containing the time in " "seconds since the epoch. The most common use of these functions is to work " "with the current time, so the floating point argument has been made " "optional; when a value isn't provided, the current time will be used. For " -"example, log file entries usually need a string containing the current time;" -" in Python 2.1, ``time.asctime()`` can be used, instead of the lengthier " +"example, log file entries usually need a string containing the current time; " +"in Python 2.1, ``time.asctime()`` can be used, instead of the lengthier " "``time.asctime(time.localtime(time.time()))`` that was previously required." msgstr "" -"Various functions in the :mod:`time` module, such as :func:`asctime` and " -":func:`localtime`, require a floating point argument containing the time in " +"Various functions in the :mod:`time` module, such as :func:`asctime` and :" +"func:`localtime`, require a floating point argument containing the time in " "seconds since the epoch. The most common use of these functions is to work " "with the current time, so the floating point argument has been made " "optional; when a value isn't provided, the current time will be used. For " -"example, log file entries usually need a string containing the current time;" -" in Python 2.1, ``time.asctime()`` can be used, instead of the lengthier " +"example, log file entries usually need a string containing the current time; " +"in Python 2.1, ``time.asctime()`` can be used, instead of the lengthier " "``time.asctime(time.localtime(time.time()))`` that was previously required." #: ../../whatsnew/2.1.rst:651 @@ -1169,8 +1155,8 @@ msgid "" "The :mod:`ftplib` module now defaults to retrieving files in passive mode, " "because passive mode is more likely to work from behind a firewall. This " "request came from the Debian bug tracking system, since other Debian " -"packages use :mod:`ftplib` to retrieve files and then don't work from behind" -" a firewall. It's deemed unlikely that this will cause problems for anyone, " +"packages use :mod:`ftplib` to retrieve files and then don't work from behind " +"a firewall. It's deemed unlikely that this will cause problems for anyone, " "because Netscape defaults to passive mode and few people complain, but if " "passive mode is unsuitable for your application or network setup, call " "``set_pasv(0)`` on FTP objects to disable passive mode." @@ -1178,8 +1164,8 @@ msgstr "" "The :mod:`ftplib` module now defaults to retrieving files in passive mode, " "because passive mode is more likely to work from behind a firewall. This " "request came from the Debian bug tracking system, since other Debian " -"packages use :mod:`ftplib` to retrieve files and then don't work from behind" -" a firewall. It's deemed unlikely that this will cause problems for anyone, " +"packages use :mod:`ftplib` to retrieve files and then don't work from behind " +"a firewall. It's deemed unlikely that this will cause problems for anyone, " "because Netscape defaults to passive mode and few people complain, but if " "passive mode is unsuitable for your application or network setup, call " "``set_pasv(0)`` on FTP objects to disable passive mode." @@ -1195,28 +1181,28 @@ msgstr "" #: ../../whatsnew/2.1.rst:665 msgid "" "The :mod:`pstats` module now contains a simple interactive statistics " -"browser for displaying timing profiles for Python programs, invoked when the" -" module is run as a script. Contributed by Eric S. Raymond." +"browser for displaying timing profiles for Python programs, invoked when the " +"module is run as a script. Contributed by Eric S. Raymond." msgstr "" "The :mod:`pstats` module now contains a simple interactive statistics " -"browser for displaying timing profiles for Python programs, invoked when the" -" module is run as a script. Contributed by Eric S. Raymond." +"browser for displaying timing profiles for Python programs, invoked when the " +"module is run as a script. Contributed by Eric S. Raymond." #: ../../whatsnew/2.1.rst:669 msgid "" "A new implementation-dependent function, ``sys._getframe([depth])``, has " -"been added to return a given frame object from the current call stack. " -":func:`sys._getframe` returns the frame at the top of the call stack; if " -"the optional integer argument *depth* is supplied, the function returns the " -"frame that is *depth* calls below the top of the stack. For example, " -"``sys._getframe(1)`` returns the caller's frame object." +"been added to return a given frame object from the current call stack. :func:" +"`sys._getframe` returns the frame at the top of the call stack; if the " +"optional integer argument *depth* is supplied, the function returns the " +"frame that is *depth* calls below the top of the stack. For example, ``sys." +"_getframe(1)`` returns the caller's frame object." msgstr "" "A new implementation-dependent function, ``sys._getframe([depth])``, has " -"been added to return a given frame object from the current call stack. " -":func:`sys._getframe` returns the frame at the top of the call stack; if " -"the optional integer argument *depth* is supplied, the function returns the " -"frame that is *depth* calls below the top of the stack. For example, " -"``sys._getframe(1)`` returns the caller's frame object." +"been added to return a given frame object from the current call stack. :func:" +"`sys._getframe` returns the frame at the top of the call stack; if the " +"optional integer argument *depth* is supplied, the function returns the " +"frame that is *depth* calls below the top of the stack. For example, ``sys." +"_getframe(1)`` returns the caller's frame object." #: ../../whatsnew/2.1.rst:676 msgid "" @@ -1248,49 +1234,47 @@ msgstr "" msgid "" "A specialized object allocator is now optionally available, that should be " "faster than the system :func:`malloc` and have less memory overhead. The " -"allocator uses C's :func:`malloc` function to get large pools of memory, and" -" then fulfills smaller memory requests from these pools. It can be enabled " -"by providing the :option:`!--with-pymalloc` option to the " -":program:`configure` script; see :file:`Objects/obmalloc.c` for the " -"implementation details." +"allocator uses C's :func:`malloc` function to get large pools of memory, and " +"then fulfills smaller memory requests from these pools. It can be enabled " +"by providing the :option:`!--with-pymalloc` option to the :program:" +"`configure` script; see :file:`Objects/obmalloc.c` for the implementation " +"details." msgstr "" "A specialized object allocator is now optionally available, that should be " "faster than the system :func:`malloc` and have less memory overhead. The " -"allocator uses C's :func:`malloc` function to get large pools of memory, and" -" then fulfills smaller memory requests from these pools. It can be enabled " -"by providing the :option:`!--with-pymalloc` option to the " -":program:`configure` script; see :file:`Objects/obmalloc.c` for the " -"implementation details." +"allocator uses C's :func:`malloc` function to get large pools of memory, and " +"then fulfills smaller memory requests from these pools. It can be enabled " +"by providing the :option:`!--with-pymalloc` option to the :program:" +"`configure` script; see :file:`Objects/obmalloc.c` for the implementation " +"details." #: ../../whatsnew/2.1.rst:698 msgid "" "Authors of C extension modules should test their code with the object " -"allocator enabled, because some incorrect code may break, causing core dumps" -" at runtime. There are a bunch of memory allocation functions in Python's C " -"API that have previously been just aliases for the C library's " -":func:`malloc` and :func:`free`, meaning that if you accidentally called " +"allocator enabled, because some incorrect code may break, causing core dumps " +"at runtime. There are a bunch of memory allocation functions in Python's C " +"API that have previously been just aliases for the C library's :func:" +"`malloc` and :func:`free`, meaning that if you accidentally called " "mismatched functions, the error wouldn't be noticeable. When the object " -"allocator is enabled, these functions aren't aliases of :func:`malloc` and " -":func:`free` any more, and calling the wrong function to free memory will " -"get you a core dump. For example, if memory was allocated using " -":func:`PyMem_New`, it has to be freed using :func:`PyMem_Del`, not " -":func:`free`. A few modules included with Python fell afoul of this and had" -" to be fixed; doubtless there are more third-party modules that will have " -"the same problem." +"allocator is enabled, these functions aren't aliases of :func:`malloc` and :" +"func:`free` any more, and calling the wrong function to free memory will get " +"you a core dump. For example, if memory was allocated using :func:" +"`PyMem_New`, it has to be freed using :func:`PyMem_Del`, not :func:`free`. " +"A few modules included with Python fell afoul of this and had to be fixed; " +"doubtless there are more third-party modules that will have the same problem." msgstr "" "Authors of C extension modules should test their code with the object " -"allocator enabled, because some incorrect code may break, causing core dumps" -" at runtime. There are a bunch of memory allocation functions in Python's C " -"API that have previously been just aliases for the C library's " -":func:`malloc` and :func:`free`, meaning that if you accidentally called " +"allocator enabled, because some incorrect code may break, causing core dumps " +"at runtime. There are a bunch of memory allocation functions in Python's C " +"API that have previously been just aliases for the C library's :func:" +"`malloc` and :func:`free`, meaning that if you accidentally called " "mismatched functions, the error wouldn't be noticeable. When the object " -"allocator is enabled, these functions aren't aliases of :func:`malloc` and " -":func:`free` any more, and calling the wrong function to free memory will " -"get you a core dump. For example, if memory was allocated using " -":func:`PyMem_New`, it has to be freed using :func:`PyMem_Del`, not " -":func:`free`. A few modules included with Python fell afoul of this and had" -" to be fixed; doubtless there are more third-party modules that will have " -"the same problem." +"allocator is enabled, these functions aren't aliases of :func:`malloc` and :" +"func:`free` any more, and calling the wrong function to free memory will get " +"you a core dump. For example, if memory was allocated using :func:" +"`PyMem_New`, it has to be freed using :func:`PyMem_Del`, not :func:`free`. " +"A few modules included with Python fell afoul of this and had to be fixed; " +"doubtless there are more third-party modules that will have the same problem." #: ../../whatsnew/2.1.rst:711 msgid "The object allocator was contributed by Vladimir Marangozov." @@ -1301,46 +1285,46 @@ msgid "" "The speed of line-oriented file I/O has been improved because people often " "complain about its lack of speed, and because it's often been used as a " "naïve benchmark. The :meth:`readline` method of file objects has therefore " -"been rewritten to be much faster. The exact amount of the speedup will vary" -" from platform to platform depending on how slow the C library's " -":func:`getc` was, but is around 66%, and potentially much faster on some " -"particular operating systems. Tim Peters did much of the benchmarking and " -"coding for this change, motivated by a discussion in comp.lang.python." +"been rewritten to be much faster. The exact amount of the speedup will vary " +"from platform to platform depending on how slow the C library's :func:`getc` " +"was, but is around 66%, and potentially much faster on some particular " +"operating systems. Tim Peters did much of the benchmarking and coding for " +"this change, motivated by a discussion in comp.lang.python." msgstr "" "The speed of line-oriented file I/O has been improved because people often " "complain about its lack of speed, and because it's often been used as a " "naïve benchmark. The :meth:`readline` method of file objects has therefore " -"been rewritten to be much faster. The exact amount of the speedup will vary" -" from platform to platform depending on how slow the C library's " -":func:`getc` was, but is around 66%, and potentially much faster on some " -"particular operating systems. Tim Peters did much of the benchmarking and " -"coding for this change, motivated by a discussion in comp.lang.python." +"been rewritten to be much faster. The exact amount of the speedup will vary " +"from platform to platform depending on how slow the C library's :func:`getc` " +"was, but is around 66%, and potentially much faster on some particular " +"operating systems. Tim Peters did much of the benchmarking and coding for " +"this change, motivated by a discussion in comp.lang.python." #: ../../whatsnew/2.1.rst:722 msgid "" -"A new module and method for file objects was also added, contributed by Jeff" -" Epler. The new method, :meth:`xreadlines`, is similar to the existing " -":func:`xrange` built-in. :func:`xreadlines` returns an opaque sequence " -"object that only supports being iterated over, reading a line on every " -"iteration but not reading the entire file into memory as the existing " -":meth:`readlines` method does. You'd use it like this::" +"A new module and method for file objects was also added, contributed by Jeff " +"Epler. The new method, :meth:`xreadlines`, is similar to the existing :func:" +"`xrange` built-in. :func:`xreadlines` returns an opaque sequence object " +"that only supports being iterated over, reading a line on every iteration " +"but not reading the entire file into memory as the existing :meth:" +"`readlines` method does. You'd use it like this::" msgstr "" -"A new module and method for file objects was also added, contributed by Jeff" -" Epler. The new method, :meth:`xreadlines`, is similar to the existing " -":func:`xrange` built-in. :func:`xreadlines` returns an opaque sequence " -"object that only supports being iterated over, reading a line on every " -"iteration but not reading the entire file into memory as the existing " -":meth:`readlines` method does. You'd use it like this::" +"A new module and method for file objects was also added, contributed by Jeff " +"Epler. The new method, :meth:`xreadlines`, is similar to the existing :func:" +"`xrange` built-in. :func:`xreadlines` returns an opaque sequence object " +"that only supports being iterated over, reading a line on every iteration " +"but not reading the entire file into memory as the existing :meth:" +"`readlines` method does. You'd use it like this::" #: ../../whatsnew/2.1.rst:733 msgid "" "For a fuller discussion of the line I/O changes, see the python-dev summary " -"for January 1--15, 2001 at https://mail.python.org/pipermail/python-" -"dev/2001-January/." +"for January 1--15, 2001 at https://mail.python.org/pipermail/python-dev/2001-" +"January/." msgstr "" "For a fuller discussion of the line I/O changes, see the python-dev summary " -"for January 1--15, 2001 at https://mail.python.org/pipermail/python-" -"dev/2001-January/." +"for January 1--15, 2001 at https://mail.python.org/pipermail/python-dev/2001-" +"January/." #: ../../whatsnew/2.1.rst:736 msgid "" @@ -1363,18 +1347,18 @@ msgstr "" #: ../../whatsnew/2.1.rst:744 msgid "" "Modules can now control which names are imported when ``from module import " -"*`` is used, by defining an ``__all__`` attribute containing a list of names" -" that will be imported. One common complaint is that if the module imports " +"*`` is used, by defining an ``__all__`` attribute containing a list of names " +"that will be imported. One common complaint is that if the module imports " "other modules such as :mod:`sys` or :mod:`string`, ``from module import *`` " -"will add them to the importing module's namespace. To fix this, simply list" -" the public names in ``__all__``::" +"will add them to the importing module's namespace. To fix this, simply list " +"the public names in ``__all__``::" msgstr "" "Modules can now control which names are imported when ``from module import " -"*`` is used, by defining an ``__all__`` attribute containing a list of names" -" that will be imported. One common complaint is that if the module imports " +"*`` is used, by defining an ``__all__`` attribute containing a list of names " +"that will be imported. One common complaint is that if the module imports " "other modules such as :mod:`sys` or :mod:`string`, ``from module import *`` " -"will add them to the importing module's namespace. To fix this, simply list" -" the public names in ``__all__``::" +"will add them to the importing module's namespace. To fix this, simply list " +"the public names in ``__all__``::" #: ../../whatsnew/2.1.rst:754 msgid "" @@ -1414,23 +1398,23 @@ msgstr "" #: ../../whatsnew/2.1.rst:769 msgid "" -"C extensions which import other modules have been changed to use " -":func:`PyImport_ImportModule`, which means that they will use any import " -"hooks that have been installed. This is also encouraged for third-party " +"C extensions which import other modules have been changed to use :func:" +"`PyImport_ImportModule`, which means that they will use any import hooks " +"that have been installed. This is also encouraged for third-party " "extensions that need to import some other module from C code." msgstr "" -"C extensions which import other modules have been changed to use " -":func:`PyImport_ImportModule`, which means that they will use any import " -"hooks that have been installed. This is also encouraged for third-party " +"C extensions which import other modules have been changed to use :func:" +"`PyImport_ImportModule`, which means that they will use any import hooks " +"that have been installed. This is also encouraged for third-party " "extensions that need to import some other module from C code." #: ../../whatsnew/2.1.rst:774 msgid "" -"The size of the Unicode character database was shrunk by another 340K thanks" -" to Fredrik Lundh." +"The size of the Unicode character database was shrunk by another 340K thanks " +"to Fredrik Lundh." msgstr "" -"The size of the Unicode character database was shrunk by another 340K thanks" -" to Fredrik Lundh." +"The size of the Unicode character database was shrunk by another 340K thanks " +"to Fredrik Lundh." #: ../../whatsnew/2.1.rst:777 msgid "" @@ -1445,12 +1429,12 @@ msgstr "" #: ../../whatsnew/2.1.rst:781 msgid "" "And there's the usual list of minor bugfixes, minor memory leaks, docstring " -"edits, and other tweaks, too lengthy to be worth itemizing; see the CVS logs" -" for the full details if you want them." +"edits, and other tweaks, too lengthy to be worth itemizing; see the CVS logs " +"for the full details if you want them." msgstr "" "And there's the usual list of minor bugfixes, minor memory leaks, docstring " -"edits, and other tweaks, too lengthy to be worth itemizing; see the CVS logs" -" for the full details if you want them." +"edits, and other tweaks, too lengthy to be worth itemizing; see the CVS logs " +"for the full details if you want them." #: ../../whatsnew/2.1.rst:789 msgid "Acknowledgements" @@ -1458,12 +1442,12 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.1.rst:791 msgid "" -"The author would like to thank the following people for offering suggestions" -" on various drafts of this article: Graeme Cross, David Goodger, Jay Graves," -" Michael Hudson, Marc-André Lemburg, Fredrik Lundh, Neil Schemenauer, Thomas" -" Wouters." +"The author would like to thank the following people for offering suggestions " +"on various drafts of this article: Graeme Cross, David Goodger, Jay Graves, " +"Michael Hudson, Marc-André Lemburg, Fredrik Lundh, Neil Schemenauer, Thomas " +"Wouters." msgstr "" -"The author would like to thank the following people for offering suggestions" -" on various drafts of this article: Graeme Cross, David Goodger, Jay Graves," -" Michael Hudson, Marc-André Lemburg, Fredrik Lundh, Neil Schemenauer, Thomas" -" Wouters." +"The author would like to thank the following people for offering suggestions " +"on various drafts of this article: Graeme Cross, David Goodger, Jay Graves, " +"Michael Hudson, Marc-André Lemburg, Fredrik Lundh, Neil Schemenauer, Thomas " +"Wouters." diff --git a/whatsnew/2.2.po b/whatsnew/2.2.po index 639f9e6f7..143cd14b3 100644 --- a/whatsnew/2.2.po +++ b/whatsnew/2.2.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ruan Aragão , 2019 # Victor Matheus Castro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Victor Matheus Castro , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -59,8 +61,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:24 msgid "" "This article doesn't attempt to provide a complete specification of the new " -"features, but instead provides a convenient overview. For full details, you" -" should refer to the documentation for Python 2.2, such as the `Python " +"features, but instead provides a convenient overview. For full details, you " +"should refer to the documentation for Python 2.2, such as the `Python " "Library Reference `_ and the " "`Python Reference Manual `_. If " "you want to understand the complete implementation and design rationale for " @@ -74,8 +76,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:45 msgid "" "The largest and most far-reaching changes in Python 2.2 are to Python's " -"model of objects and classes. The changes should be backward compatible, so" -" it's likely that your code will continue to run unchanged, but the changes " +"model of objects and classes. The changes should be backward compatible, so " +"it's likely that your code will continue to run unchanged, but the changes " "provide some amazing new capabilities. Before beginning this, the longest " "and most complicated section of this article, I'll provide an overview of " "the changes and offer some comments." @@ -83,13 +85,13 @@ msgstr "" #: ../../whatsnew/2.2.rst:52 msgid "" -"A long time ago I wrote a Web page listing flaws in Python's design. One of" -" the most significant flaws was that it's impossible to subclass Python " -"types implemented in C. In particular, it's not possible to subclass built-" -"in types, so you can't just subclass, say, lists in order to add a single " +"A long time ago I wrote a Web page listing flaws in Python's design. One of " +"the most significant flaws was that it's impossible to subclass Python types " +"implemented in C. In particular, it's not possible to subclass built-in " +"types, so you can't just subclass, say, lists in order to add a single " "useful method to them. The :mod:`UserList` module provides a class that " -"supports all of the methods of lists and that can be subclassed further, but" -" there's lots of C code that expects a regular Python list and won't accept " +"supports all of the methods of lists and that can be subclassed further, but " +"there's lots of C code that expects a regular Python list and won't accept " "a :class:`UserList` instance." msgstr "" @@ -129,12 +131,12 @@ msgstr "" #: ../../whatsnew/2.2.rst:80 msgid "" -"Some users have voiced concern about all these changes. Sure, they say, the" -" new features are neat and lend themselves to all sorts of tricks that " +"Some users have voiced concern about all these changes. Sure, they say, the " +"new features are neat and lend themselves to all sorts of tricks that " "weren't possible in previous versions of Python, but they also make the " "language more complicated. Some people have said that they've always " -"recommended Python for its simplicity, and feel that its simplicity is being" -" lost." +"recommended Python for its simplicity, and feel that its simplicity is being " +"lost." msgstr "" #: ../../whatsnew/2.2.rst:86 @@ -151,8 +153,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:93 msgid "" "I'm not going to attempt to cover every single corner case and small change " -"that were required to make the new features work. Instead this section will" -" paint only the broad strokes. See section :ref:`sect-rellinks`, \"Related " +"that were required to make the new features work. Instead this section will " +"paint only the broad strokes. See section :ref:`sect-rellinks`, \"Related " "Links\", for further sources of information about Python 2.2's new object " "model." msgstr "" @@ -165,8 +167,8 @@ msgstr "" msgid "" "First, you should know that Python 2.2 really has two kinds of classes: " "classic or old-style classes, and new-style classes. The old-style class " -"model is exactly the same as the class model in earlier versions of Python." -" All the new features described in this section apply only to new-style " +"model is exactly the same as the class model in earlier versions of Python. " +"All the new features described in this section apply only to new-style " "classes. This divergence isn't intended to last forever; eventually old-" "style classes will be dropped, possibly in Python 3.0." msgstr "" @@ -175,40 +177,40 @@ msgstr "" msgid "" "So how do you define a new-style class? You do it by subclassing an " "existing new-style class. Most of Python's built-in types, such as " -"integers, lists, dictionaries, and even files, are new-style classes now. A" -" new-style class named :class:`object`, the base class for all built-in " +"integers, lists, dictionaries, and even files, are new-style classes now. A " +"new-style class named :class:`object`, the base class for all built-in " "types, has also been added so if no built-in type is suitable, you can just " "subclass :class:`object`::" msgstr "" #: ../../whatsnew/2.2.rst:121 msgid "" -"This means that :keyword:`class` statements that don't have any base classes" -" are always classic classes in Python 2.2. (Actually you can also change " -"this by setting a module-level variable named :attr:`__metaclass__` --- see " -":pep:`253` for the details --- but it's easier to just subclass " -":class:`object`.)" +"This means that :keyword:`class` statements that don't have any base classes " +"are always classic classes in Python 2.2. (Actually you can also change " +"this by setting a module-level variable named :attr:`__metaclass__` --- see :" +"pep:`253` for the details --- but it's easier to just subclass :class:" +"`object`.)" msgstr "" #: ../../whatsnew/2.2.rst:126 msgid "" "The type objects for the built-in types are available as built-ins, named " -"using a clever trick. Python has always had built-in functions named " -":func:`int`, :func:`float`, and :func:`str`. In 2.2, they aren't functions " -"any more, but type objects that behave as factories when called. ::" +"using a clever trick. Python has always had built-in functions named :func:" +"`int`, :func:`float`, and :func:`str`. In 2.2, they aren't functions any " +"more, but type objects that behave as factories when called. ::" msgstr "" #: ../../whatsnew/2.2.rst:136 msgid "" -"To make the set of types complete, new type objects such as :func:`dict` and" -" :func:`file` have been added. Here's a more interesting example, adding a " -":meth:`lock` method to file objects::" +"To make the set of types complete, new type objects such as :func:`dict` " +"and :func:`file` have been added. Here's a more interesting example, adding " +"a :meth:`lock` method to file objects::" msgstr "" #: ../../whatsnew/2.2.rst:146 msgid "" -"The now-obsolete :mod:`posixfile` module contained a class that emulated all" -" of a file object's methods and also added a :meth:`lock` method, but this " +"The now-obsolete :mod:`posixfile` module contained a class that emulated all " +"of a file object's methods and also added a :meth:`lock` method, but this " "class couldn't be passed to internal functions that expected a built-in " "file, something which is possible with our new :class:`LockableFile`." msgstr "" @@ -219,14 +221,14 @@ msgstr "" #: ../../whatsnew/2.2.rst:155 msgid "" -"In previous versions of Python, there was no consistent way to discover what" -" attributes and methods were supported by an object. There were some " -"informal conventions, such as defining :attr:`__members__` and " -":attr:`__methods__` attributes that were lists of names, but often the " -"author of an extension type or a class wouldn't bother to define them. You " -"could fall back on inspecting the :attr:`~object.__dict__` of an object, but" -" when class inheritance or an arbitrary :meth:`__getattr__` hook were in use" -" this could still be inaccurate." +"In previous versions of Python, there was no consistent way to discover what " +"attributes and methods were supported by an object. There were some informal " +"conventions, such as defining :attr:`__members__` and :attr:`__methods__` " +"attributes that were lists of names, but often the author of an extension " +"type or a class wouldn't bother to define them. You could fall back on " +"inspecting the :attr:`~object.__dict__` of an object, but when class " +"inheritance or an arbitrary :meth:`__getattr__` hook were in use this could " +"still be inaccurate." msgstr "" #: ../../whatsnew/2.2.rst:163 @@ -234,14 +236,14 @@ msgid "" "The one big idea underlying the new class model is that an API for " "describing the attributes of an object using :dfn:`descriptors` has been " "formalized. Descriptors specify the value of an attribute, stating whether " -"it's a method or a field. With the descriptor API, static methods and class" -" methods become possible, as well as more exotic constructs." +"it's a method or a field. With the descriptor API, static methods and class " +"methods become possible, as well as more exotic constructs." msgstr "" #: ../../whatsnew/2.2.rst:169 msgid "" -"Attribute descriptors are objects that live inside class objects, and have a" -" few attributes of their own:" +"Attribute descriptors are objects that live inside class objects, and have a " +"few attributes of their own:" msgstr "" #: ../../whatsnew/2.2.rst:172 @@ -278,8 +280,8 @@ msgid "" "For methods, :meth:`descriptor.__get__` returns a temporary object that's " "callable, and wraps up the instance and the method to be called on it. This " "is also why static methods and class methods are now possible; they have " -"descriptors that wrap up just the method, or the method and the class. As a" -" brief explanation of these new kinds of methods, static methods aren't " +"descriptors that wrap up just the method, or the method and the class. As a " +"brief explanation of these new kinds of methods, static methods aren't " "passed the instance, and therefore resemble regular functions. Class " "methods are passed the class of the object, but not the object itself. " "Static and class methods are defined like this::" @@ -296,8 +298,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:213 msgid "" -"More new features, such as slots and properties, are also implemented as new" -" kinds of descriptors, and it's not difficult to write a descriptor class " +"More new features, such as slots and properties, are also implemented as new " +"kinds of descriptors, and it's not difficult to write a descriptor class " "that does something novel. For example, it would be possible to write a " "descriptor class that made it possible to write Eiffel-style preconditions " "and postconditions for a method. A class that used this feature might be " @@ -307,8 +309,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:235 msgid "" "Note that a person using the new :func:`eiffelmethod` doesn't have to " -"understand anything about descriptors. This is why I think the new features" -" don't increase the basic complexity of the language. There will be a few " +"understand anything about descriptors. This is why I think the new features " +"don't increase the basic complexity of the language. There will be a few " "wizards who need to know about it in order to write :func:`eiffelmethod` or " "the ZODB or whatever, but most users will just write code on top of the " "resulting libraries and ignore the implementation details." @@ -321,25 +323,25 @@ msgstr "" #: ../../whatsnew/2.2.rst:246 msgid "" "Multiple inheritance has also been made more useful through changing the " -"rules under which names are resolved. Consider this set of classes (diagram" -" taken from :pep:`253` by Guido van Rossum)::" +"rules under which names are resolved. Consider this set of classes (diagram " +"taken from :pep:`253` by Guido van Rossum)::" msgstr "" #: ../../whatsnew/2.2.rst:264 msgid "" "The lookup rule for classic classes is simple but not very smart; the base " -"classes are searched depth-first, going from left to right. A reference to " -":meth:`D.save` will search the classes :class:`D`, :class:`B`, and then " -":class:`A`, where :meth:`save` would be found and returned. :meth:`C.save` " -"would never be found at all. This is bad, because if :class:`C`'s " -":meth:`save` method is saving some internal state specific to :class:`C`, " -"not calling it will result in that state never getting saved." +"classes are searched depth-first, going from left to right. A reference to :" +"meth:`D.save` will search the classes :class:`D`, :class:`B`, and then :" +"class:`A`, where :meth:`save` would be found and returned. :meth:`C.save` " +"would never be found at all. This is bad, because if :class:`C`'s :meth:" +"`save` method is saving some internal state specific to :class:`C`, not " +"calling it will result in that state never getting saved." msgstr "" #: ../../whatsnew/2.2.rst:272 msgid "" -"New-style classes follow a different algorithm that's a bit more complicated" -" to explain, but does the right thing in this situation. (Note that Python " +"New-style classes follow a different algorithm that's a bit more complicated " +"to explain, but does the right thing in this situation. (Note that Python " "2.3 changes this algorithm to one that produces the same results in most " "cases, but produces more useful results for really complicated inheritance " "graphs.)" @@ -349,36 +351,35 @@ msgstr "" msgid "" "List all the base classes, following the classic lookup rule and include a " "class multiple times if it's visited repeatedly. In the above example, the " -"list of visited classes is [:class:`D`, :class:`B`, :class:`A`, :class:`C`, " -":class:`A`]." +"list of visited classes is [:class:`D`, :class:`B`, :class:`A`, :class:`C`, :" +"class:`A`]." msgstr "" #: ../../whatsnew/2.2.rst:282 msgid "" "Scan the list for duplicated classes. If any are found, remove all but one " "occurrence, leaving the *last* one in the list. In the above example, the " -"list becomes [:class:`D`, :class:`B`, :class:`C`, :class:`A`] after dropping" -" duplicates." +"list becomes [:class:`D`, :class:`B`, :class:`C`, :class:`A`] after dropping " +"duplicates." msgstr "" #: ../../whatsnew/2.2.rst:287 msgid "" -"Following this rule, referring to :meth:`D.save` will return :meth:`C.save`," -" which is the behaviour we're after. This lookup rule is the same as the " -"one followed by Common Lisp. A new built-in function, :func:`super`, " -"provides a way to get at a class's superclasses without having to " -"reimplement Python's algorithm. The most commonly used form will be " -"``super(class, obj)``, which returns a bound superclass object (not the " -"actual class object). This form will be used in methods to call a method in" -" the superclass; for example, :class:`D`'s :meth:`save` method would look " -"like this::" +"Following this rule, referring to :meth:`D.save` will return :meth:`C.save`, " +"which is the behaviour we're after. This lookup rule is the same as the one " +"followed by Common Lisp. A new built-in function, :func:`super`, provides a " +"way to get at a class's superclasses without having to reimplement Python's " +"algorithm. The most commonly used form will be ``super(class, obj)``, which " +"returns a bound superclass object (not the actual class object). This form " +"will be used in methods to call a method in the superclass; for example, :" +"class:`D`'s :meth:`save` method would look like this::" msgstr "" #: ../../whatsnew/2.2.rst:303 msgid "" ":func:`super` can also return unbound superclass objects when called as " -"``super(class)`` or ``super(class1, class2)``, but this probably won't often" -" be useful." +"``super(class)`` or ``super(class1, class2)``, but this probably won't often " +"be useful." msgstr "" #: ../../whatsnew/2.2.rst:309 @@ -390,9 +391,8 @@ msgid "" "A fair number of sophisticated Python classes define hooks for attribute " "access using :meth:`__getattr__`; most commonly this is done for " "convenience, to make code more readable by automatically mapping an " -"attribute access such as ``obj.parent`` into a method call such as " -"``obj.get_parent``. Python 2.2 adds some new ways of controlling attribute " -"access." +"attribute access such as ``obj.parent`` into a method call such as ``obj." +"get_parent``. Python 2.2 adds some new ways of controlling attribute access." msgstr "" #: ../../whatsnew/2.2.rst:317 @@ -417,31 +417,30 @@ msgid "" "However, Python 2.2's support for :dfn:`properties` will often be a simpler " "way to trap attribute references. Writing a :meth:`__getattr__` method is " "complicated because to avoid recursion you can't use regular attribute " -"accesses inside them, and instead have to mess around with the contents of " -":attr:`~object.__dict__`. :meth:`__getattr__` methods also end up being " +"accesses inside them, and instead have to mess around with the contents of :" +"attr:`~object.__dict__`. :meth:`__getattr__` methods also end up being " "called by Python when it checks for other methods such as :meth:`__repr__` " -"or :meth:`__coerce__`, and so have to be written with this in mind. Finally," -" calling a function on every attribute access results in a sizable " +"or :meth:`__coerce__`, and so have to be written with this in mind. Finally, " +"calling a function on every attribute access results in a sizable " "performance loss." msgstr "" #: ../../whatsnew/2.2.rst:337 msgid "" ":class:`property` is a new built-in type that packages up three functions " -"that get, set, or delete an attribute, and a docstring. For example, if you" -" want to define a :attr:`size` attribute that's computed, but also settable," -" you could write::" +"that get, set, or delete an attribute, and a docstring. For example, if you " +"want to define a :attr:`size` attribute that's computed, but also settable, " +"you could write::" msgstr "" #: ../../whatsnew/2.2.rst:357 msgid "" -"That is certainly clearer and easier to write than a pair of " -":meth:`__getattr__`/:meth:`__setattr__` methods that check for the " -":attr:`size` attribute and handle it specially while retrieving all other " -"attributes from the instance's :attr:`~object.__dict__`. Accesses to " -":attr:`size` are also the only ones which have to perform the work of " -"calling a function, so references to other attributes run at their usual " -"speed." +"That is certainly clearer and easier to write than a pair of :meth:" +"`__getattr__`/:meth:`__setattr__` methods that check for the :attr:`size` " +"attribute and handle it specially while retrieving all other attributes from " +"the instance's :attr:`~object.__dict__`. Accesses to :attr:`size` are also " +"the only ones which have to perform the work of calling a function, so " +"references to other attributes run at their usual speed." msgstr "" #: ../../whatsnew/2.2.rst:364 @@ -449,10 +448,10 @@ msgid "" "Finally, it's possible to constrain the list of attributes that can be " "referenced on an object using the new :attr:`~object.__slots__` class " "attribute. Python objects are usually very dynamic; at any time it's " -"possible to define a new attribute on an instance by just doing " -"``obj.new_attr=1``. A new-style class can define a class attribute named " -":attr:`~object.__slots__` to limit the legal attributes to a particular set" -" of names. An example will make this clear::" +"possible to define a new attribute on an instance by just doing ``obj." +"new_attr=1``. A new-style class can define a class attribute named :attr:" +"`~object.__slots__` to limit the legal attributes to a particular set of " +"names. An example will make this clear::" msgstr "" #: ../../whatsnew/2.2.rst:385 @@ -484,11 +483,11 @@ msgstr "" #: ../../whatsnew/2.2.rst:403 msgid "" -"Next, there are two relevant PEPs, :pep:`252` and :pep:`253`. :pep:`252` is" -" titled \"Making Types Look More Like Classes\", and covers the descriptor " +"Next, there are two relevant PEPs, :pep:`252` and :pep:`253`. :pep:`252` is " +"titled \"Making Types Look More Like Classes\", and covers the descriptor " "API. :pep:`253` is titled \"Subtyping Built-in Types\", and describes the " -"changes to type objects that make it possible to subtype built-in objects. " -":pep:`253` is the more complicated PEP of the two, and at a few points the " +"changes to type objects that make it possible to subtype built-in objects. :" +"pep:`253` is the more complicated PEP of the two, and at a few points the " "necessary explanations of types and meta-types may cause your head to " "explode. Both PEPs were written and implemented by Guido van Rossum, with " "substantial assistance from the rest of the Zope Corp. team." @@ -515,28 +514,28 @@ msgstr "" #: ../../whatsnew/2.2.rst:426 msgid "" -"In Python versions up to 2.1, the usual way to make ``for item in obj`` work" -" is to define a :meth:`__getitem__` method that looks something like this::" +"In Python versions up to 2.1, the usual way to make ``for item in obj`` work " +"is to define a :meth:`__getitem__` method that looks something like this::" msgstr "" #: ../../whatsnew/2.2.rst:432 msgid "" -":meth:`__getitem__` is more properly used to define an indexing operation on" -" an object so that you can write ``obj[5]`` to retrieve the sixth element. " +":meth:`__getitem__` is more properly used to define an indexing operation on " +"an object so that you can write ``obj[5]`` to retrieve the sixth element. " "It's a bit misleading when you're using this only to support :keyword:`for` " "loops. Consider some file-like object that wants to be looped over; the " "*index* parameter is essentially meaningless, as the class probably assumes " "that a series of :meth:`__getitem__` calls will be made with *index* " -"incrementing by one each time. In other words, the presence of the " -":meth:`__getitem__` method doesn't mean that using ``file[5]`` to randomly " -"access the sixth element will work, though it really should." +"incrementing by one each time. In other words, the presence of the :meth:" +"`__getitem__` method doesn't mean that using ``file[5]`` to randomly access " +"the sixth element will work, though it really should." msgstr "" #: ../../whatsnew/2.2.rst:442 msgid "" -"In Python 2.2, iteration can be implemented separately, and " -":meth:`__getitem__` methods can be limited to classes that really do support" -" random access. The basic idea of iterators is simple. A new built-in " +"In Python 2.2, iteration can be implemented separately, and :meth:" +"`__getitem__` methods can be limited to classes that really do support " +"random access. The basic idea of iterators is simple. A new built-in " "function, ``iter(obj)`` or ``iter(C, sentinel)``, is used to get an " "iterator. ``iter(obj)`` returns an iterator for the object *obj*, while " "``iter(C, sentinel)`` returns an iterator that will invoke the callable " @@ -546,12 +545,12 @@ msgstr "" #: ../../whatsnew/2.2.rst:450 msgid "" "Python classes can define an :meth:`__iter__` method, which should create " -"and return a new iterator for the object; if the object is its own iterator," -" this method can just return ``self``. In particular, iterators will " -"usually be their own iterators. Extension types implemented in C can " -"implement a :c:member:`~PyTypeObject.tp_iter` function in order to return an" -" iterator, and extension types that want to behave as iterators can define a" -" :c:member:`~PyTypeObject.tp_iternext` function." +"and return a new iterator for the object; if the object is its own iterator, " +"this method can just return ``self``. In particular, iterators will usually " +"be their own iterators. Extension types implemented in C can implement a :c:" +"member:`~PyTypeObject.tp_iter` function in order to return an iterator, and " +"extension types that want to behave as iterators can define a :c:member:" +"`~PyTypeObject.tp_iternext` function." msgstr "" #: ../../whatsnew/2.2.rst:457 @@ -567,8 +566,8 @@ msgid "" "In 2.2, Python's :keyword:`for` statement no longer expects a sequence; it " "expects something for which :func:`iter` will return an iterator. For " "backward compatibility and convenience, an iterator is automatically " -"constructed for sequences that don't implement :meth:`__iter__` or a " -":c:member:`~PyTypeObject.tp_iter` slot, so ``for i in [1,2,3]`` will still " +"constructed for sequences that don't implement :meth:`__iter__` or a :c:" +"member:`~PyTypeObject.tp_iter` slot, so ``for i in [1,2,3]`` will still " "work. Wherever the Python interpreter loops over a sequence, it's been " "changed to use the iterator protocol. This means you can do things like " "this::" @@ -576,34 +575,33 @@ msgstr "" #: ../../whatsnew/2.2.rst:492 msgid "" -"Iterator support has been added to some of Python's basic types. Calling " -":func:`iter` on a dictionary will return an iterator which loops over its " +"Iterator support has been added to some of Python's basic types. Calling :" +"func:`iter` on a dictionary will return an iterator which loops over its " "keys::" msgstr "" #: ../../whatsnew/2.2.rst:512 msgid "" "That's just the default behaviour. If you want to iterate over keys, " -"values, or key/value pairs, you can explicitly call the :meth:`iterkeys`, " -":meth:`itervalues`, or :meth:`iteritems` methods to get an appropriate " -"iterator. In a minor related change, the :keyword:`in` operator now works on" -" dictionaries, so ``key in dict`` is now equivalent to " -"``dict.has_key(key)``." +"values, or key/value pairs, you can explicitly call the :meth:`iterkeys`, :" +"meth:`itervalues`, or :meth:`iteritems` methods to get an appropriate " +"iterator. In a minor related change, the :keyword:`in` operator now works on " +"dictionaries, so ``key in dict`` is now equivalent to ``dict.has_key(key)``." msgstr "" #: ../../whatsnew/2.2.rst:518 msgid "" "Files also provide an iterator, which calls the :meth:`readline` method " -"until there are no more lines in the file. This means you can now read each" -" line of a file using code like this::" +"until there are no more lines in the file. This means you can now read each " +"line of a file using code like this::" msgstr "" #: ../../whatsnew/2.2.rst:526 msgid "" "Note that you can only go forward in an iterator; there's no way to get the " "previous element, reset the iterator, or make a copy of it. An iterator " -"object could provide such additional capabilities, but the iterator protocol" -" only requires a :meth:`next` method." +"object could provide such additional capabilities, but the iterator protocol " +"only requires a :meth:`next` method." msgstr "" #: ../../whatsnew/2.2.rst:535 @@ -612,8 +610,8 @@ msgstr ":pep:`234` - Iteradores" #: ../../whatsnew/2.2.rst:535 msgid "" -"Written by Ka-Ping Yee and GvR; implemented by the Python Labs crew, mostly" -" by GvR and Tim Peters." +"Written by Ka-Ping Yee and GvR; implemented by the Python Labs crew, mostly " +"by GvR and Tim Peters." msgstr "" #: ../../whatsnew/2.2.rst:542 @@ -622,19 +620,19 @@ msgstr "PEP 255: Geradores Simples" #: ../../whatsnew/2.2.rst:544 msgid "" -"Generators are another new feature, one that interacts with the introduction" -" of iterators." +"Generators are another new feature, one that interacts with the introduction " +"of iterators." msgstr "" #: ../../whatsnew/2.2.rst:547 msgid "" -"You're doubtless familiar with how function calls work in Python or C. When" -" you call a function, it gets a private namespace where its local variables " +"You're doubtless familiar with how function calls work in Python or C. When " +"you call a function, it gets a private namespace where its local variables " "are created. When the function reaches a :keyword:`return` statement, the " "local variables are destroyed and the resulting value is returned to the " -"caller. A later call to the same function will get a fresh new set of local" -" variables. But, what if the local variables weren't thrown away on exiting " -"a function? What if you could later resume the function where it left off? " +"caller. A later call to the same function will get a fresh new set of local " +"variables. But, what if the local variables weren't thrown away on exiting a " +"function? What if you could later resume the function where it left off? " "This is what generators provide; they can be thought of as resumable " "functions." msgstr "" @@ -658,17 +656,16 @@ msgstr "" msgid "" "When you call a generator function, it doesn't return a single value; " "instead it returns a generator object that supports the iterator protocol. " -"On executing the :keyword:`yield` statement, the generator outputs the value" -" of ``i``, similar to a :keyword:`return` statement. The big difference " +"On executing the :keyword:`yield` statement, the generator outputs the value " +"of ``i``, similar to a :keyword:`return` statement. The big difference " "between :keyword:`!yield` and a :keyword:`!return` statement is that on " -"reaching a :keyword:`!yield` the generator's state of execution is suspended" -" and local variables are preserved. On the next call to the generator's " -"``next()`` method, the function will resume executing immediately after the " -":keyword:`!yield` statement. (For complicated reasons, the " -":keyword:`!yield` statement isn't allowed inside the :keyword:`!try` block " -"of a :keyword:`try`...\\ :keyword:`finally` statement; read :pep:`255` for a" -" full explanation of the interaction between :keyword:`!yield` and " -"exceptions.)" +"reaching a :keyword:`!yield` the generator's state of execution is suspended " +"and local variables are preserved. On the next call to the generator's " +"``next()`` method, the function will resume executing immediately after the :" +"keyword:`!yield` statement. (For complicated reasons, the :keyword:`!yield` " +"statement isn't allowed inside the :keyword:`!try` block of a :keyword:" +"`try`...\\ :keyword:`finally` statement; read :pep:`255` for a full " +"explanation of the interaction between :keyword:`!yield` and exceptions.)" msgstr "" #: ../../whatsnew/2.2.rst:583 @@ -687,10 +684,10 @@ msgstr "" msgid "" "Inside a generator function, the :keyword:`return` statement can only be " "used without a value, and signals the end of the procession of values; " -"afterwards the generator cannot return any further values. " -":keyword:`!return` with a value, such as ``return 5``, is a syntax error " -"inside a generator function. The end of the generator's results can also be" -" indicated by raising :exc:`StopIteration` manually, or by just letting the " +"afterwards the generator cannot return any further values. :keyword:`!" +"return` with a value, such as ``return 5``, is a syntax error inside a " +"generator function. The end of the generator's results can also be " +"indicated by raising :exc:`StopIteration` manually, or by just letting the " "flow of execution fall off the bottom of the function." msgstr "" @@ -701,17 +698,17 @@ msgid "" "variables. For example, returning a list of integers could be done by " "setting ``self.count`` to 0, and having the :meth:`next` method increment " "``self.count`` and return it. However, for a moderately complicated " -"generator, writing a corresponding class would be much messier. " -":file:`Lib/test/test_generators.py` contains a number of more interesting " -"examples. The simplest one implements an in-order traversal of a tree using" -" generators recursively. ::" +"generator, writing a corresponding class would be much messier. :file:`Lib/" +"test/test_generators.py` contains a number of more interesting examples. " +"The simplest one implements an in-order traversal of a tree using generators " +"recursively. ::" msgstr "" #: ../../whatsnew/2.2.rst:629 msgid "" "Two other examples in :file:`Lib/test/test_generators.py` produce solutions " -"for the N-Queens problem (placing $N$ queens on an $NxN$ chess board so that" -" no queen threatens another) and the Knight's Tour (a route that takes a " +"for the N-Queens problem (placing $N$ queens on an $NxN$ chess board so that " +"no queen threatens another) and the Knight's Tour (a route that takes a " "knight to every square of an $NxN$ chessboard without visiting any square " "twice)." msgstr "" @@ -721,16 +718,16 @@ msgid "" "The idea of generators comes from other programming languages, especially " "Icon (https://www.cs.arizona.edu/icon/), where the idea of generators is " "central. In Icon, every expression and function call behaves like a " -"generator. One example from \"An Overview of the Icon Programming " -"Language\" at https://www.cs.arizona.edu/icon/docs/ipd266.htm gives an idea " -"of what this looks like::" +"generator. One example from \"An Overview of the Icon Programming Language" +"\" at https://www.cs.arizona.edu/icon/docs/ipd266.htm gives an idea of what " +"this looks like::" msgstr "" #: ../../whatsnew/2.2.rst:644 msgid "" -"In Icon the :func:`find` function returns the indexes at which the substring" -" \"or\" is found: 3, 23, 33. In the :keyword:`if` statement, ``i`` is first" -" assigned a value of 3, but 3 is less than 5, so the comparison fails, and " +"In Icon the :func:`find` function returns the indexes at which the substring " +"\"or\" is found: 3, 23, 33. In the :keyword:`if` statement, ``i`` is first " +"assigned a value of 3, but 3 is less than 5, so the comparison fails, and " "Icon retries it with the second value of 23. 23 is greater than 5, so the " "comparison now succeeds, and the code prints the value 23 to the screen." msgstr "" @@ -742,8 +739,8 @@ msgid "" "but learning or using them isn't compulsory; if they don't solve any " "problems that you have, feel free to ignore them. One novel feature of " "Python's interface as compared to Icon's is that a generator's state is " -"represented as a concrete object (the iterator) that can be passed around to" -" other functions or stored in a data structure." +"represented as a concrete object (the iterator) that can be passed around to " +"other functions or stored in a data structure." msgstr "" #: ../../whatsnew/2.2.rst:662 @@ -763,9 +760,9 @@ msgstr "" #: ../../whatsnew/2.2.rst:671 msgid "" -"In recent versions, the distinction between regular integers, which are " -"32-bit values on most machines, and long integers, which can be of arbitrary" -" size, was becoming an annoyance. For example, on platforms that support " +"In recent versions, the distinction between regular integers, which are 32-" +"bit values on most machines, and long integers, which can be of arbitrary " +"size, was becoming an annoyance. For example, on platforms that support " "files larger than ``2**32`` bytes, the :meth:`tell` method of file objects " "has to return a long integer. However, there were various bits of Python " "that expected plain integers and would raise an error if a long integer was " @@ -821,8 +818,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:721 msgid "" -"(The controversy is over whether this is *really* a design flaw, and whether" -" it's worth breaking existing code to fix this. It's caused endless " +"(The controversy is over whether this is *really* a design flaw, and whether " +"it's worth breaking existing code to fix this. It's caused endless " "discussions on python-dev, and in July 2001 erupted into a storm of acidly " "sarcastic postings on :newsgroup:`comp.lang.python`. I won't argue for " "either side here and will stick to describing what's implemented in 2.2. " @@ -839,8 +836,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:732 msgid "" "First, I'll borrow some terminology from :pep:`238`. \"True division\" is " -"the division that most non-programmers are familiar with: 3/2 is 1.5, 1/4 is" -" 0.25, and so forth. \"Floor division\" is what Python's ``/`` operator " +"the division that most non-programmers are familiar with: 3/2 is 1.5, 1/4 is " +"0.25, and so forth. \"Floor division\" is what Python's ``/`` operator " "currently does when given integer operands; the result is the floor of the " "value returned by true division. \"Classic division\" is the current mixed " "behaviour of ``/``; it returns the result of floor division when the " @@ -856,8 +853,8 @@ msgstr "" msgid "" "A new operator, ``//``, is the floor division operator. (Yes, we know it " "looks like C++'s comment symbol.) ``//`` *always* performs floor division " -"no matter what the types of its operands are, so ``1 // 2`` is 0 and ``1.0 " -"// 2.0`` is also 0.0." +"no matter what the types of its operands are, so ``1 // 2`` is 0 and " +"``1.0 // 2.0`` is also 0.0." msgstr "" #: ../../whatsnew/2.2.rst:747 @@ -876,21 +873,20 @@ msgstr "" #: ../../whatsnew/2.2.rst:755 msgid "" -"Classes can define methods called :meth:`__truediv__` and " -":meth:`__floordiv__` to overload the two division operators. At the C " -"level, there are also slots in the :c:type:`PyNumberMethods` structure so " -"extension types can define the two operators." +"Classes can define methods called :meth:`__truediv__` and :meth:" +"`__floordiv__` to overload the two division operators. At the C level, " +"there are also slots in the :c:type:`PyNumberMethods` structure so extension " +"types can define the two operators." msgstr "" #: ../../whatsnew/2.2.rst:760 msgid "" "Python 2.2 supports some command-line arguments for testing whether code " -"will work with the changed division semantics. Running python with " -":option:`!-Q warn` will cause a warning to be issued whenever division is " -"applied to two integers. You can use this to find code that's affected by " -"the change and fix it. By default, Python 2.2 will simply perform classic " -"division without a warning; the warning will be turned on by default in " -"Python 2.3." +"will work with the changed division semantics. Running python with :option:" +"`!-Q warn` will cause a warning to be issued whenever division is applied to " +"two integers. You can use this to find code that's affected by the change " +"and fix it. By default, Python 2.2 will simply perform classic division " +"without a warning; the warning will be turned on by default in Python 2.3." msgstr "" #: ../../whatsnew/2.2.rst:770 @@ -922,10 +918,10 @@ msgid "" "When built to use UCS-4 (a \"wide Python\"), the interpreter can natively " "handle Unicode characters from U+000000 to U+110000, so the range of legal " "values for the :func:`unichr` function is expanded accordingly. Using an " -"interpreter compiled to use UCS-2 (a \"narrow Python\"), values greater than" -" 65535 will still cause :func:`unichr` to raise a :exc:`ValueError` " -"exception. This is all described in :pep:`261`, \"Support for 'wide' Unicode" -" characters\"; consult it for further details." +"interpreter compiled to use UCS-2 (a \"narrow Python\"), values greater than " +"65535 will still cause :func:`unichr` to raise a :exc:`ValueError` " +"exception. This is all described in :pep:`261`, \"Support for 'wide' Unicode " +"characters\"; consult it for further details." msgstr "" #: ../../whatsnew/2.2.rst:794 @@ -934,8 +930,8 @@ msgid "" "strings have supported an :meth:`encode` method to convert the string to a " "selected encoding such as UTF-8 or Latin-1. A symmetric " "``decode([*encoding*])`` method has been added to 8-bit strings (though not " -"to Unicode strings) in 2.2. :meth:`decode` assumes that the string is in the" -" specified encoding and decodes it, returning whatever is returned by the " +"to Unicode strings) in 2.2. :meth:`decode` assumes that the string is in the " +"specified encoding and decodes it, returning whatever is returned by the " "codec." msgstr "" @@ -975,30 +971,30 @@ msgstr "PEP 227: Nested Scopes" msgid "" "In Python 2.1, statically nested scopes were added as an optional feature, " "to be enabled by a ``from __future__ import nested_scopes`` directive. In " -"2.2 nested scopes no longer need to be specially enabled, and are now always" -" present. The rest of this section is a copy of the description of nested " +"2.2 nested scopes no longer need to be specially enabled, and are now always " +"present. The rest of this section is a copy of the description of nested " "scopes from my \"What's New in Python 2.1\" document; if you read it when " "2.1 came out, you can skip the rest of this section." msgstr "" #: ../../whatsnew/2.2.rst:848 msgid "" -"The largest change introduced in Python 2.1, and made complete in 2.2, is to" -" Python's scoping rules. In Python 2.0, at any given time there are at most" -" three namespaces used to look up variable names: local, module-level, and " -"the built-in namespace. This often surprised people because it didn't match" -" their intuitive expectations. For example, a nested recursive function " +"The largest change introduced in Python 2.1, and made complete in 2.2, is to " +"Python's scoping rules. In Python 2.0, at any given time there are at most " +"three namespaces used to look up variable names: local, module-level, and " +"the built-in namespace. This often surprised people because it didn't match " +"their intuitive expectations. For example, a nested recursive function " "definition doesn't work::" msgstr "" #: ../../whatsnew/2.2.rst:862 msgid "" "The function :func:`g` will always raise a :exc:`NameError` exception, " -"because the binding of the name ``g`` isn't in either its local namespace or" -" in the module-level namespace. This isn't much of a problem in practice " +"because the binding of the name ``g`` isn't in either its local namespace or " +"in the module-level namespace. This isn't much of a problem in practice " "(how often do you recursively define interior functions like this?), but " -"this also made using the :keyword:`lambda` expression clumsier, and this was" -" a problem in practice. In code which uses :keyword:`!lambda` you can often " +"this also made using the :keyword:`lambda` expression clumsier, and this was " +"a problem in practice. In code which uses :keyword:`!lambda` you can often " "find local variables being copied by passing them as the default values of " "arguments. ::" msgstr "" @@ -1015,13 +1011,12 @@ msgstr "" msgid "" "The most significant change to Python 2.2 is that static scoping has been " "added to the language to fix this problem. As a first effect, the " -"``name=name`` default argument is now unnecessary in the above example. Put" -" simply, when a given variable name is not assigned a value within a " -"function (by an assignment, or the :keyword:`def`, :keyword:`class`, or " -":keyword:`import` statements), references to the variable will be looked up " -"in the local namespace of the enclosing scope. A more detailed explanation " -"of the rules, and a dissection of the implementation, can be found in the " -"PEP." +"``name=name`` default argument is now unnecessary in the above example. Put " +"simply, when a given variable name is not assigned a value within a function " +"(by an assignment, or the :keyword:`def`, :keyword:`class`, or :keyword:" +"`import` statements), references to the variable will be looked up in the " +"local namespace of the enclosing scope. A more detailed explanation of the " +"rules, and a dissection of the implementation, can be found in the PEP." msgstr "" #: ../../whatsnew/2.2.rst:888 @@ -1043,30 +1038,28 @@ msgid "" "One side effect of the change is that the ``from module import *`` and " "``exec`` statements have been made illegal inside a function scope under " "certain conditions. The Python reference manual has said all along that " -"``from module import *`` is only legal at the top level of a module, but the" -" CPython interpreter has never enforced this before. As part of the " -"implementation of nested scopes, the compiler which turns Python source into" -" bytecodes has to generate different code to access variables in a " -"containing scope. ``from module import *`` and ``exec`` make it impossible " -"for the compiler to figure this out, because they add names to the local " -"namespace that are unknowable at compile time. Therefore, if a function " -"contains function definitions or :keyword:`lambda` expressions with free " -"variables, the compiler will flag this by raising a :exc:`SyntaxError` " -"exception." +"``from module import *`` is only legal at the top level of a module, but the " +"CPython interpreter has never enforced this before. As part of the " +"implementation of nested scopes, the compiler which turns Python source into " +"bytecodes has to generate different code to access variables in a containing " +"scope. ``from module import *`` and ``exec`` make it impossible for the " +"compiler to figure this out, because they add names to the local namespace " +"that are unknowable at compile time. Therefore, if a function contains " +"function definitions or :keyword:`lambda` expressions with free variables, " +"the compiler will flag this by raising a :exc:`SyntaxError` exception." msgstr "" "One side effect of the change is that the ``from module import *`` and " "``exec`` statements have been made illegal inside a function scope under " "certain conditions. The Python reference manual has said all along that " -"``from module import *`` is only legal at the top level of a module, but the" -" CPython interpreter has never enforced this before. As part of the " -"implementation of nested scopes, the compiler which turns Python source into" -" bytecodes has to generate different code to access variables in a " -"containing scope. ``from module import *`` and ``exec`` make it impossible " -"for the compiler to figure this out, because they add names to the local " -"namespace that are unknowable at compile time. Therefore, if a function " -"contains function definitions or :keyword:`lambda` expressions with free " -"variables, the compiler will flag this by raising a :exc:`SyntaxError` " -"exception." +"``from module import *`` is only legal at the top level of a module, but the " +"CPython interpreter has never enforced this before. As part of the " +"implementation of nested scopes, the compiler which turns Python source into " +"bytecodes has to generate different code to access variables in a containing " +"scope. ``from module import *`` and ``exec`` make it impossible for the " +"compiler to figure this out, because they add names to the local namespace " +"that are unknowable at compile time. Therefore, if a function contains " +"function definitions or :keyword:`lambda` expressions with free variables, " +"the compiler will flag this by raising a :exc:`SyntaxError` exception." #: ../../whatsnew/2.2.rst:907 msgid "To make the preceding explanation a bit clearer, here's an example::" @@ -1075,12 +1068,12 @@ msgstr "To make the preceding explanation a bit clearer, here's an example::" #: ../../whatsnew/2.2.rst:916 msgid "" "Line 4 containing the ``exec`` statement is a syntax error, since ``exec`` " -"would define a new local variable named ``x`` whose value should be accessed" -" by :func:`g`." +"would define a new local variable named ``x`` whose value should be accessed " +"by :func:`g`." msgstr "" "Line 4 containing the ``exec`` statement is a syntax error, since ``exec`` " -"would define a new local variable named ``x`` whose value should be accessed" -" by :func:`g`." +"would define a new local variable named ``x`` whose value should be accessed " +"by :func:`g`." #: ../../whatsnew/2.2.rst:920 msgid "" @@ -1115,33 +1108,33 @@ msgstr "" #: ../../whatsnew/2.2.rst:959 msgid "" -"The :mod:`SimpleXMLRPCServer` module makes it easy to create straightforward" -" XML-RPC servers. See http://xmlrpc.scripting.com/ for more information " +"The :mod:`SimpleXMLRPCServer` module makes it easy to create straightforward " +"XML-RPC servers. See http://xmlrpc.scripting.com/ for more information " "about XML-RPC." msgstr "" #: ../../whatsnew/2.2.rst:962 msgid "" -"The new :mod:`hmac` module implements the HMAC algorithm described by " -":rfc:`2104`. (Contributed by Gerhard Häring.)" +"The new :mod:`hmac` module implements the HMAC algorithm described by :rfc:" +"`2104`. (Contributed by Gerhard Häring.)" msgstr "" #: ../../whatsnew/2.2.rst:965 msgid "" "Several functions that originally returned lengthy tuples now return pseudo-" "sequences that still behave like tuples but also have mnemonic attributes " -"such as memberst_mtime or :attr:`tm_year`. The enhanced functions include " -":func:`stat`, :func:`fstat`, :func:`statvfs`, and :func:`fstatvfs` in the " -":mod:`os` module, and :func:`localtime`, :func:`gmtime`, and " -":func:`strptime` in the :mod:`time` module." +"such as memberst_mtime or :attr:`tm_year`. The enhanced functions include :" +"func:`stat`, :func:`fstat`, :func:`statvfs`, and :func:`fstatvfs` in the :" +"mod:`os` module, and :func:`localtime`, :func:`gmtime`, and :func:`strptime` " +"in the :mod:`time` module." msgstr "" #: ../../whatsnew/2.2.rst:972 msgid "" "For example, to obtain a file's size using the old tuples, you'd end up " "writing something like ``file_size = os.stat(filename)[stat.ST_SIZE]``, but " -"now this can be written more clearly as ``file_size = " -"os.stat(filename).st_size``." +"now this can be written more clearly as ``file_size = os.stat(filename)." +"st_size``." msgstr "" #: ../../whatsnew/2.2.rst:976 @@ -1157,47 +1150,47 @@ msgstr "" #: ../../whatsnew/2.2.rst:981 msgid "" -"The :mod:`socket` module can be compiled to support IPv6; specify the " -":option:`!--enable-ipv6` option to Python's configure script. (Contributed " +"The :mod:`socket` module can be compiled to support IPv6; specify the :" +"option:`!--enable-ipv6` option to Python's configure script. (Contributed " "by Jun-ichiro \"itojun\" Hagino.)" msgstr "" #: ../../whatsnew/2.2.rst:985 msgid "" "Two new format characters were added to the :mod:`struct` module for 64-bit " -"integers on platforms that support the C :c:type:`long long` type. ``q`` is" -" for a signed 64-bit integer, and ``Q`` is for an unsigned one. The value " -"is returned in Python's long integer type. (Contributed by Tim Peters.)" +"integers on platforms that support the C :c:type:`long long` type. ``q`` is " +"for a signed 64-bit integer, and ``Q`` is for an unsigned one. The value is " +"returned in Python's long integer type. (Contributed by Tim Peters.)" msgstr "" #: ../../whatsnew/2.2.rst:990 msgid "" -"In the interpreter's interactive mode, there's a new built-in function " -":func:`help` that uses the :mod:`pydoc` module introduced in Python 2.1 to " -"provide interactive help. ``help(object)`` displays any available help text " -"about *object*. :func:`help` with no argument puts you in an online help " -"utility, where you can enter the names of functions, classes, or modules to " -"read their help text. (Contributed by Guido van Rossum, using Ka-Ping Yee's " -":mod:`pydoc` module.)" +"In the interpreter's interactive mode, there's a new built-in function :func:" +"`help` that uses the :mod:`pydoc` module introduced in Python 2.1 to provide " +"interactive help. ``help(object)`` displays any available help text about " +"*object*. :func:`help` with no argument puts you in an online help utility, " +"where you can enter the names of functions, classes, or modules to read " +"their help text. (Contributed by Guido van Rossum, using Ka-Ping Yee's :mod:" +"`pydoc` module.)" msgstr "" #: ../../whatsnew/2.2.rst:998 msgid "" "Various bugfixes and performance improvements have been made to the SRE " -"engine underlying the :mod:`re` module. For example, the :func:`re.sub` and" -" :func:`re.split` functions have been rewritten in C. Another contributed " -"patch speeds up certain Unicode character ranges by a factor of two, and a " -"new :meth:`finditer` method that returns an iterator over all the non-" -"overlapping matches in a given string. (SRE is maintained by Fredrik " -"Lundh. The BIGCHARSET patch was contributed by Martin von Löwis.)" +"engine underlying the :mod:`re` module. For example, the :func:`re.sub` " +"and :func:`re.split` functions have been rewritten in C. Another " +"contributed patch speeds up certain Unicode character ranges by a factor of " +"two, and a new :meth:`finditer` method that returns an iterator over all " +"the non-overlapping matches in a given string. (SRE is maintained by " +"Fredrik Lundh. The BIGCHARSET patch was contributed by Martin von Löwis.)" msgstr "" #: ../../whatsnew/2.2.rst:1006 msgid "" -"The :mod:`smtplib` module now supports :rfc:`2487`, \"Secure SMTP over " -"TLS\", so it's now possible to encrypt the SMTP traffic between a Python " -"program and the mail transport agent being handed a message. :mod:`smtplib`" -" also supports SMTP authentication. (Contributed by Gerhard Häring.)" +"The :mod:`smtplib` module now supports :rfc:`2487`, \"Secure SMTP over TLS" +"\", so it's now possible to encrypt the SMTP traffic between a Python " +"program and the mail transport agent being handed a message. :mod:`smtplib` " +"also supports SMTP authentication. (Contributed by Gerhard Häring.)" msgstr "" #: ../../whatsnew/2.2.rst:1011 @@ -1210,8 +1203,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:1015 msgid "" -"The :mod:`rfc822` module's parsing of email addresses is now compliant with " -":rfc:`2822`, an update to :rfc:`822`. (The module's name is *not* going to " +"The :mod:`rfc822` module's parsing of email addresses is now compliant with :" +"rfc:`2822`, an update to :rfc:`822`. (The module's name is *not* going to " "be changed to ``rfc2822``.) A new package, :mod:`email`, has also been " "added for parsing and generating e-mail messages. (Contributed by Barry " "Warsaw, and arising out of his work on Mailman.)" @@ -1221,30 +1214,30 @@ msgstr "" msgid "" "The :mod:`difflib` module now contains a new :class:`Differ` class for " "producing human-readable lists of changes (a \"delta\") between two " -"sequences of lines of text. There are also two generator functions, " -":func:`ndiff` and :func:`restore`, which respectively return a delta from " -"two sequences, or one of the original sequences from a delta. (Grunt work " +"sequences of lines of text. There are also two generator functions, :func:" +"`ndiff` and :func:`restore`, which respectively return a delta from two " +"sequences, or one of the original sequences from a delta. (Grunt work " "contributed by David Goodger, from ndiff.py code by Tim Peters who then did " "the generatorization.)" msgstr "" #: ../../whatsnew/2.2.rst:1028 msgid "" -"New constants :const:`ascii_letters`, :const:`ascii_lowercase`, and " -":const:`ascii_uppercase` were added to the :mod:`string` module. There were" -" several modules in the standard library that used :const:`string.letters` " -"to mean the ranges A-Za-z, but that assumption is incorrect when locales are" -" in use, because :const:`string.letters` varies depending on the set of " -"legal characters defined by the current locale. The buggy modules have all " -"been fixed to use :const:`ascii_letters` instead. (Reported by an unknown " -"person; fixed by Fred L. Drake, Jr.)" +"New constants :const:`ascii_letters`, :const:`ascii_lowercase`, and :const:" +"`ascii_uppercase` were added to the :mod:`string` module. There were " +"several modules in the standard library that used :const:`string.letters` to " +"mean the ranges A-Za-z, but that assumption is incorrect when locales are in " +"use, because :const:`string.letters` varies depending on the set of legal " +"characters defined by the current locale. The buggy modules have all been " +"fixed to use :const:`ascii_letters` instead. (Reported by an unknown person; " +"fixed by Fred L. Drake, Jr.)" msgstr "" #: ../../whatsnew/2.2.rst:1037 msgid "" -"The :mod:`mimetypes` module now makes it easier to use alternative MIME-type" -" databases by the addition of a :class:`MimeTypes` class, which takes a list" -" of filenames to be parsed. (Contributed by Fred L. Drake, Jr.)" +"The :mod:`mimetypes` module now makes it easier to use alternative MIME-type " +"databases by the addition of a :class:`MimeTypes` class, which takes a list " +"of filenames to be parsed. (Contributed by Fred L. Drake, Jr.)" msgstr "" #: ../../whatsnew/2.2.rst:1041 @@ -1271,10 +1264,10 @@ msgstr "" msgid "" "Profiling and tracing functions can now be implemented in C, which can " "operate at much higher speeds than Python-based functions and should reduce " -"the overhead of profiling and tracing. This will be of interest to authors" -" of development environments for Python. Two new C functions were added to " -"Python's API, :c:func:`PyEval_SetProfile` and :c:func:`PyEval_SetTrace`. The" -" existing :func:`sys.setprofile` and :func:`sys.settrace` functions still " +"the overhead of profiling and tracing. This will be of interest to authors " +"of development environments for Python. Two new C functions were added to " +"Python's API, :c:func:`PyEval_SetProfile` and :c:func:`PyEval_SetTrace`. The " +"existing :func:`sys.setprofile` and :func:`sys.settrace` functions still " "exist, and have simply been changed to use the new C-level interface. " "(Contributed by Fred L. Drake, Jr.)" msgstr "" @@ -1282,19 +1275,19 @@ msgstr "" #: ../../whatsnew/2.2.rst:1065 msgid "" "Another low-level API, primarily of interest to implementors of Python " -"debuggers and development tools, was added. " -":c:func:`PyInterpreterState_Head` and :c:func:`PyInterpreterState_Next` let " -"a caller walk through all the existing interpreter objects; " -":c:func:`PyInterpreterState_ThreadHead` and :c:func:`PyThreadState_Next` " -"allow looping over all the thread states for a given interpreter. " -"(Contributed by David Beazley.)" +"debuggers and development tools, was added. :c:func:" +"`PyInterpreterState_Head` and :c:func:`PyInterpreterState_Next` let a caller " +"walk through all the existing interpreter objects; :c:func:" +"`PyInterpreterState_ThreadHead` and :c:func:`PyThreadState_Next` allow " +"looping over all the thread states for a given interpreter. (Contributed by " +"David Beazley.)" msgstr "" #: ../../whatsnew/2.2.rst:1072 msgid "" "The C-level interface to the garbage collector has been changed to make it " -"easier to write extension types that support garbage collection and to debug" -" misuses of the functions. Various functions have slightly different " +"easier to write extension types that support garbage collection and to debug " +"misuses of the functions. Various functions have slightly different " "semantics, so a bunch of functions had to be renamed. Extensions that use " "the old API will still compile but will *not* participate in garbage " "collection, so updating them for 2.2 should be considered fairly high " @@ -1338,24 +1331,23 @@ msgstr "" #: ../../whatsnew/2.2.rst:1093 msgid "" -"A new ``et`` format sequence was added to :c:func:`PyArg_ParseTuple`; ``et``" -" takes both a parameter and an encoding name, and converts the parameter to " +"A new ``et`` format sequence was added to :c:func:`PyArg_ParseTuple`; ``et`` " +"takes both a parameter and an encoding name, and converts the parameter to " "the given encoding if the parameter turns out to be a Unicode string, or " "leaves it alone if it's an 8-bit string, assuming it to already be in the " "desired encoding. This differs from the ``es`` format character, which " "assumes that 8-bit strings are in Python's default ASCII encoding and " "converts them to the specified new encoding. (Contributed by M.-A. Lemburg, " -"and used for the MBCS support on Windows described in the following " -"section.)" +"and used for the MBCS support on Windows described in the following section.)" msgstr "" #: ../../whatsnew/2.2.rst:1102 msgid "" -"A different argument parsing function, :c:func:`PyArg_UnpackTuple`, has been" -" added that's simpler and presumably faster. Instead of specifying a format" -" string, the caller simply gives the minimum and maximum number of arguments" -" expected, and a set of pointers to :c:type:`PyObject\\*` variables that " -"will be filled in with argument values." +"A different argument parsing function, :c:func:`PyArg_UnpackTuple`, has been " +"added that's simpler and presumably faster. Instead of specifying a format " +"string, the caller simply gives the minimum and maximum number of arguments " +"expected, and a set of pointers to :c:type:`PyObject\\*` variables that will " +"be filled in with argument values." msgstr "" #: ../../whatsnew/2.2.rst:1108 @@ -1363,20 +1355,19 @@ msgid "" "Two new flags :const:`METH_NOARGS` and :const:`METH_O` are available in " "method definition tables to simplify implementation of methods with no " "arguments or a single untyped argument. Calling such methods is more " -"efficient than calling a corresponding method that uses " -":const:`METH_VARARGS`. Also, the old :const:`METH_OLDARGS` style of writing" -" C methods is now officially deprecated." +"efficient than calling a corresponding method that uses :const:" +"`METH_VARARGS`. Also, the old :const:`METH_OLDARGS` style of writing C " +"methods is now officially deprecated." msgstr "" #: ../../whatsnew/2.2.rst:1114 msgid "" -"Two new wrapper functions, :c:func:`PyOS_snprintf` and " -":c:func:`PyOS_vsnprintf` were added to provide cross-platform " -"implementations for the relatively new :c:func:`snprintf` and " -":c:func:`vsnprintf` C lib APIs. In contrast to the standard " -":c:func:`sprintf` and :c:func:`vsprintf` functions, the Python versions " -"check the bounds of the buffer used to protect against buffer overruns. " -"(Contributed by M.-A. Lemburg.)" +"Two new wrapper functions, :c:func:`PyOS_snprintf` and :c:func:" +"`PyOS_vsnprintf` were added to provide cross-platform implementations for " +"the relatively new :c:func:`snprintf` and :c:func:`vsnprintf` C lib APIs. In " +"contrast to the standard :c:func:`sprintf` and :c:func:`vsprintf` functions, " +"the Python versions check the bounds of the buffer used to protect against " +"buffer overruns. (Contributed by M.-A. Lemburg.)" msgstr "" #: ../../whatsnew/2.2.rst:1121 @@ -1396,8 +1387,8 @@ msgid "" "As usual there were a bunch of other improvements and bugfixes scattered " "throughout the source tree. A search through the CVS change logs finds " "there were 527 patches applied and 683 bugs fixed between Python 2.1 and " -"2.2; 2.2.1 applied 139 patches and fixed 143 bugs; 2.2.2 applied 106 patches" -" and fixed 82 bugs. These figures are likely to be underestimates." +"2.2; 2.2.1 applied 139 patches and fixed 143 bugs; 2.2.2 applied 106 patches " +"and fixed 82 bugs. These figures are likely to be underestimates." msgstr "" #: ../../whatsnew/2.2.rst:1137 @@ -1407,8 +1398,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:1139 msgid "" "The code for the MacOS port for Python, maintained by Jack Jansen, is now " -"kept in the main Python CVS tree, and many changes have been made to support" -" MacOS X." +"kept in the main Python CVS tree, and many changes have been made to support " +"MacOS X." msgstr "" #: ../../whatsnew/2.2.rst:1142 @@ -1416,21 +1407,21 @@ msgid "" "The most significant change is the ability to build Python as a framework, " "enabled by supplying the :option:`!--enable-framework` option to the " "configure script when compiling Python. According to Jack Jansen, \"This " -"installs a self-contained Python installation plus the OS X framework " -"\"glue\" into :file:`/Library/Frameworks/Python.framework` (or another " -"location of choice). For now there is little immediate added benefit to this" -" (actually, there is the disadvantage that you have to change your PATH to " -"be able to find Python), but it is the basis for creating a full-blown " -"Python application, porting the MacPython IDE, possibly using Python as a " -"standard OSA scripting language and much more.\"" +"installs a self-contained Python installation plus the OS X framework \"glue" +"\" into :file:`/Library/Frameworks/Python.framework` (or another location of " +"choice). For now there is little immediate added benefit to this (actually, " +"there is the disadvantage that you have to change your PATH to be able to " +"find Python), but it is the basis for creating a full-blown Python " +"application, porting the MacPython IDE, possibly using Python as a standard " +"OSA scripting language and much more.\"" msgstr "" #: ../../whatsnew/2.2.rst:1153 msgid "" -"Most of the MacPython toolbox modules, which interface to MacOS APIs such as" -" windowing, QuickTime, scripting, etc. have been ported to OS X, but they've" -" been left commented out in :file:`setup.py`. People who want to experiment" -" with these modules can uncomment them manually." +"Most of the MacPython toolbox modules, which interface to MacOS APIs such as " +"windowing, QuickTime, scripting, etc. have been ported to OS X, but they've " +"been left commented out in :file:`setup.py`. People who want to experiment " +"with these modules can uncomment them manually." msgstr "" #: ../../whatsnew/2.2.rst:1176 @@ -1442,10 +1433,10 @@ msgstr "" #: ../../whatsnew/2.2.rst:1180 msgid "" -"Weak references, added in Python 2.1 as an extension module, are now part of" -" the core because they're used in the implementation of new-style classes. " -"The :exc:`ReferenceError` exception has therefore moved from the " -":mod:`weakref` module to become a built-in exception." +"Weak references, added in Python 2.1 as an extension module, are now part of " +"the core because they're used in the implementation of new-style classes. " +"The :exc:`ReferenceError` exception has therefore moved from the :mod:" +"`weakref` module to become a built-in exception." msgstr "" #: ../../whatsnew/2.2.rst:1185 @@ -1457,8 +1448,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:1189 msgid "" -"An additional *flags* argument has been added to the built-in function " -":func:`compile`, so the behaviour of ``__future__`` statements can now be " +"An additional *flags* argument has been added to the built-in function :func:" +"`compile`, so the behaviour of ``__future__`` statements can now be " "correctly observed in simulated shells, such as those presented by IDLE and " "other development environments. This is described in :pep:`264`. " "(Contributed by Michael Hudson.)" @@ -1467,8 +1458,8 @@ msgstr "" #: ../../whatsnew/2.2.rst:1195 msgid "" "The new license introduced with Python 1.6 wasn't GPL-compatible. This is " -"fixed by some minor textual changes to the 2.2 license, so it's now legal to" -" embed Python inside a GPLed program again. Note that Python itself is not " +"fixed by some minor textual changes to the 2.2 license, so it's now legal to " +"embed Python inside a GPLed program again. Note that Python itself is not " "GPLed, but instead is under a license that's essentially equivalent to the " "BSD license, same as it always was. The license changes were also applied " "to the Python 2.0.1 and 2.1.1 releases." @@ -1478,9 +1469,9 @@ msgstr "" msgid "" "When presented with a Unicode filename on Windows, Python will now convert " "it to an MBCS encoded string, as used by the Microsoft file APIs. As MBCS " -"is explicitly used by the file APIs, Python's choice of ASCII as the default" -" encoding turns out to be an annoyance. On Unix, the locale's character set" -" is used if ``locale.nl_langinfo(CODESET)`` is available. (Windows support " +"is explicitly used by the file APIs, Python's choice of ASCII as the default " +"encoding turns out to be an annoyance. On Unix, the locale's character set " +"is used if ``locale.nl_langinfo(CODESET)`` is available. (Windows support " "was contributed by Mark Hammond with assistance from Marc-André Lemburg. " "Unix support was added by Martin von Löwis.)" msgstr "" @@ -1499,14 +1490,13 @@ msgstr "" #: ../../whatsnew/2.2.rst:1215 msgid "" "Some features of the object returned by the :func:`xrange` function are now " -"deprecated, and trigger warnings when they're accessed; they'll disappear in" -" Python 2.3. :class:`xrange` objects tried to pretend they were full " -"sequence types by supporting slicing, sequence multiplication, and the " -":keyword:`in` operator, but these features were rarely used and therefore " -"buggy. The :meth:`tolist` method and the :attr:`start`, :attr:`stop`, and " -":attr:`step` attributes are also being deprecated. At the C level, the " -"fourth argument to the :c:func:`PyRange_New` function, ``repeat``, has also " -"been deprecated." +"deprecated, and trigger warnings when they're accessed; they'll disappear in " +"Python 2.3. :class:`xrange` objects tried to pretend they were full sequence " +"types by supporting slicing, sequence multiplication, and the :keyword:`in` " +"operator, but these features were rarely used and therefore buggy. The :" +"meth:`tolist` method and the :attr:`start`, :attr:`stop`, and :attr:`step` " +"attributes are also being deprecated. At the C level, the fourth argument " +"to the :c:func:`PyRange_New` function, ``repeat``, has also been deprecated." msgstr "" #: ../../whatsnew/2.2.rst:1224 @@ -1514,8 +1504,8 @@ msgid "" "There were a bunch of patches to the dictionary implementation, mostly to " "fix potential core dumps if a dictionary contains objects that sneakily " "changed their hash value, or mutated the dictionary they were contained in. " -"For a while python-dev fell into a gentle rhythm of Michael Hudson finding a" -" case that dumped core, Tim Peters fixing the bug, Michael finding another " +"For a while python-dev fell into a gentle rhythm of Michael Hudson finding a " +"case that dumped core, Tim Peters fixing the bug, Michael finding another " "case, and round and round it went." msgstr "" @@ -1540,16 +1530,16 @@ msgid "" "Windows-only thing, used to indicate that a script needs to be run using " "PYTHONW.EXE instead of PYTHON.EXE in order to prevent a DOS console from " "popping up to display the output. This patch makes it possible to import " -"such scripts, in case they're also usable as modules. (Implemented by David" -" Bolen.)" +"such scripts, in case they're also usable as modules. (Implemented by David " +"Bolen.)" msgstr "" #: ../../whatsnew/2.2.rst:1245 msgid "" "On platforms where Python uses the C :c:func:`dlopen` function to load " -"extension modules, it's now possible to set the flags used by " -":c:func:`dlopen` using the :func:`sys.getdlopenflags` and " -":func:`sys.setdlopenflags` functions. (Contributed by Bram Stolk.)" +"extension modules, it's now possible to set the flags used by :c:func:" +"`dlopen` using the :func:`sys.getdlopenflags` and :func:`sys.setdlopenflags` " +"functions. (Contributed by Bram Stolk.)" msgstr "" #: ../../whatsnew/2.2.rst:1250 @@ -1568,11 +1558,11 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.2.rst:1262 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Fred Bremmer, Keith Briggs, Andrew Dalke, Fred L. Drake, Jr., Carel " -"Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack" -" Jansen, Marc-André Lemburg, Martin von Löwis, Fredrik Lundh, Michael McLay," -" Nick Mathewson, Paul Moore, Gustavo Niemeyer, Don O'Donnell, Joonas " -"Paalasma, Tim Peters, Jens Quade, Tom Reinhardt, Neil Schemenauer, Guido van" -" Rossum, Greg Ward, Edward Welbourne." +"suggestions, corrections and assistance with various drafts of this article: " +"Fred Bremmer, Keith Briggs, Andrew Dalke, Fred L. Drake, Jr., Carel " +"Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack " +"Jansen, Marc-André Lemburg, Martin von Löwis, Fredrik Lundh, Michael McLay, " +"Nick Mathewson, Paul Moore, Gustavo Niemeyer, Don O'Donnell, Joonas " +"Paalasma, Tim Peters, Jens Quade, Tom Reinhardt, Neil Schemenauer, Guido van " +"Rossum, Greg Ward, Edward Welbourne." msgstr "" diff --git a/whatsnew/2.3.po b/whatsnew/2.3.po index 6489712dc..168503ac5 100644 --- a/whatsnew/2.3.po +++ b/whatsnew/2.3.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Victor Matheus Castro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Victor Matheus Castro , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -56,22 +58,22 @@ msgstr "" #: ../../whatsnew/2.3.rst:23 msgid "" -"Some of the many new library features include Boolean, set, heap, and " -"date/time data types, the ability to import modules from ZIP-format " -"archives, metadata support for the long-awaited Python catalog, an updated " -"version of IDLE, and modules for logging messages, wrapping text, parsing " -"CSV files, processing command-line options, using BerkeleyDB databases... " -"the list of new and enhanced modules is lengthy." +"Some of the many new library features include Boolean, set, heap, and date/" +"time data types, the ability to import modules from ZIP-format archives, " +"metadata support for the long-awaited Python catalog, an updated version of " +"IDLE, and modules for logging messages, wrapping text, parsing CSV files, " +"processing command-line options, using BerkeleyDB databases... the list of " +"new and enhanced modules is lengthy." msgstr "" #: ../../whatsnew/2.3.rst:30 msgid "" "This article doesn't attempt to provide a complete specification of the new " -"features, but instead provides a convenient overview. For full details, you" -" should refer to the documentation for Python 2.3, such as the Python " -"Library Reference and the Python Reference Manual. If you want to " -"understand the complete implementation and design rationale, refer to the " -"PEP for a particular new feature." +"features, but instead provides a convenient overview. For full details, you " +"should refer to the documentation for Python 2.3, such as the Python Library " +"Reference and the Python Reference Manual. If you want to understand the " +"complete implementation and design rationale, refer to the PEP for a " +"particular new feature." msgstr "" #: ../../whatsnew/2.3.rst:41 @@ -81,8 +83,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:43 msgid "" "The new :mod:`sets` module contains an implementation of a set datatype. " -"The :class:`Set` class is for mutable sets, sets that can have members added" -" and removed. The :class:`ImmutableSet` class is for sets that can't be " +"The :class:`Set` class is for mutable sets, sets that can have members added " +"and removed. The :class:`ImmutableSet` class is for sets that can't be " "modified, and instances of :class:`ImmutableSet` can therefore be used as " "dictionary keys. Sets are built on top of dictionaries, so the elements " "within a set must be hashable." @@ -96,8 +98,8 @@ msgstr "" msgid "" "The union and intersection of sets can be computed with the :meth:`union` " "and :meth:`intersection` methods; an alternative notation uses the bitwise " -"operators ``&`` and ``|``. Mutable sets also have in-place versions of these" -" methods, :meth:`union_update` and :meth:`intersection_update`. ::" +"operators ``&`` and ``|``. Mutable sets also have in-place versions of these " +"methods, :meth:`union_update` and :meth:`intersection_update`. ::" msgstr "" #: ../../whatsnew/2.3.rst:86 @@ -106,8 +108,8 @@ msgid "" "the set of all elements in the union that aren't in the intersection. " "Another way of putting it is that the symmetric difference contains all " "elements that are in exactly one set. Again, there's an alternative " -"notation (``^``), and an in-place version with the ungainly name " -":meth:`symmetric_difference_update`. ::" +"notation (``^``), and an in-place version with the ungainly name :meth:" +"`symmetric_difference_update`. ::" msgstr "" #: ../../whatsnew/2.3.rst:100 @@ -122,8 +124,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:117 msgid "" -"PEP written by Greg V. Wilson. Implemented by Greg V. Wilson, Alex Martelli," -" and GvR." +"PEP written by Greg V. Wilson. Implemented by Greg V. Wilson, Alex Martelli, " +"and GvR." msgstr "" #: ../../whatsnew/2.3.rst:126 @@ -147,9 +149,9 @@ msgid "" "you call a function, it gets a private namespace where its local variables " "are created. When the function reaches a :keyword:`return` statement, the " "local variables are destroyed and the resulting value is returned to the " -"caller. A later call to the same function will get a fresh new set of local" -" variables. But, what if the local variables weren't thrown away on exiting " -"a function? What if you could later resume the function where it left off? " +"caller. A later call to the same function will get a fresh new set of local " +"variables. But, what if the local variables weren't thrown away on exiting a " +"function? What if you could later resume the function where it left off? " "This is what generators provide; they can be thought of as resumable " "functions." msgstr "" @@ -170,17 +172,16 @@ msgstr "" msgid "" "When you call a generator function, it doesn't return a single value; " "instead it returns a generator object that supports the iterator protocol. " -"On executing the :keyword:`yield` statement, the generator outputs the value" -" of ``i``, similar to a :keyword:`return` statement. The big difference " +"On executing the :keyword:`yield` statement, the generator outputs the value " +"of ``i``, similar to a :keyword:`return` statement. The big difference " "between :keyword:`!yield` and a :keyword:`!return` statement is that on " -"reaching a :keyword:`!yield` the generator's state of execution is suspended" -" and local variables are preserved. On the next call to the generator's " -"``.next()`` method, the function will resume executing immediately after the" -" :keyword:`!yield` statement. (For complicated reasons, the " -":keyword:`!yield` statement isn't allowed inside the :keyword:`try` block of" -" a :keyword:`!try`...\\ :keyword:`!finally` statement; read :pep:`255` for a" -" full explanation of the interaction between :keyword:`!yield` and " -"exceptions.)" +"reaching a :keyword:`!yield` the generator's state of execution is suspended " +"and local variables are preserved. On the next call to the generator's ``." +"next()`` method, the function will resume executing immediately after the :" +"keyword:`!yield` statement. (For complicated reasons, the :keyword:`!yield` " +"statement isn't allowed inside the :keyword:`try` block of a :keyword:`!" +"try`...\\ :keyword:`!finally` statement; read :pep:`255` for a full " +"explanation of the interaction between :keyword:`!yield` and exceptions.)" msgstr "" #: ../../whatsnew/2.3.rst:169 @@ -199,10 +200,10 @@ msgstr "" msgid "" "Inside a generator function, the :keyword:`return` statement can only be " "used without a value, and signals the end of the procession of values; " -"afterwards the generator cannot return any further values. " -":keyword:`!return` with a value, such as ``return 5``, is a syntax error " -"inside a generator function. The end of the generator's results can also be" -" indicated by raising :exc:`StopIteration` manually, or by just letting the " +"afterwards the generator cannot return any further values. :keyword:`!" +"return` with a value, such as ``return 5``, is a syntax error inside a " +"generator function. The end of the generator's results can also be " +"indicated by raising :exc:`StopIteration` manually, or by just letting the " "flow of execution fall off the bottom of the function." msgstr "" @@ -213,17 +214,17 @@ msgid "" "variables. For example, returning a list of integers could be done by " "setting ``self.count`` to 0, and having the :meth:`next` method increment " "``self.count`` and return it. However, for a moderately complicated " -"generator, writing a corresponding class would be much messier. " -":file:`Lib/test/test_generators.py` contains a number of more interesting " -"examples. The simplest one implements an in-order traversal of a tree using" -" generators recursively. ::" +"generator, writing a corresponding class would be much messier. :file:`Lib/" +"test/test_generators.py` contains a number of more interesting examples. " +"The simplest one implements an in-order traversal of a tree using generators " +"recursively. ::" msgstr "" #: ../../whatsnew/2.3.rst:215 msgid "" "Two other examples in :file:`Lib/test/test_generators.py` produce solutions " -"for the N-Queens problem (placing $N$ queens on an $NxN$ chess board so that" -" no queen threatens another) and the Knight's Tour (a route that takes a " +"for the N-Queens problem (placing $N$ queens on an $NxN$ chess board so that " +"no queen threatens another) and the Knight's Tour (a route that takes a " "knight to every square of an $NxN$ chessboard without visiting any square " "twice)." msgstr "" @@ -233,16 +234,16 @@ msgid "" "The idea of generators comes from other programming languages, especially " "Icon (https://www.cs.arizona.edu/icon/), where the idea of generators is " "central. In Icon, every expression and function call behaves like a " -"generator. One example from \"An Overview of the Icon Programming " -"Language\" at https://www.cs.arizona.edu/icon/docs/ipd266.htm gives an idea " -"of what this looks like::" +"generator. One example from \"An Overview of the Icon Programming Language" +"\" at https://www.cs.arizona.edu/icon/docs/ipd266.htm gives an idea of what " +"this looks like::" msgstr "" #: ../../whatsnew/2.3.rst:230 msgid "" -"In Icon the :func:`find` function returns the indexes at which the substring" -" \"or\" is found: 3, 23, 33. In the :keyword:`if` statement, ``i`` is first" -" assigned a value of 3, but 3 is less than 5, so the comparison fails, and " +"In Icon the :func:`find` function returns the indexes at which the substring " +"\"or\" is found: 3, 23, 33. In the :keyword:`if` statement, ``i`` is first " +"assigned a value of 3, but 3 is less than 5, so the comparison fails, and " "Icon retries it with the second value of 23. 23 is greater than 5, so the " "comparison now succeeds, and the code prints the value 23 to the screen." msgstr "" @@ -284,16 +285,16 @@ msgstr "" #: ../../whatsnew/2.3.rst:267 msgid "" "Without such an encoding declaration, the default encoding used is 7-bit " -"ASCII. Executing or importing modules that contain string literals with " -"8-bit characters and have no encoding declaration will result in a " -":exc:`DeprecationWarning` being signalled by Python 2.3; in 2.4 this will be" -" a syntax error." +"ASCII. Executing or importing modules that contain string literals with 8-" +"bit characters and have no encoding declaration will result in a :exc:" +"`DeprecationWarning` being signalled by Python 2.3; in 2.4 this will be a " +"syntax error." msgstr "" #: ../../whatsnew/2.3.rst:273 msgid "" -"The encoding declaration only affects Unicode string literals, which will be" -" converted to Unicode using the specified encoding. Note that Python " +"The encoding declaration only affects Unicode string literals, which will be " +"converted to Unicode using the specified encoding. Note that Python " "identifiers are still restricted to ASCII characters, so you can't have " "variable names that use characters outside of the usual alphanumerics." msgstr "" @@ -315,26 +316,26 @@ msgstr "" #: ../../whatsnew/2.3.rst:291 msgid "" "The new :mod:`zipimport` module adds support for importing modules from a " -"ZIP-format archive. You don't need to import the module explicitly; it will" -" be automatically imported if a ZIP archive's filename is added to " -"``sys.path``. For example:" +"ZIP-format archive. You don't need to import the module explicitly; it will " +"be automatically imported if a ZIP archive's filename is added to ``sys." +"path``. For example:" msgstr "" #: ../../whatsnew/2.3.rst:314 msgid "" "An entry in ``sys.path`` can now be the filename of a ZIP archive. The ZIP " -"archive can contain any kind of files, but only files named :file:`\\*.py`, " -":file:`\\*.pyc`, or :file:`\\*.pyo` can be imported. If an archive only " -"contains :file:`\\*.py` files, Python will not attempt to modify the archive" -" by adding the corresponding :file:`\\*.pyc` file, meaning that if a ZIP " +"archive can contain any kind of files, but only files named :file:`\\*.py`, :" +"file:`\\*.pyc`, or :file:`\\*.pyo` can be imported. If an archive only " +"contains :file:`\\*.py` files, Python will not attempt to modify the archive " +"by adding the corresponding :file:`\\*.pyc` file, meaning that if a ZIP " "archive doesn't contain :file:`\\*.pyc` files, importing may be rather slow." msgstr "" #: ../../whatsnew/2.3.rst:321 msgid "" "A path within the archive can also be specified to only import from a " -"subdirectory; for example, the path :file:`/tmp/example.zip/lib/` would only" -" import from the :file:`lib/` subdirectory within the archive." +"subdirectory; for example, the path :file:`/tmp/example.zip/lib/` would only " +"import from the :file:`lib/` subdirectory within the archive." msgstr "" #: ../../whatsnew/2.3.rst:331 @@ -345,9 +346,9 @@ msgstr "" msgid "" "Written by James C. Ahlstrom, who also provided an implementation. Python " "2.3 follows the specification in :pep:`273`, but uses an implementation " -"written by Just van Rossum that uses the import hooks described in " -":pep:`302`. See section :ref:`section-pep302` for a description of the new " -"import hooks." +"written by Just van Rossum that uses the import hooks described in :pep:" +"`302`. See section :ref:`section-pep302` for a description of the new import " +"hooks." msgstr "" #: ../../whatsnew/2.3.rst:338 @@ -363,12 +364,11 @@ msgstr "" #: ../../whatsnew/2.3.rst:344 msgid "" -"Python now allows using arbitrary Unicode strings (within the limitations of" -" the file system) for all functions that expect file names, most notably the" -" :func:`open` built-in function. If a Unicode string is passed to " -":func:`os.listdir`, Python now returns a list of Unicode strings. A new " -"function, :func:`os.getcwdu`, returns the current directory as a Unicode " -"string." +"Python now allows using arbitrary Unicode strings (within the limitations of " +"the file system) for all functions that expect file names, most notably the :" +"func:`open` built-in function. If a Unicode string is passed to :func:`os." +"listdir`, Python now returns a list of Unicode strings. A new function, :" +"func:`os.getcwdu`, returns the current directory as a Unicode string." msgstr "" #: ../../whatsnew/2.3.rst:350 @@ -380,10 +380,10 @@ msgstr "" #: ../../whatsnew/2.3.rst:353 msgid "" "Other systems also allow Unicode strings as file names but convert them to " -"byte strings before passing them to the system, which can cause a " -":exc:`UnicodeError` to be raised. Applications can test whether arbitrary " -"Unicode strings are supported as file names by checking " -":attr:`os.path.supports_unicode_filenames`, a Boolean value." +"byte strings before passing them to the system, which can cause a :exc:" +"`UnicodeError` to be raised. Applications can test whether arbitrary Unicode " +"strings are supported as file names by checking :attr:`os.path." +"supports_unicode_filenames`, a Boolean value." msgstr "" #: ../../whatsnew/2.3.rst:359 @@ -407,20 +407,19 @@ msgstr "" #: ../../whatsnew/2.3.rst:377 msgid "" "The three major operating systems used today are Microsoft Windows, Apple's " -"Macintosh OS, and the various Unix derivatives. A minor irritation of " -"cross-platform work is that these three platforms all use different " -"characters to mark the ends of lines in text files. Unix uses the linefeed " -"(ASCII character 10), MacOS uses the carriage return (ASCII character 13), " -"and Windows uses a two-character sequence of a carriage return plus a " -"newline." +"Macintosh OS, and the various Unix derivatives. A minor irritation of cross-" +"platform work is that these three platforms all use different characters to " +"mark the ends of lines in text files. Unix uses the linefeed (ASCII " +"character 10), MacOS uses the carriage return (ASCII character 13), and " +"Windows uses a two-character sequence of a carriage return plus a newline." msgstr "" #: ../../whatsnew/2.3.rst:384 msgid "" -"Python's file objects can now support end of line conventions other than the" -" one followed by the platform on which Python is running. Opening a file " -"with the mode ``'U'`` or ``'rU'`` will open a file for reading in " -":term:`universal newlines` mode. All three line ending conventions will be " +"Python's file objects can now support end of line conventions other than the " +"one followed by the platform on which Python is running. Opening a file with " +"the mode ``'U'`` or ``'rU'`` will open a file for reading in :term:" +"`universal newlines` mode. All three line ending conventions will be " "translated to a ``'\\n'`` in the strings returned by the various file " "methods such as :meth:`read` and :meth:`readline`." msgstr "" @@ -428,16 +427,16 @@ msgstr "" #: ../../whatsnew/2.3.rst:391 msgid "" "Universal newline support is also used when importing modules and when " -"executing a file with the :func:`execfile` function. This means that Python" -" modules can be shared between all three operating systems without needing " -"to convert the line-endings." +"executing a file with the :func:`execfile` function. This means that Python " +"modules can be shared between all three operating systems without needing to " +"convert the line-endings." msgstr "" #: ../../whatsnew/2.3.rst:396 msgid "" -"This feature can be disabled when compiling Python by specifying the :option" -":`!--without-universal-newlines` switch when running Python's " -":program:`configure` script." +"This feature can be disabled when compiling Python by specifying the :option:" +"`!--without-universal-newlines` switch when running Python's :program:" +"`configure` script." msgstr "" #: ../../whatsnew/2.3.rst:403 @@ -486,8 +485,8 @@ msgid "" "Python 2.3. It provides a powerful and flexible mechanism for generating " "logging output which can then be filtered and processed in various ways. A " "configuration file written in a standard format can be used to control the " -"logging behavior of a program. Python includes handlers that will write log" -" records to standard error or to a file or socket, send them to the system " +"logging behavior of a program. Python includes handlers that will write log " +"records to standard error or to a file or socket, send them to the system " "log, or even e-mail them to a particular address; of course, it's also " "possible to write your own handler classes." msgstr "" @@ -495,16 +494,16 @@ msgstr "" #: ../../whatsnew/2.3.rst:453 msgid "" "The :class:`Logger` class is the primary class. Most application code will " -"deal with one or more :class:`Logger` objects, each one used by a particular" -" subsystem of the application. Each :class:`Logger` is identified by a name," -" and names are organized into a hierarchy using ``.`` as the component " +"deal with one or more :class:`Logger` objects, each one used by a particular " +"subsystem of the application. Each :class:`Logger` is identified by a name, " +"and names are organized into a hierarchy using ``.`` as the component " "separator. For example, you might have :class:`Logger` instances named " "``server``, ``server.auth`` and ``server.network``. The latter two " "instances are below ``server`` in the hierarchy. This means that if you " "turn up the verbosity for ``server`` or direct ``server`` messages to a " -"different handler, the changes will also apply to records logged to " -"``server.auth`` and ``server.network``. There's also a root :class:`Logger` " -"that's the parent of all other loggers." +"different handler, the changes will also apply to records logged to ``server." +"auth`` and ``server.network``. There's also a root :class:`Logger` that's " +"the parent of all other loggers." msgstr "" #: ../../whatsnew/2.3.rst:464 @@ -521,22 +520,22 @@ msgstr "This produces the following output::" msgid "" "In the default configuration, informational and debugging messages are " "suppressed and the output is sent to standard error. You can enable the " -"display of informational and debugging messages by calling the " -":meth:`setLevel` method on the root logger." +"display of informational and debugging messages by calling the :meth:" +"`setLevel` method on the root logger." msgstr "" #: ../../whatsnew/2.3.rst:486 msgid "" -"Notice the :func:`warning` call's use of string formatting operators; all of" -" the functions for logging messages take the arguments ``(msg, arg1, arg2, " -"...)`` and log the string resulting from ``msg % (arg1, arg2, ...)``." +"Notice the :func:`warning` call's use of string formatting operators; all of " +"the functions for logging messages take the arguments ``(msg, arg1, " +"arg2, ...)`` and log the string resulting from ``msg % (arg1, arg2, ...)``." msgstr "" #: ../../whatsnew/2.3.rst:490 msgid "" "There's also an :func:`exception` function that records the most recent " -"traceback. Any of the other functions will also record the traceback if you" -" specify a true value for the keyword argument *exc_info*. ::" +"traceback. Any of the other functions will also record the traceback if you " +"specify a true value for the keyword argument *exc_info*. ::" msgstr "" #: ../../whatsnew/2.3.rst:508 @@ -550,9 +549,9 @@ msgstr "" #: ../../whatsnew/2.3.rst:519 msgid "" "Log records are usually propagated up the hierarchy, so a message logged to " -"``server.auth`` is also seen by ``server`` and ``root``, but a " -":class:`Logger` can prevent this by setting its :attr:`propagate` attribute " -"to :const:`False`." +"``server.auth`` is also seen by ``server`` and ``root``, but a :class:" +"`Logger` can prevent this by setting its :attr:`propagate` attribute to :" +"const:`False`." msgstr "" #: ../../whatsnew/2.3.rst:523 @@ -560,12 +559,12 @@ msgid "" "There are more classes provided by the :mod:`logging` package that can be " "customized. When a :class:`Logger` instance is told to log a message, it " "creates a :class:`LogRecord` instance that is sent to any number of " -"different :class:`Handler` instances. Loggers and handlers can also have an" -" attached list of filters, and each filter can cause the :class:`LogRecord` " +"different :class:`Handler` instances. Loggers and handlers can also have an " +"attached list of filters, and each filter can cause the :class:`LogRecord` " "to be ignored or can modify the record before passing it along. When " "they're finally output, :class:`LogRecord` instances are converted to text " -"by a :class:`Formatter` class. All of these classes can be replaced by your" -" own specially-written classes." +"by a :class:`Formatter` class. All of these classes can be replaced by your " +"own specially-written classes." msgstr "" #: ../../whatsnew/2.3.rst:533 @@ -591,18 +590,18 @@ msgstr "" #: ../../whatsnew/2.3.rst:552 msgid "" -"A Boolean type was added to Python 2.3. Two new constants were added to the" -" :mod:`__builtin__` module, :const:`True` and :const:`False`. " -"(:const:`True` and :const:`False` constants were added to the built-ins in " -"Python 2.2.1, but the 2.2.1 versions are simply set to integer values of 1 " -"and 0 and aren't a different type.)" +"A Boolean type was added to Python 2.3. Two new constants were added to " +"the :mod:`__builtin__` module, :const:`True` and :const:`False`. (:const:" +"`True` and :const:`False` constants were added to the built-ins in Python " +"2.2.1, but the 2.2.1 versions are simply set to integer values of 1 and 0 " +"and aren't a different type.)" msgstr "" #: ../../whatsnew/2.3.rst:558 msgid "" "The type object for this new type is named :class:`bool`; the constructor " -"for it takes any Python value and converts it to :const:`True` or " -":const:`False`. ::" +"for it takes any Python value and converts it to :const:`True` or :const:" +"`False`. ::" msgstr "" #: ../../whatsnew/2.3.rst:570 @@ -625,12 +624,12 @@ msgstr "" msgid "" "Python's Booleans were *not* added for the sake of strict type-checking. A " "very strict language such as Pascal would also prevent you performing " -"arithmetic with Booleans, and would require that the expression in an " -":keyword:`if` statement always evaluate to a Boolean result. Python is not " +"arithmetic with Booleans, and would require that the expression in an :" +"keyword:`if` statement always evaluate to a Boolean result. Python is not " "this strict and never will be, as :pep:`285` explicitly says. This means " "you can still use any expression in an :keyword:`!if` statement, even ones " -"that evaluate to a list or tuple or some random object. The Boolean type is" -" a subclass of the :class:`int` class so that arithmetic using a Boolean " +"that evaluate to a list or tuple or some random object. The Boolean type is " +"a subclass of the :class:`int` class so that arithmetic using a Boolean " "still works. ::" msgstr "" @@ -658,8 +657,8 @@ msgstr "" msgid "" "When encoding a Unicode string into a byte string, unencodable characters " "may be encountered. So far, Python has allowed specifying the error " -"processing as either \"strict\" (raising :exc:`UnicodeError`), \"ignore\" " -"(skipping the character), or \"replace\" (using a question mark in the " +"processing as either \"strict\" (raising :exc:`UnicodeError`), \"ignore" +"\" (skipping the character), or \"replace\" (using a question mark in the " "output string), with \"strict\" being the default behavior. It may be " "desirable to specify alternative processing of such errors, such as " "inserting an XML character reference or HTML entity reference into the " @@ -668,14 +667,14 @@ msgstr "" #: ../../whatsnew/2.3.rst:630 msgid "" -"Python now has a flexible framework to add different processing strategies." -" New error handlers can be added with :func:`codecs.register_error`, and " +"Python now has a flexible framework to add different processing strategies. " +"New error handlers can be added with :func:`codecs.register_error`, and " "codecs then can access the error handler with :func:`codecs.lookup_error`. " "An equivalent C API has been added for codecs written in C. The error " "handler gets the necessary state information such as the string being " "converted, the position in the string where the error was detected, and the " -"target encoding. The handler can then either raise an exception or return a" -" replacement string." +"target encoding. The handler can then either raise an exception or return a " +"replacement string." msgstr "" #: ../../whatsnew/2.3.rst:638 @@ -716,8 +715,8 @@ msgstr "" msgid "" "To make the catalog a bit more useful, a new optional *classifiers* keyword " "argument has been added to the Distutils :func:`setup` function. A list of " -"`Trove `_-style strings can be supplied to help" -" classify the software." +"`Trove `_-style strings can be supplied to help " +"classify the software." msgstr "" #: ../../whatsnew/2.3.rst:669 @@ -746,12 +745,12 @@ msgstr "" #: ../../whatsnew/2.3.rst:705 msgid "" -"While it's been possible to write custom import hooks ever since the " -":mod:`ihooks` module was introduced in Python 1.3, no one has ever been " -"really happy with it because writing new import hooks is difficult and " -"messy. There have been various proposed alternatives such as the " -":mod:`imputil` and :mod:`iu` modules, but none of them has ever gained much " -"acceptance, and none of them were easily usable from C code." +"While it's been possible to write custom import hooks ever since the :mod:" +"`ihooks` module was introduced in Python 1.3, no one has ever been really " +"happy with it because writing new import hooks is difficult and messy. " +"There have been various proposed alternatives such as the :mod:`imputil` " +"and :mod:`iu` modules, but none of them has ever gained much acceptance, and " +"none of them were easily usable from C code." msgstr "" #: ../../whatsnew/2.3.rst:712 @@ -765,21 +764,21 @@ msgstr "" msgid "" "``sys.path_hooks`` is a list of callable objects; most often they'll be " "classes. Each callable takes a string containing a path and either returns " -"an importer object that will handle imports from this path or raises an " -":exc:`ImportError` exception if it can't handle this path." +"an importer object that will handle imports from this path or raises an :exc:" +"`ImportError` exception if it can't handle this path." msgstr "" #: ../../whatsnew/2.3.rst:721 msgid "" -"``sys.path_importer_cache`` caches importer objects for each path, so " -"``sys.path_hooks`` will only need to be traversed once for each path." +"``sys.path_importer_cache`` caches importer objects for each path, so ``sys." +"path_hooks`` will only need to be traversed once for each path." msgstr "" #: ../../whatsnew/2.3.rst:724 msgid "" "``sys.meta_path`` is a list of importer objects that will be traversed " -"before ``sys.path`` is checked. This list is initially empty, but user code" -" can add objects to it. Additional built-in and frozen modules can be " +"before ``sys.path`` is checked. This list is initially empty, but user code " +"can add objects to it. Additional built-in and frozen modules can be " "imported by an object added to this list." msgstr "" @@ -787,9 +786,9 @@ msgstr "" msgid "" "Importer objects must have a single method, ``find_module(fullname, " "path=None)``. *fullname* will be a module or package name, e.g. ``string`` " -"or ``distutils.core``. :meth:`find_module` must return a loader object that" -" has a single method, ``load_module(fullname)``, that creates and returns " -"the corresponding module object." +"or ``distutils.core``. :meth:`find_module` must return a loader object that " +"has a single method, ``load_module(fullname)``, that creates and returns the " +"corresponding module object." msgstr "" #: ../../whatsnew/2.3.rst:735 @@ -824,8 +823,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:778 msgid "" -"Read a line and call ``line.split(',')``: what could be simpler? But toss in" -" string data that can contain commas, and things get more complicated::" +"Read a line and call ``line.split(',')``: what could be simpler? But toss in " +"string data that can contain commas, and things get more complicated::" msgstr "" #: ../../whatsnew/2.3.rst:783 @@ -844,8 +843,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:797 msgid "" "Different dialects of comma-separated files can be defined and registered; " -"currently there are two dialects, both used by Microsoft Excel. A separate " -":class:`csv.writer` class will generate comma-separated files from a " +"currently there are two dialects, both used by Microsoft Excel. A separate :" +"class:`csv.writer` class will generate comma-separated files from a " "succession of tuples or lists, quoting strings that contain the delimiter." msgstr "" @@ -868,15 +867,15 @@ msgid "" "The :mod:`pickle` and :mod:`cPickle` modules received some attention during " "the 2.3 development cycle. In 2.2, new-style classes could be pickled " "without difficulty, but they weren't pickled very compactly; :pep:`307` " -"quotes a trivial example where a new-style class results in a pickled string" -" three times longer than that for a classic class." +"quotes a trivial example where a new-style class results in a pickled string " +"three times longer than that for a classic class." msgstr "" #: ../../whatsnew/2.3.rst:823 msgid "" "The solution was to invent a new pickle protocol. The :func:`pickle.dumps` " -"function has supported a text-or-binary flag for a long time. In 2.3, this" -" flag is redefined from a Boolean to an integer: 0 is the old text-mode " +"function has supported a text-or-binary flag for a long time. In 2.3, this " +"flag is redefined from a Boolean to an integer: 0 is the old text-mode " "pickle format, 1 is the old binary format, and now 2 is a new 2.3-specific " "format. A new constant, :const:`pickle.HIGHEST_PROTOCOL`, can be used to " "select the fanciest protocol available." @@ -894,17 +893,17 @@ msgstr "" #: ../../whatsnew/2.3.rst:836 msgid "" "To reduce the pickling overhead for new-style classes, a new interface for " -"customizing pickling was added using three special methods: " -":meth:`__getstate__`, :meth:`__setstate__`, and :meth:`__getnewargs__`. " -"Consult :pep:`307` for the full semantics of these methods." +"customizing pickling was added using three special methods: :meth:" +"`__getstate__`, :meth:`__setstate__`, and :meth:`__getnewargs__`. Consult :" +"pep:`307` for the full semantics of these methods." msgstr "" #: ../../whatsnew/2.3.rst:841 msgid "" "As a way to compress pickles yet further, it's now possible to use integer " "codes instead of long strings to identify pickled classes. The Python " -"Software Foundation will maintain a list of standardized codes; there's also" -" a range of codes for private use. Currently no codes have been specified." +"Software Foundation will maintain a list of standardized codes; there's also " +"a range of codes for private use. Currently no codes have been specified." msgstr "" #: ../../whatsnew/2.3.rst:849 @@ -926,9 +925,8 @@ msgid "" "syntax: ``L[1:10:2]``, ``L[:-1:1]``, ``L[::-1]``. This was added to Python " "at the request of the developers of Numerical Python, which uses the third " "argument extensively. However, Python's built-in list, tuple, and string " -"sequence types have never supported this feature, raising a :exc:`TypeError`" -" if you tried it. Michael Hudson contributed a patch to fix this " -"shortcoming." +"sequence types have never supported this feature, raising a :exc:`TypeError` " +"if you tried it. Michael Hudson contributed a patch to fix this shortcoming." msgstr "" #: ../../whatsnew/2.3.rst:868 @@ -980,8 +978,8 @@ msgid "" "To simplify implementing sequences that support extended slicing, slice " "objects now have a method ``indices(length)`` which, given the length of a " "sequence, returns a ``(start, stop, step)`` tuple that can be passed " -"directly to :func:`range`. :meth:`indices` handles omitted and out-of-bounds" -" indices in a manner consistent with regular slices (and this innocuous " +"directly to :func:`range`. :meth:`indices` handles omitted and out-of-bounds " +"indices in a manner consistent with regular slices (and this innocuous " "phrase hides a welter of confusing details!). The method is intended to be " "used like this::" msgstr "" @@ -1012,15 +1010,15 @@ msgstr "" #: ../../whatsnew/2.3.rst:973 msgid "" -"A new built-in function :func:`enumerate` was added, as described in section" -" :ref:`section-enumerate` of this document." +"A new built-in function :func:`enumerate` was added, as described in " +"section :ref:`section-enumerate` of this document." msgstr "" #: ../../whatsnew/2.3.rst:976 msgid "" "Two new constants, :const:`True` and :const:`False` were added along with " -"the built-in :class:`bool` type, as described in section :ref:`section-bool`" -" of this document." +"the built-in :class:`bool` type, as described in section :ref:`section-bool` " +"of this document." msgstr "" #: ../../whatsnew/2.3.rst:980 @@ -1048,8 +1046,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:994 msgid "" -"``list.insert(pos, value)`` used to insert *value* at the front of the list" -" when *pos* was negative. The behaviour has now been changed to be " +"``list.insert(pos, value)`` used to insert *value* at the front of the list " +"when *pos* was negative. The behaviour has now been changed to be " "consistent with slice indexing, so when *pos* is -1 the value will be " "inserted before the last element, and so forth." msgstr "" @@ -1057,16 +1055,16 @@ msgstr "" #: ../../whatsnew/2.3.rst:999 msgid "" "``list.index(value)``, which searches for *value* within the list and " -"returns its index, now takes optional *start* and *stop* arguments to limit" -" the search to only part of the list." +"returns its index, now takes optional *start* and *stop* arguments to limit " +"the search to only part of the list." msgstr "" #: ../../whatsnew/2.3.rst:1003 msgid "" "Dictionaries have a new method, ``pop(key[, *default*])``, that returns the " "value corresponding to *key* and removes that key/value pair from the " -"dictionary. If the requested key isn't present in the dictionary, *default*" -" is returned if it's specified and :exc:`KeyError` raised if it isn't. ::" +"dictionary. If the requested key isn't present in the dictionary, *default* " +"is returned if it's specified and :exc:`KeyError` raised if it isn't. ::" msgstr "" #: ../../whatsnew/2.3.rst:1025 @@ -1082,8 +1080,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1031 msgid "" -"Also, the :func:`dict` constructor now accepts keyword arguments to simplify" -" creating small dictionaries::" +"Also, the :func:`dict` constructor now accepts keyword arguments to simplify " +"creating small dictionaries::" msgstr "" #: ../../whatsnew/2.3.rst:1037 @@ -1101,10 +1099,10 @@ msgstr "" #: ../../whatsnew/2.3.rst:1044 msgid "" "Most type objects are now callable, so you can use them to create new " -"objects such as functions, classes, and modules. (This means that the " -":mod:`new` module can be deprecated in a future Python version, because you " -"can now use the type objects available in the :mod:`types` module.) For " -"example, you can create a new module object with the following code:" +"objects such as functions, classes, and modules. (This means that the :mod:" +"`new` module can be deprecated in a future Python version, because you can " +"now use the type objects available in the :mod:`types` module.) For example, " +"you can create a new module object with the following code:" msgstr "" #: ../../whatsnew/2.3.rst:1059 @@ -1112,16 +1110,16 @@ msgid "" "A new warning, :exc:`PendingDeprecationWarning` was added to indicate " "features which are in the process of being deprecated. The warning will " "*not* be printed by default. To check for use of features that will be " -"deprecated in the future, supply " -":option:`-Walways::PendingDeprecationWarning:: <-W>` on the command line or " -"use :func:`warnings.filterwarnings`." +"deprecated in the future, supply :option:`-Walways::" +"PendingDeprecationWarning:: <-W>` on the command line or use :func:`warnings." +"filterwarnings`." msgstr "" #: ../../whatsnew/2.3.rst:1065 msgid "" "The process of deprecating string-based exceptions, as in ``raise \"Error " -"occurred\"``, has begun. Raising a string will now trigger " -":exc:`PendingDeprecationWarning`." +"occurred\"``, has begun. Raising a string will now trigger :exc:" +"`PendingDeprecationWarning`." msgstr "" #: ../../whatsnew/2.3.rst:1069 @@ -1134,13 +1132,12 @@ msgstr "" #: ../../whatsnew/2.3.rst:1072 msgid "" "The :meth:`xreadlines` method of file objects, introduced in Python 2.1, is " -"no longer necessary because files now behave as their own iterator. " -":meth:`xreadlines` was originally introduced as a faster way to loop over " -"all the lines in a file, but now you can simply write ``for line in " -"file_obj``. File objects also have a new read-only :attr:`encoding` " -"attribute that gives the encoding used by the file; Unicode strings written " -"to the file will be automatically converted to bytes using the given " -"encoding." +"no longer necessary because files now behave as their own iterator. :meth:" +"`xreadlines` was originally introduced as a faster way to loop over all the " +"lines in a file, but now you can simply write ``for line in file_obj``. File " +"objects also have a new read-only :attr:`encoding` attribute that gives the " +"encoding used by the file; Unicode strings written to the file will be " +"automatically converted to bytes using the given encoding." msgstr "" #: ../../whatsnew/2.3.rst:1080 @@ -1150,14 +1147,13 @@ msgid "" "inheritance hierarchy. Classic classes are unaffected by this change. " "Python 2.2 originally used a topological sort of a class's ancestors, but " "2.3 now uses the C3 algorithm as described in the paper `\"A Monotonic " -"Superclass Linearization for Dylan\" " -"`_. To " -"understand the motivation for this change, read Michele Simionato's article" -" `\"Python 2.3 Method Resolution Order\" " -"`_, or read the thread on " -"python-dev starting with the message at https://mail.python.org/pipermail" -"/python-dev/2002-October/029035.html. Samuele Pedroni first pointed out the " -"problem and also implemented the fix by coding the C3 algorithm." +"Superclass Linearization for Dylan\" `_. To understand the motivation for this " +"change, read Michele Simionato's article `\"Python 2.3 Method Resolution " +"Order\" `_, or read the " +"thread on python-dev starting with the message at https://mail.python.org/" +"pipermail/python-dev/2002-October/029035.html. Samuele Pedroni first pointed " +"out the problem and also implemented the fix by coding the C3 algorithm." msgstr "" #: ../../whatsnew/2.3.rst:1093 @@ -1186,11 +1182,11 @@ msgstr "" #: ../../whatsnew/2.3.rst:1115 msgid "" "One of the noted incompatibilities between old- and new-style classes has " -"been removed: you can now assign to the :attr:`~definition.__name__` and " -":attr:`~class.__bases__` attributes of new-style classes. There are some " +"been removed: you can now assign to the :attr:`~definition.__name__` and :" +"attr:`~class.__bases__` attributes of new-style classes. There are some " "restrictions on what can be assigned to :attr:`~class.__bases__` along the " -"lines of those relating to assigning to an instance's " -":attr:`~instance.__class__` attribute." +"lines of those relating to assigning to an instance's :attr:`~instance." +"__class__` attribute." msgstr "" #: ../../whatsnew/2.3.rst:1125 @@ -1208,8 +1204,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1140 msgid "" -"Note that this doesn't tell you where the substring starts; if you need that" -" information, use the :meth:`find` string method." +"Note that this doesn't tell you where the substring starts; if you need that " +"information, use the :meth:`find` string method." msgstr "" #: ../../whatsnew/2.3.rst:1143 @@ -1231,9 +1227,9 @@ msgstr "" #: ../../whatsnew/2.3.rst:1162 msgid "" -"Another new string method is :meth:`zfill`, originally a function in the " -":mod:`string` module. :meth:`zfill` pads a numeric string with zeros on the" -" left until it's the specified width. Note that the ``%`` operator is still " +"Another new string method is :meth:`zfill`, originally a function in the :" +"mod:`string` module. :meth:`zfill` pads a numeric string with zeros on the " +"left until it's the specified width. Note that the ``%`` operator is still " "more flexible and powerful than :meth:`zfill`. ::" msgstr "" @@ -1251,8 +1247,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1181 msgid "" -"Interned strings are no longer immortal and will now be garbage-collected in" -" the usual way when the only reference to them is from the internal " +"Interned strings are no longer immortal and will now be garbage-collected in " +"the usual way when the only reference to them is from the internal " "dictionary of interned strings. (Implemented by Oren Tirosh.)" msgstr "" @@ -1262,8 +1258,8 @@ msgstr "Otimizações" #: ../../whatsnew/2.3.rst:1191 msgid "" -"The creation of new-style class instances has been made much faster; they're" -" now faster than classic classes!" +"The creation of new-style class instances has been made much faster; they're " +"now faster than classic classes!" msgstr "" #: ../../whatsnew/2.3.rst:1194 @@ -1284,8 +1280,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1202 msgid "" "The ``SET_LINENO`` opcode is now gone. This may provide a small speed " -"increase, depending on your compiler's idiosyncrasies. See section :ref" -":`23section-other` for a longer explanation. (Removed by Michael Hudson.)" +"increase, depending on your compiler's idiosyncrasies. See section :ref:" +"`23section-other` for a longer explanation. (Removed by Michael Hudson.)" msgstr "" #: ../../whatsnew/2.3.rst:1206 @@ -1305,8 +1301,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1214 msgid "" -"The net result of the 2.3 optimizations is that Python 2.3 runs the pystone" -" benchmark around 25% faster than Python 2.2." +"The net result of the 2.3 optimizations is that Python 2.3 runs the pystone " +"benchmark around 25% faster than Python 2.2." msgstr "" #: ../../whatsnew/2.3.rst:1221 @@ -1339,25 +1335,25 @@ msgstr "" #: ../../whatsnew/2.3.rst:1237 msgid "" -"The old version of the module has been renamed to :mod:`bsddb185` and is no" -" longer built automatically; you'll have to edit :file:`Modules/Setup` to " +"The old version of the module has been renamed to :mod:`bsddb185` and is no " +"longer built automatically; you'll have to edit :file:`Modules/Setup` to " "enable it. Note that the new :mod:`bsddb` package is intended to be " -"compatible with the old module, so be sure to file bugs if you discover any" -" incompatibilities. When upgrading to Python 2.3, if the new interpreter is " +"compatible with the old module, so be sure to file bugs if you discover any " +"incompatibilities. When upgrading to Python 2.3, if the new interpreter is " "compiled with a new version of the underlying BerkeleyDB library, you will " "almost certainly have to convert your database files to the new version. " -"You can do this fairly easily with the new scripts :file:`db2pickle.py` and " -":file:`pickle2db.py` which you will find in the distribution's " -":file:`Tools/scripts` directory. If you've already been using the PyBSDDB " -"package and importing it as :mod:`bsddb3`, you will have to change your " -"``import`` statements to import it as :mod:`bsddb`." +"You can do this fairly easily with the new scripts :file:`db2pickle.py` and :" +"file:`pickle2db.py` which you will find in the distribution's :file:`Tools/" +"scripts` directory. If you've already been using the PyBSDDB package and " +"importing it as :mod:`bsddb3`, you will have to change your ``import`` " +"statements to import it as :mod:`bsddb`." msgstr "" #: ../../whatsnew/2.3.rst:1249 msgid "" "The new :mod:`bz2` module is an interface to the bz2 data compression " -"library. bz2-compressed data is usually smaller than corresponding " -":mod:`zlib`\\ -compressed data. (Contributed by Gustavo Niemeyer.)" +"library. bz2-compressed data is usually smaller than corresponding :mod:" +"`zlib`\\ -compressed data. (Contributed by Gustavo Niemeyer.)" msgstr "" #: ../../whatsnew/2.3.rst:1253 @@ -1372,8 +1368,8 @@ msgid "" "argument named *depends* for listing additional source files that an " "extension depends on. This lets Distutils recompile the module if any of " "the dependency files are modified. For example, if :file:`sampmodule.c` " -"includes the header file :file:`sample.h`, you would create the " -":class:`Extension` object like this::" +"includes the header file :file:`sample.h`, you would create the :class:" +"`Extension` object like this::" msgstr "" #: ../../whatsnew/2.3.rst:1267 @@ -1384,8 +1380,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1270 msgid "" -"Other minor changes to Distutils: it now checks for the :envvar:`CC`, " -":envvar:`CFLAGS`, :envvar:`CPP`, :envvar:`LDFLAGS`, and :envvar:`CPPFLAGS` " +"Other minor changes to Distutils: it now checks for the :envvar:`CC`, :" +"envvar:`CFLAGS`, :envvar:`CPP`, :envvar:`LDFLAGS`, and :envvar:`CPPFLAGS` " "environment variables, using them to override the settings in Python's " "configuration (contributed by Robert Weber)." msgstr "" @@ -1394,8 +1390,8 @@ msgstr "" msgid "" "Previously the :mod:`doctest` module would only search the docstrings of " "public methods and functions for test cases, but it now also examines " -"private ones as well. The :func:`DocTestSuite` function creates a " -":class:`unittest.TestSuite` object from a set of :mod:`doctest` tests." +"private ones as well. The :func:`DocTestSuite` function creates a :class:" +"`unittest.TestSuite` object from a set of :mod:`doctest` tests." msgstr "" #: ../../whatsnew/2.3.rst:1280 @@ -1407,11 +1403,11 @@ msgstr "" #: ../../whatsnew/2.3.rst:1283 msgid "" "The :mod:`getopt` module gained a new function, :func:`gnu_getopt`, that " -"supports the same arguments as the existing :func:`getopt` function but uses" -" GNU-style scanning mode. The existing :func:`getopt` stops processing " +"supports the same arguments as the existing :func:`getopt` function but uses " +"GNU-style scanning mode. The existing :func:`getopt` stops processing " "options as soon as a non-option argument is encountered, but in GNU-style " -"mode processing continues, meaning that options and arguments can be mixed." -" For example::" +"mode processing continues, meaning that options and arguments can be mixed. " +"For example::" msgstr "" #: ../../whatsnew/2.3.rst:1294 @@ -1432,12 +1428,11 @@ msgstr "" msgid "" "The new :mod:`heapq` module contains an implementation of a heap queue " "algorithm. A heap is an array-like data structure that keeps items in a " -"partially sorted order such that, for every index *k*, ``heap[k] <= " -"heap[2*k+1]`` and ``heap[k] <= heap[2*k+2]``. This makes it quick to remove" -" the smallest item, and inserting a new item while maintaining the heap " -"property is O(lg n). (See " -"https://xlinux.nist.gov/dads//HTML/priorityque.html for more information " -"about the priority queue data structure.)" +"partially sorted order such that, for every index *k*, ``heap[k] <= heap[2*k" +"+1]`` and ``heap[k] <= heap[2*k+2]``. This makes it quick to remove the " +"smallest item, and inserting a new item while maintaining the heap property " +"is O(lg n). (See https://xlinux.nist.gov/dads//HTML/priorityque.html for " +"more information about the priority queue data structure.)" msgstr "" #: ../../whatsnew/2.3.rst:1314 @@ -1458,8 +1453,8 @@ msgid "" "from the IDLEfork project (http://idlefork.sourceforge.net). The most " "notable feature is that the code being developed is now executed in a " "subprocess, meaning that there's no longer any need for manual ``reload()`` " -"operations. IDLE's core code has been incorporated into the standard library" -" as the :mod:`idlelib` package." +"operations. IDLE's core code has been incorporated into the standard library " +"as the :mod:`idlelib` package." msgstr "" #: ../../whatsnew/2.3.rst:1340 @@ -1493,11 +1488,11 @@ msgstr "" #: ../../whatsnew/2.3.rst:1359 msgid "" -"Several new POSIX functions (:func:`getpgid`, :func:`killpg`, " -":func:`lchown`, :func:`loadavg`, :func:`major`, :func:`makedev`, " -":func:`minor`, and :func:`mknod`) were added to the :mod:`posix` module that" -" underlies the :mod:`os` module. (Contributed by Gustavo Niemeyer, Geert " -"Jansen, and Denis S. Otkidach.)" +"Several new POSIX functions (:func:`getpgid`, :func:`killpg`, :func:" +"`lchown`, :func:`loadavg`, :func:`major`, :func:`makedev`, :func:`minor`, " +"and :func:`mknod`) were added to the :mod:`posix` module that underlies the :" +"mod:`os` module. (Contributed by Gustavo Niemeyer, Geert Jansen, and Denis " +"S. Otkidach.)" msgstr "" #: ../../whatsnew/2.3.rst:1365 @@ -1510,8 +1505,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1369 msgid "" "During testing, it was found that some applications will break if time " -"stamps are floats. For compatibility, when using the tuple interface of the" -" :class:`stat_result` time stamps will be represented as integers. When " +"stamps are floats. For compatibility, when using the tuple interface of " +"the :class:`stat_result` time stamps will be represented as integers. When " "using named fields (a feature first introduced in Python 2.2), time stamps " "are still represented as integers, unless :func:`os.stat_float_times` is " "invoked to enable float return values::" @@ -1533,8 +1528,8 @@ msgstr "" msgid "" "The :mod:`optparse` module contains a new parser for command-line arguments " "that can convert option values to a particular Python type and will " -"automatically generate a usage message. See the following section for more" -" details." +"automatically generate a usage message. See the following section for more " +"details." msgstr "" #: ../../whatsnew/2.3.rst:1394 @@ -1551,23 +1546,22 @@ msgid "" "The new :mod:`platform` module contains a number of functions that try to " "determine various properties of the platform you're running on. There are " "functions for getting the architecture, CPU type, the Windows OS version, " -"and even the Linux distribution version. (Contributed by Marc-André " -"Lemburg.)" +"and even the Linux distribution version. (Contributed by Marc-André Lemburg.)" msgstr "" #: ../../whatsnew/2.3.rst:1405 msgid "" "The parser objects provided by the :mod:`pyexpat` module can now optionally " "buffer character data, resulting in fewer calls to your character data " -"handler and therefore faster performance. Setting the parser object's " -":attr:`buffer_text` attribute to :const:`True` will enable buffering." +"handler and therefore faster performance. Setting the parser object's :attr:" +"`buffer_text` attribute to :const:`True` will enable buffering." msgstr "" #: ../../whatsnew/2.3.rst:1410 msgid "" "The ``sample(population, k)`` function was added to the :mod:`random` " -"module. *population* is a sequence or :class:`xrange` object containing the" -" elements of a population, and :func:`sample` chooses *k* elements from the " +"module. *population* is a sequence or :class:`xrange` object containing the " +"elements of a population, and :func:`sample` chooses *k* elements from the " "population without replacing chosen elements. *k* can be any value up to " "``len(population)``. For example::" msgstr "" @@ -1585,9 +1579,9 @@ msgstr "" #: ../../whatsnew/2.3.rst:1438 msgid "" -"The :mod:`readline` module also gained a number of new functions: " -":func:`get_history_item`, :func:`get_current_history_length`, and " -":func:`redisplay`." +"The :mod:`readline` module also gained a number of new functions: :func:" +"`get_history_item`, :func:`get_current_history_length`, and :func:" +"`redisplay`." msgstr "" #: ../../whatsnew/2.3.rst:1442 @@ -1595,9 +1589,9 @@ msgid "" "The :mod:`rexec` and :mod:`Bastion` modules have been declared dead, and " "attempts to import them will fail with a :exc:`RuntimeError`. New-style " "classes provide new ways to break out of the restricted execution " -"environment provided by :mod:`rexec`, and no one has interest in fixing them" -" or time to do so. If you have applications using :mod:`rexec`, rewrite " -"them to use something else." +"environment provided by :mod:`rexec`, and no one has interest in fixing them " +"or time to do so. If you have applications using :mod:`rexec`, rewrite them " +"to use something else." msgstr "" #: ../../whatsnew/2.3.rst:1448 @@ -1622,26 +1616,26 @@ msgstr "" #: ../../whatsnew/2.3.rst:1459 msgid "" -"Support for more advanced POSIX signal handling was added to the " -":mod:`signal` but then removed again as it proved impossible to make it work" -" reliably across platforms." +"Support for more advanced POSIX signal handling was added to the :mod:" +"`signal` but then removed again as it proved impossible to make it work " +"reliably across platforms." msgstr "" #: ../../whatsnew/2.3.rst:1463 msgid "" "The :mod:`socket` module now supports timeouts. You can call the " -"``settimeout(t)`` method on a socket object to set a timeout of *t* seconds." -" Subsequent socket operations that take longer than *t* seconds to complete " +"``settimeout(t)`` method on a socket object to set a timeout of *t* seconds. " +"Subsequent socket operations that take longer than *t* seconds to complete " "will abort and raise a :exc:`socket.timeout` exception." msgstr "" #: ../../whatsnew/2.3.rst:1468 msgid "" "The original timeout implementation was by Tim O'Malley. Michael Gilfix " -"integrated it into the Python :mod:`socket` module and shepherded it through" -" a lengthy review. After the code was checked in, Guido van Rossum rewrote " -"parts of it. (This is a good example of a collaborative development process" -" in action.)" +"integrated it into the Python :mod:`socket` module and shepherded it through " +"a lengthy review. After the code was checked in, Guido van Rossum rewrote " +"parts of it. (This is a good example of a collaborative development process " +"in action.)" msgstr "" #: ../../whatsnew/2.3.rst:1474 @@ -1659,8 +1653,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1481 msgid "" -"The new :mod:`tarfile` module allows reading from and writing to " -":program:`tar`\\ -format archive files. (Contributed by Lars Gustäbel.)" +"The new :mod:`tarfile` module allows reading from and writing to :program:" +"`tar`\\ -format archive files. (Contributed by Lars Gustäbel.)" msgstr "" #: ../../whatsnew/2.3.rst:1484 @@ -1676,16 +1670,16 @@ msgstr "" #: ../../whatsnew/2.3.rst:1506 msgid "" "The module also contains a :class:`TextWrapper` class that actually " -"implements the text wrapping strategy. Both the :class:`TextWrapper` class" -" and the :func:`wrap` and :func:`fill` functions support a number of " +"implements the text wrapping strategy. Both the :class:`TextWrapper` class " +"and the :func:`wrap` and :func:`fill` functions support a number of " "additional keyword arguments for fine-tuning the formatting; consult the " "module's documentation for details. (Contributed by Greg Ward.)" msgstr "" #: ../../whatsnew/2.3.rst:1512 msgid "" -"The :mod:`thread` and :mod:`threading` modules now have companion modules, " -":mod:`dummy_thread` and :mod:`dummy_threading`, that provide a do-nothing " +"The :mod:`thread` and :mod:`threading` modules now have companion modules, :" +"mod:`dummy_thread` and :mod:`dummy_threading`, that provide a do-nothing " "implementation of the :mod:`thread` module's interface for platforms where " "threads are not supported. The intention is to simplify thread-aware " "modules (ones that *don't* rely on threads to run) by putting the following " @@ -1695,13 +1689,12 @@ msgstr "" #: ../../whatsnew/2.3.rst:1524 msgid "" "In this example, :mod:`_threading` is used as the module name to make it " -"clear that the module being used is not necessarily the actual " -":mod:`threading` module. Code can call functions and use classes in " -":mod:`_threading` whether or not threads are supported, avoiding an " -":keyword:`if` statement and making the code slightly clearer. This module " -"will not magically make multithreaded code run without threads; code that " -"waits for another thread to return or to do something will simply hang " -"forever." +"clear that the module being used is not necessarily the actual :mod:" +"`threading` module. Code can call functions and use classes in :mod:" +"`_threading` whether or not threads are supported, avoiding an :keyword:`if` " +"statement and making the code slightly clearer. This module will not " +"magically make multithreaded code run without threads; code that waits for " +"another thread to return or to do something will simply hang forever." msgstr "" #: ../../whatsnew/2.3.rst:1532 @@ -1732,26 +1725,25 @@ msgstr "" #: ../../whatsnew/2.3.rst:1561 msgid "" "The :mod:`Tkinter` module now works with a thread-enabled version of Tcl. " -"Tcl's threading model requires that widgets only be accessed from the thread" -" in which they're created; accesses from another thread can cause Tcl to " +"Tcl's threading model requires that widgets only be accessed from the thread " +"in which they're created; accesses from another thread can cause Tcl to " "panic. For certain Tcl interfaces, :mod:`Tkinter` will now automatically " -"avoid this when a widget is accessed from a different thread by marshalling" -" a command, passing it to the correct thread, and waiting for the results. " +"avoid this when a widget is accessed from a different thread by marshalling " +"a command, passing it to the correct thread, and waiting for the results. " "Other interfaces can't be handled automatically but :mod:`Tkinter` will now " -"raise an exception on such an access so that you can at least find out about" -" the problem. See https://mail.python.org/pipermail/python-" -"dev/2002-December/031107.html for a more detailed explanation of this " -"change. (Implemented by Martin von Löwis.)" +"raise an exception on such an access so that you can at least find out about " +"the problem. See https://mail.python.org/pipermail/python-dev/2002-" +"December/031107.html for a more detailed explanation of this change. " +"(Implemented by Martin von Löwis.)" msgstr "" #: ../../whatsnew/2.3.rst:1572 msgid "" -"Calling Tcl methods through :mod:`_tkinter` no longer returns only strings." -" Instead, if Tcl returns other objects those objects are converted to their " -"Python equivalent, if one exists, or wrapped with a " -":class:`_tkinter.Tcl_Obj` object if no Python equivalent exists. This " -"behavior can be controlled through the :meth:`wantobjects` method of " -":class:`tkapp` objects." +"Calling Tcl methods through :mod:`_tkinter` no longer returns only strings. " +"Instead, if Tcl returns other objects those objects are converted to their " +"Python equivalent, if one exists, or wrapped with a :class:`_tkinter." +"Tcl_Obj` object if no Python equivalent exists. This behavior can be " +"controlled through the :meth:`wantobjects` method of :class:`tkapp` objects." msgstr "" #: ../../whatsnew/2.3.rst:1578 @@ -1785,8 +1777,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1598 msgid "" "Adding the mix-in as a superclass provides the full dictionary interface " -"whenever the class defines :meth:`__getitem__`, :meth:`__setitem__`, " -":meth:`__delitem__`, and :meth:`keys`. For example::" +"whenever the class defines :meth:`__getitem__`, :meth:`__setitem__`, :meth:" +"`__delitem__`, and :meth:`keys`. For example::" msgstr "" #: ../../whatsnew/2.3.rst:1639 @@ -1795,9 +1787,9 @@ msgstr "(Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.3.rst:1641 msgid "" -"The DOM implementation in :mod:`xml.dom.minidom` can now generate XML output" -" in a particular encoding by providing an optional encoding argument to the " -":meth:`toxml` and :meth:`toprettyxml` methods of DOM nodes." +"The DOM implementation in :mod:`xml.dom.minidom` can now generate XML output " +"in a particular encoding by providing an optional encoding argument to the :" +"meth:`toxml` and :meth:`toprettyxml` methods of DOM nodes." msgstr "" #: ../../whatsnew/2.3.rst:1645 @@ -1820,8 +1812,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1657 msgid "" -"Support for internationalized domain names (RFCs 3454, 3490, 3491, and 3492)" -" has been added. The \"idna\" encoding can be used to convert between a " +"Support for internationalized domain names (RFCs 3454, 3490, 3491, and 3492) " +"has been added. The \"idna\" encoding can be used to convert between a " "Unicode domain name and the ASCII-compatible encoding (ACE) of that name. ::" msgstr "" @@ -1848,20 +1840,19 @@ msgstr "" #: ../../whatsnew/2.3.rst:1681 msgid "" -"Date and time types suitable for expressing timestamps were added as the " -":mod:`datetime` module. The types don't support different calendars or many" -" fancy features, and just stick to the basics of representing time." +"Date and time types suitable for expressing timestamps were added as the :" +"mod:`datetime` module. The types don't support different calendars or many " +"fancy features, and just stick to the basics of representing time." msgstr "" #: ../../whatsnew/2.3.rst:1685 msgid "" "The three primary types are: :class:`date`, representing a day, month, and " -"year; :class:`~datetime.time`, consisting of hour, minute, and second; and " -":class:`~datetime.datetime`, which contains all the attributes of both " -":class:`date` and :class:`~datetime.time`. There's also a :class:`timedelta`" -" class representing differences between two points in time, and time zone " -"logic is implemented by classes inheriting from the abstract :class:`tzinfo`" -" class." +"year; :class:`~datetime.time`, consisting of hour, minute, and second; and :" +"class:`~datetime.datetime`, which contains all the attributes of both :class:" +"`date` and :class:`~datetime.time`. There's also a :class:`timedelta` class " +"representing differences between two points in time, and time zone logic is " +"implemented by classes inheriting from the abstract :class:`tzinfo` class." msgstr "" #: ../../whatsnew/2.3.rst:1692 @@ -1881,19 +1872,18 @@ msgstr "" #: ../../whatsnew/2.3.rst:1710 msgid "" -"The :meth:`replace` method allows modifying one or more fields of a " -":class:`date` or :class:`~datetime.datetime` instance, returning a new " -"instance::" +"The :meth:`replace` method allows modifying one or more fields of a :class:" +"`date` or :class:`~datetime.datetime` instance, returning a new instance::" msgstr "" #: ../../whatsnew/2.3.rst:1720 msgid "" "Instances can be compared, hashed, and converted to strings (the result is " -"the same as that of :meth:`isoformat`). :class:`date` and " -":class:`~datetime.datetime` instances can be subtracted from each other, and" -" added to :class:`timedelta` instances. The largest missing feature is that" -" there's no standard library support for parsing strings and getting back a " -":class:`date` or :class:`~datetime.datetime`." +"the same as that of :meth:`isoformat`). :class:`date` and :class:`~datetime." +"datetime` instances can be subtracted from each other, and added to :class:" +"`timedelta` instances. The largest missing feature is that there's no " +"standard library support for parsing strings and getting back a :class:" +"`date` or :class:`~datetime.datetime`." msgstr "" #: ../../whatsnew/2.3.rst:1727 @@ -1908,8 +1898,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1736 msgid "" -"The :mod:`getopt` module provides simple parsing of command-line arguments." -" The new :mod:`optparse` module (originally named Optik) provides more " +"The :mod:`getopt` module provides simple parsing of command-line arguments. " +"The new :mod:`optparse` module (originally named Optik) provides more " "elaborate command-line parsing that follows the Unix conventions, " "automatically creates the output for :option:`!--help`, and can perform " "different actions for different options." @@ -1959,11 +1949,11 @@ msgstr "" #: ../../whatsnew/2.3.rst:1807 msgid "" -"Pymalloc, a specialized object allocator written by Vladimir Marangozov, was" -" a feature added to Python 2.1. Pymalloc is intended to be faster than the " +"Pymalloc, a specialized object allocator written by Vladimir Marangozov, was " +"a feature added to Python 2.1. Pymalloc is intended to be faster than the " "system :c:func:`malloc` and to have less memory overhead for allocation " -"patterns typical of Python programs. The allocator uses C's :c:func:`malloc`" -" function to get large pools of memory and then fulfills smaller memory " +"patterns typical of Python programs. The allocator uses C's :c:func:`malloc` " +"function to get large pools of memory and then fulfills smaller memory " "requests from these pools." msgstr "" @@ -1972,31 +1962,31 @@ msgid "" "In 2.1 and 2.2, pymalloc was an experimental feature and wasn't enabled by " "default; you had to explicitly enable it when compiling Python by providing " "the :option:`!--with-pymalloc` option to the :program:`configure` script. " -"In 2.3, pymalloc has had further enhancements and is now enabled by default;" -" you'll have to supply :option:`!--without-pymalloc` to disable it." +"In 2.3, pymalloc has had further enhancements and is now enabled by default; " +"you'll have to supply :option:`!--without-pymalloc` to disable it." msgstr "" #: ../../whatsnew/2.3.rst:1819 msgid "" "This change is transparent to code written in Python; however, pymalloc may " "expose bugs in C extensions. Authors of C extension modules should test " -"their code with pymalloc enabled, because some incorrect code may cause core" -" dumps at runtime." +"their code with pymalloc enabled, because some incorrect code may cause core " +"dumps at runtime." msgstr "" #: ../../whatsnew/2.3.rst:1824 msgid "" "There's one particularly common error that causes problems. There are a " -"number of memory allocation functions in Python's C API that have previously" -" just been aliases for the C library's :c:func:`malloc` and :c:func:`free`, " +"number of memory allocation functions in Python's C API that have previously " +"just been aliases for the C library's :c:func:`malloc` and :c:func:`free`, " "meaning that if you accidentally called mismatched functions the error " "wouldn't be noticeable. When the object allocator is enabled, these " "functions aren't aliases of :c:func:`malloc` and :c:func:`free` any more, " "and calling the wrong function to free memory may get you a core dump. For " "example, if memory was allocated using :c:func:`PyObject_Malloc`, it has to " "be freed using :c:func:`PyObject_Free`, not :c:func:`free`. A few modules " -"included with Python fell afoul of this and had to be fixed; doubtless there" -" are more third-party modules that will have the same problem." +"included with Python fell afoul of this and had to be fixed; doubtless there " +"are more third-party modules that will have the same problem." msgstr "" #: ../../whatsnew/2.3.rst:1836 @@ -2010,24 +2000,23 @@ msgstr "" #: ../../whatsnew/2.3.rst:1842 msgid "" -"To allocate and free an undistinguished chunk of memory use the \"raw " -"memory\" family: :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc`, and " -":c:func:`PyMem_Free`." +"To allocate and free an undistinguished chunk of memory use the \"raw memory" +"\" family: :c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc`, and :c:func:" +"`PyMem_Free`." msgstr "" #: ../../whatsnew/2.3.rst:1845 msgid "" "The \"object memory\" family is the interface to the pymalloc facility " "described above and is biased towards a large number of \"small\" " -"allocations: :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc`, and " -":c:func:`PyObject_Free`." +"allocations: :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc`, and :c:" +"func:`PyObject_Free`." msgstr "" #: ../../whatsnew/2.3.rst:1849 msgid "" -"To allocate and free Python objects, use the \"object\" family " -":c:func:`PyObject_New`, :c:func:`PyObject_NewVar`, and " -":c:func:`PyObject_Del`." +"To allocate and free Python objects, use the \"object\" family :c:func:" +"`PyObject_New`, :c:func:`PyObject_NewVar`, and :c:func:`PyObject_Del`." msgstr "" #: ../../whatsnew/2.3.rst:1852 @@ -2035,8 +2024,8 @@ msgid "" "Thanks to lots of work by Tim Peters, pymalloc in 2.3 also provides " "debugging features to catch memory overwrites and doubled frees in both " "extension modules and in the interpreter itself. To enable this support, " -"compile a debugging version of the Python interpreter by running " -":program:`configure` with :option:`!--with-pydebug`." +"compile a debugging version of the Python interpreter by running :program:" +"`configure` with :option:`!--with-pydebug`." msgstr "" #: ../../whatsnew/2.3.rst:1858 @@ -2044,8 +2033,8 @@ msgid "" "To aid extension writers, a header file :file:`Misc/pymemcompat.h` is " "distributed with the source to Python 2.3 that allows Python extensions to " "use the 2.3 interfaces to memory allocation while compiling against any " -"version of Python since 1.5.2. You would copy the file from Python's source" -" distribution and bundle it with the source of your extension." +"version of Python since 1.5.2. You would copy the file from Python's source " +"distribution and bundle it with the source of your extension." msgstr "" #: ../../whatsnew/2.3.rst:1869 @@ -2054,8 +2043,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1868 msgid "" -"For the full details of the pymalloc implementation, see the comments at the" -" top of the file :file:`Objects/obmalloc.c` in the Python source code. The " +"For the full details of the pymalloc implementation, see the comments at the " +"top of the file :file:`Objects/obmalloc.c` in the Python source code. The " "above link points to the file within the python.org SVN browser." msgstr "" @@ -2069,36 +2058,34 @@ msgstr "Changes to Python's build process and to the C API include:" #: ../../whatsnew/2.3.rst:1880 msgid "" -"The cycle detection implementation used by the garbage collection has proven" -" to be stable, so it's now been made mandatory. You can no longer compile " -"Python without it, and the :option:`!--with-cycle-gc` switch to " -":program:`configure` has been removed." +"The cycle detection implementation used by the garbage collection has proven " +"to be stable, so it's now been made mandatory. You can no longer compile " +"Python without it, and the :option:`!--with-cycle-gc` switch to :program:" +"`configure` has been removed." msgstr "" #: ../../whatsnew/2.3.rst:1885 msgid "" -"Python can now optionally be built as a shared library " -"(:file:`libpython2.3.so`) by supplying :option:`!--enable-shared` when " -"running Python's :program:`configure` script. (Contributed by Ondrej " -"Palkovsky.)" +"Python can now optionally be built as a shared library (:file:`libpython2.3." +"so`) by supplying :option:`!--enable-shared` when running Python's :program:" +"`configure` script. (Contributed by Ondrej Palkovsky.)" msgstr "" #: ../../whatsnew/2.3.rst:1889 msgid "" -"The :c:macro:`DL_EXPORT` and :c:macro:`DL_IMPORT` macros are now deprecated." -" Initialization functions for Python extension modules should now be " -"declared using the new macro :c:macro:`PyMODINIT_FUNC`, while the Python " -"core will generally use the :c:macro:`PyAPI_FUNC` and :c:macro:`PyAPI_DATA` " -"macros." +"The :c:macro:`DL_EXPORT` and :c:macro:`DL_IMPORT` macros are now deprecated. " +"Initialization functions for Python extension modules should now be declared " +"using the new macro :c:macro:`PyMODINIT_FUNC`, while the Python core will " +"generally use the :c:macro:`PyAPI_FUNC` and :c:macro:`PyAPI_DATA` macros." msgstr "" #: ../../whatsnew/2.3.rst:1894 msgid "" "The interpreter can be compiled without any docstrings for the built-in " -"functions and modules by supplying :option:`!--without-doc-strings` to the " -":program:`configure` script. This makes the Python executable about 10% " -"smaller, but will also mean that you can't get help for Python's built-ins." -" (Contributed by Gustavo Niemeyer.)" +"functions and modules by supplying :option:`!--without-doc-strings` to the :" +"program:`configure` script. This makes the Python executable about 10% " +"smaller, but will also mean that you can't get help for Python's built-ins. " +"(Contributed by Gustavo Niemeyer.)" msgstr "" #: ../../whatsnew/2.3.rst:1900 @@ -2108,16 +2095,16 @@ msgid "" "can specify the :const:`METH_NOARGS` flag, signalling that there are no " "arguments, and the argument checking can then be removed. If compatibility " "with pre-2.2 versions of Python is important, the code could use " -"``PyArg_ParseTuple(args, \"\")`` instead, but this will be slower than using" -" :const:`METH_NOARGS`." +"``PyArg_ParseTuple(args, \"\")`` instead, but this will be slower than " +"using :const:`METH_NOARGS`." msgstr "" #: ../../whatsnew/2.3.rst:1907 msgid "" ":c:func:`PyArg_ParseTuple` accepts new format characters for various sizes " -"of unsigned integers: ``B`` for :c:type:`unsigned char`, ``H`` for " -":c:type:`unsigned short int`, ``I`` for :c:type:`unsigned int`, and ``K`` " -"for :c:type:`unsigned long long`." +"of unsigned integers: ``B`` for :c:type:`unsigned char`, ``H`` for :c:type:" +"`unsigned short int`, ``I`` for :c:type:`unsigned int`, and ``K`` for :c:" +"type:`unsigned long long`." msgstr "" #: ../../whatsnew/2.3.rst:1912 @@ -2128,17 +2115,17 @@ msgstr "" #: ../../whatsnew/2.3.rst:1915 msgid "" -"File objects now manage their internal string buffer differently, increasing" -" it exponentially when needed. This results in the benchmark tests in " -":file:`Lib/test/test_bufio.py` speeding up considerably (from 57 seconds to " -"1.7 seconds, according to one measurement)." +"File objects now manage their internal string buffer differently, increasing " +"it exponentially when needed. This results in the benchmark tests in :file:" +"`Lib/test/test_bufio.py` speeding up considerably (from 57 seconds to 1.7 " +"seconds, according to one measurement)." msgstr "" #: ../../whatsnew/2.3.rst:1920 msgid "" "It's now possible to define class and static methods for a C extension type " -"by setting either the :const:`METH_CLASS` or :const:`METH_STATIC` flags in a" -" method's :c:type:`PyMethodDef` structure." +"by setting either the :const:`METH_CLASS` or :const:`METH_STATIC` flags in a " +"method's :c:type:`PyMethodDef` structure." msgstr "" #: ../../whatsnew/2.3.rst:1924 @@ -2150,12 +2137,12 @@ msgstr "" #: ../../whatsnew/2.3.rst:1927 msgid "" "If you dynamically allocate type objects in your extension, you should be " -"aware of a change in the rules relating to the :attr:`__module__` and " -":attr:`~definition.__name__` attributes. In summary, you will want to " -"ensure the type's dictionary contains a ``'__module__'`` key; making the " -"module name the part of the type name leading up to the final period will no" -" longer have the desired effect. For more detail, read the API reference " -"documentation or the source." +"aware of a change in the rules relating to the :attr:`__module__` and :attr:" +"`~definition.__name__` attributes. In summary, you will want to ensure the " +"type's dictionary contains a ``'__module__'`` key; making the module name " +"the part of the type name leading up to the final period will no longer have " +"the desired effect. For more detail, read the API reference documentation " +"or the source." msgstr "" #: ../../whatsnew/2.3.rst:1938 @@ -2166,13 +2153,12 @@ msgstr "" msgid "" "Support for a port to IBM's OS/2 using the EMX runtime environment was " "merged into the main Python source tree. EMX is a POSIX emulation layer " -"over the OS/2 system APIs. The Python port for EMX tries to support all the" -" POSIX-like capability exposed by the EMX runtime, and mostly succeeds; " -":func:`fork` and :func:`fcntl` are restricted by the limitations of the " -"underlying emulation layer. The standard OS/2 port, which uses IBM's Visual" -" Age compiler, also gained support for case-sensitive import semantics as " -"part of the integration of the EMX port into CVS. (Contributed by Andrew " -"MacIntyre.)" +"over the OS/2 system APIs. The Python port for EMX tries to support all the " +"POSIX-like capability exposed by the EMX runtime, and mostly succeeds; :func:" +"`fork` and :func:`fcntl` are restricted by the limitations of the underlying " +"emulation layer. The standard OS/2 port, which uses IBM's Visual Age " +"compiler, also gained support for case-sensitive import semantics as part of " +"the integration of the EMX port into CVS. (Contributed by Andrew MacIntyre.)" msgstr "" #: ../../whatsnew/2.3.rst:1949 @@ -2192,8 +2178,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1957 msgid "" -"Other new platforms now supported by Python include AtheOS " -"(http://www.atheos.cx/), GNU/Hurd, and OpenVMS." +"Other new platforms now supported by Python include AtheOS (http://www." +"atheos.cx/), GNU/Hurd, and OpenVMS." msgstr "" #: ../../whatsnew/2.3.rst:1966 @@ -2217,8 +2203,8 @@ msgid "" "If the :envvar:`PYTHONINSPECT` environment variable is set, the Python " "interpreter will enter the interactive prompt after running a Python " "program, as if Python had been invoked with the :option:`-i` option. The " -"environment variable can be set before running the Python interpreter, or it" -" can be set by the Python program as part of its execution." +"environment variable can be set before running the Python interpreter, or it " +"can be set by the Python program as part of its execution." msgstr "" #: ../../whatsnew/2.3.rst:1981 @@ -2238,8 +2224,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:1990 msgid "" -"The ``SET_LINENO`` opcode has been removed. Back in the mists of time, this" -" opcode was needed to produce line numbers in tracebacks and support trace " +"The ``SET_LINENO`` opcode has been removed. Back in the mists of time, this " +"opcode was needed to produce line numbers in tracebacks and support trace " "functions (for, e.g., :mod:`pdb`). Since Python 1.5, the line numbers in " "tracebacks have been computed using a different mechanism that works with " "\"python -O\". For Python 2.3 Michael Hudson implemented a similar scheme " @@ -2256,17 +2242,17 @@ msgstr "" #: ../../whatsnew/2.3.rst:2001 msgid "" "C extensions that access the :attr:`f_lineno` field of frame objects should " -"instead call ``PyCode_Addr2Line(f->f_code, f->f_lasti)``. This will have the" -" added effect of making the code work as desired under \"python -O\" in " +"instead call ``PyCode_Addr2Line(f->f_code, f->f_lasti)``. This will have the " +"added effect of making the code work as desired under \"python -O\" in " "earlier versions of Python." msgstr "" #: ../../whatsnew/2.3.rst:2006 msgid "" -"A nifty new feature is that trace functions can now assign to the " -":attr:`f_lineno` attribute of frame objects, changing the line that will be " -"executed next. A ``jump`` command has been added to the :mod:`pdb` debugger" -" taking advantage of this new feature. (Implemented by Richie Hindle.)" +"A nifty new feature is that trace functions can now assign to the :attr:" +"`f_lineno` attribute of frame objects, changing the line that will be " +"executed next. A ``jump`` command has been added to the :mod:`pdb` debugger " +"taking advantage of this new feature. (Implemented by Richie Hindle.)" msgstr "" #: ../../whatsnew/2.3.rst:2015 @@ -2281,8 +2267,8 @@ msgstr "" #: ../../whatsnew/2.3.rst:2020 msgid "" -":keyword:`yield` is now always a keyword; if it's used as a variable name in" -" your code, a different name must be chosen." +":keyword:`yield` is now always a keyword; if it's used as a variable name in " +"your code, a different name must be chosen." msgstr "" #: ../../whatsnew/2.3.rst:2023 @@ -2301,25 +2287,23 @@ msgstr "" #: ../../whatsnew/2.3.rst:2030 msgid "" "If you have Unicode strings that contain 8-bit characters, you must declare " -"the file's encoding (UTF-8, Latin-1, or whatever) by adding a comment to the" -" top of the file. See section :ref:`section-encodings` for more " -"information." +"the file's encoding (UTF-8, Latin-1, or whatever) by adding a comment to the " +"top of the file. See section :ref:`section-encodings` for more information." msgstr "" #: ../../whatsnew/2.3.rst:2034 msgid "" -"Calling Tcl methods through :mod:`_tkinter` no longer returns only strings." -" Instead, if Tcl returns other objects those objects are converted to their " -"Python equivalent, if one exists, or wrapped with a " -":class:`_tkinter.Tcl_Obj` object if no Python equivalent exists." +"Calling Tcl methods through :mod:`_tkinter` no longer returns only strings. " +"Instead, if Tcl returns other objects those objects are converted to their " +"Python equivalent, if one exists, or wrapped with a :class:`_tkinter." +"Tcl_Obj` object if no Python equivalent exists." msgstr "" #: ../../whatsnew/2.3.rst:2039 msgid "" -"Large octal and hex literals such as ``0xffffffff`` now trigger a " -":exc:`FutureWarning`. Currently they're stored as 32-bit numbers and result " -"in a negative value, but in Python 2.4 they'll become positive long " -"integers." +"Large octal and hex literals such as ``0xffffffff`` now trigger a :exc:" +"`FutureWarning`. Currently they're stored as 32-bit numbers and result in a " +"negative value, but in Python 2.4 they'll become positive long integers." msgstr "" #: ../../whatsnew/2.3.rst:2043 @@ -2340,8 +2324,8 @@ msgstr "" msgid "" "The Distutils :func:`setup` function has gained various new keyword " "arguments such as *depends*. Old versions of the Distutils will abort if " -"passed unknown keywords. A solution is to check for the presence of the new" -" :func:`get_distutil_options` function in your :file:`setup.py` and only " +"passed unknown keywords. A solution is to check for the presence of the " +"new :func:`get_distutil_options` function in your :file:`setup.py` and only " "uses the new keywords with a version of the Distutils that supports them::" msgstr "" @@ -2364,11 +2348,11 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.3.rst:2079 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Jeff Bauer, Simon Brunning, Brett Cannon, Michael Chermside, Andrew Dalke, " +"suggestions, corrections and assistance with various drafts of this article: " +"Jeff Bauer, Simon Brunning, Brett Cannon, Michael Chermside, Andrew Dalke, " "Scott David Daniels, Fred L. Drake, Jr., David Fraser, Kelly Gerber, " -"Raymond Hettinger, Michael Hudson, Chris Lambert, Detlef Lannert, Martin von" -" Löwis, Andrew MacIntyre, Lalo Martins, Chad Netzer, Gustavo Niemeyer, Neal " +"Raymond Hettinger, Michael Hudson, Chris Lambert, Detlef Lannert, Martin von " +"Löwis, Andrew MacIntyre, Lalo Martins, Chad Netzer, Gustavo Niemeyer, Neal " "Norwitz, Hans Nowak, Chris Reedy, Francesco Ricciardi, Vinay Sajip, Neil " "Schemenauer, Roman Suzi, Jason Tishler, Just van Rossum." msgstr "" diff --git a/whatsnew/2.4.po b/whatsnew/2.4.po index 56b51d22a..b752fba59 100644 --- a/whatsnew/2.4.po +++ b/whatsnew/2.4.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Victor Matheus Castro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Victor Matheus Castro , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -47,8 +49,8 @@ msgid "" "Python 2.4 is a medium-sized release. It doesn't introduce as many changes " "as the radical Python 2.2, but introduces more features than the " "conservative 2.3 release. The most significant new language features are " -"function decorators and generator expressions; most other changes are to the" -" standard library." +"function decorators and generator expressions; most other changes are to the " +"standard library." msgstr "" #: ../../whatsnew/2.4.rst:22 @@ -62,9 +64,9 @@ msgstr "" msgid "" "This article doesn't attempt to provide a complete specification of every " "single new feature, but instead provides a brief introduction to each " -"feature. For full details, you should refer to the documentation for Python" -" 2.4, such as the Python Library Reference and the Python Reference Manual." -" Often you will be referred to the PEP for a particular new feature for " +"feature. For full details, you should refer to the documentation for Python " +"2.4, such as the Python Library Reference and the Python Reference Manual. " +"Often you will be referred to the PEP for a particular new feature for " "explanations of the implementation and design rationale." msgstr "" @@ -74,8 +76,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:38 msgid "" -"Python 2.3 introduced the :mod:`sets` module. C implementations of set data" -" types have now been added to the Python core as two new built-in types, " +"Python 2.3 introduced the :mod:`sets` module. C implementations of set data " +"types have now been added to the Python core as two new built-in types, " "``set(iterable)`` and ``frozenset(iterable)``. They provide high speed " "operations for membership testing, for eliminating duplicates from " "sequences, and for mathematical operations like unions, intersections, " @@ -85,14 +87,14 @@ msgstr "" #: ../../whatsnew/2.4.rst:71 msgid "" "The :func:`frozenset` type is an immutable version of :func:`set`. Since it " -"is immutable and hashable, it may be used as a dictionary key or as a member" -" of another set." +"is immutable and hashable, it may be used as a dictionary key or as a member " +"of another set." msgstr "" #: ../../whatsnew/2.4.rst:75 msgid "" -"The :mod:`sets` module remains in the standard library, and may be useful if" -" you wish to subclass the :class:`Set` or :class:`ImmutableSet` classes. " +"The :mod:`sets` module remains in the standard library, and may be useful if " +"you wish to subclass the :class:`Set` or :class:`ImmutableSet` classes. " "There are currently no plans to deprecate the module." msgstr "" @@ -113,12 +115,11 @@ msgstr "" #: ../../whatsnew/2.4.rst:92 msgid "" "The lengthy transition process for this PEP, begun in Python 2.2, takes " -"another step forward in Python 2.4. In 2.3, certain integer operations that" -" would behave differently after int/long unification triggered " -":exc:`FutureWarning` warnings and returned values limited to 32 or 64 bits " -"(depending on your platform). In 2.4, these expressions no longer produce a" -" warning and instead produce a different result that's usually a long " -"integer." +"another step forward in Python 2.4. In 2.3, certain integer operations that " +"would behave differently after int/long unification triggered :exc:" +"`FutureWarning` warnings and returned values limited to 32 or 64 bits " +"(depending on your platform). In 2.4, these expressions no longer produce a " +"warning and instead produce a different result that's usually a long integer." msgstr "" #: ../../whatsnew/2.4.rst:99 @@ -183,8 +184,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:155 msgid "" -"Generator expressions differ from list comprehensions in various small ways." -" Most notably, the loop variable (*obj* in the above example) is not " +"Generator expressions differ from list comprehensions in various small ways. " +"Most notably, the loop variable (*obj* in the above example) is not " "accessible outside of the generator expression. List comprehensions leave " "the variable assigned to its last value; future versions of Python will " "change this, making list comprehensions match generator expressions in this " @@ -213,8 +214,7 @@ msgid "" msgstr "" #: ../../whatsnew/2.4.rst:178 -msgid "" -"The usual way of substituting variables by name is the ``%`` operator::" +msgid "The usual way of substituting variables by name is the ``%`` operator::" msgstr "" #: ../../whatsnew/2.4.rst:183 @@ -232,15 +232,15 @@ msgstr "" #: ../../whatsnew/2.4.rst:192 msgid "" -"PEP 292 adds a :class:`Template` class to the :mod:`string` module that uses" -" ``$`` to indicate a substitution::" +"PEP 292 adds a :class:`Template` class to the :mod:`string` module that uses " +"``$`` to indicate a substitution::" msgstr "" #: ../../whatsnew/2.4.rst:200 msgid "" "If a key is missing from the dictionary, the :meth:`substitute` method will " -"raise a :exc:`KeyError`. There's also a :meth:`safe_substitute` method that" -" ignores missing keys::" +"raise a :exc:`KeyError`. There's also a :meth:`safe_substitute` method that " +"ignores missing keys::" msgstr "" #: ../../whatsnew/2.4.rst:211 @@ -257,18 +257,18 @@ msgstr "" #: ../../whatsnew/2.4.rst:220 msgid "" -"Python 2.2 extended Python's object model by adding static methods and class" -" methods, but it didn't extend Python's syntax to provide any new way of " -"defining static or class methods. Instead, you had to write a " -":keyword:`def` statement in the usual way, and pass the resulting method to " -"a :func:`staticmethod` or :func:`classmethod` function that would wrap up " -"the function as a method of the new type. Your code would look like this::" +"Python 2.2 extended Python's object model by adding static methods and class " +"methods, but it didn't extend Python's syntax to provide any new way of " +"defining static or class methods. Instead, you had to write a :keyword:" +"`def` statement in the usual way, and pass the resulting method to a :func:" +"`staticmethod` or :func:`classmethod` function that would wrap up the " +"function as a method of the new type. Your code would look like this::" msgstr "" #: ../../whatsnew/2.4.rst:233 msgid "" -"If the method was very long, it would be easy to miss or forget the " -":func:`classmethod` invocation after the function body." +"If the method was very long, it would be easy to miss or forget the :func:" +"`classmethod` invocation after the function body." msgstr "" #: ../../whatsnew/2.4.rst:236 @@ -283,9 +283,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:241 msgid "" "The new feature is called \"function decorators\". The name comes from the " -"idea that :func:`classmethod`, :func:`staticmethod`, and friends are storing" -" additional information on a function object; they're *decorating* functions" -" with more details." +"idea that :func:`classmethod`, :func:`staticmethod`, and friends are storing " +"additional information on a function object; they're *decorating* functions " +"with more details." msgstr "" #: ../../whatsnew/2.4.rst:246 @@ -306,21 +306,21 @@ msgstr "" #: ../../whatsnew/2.4.rst:270 msgid "" -"Decorators must come on the line before a function definition, one decorator" -" per line, and can't be on the same line as the def statement, meaning that " -"``@A def f(): ...`` is illegal. You can only decorate function definitions," -" either at the module level or inside a class; you can't decorate class " +"Decorators must come on the line before a function definition, one decorator " +"per line, and can't be on the same line as the def statement, meaning that " +"``@A def f(): ...`` is illegal. You can only decorate function definitions, " +"either at the module level or inside a class; you can't decorate class " "definitions." msgstr "" #: ../../whatsnew/2.4.rst:275 msgid "" -"A decorator is just a function that takes the function to be decorated as an" -" argument and returns either the same function or some new object. The " -"return value of the decorator need not be callable (though it typically is)," -" unless further decorators will be applied to the result. It's easy to " -"write your own decorators. The following simple example just sets an " -"attribute on the function object::" +"A decorator is just a function that takes the function to be decorated as an " +"argument and returns either the same function or some new object. The " +"return value of the decorator need not be callable (though it typically is), " +"unless further decorators will be applied to the result. It's easy to write " +"your own decorators. The following simple example just sets an attribute on " +"the function object::" msgstr "" #: ../../whatsnew/2.4.rst:295 @@ -338,16 +338,15 @@ msgstr "" #: ../../whatsnew/2.4.rst:316 msgid "" "Decorator functions can take arguments. If arguments are supplied, your " -"decorator function is called with only those arguments and must return a new" -" decorator function; this function must take a single function and return a " +"decorator function is called with only those arguments and must return a new " +"decorator function; this function must take a single function and return a " "function, as previously described. In other words, ``@A @B @C(args)`` " "becomes::" msgstr "" #: ../../whatsnew/2.4.rst:325 msgid "" -"Getting this right can be slightly brain-bending, but it's not too " -"difficult." +"Getting this right can be slightly brain-bending, but it's not too difficult." msgstr "" #: ../../whatsnew/2.4.rst:327 @@ -384,21 +383,20 @@ msgstr "" #: ../../whatsnew/2.4.rst:349 msgid "" "A new built-in function, ``reversed(seq)``, takes a sequence and returns an " -"iterator that loops over the elements of the sequence in reverse order. " -"::" +"iterator that loops over the elements of the sequence in reverse order. ::" msgstr "" #: ../../whatsnew/2.4.rst:359 msgid "" -"Compared to extended slicing, such as ``range(1,4)[::-1]``, :func:`reversed`" -" is easier to read, runs faster, and uses substantially less memory." +"Compared to extended slicing, such as ``range(1,4)[::-1]``, :func:`reversed` " +"is easier to read, runs faster, and uses substantially less memory." msgstr "" #: ../../whatsnew/2.4.rst:362 msgid "" -"Note that :func:`reversed` only accepts sequences, not arbitrary iterators." -" If you want to reverse an iterator, first convert it to a list with " -":func:`list`. ::" +"Note that :func:`reversed` only accepts sequences, not arbitrary iterators. " +"If you want to reverse an iterator, first convert it to a list with :func:" +"`list`. ::" msgstr "" #: ../../whatsnew/2.4.rst:376 @@ -416,21 +414,20 @@ msgstr "" #: ../../whatsnew/2.4.rst:385 msgid "" "The standard library provides a number of ways to execute a subprocess, " -"offering different features and different levels of complexity. " -"``os.system(command)`` is easy to use, but slow (it runs a shell process " -"which executes the command) and dangerous (you have to be careful about " -"escaping the shell's metacharacters). The :mod:`popen2` module offers " -"classes that can capture standard output and standard error from the " -"subprocess, but the naming is confusing. The :mod:`subprocess` module " -"cleans this up, providing a unified interface that offers all the features " -"you might need." +"offering different features and different levels of complexity. ``os." +"system(command)`` is easy to use, but slow (it runs a shell process which " +"executes the command) and dangerous (you have to be careful about escaping " +"the shell's metacharacters). The :mod:`popen2` module offers classes that " +"can capture standard output and standard error from the subprocess, but the " +"naming is confusing. The :mod:`subprocess` module cleans this up, " +"providing a unified interface that offers all the features you might need." msgstr "" #: ../../whatsnew/2.4.rst:394 msgid "" -"Instead of :mod:`popen2`'s collection of classes, :mod:`subprocess` contains" -" a single class called :class:`Popen` whose constructor supports a number " -"of different keyword arguments. ::" +"Instead of :mod:`popen2`'s collection of classes, :mod:`subprocess` contains " +"a single class called :class:`Popen` whose constructor supports a number of " +"different keyword arguments. ::" msgstr "" #: ../../whatsnew/2.4.rst:404 @@ -443,10 +440,10 @@ msgstr "" #: ../../whatsnew/2.4.rst:409 msgid "" -"*stdin*, *stdout*, and *stderr* specify what the subprocess's input, output," -" and error streams will be. You can provide a file object or a file " -"descriptor, or you can use the constant ``subprocess.PIPE`` to create a pipe" -" between the subprocess and the parent." +"*stdin*, *stdout*, and *stderr* specify what the subprocess's input, output, " +"and error streams will be. You can provide a file object or a file " +"descriptor, or you can use the constant ``subprocess.PIPE`` to create a pipe " +"between the subprocess and the parent." msgstr "" #: ../../whatsnew/2.4.rst:417 @@ -476,27 +473,26 @@ msgstr "" #: ../../whatsnew/2.4.rst:429 msgid "" -"*universal_newlines* opens the child's input and output using Python's " -":term:`universal newlines` feature." +"*universal_newlines* opens the child's input and output using Python's :term:" +"`universal newlines` feature." msgstr "" #: ../../whatsnew/2.4.rst:432 msgid "" -"Once you've created the :class:`Popen` instance, you can call its " -":meth:`wait` method to pause until the subprocess has exited, :meth:`poll` " -"to check if it's exited without pausing, or ``communicate(data)`` to send " -"the string *data* to the subprocess's standard input. " -"``communicate(data)`` then reads any data that the subprocess has sent to " -"its standard output or standard error, returning a tuple ``(stdout_data, " -"stderr_data)``." +"Once you've created the :class:`Popen` instance, you can call its :meth:" +"`wait` method to pause until the subprocess has exited, :meth:`poll` to " +"check if it's exited without pausing, or ``communicate(data)`` to send the " +"string *data* to the subprocess's standard input. ``communicate(data)`` " +"then reads any data that the subprocess has sent to its standard output or " +"standard error, returning a tuple ``(stdout_data, stderr_data)``." msgstr "" #: ../../whatsnew/2.4.rst:439 msgid "" -":func:`call` is a shortcut that passes its arguments along to the " -":class:`Popen` constructor, waits for the command to complete, and returns " -"the status code of the subprocess. It can serve as a safer analog to " -":func:`os.system`::" +":func:`call` is a shortcut that passes its arguments along to the :class:" +"`Popen` constructor, waits for the command to complete, and returns the " +"status code of the subprocess. It can serve as a safer analog to :func:`os." +"system`::" msgstr "" #: ../../whatsnew/2.4.rst:451 @@ -508,8 +504,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:457 msgid "" -"The PEP takes various examples of shell and Python code and shows how they'd" -" be translated into Python code that uses :mod:`subprocess`. Reading this " +"The PEP takes various examples of shell and Python code and shows how they'd " +"be translated into Python code that uses :mod:`subprocess`. Reading this " "section of the PEP is highly recommended." msgstr "" @@ -519,8 +515,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:465 msgid "" -"Written and implemented by Peter Åstrand, with assistance from Fredrik Lundh" -" and others." +"Written and implemented by Peter Åstrand, with assistance from Fredrik Lundh " +"and others." msgstr "" #: ../../whatsnew/2.4.rst:472 @@ -532,8 +528,8 @@ msgid "" "Python has always supported floating-point (FP) numbers, based on the " "underlying C :c:type:`double` type, as a data type. However, while most " "programming languages provide a floating-point type, many people (even " -"programmers) are unaware that floating-point numbers don't represent certain" -" decimal fractions accurately. The new :class:`Decimal` type can represent " +"programmers) are unaware that floating-point numbers don't represent certain " +"decimal fractions accurately. The new :class:`Decimal` type can represent " "these fractions accurately, up to a user-specified precision limit." msgstr "" @@ -566,11 +562,11 @@ msgstr "" #: ../../whatsnew/2.4.rst:497 msgid "" -"For example, the number 1.25 has positive sign, a mantissa value of 1.01 (in" -" binary), and an exponent of 0 (the decimal point doesn't need to be " -"shifted). The number 5 has the same sign and mantissa, but the exponent is 2" -" because the mantissa is multiplied by 4 (2 to the power of the exponent 2);" -" 1.25 \\* 4 equals 5." +"For example, the number 1.25 has positive sign, a mantissa value of 1.01 (in " +"binary), and an exponent of 0 (the decimal point doesn't need to be " +"shifted). The number 5 has the same sign and mantissa, but the exponent is 2 " +"because the mantissa is multiplied by 4 (2 to the power of the exponent 2); " +"1.25 \\* 4 equals 5." msgstr "" #: ../../whatsnew/2.4.rst:503 @@ -583,9 +579,9 @@ msgid "" "expansion is cut off after 52 bits. Unfortunately, most software needs to " "produce output in base 10, and common fractions in base 10 are often " "repeating decimals in binary. For example, 1.1 decimal is binary " -"``1.0001100110011 ...``; .1 = 1/16 + 1/32 + 1/256 plus an infinite number of" -" additional terms. IEEE 754 has to chop off that infinitely repeated " -"decimal after 52 digits, so the representation is slightly inaccurate." +"``1.0001100110011 ...``; .1 = 1/16 + 1/32 + 1/256 plus an infinite number of " +"additional terms. IEEE 754 has to chop off that infinitely repeated decimal " +"after 52 digits, so the representation is slightly inaccurate." msgstr "" #: ../../whatsnew/2.4.rst:515 @@ -594,11 +590,11 @@ msgstr "" #: ../../whatsnew/2.4.rst:520 msgid "" -"The inaccuracy isn't always visible when you print the number because the " -"FP-to-decimal-string conversion is provided by the C library, and most C " +"The inaccuracy isn't always visible when you print the number because the FP-" +"to-decimal-string conversion is provided by the C library, and most C " "libraries try to produce sensible output. Even if it's not displayed, " -"however, the inaccuracy is still there and subsequent operations can magnify" -" the error." +"however, the inaccuracy is still there and subsequent operations can magnify " +"the error." msgstr "" #: ../../whatsnew/2.4.rst:525 @@ -606,10 +602,10 @@ msgid "" "For many applications this doesn't matter. If I'm plotting points and " "displaying them on my monitor, the difference between 1.1 and " "1.1000000000000001 is too small to be visible. Reports often limit output " -"to a certain number of decimal places, and if you round the number to two or" -" three or even eight decimal places, the error is never apparent. However, " -"for applications where it does matter, it's a lot of work to implement your" -" own custom arithmetic routines." +"to a certain number of decimal places, and if you round the number to two or " +"three or even eight decimal places, the error is never apparent. However, " +"for applications where it does matter, it's a lot of work to implement your " +"own custom arithmetic routines." msgstr "" #: ../../whatsnew/2.4.rst:533 @@ -623,10 +619,10 @@ msgstr "" #: ../../whatsnew/2.4.rst:539 msgid "" "A new module, :mod:`decimal`, was added to Python's standard library. It " -"contains two classes, :class:`Decimal` and :class:`Context`. " -":class:`Decimal` instances represent numbers, and :class:`Context` instances" -" are used to wrap up various settings such as the precision and default " -"rounding mode." +"contains two classes, :class:`Decimal` and :class:`Context`. :class:" +"`Decimal` instances represent numbers, and :class:`Context` instances are " +"used to wrap up various settings such as the precision and default rounding " +"mode." msgstr "" #: ../../whatsnew/2.4.rst:544 @@ -653,8 +649,8 @@ msgstr "" msgid "" "Converting from floating-point numbers poses a bit of a problem: should the " "FP number representing 1.1 turn into the decimal number for exactly 1.1, or " -"for 1.1 plus whatever inaccuracies are introduced? The decision was to dodge" -" the issue and leave such a conversion out of the API. Instead, you should " +"for 1.1 plus whatever inaccuracies are introduced? The decision was to dodge " +"the issue and leave such a conversion out of the API. Instead, you should " "convert the floating-point number into a string using the desired precision " "and pass the string to the :class:`Decimal` constructor::" msgstr "" @@ -662,8 +658,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:577 msgid "" "Once you have :class:`Decimal` instances, you can perform the usual " -"mathematical operations on them. One limitation: exponentiation requires an" -" integer exponent::" +"mathematical operations on them. One limitation: exponentiation requires an " +"integer exponent::" msgstr "" #: ../../whatsnew/2.4.rst:598 @@ -683,9 +679,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:622 msgid "" -":class:`Decimal` instances have a :meth:`sqrt` method that returns a " -":class:`Decimal`, but if you need other things such as trigonometric " -"functions you'll have to implement them. ::" +":class:`Decimal` instances have a :meth:`sqrt` method that returns a :class:" +"`Decimal`, but if you need other things such as trigonometric functions " +"you'll have to implement them. ::" msgstr "" #: ../../whatsnew/2.4.rst:631 @@ -704,9 +700,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:638 msgid "" -":attr:`rounding` specifies the rounding mode. The :mod:`decimal` module has" -" constants for the various possibilities: :const:`ROUND_DOWN`, " -":const:`ROUND_CEILING`, :const:`ROUND_HALF_EVEN`, and various others." +":attr:`rounding` specifies the rounding mode. The :mod:`decimal` module has " +"constants for the various possibilities: :const:`ROUND_DOWN`, :const:" +"`ROUND_CEILING`, :const:`ROUND_HALF_EVEN`, and various others." msgstr "" #: ../../whatsnew/2.4.rst:642 @@ -719,16 +715,16 @@ msgstr "" #: ../../whatsnew/2.4.rst:647 msgid "" -"There's a thread-local default context available by calling " -":func:`getcontext`; you can change the properties of this context to alter " -"the default precision, rounding, or trap handling. The following example " -"shows the effect of changing the precision of the default context::" +"There's a thread-local default context available by calling :func:" +"`getcontext`; you can change the properties of this context to alter the " +"default precision, rounding, or trap handling. The following example shows " +"the effect of changing the precision of the default context::" msgstr "" #: ../../whatsnew/2.4.rst:660 msgid "" -"The default action for error conditions is selectable; the module can either" -" return a special value such as infinity or not-a-number, or exceptions can " +"The default action for error conditions is selectable; the module can either " +"return a special value such as infinity or not-a-number, or exceptions can " "be raised::" msgstr "" @@ -799,8 +795,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:721 msgid "" "The PEP also proposes that all :keyword:`import` statements be absolute " -"imports, with a leading ``.`` character to indicate a relative import. This" -" part of the PEP was not implemented for Python 2.4, but was completed for " +"imports, with a leading ``.`` character to indicate a relative import. This " +"part of the PEP was not implemented for Python 2.4, but was completed for " "Python 2.5." msgstr "" @@ -822,16 +818,16 @@ msgid "" "and display conventions that are localized to a particular country or " "language. However, the module was careful to not change the numeric locale " "because various functions in Python's implementation required that the " -"numeric locale remain set to the ``'C'`` locale. Often this was because the" -" code was using the C library's :c:func:`atof` function." +"numeric locale remain set to the ``'C'`` locale. Often this was because the " +"code was using the C library's :c:func:`atof` function." msgstr "" #: ../../whatsnew/2.4.rst:744 msgid "" -"Not setting the numeric locale caused trouble for extensions that used " -"third-party C libraries, however, because they wouldn't have the correct " -"locale set. The motivating example was GTK+, whose user interface widgets " -"weren't displaying numbers in the current locale." +"Not setting the numeric locale caused trouble for extensions that used third-" +"party C libraries, however, because they wouldn't have the correct locale " +"set. The motivating example was GTK+, whose user interface widgets weren't " +"displaying numbers in the current locale." msgstr "" #: ../../whatsnew/2.4.rst:749 @@ -848,17 +844,17 @@ msgstr "" #: ../../whatsnew/2.4.rst:755 msgid "" -"``PyOS_ascii_formatd(buffer, buf_len, format, d)`` converts a " -":c:type:`double` to an ASCII string." +"``PyOS_ascii_formatd(buffer, buf_len, format, d)`` converts a :c:type:" +"`double` to an ASCII string." msgstr "" #: ../../whatsnew/2.4.rst:758 msgid "" -"The code for these functions came from the GLib library " -"(https://developer.gnome.org/glib/stable/), whose developers kindly " -"relicensed the relevant functions and donated them to the Python Software " -"Foundation. The :mod:`locale` module can now change the numeric locale, " -"letting extensions such as GTK+ produce the correct results." +"The code for these functions came from the GLib library (https://developer." +"gnome.org/glib/stable/), whose developers kindly relicensed the relevant " +"functions and donated them to the Python Software Foundation. The :mod:" +"`locale` module can now change the numeric locale, letting extensions such " +"as GTK+ produce the correct results." msgstr "" #: ../../whatsnew/2.4.rst:767 @@ -907,30 +903,30 @@ msgstr "" #: ../../whatsnew/2.4.rst:791 msgid "" -"The :meth:`dict.update` method now accepts the same argument forms as the " -":class:`dict` constructor. This includes any mapping, any iterable of " -"key/value pairs, and keyword arguments. (Contributed by Raymond Hettinger.)" +"The :meth:`dict.update` method now accepts the same argument forms as the :" +"class:`dict` constructor. This includes any mapping, any iterable of key/" +"value pairs, and keyword arguments. (Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:795 msgid "" -"The string methods :meth:`ljust`, :meth:`rjust`, and :meth:`center` now take" -" an optional argument for specifying a fill character other than a space. " +"The string methods :meth:`ljust`, :meth:`rjust`, and :meth:`center` now take " +"an optional argument for specifying a fill character other than a space. " "(Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:799 msgid "" -"Strings also gained an :meth:`rsplit` method that works like the " -":meth:`split` method but splits from the end of the string. (Contributed " -"by Sean Reifschneider.) ::" +"Strings also gained an :meth:`rsplit` method that works like the :meth:" +"`split` method but splits from the end of the string. (Contributed by Sean " +"Reifschneider.) ::" msgstr "" #: ../../whatsnew/2.4.rst:808 msgid "" -"Three keyword parameters, *cmp*, *key*, and *reverse*, were added to the " -":meth:`sort` method of lists. These parameters make some common usages of " -":meth:`sort` simpler. All of these parameters are optional." +"Three keyword parameters, *cmp*, *key*, and *reverse*, were added to the :" +"meth:`sort` method of lists. These parameters make some common usages of :" +"meth:`sort` simpler. All of these parameters are optional." msgstr "" #: ../../whatsnew/2.4.rst:812 @@ -938,15 +934,15 @@ msgid "" "For the *cmp* parameter, the value should be a comparison function that " "takes two parameters and returns -1, 0, or +1 depending on how the " "parameters compare. This function will then be used to sort the list. " -"Previously this was the only parameter that could be provided to " -":meth:`sort`." +"Previously this was the only parameter that could be provided to :meth:" +"`sort`." msgstr "" #: ../../whatsnew/2.4.rst:817 msgid "" "*key* should be a single-parameter function that takes a list element and " -"returns a comparison key for the element. The list is then sorted using the" -" comparison keys. The following example sorts a list case-insensitively::" +"returns a comparison key for the element. The list is then sorted using the " +"comparison keys. The following example sorts a list case-insensitively::" msgstr "" #: ../../whatsnew/2.4.rst:834 @@ -968,16 +964,16 @@ msgstr "" #: ../../whatsnew/2.4.rst:848 msgid "" "Finally, the *reverse* parameter takes a Boolean value. If the value is " -"true, the list will be sorted into reverse order. Instead of ``L.sort(); " -"L.reverse()``, you can now write ``L.sort(reverse=True)``." +"true, the list will be sorted into reverse order. Instead of ``L.sort(); L." +"reverse()``, you can now write ``L.sort(reverse=True)``." msgstr "" #: ../../whatsnew/2.4.rst:852 msgid "" -"The results of sorting are now guaranteed to be stable. This means that two" -" entries with equal keys will be returned in the same order as they were " -"input. For example, you can sort a list of people by name, and then sort the" -" list by age, resulting in a list sorted by age where people with the same " +"The results of sorting are now guaranteed to be stable. This means that two " +"entries with equal keys will be returned in the same order as they were " +"input. For example, you can sort a list of people by name, and then sort the " +"list by age, resulting in a list sorted by age where people with the same " "age are in name-sorted order." msgstr "" @@ -987,8 +983,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:860 msgid "" -"There is a new built-in function ``sorted(iterable)`` that works like the " -"in-place :meth:`list.sort` method but can be used in expressions. The " +"There is a new built-in function ``sorted(iterable)`` that works like the in-" +"place :meth:`list.sort` method but can be used in expressions. The " "differences are:" msgstr "" @@ -1011,16 +1007,16 @@ msgstr "(Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.4.rst:893 ../../whatsnew/2.4.rst:1519 msgid "" -"Integer operations will no longer trigger an :exc:`OverflowWarning`. The " -":exc:`OverflowWarning` warning will disappear in Python 2.5." +"Integer operations will no longer trigger an :exc:`OverflowWarning`. The :" +"exc:`OverflowWarning` warning will disappear in Python 2.5." msgstr "" #: ../../whatsnew/2.4.rst:896 msgid "" "The interpreter gained a new switch, :option:`-m`, that takes a name, " "searches for the corresponding module on ``sys.path``, and runs the module " -"as a script. For example, you can now run the Python profiler with ``python" -" -m profile``. (Contributed by Nick Coghlan.)" +"as a script. For example, you can now run the Python profiler with ``python " +"-m profile``. (Contributed by Nick Coghlan.)" msgstr "" #: ../../whatsnew/2.4.rst:901 @@ -1034,17 +1030,17 @@ msgstr "" #: ../../whatsnew/2.4.rst:906 msgid "" "The :func:`zip` built-in function and :func:`itertools.izip` now return an " -"empty list if called with no arguments. Previously they raised a " -":exc:`TypeError` exception. This makes them more suitable for use with " -"variable length argument lists::" +"empty list if called with no arguments. Previously they raised a :exc:" +"`TypeError` exception. This makes them more suitable for use with variable " +"length argument lists::" msgstr "" #: ../../whatsnew/2.4.rst:921 msgid "" -"Encountering a failure while importing a module no longer leaves a " -"partially-initialized module object in ``sys.modules``. The incomplete " -"module object left behind would fool further imports of the same module into" -" succeeding, leading to confusing errors. (Fixed by Tim Peters.)" +"Encountering a failure while importing a module no longer leaves a partially-" +"initialized module object in ``sys.modules``. The incomplete module object " +"left behind would fool further imports of the same module into succeeding, " +"leading to confusing errors. (Fixed by Tim Peters.)" msgstr "" #: ../../whatsnew/2.4.rst:926 @@ -1061,8 +1057,8 @@ msgstr "Otimizações" msgid "" "The inner loops for list and tuple slicing were optimized and now run about " "one-third faster. The inner loops for dictionaries were also optimized, " -"resulting in performance boosts for :meth:`keys`, :meth:`values`, " -":meth:`items`, :meth:`iterkeys`, :meth:`itervalues`, and :meth:`iteritems`. " +"resulting in performance boosts for :meth:`keys`, :meth:`values`, :meth:" +"`items`, :meth:`iterkeys`, :meth:`itervalues`, and :meth:`iteritems`. " "(Contributed by Raymond Hettinger.)" msgstr "" @@ -1070,27 +1066,27 @@ msgstr "" msgid "" "The machinery for growing and shrinking lists was optimized for speed and " "for space efficiency. Appending and popping from lists now runs faster due " -"to more efficient code paths and less frequent use of the underlying system " -":c:func:`realloc`. List comprehensions also benefit. :meth:`list.extend` " -"was also optimized and no longer converts its argument into a temporary list" -" before extending the base list. (Contributed by Raymond Hettinger.)" +"to more efficient code paths and less frequent use of the underlying system :" +"c:func:`realloc`. List comprehensions also benefit. :meth:`list.extend` " +"was also optimized and no longer converts its argument into a temporary list " +"before extending the base list. (Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:948 msgid "" ":func:`list`, :func:`tuple`, :func:`map`, :func:`filter`, and :func:`zip` " -"now run several times faster with non-sequence arguments that supply a " -":meth:`__len__` method. (Contributed by Raymond Hettinger.)" +"now run several times faster with non-sequence arguments that supply a :meth:" +"`__len__` method. (Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:952 msgid "" -"The methods :meth:`list.__getitem__`, :meth:`dict.__getitem__`, and " -":meth:`dict.__contains__` are now implemented as :class:`method_descriptor` " +"The methods :meth:`list.__getitem__`, :meth:`dict.__getitem__`, and :meth:" +"`dict.__contains__` are now implemented as :class:`method_descriptor` " "objects rather than :class:`wrapper_descriptor` objects. This form of " "access doubles their performance and makes them more suitable for use as " -"arguments to functionals: ``map(mydict.__getitem__, keylist)``. (Contributed" -" by Raymond Hettinger.)" +"arguments to functionals: ``map(mydict.__getitem__, keylist)``. (Contributed " +"by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:959 @@ -1155,8 +1151,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1005 msgid "" -"The :mod:`bisect` module now has an underlying C implementation for improved" -" performance. (Contributed by Dmitry Vasiliev.)" +"The :mod:`bisect` module now has an underlying C implementation for improved " +"performance. (Contributed by Dmitry Vasiliev.)" msgstr "" #: ../../whatsnew/2.4.rst:1008 @@ -1179,8 +1175,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1016 msgid "" -"iso-2022-jp-1, iso-2022-jp-2, iso-2022-jp-3, iso-2022-jp-ext, " -"iso-2022-jp-2004, shift-jis, shift-jisx0213, shift-jis-2004" +"iso-2022-jp-1, iso-2022-jp-2, iso-2022-jp-3, iso-2022-jp-ext, iso-2022-" +"jp-2004, shift-jis, shift-jisx0213, shift-jis-2004" msgstr "" #: ../../whatsnew/2.4.rst:1019 @@ -1204,8 +1200,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1030 msgid "" -"There is a new :mod:`collections` module for various specialized collection" -" datatypes. Currently it contains just one type, :class:`deque`, a double-" +"There is a new :mod:`collections` module for various specialized collection " +"datatypes. Currently it contains just one type, :class:`deque`, a double-" "ended queue that supports efficiently adding and removing elements from " "either end::" msgstr "" @@ -1219,17 +1215,17 @@ msgstr "" #: ../../whatsnew/2.4.rst:1054 msgid "" -"The :mod:`ConfigParser` classes have been enhanced slightly. The " -":meth:`read` method now returns a list of the files that were successfully " -"parsed, and the :meth:`set` method raises :exc:`TypeError` if passed a " -"*value* argument that isn't a string. (Contributed by John Belmonte and " -"David Goodger.)" +"The :mod:`ConfigParser` classes have been enhanced slightly. The :meth:" +"`read` method now returns a list of the files that were successfully parsed, " +"and the :meth:`set` method raises :exc:`TypeError` if passed a *value* " +"argument that isn't a string. (Contributed by John Belmonte and David " +"Goodger.)" msgstr "" #: ../../whatsnew/2.4.rst:1059 msgid "" -"The :mod:`curses` module now supports the ncurses extension " -":func:`use_default_colors`. On platforms where the terminal supports " +"The :mod:`curses` module now supports the ncurses extension :func:" +"`use_default_colors`. On platforms where the terminal supports " "transparency, this makes it possible to use a transparent background. " "(Contributed by Jörg Lehmann.)" msgstr "" @@ -1237,8 +1233,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1064 msgid "" "The :mod:`difflib` module now includes an :class:`HtmlDiff` class that " -"creates an HTML table showing a side by side comparison of two versions of a" -" text. (Contributed by Dan Gass.)" +"creates an HTML table showing a side by side comparison of two versions of a " +"text. (Contributed by Dan Gass.)" msgstr "" #: ../../whatsnew/2.4.rst:1068 @@ -1248,8 +1244,8 @@ msgid "" "The 3.0 version of the package uses a new incremental parser for MIME " "messages, available in the :mod:`email.FeedParser` module. The new parser " "doesn't require reading the entire message into memory, and doesn't raise " -"exceptions if a message is malformed; instead it records any problems in the" -" :attr:`defect` attribute of the message. (Developed by Anthony Baxter, " +"exceptions if a message is malformed; instead it records any problems in " +"the :attr:`defect` attribute of the message. (Developed by Anthony Baxter, " "Barry Warsaw, Thomas Wouters, and others.)" msgstr "" @@ -1257,25 +1253,25 @@ msgstr "" msgid "" "The :mod:`heapq` module has been converted to C. The resulting tenfold " "improvement in speed makes the module suitable for handling high volumes of " -"data. In addition, the module has two new functions :func:`nlargest` and " -":func:`nsmallest` that use heaps to find the N largest or smallest values in" -" a dataset without the expense of a full sort. (Contributed by Raymond " +"data. In addition, the module has two new functions :func:`nlargest` and :" +"func:`nsmallest` that use heaps to find the N largest or smallest values in " +"a dataset without the expense of a full sort. (Contributed by Raymond " "Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:1083 msgid "" "The :mod:`httplib` module now contains constants for HTTP status codes " -"defined in various HTTP-related RFC documents. Constants have names such as" -" :const:`OK`, :const:`CREATED`, :const:`CONTINUE`, and " -":const:`MOVED_PERMANENTLY`; use pydoc to get a full list. (Contributed by " -"Andrew Eland.)" +"defined in various HTTP-related RFC documents. Constants have names such " +"as :const:`OK`, :const:`CREATED`, :const:`CONTINUE`, and :const:" +"`MOVED_PERMANENTLY`; use pydoc to get a full list. (Contributed by Andrew " +"Eland.)" msgstr "" #: ../../whatsnew/2.4.rst:1089 msgid "" -"The :mod:`imaplib` module now supports IMAP's THREAD command (contributed by" -" Yves Dionne) and new :meth:`deleteacl` and :meth:`myrights` methods " +"The :mod:`imaplib` module now supports IMAP's THREAD command (contributed by " +"Yves Dionne) and new :meth:`deleteacl` and :meth:`myrights` methods " "(contributed by Arnaud Mazin)." msgstr "" @@ -1299,9 +1295,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:1117 msgid "" -":func:`groupby` is typically used with sorted input. The logic for " -":func:`groupby` is similar to the Unix ``uniq`` filter which makes it handy " -"for eliminating, counting, or identifying duplicate elements::" +":func:`groupby` is typically used with sorted input. The logic for :func:" +"`groupby` is similar to the Unix ``uniq`` filter which makes it handy for " +"eliminating, counting, or identifying duplicate elements::" msgstr "" #: ../../whatsnew/2.4.rst:1140 @@ -1319,8 +1315,8 @@ msgstr "" msgid "" "Note that :func:`tee` has to keep copies of the values returned by the " "iterator; in the worst case, it may need to keep all of them. This should " -"therefore be used carefully if the leading iterator can run far ahead of the" -" trailing iterator in a long stream of inputs. If the separation is large, " +"therefore be used carefully if the leading iterator can run far ahead of the " +"trailing iterator in a long stream of inputs. If the separation is large, " "then you might as well use :func:`list` instead. When the iterators track " "closely with one another, :func:`tee` is ideal. Possible applications " "include bookmarking, windowing, or lookahead iterators. (Contributed by " @@ -1329,27 +1325,27 @@ msgstr "" #: ../../whatsnew/2.4.rst:1164 msgid "" -"A number of functions were added to the :mod:`locale` module, such as " -":func:`bind_textdomain_codeset` to specify a particular encoding and a " -"family of :func:`l\\*gettext` functions that return messages in the chosen " -"encoding. (Contributed by Gustavo Niemeyer.)" +"A number of functions were added to the :mod:`locale` module, such as :func:" +"`bind_textdomain_codeset` to specify a particular encoding and a family of :" +"func:`l\\*gettext` functions that return messages in the chosen encoding. " +"(Contributed by Gustavo Niemeyer.)" msgstr "" #: ../../whatsnew/2.4.rst:1169 msgid "" -"Some keyword arguments were added to the :mod:`logging` package's " -":func:`basicConfig` function to simplify log configuration. The default " -"behavior is to log messages to standard error, but various keyword arguments" -" can be specified to log to a particular file, change the logging format, or" -" set the logging level. For example::" +"Some keyword arguments were added to the :mod:`logging` package's :func:" +"`basicConfig` function to simplify log configuration. The default behavior " +"is to log messages to standard error, but various keyword arguments can be " +"specified to log to a particular file, change the logging format, or set the " +"logging level. For example::" msgstr "" #: ../../whatsnew/2.4.rst:1180 msgid "" "Other additions to the :mod:`logging` package include a ``log(level, msg)`` " "convenience method, as well as a :class:`TimedRotatingFileHandler` class " -"that rotates its log files at a timed interval. The module already had " -":class:`RotatingFileHandler`, which rotated logs once the file exceeded a " +"that rotates its log files at a timed interval. The module already had :" +"class:`RotatingFileHandler`, which rotated logs once the file exceeded a " "certain size. Both classes derive from a new :class:`BaseRotatingHandler` " "class that can be used to implement other rotating handlers." msgstr "" @@ -1377,34 +1373,33 @@ msgstr "" msgid "" "Two new functions were added to the :mod:`operator` module, " "``attrgetter(attr)`` and ``itemgetter(index)``. Both functions return " -"callables that take a single argument and return the corresponding attribute" -" or item; these callables make excellent data extractors when used with " -":func:`map` or :func:`sorted`. For example::" +"callables that take a single argument and return the corresponding attribute " +"or item; these callables make excellent data extractors when used with :func:" +"`map` or :func:`sorted`. For example::" msgstr "" #: ../../whatsnew/2.4.rst:1214 msgid "" "The :mod:`optparse` module was updated in various ways. The module now " "passes its messages through :func:`gettext.gettext`, making it possible to " -"internationalize Optik's help and error messages. Help messages for options" -" can now include the string ``'%default'``, which will be replaced by the " +"internationalize Optik's help and error messages. Help messages for options " +"can now include the string ``'%default'``, which will be replaced by the " "option's default value. (Contributed by Greg Ward.)" msgstr "" #: ../../whatsnew/2.4.rst:1220 msgid "" "The long-term plan is to deprecate the :mod:`rfc822` module in some future " -"Python release in favor of the :mod:`email` package. To this end, the " -":func:`email.Utils.formatdate` function has been changed to make it usable " -"as a replacement for :func:`rfc822.formatdate`. You may want to write new " -"e-mail processing code with this in mind. (Change implemented by Anthony " -"Baxter.)" +"Python release in favor of the :mod:`email` package. To this end, the :func:" +"`email.Utils.formatdate` function has been changed to make it usable as a " +"replacement for :func:`rfc822.formatdate`. You may want to write new e-mail " +"processing code with this in mind. (Change implemented by Anthony Baxter.)" msgstr "" #: ../../whatsnew/2.4.rst:1226 msgid "" -"A new ``urandom(n)`` function was added to the :mod:`os` module, returning a" -" string containing *n* bytes of random data. This function provides access " +"A new ``urandom(n)`` function was added to the :mod:`os` module, returning a " +"string containing *n* bytes of random data. This function provides access " "to platform-specific sources of randomness such as :file:`/dev/urandom` on " "Linux or the Windows CryptoAPI. (Contributed by Trevor Perrin.)" msgstr "" @@ -1448,26 +1443,26 @@ msgstr "" #: ../../whatsnew/2.4.rst:1252 msgid "" "The regular expression language accepted by the :mod:`re` module was " -"extended with simple conditional expressions, written as ``(?(group)A|B)``." -" *group* is either a numeric group ID or a group name defined with " -"``(?P...)`` earlier in the expression. If the specified group " -"matched, the regular expression pattern *A* will be tested against the " -"string; if the group didn't match, the pattern *B* will be used instead. " -"(Contributed by Gustavo Niemeyer.)" +"extended with simple conditional expressions, written as ``(?(group)A|B)``. " +"*group* is either a numeric group ID or a group name defined with ``(?" +"P...)`` earlier in the expression. If the specified group matched, " +"the regular expression pattern *A* will be tested against the string; if the " +"group didn't match, the pattern *B* will be used instead. (Contributed by " +"Gustavo Niemeyer.)" msgstr "" #: ../../whatsnew/2.4.rst:1259 msgid "" -"The :mod:`re` module is also no longer recursive, thanks to a massive amount" -" of work by Gustavo Niemeyer. In a recursive regular expression engine, " +"The :mod:`re` module is also no longer recursive, thanks to a massive amount " +"of work by Gustavo Niemeyer. In a recursive regular expression engine, " "certain patterns result in a large amount of C stack space being consumed, " "and it was possible to overflow the stack. For example, if you matched a " -"30000-byte string of ``a`` characters against the expression ``(a|b)+``, one" -" stack frame was consumed per character. Python 2.3 tried to check for " -"stack overflow and raise a :exc:`RuntimeError` exception, but certain " -"patterns could sidestep the checking and if you were unlucky Python could " -"segfault. Python 2.4's regular expression engine can match this pattern " -"without problems." +"30000-byte string of ``a`` characters against the expression ``(a|b)+``, one " +"stack frame was consumed per character. Python 2.3 tried to check for stack " +"overflow and raise a :exc:`RuntimeError` exception, but certain patterns " +"could sidestep the checking and if you were unlucky Python could segfault. " +"Python 2.4's regular expression engine can match this pattern without " +"problems." msgstr "" #: ../../whatsnew/2.4.rst:1269 @@ -1481,17 +1476,17 @@ msgstr "" #: ../../whatsnew/2.4.rst:1274 msgid "" -"Two new functions were added to the :mod:`socket` module. :func:`socketpair`" -" returns a pair of connected sockets and ``getservbyport(port)`` looks up " -"the service name for a given port number. (Contributed by Dave Cole and " -"Barry Warsaw.)" +"Two new functions were added to the :mod:`socket` module. :func:`socketpair` " +"returns a pair of connected sockets and ``getservbyport(port)`` looks up the " +"service name for a given port number. (Contributed by Dave Cole and Barry " +"Warsaw.)" msgstr "" #: ../../whatsnew/2.4.rst:1279 msgid "" -"The :func:`sys.exitfunc` function has been deprecated. Code should be using" -" the existing :mod:`atexit` module, which correctly handles calling multiple" -" exit functions. Eventually :func:`sys.exitfunc` will become a purely " +"The :func:`sys.exitfunc` function has been deprecated. Code should be using " +"the existing :mod:`atexit` module, which correctly handles calling multiple " +"exit functions. Eventually :func:`sys.exitfunc` will become a purely " "internal interface, accessed only by :mod:`atexit`." msgstr "" @@ -1510,9 +1505,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:1297 msgid "" -"Other threads can assign and retrieve their own values for the " -":attr:`number` and :attr:`url` attributes. You can subclass :class:`local` " -"to initialize attributes or to add methods. (Contributed by Jim Fulton.)" +"Other threads can assign and retrieve their own values for the :attr:" +"`number` and :attr:`url` attributes. You can subclass :class:`local` to " +"initialize attributes or to add methods. (Contributed by Jim Fulton.)" msgstr "" #: ../../whatsnew/2.4.rst:1301 @@ -1533,8 +1528,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1310 msgid "" "The :mod:`xmlrpclib` module now supports a multi-call extension for " -"transmitting multiple XML-RPC calls in a single HTTP operation. (Contributed" -" by Brian Quinlan.)" +"transmitting multiple XML-RPC calls in a single HTTP operation. (Contributed " +"by Brian Quinlan.)" msgstr "" #: ../../whatsnew/2.4.rst:1314 @@ -1549,12 +1544,12 @@ msgstr "" #: ../../whatsnew/2.4.rst:1325 msgid "" -"The :mod:`cookielib` library supports client-side handling for HTTP cookies," -" mirroring the :mod:`Cookie` module's server-side cookie support. Cookies " -"are stored in cookie jars; the library transparently stores cookies offered " -"by the web server in the cookie jar, and fetches the cookie from the jar " -"when connecting to the server. As in web browsers, policy objects control " -"whether cookies are accepted or not." +"The :mod:`cookielib` library supports client-side handling for HTTP cookies, " +"mirroring the :mod:`Cookie` module's server-side cookie support. Cookies are " +"stored in cookie jars; the library transparently stores cookies offered by " +"the web server in the cookie jar, and fetches the cookie from the jar when " +"connecting to the server. As in web browsers, policy objects control whether " +"cookies are accepted or not." msgstr "" #: ../../whatsnew/2.4.rst:1332 @@ -1567,9 +1562,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1337 msgid "" -":mod:`urllib2` has been changed to interact with :mod:`cookielib`: " -":class:`HTTPCookieProcessor` manages a cookie jar that is used when " -"accessing URLs." +":mod:`urllib2` has been changed to interact with :mod:`cookielib`: :class:" +"`HTTPCookieProcessor` manages a cookie jar that is used when accessing URLs." msgstr "" #: ../../whatsnew/2.4.rst:1341 @@ -1583,9 +1577,9 @@ msgstr "doctest" #: ../../whatsnew/2.4.rst:1349 msgid "" "The :mod:`doctest` module underwent considerable refactoring thanks to " -"Edward Loper and Tim Peters. Testing can still be as simple as running " -":func:`doctest.testmod`, but the refactorings allow customizing the module's" -" operation in various ways" +"Edward Loper and Tim Peters. Testing can still be as simple as running :" +"func:`doctest.testmod`, but the refactorings allow customizing the module's " +"operation in various ways" msgstr "" #: ../../whatsnew/2.4.rst:1354 @@ -1614,9 +1608,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:1392 msgid "" -"The default output checker provides a number of handy features. For example," -" with the :const:`doctest.ELLIPSIS` option flag, an ellipsis (``...``) in " -"the expected output matches any substring, making it easier to accommodate " +"The default output checker provides a number of handy features. For example, " +"with the :const:`doctest.ELLIPSIS` option flag, an ellipsis (``...``) in the " +"expected output matches any substring, making it easier to accommodate " "outputs that vary in minor ways::" msgstr "" @@ -1627,9 +1621,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:1411 msgid "" "Another new capability is producing a diff-style display of the output by " -"specifying the :const:`doctest.REPORT_UDIFF` (unified diffs), " -":const:`doctest.REPORT_CDIFF` (context diffs), or " -":const:`doctest.REPORT_NDIFF` (delta-style) option flags. For example::" +"specifying the :const:`doctest.REPORT_UDIFF` (unified diffs), :const:" +"`doctest.REPORT_CDIFF` (context diffs), or :const:`doctest.REPORT_NDIFF` " +"(delta-style) option flags. For example::" msgstr "" #: ../../whatsnew/2.4.rst:1427 @@ -1662,8 +1656,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1459 msgid "" "A new function, ``PyTuple_Pack(N, obj1, obj2, ..., objN)``, constructs " -"tuples from a variable length argument list of Python objects. (Contributed" -" by Raymond Hettinger.)" +"tuples from a variable length argument list of Python objects. (Contributed " +"by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.4.rst:1463 @@ -1675,23 +1669,23 @@ msgstr "" #: ../../whatsnew/2.4.rst:1467 msgid "" -"The :c:macro:`Py_IS_NAN(X)` macro returns 1 if its float or double argument" -" *X* is a NaN. (Contributed by Tim Peters.)" +"The :c:macro:`Py_IS_NAN(X)` macro returns 1 if its float or double argument " +"*X* is a NaN. (Contributed by Tim Peters.)" msgstr "" #: ../../whatsnew/2.4.rst:1470 msgid "" -"C code can avoid unnecessary locking by using the new " -":c:func:`PyEval_ThreadsInitialized` function to tell if any thread " -"operations have been performed. If this function returns false, no lock " -"operations are needed. (Contributed by Nick Coghlan.)" +"C code can avoid unnecessary locking by using the new :c:func:" +"`PyEval_ThreadsInitialized` function to tell if any thread operations have " +"been performed. If this function returns false, no lock operations are " +"needed. (Contributed by Nick Coghlan.)" msgstr "" #: ../../whatsnew/2.4.rst:1475 msgid "" -"A new function, :c:func:`PyArg_VaParseTupleAndKeywords`, is the same as " -":c:func:`PyArg_ParseTupleAndKeywords` but takes a :c:type:`va_list` instead" -" of a number of arguments. (Contributed by Greg Chapman.)" +"A new function, :c:func:`PyArg_VaParseTupleAndKeywords`, is the same as :c:" +"func:`PyArg_ParseTupleAndKeywords` but takes a :c:type:`va_list` instead of " +"a number of arguments. (Contributed by Greg Chapman.)" msgstr "" #: ../../whatsnew/2.4.rst:1479 @@ -1705,20 +1699,20 @@ msgstr "" #: ../../whatsnew/2.4.rst:1484 msgid "" "Python can now be built with additional profiling for the interpreter " -"itself, intended as an aid to people developing the Python core. Providing " -":option:`!--enable-profiling` to the :program:`configure` script will let " -"you profile the interpreter with :program:`gprof`, and providing the :option" -":`!--with-tsc` switch enables profiling using the Pentium's Time-Stamp-" -"Counter register. Note that the :option:`!--with-tsc` switch is slightly " -"misnamed, because the profiling feature also works on the PowerPC platform, " -"though that processor architecture doesn't call that register \"the TSC " -"register\". (Contributed by Jeremy Hylton.)" +"itself, intended as an aid to people developing the Python core. Providing :" +"option:`!--enable-profiling` to the :program:`configure` script will let you " +"profile the interpreter with :program:`gprof`, and providing the :option:`!--" +"with-tsc` switch enables profiling using the Pentium's Time-Stamp-Counter " +"register. Note that the :option:`!--with-tsc` switch is slightly misnamed, " +"because the profiling feature also works on the PowerPC platform, though " +"that processor architecture doesn't call that register \"the TSC register" +"\". (Contributed by Jeremy Hylton.)" msgstr "" #: ../../whatsnew/2.4.rst:1494 msgid "" -"The :c:type:`tracebackobject` type has been renamed to " -":c:type:`PyTracebackObject`." +"The :c:type:`tracebackobject` type has been renamed to :c:type:" +"`PyTracebackObject`." msgstr "" #: ../../whatsnew/2.4.rst:1501 @@ -1744,15 +1738,15 @@ msgstr "" #: ../../whatsnew/2.4.rst:1515 msgid "" "Left shifts and hexadecimal/octal constants that are too large no longer " -"trigger a :exc:`FutureWarning` and return a value limited to 32 or 64 bits;" -" instead they return a long integer." +"trigger a :exc:`FutureWarning` and return a value limited to 32 or 64 bits; " +"instead they return a long integer." msgstr "" #: ../../whatsnew/2.4.rst:1522 msgid "" "The :func:`zip` built-in function and :func:`itertools.izip` now return an " -"empty list instead of raising a :exc:`TypeError` exception if called with no" -" arguments." +"empty list instead of raising a :exc:`TypeError` exception if called with no " +"arguments." msgstr "" #: ../../whatsnew/2.4.rst:1526 @@ -1771,9 +1765,9 @@ msgstr "" #: ../../whatsnew/2.4.rst:1534 msgid "" -":func:`LexicalHandler.startDTD` used to receive the public and system IDs in" -" the wrong order. This has been corrected; applications relying on the " -"wrong order need to be fixed." +":func:`LexicalHandler.startDTD` used to receive the public and system IDs in " +"the wrong order. This has been corrected; applications relying on the wrong " +"order need to be fixed." msgstr "" #: ../../whatsnew/2.4.rst:1538 @@ -1789,8 +1783,8 @@ msgstr "" #: ../../whatsnew/2.4.rst:1543 msgid "" -"Encountering a failure while importing a module no longer leaves a " -"partially-initialized module object in ``sys.modules``." +"Encountering a failure while importing a module no longer leaves a partially-" +"initialized module object in ``sys.modules``." msgstr "" #: ../../whatsnew/2.4.rst:1546 @@ -1803,8 +1797,8 @@ msgstr "" msgid "" "The :func:`signals.signal` function now raises a :exc:`RuntimeError` " "exception for certain illegal values; previously these errors would pass " -"silently. For example, you can no longer set a handler on the " -":const:`SIGKILL` signal." +"silently. For example, you can no longer set a handler on the :const:" +"`SIGKILL` signal." msgstr "" #: ../../whatsnew/2.4.rst:1559 @@ -1814,7 +1808,7 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.4.rst:1561 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Koray Can, Hye-Shik Chang, Michael Dyck, Raymond Hettinger, Brian Hurt, " +"suggestions, corrections and assistance with various drafts of this article: " +"Koray Can, Hye-Shik Chang, Michael Dyck, Raymond Hettinger, Brian Hurt, " "Hamish Lawson, Fredrik Lundh, Sean Reifschneider, Sadruddin Rejeb." msgstr "" diff --git a/whatsnew/2.5.po b/whatsnew/2.5.po index c9c546a3d..264f5006e 100644 --- a/whatsnew/2.5.po +++ b/whatsnew/2.5.po @@ -1,25 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Victor Matheus Castro , 2019 # Adson Rodrigues , 2019 # Raphael Mendonça, 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Misael borges , 2019 -# +# Marco Rougeth , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" -"Last-Translator: Misael borges , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Marco Rougeth , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -49,9 +50,9 @@ msgstr "" msgid "" "The changes in Python 2.5 are an interesting mix of language and library " "improvements. The library enhancements will be more important to Python's " -"user community, I think, because several widely-useful packages were added." -" New modules include ElementTree for XML processing (:mod:`xml.etree`), the" -" SQLite database module (:mod:`sqlite`), and the :mod:`ctypes` module for " +"user community, I think, because several widely-useful packages were added. " +"New modules include ElementTree for XML processing (:mod:`xml.etree`), the " +"SQLite database module (:mod:`sqlite`), and the :mod:`ctypes` module for " "calling C functions." msgstr "" @@ -64,10 +65,10 @@ msgid "" "statement will make writing cleanup code easier (section :ref:`pep-343`). " "Values can now be passed into generators (section :ref:`pep-342`). Imports " "are now visible as either absolute or relative (section :ref:`pep-328`). " -"Some corner cases of exception handling are handled better (section " -":ref:`pep-341`). All these improvements are worthwhile, but they're " -"improvements to one specific language feature or another; none of them are " -"broad modifications to Python's semantics." +"Some corner cases of exception handling are handled better (section :ref:" +"`pep-341`). All these improvements are worthwhile, but they're improvements " +"to one specific language feature or another; none of them are broad " +"modifications to Python's semantics." msgstr "" #: ../../whatsnew/2.5.rst:34 @@ -80,8 +81,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:39 msgid "" -"This article doesn't try to be a complete specification of the new features;" -" instead changes are briefly introduced using helpful examples. For full " +"This article doesn't try to be a complete specification of the new features; " +"instead changes are briefly introduced using helpful examples. For full " "details, you should always refer to the documentation for Python 2.5 at " "https://docs.python.org. If you want to understand the complete " "implementation and design rationale, refer to the PEP for a particular new " @@ -109,11 +110,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:66 msgid "" -"There have been endless tedious discussions of syntax on both python-dev and" -" comp.lang.python. A vote was even held that found the majority of voters " +"There have been endless tedious discussions of syntax on both python-dev and " +"comp.lang.python. A vote was even held that found the majority of voters " "wanted conditional expressions in some form, but there was no syntax that " -"was preferred by a clear majority. Candidates included C's ``cond ? true_v :" -" false_v``, ``if cond then true_v else false_v``, and 16 other variations." +"was preferred by a clear majority. Candidates included C's ``cond ? true_v : " +"false_v``, ``if cond then true_v else false_v``, and 16 other variations." msgstr "" #: ../../whatsnew/2.5.rst:72 @@ -122,17 +123,17 @@ msgstr "" #: ../../whatsnew/2.5.rst:76 msgid "" -"Evaluation is still lazy as in existing Boolean expressions, so the order of" -" evaluation jumps around a bit. The *condition* expression in the middle is" -" evaluated first, and the *true_value* expression is evaluated only if the " +"Evaluation is still lazy as in existing Boolean expressions, so the order of " +"evaluation jumps around a bit. The *condition* expression in the middle is " +"evaluated first, and the *true_value* expression is evaluated only if the " "condition was true. Similarly, the *false_value* expression is only " "evaluated when the condition is false." msgstr "" #: ../../whatsnew/2.5.rst:82 msgid "" -"This syntax may seem strange and backwards; why does the condition go in the" -" *middle* of the expression, and not in the front as in C's ``c ? x : y``? " +"This syntax may seem strange and backwards; why does the condition go in the " +"*middle* of the expression, and not in the front as in C's ``c ? x : y``? " "The decision was checked by applying the new syntax to the modules in the " "standard library and seeing how the resulting code read. In many cases " "where a conditional expression is used, one value seems to be the 'common " @@ -143,16 +144,16 @@ msgstr "" #: ../../whatsnew/2.5.rst:92 msgid "" -"I read the above statement as meaning \"here *contents* is usually assigned" -" a value of ``doc+'\\n'``; sometimes *doc* is empty, in which special case " +"I read the above statement as meaning \"here *contents* is usually assigned " +"a value of ``doc+'\\n'``; sometimes *doc* is empty, in which special case " "an empty string is returned.\" I doubt I will use conditional expressions " "very often where there isn't a clear common and uncommon case." msgstr "" #: ../../whatsnew/2.5.rst:97 msgid "" -"There was some discussion of whether the language should require surrounding" -" conditional expressions with parentheses. The decision was made to *not* " +"There was some discussion of whether the language should require surrounding " +"conditional expressions with parentheses. The decision was made to *not* " "require parentheses in the Python language's grammar, but as a matter of " "style I think you should always use them. Consider these two statements::" msgstr "" @@ -196,8 +197,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:137 msgid "" -"One useful tool in this module is the :func:`partial` function. For programs" -" written in a functional style, you'll sometimes want to construct variants " +"One useful tool in this module is the :func:`partial` function. For programs " +"written in a functional style, you'll sometimes want to construct variants " "of existing functions that have some of the parameters filled in. Consider " "a Python function ``f(a, b, c)``; you could create a new function ``g(b, " "c)`` that was equivalent to ``f(1, b, c)``. This is called \"partial " @@ -219,8 +220,8 @@ msgstr "Aqui está um pequeno mas bem realístico exemplo::" msgid "" "Here's another example, from a program that uses PyGTK. Here a context-" "sensitive pop-up menu is being constructed dynamically. The callback " -"provided for the menu option is a partially applied version of the " -":meth:`open_item` method, where the first argument has been provided. ::" +"provided for the menu option is a partially applied version of the :meth:" +"`open_item` method, where the first argument has been provided. ::" msgstr "" #: ../../whatsnew/2.5.rst:173 @@ -258,23 +259,23 @@ msgid "" "Some simple dependency support was added to Distutils. The :func:`setup` " "function now has ``requires``, ``provides``, and ``obsoletes`` keyword " "parameters. When you build a source distribution using the ``sdist`` " -"command, the dependency information will be recorded in the :file:`PKG-INFO`" -" file." +"command, the dependency information will be recorded in the :file:`PKG-INFO` " +"file." msgstr "" #: ../../whatsnew/2.5.rst:217 msgid "" "Another new keyword parameter is ``download_url``, which should be set to a " "URL for the package's source code. This means it's now possible to look up " -"an entry in the package index, determine the dependencies for a package, and" -" download the required packages. ::" +"an entry in the package index, determine the dependencies for a package, and " +"download the required packages. ::" msgstr "" #: ../../whatsnew/2.5.rst:231 msgid "" "Another new enhancement to the Python package index at https://pypi.org is " -"storing source and binary archives for a package. The new :command:`upload`" -" Distutils command will upload a package to the repository." +"storing source and binary archives for a package. The new :command:`upload` " +"Distutils command will upload a package to the repository." msgstr "" #: ../../whatsnew/2.5.rst:236 @@ -307,9 +308,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:259 msgid "" -"The simpler part of PEP 328 was implemented in Python 2.4: parentheses could" -" now be used to enclose the names imported from a module using the ``from " -"... import ...`` statement, making it easier to import many different names." +"The simpler part of PEP 328 was implemented in Python 2.4: parentheses could " +"now be used to enclose the names imported from a module using the ``from ... " +"import ...`` statement, making it easier to import many different names." msgstr "" #: ../../whatsnew/2.5.rst:263 @@ -326,8 +327,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:274 msgid "" -"This defines a package named :mod:`pkg` containing the :mod:`pkg.main` and " -":mod:`pkg.string` submodules." +"This defines a package named :mod:`pkg` containing the :mod:`pkg.main` and :" +"mod:`pkg.string` submodules." msgstr "" #: ../../whatsnew/2.5.rst:277 @@ -335,17 +336,17 @@ msgid "" "Consider the code in the :file:`main.py` module. What happens if it " "executes the statement ``import string``? In Python 2.4 and earlier, it " "will first look in the package's directory to perform a relative import, " -"finds :file:`pkg/string.py`, imports the contents of that file as the " -":mod:`pkg.string` module, and that module is bound to the name ``string`` in" -" the :mod:`pkg.main` module's namespace." +"finds :file:`pkg/string.py`, imports the contents of that file as the :mod:" +"`pkg.string` module, and that module is bound to the name ``string`` in the :" +"mod:`pkg.main` module's namespace." msgstr "" #: ../../whatsnew/2.5.rst:284 msgid "" "That's fine if :mod:`pkg.string` was what you wanted. But what if you " "wanted Python's standard :mod:`string` module? There's no clean way to " -"ignore :mod:`pkg.string` and look for the standard module; generally you had" -" to look at the contents of ``sys.modules``, which is slightly unclean. " +"ignore :mod:`pkg.string` and look for the standard module; generally you had " +"to look at the contents of ``sys.modules``, which is slightly unclean. " "Holger Krekel's :mod:`py.std` package provides a tidier way to perform " "imports from the standard library, ``import py; py.std.string.join()``, but " "that package isn't available on all Python installations." @@ -354,11 +355,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:292 msgid "" "Reading code which relies on relative imports is also less clear, because a " -"reader may be confused about which module, :mod:`string` or " -":mod:`pkg.string`, is intended to be used. Python users soon learned not to" -" duplicate the names of standard library modules in the names of their " -"packages' submodules, but you can't protect against having your submodule's " -"name being used for a new module added in a future version of Python." +"reader may be confused about which module, :mod:`string` or :mod:`pkg." +"string`, is intended to be used. Python users soon learned not to duplicate " +"the names of standard library modules in the names of their packages' " +"submodules, but you can't protect against having your submodule's name being " +"used for a new module added in a future version of Python." msgstr "" #: ../../whatsnew/2.5.rst:299 @@ -380,11 +381,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:315 msgid "" -"This imports the :mod:`string` module relative to the current package, so in" -" :mod:`pkg.main` this will import *name1* and *name2* from " -":mod:`pkg.string`. Additional leading periods perform the relative import " -"starting from the parent of the current package. For example, code in the " -":mod:`A.B.C` module can do::" +"This imports the :mod:`string` module relative to the current package, so " +"in :mod:`pkg.main` this will import *name1* and *name2* from :mod:`pkg." +"string`. Additional leading periods perform the relative import starting " +"from the parent of the current package. For example, code in the :mod:`A.B." +"C` module can do::" msgstr "" #: ../../whatsnew/2.5.rst:324 @@ -425,11 +426,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:349 msgid "" "The :mod:`runpy` module implements a more sophisticated import mechanism so " -"that it's now possible to run modules in a package such as " -":mod:`pychecker.checker`. The module also supports alternative import " -"mechanisms such as the :mod:`zipimport` module. This means you can add a " -".zip archive's path to ``sys.path`` and then use the :option:`-m` switch to " -"execute code from the archive." +"that it's now possible to run modules in a package such as :mod:`pychecker." +"checker`. The module also supports alternative import mechanisms such as " +"the :mod:`zipimport` module. This means you can add a .zip archive's path " +"to ``sys.path`` and then use the :option:`-m` switch to execute code from " +"the archive." msgstr "" #: ../../whatsnew/2.5.rst:359 @@ -447,12 +448,12 @@ msgstr "" #: ../../whatsnew/2.5.rst:370 msgid "" "Until Python 2.5, the :keyword:`try` statement came in two flavours. You " -"could use a :keyword:`finally` block to ensure that code is always executed," -" or one or more :keyword:`except` blocks to catch specific exceptions. You" -" couldn't combine both :keyword:`!except` blocks and a :keyword:`!finally` " +"could use a :keyword:`finally` block to ensure that code is always executed, " +"or one or more :keyword:`except` blocks to catch specific exceptions. You " +"couldn't combine both :keyword:`!except` blocks and a :keyword:`!finally` " "block, because generating the right bytecode for the combined version was " -"complicated and it wasn't clear what the semantics of the combined statement" -" should be." +"complicated and it wasn't clear what the semantics of the combined statement " +"should be." msgstr "" #: ../../whatsnew/2.5.rst:377 @@ -466,17 +467,17 @@ msgstr "" #: ../../whatsnew/2.5.rst:393 msgid "" "The code in *block-1* is executed. If the code raises an exception, the " -"various :keyword:`except` blocks are tested: if the exception is of class " -":class:`Exception1`, *handler-1* is executed; otherwise if it's of class " -":class:`Exception2`, *handler-2* is executed, and so forth. If no exception" -" is raised, the *else-block* is executed." +"various :keyword:`except` blocks are tested: if the exception is of class :" +"class:`Exception1`, *handler-1* is executed; otherwise if it's of class :" +"class:`Exception2`, *handler-2* is executed, and so forth. If no exception " +"is raised, the *else-block* is executed." msgstr "" #: ../../whatsnew/2.5.rst:399 msgid "" "No matter what happened previously, the *final-block* is executed once the " -"code block is complete and any raised exceptions handled. Even if there's an" -" error in an exception handler or the *else-block* and a new exception is " +"code block is complete and any raised exceptions handled. Even if there's an " +"error in an exception handler or the *else-block* and a new exception is " "raised, the code in the *final-block* is still run." msgstr "" @@ -495,13 +496,13 @@ msgstr "" #: ../../whatsnew/2.5.rst:418 msgid "" "Python 2.5 adds a simple way to pass values *into* a generator. As " -"introduced in Python 2.3, generators only produce output; once a generator's" -" code was invoked to create an iterator, there was no way to pass any new " +"introduced in Python 2.3, generators only produce output; once a generator's " +"code was invoked to create an iterator, there was no way to pass any new " "information into the function when its execution is resumed. Sometimes the " "ability to pass in some information would be useful. Hackish solutions to " "this include making the generator's code look at a global variable and then " -"changing the global variable's value, or passing in some mutable object that" -" callers then modify." +"changing the global variable's value, or passing in some mutable object that " +"callers then modify." msgstr "" #: ../../whatsnew/2.5.rst:426 @@ -520,9 +521,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:440 msgid "" -"In Python 2.3, :keyword:`yield` was a statement; it didn't return any value." -" In 2.5, :keyword:`!yield` is now an expression, returning a value that can" -" be assigned to a variable or otherwise operated on::" +"In Python 2.3, :keyword:`yield` was a statement; it didn't return any " +"value. In 2.5, :keyword:`!yield` is now an expression, returning a value " +"that can be assigned to a variable or otherwise operated on::" msgstr "" #: ../../whatsnew/2.5.rst:446 @@ -535,8 +536,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:451 msgid "" -"(:pep:`342` explains the exact rules, which are that a :keyword:`yield`\\ " -"-expression must always be parenthesized except when it occurs at the top-" +"(:pep:`342` explains the exact rules, which are that a :keyword:`yield`\\ -" +"expression must always be parenthesized except when it occurs at the top-" "level expression on the right-hand side of an assignment. This means you " "can write ``val = yield i`` but have to use parentheses when there's an " "operation, as in ``val = (yield i) + 12``.)" @@ -544,10 +545,10 @@ msgstr "" #: ../../whatsnew/2.5.rst:458 msgid "" -"Values are sent into a generator by calling its ``send(value)`` method. The" -" generator's code is then resumed and the :keyword:`yield` expression " -"returns the specified *value*. If the regular :meth:`next` method is " -"called, the :keyword:`!yield` returns :const:`None`." +"Values are sent into a generator by calling its ``send(value)`` method. The " +"generator's code is then resumed and the :keyword:`yield` expression returns " +"the specified *value*. If the regular :meth:`next` method is called, the :" +"keyword:`!yield` returns :const:`None`." msgstr "" #: ../../whatsnew/2.5.rst:463 @@ -584,19 +585,19 @@ msgstr "" msgid "" ":meth:`close` raises a new :exc:`GeneratorExit` exception inside the " "generator to terminate the iteration. On receiving this exception, the " -"generator's code must either raise :exc:`GeneratorExit` or " -":exc:`StopIteration`. Catching the :exc:`GeneratorExit` exception and " -"returning a value is illegal and will trigger a :exc:`RuntimeError`; if the " -"function raises some other exception, that exception is propagated to the " -"caller. :meth:`close` will also be called by Python's garbage collector " -"when the generator is garbage-collected." +"generator's code must either raise :exc:`GeneratorExit` or :exc:" +"`StopIteration`. Catching the :exc:`GeneratorExit` exception and returning " +"a value is illegal and will trigger a :exc:`RuntimeError`; if the function " +"raises some other exception, that exception is propagated to the caller. :" +"meth:`close` will also be called by Python's garbage collector when the " +"generator is garbage-collected." msgstr "" #: ../../whatsnew/2.5.rst:512 msgid "" "If you need to run cleanup code when a :exc:`GeneratorExit` occurs, I " -"suggest using a ``try: ... finally:`` suite instead of catching " -":exc:`GeneratorExit`." +"suggest using a ``try: ... finally:`` suite instead of catching :exc:" +"`GeneratorExit`." msgstr "" #: ../../whatsnew/2.5.rst:515 @@ -607,9 +608,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:518 msgid "" -"Generators also become *coroutines*, a more generalized form of subroutines." -" Subroutines are entered at one point and exited at another point (the top " -"of the function, and a :keyword:`return` statement), but coroutines can be " +"Generators also become *coroutines*, a more generalized form of subroutines. " +"Subroutines are entered at one point and exited at another point (the top of " +"the function, and a :keyword:`return` statement), but coroutines can be " "entered, exited, and resumed at many different points (the :keyword:`yield` " "statements). We'll have to figure out patterns for using coroutines " "effectively in Python." @@ -621,22 +622,21 @@ msgid "" "obvious. :meth:`close` is called when a generator is garbage-collected, so " "this means the generator's code gets one last chance to run before the " "generator is destroyed. This last chance means that ``try...finally`` " -"statements in generators can now be guaranteed to work; the " -":keyword:`finally` clause will now always get a chance to run. The " -"syntactic restriction that you couldn't mix :keyword:`yield` statements with" -" a ``try...finally`` suite has therefore been removed. This seems like a " -"minor bit of language trivia, but using generators and ``try...finally`` is " -"actually necessary in order to implement the :keyword:`with` statement " -"described by PEP 343. I'll look at this new statement in the following " -"section." +"statements in generators can now be guaranteed to work; the :keyword:" +"`finally` clause will now always get a chance to run. The syntactic " +"restriction that you couldn't mix :keyword:`yield` statements with a ``try..." +"finally`` suite has therefore been removed. This seems like a minor bit of " +"language trivia, but using generators and ``try...finally`` is actually " +"necessary in order to implement the :keyword:`with` statement described by " +"PEP 343. I'll look at this new statement in the following section." msgstr "" #: ../../whatsnew/2.5.rst:536 msgid "" -"Another even more esoteric effect of this change: previously, the " -":attr:`gi_frame` attribute of a generator was always a frame object. It's " -"now possible for :attr:`gi_frame` to be ``None`` once the generator has been" -" exhausted." +"Another even more esoteric effect of this change: previously, the :attr:" +"`gi_frame` attribute of a generator was always a frame object. It's now " +"possible for :attr:`gi_frame` to be ``None`` once the generator has been " +"exhausted." msgstr "" #: ../../whatsnew/2.5.rst:549 @@ -646,8 +646,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:545 msgid "" "PEP written by Guido van Rossum and Phillip J. Eby; implemented by Phillip " -"J. Eby. Includes examples of some fancier uses of generators as " -"coroutines." +"J. Eby. Includes examples of some fancier uses of generators as coroutines." msgstr "" #: ../../whatsnew/2.5.rst:548 @@ -700,32 +699,32 @@ msgstr "" #: ../../whatsnew/2.5.rst:577 msgid "" -"The expression is evaluated, and it should result in an object that supports" -" the context management protocol (that is, has :meth:`__enter__` and " -":meth:`__exit__` methods." +"The expression is evaluated, and it should result in an object that supports " +"the context management protocol (that is, has :meth:`__enter__` and :meth:" +"`__exit__` methods." msgstr "" #: ../../whatsnew/2.5.rst:581 msgid "" -"The object's :meth:`__enter__` is called before *with-block* is executed and" -" therefore can run set-up code. It also may return a value that is bound to " +"The object's :meth:`__enter__` is called before *with-block* is executed and " +"therefore can run set-up code. It also may return a value that is bound to " "the name *variable*, if given. (Note carefully that *variable* is *not* " "assigned the result of *expression*.)" msgstr "" -"The object's :meth:`__enter__` is called before *with-block* is executed and" -" therefore can run set-up code. It also may return a value that is bound to " +"The object's :meth:`__enter__` is called before *with-block* is executed and " +"therefore can run set-up code. It also may return a value that is bound to " "the name *variable*, if given. (Note carefully that *variable* is *not* " "assigned the result of *expression*.)" #: ../../whatsnew/2.5.rst:586 msgid "" -"After execution of the *with-block* is finished, the object's " -":meth:`__exit__` method is called, even if the block raised an exception, " -"and can therefore run clean-up code." +"After execution of the *with-block* is finished, the object's :meth:" +"`__exit__` method is called, even if the block raised an exception, and can " +"therefore run clean-up code." msgstr "" -"After execution of the *with-block* is finished, the object's " -":meth:`__exit__` method is called, even if the block raised an exception, " -"and can therefore run clean-up code." +"After execution of the *with-block* is finished, the object's :meth:" +"`__exit__` method is called, even if the block raised an exception, and can " +"therefore run clean-up code." #: ../../whatsnew/2.5.rst:590 msgid "" @@ -739,12 +738,12 @@ msgstr "" #: ../../whatsnew/2.5.rst:597 msgid "" -"Some standard Python objects now support the context management protocol and" -" can be used with the ':keyword:`with`' statement. File objects are one " +"Some standard Python objects now support the context management protocol and " +"can be used with the ':keyword:`with`' statement. File objects are one " "example::" msgstr "" -"Some standard Python objects now support the context management protocol and" -" can be used with the ':keyword:`with`' statement. File objects are one " +"Some standard Python objects now support the context management protocol and " +"can be used with the ':keyword:`with`' statement. File objects are one " "example::" #: ../../whatsnew/2.5.rst:605 @@ -759,11 +758,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:611 msgid "" -"In this case, *f* is the same object created by :func:`open`, because " -":meth:`file.__enter__` returns *self*." +"In this case, *f* is the same object created by :func:`open`, because :meth:" +"`file.__enter__` returns *self*." msgstr "" -"In this case, *f* is the same object created by :func:`open`, because " -":meth:`file.__enter__` returns *self*." +"In this case, *f* is the same object created by :func:`open`, because :meth:" +"`file.__enter__` returns *self*." #: ../../whatsnew/2.5.rst:614 msgid "" @@ -784,8 +783,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:625 msgid "" "The new :func:`localcontext` function in the :mod:`decimal` module makes it " -"easy to save and restore the current decimal context, which encapsulates the" -" desired precision and rounding characteristics for computations::" +"easy to save and restore the current decimal context, which encapsulates the " +"desired precision and rounding characteristics for computations::" msgstr "" #: ../../whatsnew/2.5.rst:644 @@ -795,8 +794,8 @@ msgstr "Writing Context Managers" #: ../../whatsnew/2.5.rst:646 msgid "" "Under the hood, the ':keyword:`with`' statement is fairly complicated. Most " -"people will only use ':keyword:`!with`' in company with existing objects and" -" don't need to know these details, so you can skip the rest of this section " +"people will only use ':keyword:`!with`' in company with existing objects and " +"don't need to know these details, so you can skip the rest of this section " "if you like. Authors of new objects will need to understand the details of " "the underlying implementation and should keep reading." msgstr "" @@ -808,12 +807,12 @@ msgstr "A high-level explanation of the context management protocol is:" #: ../../whatsnew/2.5.rst:654 msgid "" "The expression is evaluated and should result in an object called a " -"\"context manager\". The context manager must have :meth:`__enter__` and " -":meth:`__exit__` methods." +"\"context manager\". The context manager must have :meth:`__enter__` and :" +"meth:`__exit__` methods." msgstr "" "The expression is evaluated and should result in an object called a " -"\"context manager\". The context manager must have :meth:`__enter__` and " -":meth:`__exit__` methods." +"\"context manager\". The context manager must have :meth:`__enter__` and :" +"meth:`__exit__` methods." #: ../../whatsnew/2.5.rst:658 msgid "" @@ -829,12 +828,12 @@ msgstr "The code in *BLOCK* is executed." #: ../../whatsnew/2.5.rst:664 msgid "" "If *BLOCK* raises an exception, the ``__exit__(type, value, traceback)`` is " -"called with the exception details, the same values returned by " -":func:`sys.exc_info`. The method's return value controls whether the " -"exception is re-raised: any false value re-raises the exception, and " -"``True`` will result in suppressing it. You'll only rarely want to suppress" -" the exception, because if you do the author of the code containing the " -"':keyword:`with`' statement will never realize anything went wrong." +"called with the exception details, the same values returned by :func:`sys." +"exc_info`. The method's return value controls whether the exception is re-" +"raised: any false value re-raises the exception, and ``True`` will result in " +"suppressing it. You'll only rarely want to suppress the exception, because " +"if you do the author of the code containing the ':keyword:`with`' statement " +"will never realize anything went wrong." msgstr "" #: ../../whatsnew/2.5.rst:672 @@ -847,11 +846,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:675 msgid "" -"Let's think through an example. I won't present detailed code but will only" -" sketch the methods necessary for a database that supports transactions." +"Let's think through an example. I won't present detailed code but will only " +"sketch the methods necessary for a database that supports transactions." msgstr "" -"Let's think through an example. I won't present detailed code but will only" -" sketch the methods necessary for a database that supports transactions." +"Let's think through an example. I won't present detailed code but will only " +"sketch the methods necessary for a database that supports transactions." #: ../../whatsnew/2.5.rst:678 msgid "" @@ -877,13 +876,13 @@ msgstr "" #: ../../whatsnew/2.5.rst:693 msgid "" -"The transaction should be committed if the code in the block runs flawlessly" -" or rolled back if there's an exception. Here's the basic interface for " -":class:`DatabaseConnection` that I'll assume::" +"The transaction should be committed if the code in the block runs flawlessly " +"or rolled back if there's an exception. Here's the basic interface for :" +"class:`DatabaseConnection` that I'll assume::" msgstr "" -"The transaction should be committed if the code in the block runs flawlessly" -" or rolled back if there's an exception. Here's the basic interface for " -":class:`DatabaseConnection` that I'll assume::" +"The transaction should be committed if the code in the block runs flawlessly " +"or rolled back if there's an exception. Here's the basic interface for :" +"class:`DatabaseConnection` that I'll assume::" #: ../../whatsnew/2.5.rst:706 msgid "" @@ -915,13 +914,13 @@ msgstr "" msgid "" "In the code below, execution will just fall off the end of the function, " "returning the default value of ``None``. ``None`` is false, so the " -"exception will be re-raised automatically. If you wished, you could be more" -" explicit and add a :keyword:`return` statement at the marked location. ::" +"exception will be re-raised automatically. If you wished, you could be more " +"explicit and add a :keyword:`return` statement at the marked location. ::" msgstr "" "In the code below, execution will just fall off the end of the function, " "returning the default value of ``None``. ``None`` is false, so the " -"exception will be re-raised automatically. If you wished, you could be more" -" explicit and add a :keyword:`return` statement at the marked location. ::" +"exception will be re-raised automatically. If you wished, you could be more " +"explicit and add a :keyword:`return` statement at the marked location. ::" #: ../../whatsnew/2.5.rst:743 msgid "The contextlib module" @@ -940,9 +939,9 @@ msgid "" "generator function instead of defining a new class. The generator should " "yield exactly one value. The code up to the :keyword:`yield` will be " "executed as the :meth:`__enter__` method, and the value yielded will be the " -"method's return value that will get bound to the variable in the " -"':keyword:`with`' statement's :keyword:`!as` clause, if any. The code after" -" the :keyword:`yield` will be executed in the :meth:`__exit__` method. Any " +"method's return value that will get bound to the variable in the ':keyword:" +"`with`' statement's :keyword:`!as` clause, if any. The code after the :" +"keyword:`yield` will be executed in the :meth:`__exit__` method. Any " "exception raised in the block will be raised by the :keyword:`!yield` " "statement." msgstr "" @@ -955,17 +954,17 @@ msgstr "" #: ../../whatsnew/2.5.rst:777 msgid "" -"The :mod:`contextlib` module also has a ``nested(mgr1, mgr2, ...)`` function" -" that combines a number of context managers so you don't need to write " -"nested ':keyword:`with`' statements. In this example, the single " -"':keyword:`!with`' statement both starts a database transaction and acquires" -" a thread lock::" +"The :mod:`contextlib` module also has a ``nested(mgr1, mgr2, ...)`` function " +"that combines a number of context managers so you don't need to write nested " +"':keyword:`with`' statements. In this example, the single ':keyword:`!" +"with`' statement both starts a database transaction and acquires a thread " +"lock::" msgstr "" #: ../../whatsnew/2.5.rst:786 msgid "" -"Finally, the ``closing(object)`` function returns *object* so that it can be" -" bound to a variable, and calls ``object.close`` at the end of the block. ::" +"Finally, the ``closing(object)`` function returns *object* so that it can be " +"bound to a variable, and calls ``object.close`` at the end of the block. ::" msgstr "" #: ../../whatsnew/2.5.rst:803 @@ -974,14 +973,14 @@ msgstr ":pep:`343` - The \"with\" statement" #: ../../whatsnew/2.5.rst:800 msgid "" -"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland," -" Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a" -" ':keyword:`with`' statement, which can be helpful in learning how the " +"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland, " +"Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a " +"':keyword:`with`' statement, which can be helpful in learning how the " "statement works." msgstr "" -"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland," -" Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a" -" ':keyword:`with`' statement, which can be helpful in learning how the " +"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland, " +"Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a " +"':keyword:`with`' statement, which can be helpful in learning how the " "statement works." #: ../../whatsnew/2.5.rst:805 @@ -1009,12 +1008,12 @@ msgstr "" #: ../../whatsnew/2.5.rst:828 msgid "" "This rearrangement was done because people often want to catch all " -"exceptions that indicate program errors. :exc:`KeyboardInterrupt` and " -":exc:`SystemExit` aren't errors, though, and usually represent an explicit " -"action such as the user hitting :kbd:`Control-C` or code calling " -":func:`sys.exit`. A bare ``except:`` will catch all exceptions, so you " -"commonly need to list :exc:`KeyboardInterrupt` and :exc:`SystemExit` in " -"order to re-raise them. The usual pattern is::" +"exceptions that indicate program errors. :exc:`KeyboardInterrupt` and :exc:" +"`SystemExit` aren't errors, though, and usually represent an explicit action " +"such as the user hitting :kbd:`Control-C` or code calling :func:`sys.exit`. " +"A bare ``except:`` will catch all exceptions, so you commonly need to list :" +"exc:`KeyboardInterrupt` and :exc:`SystemExit` in order to re-raise them. " +"The usual pattern is::" msgstr "" #: ../../whatsnew/2.5.rst:843 @@ -1028,10 +1027,10 @@ msgstr "" #: ../../whatsnew/2.5.rst:848 msgid "" "The goal for Python 3.0 is to require any class raised as an exception to " -"derive from :exc:`BaseException` or some descendant of :exc:`BaseException`," -" and future releases in the Python 2.x series may begin to enforce this " -"constraint. Therefore, I suggest you begin making all your exception classes" -" derive from :exc:`Exception` now. It's been suggested that the bare " +"derive from :exc:`BaseException` or some descendant of :exc:`BaseException`, " +"and future releases in the Python 2.x series may begin to enforce this " +"constraint. Therefore, I suggest you begin making all your exception classes " +"derive from :exc:`Exception` now. It's been suggested that the bare " "``except:`` form should be removed in Python 3.0, but Guido van Rossum " "hasn't decided whether to do this or not." msgstr "" @@ -1072,18 +1071,18 @@ msgid "" "were stored in an :c:type:`int`. The C compilers for most 64-bit platforms " "still define :c:type:`int` as a 32-bit type, so that meant that lists could " "only hold up to ``2**31 - 1`` = 2147483647 items. (There are actually a few " -"different programming models that 64-bit C compilers can use -- see " -"http://www.unix.org/version2/whatsnew/lp64_wp.html for a discussion -- but " -"the most commonly available model leaves :c:type:`int` as 32 bits.)" +"different programming models that 64-bit C compilers can use -- see http://" +"www.unix.org/version2/whatsnew/lp64_wp.html for a discussion -- but the most " +"commonly available model leaves :c:type:`int` as 32 bits.)" msgstr "" #: ../../whatsnew/2.5.rst:888 msgid "" "A limit of 2147483647 items doesn't really matter on a 32-bit platform " "because you'll run out of memory before hitting the length limit. Each list " -"item requires space for a pointer, which is 4 bytes, plus space for a " -":c:type:`PyObject` representing the item. 2147483647\\*4 is already more " -"bytes than a 32-bit address space can contain." +"item requires space for a pointer, which is 4 bytes, plus space for a :c:" +"type:`PyObject` representing the item. 2147483647\\*4 is already more bytes " +"than a 32-bit address space can contain." msgstr "" #: ../../whatsnew/2.5.rst:894 @@ -1095,26 +1094,25 @@ msgid "" "other than :c:type:`int`, and this will be a 64-bit type on 64-bit " "platforms. The change will cause incompatibilities on 64-bit machines, so " "it was deemed worth making the transition now, while the number of 64-bit " -"users is still relatively small. (In 5 or 10 years, we may *all* be on " -"64-bit machines, and the transition would be more painful then.)" +"users is still relatively small. (In 5 or 10 years, we may *all* be on 64-" +"bit machines, and the transition would be more painful then.)" msgstr "" #: ../../whatsnew/2.5.rst:904 msgid "" "This change most strongly affects authors of C extension modules. Python " -"strings and container types such as lists and tuples now use " -":c:type:`Py_ssize_t` to store their size. Functions such as " -":c:func:`PyList_Size` now return :c:type:`Py_ssize_t`. Code in extension " -"modules may therefore need to have some variables changed to " -":c:type:`Py_ssize_t`." +"strings and container types such as lists and tuples now use :c:type:" +"`Py_ssize_t` to store their size. Functions such as :c:func:`PyList_Size` " +"now return :c:type:`Py_ssize_t`. Code in extension modules may therefore " +"need to have some variables changed to :c:type:`Py_ssize_t`." msgstr "" #: ../../whatsnew/2.5.rst:910 msgid "" "The :c:func:`PyArg_ParseTuple` and :c:func:`Py_BuildValue` functions have a " -"new conversion code, ``n``, for :c:type:`Py_ssize_t`. " -":c:func:`PyArg_ParseTuple`'s ``s#`` and ``t#`` still output :c:type:`int` by" -" default, but you can define the macro :c:macro:`PY_SSIZE_T_CLEAN` before " +"new conversion code, ``n``, for :c:type:`Py_ssize_t`. :c:func:" +"`PyArg_ParseTuple`'s ``s#`` and ``t#`` still output :c:type:`int` by " +"default, but you can define the macro :c:macro:`PY_SSIZE_T_CLEAN` before " "including :file:`Python.h` to make them return :c:type:`Py_ssize_t`." msgstr "" @@ -1138,10 +1136,10 @@ msgstr "" #: ../../whatsnew/2.5.rst:933 msgid "" -"The NumPy developers had a problem that could only be solved by adding a new" -" special method, :meth:`__index__`. When using slice notation, as in " -"``[start:stop:step]``, the values of the *start*, *stop*, and *step* indexes" -" must all be either integers or long integers. NumPy defines a variety of " +"The NumPy developers had a problem that could only be solved by adding a new " +"special method, :meth:`__index__`. When using slice notation, as in " +"``[start:stop:step]``, the values of the *start*, *stop*, and *step* indexes " +"must all be either integers or long integers. NumPy defines a variety of " "specialized integer types corresponding to unsigned and signed integers of " "8, 16, 32, and 64 bits, but there was no way to signal that these types " "could be used as slice indexes." @@ -1150,9 +1148,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:941 msgid "" "Slicing can't just use the existing :meth:`__int__` method because that " -"method is also used to implement coercion to integers. If slicing used " -":meth:`__int__`, floating-point numbers would also become legal slice " -"indexes and that's clearly an undesirable behaviour." +"method is also used to implement coercion to integers. If slicing used :" +"meth:`__int__`, floating-point numbers would also become legal slice indexes " +"and that's clearly an undesirable behaviour." msgstr "" #: ../../whatsnew/2.5.rst:946 @@ -1165,16 +1163,16 @@ msgstr "" #: ../../whatsnew/2.5.rst:953 msgid "" "The return value must be either a Python integer or long integer. The " -"interpreter will check that the type returned is correct, and raises a " -":exc:`TypeError` if this requirement isn't met." +"interpreter will check that the type returned is correct, and raises a :exc:" +"`TypeError` if this requirement isn't met." msgstr "" #: ../../whatsnew/2.5.rst:957 msgid "" -"A corresponding :attr:`nb_index` slot was added to the C-level " -":c:type:`PyNumberMethods` structure to let C extensions implement this " -"protocol. ``PyNumber_Index(obj)`` can be used in extension code to call the " -":meth:`__index__` function and retrieve its result." +"A corresponding :attr:`nb_index` slot was added to the C-level :c:type:" +"`PyNumberMethods` structure to let C extensions implement this protocol. " +"``PyNumber_Index(obj)`` can be used in extension code to call the :meth:" +"`__index__` function and retrieve its result." msgstr "" #: ../../whatsnew/2.5.rst:965 @@ -1198,11 +1196,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:978 msgid "" "The :class:`dict` type has a new hook for letting subclasses provide a " -"default value when a key isn't contained in the dictionary. When a key isn't" -" found, the dictionary's ``__missing__(key)`` method will be called. This " -"hook is used to implement the new :class:`defaultdict` class in the " -":mod:`collections` module. The following example defines a dictionary that" -" returns zero for any missing key::" +"default value when a key isn't contained in the dictionary. When a key isn't " +"found, the dictionary's ``__missing__(key)`` method will be called. This " +"hook is used to implement the new :class:`defaultdict` class in the :mod:" +"`collections` module. The following example defines a dictionary that " +"returns zero for any missing key::" msgstr "" #: ../../whatsnew/2.5.rst:993 @@ -1219,9 +1217,9 @@ msgid "" "call that returns a 3-tuple containing the substring before the separator, " "the separator itself, and the substring after the separator. If the " "separator isn't found, the first element of the tuple is the entire string " -"and the other two elements are empty. ``rpartition(sep)`` also returns a " -"3-tuple but starts searching from the end of the string; the ``r`` stands " -"for 'reverse'." +"and the other two elements are empty. ``rpartition(sep)`` also returns a 3-" +"tuple but starts searching from the end of the string; the ``r`` stands for " +"'reverse'." msgstr "" #: ../../whatsnew/2.5.rst:1005 @@ -1247,8 +1245,8 @@ msgstr "" msgid "" "The :func:`min` and :func:`max` built-in functions gained a ``key`` keyword " "parameter analogous to the ``key`` argument for :meth:`sort`. This " -"parameter supplies a function that takes a single argument and is called for" -" every value in the list; :func:`min`/:func:`max` will return the element " +"parameter supplies a function that takes a single argument and is called for " +"every value in the list; :func:`min`/:func:`max` will return the element " "with the smallest/largest return value from this function. For example, to " "find the longest string in a list, you can do::" msgstr "" @@ -1259,12 +1257,12 @@ msgstr "" #: ../../whatsnew/2.5.rst:1045 msgid "" -"Two new built-in functions, :func:`any` and :func:`all`, evaluate whether an" -" iterator contains any true or false values. :func:`any` returns " -":const:`True` if any value returned by the iterator is true; otherwise it " -"will return :const:`False`. :func:`all` returns :const:`True` only if all " -"of the values returned by the iterator evaluate as true. (Suggested by Guido" -" van Rossum, and implemented by Raymond Hettinger.)" +"Two new built-in functions, :func:`any` and :func:`all`, evaluate whether an " +"iterator contains any true or false values. :func:`any` returns :const:" +"`True` if any value returned by the iterator is true; otherwise it will " +"return :const:`False`. :func:`all` returns :const:`True` only if all of the " +"values returned by the iterator evaluate as true. (Suggested by Guido van " +"Rossum, and implemented by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.5.rst:1052 @@ -1273,8 +1271,8 @@ msgid "" "integer or a regular integer. If a long integer is returned, the hash of " "that value is taken. In earlier versions the hash value was required to be " "a regular integer, but in 2.5 the :func:`id` built-in was changed to always " -"return non-negative numbers, and users often seem to use ``id(self)`` in " -":meth:`__hash__` methods (though this is discouraged)." +"return non-negative numbers, and users often seem to use ``id(self)`` in :" +"meth:`__hash__` methods (though this is discouraged)." msgstr "" #: ../../whatsnew/2.5.rst:1061 @@ -1282,8 +1280,8 @@ msgid "" "ASCII is now the default encoding for modules. It's now a syntax error if " "a module contains string literals with 8-bit characters but doesn't have an " "encoding declaration. In Python 2.4 this triggered a warning, not a syntax " -"error. See :pep:`263` for how to declare a module's encoding; for example," -" you might add a line like this near the top of the source file::" +"error. See :pep:`263` for how to declare a module's encoding; for example, " +"you might add a line like this near the top of the source file::" msgstr "" #: ../../whatsnew/2.5.rst:1069 @@ -1300,8 +1298,8 @@ msgid "" "2.5 this could result in puzzling problems when accessing a dictionary. If " "you looked up ``unichr(128)`` and ``chr(128)`` was being used as a key, " "you'd get a :class:`UnicodeDecodeError` exception. Other changes in 2.5 " -"resulted in this exception being raised instead of suppressed by the code in" -" :file:`dictobject.c` that implements dictionaries." +"resulted in this exception being raised instead of suppressed by the code " +"in :file:`dictobject.c` that implements dictionaries." msgstr "" #: ../../whatsnew/2.5.rst:1088 @@ -1317,15 +1315,15 @@ msgstr "" #: ../../whatsnew/2.5.rst:1093 msgid "" -"One error that Python programmers sometimes make is forgetting to include an" -" :file:`__init__.py` module in a package directory. Debugging this mistake " +"One error that Python programmers sometimes make is forgetting to include " +"an :file:`__init__.py` module in a package directory. Debugging this mistake " "can be confusing, and usually requires running Python with the :option:`-v` " -"switch to log all the paths searched. In Python 2.5, a new " -":exc:`ImportWarning` warning is triggered when an import would have picked " -"up a directory as a package but no :file:`__init__.py` was found. This " -"warning is silently ignored by default; provide the :option:`-Wd <-W>` " -"option when running the Python executable to display the warning message. " -"(Implemented by Thomas Wouters.)" +"switch to log all the paths searched. In Python 2.5, a new :exc:" +"`ImportWarning` warning is triggered when an import would have picked up a " +"directory as a package but no :file:`__init__.py` was found. This warning " +"is silently ignored by default; provide the :option:`-Wd <-W>` option when " +"running the Python executable to display the warning message. (Implemented " +"by Thomas Wouters.)" msgstr "" #: ../../whatsnew/2.5.rst:1102 @@ -1352,17 +1350,16 @@ msgstr "" #: ../../whatsnew/2.5.rst:1124 msgid "" "In Python 2.5, ``quit`` and ``exit`` are now objects that still produce " -"string representations of themselves, but are also callable. Newbies who try" -" ``quit()`` or ``exit()`` will now exit the interpreter as they expect. " +"string representations of themselves, but are also callable. Newbies who try " +"``quit()`` or ``exit()`` will now exit the interpreter as they expect. " "(Implemented by Georg Brandl.)" msgstr "" #: ../../whatsnew/2.5.rst:1129 msgid "" -"The Python executable now accepts the standard long options " -":option:`--help` and :option:`--version`; on Windows, it also accepts the " -":option:`/? <-?>` option for displaying a help message. (Implemented by " -"Georg Brandl.)" +"The Python executable now accepts the standard long options :option:`--" +"help` and :option:`--version`; on Windows, it also accepts the :option:`/? " +"<-?>` option for displaying a help message. (Implemented by Georg Brandl.)" msgstr "" #: ../../whatsnew/2.5.rst:1139 @@ -1380,9 +1377,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:1147 msgid "" -"When they were introduced in Python 2.4, the built-in :class:`set` and " -":class:`frozenset` types were built on top of Python's dictionary type. In" -" 2.5 the internal data structure has been customized for implementing sets, " +"When they were introduced in Python 2.4, the built-in :class:`set` and :" +"class:`frozenset` types were built on top of Python's dictionary type. In " +"2.5 the internal data structure has been customized for implementing sets, " "and as a result sets will use a third less memory and are somewhat faster. " "(Implemented by Raymond Hettinger.)" msgstr "" @@ -1391,27 +1388,27 @@ msgstr "" msgid "" "The speed of some Unicode operations, such as finding substrings, string " "splitting, and character map encoding and decoding, has been improved. " -"(Substring search and splitting improvements were added by Fredrik Lundh and" -" Andrew Dalke at the NeedForSpeed sprint. Character maps were improved by " +"(Substring search and splitting improvements were added by Fredrik Lundh and " +"Andrew Dalke at the NeedForSpeed sprint. Character maps were improved by " "Walter Dörwald and Martin von Löwis.)" msgstr "" #: ../../whatsnew/2.5.rst:1161 msgid "" -"The ``long(str, base)`` function is now faster on long digit strings because" -" fewer intermediate results are calculated. The peak is for strings of " +"The ``long(str, base)`` function is now faster on long digit strings because " +"fewer intermediate results are calculated. The peak is for strings of " "around 800--1000 digits where the function is 6 times faster. (Contributed " "by Alan McIntyre and committed at the NeedForSpeed sprint.)" msgstr "" #: ../../whatsnew/2.5.rst:1168 msgid "" -"It's now illegal to mix iterating over a file with ``for line in file`` and" -" calling the file object's :meth:`read`/:meth:`readline`/:meth:`readlines` " -"methods. Iteration uses an internal buffer and the :meth:`read\\*` methods" -" don't use that buffer. Instead they would return the data following the " -"buffer, causing the data to appear out of order. Mixing iteration and these" -" methods will now trigger a :exc:`ValueError` from the :meth:`read\\*` " +"It's now illegal to mix iterating over a file with ``for line in file`` and " +"calling the file object's :meth:`read`/:meth:`readline`/:meth:`readlines` " +"methods. Iteration uses an internal buffer and the :meth:`read\\*` methods " +"don't use that buffer. Instead they would return the data following the " +"buffer, causing the data to appear out of order. Mixing iteration and these " +"methods will now trigger a :exc:`ValueError` from the :meth:`read\\*` " "method. (Implemented by Thomas Wouters.)" msgstr "" @@ -1425,42 +1422,42 @@ msgstr "" #: ../../whatsnew/2.5.rst:1182 msgid "" "The :mod:`re` module got a 1 or 2% speedup by switching to Python's " -"allocator functions instead of the system's :c:func:`malloc` and " -":c:func:`free`. (Contributed by Jack Diederich at the NeedForSpeed sprint.)" +"allocator functions instead of the system's :c:func:`malloc` and :c:func:" +"`free`. (Contributed by Jack Diederich at the NeedForSpeed sprint.)" msgstr "" #: ../../whatsnew/2.5.rst:1186 msgid "" -"The code generator's peephole optimizer now performs simple constant folding" -" in expressions. If you write something like ``a = 2+3``, the code " -"generator will do the arithmetic and produce code corresponding to ``a = " -"5``. (Proposed and implemented by Raymond Hettinger.)" +"The code generator's peephole optimizer now performs simple constant folding " +"in expressions. If you write something like ``a = 2+3``, the code generator " +"will do the arithmetic and produce code corresponding to ``a = 5``. " +"(Proposed and implemented by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.5.rst:1191 msgid "" "Function calls are now faster because code objects now keep the most " "recently finished frame (a \"zombie frame\") in an internal field of the " -"code object, reusing it the next time the code object is invoked. (Original" -" patch by Michael Hudson, modified by Armin Rigo and Richard Jones; " -"committed at the NeedForSpeed sprint.) Frame objects are also slightly " -"smaller, which may improve cache locality and reduce memory usage a bit. " -"(Contributed by Neal Norwitz.)" +"code object, reusing it the next time the code object is invoked. (Original " +"patch by Michael Hudson, modified by Armin Rigo and Richard Jones; committed " +"at the NeedForSpeed sprint.) Frame objects are also slightly smaller, which " +"may improve cache locality and reduce memory usage a bit. (Contributed by " +"Neal Norwitz.)" msgstr "" #: ../../whatsnew/2.5.rst:1201 msgid "" -"Python's built-in exceptions are now new-style classes, a change that speeds" -" up instantiation considerably. Exception handling in Python 2.5 is " -"therefore about 30% faster than in 2.4. (Contributed by Richard Jones, Georg" -" Brandl and Sean Reifschneider at the NeedForSpeed sprint.)" +"Python's built-in exceptions are now new-style classes, a change that speeds " +"up instantiation considerably. Exception handling in Python 2.5 is " +"therefore about 30% faster than in 2.4. (Contributed by Richard Jones, Georg " +"Brandl and Sean Reifschneider at the NeedForSpeed sprint.)" msgstr "" #: ../../whatsnew/2.5.rst:1206 msgid "" "Importing now caches the paths tried, recording whether they exist or not " -"so that the interpreter makes fewer :c:func:`open` and :c:func:`stat` calls" -" on startup. (Contributed by Martin von Löwis and Georg Brandl.)" +"so that the interpreter makes fewer :c:func:`open` and :c:func:`stat` calls " +"on startup. (Contributed by Martin von Löwis and Georg Brandl.)" msgstr "" #: ../../whatsnew/2.5.rst:1218 @@ -1469,9 +1466,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:1220 msgid "" -"The standard library received many enhancements and bug fixes in Python 2.5." -" Here's a partial list of the most notable changes, sorted alphabetically by" -" module name. Consult the :file:`Misc/NEWS` file in the source tree for a " +"The standard library received many enhancements and bug fixes in Python 2.5. " +"Here's a partial list of the most notable changes, sorted alphabetically by " +"module name. Consult the :file:`Misc/NEWS` file in the source tree for a " "more complete list of changes, or look through the SVN logs for all the " "details." msgstr "" @@ -1484,16 +1481,16 @@ msgstr "" #: ../../whatsnew/2.5.rst:1228 msgid "" -"The :mod:`codecs` module gained support for incremental codecs. The " -":func:`codec.lookup` function now returns a :class:`CodecInfo` instance " -"instead of a tuple. :class:`CodecInfo` instances behave like a 4-tuple to " -"preserve backward compatibility but also have the attributes :attr:`encode`," -" :attr:`decode`, :attr:`incrementalencoder`, :attr:`incrementaldecoder`, " -":attr:`streamwriter`, and :attr:`streamreader`. Incremental codecs can " -"receive input and produce output in multiple chunks; the output is the same " -"as if the entire input was fed to the non-incremental codec. See the " -":mod:`codecs` module documentation for details. (Designed and implemented by" -" Walter Dörwald.)" +"The :mod:`codecs` module gained support for incremental codecs. The :func:" +"`codec.lookup` function now returns a :class:`CodecInfo` instance instead of " +"a tuple. :class:`CodecInfo` instances behave like a 4-tuple to preserve " +"backward compatibility but also have the attributes :attr:`encode`, :attr:" +"`decode`, :attr:`incrementalencoder`, :attr:`incrementaldecoder`, :attr:" +"`streamwriter`, and :attr:`streamreader`. Incremental codecs can receive " +"input and produce output in multiple chunks; the output is the same as if " +"the entire input was fed to the non-incremental codec. See the :mod:`codecs` " +"module documentation for details. (Designed and implemented by Walter " +"Dörwald.)" msgstr "" #: ../../whatsnew/2.5.rst:1240 @@ -1523,10 +1520,10 @@ msgstr "" #: ../../whatsnew/2.5.rst:1271 msgid "" -"The :class:`deque` double-ended queue type supplied by the " -":mod:`collections` module now has a ``remove(value)`` method that removes " -"the first occurrence of *value* in the queue, raising :exc:`ValueError` if " -"the value isn't found. (Contributed by Raymond Hettinger.)" +"The :class:`deque` double-ended queue type supplied by the :mod:" +"`collections` module now has a ``remove(value)`` method that removes the " +"first occurrence of *value* in the queue, raising :exc:`ValueError` if the " +"value isn't found. (Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.5.rst:1276 @@ -1550,21 +1547,21 @@ msgstr "" #: ../../whatsnew/2.5.rst:1288 msgid "" "Also, the :mod:`pstats` module for analyzing the data measured by the " -"profiler now supports directing the output to any file object by supplying a" -" *stream* argument to the :class:`Stats` constructor. (Contributed by Skip " +"profiler now supports directing the output to any file object by supplying a " +"*stream* argument to the :class:`Stats` constructor. (Contributed by Skip " "Montanaro.)" msgstr "" #: ../../whatsnew/2.5.rst:1292 msgid "" "The :mod:`csv` module, which parses files in comma-separated value format, " -"received several enhancements and a number of bugfixes. You can now set the" -" maximum size in bytes of a field by calling the " -"``csv.field_size_limit(new_limit)`` function; omitting the *new_limit* " -"argument will return the currently-set limit. The :class:`reader` class now" -" has a :attr:`line_num` attribute that counts the number of physical lines " -"read from the source; records can span multiple physical lines, so " -":attr:`line_num` is not the same as the number of records read." +"received several enhancements and a number of bugfixes. You can now set the " +"maximum size in bytes of a field by calling the ``csv." +"field_size_limit(new_limit)`` function; omitting the *new_limit* argument " +"will return the currently-set limit. The :class:`reader` class now has a :" +"attr:`line_num` attribute that counts the number of physical lines read from " +"the source; records can span multiple physical lines, so :attr:`line_num` is " +"not the same as the number of records read." msgstr "" #: ../../whatsnew/2.5.rst:1301 @@ -1585,19 +1582,18 @@ msgstr "" #: ../../whatsnew/2.5.rst:1311 msgid "" -"The :class:`~datetime.datetime` class in the :mod:`datetime` module now has" -" a ``strptime(string, format)`` method for parsing date strings, " -"contributed by Josh Spoerri. It uses the same format characters as " -":func:`time.strptime` and :func:`time.strftime`::" +"The :class:`~datetime.datetime` class in the :mod:`datetime` module now has " +"a ``strptime(string, format)`` method for parsing date strings, contributed " +"by Josh Spoerri. It uses the same format characters as :func:`time.strptime` " +"and :func:`time.strftime`::" msgstr "" #: ../../whatsnew/2.5.rst:1321 msgid "" -"The :meth:`SequenceMatcher.get_matching_blocks` method in the :mod:`difflib`" -" module now guarantees to return a minimal list of blocks describing " -"matching subsequences. Previously, the algorithm would occasionally break a" -" block of matching elements into two list entries. (Enhancement by Tim " -"Peters.)" +"The :meth:`SequenceMatcher.get_matching_blocks` method in the :mod:`difflib` " +"module now guarantees to return a minimal list of blocks describing matching " +"subsequences. Previously, the algorithm would occasionally break a block of " +"matching elements into two list entries. (Enhancement by Tim Peters.)" msgstr "" #: ../../whatsnew/2.5.rst:1326 @@ -1609,8 +1605,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:1330 msgid "" -"An *encoding* parameter was added to the :func:`testfile` function and the " -":class:`DocFileSuite` class to specify the file's encoding. This makes it " +"An *encoding* parameter was added to the :func:`testfile` function and the :" +"class:`DocFileSuite` class to specify the file's encoding. This makes it " "easier to use non-ASCII characters in tests contained within a docstring. " "(Contributed by Bjorn Tillenius.)" msgstr "" @@ -1625,21 +1621,21 @@ msgstr "" msgid "" "The :mod:`fileinput` module was made more flexible. Unicode filenames are " "now supported, and a *mode* parameter that defaults to ``\"r\"`` was added " -"to the :func:`input` function to allow opening files in binary or " -":term:`universal newlines` mode. Another new parameter, *openhook*, lets " -"you use a function other than :func:`open` to open the input files. Once " -"you're iterating over the set of files, the :class:`FileInput` object's new " -":meth:`fileno` returns the file descriptor for the currently opened file. " +"to the :func:`input` function to allow opening files in binary or :term:" +"`universal newlines` mode. Another new parameter, *openhook*, lets you use " +"a function other than :func:`open` to open the input files. Once you're " +"iterating over the set of files, the :class:`FileInput` object's new :meth:" +"`fileno` returns the file descriptor for the currently opened file. " "(Contributed by Georg Brandl.)" msgstr "" #: ../../whatsnew/2.5.rst:1354 msgid "" -"In the :mod:`gc` module, the new :func:`get_count` function returns a " -"3-tuple containing the current collection counts for the three GC " -"generations. This is accounting information for the garbage collector; when" -" these counts reach a specified threshold, a garbage collection sweep will " -"be made. The existing :func:`gc.collect` function now takes an optional " +"In the :mod:`gc` module, the new :func:`get_count` function returns a 3-" +"tuple containing the current collection counts for the three GC " +"generations. This is accounting information for the garbage collector; when " +"these counts reach a specified threshold, a garbage collection sweep will be " +"made. The existing :func:`gc.collect` function now takes an optional " "*generation* argument of 0, 1, or 2 to specify which generation to collect. " "(Contributed by Barry Warsaw.)" msgstr "" @@ -1658,33 +1654,32 @@ msgstr "(Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.5.rst:1375 msgid "" -"The :func:`itertools.islice` function now accepts ``None`` for the start and" -" step arguments. This makes it more compatible with the attributes of slice" -" objects, so that you can now write the following::" +"The :func:`itertools.islice` function now accepts ``None`` for the start and " +"step arguments. This makes it more compatible with the attributes of slice " +"objects, so that you can now write the following::" msgstr "" #: ../../whatsnew/2.5.rst:1384 msgid "" "The :func:`format` function in the :mod:`locale` module has been modified " -"and two new functions were added, :func:`format_string` and " -":func:`currency`." +"and two new functions were added, :func:`format_string` and :func:`currency`." msgstr "" #: ../../whatsnew/2.5.rst:1387 msgid "" "The :func:`format` function's *val* parameter could previously be a string " -"as long as no more than one %char specifier appeared; now the parameter must" -" be exactly one %char specifier with no surrounding text. An optional " +"as long as no more than one %char specifier appeared; now the parameter must " +"be exactly one %char specifier with no surrounding text. An optional " "*monetary* parameter was also added which, if ``True``, will use the " -"locale's rules for formatting currency in placing a separator between groups" -" of three digits." +"locale's rules for formatting currency in placing a separator between groups " +"of three digits." msgstr "" #: ../../whatsnew/2.5.rst:1393 msgid "" -"To format strings with multiple %char specifiers, use the new " -":func:`format_string` function that works like :func:`format` but also " -"supports mixing %char specifiers with arbitrary text." +"To format strings with multiple %char specifiers, use the new :func:" +"`format_string` function that works like :func:`format` but also supports " +"mixing %char specifiers with arbitrary text." msgstr "" #: ../../whatsnew/2.5.rst:1397 @@ -1703,9 +1698,9 @@ msgid "" "to modify mailboxes in addition to reading them. A new set of classes that " "include :class:`mbox`, :class:`MH`, and :class:`Maildir` are used to read " "mailboxes, and have an ``add(message)`` method to add messages, " -"``remove(key)`` to remove messages, and :meth:`lock`/:meth:`unlock` to " -"lock/unlock the mailbox. The following example converts a maildir-format " -"mailbox into an mbox-format one::" +"``remove(key)`` to remove messages, and :meth:`lock`/:meth:`unlock` to lock/" +"unlock the mailbox. The following example converts a maildir-format mailbox " +"into an mbox-format one::" msgstr "" #: ../../whatsnew/2.5.rst:1422 @@ -1716,79 +1711,79 @@ msgstr "" #: ../../whatsnew/2.5.rst:1425 msgid "" -"New module: the :mod:`msilib` module allows creating Microsoft Installer " -":file:`.msi` files and CAB files. Some support for reading the :file:`.msi`" -" database is also included. (Contributed by Martin von Löwis.)" +"New module: the :mod:`msilib` module allows creating Microsoft Installer :" +"file:`.msi` files and CAB files. Some support for reading the :file:`.msi` " +"database is also included. (Contributed by Martin von Löwis.)" msgstr "" #: ../../whatsnew/2.5.rst:1429 msgid "" "The :mod:`nis` module now supports accessing domains other than the system " -"default domain by supplying a *domain* argument to the :func:`nis.match` and" -" :func:`nis.maps` functions. (Contributed by Ben Bell.)" +"default domain by supplying a *domain* argument to the :func:`nis.match` " +"and :func:`nis.maps` functions. (Contributed by Ben Bell.)" msgstr "" #: ../../whatsnew/2.5.rst:1433 msgid "" "The :mod:`operator` module's :func:`itemgetter` and :func:`attrgetter` " -"functions now support multiple fields. A call such as " -"``operator.attrgetter('a', 'b')`` will return a function that retrieves the" -" :attr:`a` and :attr:`b` attributes. Combining this new feature with the " -":meth:`sort` method's ``key`` parameter lets you easily sort lists using " -"multiple fields. (Contributed by Raymond Hettinger.)" +"functions now support multiple fields. A call such as ``operator." +"attrgetter('a', 'b')`` will return a function that retrieves the :attr:`a` " +"and :attr:`b` attributes. Combining this new feature with the :meth:`sort` " +"method's ``key`` parameter lets you easily sort lists using multiple " +"fields. (Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.5.rst:1440 msgid "" "The :mod:`optparse` module was updated to version 1.5.1 of the Optik " -"library. The :class:`OptionParser` class gained an :attr:`epilog` attribute," -" a string that will be printed after the help message, and a :meth:`destroy`" -" method to break reference cycles created by the object. (Contributed by " -"Greg Ward.)" +"library. The :class:`OptionParser` class gained an :attr:`epilog` attribute, " +"a string that will be printed after the help message, and a :meth:`destroy` " +"method to break reference cycles created by the object. (Contributed by Greg " +"Ward.)" msgstr "" #: ../../whatsnew/2.5.rst:1445 msgid "" -"The :mod:`os` module underwent several changes. The " -":attr:`stat_float_times` variable now defaults to true, meaning that " -":func:`os.stat` will now return time values as floats. (This doesn't " -"necessarily mean that :func:`os.stat` will return times that are precise to " -"fractions of a second; not all systems support such precision.)" +"The :mod:`os` module underwent several changes. The :attr:" +"`stat_float_times` variable now defaults to true, meaning that :func:`os." +"stat` will now return time values as floats. (This doesn't necessarily mean " +"that :func:`os.stat` will return times that are precise to fractions of a " +"second; not all systems support such precision.)" msgstr "" #: ../../whatsnew/2.5.rst:1451 msgid "" -"Constants named :attr:`os.SEEK_SET`, :attr:`os.SEEK_CUR`, and " -":attr:`os.SEEK_END` have been added; these are the parameters to the " -":func:`os.lseek` function. Two new constants for locking are " -":attr:`os.O_SHLOCK` and :attr:`os.O_EXLOCK`." +"Constants named :attr:`os.SEEK_SET`, :attr:`os.SEEK_CUR`, and :attr:`os." +"SEEK_END` have been added; these are the parameters to the :func:`os.lseek` " +"function. Two new constants for locking are :attr:`os.O_SHLOCK` and :attr:" +"`os.O_EXLOCK`." msgstr "" #: ../../whatsnew/2.5.rst:1456 msgid "" "Two new functions, :func:`wait3` and :func:`wait4`, were added. They're " -"similar the :func:`waitpid` function which waits for a child process to exit" -" and returns a tuple of the process ID and its exit status, but " -":func:`wait3` and :func:`wait4` return additional information. " -":func:`wait3` doesn't take a process ID as input, so it waits for any child " -"process to exit and returns a 3-tuple of *process-id*, *exit-status*, " -"*resource-usage* as returned from the :func:`resource.getrusage` function. " -"``wait4(pid)`` does take a process ID. (Contributed by Chad J. Schroeder.)" +"similar the :func:`waitpid` function which waits for a child process to exit " +"and returns a tuple of the process ID and its exit status, but :func:`wait3` " +"and :func:`wait4` return additional information. :func:`wait3` doesn't take " +"a process ID as input, so it waits for any child process to exit and returns " +"a 3-tuple of *process-id*, *exit-status*, *resource-usage* as returned from " +"the :func:`resource.getrusage` function. ``wait4(pid)`` does take a process " +"ID. (Contributed by Chad J. Schroeder.)" msgstr "" #: ../../whatsnew/2.5.rst:1465 msgid "" "On FreeBSD, the :func:`os.stat` function now returns times with nanosecond " -"resolution, and the returned object now has :attr:`st_gen` and " -":attr:`st_birthtime`. The :attr:`st_flags` attribute is also available, if " -"the platform supports it. (Contributed by Antti Louko and Diego Pettenò.)" +"resolution, and the returned object now has :attr:`st_gen` and :attr:" +"`st_birthtime`. The :attr:`st_flags` attribute is also available, if the " +"platform supports it. (Contributed by Antti Louko and Diego Pettenò.)" msgstr "" #: ../../whatsnew/2.5.rst:1472 msgid "" -"The Python debugger provided by the :mod:`pdb` module can now store lists of" -" commands to execute when a breakpoint is reached and execution stops. Once" -" breakpoint #1 has been created, enter ``commands 1`` and enter a series of " +"The Python debugger provided by the :mod:`pdb` module can now store lists of " +"commands to execute when a breakpoint is reached and execution stops. Once " +"breakpoint #1 has been created, enter ``commands 1`` and enter a series of " "commands to be executed, finishing the list with ``end``. The command list " "can include commands that resume execution, such as ``continue`` or " "``next``. (Contributed by Grégoire Dooms.)" @@ -1796,8 +1791,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:1481 msgid "" -"The :mod:`pickle` and :mod:`cPickle` modules no longer accept a return value" -" of ``None`` from the :meth:`__reduce__` method; the method must return a " +"The :mod:`pickle` and :mod:`cPickle` modules no longer accept a return value " +"of ``None`` from the :meth:`__reduce__` method; the method must return a " "tuple of arguments instead. The ability to return ``None`` was deprecated " "in Python 2.4, so this completes the removal of the feature." msgstr "" @@ -1811,9 +1806,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:1490 msgid "" -"The pybench benchmark suite by Marc-André Lemburg is now included in the " -":file:`Tools/pybench` directory. The pybench suite is an improvement on the" -" commonly used :file:`pystone.py` program because pybench provides a more " +"The pybench benchmark suite by Marc-André Lemburg is now included in the :" +"file:`Tools/pybench` directory. The pybench suite is an improvement on the " +"commonly used :file:`pystone.py` program because pybench provides a more " "detailed measurement of the interpreter's speed. It times particular " "operations such as function calls, tuple slicing, method lookups, and " "numeric operations, instead of performing many different operations and " @@ -1829,42 +1824,42 @@ msgstr "" #: ../../whatsnew/2.5.rst:1501 msgid "" "The :class:`~queue.Queue` class provided by the :mod:`Queue` module gained " -"two new methods. :meth:`join` blocks until all items in the queue have been" -" retrieved and all processing work on the items have been completed. " -"Worker threads call the other new method, :meth:`task_done`, to signal that" -" processing for an item has been completed. (Contributed by Raymond " +"two new methods. :meth:`join` blocks until all items in the queue have been " +"retrieved and all processing work on the items have been completed. Worker " +"threads call the other new method, :meth:`task_done`, to signal that " +"processing for an item has been completed. (Contributed by Raymond " "Hettinger.)" msgstr "" #: ../../whatsnew/2.5.rst:1507 msgid "" "The old :mod:`regex` and :mod:`regsub` modules, which have been deprecated " -"ever since Python 2.0, have finally been deleted. Other deleted modules: " -":mod:`statcache`, :mod:`tzparse`, :mod:`whrandom`." +"ever since Python 2.0, have finally been deleted. Other deleted modules: :" +"mod:`statcache`, :mod:`tzparse`, :mod:`whrandom`." msgstr "" #: ../../whatsnew/2.5.rst:1511 msgid "" "Also deleted: the :file:`lib-old` directory, which includes ancient modules " -"such as :mod:`dircmp` and :mod:`ni`, was removed. :file:`lib-old` wasn't on" -" the default ``sys.path``, so unless your programs explicitly added the " +"such as :mod:`dircmp` and :mod:`ni`, was removed. :file:`lib-old` wasn't on " +"the default ``sys.path``, so unless your programs explicitly added the " "directory to ``sys.path``, this removal shouldn't affect your code." msgstr "" #: ../../whatsnew/2.5.rst:1516 msgid "" -"The :mod:`rlcompleter` module is no longer dependent on importing the " -":mod:`readline` module and therefore now works on non-Unix platforms. (Patch" -" from Robert Kiendl.)" +"The :mod:`rlcompleter` module is no longer dependent on importing the :mod:" +"`readline` module and therefore now works on non-Unix platforms. (Patch from " +"Robert Kiendl.)" msgstr "" #: ../../whatsnew/2.5.rst:1522 msgid "" -"The :mod:`SimpleXMLRPCServer` and :mod:`DocXMLRPCServer` classes now have a" -" :attr:`rpc_paths` attribute that constrains XML-RPC operations to a limited" -" set of URL paths; the default is to allow only ``'/'`` and ``'/RPC2'``. " -"Setting :attr:`rpc_paths` to ``None`` or an empty tuple disables this path " -"checking." +"The :mod:`SimpleXMLRPCServer` and :mod:`DocXMLRPCServer` classes now have " +"a :attr:`rpc_paths` attribute that constrains XML-RPC operations to a " +"limited set of URL paths; the default is to allow only ``'/'`` and ``'/" +"RPC2'``. Setting :attr:`rpc_paths` to ``None`` or an empty tuple disables " +"this path checking." msgstr "" #: ../../whatsnew/2.5.rst:1529 @@ -1872,9 +1867,9 @@ msgid "" "The :mod:`socket` module now supports :const:`AF_NETLINK` sockets on Linux, " "thanks to a patch from Philippe Biondi. Netlink sockets are a Linux-" "specific mechanism for communications between a user-space process and " -"kernel code; an introductory article about them is at " -"https://www.linuxjournal.com/article/7356. In Python code, netlink addresses" -" are represented as a tuple of 2 integers, ``(pid, group_mask)``." +"kernel code; an introductory article about them is at https://www." +"linuxjournal.com/article/7356. In Python code, netlink addresses are " +"represented as a tuple of 2 integers, ``(pid, group_mask)``." msgstr "" #: ../../whatsnew/2.5.rst:1536 @@ -1888,9 +1883,9 @@ msgstr "" #: ../../whatsnew/2.5.rst:1541 msgid "" -"Socket objects also gained :meth:`getfamily`, :meth:`gettype`, and " -":meth:`getproto` accessor methods to retrieve the family, type, and protocol" -" values for the socket." +"Socket objects also gained :meth:`getfamily`, :meth:`gettype`, and :meth:" +"`getproto` accessor methods to retrieve the family, type, and protocol " +"values for the socket." msgstr "" #: ../../whatsnew/2.5.rst:1545 @@ -1901,11 +1896,11 @@ msgstr "" #: ../../whatsnew/2.5.rst:1548 msgid "" -"The :mod:`struct` is now faster because it compiles format strings into " -":class:`Struct` objects with :meth:`pack` and :meth:`unpack` methods. This " +"The :mod:`struct` is now faster because it compiles format strings into :" +"class:`Struct` objects with :meth:`pack` and :meth:`unpack` methods. This " "is similar to how the :mod:`re` module lets you create compiled regular " -"expression objects. You can still use the module-level :func:`pack` and " -":func:`unpack` functions; they'll create :class:`Struct` objects and cache " +"expression objects. You can still use the module-level :func:`pack` and :" +"func:`unpack` functions; they'll create :class:`Struct` objects and cache " "them. Or you can use :class:`Struct` instances directly::" msgstr "" @@ -1927,35 +1922,35 @@ msgstr "" #: ../../whatsnew/2.5.rst:1569 msgid "" "The Python developers switched from CVS to Subversion during the 2.5 " -"development process. Information about the exact build version is available" -" as the ``sys.subversion`` variable, a 3-tuple of ``(interpreter-name, " -"branch-name, revision-range)``. For example, at the time of writing my copy" -" of 2.5 was reporting ``('CPython', 'trunk', '45313:45315')``." +"development process. Information about the exact build version is available " +"as the ``sys.subversion`` variable, a 3-tuple of ``(interpreter-name, branch-" +"name, revision-range)``. For example, at the time of writing my copy of 2.5 " +"was reporting ``('CPython', 'trunk', '45313:45315')``." msgstr "" #: ../../whatsnew/2.5.rst:1575 msgid "" -"This information is also available to C extensions via the " -":c:func:`Py_GetBuildInfo` function that returns a string of build " -"information like this: ``\"trunk:45355:45356M, Apr 13 2006, 07:42:19\"``. " -"(Contributed by Barry Warsaw.)" +"This information is also available to C extensions via the :c:func:" +"`Py_GetBuildInfo` function that returns a string of build information like " +"this: ``\"trunk:45355:45356M, Apr 13 2006, 07:42:19\"``. (Contributed by " +"Barry Warsaw.)" msgstr "" #: ../../whatsnew/2.5.rst:1580 msgid "" -"Another new function, :func:`sys._current_frames`, returns the current stack" -" frames for all running threads as a dictionary mapping thread identifiers " -"to the topmost stack frame currently active in that thread at the time the " +"Another new function, :func:`sys._current_frames`, returns the current stack " +"frames for all running threads as a dictionary mapping thread identifiers to " +"the topmost stack frame currently active in that thread at the time the " "function is called. (Contributed by Tim Peters.)" msgstr "" #: ../../whatsnew/2.5.rst:1585 msgid "" -"The :class:`TarFile` class in the :mod:`tarfile` module now has an " -":meth:`extractall` method that extracts all members from the archive into " -"the current working directory. It's also possible to set a different " -"directory as the extraction target, and to unpack only a subset of the " -"archive's members." +"The :class:`TarFile` class in the :mod:`tarfile` module now has an :meth:" +"`extractall` method that extracts all members from the archive into the " +"current working directory. It's also possible to set a different directory " +"as the extraction target, and to unpack only a subset of the archive's " +"members." msgstr "" #: ../../whatsnew/2.5.rst:1590 @@ -1968,10 +1963,9 @@ msgstr "" msgid "" "The :mod:`threading` module now lets you set the stack size used when new " "threads are created. The ``stack_size([*size*])`` function returns the " -"currently configured stack size, and supplying the optional *size* parameter" -" sets a new value. Not all platforms support changing the stack size, but " -"Windows, POSIX threading, and OS/2 all do. (Contributed by Andrew " -"MacIntyre.)" +"currently configured stack size, and supplying the optional *size* parameter " +"sets a new value. Not all platforms support changing the stack size, but " +"Windows, POSIX threading, and OS/2 all do. (Contributed by Andrew MacIntyre.)" msgstr "" #: ../../whatsnew/2.5.rst:1603 @@ -1986,10 +1980,11 @@ msgid "" "New module: the :mod:`uuid` module generates universally unique " "identifiers (UUIDs) according to :rfc:`4122`. The RFC defines several " "different UUID versions that are generated from a starting string, from " -"system properties, or purely randomly. This module contains a :class:`UUID`" -" class and functions named :func:`uuid1`, :func:`uuid3`, :func:`uuid4`, " -"and :func:`uuid5` to generate different versions of UUID. (Version 2 UUIDs" -" are not specified in :rfc:`4122` and are not supported by this module.) ::" +"system properties, or purely randomly. This module contains a :class:`UUID` " +"class and functions named :func:`uuid1`, :func:`uuid3`, :func:`uuid4`, " +"and :func:`uuid5` to generate different versions of UUID. (Version 2 " +"UUIDs are not specified in :rfc:`4122` and are not supported by this " +"module.) ::" msgstr "" #: ../../whatsnew/2.5.rst:1632 @@ -1998,35 +1993,34 @@ msgstr "" #: ../../whatsnew/2.5.rst:1634 msgid "" -"The :mod:`weakref` module's :class:`WeakKeyDictionary` and " -":class:`WeakValueDictionary` types gained new methods for iterating over the" -" weak references contained in the dictionary. :meth:`iterkeyrefs` and " -":meth:`keyrefs` methods were added to :class:`WeakKeyDictionary`, and " -":meth:`itervaluerefs` and :meth:`valuerefs` were added to " -":class:`WeakValueDictionary`. (Contributed by Fred L. Drake, Jr.)" +"The :mod:`weakref` module's :class:`WeakKeyDictionary` and :class:" +"`WeakValueDictionary` types gained new methods for iterating over the weak " +"references contained in the dictionary. :meth:`iterkeyrefs` and :meth:" +"`keyrefs` methods were added to :class:`WeakKeyDictionary`, and :meth:" +"`itervaluerefs` and :meth:`valuerefs` were added to :class:" +"`WeakValueDictionary`. (Contributed by Fred L. Drake, Jr.)" msgstr "" #: ../../whatsnew/2.5.rst:1641 msgid "" "The :mod:`webbrowser` module received a number of enhancements. It's now " "usable as a script with ``python -m webbrowser``, taking a URL as the " -"argument; there are a number of switches to control the behaviour " -"(:option:`!-n` for a new browser window, :option:`!-t` for a new tab). New" -" module-level functions, :func:`open_new` and :func:`open_new_tab`, were " -"added to support this. The module's :func:`open` function supports an " -"additional feature, an *autoraise* parameter that signals whether to raise " -"the open window when possible. A number of additional browsers were added to" -" the supported list such as Firefox, Opera, Konqueror, and elinks. " -"(Contributed by Oleg Broytmann and Georg Brandl.)" +"argument; there are a number of switches to control the behaviour (:option:" +"`!-n` for a new browser window, :option:`!-t` for a new tab). New module-" +"level functions, :func:`open_new` and :func:`open_new_tab`, were added to " +"support this. The module's :func:`open` function supports an additional " +"feature, an *autoraise* parameter that signals whether to raise the open " +"window when possible. A number of additional browsers were added to the " +"supported list such as Firefox, Opera, Konqueror, and elinks. (Contributed " +"by Oleg Broytmann and Georg Brandl.)" msgstr "" #: ../../whatsnew/2.5.rst:1653 msgid "" -"The :mod:`xmlrpclib` module now supports returning " -":class:`~datetime.datetime` objects for the XML-RPC date type. Supply " -"``use_datetime=True`` to the :func:`loads` function or the " -":class:`Unmarshaller` class to enable this feature. (Contributed by Skip " -"Montanaro.)" +"The :mod:`xmlrpclib` module now supports returning :class:`~datetime." +"datetime` objects for the XML-RPC date type. Supply ``use_datetime=True`` " +"to the :func:`loads` function or the :class:`Unmarshaller` class to enable " +"this feature. (Contributed by Skip Montanaro.)" msgstr "" #: ../../whatsnew/2.5.rst:1660 @@ -2059,22 +2053,22 @@ msgstr "" #: ../../whatsnew/2.5.rst:1687 msgid "" -"To load a shared library or DLL, you must create an instance of the " -":class:`CDLL` class and provide the name or path of the shared library or " -"DLL. Once that's done, you can call arbitrary functions by accessing them as" -" attributes of the :class:`CDLL` object. ::" +"To load a shared library or DLL, you must create an instance of the :class:" +"`CDLL` class and provide the name or path of the shared library or DLL. Once " +"that's done, you can call arbitrary functions by accessing them as " +"attributes of the :class:`CDLL` object. ::" msgstr "" #: ../../whatsnew/2.5.rst:1697 msgid "" -"Type constructors for the various C types are provided: :func:`c_int`, " -":func:`c_float`, :func:`c_double`, :func:`c_char_p` (equivalent to " -":c:type:`char \\*`), and so forth. Unlike Python's types, the C versions " -"are all mutable; you can assign to their :attr:`value` attribute to change " -"the wrapped value. Python integers and strings will be automatically " -"converted to the corresponding C types, but for other types you must call " -"the correct type constructor. (And I mean *must*; getting it wrong will " -"often result in the interpreter crashing with a segmentation fault.)" +"Type constructors for the various C types are provided: :func:`c_int`, :func:" +"`c_float`, :func:`c_double`, :func:`c_char_p` (equivalent to :c:type:`char " +"\\*`), and so forth. Unlike Python's types, the C versions are all mutable; " +"you can assign to their :attr:`value` attribute to change the wrapped " +"value. Python integers and strings will be automatically converted to the " +"corresponding C types, but for other types you must call the correct type " +"constructor. (And I mean *must*; getting it wrong will often result in the " +"interpreter crashing with a segmentation fault.)" msgstr "" #: ../../whatsnew/2.5.rst:1706 @@ -2087,31 +2081,31 @@ msgstr "" #: ../../whatsnew/2.5.rst:1715 msgid "" -"C functions are assumed to return integers, but you can set the " -":attr:`restype` attribute of the function object to change this::" +"C functions are assumed to return integers, but you can set the :attr:" +"`restype` attribute of the function object to change this::" msgstr "" #: ../../whatsnew/2.5.rst:1724 msgid "" -":mod:`ctypes` also provides a wrapper for Python's C API as the " -"``ctypes.pythonapi`` object. This object does *not* release the global " -"interpreter lock before calling a function, because the lock must be held " -"when calling into the interpreter's code. There's a :class:`py_object()` " -"type constructor that will create a :c:type:`PyObject \\*` pointer. A " -"simple usage::" +":mod:`ctypes` also provides a wrapper for Python's C API as the ``ctypes." +"pythonapi`` object. This object does *not* release the global interpreter " +"lock before calling a function, because the lock must be held when calling " +"into the interpreter's code. There's a :class:`py_object()` type " +"constructor that will create a :c:type:`PyObject \\*` pointer. A simple " +"usage::" msgstr "" #: ../../whatsnew/2.5.rst:1737 msgid "" -"Don't forget to use :class:`py_object()`; if it's omitted you end up with a" -" segmentation fault." +"Don't forget to use :class:`py_object()`; if it's omitted you end up with a " +"segmentation fault." msgstr "" #: ../../whatsnew/2.5.rst:1740 msgid "" ":mod:`ctypes` has been around for a while, but people still write and " -"distribution hand-coded extension modules because you can't rely on " -":mod:`ctypes` being present. Perhaps developers will begin to write Python " +"distribution hand-coded extension modules because you can't rely on :mod:" +"`ctypes` being present. Perhaps developers will begin to write Python " "wrappers atop a library accessed through :mod:`ctypes` instead of extension " "modules, now that :mod:`ctypes` is included with core Python." msgstr "" @@ -2143,17 +2137,17 @@ msgstr "" #: ../../whatsnew/2.5.rst:1768 msgid "" -"The rest of this section will provide a brief overview of using ElementTree." -" Full documentation for ElementTree is available at http://effbot.org/zone" -"/element-index.htm." +"The rest of this section will provide a brief overview of using ElementTree. " +"Full documentation for ElementTree is available at http://effbot.org/zone/" +"element-index.htm." msgstr "" #: ../../whatsnew/2.5.rst:1772 msgid "" "ElementTree represents an XML document as a tree of element nodes. The text " "content of the document is stored as the :attr:`text` and :attr:`tail` " -"attributes of (This is one of the major differences between ElementTree and" -" the Document Object Model; in the DOM there are many different types of " +"attributes of (This is one of the major differences between ElementTree and " +"the Document Object Model; in the DOM there are many different types of " "node, including :class:`TextNode`.)" msgstr "" @@ -2166,14 +2160,14 @@ msgstr "" #: ../../whatsnew/2.5.rst:1790 msgid "" -"Once you have an :class:`ElementTree` instance, you can call its " -":meth:`getroot` method to get the root :class:`Element` node." +"Once you have an :class:`ElementTree` instance, you can call its :meth:" +"`getroot` method to get the root :class:`Element` node." msgstr "" #: ../../whatsnew/2.5.rst:1793 msgid "" -"There's also an :func:`XML` function that takes a string literal and returns" -" an :class:`Element` node (not an :class:`ElementTree`). This function " +"There's also an :func:`XML` function that takes a string literal and returns " +"an :class:`Element` node (not an :class:`ElementTree`). This function " "provides a tidy way to incorporate XML fragments, approaching the " "convenience of an XML literal::" msgstr "" @@ -2195,7 +2189,7 @@ msgstr "Resultado" #: ../../whatsnew/2.5.rst:1810 msgid "``elem[n]``" -msgstr "" +msgstr "``elem[n]``" #: ../../whatsnew/2.5.rst:1810 msgid "Returns n'th child element." @@ -2203,7 +2197,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1812 msgid "``elem[m:n]``" -msgstr "" +msgstr "``elem[m:n]``" #: ../../whatsnew/2.5.rst:1812 msgid "Returns list of m'th through n'th child elements." @@ -2211,7 +2205,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1815 msgid "``len(elem)``" -msgstr "" +msgstr "``len(elem)``" #: ../../whatsnew/2.5.rst:1815 msgid "Returns number of child elements." @@ -2219,7 +2213,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1817 msgid "``list(elem)``" -msgstr "" +msgstr "``list(elem)``" #: ../../whatsnew/2.5.rst:1817 msgid "Returns list of child elements." @@ -2227,7 +2221,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1819 msgid "``elem.append(elem2)``" -msgstr "" +msgstr "``elem.append(elem2)``" #: ../../whatsnew/2.5.rst:1819 msgid "Adds *elem2* as a child." @@ -2251,7 +2245,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1825 msgid "``elem.keys()``" -msgstr "" +msgstr "``elem.keys()``" #: ../../whatsnew/2.5.rst:1825 msgid "Returns list of attribute names." @@ -2259,7 +2253,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1827 msgid "``elem.get(name)``" -msgstr "" +msgstr "``elem.get(name)``" #: ../../whatsnew/2.5.rst:1827 msgid "Returns value of attribute *name*." @@ -2275,7 +2269,7 @@ msgstr "" #: ../../whatsnew/2.5.rst:1831 msgid "``elem.attrib``" -msgstr "" +msgstr "``elem.attrib``" #: ../../whatsnew/2.5.rst:1831 msgid "Retrieves the dictionary containing attributes." @@ -2291,8 +2285,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:1837 msgid "" -"Comments and processing instructions are also represented as " -":class:`Element` nodes. To check if a node is a comment or processing " +"Comments and processing instructions are also represented as :class:" +"`Element` nodes. To check if a node is a comment or processing " "instructions::" msgstr "" @@ -2333,10 +2327,10 @@ msgstr "" #: ../../whatsnew/2.5.rst:1879 msgid "" -"A new :mod:`hashlib` module, written by Gregory P. Smith, has been added to" -" replace the :mod:`md5` and :mod:`sha` modules. :mod:`hashlib` adds support" -" for additional secure hashes (SHA-224, SHA-256, SHA-384, and SHA-512). When" -" available, the module uses OpenSSL for fast platform optimized " +"A new :mod:`hashlib` module, written by Gregory P. Smith, has been added to " +"replace the :mod:`md5` and :mod:`sha` modules. :mod:`hashlib` adds support " +"for additional secure hashes (SHA-224, SHA-256, SHA-384, and SHA-512). When " +"available, the module uses OpenSSL for fast platform optimized " "implementations of algorithms." msgstr "" @@ -2377,10 +2371,10 @@ msgstr "" msgid "" "SQLite is a C library that provides a lightweight disk-based database that " "doesn't require a separate server process and allows accessing the database " -"using a nonstandard variant of the SQL query language. Some applications can" -" use SQLite for internal data storage. It's also possible to prototype an " -"application using SQLite and then port the code to a larger database such as" -" PostgreSQL or Oracle." +"using a nonstandard variant of the SQL query language. Some applications can " +"use SQLite for internal data storage. It's also possible to prototype an " +"application using SQLite and then port the code to a larger database such as " +"PostgreSQL or Oracle." msgstr "" #: ../../whatsnew/2.5.rst:1944 @@ -2393,16 +2387,16 @@ msgstr "" msgid "" "If you're compiling the Python source yourself, note that the source tree " "doesn't include the SQLite code, only the wrapper module. You'll need to " -"have the SQLite libraries and headers installed before compiling Python, and" -" the build process will compile the module when the necessary headers are " +"have the SQLite libraries and headers installed before compiling Python, and " +"the build process will compile the module when the necessary headers are " "available." msgstr "" #: ../../whatsnew/2.5.rst:1952 msgid "" "To use the module, you must first create a :class:`Connection` object that " -"represents the database. Here the data will be stored in the " -":file:`/tmp/example` file::" +"represents the database. Here the data will be stored in the :file:`/tmp/" +"example` file::" msgstr "" #: ../../whatsnew/2.5.rst:1958 @@ -2448,8 +2442,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:2016 msgid "" -"For more information about the SQL dialect supported by SQLite, see " -"https://www.sqlite.org." +"For more information about the SQL dialect supported by SQLite, see https://" +"www.sqlite.org." msgstr "" #: ../../whatsnew/2.5.rst:2023 @@ -2489,16 +2483,16 @@ msgstr "" #: ../../whatsnew/2.5.rst:2042 msgid "" "The Web Server Gateway Interface (WSGI) v1.0 defines a standard interface " -"between web servers and Python web applications and is described in " -":pep:`333`. The :mod:`wsgiref` package is a reference implementation of the " -"WSGI specification." +"between web servers and Python web applications and is described in :pep:" +"`333`. The :mod:`wsgiref` package is a reference implementation of the WSGI " +"specification." msgstr "" #: ../../whatsnew/2.5.rst:2049 msgid "" "The package includes a basic HTTP server that will run a WSGI application; " -"this server is useful for debugging but isn't intended for production use." -" Setting up a server takes only a few lines of code::" +"this server is useful for debugging but isn't intended for production use. " +"Setting up a server takes only a few lines of code::" msgstr "" #: ../../whatsnew/2.5.rst:2069 @@ -2528,14 +2522,14 @@ msgstr "Changes to Python's build process and to the C API include:" #: ../../whatsnew/2.5.rst:2084 msgid "" "The Python source tree was converted from CVS to Subversion, in a complex " -"migration procedure that was supervised and flawlessly carried out by Martin" -" von Löwis. The procedure was developed as :pep:`347`." +"migration procedure that was supervised and flawlessly carried out by Martin " +"von Löwis. The procedure was developed as :pep:`347`." msgstr "" #: ../../whatsnew/2.5.rst:2088 msgid "" -"Coverity, a company that markets a source code analysis tool called Prevent," -" provided the results of their examination of the Python source code. The " +"Coverity, a company that markets a source code analysis tool called Prevent, " +"provided the results of their examination of the Python source code. The " "analysis found about 60 bugs that were quickly fixed. Many of the bugs " "were refcounting problems, often occurring in error-handling code. See " "https://scan.coverity.com for the statistics." @@ -2544,47 +2538,47 @@ msgstr "" #: ../../whatsnew/2.5.rst:2094 msgid "" "The largest change to the C API came from :pep:`353`, which modifies the " -"interpreter to use a :c:type:`Py_ssize_t` type definition instead of " -":c:type:`int`. See the earlier section :ref:`pep-353` for a discussion of " -"this change." +"interpreter to use a :c:type:`Py_ssize_t` type definition instead of :c:type:" +"`int`. See the earlier section :ref:`pep-353` for a discussion of this " +"change." msgstr "" #: ../../whatsnew/2.5.rst:2099 msgid "" "The design of the bytecode compiler has changed a great deal, no longer " -"generating bytecode by traversing the parse tree. Instead the parse tree is" -" converted to an abstract syntax tree (or AST), and it is the abstract " +"generating bytecode by traversing the parse tree. Instead the parse tree is " +"converted to an abstract syntax tree (or AST), and it is the abstract " "syntax tree that's traversed to produce the bytecode." msgstr "" #: ../../whatsnew/2.5.rst:2104 msgid "" -"It's possible for Python code to obtain AST objects by using the " -":func:`compile` built-in and specifying ``_ast.PyCF_ONLY_AST`` as the value " -"of the *flags* parameter::" +"It's possible for Python code to obtain AST objects by using the :func:" +"`compile` built-in and specifying ``_ast.PyCF_ONLY_AST`` as the value of " +"the *flags* parameter::" msgstr "" #: ../../whatsnew/2.5.rst:2117 msgid "" -"No official documentation has been written for the AST code yet, but " -":pep:`339` discusses the design. To start learning about the code, read the" -" definition of the various AST nodes in :file:`Parser/Python.asdl`. A " -"Python script reads this file and generates a set of C structure definitions" -" in :file:`Include/Python-ast.h`. The :c:func:`PyParser_ASTFromString` and " -":c:func:`PyParser_ASTFromFile`, defined in :file:`Include/pythonrun.h`, take" -" Python source as input and return the root of an AST representing the " -"contents. This AST can then be turned into a code object by " -":c:func:`PyAST_Compile`. For more information, read the source code, and " -"then ask questions on python-dev." +"No official documentation has been written for the AST code yet, but :pep:" +"`339` discusses the design. To start learning about the code, read the " +"definition of the various AST nodes in :file:`Parser/Python.asdl`. A Python " +"script reads this file and generates a set of C structure definitions in :" +"file:`Include/Python-ast.h`. The :c:func:`PyParser_ASTFromString` and :c:" +"func:`PyParser_ASTFromFile`, defined in :file:`Include/pythonrun.h`, take " +"Python source as input and return the root of an AST representing the " +"contents. This AST can then be turned into a code object by :c:func:" +"`PyAST_Compile`. For more information, read the source code, and then ask " +"questions on python-dev." msgstr "" #: ../../whatsnew/2.5.rst:2127 msgid "" -"The AST code was developed under Jeremy Hylton's management, and implemented" -" by (in alphabetical order) Brett Cannon, Nick Coghlan, Grant Edwards, John " +"The AST code was developed under Jeremy Hylton's management, and implemented " +"by (in alphabetical order) Brett Cannon, Nick Coghlan, Grant Edwards, John " "Ehresman, Kurt Kaiser, Neal Norwitz, Tim Peters, Armin Rigo, and Neil " -"Schemenauer, plus the participants in a number of AST sprints at conferences" -" such as PyCon." +"Schemenauer, plus the participants in a number of AST sprints at conferences " +"such as PyCon." msgstr "" #: ../../whatsnew/2.5.rst:2136 @@ -2601,32 +2595,32 @@ msgstr "" #: ../../whatsnew/2.5.rst:2144 msgid "" "Note that this change means extension modules must be more careful when " -"allocating memory. Python's API has many different functions for allocating" -" memory that are grouped into families. For example, " -":c:func:`PyMem_Malloc`, :c:func:`PyMem_Realloc`, and :c:func:`PyMem_Free` " -"are one family that allocates raw memory, while :c:func:`PyObject_Malloc`, " -":c:func:`PyObject_Realloc`, and :c:func:`PyObject_Free` are another family " -"that's supposed to be used for creating Python objects." +"allocating memory. Python's API has many different functions for allocating " +"memory that are grouped into families. For example, :c:func:" +"`PyMem_Malloc`, :c:func:`PyMem_Realloc`, and :c:func:`PyMem_Free` are one " +"family that allocates raw memory, while :c:func:`PyObject_Malloc`, :c:func:" +"`PyObject_Realloc`, and :c:func:`PyObject_Free` are another family that's " +"supposed to be used for creating Python objects." msgstr "" #: ../../whatsnew/2.5.rst:2152 msgid "" -"Previously these different families all reduced to the platform's " -":c:func:`malloc` and :c:func:`free` functions. This meant it didn't matter" -" if you got things wrong and allocated memory with the :c:func:`PyMem` " -"function but freed it with the :c:func:`PyObject` function. With 2.5's " -"changes to obmalloc, these families now do different things and mismatches " -"will probably result in a segfault. You should carefully test your C " -"extension modules with Python 2.5." +"Previously these different families all reduced to the platform's :c:func:" +"`malloc` and :c:func:`free` functions. This meant it didn't matter if you " +"got things wrong and allocated memory with the :c:func:`PyMem` function but " +"freed it with the :c:func:`PyObject` function. With 2.5's changes to " +"obmalloc, these families now do different things and mismatches will " +"probably result in a segfault. You should carefully test your C extension " +"modules with Python 2.5." msgstr "" #: ../../whatsnew/2.5.rst:2159 msgid "" -"The built-in set types now have an official C API. Call :c:func:`PySet_New`" -" and :c:func:`PyFrozenSet_New` to create a new set, :c:func:`PySet_Add` and " -":c:func:`PySet_Discard` to add and remove elements, and " -":c:func:`PySet_Contains` and :c:func:`PySet_Size` to examine the set's " -"state. (Contributed by Raymond Hettinger.)" +"The built-in set types now have an official C API. Call :c:func:`PySet_New` " +"and :c:func:`PyFrozenSet_New` to create a new set, :c:func:`PySet_Add` and :" +"c:func:`PySet_Discard` to add and remove elements, and :c:func:" +"`PySet_Contains` and :c:func:`PySet_Size` to examine the set's state. " +"(Contributed by Raymond Hettinger.)" msgstr "" #: ../../whatsnew/2.5.rst:2165 @@ -2643,12 +2637,12 @@ msgid "" "current file so that a faster calling convention can be used. " "``Py_LOCAL(type)`` declares the function as returning a value of the " "specified *type* and uses a fast-calling qualifier. " -"``Py_LOCAL_INLINE(type)`` does the same thing and also requests the function" -" be inlined. If :c:func:`PY_LOCAL_AGGRESSIVE` is defined before " -":file:`python.h` is included, a set of more aggressive optimizations are " -"enabled for the module; you should benchmark the results to find out if " -"these optimizations actually make the code faster. (Contributed by Fredrik " -"Lundh at the NeedForSpeed sprint.)" +"``Py_LOCAL_INLINE(type)`` does the same thing and also requests the function " +"be inlined. If :c:func:`PY_LOCAL_AGGRESSIVE` is defined before :file:" +"`python.h` is included, a set of more aggressive optimizations are enabled " +"for the module; you should benchmark the results to find out if these " +"optimizations actually make the code faster. (Contributed by Fredrik Lundh " +"at the NeedForSpeed sprint.)" msgstr "" #: ../../whatsnew/2.5.rst:2181 @@ -2661,9 +2655,9 @@ msgstr "" msgid "" "The :c:func:`PyErr_Warn` function for issuing warnings is now deprecated in " "favour of ``PyErr_WarnEx(category, message, stacklevel)`` which lets you " -"specify the number of stack frames separating this function and the caller." -" A *stacklevel* of 1 is the function calling :c:func:`PyErr_WarnEx`, 2 is " -"the function above that, and so forth. (Added by Neal Norwitz.)" +"specify the number of stack frames separating this function and the caller. " +"A *stacklevel* of 1 is the function calling :c:func:`PyErr_WarnEx`, 2 is the " +"function above that, and so forth. (Added by Neal Norwitz.)" msgstr "" #: ../../whatsnew/2.5.rst:2190 @@ -2676,8 +2670,8 @@ msgstr "" #: ../../whatsnew/2.5.rst:2194 msgid "" "The :c:func:`PyRange_New` function was removed. It was never documented, " -"never used in the core code, and had dangerously lax error checking. In the" -" unlikely case that your extensions were using it, you can replace it by " +"never used in the core code, and had dangerously lax error checking. In the " +"unlikely case that your extensions were using it, you can replace it by " "something like the following::" msgstr "" @@ -2687,14 +2681,14 @@ msgstr "" #: ../../whatsnew/2.5.rst:2210 msgid "" -"MacOS X (10.3 and higher): dynamic loading of modules now uses the " -":c:func:`dlopen` function instead of MacOS-specific functions." +"MacOS X (10.3 and higher): dynamic loading of modules now uses the :c:func:" +"`dlopen` function instead of MacOS-specific functions." msgstr "" #: ../../whatsnew/2.5.rst:2213 msgid "" -"MacOS X: an :option:`!--enable-universalsdk` switch was added to the " -":program:`configure` script that compiles the interpreter as a universal " +"MacOS X: an :option:`!--enable-universalsdk` switch was added to the :" +"program:`configure` script that compiles the interpreter as a universal " "binary able to run on both PowerPC and Intel processors. (Contributed by " "Ronald Oussoren; :issue:`2573`.)" msgstr "" @@ -2726,17 +2720,17 @@ msgstr "" #: ../../whatsnew/2.5.rst:2238 msgid "" -"Previously, the :attr:`gi_frame` attribute of a generator was always a frame" -" object. Because of the :pep:`342` changes described in section " -":ref:`pep-342`, it's now possible for :attr:`gi_frame` to be ``None``." +"Previously, the :attr:`gi_frame` attribute of a generator was always a frame " +"object. Because of the :pep:`342` changes described in section :ref:" +"`pep-342`, it's now possible for :attr:`gi_frame` to be ``None``." msgstr "" #: ../../whatsnew/2.5.rst:2242 msgid "" "A new warning, :class:`UnicodeWarning`, is triggered when you attempt to " "compare a Unicode string and an 8-bit string that can't be converted to " -"Unicode using the default ASCII encoding. Previously such comparisons would" -" raise a :class:`UnicodeDecodeError` exception." +"Unicode using the default ASCII encoding. Previously such comparisons would " +"raise a :class:`UnicodeDecodeError` exception." msgstr "" #: ../../whatsnew/2.5.rst:2247 @@ -2758,34 +2752,34 @@ msgstr "" #: ../../whatsnew/2.5.rst:2256 msgid "" "Library: The :mod:`pickle` and :mod:`cPickle` modules no longer accept a " -"return value of ``None`` from the :meth:`__reduce__` method; the method must" -" return a tuple of arguments instead. The modules also no longer accept the" -" deprecated *bin* keyword parameter." +"return value of ``None`` from the :meth:`__reduce__` method; the method must " +"return a tuple of arguments instead. The modules also no longer accept the " +"deprecated *bin* keyword parameter." msgstr "" #: ../../whatsnew/2.5.rst:2261 msgid "" "Library: The :mod:`SimpleXMLRPCServer` and :mod:`DocXMLRPCServer` classes " -"now have a :attr:`rpc_paths` attribute that constrains XML-RPC operations to" -" a limited set of URL paths; the default is to allow only ``'/'`` and " -"``'/RPC2'``. Setting :attr:`rpc_paths` to ``None`` or an empty tuple " -"disables this path checking." +"now have a :attr:`rpc_paths` attribute that constrains XML-RPC operations to " +"a limited set of URL paths; the default is to allow only ``'/'`` and ``'/" +"RPC2'``. Setting :attr:`rpc_paths` to ``None`` or an empty tuple disables " +"this path checking." msgstr "" #: ../../whatsnew/2.5.rst:2267 msgid "" -"C API: Many functions now use :c:type:`Py_ssize_t` instead of :c:type:`int`" -" to allow processing more data on 64-bit machines. Extension code may need " +"C API: Many functions now use :c:type:`Py_ssize_t` instead of :c:type:`int` " +"to allow processing more data on 64-bit machines. Extension code may need " "to make the same change to avoid warnings and to support 64-bit machines. " "See the earlier section :ref:`pep-353` for a discussion of this change." msgstr "" #: ../../whatsnew/2.5.rst:2272 msgid "" -"C API: The obmalloc changes mean that you must be careful to not mix usage" -" of the :c:func:`PyMem_\\*` and :c:func:`PyObject_\\*` families of " -"functions. Memory allocated with one family's :c:func:`\\*_Malloc` must be" -" freed with the corresponding family's :c:func:`\\*_Free` function." +"C API: The obmalloc changes mean that you must be careful to not mix usage " +"of the :c:func:`PyMem_\\*` and :c:func:`PyObject_\\*` families of functions. " +"Memory allocated with one family's :c:func:`\\*_Malloc` must be freed with " +"the corresponding family's :c:func:`\\*_Free` function." msgstr "" #: ../../whatsnew/2.5.rst:2281 @@ -2795,8 +2789,8 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.5.rst:2283 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Georg Brandl, Nick Coghlan, Phillip J. Eby, Lars Gustäbel, Raymond " +"suggestions, corrections and assistance with various drafts of this article: " +"Georg Brandl, Nick Coghlan, Phillip J. Eby, Lars Gustäbel, Raymond " "Hettinger, Ralf W. Grosse-Kunstleve, Kent Johnson, Iain Lowe, Martin von " "Löwis, Fredrik Lundh, Andrew McNamara, Skip Montanaro, Gustavo Niemeyer, " "Paul Prescod, James Pryor, Mike Rovner, Scott Weikart, Barry Warsaw, Thomas " diff --git a/whatsnew/2.6.po b/whatsnew/2.6.po index be695d8bd..5788d3f5b 100644 --- a/whatsnew/2.6.po +++ b/whatsnew/2.6.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Victor Matheus Castro , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-29 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -46,33 +48,31 @@ msgstr "" #: ../../whatsnew/2.6.rst:55 msgid "" -"The major theme of Python 2.6 is preparing the migration path to Python 3.0," -" a major redesign of the language. Whenever possible, Python 2.6 " +"The major theme of Python 2.6 is preparing the migration path to Python 3.0, " +"a major redesign of the language. Whenever possible, Python 2.6 " "incorporates new features and syntax from 3.0 while remaining compatible " "with existing code by not removing older features or syntax. When it's not " "possible to do that, Python 2.6 tries to do what it can, adding " -"compatibility functions in a :mod:`future_builtins` module and a " -":option:`!-3` switch to warn about usages that will become unsupported in " -"3.0." +"compatibility functions in a :mod:`future_builtins` module and a :option:" +"`!-3` switch to warn about usages that will become unsupported in 3.0." msgstr "" -"The major theme of Python 2.6 is preparing the migration path to Python 3.0," -" a major redesign of the language. Whenever possible, Python 2.6 " +"The major theme of Python 2.6 is preparing the migration path to Python 3.0, " +"a major redesign of the language. Whenever possible, Python 2.6 " "incorporates new features and syntax from 3.0 while remaining compatible " "with existing code by not removing older features or syntax. When it's not " "possible to do that, Python 2.6 tries to do what it can, adding " -"compatibility functions in a :mod:`future_builtins` module and a " -":option:`!-3` switch to warn about usages that will become unsupported in " -"3.0." +"compatibility functions in a :mod:`future_builtins` module and a :option:" +"`!-3` switch to warn about usages that will become unsupported in 3.0." #: ../../whatsnew/2.6.rst:64 msgid "" "Some significant new packages have been added to the standard library, such " -"as the :mod:`multiprocessing` and :mod:`json` modules, but there aren't many" -" new features that aren't related to Python 3.0 in some way." +"as the :mod:`multiprocessing` and :mod:`json` modules, but there aren't many " +"new features that aren't related to Python 3.0 in some way." msgstr "" "Some significant new packages have been added to the standard library, such " -"as the :mod:`multiprocessing` and :mod:`json` modules, but there aren't many" -" new features that aren't related to Python 3.0 in some way." +"as the :mod:`multiprocessing` and :mod:`json` modules, but there aren't many " +"new features that aren't related to Python 3.0 in some way." #: ../../whatsnew/2.6.rst:69 msgid "" @@ -89,18 +89,18 @@ msgstr "" #: ../../whatsnew/2.6.rst:74 msgid "" "This article doesn't attempt to provide a complete specification of the new " -"features, but instead provides a convenient overview. For full details, you" -" should refer to the documentation for Python 2.6. If you want to understand" -" the rationale for the design and implementation, refer to the PEP for a " -"particular new feature. Whenever possible, \"What's New in Python\" links to" -" the bug/patch item for each change." +"features, but instead provides a convenient overview. For full details, you " +"should refer to the documentation for Python 2.6. If you want to understand " +"the rationale for the design and implementation, refer to the PEP for a " +"particular new feature. Whenever possible, \"What's New in Python\" links to " +"the bug/patch item for each change." msgstr "" "This article doesn't attempt to provide a complete specification of the new " -"features, but instead provides a convenient overview. For full details, you" -" should refer to the documentation for Python 2.6. If you want to understand" -" the rationale for the design and implementation, refer to the PEP for a " -"particular new feature. Whenever possible, \"What's New in Python\" links to" -" the bug/patch item for each change." +"features, but instead provides a convenient overview. For full details, you " +"should refer to the documentation for Python 2.6. If you want to understand " +"the rationale for the design and implementation, refer to the PEP for a " +"particular new feature. Whenever possible, \"What's New in Python\" links to " +"the bug/patch item for each change." #: ../../whatsnew/2.6.rst:90 msgid "Python 3.0" @@ -108,13 +108,13 @@ msgstr "Python 3.0" #: ../../whatsnew/2.6.rst:92 msgid "" -"The development cycle for Python versions 2.6 and 3.0 was synchronized, with" -" the alpha and beta releases for both versions being made on the same days." -" The development of 3.0 has influenced many features in 2.6." +"The development cycle for Python versions 2.6 and 3.0 was synchronized, with " +"the alpha and beta releases for both versions being made on the same days. " +"The development of 3.0 has influenced many features in 2.6." msgstr "" -"The development cycle for Python versions 2.6 and 3.0 was synchronized, with" -" the alpha and beta releases for both versions being made on the same days." -" The development of 3.0 has influenced many features in 2.6." +"The development cycle for Python versions 2.6 and 3.0 was synchronized, with " +"the alpha and beta releases for both versions being made on the same days. " +"The development of 3.0 has influenced many features in 2.6." #: ../../whatsnew/2.6.rst:97 msgid "" @@ -123,16 +123,16 @@ msgid "" "conversion in order to run on Python 3.0. However, not all the changes in " "3.0 necessarily break compatibility. In cases where new features won't " "cause existing code to break, they've been backported to 2.6 and are " -"described in this document in the appropriate place. Some of the " -"3.0-derived features are:" +"described in this document in the appropriate place. Some of the 3.0-" +"derived features are:" msgstr "" "Python 3.0 is a far-ranging redesign of Python that breaks compatibility " "with the 2.x series. This means that existing Python code will need some " "conversion in order to run on Python 3.0. However, not all the changes in " "3.0 necessarily break compatibility. In cases where new features won't " "cause existing code to break, they've been backported to 2.6 and are " -"described in this document in the appropriate place. Some of the " -"3.0-derived features are:" +"described in this document in the appropriate place. Some of the 3.0-" +"derived features are:" #: ../../whatsnew/2.6.rst:106 msgid "" @@ -142,16 +142,15 @@ msgstr "" #: ../../whatsnew/2.6.rst:107 msgid "Alternate syntax for catching exceptions: ``except TypeError as exc``." -msgstr "" -"Alternate syntax for catching exceptions: ``except TypeError as exc``." +msgstr "Alternate syntax for catching exceptions: ``except TypeError as exc``." #: ../../whatsnew/2.6.rst:108 msgid "" -"The addition of :func:`functools.reduce` as a synonym for the built-in " -":func:`reduce` function." +"The addition of :func:`functools.reduce` as a synonym for the built-in :func:" +"`reduce` function." msgstr "" -"The addition of :func:`functools.reduce` as a synonym for the built-in " -":func:`reduce` function." +"The addition of :func:`functools.reduce` as a synonym for the built-in :func:" +"`reduce` function." #: ../../whatsnew/2.6.rst:111 msgid "" @@ -174,28 +173,26 @@ msgid "" "A new command-line switch, :option:`!-3`, enables warnings about features " "that will be removed in Python 3.0. You can run code with this switch to " "see how much work will be necessary to port code to 3.0. The value of this " -"switch is available to Python code as the boolean variable " -":data:`sys.py3kwarning`, and to C extension code as " -":c:data:`Py_Py3kWarningFlag`." +"switch is available to Python code as the boolean variable :data:`sys." +"py3kwarning`, and to C extension code as :c:data:`Py_Py3kWarningFlag`." msgstr "" "A new command-line switch, :option:`!-3`, enables warnings about features " "that will be removed in Python 3.0. You can run code with this switch to " "see how much work will be necessary to port code to 3.0. The value of this " -"switch is available to Python code as the boolean variable " -":data:`sys.py3kwarning`, and to C extension code as " -":c:data:`Py_Py3kWarningFlag`." +"switch is available to Python code as the boolean variable :data:`sys." +"py3kwarning`, and to C extension code as :c:data:`Py_Py3kWarningFlag`." #: ../../whatsnew/2.6.rst:128 msgid "" -"The 3xxx series of PEPs, which contains proposals for Python 3.0. " -":pep:`3000` describes the development process for Python 3.0. Start with " -":pep:`3100` that describes the general goals for Python 3.0, and then " -"explore the higher-numbered PEPS that propose specific features." +"The 3xxx series of PEPs, which contains proposals for Python 3.0. :pep:" +"`3000` describes the development process for Python 3.0. Start with :pep:" +"`3100` that describes the general goals for Python 3.0, and then explore the " +"higher-numbered PEPS that propose specific features." msgstr "" -"The 3xxx series of PEPs, which contains proposals for Python 3.0. " -":pep:`3000` describes the development process for Python 3.0. Start with " -":pep:`3100` that describes the general goals for Python 3.0, and then " -"explore the higher-numbered PEPS that propose specific features." +"The 3xxx series of PEPs, which contains proposals for Python 3.0. :pep:" +"`3000` describes the development process for Python 3.0. Start with :pep:" +"`3100` that describes the general goals for Python 3.0, and then explore the " +"higher-numbered PEPS that propose specific features." #: ../../whatsnew/2.6.rst:136 msgid "Changes to the Development Process" @@ -219,14 +216,14 @@ msgstr "New Issue Tracker: Roundup" #: ../../whatsnew/2.6.rst:147 msgid "" -"For a long time, the Python developers had been growing increasingly annoyed" -" by SourceForge's bug tracker. SourceForge's hosted solution doesn't permit" -" much customization; for example, it wasn't possible to customize the life " +"For a long time, the Python developers had been growing increasingly annoyed " +"by SourceForge's bug tracker. SourceForge's hosted solution doesn't permit " +"much customization; for example, it wasn't possible to customize the life " "cycle of issues." msgstr "" -"For a long time, the Python developers had been growing increasingly annoyed" -" by SourceForge's bug tracker. SourceForge's hosted solution doesn't permit" -" much customization; for example, it wasn't possible to customize the life " +"For a long time, the Python developers had been growing increasingly annoyed " +"by SourceForge's bug tracker. SourceForge's hosted solution doesn't permit " +"much customization; for example, it wasn't possible to customize the life " "cycle of issues." #: ../../whatsnew/2.6.rst:152 @@ -234,26 +231,24 @@ msgid "" "The infrastructure committee of the Python Software Foundation therefore " "posted a call for issue trackers, asking volunteers to set up different " "products and import some of the bugs and patches from SourceForge. Four " -"different trackers were examined: `Jira " -"`__, `Launchpad " -"`__, `Roundup `__, " -"and `Trac `__. The committee eventually settled " -"on Jira and Roundup as the two candidates. Jira is a commercial product " -"that offers no-cost hosted instances to free-software projects; Roundup is " -"an open-source project that requires volunteers to administer it and a " -"server to host it." +"different trackers were examined: `Jira `__, `Launchpad `__, `Roundup `__, and `Trac `__. The " +"committee eventually settled on Jira and Roundup as the two candidates. " +"Jira is a commercial product that offers no-cost hosted instances to free-" +"software projects; Roundup is an open-source project that requires " +"volunteers to administer it and a server to host it." msgstr "" "The infrastructure committee of the Python Software Foundation therefore " "posted a call for issue trackers, asking volunteers to set up different " "products and import some of the bugs and patches from SourceForge. Four " -"different trackers were examined: `Jira " -"`__, `Launchpad " -"`__, `Roundup `__, " -"and `Trac `__. The committee eventually settled " -"on Jira and Roundup as the two candidates. Jira is a commercial product " -"that offers no-cost hosted instances to free-software projects; Roundup is " -"an open-source project that requires volunteers to administer it and a " -"server to host it." +"different trackers were examined: `Jira `__, `Launchpad `__, `Roundup `__, and `Trac `__. The " +"committee eventually settled on Jira and Roundup as the two candidates. " +"Jira is a commercial product that offers no-cost hosted instances to free-" +"software projects; Roundup is an open-source project that requires " +"volunteers to administer it and a server to host it." #: ../../whatsnew/2.6.rst:166 msgid "" @@ -274,11 +269,11 @@ msgstr "" #: ../../whatsnew/2.6.rst:174 msgid "" "Hosting of the Python bug tracker is kindly provided by `Upfront Systems " -"`__ of Stellenbosch, South Africa. Martin" -" von Löwis put a lot of effort into importing existing bugs and patches from" -" SourceForge; his scripts for this import operation are at " -"http://svn.python.org/view/tracker/importer/ and may be useful to other " -"projects wishing to move from SourceForge to Roundup." +"`__ of Stellenbosch, South Africa. Martin " +"von Löwis put a lot of effort into importing existing bugs and patches from " +"SourceForge; his scripts for this import operation are at http://svn.python." +"org/view/tracker/importer/ and may be useful to other projects wishing to " +"move from SourceForge to Roundup." msgstr "" #: ../../whatsnew/2.6.rst:185 @@ -334,20 +329,20 @@ msgstr "" #: ../../whatsnew/2.6.rst:206 msgid "" "Today LaTeX is still used for writing publications destined for printing, " -"but the landscape for programming tools has shifted. We no longer print out" -" reams of documentation; instead, we browse through it online and HTML has " -"become the most important format to support. Unfortunately, converting LaTeX" -" to HTML is fairly complicated and Fred L. Drake Jr., the long-time Python " +"but the landscape for programming tools has shifted. We no longer print out " +"reams of documentation; instead, we browse through it online and HTML has " +"become the most important format to support. Unfortunately, converting LaTeX " +"to HTML is fairly complicated and Fred L. Drake Jr., the long-time Python " "documentation editor, spent a lot of time maintaining the conversion " "process. Occasionally people would suggest converting the documentation " "into SGML and later XML, but performing a good conversion is a major task " "and no one ever committed the time required to finish the job." msgstr "" "Today LaTeX is still used for writing publications destined for printing, " -"but the landscape for programming tools has shifted. We no longer print out" -" reams of documentation; instead, we browse through it online and HTML has " -"become the most important format to support. Unfortunately, converting LaTeX" -" to HTML is fairly complicated and Fred L. Drake Jr., the long-time Python " +"but the landscape for programming tools has shifted. We no longer print out " +"reams of documentation; instead, we browse through it online and HTML has " +"become the most important format to support. Unfortunately, converting LaTeX " +"to HTML is fairly complicated and Fred L. Drake Jr., the long-time Python " "documentation editor, spent a lot of time maintaining the conversion " "process. Occasionally people would suggest converting the documentation " "into SGML and later XML, but performing a good conversion is a major task " @@ -365,22 +360,22 @@ msgstr "" #: ../../whatsnew/2.6.rst:222 msgid "" -"Sphinx concentrates on HTML output, producing attractively styled and modern" -" HTML; printed output is still supported through conversion to LaTeX. The " +"Sphinx concentrates on HTML output, producing attractively styled and modern " +"HTML; printed output is still supported through conversion to LaTeX. The " "input format is reStructuredText, a markup syntax supporting custom " "extensions and directives that is commonly used in the Python community." msgstr "" -"Sphinx concentrates on HTML output, producing attractively styled and modern" -" HTML; printed output is still supported through conversion to LaTeX. The " +"Sphinx concentrates on HTML output, producing attractively styled and modern " +"HTML; printed output is still supported through conversion to LaTeX. The " "input format is reStructuredText, a markup syntax supporting custom " "extensions and directives that is commonly used in the Python community." #: ../../whatsnew/2.6.rst:228 msgid "" "Sphinx is a standalone package that can be used for writing, and almost two " -"dozen other projects (`listed on the Sphinx web site `__) have adopted Sphinx as their " -"documentation tool." +"dozen other projects (`listed on the Sphinx web site `__) have adopted Sphinx as their documentation " +"tool." msgstr "" #: ../../whatsnew/2.6.rst:236 @@ -416,9 +411,9 @@ msgid "" "The previous version, Python 2.5, added the ':keyword:`with`' statement as " "an optional feature, to be enabled by a ``from __future__ import " "with_statement`` directive. In 2.6 the statement no longer needs to be " -"specially enabled; this means that :keyword:`!with` is now always a keyword." -" The rest of this section is a copy of the corresponding section from the " -"\"What's New in Python 2.5\" document; if you're familiar with the " +"specially enabled; this means that :keyword:`!with` is now always a " +"keyword. The rest of this section is a copy of the corresponding section " +"from the \"What's New in Python 2.5\" document; if you're familiar with the " "':keyword:`!with`' statement from Python 2.5, you can skip this section." msgstr "" @@ -446,44 +441,44 @@ msgstr "" #: ../../whatsnew/2.6.rst:271 msgid "" -"The expression is evaluated, and it should result in an object that supports" -" the context management protocol (that is, has :meth:`__enter__` and " -":meth:`__exit__` methods)." +"The expression is evaluated, and it should result in an object that supports " +"the context management protocol (that is, has :meth:`__enter__` and :meth:" +"`__exit__` methods)." msgstr "" -"The expression is evaluated, and it should result in an object that supports" -" the context management protocol (that is, has :meth:`__enter__` and " -":meth:`__exit__` methods)." +"The expression is evaluated, and it should result in an object that supports " +"the context management protocol (that is, has :meth:`__enter__` and :meth:" +"`__exit__` methods)." #: ../../whatsnew/2.6.rst:275 msgid "" -"The object's :meth:`__enter__` is called before *with-block* is executed and" -" therefore can run set-up code. It also may return a value that is bound to " +"The object's :meth:`__enter__` is called before *with-block* is executed and " +"therefore can run set-up code. It also may return a value that is bound to " "the name *variable*, if given. (Note carefully that *variable* is *not* " "assigned the result of *expression*.)" msgstr "" -"The object's :meth:`__enter__` is called before *with-block* is executed and" -" therefore can run set-up code. It also may return a value that is bound to " +"The object's :meth:`__enter__` is called before *with-block* is executed and " +"therefore can run set-up code. It also may return a value that is bound to " "the name *variable*, if given. (Note carefully that *variable* is *not* " "assigned the result of *expression*.)" #: ../../whatsnew/2.6.rst:280 msgid "" -"After execution of the *with-block* is finished, the object's " -":meth:`__exit__` method is called, even if the block raised an exception, " -"and can therefore run clean-up code." +"After execution of the *with-block* is finished, the object's :meth:" +"`__exit__` method is called, even if the block raised an exception, and can " +"therefore run clean-up code." msgstr "" -"After execution of the *with-block* is finished, the object's " -":meth:`__exit__` method is called, even if the block raised an exception, " -"and can therefore run clean-up code." +"After execution of the *with-block* is finished, the object's :meth:" +"`__exit__` method is called, even if the block raised an exception, and can " +"therefore run clean-up code." #: ../../whatsnew/2.6.rst:284 msgid "" -"Some standard Python objects now support the context management protocol and" -" can be used with the ':keyword:`with`' statement. File objects are one " +"Some standard Python objects now support the context management protocol and " +"can be used with the ':keyword:`with`' statement. File objects are one " "example::" msgstr "" -"Some standard Python objects now support the context management protocol and" -" can be used with the ':keyword:`with`' statement. File objects are one " +"Some standard Python objects now support the context management protocol and " +"can be used with the ':keyword:`with`' statement. File objects are one " "example::" #: ../../whatsnew/2.6.rst:292 @@ -498,11 +493,11 @@ msgstr "" #: ../../whatsnew/2.6.rst:298 msgid "" -"In this case, *f* is the same object created by :func:`open`, because " -":meth:`file.__enter__` returns *self*." +"In this case, *f* is the same object created by :func:`open`, because :meth:" +"`file.__enter__` returns *self*." msgstr "" -"In this case, *f* is the same object created by :func:`open`, because " -":meth:`file.__enter__` returns *self*." +"In this case, *f* is the same object created by :func:`open`, because :meth:" +"`file.__enter__` returns *self*." #: ../../whatsnew/2.6.rst:301 msgid "" @@ -522,12 +517,12 @@ msgstr "" #: ../../whatsnew/2.6.rst:312 msgid "" -"The :func:`localcontext` function in the :mod:`decimal` module makes it easy" -" to save and restore the current decimal context, which encapsulates the " +"The :func:`localcontext` function in the :mod:`decimal` module makes it easy " +"to save and restore the current decimal context, which encapsulates the " "desired precision and rounding characteristics for computations::" msgstr "" -"The :func:`localcontext` function in the :mod:`decimal` module makes it easy" -" to save and restore the current decimal context, which encapsulates the " +"The :func:`localcontext` function in the :mod:`decimal` module makes it easy " +"to save and restore the current decimal context, which encapsulates the " "desired precision and rounding characteristics for computations::" #: ../../whatsnew/2.6.rst:331 @@ -537,8 +532,8 @@ msgstr "Writing Context Managers" #: ../../whatsnew/2.6.rst:333 msgid "" "Under the hood, the ':keyword:`with`' statement is fairly complicated. Most " -"people will only use ':keyword:`!with`' in company with existing objects and" -" don't need to know these details, so you can skip the rest of this section " +"people will only use ':keyword:`!with`' in company with existing objects and " +"don't need to know these details, so you can skip the rest of this section " "if you like. Authors of new objects will need to understand the details of " "the underlying implementation and should keep reading." msgstr "" @@ -550,12 +545,12 @@ msgstr "A high-level explanation of the context management protocol is:" #: ../../whatsnew/2.6.rst:341 msgid "" "The expression is evaluated and should result in an object called a " -"\"context manager\". The context manager must have :meth:`__enter__` and " -":meth:`__exit__` methods." +"\"context manager\". The context manager must have :meth:`__enter__` and :" +"meth:`__exit__` methods." msgstr "" "The expression is evaluated and should result in an object called a " -"\"context manager\". The context manager must have :meth:`__enter__` and " -":meth:`__exit__` methods." +"\"context manager\". The context manager must have :meth:`__enter__` and :" +"meth:`__exit__` methods." #: ../../whatsnew/2.6.rst:345 msgid "" @@ -574,8 +569,8 @@ msgstr "The code in *BLOCK* is executed." #: ../../whatsnew/2.6.rst:351 msgid "" "If *BLOCK* raises an exception, the context manager's :meth:`__exit__` " -"method is called with three arguments, the exception details (``type, value," -" traceback``, the same values returned by :func:`sys.exc_info`, which can " +"method is called with three arguments, the exception details (``type, value, " +"traceback``, the same values returned by :func:`sys.exc_info`, which can " "also be ``None`` if no exception occurred). The method's return value " "controls whether an exception is re-raised: any false value re-raises the " "exception, and ``True`` will result in suppressing it. You'll only rarely " @@ -584,8 +579,8 @@ msgid "" "wrong." msgstr "" "If *BLOCK* raises an exception, the context manager's :meth:`__exit__` " -"method is called with three arguments, the exception details (``type, value," -" traceback``, the same values returned by :func:`sys.exc_info`, which can " +"method is called with three arguments, the exception details (``type, value, " +"traceback``, the same values returned by :func:`sys.exc_info`, which can " "also be ``None`` if no exception occurred). The method's return value " "controls whether an exception is re-raised: any false value re-raises the " "exception, and ``True`` will result in suppressing it. You'll only rarely " @@ -603,11 +598,11 @@ msgstr "" #: ../../whatsnew/2.6.rst:363 msgid "" -"Let's think through an example. I won't present detailed code but will only" -" sketch the methods necessary for a database that supports transactions." +"Let's think through an example. I won't present detailed code but will only " +"sketch the methods necessary for a database that supports transactions." msgstr "" -"Let's think through an example. I won't present detailed code but will only" -" sketch the methods necessary for a database that supports transactions." +"Let's think through an example. I won't present detailed code but will only " +"sketch the methods necessary for a database that supports transactions." #: ../../whatsnew/2.6.rst:366 msgid "" @@ -633,13 +628,13 @@ msgstr "" #: ../../whatsnew/2.6.rst:381 msgid "" -"The transaction should be committed if the code in the block runs flawlessly" -" or rolled back if there's an exception. Here's the basic interface for " -":class:`DatabaseConnection` that I'll assume::" +"The transaction should be committed if the code in the block runs flawlessly " +"or rolled back if there's an exception. Here's the basic interface for :" +"class:`DatabaseConnection` that I'll assume::" msgstr "" -"The transaction should be committed if the code in the block runs flawlessly" -" or rolled back if there's an exception. Here's the basic interface for " -":class:`DatabaseConnection` that I'll assume::" +"The transaction should be committed if the code in the block runs flawlessly " +"or rolled back if there's an exception. Here's the basic interface for :" +"class:`DatabaseConnection` that I'll assume::" #: ../../whatsnew/2.6.rst:394 msgid "" @@ -671,13 +666,13 @@ msgstr "" msgid "" "In the code below, execution will just fall off the end of the function, " "returning the default value of ``None``. ``None`` is false, so the " -"exception will be re-raised automatically. If you wished, you could be more" -" explicit and add a :keyword:`return` statement at the marked location. ::" +"exception will be re-raised automatically. If you wished, you could be more " +"explicit and add a :keyword:`return` statement at the marked location. ::" msgstr "" "In the code below, execution will just fall off the end of the function, " "returning the default value of ``None``. ``None`` is false, so the " -"exception will be re-raised automatically. If you wished, you could be more" -" explicit and add a :keyword:`return` statement at the marked location. ::" +"exception will be re-raised automatically. If you wished, you could be more " +"explicit and add a :keyword:`return` statement at the marked location. ::" #: ../../whatsnew/2.6.rst:431 msgid "The contextlib module" @@ -686,12 +681,10 @@ msgstr "The contextlib module" #: ../../whatsnew/2.6.rst:433 msgid "" "The :mod:`contextlib` module provides some functions and a decorator that " -"are useful when writing objects for use with the ':keyword:`with`' " -"statement." +"are useful when writing objects for use with the ':keyword:`with`' statement." msgstr "" "The :mod:`contextlib` module provides some functions and a decorator that " -"are useful when writing objects for use with the ':keyword:`with`' " -"statement." +"are useful when writing objects for use with the ':keyword:`with`' statement." #: ../../whatsnew/2.6.rst:436 msgid "" @@ -699,10 +692,10 @@ msgid "" "generator function instead of defining a new class. The generator should " "yield exactly one value. The code up to the :keyword:`yield` will be " "executed as the :meth:`__enter__` method, and the value yielded will be the " -"method's return value that will get bound to the variable in the " -"':keyword:`with`' statement's :keyword:`!as` clause, if any. The code after" -" the :keyword:`!yield` will be executed in the :meth:`__exit__` method. Any" -" exception raised in the block will be raised by the :keyword:`!yield` " +"method's return value that will get bound to the variable in the ':keyword:" +"`with`' statement's :keyword:`!as` clause, if any. The code after the :" +"keyword:`!yield` will be executed in the :meth:`__exit__` method. Any " +"exception raised in the block will be raised by the :keyword:`!yield` " "statement." msgstr "" @@ -716,22 +709,22 @@ msgstr "" #: ../../whatsnew/2.6.rst:465 msgid "" -"The :mod:`contextlib` module also has a ``nested(mgr1, mgr2, ...)`` function" -" that combines a number of context managers so you don't need to write " -"nested ':keyword:`with`' statements. In this example, the single " -"':keyword:`!with`' statement both starts a database transaction and acquires" -" a thread lock::" +"The :mod:`contextlib` module also has a ``nested(mgr1, mgr2, ...)`` function " +"that combines a number of context managers so you don't need to write nested " +"':keyword:`with`' statements. In this example, the single ':keyword:`!" +"with`' statement both starts a database transaction and acquires a thread " +"lock::" msgstr "" #: ../../whatsnew/2.6.rst:474 msgid "" -"Finally, the :func:`closing` function returns its argument so that it can be" -" bound to a variable, and calls the argument's ``.close()`` method at the " -"end of the block. ::" +"Finally, the :func:`closing` function returns its argument so that it can be " +"bound to a variable, and calls the argument's ``.close()`` method at the end " +"of the block. ::" msgstr "" -"Finally, the :func:`closing` function returns its argument so that it can be" -" bound to a variable, and calls the argument's ``.close()`` method at the " -"end of the block. ::" +"Finally, the :func:`closing` function returns its argument so that it can be " +"bound to a variable, and calls the argument's ``.close()`` method at the end " +"of the block. ::" #: ../../whatsnew/2.6.rst:492 msgid ":pep:`343` - The \"with\" statement" @@ -739,14 +732,14 @@ msgstr ":pep:`343` - The \"with\" statement" #: ../../whatsnew/2.6.rst:489 msgid "" -"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland," -" Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a" -" ':keyword:`with`' statement, which can be helpful in learning how the " +"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland, " +"Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a " +"':keyword:`with`' statement, which can be helpful in learning how the " "statement works." msgstr "" -"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland," -" Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a" -" ':keyword:`with`' statement, which can be helpful in learning how the " +"PEP written by Guido van Rossum and Nick Coghlan; implemented by Mike Bland, " +"Guido van Rossum, and Neal Norwitz. The PEP shows the code generated for a " +"':keyword:`with`' statement, which can be helpful in learning how the " "statement works." #: ../../whatsnew/2.6.rst:494 @@ -760,12 +753,12 @@ msgstr "PEP 366: Explicit Relative Imports From a Main Module" #: ../../whatsnew/2.6.rst:503 msgid "" "Python's :option:`-m` switch allows running a module as a script. When you " -"ran a module that was located inside a package, relative imports didn't work" -" correctly." +"ran a module that was located inside a package, relative imports didn't work " +"correctly." msgstr "" "Python's :option:`-m` switch allows running a module as a script. When you " -"ran a module that was located inside a package, relative imports didn't work" -" correctly." +"ran a module that was located inside a package, relative imports didn't work " +"correctly." #: ../../whatsnew/2.6.rst:507 msgid "" @@ -779,15 +772,15 @@ msgstr "" #: ../../whatsnew/2.6.rst:512 msgid "" -"PEP 302-style importers can then set :attr:`__package__` as necessary. The " -":mod:`runpy` module that implements the :option:`-m` switch now does this, " -"so relative imports will now work correctly in scripts running from inside a" -" package." +"PEP 302-style importers can then set :attr:`__package__` as necessary. The :" +"mod:`runpy` module that implements the :option:`-m` switch now does this, so " +"relative imports will now work correctly in scripts running from inside a " +"package." msgstr "" -"PEP 302-style importers can then set :attr:`__package__` as necessary. The " -":mod:`runpy` module that implements the :option:`-m` switch now does this, " -"so relative imports will now work correctly in scripts running from inside a" -" package." +"PEP 302-style importers can then set :attr:`__package__` as necessary. The :" +"mod:`runpy` module that implements the :option:`-m` switch now does this, so " +"relative imports will now work correctly in scripts running from inside a " +"package." #: ../../whatsnew/2.6.rst:522 msgid "PEP 370: Per-user ``site-packages`` Directory" @@ -824,36 +817,36 @@ msgstr "Windows: :file:`%APPDATA%/Python`" #: ../../whatsnew/2.6.rst:535 msgid "" "Within this directory, there will be version-specific subdirectories, such " -"as :file:`lib/python2.6/site-packages` on Unix/Mac OS and :file:`Python26" -"/site-packages` on Windows." +"as :file:`lib/python2.6/site-packages` on Unix/Mac OS and :file:`Python26/" +"site-packages` on Windows." msgstr "" "Within this directory, there will be version-specific subdirectories, such " -"as :file:`lib/python2.6/site-packages` on Unix/Mac OS and :file:`Python26" -"/site-packages` on Windows." +"as :file:`lib/python2.6/site-packages` on Unix/Mac OS and :file:`Python26/" +"site-packages` on Windows." #: ../../whatsnew/2.6.rst:539 msgid "" "If you don't like the default directory, it can be overridden by an " -"environment variable. :envvar:`PYTHONUSERBASE` sets the root directory used" -" for all Python versions supporting this feature. On Windows, the directory" -" for application-specific data can be changed by setting the " -":envvar:`APPDATA` environment variable. You can also modify the " -":file:`site.py` file for your Python installation." +"environment variable. :envvar:`PYTHONUSERBASE` sets the root directory used " +"for all Python versions supporting this feature. On Windows, the directory " +"for application-specific data can be changed by setting the :envvar:" +"`APPDATA` environment variable. You can also modify the :file:`site.py` " +"file for your Python installation." msgstr "" "If you don't like the default directory, it can be overridden by an " -"environment variable. :envvar:`PYTHONUSERBASE` sets the root directory used" -" for all Python versions supporting this feature. On Windows, the directory" -" for application-specific data can be changed by setting the " -":envvar:`APPDATA` environment variable. You can also modify the " -":file:`site.py` file for your Python installation." +"environment variable. :envvar:`PYTHONUSERBASE` sets the root directory used " +"for all Python versions supporting this feature. On Windows, the directory " +"for application-specific data can be changed by setting the :envvar:" +"`APPDATA` environment variable. You can also modify the :file:`site.py` " +"file for your Python installation." #: ../../whatsnew/2.6.rst:546 msgid "" -"The feature can be disabled entirely by running Python with the :option:`-s`" -" option or setting the :envvar:`PYTHONNOUSERSITE` environment variable." +"The feature can be disabled entirely by running Python with the :option:`-s` " +"option or setting the :envvar:`PYTHONNOUSERSITE` environment variable." msgstr "" -"The feature can be disabled entirely by running Python with the :option:`-s`" -" option or setting the :envvar:`PYTHONNOUSERSITE` environment variable." +"The feature can be disabled entirely by running Python with the :option:`-s` " +"option or setting the :envvar:`PYTHONNOUSERSITE` environment variable." #: ../../whatsnew/2.6.rst:552 msgid ":pep:`370` - Per-user ``site-packages`` Directory" @@ -870,35 +863,35 @@ msgstr "PEP 371: The ``multiprocessing`` Package" #: ../../whatsnew/2.6.rst:563 msgid "" "The new :mod:`multiprocessing` package lets Python programs create new " -"processes that will perform a computation and return a result to the parent." -" The parent and child processes can communicate using queues and pipes, " -"synchronize their operations using locks and semaphores, and can share " -"simple arrays of data." +"processes that will perform a computation and return a result to the " +"parent. The parent and child processes can communicate using queues and " +"pipes, synchronize their operations using locks and semaphores, and can " +"share simple arrays of data." msgstr "" "The new :mod:`multiprocessing` package lets Python programs create new " -"processes that will perform a computation and return a result to the parent." -" The parent and child processes can communicate using queues and pipes, " -"synchronize their operations using locks and semaphores, and can share " -"simple arrays of data." +"processes that will perform a computation and return a result to the " +"parent. The parent and child processes can communicate using queues and " +"pipes, synchronize their operations using locks and semaphores, and can " +"share simple arrays of data." #: ../../whatsnew/2.6.rst:569 msgid "" -"The :mod:`multiprocessing` module started out as an exact emulation of the " -":mod:`threading` module using processes instead of threads. That goal was " +"The :mod:`multiprocessing` module started out as an exact emulation of the :" +"mod:`threading` module using processes instead of threads. That goal was " "discarded along the path to Python 2.6, but the general approach of the " "module is still similar. The fundamental class is the :class:`Process`, " -"which is passed a callable object and a collection of arguments. The " -":meth:`start` method sets the callable running in a subprocess, after which " -"you can call the :meth:`is_alive` method to check whether the subprocess is " +"which is passed a callable object and a collection of arguments. The :meth:" +"`start` method sets the callable running in a subprocess, after which you " +"can call the :meth:`is_alive` method to check whether the subprocess is " "still running and the :meth:`join` method to wait for the process to exit." msgstr "" -"The :mod:`multiprocessing` module started out as an exact emulation of the " -":mod:`threading` module using processes instead of threads. That goal was " +"The :mod:`multiprocessing` module started out as an exact emulation of the :" +"mod:`threading` module using processes instead of threads. That goal was " "discarded along the path to Python 2.6, but the general approach of the " "module is still similar. The fundamental class is the :class:`Process`, " -"which is passed a callable object and a collection of arguments. The " -":meth:`start` method sets the callable running in a subprocess, after which " -"you can call the :meth:`is_alive` method to check whether the subprocess is " +"which is passed a callable object and a collection of arguments. The :meth:" +"`start` method sets the callable running in a subprocess, after which you " +"can call the :meth:`is_alive` method to check whether the subprocess is " "still running and the :meth:`join` method to wait for the process to exit." #: ../../whatsnew/2.6.rst:579 @@ -916,34 +909,34 @@ msgid "" "A :class:`~queue.Queue` is used to communicate the result of the factorial. " "The :class:`~queue.Queue` object is stored in a global variable. The child " "process will use the value of the variable when the child was created; " -"because it's a :class:`~queue.Queue`, parent and child can use the object to" -" communicate. (If the parent were to change the value of the global " +"because it's a :class:`~queue.Queue`, parent and child can use the object to " +"communicate. (If the parent were to change the value of the global " "variable, the child's value would be unaffected, and vice versa.)" msgstr "" "A :class:`~queue.Queue` is used to communicate the result of the factorial. " "The :class:`~queue.Queue` object is stored in a global variable. The child " "process will use the value of the variable when the child was created; " -"because it's a :class:`~queue.Queue`, parent and child can use the object to" -" communicate. (If the parent were to change the value of the global " +"because it's a :class:`~queue.Queue`, parent and child can use the object to " +"communicate. (If the parent were to change the value of the global " "variable, the child's value would be unaffected, and vice versa.)" #: ../../whatsnew/2.6.rst:624 msgid "" "Two other classes, :class:`Pool` and :class:`Manager`, provide higher-level " "interfaces. :class:`Pool` will create a fixed number of worker processes, " -"and requests can then be distributed to the workers by calling :meth:`apply`" -" or :meth:`apply_async` to add a single request, and :meth:`map` or " -":meth:`map_async` to add a number of requests. The following code uses a " -":class:`Pool` to spread requests across 5 worker processes and retrieve a " -"list of results::" +"and requests can then be distributed to the workers by calling :meth:`apply` " +"or :meth:`apply_async` to add a single request, and :meth:`map` or :meth:" +"`map_async` to add a number of requests. The following code uses a :class:" +"`Pool` to spread requests across 5 worker processes and retrieve a list of " +"results::" msgstr "" "Two other classes, :class:`Pool` and :class:`Manager`, provide higher-level " "interfaces. :class:`Pool` will create a fixed number of worker processes, " -"and requests can then be distributed to the workers by calling :meth:`apply`" -" or :meth:`apply_async` to add a single request, and :meth:`map` or " -":meth:`map_async` to add a number of requests. The following code uses a " -":class:`Pool` to spread requests across 5 worker processes and retrieve a " -"list of results::" +"and requests can then be distributed to the workers by calling :meth:`apply` " +"or :meth:`apply_async` to add a single request, and :meth:`map` or :meth:" +"`map_async` to add a number of requests. The following code uses a :class:" +"`Pool` to spread requests across 5 worker processes and retrieve a list of " +"results::" #: ../../whatsnew/2.6.rst:642 msgid "This produces the following output::" @@ -1007,12 +1000,12 @@ msgstr "" #: ../../whatsnew/2.6.rst:724 msgid "" -"In 2.6, both 8-bit and Unicode strings have a `.format()` method that treats" -" the string as a template and takes the arguments to be formatted. The " +"In 2.6, both 8-bit and Unicode strings have a `.format()` method that treats " +"the string as a template and takes the arguments to be formatted. The " "formatting template uses curly brackets (`{`, `}`) as special characters::" msgstr "" -"In 2.6, both 8-bit and Unicode strings have a `.format()` method that treats" -" the string as a template and takes the arguments to be formatted. The " +"In 2.6, both 8-bit and Unicode strings have a `.format()` method that treats " +"the string as a template and takes the arguments to be formatted. The " "formatting template uses curly brackets (`{`, `}`) as special characters::" #: ../../whatsnew/2.6.rst:737 @@ -1021,25 +1014,25 @@ msgstr "Curly brackets can be escaped by doubling them::" #: ../../whatsnew/2.6.rst:742 msgid "" -"Field names can be integers indicating positional arguments, such as " -"``{0}``, ``{1}``, etc. or names of keyword arguments. You can also supply " +"Field names can be integers indicating positional arguments, such as ``{0}" +"``, ``{1}``, etc. or names of keyword arguments. You can also supply " "compound field names that read attributes or access dictionary keys::" msgstr "" -"Field names can be integers indicating positional arguments, such as " -"``{0}``, ``{1}``, etc. or names of keyword arguments. You can also supply " +"Field names can be integers indicating positional arguments, such as ``{0}" +"``, ``{1}``, etc. or names of keyword arguments. You can also supply " "compound field names that read attributes or access dictionary keys::" #: ../../whatsnew/2.6.rst:756 msgid "" -"Note that when using dictionary-style notation such as ``[.mp4]``, you don't" -" need to put any quotation marks around the string; it will look up the " -"value using ``.mp4`` as the key. Strings beginning with a number will be " +"Note that when using dictionary-style notation such as ``[.mp4]``, you don't " +"need to put any quotation marks around the string; it will look up the value " +"using ``.mp4`` as the key. Strings beginning with a number will be " "converted to an integer. You can't write more complicated expressions " "inside a format string." msgstr "" -"Note that when using dictionary-style notation such as ``[.mp4]``, you don't" -" need to put any quotation marks around the string; it will look up the " -"value using ``.mp4`` as the key. Strings beginning with a number will be " +"Note that when using dictionary-style notation such as ``[.mp4]``, you don't " +"need to put any quotation marks around the string; it will look up the value " +"using ``.mp4`` as the key. Strings beginning with a number will be " "converted to an integer. You can't write more complicated expressions " "inside a format string." @@ -1173,11 +1166,11 @@ msgstr "``e``" #: ../../whatsnew/2.6.rst:817 msgid "" -"Exponent notation. Prints the number in scientific notation using the letter" -" 'e' to indicate the exponent." +"Exponent notation. Prints the number in scientific notation using the letter " +"'e' to indicate the exponent." msgstr "" -"Exponent notation. Prints the number in scientific notation using the letter" -" 'e' to indicate the exponent." +"Exponent notation. Prints the number in scientific notation using the letter " +"'e' to indicate the exponent." #: ../../whatsnew/2.6.rst:819 msgid "``g``" @@ -1211,11 +1204,11 @@ msgstr "``%``" #: ../../whatsnew/2.6.rst:825 msgid "" -"Percentage. Multiplies the number by 100 and displays in fixed ('f') format," -" followed by a percent sign." +"Percentage. Multiplies the number by 100 and displays in fixed ('f') format, " +"followed by a percent sign." msgstr "" -"Percentage. Multiplies the number by 100 and displays in fixed ('f') format," -" followed by a percent sign." +"Percentage. Multiplies the number by 100 and displays in fixed ('f') format, " +"followed by a percent sign." #: ../../whatsnew/2.6.rst:829 msgid "" @@ -1256,12 +1249,12 @@ msgstr "PEP 3105: ``print`` As a Function" #: ../../whatsnew/2.6.rst:861 msgid "" "The ``print`` statement becomes the :func:`print` function in Python 3.0. " -"Making :func:`print` a function makes it possible to replace the function by" -" doing ``def print(...)`` or importing a new function from somewhere else." +"Making :func:`print` a function makes it possible to replace the function by " +"doing ``def print(...)`` or importing a new function from somewhere else." msgstr "" "The ``print`` statement becomes the :func:`print` function in Python 3.0. " -"Making :func:`print` a function makes it possible to replace the function by" -" doing ``def print(...)`` or importing a new function from somewhere else." +"Making :func:`print` a function makes it possible to replace the function by " +"doing ``def print(...)`` or importing a new function from somewhere else." #: ../../whatsnew/2.6.rst:865 msgid "" @@ -1313,27 +1306,25 @@ msgstr "PEP 3110: Exception-Handling Changes" #: ../../whatsnew/2.6.rst:896 msgid "" -"One error that Python programmers occasionally make is writing the following" -" code::" +"One error that Python programmers occasionally make is writing the following " +"code::" msgstr "" -"One error that Python programmers occasionally make is writing the following" -" code::" +"One error that Python programmers occasionally make is writing the following " +"code::" #: ../../whatsnew/2.6.rst:904 msgid "" -"The author is probably trying to catch both :exc:`TypeError` and " -":exc:`ValueError` exceptions, but this code actually does something " -"different: it will catch :exc:`TypeError` and bind the resulting exception " -"object to the local name ``\"ValueError\"``. The :exc:`ValueError` " -"exception will not be caught at all. The correct code specifies a tuple of " -"exceptions::" +"The author is probably trying to catch both :exc:`TypeError` and :exc:" +"`ValueError` exceptions, but this code actually does something different: it " +"will catch :exc:`TypeError` and bind the resulting exception object to the " +"local name ``\"ValueError\"``. The :exc:`ValueError` exception will not be " +"caught at all. The correct code specifies a tuple of exceptions::" msgstr "" -"The author is probably trying to catch both :exc:`TypeError` and " -":exc:`ValueError` exceptions, but this code actually does something " -"different: it will catch :exc:`TypeError` and bind the resulting exception " -"object to the local name ``\"ValueError\"``. The :exc:`ValueError` " -"exception will not be caught at all. The correct code specifies a tuple of " -"exceptions::" +"The author is probably trying to catch both :exc:`TypeError` and :exc:" +"`ValueError` exceptions, but this code actually does something different: it " +"will catch :exc:`TypeError` and bind the resulting exception object to the " +"local name ``\"ValueError\"``. The :exc:`ValueError` exception will not be " +"caught at all. The correct code specifies a tuple of exceptions::" #: ../../whatsnew/2.6.rst:916 msgid "" @@ -1347,24 +1338,24 @@ msgstr "" #: ../../whatsnew/2.6.rst:920 msgid "" -"Python 3.0 makes this unambiguous by replacing the comma with the word " -"\"as\". To catch an exception and store the exception object in the " -"variable ``exc``, you must write::" +"Python 3.0 makes this unambiguous by replacing the comma with the word \"as" +"\". To catch an exception and store the exception object in the variable " +"``exc``, you must write::" msgstr "" -"Python 3.0 makes this unambiguous by replacing the comma with the word " -"\"as\". To catch an exception and store the exception object in the " -"variable ``exc``, you must write::" +"Python 3.0 makes this unambiguous by replacing the comma with the word \"as" +"\". To catch an exception and store the exception object in the variable " +"``exc``, you must write::" #: ../../whatsnew/2.6.rst:929 msgid "" -"Python 3.0 will only support the use of \"as\", and therefore interprets the" -" first example as catching two different exceptions. Python 2.6 supports " +"Python 3.0 will only support the use of \"as\", and therefore interprets the " +"first example as catching two different exceptions. Python 2.6 supports " "both the comma and \"as\", so existing code will continue to work. We " "therefore suggest using \"as\" when writing new Python code that will only " "be executed with 2.6." msgstr "" -"Python 3.0 will only support the use of \"as\", and therefore interprets the" -" first example as catching two different exceptions. Python 2.6 supports " +"Python 3.0 will only support the use of \"as\", and therefore interprets the " +"first example as catching two different exceptions. Python 2.6 supports " "both the comma and \"as\", so existing code will continue to work. We " "therefore suggest using \"as\" when writing new Python code that will only " "be executed with 2.6." @@ -1384,46 +1375,46 @@ msgstr "PEP 3112: Byte Literals" #: ../../whatsnew/2.6.rst:947 msgid "" "Python 3.0 adopts Unicode as the language's fundamental string type and " -"denotes 8-bit literals differently, either as ``b'string'`` or using a " -":class:`bytes` constructor. For future compatibility, Python 2.6 adds " -":class:`bytes` as a synonym for the :class:`str` type, and it also supports " -"the ``b''`` notation." +"denotes 8-bit literals differently, either as ``b'string'`` or using a :" +"class:`bytes` constructor. For future compatibility, Python 2.6 adds :class:" +"`bytes` as a synonym for the :class:`str` type, and it also supports the " +"``b''`` notation." msgstr "" "Python 3.0 adopts Unicode as the language's fundamental string type and " -"denotes 8-bit literals differently, either as ``b'string'`` or using a " -":class:`bytes` constructor. For future compatibility, Python 2.6 adds " -":class:`bytes` as a synonym for the :class:`str` type, and it also supports " -"the ``b''`` notation." +"denotes 8-bit literals differently, either as ``b'string'`` or using a :" +"class:`bytes` constructor. For future compatibility, Python 2.6 adds :class:" +"`bytes` as a synonym for the :class:`str` type, and it also supports the " +"``b''`` notation." #: ../../whatsnew/2.6.rst:954 msgid "" -"The 2.6 :class:`str` differs from 3.0's :class:`bytes` type in various ways;" -" most notably, the constructor is completely different. In 3.0, " -"``bytes([65, 66, 67])`` is 3 elements long, containing the bytes " -"representing ``ABC``; in 2.6, ``bytes([65, 66, 67])`` returns the 12-byte " -"string representing the :func:`str` of the list." +"The 2.6 :class:`str` differs from 3.0's :class:`bytes` type in various ways; " +"most notably, the constructor is completely different. In 3.0, ``bytes([65, " +"66, 67])`` is 3 elements long, containing the bytes representing ``ABC``; in " +"2.6, ``bytes([65, 66, 67])`` returns the 12-byte string representing the :" +"func:`str` of the list." msgstr "" -"The 2.6 :class:`str` differs from 3.0's :class:`bytes` type in various ways;" -" most notably, the constructor is completely different. In 3.0, " -"``bytes([65, 66, 67])`` is 3 elements long, containing the bytes " -"representing ``ABC``; in 2.6, ``bytes([65, 66, 67])`` returns the 12-byte " -"string representing the :func:`str` of the list." +"The 2.6 :class:`str` differs from 3.0's :class:`bytes` type in various ways; " +"most notably, the constructor is completely different. In 3.0, ``bytes([65, " +"66, 67])`` is 3 elements long, containing the bytes representing ``ABC``; in " +"2.6, ``bytes([65, 66, 67])`` returns the 12-byte string representing the :" +"func:`str` of the list." #: ../../whatsnew/2.6.rst:960 msgid "" "The primary use of :class:`bytes` in 2.6 will be to write tests of object " "type such as ``isinstance(x, bytes)``. This will help the 2to3 converter, " "which can't tell whether 2.x code intends strings to contain either " -"characters or 8-bit bytes; you can now use either :class:`bytes` or " -":class:`str` to represent your intention exactly, and the resulting code " -"will also be correct in Python 3.0." +"characters or 8-bit bytes; you can now use either :class:`bytes` or :class:" +"`str` to represent your intention exactly, and the resulting code will also " +"be correct in Python 3.0." msgstr "" "The primary use of :class:`bytes` in 2.6 will be to write tests of object " "type such as ``isinstance(x, bytes)``. This will help the 2to3 converter, " "which can't tell whether 2.x code intends strings to contain either " -"characters or 8-bit bytes; you can now use either :class:`bytes` or " -":class:`str` to represent your intention exactly, and the resulting code " -"will also be correct in Python 3.0." +"characters or 8-bit bytes; you can now use either :class:`bytes` or :class:" +"`str` to represent your intention exactly, and the resulting code will also " +"be correct in Python 3.0." #: ../../whatsnew/2.6.rst:967 msgid "" @@ -1439,17 +1430,17 @@ msgstr "" msgid "" "At the C level, Python 3.0 will rename the existing 8-bit string type, " "called :c:type:`PyStringObject` in Python 2.x, to :c:type:`PyBytesObject`. " -"Python 2.6 uses ``#define`` to support using the names " -":c:func:`PyBytesObject`, :c:func:`PyBytes_Check`, " -":c:func:`PyBytes_FromStringAndSize`, and all the other functions and macros " -"used with strings." +"Python 2.6 uses ``#define`` to support using the names :c:func:" +"`PyBytesObject`, :c:func:`PyBytes_Check`, :c:func:" +"`PyBytes_FromStringAndSize`, and all the other functions and macros used " +"with strings." msgstr "" "At the C level, Python 3.0 will rename the existing 8-bit string type, " "called :c:type:`PyStringObject` in Python 2.x, to :c:type:`PyBytesObject`. " -"Python 2.6 uses ``#define`` to support using the names " -":c:func:`PyBytesObject`, :c:func:`PyBytes_Check`, " -":c:func:`PyBytes_FromStringAndSize`, and all the other functions and macros " -"used with strings." +"Python 2.6 uses ``#define`` to support using the names :c:func:" +"`PyBytesObject`, :c:func:`PyBytes_Check`, :c:func:" +"`PyBytes_FromStringAndSize`, and all the other functions and macros used " +"with strings." #: ../../whatsnew/2.6.rst:986 msgid "" @@ -1461,23 +1452,21 @@ msgstr "" #: ../../whatsnew/2.6.rst:1001 msgid "" -"Byte arrays support most of the methods of string types, such as " -":meth:`startswith`/:meth:`endswith`, :meth:`find`/:meth:`rfind`, and some of" -" the methods of lists, such as :meth:`append`, :meth:`pop`, and " -":meth:`reverse`." +"Byte arrays support most of the methods of string types, such as :meth:" +"`startswith`/:meth:`endswith`, :meth:`find`/:meth:`rfind`, and some of the " +"methods of lists, such as :meth:`append`, :meth:`pop`, and :meth:`reverse`." msgstr "" -"Byte arrays support most of the methods of string types, such as " -":meth:`startswith`/:meth:`endswith`, :meth:`find`/:meth:`rfind`, and some of" -" the methods of lists, such as :meth:`append`, :meth:`pop`, and " -":meth:`reverse`." +"Byte arrays support most of the methods of string types, such as :meth:" +"`startswith`/:meth:`endswith`, :meth:`find`/:meth:`rfind`, and some of the " +"methods of lists, such as :meth:`append`, :meth:`pop`, and :meth:`reverse`." #: ../../whatsnew/2.6.rst:1014 msgid "" -"There's also a corresponding C API, with :c:func:`PyByteArray_FromObject`, " -":c:func:`PyByteArray_FromStringAndSize`, and various other functions." +"There's also a corresponding C API, with :c:func:`PyByteArray_FromObject`, :" +"c:func:`PyByteArray_FromStringAndSize`, and various other functions." msgstr "" -"There's also a corresponding C API, with :c:func:`PyByteArray_FromObject`, " -":c:func:`PyByteArray_FromStringAndSize`, and various other functions." +"There's also a corresponding C API, with :c:func:`PyByteArray_FromObject`, :" +"c:func:`PyByteArray_FromStringAndSize`, and various other functions." #: ../../whatsnew/2.6.rst:1021 msgid ":pep:`3112` - Bytes literals in Python 3000" @@ -1485,8 +1474,7 @@ msgstr ":pep:`3112` - Bytes literals in Python 3000" #: ../../whatsnew/2.6.rst:1022 msgid "PEP written by Jason Orendorff; backported to 2.6 by Christian Heimes." -msgstr "" -"PEP written by Jason Orendorff; backported to 2.6 by Christian Heimes." +msgstr "PEP written by Jason Orendorff; backported to 2.6 by Christian Heimes." #: ../../whatsnew/2.6.rst:1029 msgid "PEP 3116: New I/O Library" @@ -1496,15 +1484,15 @@ msgstr "PEP 3116: New I/O Library" msgid "" "Python's built-in file objects support a number of methods, but file-like " "objects don't necessarily support all of them. Objects that imitate files " -"usually support :meth:`read` and :meth:`write`, but they may not support " -":meth:`readline`, for example. Python 3.0 introduces a layered I/O library " +"usually support :meth:`read` and :meth:`write`, but they may not support :" +"meth:`readline`, for example. Python 3.0 introduces a layered I/O library " "in the :mod:`io` module that separates buffering and text-handling features " "from the fundamental read and write operations." msgstr "" "Python's built-in file objects support a number of methods, but file-like " "objects don't necessarily support all of them. Objects that imitate files " -"usually support :meth:`read` and :meth:`write`, but they may not support " -":meth:`readline`, for example. Python 3.0 introduces a layered I/O library " +"usually support :meth:`read` and :meth:`write`, but they may not support :" +"meth:`readline`, for example. Python 3.0 introduces a layered I/O library " "in the :mod:`io` module that separates buffering and text-handling features " "from the fundamental read and write operations." @@ -1518,85 +1506,85 @@ msgstr "" #: ../../whatsnew/2.6.rst:1042 msgid "" -":class:`RawIOBase` defines raw I/O operations: :meth:`read`, " -":meth:`readinto`, :meth:`write`, :meth:`seek`, :meth:`tell`, " -":meth:`truncate`, and :meth:`close`. Most of the methods of this class will " -"often map to a single system call. There are also :meth:`readable`, " -":meth:`writable`, and :meth:`seekable` methods for determining what " -"operations a given object will allow." +":class:`RawIOBase` defines raw I/O operations: :meth:`read`, :meth:" +"`readinto`, :meth:`write`, :meth:`seek`, :meth:`tell`, :meth:`truncate`, " +"and :meth:`close`. Most of the methods of this class will often map to a " +"single system call. There are also :meth:`readable`, :meth:`writable`, and :" +"meth:`seekable` methods for determining what operations a given object will " +"allow." msgstr "" -":class:`RawIOBase` defines raw I/O operations: :meth:`read`, " -":meth:`readinto`, :meth:`write`, :meth:`seek`, :meth:`tell`, " -":meth:`truncate`, and :meth:`close`. Most of the methods of this class will " -"often map to a single system call. There are also :meth:`readable`, " -":meth:`writable`, and :meth:`seekable` methods for determining what " -"operations a given object will allow." +":class:`RawIOBase` defines raw I/O operations: :meth:`read`, :meth:" +"`readinto`, :meth:`write`, :meth:`seek`, :meth:`tell`, :meth:`truncate`, " +"and :meth:`close`. Most of the methods of this class will often map to a " +"single system call. There are also :meth:`readable`, :meth:`writable`, and :" +"meth:`seekable` methods for determining what operations a given object will " +"allow." #: ../../whatsnew/2.6.rst:1050 msgid "" -"Python 3.0 has concrete implementations of this class for files and sockets," -" but Python 2.6 hasn't restructured its file and socket objects in this way." +"Python 3.0 has concrete implementations of this class for files and sockets, " +"but Python 2.6 hasn't restructured its file and socket objects in this way." msgstr "" -"Python 3.0 has concrete implementations of this class for files and sockets," -" but Python 2.6 hasn't restructured its file and socket objects in this way." +"Python 3.0 has concrete implementations of this class for files and sockets, " +"but Python 2.6 hasn't restructured its file and socket objects in this way." #: ../../whatsnew/2.6.rst:1056 msgid "" ":class:`BufferedIOBase` is an abstract base class that buffers data in " -"memory to reduce the number of system calls used, making I/O processing more" -" efficient. It supports all of the methods of :class:`RawIOBase`, and adds a" -" :attr:`raw` attribute holding the underlying raw object." +"memory to reduce the number of system calls used, making I/O processing more " +"efficient. It supports all of the methods of :class:`RawIOBase`, and adds a :" +"attr:`raw` attribute holding the underlying raw object." msgstr "" ":class:`BufferedIOBase` is an abstract base class that buffers data in " -"memory to reduce the number of system calls used, making I/O processing more" -" efficient. It supports all of the methods of :class:`RawIOBase`, and adds a" -" :attr:`raw` attribute holding the underlying raw object." +"memory to reduce the number of system calls used, making I/O processing more " +"efficient. It supports all of the methods of :class:`RawIOBase`, and adds a :" +"attr:`raw` attribute holding the underlying raw object." #: ../../whatsnew/2.6.rst:1062 msgid "" -"There are five concrete classes implementing this ABC. " -":class:`BufferedWriter` and :class:`BufferedReader` are for objects that " -"support write-only or read-only usage that have a :meth:`seek` method for " -"random access. :class:`BufferedRandom` objects support read and write " -"access upon the same underlying stream, and :class:`BufferedRWPair` is for " -"objects such as TTYs that have both read and write operations acting upon " -"unconnected streams of data. The :class:`BytesIO` class supports reading, " -"writing, and seeking over an in-memory buffer." -msgstr "" -"There are five concrete classes implementing this ABC. " -":class:`BufferedWriter` and :class:`BufferedReader` are for objects that " -"support write-only or read-only usage that have a :meth:`seek` method for " -"random access. :class:`BufferedRandom` objects support read and write " -"access upon the same underlying stream, and :class:`BufferedRWPair` is for " -"objects such as TTYs that have both read and write operations acting upon " -"unconnected streams of data. The :class:`BytesIO` class supports reading, " -"writing, and seeking over an in-memory buffer." +"There are five concrete classes implementing this ABC. :class:" +"`BufferedWriter` and :class:`BufferedReader` are for objects that support " +"write-only or read-only usage that have a :meth:`seek` method for random " +"access. :class:`BufferedRandom` objects support read and write access upon " +"the same underlying stream, and :class:`BufferedRWPair` is for objects such " +"as TTYs that have both read and write operations acting upon unconnected " +"streams of data. The :class:`BytesIO` class supports reading, writing, and " +"seeking over an in-memory buffer." +msgstr "" +"There are five concrete classes implementing this ABC. :class:" +"`BufferedWriter` and :class:`BufferedReader` are for objects that support " +"write-only or read-only usage that have a :meth:`seek` method for random " +"access. :class:`BufferedRandom` objects support read and write access upon " +"the same underlying stream, and :class:`BufferedRWPair` is for objects such " +"as TTYs that have both read and write operations acting upon unconnected " +"streams of data. The :class:`BytesIO` class supports reading, writing, and " +"seeking over an in-memory buffer." #: ../../whatsnew/2.6.rst:1075 msgid "" ":class:`TextIOBase`: Provides functions for reading and writing strings " -"(remember, strings will be Unicode in Python 3.0), and supporting " -":term:`universal newlines`. :class:`TextIOBase` defines the " -":meth:`readline` method and supports iteration upon objects." +"(remember, strings will be Unicode in Python 3.0), and supporting :term:" +"`universal newlines`. :class:`TextIOBase` defines the :meth:`readline` " +"method and supports iteration upon objects." msgstr "" ":class:`TextIOBase`: Provides functions for reading and writing strings " -"(remember, strings will be Unicode in Python 3.0), and supporting " -":term:`universal newlines`. :class:`TextIOBase` defines the " -":meth:`readline` method and supports iteration upon objects." +"(remember, strings will be Unicode in Python 3.0), and supporting :term:" +"`universal newlines`. :class:`TextIOBase` defines the :meth:`readline` " +"method and supports iteration upon objects." #: ../../whatsnew/2.6.rst:1081 msgid "" "There are two concrete implementations. :class:`TextIOWrapper` wraps a " -"buffered I/O object, supporting all of the methods for text I/O and adding a" -" :attr:`buffer` attribute for access to the underlying object. " -":class:`StringIO` simply buffers everything in memory without ever writing " -"anything to disk." +"buffered I/O object, supporting all of the methods for text I/O and adding " +"a :attr:`buffer` attribute for access to the underlying object. :class:" +"`StringIO` simply buffers everything in memory without ever writing anything " +"to disk." msgstr "" "There are two concrete implementations. :class:`TextIOWrapper` wraps a " -"buffered I/O object, supporting all of the methods for text I/O and adding a" -" :attr:`buffer` attribute for access to the underlying object. " -":class:`StringIO` simply buffers everything in memory without ever writing " -"anything to disk." +"buffered I/O object, supporting all of the methods for text I/O and adding " +"a :attr:`buffer` attribute for access to the underlying object. :class:" +"`StringIO` simply buffers everything in memory without ever writing anything " +"to disk." #: ../../whatsnew/2.6.rst:1087 msgid "" @@ -1616,14 +1604,14 @@ msgstr "" msgid "" "In Python 2.6, the underlying implementations haven't been restructured to " "build on top of the :mod:`io` module's classes. The module is being " -"provided to make it easier to write code that's forward-compatible with 3.0," -" and to save developers the effort of writing their own implementations of " +"provided to make it easier to write code that's forward-compatible with 3.0, " +"and to save developers the effort of writing their own implementations of " "buffering and text I/O." msgstr "" "In Python 2.6, the underlying implementations haven't been restructured to " "build on top of the :mod:`io` module's classes. The module is being " -"provided to make it easier to write code that's forward-compatible with 3.0," -" and to save developers the effort of writing their own implementations of " +"provided to make it easier to write code that's forward-compatible with 3.0, " +"and to save developers the effort of writing their own implementations of " "buffering and text I/O." #: ../../whatsnew/2.6.rst:1103 @@ -1632,12 +1620,12 @@ msgstr ":pep:`3116` - New I/O" #: ../../whatsnew/2.6.rst:1102 msgid "" -"PEP written by Daniel Stutzbach, Mike Verdone, and Guido van Rossum. Code by" -" Guido van Rossum, Georg Brandl, Walter Doerwald, Jeremy Hylton, Martin von " +"PEP written by Daniel Stutzbach, Mike Verdone, and Guido van Rossum. Code by " +"Guido van Rossum, Georg Brandl, Walter Doerwald, Jeremy Hylton, Martin von " "Löwis, Tony Lownds, and others." msgstr "" -"PEP written by Daniel Stutzbach, Mike Verdone, and Guido van Rossum. Code by" -" Guido van Rossum, Georg Brandl, Walter Doerwald, Jeremy Hylton, Martin von " +"PEP written by Daniel Stutzbach, Mike Verdone, and Guido van Rossum. Code by " +"Guido van Rossum, Georg Brandl, Walter Doerwald, Jeremy Hylton, Martin von " "Löwis, Tony Lownds, and others." #: ../../whatsnew/2.6.rst:1111 @@ -1676,20 +1664,20 @@ msgstr "" #: ../../whatsnew/2.6.rst:1126 msgid "" -"The most important new C API function is ``PyObject_GetBuffer(PyObject *obj," -" Py_buffer *view, int flags)``, which takes an object and a set of flags, " -"and fills in the ``Py_buffer`` structure with information about the object's" -" memory representation. Objects can use this operation to lock memory in " -"place while an external caller could be modifying the contents, so there's a" -" corresponding ``PyBuffer_Release(Py_buffer *view)`` to indicate that the " +"The most important new C API function is ``PyObject_GetBuffer(PyObject *obj, " +"Py_buffer *view, int flags)``, which takes an object and a set of flags, and " +"fills in the ``Py_buffer`` structure with information about the object's " +"memory representation. Objects can use this operation to lock memory in " +"place while an external caller could be modifying the contents, so there's a " +"corresponding ``PyBuffer_Release(Py_buffer *view)`` to indicate that the " "external caller is done." msgstr "" -"The most important new C API function is ``PyObject_GetBuffer(PyObject *obj," -" Py_buffer *view, int flags)``, which takes an object and a set of flags, " -"and fills in the ``Py_buffer`` structure with information about the object's" -" memory representation. Objects can use this operation to lock memory in " -"place while an external caller could be modifying the contents, so there's a" -" corresponding ``PyBuffer_Release(Py_buffer *view)`` to indicate that the " +"The most important new C API function is ``PyObject_GetBuffer(PyObject *obj, " +"Py_buffer *view, int flags)``, which takes an object and a set of flags, and " +"fills in the ``Py_buffer`` structure with information about the object's " +"memory representation. Objects can use this operation to lock memory in " +"place while an external caller could be modifying the contents, so there's a " +"corresponding ``PyBuffer_Release(Py_buffer *view)`` to indicate that the " "external caller is done." #: ../../whatsnew/2.6.rst:1138 @@ -1712,13 +1700,13 @@ msgstr "" #: ../../whatsnew/2.6.rst:1145 msgid "" -":const:`PyBUF_C_CONTIGUOUS` and :const:`PyBUF_F_CONTIGUOUS` requests a " -"C-contiguous (last dimension varies the fastest) or Fortran-contiguous " -"(first dimension varies the fastest) array layout." +":const:`PyBUF_C_CONTIGUOUS` and :const:`PyBUF_F_CONTIGUOUS` requests a C-" +"contiguous (last dimension varies the fastest) or Fortran-contiguous (first " +"dimension varies the fastest) array layout." msgstr "" -":const:`PyBUF_C_CONTIGUOUS` and :const:`PyBUF_F_CONTIGUOUS` requests a " -"C-contiguous (last dimension varies the fastest) or Fortran-contiguous " -"(first dimension varies the fastest) array layout." +":const:`PyBUF_C_CONTIGUOUS` and :const:`PyBUF_F_CONTIGUOUS` requests a C-" +"contiguous (last dimension varies the fastest) or Fortran-contiguous (first " +"dimension varies the fastest) array layout." #: ../../whatsnew/2.6.rst:1149 msgid "" @@ -1747,58 +1735,58 @@ msgstr "PEP 3119: Abstract Base Classes" #: ../../whatsnew/2.6.rst:1166 msgid "" "Some object-oriented languages such as Java support interfaces, declaring " -"that a class has a given set of methods or supports a given access protocol." -" Abstract Base Classes (or ABCs) are an equivalent feature for Python. The " -"ABC support consists of an :mod:`abc` module containing a metaclass called " -":class:`ABCMeta`, special handling of this metaclass by the " -":func:`isinstance` and :func:`issubclass` builtins, and a collection of " +"that a class has a given set of methods or supports a given access " +"protocol. Abstract Base Classes (or ABCs) are an equivalent feature for " +"Python. The ABC support consists of an :mod:`abc` module containing a " +"metaclass called :class:`ABCMeta`, special handling of this metaclass by " +"the :func:`isinstance` and :func:`issubclass` builtins, and a collection of " "basic ABCs that the Python developers think will be widely useful. Future " "versions of Python will probably add more ABCs." msgstr "" "Some object-oriented languages such as Java support interfaces, declaring " -"that a class has a given set of methods or supports a given access protocol." -" Abstract Base Classes (or ABCs) are an equivalent feature for Python. The " -"ABC support consists of an :mod:`abc` module containing a metaclass called " -":class:`ABCMeta`, special handling of this metaclass by the " -":func:`isinstance` and :func:`issubclass` builtins, and a collection of " +"that a class has a given set of methods or supports a given access " +"protocol. Abstract Base Classes (or ABCs) are an equivalent feature for " +"Python. The ABC support consists of an :mod:`abc` module containing a " +"metaclass called :class:`ABCMeta`, special handling of this metaclass by " +"the :func:`isinstance` and :func:`issubclass` builtins, and a collection of " "basic ABCs that the Python developers think will be widely useful. Future " "versions of Python will probably add more ABCs." #: ../../whatsnew/2.6.rst:1176 msgid "" "Let's say you have a particular class and wish to know whether it supports " -"dictionary-style access. The phrase \"dictionary-style\" is vague, however." -" It probably means that accessing items with ``obj[1]`` works. Does it imply" -" that setting items with ``obj[2] = value`` works? Or that the object will " +"dictionary-style access. The phrase \"dictionary-style\" is vague, however. " +"It probably means that accessing items with ``obj[1]`` works. Does it imply " +"that setting items with ``obj[2] = value`` works? Or that the object will " "have :meth:`keys`, :meth:`values`, and :meth:`items` methods? What about " -"the iterative variants such as :meth:`iterkeys`? :meth:`copy` and " -":meth:`update`? Iterating over the object with :func:`iter`?" +"the iterative variants such as :meth:`iterkeys`? :meth:`copy` and :meth:" +"`update`? Iterating over the object with :func:`iter`?" msgstr "" "Let's say you have a particular class and wish to know whether it supports " -"dictionary-style access. The phrase \"dictionary-style\" is vague, however." -" It probably means that accessing items with ``obj[1]`` works. Does it imply" -" that setting items with ``obj[2] = value`` works? Or that the object will " +"dictionary-style access. The phrase \"dictionary-style\" is vague, however. " +"It probably means that accessing items with ``obj[1]`` works. Does it imply " +"that setting items with ``obj[2] = value`` works? Or that the object will " "have :meth:`keys`, :meth:`values`, and :meth:`items` methods? What about " -"the iterative variants such as :meth:`iterkeys`? :meth:`copy` and " -":meth:`update`? Iterating over the object with :func:`iter`?" +"the iterative variants such as :meth:`iterkeys`? :meth:`copy` and :meth:" +"`update`? Iterating over the object with :func:`iter`?" #: ../../whatsnew/2.6.rst:1184 msgid "" -"The Python 2.6 :mod:`collections` module includes a number of different ABCs" -" that represent these distinctions. :class:`Iterable` indicates that a " -"class defines :meth:`__iter__`, and :class:`Container` means the class " -"defines a :meth:`__contains__` method and therefore supports ``x in y`` " -"expressions. The basic dictionary interface of getting items, setting " -"items, and :meth:`keys`, :meth:`values`, and :meth:`items`, is defined by " -"the :class:`MutableMapping` ABC." -msgstr "" -"The Python 2.6 :mod:`collections` module includes a number of different ABCs" -" that represent these distinctions. :class:`Iterable` indicates that a " -"class defines :meth:`__iter__`, and :class:`Container` means the class " -"defines a :meth:`__contains__` method and therefore supports ``x in y`` " -"expressions. The basic dictionary interface of getting items, setting " -"items, and :meth:`keys`, :meth:`values`, and :meth:`items`, is defined by " -"the :class:`MutableMapping` ABC." +"The Python 2.6 :mod:`collections` module includes a number of different ABCs " +"that represent these distinctions. :class:`Iterable` indicates that a class " +"defines :meth:`__iter__`, and :class:`Container` means the class defines a :" +"meth:`__contains__` method and therefore supports ``x in y`` expressions. " +"The basic dictionary interface of getting items, setting items, and :meth:" +"`keys`, :meth:`values`, and :meth:`items`, is defined by the :class:" +"`MutableMapping` ABC." +msgstr "" +"The Python 2.6 :mod:`collections` module includes a number of different ABCs " +"that represent these distinctions. :class:`Iterable` indicates that a class " +"defines :meth:`__iter__`, and :class:`Container` means the class defines a :" +"meth:`__contains__` method and therefore supports ``x in y`` expressions. " +"The basic dictionary interface of getting items, setting items, and :meth:" +"`keys`, :meth:`values`, and :meth:`items`, is defined by the :class:" +"`MutableMapping` ABC." #: ../../whatsnew/2.6.rst:1193 msgid "" @@ -1820,27 +1808,27 @@ msgstr "" #: ../../whatsnew/2.6.rst:1213 msgid "" -"For classes that you write, deriving from the ABC is probably clearer. The " -":meth:`register` method is useful when you've written a new ABC that can " +"For classes that you write, deriving from the ABC is probably clearer. The :" +"meth:`register` method is useful when you've written a new ABC that can " "describe an existing type or class, or if you want to declare that some " -"third-party class implements an ABC. For example, if you defined a " -":class:`PrintableType` ABC, it's legal to do::" +"third-party class implements an ABC. For example, if you defined a :class:" +"`PrintableType` ABC, it's legal to do::" msgstr "" -"For classes that you write, deriving from the ABC is probably clearer. The " -":meth:`register` method is useful when you've written a new ABC that can " +"For classes that you write, deriving from the ABC is probably clearer. The :" +"meth:`register` method is useful when you've written a new ABC that can " "describe an existing type or class, or if you want to declare that some " -"third-party class implements an ABC. For example, if you defined a " -":class:`PrintableType` ABC, it's legal to do::" +"third-party class implements an ABC. For example, if you defined a :class:" +"`PrintableType` ABC, it's legal to do::" #: ../../whatsnew/2.6.rst:1225 msgid "" "Classes should obey the semantics specified by an ABC, but Python can't " -"check this; it's up to the class author to understand the ABC's requirements" -" and to implement the code accordingly." +"check this; it's up to the class author to understand the ABC's requirements " +"and to implement the code accordingly." msgstr "" "Classes should obey the semantics specified by an ABC, but Python can't " -"check this; it's up to the class author to understand the ABC's requirements" -" and to implement the code accordingly." +"check this; it's up to the class author to understand the ABC's requirements " +"and to implement the code accordingly." #: ../../whatsnew/2.6.rst:1229 msgid "" @@ -1879,32 +1867,30 @@ msgid "" "In the :class:`Drawable` ABC above, the :meth:`draw_doubled` method renders " "the object at twice its size and can be implemented in terms of other " "methods described in :class:`Drawable`. Classes implementing this ABC " -"therefore don't need to provide their own implementation of " -":meth:`draw_doubled`, though they can do so. An implementation of " -":meth:`draw` is necessary, though; the ABC can't provide a useful generic " -"implementation." +"therefore don't need to provide their own implementation of :meth:" +"`draw_doubled`, though they can do so. An implementation of :meth:`draw` is " +"necessary, though; the ABC can't provide a useful generic implementation." msgstr "" "In the :class:`Drawable` ABC above, the :meth:`draw_doubled` method renders " "the object at twice its size and can be implemented in terms of other " "methods described in :class:`Drawable`. Classes implementing this ABC " -"therefore don't need to provide their own implementation of " -":meth:`draw_doubled`, though they can do so. An implementation of " -":meth:`draw` is necessary, though; the ABC can't provide a useful generic " -"implementation." +"therefore don't need to provide their own implementation of :meth:" +"`draw_doubled`, though they can do so. An implementation of :meth:`draw` is " +"necessary, though; the ABC can't provide a useful generic implementation." #: ../../whatsnew/2.6.rst:1272 msgid "" -"You can apply the ``@abstractmethod`` decorator to methods such as " -":meth:`draw` that must be implemented; Python will then raise an exception " -"for classes that don't define the method. Note that the exception is only " -"raised when you actually try to create an instance of a subclass lacking the" -" method::" +"You can apply the ``@abstractmethod`` decorator to methods such as :meth:" +"`draw` that must be implemented; Python will then raise an exception for " +"classes that don't define the method. Note that the exception is only raised " +"when you actually try to create an instance of a subclass lacking the " +"method::" msgstr "" -"You can apply the ``@abstractmethod`` decorator to methods such as " -":meth:`draw` that must be implemented; Python will then raise an exception " -"for classes that don't define the method. Note that the exception is only " -"raised when you actually try to create an instance of a subclass lacking the" -" method::" +"You can apply the ``@abstractmethod`` decorator to methods such as :meth:" +"`draw` that must be implemented; Python will then raise an exception for " +"classes that don't define the method. Note that the exception is only raised " +"when you actually try to create an instance of a subclass lacking the " +"method::" #: ../../whatsnew/2.6.rst:1287 msgid "" @@ -1936,12 +1922,12 @@ msgstr "PEP 3127: Integer Literal Support and Syntax" #: ../../whatsnew/2.6.rst:1313 msgid "" -"Python 3.0 changes the syntax for octal (base-8) integer literals, prefixing" -" them with \"0o\" or \"0O\" instead of a leading zero, and adds support for " +"Python 3.0 changes the syntax for octal (base-8) integer literals, prefixing " +"them with \"0o\" or \"0O\" instead of a leading zero, and adds support for " "binary (base-2) integer literals, signalled by a \"0b\" or \"0B\" prefix." msgstr "" -"Python 3.0 changes the syntax for octal (base-8) integer literals, prefixing" -" them with \"0o\" or \"0O\" instead of a leading zero, and adds support for " +"Python 3.0 changes the syntax for octal (base-8) integer literals, prefixing " +"them with \"0o\" or \"0O\" instead of a leading zero, and adds support for " "binary (base-2) integer literals, signalled by a \"0b\" or \"0B\" prefix." #: ../../whatsnew/2.6.rst:1318 @@ -1964,15 +1950,15 @@ msgstr "" #: ../../whatsnew/2.6.rst:1337 msgid "" -"The :func:`int` and :func:`long` builtins will now accept the \"0o\" and " -"\"0b\" prefixes when base-8 or base-2 are requested, or when the *base* " -"argument is zero (signalling that the base used should be determined from " -"the string)::" +"The :func:`int` and :func:`long` builtins will now accept the \"0o\" and \"0b" +"\" prefixes when base-8 or base-2 are requested, or when the *base* argument " +"is zero (signalling that the base used should be determined from the " +"string)::" msgstr "" -"The :func:`int` and :func:`long` builtins will now accept the \"0o\" and " -"\"0b\" prefixes when base-8 or base-2 are requested, or when the *base* " -"argument is zero (signalling that the base used should be determined from " -"the string)::" +"The :func:`int` and :func:`long` builtins will now accept the \"0o\" and \"0b" +"\" prefixes when base-8 or base-2 are requested, or when the *base* argument " +"is zero (signalling that the base used should be determined from the " +"string)::" #: ../../whatsnew/2.6.rst:1355 msgid ":pep:`3127` - Integer Literal Support and Syntax" @@ -2013,12 +1999,12 @@ msgstr "PEP 3141: A Type Hierarchy for Numbers" #: ../../whatsnew/2.6.rst:1392 msgid "" "Python 3.0 adds several abstract base classes for numeric types inspired by " -"Scheme's numeric tower. These classes were backported to 2.6 as the " -":mod:`numbers` module." +"Scheme's numeric tower. These classes were backported to 2.6 as the :mod:" +"`numbers` module." msgstr "" "Python 3.0 adds several abstract base classes for numeric types inspired by " -"Scheme's numeric tower. These classes were backported to 2.6 as the " -":mod:`numbers` module." +"Scheme's numeric tower. These classes were backported to 2.6 as the :mod:" +"`numbers` module." #: ../../whatsnew/2.6.rst:1396 msgid "" @@ -2035,14 +2021,14 @@ msgid "" ":class:`Complex` is a subclass of :class:`Number`. Complex numbers can " "undergo the basic operations of addition, subtraction, multiplication, " "division, and exponentiation, and you can retrieve the real and imaginary " -"parts and obtain a number's conjugate. Python's built-in complex type is an" -" implementation of :class:`Complex`." +"parts and obtain a number's conjugate. Python's built-in complex type is an " +"implementation of :class:`Complex`." msgstr "" ":class:`Complex` is a subclass of :class:`Number`. Complex numbers can " "undergo the basic operations of addition, subtraction, multiplication, " "division, and exponentiation, and you can retrieve the real and imaginary " -"parts and obtain a number's conjugate. Python's built-in complex type is an" -" implementation of :class:`Complex`." +"parts and obtain a number's conjugate. Python's built-in complex type is an " +"implementation of :class:`Complex`." #: ../../whatsnew/2.6.rst:1406 msgid "" @@ -2058,15 +2044,15 @@ msgstr "" msgid "" ":class:`Rational` numbers derive from :class:`Real`, have :attr:`numerator` " "and :attr:`denominator` properties, and can be converted to floats. Python " -"2.6 adds a simple rational-number class, :class:`Fraction`, in the " -":mod:`fractions` module. (It's called :class:`Fraction` instead of " -":class:`Rational` to avoid a name clash with :class:`numbers.Rational`.)" +"2.6 adds a simple rational-number class, :class:`Fraction`, in the :mod:" +"`fractions` module. (It's called :class:`Fraction` instead of :class:" +"`Rational` to avoid a name clash with :class:`numbers.Rational`.)" msgstr "" ":class:`Rational` numbers derive from :class:`Real`, have :attr:`numerator` " "and :attr:`denominator` properties, and can be converted to floats. Python " -"2.6 adds a simple rational-number class, :class:`Fraction`, in the " -":mod:`fractions` module. (It's called :class:`Fraction` instead of " -":class:`Rational` to avoid a name clash with :class:`numbers.Rational`.)" +"2.6 adds a simple rational-number class, :class:`Fraction`, in the :mod:" +"`fractions` module. (It's called :class:`Fraction` instead of :class:" +"`Rational` to avoid a name clash with :class:`numbers.Rational`.)" #: ../../whatsnew/2.6.rst:1418 msgid "" @@ -2082,16 +2068,16 @@ msgstr "" #: ../../whatsnew/2.6.rst:1423 msgid "" -"In Python 3.0, the PEP slightly redefines the existing builtins " -":func:`round`, :func:`math.floor`, :func:`math.ceil`, and adds a new one, " -":func:`math.trunc`, that's been backported to Python 2.6. :func:`math.trunc`" -" rounds toward zero, returning the closest :class:`Integral` that's between " +"In Python 3.0, the PEP slightly redefines the existing builtins :func:" +"`round`, :func:`math.floor`, :func:`math.ceil`, and adds a new one, :func:" +"`math.trunc`, that's been backported to Python 2.6. :func:`math.trunc` " +"rounds toward zero, returning the closest :class:`Integral` that's between " "the function's argument and zero." msgstr "" -"In Python 3.0, the PEP slightly redefines the existing builtins " -":func:`round`, :func:`math.floor`, :func:`math.ceil`, and adds a new one, " -":func:`math.trunc`, that's been backported to Python 2.6. :func:`math.trunc`" -" rounds toward zero, returning the closest :class:`Integral` that's between " +"In Python 3.0, the PEP slightly redefines the existing builtins :func:" +"`round`, :func:`math.floor`, :func:`math.ceil`, and adds a new one, :func:" +"`math.trunc`, that's been backported to Python 2.6. :func:`math.trunc` " +"rounds toward zero, returning the closest :class:`Integral` that's between " "the function's argument and zero." #: ../../whatsnew/2.6.rst:1432 @@ -2104,23 +2090,19 @@ msgstr "PEP written by Jeffrey Yasskin." #: ../../whatsnew/2.6.rst:1434 msgid "" -"`Scheme's numerical tower " -"`__, from the Guile manual." +"`Scheme's numerical tower `__, from the Guile manual." msgstr "" -"`Scheme's numerical tower " -"`__, from the Guile manual." +"`Scheme's numerical tower `__, from the Guile manual." #: ../../whatsnew/2.6.rst:1436 msgid "" -"`Scheme's number datatypes " -"`__" -" from the R5RS Scheme specification." +"`Scheme's number datatypes `__ from the R5RS Scheme specification." msgstr "" -"`Scheme's number datatypes " -"`__" -" from the R5RS Scheme specification." +"`Scheme's number datatypes `__ from the R5RS Scheme specification." #: ../../whatsnew/2.6.rst:1440 msgid "The :mod:`fractions` Module" @@ -2187,34 +2169,34 @@ msgstr "Some smaller changes made to the core Python language are:" #: ../../whatsnew/2.6.rst:1489 msgid "" "Directories and zip archives containing a :file:`__main__.py` file can now " -"be executed directly by passing their name to the interpreter. The directory" -" or zip archive is automatically inserted as the first entry in sys.path. " +"be executed directly by passing their name to the interpreter. The directory " +"or zip archive is automatically inserted as the first entry in sys.path. " "(Suggestion and initial patch by Andy Chu, subsequently revised by Phillip " "J. Eby and Nick Coghlan; :issue:`1739468`.)" msgstr "" "Directories and zip archives containing a :file:`__main__.py` file can now " -"be executed directly by passing their name to the interpreter. The directory" -" or zip archive is automatically inserted as the first entry in sys.path. " +"be executed directly by passing their name to the interpreter. The directory " +"or zip archive is automatically inserted as the first entry in sys.path. " "(Suggestion and initial patch by Andy Chu, subsequently revised by Phillip " "J. Eby and Nick Coghlan; :issue:`1739468`.)" #: ../../whatsnew/2.6.rst:1496 msgid "" -"The :func:`hasattr` function was catching and ignoring all errors, under the" -" assumption that they meant a :meth:`__getattr__` method was failing somehow" -" and the return value of :func:`hasattr` would therefore be ``False``. This" -" logic shouldn't be applied to :exc:`KeyboardInterrupt` and " -":exc:`SystemExit`, however; Python 2.6 will no longer discard such " -"exceptions when :func:`hasattr` encounters them. (Fixed by Benjamin " -"Peterson; :issue:`2196`.)" -msgstr "" -"The :func:`hasattr` function was catching and ignoring all errors, under the" -" assumption that they meant a :meth:`__getattr__` method was failing somehow" -" and the return value of :func:`hasattr` would therefore be ``False``. This" -" logic shouldn't be applied to :exc:`KeyboardInterrupt` and " -":exc:`SystemExit`, however; Python 2.6 will no longer discard such " -"exceptions when :func:`hasattr` encounters them. (Fixed by Benjamin " -"Peterson; :issue:`2196`.)" +"The :func:`hasattr` function was catching and ignoring all errors, under the " +"assumption that they meant a :meth:`__getattr__` method was failing somehow " +"and the return value of :func:`hasattr` would therefore be ``False``. This " +"logic shouldn't be applied to :exc:`KeyboardInterrupt` and :exc:" +"`SystemExit`, however; Python 2.6 will no longer discard such exceptions " +"when :func:`hasattr` encounters them. (Fixed by Benjamin Peterson; :issue:" +"`2196`.)" +msgstr "" +"The :func:`hasattr` function was catching and ignoring all errors, under the " +"assumption that they meant a :meth:`__getattr__` method was failing somehow " +"and the return value of :func:`hasattr` would therefore be ``False``. This " +"logic shouldn't be applied to :exc:`KeyboardInterrupt` and :exc:" +"`SystemExit`, however; Python 2.6 will no longer discard such exceptions " +"when :func:`hasattr` encounters them. (Fixed by Benjamin Peterson; :issue:" +"`2196`.)" #: ../../whatsnew/2.6.rst:1504 msgid "" @@ -2250,15 +2232,13 @@ msgstr "" msgid "" "A new builtin, ``next(iterator, [default])`` returns the next item from the " "specified iterator. If the *default* argument is supplied, it will be " -"returned if *iterator* has been exhausted; otherwise, the " -":exc:`StopIteration` exception will be raised. (Backported in " -":issue:`2719`.)" +"returned if *iterator* has been exhausted; otherwise, the :exc:" +"`StopIteration` exception will be raised. (Backported in :issue:`2719`.)" msgstr "" "A new builtin, ``next(iterator, [default])`` returns the next item from the " "specified iterator. If the *default* argument is supplied, it will be " -"returned if *iterator* has been exhausted; otherwise, the " -":exc:`StopIteration` exception will be raised. (Backported in " -":issue:`2719`.)" +"returned if *iterator* has been exhausted; otherwise, the :exc:" +"`StopIteration` exception will be raised. (Backported in :issue:`2719`.)" #: ../../whatsnew/2.6.rst:1537 msgid "" @@ -2286,25 +2266,25 @@ msgstr "" #: ../../whatsnew/2.6.rst:1555 msgid "" -"Properties now have three attributes, :attr:`getter`, :attr:`setter` and " -":attr:`deleter`, that are decorators providing useful shortcuts for adding a" -" getter, setter or deleter function to an existing property. You would use " +"Properties now have three attributes, :attr:`getter`, :attr:`setter` and :" +"attr:`deleter`, that are decorators providing useful shortcuts for adding a " +"getter, setter or deleter function to an existing property. You would use " "them like this::" msgstr "" -"Properties now have three attributes, :attr:`getter`, :attr:`setter` and " -":attr:`deleter`, that are decorators providing useful shortcuts for adding a" -" getter, setter or deleter function to an existing property. You would use " +"Properties now have three attributes, :attr:`getter`, :attr:`setter` and :" +"attr:`deleter`, that are decorators providing useful shortcuts for adding a " +"getter, setter or deleter function to an existing property. You would use " "them like this::" #: ../../whatsnew/2.6.rst:1582 msgid "" -"Several methods of the built-in set types now accept multiple iterables: " -":meth:`intersection`, :meth:`intersection_update`, :meth:`union`, " -":meth:`update`, :meth:`difference` and :meth:`difference_update`." +"Several methods of the built-in set types now accept multiple iterables: :" +"meth:`intersection`, :meth:`intersection_update`, :meth:`union`, :meth:" +"`update`, :meth:`difference` and :meth:`difference_update`." msgstr "" -"Several methods of the built-in set types now accept multiple iterables: " -":meth:`intersection`, :meth:`intersection_update`, :meth:`union`, " -":meth:`update`, :meth:`difference` and :meth:`difference_update`." +"Several methods of the built-in set types now accept multiple iterables: :" +"meth:`intersection`, :meth:`intersection_update`, :meth:`union`, :meth:" +"`update`, :meth:`difference` and :meth:`difference_update`." #: ../../whatsnew/2.6.rst:1596 ../../whatsnew/2.6.rst:1880 #: ../../whatsnew/2.6.rst:1901 @@ -2314,26 +2294,26 @@ msgstr "(Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.6.rst:1598 msgid "" "Many floating-point features were added. The :func:`float` function will " -"now turn the string ``nan`` into an IEEE 754 Not A Number value, and " -"``+inf`` and ``-inf`` into positive or negative infinity. This works on any" -" platform with IEEE 754 semantics. (Contributed by Christian Heimes; " -":issue:`1635`.)" +"now turn the string ``nan`` into an IEEE 754 Not A Number value, and ``" +"+inf`` and ``-inf`` into positive or negative infinity. This works on any " +"platform with IEEE 754 semantics. (Contributed by Christian Heimes; :issue:" +"`1635`.)" msgstr "" "Many floating-point features were added. The :func:`float` function will " -"now turn the string ``nan`` into an IEEE 754 Not A Number value, and " -"``+inf`` and ``-inf`` into positive or negative infinity. This works on any" -" platform with IEEE 754 semantics. (Contributed by Christian Heimes; " -":issue:`1635`.)" +"now turn the string ``nan`` into an IEEE 754 Not A Number value, and ``" +"+inf`` and ``-inf`` into positive or negative infinity. This works on any " +"platform with IEEE 754 semantics. (Contributed by Christian Heimes; :issue:" +"`1635`.)" #: ../../whatsnew/2.6.rst:1604 msgid "" "Other functions in the :mod:`math` module, :func:`isinf` and :func:`isnan`, " -"return true if their floating-point argument is infinite or Not A Number. " -"(:issue:`1640`)" +"return true if their floating-point argument is infinite or Not A Number. (:" +"issue:`1640`)" msgstr "" "Other functions in the :mod:`math` module, :func:`isinf` and :func:`isnan`, " -"return true if their floating-point argument is infinite or Not A Number. " -"(:issue:`1640`)" +"return true if their floating-point argument is infinite or Not A Number. (:" +"issue:`1640`)" #: ../../whatsnew/2.6.rst:1608 msgid "" @@ -2379,114 +2359,112 @@ msgstr "" msgid "" "You should do this when you've defined a :meth:`__cmp__` or :meth:`__eq__` " "method that compares objects by their value rather than by identity. All " -"objects have a default hash method that uses ``id(obj)`` as the hash value." -" There's no tidy way to remove the :meth:`__hash__` method inherited from a" -" parent class, so assigning ``None`` was implemented as an override. At the" -" C level, extensions can set ``tp_hash`` to " -":c:func:`PyObject_HashNotImplemented`. (Fixed by Nick Coghlan and Amaury " -"Forgeot d'Arc; :issue:`2235`.)" +"objects have a default hash method that uses ``id(obj)`` as the hash value. " +"There's no tidy way to remove the :meth:`__hash__` method inherited from a " +"parent class, so assigning ``None`` was implemented as an override. At the " +"C level, extensions can set ``tp_hash`` to :c:func:" +"`PyObject_HashNotImplemented`. (Fixed by Nick Coghlan and Amaury Forgeot " +"d'Arc; :issue:`2235`.)" msgstr "" "You should do this when you've defined a :meth:`__cmp__` or :meth:`__eq__` " "method that compares objects by their value rather than by identity. All " -"objects have a default hash method that uses ``id(obj)`` as the hash value." -" There's no tidy way to remove the :meth:`__hash__` method inherited from a" -" parent class, so assigning ``None`` was implemented as an override. At the" -" C level, extensions can set ``tp_hash`` to " -":c:func:`PyObject_HashNotImplemented`. (Fixed by Nick Coghlan and Amaury " -"Forgeot d'Arc; :issue:`2235`.)" +"objects have a default hash method that uses ``id(obj)`` as the hash value. " +"There's no tidy way to remove the :meth:`__hash__` method inherited from a " +"parent class, so assigning ``None`` was implemented as an override. At the " +"C level, extensions can set ``tp_hash`` to :c:func:" +"`PyObject_HashNotImplemented`. (Fixed by Nick Coghlan and Amaury Forgeot " +"d'Arc; :issue:`2235`.)" #: ../../whatsnew/2.6.rst:1646 msgid "" "The :exc:`GeneratorExit` exception now subclasses :exc:`BaseException` " -"instead of :exc:`Exception`. This means that an exception handler that does" -" ``except Exception:`` will not inadvertently catch :exc:`GeneratorExit`. " +"instead of :exc:`Exception`. This means that an exception handler that does " +"``except Exception:`` will not inadvertently catch :exc:`GeneratorExit`. " "(Contributed by Chad Austin; :issue:`1537`.)" msgstr "" "The :exc:`GeneratorExit` exception now subclasses :exc:`BaseException` " -"instead of :exc:`Exception`. This means that an exception handler that does" -" ``except Exception:`` will not inadvertently catch :exc:`GeneratorExit`. " +"instead of :exc:`Exception`. This means that an exception handler that does " +"``except Exception:`` will not inadvertently catch :exc:`GeneratorExit`. " "(Contributed by Chad Austin; :issue:`1537`.)" #: ../../whatsnew/2.6.rst:1652 msgid "" "Generator objects now have a :attr:`gi_code` attribute that refers to the " -"original code object backing the generator. (Contributed by Collin Winter; " -":issue:`1473257`.)" +"original code object backing the generator. (Contributed by Collin Winter; :" +"issue:`1473257`.)" msgstr "" "Generator objects now have a :attr:`gi_code` attribute that refers to the " -"original code object backing the generator. (Contributed by Collin Winter; " -":issue:`1473257`.)" +"original code object backing the generator. (Contributed by Collin Winter; :" +"issue:`1473257`.)" #: ../../whatsnew/2.6.rst:1656 msgid "" "The :func:`compile` built-in function now accepts keyword arguments as well " -"as positional parameters. (Contributed by Thomas Wouters; " -":issue:`1444529`.)" +"as positional parameters. (Contributed by Thomas Wouters; :issue:`1444529`.)" msgstr "" "The :func:`compile` built-in function now accepts keyword arguments as well " -"as positional parameters. (Contributed by Thomas Wouters; " -":issue:`1444529`.)" +"as positional parameters. (Contributed by Thomas Wouters; :issue:`1444529`.)" #: ../../whatsnew/2.6.rst:1660 msgid "" -"The :func:`complex` constructor now accepts strings containing parenthesized" -" complex numbers, meaning that ``complex(repr(cplx))`` will now round-trip " -"values. For example, ``complex('(3+4j)')`` now returns the value (3+4j). " -"(:issue:`1491866`)" +"The :func:`complex` constructor now accepts strings containing parenthesized " +"complex numbers, meaning that ``complex(repr(cplx))`` will now round-trip " +"values. For example, ``complex('(3+4j)')`` now returns the value (3+4j). (:" +"issue:`1491866`)" msgstr "" -"The :func:`complex` constructor now accepts strings containing parenthesized" -" complex numbers, meaning that ``complex(repr(cplx))`` will now round-trip " -"values. For example, ``complex('(3+4j)')`` now returns the value (3+4j). " -"(:issue:`1491866`)" +"The :func:`complex` constructor now accepts strings containing parenthesized " +"complex numbers, meaning that ``complex(repr(cplx))`` will now round-trip " +"values. For example, ``complex('(3+4j)')`` now returns the value (3+4j). (:" +"issue:`1491866`)" #: ../../whatsnew/2.6.rst:1665 msgid "" "The string :meth:`translate` method now accepts ``None`` as the translation " "table parameter, which is treated as the identity transformation. This " "makes it easier to carry out operations that only delete characters. " -"(Contributed by Bengt Richter and implemented by Raymond Hettinger; " -":issue:`1193128`.)" +"(Contributed by Bengt Richter and implemented by Raymond Hettinger; :issue:" +"`1193128`.)" msgstr "" "The string :meth:`translate` method now accepts ``None`` as the translation " "table parameter, which is treated as the identity transformation. This " "makes it easier to carry out operations that only delete characters. " -"(Contributed by Bengt Richter and implemented by Raymond Hettinger; " -":issue:`1193128`.)" +"(Contributed by Bengt Richter and implemented by Raymond Hettinger; :issue:" +"`1193128`.)" #: ../../whatsnew/2.6.rst:1671 msgid "" -"The built-in :func:`dir` function now checks for a :meth:`__dir__` method on" -" the objects it receives. This method must return a list of strings " -"containing the names of valid attributes for the object, and lets the object" -" control the value that :func:`dir` produces. Objects that have " -":meth:`__getattr__` or :meth:`__getattribute__` methods can use this to " -"advertise pseudo-attributes they will honor. (:issue:`1591665`)" +"The built-in :func:`dir` function now checks for a :meth:`__dir__` method on " +"the objects it receives. This method must return a list of strings " +"containing the names of valid attributes for the object, and lets the object " +"control the value that :func:`dir` produces. Objects that have :meth:" +"`__getattr__` or :meth:`__getattribute__` methods can use this to advertise " +"pseudo-attributes they will honor. (:issue:`1591665`)" msgstr "" -"The built-in :func:`dir` function now checks for a :meth:`__dir__` method on" -" the objects it receives. This method must return a list of strings " -"containing the names of valid attributes for the object, and lets the object" -" control the value that :func:`dir` produces. Objects that have " -":meth:`__getattr__` or :meth:`__getattribute__` methods can use this to " -"advertise pseudo-attributes they will honor. (:issue:`1591665`)" +"The built-in :func:`dir` function now checks for a :meth:`__dir__` method on " +"the objects it receives. This method must return a list of strings " +"containing the names of valid attributes for the object, and lets the object " +"control the value that :func:`dir` produces. Objects that have :meth:" +"`__getattr__` or :meth:`__getattribute__` methods can use this to advertise " +"pseudo-attributes they will honor. (:issue:`1591665`)" #: ../../whatsnew/2.6.rst:1679 msgid "" "Instance method objects have new attributes for the object and function " -"comprising the method; the new synonym for :attr:`im_self` is " -":attr:`__self__`, and :attr:`im_func` is also available as :attr:`__func__`." -" The old names are still supported in Python 2.6, but are gone in 3.0." +"comprising the method; the new synonym for :attr:`im_self` is :attr:" +"`__self__`, and :attr:`im_func` is also available as :attr:`__func__`. The " +"old names are still supported in Python 2.6, but are gone in 3.0." msgstr "" "Instance method objects have new attributes for the object and function " -"comprising the method; the new synonym for :attr:`im_self` is " -":attr:`__self__`, and :attr:`im_func` is also available as :attr:`__func__`." -" The old names are still supported in Python 2.6, but are gone in 3.0." +"comprising the method; the new synonym for :attr:`im_self` is :attr:" +"`__self__`, and :attr:`im_func` is also available as :attr:`__func__`. The " +"old names are still supported in Python 2.6, but are gone in 3.0." #: ../../whatsnew/2.6.rst:1684 msgid "" -"An obscure change: when you use the :func:`locals` function inside a " -":keyword:`class` statement, the resulting dictionary no longer returns free " -"variables. (Free variables, in this case, are variables referenced in the " -":keyword:`!class` statement that aren't attributes of the class.)" +"An obscure change: when you use the :func:`locals` function inside a :" +"keyword:`class` statement, the resulting dictionary no longer returns free " +"variables. (Free variables, in this case, are variables referenced in the :" +"keyword:`!class` statement that aren't attributes of the class.)" msgstr "" #: ../../whatsnew/2.6.rst:1693 @@ -2497,13 +2475,13 @@ msgstr "Otimizações" msgid "" "The :mod:`warnings` module has been rewritten in C. This makes it possible " "to invoke warnings from the parser, and may also make the interpreter's " -"startup faster. (Contributed by Neal Norwitz and Brett Cannon; " -":issue:`1631171`.)" +"startup faster. (Contributed by Neal Norwitz and Brett Cannon; :issue:" +"`1631171`.)" msgstr "" "The :mod:`warnings` module has been rewritten in C. This makes it possible " "to invoke warnings from the parser, and may also make the interpreter's " -"startup faster. (Contributed by Neal Norwitz and Brett Cannon; " -":issue:`1631171`.)" +"startup faster. (Contributed by Neal Norwitz and Brett Cannon; :issue:" +"`1631171`.)" #: ../../whatsnew/2.6.rst:1700 msgid "" @@ -2527,8 +2505,8 @@ msgstr "" msgid "" "By default, this change is only applied to types that are included with the " "Python core. Extension modules may not necessarily be compatible with this " -"cache, so they must explicitly add :c:macro:`Py_TPFLAGS_HAVE_VERSION_TAG` to" -" the module's ``tp_flags`` field to enable the method cache. (To be " +"cache, so they must explicitly add :c:macro:`Py_TPFLAGS_HAVE_VERSION_TAG` to " +"the module's ``tp_flags`` field to enable the method cache. (To be " "compatible with the method cache, the extension module's code must not " "directly access and modify the ``tp_dict`` member of any of the types it " "implements. Most modules don't do this, but it's impossible for the Python " @@ -2536,8 +2514,8 @@ msgid "" msgstr "" "By default, this change is only applied to types that are included with the " "Python core. Extension modules may not necessarily be compatible with this " -"cache, so they must explicitly add :c:macro:`Py_TPFLAGS_HAVE_VERSION_TAG` to" -" the module's ``tp_flags`` field to enable the method cache. (To be " +"cache, so they must explicitly add :c:macro:`Py_TPFLAGS_HAVE_VERSION_TAG` to " +"the module's ``tp_flags`` field to enable the method cache. (To be " "compatible with the method cache, the extension module's code must not " "directly access and modify the ``tp_dict`` member of any of the types it " "implements. Most modules don't do this, but it's impossible for the Python " @@ -2578,14 +2556,14 @@ msgstr "" #: ../../whatsnew/2.6.rst:1734 msgid "" "Unicode strings now use faster code for detecting whitespace and line " -"breaks; this speeds up the :meth:`split` method by about 25% and " -":meth:`splitlines` by 35%. (Contributed by Antoine Pitrou.) Memory usage is" -" reduced by using pymalloc for the Unicode string's data." +"breaks; this speeds up the :meth:`split` method by about 25% and :meth:" +"`splitlines` by 35%. (Contributed by Antoine Pitrou.) Memory usage is " +"reduced by using pymalloc for the Unicode string's data." msgstr "" "Unicode strings now use faster code for detecting whitespace and line " -"breaks; this speeds up the :meth:`split` method by about 25% and " -":meth:`splitlines` by 35%. (Contributed by Antoine Pitrou.) Memory usage is" -" reduced by using pymalloc for the Unicode string's data." +"breaks; this speeds up the :meth:`split` method by about 25% and :meth:" +"`splitlines` by 35%. (Contributed by Antoine Pitrou.) Memory usage is " +"reduced by using pymalloc for the Unicode string's data." #: ../../whatsnew/2.6.rst:1740 msgid "" @@ -2615,17 +2593,17 @@ msgid "" "implementations. The :option:`-J` switch has been reserved for use by " "Jython for Jython-specific options, such as switches that are passed to the " "underlying JVM. :option:`-X` has been reserved for options specific to a " -"particular implementation of Python such as CPython, Jython, or IronPython." -" If either option is used with Python 2.6, the interpreter will report that" -" the option isn't currently used." +"particular implementation of Python such as CPython, Jython, or IronPython. " +"If either option is used with Python 2.6, the interpreter will report that " +"the option isn't currently used." msgstr "" "Two command-line options have been reserved for use by other Python " "implementations. The :option:`-J` switch has been reserved for use by " "Jython for Jython-specific options, such as switches that are passed to the " "underlying JVM. :option:`-X` has been reserved for options specific to a " -"particular implementation of Python such as CPython, Jython, or IronPython." -" If either option is used with Python 2.6, the interpreter will report that" -" the option isn't currently used." +"particular implementation of Python such as CPython, Jython, or IronPython. " +"If either option is used with Python 2.6, the interpreter will report that " +"the option isn't currently used." #: ../../whatsnew/2.6.rst:1762 msgid "" @@ -2673,15 +2651,15 @@ msgstr "Módulos Novos ou Aprimorados" msgid "" "As in every release, Python's standard library received a number of " "enhancements and bug fixes. Here's a partial list of the most notable " -"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS`" -" file in the source tree for a more complete list of changes, or look " -"through the Subversion logs for all the details." +"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS` " +"file in the source tree for a more complete list of changes, or look through " +"the Subversion logs for all the details." msgstr "" "As in every release, Python's standard library received a number of " "enhancements and bug fixes. Here's a partial list of the most notable " -"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS`" -" file in the source tree for a more complete list of changes, or look " -"through the Subversion logs for all the details." +"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS` " +"file in the source tree for a more complete list of changes, or look through " +"the Subversion logs for all the details." #: ../../whatsnew/2.6.rst:1791 msgid "" @@ -2689,24 +2667,24 @@ msgid "" "maintained again, and a number of patches and bugfixes were applied. " "(Maintained by Josiah Carlson; see :issue:`1736190` for one patch.)" msgstr "" -"Também podes ver que não havia nenhuma ligação anterior para *spam* antes do" -" uso da :keyword:`global`." +"Também podes ver que não havia nenhuma ligação anterior para *spam* antes do " +"uso da :keyword:`global`." #: ../../whatsnew/2.6.rst:1796 msgid "" "The :mod:`bsddb` module also has a new maintainer, Jesús Cea Avión, and the " "package is now available as a standalone package. The web page for the " -"package is `www.jcea.es/programacion/pybsddb.htm " -"`__. The plan is to remove the" -" package from the standard library in Python 3.0, because its pace of " -"releases is much more frequent than Python's." +"package is `www.jcea.es/programacion/pybsddb.htm `__. The plan is to remove the package from the " +"standard library in Python 3.0, because its pace of releases is much more " +"frequent than Python's." msgstr "" "The :mod:`bsddb` module also has a new maintainer, Jesús Cea Avión, and the " "package is now available as a standalone package. The web page for the " -"package is `www.jcea.es/programacion/pybsddb.htm " -"`__. The plan is to remove the" -" package from the standard library in Python 3.0, because its pace of " -"releases is much more frequent than Python's." +"package is `www.jcea.es/programacion/pybsddb.htm `__. The plan is to remove the package from the " +"standard library in Python 3.0, because its pace of releases is much more " +"frequent than Python's." #: ../../whatsnew/2.6.rst:1804 msgid "" @@ -2733,14 +2711,14 @@ msgstr "" #: ../../whatsnew/2.6.rst:1814 msgid "" "The :func:`parse_qs` and :func:`parse_qsl` functions have been relocated " -"from the :mod:`cgi` module to the :mod:`urlparse` module. The versions still" -" available in the :mod:`cgi` module will trigger " -":exc:`PendingDeprecationWarning` messages in 2.6 (:issue:`600362`)." +"from the :mod:`cgi` module to the :mod:`urlparse` module. The versions still " +"available in the :mod:`cgi` module will trigger :exc:" +"`PendingDeprecationWarning` messages in 2.6 (:issue:`600362`)." msgstr "" "The :func:`parse_qs` and :func:`parse_qsl` functions have been relocated " -"from the :mod:`cgi` module to the :mod:`urlparse` module. The versions still" -" available in the :mod:`cgi` module will trigger " -":exc:`PendingDeprecationWarning` messages in 2.6 (:issue:`600362`)." +"from the :mod:`cgi` module to the :mod:`urlparse` module. The versions still " +"available in the :mod:`cgi` module will trigger :exc:" +"`PendingDeprecationWarning` messages in 2.6 (:issue:`600362`)." #: ../../whatsnew/2.6.rst:1820 msgid "" @@ -2752,11 +2730,11 @@ msgstr "" #: ../../whatsnew/2.6.rst:1824 msgid "" -":func:`polar` converts a complex number to polar form, returning the modulus" -" and argument of the complex number." +":func:`polar` converts a complex number to polar form, returning the modulus " +"and argument of the complex number." msgstr "" -":func:`polar` converts a complex number to polar form, returning the modulus" -" and argument of the complex number." +":func:`polar` converts a complex number to polar form, returning the modulus " +"and argument of the complex number." #: ../../whatsnew/2.6.rst:1827 msgid "" @@ -2794,15 +2772,15 @@ msgstr "" msgid "" "The revisions also improved the numerical soundness of the :mod:`cmath` " "module. For all functions, the real and imaginary parts of the results are " -"accurate to within a few units of least precision (ulps) whenever possible." -" See :issue:`1381` for the details. The branch cuts for :func:`asinh`, " -":func:`atanh`: and :func:`atan` have also been corrected." +"accurate to within a few units of least precision (ulps) whenever possible. " +"See :issue:`1381` for the details. The branch cuts for :func:`asinh`, :func:" +"`atanh`: and :func:`atan` have also been corrected." msgstr "" "The revisions also improved the numerical soundness of the :mod:`cmath` " "module. For all functions, the real and imaginary parts of the results are " -"accurate to within a few units of least precision (ulps) whenever possible." -" See :issue:`1381` for the details. The branch cuts for :func:`asinh`, " -":func:`atanh`: and :func:`atan` have also been corrected." +"accurate to within a few units of least precision (ulps) whenever possible. " +"See :issue:`1381` for the details. The branch cuts for :func:`asinh`, :func:" +"`atanh`: and :func:`atan` have also been corrected." #: ../../whatsnew/2.6.rst:1846 msgid "" @@ -2824,27 +2802,27 @@ msgstr "" #: ../../whatsnew/2.6.rst:1853 msgid "" -"A new data type in the :mod:`collections` module: " -":class:`namedtuple(typename, fieldnames)` is a factory function that creates" -" subclasses of the standard tuple whose fields are accessible by name as " -"well as index. For example::" +"A new data type in the :mod:`collections` module: :class:" +"`namedtuple(typename, fieldnames)` is a factory function that creates " +"subclasses of the standard tuple whose fields are accessible by name as well " +"as index. For example::" msgstr "" -"A new data type in the :mod:`collections` module: " -":class:`namedtuple(typename, fieldnames)` is a factory function that creates" -" subclasses of the standard tuple whose fields are accessible by name as " -"well as index. For example::" +"A new data type in the :mod:`collections` module: :class:" +"`namedtuple(typename, fieldnames)` is a factory function that creates " +"subclasses of the standard tuple whose fields are accessible by name as well " +"as index. For example::" #: ../../whatsnew/2.6.rst:1875 msgid "" "Several places in the standard library that returned tuples have been " -"modified to return :class:`namedtuple` instances. For example, the " -":meth:`Decimal.as_tuple` method now returns a named tuple with :attr:`sign`," -" :attr:`digits`, and :attr:`exponent` fields." +"modified to return :class:`namedtuple` instances. For example, the :meth:" +"`Decimal.as_tuple` method now returns a named tuple with :attr:`sign`, :attr:" +"`digits`, and :attr:`exponent` fields." msgstr "" "Several places in the standard library that returned tuples have been " -"modified to return :class:`namedtuple` instances. For example, the " -":meth:`Decimal.as_tuple` method now returns a named tuple with :attr:`sign`," -" :attr:`digits`, and :attr:`exponent` fields." +"modified to return :class:`namedtuple` instances. For example, the :meth:" +"`Decimal.as_tuple` method now returns a named tuple with :attr:`sign`, :attr:" +"`digits`, and :attr:`exponent` fields." #: ../../whatsnew/2.6.rst:1882 msgid "" @@ -2860,15 +2838,15 @@ msgstr "" #: ../../whatsnew/2.6.rst:1903 msgid "" -"The :mod:`Cookie` module's :class:`Morsel` objects now support an " -":attr:`httponly` attribute. In some browsers. cookies with this attribute " -"set cannot be accessed or manipulated by JavaScript code. (Contributed by " -"Arvin Schnell; :issue:`1638033`.)" +"The :mod:`Cookie` module's :class:`Morsel` objects now support an :attr:" +"`httponly` attribute. In some browsers. cookies with this attribute set " +"cannot be accessed or manipulated by JavaScript code. (Contributed by Arvin " +"Schnell; :issue:`1638033`.)" msgstr "" -"The :mod:`Cookie` module's :class:`Morsel` objects now support an " -":attr:`httponly` attribute. In some browsers. cookies with this attribute " -"set cannot be accessed or manipulated by JavaScript code. (Contributed by " -"Arvin Schnell; :issue:`1638033`.)" +"The :mod:`Cookie` module's :class:`Morsel` objects now support an :attr:" +"`httponly` attribute. In some browsers. cookies with this attribute set " +"cannot be accessed or manipulated by JavaScript code. (Contributed by Arvin " +"Schnell; :issue:`1638033`.)" #: ../../whatsnew/2.6.rst:1908 msgid "" @@ -2884,37 +2862,37 @@ msgstr "" msgid "" "The :class:`Textbox` class in the :mod:`curses.textpad` module now supports " "editing in insert mode as well as overwrite mode. Insert mode is enabled by " -"supplying a true value for the *insert_mode* parameter when creating the " -":class:`Textbox` instance." +"supplying a true value for the *insert_mode* parameter when creating the :" +"class:`Textbox` instance." msgstr "" "The :class:`Textbox` class in the :mod:`curses.textpad` module now supports " "editing in insert mode as well as overwrite mode. Insert mode is enabled by " -"supplying a true value for the *insert_mode* parameter when creating the " -":class:`Textbox` instance." +"supplying a true value for the *insert_mode* parameter when creating the :" +"class:`Textbox` instance." #: ../../whatsnew/2.6.rst:1923 msgid "" "The :mod:`datetime` module's :meth:`strftime` methods now support a ``%f`` " "format code that expands to the number of microseconds in the object, zero-" -"padded on the left to six places. (Contributed by Skip Montanaro; " -":issue:`1158`.)" +"padded on the left to six places. (Contributed by Skip Montanaro; :issue:" +"`1158`.)" msgstr "" "The :mod:`datetime` module's :meth:`strftime` methods now support a ``%f`` " "format code that expands to the number of microseconds in the object, zero-" -"padded on the left to six places. (Contributed by Skip Montanaro; " -":issue:`1158`.)" +"padded on the left to six places. (Contributed by Skip Montanaro; :issue:" +"`1158`.)" #: ../../whatsnew/2.6.rst:1928 msgid "" "The :mod:`decimal` module was updated to version 1.66 of `the General " "Decimal Specification `__. " -"New features include some methods for some basic mathematical functions such" -" as :meth:`exp` and :meth:`log10`::" +"New features include some methods for some basic mathematical functions such " +"as :meth:`exp` and :meth:`log10`::" msgstr "" "The :mod:`decimal` module was updated to version 1.66 of `the General " "Decimal Specification `__. " -"New features include some methods for some basic mathematical functions such" -" as :meth:`exp` and :meth:`log10`::" +"New features include some methods for some basic mathematical functions such " +"as :meth:`exp` and :meth:`log10`::" #: ../../whatsnew/2.6.rst:1940 msgid "" @@ -2934,79 +2912,79 @@ msgstr "" #: ../../whatsnew/2.6.rst:1946 msgid "" -"The :mod:`difflib` module's :class:`SequenceMatcher` class now returns named" -" tuples representing matches, with :attr:`a`, :attr:`b`, and :attr:`size` " +"The :mod:`difflib` module's :class:`SequenceMatcher` class now returns named " +"tuples representing matches, with :attr:`a`, :attr:`b`, and :attr:`size` " "attributes. (Contributed by Raymond Hettinger.)" msgstr "" -"The :mod:`difflib` module's :class:`SequenceMatcher` class now returns named" -" tuples representing matches, with :attr:`a`, :attr:`b`, and :attr:`size` " +"The :mod:`difflib` module's :class:`SequenceMatcher` class now returns named " +"tuples representing matches, with :attr:`a`, :attr:`b`, and :attr:`size` " "attributes. (Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.6.rst:1951 msgid "" -"An optional ``timeout`` parameter, specifying a timeout measured in seconds," -" was added to the :class:`ftplib.FTP` class constructor as well as the " -":meth:`connect` method. (Added by Facundo Batista.) Also, the :class:`FTP` " +"An optional ``timeout`` parameter, specifying a timeout measured in seconds, " +"was added to the :class:`ftplib.FTP` class constructor as well as the :meth:" +"`connect` method. (Added by Facundo Batista.) Also, the :class:`FTP` " "class's :meth:`storbinary` and :meth:`storlines` now take an optional " "*callback* parameter that will be called with each block of data after the " "data has been sent. (Contributed by Phil Schwartz; :issue:`1221598`.)" msgstr "" -"An optional ``timeout`` parameter, specifying a timeout measured in seconds," -" was added to the :class:`ftplib.FTP` class constructor as well as the " -":meth:`connect` method. (Added by Facundo Batista.) Also, the :class:`FTP` " +"An optional ``timeout`` parameter, specifying a timeout measured in seconds, " +"was added to the :class:`ftplib.FTP` class constructor as well as the :meth:" +"`connect` method. (Added by Facundo Batista.) Also, the :class:`FTP` " "class's :meth:`storbinary` and :meth:`storlines` now take an optional " "*callback* parameter that will be called with each block of data after the " "data has been sent. (Contributed by Phil Schwartz; :issue:`1221598`.)" #: ../../whatsnew/2.6.rst:1959 msgid "" -"The :func:`reduce` built-in function is also available in the " -":mod:`functools` module. In Python 3.0, the builtin has been dropped and " -":func:`reduce` is only available from :mod:`functools`; currently there are " -"no plans to drop the builtin in the 2.x series. (Patched by Christian " -"Heimes; :issue:`1739906`.)" +"The :func:`reduce` built-in function is also available in the :mod:" +"`functools` module. In Python 3.0, the builtin has been dropped and :func:" +"`reduce` is only available from :mod:`functools`; currently there are no " +"plans to drop the builtin in the 2.x series. (Patched by Christian Heimes; :" +"issue:`1739906`.)" msgstr "" -"The :func:`reduce` built-in function is also available in the " -":mod:`functools` module. In Python 3.0, the builtin has been dropped and " -":func:`reduce` is only available from :mod:`functools`; currently there are " -"no plans to drop the builtin in the 2.x series. (Patched by Christian " -"Heimes; :issue:`1739906`.)" +"The :func:`reduce` built-in function is also available in the :mod:" +"`functools` module. In Python 3.0, the builtin has been dropped and :func:" +"`reduce` is only available from :mod:`functools`; currently there are no " +"plans to drop the builtin in the 2.x series. (Patched by Christian Heimes; :" +"issue:`1739906`.)" #: ../../whatsnew/2.6.rst:1965 msgid "" "When possible, the :mod:`getpass` module will now use :file:`/dev/tty` to " -"print a prompt message and read the password, falling back to standard error" -" and standard input. If the password may be echoed to the terminal, a " +"print a prompt message and read the password, falling back to standard error " +"and standard input. If the password may be echoed to the terminal, a " "warning is printed before the prompt is displayed. (Contributed by Gregory " "P. Smith.)" msgstr "" "When possible, the :mod:`getpass` module will now use :file:`/dev/tty` to " -"print a prompt message and read the password, falling back to standard error" -" and standard input. If the password may be echoed to the terminal, a " +"print a prompt message and read the password, falling back to standard error " +"and standard input. If the password may be echoed to the terminal, a " "warning is printed before the prompt is displayed. (Contributed by Gregory " "P. Smith.)" #: ../../whatsnew/2.6.rst:1971 msgid "" -"The :func:`glob.glob` function can now return Unicode filenames if a Unicode" -" path was used and Unicode filenames are matched within the directory. " -"(:issue:`1001604`)" +"The :func:`glob.glob` function can now return Unicode filenames if a Unicode " +"path was used and Unicode filenames are matched within the directory. (:" +"issue:`1001604`)" msgstr "" -"The :func:`glob.glob` function can now return Unicode filenames if a Unicode" -" path was used and Unicode filenames are matched within the directory. " -"(:issue:`1001604`)" +"The :func:`glob.glob` function can now return Unicode filenames if a Unicode " +"path was used and Unicode filenames are matched within the directory. (:" +"issue:`1001604`)" #: ../../whatsnew/2.6.rst:1975 msgid "" "A new function in the :mod:`heapq` module, ``merge(iter1, iter2, ...)``, " "takes any number of iterables returning data in sorted order, and returns a " -"new generator that returns the contents of all the iterators, also in sorted" -" order. For example::" +"new generator that returns the contents of all the iterators, also in sorted " +"order. For example::" msgstr "" "A new function in the :mod:`heapq` module, ``merge(iter1, iter2, ...)``, " "takes any number of iterables returning data in sorted order, and returns a " -"new generator that returns the contents of all the iterators, also in sorted" -" order. For example::" +"new generator that returns the contents of all the iterators, also in sorted " +"order. For example::" #: ../../whatsnew/2.6.rst:1983 msgid "" @@ -3020,45 +2998,45 @@ msgstr "" #: ../../whatsnew/2.6.rst:1988 msgid "" -":mod:`heapq` is now implemented to only use less-than comparison, instead of" -" the less-than-or-equal comparison it previously used. This makes " -":mod:`heapq`'s usage of a type match the :meth:`list.sort` method. " -"(Contributed by Raymond Hettinger.)" +":mod:`heapq` is now implemented to only use less-than comparison, instead of " +"the less-than-or-equal comparison it previously used. This makes :mod:" +"`heapq`'s usage of a type match the :meth:`list.sort` method. (Contributed " +"by Raymond Hettinger.)" msgstr "" -":mod:`heapq` is now implemented to only use less-than comparison, instead of" -" the less-than-or-equal comparison it previously used. This makes " -":mod:`heapq`'s usage of a type match the :meth:`list.sort` method. " -"(Contributed by Raymond Hettinger.)" +":mod:`heapq` is now implemented to only use less-than comparison, instead of " +"the less-than-or-equal comparison it previously used. This makes :mod:" +"`heapq`'s usage of a type match the :meth:`list.sort` method. (Contributed " +"by Raymond Hettinger.)" #: ../../whatsnew/2.6.rst:1994 msgid "" -"An optional ``timeout`` parameter, specifying a timeout measured in seconds," -" was added to the :class:`httplib.HTTPConnection` and " -":class:`HTTPSConnection` class constructors. (Added by Facundo Batista.)" +"An optional ``timeout`` parameter, specifying a timeout measured in seconds, " +"was added to the :class:`httplib.HTTPConnection` and :class:" +"`HTTPSConnection` class constructors. (Added by Facundo Batista.)" msgstr "" -"An optional ``timeout`` parameter, specifying a timeout measured in seconds," -" was added to the :class:`httplib.HTTPConnection` and " -":class:`HTTPSConnection` class constructors. (Added by Facundo Batista.)" +"An optional ``timeout`` parameter, specifying a timeout measured in seconds, " +"was added to the :class:`httplib.HTTPConnection` and :class:" +"`HTTPSConnection` class constructors. (Added by Facundo Batista.)" #: ../../whatsnew/2.6.rst:1999 msgid "" -"Most of the :mod:`inspect` module's functions, such as :func:`getmoduleinfo`" -" and :func:`getargs`, now return named tuples. In addition to behaving like " +"Most of the :mod:`inspect` module's functions, such as :func:`getmoduleinfo` " +"and :func:`getargs`, now return named tuples. In addition to behaving like " "tuples, the elements of the return value can also be accessed as " "attributes. (Contributed by Raymond Hettinger.)" msgstr "" -"Most of the :mod:`inspect` module's functions, such as :func:`getmoduleinfo`" -" and :func:`getargs`, now return named tuples. In addition to behaving like " +"Most of the :mod:`inspect` module's functions, such as :func:`getmoduleinfo` " +"and :func:`getargs`, now return named tuples. In addition to behaving like " "tuples, the elements of the return value can also be accessed as " "attributes. (Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.6.rst:2005 msgid "" -"Some new functions in the module include :func:`isgenerator`, " -":func:`isgeneratorfunction`, and :func:`isabstract`." +"Some new functions in the module include :func:`isgenerator`, :func:" +"`isgeneratorfunction`, and :func:`isabstract`." msgstr "" -"Some new functions in the module include :func:`isgenerator`, " -":func:`isgeneratorfunction`, and :func:`isabstract`." +"Some new functions in the module include :func:`isgenerator`, :func:" +"`isgeneratorfunction`, and :func:`isabstract`." #: ../../whatsnew/2.6.rst:2009 msgid "The :mod:`itertools` module gained several new functions." @@ -3119,18 +3097,16 @@ msgstr "" #: ../../whatsnew/2.6.rst:2065 msgid "" "``itertools.chain(*iterables)`` is an existing function in :mod:`itertools` " -"that gained a new constructor in Python 2.6. " -"``itertools.chain.from_iterable(iterable)`` takes a single iterable that " -"should return other iterables. :func:`chain` will then return all the " -"elements of the first iterable, then all the elements of the second, and so " -"on. ::" +"that gained a new constructor in Python 2.6. ``itertools.chain." +"from_iterable(iterable)`` takes a single iterable that should return other " +"iterables. :func:`chain` will then return all the elements of the first " +"iterable, then all the elements of the second, and so on. ::" msgstr "" "``itertools.chain(*iterables)`` is an existing function in :mod:`itertools` " -"that gained a new constructor in Python 2.6. " -"``itertools.chain.from_iterable(iterable)`` takes a single iterable that " -"should return other iterables. :func:`chain` will then return all the " -"elements of the first iterable, then all the elements of the second, and so " -"on. ::" +"that gained a new constructor in Python 2.6. ``itertools.chain." +"from_iterable(iterable)`` takes a single iterable that should return other " +"iterables. :func:`chain` will then return all the elements of the first " +"iterable, then all the elements of the second, and so on. ::" #: ../../whatsnew/2.6.rst:2075 msgid "(All contributed by Raymond Hettinger.)" @@ -3138,17 +3114,17 @@ msgstr "(All contributed by Raymond Hettinger.)" #: ../../whatsnew/2.6.rst:2077 msgid "" -"The :mod:`logging` module's :class:`FileHandler` class and its subclasses " -":class:`WatchedFileHandler`, :class:`RotatingFileHandler`, and " -":class:`TimedRotatingFileHandler` now have an optional *delay* parameter to " -"their constructors. If *delay* is true, opening of the log file is deferred" -" until the first :meth:`emit` call is made. (Contributed by Vinay Sajip.)" +"The :mod:`logging` module's :class:`FileHandler` class and its subclasses :" +"class:`WatchedFileHandler`, :class:`RotatingFileHandler`, and :class:" +"`TimedRotatingFileHandler` now have an optional *delay* parameter to their " +"constructors. If *delay* is true, opening of the log file is deferred until " +"the first :meth:`emit` call is made. (Contributed by Vinay Sajip.)" msgstr "" -"The :mod:`logging` module's :class:`FileHandler` class and its subclasses " -":class:`WatchedFileHandler`, :class:`RotatingFileHandler`, and " -":class:`TimedRotatingFileHandler` now have an optional *delay* parameter to " -"their constructors. If *delay* is true, opening of the log file is deferred" -" until the first :meth:`emit` call is made. (Contributed by Vinay Sajip.)" +"The :mod:`logging` module's :class:`FileHandler` class and its subclasses :" +"class:`WatchedFileHandler`, :class:`RotatingFileHandler`, and :class:" +"`TimedRotatingFileHandler` now have an optional *delay* parameter to their " +"constructors. If *delay* is true, opening of the log file is deferred until " +"the first :meth:`emit` call is made. (Contributed by Vinay Sajip.)" #: ../../whatsnew/2.6.rst:2084 msgid "" @@ -3180,8 +3156,7 @@ msgid "" msgstr "" ":func:`~math.copysign` copies the sign bit of an IEEE 754 number, returning " "the absolute value of *x* combined with the sign bit of *y*. For example, " -"``math.copysign(1, -0.0)`` returns -1.0. (Contributed by Christian " -"Heimes.)\\" +"``math.copysign(1, -0.0)`` returns -1.0. (Contributed by Christian Heimes.)\\" #: ../../whatsnew/2.6.rst:2099 msgid "" @@ -3203,28 +3178,25 @@ msgstr "" #: ../../whatsnew/2.6.rst:2107 msgid "" -":func:`~math.acosh`, :func:`~math.asinh` and :func:`~math.atanh` compute the" -" inverse hyperbolic functions." +":func:`~math.acosh`, :func:`~math.asinh` and :func:`~math.atanh` compute the " +"inverse hyperbolic functions." msgstr "" -":func:`~math.acosh`, :func:`~math.asinh` and :func:`~math.atanh` compute the" -" inverse hyperbolic functions." +":func:`~math.acosh`, :func:`~math.asinh` and :func:`~math.atanh` compute the " +"inverse hyperbolic functions." #: ../../whatsnew/2.6.rst:2110 msgid ":func:`~math.log1p` returns the natural logarithm of *1+x* (base *e*)." -msgstr "" -":func:`~math.log1p` returns the natural logarithm of *1+x* (base *e*)." +msgstr ":func:`~math.log1p` returns the natural logarithm of *1+x* (base *e*)." #: ../../whatsnew/2.6.rst:2113 msgid "" -":func:`trunc` rounds a number toward zero, returning the closest " -":class:`Integral` that's between the function's argument and zero. Added as " -"part of the backport of `PEP 3141's type hierarchy for numbers " -"<#pep-3141>`__." +":func:`trunc` rounds a number toward zero, returning the closest :class:" +"`Integral` that's between the function's argument and zero. Added as part of " +"the backport of `PEP 3141's type hierarchy for numbers <#pep-3141>`__." msgstr "" -":func:`trunc` rounds a number toward zero, returning the closest " -":class:`Integral` that's between the function's argument and zero. Added as " -"part of the backport of `PEP 3141's type hierarchy for numbers " -"<#pep-3141>`__." +":func:`trunc` rounds a number toward zero, returning the closest :class:" +"`Integral` that's between the function's argument and zero. Added as part of " +"the backport of `PEP 3141's type hierarchy for numbers <#pep-3141>`__." #: ../../whatsnew/2.6.rst:2118 msgid "" @@ -3241,20 +3213,20 @@ msgid "" "Whenever possible, the module follows the recommendations of the C99 " "standard about 754's special values. For example, ``sqrt(-1.)`` should now " "give a :exc:`ValueError` across almost all platforms, while " -"``sqrt(float('NaN'))`` should return a NaN on all IEEE 754 platforms. Where" -" Annex 'F' of the C99 standard recommends signaling 'divide-by-zero' or " +"``sqrt(float('NaN'))`` should return a NaN on all IEEE 754 platforms. Where " +"Annex 'F' of the C99 standard recommends signaling 'divide-by-zero' or " "'invalid', Python will raise :exc:`ValueError`. Where Annex 'F' of the C99 " -"standard recommends signaling 'overflow', Python will raise " -":exc:`OverflowError`. (See :issue:`711019` and :issue:`1640`.)" +"standard recommends signaling 'overflow', Python will raise :exc:" +"`OverflowError`. (See :issue:`711019` and :issue:`1640`.)" msgstr "" "Whenever possible, the module follows the recommendations of the C99 " "standard about 754's special values. For example, ``sqrt(-1.)`` should now " "give a :exc:`ValueError` across almost all platforms, while " -"``sqrt(float('NaN'))`` should return a NaN on all IEEE 754 platforms. Where" -" Annex 'F' of the C99 standard recommends signaling 'divide-by-zero' or " +"``sqrt(float('NaN'))`` should return a NaN on all IEEE 754 platforms. Where " +"Annex 'F' of the C99 standard recommends signaling 'divide-by-zero' or " "'invalid', Python will raise :exc:`ValueError`. Where Annex 'F' of the C99 " -"standard recommends signaling 'overflow', Python will raise " -":exc:`OverflowError`. (See :issue:`711019` and :issue:`1640`.)" +"standard recommends signaling 'overflow', Python will raise :exc:" +"`OverflowError`. (See :issue:`711019` and :issue:`1640`.)" #: ../../whatsnew/2.6.rst:2132 msgid "(Contributed by Christian Heimes and Mark Dickinson.)" @@ -3263,28 +3235,27 @@ msgstr "(Contributed by Christian Heimes and Mark Dickinson.)" #: ../../whatsnew/2.6.rst:2134 msgid "" ":class:`~mmap.mmap` objects now have a :meth:`rfind` method that searches " -"for a substring beginning at the end of the string and searching backwards." -" The :meth:`find` method also gained an *end* parameter giving an index at " +"for a substring beginning at the end of the string and searching backwards. " +"The :meth:`find` method also gained an *end* parameter giving an index at " "which to stop searching. (Contributed by John Lenton.)" msgstr "" ":class:`~mmap.mmap` objects now have a :meth:`rfind` method that searches " -"for a substring beginning at the end of the string and searching backwards." -" The :meth:`find` method also gained an *end* parameter giving an index at " +"for a substring beginning at the end of the string and searching backwards. " +"The :meth:`find` method also gained an *end* parameter giving an index at " "which to stop searching. (Contributed by John Lenton.)" #: ../../whatsnew/2.6.rst:2140 msgid "" -"The :mod:`operator` module gained a :func:`methodcaller` function that takes" -" a name and an optional set of arguments, returning a callable that will " -"call the named function on any arguments passed to it. For example::" +"The :mod:`operator` module gained a :func:`methodcaller` function that takes " +"a name and an optional set of arguments, returning a callable that will call " +"the named function on any arguments passed to it. For example::" msgstr "" -"The :mod:`operator` module gained a :func:`methodcaller` function that takes" -" a name and an optional set of arguments, returning a callable that will " -"call the named function on any arguments passed to it. For example::" +"The :mod:`operator` module gained a :func:`methodcaller` function that takes " +"a name and an optional set of arguments, returning a callable that will call " +"the named function on any arguments passed to it. For example::" #: ../../whatsnew/2.6.rst:2150 -msgid "" -"(Contributed by Georg Brandl, after a suggestion by Gregory Petrosyan.)" +msgid "(Contributed by Georg Brandl, after a suggestion by Gregory Petrosyan.)" msgstr "" "(Contributed by Georg Brandl, after a suggestion by Gregory Petrosyan.)" @@ -3318,15 +3289,15 @@ msgid "" "system calls (where they're available), changing the flags set on a file. " "Constants for the flag values are defined in the :mod:`stat` module; some " "possible values include :const:`UF_IMMUTABLE` to signal the file may not be " -"changed and :const:`UF_APPEND` to indicate that data can only be appended to" -" the file. (Contributed by M. Levinson.)" +"changed and :const:`UF_APPEND` to indicate that data can only be appended to " +"the file. (Contributed by M. Levinson.)" msgstr "" ":func:`chflags` and :func:`lchflags` are wrappers for the corresponding " "system calls (where they're available), changing the flags set on a file. " "Constants for the flag values are defined in the :mod:`stat` module; some " "possible values include :const:`UF_IMMUTABLE` to signal the file may not be " -"changed and :const:`UF_APPEND` to indicate that data can only be appended to" -" the file. (Contributed by M. Levinson.)" +"changed and :const:`UF_APPEND` to indicate that data can only be appended to " +"the file. (Contributed by M. Levinson.)" #: ../../whatsnew/2.6.rst:2178 msgid "" @@ -3366,51 +3337,51 @@ msgstr "" #: ../../whatsnew/2.6.rst:2194 msgid "" -"In the :mod:`os.path` module, the :func:`splitext` function has been changed" -" to not split on leading period characters. This produces better results " -"when operating on Unix's dot-files. For example, " -"``os.path.splitext('.ipython')`` now returns ``('.ipython', '')`` instead of" -" ``('', '.ipython')``. (:issue:`1115886`)" +"In the :mod:`os.path` module, the :func:`splitext` function has been changed " +"to not split on leading period characters. This produces better results when " +"operating on Unix's dot-files. For example, ``os.path.splitext('.ipython')`` " +"now returns ``('.ipython', '')`` instead of ``('', '.ipython')``. (:issue:" +"`1115886`)" msgstr "" -"In the :mod:`os.path` module, the :func:`splitext` function has been changed" -" to not split on leading period characters. This produces better results " -"when operating on Unix's dot-files. For example, " -"``os.path.splitext('.ipython')`` now returns ``('.ipython', '')`` instead of" -" ``('', '.ipython')``. (:issue:`1115886`)" +"In the :mod:`os.path` module, the :func:`splitext` function has been changed " +"to not split on leading period characters. This produces better results when " +"operating on Unix's dot-files. For example, ``os.path.splitext('.ipython')`` " +"now returns ``('.ipython', '')`` instead of ``('', '.ipython')``. (:issue:" +"`1115886`)" #: ../../whatsnew/2.6.rst:2201 msgid "" "A new function, ``os.path.relpath(path, start='.')``, returns a relative " "path from the ``start`` path, if it's supplied, or from the current working " -"directory to the destination ``path``. (Contributed by Richard Barran; " -":issue:`1339796`.)" +"directory to the destination ``path``. (Contributed by Richard Barran; :" +"issue:`1339796`.)" msgstr "" "A new function, ``os.path.relpath(path, start='.')``, returns a relative " "path from the ``start`` path, if it's supplied, or from the current working " -"directory to the destination ``path``. (Contributed by Richard Barran; " -":issue:`1339796`.)" +"directory to the destination ``path``. (Contributed by Richard Barran; :" +"issue:`1339796`.)" #: ../../whatsnew/2.6.rst:2206 msgid "" -"On Windows, :func:`os.path.expandvars` will now expand environment variables" -" given in the form \"%var%\", and \"~user\" will be expanded into the user's" -" home directory path. (Contributed by Josiah Carlson; :issue:`957650`.)" +"On Windows, :func:`os.path.expandvars` will now expand environment variables " +"given in the form \"%var%\", and \"~user\" will be expanded into the user's " +"home directory path. (Contributed by Josiah Carlson; :issue:`957650`.)" msgstr "" -"On Windows, :func:`os.path.expandvars` will now expand environment variables" -" given in the form \"%var%\", and \"~user\" will be expanded into the user's" -" home directory path. (Contributed by Josiah Carlson; :issue:`957650`.)" +"On Windows, :func:`os.path.expandvars` will now expand environment variables " +"given in the form \"%var%\", and \"~user\" will be expanded into the user's " +"home directory path. (Contributed by Josiah Carlson; :issue:`957650`.)" #: ../../whatsnew/2.6.rst:2211 msgid "" "The Python debugger provided by the :mod:`pdb` module gained a new command: " "\"run\" restarts the Python program being debugged and can optionally take " -"new command-line arguments for the program. (Contributed by Rocky Bernstein;" -" :issue:`1393667`.)" +"new command-line arguments for the program. (Contributed by Rocky " +"Bernstein; :issue:`1393667`.)" msgstr "" "The Python debugger provided by the :mod:`pdb` module gained a new command: " "\"run\" restarts the Python program being debugged and can optionally take " -"new command-line arguments for the program. (Contributed by Rocky Bernstein;" -" :issue:`1393667`.)" +"new command-line arguments for the program. (Contributed by Rocky " +"Bernstein; :issue:`1393667`.)" #: ../../whatsnew/2.6.rst:2216 msgid "" @@ -3450,27 +3421,27 @@ msgstr "(Contributed by Paul Moore; :issue:`2439`.)" #: ../../whatsnew/2.6.rst:2243 msgid "" -"The :mod:`pyexpat` module's :class:`Parser` objects now allow setting their " -":attr:`buffer_size` attribute to change the size of the buffer used to hold " +"The :mod:`pyexpat` module's :class:`Parser` objects now allow setting their :" +"attr:`buffer_size` attribute to change the size of the buffer used to hold " "character data. (Contributed by Achim Gaedke; :issue:`1137`.)" msgstr "" -"The :mod:`pyexpat` module's :class:`Parser` objects now allow setting their " -":attr:`buffer_size` attribute to change the size of the buffer used to hold " +"The :mod:`pyexpat` module's :class:`Parser` objects now allow setting their :" +"attr:`buffer_size` attribute to change the size of the buffer used to hold " "character data. (Contributed by Achim Gaedke; :issue:`1137`.)" #: ../../whatsnew/2.6.rst:2248 msgid "" -"The :mod:`Queue` module now provides queue variants that retrieve entries in" -" different orders. The :class:`PriorityQueue` class stores queued items in " -"a heap and retrieves them in priority order, and :class:`LifoQueue` " -"retrieves the most recently added entries first, meaning that it behaves " -"like a stack. (Contributed by Raymond Hettinger.)" +"The :mod:`Queue` module now provides queue variants that retrieve entries in " +"different orders. The :class:`PriorityQueue` class stores queued items in a " +"heap and retrieves them in priority order, and :class:`LifoQueue` retrieves " +"the most recently added entries first, meaning that it behaves like a stack. " +"(Contributed by Raymond Hettinger.)" msgstr "" -"The :mod:`Queue` module now provides queue variants that retrieve entries in" -" different orders. The :class:`PriorityQueue` class stores queued items in " -"a heap and retrieves them in priority order, and :class:`LifoQueue` " -"retrieves the most recently added entries first, meaning that it behaves " -"like a stack. (Contributed by Raymond Hettinger.)" +"The :mod:`Queue` module now provides queue variants that retrieve entries in " +"different orders. The :class:`PriorityQueue` class stores queued items in a " +"heap and retrieves them in priority order, and :class:`LifoQueue` retrieves " +"the most recently added entries first, meaning that it behaves like a stack. " +"(Contributed by Raymond Hettinger.)" #: ../../whatsnew/2.6.rst:2255 msgid "" @@ -3489,16 +3460,16 @@ msgstr "" #: ../../whatsnew/2.6.rst:2262 msgid "" "The new ``triangular(low, high, mode)`` function returns random numbers " -"following a triangular distribution. The returned values are between *low*" -" and *high*, not including *high* itself, and with *mode* as the most " -"frequently occurring value in the distribution. (Contributed by Wladmir van" -" der Laan and Raymond Hettinger; :issue:`1681432`.)" +"following a triangular distribution. The returned values are between *low* " +"and *high*, not including *high* itself, and with *mode* as the most " +"frequently occurring value in the distribution. (Contributed by Wladmir van " +"der Laan and Raymond Hettinger; :issue:`1681432`.)" msgstr "" "The new ``triangular(low, high, mode)`` function returns random numbers " -"following a triangular distribution. The returned values are between *low*" -" and *high*, not including *high* itself, and with *mode* as the most " -"frequently occurring value in the distribution. (Contributed by Wladmir van" -" der Laan and Raymond Hettinger; :issue:`1681432`.)" +"following a triangular distribution. The returned values are between *low* " +"and *high*, not including *high* itself, and with *mode* as the most " +"frequently occurring value in the distribution. (Contributed by Wladmir van " +"der Laan and Raymond Hettinger; :issue:`1681432`.)" #: ../../whatsnew/2.6.rst:2269 msgid "" @@ -3526,38 +3497,38 @@ msgstr "" #: ../../whatsnew/2.6.rst:2281 msgid "" -"The :mod:`rlcompleter` module's :meth:`Completer.complete()` method will now" -" ignore exceptions triggered while evaluating a name. (Fixed by Lorenz " +"The :mod:`rlcompleter` module's :meth:`Completer.complete()` method will now " +"ignore exceptions triggered while evaluating a name. (Fixed by Lorenz " "Quack; :issue:`2250`.)" msgstr "" -"The :mod:`rlcompleter` module's :meth:`Completer.complete()` method will now" -" ignore exceptions triggered while evaluating a name. (Fixed by Lorenz " +"The :mod:`rlcompleter` module's :meth:`Completer.complete()` method will now " +"ignore exceptions triggered while evaluating a name. (Fixed by Lorenz " "Quack; :issue:`2250`.)" #: ../../whatsnew/2.6.rst:2285 msgid "" -"The :mod:`sched` module's :class:`scheduler` instances now have a read-only " -":attr:`queue` attribute that returns the contents of the scheduler's queue, " +"The :mod:`sched` module's :class:`scheduler` instances now have a read-only :" +"attr:`queue` attribute that returns the contents of the scheduler's queue, " "represented as a list of named tuples with the fields ``(time, priority, " "action, argument)``. (Contributed by Raymond Hettinger; :issue:`1861`.)" msgstr "" -"The :mod:`sched` module's :class:`scheduler` instances now have a read-only " -":attr:`queue` attribute that returns the contents of the scheduler's queue, " +"The :mod:`sched` module's :class:`scheduler` instances now have a read-only :" +"attr:`queue` attribute that returns the contents of the scheduler's queue, " "represented as a list of named tuples with the fields ``(time, priority, " "action, argument)``. (Contributed by Raymond Hettinger; :issue:`1861`.)" #: ../../whatsnew/2.6.rst:2291 msgid "" -"The :mod:`select` module now has wrapper functions for the Linux " -":c:func:`epoll` and BSD :c:func:`kqueue` system calls. :meth:`modify` method" -" was added to the existing :class:`poll` objects; ``pollobj.modify(fd, " +"The :mod:`select` module now has wrapper functions for the Linux :c:func:" +"`epoll` and BSD :c:func:`kqueue` system calls. :meth:`modify` method was " +"added to the existing :class:`poll` objects; ``pollobj.modify(fd, " "eventmask)`` takes a file descriptor or file object and an event mask, " "modifying the recorded event mask for that file. (Contributed by Christian " "Heimes; :issue:`1657`.)" msgstr "" -"The :mod:`select` module now has wrapper functions for the Linux " -":c:func:`epoll` and BSD :c:func:`kqueue` system calls. :meth:`modify` method" -" was added to the existing :class:`poll` objects; ``pollobj.modify(fd, " +"The :mod:`select` module now has wrapper functions for the Linux :c:func:" +"`epoll` and BSD :c:func:`kqueue` system calls. :meth:`modify` method was " +"added to the existing :class:`poll` objects; ``pollobj.modify(fd, " "eventmask)`` takes a file descriptor or file object and an event mask, " "modifying the recorded event mask for that file. (Contributed by Christian " "Heimes; :issue:`1657`.)" @@ -3577,18 +3548,18 @@ msgstr "" #: ../../whatsnew/2.6.rst:2304 msgid "" "The :mod:`shutil` module also provides an :func:`ignore_patterns` function " -"for use with this new parameter. :func:`ignore_patterns` takes an arbitrary" -" number of glob-style patterns and returns a callable that will ignore any " +"for use with this new parameter. :func:`ignore_patterns` takes an arbitrary " +"number of glob-style patterns and returns a callable that will ignore any " "files and directories that match any of these patterns. The following " -"example copies a directory tree, but skips both :file:`.svn` directories and" -" Emacs backup files, which have names ending with '~'::" +"example copies a directory tree, but skips both :file:`.svn` directories and " +"Emacs backup files, which have names ending with '~'::" msgstr "" "The :mod:`shutil` module also provides an :func:`ignore_patterns` function " -"for use with this new parameter. :func:`ignore_patterns` takes an arbitrary" -" number of glob-style patterns and returns a callable that will ignore any " +"for use with this new parameter. :func:`ignore_patterns` takes an arbitrary " +"number of glob-style patterns and returns a callable that will ignore any " "files and directories that match any of these patterns. The following " -"example copies a directory tree, but skips both :file:`.svn` directories and" -" Emacs backup files, which have names ending with '~'::" +"example copies a directory tree, but skips both :file:`.svn` directories and " +"Emacs backup files, which have names ending with '~'::" #: ../../whatsnew/2.6.rst:2315 msgid "(Contributed by Tarek Ziadé; :issue:`2663`.)" @@ -3596,39 +3567,39 @@ msgstr "(Contributed by Tarek Ziadé; :issue:`2663`.)" #: ../../whatsnew/2.6.rst:2317 msgid "" -"Integrating signal handling with GUI handling event loops like those used by" -" Tkinter or GTk+ has long been a problem; most software ends up polling, " +"Integrating signal handling with GUI handling event loops like those used by " +"Tkinter or GTk+ has long been a problem; most software ends up polling, " "waking up every fraction of a second to check if any GUI events have " -"occurred. The :mod:`signal` module can now make this more efficient. Calling" -" ``signal.set_wakeup_fd(fd)`` sets a file descriptor to be used; when a " -"signal is received, a byte is written to that file descriptor. There's also" -" a C-level function, :c:func:`PySignal_SetWakeupFd`, for setting the " +"occurred. The :mod:`signal` module can now make this more efficient. Calling " +"``signal.set_wakeup_fd(fd)`` sets a file descriptor to be used; when a " +"signal is received, a byte is written to that file descriptor. There's also " +"a C-level function, :c:func:`PySignal_SetWakeupFd`, for setting the " "descriptor." msgstr "" -"Integrating signal handling with GUI handling event loops like those used by" -" Tkinter or GTk+ has long been a problem; most software ends up polling, " +"Integrating signal handling with GUI handling event loops like those used by " +"Tkinter or GTk+ has long been a problem; most software ends up polling, " "waking up every fraction of a second to check if any GUI events have " -"occurred. The :mod:`signal` module can now make this more efficient. Calling" -" ``signal.set_wakeup_fd(fd)`` sets a file descriptor to be used; when a " -"signal is received, a byte is written to that file descriptor. There's also" -" a C-level function, :c:func:`PySignal_SetWakeupFd`, for setting the " +"occurred. The :mod:`signal` module can now make this more efficient. Calling " +"``signal.set_wakeup_fd(fd)`` sets a file descriptor to be used; when a " +"signal is received, a byte is written to that file descriptor. There's also " +"a C-level function, :c:func:`PySignal_SetWakeupFd`, for setting the " "descriptor." #: ../../whatsnew/2.6.rst:2327 msgid "" "Event loops will use this by opening a pipe to create two descriptors, one " -"for reading and one for writing. The writable descriptor will be passed to " -":func:`set_wakeup_fd`, and the readable descriptor will be added to the list" -" of descriptors monitored by the event loop via :c:func:`select` or " -":c:func:`poll`. On receiving a signal, a byte will be written and the main " -"event loop will be woken up, avoiding the need to poll." +"for reading and one for writing. The writable descriptor will be passed to :" +"func:`set_wakeup_fd`, and the readable descriptor will be added to the list " +"of descriptors monitored by the event loop via :c:func:`select` or :c:func:" +"`poll`. On receiving a signal, a byte will be written and the main event " +"loop will be woken up, avoiding the need to poll." msgstr "" "Event loops will use this by opening a pipe to create two descriptors, one " -"for reading and one for writing. The writable descriptor will be passed to " -":func:`set_wakeup_fd`, and the readable descriptor will be added to the list" -" of descriptors monitored by the event loop via :c:func:`select` or " -":c:func:`poll`. On receiving a signal, a byte will be written and the main " -"event loop will be woken up, avoiding the need to poll." +"for reading and one for writing. The writable descriptor will be passed to :" +"func:`set_wakeup_fd`, and the readable descriptor will be added to the list " +"of descriptors monitored by the event loop via :c:func:`select` or :c:func:" +"`poll`. On receiving a signal, a byte will be written and the main event " +"loop will be woken up, avoiding the need to poll." #: ../../whatsnew/2.6.rst:2335 msgid "(Contributed by Adam Olsen; :issue:`1583`.)" @@ -3647,16 +3618,16 @@ msgstr "" #: ../../whatsnew/2.6.rst:2341 msgid "" "The :func:`setitimer` and :func:`getitimer` functions have also been added " -"(where they're available). :func:`setitimer` allows setting interval timers" -" that will cause a signal to be delivered to the process after a specified " -"time, measured in wall-clock time, consumed process time, or combined " -"process+system time. (Contributed by Guilherme Polo; :issue:`2240`.)" +"(where they're available). :func:`setitimer` allows setting interval timers " +"that will cause a signal to be delivered to the process after a specified " +"time, measured in wall-clock time, consumed process time, or combined process" +"+system time. (Contributed by Guilherme Polo; :issue:`2240`.)" msgstr "" "The :func:`setitimer` and :func:`getitimer` functions have also been added " -"(where they're available). :func:`setitimer` allows setting interval timers" -" that will cause a signal to be delivered to the process after a specified " -"time, measured in wall-clock time, consumed process time, or combined " -"process+system time. (Contributed by Guilherme Polo; :issue:`2240`.)" +"(where they're available). :func:`setitimer` allows setting interval timers " +"that will cause a signal to be delivered to the process after a specified " +"time, measured in wall-clock time, consumed process time, or combined process" +"+system time. (Contributed by Guilherme Polo; :issue:`2240`.)" #: ../../whatsnew/2.6.rst:2348 msgid "" @@ -3664,27 +3635,27 @@ msgid "" "of the :class:`SMTP_SSL` class. This class supports an interface identical " "to the existing :class:`SMTP` class. (Contributed by Monty Taylor.) Both " "class constructors also have an optional ``timeout`` parameter that " -"specifies a timeout for the initial connection attempt, measured in seconds." -" (Contributed by Facundo Batista.)" +"specifies a timeout for the initial connection attempt, measured in " +"seconds. (Contributed by Facundo Batista.)" msgstr "" "The :mod:`smtplib` module now supports SMTP over SSL thanks to the addition " "of the :class:`SMTP_SSL` class. This class supports an interface identical " "to the existing :class:`SMTP` class. (Contributed by Monty Taylor.) Both " "class constructors also have an optional ``timeout`` parameter that " -"specifies a timeout for the initial connection attempt, measured in seconds." -" (Contributed by Facundo Batista.)" +"specifies a timeout for the initial connection attempt, measured in " +"seconds. (Contributed by Facundo Batista.)" #: ../../whatsnew/2.6.rst:2356 msgid "" "An implementation of the LMTP protocol (:rfc:`2033`) was also added to the " "module. LMTP is used in place of SMTP when transferring e-mail between " -"agents that don't manage a mail queue. (LMTP implemented by Leif Hedstrom; " -":issue:`957003`.)" +"agents that don't manage a mail queue. (LMTP implemented by Leif Hedstrom; :" +"issue:`957003`.)" msgstr "" "An implementation of the LMTP protocol (:rfc:`2033`) was also added to the " "module. LMTP is used in place of SMTP when transferring e-mail between " -"agents that don't manage a mail queue. (LMTP implemented by Leif Hedstrom; " -":issue:`957003`.)" +"agents that don't manage a mail queue. (LMTP implemented by Leif Hedstrom; :" +"issue:`957003`.)" #: ../../whatsnew/2.6.rst:2361 msgid "" @@ -3698,13 +3669,13 @@ msgstr "" #: ../../whatsnew/2.6.rst:2366 msgid "" -"The :mod:`socket` module now supports TIPC (http://tipc.sourceforge.net/), a" -" high-performance non-IP-based protocol designed for use in clustered " +"The :mod:`socket` module now supports TIPC (http://tipc.sourceforge.net/), a " +"high-performance non-IP-based protocol designed for use in clustered " "environments. TIPC addresses are 4- or 5-tuples. (Contributed by Alberto " "Bertogli; :issue:`1646`.)" msgstr "" -"The :mod:`socket` module now supports TIPC (http://tipc.sourceforge.net/), a" -" high-performance non-IP-based protocol designed for use in clustered " +"The :mod:`socket` module now supports TIPC (http://tipc.sourceforge.net/), a " +"high-performance non-IP-based protocol designed for use in clustered " "environments. TIPC addresses are 4- or 5-tuples. (Contributed by Alberto " "Bertogli; :issue:`1646`.)" @@ -3712,35 +3683,35 @@ msgstr "" msgid "" "A new function, :func:`create_connection`, takes an address and connects to " "it using an optional timeout value, returning the connected socket object. " -"This function also looks up the address's type and connects to it using IPv4" -" or IPv6 as appropriate. Changing your code to use " -":func:`create_connection` instead of ``socket(socket.AF_INET, ...)`` may be " -"all that's required to make your code work with IPv6." +"This function also looks up the address's type and connects to it using IPv4 " +"or IPv6 as appropriate. Changing your code to use :func:`create_connection` " +"instead of ``socket(socket.AF_INET, ...)`` may be all that's required to " +"make your code work with IPv6." msgstr "" "A new function, :func:`create_connection`, takes an address and connects to " "it using an optional timeout value, returning the connected socket object. " -"This function also looks up the address's type and connects to it using IPv4" -" or IPv6 as appropriate. Changing your code to use " -":func:`create_connection` instead of ``socket(socket.AF_INET, ...)`` may be " -"all that's required to make your code work with IPv6." +"This function also looks up the address's type and connects to it using IPv4 " +"or IPv6 as appropriate. Changing your code to use :func:`create_connection` " +"instead of ``socket(socket.AF_INET, ...)`` may be all that's required to " +"make your code work with IPv6." #: ../../whatsnew/2.6.rst:2379 msgid "" -"The base classes in the :mod:`SocketServer` module now support calling a " -":meth:`handle_timeout` method after a span of inactivity specified by the " +"The base classes in the :mod:`SocketServer` module now support calling a :" +"meth:`handle_timeout` method after a span of inactivity specified by the " "server's :attr:`timeout` attribute. (Contributed by Michael Pomraning.) " "The :meth:`serve_forever` method now takes an optional poll interval " "measured in seconds, controlling how often the server will check for a " -"shutdown request. (Contributed by Pedro Werneck and Jeffrey Yasskin; " -":issue:`742598`, :issue:`1193577`.)" +"shutdown request. (Contributed by Pedro Werneck and Jeffrey Yasskin; :issue:" +"`742598`, :issue:`1193577`.)" msgstr "" -"The base classes in the :mod:`SocketServer` module now support calling a " -":meth:`handle_timeout` method after a span of inactivity specified by the " +"The base classes in the :mod:`SocketServer` module now support calling a :" +"meth:`handle_timeout` method after a span of inactivity specified by the " "server's :attr:`timeout` attribute. (Contributed by Michael Pomraning.) " "The :meth:`serve_forever` method now takes an optional poll interval " "measured in seconds, controlling how often the server will check for a " -"shutdown request. (Contributed by Pedro Werneck and Jeffrey Yasskin; " -":issue:`742598`, :issue:`1193577`.)" +"shutdown request. (Contributed by Pedro Werneck and Jeffrey Yasskin; :issue:" +"`742598`, :issue:`1193577`.)" #: ../../whatsnew/2.6.rst:2388 msgid "" @@ -3760,83 +3731,81 @@ msgstr "" #: ../../whatsnew/2.6.rst:2396 msgid "" -"The :class:`Popen` objects provided by the :mod:`subprocess` module now have" -" :meth:`terminate`, :meth:`kill`, and :meth:`send_signal` methods. On " +"The :class:`Popen` objects provided by the :mod:`subprocess` module now " +"have :meth:`terminate`, :meth:`kill`, and :meth:`send_signal` methods. On " "Windows, :meth:`send_signal` only supports the :const:`SIGTERM` signal, and " -"all these methods are aliases for the Win32 API function " -":c:func:`TerminateProcess`. (Contributed by Christian Heimes.)" +"all these methods are aliases for the Win32 API function :c:func:" +"`TerminateProcess`. (Contributed by Christian Heimes.)" msgstr "" -"The :class:`Popen` objects provided by the :mod:`subprocess` module now have" -" :meth:`terminate`, :meth:`kill`, and :meth:`send_signal` methods. On " +"The :class:`Popen` objects provided by the :mod:`subprocess` module now " +"have :meth:`terminate`, :meth:`kill`, and :meth:`send_signal` methods. On " "Windows, :meth:`send_signal` only supports the :const:`SIGTERM` signal, and " -"all these methods are aliases for the Win32 API function " -":c:func:`TerminateProcess`. (Contributed by Christian Heimes.)" +"all these methods are aliases for the Win32 API function :c:func:" +"`TerminateProcess`. (Contributed by Christian Heimes.)" #: ../../whatsnew/2.6.rst:2403 msgid "" "A new variable in the :mod:`sys` module, :attr:`float_info`, is an object " "containing information derived from the :file:`float.h` file about the " -"platform's floating-point support. Attributes of this object include " -":attr:`mant_dig` (number of digits in the mantissa), :attr:`epsilon` " -"(smallest difference between 1.0 and the next largest value representable), " -"and several others. (Contributed by Christian Heimes; :issue:`1534`.)" +"platform's floating-point support. Attributes of this object include :attr:" +"`mant_dig` (number of digits in the mantissa), :attr:`epsilon` (smallest " +"difference between 1.0 and the next largest value representable), and " +"several others. (Contributed by Christian Heimes; :issue:`1534`.)" msgstr "" "A new variable in the :mod:`sys` module, :attr:`float_info`, is an object " "containing information derived from the :file:`float.h` file about the " -"platform's floating-point support. Attributes of this object include " -":attr:`mant_dig` (number of digits in the mantissa), :attr:`epsilon` " -"(smallest difference between 1.0 and the next largest value representable), " -"and several others. (Contributed by Christian Heimes; :issue:`1534`.)" +"platform's floating-point support. Attributes of this object include :attr:" +"`mant_dig` (number of digits in the mantissa), :attr:`epsilon` (smallest " +"difference between 1.0 and the next largest value representable), and " +"several others. (Contributed by Christian Heimes; :issue:`1534`.)" #: ../../whatsnew/2.6.rst:2411 msgid "" "Another new variable, :attr:`dont_write_bytecode`, controls whether Python " -"writes any :file:`.pyc` or :file:`.pyo` files on importing a module. If this" -" variable is true, the compiled files are not written. The variable is " -"initially set on start-up by supplying the :option:`-B` switch to the Python" -" interpreter, or by setting the :envvar:`PYTHONDONTWRITEBYTECODE` " -"environment variable before running the interpreter. Python code can " -"subsequently change the value of this variable to control whether bytecode " -"files are written or not. (Contributed by Neal Norwitz and Georg Brandl.)" +"writes any :file:`.pyc` or :file:`.pyo` files on importing a module. If this " +"variable is true, the compiled files are not written. The variable is " +"initially set on start-up by supplying the :option:`-B` switch to the Python " +"interpreter, or by setting the :envvar:`PYTHONDONTWRITEBYTECODE` environment " +"variable before running the interpreter. Python code can subsequently " +"change the value of this variable to control whether bytecode files are " +"written or not. (Contributed by Neal Norwitz and Georg Brandl.)" msgstr "" "Another new variable, :attr:`dont_write_bytecode`, controls whether Python " -"writes any :file:`.pyc` or :file:`.pyo` files on importing a module. If this" -" variable is true, the compiled files are not written. The variable is " -"initially set on start-up by supplying the :option:`-B` switch to the Python" -" interpreter, or by setting the :envvar:`PYTHONDONTWRITEBYTECODE` " -"environment variable before running the interpreter. Python code can " -"subsequently change the value of this variable to control whether bytecode " -"files are written or not. (Contributed by Neal Norwitz and Georg Brandl.)" +"writes any :file:`.pyc` or :file:`.pyo` files on importing a module. If this " +"variable is true, the compiled files are not written. The variable is " +"initially set on start-up by supplying the :option:`-B` switch to the Python " +"interpreter, or by setting the :envvar:`PYTHONDONTWRITEBYTECODE` environment " +"variable before running the interpreter. Python code can subsequently " +"change the value of this variable to control whether bytecode files are " +"written or not. (Contributed by Neal Norwitz and Georg Brandl.)" #: ../../whatsnew/2.6.rst:2422 msgid "" "Information about the command-line arguments supplied to the Python " -"interpreter is available by reading attributes of a named tuple available as" -" ``sys.flags``. For example, the :attr:`verbose` attribute is true if " -"Python was executed in verbose mode, :attr:`debug` is true in debugging " -"mode, etc. These attributes are all read-only. (Contributed by Christian " -"Heimes.)" +"interpreter is available by reading attributes of a named tuple available as " +"``sys.flags``. For example, the :attr:`verbose` attribute is true if Python " +"was executed in verbose mode, :attr:`debug` is true in debugging mode, etc. " +"These attributes are all read-only. (Contributed by Christian Heimes.)" msgstr "" "Information about the command-line arguments supplied to the Python " -"interpreter is available by reading attributes of a named tuple available as" -" ``sys.flags``. For example, the :attr:`verbose` attribute is true if " -"Python was executed in verbose mode, :attr:`debug` is true in debugging " -"mode, etc. These attributes are all read-only. (Contributed by Christian " -"Heimes.)" +"interpreter is available by reading attributes of a named tuple available as " +"``sys.flags``. For example, the :attr:`verbose` attribute is true if Python " +"was executed in verbose mode, :attr:`debug` is true in debugging mode, etc. " +"These attributes are all read-only. (Contributed by Christian Heimes.)" #: ../../whatsnew/2.6.rst:2430 msgid "" "A new function, :func:`getsizeof`, takes a Python object and returns the " "amount of memory used by the object, measured in bytes. Built-in objects " -"return correct results; third-party extensions may not, but can define a " -":meth:`__sizeof__` method to return the object's size. (Contributed by " -"Robert Schuppenies; :issue:`2898`.)" +"return correct results; third-party extensions may not, but can define a :" +"meth:`__sizeof__` method to return the object's size. (Contributed by Robert " +"Schuppenies; :issue:`2898`.)" msgstr "" "A new function, :func:`getsizeof`, takes a Python object and returns the " "amount of memory used by the object, measured in bytes. Built-in objects " -"return correct results; third-party extensions may not, but can define a " -":meth:`__sizeof__` method to return the object's size. (Contributed by " -"Robert Schuppenies; :issue:`2898`.)" +"return correct results; third-party extensions may not, but can define a :" +"meth:`__sizeof__` method to return the object's size. (Contributed by Robert " +"Schuppenies; :issue:`2898`.)" #: ../../whatsnew/2.6.rst:2437 msgid "" @@ -3880,16 +3849,16 @@ msgstr "" msgid "" "The :meth:`TarFile.add` method now accepts an ``exclude`` argument that's a " "function that can be used to exclude certain filenames from an archive. The " -"function must take a filename and return true if the file should be excluded" -" or false if it should be archived. The function is applied to both the name" -" initially passed to :meth:`add` and to the names of files in recursively-" +"function must take a filename and return true if the file should be excluded " +"or false if it should be archived. The function is applied to both the name " +"initially passed to :meth:`add` and to the names of files in recursively-" "added directories." msgstr "" "The :meth:`TarFile.add` method now accepts an ``exclude`` argument that's a " "function that can be used to exclude certain filenames from an archive. The " -"function must take a filename and return true if the file should be excluded" -" or false if it should be archived. The function is applied to both the name" -" initially passed to :meth:`add` and to the names of files in recursively-" +"function must take a filename and return true if the file should be excluded " +"or false if it should be archived. The function is applied to both the name " +"initially passed to :meth:`add` and to the names of files in recursively-" "added directories." #: ../../whatsnew/2.6.rst:2465 @@ -3898,49 +3867,49 @@ msgstr "(All changes contributed by Lars Gustäbel)." #: ../../whatsnew/2.6.rst:2467 msgid "" -"An optional ``timeout`` parameter was added to the :class:`telnetlib.Telnet`" -" class constructor, specifying a timeout measured in seconds. (Added by " +"An optional ``timeout`` parameter was added to the :class:`telnetlib.Telnet` " +"class constructor, specifying a timeout measured in seconds. (Added by " "Facundo Batista.)" msgstr "" -"An optional ``timeout`` parameter was added to the :class:`telnetlib.Telnet`" -" class constructor, specifying a timeout measured in seconds. (Added by " +"An optional ``timeout`` parameter was added to the :class:`telnetlib.Telnet` " +"class constructor, specifying a timeout measured in seconds. (Added by " "Facundo Batista.)" #: ../../whatsnew/2.6.rst:2471 msgid "" -"The :class:`tempfile.NamedTemporaryFile` class usually deletes the temporary" -" file it created when the file is closed. This behaviour can now be changed" -" by passing ``delete=False`` to the constructor. (Contributed by Damien " +"The :class:`tempfile.NamedTemporaryFile` class usually deletes the temporary " +"file it created when the file is closed. This behaviour can now be changed " +"by passing ``delete=False`` to the constructor. (Contributed by Damien " "Miller; :issue:`1537850`.)" msgstr "" -"The :class:`tempfile.NamedTemporaryFile` class usually deletes the temporary" -" file it created when the file is closed. This behaviour can now be changed" -" by passing ``delete=False`` to the constructor. (Contributed by Damien " +"The :class:`tempfile.NamedTemporaryFile` class usually deletes the temporary " +"file it created when the file is closed. This behaviour can now be changed " +"by passing ``delete=False`` to the constructor. (Contributed by Damien " "Miller; :issue:`1537850`.)" #: ../../whatsnew/2.6.rst:2476 msgid "" "A new class, :class:`SpooledTemporaryFile`, behaves like a temporary file " -"but stores its data in memory until a maximum size is exceeded. On reaching" -" that limit, the contents will be written to an on-disk temporary file. " +"but stores its data in memory until a maximum size is exceeded. On reaching " +"that limit, the contents will be written to an on-disk temporary file. " "(Contributed by Dustin J. Mitchell.)" msgstr "" "A new class, :class:`SpooledTemporaryFile`, behaves like a temporary file " -"but stores its data in memory until a maximum size is exceeded. On reaching" -" that limit, the contents will be written to an on-disk temporary file. " +"but stores its data in memory until a maximum size is exceeded. On reaching " +"that limit, the contents will be written to an on-disk temporary file. " "(Contributed by Dustin J. Mitchell.)" #: ../../whatsnew/2.6.rst:2481 msgid "" "The :class:`NamedTemporaryFile` and :class:`SpooledTemporaryFile` classes " -"both work as context managers, so you can write ``with " -"tempfile.NamedTemporaryFile() as tmp: ...``. (Contributed by Alexander " -"Belopolsky; :issue:`2021`.)" +"both work as context managers, so you can write ``with tempfile." +"NamedTemporaryFile() as tmp: ...``. (Contributed by Alexander Belopolsky; :" +"issue:`2021`.)" msgstr "" "The :class:`NamedTemporaryFile` and :class:`SpooledTemporaryFile` classes " -"both work as context managers, so you can write ``with " -"tempfile.NamedTemporaryFile() as tmp: ...``. (Contributed by Alexander " -"Belopolsky; :issue:`2021`.)" +"both work as context managers, so you can write ``with tempfile." +"NamedTemporaryFile() as tmp: ...``. (Contributed by Alexander Belopolsky; :" +"issue:`2021`.)" #: ../../whatsnew/2.6.rst:2486 msgid "" @@ -3996,61 +3965,61 @@ msgstr "(Contributed by Dwayne Bailey; :issue:`1581073`.)" #: ../../whatsnew/2.6.rst:2536 msgid "" -"The :mod:`threading` module API is being changed to use properties such as " -":attr:`daemon` instead of :meth:`setDaemon` and :meth:`isDaemon` methods, " -"and some methods have been renamed to use underscores instead of camel-case;" -" for example, the :meth:`activeCount` method is renamed to " -":meth:`active_count`. Both the 2.6 and 3.0 versions of the module support " -"the same properties and renamed methods, but don't remove the old methods. " -"No date has been set for the deprecation of the old APIs in Python 3.x; the " -"old APIs won't be removed in any 2.x version. (Carried out by several " -"people, most notably Benjamin Peterson.)" -msgstr "" -"The :mod:`threading` module API is being changed to use properties such as " -":attr:`daemon` instead of :meth:`setDaemon` and :meth:`isDaemon` methods, " -"and some methods have been renamed to use underscores instead of camel-case;" -" for example, the :meth:`activeCount` method is renamed to " -":meth:`active_count`. Both the 2.6 and 3.0 versions of the module support " -"the same properties and renamed methods, but don't remove the old methods. " -"No date has been set for the deprecation of the old APIs in Python 3.x; the " -"old APIs won't be removed in any 2.x version. (Carried out by several " -"people, most notably Benjamin Peterson.)" +"The :mod:`threading` module API is being changed to use properties such as :" +"attr:`daemon` instead of :meth:`setDaemon` and :meth:`isDaemon` methods, and " +"some methods have been renamed to use underscores instead of camel-case; for " +"example, the :meth:`activeCount` method is renamed to :meth:`active_count`. " +"Both the 2.6 and 3.0 versions of the module support the same properties and " +"renamed methods, but don't remove the old methods. No date has been set for " +"the deprecation of the old APIs in Python 3.x; the old APIs won't be removed " +"in any 2.x version. (Carried out by several people, most notably Benjamin " +"Peterson.)" +msgstr "" +"The :mod:`threading` module API is being changed to use properties such as :" +"attr:`daemon` instead of :meth:`setDaemon` and :meth:`isDaemon` methods, and " +"some methods have been renamed to use underscores instead of camel-case; for " +"example, the :meth:`activeCount` method is renamed to :meth:`active_count`. " +"Both the 2.6 and 3.0 versions of the module support the same properties and " +"renamed methods, but don't remove the old methods. No date has been set for " +"the deprecation of the old APIs in Python 3.x; the old APIs won't be removed " +"in any 2.x version. (Carried out by several people, most notably Benjamin " +"Peterson.)" #: ../../whatsnew/2.6.rst:2547 msgid "" -"The :mod:`threading` module's :class:`Thread` objects gained an " -":attr:`ident` property that returns the thread's identifier, a nonzero " -"integer. (Contributed by Gregory P. Smith; :issue:`2871`.)" +"The :mod:`threading` module's :class:`Thread` objects gained an :attr:" +"`ident` property that returns the thread's identifier, a nonzero integer. " +"(Contributed by Gregory P. Smith; :issue:`2871`.)" msgstr "" -"The :mod:`threading` module's :class:`Thread` objects gained an " -":attr:`ident` property that returns the thread's identifier, a nonzero " -"integer. (Contributed by Gregory P. Smith; :issue:`2871`.)" +"The :mod:`threading` module's :class:`Thread` objects gained an :attr:" +"`ident` property that returns the thread's identifier, a nonzero integer. " +"(Contributed by Gregory P. Smith; :issue:`2871`.)" #: ../../whatsnew/2.6.rst:2552 msgid "" "The :mod:`timeit` module now accepts callables as well as strings for the " -"statement being timed and for the setup code. Two convenience functions were" -" added for creating :class:`Timer` instances: ``repeat(stmt, setup, time, " +"statement being timed and for the setup code. Two convenience functions were " +"added for creating :class:`Timer` instances: ``repeat(stmt, setup, time, " "repeat, number)`` and ``timeit(stmt, setup, time, number)`` create an " -"instance and call the corresponding method. (Contributed by Erik Demaine; " -":issue:`1533909`.)" +"instance and call the corresponding method. (Contributed by Erik Demaine; :" +"issue:`1533909`.)" msgstr "" "The :mod:`timeit` module now accepts callables as well as strings for the " -"statement being timed and for the setup code. Two convenience functions were" -" added for creating :class:`Timer` instances: ``repeat(stmt, setup, time, " +"statement being timed and for the setup code. Two convenience functions were " +"added for creating :class:`Timer` instances: ``repeat(stmt, setup, time, " "repeat, number)`` and ``timeit(stmt, setup, time, number)`` create an " -"instance and call the corresponding method. (Contributed by Erik Demaine; " -":issue:`1533909`.)" +"instance and call the corresponding method. (Contributed by Erik Demaine; :" +"issue:`1533909`.)" #: ../../whatsnew/2.6.rst:2561 msgid "" "The :mod:`Tkinter` module now accepts lists and tuples for options, " -"separating the elements by spaces before passing the resulting value to " -"Tcl/Tk. (Contributed by Guilherme Polo; :issue:`2906`.)" +"separating the elements by spaces before passing the resulting value to Tcl/" +"Tk. (Contributed by Guilherme Polo; :issue:`2906`.)" msgstr "" "The :mod:`Tkinter` module now accepts lists and tuples for options, " -"separating the elements by spaces before passing the resulting value to " -"Tcl/Tk. (Contributed by Guilherme Polo; :issue:`2906`.)" +"separating the elements by spaces before passing the resulting value to Tcl/" +"Tk. (Contributed by Guilherme Polo; :issue:`2906`.)" #: ../../whatsnew/2.6.rst:2566 msgid "" @@ -4074,11 +4043,11 @@ msgstr "" #: ../../whatsnew/2.6.rst:2572 msgid "" -"The ability to set new shapes for the turtle, and to define a new coordinate" -" system." +"The ability to set new shapes for the turtle, and to define a new coordinate " +"system." msgstr "" -"The ability to set new shapes for the turtle, and to define a new coordinate" -" system." +"The ability to set new shapes for the turtle, and to define a new coordinate " +"system." #: ../../whatsnew/2.6.rst:2574 msgid "Turtles now have an :meth:`undo()` method that can roll back actions." @@ -4160,10 +4129,10 @@ msgstr "" #: ../../whatsnew/2.6.rst:2612 msgid "" -"The XML-RPC :class:`SimpleXMLRPCServer` and :class:`DocXMLRPCServer` classes" -" can now be prevented from immediately opening and binding to their socket " -"by passing ``False`` as the *bind_and_activate* constructor parameter. This" -" can be used to modify the instance's :attr:`allow_reuse_address` attribute " +"The XML-RPC :class:`SimpleXMLRPCServer` and :class:`DocXMLRPCServer` classes " +"can now be prevented from immediately opening and binding to their socket by " +"passing ``False`` as the *bind_and_activate* constructor parameter. This " +"can be used to modify the instance's :attr:`allow_reuse_address` attribute " "before calling the :meth:`server_bind` and :meth:`server_activate` methods " "to open the socket and begin listening for connections. (Contributed by " "Peter Parente; :issue:`1599845`.)" @@ -4174,38 +4143,38 @@ msgid "" ":class:`SimpleXMLRPCServer` also has a :attr:`_send_traceback_header` " "attribute; if true, the exception and formatted traceback are returned as " "HTTP headers \"X-Exception\" and \"X-Traceback\". This feature is for " -"debugging purposes only and should not be used on production servers because" -" the tracebacks might reveal passwords or other sensitive information. " +"debugging purposes only and should not be used on production servers because " +"the tracebacks might reveal passwords or other sensitive information. " "(Contributed by Alan McIntyre as part of his project for Google's Summer of " "Code 2007.)" msgstr "" ":class:`SimpleXMLRPCServer` also has a :attr:`_send_traceback_header` " "attribute; if true, the exception and formatted traceback are returned as " "HTTP headers \"X-Exception\" and \"X-Traceback\". This feature is for " -"debugging purposes only and should not be used on production servers because" -" the tracebacks might reveal passwords or other sensitive information. " +"debugging purposes only and should not be used on production servers because " +"the tracebacks might reveal passwords or other sensitive information. " "(Contributed by Alan McIntyre as part of his project for Google's Summer of " "Code 2007.)" #: ../../whatsnew/2.6.rst:2629 msgid "" -"The :mod:`xmlrpclib` module no longer automatically converts " -":class:`datetime.date` and :class:`datetime.time` to the " -":class:`xmlrpclib.DateTime` type; the conversion semantics were not " -"necessarily correct for all applications. Code using :mod:`xmlrpclib` " -"should convert :class:`date` and :class:`~datetime.time` instances. " -"(:issue:`1330538`) The code can also handle dates before 1900 (contributed " -"by Ralf Schmitt; :issue:`2014`) and 64-bit integers represented by using " -"```` in XML-RPC responses (contributed by Riku Lindblad; :issue:`2985`)." -msgstr "" -"The :mod:`xmlrpclib` module no longer automatically converts " -":class:`datetime.date` and :class:`datetime.time` to the " -":class:`xmlrpclib.DateTime` type; the conversion semantics were not " -"necessarily correct for all applications. Code using :mod:`xmlrpclib` " -"should convert :class:`date` and :class:`~datetime.time` instances. " -"(:issue:`1330538`) The code can also handle dates before 1900 (contributed " -"by Ralf Schmitt; :issue:`2014`) and 64-bit integers represented by using " -"```` in XML-RPC responses (contributed by Riku Lindblad; :issue:`2985`)." +"The :mod:`xmlrpclib` module no longer automatically converts :class:" +"`datetime.date` and :class:`datetime.time` to the :class:`xmlrpclib." +"DateTime` type; the conversion semantics were not necessarily correct for " +"all applications. Code using :mod:`xmlrpclib` should convert :class:`date` " +"and :class:`~datetime.time` instances. (:issue:`1330538`) The code can also " +"handle dates before 1900 (contributed by Ralf Schmitt; :issue:`2014`) and 64-" +"bit integers represented by using ```` in XML-RPC responses (contributed " +"by Riku Lindblad; :issue:`2985`)." +msgstr "" +"The :mod:`xmlrpclib` module no longer automatically converts :class:" +"`datetime.date` and :class:`datetime.time` to the :class:`xmlrpclib." +"DateTime` type; the conversion semantics were not necessarily correct for " +"all applications. Code using :mod:`xmlrpclib` should convert :class:`date` " +"and :class:`~datetime.time` instances. (:issue:`1330538`) The code can also " +"handle dates before 1900 (contributed by Ralf Schmitt; :issue:`2014`) and 64-" +"bit integers represented by using ```` in XML-RPC responses (contributed " +"by Riku Lindblad; :issue:`2985`)." #: ../../whatsnew/2.6.rst:2639 msgid "" @@ -4249,23 +4218,21 @@ msgstr "The :mod:`ast` module" msgid "" "The :mod:`ast` module provides an Abstract Syntax Tree representation of " "Python code, and Armin Ronacher contributed a set of helper functions that " -"perform a variety of common tasks. These will be useful for HTML templating" -" packages, code analyzers, and similar tools that process Python code." +"perform a variety of common tasks. These will be useful for HTML templating " +"packages, code analyzers, and similar tools that process Python code." msgstr "" "The :mod:`ast` module provides an Abstract Syntax Tree representation of " "Python code, and Armin Ronacher contributed a set of helper functions that " -"perform a variety of common tasks. These will be useful for HTML templating" -" packages, code analyzers, and similar tools that process Python code." +"perform a variety of common tasks. These will be useful for HTML templating " +"packages, code analyzers, and similar tools that process Python code." #: ../../whatsnew/2.6.rst:2676 msgid "" -"The :func:`parse` function takes an expression and returns an AST. The " -":func:`dump` function outputs a representation of a tree, suitable for " -"debugging::" +"The :func:`parse` function takes an expression and returns an AST. The :func:" +"`dump` function outputs a representation of a tree, suitable for debugging::" msgstr "" -"The :func:`parse` function takes an expression and returns an AST. The " -":func:`dump` function outputs a representation of a tree, suitable for " -"debugging::" +"The :func:`parse` function takes an expression and returns an AST. The :func:" +"`dump` function outputs a representation of a tree, suitable for debugging::" #: ../../whatsnew/2.6.rst:2690 msgid "This outputs a deeply nested tree::" @@ -4275,15 +4242,15 @@ msgstr "This outputs a deeply nested tree::" msgid "" "The :func:`literal_eval` method takes a string or an AST representing a " "literal expression, parses and evaluates it, and returns the resulting " -"value. A literal expression is a Python expression containing only strings," -" numbers, dictionaries, etc. but no statements or function calls. If you " +"value. A literal expression is a Python expression containing only strings, " +"numbers, dictionaries, etc. but no statements or function calls. If you " "need to evaluate an expression but cannot accept the security risk of using " "an :func:`eval` call, :func:`literal_eval` will handle it safely::" msgstr "" "The :func:`literal_eval` method takes a string or an AST representing a " "literal expression, parses and evaluates it, and returns the resulting " -"value. A literal expression is a Python expression containing only strings," -" numbers, dictionaries, etc. but no statements or function calls. If you " +"value. A literal expression is a Python expression containing only strings, " +"numbers, dictionaries, etc. but no statements or function calls. If you " "need to evaluate an expression but cannot accept the security risk of using " "an :func:`eval` call, :func:`literal_eval` will handle it safely::" @@ -4306,14 +4273,14 @@ msgid "" "Python 3.0 makes many changes to the repertoire of built-in functions, and " "most of the changes can't be introduced in the Python 2.x series because " "they would break compatibility. The :mod:`future_builtins` module provides " -"versions of these built-in functions that can be imported when writing " -"3.0-compatible code." +"versions of these built-in functions that can be imported when writing 3.0-" +"compatible code." msgstr "" "Python 3.0 makes many changes to the repertoire of built-in functions, and " "most of the changes can't be introduced in the Python 2.x series because " "they would break compatibility. The :mod:`future_builtins` module provides " -"versions of these built-in functions that can be imported when writing " -"3.0-compatible code." +"versions of these built-in functions that can be imported when writing 3.0-" +"compatible code." #: ../../whatsnew/2.6.rst:2756 msgid "The functions in this module currently include:" @@ -4339,15 +4306,15 @@ msgstr "" #: ../../whatsnew/2.6.rst:2766 msgid "" -"``hex(value)``, ``oct(value)``: instead of calling the :meth:`__hex__` or " -":meth:`__oct__` methods, these versions will call the :meth:`__index__` " -"method and convert the result to hexadecimal or octal. :func:`oct` will use" -" the new ``0o`` notation for its result." +"``hex(value)``, ``oct(value)``: instead of calling the :meth:`__hex__` or :" +"meth:`__oct__` methods, these versions will call the :meth:`__index__` " +"method and convert the result to hexadecimal or octal. :func:`oct` will use " +"the new ``0o`` notation for its result." msgstr "" -"``hex(value)``, ``oct(value)``: instead of calling the :meth:`__hex__` or " -":meth:`__oct__` methods, these versions will call the :meth:`__index__` " -"method and convert the result to hexadecimal or octal. :func:`oct` will use" -" the new ``0o`` notation for its result." +"``hex(value)``, ``oct(value)``: instead of calling the :meth:`__hex__` or :" +"meth:`__oct__` methods, these versions will call the :meth:`__index__` " +"method and convert the result to hexadecimal or octal. :func:`oct` will use " +"the new ``0o`` notation for its result." #: ../../whatsnew/2.6.rst:2775 msgid "The :mod:`json` module: JavaScript Object Notation" @@ -4382,8 +4349,7 @@ msgstr "" "types. Pretty-printing of the JSON strings is also supported." #: ../../whatsnew/2.6.rst:2796 -msgid "" -":mod:`json` (originally called simplejson) was written by Bob Ippolito." +msgid ":mod:`json` (originally called simplejson) was written by Bob Ippolito." msgstr "" ":mod:`json` (originally called simplejson) was written by Bob Ippolito." @@ -4393,13 +4359,13 @@ msgstr "The :mod:`plistlib` module: A Property-List Parser" #: ../../whatsnew/2.6.rst:2805 msgid "" -"The ``.plist`` format is commonly used on Mac OS X to store basic data types" -" (numbers, strings, lists, and dictionaries) by serializing them into an " -"XML-based format. It resembles the XML-RPC serialization of data types." +"The ``.plist`` format is commonly used on Mac OS X to store basic data types " +"(numbers, strings, lists, and dictionaries) by serializing them into an XML-" +"based format. It resembles the XML-RPC serialization of data types." msgstr "" -"The ``.plist`` format is commonly used on Mac OS X to store basic data types" -" (numbers, strings, lists, and dictionaries) by serializing them into an " -"XML-based format. It resembles the XML-RPC serialization of data types." +"The ``.plist`` format is commonly used on Mac OS X to store basic data types " +"(numbers, strings, lists, and dictionaries) by serializing them into an XML-" +"based format. It resembles the XML-RPC serialization of data types." #: ../../whatsnew/2.6.rst:2810 msgid "" @@ -4447,60 +4413,60 @@ msgstr "" #: ../../whatsnew/2.6.rst:2858 msgid "" -"All :mod:`ctypes` data types now support :meth:`from_buffer` and " -":meth:`from_buffer_copy` methods that create a ctypes instance based on a " -"provided buffer object. :meth:`from_buffer_copy` copies the contents of the" -" object, while :meth:`from_buffer` will share the same memory area." +"All :mod:`ctypes` data types now support :meth:`from_buffer` and :meth:" +"`from_buffer_copy` methods that create a ctypes instance based on a provided " +"buffer object. :meth:`from_buffer_copy` copies the contents of the object, " +"while :meth:`from_buffer` will share the same memory area." msgstr "" -"All :mod:`ctypes` data types now support :meth:`from_buffer` and " -":meth:`from_buffer_copy` methods that create a ctypes instance based on a " -"provided buffer object. :meth:`from_buffer_copy` copies the contents of the" -" object, while :meth:`from_buffer` will share the same memory area." +"All :mod:`ctypes` data types now support :meth:`from_buffer` and :meth:" +"`from_buffer_copy` methods that create a ctypes instance based on a provided " +"buffer object. :meth:`from_buffer_copy` copies the contents of the object, " +"while :meth:`from_buffer` will share the same memory area." #: ../../whatsnew/2.6.rst:2865 msgid "" -"A new calling convention tells :mod:`ctypes` to clear the ``errno`` or Win32" -" LastError variables at the outset of each wrapped call. (Implemented by " +"A new calling convention tells :mod:`ctypes` to clear the ``errno`` or Win32 " +"LastError variables at the outset of each wrapped call. (Implemented by " "Thomas Heller; :issue:`1798`.)" msgstr "" -"A new calling convention tells :mod:`ctypes` to clear the ``errno`` or Win32" -" LastError variables at the outset of each wrapped call. (Implemented by " +"A new calling convention tells :mod:`ctypes` to clear the ``errno`` or Win32 " +"LastError variables at the outset of each wrapped call. (Implemented by " "Thomas Heller; :issue:`1798`.)" #: ../../whatsnew/2.6.rst:2869 msgid "" "You can now retrieve the Unix ``errno`` variable after a function call. " "When creating a wrapped function, you can supply ``use_errno=True`` as a " -"keyword parameter to the :func:`DLL` function and then call the module-level" -" methods :meth:`set_errno` and :meth:`get_errno` to set and retrieve the " +"keyword parameter to the :func:`DLL` function and then call the module-level " +"methods :meth:`set_errno` and :meth:`get_errno` to set and retrieve the " "error value." msgstr "" "You can now retrieve the Unix ``errno`` variable after a function call. " "When creating a wrapped function, you can supply ``use_errno=True`` as a " -"keyword parameter to the :func:`DLL` function and then call the module-level" -" methods :meth:`set_errno` and :meth:`get_errno` to set and retrieve the " +"keyword parameter to the :func:`DLL` function and then call the module-level " +"methods :meth:`set_errno` and :meth:`get_errno` to set and retrieve the " "error value." #: ../../whatsnew/2.6.rst:2875 msgid "" -"The Win32 LastError variable is similarly supported by the :func:`DLL`, " -":func:`OleDLL`, and :func:`WinDLL` functions. You supply " +"The Win32 LastError variable is similarly supported by the :func:`DLL`, :" +"func:`OleDLL`, and :func:`WinDLL` functions. You supply " "``use_last_error=True`` as a keyword parameter and then call the module-" "level methods :meth:`set_last_error` and :meth:`get_last_error`." msgstr "" -"The Win32 LastError variable is similarly supported by the :func:`DLL`, " -":func:`OleDLL`, and :func:`WinDLL` functions. You supply " +"The Win32 LastError variable is similarly supported by the :func:`DLL`, :" +"func:`OleDLL`, and :func:`WinDLL` functions. You supply " "``use_last_error=True`` as a keyword parameter and then call the module-" "level methods :meth:`set_last_error` and :meth:`get_last_error`." #: ../../whatsnew/2.6.rst:2881 msgid "" -"The :func:`byref` function, used to retrieve a pointer to a ctypes instance," -" now has an optional *offset* parameter that is a byte count that will be " +"The :func:`byref` function, used to retrieve a pointer to a ctypes instance, " +"now has an optional *offset* parameter that is a byte count that will be " "added to the returned pointer." msgstr "" -"The :func:`byref` function, used to retrieve a pointer to a ctypes instance," -" now has an optional *offset* parameter that is a byte count that will be " +"The :func:`byref` function, used to retrieve a pointer to a ctypes instance, " +"now has an optional *offset* parameter that is a byte count that will be " "added to the returned pointer." #: ../../whatsnew/2.6.rst:2888 @@ -4511,17 +4477,17 @@ msgstr "Improved SSL Support" msgid "" "Bill Janssen made extensive improvements to Python 2.6's support for the " "Secure Sockets Layer by adding a new module, :mod:`ssl`, that's built atop " -"the `OpenSSL `__ library. This new module provides" -" more control over the protocol negotiated, the X.509 certificates used, and" -" has better support for writing SSL servers (as opposed to clients) in " +"the `OpenSSL `__ library. This new module provides " +"more control over the protocol negotiated, the X.509 certificates used, and " +"has better support for writing SSL servers (as opposed to clients) in " "Python. The existing SSL support in the :mod:`socket` module hasn't been " "removed and continues to work, though it will be removed in Python 3.0." msgstr "" "Bill Janssen made extensive improvements to Python 2.6's support for the " "Secure Sockets Layer by adding a new module, :mod:`ssl`, that's built atop " -"the `OpenSSL `__ library. This new module provides" -" more control over the protocol negotiated, the X.509 certificates used, and" -" has better support for writing SSL servers (as opposed to clients) in " +"the `OpenSSL `__ library. This new module provides " +"more control over the protocol negotiated, the X.509 certificates used, and " +"has better support for writing SSL servers (as opposed to clients) in " "Python. The existing SSL support in the :mod:`socket` module hasn't been " "removed and continues to work, though it will be removed in Python 3.0." @@ -4529,13 +4495,13 @@ msgstr "" msgid "" "To use the new module, you must first create a TCP connection in the usual " "way and then pass it to the :func:`ssl.wrap_socket` function. It's possible " -"to specify whether a certificate is required, and to obtain certificate info" -" by calling the :meth:`getpeercert` method." +"to specify whether a certificate is required, and to obtain certificate info " +"by calling the :meth:`getpeercert` method." msgstr "" "To use the new module, you must first create a TCP connection in the usual " "way and then pass it to the :func:`ssl.wrap_socket` function. It's possible " -"to specify whether a certificate is required, and to obtain certificate info" -" by calling the :meth:`getpeercert` method." +"to specify whether a certificate is required, and to obtain certificate info " +"by calling the :meth:`getpeercert` method." #: ../../whatsnew/2.6.rst:2906 msgid "The documentation for the :mod:`ssl` module." @@ -4547,11 +4513,11 @@ msgstr "Deprecations and Removals" #: ../../whatsnew/2.6.rst:2913 ../../whatsnew/2.6.rst:3241 msgid "" -"String exceptions have been removed. Attempting to use them raises a " -":exc:`TypeError`." +"String exceptions have been removed. Attempting to use them raises a :exc:" +"`TypeError`." msgstr "" -"String exceptions have been removed. Attempting to use them raises a " -":exc:`TypeError`." +"String exceptions have been removed. Attempting to use them raises a :exc:" +"`TypeError`." #: ../../whatsnew/2.6.rst:2916 msgid "" @@ -4575,19 +4541,19 @@ msgstr "" #: ../../whatsnew/2.6.rst:2926 msgid "" -"The list of deprecated modules is: :mod:`audiodev`, :mod:`bgenlocations`, " -":mod:`buildtools`, :mod:`bundlebuilder`, :mod:`Canvas`, :mod:`compiler`, " -":mod:`dircache`, :mod:`dl`, :mod:`fpformat`, :mod:`gensuitemodule`, " -":mod:`ihooks`, :mod:`imageop`, :mod:`imgfile`, :mod:`linuxaudiodev`, " -":mod:`mhlib`, :mod:`mimetools`, :mod:`multifile`, :mod:`new`, :mod:`pure`, " -":mod:`statvfs`, :mod:`sunaudiodev`, :mod:`test.testall`, and :mod:`toaiff`." +"The list of deprecated modules is: :mod:`audiodev`, :mod:`bgenlocations`, :" +"mod:`buildtools`, :mod:`bundlebuilder`, :mod:`Canvas`, :mod:`compiler`, :mod:" +"`dircache`, :mod:`dl`, :mod:`fpformat`, :mod:`gensuitemodule`, :mod:" +"`ihooks`, :mod:`imageop`, :mod:`imgfile`, :mod:`linuxaudiodev`, :mod:" +"`mhlib`, :mod:`mimetools`, :mod:`multifile`, :mod:`new`, :mod:`pure`, :mod:" +"`statvfs`, :mod:`sunaudiodev`, :mod:`test.testall`, and :mod:`toaiff`." msgstr "" -"The list of deprecated modules is: :mod:`audiodev`, :mod:`bgenlocations`, " -":mod:`buildtools`, :mod:`bundlebuilder`, :mod:`Canvas`, :mod:`compiler`, " -":mod:`dircache`, :mod:`dl`, :mod:`fpformat`, :mod:`gensuitemodule`, " -":mod:`ihooks`, :mod:`imageop`, :mod:`imgfile`, :mod:`linuxaudiodev`, " -":mod:`mhlib`, :mod:`mimetools`, :mod:`multifile`, :mod:`new`, :mod:`pure`, " -":mod:`statvfs`, :mod:`sunaudiodev`, :mod:`test.testall`, and :mod:`toaiff`." +"The list of deprecated modules is: :mod:`audiodev`, :mod:`bgenlocations`, :" +"mod:`buildtools`, :mod:`bundlebuilder`, :mod:`Canvas`, :mod:`compiler`, :mod:" +"`dircache`, :mod:`dl`, :mod:`fpformat`, :mod:`gensuitemodule`, :mod:" +"`ihooks`, :mod:`imageop`, :mod:`imgfile`, :mod:`linuxaudiodev`, :mod:" +"`mhlib`, :mod:`mimetools`, :mod:`multifile`, :mod:`new`, :mod:`pure`, :mod:" +"`statvfs`, :mod:`sunaudiodev`, :mod:`test.testall`, and :mod:`toaiff`." #: ../../whatsnew/2.6.rst:2951 msgid "The :mod:`gopherlib` module has been removed." @@ -4631,11 +4597,11 @@ msgstr "The :mod:`rgbimg` module has been removed." #: ../../whatsnew/2.6.rst:2968 msgid "" -"The :mod:`sets` module has been deprecated; it's better to use the built-in " -":class:`set` and :class:`frozenset` types." +"The :mod:`sets` module has been deprecated; it's better to use the built-in :" +"class:`set` and :class:`frozenset` types." msgstr "" -"The :mod:`sets` module has been deprecated; it's better to use the built-in " -":class:`set` and :class:`frozenset` types." +"The :mod:`sets` module has been deprecated; it's better to use the built-in :" +"class:`set` and :class:`frozenset` types." #: ../../whatsnew/2.6.rst:2971 msgid "" @@ -4656,48 +4622,46 @@ msgstr "Changes to Python's build process and to the C API include:" #: ../../whatsnew/2.6.rst:2983 msgid "" "Python now must be compiled with C89 compilers (after 19 years!). This " -"means that the Python source tree has dropped its own implementations of " -":c:func:`memmove` and :c:func:`strerror`, which are in the C89 standard " -"library." +"means that the Python source tree has dropped its own implementations of :c:" +"func:`memmove` and :c:func:`strerror`, which are in the C89 standard library." msgstr "" "Python now must be compiled with C89 compilers (after 19 years!). This " -"means that the Python source tree has dropped its own implementations of " -":c:func:`memmove` and :c:func:`strerror`, which are in the C89 standard " -"library." +"means that the Python source tree has dropped its own implementations of :c:" +"func:`memmove` and :c:func:`strerror`, which are in the C89 standard library." #: ../../whatsnew/2.6.rst:2988 msgid "" -"Python 2.6 can be built with Microsoft Visual Studio 2008 (version 9.0), and" -" this is the new default compiler. See the :file:`PCbuild` directory for " -"the build files. (Implemented by Christian Heimes.)" +"Python 2.6 can be built with Microsoft Visual Studio 2008 (version 9.0), and " +"this is the new default compiler. See the :file:`PCbuild` directory for the " +"build files. (Implemented by Christian Heimes.)" msgstr "" -"Python 2.6 can be built with Microsoft Visual Studio 2008 (version 9.0), and" -" this is the new default compiler. See the :file:`PCbuild` directory for " -"the build files. (Implemented by Christian Heimes.)" +"Python 2.6 can be built with Microsoft Visual Studio 2008 (version 9.0), and " +"this is the new default compiler. See the :file:`PCbuild` directory for the " +"build files. (Implemented by Christian Heimes.)" #: ../../whatsnew/2.6.rst:2993 msgid "" -"On Mac OS X, Python 2.6 can be compiled as a 4-way universal build. The " -":program:`configure` script can take a :option:`!--with-universal-" -"archs=[32-bit|64-bit|all]` switch, controlling whether the binaries are " -"built for 32-bit architectures (x86, PowerPC), 64-bit (x86-64 and PPC-64), " -"or both. (Contributed by Ronald Oussoren.)" +"On Mac OS X, Python 2.6 can be compiled as a 4-way universal build. The :" +"program:`configure` script can take a :option:`!--with-universal-archs=[32-" +"bit|64-bit|all]` switch, controlling whether the binaries are built for 32-" +"bit architectures (x86, PowerPC), 64-bit (x86-64 and PPC-64), or both. " +"(Contributed by Ronald Oussoren.)" msgstr "" -"On Mac OS X, Python 2.6 can be compiled as a 4-way universal build. The " -":program:`configure` script can take a :option:`!--with-universal-" -"archs=[32-bit|64-bit|all]` switch, controlling whether the binaries are " -"built for 32-bit architectures (x86, PowerPC), 64-bit (x86-64 and PPC-64), " -"or both. (Contributed by Ronald Oussoren.)" +"On Mac OS X, Python 2.6 can be compiled as a 4-way universal build. The :" +"program:`configure` script can take a :option:`!--with-universal-archs=[32-" +"bit|64-bit|all]` switch, controlling whether the binaries are built for 32-" +"bit architectures (x86, PowerPC), 64-bit (x86-64 and PPC-64), or both. " +"(Contributed by Ronald Oussoren.)" #: ../../whatsnew/2.6.rst:3000 msgid "" -"The BerkeleyDB module now has a C API object, available as ``bsddb.db.api``." -" This object can be used by other C extensions that wish to use the " -":mod:`bsddb` module for their own purposes. (Contributed by Duncan Grisby.)" +"The BerkeleyDB module now has a C API object, available as ``bsddb.db." +"api``. This object can be used by other C extensions that wish to use the :" +"mod:`bsddb` module for their own purposes. (Contributed by Duncan Grisby.)" msgstr "" -"The BerkeleyDB module now has a C API object, available as ``bsddb.db.api``." -" This object can be used by other C extensions that wish to use the " -":mod:`bsddb` module for their own purposes. (Contributed by Duncan Grisby.)" +"The BerkeleyDB module now has a C API object, available as ``bsddb.db." +"api``. This object can be used by other C extensions that wish to use the :" +"mod:`bsddb` module for their own purposes. (Contributed by Duncan Grisby.)" #: ../../whatsnew/2.6.rst:3005 msgid "" @@ -4713,75 +4677,75 @@ msgstr "" msgid "" "Python's use of the C stdio library is now thread-safe, or at least as " "thread-safe as the underlying library is. A long-standing potential bug " -"occurred if one thread closed a file object while another thread was reading" -" from or writing to the object. In 2.6 file objects have a reference count," -" manipulated by the :c:func:`PyFile_IncUseCount` and " -":c:func:`PyFile_DecUseCount` functions. File objects can't be closed unless" -" the reference count is zero. :c:func:`PyFile_IncUseCount` should be called" -" while the GIL is still held, before carrying out an I/O operation using the" -" ``FILE *`` pointer, and :c:func:`PyFile_DecUseCount` should be called " -"immediately after the GIL is re-acquired. (Contributed by Antoine Pitrou and" -" Gregory P. Smith.)" +"occurred if one thread closed a file object while another thread was reading " +"from or writing to the object. In 2.6 file objects have a reference count, " +"manipulated by the :c:func:`PyFile_IncUseCount` and :c:func:" +"`PyFile_DecUseCount` functions. File objects can't be closed unless the " +"reference count is zero. :c:func:`PyFile_IncUseCount` should be called " +"while the GIL is still held, before carrying out an I/O operation using the " +"``FILE *`` pointer, and :c:func:`PyFile_DecUseCount` should be called " +"immediately after the GIL is re-acquired. (Contributed by Antoine Pitrou and " +"Gregory P. Smith.)" msgstr "" "Python's use of the C stdio library is now thread-safe, or at least as " "thread-safe as the underlying library is. A long-standing potential bug " -"occurred if one thread closed a file object while another thread was reading" -" from or writing to the object. In 2.6 file objects have a reference count," -" manipulated by the :c:func:`PyFile_IncUseCount` and " -":c:func:`PyFile_DecUseCount` functions. File objects can't be closed unless" -" the reference count is zero. :c:func:`PyFile_IncUseCount` should be called" -" while the GIL is still held, before carrying out an I/O operation using the" -" ``FILE *`` pointer, and :c:func:`PyFile_DecUseCount` should be called " -"immediately after the GIL is re-acquired. (Contributed by Antoine Pitrou and" -" Gregory P. Smith.)" +"occurred if one thread closed a file object while another thread was reading " +"from or writing to the object. In 2.6 file objects have a reference count, " +"manipulated by the :c:func:`PyFile_IncUseCount` and :c:func:" +"`PyFile_DecUseCount` functions. File objects can't be closed unless the " +"reference count is zero. :c:func:`PyFile_IncUseCount` should be called " +"while the GIL is still held, before carrying out an I/O operation using the " +"``FILE *`` pointer, and :c:func:`PyFile_DecUseCount` should be called " +"immediately after the GIL is re-acquired. (Contributed by Antoine Pitrou and " +"Gregory P. Smith.)" #: ../../whatsnew/2.6.rst:3023 msgid "" "Importing modules simultaneously in two different threads no longer " -"deadlocks; it will now raise an :exc:`ImportError`. A new API function, " -":c:func:`PyImport_ImportModuleNoBlock`, will look for a module in " -"``sys.modules`` first, then try to import it after acquiring an import lock." -" If the import lock is held by another thread, an :exc:`ImportError` is " -"raised. (Contributed by Christian Heimes.)" +"deadlocks; it will now raise an :exc:`ImportError`. A new API function, :c:" +"func:`PyImport_ImportModuleNoBlock`, will look for a module in ``sys." +"modules`` first, then try to import it after acquiring an import lock. If " +"the import lock is held by another thread, an :exc:`ImportError` is raised. " +"(Contributed by Christian Heimes.)" msgstr "" "Importing modules simultaneously in two different threads no longer " -"deadlocks; it will now raise an :exc:`ImportError`. A new API function, " -":c:func:`PyImport_ImportModuleNoBlock`, will look for a module in " -"``sys.modules`` first, then try to import it after acquiring an import lock." -" If the import lock is held by another thread, an :exc:`ImportError` is " -"raised. (Contributed by Christian Heimes.)" +"deadlocks; it will now raise an :exc:`ImportError`. A new API function, :c:" +"func:`PyImport_ImportModuleNoBlock`, will look for a module in ``sys." +"modules`` first, then try to import it after acquiring an import lock. If " +"the import lock is held by another thread, an :exc:`ImportError` is raised. " +"(Contributed by Christian Heimes.)" #: ../../whatsnew/2.6.rst:3031 msgid "" "Several functions return information about the platform's floating-point " "support. :c:func:`PyFloat_GetMax` returns the maximum representable " "floating point value, and :c:func:`PyFloat_GetMin` returns the minimum " -"positive value. :c:func:`PyFloat_GetInfo` returns an object containing more" -" information from the :file:`float.h` file, such as ``\"mant_dig\"`` (number" -" of digits in the mantissa), ``\"epsilon\"`` (smallest difference between " -"1.0 and the next largest value representable), and several others. " -"(Contributed by Christian Heimes; :issue:`1534`.)" +"positive value. :c:func:`PyFloat_GetInfo` returns an object containing more " +"information from the :file:`float.h` file, such as ``\"mant_dig\"`` (number " +"of digits in the mantissa), ``\"epsilon\"`` (smallest difference between 1.0 " +"and the next largest value representable), and several others. (Contributed " +"by Christian Heimes; :issue:`1534`.)" msgstr "" "Several functions return information about the platform's floating-point " "support. :c:func:`PyFloat_GetMax` returns the maximum representable " "floating point value, and :c:func:`PyFloat_GetMin` returns the minimum " -"positive value. :c:func:`PyFloat_GetInfo` returns an object containing more" -" information from the :file:`float.h` file, such as ``\"mant_dig\"`` (number" -" of digits in the mantissa), ``\"epsilon\"`` (smallest difference between " -"1.0 and the next largest value representable), and several others. " -"(Contributed by Christian Heimes; :issue:`1534`.)" +"positive value. :c:func:`PyFloat_GetInfo` returns an object containing more " +"information from the :file:`float.h` file, such as ``\"mant_dig\"`` (number " +"of digits in the mantissa), ``\"epsilon\"`` (smallest difference between 1.0 " +"and the next largest value representable), and several others. (Contributed " +"by Christian Heimes; :issue:`1534`.)" #: ../../whatsnew/2.6.rst:3042 msgid "" "C functions and methods that use :c:func:`PyComplex_AsCComplex` will now " -"accept arguments that have a :meth:`__complex__` method. In particular, the" -" functions in the :mod:`cmath` module will now accept objects with this " +"accept arguments that have a :meth:`__complex__` method. In particular, the " +"functions in the :mod:`cmath` module will now accept objects with this " "method. This is a backport of a Python 3.0 change. (Contributed by Mark " "Dickinson; :issue:`1675423`.)" msgstr "" "C functions and methods that use :c:func:`PyComplex_AsCComplex` will now " -"accept arguments that have a :meth:`__complex__` method. In particular, the" -" functions in the :mod:`cmath` module will now accept objects with this " +"accept arguments that have a :meth:`__complex__` method. In particular, the " +"functions in the :mod:`cmath` module will now accept objects with this " "method. This is a backport of a Python 3.0 change. (Contributed by Mark " "Dickinson; :issue:`1675423`.)" @@ -4799,41 +4763,39 @@ msgstr "" msgid "" "Many C extensions define their own little macro for adding integers and " "strings to the module's dictionary in the ``init*`` function. Python 2.6 " -"finally defines standard macros for adding values to a module, " -":c:macro:`PyModule_AddStringMacro` and :c:macro:`PyModule_AddIntMacro()`. " +"finally defines standard macros for adding values to a module, :c:macro:" +"`PyModule_AddStringMacro` and :c:macro:`PyModule_AddIntMacro()`. " "(Contributed by Christian Heimes.)" msgstr "" "Many C extensions define their own little macro for adding integers and " "strings to the module's dictionary in the ``init*`` function. Python 2.6 " -"finally defines standard macros for adding values to a module, " -":c:macro:`PyModule_AddStringMacro` and :c:macro:`PyModule_AddIntMacro()`. " +"finally defines standard macros for adding values to a module, :c:macro:" +"`PyModule_AddStringMacro` and :c:macro:`PyModule_AddIntMacro()`. " "(Contributed by Christian Heimes.)" #: ../../whatsnew/2.6.rst:3061 msgid "" "Some macros were renamed in both 3.0 and 2.6 to make it clearer that they " -"are macros, not functions. :c:macro:`Py_Size()` became " -":c:macro:`Py_SIZE()`, :c:macro:`Py_Type()` became :c:macro:`Py_TYPE()`, and " -":c:macro:`Py_Refcnt()` became :c:macro:`Py_REFCNT()`. The mixed-case macros " -"are still available in Python 2.6 for backward compatibility. " -"(:issue:`1629`)" +"are macros, not functions. :c:macro:`Py_Size()` became :c:macro:" +"`Py_SIZE()`, :c:macro:`Py_Type()` became :c:macro:`Py_TYPE()`, and :c:macro:" +"`Py_Refcnt()` became :c:macro:`Py_REFCNT()`. The mixed-case macros are still " +"available in Python 2.6 for backward compatibility. (:issue:`1629`)" msgstr "" "Some macros were renamed in both 3.0 and 2.6 to make it clearer that they " -"are macros, not functions. :c:macro:`Py_Size()` became " -":c:macro:`Py_SIZE()`, :c:macro:`Py_Type()` became :c:macro:`Py_TYPE()`, and " -":c:macro:`Py_Refcnt()` became :c:macro:`Py_REFCNT()`. The mixed-case macros " -"are still available in Python 2.6 for backward compatibility. " -"(:issue:`1629`)" +"are macros, not functions. :c:macro:`Py_Size()` became :c:macro:" +"`Py_SIZE()`, :c:macro:`Py_Type()` became :c:macro:`Py_TYPE()`, and :c:macro:" +"`Py_Refcnt()` became :c:macro:`Py_REFCNT()`. The mixed-case macros are still " +"available in Python 2.6 for backward compatibility. (:issue:`1629`)" #: ../../whatsnew/2.6.rst:3070 msgid "" "Distutils now places C extensions it builds in a different directory when " -"running on a debug version of Python. (Contributed by Collin Winter; " -":issue:`1530959`.)" +"running on a debug version of Python. (Contributed by Collin Winter; :issue:" +"`1530959`.)" msgstr "" "Distutils now places C extensions it builds in a different directory when " -"running on a debug version of Python. (Contributed by Collin Winter; " -":issue:`1530959`.)" +"running on a debug version of Python. (Contributed by Collin Winter; :issue:" +"`1530959`.)" #: ../../whatsnew/2.6.rst:3074 msgid "" @@ -4854,14 +4816,14 @@ msgid "" "A new Makefile target, \"make patchcheck\", prepares the Python source tree " "for making a patch: it fixes trailing whitespace in all modified ``.py`` " "files, checks whether the documentation has been changed, and reports " -"whether the :file:`Misc/ACKS` and :file:`Misc/NEWS` files have been updated." -" (Contributed by Brett Cannon.)" +"whether the :file:`Misc/ACKS` and :file:`Misc/NEWS` files have been updated. " +"(Contributed by Brett Cannon.)" msgstr "" "A new Makefile target, \"make patchcheck\", prepares the Python source tree " "for making a patch: it fixes trailing whitespace in all modified ``.py`` " "files, checks whether the documentation has been changed, and reports " -"whether the :file:`Misc/ACKS` and :file:`Misc/NEWS` files have been updated." -" (Contributed by Brett Cannon.)" +"whether the :file:`Misc/ACKS` and :file:`Misc/NEWS` files have been updated. " +"(Contributed by Brett Cannon.)" #: ../../whatsnew/2.6.rst:3088 msgid "" @@ -4891,16 +4853,16 @@ msgstr "" #: ../../whatsnew/2.6.rst:3102 msgid "" -"The new default compiler on Windows is Visual Studio 2008 (version 9.0). The" -" build directories for Visual Studio 2003 (version 7.1) and 2005 (version " +"The new default compiler on Windows is Visual Studio 2008 (version 9.0). The " +"build directories for Visual Studio 2003 (version 7.1) and 2005 (version " "8.0) were moved into the PC/ directory. The new :file:`PCbuild` directory " "supports cross compilation for X64, debug builds and Profile Guided " "Optimization (PGO). PGO builds are roughly 10% faster than normal builds. " "(Contributed by Christian Heimes with help from Amaury Forgeot d'Arc and " "Martin von Löwis.)" msgstr "" -"The new default compiler on Windows is Visual Studio 2008 (version 9.0). The" -" build directories for Visual Studio 2003 (version 7.1) and 2005 (version " +"The new default compiler on Windows is Visual Studio 2008 (version 9.0). The " +"build directories for Visual Studio 2003 (version 7.1) and 2005 (version " "8.0) were moved into the PC/ directory. The new :file:`PCbuild` directory " "supports cross compilation for X64, debug builds and Profile Guided " "Optimization (PGO). PGO builds are roughly 10% faster than normal builds. " @@ -4909,65 +4871,61 @@ msgstr "" #: ../../whatsnew/2.6.rst:3110 msgid "" -"The :mod:`msvcrt` module now supports both the normal and wide char variants" -" of the console I/O API. The :func:`getwch` function reads a keypress and " -"returns a Unicode value, as does the :func:`getwche` function. The " -":func:`putwch` function takes a Unicode character and writes it to the " -"console. (Contributed by Christian Heimes.)" +"The :mod:`msvcrt` module now supports both the normal and wide char variants " +"of the console I/O API. The :func:`getwch` function reads a keypress and " +"returns a Unicode value, as does the :func:`getwche` function. The :func:" +"`putwch` function takes a Unicode character and writes it to the console. " +"(Contributed by Christian Heimes.)" msgstr "" -"The :mod:`msvcrt` module now supports both the normal and wide char variants" -" of the console I/O API. The :func:`getwch` function reads a keypress and " -"returns a Unicode value, as does the :func:`getwche` function. The " -":func:`putwch` function takes a Unicode character and writes it to the " -"console. (Contributed by Christian Heimes.)" +"The :mod:`msvcrt` module now supports both the normal and wide char variants " +"of the console I/O API. The :func:`getwch` function reads a keypress and " +"returns a Unicode value, as does the :func:`getwche` function. The :func:" +"`putwch` function takes a Unicode character and writes it to the console. " +"(Contributed by Christian Heimes.)" #: ../../whatsnew/2.6.rst:3117 msgid "" -":func:`os.path.expandvars` will now expand environment variables in the form" -" \"%var%\", and \"~user\" will be expanded into the user's home directory " +":func:`os.path.expandvars` will now expand environment variables in the form " +"\"%var%\", and \"~user\" will be expanded into the user's home directory " "path. (Contributed by Josiah Carlson; :issue:`957650`.)" msgstr "" -":func:`os.path.expandvars` will now expand environment variables in the form" -" \"%var%\", and \"~user\" will be expanded into the user's home directory " +":func:`os.path.expandvars` will now expand environment variables in the form " +"\"%var%\", and \"~user\" will be expanded into the user's home directory " "path. (Contributed by Josiah Carlson; :issue:`957650`.)" #: ../../whatsnew/2.6.rst:3121 msgid "" "The :mod:`socket` module's socket objects now have an :meth:`ioctl` method " -"that provides a limited interface to the :c:func:`WSAIoctl` system " -"interface." +"that provides a limited interface to the :c:func:`WSAIoctl` system interface." msgstr "" "The :mod:`socket` module's socket objects now have an :meth:`ioctl` method " -"that provides a limited interface to the :c:func:`WSAIoctl` system " -"interface." +"that provides a limited interface to the :c:func:`WSAIoctl` system interface." #: ../../whatsnew/2.6.rst:3125 msgid "" -"The :mod:`_winreg` module now has a function, " -":func:`ExpandEnvironmentStrings`, that expands environment variable " -"references such as ``%NAME%`` in an input string. The handle objects " -"provided by this module now support the context protocol, so they can be " -"used in :keyword:`with` statements. (Contributed by Christian Heimes.)" +"The :mod:`_winreg` module now has a function, :func:" +"`ExpandEnvironmentStrings`, that expands environment variable references " +"such as ``%NAME%`` in an input string. The handle objects provided by this " +"module now support the context protocol, so they can be used in :keyword:" +"`with` statements. (Contributed by Christian Heimes.)" msgstr "" -"The :mod:`_winreg` module now has a function, " -":func:`ExpandEnvironmentStrings`, that expands environment variable " -"references such as ``%NAME%`` in an input string. The handle objects " -"provided by this module now support the context protocol, so they can be " -"used in :keyword:`with` statements. (Contributed by Christian Heimes.)" +"The :mod:`_winreg` module now has a function, :func:" +"`ExpandEnvironmentStrings`, that expands environment variable references " +"such as ``%NAME%`` in an input string. The handle objects provided by this " +"module now support the context protocol, so they can be used in :keyword:" +"`with` statements. (Contributed by Christian Heimes.)" #: ../../whatsnew/2.6.rst:3132 msgid "" -":mod:`_winreg` also has better support for x64 systems, exposing the " -":func:`DisableReflectionKey`, :func:`EnableReflectionKey`, and " -":func:`QueryReflectionKey` functions, which enable and disable registry " -"reflection for 32-bit processes running on 64-bit systems. " -"(:issue:`1753245`)" +":mod:`_winreg` also has better support for x64 systems, exposing the :func:" +"`DisableReflectionKey`, :func:`EnableReflectionKey`, and :func:" +"`QueryReflectionKey` functions, which enable and disable registry reflection " +"for 32-bit processes running on 64-bit systems. (:issue:`1753245`)" msgstr "" -":mod:`_winreg` also has better support for x64 systems, exposing the " -":func:`DisableReflectionKey`, :func:`EnableReflectionKey`, and " -":func:`QueryReflectionKey` functions, which enable and disable registry " -"reflection for 32-bit processes running on 64-bit systems. " -"(:issue:`1753245`)" +":mod:`_winreg` also has better support for x64 systems, exposing the :func:" +"`DisableReflectionKey`, :func:`EnableReflectionKey`, and :func:" +"`QueryReflectionKey` functions, which enable and disable registry reflection " +"for 32-bit processes running on 64-bit systems. (:issue:`1753245`)" #: ../../whatsnew/2.6.rst:3138 msgid "" @@ -4986,48 +4944,48 @@ msgstr "Port-Specific Changes: Mac OS X" #: ../../whatsnew/2.6.rst:3148 msgid "" "When compiling a framework build of Python, you can now specify the " -"framework name to be used by providing the :option:`!--with-framework-name=`" -" option to the :program:`configure` script." +"framework name to be used by providing the :option:`!--with-framework-name=` " +"option to the :program:`configure` script." msgstr "" "When compiling a framework build of Python, you can now specify the " -"framework name to be used by providing the :option:`!--with-framework-name=`" -" option to the :program:`configure` script." +"framework name to be used by providing the :option:`!--with-framework-name=` " +"option to the :program:`configure` script." #: ../../whatsnew/2.6.rst:3153 msgid "" -"The :mod:`macfs` module has been removed. This in turn required the " -":func:`macostools.touched` function to be removed because it depended on the" -" :mod:`macfs` module. (:issue:`1490190`)" +"The :mod:`macfs` module has been removed. This in turn required the :func:" +"`macostools.touched` function to be removed because it depended on the :mod:" +"`macfs` module. (:issue:`1490190`)" msgstr "" -"The :mod:`macfs` module has been removed. This in turn required the " -":func:`macostools.touched` function to be removed because it depended on the" -" :mod:`macfs` module. (:issue:`1490190`)" +"The :mod:`macfs` module has been removed. This in turn required the :func:" +"`macostools.touched` function to be removed because it depended on the :mod:" +"`macfs` module. (:issue:`1490190`)" #: ../../whatsnew/2.6.rst:3157 msgid "" -"Many other Mac OS modules have been deprecated and will be removed in Python" -" 3.0: :mod:`_builtinSuites`, :mod:`aepack`, :mod:`aetools`, :mod:`aetypes`, " -":mod:`applesingle`, :mod:`appletrawmain`, :mod:`appletrunner`, " -":mod:`argvemulator`, :mod:`Audio_mac`, :mod:`autoGIL`, :mod:`Carbon`, " -":mod:`cfmfile`, :mod:`CodeWarrior`, :mod:`ColorPicker`, :mod:`EasyDialogs`, " -":mod:`Explorer`, :mod:`Finder`, :mod:`FrameWork`, :mod:`findertools`, " -":mod:`ic`, :mod:`icglue`, :mod:`icopen`, :mod:`macerrors`, :mod:`MacOS`, " -":mod:`macfs`, :mod:`macostools`, :mod:`macresource`, :mod:`MiniAEFrame`, " -":mod:`Nav`, :mod:`Netscape`, :mod:`OSATerminology`, :mod:`pimp`, " -":mod:`PixMapWrapper`, :mod:`StdSuites`, :mod:`SystemEvents`, " -":mod:`Terminal`, and :mod:`terminalcommand`." -msgstr "" -"Many other Mac OS modules have been deprecated and will be removed in Python" -" 3.0: :mod:`_builtinSuites`, :mod:`aepack`, :mod:`aetools`, :mod:`aetypes`, " -":mod:`applesingle`, :mod:`appletrawmain`, :mod:`appletrunner`, " -":mod:`argvemulator`, :mod:`Audio_mac`, :mod:`autoGIL`, :mod:`Carbon`, " -":mod:`cfmfile`, :mod:`CodeWarrior`, :mod:`ColorPicker`, :mod:`EasyDialogs`, " -":mod:`Explorer`, :mod:`Finder`, :mod:`FrameWork`, :mod:`findertools`, " -":mod:`ic`, :mod:`icglue`, :mod:`icopen`, :mod:`macerrors`, :mod:`MacOS`, " -":mod:`macfs`, :mod:`macostools`, :mod:`macresource`, :mod:`MiniAEFrame`, " -":mod:`Nav`, :mod:`Netscape`, :mod:`OSATerminology`, :mod:`pimp`, " -":mod:`PixMapWrapper`, :mod:`StdSuites`, :mod:`SystemEvents`, " -":mod:`Terminal`, and :mod:`terminalcommand`." +"Many other Mac OS modules have been deprecated and will be removed in Python " +"3.0: :mod:`_builtinSuites`, :mod:`aepack`, :mod:`aetools`, :mod:`aetypes`, :" +"mod:`applesingle`, :mod:`appletrawmain`, :mod:`appletrunner`, :mod:" +"`argvemulator`, :mod:`Audio_mac`, :mod:`autoGIL`, :mod:`Carbon`, :mod:" +"`cfmfile`, :mod:`CodeWarrior`, :mod:`ColorPicker`, :mod:`EasyDialogs`, :mod:" +"`Explorer`, :mod:`Finder`, :mod:`FrameWork`, :mod:`findertools`, :mod:`ic`, :" +"mod:`icglue`, :mod:`icopen`, :mod:`macerrors`, :mod:`MacOS`, :mod:`macfs`, :" +"mod:`macostools`, :mod:`macresource`, :mod:`MiniAEFrame`, :mod:`Nav`, :mod:" +"`Netscape`, :mod:`OSATerminology`, :mod:`pimp`, :mod:`PixMapWrapper`, :mod:" +"`StdSuites`, :mod:`SystemEvents`, :mod:`Terminal`, and :mod:" +"`terminalcommand`." +msgstr "" +"Many other Mac OS modules have been deprecated and will be removed in Python " +"3.0: :mod:`_builtinSuites`, :mod:`aepack`, :mod:`aetools`, :mod:`aetypes`, :" +"mod:`applesingle`, :mod:`appletrawmain`, :mod:`appletrunner`, :mod:" +"`argvemulator`, :mod:`Audio_mac`, :mod:`autoGIL`, :mod:`Carbon`, :mod:" +"`cfmfile`, :mod:`CodeWarrior`, :mod:`ColorPicker`, :mod:`EasyDialogs`, :mod:" +"`Explorer`, :mod:`Finder`, :mod:`FrameWork`, :mod:`findertools`, :mod:`ic`, :" +"mod:`icglue`, :mod:`icopen`, :mod:`macerrors`, :mod:`MacOS`, :mod:`macfs`, :" +"mod:`macostools`, :mod:`macresource`, :mod:`MiniAEFrame`, :mod:`Nav`, :mod:" +"`Netscape`, :mod:`OSATerminology`, :mod:`pimp`, :mod:`PixMapWrapper`, :mod:" +"`StdSuites`, :mod:`SystemEvents`, :mod:`Terminal`, and :mod:" +"`terminalcommand`." #: ../../whatsnew/2.6.rst:3200 msgid "Port-Specific Changes: IRIX" @@ -5035,21 +4993,21 @@ msgstr "Port-Specific Changes: IRIX" #: ../../whatsnew/2.6.rst:3202 msgid "" -"A number of old IRIX-specific modules were deprecated and will be removed in" -" Python 3.0: :mod:`al` and :mod:`AL`, :mod:`cd`, :mod:`cddb`, " -":mod:`cdplayer`, :mod:`CL` and :mod:`cl`, :mod:`DEVICE`, :mod:`ERRNO`, " -":mod:`FILE`, :mod:`FL` and :mod:`fl`, :mod:`flp`, :mod:`fm`, :mod:`GET`, " -":mod:`GLWS`, :mod:`GL` and :mod:`gl`, :mod:`IN`, :mod:`IOCTL`, :mod:`jpeg`, " -":mod:`panelparser`, :mod:`readcd`, :mod:`SV` and :mod:`sv`, :mod:`torgb`, " -":mod:`videoreader`, and :mod:`WAIT`." -msgstr "" -"A number of old IRIX-specific modules were deprecated and will be removed in" -" Python 3.0: :mod:`al` and :mod:`AL`, :mod:`cd`, :mod:`cddb`, " -":mod:`cdplayer`, :mod:`CL` and :mod:`cl`, :mod:`DEVICE`, :mod:`ERRNO`, " -":mod:`FILE`, :mod:`FL` and :mod:`fl`, :mod:`flp`, :mod:`fm`, :mod:`GET`, " -":mod:`GLWS`, :mod:`GL` and :mod:`gl`, :mod:`IN`, :mod:`IOCTL`, :mod:`jpeg`, " -":mod:`panelparser`, :mod:`readcd`, :mod:`SV` and :mod:`sv`, :mod:`torgb`, " -":mod:`videoreader`, and :mod:`WAIT`." +"A number of old IRIX-specific modules were deprecated and will be removed in " +"Python 3.0: :mod:`al` and :mod:`AL`, :mod:`cd`, :mod:`cddb`, :mod:" +"`cdplayer`, :mod:`CL` and :mod:`cl`, :mod:`DEVICE`, :mod:`ERRNO`, :mod:" +"`FILE`, :mod:`FL` and :mod:`fl`, :mod:`flp`, :mod:`fm`, :mod:`GET`, :mod:" +"`GLWS`, :mod:`GL` and :mod:`gl`, :mod:`IN`, :mod:`IOCTL`, :mod:`jpeg`, :mod:" +"`panelparser`, :mod:`readcd`, :mod:`SV` and :mod:`sv`, :mod:`torgb`, :mod:" +"`videoreader`, and :mod:`WAIT`." +msgstr "" +"A number of old IRIX-specific modules were deprecated and will be removed in " +"Python 3.0: :mod:`al` and :mod:`AL`, :mod:`cd`, :mod:`cddb`, :mod:" +"`cdplayer`, :mod:`CL` and :mod:`cl`, :mod:`DEVICE`, :mod:`ERRNO`, :mod:" +"`FILE`, :mod:`FL` and :mod:`fl`, :mod:`flp`, :mod:`fm`, :mod:`GET`, :mod:" +"`GLWS`, :mod:`GL` and :mod:`gl`, :mod:`IN`, :mod:`IOCTL`, :mod:`jpeg`, :mod:" +"`panelparser`, :mod:`readcd`, :mod:`SV` and :mod:`sv`, :mod:`torgb`, :mod:" +"`videoreader`, and :mod:`WAIT`." #: ../../whatsnew/2.6.rst:3232 msgid "Porting to Python 2.6" @@ -5084,41 +5042,41 @@ msgstr "" #: ../../whatsnew/2.6.rst:3249 msgid "" ":meth:`object.__init__` previously accepted arbitrary arguments and keyword " -"arguments, ignoring them. In Python 2.6, this is no longer allowed and will" -" result in a :exc:`TypeError`. This will affect :meth:`__init__` methods " +"arguments, ignoring them. In Python 2.6, this is no longer allowed and will " +"result in a :exc:`TypeError`. This will affect :meth:`__init__` methods " "that end up calling the corresponding method on :class:`object` (perhaps " "through using :func:`super`). See :issue:`1683368` for discussion." msgstr "" ":meth:`object.__init__` previously accepted arbitrary arguments and keyword " -"arguments, ignoring them. In Python 2.6, this is no longer allowed and will" -" result in a :exc:`TypeError`. This will affect :meth:`__init__` methods " +"arguments, ignoring them. In Python 2.6, this is no longer allowed and will " +"result in a :exc:`TypeError`. This will affect :meth:`__init__` methods " "that end up calling the corresponding method on :class:`object` (perhaps " "through using :func:`super`). See :issue:`1683368` for discussion." #: ../../whatsnew/2.6.rst:3256 msgid "" -"The :class:`Decimal` constructor now accepts leading and trailing whitespace" -" when passed a string. Previously it would raise an :exc:`InvalidOperation`" -" exception. On the other hand, the :meth:`create_decimal` method of " -":class:`Context` objects now explicitly disallows extra whitespace, raising " -"a :exc:`ConversionSyntax` exception." +"The :class:`Decimal` constructor now accepts leading and trailing whitespace " +"when passed a string. Previously it would raise an :exc:`InvalidOperation` " +"exception. On the other hand, the :meth:`create_decimal` method of :class:" +"`Context` objects now explicitly disallows extra whitespace, raising a :exc:" +"`ConversionSyntax` exception." msgstr "" -"The :class:`Decimal` constructor now accepts leading and trailing whitespace" -" when passed a string. Previously it would raise an :exc:`InvalidOperation`" -" exception. On the other hand, the :meth:`create_decimal` method of " -":class:`Context` objects now explicitly disallows extra whitespace, raising " -"a :exc:`ConversionSyntax` exception." +"The :class:`Decimal` constructor now accepts leading and trailing whitespace " +"when passed a string. Previously it would raise an :exc:`InvalidOperation` " +"exception. On the other hand, the :meth:`create_decimal` method of :class:" +"`Context` objects now explicitly disallows extra whitespace, raising a :exc:" +"`ConversionSyntax` exception." #: ../../whatsnew/2.6.rst:3263 msgid "" -"Due to an implementation accident, if you passed a file path to the built-in" -" :func:`__import__` function, it would actually import the specified file." -" This was never intended to work, however, and the implementation now " +"Due to an implementation accident, if you passed a file path to the built-" +"in :func:`__import__` function, it would actually import the specified " +"file. This was never intended to work, however, and the implementation now " "explicitly checks for this case and raises an :exc:`ImportError`." msgstr "" -"Due to an implementation accident, if you passed a file path to the built-in" -" :func:`__import__` function, it would actually import the specified file." -" This was never intended to work, however, and the implementation now " +"Due to an implementation accident, if you passed a file path to the built-" +"in :func:`__import__` function, it would actually import the specified " +"file. This was never intended to work, however, and the implementation now " "explicitly checks for this case and raises an :exc:`ImportError`." #: ../../whatsnew/2.6.rst:3269 @@ -5141,41 +5099,39 @@ msgstr "" #: ../../whatsnew/2.6.rst:3277 msgid "" -"The :mod:`socket` module exception :exc:`socket.error` now inherits from " -":exc:`IOError`. Previously it wasn't a subclass of :exc:`StandardError` but" -" now it is, through :exc:`IOError`. (Implemented by Gregory P. Smith; " -":issue:`1706815`.)" +"The :mod:`socket` module exception :exc:`socket.error` now inherits from :" +"exc:`IOError`. Previously it wasn't a subclass of :exc:`StandardError` but " +"now it is, through :exc:`IOError`. (Implemented by Gregory P. Smith; :issue:" +"`1706815`.)" msgstr "" -"The :mod:`socket` module exception :exc:`socket.error` now inherits from " -":exc:`IOError`. Previously it wasn't a subclass of :exc:`StandardError` but" -" now it is, through :exc:`IOError`. (Implemented by Gregory P. Smith; " -":issue:`1706815`.)" +"The :mod:`socket` module exception :exc:`socket.error` now inherits from :" +"exc:`IOError`. Previously it wasn't a subclass of :exc:`StandardError` but " +"now it is, through :exc:`IOError`. (Implemented by Gregory P. Smith; :issue:" +"`1706815`.)" #: ../../whatsnew/2.6.rst:3282 msgid "" -"The :mod:`xmlrpclib` module no longer automatically converts " -":class:`datetime.date` and :class:`datetime.time` to the " -":class:`xmlrpclib.DateTime` type; the conversion semantics were not " -"necessarily correct for all applications. Code using :mod:`xmlrpclib` " -"should convert :class:`date` and :class:`~datetime.time` instances. " -"(:issue:`1330538`)" +"The :mod:`xmlrpclib` module no longer automatically converts :class:" +"`datetime.date` and :class:`datetime.time` to the :class:`xmlrpclib." +"DateTime` type; the conversion semantics were not necessarily correct for " +"all applications. Code using :mod:`xmlrpclib` should convert :class:`date` " +"and :class:`~datetime.time` instances. (:issue:`1330538`)" msgstr "" -"The :mod:`xmlrpclib` module no longer automatically converts " -":class:`datetime.date` and :class:`datetime.time` to the " -":class:`xmlrpclib.DateTime` type; the conversion semantics were not " -"necessarily correct for all applications. Code using :mod:`xmlrpclib` " -"should convert :class:`date` and :class:`~datetime.time` instances. " -"(:issue:`1330538`)" +"The :mod:`xmlrpclib` module no longer automatically converts :class:" +"`datetime.date` and :class:`datetime.time` to the :class:`xmlrpclib." +"DateTime` type; the conversion semantics were not necessarily correct for " +"all applications. Code using :mod:`xmlrpclib` should convert :class:`date` " +"and :class:`~datetime.time` instances. (:issue:`1330538`)" #: ../../whatsnew/2.6.rst:3289 msgid "" "(3.0-warning mode) The :class:`Exception` class now warns when accessed " -"using slicing or index access; having :class:`Exception` behave like a tuple" -" is being phased out." +"using slicing or index access; having :class:`Exception` behave like a tuple " +"is being phased out." msgstr "" "(3.0-warning mode) The :class:`Exception` class now warns when accessed " -"using slicing or index access; having :class:`Exception` behave like a tuple" -" is being phased out." +"using slicing or index access; having :class:`Exception` behave like a tuple " +"is being phased out." #: ../../whatsnew/2.6.rst:3293 msgid "" @@ -5204,11 +5160,11 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.6.rst:3310 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Georg Brandl, Steve Brown, Nick Coghlan, Ralph Corderoy, Jim Jewett, Kent " +"suggestions, corrections and assistance with various drafts of this article: " +"Georg Brandl, Steve Brown, Nick Coghlan, Ralph Corderoy, Jim Jewett, Kent " "Johnson, Chris Lambacher, Martin Michlmayr, Antoine Pitrou, Brian Warner." msgstr "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Georg Brandl, Steve Brown, Nick Coghlan, Ralph Corderoy, Jim Jewett, Kent " +"suggestions, corrections and assistance with various drafts of this article: " +"Georg Brandl, Steve Brown, Nick Coghlan, Ralph Corderoy, Jim Jewett, Kent " "Johnson, Chris Lambacher, Martin Michlmayr, Antoine Pitrou, Brian Warner." diff --git a/whatsnew/2.7.po b/whatsnew/2.7.po index 52c3441ab..1070abae3 100644 --- a/whatsnew/2.7.po +++ b/whatsnew/2.7.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Marco Rougeth , 2019 # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Victor Matheus Castro , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:34+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Victor Matheus Castro , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -48,51 +50,47 @@ msgstr "" msgid "" "Numeric handling has been improved in many ways, for both floating-point " "numbers and for the :class:`~decimal.Decimal` class. There are some useful " -"additions to the standard library, such as a greatly enhanced " -":mod:`unittest` module, the :mod:`argparse` module for parsing command-line " -"options, convenient :class:`~collections.OrderedDict` and " -":class:`~collections.Counter` classes in the :mod:`collections` module, and " -"many other improvements." +"additions to the standard library, such as a greatly enhanced :mod:" +"`unittest` module, the :mod:`argparse` module for parsing command-line " +"options, convenient :class:`~collections.OrderedDict` and :class:" +"`~collections.Counter` classes in the :mod:`collections` module, and many " +"other improvements." msgstr "" "Numeric handling has been improved in many ways, for both floating-point " "numbers and for the :class:`~decimal.Decimal` class. There are some useful " -"additions to the standard library, such as a greatly enhanced " -":mod:`unittest` module, the :mod:`argparse` module for parsing command-line " -"options, convenient :class:`~collections.OrderedDict` and " -":class:`~collections.Counter` classes in the :mod:`collections` module, and " -"many other improvements." +"additions to the standard library, such as a greatly enhanced :mod:" +"`unittest` module, the :mod:`argparse` module for parsing command-line " +"options, convenient :class:`~collections.OrderedDict` and :class:" +"`~collections.Counter` classes in the :mod:`collections` module, and many " +"other improvements." #: ../../whatsnew/2.7.rst:63 msgid "" "Python 2.7 is planned to be the last of the 2.x releases, so we worked on " "making it a good release for the long term. To help with porting to Python " -"3, several new features from the Python 3.x series have been included in " -"2.7." +"3, several new features from the Python 3.x series have been included in 2.7." msgstr "" "Python 2.7 is planned to be the last of the 2.x releases, so we worked on " "making it a good release for the long term. To help with porting to Python " -"3, several new features from the Python 3.x series have been included in " -"2.7." +"3, several new features from the Python 3.x series have been included in 2.7." #: ../../whatsnew/2.7.rst:68 msgid "" "This article doesn't attempt to provide a complete specification of the new " -"features, but instead provides a convenient overview. For full details, you" -" should refer to the documentation for Python 2.7 at " -"https://docs.python.org. If you want to understand the rationale for the " -"design and implementation, refer to the PEP for a particular new feature or " -"the issue on https://bugs.python.org in which a change was discussed. " -"Whenever possible, \"What's New in Python\" links to the bug/patch item for " -"each change." +"features, but instead provides a convenient overview. For full details, you " +"should refer to the documentation for Python 2.7 at https://docs.python.org. " +"If you want to understand the rationale for the design and implementation, " +"refer to the PEP for a particular new feature or the issue on https://bugs." +"python.org in which a change was discussed. Whenever possible, \"What's New " +"in Python\" links to the bug/patch item for each change." msgstr "" "This article doesn't attempt to provide a complete specification of the new " -"features, but instead provides a convenient overview. For full details, you" -" should refer to the documentation for Python 2.7 at " -"https://docs.python.org. If you want to understand the rationale for the " -"design and implementation, refer to the PEP for a particular new feature or " -"the issue on https://bugs.python.org in which a change was discussed. " -"Whenever possible, \"What's New in Python\" links to the bug/patch item for " -"each change." +"features, but instead provides a convenient overview. For full details, you " +"should refer to the documentation for Python 2.7 at https://docs.python.org. " +"If you want to understand the rationale for the design and implementation, " +"refer to the PEP for a particular new feature or the issue on https://bugs." +"python.org in which a change was discussed. Whenever possible, \"What's New " +"in Python\" links to the bug/patch item for each change." #: ../../whatsnew/2.7.rst:80 msgid "The Future for Python 2.x" @@ -132,14 +130,14 @@ msgstr "" #: ../../whatsnew/2.7.rst:96 msgid "" -"This means that Python 2.7 will remain in place for a long time, providing a" -" stable and supported base platform for production systems that have not yet" -" been ported to Python 3. The full expected lifecycle of the Python 2.7 " +"This means that Python 2.7 will remain in place for a long time, providing a " +"stable and supported base platform for production systems that have not yet " +"been ported to Python 3. The full expected lifecycle of the Python 2.7 " "series is detailed in :pep:`373`." msgstr "" -"This means that Python 2.7 will remain in place for a long time, providing a" -" stable and supported base platform for production systems that have not yet" -" been ported to Python 3. The full expected lifecycle of the Python 2.7 " +"This means that Python 2.7 will remain in place for a long time, providing a " +"stable and supported base platform for production systems that have not yet " +"been ported to Python 3. The full expected lifecycle of the Python 2.7 " "series is detailed in :pep:`373`." #: ../../whatsnew/2.7.rst:101 @@ -148,17 +146,17 @@ msgstr "Some key consequences of the long-term significance of 2.7 are:" #: ../../whatsnew/2.7.rst:103 msgid "" -"As noted above, the 2.7 release has a much longer period of maintenance when" -" compared to earlier 2.x versions. Python 2.7 is currently expected to " -"remain supported by the core development team (receiving security updates " -"and other bug fixes) until at least 2020 (10 years after its initial " -"release, compared to the more typical support period of 18--24 months)." +"As noted above, the 2.7 release has a much longer period of maintenance when " +"compared to earlier 2.x versions. Python 2.7 is currently expected to remain " +"supported by the core development team (receiving security updates and other " +"bug fixes) until at least 2020 (10 years after its initial release, compared " +"to the more typical support period of 18--24 months)." msgstr "" -"As noted above, the 2.7 release has a much longer period of maintenance when" -" compared to earlier 2.x versions. Python 2.7 is currently expected to " -"remain supported by the core development team (receiving security updates " -"and other bug fixes) until at least 2020 (10 years after its initial " -"release, compared to the more typical support period of 18--24 months)." +"As noted above, the 2.7 release has a much longer period of maintenance when " +"compared to earlier 2.x versions. Python 2.7 is currently expected to remain " +"supported by the core development team (receiving security updates and other " +"bug fixes) until at least 2020 (10 years after its initial release, compared " +"to the more typical support period of 18--24 months)." #: ../../whatsnew/2.7.rst:109 msgid "" @@ -168,9 +166,9 @@ msgid "" "packages for various tasks, the available packages include backports of new " "modules and features from the Python 3 standard library that are compatible " "with Python 2, as well as various tools and libraries that can make it " -"easier to migrate to Python 3. The `Python Packaging User Guide " -"`__ provides guidance on downloading and " -"installing software from the Python Package Index." +"easier to migrate to Python 3. The `Python Packaging User Guide `__ provides guidance on downloading and installing " +"software from the Python Package Index." msgstr "" "As the Python 2.7 standard library ages, making effective use of the Python " "Package Index (either directly or via a redistributor) becomes more " @@ -178,15 +176,15 @@ msgstr "" "packages for various tasks, the available packages include backports of new " "modules and features from the Python 3 standard library that are compatible " "with Python 2, as well as various tools and libraries that can make it " -"easier to migrate to Python 3. The `Python Packaging User Guide " -"`__ provides guidance on downloading and " -"installing software from the Python Package Index." +"easier to migrate to Python 3. The `Python Packaging User Guide `__ provides guidance on downloading and installing " +"software from the Python Package Index." #: ../../whatsnew/2.7.rst:119 msgid "" -"While the preferred approach to enhancing Python 2 is now the publication of" -" new packages on the Python Package Index, this approach doesn't necessarily" -" work in all cases, especially those related to network security. In " +"While the preferred approach to enhancing Python 2 is now the publication of " +"new packages on the Python Package Index, this approach doesn't necessarily " +"work in all cases, especially those related to network security. In " "exceptional cases that cannot be handled adequately by publishing new or " "updated packages on PyPI, the Python Enhancement Proposal process may be " "used to make the case for adding new features directly to the Python 2 " @@ -194,9 +192,9 @@ msgid "" "they were added, will be noted in the :ref:`py27-maintenance-enhancements` " "section below." msgstr "" -"While the preferred approach to enhancing Python 2 is now the publication of" -" new packages on the Python Package Index, this approach doesn't necessarily" -" work in all cases, especially those related to network security. In " +"While the preferred approach to enhancing Python 2 is now the publication of " +"new packages on the Python Package Index, this approach doesn't necessarily " +"work in all cases, especially those related to network security. In " "exceptional cases that cannot be handled adequately by publishing new or " "updated packages on PyPI, the Python Enhancement Proposal process may be " "used to make the case for adding new features directly to the Python 2 " @@ -227,15 +225,15 @@ msgid "" "For Python 2.7, a policy decision was made to silence warnings only of " "interest to developers by default. :exc:`DeprecationWarning` and its " "descendants are now ignored unless otherwise requested, preventing users " -"from seeing warnings triggered by an application. This change was also made" -" in the branch that became Python 3.2. (Discussed on stdlib-sig and carried " +"from seeing warnings triggered by an application. This change was also made " +"in the branch that became Python 3.2. (Discussed on stdlib-sig and carried " "out in :issue:`7319`.)" msgstr "" "For Python 2.7, a policy decision was made to silence warnings only of " "interest to developers by default. :exc:`DeprecationWarning` and its " "descendants are now ignored unless otherwise requested, preventing users " -"from seeing warnings triggered by an application. This change was also made" -" in the branch that became Python 3.2. (Discussed on stdlib-sig and carried " +"from seeing warnings triggered by an application. This change was also made " +"in the branch that became Python 3.2. (Discussed on stdlib-sig and carried " "out in :issue:`7319`.)" #: ../../whatsnew/2.7.rst:146 @@ -251,30 +249,30 @@ msgstr "" #: ../../whatsnew/2.7.rst:151 msgid "" "However, there are increasingly many users of Python-based applications who " -"are not directly involved in the development of those applications. " -":exc:`DeprecationWarning` messages are irrelevant to such users, making them" -" worry about an application that's actually working correctly and burdening " +"are not directly involved in the development of those applications. :exc:" +"`DeprecationWarning` messages are irrelevant to such users, making them " +"worry about an application that's actually working correctly and burdening " "application developers with responding to these concerns." msgstr "" "However, there are increasingly many users of Python-based applications who " -"are not directly involved in the development of those applications. " -":exc:`DeprecationWarning` messages are irrelevant to such users, making them" -" worry about an application that's actually working correctly and burdening " +"are not directly involved in the development of those applications. :exc:" +"`DeprecationWarning` messages are irrelevant to such users, making them " +"worry about an application that's actually working correctly and burdening " "application developers with responding to these concerns." #: ../../whatsnew/2.7.rst:158 msgid "" "You can re-enable display of :exc:`DeprecationWarning` messages by running " "Python with the :option:`-Wdefault <-W>` (short form: :option:`-Wd <-W>`) " -"switch, or by setting the :envvar:`PYTHONWARNINGS` environment variable to " -"``\"default\"`` (or ``\"d\"``) before running Python. Python code can also " -"re-enable them by calling ``warnings.simplefilter('default')``." +"switch, or by setting the :envvar:`PYTHONWARNINGS` environment variable to ``" +"\"default\"`` (or ``\"d\"``) before running Python. Python code can also re-" +"enable them by calling ``warnings.simplefilter('default')``." msgstr "" "You can re-enable display of :exc:`DeprecationWarning` messages by running " "Python with the :option:`-Wdefault <-W>` (short form: :option:`-Wd <-W>`) " -"switch, or by setting the :envvar:`PYTHONWARNINGS` environment variable to " -"``\"default\"`` (or ``\"d\"``) before running Python. Python code can also " -"re-enable them by calling ``warnings.simplefilter('default')``." +"switch, or by setting the :envvar:`PYTHONWARNINGS` environment variable to ``" +"\"default\"`` (or ``\"d\"``) before running Python. Python code can also re-" +"enable them by calling ``warnings.simplefilter('default')``." #: ../../whatsnew/2.7.rst:165 msgid "" @@ -315,8 +313,7 @@ msgid "Multiple context managers in a single :keyword:`with` statement." msgstr "Multiple context managers in a single :keyword:`with` statement." #: ../../whatsnew/2.7.rst:182 -msgid "" -"A new version of the :mod:`io` library, rewritten in C for performance." +msgid "A new version of the :mod:`io` library, rewritten in C for performance." msgstr "" "A new version of the :mod:`io` library, rewritten in C for performance." @@ -343,22 +340,22 @@ msgstr "" #: ../../whatsnew/2.7.rst:188 msgid "" "The :func:`repr` of a float ``x`` is shorter in many cases: it's now based " -"on the shortest decimal string that's guaranteed to round back to ``x``. As" -" in previous versions of Python, it's guaranteed that ``float(repr(x))`` " +"on the shortest decimal string that's guaranteed to round back to ``x``. As " +"in previous versions of Python, it's guaranteed that ``float(repr(x))`` " "recovers ``x``." msgstr "" "The :func:`repr` of a float ``x`` is shorter in many cases: it's now based " -"on the shortest decimal string that's guaranteed to round back to ``x``. As" -" in previous versions of Python, it's guaranteed that ``float(repr(x))`` " +"on the shortest decimal string that's guaranteed to round back to ``x``. As " +"in previous versions of Python, it's guaranteed that ``float(repr(x))`` " "recovers ``x``." #: ../../whatsnew/2.7.rst:192 msgid "" -"Float-to-string and string-to-float conversions are correctly rounded. The " -":func:`round` function is also now correctly rounded." +"Float-to-string and string-to-float conversions are correctly rounded. The :" +"func:`round` function is also now correctly rounded." msgstr "" -"Float-to-string and string-to-float conversions are correctly rounded. The " -":func:`round` function is also now correctly rounded." +"Float-to-string and string-to-float conversions are correctly rounded. The :" +"func:`round` function is also now correctly rounded." #: ../../whatsnew/2.7.rst:194 msgid "" @@ -376,11 +373,11 @@ msgstr "Other new Python3-mode warnings include:" #: ../../whatsnew/2.7.rst:199 msgid "" -":func:`operator.isCallable` and :func:`operator.sequenceIncludes`, which are" -" not supported in 3.x, now trigger warnings." +":func:`operator.isCallable` and :func:`operator.sequenceIncludes`, which are " +"not supported in 3.x, now trigger warnings." msgstr "" -":func:`operator.isCallable` and :func:`operator.sequenceIncludes`, which are" -" not supported in 3.x, now trigger warnings." +":func:`operator.isCallable` and :func:`operator.sequenceIncludes`, which are " +"not supported in 3.x, now trigger warnings." #: ../../whatsnew/2.7.rst:201 msgid "" @@ -398,37 +395,35 @@ msgstr "PEP 372: Adding an Ordered Dictionary to collections" #: ../../whatsnew/2.7.rst:216 msgid "" -"Regular Python dictionaries iterate over key/value pairs in arbitrary order." -" Over the years, a number of authors have written alternative " -"implementations that remember the order that the keys were originally " -"inserted. Based on the experiences from those implementations, 2.7 " -"introduces a new :class:`~collections.OrderedDict` class in the " -":mod:`collections` module." +"Regular Python dictionaries iterate over key/value pairs in arbitrary order. " +"Over the years, a number of authors have written alternative implementations " +"that remember the order that the keys were originally inserted. Based on " +"the experiences from those implementations, 2.7 introduces a new :class:" +"`~collections.OrderedDict` class in the :mod:`collections` module." msgstr "" -"Regular Python dictionaries iterate over key/value pairs in arbitrary order." -" Over the years, a number of authors have written alternative " -"implementations that remember the order that the keys were originally " -"inserted. Based on the experiences from those implementations, 2.7 " -"introduces a new :class:`~collections.OrderedDict` class in the " -":mod:`collections` module." +"Regular Python dictionaries iterate over key/value pairs in arbitrary order. " +"Over the years, a number of authors have written alternative implementations " +"that remember the order that the keys were originally inserted. Based on " +"the experiences from those implementations, 2.7 introduces a new :class:" +"`~collections.OrderedDict` class in the :mod:`collections` module." #: ../../whatsnew/2.7.rst:222 msgid "" "The :class:`~collections.OrderedDict` API provides the same interface as " -"regular dictionaries but iterates over keys and values in a guaranteed order" -" depending on when a key was first inserted::" +"regular dictionaries but iterates over keys and values in a guaranteed order " +"depending on when a key was first inserted::" msgstr "" "The :class:`~collections.OrderedDict` API provides the same interface as " -"regular dictionaries but iterates over keys and values in a guaranteed order" -" depending on when a key was first inserted::" +"regular dictionaries but iterates over keys and values in a guaranteed order " +"depending on when a key was first inserted::" #: ../../whatsnew/2.7.rst:233 msgid "" -"If a new entry overwrites an existing entry, the original insertion position" -" is left unchanged::" +"If a new entry overwrites an existing entry, the original insertion position " +"is left unchanged::" msgstr "" -"If a new entry overwrites an existing entry, the original insertion position" -" is left unchanged::" +"If a new entry overwrites an existing entry, the original insertion position " +"is left unchanged::" #: ../../whatsnew/2.7.rst:240 msgid "Deleting an entry and reinserting it will move it to the end::" @@ -466,13 +461,13 @@ msgstr "" msgid "" "How does the :class:`~collections.OrderedDict` work? It maintains a doubly-" "linked list of keys, appending new keys to the list as they're inserted. A " -"secondary dictionary maps keys to their corresponding list node, so deletion" -" doesn't have to traverse the entire linked list and therefore remains O(1)." +"secondary dictionary maps keys to their corresponding list node, so deletion " +"doesn't have to traverse the entire linked list and therefore remains O(1)." msgstr "" "How does the :class:`~collections.OrderedDict` work? It maintains a doubly-" "linked list of keys, appending new keys to the list as they're inserted. A " -"secondary dictionary maps keys to their corresponding list node, so deletion" -" doesn't have to traverse the entire linked list and therefore remains O(1)." +"secondary dictionary maps keys to their corresponding list node, so deletion " +"doesn't have to traverse the entire linked list and therefore remains O(1)." #: ../../whatsnew/2.7.rst:287 msgid "" @@ -494,25 +489,25 @@ msgstr "" #: ../../whatsnew/2.7.rst:294 msgid "" -"The :meth:`~collections.somenamedtuple._asdict()` method for " -":func:`collections.namedtuple` now returns an ordered dictionary with the " -"values appearing in the same order as the underlying tuple indices." +"The :meth:`~collections.somenamedtuple._asdict()` method for :func:" +"`collections.namedtuple` now returns an ordered dictionary with the values " +"appearing in the same order as the underlying tuple indices." msgstr "" -"The :meth:`~collections.somenamedtuple._asdict()` method for " -":func:`collections.namedtuple` now returns an ordered dictionary with the " -"values appearing in the same order as the underlying tuple indices." +"The :meth:`~collections.somenamedtuple._asdict()` method for :func:" +"`collections.namedtuple` now returns an ordered dictionary with the values " +"appearing in the same order as the underlying tuple indices." #: ../../whatsnew/2.7.rst:298 msgid "" "The :mod:`json` module's :class:`~json.JSONDecoder` class constructor was " -"extended with an *object_pairs_hook* parameter to allow :class:`OrderedDict`" -" instances to be built by the decoder. Support was also added for third-" -"party tools like `PyYAML `_." +"extended with an *object_pairs_hook* parameter to allow :class:`OrderedDict` " +"instances to be built by the decoder. Support was also added for third-party " +"tools like `PyYAML `_." msgstr "" "The :mod:`json` module's :class:`~json.JSONDecoder` class constructor was " -"extended with an *object_pairs_hook* parameter to allow :class:`OrderedDict`" -" instances to be built by the decoder. Support was also added for third-" -"party tools like `PyYAML `_." +"extended with an *object_pairs_hook* parameter to allow :class:`OrderedDict` " +"instances to be built by the decoder. Support was also added for third-party " +"tools like `PyYAML `_." #: ../../whatsnew/2.7.rst:307 msgid ":pep:`372` - Adding an ordered dictionary to collections" @@ -542,14 +537,14 @@ msgstr "" #: ../../whatsnew/2.7.rst:319 msgid "" -"The fully general solution for doing this is the :mod:`locale` module, which" -" can use different separators (\",\" in North America, \".\" in Europe) and " +"The fully general solution for doing this is the :mod:`locale` module, which " +"can use different separators (\",\" in North America, \".\" in Europe) and " "different grouping sizes, but :mod:`locale` is complicated to use and " "unsuitable for multi-threaded applications where different threads are " "producing output for different locales." msgstr "" -"The fully general solution for doing this is the :mod:`locale` module, which" -" can use different separators (\",\" in North America, \".\" in Europe) and " +"The fully general solution for doing this is the :mod:`locale` module, which " +"can use different separators (\",\" in North America, \".\" in Europe) and " "different grouping sizes, but :mod:`locale` is complicated to use and " "unsuitable for multi-threaded applications where different threads are " "producing output for different locales." @@ -594,33 +589,33 @@ msgstr "PEP 389: The argparse Module for Parsing Command Lines" #: ../../whatsnew/2.7.rst:351 msgid "" -"The :mod:`argparse` module for parsing command-line arguments was added as a" -" more powerful replacement for the :mod:`optparse` module." +"The :mod:`argparse` module for parsing command-line arguments was added as a " +"more powerful replacement for the :mod:`optparse` module." msgstr "" -"The :mod:`argparse` module for parsing command-line arguments was added as a" -" more powerful replacement for the :mod:`optparse` module." +"The :mod:`argparse` module for parsing command-line arguments was added as a " +"more powerful replacement for the :mod:`optparse` module." #: ../../whatsnew/2.7.rst:355 msgid "" "This means Python now supports three different modules for parsing command-" -"line arguments: :mod:`getopt`, :mod:`optparse`, and :mod:`argparse`. The " -":mod:`getopt` module closely resembles the C library's :c:func:`getopt` " +"line arguments: :mod:`getopt`, :mod:`optparse`, and :mod:`argparse`. The :" +"mod:`getopt` module closely resembles the C library's :c:func:`getopt` " "function, so it remains useful if you're writing a Python prototype that " "will eventually be rewritten in C. :mod:`optparse` becomes redundant, but " "there are no plans to remove it because there are many scripts still using " -"it, and there's no automated way to update these scripts. (Making the " -":mod:`argparse` API consistent with :mod:`optparse`'s interface was " -"discussed but rejected as too messy and difficult.)" +"it, and there's no automated way to update these scripts. (Making the :mod:" +"`argparse` API consistent with :mod:`optparse`'s interface was discussed but " +"rejected as too messy and difficult.)" msgstr "" "This means Python now supports three different modules for parsing command-" -"line arguments: :mod:`getopt`, :mod:`optparse`, and :mod:`argparse`. The " -":mod:`getopt` module closely resembles the C library's :c:func:`getopt` " +"line arguments: :mod:`getopt`, :mod:`optparse`, and :mod:`argparse`. The :" +"mod:`getopt` module closely resembles the C library's :c:func:`getopt` " "function, so it remains useful if you're writing a Python prototype that " "will eventually be rewritten in C. :mod:`optparse` becomes redundant, but " "there are no plans to remove it because there are many scripts still using " -"it, and there's no automated way to update these scripts. (Making the " -":mod:`argparse` API consistent with :mod:`optparse`'s interface was " -"discussed but rejected as too messy and difficult.)" +"it, and there's no automated way to update these scripts. (Making the :mod:" +"`argparse` API consistent with :mod:`optparse`'s interface was discussed but " +"rejected as too messy and difficult.)" #: ../../whatsnew/2.7.rst:366 msgid "" @@ -659,18 +654,18 @@ msgid "" "passing ``'*'``, 1 or more by passing ``'+'``, or an optional argument with " "``'?'``. A top-level parser can contain sub-parsers to define subcommands " "that have different sets of switches, as in ``svn commit``, ``svn " -"checkout``, etc. You can specify an argument's type as " -":class:`~argparse.FileType`, which will automatically open files for you and" -" understands that ``'-'`` means standard input or output." +"checkout``, etc. You can specify an argument's type as :class:`~argparse." +"FileType`, which will automatically open files for you and understands that " +"``'-'`` means standard input or output." msgstr "" ":mod:`argparse` has much fancier validation than :mod:`optparse`; you can " "specify an exact number of arguments as an integer, 0 or more arguments by " "passing ``'*'``, 1 or more by passing ``'+'``, or an optional argument with " "``'?'``. A top-level parser can contain sub-parsers to define subcommands " "that have different sets of switches, as in ``svn commit``, ``svn " -"checkout``, etc. You can specify an argument's type as " -":class:`~argparse.FileType`, which will automatically open files for you and" -" understands that ``'-'`` means standard input or output." +"checkout``, etc. You can specify an argument's type as :class:`~argparse." +"FileType`, which will automatically open files for you and understands that " +"``'-'`` means standard input or output." #: ../../whatsnew/2.7.rst:438 msgid ":mod:`argparse` documentation" @@ -686,11 +681,11 @@ msgstr ":ref:`upgrading-optparse-code`" #: ../../whatsnew/2.7.rst:441 msgid "" -"Part of the Python documentation, describing how to convert code that uses " -":mod:`optparse`." +"Part of the Python documentation, describing how to convert code that uses :" +"mod:`optparse`." msgstr "" -"Part of the Python documentation, describing how to convert code that uses " -":mod:`optparse`." +"Part of the Python documentation, describing how to convert code that uses :" +"mod:`optparse`." #: ../../whatsnew/2.7.rst:444 msgid ":pep:`389` - argparse - New Command Line Parsing Module" @@ -720,16 +715,16 @@ msgstr "" msgid "" "All this flexibility can require a lot of configuration. You can write " "Python statements to create objects and set their properties, but a complex " -"set-up requires verbose but boring code. :mod:`logging` also supports a " -":func:`~logging.fileConfig` function that parses a file, but the file format" -" doesn't support configuring filters, and it's messier to generate " +"set-up requires verbose but boring code. :mod:`logging` also supports a :" +"func:`~logging.fileConfig` function that parses a file, but the file format " +"doesn't support configuring filters, and it's messier to generate " "programmatically." msgstr "" "All this flexibility can require a lot of configuration. You can write " "Python statements to create objects and set their properties, but a complex " -"set-up requires verbose but boring code. :mod:`logging` also supports a " -":func:`~logging.fileConfig` function that parses a file, but the file format" -" doesn't support configuring filters, and it's messier to generate " +"set-up requires verbose but boring code. :mod:`logging` also supports a :" +"func:`~logging.fileConfig` function that parses a file, but the file format " +"doesn't support configuring filters, and it's messier to generate " "programmatically." #: ../../whatsnew/2.7.rst:462 @@ -750,15 +745,15 @@ msgstr "" msgid "" "The following example configures two loggers, the root logger and a logger " "named \"network\". Messages sent to the root logger will be sent to the " -"system log using the syslog protocol, and messages to the \"network\" logger" -" will be written to a :file:`network.log` file that will be rotated once the" -" log reaches 1MB." +"system log using the syslog protocol, and messages to the \"network\" logger " +"will be written to a :file:`network.log` file that will be rotated once the " +"log reaches 1MB." msgstr "" "The following example configures two loggers, the root logger and a logger " "named \"network\". Messages sent to the root logger will be sent to the " -"system log using the syslog protocol, and messages to the \"network\" logger" -" will be written to a :file:`network.log` file that will be rotated once the" -" log reaches 1MB." +"system log using the syslog protocol, and messages to the \"network\" logger " +"will be written to a :file:`network.log` file that will be rotated once the " +"log reaches 1MB." #: ../../whatsnew/2.7.rst:518 msgid "" @@ -772,39 +767,37 @@ msgstr "" msgid "" "The :class:`~logging.handlers.SysLogHandler` class now supports syslogging " "over TCP. The constructor has a *socktype* parameter giving the type of " -"socket to use, either :const:`socket.SOCK_DGRAM` for UDP or " -":const:`socket.SOCK_STREAM` for TCP. The default protocol remains UDP." +"socket to use, either :const:`socket.SOCK_DGRAM` for UDP or :const:`socket." +"SOCK_STREAM` for TCP. The default protocol remains UDP." msgstr "" "The :class:`~logging.handlers.SysLogHandler` class now supports syslogging " "over TCP. The constructor has a *socktype* parameter giving the type of " -"socket to use, either :const:`socket.SOCK_DGRAM` for UDP or " -":const:`socket.SOCK_STREAM` for TCP. The default protocol remains UDP." +"socket to use, either :const:`socket.SOCK_DGRAM` for UDP or :const:`socket." +"SOCK_STREAM` for TCP. The default protocol remains UDP." #: ../../whatsnew/2.7.rst:529 msgid "" -":class:`~logging.Logger` instances gained a :meth:`~logging.Logger.getChild`" -" method that retrieves a descendant logger using a relative path. For " +":class:`~logging.Logger` instances gained a :meth:`~logging.Logger.getChild` " +"method that retrieves a descendant logger using a relative path. For " "example, once you retrieve a logger by doing ``log = getLogger('app')``, " -"calling ``log.getChild('network.listen')`` is equivalent to " -"``getLogger('app.network.listen')``." +"calling ``log.getChild('network.listen')`` is equivalent to ``getLogger('app." +"network.listen')``." msgstr "" -":class:`~logging.Logger` instances gained a :meth:`~logging.Logger.getChild`" -" method that retrieves a descendant logger using a relative path. For " +":class:`~logging.Logger` instances gained a :meth:`~logging.Logger.getChild` " +"method that retrieves a descendant logger using a relative path. For " "example, once you retrieve a logger by doing ``log = getLogger('app')``, " -"calling ``log.getChild('network.listen')`` is equivalent to " -"``getLogger('app.network.listen')``." +"calling ``log.getChild('network.listen')`` is equivalent to ``getLogger('app." +"network.listen')``." #: ../../whatsnew/2.7.rst:535 msgid "" -"The :class:`~logging.LoggerAdapter` class gained an " -":meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a *level* and " -"returns whether the underlying logger would process a message of that level " -"of importance." +"The :class:`~logging.LoggerAdapter` class gained an :meth:`~logging." +"LoggerAdapter.isEnabledFor` method that takes a *level* and returns whether " +"the underlying logger would process a message of that level of importance." msgstr "" -"The :class:`~logging.LoggerAdapter` class gained an " -":meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a *level* and " -"returns whether the underlying logger would process a message of that level " -"of importance." +"The :class:`~logging.LoggerAdapter` class gained an :meth:`~logging." +"LoggerAdapter.isEnabledFor` method that takes a *level* and returns whether " +"the underlying logger would process a message of that level of importance." #: ../../whatsnew/2.7.rst:544 msgid ":pep:`391` - Dictionary-Based Configuration For Logging" @@ -820,37 +813,33 @@ msgstr "PEP 3106: Dictionary Views" #: ../../whatsnew/2.7.rst:550 msgid "" -"The dictionary methods :meth:`~dict.keys`, :meth:`~dict.values`, and " -":meth:`~dict.items` are different in Python 3.x. They return an object " -"called a :dfn:`view` instead of a fully materialized list." +"The dictionary methods :meth:`~dict.keys`, :meth:`~dict.values`, and :meth:" +"`~dict.items` are different in Python 3.x. They return an object called a :" +"dfn:`view` instead of a fully materialized list." msgstr "" -"The dictionary methods :meth:`~dict.keys`, :meth:`~dict.values`, and " -":meth:`~dict.items` are different in Python 3.x. They return an object " -"called a :dfn:`view` instead of a fully materialized list." +"The dictionary methods :meth:`~dict.keys`, :meth:`~dict.values`, and :meth:" +"`~dict.items` are different in Python 3.x. They return an object called a :" +"dfn:`view` instead of a fully materialized list." #: ../../whatsnew/2.7.rst:554 msgid "" -"It's not possible to change the return values of :meth:`~dict.keys`, " -":meth:`~dict.values`, and :meth:`~dict.items` in Python 2.7 because too much" -" code would break. Instead the 3.x versions were added under the new names " -":meth:`~dict.viewkeys`, :meth:`~dict.viewvalues`, and " -":meth:`~dict.viewitems`." +"It's not possible to change the return values of :meth:`~dict.keys`, :meth:" +"`~dict.values`, and :meth:`~dict.items` in Python 2.7 because too much code " +"would break. Instead the 3.x versions were added under the new names :meth:" +"`~dict.viewkeys`, :meth:`~dict.viewvalues`, and :meth:`~dict.viewitems`." msgstr "" -"It's not possible to change the return values of :meth:`~dict.keys`, " -":meth:`~dict.values`, and :meth:`~dict.items` in Python 2.7 because too much" -" code would break. Instead the 3.x versions were added under the new names " -":meth:`~dict.viewkeys`, :meth:`~dict.viewvalues`, and " -":meth:`~dict.viewitems`." +"It's not possible to change the return values of :meth:`~dict.keys`, :meth:" +"`~dict.values`, and :meth:`~dict.items` in Python 2.7 because too much code " +"would break. Instead the 3.x versions were added under the new names :meth:" +"`~dict.viewkeys`, :meth:`~dict.viewvalues`, and :meth:`~dict.viewitems`." #: ../../whatsnew/2.7.rst:568 msgid "" "Views can be iterated over, but the key and item views also behave like " -"sets. The ``&`` operator performs intersection, and ``|`` performs a " -"union::" +"sets. The ``&`` operator performs intersection, and ``|`` performs a union::" msgstr "" "Views can be iterated over, but the key and item views also behave like " -"sets. The ``&`` operator performs intersection, and ``|`` performs a " -"union::" +"sets. The ``&`` operator performs intersection, and ``|`` performs a union::" #: ../../whatsnew/2.7.rst:579 msgid "" @@ -870,13 +859,13 @@ msgstr "" #: ../../whatsnew/2.7.rst:599 msgid "" -"You can use the view methods in Python 2.x code, and the 2to3 converter will" -" change them to the standard :meth:`~dict.keys`, :meth:`~dict.values`, and " -":meth:`~dict.items` methods." +"You can use the view methods in Python 2.x code, and the 2to3 converter will " +"change them to the standard :meth:`~dict.keys`, :meth:`~dict.values`, and :" +"meth:`~dict.items` methods." msgstr "" -"You can use the view methods in Python 2.x code, and the 2to3 converter will" -" change them to the standard :meth:`~dict.keys`, :meth:`~dict.values`, and " -":meth:`~dict.items` methods." +"You can use the view methods in Python 2.x code, and the 2to3 converter will " +"change them to the standard :meth:`~dict.keys`, :meth:`~dict.values`, and :" +"meth:`~dict.items` methods." #: ../../whatsnew/2.7.rst:606 msgid ":pep:`3106` - Revamping dict.keys(), .values() and .items()" @@ -884,11 +873,11 @@ msgstr ":pep:`3106` - Revamping dict.keys(), .values() and .items()" #: ../../whatsnew/2.7.rst:606 msgid "" -"PEP written by Guido van Rossum. Backported to 2.7 by Alexandre Vassalotti; " -":issue:`1967`." +"PEP written by Guido van Rossum. Backported to 2.7 by Alexandre Vassalotti; :" +"issue:`1967`." msgstr "" -"PEP written by Guido van Rossum. Backported to 2.7 by Alexandre Vassalotti; " -":issue:`1967`." +"PEP written by Guido van Rossum. Backported to 2.7 by Alexandre Vassalotti; :" +"issue:`1967`." #: ../../whatsnew/2.7.rst:611 msgid "PEP 3137: The memoryview Object" @@ -941,16 +930,16 @@ msgstr "Some smaller changes made to the core Python language are:" #: ../../whatsnew/2.7.rst:676 msgid "" "The syntax for set literals has been backported from Python 3.x. Curly " -"brackets are used to surround the contents of the resulting mutable set; set" -" literals are distinguished from dictionaries by not containing colons and " -"values. ``{}`` continues to represent an empty dictionary; use ``set()`` for" -" an empty set." +"brackets are used to surround the contents of the resulting mutable set; set " +"literals are distinguished from dictionaries by not containing colons and " +"values. ``{}`` continues to represent an empty dictionary; use ``set()`` for " +"an empty set." msgstr "" "The syntax for set literals has been backported from Python 3.x. Curly " -"brackets are used to surround the contents of the resulting mutable set; set" -" literals are distinguished from dictionaries by not containing colons and " -"values. ``{}`` continues to represent an empty dictionary; use ``set()`` for" -" an empty set." +"brackets are used to surround the contents of the resulting mutable set; set " +"literals are distinguished from dictionaries by not containing colons and " +"values. ``{}`` continues to represent an empty dictionary; use ``set()`` for " +"an empty set." #: ../../whatsnew/2.7.rst:693 msgid "Backported by Alexandre Vassalotti; :issue:`2335`." @@ -1001,55 +990,55 @@ msgstr "" msgid "" "Conversions between floating-point numbers and strings are now correctly " "rounded on most platforms. These conversions occur in many different " -"places: :func:`str` on floats and complex numbers; the :class:`float` and " -":class:`complex` constructors; numeric formatting; serializing and " -"deserializing floats and complex numbers using the :mod:`marshal`, " -":mod:`pickle` and :mod:`json` modules; parsing of float and imaginary " -"literals in Python code; and :class:`~decimal.Decimal`-to-float conversion." +"places: :func:`str` on floats and complex numbers; the :class:`float` and :" +"class:`complex` constructors; numeric formatting; serializing and " +"deserializing floats and complex numbers using the :mod:`marshal`, :mod:" +"`pickle` and :mod:`json` modules; parsing of float and imaginary literals in " +"Python code; and :class:`~decimal.Decimal`-to-float conversion." msgstr "" "Conversions between floating-point numbers and strings are now correctly " "rounded on most platforms. These conversions occur in many different " -"places: :func:`str` on floats and complex numbers; the :class:`float` and " -":class:`complex` constructors; numeric formatting; serializing and " -"deserializing floats and complex numbers using the :mod:`marshal`, " -":mod:`pickle` and :mod:`json` modules; parsing of float and imaginary " -"literals in Python code; and :class:`~decimal.Decimal`-to-float conversion." +"places: :func:`str` on floats and complex numbers; the :class:`float` and :" +"class:`complex` constructors; numeric formatting; serializing and " +"deserializing floats and complex numbers using the :mod:`marshal`, :mod:" +"`pickle` and :mod:`json` modules; parsing of float and imaginary literals in " +"Python code; and :class:`~decimal.Decimal`-to-float conversion." #: ../../whatsnew/2.7.rst:741 msgid "" -"Related to this, the :func:`repr` of a floating-point number *x* now returns" -" a result based on the shortest decimal string that's guaranteed to round " -"back to *x* under correct rounding (with round-half-to-even rounding mode)." -" Previously it gave a string based on rounding x to 17 decimal digits." +"Related to this, the :func:`repr` of a floating-point number *x* now returns " +"a result based on the shortest decimal string that's guaranteed to round " +"back to *x* under correct rounding (with round-half-to-even rounding mode). " +"Previously it gave a string based on rounding x to 17 decimal digits." msgstr "" -"Related to this, the :func:`repr` of a floating-point number *x* now returns" -" a result based on the shortest decimal string that's guaranteed to round " -"back to *x* under correct rounding (with round-half-to-even rounding mode)." -" Previously it gave a string based on rounding x to 17 decimal digits." +"Related to this, the :func:`repr` of a floating-point number *x* now returns " +"a result based on the shortest decimal string that's guaranteed to round " +"back to *x* under correct rounding (with round-half-to-even rounding mode). " +"Previously it gave a string based on rounding x to 17 decimal digits." #: ../../whatsnew/2.7.rst:749 msgid "" "The rounding library responsible for this improvement works on Windows and " "on Unix platforms using the gcc, icc, or suncc compilers. There may be a " "small number of platforms where correct operation of this code cannot be " -"guaranteed, so the code is not used on such systems. You can find out which" -" code is being used by checking :data:`sys.float_repr_style`, which will be" -" ``short`` if the new code is in use and ``legacy`` if it isn't." +"guaranteed, so the code is not used on such systems. You can find out which " +"code is being used by checking :data:`sys.float_repr_style`, which will be " +"``short`` if the new code is in use and ``legacy`` if it isn't." msgstr "" "The rounding library responsible for this improvement works on Windows and " "on Unix platforms using the gcc, icc, or suncc compilers. There may be a " "small number of platforms where correct operation of this code cannot be " -"guaranteed, so the code is not used on such systems. You can find out which" -" code is being used by checking :data:`sys.float_repr_style`, which will be" -" ``short`` if the new code is in use and ``legacy`` if it isn't." +"guaranteed, so the code is not used on such systems. You can find out which " +"code is being used by checking :data:`sys.float_repr_style`, which will be " +"``short`` if the new code is in use and ``legacy`` if it isn't." #: ../../whatsnew/2.7.rst:757 msgid "" -"Implemented by Eric Smith and Mark Dickinson, using David Gay's " -":file:`dtoa.c` library; :issue:`7117`." +"Implemented by Eric Smith and Mark Dickinson, using David Gay's :file:`dtoa." +"c` library; :issue:`7117`." msgstr "" -"Implemented by Eric Smith and Mark Dickinson, using David Gay's " -":file:`dtoa.c` library; :issue:`7117`." +"Implemented by Eric Smith and Mark Dickinson, using David Gay's :file:`dtoa." +"c` library; :issue:`7117`." #: ../../whatsnew/2.7.rst:760 msgid "" @@ -1089,12 +1078,12 @@ msgstr "" #: ../../whatsnew/2.7.rst:787 msgid "" -"Implicit coercion for complex numbers has been removed; the interpreter will" -" no longer ever attempt to call a :meth:`__coerce__` method on complex " +"Implicit coercion for complex numbers has been removed; the interpreter will " +"no longer ever attempt to call a :meth:`__coerce__` method on complex " "objects. (Removed by Meador Inge and Mark Dickinson; :issue:`5211`.)" msgstr "" -"Implicit coercion for complex numbers has been removed; the interpreter will" -" no longer ever attempt to call a :meth:`__coerce__` method on complex " +"Implicit coercion for complex numbers has been removed; the interpreter will " +"no longer ever attempt to call a :meth:`__coerce__` method on complex " "objects. (Removed by Meador Inge and Mark Dickinson; :issue:`5211`.)" #: ../../whatsnew/2.7.rst:791 @@ -1109,30 +1098,30 @@ msgstr "" #: ../../whatsnew/2.7.rst:800 msgid "" -"The auto-numbering takes the fields from left to right, so the first " -"``{...}`` specifier will use the first argument to :meth:`str.format`, the " -"next specifier will use the next argument, and so on. You can't mix auto-" +"The auto-numbering takes the fields from left to right, so the first ``{...}" +"`` specifier will use the first argument to :meth:`str.format`, the next " +"specifier will use the next argument, and so on. You can't mix auto-" "numbering and explicit numbering -- either number all of your specifier " "fields or none of them -- but you can mix auto-numbering and named fields, " "as in the second example above. (Contributed by Eric Smith; :issue:`5237`.)" msgstr "" -"The auto-numbering takes the fields from left to right, so the first " -"``{...}`` specifier will use the first argument to :meth:`str.format`, the " -"next specifier will use the next argument, and so on. You can't mix auto-" +"The auto-numbering takes the fields from left to right, so the first ``{...}" +"`` specifier will use the first argument to :meth:`str.format`, the next " +"specifier will use the next argument, and so on. You can't mix auto-" "numbering and explicit numbering -- either number all of your specifier " "fields or none of them -- but you can mix auto-numbering and named fields, " "as in the second example above. (Contributed by Eric Smith; :issue:`5237`.)" #: ../../whatsnew/2.7.rst:807 msgid "" -"Complex numbers now correctly support usage with :func:`format`, and default" -" to being right-aligned. Specifying a precision or comma-separation applies " +"Complex numbers now correctly support usage with :func:`format`, and default " +"to being right-aligned. Specifying a precision or comma-separation applies " "to both the real and imaginary parts of the number, but a specified field " "width and alignment is applied to the whole of the resulting ``1.5+3j`` " "output. (Contributed by Eric Smith; :issue:`1588` and :issue:`7988`.)" msgstr "" -"Complex numbers now correctly support usage with :func:`format`, and default" -" to being right-aligned. Specifying a precision or comma-separation applies " +"Complex numbers now correctly support usage with :func:`format`, and default " +"to being right-aligned. Specifying a precision or comma-separation applies " "to both the real and imaginary parts of the number, but a specified field " "width and alignment is applied to the whole of the resulting ``1.5+3j`` " "output. (Contributed by Eric Smith; :issue:`1588` and :issue:`7988`.)" @@ -1149,23 +1138,23 @@ msgstr "" #: ../../whatsnew/2.7.rst:818 msgid "" -"A low-level change: the :meth:`object.__format__` method now triggers a " -":exc:`PendingDeprecationWarning` if it's passed a format string, because the" -" :meth:`__format__` method for :class:`object` converts the object to a " -"string representation and formats that. Previously the method silently " -"applied the format string to the string representation, but that could hide " -"mistakes in Python code. If you're supplying formatting information such as" -" an alignment or precision, presumably you're expecting the formatting to be" -" applied in some object-specific way. (Fixed by Eric Smith; :issue:`7994`.)" -msgstr "" -"A low-level change: the :meth:`object.__format__` method now triggers a " -":exc:`PendingDeprecationWarning` if it's passed a format string, because the" -" :meth:`__format__` method for :class:`object` converts the object to a " -"string representation and formats that. Previously the method silently " -"applied the format string to the string representation, but that could hide " -"mistakes in Python code. If you're supplying formatting information such as" -" an alignment or precision, presumably you're expecting the formatting to be" -" applied in some object-specific way. (Fixed by Eric Smith; :issue:`7994`.)" +"A low-level change: the :meth:`object.__format__` method now triggers a :exc:" +"`PendingDeprecationWarning` if it's passed a format string, because the :" +"meth:`__format__` method for :class:`object` converts the object to a string " +"representation and formats that. Previously the method silently applied the " +"format string to the string representation, but that could hide mistakes in " +"Python code. If you're supplying formatting information such as an " +"alignment or precision, presumably you're expecting the formatting to be " +"applied in some object-specific way. (Fixed by Eric Smith; :issue:`7994`.)" +msgstr "" +"A low-level change: the :meth:`object.__format__` method now triggers a :exc:" +"`PendingDeprecationWarning` if it's passed a format string, because the :" +"meth:`__format__` method for :class:`object` converts the object to a string " +"representation and formats that. Previously the method silently applied the " +"format string to the string representation, but that could hide mistakes in " +"Python code. If you're supplying formatting information such as an " +"alignment or precision, presumably you're expecting the formatting to be " +"applied in some object-specific way. (Fixed by Eric Smith; :issue:`7994`.)" #: ../../whatsnew/2.7.rst:828 msgid "" @@ -1182,30 +1171,30 @@ msgstr "(Contributed by Fredrik Johansson and Victor Stinner; :issue:`3439`.)" #: ../../whatsnew/2.7.rst:845 msgid "" "The :keyword:`import` statement will no longer try an absolute import if a " -"relative import (e.g. ``from .os import sep``) fails. This fixes a bug, but" -" could possibly break certain :keyword:`!import` statements that were only " +"relative import (e.g. ``from .os import sep``) fails. This fixes a bug, but " +"could possibly break certain :keyword:`!import` statements that were only " "working by accident. (Fixed by Meador Inge; :issue:`7902`.)" msgstr "" #: ../../whatsnew/2.7.rst:851 msgid "" "It's now possible for a subclass of the built-in :class:`unicode` type to " -"override the :meth:`__unicode__` method. (Implemented by Victor Stinner; " -":issue:`1583863`.)" +"override the :meth:`__unicode__` method. (Implemented by Victor Stinner; :" +"issue:`1583863`.)" msgstr "" "It's now possible for a subclass of the built-in :class:`unicode` type to " -"override the :meth:`__unicode__` method. (Implemented by Victor Stinner; " -":issue:`1583863`.)" +"override the :meth:`__unicode__` method. (Implemented by Victor Stinner; :" +"issue:`1583863`.)" #: ../../whatsnew/2.7.rst:855 msgid "" "The :class:`bytearray` type's :meth:`~bytearray.translate` method now " -"accepts ``None`` as its first argument. (Fixed by Georg Brandl; " -":issue:`4759`.)" +"accepts ``None`` as its first argument. (Fixed by Georg Brandl; :issue:" +"`4759`.)" msgstr "" "The :class:`bytearray` type's :meth:`~bytearray.translate` method now " -"accepts ``None`` as its first argument. (Fixed by Georg Brandl; " -":issue:`4759`.)" +"accepts ``None`` as its first argument. (Fixed by Georg Brandl; :issue:" +"`4759`.)" #: ../../whatsnew/2.7.rst:861 msgid "" @@ -1233,71 +1222,71 @@ msgstr "" msgid "" "Two new encodings are now supported: \"cp720\", used primarily for Arabic " "text; and \"cp858\", a variant of CP 850 that adds the euro symbol. (CP720 " -"contributed by Alexander Belchenko and Amaury Forgeot d'Arc in " -":issue:`1616979`; CP858 contributed by Tim Hatch in :issue:`8016`.)" +"contributed by Alexander Belchenko and Amaury Forgeot d'Arc in :issue:" +"`1616979`; CP858 contributed by Tim Hatch in :issue:`8016`.)" msgstr "" "Two new encodings are now supported: \"cp720\", used primarily for Arabic " "text; and \"cp858\", a variant of CP 850 that adds the euro symbol. (CP720 " -"contributed by Alexander Belchenko and Amaury Forgeot d'Arc in " -":issue:`1616979`; CP858 contributed by Tim Hatch in :issue:`8016`.)" +"contributed by Alexander Belchenko and Amaury Forgeot d'Arc in :issue:" +"`1616979`; CP858 contributed by Tim Hatch in :issue:`8016`.)" #: ../../whatsnew/2.7.rst:877 msgid "" -"The :class:`file` object will now set the :attr:`filename` attribute on the " -":exc:`IOError` exception when trying to open a directory on POSIX platforms " -"(noted by Jan Kaliszewski; :issue:`4764`), and now explicitly checks for and" -" forbids writing to read-only file objects instead of trusting the C library" -" to catch and report the error (fixed by Stefan Krah; :issue:`5677`)." +"The :class:`file` object will now set the :attr:`filename` attribute on the :" +"exc:`IOError` exception when trying to open a directory on POSIX platforms " +"(noted by Jan Kaliszewski; :issue:`4764`), and now explicitly checks for and " +"forbids writing to read-only file objects instead of trusting the C library " +"to catch and report the error (fixed by Stefan Krah; :issue:`5677`)." msgstr "" -"The :class:`file` object will now set the :attr:`filename` attribute on the " -":exc:`IOError` exception when trying to open a directory on POSIX platforms " -"(noted by Jan Kaliszewski; :issue:`4764`), and now explicitly checks for and" -" forbids writing to read-only file objects instead of trusting the C library" -" to catch and report the error (fixed by Stefan Krah; :issue:`5677`)." +"The :class:`file` object will now set the :attr:`filename` attribute on the :" +"exc:`IOError` exception when trying to open a directory on POSIX platforms " +"(noted by Jan Kaliszewski; :issue:`4764`), and now explicitly checks for and " +"forbids writing to read-only file objects instead of trusting the C library " +"to catch and report the error (fixed by Stefan Krah; :issue:`5677`)." #: ../../whatsnew/2.7.rst:884 msgid "" -"The Python tokenizer now translates line endings itself, so the " -":func:`compile` built-in function now accepts code using any line-ending " +"The Python tokenizer now translates line endings itself, so the :func:" +"`compile` built-in function now accepts code using any line-ending " "convention. Additionally, it no longer requires that the code end in a " "newline." msgstr "" -"The Python tokenizer now translates line endings itself, so the " -":func:`compile` built-in function now accepts code using any line-ending " +"The Python tokenizer now translates line endings itself, so the :func:" +"`compile` built-in function now accepts code using any line-ending " "convention. Additionally, it no longer requires that the code end in a " "newline." #: ../../whatsnew/2.7.rst:889 msgid "" -"Extra parentheses in function definitions are illegal in Python 3.x, meaning" -" that you get a syntax error from ``def f((x)): pass``. In Python3-warning " +"Extra parentheses in function definitions are illegal in Python 3.x, meaning " +"that you get a syntax error from ``def f((x)): pass``. In Python3-warning " "mode, Python 2.7 will now warn about this odd usage. (Noted by James " "Lingard; :issue:`7362`.)" msgstr "" -"Extra parentheses in function definitions are illegal in Python 3.x, meaning" -" that you get a syntax error from ``def f((x)): pass``. In Python3-warning " +"Extra parentheses in function definitions are illegal in Python 3.x, meaning " +"that you get a syntax error from ``def f((x)): pass``. In Python3-warning " "mode, Python 2.7 will now warn about this odd usage. (Noted by James " "Lingard; :issue:`7362`.)" #: ../../whatsnew/2.7.rst:894 msgid "" -"It's now possible to create weak references to old-style class objects. " -"New-style classes were always weak-referenceable. (Fixed by Antoine Pitrou;" -" :issue:`8268`.)" +"It's now possible to create weak references to old-style class objects. New-" +"style classes were always weak-referenceable. (Fixed by Antoine Pitrou; :" +"issue:`8268`.)" msgstr "" -"It's now possible to create weak references to old-style class objects. " -"New-style classes were always weak-referenceable. (Fixed by Antoine Pitrou;" -" :issue:`8268`.)" +"It's now possible to create weak references to old-style class objects. New-" +"style classes were always weak-referenceable. (Fixed by Antoine Pitrou; :" +"issue:`8268`.)" #: ../../whatsnew/2.7.rst:898 msgid "" "When a module object is garbage-collected, the module's dictionary is now " -"only cleared if no one else is holding a reference to the dictionary " -"(:issue:`7140`)." +"only cleared if no one else is holding a reference to the dictionary (:issue:" +"`7140`)." msgstr "" "When a module object is garbage-collected, the module's dictionary is now " -"only cleared if no one else is holding a reference to the dictionary " -"(:issue:`7140`)." +"only cleared if no one else is holding a reference to the dictionary (:issue:" +"`7140`)." #: ../../whatsnew/2.7.rst:907 msgid "Interpreter Changes" @@ -1347,8 +1336,8 @@ msgstr "" #: ../../whatsnew/2.7.rst:936 msgid "" -"The garbage collector now performs better for one common usage pattern: when" -" many objects are being allocated without deallocating any of them. This " +"The garbage collector now performs better for one common usage pattern: when " +"many objects are being allocated without deallocating any of them. This " "would previously take quadratic time for garbage collection, but now the " "number of full garbage collections is reduced as the number of objects on " "the heap grows. The new logic only performs a full garbage collection pass " @@ -1357,8 +1346,8 @@ msgid "" "objects in the oldest generation. (Suggested by Martin von Löwis and " "implemented by Antoine Pitrou; :issue:`4074`.)" msgstr "" -"The garbage collector now performs better for one common usage pattern: when" -" many objects are being allocated without deallocating any of them. This " +"The garbage collector now performs better for one common usage pattern: when " +"many objects are being allocated without deallocating any of them. This " "would previously take quadratic time for garbage collection, but now the " "number of full garbage collections is reduced as the number of objects on " "the heap grows. The new logic only performs a full garbage collection pass " @@ -1372,16 +1361,16 @@ msgid "" "The garbage collector tries to avoid tracking simple containers which can't " "be part of a cycle. In Python 2.7, this is now true for tuples and dicts " "containing atomic types (such as ints, strings, etc.). Transitively, a dict " -"containing tuples of atomic types won't be tracked either. This helps reduce" -" the cost of each garbage collection by decreasing the number of objects to " +"containing tuples of atomic types won't be tracked either. This helps reduce " +"the cost of each garbage collection by decreasing the number of objects to " "be considered and traversed by the collector. (Contributed by Antoine " "Pitrou; :issue:`4688`.)" msgstr "" "The garbage collector tries to avoid tracking simple containers which can't " "be part of a cycle. In Python 2.7, this is now true for tuples and dicts " "containing atomic types (such as ints, strings, etc.). Transitively, a dict " -"containing tuples of atomic types won't be tracked either. This helps reduce" -" the cost of each garbage collection by decreasing the number of objects to " +"containing tuples of atomic types won't be tracked either. This helps reduce " +"the cost of each garbage collection by decreasing the number of objects to " "be considered and traversed by the collector. (Contributed by Antoine " "Pitrou; :issue:`4688`.)" @@ -1389,20 +1378,20 @@ msgstr "" msgid "" "Long integers are now stored internally either in base 2**15 or in base " "2**30, the base being determined at build time. Previously, they were " -"always stored in base 2**15. Using base 2**30 gives significant performance" -" improvements on 64-bit machines, but benchmark results on 32-bit machines " +"always stored in base 2**15. Using base 2**30 gives significant performance " +"improvements on 64-bit machines, but benchmark results on 32-bit machines " "have been mixed. Therefore, the default is to use base 2**30 on 64-bit " -"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure" -" option :option:`!--enable-big-digits` that can be used to override this " +"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure " +"option :option:`!--enable-big-digits` that can be used to override this " "default." msgstr "" "Long integers are now stored internally either in base 2**15 or in base " "2**30, the base being determined at build time. Previously, they were " -"always stored in base 2**15. Using base 2**30 gives significant performance" -" improvements on 64-bit machines, but benchmark results on 32-bit machines " +"always stored in base 2**15. Using base 2**30 gives significant performance " +"improvements on 64-bit machines, but benchmark results on 32-bit machines " "have been mixed. Therefore, the default is to use base 2**30 on 64-bit " -"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure" -" option :option:`!--enable-big-digits` that can be used to override this " +"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure " +"option :option:`!--enable-big-digits` that can be used to override this " "default." #: ../../whatsnew/2.7.rst:965 @@ -1437,15 +1426,15 @@ msgstr "" msgid "" "The division algorithm for long integers has been made faster by tightening " "the inner loop, doing shifts instead of multiplications, and fixing an " -"unnecessary extra iteration. Various benchmarks show speedups of between 50%" -" and 150% for long integer divisions and modulo operations. (Contributed by " +"unnecessary extra iteration. Various benchmarks show speedups of between 50% " +"and 150% for long integer divisions and modulo operations. (Contributed by " "Mark Dickinson; :issue:`5512`.) Bitwise operations are also significantly " "faster (initial patch by Gregory Smith; :issue:`1087418`)." msgstr "" "The division algorithm for long integers has been made faster by tightening " "the inner loop, doing shifts instead of multiplications, and fixing an " -"unnecessary extra iteration. Various benchmarks show speedups of between 50%" -" and 150% for long integer divisions and modulo operations. (Contributed by " +"unnecessary extra iteration. Various benchmarks show speedups of between 50% " +"and 150% for long integer divisions and modulo operations. (Contributed by " "Mark Dickinson; :issue:`5512`.) Bitwise operations are also significantly " "faster (initial patch by Gregory Smith; :issue:`1087418`)." @@ -1464,34 +1453,34 @@ msgstr "" #: ../../whatsnew/2.7.rst:997 msgid "" "List comprehensions with an ``if`` condition are compiled into faster " -"bytecode. (Patch by Antoine Pitrou, back-ported to 2.7 by Jeffrey Yasskin; " -":issue:`4715`.)" +"bytecode. (Patch by Antoine Pitrou, back-ported to 2.7 by Jeffrey Yasskin; :" +"issue:`4715`.)" msgstr "" "List comprehensions with an ``if`` condition are compiled into faster " -"bytecode. (Patch by Antoine Pitrou, back-ported to 2.7 by Jeffrey Yasskin; " -":issue:`4715`.)" +"bytecode. (Patch by Antoine Pitrou, back-ported to 2.7 by Jeffrey Yasskin; :" +"issue:`4715`.)" #: ../../whatsnew/2.7.rst:1001 msgid "" -"Converting an integer or long integer to a decimal string was made faster by" -" special-casing base 10 instead of using a generalized conversion function " +"Converting an integer or long integer to a decimal string was made faster by " +"special-casing base 10 instead of using a generalized conversion function " "that supports arbitrary bases. (Patch by Gawain Bolton; :issue:`6713`.)" msgstr "" -"Converting an integer or long integer to a decimal string was made faster by" -" special-casing base 10 instead of using a generalized conversion function " +"Converting an integer or long integer to a decimal string was made faster by " +"special-casing base 10 instead of using a generalized conversion function " "that supports arbitrary bases. (Patch by Gawain Bolton; :issue:`6713`.)" #: ../../whatsnew/2.7.rst:1006 msgid "" -"The :meth:`split`, :meth:`replace`, :meth:`rindex`, :meth:`rpartition`, and " -":meth:`rsplit` methods of string-like types (strings, Unicode strings, and " -":class:`bytearray` objects) now use a fast reverse-search algorithm instead " +"The :meth:`split`, :meth:`replace`, :meth:`rindex`, :meth:`rpartition`, and :" +"meth:`rsplit` methods of string-like types (strings, Unicode strings, and :" +"class:`bytearray` objects) now use a fast reverse-search algorithm instead " "of a character-by-character scan. This is sometimes faster by a factor of " "10. (Added by Florent Xicluna; :issue:`7462` and :issue:`7622`.)" msgstr "" -"The :meth:`split`, :meth:`replace`, :meth:`rindex`, :meth:`rpartition`, and " -":meth:`rsplit` methods of string-like types (strings, Unicode strings, and " -":class:`bytearray` objects) now use a fast reverse-search algorithm instead " +"The :meth:`split`, :meth:`replace`, :meth:`rindex`, :meth:`rpartition`, and :" +"meth:`rsplit` methods of string-like types (strings, Unicode strings, and :" +"class:`bytearray` objects) now use a fast reverse-search algorithm instead " "of a character-by-character scan. This is sometimes faster by a factor of " "10. (Added by Florent Xicluna; :issue:`7462` and :issue:`7622`.)" @@ -1507,13 +1496,11 @@ msgstr "" #: ../../whatsnew/2.7.rst:1018 msgid "" -"The :mod:`cPickle` module now special-cases dictionaries, nearly halving the" -" time required to pickle them. (Contributed by Collin Winter; " -":issue:`5670`.)" +"The :mod:`cPickle` module now special-cases dictionaries, nearly halving the " +"time required to pickle them. (Contributed by Collin Winter; :issue:`5670`.)" msgstr "" -"The :mod:`cPickle` module now special-cases dictionaries, nearly halving the" -" time required to pickle them. (Contributed by Collin Winter; " -":issue:`5670`.)" +"The :mod:`cPickle` module now special-cases dictionaries, nearly halving the " +"time required to pickle them. (Contributed by Collin Winter; :issue:`5670`.)" #: ../../whatsnew/2.7.rst:1025 msgid "New and Improved Modules" @@ -1523,15 +1510,15 @@ msgstr "Módulos Novos ou Aprimorados" msgid "" "As in every release, Python's standard library received a number of " "enhancements and bug fixes. Here's a partial list of the most notable " -"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS`" -" file in the source tree for a more complete list of changes, or look " -"through the Subversion logs for all the details." +"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS` " +"file in the source tree for a more complete list of changes, or look through " +"the Subversion logs for all the details." msgstr "" "As in every release, Python's standard library received a number of " "enhancements and bug fixes. Here's a partial list of the most notable " -"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS`" -" file in the source tree for a more complete list of changes, or look " -"through the Subversion logs for all the details." +"changes, sorted alphabetically by module name. Consult the :file:`Misc/NEWS` " +"file in the source tree for a more complete list of changes, or look through " +"the Subversion logs for all the details." #: ../../whatsnew/2.7.rst:1033 msgid "" @@ -1539,15 +1526,15 @@ msgid "" "feature for skipping modules. The constructor now takes an iterable " "containing glob-style patterns such as ``django.*``; the debugger will not " "step into stack frames from a module that matches one of these patterns. " -"(Contributed by Maru Newby after a suggestion by Senthil Kumaran; " -":issue:`5142`.)" +"(Contributed by Maru Newby after a suggestion by Senthil Kumaran; :issue:" +"`5142`.)" msgstr "" "The :mod:`bdb` module's base debugging class :class:`~bdb.Bdb` gained a " "feature for skipping modules. The constructor now takes an iterable " "containing glob-style patterns such as ``django.*``; the debugger will not " "step into stack frames from a module that matches one of these patterns. " -"(Contributed by Maru Newby after a suggestion by Senthil Kumaran; " -":issue:`5142`.)" +"(Contributed by Maru Newby after a suggestion by Senthil Kumaran; :issue:" +"`5142`.)" #: ../../whatsnew/2.7.rst:1041 msgid "" @@ -1561,21 +1548,19 @@ msgstr "" #: ../../whatsnew/2.7.rst:1045 msgid "" -"Updated module: the :mod:`bsddb` module has been updated from 4.7.2devel9 to" -" version 4.8.4 of `the pybsddb package " -"`__. The new version features " -"better Python 3.x compatibility, various bug fixes, and adds several new " -"BerkeleyDB flags and methods. (Updated by Jesús Cea Avión; :issue:`8156`. " -"The pybsddb changelog can be read at " -"http://hg.jcea.es/pybsddb/file/tip/ChangeLog.)" -msgstr "" -"Updated module: the :mod:`bsddb` module has been updated from 4.7.2devel9 to" -" version 4.8.4 of `the pybsddb package " -"`__. The new version features " -"better Python 3.x compatibility, various bug fixes, and adds several new " -"BerkeleyDB flags and methods. (Updated by Jesús Cea Avión; :issue:`8156`. " -"The pybsddb changelog can be read at " -"http://hg.jcea.es/pybsddb/file/tip/ChangeLog.)" +"Updated module: the :mod:`bsddb` module has been updated from 4.7.2devel9 to " +"version 4.8.4 of `the pybsddb package `__. The new version features better Python 3.x compatibility, " +"various bug fixes, and adds several new BerkeleyDB flags and methods. " +"(Updated by Jesús Cea Avión; :issue:`8156`. The pybsddb changelog can be " +"read at http://hg.jcea.es/pybsddb/file/tip/ChangeLog.)" +msgstr "" +"Updated module: the :mod:`bsddb` module has been updated from 4.7.2devel9 to " +"version 4.8.4 of `the pybsddb package `__. The new version features better Python 3.x compatibility, " +"various bug fixes, and adds several new BerkeleyDB flags and methods. " +"(Updated by Jesús Cea Avión; :issue:`8156`. The pybsddb changelog can be " +"read at http://hg.jcea.es/pybsddb/file/tip/ChangeLog.)" #: ../../whatsnew/2.7.rst:1053 msgid "" @@ -1589,32 +1574,32 @@ msgstr "" #: ../../whatsnew/2.7.rst:1057 msgid "" -"New class: the :class:`~collections.Counter` class in the :mod:`collections`" -" module is useful for tallying data. :class:`~collections.Counter` " -"instances behave mostly like dictionaries but return zero for missing keys " -"instead of raising a :exc:`KeyError`:" +"New class: the :class:`~collections.Counter` class in the :mod:`collections` " +"module is useful for tallying data. :class:`~collections.Counter` instances " +"behave mostly like dictionaries but return zero for missing keys instead of " +"raising a :exc:`KeyError`:" msgstr "" -"New class: the :class:`~collections.Counter` class in the :mod:`collections`" -" module is useful for tallying data. :class:`~collections.Counter` " -"instances behave mostly like dictionaries but return zero for missing keys " -"instead of raising a :exc:`KeyError`:" +"New class: the :class:`~collections.Counter` class in the :mod:`collections` " +"module is useful for tallying data. :class:`~collections.Counter` instances " +"behave mostly like dictionaries but return zero for missing keys instead of " +"raising a :exc:`KeyError`:" #: ../../whatsnew/2.7.rst:1079 msgid "" -"There are three additional :class:`~collections.Counter` methods. " -":meth:`~collections.Counter.most_common` returns the N most common elements " -"and their counts. :meth:`~collections.Counter.elements` returns an iterator" -" over the contained elements, repeating each element as many times as its " -"count. :meth:`~collections.Counter.subtract` takes an iterable and subtracts" -" one for each element instead of adding; if the argument is a dictionary or " +"There are three additional :class:`~collections.Counter` methods. :meth:" +"`~collections.Counter.most_common` returns the N most common elements and " +"their counts. :meth:`~collections.Counter.elements` returns an iterator " +"over the contained elements, repeating each element as many times as its " +"count. :meth:`~collections.Counter.subtract` takes an iterable and subtracts " +"one for each element instead of adding; if the argument is a dictionary or " "another :class:`Counter`, the counts are subtracted. ::" msgstr "" -"There are three additional :class:`~collections.Counter` methods. " -":meth:`~collections.Counter.most_common` returns the N most common elements " -"and their counts. :meth:`~collections.Counter.elements` returns an iterator" -" over the contained elements, repeating each element as many times as its " -"count. :meth:`~collections.Counter.subtract` takes an iterable and subtracts" -" one for each element instead of adding; if the argument is a dictionary or " +"There are three additional :class:`~collections.Counter` methods. :meth:" +"`~collections.Counter.most_common` returns the N most common elements and " +"their counts. :meth:`~collections.Counter.elements` returns an iterator " +"over the contained elements, repeating each element as many times as its " +"count. :meth:`~collections.Counter.subtract` takes an iterable and subtracts " +"one for each element instead of adding; if the argument is a dictionary or " "another :class:`Counter`, the counts are subtracted. ::" #: ../../whatsnew/2.7.rst:1102 @@ -1631,32 +1616,32 @@ msgstr "" #: ../../whatsnew/2.7.rst:1109 msgid "" -"New method: The :class:`~collections.deque` data type now has a " -":meth:`~collections.deque.count` method that returns the number of contained" -" elements equal to the supplied argument *x*, and a " -":meth:`~collections.deque.reverse` method that reverses the elements of the " -"deque in-place. :class:`~collections.deque` also exposes its maximum length" -" as the read-only :attr:`~collections.deque.maxlen` attribute. (Both " -"features added by Raymond Hettinger.)" -msgstr "" -"New method: The :class:`~collections.deque` data type now has a " -":meth:`~collections.deque.count` method that returns the number of contained" -" elements equal to the supplied argument *x*, and a " -":meth:`~collections.deque.reverse` method that reverses the elements of the " -"deque in-place. :class:`~collections.deque` also exposes its maximum length" -" as the read-only :attr:`~collections.deque.maxlen` attribute. (Both " -"features added by Raymond Hettinger.)" +"New method: The :class:`~collections.deque` data type now has a :meth:" +"`~collections.deque.count` method that returns the number of contained " +"elements equal to the supplied argument *x*, and a :meth:`~collections.deque." +"reverse` method that reverses the elements of the deque in-place. :class:" +"`~collections.deque` also exposes its maximum length as the read-only :attr:" +"`~collections.deque.maxlen` attribute. (Both features added by Raymond " +"Hettinger.)" +msgstr "" +"New method: The :class:`~collections.deque` data type now has a :meth:" +"`~collections.deque.count` method that returns the number of contained " +"elements equal to the supplied argument *x*, and a :meth:`~collections.deque." +"reverse` method that reverses the elements of the deque in-place. :class:" +"`~collections.deque` also exposes its maximum length as the read-only :attr:" +"`~collections.deque.maxlen` attribute. (Both features added by Raymond " +"Hettinger.)" #: ../../whatsnew/2.7.rst:1117 msgid "" "The :class:`~collections.namedtuple` class now has an optional *rename* " -"parameter. If *rename* is true, field names that are invalid because they've" -" been repeated or aren't legal Python identifiers will be renamed to legal " +"parameter. If *rename* is true, field names that are invalid because they've " +"been repeated or aren't legal Python identifiers will be renamed to legal " "names that are derived from the field's position within the list of fields:" msgstr "" "The :class:`~collections.namedtuple` class now has an optional *rename* " -"parameter. If *rename* is true, field names that are invalid because they've" -" been repeated or aren't legal Python identifiers will be renamed to legal " +"parameter. If *rename* is true, field names that are invalid because they've " +"been repeated or aren't legal Python identifiers will be renamed to legal " "names that are derived from the field's position within the list of fields:" #: ../../whatsnew/2.7.rst:1128 @@ -1665,12 +1650,12 @@ msgstr "(Added by Raymond Hettinger; :issue:`1818`.)" #: ../../whatsnew/2.7.rst:1130 msgid "" -"Finally, the :class:`~collections.Mapping` abstract base class now returns " -":const:`NotImplemented` if a mapping is compared to another type that isn't " +"Finally, the :class:`~collections.Mapping` abstract base class now returns :" +"const:`NotImplemented` if a mapping is compared to another type that isn't " "a :class:`Mapping`. (Fixed by Daniel Stutzbach; :issue:`8729`.)" msgstr "" -"Finally, the :class:`~collections.Mapping` abstract base class now returns " -":const:`NotImplemented` if a mapping is compared to another type that isn't " +"Finally, the :class:`~collections.Mapping` abstract base class now returns :" +"const:`NotImplemented` if a mapping is compared to another type that isn't " "a :class:`Mapping`. (Fixed by Daniel Stutzbach; :issue:`8729`.)" #: ../../whatsnew/2.7.rst:1135 @@ -1697,82 +1682,79 @@ msgstr "" #: ../../whatsnew/2.7.rst:1164 msgid "" -"The :mod:`cookielib` module now ignores cookies that have an invalid version" -" field, one that doesn't contain an integer value. (Fixed by John J. Lee; " -":issue:`3924`.)" +"The :mod:`cookielib` module now ignores cookies that have an invalid version " +"field, one that doesn't contain an integer value. (Fixed by John J. Lee; :" +"issue:`3924`.)" msgstr "" -"The :mod:`cookielib` module now ignores cookies that have an invalid version" -" field, one that doesn't contain an integer value. (Fixed by John J. Lee; " -":issue:`3924`.)" +"The :mod:`cookielib` module now ignores cookies that have an invalid version " +"field, one that doesn't contain an integer value. (Fixed by John J. Lee; :" +"issue:`3924`.)" #: ../../whatsnew/2.7.rst:1168 msgid "" "The :mod:`copy` module's :func:`~copy.deepcopy` function will now correctly " -"copy bound instance methods. (Implemented by Robert Collins; " -":issue:`1515`.)" +"copy bound instance methods. (Implemented by Robert Collins; :issue:`1515`.)" msgstr "" "The :mod:`copy` module's :func:`~copy.deepcopy` function will now correctly " -"copy bound instance methods. (Implemented by Robert Collins; " -":issue:`1515`.)" +"copy bound instance methods. (Implemented by Robert Collins; :issue:`1515`.)" #: ../../whatsnew/2.7.rst:1172 msgid "" "The :mod:`ctypes` module now always converts ``None`` to a C ``NULL`` " -"pointer for arguments declared as pointers. (Changed by Thomas Heller; " -":issue:`4606`.) The underlying `libffi library " -"`__ has been updated to version 3.0.9, " -"containing various fixes for different platforms. (Updated by Matthias " -"Klose; :issue:`8142`.)" +"pointer for arguments declared as pointers. (Changed by Thomas Heller; :" +"issue:`4606`.) The underlying `libffi library `__ has been updated to version 3.0.9, containing various fixes for " +"different platforms. (Updated by Matthias Klose; :issue:`8142`.)" msgstr "" #: ../../whatsnew/2.7.rst:1179 msgid "" "New method: the :mod:`datetime` module's :class:`~datetime.timedelta` class " "gained a :meth:`~datetime.timedelta.total_seconds` method that returns the " -"number of seconds in the duration. (Contributed by Brian Quinlan; " -":issue:`5788`.)" +"number of seconds in the duration. (Contributed by Brian Quinlan; :issue:" +"`5788`.)" msgstr "" "New method: the :mod:`datetime` module's :class:`~datetime.timedelta` class " "gained a :meth:`~datetime.timedelta.total_seconds` method that returns the " -"number of seconds in the duration. (Contributed by Brian Quinlan; " -":issue:`5788`.)" +"number of seconds in the duration. (Contributed by Brian Quinlan; :issue:" +"`5788`.)" #: ../../whatsnew/2.7.rst:1183 msgid "" -"New method: the :class:`~decimal.Decimal` class gained a " -":meth:`~decimal.Decimal.from_float` class method that performs an exact " -"conversion of a floating-point number to a :class:`~decimal.Decimal`. This " -"exact conversion strives for the closest decimal approximation to the " -"floating-point representation's value; the resulting decimal value will " -"therefore still include the inaccuracy, if any. For example, " -"``Decimal.from_float(0.1)`` returns " +"New method: the :class:`~decimal.Decimal` class gained a :meth:`~decimal." +"Decimal.from_float` class method that performs an exact conversion of a " +"floating-point number to a :class:`~decimal.Decimal`. This exact conversion " +"strives for the closest decimal approximation to the floating-point " +"representation's value; the resulting decimal value will therefore still " +"include the inaccuracy, if any. For example, ``Decimal.from_float(0.1)`` " +"returns " "``Decimal('0.1000000000000000055511151231257827021181583404541015625')``. " "(Implemented by Raymond Hettinger; :issue:`4796`.)" msgstr "" -"New method: the :class:`~decimal.Decimal` class gained a " -":meth:`~decimal.Decimal.from_float` class method that performs an exact " -"conversion of a floating-point number to a :class:`~decimal.Decimal`. This " -"exact conversion strives for the closest decimal approximation to the " -"floating-point representation's value; the resulting decimal value will " -"therefore still include the inaccuracy, if any. For example, " -"``Decimal.from_float(0.1)`` returns " +"New method: the :class:`~decimal.Decimal` class gained a :meth:`~decimal." +"Decimal.from_float` class method that performs an exact conversion of a " +"floating-point number to a :class:`~decimal.Decimal`. This exact conversion " +"strives for the closest decimal approximation to the floating-point " +"representation's value; the resulting decimal value will therefore still " +"include the inaccuracy, if any. For example, ``Decimal.from_float(0.1)`` " +"returns " "``Decimal('0.1000000000000000055511151231257827021181583404541015625')``. " "(Implemented by Raymond Hettinger; :issue:`4796`.)" #: ../../whatsnew/2.7.rst:1194 msgid "" -"Comparing instances of :class:`~decimal.Decimal` with floating-point numbers" -" now produces sensible results based on the numeric values of the operands." -" Previously such comparisons would fall back to Python's default rules for " +"Comparing instances of :class:`~decimal.Decimal` with floating-point numbers " +"now produces sensible results based on the numeric values of the operands. " +"Previously such comparisons would fall back to Python's default rules for " "comparing objects, which produced arbitrary results based on their type. " "Note that you still cannot combine :class:`Decimal` and floating-point in " "other operations such as addition, since you should be explicitly choosing " "how to convert between float and :class:`~decimal.Decimal`. (Fixed by Mark " "Dickinson; :issue:`2531`.)" msgstr "" -"Comparing instances of :class:`~decimal.Decimal` with floating-point numbers" -" now produces sensible results based on the numeric values of the operands." -" Previously such comparisons would fall back to Python's default rules for " +"Comparing instances of :class:`~decimal.Decimal` with floating-point numbers " +"now produces sensible results based on the numeric values of the operands. " +"Previously such comparisons would fall back to Python's default rules for " "comparing objects, which produced arbitrary results based on their type. " "Note that you still cannot combine :class:`Decimal` and floating-point in " "other operations such as addition, since you should be explicitly choosing " @@ -1782,52 +1764,50 @@ msgstr "" #: ../../whatsnew/2.7.rst:1203 msgid "" "The constructor for :class:`~decimal.Decimal` now accepts floating-point " -"numbers (added by Raymond Hettinger; :issue:`8257`) and non-European Unicode" -" characters such as Arabic-Indic digits (contributed by Mark Dickinson; " -":issue:`6595`)." +"numbers (added by Raymond Hettinger; :issue:`8257`) and non-European Unicode " +"characters such as Arabic-Indic digits (contributed by Mark Dickinson; :" +"issue:`6595`)." msgstr "" "The constructor for :class:`~decimal.Decimal` now accepts floating-point " -"numbers (added by Raymond Hettinger; :issue:`8257`) and non-European Unicode" -" characters such as Arabic-Indic digits (contributed by Mark Dickinson; " -":issue:`6595`)." +"numbers (added by Raymond Hettinger; :issue:`8257`) and non-European Unicode " +"characters such as Arabic-Indic digits (contributed by Mark Dickinson; :" +"issue:`6595`)." #: ../../whatsnew/2.7.rst:1208 msgid "" "Most of the methods of the :class:`~decimal.Context` class now accept " -"integers as well as :class:`~decimal.Decimal` instances; the only exceptions" -" are the :meth:`~decimal.Context.canonical` and " -":meth:`~decimal.Context.is_canonical` methods. (Patch by Juan José Conti; " -":issue:`7633`.)" +"integers as well as :class:`~decimal.Decimal` instances; the only exceptions " +"are the :meth:`~decimal.Context.canonical` and :meth:`~decimal.Context." +"is_canonical` methods. (Patch by Juan José Conti; :issue:`7633`.)" msgstr "" "Most of the methods of the :class:`~decimal.Context` class now accept " -"integers as well as :class:`~decimal.Decimal` instances; the only exceptions" -" are the :meth:`~decimal.Context.canonical` and " -":meth:`~decimal.Context.is_canonical` methods. (Patch by Juan José Conti; " -":issue:`7633`.)" +"integers as well as :class:`~decimal.Decimal` instances; the only exceptions " +"are the :meth:`~decimal.Context.canonical` and :meth:`~decimal.Context." +"is_canonical` methods. (Patch by Juan José Conti; :issue:`7633`.)" #: ../../whatsnew/2.7.rst:1213 msgid "" -"When using :class:`~decimal.Decimal` instances with a string's " -":meth:`~str.format` method, the default alignment was previously left-" -"alignment. This has been changed to right-alignment, which is more sensible" -" for numeric types. (Changed by Mark Dickinson; :issue:`6857`.)" +"When using :class:`~decimal.Decimal` instances with a string's :meth:`~str." +"format` method, the default alignment was previously left-alignment. This " +"has been changed to right-alignment, which is more sensible for numeric " +"types. (Changed by Mark Dickinson; :issue:`6857`.)" msgstr "" -"When using :class:`~decimal.Decimal` instances with a string's " -":meth:`~str.format` method, the default alignment was previously left-" -"alignment. This has been changed to right-alignment, which is more sensible" -" for numeric types. (Changed by Mark Dickinson; :issue:`6857`.)" +"When using :class:`~decimal.Decimal` instances with a string's :meth:`~str." +"format` method, the default alignment was previously left-alignment. This " +"has been changed to right-alignment, which is more sensible for numeric " +"types. (Changed by Mark Dickinson; :issue:`6857`.)" #: ../../whatsnew/2.7.rst:1218 msgid "" -"Comparisons involving a signaling NaN value (or ``sNAN``) now signal " -":const:`InvalidOperation` instead of silently returning a true or false " -"value depending on the comparison operator. Quiet NaN values (or ``NaN``) " -"are now hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" +"Comparisons involving a signaling NaN value (or ``sNAN``) now signal :const:" +"`InvalidOperation` instead of silently returning a true or false value " +"depending on the comparison operator. Quiet NaN values (or ``NaN``) are now " +"hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" msgstr "" -"Comparisons involving a signaling NaN value (or ``sNAN``) now signal " -":const:`InvalidOperation` instead of silently returning a true or false " -"value depending on the comparison operator. Quiet NaN values (or ``NaN``) " -"are now hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" +"Comparisons involving a signaling NaN value (or ``sNAN``) now signal :const:" +"`InvalidOperation` instead of silently returning a true or false value " +"depending on the comparison operator. Quiet NaN values (or ``NaN``) are now " +"hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" #: ../../whatsnew/2.7.rst:1224 msgid "" @@ -1856,36 +1836,36 @@ msgstr "" #: ../../whatsnew/2.7.rst:1236 msgid "" "The :mod:`doctest` module's :const:`IGNORE_EXCEPTION_DETAIL` flag will now " -"ignore the name of the module containing the exception being tested. (Patch" -" by Lennart Regebro; :issue:`7490`.)" +"ignore the name of the module containing the exception being tested. (Patch " +"by Lennart Regebro; :issue:`7490`.)" msgstr "" "The :mod:`doctest` module's :const:`IGNORE_EXCEPTION_DETAIL` flag will now " -"ignore the name of the module containing the exception being tested. (Patch" -" by Lennart Regebro; :issue:`7490`.)" +"ignore the name of the module containing the exception being tested. (Patch " +"by Lennart Regebro; :issue:`7490`.)" #: ../../whatsnew/2.7.rst:1240 msgid "" "The :mod:`email` module's :class:`~email.message.Message` class will now " -"accept a Unicode-valued payload, automatically converting the payload to the" -" encoding specified by :attr:`output_charset`. (Added by R. David Murray; " -":issue:`1368247`.)" +"accept a Unicode-valued payload, automatically converting the payload to the " +"encoding specified by :attr:`output_charset`. (Added by R. David Murray; :" +"issue:`1368247`.)" msgstr "" "The :mod:`email` module's :class:`~email.message.Message` class will now " -"accept a Unicode-valued payload, automatically converting the payload to the" -" encoding specified by :attr:`output_charset`. (Added by R. David Murray; " -":issue:`1368247`.)" +"accept a Unicode-valued payload, automatically converting the payload to the " +"encoding specified by :attr:`output_charset`. (Added by R. David Murray; :" +"issue:`1368247`.)" #: ../../whatsnew/2.7.rst:1245 msgid "" -"The :class:`~fractions.Fraction` class now accepts a single float or " -":class:`~decimal.Decimal` instance, or two rational numbers, as arguments to" -" its constructor. (Implemented by Mark Dickinson; rationals added in " -":issue:`5812`, and float/decimal in :issue:`8294`.)" +"The :class:`~fractions.Fraction` class now accepts a single float or :class:" +"`~decimal.Decimal` instance, or two rational numbers, as arguments to its " +"constructor. (Implemented by Mark Dickinson; rationals added in :issue:" +"`5812`, and float/decimal in :issue:`8294`.)" msgstr "" -"The :class:`~fractions.Fraction` class now accepts a single float or " -":class:`~decimal.Decimal` instance, or two rational numbers, as arguments to" -" its constructor. (Implemented by Mark Dickinson; rationals added in " -":issue:`5812`, and float/decimal in :issue:`8294`.)" +"The :class:`~fractions.Fraction` class now accepts a single float or :class:" +"`~decimal.Decimal` instance, or two rational numbers, as arguments to its " +"constructor. (Implemented by Mark Dickinson; rationals added in :issue:" +"`5812`, and float/decimal in :issue:`8294`.)" #: ../../whatsnew/2.7.rst:1251 msgid "" @@ -1901,55 +1881,55 @@ msgstr "" msgid "" "New class: :class:`~ftplib.FTP_TLS` in the :mod:`ftplib` module provides " "secure FTP connections using TLS encapsulation of authentication as well as " -"subsequent control and data transfers. (Contributed by Giampaolo Rodola; " -":issue:`2054`.)" +"subsequent control and data transfers. (Contributed by Giampaolo Rodola; :" +"issue:`2054`.)" msgstr "" "New class: :class:`~ftplib.FTP_TLS` in the :mod:`ftplib` module provides " "secure FTP connections using TLS encapsulation of authentication as well as " -"subsequent control and data transfers. (Contributed by Giampaolo Rodola; " -":issue:`2054`.)" +"subsequent control and data transfers. (Contributed by Giampaolo Rodola; :" +"issue:`2054`.)" #: ../../whatsnew/2.7.rst:1264 msgid "" -"The :meth:`~ftplib.FTP.storbinary` method for binary uploads can now restart" -" uploads thanks to an added *rest* parameter (patch by Pablo Mouzo; " -":issue:`6845`.)" +"The :meth:`~ftplib.FTP.storbinary` method for binary uploads can now restart " +"uploads thanks to an added *rest* parameter (patch by Pablo Mouzo; :issue:" +"`6845`.)" msgstr "" -"The :meth:`~ftplib.FTP.storbinary` method for binary uploads can now restart" -" uploads thanks to an added *rest* parameter (patch by Pablo Mouzo; " -":issue:`6845`.)" +"The :meth:`~ftplib.FTP.storbinary` method for binary uploads can now restart " +"uploads thanks to an added *rest* parameter (patch by Pablo Mouzo; :issue:" +"`6845`.)" #: ../../whatsnew/2.7.rst:1268 msgid "" -"New class decorator: :func:`~functools.total_ordering` in the " -":mod:`functools` module takes a class that defines an :meth:`__eq__` method " -"and one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, or " -":meth:`__ge__`, and generates the missing comparison methods. Since the " -":meth:`__cmp__` method is being deprecated in Python 3.x, this decorator " -"makes it easier to define ordered classes. (Added by Raymond Hettinger; " -":issue:`5479`.)" -msgstr "" -"New class decorator: :func:`~functools.total_ordering` in the " -":mod:`functools` module takes a class that defines an :meth:`__eq__` method " -"and one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, or " -":meth:`__ge__`, and generates the missing comparison methods. Since the " -":meth:`__cmp__` method is being deprecated in Python 3.x, this decorator " -"makes it easier to define ordered classes. (Added by Raymond Hettinger; " -":issue:`5479`.)" +"New class decorator: :func:`~functools.total_ordering` in the :mod:" +"`functools` module takes a class that defines an :meth:`__eq__` method and " +"one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, or :meth:`__ge__`, " +"and generates the missing comparison methods. Since the :meth:`__cmp__` " +"method is being deprecated in Python 3.x, this decorator makes it easier to " +"define ordered classes. (Added by Raymond Hettinger; :issue:`5479`.)" +msgstr "" +"New class decorator: :func:`~functools.total_ordering` in the :mod:" +"`functools` module takes a class that defines an :meth:`__eq__` method and " +"one of :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, or :meth:`__ge__`, " +"and generates the missing comparison methods. Since the :meth:`__cmp__` " +"method is being deprecated in Python 3.x, this decorator makes it easier to " +"define ordered classes. (Added by Raymond Hettinger; :issue:`5479`.)" #: ../../whatsnew/2.7.rst:1276 msgid "" "New function: :func:`~functools.cmp_to_key` will take an old-style " "comparison function that expects two arguments and return a new callable " -"that can be used as the *key* parameter to functions such as :func:`sorted`," -" :func:`min` and :func:`max`, etc. The primary intended use is to help with" -" making code compatible with Python 3.x. (Added by Raymond Hettinger.)" +"that can be used as the *key* parameter to functions such as :func:" +"`sorted`, :func:`min` and :func:`max`, etc. The primary intended use is to " +"help with making code compatible with Python 3.x. (Added by Raymond " +"Hettinger.)" msgstr "" "New function: :func:`~functools.cmp_to_key` will take an old-style " "comparison function that expects two arguments and return a new callable " -"that can be used as the *key* parameter to functions such as :func:`sorted`," -" :func:`min` and :func:`max`, etc. The primary intended use is to help with" -" making code compatible with Python 3.x. (Added by Raymond Hettinger.)" +"that can be used as the *key* parameter to functions such as :func:" +"`sorted`, :func:`min` and :func:`max`, etc. The primary intended use is to " +"help with making code compatible with Python 3.x. (Added by Raymond " +"Hettinger.)" #: ../../whatsnew/2.7.rst:1283 msgid "" @@ -1965,45 +1945,43 @@ msgstr "" msgid "" "The :mod:`gzip` module's :class:`~gzip.GzipFile` now supports the context " "management protocol, so you can write ``with gzip.GzipFile(...) as f:`` " -"(contributed by Hagen Fürstenau; :issue:`3860`), and it now implements the " -":class:`io.BufferedIOBase` ABC, so you can wrap it with " -":class:`io.BufferedReader` for faster processing (contributed by Nir Aides; " -":issue:`7471`). It's also now possible to override the modification time " -"recorded in a gzipped file by providing an optional timestamp to the " -"constructor. (Contributed by Jacques Frechet; :issue:`4272`.)" +"(contributed by Hagen Fürstenau; :issue:`3860`), and it now implements the :" +"class:`io.BufferedIOBase` ABC, so you can wrap it with :class:`io." +"BufferedReader` for faster processing (contributed by Nir Aides; :issue:" +"`7471`). It's also now possible to override the modification time recorded " +"in a gzipped file by providing an optional timestamp to the constructor. " +"(Contributed by Jacques Frechet; :issue:`4272`.)" msgstr "" "The :mod:`gzip` module's :class:`~gzip.GzipFile` now supports the context " "management protocol, so you can write ``with gzip.GzipFile(...) as f:`` " -"(contributed by Hagen Fürstenau; :issue:`3860`), and it now implements the " -":class:`io.BufferedIOBase` ABC, so you can wrap it with " -":class:`io.BufferedReader` for faster processing (contributed by Nir Aides; " -":issue:`7471`). It's also now possible to override the modification time " -"recorded in a gzipped file by providing an optional timestamp to the " -"constructor. (Contributed by Jacques Frechet; :issue:`4272`.)" +"(contributed by Hagen Fürstenau; :issue:`3860`), and it now implements the :" +"class:`io.BufferedIOBase` ABC, so you can wrap it with :class:`io." +"BufferedReader` for faster processing (contributed by Nir Aides; :issue:" +"`7471`). It's also now possible to override the modification time recorded " +"in a gzipped file by providing an optional timestamp to the constructor. " +"(Contributed by Jacques Frechet; :issue:`4272`.)" #: ../../whatsnew/2.7.rst:1297 msgid "" -"Files in gzip format can be padded with trailing zero bytes; the :mod:`gzip`" -" module will now consume these trailing bytes. (Fixed by Tadek Pietraszek " +"Files in gzip format can be padded with trailing zero bytes; the :mod:`gzip` " +"module will now consume these trailing bytes. (Fixed by Tadek Pietraszek " "and Brian Curtin; :issue:`2846`.)" msgstr "" -"Files in gzip format can be padded with trailing zero bytes; the :mod:`gzip`" -" module will now consume these trailing bytes. (Fixed by Tadek Pietraszek " +"Files in gzip format can be padded with trailing zero bytes; the :mod:`gzip` " +"module will now consume these trailing bytes. (Fixed by Tadek Pietraszek " "and Brian Curtin; :issue:`2846`.)" #: ../../whatsnew/2.7.rst:1301 msgid "" -"New attribute: the :mod:`hashlib` module now has an " -":attr:`~hashlib.hashlib.algorithms` attribute containing a tuple naming the " -"supported algorithms. In Python 2.7, ``hashlib.algorithms`` contains " -"``('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')``. (Contributed by" -" Carl Chenet; :issue:`7418`.)" +"New attribute: the :mod:`hashlib` module now has an :attr:`~hashlib.hashlib." +"algorithms` attribute containing a tuple naming the supported algorithms. In " +"Python 2.7, ``hashlib.algorithms`` contains ``('md5', 'sha1', 'sha224', " +"'sha256', 'sha384', 'sha512')``. (Contributed by Carl Chenet; :issue:`7418`.)" msgstr "" -"New attribute: the :mod:`hashlib` module now has an " -":attr:`~hashlib.hashlib.algorithms` attribute containing a tuple naming the " -"supported algorithms. In Python 2.7, ``hashlib.algorithms`` contains " -"``('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')``. (Contributed by" -" Carl Chenet; :issue:`7418`.)" +"New attribute: the :mod:`hashlib` module now has an :attr:`~hashlib.hashlib." +"algorithms` attribute containing a tuple naming the supported algorithms. In " +"Python 2.7, ``hashlib.algorithms`` contains ``('md5', 'sha1', 'sha224', " +"'sha256', 'sha384', 'sha512')``. (Contributed by Carl Chenet; :issue:`7418`.)" #: ../../whatsnew/2.7.rst:1307 msgid "" @@ -2018,44 +1996,44 @@ msgstr "" #: ../../whatsnew/2.7.rst:1311 msgid "" "The :class:`~httplib.HTTPConnection` and :class:`~httplib.HTTPSConnection` " -"classes now support a *source_address* parameter, a ``(host, port)`` 2-tuple" -" giving the source address that will be used for the connection. " -"(Contributed by Eldon Ziegler; :issue:`3972`.)" +"classes now support a *source_address* parameter, a ``(host, port)`` 2-tuple " +"giving the source address that will be used for the connection. (Contributed " +"by Eldon Ziegler; :issue:`3972`.)" msgstr "" "The :class:`~httplib.HTTPConnection` and :class:`~httplib.HTTPSConnection` " -"classes now support a *source_address* parameter, a ``(host, port)`` 2-tuple" -" giving the source address that will be used for the connection. " -"(Contributed by Eldon Ziegler; :issue:`3972`.)" +"classes now support a *source_address* parameter, a ``(host, port)`` 2-tuple " +"giving the source address that will be used for the connection. (Contributed " +"by Eldon Ziegler; :issue:`3972`.)" #: ../../whatsnew/2.7.rst:1316 msgid "" -"The :mod:`ihooks` module now supports relative imports. Note that " -":mod:`ihooks` is an older module for customizing imports, superseded by the " -":mod:`imputil` module added in Python 2.0. (Relative import support added by" -" Neil Schemenauer.)" +"The :mod:`ihooks` module now supports relative imports. Note that :mod:" +"`ihooks` is an older module for customizing imports, superseded by the :mod:" +"`imputil` module added in Python 2.0. (Relative import support added by Neil " +"Schemenauer.)" msgstr "" -"The :mod:`ihooks` module now supports relative imports. Note that " -":mod:`ihooks` is an older module for customizing imports, superseded by the " -":mod:`imputil` module added in Python 2.0. (Relative import support added by" -" Neil Schemenauer.)" +"The :mod:`ihooks` module now supports relative imports. Note that :mod:" +"`ihooks` is an older module for customizing imports, superseded by the :mod:" +"`imputil` module added in Python 2.0. (Relative import support added by Neil " +"Schemenauer.)" #: ../../whatsnew/2.7.rst:1323 msgid "" -"The :mod:`imaplib` module now supports IPv6 addresses. (Contributed by Derek" -" Morr; :issue:`1655`.)" +"The :mod:`imaplib` module now supports IPv6 addresses. (Contributed by Derek " +"Morr; :issue:`1655`.)" msgstr "" -"The :mod:`imaplib` module now supports IPv6 addresses. (Contributed by Derek" -" Morr; :issue:`1655`.)" +"The :mod:`imaplib` module now supports IPv6 addresses. (Contributed by Derek " +"Morr; :issue:`1655`.)" #: ../../whatsnew/2.7.rst:1326 msgid "" -"New function: the :mod:`inspect` module's :func:`~inspect.getcallargs` takes" -" a callable and its positional and keyword arguments, and figures out which " +"New function: the :mod:`inspect` module's :func:`~inspect.getcallargs` takes " +"a callable and its positional and keyword arguments, and figures out which " "of the callable's parameters will receive each argument, returning a " "dictionary mapping argument names to their values. For example::" msgstr "" -"New function: the :mod:`inspect` module's :func:`~inspect.getcallargs` takes" -" a callable and its positional and keyword arguments, and figures out which " +"New function: the :mod:`inspect` module's :func:`~inspect.getcallargs` takes " +"a callable and its positional and keyword arguments, and figures out which " "of the callable's parameters will receive each argument, returning a " "dictionary mapping argument names to their values. For example::" @@ -2066,48 +2044,48 @@ msgstr "Contributed by George Sakkis; :issue:`3135`." #: ../../whatsnew/2.7.rst:1345 msgid "" "Updated module: The :mod:`io` library has been upgraded to the version " -"shipped with Python 3.1. For 3.1, the I/O library was entirely rewritten in" -" C and is 2 to 20 times faster depending on the task being performed. The " +"shipped with Python 3.1. For 3.1, the I/O library was entirely rewritten in " +"C and is 2 to 20 times faster depending on the task being performed. The " "original Python version was renamed to the :mod:`_pyio` module." msgstr "" "Updated module: The :mod:`io` library has been upgraded to the version " -"shipped with Python 3.1. For 3.1, the I/O library was entirely rewritten in" -" C and is 2 to 20 times faster depending on the task being performed. The " +"shipped with Python 3.1. For 3.1, the I/O library was entirely rewritten in " +"C and is 2 to 20 times faster depending on the task being performed. The " "original Python version was renamed to the :mod:`_pyio` module." #: ../../whatsnew/2.7.rst:1350 msgid "" -"One minor resulting change: the :class:`io.TextIOBase` class now has an " -":attr:`errors` attribute giving the error setting used for encoding and " +"One minor resulting change: the :class:`io.TextIOBase` class now has an :" +"attr:`errors` attribute giving the error setting used for encoding and " "decoding errors (one of ``'strict'``, ``'replace'``, ``'ignore'``)." msgstr "" -"One minor resulting change: the :class:`io.TextIOBase` class now has an " -":attr:`errors` attribute giving the error setting used for encoding and " +"One minor resulting change: the :class:`io.TextIOBase` class now has an :" +"attr:`errors` attribute giving the error setting used for encoding and " "decoding errors (one of ``'strict'``, ``'replace'``, ``'ignore'``)." #: ../../whatsnew/2.7.rst:1355 msgid "" "The :class:`io.FileIO` class now raises an :exc:`OSError` when passed an " -"invalid file descriptor. (Implemented by Benjamin Peterson; :issue:`4991`.)" -" The :meth:`~io.IOBase.truncate` method now preserves the file position; " -"previously it would change the file position to the end of the new file. " -"(Fixed by Pascal Chambon; :issue:`6939`.)" +"invalid file descriptor. (Implemented by Benjamin Peterson; :issue:" +"`4991`.) The :meth:`~io.IOBase.truncate` method now preserves the file " +"position; previously it would change the file position to the end of the new " +"file. (Fixed by Pascal Chambon; :issue:`6939`.)" msgstr "" "The :class:`io.FileIO` class now raises an :exc:`OSError` when passed an " -"invalid file descriptor. (Implemented by Benjamin Peterson; :issue:`4991`.)" -" The :meth:`~io.IOBase.truncate` method now preserves the file position; " -"previously it would change the file position to the end of the new file. " -"(Fixed by Pascal Chambon; :issue:`6939`.)" +"invalid file descriptor. (Implemented by Benjamin Peterson; :issue:" +"`4991`.) The :meth:`~io.IOBase.truncate` method now preserves the file " +"position; previously it would change the file position to the end of the new " +"file. (Fixed by Pascal Chambon; :issue:`6939`.)" #: ../../whatsnew/2.7.rst:1361 msgid "" "New function: ``itertools.compress(data, selectors)`` takes two iterators. " -"Elements of *data* are returned if the corresponding value in *selectors* is" -" true::" +"Elements of *data* are returned if the corresponding value in *selectors* is " +"true::" msgstr "" "New function: ``itertools.compress(data, selectors)`` takes two iterators. " -"Elements of *data* are returned if the corresponding value in *selectors* is" -" true::" +"Elements of *data* are returned if the corresponding value in *selectors* is " +"true::" #: ../../whatsnew/2.7.rst:1370 msgid "" @@ -2133,27 +2111,27 @@ msgstr "" msgid "" "The :func:`itertools.count` function now has a *step* argument that allows " "incrementing by values other than 1. :func:`~itertools.count` also now " -"allows keyword arguments, and using non-integer values such as floats or " -":class:`~decimal.Decimal` instances. (Implemented by Raymond Hettinger; " -":issue:`5032`.)" +"allows keyword arguments, and using non-integer values such as floats or :" +"class:`~decimal.Decimal` instances. (Implemented by Raymond Hettinger; :" +"issue:`5032`.)" msgstr "" "The :func:`itertools.count` function now has a *step* argument that allows " "incrementing by values other than 1. :func:`~itertools.count` also now " -"allows keyword arguments, and using non-integer values such as floats or " -":class:`~decimal.Decimal` instances. (Implemented by Raymond Hettinger; " -":issue:`5032`.)" +"allows keyword arguments, and using non-integer values such as floats or :" +"class:`~decimal.Decimal` instances. (Implemented by Raymond Hettinger; :" +"issue:`5032`.)" #: ../../whatsnew/2.7.rst:1388 msgid "" ":func:`itertools.combinations` and :func:`itertools.product` previously " "raised :exc:`ValueError` for values of *r* larger than the input iterable. " -"This was deemed a specification error, so they now return an empty iterator." -" (Fixed by Raymond Hettinger; :issue:`4816`.)" +"This was deemed a specification error, so they now return an empty " +"iterator. (Fixed by Raymond Hettinger; :issue:`4816`.)" msgstr "" ":func:`itertools.combinations` and :func:`itertools.product` previously " "raised :exc:`ValueError` for values of *r* larger than the input iterable. " -"This was deemed a specification error, so they now return an empty iterator." -" (Fixed by Raymond Hettinger; :issue:`4816`.)" +"This was deemed a specification error, so they now return an empty " +"iterator. (Fixed by Raymond Hettinger; :issue:`4816`.)" #: ../../whatsnew/2.7.rst:1393 msgid "" @@ -2193,21 +2171,21 @@ msgstr "" #: ../../whatsnew/2.7.rst:1409 msgid "" -"New functions: the :mod:`math` module gained :func:`~math.erf` and " -":func:`~math.erfc` for the error function and the complementary error " -"function, :func:`~math.expm1` which computes ``e**x - 1`` with more " -"precision than using :func:`~math.exp` and subtracting 1, " -":func:`~math.gamma` for the Gamma function, and :func:`~math.lgamma` for the" -" natural log of the Gamma function. (Contributed by Mark Dickinson and " -"nirinA raseliarison; :issue:`3366`.)" -msgstr "" -"New functions: the :mod:`math` module gained :func:`~math.erf` and " -":func:`~math.erfc` for the error function and the complementary error " -"function, :func:`~math.expm1` which computes ``e**x - 1`` with more " -"precision than using :func:`~math.exp` and subtracting 1, " -":func:`~math.gamma` for the Gamma function, and :func:`~math.lgamma` for the" -" natural log of the Gamma function. (Contributed by Mark Dickinson and " -"nirinA raseliarison; :issue:`3366`.)" +"New functions: the :mod:`math` module gained :func:`~math.erf` and :func:" +"`~math.erfc` for the error function and the complementary error function, :" +"func:`~math.expm1` which computes ``e**x - 1`` with more precision than " +"using :func:`~math.exp` and subtracting 1, :func:`~math.gamma` for the Gamma " +"function, and :func:`~math.lgamma` for the natural log of the Gamma " +"function. (Contributed by Mark Dickinson and nirinA raseliarison; :issue:" +"`3366`.)" +msgstr "" +"New functions: the :mod:`math` module gained :func:`~math.erf` and :func:" +"`~math.erfc` for the error function and the complementary error function, :" +"func:`~math.expm1` which computes ``e**x - 1`` with more precision than " +"using :func:`~math.exp` and subtracting 1, :func:`~math.gamma` for the Gamma " +"function, and :func:`~math.lgamma` for the natural log of the Gamma " +"function. (Contributed by Mark Dickinson and nirinA raseliarison; :issue:" +"`3366`.)" #: ../../whatsnew/2.7.rst:1417 msgid "" @@ -2226,70 +2204,66 @@ msgid "" "The :class:`~multiprocessing.Pool` class, which controls a pool of worker " "processes, now has an optional *maxtasksperchild* parameter. Worker " "processes will perform the specified number of tasks and then exit, causing " -"the :class:`~multiprocessing.Pool` to start a new worker. This is useful if" -" tasks may leak memory or other resources, or if some tasks will cause the " -"worker to become very large. (Contributed by Charles Cazabon; " -":issue:`6963`.)" +"the :class:`~multiprocessing.Pool` to start a new worker. This is useful if " +"tasks may leak memory or other resources, or if some tasks will cause the " +"worker to become very large. (Contributed by Charles Cazabon; :issue:`6963`.)" msgstr "" "The :class:`~multiprocessing.Pool` class, which controls a pool of worker " "processes, now has an optional *maxtasksperchild* parameter. Worker " "processes will perform the specified number of tasks and then exit, causing " -"the :class:`~multiprocessing.Pool` to start a new worker. This is useful if" -" tasks may leak memory or other resources, or if some tasks will cause the " -"worker to become very large. (Contributed by Charles Cazabon; " -":issue:`6963`.)" +"the :class:`~multiprocessing.Pool` to start a new worker. This is useful if " +"tasks may leak memory or other resources, or if some tasks will cause the " +"worker to become very large. (Contributed by Charles Cazabon; :issue:`6963`.)" #: ../../whatsnew/2.7.rst:1431 msgid "" -"The :mod:`nntplib` module now supports IPv6 addresses. (Contributed by Derek" -" Morr; :issue:`1664`.)" +"The :mod:`nntplib` module now supports IPv6 addresses. (Contributed by Derek " +"Morr; :issue:`1664`.)" msgstr "" -"The :mod:`nntplib` module now supports IPv6 addresses. (Contributed by Derek" -" Morr; :issue:`1664`.)" +"The :mod:`nntplib` module now supports IPv6 addresses. (Contributed by Derek " +"Morr; :issue:`1664`.)" #: ../../whatsnew/2.7.rst:1434 msgid "" -"New functions: the :mod:`os` module wraps the following POSIX system calls: " -":func:`~os.getresgid` and :func:`~os.getresuid`, which return the real, " -"effective, and saved GIDs and UIDs; :func:`~os.setresgid` and " -":func:`~os.setresuid`, which set real, effective, and saved GIDs and UIDs to" -" new values; :func:`~os.initgroups`, which initialize the group access list " -"for the current process. (GID/UID functions contributed by Travis H.; " -":issue:`6508`. Support for initgroups added by Jean-Paul Calderone; " -":issue:`7333`.)" -msgstr "" -"New functions: the :mod:`os` module wraps the following POSIX system calls: " -":func:`~os.getresgid` and :func:`~os.getresuid`, which return the real, " -"effective, and saved GIDs and UIDs; :func:`~os.setresgid` and " -":func:`~os.setresuid`, which set real, effective, and saved GIDs and UIDs to" -" new values; :func:`~os.initgroups`, which initialize the group access list " -"for the current process. (GID/UID functions contributed by Travis H.; " -":issue:`6508`. Support for initgroups added by Jean-Paul Calderone; " -":issue:`7333`.)" +"New functions: the :mod:`os` module wraps the following POSIX system calls: :" +"func:`~os.getresgid` and :func:`~os.getresuid`, which return the real, " +"effective, and saved GIDs and UIDs; :func:`~os.setresgid` and :func:`~os." +"setresuid`, which set real, effective, and saved GIDs and UIDs to new " +"values; :func:`~os.initgroups`, which initialize the group access list for " +"the current process. (GID/UID functions contributed by Travis H.; :issue:" +"`6508`. Support for initgroups added by Jean-Paul Calderone; :issue:`7333`.)" +msgstr "" +"New functions: the :mod:`os` module wraps the following POSIX system calls: :" +"func:`~os.getresgid` and :func:`~os.getresuid`, which return the real, " +"effective, and saved GIDs and UIDs; :func:`~os.setresgid` and :func:`~os." +"setresuid`, which set real, effective, and saved GIDs and UIDs to new " +"values; :func:`~os.initgroups`, which initialize the group access list for " +"the current process. (GID/UID functions contributed by Travis H.; :issue:" +"`6508`. Support for initgroups added by Jean-Paul Calderone; :issue:`7333`.)" #: ../../whatsnew/2.7.rst:1444 msgid "" -"The :func:`os.fork` function now re-initializes the import lock in the child" -" process; this fixes problems on Solaris when :func:`~os.fork` is called " -"from a thread. (Fixed by Zsolt Cserna; :issue:`7242`.)" +"The :func:`os.fork` function now re-initializes the import lock in the child " +"process; this fixes problems on Solaris when :func:`~os.fork` is called from " +"a thread. (Fixed by Zsolt Cserna; :issue:`7242`.)" msgstr "" -"The :func:`os.fork` function now re-initializes the import lock in the child" -" process; this fixes problems on Solaris when :func:`~os.fork` is called " -"from a thread. (Fixed by Zsolt Cserna; :issue:`7242`.)" +"The :func:`os.fork` function now re-initializes the import lock in the child " +"process; this fixes problems on Solaris when :func:`~os.fork` is called from " +"a thread. (Fixed by Zsolt Cserna; :issue:`7242`.)" #: ../../whatsnew/2.7.rst:1448 msgid "" -"In the :mod:`os.path` module, the :func:`~os.path.normpath` and " -":func:`~os.path.abspath` functions now preserve Unicode; if their input path" -" is a Unicode string, the return value is also a Unicode string. " -"(:meth:`~os.path.normpath` fixed by Matt Giuca in :issue:`5827`; " -":meth:`~os.path.abspath` fixed by Ezio Melotti in :issue:`3426`.)" +"In the :mod:`os.path` module, the :func:`~os.path.normpath` and :func:`~os." +"path.abspath` functions now preserve Unicode; if their input path is a " +"Unicode string, the return value is also a Unicode string. (:meth:`~os.path." +"normpath` fixed by Matt Giuca in :issue:`5827`; :meth:`~os.path.abspath` " +"fixed by Ezio Melotti in :issue:`3426`.)" msgstr "" -"In the :mod:`os.path` module, the :func:`~os.path.normpath` and " -":func:`~os.path.abspath` functions now preserve Unicode; if their input path" -" is a Unicode string, the return value is also a Unicode string. " -"(:meth:`~os.path.normpath` fixed by Matt Giuca in :issue:`5827`; " -":meth:`~os.path.abspath` fixed by Ezio Melotti in :issue:`3426`.)" +"In the :mod:`os.path` module, the :func:`~os.path.normpath` and :func:`~os." +"path.abspath` functions now preserve Unicode; if their input path is a " +"Unicode string, the return value is also a Unicode string. (:meth:`~os.path." +"normpath` fixed by Matt Giuca in :issue:`5827`; :meth:`~os.path.abspath` " +"fixed by Ezio Melotti in :issue:`3426`.)" #: ../../whatsnew/2.7.rst:1454 msgid "" @@ -2303,41 +2277,39 @@ msgstr "" #: ../../whatsnew/2.7.rst:1458 msgid "" -"The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and " -":func:`~re.subn` now accept an optional *flags* argument, for consistency " -"with the other functions in the module. (Added by Gregory P. Smith.)" +"The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re." +"subn` now accept an optional *flags* argument, for consistency with the " +"other functions in the module. (Added by Gregory P. Smith.)" msgstr "" -"The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and " -":func:`~re.subn` now accept an optional *flags* argument, for consistency " -"with the other functions in the module. (Added by Gregory P. Smith.)" +"The :mod:`re` module's :func:`~re.split`, :func:`~re.sub`, and :func:`~re." +"subn` now accept an optional *flags* argument, for consistency with the " +"other functions in the module. (Added by Gregory P. Smith.)" #: ../../whatsnew/2.7.rst:1462 msgid "" "New function: :func:`~runpy.run_path` in the :mod:`runpy` module will " -"execute the code at a provided *path* argument. *path* can be the path of a" -" Python source file (:file:`example.py`), a compiled bytecode file " -"(:file:`example.pyc`), a directory (:file:`./package/`), or a zip archive " -"(:file:`example.zip`). If a directory or zip path is provided, it will be " -"added to the front of ``sys.path`` and the module :mod:`__main__` will be " -"imported. It's expected that the directory or zip contains a " -":file:`__main__.py`; if it doesn't, some other :file:`__main__.py` might be " -"imported from a location later in ``sys.path``. This makes more of the " -"machinery of :mod:`runpy` available to scripts that want to mimic the way " -"Python's command line processes an explicit path name. (Added by Nick " -"Coghlan; :issue:`6816`.)" +"execute the code at a provided *path* argument. *path* can be the path of a " +"Python source file (:file:`example.py`), a compiled bytecode file (:file:" +"`example.pyc`), a directory (:file:`./package/`), or a zip archive (:file:" +"`example.zip`). If a directory or zip path is provided, it will be added to " +"the front of ``sys.path`` and the module :mod:`__main__` will be imported. " +"It's expected that the directory or zip contains a :file:`__main__.py`; if " +"it doesn't, some other :file:`__main__.py` might be imported from a location " +"later in ``sys.path``. This makes more of the machinery of :mod:`runpy` " +"available to scripts that want to mimic the way Python's command line " +"processes an explicit path name. (Added by Nick Coghlan; :issue:`6816`.)" msgstr "" "New function: :func:`~runpy.run_path` in the :mod:`runpy` module will " -"execute the code at a provided *path* argument. *path* can be the path of a" -" Python source file (:file:`example.py`), a compiled bytecode file " -"(:file:`example.pyc`), a directory (:file:`./package/`), or a zip archive " -"(:file:`example.zip`). If a directory or zip path is provided, it will be " -"added to the front of ``sys.path`` and the module :mod:`__main__` will be " -"imported. It's expected that the directory or zip contains a " -":file:`__main__.py`; if it doesn't, some other :file:`__main__.py` might be " -"imported from a location later in ``sys.path``. This makes more of the " -"machinery of :mod:`runpy` available to scripts that want to mimic the way " -"Python's command line processes an explicit path name. (Added by Nick " -"Coghlan; :issue:`6816`.)" +"execute the code at a provided *path* argument. *path* can be the path of a " +"Python source file (:file:`example.py`), a compiled bytecode file (:file:" +"`example.pyc`), a directory (:file:`./package/`), or a zip archive (:file:" +"`example.zip`). If a directory or zip path is provided, it will be added to " +"the front of ``sys.path`` and the module :mod:`__main__` will be imported. " +"It's expected that the directory or zip contains a :file:`__main__.py`; if " +"it doesn't, some other :file:`__main__.py` might be imported from a location " +"later in ``sys.path``. This makes more of the machinery of :mod:`runpy` " +"available to scripts that want to mimic the way Python's command line " +"processes an explicit path name. (Added by Nick Coghlan; :issue:`6816`.)" #: ../../whatsnew/2.7.rst:1476 msgid "" @@ -2356,106 +2328,104 @@ msgid "" ":mod:`shutil`'s :func:`~shutil.copyfile` and :func:`~shutil.copytree` " "functions now raise a :exc:`~shutil.SpecialFileError` exception when asked " "to copy a named pipe. Previously the code would treat named pipes like a " -"regular file by opening them for reading, and this would block indefinitely." -" (Fixed by Antoine Pitrou; :issue:`3002`.)" +"regular file by opening them for reading, and this would block " +"indefinitely. (Fixed by Antoine Pitrou; :issue:`3002`.)" msgstr "" ":mod:`shutil`'s :func:`~shutil.copyfile` and :func:`~shutil.copytree` " "functions now raise a :exc:`~shutil.SpecialFileError` exception when asked " "to copy a named pipe. Previously the code would treat named pipes like a " -"regular file by opening them for reading, and this would block indefinitely." -" (Fixed by Antoine Pitrou; :issue:`3002`.)" +"regular file by opening them for reading, and this would block " +"indefinitely. (Fixed by Antoine Pitrou; :issue:`3002`.)" #: ../../whatsnew/2.7.rst:1487 msgid "" "The :mod:`signal` module no longer re-installs the signal handler unless " "this is truly necessary, which fixes a bug that could make it impossible to " -"catch the EINTR signal robustly. (Fixed by Charles-Francois Natali; " -":issue:`8354`.)" +"catch the EINTR signal robustly. (Fixed by Charles-Francois Natali; :issue:" +"`8354`.)" msgstr "" "The :mod:`signal` module no longer re-installs the signal handler unless " "this is truly necessary, which fixes a bug that could make it impossible to " -"catch the EINTR signal robustly. (Fixed by Charles-Francois Natali; " -":issue:`8354`.)" +"catch the EINTR signal robustly. (Fixed by Charles-Francois Natali; :issue:" +"`8354`.)" #: ../../whatsnew/2.7.rst:1492 msgid "" -"New functions: in the :mod:`site` module, three new functions return various" -" site- and user-specific paths. :func:`~site.getsitepackages` returns a list" -" containing all global site-packages directories, " -":func:`~site.getusersitepackages` returns the path of the user's site-" -"packages directory, and :func:`~site.getuserbase` returns the value of the " -":envvar:`USER_BASE` environment variable, giving the path to a directory " -"that can be used to store data. (Contributed by Tarek Ziadé; :issue:`6693`.)" -msgstr "" -"New functions: in the :mod:`site` module, three new functions return various" -" site- and user-specific paths. :func:`~site.getsitepackages` returns a list" -" containing all global site-packages directories, " -":func:`~site.getusersitepackages` returns the path of the user's site-" -"packages directory, and :func:`~site.getuserbase` returns the value of the " -":envvar:`USER_BASE` environment variable, giving the path to a directory " -"that can be used to store data. (Contributed by Tarek Ziadé; :issue:`6693`.)" +"New functions: in the :mod:`site` module, three new functions return various " +"site- and user-specific paths. :func:`~site.getsitepackages` returns a list " +"containing all global site-packages directories, :func:`~site." +"getusersitepackages` returns the path of the user's site-packages directory, " +"and :func:`~site.getuserbase` returns the value of the :envvar:`USER_BASE` " +"environment variable, giving the path to a directory that can be used to " +"store data. (Contributed by Tarek Ziadé; :issue:`6693`.)" +msgstr "" +"New functions: in the :mod:`site` module, three new functions return various " +"site- and user-specific paths. :func:`~site.getsitepackages` returns a list " +"containing all global site-packages directories, :func:`~site." +"getusersitepackages` returns the path of the user's site-packages directory, " +"and :func:`~site.getuserbase` returns the value of the :envvar:`USER_BASE` " +"environment variable, giving the path to a directory that can be used to " +"store data. (Contributed by Tarek Ziadé; :issue:`6693`.)" #: ../../whatsnew/2.7.rst:1503 msgid "" -"The :mod:`site` module now reports exceptions occurring when the " -":mod:`sitecustomize` module is imported, and will no longer catch and " -"swallow the :exc:`KeyboardInterrupt` exception. (Fixed by Victor Stinner; " -":issue:`3137`.)" +"The :mod:`site` module now reports exceptions occurring when the :mod:" +"`sitecustomize` module is imported, and will no longer catch and swallow " +"the :exc:`KeyboardInterrupt` exception. (Fixed by Victor Stinner; :issue:" +"`3137`.)" msgstr "" -"The :mod:`site` module now reports exceptions occurring when the " -":mod:`sitecustomize` module is imported, and will no longer catch and " -"swallow the :exc:`KeyboardInterrupt` exception. (Fixed by Victor Stinner; " -":issue:`3137`.)" +"The :mod:`site` module now reports exceptions occurring when the :mod:" +"`sitecustomize` module is imported, and will no longer catch and swallow " +"the :exc:`KeyboardInterrupt` exception. (Fixed by Victor Stinner; :issue:" +"`3137`.)" #: ../../whatsnew/2.7.rst:1508 msgid "" "The :func:`~socket.create_connection` function gained a *source_address* " -"parameter, a ``(host, port)`` 2-tuple giving the source address that will be" -" used for the connection. (Contributed by Eldon Ziegler; :issue:`3972`.)" +"parameter, a ``(host, port)`` 2-tuple giving the source address that will be " +"used for the connection. (Contributed by Eldon Ziegler; :issue:`3972`.)" msgstr "" "The :func:`~socket.create_connection` function gained a *source_address* " -"parameter, a ``(host, port)`` 2-tuple giving the source address that will be" -" used for the connection. (Contributed by Eldon Ziegler; :issue:`3972`.)" +"parameter, a ``(host, port)`` 2-tuple giving the source address that will be " +"used for the connection. (Contributed by Eldon Ziegler; :issue:`3972`.)" #: ../../whatsnew/2.7.rst:1513 msgid "" -"The :meth:`~socket.socket.recv_into` and " -":meth:`~socket.socket.recvfrom_into` methods will now write into objects " -"that support the buffer API, most usefully the :class:`bytearray` and " -":class:`memoryview` objects. (Implemented by Antoine Pitrou; " -":issue:`8104`.)" +"The :meth:`~socket.socket.recv_into` and :meth:`~socket.socket." +"recvfrom_into` methods will now write into objects that support the buffer " +"API, most usefully the :class:`bytearray` and :class:`memoryview` objects. " +"(Implemented by Antoine Pitrou; :issue:`8104`.)" msgstr "" -"The :meth:`~socket.socket.recv_into` and " -":meth:`~socket.socket.recvfrom_into` methods will now write into objects " -"that support the buffer API, most usefully the :class:`bytearray` and " -":class:`memoryview` objects. (Implemented by Antoine Pitrou; " -":issue:`8104`.)" +"The :meth:`~socket.socket.recv_into` and :meth:`~socket.socket." +"recvfrom_into` methods will now write into objects that support the buffer " +"API, most usefully the :class:`bytearray` and :class:`memoryview` objects. " +"(Implemented by Antoine Pitrou; :issue:`8104`.)" #: ../../whatsnew/2.7.rst:1518 msgid "" "The :mod:`SocketServer` module's :class:`~SocketServer.TCPServer` class now " -"supports socket timeouts and disabling the Nagle algorithm. The " -":attr:`~SocketServer.TCPServer.disable_nagle_algorithm` class attribute " -"defaults to ``False``; if overridden to be true, new request connections " -"will have the TCP_NODELAY option set to prevent buffering many small sends " -"into a single TCP packet. The :attr:`~SocketServer.BaseServer.timeout` class" -" attribute can hold a timeout in seconds that will be applied to the request" -" socket; if no request is received within that time, " -":meth:`~SocketServer.BaseServer.handle_timeout` will be called and " -":meth:`~SocketServer.BaseServer.handle_request` will return. (Contributed by" -" Kristján Valur Jónsson; :issue:`6192` and :issue:`6267`.)" +"supports socket timeouts and disabling the Nagle algorithm. The :attr:" +"`~SocketServer.TCPServer.disable_nagle_algorithm` class attribute defaults " +"to ``False``; if overridden to be true, new request connections will have " +"the TCP_NODELAY option set to prevent buffering many small sends into a " +"single TCP packet. The :attr:`~SocketServer.BaseServer.timeout` class " +"attribute can hold a timeout in seconds that will be applied to the request " +"socket; if no request is received within that time, :meth:`~SocketServer." +"BaseServer.handle_timeout` will be called and :meth:`~SocketServer." +"BaseServer.handle_request` will return. (Contributed by Kristján Valur " +"Jónsson; :issue:`6192` and :issue:`6267`.)" msgstr "" "The :mod:`SocketServer` module's :class:`~SocketServer.TCPServer` class now " -"supports socket timeouts and disabling the Nagle algorithm. The " -":attr:`~SocketServer.TCPServer.disable_nagle_algorithm` class attribute " -"defaults to ``False``; if overridden to be true, new request connections " -"will have the TCP_NODELAY option set to prevent buffering many small sends " -"into a single TCP packet. The :attr:`~SocketServer.BaseServer.timeout` class" -" attribute can hold a timeout in seconds that will be applied to the request" -" socket; if no request is received within that time, " -":meth:`~SocketServer.BaseServer.handle_timeout` will be called and " -":meth:`~SocketServer.BaseServer.handle_request` will return. (Contributed by" -" Kristján Valur Jónsson; :issue:`6192` and :issue:`6267`.)" +"supports socket timeouts and disabling the Nagle algorithm. The :attr:" +"`~SocketServer.TCPServer.disable_nagle_algorithm` class attribute defaults " +"to ``False``; if overridden to be true, new request connections will have " +"the TCP_NODELAY option set to prevent buffering many small sends into a " +"single TCP packet. The :attr:`~SocketServer.BaseServer.timeout` class " +"attribute can hold a timeout in seconds that will be applied to the request " +"socket; if no request is received within that time, :meth:`~SocketServer." +"BaseServer.handle_timeout` will be called and :meth:`~SocketServer." +"BaseServer.handle_request` will return. (Contributed by Kristján Valur " +"Jónsson; :issue:`6192` and :issue:`6267`.)" #: ../../whatsnew/2.7.rst:1530 msgid "" @@ -2463,79 +2433,77 @@ msgid "" "of the `pysqlite package `__. Version " "2.6.0 includes a number of bugfixes, and adds the ability to load SQLite " "extensions from shared libraries. Call the ``enable_load_extension(True)`` " -"method to enable extensions, and then call " -":meth:`~sqlite3.Connection.load_extension` to load a particular shared " -"library. (Updated by Gerhard Häring.)" +"method to enable extensions, and then call :meth:`~sqlite3.Connection." +"load_extension` to load a particular shared library. (Updated by Gerhard " +"Häring.)" msgstr "" "Updated module: the :mod:`sqlite3` module has been updated to version 2.6.0 " "of the `pysqlite package `__. Version " "2.6.0 includes a number of bugfixes, and adds the ability to load SQLite " "extensions from shared libraries. Call the ``enable_load_extension(True)`` " -"method to enable extensions, and then call " -":meth:`~sqlite3.Connection.load_extension` to load a particular shared " -"library. (Updated by Gerhard Häring.)" +"method to enable extensions, and then call :meth:`~sqlite3.Connection." +"load_extension` to load a particular shared library. (Updated by Gerhard " +"Häring.)" #: ../../whatsnew/2.7.rst:1537 msgid "" "The :mod:`ssl` module's :class:`~ssl.SSLSocket` objects now support the " -"buffer API, which fixed a test suite failure (fix by Antoine Pitrou; " -":issue:`7133`) and automatically set OpenSSL's " -":c:macro:`SSL_MODE_AUTO_RETRY`, which will prevent an error code being " -"returned from :meth:`recv` operations that trigger an SSL renegotiation (fix" -" by Antoine Pitrou; :issue:`8222`)." +"buffer API, which fixed a test suite failure (fix by Antoine Pitrou; :issue:" +"`7133`) and automatically set OpenSSL's :c:macro:`SSL_MODE_AUTO_RETRY`, " +"which will prevent an error code being returned from :meth:`recv` operations " +"that trigger an SSL renegotiation (fix by Antoine Pitrou; :issue:`8222`)." msgstr "" "The :mod:`ssl` module's :class:`~ssl.SSLSocket` objects now support the " -"buffer API, which fixed a test suite failure (fix by Antoine Pitrou; " -":issue:`7133`) and automatically set OpenSSL's " -":c:macro:`SSL_MODE_AUTO_RETRY`, which will prevent an error code being " -"returned from :meth:`recv` operations that trigger an SSL renegotiation (fix" -" by Antoine Pitrou; :issue:`8222`)." +"buffer API, which fixed a test suite failure (fix by Antoine Pitrou; :issue:" +"`7133`) and automatically set OpenSSL's :c:macro:`SSL_MODE_AUTO_RETRY`, " +"which will prevent an error code being returned from :meth:`recv` operations " +"that trigger an SSL renegotiation (fix by Antoine Pitrou; :issue:`8222`)." #: ../../whatsnew/2.7.rst:1544 msgid "" "The :func:`ssl.wrap_socket` constructor function now takes a *ciphers* " "argument that's a string listing the encryption algorithms to be allowed; " -"the format of the string is described `in the OpenSSL documentation " -"`__. (Added by Antoine Pitrou; :issue:`8322`.)" +"the format of the string is described `in the OpenSSL documentation `__. " +"(Added by Antoine Pitrou; :issue:`8322`.)" msgstr "" #: ../../whatsnew/2.7.rst:1551 msgid "" "Another change makes the extension load all of OpenSSL's ciphers and digest " -"algorithms so that they're all available. Some SSL certificates couldn't be" -" verified, reporting an \"unknown algorithm\" error. (Reported by Beda " +"algorithms so that they're all available. Some SSL certificates couldn't be " +"verified, reporting an \"unknown algorithm\" error. (Reported by Beda " "Kosata, and fixed by Antoine Pitrou; :issue:`8484`.)" msgstr "" "Another change makes the extension load all of OpenSSL's ciphers and digest " -"algorithms so that they're all available. Some SSL certificates couldn't be" -" verified, reporting an \"unknown algorithm\" error. (Reported by Beda " +"algorithms so that they're all available. Some SSL certificates couldn't be " +"verified, reporting an \"unknown algorithm\" error. (Reported by Beda " "Kosata, and fixed by Antoine Pitrou; :issue:`8484`.)" #: ../../whatsnew/2.7.rst:1557 msgid "" -"The version of OpenSSL being used is now available as the module attributes " -":data:`ssl.OPENSSL_VERSION` (a string), :data:`ssl.OPENSSL_VERSION_INFO` (a " -"5-tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by " +"The version of OpenSSL being used is now available as the module attributes :" +"data:`ssl.OPENSSL_VERSION` (a string), :data:`ssl.OPENSSL_VERSION_INFO` (a 5-" +"tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by " "Antoine Pitrou; :issue:`8321`.)" msgstr "" -"The version of OpenSSL being used is now available as the module attributes " -":data:`ssl.OPENSSL_VERSION` (a string), :data:`ssl.OPENSSL_VERSION_INFO` (a " -"5-tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by " +"The version of OpenSSL being used is now available as the module attributes :" +"data:`ssl.OPENSSL_VERSION` (a string), :data:`ssl.OPENSSL_VERSION_INFO` (a 5-" +"tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by " "Antoine Pitrou; :issue:`8321`.)" #: ../../whatsnew/2.7.rst:1563 msgid "" -"The :mod:`struct` module will no longer silently ignore overflow errors when" -" a value is too large for a particular integer format code (one of " +"The :mod:`struct` module will no longer silently ignore overflow errors when " +"a value is too large for a particular integer format code (one of " "``bBhHiIlLqQ``); it now always raises a :exc:`struct.error` exception. " "(Changed by Mark Dickinson; :issue:`1523`.) The :func:`~struct.pack` " "function will also attempt to use :meth:`__index__` to convert and pack non-" "integers before trying the :meth:`__int__` method or reporting an error. " "(Changed by Mark Dickinson; :issue:`8300`.)" msgstr "" -"The :mod:`struct` module will no longer silently ignore overflow errors when" -" a value is too large for a particular integer format code (one of " +"The :mod:`struct` module will no longer silently ignore overflow errors when " +"a value is too large for a particular integer format code (one of " "``bBhHiIlLqQ``); it now always raises a :exc:`struct.error` exception. " "(Changed by Mark Dickinson; :issue:`1523`.) The :func:`~struct.pack` " "function will also attempt to use :meth:`__index__` to convert and pack non-" @@ -2544,17 +2512,15 @@ msgstr "" #: ../../whatsnew/2.7.rst:1572 msgid "" -"New function: the :mod:`subprocess` module's " -":func:`~subprocess.check_output` runs a command with a specified set of " -"arguments and returns the command's output as a string when the command runs" -" without error, or raises a :exc:`~subprocess.CalledProcessError` exception " -"otherwise." +"New function: the :mod:`subprocess` module's :func:`~subprocess." +"check_output` runs a command with a specified set of arguments and returns " +"the command's output as a string when the command runs without error, or " +"raises a :exc:`~subprocess.CalledProcessError` exception otherwise." msgstr "" -"New function: the :mod:`subprocess` module's " -":func:`~subprocess.check_output` runs a command with a specified set of " -"arguments and returns the command's output as a string when the command runs" -" without error, or raises a :exc:`~subprocess.CalledProcessError` exception " -"otherwise." +"New function: the :mod:`subprocess` module's :func:`~subprocess." +"check_output` runs a command with a specified set of arguments and returns " +"the command's output as a string when the command runs without error, or " +"raises a :exc:`~subprocess.CalledProcessError` exception otherwise." #: ../../whatsnew/2.7.rst:1587 msgid "(Contributed by Gregory P. Smith.)" @@ -2572,15 +2538,15 @@ msgstr "" #: ../../whatsnew/2.7.rst:1593 msgid "" -"New function: :func:`~symtable.Symbol.is_declared_global` in the " -":mod:`symtable` module returns true for variables that are explicitly " -"declared to be global, false for ones that are implicitly global. " -"(Contributed by Jeremy Hylton.)" +"New function: :func:`~symtable.Symbol.is_declared_global` in the :mod:" +"`symtable` module returns true for variables that are explicitly declared to " +"be global, false for ones that are implicitly global. (Contributed by Jeremy " +"Hylton.)" msgstr "" -"New function: :func:`~symtable.Symbol.is_declared_global` in the " -":mod:`symtable` module returns true for variables that are explicitly " -"declared to be global, false for ones that are implicitly global. " -"(Contributed by Jeremy Hylton.)" +"New function: :func:`~symtable.Symbol.is_declared_global` in the :mod:" +"`symtable` module returns true for variables that are explicitly declared to " +"be global, false for ones that are implicitly global. (Contributed by Jeremy " +"Hylton.)" #: ../../whatsnew/2.7.rst:1598 ../../whatsnew/2.7.rst:2496 msgid "" @@ -2594,39 +2560,39 @@ msgstr "" #: ../../whatsnew/2.7.rst:1602 msgid "" -"The ``sys.version_info`` value is now a named tuple, with attributes named " -":attr:`major`, :attr:`minor`, :attr:`micro`, :attr:`releaselevel`, and " -":attr:`serial`. (Contributed by Ross Light; :issue:`4285`.)" +"The ``sys.version_info`` value is now a named tuple, with attributes named :" +"attr:`major`, :attr:`minor`, :attr:`micro`, :attr:`releaselevel`, and :attr:" +"`serial`. (Contributed by Ross Light; :issue:`4285`.)" msgstr "" -"The ``sys.version_info`` value is now a named tuple, with attributes named " -":attr:`major`, :attr:`minor`, :attr:`micro`, :attr:`releaselevel`, and " -":attr:`serial`. (Contributed by Ross Light; :issue:`4285`.)" +"The ``sys.version_info`` value is now a named tuple, with attributes named :" +"attr:`major`, :attr:`minor`, :attr:`micro`, :attr:`releaselevel`, and :attr:" +"`serial`. (Contributed by Ross Light; :issue:`4285`.)" #: ../../whatsnew/2.7.rst:1607 msgid "" ":func:`sys.getwindowsversion` also returns a named tuple, with attributes " -"named :attr:`major`, :attr:`minor`, :attr:`build`, :attr:`platform`, " -":attr:`service_pack`, :attr:`service_pack_major`, " -":attr:`service_pack_minor`, :attr:`suite_mask`, and :attr:`product_type`. " -"(Contributed by Brian Curtin; :issue:`7766`.)" +"named :attr:`major`, :attr:`minor`, :attr:`build`, :attr:`platform`, :attr:" +"`service_pack`, :attr:`service_pack_major`, :attr:`service_pack_minor`, :" +"attr:`suite_mask`, and :attr:`product_type`. (Contributed by Brian Curtin; :" +"issue:`7766`.)" msgstr "" ":func:`sys.getwindowsversion` also returns a named tuple, with attributes " -"named :attr:`major`, :attr:`minor`, :attr:`build`, :attr:`platform`, " -":attr:`service_pack`, :attr:`service_pack_major`, " -":attr:`service_pack_minor`, :attr:`suite_mask`, and :attr:`product_type`. " -"(Contributed by Brian Curtin; :issue:`7766`.)" +"named :attr:`major`, :attr:`minor`, :attr:`build`, :attr:`platform`, :attr:" +"`service_pack`, :attr:`service_pack_major`, :attr:`service_pack_minor`, :" +"attr:`suite_mask`, and :attr:`product_type`. (Contributed by Brian Curtin; :" +"issue:`7766`.)" #: ../../whatsnew/2.7.rst:1613 ../../whatsnew/2.7.rst:2500 msgid "" -"The :mod:`tarfile` module's default error handling has changed, to no longer" -" suppress fatal errors. The default error level was previously 0, which " +"The :mod:`tarfile` module's default error handling has changed, to no longer " +"suppress fatal errors. The default error level was previously 0, which " "meant that errors would only result in a message being written to the debug " "log, but because the debug log is not activated by default, these errors go " "unnoticed. The default error level is now 1, which raises an exception if " "there's an error. (Changed by Lars Gustäbel; :issue:`7357`.)" msgstr "" -"The :mod:`tarfile` module's default error handling has changed, to no longer" -" suppress fatal errors. The default error level was previously 0, which " +"The :mod:`tarfile` module's default error handling has changed, to no longer " +"suppress fatal errors. The default error level was previously 0, which " "meant that errors would only result in a message being written to the debug " "log, but because the debug log is not activated by default, these errors go " "unnoticed. The default error level is now 1, which raises an exception if " @@ -2641,9 +2607,9 @@ msgid "" "added, and can modify and return it. If the callable returns ``None``, the " "file will be excluded from the resulting archive. This is more powerful " "than the existing *exclude* argument, which has therefore been deprecated. " -"(Added by Lars Gustäbel; :issue:`6856`.) The :class:`~tarfile.TarFile` class" -" also now supports the context management protocol. (Added by Lars Gustäbel;" -" :issue:`7232`.)" +"(Added by Lars Gustäbel; :issue:`6856`.) The :class:`~tarfile.TarFile` class " +"also now supports the context management protocol. (Added by Lars Gustäbel; :" +"issue:`7232`.)" msgstr "" ":mod:`tarfile` now supports filtering the :class:`~tarfile.TarInfo` objects " "being added to a tar file. When you call :meth:`~tarfile.TarFile.add`, you " @@ -2652,9 +2618,9 @@ msgstr "" "added, and can modify and return it. If the callable returns ``None``, the " "file will be excluded from the resulting archive. This is more powerful " "than the existing *exclude* argument, which has therefore been deprecated. " -"(Added by Lars Gustäbel; :issue:`6856`.) The :class:`~tarfile.TarFile` class" -" also now supports the context management protocol. (Added by Lars Gustäbel;" -" :issue:`7232`.)" +"(Added by Lars Gustäbel; :issue:`6856`.) The :class:`~tarfile.TarFile` class " +"also now supports the context management protocol. (Added by Lars Gustäbel; :" +"issue:`7232`.)" #: ../../whatsnew/2.7.rst:1633 msgid "" @@ -2662,29 +2628,29 @@ msgid "" "class now returns the internal flag on exit. This means the method will " "usually return true because :meth:`~threading.Event.wait` is supposed to " "block until the internal flag becomes true. The return value will only be " -"false if a timeout was provided and the operation timed out. (Contributed by" -" Tim Lesher; :issue:`1674032`.)" +"false if a timeout was provided and the operation timed out. (Contributed by " +"Tim Lesher; :issue:`1674032`.)" msgstr "" "The :meth:`~threading.Event.wait` method of the :class:`threading.Event` " "class now returns the internal flag on exit. This means the method will " "usually return true because :meth:`~threading.Event.wait` is supposed to " "block until the internal flag becomes true. The return value will only be " -"false if a timeout was provided and the operation timed out. (Contributed by" -" Tim Lesher; :issue:`1674032`.)" +"false if a timeout was provided and the operation timed out. (Contributed by " +"Tim Lesher; :issue:`1674032`.)" #: ../../whatsnew/2.7.rst:1640 msgid "" "The Unicode database provided by the :mod:`unicodedata` module is now used " "internally to determine which characters are numeric, whitespace, or " -"represent line breaks. The database also includes information from the " -":file:`Unihan.txt` data file (patch by Anders Chrigström and Amaury Forgeot " +"represent line breaks. The database also includes information from the :" +"file:`Unihan.txt` data file (patch by Anders Chrigström and Amaury Forgeot " "d'Arc; :issue:`1571184`) and has been updated to version 5.2.0 (updated by " "Florent Xicluna; :issue:`8024`)." msgstr "" "The Unicode database provided by the :mod:`unicodedata` module is now used " "internally to determine which characters are numeric, whitespace, or " -"represent line breaks. The database also includes information from the " -":file:`Unihan.txt` data file (patch by Anders Chrigström and Amaury Forgeot " +"represent line breaks. The database also includes information from the :" +"file:`Unihan.txt` data file (patch by Anders Chrigström and Amaury Forgeot " "d'Arc; :issue:`1571184`) and has been updated to version 5.2.0 (updated by " "Florent Xicluna; :issue:`8024`)." @@ -2752,44 +2718,44 @@ msgstr "" #: ../../whatsnew/2.7.rst:1697 msgid "" -"The XML-RPC client and server, provided by the :mod:`xmlrpclib` and " -":mod:`SimpleXMLRPCServer` modules, have improved performance by supporting " +"The XML-RPC client and server, provided by the :mod:`xmlrpclib` and :mod:" +"`SimpleXMLRPCServer` modules, have improved performance by supporting " "HTTP/1.1 keep-alive and by optionally using gzip encoding to compress the " -"XML being exchanged. The gzip compression is controlled by the " -":attr:`encode_threshold` attribute of :class:`SimpleXMLRPCRequestHandler`, " -"which contains a size in bytes; responses larger than this will be " -"compressed. (Contributed by Kristján Valur Jónsson; :issue:`6267`.)" +"XML being exchanged. The gzip compression is controlled by the :attr:" +"`encode_threshold` attribute of :class:`SimpleXMLRPCRequestHandler`, which " +"contains a size in bytes; responses larger than this will be compressed. " +"(Contributed by Kristján Valur Jónsson; :issue:`6267`.)" msgstr "" -"The XML-RPC client and server, provided by the :mod:`xmlrpclib` and " -":mod:`SimpleXMLRPCServer` modules, have improved performance by supporting " +"The XML-RPC client and server, provided by the :mod:`xmlrpclib` and :mod:" +"`SimpleXMLRPCServer` modules, have improved performance by supporting " "HTTP/1.1 keep-alive and by optionally using gzip encoding to compress the " -"XML being exchanged. The gzip compression is controlled by the " -":attr:`encode_threshold` attribute of :class:`SimpleXMLRPCRequestHandler`, " -"which contains a size in bytes; responses larger than this will be " -"compressed. (Contributed by Kristján Valur Jónsson; :issue:`6267`.)" +"XML being exchanged. The gzip compression is controlled by the :attr:" +"`encode_threshold` attribute of :class:`SimpleXMLRPCRequestHandler`, which " +"contains a size in bytes; responses larger than this will be compressed. " +"(Contributed by Kristján Valur Jónsson; :issue:`6267`.)" #: ../../whatsnew/2.7.rst:1706 msgid "" "The :mod:`zipfile` module's :class:`~zipfile.ZipFile` now supports the " -"context management protocol, so you can write ``with zipfile.ZipFile(...) as" -" f:``. (Contributed by Brian Curtin; :issue:`5511`.)" +"context management protocol, so you can write ``with zipfile.ZipFile(...) as " +"f:``. (Contributed by Brian Curtin; :issue:`5511`.)" msgstr "" "The :mod:`zipfile` module's :class:`~zipfile.ZipFile` now supports the " -"context management protocol, so you can write ``with zipfile.ZipFile(...) as" -" f:``. (Contributed by Brian Curtin; :issue:`5511`.)" +"context management protocol, so you can write ``with zipfile.ZipFile(...) as " +"f:``. (Contributed by Brian Curtin; :issue:`5511`.)" #: ../../whatsnew/2.7.rst:1710 msgid "" ":mod:`zipfile` now also supports archiving empty directories and extracts " -"them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.) Reading files out" -" of an archive is faster, and interleaving :meth:`~zipfile.ZipFile.read` and" -" :meth:`~zipfile.ZipFile.readline` now works correctly. (Contributed by Nir " +"them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.) Reading files out " +"of an archive is faster, and interleaving :meth:`~zipfile.ZipFile.read` and :" +"meth:`~zipfile.ZipFile.readline` now works correctly. (Contributed by Nir " "Aides; :issue:`7610`.)" msgstr "" ":mod:`zipfile` now also supports archiving empty directories and extracts " -"them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.) Reading files out" -" of an archive is faster, and interleaving :meth:`~zipfile.ZipFile.read` and" -" :meth:`~zipfile.ZipFile.readline` now works correctly. (Contributed by Nir " +"them correctly. (Fixed by Kuba Wieczorek; :issue:`4710`.) Reading files out " +"of an archive is faster, and interleaving :meth:`~zipfile.ZipFile.read` and :" +"meth:`~zipfile.ZipFile.readline` now works correctly. (Contributed by Nir " "Aides; :issue:`7610`.)" #: ../../whatsnew/2.7.rst:1716 @@ -2806,13 +2772,13 @@ msgstr "" msgid "" "The :meth:`~zipfile.ZipFile.writestr` method now has an optional " "*compress_type* parameter that lets you override the default compression " -"method specified in the :class:`~zipfile.ZipFile` constructor. (Contributed" -" by Ronald Oussoren; :issue:`6003`.)" +"method specified in the :class:`~zipfile.ZipFile` constructor. (Contributed " +"by Ronald Oussoren; :issue:`6003`.)" msgstr "" "The :meth:`~zipfile.ZipFile.writestr` method now has an optional " "*compress_type* parameter that lets you override the default compression " -"method specified in the :class:`~zipfile.ZipFile` constructor. (Contributed" -" by Ronald Oussoren; :issue:`6003`.)" +"method specified in the :class:`~zipfile.ZipFile` constructor. (Contributed " +"by Ronald Oussoren; :issue:`6003`.)" #: ../../whatsnew/2.7.rst:1733 msgid "New module: importlib" @@ -2820,21 +2786,21 @@ msgstr "New module: importlib" #: ../../whatsnew/2.7.rst:1735 msgid "" -"Python 3.1 includes the :mod:`importlib` package, a re-implementation of the" -" logic underlying Python's :keyword:`import` statement. :mod:`importlib` is " +"Python 3.1 includes the :mod:`importlib` package, a re-implementation of the " +"logic underlying Python's :keyword:`import` statement. :mod:`importlib` is " "useful for implementors of Python interpreters and to users who wish to " "write new importers that can participate in the import process. Python 2.7 " "doesn't contain the complete :mod:`importlib` package, but instead has a " -"tiny subset that contains a single function, " -":func:`~importlib.import_module`." +"tiny subset that contains a single function, :func:`~importlib." +"import_module`." msgstr "" -"Python 3.1 includes the :mod:`importlib` package, a re-implementation of the" -" logic underlying Python's :keyword:`import` statement. :mod:`importlib` is " +"Python 3.1 includes the :mod:`importlib` package, a re-implementation of the " +"logic underlying Python's :keyword:`import` statement. :mod:`importlib` is " "useful for implementors of Python interpreters and to users who wish to " "write new importers that can participate in the import process. Python 2.7 " "doesn't contain the complete :mod:`importlib` package, but instead has a " -"tiny subset that contains a single function, " -":func:`~importlib.import_module`." +"tiny subset that contains a single function, :func:`~importlib." +"import_module`." #: ../../whatsnew/2.7.rst:1743 msgid "" @@ -2963,25 +2929,23 @@ msgstr "" #: ../../whatsnew/2.7.rst:1807 msgid "" "To learn more, read the :mod:`ttk` module documentation. You may also wish " -"to read the Tcl/Tk manual page describing the Ttk theme engine, available at" -" https://www.tcl.tk/man/tcl8.5/TkCmd/ttk_intro.htm. Some screenshots of the " -"Python/Ttk code in use are at https://code.google.com/archive/p/python-" -"ttk/wikis/Screenshots.wiki." +"to read the Tcl/Tk manual page describing the Ttk theme engine, available at " +"https://www.tcl.tk/man/tcl8.5/TkCmd/ttk_intro.htm. Some screenshots of the " +"Python/Ttk code in use are at https://code.google.com/archive/p/python-ttk/" +"wikis/Screenshots.wiki." msgstr "" #: ../../whatsnew/2.7.rst:1814 msgid "" -"The :mod:`ttk` module was written by Guilherme Polo and added in " -":issue:`2983`. An alternate version called ``Tile.py``, written by Martin " -"Franklin and maintained by Kevin Walzer, was proposed for inclusion in " -":issue:`2618`, but the authors argued that Guilherme Polo's work was more " -"comprehensive." +"The :mod:`ttk` module was written by Guilherme Polo and added in :issue:" +"`2983`. An alternate version called ``Tile.py``, written by Martin Franklin " +"and maintained by Kevin Walzer, was proposed for inclusion in :issue:`2618`, " +"but the authors argued that Guilherme Polo's work was more comprehensive." msgstr "" -"The :mod:`ttk` module was written by Guilherme Polo and added in " -":issue:`2983`. An alternate version called ``Tile.py``, written by Martin " -"Franklin and maintained by Kevin Walzer, was proposed for inclusion in " -":issue:`2618`, but the authors argued that Guilherme Polo's work was more " -"comprehensive." +"The :mod:`ttk` module was written by Guilherme Polo and added in :issue:" +"`2983`. An alternate version called ``Tile.py``, written by Martin Franklin " +"and maintained by Kevin Walzer, was proposed for inclusion in :issue:`2618`, " +"but the authors argued that Guilherme Polo's work was more comprehensive." #: ../../whatsnew/2.7.rst:1824 msgid "Updated module: unittest" @@ -2992,8 +2956,8 @@ msgid "" "The :mod:`unittest` module was greatly enhanced; many new features were " "added. Most of these features were implemented by Michael Foord, unless " "otherwise noted. The enhanced version of the module is downloadable " -"separately for use with Python versions 2.4 to 2.6, packaged as the " -":mod:`unittest2` package, from https://pypi.org/project/unittest2." +"separately for use with Python versions 2.4 to 2.6, packaged as the :mod:" +"`unittest2` package, from https://pypi.org/project/unittest2." msgstr "" #: ../../whatsnew/2.7.rst:1833 @@ -3021,14 +2985,14 @@ msgstr "The :func:`~unittest.main` function supports some other new options:" #: ../../whatsnew/2.7.rst:1847 msgid "" ":option:`-b ` or :option:`!--buffer` will buffer the standard " -"output and standard error streams during each test. If the test passes, any" -" resulting output will be discarded; on failure, the buffered output will be" -" displayed." +"output and standard error streams during each test. If the test passes, any " +"resulting output will be discarded; on failure, the buffered output will be " +"displayed." msgstr "" ":option:`-b ` or :option:`!--buffer` will buffer the standard " -"output and standard error streams during each test. If the test passes, any" -" resulting output will be discarded; on failure, the buffered output will be" -" displayed." +"output and standard error streams during each test. If the test passes, any " +"resulting output will be discarded; on failure, the buffered output will be " +"displayed." #: ../../whatsnew/2.7.rst:1852 msgid "" @@ -3047,15 +3011,15 @@ msgstr "" #: ../../whatsnew/2.7.rst:1859 msgid "" "This control-C handler tries to avoid causing problems when the code being " -"tested or the tests being run have defined a signal handler of their own, by" -" noticing that a signal handler was already set and calling it. If this " +"tested or the tests being run have defined a signal handler of their own, by " +"noticing that a signal handler was already set and calling it. If this " "doesn't work for you, there's a :func:`~unittest.removeHandler` decorator " "that can be used to mark tests that should have the control-C handling " "disabled." msgstr "" "This control-C handler tries to avoid causing problems when the code being " -"tested or the tests being run have defined a signal handler of their own, by" -" noticing that a signal handler was already set and calling it. If this " +"tested or the tests being run have defined a signal handler of their own, by " +"noticing that a signal handler was already set and calling it. If this " "doesn't work for you, there's a :func:`~unittest.removeHandler` decorator " "that can be used to mark tests that should have the control-C handling " "disabled." @@ -3064,13 +3028,13 @@ msgstr "" msgid "" ":option:`-f ` or :option:`!--failfast` makes test execution " "stop immediately when a test fails instead of continuing to execute further " -"tests. (Suggested by Cliff Dyer and implemented by Michael Foord; " -":issue:`8074`.)" +"tests. (Suggested by Cliff Dyer and implemented by Michael Foord; :issue:" +"`8074`.)" msgstr "" ":option:`-f ` or :option:`!--failfast` makes test execution " "stop immediately when a test fails instead of continuing to execute further " -"tests. (Suggested by Cliff Dyer and implemented by Michael Foord; " -":issue:`8074`.)" +"tests. (Suggested by Cliff Dyer and implemented by Michael Foord; :issue:" +"`8074`.)" #: ../../whatsnew/2.7.rst:1871 msgid "" @@ -3092,21 +3056,21 @@ msgstr "" #: ../../whatsnew/2.7.rst:1878 msgid "" -"The error messages for :meth:`~unittest.TestCase.assertEqual`, " -":meth:`~unittest.TestCase.assertTrue`, and " -":meth:`~unittest.TestCase.assertFalse` failures now provide more " -"information. If you set the :attr:`~unittest.TestCase.longMessage` " -"attribute of your :class:`~unittest.TestCase` classes to true, both the " -"standard error message and any additional message you provide will be " -"printed for failures. (Added by Michael Foord; :issue:`5663`.)" -msgstr "" -"The error messages for :meth:`~unittest.TestCase.assertEqual`, " -":meth:`~unittest.TestCase.assertTrue`, and " -":meth:`~unittest.TestCase.assertFalse` failures now provide more " -"information. If you set the :attr:`~unittest.TestCase.longMessage` " -"attribute of your :class:`~unittest.TestCase` classes to true, both the " -"standard error message and any additional message you provide will be " -"printed for failures. (Added by Michael Foord; :issue:`5663`.)" +"The error messages for :meth:`~unittest.TestCase.assertEqual`, :meth:" +"`~unittest.TestCase.assertTrue`, and :meth:`~unittest.TestCase.assertFalse` " +"failures now provide more information. If you set the :attr:`~unittest." +"TestCase.longMessage` attribute of your :class:`~unittest.TestCase` classes " +"to true, both the standard error message and any additional message you " +"provide will be printed for failures. (Added by Michael Foord; :issue:" +"`5663`.)" +msgstr "" +"The error messages for :meth:`~unittest.TestCase.assertEqual`, :meth:" +"`~unittest.TestCase.assertTrue`, and :meth:`~unittest.TestCase.assertFalse` " +"failures now provide more information. If you set the :attr:`~unittest." +"TestCase.longMessage` attribute of your :class:`~unittest.TestCase` classes " +"to true, both the standard error message and any additional message you " +"provide will be printed for failures. (Added by Michael Foord; :issue:" +"`5663`.)" #: ../../whatsnew/2.7.rst:1885 msgid "" @@ -3125,122 +3089,114 @@ msgstr "(Implemented by Antoine Pitrou; :issue:`4444`.)" #: ../../whatsnew/2.7.rst:1896 msgid "" "Module- and class-level setup and teardown fixtures are now supported. " -"Modules can contain :func:`~unittest.setUpModule` and " -":func:`~unittest.tearDownModule` functions. Classes can have " -":meth:`~unittest.TestCase.setUpClass` and " -":meth:`~unittest.TestCase.tearDownClass` methods that must be defined as " -"class methods (using ``@classmethod`` or equivalent). These functions and " -"methods are invoked when the test runner switches to a test case in a " -"different module or class." +"Modules can contain :func:`~unittest.setUpModule` and :func:`~unittest." +"tearDownModule` functions. Classes can have :meth:`~unittest.TestCase." +"setUpClass` and :meth:`~unittest.TestCase.tearDownClass` methods that must " +"be defined as class methods (using ``@classmethod`` or equivalent). These " +"functions and methods are invoked when the test runner switches to a test " +"case in a different module or class." msgstr "" "Module- and class-level setup and teardown fixtures are now supported. " -"Modules can contain :func:`~unittest.setUpModule` and " -":func:`~unittest.tearDownModule` functions. Classes can have " -":meth:`~unittest.TestCase.setUpClass` and " -":meth:`~unittest.TestCase.tearDownClass` methods that must be defined as " -"class methods (using ``@classmethod`` or equivalent). These functions and " -"methods are invoked when the test runner switches to a test case in a " -"different module or class." +"Modules can contain :func:`~unittest.setUpModule` and :func:`~unittest." +"tearDownModule` functions. Classes can have :meth:`~unittest.TestCase." +"setUpClass` and :meth:`~unittest.TestCase.tearDownClass` methods that must " +"be defined as class methods (using ``@classmethod`` or equivalent). These " +"functions and methods are invoked when the test runner switches to a test " +"case in a different module or class." #: ../../whatsnew/2.7.rst:1904 msgid "" -"The methods :meth:`~unittest.TestCase.addCleanup` and " -":meth:`~unittest.TestCase.doCleanups` were added. " -":meth:`~unittest.TestCase.addCleanup` lets you add cleanup functions that " -"will be called unconditionally (after :meth:`~unittest.TestCase.setUp` if " -":meth:`~unittest.TestCase.setUp` fails, otherwise after " -":meth:`~unittest.TestCase.tearDown`). This allows for much simpler resource " -"allocation and deallocation during tests (:issue:`5679`)." -msgstr "" -"The methods :meth:`~unittest.TestCase.addCleanup` and " -":meth:`~unittest.TestCase.doCleanups` were added. " -":meth:`~unittest.TestCase.addCleanup` lets you add cleanup functions that " -"will be called unconditionally (after :meth:`~unittest.TestCase.setUp` if " -":meth:`~unittest.TestCase.setUp` fails, otherwise after " -":meth:`~unittest.TestCase.tearDown`). This allows for much simpler resource " -"allocation and deallocation during tests (:issue:`5679`)." +"The methods :meth:`~unittest.TestCase.addCleanup` and :meth:`~unittest." +"TestCase.doCleanups` were added. :meth:`~unittest.TestCase.addCleanup` lets " +"you add cleanup functions that will be called unconditionally (after :meth:" +"`~unittest.TestCase.setUp` if :meth:`~unittest.TestCase.setUp` fails, " +"otherwise after :meth:`~unittest.TestCase.tearDown`). This allows for much " +"simpler resource allocation and deallocation during tests (:issue:`5679`)." +msgstr "" +"The methods :meth:`~unittest.TestCase.addCleanup` and :meth:`~unittest." +"TestCase.doCleanups` were added. :meth:`~unittest.TestCase.addCleanup` lets " +"you add cleanup functions that will be called unconditionally (after :meth:" +"`~unittest.TestCase.setUp` if :meth:`~unittest.TestCase.setUp` fails, " +"otherwise after :meth:`~unittest.TestCase.tearDown`). This allows for much " +"simpler resource allocation and deallocation during tests (:issue:`5679`)." #: ../../whatsnew/2.7.rst:1912 msgid "" "A number of new methods were added that provide more specialized tests. " -"Many of these methods were written by Google engineers for use in their test" -" suites; Gregory P. Smith, Michael Foord, and GvR worked on merging them " -"into Python's version of :mod:`unittest`." +"Many of these methods were written by Google engineers for use in their test " +"suites; Gregory P. Smith, Michael Foord, and GvR worked on merging them into " +"Python's version of :mod:`unittest`." msgstr "" "A number of new methods were added that provide more specialized tests. " -"Many of these methods were written by Google engineers for use in their test" -" suites; Gregory P. Smith, Michael Foord, and GvR worked on merging them " -"into Python's version of :mod:`unittest`." +"Many of these methods were written by Google engineers for use in their test " +"suites; Gregory P. Smith, Michael Foord, and GvR worked on merging them into " +"Python's version of :mod:`unittest`." #: ../../whatsnew/2.7.rst:1917 msgid "" -":meth:`~unittest.TestCase.assertIsNone` and " -":meth:`~unittest.TestCase.assertIsNotNone` take one expression and verify " -"that the result is or is not ``None``." +":meth:`~unittest.TestCase.assertIsNone` and :meth:`~unittest.TestCase." +"assertIsNotNone` take one expression and verify that the result is or is not " +"``None``." msgstr "" -":meth:`~unittest.TestCase.assertIsNone` and " -":meth:`~unittest.TestCase.assertIsNotNone` take one expression and verify " -"that the result is or is not ``None``." +":meth:`~unittest.TestCase.assertIsNone` and :meth:`~unittest.TestCase." +"assertIsNotNone` take one expression and verify that the result is or is not " +"``None``." #: ../../whatsnew/2.7.rst:1920 msgid "" -":meth:`~unittest.TestCase.assertIs` and " -":meth:`~unittest.TestCase.assertIsNot` take two values and check whether the" -" two values evaluate to the same object or not. (Added by Michael Foord; " -":issue:`2578`.)" +":meth:`~unittest.TestCase.assertIs` and :meth:`~unittest.TestCase." +"assertIsNot` take two values and check whether the two values evaluate to " +"the same object or not. (Added by Michael Foord; :issue:`2578`.)" msgstr "" -":meth:`~unittest.TestCase.assertIs` and " -":meth:`~unittest.TestCase.assertIsNot` take two values and check whether the" -" two values evaluate to the same object or not. (Added by Michael Foord; " -":issue:`2578`.)" +":meth:`~unittest.TestCase.assertIs` and :meth:`~unittest.TestCase." +"assertIsNot` take two values and check whether the two values evaluate to " +"the same object or not. (Added by Michael Foord; :issue:`2578`.)" #: ../../whatsnew/2.7.rst:1924 msgid "" -":meth:`~unittest.TestCase.assertIsInstance` and " -":meth:`~unittest.TestCase.assertNotIsInstance` check whether the resulting " -"object is an instance of a particular class, or of one of a tuple of " -"classes. (Added by Georg Brandl; :issue:`7031`.)" +":meth:`~unittest.TestCase.assertIsInstance` and :meth:`~unittest.TestCase." +"assertNotIsInstance` check whether the resulting object is an instance of a " +"particular class, or of one of a tuple of classes. (Added by Georg Brandl; :" +"issue:`7031`.)" msgstr "" -":meth:`~unittest.TestCase.assertIsInstance` and " -":meth:`~unittest.TestCase.assertNotIsInstance` check whether the resulting " -"object is an instance of a particular class, or of one of a tuple of " -"classes. (Added by Georg Brandl; :issue:`7031`.)" +":meth:`~unittest.TestCase.assertIsInstance` and :meth:`~unittest.TestCase." +"assertNotIsInstance` check whether the resulting object is an instance of a " +"particular class, or of one of a tuple of classes. (Added by Georg Brandl; :" +"issue:`7031`.)" #: ../../whatsnew/2.7.rst:1929 msgid "" -":meth:`~unittest.TestCase.assertGreater`, " -":meth:`~unittest.TestCase.assertGreaterEqual`, " -":meth:`~unittest.TestCase.assertLess`, and " -":meth:`~unittest.TestCase.assertLessEqual` compare two quantities." +":meth:`~unittest.TestCase.assertGreater`, :meth:`~unittest.TestCase." +"assertGreaterEqual`, :meth:`~unittest.TestCase.assertLess`, and :meth:" +"`~unittest.TestCase.assertLessEqual` compare two quantities." msgstr "" -":meth:`~unittest.TestCase.assertGreater`, " -":meth:`~unittest.TestCase.assertGreaterEqual`, " -":meth:`~unittest.TestCase.assertLess`, and " -":meth:`~unittest.TestCase.assertLessEqual` compare two quantities." +":meth:`~unittest.TestCase.assertGreater`, :meth:`~unittest.TestCase." +"assertGreaterEqual`, :meth:`~unittest.TestCase.assertLess`, and :meth:" +"`~unittest.TestCase.assertLessEqual` compare two quantities." #: ../../whatsnew/2.7.rst:1933 msgid "" -":meth:`~unittest.TestCase.assertMultiLineEqual` compares two strings, and if" -" they're not equal, displays a helpful comparison that highlights the " -"differences in the two strings. This comparison is now used by default when" -" Unicode strings are compared with :meth:`~unittest.TestCase.assertEqual`." +":meth:`~unittest.TestCase.assertMultiLineEqual` compares two strings, and if " +"they're not equal, displays a helpful comparison that highlights the " +"differences in the two strings. This comparison is now used by default when " +"Unicode strings are compared with :meth:`~unittest.TestCase.assertEqual`." msgstr "" -":meth:`~unittest.TestCase.assertMultiLineEqual` compares two strings, and if" -" they're not equal, displays a helpful comparison that highlights the " -"differences in the two strings. This comparison is now used by default when" -" Unicode strings are compared with :meth:`~unittest.TestCase.assertEqual`." +":meth:`~unittest.TestCase.assertMultiLineEqual` compares two strings, and if " +"they're not equal, displays a helpful comparison that highlights the " +"differences in the two strings. This comparison is now used by default when " +"Unicode strings are compared with :meth:`~unittest.TestCase.assertEqual`." #: ../../whatsnew/2.7.rst:1938 msgid "" -":meth:`~unittest.TestCase.assertRegexpMatches` and " -":meth:`~unittest.TestCase.assertNotRegexpMatches` checks whether the first " -"argument is a string matching or not matching the regular expression " -"provided as the second argument (:issue:`8038`)." +":meth:`~unittest.TestCase.assertRegexpMatches` and :meth:`~unittest.TestCase." +"assertNotRegexpMatches` checks whether the first argument is a string " +"matching or not matching the regular expression provided as the second " +"argument (:issue:`8038`)." msgstr "" -":meth:`~unittest.TestCase.assertRegexpMatches` and " -":meth:`~unittest.TestCase.assertNotRegexpMatches` checks whether the first " -"argument is a string matching or not matching the regular expression " -"provided as the second argument (:issue:`8038`)." +":meth:`~unittest.TestCase.assertRegexpMatches` and :meth:`~unittest.TestCase." +"assertNotRegexpMatches` checks whether the first argument is a string " +"matching or not matching the regular expression provided as the second " +"argument (:issue:`8038`)." #: ../../whatsnew/2.7.rst:1943 msgid "" @@ -3254,13 +3210,11 @@ msgstr "" #: ../../whatsnew/2.7.rst:1947 msgid "" -":meth:`~unittest.TestCase.assertIn` and " -":meth:`~unittest.TestCase.assertNotIn` tests whether *first* is or is not in" -" *second*." +":meth:`~unittest.TestCase.assertIn` and :meth:`~unittest.TestCase." +"assertNotIn` tests whether *first* is or is not in *second*." msgstr "" -":meth:`~unittest.TestCase.assertIn` and " -":meth:`~unittest.TestCase.assertNotIn` tests whether *first* is or is not in" -" *second*." +":meth:`~unittest.TestCase.assertIn` and :meth:`~unittest.TestCase." +"assertNotIn` tests whether *first* is or is not in *second*." #: ../../whatsnew/2.7.rst:1950 msgid "" @@ -3280,119 +3234,115 @@ msgstr "" #: ../../whatsnew/2.7.rst:1956 msgid "" -"Similarly, :meth:`~unittest.TestCase.assertListEqual` and " -":meth:`~unittest.TestCase.assertTupleEqual` compare the specified types and " -"explain any differences without necessarily printing their full values; " -"these methods are now used by default when comparing lists and tuples using " -":meth:`~unittest.TestCase.assertEqual`. More generally, " -":meth:`~unittest.TestCase.assertSequenceEqual` compares two sequences and " -"can optionally check whether both sequences are of a particular type." -msgstr "" -"Similarly, :meth:`~unittest.TestCase.assertListEqual` and " -":meth:`~unittest.TestCase.assertTupleEqual` compare the specified types and " -"explain any differences without necessarily printing their full values; " -"these methods are now used by default when comparing lists and tuples using " -":meth:`~unittest.TestCase.assertEqual`. More generally, " -":meth:`~unittest.TestCase.assertSequenceEqual` compares two sequences and " -"can optionally check whether both sequences are of a particular type." +"Similarly, :meth:`~unittest.TestCase.assertListEqual` and :meth:`~unittest." +"TestCase.assertTupleEqual` compare the specified types and explain any " +"differences without necessarily printing their full values; these methods " +"are now used by default when comparing lists and tuples using :meth:" +"`~unittest.TestCase.assertEqual`. More generally, :meth:`~unittest.TestCase." +"assertSequenceEqual` compares two sequences and can optionally check whether " +"both sequences are of a particular type." +msgstr "" +"Similarly, :meth:`~unittest.TestCase.assertListEqual` and :meth:`~unittest." +"TestCase.assertTupleEqual` compare the specified types and explain any " +"differences without necessarily printing their full values; these methods " +"are now used by default when comparing lists and tuples using :meth:" +"`~unittest.TestCase.assertEqual`. More generally, :meth:`~unittest.TestCase." +"assertSequenceEqual` compares two sequences and can optionally check whether " +"both sequences are of a particular type." #: ../../whatsnew/2.7.rst:1964 msgid "" ":meth:`~unittest.TestCase.assertDictEqual` compares two dictionaries and " "reports the differences; it's now used by default when you compare two " -"dictionaries using :meth:`~unittest.TestCase.assertEqual`. " -":meth:`~unittest.TestCase.assertDictContainsSubset` checks whether all of " -"the key/value pairs in *first* are found in *second*." +"dictionaries using :meth:`~unittest.TestCase.assertEqual`. :meth:`~unittest." +"TestCase.assertDictContainsSubset` checks whether all of the key/value pairs " +"in *first* are found in *second*." msgstr "" ":meth:`~unittest.TestCase.assertDictEqual` compares two dictionaries and " "reports the differences; it's now used by default when you compare two " -"dictionaries using :meth:`~unittest.TestCase.assertEqual`. " -":meth:`~unittest.TestCase.assertDictContainsSubset` checks whether all of " -"the key/value pairs in *first* are found in *second*." +"dictionaries using :meth:`~unittest.TestCase.assertEqual`. :meth:`~unittest." +"TestCase.assertDictContainsSubset` checks whether all of the key/value pairs " +"in *first* are found in *second*." #: ../../whatsnew/2.7.rst:1969 msgid "" -":meth:`~unittest.TestCase.assertAlmostEqual` and " -":meth:`~unittest.TestCase.assertNotAlmostEqual` test whether *first* and " -"*second* are approximately equal. This method can either round their " -"difference to an optionally-specified number of *places* (the default is 7) " -"and compare it to zero, or require the difference to be smaller than a " -"supplied *delta* value." +":meth:`~unittest.TestCase.assertAlmostEqual` and :meth:`~unittest.TestCase." +"assertNotAlmostEqual` test whether *first* and *second* are approximately " +"equal. This method can either round their difference to an optionally-" +"specified number of *places* (the default is 7) and compare it to zero, or " +"require the difference to be smaller than a supplied *delta* value." msgstr "" -":meth:`~unittest.TestCase.assertAlmostEqual` and " -":meth:`~unittest.TestCase.assertNotAlmostEqual` test whether *first* and " -"*second* are approximately equal. This method can either round their " -"difference to an optionally-specified number of *places* (the default is 7) " -"and compare it to zero, or require the difference to be smaller than a " -"supplied *delta* value." +":meth:`~unittest.TestCase.assertAlmostEqual` and :meth:`~unittest.TestCase." +"assertNotAlmostEqual` test whether *first* and *second* are approximately " +"equal. This method can either round their difference to an optionally-" +"specified number of *places* (the default is 7) and compare it to zero, or " +"require the difference to be smaller than a supplied *delta* value." #: ../../whatsnew/2.7.rst:1975 msgid "" -":meth:`~unittest.TestLoader.loadTestsFromName` properly honors the " -":attr:`~unittest.TestLoader.suiteClass` attribute of the " -":class:`~unittest.TestLoader`. (Fixed by Mark Roddy; :issue:`6866`.)" +":meth:`~unittest.TestLoader.loadTestsFromName` properly honors the :attr:" +"`~unittest.TestLoader.suiteClass` attribute of the :class:`~unittest." +"TestLoader`. (Fixed by Mark Roddy; :issue:`6866`.)" msgstr "" -":meth:`~unittest.TestLoader.loadTestsFromName` properly honors the " -":attr:`~unittest.TestLoader.suiteClass` attribute of the " -":class:`~unittest.TestLoader`. (Fixed by Mark Roddy; :issue:`6866`.)" +":meth:`~unittest.TestLoader.loadTestsFromName` properly honors the :attr:" +"`~unittest.TestLoader.suiteClass` attribute of the :class:`~unittest." +"TestLoader`. (Fixed by Mark Roddy; :issue:`6866`.)" #: ../../whatsnew/2.7.rst:1979 msgid "" -"A new hook lets you extend the :meth:`~unittest.TestCase.assertEqual` method" -" to handle new data types. The " -":meth:`~unittest.TestCase.addTypeEqualityFunc` method takes a type object " -"and a function. The function will be used when both of the objects being " -"compared are of the specified type. This function should compare the two " -"objects and raise an exception if they don't match; it's a good idea for the" -" function to provide additional information about why the two objects aren't" -" matching, much as the new sequence comparison methods do." -msgstr "" -"A new hook lets you extend the :meth:`~unittest.TestCase.assertEqual` method" -" to handle new data types. The " -":meth:`~unittest.TestCase.addTypeEqualityFunc` method takes a type object " -"and a function. The function will be used when both of the objects being " -"compared are of the specified type. This function should compare the two " -"objects and raise an exception if they don't match; it's a good idea for the" -" function to provide additional information about why the two objects aren't" -" matching, much as the new sequence comparison methods do." +"A new hook lets you extend the :meth:`~unittest.TestCase.assertEqual` method " +"to handle new data types. The :meth:`~unittest.TestCase." +"addTypeEqualityFunc` method takes a type object and a function. The function " +"will be used when both of the objects being compared are of the specified " +"type. This function should compare the two objects and raise an exception " +"if they don't match; it's a good idea for the function to provide additional " +"information about why the two objects aren't matching, much as the new " +"sequence comparison methods do." +msgstr "" +"A new hook lets you extend the :meth:`~unittest.TestCase.assertEqual` method " +"to handle new data types. The :meth:`~unittest.TestCase." +"addTypeEqualityFunc` method takes a type object and a function. The function " +"will be used when both of the objects being compared are of the specified " +"type. This function should compare the two objects and raise an exception " +"if they don't match; it's a good idea for the function to provide additional " +"information about why the two objects aren't matching, much as the new " +"sequence comparison methods do." #: ../../whatsnew/2.7.rst:1988 msgid "" -":func:`unittest.main` now takes an optional ``exit`` argument. If false, " -":func:`~unittest.main` doesn't call :func:`sys.exit`, allowing " -":func:`~unittest.main` to be used from the interactive interpreter. " -"(Contributed by J. Pablo Fernández; :issue:`3379`.)" +":func:`unittest.main` now takes an optional ``exit`` argument. If false, :" +"func:`~unittest.main` doesn't call :func:`sys.exit`, allowing :func:" +"`~unittest.main` to be used from the interactive interpreter. (Contributed " +"by J. Pablo Fernández; :issue:`3379`.)" msgstr "" -":func:`unittest.main` now takes an optional ``exit`` argument. If false, " -":func:`~unittest.main` doesn't call :func:`sys.exit`, allowing " -":func:`~unittest.main` to be used from the interactive interpreter. " -"(Contributed by J. Pablo Fernández; :issue:`3379`.)" +":func:`unittest.main` now takes an optional ``exit`` argument. If false, :" +"func:`~unittest.main` doesn't call :func:`sys.exit`, allowing :func:" +"`~unittest.main` to be used from the interactive interpreter. (Contributed " +"by J. Pablo Fernández; :issue:`3379`.)" #: ../../whatsnew/2.7.rst:1993 msgid "" -":class:`~unittest.TestResult` has new " -":meth:`~unittest.TestResult.startTestRun` and " -":meth:`~unittest.TestResult.stopTestRun` methods that are called immediately" -" before and after a test run. (Contributed by Robert Collins; " -":issue:`5728`.)" +":class:`~unittest.TestResult` has new :meth:`~unittest.TestResult." +"startTestRun` and :meth:`~unittest.TestResult.stopTestRun` methods that are " +"called immediately before and after a test run. (Contributed by Robert " +"Collins; :issue:`5728`.)" msgstr "" -":class:`~unittest.TestResult` has new " -":meth:`~unittest.TestResult.startTestRun` and " -":meth:`~unittest.TestResult.stopTestRun` methods that are called immediately" -" before and after a test run. (Contributed by Robert Collins; " -":issue:`5728`.)" +":class:`~unittest.TestResult` has new :meth:`~unittest.TestResult." +"startTestRun` and :meth:`~unittest.TestResult.stopTestRun` methods that are " +"called immediately before and after a test run. (Contributed by Robert " +"Collins; :issue:`5728`.)" #: ../../whatsnew/2.7.rst:1997 msgid "" "With all these changes, the :file:`unittest.py` was becoming awkwardly " "large, so the module was turned into a package and the code split into " -"several files (by Benjamin Peterson). This doesn't affect how the module is" -" imported or used." +"several files (by Benjamin Peterson). This doesn't affect how the module is " +"imported or used." msgstr "" "With all these changes, the :file:`unittest.py` was becoming awkwardly " "large, so the module was turned into a package and the code split into " -"several files (by Benjamin Peterson). This doesn't affect how the module is" -" imported or used." +"several files (by Benjamin Peterson). This doesn't affect how the module is " +"imported or used." #: ../../whatsnew/2.7.rst:2005 msgid "http://www.voidspace.org.uk/python/articles/unittest2.shtml" @@ -3420,13 +3370,13 @@ msgstr "" #: ../../whatsnew/2.7.rst:2016 msgid "" -"The various parsing functions now take a *parser* keyword argument giving an" -" :class:`~xml.etree.ElementTree.XMLParser` instance that will be used. This" -" makes it possible to override the file's internal encoding::" +"The various parsing functions now take a *parser* keyword argument giving " +"an :class:`~xml.etree.ElementTree.XMLParser` instance that will be used. " +"This makes it possible to override the file's internal encoding::" msgstr "" -"The various parsing functions now take a *parser* keyword argument giving an" -" :class:`~xml.etree.ElementTree.XMLParser` instance that will be used. This" -" makes it possible to override the file's internal encoding::" +"The various parsing functions now take a *parser* keyword argument giving " +"an :class:`~xml.etree.ElementTree.XMLParser` instance that will be used. " +"This makes it possible to override the file's internal encoding::" #: ../../whatsnew/2.7.rst:2023 msgid "" @@ -3441,78 +3391,76 @@ msgstr "" #: ../../whatsnew/2.7.rst:2027 msgid "" "ElementTree's code for converting trees to a string has been significantly " -"reworked, making it roughly twice as fast in many cases. The " -":meth:`ElementTree.write() ` and " -":meth:`Element.write` methods now have a *method* parameter that can be " -"\"xml\" (the default), \"html\", or \"text\". HTML mode will output empty " +"reworked, making it roughly twice as fast in many cases. The :meth:" +"`ElementTree.write() ` and :meth:" +"`Element.write` methods now have a *method* parameter that can be \"xml" +"\" (the default), \"html\", or \"text\". HTML mode will output empty " "elements as ```` instead of ````, and text mode will " -"skip over elements and only output the text chunks. If you set the " -":attr:`tag` attribute of an element to ``None`` but leave its children in " -"place, the element will be omitted when the tree is written out, so you " -"don't need to do more extensive rearrangement to remove a single element." +"skip over elements and only output the text chunks. If you set the :attr:" +"`tag` attribute of an element to ``None`` but leave its children in place, " +"the element will be omitted when the tree is written out, so you don't need " +"to do more extensive rearrangement to remove a single element." msgstr "" "ElementTree's code for converting trees to a string has been significantly " -"reworked, making it roughly twice as fast in many cases. The " -":meth:`ElementTree.write() ` and " -":meth:`Element.write` methods now have a *method* parameter that can be " -"\"xml\" (the default), \"html\", or \"text\". HTML mode will output empty " +"reworked, making it roughly twice as fast in many cases. The :meth:" +"`ElementTree.write() ` and :meth:" +"`Element.write` methods now have a *method* parameter that can be \"xml" +"\" (the default), \"html\", or \"text\". HTML mode will output empty " "elements as ```` instead of ````, and text mode will " -"skip over elements and only output the text chunks. If you set the " -":attr:`tag` attribute of an element to ``None`` but leave its children in " -"place, the element will be omitted when the tree is written out, so you " -"don't need to do more extensive rearrangement to remove a single element." +"skip over elements and only output the text chunks. If you set the :attr:" +"`tag` attribute of an element to ``None`` but leave its children in place, " +"the element will be omitted when the tree is written out, so you don't need " +"to do more extensive rearrangement to remove a single element." #: ../../whatsnew/2.7.rst:2039 msgid "" "Namespace handling has also been improved. All ``xmlns:`` " "declarations are now output on the root element, not scattered throughout " "the resulting XML. You can set the default namespace for a tree by setting " -"the :attr:`default_namespace` attribute and can register new prefixes with " -":meth:`~xml.etree.ElementTree.register_namespace`. In XML mode, you can use" -" the true/false *xml_declaration* parameter to suppress the XML declaration." +"the :attr:`default_namespace` attribute and can register new prefixes with :" +"meth:`~xml.etree.ElementTree.register_namespace`. In XML mode, you can use " +"the true/false *xml_declaration* parameter to suppress the XML declaration." msgstr "" "Namespace handling has also been improved. All ``xmlns:`` " "declarations are now output on the root element, not scattered throughout " "the resulting XML. You can set the default namespace for a tree by setting " -"the :attr:`default_namespace` attribute and can register new prefixes with " -":meth:`~xml.etree.ElementTree.register_namespace`. In XML mode, you can use" -" the true/false *xml_declaration* parameter to suppress the XML declaration." +"the :attr:`default_namespace` attribute and can register new prefixes with :" +"meth:`~xml.etree.ElementTree.register_namespace`. In XML mode, you can use " +"the true/false *xml_declaration* parameter to suppress the XML declaration." #: ../../whatsnew/2.7.rst:2047 msgid "" -"New :class:`~xml.etree.ElementTree.Element` method: " -":meth:`~xml.etree.ElementTree.Element.extend` appends the items from a " -"sequence to the element's children. Elements themselves behave like " -"sequences, so it's easy to move children from one element to another::" +"New :class:`~xml.etree.ElementTree.Element` method: :meth:`~xml.etree." +"ElementTree.Element.extend` appends the items from a sequence to the " +"element's children. Elements themselves behave like sequences, so it's easy " +"to move children from one element to another::" msgstr "" -"New :class:`~xml.etree.ElementTree.Element` method: " -":meth:`~xml.etree.ElementTree.Element.extend` appends the items from a " -"sequence to the element's children. Elements themselves behave like " -"sequences, so it's easy to move children from one element to another::" +"New :class:`~xml.etree.ElementTree.Element` method: :meth:`~xml.etree." +"ElementTree.Element.extend` appends the items from a sequence to the " +"element's children. Elements themselves behave like sequences, so it's easy " +"to move children from one element to another::" #: ../../whatsnew/2.7.rst:2064 msgid "" "New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.iter` " "yields the children of the element as a generator. It's also possible to " "write ``for child in elem:`` to loop over an element's children. The " -"existing method :meth:`getiterator` is now deprecated, as is " -":meth:`getchildren` which constructs and returns a list of children." +"existing method :meth:`getiterator` is now deprecated, as is :meth:" +"`getchildren` which constructs and returns a list of children." msgstr "" "New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.iter` " "yields the children of the element as a generator. It's also possible to " "write ``for child in elem:`` to loop over an element's children. The " -"existing method :meth:`getiterator` is now deprecated, as is " -":meth:`getchildren` which constructs and returns a list of children." +"existing method :meth:`getiterator` is now deprecated, as is :meth:" +"`getchildren` which constructs and returns a list of children." #: ../../whatsnew/2.7.rst:2071 msgid "" -"New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.itertext`" -" yields all chunks of text that are descendants of the element. For " -"example::" +"New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.itertext` " +"yields all chunks of text that are descendants of the element. For example::" msgstr "" -"New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.itertext`" -" yields all chunks of text that are descendants of the element. For " -"example::" +"New :class:`Element` method: :meth:`~xml.etree.ElementTree.Element.itertext` " +"yields all chunks of text that are descendants of the element. For example::" #: ../../whatsnew/2.7.rst:2082 msgid "" @@ -3520,29 +3468,27 @@ msgid "" "true if the element had any children, or false if there were no children. " "This behaviour is confusing -- ``None`` is false, but so is a childless " "element? -- so it will now trigger a :exc:`FutureWarning`. In your code, " -"you should be explicit: write ``len(elem) != 0`` if you're interested in the" -" number of children, or ``elem is not None``." +"you should be explicit: write ``len(elem) != 0`` if you're interested in the " +"number of children, or ``elem is not None``." msgstr "" "Deprecated: using an element as a Boolean (i.e., ``if elem:``) would return " "true if the element had any children, or false if there were no children. " "This behaviour is confusing -- ``None`` is false, but so is a childless " "element? -- so it will now trigger a :exc:`FutureWarning`. In your code, " -"you should be explicit: write ``len(elem) != 0`` if you're interested in the" -" number of children, or ``elem is not None``." +"you should be explicit: write ``len(elem) != 0`` if you're interested in the " +"number of children, or ``elem is not None``." #: ../../whatsnew/2.7.rst:2090 msgid "" "Fredrik Lundh develops ElementTree and produced the 1.3 version; you can " -"read his article describing 1.3 at " -"http://effbot.org/zone/elementtree-13-intro.htm. Florent Xicluna updated the" -" version included with Python, after discussions on python-dev and in " -":issue:`6472`.)" +"read his article describing 1.3 at http://effbot.org/zone/elementtree-13-" +"intro.htm. Florent Xicluna updated the version included with Python, after " +"discussions on python-dev and in :issue:`6472`.)" msgstr "" "Fredrik Lundh develops ElementTree and produced the 1.3 version; you can " -"read his article describing 1.3 at " -"http://effbot.org/zone/elementtree-13-intro.htm. Florent Xicluna updated the" -" version included with Python, after discussions on python-dev and in " -":issue:`6472`.)" +"read his article describing 1.3 at http://effbot.org/zone/elementtree-13-" +"intro.htm. Florent Xicluna updated the version included with Python, after " +"discussions on python-dev and in :issue:`6472`.)" #: ../../whatsnew/2.7.rst:2100 msgid "Build and C API Changes" @@ -3554,65 +3500,63 @@ msgstr "Changes to Python's build process and to the C API include:" #: ../../whatsnew/2.7.rst:2104 msgid "" -"The latest release of the GNU Debugger, GDB 7, can be `scripted using Python" -" `__. When " -"you begin debugging an executable program P, GDB will look for a file named " -"``P-gdb.py`` and automatically read it. Dave Malcolm contributed a :file" -":`python-gdb.py` that adds a number of commands useful when debugging Python" -" itself. For example, ``py-up`` and ``py-down`` go up or down one Python " +"The latest release of the GNU Debugger, GDB 7, can be `scripted using Python " +"`__. When you " +"begin debugging an executable program P, GDB will look for a file named ``P-" +"gdb.py`` and automatically read it. Dave Malcolm contributed a :file:" +"`python-gdb.py` that adds a number of commands useful when debugging Python " +"itself. For example, ``py-up`` and ``py-down`` go up or down one Python " "stack frame, which usually corresponds to several C stack frames. ``py-" "print`` prints the value of a Python variable, and ``py-bt`` prints the " "Python stack trace. (Added as a result of :issue:`8032`.)" msgstr "" -"The latest release of the GNU Debugger, GDB 7, can be `scripted using Python" -" `__. When " -"you begin debugging an executable program P, GDB will look for a file named " -"``P-gdb.py`` and automatically read it. Dave Malcolm contributed a :file" -":`python-gdb.py` that adds a number of commands useful when debugging Python" -" itself. For example, ``py-up`` and ``py-down`` go up or down one Python " +"The latest release of the GNU Debugger, GDB 7, can be `scripted using Python " +"`__. When you " +"begin debugging an executable program P, GDB will look for a file named ``P-" +"gdb.py`` and automatically read it. Dave Malcolm contributed a :file:" +"`python-gdb.py` that adds a number of commands useful when debugging Python " +"itself. For example, ``py-up`` and ``py-down`` go up or down one Python " "stack frame, which usually corresponds to several C stack frames. ``py-" "print`` prints the value of a Python variable, and ``py-bt`` prints the " "Python stack trace. (Added as a result of :issue:`8032`.)" #: ../../whatsnew/2.7.rst:2116 msgid "" -"If you use the :file:`.gdbinit` file provided with Python, the \"pyo\" macro" -" in the 2.7 version now works correctly when the thread being debugged " +"If you use the :file:`.gdbinit` file provided with Python, the \"pyo\" macro " +"in the 2.7 version now works correctly when the thread being debugged " "doesn't hold the GIL; the macro now acquires it before printing. " "(Contributed by Victor Stinner; :issue:`3632`.)" msgstr "" -"If you use the :file:`.gdbinit` file provided with Python, the \"pyo\" macro" -" in the 2.7 version now works correctly when the thread being debugged " +"If you use the :file:`.gdbinit` file provided with Python, the \"pyo\" macro " +"in the 2.7 version now works correctly when the thread being debugged " "doesn't hold the GIL; the macro now acquires it before printing. " "(Contributed by Victor Stinner; :issue:`3632`.)" #: ../../whatsnew/2.7.rst:2121 msgid "" ":c:func:`Py_AddPendingCall` is now thread-safe, letting any worker thread " -"submit notifications to the main Python thread. This is particularly useful" -" for asynchronous IO operations. (Contributed by Kristján Valur Jónsson; " -":issue:`4293`.)" +"submit notifications to the main Python thread. This is particularly useful " +"for asynchronous IO operations. (Contributed by Kristján Valur Jónsson; :" +"issue:`4293`.)" msgstr "" ":c:func:`Py_AddPendingCall` is now thread-safe, letting any worker thread " -"submit notifications to the main Python thread. This is particularly useful" -" for asynchronous IO operations. (Contributed by Kristján Valur Jónsson; " -":issue:`4293`.)" +"submit notifications to the main Python thread. This is particularly useful " +"for asynchronous IO operations. (Contributed by Kristján Valur Jónsson; :" +"issue:`4293`.)" #: ../../whatsnew/2.7.rst:2126 msgid "" "New function: :c:func:`PyCode_NewEmpty` creates an empty code object; only " "the filename, function name, and first line number are required. This is " "useful for extension modules that are attempting to construct a more useful " -"traceback stack. Previously such extensions needed to call " -":c:func:`PyCode_New`, which had many more arguments. (Added by Jeffrey " -"Yasskin.)" +"traceback stack. Previously such extensions needed to call :c:func:" +"`PyCode_New`, which had many more arguments. (Added by Jeffrey Yasskin.)" msgstr "" "New function: :c:func:`PyCode_NewEmpty` creates an empty code object; only " "the filename, function name, and first line number are required. This is " "useful for extension modules that are attempting to construct a more useful " -"traceback stack. Previously such extensions needed to call " -":c:func:`PyCode_New`, which had many more arguments. (Added by Jeffrey " -"Yasskin.)" +"traceback stack. Previously such extensions needed to call :c:func:" +"`PyCode_New`, which had many more arguments. (Added by Jeffrey Yasskin.)" #: ../../whatsnew/2.7.rst:2133 msgid "" @@ -3642,28 +3586,28 @@ msgstr "" #: ../../whatsnew/2.7.rst:2145 msgid "" -"New functions: :c:func:`PyLong_AsLongAndOverflow` and " -":c:func:`PyLong_AsLongLongAndOverflow` approximates a Python long integer " -"as a C :c:type:`long` or :c:type:`long long`. If the number is too large to " -"fit into the output type, an *overflow* flag is set and returned to the " -"caller. (Contributed by Case Van Horsen; :issue:`7528` and :issue:`7767`.)" +"New functions: :c:func:`PyLong_AsLongAndOverflow` and :c:func:" +"`PyLong_AsLongLongAndOverflow` approximates a Python long integer as a C :c:" +"type:`long` or :c:type:`long long`. If the number is too large to fit into " +"the output type, an *overflow* flag is set and returned to the caller. " +"(Contributed by Case Van Horsen; :issue:`7528` and :issue:`7767`.)" msgstr "" -"New functions: :c:func:`PyLong_AsLongAndOverflow` and " -":c:func:`PyLong_AsLongLongAndOverflow` approximates a Python long integer " -"as a C :c:type:`long` or :c:type:`long long`. If the number is too large to " -"fit into the output type, an *overflow* flag is set and returned to the " -"caller. (Contributed by Case Van Horsen; :issue:`7528` and :issue:`7767`.)" +"New functions: :c:func:`PyLong_AsLongAndOverflow` and :c:func:" +"`PyLong_AsLongLongAndOverflow` approximates a Python long integer as a C :c:" +"type:`long` or :c:type:`long long`. If the number is too large to fit into " +"the output type, an *overflow* flag is set and returned to the caller. " +"(Contributed by Case Van Horsen; :issue:`7528` and :issue:`7767`.)" #: ../../whatsnew/2.7.rst:2152 msgid "" -"New function: stemming from the rewrite of string-to-float conversion, a new" -" :c:func:`PyOS_string_to_double` function was added. The old " -":c:func:`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions are now " +"New function: stemming from the rewrite of string-to-float conversion, a " +"new :c:func:`PyOS_string_to_double` function was added. The old :c:func:" +"`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions are now " "deprecated." msgstr "" -"New function: stemming from the rewrite of string-to-float conversion, a new" -" :c:func:`PyOS_string_to_double` function was added. The old " -":c:func:`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions are now " +"New function: stemming from the rewrite of string-to-float conversion, a " +"new :c:func:`PyOS_string_to_double` function was added. The old :c:func:" +"`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions are now " "deprecated." #: ../../whatsnew/2.7.rst:2157 @@ -3680,16 +3624,16 @@ msgstr "" #: ../../whatsnew/2.7.rst:2162 msgid "" -"This function was added to close a security hole for applications that embed" -" Python. The old function, :c:func:`PySys_SetArgv`, would always update " +"This function was added to close a security hole for applications that embed " +"Python. The old function, :c:func:`PySys_SetArgv`, would always update " "``sys.path``, and sometimes it would add the current directory. This meant " "that, if you ran an application embedding Python in a directory controlled " "by someone else, attackers could put a Trojan-horse module in the directory " "(say, a file named :file:`os.py`) that your application would then import " "and run." msgstr "" -"This function was added to close a security hole for applications that embed" -" Python. The old function, :c:func:`PySys_SetArgv`, would always update " +"This function was added to close a security hole for applications that embed " +"Python. The old function, :c:func:`PySys_SetArgv`, would always update " "``sys.path``, and sometimes it would add the current directory. This meant " "that, if you ran an application embedding Python in a directory controlled " "by someone else, attackers could put a Trojan-horse module in the directory " @@ -3698,45 +3642,45 @@ msgstr "" #: ../../whatsnew/2.7.rst:2170 msgid "" -"If you maintain a C/C++ application that embeds Python, check whether you're" -" calling :c:func:`PySys_SetArgv` and carefully consider whether the " +"If you maintain a C/C++ application that embeds Python, check whether you're " +"calling :c:func:`PySys_SetArgv` and carefully consider whether the " "application should be using :c:func:`PySys_SetArgvEx` with *updatepath* set " "to false." msgstr "" -"If you maintain a C/C++ application that embeds Python, check whether you're" -" calling :c:func:`PySys_SetArgv` and carefully consider whether the " +"If you maintain a C/C++ application that embeds Python, check whether you're " +"calling :c:func:`PySys_SetArgv` and carefully consider whether the " "application should be using :c:func:`PySys_SetArgvEx` with *updatepath* set " "to false." #: ../../whatsnew/2.7.rst:2175 msgid "" -"Security issue reported as `CVE-2008-5983 `_; discussed in :issue:`5753`, and fixed" -" by Antoine Pitrou." +"Security issue reported as `CVE-2008-5983 `_; discussed in :issue:`5753`, and fixed by " +"Antoine Pitrou." msgstr "" -"Security issue reported as `CVE-2008-5983 `_; discussed in :issue:`5753`, and fixed" -" by Antoine Pitrou." +"Security issue reported as `CVE-2008-5983 `_; discussed in :issue:`5753`, and fixed by " +"Antoine Pitrou." #: ../../whatsnew/2.7.rst:2179 msgid "" -"New macros: the Python header files now define the following macros: " -":c:macro:`Py_ISALNUM`, :c:macro:`Py_ISALPHA`, :c:macro:`Py_ISDIGIT`, " -":c:macro:`Py_ISLOWER`, :c:macro:`Py_ISSPACE`, :c:macro:`Py_ISUPPER`, " -":c:macro:`Py_ISXDIGIT`, :c:macro:`Py_TOLOWER`, and :c:macro:`Py_TOUPPER`. " -"All of these functions are analogous to the C standard macros for " -"classifying characters, but ignore the current locale setting, because in " -"several places Python needs to analyze characters in a locale-independent " -"way. (Added by Eric Smith; :issue:`5793`.)" -msgstr "" -"New macros: the Python header files now define the following macros: " -":c:macro:`Py_ISALNUM`, :c:macro:`Py_ISALPHA`, :c:macro:`Py_ISDIGIT`, " -":c:macro:`Py_ISLOWER`, :c:macro:`Py_ISSPACE`, :c:macro:`Py_ISUPPER`, " -":c:macro:`Py_ISXDIGIT`, :c:macro:`Py_TOLOWER`, and :c:macro:`Py_TOUPPER`. " -"All of these functions are analogous to the C standard macros for " -"classifying characters, but ignore the current locale setting, because in " -"several places Python needs to analyze characters in a locale-independent " -"way. (Added by Eric Smith; :issue:`5793`.)" +"New macros: the Python header files now define the following macros: :c:" +"macro:`Py_ISALNUM`, :c:macro:`Py_ISALPHA`, :c:macro:`Py_ISDIGIT`, :c:macro:" +"`Py_ISLOWER`, :c:macro:`Py_ISSPACE`, :c:macro:`Py_ISUPPER`, :c:macro:" +"`Py_ISXDIGIT`, :c:macro:`Py_TOLOWER`, and :c:macro:`Py_TOUPPER`. All of " +"these functions are analogous to the C standard macros for classifying " +"characters, but ignore the current locale setting, because in several places " +"Python needs to analyze characters in a locale-independent way. (Added by " +"Eric Smith; :issue:`5793`.)" +msgstr "" +"New macros: the Python header files now define the following macros: :c:" +"macro:`Py_ISALNUM`, :c:macro:`Py_ISALPHA`, :c:macro:`Py_ISDIGIT`, :c:macro:" +"`Py_ISLOWER`, :c:macro:`Py_ISSPACE`, :c:macro:`Py_ISUPPER`, :c:macro:" +"`Py_ISXDIGIT`, :c:macro:`Py_TOLOWER`, and :c:macro:`Py_TOUPPER`. All of " +"these functions are analogous to the C standard macros for classifying " +"characters, but ignore the current locale setting, because in several places " +"Python needs to analyze characters in a locale-independent way. (Added by " +"Eric Smith; :issue:`5793`.)" #: ../../whatsnew/2.7.rst:2197 msgid "" @@ -3752,49 +3696,47 @@ msgstr "" #: ../../whatsnew/2.7.rst:2202 msgid "" -"New format codes: the :c:func:`PyFormat_FromString`, " -":c:func:`PyFormat_FromStringV`, and :c:func:`PyErr_Format` functions now " -"accept ``%lld`` and ``%llu`` format codes for displaying C's :c:type:`long " -"long` types. (Contributed by Mark Dickinson; :issue:`7228`.)" +"New format codes: the :c:func:`PyFormat_FromString`, :c:func:" +"`PyFormat_FromStringV`, and :c:func:`PyErr_Format` functions now accept ``" +"%lld`` and ``%llu`` format codes for displaying C's :c:type:`long long` " +"types. (Contributed by Mark Dickinson; :issue:`7228`.)" msgstr "" -"New format codes: the :c:func:`PyFormat_FromString`, " -":c:func:`PyFormat_FromStringV`, and :c:func:`PyErr_Format` functions now " -"accept ``%lld`` and ``%llu`` format codes for displaying C's :c:type:`long " -"long` types. (Contributed by Mark Dickinson; :issue:`7228`.)" +"New format codes: the :c:func:`PyFormat_FromString`, :c:func:" +"`PyFormat_FromStringV`, and :c:func:`PyErr_Format` functions now accept ``" +"%lld`` and ``%llu`` format codes for displaying C's :c:type:`long long` " +"types. (Contributed by Mark Dickinson; :issue:`7228`.)" #: ../../whatsnew/2.7.rst:2208 msgid "" "The complicated interaction between threads and process forking has been " "changed. Previously, the child process created by :func:`os.fork` might " "fail because the child is created with only a single thread running, the " -"thread performing the :func:`os.fork`. If other threads were holding a lock," -" such as Python's import lock, when the fork was performed, the lock would " +"thread performing the :func:`os.fork`. If other threads were holding a lock, " +"such as Python's import lock, when the fork was performed, the lock would " "still be marked as \"held\" in the new process. But in the child process " "nothing would ever release the lock, since the other threads weren't " -"replicated, and the child process would no longer be able to perform " -"imports." +"replicated, and the child process would no longer be able to perform imports." msgstr "" "The complicated interaction between threads and process forking has been " "changed. Previously, the child process created by :func:`os.fork` might " "fail because the child is created with only a single thread running, the " -"thread performing the :func:`os.fork`. If other threads were holding a lock," -" such as Python's import lock, when the fork was performed, the lock would " +"thread performing the :func:`os.fork`. If other threads were holding a lock, " +"such as Python's import lock, when the fork was performed, the lock would " "still be marked as \"held\" in the new process. But in the child process " "nothing would ever release the lock, since the other threads weren't " -"replicated, and the child process would no longer be able to perform " -"imports." +"replicated, and the child process would no longer be able to perform imports." #: ../../whatsnew/2.7.rst:2218 msgid "" "Python 2.7 acquires the import lock before performing an :func:`os.fork`, " -"and will also clean up any locks created using the :mod:`threading` module." -" C extension modules that have internal locks, or that call " -":c:func:`fork()` themselves, will not benefit from this clean-up." +"and will also clean up any locks created using the :mod:`threading` module. " +"C extension modules that have internal locks, or that call :c:func:`fork()` " +"themselves, will not benefit from this clean-up." msgstr "" "Python 2.7 acquires the import lock before performing an :func:`os.fork`, " -"and will also clean up any locks created using the :mod:`threading` module." -" C extension modules that have internal locks, or that call " -":c:func:`fork()` themselves, will not benefit from this clean-up." +"and will also clean up any locks created using the :mod:`threading` module. " +"C extension modules that have internal locks, or that call :c:func:`fork()` " +"themselves, will not benefit from this clean-up." #: ../../whatsnew/2.7.rst:2224 msgid "(Fixed by Thomas Wouters; :issue:`1590864`.)" @@ -3802,25 +3744,23 @@ msgstr "(Fixed by Thomas Wouters; :issue:`1590864`.)" #: ../../whatsnew/2.7.rst:2226 msgid "" -"The :c:func:`Py_Finalize` function now calls the internal " -":func:`threading._shutdown` function; this prevents some exceptions from " -"being raised when an interpreter shuts down. (Patch by Adam Olsen; " -":issue:`1722344`.)" +"The :c:func:`Py_Finalize` function now calls the internal :func:`threading." +"_shutdown` function; this prevents some exceptions from being raised when an " +"interpreter shuts down. (Patch by Adam Olsen; :issue:`1722344`.)" msgstr "" -"The :c:func:`Py_Finalize` function now calls the internal " -":func:`threading._shutdown` function; this prevents some exceptions from " -"being raised when an interpreter shuts down. (Patch by Adam Olsen; " -":issue:`1722344`.)" +"The :c:func:`Py_Finalize` function now calls the internal :func:`threading." +"_shutdown` function; this prevents some exceptions from being raised when an " +"interpreter shuts down. (Patch by Adam Olsen; :issue:`1722344`.)" #: ../../whatsnew/2.7.rst:2231 msgid "" "When using the :c:type:`PyMemberDef` structure to define attributes of a " -"type, Python will no longer let you try to delete or set a " -":const:`T_STRING_INPLACE` attribute." +"type, Python will no longer let you try to delete or set a :const:" +"`T_STRING_INPLACE` attribute." msgstr "" "When using the :c:type:`PyMemberDef` structure to define attributes of a " -"type, Python will no longer let you try to delete or set a " -":const:`T_STRING_INPLACE` attribute." +"type, Python will no longer let you try to delete or set a :const:" +"`T_STRING_INPLACE` attribute." #: ../../whatsnew/2.7.rst:2237 msgid "" @@ -3842,50 +3782,50 @@ msgstr "" #: ../../whatsnew/2.7.rst:2245 msgid "" -"New configure option: the :option:`!--with-valgrind` option will now disable" -" the pymalloc allocator, which is difficult for the Valgrind memory-error " +"New configure option: the :option:`!--with-valgrind` option will now disable " +"the pymalloc allocator, which is difficult for the Valgrind memory-error " "detector to analyze correctly. Valgrind will therefore be better at " -"detecting memory leaks and overruns. (Contributed by James Henstridge; " -":issue:`2422`.)" +"detecting memory leaks and overruns. (Contributed by James Henstridge; :" +"issue:`2422`.)" msgstr "" -"New configure option: the :option:`!--with-valgrind` option will now disable" -" the pymalloc allocator, which is difficult for the Valgrind memory-error " +"New configure option: the :option:`!--with-valgrind` option will now disable " +"the pymalloc allocator, which is difficult for the Valgrind memory-error " "detector to analyze correctly. Valgrind will therefore be better at " -"detecting memory leaks and overruns. (Contributed by James Henstridge; " -":issue:`2422`.)" +"detecting memory leaks and overruns. (Contributed by James Henstridge; :" +"issue:`2422`.)" #: ../../whatsnew/2.7.rst:2252 msgid "" -"New configure option: you can now supply an empty string to :option" -":`!--with-dbmliborder=` in order to disable all of the various DBM modules." -" (Added by Arfrever Frehtes Taifersar Arahesis; :issue:`6491`.)" +"New configure option: you can now supply an empty string to :option:`!--with-" +"dbmliborder=` in order to disable all of the various DBM modules. (Added by " +"Arfrever Frehtes Taifersar Arahesis; :issue:`6491`.)" msgstr "" -"New configure option: you can now supply an empty string to :option" -":`!--with-dbmliborder=` in order to disable all of the various DBM modules." -" (Added by Arfrever Frehtes Taifersar Arahesis; :issue:`6491`.)" +"New configure option: you can now supply an empty string to :option:`!--with-" +"dbmliborder=` in order to disable all of the various DBM modules. (Added by " +"Arfrever Frehtes Taifersar Arahesis; :issue:`6491`.)" #: ../../whatsnew/2.7.rst:2257 msgid "" "The :program:`configure` script now checks for floating-point rounding bugs " "on certain 32-bit Intel chips and defines a :c:macro:`X87_DOUBLE_ROUNDING` " "preprocessor definition. No code currently uses this definition, but it's " -"available if anyone wishes to use it. (Added by Mark Dickinson; " -":issue:`2937`.)" +"available if anyone wishes to use it. (Added by Mark Dickinson; :issue:" +"`2937`.)" msgstr "" "The :program:`configure` script now checks for floating-point rounding bugs " "on certain 32-bit Intel chips and defines a :c:macro:`X87_DOUBLE_ROUNDING` " "preprocessor definition. No code currently uses this definition, but it's " -"available if anyone wishes to use it. (Added by Mark Dickinson; " -":issue:`2937`.)" +"available if anyone wishes to use it. (Added by Mark Dickinson; :issue:" +"`2937`.)" #: ../../whatsnew/2.7.rst:2263 msgid "" -":program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile variable" -" for supporting C++ linking. (Contributed by Arfrever Frehtes Taifersar " +":program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile variable " +"for supporting C++ linking. (Contributed by Arfrever Frehtes Taifersar " "Arahesis; :issue:`1222585`.)" msgstr "" -":program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile variable" -" for supporting C++ linking. (Contributed by Arfrever Frehtes Taifersar " +":program:`configure` also now sets a :envvar:`LDCXXSHARED` Makefile variable " +"for supporting C++ linking. (Contributed by Arfrever Frehtes Taifersar " "Arahesis; :issue:`1222585`.)" #: ../../whatsnew/2.7.rst:2267 @@ -3910,37 +3850,37 @@ msgstr "Capsules" #: ../../whatsnew/2.7.rst:2279 msgid "" -"Python 3.1 adds a new C datatype, :c:type:`PyCapsule`, for providing a C API" -" to an extension module. A capsule is essentially the holder of a C ``void " -"*`` pointer, and is made available as a module attribute; for example, the " -":mod:`socket` module's API is exposed as ``socket.CAPI``, and " -":mod:`unicodedata` exposes ``ucnhash_CAPI``. Other extensions can import " -"the module, access its dictionary to get the capsule object, and then get " -"the ``void *`` pointer, which will usually point to an array of pointers to " -"the module's various API functions." -msgstr "" -"Python 3.1 adds a new C datatype, :c:type:`PyCapsule`, for providing a C API" -" to an extension module. A capsule is essentially the holder of a C ``void " -"*`` pointer, and is made available as a module attribute; for example, the " -":mod:`socket` module's API is exposed as ``socket.CAPI``, and " -":mod:`unicodedata` exposes ``ucnhash_CAPI``. Other extensions can import " -"the module, access its dictionary to get the capsule object, and then get " -"the ``void *`` pointer, which will usually point to an array of pointers to " -"the module's various API functions." +"Python 3.1 adds a new C datatype, :c:type:`PyCapsule`, for providing a C API " +"to an extension module. A capsule is essentially the holder of a C ``void " +"*`` pointer, and is made available as a module attribute; for example, the :" +"mod:`socket` module's API is exposed as ``socket.CAPI``, and :mod:" +"`unicodedata` exposes ``ucnhash_CAPI``. Other extensions can import the " +"module, access its dictionary to get the capsule object, and then get the " +"``void *`` pointer, which will usually point to an array of pointers to the " +"module's various API functions." +msgstr "" +"Python 3.1 adds a new C datatype, :c:type:`PyCapsule`, for providing a C API " +"to an extension module. A capsule is essentially the holder of a C ``void " +"*`` pointer, and is made available as a module attribute; for example, the :" +"mod:`socket` module's API is exposed as ``socket.CAPI``, and :mod:" +"`unicodedata` exposes ``ucnhash_CAPI``. Other extensions can import the " +"module, access its dictionary to get the capsule object, and then get the " +"``void *`` pointer, which will usually point to an array of pointers to the " +"module's various API functions." #: ../../whatsnew/2.7.rst:2288 msgid "" "There is an existing data type already used for this, :c:type:`PyCObject`, " "but it doesn't provide type safety. Evil code written in pure Python could " -"cause a segmentation fault by taking a :c:type:`PyCObject` from module A and" -" somehow substituting it for the :c:type:`PyCObject` in module B. Capsules" -" know their own name, and getting the pointer requires providing the name:" +"cause a segmentation fault by taking a :c:type:`PyCObject` from module A and " +"somehow substituting it for the :c:type:`PyCObject` in module B. Capsules " +"know their own name, and getting the pointer requires providing the name:" msgstr "" "There is an existing data type already used for this, :c:type:`PyCObject`, " "but it doesn't provide type safety. Evil code written in pure Python could " -"cause a segmentation fault by taking a :c:type:`PyCObject` from module A and" -" somehow substituting it for the :c:type:`PyCObject` in module B. Capsules" -" know their own name, and getting the pointer requires providing the name:" +"cause a segmentation fault by taking a :c:type:`PyCObject` from module A and " +"somehow substituting it for the :c:type:`PyCObject` in module B. Capsules " +"know their own name, and getting the pointer requires providing the name:" #: ../../whatsnew/2.7.rst:2306 msgid "" @@ -3957,24 +3897,24 @@ msgstr "" #: ../../whatsnew/2.7.rst:2311 msgid "" "Python 2.7 now uses capsules internally to provide various extension-module " -"APIs, but the :c:func:`PyCObject_AsVoidPtr` was modified to handle capsules," -" preserving compile-time compatibility with the :c:type:`CObject` interface." -" Use of :c:func:`PyCObject_AsVoidPtr` will signal a " -":exc:`PendingDeprecationWarning`, which is silent by default." +"APIs, but the :c:func:`PyCObject_AsVoidPtr` was modified to handle capsules, " +"preserving compile-time compatibility with the :c:type:`CObject` interface. " +"Use of :c:func:`PyCObject_AsVoidPtr` will signal a :exc:" +"`PendingDeprecationWarning`, which is silent by default." msgstr "" "Python 2.7 now uses capsules internally to provide various extension-module " -"APIs, but the :c:func:`PyCObject_AsVoidPtr` was modified to handle capsules," -" preserving compile-time compatibility with the :c:type:`CObject` interface." -" Use of :c:func:`PyCObject_AsVoidPtr` will signal a " -":exc:`PendingDeprecationWarning`, which is silent by default." +"APIs, but the :c:func:`PyCObject_AsVoidPtr` was modified to handle capsules, " +"preserving compile-time compatibility with the :c:type:`CObject` interface. " +"Use of :c:func:`PyCObject_AsVoidPtr` will signal a :exc:" +"`PendingDeprecationWarning`, which is silent by default." #: ../../whatsnew/2.7.rst:2318 msgid "" -"Implemented in Python 3.1 and backported to 2.7 by Larry Hastings; discussed" -" in :issue:`5630`." +"Implemented in Python 3.1 and backported to 2.7 by Larry Hastings; discussed " +"in :issue:`5630`." msgstr "" -"Implemented in Python 3.1 and backported to 2.7 by Larry Hastings; discussed" -" in :issue:`5630`." +"Implemented in Python 3.1 and backported to 2.7 by Larry Hastings; discussed " +"in :issue:`5630`." #: ../../whatsnew/2.7.rst:2325 msgid "Port-Specific Changes: Windows" @@ -3982,61 +3922,57 @@ msgstr "Port-Specific Changes: Windows" #: ../../whatsnew/2.7.rst:2327 msgid "" -"The :mod:`msvcrt` module now contains some constants from the " -":file:`crtassem.h` header file: :data:`CRT_ASSEMBLY_VERSION`, " -":data:`VC_ASSEMBLY_PUBLICKEYTOKEN`, and " -":data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`. (Contributed by David Cournapeau; " -":issue:`4365`.)" +"The :mod:`msvcrt` module now contains some constants from the :file:" +"`crtassem.h` header file: :data:`CRT_ASSEMBLY_VERSION`, :data:" +"`VC_ASSEMBLY_PUBLICKEYTOKEN`, and :data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`. " +"(Contributed by David Cournapeau; :issue:`4365`.)" msgstr "" -"The :mod:`msvcrt` module now contains some constants from the " -":file:`crtassem.h` header file: :data:`CRT_ASSEMBLY_VERSION`, " -":data:`VC_ASSEMBLY_PUBLICKEYTOKEN`, and " -":data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`. (Contributed by David Cournapeau; " -":issue:`4365`.)" +"The :mod:`msvcrt` module now contains some constants from the :file:" +"`crtassem.h` header file: :data:`CRT_ASSEMBLY_VERSION`, :data:" +"`VC_ASSEMBLY_PUBLICKEYTOKEN`, and :data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`. " +"(Contributed by David Cournapeau; :issue:`4365`.)" #: ../../whatsnew/2.7.rst:2334 msgid "" -"The :mod:`_winreg` module for accessing the registry now implements the " -":func:`~_winreg.CreateKeyEx` and :func:`~_winreg.DeleteKeyEx` functions, " +"The :mod:`_winreg` module for accessing the registry now implements the :" +"func:`~_winreg.CreateKeyEx` and :func:`~_winreg.DeleteKeyEx` functions, " "extended versions of previously-supported functions that take several extra " -"arguments. The :func:`~_winreg.DisableReflectionKey`, " -":func:`~_winreg.EnableReflectionKey`, and " -":func:`~_winreg.QueryReflectionKey` were also tested and documented. " -"(Implemented by Brian Curtin: :issue:`7347`.)" +"arguments. The :func:`~_winreg.DisableReflectionKey`, :func:`~_winreg." +"EnableReflectionKey`, and :func:`~_winreg.QueryReflectionKey` were also " +"tested and documented. (Implemented by Brian Curtin: :issue:`7347`.)" msgstr "" -"The :mod:`_winreg` module for accessing the registry now implements the " -":func:`~_winreg.CreateKeyEx` and :func:`~_winreg.DeleteKeyEx` functions, " +"The :mod:`_winreg` module for accessing the registry now implements the :" +"func:`~_winreg.CreateKeyEx` and :func:`~_winreg.DeleteKeyEx` functions, " "extended versions of previously-supported functions that take several extra " -"arguments. The :func:`~_winreg.DisableReflectionKey`, " -":func:`~_winreg.EnableReflectionKey`, and " -":func:`~_winreg.QueryReflectionKey` were also tested and documented. " -"(Implemented by Brian Curtin: :issue:`7347`.)" +"arguments. The :func:`~_winreg.DisableReflectionKey`, :func:`~_winreg." +"EnableReflectionKey`, and :func:`~_winreg.QueryReflectionKey` were also " +"tested and documented. (Implemented by Brian Curtin: :issue:`7347`.)" #: ../../whatsnew/2.7.rst:2342 msgid "" "The new :c:func:`_beginthreadex` API is used to start threads, and the " -"native thread-local storage functions are now used. (Contributed by Kristján" -" Valur Jónsson; :issue:`3582`.)" +"native thread-local storage functions are now used. (Contributed by Kristján " +"Valur Jónsson; :issue:`3582`.)" msgstr "" "The new :c:func:`_beginthreadex` API is used to start threads, and the " -"native thread-local storage functions are now used. (Contributed by Kristján" -" Valur Jónsson; :issue:`3582`.)" +"native thread-local storage functions are now used. (Contributed by Kristján " +"Valur Jónsson; :issue:`3582`.)" #: ../../whatsnew/2.7.rst:2346 msgid "" "The :func:`os.kill` function now works on Windows. The signal value can be " "the constants :const:`CTRL_C_EVENT`, :const:`CTRL_BREAK_EVENT`, or any " -"integer. The first two constants will send :kbd:`Control-C` and :kbd" -":`Control-Break` keystroke events to subprocesses; any other value will use " -"the :c:func:`TerminateProcess` API. (Contributed by Miki Tebeka; " -":issue:`1220212`.)" +"integer. The first two constants will send :kbd:`Control-C` and :kbd:" +"`Control-Break` keystroke events to subprocesses; any other value will use " +"the :c:func:`TerminateProcess` API. (Contributed by Miki Tebeka; :issue:" +"`1220212`.)" msgstr "" "The :func:`os.kill` function now works on Windows. The signal value can be " "the constants :const:`CTRL_C_EVENT`, :const:`CTRL_BREAK_EVENT`, or any " -"integer. The first two constants will send :kbd:`Control-C` and :kbd" -":`Control-Break` keystroke events to subprocesses; any other value will use " -"the :c:func:`TerminateProcess` API. (Contributed by Miki Tebeka; " -":issue:`1220212`.)" +"integer. The first two constants will send :kbd:`Control-C` and :kbd:" +"`Control-Break` keystroke events to subprocesses; any other value will use " +"the :c:func:`TerminateProcess` API. (Contributed by Miki Tebeka; :issue:" +"`1220212`.)" #: ../../whatsnew/2.7.rst:2353 msgid "" @@ -4060,15 +3996,15 @@ msgstr "Port-Specific Changes: Mac OS X" #: ../../whatsnew/2.7.rst:2365 msgid "" -"The path ``/Library/Python/2.7/site-packages`` is now appended to " -"``sys.path``, in order to share added packages between the system " -"installation and a user-installed copy of the same version. (Changed by " -"Ronald Oussoren; :issue:`4865`.)" +"The path ``/Library/Python/2.7/site-packages`` is now appended to ``sys." +"path``, in order to share added packages between the system installation and " +"a user-installed copy of the same version. (Changed by Ronald Oussoren; :" +"issue:`4865`.)" msgstr "" -"The path ``/Library/Python/2.7/site-packages`` is now appended to " -"``sys.path``, in order to share added packages between the system " -"installation and a user-installed copy of the same version. (Changed by " -"Ronald Oussoren; :issue:`4865`.)" +"The path ``/Library/Python/2.7/site-packages`` is now appended to ``sys." +"path``, in order to share added packages between the system installation and " +"a user-installed copy of the same version. (Changed by Ronald Oussoren; :" +"issue:`4865`.)" #: ../../whatsnew/2.7.rst:2372 msgid "" @@ -4078,8 +4014,8 @@ msgid "" "such as from the python.org installers. As of macOS 10.12, Apple changed " "how the system site-packages directory is configured, which could cause " "installation of pip components, like setuptools, to fail. Packages " -"installed for the system Python will no longer be shared with user-installed" -" Pythons. (:issue:`28440`)" +"installed for the system Python will no longer be shared with user-installed " +"Pythons. (:issue:`28440`)" msgstr "" #: ../../whatsnew/2.7.rst:2383 @@ -4088,15 +4024,15 @@ msgstr "Port-Specific Changes: FreeBSD" #: ../../whatsnew/2.7.rst:2385 msgid "" -"FreeBSD 7.1's :const:`SO_SETFIB` constant, used with " -":func:`~socket.getsockopt`/:func:`~socket.setsockopt` to select an alternate" -" routing table, is now available in the :mod:`socket` module. (Added by " -"Kyle VanderBeek; :issue:`8235`.)" +"FreeBSD 7.1's :const:`SO_SETFIB` constant, used with :func:`~socket." +"getsockopt`/:func:`~socket.setsockopt` to select an alternate routing table, " +"is now available in the :mod:`socket` module. (Added by Kyle VanderBeek; :" +"issue:`8235`.)" msgstr "" -"FreeBSD 7.1's :const:`SO_SETFIB` constant, used with " -":func:`~socket.getsockopt`/:func:`~socket.setsockopt` to select an alternate" -" routing table, is now available in the :mod:`socket` module. (Added by " -"Kyle VanderBeek; :issue:`8235`.)" +"FreeBSD 7.1's :const:`SO_SETFIB` constant, used with :func:`~socket." +"getsockopt`/:func:`~socket.setsockopt` to select an alternate routing table, " +"is now available in the :mod:`socket` module. (Added by Kyle VanderBeek; :" +"issue:`8235`.)" #: ../../whatsnew/2.7.rst:2391 msgid "Other Changes and Fixes" @@ -4120,11 +4056,11 @@ msgstr "" #: ../../whatsnew/2.7.rst:2401 msgid "" -"The :file:`Tools/i18n/msgfmt.py` script now understands plural forms in " -":file:`.po` files. (Fixed by Martin von Löwis; :issue:`5464`.)" +"The :file:`Tools/i18n/msgfmt.py` script now understands plural forms in :" +"file:`.po` files. (Fixed by Martin von Löwis; :issue:`5464`.)" msgstr "" -"The :file:`Tools/i18n/msgfmt.py` script now understands plural forms in " -":file:`.po` files. (Fixed by Martin von Löwis; :issue:`5464`.)" +"The :file:`Tools/i18n/msgfmt.py` script now understands plural forms in :" +"file:`.po` files. (Fixed by Martin von Löwis; :issue:`5464`.)" #: ../../whatsnew/2.7.rst:2405 msgid "" @@ -4145,29 +4081,29 @@ msgstr "" #: ../../whatsnew/2.7.rst:2412 msgid "" "The :file:`regrtest.py` script now takes a :option:`!--randseed=` switch " -"that takes an integer that will be used as the random seed for the " -":option:`!-r` option that executes tests in random order. The :option:`!-r` " -"option also reports the seed that was used (Added by Collin Winter.)" +"that takes an integer that will be used as the random seed for the :option:" +"`!-r` option that executes tests in random order. The :option:`!-r` option " +"also reports the seed that was used (Added by Collin Winter.)" msgstr "" "The :file:`regrtest.py` script now takes a :option:`!--randseed=` switch " -"that takes an integer that will be used as the random seed for the " -":option:`!-r` option that executes tests in random order. The :option:`!-r` " -"option also reports the seed that was used (Added by Collin Winter.)" +"that takes an integer that will be used as the random seed for the :option:" +"`!-r` option that executes tests in random order. The :option:`!-r` option " +"also reports the seed that was used (Added by Collin Winter.)" #: ../../whatsnew/2.7.rst:2418 msgid "" "Another :file:`regrtest.py` switch is :option:`!-j`, which takes an integer " "specifying how many tests run in parallel. This allows reducing the total " -"runtime on multi-core machines. This option is compatible with several other" -" options, including the :option:`!-R` switch which is known to produce long " +"runtime on multi-core machines. This option is compatible with several other " +"options, including the :option:`!-R` switch which is known to produce long " "runtimes. (Added by Antoine Pitrou, :issue:`6152`.) This can also be used " "with a new :option:`!-F` switch that runs selected tests in a loop until " "they fail. (Added by Antoine Pitrou; :issue:`7312`.)" msgstr "" "Another :file:`regrtest.py` switch is :option:`!-j`, which takes an integer " "specifying how many tests run in parallel. This allows reducing the total " -"runtime on multi-core machines. This option is compatible with several other" -" options, including the :option:`!-R` switch which is known to produce long " +"runtime on multi-core machines. This option is compatible with several other " +"options, including the :option:`!-R` switch which is known to produce long " "runtimes. (Added by Antoine Pitrou, :issue:`6152`.) This can also be used " "with a new :option:`!-F` switch that runs selected tests in a loop until " "they fail. (Added by Antoine Pitrou; :issue:`7312`.)" @@ -4208,13 +4144,13 @@ msgstr "" msgid "" "The string :meth:`format` method changed the default precision used for " "floating-point and complex numbers from 6 decimal places to 12, which " -"matches the precision used by :func:`str`. (Changed by Eric Smith; " -":issue:`5920`.)" +"matches the precision used by :func:`str`. (Changed by Eric Smith; :issue:" +"`5920`.)" msgstr "" "The string :meth:`format` method changed the default precision used for " "floating-point and complex numbers from 6 decimal places to 12, which " -"matches the precision used by :func:`str`. (Changed by Eric Smith; " -":issue:`5920`.)" +"matches the precision used by :func:`str`. (Changed by Eric Smith; :issue:" +"`5920`.)" #: ../../whatsnew/2.7.rst:2450 msgid "" @@ -4249,40 +4185,40 @@ msgstr "In the standard library:" #: ../../whatsnew/2.7.rst:2468 msgid "" "Operations with :class:`~datetime.datetime` instances that resulted in a " -"year falling outside the supported range didn't always raise " -":exc:`OverflowError`. Such errors are now checked more carefully and will " -"now raise the exception. (Reported by Mark Leander, patch by Anand B. Pillai" -" and Alexander Belopolsky; :issue:`7150`.)" +"year falling outside the supported range didn't always raise :exc:" +"`OverflowError`. Such errors are now checked more carefully and will now " +"raise the exception. (Reported by Mark Leander, patch by Anand B. Pillai and " +"Alexander Belopolsky; :issue:`7150`.)" msgstr "" "Operations with :class:`~datetime.datetime` instances that resulted in a " -"year falling outside the supported range didn't always raise " -":exc:`OverflowError`. Such errors are now checked more carefully and will " -"now raise the exception. (Reported by Mark Leander, patch by Anand B. Pillai" -" and Alexander Belopolsky; :issue:`7150`.)" +"year falling outside the supported range didn't always raise :exc:" +"`OverflowError`. Such errors are now checked more carefully and will now " +"raise the exception. (Reported by Mark Leander, patch by Anand B. Pillai and " +"Alexander Belopolsky; :issue:`7150`.)" #: ../../whatsnew/2.7.rst:2474 msgid "" -"When using :class:`~decimal.Decimal` instances with a string's " -":meth:`format` method, the default alignment was previously left-alignment." -" This has been changed to right-alignment, which might change the output of" -" your programs. (Changed by Mark Dickinson; :issue:`6857`.)" +"When using :class:`~decimal.Decimal` instances with a string's :meth:" +"`format` method, the default alignment was previously left-alignment. This " +"has been changed to right-alignment, which might change the output of your " +"programs. (Changed by Mark Dickinson; :issue:`6857`.)" msgstr "" -"When using :class:`~decimal.Decimal` instances with a string's " -":meth:`format` method, the default alignment was previously left-alignment." -" This has been changed to right-alignment, which might change the output of" -" your programs. (Changed by Mark Dickinson; :issue:`6857`.)" +"When using :class:`~decimal.Decimal` instances with a string's :meth:" +"`format` method, the default alignment was previously left-alignment. This " +"has been changed to right-alignment, which might change the output of your " +"programs. (Changed by Mark Dickinson; :issue:`6857`.)" #: ../../whatsnew/2.7.rst:2480 msgid "" -"Comparisons involving a signaling NaN value (or ``sNAN``) now signal " -":const:`~decimal.InvalidOperation` instead of silently returning a true or " -"false value depending on the comparison operator. Quiet NaN values (or " -"``NaN``) are now hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" +"Comparisons involving a signaling NaN value (or ``sNAN``) now signal :const:" +"`~decimal.InvalidOperation` instead of silently returning a true or false " +"value depending on the comparison operator. Quiet NaN values (or ``NaN``) " +"are now hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" msgstr "" -"Comparisons involving a signaling NaN value (or ``sNAN``) now signal " -":const:`~decimal.InvalidOperation` instead of silently returning a true or " -"false value depending on the comparison operator. Quiet NaN values (or " -"``NaN``) are now hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" +"Comparisons involving a signaling NaN value (or ``sNAN``) now signal :const:" +"`~decimal.InvalidOperation` instead of silently returning a true or false " +"value depending on the comparison operator. Quiet NaN values (or ``NaN``) " +"are now hashable. (Fixed by Mark Dickinson; :issue:`7279`.)" #: ../../whatsnew/2.7.rst:2486 msgid "" @@ -4298,13 +4234,13 @@ msgstr "" #: ../../whatsnew/2.7.rst:2492 msgid "" -"The :meth:`~StringIO.StringIO.readline` method of " -":class:`~StringIO.StringIO` objects now does nothing when a negative length " -"is requested, as other file-like objects do. (:issue:`7348`)." +"The :meth:`~StringIO.StringIO.readline` method of :class:`~StringIO." +"StringIO` objects now does nothing when a negative length is requested, as " +"other file-like objects do. (:issue:`7348`)." msgstr "" -"The :meth:`~StringIO.StringIO.readline` method of " -":class:`~StringIO.StringIO` objects now does nothing when a negative length " -"is requested, as other file-like objects do. (:issue:`7348`)." +"The :meth:`~StringIO.StringIO.readline` method of :class:`~StringIO." +"StringIO` objects now does nothing when a negative length is requested, as " +"other file-like objects do. (:issue:`7348`)." #: ../../whatsnew/2.7.rst:2535 msgid "For C extensions:" @@ -4322,13 +4258,13 @@ msgstr "" #: ../../whatsnew/2.7.rst:2541 msgid "" -"Use the new :c:func:`PyOS_string_to_double` function instead of the old " -":c:func:`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions, which " -"are now deprecated." +"Use the new :c:func:`PyOS_string_to_double` function instead of the old :c:" +"func:`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions, which are " +"now deprecated." msgstr "" -"Use the new :c:func:`PyOS_string_to_double` function instead of the old " -":c:func:`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions, which " -"are now deprecated." +"Use the new :c:func:`PyOS_string_to_double` function instead of the old :c:" +"func:`PyOS_ascii_strtod` and :c:func:`PyOS_ascii_atof` functions, which are " +"now deprecated." #: ../../whatsnew/2.7.rst:2545 msgid "For applications that embed Python:" @@ -4336,14 +4272,14 @@ msgstr "For applications that embed Python:" #: ../../whatsnew/2.7.rst:2547 msgid "" -"The :c:func:`PySys_SetArgvEx` function was added, letting applications close" -" a security hole when the existing :c:func:`PySys_SetArgv` function was " +"The :c:func:`PySys_SetArgvEx` function was added, letting applications close " +"a security hole when the existing :c:func:`PySys_SetArgv` function was " "used. Check whether you're calling :c:func:`PySys_SetArgv` and carefully " "consider whether the application should be using :c:func:`PySys_SetArgvEx` " "with *updatepath* set to false." msgstr "" -"The :c:func:`PySys_SetArgvEx` function was added, letting applications close" -" a security hole when the existing :c:func:`PySys_SetArgv` function was " +"The :c:func:`PySys_SetArgvEx` function was added, letting applications close " +"a security hole when the existing :c:func:`PySys_SetArgv` function was " "used. Check whether you're calling :c:func:`PySys_SetArgv` and carefully " "consider whether the application should be using :c:func:`PySys_SetArgvEx` " "with *updatepath* set to false." @@ -4356,14 +4292,14 @@ msgstr "New Features Added to Python 2.7 Maintenance Releases" msgid "" "New features may be added to Python 2.7 maintenance releases when the " "situation genuinely calls for it. Any such additions must go through the " -"Python Enhancement Proposal process, and make a compelling case for why they" -" can't be adequately addressed by either adding the new feature solely to " +"Python Enhancement Proposal process, and make a compelling case for why they " +"can't be adequately addressed by either adding the new feature solely to " "Python 3, or else by publishing it on the Python Package Index." msgstr "" "New features may be added to Python 2.7 maintenance releases when the " "situation genuinely calls for it. Any such additions must go through the " -"Python Enhancement Proposal process, and make a compelling case for why they" -" can't be adequately addressed by either adding the new feature solely to " +"Python Enhancement Proposal process, and make a compelling case for why they " +"can't be adequately addressed by either adding the new feature solely to " "Python 3, or else by publishing it on the Python Package Index." #: ../../whatsnew/2.7.rst:2568 @@ -4382,8 +4318,8 @@ msgstr "" #: ../../whatsnew/2.7.rst:2576 msgid "" -"In debug mode, the ``[xxx refs]`` statistic is not written by default, the " -":envvar:`PYTHONSHOWREFCOUNT` environment variable now must also be set. " +"In debug mode, the ``[xxx refs]`` statistic is not written by default, the :" +"envvar:`PYTHONSHOWREFCOUNT` environment variable now must also be set. " "(Contributed by Victor Stinner; :issue:`31733`.)" msgstr "" @@ -4392,8 +4328,8 @@ msgid "" "When Python is compiled with ``COUNT_ALLOC`` defined, allocation counts are " "no longer dumped by default anymore: the :envvar:`PYTHONSHOWALLOCCOUNT` " "environment variable must now also be set. Moreover, allocation counts are " -"now dumped into stderr, rather than stdout. (Contributed by Victor Stinner; " -":issue:`31692`.)" +"now dumped into stderr, rather than stdout. (Contributed by Victor Stinner; :" +"issue:`31692`.)" msgstr "" #: ../../whatsnew/2.7.rst:2589 @@ -4426,12 +4362,12 @@ msgstr "PEP 466: Network Security Enhancements for Python 2.7" #: ../../whatsnew/2.7.rst:2603 msgid "" -":pep:`466` describes a number of network security enhancement proposals that" -" have been approved for inclusion in Python 2.7 maintenance releases, with " +":pep:`466` describes a number of network security enhancement proposals that " +"have been approved for inclusion in Python 2.7 maintenance releases, with " "the first of those changes appearing in the Python 2.7.7 release." msgstr "" -":pep:`466` describes a number of network security enhancement proposals that" -" have been approved for inclusion in Python 2.7 maintenance releases, with " +":pep:`466` describes a number of network security enhancement proposals that " +"have been approved for inclusion in Python 2.7 maintenance releases, with " "the first of those changes appearing in the Python 2.7.7 release." #: ../../whatsnew/2.7.rst:2607 @@ -4463,22 +4399,20 @@ msgstr ":pep:`466` relação das características adicionadas no Python 2.7.8:" #: ../../whatsnew/2.7.rst:2618 msgid "" ":func:`hashlib.pbkdf2_hmac` was backported from Python 3 to make a hashing " -"algorithm suitable for secure password storage broadly available to Python 2" -" applications. (Contributed by Alex Gaynor; :issue:`21304`.)" +"algorithm suitable for secure password storage broadly available to Python 2 " +"applications. (Contributed by Alex Gaynor; :issue:`21304`.)" msgstr "" ":func:`hashlib.pbkdf2_hmac` was backported from Python 3 to make a hashing " -"algorithm suitable for secure password storage broadly available to Python 2" -" applications. (Contributed by Alex Gaynor; :issue:`21304`.)" +"algorithm suitable for secure password storage broadly available to Python 2 " +"applications. (Contributed by Alex Gaynor; :issue:`21304`.)" #: ../../whatsnew/2.7.rst:2622 msgid "" -"OpenSSL 1.0.1h was upgraded for the official Windows installers published on" -" python.org. (contributed by Zachary Ware in :issue:`21671` for " -"CVE-2014-0224)" +"OpenSSL 1.0.1h was upgraded for the official Windows installers published on " +"python.org. (contributed by Zachary Ware in :issue:`21671` for CVE-2014-0224)" msgstr "" -"OpenSSL 1.0.1h was upgraded for the official Windows installers published on" -" python.org. (contributed by Zachary Ware in :issue:`21671` for " -"CVE-2014-0224)" +"OpenSSL 1.0.1h was upgraded for the official Windows installers published on " +"python.org. (contributed by Zachary Ware in :issue:`21671` for CVE-2014-0224)" #: ../../whatsnew/2.7.rst:2625 msgid ":pep:`466` related features added in Python 2.7.9:" @@ -4486,15 +4420,15 @@ msgstr ":pep:`466` related features added in Python 2.7.9:" #: ../../whatsnew/2.7.rst:2627 msgid "" -"Most of Python 3.4's :mod:`ssl` module was backported. This means :mod:`ssl`" -" now supports Server Name Indication, TLS1.x settings, access to the " -"platform certificate store, the :class:`~ssl.SSLContext` class, and other " -"features. (Contributed by Alex Gaynor and David Reid; :issue:`21308`.)" +"Most of Python 3.4's :mod:`ssl` module was backported. This means :mod:`ssl` " +"now supports Server Name Indication, TLS1.x settings, access to the platform " +"certificate store, the :class:`~ssl.SSLContext` class, and other features. " +"(Contributed by Alex Gaynor and David Reid; :issue:`21308`.)" msgstr "" -"Most of Python 3.4's :mod:`ssl` module was backported. This means :mod:`ssl`" -" now supports Server Name Indication, TLS1.x settings, access to the " -"platform certificate store, the :class:`~ssl.SSLContext` class, and other " -"features. (Contributed by Alex Gaynor and David Reid; :issue:`21308`.)" +"Most of Python 3.4's :mod:`ssl` module was backported. This means :mod:`ssl` " +"now supports Server Name Indication, TLS1.x settings, access to the platform " +"certificate store, the :class:`~ssl.SSLContext` class, and other features. " +"(Contributed by Alex Gaynor and David Reid; :issue:`21308`.)" #: ../../whatsnew/2.7.rst:2632 msgid "" @@ -4504,20 +4438,20 @@ msgstr "" #: ../../whatsnew/2.7.rst:2635 msgid "" -":func:`os.urandom` was changed to cache a file descriptor to " -"``/dev/urandom`` instead of reopening ``/dev/urandom`` on every call. " -"(Contributed by Alex Gaynor; :issue:`21305`.)" +":func:`os.urandom` was changed to cache a file descriptor to ``/dev/" +"urandom`` instead of reopening ``/dev/urandom`` on every call. (Contributed " +"by Alex Gaynor; :issue:`21305`.)" msgstr "" -":func:`os.urandom` was changed to cache a file descriptor to " -"``/dev/urandom`` instead of reopening ``/dev/urandom`` on every call. " -"(Contributed by Alex Gaynor; :issue:`21305`.)" +":func:`os.urandom` was changed to cache a file descriptor to ``/dev/" +"urandom`` instead of reopening ``/dev/urandom`` on every call. (Contributed " +"by Alex Gaynor; :issue:`21305`.)" #: ../../whatsnew/2.7.rst:2639 msgid "" -":data:`hashlib.algorithms_guaranteed` and " -":data:`hashlib.algorithms_available` were backported from Python 3 to make " -"it easier for Python 2 applications to select the strongest available hash " -"algorithm. (Contributed by Alex Gaynor in :issue:`21307`)" +":data:`hashlib.algorithms_guaranteed` and :data:`hashlib." +"algorithms_available` were backported from Python 3 to make it easier for " +"Python 2 applications to select the strongest available hash algorithm. " +"(Contributed by Alex Gaynor in :issue:`21307`)" msgstr "" #: ../../whatsnew/2.7.rst:2646 @@ -4526,9 +4460,9 @@ msgstr "" #: ../../whatsnew/2.7.rst:2648 msgid "" -":pep:`477` approves the inclusion of the :pep:`453` ensurepip module and the" -" improved documentation that was enabled by it in the Python 2.7 maintenance" -" releases, appearing first in the Python 2.7.9 release." +":pep:`477` approves the inclusion of the :pep:`453` ensurepip module and the " +"improved documentation that was enabled by it in the Python 2.7 maintenance " +"releases, appearing first in the Python 2.7.9 release." msgstr "" #: ../../whatsnew/2.7.rst:2654 @@ -4540,8 +4474,8 @@ msgid "" "The new :mod:`ensurepip` module (defined in :pep:`453`) provides a standard " "cross-platform mechanism to bootstrap the pip installer into Python " "installations. The version of ``pip`` included with Python 2.7.9 is ``pip`` " -"1.5.6, and future 2.7.x maintenance releases will update the bundled version" -" to the latest version of ``pip`` that is available at the time of creating " +"1.5.6, and future 2.7.x maintenance releases will update the bundled version " +"to the latest version of ``pip`` that is available at the time of creating " "the release candidate." msgstr "" @@ -4554,8 +4488,8 @@ msgstr "" #: ../../whatsnew/2.7.rst:2667 msgid "" -"For CPython :ref:`source builds on POSIX systems `," -" the ``make install`` and ``make altinstall`` commands do not bootstrap " +"For CPython :ref:`source builds on POSIX systems `, " +"the ``make install`` and ``make altinstall`` commands do not bootstrap " "``pip`` by default. This behaviour can be controlled through configure " "options, and overridden through Makefile options." msgstr "" @@ -4563,30 +4497,30 @@ msgstr "" #: ../../whatsnew/2.7.rst:2672 msgid "" "On Windows and Mac OS X, the CPython installers now default to installing " -"``pip`` along with CPython itself (users may opt out of installing it during" -" the installation process). Window users will need to opt in to the " -"automatic ``PATH`` modifications to have ``pip`` available from the command " -"line by default, otherwise it can still be accessed through the Python " -"launcher for Windows as ``py -m pip``." +"``pip`` along with CPython itself (users may opt out of installing it during " +"the installation process). Window users will need to opt in to the automatic " +"``PATH`` modifications to have ``pip`` available from the command line by " +"default, otherwise it can still be accessed through the Python launcher for " +"Windows as ``py -m pip``." msgstr "" "On Windows and Mac OS X, the CPython installers now default to installing " -"``pip`` along with CPython itself (users may opt out of installing it during" -" the installation process). Window users will need to opt in to the " -"automatic ``PATH`` modifications to have ``pip`` available from the command " -"line by default, otherwise it can still be accessed through the Python " -"launcher for Windows as ``py -m pip``." +"``pip`` along with CPython itself (users may opt out of installing it during " +"the installation process). Window users will need to opt in to the automatic " +"``PATH`` modifications to have ``pip`` available from the command line by " +"default, otherwise it can still be accessed through the Python launcher for " +"Windows as ``py -m pip``." #: ../../whatsnew/2.7.rst:2679 msgid "" "As `discussed in the PEP`__, platform packagers may choose not to install " "these commands by default, as long as, when invoked, they provide clear and " -"simple directions on how to install them on that platform (usually using the" -" system package manager)." +"simple directions on how to install them on that platform (usually using the " +"system package manager)." msgstr "" "As `discussed in the PEP`__, platform packagers may choose not to install " "these commands by default, as long as, when invoked, they provide clear and " -"simple directions on how to install them on that platform (usually using the" -" system package manager)." +"simple directions on how to install them on that platform (usually using the " +"system package manager)." #: ../../whatsnew/2.7.rst:2688 msgid "Documentation Changes" @@ -4605,12 +4539,12 @@ msgstr "" #: ../../whatsnew/2.7.rst:2698 msgid "" "However, as this migration is currently still incomplete, the legacy " -"versions of those guides remaining available as :ref:`install-index` and " -":ref:`distutils-index`." +"versions of those guides remaining available as :ref:`install-index` and :" +"ref:`distutils-index`." msgstr "" "However, as this migration is currently still incomplete, the legacy " -"versions of those guides remaining available as :ref:`install-index` and " -":ref:`distutils-index`." +"versions of those guides remaining available as :ref:`install-index` and :" +"ref:`distutils-index`." #: ../../whatsnew/2.7.rst:2705 msgid ":pep:`453` -- Explicit bootstrapping of pip in Python installations" @@ -4618,28 +4552,27 @@ msgstr ":pep:`453` -- Explicit bootstrapping of pip in Python installations" #: ../../whatsnew/2.7.rst:2705 msgid "" -"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft," -" Nick Coghlan, Martin von Löwis and Ned Deily." +"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, " +"Nick Coghlan, Martin von Löwis and Ned Deily." msgstr "" -"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft," -" Nick Coghlan, Martin von Löwis and Ned Deily." +"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, " +"Nick Coghlan, Martin von Löwis and Ned Deily." #: ../../whatsnew/2.7.rst:2709 msgid "" -"PEP 476: Enabling certificate verification by default for stdlib http " -"clients" +"PEP 476: Enabling certificate verification by default for stdlib http clients" msgstr "" "PEP 476: Ativando a verificação de certificados por padrão para clientes " "stdlib http" #: ../../whatsnew/2.7.rst:2711 msgid "" -":pep:`476` updated :mod:`httplib` and modules which use it, such as " -":mod:`urllib2` and :mod:`xmlrpclib`, to now verify that the server presents " -"a certificate which is signed by a Certificate Authority in the platform " -"trust store and whose hostname matches the hostname being requested by " -"default, significantly improving security for many applications. This change" -" was made in the Python 2.7.9 release." +":pep:`476` updated :mod:`httplib` and modules which use it, such as :mod:" +"`urllib2` and :mod:`xmlrpclib`, to now verify that the server presents a " +"certificate which is signed by a Certificate Authority in the platform trust " +"store and whose hostname matches the hostname being requested by default, " +"significantly improving security for many applications. This change was made " +"in the Python 2.7.9 release." msgstr "" #: ../../whatsnew/2.7.rst:2718 @@ -4656,9 +4589,9 @@ msgstr "" #: ../../whatsnew/2.7.rst:2737 msgid "" -":pep:`493` provides additional migration tools to support a more incremental" -" infrastructure upgrade process for environments containing applications and" -" services relying on the historically permissive processing of server " +":pep:`493` provides additional migration tools to support a more incremental " +"infrastructure upgrade process for environments containing applications and " +"services relying on the historically permissive processing of server " "certificates when establishing client HTTPS connections. These additions " "were made in the Python 2.7.12 release." msgstr "" @@ -4680,8 +4613,8 @@ msgstr "" #: ../../whatsnew/2.7.rst:2752 msgid "" -"For cases where the connection establishment code can't be modified, but the" -" overall application can be, the new :func:`ssl._https_verify_certificates` " +"For cases where the connection establishment code can't be modified, but the " +"overall application can be, the new :func:`ssl._https_verify_certificates` " "function can be used to adjust the default behaviour at runtime." msgstr "" @@ -4693,8 +4626,8 @@ msgstr "" msgid "" "To simplify cross-compilation, and to ensure that CPython can reliably be " "compiled without requiring an existing version of Python to already be " -"available, the autotools-based build system no longer attempts to implicitly" -" recompile generated files based on file modification times." +"available, the autotools-based build system no longer attempts to implicitly " +"recompile generated files based on file modification times." msgstr "" #: ../../whatsnew/2.7.rst:2765 @@ -4706,8 +4639,8 @@ msgstr "" #: ../../whatsnew/2.7.rst:2769 msgid "" -"More selective regeneration targets are also defined - see " -":source:`Makefile.pre.in` for details." +"More selective regeneration targets are also defined - see :source:`Makefile." +"pre.in` for details." msgstr "" #: ../../whatsnew/2.7.rst:2772 ../../whatsnew/2.7.rst:2785 @@ -4736,11 +4669,11 @@ msgstr "Reconhecimentos" #: ../../whatsnew/2.7.rst:2796 msgid "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Nick Coghlan, Philip Jenvey, Ryan Lovett, R. David Murray, Hugh Secker-" +"suggestions, corrections and assistance with various drafts of this article: " +"Nick Coghlan, Philip Jenvey, Ryan Lovett, R. David Murray, Hugh Secker-" "Walker." msgstr "" "The author would like to thank the following people for offering " -"suggestions, corrections and assistance with various drafts of this article:" -" Nick Coghlan, Philip Jenvey, Ryan Lovett, R. David Murray, Hugh Secker-" +"suggestions, corrections and assistance with various drafts of this article: " +"Nick Coghlan, Philip Jenvey, Ryan Lovett, R. David Murray, Hugh Secker-" "Walker." diff --git a/whatsnew/3.0.po b/whatsnew/3.0.po index 0ef1f81cf..d945070ef 100644 --- a/whatsnew/3.0.po +++ b/whatsnew/3.0.po @@ -1,21 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -55,20 +57,20 @@ msgstr "" #: ../../whatsnew/3.0.rst:63 msgid "" "This article doesn't attempt to provide a complete specification of all new " -"features, but instead tries to give a convenient overview. For full details," -" you should refer to the documentation for Python 3.0, and/or the many PEPs " +"features, but instead tries to give a convenient overview. For full details, " +"you should refer to the documentation for Python 3.0, and/or the many PEPs " "referenced in the text. If you want to understand the complete " "implementation and design rationale for a particular feature, PEPs usually " -"have more details than the regular documentation; but note that PEPs usually" -" are not kept up-to-date once a feature has been fully implemented." +"have more details than the regular documentation; but note that PEPs usually " +"are not kept up-to-date once a feature has been fully implemented." msgstr "" "This article doesn't attempt to provide a complete specification of all new " -"features, but instead tries to give a convenient overview. For full details," -" you should refer to the documentation for Python 3.0, and/or the many PEPs " +"features, but instead tries to give a convenient overview. For full details, " +"you should refer to the documentation for Python 3.0, and/or the many PEPs " "referenced in the text. If you want to understand the complete " "implementation and design rationale for a particular feature, PEPs usually " -"have more details than the regular documentation; but note that PEPs usually" -" are not kept up-to-date once a feature has been fully implemented." +"have more details than the regular documentation; but note that PEPs usually " +"are not kept up-to-date once a feature has been fully implemented." #: ../../whatsnew/3.0.rst:72 msgid "" @@ -123,24 +125,22 @@ msgstr "Note:" #: ../../whatsnew/3.0.rst:128 msgid "" "The :func:`print` function doesn't support the \"softspace\" feature of the " -"old ``print`` statement. For example, in Python 2.x, ``print \"A\\n\", " -"\"B\"`` would write ``\"A\\nB\\n\"``; but in Python 3.0, ``print(\"A\\n\", " -"\"B\")`` writes ``\"A\\n B\\n\"``." +"old ``print`` statement. For example, in Python 2.x, ``print \"A\\n\", \"B" +"\"`` would write ``\"A\\nB\\n\"``; but in Python 3.0, ``print(\"A\\n\", \"B" +"\")`` writes ``\"A\\n B\\n\"``." msgstr "" "The :func:`print` function doesn't support the \"softspace\" feature of the " -"old ``print`` statement. For example, in Python 2.x, ``print \"A\\n\", " -"\"B\"`` would write ``\"A\\nB\\n\"``; but in Python 3.0, ``print(\"A\\n\", " -"\"B\")`` writes ``\"A\\n B\\n\"``." +"old ``print`` statement. For example, in Python 2.x, ``print \"A\\n\", \"B" +"\"`` would write ``\"A\\nB\\n\"``; but in Python 3.0, ``print(\"A\\n\", \"B" +"\")`` writes ``\"A\\n B\\n\"``." #: ../../whatsnew/3.0.rst:133 msgid "" "Initially, you'll be finding yourself typing the old ``print x`` a lot in " -"interactive mode. Time to retrain your fingers to type ``print(x)`` " -"instead!" +"interactive mode. Time to retrain your fingers to type ``print(x)`` instead!" msgstr "" "Initially, you'll be finding yourself typing the old ``print x`` a lot in " -"interactive mode. Time to retrain your fingers to type ``print(x)`` " -"instead!" +"interactive mode. Time to retrain your fingers to type ``print(x)`` instead!" #: ../../whatsnew/3.0.rst:137 msgid "" @@ -162,57 +162,57 @@ msgstr "Some well-known APIs no longer return lists:" #: ../../whatsnew/3.0.rst:147 msgid "" -":class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and " -":meth:`dict.values` return \"views\" instead of lists. For example, this no" -" longer works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead " -"(this works in Python 2.5 too and is just as efficient)." +":class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and :meth:`dict." +"values` return \"views\" instead of lists. For example, this no longer " +"works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead (this " +"works in Python 2.5 too and is just as efficient)." msgstr "" -":class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and " -":meth:`dict.values` return \"views\" instead of lists. For example, this no" -" longer works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead " -"(this works in Python 2.5 too and is just as efficient)." +":class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and :meth:`dict." +"values` return \"views\" instead of lists. For example, this no longer " +"works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead (this " +"works in Python 2.5 too and is just as efficient)." #: ../../whatsnew/3.0.rst:153 msgid "" -"Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and " -":meth:`dict.itervalues` methods are no longer supported." +"Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and :meth:`dict." +"itervalues` methods are no longer supported." msgstr "" -"Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and " -":meth:`dict.itervalues` methods are no longer supported." +"Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and :meth:`dict." +"itervalues` methods are no longer supported." #: ../../whatsnew/3.0.rst:156 msgid "" ":func:`map` and :func:`filter` return iterators. If you really need a list " -"and the input sequences are all of equal length, a quick fix is to wrap " -":func:`map` in :func:`list`, e.g. ``list(map(...))``, but a better fix is " -"often to use a list comprehension (especially when the original code uses " -":keyword:`lambda`), or rewriting the code so it doesn't need a list at all." -" Particularly tricky is :func:`map` invoked for the side effects of the " -"function; the correct transformation is to use a regular :keyword:`for` loop" -" (since creating a list would just be wasteful)." +"and the input sequences are all of equal length, a quick fix is to wrap :" +"func:`map` in :func:`list`, e.g. ``list(map(...))``, but a better fix is " +"often to use a list comprehension (especially when the original code uses :" +"keyword:`lambda`), or rewriting the code so it doesn't need a list at all. " +"Particularly tricky is :func:`map` invoked for the side effects of the " +"function; the correct transformation is to use a regular :keyword:`for` loop " +"(since creating a list would just be wasteful)." msgstr "" ":func:`map` and :func:`filter` return iterators. If you really need a list " -"and the input sequences are all of equal length, a quick fix is to wrap " -":func:`map` in :func:`list`, e.g. ``list(map(...))``, but a better fix is " -"often to use a list comprehension (especially when the original code uses " -":keyword:`lambda`), or rewriting the code so it doesn't need a list at all." -" Particularly tricky is :func:`map` invoked for the side effects of the " -"function; the correct transformation is to use a regular :keyword:`for` loop" -" (since creating a list would just be wasteful)." +"and the input sequences are all of equal length, a quick fix is to wrap :" +"func:`map` in :func:`list`, e.g. ``list(map(...))``, but a better fix is " +"often to use a list comprehension (especially when the original code uses :" +"keyword:`lambda`), or rewriting the code so it doesn't need a list at all. " +"Particularly tricky is :func:`map` invoked for the side effects of the " +"function; the correct transformation is to use a regular :keyword:`for` loop " +"(since creating a list would just be wasteful)." #: ../../whatsnew/3.0.rst:167 msgid "" -"If the input sequences are not of equal length, :func:`map` will stop at the" -" termination of the shortest of the sequences. For full compatibility with " -":func:`map` from Python 2.x, also wrap the sequences in " -":func:`itertools.zip_longest`, e.g. ``map(func, *sequences)`` becomes " -"``list(map(func, itertools.zip_longest(*sequences)))``." +"If the input sequences are not of equal length, :func:`map` will stop at the " +"termination of the shortest of the sequences. For full compatibility with :" +"func:`map` from Python 2.x, also wrap the sequences in :func:`itertools." +"zip_longest`, e.g. ``map(func, *sequences)`` becomes ``list(map(func, " +"itertools.zip_longest(*sequences)))``." msgstr "" -"If the input sequences are not of equal length, :func:`map` will stop at the" -" termination of the shortest of the sequences. For full compatibility with " -":func:`map` from Python 2.x, also wrap the sequences in " -":func:`itertools.zip_longest`, e.g. ``map(func, *sequences)`` becomes " -"``list(map(func, itertools.zip_longest(*sequences)))``." +"If the input sequences are not of equal length, :func:`map` will stop at the " +"termination of the shortest of the sequences. For full compatibility with :" +"func:`map` from Python 2.x, also wrap the sequences in :func:`itertools." +"zip_longest`, e.g. ``map(func, *sequences)`` becomes ``list(map(func, " +"itertools.zip_longest(*sequences)))``." #: ../../whatsnew/3.0.rst:173 msgid "" @@ -238,45 +238,43 @@ msgstr "Python 3.0 has simplified the rules for ordering comparisons:" msgid "" "The ordering comparison operators (``<``, ``<=``, ``>=``, ``>``) raise a " "TypeError exception when the operands don't have a meaningful natural " -"ordering. Thus, expressions like ``1 < ''``, ``0 > None`` or ``len <= len``" -" are no longer valid, and e.g. ``None < None`` raises :exc:`TypeError` " -"instead of returning ``False``. A corollary is that sorting a heterogeneous" -" list no longer makes sense -- all the elements must be comparable to each " +"ordering. Thus, expressions like ``1 < ''``, ``0 > None`` or ``len <= len`` " +"are no longer valid, and e.g. ``None < None`` raises :exc:`TypeError` " +"instead of returning ``False``. A corollary is that sorting a heterogeneous " +"list no longer makes sense -- all the elements must be comparable to each " "other. Note that this does not apply to the ``==`` and ``!=`` operators: " -"objects of different incomparable types always compare unequal to each " -"other." +"objects of different incomparable types always compare unequal to each other." msgstr "" "The ordering comparison operators (``<``, ``<=``, ``>=``, ``>``) raise a " "TypeError exception when the operands don't have a meaningful natural " -"ordering. Thus, expressions like ``1 < ''``, ``0 > None`` or ``len <= len``" -" are no longer valid, and e.g. ``None < None`` raises :exc:`TypeError` " -"instead of returning ``False``. A corollary is that sorting a heterogeneous" -" list no longer makes sense -- all the elements must be comparable to each " +"ordering. Thus, expressions like ``1 < ''``, ``0 > None`` or ``len <= len`` " +"are no longer valid, and e.g. ``None < None`` raises :exc:`TypeError` " +"instead of returning ``False``. A corollary is that sorting a heterogeneous " +"list no longer makes sense -- all the elements must be comparable to each " "other. Note that this does not apply to the ``==`` and ``!=`` operators: " -"objects of different incomparable types always compare unequal to each " -"other." +"objects of different incomparable types always compare unequal to each other." #: ../../whatsnew/3.0.rst:195 msgid "" ":meth:`builtin.sorted` and :meth:`list.sort` no longer accept the *cmp* " -"argument providing a comparison function. Use the *key* argument instead. " -"N.B. the *key* and *reverse* arguments are now \"keyword-only\"." +"argument providing a comparison function. Use the *key* argument instead. N." +"B. the *key* and *reverse* arguments are now \"keyword-only\"." msgstr "" ":meth:`builtin.sorted` and :meth:`list.sort` no longer accept the *cmp* " -"argument providing a comparison function. Use the *key* argument instead. " -"N.B. the *key* and *reverse* arguments are now \"keyword-only\"." +"argument providing a comparison function. Use the *key* argument instead. N." +"B. the *key* and *reverse* arguments are now \"keyword-only\"." #: ../../whatsnew/3.0.rst:200 msgid "" "The :func:`cmp` function should be treated as gone, and the :meth:`__cmp__` " -"special method is no longer supported. Use :meth:`__lt__` for sorting, " -":meth:`__eq__` with :meth:`__hash__`, and other rich comparisons as needed. " +"special method is no longer supported. Use :meth:`__lt__` for sorting, :" +"meth:`__eq__` with :meth:`__hash__`, and other rich comparisons as needed. " "(If you really need the :func:`cmp` functionality, you could use the " "expression ``(a > b) - (a < b)`` as the equivalent for ``cmp(a, b)``.)" msgstr "" "The :func:`cmp` function should be treated as gone, and the :meth:`__cmp__` " -"special method is no longer supported. Use :meth:`__lt__` for sorting, " -":meth:`__eq__` with :meth:`__hash__`, and other rich comparisons as needed. " +"special method is no longer supported. Use :meth:`__lt__` for sorting, :" +"meth:`__eq__` with :meth:`__hash__`, and other rich comparisons as needed. " "(If you really need the :func:`cmp` functionality, you could use the " "expression ``(a > b) - (a < b)`` as the equivalent for ``cmp(a, b)``.)" @@ -287,37 +285,37 @@ msgstr "Integers" #: ../../whatsnew/3.0.rst:209 msgid "" ":pep:`237`: Essentially, :class:`long` renamed to :class:`int`. That is, " -"there is only one built-in integral type, named :class:`int`; but it behaves" -" mostly like the old :class:`long` type." +"there is only one built-in integral type, named :class:`int`; but it behaves " +"mostly like the old :class:`long` type." msgstr "" ":pep:`237`: Essentially, :class:`long` renamed to :class:`int`. That is, " -"there is only one built-in integral type, named :class:`int`; but it behaves" -" mostly like the old :class:`long` type." +"there is only one built-in integral type, named :class:`int`; but it behaves " +"mostly like the old :class:`long` type." #: ../../whatsnew/3.0.rst:213 msgid "" -":pep:`238`: An expression like ``1/2`` returns a float. Use ``1//2`` to get" -" the truncating behavior. (The latter syntax has existed for years, at " -"least since Python 2.2.)" +":pep:`238`: An expression like ``1/2`` returns a float. Use ``1//2`` to get " +"the truncating behavior. (The latter syntax has existed for years, at least " +"since Python 2.2.)" msgstr "" -":pep:`238`: An expression like ``1/2`` returns a float. Use ``1//2`` to get" -" the truncating behavior. (The latter syntax has existed for years, at " -"least since Python 2.2.)" +":pep:`238`: An expression like ``1/2`` returns a float. Use ``1//2`` to get " +"the truncating behavior. (The latter syntax has existed for years, at least " +"since Python 2.2.)" #: ../../whatsnew/3.0.rst:217 msgid "" "The :data:`sys.maxint` constant was removed, since there is no longer a " -"limit to the value of integers. However, :data:`sys.maxsize` can be used as" -" an integer larger than any practical list or string index. It conforms to " -"the implementation's \"natural\" integer size and is typically the same as " -":data:`sys.maxint` in previous releases on the same platform (assuming the " +"limit to the value of integers. However, :data:`sys.maxsize` can be used as " +"an integer larger than any practical list or string index. It conforms to " +"the implementation's \"natural\" integer size and is typically the same as :" +"data:`sys.maxint` in previous releases on the same platform (assuming the " "same build options)." msgstr "" "The :data:`sys.maxint` constant was removed, since there is no longer a " -"limit to the value of integers. However, :data:`sys.maxsize` can be used as" -" an integer larger than any practical list or string index. It conforms to " -"the implementation's \"natural\" integer size and is typically the same as " -":data:`sys.maxint` in previous releases on the same platform (assuming the " +"limit to the value of integers. However, :data:`sys.maxsize` can be used as " +"an integer larger than any practical list or string index. It conforms to " +"the implementation's \"natural\" integer size and is typically the same as :" +"data:`sys.maxint` in previous releases on the same platform (assuming the " "same build options)." #: ../../whatsnew/3.0.rst:224 @@ -350,25 +348,25 @@ msgstr "" msgid "" "Python 3.0 uses the concepts of *text* and (binary) *data* instead of " "Unicode strings and 8-bit strings. All text is Unicode; however *encoded* " -"Unicode is represented as binary data. The type used to hold text is " -":class:`str`, the type used to hold data is :class:`bytes`. The biggest " -"difference with the 2.x situation is that any attempt to mix text and data " -"in Python 3.0 raises :exc:`TypeError`, whereas if you were to mix Unicode " -"and 8-bit strings in Python 2.x, it would work if the 8-bit string happened " -"to contain only 7-bit (ASCII) bytes, but you would get " -":exc:`UnicodeDecodeError` if it contained non-ASCII values. This value-" -"specific behavior has caused numerous sad faces over the years." +"Unicode is represented as binary data. The type used to hold text is :class:" +"`str`, the type used to hold data is :class:`bytes`. The biggest difference " +"with the 2.x situation is that any attempt to mix text and data in Python " +"3.0 raises :exc:`TypeError`, whereas if you were to mix Unicode and 8-bit " +"strings in Python 2.x, it would work if the 8-bit string happened to contain " +"only 7-bit (ASCII) bytes, but you would get :exc:`UnicodeDecodeError` if it " +"contained non-ASCII values. This value-specific behavior has caused " +"numerous sad faces over the years." msgstr "" "Python 3.0 uses the concepts of *text* and (binary) *data* instead of " "Unicode strings and 8-bit strings. All text is Unicode; however *encoded* " -"Unicode is represented as binary data. The type used to hold text is " -":class:`str`, the type used to hold data is :class:`bytes`. The biggest " -"difference with the 2.x situation is that any attempt to mix text and data " -"in Python 3.0 raises :exc:`TypeError`, whereas if you were to mix Unicode " -"and 8-bit strings in Python 2.x, it would work if the 8-bit string happened " -"to contain only 7-bit (ASCII) bytes, but you would get " -":exc:`UnicodeDecodeError` if it contained non-ASCII values. This value-" -"specific behavior has caused numerous sad faces over the years." +"Unicode is represented as binary data. The type used to hold text is :class:" +"`str`, the type used to hold data is :class:`bytes`. The biggest difference " +"with the 2.x situation is that any attempt to mix text and data in Python " +"3.0 raises :exc:`TypeError`, whereas if you were to mix Unicode and 8-bit " +"strings in Python 2.x, it would work if the 8-bit string happened to contain " +"only 7-bit (ASCII) bytes, but you would get :exc:`UnicodeDecodeError` if it " +"contained non-ASCII values. This value-specific behavior has caused " +"numerous sad faces over the years." #: ../../whatsnew/3.0.rst:250 msgid "" @@ -376,17 +374,17 @@ msgid "" "uses Unicode, encodings or binary data most likely has to change. The " "change is for the better, as in the 2.x world there were numerous bugs " "having to do with mixing encoded and unencoded text. To be prepared in " -"Python 2.x, start using :class:`unicode` for all unencoded text, and " -":class:`str` for binary or encoded data only. Then the ``2to3`` tool will " -"do most of the work for you." +"Python 2.x, start using :class:`unicode` for all unencoded text, and :class:" +"`str` for binary or encoded data only. Then the ``2to3`` tool will do most " +"of the work for you." msgstr "" "As a consequence of this change in philosophy, pretty much all code that " "uses Unicode, encodings or binary data most likely has to change. The " "change is for the better, as in the 2.x world there were numerous bugs " "having to do with mixing encoded and unencoded text. To be prepared in " -"Python 2.x, start using :class:`unicode` for all unencoded text, and " -":class:`str` for binary or encoded data only. Then the ``2to3`` tool will " -"do most of the work for you." +"Python 2.x, start using :class:`unicode` for all unencoded text, and :class:" +"`str` for binary or encoded data only. Then the ``2to3`` tool will do most " +"of the work for you." #: ../../whatsnew/3.0.rst:258 msgid "" @@ -399,16 +397,16 @@ msgstr "" #: ../../whatsnew/3.0.rst:261 msgid "" "As the :class:`str` and :class:`bytes` types cannot be mixed, you must " -"always explicitly convert between them. Use :meth:`str.encode` to go from " -":class:`str` to :class:`bytes`, and :meth:`bytes.decode` to go from " -":class:`bytes` to :class:`str`. You can also use ``bytes(s, encoding=...)``" -" and ``str(b, encoding=...)``, respectively." +"always explicitly convert between them. Use :meth:`str.encode` to go from :" +"class:`str` to :class:`bytes`, and :meth:`bytes.decode` to go from :class:" +"`bytes` to :class:`str`. You can also use ``bytes(s, encoding=...)`` and " +"``str(b, encoding=...)``, respectively." msgstr "" "As the :class:`str` and :class:`bytes` types cannot be mixed, you must " -"always explicitly convert between them. Use :meth:`str.encode` to go from " -":class:`str` to :class:`bytes`, and :meth:`bytes.decode` to go from " -":class:`bytes` to :class:`str`. You can also use ``bytes(s, encoding=...)``" -" and ``str(b, encoding=...)``, respectively." +"always explicitly convert between them. Use :meth:`str.encode` to go from :" +"class:`str` to :class:`bytes`, and :meth:`bytes.decode` to go from :class:" +"`bytes` to :class:`str`. You can also use ``bytes(s, encoding=...)`` and " +"``str(b, encoding=...)``, respectively." #: ../../whatsnew/3.0.rst:268 msgid "" @@ -424,15 +422,15 @@ msgstr "" #: ../../whatsnew/3.0.rst:274 msgid "" -"All backslashes in raw string literals are interpreted literally. This means" -" that ``'\\U'`` and ``'\\u'`` escapes in raw strings are not treated " +"All backslashes in raw string literals are interpreted literally. This means " +"that ``'\\U'`` and ``'\\u'`` escapes in raw strings are not treated " "specially. For example, ``r'\\u20ac'`` is a string of 6 characters in " "Python 3.0, whereas in 2.6, ``ur'\\u20ac'`` was the single \"euro\" " "character. (Of course, this change only affects raw string literals; the " "euro character is ``'\\u20ac'`` in Python 3.0.)" msgstr "" -"All backslashes in raw string literals are interpreted literally. This means" -" that ``'\\U'`` and ``'\\u'`` escapes in raw strings are not treated " +"All backslashes in raw string literals are interpreted literally. This means " +"that ``'\\U'`` and ``'\\u'`` escapes in raw strings are not treated " "specially. For example, ``r'\\u20ac'`` is a string of 6 characters in " "Python 3.0, whereas in 2.6, ``ur'\\u20ac'`` was the single \"euro\" " "character. (Of course, this change only affects raw string literals; the " @@ -440,17 +438,17 @@ msgstr "" #: ../../whatsnew/3.0.rst:281 msgid "" -"The built-in :class:`basestring` abstract type was removed. Use " -":class:`str` instead. The :class:`str` and :class:`bytes` types don't have " -"functionality enough in common to warrant a shared base class. The ``2to3``" -" tool (see below) replaces every occurrence of :class:`basestring` with " -":class:`str`." +"The built-in :class:`basestring` abstract type was removed. Use :class:" +"`str` instead. The :class:`str` and :class:`bytes` types don't have " +"functionality enough in common to warrant a shared base class. The ``2to3`` " +"tool (see below) replaces every occurrence of :class:`basestring` with :" +"class:`str`." msgstr "" -"The built-in :class:`basestring` abstract type was removed. Use " -":class:`str` instead. The :class:`str` and :class:`bytes` types don't have " -"functionality enough in common to warrant a shared base class. The ``2to3``" -" tool (see below) replaces every occurrence of :class:`basestring` with " -":class:`str`." +"The built-in :class:`basestring` abstract type was removed. Use :class:" +"`str` instead. The :class:`str` and :class:`bytes` types don't have " +"functionality enough in common to warrant a shared base class. The ``2to3`` " +"tool (see below) replaces every occurrence of :class:`basestring` with :" +"class:`str`." #: ../../whatsnew/3.0.rst:287 msgid "" @@ -459,12 +457,12 @@ msgid "" "Binary files (opened with a ``b`` in the mode argument) always use bytes in " "memory. This means that if a file is opened using an incorrect mode or " "encoding, I/O will likely fail loudly, instead of silently producing " -"incorrect data. It also means that even Unix users will have to specify the" -" correct mode (text or binary) when opening a file. There is a platform-" +"incorrect data. It also means that even Unix users will have to specify the " +"correct mode (text or binary) when opening a file. There is a platform-" "dependent default encoding, which on Unixy platforms can be set with the " "``LANG`` environment variable (and sometimes also with some other platform-" -"specific locale-related environment variables). In many cases, but not all," -" the system default is UTF-8; you should never count on this default. Any " +"specific locale-related environment variables). In many cases, but not all, " +"the system default is UTF-8; you should never count on this default. Any " "application reading or writing more than pure ASCII text should probably " "have a way to override the encoding. There is no longer any need for using " "the encoding-aware streams in the :mod:`codecs` module." @@ -474,67 +472,67 @@ msgstr "" "Binary files (opened with a ``b`` in the mode argument) always use bytes in " "memory. This means that if a file is opened using an incorrect mode or " "encoding, I/O will likely fail loudly, instead of silently producing " -"incorrect data. It also means that even Unix users will have to specify the" -" correct mode (text or binary) when opening a file. There is a platform-" +"incorrect data. It also means that even Unix users will have to specify the " +"correct mode (text or binary) when opening a file. There is a platform-" "dependent default encoding, which on Unixy platforms can be set with the " "``LANG`` environment variable (and sometimes also with some other platform-" -"specific locale-related environment variables). In many cases, but not all," -" the system default is UTF-8; you should never count on this default. Any " +"specific locale-related environment variables). In many cases, but not all, " +"the system default is UTF-8; you should never count on this default. Any " "application reading or writing more than pure ASCII text should probably " "have a way to override the encoding. There is no longer any need for using " "the encoding-aware streams in the :mod:`codecs` module." #: ../../whatsnew/3.0.rst:304 msgid "" -"The initial values of :data:`sys.stdin`, :data:`sys.stdout` and " -":data:`sys.stderr` are now unicode-only text files (i.e., they are instances" -" of :class:`io.TextIOBase`). To read and write bytes data with these " -"streams, you need to use their :data:`io.TextIOBase.buffer` attribute." +"The initial values of :data:`sys.stdin`, :data:`sys.stdout` and :data:`sys." +"stderr` are now unicode-only text files (i.e., they are instances of :class:" +"`io.TextIOBase`). To read and write bytes data with these streams, you need " +"to use their :data:`io.TextIOBase.buffer` attribute." msgstr "" -"The initial values of :data:`sys.stdin`, :data:`sys.stdout` and " -":data:`sys.stderr` are now unicode-only text files (i.e., they are instances" -" of :class:`io.TextIOBase`). To read and write bytes data with these " -"streams, you need to use their :data:`io.TextIOBase.buffer` attribute." +"The initial values of :data:`sys.stdin`, :data:`sys.stdout` and :data:`sys." +"stderr` are now unicode-only text files (i.e., they are instances of :class:" +"`io.TextIOBase`). To read and write bytes data with these streams, you need " +"to use their :data:`io.TextIOBase.buffer` attribute." #: ../../whatsnew/3.0.rst:310 msgid "" "Filenames are passed to and returned from APIs as (Unicode) strings. This " "can present platform-specific problems because on some platforms filenames " "are arbitrary byte strings. (On the other hand, on Windows filenames are " -"natively stored as Unicode.) As a work-around, most APIs (e.g. :func:`open`" -" and many functions in the :mod:`os` module) that take filenames accept " -":class:`bytes` objects as well as strings, and a few APIs have a way to ask " +"natively stored as Unicode.) As a work-around, most APIs (e.g. :func:`open` " +"and many functions in the :mod:`os` module) that take filenames accept :" +"class:`bytes` objects as well as strings, and a few APIs have a way to ask " "for a :class:`bytes` return value. Thus, :func:`os.listdir` returns a list " "of :class:`bytes` instances if the argument is a :class:`bytes` instance, " -"and :func:`os.getcwdb` returns the current working directory as a " -":class:`bytes` instance. Note that when :func:`os.listdir` returns a list " -"of strings, filenames that cannot be decoded properly are omitted rather " -"than raising :exc:`UnicodeError`." +"and :func:`os.getcwdb` returns the current working directory as a :class:" +"`bytes` instance. Note that when :func:`os.listdir` returns a list of " +"strings, filenames that cannot be decoded properly are omitted rather than " +"raising :exc:`UnicodeError`." msgstr "" "Filenames are passed to and returned from APIs as (Unicode) strings. This " "can present platform-specific problems because on some platforms filenames " "are arbitrary byte strings. (On the other hand, on Windows filenames are " -"natively stored as Unicode.) As a work-around, most APIs (e.g. :func:`open`" -" and many functions in the :mod:`os` module) that take filenames accept " -":class:`bytes` objects as well as strings, and a few APIs have a way to ask " +"natively stored as Unicode.) As a work-around, most APIs (e.g. :func:`open` " +"and many functions in the :mod:`os` module) that take filenames accept :" +"class:`bytes` objects as well as strings, and a few APIs have a way to ask " "for a :class:`bytes` return value. Thus, :func:`os.listdir` returns a list " "of :class:`bytes` instances if the argument is a :class:`bytes` instance, " -"and :func:`os.getcwdb` returns the current working directory as a " -":class:`bytes` instance. Note that when :func:`os.listdir` returns a list " -"of strings, filenames that cannot be decoded properly are omitted rather " -"than raising :exc:`UnicodeError`." +"and :func:`os.getcwdb` returns the current working directory as a :class:" +"`bytes` instance. Note that when :func:`os.listdir` returns a list of " +"strings, filenames that cannot be decoded properly are omitted rather than " +"raising :exc:`UnicodeError`." #: ../../whatsnew/3.0.rst:325 msgid "" "Some system APIs like :data:`os.environ` and :data:`sys.argv` can also " "present problems when the bytes made available by the system is not " -"interpretable using the default encoding. Setting the ``LANG`` variable and" -" rerunning the program is probably the best approach." +"interpretable using the default encoding. Setting the ``LANG`` variable and " +"rerunning the program is probably the best approach." msgstr "" "Some system APIs like :data:`os.environ` and :data:`sys.argv` can also " "present problems when the bytes made available by the system is not " -"interpretable using the default encoding. Setting the ``LANG`` variable and" -" rerunning the program is probably the best approach." +"interpretable using the default encoding. Setting the ``LANG`` variable and " +"rerunning the program is probably the best approach." #: ../../whatsnew/3.0.rst:330 msgid "" @@ -552,23 +550,23 @@ msgstr ":pep:`3120`: The default source encoding is now UTF-8." #: ../../whatsnew/3.0.rst:336 msgid "" -":pep:`3131`: Non-ASCII letters are now allowed in identifiers. (However, the" -" standard library remains ASCII-only with the exception of contributor names" -" in comments.)" +":pep:`3131`: Non-ASCII letters are now allowed in identifiers. (However, the " +"standard library remains ASCII-only with the exception of contributor names " +"in comments.)" msgstr "" -":pep:`3131`: Non-ASCII letters are now allowed in identifiers. (However, the" -" standard library remains ASCII-only with the exception of contributor names" -" in comments.)" +":pep:`3131`: Non-ASCII letters are now allowed in identifiers. (However, the " +"standard library remains ASCII-only with the exception of contributor names " +"in comments.)" #: ../../whatsnew/3.0.rst:340 msgid "" "The :mod:`StringIO` and :mod:`cStringIO` modules are gone. Instead, import " -"the :mod:`io` module and use :class:`io.StringIO` or :class:`io.BytesIO` for" -" text and data respectively." +"the :mod:`io` module and use :class:`io.StringIO` or :class:`io.BytesIO` for " +"text and data respectively." msgstr "" "The :mod:`StringIO` and :mod:`cStringIO` modules are gone. Instead, import " -"the :mod:`io` module and use :class:`io.StringIO` or :class:`io.BytesIO` for" -" text and data respectively." +"the :mod:`io` module and use :class:`io.StringIO` or :class:`io.BytesIO` for " +"text and data respectively." #: ../../whatsnew/3.0.rst:344 msgid "See also the :ref:`unicode-howto`, which was updated for Python 3.0." @@ -635,8 +633,8 @@ msgstr "" #: ../../whatsnew/3.0.rst:374 msgid "" ":pep:`3104`: :keyword:`nonlocal` statement. Using ``nonlocal x`` you can " -"now assign directly to a variable in an outer (but non-global) scope. " -":keyword:`!nonlocal` is a new reserved word." +"now assign directly to a variable in an outer (but non-global) scope. :" +"keyword:`!nonlocal` is a new reserved word." msgstr "" #: ../../whatsnew/3.0.rst:378 @@ -657,33 +655,31 @@ msgstr "This sets *a* to ``0``, *b* to ``4``, and *rest* to ``[1, 2, 3]``." #: ../../whatsnew/3.0.rst:387 msgid "" -"Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the same thing" -" as ``dict(stuff)`` but is more flexible. (This is :pep:`274` vindicated. " -":-)" +"Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the same thing " +"as ``dict(stuff)`` but is more flexible. (This is :pep:`274` vindicated. :-)" msgstr "" -"Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the same thing" -" as ``dict(stuff)`` but is more flexible. (This is :pep:`274` vindicated. " -":-)" +"Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the same thing " +"as ``dict(stuff)`` but is more flexible. (This is :pep:`274` vindicated. :-)" #: ../../whatsnew/3.0.rst:391 msgid "" -"Set literals, e.g. ``{1, 2}``. Note that ``{}`` is an empty dictionary; use" -" ``set()`` for an empty set. Set comprehensions are also supported; e.g., " +"Set literals, e.g. ``{1, 2}``. Note that ``{}`` is an empty dictionary; use " +"``set()`` for an empty set. Set comprehensions are also supported; e.g., " "``{x for x in stuff}`` means the same thing as ``set(stuff)`` but is more " "flexible." msgstr "" -"Set literals, e.g. ``{1, 2}``. Note that ``{}`` is an empty dictionary; use" -" ``set()`` for an empty set. Set comprehensions are also supported; e.g., " +"Set literals, e.g. ``{1, 2}``. Note that ``{}`` is an empty dictionary; use " +"``set()`` for an empty set. Set comprehensions are also supported; e.g., " "``{x for x in stuff}`` means the same thing as ``set(stuff)`` but is more " "flexible." #: ../../whatsnew/3.0.rst:396 msgid "" -"New octal literals, e.g. ``0o720`` (already in 2.6). The old octal literals" -" (``0720``) are gone." +"New octal literals, e.g. ``0o720`` (already in 2.6). The old octal literals " +"(``0720``) are gone." msgstr "" -"New octal literals, e.g. ``0o720`` (already in 2.6). The old octal literals" -" (``0720``) are gone." +"New octal literals, e.g. ``0o720`` (already in 2.6). The old octal literals " +"(``0720``) are gone." #: ../../whatsnew/3.0.rst:399 msgid "" @@ -707,11 +703,11 @@ msgstr "Changed Syntax" #: ../../whatsnew/3.0.rst:408 msgid "" -":pep:`3109` and :pep:`3134`: new :keyword:`raise` statement syntax: " -":samp:`raise [{expr} [from {expr}]]`. See below." +":pep:`3109` and :pep:`3134`: new :keyword:`raise` statement syntax: :samp:" +"`raise [{expr} [from {expr}]]`. See below." msgstr "" -":pep:`3109` and :pep:`3134`: new :keyword:`raise` statement syntax: " -":samp:`raise [{expr} [from {expr}]]`. See below." +":pep:`3109` and :pep:`3134`: new :keyword:`raise` statement syntax: :samp:" +"`raise [{expr} [from {expr}]]`. See below." #: ../../whatsnew/3.0.rst:411 msgid "" @@ -729,8 +725,8 @@ msgstr "" #: ../../whatsnew/3.0.rst:417 msgid "" -"Change from :keyword:`except` *exc*, *var* to :keyword:`!except` *exc* " -":keyword:`!as` *var*. See :pep:`3110`." +"Change from :keyword:`except` *exc*, *var* to :keyword:`!except` *exc* :" +"keyword:`!as` *var*. See :pep:`3110`." msgstr "" #: ../../whatsnew/3.0.rst:420 @@ -802,13 +798,13 @@ msgstr "Removed ``<>`` (use ``!=`` instead)." #: ../../whatsnew/3.0.rst:460 msgid "" "Removed keyword: :func:`exec` is no longer a keyword; it remains as a " -"function. (Fortunately the function syntax was also accepted in 2.x.) Also" -" note that :func:`exec` no longer takes a stream argument; instead of " +"function. (Fortunately the function syntax was also accepted in 2.x.) Also " +"note that :func:`exec` no longer takes a stream argument; instead of " "``exec(f)`` you can use ``exec(f.read())``." msgstr "" "Removed keyword: :func:`exec` is no longer a keyword; it remains as a " -"function. (Fortunately the function syntax was also accepted in 2.x.) Also" -" note that :func:`exec` no longer takes a stream argument; instead of " +"function. (Fortunately the function syntax was also accepted in 2.x.) Also " +"note that :func:`exec` no longer takes a stream argument; instead of " "``exec(f)`` you can use ``exec(f.read())``." #: ../../whatsnew/3.0.rst:465 @@ -847,14 +843,14 @@ msgstr "Changes Already Present In Python 2.6" #: ../../whatsnew/3.0.rst:482 msgid "" -"Since many users presumably make the jump straight from Python 2.5 to Python" -" 3.0, this section reminds the reader of new features that were originally " +"Since many users presumably make the jump straight from Python 2.5 to Python " +"3.0, this section reminds the reader of new features that were originally " "designed for Python 3.0 but that were back-ported to Python 2.6. The " "corresponding sections in :ref:`whats-new-in-2.6` should be consulted for " "longer descriptions." msgstr "" -"Since many users presumably make the jump straight from Python 2.5 to Python" -" 3.0, this section reminds the reader of new features that were originally " +"Since many users presumably make the jump straight from Python 2.5 to Python " +"3.0, this section reminds the reader of new features that were originally " "designed for Python 3.0 but that were back-ported to Python 2.6. The " "corresponding sections in :ref:`whats-new-in-2.6` should be consulted for " "longer descriptions." @@ -889,17 +885,15 @@ msgstr ":ref:`pep-0371`." msgid "" ":ref:`pep-3101`. Note: the 2.6 description mentions the :meth:`format` " "method for both 8-bit and Unicode strings. In 3.0, only the :class:`str` " -"type (text strings with Unicode support) supports this method; the " -":class:`bytes` type does not. The plan is to eventually make this the only " -"API for string formatting, and to start deprecating the ``%`` operator in " -"Python 3.1." +"type (text strings with Unicode support) supports this method; the :class:" +"`bytes` type does not. The plan is to eventually make this the only API for " +"string formatting, and to start deprecating the ``%`` operator in Python 3.1." msgstr "" ":ref:`pep-3101`. Note: the 2.6 description mentions the :meth:`format` " "method for both 8-bit and Unicode strings. In 3.0, only the :class:`str` " -"type (text strings with Unicode support) supports this method; the " -":class:`bytes` type does not. The plan is to eventually make this the only " -"API for string formatting, and to start deprecating the ``%`` operator in " -"Python 3.1." +"type (text strings with Unicode support) supports this method; the :class:" +"`bytes` type does not. The plan is to eventually make this the only API for " +"string formatting, and to start deprecating the ``%`` operator in Python 3.1." #: ../../whatsnew/3.0.rst:507 msgid "" @@ -911,62 +905,62 @@ msgstr "" #: ../../whatsnew/3.0.rst:510 msgid "" -":ref:`pep-3110`. The :keyword:`except` *exc* :keyword:`!as` *var* syntax is" -" now standard and :keyword:`!except` *exc*, *var* is no longer supported. " +":ref:`pep-3110`. The :keyword:`except` *exc* :keyword:`!as` *var* syntax is " +"now standard and :keyword:`!except` *exc*, *var* is no longer supported. " "(Of course, the :keyword:`!as` *var* part is still optional.)" msgstr "" #: ../../whatsnew/3.0.rst:515 msgid "" -":ref:`pep-3112`. The ``b\"...\"`` string literal notation (and its variants" -" like ``b'...'``, ``b\"\"\"...\"\"\"``, and ``br\"...\"``) now produces a " +":ref:`pep-3112`. The ``b\"...\"`` string literal notation (and its variants " +"like ``b'...'``, ``b\"\"\"...\"\"\"``, and ``br\"...\"``) now produces a " "literal of type :class:`bytes`." msgstr "" -":ref:`pep-3112`. The ``b\"...\"`` string literal notation (and its variants" -" like ``b'...'``, ``b\"\"\"...\"\"\"``, and ``br\"...\"``) now produces a " +":ref:`pep-3112`. The ``b\"...\"`` string literal notation (and its variants " +"like ``b'...'``, ``b\"\"\"...\"\"\"``, and ``br\"...\"``) now produces a " "literal of type :class:`bytes`.\\" #: ../../whatsnew/3.0.rst:519 msgid "" -":ref:`pep-3116`. The :mod:`io` module is now the standard way of doing file" -" I/O. The built-in :func:`open` function is now an alias for " -":func:`io.open` and has additional keyword arguments *encoding*, *errors*, " -"*newline* and *closefd*. Also note that an invalid *mode* argument now " -"raises :exc:`ValueError`, not :exc:`IOError`. The binary file object " -"underlying a text file object can be accessed as :attr:`f.buffer` (but " -"beware that the text object maintains a buffer of itself in order to speed " -"up the encoding and decoding operations)." -msgstr "" -":ref:`pep-3116`. The :mod:`io` module is now the standard way of doing file" -" I/O. The built-in :func:`open` function is now an alias for " -":func:`io.open` and has additional keyword arguments *encoding*, *errors*, " -"*newline* and *closefd*. Also note that an invalid *mode* argument now " -"raises :exc:`ValueError`, not :exc:`IOError`. The binary file object " -"underlying a text file object can be accessed as :attr:`f.buffer` (but " -"beware that the text object maintains a buffer of itself in order to speed " -"up the encoding and decoding operations)." +":ref:`pep-3116`. The :mod:`io` module is now the standard way of doing file " +"I/O. The built-in :func:`open` function is now an alias for :func:`io.open` " +"and has additional keyword arguments *encoding*, *errors*, *newline* and " +"*closefd*. Also note that an invalid *mode* argument now raises :exc:" +"`ValueError`, not :exc:`IOError`. The binary file object underlying a text " +"file object can be accessed as :attr:`f.buffer` (but beware that the text " +"object maintains a buffer of itself in order to speed up the encoding and " +"decoding operations)." +msgstr "" +":ref:`pep-3116`. The :mod:`io` module is now the standard way of doing file " +"I/O. The built-in :func:`open` function is now an alias for :func:`io.open` " +"and has additional keyword arguments *encoding*, *errors*, *newline* and " +"*closefd*. Also note that an invalid *mode* argument now raises :exc:" +"`ValueError`, not :exc:`IOError`. The binary file object underlying a text " +"file object can be accessed as :attr:`f.buffer` (but beware that the text " +"object maintains a buffer of itself in order to speed up the encoding and " +"decoding operations)." #: ../../whatsnew/3.0.rst:529 msgid "" -":ref:`pep-3118`. The old builtin :func:`buffer` is now really gone; the new" -" builtin :func:`memoryview` provides (mostly) similar functionality." +":ref:`pep-3118`. The old builtin :func:`buffer` is now really gone; the new " +"builtin :func:`memoryview` provides (mostly) similar functionality." msgstr "" -":ref:`pep-3118`. The old builtin :func:`buffer` is now really gone; the new" -" builtin :func:`memoryview` provides (mostly) similar functionality." +":ref:`pep-3118`. The old builtin :func:`buffer` is now really gone; the new " +"builtin :func:`memoryview` provides (mostly) similar functionality." #: ../../whatsnew/3.0.rst:533 msgid "" -":ref:`pep-3119`. The :mod:`abc` module and the ABCs defined in the " -":mod:`collections` module plays a somewhat more prominent role in the " -"language now, and built-in collection types like :class:`dict` and " -":class:`list` conform to the :class:`collections.MutableMapping` and " -":class:`collections.MutableSequence` ABCs, respectively." +":ref:`pep-3119`. The :mod:`abc` module and the ABCs defined in the :mod:" +"`collections` module plays a somewhat more prominent role in the language " +"now, and built-in collection types like :class:`dict` and :class:`list` " +"conform to the :class:`collections.MutableMapping` and :class:`collections." +"MutableSequence` ABCs, respectively." msgstr "" -":ref:`pep-3119`. The :mod:`abc` module and the ABCs defined in the " -":mod:`collections` module plays a somewhat more prominent role in the " -"language now, and built-in collection types like :class:`dict` and " -":class:`list` conform to the :class:`collections.MutableMapping` and " -":class:`collections.MutableSequence` ABCs, respectively." +":ref:`pep-3119`. The :mod:`abc` module and the ABCs defined in the :mod:" +"`collections` module plays a somewhat more prominent role in the language " +"now, and built-in collection types like :class:`dict` and :class:`list` " +"conform to the :class:`collections.MutableMapping` and :class:`collections." +"MutableSequence` ABCs, respectively." #: ../../whatsnew/3.0.rst:539 msgid "" @@ -997,44 +991,42 @@ msgstr "Library Changes" #: ../../whatsnew/3.0.rst:553 msgid "" "Due to time constraints, this document does not exhaustively cover the very " -"extensive changes to the standard library. :pep:`3108` is the reference for" -" the major changes to the library. Here's a capsule review:" +"extensive changes to the standard library. :pep:`3108` is the reference for " +"the major changes to the library. Here's a capsule review:" msgstr "" "Due to time constraints, this document does not exhaustively cover the very " -"extensive changes to the standard library. :pep:`3108` is the reference for" -" the major changes to the library. Here's a capsule review:" +"extensive changes to the standard library. :pep:`3108` is the reference for " +"the major changes to the library. Here's a capsule review:" #: ../../whatsnew/3.0.rst:558 msgid "" -"Many old modules were removed. Some, like :mod:`gopherlib` (no longer used)" -" and :mod:`md5` (replaced by :mod:`hashlib`), were already deprecated by " -":pep:`4`. Others were removed as a result of the removal of support for " -"various platforms such as Irix, BeOS and Mac OS 9 (see :pep:`11`). Some " -"modules were also selected for removal in Python 3.0 due to lack of use or " -"because a better replacement exists. See :pep:`3108` for an exhaustive " -"list." -msgstr "" -"Many old modules were removed. Some, like :mod:`gopherlib` (no longer used)" -" and :mod:`md5` (replaced by :mod:`hashlib`), were already deprecated by " -":pep:`4`. Others were removed as a result of the removal of support for " -"various platforms such as Irix, BeOS and Mac OS 9 (see :pep:`11`). Some " -"modules were also selected for removal in Python 3.0 due to lack of use or " -"because a better replacement exists. See :pep:`3108` for an exhaustive " -"list." +"Many old modules were removed. Some, like :mod:`gopherlib` (no longer used) " +"and :mod:`md5` (replaced by :mod:`hashlib`), were already deprecated by :pep:" +"`4`. Others were removed as a result of the removal of support for various " +"platforms such as Irix, BeOS and Mac OS 9 (see :pep:`11`). Some modules " +"were also selected for removal in Python 3.0 due to lack of use or because a " +"better replacement exists. See :pep:`3108` for an exhaustive list." +msgstr "" +"Many old modules were removed. Some, like :mod:`gopherlib` (no longer used) " +"and :mod:`md5` (replaced by :mod:`hashlib`), were already deprecated by :pep:" +"`4`. Others were removed as a result of the removal of support for various " +"platforms such as Irix, BeOS and Mac OS 9 (see :pep:`11`). Some modules " +"were also selected for removal in Python 3.0 due to lack of use or because a " +"better replacement exists. See :pep:`3108` for an exhaustive list." #: ../../whatsnew/3.0.rst:566 msgid "" "The :mod:`bsddb3` package was removed because its presence in the core " -"standard library has proved over time to be a particular burden for the core" -" developers due to testing instability and Berkeley DB's release schedule. " -"However, the package is alive and well, externally maintained at " -"https://www.jcea.es/programacion/pybsddb.htm." +"standard library has proved over time to be a particular burden for the core " +"developers due to testing instability and Berkeley DB's release schedule. " +"However, the package is alive and well, externally maintained at https://www." +"jcea.es/programacion/pybsddb.htm." msgstr "" "The :mod:`bsddb3` package was removed because its presence in the core " -"standard library has proved over time to be a particular burden for the core" -" developers due to testing instability and Berkeley DB's release schedule. " -"However, the package is alive and well, externally maintained at " -"https://www.jcea.es/programacion/pybsddb.htm." +"standard library has proved over time to be a particular burden for the core " +"developers due to testing instability and Berkeley DB's release schedule. " +"However, the package is alive and well, externally maintained at https://www." +"jcea.es/programacion/pybsddb.htm." #: ../../whatsnew/3.0.rst:572 msgid "" @@ -1119,27 +1111,27 @@ msgstr "test.support" #: ../../whatsnew/3.0.rst:588 msgid "" "A common pattern in Python 2.x is to have one version of a module " -"implemented in pure Python, with an optional accelerated version implemented" -" as a C extension; for example, :mod:`pickle` and :mod:`cPickle`. This " +"implemented in pure Python, with an optional accelerated version implemented " +"as a C extension; for example, :mod:`pickle` and :mod:`cPickle`. This " "places the burden of importing the accelerated version and falling back on " "the pure Python version on each user of these modules. In Python 3.0, the " "accelerated versions are considered implementation details of the pure " "Python versions. Users should always import the standard version, which " -"attempts to import the accelerated version and falls back to the pure Python" -" version. The :mod:`pickle` / :mod:`cPickle` pair received this treatment." -" The :mod:`profile` module is on the list for 3.1. The :mod:`StringIO` " +"attempts to import the accelerated version and falls back to the pure Python " +"version. The :mod:`pickle` / :mod:`cPickle` pair received this treatment. " +"The :mod:`profile` module is on the list for 3.1. The :mod:`StringIO` " "module has been turned into a class in the :mod:`io` module." msgstr "" "A common pattern in Python 2.x is to have one version of a module " -"implemented in pure Python, with an optional accelerated version implemented" -" as a C extension; for example, :mod:`pickle` and :mod:`cPickle`. This " +"implemented in pure Python, with an optional accelerated version implemented " +"as a C extension; for example, :mod:`pickle` and :mod:`cPickle`. This " "places the burden of importing the accelerated version and falling back on " "the pure Python version on each user of these modules. In Python 3.0, the " "accelerated versions are considered implementation details of the pure " "Python versions. Users should always import the standard version, which " -"attempts to import the accelerated version and falls back to the pure Python" -" version. The :mod:`pickle` / :mod:`cPickle` pair received this treatment." -" The :mod:`profile` module is on the list for 3.1. The :mod:`StringIO` " +"attempts to import the accelerated version and falls back to the pure Python " +"version. The :mod:`pickle` / :mod:`cPickle` pair received this treatment. " +"The :mod:`profile` module is on the list for 3.1. The :mod:`StringIO` " "module has been turned into a class in the :mod:`io` module." #: ../../whatsnew/3.0.rst:602 @@ -1152,11 +1144,11 @@ msgstr "" #: ../../whatsnew/3.0.rst:606 msgid "" -":mod:`dbm` (:mod:`anydbm`, :mod:`dbhash`, :mod:`dbm`, :mod:`dumbdbm`, " -":mod:`gdbm`, :mod:`whichdb`)." +":mod:`dbm` (:mod:`anydbm`, :mod:`dbhash`, :mod:`dbm`, :mod:`dumbdbm`, :mod:" +"`gdbm`, :mod:`whichdb`)." msgstr "" -":mod:`dbm` (:mod:`anydbm`, :mod:`dbhash`, :mod:`dbm`, :mod:`dumbdbm`, " -":mod:`gdbm`, :mod:`whichdb`)." +":mod:`dbm` (:mod:`anydbm`, :mod:`dbhash`, :mod:`dbm`, :mod:`dumbdbm`, :mod:" +"`gdbm`, :mod:`whichdb`)." #: ../../whatsnew/3.0.rst:609 msgid ":mod:`html` (:mod:`HTMLParser`, :mod:`htmlentitydefs`)." @@ -1164,39 +1156,39 @@ msgstr ":mod:`html` (:mod:`HTMLParser`, :mod:`htmlentitydefs`)." #: ../../whatsnew/3.0.rst:611 msgid "" -":mod:`http` (:mod:`httplib`, :mod:`BaseHTTPServer`, :mod:`CGIHTTPServer`, " -":mod:`SimpleHTTPServer`, :mod:`Cookie`, :mod:`cookielib`)." +":mod:`http` (:mod:`httplib`, :mod:`BaseHTTPServer`, :mod:`CGIHTTPServer`, :" +"mod:`SimpleHTTPServer`, :mod:`Cookie`, :mod:`cookielib`)." msgstr "" -":mod:`http` (:mod:`httplib`, :mod:`BaseHTTPServer`, :mod:`CGIHTTPServer`, " -":mod:`SimpleHTTPServer`, :mod:`Cookie`, :mod:`cookielib`)." +":mod:`http` (:mod:`httplib`, :mod:`BaseHTTPServer`, :mod:`CGIHTTPServer`, :" +"mod:`SimpleHTTPServer`, :mod:`Cookie`, :mod:`cookielib`)." #: ../../whatsnew/3.0.rst:615 msgid "" ":mod:`tkinter` (all :mod:`Tkinter`-related modules except :mod:`turtle`). " -"The target audience of :mod:`turtle` doesn't really care about " -":mod:`tkinter`. Also note that as of Python 2.6, the functionality of " -":mod:`turtle` has been greatly enhanced." +"The target audience of :mod:`turtle` doesn't really care about :mod:" +"`tkinter`. Also note that as of Python 2.6, the functionality of :mod:" +"`turtle` has been greatly enhanced." msgstr "" ":mod:`tkinter` (all :mod:`Tkinter`-related modules except :mod:`turtle`). " -"The target audience of :mod:`turtle` doesn't really care about " -":mod:`tkinter`. Also note that as of Python 2.6, the functionality of " -":mod:`turtle` has been greatly enhanced." +"The target audience of :mod:`turtle` doesn't really care about :mod:" +"`tkinter`. Also note that as of Python 2.6, the functionality of :mod:" +"`turtle` has been greatly enhanced." #: ../../whatsnew/3.0.rst:620 msgid "" -":mod:`urllib` (:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`, " -":mod:`robotparse`)." +":mod:`urllib` (:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`, :mod:" +"`robotparse`)." msgstr "" -":mod:`urllib` (:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`, " -":mod:`robotparse`)." +":mod:`urllib` (:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`, :mod:" +"`robotparse`)." #: ../../whatsnew/3.0.rst:623 msgid "" -":mod:`xmlrpc` (:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`, " -":mod:`SimpleXMLRPCServer`)." +":mod:`xmlrpc` (:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`, :mod:" +"`SimpleXMLRPCServer`)." msgstr "" -":mod:`xmlrpc` (:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`, " -":mod:`SimpleXMLRPCServer`)." +":mod:`xmlrpc` (:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`, :mod:" +"`SimpleXMLRPCServer`)." #: ../../whatsnew/3.0.rst:626 msgid "" @@ -1210,47 +1202,44 @@ msgstr "Killed :mod:`sets`. Use the built-in :func:`set` class." #: ../../whatsnew/3.0.rst:631 msgid "" -"Cleanup of the :mod:`sys` module: removed :func:`sys.exitfunc`, " -":func:`sys.exc_clear`, :data:`sys.exc_type`, :data:`sys.exc_value`, " -":data:`sys.exc_traceback`. (Note that :data:`sys.last_type` etc. remain.)" +"Cleanup of the :mod:`sys` module: removed :func:`sys.exitfunc`, :func:`sys." +"exc_clear`, :data:`sys.exc_type`, :data:`sys.exc_value`, :data:`sys." +"exc_traceback`. (Note that :data:`sys.last_type` etc. remain.)" msgstr "" -"Cleanup of the :mod:`sys` module: removed :func:`sys.exitfunc`, " -":func:`sys.exc_clear`, :data:`sys.exc_type`, :data:`sys.exc_value`, " -":data:`sys.exc_traceback`. (Note that :data:`sys.last_type` etc. remain.)" +"Cleanup of the :mod:`sys` module: removed :func:`sys.exitfunc`, :func:`sys." +"exc_clear`, :data:`sys.exc_type`, :data:`sys.exc_value`, :data:`sys." +"exc_traceback`. (Note that :data:`sys.last_type` etc. remain.)" #: ../../whatsnew/3.0.rst:636 msgid "" -"Cleanup of the :class:`array.array` type: the :meth:`read` and :meth:`write`" -" methods are gone; use :meth:`fromfile` and :meth:`tofile` instead. Also, " +"Cleanup of the :class:`array.array` type: the :meth:`read` and :meth:`write` " +"methods are gone; use :meth:`fromfile` and :meth:`tofile` instead. Also, " "the ``'c'`` typecode for array is gone -- use either ``'b'`` for bytes or " "``'u'`` for Unicode characters." msgstr "" -"Cleanup of the :class:`array.array` type: the :meth:`read` and :meth:`write`" -" methods are gone; use :meth:`fromfile` and :meth:`tofile` instead. Also, " +"Cleanup of the :class:`array.array` type: the :meth:`read` and :meth:`write` " +"methods are gone; use :meth:`fromfile` and :meth:`tofile` instead. Also, " "the ``'c'`` typecode for array is gone -- use either ``'b'`` for bytes or " "``'u'`` for Unicode characters." #: ../../whatsnew/3.0.rst:642 msgid "" -"Cleanup of the :mod:`operator` module: removed :func:`sequenceIncludes` and " -":func:`isCallable`." +"Cleanup of the :mod:`operator` module: removed :func:`sequenceIncludes` and :" +"func:`isCallable`." msgstr "" -"Cleanup of the :mod:`operator` module: removed :func:`sequenceIncludes` and " -":func:`isCallable`." +"Cleanup of the :mod:`operator` module: removed :func:`sequenceIncludes` and :" +"func:`isCallable`." #: ../../whatsnew/3.0.rst:645 msgid "" -"Cleanup of the :mod:`thread` module: :func:`acquire_lock` and " -":func:`release_lock` are gone; use :func:`acquire` and :func:`release` " -"instead." +"Cleanup of the :mod:`thread` module: :func:`acquire_lock` and :func:" +"`release_lock` are gone; use :func:`acquire` and :func:`release` instead." msgstr "" -"Cleanup of the :mod:`thread` module: :func:`acquire_lock` and " -":func:`release_lock` are gone; use :func:`acquire` and :func:`release` " -"instead." +"Cleanup of the :mod:`thread` module: :func:`acquire_lock` and :func:" +"`release_lock` are gone; use :func:`acquire` and :func:`release` instead." #: ../../whatsnew/3.0.rst:649 -msgid "" -"Cleanup of the :mod:`random` module: removed the :func:`jumpahead` API." +msgid "Cleanup of the :mod:`random` module: removed the :func:`jumpahead` API." msgstr "" "Cleanup of the :mod:`random` module: removed the :func:`jumpahead` API." @@ -1276,14 +1265,14 @@ msgstr "" #: ../../whatsnew/3.0.rst:661 msgid "" -":data:`string.letters` and its friends (:data:`string.lowercase` and " -":data:`string.uppercase`) are gone. Use :data:`string.ascii_letters` etc. " +":data:`string.letters` and its friends (:data:`string.lowercase` and :data:" +"`string.uppercase`) are gone. Use :data:`string.ascii_letters` etc. " "instead. (The reason for the removal is that :data:`string.letters` and " "friends had locale-specific behavior, which is a bad idea for such " "attractively-named global \"constants\".)" msgstr "" -":data:`string.letters` and its friends (:data:`string.lowercase` and " -":data:`string.uppercase`) are gone. Use :data:`string.ascii_letters` etc. " +":data:`string.letters` and its friends (:data:`string.lowercase` and :data:" +"`string.uppercase`) are gone. Use :data:`string.ascii_letters` etc. " "instead. (The reason for the removal is that :data:`string.letters` and " "friends had locale-specific behavior, which is a bad idea for such " "attractively-named global \"constants\".)" @@ -1292,13 +1281,13 @@ msgstr "" msgid "" "Renamed module :mod:`__builtin__` to :mod:`builtins` (removing the " "underscores, adding an 's'). The :data:`__builtins__` variable found in " -"most global namespaces is unchanged. To modify a builtin, you should use " -":mod:`builtins`, not :data:`__builtins__`!" +"most global namespaces is unchanged. To modify a builtin, you should use :" +"mod:`builtins`, not :data:`__builtins__`!" msgstr "" "Renamed module :mod:`__builtin__` to :mod:`builtins` (removing the " "underscores, adding an 's'). The :data:`__builtins__` variable found in " -"most global namespaces is unchanged. To modify a builtin, you should use " -":mod:`builtins`, not :data:`__builtins__`!" +"most global namespaces is unchanged. To modify a builtin, you should use :" +"mod:`builtins`, not :data:`__builtins__`!" #: ../../whatsnew/3.0.rst:675 msgid ":pep:`3101`: A New Approach To String Formatting" @@ -1330,35 +1319,33 @@ msgstr "" #: ../../whatsnew/3.0.rst:690 msgid "" -":pep:`352`: All exceptions must be derived (directly or indirectly) from " -":exc:`BaseException`. This is the root of the exception hierarchy. This is" -" not new as a recommendation, but the *requirement* to inherit from " -":exc:`BaseException` is new. (Python 2.6 still allowed classic classes to " -"be raised, and placed no restriction on what you can catch.) As a " -"consequence, string exceptions are finally truly and utterly dead." +":pep:`352`: All exceptions must be derived (directly or indirectly) from :" +"exc:`BaseException`. This is the root of the exception hierarchy. This is " +"not new as a recommendation, but the *requirement* to inherit from :exc:" +"`BaseException` is new. (Python 2.6 still allowed classic classes to be " +"raised, and placed no restriction on what you can catch.) As a consequence, " +"string exceptions are finally truly and utterly dead." msgstr "" -":pep:`352`: All exceptions must be derived (directly or indirectly) from " -":exc:`BaseException`. This is the root of the exception hierarchy. This is" -" not new as a recommendation, but the *requirement* to inherit from " -":exc:`BaseException` is new. (Python 2.6 still allowed classic classes to " -"be raised, and placed no restriction on what you can catch.) As a " -"consequence, string exceptions are finally truly and utterly dead." +":pep:`352`: All exceptions must be derived (directly or indirectly) from :" +"exc:`BaseException`. This is the root of the exception hierarchy. This is " +"not new as a recommendation, but the *requirement* to inherit from :exc:" +"`BaseException` is new. (Python 2.6 still allowed classic classes to be " +"raised, and placed no restriction on what you can catch.) As a consequence, " +"string exceptions are finally truly and utterly dead." #: ../../whatsnew/3.0.rst:698 msgid "" -"Almost all exceptions should actually derive from :exc:`Exception`; " -":exc:`BaseException` should only be used as a base class for exceptions that" -" should only be handled at the top level, such as :exc:`SystemExit` or " -":exc:`KeyboardInterrupt`. The recommended idiom for handling all exceptions" -" except for this latter category is to use :keyword:`except` " -":exc:`Exception`." +"Almost all exceptions should actually derive from :exc:`Exception`; :exc:" +"`BaseException` should only be used as a base class for exceptions that " +"should only be handled at the top level, such as :exc:`SystemExit` or :exc:" +"`KeyboardInterrupt`. The recommended idiom for handling all exceptions " +"except for this latter category is to use :keyword:`except` :exc:`Exception`." msgstr "" -"Almost all exceptions should actually derive from :exc:`Exception`; " -":exc:`BaseException` should only be used as a base class for exceptions that" -" should only be handled at the top level, such as :exc:`SystemExit` or " -":exc:`KeyboardInterrupt`. The recommended idiom for handling all exceptions" -" except for this latter category is to use :keyword:`except` " -":exc:`Exception`." +"Almost all exceptions should actually derive from :exc:`Exception`; :exc:" +"`BaseException` should only be used as a base class for exceptions that " +"should only be handled at the top level, such as :exc:`SystemExit` or :exc:" +"`KeyboardInterrupt`. The recommended idiom for handling all exceptions " +"except for this latter category is to use :keyword:`except` :exc:`Exception`." #: ../../whatsnew/3.0.rst:705 msgid ":exc:`StandardError` was removed." @@ -1374,53 +1361,53 @@ msgstr "" #: ../../whatsnew/3.0.rst:710 msgid "" -":pep:`3109`: Raising exceptions. You must now use :samp:`raise " -"{Exception}({args})` instead of :samp:`raise {Exception}, {args}`. " -"Additionally, you can no longer explicitly specify a traceback; instead, if " -"you *have* to do this, you can assign directly to the :attr:`__traceback__` " -"attribute (see below)." +":pep:`3109`: Raising exceptions. You must now use :samp:`raise {Exception}" +"({args})` instead of :samp:`raise {Exception}, {args}`. Additionally, you " +"can no longer explicitly specify a traceback; instead, if you *have* to do " +"this, you can assign directly to the :attr:`__traceback__` attribute (see " +"below)." msgstr "" -":pep:`3109`: Raising exceptions. You must now use :samp:`raise " -"{Exception}({args})` instead of :samp:`raise {Exception}, {args}`. " -"Additionally, you can no longer explicitly specify a traceback; instead, if " -"you *have* to do this, you can assign directly to the :attr:`__traceback__` " -"attribute (see below)." +":pep:`3109`: Raising exceptions. You must now use :samp:`raise {Exception}" +"({args})` instead of :samp:`raise {Exception}, {args}`. Additionally, you " +"can no longer explicitly specify a traceback; instead, if you *have* to do " +"this, you can assign directly to the :attr:`__traceback__` attribute (see " +"below)." #: ../../whatsnew/3.0.rst:716 msgid "" ":pep:`3110`: Catching exceptions. You must now use :samp:`except " "{SomeException} as {variable}` instead of :samp:`except {SomeException}, " -"{variable}`. Moreover, the *variable* is explicitly deleted when the " -":keyword:`except` block is left." +"{variable}`. Moreover, the *variable* is explicitly deleted when the :" +"keyword:`except` block is left." msgstr "" ":pep:`3110`: Catching exceptions. You must now use :samp:`except " "{SomeException} as {variable}` instead of :samp:`except {SomeException}, " -"{variable}`. Moreover, the *variable* is explicitly deleted when the " -":keyword:`except` block is left." +"{variable}`. Moreover, the *variable* is explicitly deleted when the :" +"keyword:`except` block is left." #: ../../whatsnew/3.0.rst:722 msgid "" -":pep:`3134`: Exception chaining. There are two cases: implicit chaining and" -" explicit chaining. Implicit chaining happens when an exception is raised " -"in an :keyword:`except` or :keyword:`finally` handler block. This usually " +":pep:`3134`: Exception chaining. There are two cases: implicit chaining and " +"explicit chaining. Implicit chaining happens when an exception is raised in " +"an :keyword:`except` or :keyword:`finally` handler block. This usually " "happens due to a bug in the handler block; we call this a *secondary* " -"exception. In this case, the original exception (that was being handled) is" -" saved as the :attr:`__context__` attribute of the secondary exception. " +"exception. In this case, the original exception (that was being handled) is " +"saved as the :attr:`__context__` attribute of the secondary exception. " "Explicit chaining is invoked with this syntax::" msgstr "" -":pep:`3134`: Exception chaining. There are two cases: implicit chaining and" -" explicit chaining. Implicit chaining happens when an exception is raised " -"in an :keyword:`except` or :keyword:`finally` handler block. This usually " +":pep:`3134`: Exception chaining. There are two cases: implicit chaining and " +"explicit chaining. Implicit chaining happens when an exception is raised in " +"an :keyword:`except` or :keyword:`finally` handler block. This usually " "happens due to a bug in the handler block; we call this a *secondary* " -"exception. In this case, the original exception (that was being handled) is" -" saved as the :attr:`__context__` attribute of the secondary exception. " +"exception. In this case, the original exception (that was being handled) is " +"saved as the :attr:`__context__` attribute of the secondary exception. " "Explicit chaining is invoked with this syntax::" #: ../../whatsnew/3.0.rst:733 msgid "" "(where *primary_exception* is any expression that produces an exception " -"object, probably an exception that was previously caught). In this case, the" -" primary exception is stored on the :attr:`__cause__` attribute of the " +"object, probably an exception that was previously caught). In this case, the " +"primary exception is stored on the :attr:`__cause__` attribute of the " "secondary exception. The traceback printed when an unhandled exception " "occurs walks the chain of :attr:`__cause__` and :attr:`__context__` " "attributes and prints a separate traceback for each component of the chain, " @@ -1428,8 +1415,8 @@ msgid "" "behavior.)" msgstr "" "(where *primary_exception* is any expression that produces an exception " -"object, probably an exception that was previously caught). In this case, the" -" primary exception is stored on the :attr:`__cause__` attribute of the " +"object, probably an exception that was previously caught). In this case, the " +"primary exception is stored on the :attr:`__cause__` attribute of the " "secondary exception. The traceback printed when an unhandled exception " "occurs walks the chain of :attr:`__cause__` and :attr:`__context__` " "attributes and prints a separate traceback for each component of the chain, " @@ -1438,15 +1425,15 @@ msgstr "" #: ../../whatsnew/3.0.rst:742 msgid "" -":pep:`3134`: Exception objects now store their traceback as the " -":attr:`__traceback__` attribute. This means that an exception object now " -"contains all the information pertaining to an exception, and there are fewer" -" reasons to use :func:`sys.exc_info` (though the latter is not removed)." +":pep:`3134`: Exception objects now store their traceback as the :attr:" +"`__traceback__` attribute. This means that an exception object now contains " +"all the information pertaining to an exception, and there are fewer reasons " +"to use :func:`sys.exc_info` (though the latter is not removed)." msgstr "" -":pep:`3134`: Exception objects now store their traceback as the " -":attr:`__traceback__` attribute. This means that an exception object now " -"contains all the information pertaining to an exception, and there are fewer" -" reasons to use :func:`sys.exc_info` (though the latter is not removed)." +":pep:`3134`: Exception objects now store their traceback as the :attr:" +"`__traceback__` attribute. This means that an exception object now contains " +"all the information pertaining to an exception, and there are fewer reasons " +"to use :func:`sys.exc_info` (though the latter is not removed)." #: ../../whatsnew/3.0.rst:748 msgid "" @@ -1468,11 +1455,11 @@ msgstr "Operators And Special Methods" #: ../../whatsnew/3.0.rst:760 msgid "" -"``!=`` now returns the opposite of ``==``, unless ``==`` returns " -":data:`NotImplemented`." +"``!=`` now returns the opposite of ``==``, unless ``==`` returns :data:" +"`NotImplemented`." msgstr "" -"``!=`` now returns the opposite of ``==``, unless ``==`` returns " -":data:`NotImplemented`." +"``!=`` now returns the opposite of ``==``, unless ``==`` returns :data:" +"`NotImplemented`." #: ../../whatsnew/3.0.rst:763 msgid "" @@ -1498,21 +1485,21 @@ msgstr "" #: ../../whatsnew/3.0.rst:773 msgid "" -":pep:`3114`: the standard :meth:`next` method has been renamed to " -":meth:`~iterator.__next__`." +":pep:`3114`: the standard :meth:`next` method has been renamed to :meth:" +"`~iterator.__next__`." msgstr "" -":pep:`3114`: the standard :meth:`next` method has been renamed to " -":meth:`~iterator.__next__`." +":pep:`3114`: the standard :meth:`next` method has been renamed to :meth:" +"`~iterator.__next__`." #: ../../whatsnew/3.0.rst:776 msgid "" -"The :meth:`__oct__` and :meth:`__hex__` special methods are removed -- " -":func:`oct` and :func:`hex` use :meth:`__index__` now to convert the " -"argument to an integer." +"The :meth:`__oct__` and :meth:`__hex__` special methods are removed -- :func:" +"`oct` and :func:`hex` use :meth:`__index__` now to convert the argument to " +"an integer." msgstr "" -"The :meth:`__oct__` and :meth:`__hex__` special methods are removed -- " -":func:`oct` and :func:`hex` use :meth:`__index__` now to convert the " -"argument to an integer." +"The :meth:`__oct__` and :meth:`__hex__` special methods are removed -- :func:" +"`oct` and :func:`hex` use :meth:`__index__` now to convert the argument to " +"an integer." #: ../../whatsnew/3.0.rst:780 msgid "Removed support for :attr:`__members__` and :attr:`__methods__`." @@ -1520,23 +1507,21 @@ msgstr "Removed support for :attr:`__members__` and :attr:`__methods__`." #: ../../whatsnew/3.0.rst:782 msgid "" -"The function attributes named :attr:`func_X` have been renamed to use the " -":data:`__X__` form, freeing up these names in the function attribute " -"namespace for user-defined attributes. To wit, :attr:`func_closure`, " -":attr:`func_code`, :attr:`func_defaults`, :attr:`func_dict`, " -":attr:`func_doc`, :attr:`func_globals`, :attr:`func_name` were renamed to " -":attr:`__closure__`, :attr:`__code__`, :attr:`__defaults__`, " -":attr:`~object.__dict__`, :attr:`__doc__`, :attr:`__globals__`, " -":attr:`~definition.__name__`, respectively." -msgstr "" -"The function attributes named :attr:`func_X` have been renamed to use the " -":data:`__X__` form, freeing up these names in the function attribute " -"namespace for user-defined attributes. To wit, :attr:`func_closure`, " -":attr:`func_code`, :attr:`func_defaults`, :attr:`func_dict`, " -":attr:`func_doc`, :attr:`func_globals`, :attr:`func_name` were renamed to " -":attr:`__closure__`, :attr:`__code__`, :attr:`__defaults__`, " -":attr:`~object.__dict__`, :attr:`__doc__`, :attr:`__globals__`, " -":attr:`~definition.__name__`, respectively." +"The function attributes named :attr:`func_X` have been renamed to use the :" +"data:`__X__` form, freeing up these names in the function attribute " +"namespace for user-defined attributes. To wit, :attr:`func_closure`, :attr:" +"`func_code`, :attr:`func_defaults`, :attr:`func_dict`, :attr:`func_doc`, :" +"attr:`func_globals`, :attr:`func_name` were renamed to :attr:`__closure__`, :" +"attr:`__code__`, :attr:`__defaults__`, :attr:`~object.__dict__`, :attr:" +"`__doc__`, :attr:`__globals__`, :attr:`~definition.__name__`, respectively." +msgstr "" +"The function attributes named :attr:`func_X` have been renamed to use the :" +"data:`__X__` form, freeing up these names in the function attribute " +"namespace for user-defined attributes. To wit, :attr:`func_closure`, :attr:" +"`func_code`, :attr:`func_defaults`, :attr:`func_dict`, :attr:`func_doc`, :" +"attr:`func_globals`, :attr:`func_name` were renamed to :attr:`__closure__`, :" +"attr:`__code__`, :attr:`__defaults__`, :attr:`~object.__dict__`, :attr:" +"`__doc__`, :attr:`__globals__`, :attr:`~definition.__name__`, respectively." #: ../../whatsnew/3.0.rst:792 msgid ":meth:`__nonzero__` is now :meth:`__bool__`." @@ -1576,11 +1561,11 @@ msgstr "" #: ../../whatsnew/3.0.rst:809 msgid "" -"A new built-in function :func:`next` was added to call the " -":meth:`~iterator.__next__` method on an object." +"A new built-in function :func:`next` was added to call the :meth:`~iterator." +"__next__` method on an object." msgstr "" -"A new built-in function :func:`next` was added to call the " -":meth:`~iterator.__next__` method on an object." +"A new built-in function :func:`next` was added to call the :meth:`~iterator." +"__next__` method on an object." #: ../../whatsnew/3.0.rst:812 msgid "" @@ -1589,16 +1574,16 @@ msgid "" "away from zero. (For example, ``round(2.5)`` now returns ``2`` rather than " "``3``.) ``round(x[, n])`` now delegates to ``x.__round__([n])`` instead of " "always returning a float. It generally returns an integer when called with " -"a single argument and a value of the same type as ``x`` when called with two" -" arguments." +"a single argument and a value of the same type as ``x`` when called with two " +"arguments." msgstr "" "The :func:`round` function rounding strategy and return type have changed. " "Exact halfway cases are now rounded to the nearest even result instead of " "away from zero. (For example, ``round(2.5)`` now returns ``2`` rather than " "``3``.) ``round(x[, n])`` now delegates to ``x.__round__([n])`` instead of " "always returning a float. It generally returns an integer when called with " -"a single argument and a value of the same type as ``x`` when called with two" -" arguments." +"a single argument and a value of the same type as ``x`` when called with two " +"arguments." #: ../../whatsnew/3.0.rst:821 msgid "Moved :func:`intern` to :func:`sys.intern`." @@ -1630,11 +1615,11 @@ msgstr "" #: ../../whatsnew/3.0.rst:833 msgid "" -"Removed :func:`execfile`. Instead of ``execfile(fn)`` use " -"``exec(open(fn).read())``." +"Removed :func:`execfile`. Instead of ``execfile(fn)`` use ``exec(open(fn)." +"read())``." msgstr "" -"Removed :func:`execfile`. Instead of ``execfile(fn)`` use " -"``exec(open(fn).read())``." +"Removed :func:`execfile`. Instead of ``execfile(fn)`` use ``exec(open(fn)." +"read())``." #: ../../whatsnew/3.0.rst:836 msgid "" @@ -1646,12 +1631,12 @@ msgstr "" #: ../../whatsnew/3.0.rst:839 msgid "" -"Removed :func:`reduce`. Use :func:`functools.reduce` if you really need it;" -" however, 99 percent of the time an explicit :keyword:`for` loop is more " +"Removed :func:`reduce`. Use :func:`functools.reduce` if you really need it; " +"however, 99 percent of the time an explicit :keyword:`for` loop is more " "readable." msgstr "" -"Removed :func:`reduce`. Use :func:`functools.reduce` if you really need it;" -" however, 99 percent of the time an explicit :keyword:`for` loop is more " +"Removed :func:`reduce`. Use :func:`functools.reduce` if you really need it; " +"however, 99 percent of the time an explicit :keyword:`for` loop is more " "readable." #: ../../whatsnew/3.0.rst:843 @@ -1702,21 +1687,21 @@ msgstr "No more C API support for restricted execution." #: ../../whatsnew/3.0.rst:868 msgid "" -":c:func:`PyNumber_Coerce`, :c:func:`PyNumber_CoerceEx`, " -":c:func:`PyMember_Get`, and :c:func:`PyMember_Set` C APIs are removed." +":c:func:`PyNumber_Coerce`, :c:func:`PyNumber_CoerceEx`, :c:func:" +"`PyMember_Get`, and :c:func:`PyMember_Set` C APIs are removed." msgstr "" -":c:func:`PyNumber_Coerce`, :c:func:`PyNumber_CoerceEx`, " -":c:func:`PyMember_Get`, and :c:func:`PyMember_Set` C APIs are removed." +":c:func:`PyNumber_Coerce`, :c:func:`PyNumber_CoerceEx`, :c:func:" +"`PyMember_Get`, and :c:func:`PyMember_Set` C APIs are removed." #: ../../whatsnew/3.0.rst:871 msgid "" -"New C API :c:func:`PyImport_ImportModuleNoBlock`, works like " -":c:func:`PyImport_ImportModule` but won't block on the import lock " -"(returning an error instead)." +"New C API :c:func:`PyImport_ImportModuleNoBlock`, works like :c:func:" +"`PyImport_ImportModule` but won't block on the import lock (returning an " +"error instead)." msgstr "" -"New C API :c:func:`PyImport_ImportModuleNoBlock`, works like " -":c:func:`PyImport_ImportModule` but won't block on the import lock " -"(returning an error instead)." +"New C API :c:func:`PyImport_ImportModuleNoBlock`, works like :c:func:" +"`PyImport_ImportModule` but won't block on the import lock (returning an " +"error instead)." #: ../../whatsnew/3.0.rst:875 msgid "" @@ -1799,16 +1784,16 @@ msgstr "" #: ../../whatsnew/3.0.rst:918 msgid "" "It is not recommended to try to write source code that runs unchanged under " -"both Python 2.6 and 3.0; you'd have to use a very contorted coding style, " -"e.g. avoiding ``print`` statements, metaclasses, and much more. If you are " +"both Python 2.6 and 3.0; you'd have to use a very contorted coding style, e." +"g. avoiding ``print`` statements, metaclasses, and much more. If you are " "maintaining a library that needs to support both Python 2.6 and Python 3.0, " "the best approach is to modify step 3 above by editing the 2.6 version of " "the source code and running the ``2to3`` translator again, rather than " "editing the 3.0 version of the source code." msgstr "" "It is not recommended to try to write source code that runs unchanged under " -"both Python 2.6 and 3.0; you'd have to use a very contorted coding style, " -"e.g. avoiding ``print`` statements, metaclasses, and much more. If you are " +"both Python 2.6 and 3.0; you'd have to use a very contorted coding style, e." +"g. avoiding ``print`` statements, metaclasses, and much more. If you are " "maintaining a library that needs to support both Python 2.6 and Python 3.0, " "the best approach is to modify step 3 above by editing the 2.6 version of " "the source code and running the ``2to3`` translator again, rather than " diff --git a/whatsnew/3.1.po b/whatsnew/3.1.po index 35ce20d2d..3442b2a94 100644 --- a/whatsnew/3.1.po +++ b/whatsnew/3.1.po @@ -1,23 +1,24 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Ricardo Cappellano , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" "Last-Translator: Ricardo Cappellano , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -38,8 +39,7 @@ msgstr "Raymond Hettinger" #: ../../whatsnew/3.1.rst:49 msgid "This article explains the new features in Python 3.1, compared to 3.0." -msgstr "" -"Esse artigo explica os novos recursos no Python 3.1, comparado ao 3.0." +msgstr "Esse artigo explica os novos recursos no Python 3.1, comparado ao 3.0." #: ../../whatsnew/3.1.rst:53 msgid "PEP 372: Ordered Dictionaries" @@ -47,17 +47,17 @@ msgstr "PEP 372: Dicionários Ordenados" #: ../../whatsnew/3.1.rst:55 msgid "" -"Regular Python dictionaries iterate over key/value pairs in arbitrary order." -" Over the years, a number of authors have written alternative " -"implementations that remember the order that the keys were originally " -"inserted. Based on the experiences from those implementations, a new " -":class:`collections.OrderedDict` class has been introduced." +"Regular Python dictionaries iterate over key/value pairs in arbitrary order. " +"Over the years, a number of authors have written alternative implementations " +"that remember the order that the keys were originally inserted. Based on " +"the experiences from those implementations, a new :class:`collections." +"OrderedDict` class has been introduced." msgstr "" "Os dicionários Python comuns iteram sobre pares chave/valor de forma " "arbitrária. Ao longo dos anos, alguns autores escreveram implementações " "alternativas que lembram a ordem original em que as chaves foram inseridas. " -"Baseada na experiência com essas implementações, uma nova classe " -":class:`collections.OrderedDict` foi introduzida." +"Baseada na experiência com essas implementações, uma nova classe :class:" +"`collections.OrderedDict` foi introduzida." #: ../../whatsnew/3.1.rst:61 msgid "" @@ -70,8 +70,8 @@ msgstr "" "A OrderedDict API é essencialmente a mesma que os dicionários comuns, mas " "iterará sobre as chaves e valores por uma ordem garantida dependente de " "quando uma chave foi primeiramente inserida. Se uma nova entrada " -"sobrescrever uma entrada existente, a posição da inserção original é mantida" -" sem alterações. Deletar uma entrada e reinseri-la irá movê-la para o final." +"sobrescrever uma entrada existente, a posição da inserção original é mantida " +"sem alterações. Deletar uma entrada e reinseri-la irá movê-la para o final." #: ../../whatsnew/3.1.rst:67 msgid "" @@ -92,8 +92,8 @@ msgstr ":pep:`372` - Dicionários Ordenados" #: ../../whatsnew/3.1.rst:79 msgid "" -"PEP written by Armin Ronacher and Raymond Hettinger. Implementation written" -" by Raymond Hettinger." +"PEP written by Armin Ronacher and Raymond Hettinger. Implementation written " +"by Raymond Hettinger." msgstr "" "PEP escrita por Armin Ronacher e Raymond Hettinger. Implementação escrita " "por Raymond Hettinger." @@ -104,34 +104,34 @@ msgstr "PEP 378: Especificador de Formato para separador de milhar" #: ../../whatsnew/3.1.rst:86 msgid "" -"The built-in :func:`format` function and the :meth:`str.format` method use a" -" mini-language that now includes a simple, non-locale aware way to format a " +"The built-in :func:`format` function and the :meth:`str.format` method use a " +"mini-language that now includes a simple, non-locale aware way to format a " "number with a thousands separator. That provides a way to humanize a " "program's output, improving its professional appearance and readability::" msgstr "" -"The built-in :func:`format` function and the :meth:`str.format` method use a" -" mini-language that now includes a simple, non-locale aware way to format a " +"The built-in :func:`format` function and the :meth:`str.format` method use a " +"mini-language that now includes a simple, non-locale aware way to format a " "number with a thousands separator. That provides a way to humanize a " "program's output, improving its professional appearance and readability::" #: ../../whatsnew/3.1.rst:100 msgid "" -"The supported types are :class:`int`, :class:`float`, :class:`complex` and " -":class:`decimal.Decimal`." +"The supported types are :class:`int`, :class:`float`, :class:`complex` and :" +"class:`decimal.Decimal`." msgstr "" -"The supported types are :class:`int`, :class:`float`, :class:`complex` and " -":class:`decimal.Decimal`." +"The supported types are :class:`int`, :class:`float`, :class:`complex` and :" +"class:`decimal.Decimal`." #: ../../whatsnew/3.1.rst:103 msgid "" "Discussions are underway about how to specify alternative separators like " -"dots, spaces, apostrophes, or underscores. Locale-aware applications should" -" use the existing *n* format specifier which already has some support for " +"dots, spaces, apostrophes, or underscores. Locale-aware applications should " +"use the existing *n* format specifier which already has some support for " "thousands separators." msgstr "" "Discussions are underway about how to specify alternative separators like " -"dots, spaces, apostrophes, or underscores. Locale-aware applications should" -" use the existing *n* format specifier which already has some support for " +"dots, spaces, apostrophes, or underscores. Locale-aware applications should " +"use the existing *n* format specifier which already has some support for " "thousands separators." #: ../../whatsnew/3.1.rst:111 @@ -143,30 +143,30 @@ msgid "" "PEP written by Raymond Hettinger and implemented by Eric Smith and Mark " "Dickinson." msgstr "" -"PEP written by Raymond Hettinger and implemented by Eric Smith and Mark " +"PEP escrita por Raymond Hettinger e implementada por Eric Smith e Mark " "Dickinson." #: ../../whatsnew/3.1.rst:116 msgid "Other Language Changes" -msgstr "Outras mudanças na Linguagem" +msgstr "Outras mudanças na linguagem" #: ../../whatsnew/3.1.rst:118 msgid "Some smaller changes made to the core Python language are:" -msgstr "Some smaller changes made to the core Python language are:" +msgstr "Alguma das mudanças menores feitas no núcleo da linguagem Python são:" #: ../../whatsnew/3.1.rst:120 msgid "" "Directories and zip archives containing a :file:`__main__.py` file can now " -"be executed directly by passing their name to the interpreter. The " -"directory/zipfile is automatically inserted as the first entry in sys.path." -" (Suggestion and initial patch by Andy Chu; revised patch by Phillip J. Eby" -" and Nick Coghlan; :issue:`1739468`.)" +"be executed directly by passing their name to the interpreter. The directory/" +"zipfile is automatically inserted as the first entry in sys.path. " +"(Suggestion and initial patch by Andy Chu; revised patch by Phillip J. Eby " +"and Nick Coghlan; :issue:`1739468`.)" msgstr "" "Directories and zip archives containing a :file:`__main__.py` file can now " -"be executed directly by passing their name to the interpreter. The " -"directory/zipfile is automatically inserted as the first entry in sys.path." -" (Suggestion and initial patch by Andy Chu; revised patch by Phillip J. Eby" -" and Nick Coghlan; :issue:`1739468`.)" +"be executed directly by passing their name to the interpreter. The directory/" +"zipfile is automatically inserted as the first entry in sys.path. " +"(Suggestion and initial patch by Andy Chu; revised patch by Phillip J. Eby " +"and Nick Coghlan; :issue:`1739468`.)" #: ../../whatsnew/3.1.rst:126 msgid "" @@ -192,11 +192,11 @@ msgstr "" #: ../../whatsnew/3.1.rst:149 msgid "" -"Formerly, the string would have required numbered fields such as: ``'Sir {0}" -" of {1}'``." +"Formerly, the string would have required numbered fields such as: ``'Sir {0} " +"of {1}'``." msgstr "" -"Formerly, the string would have required numbered fields such as: ``'Sir {0}" -" of {1}'``." +"Formerly, the string would have required numbered fields such as: ``'Sir {0} " +"of {1}'``." #: ../../whatsnew/3.1.rst:152 msgid "(Contributed by Eric Smith; :issue:`5237`.)" @@ -206,17 +206,17 @@ msgstr "(Contributed by Eric Smith; :issue:`5237`.)" msgid "" "The :func:`string.maketrans` function is deprecated and is replaced by new " "static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`. " -"This change solves the confusion around which types were supported by the " -":mod:`string` module. Now, :class:`str`, :class:`bytes`, and " -":class:`bytearray` each have their own **maketrans** and **translate** " -"methods with intermediate translation tables of the appropriate type." +"This change solves the confusion around which types were supported by the :" +"mod:`string` module. Now, :class:`str`, :class:`bytes`, and :class:" +"`bytearray` each have their own **maketrans** and **translate** methods with " +"intermediate translation tables of the appropriate type." msgstr "" "The :func:`string.maketrans` function is deprecated and is replaced by new " "static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`. " -"This change solves the confusion around which types were supported by the " -":mod:`string` module. Now, :class:`str`, :class:`bytes`, and " -":class:`bytearray` each have their own **maketrans** and **translate** " -"methods with intermediate translation tables of the appropriate type." +"This change solves the confusion around which types were supported by the :" +"mod:`string` module. Now, :class:`str`, :class:`bytes`, and :class:" +"`bytearray` each have their own **maketrans** and **translate** methods with " +"intermediate translation tables of the appropriate type." #: ../../whatsnew/3.1.rst:161 msgid "(Contributed by Georg Brandl; :issue:`5675`.)" @@ -293,8 +293,8 @@ msgid "" "'.17g')`` which evaluated to ``'1.1000000000000001'``. The advantage of " "using 17 digits was that it relied on IEEE-754 guarantees to assure that " "``eval(repr(1.1))`` would round-trip exactly to its original value. The " -"disadvantage is that many people found the output to be confusing (mistaking" -" intrinsic limitations of binary floating point representation as being a " +"disadvantage is that many people found the output to be confusing (mistaking " +"intrinsic limitations of binary floating point representation as being a " "problem with Python itself)." msgstr "" "What is new is how the number gets displayed. Formerly, Python used a " @@ -302,8 +302,8 @@ msgstr "" "'.17g')`` which evaluated to ``'1.1000000000000001'``. The advantage of " "using 17 digits was that it relied on IEEE-754 guarantees to assure that " "``eval(repr(1.1))`` would round-trip exactly to its original value. The " -"disadvantage is that many people found the output to be confusing (mistaking" -" intrinsic limitations of binary floating point representation as being a " +"disadvantage is that many people found the output to be confusing (mistaking " +"intrinsic limitations of binary floating point representation as being a " "problem with Python itself)." #: ../../whatsnew/3.1.rst:207 @@ -350,11 +350,11 @@ msgstr "New, Improved, and Deprecated Modules" #: ../../whatsnew/3.1.rst:226 msgid "" -"Added a :class:`collections.Counter` class to support convenient counting of" -" unique items in a sequence or iterable::" +"Added a :class:`collections.Counter` class to support convenient counting of " +"unique items in a sequence or iterable::" msgstr "" -"Added a :class:`collections.Counter` class to support convenient counting of" -" unique items in a sequence or iterable::" +"Added a :class:`collections.Counter` class to support convenient counting of " +"unique items in a sequence or iterable::" #: ../../whatsnew/3.1.rst:232 msgid "(Contributed by Raymond Hettinger; :issue:`1696199`.)" @@ -388,13 +388,13 @@ msgstr "(Contribuição de Antoine Pitrou.)" #: ../../whatsnew/3.1.rst:249 msgid "" -"The :mod:`decimal` module now supports methods for creating a decimal object" -" from a binary :class:`float`. The conversion is exact but can sometimes be" -" surprising::" +"The :mod:`decimal` module now supports methods for creating a decimal object " +"from a binary :class:`float`. The conversion is exact but can sometimes be " +"surprising::" msgstr "" -"The :mod:`decimal` module now supports methods for creating a decimal object" -" from a binary :class:`float`. The conversion is exact but can sometimes be" -" surprising::" +"The :mod:`decimal` module now supports methods for creating a decimal object " +"from a binary :class:`float`. The conversion is exact but can sometimes be " +"surprising::" #: ../../whatsnew/3.1.rst:256 msgid "" @@ -412,21 +412,21 @@ msgstr "(Contributed by Raymond Hettinger and Mark Dickinson.)" #: ../../whatsnew/3.1.rst:262 msgid "" -"The :mod:`itertools` module grew two new functions. The " -":func:`itertools.combinations_with_replacement` function is one of four for " -"generating combinatorics including permutations and Cartesian products. The" -" :func:`itertools.compress` function mimics its namesake from APL. Also, " -"the existing :func:`itertools.count` function now has an optional *step* " -"argument and can accept any type of counting sequence including " -":class:`fractions.Fraction` and :class:`decimal.Decimal`::" -msgstr "" -"The :mod:`itertools` module grew two new functions. The " -":func:`itertools.combinations_with_replacement` function is one of four for " -"generating combinatorics including permutations and Cartesian products. The" -" :func:`itertools.compress` function mimics its namesake from APL. Also, " -"the existing :func:`itertools.count` function now has an optional *step* " -"argument and can accept any type of counting sequence including " -":class:`fractions.Fraction` and :class:`decimal.Decimal`::" +"The :mod:`itertools` module grew two new functions. The :func:`itertools." +"combinations_with_replacement` function is one of four for generating " +"combinatorics including permutations and Cartesian products. The :func:" +"`itertools.compress` function mimics its namesake from APL. Also, the " +"existing :func:`itertools.count` function now has an optional *step* " +"argument and can accept any type of counting sequence including :class:" +"`fractions.Fraction` and :class:`decimal.Decimal`::" +msgstr "" +"The :mod:`itertools` module grew two new functions. The :func:`itertools." +"combinations_with_replacement` function is one of four for generating " +"combinatorics including permutations and Cartesian products. The :func:" +"`itertools.compress` function mimics its namesake from APL. Also, the " +"existing :func:`itertools.count` function now has an optional *step* " +"argument and can accept any type of counting sequence including :class:" +"`fractions.Fraction` and :class:`decimal.Decimal`::" #: ../../whatsnew/3.1.rst:281 msgid "(Contributed by Raymond Hettinger.)" @@ -435,14 +435,14 @@ msgstr "(Contributed by Raymond Hettinger.)" #: ../../whatsnew/3.1.rst:283 msgid "" ":func:`collections.namedtuple` now supports a keyword argument *rename* " -"which lets invalid fieldnames be automatically converted to positional names" -" in the form _0, _1, etc. This is useful when the field names are being " +"which lets invalid fieldnames be automatically converted to positional names " +"in the form _0, _1, etc. This is useful when the field names are being " "created by an external source such as a CSV header, SQL field list, or user " "input::" msgstr "" ":func:`collections.namedtuple` now supports a keyword argument *rename* " -"which lets invalid fieldnames be automatically converted to positional names" -" in the form _0, _1, etc. This is useful when the field names are being " +"which lets invalid fieldnames be automatically converted to positional names " +"in the form _0, _1, etc. This is useful when the field names are being " "created by an external source such as a CSV header, SQL field list, or user " "input::" @@ -464,17 +464,15 @@ msgstr "(Contributed by Gregory Smith.)" #: ../../whatsnew/3.1.rst:307 msgid "" -"The :mod:`logging` module now implements a simple " -":class:`logging.NullHandler` class for applications that are not using " -"logging but are calling library code that does. Setting-up a null handler " -"will suppress spurious warnings such as \"No handlers could be found for " -"logger foo\"::" +"The :mod:`logging` module now implements a simple :class:`logging." +"NullHandler` class for applications that are not using logging but are " +"calling library code that does. Setting-up a null handler will suppress " +"spurious warnings such as \"No handlers could be found for logger foo\"::" msgstr "" -"The :mod:`logging` module now implements a simple " -":class:`logging.NullHandler` class for applications that are not using " -"logging but are calling library code that does. Setting-up a null handler " -"will suppress spurious warnings such as \"No handlers could be found for " -"logger foo\"::" +"The :mod:`logging` module now implements a simple :class:`logging." +"NullHandler` class for applications that are not using logging but are " +"calling library code that does. Setting-up a null handler will suppress " +"spurious warnings such as \"No handlers could be found for logger foo\"::" #: ../../whatsnew/3.1.rst:315 msgid "(Contributed by Vinay Sajip; :issue:`4384`)." @@ -496,11 +494,11 @@ msgstr "(Contributed by Andi Vajda; :issue:`4195`.)" #: ../../whatsnew/3.1.rst:323 msgid "" -"The :mod:`pdb` module can now access and display source code loaded via " -":mod:`zipimport` (or any other conformant :pep:`302` loader)." +"The :mod:`pdb` module can now access and display source code loaded via :mod:" +"`zipimport` (or any other conformant :pep:`302` loader)." msgstr "" -"The :mod:`pdb` module can now access and display source code loaded via " -":mod:`zipimport` (or any other conformant :pep:`302` loader)." +"The :mod:`pdb` module can now access and display source code loaded via :mod:" +"`zipimport` (or any other conformant :pep:`302` loader)." #: ../../whatsnew/3.1.rst:326 msgid "(Contributed by Alexander Belopolsky; :issue:`4201`.)" @@ -532,14 +530,14 @@ msgstr "(Contributed by David Laban; :issue:`4739`.)" #: ../../whatsnew/3.1.rst:338 msgid "" -"The :mod:`unittest` module now supports skipping individual tests or classes" -" of tests. And it supports marking a test as an expected failure, a test " -"that is known to be broken, but shouldn't be counted as a failure on a " +"The :mod:`unittest` module now supports skipping individual tests or classes " +"of tests. And it supports marking a test as an expected failure, a test that " +"is known to be broken, but shouldn't be counted as a failure on a " "TestResult::" msgstr "" -"The :mod:`unittest` module now supports skipping individual tests or classes" -" of tests. And it supports marking a test as an expected failure, a test " -"that is known to be broken, but shouldn't be counted as a failure on a " +"The :mod:`unittest` module now supports skipping individual tests or classes " +"of tests. And it supports marking a test as an expected failure, a test that " +"is known to be broken, but shouldn't be counted as a failure on a " "TestResult::" #: ../../whatsnew/3.1.rst:353 @@ -552,19 +550,17 @@ msgstr "" #: ../../whatsnew/3.1.rst:360 msgid "" -"In addition, several new assertion methods were added including " -":func:`assertSetEqual`, :func:`assertDictEqual`, " -":func:`assertDictContainsSubset`, :func:`assertListEqual`, " -":func:`assertTupleEqual`, :func:`assertSequenceEqual`, " -":func:`assertRaisesRegexp`, :func:`assertIsNone`, and " -":func:`assertIsNotNone`." +"In addition, several new assertion methods were added including :func:" +"`assertSetEqual`, :func:`assertDictEqual`, :func:" +"`assertDictContainsSubset`, :func:`assertListEqual`, :func:" +"`assertTupleEqual`, :func:`assertSequenceEqual`, :func:" +"`assertRaisesRegexp`, :func:`assertIsNone`, and :func:`assertIsNotNone`." msgstr "" -"In addition, several new assertion methods were added including " -":func:`assertSetEqual`, :func:`assertDictEqual`, " -":func:`assertDictContainsSubset`, :func:`assertListEqual`, " -":func:`assertTupleEqual`, :func:`assertSequenceEqual`, " -":func:`assertRaisesRegexp`, :func:`assertIsNone`, and " -":func:`assertIsNotNone`." +"In addition, several new assertion methods were added including :func:" +"`assertSetEqual`, :func:`assertDictEqual`, :func:" +"`assertDictContainsSubset`, :func:`assertListEqual`, :func:" +"`assertTupleEqual`, :func:`assertSequenceEqual`, :func:" +"`assertRaisesRegexp`, :func:`assertIsNone`, and :func:`assertIsNotNone`." #: ../../whatsnew/3.1.rst:367 msgid "(Contributed by Benjamin Peterson and Antoine Pitrou.)" @@ -572,11 +568,11 @@ msgstr "(Contributed by Benjamin Peterson and Antoine Pitrou.)" #: ../../whatsnew/3.1.rst:369 msgid "" -"The :mod:`io` module has three new constants for the :meth:`seek` method " -":data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`." +"The :mod:`io` module has three new constants for the :meth:`seek` method :" +"data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`." msgstr "" -"The :mod:`io` module has three new constants for the :meth:`seek` method " -":data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`." +"The :mod:`io` module has three new constants for the :meth:`seek` method :" +"data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`." #: ../../whatsnew/3.1.rst:372 msgid "The :attr:`sys.version_info` tuple is now a named tuple::" @@ -603,8 +599,8 @@ msgid "" "Python 3. This change confounded efforts to share data between different " "versions of Python. But now when protocol 2 or lower is selected, the " "pickler will automatically use the old Python 2 names for both loading and " -"dumping. This remapping is turned-on by default but can be disabled with the" -" *fix_imports* option::" +"dumping. This remapping is turned-on by default but can be disabled with the " +"*fix_imports* option::" msgstr "" "The :mod:`pickle` module has been adapted for better interoperability with " "Python 2.x when used with protocol 2 or lower. The reorganization of the " @@ -613,22 +609,22 @@ msgstr "" "Python 3. This change confounded efforts to share data between different " "versions of Python. But now when protocol 2 or lower is selected, the " "pickler will automatically use the old Python 2 names for both loading and " -"dumping. This remapping is turned-on by default but can be disabled with the" -" *fix_imports* option::" +"dumping. This remapping is turned-on by default but can be disabled with the " +"*fix_imports* option::" #: ../../whatsnew/3.1.rst:399 msgid "" -"An unfortunate but unavoidable side-effect of this change is that protocol 2" -" pickles produced by Python 3.1 won't be readable with Python 3.0. The " -"latest pickle protocol, protocol 3, should be used when migrating data " -"between Python 3.x implementations, as it doesn't attempt to remain " -"compatible with Python 2.x." +"An unfortunate but unavoidable side-effect of this change is that protocol 2 " +"pickles produced by Python 3.1 won't be readable with Python 3.0. The latest " +"pickle protocol, protocol 3, should be used when migrating data between " +"Python 3.x implementations, as it doesn't attempt to remain compatible with " +"Python 2.x." msgstr "" -"An unfortunate but unavoidable side-effect of this change is that protocol 2" -" pickles produced by Python 3.1 won't be readable with Python 3.0. The " -"latest pickle protocol, protocol 3, should be used when migrating data " -"between Python 3.x implementations, as it doesn't attempt to remain " -"compatible with Python 2.x." +"An unfortunate but unavoidable side-effect of this change is that protocol 2 " +"pickles produced by Python 3.1 won't be readable with Python 3.0. The latest " +"pickle protocol, protocol 3, should be used when migrating data between " +"Python 3.x implementations, as it doesn't attempt to remain compatible with " +"Python 2.x." #: ../../whatsnew/3.1.rst:405 msgid "" @@ -638,15 +634,15 @@ msgstr "" #: ../../whatsnew/3.1.rst:407 msgid "" -"A new module, :mod:`importlib` was added. It provides a complete, portable," -" pure Python reference implementation of the :keyword:`import` statement and" -" its counterpart, the :func:`__import__` function. It represents a " +"A new module, :mod:`importlib` was added. It provides a complete, portable, " +"pure Python reference implementation of the :keyword:`import` statement and " +"its counterpart, the :func:`__import__` function. It represents a " "substantial step forward in documenting and defining the actions that take " "place during imports." msgstr "" -"A new module, :mod:`importlib` was added. It provides a complete, portable," -" pure Python reference implementation of the :keyword:`import` statement and" -" its counterpart, the :func:`__import__` function. It represents a " +"A new module, :mod:`importlib` was added. It provides a complete, portable, " +"pure Python reference implementation of the :keyword:`import` statement and " +"its counterpart, the :func:`__import__` function. It represents a " "substantial step forward in documenting and defining the actions that take " "place during imports." @@ -664,14 +660,14 @@ msgstr "Major performance enhancements have been added:" #: ../../whatsnew/3.1.rst:420 msgid "" -"The new I/O library (as defined in :pep:`3116`) was mostly written in Python" -" and quickly proved to be a problematic bottleneck in Python 3.0. In Python " +"The new I/O library (as defined in :pep:`3116`) was mostly written in Python " +"and quickly proved to be a problematic bottleneck in Python 3.0. In Python " "3.1, the I/O library has been entirely rewritten in C and is 2 to 20 times " "faster depending on the task at hand. The pure Python version is still " "available for experimentation purposes through the ``_pyio`` module." msgstr "" -"The new I/O library (as defined in :pep:`3116`) was mostly written in Python" -" and quickly proved to be a problematic bottleneck in Python 3.0. In Python " +"The new I/O library (as defined in :pep:`3116`) was mostly written in Python " +"and quickly proved to be a problematic bottleneck in Python 3.0. In Python " "3.1, the I/O library has been entirely rewritten in C and is 2 to 20 times " "faster depending on the task at hand. The pure Python version is still " "available for experimentation purposes through the ``_pyio`` module." @@ -684,13 +680,13 @@ msgstr "(Contributed by Amaury Forgeot d'Arc and Antoine Pitrou.)" msgid "" "Added a heuristic so that tuples and dicts containing only untrackable " "objects are not tracked by the garbage collector. This can reduce the size " -"of collections and therefore the garbage collection overhead on long-running" -" programs, depending on their particular use of datatypes." +"of collections and therefore the garbage collection overhead on long-running " +"programs, depending on their particular use of datatypes." msgstr "" "Added a heuristic so that tuples and dicts containing only untrackable " "objects are not tracked by the garbage collector. This can reduce the size " -"of collections and therefore the garbage collection overhead on long-running" -" programs, depending on their particular use of datatypes." +"of collections and therefore the garbage collection overhead on long-running " +"programs, depending on their particular use of datatypes." #: ../../whatsnew/3.1.rst:434 msgid "(Contributed by Antoine Pitrou, :issue:`4688`.)" @@ -699,22 +695,22 @@ msgstr "(Contributed by Antoine Pitrou, :issue:`4688`.)" #: ../../whatsnew/3.1.rst:436 msgid "" "Enabling a configure option named ``--with-computed-gotos`` on compilers " -"that support it (notably: gcc, SunPro, icc), the bytecode evaluation loop is" -" compiled with a new dispatch mechanism which gives speedups of up to 20%, " +"that support it (notably: gcc, SunPro, icc), the bytecode evaluation loop is " +"compiled with a new dispatch mechanism which gives speedups of up to 20%, " "depending on the system, the compiler, and the benchmark." msgstr "" "Enabling a configure option named ``--with-computed-gotos`` on compilers " -"that support it (notably: gcc, SunPro, icc), the bytecode evaluation loop is" -" compiled with a new dispatch mechanism which gives speedups of up to 20%, " +"that support it (notably: gcc, SunPro, icc), the bytecode evaluation loop is " +"compiled with a new dispatch mechanism which gives speedups of up to 20%, " "depending on the system, the compiler, and the benchmark." #: ../../whatsnew/3.1.rst:442 msgid "" -"(Contributed by Antoine Pitrou along with a number of other participants, " -":issue:`4753`)." +"(Contributed by Antoine Pitrou along with a number of other participants, :" +"issue:`4753`)." msgstr "" -"(Contributed by Antoine Pitrou along with a number of other participants, " -":issue:`4753`)." +"(Contributed by Antoine Pitrou along with a number of other participants, :" +"issue:`4753`)." #: ../../whatsnew/3.1.rst:445 msgid "" @@ -731,14 +727,14 @@ msgstr "" #: ../../whatsnew/3.1.rst:450 msgid "" "The :mod:`json` module now has a C extension to substantially improve its " -"performance. In addition, the API was modified so that json works only with" -" :class:`str`, not with :class:`bytes`. That change makes the module " +"performance. In addition, the API was modified so that json works only " +"with :class:`str`, not with :class:`bytes`. That change makes the module " "closely match the `JSON specification `_ which is defined " "in terms of Unicode." msgstr "" "The :mod:`json` module now has a C extension to substantially improve its " -"performance. In addition, the API was modified so that json works only with" -" :class:`str`, not with :class:`bytes`. That change makes the module " +"performance. In addition, the API was modified so that json works only " +"with :class:`str`, not with :class:`bytes`. That change makes the module " "closely match the `JSON specification `_ which is defined " "in terms of Unicode." @@ -793,16 +789,16 @@ msgid "" "stored in base 2**15. Using base 2**30 gives significant performance " "improvements on 64-bit machines, but benchmark results on 32-bit machines " "have been mixed. Therefore, the default is to use base 2**30 on 64-bit " -"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure" -" option ``--enable-big-digits`` that can be used to override this default." +"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure " +"option ``--enable-big-digits`` that can be used to override this default." msgstr "" "Integers are now stored internally either in base 2**15 or in base 2**30, " "the base being determined at build time. Previously, they were always " "stored in base 2**15. Using base 2**30 gives significant performance " "improvements on 64-bit machines, but benchmark results on 32-bit machines " "have been mixed. Therefore, the default is to use base 2**30 on 64-bit " -"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure" -" option ``--enable-big-digits`` that can be used to override this default." +"machines and base 2**15 on 32-bit machines; on Unix, there's a new configure " +"option ``--enable-big-digits`` that can be used to override this default." #: ../../whatsnew/3.1.rst:486 msgid "" @@ -847,12 +843,12 @@ msgstr "(Contributed by Mark Dickinson; :issue:`4910`.)" #: ../../whatsnew/3.1.rst:507 msgid "" "Added a new :c:func:`PyOS_string_to_double` function to replace the " -"deprecated functions :c:func:`PyOS_ascii_strtod` and " -":c:func:`PyOS_ascii_atof`." +"deprecated functions :c:func:`PyOS_ascii_strtod` and :c:func:" +"`PyOS_ascii_atof`." msgstr "" "Added a new :c:func:`PyOS_string_to_double` function to replace the " -"deprecated functions :c:func:`PyOS_ascii_strtod` and " -":c:func:`PyOS_ascii_atof`." +"deprecated functions :c:func:`PyOS_ascii_strtod` and :c:func:" +"`PyOS_ascii_atof`." #: ../../whatsnew/3.1.rst:510 msgid "(Contributed by Mark Dickinson; :issue:`5914`.)" diff --git a/whatsnew/3.2.po b/whatsnew/3.2.po index 4e5429248..ebd1f8a04 100644 --- a/whatsnew/3.2.po +++ b/whatsnew/3.2.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # 01419cbcade949a3bc5433893a160e74, 2019 # Victor Matheus Castro , 2019 # Raphael Mendonça, 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-05-29 11:32+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,11 +41,10 @@ msgstr "Raymond Hettinger" #: ../../whatsnew/3.2.rst:51 msgid "" -"This article explains the new features in Python 3.2 as compared to 3.1. It" -" focuses on a few highlights and gives a few examples. For full details, " -"see the `Misc/NEWS " -"`_" -" file." +"This article explains the new features in Python 3.2 as compared to 3.1. It " +"focuses on a few highlights and gives a few examples. For full details, see " +"the `Misc/NEWS `_ file." msgstr "" #: ../../whatsnew/3.2.rst:59 @@ -68,8 +69,8 @@ msgid "" "With Python 3.2, an alternative approach becomes available: extension " "modules which restrict themselves to a limited API (by defining " "Py_LIMITED_API) cannot use many of the internals, but are constrained to a " -"set of API functions that are promised to be stable for several releases. As" -" a consequence, extension modules built for 3.2 in that mode will also work " +"set of API functions that are promised to be stable for several releases. As " +"a consequence, extension modules built for 3.2 in that mode will also work " "with 3.3, 3.4, and so on. Extension modules that make use of details of " "memory structures can still be built, but will need to be recompiled for " "every feature release." @@ -98,18 +99,17 @@ msgstr "" #: ../../whatsnew/3.2.rst:94 msgid "" "This module has already had widespread success in the community as a third-" -"party module. Being more fully featured than its predecessor, the " -":mod:`argparse` module is now the preferred module for command-line " -"processing. The older module is still being kept available because of the " -"substantial amount of legacy code that depends on it." +"party module. Being more fully featured than its predecessor, the :mod:" +"`argparse` module is now the preferred module for command-line processing. " +"The older module is still being kept available because of the substantial " +"amount of legacy code that depends on it." msgstr "" #: ../../whatsnew/3.2.rst:100 msgid "" -"Here's an annotated example parser showing features like limiting results to" -" a set of choices, specifying a *metavar* in the help screen, validating " -"that one or more positional arguments is present, and making a required " -"option::" +"Here's an annotated example parser showing features like limiting results to " +"a set of choices, specifying a *metavar* in the help screen, validating that " +"one or more positional arguments is present, and making a required option::" msgstr "" #: ../../whatsnew/3.2.rst:119 @@ -136,8 +136,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:177 msgid "" -":ref:`upgrading-optparse-code` for details on the differences from " -":mod:`optparse`." +":ref:`upgrading-optparse-code` for details on the differences from :mod:" +"`optparse`." msgstr "" #: ../../whatsnew/3.2.rst:181 @@ -156,11 +156,11 @@ msgstr "" #: ../../whatsnew/3.2.rst:190 msgid "" -"To support a more flexible style, the module now offers " -":func:`logging.config.dictConfig` for specifying logging configuration with " -"plain Python dictionaries. The configuration options include formatters, " -"handlers, filters, and loggers. Here's a working example of a configuration" -" dictionary::" +"To support a more flexible style, the module now offers :func:`logging." +"config.dictConfig` for specifying logging configuration with plain Python " +"dictionaries. The configuration options include formatters, handlers, " +"filters, and loggers. Here's a working example of a configuration " +"dictionary::" msgstr "" #: ../../whatsnew/3.2.rst:214 @@ -191,20 +191,20 @@ msgstr "" #: ../../whatsnew/3.2.rst:240 msgid "" -"The design for :mod:`concurrent.futures` was inspired by the " -"*java.util.concurrent* package. In that model, a running call and its " -"result are represented by a :class:`~concurrent.futures.Future` object that " -"abstracts features common to threads, processes, and remote procedure calls." -" That object supports status checks (running or done), timeouts, " -"cancellations, adding callbacks, and access to results or exceptions." +"The design for :mod:`concurrent.futures` was inspired by the *java.util." +"concurrent* package. In that model, a running call and its result are " +"represented by a :class:`~concurrent.futures.Future` object that abstracts " +"features common to threads, processes, and remote procedure calls. That " +"object supports status checks (running or done), timeouts, cancellations, " +"adding callbacks, and access to results or exceptions." msgstr "" #: ../../whatsnew/3.2.rst:247 msgid "" "The primary offering of the new module is a pair of executor classes for " "launching and managing calls. The goal of the executors is to make it " -"easier to use existing tools for making parallel calls. They save the effort" -" needed to setup a pool of resources, launch the calls, create a results " +"easier to use existing tools for making parallel calls. They save the effort " +"needed to setup a pool of resources, launch the calls, create a results " "queue, add time-out handling, and limit the total number of threads, " "processes, or remote procedure calls." msgstr "" @@ -212,21 +212,21 @@ msgstr "" #: ../../whatsnew/3.2.rst:254 msgid "" "Ideally, each application should share a single executor across multiple " -"components so that process and thread limits can be centrally managed. This" -" solves the design challenge that arises when each component has its own " +"components so that process and thread limits can be centrally managed. This " +"solves the design challenge that arises when each component has its own " "competing strategy for resource management." msgstr "" #: ../../whatsnew/3.2.rst:259 msgid "" -"Both classes share a common interface with three methods: " -":meth:`~concurrent.futures.Executor.submit` for scheduling a callable and " -"returning a :class:`~concurrent.futures.Future` object; " -":meth:`~concurrent.futures.Executor.map` for scheduling many asynchronous " -"calls at a time, and :meth:`~concurrent.futures.Executor.shutdown` for " -"freeing resources. The class is a :term:`context manager` and can be used " -"in a :keyword:`with` statement to assure that resources are automatically " -"released when currently pending futures are done executing." +"Both classes share a common interface with three methods: :meth:`~concurrent." +"futures.Executor.submit` for scheduling a callable and returning a :class:" +"`~concurrent.futures.Future` object; :meth:`~concurrent.futures.Executor." +"map` for scheduling many asynchronous calls at a time, and :meth:" +"`~concurrent.futures.Executor.shutdown` for freeing resources. The class is " +"a :term:`context manager` and can be used in a :keyword:`with` statement to " +"assure that resources are automatically released when currently pending " +"futures are done executing." msgstr "" #: ../../whatsnew/3.2.rst:268 @@ -252,8 +252,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:286 msgid "" ":ref:`Code for computing prime numbers in parallel`, an example demonstrating " -":class:`~concurrent.futures.ProcessPoolExecutor`." +"example>`, an example demonstrating :class:`~concurrent.futures." +"ProcessPoolExecutor`." msgstr "" #: ../../whatsnew/3.2.rst:292 @@ -264,8 +264,8 @@ msgstr "" msgid "" "Python's scheme for caching bytecode in *.pyc* files did not work well in " "environments with multiple Python interpreters. If one interpreter " -"encountered a cached file created by another interpreter, it would recompile" -" the source and overwrite the cached file, thus losing the benefits of " +"encountered a cached file created by another interpreter, it would recompile " +"the source and overwrite the cached file, thus losing the benefits of " "caching." msgstr "" @@ -273,8 +273,8 @@ msgstr "" msgid "" "The issue of \"pyc fights\" has become more pronounced as it has become " "commonplace for Linux distributions to ship with multiple versions of " -"Python. These conflicts also arise with CPython alternatives such as Unladen" -" Swallow." +"Python. These conflicts also arise with CPython alternatives such as Unladen " +"Swallow." msgstr "" #: ../../whatsnew/3.2.rst:303 @@ -282,11 +282,10 @@ msgid "" "To solve this problem, Python's import machinery has been extended to use " "distinct filenames for each interpreter. Instead of Python 3.2 and Python " "3.3 and Unladen Swallow each competing for a file called \"mymodule.pyc\", " -"they will now look for \"mymodule.cpython-32.pyc\", " -"\"mymodule.cpython-33.pyc\", and \"mymodule.unladen10.pyc\". And to prevent" -" all of these new files from cluttering source directories, the *pyc* files " -"are now collected in a \"__pycache__\" directory stored under the package " -"directory." +"they will now look for \"mymodule.cpython-32.pyc\", \"mymodule.cpython-33.pyc" +"\", and \"mymodule.unladen10.pyc\". And to prevent all of these new files " +"from cluttering source directories, the *pyc* files are now collected in a " +"\"__pycache__\" directory stored under the package directory." msgstr "" #: ../../whatsnew/3.2.rst:311 @@ -303,8 +302,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:321 msgid "" -"The tag that is unique to each interpreter is accessible from the :mod:`imp`" -" module:" +"The tag that is unique to each interpreter is accessible from the :mod:`imp` " +"module:" msgstr "" #: ../../whatsnew/3.2.rst:328 @@ -327,9 +326,9 @@ msgstr "" msgid "" "The :mod:`importlib.abc` module has been updated with new :term:`abstract " "base classes ` for loading bytecode files. The " -"obsolete ABCs, :class:`~importlib.abc.PyLoader` and " -":class:`~importlib.abc.PyPycLoader`, have been deprecated (instructions on " -"how to stay Python 3.1 compatible are included with the documentation)." +"obsolete ABCs, :class:`~importlib.abc.PyLoader` and :class:`~importlib.abc." +"PyPycLoader`, have been deprecated (instructions on how to stay Python 3.1 " +"compatible are included with the documentation)." msgstr "" #: ../../whatsnew/3.2.rst:352 @@ -347,24 +346,24 @@ msgstr "" #: ../../whatsnew/3.2.rst:359 msgid "" "The PYC repository directory allows multiple bytecode cache files to be co-" -"located. This PEP implements a similar mechanism for shared object files by" -" giving them a common directory and distinct names for each version." +"located. This PEP implements a similar mechanism for shared object files by " +"giving them a common directory and distinct names for each version." msgstr "" #: ../../whatsnew/3.2.rst:363 msgid "" -"The common directory is \"pyshared\" and the file names are made distinct by" -" identifying the Python implementation (such as CPython, PyPy, Jython, " -"etc.), the major and minor version numbers, and optional build flags (such " -"as \"d\" for debug, \"m\" for pymalloc, \"u\" for wide-unicode). For an " -"arbitrary package \"foo\", you may see these files when the distribution " -"package is installed::" +"The common directory is \"pyshared\" and the file names are made distinct by " +"identifying the Python implementation (such as CPython, PyPy, Jython, etc.), " +"the major and minor version numbers, and optional build flags (such as \"d\" " +"for debug, \"m\" for pymalloc, \"u\" for wide-unicode). For an arbitrary " +"package \"foo\", you may see these files when the distribution package is " +"installed::" msgstr "" #: ../../whatsnew/3.2.rst:372 msgid "" -"In Python itself, the tags are accessible from functions in the " -":mod:`sysconfig` module::" +"In Python itself, the tags are accessible from functions in the :mod:" +"`sysconfig` module::" msgstr "" #: ../../whatsnew/3.2.rst:383 @@ -385,9 +384,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:395 msgid "" -"The PEP differentiates so-called *native strings* that are used for " -"request/response headers and metadata versus *byte strings* which are used " -"for the bodies of requests and responses." +"The PEP differentiates so-called *native strings* that are used for request/" +"response headers and metadata versus *byte strings* which are used for the " +"bodies of requests and responses." msgstr "" #: ../../whatsnew/3.2.rst:399 @@ -397,34 +396,33 @@ msgid "" "bytes using *Latin-1* encoding. These strings are used for the keys and " "values in the environment dictionary and for response headers and statuses " "in the :func:`start_response` function. They must follow :rfc:`2616` with " -"respect to encoding. That is, they must either be *ISO-8859-1* characters or" -" use :rfc:`2047` MIME encoding." +"respect to encoding. That is, they must either be *ISO-8859-1* characters or " +"use :rfc:`2047` MIME encoding." msgstr "" #: ../../whatsnew/3.2.rst:407 msgid "" -"For developers porting WSGI applications from Python 2, here are the salient" -" points:" +"For developers porting WSGI applications from Python 2, here are the salient " +"points:" msgstr "" #: ../../whatsnew/3.2.rst:410 msgid "" -"If the app already used strings for headers in Python 2, no change is " -"needed." +"If the app already used strings for headers in Python 2, no change is needed." msgstr "" #: ../../whatsnew/3.2.rst:412 msgid "" "If instead, the app encoded output headers or decoded input headers, then " "the headers will need to be re-encoded to Latin-1. For example, an output " -"header encoded in utf-8 was using ``h.encode('utf-8')`` now needs to convert" -" from bytes to native strings using ``h.encode('utf-8').decode('latin-1')``." +"header encoded in utf-8 was using ``h.encode('utf-8')`` now needs to convert " +"from bytes to native strings using ``h.encode('utf-8').decode('latin-1')``." msgstr "" #: ../../whatsnew/3.2.rst:417 msgid "" -"Values yielded by an application or sent using the :meth:`write` method must" -" be byte strings. The :func:`start_response` function and environ must use " +"Values yielded by an application or sent using the :meth:`write` method must " +"be byte strings. The :func:`start_response` function and environ must use " "native strings. The two cannot be mixed." msgstr "" @@ -432,10 +430,11 @@ msgstr "" msgid "" "For server implementers writing CGI-to-WSGI pathways or other CGI-style " "protocols, the users must to be able access the environment using native " -"strings even though the underlying platform may have a different convention." -" To bridge this gap, the :mod:`wsgiref` module has a new function, " -":func:`wsgiref.handlers.read_environ` for transcoding CGI variables from " -":attr:`os.environ` into native strings and returning a new dictionary." +"strings even though the underlying platform may have a different " +"convention. To bridge this gap, the :mod:`wsgiref` module has a new " +"function, :func:`wsgiref.handlers.read_environ` for transcoding CGI " +"variables from :attr:`os.environ` into native strings and returning a new " +"dictionary." msgstr "" #: ../../whatsnew/3.2.rst:430 @@ -466,34 +465,33 @@ msgstr "" #: ../../whatsnew/3.2.rst:451 msgid "" -"(Suggested by Mark Dickinson and implemented by Eric Smith in " -":issue:`7094`.)" +"(Suggested by Mark Dickinson and implemented by Eric Smith in :issue:`7094`.)" msgstr "" #: ../../whatsnew/3.2.rst:453 msgid "" "There is also a new :meth:`str.format_map` method that extends the " "capabilities of the existing :meth:`str.format` method by accepting " -"arbitrary :term:`mapping` objects. This new method makes it possible to use" -" string formatting with any of Python's many dictionary-like objects such as" -" :class:`~collections.defaultdict`, :class:`~shelve.Shelf`, " -":class:`~configparser.ConfigParser`, or :mod:`dbm`. It is also useful with " -"custom :class:`dict` subclasses that normalize keys before look-up or that " -"supply a :meth:`__missing__` method for unknown keys::" +"arbitrary :term:`mapping` objects. This new method makes it possible to use " +"string formatting with any of Python's many dictionary-like objects such as :" +"class:`~collections.defaultdict`, :class:`~shelve.Shelf`, :class:" +"`~configparser.ConfigParser`, or :mod:`dbm`. It is also useful with custom :" +"class:`dict` subclasses that normalize keys before look-up or that supply a :" +"meth:`__missing__` method for unknown keys::" msgstr "" #: ../../whatsnew/3.2.rst:480 msgid "" -"(Suggested by Raymond Hettinger and implemented by Eric Smith in " -":issue:`6081`.)" +"(Suggested by Raymond Hettinger and implemented by Eric Smith in :issue:" +"`6081`.)" msgstr "" #: ../../whatsnew/3.2.rst:483 msgid "" "The interpreter can now be started with a quiet option, ``-q``, to prevent " "the copyright and version information from being displayed in the " -"interactive mode. The option can be introspected using the " -":attr:`sys.flags` attribute:" +"interactive mode. The option can be introspected using the :attr:`sys." +"flags` attribute:" msgstr "" #: ../../whatsnew/3.2.rst:495 @@ -504,8 +502,8 @@ msgstr "" msgid "" "The :func:`hasattr` function works by calling :func:`getattr` and detecting " "whether an exception is raised. This technique allows it to detect methods " -"created dynamically by :meth:`__getattr__` or :meth:`__getattribute__` which" -" would otherwise be absent from the class dictionary. Formerly, *hasattr* " +"created dynamically by :meth:`__getattr__` or :meth:`__getattribute__` which " +"would otherwise be absent from the class dictionary. Formerly, *hasattr* " "would catch any exception, possibly masking genuine errors. Now, *hasattr* " "has been tightened to only catch :exc:`AttributeError` and let other " "exceptions pass through::" @@ -513,16 +511,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:516 msgid "" -"(Discovered by Yury Selivanov and fixed by Benjamin Peterson; " -":issue:`9666`.)" +"(Discovered by Yury Selivanov and fixed by Benjamin Peterson; :issue:`9666`.)" msgstr "" #: ../../whatsnew/3.2.rst:518 msgid "" -"The :func:`str` of a float or complex number is now the same as its " -":func:`repr`. Previously, the :func:`str` form was shorter but that just " -"caused confusion and is no longer needed now that the shortest possible " -":func:`repr` is displayed by default:" +"The :func:`str` of a float or complex number is now the same as its :func:" +"`repr`. Previously, the :func:`str` form was shorter but that just caused " +"confusion and is no longer needed now that the shortest possible :func:" +"`repr` is displayed by default:" msgstr "" #: ../../whatsnew/3.2.rst:529 @@ -550,8 +547,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:551 msgid "" "This is now allowed. Remember that the target of an :keyword:`except` " -"clause is cleared, so this code which used to work with Python 2.6, raised a" -" :exc:`SyntaxError` with Python 3.1 and now works again::" +"clause is cleared, so this code which used to work with Python 2.6, raised " +"a :exc:`SyntaxError` with Python 3.1 and now works again::" msgstr "" #: ../../whatsnew/3.2.rst:564 @@ -561,11 +558,11 @@ msgstr "" #: ../../whatsnew/3.2.rst:566 msgid "" "The internal :c:type:`structsequence` tool now creates subclasses of tuple. " -"This means that C structures like those returned by :func:`os.stat`, " -":func:`time.gmtime`, and :attr:`sys.version_info` now work like a " -":term:`named tuple` and now work with functions and methods that expect a " -"tuple as an argument. This is a big step forward in making the C structures" -" as flexible as their pure Python counterparts:" +"This means that C structures like those returned by :func:`os.stat`, :func:" +"`time.gmtime`, and :attr:`sys.version_info` now work like a :term:`named " +"tuple` and now work with functions and methods that expect a tuple as an " +"argument. This is a big step forward in making the C structures as flexible " +"as their pure Python counterparts:" msgstr "" #: ../../whatsnew/3.2.rst:579 @@ -582,8 +579,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:589 msgid "" -"(Suggested by Barry Warsaw and implemented by Philip Jenvey in " -":issue:`7301`.)" +"(Suggested by Barry Warsaw and implemented by Philip Jenvey in :issue:" +"`7301`.)" msgstr "" #: ../../whatsnew/3.2.rst:591 @@ -597,10 +594,10 @@ msgstr "" #: ../../whatsnew/3.2.rst:597 msgid "" -"A :exc:`ResourceWarning` is issued at interpreter shutdown if the " -":data:`gc.garbage` list isn't empty, and if :attr:`gc.DEBUG_UNCOLLECTABLE` " -"is set, all uncollectable objects are printed. This is meant to make the " -"programmer aware that their code contains object finalization issues." +"A :exc:`ResourceWarning` is issued at interpreter shutdown if the :data:`gc." +"garbage` list isn't empty, and if :attr:`gc.DEBUG_UNCOLLECTABLE` is set, all " +"uncollectable objects are printed. This is meant to make the programmer " +"aware that their code contains object finalization issues." msgstr "" #: ../../whatsnew/3.2.rst:602 @@ -615,18 +612,18 @@ msgstr "" #: ../../whatsnew/3.2.rst:616 msgid "" -"(Added by Antoine Pitrou and Georg Brandl in :issue:`10093` and " -":issue:`477863`.)" +"(Added by Antoine Pitrou and Georg Brandl in :issue:`10093` and :issue:" +"`477863`.)" msgstr "" #: ../../whatsnew/3.2.rst:618 msgid "" -":class:`range` objects now support *index* and *count* methods. This is part" -" of an effort to make more objects fully implement the " -":class:`collections.Sequence` :term:`abstract base class`. As a result, the" -" language will have a more uniform API. In addition, :class:`range` objects" -" now support slicing and negative indices, even with values larger than " -":attr:`sys.maxsize`. This makes *range* more interoperable with lists::" +":class:`range` objects now support *index* and *count* methods. This is part " +"of an effort to make more objects fully implement the :class:`collections." +"Sequence` :term:`abstract base class`. As a result, the language will have " +"a more uniform API. In addition, :class:`range` objects now support slicing " +"and negative indices, even with values larger than :attr:`sys.maxsize`. " +"This makes *range* more interoperable with lists::" msgstr "" #: ../../whatsnew/3.2.rst:634 @@ -648,10 +645,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:648 msgid "" -"Python's import mechanism can now load modules installed in directories with" -" non-ASCII characters in the path name. This solved an aggravating problem " -"with home directories for users with non-ASCII characters in their " -"usernames." +"Python's import mechanism can now load modules installed in directories with " +"non-ASCII characters in the path name. This solved an aggravating problem " +"with home directories for users with non-ASCII characters in their usernames." msgstr "" #: ../../whatsnew/3.2.rst:652 @@ -670,10 +666,10 @@ msgstr "" #: ../../whatsnew/3.2.rst:661 msgid "" -"The biggest news for Python 3.2 is that the :mod:`email` package, " -":mod:`mailbox` module, and :mod:`nntplib` modules now work correctly with " -"the bytes/text model in Python 3. For the first time, there is correct " -"handling of messages with mixed encodings." +"The biggest news for Python 3.2 is that the :mod:`email` package, :mod:" +"`mailbox` module, and :mod:`nntplib` modules now work correctly with the " +"bytes/text model in Python 3. For the first time, there is correct handling " +"of messages with mixed encodings." msgstr "" #: ../../whatsnew/3.2.rst:666 @@ -692,9 +688,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:674 msgid "" -"In addition, more classes now implement a :term:`context manager` to support" -" convenient and reliable resource clean-up using a :keyword:`with` " -"statement." +"In addition, more classes now implement a :term:`context manager` to support " +"convenient and reliable resource clean-up using a :keyword:`with` statement." msgstr "" #: ../../whatsnew/3.2.rst:678 @@ -705,27 +700,26 @@ msgstr "email" msgid "" "The usability of the :mod:`email` package in Python 3 has been mostly fixed " "by the extensive efforts of R. David Murray. The problem was that emails " -"are typically read and stored in the form of :class:`bytes` rather than " -":class:`str` text, and they may contain multiple encodings within a single " -"email. So, the email package had to be extended to parse and generate email" -" messages in bytes format." +"are typically read and stored in the form of :class:`bytes` rather than :" +"class:`str` text, and they may contain multiple encodings within a single " +"email. So, the email package had to be extended to parse and generate email " +"messages in bytes format." msgstr "" #: ../../whatsnew/3.2.rst:687 msgid "" -"New functions :func:`~email.message_from_bytes` and " -":func:`~email.message_from_binary_file`, and new classes " -":class:`~email.parser.BytesFeedParser` and " -":class:`~email.parser.BytesParser` allow binary message data to be parsed " -"into model objects." +"New functions :func:`~email.message_from_bytes` and :func:`~email." +"message_from_binary_file`, and new classes :class:`~email.parser." +"BytesFeedParser` and :class:`~email.parser.BytesParser` allow binary message " +"data to be parsed into model objects." msgstr "" #: ../../whatsnew/3.2.rst:692 msgid "" "Given bytes input to the model, :meth:`~email.message.Message.get_payload` " "will by default decode a message body that has a :mailheader:`Content-" -"Transfer-Encoding` of *8bit* using the charset specified in the MIME headers" -" and return the resulting string." +"Transfer-Encoding` of *8bit* using the charset specified in the MIME headers " +"and return the resulting string." msgstr "" #: ../../whatsnew/3.2.rst:697 @@ -737,31 +731,31 @@ msgstr "" #: ../../whatsnew/3.2.rst:701 msgid "" -"Headers with unencoded non-ASCII bytes are deemed to be :rfc:`2047`\\ " -"-encoded using the *unknown-8bit* character set." +"Headers with unencoded non-ASCII bytes are deemed to be :rfc:`2047`\\ -" +"encoded using the *unknown-8bit* character set." msgstr "" #: ../../whatsnew/3.2.rst:704 msgid "" "A new class :class:`~email.generator.BytesGenerator` produces bytes as " "output, preserving any unchanged non-ASCII data that was present in the " -"input used to build the model, including message bodies with a :mailheader" -":`Content-Transfer-Encoding` of *8bit*." +"input used to build the model, including message bodies with a :mailheader:" +"`Content-Transfer-Encoding` of *8bit*." msgstr "" #: ../../whatsnew/3.2.rst:709 msgid "" "The :mod:`smtplib` :class:`~smtplib.SMTP` class now accepts a byte string " "for the *msg* argument to the :meth:`~smtplib.SMTP.sendmail` method, and a " -"new method, :meth:`~smtplib.SMTP.send_message` accepts a " -":class:`~email.message.Message` object and can optionally obtain the " -"*from_addr* and *to_addrs* addresses directly from the object." +"new method, :meth:`~smtplib.SMTP.send_message` accepts a :class:`~email." +"message.Message` object and can optionally obtain the *from_addr* and " +"*to_addrs* addresses directly from the object." msgstr "" #: ../../whatsnew/3.2.rst:715 msgid "" -"(Proposed and implemented by R. David Murray, :issue:`4661` and " -":issue:`10321`.)" +"(Proposed and implemented by R. David Murray, :issue:`4661` and :issue:" +"`10321`.)" msgstr "" #: ../../whatsnew/3.2.rst:718 @@ -770,8 +764,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:720 msgid "" -"The :mod:`xml.etree.ElementTree` package and its " -":mod:`xml.etree.cElementTree` counterpart have been updated to version 1.3." +"The :mod:`xml.etree.ElementTree` package and its :mod:`xml.etree." +"cElementTree` counterpart have been updated to version 1.3." msgstr "" #: ../../whatsnew/3.2.rst:723 @@ -834,15 +828,13 @@ msgid ":meth:`xml.etree.ElementTree.getchildren` use ``list(elem)`` instead." msgstr "" #: ../../whatsnew/3.2.rst:744 -msgid "" -":meth:`xml.etree.ElementTree.getiterator` use ``Element.iter`` instead." +msgid ":meth:`xml.etree.ElementTree.getiterator` use ``Element.iter`` instead." msgstr "" #: ../../whatsnew/3.2.rst:746 msgid "" -"For details of the update, see `Introducing ElementTree " -"`_ on Fredrik Lundh's " -"website." +"For details of the update, see `Introducing ElementTree `_ on Fredrik Lundh's website." msgstr "" #: ../../whatsnew/3.2.rst:749 @@ -856,8 +848,8 @@ msgstr "functools" #: ../../whatsnew/3.2.rst:754 msgid "" "The :mod:`functools` module includes a new decorator for caching function " -"calls. :func:`functools.lru_cache` can save repeated queries to an external" -" resource whenever the results are expected to be the same." +"calls. :func:`functools.lru_cache` can save repeated queries to an external " +"resource whenever the results are expected to be the same." msgstr "" #: ../../whatsnew/3.2.rst:758 @@ -881,10 +873,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:782 msgid "" "(Contributed by Raymond Hettinger and incorporating design ideas from Jim " -"Baker, Miki Tebeka, and Nick Coghlan; see `recipe 498245 " -"`_\\, `recipe 577479 " -"`_\\, :issue:`10586`, and " -":issue:`10593`.)" +"Baker, Miki Tebeka, and Nick Coghlan; see `recipe 498245 `_\\, `recipe 577479 `_\\, :issue:`10586`, and :issue:`10593`.)" msgstr "" #: ../../whatsnew/3.2.rst:788 @@ -892,8 +883,8 @@ msgid "" "The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` " "attribute pointing to the original callable function. This allows wrapped " "functions to be introspected. It also copies :attr:`__annotations__` if " -"defined. And now it also gracefully skips over missing attributes such as " -":attr:`__doc__` which might not be defined for the wrapped callable." +"defined. And now it also gracefully skips over missing attributes such as :" +"attr:`__doc__` which might not be defined for the wrapped callable." msgstr "" #: ../../whatsnew/3.2.rst:794 @@ -904,22 +895,21 @@ msgstr "" #: ../../whatsnew/3.2.rst:799 msgid "" -"(By Nick Coghlan and Terrence Cole; :issue:`9567`, :issue:`3445`, and " -":issue:`8814`.)" +"(By Nick Coghlan and Terrence Cole; :issue:`9567`, :issue:`3445`, and :issue:" +"`8814`.)" msgstr "" #: ../../whatsnew/3.2.rst:802 msgid "" -"To help write classes with rich comparison methods, a new decorator " -":func:`functools.total_ordering` will use existing equality and inequality " -"methods to fill in the remaining methods." +"To help write classes with rich comparison methods, a new decorator :func:" +"`functools.total_ordering` will use existing equality and inequality methods " +"to fill in the remaining methods." msgstr "" #: ../../whatsnew/3.2.rst:806 msgid "" -"For example, supplying *__eq__* and *__lt__* will enable " -":func:`~functools.total_ordering` to fill-in *__le__*, *__gt__* and " -"*__ge__*::" +"For example, supplying *__eq__* and *__lt__* will enable :func:`~functools." +"total_ordering` to fill-in *__le__*, *__gt__* and *__ge__*::" msgstr "" #: ../../whatsnew/3.2.rst:819 @@ -950,12 +940,12 @@ msgstr "" #: ../../whatsnew/3.2.rst:837 msgid "itertools" -msgstr "" +msgstr "itertools" #: ../../whatsnew/3.2.rst:839 msgid "" -"The :mod:`itertools` module has a new :func:`~itertools.accumulate` function" -" modeled on APL's *scan* operator and Numpy's *accumulate* function:" +"The :mod:`itertools` module has a new :func:`~itertools.accumulate` function " +"modeled on APL's *scan* operator and Numpy's *accumulate* function:" msgstr "" #: ../../whatsnew/3.2.rst:850 @@ -977,19 +967,19 @@ msgstr "collections" #: ../../whatsnew/3.2.rst:859 msgid "" "The :class:`collections.Counter` class now has two forms of in-place " -"subtraction, the existing *-=* operator for `saturating subtraction " -"`_ and the new " -":meth:`~collections.Counter.subtract` method for regular subtraction. The " -"former is suitable for `multisets `_" -" which only have positive counts, and the latter is more suitable for use " -"cases that allow negative counts:" +"subtraction, the existing *-=* operator for `saturating subtraction `_ and the new :meth:" +"`~collections.Counter.subtract` method for regular subtraction. The former " +"is suitable for `multisets `_ which " +"only have positive counts, and the latter is more suitable for use cases " +"that allow negative counts:" msgstr "" #: ../../whatsnew/3.2.rst:880 msgid "" -"The :class:`collections.OrderedDict` class has a new method " -":meth:`~collections.OrderedDict.move_to_end` which takes an existing key and" -" moves it to either the first or last position in the ordered sequence." +"The :class:`collections.OrderedDict` class has a new method :meth:" +"`~collections.OrderedDict.move_to_end` which takes an existing key and moves " +"it to either the first or last position in the ordered sequence." msgstr "" #: ../../whatsnew/3.2.rst:884 @@ -1001,15 +991,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:887 msgid "" "A fast move-to-end operation is useful for resequencing entries. For " -"example, an ordered dictionary can be used to track order of access by aging" -" entries from the oldest to the most recently accessed." +"example, an ordered dictionary can be used to track order of access by aging " +"entries from the oldest to the most recently accessed." msgstr "" #: ../../whatsnew/3.2.rst:901 msgid "" -"The :class:`collections.deque` class grew two new methods " -":meth:`~collections.deque.count` and :meth:`~collections.deque.reverse` that" -" make them more substitutable for :class:`list` objects:" +"The :class:`collections.deque` class grew two new methods :meth:" +"`~collections.deque.count` and :meth:`~collections.deque.reverse` that make " +"them more substitutable for :class:`list` objects:" msgstr "" #: ../../whatsnew/3.2.rst:916 @@ -1028,9 +1018,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:924 msgid "" "Barriers can work with an arbitrary number of threads. This is a " -"generalization of a `Rendezvous " -"`_ which is defined " -"for only two threads." +"generalization of a `Rendezvous `_ which is defined for only two threads." msgstr "" #: ../../whatsnew/3.2.rst:928 @@ -1048,8 +1037,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:947 msgid "" -"In this example, the barrier enforces a rule that votes cannot be counted at" -" any polling site until all polls are closed. Notice how a solution with a " +"In this example, the barrier enforces a rule that votes cannot be counted at " +"any polling site until all polls are closed. Notice how a solution with a " "barrier is similar to one with :meth:`threading.Thread.join`, but the " "threads stay alive and continue to do work (summarizing ballots) after the " "barrier point is crossed." @@ -1073,19 +1062,18 @@ msgstr "" #: ../../whatsnew/3.2.rst:973 msgid "" -"See `Barrier Synchronization Patterns " -"`_" -" for more examples of how barriers can be used in parallel computing. Also," -" there is a simple but thorough explanation of barriers in `The Little Book " -"of Semaphores " +"See `Barrier Synchronization Patterns `_ for more examples " +"of how barriers can be used in parallel computing. Also, there is a simple " +"but thorough explanation of barriers in `The Little Book of Semaphores " "`_, " "*section 3.6*." msgstr "" #: ../../whatsnew/3.2.rst:979 msgid "" -"(Contributed by Kristján Valur Jónsson with an API review by Jeffrey Yasskin" -" in :issue:`8777`.)" +"(Contributed by Kristján Valur Jónsson with an API review by Jeffrey Yasskin " +"in :issue:`8777`.)" msgstr "" #: ../../whatsnew/3.2.rst:983 @@ -1102,9 +1090,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:998 msgid "" -"Also, :class:`~datetime.timedelta` objects can now be multiplied by " -":class:`float` and divided by :class:`float` and :class:`int` objects. And " -":class:`~datetime.timedelta` objects can now divide one another." +"Also, :class:`~datetime.timedelta` objects can now be multiplied by :class:" +"`float` and divided by :class:`float` and :class:`int` objects. And :class:" +"`~datetime.timedelta` objects can now divide one another." msgstr "" #: ../../whatsnew/3.2.rst:1002 @@ -1123,31 +1111,31 @@ msgstr "" #: ../../whatsnew/3.2.rst:1010 msgid "" -"Starting with Py3.2, use of the century guessing heuristic will emit a " -":exc:`DeprecationWarning`. Instead, it is recommended that " -":attr:`time.accept2dyear` be set to ``False`` so that large date ranges can " -"be used without guesswork::" +"Starting with Py3.2, use of the century guessing heuristic will emit a :exc:" +"`DeprecationWarning`. Instead, it is recommended that :attr:`time." +"accept2dyear` be set to ``False`` so that large date ranges can be used " +"without guesswork::" msgstr "" #: ../../whatsnew/3.2.rst:1029 msgid "" -"Several functions now have significantly expanded date ranges. When " -":attr:`time.accept2dyear` is false, the :func:`time.asctime` function will " -"accept any year that fits in a C int, while the :func:`time.mktime` and " -":func:`time.strftime` functions will accept the full range supported by the " +"Several functions now have significantly expanded date ranges. When :attr:" +"`time.accept2dyear` is false, the :func:`time.asctime` function will accept " +"any year that fits in a C int, while the :func:`time.mktime` and :func:`time." +"strftime` functions will accept the full range supported by the " "corresponding operating system functions." msgstr "" #: ../../whatsnew/3.2.rst:1035 msgid "" -"(Contributed by Alexander Belopolsky and Victor Stinner in :issue:`1289118`," -" :issue:`5094`, :issue:`6641`, :issue:`2706`, :issue:`1777412`, " -":issue:`8013`, and :issue:`10827`.)" +"(Contributed by Alexander Belopolsky and Victor Stinner in :issue:" +"`1289118`, :issue:`5094`, :issue:`6641`, :issue:`2706`, :issue:`1777412`, :" +"issue:`8013`, and :issue:`10827`.)" msgstr "" #: ../../whatsnew/3.2.rst:1042 msgid "math" -msgstr "" +msgstr "math" #: ../../whatsnew/3.2.rst:1044 msgid "" @@ -1164,8 +1152,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:1055 msgid "" -"The :func:`~math.expm1` function computes ``e**x-1`` for small values of *x*" -" without incurring the loss of precision that usually accompanies the " +"The :func:`~math.expm1` function computes ``e**x-1`` for small values of *x* " +"without incurring the loss of precision that usually accompanies the " "subtraction of nearly equal quantities:" msgstr "" @@ -1180,8 +1168,8 @@ msgstr "" msgid "" "The :func:`~math.gamma` function is a continuous extension of the factorial " "function. See https://en.wikipedia.org/wiki/Gamma_function for details. " -"Because the function is related to factorials, it grows large even for small" -" values of *x*, so there is also a :func:`~math.lgamma` function for " +"Because the function is related to factorials, it grows large even for small " +"values of *x*, so there is also a :func:`~math.lgamma` function for " "computing the natural logarithm of the gamma function:" msgstr "" @@ -1195,8 +1183,8 @@ msgstr "abc" #: ../../whatsnew/3.2.rst:1095 msgid "" -"The :mod:`abc` module now supports :func:`~abc.abstractclassmethod` and " -":func:`~abc.abstractstaticmethod`." +"The :mod:`abc` module now supports :func:`~abc.abstractclassmethod` and :" +"func:`~abc.abstractstaticmethod`." msgstr "" #: ../../whatsnew/3.2.rst:1098 @@ -1212,14 +1200,14 @@ msgstr "" #: ../../whatsnew/3.2.rst:1113 msgid "io" -msgstr "" +msgstr "io" #: ../../whatsnew/3.2.rst:1115 msgid "" "The :class:`io.BytesIO` has a new method, :meth:`~io.BytesIO.getbuffer`, " "which provides functionality similar to :func:`memoryview`. It creates an " -"editable view of the data without making a copy. The buffer's random access" -" and support for slice notation are well-suited to in-place editing::" +"editable view of the data without making a copy. The buffer's random access " +"and support for slice notation are well-suited to in-place editing::" msgstr "" #: ../../whatsnew/3.2.rst:1141 @@ -1232,8 +1220,8 @@ msgstr "reprlib" #: ../../whatsnew/3.2.rst:1146 msgid "" -"When writing a :meth:`__repr__` method for a custom container, it is easy to" -" forget to handle the case where a member refers back to the container " +"When writing a :meth:`__repr__` method for a custom container, it is easy to " +"forget to handle the case where a member refers back to the container " "itself. Python's builtin objects such as :class:`list` and :class:`set` " "handle self-reference by displaying \"...\" in the recursive part of the " "representation string." @@ -1241,8 +1229,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:1152 msgid "" -"To help write such :meth:`__repr__` methods, the :mod:`reprlib` module has a" -" new decorator, :func:`~reprlib.recursive_repr`, for detecting recursive " +"To help write such :meth:`__repr__` methods, the :mod:`reprlib` module has a " +"new decorator, :func:`~reprlib.recursive_repr`, for detecting recursive " "calls to :meth:`__repr__` and substituting a placeholder string instead::" msgstr "" @@ -1256,8 +1244,8 @@ msgstr "logging" #: ../../whatsnew/3.2.rst:1172 msgid "" -"In addition to dictionary-based configuration described above, the " -":mod:`logging` package has many other improvements." +"In addition to dictionary-based configuration described above, the :mod:" +"`logging` package has many other improvements." msgstr "" #: ../../whatsnew/3.2.rst:1175 @@ -1270,30 +1258,30 @@ msgstr "" #: ../../whatsnew/3.2.rst:1180 msgid "" -"The :func:`logging.basicConfig` set-up function gained a *style* argument to" -" support three different types of string formatting. It defaults to \"%\" " -"for traditional %-formatting, can be set to \"{\" for the new " -":meth:`str.format` style, or can be set to \"$\" for the shell-style " -"formatting provided by :class:`string.Template`. The following three " -"configurations are equivalent::" +"The :func:`logging.basicConfig` set-up function gained a *style* argument to " +"support three different types of string formatting. It defaults to \"%\" " +"for traditional %-formatting, can be set to \"{\" for the new :meth:`str." +"format` style, or can be set to \"$\" for the shell-style formatting " +"provided by :class:`string.Template`. The following three configurations " +"are equivalent::" msgstr "" #: ../../whatsnew/3.2.rst:1191 msgid "" "If no configuration is set-up before a logging event occurs, there is now a " -"default configuration using a :class:`~logging.StreamHandler` directed to " -":attr:`sys.stderr` for events of ``WARNING`` level or higher. Formerly, an " +"default configuration using a :class:`~logging.StreamHandler` directed to :" +"attr:`sys.stderr` for events of ``WARNING`` level or higher. Formerly, an " "event occurring before a configuration was set-up would either raise an " -"exception or silently drop the event depending on the value of " -":attr:`logging.raiseExceptions`. The new default handler is stored in " -":attr:`logging.lastResort`." +"exception or silently drop the event depending on the value of :attr:" +"`logging.raiseExceptions`. The new default handler is stored in :attr:" +"`logging.lastResort`." msgstr "" #: ../../whatsnew/3.2.rst:1199 msgid "" -"The use of filters has been simplified. Instead of creating a " -":class:`~logging.Filter` object, the predicate can be any Python callable " -"that returns ``True`` or ``False``." +"The use of filters has been simplified. Instead of creating a :class:" +"`~logging.Filter` object, the predicate can be any Python callable that " +"returns ``True`` or ``False``." msgstr "" #: ../../whatsnew/3.2.rst:1203 @@ -1305,21 +1293,20 @@ msgstr "" #: ../../whatsnew/3.2.rst:1208 msgid "csv" -msgstr "" +msgstr "csv" #: ../../whatsnew/3.2.rst:1210 msgid "" -"The :mod:`csv` module now supports a new dialect, " -":class:`~csv.unix_dialect`, which applies quoting for all fields and a " -"traditional Unix style with ``'\\n'`` as the line terminator. The " -"registered dialect name is ``unix``." +"The :mod:`csv` module now supports a new dialect, :class:`~csv." +"unix_dialect`, which applies quoting for all fields and a traditional Unix " +"style with ``'\\n'`` as the line terminator. The registered dialect name is " +"``unix``." msgstr "" #: ../../whatsnew/3.2.rst:1214 msgid "" -"The :class:`csv.DictWriter` has a new method, " -":meth:`~csv.DictWriter.writeheader` for writing-out an initial row to " -"document the field names::" +"The :class:`csv.DictWriter` has a new method, :meth:`~csv.DictWriter." +"writeheader` for writing-out an initial row to document the field names::" msgstr "" #: ../../whatsnew/3.2.rst:1228 @@ -1334,23 +1321,22 @@ msgstr "contextlib" #: ../../whatsnew/3.2.rst:1234 msgid "" -"There is a new and slightly mind-blowing tool " -":class:`~contextlib.ContextDecorator` that is helpful for creating a " -":term:`context manager` that does double duty as a function decorator." +"There is a new and slightly mind-blowing tool :class:`~contextlib." +"ContextDecorator` that is helpful for creating a :term:`context manager` " +"that does double duty as a function decorator." msgstr "" #: ../../whatsnew/3.2.rst:1238 msgid "" -"As a convenience, this new functionality is used by " -":func:`~contextlib.contextmanager` so that no extra effort is needed to " -"support both roles." +"As a convenience, this new functionality is used by :func:`~contextlib." +"contextmanager` so that no extra effort is needed to support both roles." msgstr "" #: ../../whatsnew/3.2.rst:1242 msgid "" "The basic idea is that both context managers and function decorators can be " -"used for pre-action and post-action wrappers. Context managers wrap a group" -" of statements using a :keyword:`with` statement, and function decorators " +"used for pre-action and post-action wrappers. Context managers wrap a group " +"of statements using a :keyword:`with` statement, and function decorators " "wrap a group of statements enclosed in a function. So, occasionally there " "is a need to write a pre-action or post-action wrapper that can be used in " "either role." @@ -1359,10 +1345,10 @@ msgstr "" #: ../../whatsnew/3.2.rst:1248 msgid "" "For example, it is sometimes useful to wrap functions or groups of " -"statements with a logger that can track the time of entry and time of exit." -" Rather than writing both a function decorator and a context manager for " -"the task, the :func:`~contextlib.contextmanager` provides both capabilities " -"in a single definition::" +"statements with a logger that can track the time of entry and time of exit. " +"Rather than writing both a function decorator and a context manager for the " +"task, the :func:`~contextlib.contextmanager` provides both capabilities in a " +"single definition::" msgstr "" #: ../../whatsnew/3.2.rst:1265 @@ -1377,8 +1363,8 @@ msgstr "" msgid "" "Trying to fulfill two roles at once places some limitations on the " "technique. Context managers normally have the flexibility to return an " -"argument usable by a :keyword:`with` statement, but there is no parallel for" -" function decorators." +"argument usable by a :keyword:`with` statement, but there is no parallel for " +"function decorators." msgstr "" #: ../../whatsnew/3.2.rst:1282 @@ -1405,10 +1391,10 @@ msgstr "" #: ../../whatsnew/3.2.rst:1298 msgid "" -"Some of the hashing details are exposed through a new attribute, " -":attr:`sys.hash_info`, which describes the bit width of the hash value, the " -"prime modulus, the hash values for *infinity* and *nan*, and the multiplier " -"used for the imaginary part of a number:" +"Some of the hashing details are exposed through a new attribute, :attr:`sys." +"hash_info`, which describes the bit width of the hash value, the prime " +"modulus, the hash values for *infinity* and *nan*, and the multiplier used " +"for the imaginary part of a number:" msgstr "" #: ../../whatsnew/3.2.rst:1306 @@ -1417,39 +1403,37 @@ msgid "" "has been relaxed. It is still unsupported (and ill-advised) to have " "implicit mixing in arithmetic expressions such as ``Decimal('1.1') + " "float('1.1')`` because the latter loses information in the process of " -"constructing the binary float. However, since existing floating point value" -" can be converted losslessly to either a decimal or rational representation," -" it makes sense to add them to the constructor and to support mixed-type " +"constructing the binary float. However, since existing floating point value " +"can be converted losslessly to either a decimal or rational representation, " +"it makes sense to add them to the constructor and to support mixed-type " "comparisons." msgstr "" #: ../../whatsnew/3.2.rst:1314 msgid "" "The :class:`decimal.Decimal` constructor now accepts :class:`float` objects " -"directly so there in no longer a need to use the " -":meth:`~decimal.Decimal.from_float` method (:issue:`8257`)." +"directly so there in no longer a need to use the :meth:`~decimal.Decimal." +"from_float` method (:issue:`8257`)." msgstr "" #: ../../whatsnew/3.2.rst:1318 msgid "" -"Mixed type comparisons are now fully supported so that " -":class:`~decimal.Decimal` objects can be directly compared with " -":class:`float` and :class:`fractions.Fraction` (:issue:`2531` and " -":issue:`8188`)." +"Mixed type comparisons are now fully supported so that :class:`~decimal." +"Decimal` objects can be directly compared with :class:`float` and :class:" +"`fractions.Fraction` (:issue:`2531` and :issue:`8188`)." msgstr "" #: ../../whatsnew/3.2.rst:1322 msgid "" -"Similar changes were made to :class:`fractions.Fraction` so that the " -":meth:`~fractions.Fraction.from_float()` and " -":meth:`~fractions.Fraction.from_decimal` methods are no longer needed " -"(:issue:`8294`):" +"Similar changes were made to :class:`fractions.Fraction` so that the :meth:" +"`~fractions.Fraction.from_float()` and :meth:`~fractions.Fraction." +"from_decimal` methods are no longer needed (:issue:`8294`):" msgstr "" #: ../../whatsnew/3.2.rst:1333 msgid "" -"Another useful change for the :mod:`decimal` module is that the " -":attr:`Context.clamp` attribute is now public. This is useful in creating " +"Another useful change for the :mod:`decimal` module is that the :attr:" +"`Context.clamp` attribute is now public. This is useful in creating " "contexts that correspond to the decimal interchange formats specified in " "IEEE 754 (see :issue:`8540`)." msgstr "" @@ -1471,8 +1455,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:1358 msgid "" -"Other file-like objects such as :class:`mmap.mmap` and " -":func:`fileinput.input` also grew auto-closing context managers::" +"Other file-like objects such as :class:`mmap.mmap` and :func:`fileinput." +"input` also grew auto-closing context managers::" msgstr "" #: ../../whatsnew/3.2.rst:1365 @@ -1499,14 +1483,14 @@ msgstr "" #: ../../whatsnew/3.2.rst:1377 msgid "" -"The :func:`os.popen` and :func:`subprocess.Popen` functions now support " -":keyword:`with` statements for auto-closing of the file descriptors." +"The :func:`os.popen` and :func:`subprocess.Popen` functions now support :" +"keyword:`with` statements for auto-closing of the file descriptors." msgstr "" #: ../../whatsnew/3.2.rst:1380 msgid "" -"(Contributed by Antoine Pitrou and Brian Curtin in :issue:`7461` and " -":issue:`10554`.)" +"(Contributed by Antoine Pitrou and Brian Curtin in :issue:`7461` and :issue:" +"`10554`.)" msgstr "" #: ../../whatsnew/3.2.rst:1384 @@ -1515,8 +1499,8 @@ msgstr "select" #: ../../whatsnew/3.2.rst:1386 msgid "" -"The :mod:`select` module now exposes a new, constant attribute, " -":attr:`~select.PIPE_BUF`, which gives the minimum number of bytes which are " +"The :mod:`select` module now exposes a new, constant attribute, :attr:" +"`~select.PIPE_BUF`, which gives the minimum number of bytes which are " "guaranteed not to block when :func:`select.select` says a pipe is ready for " "writing." msgstr "" @@ -1531,24 +1515,24 @@ msgstr "" #: ../../whatsnew/3.2.rst:1400 msgid "" -":class:`gzip.GzipFile` now implements the :class:`io.BufferedIOBase` " -":term:`abstract base class` (except for ``truncate()``). It also has a " -":meth:`~gzip.GzipFile.peek` method and supports unseekable as well as zero-" -"padded file objects." +":class:`gzip.GzipFile` now implements the :class:`io.BufferedIOBase` :term:" +"`abstract base class` (except for ``truncate()``). It also has a :meth:" +"`~gzip.GzipFile.peek` method and supports unseekable as well as zero-padded " +"file objects." msgstr "" #: ../../whatsnew/3.2.rst:1405 msgid "" -"The :mod:`gzip` module also gains the :func:`~gzip.compress` and " -":func:`~gzip.decompress` functions for easier in-memory compression and " -"decompression. Keep in mind that text needs to be encoded as :class:`bytes`" -" before compressing and decompressing:" +"The :mod:`gzip` module also gains the :func:`~gzip.compress` and :func:" +"`~gzip.decompress` functions for easier in-memory compression and " +"decompression. Keep in mind that text needs to be encoded as :class:`bytes` " +"before compressing and decompressing:" msgstr "" #: ../../whatsnew/3.2.rst:1422 msgid "" -"(Contributed by Anand B. Pillai in :issue:`3488`; and by Antoine Pitrou, Nir" -" Aides and Brian Curtin in :issue:`9962`, :issue:`1675951`, :issue:`7471` " +"(Contributed by Anand B. Pillai in :issue:`3488`; and by Antoine Pitrou, Nir " +"Aides and Brian Curtin in :issue:`9962`, :issue:`1675951`, :issue:`7471` " "and :issue:`2846`.)" msgstr "" @@ -1582,9 +1566,9 @@ msgid "" "The new *filter* option replaces the older, less flexible *exclude* " "parameter which is now deprecated. If specified, the optional *filter* " "parameter needs to be a :term:`keyword argument`. The user-supplied filter " -"function accepts a :class:`~tarfile.TarInfo` object and returns an updated " -":class:`~tarfile.TarInfo` object, or if it wants the file to be excluded, " -"the function can return ``None``::" +"function accepts a :class:`~tarfile.TarInfo` object and returns an updated :" +"class:`~tarfile.TarInfo` object, or if it wants the file to be excluded, the " +"function can return ``None``::" msgstr "" #: ../../whatsnew/3.2.rst:1466 @@ -1599,8 +1583,8 @@ msgstr "hashlib" #: ../../whatsnew/3.2.rst:1471 msgid "" "The :mod:`hashlib` module has two new constant attributes listing the " -"hashing algorithms guaranteed to be present in all implementations and those" -" available on the current implementation::" +"hashing algorithms guaranteed to be present in all implementations and those " +"available on the current implementation::" msgstr "" #: ../../whatsnew/3.2.rst:1486 @@ -1614,11 +1598,11 @@ msgstr "ast" #: ../../whatsnew/3.2.rst:1491 msgid "" "The :mod:`ast` module has a wonderful a general-purpose tool for safely " -"evaluating expression strings using the Python literal syntax. The " -":func:`ast.literal_eval` function serves as a secure alternative to the " -"builtin :func:`eval` function which is easily abused. Python 3.2 adds " -":class:`bytes` and :class:`set` literals to the list of supported types: " -"strings, bytes, numbers, tuples, lists, dicts, sets, booleans, and ``None``." +"evaluating expression strings using the Python literal syntax. The :func:" +"`ast.literal_eval` function serves as a secure alternative to the builtin :" +"func:`eval` function which is easily abused. Python 3.2 adds :class:`bytes` " +"and :class:`set` literals to the list of supported types: strings, bytes, " +"numbers, tuples, lists, dicts, sets, booleans, and ``None``." msgstr "" #: ../../whatsnew/3.2.rst:1512 @@ -1632,8 +1616,8 @@ msgstr "os" #: ../../whatsnew/3.2.rst:1517 msgid "" "Different operating systems use various encodings for filenames and " -"environment variables. The :mod:`os` module provides two new functions, " -":func:`~os.fsencode` and :func:`~os.fsdecode`, for encoding and decoding " +"environment variables. The :mod:`os` module provides two new functions, :" +"func:`~os.fsencode` and :func:`~os.fsdecode`, for encoding and decoding " "filenames:" msgstr "" @@ -1672,8 +1656,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:1546 msgid "" -"*copy_function*: is a callable that will be used to copy files. " -":func:`shutil.copy2` is used by default." +"*copy_function*: is a callable that will be used to copy files. :func:" +"`shutil.copy2` is used by default." msgstr "" #: ../../whatsnew/3.2.rst:1549 ../../whatsnew/3.2.rst:1587 @@ -1691,11 +1675,11 @@ msgstr "" #: ../../whatsnew/3.2.rst:1556 msgid "" -"The principal functions are :func:`~shutil.make_archive` and " -":func:`~shutil.unpack_archive`. By default, both operate on the current " -"directory (which can be set by :func:`os.chdir`) and on any sub-directories." -" The archive filename needs to be specified with a full pathname. The " -"archiving step is non-destructive (the original files are left unchanged)." +"The principal functions are :func:`~shutil.make_archive` and :func:`~shutil." +"unpack_archive`. By default, both operate on the current directory (which " +"can be set by :func:`os.chdir`) and on any sub-directories. The archive " +"filename needs to be specified with a full pathname. The archiving step is " +"non-destructive (the original files are left unchanged)." msgstr "" #: ../../whatsnew/3.2.rst:1590 @@ -1704,8 +1688,8 @@ msgstr "sqlite3" #: ../../whatsnew/3.2.rst:1592 msgid "" -"The :mod:`sqlite3` module was updated to pysqlite version 2.6.0. It has two" -" new capabilities." +"The :mod:`sqlite3` module was updated to pysqlite version 2.6.0. It has two " +"new capabilities." msgstr "" #: ../../whatsnew/3.2.rst:1594 @@ -1716,10 +1700,10 @@ msgstr "" #: ../../whatsnew/3.2.rst:1597 msgid "" -"The :meth:`sqlite3.Connection.enable_load_extension` and " -":meth:`sqlite3.Connection.load_extension` methods allows you to load SQLite " -"extensions from \".so\" files. One well-known extension is the fulltext-" -"search extension distributed with SQLite." +"The :meth:`sqlite3.Connection.enable_load_extension` and :meth:`sqlite3." +"Connection.load_extension` methods allows you to load SQLite extensions from " +"\".so\" files. One well-known extension is the fulltext-search extension " +"distributed with SQLite." msgstr "" #: ../../whatsnew/3.2.rst:1602 @@ -1732,9 +1716,9 @@ msgstr "html" #: ../../whatsnew/3.2.rst:1607 msgid "" -"A new :mod:`html` module was introduced with only a single function, " -":func:`~html.escape`, which is used for escaping reserved characters from " -"HTML markup:" +"A new :mod:`html` module was introduced with only a single function, :func:" +"`~html.escape`, which is used for escaping reserved characters from HTML " +"markup:" msgstr "" #: ../../whatsnew/3.2.rst:1616 @@ -1757,8 +1741,7 @@ msgstr "" msgid "" ":func:`socket.create_connection` now supports the context management " "protocol to unconditionally consume :exc:`socket.error` exceptions and to " -"close the socket when done. (Contributed by Giampaolo Rodolà; " -":issue:`9794`.)" +"close the socket when done. (Contributed by Giampaolo Rodolà; :issue:`9794`.)" msgstr "" #: ../../whatsnew/3.2.rst:1631 @@ -1774,8 +1757,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:1636 msgid "" "A new class, :class:`~ssl.SSLContext`, serves as a container for persistent " -"SSL data, such as protocol settings, certificates, private keys, and various" -" other options. It includes a :meth:`~ssl.SSLContext.wrap_socket` for " +"SSL data, such as protocol settings, certificates, private keys, and various " +"other options. It includes a :meth:`~ssl.SSLContext.wrap_socket` for " "creating an SSL socket from an SSL context." msgstr "" @@ -1790,26 +1773,23 @@ msgstr "" msgid "" "The :func:`ssl.wrap_socket` constructor function now takes a *ciphers* " "argument. The *ciphers* string lists the allowed encryption algorithms " -"using the format described in the `OpenSSL documentation " -"`__." +"using the format described in the `OpenSSL documentation `__." msgstr "" #: ../../whatsnew/3.2.rst:1650 msgid "" "When linked against recent versions of OpenSSL, the :mod:`ssl` module now " "supports the Server Name Indication extension to the TLS protocol, allowing " -"multiple \"virtual hosts\" using different certificates on a single IP port." -" This extension is only supported in client mode, and is activated by " -"passing the *server_hostname* argument to " -":meth:`ssl.SSLContext.wrap_socket`." +"multiple \"virtual hosts\" using different certificates on a single IP port. " +"This extension is only supported in client mode, and is activated by passing " +"the *server_hostname* argument to :meth:`ssl.SSLContext.wrap_socket`." msgstr "" #: ../../whatsnew/3.2.rst:1656 msgid "" -"Various options have been added to the :mod:`ssl` module, such as " -":data:`~ssl.OP_NO_SSLv2` which disables the insecure and obsolete SSLv2 " -"protocol." +"Various options have been added to the :mod:`ssl` module, such as :data:" +"`~ssl.OP_NO_SSLv2` which disables the insecure and obsolete SSLv2 protocol." msgstr "" #: ../../whatsnew/3.2.rst:1660 @@ -1822,16 +1802,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:1664 msgid "" "The version of OpenSSL being used is now accessible using the module " -"attributes :data:`ssl.OPENSSL_VERSION` (a string), " -":data:`ssl.OPENSSL_VERSION_INFO` (a 5-tuple), and " -":data:`ssl.OPENSSL_VERSION_NUMBER` (an integer)." +"attributes :data:`ssl.OPENSSL_VERSION` (a string), :data:`ssl." +"OPENSSL_VERSION_INFO` (a 5-tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` " +"(an integer)." msgstr "" #: ../../whatsnew/3.2.rst:1669 msgid "" -"(Contributed by Antoine Pitrou in :issue:`8850`, :issue:`1589`, " -":issue:`8322`, :issue:`5639`, :issue:`4870`, :issue:`8484`, and " -":issue:`8321`.)" +"(Contributed by Antoine Pitrou in :issue:`8850`, :issue:`1589`, :issue:" +"`8322`, :issue:`5639`, :issue:`4870`, :issue:`8484`, and :issue:`8321`.)" msgstr "" #: ../../whatsnew/3.2.rst:1673 @@ -1841,22 +1820,22 @@ msgstr "" #: ../../whatsnew/3.2.rst:1675 msgid "" "The :mod:`nntplib` module has a revamped implementation with better bytes " -"and text semantics as well as more practical APIs. These improvements break" -" compatibility with the nntplib version in Python 3.1, which was partly " +"and text semantics as well as more practical APIs. These improvements break " +"compatibility with the nntplib version in Python 3.1, which was partly " "dysfunctional in itself." msgstr "" #: ../../whatsnew/3.2.rst:1680 msgid "" -"Support for secure connections through both implicit (using " -":class:`nntplib.NNTP_SSL`) and explicit (using " -":meth:`nntplib.NNTP.starttls`) TLS has also been added." +"Support for secure connections through both implicit (using :class:`nntplib." +"NNTP_SSL`) and explicit (using :meth:`nntplib.NNTP.starttls`) TLS has also " +"been added." msgstr "" #: ../../whatsnew/3.2.rst:1684 msgid "" -"(Contributed by Antoine Pitrou in :issue:`9360` and Andrew Vant in " -":issue:`1926`.)" +"(Contributed by Antoine Pitrou in :issue:`9360` and Andrew Vant in :issue:" +"`1926`.)" msgstr "" #: ../../whatsnew/3.2.rst:1687 @@ -1902,33 +1881,32 @@ msgstr "" #: ../../whatsnew/3.2.rst:1711 msgid "" -"The :class:`~http.client.HTTPConnection` and " -":class:`~http.client.HTTPSConnection` classes now have a *source_address* " -"parameter for a (host, port) tuple indicating where the HTTP connection is " -"made from." +"The :class:`~http.client.HTTPConnection` and :class:`~http.client." +"HTTPSConnection` classes now have a *source_address* parameter for a (host, " +"port) tuple indicating where the HTTP connection is made from." msgstr "" #: ../../whatsnew/3.2.rst:1716 msgid "" -"Support for certificate checking and HTTPS virtual hosts were added to " -":class:`~http.client.HTTPSConnection`." +"Support for certificate checking and HTTPS virtual hosts were added to :" +"class:`~http.client.HTTPSConnection`." msgstr "" #: ../../whatsnew/3.2.rst:1719 msgid "" -"The :meth:`~http.client.HTTPConnection.request` method on connection objects" -" allowed an optional *body* argument so that a :term:`file object` could be " +"The :meth:`~http.client.HTTPConnection.request` method on connection objects " +"allowed an optional *body* argument so that a :term:`file object` could be " "used to supply the content of the request. Conveniently, the *body* " "argument now also accepts an :term:`iterable` object so long as it includes " -"an explicit ``Content-Length`` header. This extended interface is much more" -" flexible than before." +"an explicit ``Content-Length`` header. This extended interface is much more " +"flexible than before." msgstr "" #: ../../whatsnew/3.2.rst:1726 msgid "" -"To establish an HTTPS connection through a proxy server, there is a new " -":meth:`~http.client.HTTPConnection.set_tunnel` method that sets the host and" -" port for HTTP Connect tunneling." +"To establish an HTTPS connection through a proxy server, there is a new :" +"meth:`~http.client.HTTPConnection.set_tunnel` method that sets the host and " +"port for HTTP Connect tunneling." msgstr "" #: ../../whatsnew/3.2.rst:1730 @@ -1936,8 +1914,8 @@ msgid "" "To match the behavior of :mod:`http.server`, the HTTP client library now " "also encodes headers with ISO-8859-1 (Latin-1) encoding. It was already " "doing that for incoming headers, so now the behavior is consistent for both " -"incoming and outgoing traffic. (See work by Armin Ronacher in " -":issue:`10980`.)" +"incoming and outgoing traffic. (See work by Armin Ronacher in :issue:" +"`10980`.)" msgstr "" #: ../../whatsnew/3.2.rst:1736 @@ -1947,8 +1925,8 @@ msgstr "unittest" #: ../../whatsnew/3.2.rst:1738 msgid "" "The unittest module has a number of improvements supporting test discovery " -"for packages, easier experimentation at the interactive prompt, new testcase" -" methods, improved diagnostic messages for test failures, and better method " +"for packages, easier experimentation at the interactive prompt, new testcase " +"methods, improved diagnostic messages for test failures, and better method " "names." msgstr "" @@ -1969,17 +1947,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:1756 msgid "" -"Experimentation at the interactive prompt is now easier because the " -":class:`unittest.case.TestCase` class can now be instantiated without " -"arguments:" +"Experimentation at the interactive prompt is now easier because the :class:" +"`unittest.case.TestCase` class can now be instantiated without arguments:" msgstr "" #: ../../whatsnew/3.2.rst:1765 msgid "" -"The :mod:`unittest` module has two new methods, " -":meth:`~unittest.TestCase.assertWarns` and " -":meth:`~unittest.TestCase.assertWarnsRegex` to verify that a given warning " -"type is triggered by the code under test::" +"The :mod:`unittest` module has two new methods, :meth:`~unittest.TestCase." +"assertWarns` and :meth:`~unittest.TestCase.assertWarnsRegex` to verify that " +"a given warning type is triggered by the code under test::" msgstr "" #: ../../whatsnew/3.2.rst:1773 @@ -2006,15 +1982,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:1792 msgid "" -"In addition, the method names in the module have undergone a number of " -"clean-ups." +"In addition, the method names in the module have undergone a number of clean-" +"ups." msgstr "" #: ../../whatsnew/3.2.rst:1794 msgid "" -"For example, :meth:`~unittest.TestCase.assertRegex` is the new name for " -":meth:`~unittest.TestCase.assertRegexpMatches` which was misnamed because " -"the test uses :func:`re.search`, not :func:`re.match`. Other methods using " +"For example, :meth:`~unittest.TestCase.assertRegex` is the new name for :" +"meth:`~unittest.TestCase.assertRegexpMatches` which was misnamed because the " +"test uses :func:`re.search`, not :func:`re.match`. Other methods using " "regular expressions are now named using short form \"Regex\" in preference " "to \"Regexp\" -- this matches the names used in other unittest " "implementations, matches Python's old name for the :mod:`re` module, and it " @@ -2041,43 +2017,43 @@ msgstr "" #: ../../whatsnew/3.2.rst:1810 msgid ":meth:`assert_`" -msgstr "" +msgstr ":meth:`assert_`" #: ../../whatsnew/3.2.rst:1810 msgid ":meth:`.assertTrue`" -msgstr "" +msgstr ":meth:`.assertTrue`" #: ../../whatsnew/3.2.rst:1811 msgid ":meth:`assertEquals`" -msgstr "" +msgstr ":meth:`assertEquals`" #: ../../whatsnew/3.2.rst:1811 msgid ":meth:`.assertEqual`" -msgstr "" +msgstr ":meth:`.assertEqual`" #: ../../whatsnew/3.2.rst:1812 msgid ":meth:`assertNotEquals`" -msgstr "" +msgstr ":meth:`assertNotEquals`" #: ../../whatsnew/3.2.rst:1812 msgid ":meth:`.assertNotEqual`" -msgstr "" +msgstr ":meth:`.assertNotEqual`" #: ../../whatsnew/3.2.rst:1813 msgid ":meth:`assertAlmostEquals`" -msgstr "" +msgstr ":meth:`assertAlmostEquals`" #: ../../whatsnew/3.2.rst:1813 msgid ":meth:`.assertAlmostEqual`" -msgstr "" +msgstr ":meth:`.assertAlmostEqual`" #: ../../whatsnew/3.2.rst:1814 msgid ":meth:`assertNotAlmostEquals`" -msgstr "" +msgstr ":meth:`assertNotAlmostEquals`" #: ../../whatsnew/3.2.rst:1814 msgid ":meth:`.assertNotAlmostEqual`" -msgstr "" +msgstr ":meth:`.assertNotAlmostEqual`" #: ../../whatsnew/3.2.rst:1817 msgid "" @@ -2109,9 +2085,9 @@ msgid "" "``int(n*random())`` which had a slight bias whenever *n* was not a power of " "two. Now, multiple selections are made from a range up to the next power of " "two and a selection is kept only when it falls within the range ``0 <= x < " -"n``. The functions and methods affected are :func:`~random.randrange`, " -":func:`~random.randint`, :func:`~random.choice`, :func:`~random.shuffle` and" -" :func:`~random.sample`." +"n``. The functions and methods affected are :func:`~random.randrange`, :" +"func:`~random.randint`, :func:`~random.choice`, :func:`~random.shuffle` and :" +"func:`~random.sample`." msgstr "" #: ../../whatsnew/3.2.rst:1842 @@ -2140,12 +2116,12 @@ msgstr "asyncore" #: ../../whatsnew/3.2.rst:1857 msgid "" -":class:`asyncore.dispatcher` now provides a " -":meth:`~asyncore.dispatcher.handle_accepted()` method returning a `(sock, " -"addr)` pair which is called when a connection has actually been established " -"with a new remote endpoint. This is supposed to be used as a replacement for" -" old :meth:`~asyncore.dispatcher.handle_accept()` and avoids the user to " -"call :meth:`~asyncore.dispatcher.accept()` directly." +":class:`asyncore.dispatcher` now provides a :meth:`~asyncore.dispatcher." +"handle_accepted()` method returning a `(sock, addr)` pair which is called " +"when a connection has actually been established with a new remote endpoint. " +"This is supposed to be used as a replacement for old :meth:`~asyncore." +"dispatcher.handle_accept()` and avoids the user to call :meth:`~asyncore." +"dispatcher.accept()` directly." msgstr "" #: ../../whatsnew/3.2.rst:1864 @@ -2158,9 +2134,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:1869 msgid "" -"The :mod:`tempfile` module has a new context manager, " -":class:`~tempfile.TemporaryDirectory` which provides easy deterministic " -"cleanup of temporary directories::" +"The :mod:`tempfile` module has a new context manager, :class:`~tempfile." +"TemporaryDirectory` which provides easy deterministic cleanup of temporary " +"directories::" msgstr "" #: ../../whatsnew/3.2.rst:1876 @@ -2173,9 +2149,9 @@ msgstr "inspect" #: ../../whatsnew/3.2.rst:1881 msgid "" -"The :mod:`inspect` module has a new function " -":func:`~inspect.getgeneratorstate` to easily identify the current state of a" -" generator-iterator::" +"The :mod:`inspect` module has a new function :func:`~inspect." +"getgeneratorstate` to easily identify the current state of a generator-" +"iterator::" msgstr "" #: ../../whatsnew/3.2.rst:1899 @@ -2185,9 +2161,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:1901 msgid "" "To support lookups without the possibility of activating a dynamic " -"attribute, the :mod:`inspect` module has a new function, " -":func:`~inspect.getattr_static`. Unlike :func:`hasattr`, this is a true " -"read-only search, guaranteed not to change state while it is searching::" +"attribute, the :mod:`inspect` module has a new function, :func:`~inspect." +"getattr_static`. Unlike :func:`hasattr`, this is a true read-only search, " +"guaranteed not to change state while it is searching::" msgstr "" #: ../../whatsnew/3.2.rst:1922 @@ -2211,11 +2187,10 @@ msgstr "dis" #: ../../whatsnew/3.2.rst:1937 msgid "" -"The :mod:`dis` module gained two new functions for inspecting code, " -":func:`~dis.code_info` and :func:`~dis.show_code`. Both provide detailed " -"code object information for the supplied function, method, source code " -"string or code object. The former returns a string and the latter prints " -"it::" +"The :mod:`dis` module gained two new functions for inspecting code, :func:" +"`~dis.code_info` and :func:`~dis.show_code`. Both provide detailed code " +"object information for the supplied function, method, source code string or " +"code object. The former returns a string and the latter prints it::" msgstr "" #: ../../whatsnew/3.2.rst:1964 @@ -2329,8 +2304,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2057 msgid "" "It also provides access to the paths and variables corresponding to one of " -"seven named schemes used by :mod:`distutils`. Those include *posix_prefix*," -" *posix_home*, *posix_user*, *nt*, *nt_user*, *os2*, *os2_home*:" +"seven named schemes used by :mod:`distutils`. Those include *posix_prefix*, " +"*posix_home*, *posix_user*, *nt*, *nt_user*, *os2*, *os2_home*:" msgstr "" #: ../../whatsnew/3.2.rst:2061 @@ -2341,8 +2316,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2063 msgid "" -":func:`~sysconfig.get_config_vars` returns a dictionary of platform specific" -" variables." +":func:`~sysconfig.get_config_vars` returns a dictionary of platform specific " +"variables." msgstr "" #: ../../whatsnew/3.2.rst:2066 @@ -2364,8 +2339,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2112 msgid "" -":file:`pdb.py` now has a ``-c`` option that executes commands as given in a " -":file:`.pdbrc` script file." +":file:`pdb.py` now has a ``-c`` option that executes commands as given in a :" +"file:`.pdbrc` script file." msgstr "" #: ../../whatsnew/3.2.rst:2114 @@ -2392,8 +2367,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2121 msgid "" -"New command: ``interact`` for starting an interactive interpreter containing" -" the global and local names found in the current scope." +"New command: ``interact`` for starting an interactive interpreter containing " +"the global and local names found in the current scope." msgstr "" #: ../../whatsnew/3.2.rst:2123 @@ -2411,12 +2386,11 @@ msgstr "configparser" #: ../../whatsnew/3.2.rst:2130 msgid "" "The :mod:`configparser` module was modified to improve usability and " -"predictability of the default parser and its supported INI syntax. The old " -":class:`ConfigParser` class was removed in favor of " -":class:`SafeConfigParser` which has in turn been renamed to " -":class:`~configparser.ConfigParser`. Support for inline comments is now " -"turned off by default and section or option duplicates are not allowed in a " -"single configuration source." +"predictability of the default parser and its supported INI syntax. The old :" +"class:`ConfigParser` class was removed in favor of :class:`SafeConfigParser` " +"which has in turn been renamed to :class:`~configparser.ConfigParser`. " +"Support for inline comments is now turned off by default and section or " +"option duplicates are not allowed in a single configuration source." msgstr "" #: ../../whatsnew/3.2.rst:2137 @@ -2465,9 +2439,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2218 msgid "" -"The :func:`~urllib.parse.urlparse` function now supports `IPv6 " -"`_ addresses as described in " -":rfc:`2732`:" +"The :func:`~urllib.parse.urlparse` function now supports `IPv6 `_ addresses as described in :rfc:`2732`:" msgstr "" #: ../../whatsnew/3.2.rst:2230 @@ -2478,25 +2451,25 @@ msgstr "" #: ../../whatsnew/3.2.rst:2240 msgid "" -"And, the :func:`~urllib.parse.urlencode` function is now much more flexible," -" accepting either a string or bytes type for the *query* argument. If it is" -" a string, then the *safe*, *encoding*, and *error* parameters are sent to " -":func:`~urllib.parse.quote_plus` for encoding::" +"And, the :func:`~urllib.parse.urlencode` function is now much more flexible, " +"accepting either a string or bytes type for the *query* argument. If it is " +"a string, then the *safe*, *encoding*, and *error* parameters are sent to :" +"func:`~urllib.parse.quote_plus` for encoding::" msgstr "" #: ../../whatsnew/3.2.rst:2251 msgid "" -"As detailed in :ref:`parsing-ascii-encoded-bytes`, all the " -":mod:`urllib.parse` functions now accept ASCII-encoded byte strings as " -"input, so long as they are not mixed with regular strings. If ASCII-encoded" -" byte strings are given as parameters, the return types will also be an " -"ASCII-encoded byte strings:" +"As detailed in :ref:`parsing-ascii-encoded-bytes`, all the :mod:`urllib." +"parse` functions now accept ASCII-encoded byte strings as input, so long as " +"they are not mixed with regular strings. If ASCII-encoded byte strings are " +"given as parameters, the return types will also be an ASCII-encoded byte " +"strings:" msgstr "" #: ../../whatsnew/3.2.rst:2260 msgid "" -"(Work by Nick Coghlan, Dan Mahn, and Senthil Kumaran in :issue:`2987`, " -":issue:`5468`, and :issue:`9873`.)" +"(Work by Nick Coghlan, Dan Mahn, and Senthil Kumaran in :issue:`2987`, :" +"issue:`5468`, and :issue:`9873`.)" msgstr "" #: ../../whatsnew/3.2.rst:2264 @@ -2514,39 +2487,39 @@ msgstr "" #: ../../whatsnew/3.2.rst:2271 msgid "" -"The solution harnessed the :mod:`email` package's binary support for parsing" -" arbitrary email messages. In addition, the solution required a number of " +"The solution harnessed the :mod:`email` package's binary support for parsing " +"arbitrary email messages. In addition, the solution required a number of " "API changes." msgstr "" #: ../../whatsnew/3.2.rst:2275 msgid "" -"As expected, the :meth:`~mailbox.Mailbox.add` method for " -":class:`mailbox.Mailbox` objects now accepts binary input." +"As expected, the :meth:`~mailbox.Mailbox.add` method for :class:`mailbox." +"Mailbox` objects now accepts binary input." msgstr "" #: ../../whatsnew/3.2.rst:2278 msgid "" ":class:`~io.StringIO` and text file input are deprecated. Also, string " -"input will fail early if non-ASCII characters are used. Previously it would" -" fail when the email was processed in a later step." +"input will fail early if non-ASCII characters are used. Previously it would " +"fail when the email was processed in a later step." msgstr "" #: ../../whatsnew/3.2.rst:2282 msgid "" -"There is also support for binary output. The " -":meth:`~mailbox.Mailbox.get_file` method now returns a file in the binary " -"mode (where it used to incorrectly set the file to text-mode). There is " -"also a new :meth:`~mailbox.Mailbox.get_bytes` method that returns a " -":class:`bytes` representation of a message corresponding to a given *key*." +"There is also support for binary output. The :meth:`~mailbox.Mailbox." +"get_file` method now returns a file in the binary mode (where it used to " +"incorrectly set the file to text-mode). There is also a new :meth:`~mailbox." +"Mailbox.get_bytes` method that returns a :class:`bytes` representation of a " +"message corresponding to a given *key*." msgstr "" #: ../../whatsnew/3.2.rst:2288 msgid "" -"It is still possible to get non-binary output using the old API's " -":meth:`~mailbox.Mailbox.get_string` method, but that approach is not very " -"useful. Instead, it is best to extract messages from a " -":class:`~mailbox.Message` object or to load them from binary input." +"It is still possible to get non-binary output using the old API's :meth:" +"`~mailbox.Mailbox.get_string` method, but that approach is not very useful. " +"Instead, it is best to extract messages from a :class:`~mailbox.Message` " +"object or to load them from binary input." msgstr "" #: ../../whatsnew/3.2.rst:2293 @@ -2563,8 +2536,8 @@ msgstr "" msgid "" "The demonstration code for the :mod:`turtle` module was moved from the " "*Demo* directory to main library. It includes over a dozen sample scripts " -"with lively displays. Being on :attr:`sys.path`, it can now be run directly" -" from the command-line:" +"with lively displays. Being on :attr:`sys.path`, it can now be run directly " +"from the command-line:" msgstr "" #: ../../whatsnew/3.2.rst:2308 @@ -2582,18 +2555,18 @@ msgid "" "threads (generally known as the :term:`GIL` or :term:`Global Interpreter " "Lock`) has been rewritten. Among the objectives were more predictable " "switching intervals and reduced overhead due to lock contention and the " -"number of ensuing system calls. The notion of a \"check interval\" to allow" -" thread switches has been abandoned and replaced by an absolute duration " -"expressed in seconds. This parameter is tunable through " -":func:`sys.setswitchinterval()`. It currently defaults to 5 milliseconds." +"number of ensuing system calls. The notion of a \"check interval\" to allow " +"thread switches has been abandoned and replaced by an absolute duration " +"expressed in seconds. This parameter is tunable through :func:`sys." +"setswitchinterval()`. It currently defaults to 5 milliseconds." msgstr "" #: ../../whatsnew/3.2.rst:2322 msgid "" "Additional details about the implementation can be read from a `python-dev " -"mailing-list message `_ (however, \"priority requests\" as exposed " -"in this message have not been kept for inclusion)." +"mailing-list message `_ (however, \"priority requests\" as exposed in this " +"message have not been kept for inclusion)." msgstr "" #: ../../whatsnew/3.2.rst:2328 @@ -2615,8 +2588,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2337 msgid "" -"Regular and recursive lock acquisitions can now be interrupted by signals on" -" platforms using Pthreads. This means that Python programs that deadlock " +"Regular and recursive lock acquisitions can now be interrupted by signals on " +"platforms using Pthreads. This means that Python programs that deadlock " "while acquiring locks can be successfully killed by repeatedly sending " "SIGINT to the process (by pressing :kbd:`Ctrl+C` in most shells). " "(Contributed by Reid Kleckner; :issue:`8844`.)" @@ -2633,8 +2606,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2349 msgid "" "Python's peephole optimizer now recognizes patterns such ``x in {1, 2, 3}`` " -"as being a test for membership in a set of constants. The optimizer recasts" -" the :class:`set` as a :class:`frozenset` and stores the pre-built constant." +"as being a test for membership in a set of constants. The optimizer recasts " +"the :class:`set` as a :class:`frozenset` and stores the pre-built constant." msgstr "" #: ../../whatsnew/3.2.rst:2353 @@ -2657,18 +2630,18 @@ msgstr "" #: ../../whatsnew/3.2.rst:2366 msgid "" -"(Contributed by Alexandre Vassalotti, Antoine Pitrou and the Unladen Swallow" -" team in :issue:`9410` and :issue:`3873`.)" +"(Contributed by Alexandre Vassalotti, Antoine Pitrou and the Unladen Swallow " +"team in :issue:`9410` and :issue:`3873`.)" msgstr "" #: ../../whatsnew/3.2.rst:2369 msgid "" -"The `Timsort algorithm `_ used in " -":meth:`list.sort` and :func:`sorted` now runs faster and uses less memory " +"The `Timsort algorithm `_ used in :" +"meth:`list.sort` and :func:`sorted` now runs faster and uses less memory " "when called with a :term:`key function`. Previously, every element of a " "list was wrapped with a temporary object that remembered the key value " -"associated with each element. Now, two arrays of keys and values are sorted" -" in parallel. This saves the memory consumed by the sort wrappers, and it " +"associated with each element. Now, two arrays of keys and values are sorted " +"in parallel. This saves the memory consumed by the sort wrappers, and it " "saves time lost to delegating comparisons." msgstr "" @@ -2679,14 +2652,14 @@ msgstr "" #: ../../whatsnew/3.2.rst:2379 msgid "" "JSON decoding performance is improved and memory consumption is reduced " -"whenever the same string is repeated for multiple keys. Also, JSON encoding" -" now uses the C speedups when the ``sort_keys`` argument is true." +"whenever the same string is repeated for multiple keys. Also, JSON encoding " +"now uses the C speedups when the ``sort_keys`` argument is true." msgstr "" #: ../../whatsnew/3.2.rst:2383 msgid "" -"(Contributed by Antoine Pitrou in :issue:`7451` and by Raymond Hettinger and" -" Antoine Pitrou in :issue:`10314`.)" +"(Contributed by Antoine Pitrou in :issue:`7451` and by Raymond Hettinger and " +"Antoine Pitrou in :issue:`10314`.)" msgstr "" #: ../../whatsnew/3.2.rst:2386 @@ -2702,11 +2675,11 @@ msgstr "" #: ../../whatsnew/3.2.rst:2392 msgid "" -"The fast-search algorithm in stringlib is now used by the :meth:`split`, " -":meth:`rsplit`, :meth:`splitlines` and :meth:`replace` methods on " -":class:`bytes`, :class:`bytearray` and :class:`str` objects. Likewise, the " -"algorithm is also used by :meth:`rfind`, :meth:`rindex`, :meth:`rsplit` and " -":meth:`rpartition`." +"The fast-search algorithm in stringlib is now used by the :meth:`split`, :" +"meth:`rsplit`, :meth:`splitlines` and :meth:`replace` methods on :class:" +"`bytes`, :class:`bytearray` and :class:`str` objects. Likewise, the " +"algorithm is also used by :meth:`rfind`, :meth:`rindex`, :meth:`rsplit` and :" +"meth:`rpartition`." msgstr "" #: ../../whatsnew/3.2.rst:2398 @@ -2728,11 +2701,11 @@ msgid "" "There were several other minor optimizations. Set differencing now runs " "faster when one operand is much larger than the other (patch by Andress " "Bennetts in :issue:`8685`). The :meth:`array.repeat` method has a faster " -"implementation (:issue:`1569291` by Alexander Belopolsky). The " -":class:`BaseHTTPRequestHandler` has more efficient buffering (:issue:`3709` " -"by Andrew Schaaf). The :func:`operator.attrgetter` function has been sped-" -"up (:issue:`10160` by Christos Georgiou). And :class:`ConfigParser` loads " -"multi-line arguments a bit faster (:issue:`7113` by Łukasz Langa)." +"implementation (:issue:`1569291` by Alexander Belopolsky). The :class:" +"`BaseHTTPRequestHandler` has more efficient buffering (:issue:`3709` by " +"Andrew Schaaf). The :func:`operator.attrgetter` function has been sped-up (:" +"issue:`10160` by Christos Georgiou). And :class:`ConfigParser` loads multi-" +"line arguments a bit faster (:issue:`7113` by Łukasz Langa)." msgstr "" #: ../../whatsnew/3.2.rst:2417 @@ -2741,11 +2714,10 @@ msgstr "Unicode" #: ../../whatsnew/3.2.rst:2419 msgid "" -"Python has been updated to `Unicode 6.0.0 " -"`_. The update to the standard " -"adds over 2,000 new characters including `emoji " -"`_ symbols which are important for " -"mobile phones." +"Python has been updated to `Unicode 6.0.0 `_. The update to the standard adds over 2,000 new characters " +"including `emoji `_ symbols which are " +"important for mobile phones." msgstr "" #: ../../whatsnew/3.2.rst:2424 @@ -2754,8 +2726,8 @@ msgid "" "two Kannada characters (U+0CF1, U+0CF2) and one New Tai Lue numeric " "character (U+19DA), making the former eligible for use in identifiers while " "disqualifying the latter. For more information, see `Unicode Character " -"Database Changes " -"`_." +"Database Changes `_." msgstr "" #: ../../whatsnew/3.2.rst:2432 @@ -2809,8 +2781,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2460 msgid "" -"A table of quick links has been added to the top of lengthy sections such as" -" :ref:`built-in-funcs`. In the case of :mod:`itertools`, the links are " +"A table of quick links has been added to the top of lengthy sections such " +"as :ref:`built-in-funcs`. In the case of :mod:`itertools`, the links are " "accompanied by tables of cheatsheet-style summaries to provide an overview " "and memory jog without having to read all of the docs." msgstr "" @@ -2829,16 +2801,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:2472 msgid "" -"(Contributed by Raymond Hettinger; see `rationale " -"`_.)" +"(Contributed by Raymond Hettinger; see `rationale `_.)" msgstr "" #: ../../whatsnew/3.2.rst:2475 msgid "" "The docs now contain more examples and recipes. In particular, :mod:`re` " -"module has an extensive section, :ref:`re-examples`. Likewise, the " -":mod:`itertools` module continues to be updated with new :ref:`itertools-" -"recipes`." +"module has an extensive section, :ref:`re-examples`. Likewise, the :mod:" +"`itertools` module continues to be updated with new :ref:`itertools-recipes`." msgstr "" #: ../../whatsnew/3.2.rst:2480 @@ -2855,8 +2826,8 @@ msgstr "" #: ../../whatsnew/3.2.rst:2486 msgid "" "The unmaintained :file:`Demo` directory has been removed. Some demos were " -"integrated into the documentation, some were moved to the :file:`Tools/demo`" -" directory, and others were removed altogether." +"integrated into the documentation, some were moved to the :file:`Tools/demo` " +"directory, and others were removed altogether." msgstr "" #: ../../whatsnew/3.2.rst:2490 @@ -2883,8 +2854,7 @@ msgstr "" #: ../../whatsnew/3.2.rst:2503 msgid "" -"(Contributed by Kevin Walzer, Ned Deily, and Ronald Oussoren; " -":issue:`6075`.)" +"(Contributed by Kevin Walzer, Ned Deily, and Ronald Oussoren; :issue:`6075`.)" msgstr "" #: ../../whatsnew/3.2.rst:2506 @@ -2893,24 +2863,24 @@ msgstr "" #: ../../whatsnew/3.2.rst:2508 msgid "" -"In addition to the existing Subversion code repository at " -"http://svn.python.org there is now a `Mercurial `_ repository at https://hg.python.org/\\ ." +"In addition to the existing Subversion code repository at http://svn.python." +"org there is now a `Mercurial `_ repository " +"at https://hg.python.org/\\ ." msgstr "" #: ../../whatsnew/3.2.rst:2512 msgid "" -"After the 3.2 release, there are plans to switch to Mercurial as the primary" -" repository. This distributed version control system should make it easier " -"for members of the community to create and share external changesets. See " -":pep:`385` for details." +"After the 3.2 release, there are plans to switch to Mercurial as the primary " +"repository. This distributed version control system should make it easier " +"for members of the community to create and share external changesets. See :" +"pep:`385` for details." msgstr "" #: ../../whatsnew/3.2.rst:2517 msgid "" "To learn to use the new version control system, see the `Quick Start " -"`_ or the `Guide to Mercurial" -" Workflows `_." +"`_ or the `Guide to Mercurial " +"Workflows `_." msgstr "" #: ../../whatsnew/3.2.rst:2523 @@ -2967,16 +2937,16 @@ msgstr "" msgid "" "Hash values are now values of a new type, :c:type:`Py_hash_t`, which is " "defined to be the same size as a pointer. Previously they were of type " -"long, which on some 64-bit operating systems is still only 32 bits long. As" -" a result of this fix, :class:`set` and :class:`dict` can now hold more than" -" ``2**32`` entries on builds with 64-bit pointers (previously, they could " +"long, which on some 64-bit operating systems is still only 32 bits long. As " +"a result of this fix, :class:`set` and :class:`dict` can now hold more than " +"``2**32`` entries on builds with 64-bit pointers (previously, they could " "grow to that size but their performance degraded catastrophically)." msgstr "" #: ../../whatsnew/3.2.rst:2557 msgid "" -"(Suggested by Raymond Hettinger and implemented by Benjamin Peterson; " -":issue:`9778`.)" +"(Suggested by Raymond Hettinger and implemented by Benjamin Peterson; :issue:" +"`9778`.)" msgstr "" #: ../../whatsnew/3.2.rst:2560 @@ -2996,16 +2966,16 @@ msgstr "" #: ../../whatsnew/3.2.rst:2568 msgid "" ":c:macro:`PyEval_CallObject` is now only available in macro form. The " -"function declaration, which was kept for backwards compatibility reasons, is" -" now removed -- the macro was introduced in 1997 (:issue:`8276`)." +"function declaration, which was kept for backwards compatibility reasons, is " +"now removed -- the macro was introduced in 1997 (:issue:`8276`)." msgstr "" #: ../../whatsnew/3.2.rst:2572 msgid "" "There is a new function :c:func:`PyLong_AsLongLongAndOverflow` which is " -"analogous to :c:func:`PyLong_AsLongAndOverflow`. They both serve to convert" -" Python :class:`int` into a native fixed-width type while providing " -"detection of cases where the conversion won't fit (:issue:`7767`)." +"analogous to :c:func:`PyLong_AsLongAndOverflow`. They both serve to convert " +"Python :class:`int` into a native fixed-width type while providing detection " +"of cases where the conversion won't fit (:issue:`7767`)." msgstr "" #: ../../whatsnew/3.2.rst:2577 @@ -3016,9 +2986,9 @@ msgstr "" #: ../../whatsnew/3.2.rst:2580 msgid "" -"There is a new function :c:func:`PyErr_NewExceptionWithDoc` that is like " -":c:func:`PyErr_NewException` but allows a docstring to be specified. This " -"lets C exceptions have the same self-documenting capabilities as their pure " +"There is a new function :c:func:`PyErr_NewExceptionWithDoc` that is like :c:" +"func:`PyErr_NewException` but allows a docstring to be specified. This lets " +"C exceptions have the same self-documenting capabilities as their pure " "Python counterparts (:issue:`7033`)." msgstr "" @@ -3038,19 +3008,18 @@ msgstr "" #: ../../whatsnew/3.2.rst:2593 msgid "" -"There were a number of other small changes to the C-API. See the " -":source:`Misc/NEWS` file for a complete list." +"There were a number of other small changes to the C-API. See the :source:" +"`Misc/NEWS` file for a complete list." msgstr "" #: ../../whatsnew/3.2.rst:2596 msgid "" -"Also, there were a number of updates to the Mac OS X build, see " -":source:`Mac/BuildScript/README.txt` for details. For users running a " -"32/64-bit build, there is a known problem with the default Tcl/Tk on Mac OS " -"X 10.6. Accordingly, we recommend installing an updated alternative such as " -"`ActiveState Tcl/Tk 8.5.9 " -"`_\\. See " -"https://www.python.org/download/mac/tcltk/ for additional details." +"Also, there were a number of updates to the Mac OS X build, see :source:`Mac/" +"BuildScript/README.txt` for details. For users running a 32/64-bit build, " +"there is a known problem with the default Tcl/Tk on Mac OS X 10.6. " +"Accordingly, we recommend installing an updated alternative such as " +"`ActiveState Tcl/Tk 8.5.9 `_" +"\\. See https://www.python.org/download/mac/tcltk/ for additional details." msgstr "" #: ../../whatsnew/3.2.rst:2604 @@ -3075,27 +3044,25 @@ msgstr "" #: ../../whatsnew/3.2.rst:2614 msgid "" -"The interpolation syntax is now validated on " -":meth:`~configparser.ConfigParser.get` and " -":meth:`~configparser.ConfigParser.set` operations. In the default " -"interpolation scheme, only two tokens with percent signs are valid: " -"``%(name)s`` and ``%%``, the latter being an escaped percent sign." +"The interpolation syntax is now validated on :meth:`~configparser." +"ConfigParser.get` and :meth:`~configparser.ConfigParser.set` operations. In " +"the default interpolation scheme, only two tokens with percent signs are " +"valid: ``%(name)s`` and ``%%``, the latter being an escaped percent sign." msgstr "" #: ../../whatsnew/3.2.rst:2620 msgid "" -"The :meth:`~configparser.ConfigParser.set` and " -":meth:`~configparser.ConfigParser.add_section` methods now verify that " -"values are actual strings. Formerly, unsupported types could be introduced " -"unintentionally." +"The :meth:`~configparser.ConfigParser.set` and :meth:`~configparser." +"ConfigParser.add_section` methods now verify that values are actual " +"strings. Formerly, unsupported types could be introduced unintentionally." msgstr "" #: ../../whatsnew/3.2.rst:2625 msgid "" -"Duplicate sections or options from a single source now raise either " -":exc:`~configparser.DuplicateSectionError` or " -":exc:`~configparser.DuplicateOptionError`. Formerly, duplicates would " -"silently overwrite a previous entry." +"Duplicate sections or options from a single source now raise either :exc:" +"`~configparser.DuplicateSectionError` or :exc:`~configparser." +"DuplicateOptionError`. Formerly, duplicates would silently overwrite a " +"previous entry." msgstr "" #: ../../whatsnew/3.2.rst:2630 @@ -3106,15 +3073,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:2633 msgid "" -"Comments now can be indented. Consequently, for **;** or **#** to appear at" -" the start of a line in multiline values, it has to be interpolated. This " +"Comments now can be indented. Consequently, for **;** or **#** to appear at " +"the start of a line in multiline values, it has to be interpolated. This " "keeps comment prefix characters in values from being mistaken as comments." msgstr "" #: ../../whatsnew/3.2.rst:2637 msgid "" -"``\"\"`` is now a valid value and is no longer automatically converted to an" -" empty string. For empty strings, use ``\"option =\"`` in a line." +"``\"\"`` is now a valid value and is no longer automatically converted to an " +"empty string. For empty strings, use ``\"option =\"`` in a line." msgstr "" #: ../../whatsnew/3.2.rst:2640 @@ -3125,14 +3092,14 @@ msgstr "" #: ../../whatsnew/3.2.rst:2643 msgid "" -":class:`bytearray` objects can no longer be used as filenames; instead, they" -" should be converted to :class:`bytes`." +":class:`bytearray` objects can no longer be used as filenames; instead, they " +"should be converted to :class:`bytes`." msgstr "" #: ../../whatsnew/3.2.rst:2646 msgid "" -"The :meth:`array.tostring` and :meth:`array.fromstring` have been renamed to" -" :meth:`array.tobytes` and :meth:`array.frombytes` for clarity. The old " +"The :meth:`array.tostring` and :meth:`array.fromstring` have been renamed " +"to :meth:`array.tobytes` and :meth:`array.frombytes` for clarity. The old " "names have been deprecated. (See :issue:`8990`.)" msgstr "" @@ -3153,8 +3120,7 @@ msgid "" "The :c:type:`PyCObject` type, deprecated in 3.1, has been removed. To wrap " "opaque C pointers in Python objects, the :c:type:`PyCapsule` API should be " "used instead; the new type has a well-defined interface for passing typing " -"safety information and a less complicated signature for calling a " -"destructor." +"safety information and a less complicated signature for calling a destructor." msgstr "" #: ../../whatsnew/3.2.rst:2660 @@ -3167,19 +3133,18 @@ msgstr "" msgid "" "The :func:`random.seed` function and method now salt string seeds with an " "sha512 hash function. To access the previous version of *seed* in order to " -"reproduce Python 3.1 sequences, set the *version* argument to *1*, " -"``random.seed(s, version=1)``." +"reproduce Python 3.1 sequences, set the *version* argument to *1*, ``random." +"seed(s, version=1)``." msgstr "" #: ../../whatsnew/3.2.rst:2668 msgid "" -"The previously deprecated :func:`string.maketrans` function has been removed" -" in favor of the static methods :meth:`bytes.maketrans` and " -":meth:`bytearray.maketrans`. This change solves the confusion around which " -"types were supported by the :mod:`string` module. Now, :class:`str`, " -":class:`bytes`, and :class:`bytearray` each have their own **maketrans** and" -" **translate** methods with intermediate translation tables of the " -"appropriate type." +"The previously deprecated :func:`string.maketrans` function has been removed " +"in favor of the static methods :meth:`bytes.maketrans` and :meth:`bytearray." +"maketrans`. This change solves the confusion around which types were " +"supported by the :mod:`string` module. Now, :class:`str`, :class:`bytes`, " +"and :class:`bytearray` each have their own **maketrans** and **translate** " +"methods with intermediate translation tables of the appropriate type." msgstr "" #: ../../whatsnew/3.2.rst:2676 @@ -3206,16 +3171,16 @@ msgstr "" #: ../../whatsnew/3.2.rst:2692 msgid "" ":func:`struct.pack` now only allows bytes for the ``s`` string pack code. " -"Formerly, it would accept text arguments and implicitly encode them to bytes" -" using UTF-8. This was problematic because it made assumptions about the " +"Formerly, it would accept text arguments and implicitly encode them to bytes " +"using UTF-8. This was problematic because it made assumptions about the " "correct encoding and because a variable-length encoding can fail when " "writing to fixed length segment of a structure." msgstr "" #: ../../whatsnew/3.2.rst:2698 msgid "" -"Code such as ``struct.pack('<6sHHBBB', 'GIF87a', x, y)`` should be rewritten" -" with to use bytes instead of text, ``struct.pack('<6sHHBBB', b'GIF87a', x, " +"Code such as ``struct.pack('<6sHHBBB', 'GIF87a', x, y)`` should be rewritten " +"with to use bytes instead of text, ``struct.pack('<6sHHBBB', b'GIF87a', x, " "y)``." msgstr "" @@ -3226,15 +3191,15 @@ msgstr "" #: ../../whatsnew/3.2.rst:2703 msgid "" -"The :class:`xml.etree.ElementTree` class now raises an " -":exc:`xml.etree.ElementTree.ParseError` when a parse fails. Previously it " -"raised an :exc:`xml.parsers.expat.ExpatError`." +"The :class:`xml.etree.ElementTree` class now raises an :exc:`xml.etree." +"ElementTree.ParseError` when a parse fails. Previously it raised an :exc:" +"`xml.parsers.expat.ExpatError`." msgstr "" #: ../../whatsnew/3.2.rst:2707 msgid "" -"The new, longer :func:`str` value on floats may break doctests which rely on" -" the old output format." +"The new, longer :func:`str` value on floats may break doctests which rely on " +"the old output format." msgstr "" #: ../../whatsnew/3.2.rst:2710 @@ -3243,15 +3208,14 @@ msgid "" "``True`` under Unix; under Windows, it is ``True`` if the three standard " "streams are set to ``None``, ``False`` otherwise. Previously, *close_fds* " "was always ``False`` by default, which produced difficult to solve bugs or " -"race conditions when open file descriptors would leak into the child " -"process." +"race conditions when open file descriptors would leak into the child process." msgstr "" #: ../../whatsnew/3.2.rst:2717 msgid "" -"Support for legacy HTTP 0.9 has been removed from :mod:`urllib.request` and " -":mod:`http.client`. Such support is still present on the server side (in " -":mod:`http.server`)." +"Support for legacy HTTP 0.9 has been removed from :mod:`urllib.request` and :" +"mod:`http.client`. Such support is still present on the server side (in :" +"mod:`http.server`)." msgstr "" #: ../../whatsnew/3.2.rst:2721 @@ -3270,10 +3234,10 @@ msgstr "" #: ../../whatsnew/3.2.rst:2728 msgid "" -"The misleading functions :c:func:`PyEval_AcquireLock()` and " -":c:func:`PyEval_ReleaseLock()` have been officially deprecated. The thread-" -"state aware APIs (such as :c:func:`PyEval_SaveThread()` and " -":c:func:`PyEval_RestoreThread()`) should be used instead." +"The misleading functions :c:func:`PyEval_AcquireLock()` and :c:func:" +"`PyEval_ReleaseLock()` have been officially deprecated. The thread-state " +"aware APIs (such as :c:func:`PyEval_SaveThread()` and :c:func:" +"`PyEval_RestoreThread()`) should be used instead." msgstr "" #: ../../whatsnew/3.2.rst:2733 diff --git a/whatsnew/3.3.po b/whatsnew/3.3.po index 89e8c6f47..331ac512b 100644 --- a/whatsnew/3.3.po +++ b/whatsnew/3.3.po @@ -1,23 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 -# Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Victor Matheus Castro , 2019 -# +# Willian C Lopes , 2020 +# Vinícius Muniz de Melo , 2020 +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-12 03:27+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -81,8 +85,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:71 msgid "" -":mod:`venv` (Python :ref:`virtual environments `, as in the popular" -" ``virtualenv`` package)" +":mod:`venv` (Python :ref:`virtual environments `, as in the popular " +"``virtualenv`` package)" msgstr "" #: ../../whatsnew/3.3.rst:74 @@ -120,8 +124,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:87 msgid "" -"Better unicode handling in the :ref:`email ` module " -"(:term:`provisional `)." +"Better unicode handling in the :ref:`email ` module (:term:" +"`provisional `)." msgstr "" #: ../../whatsnew/3.3.rst:90 @@ -164,8 +168,7 @@ msgid ":pep:`405` - Python Virtual Environments" msgstr "" #: ../../whatsnew/3.3.rst:119 -msgid "" -"PEP written by Carl Meyer; implementation by Carl Meyer and Vinay Sajip" +msgid "PEP written by Carl Meyer; implementation by Carl Meyer and Vinay Sajip" msgstr "" #: ../../whatsnew/3.3.rst:123 @@ -176,8 +179,8 @@ msgstr "" msgid "" "Native support for package directories that don't require ``__init__.py`` " "marker files and can automatically span multiple path segments (inspired by " -"various third party approaches to namespace packages, as described in " -":pep:`420`)" +"various third party approaches to namespace packages, as described in :pep:" +"`420`)" msgstr "" #: ../../whatsnew/3.3.rst:133 @@ -202,10 +205,10 @@ msgstr "" #: ../../whatsnew/3.3.rst:144 msgid "" "The new memoryview implementation comprehensively fixes all ownership and " -"lifetime issues of dynamically allocated fields in the Py_buffer struct that" -" led to multiple crash reports. Additionally, several functions that crashed" -" or returned incorrect results for non-contiguous or multi-dimensional input" -" have been fixed." +"lifetime issues of dynamically allocated fields in the Py_buffer struct that " +"led to multiple crash reports. Additionally, several functions that crashed " +"or returned incorrect results for non-contiguous or multi-dimensional input " +"have been fixed." msgstr "" #: ../../whatsnew/3.3.rst:150 @@ -310,11 +313,11 @@ msgstr "" #: ../../whatsnew/3.3.rst:211 msgid "" "The Unicode string type is changed to support multiple internal " -"representations, depending on the character with the largest Unicode ordinal" -" (1, 2, or 4 bytes) in the represented string. This allows a space-" -"efficient representation in common cases, but gives access to full UCS-4 on " -"all systems. For compatibility with existing APIs, several representations " -"may exist in parallel; over time, this compatibility should be phased out." +"representations, depending on the character with the largest Unicode ordinal " +"(1, 2, or 4 bytes) in the represented string. This allows a space-efficient " +"representation in common cases, but gives access to full UCS-4 on all " +"systems. For compatibility with existing APIs, several representations may " +"exist in parallel; over time, this compatibility should be phased out." msgstr "" #: ../../whatsnew/3.3.rst:218 @@ -348,8 +351,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:236 msgid "" -"With the death of narrow builds, the problems specific to narrow builds have" -" also been fixed, for example:" +"With the death of narrow builds, the problems specific to narrow builds have " +"also been fixed, for example:" msgstr "" #: ../../whatsnew/3.3.rst:239 @@ -360,8 +363,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:242 msgid "" -"surrogate pairs are not recombined in string literals, so ``'\\uDBFF\\uDFFF'" -" != '\\U0010FFFF'``;" +"surrogate pairs are not recombined in string literals, so ``'\\uDBFF" +"\\uDFFF' != '\\U0010FFFF'``;" msgstr "" #: ../../whatsnew/3.3.rst:245 @@ -413,10 +416,10 @@ msgstr "" #: ../../whatsnew/3.3.rst:269 msgid "" -"The net effect is that for most applications, memory usage of string storage" -" should decrease significantly - especially compared to former wide unicode " -"builds - as, in many cases, strings will be pure ASCII even in international" -" contexts (because many strings store non-human language data, such as XML " +"The net effect is that for most applications, memory usage of string storage " +"should decrease significantly - especially compared to former wide unicode " +"builds - as, in many cases, strings will be pure ASCII even in international " +"contexts (because many strings store non-human language data, such as XML " "fragments, HTTP headers, JSON-encoded data, etc.). We also hope that it " "will, for the same reasons, increase CPU cache efficiency on non-trivial " "applications. The memory usage of Python 3.3 is two to three times smaller " @@ -430,8 +433,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:283 msgid "" -"PEP written by Martin von Löwis; implementation by Torsten Becker and Martin" -" von Löwis." +"PEP written by Martin von Löwis; implementation by Torsten Becker and Martin " +"von Löwis." msgstr "" #: ../../whatsnew/3.3.rst:290 @@ -449,25 +452,25 @@ msgstr "" msgid "" "This launcher is invoked implicitly when double-clicking ``*.py`` files. If " "only a single Python version is installed on the system, that version will " -"be used to run the file. If multiple versions are installed, the most recent" -" version is used by default, but this can be overridden by including a Unix-" +"be used to run the file. If multiple versions are installed, the most recent " +"version is used by default, but this can be overridden by including a Unix-" "style \"shebang line\" in the Python script." msgstr "" #: ../../whatsnew/3.3.rst:302 msgid "" -"The launcher can also be used explicitly from the command line as the ``py``" -" application. Running ``py`` follows the same version selection rules as " -"implicitly launching scripts, but a more specific version can be selected by" -" passing appropriate arguments (such as ``-3`` to request Python 3 when " +"The launcher can also be used explicitly from the command line as the ``py`` " +"application. Running ``py`` follows the same version selection rules as " +"implicitly launching scripts, but a more specific version can be selected by " +"passing appropriate arguments (such as ``-3`` to request Python 3 when " "Python 2 is also installed, or ``-2.6`` to specifically request an earlier " "Python version when a more recent version is installed)." msgstr "" #: ../../whatsnew/3.3.rst:309 msgid "" -"In addition to the launcher, the Windows installer now includes an option to" -" add the newly installed Python to the system PATH. (Contributed by Brian " +"In addition to the launcher, the Windows installer now includes an option to " +"add the newly installed Python to the system PATH. (Contributed by Brian " "Curtin in :issue:`3561`.)" msgstr "" @@ -502,64 +505,63 @@ msgstr "" #: ../../whatsnew/3.3.rst:332 msgid "" "You don't have to worry anymore about choosing the appropriate exception " -"type between :exc:`OSError`, :exc:`IOError`, :exc:`EnvironmentError`, " -":exc:`WindowsError`, :exc:`mmap.error`, :exc:`socket.error` or " -":exc:`select.error`. All these exception types are now only one: " -":exc:`OSError`. The other names are kept as aliases for compatibility " -"reasons." +"type between :exc:`OSError`, :exc:`IOError`, :exc:`EnvironmentError`, :exc:" +"`WindowsError`, :exc:`mmap.error`, :exc:`socket.error` or :exc:`select." +"error`. All these exception types are now only one: :exc:`OSError`. The " +"other names are kept as aliases for compatibility reasons." msgstr "" #: ../../whatsnew/3.3.rst:339 msgid "" "Also, it is now easier to catch a specific error condition. Instead of " "inspecting the ``errno`` attribute (or ``args[0]``) for a particular " -"constant from the :mod:`errno` module, you can catch the adequate " -":exc:`OSError` subclass. The available subclasses are the following:" +"constant from the :mod:`errno` module, you can catch the adequate :exc:" +"`OSError` subclass. The available subclasses are the following:" msgstr "" #: ../../whatsnew/3.3.rst:344 msgid ":exc:`BlockingIOError`" -msgstr "" +msgstr ":exc:`BlockingIOError`" #: ../../whatsnew/3.3.rst:345 msgid ":exc:`ChildProcessError`" -msgstr "" +msgstr ":exc:`ChildProcessError`" #: ../../whatsnew/3.3.rst:346 msgid ":exc:`ConnectionError`" -msgstr "" +msgstr ":exc:`ConnectionError`" #: ../../whatsnew/3.3.rst:347 msgid ":exc:`FileExistsError`" -msgstr "" +msgstr ":exc:`FileExistsError`" #: ../../whatsnew/3.3.rst:348 msgid ":exc:`FileNotFoundError`" -msgstr "" +msgstr ":exc:`FileNotFoundError`" #: ../../whatsnew/3.3.rst:349 msgid ":exc:`InterruptedError`" -msgstr "" +msgstr ":exc:`InterruptedError`" #: ../../whatsnew/3.3.rst:350 msgid ":exc:`IsADirectoryError`" -msgstr "" +msgstr ":exc:`IsADirectoryError`" #: ../../whatsnew/3.3.rst:351 msgid ":exc:`NotADirectoryError`" -msgstr "" +msgstr ":exc:`NotADirectoryError`" #: ../../whatsnew/3.3.rst:352 msgid ":exc:`PermissionError`" -msgstr "" +msgstr ":exc:`PermissionError`" #: ../../whatsnew/3.3.rst:353 msgid ":exc:`ProcessLookupError`" -msgstr "" +msgstr ":exc:`ProcessLookupError`" #: ../../whatsnew/3.3.rst:354 msgid ":exc:`TimeoutError`" -msgstr "" +msgstr ":exc:`TimeoutError`" #: ../../whatsnew/3.3.rst:356 msgid "And the :exc:`ConnectionError` itself has finer-grained subclasses:" @@ -567,11 +569,11 @@ msgstr "" #: ../../whatsnew/3.3.rst:358 msgid ":exc:`BrokenPipeError`" -msgstr "" +msgstr ":exc:`BrokenPipeError`" #: ../../whatsnew/3.3.rst:359 msgid ":exc:`ConnectionAbortedError`" -msgstr "" +msgstr ":exc:`ConnectionAbortedError`" #: ../../whatsnew/3.3.rst:360 msgid ":exc:`ConnectionRefusedError`" @@ -579,7 +581,7 @@ msgstr ":exc:`ConnectionRefusedError`" #: ../../whatsnew/3.3.rst:361 msgid ":exc:`ConnectionResetError`" -msgstr "" +msgstr ":exc:`ConnectionResetError`" #: ../../whatsnew/3.3.rst:363 msgid "" @@ -609,9 +611,9 @@ msgstr "" msgid "" "PEP 380 adds the ``yield from`` expression, allowing a :term:`generator` to " "delegate part of its operations to another generator. This allows a section " -"of code containing :keyword:`yield` to be factored out and placed in another" -" generator. Additionally, the subgenerator is allowed to return with a " -"value, and the value is made available to the delegating generator." +"of code containing :keyword:`yield` to be factored out and placed in another " +"generator. Additionally, the subgenerator is allowed to return with a value, " +"and the value is made available to the delegating generator." msgstr "" #: ../../whatsnew/3.3.rst:411 @@ -630,15 +632,15 @@ msgstr "" #: ../../whatsnew/3.3.rst:424 msgid "" "However, unlike an ordinary loop, ``yield from`` allows subgenerators to " -"receive sent and thrown values directly from the calling scope, and return a" -" final value to the outer generator::" +"receive sent and thrown values directly from the calling scope, and return a " +"final value to the outer generator::" msgstr "" #: ../../whatsnew/3.3.rst:455 msgid "" "The main principle driving this change is to allow even generators that are " -"designed to be used with the ``send`` and ``throw`` methods to be split into" -" multiple subgenerators as easily as a single large function can be split " +"designed to be used with the ``send`` and ``throw`` methods to be split into " +"multiple subgenerators as easily as a single large function can be split " "into multiple subfunctions." msgstr "" @@ -648,8 +650,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:463 msgid "" -"PEP written by Greg Ewing; implementation by Greg Ewing, integrated into 3.3" -" by Renaud Blanch, Ryan Kelly and Nick Coghlan; documentation by Zbigniew " +"PEP written by Greg Ewing; implementation by Greg Ewing, integrated into 3.3 " +"by Renaud Blanch, Ryan Kelly and Nick Coghlan; documentation by Zbigniew " "Jędrzejewski-Szmek and Nick Coghlan" msgstr "" @@ -718,8 +720,8 @@ msgid "" "Functions and class objects have a new ``__qualname__`` attribute " "representing the \"path\" from the module top-level to their definition. " "For global functions and classes, this is the same as ``__name__``. For " -"other functions and classes, it provides better information about where they" -" were actually defined, and how they might be accessible from the global " +"other functions and classes, it provides better information about where they " +"were actually defined, and how they might be accessible from the global " "scope." msgstr "" @@ -757,8 +759,8 @@ msgstr "" msgid "" "Dictionaries used for the storage of objects' attributes are now able to " "share part of their internal storage between each other (namely, the part " -"which stores the keys and their respective hashes). This reduces the memory" -" consumption of programs creating many instances of non-builtin types." +"which stores the keys and their respective hashes). This reduces the memory " +"consumption of programs creating many instances of non-builtin types." msgstr "" #: ../../whatsnew/3.3.rst:622 @@ -777,13 +779,12 @@ msgstr "" msgid "" "A new function :func:`inspect.signature` makes introspection of python " "callables easy and straightforward. A broad range of callables is " -"supported: python functions, decorated or not, classes, and " -":func:`functools.partial` objects. New classes :class:`inspect.Signature`, " -":class:`inspect.Parameter` and :class:`inspect.BoundArguments` hold " -"information about the call signatures, such as, annotations, default values," -" parameters kinds, and bound arguments, which considerably simplifies " -"writing decorators and any code that validates or amends calling signatures " -"or arguments." +"supported: python functions, decorated or not, classes, and :func:`functools." +"partial` objects. New classes :class:`inspect.Signature`, :class:`inspect." +"Parameter` and :class:`inspect.BoundArguments` hold information about the " +"call signatures, such as, annotations, default values, parameters kinds, and " +"bound arguments, which considerably simplifies writing decorators and any " +"code that validates or amends calling signatures or arguments." msgstr "" #: ../../whatsnew/3.3.rst:641 @@ -810,9 +811,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:653 msgid "" -"The intention of ``sys.implementation`` is to consolidate into one namespace" -" the implementation-specific data used by the standard library. This allows" -" different Python implementations to share a single standard library code " +"The intention of ``sys.implementation`` is to consolidate into one namespace " +"the implementation-specific data used by the standard library. This allows " +"different Python implementations to share a single standard library code " "base much more easily. In its initial state, ``sys.implementation`` holds " "only a small portion of the implementation-specific data. Over time that " "ratio will shift in order to make the standard library more portable." @@ -835,10 +836,10 @@ msgstr "" msgid "" "The implementation of ``sys.implementation`` also introduces a new type to " "Python: :class:`types.SimpleNamespace`. In contrast to a mapping-based " -"namespace, like :class:`dict`, ``SimpleNamespace`` is attribute-based, like " -":class:`object`. However, unlike ``object``, ``SimpleNamespace`` instances " -"are writable. This means that you can add, remove, and modify the namespace" -" through normal attribute access." +"namespace, like :class:`dict`, ``SimpleNamespace`` is attribute-based, like :" +"class:`object`. However, unlike ``object``, ``SimpleNamespace`` instances " +"are writable. This means that you can add, remove, and modify the namespace " +"through normal attribute access." msgstr "" #: ../../whatsnew/3.3.rst:678 @@ -856,21 +857,21 @@ msgstr "" #: ../../whatsnew/3.3.rst:686 msgid "" ":issue:`2377` - Replace __import__ w/ importlib.__import__ :issue:`13959` - " -"Re-implement parts of :mod:`imp` in pure Python :issue:`14605` - Make import" -" machinery explicit :issue:`14646` - Require loaders set __loader__ and " +"Re-implement parts of :mod:`imp` in pure Python :issue:`14605` - Make import " +"machinery explicit :issue:`14646` - Require loaders set __loader__ and " "__package__" msgstr "" #: ../../whatsnew/3.3.rst:691 msgid "" -"The :func:`__import__` function is now powered by " -":func:`importlib.__import__`. This work leads to the completion of \"phase " -"2\" of :pep:`302`. There are multiple benefits to this change. First, it has" -" allowed for more of the machinery powering import to be exposed instead of " -"being implicit and hidden within the C code. It also provides a single " -"implementation for all Python VMs supporting Python 3.3 to use, helping to " -"end any VM-specific deviations in import semantics. And finally it eases the" -" maintenance of import, allowing for future growth to occur." +"The :func:`__import__` function is now powered by :func:`importlib." +"__import__`. This work leads to the completion of \"phase 2\" of :pep:`302`. " +"There are multiple benefits to this change. First, it has allowed for more " +"of the machinery powering import to be exposed instead of being implicit and " +"hidden within the C code. It also provides a single implementation for all " +"Python VMs supporting Python 3.3 to use, helping to end any VM-specific " +"deviations in import semantics. And finally it eases the maintenance of " +"import, allowing for future growth to occur." msgstr "" #: ../../whatsnew/3.3.rst:700 @@ -888,20 +889,19 @@ msgstr "" #: ../../whatsnew/3.3.rst:707 msgid "" "One of the large benefits of this work is the exposure of what goes into " -"making the import statement work. That means the various importers that were" -" once implicit are now fully exposed as part of the :mod:`importlib` " -"package." +"making the import statement work. That means the various importers that were " +"once implicit are now fully exposed as part of the :mod:`importlib` package." msgstr "" #: ../../whatsnew/3.3.rst:711 msgid "" -"The abstract base classes defined in :mod:`importlib.abc` have been expanded" -" to properly delineate between :term:`meta path finders ` " -"and :term:`path entry finders ` by introducing " -":class:`importlib.abc.MetaPathFinder` and " -":class:`importlib.abc.PathEntryFinder`, respectively. The old ABC of " -":class:`importlib.abc.Finder` is now only provided for backwards-" -"compatibility and does not enforce any method requirements." +"The abstract base classes defined in :mod:`importlib.abc` have been expanded " +"to properly delineate between :term:`meta path finders ` " +"and :term:`path entry finders ` by introducing :class:" +"`importlib.abc.MetaPathFinder` and :class:`importlib.abc.PathEntryFinder`, " +"respectively. The old ABC of :class:`importlib.abc.Finder` is now only " +"provided for backwards-compatibility and does not enforce any method " +"requirements." msgstr "" #: ../../whatsnew/3.3.rst:719 @@ -915,19 +915,18 @@ msgstr "" msgid "" "For loaders, the new abstract base class :class:`importlib.abc.FileLoader` " "helps write a loader that uses the file system as the storage mechanism for " -"a module's code. The loader for source files " -"(:class:`importlib.machinery.SourceFileLoader`), sourceless bytecode files " -"(:class:`importlib.machinery.SourcelessFileLoader`), and extension modules " -"(:class:`importlib.machinery.ExtensionFileLoader`) are now available for " -"direct use." +"a module's code. The loader for source files (:class:`importlib.machinery." +"SourceFileLoader`), sourceless bytecode files (:class:`importlib.machinery." +"SourcelessFileLoader`), and extension modules (:class:`importlib.machinery." +"ExtensionFileLoader`) are now available for direct use." msgstr "" #: ../../whatsnew/3.3.rst:731 msgid "" ":exc:`ImportError` now has ``name`` and ``path`` attributes which are set " "when there is relevant data to provide. The message for failed imports will " -"also provide the full name of the module now instead of just the tail end of" -" the module's name." +"also provide the full name of the module now instead of just the tail end of " +"the module's name." msgstr "" #: ../../whatsnew/3.3.rst:736 @@ -950,35 +949,35 @@ msgstr "" #: ../../whatsnew/3.3.rst:746 msgid "" "Beyond the expanse of what :mod:`importlib` now exposes, there are other " -"visible changes to import. The biggest is that :attr:`sys.meta_path` and " -":attr:`sys.path_hooks` now store all of the meta path finders and path entry" -" hooks used by import. Previously the finders were implicit and hidden " +"visible changes to import. The biggest is that :attr:`sys.meta_path` and :" +"attr:`sys.path_hooks` now store all of the meta path finders and path entry " +"hooks used by import. Previously the finders were implicit and hidden " "within the C code of import instead of being directly exposed. This means " -"that one can now easily remove or change the order of the various finders to" -" fit one's needs." +"that one can now easily remove or change the order of the various finders to " +"fit one's needs." msgstr "" #: ../../whatsnew/3.3.rst:753 msgid "" "Another change is that all modules have a ``__loader__`` attribute, storing " "the loader used to create the module. :pep:`302` has been updated to make " -"this attribute mandatory for loaders to implement, so in the future once " -"3rd-party loaders have been updated people will be able to rely on the " -"existence of the attribute. Until such time, though, import is setting the " -"module post-load." +"this attribute mandatory for loaders to implement, so in the future once 3rd-" +"party loaders have been updated people will be able to rely on the existence " +"of the attribute. Until such time, though, import is setting the module post-" +"load." msgstr "" #: ../../whatsnew/3.3.rst:759 msgid "" -"Loaders are also now expected to set the ``__package__`` attribute from " -":pep:`366`. Once again, import itself is already setting this on all loaders" -" from :mod:`importlib` and import itself is setting the attribute post-load." +"Loaders are also now expected to set the ``__package__`` attribute from :pep:" +"`366`. Once again, import itself is already setting this on all loaders " +"from :mod:`importlib` and import itself is setting the attribute post-load." msgstr "" #: ../../whatsnew/3.3.rst:763 msgid "" -"``None`` is now inserted into :attr:`sys.path_importer_cache` when no finder" -" can be found on :attr:`sys.path_hooks`. Since :class:`imp.NullImporter` is " +"``None`` is now inserted into :attr:`sys.path_importer_cache` when no finder " +"can be found on :attr:`sys.path_hooks`. Since :class:`imp.NullImporter` is " "not directly exposed on :attr:`sys.path_hooks` it could no longer be relied " "upon to always be available to use as a value representing no finder found." msgstr "" @@ -1004,9 +1003,9 @@ msgstr "Some smaller changes made to the core Python language are:" #: ../../whatsnew/3.3.rst:780 msgid "" -"Added support for Unicode name aliases and named sequences. Both " -":func:`unicodedata.lookup()` and ``'\\N{...}'`` now resolve name aliases, " -"and :func:`unicodedata.lookup()` resolves named sequences too." +"Added support for Unicode name aliases and named sequences. Both :func:" +"`unicodedata.lookup()` and ``'\\N{...}'`` now resolve name aliases, and :" +"func:`unicodedata.lookup()` resolves named sequences too." msgstr "" #: ../../whatsnew/3.3.rst:784 @@ -1019,9 +1018,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:788 msgid "" -"Equality comparisons on :func:`range` objects now return a result reflecting" -" the equality of the underlying sequences generated by those range objects. " -"(:issue:`13201`)" +"Equality comparisons on :func:`range` objects now return a result reflecting " +"the equality of the underlying sequences generated by those range objects. (:" +"issue:`13201`)" msgstr "" #: ../../whatsnew/3.3.rst:792 @@ -1037,21 +1036,22 @@ msgstr "" #: ../../whatsnew/3.3.rst:798 msgid "" -"The ``rjust()``, ``ljust()``, and ``center()`` methods of :class:`bytes` and" -" :class:`bytearray` now accept a :class:`bytearray` for the ``fill`` " +"The ``rjust()``, ``ljust()``, and ``center()`` methods of :class:`bytes` " +"and :class:`bytearray` now accept a :class:`bytearray` for the ``fill`` " "argument. (Contributed by Petri Lehtinen in :issue:`12380`.)" msgstr "" #: ../../whatsnew/3.3.rst:802 msgid "" "New methods have been added to :class:`list` and :class:`bytearray`: " -"``copy()`` and ``clear()`` (:issue:`10516`). Consequently, " -":class:`~collections.abc.MutableSequence` now also defines a " -":meth:`~collections.abc.MutableSequence.clear` method (:issue:`11388`)." +"``copy()`` and ``clear()`` (:issue:`10516`). Consequently, :class:" +"`~collections.abc.MutableSequence` now also defines a :meth:`~collections." +"abc.MutableSequence.clear` method (:issue:`11388`)." msgstr "" #: ../../whatsnew/3.3.rst:807 -msgid "Raw bytes literals can now be written ``rb\"...\"`` as well as ``br\"...\"``." +msgid "" +"Raw bytes literals can now be written ``rb\"...\"`` as well as ``br\"...\"``." msgstr "" #: ../../whatsnew/3.3.rst:809 @@ -1070,8 +1070,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:816 msgid "" -"The error messages produced when a function call does not match the function" -" signature have been significantly improved." +"The error messages produced when a function call does not match the function " +"signature have been significantly improved." msgstr "" #: ../../whatsnew/3.3.rst:819 @@ -1085,10 +1085,10 @@ msgstr "" #: ../../whatsnew/3.3.rst:825 msgid "" "Previous versions of CPython have always relied on a global import lock. " -"This led to unexpected annoyances, such as deadlocks when importing a module" -" would trigger code execution in a different thread as a side-effect. Clumsy" -" workarounds were sometimes employed, such as the " -":c:func:`PyImport_ImportModuleNoBlock` C API function." +"This led to unexpected annoyances, such as deadlocks when importing a module " +"would trigger code execution in a different thread as a side-effect. Clumsy " +"workarounds were sometimes employed, such as the :c:func:" +"`PyImport_ImportModuleNoBlock` C API function." msgstr "" #: ../../whatsnew/3.3.rst:831 @@ -1112,8 +1112,8 @@ msgid "" ":func:`open` gets a new *opener* parameter: the underlying file descriptor " "for the file object is then obtained by calling *opener* with (*file*, " "*flags*). It can be used to use custom flags like :data:`os.O_CLOEXEC` for " -"example. The ``'x'`` mode was added: open for exclusive creation, failing if" -" the file already exists." +"example. The ``'x'`` mode was added: open for exclusive creation, failing if " +"the file already exists." msgstr "" #: ../../whatsnew/3.3.rst:847 @@ -1124,8 +1124,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:849 msgid "" -":func:`hash`: hash randomization is enabled by default, see " -":meth:`object.__hash__` and :envvar:`PYTHONHASHSEED`." +":func:`hash`: hash randomization is enabled by default, see :meth:`object." +"__hash__` and :envvar:`PYTHONHASHSEED`." msgstr "" #: ../../whatsnew/3.3.rst:851 @@ -1139,8 +1139,8 @@ msgstr "" msgid "" "The sequence documentation has been substantially rewritten to better " "explain the binary/text sequence distinction and to provide specific " -"documentation sections for the individual builtin sequence types " -"(:issue:`4966`)." +"documentation sections for the individual builtin sequence types (:issue:" +"`4966`)." msgstr "" #: ../../whatsnew/3.3.rst:861 @@ -1154,10 +1154,10 @@ msgstr "" #: ../../whatsnew/3.3.rst:866 msgid "" "This new debug module :mod:`faulthandler` contains functions to dump Python " -"tracebacks explicitly, on a fault (a crash like a segmentation fault), after" -" a timeout, or on a user signal. Call :func:`faulthandler.enable` to install" -" fault handlers for the :const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`," -" :const:`SIGBUS`, and :const:`SIGILL` signals. You can also enable them at " +"tracebacks explicitly, on a fault (a crash like a segmentation fault), after " +"a timeout, or on a user signal. Call :func:`faulthandler.enable` to install " +"fault handlers for the :const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :" +"const:`SIGBUS`, and :const:`SIGILL` signals. You can also enable them at " "startup by setting the :envvar:`PYTHONFAULTHANDLER` environment variable or " "by using :option:`-X` ``faulthandler`` command line option." msgstr "" @@ -1172,9 +1172,9 @@ msgstr "ipaddress" #: ../../whatsnew/3.3.rst:892 msgid "" -"The new :mod:`ipaddress` module provides tools for creating and manipulating" -" objects representing IPv4 and IPv6 addresses, networks and interfaces (i.e." -" an IP address associated with a specific IP subnet)." +"The new :mod:`ipaddress` module provides tools for creating and manipulating " +"objects representing IPv4 and IPv6 addresses, networks and interfaces (i.e. " +"an IP address associated with a specific IP subnet)." msgstr "" #: ../../whatsnew/3.3.rst:896 @@ -1220,14 +1220,14 @@ msgstr "" #: ../../whatsnew/3.3.rst:921 ../../whatsnew/3.3.rst:2247 msgid "" -":class:`abc.abstractclassmethod` has been deprecated, use " -":class:`classmethod` with :func:`abc.abstractmethod` instead." +":class:`abc.abstractclassmethod` has been deprecated, use :class:" +"`classmethod` with :func:`abc.abstractmethod` instead." msgstr "" #: ../../whatsnew/3.3.rst:923 ../../whatsnew/3.3.rst:2249 msgid "" -":class:`abc.abstractstaticmethod` has been deprecated, use " -":class:`staticmethod` with :func:`abc.abstractmethod` instead." +":class:`abc.abstractstaticmethod` has been deprecated, use :class:" +"`staticmethod` with :func:`abc.abstractmethod` instead." msgstr "" #: ../../whatsnew/3.3.rst:926 @@ -1251,8 +1251,7 @@ msgid "" msgstr "" #: ../../whatsnew/3.3.rst:938 -msgid "" -"(Contributed by Oren Tirosh and Hirokazu Yamamoto in :issue:`1172711`.)" +msgid "(Contributed by Oren Tirosh and Hirokazu Yamamoto in :issue:`1172711`.)" msgstr "" #: ../../whatsnew/3.3.rst:942 @@ -1261,9 +1260,10 @@ msgstr "base64" #: ../../whatsnew/3.3.rst:944 msgid "" -"ASCII-only Unicode strings are now accepted by the decoding functions of the" -" :mod:`base64` modern interface. For example, ``base64.b64decode('YWJj')`` " -"returns ``b'abc'``. (Contributed by Catalin Iacob in :issue:`13641`.)" +"ASCII-only Unicode strings are now accepted by the decoding functions of " +"the :mod:`base64` modern interface. For example, ``base64." +"b64decode('YWJj')`` returns ``b'abc'``. (Contributed by Catalin Iacob in :" +"issue:`13641`.)" msgstr "" #: ../../whatsnew/3.3.rst:950 @@ -1306,9 +1306,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:971 msgid "" ":class:`bz2.BZ2File` and :func:`bz2.decompress` can now decompress multi-" -"stream inputs (such as those produced by the :program:`pbzip2` tool). " -":class:`bz2.BZ2File` can now also be used to create this type of file, using" -" the ``'a'`` (append) mode." +"stream inputs (such as those produced by the :program:`pbzip2` tool). :class:" +"`bz2.BZ2File` can now also be used to create this type of file, using the " +"``'a'`` (append) mode." msgstr "" #: ../../whatsnew/3.3.rst:976 @@ -1328,25 +1328,25 @@ msgstr "" #: ../../whatsnew/3.3.rst:985 msgid "" "The :mod:`~encodings.mbcs` codec has been rewritten to handle correctly " -"``replace`` and ``ignore`` error handlers on all Windows versions. The " -":mod:`~encodings.mbcs` codec now supports all error handlers, instead of " -"only ``replace`` to encode and ``ignore`` to decode." +"``replace`` and ``ignore`` error handlers on all Windows versions. The :mod:" +"`~encodings.mbcs` codec now supports all error handlers, instead of only " +"``replace`` to encode and ``ignore`` to decode." msgstr "" #: ../../whatsnew/3.3.rst:990 msgid "" -"A new Windows-only codec has been added: ``cp65001`` (:issue:`13216`). It is" -" the Windows code page 65001 (Windows UTF-8, ``CP_UTF8``). For example, it " +"A new Windows-only codec has been added: ``cp65001`` (:issue:`13216`). It is " +"the Windows code page 65001 (Windows UTF-8, ``CP_UTF8``). For example, it " "is used by ``sys.stdout`` if the console output code page is set to cp65001 " "(e.g., using ``chcp 65001`` command)." msgstr "" #: ../../whatsnew/3.3.rst:995 msgid "" -"Multibyte CJK decoders now resynchronize faster. They only ignore the first" -" byte of an invalid byte sequence. For example, " -"``b'\\xff\\n'.decode('gb2312', 'replace')`` now returns a ``\\n`` after the " -"replacement character." +"Multibyte CJK decoders now resynchronize faster. They only ignore the first " +"byte of an invalid byte sequence. For example, ``b'\\xff\\n'." +"decode('gb2312', 'replace')`` now returns a ``\\n`` after the replacement " +"character." msgstr "" #: ../../whatsnew/3.3.rst:999 @@ -1380,23 +1380,23 @@ msgstr "collections" #: ../../whatsnew/3.3.rst:1020 msgid "" "Addition of a new :class:`~collections.ChainMap` class to allow treating a " -"number of mappings as a single unit. (Written by Raymond Hettinger for " -":issue:`11089`, made public in :issue:`11297`.)" +"number of mappings as a single unit. (Written by Raymond Hettinger for :" +"issue:`11089`, made public in :issue:`11297`.)" msgstr "" #: ../../whatsnew/3.3.rst:1024 msgid "" "The abstract base classes have been moved in a new :mod:`collections.abc` " "module, to better differentiate between the abstract and the concrete " -"collections classes. Aliases for ABCs are still present in the " -":mod:`collections` module to preserve existing imports. (:issue:`11085`)" +"collections classes. Aliases for ABCs are still present in the :mod:" +"`collections` module to preserve existing imports. (:issue:`11085`)" msgstr "" #: ../../whatsnew/3.3.rst:1031 msgid "" -"The :class:`~collections.Counter` class now supports the unary ``+`` and " -"``-`` operators, as well as the in-place operators ``+=``, ``-=``, ``|=``, " -"and ``&=``. (Contributed by Raymond Hettinger in :issue:`13121`.)" +"The :class:`~collections.Counter` class now supports the unary ``+`` and ``-" +"`` operators, as well as the in-place operators ``+=``, ``-=``, ``|=``, and " +"``&=``. (Contributed by Raymond Hettinger in :issue:`13121`.)" msgstr "" #: ../../whatsnew/3.3.rst:1037 @@ -1425,8 +1425,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1054 msgid "" -"Addition of salt and modular crypt format (hashing method) and the " -":func:`~crypt.mksalt` function to the :mod:`crypt` module." +"Addition of salt and modular crypt format (hashing method) and the :func:" +"`~crypt.mksalt` function to the :mod:`crypt` module." msgstr "" #: ../../whatsnew/3.3.rst:1057 @@ -1435,18 +1435,17 @@ msgstr "" #: ../../whatsnew/3.3.rst:1060 msgid "curses" -msgstr "" +msgstr "curses" #: ../../whatsnew/3.3.rst:1062 msgid "" "If the :mod:`curses` module is linked to the ncursesw library, use Unicode " -"functions when Unicode strings or characters are passed (e.g. " -":c:func:`waddwstr`), and bytes functions otherwise (e.g. :c:func:`waddstr`)." +"functions when Unicode strings or characters are passed (e.g. :c:func:" +"`waddwstr`), and bytes functions otherwise (e.g. :c:func:`waddstr`)." msgstr "" #: ../../whatsnew/3.3.rst:1065 -msgid "" -"Use the locale encoding instead of ``utf-8`` to encode Unicode strings." +msgid "Use the locale encoding instead of ``utf-8`` to encode Unicode strings." msgstr "" #: ../../whatsnew/3.3.rst:1066 @@ -1463,8 +1462,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1069 msgid "" "The :mod:`curses` module has a new :meth:`~curses.unget_wch` function to " -"push a wide character so the next :meth:`~curses.window.get_wch` will return" -" it" +"push a wide character so the next :meth:`~curses.window.get_wch` will return " +"it" msgstr "" #: ../../whatsnew/3.3.rst:1073 @@ -1478,8 +1477,8 @@ msgstr "datetime" #: ../../whatsnew/3.3.rst:1078 msgid "" "Equality comparisons between naive and aware :class:`~datetime.datetime` " -"instances now return :const:`False` instead of raising :exc:`TypeError` " -"(:issue:`15006`)." +"instances now return :const:`False` instead of raising :exc:`TypeError` (:" +"issue:`15006`)." msgstr "" #: ../../whatsnew/3.3.rst:1081 @@ -1531,8 +1530,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1108 msgid "" -"The following table is meant as an illustration. Benchmarks are available at" -" http://www.bytereef.org/mpdecimal/quickstart.html." +"The following table is meant as an illustration. Benchmarks are available at " +"http://www.bytereef.org/mpdecimal/quickstart.html." msgstr "" #: ../../whatsnew/3.3.rst:1112 @@ -1604,8 +1603,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1127 msgid "" "If Python is compiled without threads, the C version automatically disables " -"the expensive thread local context machinery. In this case, the variable " -":data:`~decimal.HAVE_THREADS` is set to ``False``." +"the expensive thread local context machinery. In this case, the variable :" +"data:`~decimal.HAVE_THREADS` is set to ``False``." msgstr "" #: ../../whatsnew/3.3.rst:1134 @@ -1616,89 +1615,88 @@ msgstr "" #: ../../whatsnew/3.3.rst:1138 msgid "32-bit" -msgstr "" +msgstr "32 bits" #: ../../whatsnew/3.3.rst:1138 msgid "64-bit" -msgstr "" +msgstr "64 bits" #: ../../whatsnew/3.3.rst:1140 msgid ":const:`MAX_PREC`" -msgstr "" +msgstr ":const:`MAX_PREC`" #: ../../whatsnew/3.3.rst:1140 ../../whatsnew/3.3.rst:1142 msgid ":const:`425000000`" -msgstr "" +msgstr ":const:`425000000`" #: ../../whatsnew/3.3.rst:1140 ../../whatsnew/3.3.rst:1142 msgid ":const:`999999999999999999`" -msgstr "" +msgstr ":const:`999999999999999999`" #: ../../whatsnew/3.3.rst:1142 msgid ":const:`MAX_EMAX`" -msgstr "" +msgstr ":const:`MAX_EMAX`" #: ../../whatsnew/3.3.rst:1144 msgid ":const:`MIN_EMIN`" -msgstr "" +msgstr ":const:`MIN_EMIN`" #: ../../whatsnew/3.3.rst:1144 msgid ":const:`-425000000`" -msgstr "" +msgstr ":const:`-425000000`" #: ../../whatsnew/3.3.rst:1144 msgid ":const:`-999999999999999999`" -msgstr "" +msgstr ":const:`-999999999999999999`" #: ../../whatsnew/3.3.rst:1147 msgid "" -"In the context templates (:class:`~decimal.DefaultContext`, " -":class:`~decimal.BasicContext` and :class:`~decimal.ExtendedContext`) the " -"magnitude of :attr:`~decimal.Context.Emax` and :attr:`~decimal.Context.Emin`" -" has changed to :const:`999999`." +"In the context templates (:class:`~decimal.DefaultContext`, :class:`~decimal." +"BasicContext` and :class:`~decimal.ExtendedContext`) the magnitude of :attr:" +"`~decimal.Context.Emax` and :attr:`~decimal.Context.Emin` has changed to :" +"const:`999999`." msgstr "" #: ../../whatsnew/3.3.rst:1152 msgid "" -"The :class:`~decimal.Decimal` constructor in decimal.py does not observe the" -" context limits and converts values with arbitrary exponents or precision " +"The :class:`~decimal.Decimal` constructor in decimal.py does not observe the " +"context limits and converts values with arbitrary exponents or precision " "exactly. Since the C version has internal limits, the following scheme is " -"used: If possible, values are converted exactly, otherwise " -":exc:`~decimal.InvalidOperation` is raised and the result is NaN. In the " -"latter case it is always possible to use " -":meth:`~decimal.Context.create_decimal` in order to obtain a rounded or " -"inexact value." +"used: If possible, values are converted exactly, otherwise :exc:`~decimal." +"InvalidOperation` is raised and the result is NaN. In the latter case it is " +"always possible to use :meth:`~decimal.Context.create_decimal` in order to " +"obtain a rounded or inexact value." msgstr "" #: ../../whatsnew/3.3.rst:1161 msgid "" "The power function in decimal.py is always correctly-rounded. In the C " -"version, it is defined in terms of the correctly-rounded " -":meth:`~decimal.Decimal.exp` and :meth:`~decimal.Decimal.ln` functions, but " -"the final result is only \"almost always correctly rounded\"." +"version, it is defined in terms of the correctly-rounded :meth:`~decimal." +"Decimal.exp` and :meth:`~decimal.Decimal.ln` functions, but the final result " +"is only \"almost always correctly rounded\"." msgstr "" #: ../../whatsnew/3.3.rst:1167 msgid "" -"In the C version, the context dictionary containing the signals is a " -":class:`~collections.abc.MutableMapping`. For speed reasons, " -":attr:`~decimal.Context.flags` and :attr:`~decimal.Context.traps` always " -"refer to the same :class:`~collections.abc.MutableMapping` that the context " -"was initialized with. If a new signal dictionary is assigned, " -":attr:`~decimal.Context.flags` and :attr:`~decimal.Context.traps` are " -"updated with the new values, but they do not reference the RHS dictionary." +"In the C version, the context dictionary containing the signals is a :class:" +"`~collections.abc.MutableMapping`. For speed reasons, :attr:`~decimal." +"Context.flags` and :attr:`~decimal.Context.traps` always refer to the same :" +"class:`~collections.abc.MutableMapping` that the context was initialized " +"with. If a new signal dictionary is assigned, :attr:`~decimal.Context.flags` " +"and :attr:`~decimal.Context.traps` are updated with the new values, but they " +"do not reference the RHS dictionary." msgstr "" #: ../../whatsnew/3.3.rst:1177 msgid "" -"Pickling a :class:`~decimal.Context` produces a different output in order to" -" have a common interchange format for the Python and C versions." +"Pickling a :class:`~decimal.Context` produces a different output in order to " +"have a common interchange format for the Python and C versions." msgstr "" #: ../../whatsnew/3.3.rst:1181 msgid "" -"The order of arguments in the :class:`~decimal.Context` constructor has been" -" changed to match the order displayed by :func:`repr`." +"The order of arguments in the :class:`~decimal.Context` constructor has been " +"changed to match the order displayed by :func:`repr`." msgstr "" #: ../../whatsnew/3.3.rst:1185 @@ -1717,18 +1715,18 @@ msgstr "" #: ../../whatsnew/3.3.rst:1197 msgid "" -"The email package now has a :mod:`~email.policy` framework. A " -":class:`~email.policy.Policy` is an object with several methods and " -"properties that control how the email package behaves. The primary policy " -"for Python 3.3 is the :class:`~email.policy.Compat32` policy, which provides" -" backward compatibility with the email package in Python 3.2. A ``policy`` " -"can be specified when an email message is parsed by a :mod:`~email.parser`, " -"or when a :class:`~email.message.Message` object is created, or when an " -"email is serialized using a :mod:`~email.generator`. Unless overridden, a " -"policy passed to a ``parser`` is inherited by all the ``Message`` object and" -" sub-objects created by the ``parser``. By default a ``generator`` will use" -" the policy of the ``Message`` object it is serializing. The default policy" -" is :data:`~email.policy.compat32`." +"The email package now has a :mod:`~email.policy` framework. A :class:" +"`~email.policy.Policy` is an object with several methods and properties that " +"control how the email package behaves. The primary policy for Python 3.3 is " +"the :class:`~email.policy.Compat32` policy, which provides backward " +"compatibility with the email package in Python 3.2. A ``policy`` can be " +"specified when an email message is parsed by a :mod:`~email.parser`, or when " +"a :class:`~email.message.Message` object is created, or when an email is " +"serialized using a :mod:`~email.generator`. Unless overridden, a policy " +"passed to a ``parser`` is inherited by all the ``Message`` object and sub-" +"objects created by the ``parser``. By default a ``generator`` will use the " +"policy of the ``Message`` object it is serializing. The default policy is :" +"data:`~email.policy.compat32`." msgstr "" #: ../../whatsnew/3.3.rst:1210 @@ -1741,8 +1739,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1215 msgid "" -"The maximum length, excluding the linesep character(s), individual lines may" -" have when a ``Message`` is serialized. Defaults to 78." +"The maximum length, excluding the linesep character(s), individual lines may " +"have when a ``Message`` is serialized. Defaults to 78." msgstr "" #: ../../whatsnew/3.3.rst:1219 @@ -1762,8 +1760,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1222 msgid "" "``7bit`` or ``8bit``. ``8bit`` applies only to a ``Bytes`` ``generator``, " -"and means that non-ASCII may be used where allowed by the protocol (or where" -" it exists in the original input)." +"and means that non-ASCII may be used where allowed by the protocol (or where " +"it exists in the original input)." msgstr "" #: ../../whatsnew/3.3.rst:1227 @@ -1778,24 +1776,24 @@ msgstr "" #: ../../whatsnew/3.3.rst:1232 msgid "" -"A new policy instance, with new settings, is created using the " -":meth:`~email.policy.Policy.clone` method of policy objects. ``clone`` " -"takes any of the above controls as keyword arguments. Any control not " -"specified in the call retains its default value. Thus you can create a " -"policy that uses ``\\r\\n`` linesep characters like this::" +"A new policy instance, with new settings, is created using the :meth:`~email." +"policy.Policy.clone` method of policy objects. ``clone`` takes any of the " +"above controls as keyword arguments. Any control not specified in the call " +"retains its default value. Thus you can create a policy that uses ``\\r" +"\\n`` linesep characters like this::" msgstr "" #: ../../whatsnew/3.3.rst:1240 msgid "" -"Policies can be used to make the generation of messages in the format needed" -" by your application simpler. Instead of having to remember to specify " +"Policies can be used to make the generation of messages in the format needed " +"by your application simpler. Instead of having to remember to specify " "``linesep='\\r\\n'`` in all the places you call a ``generator``, you can " "specify it once, when you set the policy used by the ``parser`` or the " "``Message``, whichever your program uses to create ``Message`` objects. On " "the other hand, if you need to generate messages in multiple forms, you can " "still specify the parameters in the appropriate ``generator`` call. Or you " -"can have custom policy instances for your different cases, and pass those in" -" when you create the ``generator``." +"can have custom policy instances for your different cases, and pass those in " +"when you create the ``generator``." msgstr "" #: ../../whatsnew/3.3.rst:1252 @@ -1808,10 +1806,10 @@ msgid "" "for introducing it is to allow the creation of new policies that implement " "new features for the email package in a way that maintains backward " "compatibility for those who do not use the new policies. Because the new " -"policies introduce a new API, we are releasing them in Python 3.3 as a " -":term:`provisional policy `. Backwards incompatible " -"changes (up to and including removal of the code) may occur if deemed " -"necessary by the core developers." +"policies introduce a new API, we are releasing them in Python 3.3 as a :term:" +"`provisional policy `. Backwards incompatible changes " +"(up to and including removal of the code) may occur if deemed necessary by " +"the core developers." msgstr "" #: ../../whatsnew/3.3.rst:1262 @@ -1846,11 +1844,11 @@ msgstr "" #: ../../whatsnew/3.3.rst:1281 msgid "" "The ``header_factory`` is the key to the new features provided by the new " -"policies. When one of the new policies is used, any header retrieved from a" -" ``Message`` object is an object produced by the ``header_factory``, and any" -" time you set a header on a ``Message`` it becomes an object produced by " -"``header_factory``. All such header objects have a ``name`` attribute equal" -" to the header name. Address and Date headers have additional attributes " +"policies. When one of the new policies is used, any header retrieved from a " +"``Message`` object is an object produced by the ``header_factory``, and any " +"time you set a header on a ``Message`` it becomes an object produced by " +"``header_factory``. All such header objects have a ``name`` attribute equal " +"to the header name. Address and Date headers have additional attributes " "that give you access to the parsed data of the header. This means you can " "now do things like this::" msgstr "" @@ -1859,9 +1857,9 @@ msgstr "" msgid "" "You will note that the unicode display name is automatically encoded as " "``utf-8`` when the message is serialized, but that when the header is " -"accessed directly, you get the unicode version. This eliminates any need to" -" deal with the :mod:`email.header` :meth:`~email.header.decode_header` or " -":meth:`~email.header.make_header` functions." +"accessed directly, you get the unicode version. This eliminates any need to " +"deal with the :mod:`email.header` :meth:`~email.header.decode_header` or :" +"meth:`~email.header.make_header` functions." msgstr "" #: ../../whatsnew/3.3.rst:1315 @@ -1893,9 +1891,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:1348 msgid "" -"New :class:`~email.parser.BytesHeaderParser`, added to the " -":mod:`~email.parser` module to complement " -":class:`~email.parser.HeaderParser` and complete the Bytes API." +"New :class:`~email.parser.BytesHeaderParser`, added to the :mod:`~email." +"parser` module to complement :class:`~email.parser.HeaderParser` and " +"complete the Bytes API." msgstr "" #: ../../whatsnew/3.3.rst:1352 @@ -1918,10 +1916,10 @@ msgstr "" #: ../../whatsnew/3.3.rst:1361 msgid "" ":func:`~email.utils.localtime`: With no argument, returns the current local " -"time as an aware :class:`~datetime.datetime` using the local " -":class:`~datetime.timezone`. Given an aware :class:`~datetime.datetime`, " -"converts it into an aware :class:`~datetime.datetime` using the local " -":class:`~datetime.timezone`." +"time as an aware :class:`~datetime.datetime` using the local :class:" +"`~datetime.timezone`. Given an aware :class:`~datetime.datetime`, converts " +"it into an aware :class:`~datetime.datetime` using the local :class:" +"`~datetime.timezone`." msgstr "" #: ../../whatsnew/3.3.rst:1369 @@ -1932,25 +1930,24 @@ msgstr "" msgid "" ":class:`ftplib.FTP` now accepts a ``source_address`` keyword argument to " "specify the ``(host, port)`` to use as the source address in the bind call " -"when creating the outgoing socket. (Contributed by Giampaolo Rodolà in " -":issue:`8594`.)" +"when creating the outgoing socket. (Contributed by Giampaolo Rodolà in :" +"issue:`8594`.)" msgstr "" #: ../../whatsnew/3.3.rst:1376 msgid "" -"The :class:`~ftplib.FTP_TLS` class now provides a new " -":func:`~ftplib.FTP_TLS.ccc` function to revert control channel back to " -"plaintext. This can be useful to take advantage of firewalls that know how " -"to handle NAT with non-secure FTP without opening fixed ports. (Contributed" -" by Giampaolo Rodolà in :issue:`12139`.)" +"The :class:`~ftplib.FTP_TLS` class now provides a new :func:`~ftplib.FTP_TLS." +"ccc` function to revert control channel back to plaintext. This can be " +"useful to take advantage of firewalls that know how to handle NAT with non-" +"secure FTP without opening fixed ports. (Contributed by Giampaolo Rodolà " +"in :issue:`12139`.)" msgstr "" #: ../../whatsnew/3.3.rst:1382 msgid "" "Added :meth:`ftplib.FTP.mlsd` method which provides a parsable directory " -"listing format and deprecates :meth:`ftplib.FTP.nlst` and " -":meth:`ftplib.FTP.dir`. (Contributed by Giampaolo Rodolà in " -":issue:`11072`.)" +"listing format and deprecates :meth:`ftplib.FTP.nlst` and :meth:`ftplib.FTP." +"dir`. (Contributed by Giampaolo Rodolà in :issue:`11072`.)" msgstr "" #: ../../whatsnew/3.3.rst:1388 @@ -1961,8 +1958,8 @@ msgstr "functools" msgid "" "The :func:`functools.lru_cache` decorator now accepts a ``typed`` keyword " "argument (that defaults to ``False`` to ensure that it caches values of " -"different types that compare equal in separate cache slots. (Contributed by" -" Raymond Hettinger in :issue:`13227`.)" +"different types that compare equal in separate cache slots. (Contributed by " +"Raymond Hettinger in :issue:`13227`.)" msgstr "" #: ../../whatsnew/3.3.rst:1397 @@ -1993,11 +1990,11 @@ msgstr "http" #: ../../whatsnew/3.3.rst:1414 msgid "" ":class:`http.server.BaseHTTPRequestHandler` now buffers the headers and " -"writes them all at once when " -":meth:`~http.server.BaseHTTPRequestHandler.end_headers` is called. A new " -"method :meth:`~http.server.BaseHTTPRequestHandler.flush_headers` can be used" -" to directly manage when the accumulated headers are sent. (Contributed by " -"Andrew Schaaf in :issue:`3709`.)" +"writes them all at once when :meth:`~http.server.BaseHTTPRequestHandler." +"end_headers` is called. A new method :meth:`~http.server." +"BaseHTTPRequestHandler.flush_headers` can be used to directly manage when " +"the accumulated headers are sent. (Contributed by Andrew Schaaf in :issue:" +"`3709`.)" msgstr "" #: ../../whatsnew/3.3.rst:1420 @@ -2008,10 +2005,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:1423 msgid "" -":class:`http.client.HTTPResponse` now has a " -":meth:`~http.client.HTTPResponse.readinto` method, which means it can be " -"used as an :class:`io.RawIOBase` class. (Contributed by John Kuhn in " -":issue:`13464`.)" +":class:`http.client.HTTPResponse` now has a :meth:`~http.client.HTTPResponse." +"readinto` method, which means it can be used as an :class:`io.RawIOBase` " +"class. (Contributed by John Kuhn in :issue:`13464`.)" msgstr "" #: ../../whatsnew/3.3.rst:1430 @@ -2021,22 +2017,22 @@ msgstr "html" #: ../../whatsnew/3.3.rst:1432 msgid "" ":class:`html.parser.HTMLParser` is now able to parse broken markup without " -"raising errors, therefore the *strict* argument of the constructor and the " -":exc:`~html.parser.HTMLParseError` exception are now deprecated. The ability" -" to parse broken markup is the result of a number of bug fixes that are also" -" available on the latest bug fix releases of Python 2.7/3.2. (Contributed by" -" Ezio Melotti in :issue:`15114`, and :issue:`14538`, :issue:`13993`, " -":issue:`13960`, :issue:`13358`, :issue:`1745761`, :issue:`755670`, " -":issue:`13357`, :issue:`12629`, :issue:`1200313`, :issue:`670664`, " -":issue:`13273`, :issue:`12888`, :issue:`7311`.)" +"raising errors, therefore the *strict* argument of the constructor and the :" +"exc:`~html.parser.HTMLParseError` exception are now deprecated. The ability " +"to parse broken markup is the result of a number of bug fixes that are also " +"available on the latest bug fix releases of Python 2.7/3.2. (Contributed by " +"Ezio Melotti in :issue:`15114`, and :issue:`14538`, :issue:`13993`, :issue:" +"`13960`, :issue:`13358`, :issue:`1745761`, :issue:`755670`, :issue:`13357`, :" +"issue:`12629`, :issue:`1200313`, :issue:`670664`, :issue:`13273`, :issue:" +"`12888`, :issue:`7311`.)" msgstr "" #: ../../whatsnew/3.3.rst:1442 msgid "" "A new :data:`~html.entities.html5` dictionary that maps HTML5 named " "character references to the equivalent Unicode character(s) (e.g. " -"``html5['gt;'] == '>'``) has been added to the :mod:`html.entities` module." -" The dictionary is now also used by :class:`~html.parser.HTMLParser`. " +"``html5['gt;'] == '>'``) has been added to the :mod:`html.entities` module. " +"The dictionary is now also used by :class:`~html.parser.HTMLParser`. " "(Contributed by Ezio Melotti in :issue:`11113` and :issue:`15156`.)" msgstr "" @@ -2060,8 +2056,8 @@ msgstr "inspect" #: ../../whatsnew/3.3.rst:1461 msgid "" -"A new :func:`~inspect.getclosurevars` function has been added. This function" -" reports the current binding of all names referenced from the function body " +"A new :func:`~inspect.getclosurevars` function has been added. This function " +"reports the current binding of all names referenced from the function body " "and where those names were resolved, making it easier to verify correct " "internal state when testing code that relies on stateful closures." msgstr "" @@ -2084,7 +2080,7 @@ msgstr "" #: ../../whatsnew/3.3.rst:1476 msgid "io" -msgstr "" +msgstr "io" #: ../../whatsnew/3.3.rst:1478 msgid "" @@ -2100,15 +2096,15 @@ msgstr "" #: ../../whatsnew/3.3.rst:1484 msgid "" "The constructor of the :class:`~io.TextIOWrapper` class has a new " -"*write_through* optional argument. If *write_through* is ``True``, calls to " -":meth:`~io.TextIOWrapper.write` are guaranteed not to be buffered: any data " +"*write_through* optional argument. If *write_through* is ``True``, calls to :" +"meth:`~io.TextIOWrapper.write` are guaranteed not to be buffered: any data " "written on the :class:`~io.TextIOWrapper` object is immediately handled to " "its underlying binary buffer." msgstr "" #: ../../whatsnew/3.3.rst:1492 msgid "itertools" -msgstr "" +msgstr "itertools" #: ../../whatsnew/3.3.rst:1494 msgid "" @@ -2123,8 +2119,8 @@ msgstr "logging" #: ../../whatsnew/3.3.rst:1501 msgid "" "The :func:`~logging.basicConfig` function now supports an optional " -"``handlers`` argument taking an iterable of handlers to be added to the root" -" logger." +"``handlers`` argument taking an iterable of handlers to be added to the root " +"logger." msgstr "" #: ../../whatsnew/3.3.rst:1504 @@ -2132,13 +2128,13 @@ msgid "" "A class level attribute :attr:`~logging.handlers.SysLogHandler.append_nul` " "has been added to :class:`~logging.handlers.SysLogHandler` to allow control " "of the appending of the ``NUL`` (``\\000``) byte to syslog records, since " -"for some daemons it is required while for others it is passed through to the" -" log." +"for some daemons it is required while for others it is passed through to the " +"log." msgstr "" #: ../../whatsnew/3.3.rst:1512 msgid "math" -msgstr "" +msgstr "math" #: ../../whatsnew/3.3.rst:1514 msgid "" @@ -2158,8 +2154,8 @@ msgstr "mmap" msgid "" "The :meth:`~mmap.mmap.read` method is now more compatible with other file-" "like objects: if the argument is omitted or specified as ``None``, it " -"returns the bytes from the current file position to the end of the mapping." -" (Contributed by Petri Lehtinen in :issue:`12021`.)" +"returns the bytes from the current file position to the end of the mapping. " +"(Contributed by Petri Lehtinen in :issue:`12021`.)" msgstr "" #: ../../whatsnew/3.3.rst:1530 @@ -2176,8 +2172,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1536 msgid "" ":class:`multiprocessing.Connection` objects can now be transferred over " -"multiprocessing connections. (Contributed by Richard Oudkerk in " -":issue:`4892`.)" +"multiprocessing connections. (Contributed by Richard Oudkerk in :issue:" +"`4892`.)" msgstr "" #: ../../whatsnew/3.3.rst:1540 @@ -2190,19 +2186,17 @@ msgstr "" #: ../../whatsnew/3.3.rst:1544 msgid "" "New attribute :data:`multiprocessing.Process.sentinel` allows a program to " -"wait on multiple :class:`~multiprocessing.Process` objects at one time using" -" the appropriate OS primitives (for example, :mod:`select` on posix " -"systems)." +"wait on multiple :class:`~multiprocessing.Process` objects at one time using " +"the appropriate OS primitives (for example, :mod:`select` on posix systems)." msgstr "" #: ../../whatsnew/3.3.rst:1549 msgid "" -"New methods :meth:`multiprocessing.pool.Pool.starmap` and " -":meth:`~multiprocessing.pool.Pool.starmap_async` provide " -":func:`itertools.starmap` equivalents to the existing " -":meth:`multiprocessing.pool.Pool.map` and " -":meth:`~multiprocessing.pool.Pool.map_async` functions. (Contributed by " -"Hynek Schlawack in :issue:`12708`.)" +"New methods :meth:`multiprocessing.pool.Pool.starmap` and :meth:" +"`~multiprocessing.pool.Pool.starmap_async` provide :func:`itertools.starmap` " +"equivalents to the existing :meth:`multiprocessing.pool.Pool.map` and :meth:" +"`~multiprocessing.pool.Pool.map_async` functions. (Contributed by Hynek " +"Schlawack in :issue:`12708`.)" msgstr "" #: ../../whatsnew/3.3.rst:1558 @@ -2211,8 +2205,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1560 msgid "" -"The :class:`nntplib.NNTP` class now supports the context management protocol" -" to unconditionally consume :exc:`socket.error` exceptions and to close the " +"The :class:`nntplib.NNTP` class now supports the context management protocol " +"to unconditionally consume :exc:`socket.error` exceptions and to close the " "NNTP connection when done::" msgstr "" @@ -2227,9 +2221,9 @@ msgstr "os" #: ../../whatsnew/3.3.rst:1577 msgid "" "The :mod:`os` module has a new :func:`~os.pipe2` function that makes it " -"possible to create a pipe with :data:`~os.O_CLOEXEC` or " -":data:`~os.O_NONBLOCK` flags set atomically. This is especially useful to " -"avoid race conditions in multi-threaded programs." +"possible to create a pipe with :data:`~os.O_CLOEXEC` or :data:`~os." +"O_NONBLOCK` flags set atomically. This is especially useful to avoid race " +"conditions in multi-threaded programs." msgstr "" #: ../../whatsnew/3.3.rst:1582 @@ -2238,8 +2232,8 @@ msgid "" "an efficient \"zero-copy\" way for copying data from one file (or socket) " "descriptor to another. The phrase \"zero-copy\" refers to the fact that all " "of the copying of data between the two descriptors is done entirely by the " -"kernel, with no copying of data into userspace buffers. :func:`~os.sendfile`" -" can be used to efficiently copy data from a file on disk to a network " +"kernel, with no copying of data into userspace buffers. :func:`~os.sendfile` " +"can be used to efficiently copy data from a file on disk to a network " "socket, e.g. for downloading a file." msgstr "" @@ -2253,56 +2247,54 @@ msgid "" "To avoid race conditions like symlink attacks and issues with temporary " "files and directories, it is more reliable (and also faster) to manipulate " "file descriptors instead of file names. Python 3.3 enhances existing " -"functions and introduces new functions to work on file descriptors " -"(:issue:`4761`, :issue:`10755` and :issue:`14626`)." +"functions and introduces new functions to work on file descriptors (:issue:" +"`4761`, :issue:`10755` and :issue:`14626`)." msgstr "" #: ../../whatsnew/3.3.rst:1598 msgid "" -"The :mod:`os` module has a new :func:`~os.fwalk` function similar to " -":func:`~os.walk` except that it also yields file descriptors referring to " -"the directories visited. This is especially useful to avoid symlink races." +"The :mod:`os` module has a new :func:`~os.fwalk` function similar to :func:" +"`~os.walk` except that it also yields file descriptors referring to the " +"directories visited. This is especially useful to avoid symlink races." msgstr "" #: ../../whatsnew/3.3.rst:1602 msgid "" "The following functions get new optional *dir_fd* (:ref:`paths relative to " "directory descriptors `) and/or *follow_symlinks* (:ref:`not " -"following symlinks `): :func:`~os.access`, " -":func:`~os.chflags`, :func:`~os.chmod`, :func:`~os.chown`, :func:`~os.link`," -" :func:`~os.lstat`, :func:`~os.mkdir`, :func:`~os.mkfifo`, " -":func:`~os.mknod`, :func:`~os.open`, :func:`~os.readlink`, " -":func:`~os.remove`, :func:`~os.rename`, :func:`~os.replace`, " -":func:`~os.rmdir`, :func:`~os.stat`, :func:`~os.symlink`, " -":func:`~os.unlink`, :func:`~os.utime`. Platform support for using these " -"parameters can be checked via the sets :data:`os.supports_dir_fd` and " -":data:`os.supports_follows_symlinks`." +"following symlinks `): :func:`~os.access`, :func:`~os." +"chflags`, :func:`~os.chmod`, :func:`~os.chown`, :func:`~os.link`, :func:`~os." +"lstat`, :func:`~os.mkdir`, :func:`~os.mkfifo`, :func:`~os.mknod`, :func:`~os." +"open`, :func:`~os.readlink`, :func:`~os.remove`, :func:`~os.rename`, :func:" +"`~os.replace`, :func:`~os.rmdir`, :func:`~os.stat`, :func:`~os.symlink`, :" +"func:`~os.unlink`, :func:`~os.utime`. Platform support for using these " +"parameters can be checked via the sets :data:`os.supports_dir_fd` and :data:" +"`os.supports_follows_symlinks`." msgstr "" #: ../../whatsnew/3.3.rst:1613 msgid "" "The following functions now support a file descriptor for their path " -"argument: :func:`~os.chdir`, :func:`~os.chmod`, :func:`~os.chown`, " -":func:`~os.execve`, :func:`~os.listdir`, :func:`~os.pathconf`, " -":func:`~os.path.exists`, :func:`~os.stat`, :func:`~os.statvfs`, " -":func:`~os.utime`. Platform support for this can be checked via the " -":data:`os.supports_fd` set." +"argument: :func:`~os.chdir`, :func:`~os.chmod`, :func:`~os.chown`, :func:" +"`~os.execve`, :func:`~os.listdir`, :func:`~os.pathconf`, :func:`~os.path." +"exists`, :func:`~os.stat`, :func:`~os.statvfs`, :func:`~os.utime`. Platform " +"support for this can be checked via the :data:`os.supports_fd` set." msgstr "" #: ../../whatsnew/3.3.rst:1619 msgid "" ":func:`~os.access` accepts an ``effective_ids`` keyword argument to turn on " "using the effective uid/gid rather than the real uid/gid in the access " -"check. Platform support for this can be checked via the " -":data:`~os.supports_effective_ids` set." +"check. Platform support for this can be checked via the :data:`~os." +"supports_effective_ids` set." msgstr "" #: ../../whatsnew/3.3.rst:1624 msgid "" -"The :mod:`os` module has two new functions: :func:`~os.getpriority` and " -":func:`~os.setpriority`. They can be used to get or set process " -"niceness/priority in a fashion similar to :func:`os.nice` but extended to " -"all processes instead of just the current one." +"The :mod:`os` module has two new functions: :func:`~os.getpriority` and :" +"func:`~os.setpriority`. They can be used to get or set process niceness/" +"priority in a fashion similar to :func:`os.nice` but extended to all " +"processes instead of just the current one." msgstr "" #: ../../whatsnew/3.3.rst:1629 @@ -2311,45 +2303,45 @@ msgstr "" #: ../../whatsnew/3.3.rst:1631 msgid "" -"The new :func:`os.replace` function allows cross-platform renaming of a file" -" with overwriting the destination. With :func:`os.rename`, an existing " +"The new :func:`os.replace` function allows cross-platform renaming of a file " +"with overwriting the destination. With :func:`os.rename`, an existing " "destination file is overwritten under POSIX, but raises an error under " "Windows. (Contributed by Antoine Pitrou in :issue:`8828`.)" msgstr "" #: ../../whatsnew/3.3.rst:1637 msgid "" -"The stat family of functions (:func:`~os.stat`, :func:`~os.fstat`, and " -":func:`~os.lstat`) now support reading a file's timestamps with nanosecond " +"The stat family of functions (:func:`~os.stat`, :func:`~os.fstat`, and :func:" +"`~os.lstat`) now support reading a file's timestamps with nanosecond " "precision. Symmetrically, :func:`~os.utime` can now write file timestamps " -"with nanosecond precision. (Contributed by Larry Hastings in " -":issue:`14127`.)" +"with nanosecond precision. (Contributed by Larry Hastings in :issue:" +"`14127`.)" msgstr "" #: ../../whatsnew/3.3.rst:1643 msgid "" "The new :func:`os.get_terminal_size` function queries the size of the " -"terminal attached to a file descriptor. See also " -":func:`shutil.get_terminal_size`. (Contributed by Zbigniew Jędrzejewski-" -"Szmek in :issue:`13609`.)" +"terminal attached to a file descriptor. See also :func:`shutil." +"get_terminal_size`. (Contributed by Zbigniew Jędrzejewski-Szmek in :issue:" +"`13609`.)" msgstr "" #: ../../whatsnew/3.3.rst:1650 msgid "" -"New functions to support Linux extended attributes (:issue:`12720`): " -":func:`~os.getxattr`, :func:`~os.listxattr`, :func:`~os.removexattr`, " -":func:`~os.setxattr`." +"New functions to support Linux extended attributes (:issue:`12720`): :func:" +"`~os.getxattr`, :func:`~os.listxattr`, :func:`~os.removexattr`, :func:`~os." +"setxattr`." msgstr "" #: ../../whatsnew/3.3.rst:1654 msgid "" "New interface to the scheduler. These functions control how a process is " -"allocated CPU time by the operating system. New functions: " -":func:`~os.sched_get_priority_max`, :func:`~os.sched_get_priority_min`, " -":func:`~os.sched_getaffinity`, :func:`~os.sched_getparam`, " -":func:`~os.sched_getscheduler`, :func:`~os.sched_rr_get_interval`, " -":func:`~os.sched_setaffinity`, :func:`~os.sched_setparam`, " -":func:`~os.sched_setscheduler`, :func:`~os.sched_yield`," +"allocated CPU time by the operating system. New functions: :func:`~os." +"sched_get_priority_max`, :func:`~os.sched_get_priority_min`, :func:`~os." +"sched_getaffinity`, :func:`~os.sched_getparam`, :func:`~os." +"sched_getscheduler`, :func:`~os.sched_rr_get_interval`, :func:`~os." +"sched_setaffinity`, :func:`~os.sched_setparam`, :func:`~os." +"sched_setscheduler`, :func:`~os.sched_yield`," msgstr "" #: ../../whatsnew/3.3.rst:1663 @@ -2364,8 +2356,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1667 msgid "" -":func:`~os.posix_fallocate`: Ensures that enough disk space is allocated for" -" a file." +":func:`~os.posix_fallocate`: Ensures that enough disk space is allocated for " +"a file." msgstr "" #: ../../whatsnew/3.3.rst:1669 @@ -2384,8 +2376,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1674 msgid "" -":func:`~os.pread`: Read from a file descriptor at an offset, the file offset" -" remains unchanged." +":func:`~os.pread`: Read from a file descriptor at an offset, the file offset " +"remains unchanged." msgstr "" #: ../../whatsnew/3.3.rst:1676 @@ -2425,8 +2417,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1687 msgid "" -":func:`~os.times` and :func:`~os.uname`: Return type changed from a tuple to" -" a tuple-like object with named attributes." +":func:`~os.times` and :func:`~os.uname`: Return type changed from a tuple to " +"a tuple-like object with named attributes." msgstr "" #: ../../whatsnew/3.3.rst:1690 @@ -2437,13 +2429,12 @@ msgstr "" #: ../../whatsnew/3.3.rst:1693 msgid "" -"New constants :data:`~os.RTLD_LAZY`, :data:`~os.RTLD_NOW`, " -":data:`~os.RTLD_GLOBAL`, :data:`~os.RTLD_LOCAL`, :data:`~os.RTLD_NODELETE`, " -":data:`~os.RTLD_NOLOAD`, and :data:`~os.RTLD_DEEPBIND` are available on " -"platforms that support them. These are for use with the " -":func:`sys.setdlopenflags` function, and supersede the similar constants " -"defined in :mod:`ctypes` and :mod:`DLFCN`. (Contributed by Victor Stinner " -"in :issue:`13226`.)" +"New constants :data:`~os.RTLD_LAZY`, :data:`~os.RTLD_NOW`, :data:`~os." +"RTLD_GLOBAL`, :data:`~os.RTLD_LOCAL`, :data:`~os.RTLD_NODELETE`, :data:`~os." +"RTLD_NOLOAD`, and :data:`~os.RTLD_DEEPBIND` are available on platforms that " +"support them. These are for use with the :func:`sys.setdlopenflags` " +"function, and supersede the similar constants defined in :mod:`ctypes` and :" +"mod:`DLFCN`. (Contributed by Victor Stinner in :issue:`13226`.)" msgstr "" #: ../../whatsnew/3.3.rst:1701 @@ -2473,9 +2464,8 @@ msgstr "pickle" #: ../../whatsnew/3.3.rst:1718 msgid "" -":class:`pickle.Pickler` objects now have an optional " -":attr:`~pickle.Pickler.dispatch_table` attribute allowing per-pickler " -"reduction functions to be set." +":class:`pickle.Pickler` objects now have an optional :attr:`~pickle.Pickler." +"dispatch_table` attribute allowing per-pickler reduction functions to be set." msgstr "" #: ../../whatsnew/3.3.rst:1722 @@ -2488,8 +2478,8 @@ msgstr "pydoc" #: ../../whatsnew/3.3.rst:1728 msgid "" -"The Tk GUI and the :func:`~pydoc.serve` function have been removed from the " -":mod:`pydoc` module: ``pydoc -g`` and :func:`~pydoc.serve` have been " +"The Tk GUI and the :func:`~pydoc.serve` function have been removed from the :" +"mod:`pydoc` module: ``pydoc -g`` and :func:`~pydoc.serve` have been " "deprecated in Python 3.2." msgstr "" @@ -2498,7 +2488,8 @@ msgid "re" msgstr "re" #: ../../whatsnew/3.3.rst:1736 -msgid ":class:`str` regular expressions now support ``\\u`` and ``\\U`` escapes." +msgid "" +":class:`str` regular expressions now support ``\\u`` and ``\\U`` escapes." msgstr "" #: ../../whatsnew/3.3.rst:1738 @@ -2521,30 +2512,28 @@ msgstr "" #: ../../whatsnew/3.3.rst:1750 msgid "" ":class:`~sched.scheduler` class can now be safely used in multi-threaded " -"environments. (Contributed by Josiah Carlson and Giampaolo Rodolà in " -":issue:`8684`.)" +"environments. (Contributed by Josiah Carlson and Giampaolo Rodolà in :issue:" +"`8684`.)" msgstr "" #: ../../whatsnew/3.3.rst:1754 msgid "" "*timefunc* and *delayfunct* parameters of :class:`~sched.scheduler` class " -"constructor are now optional and defaults to :func:`time.time` and " -":func:`time.sleep` respectively. (Contributed by Chris Clark in " -":issue:`13245`.)" +"constructor are now optional and defaults to :func:`time.time` and :func:" +"`time.sleep` respectively. (Contributed by Chris Clark in :issue:`13245`.)" msgstr "" #: ../../whatsnew/3.3.rst:1759 msgid "" ":meth:`~sched.scheduler.enter` and :meth:`~sched.scheduler.enterabs` " -"*argument* parameter is now optional. (Contributed by Chris Clark in " -":issue:`13245`.)" +"*argument* parameter is now optional. (Contributed by Chris Clark in :issue:" +"`13245`.)" msgstr "" #: ../../whatsnew/3.3.rst:1763 msgid "" ":meth:`~sched.scheduler.enter` and :meth:`~sched.scheduler.enterabs` now " -"accept a *kwargs* parameter. (Contributed by Chris Clark in " -":issue:`13245`.)" +"accept a *kwargs* parameter. (Contributed by Chris Clark in :issue:`13245`.)" msgstr "" #: ../../whatsnew/3.3.rst:1769 @@ -2560,14 +2549,14 @@ msgstr "" #: ../../whatsnew/3.3.rst:1777 msgid "shlex" -msgstr "" +msgstr "shlex" #: ../../whatsnew/3.3.rst:1779 msgid "" "The previously undocumented helper function ``quote`` from the :mod:`pipes` " -"modules has been moved to the :mod:`shlex` module and documented. " -":func:`~shlex.quote` properly escapes all characters in a string that might " -"be otherwise given special meaning by the shell." +"modules has been moved to the :mod:`shlex` module and documented. :func:" +"`~shlex.quote` properly escapes all characters in a string that might be " +"otherwise given special meaning by the shell." msgstr "" #: ../../whatsnew/3.3.rst:1786 @@ -2576,7 +2565,7 @@ msgstr "shutil" #: ../../whatsnew/3.3.rst:1788 msgid "New functions:" -msgstr "" +msgstr "Novas Funções:" #: ../../whatsnew/3.3.rst:1790 msgid "" @@ -2593,16 +2582,16 @@ msgstr "" #: ../../whatsnew/3.3.rst:1795 msgid "" -":func:`shutil.get_terminal_size`: returns the size of the terminal window to" -" which the interpreter is attached. (Contributed by Zbigniew Jędrzejewski-" +":func:`shutil.get_terminal_size`: returns the size of the terminal window to " +"which the interpreter is attached. (Contributed by Zbigniew Jędrzejewski-" "Szmek in :issue:`13609`.)" msgstr "" #: ../../whatsnew/3.3.rst:1799 msgid "" ":func:`~shutil.copy2` and :func:`~shutil.copystat` now preserve file " -"timestamps with nanosecond precision on platforms that support it. They also" -" preserve file \"extended attributes\" on Linux. (Contributed by Larry " +"timestamps with nanosecond precision on platforms that support it. They also " +"preserve file \"extended attributes\" on Linux. (Contributed by Larry " "Hastings in :issue:`14127` and :issue:`15238`.)" msgstr "" @@ -2626,9 +2615,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:1815 msgid "" ":func:`~shutil.rmtree` is now resistant to symlink attacks on platforms " -"which support the new ``dir_fd`` parameter in :func:`os.open` and " -":func:`os.unlink`. (Contributed by Martin von Löwis and Hynek Schlawack in " -":issue:`4489`.)" +"which support the new ``dir_fd`` parameter in :func:`os.open` and :func:`os." +"unlink`. (Contributed by Martin von Löwis and Hynek Schlawack in :issue:" +"`4489`.)" msgstr "" #: ../../whatsnew/3.3.rst:1822 @@ -2688,17 +2677,16 @@ msgstr "smtpd" #: ../../whatsnew/3.3.rst:1847 msgid "" -"The :mod:`smtpd` module now supports :rfc:`5321` (extended SMTP) and " -":rfc:`1870` (size extension). Per the standard, these extensions are " -"enabled if and only if the client initiates the session with an ``EHLO`` " -"command." +"The :mod:`smtpd` module now supports :rfc:`5321` (extended SMTP) and :rfc:" +"`1870` (size extension). Per the standard, these extensions are enabled if " +"and only if the client initiates the session with an ``EHLO`` command." msgstr "" #: ../../whatsnew/3.3.rst:1851 msgid "" "(Initial ``ELHO`` support by Alberto Trevino. Size extension by Juhana " -"Jauhiainen. Substantial additional work on the patch contributed by Michele" -" Orrù and Dan Boswell. :issue:`8739`)" +"Jauhiainen. Substantial additional work on the patch contributed by Michele " +"Orrù and Dan Boswell. :issue:`8739`)" msgstr "" #: ../../whatsnew/3.3.rst:1857 @@ -2707,11 +2695,11 @@ msgstr "smtplib" #: ../../whatsnew/3.3.rst:1859 msgid "" -"The :class:`~smtplib.SMTP`, :class:`~smtplib.SMTP_SSL`, and " -":class:`~smtplib.LMTP` classes now accept a ``source_address`` keyword " -"argument to specify the ``(host, port)`` to use as the source address in the" -" bind call when creating the outgoing socket. (Contributed by Paulo " -"Scardine in :issue:`11281`.)" +"The :class:`~smtplib.SMTP`, :class:`~smtplib.SMTP_SSL`, and :class:`~smtplib." +"LMTP` classes now accept a ``source_address`` keyword argument to specify " +"the ``(host, port)`` to use as the source address in the bind call when " +"creating the outgoing socket. (Contributed by Paulo Scardine in :issue:" +"`11281`.)" msgstr "" #: ../../whatsnew/3.3.rst:1865 @@ -2723,10 +2711,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:1869 msgid "" -"The :class:`~smtplib.SMTP_SSL` constructor and the " -":meth:`~smtplib.SMTP.starttls` method now accept an SSLContext parameter to " -"control parameters of the secure channel. (Contributed by Kasun Herath in " -":issue:`8809`.)" +"The :class:`~smtplib.SMTP_SSL` constructor and the :meth:`~smtplib.SMTP." +"starttls` method now accept an SSLContext parameter to control parameters of " +"the secure channel. (Contributed by Kasun Herath in :issue:`8809`.)" msgstr "" #: ../../whatsnew/3.3.rst:1875 @@ -2741,15 +2728,15 @@ msgstr "" #: ../../whatsnew/3.3.rst:1880 msgid ":func:`~socket.socket.sendmsg`" -msgstr "" +msgstr ":func:`~socket.socket.sendmsg`" #: ../../whatsnew/3.3.rst:1881 msgid ":func:`~socket.socket.recvmsg`" -msgstr "" +msgstr ":func:`~socket.socket.recvmsg`" #: ../../whatsnew/3.3.rst:1882 msgid ":func:`~socket.socket.recvmsg_into`" -msgstr "" +msgstr ":func:`~socket.socket.recvmsg_into`" #: ../../whatsnew/3.3.rst:1884 msgid "" @@ -2760,21 +2747,21 @@ msgstr "" #: ../../whatsnew/3.3.rst:1887 msgid "" "The :class:`~socket.socket` class now supports the PF_CAN protocol family " -"(https://en.wikipedia.org/wiki/Socketcan), on Linux " -"(https://lwn.net/Articles/253425)." +"(https://en.wikipedia.org/wiki/Socketcan), on Linux (https://lwn.net/" +"Articles/253425)." msgstr "" #: ../../whatsnew/3.3.rst:1891 msgid "" -"(Contributed by Matthias Fuchs, updated by Tiago Gonçalves in " -":issue:`10141`.)" +"(Contributed by Matthias Fuchs, updated by Tiago Gonçalves in :issue:" +"`10141`.)" msgstr "" #: ../../whatsnew/3.3.rst:1893 msgid "" "The :class:`~socket.socket` class now supports the PF_RDS protocol family " -"(https://en.wikipedia.org/wiki/Reliable_Datagram_Sockets and " -"https://oss.oracle.com/projects/rds/)." +"(https://en.wikipedia.org/wiki/Reliable_Datagram_Sockets and https://oss." +"oracle.com/projects/rds/)." msgstr "" #: ../../whatsnew/3.3.rst:1897 @@ -2796,10 +2783,10 @@ msgstr "socketserver" #: ../../whatsnew/3.3.rst:1908 msgid "" -":class:`~socketserver.BaseServer` now has an overridable method " -":meth:`~socketserver.BaseServer.service_actions` that is called by the " -":meth:`~socketserver.BaseServer.serve_forever` method in the service loop. " -":class:`~socketserver.ForkingMixIn` now uses this to clean up zombie child " +":class:`~socketserver.BaseServer` now has an overridable method :meth:" +"`~socketserver.BaseServer.service_actions` that is called by the :meth:" +"`~socketserver.BaseServer.serve_forever` method in the service loop. :class:" +"`~socketserver.ForkingMixIn` now uses this to clean up zombie child " "processes. (Contributed by Justin Warkentin in :issue:`11109`.)" msgstr "" @@ -2809,10 +2796,9 @@ msgstr "sqlite3" #: ../../whatsnew/3.3.rst:1918 msgid "" -"New :class:`sqlite3.Connection` method " -":meth:`~sqlite3.Connection.set_trace_callback` can be used to capture a " -"trace of all sql commands processed by sqlite. (Contributed by Torsten " -"Landschoff in :issue:`11688`.)" +"New :class:`sqlite3.Connection` method :meth:`~sqlite3.Connection." +"set_trace_callback` can be used to capture a trace of all sql commands " +"processed by sqlite. (Contributed by Torsten Landschoff in :issue:`11688`.)" msgstr "" #: ../../whatsnew/3.3.rst:1925 @@ -2840,23 +2826,23 @@ msgstr "" #: ../../whatsnew/3.3.rst:1935 msgid "" "The :mod:`ssl` module now exposes a finer-grained exception hierarchy in " -"order to make it easier to inspect the various kinds of errors. (Contributed" -" by Antoine Pitrou in :issue:`11183`.)" +"order to make it easier to inspect the various kinds of errors. (Contributed " +"by Antoine Pitrou in :issue:`11183`.)" msgstr "" #: ../../whatsnew/3.3.rst:1939 msgid "" -":meth:`~ssl.SSLContext.load_cert_chain` now accepts a *password* argument to" -" be used if the private key is encrypted. (Contributed by Adam Simpkins in " -":issue:`12803`.)" +":meth:`~ssl.SSLContext.load_cert_chain` now accepts a *password* argument to " +"be used if the private key is encrypted. (Contributed by Adam Simpkins in :" +"issue:`12803`.)" msgstr "" #: ../../whatsnew/3.3.rst:1943 msgid "" "Diffie-Hellman key exchange, both regular and Elliptic Curve-based, is now " -"supported through the :meth:`~ssl.SSLContext.load_dh_params` and " -":meth:`~ssl.SSLContext.set_ecdh_curve` methods. (Contributed by Antoine " -"Pitrou in :issue:`13626` and :issue:`13627`.)" +"supported through the :meth:`~ssl.SSLContext.load_dh_params` and :meth:`~ssl." +"SSLContext.set_ecdh_curve` methods. (Contributed by Antoine Pitrou in :issue:" +"`13626` and :issue:`13627`.)" msgstr "" #: ../../whatsnew/3.3.rst:1948 @@ -2868,24 +2854,24 @@ msgstr "" #: ../../whatsnew/3.3.rst:1952 msgid "" -"You can query the SSL compression algorithm used by an SSL socket, thanks to" -" its new :meth:`~ssl.SSLSocket.compression` method. The new attribute " -":attr:`~ssl.OP_NO_COMPRESSION` can be used to disable compression. " -"(Contributed by Antoine Pitrou in :issue:`13634`.)" +"You can query the SSL compression algorithm used by an SSL socket, thanks to " +"its new :meth:`~ssl.SSLSocket.compression` method. The new attribute :attr:" +"`~ssl.OP_NO_COMPRESSION` can be used to disable compression. (Contributed by " +"Antoine Pitrou in :issue:`13634`.)" msgstr "" #: ../../whatsnew/3.3.rst:1957 msgid "" -"Support has been added for the Next Protocol Negotiation extension using the" -" :meth:`ssl.SSLContext.set_npn_protocols` method. (Contributed by Colin Marc" -" in :issue:`14204`.)" +"Support has been added for the Next Protocol Negotiation extension using " +"the :meth:`ssl.SSLContext.set_npn_protocols` method. (Contributed by Colin " +"Marc in :issue:`14204`.)" msgstr "" #: ../../whatsnew/3.3.rst:1961 msgid "" -"SSL errors can now be introspected more easily thanks to " -":attr:`~ssl.SSLError.library` and :attr:`~ssl.SSLError.reason` attributes. " -"(Contributed by Antoine Pitrou in :issue:`14837`.)" +"SSL errors can now be introspected more easily thanks to :attr:`~ssl." +"SSLError.library` and :attr:`~ssl.SSLError.reason` attributes. (Contributed " +"by Antoine Pitrou in :issue:`14837`.)" msgstr "" #: ../../whatsnew/3.3.rst:1965 @@ -2907,9 +2893,9 @@ msgstr "stat" #: ../../whatsnew/3.3.rst:1976 msgid "" -"The undocumented tarfile.filemode function has been moved to " -":func:`stat.filemode`. It can be used to convert a file's mode to a string " -"of the form '-rwxrwxrwx'." +"The undocumented tarfile.filemode function has been moved to :func:`stat." +"filemode`. It can be used to convert a file's mode to a string of the form '-" +"rwxrwxrwx'." msgstr "" #: ../../whatsnew/3.3.rst:1980 @@ -2922,9 +2908,9 @@ msgstr "struct" #: ../../whatsnew/3.3.rst:1986 msgid "" -"The :mod:`struct` module now supports ``ssize_t`` and ``size_t`` via the new" -" codes ``n`` and ``N``, respectively. (Contributed by Antoine Pitrou in " -":issue:`3163`.)" +"The :mod:`struct` module now supports ``ssize_t`` and ``size_t`` via the new " +"codes ``n`` and ``N``, respectively. (Contributed by Antoine Pitrou in :" +"issue:`3163`.)" msgstr "" #: ../../whatsnew/3.3.rst:1992 @@ -2940,8 +2926,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:1997 msgid "" "A new constant :data:`~subprocess.DEVNULL` allows suppressing output in a " -"platform-independent fashion. (Contributed by Ross Lagerwall in " -":issue:`5870`.)" +"platform-independent fashion. (Contributed by Ross Lagerwall in :issue:" +"`5870`.)" msgstr "" #: ../../whatsnew/3.3.rst:2003 @@ -2950,8 +2936,8 @@ msgstr "sys" #: ../../whatsnew/3.3.rst:2005 msgid "" -"The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`named tuple`" -" holding information about the thread implementation (:issue:`11223`)." +"The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`named tuple` " +"holding information about the thread implementation (:issue:`11223`)." msgstr "" #: ../../whatsnew/3.3.rst:2011 @@ -2970,9 +2956,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:2020 msgid "" -":class:`tempfile.SpooledTemporaryFile`\\'s " -":meth:`~tempfile.SpooledTemporaryFile.truncate` method now accepts a " -"``size`` parameter. (Contributed by Ryan Kelly in :issue:`9957`.)" +":class:`tempfile.SpooledTemporaryFile`\\'s :meth:`~tempfile." +"SpooledTemporaryFile.truncate` method now accepts a ``size`` parameter. " +"(Contributed by Ryan Kelly in :issue:`9957`.)" msgstr "" #: ../../whatsnew/3.3.rst:2026 @@ -2982,8 +2968,8 @@ msgstr "textwrap" #: ../../whatsnew/3.3.rst:2028 msgid "" "The :mod:`textwrap` module has a new :func:`~textwrap.indent` that makes it " -"straightforward to add a common prefix to selected lines in a block of text" -" (:issue:`13857`)." +"straightforward to add a common prefix to selected lines in a block of text " +"(:issue:`13857`)." msgstr "" #: ../../whatsnew/3.3.rst:2034 @@ -2992,11 +2978,11 @@ msgstr "threading" #: ../../whatsnew/3.3.rst:2036 msgid "" -":class:`threading.Condition`, :class:`threading.Semaphore`, " -":class:`threading.BoundedSemaphore`, :class:`threading.Event`, and " -":class:`threading.Timer`, all of which used to be factory functions " -"returning a class instance, are now classes and may be subclassed. " -"(Contributed by Éric Araujo in :issue:`10968`.)" +":class:`threading.Condition`, :class:`threading.Semaphore`, :class:" +"`threading.BoundedSemaphore`, :class:`threading.Event`, and :class:" +"`threading.Timer`, all of which used to be factory functions returning a " +"class instance, are now classes and may be subclassed. (Contributed by Éric " +"Araujo in :issue:`10968`.)" msgstr "" #: ../../whatsnew/3.3.rst:2042 @@ -3017,7 +3003,7 @@ msgstr "" #: ../../whatsnew/3.3.rst:2054 msgid "time" -msgstr "" +msgstr "time" #: ../../whatsnew/3.3.rst:2056 msgid "The :pep:`418` added new functions to the :mod:`time` module:" @@ -3051,16 +3037,16 @@ msgstr "" #: ../../whatsnew/3.3.rst:2068 msgid "" -":func:`~time.clock_getres`, :func:`~time.clock_gettime` and " -":func:`~time.clock_settime` functions with ``CLOCK_xxx`` constants. " -"(Contributed by Victor Stinner in :issue:`10278`.)" +":func:`~time.clock_getres`, :func:`~time.clock_gettime` and :func:`~time." +"clock_settime` functions with ``CLOCK_xxx`` constants. (Contributed by " +"Victor Stinner in :issue:`10278`.)" msgstr "" #: ../../whatsnew/3.3.rst:2072 msgid "" -"To improve cross platform consistency, :func:`~time.sleep` now raises a " -":exc:`ValueError` when passed a negative sleep value. Previously this was " -"an error on posix, but produced an infinite sleep on Windows." +"To improve cross platform consistency, :func:`~time.sleep` now raises a :exc:" +"`ValueError` when passed a negative sleep value. Previously this was an " +"error on posix, but produced an infinite sleep on Windows." msgstr "" #: ../../whatsnew/3.3.rst:2078 @@ -3076,8 +3062,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:2084 msgid "" "The new functions :func:`types.new_class` and :func:`types.prepare_class` " -"provide support for PEP 3115 compliant dynamic type creation. " -"(:issue:`14588`)" +"provide support for PEP 3115 compliant dynamic type creation. (:issue:" +"`14588`)" msgstr "" #: ../../whatsnew/3.3.rst:2089 @@ -3086,10 +3072,10 @@ msgstr "unittest" #: ../../whatsnew/3.3.rst:2091 msgid "" -":meth:`.assertRaises`, :meth:`.assertRaisesRegex`, :meth:`.assertWarns`, and" -" :meth:`.assertWarnsRegex` now accept a keyword argument *msg* when used as " -"context managers. (Contributed by Ezio Melotti and Winston Ewert in " -":issue:`10775`.)" +":meth:`.assertRaises`, :meth:`.assertRaisesRegex`, :meth:`.assertWarns`, " +"and :meth:`.assertWarnsRegex` now accept a keyword argument *msg* when used " +"as context managers. (Contributed by Ezio Melotti and Winston Ewert in :" +"issue:`10775`.)" msgstr "" #: ../../whatsnew/3.3.rst:2096 @@ -3120,12 +3106,12 @@ msgstr "" #: ../../whatsnew/3.3.rst:2115 msgid "" "The :mod:`webbrowser` module supports more \"browsers\": Google Chrome " -"(named :program:`chrome`, :program:`chromium`, :program:`chrome-browser` or " -":program:`chromium-browser` depending on the version and operating system), " +"(named :program:`chrome`, :program:`chromium`, :program:`chrome-browser` or :" +"program:`chromium-browser` depending on the version and operating system), " "and the generic launchers :program:`xdg-open`, from the FreeDesktop.org " "project, and :program:`gvfs-open`, which is the default URI handler for " -"GNOME 3. (The former contributed by Arnaud Calmettes in :issue:`13620`, the" -" latter by Matthias Klose in :issue:`14493`.)" +"GNOME 3. (The former contributed by Arnaud Calmettes in :issue:`13620`, the " +"latter by Matthias Klose in :issue:`14493`.)" msgstr "" #: ../../whatsnew/3.3.rst:2125 @@ -3135,12 +3121,12 @@ msgstr "" #: ../../whatsnew/3.3.rst:2127 msgid "" "The :mod:`xml.etree.ElementTree` module now imports its C accelerator by " -"default; there is no longer a need to explicitly import " -":mod:`xml.etree.cElementTree` (this module stays for backwards " -"compatibility, but is now deprecated). In addition, the ``iter`` family of" -" methods of :class:`~xml.etree.ElementTree.Element` has been optimized " -"(rewritten in C). The module's documentation has also been greatly improved " -"with added examples and a more detailed reference." +"default; there is no longer a need to explicitly import :mod:`xml.etree." +"cElementTree` (this module stays for backwards compatibility, but is now " +"deprecated). In addition, the ``iter`` family of methods of :class:`~xml." +"etree.ElementTree.Element` has been optimized (rewritten in C). The module's " +"documentation has also been greatly improved with added examples and a more " +"detailed reference." msgstr "" #: ../../whatsnew/3.3.rst:2137 @@ -3171,8 +3157,7 @@ msgstr "Major performance enhancements have been added:" #: ../../whatsnew/3.3.rst:2153 msgid "" -"Thanks to :pep:`393`, some operations on Unicode strings have been " -"optimized:" +"Thanks to :pep:`393`, some operations on Unicode strings have been optimized:" msgstr "" #: ../../whatsnew/3.3.rst:2155 @@ -3196,14 +3181,13 @@ msgid "" msgstr "" #: ../../whatsnew/3.3.rst:2162 -msgid "" -"UTF-8 is now 2x to 4x faster. UTF-16 encoding is now up to 10x faster." +msgid "UTF-8 is now 2x to 4x faster. UTF-16 encoding is now up to 10x faster." msgstr "" #: ../../whatsnew/3.3.rst:2164 msgid "" -"(Contributed by Serhiy Storchaka, :issue:`14624`, :issue:`14738` and " -":issue:`15026`.)" +"(Contributed by Serhiy Storchaka, :issue:`14624`, :issue:`14738` and :issue:" +"`15026`.)" msgstr "" #: ../../whatsnew/3.3.rst:2169 @@ -3220,7 +3204,7 @@ msgstr "" #: ../../whatsnew/3.3.rst:2175 msgid ":c:func:`PyMemoryView_FromMemory`" -msgstr "" +msgstr ":c:func:`PyMemoryView_FromMemory`" #: ../../whatsnew/3.3.rst:2177 msgid ":pep:`393` added new Unicode types, macros and functions:" @@ -3232,27 +3216,27 @@ msgstr "" #: ../../whatsnew/3.3.rst:2181 msgid ":c:func:`PyUnicode_CopyCharacters`" -msgstr "" +msgstr ":c:func:`PyUnicode_CopyCharacters`" #: ../../whatsnew/3.3.rst:2182 msgid ":c:func:`PyUnicode_FindChar`" -msgstr "" +msgstr ":c:func:`PyUnicode_FindChar`" #: ../../whatsnew/3.3.rst:2183 msgid ":c:func:`PyUnicode_GetLength`, :c:macro:`PyUnicode_GET_LENGTH`" -msgstr "" +msgstr ":c:func:`PyUnicode_GetLength`, :c:macro:`PyUnicode_GET_LENGTH`" #: ../../whatsnew/3.3.rst:2184 msgid ":c:func:`PyUnicode_New`" -msgstr "" +msgstr ":c:func:`PyUnicode_New`" #: ../../whatsnew/3.3.rst:2185 msgid ":c:func:`PyUnicode_Substring`" -msgstr "" +msgstr ":c:func:`PyUnicode_Substring`" #: ../../whatsnew/3.3.rst:2186 msgid ":c:func:`PyUnicode_ReadChar`, :c:func:`PyUnicode_WriteChar`" -msgstr "" +msgstr ":c:func:`PyUnicode_ReadChar`, :c:func:`PyUnicode_WriteChar`" #: ../../whatsnew/3.3.rst:2188 msgid "Low-level API:" @@ -3263,44 +3247,50 @@ msgid ":c:type:`Py_UCS1`, :c:type:`Py_UCS2`, :c:type:`Py_UCS4` types" msgstr "" #: ../../whatsnew/3.3.rst:2191 -msgid "" -":c:type:`PyASCIIObject` and :c:type:`PyCompactUnicodeObject` structures" +msgid ":c:type:`PyASCIIObject` and :c:type:`PyCompactUnicodeObject` structures" msgstr "" #: ../../whatsnew/3.3.rst:2192 msgid ":c:macro:`PyUnicode_READY`" -msgstr "" +msgstr ":c:macro:`PyUnicode_READY`" #: ../../whatsnew/3.3.rst:2193 msgid ":c:func:`PyUnicode_FromKindAndData`" -msgstr "" +msgstr ":c:func:`PyUnicode_FromKindAndData`" #: ../../whatsnew/3.3.rst:2194 msgid ":c:func:`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsUCS4Copy`" -msgstr "" +msgstr ":c:func:`PyUnicode_AsUCS4`, :c:func:`PyUnicode_AsUCS4Copy`" #: ../../whatsnew/3.3.rst:2195 msgid "" -":c:macro:`PyUnicode_DATA`, :c:macro:`PyUnicode_1BYTE_DATA`, " -":c:macro:`PyUnicode_2BYTE_DATA`, :c:macro:`PyUnicode_4BYTE_DATA`" +":c:macro:`PyUnicode_DATA`, :c:macro:`PyUnicode_1BYTE_DATA`, :c:macro:" +"`PyUnicode_2BYTE_DATA`, :c:macro:`PyUnicode_4BYTE_DATA`" msgstr "" +":c:macro:`PyUnicode_DATA`, :c:macro:`PyUnicode_1BYTE_DATA`, :c:macro:" +"`PyUnicode_2BYTE_DATA`, :c:macro:`PyUnicode_4BYTE_DATA`" #: ../../whatsnew/3.3.rst:2197 msgid "" -":c:macro:`PyUnicode_KIND` with :c:type:`PyUnicode_Kind` enum: " -":c:data:`PyUnicode_WCHAR_KIND`, :c:data:`PyUnicode_1BYTE_KIND`, " -":c:data:`PyUnicode_2BYTE_KIND`, :c:data:`PyUnicode_4BYTE_KIND`" +":c:macro:`PyUnicode_KIND` with :c:type:`PyUnicode_Kind` enum: :c:data:" +"`PyUnicode_WCHAR_KIND`, :c:data:`PyUnicode_1BYTE_KIND`, :c:data:" +"`PyUnicode_2BYTE_KIND`, :c:data:`PyUnicode_4BYTE_KIND`" msgstr "" +":c:macro:`PyUnicode_KIND` with :c:type:`PyUnicode_Kind` enum: :c:data:" +"`PyUnicode_WCHAR_KIND`, :c:data:`PyUnicode_1BYTE_KIND`, :c:data:" +"`PyUnicode_2BYTE_KIND`, :c:data:`PyUnicode_4BYTE_KIND`" #: ../../whatsnew/3.3.rst:2200 msgid "" -":c:macro:`PyUnicode_READ`, :c:macro:`PyUnicode_READ_CHAR`, " -":c:macro:`PyUnicode_WRITE`" +":c:macro:`PyUnicode_READ`, :c:macro:`PyUnicode_READ_CHAR`, :c:macro:" +"`PyUnicode_WRITE`" msgstr "" +":c:macro:`PyUnicode_READ`, :c:macro:`PyUnicode_READ_CHAR`, :c:macro:" +"`PyUnicode_WRITE`" #: ../../whatsnew/3.3.rst:2201 msgid ":c:macro:`PyUnicode_MAX_CHAR_VALUE`" -msgstr "" +msgstr ":c:macro:`PyUnicode_MAX_CHAR_VALUE`" #: ../../whatsnew/3.3.rst:2203 msgid "" @@ -3342,16 +3332,18 @@ msgstr "" #: ../../whatsnew/3.3.rst:2227 msgid "" -"The ``unicode_internal`` codec has been deprecated because of the " -":pep:`393`, use UTF-8, UTF-16 (``utf-16-le`` or ``utf-16-be``), or UTF-32 " +"The ``unicode_internal`` codec has been deprecated because of the :pep:" +"`393`, use UTF-8, UTF-16 (``utf-16-le`` or ``utf-16-be``), or UTF-32 " "(``utf-32-le`` or ``utf-32-be``)" msgstr "" #: ../../whatsnew/3.3.rst:2230 msgid "" -":meth:`ftplib.FTP.nlst` and :meth:`ftplib.FTP.dir`: use " -":meth:`ftplib.FTP.mlsd`" +":meth:`ftplib.FTP.nlst` and :meth:`ftplib.FTP.dir`: use :meth:`ftplib.FTP." +"mlsd`" msgstr "" +":meth:`ftplib.FTP.nlst` and :meth:`ftplib.FTP.dir`: use :meth:`ftplib.FTP." +"mlsd`" #: ../../whatsnew/3.3.rst:2232 msgid "" @@ -3368,14 +3360,14 @@ msgstr "" #: ../../whatsnew/3.3.rst:2237 msgid "" -":issue:`13988`: The :mod:`xml.etree.cElementTree` module is deprecated. The" -" accelerator is used automatically whenever available." +":issue:`13988`: The :mod:`xml.etree.cElementTree` module is deprecated. The " +"accelerator is used automatically whenever available." msgstr "" #: ../../whatsnew/3.3.rst:2239 msgid "" -"The behaviour of :func:`time.clock` depends on the platform: use the new " -":func:`time.perf_counter` or :func:`time.process_time` function instead, " +"The behaviour of :func:`time.clock` depends on the platform: use the new :" +"func:`time.perf_counter` or :func:`time.process_time` function instead, " "depending on your requirements, to have a well defined behaviour." msgstr "" @@ -3393,10 +3385,10 @@ msgstr "" #: ../../whatsnew/3.3.rst:2254 msgid "" -":meth:`importlib.abc.SourceLoader.path_mtime` is now deprecated in favour of" -" :meth:`importlib.abc.SourceLoader.path_stats` as bytecode files now store " -"both the modification time and size of the source file the bytecode file was" -" compiled from." +":meth:`importlib.abc.SourceLoader.path_mtime` is now deprecated in favour " +"of :meth:`importlib.abc.SourceLoader.path_stats` as bytecode files now store " +"both the modification time and size of the source file the bytecode file was " +"compiled from." msgstr "" #: ../../whatsnew/3.3.rst:2264 @@ -3411,34 +3403,41 @@ msgstr "" #: ../../whatsnew/3.3.rst:2269 msgid "" -"Unicode functions and methods using :c:type:`Py_UNICODE` and " -":c:type:`Py_UNICODE*` types:" +"Unicode functions and methods using :c:type:`Py_UNICODE` and :c:type:" +"`Py_UNICODE*` types:" msgstr "" #: ../../whatsnew/3.3.rst:2272 msgid "" -":c:macro:`PyUnicode_FromUnicode`: use :c:func:`PyUnicode_FromWideChar` or " -":c:func:`PyUnicode_FromKindAndData`" +":c:macro:`PyUnicode_FromUnicode`: use :c:func:`PyUnicode_FromWideChar` or :c:" +"func:`PyUnicode_FromKindAndData`" msgstr "" +":c:macro:`PyUnicode_FromUnicode`: use :c:func:`PyUnicode_FromWideChar` or :c:" +"func:`PyUnicode_FromKindAndData`" #: ../../whatsnew/3.3.rst:2274 msgid "" -":c:macro:`PyUnicode_AS_UNICODE`, :c:func:`PyUnicode_AsUnicode`, " -":c:func:`PyUnicode_AsUnicodeAndSize`: use " -":c:func:`PyUnicode_AsWideCharString`" +":c:macro:`PyUnicode_AS_UNICODE`, :c:func:`PyUnicode_AsUnicode`, :c:func:" +"`PyUnicode_AsUnicodeAndSize`: use :c:func:`PyUnicode_AsWideCharString`" msgstr "" +":c:macro:`PyUnicode_AS_UNICODE`, :c:func:`PyUnicode_AsUnicode`, :c:func:" +"`PyUnicode_AsUnicodeAndSize`: use :c:func:`PyUnicode_AsWideCharString`" #: ../../whatsnew/3.3.rst:2276 msgid "" -":c:macro:`PyUnicode_AS_DATA`: use :c:macro:`PyUnicode_DATA` with " -":c:macro:`PyUnicode_READ` and :c:macro:`PyUnicode_WRITE`" +":c:macro:`PyUnicode_AS_DATA`: use :c:macro:`PyUnicode_DATA` with :c:macro:" +"`PyUnicode_READ` and :c:macro:`PyUnicode_WRITE`" msgstr "" +":c:macro:`PyUnicode_AS_DATA`: use :c:macro:`PyUnicode_DATA` with :c:macro:" +"`PyUnicode_READ` and :c:macro:`PyUnicode_WRITE`" #: ../../whatsnew/3.3.rst:2278 msgid "" -":c:macro:`PyUnicode_GET_SIZE`, :c:func:`PyUnicode_GetSize`: use " -":c:macro:`PyUnicode_GET_LENGTH` or :c:func:`PyUnicode_GetLength`" +":c:macro:`PyUnicode_GET_SIZE`, :c:func:`PyUnicode_GetSize`: use :c:macro:" +"`PyUnicode_GET_LENGTH` or :c:func:`PyUnicode_GetLength`" msgstr "" +":c:macro:`PyUnicode_GET_SIZE`, :c:func:`PyUnicode_GetSize`: use :c:macro:" +"`PyUnicode_GET_LENGTH` or :c:func:`PyUnicode_GetLength`" #: ../../whatsnew/3.3.rst:2280 msgid "" @@ -3448,13 +3447,15 @@ msgstr "" #: ../../whatsnew/3.3.rst:2283 msgid "" -":c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or " -":c:func:`PyUnicode_AsWideCharString`" +":c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or :c:" +"func:`PyUnicode_AsWideCharString`" msgstr "" +":c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or :c:" +"func:`PyUnicode_AsWideCharString`" #: ../../whatsnew/3.3.rst:2285 msgid ":c:func:`PyUnicode_GetMax`" -msgstr "" +msgstr ":c:func:`PyUnicode_GetMax`" #: ../../whatsnew/3.3.rst:2288 msgid "Functions and macros manipulating Py_UNICODE* strings:" @@ -3462,44 +3463,53 @@ msgstr "" #: ../../whatsnew/3.3.rst:2290 msgid "" -":c:macro:`Py_UNICODE_strlen`: use :c:func:`PyUnicode_GetLength` or " -":c:macro:`PyUnicode_GET_LENGTH`" +":c:macro:`Py_UNICODE_strlen`: use :c:func:`PyUnicode_GetLength` or :c:macro:" +"`PyUnicode_GET_LENGTH`" msgstr "" +":c:macro:`Py_UNICODE_strlen`: use :c:func:`PyUnicode_GetLength` or :c:macro:" +"`PyUnicode_GET_LENGTH`" #: ../../whatsnew/3.3.rst:2292 msgid "" -":c:macro:`Py_UNICODE_strcat`: use :c:func:`PyUnicode_CopyCharacters` or " -":c:func:`PyUnicode_FromFormat`" +":c:macro:`Py_UNICODE_strcat`: use :c:func:`PyUnicode_CopyCharacters` or :c:" +"func:`PyUnicode_FromFormat`" msgstr "" +":c:macro:`Py_UNICODE_strcat`: use :c:func:`PyUnicode_CopyCharacters` or :c:" +"func:`PyUnicode_FromFormat`" #: ../../whatsnew/3.3.rst:2294 msgid "" -":c:macro:`Py_UNICODE_strcpy`, :c:macro:`Py_UNICODE_strncpy`, " -":c:macro:`Py_UNICODE_COPY`: use :c:func:`PyUnicode_CopyCharacters` or " -":c:func:`PyUnicode_Substring`" +":c:macro:`Py_UNICODE_strcpy`, :c:macro:`Py_UNICODE_strncpy`, :c:macro:" +"`Py_UNICODE_COPY`: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" +"`PyUnicode_Substring`" msgstr "" +":c:macro:`Py_UNICODE_strcpy`, :c:macro:`Py_UNICODE_strncpy`, :c:macro:" +"`Py_UNICODE_COPY`: use :c:func:`PyUnicode_CopyCharacters` or :c:func:" +"`PyUnicode_Substring`" #: ../../whatsnew/3.3.rst:2297 msgid ":c:macro:`Py_UNICODE_strcmp`: use :c:func:`PyUnicode_Compare`" -msgstr "" +msgstr ":c:macro:`Py_UNICODE_strcmp`: use :c:func:`PyUnicode_Compare`" #: ../../whatsnew/3.3.rst:2298 msgid ":c:macro:`Py_UNICODE_strncmp`: use :c:func:`PyUnicode_Tailmatch`" -msgstr "" +msgstr ":c:macro:`Py_UNICODE_strncmp`: use :c:func:`PyUnicode_Tailmatch`" #: ../../whatsnew/3.3.rst:2299 msgid "" -":c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use " -":c:func:`PyUnicode_FindChar`" +":c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use :c:func:" +"`PyUnicode_FindChar`" msgstr "" +":c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use :c:func:" +"`PyUnicode_FindChar`" #: ../../whatsnew/3.3.rst:2301 msgid ":c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`" -msgstr "" +msgstr ":c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`" #: ../../whatsnew/3.3.rst:2302 msgid ":c:macro:`Py_UNICODE_MATCH`" -msgstr "" +msgstr ":c:macro:`Py_UNICODE_MATCH`" #: ../../whatsnew/3.3.rst:2304 msgid "Encoders:" @@ -3507,66 +3517,75 @@ msgstr "" #: ../../whatsnew/3.3.rst:2306 msgid ":c:func:`PyUnicode_Encode`: use :c:func:`PyUnicode_AsEncodedObject`" -msgstr "" +msgstr ":c:func:`PyUnicode_Encode`: use :c:func:`PyUnicode_AsEncodedObject`" #: ../../whatsnew/3.3.rst:2307 msgid ":c:func:`PyUnicode_EncodeUTF7`" -msgstr "" +msgstr ":c:func:`PyUnicode_EncodeUTF7`" #: ../../whatsnew/3.3.rst:2308 msgid "" -":c:func:`PyUnicode_EncodeUTF8`: use :c:func:`PyUnicode_AsUTF8` or " -":c:func:`PyUnicode_AsUTF8String`" +":c:func:`PyUnicode_EncodeUTF8`: use :c:func:`PyUnicode_AsUTF8` or :c:func:" +"`PyUnicode_AsUTF8String`" msgstr "" +":c:func:`PyUnicode_EncodeUTF8`: use :c:func:`PyUnicode_AsUTF8` or :c:func:" +"`PyUnicode_AsUTF8String`" #: ../../whatsnew/3.3.rst:2310 msgid ":c:func:`PyUnicode_EncodeUTF32`" -msgstr "" +msgstr ":c:func:`PyUnicode_EncodeUTF32`" #: ../../whatsnew/3.3.rst:2311 msgid ":c:func:`PyUnicode_EncodeUTF16`" -msgstr "" +msgstr ":c:func:`PyUnicode_EncodeUTF16`" #: ../../whatsnew/3.3.rst:2312 msgid "" -":c:func:`PyUnicode_EncodeUnicodeEscape:` use " -":c:func:`PyUnicode_AsUnicodeEscapeString`" +":c:func:`PyUnicode_EncodeUnicodeEscape:` use :c:func:" +"`PyUnicode_AsUnicodeEscapeString`" msgstr "" +":c:func:`PyUnicode_EncodeUnicodeEscape:` use :c:func:" +"`PyUnicode_AsUnicodeEscapeString`" #: ../../whatsnew/3.3.rst:2314 msgid "" -":c:func:`PyUnicode_EncodeRawUnicodeEscape:` use " -":c:func:`PyUnicode_AsRawUnicodeEscapeString`" +":c:func:`PyUnicode_EncodeRawUnicodeEscape:` use :c:func:" +"`PyUnicode_AsRawUnicodeEscapeString`" msgstr "" +":c:func:`PyUnicode_EncodeRawUnicodeEscape:` use :c:func:" +"`PyUnicode_AsRawUnicodeEscapeString`" #: ../../whatsnew/3.3.rst:2316 msgid "" ":c:func:`PyUnicode_EncodeLatin1`: use :c:func:`PyUnicode_AsLatin1String`" msgstr "" +":c:func:`PyUnicode_EncodeLatin1`: use :c:func:`PyUnicode_AsLatin1String`" #: ../../whatsnew/3.3.rst:2317 msgid ":c:func:`PyUnicode_EncodeASCII`: use :c:func:`PyUnicode_AsASCIIString`" -msgstr "" +msgstr ":c:func:`PyUnicode_EncodeASCII`: use :c:func:`PyUnicode_AsASCIIString`" #: ../../whatsnew/3.3.rst:2318 msgid ":c:func:`PyUnicode_EncodeCharmap`" -msgstr "" +msgstr ":c:func:`PyUnicode_EncodeCharmap`" #: ../../whatsnew/3.3.rst:2319 msgid ":c:func:`PyUnicode_TranslateCharmap`" -msgstr "" +msgstr ":c:func:`PyUnicode_TranslateCharmap`" #: ../../whatsnew/3.3.rst:2320 msgid "" -":c:func:`PyUnicode_EncodeMBCS`: use :c:func:`PyUnicode_AsMBCSString` or " -":c:func:`PyUnicode_EncodeCodePage` (with ``CP_ACP`` code_page)" +":c:func:`PyUnicode_EncodeMBCS`: use :c:func:`PyUnicode_AsMBCSString` or :c:" +"func:`PyUnicode_EncodeCodePage` (with ``CP_ACP`` code_page)" msgstr "" #: ../../whatsnew/3.3.rst:2322 msgid "" -":c:func:`PyUnicode_EncodeDecimal`, " -":c:func:`PyUnicode_TransformDecimalToASCII`" +":c:func:`PyUnicode_EncodeDecimal`, :c:func:" +"`PyUnicode_TransformDecimalToASCII`" msgstr "" +":c:func:`PyUnicode_EncodeDecimal`, :c:func:" +"`PyUnicode_TransformDecimalToASCII`" #: ../../whatsnew/3.3.rst:2327 msgid "Deprecated features" @@ -3575,8 +3594,7 @@ msgstr "" #: ../../whatsnew/3.3.rst:2329 msgid "" "The :mod:`array` module's ``'u'`` format code is now deprecated and will be " -"removed in Python 4 together with the rest of the (:c:type:`Py_UNICODE`) " -"API." +"removed in Python 4 together with the rest of the (:c:type:`Py_UNICODE`) API." msgstr "" #: ../../whatsnew/3.3.rst:2334 @@ -3598,34 +3616,34 @@ msgstr "" #: ../../whatsnew/3.3.rst:2344 msgid "" "Hash randomization is enabled by default. Set the :envvar:`PYTHONHASHSEED` " -"environment variable to ``0`` to disable hash randomization. See also the " -":meth:`object.__hash__` method." +"environment variable to ``0`` to disable hash randomization. See also the :" +"meth:`object.__hash__` method." msgstr "" #: ../../whatsnew/3.3.rst:2348 msgid "" ":issue:`12326`: On Linux, sys.platform doesn't contain the major version " -"anymore. It is now always 'linux', instead of 'linux2' or 'linux3' depending" -" on the Linux version used to build Python. Replace sys.platform == 'linux2'" -" with sys.platform.startswith('linux'), or directly sys.platform == 'linux' " +"anymore. It is now always 'linux', instead of 'linux2' or 'linux3' depending " +"on the Linux version used to build Python. Replace sys.platform == 'linux2' " +"with sys.platform.startswith('linux'), or directly sys.platform == 'linux' " "if you don't need to support older Python versions." msgstr "" #: ../../whatsnew/3.3.rst:2354 msgid "" -":issue:`13847`, :issue:`14180`: :mod:`time` and :mod:`datetime`: " -":exc:`OverflowError` is now raised instead of :exc:`ValueError` if a " -"timestamp is out of range. :exc:`OSError` is now raised if C functions " -":c:func:`gmtime` or :c:func:`localtime` failed." +":issue:`13847`, :issue:`14180`: :mod:`time` and :mod:`datetime`: :exc:" +"`OverflowError` is now raised instead of :exc:`ValueError` if a timestamp is " +"out of range. :exc:`OSError` is now raised if C functions :c:func:`gmtime` " +"or :c:func:`localtime` failed." msgstr "" #: ../../whatsnew/3.3.rst:2359 msgid "" "The default finders used by import now utilize a cache of what is contained " "within a specific directory. If you create a Python source file or " -"sourceless bytecode file, make sure to call " -":func:`importlib.invalidate_caches` to clear out the cache for the finders " -"to notice the new file." +"sourceless bytecode file, make sure to call :func:`importlib." +"invalidate_caches` to clear out the cache for the finders to notice the new " +"file." msgstr "" #: ../../whatsnew/3.3.rst:2364 @@ -3642,10 +3660,9 @@ msgid "" "and no longer support negative values. It was an oversight when :pep:`328` " "was implemented that the default value remained -1. If you need to continue " "to perform a relative import followed by an absolute import, then perform " -"the relative import using an index of 1, followed by another import using an" -" index of 0. It is preferred, though, that you use " -":func:`importlib.import_module` rather than call :func:`__import__` " -"directly." +"the relative import using an index of 1, followed by another import using an " +"index of 0. It is preferred, though, that you use :func:`importlib." +"import_module` rather than call :func:`__import__` directly." msgstr "" #: ../../whatsnew/3.3.rst:2377 @@ -3656,8 +3673,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:2380 msgid "" -"Because :attr:`sys.meta_path` and :attr:`sys.path_hooks` now have finders on" -" them by default, you will most likely want to use :meth:`list.insert` " +"Because :attr:`sys.meta_path` and :attr:`sys.path_hooks` now have finders on " +"them by default, you will most likely want to use :meth:`list.insert` " "instead of :meth:`list.append` to add to those lists." msgstr "" @@ -3665,17 +3682,17 @@ msgstr "" msgid "" "Because ``None`` is now inserted into :attr:`sys.path_importer_cache`, if " "you are clearing out entries in the dictionary of paths that do not have a " -"finder, you will need to remove keys paired with values of ``None`` **and** " -":class:`imp.NullImporter` to be backwards-compatible. This will lead to " -"extra overhead on older versions of Python that re-insert ``None`` into " -":attr:`sys.path_importer_cache` where it represents the use of implicit " -"finders, but semantically it should not change anything." +"finder, you will need to remove keys paired with values of ``None`` **and** :" +"class:`imp.NullImporter` to be backwards-compatible. This will lead to extra " +"overhead on older versions of Python that re-insert ``None`` into :attr:`sys." +"path_importer_cache` where it represents the use of implicit finders, but " +"semantically it should not change anything." msgstr "" #: ../../whatsnew/3.3.rst:2392 msgid "" -":class:`importlib.abc.Finder` no longer specifies a `find_module()` abstract" -" method that must be implemented. If you were relying on subclasses to " +":class:`importlib.abc.Finder` no longer specifies a `find_module()` abstract " +"method that must be implemented. If you were relying on subclasses to " "implement that method, make sure to check for the method's existence first. " "You will probably want to check for `find_loader()` first, though, in the " "case of working with :term:`path entry finders `." @@ -3686,40 +3703,40 @@ msgid "" ":mod:`pkgutil` has been converted to use :mod:`importlib` internally. This " "eliminates many edge cases where the old behaviour of the PEP 302 import " "emulation failed to match the behaviour of the real import system. The " -"import emulation itself is still present, but is now deprecated. The " -":func:`pkgutil.iter_importers` and :func:`pkgutil.walk_packages` functions " -"special case the standard import hooks so they are still supported even " -"though they do not provide the non-standard ``iter_modules()`` method." +"import emulation itself is still present, but is now deprecated. The :func:" +"`pkgutil.iter_importers` and :func:`pkgutil.walk_packages` functions special " +"case the standard import hooks so they are still supported even though they " +"do not provide the non-standard ``iter_modules()`` method." msgstr "" #: ../../whatsnew/3.3.rst:2406 msgid "" -"A longstanding RFC-compliance bug (:issue:`1079`) in the parsing done by " -":func:`email.header.decode_header` has been fixed. Code that uses the " +"A longstanding RFC-compliance bug (:issue:`1079`) in the parsing done by :" +"func:`email.header.decode_header` has been fixed. Code that uses the " "standard idiom to convert encoded headers into unicode " "(``str(make_header(decode_header(h))``) will see no change, but code that " "looks at the individual tuples returned by decode_header will see that " "whitespace that precedes or follows ``ASCII`` sections is now included in " "the ``ASCII`` section. Code that builds headers using ``make_header`` " -"should also continue to work without change, since ``make_header`` continues" -" to add whitespace between ``ASCII`` and non-``ASCII`` sections if it is not" -" already present in the input strings." +"should also continue to work without change, since ``make_header`` continues " +"to add whitespace between ``ASCII`` and non-``ASCII`` sections if it is not " +"already present in the input strings." msgstr "" #: ../../whatsnew/3.3.rst:2417 msgid "" ":func:`email.utils.formataddr` now does the correct content transfer " -"encoding when passed non-``ASCII`` display names. Any code that depended on" -" the previous buggy behavior that preserved the non-``ASCII`` unicode in the" -" formatted output string will need to be changed (:issue:`1690608`)." +"encoding when passed non-``ASCII`` display names. Any code that depended on " +"the previous buggy behavior that preserved the non-``ASCII`` unicode in the " +"formatted output string will need to be changed (:issue:`1690608`)." msgstr "" #: ../../whatsnew/3.3.rst:2422 msgid "" ":meth:`poplib.POP3.quit` may now raise protocol errors like all other " -"``poplib`` methods. Code that assumes ``quit`` does not raise " -":exc:`poplib.error_proto` errors may need to be changed if errors on " -"``quit`` are encountered by a particular application (:issue:`11291`)." +"``poplib`` methods. Code that assumes ``quit`` does not raise :exc:`poplib." +"error_proto` errors may need to be changed if errors on ``quit`` are " +"encountered by a particular application (:issue:`11291`)." msgstr "" #: ../../whatsnew/3.3.rst:2427 @@ -3740,16 +3757,16 @@ msgstr "" #: ../../whatsnew/3.3.rst:2435 msgid "" -"The deprecated ``Context._clamp`` attribute has been removed from the " -":mod:`decimal` module. It was previously replaced by the public attribute " -":attr:`~decimal.Context.clamp`. (See :issue:`8540`.)" +"The deprecated ``Context._clamp`` attribute has been removed from the :mod:" +"`decimal` module. It was previously replaced by the public attribute :attr:" +"`~decimal.Context.clamp`. (See :issue:`8540`.)" msgstr "" #: ../../whatsnew/3.3.rst:2439 msgid "" -"The undocumented internal helper class ``SSLFakeFile`` has been removed from" -" :mod:`smtplib`, since its functionality has long been provided directly by " -":meth:`socket.socket.makefile`." +"The undocumented internal helper class ``SSLFakeFile`` has been removed " +"from :mod:`smtplib`, since its functionality has long been provided directly " +"by :meth:`socket.socket.makefile`." msgstr "" #: ../../whatsnew/3.3.rst:2443 @@ -3767,9 +3784,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:2450 msgid "" -"Code that used to work around the fact that the :mod:`threading` module used" -" factory functions by subclassing the private classes will need to change to" -" subclass the now-public classes." +"Code that used to work around the fact that the :mod:`threading` module used " +"factory functions by subclassing the private classes will need to change to " +"subclass the now-public classes." msgstr "" #: ../../whatsnew/3.3.rst:2454 @@ -3786,10 +3803,9 @@ msgstr "" #: ../../whatsnew/3.3.rst:2463 msgid "" -"In the course of changes to the buffer API the undocumented " -":c:member:`~Py_buffer.smalltable` member of the :c:type:`Py_buffer` " -"structure has been removed and the layout of the " -":c:type:`PyMemoryViewObject` has changed." +"In the course of changes to the buffer API the undocumented :c:member:" +"`~Py_buffer.smalltable` member of the :c:type:`Py_buffer` structure has been " +"removed and the layout of the :c:type:`PyMemoryViewObject` has changed." msgstr "" #: ../../whatsnew/3.3.rst:2468 @@ -3804,16 +3820,16 @@ msgid "" "functions using this type are deprecated (but will stay available for at " "least five years). If you were using low-level Unicode APIs to construct " "and access unicode objects and you want to benefit of the memory footprint " -"reduction provided by PEP 393, you have to convert your code to the new " -":doc:`Unicode API <../c-api/unicode>`." +"reduction provided by PEP 393, you have to convert your code to the new :doc:" +"`Unicode API <../c-api/unicode>`." msgstr "" #: ../../whatsnew/3.3.rst:2478 msgid "" -"However, if you only have been using high-level functions such as " -":c:func:`PyUnicode_Concat()`, :c:func:`PyUnicode_Join` or " -":c:func:`PyUnicode_FromFormat()`, your code will automatically take " -"advantage of the new unicode representations." +"However, if you only have been using high-level functions such as :c:func:" +"`PyUnicode_Concat()`, :c:func:`PyUnicode_Join` or :c:func:" +"`PyUnicode_FromFormat()`, your code will automatically take advantage of the " +"new unicode representations." msgstr "" #: ../../whatsnew/3.3.rst:2483 @@ -3824,8 +3840,8 @@ msgstr "" msgid "" "As a negative value for the *level* argument to :func:`__import__` is no " "longer valid, the same now holds for :c:func:`PyImport_ImportModuleLevel`. " -"This also means that the value of *level* used by " -":c:func:`PyImport_ImportModuleEx` is now ``0`` instead of ``-1``." +"This also means that the value of *level* used by :c:func:" +"`PyImport_ImportModuleEx` is now ``0`` instead of ``-1``." msgstr "" #: ../../whatsnew/3.3.rst:2492 @@ -3862,8 +3878,8 @@ msgstr "" #: ../../whatsnew/3.3.rst:2513 msgid "" -"When :program:`python` is started with :option:`-S`, ``import site`` will no" -" longer add site-specific paths to the module search paths. In previous " +"When :program:`python` is started with :option:`-S`, ``import site`` will no " +"longer add site-specific paths to the module search paths. In previous " "versions, it did." msgstr "" diff --git a/whatsnew/3.4.po b/whatsnew/3.4.po index b6e56fc0b..900464292 100644 --- a/whatsnew/3.4.po +++ b/whatsnew/3.4.po @@ -1,23 +1,25 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Victor Matheus Castro , 2019 # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-10-31 03:57+0000\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Claudio Rogerio Carvalho Filho , " +"2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -68,24 +70,23 @@ msgstr "Outras novas funcionalidades:" #: ../../whatsnew/3.4.rst:86 msgid ":ref:`pip should always be available ` (:pep:`453`)." -msgstr "" -":ref:`pip should always be available ` (:pep:`453`)." +msgstr ":ref:`pip should always be available ` (:pep:`453`)." #: ../../whatsnew/3.4.rst:87 msgid "" -":ref:`Newly created file descriptors are non-inheritable `" -" (:pep:`446`)." +":ref:`Newly created file descriptors are non-inheritable ` " +"(:pep:`446`)." msgstr "" -":ref:`Newly created file descriptors are non-inheritable `" -" (:pep:`446`)." +":ref:`Newly created file descriptors are non-inheritable ` " +"(:pep:`446`)." #: ../../whatsnew/3.4.rst:89 msgid "" -"command line option for :ref:`isolated mode ` " -"(:issue:`16499`)." +"command line option for :ref:`isolated mode ` (:" +"issue:`16499`)." msgstr "" -"command line option for :ref:`isolated mode ` " -"(:issue:`16499`)." +"command line option for :ref:`isolated mode ` (:" +"issue:`16499`)." #: ../../whatsnew/3.4.rst:91 msgid "" @@ -97,11 +98,11 @@ msgstr "" #: ../../whatsnew/3.4.rst:93 msgid "" -":ref:`A ModuleSpec Type ` for the Import System " -"(:pep:`451`). (Affects importer authors.)" +":ref:`A ModuleSpec Type ` for the Import System (:pep:" +"`451`). (Affects importer authors.)" msgstr "" -":ref:`A ModuleSpec Type ` for the Import System " -"(:pep:`451`). (Affects importer authors.)" +":ref:`A ModuleSpec Type ` for the Import System (:pep:" +"`451`). (Affects importer authors.)" #: ../../whatsnew/3.4.rst:95 msgid "" @@ -133,29 +134,29 @@ msgstr "" #: ../../whatsnew/3.4.rst:104 msgid "" -":mod:`enum`: :ref:`Support for enumeration types ` " -"(:pep:`435`)." +":mod:`enum`: :ref:`Support for enumeration types ` (:pep:" +"`435`)." msgstr "" -":mod:`enum`: :ref:`Support for enumeration types ` " -"(:pep:`435`)." +":mod:`enum`: :ref:`Support for enumeration types ` (:pep:" +"`435`)." #: ../../whatsnew/3.4.rst:106 msgid "" -":mod:`pathlib`: :ref:`Object-oriented filesystem paths ` " -"(:pep:`428`)." +":mod:`pathlib`: :ref:`Object-oriented filesystem paths ` (:" +"pep:`428`)." msgstr "" -":mod:`pathlib`: :ref:`Object-oriented filesystem paths ` " -"(:pep:`428`)." +":mod:`pathlib`: :ref:`Object-oriented filesystem paths ` (:" +"pep:`428`)." #: ../../whatsnew/3.4.rst:108 msgid "" ":mod:`selectors`: :ref:`High-level and efficient I/O multiplexing `, built upon the :mod:`select` module primitives (part of " -":pep:`3156`)." +"selectors>`, built upon the :mod:`select` module primitives (part of :pep:" +"`3156`)." msgstr "" ":mod:`selectors`: :ref:`High-level and efficient I/O multiplexing `, built upon the :mod:`select` module primitives (part of " -":pep:`3156`)." +"selectors>`, built upon the :mod:`select` module primitives (part of :pep:" +"`3156`)." #: ../../whatsnew/3.4.rst:111 msgid "" @@ -179,11 +180,11 @@ msgstr "Módulos de biblioteca significativamente melhorados:" #: ../../whatsnew/3.4.rst:118 msgid "" -":ref:`Single-dispatch generic functions ` in " -":mod:`functools` (:pep:`443`)." +":ref:`Single-dispatch generic functions ` in :mod:" +"`functools` (:pep:`443`)." msgstr "" -":ref:`Single-dispatch generic functions ` in " -":mod:`functools` (:pep:`443`)." +":ref:`Single-dispatch generic functions ` in :mod:" +"`functools` (:pep:`443`)." #: ../../whatsnew/3.4.rst:120 msgid "" @@ -201,15 +202,15 @@ msgstr "" #: ../../whatsnew/3.4.rst:123 msgid "" -":mod:`email` has a new submodule, :mod:`~email.contentmanager`, and a new " -":mod:`~email.message.Message` subclass " -"(:class:`~email.contentmanager.EmailMessage`) that :ref:`simplify MIME " -"handling ` (:issue:`18891`)." +":mod:`email` has a new submodule, :mod:`~email.contentmanager`, and a new :" +"mod:`~email.message.Message` subclass (:class:`~email.contentmanager." +"EmailMessage`) that :ref:`simplify MIME handling " +"` (:issue:`18891`)." msgstr "" -":mod:`email` has a new submodule, :mod:`~email.contentmanager`, and a new " -":mod:`~email.message.Message` subclass " -"(:class:`~email.contentmanager.EmailMessage`) that :ref:`simplify MIME " -"handling ` (:issue:`18891`)." +":mod:`email` has a new submodule, :mod:`~email.contentmanager`, and a new :" +"mod:`~email.message.Message` subclass (:class:`~email.contentmanager." +"EmailMessage`) that :ref:`simplify MIME handling " +"` (:issue:`18891`)." #: ../../whatsnew/3.4.rst:127 msgid "" @@ -231,11 +232,11 @@ msgstr "Melhorias de Segurança:" #: ../../whatsnew/3.4.rst:134 msgid "" -":ref:`Secure and interchangeable hash algorithm ` " -"(:pep:`456`)." +":ref:`Secure and interchangeable hash algorithm ` (:pep:" +"`456`)." msgstr "" -":ref:`Secure and interchangeable hash algorithm ` " -"(:pep:`456`)." +":ref:`Secure and interchangeable hash algorithm ` (:pep:" +"`456`)." #: ../../whatsnew/3.4.rst:136 msgid "" @@ -247,21 +248,21 @@ msgstr "" #: ../../whatsnew/3.4.rst:138 msgid "" -"New command line option for :ref:`isolated mode `, " -"(:issue:`16499`)." +"New command line option for :ref:`isolated mode `, (:" +"issue:`16499`)." msgstr "" -"New command line option for :ref:`isolated mode `, " -"(:issue:`16499`)." +"New command line option for :ref:`isolated mode `, (:" +"issue:`16499`)." #: ../../whatsnew/3.4.rst:140 msgid "" ":mod:`multiprocessing` now has :ref:`an option to avoid using os.fork on " -"Unix `. *spawn* and *forkserver* are more" -" secure because they avoid sharing data with child processes." +"Unix `. *spawn* and *forkserver* are more " +"secure because they avoid sharing data with child processes." msgstr "" ":mod:`multiprocessing` now has :ref:`an option to avoid using os.fork on " -"Unix `. *spawn* and *forkserver* are more" -" secure because they avoid sharing data with child processes." +"Unix `. *spawn* and *forkserver* are more " +"secure because they avoid sharing data with child processes." #: ../../whatsnew/3.4.rst:143 msgid "" @@ -280,8 +281,7 @@ msgstr "" "based key derivation function 2 `_." #: ../../whatsnew/3.4.rst:148 -msgid "" -":ref:`TLSv1.1 and TLSv1.2 support ` for :mod:`ssl`." +msgid ":ref:`TLSv1.1 and TLSv1.2 support ` for :mod:`ssl`." msgstr "" ":ref:`TLSv1.1 and TLSv1.2 support ` for :mod:`ssl`." @@ -295,11 +295,11 @@ msgstr "" #: ../../whatsnew/3.4.rst:151 msgid "" -":ref:`Server-side SNI (Server Name Indication) support ` for" -" :mod:`ssl`." +":ref:`Server-side SNI (Server Name Indication) support ` " +"for :mod:`ssl`." msgstr "" -":ref:`Server-side SNI (Server Name Indication) support ` for" -" :mod:`ssl`." +":ref:`Server-side SNI (Server Name Indication) support ` " +"for :mod:`ssl`." #: ../../whatsnew/3.4.rst:153 msgid "" @@ -312,14 +312,14 @@ msgstr "" #: ../../whatsnew/3.4.rst:155 msgid "" "All modules in the standard library that support SSL now support server " -"certificate verification, including hostname matching " -"(:func:`ssl.match_hostname`) and CRLs (Certificate Revocation lists, see " -":func:`ssl.SSLContext.load_verify_locations`)." +"certificate verification, including hostname matching (:func:`ssl." +"match_hostname`) and CRLs (Certificate Revocation lists, see :func:`ssl." +"SSLContext.load_verify_locations`)." msgstr "" "All modules in the standard library that support SSL now support server " -"certificate verification, including hostname matching " -"(:func:`ssl.match_hostname`) and CRLs (Certificate Revocation lists, see " -":func:`ssl.SSLContext.load_verify_locations`)." +"certificate verification, including hostname matching (:func:`ssl." +"match_hostname`) and CRLs (Certificate Revocation lists, see :func:`ssl." +"SSLContext.load_verify_locations`)." #: ../../whatsnew/3.4.rst:160 msgid "CPython implementation improvements:" @@ -339,8 +339,7 @@ msgstr "" #: ../../whatsnew/3.4.rst:165 msgid ":ref:`Configurable memory allocators ` (:pep:`445`)." -msgstr "" -":ref:`Configurable memory allocators ` (:pep:`445`)." +msgstr ":ref:`Configurable memory allocators ` (:pep:`445`)." #: ../../whatsnew/3.4.rst:166 msgid ":ref:`Argument Clinic ` (:pep:`436`)." @@ -372,15 +371,15 @@ msgstr "Bootstrapping pip By Default" msgid "" "The new :mod:`ensurepip` module (defined in :pep:`453`) provides a standard " "cross-platform mechanism to bootstrap the pip installer into Python " -"installations and virtual environments. The version of ``pip`` included with" -" Python 3.4.0 is ``pip`` 1.5.4, and future 3.4.x maintenance releases will " +"installations and virtual environments. The version of ``pip`` included with " +"Python 3.4.0 is ``pip`` 1.5.4, and future 3.4.x maintenance releases will " "update the bundled version to the latest version of ``pip`` that is " "available at the time of creating the release candidate." msgstr "" "The new :mod:`ensurepip` module (defined in :pep:`453`) provides a standard " "cross-platform mechanism to bootstrap the pip installer into Python " -"installations and virtual environments. The version of ``pip`` included with" -" Python 3.4.0 is ``pip`` 1.5.4, and future 3.4.x maintenance releases will " +"installations and virtual environments. The version of ``pip`` included with " +"Python 3.4.0 is ``pip`` 1.5.4, and future 3.4.x maintenance releases will " "update the bundled version to the latest version of ``pip`` that is " "available at the time of creating the release candidate." @@ -418,51 +417,51 @@ msgstr "" #: ../../whatsnew/3.4.rst:206 msgid "" -"For CPython :ref:`source builds on POSIX systems `," -" the ``make install`` and ``make altinstall`` commands bootstrap ``pip`` by " +"For CPython :ref:`source builds on POSIX systems `, " +"the ``make install`` and ``make altinstall`` commands bootstrap ``pip`` by " "default. This behaviour can be controlled through configure options, and " "overridden through Makefile options." msgstr "" -"For CPython :ref:`source builds on POSIX systems `," -" the ``make install`` and ``make altinstall`` commands bootstrap ``pip`` by " +"For CPython :ref:`source builds on POSIX systems `, " +"the ``make install`` and ``make altinstall`` commands bootstrap ``pip`` by " "default. This behaviour can be controlled through configure options, and " "overridden through Makefile options." #: ../../whatsnew/3.4.rst:211 msgid "" "On Windows and Mac OS X, the CPython installers now default to installing " -"``pip`` along with CPython itself (users may opt out of installing it during" -" the installation process). Window users will need to opt in to the " -"automatic ``PATH`` modifications to have ``pip`` available from the command " -"line by default, otherwise it can still be accessed through the Python " -"launcher for Windows as ``py -m pip``." +"``pip`` along with CPython itself (users may opt out of installing it during " +"the installation process). Window users will need to opt in to the automatic " +"``PATH`` modifications to have ``pip`` available from the command line by " +"default, otherwise it can still be accessed through the Python launcher for " +"Windows as ``py -m pip``." msgstr "" "On Windows and Mac OS X, the CPython installers now default to installing " -"``pip`` along with CPython itself (users may opt out of installing it during" -" the installation process). Window users will need to opt in to the " -"automatic ``PATH`` modifications to have ``pip`` available from the command " -"line by default, otherwise it can still be accessed through the Python " -"launcher for Windows as ``py -m pip``." +"``pip`` along with CPython itself (users may opt out of installing it during " +"the installation process). Window users will need to opt in to the automatic " +"``PATH`` modifications to have ``pip`` available from the command line by " +"default, otherwise it can still be accessed through the Python launcher for " +"Windows as ``py -m pip``." #: ../../whatsnew/3.4.rst:218 msgid "" "As `discussed in the PEP`__, platform packagers may choose not to install " "these commands by default, as long as, when invoked, they provide clear and " -"simple directions on how to install them on that platform (usually using the" -" system package manager)." +"simple directions on how to install them on that platform (usually using the " +"system package manager)." msgstr "" "As `discussed in the PEP`__, platform packagers may choose not to install " "these commands by default, as long as, when invoked, they provide clear and " -"simple directions on how to install them on that platform (usually using the" -" system package manager)." +"simple directions on how to install them on that platform (usually using the " +"system package manager)." #: ../../whatsnew/3.4.rst:227 msgid "" "To avoid conflicts between parallel Python 2 and Python 3 installations, " "only the versioned ``pip3`` and ``pip3.4`` commands are bootstrapped by " "default when ``ensurepip`` is invoked directly - the ``--default-pip`` " -"option is needed to also request the unversioned ``pip`` command. ``pyvenv``" -" and the Windows installer ensure that the unqualified ``pip`` command is " +"option is needed to also request the unversioned ``pip`` command. ``pyvenv`` " +"and the Windows installer ensure that the unqualified ``pip`` command is " "made available in those environments, and ``pip`` can always be invoked via " "the ``-m`` switch rather than directly to avoid ambiguity on systems with " "multiple Python installations." @@ -470,8 +469,8 @@ msgstr "" "To avoid conflicts between parallel Python 2 and Python 3 installations, " "only the versioned ``pip3`` and ``pip3.4`` commands are bootstrapped by " "default when ``ensurepip`` is invoked directly - the ``--default-pip`` " -"option is needed to also request the unversioned ``pip`` command. ``pyvenv``" -" and the Windows installer ensure that the unqualified ``pip`` command is " +"option is needed to also request the unversioned ``pip`` command. ``pyvenv`` " +"and the Windows installer ensure that the unqualified ``pip`` command is " "made available in those environments, and ``pip`` can always be invoked via " "the ``-m`` switch rather than directly to avoid ambiguity on systems with " "multiple Python installations." @@ -486,25 +485,25 @@ msgid "" "index` sections of the documentation have been completely redesigned as " "short getting started and FAQ documents. Most packaging documentation has " "now been moved out to the Python Packaging Authority maintained `Python " -"Packaging User Guide `__ and the documentation" -" of the individual projects." +"Packaging User Guide `__ and the documentation " +"of the individual projects." msgstr "" "As part of this change, the :ref:`installing-index` and :ref:`distributing-" "index` sections of the documentation have been completely redesigned as " "short getting started and FAQ documents. Most packaging documentation has " "now been moved out to the Python Packaging Authority maintained `Python " -"Packaging User Guide `__ and the documentation" -" of the individual projects." +"Packaging User Guide `__ and the documentation " +"of the individual projects." #: ../../whatsnew/3.4.rst:248 msgid "" "However, as this migration is currently still incomplete, the legacy " -"versions of those guides remaining available as :ref:`install-index` and " -":ref:`distutils-index`." +"versions of those guides remaining available as :ref:`install-index` and :" +"ref:`distutils-index`." msgstr "" "However, as this migration is currently still incomplete, the legacy " -"versions of those guides remaining available as :ref:`install-index` and " -":ref:`distutils-index`." +"versions of those guides remaining available as :ref:`install-index` and :" +"ref:`distutils-index`." #: ../../whatsnew/3.4.rst:255 msgid ":pep:`453` -- Explicit bootstrapping of pip in Python installations" @@ -512,11 +511,11 @@ msgstr ":pep:`453` -- Explicit bootstrapping of pip in Python installations" #: ../../whatsnew/3.4.rst:255 msgid "" -"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft," -" Nick Coghlan, Martin von Löwis and Ned Deily." +"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, " +"Nick Coghlan, Martin von Löwis and Ned Deily." msgstr "" -"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft," -" Nick Coghlan, Martin von Löwis and Ned Deily." +"PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, " +"Nick Coghlan, Martin von Löwis and Ned Deily." #: ../../whatsnew/3.4.rst:262 msgid "PEP 446: Newly Created File Descriptors Are Non-Inheritable" @@ -526,15 +525,15 @@ msgstr "PEP 446: Newly Created File Descriptors Are Non-Inheritable" msgid "" ":pep:`446` makes newly created file descriptors :ref:`non-inheritable " "`. In general, this is the behavior an application will " -"want: when launching a new process, having currently open files also open in" -" the new process can lead to all sorts of hard to find bugs, and potentially" -" to security issues." +"want: when launching a new process, having currently open files also open in " +"the new process can lead to all sorts of hard to find bugs, and potentially " +"to security issues." msgstr "" ":pep:`446` makes newly created file descriptors :ref:`non-inheritable " "`. In general, this is the behavior an application will " -"want: when launching a new process, having currently open files also open in" -" the new process can lead to all sorts of hard to find bugs, and potentially" -" to security issues." +"want: when launching a new process, having currently open files also open in " +"the new process can lead to all sorts of hard to find bugs, and potentially " +"to security issues." #: ../../whatsnew/3.4.rst:270 msgid "" @@ -586,30 +585,30 @@ msgstr "" #: ../../whatsnew/3.4.rst:295 msgid "" -"As a key step in clarifying the situation, the :meth:`codecs.encode` and " -":meth:`codecs.decode` convenience functions are now properly documented in " +"As a key step in clarifying the situation, the :meth:`codecs.encode` and :" +"meth:`codecs.decode` convenience functions are now properly documented in " "Python 2.7, 3.3 and 3.4. These functions have existed in the :mod:`codecs` " "module (and have been covered by the regression test suite) since Python " "2.4, but were previously only discoverable through runtime introspection." msgstr "" -"As a key step in clarifying the situation, the :meth:`codecs.encode` and " -":meth:`codecs.decode` convenience functions are now properly documented in " +"As a key step in clarifying the situation, the :meth:`codecs.encode` and :" +"meth:`codecs.decode` convenience functions are now properly documented in " "Python 2.7, 3.3 and 3.4. These functions have existed in the :mod:`codecs` " "module (and have been covered by the regression test suite) since Python " "2.4, but were previously only discoverable through runtime introspection." #: ../../whatsnew/3.4.rst:301 msgid "" -"Unlike the convenience methods on :class:`str`, :class:`bytes` and " -":class:`bytearray`, the :mod:`codecs` convenience functions support " -"arbitrary codecs in both Python 2 and Python 3, rather than being limited to" -" Unicode text encodings (in Python 3) or ``basestring`` <-> ``basestring`` " +"Unlike the convenience methods on :class:`str`, :class:`bytes` and :class:" +"`bytearray`, the :mod:`codecs` convenience functions support arbitrary " +"codecs in both Python 2 and Python 3, rather than being limited to Unicode " +"text encodings (in Python 3) or ``basestring`` <-> ``basestring`` " "conversions (in Python 2)." msgstr "" -"Unlike the convenience methods on :class:`str`, :class:`bytes` and " -":class:`bytearray`, the :mod:`codecs` convenience functions support " -"arbitrary codecs in both Python 2 and Python 3, rather than being limited to" -" Unicode text encodings (in Python 3) or ``basestring`` <-> ``basestring`` " +"Unlike the convenience methods on :class:`str`, :class:`bytes` and :class:" +"`bytearray`, the :mod:`codecs` convenience functions support arbitrary " +"codecs in both Python 2 and Python 3, rather than being limited to Unicode " +"text encodings (in Python 3) or ``basestring`` <-> ``basestring`` " "conversions (in Python 2)." #: ../../whatsnew/3.4.rst:307 @@ -625,13 +624,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:326 msgid "" "In a related change, whenever it is feasible without breaking backwards " -"compatibility, exceptions raised during encoding and decoding operations are" -" wrapped in a chained exception of the same type that mentions the name of " +"compatibility, exceptions raised during encoding and decoding operations are " +"wrapped in a chained exception of the same type that mentions the name of " "the codec responsible for producing the error::" msgstr "" "In a related change, whenever it is feasible without breaking backwards " -"compatibility, exceptions raised during encoding and decoding operations are" -" wrapped in a chained exception of the same type that mentions the name of " +"compatibility, exceptions raised during encoding and decoding operations are " +"wrapped in a chained exception of the same type that mentions the name of " "the codec responsible for producing the error::" #: ../../whatsnew/3.4.rst:359 @@ -639,30 +638,28 @@ msgid "" "Finally, as the examples above show, these improvements have permitted the " "restoration of the convenience aliases for the non-Unicode codecs that were " "themselves restored in Python 3.2. This means that encoding binary data to " -"and from its hexadecimal representation (for example) can now be written " -"as::" +"and from its hexadecimal representation (for example) can now be written as::" msgstr "" "Finally, as the examples above show, these improvements have permitted the " "restoration of the convenience aliases for the non-Unicode codecs that were " "themselves restored in Python 3.2. This means that encoding binary data to " -"and from its hexadecimal representation (for example) can now be written " -"as::" +"and from its hexadecimal representation (for example) can now be written as::" #: ../../whatsnew/3.4.rst:371 msgid "" -"The binary and text transforms provided in the standard library are detailed" -" in :ref:`binary-transforms` and :ref:`text-transforms`." +"The binary and text transforms provided in the standard library are detailed " +"in :ref:`binary-transforms` and :ref:`text-transforms`." msgstr "" -"The binary and text transforms provided in the standard library are detailed" -" in :ref:`binary-transforms` and :ref:`text-transforms`." +"The binary and text transforms provided in the standard library are detailed " +"in :ref:`binary-transforms` and :ref:`text-transforms`." #: ../../whatsnew/3.4.rst:374 msgid "" -"(Contributed by Nick Coghlan in :issue:`7475`, :issue:`17827`, " -":issue:`17828` and :issue:`19619`.)" +"(Contributed by Nick Coghlan in :issue:`7475`, :issue:`17827`, :issue:" +"`17828` and :issue:`19619`.)" msgstr "" -"(Contributed by Nick Coghlan in :issue:`7475`, :issue:`17827`, " -":issue:`17828` and :issue:`19619`.)" +"(Contributed by Nick Coghlan in :issue:`7475`, :issue:`17827`, :issue:" +"`17828` and :issue:`19619`.)" #: ../../whatsnew/3.4.rst:381 msgid "PEP 451: A ModuleSpec Type for the Import System" @@ -671,16 +668,16 @@ msgstr "PEP 451: A ModuleSpec Type for the Import System" #: ../../whatsnew/3.4.rst:383 msgid "" ":pep:`451` provides an encapsulation of the information about a module that " -"the import machinery will use to load it (that is, a module specification)." -" This helps simplify both the import implementation and several import-" -"related APIs. The change is also a stepping stone for `several future " -"import-related improvements`__." +"the import machinery will use to load it (that is, a module specification). " +"This helps simplify both the import implementation and several import-" +"related APIs. The change is also a stepping stone for `several future import-" +"related improvements`__." msgstr "" ":pep:`451` provides an encapsulation of the information about a module that " -"the import machinery will use to load it (that is, a module specification)." -" This helps simplify both the import implementation and several import-" -"related APIs. The change is also a stepping stone for `several future " -"import-related improvements`__." +"the import machinery will use to load it (that is, a module specification). " +"This helps simplify both the import implementation and several import-" +"related APIs. The change is also a stepping stone for `several future import-" +"related improvements`__." #: ../../whatsnew/3.4.rst:391 msgid "" @@ -688,16 +685,16 @@ msgid "" "Furthermore, they should be transparent to everyone but importer authors. " "Key finder and loader methods have been deprecated, but they will continue " "working. New importers should use the new methods described in the PEP. " -"Existing importers should be updated to implement the new methods. See the " -":ref:`deprecated-3.4` section for a list of methods that should be replaced " +"Existing importers should be updated to implement the new methods. See the :" +"ref:`deprecated-3.4` section for a list of methods that should be replaced " "and their replacements." msgstr "" "The public-facing changes from the PEP are entirely backward-compatible. " "Furthermore, they should be transparent to everyone but importer authors. " "Key finder and loader methods have been deprecated, but they will continue " "working. New importers should use the new methods described in the PEP. " -"Existing importers should be updated to implement the new methods. See the " -":ref:`deprecated-3.4` section for a list of methods that should be replaced " +"Existing importers should be updated to implement the new methods. See the :" +"ref:`deprecated-3.4` section for a list of methods that should be replaced " "and their replacements." #: ../../whatsnew/3.4.rst:401 @@ -716,13 +713,13 @@ msgstr "Unicode database updated to UCD version 6.3." msgid "" ":func:`min` and :func:`max` now accept a *default* keyword-only argument " "that can be used to specify the value they return if the iterable they are " -"evaluating has no elements. (Contributed by Julian Berman in " -":issue:`18111`.)" +"evaluating has no elements. (Contributed by Julian Berman in :issue:" +"`18111`.)" msgstr "" ":func:`min` and :func:`max` now accept a *default* keyword-only argument " "that can be used to specify the value they return if the iterable they are " -"evaluating has no elements. (Contributed by Julian Berman in " -":issue:`18111`.)" +"evaluating has no elements. (Contributed by Julian Berman in :issue:" +"`18111`.)" #: ../../whatsnew/3.4.rst:412 msgid "Module objects are now :mod:`weakref`'able." @@ -731,14 +728,14 @@ msgstr "Module objects are now :mod:`weakref`'able." #: ../../whatsnew/3.4.rst:414 msgid "" "Module ``__file__`` attributes (and related values) should now always " -"contain absolute paths by default, with the sole exception of " -"``__main__.__file__`` when a script has been executed directly using a " -"relative path. (Contributed by Brett Cannon in :issue:`18416`.)" +"contain absolute paths by default, with the sole exception of ``__main__." +"__file__`` when a script has been executed directly using a relative path. " +"(Contributed by Brett Cannon in :issue:`18416`.)" msgstr "" "Module ``__file__`` attributes (and related values) should now always " -"contain absolute paths by default, with the sole exception of " -"``__main__.__file__`` when a script has been executed directly using a " -"relative path. (Contributed by Brett Cannon in :issue:`18416`.)" +"contain absolute paths by default, with the sole exception of ``__main__." +"__file__`` when a script has been executed directly using a relative path. " +"(Contributed by Brett Cannon in :issue:`18416`.)" #: ../../whatsnew/3.4.rst:419 msgid "" @@ -758,29 +755,29 @@ msgstr "" #: ../../whatsnew/3.4.rst:426 msgid "" -"New German EBCDIC :ref:`codec ` ``cp273``. (Contributed" -" by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)" +"New German EBCDIC :ref:`codec ` ``cp273``. (Contributed " +"by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)" msgstr "" -"New German EBCDIC :ref:`codec ` ``cp273``. (Contributed" -" by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)" +"New German EBCDIC :ref:`codec ` ``cp273``. (Contributed " +"by Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)" #: ../../whatsnew/3.4.rst:429 msgid "" -"New Ukrainian :ref:`codec ` ``cp1125``. (Contributed by" -" Serhiy Storchaka in :issue:`19668`.)" +"New Ukrainian :ref:`codec ` ``cp1125``. (Contributed by " +"Serhiy Storchaka in :issue:`19668`.)" msgstr "" -"New Ukrainian :ref:`codec ` ``cp1125``. (Contributed by" -" Serhiy Storchaka in :issue:`19668`.)" +"New Ukrainian :ref:`codec ` ``cp1125``. (Contributed by " +"Serhiy Storchaka in :issue:`19668`.)" #: ../../whatsnew/3.4.rst:432 msgid "" ":class:`bytes`.join() and :class:`bytearray`.join() now accept arbitrary " -"buffer objects as arguments. (Contributed by Antoine Pitrou in " -":issue:`15958`.)" +"buffer objects as arguments. (Contributed by Antoine Pitrou in :issue:" +"`15958`.)" msgstr "" ":class:`bytes`.join() and :class:`bytearray`.join() now accept arbitrary " -"buffer objects as arguments. (Contributed by Antoine Pitrou in " -":issue:`15958`.)" +"buffer objects as arguments. (Contributed by Antoine Pitrou in :issue:" +"`15958`.)" #: ../../whatsnew/3.4.rst:436 msgid "" @@ -804,13 +801,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:444 msgid "" -":class:`memoryview` is now registered as a :class:`Sequence " -"`, and supports the :func:`reversed` builtin. (Contributed" -" by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.)" +":class:`memoryview` is now registered as a :class:`Sequence `, and supports the :func:`reversed` builtin. (Contributed by Nick " +"Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.)" msgstr "" -":class:`memoryview` is now registered as a :class:`Sequence " -"`, and supports the :func:`reversed` builtin. (Contributed" -" by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.)" +":class:`memoryview` is now registered as a :class:`Sequence `, and supports the :func:`reversed` builtin. (Contributed by Nick " +"Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.)" #: ../../whatsnew/3.4.rst:448 msgid "" @@ -825,12 +822,12 @@ msgstr "" #: ../../whatsnew/3.4.rst:452 msgid "" ":meth:`~object.__length_hint__` is now part of the formal language " -"specification (see :pep:`424`). (Contributed by Armin Ronacher in " -":issue:`16148`.)" +"specification (see :pep:`424`). (Contributed by Armin Ronacher in :issue:" +"`16148`.)" msgstr "" ":meth:`~object.__length_hint__` is now part of the formal language " -"specification (see :pep:`424`). (Contributed by Armin Ronacher in " -":issue:`16148`.)" +"specification (see :pep:`424`). (Contributed by Armin Ronacher in :issue:" +"`16148`.)" #: ../../whatsnew/3.4.rst:458 msgid "New Modules" @@ -858,7 +855,8 @@ msgstr "For Python 3.4, this module is considered a :term:`provisional API`." #: ../../whatsnew/3.4.rst:475 msgid ":pep:`3156` -- Asynchronous IO Support Rebooted: the \"asyncio\" Module" -msgstr ":pep:`3156` -- Asynchronous IO Support Rebooted: the \"asyncio\" Module" +msgstr "" +":pep:`3156` -- Asynchronous IO Support Rebooted: the \"asyncio\" Module" #: ../../whatsnew/3.4.rst:476 msgid "PEP written and implementation led by Guido van Rossum." @@ -870,17 +868,17 @@ msgstr "ensurepip" #: ../../whatsnew/3.4.rst:484 msgid "" -"The new :mod:`ensurepip` module is the primary infrastructure for the " -":pep:`453` implementation. In the normal course of events end users will " -"not need to interact with this module, but it can be used to manually " -"bootstrap ``pip`` if the automated bootstrapping into an installation or " -"virtual environment was declined." +"The new :mod:`ensurepip` module is the primary infrastructure for the :pep:" +"`453` implementation. In the normal course of events end users will not " +"need to interact with this module, but it can be used to manually bootstrap " +"``pip`` if the automated bootstrapping into an installation or virtual " +"environment was declined." msgstr "" -"The new :mod:`ensurepip` module is the primary infrastructure for the " -":pep:`453` implementation. In the normal course of events end users will " -"not need to interact with this module, but it can be used to manually " -"bootstrap ``pip`` if the automated bootstrapping into an installation or " -"virtual environment was declined." +"The new :mod:`ensurepip` module is the primary infrastructure for the :pep:" +"`453` implementation. In the normal course of events end users will not " +"need to interact with this module, but it can be used to manually bootstrap " +"``pip`` if the automated bootstrapping into an installation or virtual " +"environment was declined." #: ../../whatsnew/3.4.rst:490 msgid "" @@ -904,13 +902,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:499 msgid "" -"The module is named *ensure*\\ pip because if called when ``pip`` is already" -" installed, it does nothing. It also has an ``--upgrade`` option that will " +"The module is named *ensure*\\ pip because if called when ``pip`` is already " +"installed, it does nothing. It also has an ``--upgrade`` option that will " "cause it to install the bundled copy of ``pip`` if the existing installed " "version of ``pip`` is older than the bundled copy." msgstr "" -"The module is named *ensure*\\ pip because if called when ``pip`` is already" -" installed, it does nothing. It also has an ``--upgrade`` option that will " +"The module is named *ensure*\\ pip because if called when ``pip`` is already " +"installed, it does nothing. It also has an ``--upgrade`` option that will " "cause it to install the bundled copy of ``pip`` if the existing installed " "version of ``pip`` is older than the bundled copy." @@ -921,16 +919,16 @@ msgstr "enum" #: ../../whatsnew/3.4.rst:510 msgid "" "The new :mod:`enum` module (defined in :pep:`435`) provides a standard " -"implementation of enumeration types, allowing other modules (such as " -":mod:`socket`) to provide more informative error messages and better " -"debugging support by replacing opaque integer constants with backwards " -"compatible enumeration values." +"implementation of enumeration types, allowing other modules (such as :mod:" +"`socket`) to provide more informative error messages and better debugging " +"support by replacing opaque integer constants with backwards compatible " +"enumeration values." msgstr "" "The new :mod:`enum` module (defined in :pep:`435`) provides a standard " -"implementation of enumeration types, allowing other modules (such as " -":mod:`socket`) to provide more informative error messages and better " -"debugging support by replacing opaque integer constants with backwards " -"compatible enumeration values." +"implementation of enumeration types, allowing other modules (such as :mod:" +"`socket`) to provide more informative error messages and better debugging " +"support by replacing opaque integer constants with backwards compatible " +"enumeration values." #: ../../whatsnew/3.4.rst:519 msgid ":pep:`435` -- Adding an Enum type to the Python standard library" @@ -976,13 +974,13 @@ msgstr "Seletores" #: ../../whatsnew/3.4.rst:547 msgid "" -"The new :mod:`selectors` module (created as part of implementing " -":pep:`3156`) allows high-level and efficient I/O multiplexing, built upon " -"the :mod:`select` module primitives." +"The new :mod:`selectors` module (created as part of implementing :pep:" +"`3156`) allows high-level and efficient I/O multiplexing, built upon the :" +"mod:`select` module primitives." msgstr "" -"The new :mod:`selectors` module (created as part of implementing " -":pep:`3156`) allows high-level and efficient I/O multiplexing, built upon " -"the :mod:`select` module primitives." +"The new :mod:`selectors` module (created as part of implementing :pep:" +"`3156`) allows high-level and efficient I/O multiplexing, built upon the :" +"mod:`select` module primitives." #: ../../whatsnew/3.4.rst:555 msgid "statistics" @@ -1014,12 +1012,12 @@ msgstr "tracemalloc" #: ../../whatsnew/3.4.rst:573 msgid "" -"The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to" -" trace memory blocks allocated by Python. It provides the following " +"The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to " +"trace memory blocks allocated by Python. It provides the following " "information:" msgstr "" -"The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to" -" trace memory blocks allocated by Python. It provides the following " +"The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to " +"trace memory blocks allocated by Python. It provides the following " "information:" #: ../../whatsnew/3.4.rst:576 @@ -1040,11 +1038,9 @@ msgstr "Compute the differences between two snapshots to detect memory leaks" #: ../../whatsnew/3.4.rst:583 msgid "" -":pep:`454` -- Add a new tracemalloc module to trace Python memory " -"allocations" +":pep:`454` -- Add a new tracemalloc module to trace Python memory allocations" msgstr "" -":pep:`454` -- Add a new tracemalloc module to trace Python memory " -"allocations" +":pep:`454` -- Add a new tracemalloc module to trace Python memory allocations" #: ../../whatsnew/3.4.rst:584 msgid "PEP written and implemented by Victor Stinner" @@ -1086,23 +1082,23 @@ msgstr "aifc" #: ../../whatsnew/3.4.rst:608 msgid "" -"The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than" -" a plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)" +"The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than " +"a plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)" msgstr "" -"The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than" -" a plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)" +"The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than " +"a plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)" #: ../../whatsnew/3.4.rst:611 msgid "" -":func:`aifc.open` now supports the context management protocol: when used in" -" a :keyword:`with` block, the :meth:`~aifc.aifc.close` method of the " -"returned object will be called automatically at the end of the block. " -"(Contributed by Serhiy Storchacha in :issue:`16486`.)" +":func:`aifc.open` now supports the context management protocol: when used in " +"a :keyword:`with` block, the :meth:`~aifc.aifc.close` method of the returned " +"object will be called automatically at the end of the block. (Contributed " +"by Serhiy Storchacha in :issue:`16486`.)" msgstr "" -":func:`aifc.open` now supports the context management protocol: when used in" -" a :keyword:`with` block, the :meth:`~aifc.aifc.close` method of the " -"returned object will be called automatically at the end of the block. " -"(Contributed by Serhiy Storchacha in :issue:`16486`.)" +":func:`aifc.open` now supports the context management protocol: when used in " +"a :keyword:`with` block, the :meth:`~aifc.aifc.close` method of the returned " +"object will be called automatically at the end of the block. (Contributed " +"by Serhiy Storchacha in :issue:`16486`.)" #: ../../whatsnew/3.4.rst:616 msgid "" @@ -1142,13 +1138,11 @@ msgstr "" #: ../../whatsnew/3.4.rst:635 msgid "" -"New :func:`~audioop.byteswap` function converts big-endian samples to " -"little-endian and vice versa. (Contributed by Serhiy Storchaka in " -":issue:`19641`.)" +"New :func:`~audioop.byteswap` function converts big-endian samples to little-" +"endian and vice versa. (Contributed by Serhiy Storchaka in :issue:`19641`.)" msgstr "" -"New :func:`~audioop.byteswap` function converts big-endian samples to " -"little-endian and vice versa. (Contributed by Serhiy Storchaka in " -":issue:`19641`.)" +"New :func:`~audioop.byteswap` function converts big-endian samples to little-" +"endian and vice versa. (Contributed by Serhiy Storchaka in :issue:`19641`.)" #: ../../whatsnew/3.4.rst:639 msgid "" @@ -1166,35 +1160,33 @@ msgstr "base64" #: ../../whatsnew/3.4.rst:647 msgid "" -"The encoding and decoding functions in :mod:`base64` now accept any :term" -":`bytes-like object` in cases where it previously required a :class:`bytes` " -"or :class:`bytearray` instance. (Contributed by Nick Coghlan in " -":issue:`17839`.)" +"The encoding and decoding functions in :mod:`base64` now accept any :term:" +"`bytes-like object` in cases where it previously required a :class:`bytes` " +"or :class:`bytearray` instance. (Contributed by Nick Coghlan in :issue:" +"`17839`.)" msgstr "" -"The encoding and decoding functions in :mod:`base64` now accept any :term" -":`bytes-like object` in cases where it previously required a :class:`bytes` " -"or :class:`bytearray` instance. (Contributed by Nick Coghlan in " -":issue:`17839`.)" +"The encoding and decoding functions in :mod:`base64` now accept any :term:" +"`bytes-like object` in cases where it previously required a :class:`bytes` " +"or :class:`bytearray` instance. (Contributed by Nick Coghlan in :issue:" +"`17839`.)" #: ../../whatsnew/3.4.rst:652 msgid "" -"New functions :func:`~base64.a85encode`, :func:`~base64.a85decode`, " -":func:`~base64.b85encode`, and :func:`~base64.b85decode` provide the ability" -" to encode and decode binary data from and to ``Ascii85`` and the " -"git/mercurial ``Base85`` formats, respectively. The ``a85`` functions have " -"options that can be used to make them compatible with the variants of the " -"``Ascii85`` encoding, including the Adobe variant. (Contributed by Martin " -"Morrison, the Mercurial project, Serhiy Storchaka, and Antoine Pitrou in " -":issue:`17618`.)" -msgstr "" -"New functions :func:`~base64.a85encode`, :func:`~base64.a85decode`, " -":func:`~base64.b85encode`, and :func:`~base64.b85decode` provide the ability" -" to encode and decode binary data from and to ``Ascii85`` and the " -"git/mercurial ``Base85`` formats, respectively. The ``a85`` functions have " -"options that can be used to make them compatible with the variants of the " -"``Ascii85`` encoding, including the Adobe variant. (Contributed by Martin " -"Morrison, the Mercurial project, Serhiy Storchaka, and Antoine Pitrou in " -":issue:`17618`.)" +"New functions :func:`~base64.a85encode`, :func:`~base64.a85decode`, :func:" +"`~base64.b85encode`, and :func:`~base64.b85decode` provide the ability to " +"encode and decode binary data from and to ``Ascii85`` and the git/mercurial " +"``Base85`` formats, respectively. The ``a85`` functions have options that " +"can be used to make them compatible with the variants of the ``Ascii85`` " +"encoding, including the Adobe variant. (Contributed by Martin Morrison, the " +"Mercurial project, Serhiy Storchaka, and Antoine Pitrou in :issue:`17618`.)" +msgstr "" +"New functions :func:`~base64.a85encode`, :func:`~base64.a85decode`, :func:" +"`~base64.b85encode`, and :func:`~base64.b85decode` provide the ability to " +"encode and decode binary data from and to ``Ascii85`` and the git/mercurial " +"``Base85`` formats, respectively. The ``a85`` functions have options that " +"can be used to make them compatible with the variants of the ``Ascii85`` " +"encoding, including the Adobe variant. (Contributed by Martin Morrison, the " +"Mercurial project, Serhiy Storchaka, and Antoine Pitrou in :issue:`17618`.)" #: ../../whatsnew/3.4.rst:662 msgid "collections" @@ -1204,13 +1196,13 @@ msgstr "collections" msgid "" "The :meth:`.ChainMap.new_child` method now accepts an *m* argument " "specifying the child map to add to the chain. This allows an existing " -"mapping and/or a custom mapping type to be used for the child. (Contributed" -" by Vinay Sajip in :issue:`16613`.)" +"mapping and/or a custom mapping type to be used for the child. (Contributed " +"by Vinay Sajip in :issue:`16613`.)" msgstr "" "The :meth:`.ChainMap.new_child` method now accepts an *m* argument " "specifying the child map to add to the chain. This allows an existing " -"mapping and/or a custom mapping type to be used for the child. (Contributed" -" by Vinay Sajip in :issue:`16613`.)" +"mapping and/or a custom mapping type to be used for the child. (Contributed " +"by Vinay Sajip in :issue:`16613`.)" #: ../../whatsnew/3.4.rst:671 msgid "colorsys" @@ -1220,13 +1212,13 @@ msgstr "colorsys" msgid "" "The number of digits in the coefficients for the RGB --- YIQ conversions " "have been expanded so that they match the FCC NTSC versions. The change in " -"results should be less than 1% and may better match results found elsewhere." -" (Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)" +"results should be less than 1% and may better match results found elsewhere. " +"(Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)" msgstr "" "The number of digits in the coefficients for the RGB --- YIQ conversions " "have been expanded so that they match the FCC NTSC versions. The change in " -"results should be less than 1% and may better match results found elsewhere." -" (Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)" +"results should be less than 1% and may better match results found elsewhere. " +"(Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)" #: ../../whatsnew/3.4.rst:680 msgid "contextlib" @@ -1247,34 +1239,34 @@ msgstr "" #: ../../whatsnew/3.4.rst:687 msgid "" "The new :func:`contextlib.redirect_stdout` context manager makes it easier " -"for utility scripts to handle inflexible APIs that write their output to " -":data:`sys.stdout` and don't provide any options to redirect it. Using the " +"for utility scripts to handle inflexible APIs that write their output to :" +"data:`sys.stdout` and don't provide any options to redirect it. Using the " "context manager, the :data:`sys.stdout` output can be redirected to any " "other stream or, in conjunction with :class:`io.StringIO`, to a string. The " "latter can be especially useful, for example, to capture output from a " "function that was written to implement a command line interface. It is " -"recommended only for utility scripts because it affects the global state of " -":data:`sys.stdout`. (Contributed by Raymond Hettinger in :issue:`15805`.)" +"recommended only for utility scripts because it affects the global state of :" +"data:`sys.stdout`. (Contributed by Raymond Hettinger in :issue:`15805`.)" msgstr "" "The new :func:`contextlib.redirect_stdout` context manager makes it easier " -"for utility scripts to handle inflexible APIs that write their output to " -":data:`sys.stdout` and don't provide any options to redirect it. Using the " +"for utility scripts to handle inflexible APIs that write their output to :" +"data:`sys.stdout` and don't provide any options to redirect it. Using the " "context manager, the :data:`sys.stdout` output can be redirected to any " "other stream or, in conjunction with :class:`io.StringIO`, to a string. The " "latter can be especially useful, for example, to capture output from a " "function that was written to implement a command line interface. It is " -"recommended only for utility scripts because it affects the global state of " -":data:`sys.stdout`. (Contributed by Raymond Hettinger in :issue:`15805`.)" +"recommended only for utility scripts because it affects the global state of :" +"data:`sys.stdout`. (Contributed by Raymond Hettinger in :issue:`15805`.)" #: ../../whatsnew/3.4.rst:698 msgid "" -"The :mod:`contextlib` documentation has also been updated to include a " -":ref:`discussion ` of the differences" -" between single use, reusable and reentrant context managers." +"The :mod:`contextlib` documentation has also been updated to include a :ref:" +"`discussion ` of the differences " +"between single use, reusable and reentrant context managers." msgstr "" -"The :mod:`contextlib` documentation has also been updated to include a " -":ref:`discussion ` of the differences" -" between single use, reusable and reentrant context managers." +"The :mod:`contextlib` documentation has also been updated to include a :ref:" +"`discussion ` of the differences " +"between single use, reusable and reentrant context managers." #: ../../whatsnew/3.4.rst:704 msgid "dbm" @@ -1298,37 +1290,37 @@ msgstr "dis" #: ../../whatsnew/3.4.rst:715 msgid "" -"Functions :func:`~dis.show_code`, :func:`~dis.dis`, :func:`~dis.distb`, and " -":func:`~dis.disassemble` now accept a keyword-only *file* argument that " +"Functions :func:`~dis.show_code`, :func:`~dis.dis`, :func:`~dis.distb`, and :" +"func:`~dis.disassemble` now accept a keyword-only *file* argument that " "controls where they write their output." msgstr "" -"Functions :func:`~dis.show_code`, :func:`~dis.dis`, :func:`~dis.distb`, and " -":func:`~dis.disassemble` now accept a keyword-only *file* argument that " +"Functions :func:`~dis.show_code`, :func:`~dis.dis`, :func:`~dis.distb`, and :" +"func:`~dis.disassemble` now accept a keyword-only *file* argument that " "controls where they write their output." #: ../../whatsnew/3.4.rst:719 msgid "" -"The :mod:`dis` module is now built around an :class:`~dis.Instruction` class" -" that provides object oriented access to the details of each individual " +"The :mod:`dis` module is now built around an :class:`~dis.Instruction` class " +"that provides object oriented access to the details of each individual " "bytecode operation." msgstr "" -"The :mod:`dis` module is now built around an :class:`~dis.Instruction` class" -" that provides object oriented access to the details of each individual " +"The :mod:`dis` module is now built around an :class:`~dis.Instruction` class " +"that provides object oriented access to the details of each individual " "bytecode operation." #: ../../whatsnew/3.4.rst:723 msgid "" -"A new method, :func:`~dis.get_instructions`, provides an iterator that emits" -" the Instruction stream for a given piece of Python code. Thus it is now " +"A new method, :func:`~dis.get_instructions`, provides an iterator that emits " +"the Instruction stream for a given piece of Python code. Thus it is now " "possible to write a program that inspects and manipulates a bytecode object " -"in ways different from those provided by the :mod:`~dis` module itself. For" -" example::" +"in ways different from those provided by the :mod:`~dis` module itself. For " +"example::" msgstr "" -"A new method, :func:`~dis.get_instructions`, provides an iterator that emits" -" the Instruction stream for a given piece of Python code. Thus it is now " +"A new method, :func:`~dis.get_instructions`, provides an iterator that emits " +"the Instruction stream for a given piece of Python code. Thus it is now " "possible to write a program that inspects and manipulates a bytecode object " -"in ways different from those provided by the :mod:`~dis` module itself. For" -" example::" +"in ways different from those provided by the :mod:`~dis` module itself. For " +"example::" #: ../../whatsnew/3.4.rst:737 msgid "" @@ -1342,45 +1334,41 @@ msgstr "" msgid "" "In addition, a new application-friendly class :class:`~dis.Bytecode` " "provides an object-oriented API for inspecting bytecode in both in human-" -"readable form and for iterating over instructions. The " -":class:`~dis.Bytecode` constructor takes the same arguments that " -":func:`~dis.get_instruction` does (plus an optional *current_offset*), and " -"the resulting object can be iterated to produce :class:`~dis.Instruction` " -"objects. But it also has a :mod:`~dis.Bytecode.dis` method, equivalent to " -"calling :mod:`~dis.dis` on the constructor argument, but returned as a " -"multi-line string::" +"readable form and for iterating over instructions. The :class:`~dis." +"Bytecode` constructor takes the same arguments that :func:`~dis." +"get_instruction` does (plus an optional *current_offset*), and the resulting " +"object can be iterated to produce :class:`~dis.Instruction` objects. But it " +"also has a :mod:`~dis.Bytecode.dis` method, equivalent to calling :mod:`~dis." +"dis` on the constructor argument, but returned as a multi-line string::" msgstr "" "In addition, a new application-friendly class :class:`~dis.Bytecode` " "provides an object-oriented API for inspecting bytecode in both in human-" -"readable form and for iterating over instructions. The " -":class:`~dis.Bytecode` constructor takes the same arguments that " -":func:`~dis.get_instruction` does (plus an optional *current_offset*), and " -"the resulting object can be iterated to produce :class:`~dis.Instruction` " -"objects. But it also has a :mod:`~dis.Bytecode.dis` method, equivalent to " -"calling :mod:`~dis.dis` on the constructor argument, but returned as a " -"multi-line string::" +"readable form and for iterating over instructions. The :class:`~dis." +"Bytecode` constructor takes the same arguments that :func:`~dis." +"get_instruction` does (plus an optional *current_offset*), and the resulting " +"object can be iterated to produce :class:`~dis.Instruction` objects. But it " +"also has a :mod:`~dis.Bytecode.dis` method, equivalent to calling :mod:`~dis." +"dis` on the constructor argument, but returned as a multi-line string::" #: ../../whatsnew/3.4.rst:762 msgid "" -":class:`~dis.Bytecode` also has a class method, " -":meth:`~dis.Bytecode.from_traceback`, that provides the ability to " -"manipulate a traceback (that is, " -"``print(Bytecode.from_traceback(tb).dis())`` is equivalent to " +":class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode." +"from_traceback`, that provides the ability to manipulate a traceback (that " +"is, ``print(Bytecode.from_traceback(tb).dis())`` is equivalent to " "``distb(tb)``)." msgstr "" -":class:`~dis.Bytecode` also has a class method, " -":meth:`~dis.Bytecode.from_traceback`, that provides the ability to " -"manipulate a traceback (that is, " -"``print(Bytecode.from_traceback(tb).dis())`` is equivalent to " +":class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode." +"from_traceback`, that provides the ability to manipulate a traceback (that " +"is, ``print(Bytecode.from_traceback(tb).dis())`` is equivalent to " "``distb(tb)``)." #: ../../whatsnew/3.4.rst:767 msgid "" -"(Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in " -":issue:`11816` and Claudiu Popa in :issue:`17916`.)" +"(Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in :issue:" +"`11816` and Claudiu Popa in :issue:`17916`.)" msgstr "" -"(Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in " -":issue:`11816` and Claudiu Popa in :issue:`17916`.)" +"(Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in :issue:" +"`11816` and Claudiu Popa in :issue:`17916`.)" #: ../../whatsnew/3.4.rst:770 msgid "" @@ -1412,15 +1400,15 @@ msgid "" "two new options, ``-o`` and ``-f``. ``-o`` allows :ref:`doctest options " "` to be specified on the command line, and ``-f`` is a " "shorthand for ``-o FAIL_FAST`` (to parallel the similar option supported by " -"the :mod:`unittest` CLI). (Contributed by R. David Murray in " -":issue:`11390`.)" +"the :mod:`unittest` CLI). (Contributed by R. David Murray in :issue:" +"`11390`.)" msgstr "" "The :mod:`doctest` command line interface now uses :mod:`argparse`, and has " "two new options, ``-o`` and ``-f``. ``-o`` allows :ref:`doctest options " "` to be specified on the command line, and ``-f`` is a " "shorthand for ``-o FAIL_FAST`` (to parallel the similar option supported by " -"the :mod:`unittest` CLI). (Contributed by R. David Murray in " -":issue:`11390`.)" +"the :mod:`unittest` CLI). (Contributed by R. David Murray in :issue:" +"`11390`.)" #: ../../whatsnew/3.4.rst:788 msgid "" @@ -1438,36 +1426,36 @@ msgstr "email" msgid "" ":meth:`~email.message.Message.as_string` now accepts a *policy* argument to " "override the default policy of the message when generating a string " -"representation of it. This means that ``as_string`` can now be used in more" -" circumstances, instead of having to create and use a " -":mod:`~email.generator` in order to pass formatting parameters to its " -"``flatten`` method. (Contributed by R. David Murray in :issue:`18600`.)" +"representation of it. This means that ``as_string`` can now be used in more " +"circumstances, instead of having to create and use a :mod:`~email.generator` " +"in order to pass formatting parameters to its ``flatten`` method. " +"(Contributed by R. David Murray in :issue:`18600`.)" msgstr "" ":meth:`~email.message.Message.as_string` now accepts a *policy* argument to " "override the default policy of the message when generating a string " -"representation of it. This means that ``as_string`` can now be used in more" -" circumstances, instead of having to create and use a " -":mod:`~email.generator` in order to pass formatting parameters to its " -"``flatten`` method. (Contributed by R. David Murray in :issue:`18600`.)" +"representation of it. This means that ``as_string`` can now be used in more " +"circumstances, instead of having to create and use a :mod:`~email.generator` " +"in order to pass formatting parameters to its ``flatten`` method. " +"(Contributed by R. David Murray in :issue:`18600`.)" #: ../../whatsnew/3.4.rst:802 msgid "" "New method :meth:`~email.message.Message.as_bytes` added to produce a bytes " "representation of the message in a fashion similar to how ``as_string`` " "produces a string representation. It does not accept the *maxheaderlen* " -"argument, but does accept the *unixfrom* and *policy* arguments. The " -":class:`~email.message.Message` :meth:`~email.message.Message.__bytes__` " -"method calls it, meaning that ``bytes(mymsg)`` will now produce the " -"intuitive result: a bytes object containing the fully formatted message. " +"argument, but does accept the *unixfrom* and *policy* arguments. The :class:" +"`~email.message.Message` :meth:`~email.message.Message.__bytes__` method " +"calls it, meaning that ``bytes(mymsg)`` will now produce the intuitive " +"result: a bytes object containing the fully formatted message. " "(Contributed by R. David Murray in :issue:`18600`.)" msgstr "" "New method :meth:`~email.message.Message.as_bytes` added to produce a bytes " "representation of the message in a fashion similar to how ``as_string`` " "produces a string representation. It does not accept the *maxheaderlen* " -"argument, but does accept the *unixfrom* and *policy* arguments. The " -":class:`~email.message.Message` :meth:`~email.message.Message.__bytes__` " -"method calls it, meaning that ``bytes(mymsg)`` will now produce the " -"intuitive result: a bytes object containing the fully formatted message. " +"argument, but does accept the *unixfrom* and *policy* arguments. The :class:" +"`~email.message.Message` :meth:`~email.message.Message.__bytes__` method " +"calls it, meaning that ``bytes(mymsg)`` will now produce the intuitive " +"result: a bytes object containing the fully formatted message. " "(Contributed by R. David Murray in :issue:`18600`.)" #: ../../whatsnew/3.4.rst:811 @@ -1475,14 +1463,14 @@ msgid "" "The :meth:`.Message.set_param` message now accepts a *replace* keyword " "argument. When specified, the associated header will be updated without " "changing its location in the list of headers. For backward compatibility, " -"the default is ``False``. (Contributed by R. David Murray in " -":issue:`18891`.)" +"the default is ``False``. (Contributed by R. David Murray in :issue:" +"`18891`.)" msgstr "" "The :meth:`.Message.set_param` message now accepts a *replace* keyword " "argument. When specified, the associated header will be updated without " "changing its location in the list of headers. For backward compatibility, " -"the default is ``False``. (Contributed by R. David Murray in " -":issue:`18891`.)" +"the default is ``False``. (Contributed by R. David Murray in :issue:" +"`18891`.)" #: ../../whatsnew/3.4.rst:819 msgid "" @@ -1493,12 +1481,12 @@ msgid "" "documentation is currently in the new module, which is being added as part " "of email's new :term:`provisional API`. These classes provide a number of " "new methods that make extracting content from and inserting content into " -"email messages much easier. For details, see the " -":mod:`~email.contentmanager` documentation and the :ref:`email-examples`. " -"These API additions complete the bulk of the work that was planned as part " -"of the email6 project. The currently provisional API is scheduled to become" -" final in Python 3.5 (possibly with a few minor additions in the area of " -"error handling). (Contributed by R. David Murray in :issue:`18891`.)" +"email messages much easier. For details, see the :mod:`~email." +"contentmanager` documentation and the :ref:`email-examples`. These API " +"additions complete the bulk of the work that was planned as part of the " +"email6 project. The currently provisional API is scheduled to become final " +"in Python 3.5 (possibly with a few minor additions in the area of error " +"handling). (Contributed by R. David Murray in :issue:`18891`.)" msgstr "" "A pair of new subclasses of :class:`~email.message.Message` have been added " "(:class:`.EmailMessage` and :class:`.MIMEPart`), along with a new sub-" @@ -1507,12 +1495,12 @@ msgstr "" "documentation is currently in the new module, which is being added as part " "of email's new :term:`provisional API`. These classes provide a number of " "new methods that make extracting content from and inserting content into " -"email messages much easier. For details, see the " -":mod:`~email.contentmanager` documentation and the :ref:`email-examples`. " -"These API additions complete the bulk of the work that was planned as part " -"of the email6 project. The currently provisional API is scheduled to become" -" final in Python 3.5 (possibly with a few minor additions in the area of " -"error handling). (Contributed by R. David Murray in :issue:`18891`.)" +"email messages much easier. For details, see the :mod:`~email." +"contentmanager` documentation and the :ref:`email-examples`. These API " +"additions complete the bulk of the work that was planned as part of the " +"email6 project. The currently provisional API is scheduled to become final " +"in Python 3.5 (possibly with a few minor additions in the area of error " +"handling). (Contributed by R. David Murray in :issue:`18891`.)" #: ../../whatsnew/3.4.rst:835 msgid "filecmp" @@ -1524,27 +1512,27 @@ msgid "" "the :mod:`filecmp` comparison cache, which uses :func:`os.stat` information " "to determine if the file has changed since the last compare. This can be " "used, for example, if the file might have been changed and re-checked in " -"less time than the resolution of a particular filesystem's file modification" -" time field. (Contributed by Mark Levitt in :issue:`18149`.)" +"less time than the resolution of a particular filesystem's file modification " +"time field. (Contributed by Mark Levitt in :issue:`18149`.)" msgstr "" "A new :func:`~filecmp.clear_cache` function provides the ability to clear " "the :mod:`filecmp` comparison cache, which uses :func:`os.stat` information " "to determine if the file has changed since the last compare. This can be " "used, for example, if the file might have been changed and re-checked in " -"less time than the resolution of a particular filesystem's file modification" -" time field. (Contributed by Mark Levitt in :issue:`18149`.)" +"less time than the resolution of a particular filesystem's file modification " +"time field. (Contributed by Mark Levitt in :issue:`18149`.)" #: ../../whatsnew/3.4.rst:844 msgid "" "New module attribute :data:`~filecmp.DEFAULT_IGNORES` provides the list of " -"directories that are used as the default value for the *ignore* parameter of" -" the :func:`~filecmp.dircmp` function. (Contributed by Eli Bendersky in " -":issue:`15442`.)" +"directories that are used as the default value for the *ignore* parameter of " +"the :func:`~filecmp.dircmp` function. (Contributed by Eli Bendersky in :" +"issue:`15442`.)" msgstr "" "New module attribute :data:`~filecmp.DEFAULT_IGNORES` provides the list of " -"directories that are used as the default value for the *ignore* parameter of" -" the :func:`~filecmp.dircmp` function. (Contributed by Eli Bendersky in " -":issue:`15442`.)" +"directories that are used as the default value for the *ignore* parameter of " +"the :func:`~filecmp.dircmp` function. (Contributed by Eli Bendersky in :" +"issue:`15442`.)" #: ../../whatsnew/3.4.rst:851 msgid "functools" @@ -1556,15 +1544,15 @@ msgid "" "application to descriptors, just as :func:`~functools.partial` provides for " "normal callables. The new descriptor also makes it easier to get arbitrary " "callables (including :func:`~functools.partial` instances) to behave like " -"normal instance methods when included in a class definition. (Contributed by" -" Alon Horev and Nick Coghlan in :issue:`4331`.)" +"normal instance methods when included in a class definition. (Contributed by " +"Alon Horev and Nick Coghlan in :issue:`4331`.)" msgstr "" "The new :func:`~functools.partialmethod` descriptor brings partial argument " "application to descriptors, just as :func:`~functools.partial` provides for " "normal callables. The new descriptor also makes it easier to get arbitrary " "callables (including :func:`~functools.partial` instances) to behave like " -"normal instance methods when included in a class definition. (Contributed by" -" Alon Horev and Nick Coghlan in :issue:`4331`.)" +"normal instance methods when included in a class definition. (Contributed by " +"Alon Horev and Nick Coghlan in :issue:`4331`.)" #: ../../whatsnew/3.4.rst:862 msgid "" @@ -1592,25 +1580,25 @@ msgstr "PEP written and implemented by Łukasz Langa." #: ../../whatsnew/3.4.rst:874 msgid "" -":func:`~functools.total_ordering` now supports a return value of " -":const:`NotImplemented` from the underlying comparison function. " -"(Contributed by Katie Miller in :issue:`10042`.)" +":func:`~functools.total_ordering` now supports a return value of :const:" +"`NotImplemented` from the underlying comparison function. (Contributed by " +"Katie Miller in :issue:`10042`.)" msgstr "" -":func:`~functools.total_ordering` now supports a return value of " -":const:`NotImplemented` from the underlying comparison function. " -"(Contributed by Katie Miller in :issue:`10042`.)" +":func:`~functools.total_ordering` now supports a return value of :const:" +"`NotImplemented` from the underlying comparison function. (Contributed by " +"Katie Miller in :issue:`10042`.)" #: ../../whatsnew/3.4.rst:878 msgid "" "A pure-python version of the :func:`~functools.partial` function is now in " -"the stdlib; in CPython it is overridden by the C accelerated version, but it" -" is available for other implementations to use. (Contributed by Brian " -"Thorne in :issue:`12428`.)" +"the stdlib; in CPython it is overridden by the C accelerated version, but it " +"is available for other implementations to use. (Contributed by Brian Thorne " +"in :issue:`12428`.)" msgstr "" "A pure-python version of the :func:`~functools.partial` function is now in " -"the stdlib; in CPython it is overridden by the C accelerated version, but it" -" is available for other implementations to use. (Contributed by Brian " -"Thorne in :issue:`12428`.)" +"the stdlib; in CPython it is overridden by the C accelerated version, but it " +"is available for other implementations to use. (Contributed by Brian Thorne " +"in :issue:`12428`.)" #: ../../whatsnew/3.4.rst:885 msgid "gc" @@ -1659,18 +1647,18 @@ msgstr "" #: ../../whatsnew/3.4.rst:908 msgid "" "The :attr:`~hashlib.hash.name` attribute of :mod:`hashlib` hash objects is " -"now a formally supported interface. It has always existed in CPython's " -":mod:`hashlib` (although it did not return lower case names for all " -"supported hashes), but it was not a public interface and so some other " -"Python implementations have not previously supported it. (Contributed by " -"Jason R. Coombs in :issue:`18532`.)" +"now a formally supported interface. It has always existed in CPython's :mod:" +"`hashlib` (although it did not return lower case names for all supported " +"hashes), but it was not a public interface and so some other Python " +"implementations have not previously supported it. (Contributed by Jason R. " +"Coombs in :issue:`18532`.)" msgstr "" "The :attr:`~hashlib.hash.name` attribute of :mod:`hashlib` hash objects is " -"now a formally supported interface. It has always existed in CPython's " -":mod:`hashlib` (although it did not return lower case names for all " -"supported hashes), but it was not a public interface and so some other " -"Python implementations have not previously supported it. (Contributed by " -"Jason R. Coombs in :issue:`18532`.)" +"now a formally supported interface. It has always existed in CPython's :mod:" +"`hashlib` (although it did not return lower case names for all supported " +"hashes), but it was not a public interface and so some other Python " +"implementations have not previously supported it. (Contributed by Jason R. " +"Coombs in :issue:`18532`.)" #: ../../whatsnew/3.4.rst:917 msgid "hmac" @@ -1706,17 +1694,15 @@ msgstr "" #: ../../whatsnew/3.4.rst:931 msgid "" -"With the addition of :attr:`~hmac.HMAC.block_size` and " -":attr:`~hmac.HMAC.name` attributes (and the formal documentation of the " -":attr:`~hmac.HMAC.digest_size` attribute), the :mod:`hmac` module now " -"conforms fully to the :pep:`247` API. (Contributed by Christian Heimes in " -":issue:`18775`.)" +"With the addition of :attr:`~hmac.HMAC.block_size` and :attr:`~hmac.HMAC." +"name` attributes (and the formal documentation of the :attr:`~hmac.HMAC." +"digest_size` attribute), the :mod:`hmac` module now conforms fully to the :" +"pep:`247` API. (Contributed by Christian Heimes in :issue:`18775`.)" msgstr "" -"With the addition of :attr:`~hmac.HMAC.block_size` and " -":attr:`~hmac.HMAC.name` attributes (and the formal documentation of the " -":attr:`~hmac.HMAC.digest_size` attribute), the :mod:`hmac` module now " -"conforms fully to the :pep:`247` API. (Contributed by Christian Heimes in " -":issue:`18775`.)" +"With the addition of :attr:`~hmac.HMAC.block_size` and :attr:`~hmac.HMAC." +"name` attributes (and the formal documentation of the :attr:`~hmac.HMAC." +"digest_size` attribute), the :mod:`hmac` module now conforms fully to the :" +"pep:`247` API. (Contributed by Christian Heimes in :issue:`18775`.)" #: ../../whatsnew/3.4.rst:938 msgid "html" @@ -1735,26 +1721,26 @@ msgstr "" #: ../../whatsnew/3.4.rst:944 msgid "" ":class:`~html.parser.HTMLParser` accepts a new keyword argument " -"*convert_charrefs* that, when ``True``, automatically converts all character" -" references. For backward-compatibility, its value defaults to ``False``, " +"*convert_charrefs* that, when ``True``, automatically converts all character " +"references. For backward-compatibility, its value defaults to ``False``, " "but it will change to ``True`` in a future version of Python, so you are " "invited to set it explicitly and update your code to use this new feature. " "(Contributed by Ezio Melotti in :issue:`13633`.)" msgstr "" ":class:`~html.parser.HTMLParser` accepts a new keyword argument " -"*convert_charrefs* that, when ``True``, automatically converts all character" -" references. For backward-compatibility, its value defaults to ``False``, " +"*convert_charrefs* that, when ``True``, automatically converts all character " +"references. For backward-compatibility, its value defaults to ``False``, " "but it will change to ``True`` in a future version of Python, so you are " "invited to set it explicitly and update your code to use this new feature. " "(Contributed by Ezio Melotti in :issue:`13633`.)" #: ../../whatsnew/3.4.rst:951 msgid "" -"The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated." -" (Contributed by Ezio Melotti in :issue:`15114`.)" +"The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated. " +"(Contributed by Ezio Melotti in :issue:`15114`.)" msgstr "" -"The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated." -" (Contributed by Ezio Melotti in :issue:`15114`.)" +"The *strict* argument of :class:`~html.parser.HTMLParser` is now deprecated. " +"(Contributed by Ezio Melotti in :issue:`15114`.)" #: ../../whatsnew/3.4.rst:956 msgid "http" @@ -1765,16 +1751,16 @@ msgid "" ":meth:`~http.server.BaseHTTPRequestHandler.send_error` now accepts an " "optional additional *explain* parameter which can be used to provide an " "extended error description, overriding the hardcoded default if there is " -"one. This extended error description will be formatted using the " -":attr:`~http.server.HTTP.error_message_format` attribute and sent as the " -"body of the error response. (Contributed by Karl Cow in :issue:`12921`.)" +"one. This extended error description will be formatted using the :attr:" +"`~http.server.HTTP.error_message_format` attribute and sent as the body of " +"the error response. (Contributed by Karl Cow in :issue:`12921`.)" msgstr "" ":meth:`~http.server.BaseHTTPRequestHandler.send_error` now accepts an " "optional additional *explain* parameter which can be used to provide an " "extended error description, overriding the hardcoded default if there is " -"one. This extended error description will be formatted using the " -":attr:`~http.server.HTTP.error_message_format` attribute and sent as the " -"body of the error response. (Contributed by Karl Cow in :issue:`12921`.)" +"one. This extended error description will be formatted using the :attr:" +"`~http.server.HTTP.error_message_format` attribute and sent as the body of " +"the error response. (Contributed by Karl Cow in :issue:`12921`.)" #: ../../whatsnew/3.4.rst:965 msgid "" @@ -1793,16 +1779,16 @@ msgstr "idlelib and IDLE" #: ../../whatsnew/3.4.rst:973 msgid "" "Since idlelib implements the IDLE shell and editor and is not intended for " -"import by other programs, it gets improvements with every release. See " -":file:`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.3.0, " -"as well as changes made in future 3.4.x releases. This file is also " -"available from the IDLE :menuselection:`Help --> About IDLE` dialog." +"import by other programs, it gets improvements with every release. See :file:" +"`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.3.0, as well " +"as changes made in future 3.4.x releases. This file is also available from " +"the IDLE :menuselection:`Help --> About IDLE` dialog." msgstr "" "Since idlelib implements the IDLE shell and editor and is not intended for " -"import by other programs, it gets improvements with every release. See " -":file:`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.3.0, " -"as well as changes made in future 3.4.x releases. This file is also " -"available from the IDLE :menuselection:`Help --> About IDLE` dialog." +"import by other programs, it gets improvements with every release. See :file:" +"`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.3.0, as well " +"as changes made in future 3.4.x releases. This file is also available from " +"the IDLE :menuselection:`Help --> About IDLE` dialog." #: ../../whatsnew/3.4.rst:981 msgid "importlib" @@ -1810,17 +1796,17 @@ msgstr "importlib" #: ../../whatsnew/3.4.rst:983 msgid "" -"The :class:`~importlib.abc.InspectLoader` ABC defines a new method, " -":meth:`~importlib.abc.InspectLoader.source_to_code` that accepts source data" -" and a path and returns a code object. The default implementation is " -"equivalent to ``compile(data, path, 'exec', dont_inherit=True)``. " -"(Contributed by Eric Snow and Brett Cannon in :issue:`15627`.)" +"The :class:`~importlib.abc.InspectLoader` ABC defines a new method, :meth:" +"`~importlib.abc.InspectLoader.source_to_code` that accepts source data and a " +"path and returns a code object. The default implementation is equivalent to " +"``compile(data, path, 'exec', dont_inherit=True)``. (Contributed by Eric " +"Snow and Brett Cannon in :issue:`15627`.)" msgstr "" -"The :class:`~importlib.abc.InspectLoader` ABC defines a new method, " -":meth:`~importlib.abc.InspectLoader.source_to_code` that accepts source data" -" and a path and returns a code object. The default implementation is " -"equivalent to ``compile(data, path, 'exec', dont_inherit=True)``. " -"(Contributed by Eric Snow and Brett Cannon in :issue:`15627`.)" +"The :class:`~importlib.abc.InspectLoader` ABC defines a new method, :meth:" +"`~importlib.abc.InspectLoader.source_to_code` that accepts source data and a " +"path and returns a code object. The default implementation is equivalent to " +"``compile(data, path, 'exec', dont_inherit=True)``. (Contributed by Eric " +"Snow and Brett Cannon in :issue:`15627`.)" #: ../../whatsnew/3.4.rst:989 msgid "" @@ -1836,13 +1822,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:994 msgid "" -"The :func:`~importlib.reload` function has been moved from :mod:`imp` to " -":mod:`importlib` as part of the :mod:`imp` module deprecation. (Contributed" -" by Berker Peksag in :issue:`18193`.)" +"The :func:`~importlib.reload` function has been moved from :mod:`imp` to :" +"mod:`importlib` as part of the :mod:`imp` module deprecation. (Contributed " +"by Berker Peksag in :issue:`18193`.)" msgstr "" -"The :func:`~importlib.reload` function has been moved from :mod:`imp` to " -":mod:`importlib` as part of the :mod:`imp` module deprecation. (Contributed" -" by Berker Peksag in :issue:`18193`.)" +"The :func:`~importlib.reload` function has been moved from :mod:`imp` to :" +"mod:`importlib` as part of the :mod:`imp` module deprecation. (Contributed " +"by Berker Peksag in :issue:`18193`.)" #: ../../whatsnew/3.4.rst:998 msgid "" @@ -1858,53 +1844,51 @@ msgstr "" #: ../../whatsnew/3.4.rst:1003 msgid "" -"New :mod:`importlib.util` functions " -":func:`~importlib.util.cache_from_source` and " -":func:`~importlib.util.source_from_cache` replace the same-named functions " -"in the deprecated :mod:`imp` module. (Contributed by Brett Cannon in " -":issue:`18194`.)" +"New :mod:`importlib.util` functions :func:`~importlib.util." +"cache_from_source` and :func:`~importlib.util.source_from_cache` replace the " +"same-named functions in the deprecated :mod:`imp` module. (Contributed by " +"Brett Cannon in :issue:`18194`.)" msgstr "" -"New :mod:`importlib.util` functions " -":func:`~importlib.util.cache_from_source` and " -":func:`~importlib.util.source_from_cache` replace the same-named functions " -"in the deprecated :mod:`imp` module. (Contributed by Brett Cannon in " -":issue:`18194`.)" +"New :mod:`importlib.util` functions :func:`~importlib.util." +"cache_from_source` and :func:`~importlib.util.source_from_cache` replace the " +"same-named functions in the deprecated :mod:`imp` module. (Contributed by " +"Brett Cannon in :issue:`18194`.)" #: ../../whatsnew/3.4.rst:1008 msgid "" -"The :mod:`importlib` bootstrap :class:`.NamespaceLoader` now conforms to the" -" :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -m`` " -"can now be used with namespace packages. (Contributed by Brett Cannon in " -":issue:`18058`.)" +"The :mod:`importlib` bootstrap :class:`.NamespaceLoader` now conforms to " +"the :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -" +"m`` can now be used with namespace packages. (Contributed by Brett Cannon " +"in :issue:`18058`.)" msgstr "" -"The :mod:`importlib` bootstrap :class:`.NamespaceLoader` now conforms to the" -" :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -m`` " -"can now be used with namespace packages. (Contributed by Brett Cannon in " -":issue:`18058`.)" +"The :mod:`importlib` bootstrap :class:`.NamespaceLoader` now conforms to " +"the :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -" +"m`` can now be used with namespace packages. (Contributed by Brett Cannon " +"in :issue:`18058`.)" #: ../../whatsnew/3.4.rst:1013 msgid "" -":mod:`importlib.util` has a new function " -":func:`~importlib.util.decode_source` that decodes source from bytes using " -"universal newline processing. This is useful for implementing " -":meth:`.InspectLoader.get_source` methods." +":mod:`importlib.util` has a new function :func:`~importlib.util." +"decode_source` that decodes source from bytes using universal newline " +"processing. This is useful for implementing :meth:`.InspectLoader." +"get_source` methods." msgstr "" -":mod:`importlib.util` has a new function " -":func:`~importlib.util.decode_source` that decodes source from bytes using " -"universal newline processing. This is useful for implementing " -":meth:`.InspectLoader.get_source` methods." +":mod:`importlib.util` has a new function :func:`~importlib.util." +"decode_source` that decodes source from bytes using universal newline " +"processing. This is useful for implementing :meth:`.InspectLoader." +"get_source` methods." #: ../../whatsnew/3.4.rst:1017 msgid "" -":class:`importlib.machinery.ExtensionFileLoader` now has a " -":meth:`~importlib.machinery.ExtensionFileLoader.get_filename` method. This " -"was inadvertently omitted in the original implementation. (Contributed by " -"Eric Snow in :issue:`19152`.)" +":class:`importlib.machinery.ExtensionFileLoader` now has a :meth:`~importlib." +"machinery.ExtensionFileLoader.get_filename` method. This was inadvertently " +"omitted in the original implementation. (Contributed by Eric Snow in :issue:" +"`19152`.)" msgstr "" -":class:`importlib.machinery.ExtensionFileLoader` now has a " -":meth:`~importlib.machinery.ExtensionFileLoader.get_filename` method. This " -"was inadvertently omitted in the original implementation. (Contributed by " -"Eric Snow in :issue:`19152`.)" +":class:`importlib.machinery.ExtensionFileLoader` now has a :meth:`~importlib." +"machinery.ExtensionFileLoader.get_filename` method. This was inadvertently " +"omitted in the original implementation. (Contributed by Eric Snow in :issue:" +"`19152`.)" #: ../../whatsnew/3.4.rst:1024 msgid "inspect" @@ -1936,39 +1920,37 @@ msgstr "" #: ../../whatsnew/3.4.rst:1036 msgid "" -"As part of the implementation of the new :mod:`enum` module, the " -":mod:`inspect` module now has substantially better support for custom " -"``__dir__`` methods and dynamic class attributes provided through " -"metaclasses. (Contributed by Ethan Furman in :issue:`18929` and " -":issue:`19030`.)" +"As part of the implementation of the new :mod:`enum` module, the :mod:" +"`inspect` module now has substantially better support for custom ``__dir__`` " +"methods and dynamic class attributes provided through metaclasses. " +"(Contributed by Ethan Furman in :issue:`18929` and :issue:`19030`.)" msgstr "" -"As part of the implementation of the new :mod:`enum` module, the " -":mod:`inspect` module now has substantially better support for custom " -"``__dir__`` methods and dynamic class attributes provided through " -"metaclasses. (Contributed by Ethan Furman in :issue:`18929` and " -":issue:`19030`.)" +"As part of the implementation of the new :mod:`enum` module, the :mod:" +"`inspect` module now has substantially better support for custom ``__dir__`` " +"methods and dynamic class attributes provided through metaclasses. " +"(Contributed by Ethan Furman in :issue:`18929` and :issue:`19030`.)" #: ../../whatsnew/3.4.rst:1042 msgid "" -":func:`~inspect.getfullargspec` and :func:`~inspect.getargspec` now use the " -":func:`~inspect.signature` API. This allows them to support a much broader " -"range of callables, including those with ``__signature__`` attributes, those" -" with metadata provided by argument clinic, :func:`functools.partial` " -"objects and more. Note that, unlike :func:`~inspect.signature`, these " -"functions still ignore ``__wrapped__`` attributes, and report the already " -"bound first argument for bound methods, so it is still necessary to update " -"your code to use :func:`~inspect.signature` directly if those features are " -"desired. (Contributed by Yury Selivanov in :issue:`17481`.)" -msgstr "" -":func:`~inspect.getfullargspec` and :func:`~inspect.getargspec` now use the " -":func:`~inspect.signature` API. This allows them to support a much broader " -"range of callables, including those with ``__signature__`` attributes, those" -" with metadata provided by argument clinic, :func:`functools.partial` " -"objects and more. Note that, unlike :func:`~inspect.signature`, these " -"functions still ignore ``__wrapped__`` attributes, and report the already " -"bound first argument for bound methods, so it is still necessary to update " -"your code to use :func:`~inspect.signature` directly if those features are " -"desired. (Contributed by Yury Selivanov in :issue:`17481`.)" +":func:`~inspect.getfullargspec` and :func:`~inspect.getargspec` now use the :" +"func:`~inspect.signature` API. This allows them to support a much broader " +"range of callables, including those with ``__signature__`` attributes, those " +"with metadata provided by argument clinic, :func:`functools.partial` objects " +"and more. Note that, unlike :func:`~inspect.signature`, these functions " +"still ignore ``__wrapped__`` attributes, and report the already bound first " +"argument for bound methods, so it is still necessary to update your code to " +"use :func:`~inspect.signature` directly if those features are desired. " +"(Contributed by Yury Selivanov in :issue:`17481`.)" +msgstr "" +":func:`~inspect.getfullargspec` and :func:`~inspect.getargspec` now use the :" +"func:`~inspect.signature` API. This allows them to support a much broader " +"range of callables, including those with ``__signature__`` attributes, those " +"with metadata provided by argument clinic, :func:`functools.partial` objects " +"and more. Note that, unlike :func:`~inspect.signature`, these functions " +"still ignore ``__wrapped__`` attributes, and report the already bound first " +"argument for bound methods, so it is still necessary to update your code to " +"use :func:`~inspect.signature` directly if those features are desired. " +"(Contributed by Yury Selivanov in :issue:`17481`.)" #: ../../whatsnew/3.4.rst:1053 msgid "" @@ -1986,27 +1968,25 @@ msgstr "ipaddress" #: ../../whatsnew/3.4.rst:1061 msgid "" -":mod:`ipaddress` was added to the standard library in Python 3.3 as a " -":term:`provisional API`. With the release of Python 3.4, this qualification " -"has been removed: :mod:`ipaddress` is now considered a stable API, covered " -"by the normal standard library requirements to maintain backwards " -"compatibility." +":mod:`ipaddress` was added to the standard library in Python 3.3 as a :term:" +"`provisional API`. With the release of Python 3.4, this qualification has " +"been removed: :mod:`ipaddress` is now considered a stable API, covered by " +"the normal standard library requirements to maintain backwards compatibility." msgstr "" -":mod:`ipaddress` was added to the standard library in Python 3.3 as a " -":term:`provisional API`. With the release of Python 3.4, this qualification " -"has been removed: :mod:`ipaddress` is now considered a stable API, covered " -"by the normal standard library requirements to maintain backwards " -"compatibility." +":mod:`ipaddress` was added to the standard library in Python 3.3 as a :term:" +"`provisional API`. With the release of Python 3.4, this qualification has " +"been removed: :mod:`ipaddress` is now considered a stable API, covered by " +"the normal standard library requirements to maintain backwards compatibility." #: ../../whatsnew/3.4.rst:1067 msgid "" "A new :attr:`~ipaddress.IPv4Address.is_global` property is ``True`` if an " -"address is globally routeable. (Contributed by Peter Moody in " -":issue:`17400`.)" +"address is globally routeable. (Contributed by Peter Moody in :issue:" +"`17400`.)" msgstr "" "A new :attr:`~ipaddress.IPv4Address.is_global` property is ``True`` if an " -"address is globally routeable. (Contributed by Peter Moody in " -":issue:`17400`.)" +"address is globally routeable. (Contributed by Peter Moody in :issue:" +"`17400`.)" #: ../../whatsnew/3.4.rst:1073 msgid "logging" @@ -2024,45 +2004,41 @@ msgstr "" #: ../../whatsnew/3.4.rst:1079 msgid "" -":class:`~logging.handlers.SocketHandler` and " -":class:`~logging.handlers.DatagramHandler` now support Unix domain sockets " -"(by setting *port* to ``None``). (Contributed by Vinay Sajip in commit " -"ce46195b56a9.)" +":class:`~logging.handlers.SocketHandler` and :class:`~logging.handlers." +"DatagramHandler` now support Unix domain sockets (by setting *port* to " +"``None``). (Contributed by Vinay Sajip in commit ce46195b56a9.)" msgstr "" -":class:`~logging.handlers.SocketHandler` and " -":class:`~logging.handlers.DatagramHandler` now support Unix domain sockets " -"(by setting *port* to ``None``). (Contributed by Vinay Sajip in commit " -"ce46195b56a9.)" +":class:`~logging.handlers.SocketHandler` and :class:`~logging.handlers." +"DatagramHandler` now support Unix domain sockets (by setting *port* to " +"``None``). (Contributed by Vinay Sajip in commit ce46195b56a9.)" #: ../../whatsnew/3.4.rst:1084 msgid "" -":func:`~logging.config.fileConfig` now accepts a " -":class:`configparser.RawConfigParser` subclass instance for the *fname* " -"parameter. This facilitates using a configuration file when logging " -"configuration is just a part of the overall application configuration, or " -"where the application modifies the configuration before passing it to " -":func:`~logging.config.fileConfig`. (Contributed by Vinay Sajip in " -":issue:`16110`.)" -msgstr "" -":func:`~logging.config.fileConfig` now accepts a " -":class:`configparser.RawConfigParser` subclass instance for the *fname* " -"parameter. This facilitates using a configuration file when logging " -"configuration is just a part of the overall application configuration, or " -"where the application modifies the configuration before passing it to " -":func:`~logging.config.fileConfig`. (Contributed by Vinay Sajip in " -":issue:`16110`.)" +":func:`~logging.config.fileConfig` now accepts a :class:`configparser." +"RawConfigParser` subclass instance for the *fname* parameter. This " +"facilitates using a configuration file when logging configuration is just a " +"part of the overall application configuration, or where the application " +"modifies the configuration before passing it to :func:`~logging.config." +"fileConfig`. (Contributed by Vinay Sajip in :issue:`16110`.)" +msgstr "" +":func:`~logging.config.fileConfig` now accepts a :class:`configparser." +"RawConfigParser` subclass instance for the *fname* parameter. This " +"facilitates using a configuration file when logging configuration is just a " +"part of the overall application configuration, or where the application " +"modifies the configuration before passing it to :func:`~logging.config." +"fileConfig`. (Contributed by Vinay Sajip in :issue:`16110`.)" #: ../../whatsnew/3.4.rst:1092 msgid "" -"Logging configuration data received from a socket via the " -":func:`logging.config.listen` function can now be validated before being " -"processed by supplying a verification function as the argument to the new " -"*verify* keyword argument. (Contributed by Vinay Sajip in :issue:`15452`.)" +"Logging configuration data received from a socket via the :func:`logging." +"config.listen` function can now be validated before being processed by " +"supplying a verification function as the argument to the new *verify* " +"keyword argument. (Contributed by Vinay Sajip in :issue:`15452`.)" msgstr "" -"Logging configuration data received from a socket via the " -":func:`logging.config.listen` function can now be validated before being " -"processed by supplying a verification function as the argument to the new " -"*verify* keyword argument. (Contributed by Vinay Sajip in :issue:`15452`.)" +"Logging configuration data received from a socket via the :func:`logging." +"config.listen` function can now be validated before being processed by " +"supplying a verification function as the argument to the new *verify* " +"keyword argument. (Contributed by Vinay Sajip in :issue:`15452`.)" #: ../../whatsnew/3.4.rst:1101 msgid "marshal" @@ -2071,24 +2047,24 @@ msgstr "marshal" #: ../../whatsnew/3.4.rst:1103 msgid "" "The default :mod:`marshal` version has been bumped to 3. The code " -"implementing the new version restores the Python2 behavior of recording only" -" one copy of interned strings and preserving the interning on " +"implementing the new version restores the Python2 behavior of recording only " +"one copy of interned strings and preserving the interning on " "deserialization, and extends this \"one copy\" ability to any object type " -"(including handling recursive references). This reduces both the size of " -"``.pyc`` files and the amount of memory a module occupies in memory when it " -"is loaded from a ``.pyc`` (or ``.pyo``) file. (Contributed by Kristján " -"Valur Jónsson in :issue:`16475`, with additional speedups by Antoine Pitrou " -"in :issue:`19219`.)" +"(including handling recursive references). This reduces both the size of ``." +"pyc`` files and the amount of memory a module occupies in memory when it is " +"loaded from a ``.pyc`` (or ``.pyo``) file. (Contributed by Kristján Valur " +"Jónsson in :issue:`16475`, with additional speedups by Antoine Pitrou in :" +"issue:`19219`.)" msgstr "" "The default :mod:`marshal` version has been bumped to 3. The code " -"implementing the new version restores the Python2 behavior of recording only" -" one copy of interned strings and preserving the interning on " +"implementing the new version restores the Python2 behavior of recording only " +"one copy of interned strings and preserving the interning on " "deserialization, and extends this \"one copy\" ability to any object type " -"(including handling recursive references). This reduces both the size of " -"``.pyc`` files and the amount of memory a module occupies in memory when it " -"is loaded from a ``.pyc`` (or ``.pyo``) file. (Contributed by Kristján " -"Valur Jónsson in :issue:`16475`, with additional speedups by Antoine Pitrou " -"in :issue:`19219`.)" +"(including handling recursive references). This reduces both the size of ``." +"pyc`` files and the amount of memory a module occupies in memory when it is " +"loaded from a ``.pyc`` (or ``.pyo``) file. (Contributed by Kristján Valur " +"Jónsson in :issue:`16475`, with additional speedups by Antoine Pitrou in :" +"issue:`19219`.)" #: ../../whatsnew/3.4.rst:1114 msgid "mmap" @@ -2109,72 +2085,72 @@ msgstr "multiprocessing" #: ../../whatsnew/3.4.rst:1125 msgid "" "On Unix two new :ref:`start methods `, " -"``spawn`` and ``forkserver``, have been added for starting processes using " -":mod:`multiprocessing`. These make the mixing of processes with threads " -"more robust, and the ``spawn`` method matches the semantics that " -"multiprocessing has always used on Windows. New function " -":func:`~multiprocessing.get_all_start_methods` reports all start methods " -"available on the platform, :func:`~multiprocessing.get_start_method` reports" -" the current start method, and :func:`~multiprocessing.set_start_method` " -"sets the start method. (Contributed by Richard Oudkerk in :issue:`8713`.)" +"``spawn`` and ``forkserver``, have been added for starting processes using :" +"mod:`multiprocessing`. These make the mixing of processes with threads more " +"robust, and the ``spawn`` method matches the semantics that multiprocessing " +"has always used on Windows. New function :func:`~multiprocessing." +"get_all_start_methods` reports all start methods available on the platform, :" +"func:`~multiprocessing.get_start_method` reports the current start method, " +"and :func:`~multiprocessing.set_start_method` sets the start method. " +"(Contributed by Richard Oudkerk in :issue:`8713`.)" msgstr "" "On Unix two new :ref:`start methods `, " -"``spawn`` and ``forkserver``, have been added for starting processes using " -":mod:`multiprocessing`. These make the mixing of processes with threads " -"more robust, and the ``spawn`` method matches the semantics that " -"multiprocessing has always used on Windows. New function " -":func:`~multiprocessing.get_all_start_methods` reports all start methods " -"available on the platform, :func:`~multiprocessing.get_start_method` reports" -" the current start method, and :func:`~multiprocessing.set_start_method` " -"sets the start method. (Contributed by Richard Oudkerk in :issue:`8713`.)" +"``spawn`` and ``forkserver``, have been added for starting processes using :" +"mod:`multiprocessing`. These make the mixing of processes with threads more " +"robust, and the ``spawn`` method matches the semantics that multiprocessing " +"has always used on Windows. New function :func:`~multiprocessing." +"get_all_start_methods` reports all start methods available on the platform, :" +"func:`~multiprocessing.get_start_method` reports the current start method, " +"and :func:`~multiprocessing.set_start_method` sets the start method. " +"(Contributed by Richard Oudkerk in :issue:`8713`.)" #: ../../whatsnew/3.4.rst:1135 msgid "" ":mod:`multiprocessing` also now has the concept of a ``context``, which " -"determines how child processes are created. New function " -":func:`~multiprocessing.get_context` returns a context that uses a specified" -" start method. It has the same API as the :mod:`multiprocessing` module " -"itself, so you can use it to create :class:`~multiprocessing.pool.Pool`\\ s " -"and other objects that will operate within that context. This allows a " -"framework and an application or different parts of the same application to " -"use multiprocessing without interfering with each other. (Contributed by " +"determines how child processes are created. New function :func:" +"`~multiprocessing.get_context` returns a context that uses a specified start " +"method. It has the same API as the :mod:`multiprocessing` module itself, so " +"you can use it to create :class:`~multiprocessing.pool.Pool`\\ s and other " +"objects that will operate within that context. This allows a framework and " +"an application or different parts of the same application to use " +"multiprocessing without interfering with each other. (Contributed by " "Richard Oudkerk in :issue:`18999`.)" msgstr "" ":mod:`multiprocessing` also now has the concept of a ``context``, which " -"determines how child processes are created. New function " -":func:`~multiprocessing.get_context` returns a context that uses a specified" -" start method. It has the same API as the :mod:`multiprocessing` module " -"itself, so you can use it to create :class:`~multiprocessing.pool.Pool`\\ s " -"and other objects that will operate within that context. This allows a " -"framework and an application or different parts of the same application to " -"use multiprocessing without interfering with each other. (Contributed by " +"determines how child processes are created. New function :func:" +"`~multiprocessing.get_context` returns a context that uses a specified start " +"method. It has the same API as the :mod:`multiprocessing` module itself, so " +"you can use it to create :class:`~multiprocessing.pool.Pool`\\ s and other " +"objects that will operate within that context. This allows a framework and " +"an application or different parts of the same application to use " +"multiprocessing without interfering with each other. (Contributed by " "Richard Oudkerk in :issue:`18999`.)" #: ../../whatsnew/3.4.rst:1145 msgid "" "Except when using the old *fork* start method, child processes no longer " -"inherit unneeded handles/file descriptors from their parents (part of " -":issue:`8713`)." +"inherit unneeded handles/file descriptors from their parents (part of :issue:" +"`8713`)." msgstr "" "Except when using the old *fork* start method, child processes no longer " -"inherit unneeded handles/file descriptors from their parents (part of " -":issue:`8713`)." +"inherit unneeded handles/file descriptors from their parents (part of :issue:" +"`8713`)." #: ../../whatsnew/3.4.rst:1149 msgid "" -":mod:`multiprocessing` now relies on :mod:`runpy` (which implements the " -"``-m`` switch) to initialise ``__main__`` appropriately in child processes " -"when using the ``spawn`` or ``forkserver`` start methods. This resolves some" -" edge cases where combining multiprocessing, the ``-m`` command line switch," -" and explicit relative imports could cause obscure failures in child " -"processes. (Contributed by Nick Coghlan in :issue:`19946`.)" +":mod:`multiprocessing` now relies on :mod:`runpy` (which implements the ``-" +"m`` switch) to initialise ``__main__`` appropriately in child processes when " +"using the ``spawn`` or ``forkserver`` start methods. This resolves some edge " +"cases where combining multiprocessing, the ``-m`` command line switch, and " +"explicit relative imports could cause obscure failures in child processes. " +"(Contributed by Nick Coghlan in :issue:`19946`.)" msgstr "" -":mod:`multiprocessing` now relies on :mod:`runpy` (which implements the " -"``-m`` switch) to initialise ``__main__`` appropriately in child processes " -"when using the ``spawn`` or ``forkserver`` start methods. This resolves some" -" edge cases where combining multiprocessing, the ``-m`` command line switch," -" and explicit relative imports could cause obscure failures in child " -"processes. (Contributed by Nick Coghlan in :issue:`19946`.)" +":mod:`multiprocessing` now relies on :mod:`runpy` (which implements the ``-" +"m`` switch) to initialise ``__main__`` appropriately in child processes when " +"using the ``spawn`` or ``forkserver`` start methods. This resolves some edge " +"cases where combining multiprocessing, the ``-m`` command line switch, and " +"explicit relative imports could cause obscure failures in child processes. " +"(Contributed by Nick Coghlan in :issue:`19946`.)" #: ../../whatsnew/3.4.rst:1158 msgid "operator" @@ -2182,13 +2158,13 @@ msgstr "operador" #: ../../whatsnew/3.4.rst:1160 msgid "" -"New function :func:`~operator.length_hint` provides an implementation of the" -" specification for how the :meth:`~object.__length_hint__` special method " +"New function :func:`~operator.length_hint` provides an implementation of the " +"specification for how the :meth:`~object.__length_hint__` special method " "should be used, as part of the :pep:`424` formal specification of this " "language feature. (Contributed by Armin Ronacher in :issue:`16148`.)" msgstr "" -"New function :func:`~operator.length_hint` provides an implementation of the" -" specification for how the :meth:`~object.__length_hint__` special method " +"New function :func:`~operator.length_hint` provides an implementation of the " +"specification for how the :meth:`~object.__length_hint__` special method " "should be used, as part of the :pep:`424` formal specification of this " "language feature. (Contributed by Armin Ronacher in :issue:`16148`.)" @@ -2209,14 +2185,14 @@ msgstr "os" #: ../../whatsnew/3.4.rst:1173 msgid "" "There are new functions to get and set the :ref:`inheritable flag " -"` of a file descriptor (:func:`os.get_inheritable`, " -":func:`os.set_inheritable`) or a Windows handle " -"(:func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`)." +"` of a file descriptor (:func:`os.get_inheritable`, :func:" +"`os.set_inheritable`) or a Windows handle (:func:`os." +"get_handle_inheritable`, :func:`os.set_handle_inheritable`)." msgstr "" "There are new functions to get and set the :ref:`inheritable flag " -"` of a file descriptor (:func:`os.get_inheritable`, " -":func:`os.set_inheritable`) or a Windows handle " -"(:func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`)." +"` of a file descriptor (:func:`os.get_inheritable`, :func:" +"`os.set_inheritable`) or a Windows handle (:func:`os." +"get_handle_inheritable`, :func:`os.set_handle_inheritable`)." #: ../../whatsnew/3.4.rst:1178 msgid "" @@ -2224,49 +2200,47 @@ msgid "" "the platform on which Python is running (or ``None`` if the count can't be " "determined). The :func:`multiprocessing.cpu_count` function is now " "implemented in terms of this function). (Contributed by Trent Nelson, " -"Yogesh Chaudhari, Victor Stinner, and Charles-François Natali in " -":issue:`17914`.)" +"Yogesh Chaudhari, Victor Stinner, and Charles-François Natali in :issue:" +"`17914`.)" msgstr "" "New function :func:`~os.cpu_count` reports the number of CPUs available on " "the platform on which Python is running (or ``None`` if the count can't be " "determined). The :func:`multiprocessing.cpu_count` function is now " "implemented in terms of this function). (Contributed by Trent Nelson, " -"Yogesh Chaudhari, Victor Stinner, and Charles-François Natali in " -":issue:`17914`.)" +"Yogesh Chaudhari, Victor Stinner, and Charles-François Natali in :issue:" +"`17914`.)" #: ../../whatsnew/3.4.rst:1184 msgid "" -":func:`os.path.samestat` is now available on the Windows platform (and the " -":func:`os.path.samefile` implementation is now shared between Unix and " +":func:`os.path.samestat` is now available on the Windows platform (and the :" +"func:`os.path.samefile` implementation is now shared between Unix and " "Windows). (Contributed by Brian Curtin in :issue:`11939`.)" msgstr "" -":func:`os.path.samestat` is now available on the Windows platform (and the " -":func:`os.path.samefile` implementation is now shared between Unix and " +":func:`os.path.samestat` is now available on the Windows platform (and the :" +"func:`os.path.samefile` implementation is now shared between Unix and " "Windows). (Contributed by Brian Curtin in :issue:`11939`.)" #: ../../whatsnew/3.4.rst:1188 msgid "" -":func:`os.path.ismount` now recognizes volumes mounted below a drive root on" -" Windows. (Contributed by Tim Golden in :issue:`9035`.)" +":func:`os.path.ismount` now recognizes volumes mounted below a drive root on " +"Windows. (Contributed by Tim Golden in :issue:`9035`.)" msgstr "" -":func:`os.path.ismount` now recognizes volumes mounted below a drive root on" -" Windows. (Contributed by Tim Golden in :issue:`9035`.)" +":func:`os.path.ismount` now recognizes volumes mounted below a drive root on " +"Windows. (Contributed by Tim Golden in :issue:`9035`.)" #: ../../whatsnew/3.4.rst:1191 msgid "" -":func:`os.open` supports two new flags on platforms that provide them, " -":data:`~os.O_PATH` (un-opened file descriptor), and :data:`~os.O_TMPFILE` " -"(unnamed temporary file; as of 3.4.0 release available only on Linux systems" -" with a kernel version of 3.11 or newer that have uapi headers). " -"(Contributed by Christian Heimes in :issue:`18673` and Benjamin Peterson, " -"respectively.)" +":func:`os.open` supports two new flags on platforms that provide them, :data:" +"`~os.O_PATH` (un-opened file descriptor), and :data:`~os.O_TMPFILE` (unnamed " +"temporary file; as of 3.4.0 release available only on Linux systems with a " +"kernel version of 3.11 or newer that have uapi headers). (Contributed by " +"Christian Heimes in :issue:`18673` and Benjamin Peterson, respectively.)" msgstr "" -":func:`os.open` supports two new flags on platforms that provide them, " -":data:`~os.O_PATH` (un-opened file descriptor), and :data:`~os.O_TMPFILE` " -"(unnamed temporary file; as of 3.4.0 release available only on Linux systems" -" with a kernel version of 3.11 or newer that have uapi headers). " -"(Contributed by Christian Heimes in :issue:`18673` and Benjamin Peterson, " -"respectively.)" +":func:`os.open` supports two new flags on platforms that provide them, :data:" +"`~os.O_PATH` (un-opened file descriptor), and :data:`~os.O_TMPFILE` (unnamed " +"temporary file; as of 3.4.0 release available only on Linux systems with a " +"kernel version of 3.11 or newer that have uapi headers). (Contributed by " +"Christian Heimes in :issue:`18673` and Benjamin Peterson, respectively.)" #: ../../whatsnew/3.4.rst:1199 msgid "pdb" @@ -2276,13 +2250,13 @@ msgstr "pdb" msgid "" ":mod:`pdb` has been enhanced to handle generators, :keyword:`yield`, and " "``yield from`` in a more useful fashion. This is especially helpful when " -"debugging :mod:`asyncio` based programs. (Contributed by Andrew Svetlov and" -" Xavier de Gaye in :issue:`16596`.)" +"debugging :mod:`asyncio` based programs. (Contributed by Andrew Svetlov and " +"Xavier de Gaye in :issue:`16596`.)" msgstr "" ":mod:`pdb` has been enhanced to handle generators, :keyword:`yield`, and " "``yield from`` in a more useful fashion. This is especially helpful when " -"debugging :mod:`asyncio` based programs. (Contributed by Andrew Svetlov and" -" Xavier de Gaye in :issue:`16596`.)" +"debugging :mod:`asyncio` based programs. (Contributed by Andrew Svetlov and " +"Xavier de Gaye in :issue:`16596`.)" #: ../../whatsnew/3.4.rst:1206 msgid "" @@ -2291,8 +2265,8 @@ msgid "" "``pdb`` did not have a ``print`` command; instead, entering ``print`` " "executed the ``print`` statement. In Python3 ``print`` was mistakenly made " "an alias for the pdb :pdbcmd:`p` command. ``p``, however, prints the " -"``repr`` of its argument, not the ``str`` like the Python2 ``print`` command" -" did. Worse, the Python3 ``pdb print`` command shadowed the Python3 " +"``repr`` of its argument, not the ``str`` like the Python2 ``print`` command " +"did. Worse, the Python3 ``pdb print`` command shadowed the Python3 " "``print`` function, making it inaccessible at the ``pdb`` prompt. " "(Contributed by Connor Osborn in :issue:`18764`.)" msgstr "" @@ -2301,8 +2275,8 @@ msgstr "" "``pdb`` did not have a ``print`` command; instead, entering ``print`` " "executed the ``print`` statement. In Python3 ``print`` was mistakenly made " "an alias for the pdb :pdbcmd:`p` command. ``p``, however, prints the " -"``repr`` of its argument, not the ``str`` like the Python2 ``print`` command" -" did. Worse, the Python3 ``pdb print`` command shadowed the Python3 " +"``repr`` of its argument, not the ``str`` like the Python2 ``print`` command " +"did. Worse, the Python3 ``pdb print`` command shadowed the Python3 " "``print`` function, making it inaccessible at the ``pdb`` prompt. " "(Contributed by Connor Osborn in :issue:`18764`.)" @@ -2315,15 +2289,15 @@ msgid "" ":mod:`pickle` now supports (but does not use by default) a new pickle " "protocol, protocol 4. This new protocol addresses a number of issues that " "were present in previous protocols, such as the serialization of nested " -"classes, very large strings and containers, and classes whose " -":meth:`__new__` method takes keyword-only arguments. It also provides some " +"classes, very large strings and containers, and classes whose :meth:" +"`__new__` method takes keyword-only arguments. It also provides some " "efficiency improvements." msgstr "" ":mod:`pickle` now supports (but does not use by default) a new pickle " "protocol, protocol 4. This new protocol addresses a number of issues that " "were present in previous protocols, such as the serialization of nested " -"classes, very large strings and containers, and classes whose " -":meth:`__new__` method takes keyword-only arguments. It also provides some " +"classes, very large strings and containers, and classes whose :meth:" +"`__new__` method takes keyword-only arguments. It also provides some " "efficiency improvements." #: ../../whatsnew/3.4.rst:1230 @@ -2332,8 +2306,7 @@ msgstr ":pep:`3154` -- Pickle protocol 4" #: ../../whatsnew/3.4.rst:1231 msgid "PEP written by Antoine Pitrou and implemented by Alexandre Vassalotti." -msgstr "" -"PEP written by Antoine Pitrou and implemented by Alexandre Vassalotti." +msgstr "PEP written by Antoine Pitrou and implemented by Alexandre Vassalotti." #: ../../whatsnew/3.4.rst:1235 msgid "plistlib" @@ -2342,19 +2315,19 @@ msgstr "plistlib" #: ../../whatsnew/3.4.rst:1237 msgid "" ":mod:`plistlib` now has an API that is similar to the standard pattern for " -"stdlib serialization protocols, with new :func:`~plistlib.load`, " -":func:`~plistlib.dump`, :func:`~plistlib.loads`, and :func:`~plistlib.dumps`" -" functions. (The older API is now deprecated.) In addition to the already " -"supported XML plist format (:data:`~plistlib.FMT_XML`), it also now supports" -" the binary plist format (:data:`~plistlib.FMT_BINARY`). (Contributed by " +"stdlib serialization protocols, with new :func:`~plistlib.load`, :func:" +"`~plistlib.dump`, :func:`~plistlib.loads`, and :func:`~plistlib.dumps` " +"functions. (The older API is now deprecated.) In addition to the already " +"supported XML plist format (:data:`~plistlib.FMT_XML`), it also now supports " +"the binary plist format (:data:`~plistlib.FMT_BINARY`). (Contributed by " "Ronald Oussoren and others in :issue:`14455`.)" msgstr "" ":mod:`plistlib` now has an API that is similar to the standard pattern for " -"stdlib serialization protocols, with new :func:`~plistlib.load`, " -":func:`~plistlib.dump`, :func:`~plistlib.loads`, and :func:`~plistlib.dumps`" -" functions. (The older API is now deprecated.) In addition to the already " -"supported XML plist format (:data:`~plistlib.FMT_XML`), it also now supports" -" the binary plist format (:data:`~plistlib.FMT_BINARY`). (Contributed by " +"stdlib serialization protocols, with new :func:`~plistlib.load`, :func:" +"`~plistlib.dump`, :func:`~plistlib.loads`, and :func:`~plistlib.dumps` " +"functions. (The older API is now deprecated.) In addition to the already " +"supported XML plist format (:data:`~plistlib.FMT_XML`), it also now supports " +"the binary plist format (:data:`~plistlib.FMT_BINARY`). (Contributed by " "Ronald Oussoren and others in :issue:`14455`.)" #: ../../whatsnew/3.4.rst:1247 @@ -2363,15 +2336,15 @@ msgstr "poplib" #: ../../whatsnew/3.4.rst:1249 msgid "" -"Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`," -" which returns the list of capabilities advertised by the POP server, and " -":meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an " +"Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`, " +"which returns the list of capabilities advertised by the POP server, and :" +"meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an " "encrypted POP3 session if the POP server supports it. (Contributed by " "Lorenzo Catucci in :issue:`4473`.)" msgstr "" -"Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`," -" which returns the list of capabilities advertised by the POP server, and " -":meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an " +"Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`, " +"which returns the list of capabilities advertised by the POP server, and :" +"meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an " "encrypted POP3 session if the POP server supports it. (Contributed by " "Lorenzo Catucci in :issue:`4473`.)" @@ -2381,15 +2354,15 @@ msgstr "pprint" #: ../../whatsnew/3.4.rst:1259 msgid "" -"The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its " -":func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new " +"The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its :" +"func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new " "option, *compact*, that controls how the output is formatted. Currently " "setting *compact* to ``True`` means that sequences will be printed with as " "many sequence elements as will fit within *width* on each (indented) line. " "(Contributed by Serhiy Storchaka in :issue:`19132`.)" msgstr "" -"The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its " -":func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new " +"The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its :" +"func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new " "option, *compact*, that controls how the output is formatted. Currently " "setting *compact* to ``True`` means that sequences will be printed with as " "many sequence elements as will fit within *width* on each (indented) line. " @@ -2397,11 +2370,11 @@ msgstr "" #: ../../whatsnew/3.4.rst:1266 msgid "" -"Long strings are now wrapped using Python's normal line continuation syntax." -" (Contributed by Antoine Pitrou in :issue:`17150`.)" +"Long strings are now wrapped using Python's normal line continuation " +"syntax. (Contributed by Antoine Pitrou in :issue:`17150`.)" msgstr "" -"Long strings are now wrapped using Python's normal line continuation syntax." -" (Contributed by Antoine Pitrou in :issue:`17150`.)" +"Long strings are now wrapped using Python's normal line continuation " +"syntax. (Contributed by Antoine Pitrou in :issue:`17150`.)" #: ../../whatsnew/3.4.rst:1271 msgid "pty" @@ -2421,51 +2394,49 @@ msgstr "pydoc" #: ../../whatsnew/3.4.rst:1280 msgid "" -"The :mod:`pydoc` module is now based directly on the " -":func:`inspect.signature` introspection API, allowing it to provide " -"signature information for a wider variety of callable objects. This change " -"also means that ``__wrapped__`` attributes are now taken into account when " -"displaying help information. (Contributed by Larry Hastings in " -":issue:`19674`.)" +"The :mod:`pydoc` module is now based directly on the :func:`inspect." +"signature` introspection API, allowing it to provide signature information " +"for a wider variety of callable objects. This change also means that " +"``__wrapped__`` attributes are now taken into account when displaying help " +"information. (Contributed by Larry Hastings in :issue:`19674`.)" msgstr "" -"The :mod:`pydoc` module is now based directly on the " -":func:`inspect.signature` introspection API, allowing it to provide " -"signature information for a wider variety of callable objects. This change " -"also means that ``__wrapped__`` attributes are now taken into account when " -"displaying help information. (Contributed by Larry Hastings in " -":issue:`19674`.)" +"The :mod:`pydoc` module is now based directly on the :func:`inspect." +"signature` introspection API, allowing it to provide signature information " +"for a wider variety of callable objects. This change also means that " +"``__wrapped__`` attributes are now taken into account when displaying help " +"information. (Contributed by Larry Hastings in :issue:`19674`.)" #: ../../whatsnew/3.4.rst:1286 msgid "" "The :mod:`pydoc` module no longer displays the ``self`` parameter for " "already bound methods. Instead, it aims to always display the exact current " -"signature of the supplied callable. (Contributed by Larry Hastings in " -":issue:`20710`.)" +"signature of the supplied callable. (Contributed by Larry Hastings in :" +"issue:`20710`.)" msgstr "" "The :mod:`pydoc` module no longer displays the ``self`` parameter for " "already bound methods. Instead, it aims to always display the exact current " -"signature of the supplied callable. (Contributed by Larry Hastings in " -":issue:`20710`.)" +"signature of the supplied callable. (Contributed by Larry Hastings in :" +"issue:`20710`.)" #: ../../whatsnew/3.4.rst:1291 msgid "" -"In addition to the changes that have been made to :mod:`pydoc` directly, its" -" handling of custom ``__dir__`` methods and various descriptor behaviours " -"has also been improved substantially by the underlying changes in the " -":mod:`inspect` module." +"In addition to the changes that have been made to :mod:`pydoc` directly, its " +"handling of custom ``__dir__`` methods and various descriptor behaviours has " +"also been improved substantially by the underlying changes in the :mod:" +"`inspect` module." msgstr "" -"In addition to the changes that have been made to :mod:`pydoc` directly, its" -" handling of custom ``__dir__`` methods and various descriptor behaviours " -"has also been improved substantially by the underlying changes in the " -":mod:`inspect` module." +"In addition to the changes that have been made to :mod:`pydoc` directly, its " +"handling of custom ``__dir__`` methods and various descriptor behaviours has " +"also been improved substantially by the underlying changes in the :mod:" +"`inspect` module." #: ../../whatsnew/3.4.rst:1296 msgid "" -"As the :func:`help` builtin is based on :mod:`pydoc`, the above changes also" -" affect the behaviour of :func:`help`." +"As the :func:`help` builtin is based on :mod:`pydoc`, the above changes also " +"affect the behaviour of :func:`help`." msgstr "" -"As the :func:`help` builtin is based on :mod:`pydoc`, the above changes also" -" affect the behaviour of :func:`help`." +"As the :func:`help` builtin is based on :mod:`pydoc`, the above changes also " +"affect the behaviour of :func:`help`." #: ../../whatsnew/3.4.rst:1301 msgid "re" @@ -2474,15 +2445,15 @@ msgstr "re" #: ../../whatsnew/3.4.rst:1303 msgid "" "New :func:`~re.fullmatch` function and :meth:`.regex.fullmatch` method " -"anchor the pattern at both ends of the string to match. This provides a way" -" to be explicit about the goal of the match, which avoids a class of subtle " +"anchor the pattern at both ends of the string to match. This provides a way " +"to be explicit about the goal of the match, which avoids a class of subtle " "bugs where ``$`` characters get lost during code changes or the addition of " "alternatives to an existing regular expression. (Contributed by Matthew " "Barnett in :issue:`16203`.)" msgstr "" "New :func:`~re.fullmatch` function and :meth:`.regex.fullmatch` method " -"anchor the pattern at both ends of the string to match. This provides a way" -" to be explicit about the goal of the match, which avoids a class of subtle " +"anchor the pattern at both ends of the string to match. This provides a way " +"to be explicit about the goal of the match, which avoids a class of subtle " "bugs where ``$`` characters get lost during code changes or the addition of " "alternatives to an existing regular expression. (Contributed by Matthew " "Barnett in :issue:`16203`.)" @@ -2490,13 +2461,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:1310 msgid "" "The repr of :ref:`regex objects ` now includes the pattern and " -"the flags; the repr of :ref:`match objects ` now includes the" -" start, end, and the part of the string that matched. (Contributed by Hugo " +"the flags; the repr of :ref:`match objects ` now includes the " +"start, end, and the part of the string that matched. (Contributed by Hugo " "Lopes Tavares and Serhiy Storchaka in :issue:`13592` and :issue:`17087`.)" msgstr "" "The repr of :ref:`regex objects ` now includes the pattern and " -"the flags; the repr of :ref:`match objects ` now includes the" -" start, end, and the part of the string that matched. (Contributed by Hugo " +"the flags; the repr of :ref:`match objects ` now includes the " +"start, end, and the part of the string that matched. (Contributed by Hugo " "Lopes Tavares and Serhiy Storchaka in :issue:`13592` and :issue:`17087`.)" #: ../../whatsnew/3.4.rst:1318 @@ -2507,39 +2478,37 @@ msgstr "resource" msgid "" "New :func:`~resource.prlimit` function, available on Linux platforms with a " "kernel version of 2.6.36 or later and glibc of 2.13 or later, provides the " -"ability to query or set the resource limits for processes other than the one" -" making the call. (Contributed by Christian Heimes in :issue:`16595`.)" +"ability to query or set the resource limits for processes other than the one " +"making the call. (Contributed by Christian Heimes in :issue:`16595`.)" msgstr "" "New :func:`~resource.prlimit` function, available on Linux platforms with a " "kernel version of 2.6.36 or later and glibc of 2.13 or later, provides the " -"ability to query or set the resource limits for processes other than the one" -" making the call. (Contributed by Christian Heimes in :issue:`16595`.)" +"ability to query or set the resource limits for processes other than the one " +"making the call. (Contributed by Christian Heimes in :issue:`16595`.)" #: ../../whatsnew/3.4.rst:1325 msgid "" "On Linux kernel version 2.6.36 or later, there are also some new Linux " -"specific constants: :attr:`~resource.RLIMIT_MSGQUEUE`, " -":attr:`~resource.RLIMIT_NICE`, :attr:`~resource.RLIMIT_RTPRIO`, " -":attr:`~resource.RLIMIT_RTTIME`, and :attr:`~resource.RLIMIT_SIGPENDING`. " -"(Contributed by Christian Heimes in :issue:`19324`.)" +"specific constants: :attr:`~resource.RLIMIT_MSGQUEUE`, :attr:`~resource." +"RLIMIT_NICE`, :attr:`~resource.RLIMIT_RTPRIO`, :attr:`~resource." +"RLIMIT_RTTIME`, and :attr:`~resource.RLIMIT_SIGPENDING`. (Contributed by " +"Christian Heimes in :issue:`19324`.)" msgstr "" "On Linux kernel version 2.6.36 or later, there are also some new Linux " -"specific constants: :attr:`~resource.RLIMIT_MSGQUEUE`, " -":attr:`~resource.RLIMIT_NICE`, :attr:`~resource.RLIMIT_RTPRIO`, " -":attr:`~resource.RLIMIT_RTTIME`, and :attr:`~resource.RLIMIT_SIGPENDING`. " -"(Contributed by Christian Heimes in :issue:`19324`.)" +"specific constants: :attr:`~resource.RLIMIT_MSGQUEUE`, :attr:`~resource." +"RLIMIT_NICE`, :attr:`~resource.RLIMIT_RTPRIO`, :attr:`~resource." +"RLIMIT_RTTIME`, and :attr:`~resource.RLIMIT_SIGPENDING`. (Contributed by " +"Christian Heimes in :issue:`19324`.)" #: ../../whatsnew/3.4.rst:1331 msgid "" -"On FreeBSD version 9 and later, there some new FreeBSD specific constants: " -":attr:`~resource.RLIMIT_SBSIZE`, :attr:`~resource.RLIMIT_SWAP`, and " -":attr:`~resource.RLIMIT_NPTS`. (Contributed by Claudiu Popa in " -":issue:`19343`.)" +"On FreeBSD version 9 and later, there some new FreeBSD specific constants: :" +"attr:`~resource.RLIMIT_SBSIZE`, :attr:`~resource.RLIMIT_SWAP`, and :attr:" +"`~resource.RLIMIT_NPTS`. (Contributed by Claudiu Popa in :issue:`19343`.)" msgstr "" -"On FreeBSD version 9 and later, there some new FreeBSD specific constants: " -":attr:`~resource.RLIMIT_SBSIZE`, :attr:`~resource.RLIMIT_SWAP`, and " -":attr:`~resource.RLIMIT_NPTS`. (Contributed by Claudiu Popa in " -":issue:`19343`.)" +"On FreeBSD version 9 and later, there some new FreeBSD specific constants: :" +"attr:`~resource.RLIMIT_SBSIZE`, :attr:`~resource.RLIMIT_SWAP`, and :attr:" +"`~resource.RLIMIT_NPTS`. (Contributed by Claudiu Popa in :issue:`19343`.)" #: ../../whatsnew/3.4.rst:1338 msgid "select" @@ -2559,15 +2528,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:1345 msgid "" -":class:`~select.devpoll` objects now have :meth:`~select.devpoll.fileno` and" -" :meth:`~select.devpoll.close` methods, as well as a new attribute " -":attr:`~select.devpoll.closed`. (Contributed by Victor Stinner in " -":issue:`18794`.)" +":class:`~select.devpoll` objects now have :meth:`~select.devpoll.fileno` " +"and :meth:`~select.devpoll.close` methods, as well as a new attribute :attr:" +"`~select.devpoll.closed`. (Contributed by Victor Stinner in :issue:`18794`.)" msgstr "" -":class:`~select.devpoll` objects now have :meth:`~select.devpoll.fileno` and" -" :meth:`~select.devpoll.close` methods, as well as a new attribute " -":attr:`~select.devpoll.closed`. (Contributed by Victor Stinner in " -":issue:`18794`.)" +":class:`~select.devpoll` objects now have :meth:`~select.devpoll.fileno` " +"and :meth:`~select.devpoll.close` methods, as well as a new attribute :attr:" +"`~select.devpoll.closed`. (Contributed by Victor Stinner in :issue:`18794`.)" #: ../../whatsnew/3.4.rst:1352 msgid "shelve" @@ -2576,9 +2543,8 @@ msgstr "shelve" #: ../../whatsnew/3.4.rst:1354 msgid "" ":class:`~shelve.Shelf` instances may now be used in :keyword:`with` " -"statements, and will be automatically closed at the end of the " -":keyword:`!with` block. (Contributed by Filip Gruszczyński in " -":issue:`13896`.)" +"statements, and will be automatically closed at the end of the :keyword:`!" +"with` block. (Contributed by Filip Gruszczyński in :issue:`13896`.)" msgstr "" #: ../../whatsnew/3.4.rst:1360 @@ -2590,14 +2556,14 @@ msgid "" ":func:`~shutil.copyfile` now raises a specific :exc:`~shutil.Error` " "subclass, :exc:`~shutil.SameFileError`, when the source and destination are " "the same file, which allows an application to take appropriate action on " -"this specific error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in " -":issue:`1492704`.)" +"this specific error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in :" +"issue:`1492704`.)" msgstr "" ":func:`~shutil.copyfile` now raises a specific :exc:`~shutil.Error` " "subclass, :exc:`~shutil.SameFileError`, when the source and destination are " "the same file, which allows an application to take appropriate action on " -"this specific error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in " -":issue:`1492704`.)" +"this specific error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in :" +"issue:`1492704`.)" #: ../../whatsnew/3.4.rst:1370 msgid "smtpd" @@ -2606,16 +2572,16 @@ msgstr "smtpd" #: ../../whatsnew/3.4.rst:1372 msgid "" "The :class:`~smtpd.SMTPServer` and :class:`~smtpd.SMTPChannel` classes now " -"accept a *map* keyword argument which, if specified, is passed in to " -":class:`asynchat.async_chat` as its *map* argument. This allows an " -"application to avoid affecting the global socket map. (Contributed by Vinay" -" Sajip in :issue:`11959`.)" +"accept a *map* keyword argument which, if specified, is passed in to :class:" +"`asynchat.async_chat` as its *map* argument. This allows an application to " +"avoid affecting the global socket map. (Contributed by Vinay Sajip in :" +"issue:`11959`.)" msgstr "" "The :class:`~smtpd.SMTPServer` and :class:`~smtpd.SMTPChannel` classes now " -"accept a *map* keyword argument which, if specified, is passed in to " -":class:`asynchat.async_chat` as its *map* argument. This allows an " -"application to avoid affecting the global socket map. (Contributed by Vinay" -" Sajip in :issue:`11959`.)" +"accept a *map* keyword argument which, if specified, is passed in to :class:" +"`asynchat.async_chat` as its *map* argument. This allows an application to " +"avoid affecting the global socket map. (Contributed by Vinay Sajip in :" +"issue:`11959`.)" #: ../../whatsnew/3.4.rst:1380 msgid "smtplib" @@ -2648,22 +2614,22 @@ msgstr "" #: ../../whatsnew/3.4.rst:1394 msgid "" "Socket objects have new methods to get or set their :ref:`inheritable flag " -"`, :meth:`~socket.socket.get_inheritable` and " -":meth:`~socket.socket.set_inheritable`." +"`, :meth:`~socket.socket.get_inheritable` and :meth:`~socket." +"socket.set_inheritable`." msgstr "" "Socket objects have new methods to get or set their :ref:`inheritable flag " -"`, :meth:`~socket.socket.get_inheritable` and " -":meth:`~socket.socket.set_inheritable`." +"`, :meth:`~socket.socket.get_inheritable` and :meth:`~socket." +"socket.set_inheritable`." #: ../../whatsnew/3.4.rst:1398 msgid "" "The ``socket.AF_*`` and ``socket.SOCK_*`` constants are now enumeration " -"values using the new :mod:`enum` module. This allows meaningful names to be" -" printed during debugging, instead of integer \"magic numbers\"." +"values using the new :mod:`enum` module. This allows meaningful names to be " +"printed during debugging, instead of integer \"magic numbers\"." msgstr "" "The ``socket.AF_*`` and ``socket.SOCK_*`` constants are now enumeration " -"values using the new :mod:`enum` module. This allows meaningful names to be" -" printed during debugging, instead of integer \"magic numbers\"." +"values using the new :mod:`enum` module. This allows meaningful names to be " +"printed during debugging, instead of integer \"magic numbers\"." #: ../../whatsnew/3.4.rst:1402 msgid "The :data:`~socket.AF_LINK` constant is now available on BSD and OSX." @@ -2671,11 +2637,11 @@ msgstr "The :data:`~socket.AF_LINK` constant is now available on BSD and OSX." #: ../../whatsnew/3.4.rst:1404 msgid "" -":func:`~socket.inet_pton` and :func:`~socket.inet_ntop` are now supported on" -" Windows. (Contributed by Atsuo Ishimoto in :issue:`7171`.)" +":func:`~socket.inet_pton` and :func:`~socket.inet_ntop` are now supported on " +"Windows. (Contributed by Atsuo Ishimoto in :issue:`7171`.)" msgstr "" -":func:`~socket.inet_pton` and :func:`~socket.inet_ntop` are now supported on" -" Windows. (Contributed by Atsuo Ishimoto in :issue:`7171`.)" +":func:`~socket.inet_pton` and :func:`~socket.inet_ntop` are now supported on " +"Windows. (Contributed by Atsuo Ishimoto in :issue:`7171`.)" #: ../../whatsnew/3.4.rst:1409 msgid "sqlite3" @@ -2683,13 +2649,13 @@ msgstr "sqlite3" #: ../../whatsnew/3.4.rst:1411 msgid "" -"A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can" -" be used to indicate that the *database* parameter is a ``uri`` (see the " +"A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can " +"be used to indicate that the *database* parameter is a ``uri`` (see the " "`SQLite URI documentation `_). " "(Contributed by poq in :issue:`13773`.)" msgstr "" -"A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can" -" be used to indicate that the *database* parameter is a ``uri`` (see the " +"A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can " +"be used to indicate that the *database* parameter is a ``uri`` (see the " "`SQLite URI documentation `_). " "(Contributed by poq in :issue:`13773`.)" @@ -2699,13 +2665,13 @@ msgstr "ssl" #: ../../whatsnew/3.4.rst:1422 msgid "" -":data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and" -" TLSv1.2 support) have been added; support for these protocols is only " +":data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and " +"TLSv1.2 support) have been added; support for these protocols is only " "available if Python is linked with OpenSSL 1.0.1 or later. (Contributed by " "Michele Orrù and Antoine Pitrou in :issue:`16692`.)" msgstr "" -":data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and" -" TLSv1.2 support) have been added; support for these protocols is only " +":data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and " +"TLSv1.2 support) have been added; support for these protocols is only " "available if Python is linked with OpenSSL 1.0.1 or later. (Contributed by " "Michele Orrù and Antoine Pitrou in :issue:`16692`.)" @@ -2717,11 +2683,10 @@ msgid "" "more stringent than the defaults provided by the :class:`~ssl.SSLContext` " "constructor, and may be adjusted in the future, without prior deprecation, " "if best-practice security requirements change. The new recommended best " -"practice for using stdlib libraries that support SSL is to use " -":func:`~ssl.create_default_context` to obtain an :class:`~ssl.SSLContext` " -"object, modify it if needed, and then pass it as the *context* argument of " -"the appropriate stdlib API. (Contributed by Christian Heimes in " -":issue:`19689`.)" +"practice for using stdlib libraries that support SSL is to use :func:`~ssl." +"create_default_context` to obtain an :class:`~ssl.SSLContext` object, modify " +"it if needed, and then pass it as the *context* argument of the appropriate " +"stdlib API. (Contributed by Christian Heimes in :issue:`19689`.)" msgstr "" "New function :func:`~ssl.create_default_context` provides a standard way to " "obtain an :class:`~ssl.SSLContext` whose settings are intended to be a " @@ -2729,131 +2694,124 @@ msgstr "" "more stringent than the defaults provided by the :class:`~ssl.SSLContext` " "constructor, and may be adjusted in the future, without prior deprecation, " "if best-practice security requirements change. The new recommended best " -"practice for using stdlib libraries that support SSL is to use " -":func:`~ssl.create_default_context` to obtain an :class:`~ssl.SSLContext` " -"object, modify it if needed, and then pass it as the *context* argument of " -"the appropriate stdlib API. (Contributed by Christian Heimes in " -":issue:`19689`.)" +"practice for using stdlib libraries that support SSL is to use :func:`~ssl." +"create_default_context` to obtain an :class:`~ssl.SSLContext` object, modify " +"it if needed, and then pass it as the *context* argument of the appropriate " +"stdlib API. (Contributed by Christian Heimes in :issue:`19689`.)" #: ../../whatsnew/3.4.rst:1441 msgid "" -":class:`~ssl.SSLContext` method " -":meth:`~ssl.SSLContext.load_verify_locations` accepts a new optional " -"argument *cadata*, which can be used to provide PEM or DER encoded " -"certificates directly via strings or bytes, respectively. (Contributed by " -"Christian Heimes in :issue:`18138`.)" +":class:`~ssl.SSLContext` method :meth:`~ssl.SSLContext." +"load_verify_locations` accepts a new optional argument *cadata*, which can " +"be used to provide PEM or DER encoded certificates directly via strings or " +"bytes, respectively. (Contributed by Christian Heimes in :issue:`18138`.)" msgstr "" -":class:`~ssl.SSLContext` method " -":meth:`~ssl.SSLContext.load_verify_locations` accepts a new optional " -"argument *cadata*, which can be used to provide PEM or DER encoded " -"certificates directly via strings or bytes, respectively. (Contributed by " -"Christian Heimes in :issue:`18138`.)" +":class:`~ssl.SSLContext` method :meth:`~ssl.SSLContext." +"load_verify_locations` accepts a new optional argument *cadata*, which can " +"be used to provide PEM or DER encoded certificates directly via strings or " +"bytes, respectively. (Contributed by Christian Heimes in :issue:`18138`.)" #: ../../whatsnew/3.4.rst:1446 msgid "" "New function :func:`~ssl.get_default_verify_paths` returns a named tuple of " -"the paths and environment variables that the " -":meth:`~ssl.SSLContext.set_default_verify_paths` method uses to set " -"OpenSSL's default ``cafile`` and ``capath``. This can be an aid in " -"debugging default verification issues. (Contributed by Christian Heimes in " -":issue:`18143`.)" +"the paths and environment variables that the :meth:`~ssl.SSLContext." +"set_default_verify_paths` method uses to set OpenSSL's default ``cafile`` " +"and ``capath``. This can be an aid in debugging default verification " +"issues. (Contributed by Christian Heimes in :issue:`18143`.)" msgstr "" "New function :func:`~ssl.get_default_verify_paths` returns a named tuple of " -"the paths and environment variables that the " -":meth:`~ssl.SSLContext.set_default_verify_paths` method uses to set " -"OpenSSL's default ``cafile`` and ``capath``. This can be an aid in " -"debugging default verification issues. (Contributed by Christian Heimes in " -":issue:`18143`.)" +"the paths and environment variables that the :meth:`~ssl.SSLContext." +"set_default_verify_paths` method uses to set OpenSSL's default ``cafile`` " +"and ``capath``. This can be an aid in debugging default verification " +"issues. (Contributed by Christian Heimes in :issue:`18143`.)" #: ../../whatsnew/3.4.rst:1453 msgid "" -":class:`~ssl.SSLContext` has a new method, " -":meth:`~ssl.SSLContext.cert_store_stats`, that reports the number of loaded " -"``X.509`` certs, ``X.509 CA`` certs, and certificate revocation lists " -"(``crl``\\ s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that" -" returns a list of the loaded ``CA`` certificates. (Contributed by " -"Christian Heimes in :issue:`18147`.)" +":class:`~ssl.SSLContext` has a new method, :meth:`~ssl.SSLContext." +"cert_store_stats`, that reports the number of loaded ``X.509`` certs, " +"``X.509 CA`` certs, and certificate revocation lists (``crl``\\ s), as well " +"as a :meth:`~ssl.SSLContext.get_ca_certs` method that returns a list of the " +"loaded ``CA`` certificates. (Contributed by Christian Heimes in :issue:" +"`18147`.)" msgstr "" -":class:`~ssl.SSLContext` has a new method, " -":meth:`~ssl.SSLContext.cert_store_stats`, that reports the number of loaded " -"``X.509`` certs, ``X.509 CA`` certs, and certificate revocation lists " -"(``crl``\\ s), as well as a :meth:`~ssl.SSLContext.get_ca_certs` method that" -" returns a list of the loaded ``CA`` certificates. (Contributed by " -"Christian Heimes in :issue:`18147`.)" +":class:`~ssl.SSLContext` has a new method, :meth:`~ssl.SSLContext." +"cert_store_stats`, that reports the number of loaded ``X.509`` certs, " +"``X.509 CA`` certs, and certificate revocation lists (``crl``\\ s), as well " +"as a :meth:`~ssl.SSLContext.get_ca_certs` method that returns a list of the " +"loaded ``CA`` certificates. (Contributed by Christian Heimes in :issue:" +"`18147`.)" #: ../../whatsnew/3.4.rst:1460 msgid "" "If OpenSSL 0.9.8 or later is available, :class:`~ssl.SSLContext` has a new " "attribute :attr:`~ssl.SSLContext.verify_flags` that can be used to control " "the certificate verification process by setting it to some combination of " -"the new constants :data:`~ssl.VERIFY_DEFAULT`, " -":data:`~ssl.VERIFY_CRL_CHECK_LEAF`, :data:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or " -":data:`~ssl.VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by" -" default. (Contributed by Christien Heimes in :issue:`8813`.)" +"the new constants :data:`~ssl.VERIFY_DEFAULT`, :data:`~ssl." +"VERIFY_CRL_CHECK_LEAF`, :data:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or :data:`~ssl." +"VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by default. " +"(Contributed by Christien Heimes in :issue:`8813`.)" msgstr "" "If OpenSSL 0.9.8 or later is available, :class:`~ssl.SSLContext` has a new " "attribute :attr:`~ssl.SSLContext.verify_flags` that can be used to control " "the certificate verification process by setting it to some combination of " -"the new constants :data:`~ssl.VERIFY_DEFAULT`, " -":data:`~ssl.VERIFY_CRL_CHECK_LEAF`, :data:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or " -":data:`~ssl.VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by" -" default. (Contributed by Christien Heimes in :issue:`8813`.)" +"the new constants :data:`~ssl.VERIFY_DEFAULT`, :data:`~ssl." +"VERIFY_CRL_CHECK_LEAF`, :data:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or :data:`~ssl." +"VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by default. " +"(Contributed by Christien Heimes in :issue:`8813`.)" #: ../../whatsnew/3.4.rst:1468 msgid "" -"New :class:`~ssl.SSLContext` method " -":meth:`~ssl.SSLContext.load_default_certs` loads a set of default " -"\"certificate authority\" (CA) certificates from default locations, which " -"vary according to the platform. It can be used to load both TLS web server " -"authentication certificates (``purpose=``:data:`~ssl.Purpose.SERVER_AUTH`) " -"for a client to use to verify a server, and certificates for a server to use" -" in verifying client certificates " -"(``purpose=``:data:`~ssl.Purpose.CLIENT_AUTH`). (Contributed by Christian " -"Heimes in :issue:`19292`.)" -msgstr "" -"New :class:`~ssl.SSLContext` method " -":meth:`~ssl.SSLContext.load_default_certs` loads a set of default " -"\"certificate authority\" (CA) certificates from default locations, which " -"vary according to the platform. It can be used to load both TLS web server " -"authentication certificates (``purpose=``:data:`~ssl.Purpose.SERVER_AUTH`) " -"for a client to use to verify a server, and certificates for a server to use" -" in verifying client certificates " -"(``purpose=``:data:`~ssl.Purpose.CLIENT_AUTH`). (Contributed by Christian " -"Heimes in :issue:`19292`.)" +"New :class:`~ssl.SSLContext` method :meth:`~ssl.SSLContext." +"load_default_certs` loads a set of default \"certificate authority\" (CA) " +"certificates from default locations, which vary according to the platform. " +"It can be used to load both TLS web server authentication certificates " +"(``purpose=``:data:`~ssl.Purpose.SERVER_AUTH`) for a client to use to verify " +"a server, and certificates for a server to use in verifying client " +"certificates (``purpose=``:data:`~ssl.Purpose.CLIENT_AUTH`). (Contributed " +"by Christian Heimes in :issue:`19292`.)" +msgstr "" +"New :class:`~ssl.SSLContext` method :meth:`~ssl.SSLContext." +"load_default_certs` loads a set of default \"certificate authority\" (CA) " +"certificates from default locations, which vary according to the platform. " +"It can be used to load both TLS web server authentication certificates " +"(``purpose=``:data:`~ssl.Purpose.SERVER_AUTH`) for a client to use to verify " +"a server, and certificates for a server to use in verifying client " +"certificates (``purpose=``:data:`~ssl.Purpose.CLIENT_AUTH`). (Contributed " +"by Christian Heimes in :issue:`19292`.)" #: ../../whatsnew/3.4.rst:1479 msgid "" -"Two new windows-only functions, :func:`~ssl.enum_certificates` and " -":func:`~ssl.enum_crls` provide the ability to retrieve certificates, " -"certificate information, and CRLs from the Windows cert store. (Contributed" -" by Christian Heimes in :issue:`17134`.)" +"Two new windows-only functions, :func:`~ssl.enum_certificates` and :func:" +"`~ssl.enum_crls` provide the ability to retrieve certificates, certificate " +"information, and CRLs from the Windows cert store. (Contributed by " +"Christian Heimes in :issue:`17134`.)" msgstr "" -"Two new windows-only functions, :func:`~ssl.enum_certificates` and " -":func:`~ssl.enum_crls` provide the ability to retrieve certificates, " -"certificate information, and CRLs from the Windows cert store. (Contributed" -" by Christian Heimes in :issue:`17134`.)" +"Two new windows-only functions, :func:`~ssl.enum_certificates` and :func:" +"`~ssl.enum_crls` provide the ability to retrieve certificates, certificate " +"information, and CRLs from the Windows cert store. (Contributed by " +"Christian Heimes in :issue:`17134`.)" #: ../../whatsnew/3.4.rst:1486 msgid "" -"Support for server-side SNI (Server Name Indication) using the new " -":meth:`ssl.SSLContext.set_servername_callback` method. (Contributed by " -"Daniel Black in :issue:`8109`.)" +"Support for server-side SNI (Server Name Indication) using the new :meth:" +"`ssl.SSLContext.set_servername_callback` method. (Contributed by Daniel " +"Black in :issue:`8109`.)" msgstr "" -"Support for server-side SNI (Server Name Indication) using the new " -":meth:`ssl.SSLContext.set_servername_callback` method. (Contributed by " -"Daniel Black in :issue:`8109`.)" +"Support for server-side SNI (Server Name Indication) using the new :meth:" +"`ssl.SSLContext.set_servername_callback` method. (Contributed by Daniel " +"Black in :issue:`8109`.)" #: ../../whatsnew/3.4.rst:1490 msgid "" "The dictionary returned by :meth:`.SSLSocket.getpeercert` contains " "additional ``X509v3`` extension items: ``crlDistributionPoints``, " -"``calIssuers``, and ``OCSP`` URIs. (Contributed by Christian Heimes in " -":issue:`18379`.)" +"``calIssuers``, and ``OCSP`` URIs. (Contributed by Christian Heimes in :" +"issue:`18379`.)" msgstr "" "The dictionary returned by :meth:`.SSLSocket.getpeercert` contains " "additional ``X509v3`` extension items: ``crlDistributionPoints``, " -"``calIssuers``, and ``OCSP`` URIs. (Contributed by Christian Heimes in " -":issue:`18379`.)" +"``calIssuers``, and ``OCSP`` URIs. (Contributed by Christian Heimes in :" +"issue:`18379`.)" #: ../../whatsnew/3.4.rst:1496 msgid "stat" @@ -2862,24 +2820,22 @@ msgstr "stat" #: ../../whatsnew/3.4.rst:1498 msgid "" "The :mod:`stat` module is now backed by a C implementation in :mod:`_stat`. " -"A C implementation is required as most of the values aren't standardized and" -" are platform-dependent. (Contributed by Christian Heimes in " -":issue:`11016`.)" +"A C implementation is required as most of the values aren't standardized and " +"are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.)" msgstr "" "The :mod:`stat` module is now backed by a C implementation in :mod:`_stat`. " -"A C implementation is required as most of the values aren't standardized and" -" are platform-dependent. (Contributed by Christian Heimes in " -":issue:`11016`.)" +"A C implementation is required as most of the values aren't standardized and " +"are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.)" #: ../../whatsnew/3.4.rst:1502 msgid "" -"The module supports new :mod:`~stat.ST_MODE` flags, :mod:`~stat.S_IFDOOR`, " -":attr:`~stat.S_IFPORT`, and :attr:`~stat.S_IFWHT`. (Contributed by " -"Christian Hiemes in :issue:`11016`.)" +"The module supports new :mod:`~stat.ST_MODE` flags, :mod:`~stat.S_IFDOOR`, :" +"attr:`~stat.S_IFPORT`, and :attr:`~stat.S_IFWHT`. (Contributed by Christian " +"Hiemes in :issue:`11016`.)" msgstr "" -"The module supports new :mod:`~stat.ST_MODE` flags, :mod:`~stat.S_IFDOOR`, " -":attr:`~stat.S_IFPORT`, and :attr:`~stat.S_IFWHT`. (Contributed by " -"Christian Hiemes in :issue:`11016`.)" +"The module supports new :mod:`~stat.ST_MODE` flags, :mod:`~stat.S_IFDOOR`, :" +"attr:`~stat.S_IFPORT`, and :attr:`~stat.S_IFWHT`. (Contributed by Christian " +"Hiemes in :issue:`11016`.)" #: ../../whatsnew/3.4.rst:1508 msgid "struct" @@ -2887,15 +2843,15 @@ msgstr "struct" #: ../../whatsnew/3.4.rst:1510 msgid "" -"New function :mod:`~struct.iter_unpack` and a new " -":meth:`struct.Struct.iter_unpack` method on compiled formats provide " -"streamed unpacking of a buffer containing repeated instances of a given " -"format of data. (Contributed by Antoine Pitrou in :issue:`17804`.)" +"New function :mod:`~struct.iter_unpack` and a new :meth:`struct.Struct." +"iter_unpack` method on compiled formats provide streamed unpacking of a " +"buffer containing repeated instances of a given format of data. (Contributed " +"by Antoine Pitrou in :issue:`17804`.)" msgstr "" -"New function :mod:`~struct.iter_unpack` and a new " -":meth:`struct.Struct.iter_unpack` method on compiled formats provide " -"streamed unpacking of a buffer containing repeated instances of a given " -"format of data. (Contributed by Antoine Pitrou in :issue:`17804`.)" +"New function :mod:`~struct.iter_unpack` and a new :meth:`struct.Struct." +"iter_unpack` method on compiled formats provide streamed unpacking of a " +"buffer containing repeated instances of a given format of data. (Contributed " +"by Antoine Pitrou in :issue:`17804`.)" #: ../../whatsnew/3.4.rst:1517 msgid "subprocess" @@ -2903,12 +2859,12 @@ msgstr "subprocess" #: ../../whatsnew/3.4.rst:1519 msgid "" -":func:`~subprocess.check_output` now accepts an *input* argument that can be" -" used to provide the contents of ``stdin`` for the command that is run. " +":func:`~subprocess.check_output` now accepts an *input* argument that can be " +"used to provide the contents of ``stdin`` for the command that is run. " "(Contributed by Zack Weinberg in :issue:`16624`.)" msgstr "" -":func:`~subprocess.check_output` now accepts an *input* argument that can be" -" used to provide the contents of ``stdin`` for the command that is run. " +":func:`~subprocess.check_output` now accepts an *input* argument that can be " +"used to provide the contents of ``stdin`` for the command that is run. " "(Contributed by Zack Weinberg in :issue:`16624`.)" #: ../../whatsnew/3.4.rst:1523 @@ -2936,13 +2892,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:1534 msgid "" ":meth:`sunau.open` now supports the context management protocol: when used " -"in a :keyword:`with` block, the ``close`` method of the returned object will" -" be called automatically at the end of the block. (Contributed by Serhiy " +"in a :keyword:`with` block, the ``close`` method of the returned object will " +"be called automatically at the end of the block. (Contributed by Serhiy " "Storchaka in :issue:`18878`.)" msgstr "" ":meth:`sunau.open` now supports the context management protocol: when used " -"in a :keyword:`with` block, the ``close`` method of the returned object will" -" be called automatically at the end of the block. (Contributed by Serhiy " +"in a :keyword:`with` block, the ``close`` method of the returned object will " +"be called automatically at the end of the block. (Contributed by Serhiy " "Storchaka in :issue:`18878`.)" #: ../../whatsnew/3.4.rst:1539 @@ -2957,13 +2913,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:1543 msgid "" -"The :meth:`~sunau.AU_write.writeframesraw` and " -":meth:`~sunau.AU_write.writeframes` methods now accept any :term:`bytes-like" -" object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)" +"The :meth:`~sunau.AU_write.writeframesraw` and :meth:`~sunau.AU_write." +"writeframes` methods now accept any :term:`bytes-like object`. (Contributed " +"by Serhiy Storchaka in :issue:`8311`.)" msgstr "" -"The :meth:`~sunau.AU_write.writeframesraw` and " -":meth:`~sunau.AU_write.writeframes` methods now accept any :term:`bytes-like" -" object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)" +"The :meth:`~sunau.AU_write.writeframesraw` and :meth:`~sunau.AU_write." +"writeframes` methods now accept any :term:`bytes-like object`. (Contributed " +"by Serhiy Storchaka in :issue:`8311`.)" #: ../../whatsnew/3.4.rst:1549 msgid "sys" @@ -2973,45 +2929,45 @@ msgstr "sys" msgid "" "New function :func:`sys.getallocatedblocks` returns the current number of " "blocks allocated by the interpreter. (In CPython with the default ``--with-" -"pymalloc`` setting, this is allocations made through the " -":c:func:`PyObject_Malloc` API.) This can be useful for tracking memory " -"leaks, especially if automated via a test suite. (Contributed by Antoine " -"Pitrou in :issue:`13390`.)" +"pymalloc`` setting, this is allocations made through the :c:func:" +"`PyObject_Malloc` API.) This can be useful for tracking memory leaks, " +"especially if automated via a test suite. (Contributed by Antoine Pitrou " +"in :issue:`13390`.)" msgstr "" "New function :func:`sys.getallocatedblocks` returns the current number of " "blocks allocated by the interpreter. (In CPython with the default ``--with-" -"pymalloc`` setting, this is allocations made through the " -":c:func:`PyObject_Malloc` API.) This can be useful for tracking memory " -"leaks, especially if automated via a test suite. (Contributed by Antoine " -"Pitrou in :issue:`13390`.)" +"pymalloc`` setting, this is allocations made through the :c:func:" +"`PyObject_Malloc` API.) This can be useful for tracking memory leaks, " +"especially if automated via a test suite. (Contributed by Antoine Pitrou " +"in :issue:`13390`.)" #: ../../whatsnew/3.4.rst:1558 msgid "" "When the Python interpreter starts in :ref:`interactive mode `, it checks for an :data:`~sys.__interactivehook__` attribute " -"on the :mod:`sys` module. If the attribute exists, its value is called with" -" no arguments just before interactive mode is started. The check is made " -"after the :envvar:`PYTHONSTARTUP` file is read, so it can be set there. The" -" :mod:`site` module :ref:`sets it ` to a function that " -"enables tab completion and history saving (in :file:`~/.python-history`) if " -"the platform supports :mod:`readline`. If you do not want this (new) " -"behavior, you can override it in :envvar:`PYTHONSTARTUP`, " -":mod:`sitecustomize`, or :mod:`usercustomize` by deleting this attribute " -"from :mod:`sys` (or setting it to some other callable). (Contributed by " -"Éric Araujo and Antoine Pitrou in :issue:`5845`.)" +"on the :mod:`sys` module. If the attribute exists, its value is called with " +"no arguments just before interactive mode is started. The check is made " +"after the :envvar:`PYTHONSTARTUP` file is read, so it can be set there. " +"The :mod:`site` module :ref:`sets it ` to a function " +"that enables tab completion and history saving (in :file:`~/.python-" +"history`) if the platform supports :mod:`readline`. If you do not want this " +"(new) behavior, you can override it in :envvar:`PYTHONSTARTUP`, :mod:" +"`sitecustomize`, or :mod:`usercustomize` by deleting this attribute from :" +"mod:`sys` (or setting it to some other callable). (Contributed by Éric " +"Araujo and Antoine Pitrou in :issue:`5845`.)" msgstr "" "When the Python interpreter starts in :ref:`interactive mode `, it checks for an :data:`~sys.__interactivehook__` attribute " -"on the :mod:`sys` module. If the attribute exists, its value is called with" -" no arguments just before interactive mode is started. The check is made " -"after the :envvar:`PYTHONSTARTUP` file is read, so it can be set there. The" -" :mod:`site` module :ref:`sets it ` to a function that " -"enables tab completion and history saving (in :file:`~/.python-history`) if " -"the platform supports :mod:`readline`. If you do not want this (new) " -"behavior, you can override it in :envvar:`PYTHONSTARTUP`, " -":mod:`sitecustomize`, or :mod:`usercustomize` by deleting this attribute " -"from :mod:`sys` (or setting it to some other callable). (Contributed by " -"Éric Araujo and Antoine Pitrou in :issue:`5845`.)" +"on the :mod:`sys` module. If the attribute exists, its value is called with " +"no arguments just before interactive mode is started. The check is made " +"after the :envvar:`PYTHONSTARTUP` file is read, so it can be set there. " +"The :mod:`site` module :ref:`sets it ` to a function " +"that enables tab completion and history saving (in :file:`~/.python-" +"history`) if the platform supports :mod:`readline`. If you do not want this " +"(new) behavior, you can override it in :envvar:`PYTHONSTARTUP`, :mod:" +"`sitecustomize`, or :mod:`usercustomize` by deleting this attribute from :" +"mod:`sys` (or setting it to some other callable). (Contributed by Éric " +"Araujo and Antoine Pitrou in :issue:`5845`.)" #: ../../whatsnew/3.4.rst:1573 msgid "tarfile" @@ -3021,13 +2977,13 @@ msgstr "tarfile" msgid "" "The :mod:`tarfile` module now supports a simple :ref:`tarfile-commandline` " "when called as a script directly or via ``-m``. This can be used to create " -"and extract tarfile archives. (Contributed by Berker Peksag in " -":issue:`13477`.)" +"and extract tarfile archives. (Contributed by Berker Peksag in :issue:" +"`13477`.)" msgstr "" "The :mod:`tarfile` module now supports a simple :ref:`tarfile-commandline` " "when called as a script directly or via ``-m``. This can be used to create " -"and extract tarfile archives. (Contributed by Berker Peksag in " -":issue:`13477`.)" +"and extract tarfile archives. (Contributed by Berker Peksag in :issue:" +"`13477`.)" #: ../../whatsnew/3.4.rst:1581 msgid "textwrap" @@ -3037,25 +2993,25 @@ msgstr "textwrap" msgid "" "The :class:`~textwrap.TextWrapper` class has two new attributes/constructor " "arguments: :attr:`~textwrap.TextWrapper.max_lines`, which limits the number " -"of lines in the output, and :attr:`~textwrap.TextWrapper.placeholder`, which" -" is a string that will appear at the end of the output if it has been " +"of lines in the output, and :attr:`~textwrap.TextWrapper.placeholder`, which " +"is a string that will appear at the end of the output if it has been " "truncated because of *max_lines*. Building on these capabilities, a new " "convenience function :func:`~textwrap.shorten` collapses all of the " "whitespace in the input to single spaces and produces a single line of a " "given *width* that ends with the *placeholder* (by default, ``[...]``). " -"(Contributed by Antoine Pitrou and Serhiy Storchaka in :issue:`18585` and " -":issue:`18725`.)" +"(Contributed by Antoine Pitrou and Serhiy Storchaka in :issue:`18585` and :" +"issue:`18725`.)" msgstr "" "The :class:`~textwrap.TextWrapper` class has two new attributes/constructor " "arguments: :attr:`~textwrap.TextWrapper.max_lines`, which limits the number " -"of lines in the output, and :attr:`~textwrap.TextWrapper.placeholder`, which" -" is a string that will appear at the end of the output if it has been " +"of lines in the output, and :attr:`~textwrap.TextWrapper.placeholder`, which " +"is a string that will appear at the end of the output if it has been " "truncated because of *max_lines*. Building on these capabilities, a new " "convenience function :func:`~textwrap.shorten` collapses all of the " "whitespace in the input to single spaces and produces a single line of a " "given *width* that ends with the *placeholder* (by default, ``[...]``). " -"(Contributed by Antoine Pitrou and Serhiy Storchaka in :issue:`18585` and " -":issue:`18725`.)" +"(Contributed by Antoine Pitrou and Serhiy Storchaka in :issue:`18585` and :" +"issue:`18725`.)" #: ../../whatsnew/3.4.rst:1595 msgid "threading" @@ -3081,13 +3037,13 @@ msgstr "traceback" msgid "" "A new :func:`traceback.clear_frames` function takes a traceback object and " "clears the local variables in all of the frames it references, reducing the " -"amount of memory consumed. (Contributed by Andrew Kuchling in " -":issue:`1565525`.)" +"amount of memory consumed. (Contributed by Andrew Kuchling in :issue:" +"`1565525`.)" msgstr "" "A new :func:`traceback.clear_frames` function takes a traceback object and " "clears the local variables in all of the frames it references, reducing the " -"amount of memory consumed. (Contributed by Andrew Kuchling in " -":issue:`1565525`.)" +"amount of memory consumed. (Contributed by Andrew Kuchling in :issue:" +"`1565525`.)" #: ../../whatsnew/3.4.rst:1613 msgid "types" @@ -3099,15 +3055,15 @@ msgid "" "define an attribute that acts normally when looked up through an instance " "object, but which is routed to the *class* ``__getattr__`` when looked up " "through the class. This allows one to have properties active on a class, " -"and have virtual attributes on the class with the same name (see :mod:`Enum`" -" for an example). (Contributed by Ethan Furman in :issue:`19030`.)" +"and have virtual attributes on the class with the same name (see :mod:`Enum` " +"for an example). (Contributed by Ethan Furman in :issue:`19030`.)" msgstr "" "A new :func:`~types.DynamicClassAttribute` descriptor provides a way to " "define an attribute that acts normally when looked up through an instance " "object, but which is routed to the *class* ``__getattr__`` when looked up " "through the class. This allows one to have properties active on a class, " -"and have virtual attributes on the class with the same name (see :mod:`Enum`" -" for an example). (Contributed by Ethan Furman in :issue:`19030`.)" +"and have virtual attributes on the class with the same name (see :mod:`Enum` " +"for an example). (Contributed by Ethan Furman in :issue:`19030`.)" #: ../../whatsnew/3.4.rst:1624 msgid "urllib" @@ -3115,65 +3071,63 @@ msgstr "urllib" #: ../../whatsnew/3.4.rst:1626 msgid "" -":mod:`urllib.request` now supports ``data:`` URLs via the " -":class:`~urllib.request.DataHandler` class. (Contributed by Mathias " -"Panzenböck in :issue:`16423`.)" +":mod:`urllib.request` now supports ``data:`` URLs via the :class:`~urllib." +"request.DataHandler` class. (Contributed by Mathias Panzenböck in :issue:" +"`16423`.)" msgstr "" -":mod:`urllib.request` now supports ``data:`` URLs via the " -":class:`~urllib.request.DataHandler` class. (Contributed by Mathias " -"Panzenböck in :issue:`16423`.)" +":mod:`urllib.request` now supports ``data:`` URLs via the :class:`~urllib." +"request.DataHandler` class. (Contributed by Mathias Panzenböck in :issue:" +"`16423`.)" #: ../../whatsnew/3.4.rst:1630 msgid "" "The http method that will be used by a :class:`~urllib.request.Request` " -"class can now be specified by setting a " -":class:`~urllib.request.Request.method` class attribute on the subclass. " -"(Contributed by Jason R Coombs in :issue:`18978`.)" +"class can now be specified by setting a :class:`~urllib.request.Request." +"method` class attribute on the subclass. (Contributed by Jason R Coombs in :" +"issue:`18978`.)" msgstr "" "The http method that will be used by a :class:`~urllib.request.Request` " -"class can now be specified by setting a " -":class:`~urllib.request.Request.method` class attribute on the subclass. " -"(Contributed by Jason R Coombs in :issue:`18978`.)" +"class can now be specified by setting a :class:`~urllib.request.Request." +"method` class attribute on the subclass. (Contributed by Jason R Coombs in :" +"issue:`18978`.)" #: ../../whatsnew/3.4.rst:1635 msgid "" -":class:`~urllib.request.Request` objects are now reusable: if the " -":attr:`~urllib.request.Request.full_url` or " -":attr:`~urllib.request.Request.data` attributes are modified, all relevant " -"internal properties are updated. This means, for example, that it is now " -"possible to use the same :class:`~urllib.request.Request` object in more " -"than one :meth:`.OpenerDirector.open` call with different *data* arguments, " -"or to modify a :class:`~urllib.request.Request`\\ 's ``url`` rather than " -"recomputing it from scratch. There is also a new " -":meth:`~urllib.request.Request.remove_header` method that can be used to " -"remove headers from a :class:`~urllib.request.Request`. (Contributed by " -"Alexey Kachayev in :issue:`16464`, Daniel Wozniak in :issue:`17485`, and " -"Damien Brecht and Senthil Kumaran in :issue:`17272`.)" -msgstr "" -":class:`~urllib.request.Request` objects are now reusable: if the " -":attr:`~urllib.request.Request.full_url` or " -":attr:`~urllib.request.Request.data` attributes are modified, all relevant " -"internal properties are updated. This means, for example, that it is now " -"possible to use the same :class:`~urllib.request.Request` object in more " -"than one :meth:`.OpenerDirector.open` call with different *data* arguments, " -"or to modify a :class:`~urllib.request.Request`\\ 's ``url`` rather than " -"recomputing it from scratch. There is also a new " -":meth:`~urllib.request.Request.remove_header` method that can be used to " -"remove headers from a :class:`~urllib.request.Request`. (Contributed by " -"Alexey Kachayev in :issue:`16464`, Daniel Wozniak in :issue:`17485`, and " -"Damien Brecht and Senthil Kumaran in :issue:`17272`.)" +":class:`~urllib.request.Request` objects are now reusable: if the :attr:" +"`~urllib.request.Request.full_url` or :attr:`~urllib.request.Request.data` " +"attributes are modified, all relevant internal properties are updated. This " +"means, for example, that it is now possible to use the same :class:`~urllib." +"request.Request` object in more than one :meth:`.OpenerDirector.open` call " +"with different *data* arguments, or to modify a :class:`~urllib.request." +"Request`\\ 's ``url`` rather than recomputing it from scratch. There is " +"also a new :meth:`~urllib.request.Request.remove_header` method that can be " +"used to remove headers from a :class:`~urllib.request.Request`. " +"(Contributed by Alexey Kachayev in :issue:`16464`, Daniel Wozniak in :issue:" +"`17485`, and Damien Brecht and Senthil Kumaran in :issue:`17272`.)" +msgstr "" +":class:`~urllib.request.Request` objects are now reusable: if the :attr:" +"`~urllib.request.Request.full_url` or :attr:`~urllib.request.Request.data` " +"attributes are modified, all relevant internal properties are updated. This " +"means, for example, that it is now possible to use the same :class:`~urllib." +"request.Request` object in more than one :meth:`.OpenerDirector.open` call " +"with different *data* arguments, or to modify a :class:`~urllib.request." +"Request`\\ 's ``url`` rather than recomputing it from scratch. There is " +"also a new :meth:`~urllib.request.Request.remove_header` method that can be " +"used to remove headers from a :class:`~urllib.request.Request`. " +"(Contributed by Alexey Kachayev in :issue:`16464`, Daniel Wozniak in :issue:" +"`17485`, and Damien Brecht and Senthil Kumaran in :issue:`17272`.)" #: ../../whatsnew/3.4.rst:1648 msgid "" -":class:`~urllib.error.HTTPError` objects now have a " -":attr:`~urllib.error.HTTPError.headers` attribute that provides access to " -"the HTTP response headers associated with the error. (Contributed by Berker" -" Peksag in :issue:`15701`.)" +":class:`~urllib.error.HTTPError` objects now have a :attr:`~urllib.error." +"HTTPError.headers` attribute that provides access to the HTTP response " +"headers associated with the error. (Contributed by Berker Peksag in :issue:" +"`15701`.)" msgstr "" -":class:`~urllib.error.HTTPError` objects now have a " -":attr:`~urllib.error.HTTPError.headers` attribute that provides access to " -"the HTTP response headers associated with the error. (Contributed by Berker" -" Peksag in :issue:`15701`.)" +":class:`~urllib.error.HTTPError` objects now have a :attr:`~urllib.error." +"HTTPError.headers` attribute that provides access to the HTTP response " +"headers associated with the error. (Contributed by Berker Peksag in :issue:" +"`15701`.)" #: ../../whatsnew/3.4.rst:1655 msgid "unittest" @@ -3181,37 +3135,33 @@ msgstr "unittest" #: ../../whatsnew/3.4.rst:1657 msgid "" -"The :class:`~unittest.TestCase` class has a new method, " -":meth:`~unittest.TestCase.subTest`, that produces a context manager whose " -":keyword:`with` block becomes a \"sub-test\". This context manager allows a" -" test method to dynamically generate subtests by, say, calling the " -"``subTest`` context manager inside a loop. A single test method can thereby" -" produce an indefinite number of separately-identified and separately-" -"counted tests, all of which will run even if one or more of them fail. For " -"example::" -msgstr "" -"The :class:`~unittest.TestCase` class has a new method, " -":meth:`~unittest.TestCase.subTest`, that produces a context manager whose " -":keyword:`with` block becomes a \"sub-test\". This context manager allows a" -" test method to dynamically generate subtests by, say, calling the " -"``subTest`` context manager inside a loop. A single test method can thereby" -" produce an indefinite number of separately-identified and separately-" -"counted tests, all of which will run even if one or more of them fail. For " -"example::" +"The :class:`~unittest.TestCase` class has a new method, :meth:`~unittest." +"TestCase.subTest`, that produces a context manager whose :keyword:`with` " +"block becomes a \"sub-test\". This context manager allows a test method to " +"dynamically generate subtests by, say, calling the ``subTest`` context " +"manager inside a loop. A single test method can thereby produce an " +"indefinite number of separately-identified and separately-counted tests, all " +"of which will run even if one or more of them fail. For example::" +msgstr "" +"The :class:`~unittest.TestCase` class has a new method, :meth:`~unittest." +"TestCase.subTest`, that produces a context manager whose :keyword:`with` " +"block becomes a \"sub-test\". This context manager allows a test method to " +"dynamically generate subtests by, say, calling the ``subTest`` context " +"manager inside a loop. A single test method can thereby produce an " +"indefinite number of separately-identified and separately-counted tests, all " +"of which will run even if one or more of them fail. For example::" #: ../../whatsnew/3.4.rst:1671 msgid "" "will result in six subtests, each identified in the unittest verbose output " "with a label consisting of the variable name ``i`` and a particular value " -"for that variable (``i=0``, ``i=1``, etc). See :ref:`subtests` for the full" -" version of this example. (Contributed by Antoine Pitrou in " -":issue:`16997`.)" +"for that variable (``i=0``, ``i=1``, etc). See :ref:`subtests` for the full " +"version of this example. (Contributed by Antoine Pitrou in :issue:`16997`.)" msgstr "" "will result in six subtests, each identified in the unittest verbose output " "with a label consisting of the variable name ``i`` and a particular value " -"for that variable (``i=0``, ``i=1``, etc). See :ref:`subtests` for the full" -" version of this example. (Contributed by Antoine Pitrou in " -":issue:`16997`.)" +"for that variable (``i=0``, ``i=1``, etc). See :ref:`subtests` for the full " +"version of this example. (Contributed by Antoine Pitrou in :issue:`16997`.)" #: ../../whatsnew/3.4.rst:1676 msgid "" @@ -3248,34 +3198,34 @@ msgid "" ":class:`~unittest.TestSuite` now drops references to tests as soon as the " "test has been run, if the test is successful. On Python interpreters that " "do garbage collection, this allows the tests to be garbage collected if " -"nothing else is holding a reference to the test. It is possible to override" -" this behavior by creating a :class:`~unittest.TestSuite` subclass that " +"nothing else is holding a reference to the test. It is possible to override " +"this behavior by creating a :class:`~unittest.TestSuite` subclass that " "defines a custom ``_removeTestAtIndex`` method. (Contributed by Tom " "Wardill, Matt McClure, and Andrew Svetlov in :issue:`11798`.)" msgstr "" ":class:`~unittest.TestSuite` now drops references to tests as soon as the " "test has been run, if the test is successful. On Python interpreters that " "do garbage collection, this allows the tests to be garbage collected if " -"nothing else is holding a reference to the test. It is possible to override" -" this behavior by creating a :class:`~unittest.TestSuite` subclass that " +"nothing else is holding a reference to the test. It is possible to override " +"this behavior by creating a :class:`~unittest.TestSuite` subclass that " "defines a custom ``_removeTestAtIndex`` method. (Contributed by Tom " "Wardill, Matt McClure, and Andrew Svetlov in :issue:`11798`.)" #: ../../whatsnew/3.4.rst:1696 msgid "" -"A new test assertion context-manager, :meth:`~unittest.TestCase.assertLogs`," -" will ensure that a given block of code emits a log message using the " -":mod:`logging` module. By default the message can come from any logger and " -"have a priority of ``INFO`` or higher, but both the logger name and an " +"A new test assertion context-manager, :meth:`~unittest.TestCase.assertLogs`, " +"will ensure that a given block of code emits a log message using the :mod:" +"`logging` module. By default the message can come from any logger and have " +"a priority of ``INFO`` or higher, but both the logger name and an " "alternative minimum logging level may be specified. The object returned by " "the context manager can be queried for the :class:`~logging.LogRecord`\\ s " "and/or formatted messages that were logged. (Contributed by Antoine Pitrou " "in :issue:`18937`.)" msgstr "" -"A new test assertion context-manager, :meth:`~unittest.TestCase.assertLogs`," -" will ensure that a given block of code emits a log message using the " -":mod:`logging` module. By default the message can come from any logger and " -"have a priority of ``INFO`` or higher, but both the logger name and an " +"A new test assertion context-manager, :meth:`~unittest.TestCase.assertLogs`, " +"will ensure that a given block of code emits a log message using the :mod:" +"`logging` module. By default the message can come from any logger and have " +"a priority of ``INFO`` or higher, but both the logger name and an " "alternative minimum logging level may be specified. The object returned by " "the context manager can be queried for the :class:`~logging.LogRecord`\\ s " "and/or formatted messages that were logged. (Contributed by Antoine Pitrou " @@ -3291,13 +3241,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:1708 msgid "" -":mod:`unittest.mock` objects now inspect their specification signatures when" -" matching calls, which means an argument can now be matched by either " +":mod:`unittest.mock` objects now inspect their specification signatures when " +"matching calls, which means an argument can now be matched by either " "position or name, instead of only by position. (Contributed by Antoine " "Pitrou in :issue:`17015`.)" msgstr "" -":mod:`unittest.mock` objects now inspect their specification signatures when" -" matching calls, which means an argument can now be matched by either " +":mod:`unittest.mock` objects now inspect their specification signatures when " +"matching calls, which means an argument can now be matched by either " "position or name, instead of only by position. (Contributed by Antoine " "Pitrou in :issue:`17015`.)" @@ -3326,14 +3276,14 @@ msgid "" ":class:`~venv.EnvBuilder` and the :func:`~venv.create` convenience function " "take a new keyword argument *with_pip*, which defaults to ``False``, that " "controls whether or not :class:`~venv.EnvBuilder` ensures that ``pip`` is " -"installed in the virtual environment. (Contributed by Nick Coghlan in " -":issue:`19552` as part of the :pep:`453` implementation.)" +"installed in the virtual environment. (Contributed by Nick Coghlan in :" +"issue:`19552` as part of the :pep:`453` implementation.)" msgstr "" ":class:`~venv.EnvBuilder` and the :func:`~venv.create` convenience function " "take a new keyword argument *with_pip*, which defaults to ``False``, that " "controls whether or not :class:`~venv.EnvBuilder` ensures that ``pip`` is " -"installed in the virtual environment. (Contributed by Nick Coghlan in " -":issue:`19552` as part of the :pep:`453` implementation.)" +"installed in the virtual environment. (Contributed by Nick Coghlan in :" +"issue:`19552` as part of the :pep:`453` implementation.)" #: ../../whatsnew/3.4.rst:1731 msgid "wave" @@ -3367,13 +3317,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:1743 msgid "" -"The :meth:`~wave.Wave_write.writeframesraw` and " -":meth:`~wave.Wave_write.writeframes` methods now accept any :term:`bytes-" -"like object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)" +"The :meth:`~wave.Wave_write.writeframesraw` and :meth:`~wave.Wave_write." +"writeframes` methods now accept any :term:`bytes-like object`. (Contributed " +"by Serhiy Storchaka in :issue:`8311`.)" msgstr "" -"The :meth:`~wave.Wave_write.writeframesraw` and " -":meth:`~wave.Wave_write.writeframes` methods now accept any :term:`bytes-" -"like object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)" +"The :meth:`~wave.Wave_write.writeframesraw` and :meth:`~wave.Wave_write." +"writeframes` methods now accept any :term:`bytes-like object`. (Contributed " +"by Serhiy Storchaka in :issue:`8311`.)" #: ../../whatsnew/3.4.rst:1749 msgid "weakref" @@ -3401,12 +3351,12 @@ msgstr "" #: ../../whatsnew/3.4.rst:1759 msgid "" -"The callback, if any, associated with a :class:`~weakref.ref` is now exposed" -" via the :attr:`~weakref.ref.__callback__` attribute. (Contributed by Mark " +"The callback, if any, associated with a :class:`~weakref.ref` is now exposed " +"via the :attr:`~weakref.ref.__callback__` attribute. (Contributed by Mark " "Dickinson in :issue:`17643`.)" msgstr "" -"The callback, if any, associated with a :class:`~weakref.ref` is now exposed" -" via the :attr:`~weakref.ref.__callback__` attribute. (Contributed by Mark " +"The callback, if any, associated with a :class:`~weakref.ref` is now exposed " +"via the :attr:`~weakref.ref.__callback__` attribute. (Contributed by Mark " "Dickinson in :issue:`17643`.)" #: ../../whatsnew/3.4.rst:1765 @@ -3416,34 +3366,34 @@ msgstr "xml.etree" #: ../../whatsnew/3.4.rst:1767 msgid "" "A new parser, :class:`~xml.etree.ElementTree.XMLPullParser`, allows a non-" -"blocking applications to parse XML documents. An example can be seen at " -":ref:`elementtree-pull-parsing`. (Contributed by Antoine Pitrou in " -":issue:`17741`.)" +"blocking applications to parse XML documents. An example can be seen at :" +"ref:`elementtree-pull-parsing`. (Contributed by Antoine Pitrou in :issue:" +"`17741`.)" msgstr "" "A new parser, :class:`~xml.etree.ElementTree.XMLPullParser`, allows a non-" -"blocking applications to parse XML documents. An example can be seen at " -":ref:`elementtree-pull-parsing`. (Contributed by Antoine Pitrou in " -":issue:`17741`.)" +"blocking applications to parse XML documents. An example can be seen at :" +"ref:`elementtree-pull-parsing`. (Contributed by Antoine Pitrou in :issue:" +"`17741`.)" #: ../../whatsnew/3.4.rst:1772 msgid "" -"The :mod:`xml.etree.ElementTree` :func:`~xml.etree.ElementTree.tostring` and" -" :func:`~xml.etree.ElementTree.tostringlist` functions, and the " -":class:`~xml.etree.ElementTree.ElementTree` " -":meth:`~xml.etree.ElementTree.ElementTree.write` method, now have a " -"*short_empty_elements* :ref:`keyword-only parameter ` providing control over whether elements with no content are" -" written in abbreviated (````) or expanded (````) form. " -"(Contributed by Ariel Poliak and Serhiy Storchaka in :issue:`14377`.)" -msgstr "" -"The :mod:`xml.etree.ElementTree` :func:`~xml.etree.ElementTree.tostring` and" -" :func:`~xml.etree.ElementTree.tostringlist` functions, and the " -":class:`~xml.etree.ElementTree.ElementTree` " -":meth:`~xml.etree.ElementTree.ElementTree.write` method, now have a " -"*short_empty_elements* :ref:`keyword-only parameter ` providing control over whether elements with no content are" -" written in abbreviated (````) or expanded (````) form. " -"(Contributed by Ariel Poliak and Serhiy Storchaka in :issue:`14377`.)" +"The :mod:`xml.etree.ElementTree` :func:`~xml.etree.ElementTree.tostring` " +"and :func:`~xml.etree.ElementTree.tostringlist` functions, and the :class:" +"`~xml.etree.ElementTree.ElementTree` :meth:`~xml.etree.ElementTree." +"ElementTree.write` method, now have a *short_empty_elements* :ref:`keyword-" +"only parameter ` providing control over whether " +"elements with no content are written in abbreviated (````) or " +"expanded (````) form. (Contributed by Ariel Poliak and Serhiy " +"Storchaka in :issue:`14377`.)" +msgstr "" +"The :mod:`xml.etree.ElementTree` :func:`~xml.etree.ElementTree.tostring` " +"and :func:`~xml.etree.ElementTree.tostringlist` functions, and the :class:" +"`~xml.etree.ElementTree.ElementTree` :meth:`~xml.etree.ElementTree." +"ElementTree.write` method, now have a *short_empty_elements* :ref:`keyword-" +"only parameter ` providing control over whether " +"elements with no content are written in abbreviated (````) or " +"expanded (````) form. (Contributed by Ariel Poliak and Serhiy " +"Storchaka in :issue:`14377`.)" #: ../../whatsnew/3.4.rst:1783 msgid "zipfile" @@ -3451,27 +3401,27 @@ msgstr "zipfile" #: ../../whatsnew/3.4.rst:1785 msgid "" -"The :meth:`~zipfile.PyZipFile.writepy` method of the " -":class:`~zipfile.PyZipFile` class has a new *filterfunc* option that can be " -"used to control which directories and files are added to the archive. For " -"example, this could be used to exclude test files from the archive. " -"(Contributed by Christian Tismer in :issue:`19274`.)" +"The :meth:`~zipfile.PyZipFile.writepy` method of the :class:`~zipfile." +"PyZipFile` class has a new *filterfunc* option that can be used to control " +"which directories and files are added to the archive. For example, this " +"could be used to exclude test files from the archive. (Contributed by " +"Christian Tismer in :issue:`19274`.)" msgstr "" -"The :meth:`~zipfile.PyZipFile.writepy` method of the " -":class:`~zipfile.PyZipFile` class has a new *filterfunc* option that can be " -"used to control which directories and files are added to the archive. For " -"example, this could be used to exclude test files from the archive. " -"(Contributed by Christian Tismer in :issue:`19274`.)" +"The :meth:`~zipfile.PyZipFile.writepy` method of the :class:`~zipfile." +"PyZipFile` class has a new *filterfunc* option that can be used to control " +"which directories and files are added to the archive. For example, this " +"could be used to exclude test files from the archive. (Contributed by " +"Christian Tismer in :issue:`19274`.)" #: ../../whatsnew/3.4.rst:1791 msgid "" -"The *allowZip64* parameter to :class:`~zipfile.ZipFile` and " -":class:`~zipfile.PyZipfile` is now ``True`` by default. (Contributed by " -"William Mallard in :issue:`17201`.)" +"The *allowZip64* parameter to :class:`~zipfile.ZipFile` and :class:`~zipfile." +"PyZipfile` is now ``True`` by default. (Contributed by William Mallard in :" +"issue:`17201`.)" msgstr "" -"The *allowZip64* parameter to :class:`~zipfile.ZipFile` and " -":class:`~zipfile.PyZipfile` is now ``True`` by default. (Contributed by " -"William Mallard in :issue:`17201`.)" +"The *allowZip64* parameter to :class:`~zipfile.ZipFile` and :class:`~zipfile." +"PyZipfile` is now ``True`` by default. (Contributed by William Mallard in :" +"issue:`17201`.)" #: ../../whatsnew/3.4.rst:1798 msgid "CPython Implementation Changes" @@ -3483,11 +3433,11 @@ msgstr "PEP 445: Customization of CPython Memory Allocators" #: ../../whatsnew/3.4.rst:1806 msgid "" -":pep:`445` adds new C level interfaces to customize memory allocation in the" -" CPython interpreter." +":pep:`445` adds new C level interfaces to customize memory allocation in the " +"CPython interpreter." msgstr "" -":pep:`445` adds new C level interfaces to customize memory allocation in the" -" CPython interpreter." +":pep:`445` adds new C level interfaces to customize memory allocation in the " +"CPython interpreter." #: ../../whatsnew/3.4.rst:1811 msgid ":pep:`445` -- Add new APIs to customize Python memory allocators" @@ -3499,29 +3449,29 @@ msgstr "PEP 442: Safe Object Finalization" #: ../../whatsnew/3.4.rst:1820 msgid "" -":pep:`442` removes the current limitations and quirks of object finalization" -" in CPython. With it, objects with :meth:`__del__` methods, as well as " +":pep:`442` removes the current limitations and quirks of object finalization " +"in CPython. With it, objects with :meth:`__del__` methods, as well as " "generators with :keyword:`finally` clauses, can be finalized when they are " "part of a reference cycle." msgstr "" -":pep:`442` removes the current limitations and quirks of object finalization" -" in CPython. With it, objects with :meth:`__del__` methods, as well as " +":pep:`442` removes the current limitations and quirks of object finalization " +"in CPython. With it, objects with :meth:`__del__` methods, as well as " "generators with :keyword:`finally` clauses, can be finalized when they are " "part of a reference cycle." #: ../../whatsnew/3.4.rst:1825 msgid "" -"As part of this change, module globals are no longer forcibly set to " -":const:`None` during interpreter shutdown in most cases, instead relying on " -"the normal operation of the cyclic garbage collector. This avoids a whole " -"class of interpreter-shutdown-time errors, usually involving ``__del__`` " -"methods, that have plagued Python since the cyclic GC was first introduced." +"As part of this change, module globals are no longer forcibly set to :const:" +"`None` during interpreter shutdown in most cases, instead relying on the " +"normal operation of the cyclic garbage collector. This avoids a whole class " +"of interpreter-shutdown-time errors, usually involving ``__del__`` methods, " +"that have plagued Python since the cyclic GC was first introduced." msgstr "" -"As part of this change, module globals are no longer forcibly set to " -":const:`None` during interpreter shutdown in most cases, instead relying on " -"the normal operation of the cyclic garbage collector. This avoids a whole " -"class of interpreter-shutdown-time errors, usually involving ``__del__`` " -"methods, that have plagued Python since the cyclic GC was first introduced." +"As part of this change, module globals are no longer forcibly set to :const:" +"`None` during interpreter shutdown in most cases, instead relying on the " +"normal operation of the cyclic garbage collector. This avoids a whole class " +"of interpreter-shutdown-time errors, usually involving ``__del__`` methods, " +"that have plagued Python since the cyclic GC was first introduced." #: ../../whatsnew/3.4.rst:1834 msgid ":pep:`442` -- Safe object finalization" @@ -3565,13 +3515,13 @@ msgstr "PEP 436: Argument Clinic" #: ../../whatsnew/3.4.rst:1862 msgid "" "\"Argument Clinic\" (:pep:`436`) is now part of the CPython build process " -"and can be used to simplify the process of defining and maintaining accurate" -" signatures for builtins and standard library extension modules implemented " +"and can be used to simplify the process of defining and maintaining accurate " +"signatures for builtins and standard library extension modules implemented " "in C." msgstr "" "\"Argument Clinic\" (:pep:`436`) is now part of the CPython build process " -"and can be used to simplify the process of defining and maintaining accurate" -" signatures for builtins and standard library extension modules implemented " +"and can be used to simplify the process of defining and maintaining accurate " +"signatures for builtins and standard library extension modules implemented " "in C." #: ../../whatsnew/3.4.rst:1867 @@ -3621,24 +3571,24 @@ msgstr "Other Build and C API Changes" #: ../../whatsnew/3.4.rst:1890 msgid "" "The new :c:func:`PyType_GetSlot` function has been added to the stable ABI, " -"allowing retrieval of function pointers from named type slots when using the" -" limited API. (Contributed by Martin von Löwis in :issue:`17162`.)" +"allowing retrieval of function pointers from named type slots when using the " +"limited API. (Contributed by Martin von Löwis in :issue:`17162`.)" msgstr "" "The new :c:func:`PyType_GetSlot` function has been added to the stable ABI, " -"allowing retrieval of function pointers from named type slots when using the" -" limited API. (Contributed by Martin von Löwis in :issue:`17162`.)" +"allowing retrieval of function pointers from named type slots when using the " +"limited API. (Contributed by Martin von Löwis in :issue:`17162`.)" #: ../../whatsnew/3.4.rst:1894 msgid "" -"The new :c:func:`Py_SetStandardStreamEncoding` pre-initialization API allows" -" applications embedding the CPython interpreter to reliably force a " -"particular encoding and error handler for the standard streams. (Contributed" -" by Bastien Montagne and Nick Coghlan in :issue:`16129`.)" +"The new :c:func:`Py_SetStandardStreamEncoding` pre-initialization API allows " +"applications embedding the CPython interpreter to reliably force a " +"particular encoding and error handler for the standard streams. (Contributed " +"by Bastien Montagne and Nick Coghlan in :issue:`16129`.)" msgstr "" -"The new :c:func:`Py_SetStandardStreamEncoding` pre-initialization API allows" -" applications embedding the CPython interpreter to reliably force a " -"particular encoding and error handler for the standard streams. (Contributed" -" by Bastien Montagne and Nick Coghlan in :issue:`16129`.)" +"The new :c:func:`Py_SetStandardStreamEncoding` pre-initialization API allows " +"applications embedding the CPython interpreter to reliably force a " +"particular encoding and error handler for the standard streams. (Contributed " +"by Bastien Montagne and Nick Coghlan in :issue:`16129`.)" #: ../../whatsnew/3.4.rst:1899 msgid "" @@ -3670,49 +3620,45 @@ msgstr "" #: ../../whatsnew/3.4.rst:1910 msgid "" -"New function :c:func:`PyStructSequence_InitType2` supplements the existing " -":c:func:`PyStructSequence_InitType` function. The difference is that it " +"New function :c:func:`PyStructSequence_InitType2` supplements the existing :" +"c:func:`PyStructSequence_InitType` function. The difference is that it " "returns ``0`` on success and ``-1`` on failure." msgstr "" -"New function :c:func:`PyStructSequence_InitType2` supplements the existing " -":c:func:`PyStructSequence_InitType` function. The difference is that it " +"New function :c:func:`PyStructSequence_InitType2` supplements the existing :" +"c:func:`PyStructSequence_InitType` function. The difference is that it " "returns ``0`` on success and ``-1`` on failure." #: ../../whatsnew/3.4.rst:1914 msgid "" "The CPython source can now be compiled using the address sanity checking " -"features of recent versions of GCC and clang: the false alarms in the small" -" object allocator have been silenced. (Contributed by Dhiru Kholia in " -":issue:`18596`.)" +"features of recent versions of GCC and clang: the false alarms in the small " +"object allocator have been silenced. (Contributed by Dhiru Kholia in :issue:" +"`18596`.)" msgstr "" "The CPython source can now be compiled using the address sanity checking " -"features of recent versions of GCC and clang: the false alarms in the small" -" object allocator have been silenced. (Contributed by Dhiru Kholia in " -":issue:`18596`.)" +"features of recent versions of GCC and clang: the false alarms in the small " +"object allocator have been silenced. (Contributed by Dhiru Kholia in :issue:" +"`18596`.)" #: ../../whatsnew/3.4.rst:1919 msgid "" -"The Windows build now uses `Address Space Layout Randomization " -"`_ and " -"`Data Execution Prevention " -"`_. (Contributed " -"by Christian Heimes in :issue:`16632`.)" +"The Windows build now uses `Address Space Layout Randomization `_ and `Data Execution " +"Prevention `_. " +"(Contributed by Christian Heimes in :issue:`16632`.)" msgstr "" -"The Windows build now uses `Address Space Layout Randomization " -"`_ and " -"`Data Execution Prevention " -"`_. (Contributed " -"by Christian Heimes in :issue:`16632`.)" +"The Windows build now uses `Address Space Layout Randomization `_ and `Data Execution " +"Prevention `_. " +"(Contributed by Christian Heimes in :issue:`16632`.)" #: ../../whatsnew/3.4.rst:1924 msgid "" -"New function :c:func:`PyObject_LengthHint` is the C API equivalent of " -":func:`operator.length_hint`. (Contributed by Armin Ronacher in " -":issue:`16148`.)" +"New function :c:func:`PyObject_LengthHint` is the C API equivalent of :func:" +"`operator.length_hint`. (Contributed by Armin Ronacher in :issue:`16148`.)" msgstr "" -"New function :c:func:`PyObject_LengthHint` is the C API equivalent of " -":func:`operator.length_hint`. (Contributed by Armin Ronacher in " -":issue:`16148`.)" +"New function :c:func:`PyObject_LengthHint` is the C API equivalent of :func:" +"`operator.length_hint`. (Contributed by Armin Ronacher in :issue:`16148`.)" #: ../../whatsnew/3.4.rst:1932 msgid "Other Improvements" @@ -3725,8 +3671,8 @@ msgid "" "which means that :data:`sys.path` contains neither the script's directory " "nor the user's ``site-packages`` directory, and all :envvar:`PYTHON*` " "environment variables are ignored (it implies both ``-s`` and ``-E``). " -"Other restrictions may also be applied in the future, with the goal being to" -" isolate the execution of a script from the user's environment. This is " +"Other restrictions may also be applied in the future, with the goal being to " +"isolate the execution of a script from the user's environment. This is " "appropriate, for example, when Python is used to run a system script. On " "most POSIX systems it can and should be used in the ``#!`` line of system " "scripts. (Contributed by Christian Heimes in :issue:`16499`.)" @@ -3736,8 +3682,8 @@ msgstr "" "which means that :data:`sys.path` contains neither the script's directory " "nor the user's ``site-packages`` directory, and all :envvar:`PYTHON*` " "environment variables are ignored (it implies both ``-s`` and ``-E``). " -"Other restrictions may also be applied in the future, with the goal being to" -" isolate the execution of a script from the user's environment. This is " +"Other restrictions may also be applied in the future, with the goal being to " +"isolate the execution of a script from the user's environment. This is " "appropriate, for example, when Python is used to run a system script. On " "most POSIX systems it can and should be used in the ``#!`` line of system " "scripts. (Contributed by Christian Heimes in :issue:`16499`.)" @@ -3758,30 +3704,30 @@ msgstr "" msgid "" "Invoking the Python interpreter with ``--version`` now outputs the version " "to standard output instead of standard error (:issue:`18338`). Similar " -"changes were made to :mod:`argparse` (:issue:`18920`) and other modules that" -" have script-like invocation capabilities (:issue:`18922`)." +"changes were made to :mod:`argparse` (:issue:`18920`) and other modules that " +"have script-like invocation capabilities (:issue:`18922`)." msgstr "" "Invoking the Python interpreter with ``--version`` now outputs the version " "to standard output instead of standard error (:issue:`18338`). Similar " -"changes were made to :mod:`argparse` (:issue:`18920`) and other modules that" -" have script-like invocation capabilities (:issue:`18922`)." +"changes were made to :mod:`argparse` (:issue:`18920`) and other modules that " +"have script-like invocation capabilities (:issue:`18922`)." #: ../../whatsnew/3.4.rst:1957 msgid "" "The CPython Windows installer now adds ``.py`` to the :envvar:`PATHEXT` " "variable when extensions are registered, allowing users to run a python " -"script at the windows command prompt by just typing its name without the " -"``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.)" +"script at the windows command prompt by just typing its name without the ``." +"py`` extension. (Contributed by Paul Moore in :issue:`18569`.)" msgstr "" "The CPython Windows installer now adds ``.py`` to the :envvar:`PATHEXT` " "variable when extensions are registered, allowing users to run a python " -"script at the windows command prompt by just typing its name without the " -"``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.)" +"script at the windows command prompt by just typing its name without the ``." +"py`` extension. (Contributed by Paul Moore in :issue:`18569`.)" #: ../../whatsnew/3.4.rst:1962 msgid "" -"A new ``make`` target `coverage-report `_ will build python, run " +"A new ``make`` target `coverage-report `_ will build python, run " "the test suite, and generate an HTML coverage report for the C codebase " "using ``gcov`` and `lcov `_." msgstr "" @@ -3789,14 +3735,12 @@ msgstr "" #: ../../whatsnew/3.4.rst:1968 msgid "" "The ``-R`` option to the :ref:`python regression test suite ` now " -"also checks for memory allocation leaks, using " -":func:`sys.getallocatedblocks()`. (Contributed by Antoine Pitrou in " -":issue:`13390`.)" +"also checks for memory allocation leaks, using :func:`sys." +"getallocatedblocks()`. (Contributed by Antoine Pitrou in :issue:`13390`.)" msgstr "" "The ``-R`` option to the :ref:`python regression test suite ` now " -"also checks for memory allocation leaks, using " -":func:`sys.getallocatedblocks()`. (Contributed by Antoine Pitrou in " -":issue:`13390`.)" +"also checks for memory allocation leaks, using :func:`sys." +"getallocatedblocks()`. (Contributed by Antoine Pitrou in :issue:`13390`.)" #: ../../whatsnew/3.4.rst:1973 msgid "``python -m`` now works with namespace packages." @@ -3815,34 +3759,34 @@ msgstr "" #: ../../whatsnew/3.4.rst:1979 msgid "" "Loading multiple python modules from a single OS module (``.so``, ``.dll``) " -"now works correctly (previously it silently returned the first python module" -" in the file). (Contributed by Václav Šmilauer in :issue:`16421`.)" +"now works correctly (previously it silently returned the first python module " +"in the file). (Contributed by Václav Šmilauer in :issue:`16421`.)" msgstr "" "Loading multiple python modules from a single OS module (``.so``, ``.dll``) " -"now works correctly (previously it silently returned the first python module" -" in the file). (Contributed by Václav Šmilauer in :issue:`16421`.)" +"now works correctly (previously it silently returned the first python module " +"in the file). (Contributed by Václav Šmilauer in :issue:`16421`.)" #: ../../whatsnew/3.4.rst:1983 msgid "" "A new opcode, :opcode:`LOAD_CLASSDEREF`, has been added to fix a bug in the " -"loading of free variables in class bodies that could be triggered by certain" -" uses of :ref:`__prepare__ `. (Contributed by Benjamin Peterson in" -" :issue:`17853`.)" +"loading of free variables in class bodies that could be triggered by certain " +"uses of :ref:`__prepare__ `. (Contributed by Benjamin Peterson in :" +"issue:`17853`.)" msgstr "" "A new opcode, :opcode:`LOAD_CLASSDEREF`, has been added to fix a bug in the " -"loading of free variables in class bodies that could be triggered by certain" -" uses of :ref:`__prepare__ `. (Contributed by Benjamin Peterson in" -" :issue:`17853`.)" +"loading of free variables in class bodies that could be triggered by certain " +"uses of :ref:`__prepare__ `. (Contributed by Benjamin Peterson in :" +"issue:`17853`.)" #: ../../whatsnew/3.4.rst:1988 msgid "" "A number of MemoryError-related crashes were identified and fixed by Victor " -"Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, " -":issue:`18520`)." +"Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, :" +"issue:`18520`)." msgstr "" "A number of MemoryError-related crashes were identified and fixed by Victor " -"Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, " -":issue:`18520`)." +"Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, :" +"issue:`18520`)." #: ../../whatsnew/3.4.rst:1992 msgid "" @@ -3868,15 +3812,15 @@ msgstr "" #: ../../whatsnew/3.4.rst:2001 msgid "" -"The encoding name is now optional in the value set for the " -":envvar:`PYTHONIOENCODING` environment variable. This makes it possible to " -"set just the error handler, without changing the default encoding. " -"(Contributed by Serhiy Storchaka in :issue:`18818`.)" +"The encoding name is now optional in the value set for the :envvar:" +"`PYTHONIOENCODING` environment variable. This makes it possible to set just " +"the error handler, without changing the default encoding. (Contributed by " +"Serhiy Storchaka in :issue:`18818`.)" msgstr "" -"The encoding name is now optional in the value set for the " -":envvar:`PYTHONIOENCODING` environment variable. This makes it possible to " -"set just the error handler, without changing the default encoding. " -"(Contributed by Serhiy Storchaka in :issue:`18818`.)" +"The encoding name is now optional in the value set for the :envvar:" +"`PYTHONIOENCODING` environment variable. This makes it possible to set just " +"the error handler, without changing the default encoding. (Contributed by " +"Serhiy Storchaka in :issue:`18818`.)" #: ../../whatsnew/3.4.rst:2006 msgid "" @@ -3894,11 +3838,11 @@ msgstr "Otimizações Relevantes" #: ../../whatsnew/3.4.rst:2014 msgid "" -"The UTF-32 decoder is now 3x to 4x faster. (Contributed by Serhiy Storchaka" -" in :issue:`14625`.)" +"The UTF-32 decoder is now 3x to 4x faster. (Contributed by Serhiy Storchaka " +"in :issue:`14625`.)" msgstr "" -"The UTF-32 decoder is now 3x to 4x faster. (Contributed by Serhiy Storchaka" -" in :issue:`14625`.)" +"The UTF-32 decoder is now 3x to 4x faster. (Contributed by Serhiy Storchaka " +"in :issue:`14625`.)" #: ../../whatsnew/3.4.rst:2017 msgid "" @@ -3925,20 +3869,20 @@ msgstr "" #: ../../whatsnew/3.4.rst:2028 msgid "" "The interpreter starts about 30% faster. A couple of measures lead to the " -"speedup. The interpreter loads fewer modules on startup, e.g. the :mod:`re`," -" :mod:`collections` and :mod:`locale` modules and their dependencies are no " -"longer imported by default. The marshal module has been improved to load " -"compiled Python code faster. (Contributed by Antoine Pitrou, Christian " -"Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:`19209`," -" :issue:`19205` and :issue:`9548`.)" +"speedup. The interpreter loads fewer modules on startup, e.g. the :mod:" +"`re`, :mod:`collections` and :mod:`locale` modules and their dependencies " +"are no longer imported by default. The marshal module has been improved to " +"load compiled Python code faster. (Contributed by Antoine Pitrou, Christian " +"Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:" +"`19209`, :issue:`19205` and :issue:`9548`.)" msgstr "" "The interpreter starts about 30% faster. A couple of measures lead to the " -"speedup. The interpreter loads fewer modules on startup, e.g. the :mod:`re`," -" :mod:`collections` and :mod:`locale` modules and their dependencies are no " -"longer imported by default. The marshal module has been improved to load " -"compiled Python code faster. (Contributed by Antoine Pitrou, Christian " -"Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:`19209`," -" :issue:`19205` and :issue:`9548`.)" +"speedup. The interpreter loads fewer modules on startup, e.g. the :mod:" +"`re`, :mod:`collections` and :mod:`locale` modules and their dependencies " +"are no longer imported by default. The marshal module has been improved to " +"load compiled Python code faster. (Contributed by Antoine Pitrou, Christian " +"Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:" +"`19209`, :issue:`19205` and :issue:`9548`.)" #: ../../whatsnew/3.4.rst:2036 msgid "" @@ -3971,22 +3915,22 @@ msgstr "" #: ../../whatsnew/3.4.rst:2047 msgid "" "A performance issue in :meth:`io.FileIO.readall` has been solved. This " -"particularly affects Windows, and significantly speeds up the case of piping" -" significant amounts of data through :mod:`subprocess`. (Contributed by " +"particularly affects Windows, and significantly speeds up the case of piping " +"significant amounts of data through :mod:`subprocess`. (Contributed by " "Richard Oudkerk in :issue:`15758`.)" msgstr "" "A performance issue in :meth:`io.FileIO.readall` has been solved. This " -"particularly affects Windows, and significantly speeds up the case of piping" -" significant amounts of data through :mod:`subprocess`. (Contributed by " +"particularly affects Windows, and significantly speeds up the case of piping " +"significant amounts of data through :mod:`subprocess`. (Contributed by " "Richard Oudkerk in :issue:`15758`.)" #: ../../whatsnew/3.4.rst:2052 msgid "" -":func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in " -":issue:`18020`.)" +":func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in :" +"issue:`18020`.)" msgstr "" -":func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in " -":issue:`18020`.)" +":func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in :" +"issue:`18020`.)" #: ../../whatsnew/3.4.rst:2055 msgid "" @@ -4000,12 +3944,12 @@ msgstr "" #: ../../whatsnew/3.4.rst:2059 msgid "" -":func:`os.urandom` now uses a lazily-opened persistent file descriptor so as" -" to avoid using many file descriptors when run in parallel from multiple " +":func:`os.urandom` now uses a lazily-opened persistent file descriptor so as " +"to avoid using many file descriptors when run in parallel from multiple " "threads. (Contributed by Antoine Pitrou in :issue:`18756`.)" msgstr "" -":func:`os.urandom` now uses a lazily-opened persistent file descriptor so as" -" to avoid using many file descriptors when run in parallel from multiple " +":func:`os.urandom` now uses a lazily-opened persistent file descriptor so as " +"to avoid using many file descriptors when run in parallel from multiple " "threads. (Contributed by Antoine Pitrou in :issue:`18756`.)" #: ../../whatsnew/3.4.rst:2067 @@ -4016,15 +3960,15 @@ msgstr "Descontinuado" msgid "" "This section covers various APIs and other features that have been " "deprecated in Python 3.4, and will be removed in Python 3.5 or later. In " -"most (but not all) cases, using the deprecated APIs will produce a " -":exc:`DeprecationWarning` when the interpreter is run with deprecation " -"warnings enabled (for example, by using ``-Wd``)." +"most (but not all) cases, using the deprecated APIs will produce a :exc:" +"`DeprecationWarning` when the interpreter is run with deprecation warnings " +"enabled (for example, by using ``-Wd``)." msgstr "" "This section covers various APIs and other features that have been " "deprecated in Python 3.4, and will be removed in Python 3.5 or later. In " -"most (but not all) cases, using the deprecated APIs will produce a " -":exc:`DeprecationWarning` when the interpreter is run with deprecation " -"warnings enabled (for example, by using ``-Wd``)." +"most (but not all) cases, using the deprecated APIs will produce a :exc:" +"`DeprecationWarning` when the interpreter is run with deprecation warnings " +"enabled (for example, by using ``-Wd``)." #: ../../whatsnew/3.4.rst:2077 msgid "Deprecations in the Python API" @@ -4034,48 +3978,42 @@ msgstr "Deprecations in the Python API" msgid "" "As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importlib` " "methods and functions are deprecated: :meth:`importlib.find_loader` is " -"replaced by :func:`importlib.util.find_spec`; " -":meth:`importlib.machinery.PathFinder.find_module` is replaced by " -":meth:`importlib.machinery.PathFinder.find_spec`; " -":meth:`importlib.abc.MetaPathFinder.find_module` is replaced by " -":meth:`importlib.abc.MetaPathFinder.find_spec`; " -":meth:`importlib.abc.PathEntryFinder.find_loader` and " -":meth:`~importlib.abc.PathEntryFinder.find_module` are replaced by " -":meth:`importlib.abc.PathEntryFinder.find_spec`; all of the ``xxxLoader`` " -"ABC ``load_module`` methods (:meth:`importlib.abc.Loader.load_module`, " -":meth:`importlib.abc.InspectLoader.load_module`, " -":meth:`importlib.abc.FileLoader.load_module`, " -":meth:`importlib.abc.SourceLoader.load_module`) should no longer be " -"implemented, instead loaders should implement an ``exec_module`` method " -"(:meth:`importlib.abc.Loader.exec_module`, " -":meth:`importlib.abc.InspectLoader.exec_module` " -":meth:`importlib.abc.SourceLoader.exec_module`) and let the import system " -"take care of the rest; and :meth:`importlib.abc.Loader.module_repr`, " -":meth:`importlib.util.module_for_loader`, :meth:`importlib.util.set_loader`," -" and :meth:`importlib.util.set_package` are no longer needed because their " +"replaced by :func:`importlib.util.find_spec`; :meth:`importlib.machinery." +"PathFinder.find_module` is replaced by :meth:`importlib.machinery.PathFinder." +"find_spec`; :meth:`importlib.abc.MetaPathFinder.find_module` is replaced by :" +"meth:`importlib.abc.MetaPathFinder.find_spec`; :meth:`importlib.abc." +"PathEntryFinder.find_loader` and :meth:`~importlib.abc.PathEntryFinder." +"find_module` are replaced by :meth:`importlib.abc.PathEntryFinder." +"find_spec`; all of the ``xxxLoader`` ABC ``load_module`` methods (:meth:" +"`importlib.abc.Loader.load_module`, :meth:`importlib.abc.InspectLoader." +"load_module`, :meth:`importlib.abc.FileLoader.load_module`, :meth:`importlib." +"abc.SourceLoader.load_module`) should no longer be implemented, instead " +"loaders should implement an ``exec_module`` method (:meth:`importlib.abc." +"Loader.exec_module`, :meth:`importlib.abc.InspectLoader.exec_module` :meth:" +"`importlib.abc.SourceLoader.exec_module`) and let the import system take " +"care of the rest; and :meth:`importlib.abc.Loader.module_repr`, :meth:" +"`importlib.util.module_for_loader`, :meth:`importlib.util.set_loader`, and :" +"meth:`importlib.util.set_package` are no longer needed because their " "functions are now handled automatically by the import system." msgstr "" "As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importlib` " "methods and functions are deprecated: :meth:`importlib.find_loader` is " -"replaced by :func:`importlib.util.find_spec`; " -":meth:`importlib.machinery.PathFinder.find_module` is replaced by " -":meth:`importlib.machinery.PathFinder.find_spec`; " -":meth:`importlib.abc.MetaPathFinder.find_module` is replaced by " -":meth:`importlib.abc.MetaPathFinder.find_spec`; " -":meth:`importlib.abc.PathEntryFinder.find_loader` and " -":meth:`~importlib.abc.PathEntryFinder.find_module` are replaced by " -":meth:`importlib.abc.PathEntryFinder.find_spec`; all of the ``xxxLoader`` " -"ABC ``load_module`` methods (:meth:`importlib.abc.Loader.load_module`, " -":meth:`importlib.abc.InspectLoader.load_module`, " -":meth:`importlib.abc.FileLoader.load_module`, " -":meth:`importlib.abc.SourceLoader.load_module`) should no longer be " -"implemented, instead loaders should implement an ``exec_module`` method " -"(:meth:`importlib.abc.Loader.exec_module`, " -":meth:`importlib.abc.InspectLoader.exec_module` " -":meth:`importlib.abc.SourceLoader.exec_module`) and let the import system " -"take care of the rest; and :meth:`importlib.abc.Loader.module_repr`, " -":meth:`importlib.util.module_for_loader`, :meth:`importlib.util.set_loader`," -" and :meth:`importlib.util.set_package` are no longer needed because their " +"replaced by :func:`importlib.util.find_spec`; :meth:`importlib.machinery." +"PathFinder.find_module` is replaced by :meth:`importlib.machinery.PathFinder." +"find_spec`; :meth:`importlib.abc.MetaPathFinder.find_module` is replaced by :" +"meth:`importlib.abc.MetaPathFinder.find_spec`; :meth:`importlib.abc." +"PathEntryFinder.find_loader` and :meth:`~importlib.abc.PathEntryFinder." +"find_module` are replaced by :meth:`importlib.abc.PathEntryFinder." +"find_spec`; all of the ``xxxLoader`` ABC ``load_module`` methods (:meth:" +"`importlib.abc.Loader.load_module`, :meth:`importlib.abc.InspectLoader." +"load_module`, :meth:`importlib.abc.FileLoader.load_module`, :meth:`importlib." +"abc.SourceLoader.load_module`) should no longer be implemented, instead " +"loaders should implement an ``exec_module`` method (:meth:`importlib.abc." +"Loader.exec_module`, :meth:`importlib.abc.InspectLoader.exec_module` :meth:" +"`importlib.abc.SourceLoader.exec_module`) and let the import system take " +"care of the rest; and :meth:`importlib.abc.Loader.module_repr`, :meth:" +"`importlib.util.module_for_loader`, :meth:`importlib.util.set_loader`, and :" +"meth:`importlib.util.set_package` are no longer needed because their " "functions are now handled automatically by the import system." #: ../../whatsnew/3.4.rst:2104 @@ -4088,11 +4026,11 @@ msgstr "" #: ../../whatsnew/3.4.rst:2107 msgid "" -"The :mod:`formatter` module is pending deprecation and is slated for removal" -" in Python 3.6." +"The :mod:`formatter` module is pending deprecation and is slated for removal " +"in Python 3.6." msgstr "" -"The :mod:`formatter` module is pending deprecation and is slated for removal" -" in Python 3.6." +"The :mod:`formatter` module is pending deprecation and is slated for removal " +"in Python 3.6." #: ../../whatsnew/3.4.rst:2110 msgid "" @@ -4106,23 +4044,23 @@ msgstr "" #: ../../whatsnew/3.4.rst:2114 msgid "" -"The internal ``Netrc`` class in the :mod:`ftplib` module has been documented" -" as deprecated in its docstring for quite some time. It now emits a " -":exc:`DeprecationWarning` and will be removed completely in Python 3.5." +"The internal ``Netrc`` class in the :mod:`ftplib` module has been documented " +"as deprecated in its docstring for quite some time. It now emits a :exc:" +"`DeprecationWarning` and will be removed completely in Python 3.5." msgstr "" -"The internal ``Netrc`` class in the :mod:`ftplib` module has been documented" -" as deprecated in its docstring for quite some time. It now emits a " -":exc:`DeprecationWarning` and will be removed completely in Python 3.5." +"The internal ``Netrc`` class in the :mod:`ftplib` module has been documented " +"as deprecated in its docstring for quite some time. It now emits a :exc:" +"`DeprecationWarning` and will be removed completely in Python 3.5." #: ../../whatsnew/3.4.rst:2118 msgid "" "The undocumented *endtime* argument to :meth:`subprocess.Popen.wait` should " -"not have been exposed and is hopefully not in use; it is deprecated and will" -" mostly likely be removed in Python 3.5." +"not have been exposed and is hopefully not in use; it is deprecated and will " +"mostly likely be removed in Python 3.5." msgstr "" "The undocumented *endtime* argument to :meth:`subprocess.Popen.wait` should " -"not have been exposed and is hopefully not in use; it is deprecated and will" -" mostly likely be removed in Python 3.5." +"not have been exposed and is hopefully not in use; it is deprecated and will " +"mostly likely be removed in Python 3.5." #: ../../whatsnew/3.4.rst:2122 msgid "" @@ -4132,21 +4070,19 @@ msgstr "" #: ../../whatsnew/3.4.rst:2124 msgid "" -"The :mod:`plistlib` :func:`~plistlib.readPlist`, " -":func:`~plistlib.writePlist`, :func:`~plistlib.readPlistFromBytes`, and " -":func:`~plistlib.writePlistToBytes` functions are deprecated in favor of the" -" corresponding new functions :func:`~plistlib.load`, :func:`~plistlib.dump`," -" :func:`~plistlib.loads`, and :func:`~plistlib.dumps`. " -":func:`~plistlib.Data` is deprecated in favor of just using the " -":class:`bytes` constructor." -msgstr "" -"The :mod:`plistlib` :func:`~plistlib.readPlist`, " -":func:`~plistlib.writePlist`, :func:`~plistlib.readPlistFromBytes`, and " -":func:`~plistlib.writePlistToBytes` functions are deprecated in favor of the" -" corresponding new functions :func:`~plistlib.load`, :func:`~plistlib.dump`," -" :func:`~plistlib.loads`, and :func:`~plistlib.dumps`. " -":func:`~plistlib.Data` is deprecated in favor of just using the " -":class:`bytes` constructor." +"The :mod:`plistlib` :func:`~plistlib.readPlist`, :func:`~plistlib." +"writePlist`, :func:`~plistlib.readPlistFromBytes`, and :func:`~plistlib." +"writePlistToBytes` functions are deprecated in favor of the corresponding " +"new functions :func:`~plistlib.load`, :func:`~plistlib.dump`, :func:" +"`~plistlib.loads`, and :func:`~plistlib.dumps`. :func:`~plistlib.Data` is " +"deprecated in favor of just using the :class:`bytes` constructor." +msgstr "" +"The :mod:`plistlib` :func:`~plistlib.readPlist`, :func:`~plistlib." +"writePlist`, :func:`~plistlib.readPlistFromBytes`, and :func:`~plistlib." +"writePlistToBytes` functions are deprecated in favor of the corresponding " +"new functions :func:`~plistlib.load`, :func:`~plistlib.dump`, :func:" +"`~plistlib.loads`, and :func:`~plistlib.dumps`. :func:`~plistlib.Data` is " +"deprecated in favor of just using the :class:`bytes` constructor." #: ../../whatsnew/3.4.rst:2131 msgid "" @@ -4171,14 +4107,14 @@ msgstr "" #: ../../whatsnew/3.4.rst:2139 msgid "" "The *parser* argument of :func:`xml.etree.ElementTree.iterparse` has been " -"deprecated, as has the *html* argument of " -":func:`~xml.etree.ElementTree.XMLParser`. To prepare for the removal of the" -" latter, all arguments to ``XMLParser`` should be passed by keyword." +"deprecated, as has the *html* argument of :func:`~xml.etree.ElementTree." +"XMLParser`. To prepare for the removal of the latter, all arguments to " +"``XMLParser`` should be passed by keyword." msgstr "" "The *parser* argument of :func:`xml.etree.ElementTree.iterparse` has been " -"deprecated, as has the *html* argument of " -":func:`~xml.etree.ElementTree.XMLParser`. To prepare for the removal of the" -" latter, all arguments to ``XMLParser`` should be passed by keyword." +"deprecated, as has the *html* argument of :func:`~xml.etree.ElementTree." +"XMLParser`. To prepare for the removal of the latter, all arguments to " +"``XMLParser`` should be passed by keyword." #: ../../whatsnew/3.4.rst:2146 msgid "Deprecated Features" @@ -4210,11 +4146,11 @@ msgstr "Operating Systems No Longer Supported" #: ../../whatsnew/3.4.rst:2163 msgid "" -"Support for the following operating systems has been removed from the source" -" and build tools:" +"Support for the following operating systems has been removed from the source " +"and build tools:" msgstr "" -"Support for the following operating systems has been removed from the source" -" and build tools:" +"Support for the following operating systems has been removed from the source " +"and build tools:" #: ../../whatsnew/3.4.rst:2166 msgid "OS/2 (:issue:`16135`)." @@ -4226,11 +4162,9 @@ msgstr "Windows 2000 (changeset e52df05b496a)." #: ../../whatsnew/3.4.rst:2168 msgid "" -"Windows systems where ``COMSPEC`` points to ``command.com`` " -"(:issue:`14470`)." +"Windows systems where ``COMSPEC`` points to ``command.com`` (:issue:`14470`)." msgstr "" -"Windows systems where ``COMSPEC`` points to ``command.com`` " -"(:issue:`14470`)." +"Windows systems where ``COMSPEC`` points to ``command.com`` (:issue:`14470`)." #: ../../whatsnew/3.4.rst:2169 msgid "VMS (:issue:`16136`)." @@ -4242,11 +4176,11 @@ msgstr "API and Feature Removals" #: ../../whatsnew/3.4.rst:2175 msgid "" -"The following obsolete and previously deprecated APIs and features have been" -" removed:" +"The following obsolete and previously deprecated APIs and features have been " +"removed:" msgstr "" -"The following obsolete and previously deprecated APIs and features have been" -" removed:" +"The following obsolete and previously deprecated APIs and features have been " +"removed:" #: ../../whatsnew/3.4.rst:2178 msgid "" @@ -4266,12 +4200,12 @@ msgstr "" #: ../../whatsnew/3.4.rst:2185 msgid "" "The ``PyThreadState.tick_counter`` field has been removed; its value has " -"been meaningless since Python 3.2, when the \"new GIL\" was introduced " -"(:issue:`19199`)." +"been meaningless since Python 3.2, when the \"new GIL\" was introduced (:" +"issue:`19199`)." msgstr "" "The ``PyThreadState.tick_counter`` field has been removed; its value has " -"been meaningless since Python 3.2, when the \"new GIL\" was introduced " -"(:issue:`19199`)." +"been meaningless since Python 3.2, when the \"new GIL\" was introduced (:" +"issue:`19199`)." #: ../../whatsnew/3.4.rst:2189 msgid "" @@ -4283,13 +4217,13 @@ msgstr "" #: ../../whatsnew/3.4.rst:2192 msgid "" -"The *strict* argument to :class:`~http.client.HTTPConnection` and " -":class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style " -"\"Simple Responses\" are no longer supported." +"The *strict* argument to :class:`~http.client.HTTPConnection` and :class:" +"`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style \"Simple " +"Responses\" are no longer supported." msgstr "" -"The *strict* argument to :class:`~http.client.HTTPConnection` and " -":class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style " -"\"Simple Responses\" are no longer supported." +"The *strict* argument to :class:`~http.client.HTTPConnection` and :class:" +"`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style \"Simple " +"Responses\" are no longer supported." #: ../../whatsnew/3.4.rst:2196 msgid "" @@ -4305,11 +4239,11 @@ msgstr "" #: ../../whatsnew/3.4.rst:2201 msgid "" -"Support for loading the deprecated ``TYPE_INT64`` has been removed from " -":mod:`marshal`. (Contributed by Dan Riti in :issue:`15480`.)" +"Support for loading the deprecated ``TYPE_INT64`` has been removed from :mod:" +"`marshal`. (Contributed by Dan Riti in :issue:`15480`.)" msgstr "" -"Support for loading the deprecated ``TYPE_INT64`` has been removed from " -":mod:`marshal`. (Contributed by Dan Riti in :issue:`15480`.)" +"Support for loading the deprecated ``TYPE_INT64`` has been removed from :mod:" +"`marshal`. (Contributed by Dan Riti in :issue:`15480`.)" #: ../../whatsnew/3.4.rst:2204 msgid "" @@ -4321,35 +4255,35 @@ msgstr "" #: ../../whatsnew/3.4.rst:2207 msgid "" -":meth:`object.__format__` no longer accepts non-empty format strings, it now" -" raises a :exc:`TypeError` instead. Using a non-empty string has been " +":meth:`object.__format__` no longer accepts non-empty format strings, it now " +"raises a :exc:`TypeError` instead. Using a non-empty string has been " "deprecated since Python 3.2. This change has been made to prevent a " "situation where previously working (but incorrect) code would start failing " "if an object gained a __format__ method, which means that your code may now " "raise a :exc:`TypeError` if you are using an ``'s'`` format code with " -"objects that do not have a __format__ method that handles it. See " -":issue:`7994` for background." +"objects that do not have a __format__ method that handles it. See :issue:" +"`7994` for background." msgstr "" -":meth:`object.__format__` no longer accepts non-empty format strings, it now" -" raises a :exc:`TypeError` instead. Using a non-empty string has been " +":meth:`object.__format__` no longer accepts non-empty format strings, it now " +"raises a :exc:`TypeError` instead. Using a non-empty string has been " "deprecated since Python 3.2. This change has been made to prevent a " "situation where previously working (but incorrect) code would start failing " "if an object gained a __format__ method, which means that your code may now " "raise a :exc:`TypeError` if you are using an ``'s'`` format code with " -"objects that do not have a __format__ method that handles it. See " -":issue:`7994` for background." +"objects that do not have a __format__ method that handles it. See :issue:" +"`7994` for background." #: ../../whatsnew/3.4.rst:2216 msgid "" -":meth:`difflib.SequenceMatcher.isbjunk` and " -":meth:`difflib.SequenceMatcher.isbpopular` were deprecated in 3.2, and have " -"now been removed: use ``x in sm.bjunk`` and ``x in sm.bpopular``, where *sm*" -" is a :class:`~difflib.SequenceMatcher` object (:issue:`13248`)." +":meth:`difflib.SequenceMatcher.isbjunk` and :meth:`difflib.SequenceMatcher." +"isbpopular` were deprecated in 3.2, and have now been removed: use ``x in sm." +"bjunk`` and ``x in sm.bpopular``, where *sm* is a :class:`~difflib." +"SequenceMatcher` object (:issue:`13248`)." msgstr "" -":meth:`difflib.SequenceMatcher.isbjunk` and " -":meth:`difflib.SequenceMatcher.isbpopular` were deprecated in 3.2, and have " -"now been removed: use ``x in sm.bjunk`` and ``x in sm.bpopular``, where *sm*" -" is a :class:`~difflib.SequenceMatcher` object (:issue:`13248`)." +":meth:`difflib.SequenceMatcher.isbjunk` and :meth:`difflib.SequenceMatcher." +"isbpopular` were deprecated in 3.2, and have now been removed: use ``x in sm." +"bjunk`` and ``x in sm.bpopular``, where *sm* is a :class:`~difflib." +"SequenceMatcher` object (:issue:`13248`)." #: ../../whatsnew/3.4.rst:2224 msgid "Code Cleanups" @@ -4357,11 +4291,11 @@ msgstr "Code Cleanups" #: ../../whatsnew/3.4.rst:2226 msgid "" -"The unused and undocumented internal ``Scanner`` class has been removed from" -" the :mod:`pydoc` module." +"The unused and undocumented internal ``Scanner`` class has been removed from " +"the :mod:`pydoc` module." msgstr "" -"The unused and undocumented internal ``Scanner`` class has been removed from" -" the :mod:`pydoc` module." +"The unused and undocumented internal ``Scanner`` class has been removed from " +"the :mod:`pydoc` module." #: ../../whatsnew/3.4.rst:2229 msgid "" @@ -4402,32 +4336,30 @@ msgstr "Changes in 'python' Command Behavior" #: ../../whatsnew/3.4.rst:2249 msgid "" "In a posix shell, setting the :envvar:`PATH` environment variable to an " -"empty value is equivalent to not setting it at all. However, setting " -":envvar:`PYTHONPATH` to an empty value was *not* equivalent to not setting " -"it at all: setting :envvar:`PYTHONPATH` to an empty value was equivalent to " +"empty value is equivalent to not setting it at all. However, setting :" +"envvar:`PYTHONPATH` to an empty value was *not* equivalent to not setting it " +"at all: setting :envvar:`PYTHONPATH` to an empty value was equivalent to " "setting it to ``.``, which leads to confusion when reasoning by analogy to " -"how :envvar:`PATH` works. The behavior now conforms to the posix convention" -" for :envvar:`PATH`." +"how :envvar:`PATH` works. The behavior now conforms to the posix convention " +"for :envvar:`PATH`." msgstr "" "In a posix shell, setting the :envvar:`PATH` environment variable to an " -"empty value is equivalent to not setting it at all. However, setting " -":envvar:`PYTHONPATH` to an empty value was *not* equivalent to not setting " -"it at all: setting :envvar:`PYTHONPATH` to an empty value was equivalent to " +"empty value is equivalent to not setting it at all. However, setting :" +"envvar:`PYTHONPATH` to an empty value was *not* equivalent to not setting it " +"at all: setting :envvar:`PYTHONPATH` to an empty value was equivalent to " "setting it to ``.``, which leads to confusion when reasoning by analogy to " -"how :envvar:`PATH` works. The behavior now conforms to the posix convention" -" for :envvar:`PATH`." +"how :envvar:`PATH` works. The behavior now conforms to the posix convention " +"for :envvar:`PATH`." #: ../../whatsnew/3.4.rst:2257 msgid "" "The [X refs, Y blocks] output of a debug (``--with-pydebug``) build of the " "CPython interpreter is now off by default. It can be re-enabled using the " -"``-X showrefcount`` option. (Contributed by Ezio Melotti in " -":issue:`17323`.)" +"``-X showrefcount`` option. (Contributed by Ezio Melotti in :issue:`17323`.)" msgstr "" "The [X refs, Y blocks] output of a debug (``--with-pydebug``) build of the " "CPython interpreter is now off by default. It can be re-enabled using the " -"``-X showrefcount`` option. (Contributed by Ezio Melotti in " -":issue:`17323`.)" +"``-X showrefcount`` option. (Contributed by Ezio Melotti in :issue:`17323`.)" #: ../../whatsnew/3.4.rst:2261 msgid "" @@ -4446,28 +4378,26 @@ msgstr "Changes in the Python API" #: ../../whatsnew/3.4.rst:2269 msgid "" "The ABCs defined in :mod:`importlib.abc` now either raise the appropriate " -"exception or return a default value instead of raising " -":exc:`NotImplementedError` blindly. This will only affect code calling " -":func:`super` and falling through all the way to the ABCs. For " -"compatibility, catch both :exc:`NotImplementedError` or the appropriate " -"exception as needed." +"exception or return a default value instead of raising :exc:" +"`NotImplementedError` blindly. This will only affect code calling :func:" +"`super` and falling through all the way to the ABCs. For compatibility, " +"catch both :exc:`NotImplementedError` or the appropriate exception as needed." msgstr "" "The ABCs defined in :mod:`importlib.abc` now either raise the appropriate " -"exception or return a default value instead of raising " -":exc:`NotImplementedError` blindly. This will only affect code calling " -":func:`super` and falling through all the way to the ABCs. For " -"compatibility, catch both :exc:`NotImplementedError` or the appropriate " -"exception as needed." +"exception or return a default value instead of raising :exc:" +"`NotImplementedError` blindly. This will only affect code calling :func:" +"`super` and falling through all the way to the ABCs. For compatibility, " +"catch both :exc:`NotImplementedError` or the appropriate exception as needed." #: ../../whatsnew/3.4.rst:2275 msgid "" -"The module type now initializes the :attr:`__package__` and " -":attr:`__loader__` attributes to ``None`` by default. To determine if these " +"The module type now initializes the :attr:`__package__` and :attr:" +"`__loader__` attributes to ``None`` by default. To determine if these " "attributes were set in a backwards-compatible fashion, use e.g. " "``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.)" msgstr "" -"The module type now initializes the :attr:`__package__` and " -":attr:`__loader__` attributes to ``None`` by default. To determine if these " +"The module type now initializes the :attr:`__package__` and :attr:" +"`__loader__` attributes to ``None`` by default. To determine if these " "attributes were set in a backwards-compatible fashion, use e.g. " "``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.)" @@ -4475,13 +4405,13 @@ msgstr "" msgid "" ":meth:`importlib.util.module_for_loader` now sets ``__loader__`` and " "``__package__`` unconditionally to properly support reloading. If this is " -"not desired then you will need to set these attributes manually. You can use" -" :func:`importlib.util.module_to_load` for module management." +"not desired then you will need to set these attributes manually. You can " +"use :func:`importlib.util.module_to_load` for module management." msgstr "" ":meth:`importlib.util.module_for_loader` now sets ``__loader__`` and " "``__package__`` unconditionally to properly support reloading. If this is " -"not desired then you will need to set these attributes manually. You can use" -" :func:`importlib.util.module_to_load` for module management." +"not desired then you will need to set these attributes manually. You can " +"use :func:`importlib.util.module_to_load` for module management." #: ../../whatsnew/3.4.rst:2285 msgid "" @@ -4515,87 +4445,87 @@ msgstr "" msgid "" "Frozen modules no longer define a ``__file__`` attribute. It's semantically " "incorrect for frozen modules to set the attribute as they are not loaded " -"from any explicit location. If you must know that a module comes from frozen" -" code then you can see if the module's ``__spec__.location`` is set to " -"``'frozen'``, check if the loader is a subclass of " -":class:`importlib.machinery.FrozenImporter`, or if Python 2 compatibility is" -" necessary you can use :func:`imp.is_frozen`." +"from any explicit location. If you must know that a module comes from frozen " +"code then you can see if the module's ``__spec__.location`` is set to " +"``'frozen'``, check if the loader is a subclass of :class:`importlib." +"machinery.FrozenImporter`, or if Python 2 compatibility is necessary you can " +"use :func:`imp.is_frozen`." msgstr "" "Frozen modules no longer define a ``__file__`` attribute. It's semantically " "incorrect for frozen modules to set the attribute as they are not loaded " -"from any explicit location. If you must know that a module comes from frozen" -" code then you can see if the module's ``__spec__.location`` is set to " -"``'frozen'``, check if the loader is a subclass of " -":class:`importlib.machinery.FrozenImporter`, or if Python 2 compatibility is" -" necessary you can use :func:`imp.is_frozen`." +"from any explicit location. If you must know that a module comes from frozen " +"code then you can see if the module's ``__spec__.location`` is set to " +"``'frozen'``, check if the loader is a subclass of :class:`importlib." +"machinery.FrozenImporter`, or if Python 2 compatibility is necessary you can " +"use :func:`imp.is_frozen`." #: ../../whatsnew/3.4.rst:2305 msgid "" ":func:`py_compile.compile` now raises :exc:`FileExistsError` if the file " -"path it would write to is a symlink or a non-regular file. This is to act as" -" a warning that import will overwrite those files with a regular file " +"path it would write to is a symlink or a non-regular file. This is to act as " +"a warning that import will overwrite those files with a regular file " "regardless of what type of file path they were originally." msgstr "" ":func:`py_compile.compile` now raises :exc:`FileExistsError` if the file " -"path it would write to is a symlink or a non-regular file. This is to act as" -" a warning that import will overwrite those files with a regular file " +"path it would write to is a symlink or a non-regular file. This is to act as " +"a warning that import will overwrite those files with a regular file " "regardless of what type of file path they were originally." #: ../../whatsnew/3.4.rst:2310 msgid "" -":meth:`importlib.abc.SourceLoader.get_source` no longer raises " -":exc:`ImportError` when the source code being loaded triggers a " -":exc:`SyntaxError` or :exc:`UnicodeDecodeError`. As :exc:`ImportError` is " -"meant to be raised only when source code cannot be found but it should, it " -"was felt to be over-reaching/overloading of that meaning when the source " -"code is found but improperly structured. If you were catching ImportError " -"before and wish to continue to ignore syntax or decoding issues, catch all " -"three exceptions now." -msgstr "" -":meth:`importlib.abc.SourceLoader.get_source` no longer raises " -":exc:`ImportError` when the source code being loaded triggers a " -":exc:`SyntaxError` or :exc:`UnicodeDecodeError`. As :exc:`ImportError` is " -"meant to be raised only when source code cannot be found but it should, it " -"was felt to be over-reaching/overloading of that meaning when the source " -"code is found but improperly structured. If you were catching ImportError " -"before and wish to continue to ignore syntax or decoding issues, catch all " -"three exceptions now." +":meth:`importlib.abc.SourceLoader.get_source` no longer raises :exc:" +"`ImportError` when the source code being loaded triggers a :exc:" +"`SyntaxError` or :exc:`UnicodeDecodeError`. As :exc:`ImportError` is meant " +"to be raised only when source code cannot be found but it should, it was " +"felt to be over-reaching/overloading of that meaning when the source code is " +"found but improperly structured. If you were catching ImportError before and " +"wish to continue to ignore syntax or decoding issues, catch all three " +"exceptions now." +msgstr "" +":meth:`importlib.abc.SourceLoader.get_source` no longer raises :exc:" +"`ImportError` when the source code being loaded triggers a :exc:" +"`SyntaxError` or :exc:`UnicodeDecodeError`. As :exc:`ImportError` is meant " +"to be raised only when source code cannot be found but it should, it was " +"felt to be over-reaching/overloading of that meaning when the source code is " +"found but improperly structured. If you were catching ImportError before and " +"wish to continue to ignore syntax or decoding issues, catch all three " +"exceptions now." #: ../../whatsnew/3.4.rst:2319 msgid "" ":func:`functools.update_wrapper` and :func:`functools.wraps` now correctly " "set the ``__wrapped__`` attribute to the function being wrapped, even if " "that function also had its ``__wrapped__`` attribute set. This means " -"``__wrapped__`` attributes now correctly link a stack of decorated functions" -" rather than every ``__wrapped__`` attribute in the chain referring to the " +"``__wrapped__`` attributes now correctly link a stack of decorated functions " +"rather than every ``__wrapped__`` attribute in the chain referring to the " "innermost function. Introspection libraries that assumed the previous " -"behaviour was intentional can use :func:`inspect.unwrap` to access the first" -" function in the chain that has no ``__wrapped__`` attribute." +"behaviour was intentional can use :func:`inspect.unwrap` to access the first " +"function in the chain that has no ``__wrapped__`` attribute." msgstr "" ":func:`functools.update_wrapper` and :func:`functools.wraps` now correctly " "set the ``__wrapped__`` attribute to the function being wrapped, even if " "that function also had its ``__wrapped__`` attribute set. This means " -"``__wrapped__`` attributes now correctly link a stack of decorated functions" -" rather than every ``__wrapped__`` attribute in the chain referring to the " +"``__wrapped__`` attributes now correctly link a stack of decorated functions " +"rather than every ``__wrapped__`` attribute in the chain referring to the " "innermost function. Introspection libraries that assumed the previous " -"behaviour was intentional can use :func:`inspect.unwrap` to access the first" -" function in the chain that has no ``__wrapped__`` attribute." +"behaviour was intentional can use :func:`inspect.unwrap` to access the first " +"function in the chain that has no ``__wrapped__`` attribute." #: ../../whatsnew/3.4.rst:2329 msgid "" -":func:`inspect.getfullargspec` has been reimplemented on top of " -":func:`inspect.signature` and hence handles a much wider variety of callable" -" objects than it did in the past. It is expected that additional builtin and" -" extension module callables will gain signature metadata over the course of " -"the Python 3.4 series. Code that assumes that :func:`inspect.getfullargspec`" -" will fail on non-Python callables may need to be adjusted accordingly." +":func:`inspect.getfullargspec` has been reimplemented on top of :func:" +"`inspect.signature` and hence handles a much wider variety of callable " +"objects than it did in the past. It is expected that additional builtin and " +"extension module callables will gain signature metadata over the course of " +"the Python 3.4 series. Code that assumes that :func:`inspect.getfullargspec` " +"will fail on non-Python callables may need to be adjusted accordingly." msgstr "" -":func:`inspect.getfullargspec` has been reimplemented on top of " -":func:`inspect.signature` and hence handles a much wider variety of callable" -" objects than it did in the past. It is expected that additional builtin and" -" extension module callables will gain signature metadata over the course of " -"the Python 3.4 series. Code that assumes that :func:`inspect.getfullargspec`" -" will fail on non-Python callables may need to be adjusted accordingly." +":func:`inspect.getfullargspec` has been reimplemented on top of :func:" +"`inspect.signature` and hence handles a much wider variety of callable " +"objects than it did in the past. It is expected that additional builtin and " +"extension module callables will gain signature metadata over the course of " +"the Python 3.4 series. Code that assumes that :func:`inspect.getfullargspec` " +"will fail on non-Python callables may need to be adjusted accordingly." #: ../../whatsnew/3.4.rst:2337 msgid "" @@ -4603,145 +4533,141 @@ msgid "" "directory to objects in :data:`sys.path_hooks` for the empty string. This " "results in :data:`sys.path_importer_cache` never containing ``''``, thus " "iterating through :data:`sys.path_importer_cache` based on :data:`sys.path` " -"will not find all keys. A module's ``__file__`` when imported in the current" -" working directory will also now have an absolute path, including when using" -" ``-m`` with the interpreter (except for ``__main__.__file__`` when a script" -" has been executed directly using a relative path) (Contributed by Brett " -"Cannon in :issue:`18416`). is specified on the command-line) " -"(:issue:`18416`)." +"will not find all keys. A module's ``__file__`` when imported in the current " +"working directory will also now have an absolute path, including when using " +"``-m`` with the interpreter (except for ``__main__.__file__`` when a script " +"has been executed directly using a relative path) (Contributed by Brett " +"Cannon in :issue:`18416`). is specified on the command-line) (:issue:" +"`18416`)." msgstr "" ":class:`importlib.machinery.PathFinder` now passes on the current working " "directory to objects in :data:`sys.path_hooks` for the empty string. This " "results in :data:`sys.path_importer_cache` never containing ``''``, thus " "iterating through :data:`sys.path_importer_cache` based on :data:`sys.path` " -"will not find all keys. A module's ``__file__`` when imported in the current" -" working directory will also now have an absolute path, including when using" -" ``-m`` with the interpreter (except for ``__main__.__file__`` when a script" -" has been executed directly using a relative path) (Contributed by Brett " -"Cannon in :issue:`18416`). is specified on the command-line) " -"(:issue:`18416`)." +"will not find all keys. A module's ``__file__`` when imported in the current " +"working directory will also now have an absolute path, including when using " +"``-m`` with the interpreter (except for ``__main__.__file__`` when a script " +"has been executed directly using a relative path) (Contributed by Brett " +"Cannon in :issue:`18416`). is specified on the command-line) (:issue:" +"`18416`)." #: ../../whatsnew/3.4.rst:2348 msgid "" -"The removal of the *strict* argument to :class:`~http.client.HTTPConnection`" -" and :class:`~http.client.HTTPSConnection` changes the meaning of the " +"The removal of the *strict* argument to :class:`~http.client.HTTPConnection` " +"and :class:`~http.client.HTTPSConnection` changes the meaning of the " "remaining arguments if you are specifying them positionally rather than by " "keyword. If you've been paying attention to deprecation warnings your code " "should already be specifying any additional arguments via keywords." msgstr "" -"The removal of the *strict* argument to :class:`~http.client.HTTPConnection`" -" and :class:`~http.client.HTTPSConnection` changes the meaning of the " +"The removal of the *strict* argument to :class:`~http.client.HTTPConnection` " +"and :class:`~http.client.HTTPSConnection` changes the meaning of the " "remaining arguments if you are specifying them positionally rather than by " "keyword. If you've been paying attention to deprecation warnings your code " "should already be specifying any additional arguments via keywords." #: ../../whatsnew/3.4.rst:2354 msgid "" -"Strings between ``from __future__ import ...`` statements now *always* raise" -" a :exc:`SyntaxError`. Previously if there was no leading docstring, an " +"Strings between ``from __future__ import ...`` statements now *always* raise " +"a :exc:`SyntaxError`. Previously if there was no leading docstring, an " "interstitial string would sometimes be ignored. This brings CPython into " -"compliance with the language spec; Jython and PyPy already were. " -"(:issue:`17434`)." +"compliance with the language spec; Jython and PyPy already were. (:issue:" +"`17434`)." msgstr "" -"Strings between ``from __future__ import ...`` statements now *always* raise" -" a :exc:`SyntaxError`. Previously if there was no leading docstring, an " +"Strings between ``from __future__ import ...`` statements now *always* raise " +"a :exc:`SyntaxError`. Previously if there was no leading docstring, an " "interstitial string would sometimes be ignored. This brings CPython into " -"compliance with the language spec; Jython and PyPy already were. " -"(:issue:`17434`)." +"compliance with the language spec; Jython and PyPy already were. (:issue:" +"`17434`)." #: ../../whatsnew/3.4.rst:2360 msgid "" -":meth:`ssl.SSLSocket.getpeercert` and :meth:`ssl.SSLSocket.do_handshake` now" -" raise an :exc:`OSError` with ``ENOTCONN`` when the ``SSLSocket`` is not " -"connected, instead of the previous behavior of raising an " -":exc:`AttributeError`. In addition, :meth:`~ssl.SSLSocket.getpeercert` will" -" raise a :exc:`ValueError` if the handshake has not yet been done." +":meth:`ssl.SSLSocket.getpeercert` and :meth:`ssl.SSLSocket.do_handshake` now " +"raise an :exc:`OSError` with ``ENOTCONN`` when the ``SSLSocket`` is not " +"connected, instead of the previous behavior of raising an :exc:" +"`AttributeError`. In addition, :meth:`~ssl.SSLSocket.getpeercert` will " +"raise a :exc:`ValueError` if the handshake has not yet been done." msgstr "" -":meth:`ssl.SSLSocket.getpeercert` and :meth:`ssl.SSLSocket.do_handshake` now" -" raise an :exc:`OSError` with ``ENOTCONN`` when the ``SSLSocket`` is not " -"connected, instead of the previous behavior of raising an " -":exc:`AttributeError`. In addition, :meth:`~ssl.SSLSocket.getpeercert` will" -" raise a :exc:`ValueError` if the handshake has not yet been done." +":meth:`ssl.SSLSocket.getpeercert` and :meth:`ssl.SSLSocket.do_handshake` now " +"raise an :exc:`OSError` with ``ENOTCONN`` when the ``SSLSocket`` is not " +"connected, instead of the previous behavior of raising an :exc:" +"`AttributeError`. In addition, :meth:`~ssl.SSLSocket.getpeercert` will " +"raise a :exc:`ValueError` if the handshake has not yet been done." #: ../../whatsnew/3.4.rst:2366 msgid "" ":func:`base64.b32decode` now raises a :exc:`binascii.Error` when the input " -"string contains non-b32-alphabet characters, instead of a :exc:`TypeError`." -" This particular :exc:`TypeError` was missed when the other " -":exc:`TypeError`\\ s were converted. (Contributed by Serhiy Storchaka in " -":issue:`18011`.) Note: this change was also inadvertently applied in Python" -" 3.3.3." +"string contains non-b32-alphabet characters, instead of a :exc:`TypeError`. " +"This particular :exc:`TypeError` was missed when the other :exc:`TypeError`" +"\\ s were converted. (Contributed by Serhiy Storchaka in :issue:`18011`.) " +"Note: this change was also inadvertently applied in Python 3.3.3." msgstr "" ":func:`base64.b32decode` now raises a :exc:`binascii.Error` when the input " -"string contains non-b32-alphabet characters, instead of a :exc:`TypeError`." -" This particular :exc:`TypeError` was missed when the other " -":exc:`TypeError`\\ s were converted. (Contributed by Serhiy Storchaka in " -":issue:`18011`.) Note: this change was also inadvertently applied in Python" -" 3.3.3." +"string contains non-b32-alphabet characters, instead of a :exc:`TypeError`. " +"This particular :exc:`TypeError` was missed when the other :exc:`TypeError`" +"\\ s were converted. (Contributed by Serhiy Storchaka in :issue:`18011`.) " +"Note: this change was also inadvertently applied in Python 3.3.3." #: ../../whatsnew/3.4.rst:2373 msgid "" "The :attr:`~cgi.FieldStorage.file` attribute is now automatically closed " "when the creating :class:`cgi.FieldStorage` instance is garbage collected. " -"If you were pulling the file object out separately from the " -":class:`cgi.FieldStorage` instance and not keeping the instance alive, then " -"you should either store the entire :class:`cgi.FieldStorage` instance or " -"read the contents of the file before the :class:`cgi.FieldStorage` instance " -"is garbage collected." +"If you were pulling the file object out separately from the :class:`cgi." +"FieldStorage` instance and not keeping the instance alive, then you should " +"either store the entire :class:`cgi.FieldStorage` instance or read the " +"contents of the file before the :class:`cgi.FieldStorage` instance is " +"garbage collected." msgstr "" "The :attr:`~cgi.FieldStorage.file` attribute is now automatically closed " "when the creating :class:`cgi.FieldStorage` instance is garbage collected. " -"If you were pulling the file object out separately from the " -":class:`cgi.FieldStorage` instance and not keeping the instance alive, then " -"you should either store the entire :class:`cgi.FieldStorage` instance or " -"read the contents of the file before the :class:`cgi.FieldStorage` instance " -"is garbage collected." +"If you were pulling the file object out separately from the :class:`cgi." +"FieldStorage` instance and not keeping the instance alive, then you should " +"either store the entire :class:`cgi.FieldStorage` instance or read the " +"contents of the file before the :class:`cgi.FieldStorage` instance is " +"garbage collected." #: ../../whatsnew/3.4.rst:2380 msgid "" "Calling ``read`` or ``write`` on a closed SSL socket now raises an " -"informative :exc:`ValueError` rather than the previous more mysterious " -":exc:`AttributeError` (:issue:`9177`)." +"informative :exc:`ValueError` rather than the previous more mysterious :exc:" +"`AttributeError` (:issue:`9177`)." msgstr "" "Calling ``read`` or ``write`` on a closed SSL socket now raises an " -"informative :exc:`ValueError` rather than the previous more mysterious " -":exc:`AttributeError` (:issue:`9177`)." +"informative :exc:`ValueError` rather than the previous more mysterious :exc:" +"`AttributeError` (:issue:`9177`)." #: ../../whatsnew/3.4.rst:2384 msgid "" ":meth:`slice.indices` no longer produces an :exc:`OverflowError` for huge " -"values. As a consequence of this fix, :meth:`slice.indices` now raises a " -":exc:`ValueError` if given a negative length; previously it returned " -"nonsense values (:issue:`14794`)." +"values. As a consequence of this fix, :meth:`slice.indices` now raises a :" +"exc:`ValueError` if given a negative length; previously it returned nonsense " +"values (:issue:`14794`)." msgstr "" ":meth:`slice.indices` no longer produces an :exc:`OverflowError` for huge " -"values. As a consequence of this fix, :meth:`slice.indices` now raises a " -":exc:`ValueError` if given a negative length; previously it returned " -"nonsense values (:issue:`14794`)." +"values. As a consequence of this fix, :meth:`slice.indices` now raises a :" +"exc:`ValueError` if given a negative length; previously it returned nonsense " +"values (:issue:`14794`)." #: ../../whatsnew/3.4.rst:2389 msgid "" "The :class:`complex` constructor, unlike the :mod:`cmath` functions, was " "incorrectly accepting :class:`float` values if an object's ``__complex__`` " -"special method returned one. This now raises a :exc:`TypeError`. " -"(:issue:`16290`.)" +"special method returned one. This now raises a :exc:`TypeError`. (:issue:" +"`16290`.)" msgstr "" "The :class:`complex` constructor, unlike the :mod:`cmath` functions, was " "incorrectly accepting :class:`float` values if an object's ``__complex__`` " -"special method returned one. This now raises a :exc:`TypeError`. " -"(:issue:`16290`.)" +"special method returned one. This now raises a :exc:`TypeError`. (:issue:" +"`16290`.)" #: ../../whatsnew/3.4.rst:2394 msgid "" -"The :class:`int` constructor in 3.2 and 3.3 erroneously accepts " -":class:`float` values for the *base* parameter. It is unlikely anyone was " -"doing this, but if so, it will now raise a :exc:`TypeError` " -"(:issue:`16772`)." +"The :class:`int` constructor in 3.2 and 3.3 erroneously accepts :class:" +"`float` values for the *base* parameter. It is unlikely anyone was doing " +"this, but if so, it will now raise a :exc:`TypeError` (:issue:`16772`)." msgstr "" -"The :class:`int` constructor in 3.2 and 3.3 erroneously accepts " -":class:`float` values for the *base* parameter. It is unlikely anyone was " -"doing this, but if so, it will now raise a :exc:`TypeError` " -"(:issue:`16772`)." +"The :class:`int` constructor in 3.2 and 3.3 erroneously accepts :class:" +"`float` values for the *base* parameter. It is unlikely anyone was doing " +"this, but if so, it will now raise a :exc:`TypeError` (:issue:`16772`)." #: ../../whatsnew/3.4.rst:2398 msgid "" @@ -4768,60 +4694,58 @@ msgstr "" #: ../../whatsnew/3.4.rst:2407 msgid "" "Parameter names in ``__annotations__`` dicts are now mangled properly, " -"similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov in " -":issue:`20625`.)" +"similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov in :issue:" +"`20625`.)" msgstr "" "Parameter names in ``__annotations__`` dicts are now mangled properly, " -"similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov in " -":issue:`20625`.)" +"similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov in :issue:" +"`20625`.)" #: ../../whatsnew/3.4.rst:2411 msgid "" ":attr:`hashlib.hash.name` now always returns the identifier in lower case. " "Previously some builtin hashes had uppercase names, but now that it is a " -"formal public interface the naming has been made consistent " -"(:issue:`18532`)." +"formal public interface the naming has been made consistent (:issue:`18532`)." msgstr "" ":attr:`hashlib.hash.name` now always returns the identifier in lower case. " "Previously some builtin hashes had uppercase names, but now that it is a " -"formal public interface the naming has been made consistent " -"(:issue:`18532`)." +"formal public interface the naming has been made consistent (:issue:`18532`)." #: ../../whatsnew/3.4.rst:2415 msgid "" "Because :mod:`unittest.TestSuite` now drops references to tests after they " -"are run, test harnesses that re-use a :class:`~unittest.TestSuite` to re-run" -" a set of tests may fail. Test suites should not be re-used in this " -"fashion since it means state is retained between test runs, breaking the " -"test isolation that :mod:`unittest` is designed to provide. However, if the" -" lack of isolation is considered acceptable, the old behavior can be " -"restored by creating a :mod:`~unittest.TestSuite` subclass that defines a " -"``_removeTestAtIndex`` method that does nothing (see " -":meth:`.TestSuite.__iter__`) (:issue:`11798`)." +"are run, test harnesses that re-use a :class:`~unittest.TestSuite` to re-run " +"a set of tests may fail. Test suites should not be re-used in this fashion " +"since it means state is retained between test runs, breaking the test " +"isolation that :mod:`unittest` is designed to provide. However, if the lack " +"of isolation is considered acceptable, the old behavior can be restored by " +"creating a :mod:`~unittest.TestSuite` subclass that defines a " +"``_removeTestAtIndex`` method that does nothing (see :meth:`.TestSuite." +"__iter__`) (:issue:`11798`)." msgstr "" "Because :mod:`unittest.TestSuite` now drops references to tests after they " -"are run, test harnesses that re-use a :class:`~unittest.TestSuite` to re-run" -" a set of tests may fail. Test suites should not be re-used in this " -"fashion since it means state is retained between test runs, breaking the " -"test isolation that :mod:`unittest` is designed to provide. However, if the" -" lack of isolation is considered acceptable, the old behavior can be " -"restored by creating a :mod:`~unittest.TestSuite` subclass that defines a " -"``_removeTestAtIndex`` method that does nothing (see " -":meth:`.TestSuite.__iter__`) (:issue:`11798`)." +"are run, test harnesses that re-use a :class:`~unittest.TestSuite` to re-run " +"a set of tests may fail. Test suites should not be re-used in this fashion " +"since it means state is retained between test runs, breaking the test " +"isolation that :mod:`unittest` is designed to provide. However, if the lack " +"of isolation is considered acceptable, the old behavior can be restored by " +"creating a :mod:`~unittest.TestSuite` subclass that defines a " +"``_removeTestAtIndex`` method that does nothing (see :meth:`.TestSuite." +"__iter__`) (:issue:`11798`)." #: ../../whatsnew/3.4.rst:2425 msgid "" ":mod:`unittest` now uses :mod:`argparse` for command line parsing. There " "are certain invalid command forms that used to work that are no longer " -"allowed; in theory this should not cause backward compatibility issues since" -" the disallowed command forms didn't make any sense and are unlikely to be " -"in use." +"allowed; in theory this should not cause backward compatibility issues since " +"the disallowed command forms didn't make any sense and are unlikely to be in " +"use." msgstr "" ":mod:`unittest` now uses :mod:`argparse` for command line parsing. There " "are certain invalid command forms that used to work that are no longer " -"allowed; in theory this should not cause backward compatibility issues since" -" the disallowed command forms didn't make any sense and are unlikely to be " -"in use." +"allowed; in theory this should not cause backward compatibility issues since " +"the disallowed command forms didn't make any sense and are unlikely to be in " +"use." #: ../../whatsnew/3.4.rst:2430 msgid "" @@ -4852,14 +4776,14 @@ msgid "" "The new *convert_charrefs* argument to :class:`~html.parser.HTMLParser` " "currently defaults to ``False`` for backward compatibility, but will " "eventually be changed to default to ``True``. It is recommended that you " -"add this keyword, with the appropriate value, to any " -":class:`~html.parser.HTMLParser` calls in your code (:issue:`13633`)." +"add this keyword, with the appropriate value, to any :class:`~html.parser." +"HTMLParser` calls in your code (:issue:`13633`)." msgstr "" "The new *convert_charrefs* argument to :class:`~html.parser.HTMLParser` " "currently defaults to ``False`` for backward compatibility, but will " "eventually be changed to default to ``True``. It is recommended that you " -"add this keyword, with the appropriate value, to any " -":class:`~html.parser.HTMLParser` calls in your code (:issue:`13633`)." +"add this keyword, with the appropriate value, to any :class:`~html.parser." +"HTMLParser` calls in your code (:issue:`13633`)." #: ../../whatsnew/3.4.rst:2446 msgid "" @@ -4885,19 +4809,19 @@ msgstr "" #: ../../whatsnew/3.4.rst:2455 msgid "" -"Any calls to ``open`` functions that specify ``U`` should be modified. ``U``" -" is ineffective in Python3 and will eventually raise an error if used. " -"Depending on the function, the equivalent of its old Python2 behavior can be" -" achieved using either a *newline* argument, or if necessary by wrapping the" -" stream in :mod:`~io.TextIOWrapper` to use its *newline* argument " -"(:issue:`15204`)." +"Any calls to ``open`` functions that specify ``U`` should be modified. ``U`` " +"is ineffective in Python3 and will eventually raise an error if used. " +"Depending on the function, the equivalent of its old Python2 behavior can be " +"achieved using either a *newline* argument, or if necessary by wrapping the " +"stream in :mod:`~io.TextIOWrapper` to use its *newline* argument (:issue:" +"`15204`)." msgstr "" -"Any calls to ``open`` functions that specify ``U`` should be modified. ``U``" -" is ineffective in Python3 and will eventually raise an error if used. " -"Depending on the function, the equivalent of its old Python2 behavior can be" -" achieved using either a *newline* argument, or if necessary by wrapping the" -" stream in :mod:`~io.TextIOWrapper` to use its *newline* argument " -"(:issue:`15204`)." +"Any calls to ``open`` functions that specify ``U`` should be modified. ``U`` " +"is ineffective in Python3 and will eventually raise an error if used. " +"Depending on the function, the equivalent of its old Python2 behavior can be " +"achieved using either a *newline* argument, or if necessary by wrapping the " +"stream in :mod:`~io.TextIOWrapper` to use its *newline* argument (:issue:" +"`15204`)." #: ../../whatsnew/3.4.rst:2462 msgid "" @@ -4910,14 +4834,14 @@ msgstr "" #: ../../whatsnew/3.4.rst:2466 msgid "" "The default behavior of :func:`json.dump` and :func:`json.dumps` when an " -"indent is specified has changed: it no longer produces trailing spaces after" -" the item separating commas at the ends of lines. This will matter only if " +"indent is specified has changed: it no longer produces trailing spaces after " +"the item separating commas at the ends of lines. This will matter only if " "you have tests that are doing white-space-sensitive comparisons of such " "output (:issue:`16333`)." msgstr "" "The default behavior of :func:`json.dump` and :func:`json.dumps` when an " -"indent is specified has changed: it no longer produces trailing spaces after" -" the item separating commas at the ends of lines. This will matter only if " +"indent is specified has changed: it no longer produces trailing spaces after " +"the item separating commas at the ends of lines. This will matter only if " "you have tests that are doing white-space-sensitive comparisons of such " "output (:issue:`16333`)." @@ -4925,29 +4849,29 @@ msgstr "" msgid "" ":mod:`doctest` now looks for doctests in extension module ``__doc__`` " "strings, so if your doctest test discovery includes extension modules that " -"have things that look like doctests in them you may see test failures you've" -" never seen before when running your tests (:issue:`3158`)." +"have things that look like doctests in them you may see test failures you've " +"never seen before when running your tests (:issue:`3158`)." msgstr "" ":mod:`doctest` now looks for doctests in extension module ``__doc__`` " "strings, so if your doctest test discovery includes extension modules that " -"have things that look like doctests in them you may see test failures you've" -" never seen before when running your tests (:issue:`3158`)." +"have things that look like doctests in them you may see test failures you've " +"never seen before when running your tests (:issue:`3158`)." #: ../../whatsnew/3.4.rst:2477 msgid "" "The :mod:`collections.abc` module has been slightly refactored as part of " "the Python startup improvements. As a consequence of this, it is no longer " -"the case that importing :mod:`collections` automatically imports " -":mod:`collections.abc`. If your program depended on the (undocumented) " -"implicit import, you will need to add an explicit ``import collections.abc``" -" (:issue:`20784`)." +"the case that importing :mod:`collections` automatically imports :mod:" +"`collections.abc`. If your program depended on the (undocumented) implicit " +"import, you will need to add an explicit ``import collections.abc`` (:issue:" +"`20784`)." msgstr "" "The :mod:`collections.abc` module has been slightly refactored as part of " "the Python startup improvements. As a consequence of this, it is no longer " -"the case that importing :mod:`collections` automatically imports " -":mod:`collections.abc`. If your program depended on the (undocumented) " -"implicit import, you will need to add an explicit ``import collections.abc``" -" (:issue:`20784`)." +"the case that importing :mod:`collections` automatically imports :mod:" +"`collections.abc`. If your program depended on the (undocumented) implicit " +"import, you will need to add an explicit ``import collections.abc`` (:issue:" +"`20784`)." #: ../../whatsnew/3.4.rst:2486 msgid "Changes in the C API" @@ -4955,45 +4879,45 @@ msgstr "Changes in the C API" #: ../../whatsnew/3.4.rst:2488 msgid "" -":c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and " -":c:func:`PyObject_Str`, along with some other internal C APIs, now include a" -" debugging assertion that ensures they are not used in situations where they" -" may silently discard a currently active exception. In cases where " -"discarding the active exception is expected and desired (for example, " -"because it has already been saved locally with :c:func:`PyErr_Fetch` or is " -"being deliberately replaced with a different exception), an explicit " -":c:func:`PyErr_Clear` call will be needed to avoid triggering the assertion " -"when invoking these operations (directly or indirectly) and running against " -"a version of Python that is compiled with assertions enabled." -msgstr "" -":c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and " -":c:func:`PyObject_Str`, along with some other internal C APIs, now include a" -" debugging assertion that ensures they are not used in situations where they" -" may silently discard a currently active exception. In cases where " -"discarding the active exception is expected and desired (for example, " -"because it has already been saved locally with :c:func:`PyErr_Fetch` or is " -"being deliberately replaced with a different exception), an explicit " -":c:func:`PyErr_Clear` call will be needed to avoid triggering the assertion " -"when invoking these operations (directly or indirectly) and running against " -"a version of Python that is compiled with assertions enabled." +":c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and :c:func:" +"`PyObject_Str`, along with some other internal C APIs, now include a " +"debugging assertion that ensures they are not used in situations where they " +"may silently discard a currently active exception. In cases where discarding " +"the active exception is expected and desired (for example, because it has " +"already been saved locally with :c:func:`PyErr_Fetch` or is being " +"deliberately replaced with a different exception), an explicit :c:func:" +"`PyErr_Clear` call will be needed to avoid triggering the assertion when " +"invoking these operations (directly or indirectly) and running against a " +"version of Python that is compiled with assertions enabled." +msgstr "" +":c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and :c:func:" +"`PyObject_Str`, along with some other internal C APIs, now include a " +"debugging assertion that ensures they are not used in situations where they " +"may silently discard a currently active exception. In cases where discarding " +"the active exception is expected and desired (for example, because it has " +"already been saved locally with :c:func:`PyErr_Fetch` or is being " +"deliberately replaced with a different exception), an explicit :c:func:" +"`PyErr_Clear` call will be needed to avoid triggering the assertion when " +"invoking these operations (directly or indirectly) and running against a " +"version of Python that is compiled with assertions enabled." #: ../../whatsnew/3.4.rst:2500 msgid "" ":c:func:`PyErr_SetImportError` now sets :exc:`TypeError` when its **msg** " -"argument is not set. Previously only ``NULL`` was returned with no exception" -" set." +"argument is not set. Previously only ``NULL`` was returned with no exception " +"set." msgstr "" ":c:func:`PyErr_SetImportError` now sets :exc:`TypeError` when its **msg** " -"argument is not set. Previously only ``NULL`` was returned with no exception" -" set." +"argument is not set. Previously only ``NULL`` was returned with no exception " +"set." #: ../../whatsnew/3.4.rst:2504 msgid "" "The result of the :c:data:`PyOS_ReadlineFunctionPointer` callback must now " -"be a string allocated by :c:func:`PyMem_RawMalloc` or " -":c:func:`PyMem_RawRealloc`, or ``NULL`` if an error occurred, instead of a " -"string allocated by :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc` " -"(:issue:`16742`)" +"be a string allocated by :c:func:`PyMem_RawMalloc` or :c:func:" +"`PyMem_RawRealloc`, or ``NULL`` if an error occurred, instead of a string " +"allocated by :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc` (:issue:" +"`16742`)" msgstr "" #: ../../whatsnew/3.4.rst:2510 @@ -5019,8 +4943,7 @@ msgstr "Alterado em 3.4.3" #: ../../whatsnew/3.4.rst:2524 msgid "" -"PEP 476: Enabling certificate verification by default for stdlib http " -"clients" +"PEP 476: Enabling certificate verification by default for stdlib http clients" msgstr "" "PEP 476: Ativando a verificação de certificados por padrão para clientes " "stdlib http" diff --git a/whatsnew/3.5.po b/whatsnew/3.5.po index d1b872620..b7a165ba5 100644 --- a/whatsnew/3.5.po +++ b/whatsnew/3.5.po @@ -1,24 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Italo Penaforte , 2019 # Victor Matheus Castro , 2019 # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 -# +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:36+0000\n" -"Last-Translator: Claudio Rogerio Carvalho Filho , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -40,9 +42,8 @@ msgstr "Elvis Pranskevichus , Yury Selivanov " #: ../../whatsnew/3.5.rst:47 msgid "" "This article explains the new features in Python 3.5, compared to 3.4. " -"Python 3.5 was released on September 13, 2015.  See the `changelog " -"`_ for a full list of " -"changes." +"Python 3.5 was released on September 13, 2015.  See the `changelog `_ for a full list of changes." msgstr "" #: ../../whatsnew/3.5.rst:54 @@ -64,8 +65,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:63 msgid "" -":ref:`PEP 465 `, a new matrix multiplication operator: ``a" -" @ b``." +":ref:`PEP 465 `, a new matrix multiplication operator: ``a " +"@ b``." msgstr "" #: ../../whatsnew/3.5.rst:64 @@ -93,8 +94,8 @@ msgstr "Novos recursos internos:" #: ../../whatsnew/3.5.rst:76 msgid "" -"``bytes % args``, ``bytearray % args``: :ref:`PEP 461 ` --" -" Adding ``%`` formatting to bytes and bytearray." +"``bytes % args``, ``bytearray % args``: :ref:`PEP 461 ` -- " +"Adding ``%`` formatting to bytes and bytearray." msgstr "" #: ../../whatsnew/3.5.rst:79 @@ -128,10 +129,10 @@ msgstr "Melhorias na implementação do CPython:" #: ../../whatsnew/3.5.rst:96 msgid "" -"When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale), " -":py:data:`sys.stdin` and :py:data:`sys.stdout` now use the " -"``surrogateescape`` error handler, instead of the ``strict`` error handler. " -"(Contributed by Victor Stinner in :issue:`19977`.)" +"When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale), :py:data:" +"`sys.stdin` and :py:data:`sys.stdout` now use the ``surrogateescape`` error " +"handler, instead of the ``strict`` error handler. (Contributed by Victor " +"Stinner in :issue:`19977`.)" msgstr "" #: ../../whatsnew/3.5.rst:101 @@ -195,9 +196,8 @@ msgstr "Melhorias de Segurança:" #: ../../whatsnew/3.5.rst:138 msgid "" "SSLv3 is now disabled throughout the standard library. It can still be " -"enabled by instantiating a :class:`ssl.SSLContext` manually. (See " -":issue:`22638` for more details; this change was backported to CPython 3.4 " -"and 2.7.)" +"enabled by instantiating a :class:`ssl.SSLContext` manually. (See :issue:" +"`22638` for more details; this change was backported to CPython 3.4 and 2.7.)" msgstr "" #: ../../whatsnew/3.5.rst:143 @@ -256,10 +256,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:181 msgid "" -"Inside a coroutine function, the new :keyword:`await` expression can be used" -" to suspend coroutine execution until the result is available. Any object " -"can be *awaited*, as long as it implements the :term:`awaitable` protocol by" -" defining the :meth:`__await__` method." +"Inside a coroutine function, the new :keyword:`await` expression can be used " +"to suspend coroutine execution until the result is available. Any object " +"can be *awaited*, as long as it implements the :term:`awaitable` protocol by " +"defining the :meth:`__await__` method." msgstr "" #: ../../whatsnew/3.5.rst:186 @@ -296,9 +296,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:253 msgid "" -"Starting with CPython 3.5.2, ``__aiter__`` can directly return " -":term:`asynchronous iterators `. Returning an " -":term:`awaitable` object will result in a :exc:`PendingDeprecationWarning`." +"Starting with CPython 3.5.2, ``__aiter__`` can directly return :term:" +"`asynchronous iterators `. Returning an :term:" +"`awaitable` object will result in a :exc:`PendingDeprecationWarning`." msgstr "" #: ../../whatsnew/3.5.rst:259 @@ -321,8 +321,8 @@ msgstr "" msgid "" ":pep:`465` adds the ``@`` infix operator for matrix multiplication. " "Currently, no builtin Python types implement the new operator, however, it " -"can be implemented by defining :meth:`__matmul__`, :meth:`__rmatmul__`, and " -":meth:`__imatmul__` for regular, reflected, and in-place matrix " +"can be implemented by defining :meth:`__matmul__`, :meth:`__rmatmul__`, and :" +"meth:`__imatmul__` for regular, reflected, and in-place matrix " "multiplication. The semantics of these methods is similar to that of " "methods defining other infix arithmetic operators." msgstr "" @@ -356,8 +356,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:321 msgid "" -":pep:`448` extends the allowed uses of the ``*`` iterable unpacking operator" -" and ``**`` dictionary unpacking operator. It is now possible to use an " +":pep:`448` extends the allowed uses of the ``*`` iterable unpacking operator " +"and ``**`` dictionary unpacking operator. It is now possible to use an " "arbitrary number of unpackings in :ref:`function calls `::" msgstr "" @@ -429,8 +429,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:407 msgid "" -"Function annotation syntax has been a Python feature since version 3.0 " -"(:pep:`3107`), however the semantics of annotations has been left undefined." +"Function annotation syntax has been a Python feature since version 3.0 (:pep:" +"`3107`), however the semantics of annotations has been left undefined." msgstr "" #: ../../whatsnew/3.5.rst:410 @@ -456,17 +456,17 @@ msgstr "" #: ../../whatsnew/3.5.rst:425 msgid "" -"While these annotations are available at runtime through the usual " -":attr:`__annotations__` attribute, *no automatic type checking happens at " -"runtime*. Instead, it is assumed that a separate off-line type checker " -"(e.g. `mypy `_) will be used for on-demand source code" -" analysis." +"While these annotations are available at runtime through the usual :attr:" +"`__annotations__` attribute, *no automatic type checking happens at " +"runtime*. Instead, it is assumed that a separate off-line type checker (e." +"g. `mypy `_) will be used for on-demand source code " +"analysis." msgstr "" #: ../../whatsnew/3.5.rst:431 msgid "" -"The type system supports unions, generic types, and a special type named " -":class:`~typing.Any` which is consistent with (i.e. assignable to and from) " +"The type system supports unions, generic types, and a special type named :" +"class:`~typing.Any` which is consistent with (i.e. assignable to and from) " "all types." msgstr "" @@ -501,10 +501,10 @@ msgstr "" msgid "" ":pep:`471` adds a new directory iteration function, :func:`os.scandir`, to " "the standard library. Additionally, :func:`os.walk` is now implemented " -"using ``scandir``, which makes it 3 to 5 times faster on POSIX systems and 7" -" to 20 times faster on Windows systems. This is largely achieved by greatly" -" reducing the number of calls to :func:`os.stat` required to walk a " -"directory tree." +"using ``scandir``, which makes it 3 to 5 times faster on POSIX systems and 7 " +"to 20 times faster on Windows systems. This is largely achieved by greatly " +"reducing the number of calls to :func:`os.stat` required to walk a directory " +"tree." msgstr "" #: ../../whatsnew/3.5.rst:457 @@ -524,8 +524,7 @@ msgstr "" #: ../../whatsnew/3.5.rst:472 msgid "" -":pep:`471` -- os.scandir() function -- a better and faster directory " -"iterator" +":pep:`471` -- os.scandir() function -- a better and faster directory iterator" msgstr "" #: ../../whatsnew/3.5.rst:473 @@ -557,8 +556,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:490 msgid "" -"The first option makes an application fail intermittently. The second option" -" adds a large amount of boilerplate that makes the code nearly unreadable. " +"The first option makes an application fail intermittently. The second option " +"adds a large amount of boilerplate that makes the code nearly unreadable. " "Compare::" msgstr "" @@ -571,8 +570,8 @@ msgid "" ":pep:`475` implements automatic retry of system calls on ``EINTR``. This " "removes the burden of dealing with ``EINTR`` or :exc:`InterruptedError` in " "user code in most situations and makes Python programs, including the " -"standard library, more robust. Note that the system call is only retried if" -" the signal handler does not raise an exception." +"standard library, more robust. Note that the system call is only retried if " +"the signal handler does not raise an exception." msgstr "" #: ../../whatsnew/3.5.rst:512 @@ -591,40 +590,37 @@ msgstr "" #: ../../whatsnew/3.5.rst:519 msgid "" -":mod:`os` functions: :func:`~os.fchdir`, :func:`~os.fchmod`, " -":func:`~os.fchown`, :func:`~os.fdatasync`, :func:`~os.fstat`, " -":func:`~os.fstatvfs`, :func:`~os.fsync`, :func:`~os.ftruncate`, " -":func:`~os.mkfifo`, :func:`~os.mknod`, :func:`~os.open`, " -":func:`~os.posix_fadvise`, :func:`~os.posix_fallocate`, :func:`~os.pread`, " -":func:`~os.pwrite`, :func:`~os.read`, :func:`~os.readv`, " -":func:`~os.sendfile`, :func:`~os.wait3`, :func:`~os.wait4`, " -":func:`~os.wait`, :func:`~os.waitid`, :func:`~os.waitpid`, " -":func:`~os.write`, :func:`~os.writev`;" +":mod:`os` functions: :func:`~os.fchdir`, :func:`~os.fchmod`, :func:`~os." +"fchown`, :func:`~os.fdatasync`, :func:`~os.fstat`, :func:`~os.fstatvfs`, :" +"func:`~os.fsync`, :func:`~os.ftruncate`, :func:`~os.mkfifo`, :func:`~os." +"mknod`, :func:`~os.open`, :func:`~os.posix_fadvise`, :func:`~os." +"posix_fallocate`, :func:`~os.pread`, :func:`~os.pwrite`, :func:`~os.read`, :" +"func:`~os.readv`, :func:`~os.sendfile`, :func:`~os.wait3`, :func:`~os." +"wait4`, :func:`~os.wait`, :func:`~os.waitid`, :func:`~os.waitpid`, :func:" +"`~os.write`, :func:`~os.writev`;" msgstr "" #: ../../whatsnew/3.5.rst:529 msgid "" -"special cases: :func:`os.close` and :func:`os.dup2` now ignore " -":py:data:`~errno.EINTR` errors; the syscall is not retried (see the PEP for " -"the rationale);" +"special cases: :func:`os.close` and :func:`os.dup2` now ignore :py:data:" +"`~errno.EINTR` errors; the syscall is not retried (see the PEP for the " +"rationale);" msgstr "" #: ../../whatsnew/3.5.rst:533 msgid "" -":mod:`select` functions: :func:`devpoll.poll() `, " -":func:`epoll.poll() `, :func:`kqueue.control() " -"`, :func:`poll.poll() `, " -":func:`~select.select`;" +":mod:`select` functions: :func:`devpoll.poll() `, :func:" +"`epoll.poll() `, :func:`kqueue.control() `, :func:`poll.poll() `, :func:`~select.select`;" msgstr "" #: ../../whatsnew/3.5.rst:538 msgid "" -"methods of the :class:`~socket.socket` class: :meth:`~socket.socket.accept`," -" :meth:`~socket.socket.connect` (except for non-blocking sockets), " -":meth:`~socket.socket.recv`, :meth:`~socket.socket.recvfrom`, " -":meth:`~socket.socket.recvmsg`, :meth:`~socket.socket.send`, " -":meth:`~socket.socket.sendall`, :meth:`~socket.socket.sendmsg`, " -":meth:`~socket.socket.sendto`;" +"methods of the :class:`~socket.socket` class: :meth:`~socket.socket." +"accept`, :meth:`~socket.socket.connect` (except for non-blocking sockets), :" +"meth:`~socket.socket.recv`, :meth:`~socket.socket.recvfrom`, :meth:`~socket." +"socket.recvmsg`, :meth:`~socket.socket.send`, :meth:`~socket.socket." +"sendall`, :meth:`~socket.socket.sendmsg`, :meth:`~socket.socket.sendto`;" msgstr "" #: ../../whatsnew/3.5.rst:545 @@ -661,18 +657,18 @@ msgstr "" #: ../../whatsnew/3.5.rst:567 msgid "" ":pep:`479` changes the behavior of generators: when a ``StopIteration`` " -"exception is raised inside a generator, it is replaced with a " -":exc:`RuntimeError` before it exits the generator frame. The main goal of " -"this change is to ease debugging in the situation where an unguarded " -":func:`next` call raises ``StopIteration`` and causes the iteration " -"controlled by the generator to terminate silently. This is particularly " -"pernicious in combination with the ``yield from`` construct." +"exception is raised inside a generator, it is replaced with a :exc:" +"`RuntimeError` before it exits the generator frame. The main goal of this " +"change is to ease debugging in the situation where an unguarded :func:`next` " +"call raises ``StopIteration`` and causes the iteration controlled by the " +"generator to terminate silently. This is particularly pernicious in " +"combination with the ``yield from`` construct." msgstr "" #: ../../whatsnew/3.5.rst:575 msgid "" -"This is a backwards incompatible change, so to enable the new behavior, a " -":term:`__future__` import is necessary::" +"This is a backwards incompatible change, so to enable the new behavior, a :" +"term:`__future__` import is necessary::" msgstr "" #: ../../whatsnew/3.5.rst:595 @@ -698,8 +694,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:610 msgid "" -":pep:`485` adds the :func:`math.isclose` and :func:`cmath.isclose` functions" -" which tell whether two values are approximately equal or \"close\" to each " +":pep:`485` adds the :func:`math.isclose` and :func:`cmath.isclose` functions " +"which tell whether two values are approximately equal or \"close\" to each " "other. Whether or not two values are considered close is determined " "according to given absolute and relative tolerances. Relative tolerance is " "the maximum allowed difference between ``isclose`` arguments, relative to " @@ -718,8 +714,7 @@ msgstr "" #: ../../whatsnew/3.5.rst:639 msgid "" -"PEP written by Christopher Barker; implemented by Chris Barker and Tal " -"Einat." +"PEP written by Christopher Barker; implemented by Chris Barker and Tal Einat." msgstr "" #: ../../whatsnew/3.5.rst:646 @@ -748,15 +743,15 @@ msgstr "" #: ../../whatsnew/3.5.rst:664 msgid "" -":pep:`488` does away with the concept of ``.pyo`` files. This means that " -"``.pyc`` files represent both unoptimized and optimized bytecode. To prevent" -" the need to constantly regenerate bytecode files, ``.pyc`` files now have " -"an optional ``opt-`` tag in their name when the bytecode is optimized. This " -"has the side-effect of no more bytecode file name clashes when running under" -" either :option:`-O` or :option:`-OO`. Consequently, bytecode files " -"generated from :option:`-O`, and :option:`-OO` may now exist simultaneously." -" :func:`importlib.util.cache_from_source` has an updated API to help with " -"this change." +":pep:`488` does away with the concept of ``.pyo`` files. This means that ``." +"pyc`` files represent both unoptimized and optimized bytecode. To prevent " +"the need to constantly regenerate bytecode files, ``.pyc`` files now have an " +"optional ``opt-`` tag in their name when the bytecode is optimized. This has " +"the side-effect of no more bytecode file name clashes when running under " +"either :option:`-O` or :option:`-OO`. Consequently, bytecode files generated " +"from :option:`-O`, and :option:`-OO` may now exist simultaneously. :func:" +"`importlib.util.cache_from_source` has an updated API to help with this " +"change." msgstr "" #: ../../whatsnew/3.5.rst:676 @@ -781,8 +776,8 @@ msgstr "" msgid "" "This change brings the import semantics of extension modules that opt-in to " "using the new mechanism much closer to those of Python source and bytecode " -"modules, including the ability to use any valid identifier as a module name," -" rather than being restricted to ASCII." +"modules, including the ability to use any valid identifier as a module name, " +"rather than being restricted to ASCII." msgstr "" #: ../../whatsnew/3.5.rst:696 @@ -812,22 +807,22 @@ msgstr "" #: ../../whatsnew/3.5.rst:709 msgid "" -"The :option:`-b` option now affects comparisons of :class:`bytes` with " -":class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`.)" +"The :option:`-b` option now affects comparisons of :class:`bytes` with :" +"class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`.)" msgstr "" #: ../../whatsnew/3.5.rst:712 msgid "" "New Kazakh ``kz1048`` and Tajik ``koi8_t`` :ref:`codecs `. (Contributed by Serhiy Storchaka in :issue:`22682` and " -":issue:`22681`.)" +"encodings>`. (Contributed by Serhiy Storchaka in :issue:`22682` and :issue:" +"`22681`.)" msgstr "" #: ../../whatsnew/3.5.rst:715 msgid "" -"Property docstrings are now writable. This is especially useful for " -":func:`collections.namedtuple` docstrings. (Contributed by Berker Peksag in " -":issue:`24064`.)" +"Property docstrings are now writable. This is especially useful for :func:" +"`collections.namedtuple` docstrings. (Contributed by Berker Peksag in :issue:" +"`24064`.)" msgstr "" #: ../../whatsnew/3.5.rst:719 @@ -842,13 +837,13 @@ msgstr "Novos Módulos" #: ../../whatsnew/3.5.rst:727 msgid "typing" -msgstr "" +msgstr "typing" #: ../../whatsnew/3.5.rst:729 msgid "" "The new :mod:`typing` :term:`provisional ` module provides " -"standard definitions and tools for function type annotations. See :ref:`Type" -" Hints ` for more information." +"standard definitions and tools for function type annotations. See :ref:`Type " +"Hints ` for more information." msgstr "" #: ../../whatsnew/3.5.rst:736 @@ -872,8 +867,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:752 msgid "" -"The module implementation has been contributed by Paul Moore in " -":issue:`23491`." +"The module implementation has been contributed by Paul Moore in :issue:" +"`23491`." msgstr "" #: ../../whatsnew/3.5.rst:757 @@ -890,9 +885,9 @@ msgstr "argparse" #: ../../whatsnew/3.5.rst:766 msgid "" -"The :class:`~argparse.ArgumentParser` class now allows disabling " -":ref:`abbreviated usage ` of long options by setting " -":ref:`allow_abbrev` to ``False``. (Contributed by Jonathan Paugh, Steven " +"The :class:`~argparse.ArgumentParser` class now allows disabling :ref:" +"`abbreviated usage ` of long options by setting :ref:" +"`allow_abbrev` to ``False``. (Contributed by Jonathan Paugh, Steven " "Bethard, paul j3 and Daniel Eriksson in :issue:`14910`.)" msgstr "" @@ -903,8 +898,8 @@ msgstr "asyncio" #: ../../whatsnew/3.5.rst:775 msgid "" "Since the :mod:`asyncio` module is :term:`provisional `, " -"all changes introduced in Python 3.5 have also been backported to Python " -"3.4.x." +"all changes introduced in Python 3.5 have also been backported to Python 3.4." +"x." msgstr "" #: ../../whatsnew/3.5.rst:778 @@ -913,15 +908,15 @@ msgstr "" #: ../../whatsnew/3.5.rst:780 msgid "" -"New debugging APIs: :meth:`loop.set_debug() ` and " -":meth:`loop.get_debug() ` methods. (Contributed by " +"New debugging APIs: :meth:`loop.set_debug() ` and :" +"meth:`loop.get_debug() ` methods. (Contributed by " "Victor Stinner.)" msgstr "" #: ../../whatsnew/3.5.rst:784 msgid "" -"The proactor event loop now supports SSL. (Contributed by Antoine Pitrou and" -" Victor Stinner in :issue:`22560`.)" +"The proactor event loop now supports SSL. (Contributed by Antoine Pitrou and " +"Victor Stinner in :issue:`22560`.)" msgstr "" #: ../../whatsnew/3.5.rst:787 @@ -935,30 +930,29 @@ msgid "" "A new :meth:`loop.create_task() ` to conveniently " "create and schedule a new :class:`~asyncio.Task` for a coroutine. The " "``create_task`` method is also used by all asyncio functions that wrap " -"coroutines into tasks, such as :func:`asyncio.wait`, :func:`asyncio.gather`," -" etc. (Contributed by Victor Stinner.)" +"coroutines into tasks, such as :func:`asyncio.wait`, :func:`asyncio.gather`, " +"etc. (Contributed by Victor Stinner.)" msgstr "" #: ../../whatsnew/3.5.rst:798 msgid "" -"A new :meth:`transport.get_write_buffer_limits() " -"` method to inquire for " -"*high-* and *low-* water limits of the flow control. (Contributed by Victor " -"Stinner.)" +"A new :meth:`transport.get_write_buffer_limits() ` method to inquire for *high-* and *low-* water " +"limits of the flow control. (Contributed by Victor Stinner.)" msgstr "" #: ../../whatsnew/3.5.rst:803 msgid "" -"The :func:`~asyncio.async` function is deprecated in favor of " -":func:`~asyncio.ensure_future`. (Contributed by Yury Selivanov.)" +"The :func:`~asyncio.async` function is deprecated in favor of :func:" +"`~asyncio.ensure_future`. (Contributed by Yury Selivanov.)" msgstr "" #: ../../whatsnew/3.5.rst:807 msgid "" -"New :meth:`loop.set_task_factory() ` and " -":meth:`loop.get_task_factory() ` methods to " -"customize the task factory that :meth:`loop.create_task() " -"` method uses. (Contributed by Yury Selivanov.)" +"New :meth:`loop.set_task_factory() ` and :" +"meth:`loop.get_task_factory() ` methods to " +"customize the task factory that :meth:`loop.create_task() ` method uses. (Contributed by Yury Selivanov.)" msgstr "" #: ../../whatsnew/3.5.rst:814 @@ -969,8 +963,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:818 msgid "" -"The ``JoinableQueue`` class was removed, in favor of the " -":class:`asyncio.Queue` class. (Contributed by Victor Stinner.)" +"The ``JoinableQueue`` class was removed, in favor of the :class:`asyncio." +"Queue` class. (Contributed by Victor Stinner.)" msgstr "" #: ../../whatsnew/3.5.rst:822 @@ -980,9 +974,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:824 msgid "" "The :func:`~asyncio.ensure_future` function and all functions that use it, " -"such as :meth:`loop.run_until_complete() `," -" now accept all kinds of :term:`awaitable objects `. (Contributed" -" by Yury Selivanov.)" +"such as :meth:`loop.run_until_complete() `, " +"now accept all kinds of :term:`awaitable objects `. (Contributed " +"by Yury Selivanov.)" msgstr "" #: ../../whatsnew/3.5.rst:829 @@ -995,18 +989,18 @@ msgstr "" #: ../../whatsnew/3.5.rst:833 msgid "" -"New :meth:`Transport.is_closing() ` method" -" to check if the transport is closing or closed. (Contributed by Yury " +"New :meth:`Transport.is_closing() ` method " +"to check if the transport is closing or closed. (Contributed by Yury " "Selivanov.)" msgstr "" -"New :meth:`Transport.is_closing() ` method" -" to check if the transport is closing or closed. (Contributed by Yury " +"New :meth:`Transport.is_closing() ` method " +"to check if the transport is closing or closed. (Contributed by Yury " "Selivanov.)" #: ../../whatsnew/3.5.rst:837 msgid "" -"The :meth:`loop.create_server() ` method can now" -" accept a list of hosts. (Contributed by Yann Sionneau.)" +"The :meth:`loop.create_server() ` method can now " +"accept a list of hosts. (Contributed by Yann Sionneau.)" msgstr "" #: ../../whatsnew/3.5.rst:841 @@ -1024,25 +1018,25 @@ msgstr "" #: ../../whatsnew/3.5.rst:850 msgid "" -"New :meth:`loop.get_exception_handler() " -"` method to get the current exception " -"handler. (Contributed by Yury Selivanov.)" +"New :meth:`loop.get_exception_handler() ` method to get the current exception handler. " +"(Contributed by Yury Selivanov.)" msgstr "" #: ../../whatsnew/3.5.rst:854 msgid "" -"New :meth:`StreamReader.readuntil() ` method" -" to read data from the stream until a separator bytes sequence appears. " +"New :meth:`StreamReader.readuntil() ` method " +"to read data from the stream until a separator bytes sequence appears. " "(Contributed by Mark Korenberg.)" msgstr "" -"New :meth:`StreamReader.readuntil() ` method" -" to read data from the stream until a separator bytes sequence appears. " +"New :meth:`StreamReader.readuntil() ` method " +"to read data from the stream until a separator bytes sequence appears. " "(Contributed by Mark Korenberg.)" #: ../../whatsnew/3.5.rst:859 msgid "" -"The :meth:`loop.create_connection() ` and " -":meth:`loop.create_server() ` methods are " +"The :meth:`loop.create_connection() ` and :" +"meth:`loop.create_server() ` methods are " "optimized to avoid calling the system ``getaddrinfo`` function if the " "address is already resolved. (Contributed by A. Jesse Jiryu Davis.)" msgstr "" @@ -1050,8 +1044,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:865 msgid "" "The :meth:`loop.sock_connect(sock, address) ` no " -"longer requires the *address* to be resolved prior to the call. (Contributed" -" by A. Jesse Jiryu Davis.)" +"longer requires the *address* to be resolved prior to the call. (Contributed " +"by A. Jesse Jiryu Davis.)" msgstr "" #: ../../whatsnew/3.5.rst:871 @@ -1081,8 +1075,8 @@ msgstr "cmath" #: ../../whatsnew/3.5.rst:888 msgid "" -"A new function :func:`~cmath.isclose` provides a way to test for approximate" -" equality. (Contributed by Chris Barker and Tal Einat in :issue:`24270`.)" +"A new function :func:`~cmath.isclose` provides a way to test for approximate " +"equality. (Contributed by Chris Barker and Tal Einat in :issue:`24270`.)" msgstr "" #: ../../whatsnew/3.5.rst:893 @@ -1091,10 +1085,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:895 msgid "" -"The :func:`InteractiveInterpreter.showtraceback() " -"` method now prints the full " -"chained traceback, just like the interactive interpreter. (Contributed by " -"Claudiu Popa in :issue:`17442`.)" +"The :func:`InteractiveInterpreter.showtraceback() ` method now prints the full chained " +"traceback, just like the interactive interpreter. (Contributed by Claudiu " +"Popa in :issue:`17442`.)" msgstr "" #: ../../whatsnew/3.5.rst:901 @@ -1104,28 +1098,26 @@ msgstr "collections" #: ../../whatsnew/3.5.rst:905 msgid "" "The :class:`~collections.OrderedDict` class is now implemented in C, which " -"makes it 4 to 100 times faster. (Contributed by Eric Snow in " -":issue:`16991`.)" +"makes it 4 to 100 times faster. (Contributed by Eric Snow in :issue:" +"`16991`.)" msgstr "" #: ../../whatsnew/3.5.rst:908 msgid "" -":meth:`OrderedDict.items() `, " -":meth:`OrderedDict.keys() `, " -":meth:`OrderedDict.values() ` views now " -"support :func:`reversed` iteration. (Contributed by Serhiy Storchaka in " -":issue:`19505`.)" +":meth:`OrderedDict.items() `, :meth:" +"`OrderedDict.keys() `, :meth:`OrderedDict." +"values() ` views now support :func:" +"`reversed` iteration. (Contributed by Serhiy Storchaka in :issue:`19505`.)" msgstr "" #: ../../whatsnew/3.5.rst:914 msgid "" -"The :class:`~collections.deque` class now defines " -":meth:`~collections.deque.index`, :meth:`~collections.deque.insert`, and " -":meth:`~collections.deque.copy`, and supports the ``+`` and ``*`` operators." -" This allows deques to be recognized as a " -":class:`~collections.abc.MutableSequence` and improves their " -"substitutability for lists. (Contributed by Raymond Hettinger in " -":issue:`23704`.)" +"The :class:`~collections.deque` class now defines :meth:`~collections.deque." +"index`, :meth:`~collections.deque.insert`, and :meth:`~collections.deque." +"copy`, and supports the ``+`` and ``*`` operators. This allows deques to be " +"recognized as a :class:`~collections.abc.MutableSequence` and improves their " +"substitutability for lists. (Contributed by Raymond Hettinger in :issue:" +"`23704`.)" msgstr "" #: ../../whatsnew/3.5.rst:921 @@ -1139,11 +1131,11 @@ msgstr "" #: ../../whatsnew/3.5.rst:930 msgid "" -"The :class:`~collections.UserString` class now implements the " -":meth:`__getnewargs__`, :meth:`__rmod__`, :meth:`~str.casefold`, " -":meth:`~str.format_map`, :meth:`~str.isprintable`, and " -":meth:`~str.maketrans` methods to match the corresponding methods of " -":class:`str`. (Contributed by Joe Jevnik in :issue:`22189`.)" +"The :class:`~collections.UserString` class now implements the :meth:" +"`__getnewargs__`, :meth:`__rmod__`, :meth:`~str.casefold`, :meth:`~str." +"format_map`, :meth:`~str.isprintable`, and :meth:`~str.maketrans` methods to " +"match the corresponding methods of :class:`str`. (Contributed by Joe Jevnik " +"in :issue:`22189`.)" msgstr "" #: ../../whatsnew/3.5.rst:938 @@ -1153,9 +1145,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:940 msgid "" "The :meth:`Sequence.index() ` method now " -"accepts *start* and *stop* arguments to match the corresponding methods of " -":class:`tuple`, :class:`list`, etc. (Contributed by Devin Jeanpierre in " -":issue:`23086`.)" +"accepts *start* and *stop* arguments to match the corresponding methods of :" +"class:`tuple`, :class:`list`, etc. (Contributed by Devin Jeanpierre in :" +"issue:`23086`.)" msgstr "" #: ../../whatsnew/3.5.rst:945 @@ -1166,11 +1158,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:948 msgid "" -"New :class:`~collections.abc.Awaitable`, " -":class:`~collections.abc.Coroutine`, " -":class:`~collections.abc.AsyncIterator`, and " -":class:`~collections.abc.AsyncIterable` abstract base classes. (Contributed " -"by Yury Selivanov in :issue:`24184`.)" +"New :class:`~collections.abc.Awaitable`, :class:`~collections.abc." +"Coroutine`, :class:`~collections.abc.AsyncIterator`, and :class:" +"`~collections.abc.AsyncIterable` abstract base classes. (Contributed by Yury " +"Selivanov in :issue:`24184`.)" msgstr "" #: ../../whatsnew/3.5.rst:953 @@ -1186,8 +1177,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:960 msgid "" "A new :mod:`compileall` option, :samp:`-j {N}`, allows running *N* workers " -"simultaneously to perform parallel bytecode compilation. The " -":func:`~compileall.compile_dir` function has a corresponding ``workers`` " +"simultaneously to perform parallel bytecode compilation. The :func:" +"`~compileall.compile_dir` function has a corresponding ``workers`` " "parameter. (Contributed by Claudiu Popa in :issue:`16104`.)" msgstr "" @@ -1199,12 +1190,12 @@ msgstr "" #: ../../whatsnew/3.5.rst:968 msgid "" -"The ``-q`` command line option can now be specified more than once, in which" -" case all output, including errors, will be suppressed. The corresponding " -"``quiet`` parameter in :func:`~compileall.compile_dir`, " -":func:`~compileall.compile_file`, and :func:`~compileall.compile_path` can " -"now accept an integer value indicating the level of output suppression. " -"(Contributed by Thomas Kluyver in :issue:`21338`.)" +"The ``-q`` command line option can now be specified more than once, in which " +"case all output, including errors, will be suppressed. The corresponding " +"``quiet`` parameter in :func:`~compileall.compile_dir`, :func:`~compileall." +"compile_file`, and :func:`~compileall.compile_path` can now accept an " +"integer value indicating the level of output suppression. (Contributed by " +"Thomas Kluyver in :issue:`21338`.)" msgstr "" #: ../../whatsnew/3.5.rst:977 @@ -1221,8 +1212,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:984 msgid "" -"The number of workers in the :class:`~concurrent.futures.ThreadPoolExecutor`" -" constructor is optional now. The default value is 5 times the number of " +"The number of workers in the :class:`~concurrent.futures.ThreadPoolExecutor` " +"constructor is optional now. The default value is 5 times the number of " "CPUs. (Contributed by Claudiu Popa in :issue:`21527`.)" msgstr "" @@ -1232,11 +1223,11 @@ msgstr "configparser" #: ../../whatsnew/3.5.rst:992 msgid "" -":mod:`configparser` now provides a way to customize the conversion of values" -" by specifying a dictionary of converters in the " -":class:`~configparser.ConfigParser` constructor, or by defining them as " -"methods in ``ConfigParser`` subclasses. Converters defined in a parser " -"instance are inherited by its section proxies." +":mod:`configparser` now provides a way to customize the conversion of values " +"by specifying a dictionary of converters in the :class:`~configparser." +"ConfigParser` constructor, or by defining them as methods in " +"``ConfigParser`` subclasses. Converters defined in a parser instance are " +"inherited by its section proxies." msgstr "" #: ../../whatsnew/3.5.rst:998 @@ -1253,10 +1244,10 @@ msgstr "contextlib" #: ../../whatsnew/3.5.rst:1022 msgid "" -"The new :func:`~contextlib.redirect_stderr` :term:`context manager` (similar" -" to :func:`~contextlib.redirect_stdout`) makes it easier for utility scripts" -" to handle inflexible APIs that write their output to :data:`sys.stderr` and" -" don't provide any options to redirect it::" +"The new :func:`~contextlib.redirect_stderr` :term:`context manager` (similar " +"to :func:`~contextlib.redirect_stdout`) makes it easier for utility scripts " +"to handle inflexible APIs that write their output to :data:`sys.stderr` and " +"don't provide any options to redirect it::" msgstr "" #: ../../whatsnew/3.5.rst:1035 @@ -1265,24 +1256,24 @@ msgstr "" #: ../../whatsnew/3.5.rst:1039 msgid "csv" -msgstr "" +msgstr "csv" #: ../../whatsnew/3.5.rst:1041 msgid "" -"The :meth:`~csv.csvwriter.writerow` method now supports arbitrary iterables," -" not just sequences. (Contributed by Serhiy Storchaka in :issue:`23171`.)" +"The :meth:`~csv.csvwriter.writerow` method now supports arbitrary iterables, " +"not just sequences. (Contributed by Serhiy Storchaka in :issue:`23171`.)" msgstr "" #: ../../whatsnew/3.5.rst:1046 msgid "curses" -msgstr "" +msgstr "curses" #: ../../whatsnew/3.5.rst:1048 msgid "" -"The new :func:`~curses.update_lines_cols` function updates the " -":envvar:`LINES` and :envvar:`COLS` environment variables. This is useful " -"for detecting manual screen resizing. (Contributed by Arnon Yaari in " -":issue:`4254`.)" +"The new :func:`~curses.update_lines_cols` function updates the :envvar:" +"`LINES` and :envvar:`COLS` environment variables. This is useful for " +"detecting manual screen resizing. (Contributed by Arnon Yaari in :issue:" +"`4254`.)" msgstr "" #: ../../whatsnew/3.5.rst:1054 @@ -1292,8 +1283,8 @@ msgstr "dbm" #: ../../whatsnew/3.5.rst:1056 msgid "" ":func:`dumb.open ` always creates a new database when the " -"flag has the value ``\"n\"``. (Contributed by Claudiu Popa in " -":issue:`18039`.)" +"flag has the value ``\"n\"``. (Contributed by Claudiu Popa in :issue:" +"`18039`.)" msgstr "" #: ../../whatsnew/3.5.rst:1061 @@ -1303,10 +1294,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:1063 msgid "" "The charset of HTML documents generated by :meth:`HtmlDiff.make_file() " -"` can now be customized by using a new *charset*" -" keyword-only argument. The default charset of HTML document changed from " -"``\"ISO-8859-1\"`` to ``\"utf-8\"``. (Contributed by Berker Peksag in " -":issue:`2052`.)" +"` can now be customized by using a new *charset* " +"keyword-only argument. The default charset of HTML document changed from ``" +"\"ISO-8859-1\"`` to ``\"utf-8\"``. (Contributed by Berker Peksag in :issue:" +"`2052`.)" msgstr "" #: ../../whatsnew/3.5.rst:1070 @@ -1340,9 +1331,9 @@ msgstr "doctest" #: ../../whatsnew/3.5.rst:1090 msgid "" -"The :func:`~doctest.DocTestSuite` function returns an empty " -":class:`unittest.TestSuite` if *module* contains no docstrings, instead of " -"raising :exc:`ValueError`. (Contributed by Glenn Jones in :issue:`15916`.)" +"The :func:`~doctest.DocTestSuite` function returns an empty :class:`unittest." +"TestSuite` if *module* contains no docstrings, instead of raising :exc:" +"`ValueError`. (Contributed by Glenn Jones in :issue:`15916`.)" msgstr "" #: ../../whatsnew/3.5.rst:1096 @@ -1351,30 +1342,29 @@ msgstr "email" #: ../../whatsnew/3.5.rst:1098 msgid "" -"A new policy option :attr:`Policy.mangle_from_ " -"` controls whether or not lines that start" -" with ``\"From \"`` in email bodies are prefixed with a ``\">\"`` character " -"by generators. The default is ``True`` for :attr:`~email.policy.compat32` " -"and ``False`` for all other policies. (Contributed by Milan Oberkirch in " -":issue:`20098`.)" +"A new policy option :attr:`Policy.mangle_from_ ` controls whether or not lines that start with ``\"From \"`` " +"in email bodies are prefixed with a ``\">\"`` character by generators. The " +"default is ``True`` for :attr:`~email.policy.compat32` and ``False`` for all " +"other policies. (Contributed by Milan Oberkirch in :issue:`20098`.)" msgstr "" #: ../../whatsnew/3.5.rst:1104 msgid "" -"A new :meth:`Message.get_content_disposition() " -"` method provides easy access" -" to a canonical value for the :mailheader:`Content-Disposition` header. " -"(Contributed by Abhilash Raj in :issue:`21083`.)" +"A new :meth:`Message.get_content_disposition() ` method provides easy access to a canonical value " +"for the :mailheader:`Content-Disposition` header. (Contributed by Abhilash " +"Raj in :issue:`21083`.)" msgstr "" #: ../../whatsnew/3.5.rst:1110 msgid "" -"A new policy option :attr:`EmailPolicy.utf8 `" -" can be set to ``True`` to encode email headers using the UTF-8 charset " +"A new policy option :attr:`EmailPolicy.utf8 ` " +"can be set to ``True`` to encode email headers using the UTF-8 charset " "instead of using encoded words. This allows ``Messages`` to be formatted " -"according to :rfc:`6532` and used with an SMTP server that supports the " -":rfc:`6531` ``SMTPUTF8`` extension. (Contributed by R. David Murray in " -":issue:`24211`.)" +"according to :rfc:`6532` and used with an SMTP server that supports the :rfc:" +"`6531` ``SMTPUTF8`` extension. (Contributed by R. David Murray in :issue:" +"`24211`.)" msgstr "" #: ../../whatsnew/3.5.rst:1117 @@ -1404,11 +1394,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:1140 msgid "" -"The :func:`~faulthandler.enable`, :func:`~faulthandler.register`, " -":func:`~faulthandler.dump_traceback` and " -":func:`~faulthandler.dump_traceback_later` functions now accept file " -"descriptors in addition to file-like objects. (Contributed by Wei Wu in " -":issue:`23566`.)" +"The :func:`~faulthandler.enable`, :func:`~faulthandler.register`, :func:" +"`~faulthandler.dump_traceback` and :func:`~faulthandler." +"dump_traceback_later` functions now accept file descriptors in addition to " +"file-like objects. (Contributed by Wei Wu in :issue:`23566`.)" msgstr "" #: ../../whatsnew/3.5.rst:1148 @@ -1435,13 +1424,13 @@ msgstr "" #: ../../whatsnew/3.5.rst:1166 msgid "gzip" -msgstr "" +msgstr "gzip" #: ../../whatsnew/3.5.rst:1168 msgid "" -"The *mode* argument of the :class:`~gzip.GzipFile` constructor now accepts " -"``\"x\"`` to request exclusive creation. (Contributed by Tim Heaney in " -":issue:`19222`.)" +"The *mode* argument of the :class:`~gzip.GzipFile` constructor now accepts ``" +"\"x\"`` to request exclusive creation. (Contributed by Tim Heaney in :issue:" +"`19222`.)" msgstr "" #: ../../whatsnew/3.5.rst:1174 @@ -1477,13 +1466,12 @@ msgstr "" #: ../../whatsnew/3.5.rst:1203 msgid "" -":meth:`HTTPConnection.getresponse() " -"` now raises a " -":exc:`~http.client.RemoteDisconnected` exception when a remote server " -"connection is closed unexpectedly. Additionally, if a " -":exc:`ConnectionError` (of which ``RemoteDisconnected`` is a subclass) is " -"raised, the client socket is now closed automatically, and will reconnect on" -" the next request::" +":meth:`HTTPConnection.getresponse() ` now raises a :exc:`~http.client.RemoteDisconnected` exception " +"when a remote server connection is closed unexpectedly. Additionally, if a :" +"exc:`ConnectionError` (of which ``RemoteDisconnected`` is a subclass) is " +"raised, the client socket is now closed automatically, and will reconnect on " +"the next request::" msgstr "" #: ../../whatsnew/3.5.rst:1219 @@ -1497,10 +1485,10 @@ msgstr "idlelib and IDLE" #: ../../whatsnew/3.5.rst:1225 msgid "" "Since idlelib implements the IDLE shell and editor and is not intended for " -"import by other programs, it gets improvements with every release. See " -":file:`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.4.0, " -"as well as changes made in future 3.5.x releases. This file is also " -"available from the IDLE :menuselection:`Help --> About IDLE` dialog." +"import by other programs, it gets improvements with every release. See :" +"file:`Lib/idlelib/NEWS.txt` for a cumulative list of changes since 3.4.0, as " +"well as changes made in future 3.5.x releases. This file is also available " +"from the IDLE :menuselection:`Help --> About IDLE` dialog." msgstr "" #: ../../whatsnew/3.5.rst:1233 @@ -1517,12 +1505,12 @@ msgstr "" #: ../../whatsnew/3.5.rst:1240 msgid "" -"The :mod:`imaplib` module now supports :rfc:`5161` (ENABLE Extension) and " -":rfc:`6855` (UTF-8 Support) via the :meth:`IMAP4.enable() " -"` method. A new :attr:`IMAP4.utf8_enabled " -"` attribute tracks whether or not :rfc:`6855` " -"support is enabled. (Contributed by Milan Oberkirch, R. David Murray, and " -"Maciej Szulik in :issue:`21800`.)" +"The :mod:`imaplib` module now supports :rfc:`5161` (ENABLE Extension) and :" +"rfc:`6855` (UTF-8 Support) via the :meth:`IMAP4.enable() ` method. A new :attr:`IMAP4.utf8_enabled ` attribute tracks whether or not :rfc:`6855` support is " +"enabled. (Contributed by Milan Oberkirch, R. David Murray, and Maciej Szulik " +"in :issue:`21800`.)" msgstr "" #: ../../whatsnew/3.5.rst:1247 @@ -1538,11 +1526,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:1255 msgid "" -"The :func:`~imghdr.what` function now recognizes the `OpenEXR " -"`_ format (contributed by Martin Vignali and Claudiu" -" Popa in :issue:`20295`), and the `WebP " -"`_ format (contributed by Fabrice Aneche" -" and Claudiu Popa in :issue:`20197`.)" +"The :func:`~imghdr.what` function now recognizes the `OpenEXR `_ format (contributed by Martin Vignali and Claudiu Popa in :" +"issue:`20295`), and the `WebP `_ format " +"(contributed by Fabrice Aneche and Claudiu Popa in :issue:`20197`.)" msgstr "" #: ../../whatsnew/3.5.rst:1263 @@ -1558,11 +1545,11 @@ msgstr "" #: ../../whatsnew/3.5.rst:1269 msgid "" -"The :func:`abc.InspectLoader.source_to_code() " -"` method is now a static method." -" This makes it easier to initialize a module object with code compiled from" -" a string by running ``exec(code, module.__dict__)``. (Contributed by Brett " -"Cannon in :issue:`21156`.)" +"The :func:`abc.InspectLoader.source_to_code() ` method is now a static method. This makes it easier to " +"initialize a module object with code compiled from a string by running " +"``exec(code, module.__dict__)``. (Contributed by Brett Cannon in :issue:" +"`21156`.)" msgstr "" #: ../../whatsnew/3.5.rst:1275 @@ -1580,16 +1567,16 @@ msgstr "inspect" #: ../../whatsnew/3.5.rst:1285 msgid "" -"Both the :class:`~inspect.Signature` and :class:`~inspect.Parameter` classes" -" are now picklable and hashable. (Contributed by Yury Selivanov in " -":issue:`20726` and :issue:`20334`.)" +"Both the :class:`~inspect.Signature` and :class:`~inspect.Parameter` classes " +"are now picklable and hashable. (Contributed by Yury Selivanov in :issue:" +"`20726` and :issue:`20334`.)" msgstr "" #: ../../whatsnew/3.5.rst:1289 msgid "" -"A new :meth:`BoundArguments.apply_defaults() " -"` method provides a way to set " -"default values for missing arguments::" +"A new :meth:`BoundArguments.apply_defaults() ` method provides a way to set default values for missing " +"arguments::" msgstr "" #: ../../whatsnew/3.5.rst:1299 @@ -1598,49 +1585,47 @@ msgstr "" #: ../../whatsnew/3.5.rst:1301 msgid "" -"A new class method :meth:`Signature.from_callable() " -"` makes subclassing of " -":class:`~inspect.Signature` easier. (Contributed by Yury Selivanov and Eric" -" Snow in :issue:`17373`.)" +"A new class method :meth:`Signature.from_callable() ` makes subclassing of :class:`~inspect.Signature` easier. " +"(Contributed by Yury Selivanov and Eric Snow in :issue:`17373`.)" msgstr "" #: ../../whatsnew/3.5.rst:1306 msgid "" "The :func:`~inspect.signature` function now accepts a *follow_wrapped* " "optional keyword argument, which, when set to ``False``, disables automatic " -"following of ``__wrapped__`` links. (Contributed by Yury Selivanov in " -":issue:`20691`.)" +"following of ``__wrapped__`` links. (Contributed by Yury Selivanov in :issue:" +"`20691`.)" msgstr "" #: ../../whatsnew/3.5.rst:1311 msgid "" "A set of new functions to inspect :term:`coroutine functions ` and :term:`coroutine objects ` has been added: " -":func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`, " -":func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`, and " -":func:`~inspect.getcoroutinestate`. (Contributed by Yury Selivanov in " -":issue:`24017` and :issue:`24400`.)" +"function>` and :term:`coroutine objects ` has been added: :func:" +"`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`, :func:" +"`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`, and :func:" +"`~inspect.getcoroutinestate`. (Contributed by Yury Selivanov in :issue:" +"`24017` and :issue:`24400`.)" msgstr "" #: ../../whatsnew/3.5.rst:1319 msgid "" -"The :func:`~inspect.stack`, :func:`~inspect.trace`, " -":func:`~inspect.getouterframes`, and :func:`~inspect.getinnerframes` " -"functions now return a list of named tuples. (Contributed by Daniel Shahaf " -"in :issue:`16808`.)" +"The :func:`~inspect.stack`, :func:`~inspect.trace`, :func:`~inspect." +"getouterframes`, and :func:`~inspect.getinnerframes` functions now return a " +"list of named tuples. (Contributed by Daniel Shahaf in :issue:`16808`.)" msgstr "" #: ../../whatsnew/3.5.rst:1326 msgid "io" -msgstr "" +msgstr "io" #: ../../whatsnew/3.5.rst:1328 msgid "" "A new :meth:`BufferedIOBase.readinto1() ` " -"method, that uses at most one call to the underlying raw stream's " -":meth:`RawIOBase.read() ` or :meth:`RawIOBase.readinto() " -"` methods. (Contributed by Nikolaus Rath in " -":issue:`20578`.)" +"method, that uses at most one call to the underlying raw stream's :meth:" +"`RawIOBase.read() ` or :meth:`RawIOBase.readinto() ` methods. (Contributed by Nikolaus Rath in :issue:" +"`20578`.)" msgstr "" #: ../../whatsnew/3.5.rst:1336 @@ -1649,9 +1634,9 @@ msgstr "ipaddress" #: ../../whatsnew/3.5.rst:1338 msgid "" -"Both the :class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network`" -" classes now accept an ``(address, netmask)`` tuple argument, so as to " -"easily construct network objects from existing addresses::" +"Both the :class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` " +"classes now accept an ``(address, netmask)`` tuple argument, so as to easily " +"construct network objects from existing addresses::" msgstr "" #: ../../whatsnew/3.5.rst:1348 @@ -1660,8 +1645,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:1350 msgid "" -"A new :attr:`~ipaddress.IPv4Network.reverse_pointer` attribute for the " -":class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` classes " +"A new :attr:`~ipaddress.IPv4Network.reverse_pointer` attribute for the :" +"class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` classes " "returns the name of the reverse DNS PTR record::" msgstr "" @@ -1676,15 +1661,15 @@ msgstr "" #: ../../whatsnew/3.5.rst:1368 msgid "" "The :mod:`json.tool` command line interface now preserves the order of keys " -"in JSON objects passed in input. The new ``--sort-keys`` option can be used" -" to sort the keys alphabetically. (Contributed by Berker Peksag in " -":issue:`21650`.)" +"in JSON objects passed in input. The new ``--sort-keys`` option can be used " +"to sort the keys alphabetically. (Contributed by Berker Peksag in :issue:" +"`21650`.)" msgstr "" #: ../../whatsnew/3.5.rst:1373 msgid "" -"JSON decoder now raises :exc:`~json.JSONDecodeError` instead of " -":exc:`ValueError` to provide better context information about the error. " +"JSON decoder now raises :exc:`~json.JSONDecodeError` instead of :exc:" +"`ValueError` to provide better context information about the error. " "(Contributed by Serhiy Storchaka in :issue:`19361`.)" msgstr "" @@ -1722,9 +1707,9 @@ msgstr "logging" #: ../../whatsnew/3.5.rst:1410 msgid "" -"All logging methods (:class:`~logging.Logger` :meth:`~logging.Logger.log`, " -":meth:`~logging.Logger.exception`, :meth:`~logging.Logger.critical`, " -":meth:`~logging.Logger.debug`, etc.), now accept exception instances as an " +"All logging methods (:class:`~logging.Logger` :meth:`~logging.Logger.log`, :" +"meth:`~logging.Logger.exception`, :meth:`~logging.Logger.critical`, :meth:" +"`~logging.Logger.debug`, etc.), now accept exception instances as an " "*exc_info* argument, in addition to boolean values and exception tuples::" msgstr "" @@ -1736,16 +1721,16 @@ msgstr "" msgid "" "The :class:`handlers.HTTPHandler ` class now " "accepts an optional :class:`ssl.SSLContext` instance to configure SSL " -"settings used in an HTTP connection. (Contributed by Alex Gaynor in " -":issue:`22788`.)" +"settings used in an HTTP connection. (Contributed by Alex Gaynor in :issue:" +"`22788`.)" msgstr "" #: ../../whatsnew/3.5.rst:1430 msgid "" "The :class:`handlers.QueueListener ` class " "now takes a *respect_handler_level* keyword argument which, if set to " -"``True``, will pass messages to handlers taking handler levels into account." -" (Contributed by Vinay Sajip.)" +"``True``, will pass messages to handlers taking handler levels into account. " +"(Contributed by Vinay Sajip.)" msgstr "" #: ../../whatsnew/3.5.rst:1437 @@ -1754,20 +1739,20 @@ msgstr "" #: ../../whatsnew/3.5.rst:1439 msgid "" -"The :meth:`LZMADecompressor.decompress() `" -" method now accepts an optional *max_length* argument to limit the maximum " +"The :meth:`LZMADecompressor.decompress() ` " +"method now accepts an optional *max_length* argument to limit the maximum " "size of decompressed data. (Contributed by Martin Panter in :issue:`15955`.)" msgstr "" #: ../../whatsnew/3.5.rst:1446 msgid "math" -msgstr "" +msgstr "math" #: ../../whatsnew/3.5.rst:1448 msgid "" -"Two new constants have been added to the :mod:`math` module: " -":data:`~math.inf` and :data:`~math.nan`. (Contributed by Mark Dickinson in " -":issue:`23185`.)" +"Two new constants have been added to the :mod:`math` module: :data:`~math." +"inf` and :data:`~math.nan`. (Contributed by Mark Dickinson in :issue:" +"`23185`.)" msgstr "" #: ../../whatsnew/3.5.rst:1451 @@ -1789,10 +1774,9 @@ msgstr "multiprocessing" #: ../../whatsnew/3.5.rst:1462 msgid "" -":func:`sharedctypes.synchronized() " -"` objects now support the " -":term:`context manager` protocol. (Contributed by Charles-François Natali in" -" :issue:`21565`.)" +":func:`sharedctypes.synchronized() ` objects now support the :term:`context manager` protocol. " +"(Contributed by Charles-François Natali in :issue:`21565`.)" msgstr "" #: ../../whatsnew/3.5.rst:1468 @@ -1801,16 +1785,16 @@ msgstr "operador" #: ../../whatsnew/3.5.rst:1470 msgid "" -":func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and " -":func:`~operator.methodcaller` objects now support pickling. (Contributed by" -" Josh Rosenberg and Serhiy Storchaka in :issue:`22955`.)" +":func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and :func:" +"`~operator.methodcaller` objects now support pickling. (Contributed by Josh " +"Rosenberg and Serhiy Storchaka in :issue:`22955`.)" msgstr "" #: ../../whatsnew/3.5.rst:1474 msgid "" "New :func:`~operator.matmul` and :func:`~operator.imatmul` functions to " -"perform matrix multiplication. (Contributed by Benjamin Peterson in " -":issue:`21176`.)" +"perform matrix multiplication. (Contributed by Benjamin Peterson in :issue:" +"`21176`.)" msgstr "" #: ../../whatsnew/3.5.rst:1480 @@ -1819,38 +1803,36 @@ msgstr "os" #: ../../whatsnew/3.5.rst:1482 msgid "" -"The new :func:`~os.scandir` function returning an iterator of " -":class:`~os.DirEntry` objects has been added. If possible, " -":func:`~os.scandir` extracts file attributes while scanning a directory, " -"removing the need to perform subsequent system calls to determine file type " -"or attributes, which may significantly improve performance. (Contributed by" -" Ben Hoyt with the help of Victor Stinner in :issue:`22524`.)" +"The new :func:`~os.scandir` function returning an iterator of :class:`~os." +"DirEntry` objects has been added. If possible, :func:`~os.scandir` extracts " +"file attributes while scanning a directory, removing the need to perform " +"subsequent system calls to determine file type or attributes, which may " +"significantly improve performance. (Contributed by Ben Hoyt with the help " +"of Victor Stinner in :issue:`22524`.)" msgstr "" #: ../../whatsnew/3.5.rst:1489 msgid "" -"On Windows, a new :attr:`stat_result.st_file_attributes " -"` attribute is now available. It " -"corresponds to the ``dwFileAttributes`` member of the " -"``BY_HANDLE_FILE_INFORMATION`` structure returned by " -"``GetFileInformationByHandle()``. (Contributed by Ben Hoyt in " -":issue:`21719`.)" +"On Windows, a new :attr:`stat_result.st_file_attributes ` attribute is now available. It corresponds to the " +"``dwFileAttributes`` member of the ``BY_HANDLE_FILE_INFORMATION`` structure " +"returned by ``GetFileInformationByHandle()``. (Contributed by Ben Hoyt in :" +"issue:`21719`.)" msgstr "" #: ../../whatsnew/3.5.rst:1495 msgid "" "The :func:`~os.urandom` function now uses the ``getrandom()`` syscall on " -"Linux 3.17 or newer, and ``getentropy()`` on OpenBSD 5.6 and newer, removing" -" the need to use ``/dev/urandom`` and avoiding failures due to potential " -"file descriptor exhaustion. (Contributed by Victor Stinner in " -":issue:`22181`.)" +"Linux 3.17 or newer, and ``getentropy()`` on OpenBSD 5.6 and newer, removing " +"the need to use ``/dev/urandom`` and avoiding failures due to potential file " +"descriptor exhaustion. (Contributed by Victor Stinner in :issue:`22181`.)" msgstr "" #: ../../whatsnew/3.5.rst:1500 msgid "" "New :func:`~os.get_blocking` and :func:`~os.set_blocking` functions allow " -"getting and setting a file descriptor's blocking mode " -"(:data:`~os.O_NONBLOCK`.) (Contributed by Victor Stinner in :issue:`22054`.)" +"getting and setting a file descriptor's blocking mode (:data:`~os." +"O_NONBLOCK`.) (Contributed by Victor Stinner in :issue:`22054`.)" msgstr "" #: ../../whatsnew/3.5.rst:1504 @@ -1862,8 +1844,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:1507 msgid "" "There is a new :func:`os.path.commonpath` function returning the longest " -"common sub-path of each passed pathname. Unlike the " -":func:`os.path.commonprefix` function, it always returns a valid path::" +"common sub-path of each passed pathname. Unlike the :func:`os.path." +"commonprefix` function, it always returns a valid path::" msgstr "" #: ../../whatsnew/3.5.rst:1518 @@ -1877,8 +1859,8 @@ msgstr "pathlib" #: ../../whatsnew/3.5.rst:1524 msgid "" "The new :meth:`Path.samefile() ` method can be used " -"to check whether the path points to the same file as another path, which can" -" be either another :class:`~pathlib.Path` object, or a string::" +"to check whether the path points to the same file as another path, which can " +"be either another :class:`~pathlib.Path` object, or a string::" msgstr "" #: ../../whatsnew/3.5.rst:1534 @@ -1894,8 +1876,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:1540 msgid "" -"There is a new :meth:`Path.expanduser() ` method to" -" expand ``~`` and ``~user`` prefixes. (Contributed by Serhiy Storchaka and " +"There is a new :meth:`Path.expanduser() ` method to " +"expand ``~`` and ``~user`` prefixes. (Contributed by Serhiy Storchaka and " "Claudiu Popa in :issue:`19776`.)" msgstr "" @@ -1903,23 +1885,22 @@ msgstr "" msgid "" "A new :meth:`Path.home() ` class method can be used to " "get a :class:`~pathlib.Path` instance representing the user’s home " -"directory. (Contributed by Victor Salgado and Mayank Tripathi in " -":issue:`19777`.)" +"directory. (Contributed by Victor Salgado and Mayank Tripathi in :issue:" +"`19777`.)" msgstr "" #: ../../whatsnew/3.5.rst:1549 msgid "" -"New :meth:`Path.write_text() `, " -":meth:`Path.read_text() `, :meth:`Path.write_bytes()" -" `, :meth:`Path.read_bytes() " -"` methods to simplify read/write operations on " -"files." +"New :meth:`Path.write_text() `, :meth:`Path." +"read_text() `, :meth:`Path.write_bytes() `, :meth:`Path.read_bytes() ` " +"methods to simplify read/write operations on files." msgstr "" #: ../../whatsnew/3.5.rst:1555 msgid "" -"The following code snippet will create or rewrite existing file " -"``~/spam42``::" +"The following code snippet will create or rewrite existing file ``~/" +"spam42``::" msgstr "" #: ../../whatsnew/3.5.rst:1563 @@ -1933,9 +1914,9 @@ msgstr "pickle" #: ../../whatsnew/3.5.rst:1569 msgid "" "Nested objects, such as unbound methods or nested classes, can now be " -"pickled using :ref:`pickle protocols ` older than protocol" -" version 4. Protocol version 4 already supports these cases. (Contributed " -"by Serhiy Storchaka in :issue:`23611`.)" +"pickled using :ref:`pickle protocols ` older than protocol " +"version 4. Protocol version 4 already supports these cases. (Contributed by " +"Serhiy Storchaka in :issue:`23611`.)" msgstr "" #: ../../whatsnew/3.5.rst:1576 @@ -1945,8 +1926,8 @@ msgstr "poplib" #: ../../whatsnew/3.5.rst:1578 msgid "" "A new :meth:`POP3.utf8() ` command enables :rfc:`6856` " -"(Internationalized Email) support, if a POP server supports it. (Contributed" -" by Milan OberKirch in :issue:`21804`.)" +"(Internationalized Email) support, if a POP server supports it. (Contributed " +"by Milan OberKirch in :issue:`21804`.)" msgstr "" #: ../../whatsnew/3.5.rst:1584 @@ -1978,10 +1959,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:1605 msgid "" -"The :class:`re.error` exceptions have new attributes, :attr:`~re.error.msg`," -" :attr:`~re.error.pattern`, :attr:`~re.error.pos`, :attr:`~re.error.lineno`," -" and :attr:`~re.error.colno`, that provide better context information about " -"the error::" +"The :class:`re.error` exceptions have new attributes, :attr:`~re.error." +"msg`, :attr:`~re.error.pattern`, :attr:`~re.error.pos`, :attr:`~re.error." +"lineno`, and :attr:`~re.error.colno`, that provide better context " +"information about the error::" msgstr "" #: ../../whatsnew/3.5.rst:1619 @@ -2005,8 +1986,8 @@ msgstr "Seletores" #: ../../whatsnew/3.5.rst:1633 msgid "" -"The new :class:`~selectors.DevpollSelector` supports efficient ``/dev/poll``" -" polling on Solaris. (Contributed by Giampaolo Rodola' in :issue:`18931`.)" +"The new :class:`~selectors.DevpollSelector` supports efficient ``/dev/poll`` " +"polling on Solaris. (Contributed by Giampaolo Rodola' in :issue:`18931`.)" msgstr "" #: ../../whatsnew/3.5.rst:1639 @@ -2040,8 +2021,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:1657 msgid "" "Various ``SIG*`` constants in the :mod:`signal` module have been converted " -"into :mod:`Enums `. This allows meaningful names to be printed during" -" debugging, instead of integer \"magic numbers\". (Contributed by Giampaolo " +"into :mod:`Enums `. This allows meaningful names to be printed during " +"debugging, instead of integer \"magic numbers\". (Contributed by Giampaolo " "Rodola' in :issue:`21076`.)" msgstr "" @@ -2054,20 +2035,20 @@ msgid "" "Both the :class:`~smtpd.SMTPServer` and :class:`~smtpd.SMTPChannel` classes " "now accept a *decode_data* keyword argument to determine if the ``DATA`` " "portion of the SMTP transaction is decoded using the ``\"utf-8\"`` codec or " -"is instead provided to the :meth:`SMTPServer.process_message() " -"` method as a byte string. The default is" -" ``True`` for backward compatibility reasons, but will change to ``False`` " -"in Python 3.6. If *decode_data* is set to ``False``, the " -"``process_message`` method must be prepared to accept keyword arguments. " -"(Contributed by Maciej Szulik in :issue:`19662`.)" +"is instead provided to the :meth:`SMTPServer.process_message() ` method as a byte string. The default is " +"``True`` for backward compatibility reasons, but will change to ``False`` in " +"Python 3.6. If *decode_data* is set to ``False``, the ``process_message`` " +"method must be prepared to accept keyword arguments. (Contributed by Maciej " +"Szulik in :issue:`19662`.)" msgstr "" #: ../../whatsnew/3.5.rst:1677 msgid "" "The :class:`~smtpd.SMTPServer` class now advertises the ``8BITMIME`` " "extension (:rfc:`6152`) if *decode_data* has been set ``True``. If the " -"client specifies ``BODY=8BITMIME`` on the ``MAIL`` command, it is passed to " -":meth:`SMTPServer.process_message() ` via " +"client specifies ``BODY=8BITMIME`` on the ``MAIL`` command, it is passed to :" +"meth:`SMTPServer.process_message() ` via " "the *mail_options* keyword. (Contributed by Milan Oberkirch and R. David " "Murray in :issue:`21795`.)" msgstr "" @@ -2076,11 +2057,11 @@ msgstr "" msgid "" "The :class:`~smtpd.SMTPServer` class now also supports the ``SMTPUTF8`` " "extension (:rfc:`6531`: Internationalized Email). If the client specified " -"``SMTPUTF8 BODY=8BITMIME`` on the ``MAIL`` command, they are passed to " -":meth:`SMTPServer.process_message() ` via " -"the *mail_options* keyword. It is the responsibility of the " -"``process_message`` method to correctly handle the ``SMTPUTF8`` data. " -"(Contributed by Milan Oberkirch in :issue:`21725`.)" +"``SMTPUTF8 BODY=8BITMIME`` on the ``MAIL`` command, they are passed to :meth:" +"`SMTPServer.process_message() ` via the " +"*mail_options* keyword. It is the responsibility of the ``process_message`` " +"method to correctly handle the ``SMTPUTF8`` data. (Contributed by Milan " +"Oberkirch in :issue:`21725`.)" msgstr "" #: ../../whatsnew/3.5.rst:1692 @@ -2105,16 +2086,16 @@ msgstr "" msgid "" "The :meth:`SMTP.set_debuglevel() ` method now " "accepts an additional debuglevel (2), which enables timestamps in debug " -"messages. (Contributed by Gavin Chappell and Maciej Szulik in " -":issue:`16914`.)" +"messages. (Contributed by Gavin Chappell and Maciej Szulik in :issue:" +"`16914`.)" msgstr "" #: ../../whatsnew/3.5.rst:1708 msgid "" -"Both the :meth:`SMTP.sendmail() ` and " -":meth:`SMTP.send_message() ` methods now support " -":rfc:`6531` (SMTPUTF8). (Contributed by Milan Oberkirch and R. David Murray " -"in :issue:`22027`.)" +"Both the :meth:`SMTP.sendmail() ` and :meth:`SMTP." +"send_message() ` methods now support :rfc:`6531` " +"(SMTPUTF8). (Contributed by Milan Oberkirch and R. David Murray in :issue:" +"`22027`.)" msgstr "" #: ../../whatsnew/3.5.rst:1715 @@ -2123,9 +2104,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:1717 msgid "" -"The :func:`~sndhdr.what` and :func:`~sndhdr.whathdr` functions now return a" -" :func:`~collections.namedtuple`. (Contributed by Claudiu Popa in " -":issue:`18615`.)" +"The :func:`~sndhdr.what` and :func:`~sndhdr.whathdr` functions now return " +"a :func:`~collections.namedtuple`. (Contributed by Claudiu Popa in :issue:" +"`18615`.)" msgstr "" #: ../../whatsnew/3.5.rst:1723 @@ -2141,26 +2122,26 @@ msgstr "" #: ../../whatsnew/3.5.rst:1728 msgid "" "A new :meth:`socket.sendfile() ` method allows " -"sending a file over a socket by using the high-performance " -":func:`os.sendfile` function on UNIX, resulting in uploads being from 2 to 3" -" times faster than when using plain :meth:`socket.send() " -"`. (Contributed by Giampaolo Rodola' in :issue:`17552`.)" +"sending a file over a socket by using the high-performance :func:`os." +"sendfile` function on UNIX, resulting in uploads being from 2 to 3 times " +"faster than when using plain :meth:`socket.send() `. " +"(Contributed by Giampaolo Rodola' in :issue:`17552`.)" msgstr "" #: ../../whatsnew/3.5.rst:1734 msgid "" -"The :meth:`socket.sendall() ` method no longer resets" -" the socket timeout every time bytes are received or sent. The socket " +"The :meth:`socket.sendall() ` method no longer resets " +"the socket timeout every time bytes are received or sent. The socket " "timeout is now the maximum total duration to send all data. (Contributed by " "Victor Stinner in :issue:`23853`.)" msgstr "" #: ../../whatsnew/3.5.rst:1739 msgid "" -"The *backlog* argument of the :meth:`socket.listen() `" -" method is now optional. By default it is set to :data:`SOMAXCONN " -"` or to ``128``, whichever is less. (Contributed by " -"Charles-François Natali in :issue:`21455`.)" +"The *backlog* argument of the :meth:`socket.listen() ` " +"method is now optional. By default it is set to :data:`SOMAXCONN ` or to ``128``, whichever is less. (Contributed by Charles-" +"François Natali in :issue:`21455`.)" msgstr "" #: ../../whatsnew/3.5.rst:1746 @@ -2177,13 +2158,12 @@ msgstr "" #: ../../whatsnew/3.5.rst:1755 msgid "" -"The new :class:`~ssl.SSLObject` class has been added to provide SSL protocol" -" support for cases when the network I/O capabilities of " -":class:`~ssl.SSLSocket` are not necessary or are suboptimal. ``SSLObject`` " -"represents an SSL protocol instance, but does not implement any network I/O " -"methods, and instead provides a memory buffer interface. The new " -":class:`~ssl.MemoryBIO` class can be used to pass data between Python and an" -" SSL protocol instance." +"The new :class:`~ssl.SSLObject` class has been added to provide SSL protocol " +"support for cases when the network I/O capabilities of :class:`~ssl." +"SSLSocket` are not necessary or are suboptimal. ``SSLObject`` represents an " +"SSL protocol instance, but does not implement any network I/O methods, and " +"instead provides a memory buffer interface. The new :class:`~ssl.MemoryBIO` " +"class can be used to pass data between Python and an SSL protocol instance." msgstr "" #: ../../whatsnew/3.5.rst:1762 @@ -2210,23 +2190,23 @@ msgstr "" #: ../../whatsnew/3.5.rst:1775 msgid "" "Where OpenSSL support is present, the :mod:`ssl` module now implements the " -"*Application-Layer Protocol Negotiation* TLS extension as described in " -":rfc:`7301`." +"*Application-Layer Protocol Negotiation* TLS extension as described in :rfc:" +"`7301`." msgstr "" #: ../../whatsnew/3.5.rst:1779 msgid "" -"The new :meth:`SSLContext.set_alpn_protocols() " -"` can be used to specify which protocols " -"a socket should advertise during the TLS handshake." +"The new :meth:`SSLContext.set_alpn_protocols() ` can be used to specify which protocols a socket should " +"advertise during the TLS handshake." msgstr "" #: ../../whatsnew/3.5.rst:1783 msgid "" -"The new :meth:`SSLSocket.selected_alpn_protocol() " -"` returns the protocol that was " -"selected during the TLS handshake. The :data:`~ssl.HAS_ALPN` flag indicates " -"whether ALPN support is present." +"The new :meth:`SSLSocket.selected_alpn_protocol() ` returns the protocol that was selected during the " +"TLS handshake. The :data:`~ssl.HAS_ALPN` flag indicates whether ALPN support " +"is present." msgstr "" #: ../../whatsnew/3.5.rst:1790 @@ -2235,51 +2215,50 @@ msgstr "" #: ../../whatsnew/3.5.rst:1792 msgid "" -"There is a new :meth:`SSLSocket.version() ` method to" -" query the actual protocol version in use. (Contributed by Antoine Pitrou in" -" :issue:`20421`.)" +"There is a new :meth:`SSLSocket.version() ` method to " +"query the actual protocol version in use. (Contributed by Antoine Pitrou in :" +"issue:`20421`.)" msgstr "" #: ../../whatsnew/3.5.rst:1796 msgid "" -"The :class:`~ssl.SSLSocket` class now implements a " -":meth:`SSLSocket.sendfile() ` method. (Contributed " -"by Giampaolo Rodola' in :issue:`17552`.)" +"The :class:`~ssl.SSLSocket` class now implements a :meth:`SSLSocket." +"sendfile() ` method. (Contributed by Giampaolo " +"Rodola' in :issue:`17552`.)" msgstr "" #: ../../whatsnew/3.5.rst:1800 msgid "" "The :meth:`SSLSocket.send() ` method now raises either " -"the :exc:`ssl.SSLWantReadError` or :exc:`ssl.SSLWantWriteError` exception on" -" a non-blocking socket if the operation would block. Previously, it would " +"the :exc:`ssl.SSLWantReadError` or :exc:`ssl.SSLWantWriteError` exception on " +"a non-blocking socket if the operation would block. Previously, it would " "return ``0``. (Contributed by Nikolaus Rath in :issue:`20951`.)" msgstr "" #: ../../whatsnew/3.5.rst:1805 msgid "" -"The :func:`~ssl.cert_time_to_seconds` function now interprets the input time" -" as UTC and not as local time, per :rfc:`5280`. Additionally, the return " -"value is always an :class:`int`. (Contributed by Akira Li in " -":issue:`19940`.)" +"The :func:`~ssl.cert_time_to_seconds` function now interprets the input time " +"as UTC and not as local time, per :rfc:`5280`. Additionally, the return " +"value is always an :class:`int`. (Contributed by Akira Li in :issue:`19940`.)" msgstr "" #: ../../whatsnew/3.5.rst:1809 msgid "" -"New :meth:`SSLObject.shared_ciphers() ` and " -":meth:`SSLSocket.shared_ciphers() ` methods " +"New :meth:`SSLObject.shared_ciphers() ` and :" +"meth:`SSLSocket.shared_ciphers() ` methods " "return the list of ciphers sent by the client during the handshake. " "(Contributed by Benjamin Peterson in :issue:`23186`.)" msgstr "" #: ../../whatsnew/3.5.rst:1814 msgid "" -"The :meth:`SSLSocket.do_handshake() `, " -":meth:`SSLSocket.read() `, :meth:`SSLSocket.shutdown() " -"`, and :meth:`SSLSocket.write() " -"` methods of the :class:`~ssl.SSLSocket` class no " -"longer reset the socket timeout every time bytes are received or sent. The " -"socket timeout is now the maximum total duration of the method. (Contributed" -" by Victor Stinner in :issue:`23853`.)" +"The :meth:`SSLSocket.do_handshake() `, :meth:" +"`SSLSocket.read() `, :meth:`SSLSocket.shutdown() `, and :meth:`SSLSocket.write() ` " +"methods of the :class:`~ssl.SSLSocket` class no longer reset the socket " +"timeout every time bytes are received or sent. The socket timeout is now the " +"maximum total duration of the method. (Contributed by Victor Stinner in :" +"issue:`23853`.)" msgstr "" #: ../../whatsnew/3.5.rst:1822 @@ -2294,8 +2273,8 @@ msgstr "sqlite3" #: ../../whatsnew/3.5.rst:1829 msgid "" -"The :class:`~sqlite3.Row` class now fully supports the sequence protocol, in" -" particular :func:`reversed` iteration and slice indexing. (Contributed by " +"The :class:`~sqlite3.Row` class now fully supports the sequence protocol, in " +"particular :func:`reversed` iteration and slice indexing. (Contributed by " "Claudiu Popa in :issue:`10203`; by Lucas Sinclair, Jessica McKellar, and " "Serhiy Storchaka in :issue:`13583`.)" msgstr "" @@ -2309,8 +2288,8 @@ msgid "" "The new :func:`~subprocess.run` function has been added. It runs the " "specified command and returns a :class:`~subprocess.CompletedProcess` " "object, which describes a finished process. The new API is more consistent " -"and is the recommended approach to invoking subprocesses in Python code that" -" does not need to maintain compatibility with earlier Python versions. " +"and is the recommended approach to invoking subprocesses in Python code that " +"does not need to maintain compatibility with earlier Python versions. " "(Contributed by Thomas Kluyver in :issue:`23342`.)" msgstr "" @@ -2322,18 +2301,17 @@ msgstr "sys" msgid "" "A new :func:`~sys.set_coroutine_wrapper` function allows setting a global " "hook that will be called whenever a :term:`coroutine object ` is " -"created by an :keyword:`async def` function. A corresponding " -":func:`~sys.get_coroutine_wrapper` can be used to obtain a currently set " -"wrapper. Both functions are :term:`provisional `, and are " -"intended for debugging purposes only. (Contributed by Yury Selivanov in " -":issue:`24017`.)" +"created by an :keyword:`async def` function. A corresponding :func:`~sys." +"get_coroutine_wrapper` can be used to obtain a currently set wrapper. Both " +"functions are :term:`provisional `, and are intended for " +"debugging purposes only. (Contributed by Yury Selivanov in :issue:`24017`.)" msgstr "" #: ../../whatsnew/3.5.rst:1874 msgid "" -"A new :func:`~sys.is_finalizing` function can be used to check if the Python" -" interpreter is :term:`shutting down `. (Contributed " -"by Antoine Pitrou in :issue:`22696`.)" +"A new :func:`~sys.is_finalizing` function can be used to check if the Python " +"interpreter is :term:`shutting down `. (Contributed by " +"Antoine Pitrou in :issue:`22696`.)" msgstr "" #: ../../whatsnew/3.5.rst:1880 @@ -2342,9 +2320,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:1882 msgid "" -"The name of the user scripts directory on Windows now includes the first two" -" components of the Python version. (Contributed by Paul Moore in " -":issue:`23437`.)" +"The name of the user scripts directory on Windows now includes the first two " +"components of the Python version. (Contributed by Paul Moore in :issue:" +"`23437`.)" msgstr "" #: ../../whatsnew/3.5.rst:1888 @@ -2353,17 +2331,17 @@ msgstr "tarfile" #: ../../whatsnew/3.5.rst:1890 msgid "" -"The *mode* argument of the :func:`~tarfile.open` function now accepts " -"``\"x\"`` to request exclusive creation. (Contributed by Berker Peksag in " -":issue:`21717`.)" +"The *mode* argument of the :func:`~tarfile.open` function now accepts ``\"x" +"\"`` to request exclusive creation. (Contributed by Berker Peksag in :issue:" +"`21717`.)" msgstr "" #: ../../whatsnew/3.5.rst:1893 msgid "" -"The :meth:`TarFile.extractall() ` and " -":meth:`TarFile.extract() ` methods now take a " -"keyword argument *numeric_owner*. If set to ``True``, the extracted files " -"and directories will be owned by the numeric ``uid`` and ``gid`` from the " +"The :meth:`TarFile.extractall() ` and :meth:" +"`TarFile.extract() ` methods now take a keyword " +"argument *numeric_owner*. If set to ``True``, the extracted files and " +"directories will be owned by the numeric ``uid`` and ``gid`` from the " "tarfile. If set to ``False`` (the default, and the behavior in versions " "prior to 3.5), they will be owned by the named user and group in the " "tarfile. (Contributed by Michael Vogt and Eric Smith in :issue:`23193`.)" @@ -2383,15 +2361,14 @@ msgstr "threading" #: ../../whatsnew/3.5.rst:1910 msgid "" -"Both the :meth:`Lock.acquire() ` and " -":meth:`RLock.acquire() ` methods now use a " -"monotonic clock for timeout management. (Contributed by Victor Stinner in " -":issue:`22043`.)" +"Both the :meth:`Lock.acquire() ` and :meth:`RLock." +"acquire() ` methods now use a monotonic clock for " +"timeout management. (Contributed by Victor Stinner in :issue:`22043`.)" msgstr "" #: ../../whatsnew/3.5.rst:1917 msgid "time" -msgstr "" +msgstr "time" #: ../../whatsnew/3.5.rst:1919 msgid "" @@ -2406,8 +2383,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:1926 msgid "" "A new command line option ``-u`` or :samp:`--unit={U}` can be used to " -"specify the time unit for the timer output. Supported options are ``usec``," -" ``msec``, or ``sec``. (Contributed by Julian Gindi in :issue:`18983`.)" +"specify the time unit for the timer output. Supported options are ``usec``, " +"``msec``, or ``sec``. (Contributed by Julian Gindi in :issue:`18983`.)" msgstr "" #: ../../whatsnew/3.5.rst:1930 @@ -2419,12 +2396,12 @@ msgstr "" #: ../../whatsnew/3.5.rst:1936 msgid "tkinter" -msgstr "" +msgstr "tkinter" #: ../../whatsnew/3.5.rst:1938 msgid "" -"The :mod:`tkinter._fix` module used for setting up the Tcl/Tk environment on" -" Windows has been replaced by a private function in the :mod:`_tkinter` " +"The :mod:`tkinter._fix` module used for setting up the Tcl/Tk environment on " +"Windows has been replaced by a private function in the :mod:`_tkinter` " "module which makes no permanent changes to environment variables. " "(Contributed by Zachary Ware in :issue:`20035`.)" msgstr "" @@ -2436,22 +2413,22 @@ msgstr "traceback" #: ../../whatsnew/3.5.rst:1949 msgid "" "New :func:`~traceback.walk_stack` and :func:`~traceback.walk_tb` functions " -"to conveniently traverse frame and traceback objects. (Contributed by Robert" -" Collins in :issue:`17911`.)" +"to conveniently traverse frame and traceback objects. (Contributed by Robert " +"Collins in :issue:`17911`.)" msgstr "" #: ../../whatsnew/3.5.rst:1953 msgid "" -"New lightweight classes: :class:`~traceback.TracebackException`, " -":class:`~traceback.StackSummary`, and :class:`~traceback.FrameSummary`. " +"New lightweight classes: :class:`~traceback.TracebackException`, :class:" +"`~traceback.StackSummary`, and :class:`~traceback.FrameSummary`. " "(Contributed by Robert Collins in :issue:`17911`.)" msgstr "" #: ../../whatsnew/3.5.rst:1957 msgid "" "Both the :func:`~traceback.print_tb` and :func:`~traceback.print_stack` " -"functions now support negative values for the *limit* argument. (Contributed" -" by Dmitry Kazakov in :issue:`22619`.)" +"functions now support negative values for the *limit* argument. (Contributed " +"by Dmitry Kazakov in :issue:`22619`.)" msgstr "" #: ../../whatsnew/3.5.rst:1963 @@ -2461,26 +2438,26 @@ msgstr "types" #: ../../whatsnew/3.5.rst:1965 msgid "" "A new :func:`~types.coroutine` function to transform :term:`generator " -"` and :class:`generator-like " -"` objects into :term:`awaitables `. " -"(Contributed by Yury Selivanov in :issue:`24017`.)" +"` and :class:`generator-like ` objects into :term:`awaitables `. (Contributed by " +"Yury Selivanov in :issue:`24017`.)" msgstr "" #: ../../whatsnew/3.5.rst:1971 msgid "" -"A new type called :class:`~types.CoroutineType`, which is used for " -":term:`coroutine` objects created by :keyword:`async def` functions. " -"(Contributed by Yury Selivanov in :issue:`24400`.)" +"A new type called :class:`~types.CoroutineType`, which is used for :term:" +"`coroutine` objects created by :keyword:`async def` functions. (Contributed " +"by Yury Selivanov in :issue:`24400`.)" msgstr "" #: ../../whatsnew/3.5.rst:1977 msgid "unicodedata" -msgstr "" +msgstr "unicodedata" #: ../../whatsnew/3.5.rst:1979 msgid "" -"The :mod:`unicodedata` module now uses data from `Unicode 8.0.0 " -"`_." +"The :mod:`unicodedata` module now uses data from `Unicode 8.0.0 `_." msgstr "" #: ../../whatsnew/3.5.rst:1984 @@ -2489,20 +2466,20 @@ msgstr "unittest" #: ../../whatsnew/3.5.rst:1986 msgid "" -"The :meth:`TestLoader.loadTestsFromModule() " -"` method now accepts a keyword-only" -" argument *pattern* which is passed to ``load_tests`` as the third argument." -" Found packages are now checked for ``load_tests`` regardless of whether " -"their path matches *pattern*, because it is impossible for a package name to" -" match the default pattern. (Contributed by Robert Collins and Barry A. " -"Warsaw in :issue:`16662`.)" +"The :meth:`TestLoader.loadTestsFromModule() ` method now accepts a keyword-only argument *pattern* " +"which is passed to ``load_tests`` as the third argument. Found packages are " +"now checked for ``load_tests`` regardless of whether their path matches " +"*pattern*, because it is impossible for a package name to match the default " +"pattern. (Contributed by Robert Collins and Barry A. Warsaw in :issue:" +"`16662`.)" msgstr "" #: ../../whatsnew/3.5.rst:1993 msgid "" "Unittest discovery errors now are exposed in the :data:`TestLoader.errors " -"` attribute of the :class:`~unittest.TestLoader`" -" instance. (Contributed by Robert Collins in :issue:`19746`.)" +"` attribute of the :class:`~unittest.TestLoader` " +"instance. (Contributed by Robert Collins in :issue:`19746`.)" msgstr "" #: ../../whatsnew/3.5.rst:1998 @@ -2522,30 +2499,30 @@ msgstr "" #: ../../whatsnew/3.5.rst:2007 msgid "" "The class constructor has a new *unsafe* parameter, which causes mock " -"objects to raise :exc:`AttributeError` on attribute names starting with " -"``\"assert\"``. (Contributed by Kushal Das in :issue:`21238`.)" +"objects to raise :exc:`AttributeError` on attribute names starting with ``" +"\"assert\"``. (Contributed by Kushal Das in :issue:`21238`.)" msgstr "" #: ../../whatsnew/3.5.rst:2012 msgid "" -"A new :meth:`Mock.assert_not_called() " -"` method to check if the mock object " -"was called. (Contributed by Kushal Das in :issue:`21262`.)" +"A new :meth:`Mock.assert_not_called() ` method to check if the mock object was called. " +"(Contributed by Kushal Das in :issue:`21262`.)" msgstr "" #: ../../whatsnew/3.5.rst:2016 msgid "" -"The :class:`~unittest.mock.MagicMock` class now supports " -":meth:`__truediv__`, :meth:`__divmod__` and :meth:`__matmul__` operators. " -"(Contributed by Johannes Baiter in :issue:`20968`, and Håkan Lövdahl in " -":issue:`23581` and :issue:`23568`.)" +"The :class:`~unittest.mock.MagicMock` class now supports :meth:" +"`__truediv__`, :meth:`__divmod__` and :meth:`__matmul__` operators. " +"(Contributed by Johannes Baiter in :issue:`20968`, and Håkan Lövdahl in :" +"issue:`23581` and :issue:`23568`.)" msgstr "" #: ../../whatsnew/3.5.rst:2021 msgid "" -"It is no longer necessary to explicitly pass ``create=True`` to the " -":func:`~unittest.mock.patch` function when patching builtin names. " -"(Contributed by Kushal Das in :issue:`17660`.)" +"It is no longer necessary to explicitly pass ``create=True`` to the :func:" +"`~unittest.mock.patch` function when patching builtin names. (Contributed by " +"Kushal Das in :issue:`17660`.)" msgstr "" #: ../../whatsnew/3.5.rst:2027 @@ -2554,37 +2531,35 @@ msgstr "urllib" #: ../../whatsnew/3.5.rst:2029 msgid "" -"A new :class:`request.HTTPPasswordMgrWithPriorAuth " -"` class allows HTTP Basic " -"Authentication credentials to be managed so as to eliminate unnecessary " -"``401`` response handling, or to unconditionally send credentials on the " -"first request in order to communicate with servers that return a ``404`` " -"response instead of a ``401`` if the ``Authorization`` header is not sent. " -"(Contributed by Matej Cepl in :issue:`19494` and Akshit Khurana in " -":issue:`7159`.)" +"A new :class:`request.HTTPPasswordMgrWithPriorAuth ` class allows HTTP Basic Authentication " +"credentials to be managed so as to eliminate unnecessary ``401`` response " +"handling, or to unconditionally send credentials on the first request in " +"order to communicate with servers that return a ``404`` response instead of " +"a ``401`` if the ``Authorization`` header is not sent. (Contributed by Matej " +"Cepl in :issue:`19494` and Akshit Khurana in :issue:`7159`.)" msgstr "" #: ../../whatsnew/3.5.rst:2038 msgid "" -"A new *quote_via* argument for the :func:`parse.urlencode() " -"` function provides a way to control the encoding of" -" query parts if needed. (Contributed by Samwyse and Arnon Yaari in " -":issue:`13866`.)" +"A new *quote_via* argument for the :func:`parse.urlencode() ` function provides a way to control the encoding of query parts " +"if needed. (Contributed by Samwyse and Arnon Yaari in :issue:`13866`.)" msgstr "" #: ../../whatsnew/3.5.rst:2043 msgid "" -"The :func:`request.urlopen() ` function accepts an " -":class:`ssl.SSLContext` object as a *context* argument, which will be used " +"The :func:`request.urlopen() ` function accepts an :" +"class:`ssl.SSLContext` object as a *context* argument, which will be used " "for the HTTPS connection. (Contributed by Alex Gaynor in :issue:`22366`.)" msgstr "" #: ../../whatsnew/3.5.rst:2047 msgid "" -"The :func:`parse.urljoin() ` was updated to use the " -":rfc:`3986` semantics for the resolution of relative URLs, rather than " -":rfc:`1808` and :rfc:`2396`. (Contributed by Demian Brecht and Senthil " -"Kumaran in :issue:`22118`.)" +"The :func:`parse.urljoin() ` was updated to use the :" +"rfc:`3986` semantics for the resolution of relative URLs, rather than :rfc:" +"`1808` and :rfc:`2396`. (Contributed by Demian Brecht and Senthil Kumaran " +"in :issue:`22118`.)" msgstr "" #: ../../whatsnew/3.5.rst:2054 @@ -2593,14 +2568,14 @@ msgstr "" #: ../../whatsnew/3.5.rst:2056 msgid "" -"The *headers* argument of the :class:`headers.Headers " -"` class constructor is now optional. (Contributed " -"by Pablo Torres Navarrete and SilentGhost in :issue:`5800`.)" +"The *headers* argument of the :class:`headers.Headers ` class constructor is now optional. (Contributed by Pablo Torres " +"Navarrete and SilentGhost in :issue:`5800`.)" msgstr "" #: ../../whatsnew/3.5.rst:2062 msgid "xmlrpc" -msgstr "" +msgstr "xmlrpc" #: ../../whatsnew/3.5.rst:2064 msgid "" @@ -2622,9 +2597,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:2076 msgid "" -"SAX parsers now support a character stream of the " -":class:`xmlreader.InputSource ` object. " -"(Contributed by Serhiy Storchaka in :issue:`2175`.)" +"SAX parsers now support a character stream of the :class:`xmlreader." +"InputSource ` object. (Contributed by Serhiy " +"Storchaka in :issue:`2175`.)" msgstr "" #: ../../whatsnew/3.5.rst:2080 @@ -2656,10 +2631,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:2098 msgid "" -"Many functions in the :mod:`mmap`, :mod:`ossaudiodev`, :mod:`socket`, " -":mod:`ssl`, and :mod:`codecs` modules now accept writable :term:`bytes-like " -"objects `. (Contributed by Serhiy Storchaka in " -":issue:`23001`.)" +"Many functions in the :mod:`mmap`, :mod:`ossaudiodev`, :mod:`socket`, :mod:" +"`ssl`, and :mod:`codecs` modules now accept writable :term:`bytes-like " +"objects `. (Contributed by Serhiy Storchaka in :issue:" +"`23001`.)" msgstr "" #: ../../whatsnew/3.5.rst:2105 @@ -2669,9 +2644,9 @@ msgstr "Otimizações" #: ../../whatsnew/3.5.rst:2107 msgid "" "The :func:`os.walk` function has been sped up by 3 to 5 times on POSIX " -"systems, and by 7 to 20 times on Windows. This was done using the new " -":func:`os.scandir` function, which exposes file information from the " -"underlying ``readdir`` or ``FindFirstFile``/``FindNextFile`` system calls. " +"systems, and by 7 to 20 times on Windows. This was done using the new :func:" +"`os.scandir` function, which exposes file information from the underlying " +"``readdir`` or ``FindFirstFile``/``FindNextFile`` system calls. " "(Contributed by Ben Hoyt with help from Victor Stinner in :issue:`23605`.)" msgstr "" @@ -2679,20 +2654,19 @@ msgstr "" msgid "" "Construction of ``bytes(int)`` (filled by zero bytes) is faster and uses " "less memory for large objects. ``calloc()`` is used instead of ``malloc()`` " -"to allocate memory for these objects. (Contributed by Victor Stinner in " -":issue:`21233`.)" +"to allocate memory for these objects. (Contributed by Victor Stinner in :" +"issue:`21233`.)" msgstr "" #: ../../whatsnew/3.5.rst:2118 msgid "" -"Some operations on :mod:`ipaddress` :class:`~ipaddress.IPv4Network` and " -":class:`~ipaddress.IPv6Network` have been massively sped up, such as " -":meth:`~ipaddress.IPv4Network.subnets`, " -":meth:`~ipaddress.IPv4Network.supernet`, " -":func:`~ipaddress.summarize_address_range`, " -":func:`~ipaddress.collapse_addresses`. The speed up can range from 3 to 15 " -"times. (Contributed by Antoine Pitrou, Michel Albert, and Markus in " -":issue:`21486`, :issue:`21487`, :issue:`20826`, :issue:`23266`.)" +"Some operations on :mod:`ipaddress` :class:`~ipaddress.IPv4Network` and :" +"class:`~ipaddress.IPv6Network` have been massively sped up, such as :meth:" +"`~ipaddress.IPv4Network.subnets`, :meth:`~ipaddress.IPv4Network.supernet`, :" +"func:`~ipaddress.summarize_address_range`, :func:`~ipaddress." +"collapse_addresses`. The speed up can range from 3 to 15 times. (Contributed " +"by Antoine Pitrou, Michel Albert, and Markus in :issue:`21486`, :issue:" +"`21487`, :issue:`20826`, :issue:`23266`.)" msgstr "" #: ../../whatsnew/3.5.rst:2126 @@ -2704,16 +2678,16 @@ msgstr "" #: ../../whatsnew/3.5.rst:2129 msgid "" "Many operations on :class:`io.BytesIO` are now 50% to 100% faster. " -"(Contributed by Serhiy Storchaka in :issue:`15381` and David Wilson in " -":issue:`22003`.)" +"(Contributed by Serhiy Storchaka in :issue:`15381` and David Wilson in :" +"issue:`22003`.)" msgstr "" #: ../../whatsnew/3.5.rst:2133 msgid "" "The :func:`marshal.dumps` function is now faster: 65--85% with versions 3 " "and 4, 20--25% with versions 0 to 2 on typical data, and up to 5 times in " -"best cases. (Contributed by Serhiy Storchaka in :issue:`20416` and " -":issue:`23344`.)" +"best cases. (Contributed by Serhiy Storchaka in :issue:`20416` and :issue:" +"`23344`.)" msgstr "" #: ../../whatsnew/3.5.rst:2138 @@ -2738,16 +2712,16 @@ msgstr "" #: ../../whatsnew/3.5.rst:2148 msgid "" "The :c:func:`PyObject_IsInstance` and :c:func:`PyObject_IsSubclass` " -"functions have been sped up in the common case that the second argument has " -":class:`type` as its metaclass. (Contributed Georg Brandl by in " -":issue:`22540`.)" +"functions have been sped up in the common case that the second argument has :" +"class:`type` as its metaclass. (Contributed Georg Brandl by in :issue:" +"`22540`.)" msgstr "" #: ../../whatsnew/3.5.rst:2153 msgid "" "Method caching was slightly improved, yielding up to 5% performance " -"improvement in some benchmarks. (Contributed by Antoine Pitrou in " -":issue:`22847`.)" +"improvement in some benchmarks. (Contributed by Antoine Pitrou in :issue:" +"`22847`.)" msgstr "" #: ../../whatsnew/3.5.rst:2157 @@ -2770,8 +2744,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2166 msgid "" -"String methods :meth:`~str.find`, :meth:`~str.rfind`, :meth:`~str.split`, " -":meth:`~str.partition` and the :keyword:`in` string operator are now " +"String methods :meth:`~str.find`, :meth:`~str.rfind`, :meth:`~str.split`, :" +"meth:`~str.partition` and the :keyword:`in` string operator are now " "significantly faster for searching 1-character substrings. (Contributed by " "Serhiy Storchaka in :issue:`23573`.)" msgstr "" @@ -2819,37 +2793,37 @@ msgstr "" #: ../../whatsnew/3.5.rst:2190 msgid "" "A new :c:func:`PyCodec_NameReplaceErrors` function to replace the unicode " -"encode error with ``\\N{...}`` escapes. (Contributed by Serhiy Storchaka in " -":issue:`19676`.)" +"encode error with ``\\N{...}`` escapes. (Contributed by Serhiy Storchaka in :" +"issue:`19676`.)" msgstr "" #: ../../whatsnew/3.5.rst:2194 msgid "" "A new :c:func:`PyErr_FormatV` function similar to :c:func:`PyErr_Format`, " -"but accepts a ``va_list`` argument. (Contributed by Antoine Pitrou in " -":issue:`18711`.)" +"but accepts a ``va_list`` argument. (Contributed by Antoine Pitrou in :issue:" +"`18711`.)" msgstr "" #: ../../whatsnew/3.5.rst:2198 msgid "" -"A new :c:data:`PyExc_RecursionError` exception. (Contributed by Georg Brandl" -" in :issue:`19235`.)" +"A new :c:data:`PyExc_RecursionError` exception. (Contributed by Georg Brandl " +"in :issue:`19235`.)" msgstr "" #: ../../whatsnew/3.5.rst:2201 msgid "" "New :c:func:`PyModule_FromDefAndSpec`, :c:func:`PyModule_FromDefAndSpec2`, " "and :c:func:`PyModule_ExecDef` functions introduced by :pep:`489` -- multi-" -"phase extension module initialization. (Contributed by Petr Viktorin in " -":issue:`24268`.)" +"phase extension module initialization. (Contributed by Petr Viktorin in :" +"issue:`24268`.)" msgstr "" #: ../../whatsnew/3.5.rst:2206 msgid "" -"New :c:func:`PyNumber_MatrixMultiply` and " -":c:func:`PyNumber_InPlaceMatrixMultiply` functions to perform matrix " -"multiplication. (Contributed by Benjamin Peterson in :issue:`21176`. See " -"also :pep:`465` for details.)" +"New :c:func:`PyNumber_MatrixMultiply` and :c:func:" +"`PyNumber_InPlaceMatrixMultiply` functions to perform matrix multiplication. " +"(Contributed by Benjamin Peterson in :issue:`21176`. See also :pep:`465` " +"for details.)" msgstr "" #: ../../whatsnew/3.5.rst:2212 @@ -2873,8 +2847,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2222 msgid "" -"On Linux, extension module filenames end with " -"``.cpython-m--.pyd``:" +"On Linux, extension module filenames end with ``.cpython-m-" +"-.pyd``:" msgstr "" #: ../../whatsnew/3.5.rst:2225 ../../whatsnew/3.5.rst:2242 @@ -2898,15 +2872,15 @@ msgstr "" #: ../../whatsnew/3.5.rst:2235 msgid "" -"```` is always ``linux-gnu``, except for extensions built to talk to the" -" 32-bit ABI on 64-bit platforms, in which case it is ``linux-gnu32`` (and " +"```` is always ``linux-gnu``, except for extensions built to talk to the " +"32-bit ABI on 64-bit platforms, in which case it is ``linux-gnu32`` (and " "```` will be ``x86_64``)." msgstr "" #: ../../whatsnew/3.5.rst:2239 msgid "" -"On Windows, extension module filenames end with " -"``.cp-.pyd``:" +"On Windows, extension module filenames end with ``.cp-" +".pyd``:" msgstr "" #: ../../whatsnew/3.5.rst:2248 @@ -2929,8 +2903,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2257 msgid "" -"On all other platforms, extension module filenames are the same as they were" -" with Python 3.4." +"On all other platforms, extension module filenames are the same as they were " +"with Python 3.4." msgstr "" #: ../../whatsnew/3.5.rst:2262 @@ -2944,8 +2918,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2267 msgid "" "``async`` and ``await`` are not recommended to be used as variable, class, " -"function or module names. Introduced by :pep:`492` in Python 3.5, they will" -" become proper keywords in Python 3.7." +"function or module names. Introduced by :pep:`492` in Python 3.5, they will " +"become proper keywords in Python 3.7." msgstr "" #: ../../whatsnew/3.5.rst:2273 @@ -2956,8 +2930,8 @@ msgstr "" msgid "" "Raising the :exc:`StopIteration` exception inside a generator will now " "generate a silent :exc:`PendingDeprecationWarning`, which will become a non-" -"silent deprecation warning in Python 3.6 and will trigger a " -":exc:`RuntimeError` in Python 3.7. See :ref:`PEP 479: Change StopIteration " +"silent deprecation warning in Python 3.6 and will trigger a :exc:" +"`RuntimeError` in Python 3.7. See :ref:`PEP 479: Change StopIteration " "handling inside generators ` for details." msgstr "" @@ -2967,8 +2941,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2285 msgid "" -"Windows XP is no longer supported by Microsoft, thus, per :PEP:`11`, CPython" -" 3.5 is no longer officially supported on this OS." +"Windows XP is no longer supported by Microsoft, thus, per :PEP:`11`, CPython " +"3.5 is no longer officially supported on this OS." msgstr "" #: ../../whatsnew/3.5.rst:2290 @@ -2983,35 +2957,34 @@ msgstr "" #: ../../whatsnew/3.5.rst:2295 msgid "" -"The :func:`asyncio.async` function is deprecated in favor of " -":func:`~asyncio.ensure_future`." +"The :func:`asyncio.async` function is deprecated in favor of :func:`~asyncio." +"ensure_future`." msgstr "" #: ../../whatsnew/3.5.rst:2298 msgid "" "The :mod:`smtpd` module has in the past always decoded the DATA portion of " -"email messages using the ``utf-8`` codec. This can now be controlled by the" -" new *decode_data* keyword to :class:`~smtpd.SMTPServer`. The default value" -" is ``True``, but this default is deprecated. Specify the *decode_data* " +"email messages using the ``utf-8`` codec. This can now be controlled by the " +"new *decode_data* keyword to :class:`~smtpd.SMTPServer`. The default value " +"is ``True``, but this default is deprecated. Specify the *decode_data* " "keyword with an appropriate value to avoid the deprecation warning." msgstr "" #: ../../whatsnew/3.5.rst:2304 msgid "" -"Directly assigning values to the :attr:`~http.cookies.Morsel.key`, " -":attr:`~http.cookies.Morsel.value` and " -":attr:`~http.cookies.Morsel.coded_value` of :class:`http.cookies.Morsel` " -"objects is deprecated. Use the :meth:`~http.cookies.Morsel.set` method " -"instead. In addition, the undocumented *LegalChars* parameter of " -":meth:`~http.cookies.Morsel.set` is deprecated, and is now ignored." +"Directly assigning values to the :attr:`~http.cookies.Morsel.key`, :attr:" +"`~http.cookies.Morsel.value` and :attr:`~http.cookies.Morsel.coded_value` " +"of :class:`http.cookies.Morsel` objects is deprecated. Use the :meth:`~http." +"cookies.Morsel.set` method instead. In addition, the undocumented " +"*LegalChars* parameter of :meth:`~http.cookies.Morsel.set` is deprecated, " +"and is now ignored." msgstr "" #: ../../whatsnew/3.5.rst:2311 msgid "" -"Passing a format string as keyword argument *format_string* to the " -":meth:`~string.Formatter.format` method of the :class:`string.Formatter` " -"class has been deprecated. (Contributed by Serhiy Storchaka in " -":issue:`23671`.)" +"Passing a format string as keyword argument *format_string* to the :meth:" +"`~string.Formatter.format` method of the :class:`string.Formatter` class has " +"been deprecated. (Contributed by Serhiy Storchaka in :issue:`23671`.)" msgstr "" #: ../../whatsnew/3.5.rst:2316 @@ -3025,9 +2998,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:2321 msgid "" "The previously undocumented ``from_function`` and ``from_builtin`` methods " -"of :class:`inspect.Signature` are deprecated. Use the new " -":meth:`Signature.from_callable() ` method " -"instead. (Contributed by Yury Selivanov in :issue:`24248`.)" +"of :class:`inspect.Signature` are deprecated. Use the new :meth:`Signature." +"from_callable() ` method instead. " +"(Contributed by Yury Selivanov in :issue:`24248`.)" msgstr "" #: ../../whatsnew/3.5.rst:2326 @@ -3038,22 +3011,22 @@ msgstr "" #: ../../whatsnew/3.5.rst:2329 msgid "" -"The :mod:`inspect` :func:`~inspect.getfullargspec`, " -":func:`~inspect.getcallargs`, and :func:`~inspect.formatargspec` functions " -"are deprecated in favor of the :func:`inspect.signature` API. (Contributed " -"by Yury Selivanov in :issue:`20438`.)" +"The :mod:`inspect` :func:`~inspect.getfullargspec`, :func:`~inspect." +"getcallargs`, and :func:`~inspect.formatargspec` functions are deprecated in " +"favor of the :func:`inspect.signature` API. (Contributed by Yury Selivanov " +"in :issue:`20438`.)" msgstr "" #: ../../whatsnew/3.5.rst:2334 msgid "" -":func:`~inspect.getargvalues` and :func:`~inspect.formatargvalues` functions" -" were inadvertently marked as deprecated with the release of Python 3.5.0." +":func:`~inspect.getargvalues` and :func:`~inspect.formatargvalues` functions " +"were inadvertently marked as deprecated with the release of Python 3.5.0." msgstr "" #: ../../whatsnew/3.5.rst:2337 msgid "" -"Use of :const:`re.LOCALE` flag with str patterns or :const:`re.ASCII` is now" -" deprecated. (Contributed by Serhiy Storchaka in :issue:`22407`.)" +"Use of :const:`re.LOCALE` flag with str patterns or :const:`re.ASCII` is now " +"deprecated. (Contributed by Serhiy Storchaka in :issue:`22407`.)" msgstr "" #: ../../whatsnew/3.5.rst:2340 @@ -3066,10 +3039,10 @@ msgstr "" #: ../../whatsnew/3.5.rst:2345 msgid "" -"The undocumented and unofficial *use_load_tests* default argument of the " -":meth:`unittest.TestLoader.loadTestsFromModule` method now is deprecated and" -" ignored. (Contributed by Robert Collins and Barry A. Warsaw in " -":issue:`16662`.)" +"The undocumented and unofficial *use_load_tests* default argument of the :" +"meth:`unittest.TestLoader.loadTestsFromModule` method now is deprecated and " +"ignored. (Contributed by Robert Collins and Barry A. Warsaw in :issue:" +"`16662`.)" msgstr "" #: ../../whatsnew/3.5.rst:2352 @@ -3082,11 +3055,11 @@ msgstr "API and Feature Removals" #: ../../whatsnew/3.5.rst:2357 msgid "" -"The following obsolete and previously deprecated APIs and features have been" -" removed:" +"The following obsolete and previously deprecated APIs and features have been " +"removed:" msgstr "" -"The following obsolete and previously deprecated APIs and features have been" -" removed:" +"The following obsolete and previously deprecated APIs and features have been " +"removed:" #: ../../whatsnew/3.5.rst:2360 msgid "" @@ -3098,8 +3071,7 @@ msgstr "" #: ../../whatsnew/3.5.rst:2364 msgid "" "The internal ``Netrc`` class in the :mod:`ftplib` module was deprecated in " -"3.4, and has now been removed. (Contributed by Matt Chaput in " -":issue:`6623`.)" +"3.4, and has now been removed. (Contributed by Matt Chaput in :issue:`6623`.)" msgstr "" #: ../../whatsnew/3.5.rst:2368 @@ -3109,8 +3081,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2370 msgid "" "The JoinableQueue class in the provisional :mod:`asyncio` module was " -"deprecated in 3.4.4 and is now removed. (Contributed by A. Jesse Jiryu Davis" -" in :issue:`23464`.)" +"deprecated in 3.4.4 and is now removed. (Contributed by A. Jesse Jiryu Davis " +"in :issue:`23464`.)" msgstr "" #: ../../whatsnew/3.5.rst:2376 @@ -3148,24 +3120,24 @@ msgstr "Changes in the Python API" #: ../../whatsnew/3.5.rst:2398 msgid "" ":pep:`475`: System calls are now retried when interrupted by a signal " -"instead of raising :exc:`InterruptedError` if the Python signal handler does" -" not raise an exception." +"instead of raising :exc:`InterruptedError` if the Python signal handler does " +"not raise an exception." msgstr "" #: ../../whatsnew/3.5.rst:2402 msgid "" "Before Python 3.5, a :class:`datetime.time` object was considered to be " "false if it represented midnight in UTC. This behavior was considered " -"obscure and error-prone and has been removed in Python 3.5. See " -":issue:`13936` for full details." +"obscure and error-prone and has been removed in Python 3.5. See :issue:" +"`13936` for full details." msgstr "" #: ../../whatsnew/3.5.rst:2407 msgid "" -"The :meth:`ssl.SSLSocket.send()` method now raises either " -":exc:`ssl.SSLWantReadError` or :exc:`ssl.SSLWantWriteError` on a non-" -"blocking socket if the operation would block. Previously, it would return " -"``0``. (Contributed by Nikolaus Rath in :issue:`20951`.)" +"The :meth:`ssl.SSLSocket.send()` method now raises either :exc:`ssl." +"SSLWantReadError` or :exc:`ssl.SSLWantWriteError` on a non-blocking socket " +"if the operation would block. Previously, it would return ``0``. " +"(Contributed by Nikolaus Rath in :issue:`20951`.)" msgstr "" #: ../../whatsnew/3.5.rst:2412 @@ -3173,95 +3145,93 @@ msgid "" "The ``__name__`` attribute of generators is now set from the function name, " "instead of being set from the code name. Use ``gen.gi_code.co_name`` to " "retrieve the code name. Generators also have a new ``__qualname__`` " -"attribute, the qualified name, which is now used for the representation of a" -" generator (``repr(gen)``). (Contributed by Victor Stinner in " -":issue:`21205`.)" +"attribute, the qualified name, which is now used for the representation of a " +"generator (``repr(gen)``). (Contributed by Victor Stinner in :issue:`21205`.)" msgstr "" #: ../../whatsnew/3.5.rst:2419 msgid "" -"The deprecated \"strict\" mode and argument of " -":class:`~html.parser.HTMLParser`, :meth:`HTMLParser.error`, and the " -":exc:`HTMLParserError` exception have been removed. (Contributed by Ezio " -"Melotti in :issue:`15114`.) The *convert_charrefs* argument of " -":class:`~html.parser.HTMLParser` is now ``True`` by default. (Contributed " -"by Berker Peksag in :issue:`21047`.)" +"The deprecated \"strict\" mode and argument of :class:`~html.parser." +"HTMLParser`, :meth:`HTMLParser.error`, and the :exc:`HTMLParserError` " +"exception have been removed. (Contributed by Ezio Melotti in :issue:" +"`15114`.) The *convert_charrefs* argument of :class:`~html.parser." +"HTMLParser` is now ``True`` by default. (Contributed by Berker Peksag in :" +"issue:`21047`.)" msgstr "" #: ../../whatsnew/3.5.rst:2425 msgid "" "Although it is not formally part of the API, it is worth noting for porting " "purposes (ie: fixing tests) that error messages that were previously of the " -"form \"'sometype' does not support the buffer protocol\" are now of the form" -" \"a :term:`bytes-like object` is required, not 'sometype'\". (Contributed " -"by Ezio Melotti in :issue:`16518`.)" +"form \"'sometype' does not support the buffer protocol\" are now of the form " +"\"a :term:`bytes-like object` is required, not 'sometype'\". (Contributed by " +"Ezio Melotti in :issue:`16518`.)" msgstr "" #: ../../whatsnew/3.5.rst:2431 msgid "" -"If the current directory is set to a directory that no longer exists then " -":exc:`FileNotFoundError` will no longer be raised and instead " -":meth:`~importlib.machinery.FileFinder.find_spec` will return ``None`` " -"**without** caching ``None`` in :data:`sys.path_importer_cache`, which is " -"different than the typical case (:issue:`22834`)." +"If the current directory is set to a directory that no longer exists then :" +"exc:`FileNotFoundError` will no longer be raised and instead :meth:" +"`~importlib.machinery.FileFinder.find_spec` will return ``None`` **without** " +"caching ``None`` in :data:`sys.path_importer_cache`, which is different than " +"the typical case (:issue:`22834`)." msgstr "" #: ../../whatsnew/3.5.rst:2437 msgid "" -"HTTP status code and messages from :mod:`http.client` and :mod:`http.server`" -" were refactored into a common :class:`~http.HTTPStatus` enum. The values " +"HTTP status code and messages from :mod:`http.client` and :mod:`http.server` " +"were refactored into a common :class:`~http.HTTPStatus` enum. The values " "in :mod:`http.client` and :mod:`http.server` remain available for backwards " "compatibility. (Contributed by Demian Brecht in :issue:`21793`.)" msgstr "" #: ../../whatsnew/3.5.rst:2442 msgid "" -"When an import loader defines :meth:`importlib.machinery.Loader.exec_module`" -" it is now expected to also define " -":meth:`~importlib.machinery.Loader.create_module` (raises a " -":exc:`DeprecationWarning` now, will be an error in Python 3.6). If the " -"loader inherits from :class:`importlib.abc.Loader` then there is nothing to " -"do, else simply define :meth:`~importlib.machinery.Loader.create_module` to " -"return ``None``. (Contributed by Brett Cannon in :issue:`23014`.)" +"When an import loader defines :meth:`importlib.machinery.Loader.exec_module` " +"it is now expected to also define :meth:`~importlib.machinery.Loader." +"create_module` (raises a :exc:`DeprecationWarning` now, will be an error in " +"Python 3.6). If the loader inherits from :class:`importlib.abc.Loader` then " +"there is nothing to do, else simply define :meth:`~importlib.machinery." +"Loader.create_module` to return ``None``. (Contributed by Brett Cannon in :" +"issue:`23014`.)" msgstr "" #: ../../whatsnew/3.5.rst:2450 msgid "" -"The :func:`re.split` function always ignored empty pattern matches, so the " -"``\"x*\"`` pattern worked the same as ``\"x+\"``, and the ``\"\\b\"`` " -"pattern never worked. Now :func:`re.split` raises a warning if the pattern " -"could match an empty string. For compatibility, use patterns that never " -"match an empty string (e.g. ``\"x+\"`` instead of ``\"x*\"``). Patterns " -"that could only match an empty string (such as ``\"\\b\"``) now raise an " -"error. (Contributed by Serhiy Storchaka in :issue:`22818`.)" +"The :func:`re.split` function always ignored empty pattern matches, so the ``" +"\"x*\"`` pattern worked the same as ``\"x+\"``, and the ``\"\\b\"`` pattern " +"never worked. Now :func:`re.split` raises a warning if the pattern could " +"match an empty string. For compatibility, use patterns that never match an " +"empty string (e.g. ``\"x+\"`` instead of ``\"x*\"``). Patterns that could " +"only match an empty string (such as ``\"\\b\"``) now raise an error. " +"(Contributed by Serhiy Storchaka in :issue:`22818`.)" msgstr "" #: ../../whatsnew/3.5.rst:2458 msgid "" "The :class:`http.cookies.Morsel` dict-like interface has been made self " -"consistent: morsel comparison now takes the " -":attr:`~http.cookies.Morsel.key` and :attr:`~http.cookies.Morsel.value` into" -" account, :meth:`~http.cookies.Morsel.copy` now results in a " -":class:`~http.cookies.Morsel` instance rather than a :class:`dict`, and " -":meth:`~http.cookies.Morsel.update` will now raise an exception if any of " -"the keys in the update dictionary are invalid. In addition, the " -"undocumented *LegalChars* parameter of :func:`~http.cookies.Morsel.set` is " -"deprecated and is now ignored. (Contributed by Demian Brecht in " -":issue:`2211`.)" +"consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel." +"key` and :attr:`~http.cookies.Morsel.value` into account, :meth:`~http." +"cookies.Morsel.copy` now results in a :class:`~http.cookies.Morsel` instance " +"rather than a :class:`dict`, and :meth:`~http.cookies.Morsel.update` will " +"now raise an exception if any of the keys in the update dictionary are " +"invalid. In addition, the undocumented *LegalChars* parameter of :func:" +"`~http.cookies.Morsel.set` is deprecated and is now ignored. (Contributed " +"by Demian Brecht in :issue:`2211`.)" msgstr "" #: ../../whatsnew/3.5.rst:2468 msgid "" ":pep:`488` has removed ``.pyo`` files from Python and introduced the " -"optional ``opt-`` tag in ``.pyc`` file names. The " -":func:`importlib.util.cache_from_source` has gained an *optimization* " -"parameter to help control the ``opt-`` tag. Because of this, the " -"*debug_override* parameter of the function is now deprecated. `.pyo` files " -"are also no longer supported as a file argument to the Python interpreter " -"and thus serve no purpose when distributed on their own (i.e. sourceless " -"code distribution). Due to the fact that the magic number for bytecode has " -"changed in Python 3.5, all old `.pyo` files from previous versions of Python" -" are invalid regardless of this PEP." +"optional ``opt-`` tag in ``.pyc`` file names. The :func:`importlib.util." +"cache_from_source` has gained an *optimization* parameter to help control " +"the ``opt-`` tag. Because of this, the *debug_override* parameter of the " +"function is now deprecated. `.pyo` files are also no longer supported as a " +"file argument to the Python interpreter and thus serve no purpose when " +"distributed on their own (i.e. sourceless code distribution). Due to the " +"fact that the magic number for bytecode has changed in Python 3.5, all old `." +"pyo` files from previous versions of Python are invalid regardless of this " +"PEP." msgstr "" #: ../../whatsnew/3.5.rst:2479 @@ -3274,8 +3244,7 @@ msgstr "" msgid "" "The :func:`ssl.cert_time_to_seconds` function now interprets the input time " "as UTC and not as local time, per :rfc:`5280`. Additionally, the return " -"value is always an :class:`int`. (Contributed by Akira Li in " -":issue:`19940`.)" +"value is always an :class:`int`. (Contributed by Akira Li in :issue:`19940`.)" msgstr "" #: ../../whatsnew/3.5.rst:2486 @@ -3294,9 +3263,9 @@ msgstr "" #: ../../whatsnew/3.5.rst:2494 msgid "" -"The :meth:`str.startswith` and :meth:`str.endswith` methods no longer return" -" ``True`` when finding the empty string and the indexes are completely out " -"of range. (Contributed by Serhiy Storchaka in :issue:`24284`.)" +"The :meth:`str.startswith` and :meth:`str.endswith` methods no longer return " +"``True`` when finding the empty string and the indexes are completely out of " +"range. (Contributed by Serhiy Storchaka in :issue:`24284`.)" msgstr "" #: ../../whatsnew/3.5.rst:2498 @@ -3306,17 +3275,16 @@ msgid "" "duplicated if the inherited documentation is appropriate. To suppress an " "inherited string, an empty string must be specified (or the documentation " "may be filled in). This change affects the output of the :mod:`pydoc` " -"module and the :func:`help` function. (Contributed by Serhiy Storchaka in " -":issue:`15582`.)" +"module and the :func:`help` function. (Contributed by Serhiy Storchaka in :" +"issue:`15582`.)" msgstr "" #: ../../whatsnew/3.5.rst:2506 msgid "" "Nested :func:`functools.partial` calls are now flattened. If you were " -"relying on the previous behavior, you can now either add an attribute to a " -":func:`functools.partial` object or you can create a subclass of " -":func:`functools.partial`. (Contributed by Alexander Belopolsky in " -":issue:`7830`.)" +"relying on the previous behavior, you can now either add an attribute to a :" +"func:`functools.partial` object or you can create a subclass of :func:" +"`functools.partial`. (Contributed by Alexander Belopolsky in :issue:`7830`.)" msgstr "" #: ../../whatsnew/3.5.rst:2513 @@ -3333,31 +3301,31 @@ msgstr "" #: ../../whatsnew/3.5.rst:2520 msgid "" -"The :c:type:`PyMemAllocator` structure was renamed to " -":c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added." +"The :c:type:`PyMemAllocator` structure was renamed to :c:type:" +"`PyMemAllocatorEx` and a new ``calloc`` field was added." msgstr "" #: ../../whatsnew/3.5.rst:2523 msgid "" "Removed non-documented macro :c:macro:`PyObject_REPR` which leaked " -"references. Use format character ``%R`` in " -":c:func:`PyUnicode_FromFormat`-like functions to format the :func:`repr` of " -"the object. (Contributed by Serhiy Storchaka in :issue:`22453`.)" +"references. Use format character ``%R`` in :c:func:`PyUnicode_FromFormat`-" +"like functions to format the :func:`repr` of the object. (Contributed by " +"Serhiy Storchaka in :issue:`22453`.)" msgstr "" #: ../../whatsnew/3.5.rst:2528 msgid "" "Because the lack of the :attr:`__module__` attribute breaks pickling and " -"introspection, a deprecation warning is now raised for builtin types without" -" the :attr:`__module__` attribute. This would be an AttributeError in the " +"introspection, a deprecation warning is now raised for builtin types without " +"the :attr:`__module__` attribute. This would be an AttributeError in the " "future. (Contributed by Serhiy Storchaka in :issue:`20204`.)" msgstr "" #: ../../whatsnew/3.5.rst:2534 msgid "" -"As part of the :pep:`492` implementation, the ``tp_reserved`` slot of " -":c:type:`PyTypeObject` was replaced with a :c:member:`tp_as_async` slot. " -"Refer to :ref:`coro-objects` for new types, structures and functions." +"As part of the :pep:`492` implementation, the ``tp_reserved`` slot of :c:" +"type:`PyTypeObject` was replaced with a :c:member:`tp_as_async` slot. Refer " +"to :ref:`coro-objects` for new types, structures and functions." msgstr "" #: ../../whatsnew/3.5.rst:2541 @@ -3372,8 +3340,8 @@ msgstr "" msgid "" "To simplify cross-compilation, and to ensure that CPython can reliably be " "compiled without requiring an existing version of Python to already be " -"available, the autotools-based build system no longer attempts to implicitly" -" recompile generated files based on file modification times." +"available, the autotools-based build system no longer attempts to implicitly " +"recompile generated files based on file modification times." msgstr "" #: ../../whatsnew/3.5.rst:2551 @@ -3385,8 +3353,8 @@ msgstr "" #: ../../whatsnew/3.5.rst:2555 msgid "" -"More selective regeneration targets are also defined - see " -":source:`Makefile.pre.in` for details." +"More selective regeneration targets are also defined - see :source:`Makefile." +"pre.in` for details." msgstr "" #: ../../whatsnew/3.5.rst:2558 ../../whatsnew/3.5.rst:2571 diff --git a/whatsnew/3.6.po b/whatsnew/3.6.po index 3374bf263..9ce308b41 100644 --- a/whatsnew/3.6.po +++ b/whatsnew/3.6.po @@ -1,23 +1,26 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Marco Rougeth , 2019 # Claudio Rogerio Carvalho Filho , 2019 # Victor Matheus Castro , 2019 -# +# Vinicius Gubiani Ferreira , 2019 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-18 10:27+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" -"Last-Translator: Victor Matheus Castro , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -39,14 +42,12 @@ msgstr "Elvis Pranskevichus , Yury Selivanov " #: ../../whatsnew/3.6.rst:47 msgid "" "This article explains the new features in Python 3.6, compared to 3.5. " -"Python 3.6 was released on December 23, 2016.  See the `changelog " -"`_ for a full list of " -"changes." +"Python 3.6 was released on December 23, 2016.  See the `changelog `_ for a full list of changes." msgstr "" "This article explains the new features in Python 3.6, compared to 3.5. " -"Python 3.6 was released on December 23, 2016.  See the `changelog " -"`_ for a full list of " -"changes." +"Python 3.6 was released on December 23, 2016.  See the `changelog `_ for a full list of changes." #: ../../whatsnew/3.6.rst:54 msgid ":pep:`494` - Python 3.6 Release Schedule" @@ -98,19 +99,19 @@ msgstr "Melhorias na implementação do CPython:" #: ../../whatsnew/3.6.rst:80 msgid "" -"The :ref:`dict ` type has been reimplemented to use a " -":ref:`more compact representation ` based on `a " -"proposal by Raymond Hettinger `_ and similar to the `PyPy dict " -"implementation`_. This resulted in dictionaries using 20% to 25% less " -"memory when compared to Python 3.5." +"The :ref:`dict ` type has been reimplemented to use a :ref:" +"`more compact representation ` based on `a proposal " +"by Raymond Hettinger `_ and similar to the `PyPy dict implementation`_. " +"This resulted in dictionaries using 20% to 25% less memory when compared to " +"Python 3.5." msgstr "" -"The :ref:`dict ` type has been reimplemented to use a " -":ref:`more compact representation ` based on `a " -"proposal by Raymond Hettinger `_ and similar to the `PyPy dict " -"implementation`_. This resulted in dictionaries using 20% to 25% less " -"memory when compared to Python 3.5." +"The :ref:`dict ` type has been reimplemented to use a :ref:" +"`more compact representation ` based on `a proposal " +"by Raymond Hettinger `_ and similar to the `PyPy dict implementation`_. " +"This resulted in dictionaries using 20% to 25% less memory when compared to " +"Python 3.5." #: ../../whatsnew/3.6.rst:87 msgid "" @@ -122,11 +123,11 @@ msgstr "" #: ../../whatsnew/3.6.rst:90 msgid "" -"The class attribute definition order is :ref:`now preserved " -"`." +"The class attribute definition order is :ref:`now preserved `." msgstr "" -"The class attribute definition order is :ref:`now preserved " -"`." +"The class attribute definition order is :ref:`now preserved `." #: ../../whatsnew/3.6.rst:93 msgid "" @@ -147,12 +148,10 @@ msgstr "" #: ../../whatsnew/3.6.rst:100 msgid "" "The new :ref:`PYTHONMALLOC ` environment variable " -"can now be used to debug the interpreter memory allocation and access " -"errors." +"can now be used to debug the interpreter memory allocation and access errors." msgstr "" "The new :ref:`PYTHONMALLOC ` environment variable " -"can now be used to debug the interpreter memory allocation and access " -"errors." +"can now be used to debug the interpreter memory allocation and access errors." #: ../../whatsnew/3.6.rst:105 msgid "Significant improvements in the standard library:" @@ -174,13 +173,13 @@ msgstr "" msgid "" "A new :ref:`file system path protocol ` has been " "implemented to support :term:`path-like objects `. All " -"standard library functions operating on paths have been updated to work with" -" the new protocol." +"standard library functions operating on paths have been updated to work with " +"the new protocol." msgstr "" "A new :ref:`file system path protocol ` has been " "implemented to support :term:`path-like objects `. All " -"standard library functions operating on paths have been updated to work with" -" the new protocol." +"standard library functions operating on paths have been updated to work with " +"the new protocol." #: ../../whatsnew/3.6.rst:117 msgid "" @@ -192,11 +191,11 @@ msgstr "" #: ../../whatsnew/3.6.rst:120 msgid "" -"The :mod:`typing` module received a number of :ref:`improvements " -"`." +"The :mod:`typing` module received a number of :ref:`improvements `." msgstr "" -"The :mod:`typing` module received a number of :ref:`improvements " -"`." +"The :mod:`typing` module received a number of :ref:`improvements `." #: ../../whatsnew/3.6.rst:123 msgid "" @@ -217,12 +216,12 @@ msgstr "Melhorias de Segurança:" #: ../../whatsnew/3.6.rst:132 msgid "" "The new :mod:`secrets` module has been added to simplify the generation of " -"cryptographically strong pseudo-random numbers suitable for managing secrets" -" such as account authentication, tokens, and similar." +"cryptographically strong pseudo-random numbers suitable for managing secrets " +"such as account authentication, tokens, and similar." msgstr "" "The new :mod:`secrets` module has been added to simplify the generation of " -"cryptographically strong pseudo-random numbers suitable for managing secrets" -" such as account authentication, tokens, and similar." +"cryptographically strong pseudo-random numbers suitable for managing secrets " +"such as account authentication, tokens, and similar." #: ../../whatsnew/3.6.rst:136 ../../whatsnew/3.6.rst:1283 msgid "" @@ -266,25 +265,25 @@ msgstr "" #: ../../whatsnew/3.6.rst:154 msgid "" -"The ``py.exe`` launcher, when used interactively, no longer prefers Python 2" -" over Python 3 when the user doesn't specify a version (via command line " +"The ``py.exe`` launcher, when used interactively, no longer prefers Python 2 " +"over Python 3 when the user doesn't specify a version (via command line " "arguments or a config file). Handling of shebang lines remains unchanged - " "\"python\" refers to Python 2 in that case." msgstr "" -"The ``py.exe`` launcher, when used interactively, no longer prefers Python 2" -" over Python 3 when the user doesn't specify a version (via command line " +"The ``py.exe`` launcher, when used interactively, no longer prefers Python 2 " +"over Python 3 when the user doesn't specify a version (via command line " "arguments or a config file). Handling of shebang lines remains unchanged - " "\"python\" refers to Python 2 in that case." #: ../../whatsnew/3.6.rst:159 msgid "" "``python.exe`` and ``pythonw.exe`` have been marked as long-path aware, " -"which means that the 260 character path limit may no longer apply. See " -":ref:`removing the MAX_PATH limitation ` for details." +"which means that the 260 character path limit may no longer apply. See :ref:" +"`removing the MAX_PATH limitation ` for details." msgstr "" "``python.exe`` and ``pythonw.exe`` have been marked as long-path aware, " -"which means that the 260 character path limit may no longer apply. See " -":ref:`removing the MAX_PATH limitation ` for details." +"which means that the 260 character path limit may no longer apply. See :ref:" +"`removing the MAX_PATH limitation ` for details." #: ../../whatsnew/3.6.rst:163 msgid "" @@ -298,13 +297,13 @@ msgstr "" #: ../../whatsnew/3.6.rst:167 msgid "" -"A ``python36.zip`` file now works as a landmark to infer " -":envvar:`PYTHONHOME`. See :ref:`the documentation ` for " -"more information." +"A ``python36.zip`` file now works as a landmark to infer :envvar:" +"`PYTHONHOME`. See :ref:`the documentation ` for more " +"information." msgstr "" -"A ``python36.zip`` file now works as a landmark to infer " -":envvar:`PYTHONHOME`. See :ref:`the documentation ` for " -"more information." +"A ``python36.zip`` file now works as a landmark to infer :envvar:" +"`PYTHONHOME`. See :ref:`the documentation ` for more " +"information." #: ../../whatsnew/3.6.rst:176 msgid "New Features" @@ -316,25 +315,25 @@ msgstr "PEP 498: Formatted string literals" #: ../../whatsnew/3.6.rst:183 msgid "" -":pep:`498` introduces a new kind of string literals: *f-strings*, or " -":ref:`formatted string literals `." +":pep:`498` introduces a new kind of string literals: *f-strings*, or :ref:" +"`formatted string literals `." msgstr "" -":pep:`498` introduces a new kind of string literals: *f-strings*, or " -":ref:`formatted string literals `." +":pep:`498` introduces a new kind of string literals: *f-strings*, or :ref:" +"`formatted string literals `." #: ../../whatsnew/3.6.rst:186 msgid "" "Formatted string literals are prefixed with ``'f'`` and are similar to the " "format strings accepted by :meth:`str.format`. They contain replacement " "fields surrounded by curly braces. The replacement fields are expressions, " -"which are evaluated at run time, and then formatted using the :func:`format`" -" protocol::" +"which are evaluated at run time, and then formatted using the :func:`format` " +"protocol::" msgstr "" "Formatted string literals are prefixed with ``'f'`` and are similar to the " "format strings accepted by :meth:`str.format`. They contain replacement " "fields surrounded by curly braces. The replacement fields are expressions, " -"which are evaluated at run time, and then formatted using the :func:`format`" -" protocol::" +"which are evaluated at run time, and then formatted using the :func:`format` " +"protocol::" #: ../../whatsnew/3.6.rst:204 msgid ":pep:`498` -- Literal String Interpolation." @@ -355,32 +354,32 @@ msgstr "PEP 526: Syntax for variable annotations" #: ../../whatsnew/3.6.rst:214 msgid "" ":pep:`484` introduced the standard for type annotations of function " -"parameters, a.k.a. type hints. This PEP adds syntax to Python for annotating" -" the types of variables including class variables and instance variables::" +"parameters, a.k.a. type hints. This PEP adds syntax to Python for annotating " +"the types of variables including class variables and instance variables::" msgstr "" ":pep:`484` introduced the standard for type annotations of function " -"parameters, a.k.a. type hints. This PEP adds syntax to Python for annotating" -" the types of variables including class variables and instance variables::" +"parameters, a.k.a. type hints. This PEP adds syntax to Python for annotating " +"the types of variables including class variables and instance variables::" #: ../../whatsnew/3.6.rst:225 msgid "" -"Just as for function annotations, the Python interpreter does not attach any" -" particular meaning to variable annotations and only stores them in the " +"Just as for function annotations, the Python interpreter does not attach any " +"particular meaning to variable annotations and only stores them in the " "``__annotations__`` attribute of a class or module." msgstr "" -"Just as for function annotations, the Python interpreter does not attach any" -" particular meaning to variable annotations and only stores them in the " +"Just as for function annotations, the Python interpreter does not attach any " +"particular meaning to variable annotations and only stores them in the " "``__annotations__`` attribute of a class or module." #: ../../whatsnew/3.6.rst:229 msgid "" -"In contrast to variable declarations in statically typed languages, the goal" -" of annotation syntax is to provide an easy way to specify structured type " +"In contrast to variable declarations in statically typed languages, the goal " +"of annotation syntax is to provide an easy way to specify structured type " "metadata for third party tools and libraries via the abstract syntax tree " "and the ``__annotations__`` attribute." msgstr "" -"In contrast to variable declarations in statically typed languages, the goal" -" of annotation syntax is to provide an easy way to specify structured type " +"In contrast to variable declarations in statically typed languages, the goal " +"of annotation syntax is to provide an easy way to specify structured type " "metadata for third party tools and libraries via the abstract syntax tree " "and the ``__annotations__`` attribute." @@ -390,16 +389,16 @@ msgstr ":pep:`526` -- Syntax for variable annotations." #: ../../whatsnew/3.6.rst:237 msgid "" -"PEP written by Ryan Gonzalez, Philip House, Ivan Levkivskyi, Lisa Roach, and" -" Guido van Rossum. Implemented by Ivan Levkivskyi." +"PEP written by Ryan Gonzalez, Philip House, Ivan Levkivskyi, Lisa Roach, and " +"Guido van Rossum. Implemented by Ivan Levkivskyi." msgstr "" -"PEP written by Ryan Gonzalez, Philip House, Ivan Levkivskyi, Lisa Roach, and" -" Guido van Rossum. Implemented by Ivan Levkivskyi." +"PEP written by Ryan Gonzalez, Philip House, Ivan Levkivskyi, Lisa Roach, and " +"Guido van Rossum. Implemented by Ivan Levkivskyi." #: ../../whatsnew/3.6.rst:240 msgid "" -"Tools that use or will use the new syntax: `mypy `_, `pytype `_, PyCharm, etc." +"Tools that use or will use the new syntax: `mypy `_, `pytype `_, PyCharm, etc." msgstr "" #: ../../whatsnew/3.6.rst:248 @@ -416,25 +415,25 @@ msgstr "" #: ../../whatsnew/3.6.rst:258 msgid "" -"Single underscores are allowed between digits and after any base specifier." -" Leading, trailing, or multiple underscores in a row are not allowed." +"Single underscores are allowed between digits and after any base specifier. " +"Leading, trailing, or multiple underscores in a row are not allowed." msgstr "" -"Single underscores are allowed between digits and after any base specifier." -" Leading, trailing, or multiple underscores in a row are not allowed." +"Single underscores are allowed between digits and after any base specifier. " +"Leading, trailing, or multiple underscores in a row are not allowed." #: ../../whatsnew/3.6.rst:262 msgid "" "The :ref:`string formatting ` language also now has support for " "the ``'_'`` option to signal the use of an underscore for a thousands " -"separator for floating point presentation types and for integer presentation" -" type ``'d'``. For integer presentation types ``'b'``, ``'o'``, ``'x'``, " -"and ``'X'``, underscores will be inserted every 4 digits::" +"separator for floating point presentation types and for integer presentation " +"type ``'d'``. For integer presentation types ``'b'``, ``'o'``, ``'x'``, and " +"``'X'``, underscores will be inserted every 4 digits::" msgstr "" "The :ref:`string formatting ` language also now has support for " "the ``'_'`` option to signal the use of an underscore for a thousands " -"separator for floating point presentation types and for integer presentation" -" type ``'d'``. For integer presentation types ``'b'``, ``'o'``, ``'x'``, " -"and ``'X'``, underscores will be inserted every 4 digits::" +"separator for floating point presentation types and for integer presentation " +"type ``'d'``. For integer presentation types ``'b'``, ``'o'``, ``'x'``, and " +"``'X'``, underscores will be inserted every 4 digits::" #: ../../whatsnew/3.6.rst:276 msgid ":pep:`515` -- Underscores in Numeric Literals" @@ -452,14 +451,14 @@ msgstr "PEP 525: Asynchronous Generators" msgid "" ":pep:`492` introduced support for native coroutines and ``async`` / " "``await`` syntax to Python 3.5. A notable limitation of the Python 3.5 " -"implementation is that it was not possible to use ``await`` and ``yield`` in" -" the same function body. In Python 3.6 this restriction has been lifted, " +"implementation is that it was not possible to use ``await`` and ``yield`` in " +"the same function body. In Python 3.6 this restriction has been lifted, " "making it possible to define *asynchronous generators*::" msgstr "" ":pep:`492` introduced support for native coroutines and ``async`` / " "``await`` syntax to Python 3.5. A notable limitation of the Python 3.5 " -"implementation is that it was not possible to use ``await`` and ``yield`` in" -" the same function body. In Python 3.6 this restriction has been lifted, " +"implementation is that it was not possible to use ``await`` and ``yield`` in " +"the same function body. In Python 3.6 this restriction has been lifted, " "making it possible to define *asynchronous generators*::" #: ../../whatsnew/3.6.rst:297 @@ -504,18 +503,18 @@ msgstr "PEP 487: Simpler customization of class creation" #: ../../whatsnew/3.6.rst:331 msgid "" -"It is now possible to customize subclass creation without using a metaclass." -" The new ``__init_subclass__`` classmethod will be called on the base class " +"It is now possible to customize subclass creation without using a metaclass. " +"The new ``__init_subclass__`` classmethod will be called on the base class " "whenever a new subclass is created::" msgstr "" -"It is now possible to customize subclass creation without using a metaclass." -" The new ``__init_subclass__`` classmethod will be called on the base class " +"It is now possible to customize subclass creation without using a metaclass. " +"The new ``__init_subclass__`` classmethod will be called on the base class " "whenever a new subclass is created::" #: ../../whatsnew/3.6.rst:348 msgid "" -"In order to allow zero-argument :func:`super` calls to work correctly from " -":meth:`~object.__init_subclass__` implementations, custom metaclasses must " +"In order to allow zero-argument :func:`super` calls to work correctly from :" +"meth:`~object.__init_subclass__` implementations, custom metaclasses must " "ensure that the new ``__classcell__`` namespace entry is propagated to " "``type.__new__`` (as described in :ref:`class-object-creation`)." msgstr "" @@ -538,9 +537,9 @@ msgstr "" #: ../../whatsnew/3.6.rst:366 msgid "" -":pep:`487` extends the descriptor protocol to include the new optional " -":meth:`~object.__set_name__` method. Whenever a new class is defined, the " -"new method will be called on all descriptors included in the definition, " +":pep:`487` extends the descriptor protocol to include the new optional :meth:" +"`~object.__set_name__` method. Whenever a new class is defined, the new " +"method will be called on all descriptors included in the definition, " "providing them with a reference to the class being defined and the name " "given to the descriptor within the class namespace. In other words, " "instances of descriptors can now know the attribute name of the descriptor " @@ -557,13 +556,13 @@ msgstr "" #: ../../whatsnew/3.6.rst:404 msgid "" -"File system paths have historically been represented as :class:`str` or " -":class:`bytes` objects. This has led to people who write code which operate " +"File system paths have historically been represented as :class:`str` or :" +"class:`bytes` objects. This has led to people who write code which operate " "on file system paths to assume that such objects are only one of those two " -"types (an :class:`int` representing a file descriptor does not count as that" -" is not a file path). Unfortunately that assumption prevents alternative " -"object representations of file system paths like :mod:`pathlib` from working" -" with pre-existing code, including Python's standard library." +"types (an :class:`int` representing a file descriptor does not count as that " +"is not a file path). Unfortunately that assumption prevents alternative " +"object representations of file system paths like :mod:`pathlib` from working " +"with pre-existing code, including Python's standard library." msgstr "" #: ../../whatsnew/3.6.rst:413 @@ -573,8 +572,8 @@ msgid "" "method, an object signals that it represents a path. An object can then " "provide a low-level representation of a file system path as a :class:`str` " "or :class:`bytes` object. This means an object is considered :term:`path-" -"like ` if it implements :class:`os.PathLike` or is a " -":class:`str` or :class:`bytes` object which represents a file system path. " +"like ` if it implements :class:`os.PathLike` or is a :" +"class:`str` or :class:`bytes` object which represents a file system path. " "Code can use :func:`os.fspath`, :func:`os.fsdecode`, or :func:`os.fsencode` " "to explicitly get a :class:`str` and/or :class:`bytes` representation of a " "path-like object." @@ -582,28 +581,26 @@ msgstr "" #: ../../whatsnew/3.6.rst:426 msgid "" -"The built-in :func:`open` function has been updated to accept " -":class:`os.PathLike` objects, as have all relevant functions in the " -":mod:`os` and :mod:`os.path` modules, and most other functions and classes " -"in the standard library. The :class:`os.DirEntry` class and relevant " -"classes in :mod:`pathlib` have also been updated to implement " -":class:`os.PathLike`." +"The built-in :func:`open` function has been updated to accept :class:`os." +"PathLike` objects, as have all relevant functions in the :mod:`os` and :mod:" +"`os.path` modules, and most other functions and classes in the standard " +"library. The :class:`os.DirEntry` class and relevant classes in :mod:" +"`pathlib` have also been updated to implement :class:`os.PathLike`." msgstr "" #: ../../whatsnew/3.6.rst:433 msgid "" "The hope is that updating the fundamental functions for operating on file " -"system paths will lead to third-party code to implicitly support all :term" -":`path-like objects ` without any code changes, or at " -"least very minimal ones (e.g. calling :func:`os.fspath` at the beginning of " -"code before operating on a path-like object)." +"system paths will lead to third-party code to implicitly support all :term:" +"`path-like objects ` without any code changes, or at least " +"very minimal ones (e.g. calling :func:`os.fspath` at the beginning of code " +"before operating on a path-like object)." msgstr "" #: ../../whatsnew/3.6.rst:440 msgid "" -"Here are some examples of how the new interface allows for " -":class:`pathlib.Path` to be used more easily and transparently with pre-" -"existing code::" +"Here are some examples of how the new interface allows for :class:`pathlib." +"Path` to be used more easily and transparently with pre-existing code::" msgstr "" #: ../../whatsnew/3.6.rst:457 @@ -626,29 +623,27 @@ msgstr "" #: ../../whatsnew/3.6.rst:470 msgid "" -"In most world locations, there have been and will be times when local clocks" -" are moved back. In those times, intervals are introduced in which local " +"In most world locations, there have been and will be times when local clocks " +"are moved back. In those times, intervals are introduced in which local " "clocks show the same time twice in the same day. In these situations, the " "information displayed on a local clock (or stored in a Python datetime " "instance) is insufficient to identify a particular moment in time." msgstr "" -"In most world locations, there have been and will be times when local clocks" -" are moved back. In those times, intervals are introduced in which local " +"In most world locations, there have been and will be times when local clocks " +"are moved back. In those times, intervals are introduced in which local " "clocks show the same time twice in the same day. In these situations, the " "information displayed on a local clock (or stored in a Python datetime " "instance) is insufficient to identify a particular moment in time." #: ../../whatsnew/3.6.rst:476 msgid "" -":pep:`495` adds the new *fold* attribute to instances of " -":class:`datetime.datetime` and :class:`datetime.time` classes to " -"differentiate between two moments in time for which local times are the " -"same::" +":pep:`495` adds the new *fold* attribute to instances of :class:`datetime." +"datetime` and :class:`datetime.time` classes to differentiate between two " +"moments in time for which local times are the same::" msgstr "" -":pep:`495` adds the new *fold* attribute to instances of " -":class:`datetime.datetime` and :class:`datetime.time` classes to " -"differentiate between two moments in time for which local times are the " -"same::" +":pep:`495` adds the new *fold* attribute to instances of :class:`datetime." +"datetime` and :class:`datetime.time` classes to differentiate between two " +"moments in time for which local times are the same::" #: ../../whatsnew/3.6.rst:491 msgid "" @@ -690,27 +685,27 @@ msgstr "" msgid "" "Prior to Python 3.6, data loss could result when using bytes paths on " "Windows. With this change, using bytes to represent paths is now supported " -"on Windows, provided those bytes are encoded with the encoding returned by " -":func:`sys.getfilesystemencoding()`, which now defaults to ``'utf-8'``." +"on Windows, provided those bytes are encoded with the encoding returned by :" +"func:`sys.getfilesystemencoding()`, which now defaults to ``'utf-8'``." msgstr "" "Prior to Python 3.6, data loss could result when using bytes paths on " "Windows. With this change, using bytes to represent paths is now supported " -"on Windows, provided those bytes are encoded with the encoding returned by " -":func:`sys.getfilesystemencoding()`, which now defaults to ``'utf-8'``." +"on Windows, provided those bytes are encoded with the encoding returned by :" +"func:`sys.getfilesystemencoding()`, which now defaults to ``'utf-8'``." #: ../../whatsnew/3.6.rst:516 msgid "" -"Applications that do not use str to represent paths should use " -":func:`os.fsencode()` and :func:`os.fsdecode()` to ensure their bytes are " -"correctly encoded. To revert to the previous behaviour, set " -":envvar:`PYTHONLEGACYWINDOWSFSENCODING` or call " -":func:`sys._enablelegacywindowsfsencoding`." +"Applications that do not use str to represent paths should use :func:`os." +"fsencode()` and :func:`os.fsdecode()` to ensure their bytes are correctly " +"encoded. To revert to the previous behaviour, set :envvar:" +"`PYTHONLEGACYWINDOWSFSENCODING` or call :func:`sys." +"_enablelegacywindowsfsencoding`." msgstr "" -"Applications that do not use str to represent paths should use " -":func:`os.fsencode()` and :func:`os.fsdecode()` to ensure their bytes are " -"correctly encoded. To revert to the previous behaviour, set " -":envvar:`PYTHONLEGACYWINDOWSFSENCODING` or call " -":func:`sys._enablelegacywindowsfsencoding`." +"Applications that do not use str to represent paths should use :func:`os." +"fsencode()` and :func:`os.fsdecode()` to ensure their bytes are correctly " +"encoded. To revert to the previous behaviour, set :envvar:" +"`PYTHONLEGACYWINDOWSFSENCODING` or call :func:`sys." +"_enablelegacywindowsfsencoding`." #: ../../whatsnew/3.6.rst:522 msgid "" @@ -727,12 +722,12 @@ msgstr "PEP 528: Change Windows console encoding to UTF-8" #: ../../whatsnew/3.6.rst:531 msgid "" "The default console on Windows will now accept all Unicode characters and " -"provide correctly read str objects to Python code. ``sys.stdin``, " -"``sys.stdout`` and ``sys.stderr`` now default to utf-8 encoding." +"provide correctly read str objects to Python code. ``sys.stdin``, ``sys." +"stdout`` and ``sys.stderr`` now default to utf-8 encoding." msgstr "" "The default console on Windows will now accept all Unicode characters and " -"provide correctly read str objects to Python code. ``sys.stdin``, " -"``sys.stdout`` and ``sys.stderr`` now default to utf-8 encoding." +"provide correctly read str objects to Python code. ``sys.stdin``, ``sys." +"stdout`` and ``sys.stderr`` now default to utf-8 encoding." #: ../../whatsnew/3.6.rst:535 msgid "" @@ -765,13 +760,11 @@ msgstr "" #: ../../whatsnew/3.6.rst:554 msgid "" -"Also, the effective default class *execution* namespace (returned from " -":ref:`type.__prepare__() `) is now an insertion-order-preserving " -"mapping." +"Also, the effective default class *execution* namespace (returned from :ref:" +"`type.__prepare__() `) is now an insertion-order-preserving mapping." msgstr "" -"Also, the effective default class *execution* namespace (returned from " -":ref:`type.__prepare__() `) is now an insertion-order-preserving " -"mapping." +"Also, the effective default class *execution* namespace (returned from :ref:" +"`type.__prepare__() `) is now an insertion-order-preserving mapping." #: ../../whatsnew/3.6.rst:560 msgid ":pep:`520` -- Preserving Class Attribute Definition Order" @@ -804,18 +797,18 @@ msgstr "New :ref:`dict ` implementation" #: ../../whatsnew/3.6.rst:583 msgid "" "The :ref:`dict ` type now uses a \"compact\" representation " -"based on `a proposal by Raymond Hettinger `_ which was `first implemented by " -"PyPy `_. The memory usage of the new :func:`dict` is between 20% " -"and 25% smaller compared to Python 3.5." +"based on `a proposal by Raymond Hettinger `_ which was `first implemented by PyPy " +"`_. The memory usage of the new :func:`dict` is between 20% and 25% " +"smaller compared to Python 3.5." msgstr "" "The :ref:`dict ` type now uses a \"compact\" representation " -"based on `a proposal by Raymond Hettinger `_ which was `first implemented by " -"PyPy `_. The memory usage of the new :func:`dict` is between 20% " -"and 25% smaller compared to Python 3.5." +"based on `a proposal by Raymond Hettinger `_ which was `first implemented by PyPy " +"`_. The memory usage of the new :func:`dict` is between 20% and 25% " +"smaller compared to Python 3.5." #: ../../whatsnew/3.6.rst:591 msgid "" @@ -824,28 +817,28 @@ msgid "" "future, but it is desired to have this new dict implementation in the " "language for a few releases before changing the language spec to mandate " "order-preserving semantics for all current and future Python " -"implementations; this also helps preserve backwards-compatibility with older" -" versions of the language where random iteration order is still in effect, " -"e.g. Python 3.5)." +"implementations; this also helps preserve backwards-compatibility with older " +"versions of the language where random iteration order is still in effect, e." +"g. Python 3.5)." msgstr "" "The order-preserving aspect of this new implementation is considered an " "implementation detail and should not be relied upon (this may change in the " "future, but it is desired to have this new dict implementation in the " "language for a few releases before changing the language spec to mandate " "order-preserving semantics for all current and future Python " -"implementations; this also helps preserve backwards-compatibility with older" -" versions of the language where random iteration order is still in effect, " -"e.g. Python 3.5)." +"implementations; this also helps preserve backwards-compatibility with older " +"versions of the language where random iteration order is still in effect, e." +"g. Python 3.5)." #: ../../whatsnew/3.6.rst:600 msgid "" -"(Contributed by INADA Naoki in :issue:`27350`. Idea `originally suggested by" -" Raymond Hettinger `_.)" +"(Contributed by INADA Naoki in :issue:`27350`. Idea `originally suggested by " +"Raymond Hettinger `_.)" msgstr "" -"(Contributed by INADA Naoki in :issue:`27350`. Idea `originally suggested by" -" Raymond Hettinger `_.)" +"(Contributed by INADA Naoki in :issue:`27350`. Idea `originally suggested by " +"Raymond Hettinger `_.)" #: ../../whatsnew/3.6.rst:608 msgid "PEP 523: Adding a frame evaluation API to CPython" @@ -881,15 +874,15 @@ msgstr "" #: ../../whatsnew/3.6.rst:623 msgid "" -"This API is not part of the limited C API and is marked as private to signal" -" that usage of this API is expected to be limited and only applicable to " -"very select, low-level use-cases. Semantics of the API will change with " -"Python as necessary." +"This API is not part of the limited C API and is marked as private to signal " +"that usage of this API is expected to be limited and only applicable to very " +"select, low-level use-cases. Semantics of the API will change with Python as " +"necessary." msgstr "" -"This API is not part of the limited C API and is marked as private to signal" -" that usage of this API is expected to be limited and only applicable to " -"very select, low-level use-cases. Semantics of the API will change with " -"Python as necessary." +"This API is not part of the limited C API and is marked as private to signal " +"that usage of this API is expected to be limited and only applicable to very " +"select, low-level use-cases. Semantics of the API will change with Python as " +"necessary." #: ../../whatsnew/3.6.rst:630 msgid ":pep:`523` -- Adding a frame evaluation API to CPython" @@ -931,13 +924,11 @@ msgstr "Freed memory is filled with the byte ``0xDB``" #: ../../whatsnew/3.6.rst:647 msgid "" -"Detect violations of the Python memory allocator API. For example, " -":c:func:`PyObject_Free` called on a memory block allocated by " -":c:func:`PyMem_Malloc`." +"Detect violations of the Python memory allocator API. For example, :c:func:" +"`PyObject_Free` called on a memory block allocated by :c:func:`PyMem_Malloc`." msgstr "" -"Detect violations of the Python memory allocator API. For example, " -":c:func:`PyObject_Free` called on a memory block allocated by " -":c:func:`PyMem_Malloc`." +"Detect violations of the Python memory allocator API. For example, :c:func:" +"`PyObject_Free` called on a memory block allocated by :c:func:`PyMem_Malloc`." #: ../../whatsnew/3.6.rst:650 msgid "Detect writes before the start of a buffer (buffer underflows)" @@ -950,12 +941,12 @@ msgstr "Detect writes after the end of a buffer (buffer overflows)" #: ../../whatsnew/3.6.rst:652 msgid "" "Check that the :term:`GIL ` is held when allocator " -"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and " -":c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called." +"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and :" +"c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called." msgstr "" "Check that the :term:`GIL ` is held when allocator " -"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and " -":c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called." +"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and :" +"c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called." #: ../../whatsnew/3.6.rst:656 msgid "Checking if the GIL is held is also a new feature of Python 3.6." @@ -971,25 +962,23 @@ msgstr "" #: ../../whatsnew/3.6.rst:661 msgid "" -"It is now also possible to force the usage of the :c:func:`malloc` allocator" -" of the C library for all Python memory allocations using " +"It is now also possible to force the usage of the :c:func:`malloc` allocator " +"of the C library for all Python memory allocations using " "``PYTHONMALLOC=malloc``. This is helpful when using external memory " "debuggers like Valgrind on a Python compiled in release mode." msgstr "" -"It is now also possible to force the usage of the :c:func:`malloc` allocator" -" of the C library for all Python memory allocations using " +"It is now also possible to force the usage of the :c:func:`malloc` allocator " +"of the C library for all Python memory allocations using " "``PYTHONMALLOC=malloc``. This is helpful when using external memory " "debuggers like Valgrind on a Python compiled in release mode." #: ../../whatsnew/3.6.rst:666 msgid "" -"On error, the debug hooks on Python memory allocators now use the " -":mod:`tracemalloc` module to get the traceback where a memory block was " -"allocated." +"On error, the debug hooks on Python memory allocators now use the :mod:" +"`tracemalloc` module to get the traceback where a memory block was allocated." msgstr "" -"On error, the debug hooks on Python memory allocators now use the " -":mod:`tracemalloc` module to get the traceback where a memory block was " -"allocated." +"On error, the debug hooks on Python memory allocators now use the :mod:" +"`tracemalloc` module to get the traceback where a memory block was allocated." #: ../../whatsnew/3.6.rst:670 msgid "" @@ -1043,11 +1032,11 @@ msgstr "More details in :ref:`instrumentation`." #: ../../whatsnew/3.6.rst:730 msgid "" -"The current implementation is tested on Linux and macOS. Additional markers" -" may be added in the future." +"The current implementation is tested on Linux and macOS. Additional markers " +"may be added in the future." msgstr "" -"The current implementation is tested on Linux and macOS. Additional markers" -" may be added in the future." +"The current implementation is tested on Linux and macOS. Additional markers " +"may be added in the future." #: ../../whatsnew/3.6.rst:733 msgid "" @@ -1068,45 +1057,43 @@ msgstr "Some smaller changes made to the core Python language are:" #: ../../whatsnew/3.6.rst:742 msgid "" "A ``global`` or ``nonlocal`` statement must now textually appear before the " -"first use of the affected name in the same scope. Previously this was a " -":exc:`SyntaxWarning`." +"first use of the affected name in the same scope. Previously this was a :exc:" +"`SyntaxWarning`." msgstr "" #: ../../whatsnew/3.6.rst:746 msgid "" -"It is now possible to set a :ref:`special method ` to ``None``" -" to indicate that the corresponding operation is not available. For example," -" if a class sets :meth:`__iter__` to ``None``, the class is not iterable. " +"It is now possible to set a :ref:`special method ` to ``None`` " +"to indicate that the corresponding operation is not available. For example, " +"if a class sets :meth:`__iter__` to ``None``, the class is not iterable. " "(Contributed by Andrew Barnert and Ivan Levkivskyi in :issue:`25958`.)" msgstr "" -"It is now possible to set a :ref:`special method ` to ``None``" -" to indicate that the corresponding operation is not available. For example," -" if a class sets :meth:`__iter__` to ``None``, the class is not iterable. " +"It is now possible to set a :ref:`special method ` to ``None`` " +"to indicate that the corresponding operation is not available. For example, " +"if a class sets :meth:`__iter__` to ``None``, the class is not iterable. " "(Contributed by Andrew Barnert and Ivan Levkivskyi in :issue:`25958`.)" #: ../../whatsnew/3.6.rst:752 msgid "" -"Long sequences of repeated traceback lines are now abbreviated as " -"``\"[Previous line repeated {count} more times]\"`` (see " -":ref:`whatsnew36-traceback` for an example). (Contributed by Emanuel Barry " -"in :issue:`26823`.)" +"Long sequences of repeated traceback lines are now abbreviated as ``" +"\"[Previous line repeated {count} more times]\"`` (see :ref:`whatsnew36-" +"traceback` for an example). (Contributed by Emanuel Barry in :issue:`26823`.)" msgstr "" -"Long sequences of repeated traceback lines are now abbreviated as " -"``\"[Previous line repeated {count} more times]\"`` (see " -":ref:`whatsnew36-traceback` for an example). (Contributed by Emanuel Barry " -"in :issue:`26823`.)" +"Long sequences of repeated traceback lines are now abbreviated as ``" +"\"[Previous line repeated {count} more times]\"`` (see :ref:`whatsnew36-" +"traceback` for an example). (Contributed by Emanuel Barry in :issue:`26823`.)" #: ../../whatsnew/3.6.rst:757 msgid "" -"Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of " -":exc:`ImportError`) when it cannot find a module. Code that currently " -"checks for ImportError (in try-except) will still work. (Contributed by Eric" -" Snow in :issue:`15767`.)" +"Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of :" +"exc:`ImportError`) when it cannot find a module. Code that currently checks " +"for ImportError (in try-except) will still work. (Contributed by Eric Snow " +"in :issue:`15767`.)" msgstr "" -"Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of " -":exc:`ImportError`) when it cannot find a module. Code that currently " -"checks for ImportError (in try-except) will still work. (Contributed by Eric" -" Snow in :issue:`15767`.)" +"Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of :" +"exc:`ImportError`) when it cannot find a module. Code that currently checks " +"for ImportError (in try-except) will still work. (Contributed by Eric Snow " +"in :issue:`15767`.)" #: ../../whatsnew/3.6.rst:762 msgid "" @@ -1141,12 +1128,12 @@ msgstr "" #: ../../whatsnew/3.6.rst:781 msgid "" "Note that the pseudo-random generators in the :mod:`random` module should " -"*NOT* be used for security purposes. Use :mod:`secrets` on Python 3.6+ and " -":func:`os.urandom()` on Python 3.5 and earlier." +"*NOT* be used for security purposes. Use :mod:`secrets` on Python 3.6+ and :" +"func:`os.urandom()` on Python 3.5 and earlier." msgstr "" "Note that the pseudo-random generators in the :mod:`random` module should " -"*NOT* be used for security purposes. Use :mod:`secrets` on Python 3.6+ and " -":func:`os.urandom()` on Python 3.5 and earlier." +"*NOT* be used for security purposes. Use :mod:`secrets` on Python 3.6+ and :" +"func:`os.urandom()` on Python 3.5 and earlier." #: ../../whatsnew/3.6.rst:787 msgid ":pep:`506` -- Adding A Secrets Module To The Standard Library" @@ -1200,11 +1187,11 @@ msgstr "asyncio" #: ../../whatsnew/3.6.rst:815 msgid "" -"Starting with Python 3.6 the ``asyncio`` module is no longer provisional and" -" its API is considered stable." +"Starting with Python 3.6 the ``asyncio`` module is no longer provisional and " +"its API is considered stable." msgstr "" -"Starting with Python 3.6 the ``asyncio`` module is no longer provisional and" -" its API is considered stable." +"Starting with Python 3.6 the ``asyncio`` module is no longer provisional and " +"its API is considered stable." #: ../../whatsnew/3.6.rst:818 msgid "" @@ -1217,16 +1204,16 @@ msgstr "" #: ../../whatsnew/3.6.rst:821 msgid "" "The :func:`~asyncio.get_event_loop` function has been changed to always " -"return the currently running loop when called from coroutines and callbacks." -" (Contributed by Yury Selivanov in :issue:`28613`.)" +"return the currently running loop when called from coroutines and callbacks. " +"(Contributed by Yury Selivanov in :issue:`28613`.)" msgstr "" #: ../../whatsnew/3.6.rst:826 msgid "" "The :func:`~asyncio.ensure_future` function and all functions that use it, " -"such as :meth:`loop.run_until_complete() `," -" now accept all kinds of :term:`awaitable objects `. (Contributed" -" by Yury Selivanov.)" +"such as :meth:`loop.run_until_complete() `, " +"now accept all kinds of :term:`awaitable objects `. (Contributed " +"by Yury Selivanov.)" msgstr "" #: ../../whatsnew/3.6.rst:831 @@ -1239,18 +1226,18 @@ msgstr "" #: ../../whatsnew/3.6.rst:835 msgid "" -"New :meth:`Transport.is_closing() ` method" -" to check if the transport is closing or closed. (Contributed by Yury " +"New :meth:`Transport.is_closing() ` method " +"to check if the transport is closing or closed. (Contributed by Yury " "Selivanov.)" msgstr "" -"New :meth:`Transport.is_closing() ` method" -" to check if the transport is closing or closed. (Contributed by Yury " +"New :meth:`Transport.is_closing() ` method " +"to check if the transport is closing or closed. (Contributed by Yury " "Selivanov.)" #: ../../whatsnew/3.6.rst:839 msgid "" -"The :meth:`loop.create_server() ` method can now" -" accept a list of hosts. (Contributed by Yann Sionneau.)" +"The :meth:`loop.create_server() ` method can now " +"accept a list of hosts. (Contributed by Yann Sionneau.)" msgstr "" #: ../../whatsnew/3.6.rst:843 @@ -1264,30 +1251,30 @@ msgstr "" #: ../../whatsnew/3.6.rst:850 msgid "" -"New :meth:`loop.get_exception_handler() " -"` method to get the current exception " -"handler. (Contributed by Yury Selivanov in :issue:`27040`.)" +"New :meth:`loop.get_exception_handler() ` method to get the current exception handler. " +"(Contributed by Yury Selivanov in :issue:`27040`.)" msgstr "" #: ../../whatsnew/3.6.rst:854 msgid "" -"New :meth:`StreamReader.readuntil() ` method" -" to read data from the stream until a separator bytes sequence appears. " +"New :meth:`StreamReader.readuntil() ` method " +"to read data from the stream until a separator bytes sequence appears. " "(Contributed by Mark Korenberg.)" msgstr "" -"New :meth:`StreamReader.readuntil() ` method" -" to read data from the stream until a separator bytes sequence appears. " +"New :meth:`StreamReader.readuntil() ` method " +"to read data from the stream until a separator bytes sequence appears. " "(Contributed by Mark Korenberg.)" #: ../../whatsnew/3.6.rst:859 msgid "" -"The performance of :meth:`StreamReader.readexactly() " -"` has been improved. (Contributed by Mark " -"Korenberg in :issue:`28370`.)" +"The performance of :meth:`StreamReader.readexactly() ` has been improved. (Contributed by Mark Korenberg in :issue:" +"`28370`.)" msgstr "" -"The performance of :meth:`StreamReader.readexactly() " -"` has been improved. (Contributed by Mark " -"Korenberg in :issue:`28370`.)" +"The performance of :meth:`StreamReader.readexactly() ` has been improved. (Contributed by Mark Korenberg in :issue:" +"`28370`.)" #: ../../whatsnew/3.6.rst:863 msgid "" @@ -1306,19 +1293,19 @@ msgstr "" #: ../../whatsnew/3.6.rst:874 msgid "" -":meth:`Future.set_exception ` will now" -" raise :exc:`TypeError` when passed an instance of the :exc:`StopIteration` " +":meth:`Future.set_exception ` will now " +"raise :exc:`TypeError` when passed an instance of the :exc:`StopIteration` " "exception. (Contributed by Chris Angelico in :issue:`26221`.)" msgstr "" -":meth:`Future.set_exception ` will now" -" raise :exc:`TypeError` when passed an instance of the :exc:`StopIteration` " +":meth:`Future.set_exception ` will now " +"raise :exc:`TypeError` when passed an instance of the :exc:`StopIteration` " "exception. (Contributed by Chris Angelico in :issue:`26221`.)" #: ../../whatsnew/3.6.rst:879 msgid "" -"New :meth:`loop.connect_accepted_socket() " -"` method to be used by servers that " -"accept connections outside of asyncio, but that use asyncio to handle them. " +"New :meth:`loop.connect_accepted_socket() ` method to be used by servers that accept " +"connections outside of asyncio, but that use asyncio to handle them. " "(Contributed by Jim Fulton in :issue:`27392`.)" msgstr "" @@ -1341,13 +1328,13 @@ msgstr "" msgid "" ":class:`Future ` and :class:`Task ` classes " "now have an optimized C implementation which makes asyncio code up to 30% " -"faster. (Contributed by Yury Selivanov and INADA Naoki in :issue:`26081` and" -" :issue:`28544`.)" +"faster. (Contributed by Yury Selivanov and INADA Naoki in :issue:`26081` " +"and :issue:`28544`.)" msgstr "" ":class:`Future ` and :class:`Task ` classes " "now have an optimized C implementation which makes asyncio code up to 30% " -"faster. (Contributed by Yury Selivanov and INADA Naoki in :issue:`26081` and" -" :issue:`28544`.)" +"faster. (Contributed by Yury Selivanov and INADA Naoki in :issue:`26081` " +"and :issue:`28544`.)" #: ../../whatsnew/3.6.rst:900 msgid "binascii" @@ -1356,12 +1343,12 @@ msgstr "binascii" #: ../../whatsnew/3.6.rst:902 msgid "" "The :func:`~binascii.b2a_base64` function now accepts an optional *newline* " -"keyword argument to control whether the newline character is appended to the" -" return value. (Contributed by Victor Stinner in :issue:`25357`.)" +"keyword argument to control whether the newline character is appended to the " +"return value. (Contributed by Victor Stinner in :issue:`25357`.)" msgstr "" "The :func:`~binascii.b2a_base64` function now accepts an optional *newline* " -"keyword argument to control whether the newline character is appended to the" -" return value. (Contributed by Victor Stinner in :issue:`25357`.)" +"keyword argument to control whether the newline character is appended to the " +"return value. (Contributed by Victor Stinner in :issue:`25357`.)" #: ../../whatsnew/3.6.rst:909 msgid "cmath" @@ -1375,15 +1362,15 @@ msgstr "" #: ../../whatsnew/3.6.rst:914 msgid "" -"New constants: :const:`cmath.inf` and :const:`cmath.nan` to match " -":const:`math.inf` and :const:`math.nan`, and also :const:`cmath.infj` and " -":const:`cmath.nanj` to match the format used by complex repr. (Contributed " -"by Mark Dickinson in :issue:`23229`.)" +"New constants: :const:`cmath.inf` and :const:`cmath.nan` to match :const:" +"`math.inf` and :const:`math.nan`, and also :const:`cmath.infj` and :const:" +"`cmath.nanj` to match the format used by complex repr. (Contributed by Mark " +"Dickinson in :issue:`23229`.)" msgstr "" -"New constants: :const:`cmath.inf` and :const:`cmath.nan` to match " -":const:`math.inf` and :const:`math.nan`, and also :const:`cmath.infj` and " -":const:`cmath.nanj` to match the format used by complex repr. (Contributed " -"by Mark Dickinson in :issue:`23229`.)" +"New constants: :const:`cmath.inf` and :const:`cmath.nan` to match :const:" +"`math.inf` and :const:`math.nan`, and also :const:`cmath.infj` and :const:" +"`cmath.nanj` to match the format used by complex repr. (Contributed by Mark " +"Dickinson in :issue:`23229`.)" #: ../../whatsnew/3.6.rst:921 msgid "collections" @@ -1412,28 +1399,28 @@ msgstr "" #: ../../whatsnew/3.6.rst:931 msgid "" "The new :class:`~collections.abc.AsyncGenerator` abstract base class " -"represents asynchronous generators. (Contributed by Yury Selivanov in " -":issue:`28720`.)" +"represents asynchronous generators. (Contributed by Yury Selivanov in :issue:" +"`28720`.)" msgstr "" "The new :class:`~collections.abc.AsyncGenerator` abstract base class " -"represents asynchronous generators. (Contributed by Yury Selivanov in " -":issue:`28720`.)" +"represents asynchronous generators. (Contributed by Yury Selivanov in :issue:" +"`28720`.)" #: ../../whatsnew/3.6.rst:935 msgid "" -"The :func:`~collections.namedtuple` function now accepts an optional keyword" -" argument *module*, which, when specified, is used for the ``__module__`` " +"The :func:`~collections.namedtuple` function now accepts an optional keyword " +"argument *module*, which, when specified, is used for the ``__module__`` " "attribute of the returned named tuple class. (Contributed by Raymond " "Hettinger in :issue:`17941`.)" msgstr "" #: ../../whatsnew/3.6.rst:940 ../../whatsnew/3.6.rst:2278 msgid "" -"The *verbose* and *rename* arguments for :func:`~collections.namedtuple` are" -" now keyword-only. (Contributed by Raymond Hettinger in :issue:`25628`.)" +"The *verbose* and *rename* arguments for :func:`~collections.namedtuple` are " +"now keyword-only. (Contributed by Raymond Hettinger in :issue:`25628`.)" msgstr "" -"The *verbose* and *rename* arguments for :func:`~collections.namedtuple` are" -" now keyword-only. (Contributed by Raymond Hettinger in :issue:`25628`.)" +"The *verbose* and *rename* arguments for :func:`~collections.namedtuple` are " +"now keyword-only. (Contributed by Raymond Hettinger in :issue:`25628`.)" #: ../../whatsnew/3.6.rst:944 msgid "" @@ -1462,18 +1449,18 @@ msgstr "contextlib" #: ../../whatsnew/3.6.rst:961 msgid "" "The :class:`contextlib.AbstractContextManager` class has been added to " -"provide an abstract base class for context managers. It provides a sensible" -" default implementation for `__enter__()` which returns ``self`` and leaves " -"`__exit__()` an abstract method. A matching class has been added to the " -":mod:`typing` module as :class:`typing.ContextManager`. (Contributed by " -"Brett Cannon in :issue:`25609`.)" +"provide an abstract base class for context managers. It provides a sensible " +"default implementation for `__enter__()` which returns ``self`` and leaves " +"`__exit__()` an abstract method. A matching class has been added to the :" +"mod:`typing` module as :class:`typing.ContextManager`. (Contributed by Brett " +"Cannon in :issue:`25609`.)" msgstr "" "The :class:`contextlib.AbstractContextManager` class has been added to " -"provide an abstract base class for context managers. It provides a sensible" -" default implementation for `__enter__()` which returns ``self`` and leaves " -"`__exit__()` an abstract method. A matching class has been added to the " -":mod:`typing` module as :class:`typing.ContextManager`. (Contributed by " -"Brett Cannon in :issue:`25609`.)" +"provide an abstract base class for context managers. It provides a sensible " +"default implementation for `__enter__()` which returns ``self`` and leaves " +"`__exit__()` an abstract method. A matching class has been added to the :" +"mod:`typing` module as :class:`typing.ContextManager`. (Contributed by Brett " +"Cannon in :issue:`25609`.)" #: ../../whatsnew/3.6.rst:971 msgid "datetime" @@ -1481,26 +1468,26 @@ msgstr "datetime" #: ../../whatsnew/3.6.rst:973 msgid "" -"The :class:`~datetime.datetime` and :class:`~datetime.time` classes have the" -" new :attr:`~time.fold` attribute used to disambiguate local time when " +"The :class:`~datetime.datetime` and :class:`~datetime.time` classes have the " +"new :attr:`~time.fold` attribute used to disambiguate local time when " "necessary. Many functions in the :mod:`datetime` have been updated to " "support local time disambiguation. See :ref:`Local Time Disambiguation " -"` section for more information. (Contributed by Alexander" -" Belopolsky in :issue:`24773`.)" +"` section for more information. (Contributed by Alexander " +"Belopolsky in :issue:`24773`.)" msgstr "" -"The :class:`~datetime.datetime` and :class:`~datetime.time` classes have the" -" new :attr:`~time.fold` attribute used to disambiguate local time when " +"The :class:`~datetime.datetime` and :class:`~datetime.time` classes have the " +"new :attr:`~time.fold` attribute used to disambiguate local time when " "necessary. Many functions in the :mod:`datetime` have been updated to " "support local time disambiguation. See :ref:`Local Time Disambiguation " -"` section for more information. (Contributed by Alexander" -" Belopolsky in :issue:`24773`.)" +"` section for more information. (Contributed by Alexander " +"Belopolsky in :issue:`24773`.)" #: ../../whatsnew/3.6.rst:981 msgid "" -"The :meth:`datetime.strftime() ` and " -":meth:`date.strftime() ` methods now support ISO " -"8601 date directives ``%G``, ``%u`` and ``%V``. (Contributed by Ashley " -"Anderson in :issue:`12006`.)" +"The :meth:`datetime.strftime() ` and :meth:`date." +"strftime() ` methods now support ISO 8601 date " +"directives ``%G``, ``%u`` and ``%V``. (Contributed by Ashley Anderson in :" +"issue:`12006`.)" msgstr "" #: ../../whatsnew/3.6.rst:986 @@ -1514,8 +1501,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:991 msgid "" "The :meth:`datetime.combine() ` now accepts an " -"optional *tzinfo* argument. (Contributed by Alexander Belopolsky in " -":issue:`27661`.)" +"optional *tzinfo* argument. (Contributed by Alexander Belopolsky in :issue:" +"`27661`.)" msgstr "" #: ../../whatsnew/3.6.rst:997 @@ -1525,9 +1512,9 @@ msgstr "" #: ../../whatsnew/3.6.rst:999 msgid "" "New :meth:`Decimal.as_integer_ratio() ` " -"method that returns a pair ``(n, d)`` of integers that represent the given " -":class:`~decimal.Decimal` instance as a fraction, in lowest terms and with a" -" positive denominator::" +"method that returns a pair ``(n, d)`` of integers that represent the given :" +"class:`~decimal.Decimal` instance as a fraction, in lowest terms and with a " +"positive denominator::" msgstr "" #: ../../whatsnew/3.6.rst:1007 @@ -1540,11 +1527,11 @@ msgstr "" #: ../../whatsnew/3.6.rst:1014 msgid "" -"The ``default_format`` attribute has been removed from " -":class:`distutils.command.sdist.sdist` and the ``formats`` attribute " -"defaults to ``['gztar']``. Although not anticipated, any code relying on the" -" presence of ``default_format`` may need to be adapted. See :issue:`27819` " -"for more details." +"The ``default_format`` attribute has been removed from :class:`distutils." +"command.sdist.sdist` and the ``formats`` attribute defaults to " +"``['gztar']``. Although not anticipated, any code relying on the presence of " +"``default_format`` may need to be adapted. See :issue:`27819` for more " +"details." msgstr "" #: ../../whatsnew/3.6.rst:1022 @@ -1553,11 +1540,11 @@ msgstr "email" #: ../../whatsnew/3.6.rst:1024 msgid "" -"The new email API, enabled via the *policy* keyword to various constructors," -" is no longer provisional. The :mod:`email` documentation has been " +"The new email API, enabled via the *policy* keyword to various constructors, " +"is no longer provisional. The :mod:`email` documentation has been " "reorganized and rewritten to focus on the new API, while retaining the old " -"documentation for the legacy API. (Contributed by R. David Murray in " -":issue:`24277`.)" +"documentation for the legacy API. (Contributed by R. David Murray in :issue:" +"`24277`.)" msgstr "" #: ../../whatsnew/3.6.rst:1029 @@ -1574,13 +1561,12 @@ msgstr "" #: ../../whatsnew/3.6.rst:1035 msgid "" -"There is a new :mod:`~email.policy` attribute, " -":attr:`~email.policy.Policy.message_factory`, that controls what class is " -"used by default when the parser creates new message objects. For the " -":attr:`email.policy.compat32` policy this is " -":class:`~email.message.Message`, for the new policies it is " -":class:`~email.message.EmailMessage`. (Contributed by R. David Murray in " -":issue:`20476`.)" +"There is a new :mod:`~email.policy` attribute, :attr:`~email.policy.Policy." +"message_factory`, that controls what class is used by default when the " +"parser creates new message objects. For the :attr:`email.policy.compat32` " +"policy this is :class:`~email.message.Message`, for the new policies it is :" +"class:`~email.message.EmailMessage`. (Contributed by R. David Murray in :" +"issue:`20476`.)" msgstr "" #: ../../whatsnew/3.6.rst:1044 @@ -1600,16 +1586,16 @@ msgstr "enum" #: ../../whatsnew/3.6.rst:1054 msgid "" -"Two new enumeration base classes have been added to the :mod:`enum` module: " -":class:`~enum.Flag` and :class:`~enum.IntFlags`. Both are used to define " +"Two new enumeration base classes have been added to the :mod:`enum` module: :" +"class:`~enum.Flag` and :class:`~enum.IntFlags`. Both are used to define " "constants that can be combined using the bitwise operators. (Contributed by " "Ethan Furman in :issue:`23591`.)" msgstr "" #: ../../whatsnew/3.6.rst:1059 msgid "" -"Many standard library modules have been updated to use the " -":class:`~enum.IntFlags` class for their constants." +"Many standard library modules have been updated to use the :class:`~enum." +"IntFlags` class for their constants." msgstr "" #: ../../whatsnew/3.6.rst:1062 @@ -1651,29 +1637,28 @@ msgstr "" #: ../../whatsnew/3.6.rst:1096 msgid "" -"BLAKE2 hash functions were added to the module. :func:`~hashlib.blake2b` and" -" :func:`~hashlib.blake2s` are always available and support the full feature " -"set of BLAKE2. (Contributed by Christian Heimes in :issue:`26798` based on " -"code by Dmitry Chestnykh and Samuel Neves. Documentation written by Dmitry " -"Chestnykh.)" +"BLAKE2 hash functions were added to the module. :func:`~hashlib.blake2b` " +"and :func:`~hashlib.blake2s` are always available and support the full " +"feature set of BLAKE2. (Contributed by Christian Heimes in :issue:`26798` " +"based on code by Dmitry Chestnykh and Samuel Neves. Documentation written by " +"Dmitry Chestnykh.)" msgstr "" #: ../../whatsnew/3.6.rst:1102 msgid "" -"The SHA-3 hash functions :func:`~hashlib.sha3_224`, " -":func:`~hashlib.sha3_256`, :func:`~hashlib.sha3_384`, " -":func:`~hashlib.sha3_512`, and SHAKE hash functions " -":func:`~hashlib.shake_128` and :func:`~hashlib.shake_256` were added. " -"(Contributed by Christian Heimes in :issue:`16113`. Keccak Code Package by " -"Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche, and Ronny " -"Van Keer.)" +"The SHA-3 hash functions :func:`~hashlib.sha3_224`, :func:`~hashlib." +"sha3_256`, :func:`~hashlib.sha3_384`, :func:`~hashlib.sha3_512`, and SHAKE " +"hash functions :func:`~hashlib.shake_128` and :func:`~hashlib.shake_256` " +"were added. (Contributed by Christian Heimes in :issue:`16113`. Keccak Code " +"Package by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche, " +"and Ronny Van Keer.)" msgstr "" #: ../../whatsnew/3.6.rst:1109 msgid "" "The password-based key derivation function :func:`~hashlib.scrypt` is now " -"available with OpenSSL 1.1.0 and newer. (Contributed by Christian Heimes in " -":issue:`27928`.)" +"available with OpenSSL 1.1.0 and newer. (Contributed by Christian Heimes in :" +"issue:`27928`.)" msgstr "" #: ../../whatsnew/3.6.rst:1114 @@ -1682,10 +1667,10 @@ msgstr "" #: ../../whatsnew/3.6.rst:1116 msgid "" -":meth:`HTTPConnection.request() ` and " -":meth:`~http.client.HTTPConnection.endheaders` both now support chunked " -"encoding request bodies. (Contributed by Demian Brecht and Rolf Krahl in " -":issue:`12319`.)" +":meth:`HTTPConnection.request() ` and :" +"meth:`~http.client.HTTPConnection.endheaders` both now support chunked " +"encoding request bodies. (Contributed by Demian Brecht and Rolf Krahl in :" +"issue:`12319`.)" msgstr "" #: ../../whatsnew/3.6.rst:1123 @@ -1694,24 +1679,24 @@ msgstr "idlelib and IDLE" #: ../../whatsnew/3.6.rst:1125 msgid "" -"The idlelib package is being modernized and refactored to make IDLE look and" -" work better and to make the code easier to understand, test, and improve. " +"The idlelib package is being modernized and refactored to make IDLE look and " +"work better and to make the code easier to understand, test, and improve. " "Part of making IDLE look better, especially on Linux and Mac, is using ttk " -"widgets, mostly in the dialogs. As a result, IDLE no longer runs with " -"tcl/tk 8.4. It now requires tcl/tk 8.5 or 8.6. We recommend running the " -"latest release of either." +"widgets, mostly in the dialogs. As a result, IDLE no longer runs with tcl/" +"tk 8.4. It now requires tcl/tk 8.5 or 8.6. We recommend running the latest " +"release of either." msgstr "" #: ../../whatsnew/3.6.rst:1132 msgid "" "'Modernizing' includes renaming and consolidation of idlelib modules. The " "renaming of files with partial uppercase names is similar to the renaming " -"of, for instance, Tkinter and TkFont to tkinter and tkinter.font in 3.0. As" -" a result, imports of idlelib files that worked in 3.5 will usually not work" -" in 3.6. At least a module name change will be needed (see " -"idlelib/README.txt), sometimes more. (Name changes contributed by Al " -"Swiegart and Terry Reedy in :issue:`24225`. Most idlelib patches since have" -" been and will be part of the process.)" +"of, for instance, Tkinter and TkFont to tkinter and tkinter.font in 3.0. As " +"a result, imports of idlelib files that worked in 3.5 will usually not work " +"in 3.6. At least a module name change will be needed (see idlelib/README." +"txt), sometimes more. (Name changes contributed by Al Swiegart and Terry " +"Reedy in :issue:`24225`. Most idlelib patches since have been and will be " +"part of the process.)" msgstr "" #: ../../whatsnew/3.6.rst:1141 @@ -1727,8 +1712,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1147 msgid "" -"Multiple fixes for autocompletion. (Contributed by Louie Lu in " -":issue:`15786`.)" +"Multiple fixes for autocompletion. (Contributed by Louie Lu in :issue:" +"`15786`.)" msgstr "" #: ../../whatsnew/3.6.rst:1149 @@ -1738,17 +1723,17 @@ msgstr "" #: ../../whatsnew/3.6.rst:1151 msgid "" "Module Browser (on the File menu, formerly called Class Browser), now " -"displays nested functions and classes in addition to top-level functions and" -" classes. (Contributed by Guilherme Polo, Cheryl Sabella, and Terry Jan " -"Reedy in :issue:`1612262`.)" +"displays nested functions and classes in addition to top-level functions and " +"classes. (Contributed by Guilherme Polo, Cheryl Sabella, and Terry Jan Reedy " +"in :issue:`1612262`.)" msgstr "" #: ../../whatsnew/3.6.rst:1157 msgid "" -"The IDLE features formerly implemented as extensions have been reimplemented" -" as normal features. Their settings have been moved from the Extensions tab" -" to other dialog tabs. (Contributed by Charles Wohlganger and Terry Jan " -"Reedy in :issue:`27099`.)" +"The IDLE features formerly implemented as extensions have been reimplemented " +"as normal features. Their settings have been moved from the Extensions tab " +"to other dialog tabs. (Contributed by Charles Wohlganger and Terry Jan Reedy " +"in :issue:`27099`.)" msgstr "" #: ../../whatsnew/3.6.rst:1162 @@ -1765,8 +1750,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1168 msgid "" "The font sample now includes a selection of non-Latin characters so that " -"users can better see the effect of selecting a particular font. (Contributed" -" by Terry Jan Reedy in :issue:`13802`.) The sample can be edited to include " +"users can better see the effect of selecting a particular font. (Contributed " +"by Terry Jan Reedy in :issue:`13802`.) The sample can be edited to include " "other characters. (Contributed by Serhiy Storchaka in :issue:`31860`.)" msgstr "" @@ -1779,8 +1764,8 @@ msgid "" "Editor code context option revised. Box displays all context lines up to " "maxlines. Clicking on a context line jumps the editor to that line. " "Context colors for custom themes is added to Highlights tab of Settings " -"dialog. (Contributed by Cheryl Sabella and Terry Jan Reedy in " -":issue:`33642`, :issue:`33768`, and :issue:`33679`.)" +"dialog. (Contributed by Cheryl Sabella and Terry Jan Reedy in :issue:" +"`33642`, :issue:`33768`, and :issue:`33679`.)" msgstr "" #: ../../whatsnew/3.6.rst:1182 @@ -1788,8 +1773,8 @@ msgid "" "On Windows, a new API call tells Windows that tk scales for DPI. On Windows " "8.1+ or 10, with DPI compatibility properties of the Python binary " "unchanged, and a monitor resolution greater than 96 DPI, this should make " -"text and lines sharper. It should otherwise have no effect. (Contributed by" -" Terry Jan Reedy in :issue:`33656`.)" +"text and lines sharper. It should otherwise have no effect. (Contributed by " +"Terry Jan Reedy in :issue:`33656`.)" msgstr "" #: ../../whatsnew/3.6.rst:1188 @@ -1801,10 +1786,17 @@ msgid "" "Output over N lines (50 by default) is squeezed down to a button. N can be " "changed in the PyShell section of the General page of the Settings dialog. " "Fewer, but possibly extra long, lines can be squeezed by right clicking on " -"the output. Squeezed output can be expanded in place by double-clicking the" -" button or into the clipboard or a separate window by right-clicking the " +"the output. Squeezed output can be expanded in place by double-clicking the " +"button or into the clipboard or a separate window by right-clicking the " "button. (Contributed by Tal Einat in :issue:`1529353`.)" msgstr "" +"A saída em N linhas (50 por padrão) é compactada até um limite inferior. N " +"pode ser alterado na seção PyShell da página General da caixa de diálogo " +"Settings. Menos linhas, mas possivelmente extra longas, podem ser espremidas " +"clicando com o botão direito do mouse na saída. A saída compactada pode ser " +"expandida no local clicando duas vezes no botão ou na área de transferência " +"ou em uma janela separada clicando com o botão direito do mouse. " +"(Contribuição de Tal Einat em :issue:`1529353`.)" #: ../../whatsnew/3.6.rst:1199 ../../whatsnew/3.6.rst:2003 msgid "importlib" @@ -1812,27 +1804,26 @@ msgstr "importlib" #: ../../whatsnew/3.6.rst:1201 msgid "" -"Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of " -":exc:`ImportError`) when it cannot find a module. Code that current checks " +"Import now raises the new exception :exc:`ModuleNotFoundError` (subclass of :" +"exc:`ImportError`) when it cannot find a module. Code that current checks " "for ``ImportError`` (in try-except) will still work. (Contributed by Eric " "Snow in :issue:`15767`.)" msgstr "" #: ../../whatsnew/3.6.rst:1206 msgid "" -":class:`importlib.util.LazyLoader` now calls " -":meth:`~importlib.abc.Loader.create_module` on the wrapped loader, removing " -"the restriction that :class:`importlib.machinery.BuiltinImporter` and " -":class:`importlib.machinery.ExtensionFileLoader` couldn't be used with " -":class:`importlib.util.LazyLoader`." +":class:`importlib.util.LazyLoader` now calls :meth:`~importlib.abc.Loader." +"create_module` on the wrapped loader, removing the restriction that :class:" +"`importlib.machinery.BuiltinImporter` and :class:`importlib.machinery." +"ExtensionFileLoader` couldn't be used with :class:`importlib.util." +"LazyLoader`." msgstr "" #: ../../whatsnew/3.6.rst:1212 msgid "" -":func:`importlib.util.cache_from_source`, " -":func:`importlib.util.source_from_cache`, and " -":func:`importlib.util.spec_from_file_location` now accept a :term:`path-like" -" object`." +":func:`importlib.util.cache_from_source`, :func:`importlib.util." +"source_from_cache`, and :func:`importlib.util.spec_from_file_location` now " +"accept a :term:`path-like object`." msgstr "" #: ../../whatsnew/3.6.rst:1219 @@ -1841,20 +1832,20 @@ msgstr "inspect" #: ../../whatsnew/3.6.rst:1221 msgid "" -"The :func:`inspect.signature() ` function now reports the" -" implicit ``.0`` parameters generated by the compiler for comprehension and " +"The :func:`inspect.signature() ` function now reports the " +"implicit ``.0`` parameters generated by the compiler for comprehension and " "generator expression scopes as if they were positional-only parameters " "called ``implicit0``. (Contributed by Jelle Zijlstra in :issue:`19611`.)" msgstr "" #: ../../whatsnew/3.6.rst:1226 msgid "" -"To reduce code churn when upgrading from Python 2.7 and the legacy " -":func:`inspect.getargspec` API, the previously documented deprecation of " -":func:`inspect.getfullargspec` has been reversed. While this function is " -"convenient for single/source Python 2/3 code bases, the richer " -":func:`inspect.signature` interface remains the recommended approach for new" -" code. (Contributed by Nick Coghlan in :issue:`27172`)" +"To reduce code churn when upgrading from Python 2.7 and the legacy :func:" +"`inspect.getargspec` API, the previously documented deprecation of :func:" +"`inspect.getfullargspec` has been reversed. While this function is " +"convenient for single/source Python 2/3 code bases, the richer :func:" +"`inspect.signature` interface remains the recommended approach for new code. " +"(Contributed by Nick Coghlan in :issue:`27172`)" msgstr "" #: ../../whatsnew/3.6.rst:1235 @@ -1874,15 +1865,15 @@ msgstr "logging" #: ../../whatsnew/3.6.rst:1245 msgid "" -"The new :meth:`WatchedFileHandler.reopenIfNeeded() " -"` method has been added " -"to add the ability to check if the log file needs to be reopened. " -"(Contributed by Marian Horban in :issue:`24884`.)" +"The new :meth:`WatchedFileHandler.reopenIfNeeded() ` method has been added to add the ability " +"to check if the log file needs to be reopened. (Contributed by Marian Horban " +"in :issue:`24884`.)" msgstr "" #: ../../whatsnew/3.6.rst:1252 msgid "math" -msgstr "" +msgstr "math" #: ../../whatsnew/3.6.rst:1254 msgid "" @@ -1897,9 +1888,9 @@ msgstr "multiprocessing" #: ../../whatsnew/3.6.rst:1262 msgid "" -":ref:`Proxy Objects ` returned by " -":func:`multiprocessing.Manager` can now be nested. (Contributed by Davin " -"Potts in :issue:`6766`.)" +":ref:`Proxy Objects ` returned by :func:" +"`multiprocessing.Manager` can now be nested. (Contributed by Davin Potts in :" +"issue:`6766`.)" msgstr "" #: ../../whatsnew/3.6.rst:1268 ../../whatsnew/3.6.rst:2017 @@ -1908,9 +1899,9 @@ msgstr "os" #: ../../whatsnew/3.6.rst:1270 msgid "" -"See the summary of :ref:`PEP 519 ` for details on how the" -" :mod:`os` and :mod:`os.path` modules now support :term:`path-like objects " -"`." +"See the summary of :ref:`PEP 519 ` for details on how " +"the :mod:`os` and :mod:`os.path` modules now support :term:`path-like " +"objects `." msgstr "" #: ../../whatsnew/3.6.rst:1274 @@ -1919,12 +1910,11 @@ msgstr "" #: ../../whatsnew/3.6.rst:1276 msgid "" -"A new :meth:`~os.scandir.close` method allows explicitly closing a " -":func:`~os.scandir` iterator. The :func:`~os.scandir` iterator now supports" -" the :term:`context manager` protocol. If a :func:`scandir` iterator is " -"neither exhausted nor explicitly closed a :exc:`ResourceWarning` will be " -"emitted in its destructor. (Contributed by Serhiy Storchaka in " -":issue:`25994`.)" +"A new :meth:`~os.scandir.close` method allows explicitly closing a :func:" +"`~os.scandir` iterator. The :func:`~os.scandir` iterator now supports the :" +"term:`context manager` protocol. If a :func:`scandir` iterator is neither " +"exhausted nor explicitly closed a :exc:`ResourceWarning` will be emitted in " +"its destructor. (Contributed by Serhiy Storchaka in :issue:`25994`.)" msgstr "" #: ../../whatsnew/3.6.rst:1286 @@ -1954,8 +1944,8 @@ msgstr "pdb" #: ../../whatsnew/3.6.rst:1303 msgid "" -"The :class:`~pdb.Pdb` class constructor has a new optional *readrc* argument" -" to control whether ``.pdbrc`` files should be read." +"The :class:`~pdb.Pdb` class constructor has a new optional *readrc* argument " +"to control whether ``.pdbrc`` files should be read." msgstr "" #: ../../whatsnew/3.6.rst:1308 @@ -1965,8 +1955,8 @@ msgstr "pickle" #: ../../whatsnew/3.6.rst:1310 msgid "" "Objects that need ``__new__`` called with keyword arguments can now be " -"pickled using :ref:`pickle protocols ` older than protocol" -" version 4. Protocol version 4 already supports this case. (Contributed by " +"pickled using :ref:`pickle protocols ` older than protocol " +"version 4. Protocol version 4 already supports this case. (Contributed by " "Serhiy Storchaka in :issue:`24164`.)" msgstr "" @@ -2004,8 +1994,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1339 msgid "" "The new :func:`~random.choices` function returns a list of elements of " -"specified size from the given population with optional weights. (Contributed" -" by Raymond Hettinger in :issue:`18844`.)" +"specified size from the given population with optional weights. (Contributed " +"by Raymond Hettinger in :issue:`18844`.)" msgstr "" #: ../../whatsnew/3.6.rst:1345 ../../whatsnew/3.6.rst:2025 @@ -2014,24 +2004,24 @@ msgstr "re" #: ../../whatsnew/3.6.rst:1347 msgid "" -"Added support of modifier spans in regular expressions. Examples: " -"``'(?i:p)ython'`` matches ``'python'`` and ``'Python'``, but not " -"``'PYTHON'``; ``'(?i)g(?-i:v)r'`` matches ``'GvR'`` and ``'gvr'``, but not " -"``'GVR'``. (Contributed by Serhiy Storchaka in :issue:`433028`.)" +"Added support of modifier spans in regular expressions. Examples: ``'(?i:" +"p)ython'`` matches ``'python'`` and ``'Python'``, but not ``'PYTHON'``; ``'(?" +"i)g(?-i:v)r'`` matches ``'GvR'`` and ``'gvr'``, but not ``'GVR'``. " +"(Contributed by Serhiy Storchaka in :issue:`433028`.)" msgstr "" #: ../../whatsnew/3.6.rst:1352 msgid "" "Match object groups can be accessed by ``__getitem__``, which is equivalent " -"to ``group()``. So ``mo['name']`` is now equivalent to " -"``mo.group('name')``. (Contributed by Eric Smith in :issue:`24454`.)" +"to ``group()``. So ``mo['name']`` is now equivalent to ``mo." +"group('name')``. (Contributed by Eric Smith in :issue:`24454`.)" msgstr "" #: ../../whatsnew/3.6.rst:1356 msgid "" -":class:`~re.Match` objects now support :meth:`index-like objects " -"` as group indices. (Contributed by Jeroen Demeyer and " -"Xiang Zhang in :issue:`27177`.)" +":class:`~re.Match` objects now support :meth:`index-like objects ` as group indices. (Contributed by Jeroen Demeyer and Xiang Zhang " +"in :issue:`27177`.)" msgstr "" #: ../../whatsnew/3.6.rst:1363 @@ -2041,8 +2031,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1365 msgid "" "Added :func:`~readline.set_auto_history` to enable or disable automatic " -"addition of input to the history list. (Contributed by Tyler Crompton in " -":issue:`26870`.)" +"addition of input to the history list. (Contributed by Tyler Crompton in :" +"issue:`26870`.)" msgstr "" #: ../../whatsnew/3.6.rst:1371 @@ -2051,21 +2041,21 @@ msgstr "" #: ../../whatsnew/3.6.rst:1373 msgid "" -"Private and special attribute names now are omitted unless the prefix starts" -" with underscores. A space or a colon is added after some completed " -"keywords. (Contributed by Serhiy Storchaka in :issue:`25011` and " -":issue:`25209`.)" +"Private and special attribute names now are omitted unless the prefix starts " +"with underscores. A space or a colon is added after some completed " +"keywords. (Contributed by Serhiy Storchaka in :issue:`25011` and :issue:" +"`25209`.)" msgstr "" #: ../../whatsnew/3.6.rst:1379 msgid "shlex" -msgstr "" +msgstr "shlex" #: ../../whatsnew/3.6.rst:1381 msgid "" "The :class:`~shlex.shlex` has much :ref:`improved shell compatibility " -"` through the new *punctuation_chars* argument" -" to control which characters are treated as punctuation. (Contributed by " +"` through the new *punctuation_chars* argument " +"to control which characters are treated as punctuation. (Contributed by " "Vinay Sajip in :issue:`1521950`.)" msgstr "" @@ -2096,9 +2086,9 @@ msgstr "socket" #: ../../whatsnew/3.6.rst:1406 msgid "" -"The :func:`~socket.socket.ioctl` function now supports the " -":data:`~socket.SIO_LOOPBACK_FAST_PATH` control code. (Contributed by Daniel " -"Stokes in :issue:`26536`.)" +"The :func:`~socket.socket.ioctl` function now supports the :data:`~socket." +"SIO_LOOPBACK_FAST_PATH` control code. (Contributed by Daniel Stokes in :" +"issue:`26536`.)" msgstr "" #: ../../whatsnew/3.6.rst:1410 @@ -2111,16 +2101,16 @@ msgstr "" #: ../../whatsnew/3.6.rst:1414 msgid "" "The :meth:`~socket.socket.setsockopt` now supports the ``setsockopt(level, " -"optname, None, optlen: int)`` form. (Contributed by Christian Heimes in " -":issue:`27744`.)" +"optname, None, optlen: int)`` form. (Contributed by Christian Heimes in :" +"issue:`27744`.)" msgstr "" #: ../../whatsnew/3.6.rst:1418 msgid "" "The socket module now supports the address family :data:`~socket.AF_ALG` to " -"interface with Linux Kernel crypto API. ``ALG_*``, ``SOL_ALG`` and " -":meth:`~socket.socket.sendmsg_afalg` were added. (Contributed by Christian " -"Heimes in :issue:`27744` with support from Victor Stinner.)" +"interface with Linux Kernel crypto API. ``ALG_*``, ``SOL_ALG`` and :meth:" +"`~socket.socket.sendmsg_afalg` were added. (Contributed by Christian Heimes " +"in :issue:`27744` with support from Victor Stinner.)" msgstr "" #: ../../whatsnew/3.6.rst:1424 @@ -2135,19 +2125,19 @@ msgstr "socketserver" #: ../../whatsnew/3.6.rst:1431 msgid "" -"Servers based on the :mod:`socketserver` module, including those defined in " -":mod:`http.server`, :mod:`xmlrpc.server` and :mod:`wsgiref.simple_server`, " +"Servers based on the :mod:`socketserver` module, including those defined in :" +"mod:`http.server`, :mod:`xmlrpc.server` and :mod:`wsgiref.simple_server`, " "now support the :term:`context manager` protocol. (Contributed by Aviv " "Palivoda in :issue:`26404`.)" msgstr "" #: ../../whatsnew/3.6.rst:1437 msgid "" -"The :attr:`~socketserver.StreamRequestHandler.wfile` attribute of " -":class:`~socketserver.StreamRequestHandler` classes now implements the " -":class:`io.BufferedIOBase` writable interface. In particular, calling " -":meth:`~io.BufferedIOBase.write` is now guaranteed to send the data in full." -" (Contributed by Martin Panter in :issue:`26721`.)" +"The :attr:`~socketserver.StreamRequestHandler.wfile` attribute of :class:" +"`~socketserver.StreamRequestHandler` classes now implements the :class:`io." +"BufferedIOBase` writable interface. In particular, calling :meth:`~io." +"BufferedIOBase.write` is now guaranteed to send the data in full. " +"(Contributed by Martin Panter in :issue:`26721`.)" msgstr "" #: ../../whatsnew/3.6.rst:1445 ../../whatsnew/3.6.rst:2033 @@ -2163,8 +2153,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1450 msgid "" "3DES has been removed from the default cipher suites and ChaCha20 Poly1305 " -"cipher suites have been added. (Contributed by Christian Heimes in " -":issue:`27850` and :issue:`27766`.)" +"cipher suites have been added. (Contributed by Christian Heimes in :issue:" +"`27850` and :issue:`27766`.)" msgstr "" #: ../../whatsnew/3.6.rst:1454 @@ -2176,22 +2166,21 @@ msgstr "" #: ../../whatsnew/3.6.rst:1458 msgid "" "SSL session can be copied from one client-side connection to another with " -"the new :class:`~ssl.SSLSession` class. TLS session resumption can speed up" -" the initial handshake, reduce latency and improve performance (Contributed " +"the new :class:`~ssl.SSLSession` class. TLS session resumption can speed up " +"the initial handshake, reduce latency and improve performance (Contributed " "by Christian Heimes in :issue:`19500` based on a draft by Alex Warhawk.)" msgstr "" #: ../../whatsnew/3.6.rst:1464 msgid "" -"The new :meth:`~ssl.SSLContext.get_ciphers` method can be used to get a list" -" of enabled ciphers in order of cipher priority." +"The new :meth:`~ssl.SSLContext.get_ciphers` method can be used to get a list " +"of enabled ciphers in order of cipher priority." msgstr "" #: ../../whatsnew/3.6.rst:1467 msgid "" -"All constants and flags have been converted to :class:`~enum.IntEnum` and " -":class:`~enum.IntFlags`. (Contributed by Christian Heimes in " -":issue:`28025`.)" +"All constants and flags have been converted to :class:`~enum.IntEnum` and :" +"class:`~enum.IntFlags`. (Contributed by Christian Heimes in :issue:`28025`.)" msgstr "" #: ../../whatsnew/3.6.rst:1471 @@ -2217,8 +2206,8 @@ msgstr "struct" #: ../../whatsnew/3.6.rst:1486 msgid "" ":mod:`struct` now supports IEEE 754 half-precision floats via the ``'e'`` " -"format specifier. (Contributed by Eli Stevens, Mark Dickinson in " -":issue:`11734`.)" +"format specifier. (Contributed by Eli Stevens, Mark Dickinson in :issue:" +"`11734`.)" msgstr "" #: ../../whatsnew/3.6.rst:1492 @@ -2229,9 +2218,9 @@ msgstr "subprocess" msgid "" ":class:`subprocess.Popen` destructor now emits a :exc:`ResourceWarning` " "warning if the child process is still running. Use the context manager " -"protocol (``with proc: ...``) or explicitly call the " -":meth:`~subprocess.Popen.wait` method to read the exit status of the child " -"process. (Contributed by Victor Stinner in :issue:`26741`.)" +"protocol (``with proc: ...``) or explicitly call the :meth:`~subprocess." +"Popen.wait` method to read the exit status of the child process. " +"(Contributed by Victor Stinner in :issue:`26741`.)" msgstr "" #: ../../whatsnew/3.6.rst:1500 @@ -2268,18 +2257,18 @@ msgstr "" #: ../../whatsnew/3.6.rst:1523 msgid "" -":class:`~telnetlib.Telnet` is now a context manager (contributed by Stéphane" -" Wirtel in :issue:`25485`)." +":class:`~telnetlib.Telnet` is now a context manager (contributed by Stéphane " +"Wirtel in :issue:`25485`)." msgstr "" #: ../../whatsnew/3.6.rst:1528 msgid "time" -msgstr "" +msgstr "time" #: ../../whatsnew/3.6.rst:1530 msgid "" -"The :class:`~time.struct_time` attributes :attr:`tm_gmtoff` and " -":attr:`tm_zone` are now available on all platforms." +"The :class:`~time.struct_time` attributes :attr:`tm_gmtoff` and :attr:" +"`tm_zone` are now available on all platforms." msgstr "" #: ../../whatsnew/3.6.rst:1535 @@ -2296,24 +2285,23 @@ msgstr "" #: ../../whatsnew/3.6.rst:1542 msgid "" -":mod:`timeit` now warns when there is substantial (4x) variance between best" -" and worst times. (Contributed by Serhiy Storchaka in :issue:`23552`.)" +":mod:`timeit` now warns when there is substantial (4x) variance between best " +"and worst times. (Contributed by Serhiy Storchaka in :issue:`23552`.)" msgstr "" #: ../../whatsnew/3.6.rst:1548 ../../whatsnew/3.6.rst:2050 msgid "tkinter" -msgstr "" +msgstr "tkinter" #: ../../whatsnew/3.6.rst:1550 msgid "" -"Added methods :meth:`~tkinter.Variable.trace_add`, " -":meth:`~tkinter.Variable.trace_remove` and " -":meth:`~tkinter.Variable.trace_info` in the :class:`tkinter.Variable` class." -" They replace old methods :meth:`~tkinter.Variable.trace_variable`, " -":meth:`~tkinter.Variable.trace`, :meth:`~tkinter.Variable.trace_vdelete` and" -" :meth:`~tkinter.Variable.trace_vinfo` that use obsolete Tcl commands and " -"might not work in future versions of Tcl. (Contributed by Serhiy Storchaka " -"in :issue:`22115`)." +"Added methods :meth:`~tkinter.Variable.trace_add`, :meth:`~tkinter.Variable." +"trace_remove` and :meth:`~tkinter.Variable.trace_info` in the :class:" +"`tkinter.Variable` class. They replace old methods :meth:`~tkinter.Variable." +"trace_variable`, :meth:`~tkinter.Variable.trace`, :meth:`~tkinter.Variable." +"trace_vdelete` and :meth:`~tkinter.Variable.trace_vinfo` that use obsolete " +"Tcl commands and might not work in future versions of Tcl. (Contributed by " +"Serhiy Storchaka in :issue:`22115`)." msgstr "" #: ../../whatsnew/3.6.rst:1563 @@ -2353,34 +2341,34 @@ msgstr "" #: ../../whatsnew/3.6.rst:1598 msgid "typing" -msgstr "" +msgstr "typing" #: ../../whatsnew/3.6.rst:1600 msgid "" -"Since the :mod:`typing` module is :term:`provisional `, all" -" changes introduced in Python 3.6 have also been backported to Python 3.5.x." +"Since the :mod:`typing` module is :term:`provisional `, all " +"changes introduced in Python 3.6 have also been backported to Python 3.5.x." msgstr "" #: ../../whatsnew/3.6.rst:1604 msgid "" "The :mod:`typing` module has a much improved support for generic type " "aliases. For example ``Dict[str, Tuple[S, T]]`` is now a valid type " -"annotation. (Contributed by Guido van Rossum in `Github #195 " -"`_.)" +"annotation. (Contributed by Guido van Rossum in `Github #195 `_.)" msgstr "" #: ../../whatsnew/3.6.rst:1610 msgid "" -"The :class:`typing.ContextManager` class has been added for representing " -":class:`contextlib.AbstractContextManager`. (Contributed by Brett Cannon in " -":issue:`25609`.)" +"The :class:`typing.ContextManager` class has been added for representing :" +"class:`contextlib.AbstractContextManager`. (Contributed by Brett Cannon in :" +"issue:`25609`.)" msgstr "" #: ../../whatsnew/3.6.rst:1614 msgid "" -"The :class:`typing.Collection` class has been added for representing " -":class:`collections.abc.Collection`. (Contributed by Ivan Levkivskyi in " -":issue:`27598`.)" +"The :class:`typing.Collection` class has been added for representing :class:" +"`collections.abc.Collection`. (Contributed by Ivan Levkivskyi in :issue:" +"`27598`.)" msgstr "" #: ../../whatsnew/3.6.rst:1618 @@ -2389,16 +2377,16 @@ msgid "" "variables. As introduced in :pep:`526`, a variable annotation wrapped in " "ClassVar indicates that a given attribute is intended to be used as a class " "variable and should not be set on instances of that class. (Contributed by " -"Ivan Levkivskyi in `Github #280 " -"`_.)" +"Ivan Levkivskyi in `Github #280 `_.)" msgstr "" #: ../../whatsnew/3.6.rst:1625 msgid "" -"A new :const:`~typing.TYPE_CHECKING` constant that is assumed to be ``True``" -" by the static type checkers, but is ``False`` at runtime. (Contributed by " -"Guido van Rossum in `Github #230 " -"`_.)" +"A new :const:`~typing.TYPE_CHECKING` constant that is assumed to be ``True`` " +"by the static type checkers, but is ``False`` at runtime. (Contributed by " +"Guido van Rossum in `Github #230 `_.)" msgstr "" #: ../../whatsnew/3.6.rst:1630 @@ -2410,19 +2398,18 @@ msgstr "" #: ../../whatsnew/3.6.rst:1638 msgid "" "The static type checker will treat the new type as if it were a subclass of " -"the original type. (Contributed by Ivan Levkivskyi in `Github #189 " -"`_.)" +"the original type. (Contributed by Ivan Levkivskyi in `Github #189 `_.)" msgstr "" #: ../../whatsnew/3.6.rst:1644 msgid "unicodedata" -msgstr "" +msgstr "unicodedata" #: ../../whatsnew/3.6.rst:1646 msgid "" -"The :mod:`unicodedata` module now uses data from `Unicode 9.0.0 " -"`_. (Contributed by Benjamin " -"Peterson.)" +"The :mod:`unicodedata` module now uses data from `Unicode 9.0.0 `_. (Contributed by Benjamin Peterson.)" msgstr "" #: ../../whatsnew/3.6.rst:1652 @@ -2435,16 +2422,16 @@ msgstr "" #: ../../whatsnew/3.6.rst:1656 msgid "" -"Two new methods, :meth:`Mock.assert_called() " -"` and :meth:`Mock.assert_called_once() " -"` to check if the mock object was " -"called. (Contributed by Amit Saha in :issue:`26323`.)" +"Two new methods, :meth:`Mock.assert_called() ` and :meth:`Mock.assert_called_once() ` to check if the mock object was called. (Contributed by " +"Amit Saha in :issue:`26323`.)" msgstr "" #: ../../whatsnew/3.6.rst:1662 msgid "" -"The :meth:`Mock.reset_mock() ` method now has" -" two optional keyword only arguments: *return_value* and *side_effect*. " +"The :meth:`Mock.reset_mock() ` method now has " +"two optional keyword only arguments: *return_value* and *side_effect*. " "(Contributed by Kushal Das in :issue:`21271`.)" msgstr "" @@ -2455,10 +2442,9 @@ msgstr "" #: ../../whatsnew/3.6.rst:1671 msgid "" "If a HTTP request has a file or iterable body (other than a bytes object) " -"but no ``Content-Length`` header, rather than throwing an error, " -":class:`~urllib.request.AbstractHTTPHandler` now falls back to use chunked " -"transfer encoding. (Contributed by Demian Brecht and Rolf Krahl in " -":issue:`12319`.)" +"but no ``Content-Length`` header, rather than throwing an error, :class:" +"`~urllib.request.AbstractHTTPHandler` now falls back to use chunked transfer " +"encoding. (Contributed by Demian Brecht and Rolf Krahl in :issue:`12319`.)" msgstr "" #: ../../whatsnew/3.6.rst:1679 @@ -2478,8 +2464,8 @@ msgstr "venv" #: ../../whatsnew/3.6.rst:1689 msgid "" -":mod:`venv` accepts a new parameter ``--prompt``. This parameter provides an" -" alternative prefix for the virtual environment. (Proposed by Łukasz " +":mod:`venv` accepts a new parameter ``--prompt``. This parameter provides an " +"alternative prefix for the virtual environment. (Proposed by Łukasz " "Balcerzak and ported to 3.6 by Stéphane Wirtel in :issue:`22829`.)" msgstr "" @@ -2489,11 +2475,11 @@ msgstr "" #: ../../whatsnew/3.6.rst:1697 msgid "" -"A new optional *source* parameter has been added to the " -":func:`warnings.warn_explicit` function: the destroyed object which emitted " -"a :exc:`ResourceWarning`. A *source* attribute has also been added to " -":class:`warnings.WarningMessage` (contributed by Victor Stinner in " -":issue:`26568` and :issue:`26567`)." +"A new optional *source* parameter has been added to the :func:`warnings." +"warn_explicit` function: the destroyed object which emitted a :exc:" +"`ResourceWarning`. A *source* attribute has also been added to :class:" +"`warnings.WarningMessage` (contributed by Victor Stinner in :issue:`26568` " +"and :issue:`26567`)." msgstr "" #: ../../whatsnew/3.6.rst:1703 @@ -2513,9 +2499,9 @@ msgstr "" #: ../../whatsnew/3.6.rst:1726 msgid "" -"The \"Object allocated at\" traceback is new and is only displayed if " -":mod:`tracemalloc` is tracing Python memory allocations and if the " -":mod:`warnings` module was already imported." +"The \"Object allocated at\" traceback is new and is only displayed if :mod:" +"`tracemalloc` is tracing Python memory allocations and if the :mod:" +"`warnings` module was already imported." msgstr "" #: ../../whatsnew/3.6.rst:1732 @@ -2534,9 +2520,9 @@ msgstr "" #: ../../whatsnew/3.6.rst:1741 msgid "" -"Allowed keyword arguments to be passed to :func:`Beep `, " -":func:`MessageBeep `, and :func:`PlaySound " -"` (:issue:`27982`)." +"Allowed keyword arguments to be passed to :func:`Beep `, :" +"func:`MessageBeep `, and :func:`PlaySound ` (:issue:`27982`)." msgstr "" #: ../../whatsnew/3.6.rst:1747 @@ -2557,9 +2543,9 @@ msgstr "zipfile" #: ../../whatsnew/3.6.rst:1758 msgid "" "A new :meth:`ZipInfo.from_file() ` class method " -"allows making a :class:`~zipfile.ZipInfo` instance from a filesystem file. A" -" new :meth:`ZipInfo.is_dir() ` method can be used to" -" check if the :class:`~zipfile.ZipInfo` instance represents a directory. " +"allows making a :class:`~zipfile.ZipInfo` instance from a filesystem file. A " +"new :meth:`ZipInfo.is_dir() ` method can be used to " +"check if the :class:`~zipfile.ZipInfo` instance represents a directory. " "(Contributed by Thomas Kluyver in :issue:`26039`.)" msgstr "" @@ -2576,9 +2562,9 @@ msgstr "zlib" #: ../../whatsnew/3.6.rst:1772 msgid "" -"The :func:`~zlib.compress` and :func:`~zlib.decompress` functions now accept" -" keyword arguments. (Contributed by Aviv Palivoda in :issue:`26243` and " -"Xiang Zhang in :issue:`16764` respectively.)" +"The :func:`~zlib.compress` and :func:`~zlib.decompress` functions now accept " +"keyword arguments. (Contributed by Aviv Palivoda in :issue:`26243` and Xiang " +"Zhang in :issue:`16764` respectively.)" msgstr "" #: ../../whatsnew/3.6.rst:1779 @@ -2589,8 +2575,8 @@ msgstr "Otimizações" msgid "" "The Python interpreter now uses a 16-bit wordcode instead of bytecode which " "made a number of opcode optimizations possible. (Contributed by Demur Rumed " -"with input and reviews from Serhiy Storchaka and Victor Stinner in " -":issue:`26647` and :issue:`28050`.)" +"with input and reviews from Serhiy Storchaka and Victor Stinner in :issue:" +"`26647` and :issue:`28050`.)" msgstr "" #: ../../whatsnew/3.6.rst:1786 @@ -2622,15 +2608,15 @@ msgstr "" #: ../../whatsnew/3.6.rst:1800 msgid "" "The ASCII and the Latin1 encoders are now up to 3 times as fast for the " -"error handler ``surrogateescape`` (Contributed by Victor Stinner in " -":issue:`25227`)." +"error handler ``surrogateescape`` (Contributed by Victor Stinner in :issue:" +"`25227`)." msgstr "" #: ../../whatsnew/3.6.rst:1804 msgid "" "The UTF-8 encoder is now up to 75 times as fast for error handlers " -"``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass`` (Contributed" -" by Victor Stinner in :issue:`25267`)." +"``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass`` (Contributed " +"by Victor Stinner in :issue:`25267`)." msgstr "" #: ../../whatsnew/3.6.rst:1808 @@ -2642,8 +2628,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1812 msgid "" -"``bytes % args`` is now up to 2 times faster. (Contributed by Victor Stinner" -" in :issue:`25349`)." +"``bytes % args`` is now up to 2 times faster. (Contributed by Victor Stinner " +"in :issue:`25349`)." msgstr "" #: ../../whatsnew/3.6.rst:1815 @@ -2655,8 +2641,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1818 msgid "" "Optimize :meth:`bytes.fromhex` and :meth:`bytearray.fromhex`: they are now " -"between 2x and 3.5x faster. (Contributed by Victor Stinner in " -":issue:`25401`)." +"between 2x and 3.5x faster. (Contributed by Victor Stinner in :issue:" +"`25401`)." msgstr "" #: ../../whatsnew/3.6.rst:1821 @@ -2667,19 +2653,19 @@ msgstr "" #: ../../whatsnew/3.6.rst:1824 msgid "" -"Allocator functions of the :c:func:`PyMem_Malloc` domain " -"(:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc memory allocator " -"` instead of :c:func:`malloc` function of the C library. The " -"pymalloc allocator is optimized for objects smaller or equal to 512 bytes " -"with a short lifetime, and use :c:func:`malloc` for larger memory blocks. " +"Allocator functions of the :c:func:`PyMem_Malloc` domain (:c:data:" +"`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc memory allocator ` " +"instead of :c:func:`malloc` function of the C library. The pymalloc " +"allocator is optimized for objects smaller or equal to 512 bytes with a " +"short lifetime, and use :c:func:`malloc` for larger memory blocks. " "(Contributed by Victor Stinner in :issue:`26249`)." msgstr "" #: ../../whatsnew/3.6.rst:1831 msgid "" ":func:`pickle.load` and :func:`pickle.loads` are now up to 10% faster when " -"deserializing many small objects (Contributed by Victor Stinner in " -":issue:`27056`)." +"deserializing many small objects (Contributed by Victor Stinner in :issue:" +"`27056`)." msgstr "" #: ../../whatsnew/3.6.rst:1835 @@ -2693,30 +2679,30 @@ msgstr "" #: ../../whatsnew/3.6.rst:1841 msgid "" -"Optimized :func:`~glob.glob` and :func:`~glob.iglob` functions in the " -":mod:`glob` module; they are now about 3--6 times faster. (Contributed by " -"Serhiy Storchaka in :issue:`25596`)." +"Optimized :func:`~glob.glob` and :func:`~glob.iglob` functions in the :mod:" +"`glob` module; they are now about 3--6 times faster. (Contributed by Serhiy " +"Storchaka in :issue:`25596`)." msgstr "" #: ../../whatsnew/3.6.rst:1845 msgid "" "Optimized globbing in :mod:`pathlib` by using :func:`os.scandir`; it is now " -"about 1.5--4 times faster. (Contributed by Serhiy Storchaka in " -":issue:`26032`)." +"about 1.5--4 times faster. (Contributed by Serhiy Storchaka in :issue:" +"`26032`)." msgstr "" #: ../../whatsnew/3.6.rst:1849 msgid "" ":class:`xml.etree.ElementTree` parsing, iteration and deepcopy performance " -"has been significantly improved. (Contributed by Serhiy Storchaka in " -":issue:`25638`, :issue:`25873`, and :issue:`25869`.)" +"has been significantly improved. (Contributed by Serhiy Storchaka in :issue:" +"`25638`, :issue:`25873`, and :issue:`25869`.)" msgstr "" #: ../../whatsnew/3.6.rst:1854 msgid "" "Creation of :class:`fractions.Fraction` instances from floats and decimals " -"is now 2 to 3 times faster. (Contributed by Serhiy Storchaka in " -":issue:`25971`.)" +"is now 2 to 3 times faster. (Contributed by Serhiy Storchaka in :issue:" +"`25971`.)" msgstr "" #: ../../whatsnew/3.6.rst:1860 @@ -2727,8 +2713,8 @@ msgstr "Build and C API Changes" msgid "" "Python now requires some C99 support in the toolchain to build. Most " "notably, Python now uses standard integer types and macros in place of " -"custom macros like ``PY_LONG_LONG``. For more information, see :pep:`7` and " -":issue:`17884`." +"custom macros like ``PY_LONG_LONG``. For more information, see :pep:`7` and :" +"issue:`17884`." msgstr "" #: ../../whatsnew/3.6.rst:1867 @@ -2736,8 +2722,8 @@ msgid "" "Cross-compiling CPython with the Android NDK and the Android API level set " "to 21 (Android 5.0 Lollipop) or greater runs successfully. While Android is " "not yet a supported platform, the Python test suite runs on the Android " -"emulator with only about 16 tests failures. See the Android meta-issue " -":issue:`26865`." +"emulator with only about 16 tests failures. See the Android meta-issue :" +"issue:`26865`." msgstr "" #: ../../whatsnew/3.6.rst:1872 @@ -2750,8 +2736,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1876 msgid "" "The :term:`GIL ` must now be held when allocator " -"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and " -":c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called." +"functions of :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) and :" +"c:data:`PYMEM_DOMAIN_MEM` (ex: :c:func:`PyMem_Malloc`) domains are called." msgstr "" #: ../../whatsnew/3.6.rst:1880 @@ -2783,8 +2769,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1897 msgid "" -"The new :c:func:`PyErr_ResourceWarning` function can be used to generate a " -":exc:`ResourceWarning` providing the source of the resource allocation. " +"The new :c:func:`PyErr_ResourceWarning` function can be used to generate a :" +"exc:`ResourceWarning` providing the source of the resource allocation. " "(Contributed by Victor Stinner in :issue:`26567`.)" msgstr "" @@ -2822,8 +2808,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:1928 msgid "" "``async`` and ``await`` are not recommended to be used as variable, class, " -"function or module names. Introduced by :pep:`492` in Python 3.5, they will" -" become proper keywords in Python 3.7. Starting in Python 3.6, the use of " +"function or module names. Introduced by :pep:`492` in Python 3.5, they will " +"become proper keywords in Python 3.7. Starting in Python 3.6, the use of " "``async`` or ``await`` as names will generate a :exc:`DeprecationWarning`." msgstr "" @@ -2834,25 +2820,25 @@ msgstr "" #: ../../whatsnew/3.6.rst:1937 msgid "" "Raising the :exc:`StopIteration` exception inside a generator will now " -"generate a :exc:`DeprecationWarning`, and will trigger a :exc:`RuntimeError`" -" in Python 3.7. See :ref:`whatsnew-pep-479` for details." +"generate a :exc:`DeprecationWarning`, and will trigger a :exc:`RuntimeError` " +"in Python 3.7. See :ref:`whatsnew-pep-479` for details." msgstr "" #: ../../whatsnew/3.6.rst:1941 msgid "" "The :meth:`__aiter__` method is now expected to return an asynchronous " -"iterator directly instead of returning an awaitable as previously. Doing the" -" former will trigger a :exc:`DeprecationWarning`. Backward compatibility " -"will be removed in Python 3.7. (Contributed by Yury Selivanov in " -":issue:`27243`.)" +"iterator directly instead of returning an awaitable as previously. Doing the " +"former will trigger a :exc:`DeprecationWarning`. Backward compatibility " +"will be removed in Python 3.7. (Contributed by Yury Selivanov in :issue:" +"`27243`.)" msgstr "" #: ../../whatsnew/3.6.rst:1947 msgid "" -"A backslash-character pair that is not a valid escape sequence now generates" -" a :exc:`DeprecationWarning`. Although this will eventually become a " -":exc:`SyntaxError`, that will not be for several Python releases. " -"(Contributed by Emanuel Barry in :issue:`27364`.)" +"A backslash-character pair that is not a valid escape sequence now generates " +"a :exc:`DeprecationWarning`. Although this will eventually become a :exc:" +"`SyntaxError`, that will not be for several Python releases. (Contributed by " +"Emanuel Barry in :issue:`27364`.)" msgstr "" #: ../../whatsnew/3.6.rst:1952 @@ -2901,10 +2887,10 @@ msgstr "" #: ../../whatsnew/3.6.rst:1988 msgid "" -"The undocumented ``extra_path`` argument to the " -":class:`~distutils.Distribution` constructor is now considered deprecated " -"and will raise a warning if set. Support for this parameter will be " -"removed in a future Python release. See :issue:`27919` for details." +"The undocumented ``extra_path`` argument to the :class:`~distutils." +"Distribution` constructor is now considered deprecated and will raise a " +"warning if set. Support for this parameter will be removed in a future " +"Python release. See :issue:`27919` for details." msgstr "" #: ../../whatsnew/3.6.rst:1995 @@ -2919,12 +2905,12 @@ msgstr "" #: ../../whatsnew/3.6.rst:2005 msgid "" -"The :meth:`importlib.machinery.SourceFileLoader.load_module` and " -":meth:`importlib.machinery.SourcelessFileLoader.load_module` methods are now" -" deprecated. They were the only remaining implementations of " -":meth:`importlib.abc.Loader.load_module` in :mod:`importlib` that had not " -"been deprecated in previous versions of Python in favour of " -":meth:`importlib.abc.Loader.exec_module`." +"The :meth:`importlib.machinery.SourceFileLoader.load_module` and :meth:" +"`importlib.machinery.SourcelessFileLoader.load_module` methods are now " +"deprecated. They were the only remaining implementations of :meth:`importlib." +"abc.Loader.load_module` in :mod:`importlib` that had not been deprecated in " +"previous versions of Python in favour of :meth:`importlib.abc.Loader." +"exec_module`." msgstr "" #: ../../whatsnew/3.6.rst:2012 @@ -2938,8 +2924,8 @@ msgstr "" msgid "" "Undocumented support of general :term:`bytes-like objects ` as paths in :mod:`os` functions, :func:`compile` and similar " -"functions is now deprecated. (Contributed by Serhiy Storchaka in " -":issue:`25791` and :issue:`26754`.)" +"functions is now deprecated. (Contributed by Serhiy Storchaka in :issue:" +"`25791` and :issue:`26754`.)" msgstr "" #: ../../whatsnew/3.6.rst:2027 @@ -2960,9 +2946,9 @@ msgstr "" #: ../../whatsnew/3.6.rst:2039 msgid "" "SSL-related arguments like ``certfile``, ``keyfile`` and ``check_hostname`` " -"in :mod:`ftplib`, :mod:`http.client`, :mod:`imaplib`, :mod:`poplib`, and " -":mod:`smtplib` have been deprecated in favor of ``context``. (Contributed by" -" Christian Heimes in :issue:`28022`.)" +"in :mod:`ftplib`, :mod:`http.client`, :mod:`imaplib`, :mod:`poplib`, and :" +"mod:`smtplib` have been deprecated in favor of ``context``. (Contributed by " +"Christian Heimes in :issue:`28022`.)" msgstr "" #: ../../whatsnew/3.6.rst:2044 @@ -2993,10 +2979,10 @@ msgstr "" #: ../../whatsnew/3.6.rst:2067 msgid "" -"Undocumented functions :c:func:`PyUnicode_AsEncodedObject`, " -":c:func:`PyUnicode_AsDecodedObject`, :c:func:`PyUnicode_AsEncodedUnicode` " -"and :c:func:`PyUnicode_AsDecodedUnicode` are deprecated now. Use the " -":ref:`generic codec based API ` instead." +"Undocumented functions :c:func:`PyUnicode_AsEncodedObject`, :c:func:" +"`PyUnicode_AsDecodedObject`, :c:func:`PyUnicode_AsEncodedUnicode` and :c:" +"func:`PyUnicode_AsDecodedUnicode` are deprecated now. Use the :ref:`generic " +"codec based API ` instead." msgstr "" #: ../../whatsnew/3.6.rst:2074 @@ -3023,41 +3009,41 @@ msgstr "API and Feature Removals" #: ../../whatsnew/3.6.rst:2089 msgid "" "Unknown escapes consisting of ``'\\'`` and an ASCII letter in regular " -"expressions will now cause an error. In replacement templates for " -":func:`re.sub` they are still allowed, but deprecated. The " -":const:`re.LOCALE` flag can now only be used with binary patterns." +"expressions will now cause an error. In replacement templates for :func:`re." +"sub` they are still allowed, but deprecated. The :const:`re.LOCALE` flag can " +"now only be used with binary patterns." msgstr "" #: ../../whatsnew/3.6.rst:2094 msgid "" -"``inspect.getmoduleinfo()`` was removed (was deprecated since CPython 3.3). " -":func:`inspect.getmodulename` should be used for obtaining the module name " +"``inspect.getmoduleinfo()`` was removed (was deprecated since CPython 3.3). :" +"func:`inspect.getmodulename` should be used for obtaining the module name " "for a given path. (Contributed by Yury Selivanov in :issue:`13248`.)" msgstr "" #: ../../whatsnew/3.6.rst:2099 msgid "" "``traceback.Ignore`` class and ``traceback.usage``, ``traceback.modname``, " -"``traceback.fullmodname``, ``traceback.find_lines_from_code``, " -"``traceback.find_lines``, ``traceback.find_strings``, " -"``traceback.find_executable_lines`` methods were removed from the " -":mod:`traceback` module. They were undocumented methods deprecated since " -"Python 3.2 and equivalent functionality is available from private methods." +"``traceback.fullmodname``, ``traceback.find_lines_from_code``, ``traceback." +"find_lines``, ``traceback.find_strings``, ``traceback." +"find_executable_lines`` methods were removed from the :mod:`traceback` " +"module. They were undocumented methods deprecated since Python 3.2 and " +"equivalent functionality is available from private methods." msgstr "" #: ../../whatsnew/3.6.rst:2106 msgid "" -"The ``tk_menuBar()`` and ``tk_bindForTraversal()`` dummy methods in " -":mod:`tkinter` widget classes were removed (corresponding Tk commands were " +"The ``tk_menuBar()`` and ``tk_bindForTraversal()`` dummy methods in :mod:" +"`tkinter` widget classes were removed (corresponding Tk commands were " "obsolete since Tk 4.0)." msgstr "" #: ../../whatsnew/3.6.rst:2110 msgid "" "The :meth:`~zipfile.ZipFile.open` method of the :class:`zipfile.ZipFile` " -"class no longer supports the ``'U'`` mode (was deprecated since Python 3.4)." -" Use :class:`io.TextIOWrapper` for reading compressed text files in " -":term:`universal newlines` mode." +"class no longer supports the ``'U'`` mode (was deprecated since Python 3.4). " +"Use :class:`io.TextIOWrapper` for reading compressed text files in :term:" +"`universal newlines` mode." msgstr "" #: ../../whatsnew/3.6.rst:2115 @@ -3095,8 +3081,8 @@ msgid "" "The output of a special Python build with defined ``COUNT_ALLOCS``, " "``SHOW_ALLOC_COUNT`` or ``SHOW_TRACK_COUNT`` macros is now off by default. " "It can be re-enabled using the ``-X showalloccount`` option. It now outputs " -"to ``stderr`` instead of ``stdout``. (Contributed by Serhiy Storchaka in " -":issue:`23034`.)" +"to ``stderr`` instead of ``stdout``. (Contributed by Serhiy Storchaka in :" +"issue:`23034`.)" msgstr "" #: ../../whatsnew/3.6.rst:2142 @@ -3106,8 +3092,8 @@ msgstr "Changes in the Python API" #: ../../whatsnew/3.6.rst:2144 msgid "" ":func:`open() ` will no longer allow combining the ``'U'`` mode flag " -"with ``'+'``. (Contributed by Jeff Balogh and John O'Connor in " -":issue:`2091`.)" +"with ``'+'``. (Contributed by Jeff Balogh and John O'Connor in :issue:" +"`2091`.)" msgstr "" #: ../../whatsnew/3.6.rst:2148 @@ -3124,8 +3110,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:2154 msgid "" -"When :meth:`importlib.abc.Loader.exec_module` is defined, " -":meth:`importlib.abc.Loader.create_module` must also be defined." +"When :meth:`importlib.abc.Loader.exec_module` is defined, :meth:`importlib." +"abc.Loader.create_module` must also be defined." msgstr "" #: ../../whatsnew/3.6.rst:2157 @@ -3136,106 +3122,106 @@ msgstr "" #: ../../whatsnew/3.6.rst:2160 msgid "" -"The format of the ``co_lnotab`` attribute of code objects changed to support" -" a negative line number delta. By default, Python does not emit bytecode " -"with a negative line number delta. Functions using ``frame.f_lineno``, " +"The format of the ``co_lnotab`` attribute of code objects changed to support " +"a negative line number delta. By default, Python does not emit bytecode with " +"a negative line number delta. Functions using ``frame.f_lineno``, " "``PyFrame_GetLineNumber()`` or ``PyCode_Addr2Line()`` are not affected. " "Functions directly decoding ``co_lnotab`` should be updated to use a signed " "8-bit integer type for the line number delta, but this is only required to " -"support applications using a negative line number delta. See " -"``Objects/lnotab_notes.txt`` for the ``co_lnotab`` format and how to decode " -"it, and see the :pep:`511` for the rationale." +"support applications using a negative line number delta. See ``Objects/" +"lnotab_notes.txt`` for the ``co_lnotab`` format and how to decode it, and " +"see the :pep:`511` for the rationale." msgstr "" #: ../../whatsnew/3.6.rst:2170 msgid "" -"The functions in the :mod:`compileall` module now return booleans instead of" -" ``1`` or ``0`` to represent success or failure, respectively. Thanks to " +"The functions in the :mod:`compileall` module now return booleans instead of " +"``1`` or ``0`` to represent success or failure, respectively. Thanks to " "booleans being a subclass of integers, this should only be an issue if you " "were doing identity checks for ``1`` or ``0``. See :issue:`25768`." msgstr "" #: ../../whatsnew/3.6.rst:2175 msgid "" -"Reading the :attr:`~urllib.parse.SplitResult.port` attribute of " -":func:`urllib.parse.urlsplit` and :func:`~urllib.parse.urlparse` results now" -" raises :exc:`ValueError` for out-of-range values, rather than returning " -":const:`None`. See :issue:`20059`." +"Reading the :attr:`~urllib.parse.SplitResult.port` attribute of :func:" +"`urllib.parse.urlsplit` and :func:`~urllib.parse.urlparse` results now " +"raises :exc:`ValueError` for out-of-range values, rather than returning :" +"const:`None`. See :issue:`20059`." msgstr "" #: ../../whatsnew/3.6.rst:2180 msgid "" -"The :mod:`imp` module now raises a :exc:`DeprecationWarning` instead of " -":exc:`PendingDeprecationWarning`." +"The :mod:`imp` module now raises a :exc:`DeprecationWarning` instead of :exc:" +"`PendingDeprecationWarning`." msgstr "" #: ../../whatsnew/3.6.rst:2183 msgid "" "The following modules have had missing APIs added to their :attr:`__all__` " -"attributes to match the documented APIs: :mod:`calendar`, :mod:`cgi`, " -":mod:`csv`, :mod:`~xml.etree.ElementTree`, :mod:`enum`, :mod:`fileinput`, " -":mod:`ftplib`, :mod:`logging`, :mod:`mailbox`, :mod:`mimetypes`, " -":mod:`optparse`, :mod:`plistlib`, :mod:`smtpd`, :mod:`subprocess`, " -":mod:`tarfile`, :mod:`threading` and :mod:`wave`. This means they will " -"export new symbols when ``import *`` is used. (Contributed by Joel Taddei " -"and Jacek Kołodziej in :issue:`23883`.)" +"attributes to match the documented APIs: :mod:`calendar`, :mod:`cgi`, :mod:" +"`csv`, :mod:`~xml.etree.ElementTree`, :mod:`enum`, :mod:`fileinput`, :mod:" +"`ftplib`, :mod:`logging`, :mod:`mailbox`, :mod:`mimetypes`, :mod:" +"`optparse`, :mod:`plistlib`, :mod:`smtpd`, :mod:`subprocess`, :mod:" +"`tarfile`, :mod:`threading` and :mod:`wave`. This means they will export " +"new symbols when ``import *`` is used. (Contributed by Joel Taddei and Jacek " +"Kołodziej in :issue:`23883`.)" msgstr "" #: ../../whatsnew/3.6.rst:2194 msgid "" -"When performing a relative import, if ``__package__`` does not compare equal" -" to ``__spec__.parent`` then :exc:`ImportWarning` is raised. (Contributed by" -" Brett Cannon in :issue:`25791`.)" +"When performing a relative import, if ``__package__`` does not compare equal " +"to ``__spec__.parent`` then :exc:`ImportWarning` is raised. (Contributed by " +"Brett Cannon in :issue:`25791`.)" msgstr "" #: ../../whatsnew/3.6.rst:2198 msgid "" -"When a relative import is performed and no parent package is known, then " -":exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be " +"When a relative import is performed and no parent package is known, then :" +"exc:`ImportError` will be raised. Previously, :exc:`SystemError` could be " "raised. (Contributed by Brett Cannon in :issue:`18018`.)" msgstr "" #: ../../whatsnew/3.6.rst:2202 msgid "" -"Servers based on the :mod:`socketserver` module, including those defined in " -":mod:`http.server`, :mod:`xmlrpc.server` and :mod:`wsgiref.simple_server`, " +"Servers based on the :mod:`socketserver` module, including those defined in :" +"mod:`http.server`, :mod:`xmlrpc.server` and :mod:`wsgiref.simple_server`, " "now only catch exceptions derived from :exc:`Exception`. Therefore if a " -"request handler raises an exception like :exc:`SystemExit` or " -":exc:`KeyboardInterrupt`, :meth:`~socketserver.BaseServer.handle_error` is " -"no longer called, and the exception will stop a single-threaded server. " +"request handler raises an exception like :exc:`SystemExit` or :exc:" +"`KeyboardInterrupt`, :meth:`~socketserver.BaseServer.handle_error` is no " +"longer called, and the exception will stop a single-threaded server. " "(Contributed by Martin Panter in :issue:`23430`.)" msgstr "" #: ../../whatsnew/3.6.rst:2211 msgid "" -":func:`spwd.getspnam` now raises a :exc:`PermissionError` instead of " -":exc:`KeyError` if the user doesn't have privileges." +":func:`spwd.getspnam` now raises a :exc:`PermissionError` instead of :exc:" +"`KeyError` if the user doesn't have privileges." msgstr "" #: ../../whatsnew/3.6.rst:2214 msgid "" "The :meth:`socket.socket.close` method now raises an exception if an error " -"(e.g. ``EBADF``) was reported by the underlying system call. (Contributed by" -" Martin Panter in :issue:`26685`.)" +"(e.g. ``EBADF``) was reported by the underlying system call. (Contributed by " +"Martin Panter in :issue:`26685`.)" msgstr "" #: ../../whatsnew/3.6.rst:2218 msgid "" -"The *decode_data* argument for the :class:`smtpd.SMTPChannel` and " -":class:`smtpd.SMTPServer` constructors is now ``False`` by default. This " -"means that the argument passed to :meth:`~smtpd.SMTPServer.process_message` " -"is now a bytes object by default, and ``process_message()`` will be passed " -"keyword arguments. Code that has already been updated in accordance with the" -" deprecation warning generated by 3.5 will not be affected." +"The *decode_data* argument for the :class:`smtpd.SMTPChannel` and :class:" +"`smtpd.SMTPServer` constructors is now ``False`` by default. This means that " +"the argument passed to :meth:`~smtpd.SMTPServer.process_message` is now a " +"bytes object by default, and ``process_message()`` will be passed keyword " +"arguments. Code that has already been updated in accordance with the " +"deprecation warning generated by 3.5 will not be affected." msgstr "" #: ../../whatsnew/3.6.rst:2226 msgid "" -"All optional arguments of the :func:`~json.dump`, :func:`~json.dumps`, " -":func:`~json.load` and :func:`~json.loads` functions and " -":class:`~json.JSONEncoder` and :class:`~json.JSONDecoder` class constructors" -" in the :mod:`json` module are now :ref:`keyword-only `. (Contributed by Serhiy Storchaka in :issue:`18726`.)" +"All optional arguments of the :func:`~json.dump`, :func:`~json.dumps`, :func:" +"`~json.load` and :func:`~json.loads` functions and :class:`~json." +"JSONEncoder` and :class:`~json.JSONDecoder` class constructors in the :mod:" +"`json` module are now :ref:`keyword-only `. " +"(Contributed by Serhiy Storchaka in :issue:`18726`.)" msgstr "" #: ../../whatsnew/3.6.rst:2233 @@ -3243,25 +3229,28 @@ msgid "" "Subclasses of :class:`type` which don't override ``type.__new__`` may no " "longer use the one-argument form to get the type of an object." msgstr "" +"Sub-classes de :class:`type` que não fazem sobrecarga de ``type.__new__`` " +"não podem mais usar a forma com apenas um argumento para obter o tipo de um " +"objeto." #: ../../whatsnew/3.6.rst:2236 msgid "" -"As part of :pep:`487`, the handling of keyword arguments passed to " -":class:`type` (other than the metaclass hint, ``metaclass``) is now " -"consistently delegated to :meth:`object.__init_subclass__`. This means that " -":meth:`type.__new__` and :meth:`type.__init__` both now accept arbitrary " -"keyword arguments, but :meth:`object.__init_subclass__` (which is called " -"from :meth:`type.__new__`) will reject them by default. Custom metaclasses " -"accepting additional keyword arguments will need to adjust their calls to " -":meth:`type.__new__` (whether direct or via :class:`super`) accordingly." +"As part of :pep:`487`, the handling of keyword arguments passed to :class:" +"`type` (other than the metaclass hint, ``metaclass``) is now consistently " +"delegated to :meth:`object.__init_subclass__`. This means that :meth:`type." +"__new__` and :meth:`type.__init__` both now accept arbitrary keyword " +"arguments, but :meth:`object.__init_subclass__` (which is called from :meth:" +"`type.__new__`) will reject them by default. Custom metaclasses accepting " +"additional keyword arguments will need to adjust their calls to :meth:`type." +"__new__` (whether direct or via :class:`super`) accordingly." msgstr "" #: ../../whatsnew/3.6.rst:2245 msgid "" "In :class:`distutils.command.sdist.sdist`, the ``default_format`` attribute " "has been removed and is no longer honored. Instead, the gzipped tarfile " -"format is the default on all platforms and no platform-specific selection is" -" made. In environments where distributions are built on Windows and zip " +"format is the default on all platforms and no platform-specific selection is " +"made. In environments where distributions are built on Windows and zip " "distributions are required, configure the project with a ``setup.cfg`` file " "containing the following:" msgstr "" @@ -3274,27 +3263,26 @@ msgstr "" #: ../../whatsnew/3.6.rst:2261 msgid "" -"In the :mod:`urllib.request` module and the " -":meth:`http.client.HTTPConnection.request` method, if no Content-Length " -"header field has been specified and the request body is a file object, it is" -" now sent with HTTP 1.1 chunked encoding. If a file object has to be sent to" -" a HTTP 1.0 server, the Content-Length value now has to be specified by the " -"caller. (Contributed by Demian Brecht and Rolf Krahl with tweaks from Martin" -" Panter in :issue:`12319`.)" +"In the :mod:`urllib.request` module and the :meth:`http.client." +"HTTPConnection.request` method, if no Content-Length header field has been " +"specified and the request body is a file object, it is now sent with HTTP " +"1.1 chunked encoding. If a file object has to be sent to a HTTP 1.0 server, " +"the Content-Length value now has to be specified by the caller. (Contributed " +"by Demian Brecht and Rolf Krahl with tweaks from Martin Panter in :issue:" +"`12319`.)" msgstr "" #: ../../whatsnew/3.6.rst:2270 msgid "" -"The :class:`~csv.DictReader` now returns rows of type " -":class:`~collections.OrderedDict`. (Contributed by Steve Holden in " -":issue:`27842`.)" +"The :class:`~csv.DictReader` now returns rows of type :class:`~collections." +"OrderedDict`. (Contributed by Steve Holden in :issue:`27842`.)" msgstr "" #: ../../whatsnew/3.6.rst:2274 msgid "" -"The :const:`crypt.METHOD_CRYPT` will no longer be added to ``crypt.methods``" -" if unsupported by the platform. (Contributed by Victor Stinner in " -":issue:`25287`.)" +"The :const:`crypt.METHOD_CRYPT` will no longer be added to ``crypt.methods`` " +"if unsupported by the platform. (Contributed by Victor Stinner in :issue:" +"`25287`.)" msgstr "" #: ../../whatsnew/3.6.rst:2282 @@ -3313,34 +3301,34 @@ msgstr "" #: ../../whatsnew/3.6.rst:2291 msgid "" "The :func:`mmap.write() ` function now returns the number of " -"bytes written like other write methods. (Contributed by Jakub Stasiak in " -":issue:`26335`.)" +"bytes written like other write methods. (Contributed by Jakub Stasiak in :" +"issue:`26335`.)" msgstr "" #: ../../whatsnew/3.6.rst:2295 msgid "" -"The :func:`pkgutil.iter_modules` and :func:`pkgutil.walk_packages` functions" -" now return :class:`~pkgutil.ModuleInfo` named tuples. (Contributed by " +"The :func:`pkgutil.iter_modules` and :func:`pkgutil.walk_packages` functions " +"now return :class:`~pkgutil.ModuleInfo` named tuples. (Contributed by " "Ramchandra Apte in :issue:`17211`.)" msgstr "" #: ../../whatsnew/3.6.rst:2299 msgid "" -":func:`re.sub` now raises an error for invalid numerical group references in" -" replacement templates even if the pattern is not found in the string. The " +":func:`re.sub` now raises an error for invalid numerical group references in " +"replacement templates even if the pattern is not found in the string. The " "error message for invalid group references now includes the group index and " -"the position of the reference. (Contributed by SilentGhost, Serhiy Storchaka" -" in :issue:`25953`.)" +"the position of the reference. (Contributed by SilentGhost, Serhiy Storchaka " +"in :issue:`25953`.)" msgstr "" #: ../../whatsnew/3.6.rst:2305 msgid "" ":class:`zipfile.ZipFile` will now raise :exc:`NotImplementedError` for " -"unrecognized compression values. Previously a plain :exc:`RuntimeError` was" -" raised. Additionally, calling :class:`~zipfile.ZipFile` methods on a " -"closed ZipFile or calling the :meth:`~zipfile.ZipFile.write` method on a " -"ZipFile created with mode ``'r'`` will raise a :exc:`ValueError`. " -"Previously, a :exc:`RuntimeError` was raised in those scenarios." +"unrecognized compression values. Previously a plain :exc:`RuntimeError` was " +"raised. Additionally, calling :class:`~zipfile.ZipFile` methods on a closed " +"ZipFile or calling the :meth:`~zipfile.ZipFile.write` method on a ZipFile " +"created with mode ``'r'`` will raise a :exc:`ValueError`. Previously, a :exc:" +"`RuntimeError` was raised in those scenarios." msgstr "" #: ../../whatsnew/3.6.rst:2312 @@ -3348,20 +3336,20 @@ msgid "" "when custom metaclasses are combined with zero-argument :func:`super` or " "direct references from methods to the implicit ``__class__`` closure " "variable, the implicit ``__classcell__`` namespace entry must now be passed " -"up to ``type.__new__`` for initialisation. Failing to do so will result in a" -" :exc:`DeprecationWarning` in Python 3.6 and a :exc:`RuntimeError` in Python" -" 3.8." +"up to ``type.__new__`` for initialisation. Failing to do so will result in " +"a :exc:`DeprecationWarning` in Python 3.6 and a :exc:`RuntimeError` in " +"Python 3.8." msgstr "" #: ../../whatsnew/3.6.rst:2319 msgid "" -"With the introduction of :exc:`ModuleNotFoundError`, import system consumers" -" may start expecting import system replacements to raise that more specific " -"exception when appropriate, rather than the less-specific " -":exc:`ImportError`. To provide future compatibility with such consumers, " -"implementors of alternative import systems that completely replace " -":func:`__import__` will need to update their implementations to raise the " -"new subclass when a module can't be found at all. Implementors of compliant " +"With the introduction of :exc:`ModuleNotFoundError`, import system consumers " +"may start expecting import system replacements to raise that more specific " +"exception when appropriate, rather than the less-specific :exc:" +"`ImportError`. To provide future compatibility with such consumers, " +"implementors of alternative import systems that completely replace :func:" +"`__import__` will need to update their implementations to raise the new " +"subclass when a module can't be found at all. Implementors of compliant " "plugins to the default import system shouldn't need to make any changes, as " "the default import system will raise the new subclass when appropriate." msgstr "" @@ -3375,8 +3363,8 @@ msgid "" "The :c:func:`PyMem_Malloc` allocator family now uses the :ref:`pymalloc " "allocator ` rather than the system :c:func:`malloc`. Applications " "calling :c:func:`PyMem_Malloc` without holding the GIL can now crash. Set " -"the :envvar:`PYTHONMALLOC` environment variable to ``debug`` to validate the" -" usage of memory allocators in your application. See :issue:`26249`." +"the :envvar:`PYTHONMALLOC` environment variable to ``debug`` to validate the " +"usage of memory allocators in your application. See :issue:`26249`." msgstr "" #: ../../whatsnew/3.6.rst:2339 @@ -3397,35 +3385,35 @@ msgstr "" #: ../../whatsnew/3.6.rst:2348 msgid "" "The Python interpreter now uses a 16-bit wordcode instead of bytecode. " -"(Contributed by Demur Rumed with input and reviews from Serhiy Storchaka and" -" Victor Stinner in :issue:`26647` and :issue:`28050`.)" +"(Contributed by Demur Rumed with input and reviews from Serhiy Storchaka and " +"Victor Stinner in :issue:`26647` and :issue:`28050`.)" msgstr "" #: ../../whatsnew/3.6.rst:2352 msgid "" -"The new :opcode:`FORMAT_VALUE` and :opcode:`BUILD_STRING` opcodes as part of" -" the :ref:`formatted string literal ` implementation. " -"(Contributed by Eric Smith in :issue:`25483` and Serhiy Storchaka in " -":issue:`27078`.)" +"The new :opcode:`FORMAT_VALUE` and :opcode:`BUILD_STRING` opcodes as part of " +"the :ref:`formatted string literal ` implementation. " +"(Contributed by Eric Smith in :issue:`25483` and Serhiy Storchaka in :issue:" +"`27078`.)" msgstr "" #: ../../whatsnew/3.6.rst:2357 msgid "" "The new :opcode:`BUILD_CONST_KEY_MAP` opcode to optimize the creation of " -"dictionaries with constant keys. (Contributed by Serhiy Storchaka in " -":issue:`27140`.)" +"dictionaries with constant keys. (Contributed by Serhiy Storchaka in :issue:" +"`27140`.)" msgstr "" #: ../../whatsnew/3.6.rst:2361 msgid "" "The function call opcodes have been heavily reworked for better performance " -"and simpler implementation. The :opcode:`MAKE_FUNCTION`, " -":opcode:`CALL_FUNCTION`, :opcode:`CALL_FUNCTION_KW` and " -":opcode:`BUILD_MAP_UNPACK_WITH_CALL` opcodes have been modified, the new " -":opcode:`CALL_FUNCTION_EX` and :opcode:`BUILD_TUPLE_UNPACK_WITH_CALL` have " -"been added, and ``CALL_FUNCTION_VAR``, ``CALL_FUNCTION_VAR_KW`` and " -"``MAKE_CLOSURE`` opcodes have been removed. (Contributed by Demur Rumed in " -":issue:`27095`, and Serhiy Storchaka in :issue:`27213`, :issue:`28257`.)" +"and simpler implementation. The :opcode:`MAKE_FUNCTION`, :opcode:" +"`CALL_FUNCTION`, :opcode:`CALL_FUNCTION_KW` and :opcode:" +"`BUILD_MAP_UNPACK_WITH_CALL` opcodes have been modified, the new :opcode:" +"`CALL_FUNCTION_EX` and :opcode:`BUILD_TUPLE_UNPACK_WITH_CALL` have been " +"added, and ``CALL_FUNCTION_VAR``, ``CALL_FUNCTION_VAR_KW`` and " +"``MAKE_CLOSURE`` opcodes have been removed. (Contributed by Demur Rumed in :" +"issue:`27095`, and Serhiy Storchaka in :issue:`27213`, :issue:`28257`.)" msgstr "" #: ../../whatsnew/3.6.rst:2372 @@ -3447,8 +3435,8 @@ msgstr "" msgid "" "To simplify cross-compilation, and to ensure that CPython can reliably be " "compiled without requiring an existing version of Python to already be " -"available, the autotools-based build system no longer attempts to implicitly" -" recompile generated files based on file modification times." +"available, the autotools-based build system no longer attempts to implicitly " +"recompile generated files based on file modification times." msgstr "" #: ../../whatsnew/3.6.rst:2388 @@ -3460,8 +3448,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:2392 msgid "" -"More selective regeneration targets are also defined - see " -":source:`Makefile.pre.in` for details." +"More selective regeneration targets are also defined - see :source:`Makefile." +"pre.in` for details." msgstr "" #: ../../whatsnew/3.6.rst:2395 ../../whatsnew/3.6.rst:2408 @@ -3491,8 +3479,8 @@ msgstr "" msgid "" "The ``PyExc_RecursionErrorInst`` singleton that was part of the public API " "has been removed as its members being never cleared may cause a segfault " -"during finalization of the interpreter. (Contributed by Xavier de Gaye in " -":issue:`22898` and :issue:`30697`.)" +"during finalization of the interpreter. (Contributed by Xavier de Gaye in :" +"issue:`22898` and :issue:`30697`.)" msgstr "" #: ../../whatsnew/3.6.rst:2423 @@ -3501,8 +3489,8 @@ msgstr "" #: ../../whatsnew/3.6.rst:2425 msgid "" -"The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE``" -" locale to the ``LC_NUMERIC`` locale in some cases. (Contributed by Victor " +"The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE`` " +"locale to the ``LC_NUMERIC`` locale in some cases. (Contributed by Victor " "Stinner in :issue:`31900`.)" msgstr "" @@ -3512,8 +3500,22 @@ msgstr "" #: ../../whatsnew/3.6.rst:2432 msgid "" -"In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token" -" when provided with input that does not have a trailing new line. This " +"In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token " +"when provided with input that does not have a trailing new line. This " "behavior now matches what the C tokenizer does internally. (Contributed by " "Ammar Askar in :issue:`33899`.)" msgstr "" + +#: ../../whatsnew/3.6.rst:2438 +msgid "Notable changes in Python 3.6.10" +msgstr "" + +#: ../../whatsnew/3.6.rst:2440 +msgid "" +"Due to significant security concerns, the *reuse_address* parameter of :meth:" +"`asyncio.loop.create_datagram_endpoint` is no longer supported. This is " +"because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For " +"more details, see the documentation for ``loop.create_datagram_endpoint()``. " +"(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:" +"`37228`.)" +msgstr "" diff --git a/whatsnew/3.7.po b/whatsnew/3.7.po index 0f616a2d9..1df65bc6b 100644 --- a/whatsnew/3.7.po +++ b/whatsnew/3.7.po @@ -1,219 +1,259 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # +# Translators: +# Raphael Mendonça, 2019 +# Claudio Rogerio Carvalho Filho , 2019 +# André Filipe de Assunção e Brito , 2019 +# Italo Penaforte , 2019 +# Victor Matheus Castro , 2019 +# Vinícius Muniz de Melo , 2020 +# Hemílio Lauro , 2020 +# Marco Rougeth , 2020 +# Rafael Fontenelle , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-25 22:43+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" +"PO-Revision-Date: 2019-09-01 03:35+0000\n" +"Last-Translator: Rafael Fontenelle , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../Doc/whatsnew/3.7.rst:3 +#: ../../whatsnew/3.7.rst:3 msgid "What's New In Python 3.7" -msgstr "" +msgstr "O que há de novo no Python 3.7" -#: ../Doc/whatsnew/3.7.rst:0 +#: ../../whatsnew/3.7.rst:0 msgid "Editor" -msgstr "" +msgstr "Editor" -#: ../Doc/whatsnew/3.7.rst:5 +#: ../../whatsnew/3.7.rst:5 msgid "Elvis Pranskevichus " -msgstr "" +msgstr "Elvis Pranskevichus " -#: ../Doc/whatsnew/3.7.rst:47 +#: ../../whatsnew/3.7.rst:47 msgid "" "This article explains the new features in Python 3.7, compared to 3.6. " "Python 3.7 was released on June 27, 2018. For full details, see the :ref:" "`changelog `." msgstr "" +"Este artigo explica os novos recursos no Python 3.7, em comparação com 3.6. " +"Python 3.7 foi lançado em 27 de Junho de 2018. Veja :ref:" +"`changelog`para uma lista completa de mudanças." -#: ../Doc/whatsnew/3.7.rst:53 +#: ../../whatsnew/3.7.rst:53 msgid "Summary -- Release Highlights" -msgstr "" +msgstr "Resumo - Destaques da versão" -#: ../Doc/whatsnew/3.7.rst:58 +#: ../../whatsnew/3.7.rst:58 msgid "New syntax features:" -msgstr "" +msgstr "Novos recursos de sintaxe:" -#: ../Doc/whatsnew/3.7.rst:60 +#: ../../whatsnew/3.7.rst:60 msgid "" ":ref:`PEP 563 `, postponed evaluation of type annotations." -msgstr "" +msgstr ":ref:`PEP 563 `, " -#: ../Doc/whatsnew/3.7.rst:62 +#: ../../whatsnew/3.7.rst:62 msgid "Backwards incompatible syntax changes:" -msgstr "" +msgstr "Alterações de sintaxe incompatíveis com versões anteriores:" -#: ../Doc/whatsnew/3.7.rst:64 +#: ../../whatsnew/3.7.rst:64 msgid ":keyword:`async` and :keyword:`await` are now reserved keywords." msgstr "" +":keyword:`async` e :keyword:`await` são agora palavras chave reservadas." -#: ../Doc/whatsnew/3.7.rst:66 +#: ../../whatsnew/3.7.rst:66 msgid "New library modules:" msgstr "Novo módulo de biblioteca:" -#: ../Doc/whatsnew/3.7.rst:68 +#: ../../whatsnew/3.7.rst:68 msgid "" ":mod:`contextvars`: :ref:`PEP 567 -- Context Variables `" msgstr "" +":mod:`contextvars`: :ref:`PEP 567 --Variáveis de Contexto `" -#: ../Doc/whatsnew/3.7.rst:69 +#: ../../whatsnew/3.7.rst:69 msgid ":mod:`dataclasses`: :ref:`PEP 557 -- Data Classes `" msgstr "" +":mod:`dataclasses`: :ref:`PEP 557 -- Classes de Data `" -#: ../Doc/whatsnew/3.7.rst:70 +#: ../../whatsnew/3.7.rst:70 msgid ":ref:`whatsnew37_importlib_resources`" -msgstr "" +msgstr ":ref:`whatsnew37_importlib_resources`" -#: ../Doc/whatsnew/3.7.rst:72 +#: ../../whatsnew/3.7.rst:72 msgid "New built-in features:" -msgstr "Novas funcionalidades built-in:" +msgstr "Novos recursos internos:" -#: ../Doc/whatsnew/3.7.rst:74 +#: ../../whatsnew/3.7.rst:74 msgid "" ":ref:`PEP 553 `, the new :func:`breakpoint` function." -msgstr "" +msgstr ":ref:`PEP 553 `, a nova função :func:`breakpoint` ." -#: ../Doc/whatsnew/3.7.rst:76 +#: ../../whatsnew/3.7.rst:76 msgid "Python data model improvements:" -msgstr "" +msgstr "Melhorias no modelo de dados Python:" -#: ../Doc/whatsnew/3.7.rst:78 +#: ../../whatsnew/3.7.rst:78 msgid "" ":ref:`PEP 562 `, customization of access to module " "attributes." msgstr "" +":ref:`PEP 562 `, customização de acesso aos atributos do " +"módulo." -#: ../Doc/whatsnew/3.7.rst:81 +#: ../../whatsnew/3.7.rst:81 msgid "" ":ref:`PEP 560 `, core support for typing module and " "generic types." msgstr "" +":ref:`PEP 560 `, suporte principal para o módulo de " +"digitação e tipos genéricos." -#: ../Doc/whatsnew/3.7.rst:84 +#: ../../whatsnew/3.7.rst:84 msgid "" "the insertion-order preservation nature of :ref:`dict ` " "objects `has been declared`_ to be an official part of the Python language " "spec." msgstr "" +"a natureza de preservação da ordem de inserção de :ref:`dict ` " +"objects `foi declarada`_ como uma parte oficial da especificação da " +"linguagem Python." -#: ../Doc/whatsnew/3.7.rst:90 +#: ../../whatsnew/3.7.rst:90 msgid "Significant improvements in the standard library:" msgstr "Melhorias significativas na biblioteca padrão:" -#: ../Doc/whatsnew/3.7.rst:92 +#: ../../whatsnew/3.7.rst:92 msgid "" "The :mod:`asyncio` module has received new features, significant :ref:" "`usability and performance improvements `." msgstr "" +"O módulo :mod:`asyncio` recebeu novos recursos, significativos à :ref:` " +"melhorias de usabilidade e desempenho `." -#: ../Doc/whatsnew/3.7.rst:95 +#: ../../whatsnew/3.7.rst:95 msgid "" "The :mod:`time` module gained support for :ref:`functions with nanosecond " "resolution `." msgstr "" +"O módulo :mod:`time` ganhou suporte para :ref:`funções com resolução de " +"nanossegundos `." -#: ../Doc/whatsnew/3.7.rst:98 +#: ../../whatsnew/3.7.rst:98 msgid "CPython implementation improvements:" msgstr "Melhorias na implementação do CPython:" -#: ../Doc/whatsnew/3.7.rst:100 +#: ../../whatsnew/3.7.rst:100 msgid "Avoiding the use of ASCII as a default text encoding:" -msgstr "" +msgstr "Evitando o uso de ASCII como a codificação de texto padrão:" -#: ../Doc/whatsnew/3.7.rst:102 +#: ../../whatsnew/3.7.rst:102 msgid ":ref:`PEP 538 `, legacy C locale coercion" msgstr "" +":ref:`PEP 538 `, herdada de C coerção de localidade." -#: ../Doc/whatsnew/3.7.rst:103 +#: ../../whatsnew/3.7.rst:103 msgid ":ref:`PEP 540 `, forced UTF-8 runtime mode" msgstr "" +":ref:`PEP 540 `, modo de tempo de execução UTF-8 forçado." -#: ../Doc/whatsnew/3.7.rst:104 +#: ../../whatsnew/3.7.rst:104 msgid ":ref:`PEP 552 `, deterministic .pycs" -msgstr "" +msgstr ":ref:`PEP 552 `, determinísticos .pycs" -#: ../Doc/whatsnew/3.7.rst:105 +#: ../../whatsnew/3.7.rst:105 msgid ":ref:`the new development runtime mode `" msgstr "" +":ref:`o novo modo de tempo de execução de desenvolvimento`" -#: ../Doc/whatsnew/3.7.rst:106 +#: ../../whatsnew/3.7.rst:106 msgid "" ":ref:`PEP 565 `, improved :exc:`DeprecationWarning` " "handling" msgstr "" +":ref:`PEP 565 `, aprimorado :exc:`DeprecationWarning` " +"manipulação" -#: ../Doc/whatsnew/3.7.rst:109 +#: ../../whatsnew/3.7.rst:109 msgid "C API improvements:" -msgstr "" +msgstr "Melhorias na API C:" -#: ../Doc/whatsnew/3.7.rst:111 +#: ../../whatsnew/3.7.rst:111 msgid ":ref:`PEP 539 `, new C API for thread-local storage" msgstr "" +":ref:`PEP 539 `, nova API C para armazenamento local de " +"threads" -#: ../Doc/whatsnew/3.7.rst:113 +#: ../../whatsnew/3.7.rst:113 msgid "Documentation improvements:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:115 +#: ../../whatsnew/3.7.rst:115 msgid ":ref:`PEP 545 `, Python documentation translations" msgstr "" -#: ../Doc/whatsnew/3.7.rst:116 +#: ../../whatsnew/3.7.rst:116 msgid "" "New documentation translations: `Japanese `_, " "`French `_, and `Korean `_." msgstr "" -#: ../Doc/whatsnew/3.7.rst:120 +#: ../../whatsnew/3.7.rst:120 msgid "" "This release features notable performance improvements in many areas. The :" "ref:`whatsnew37-perf` section lists them in detail." msgstr "" -#: ../Doc/whatsnew/3.7.rst:123 +#: ../../whatsnew/3.7.rst:123 msgid "" "For a list of changes that may affect compatibility with previous Python " "releases please refer to the :ref:`porting-to-python-37` section." msgstr "" -#: ../Doc/whatsnew/3.7.rst:128 +#: ../../whatsnew/3.7.rst:128 msgid "New Features" msgstr "Novas Funcionalidades" -#: ../Doc/whatsnew/3.7.rst:133 +#: ../../whatsnew/3.7.rst:133 msgid "PEP 563: Postponed Evaluation of Annotations" msgstr "" -#: ../Doc/whatsnew/3.7.rst:135 +#: ../../whatsnew/3.7.rst:135 msgid "" "The advent of type hints in Python uncovered two glaring usability issues " "with the functionality of annotations added in :pep:`3107` and refined " "further in :pep:`526`:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:139 +#: ../../whatsnew/3.7.rst:139 msgid "" "annotations could only use names which were already available in the current " "scope, in other words they didn't support forward references of any kind; and" msgstr "" -#: ../Doc/whatsnew/3.7.rst:143 +#: ../../whatsnew/3.7.rst:143 msgid "" "annotating source code had adverse effects on startup time of Python " "programs." msgstr "" -#: ../Doc/whatsnew/3.7.rst:146 +#: ../../whatsnew/3.7.rst:146 msgid "" "Both of these issues are fixed by postponing the evaluation of annotations. " "Instead of compiling code which executes expressions in annotations at their " @@ -225,35 +265,35 @@ msgid "" "faster." msgstr "" -#: ../Doc/whatsnew/3.7.rst:155 +#: ../../whatsnew/3.7.rst:155 msgid "" "Usability-wise, annotations now support forward references, making the " "following syntax valid::" msgstr "" -#: ../Doc/whatsnew/3.7.rst:169 +#: ../../whatsnew/3.7.rst:169 msgid "" "Since this change breaks compatibility, the new behavior needs to be enabled " "on a per-module basis in Python 3.7 using a :mod:`__future__` import::" msgstr "" -#: ../Doc/whatsnew/3.7.rst:174 +#: ../../whatsnew/3.7.rst:174 msgid "It will become the default in Python 4.0." msgstr "" -#: ../Doc/whatsnew/3.7.rst:178 +#: ../../whatsnew/3.7.rst:178 msgid ":pep:`563` -- Postponed evaluation of annotations" msgstr "" -#: ../Doc/whatsnew/3.7.rst:179 +#: ../../whatsnew/3.7.rst:179 msgid "PEP written and implemented by Łukasz Langa." -msgstr "" +msgstr "PEP written and implemented by Łukasz Langa." -#: ../Doc/whatsnew/3.7.rst:185 +#: ../../whatsnew/3.7.rst:185 msgid "PEP 538: Legacy C Locale Coercion" msgstr "" -#: ../Doc/whatsnew/3.7.rst:187 +#: ../../whatsnew/3.7.rst:187 msgid "" "An ongoing challenge within the Python 3 series has been determining a " "sensible default strategy for handling the \"7-bit ASCII\" text encoding " @@ -261,7 +301,7 @@ msgid "" "non-Windows platforms." msgstr "" -#: ../Doc/whatsnew/3.7.rst:192 +#: ../../whatsnew/3.7.rst:192 msgid "" ":pep:`538` updates the default interpreter command line interface to " "automatically coerce that locale to an available UTF-8 based locale as " @@ -272,13 +312,13 @@ msgid "" "rather than ASCII." msgstr "" -#: ../Doc/whatsnew/3.7.rst:200 +#: ../../whatsnew/3.7.rst:200 msgid "" "The platform support definition in :pep:`11` has also been updated to limit " "full text handling support to suitably configured non-ASCII based locales." msgstr "" -#: ../Doc/whatsnew/3.7.rst:203 +#: ../../whatsnew/3.7.rst:203 msgid "" "As part of this change, the default error handler for :data:`~sys.stdin` " "and :data:`~sys.stdout` is now ``surrogateescape`` (rather than ``strict``) " @@ -287,7 +327,7 @@ msgid "" "`~sys.stderr` continues to be ``backslashreplace``, regardless of locale." msgstr "" -#: ../Doc/whatsnew/3.7.rst:209 +#: ../../whatsnew/3.7.rst:209 msgid "" "Locale coercion is silent by default, but to assist in debugging potentially " "locale related integration problems, explicit warnings (emitted directly on :" @@ -297,7 +337,7 @@ msgid "" "core interpreter is initialized." msgstr "" -#: ../Doc/whatsnew/3.7.rst:215 +#: ../../whatsnew/3.7.rst:215 msgid "" "While :pep:`538`'s locale coercion has the benefit of also affecting " "extension modules (such as GNU ``readline``), as well as child processes " @@ -308,39 +348,39 @@ msgid "" "3.7 also implements :ref:`whatsnew37-pep540`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:225 +#: ../../whatsnew/3.7.rst:225 msgid ":pep:`538` -- Coercing the legacy C locale to a UTF-8 based locale" msgstr "" -#: ../Doc/whatsnew/3.7.rst:226 +#: ../../whatsnew/3.7.rst:226 msgid "PEP written and implemented by Nick Coghlan." -msgstr "" +msgstr "PEP escrita e implementada por Nick Coghlan." -#: ../Doc/whatsnew/3.7.rst:232 +#: ../../whatsnew/3.7.rst:232 msgid "PEP 540: Forced UTF-8 Runtime Mode" msgstr "" -#: ../Doc/whatsnew/3.7.rst:234 +#: ../../whatsnew/3.7.rst:234 msgid "" "The new :option:`-X` ``utf8`` command line option and :envvar:`PYTHONUTF8` " "environment variable can be used to enable the CPython *UTF-8 mode*." msgstr "" -#: ../Doc/whatsnew/3.7.rst:237 +#: ../../whatsnew/3.7.rst:237 msgid "" "When in UTF-8 mode, CPython ignores the locale settings, and uses the UTF-8 " "encoding by default. The error handlers for :data:`sys.stdin` and :data:" "`sys.stdout` streams are set to ``surrogateescape``." msgstr "" -#: ../Doc/whatsnew/3.7.rst:241 +#: ../../whatsnew/3.7.rst:241 msgid "" "The forced UTF-8 mode can be used to change the text handling behavior in an " "embedded Python interpreter without changing the locale settings of an " "embedding application." msgstr "" -#: ../Doc/whatsnew/3.7.rst:245 +#: ../../whatsnew/3.7.rst:245 msgid "" "While :pep:`540`'s UTF-8 mode has the benefit of working regardless of which " "locales are available on the running system, it has the downside of having " @@ -350,7 +390,7 @@ msgid "" "with such components, Python 3.7 also implements :ref:`whatsnew37-pep540`)." msgstr "" -#: ../Doc/whatsnew/3.7.rst:252 +#: ../../whatsnew/3.7.rst:252 msgid "" "The UTF-8 mode is enabled by default when the locale is ``C`` or ``POSIX``, " "and the :pep:`538` locale coercion feature fails to change it to a UTF-8 " @@ -358,25 +398,25 @@ msgid "" "being set, ``LC_ALL`` being set, or the lack of a suitable target locale)." msgstr "" -#: ../Doc/whatsnew/3.7.rst:259 +#: ../../whatsnew/3.7.rst:259 msgid ":pep:`540` -- Add a new UTF-8 mode" msgstr "" -#: ../Doc/whatsnew/3.7.rst:260 ../Doc/whatsnew/3.7.rst:362 +#: ../../whatsnew/3.7.rst:260 ../../whatsnew/3.7.rst:362 msgid "PEP written and implemented by Victor Stinner" -msgstr "" +msgstr "PEP written and implemented by Victor Stinner" -#: ../Doc/whatsnew/3.7.rst:266 +#: ../../whatsnew/3.7.rst:266 msgid "PEP 553: Built-in ``breakpoint()``" msgstr "" -#: ../Doc/whatsnew/3.7.rst:268 +#: ../../whatsnew/3.7.rst:268 msgid "" "Python 3.7 includes the new built-in :func:`breakpoint` function as an easy " "and consistent way to enter the Python debugger." msgstr "" -#: ../Doc/whatsnew/3.7.rst:271 +#: ../../whatsnew/3.7.rst:271 msgid "" "Built-in ``breakpoint()`` calls :func:`sys.breakpointhook`. By default, the " "latter imports :mod:`pdb` and then calls ``pdb.set_trace()``, but by binding " @@ -386,19 +426,19 @@ msgid "" "Set ``PYTHONBREAKPOINT=0`` to completely disable built-in ``breakpoint()``." msgstr "" -#: ../Doc/whatsnew/3.7.rst:281 +#: ../../whatsnew/3.7.rst:281 msgid ":pep:`553` -- Built-in breakpoint()" msgstr "" -#: ../Doc/whatsnew/3.7.rst:282 +#: ../../whatsnew/3.7.rst:282 msgid "PEP written and implemented by Barry Warsaw" msgstr "" -#: ../Doc/whatsnew/3.7.rst:288 +#: ../../whatsnew/3.7.rst:288 msgid "PEP 539: New C API for Thread-Local Storage" msgstr "" -#: ../Doc/whatsnew/3.7.rst:290 +#: ../../whatsnew/3.7.rst:290 msgid "" "While Python provides a C API for thread-local storage support; the " "existing :ref:`Thread Local Storage (TLS) API ` " @@ -407,7 +447,7 @@ msgid "" "neither POSIX-compliant, nor portable in any practical sense." msgstr "" -#: ../Doc/whatsnew/3.7.rst:296 +#: ../../whatsnew/3.7.rst:296 msgid "" ":pep:`539` changes this by providing a new :ref:`Thread Specific Storage " "(TSS) API ` to CPython which supersedes use of " @@ -419,7 +459,7 @@ msgid "" "cannot be safely cast to :c:type:`int`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:305 +#: ../../whatsnew/3.7.rst:305 msgid "" "Note that on platforms where the native TLS key is defined in a way that " "cannot be safely cast to :c:type:`int`, all functions of the existing TLS " @@ -428,44 +468,44 @@ msgid "" "reliably, and that no effort will be made to add such support." msgstr "" -#: ../Doc/whatsnew/3.7.rst:313 +#: ../../whatsnew/3.7.rst:313 msgid ":pep:`539` -- A New C-API for Thread-Local Storage in CPython" msgstr "" -#: ../Doc/whatsnew/3.7.rst:314 +#: ../../whatsnew/3.7.rst:314 msgid "PEP written by Erik M. Bray; implementation by Masayuki Yamamoto." msgstr "" -#: ../Doc/whatsnew/3.7.rst:320 +#: ../../whatsnew/3.7.rst:320 msgid "PEP 562: Customization of Access to Module Attributes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:322 +#: ../../whatsnew/3.7.rst:322 msgid "" "Python 3.7 allows defining :meth:`__getattr__` on modules and will call it " "whenever a module attribute is otherwise not found. Defining :meth:" "`__dir__` on modules is now also allowed." msgstr "" -#: ../Doc/whatsnew/3.7.rst:326 +#: ../../whatsnew/3.7.rst:326 msgid "" "A typical example of where this may be useful is module attribute " "deprecation and lazy loading." msgstr "" -#: ../Doc/whatsnew/3.7.rst:331 +#: ../../whatsnew/3.7.rst:331 msgid ":pep:`562` -- Module ``__getattr__`` and ``__dir__``" -msgstr "" +msgstr ":pep:`562` -- Module ``__getattr__`` and ``__dir__``" -#: ../Doc/whatsnew/3.7.rst:332 ../Doc/whatsnew/3.7.rst:421 +#: ../../whatsnew/3.7.rst:332 ../../whatsnew/3.7.rst:421 msgid "PEP written and implemented by Ivan Levkivskyi" msgstr "" -#: ../Doc/whatsnew/3.7.rst:338 +#: ../../whatsnew/3.7.rst:338 msgid "PEP 564: New Time Functions With Nanosecond Resolution" msgstr "" -#: ../Doc/whatsnew/3.7.rst:340 +#: ../../whatsnew/3.7.rst:340 msgid "" "The resolution of clocks in modern systems can exceed the limited precision " "of a floating point number returned by the :func:`time.time` function and " @@ -474,35 +514,35 @@ msgid "" "module:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:346 ../Doc/whatsnew/3.7.rst:1430 +#: ../../whatsnew/3.7.rst:346 ../../whatsnew/3.7.rst:1450 msgid ":func:`time.clock_gettime_ns`" -msgstr "" +msgstr ":func:`time.clock_gettime_ns`" -#: ../Doc/whatsnew/3.7.rst:347 ../Doc/whatsnew/3.7.rst:1431 +#: ../../whatsnew/3.7.rst:347 ../../whatsnew/3.7.rst:1451 msgid ":func:`time.clock_settime_ns`" -msgstr "" +msgstr ":func:`time.clock_settime_ns`" -#: ../Doc/whatsnew/3.7.rst:348 ../Doc/whatsnew/3.7.rst:1432 +#: ../../whatsnew/3.7.rst:348 ../../whatsnew/3.7.rst:1452 msgid ":func:`time.monotonic_ns`" -msgstr "" +msgstr ":func:`time.monotonic_ns`" -#: ../Doc/whatsnew/3.7.rst:349 ../Doc/whatsnew/3.7.rst:1433 +#: ../../whatsnew/3.7.rst:349 ../../whatsnew/3.7.rst:1453 msgid ":func:`time.perf_counter_ns`" -msgstr "" +msgstr ":func:`time.perf_counter_ns`" -#: ../Doc/whatsnew/3.7.rst:350 ../Doc/whatsnew/3.7.rst:1434 +#: ../../whatsnew/3.7.rst:350 ../../whatsnew/3.7.rst:1454 msgid ":func:`time.process_time_ns`" -msgstr "" +msgstr ":func:`time.process_time_ns`" -#: ../Doc/whatsnew/3.7.rst:351 ../Doc/whatsnew/3.7.rst:1435 +#: ../../whatsnew/3.7.rst:351 ../../whatsnew/3.7.rst:1455 msgid ":func:`time.time_ns`" -msgstr "" +msgstr ":func:`time.time_ns`" -#: ../Doc/whatsnew/3.7.rst:353 +#: ../../whatsnew/3.7.rst:353 msgid "The new functions return the number of nanoseconds as an integer value." msgstr "" -#: ../Doc/whatsnew/3.7.rst:355 +#: ../../whatsnew/3.7.rst:355 msgid "" "`Measurements `_ show that on Linux and Windows the resolution of :" @@ -510,15 +550,15 @@ msgid "" "time`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:361 +#: ../../whatsnew/3.7.rst:361 msgid ":pep:`564` -- Add new time functions with nanosecond resolution" msgstr "" -#: ../Doc/whatsnew/3.7.rst:368 +#: ../../whatsnew/3.7.rst:368 msgid "PEP 565: Show DeprecationWarning in ``__main__``" msgstr "" -#: ../Doc/whatsnew/3.7.rst:370 +#: ../../whatsnew/3.7.rst:370 msgid "" "The default handling of :exc:`DeprecationWarning` has been changed such that " "these warnings are once more shown by default, but only when the code " @@ -529,20 +569,20 @@ msgid "" "library and framework modules will continue to be hidden by default." msgstr "" -#: ../Doc/whatsnew/3.7.rst:378 +#: ../../whatsnew/3.7.rst:378 msgid "" "As a result of this change, the standard library now allows developers to " "choose between three different deprecation warning behaviours:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:381 +#: ../../whatsnew/3.7.rst:381 msgid "" ":exc:`FutureWarning`: always displayed by default, recommended for warnings " "intended to be seen by application end users (e.g. for deprecated " "application configuration settings)." msgstr "" -#: ../Doc/whatsnew/3.7.rst:384 +#: ../../whatsnew/3.7.rst:384 msgid "" ":exc:`DeprecationWarning`: displayed by default only in :mod:`__main__` and " "when running tests, recommended for warnings intended to be seen by other " @@ -550,14 +590,14 @@ msgid "" "an error." msgstr "" -#: ../Doc/whatsnew/3.7.rst:388 +#: ../../whatsnew/3.7.rst:388 msgid "" ":exc:`PendingDeprecationWarning`: displayed by default only when running " "tests, intended for cases where a future version upgrade will change the " "warning category to :exc:`DeprecationWarning` or :exc:`FutureWarning`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:392 +#: ../../whatsnew/3.7.rst:392 msgid "" "Previously both :exc:`DeprecationWarning` and :exc:" "`PendingDeprecationWarning` were only visible when running tests, which " @@ -565,19 +605,19 @@ msgid "" "interactively could be surprised by breaking changes in the APIs they used." msgstr "" -#: ../Doc/whatsnew/3.7.rst:399 +#: ../../whatsnew/3.7.rst:399 msgid ":pep:`565` -- Show DeprecationWarning in ``__main__``" -msgstr "" +msgstr ":pep:`565` -- Show DeprecationWarning in ``__main__``" -#: ../Doc/whatsnew/3.7.rst:400 +#: ../../whatsnew/3.7.rst:400 msgid "PEP written and implemented by Nick Coghlan" msgstr "" -#: ../Doc/whatsnew/3.7.rst:406 +#: ../../whatsnew/3.7.rst:406 msgid "PEP 560: Core Support for ``typing`` module and Generic Types" msgstr "" -#: ../Doc/whatsnew/3.7.rst:408 +#: ../../whatsnew/3.7.rst:408 msgid "" "Initially :pep:`484` was designed in such way that it would not introduce " "*any* changes to the core CPython interpreter. Now type hints and the :mod:" @@ -590,15 +630,15 @@ msgid "" "module are fixed." msgstr "" -#: ../Doc/whatsnew/3.7.rst:420 +#: ../../whatsnew/3.7.rst:420 msgid ":pep:`560` -- Core support for typing module and generic types" msgstr "" -#: ../Doc/whatsnew/3.7.rst:427 +#: ../../whatsnew/3.7.rst:427 msgid "PEP 552: Hash-based .pyc Files" msgstr "" -#: ../Doc/whatsnew/3.7.rst:429 +#: ../../whatsnew/3.7.rst:429 msgid "" "Python has traditionally checked the up-to-dateness of bytecode cache files " "(i.e., ``.pyc`` files) by comparing the source metadata (last-modified " @@ -610,7 +650,7 @@ msgid "" "reproducible-builds.org/>`_ and content-based build systems." msgstr "" -#: ../Doc/whatsnew/3.7.rst:438 +#: ../../whatsnew/3.7.rst:438 msgid "" ":pep:`552` extends the pyc format to allow the hash of the source file to be " "used for invalidation instead of the source timestamp. Such ``.pyc`` files " @@ -620,7 +660,7 @@ msgid "" "`compileall`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:444 +#: ../../whatsnew/3.7.rst:444 msgid "" "Hash-based ``.pyc`` files come in two variants: checked and unchecked. " "Python validates checked hash-based ``.pyc`` files against the corresponding " @@ -630,59 +670,59 @@ msgid "" "is responsible for keeping ``.pyc`` files up-to-date." msgstr "" -#: ../Doc/whatsnew/3.7.rst:451 +#: ../../whatsnew/3.7.rst:451 msgid "See :ref:`pyc-invalidation` for more information." msgstr "" -#: ../Doc/whatsnew/3.7.rst:455 +#: ../../whatsnew/3.7.rst:455 msgid ":pep:`552` -- Deterministic pycs" msgstr "" -#: ../Doc/whatsnew/3.7.rst:456 +#: ../../whatsnew/3.7.rst:456 msgid "PEP written and implemented by Benjamin Peterson" msgstr "" -#: ../Doc/whatsnew/3.7.rst:462 +#: ../../whatsnew/3.7.rst:462 msgid "PEP 545: Python Documentation Translations" msgstr "" -#: ../Doc/whatsnew/3.7.rst:464 +#: ../../whatsnew/3.7.rst:464 msgid "" ":pep:`545` describes the process of creating and maintaining Python " "documentation translations." msgstr "" -#: ../Doc/whatsnew/3.7.rst:467 +#: ../../whatsnew/3.7.rst:467 msgid "Three new translations have been added:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:469 +#: ../../whatsnew/3.7.rst:469 msgid "Japanese: https://docs.python.org/ja/" msgstr "" -#: ../Doc/whatsnew/3.7.rst:470 +#: ../../whatsnew/3.7.rst:470 msgid "French: https://docs.python.org/fr/" msgstr "" -#: ../Doc/whatsnew/3.7.rst:471 +#: ../../whatsnew/3.7.rst:471 msgid "Korean: https://docs.python.org/ko/" msgstr "" -#: ../Doc/whatsnew/3.7.rst:476 +#: ../../whatsnew/3.7.rst:476 msgid ":pep:`545` -- Python Documentation Translations" msgstr "" -#: ../Doc/whatsnew/3.7.rst:476 +#: ../../whatsnew/3.7.rst:476 msgid "" "PEP written and implemented by Julien Palard, Inada Naoki, and Victor " "Stinner." msgstr "" -#: ../Doc/whatsnew/3.7.rst:483 +#: ../../whatsnew/3.7.rst:483 msgid "Development Runtime Mode: -X dev" msgstr "" -#: ../Doc/whatsnew/3.7.rst:485 +#: ../../whatsnew/3.7.rst:485 msgid "" "The new :option:`-X` ``dev`` command line option or the new :envvar:" "`PYTHONDEVMODE` environment variable can be used to enable CPython's " @@ -692,24 +732,32 @@ msgid "" "mode." msgstr "" -#: ../Doc/whatsnew/3.7.rst:494 +#: ../../whatsnew/3.7.rst:494 msgid "Other Language Changes" msgstr "Outras mudanças na Linguagem" -#: ../Doc/whatsnew/3.7.rst:496 +#: ../../whatsnew/3.7.rst:496 +msgid "" +"An :keyword:`await` expression and comprehensions containing an :keyword:" +"`async for` clause were illegal in the expressions in :ref:`formatted string " +"literals ` due to a problem with the implementation. In Python " +"3.7 this restriction was lifted." +msgstr "" + +#: ../../whatsnew/3.7.rst:501 msgid "" "More than 255 arguments can now be passed to a function, and a function can " "now have more than 255 parameters. (Contributed by Serhiy Storchaka in :" "issue:`12844` and :issue:`18896`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:500 +#: ../../whatsnew/3.7.rst:505 msgid "" ":meth:`bytes.fromhex` and :meth:`bytearray.fromhex` now ignore all ASCII " "whitespace, not only spaces. (Contributed by Robert Xiao in :issue:`28927`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:503 +#: ../../whatsnew/3.7.rst:508 msgid "" ":class:`str`, :class:`bytes`, and :class:`bytearray` gained support for the " "new :meth:`isascii() ` method, which can be used to test if a " @@ -717,27 +765,27 @@ msgid "" "Naoki in :issue:`32677`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:508 +#: ../../whatsnew/3.7.rst:513 msgid "" ":exc:`ImportError` now displays module name and module ``__file__`` path " "when ``from ... import ...`` fails. (Contributed by Matthias Bussonnier in :" "issue:`29546`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:512 +#: ../../whatsnew/3.7.rst:517 msgid "" "Circular imports involving absolute imports with binding a submodule to a " "name are now supported. (Contributed by Serhiy Storchaka in :issue:`30024`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:516 +#: ../../whatsnew/3.7.rst:521 msgid "" "``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than " "``format(str(self), '')``. (Contributed by Serhiy Storchaka in :issue:" "`28974`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:520 +#: ../../whatsnew/3.7.rst:525 msgid "" "In order to better support dynamic creation of stack traces, :class:`types." "TracebackType` can now be instantiated from Python code, and the ``tb_next`` " @@ -745,7 +793,7 @@ msgid "" "(Contributed by Nathaniel J. Smith in :issue:`30579`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:526 +#: ../../whatsnew/3.7.rst:531 msgid "" "When using the :option:`-m` switch, ``sys.path[0]`` is now eagerly expanded " "to the full starting directory path, rather than being left as the empty " @@ -753,7 +801,7 @@ msgid "" "time when an import occurs) (Contributed by Nick Coghlan in :issue:`33053`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:532 +#: ../../whatsnew/3.7.rst:537 msgid "" "The new :option:`-X` ``importtime`` option or the :envvar:" "`PYTHONPROFILEIMPORTTIME` environment variable can be used to show the " @@ -761,15 +809,15 @@ msgid "" "`31415`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:539 +#: ../../whatsnew/3.7.rst:544 msgid "New Modules" msgstr "Novos Módulos" -#: ../Doc/whatsnew/3.7.rst:544 +#: ../../whatsnew/3.7.rst:549 msgid "contextvars" msgstr "" -#: ../Doc/whatsnew/3.7.rst:546 +#: ../../whatsnew/3.7.rst:551 msgid "" "The new :mod:`contextvars` module and a set of :ref:`new C APIs " "` introduce support for *context variables*. Context " @@ -777,7 +825,7 @@ msgid "" "context variables support asynchronous code correctly." msgstr "" -#: ../Doc/whatsnew/3.7.rst:552 +#: ../../whatsnew/3.7.rst:557 msgid "" "The :mod:`asyncio` and :mod:`decimal` modules have been updated to use and " "support context variables out of the box. Particularly the active decimal " @@ -785,19 +833,19 @@ msgid "" "to work with the correct context in asynchronous code." msgstr "" -#: ../Doc/whatsnew/3.7.rst:559 +#: ../../whatsnew/3.7.rst:564 msgid ":pep:`567` -- Context Variables" msgstr "" -#: ../Doc/whatsnew/3.7.rst:560 +#: ../../whatsnew/3.7.rst:565 msgid "PEP written and implemented by Yury Selivanov" msgstr "" -#: ../Doc/whatsnew/3.7.rst:566 +#: ../../whatsnew/3.7.rst:571 msgid "dataclasses" msgstr "" -#: ../Doc/whatsnew/3.7.rst:568 +#: ../../whatsnew/3.7.rst:573 msgid "" "The new :func:`~dataclasses.dataclass` decorator provides a way to declare " "*data classes*. A data class describes its attributes using class variable " @@ -806,23 +854,23 @@ msgid "" "generated automatically." msgstr "" -#: ../Doc/whatsnew/3.7.rst:574 +#: ../../whatsnew/3.7.rst:579 msgid "Example::" msgstr "Exemplo::" -#: ../Doc/whatsnew/3.7.rst:587 +#: ../../whatsnew/3.7.rst:592 msgid ":pep:`557` -- Data Classes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:588 +#: ../../whatsnew/3.7.rst:593 msgid "PEP written and implemented by Eric V. Smith" msgstr "" -#: ../Doc/whatsnew/3.7.rst:594 +#: ../../whatsnew/3.7.rst:599 msgid "importlib.resources" msgstr "" -#: ../Doc/whatsnew/3.7.rst:596 +#: ../../whatsnew/3.7.rst:601 msgid "" "The new :mod:`importlib.resources` module provides several new APIs and one " "new ABC for access to, opening, and reading *resources* inside packages. " @@ -833,43 +881,43 @@ msgid "" "loaders and zip file loaders both support this." msgstr "" -#: ../Doc/whatsnew/3.7.rst:604 +#: ../../whatsnew/3.7.rst:609 msgid "Contributed by Barry Warsaw and Brett Cannon in :issue:`32248`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:608 +#: ../../whatsnew/3.7.rst:613 msgid "" "`importlib_resources `_ -- a PyPI backport for earlier Python versions." msgstr "" -#: ../Doc/whatsnew/3.7.rst:613 +#: ../../whatsnew/3.7.rst:618 msgid "Improved Modules" msgstr "Módulos melhorados" -#: ../Doc/whatsnew/3.7.rst:617 +#: ../../whatsnew/3.7.rst:622 msgid "argparse" -msgstr "" +msgstr "argparse" -#: ../Doc/whatsnew/3.7.rst:619 +#: ../../whatsnew/3.7.rst:624 msgid "" "The new :meth:`ArgumentParser.parse_intermixed_args() ` method allows intermixing options and " "positional arguments. (Contributed by paul.j3 in :issue:`14191`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:628 ../Doc/whatsnew/3.7.rst:1943 +#: ../../whatsnew/3.7.rst:633 ../../whatsnew/3.7.rst:1963 msgid "asyncio" -msgstr "" +msgstr "asyncio" -#: ../Doc/whatsnew/3.7.rst:630 +#: ../../whatsnew/3.7.rst:635 msgid "" "The :mod:`asyncio` module has received many new features, usability and :ref:" "`performance improvements `. Notable changes " "include:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:634 +#: ../../whatsnew/3.7.rst:639 msgid "" "The new :term:`provisional ` :func:`asyncio.run` function " "can be used to run a coroutine from synchronous code by automatically " @@ -877,7 +925,7 @@ msgid "" "issue:`32314`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:639 +#: ../../whatsnew/3.7.rst:644 msgid "" "asyncio gained support for :mod:`contextvars`. :meth:`loop.call_soon() " "`, :meth:`loop.call_soon_threadsafe() ` method can be used " "to upgrade an existing connection to TLS. (Contributed by Yury Selivanov in :" "issue:`23749`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:658 +#: ../../whatsnew/3.7.rst:663 msgid "" "The new :meth:`loop.sock_recv_into() ` method " "allows reading data from a socket directly into a provided buffer making it " @@ -911,7 +959,7 @@ msgid "" "`31819`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:663 +#: ../../whatsnew/3.7.rst:668 msgid "" "The new :func:`asyncio.current_task` function returns the currently running :" "class:`~asyncio.Task` instance, and the new :func:`asyncio.all_tasks` " @@ -921,14 +969,14 @@ msgid "" "(Contributed by Andrew Svetlov in :issue:`32250`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:670 +#: ../../whatsnew/3.7.rst:675 msgid "" "The new *provisional* :class:`~asyncio.BufferedProtocol` class allows " "implementing streaming protocols with manual control over the receive " "buffer. (Contributed by Yury Selivanov in :issue:`32251`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:674 +#: ../../whatsnew/3.7.rst:679 msgid "" "The new :func:`asyncio.get_running_loop` function returns the currently " "running loop, and raises a :exc:`RuntimeError` if no loop is running. This " @@ -937,7 +985,7 @@ msgid "" "`32269`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:680 +#: ../../whatsnew/3.7.rst:685 msgid "" "The new :meth:`StreamWriter.wait_closed() ` coroutine method allows waiting until the stream writer is " @@ -946,14 +994,14 @@ msgid "" "(Contributed by Andrew Svetlov in :issue:`32391`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:686 +#: ../../whatsnew/3.7.rst:691 msgid "" "The new :meth:`loop.sock_sendfile() ` coroutine " "method allows sending files using :mod:`os.sendfile` when possible. " "(Contributed by Andrew Svetlov in :issue:`32410`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:690 +#: ../../whatsnew/3.7.rst:695 msgid "" "The new :meth:`Future.get_loop() ` and ``Task." "get_loop()`` methods return the instance of the loop on which a task or a " @@ -963,7 +1011,7 @@ msgid "" "`32418`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:698 +#: ../../whatsnew/3.7.rst:703 msgid "" "It is now possible to control how instances of :class:`asyncio.Server` begin " "serving. Previously, the server would start serving immediately when " @@ -978,11 +1026,11 @@ msgid "" "managers::" msgstr "" -#: ../Doc/whatsnew/3.7.rst:717 +#: ../../whatsnew/3.7.rst:722 msgid "(Contributed by Yury Selivanov in :issue:`32662`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:719 +#: ../../whatsnew/3.7.rst:724 msgid "" "Callback objects returned by :func:`loop.call_later() ` gained the new :meth:`when() ` method " @@ -990,14 +1038,14 @@ msgid "" "Andrew Svetlov in :issue:`32741`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:725 +#: ../../whatsnew/3.7.rst:730 msgid "" "The :meth:`loop.create_datagram_endpoint() \\ ` method gained support for Unix sockets. " "(Contributed by Quentin Dawans in :issue:`31245`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:730 +#: ../../whatsnew/3.7.rst:735 msgid "" "The :func:`asyncio.open_connection`, :func:`asyncio.start_server` " "functions, :meth:`loop.create_connection() ` method returns " "``True`` if the callback was cancelled. (Contributed by Marat Sharafutdinov " "in :issue:`31943`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:742 +#: ../../whatsnew/3.7.rst:747 msgid "" "The asyncio source has been converted to use the :keyword:`async`/:keyword:" "`await` syntax. (Contributed by Andrew Svetlov in :issue:`32193`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:746 +#: ../../whatsnew/3.7.rst:751 msgid "" "The new :meth:`ReadTransport.is_reading() ` method can be used to determine the reading state of the " @@ -1031,76 +1079,76 @@ msgid "" "(Contributed by Yury Selivanov in :issue:`32356`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:754 +#: ../../whatsnew/3.7.rst:759 msgid "" "Loop methods which accept socket paths now support passing :term:`path-like " "objects `. (Contributed by Yury Selivanov in :issue:" "`32066`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:758 +#: ../../whatsnew/3.7.rst:763 msgid "" "In :mod:`asyncio` TCP sockets on Linux are now created with ``TCP_NODELAY`` " "flag set by default. (Contributed by Yury Selivanov and Victor Stinner in :" "issue:`27456`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:762 +#: ../../whatsnew/3.7.rst:767 msgid "" "Exceptions occurring in cancelled tasks are no longer logged. (Contributed " "by Yury Selivanov in :issue:`30508`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:765 +#: ../../whatsnew/3.7.rst:770 msgid "" "New ``WindowsSelectorEventLoopPolicy`` and " "``WindowsProactorEventLoopPolicy`` classes. (Contributed by Yury Selivanov " "in :issue:`33792`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:769 +#: ../../whatsnew/3.7.rst:774 msgid "" "Several ``asyncio`` APIs have been :ref:`deprecated `." msgstr "" -#: ../Doc/whatsnew/3.7.rst:774 +#: ../../whatsnew/3.7.rst:779 msgid "binascii" -msgstr "" +msgstr "binascii" -#: ../Doc/whatsnew/3.7.rst:776 +#: ../../whatsnew/3.7.rst:781 msgid "" "The :func:`~binascii.b2a_uu` function now accepts an optional *backtick* " "keyword argument. When it's true, zeros are represented by ``'`'`` instead " "of spaces. (Contributed by Xiang Zhang in :issue:`30103`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:782 +#: ../../whatsnew/3.7.rst:787 msgid "calendar" msgstr "" -#: ../Doc/whatsnew/3.7.rst:784 +#: ../../whatsnew/3.7.rst:789 msgid "" "The :class:`~calendar.HTMLCalendar` class has new class attributes which " "ease the customization of CSS classes in the produced HTML calendar. " "(Contributed by Oz Tiram in :issue:`30095`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:790 ../Doc/whatsnew/3.7.rst:1957 +#: ../../whatsnew/3.7.rst:795 ../../whatsnew/3.7.rst:1977 msgid "collections" -msgstr "" +msgstr "collections" -#: ../Doc/whatsnew/3.7.rst:792 +#: ../../whatsnew/3.7.rst:797 msgid "" "``collections.namedtuple()`` now supports default values. (Contributed by " "Raymond Hettinger in :issue:`32320`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:797 +#: ../../whatsnew/3.7.rst:802 msgid "compileall" msgstr "" -#: ../Doc/whatsnew/3.7.rst:799 +#: ../../whatsnew/3.7.rst:804 msgid "" ":func:`compileall.compile_dir` learned the new *invalidation_mode* " "parameter, which can be used to enable :ref:`hash-based .pyc invalidation " @@ -1109,11 +1157,11 @@ msgid "" "Benjamin Peterson in :issue:`31650`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:808 +#: ../../whatsnew/3.7.rst:813 msgid "concurrent.futures" -msgstr "" +msgstr "concurrent.futures" -#: ../Doc/whatsnew/3.7.rst:810 +#: ../../whatsnew/3.7.rst:815 msgid "" ":class:`ProcessPoolExecutor ` and :" "class:`ThreadPoolExecutor ` now " @@ -1121,25 +1169,25 @@ msgid "" "(Contributed by Antoine Pitrou in :issue:`21423`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:815 +#: ../../whatsnew/3.7.rst:820 msgid "" "The :class:`ProcessPoolExecutor ` " "can now take the multiprocessing context via the new *mp_context* argument. " "(Contributed by Thomas Moreau in :issue:`31540`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:821 +#: ../../whatsnew/3.7.rst:826 msgid "contextlib" -msgstr "" +msgstr "contextlib" -#: ../Doc/whatsnew/3.7.rst:823 +#: ../../whatsnew/3.7.rst:828 msgid "" "The new :func:`~contextlib.nullcontext` is a simpler and faster no-op " "context manager than :class:`~contextlib.ExitStack`. (Contributed by Jesse-" "Bakker in :issue:`10049`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:827 +#: ../../whatsnew/3.7.rst:832 msgid "" "The new :func:`~contextlib.asynccontextmanager`, :class:`~contextlib." "AbstractAsyncContextManager`, and :class:`~contextlib.AsyncExitStack` have " @@ -1148,38 +1196,38 @@ msgid "" "and Ilya Kulakov in :issue:`29302`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:836 +#: ../../whatsnew/3.7.rst:841 msgid "cProfile" -msgstr "" +msgstr "cProfile" -#: ../Doc/whatsnew/3.7.rst:838 +#: ../../whatsnew/3.7.rst:843 msgid "" "The :mod:`cProfile` command line now accepts ``-m module_name`` as an " "alternative to script path. (Contributed by Sanyam Khurana in :issue:" "`21862`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:843 +#: ../../whatsnew/3.7.rst:848 msgid "crypt" msgstr "" -#: ../Doc/whatsnew/3.7.rst:845 +#: ../../whatsnew/3.7.rst:850 msgid "" "The :mod:`crypt` module now supports the Blowfish hashing method. " "(Contributed by Serhiy Storchaka in :issue:`31664`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:848 +#: ../../whatsnew/3.7.rst:853 msgid "" "The :func:`~crypt.mksalt` function now allows specifying the number of " "rounds for hashing. (Contributed by Serhiy Storchaka in :issue:`31702`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:853 +#: ../../whatsnew/3.7.rst:858 msgid "datetime" -msgstr "" +msgstr "datetime" -#: ../Doc/whatsnew/3.7.rst:855 +#: ../../whatsnew/3.7.rst:860 msgid "" "The new :meth:`datetime.fromisoformat() ` " "method constructs a :class:`~datetime.datetime` object from a string in one " @@ -1187,38 +1235,38 @@ msgid "" "isoformat>`. (Contributed by Paul Ganssle in :issue:`15873`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:861 +#: ../../whatsnew/3.7.rst:866 msgid "" "The :class:`tzinfo ` class now supports sub-minute offsets. " "(Contributed by Alexander Belopolsky in :issue:`5288`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:866 ../Doc/whatsnew/3.7.rst:1967 +#: ../../whatsnew/3.7.rst:871 ../../whatsnew/3.7.rst:1987 msgid "dbm" -msgstr "" +msgstr "dbm" -#: ../Doc/whatsnew/3.7.rst:868 +#: ../../whatsnew/3.7.rst:873 msgid "" ":mod:`dbm.dumb` now supports reading read-only files and no longer writes " "the index file when it is not changed." msgstr "" -#: ../Doc/whatsnew/3.7.rst:873 +#: ../../whatsnew/3.7.rst:878 msgid "decimal" msgstr "" -#: ../Doc/whatsnew/3.7.rst:875 +#: ../../whatsnew/3.7.rst:880 msgid "" "The :mod:`decimal` module now uses :ref:`context variables ` to store the decimal context. (Contributed by Yury Selivanov in :" "issue:`32630`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:881 +#: ../../whatsnew/3.7.rst:886 msgid "dis" -msgstr "" +msgstr "dis" -#: ../Doc/whatsnew/3.7.rst:883 +#: ../../whatsnew/3.7.rst:888 msgid "" "The :func:`~dis.dis` function is now able to disassemble nested code objects " "(the code of comprehensions, generator expressions and nested functions, and " @@ -1227,29 +1275,29 @@ msgid "" "(Contributed by Serhiy Storchaka in :issue:`11822`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:892 +#: ../../whatsnew/3.7.rst:897 msgid "distutils" msgstr "" -#: ../Doc/whatsnew/3.7.rst:894 +#: ../../whatsnew/3.7.rst:899 msgid "" "``README.rst`` is now included in the list of distutils standard READMEs and " "therefore included in source distributions. (Contributed by Ryan Gonzalez " "in :issue:`11913`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:900 ../Doc/whatsnew/3.7.rst:1977 +#: ../../whatsnew/3.7.rst:905 ../../whatsnew/3.7.rst:1997 msgid "enum" -msgstr "" +msgstr "enum" -#: ../Doc/whatsnew/3.7.rst:902 +#: ../../whatsnew/3.7.rst:907 msgid "" "The :class:`Enum ` learned the new ``_ignore_`` class property, " "which allows listing the names of properties which should not become enum " "members. (Contributed by Ethan Furman in :issue:`31801`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:907 +#: ../../whatsnew/3.7.rst:912 msgid "" "In Python 3.8, attempting to check for non-Enum objects in :class:`Enum` " "classes will raise a :exc:`TypeError` (e.g. ``1 in Color``); similarly, " @@ -1259,21 +1307,21 @@ msgid "" "Furman in :issue:`33217`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:916 +#: ../../whatsnew/3.7.rst:921 msgid "functools" -msgstr "" +msgstr "functools" -#: ../Doc/whatsnew/3.7.rst:918 +#: ../../whatsnew/3.7.rst:923 msgid "" ":func:`functools.singledispatch` now supports registering implementations " "using type annotations. (Contributed by Łukasz Langa in :issue:`32227`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:924 +#: ../../whatsnew/3.7.rst:929 msgid "gc" -msgstr "" +msgstr "gc" -#: ../Doc/whatsnew/3.7.rst:926 +#: ../../whatsnew/3.7.rst:931 msgid "" "The new :func:`gc.freeze` function allows freezing all objects tracked by " "the garbage collector and excluding them from future collections. This can " @@ -1284,33 +1332,33 @@ msgid "" "`31558`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:936 +#: ../../whatsnew/3.7.rst:941 msgid "hmac" -msgstr "" +msgstr "hmac" -#: ../Doc/whatsnew/3.7.rst:938 +#: ../../whatsnew/3.7.rst:943 msgid "" "The :mod:`hmac` module now has an optimized one-shot :func:`~hmac.digest` " "function, which is up to three times faster than :func:`~hmac.HMAC`. " "(Contributed by Christian Heimes in :issue:`32433`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:944 +#: ../../whatsnew/3.7.rst:949 msgid "http.client" msgstr "" -#: ../Doc/whatsnew/3.7.rst:946 +#: ../../whatsnew/3.7.rst:951 msgid "" ":class:`~http.client.HTTPConnection` and :class:`~http.client." "HTTPSConnection` now support the new *blocksize* argument for improved " "upload throughput. (Contributed by Nir Soffer in :issue:`31945`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:952 +#: ../../whatsnew/3.7.rst:957 msgid "http.server" msgstr "" -#: ../Doc/whatsnew/3.7.rst:954 +#: ../../whatsnew/3.7.rst:959 msgid "" ":class:`~http.server.SimpleHTTPRequestHandler` now supports the HTTP ``If-" "Modified-Since`` header. The server returns the 304 response status if the " @@ -1318,7 +1366,7 @@ msgid "" "(Contributed by Pierre Quentel in :issue:`29654`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:959 +#: ../../whatsnew/3.7.rst:964 msgid "" ":class:`~http.server.SimpleHTTPRequestHandler` accepts the new *directory* " "argument, in addition to the new ``--directory`` command line argument. With " @@ -1327,7 +1375,7 @@ msgid "" "Julien Palard in :issue:`28707`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:965 +#: ../../whatsnew/3.7.rst:970 msgid "" "The new :class:`ThreadingHTTPServer ` class " "uses threads to handle requests using :class:`~socketserver.ThreadingMixin`. " @@ -1335,17 +1383,17 @@ msgid "" "Palard in :issue:`31639`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:972 +#: ../../whatsnew/3.7.rst:977 msgid "idlelib and IDLE" -msgstr "" +msgstr "idlelib and IDLE" -#: ../Doc/whatsnew/3.7.rst:974 +#: ../../whatsnew/3.7.rst:979 msgid "" "Multiple fixes for autocompletion. (Contributed by Louie Lu in :issue:" "`15786`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:976 +#: ../../whatsnew/3.7.rst:981 msgid "" "Module Browser (on the File menu, formerly called Class Browser), now " "displays nested functions and classes in addition to top-level functions and " @@ -1353,14 +1401,14 @@ msgid "" "in :issue:`1612262`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:982 +#: ../../whatsnew/3.7.rst:987 msgid "" "The Settings dialog (Options, Configure IDLE) has been partly rewritten to " "improve both appearance and function. (Contributed by Cheryl Sabella and " "Terry Jan Reedy in multiple issues.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:986 +#: ../../whatsnew/3.7.rst:991 msgid "" "The font sample now includes a selection of non-Latin characters so that " "users can better see the effect of selecting a particular font. (Contributed " @@ -1368,7 +1416,7 @@ msgid "" "other characters. (Contributed by Serhiy Storchaka in :issue:`31860`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:992 +#: ../../whatsnew/3.7.rst:997 msgid "" "The IDLE features formerly implemented as extensions have been reimplemented " "as normal features. Their settings have been moved from the Extensions tab " @@ -1376,7 +1424,7 @@ msgid "" "in :issue:`27099`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:997 +#: ../../whatsnew/3.7.rst:1002 msgid "" "Editor code context option revised. Box displays all context lines up to " "maxlines. Clicking on a context line jumps the editor to that line. " @@ -1385,7 +1433,7 @@ msgid "" "`33642`, :issue:`33768`, and :issue:`33679`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1003 +#: ../../whatsnew/3.7.rst:1008 msgid "" "On Windows, a new API call tells Windows that tk scales for DPI. On Windows " "8.1+ or 10, with DPI compatibility properties of the Python binary " @@ -1394,11 +1442,11 @@ msgid "" "Terry Jan Reedy in :issue:`33656`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1009 +#: ../../whatsnew/3.7.rst:1014 msgid "New in 3.7.1:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1011 +#: ../../whatsnew/3.7.rst:1016 msgid "" "Output over N lines (50 by default) is squeezed down to a button. N can be " "changed in the PyShell section of the General page of the Settings dialog. " @@ -1407,16 +1455,49 @@ msgid "" "button or into the clipboard or a separate window by right-clicking the " "button. (Contributed by Tal Einat in :issue:`1529353`.)" msgstr "" +"A saída em N linhas (50 por padrão) é compactada até um limite inferior. N " +"pode ser alterado na seção PyShell da página General da caixa de diálogo " +"Settings. Menos linhas, mas possivelmente extra longas, podem ser espremidas " +"clicando com o botão direito do mouse na saída. A saída compactada pode ser " +"expandida no local clicando duas vezes no botão ou na área de transferência " +"ou em uma janela separada clicando com o botão direito do mouse. " +"(Contribuição de Tal Einat em :issue:`1529353`.)" -#: ../Doc/whatsnew/3.7.rst:1018 +#: ../../whatsnew/3.7.rst:1023 msgid "The changes above have been backported to 3.6 maintenance releases." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1022 ../Doc/whatsnew/3.7.rst:1996 -msgid "importlib" +#: ../../whatsnew/3.7.rst:1025 +msgid "NEW in 3.7.4:" +msgstr "" + +#: ../../whatsnew/3.7.rst:1027 +msgid "" +"Add \"Run Customized\" to the Run menu to run a module with customized " +"settings. Any command line arguments entered are added to sys.argv. They re-" +"appear in the box for the next customized run. One can also suppress the " +"normal Shell main module restart. (Contributed by Cheryl Sabella, Terry Jan " +"Reedy, and others in :issue:`5680` and :issue:`37627`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1024 +#: ../../whatsnew/3.7.rst:1033 +msgid "New in 3.7.5:" +msgstr "" + +#: ../../whatsnew/3.7.rst:1035 +msgid "" +"Add optional line numbers for IDLE editor windows. Windows open without line " +"numbers unless set otherwise in the General tab of the configuration " +"dialog. Line numbers for an existing window are shown and hidden in the " +"Options menu. (Contributed by Tal Einat and Saimadhav Heblikar in :issue:" +"`17535`.)" +msgstr "" + +#: ../../whatsnew/3.7.rst:1043 ../../whatsnew/3.7.rst:2016 +msgid "importlib" +msgstr "importlib" + +#: ../../whatsnew/3.7.rst:1045 msgid "" "The :class:`importlib.abc.ResourceReader` ABC was introduced to support the " "loading of resources from packages. See also :ref:" @@ -1424,13 +1505,13 @@ msgid "" "in :issue:`32248`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1029 +#: ../../whatsnew/3.7.rst:1050 msgid "" ":func:`importlib.reload` now raises :exc:`ModuleNotFoundError` if the module " "lacks a spec. (Contributed by Garvit Khatri in :issue:`29851`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1033 +#: ../../whatsnew/3.7.rst:1054 msgid "" ":func:`importlib.find_spec` now raises :exc:`ModuleNotFoundError` instead " "of :exc:`AttributeError` if the specified parent module is not a package (i." @@ -1438,18 +1519,18 @@ msgid "" "issue:`30436`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1038 +#: ../../whatsnew/3.7.rst:1059 msgid "" "The new :func:`importlib.source_hash` can be used to compute the hash of the " "passed source. A :ref:`hash-based .pyc file ` embeds the " "value returned by this function." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1044 +#: ../../whatsnew/3.7.rst:1065 msgid "io" -msgstr "" +msgstr "io" -#: ../Doc/whatsnew/3.7.rst:1046 +#: ../../whatsnew/3.7.rst:1067 msgid "" "The new :meth:`TextIOWrapper.reconfigure() ` " "method can be used to reconfigure the text stream with the new settings. " @@ -1457,11 +1538,11 @@ msgid "" "`15216`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1053 +#: ../../whatsnew/3.7.rst:1074 msgid "ipaddress" -msgstr "" +msgstr "ipaddress" -#: ../Doc/whatsnew/3.7.rst:1055 +#: ../../whatsnew/3.7.rst:1076 msgid "" "The new ``subnet_of()`` and ``supernet_of()`` methods of :class:`ipaddress." "IPv6Network` and :class:`ipaddress.IPv4Network` can be used for network " @@ -1469,95 +1550,95 @@ msgid "" "issue:`20825`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1062 +#: ../../whatsnew/3.7.rst:1083 msgid "itertools" -msgstr "" +msgstr "itertools" -#: ../Doc/whatsnew/3.7.rst:1064 +#: ../../whatsnew/3.7.rst:1085 msgid "" ":func:`itertools.islice` now accepts :meth:`integer-like objects ` as start, stop, and slice arguments. (Contributed by Will " "Roberts in :issue:`30537`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1071 ../Doc/whatsnew/3.7.rst:2014 +#: ../../whatsnew/3.7.rst:1092 ../../whatsnew/3.7.rst:2034 msgid "locale" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1073 +#: ../../whatsnew/3.7.rst:1094 msgid "" "The new *monetary* argument to :func:`locale.format_string` can be used to " "make the conversion use monetary thousands separators and grouping strings. " "(Contributed by Garvit in :issue:`10379`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1077 +#: ../../whatsnew/3.7.rst:1098 msgid "" "The :func:`locale.getpreferredencoding` function now always returns " "``'UTF-8'`` on Android or when in the :ref:`forced UTF-8 mode `." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1082 +#: ../../whatsnew/3.7.rst:1103 msgid "logging" -msgstr "" +msgstr "logging" -#: ../Doc/whatsnew/3.7.rst:1084 +#: ../../whatsnew/3.7.rst:1105 msgid "" ":class:`~logging.Logger` instances can now be pickled. (Contributed by Vinay " "Sajip in :issue:`30520`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1087 +#: ../../whatsnew/3.7.rst:1108 msgid "" "The new :meth:`StreamHandler.setStream() ` " "method can be used to replace the logger stream after handler creation. " "(Contributed by Vinay Sajip in :issue:`30522`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1091 +#: ../../whatsnew/3.7.rst:1112 msgid "" "It is now possible to specify keyword arguments to handler constructors in " "configuration passed to :func:`logging.config.fileConfig`. (Contributed by " "Preston Landers in :issue:`31080`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1097 +#: ../../whatsnew/3.7.rst:1118 msgid "math" -msgstr "" +msgstr "math" -#: ../Doc/whatsnew/3.7.rst:1099 +#: ../../whatsnew/3.7.rst:1120 msgid "" "The new :func:`math.remainder` function implements the IEEE 754-style " "remainder operation. (Contributed by Mark Dickinson in :issue:`29962`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1104 +#: ../../whatsnew/3.7.rst:1125 msgid "mimetypes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1106 +#: ../../whatsnew/3.7.rst:1127 msgid "" "The MIME type of .bmp has been changed from ``'image/x-ms-bmp'`` to ``'image/" "bmp'``. (Contributed by Nitish Chandra in :issue:`22589`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1112 +#: ../../whatsnew/3.7.rst:1133 msgid "msilib" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1114 +#: ../../whatsnew/3.7.rst:1135 msgid "" "The new :meth:`Database.Close() ` method can be used " "to close the :abbr:`MSI` database. (Contributed by Berker Peksag in :issue:" "`20486`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1120 +#: ../../whatsnew/3.7.rst:1141 msgid "multiprocessing" -msgstr "" +msgstr "multiprocessing" -#: ../Doc/whatsnew/3.7.rst:1122 +#: ../../whatsnew/3.7.rst:1143 msgid "" "The new :meth:`Process.close() ` method " "explicitly closes the process object and releases all resources associated " @@ -1565,43 +1646,43 @@ msgid "" "running. (Contributed by Antoine Pitrou in :issue:`30596`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1128 +#: ../../whatsnew/3.7.rst:1149 msgid "" "The new :meth:`Process.kill() ` method can be " "used to terminate the process using the :data:`SIGKILL` signal on Unix. " "(Contributed by Vitor Pereira in :issue:`30794`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1132 +#: ../../whatsnew/3.7.rst:1153 msgid "" "Non-daemonic threads created by :class:`~multiprocessing.Process` are now " "joined on process exit. (Contributed by Antoine Pitrou in :issue:`18966`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1138 +#: ../../whatsnew/3.7.rst:1159 msgid "os" -msgstr "" +msgstr "os" -#: ../Doc/whatsnew/3.7.rst:1140 +#: ../../whatsnew/3.7.rst:1161 msgid "" ":func:`os.fwalk` now accepts the *path* argument as :class:`bytes`. " "(Contributed by Serhiy Storchaka in :issue:`28682`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1143 +#: ../../whatsnew/3.7.rst:1164 msgid "" ":func:`os.scandir` gained support for :ref:`file descriptors `. " "(Contributed by Serhiy Storchaka in :issue:`25996`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1146 +#: ../../whatsnew/3.7.rst:1167 msgid "" "The new :func:`~os.register_at_fork` function allows registering Python " "callbacks to be executed at process fork. (Contributed by Antoine Pitrou in :" "issue:`16500`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1150 +#: ../../whatsnew/3.7.rst:1171 msgid "" "Added :func:`os.preadv` (combine the functionality of :func:`os.readv` and :" "func:`os.pread`) and :func:`os.pwritev` functions (combine the functionality " @@ -1609,59 +1690,59 @@ msgid "" "in :issue:`31368`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1155 +#: ../../whatsnew/3.7.rst:1176 msgid "" "The mode argument of :func:`os.makedirs` no longer affects the file " "permission bits of newly-created intermediate-level directories. " "(Contributed by Serhiy Storchaka in :issue:`19930`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1159 +#: ../../whatsnew/3.7.rst:1180 msgid "" ":func:`os.dup2` now returns the new file descriptor. Previously, ``None`` " "was always returned. (Contributed by Benjamin Peterson in :issue:`32441`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1163 +#: ../../whatsnew/3.7.rst:1184 msgid "" "The structure returned by :func:`os.stat` now contains the :attr:`~os." "stat_result.st_fstype` attribute on Solaris and its derivatives. " "(Contributed by Jesús Cea Avión in :issue:`32659`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1169 +#: ../../whatsnew/3.7.rst:1190 msgid "pathlib" -msgstr "" +msgstr "pathlib" -#: ../Doc/whatsnew/3.7.rst:1171 +#: ../../whatsnew/3.7.rst:1192 msgid "" "The new :meth:`Path.is_mount() ` method is now " "available on POSIX systems and can be used to determine whether a path is a " "mount point. (Contributed by Cooper Ry Lees in :issue:`30897`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1177 +#: ../../whatsnew/3.7.rst:1198 msgid "pdb" -msgstr "" +msgstr "pdb" -#: ../Doc/whatsnew/3.7.rst:1179 +#: ../../whatsnew/3.7.rst:1200 msgid "" ":func:`pdb.set_trace` now takes an optional *header* keyword-only argument. " "If given, it is printed to the console just before debugging begins. " "(Contributed by Barry Warsaw in :issue:`31389`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1183 +#: ../../whatsnew/3.7.rst:1204 msgid "" ":mod:`pdb` command line now accepts ``-m module_name`` as an alternative to " "script file. (Contributed by Mario Corchero in :issue:`32206`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1188 +#: ../../whatsnew/3.7.rst:1209 msgid "py_compile" -msgstr "" +msgstr "py_compile" -#: ../Doc/whatsnew/3.7.rst:1190 +#: ../../whatsnew/3.7.rst:1211 msgid "" ":func:`py_compile.compile` -- and by extension, :mod:`compileall` -- now " "respects the :envvar:`SOURCE_DATE_EPOCH` environment variable by " @@ -1671,46 +1752,46 @@ msgid "" "Bernhard M. Wiedemann in :issue:`29708`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1200 +#: ../../whatsnew/3.7.rst:1221 msgid "pydoc" -msgstr "" +msgstr "pydoc" -#: ../Doc/whatsnew/3.7.rst:1202 +#: ../../whatsnew/3.7.rst:1223 msgid "" "The pydoc server can now bind to an arbitrary hostname specified by the new " "``-n`` command-line argument. (Contributed by Feanil Patel in :issue:" "`31128`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1208 +#: ../../whatsnew/3.7.rst:1229 msgid "queue" -msgstr "" +msgstr "queue" -#: ../Doc/whatsnew/3.7.rst:1210 +#: ../../whatsnew/3.7.rst:1231 msgid "" "The new :class:`~queue.SimpleQueue` class is an unbounded :abbr:`FIFO` " "queue. (Contributed by Antoine Pitrou in :issue:`14976`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1215 +#: ../../whatsnew/3.7.rst:1236 msgid "re" -msgstr "" +msgstr "re" -#: ../Doc/whatsnew/3.7.rst:1217 +#: ../../whatsnew/3.7.rst:1238 msgid "" "The flags :const:`re.ASCII`, :const:`re.LOCALE` and :const:`re.UNICODE` can " "be set within the scope of a group. (Contributed by Serhiy Storchaka in :" "issue:`31690`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1221 +#: ../../whatsnew/3.7.rst:1242 msgid "" ":func:`re.split` now supports splitting on a pattern like ``r'\\b'``, ``'^" "$'`` or ``(?=-)`` that matches an empty string. (Contributed by Serhiy " "Storchaka in :issue:`25054`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1225 +#: ../../whatsnew/3.7.rst:1246 msgid "" "Regular expressions compiled with the :const:`re.LOCALE` flag no longer " "depend on the locale at compile time. Locale settings are applied only when " @@ -1718,7 +1799,7 @@ msgid "" "in :issue:`30215`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1230 +#: ../../whatsnew/3.7.rst:1251 msgid "" ":exc:`FutureWarning` is now emitted if a regular expression contains " "character set constructs that will change semantically in the future, such " @@ -1726,18 +1807,18 @@ msgid "" "issue:`30349`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1235 +#: ../../whatsnew/3.7.rst:1256 msgid "" "Compiled regular expression and match objects can now be copied using :func:" "`copy.copy` and :func:`copy.deepcopy`. (Contributed by Serhiy Storchaka in :" "issue:`10076`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1241 +#: ../../whatsnew/3.7.rst:1262 msgid "signal" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1243 +#: ../../whatsnew/3.7.rst:1264 msgid "" "The new *warn_on_full_buffer* argument to the :func:`signal.set_wakeup_fd` " "function makes it possible to specify whether Python prints a warning on " @@ -1745,18 +1826,18 @@ msgid "" "in :issue:`30050`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1250 ../Doc/whatsnew/3.7.rst:2037 +#: ../../whatsnew/3.7.rst:1271 ../../whatsnew/3.7.rst:2057 msgid "socket" -msgstr "" +msgstr "socket" -#: ../Doc/whatsnew/3.7.rst:1252 +#: ../../whatsnew/3.7.rst:1273 msgid "" "The new :func:`socket.getblocking() ` method " "returns ``True`` if the socket is in blocking mode and ``False`` otherwise. " "(Contributed by Yury Selivanov in :issue:`32373`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1256 +#: ../../whatsnew/3.7.rst:1277 msgid "" "The new :func:`socket.close` function closes the passed socket file " "descriptor. This function should be used instead of :func:`os.close` for " @@ -1764,7 +1845,7 @@ msgid "" "issue:`32454`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1261 +#: ../../whatsnew/3.7.rst:1282 msgid "" "The :mod:`socket` module now exposes the :data:`socket.TCP_CONGESTION` " "(Linux 2.6.13), :data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37), and :data:" @@ -1772,31 +1853,31 @@ msgid "" "Sandoval in :issue:`26273` and Nathaniel J. Smith in :issue:`29728`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1267 +#: ../../whatsnew/3.7.rst:1288 msgid "" "Support for :data:`socket.AF_VSOCK` sockets has been added to allow " "communication between virtual machines and their hosts. (Contributed by " "Cathy Avery in :issue:`27584`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1271 +#: ../../whatsnew/3.7.rst:1292 msgid "" "Sockets now auto-detect family, type and protocol from file descriptor by " "default. (Contributed by Christian Heimes in :issue:`28134`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1277 +#: ../../whatsnew/3.7.rst:1298 msgid "socketserver" -msgstr "" +msgstr "socketserver" -#: ../Doc/whatsnew/3.7.rst:1279 +#: ../../whatsnew/3.7.rst:1300 msgid "" ":meth:`socketserver.ThreadingMixIn.server_close` now waits until all non-" "daemon threads complete. :meth:`socketserver.ForkingMixIn.server_close` now " "waits until all child processes complete." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1283 +#: ../../whatsnew/3.7.rst:1304 msgid "" "Add a new :attr:`socketserver.ForkingMixIn.block_on_close` class attribute " "to :class:`socketserver.ForkingMixIn` and :class:`socketserver." @@ -1804,29 +1885,29 @@ msgid "" "pre-3.7 behaviour." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1289 +#: ../../whatsnew/3.7.rst:1310 msgid "sqlite3" -msgstr "" +msgstr "sqlite3" -#: ../Doc/whatsnew/3.7.rst:1291 +#: ../../whatsnew/3.7.rst:1312 msgid "" ":class:`sqlite3.Connection` now exposes the :meth:`~sqlite3.Connection." "backup` method when the underlying SQLite library is at version 3.6.11 or " "higher. (Contributed by Lele Gaifax in :issue:`27645`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1295 +#: ../../whatsnew/3.7.rst:1316 msgid "" "The *database* argument of :func:`sqlite3.connect` now accepts any :term:" "`path-like object`, instead of just a string. (Contributed by Anders " "Lorentsen in :issue:`31843`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1301 ../Doc/whatsnew/3.7.rst:2046 +#: ../../whatsnew/3.7.rst:1322 ../../whatsnew/3.7.rst:2066 msgid "ssl" -msgstr "" +msgstr "ssl" -#: ../Doc/whatsnew/3.7.rst:1303 +#: ../../whatsnew/3.7.rst:1324 msgid "" "The :mod:`ssl` module now uses OpenSSL's builtin API instead of :func:`~ssl." "match_hostname` to check a host name or an IP address. Values are validated " @@ -1834,11 +1915,12 @@ msgid "" "the host name check now raises :exc:`~ssl.SSLCertVerificationError` and " "aborts the handshake with a proper TLS Alert message. The new exception " "contains additional information. Host name validation can be customized " -"with :attr:`SSLContext.host_flags `. (Contributed " -"by Christian Heimes in :issue:`31399`.)" +"with :attr:`SSLContext.hostname_checks_common_name `. (Contributed by Christian Heimes in :issue:" +"`31399`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1314 +#: ../../whatsnew/3.7.rst:1335 msgid "" "The improved host name check requires a *libssl* implementation compatible " "with OpenSSL 1.0.2 or 1.1. Consequently, OpenSSL 0.9.8 and 1.0.1 are no " @@ -1846,21 +1928,20 @@ msgid "" "The ssl module is mostly compatible with LibreSSL 2.7.2 and newer." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1319 +#: ../../whatsnew/3.7.rst:1340 msgid "" "The ``ssl`` module no longer sends IP addresses in SNI TLS extension. " "(Contributed by Christian Heimes in :issue:`32185`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1322 +#: ../../whatsnew/3.7.rst:1343 msgid "" ":func:`~ssl.match_hostname` no longer supports partial wildcards like ``www*." -"example.org``. :attr:`SSLContext.host_flags ` has " -"partial wildcard matching disabled by default. (Contributed by Mandeep Singh " -"in :issue:`23033` and Christian Heimes in :issue:`31399`.)" +"example.org``. (Contributed by Mandeep Singh in :issue:`23033` and Christian " +"Heimes in :issue:`31399`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1328 +#: ../../whatsnew/3.7.rst:1348 msgid "" "The default cipher suite selection of the ``ssl`` module now uses a " "blacklist approach rather than a hard-coded whitelist. Python no longer re-" @@ -1869,7 +1950,7 @@ msgid "" "Christian Heimes in :issue:`31429`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1334 +#: ../../whatsnew/3.7.rst:1354 msgid "" "Validation of server certificates containing internationalized domain names " "(IDNs) is now supported. As part of this change, the :attr:`SSLSocket." @@ -1879,7 +1960,7 @@ msgid "" "and Christian Heimes in :issue:`28414`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1341 +#: ../../whatsnew/3.7.rst:1361 msgid "" "The ``ssl`` module has preliminary and experimental support for TLS 1.3 and " "OpenSSL 1.1.1. At the time of Python 3.7.0 release, OpenSSL 1.1.1 is still " @@ -1889,7 +1970,7 @@ msgid "" "`32947`, :issue:`20995`, :issue:`29136`, :issue:`30622` and :issue:`33618`)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1349 +#: ../../whatsnew/3.7.rst:1369 msgid "" ":class:`~ssl.SSLSocket` and :class:`~ssl.SSLObject` no longer have a public " "constructor. Direct instantiation was never a documented and supported " @@ -1898,7 +1979,7 @@ msgid "" "(Contributed by Christian Heimes in :issue:`32951`)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1355 +#: ../../whatsnew/3.7.rst:1375 msgid "" "OpenSSL 1.1 APIs for setting the minimum and maximum TLS protocol version " "are available as :attr:`SSLContext.minimum_version `_. (Contributed by " "Benjamin Peterson.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1498 +#: ../../whatsnew/3.7.rst:1518 msgid "unittest" -msgstr "" +msgstr "unittest" -#: ../Doc/whatsnew/3.7.rst:1500 +#: ../../whatsnew/3.7.rst:1520 msgid "" "The new ``-k`` command-line option allows filtering tests by a name " "substring or a Unix shell-like pattern. For example, ``python -m unittest -k " @@ -2105,18 +2186,18 @@ msgid "" "Jonas Haag in :issue:`32071`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1509 +#: ../../whatsnew/3.7.rst:1529 msgid "unittest.mock" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1511 +#: ../../whatsnew/3.7.rst:1531 msgid "" "The :const:`~unittest.mock.sentinel` attributes now preserve their identity " "when they are :mod:`copied ` or :mod:`pickled `. (Contributed " "by Serhiy Storchaka in :issue:`20804`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1515 +#: ../../whatsnew/3.7.rst:1535 msgid "" "The new :func:`~unittest.mock.seal` function allows sealing :class:" "`~unittest.mock.Mock` instances, which will disallow further creation of " @@ -2124,33 +2205,33 @@ msgid "" "themselves mocks. (Contributed by Mario Corchero in :issue:`30541`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1523 +#: ../../whatsnew/3.7.rst:1543 msgid "urllib.parse" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1525 +#: ../../whatsnew/3.7.rst:1545 msgid "" ":func:`urllib.parse.quote` has been updated from :rfc:`2396` to :rfc:`3986`, " "adding ``~`` to the set of characters that are never quoted by default. " "(Contributed by Christian Theune and Ratnadeep Debnath in :issue:`16285`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1531 +#: ../../whatsnew/3.7.rst:1551 msgid "uu" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1533 +#: ../../whatsnew/3.7.rst:1553 msgid "" "The :func:`uu.encode` function now accepts an optional *backtick* keyword " "argument. When it's true, zeros are represented by ``'`'`` instead of " "spaces. (Contributed by Xiang Zhang in :issue:`30103`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1539 +#: ../../whatsnew/3.7.rst:1559 msgid "uuid" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1541 +#: ../../whatsnew/3.7.rst:1561 msgid "" "The new :attr:`UUID.is_safe ` attribute relays " "information from the platform about whether generated UUIDs are generated " @@ -2158,7 +2239,7 @@ msgid "" "`22807`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1546 +#: ../../whatsnew/3.7.rst:1566 msgid "" ":func:`uuid.getnode` now prefers universally administered MAC addresses over " "locally administered MAC addresses. This makes a better guarantee for global " @@ -2167,86 +2248,89 @@ msgid "" "returned. (Contributed by Barry Warsaw in :issue:`32107`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1555 +#: ../../whatsnew/3.7.rst:1575 msgid "warnings" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1557 +#: ../../whatsnew/3.7.rst:1577 msgid "" "The initialization of the default warnings filters has changed as follows:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1559 +#: ../../whatsnew/3.7.rst:1579 msgid "" "warnings enabled via command line options (including those for :option:`-b` " "and the new CPython-specific :option:`-X` ``dev`` option) are always passed " "to the warnings machinery via the :data:`sys.warnoptions` attribute." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1563 +#: ../../whatsnew/3.7.rst:1583 msgid "" "warnings filters enabled via the command line or the environment now have " "the following order of precedence:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1566 +#: ../../whatsnew/3.7.rst:1586 msgid "the ``BytesWarning`` filter for :option:`-b` (or ``-bb``)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1567 +#: ../../whatsnew/3.7.rst:1587 msgid "any filters specified with the :option:`-W` option" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1568 +#: ../../whatsnew/3.7.rst:1588 msgid "" "any filters specified with the :envvar:`PYTHONWARNINGS` environment variable" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1570 +#: ../../whatsnew/3.7.rst:1590 msgid "" "any other CPython specific filters (e.g. the ``default`` filter added for " "the new ``-X dev`` mode)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1572 +#: ../../whatsnew/3.7.rst:1592 msgid "any implicit filters defined directly by the warnings machinery" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1574 +#: ../../whatsnew/3.7.rst:1594 msgid "" "in CPython debug builds, all warnings are now displayed by default (the " "implicit filter list is empty)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1577 +#: ../../whatsnew/3.7.rst:1597 msgid "" "(Contributed by Nick Coghlan and Victor Stinner in :issue:`20361`, :issue:" "`32043`, and :issue:`32230`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1580 +#: ../../whatsnew/3.7.rst:1600 msgid "" "Deprecation warnings are once again shown by default in single-file scripts " "and at the interactive prompt. See :ref:`whatsnew37-pep565` for details. " "(Contributed by Nick Coghlan in :issue:`31975`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1586 +#: ../../whatsnew/3.7.rst:1606 msgid "xml" -msgstr "" +msgstr "xml" -#: ../Doc/whatsnew/3.7.rst:1588 +#: ../../whatsnew/3.7.rst:1608 msgid "" "As mitigation against DTD and external entity retrieval, the :mod:`xml.dom." "minidom` and :mod:`xml.sax` modules no longer process external entities by " "default. (Contributed by Christian Heimes in :issue:`17239`.)" msgstr "" +"Como atenuação a DTD e recuperação de entidade externa, os módulos :mod:`xml." +"dom.minidom` e :mod:`xml.sax` não processam mais entidades externas por " +"padrão. (Contribuição de Christian Heimes em :issue:`17239`.)" -#: ../Doc/whatsnew/3.7.rst:1595 +#: ../../whatsnew/3.7.rst:1615 msgid "xml.etree" -msgstr "" +msgstr "xml.etree" -#: ../Doc/whatsnew/3.7.rst:1597 +#: ../../whatsnew/3.7.rst:1617 msgid "" ":ref:`ElementPath ` predicates in the :meth:`find` " "methods can now compare text of the current node with ``[. = \"text\"]``, " @@ -2254,29 +2338,29 @@ msgid "" "readability. (Contributed by Stefan Behnel in :issue:`31648`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1604 +#: ../../whatsnew/3.7.rst:1624 msgid "xmlrpc.server" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1606 +#: ../../whatsnew/3.7.rst:1626 msgid "" ":meth:`SimpleXMLRPCDispatcher.register_function ` can now be used as a decorator. (Contributed by " "Xiang Zhang in :issue:`7769`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1612 +#: ../../whatsnew/3.7.rst:1632 msgid "zipapp" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1614 +#: ../../whatsnew/3.7.rst:1634 msgid "" "Function :func:`~zipapp.create_archive` now accepts an optional *filter* " "argument to allow the user to select which files should be included in the " "archive. (Contributed by Irmen de Jong in :issue:`31072`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1618 +#: ../../whatsnew/3.7.rst:1638 msgid "" "Function :func:`~zipapp.create_archive` now accepts an optional *compressed* " "argument to generate a compressed archive. A command line option ``--" @@ -2284,27 +2368,27 @@ msgid "" "Zhiming Wang in :issue:`31638`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1625 +#: ../../whatsnew/3.7.rst:1645 msgid "zipfile" -msgstr "" +msgstr "zipfile" -#: ../Doc/whatsnew/3.7.rst:1627 +#: ../../whatsnew/3.7.rst:1647 msgid "" ":class:`~zipfile.ZipFile` now accepts the new *compresslevel* parameter to " "control the compression level. (Contributed by Bo Bayles in :issue:`21417`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1631 +#: ../../whatsnew/3.7.rst:1651 msgid "" "Subdirectories in archives created by ``ZipFile`` are now stored in " "alphabetical order. (Contributed by Bernhard M. Wiedemann in :issue:`30693`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1637 +#: ../../whatsnew/3.7.rst:1657 msgid "C API Changes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1639 +#: ../../whatsnew/3.7.rst:1659 msgid "" "A new API for thread-local storage has been implemented. See :ref:" "`whatsnew37-pep539` for an overview and :ref:`thread-specific-storage-api` " @@ -2312,46 +2396,46 @@ msgid "" "`25658`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1644 +#: ../../whatsnew/3.7.rst:1664 msgid "" "The new :ref:`context variables ` functionality exposes a " "number of :ref:`new C APIs `." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1647 +#: ../../whatsnew/3.7.rst:1667 msgid "" "The new :c:func:`PyImport_GetModule` function returns the previously " "imported module with the given name. (Contributed by Eric Snow in :issue:" "`28411`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1651 +#: ../../whatsnew/3.7.rst:1671 msgid "" "The new :c:macro:`Py_RETURN_RICHCOMPARE` macro eases writing rich comparison " "functions. (Contributed by Petr Victorin in :issue:`23699`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1655 +#: ../../whatsnew/3.7.rst:1675 msgid "" "The new :c:macro:`Py_UNREACHABLE` macro can be used to mark unreachable code " "paths. (Contributed by Barry Warsaw in :issue:`31338`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1659 +#: ../../whatsnew/3.7.rst:1679 msgid "" "The :mod:`tracemalloc` now exposes a C API through the new :c:func:" "`PyTraceMalloc_Track` and :c:func:`PyTraceMalloc_Untrack` functions. " "(Contributed by Victor Stinner in :issue:`30054`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1664 +#: ../../whatsnew/3.7.rst:1684 msgid "" "The new :c:func:`import__find__load__start` and :c:func:" "`import__find__load__done` static markers can be used to trace module " "imports. (Contributed by Christian Heimes in :issue:`31574`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1669 +#: ../../whatsnew/3.7.rst:1689 msgid "" "The fields :c:member:`name` and :c:member:`doc` of structures :c:type:" "`PyMemberDef`, :c:type:`PyGetSetDef`, :c:type:`PyStructSequence_Field`, :c:" @@ -2360,34 +2444,34 @@ msgid "" "issue:`28761`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1675 +#: ../../whatsnew/3.7.rst:1695 msgid "" "The result of :c:func:`PyUnicode_AsUTF8AndSize` and :c:func:" "`PyUnicode_AsUTF8` is now of type ``const char *`` rather of ``char *``. " "(Contributed by Serhiy Storchaka in :issue:`28769`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1679 +#: ../../whatsnew/3.7.rst:1699 msgid "" "The result of :c:func:`PyMapping_Keys`, :c:func:`PyMapping_Values` and :c:" "func:`PyMapping_Items` is now always a list, rather than a list or a tuple. " "(Contributed by Oren Milman in :issue:`28280`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1683 +#: ../../whatsnew/3.7.rst:1703 msgid "" "Added functions :c:func:`PySlice_Unpack` and :c:func:" "`PySlice_AdjustIndices`. (Contributed by Serhiy Storchaka in :issue:`27867`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1686 +#: ../../whatsnew/3.7.rst:1706 msgid "" ":c:func:`PyOS_AfterFork` is deprecated in favour of the new functions :c:" "func:`PyOS_BeforeFork`, :c:func:`PyOS_AfterFork_Parent` and :c:func:" "`PyOS_AfterFork_Child`. (Contributed by Antoine Pitrou in :issue:`16500`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1691 +#: ../../whatsnew/3.7.rst:1711 msgid "" "The ``PyExc_RecursionErrorInst`` singleton that was part of the public API " "has been removed as its members being never cleared may cause a segfault " @@ -2395,7 +2479,7 @@ msgid "" "issue:`22898` and :issue:`30697`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1696 +#: ../../whatsnew/3.7.rst:1716 msgid "" "Added C API support for timezones with timezone constructors :c:func:" "`PyTimeZone_FromOffset` and :c:func:`PyTimeZone_FromOffsetAndName`, and " @@ -2403,7 +2487,7 @@ msgid "" "Contributed by Paul Ganssle in :issue:`10381`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1701 +#: ../../whatsnew/3.7.rst:1721 msgid "" "The type of results of :c:func:`PyThread_start_new_thread` and :c:func:" "`PyThread_get_thread_ident`, and the *id* parameter of :c:func:" @@ -2411,14 +2495,14 @@ msgid "" "long`. (Contributed by Serhiy Storchaka in :issue:`6532`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1707 +#: ../../whatsnew/3.7.rst:1727 msgid "" ":c:func:`PyUnicode_AsWideCharString` now raises a :exc:`ValueError` if the " -"second argument is *NULL* and the :c:type:`wchar_t*` string contains null " +"second argument is ``NULL`` and the :c:type:`wchar_t*` string contains null " "characters. (Contributed by Serhiy Storchaka in :issue:`30708`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1711 +#: ../../whatsnew/3.7.rst:1731 msgid "" "Changes to the startup sequence and the management of dynamic memory " "allocators mean that the long documented requirement to call :c:func:" @@ -2429,45 +2513,45 @@ msgid "" "details." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1719 +#: ../../whatsnew/3.7.rst:1739 msgid "" "The new :c:func:`PyInterpreterState_GetID` returns the unique ID for a given " "interpreter. (Contributed by Eric Snow in :issue:`29102`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1723 +#: ../../whatsnew/3.7.rst:1743 msgid "" ":c:func:`Py_DecodeLocale`, :c:func:`Py_EncodeLocale` now use the UTF-8 " "encoding when the :ref:`UTF-8 mode ` is enabled. " "(Contributed by Victor Stinner in :issue:`29240`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1727 +#: ../../whatsnew/3.7.rst:1747 msgid "" ":c:func:`PyUnicode_DecodeLocaleAndSize` and :c:func:`PyUnicode_EncodeLocale` " "now use the current locale encoding for ``surrogateescape`` error handler. " "(Contributed by Victor Stinner in :issue:`29240`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1731 +#: ../../whatsnew/3.7.rst:1751 msgid "" "The *start* and *end* parameters of :c:func:`PyUnicode_FindChar` are now " "adjusted to behave like string slices. (Contributed by Xiang Zhang in :issue:" "`28822`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1737 +#: ../../whatsnew/3.7.rst:1757 msgid "Build Changes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1739 +#: ../../whatsnew/3.7.rst:1759 msgid "" "Support for building ``--without-threads`` has been removed. The :mod:" "`threading` module is now always available. (Contributed by Antoine Pitrou " "in :issue:`31370`.)." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1743 +#: ../../whatsnew/3.7.rst:1763 msgid "" "A full copy of libffi is no longer bundled for use when building the :mod:" "`_ctypes ` module on non-OSX UNIX platforms. An installed copy of " @@ -2475,7 +2559,7 @@ msgid "" "(Contributed by Zachary Ware in :issue:`27979`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1748 +#: ../../whatsnew/3.7.rst:1768 msgid "" "The Windows build process no longer depends on Subversion to pull in " "external sources, a Python script is used to download zipfiles from GitHub " @@ -2484,7 +2568,7 @@ msgid "" "by Zachary Ware in :issue:`30450`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1754 +#: ../../whatsnew/3.7.rst:1774 msgid "" "The :mod:`ssl` module requires OpenSSL 1.0.2 or 1.1 compatible libssl. " "OpenSSL 1.0.1 has reached end of lifetime on 2016-12-31 and is no longer " @@ -2492,11 +2576,11 @@ msgid "" "up to version 2.6.4 are missing required OpenSSL 1.0.2 APIs." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1763 +#: ../../whatsnew/3.7.rst:1783 msgid "Optimizations" msgstr "Otimizações" -#: ../Doc/whatsnew/3.7.rst:1765 +#: ../../whatsnew/3.7.rst:1785 msgid "" "The overhead of calling many methods of various standard library classes " "implemented in C has been significantly reduced by porting more code to use " @@ -2504,85 +2588,85 @@ msgid "" "`29300`, :issue:`29507`, :issue:`29452`, and :issue:`29286`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1771 +#: ../../whatsnew/3.7.rst:1791 msgid "" "Various optimizations have reduced Python startup time by 10% on Linux and " "up to 30% on macOS. (Contributed by Victor Stinner, INADA Naoki in :issue:" "`29585`, and Ivan Levkivskyi in :issue:`31333`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1776 +#: ../../whatsnew/3.7.rst:1796 msgid "" "Method calls are now up to 20% faster due to the bytecode changes which " "avoid creating bound method instances. (Contributed by Yury Selivanov and " "INADA Naoki in :issue:`26110`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1782 +#: ../../whatsnew/3.7.rst:1802 msgid "" "The :mod:`asyncio` module received a number of notable optimizations for " "commonly used functions:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1785 +#: ../../whatsnew/3.7.rst:1805 msgid "" "The :func:`asyncio.get_event_loop` function has been reimplemented in C to " "make it up to 15 times faster. (Contributed by Yury Selivanov in :issue:" "`32296`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1789 +#: ../../whatsnew/3.7.rst:1809 msgid "" ":class:`asyncio.Future` callback management has been optimized. (Contributed " "by Yury Selivanov in :issue:`32348`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1792 +#: ../../whatsnew/3.7.rst:1812 msgid "" ":func:`asyncio.gather` is now up to 15% faster. (Contributed by Yury " "Selivanov in :issue:`32355`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1795 +#: ../../whatsnew/3.7.rst:1815 msgid "" ":func:`asyncio.sleep` is now up to 2 times faster when the *delay* argument " "is zero or negative. (Contributed by Andrew Svetlov in :issue:`32351`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1799 +#: ../../whatsnew/3.7.rst:1819 msgid "" "The performance overhead of asyncio debug mode has been reduced. " "(Contributed by Antoine Pitrou in :issue:`31970`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1802 +#: ../../whatsnew/3.7.rst:1822 msgid "" "As a result of :ref:`PEP 560 work `, the import time of :" "mod:`typing` has been reduced by a factor of 7, and many typing operations " "are now faster. (Contributed by Ivan Levkivskyi in :issue:`32226`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1807 +#: ../../whatsnew/3.7.rst:1827 msgid "" ":func:`sorted` and :meth:`list.sort` have been optimized for common cases to " "be up to 40-75% faster. (Contributed by Elliot Gorokhovsky in :issue:" "`28685`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1811 +#: ../../whatsnew/3.7.rst:1831 msgid "" ":meth:`dict.copy` is now up to 5.5 times faster. (Contributed by Yury " "Selivanov in :issue:`31179`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1814 +#: ../../whatsnew/3.7.rst:1834 msgid "" ":func:`hasattr` and :func:`getattr` are now about 4 times faster when *name* " "is not found and *obj* does not override :meth:`object.__getattr__` or :meth:" "`object.__getattribute__`. (Contributed by INADA Naoki in :issue:`32544`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1819 +#: ../../whatsnew/3.7.rst:1839 msgid "" "Searching for certain Unicode characters (like Ukrainian capital \"Є\") in a " "string was up to 25 times slower than searching for other characters. It is " @@ -2590,7 +2674,7 @@ msgid "" "in :issue:`24821`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1824 +#: ../../whatsnew/3.7.rst:1844 msgid "" "The :func:`collections.namedtuple` factory has been reimplemented to make " "the creation of named tuples 4 to 6 times faster. (Contributed by Jelle " @@ -2598,33 +2682,33 @@ msgid "" "Raymond Hettinger in :issue:`28638`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1829 +#: ../../whatsnew/3.7.rst:1849 msgid "" ":meth:`date.fromordinal` and :meth:`date.fromtimestamp` are now up to 30% " "faster in the common case. (Contributed by Paul Ganssle in :issue:`32403`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1833 +#: ../../whatsnew/3.7.rst:1853 msgid "" "The :func:`os.fwalk` function is now up to 2 times faster thanks to the use " "of :func:`os.scandir`. (Contributed by Serhiy Storchaka in :issue:`25996`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1837 +#: ../../whatsnew/3.7.rst:1857 msgid "" "The speed of the :func:`shutil.rmtree` function has been improved by 20--40% " "thanks to the use of the :func:`os.scandir` function. (Contributed by Serhiy " "Storchaka in :issue:`28564`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1841 +#: ../../whatsnew/3.7.rst:1861 msgid "" "Optimized case-insensitive matching and searching of :mod:`regular " "expressions `. Searching some patterns can now be up to 20 times " "faster. (Contributed by Serhiy Storchaka in :issue:`30285`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1845 +#: ../../whatsnew/3.7.rst:1865 msgid "" ":func:`re.compile` now converts ``flags`` parameter to int object if it is " "``RegexFlag``. It is now as fast as Python 3.5, and faster than Python 3.6 " @@ -2632,7 +2716,7 @@ msgid "" "`31671`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1850 +#: ../../whatsnew/3.7.rst:1870 msgid "" "The :meth:`~selectors.BaseSelector.modify` methods of classes :class:" "`selectors.EpollSelector`, :class:`selectors.PollSelector` and :class:" @@ -2640,7 +2724,7 @@ msgid "" "(Contributed by Giampaolo Rodola' in :issue:`30014`)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1855 +#: ../../whatsnew/3.7.rst:1875 msgid "" "Constant folding has been moved from the peephole optimizer to the new AST " "optimizer, which is able perform optimizations more consistently. " @@ -2648,7 +2732,7 @@ msgid "" "`11549`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1860 +#: ../../whatsnew/3.7.rst:1880 msgid "" "Most functions and methods in :mod:`abc` have been rewritten in C. This " "makes creation of abstract base classes, and calling :func:`isinstance` and :" @@ -2657,7 +2741,7 @@ msgid "" "`31333`)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1866 +#: ../../whatsnew/3.7.rst:1886 msgid "" "Significant speed improvements to alternate constructors for :class:" "`datetime.date` and :class:`datetime.datetime` by using fast-path " @@ -2665,7 +2749,7 @@ msgid "" "in :issue:`32403`)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1871 +#: ../../whatsnew/3.7.rst:1891 msgid "" "The speed of comparison of :class:`array.array` instances has been improved " "considerably in certain cases. It is now from 10x to 70x faster when " @@ -2673,18 +2757,18 @@ msgid "" "Adrian Wielgosik in :issue:`24700`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1876 +#: ../../whatsnew/3.7.rst:1896 msgid "" "The :func:`math.erf` and :func:`math.erfc` functions now use the (faster) C " "library implementation on most platforms. (Contributed by Serhiy Storchaka " "in :issue:`26121`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1882 +#: ../../whatsnew/3.7.rst:1902 msgid "Other CPython Implementation Changes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1884 +#: ../../whatsnew/3.7.rst:1904 msgid "" "Trace hooks may now opt out of receiving the ``line`` and opt into receiving " "the ``opcode`` events from the interpreter by setting the corresponding new " @@ -2692,7 +2776,7 @@ msgid "" "traced. (Contributed by Nick Coghlan in :issue:`31344`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1889 +#: ../../whatsnew/3.7.rst:1909 msgid "" "Fixed some consistency problems with namespace package module attributes. " "Namespace module objects now have an ``__file__`` that is set to ``None`` " @@ -2703,14 +2787,14 @@ msgid "" "`32303`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:1897 +#: ../../whatsnew/3.7.rst:1917 msgid "" "The :func:`locals` dictionary now displays in the lexical order that " "variables were defined. Previously, the order was undefined. (Contributed " "by Raymond Hettinger in :issue:`32690`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1901 +#: ../../whatsnew/3.7.rst:1921 msgid "" "The :mod:`distutils` ``upload`` command no longer tries to change CR end-of-" "line characters to CRLF. This fixes a corruption issue with sdists that " @@ -2718,15 +2802,15 @@ msgid "" "`32304`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1908 +#: ../../whatsnew/3.7.rst:1928 msgid "Deprecated Python Behavior" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1910 +#: ../../whatsnew/3.7.rst:1930 msgid "" "Yield expressions (both ``yield`` and ``yield from`` clauses) are now " "deprecated in comprehensions and generator expressions (aside from the " -"iterable expression in the leftmost :keyword:`for` clause). This ensures " +"iterable expression in the leftmost :keyword:`!for` clause). This ensures " "that comprehensions always immediately return a container of the appropriate " "type (rather than potentially returning a :term:`generator iterator` " "object), while generator expressions won't attempt to interleave their " @@ -2736,7 +2820,7 @@ msgid "" "Storchaka in :issue:`10544`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1921 +#: ../../whatsnew/3.7.rst:1941 msgid "" "Returning a subclass of :class:`complex` from :meth:`object.__complex__` is " "deprecated and will be an error in future Python versions. This makes " @@ -2744,22 +2828,22 @@ msgid "" "__float__`. (Contributed by Serhiy Storchaka in :issue:`28894`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1930 +#: ../../whatsnew/3.7.rst:1950 msgid "Deprecated Python modules, functions and methods" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1933 +#: ../../whatsnew/3.7.rst:1953 msgid "aifc" -msgstr "" +msgstr "aifc" -#: ../Doc/whatsnew/3.7.rst:1935 +#: ../../whatsnew/3.7.rst:1955 msgid "" ":func:`aifc.openfp` has been deprecated and will be removed in Python 3.9. " "Use :func:`aifc.open` instead. (Contributed by Brian Curtin in :issue:" "`31985`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1945 +#: ../../whatsnew/3.7.rst:1965 msgid "" "Support for directly ``await``-ing instances of :class:`asyncio.Lock` and " "other asyncio synchronization primitives has been deprecated. An " @@ -2768,14 +2852,14 @@ msgid "" "`32253`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1951 +#: ../../whatsnew/3.7.rst:1971 msgid "" "The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks` " "methods have been deprecated. (Contributed by Andrew Svetlov in :issue:" "`32250`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1959 +#: ../../whatsnew/3.7.rst:1979 msgid "" "In Python 3.8, the abstract base classes in :mod:`collections.abc` will no " "longer be exposed in the regular :mod:`collections` module. This will help " @@ -2783,7 +2867,7 @@ msgid "" "base classes. (Contributed by Serhiy Storchaka in :issue:`25988`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1969 +#: ../../whatsnew/3.7.rst:1989 msgid "" ":mod:`dbm.dumb` now supports reading read-only files and no longer writes " "the index file when it is not changed. A deprecation warning is now emitted " @@ -2792,7 +2876,7 @@ msgid "" "Storchaka in :issue:`28847`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1979 +#: ../../whatsnew/3.7.rst:1999 msgid "" "In Python 3.8, attempting to check for non-Enum objects in :class:`Enum` " "classes will raise a :exc:`TypeError` (e.g. ``1 in Color``); similarly, " @@ -2802,18 +2886,18 @@ msgid "" "`33217`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1988 +#: ../../whatsnew/3.7.rst:2008 msgid "gettext" -msgstr "" +msgstr "gettext" -#: ../Doc/whatsnew/3.7.rst:1990 +#: ../../whatsnew/3.7.rst:2010 msgid "" "Using non-integer value for selecting a plural form in :mod:`gettext` is now " "deprecated. It never correctly worked. (Contributed by Serhiy Storchaka in :" "issue:`28692`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:1998 +#: ../../whatsnew/3.7.rst:2018 msgid "" "Methods :meth:`MetaPathFinder.find_module() ` (replaced by :meth:`MetaPathFinder.find_spec() ` provides an " "example of using the SSL :source:`compatibility testing infrastructure " @@ -2974,42 +3058,42 @@ msgid "" "against OpenSSL 1.1.0 rather than an outdated system provided OpenSSL." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2123 +#: ../../whatsnew/3.7.rst:2143 msgid "API and Feature Removals" -msgstr "" +msgstr "API and Feature Removals" -#: ../Doc/whatsnew/3.7.rst:2125 +#: ../../whatsnew/3.7.rst:2145 msgid "The following features and APIs have been removed from Python 3.7:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2127 +#: ../../whatsnew/3.7.rst:2147 msgid "" "The ``os.stat_float_times()`` function has been removed. It was introduced " "in Python 2.3 for backward compatibility with Python 2.2, and was deprecated " "since Python 3.1." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2131 +#: ../../whatsnew/3.7.rst:2151 msgid "" "Unknown escapes consisting of ``'\\'`` and an ASCII letter in replacement " "templates for :func:`re.sub` were deprecated in Python 3.5, and will now " "cause an error." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2135 +#: ../../whatsnew/3.7.rst:2155 msgid "" "Removed support of the *exclude* argument in :meth:`tarfile.TarFile.add`. It " "was deprecated in Python 2.7 and 3.2. Use the *filter* argument instead." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2138 +#: ../../whatsnew/3.7.rst:2158 msgid "" "The ``splitunc()`` function in the :mod:`ntpath` module was deprecated in " "Python 3.1, and has now been removed. Use the :func:`~os.path.splitdrive` " "function instead." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2142 +#: ../../whatsnew/3.7.rst:2162 msgid "" ":func:`collections.namedtuple` no longer supports the *verbose* parameter or " "``_source`` attribute which showed the generated source code for the named " @@ -3018,14 +3102,14 @@ msgid "" "Naoki, Serhiy Storchaka, and Raymond Hettinger in :issue:`28638`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2148 +#: ../../whatsnew/3.7.rst:2168 msgid "" "Functions :func:`bool`, :func:`float`, :func:`list` and :func:`tuple` no " "longer take keyword arguments. The first argument of :func:`int` can now be " "passed only as positional argument." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2152 +#: ../../whatsnew/3.7.rst:2172 msgid "" "Removed previously deprecated in Python 2.4 classes ``Plist``, ``Dict`` and " "``_InternalDict`` in the :mod:`plistlib` module. Dict values in the result " @@ -3034,7 +3118,7 @@ msgid "" "access to access items of these dictionaries." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2158 +#: ../../whatsnew/3.7.rst:2178 msgid "" "The ``asyncio.windows_utils.socketpair()`` function has been removed. Use " "the :func:`socket.socketpair` function instead, it is available on all " @@ -3042,14 +3126,14 @@ msgid "" "alias to ``socket.socketpair`` on Python 3.5 and newer." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2164 +#: ../../whatsnew/3.7.rst:2184 msgid "" ":mod:`asyncio` no longer exports the :mod:`selectors` and :mod:`_overlapped` " "modules as ``asyncio.selectors`` and ``asyncio._overlapped``. Replace ``from " "asyncio import selectors`` with ``import selectors``." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2169 +#: ../../whatsnew/3.7.rst:2189 msgid "" "Direct instantiation of :class:`ssl.SSLSocket` and :class:`ssl.SSLObject` " "objects is now prohibited. The constructors were never documented, tested, " @@ -3058,17 +3142,17 @@ msgid "" "in :issue:`32951`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2175 +#: ../../whatsnew/3.7.rst:2195 msgid "" "The unused :mod:`distutils` ``install_misc`` command has been removed. " "(Contributed by Eric N. Vander Weele in :issue:`29218`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2180 +#: ../../whatsnew/3.7.rst:2200 msgid "Module Removals" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2182 +#: ../../whatsnew/3.7.rst:2202 msgid "" "The ``fpectl`` module has been removed. It was never enabled by default, " "never worked correctly on x86-64, and it changed the Python ABI in ways that " @@ -3076,11 +3160,11 @@ msgid "" "Smith in :issue:`29137`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2189 ../Doc/whatsnew/3.7.rst:2461 +#: ../../whatsnew/3.7.rst:2209 ../../whatsnew/3.7.rst:2485 msgid "Windows-only Changes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2191 +#: ../../whatsnew/3.7.rst:2211 msgid "" "The python launcher, (py.exe), can accept 32 & 64 bit specifiers **without** " "having to specify a minor version as well. So ``py -3-32`` and ``py -3-64`` " @@ -3090,7 +3174,7 @@ msgid "" "(Contributed by Steve Barnes in :issue:`30291`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2198 +#: ../../whatsnew/3.7.rst:2218 msgid "" "The launcher can be run as ``py -0`` to produce a list of the installed " "pythons, *with default marked with an asterisk*. Running ``py -0p`` will " @@ -3099,28 +3183,30 @@ msgid "" "(Contributed by Steve Barnes in :issue:`30362`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2208 +#: ../../whatsnew/3.7.rst:2228 msgid "Porting to Python 3.7" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2210 +#: ../../whatsnew/3.7.rst:2230 msgid "" "This section lists previously described changes and other bugfixes that may " "require changes to your code." msgstr "" +"This section lists previously described changes and other bugfixes that may " +"require changes to your code." -#: ../Doc/whatsnew/3.7.rst:2215 +#: ../../whatsnew/3.7.rst:2235 msgid "Changes in Python Behavior" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2217 +#: ../../whatsnew/3.7.rst:2237 msgid "" ":keyword:`async` and :keyword:`await` names are now reserved keywords. Code " "using these names as identifiers will now raise a :exc:`SyntaxError`. " "(Contributed by Jelle Zijlstra in :issue:`30406`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2221 +#: ../../whatsnew/3.7.rst:2241 msgid "" ":pep:`479` is enabled for all code in Python 3.7, meaning that :exc:" "`StopIteration` exceptions raised directly or indirectly in coroutines and " @@ -3128,19 +3214,19 @@ msgid "" "by Yury Selivanov in :issue:`32670`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2227 +#: ../../whatsnew/3.7.rst:2247 msgid "" ":meth:`object.__aiter__` methods can no longer be declared as asynchronous. " "(Contributed by Yury Selivanov in :issue:`31709`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2230 +#: ../../whatsnew/3.7.rst:2250 msgid "" "Due to an oversight, earlier Python versions erroneously accepted the " "following syntax::" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2238 +#: ../../whatsnew/3.7.rst:2258 msgid "" "Python 3.7 now correctly raises a :exc:`SyntaxError`, as a generator " "expression always needs to be directly inside a set of parentheses and " @@ -3149,7 +3235,7 @@ msgid "" "`32012` and :issue:`32023`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2244 +#: ../../whatsnew/3.7.rst:2264 msgid "" "When using the :option:`-m` switch, the initial working directory is now " "added to :data:`sys.path`, rather than an empty string (which dynamically " @@ -3161,11 +3247,11 @@ msgid "" "place)." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2254 +#: ../../whatsnew/3.7.rst:2274 msgid "Changes in the Python API" -msgstr "" +msgstr "Changes in the Python API" -#: ../Doc/whatsnew/3.7.rst:2256 +#: ../../whatsnew/3.7.rst:2276 msgid "" ":meth:`socketserver.ThreadingMixIn.server_close` now waits until all non-" "daemon threads complete. Set the new :attr:`socketserver.ThreadingMixIn." @@ -3173,7 +3259,7 @@ msgid "" "(Contributed by Victor Stinner in :issue:`31233` and :issue:`33540`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2262 +#: ../../whatsnew/3.7.rst:2282 msgid "" ":meth:`socketserver.ForkingMixIn.server_close` now waits until all child " "processes complete. Set the new :attr:`socketserver.ForkingMixIn." @@ -3181,21 +3267,21 @@ msgid "" "(Contributed by Victor Stinner in :issue:`31151` and :issue:`33540`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2268 +#: ../../whatsnew/3.7.rst:2288 msgid "" "The :func:`locale.localeconv` function now temporarily sets the ``LC_CTYPE`` " "locale to the value of ``LC_NUMERIC`` in some cases. (Contributed by Victor " "Stinner in :issue:`31900`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2272 +#: ../../whatsnew/3.7.rst:2292 msgid "" ":meth:`pkgutil.walk_packages` now raises a :exc:`ValueError` if *path* is a " "string. Previously an empty list was returned. (Contributed by Sanyam " "Khurana in :issue:`24744`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2276 +#: ../../whatsnew/3.7.rst:2296 msgid "" "A format string argument for :meth:`string.Formatter.format` is now :ref:" "`positional-only `. Passing it as a keyword " @@ -3203,7 +3289,7 @@ msgid "" "issue:`29193`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2281 +#: ../../whatsnew/3.7.rst:2301 msgid "" "Attributes :attr:`~http.cookies.Morsel.key`, :attr:`~http.cookies.Morsel." "value` and :attr:`~http.cookies.Morsel.coded_value` of class :class:`http." @@ -3212,7 +3298,7 @@ msgid "" "them. (Contributed by Serhiy Storchaka in :issue:`29192`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2289 +#: ../../whatsnew/3.7.rst:2309 msgid "" "The *mode* argument of :func:`os.makedirs` no longer affects the file " "permission bits of newly-created intermediate-level directories. To set " @@ -3220,13 +3306,13 @@ msgid "" "``makedirs()``. (Contributed by Serhiy Storchaka in :issue:`19930`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2295 +#: ../../whatsnew/3.7.rst:2315 msgid "" "The :attr:`struct.Struct.format` type is now :class:`str` instead of :class:" "`bytes`. (Contributed by Victor Stinner in :issue:`21071`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2298 +#: ../../whatsnew/3.7.rst:2318 msgid "" ":func:`~cgi.parse_multipart` now accepts the *encoding* and *errors* " "arguments and returns the same results as :class:`~FieldStorage`: for non-" @@ -3234,27 +3320,27 @@ msgid "" "(Contributed by Pierre Quentel in :issue:`29979`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2304 +#: ../../whatsnew/3.7.rst:2324 msgid "" "Due to internal changes in :mod:`socket`, calling :func:`socket.fromshare` " "on a socket created by :func:`socket.share ` in older " "Python versions is not supported." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2308 +#: ../../whatsnew/3.7.rst:2328 msgid "" "``repr`` for :exc:`BaseException` has changed to not include the trailing " "comma. Most exceptions are affected by this change. (Contributed by Serhiy " "Storchaka in :issue:`30399`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2312 +#: ../../whatsnew/3.7.rst:2332 msgid "" "``repr`` for :class:`datetime.timedelta` has changed to include the keyword " "arguments in the output. (Contributed by Utkarsh Upadhyay in :issue:`30302`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2315 +#: ../../whatsnew/3.7.rst:2335 msgid "" "Because :func:`shutil.rmtree` is now implemented using the :func:`os." "scandir` function, the user specified handler *onerror* is now called with " @@ -3262,7 +3348,7 @@ msgid "" "directory is failed." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2320 +#: ../../whatsnew/3.7.rst:2340 msgid "" "Support for nested sets and set operations in regular expressions as in " "`Unicode Technical Standard #18`_ might be added in the future. This would " @@ -3273,7 +3359,7 @@ msgid "" "with a backslash. (Contributed by Serhiy Storchaka in :issue:`30349`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2331 +#: ../../whatsnew/3.7.rst:2351 msgid "" "The result of splitting a string on a :mod:`regular expression ` that " "could match an empty string has been changed. For example splitting on " @@ -3284,7 +3370,7 @@ msgid "" "patterns since Python 3.5." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2340 +#: ../../whatsnew/3.7.rst:2360 msgid "" "For patterns that match both empty and non-empty strings, the result of " "searching for all matches may also be changed in other cases. For example " @@ -3294,7 +3380,7 @@ msgid "" "as ``r'(?m)^[^\\S\\n]*$'``." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2347 +#: ../../whatsnew/3.7.rst:2367 msgid "" ":func:`re.sub()` now replaces empty matches adjacent to a previous non-empty " "match. For example ``re.sub('x*', '-', 'abxd')`` returns now ``'-a-b--d-'`` " @@ -3302,25 +3388,25 @@ msgid "" "and the second minus replaces an empty string between 'x' and 'd')." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2353 +#: ../../whatsnew/3.7.rst:2373 msgid "(Contributed by Serhiy Storchaka in :issue:`25054` and :issue:`32308`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2355 +#: ../../whatsnew/3.7.rst:2375 msgid "" "Change :func:`re.escape` to only escape regex special characters instead of " "escaping all characters other than ASCII letters, numbers, and ``'_'``. " "(Contributed by Serhiy Storchaka in :issue:`29995`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2359 +#: ../../whatsnew/3.7.rst:2379 msgid "" ":class:`tracemalloc.Traceback` frames are now sorted from oldest to most " "recent to be more consistent with :mod:`traceback`. (Contributed by Jesse " "Bakker in :issue:`32121`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2363 +#: ../../whatsnew/3.7.rst:2383 msgid "" "On OSes that support :const:`socket.SOCK_NONBLOCK` or :const:`socket." "SOCK_CLOEXEC` bit flags, the :attr:`socket.type ` no " @@ -3329,7 +3415,7 @@ msgid "" "Selivanov in :issue:`32331`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2370 +#: ../../whatsnew/3.7.rst:2390 msgid "" "On Windows the default for the *close_fds* argument of :class:`subprocess." "Popen` was changed from :const:`False` to :const:`True` when redirecting the " @@ -3339,7 +3425,7 @@ msgid "" "`STARTUPINFO.lpAttributeList `." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2378 +#: ../../whatsnew/3.7.rst:2398 msgid "" ":meth:`importlib.machinery.PathFinder.invalidate_caches` -- which implicitly " "affects :func:`importlib.invalidate_caches` -- now deletes entries in :data:" @@ -3347,7 +3433,7 @@ msgid "" "Cannon in :issue:`33169`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2383 +#: ../../whatsnew/3.7.rst:2403 msgid "" "In :mod:`asyncio`, :meth:`loop.sock_recv() `, :meth:" "`loop.sock_sendall() `, :meth:`loop.sock_accept() " @@ -3358,28 +3444,36 @@ msgid "" "(Contributed by Yury Selivanov in :issue:`32327`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2394 +#: ../../whatsnew/3.7.rst:2414 msgid "" ":attr:`asyncio.Server.sockets` now returns a copy of the internal list of " "server sockets, instead of returning it directly. (Contributed by Yury " "Selivanov in :issue:`32662`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2398 +#: ../../whatsnew/3.7.rst:2418 msgid "" ":attr:`Struct.format ` is now a :class:`str` instance " "instead of a :class:`bytes` instance. (Contributed by Victor Stinner in :" "issue:`21071`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2402 +#: ../../whatsnew/3.7.rst:2422 +msgid "" +":mod:`argparse` subparsers can now be made mandatory by passing " +"``required=True`` to :meth:`ArgumentParser.add_subparsers() `. (Contributed by Anthony Sottile in :issue:" +"`26510`.)" +msgstr "" + +#: ../../whatsnew/3.7.rst:2426 msgid "" ":meth:`ast.literal_eval()` is now stricter. Addition and subtraction of " "arbitrary numbers are no longer allowed. (Contributed by Serhiy Storchaka " "in :issue:`31778`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2406 +#: ../../whatsnew/3.7.rst:2430 msgid "" ":meth:`Calendar.itermonthdates ` will now " "consistently raise an exception when a date falls outside of the " @@ -3391,13 +3485,13 @@ msgid "" "date`. (Contributed by Alexander Belopolsky in :issue:`28292`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2416 +#: ../../whatsnew/3.7.rst:2440 msgid "" ":class:`collections.ChainMap` now preserves the order of the underlying " "mappings. (Contributed by Raymond Hettinger in :issue:`32792`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2419 +#: ../../whatsnew/3.7.rst:2443 msgid "" "The ``submit()`` method of :class:`concurrent.futures.ThreadPoolExecutor` " "and :class:`concurrent.futures.ProcessPoolExecutor` now raises a :exc:" @@ -3405,7 +3499,7 @@ msgid "" "Nemec in :issue:`33097`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2424 +#: ../../whatsnew/3.7.rst:2448 msgid "" "The :class:`configparser.ConfigParser` constructor now uses ``read_dict()`` " "to process the default values, making its behavior consistent with the rest " @@ -3414,7 +3508,7 @@ msgid "" "in :issue:`23835`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2430 +#: ../../whatsnew/3.7.rst:2454 msgid "" "Several undocumented internal imports were removed. One example is that ``os." "errno`` is no longer available; use ``import errno`` directly instead. Note " @@ -3422,11 +3516,11 @@ msgid "" "notice, even in micro version releases." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2438 +#: ../../whatsnew/3.7.rst:2462 msgid "Changes in the C API" -msgstr "" +msgstr "Changes in the C API" -#: ../Doc/whatsnew/3.7.rst:2440 +#: ../../whatsnew/3.7.rst:2464 msgid "" "The function :c:func:`PySlice_GetIndicesEx` is considered unsafe for " "resizable sequences. If the slice indices are not instances of :class:" @@ -3438,34 +3532,34 @@ msgid "" "Storchaka in :issue:`27867`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2451 +#: ../../whatsnew/3.7.rst:2475 msgid "CPython bytecode changes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2453 +#: ../../whatsnew/3.7.rst:2477 msgid "" "There are two new opcodes: :opcode:`LOAD_METHOD` and :opcode:`CALL_METHOD`. " "(Contributed by Yury Selivanov and INADA Naoki in :issue:`26110`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2456 +#: ../../whatsnew/3.7.rst:2480 msgid "" "The :opcode:`STORE_ANNOTATION` opcode has been removed. (Contributed by Mark " "Shannon in :issue:`32550`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2463 +#: ../../whatsnew/3.7.rst:2487 msgid "" "The file used to override :data:`sys.path` is now called ``._pth`` instead of ``'sys.path'``. See :ref:`finding_modules` for " "more information. (Contributed by Steve Dower in :issue:`28137`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2470 +#: ../../whatsnew/3.7.rst:2494 msgid "Other CPython implementation changes" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2472 +#: ../../whatsnew/3.7.rst:2496 msgid "" "In preparation for potential future changes to the public CPython runtime " "initialization API (see :pep:`432` for an initial, but somewhat outdated, " @@ -3480,21 +3574,21 @@ msgid "" "Stinner in a number of other issues). Some known details affected:" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2485 +#: ../../whatsnew/3.7.rst:2509 msgid "" ":c:func:`PySys_AddWarnOptionUnicode` is not currently usable by embedding " "applications due to the requirement to create a Unicode object prior to " "calling `Py_Initialize`. Use :c:func:`PySys_AddWarnOption` instead." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2489 +#: ../../whatsnew/3.7.rst:2513 msgid "" "warnings filters added by an embedding application with :c:func:" "`PySys_AddWarnOption` should now more consistently take precedence over the " "default filters set by the interpreter" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2493 +#: ../../whatsnew/3.7.rst:2517 msgid "" "Due to changes in the way the default warnings filters are configured, " "setting :c:data:`Py_BytesWarningFlag` to a value greater than one is no " @@ -3504,7 +3598,7 @@ msgid "" "BytesWarning`` warnings filter added to convert them to exceptions." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2500 +#: ../../whatsnew/3.7.rst:2524 msgid "" "Due to a change in the way docstrings are handled by the compiler, the " "implicit ``return None`` in a function body consisting solely of a docstring " @@ -3512,7 +3606,7 @@ msgid "" "function's header line." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2505 +#: ../../whatsnew/3.7.rst:2529 msgid "" "The current exception state has been moved from the frame object to the co-" "routine. This simplified the interpreter and fixed a couple of obscure bugs " @@ -3520,11 +3614,11 @@ msgid "" "(Contributed by Mark Shannon in :issue:`25612`.)" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2511 +#: ../../whatsnew/3.7.rst:2535 msgid "Notable changes in Python 3.7.1" msgstr "" -#: ../Doc/whatsnew/3.7.rst:2513 +#: ../../whatsnew/3.7.rst:2537 msgid "" "Starting in 3.7.1, :c:func:`Py_Initialize` now consistently reads and " "respects all of the same environment settings as :c:func:`Py_Main` (in " @@ -3534,23 +3628,51 @@ msgid "" "`Py_IgnoreEnvironmentFlag` to 1 before calling :c:func:`Py_Initialize`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2520 +#: ../../whatsnew/3.7.rst:2544 msgid "" "In 3.7.1 the C API for Context Variables :ref:`was updated " "` to use :c:type:`PyObject` " "pointers. See also :issue:`34762`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2524 +#: ../../whatsnew/3.7.rst:2548 msgid "" ":mod:`xml.dom.minidom` and :mod:`xml.sax` modules no longer process external " "entities by default. See also :issue:`17239`." msgstr "" -#: ../Doc/whatsnew/3.7.rst:2527 +#: ../../whatsnew/3.7.rst:2551 msgid "" "In 3.7.1 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token " "when provided with input that does not have a trailing new line. This " "behavior now matches what the C tokenizer does internally. (Contributed by " "Ammar Askar in :issue:`33899`.)" msgstr "" + +#: ../../whatsnew/3.7.rst:2557 +msgid "Notable changes in Python 3.7.2" +msgstr "" + +#: ../../whatsnew/3.7.rst:2559 +msgid "" +"In 3.7.2, :mod:`venv` on Windows no longer copies the original binaries, but " +"creates redirector scripts named ``python.exe`` and ``pythonw.exe`` instead. " +"This resolves a long standing issue where all virtual environments would " +"have to be upgraded or recreated with each Python update. However, note that " +"this release will still require recreation of virtual environments in order " +"to get the new scripts." +msgstr "" + +#: ../../whatsnew/3.7.rst:2567 +msgid "Notable changes in Python 3.7.6" +msgstr "" + +#: ../../whatsnew/3.7.rst:2569 +msgid "" +"Due to significant security concerns, the *reuse_address* parameter of :meth:" +"`asyncio.loop.create_datagram_endpoint` is no longer supported. This is " +"because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For " +"more details, see the documentation for ``loop.create_datagram_endpoint()``. " +"(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:" +"`37228`.)" +msgstr "" diff --git a/whatsnew/3.8.po b/whatsnew/3.8.po deleted file mode 100644 index 6b35a4338..000000000 --- a/whatsnew/3.8.po +++ /dev/null @@ -1,550 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2018, Python Software Foundation -# This file is distributed under the same license as the Python package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: Python 3.8\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-03 18:54+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../whatsnew/3.8.rst:3 -msgid "What's New In Python 3.8" -msgstr "" - -#: ../whatsnew/3.8.rst:45 -msgid "This article explains the new features in Python 3.8, compared to 3.7." -msgstr "" - -#: ../whatsnew/3.8.rst:47 -msgid "For full details, see the :ref:`changelog `." -msgstr "" - -#: ../whatsnew/3.8.rst:51 -msgid "" -"Prerelease users should be aware that this document is currently in draft " -"form. It will be updated substantially as Python 3.8 moves towards release, " -"so it's worth checking back even after reading earlier versions." -msgstr "" - -#: ../whatsnew/3.8.rst:57 -msgid "Summary -- Release highlights" -msgstr "" - -#: ../whatsnew/3.8.rst:68 -msgid "New Features" -msgstr "" - -#: ../whatsnew/3.8.rst:71 -msgid "Parallel filesystem cache for compiled bytecode files" -msgstr "" - -#: ../whatsnew/3.8.rst:73 -msgid "" -"The new :envvar:`PYTHONPYCACHEPREFIX` setting (also available as :option:`-" -"X` ``pycache_prefix``) configures the implicit bytecode cache to use a " -"separate parallel filesystem tree, rather than the default ``__pycache__`` " -"subdirectories within each source directory." -msgstr "" - -#: ../whatsnew/3.8.rst:79 -msgid "" -"The location of the cache is reported in :data:`sys.pycache_prefix` (:const:" -"`None` indicates the default location in ``__pycache__`` subdirectories)." -msgstr "" - -#: ../whatsnew/3.8.rst:83 -msgid "(Contributed by Carl Meyer in :issue:`33499`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:87 -msgid "Other Language Changes" -msgstr "Outras mudanças na Linguagem" - -#: ../whatsnew/3.8.rst:89 -msgid "" -"A :keyword:`continue` statement was illegal in the :keyword:`finally` clause " -"due to a problem with the implementation. In Python 3.8 this restriction " -"was lifted. (Contributed by Serhiy Storchaka in :issue:`32489`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:94 -msgid "" -"The :class:`int` type now has a new :meth:`~int.as_integer_ratio` method " -"compatible with the existing :meth:`float.as_integer_ratio` method. " -"(Contributed by Lisa Roach in :issue:`33073`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:98 -msgid "" -"Added support of ``\\N{name}`` escapes in :mod:`regular expressions `. " -"(Contributed by Jonathan Eunice and Serhiy Storchaka in :issue:`30688`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:101 -msgid "" -"The syntax allowed for keyword names in function calls was further " -"restricted. In particular, ``f((keyword)=arg)`` is no longer allowed. It was " -"never intended to permit more than a bare name on the left-hand side of a " -"keyword argument assignment term. See :issue:`34641`." -msgstr "" - -#: ../whatsnew/3.8.rst:106 -msgid "" -"Iterable unpacking is now allowed without parentheses in :keyword:`yield` " -"and :keyword:`return` statements. (Contributed by David Cuthbert and Jordan " -"Chapman in :issue:`32117`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:110 -msgid "" -"A backslash-character pair that is not a valid escape sequence generates a :" -"exc:`DeprecationWarning` since Python 3.6. In Python 3.8 it generates a :exc:" -"`SyntaxWarning` instead. (Contributed by Serhiy Storchaka in :issue:`32912`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:117 -msgid "New Modules" -msgstr "Novos Módulos" - -#: ../whatsnew/3.8.rst:119 -msgid "None yet." -msgstr "" - -#: ../whatsnew/3.8.rst:123 -msgid "Improved Modules" -msgstr "Módulos melhorados" - -#: ../whatsnew/3.8.rst:126 -msgid "asyncio" -msgstr "" - -#: ../whatsnew/3.8.rst:128 -msgid "" -"On Windows, the default event loop is now :class:`~asyncio." -"ProactorEventLoop`." -msgstr "" - -#: ../whatsnew/3.8.rst:132 -msgid "idlelib and IDLE" -msgstr "" - -#: ../whatsnew/3.8.rst:134 -msgid "" -"Output over N lines (50 by default) is squeezed down to a button. N can be " -"changed in the PyShell section of the General page of the Settings dialog. " -"Fewer, but possibly extra long, lines can be squeezed by right clicking on " -"the output. Squeezed output can be expanded in place by double-clicking the " -"button or into the clipboard or a separate window by right-clicking the " -"button. (Contributed by Tal Einat in :issue:`1529353`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:141 -msgid "The changes above have been backported to 3.7 maintenance releases." -msgstr "" - -#: ../whatsnew/3.8.rst:145 -msgid "os.path" -msgstr "" - -#: ../whatsnew/3.8.rst:147 -msgid "" -":mod:`os.path` functions that return a boolean result like :func:`~os.path." -"exists`, :func:`~os.path.lexists`, :func:`~os.path.isdir`, :func:`~os.path." -"isfile`, :func:`~os.path.islink`, and :func:`~os.path.ismount` now return " -"``False`` instead of raising :exc:`ValueError` or its subclasses :exc:" -"`UnicodeEncodeError` and :exc:`UnicodeDecodeError` for paths that contain " -"characters or bytes unrepresentable at the OS level. (Contributed by Serhiy " -"Storchaka in :issue:`33721`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:156 -msgid "pathlib" -msgstr "" - -#: ../whatsnew/3.8.rst:158 -msgid "" -":mod:`pathlib.Path` methods that return a boolean result like :meth:" -"`~pathlib.Path.exists()`, :meth:`~pathlib.Path.is_dir()`, :meth:`~pathlib." -"Path.is_file()`, :meth:`~pathlib.Path.is_mount()`, :meth:`~pathlib.Path." -"is_symlink()`, :meth:`~pathlib.Path.is_block_device()`, :meth:`~pathlib.Path." -"is_char_device()`, :meth:`~pathlib.Path.is_fifo()`, :meth:`~pathlib.Path." -"is_socket()` now return ``False`` instead of raising :exc:`ValueError` or " -"its subclass :exc:`UnicodeEncodeError` for paths that contain characters " -"unrepresentable at the OS level. (Contributed by Serhiy Storchaka in :issue:" -"`33721`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:169 -msgid "ssl" -msgstr "" - -#: ../whatsnew/3.8.rst:171 -msgid "" -"Added :attr:`SSLContext.post_handshake_auth` to enable and :meth:`ssl." -"SSLSocket.verify_client_post_handshake` to initiate TLS 1.3 post-handshake " -"authentication. (Contributed by Christian Heimes in :issue:`34670`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:177 -msgid "tkinter" -msgstr "" - -#: ../whatsnew/3.8.rst:179 -msgid "" -"Added methods :meth:`~tkinter.Spinbox.selection_from`, :meth:`~tkinter." -"Spinbox.selection_present`, :meth:`~tkinter.Spinbox.selection_range` and :" -"meth:`~tkinter.Spinbox.selection_to` in the :class:`tkinter.Spinbox` class. " -"(Contributed by Juliette Monsel in :issue:`34829`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:186 -msgid "" -"Added method :meth:`~tkinter.Canvas.moveto` in the :class:`tkinter.Canvas` " -"class. (Contributed by Juliette Monsel in :issue:`23831`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:191 -msgid "venv" -msgstr "" - -#: ../whatsnew/3.8.rst:193 -msgid "" -":mod:`venv` now includes an ``Activate.ps1`` script on all platforms for " -"activating virtual environments under PowerShell Core 6.1. (Contributed by " -"Brett Cannon in :issue:`32718`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:198 -msgid "xml" -msgstr "" - -#: ../whatsnew/3.8.rst:200 -msgid "" -"As mitigation against DTD and external entity retrieval, the :mod:`xml.dom." -"minidom` and mod:`xml.sax` modules no longer process external entities by " -"default. (Contributed by Christian Heimes in :issue:`17239`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:207 -msgid "Optimizations" -msgstr "Otimizações" - -#: ../whatsnew/3.8.rst:209 -msgid "" -":func:`shutil.copyfile`, :func:`shutil.copy`, :func:`shutil.copy2`, :func:" -"`shutil.copytree` and :func:`shutil.move` use platform-specific \"fast-copy" -"\" syscalls on Linux, macOS and Solaris in order to copy the file more " -"efficiently. \"fast-copy\" means that the copying operation occurs within " -"the kernel, avoiding the use of userspace buffers in Python as in \"``outfd." -"write(infd.read())``\". On Windows :func:`shutil.copyfile` uses a bigger " -"default buffer size (1 MiB instead of 16 KiB) and a :func:`memoryview`-based " -"variant of :func:`shutil.copyfileobj` is used. The speedup for copying a 512 " -"MiB file within the same partition is about +26% on Linux, +50% on macOS and " -"+40% on Windows. Also, much less CPU cycles are consumed. See :ref:`shutil-" -"platform-dependent-efficient-copy-operations` section. (Contributed by " -"Giampaolo Rodola' in :issue:`25427`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:225 -msgid "" -"The default protocol in the :mod:`pickle` module is now Protocol 4, first " -"introduced in Python 3.4. It offers better performance and smaller size " -"compared to Protocol 3 available since Python 3.0." -msgstr "" - -#: ../whatsnew/3.8.rst:229 -msgid "" -"Removed one ``Py_ssize_t`` member from ``PyGC_Head``. All GC tracked " -"objects (e.g. tuple, list, dict) size is reduced 4 or 8 bytes. (Contributed " -"by Inada Naoki in :issue:`33597`)" -msgstr "" - -#: ../whatsnew/3.8.rst:233 -msgid "" -":class:`uuid.UUID` now uses ``__slots__`` to reduce its memory footprint. " -"Note that this means that instances can no longer be weak-referenced and " -"that arbitrary attributes can no longer be added to them." -msgstr "" - -#: ../whatsnew/3.8.rst:239 -msgid "Build and C API Changes" -msgstr "" - -#: ../whatsnew/3.8.rst:241 -msgid "" -"The result of :c:func:`PyExceptionClass_Name` is now of type ``const char " -"*`` rather of ``char *``. (Contributed by Serhiy Storchaka in :issue:" -"`33818`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:245 -msgid "" -"The duality of ``Modules/Setup.dist`` and ``Modules/Setup`` has been " -"removed. Previously, when updating the CPython source tree, one had to " -"manually copy ``Modules/Setup.dist`` (inside the source tree) to ``Modules/" -"Setup`` (inside the build tree) in order to reflect any changes upstream. " -"This was of a small benefit to packagers at the expense of a frequent " -"annoyance to developers following CPython development, as forgetting to copy " -"the file could produce build failures." -msgstr "" - -#: ../whatsnew/3.8.rst:253 -msgid "" -"Now the build system always reads from ``Modules/Setup`` inside the source " -"tree. People who want to customize that file are encouraged to maintain " -"their changes in a git fork of CPython or as patch files, as they would do " -"for any other change to the source tree." -msgstr "" - -#: ../whatsnew/3.8.rst:258 -msgid "(Contributed by Antoine Pitrou in :issue:`32430`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:262 -msgid "Deprecated" -msgstr "Descontinuado" - -#: ../whatsnew/3.8.rst:264 -msgid "" -"Deprecated methods ``getchildren()`` and ``getiterator()`` in the :mod:`~xml." -"etree.ElementTree` module emit now a :exc:`DeprecationWarning` instead of :" -"exc:`PendingDeprecationWarning`. They will be removed in Python 3.9. " -"(Contributed by Serhiy Storchaka in :issue:`29209`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:270 -msgid "" -"Passing an object that is not an instance of :class:`concurrent.futures." -"ThreadPoolExecutor` to :meth:`asyncio.loop.set_default_executor()` is " -"deprecated and will be prohibited in Python 3.9. (Contributed by Elvis " -"Pranskevichus in :issue:`34075`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:276 -msgid "" -"The :meth:`__getitem__` methods of :class:`xml.dom.pulldom.DOMEventStream`, :" -"class:`wsgiref.util.FileWrapper` and :class:`fileinput.FileInput` have been " -"deprecated." -msgstr "" - -#: ../whatsnew/3.8.rst:280 -msgid "" -"Implementations of these methods have been ignoring their *index* parameter, " -"and returning the next item instead." -msgstr "" - -#: ../whatsnew/3.8.rst:283 -msgid "(Contributed by Berker Peksag in :issue:`9372`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:285 -msgid "" -":mod:`ast` classes ``Num``, ``Str``, ``Bytes``, ``NameConstant`` and " -"``Ellipsis`` are considered deprecated and will be removed in future Python " -"versions. :class:`~ast.Constant` should be used instead. (Contributed by " -"Serhiy Storchaka in :issue:`32892`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:292 -msgid "Removed" -msgstr "" - -#: ../whatsnew/3.8.rst:294 -msgid "" -"The ``pyvenv`` script has been removed in favor of ``python3.8 -m venv`` to " -"help eliminate confusion as to what Python interpreter the ``pyvenv`` script " -"is tied to. (Contributed by Brett Cannon in :issue:`25427`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:298 -msgid "" -"``parse_qs``, ``parse_qsl``, and ``escape`` are removed from :mod:`cgi` " -"module. They are deprecated from Python 3.2 or older." -msgstr "" - -#: ../whatsnew/3.8.rst:301 -msgid "" -"``filemode`` function is removed from :mod:`tarfile` module. It is not " -"documented and deprecated since Python 3.3." -msgstr "" - -#: ../whatsnew/3.8.rst:304 -msgid "" -"The :class:`~xml.etree.ElementTree.XMLParser` constructor no longer accepts " -"the *html* argument. It never had effect and was deprecated in Python 3.4. " -"All other parameters are now :ref:`keyword-only `. " -"(Contributed by Serhiy Storchaka in :issue:`29209`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:309 -msgid "" -"Removed the ``doctype()`` method of :class:`~xml.etree.ElementTree." -"XMLParser`. (Contributed by Serhiy Storchaka in :issue:`29209`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:314 -msgid "Porting to Python 3.8" -msgstr "" - -#: ../whatsnew/3.8.rst:316 -msgid "" -"This section lists previously described changes and other bugfixes that may " -"require changes to your code." -msgstr "" - -#: ../whatsnew/3.8.rst:321 -msgid "Changes in Python behavior" -msgstr "" - -#: ../whatsnew/3.8.rst:323 -msgid "" -"Yield expressions (both ``yield`` and ``yield from`` clauses) are now " -"disallowed in comprehensions and generator expressions (aside from the " -"iterable expression in the leftmost :keyword:`for` clause). (Contributed by " -"Serhiy Storchaka in :issue:`10544`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:330 -msgid "Changes in the Python API" -msgstr "" - -#: ../whatsnew/3.8.rst:332 -msgid "" -"The :meth:`~tkinter.ttk.Treeview.selection` method of the :class:`tkinter." -"ttk.Treeview` class no longer takes arguments. Using it with arguments for " -"changing the selection was deprecated in Python 3.6. Use specialized " -"methods like :meth:`~tkinter.ttk.Treeview.selection_set` for changing the " -"selection. (Contributed by Serhiy Storchaka in :issue:`31508`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:338 -msgid "" -"A :mod:`dbm.dumb` database opened with flags ``'r'`` is now read-only. :func:" -"`dbm.dumb.open` with flags ``'r'`` and ``'w'`` no longer creates a database " -"if it does not exist. (Contributed by Serhiy Storchaka in :issue:`32749`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:343 -msgid "" -"The ``doctype()`` method defined in a subclass of :class:`~xml.etree." -"ElementTree.XMLParser` will no longer be called and will cause emitting a :" -"exc:`RuntimeWarning` instead of a :exc:`DeprecationWarning`. Define the :" -"meth:`doctype() ` method on a " -"target for handling an XML doctype declaration. (Contributed by Serhiy " -"Storchaka in :issue:`29209`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:350 -msgid "" -"A :exc:`RuntimeError` is now raised when the custom metaclass doesn't " -"provide the ``__classcell__`` entry in the namespace passed to ``type." -"__new__``. A :exc:`DeprecationWarning` was emitted in Python 3.6--3.7. " -"(Contributed by Serhiy Storchaka in :issue:`23722`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:355 -msgid "" -"The :class:`cProfile.Profile` class can now be used as a context manager. " -"(Contributed by Scott Sanderson in :issue:`29235`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:358 -msgid "" -":func:`shutil.copyfile`, :func:`shutil.copy`, :func:`shutil.copy2`, :func:" -"`shutil.copytree` and :func:`shutil.move` use platform-specific \"fast-copy" -"\" syscalls (see :ref:`shutil-platform-dependent-efficient-copy-operations` " -"section)." -msgstr "" - -#: ../whatsnew/3.8.rst:363 -msgid "" -":func:`shutil.copyfile` default buffer size on Windows was changed from 16 " -"KiB to 1 MiB." -msgstr "" - -#: ../whatsnew/3.8.rst:366 -msgid "" -"``PyGC_Head`` struct is changed completely. All code touched the struct " -"member should be rewritten. (See :issue:`33597`)" -msgstr "" - -#: ../whatsnew/3.8.rst:369 -msgid "" -"Asyncio tasks can now be named, either by passing the ``name`` keyword " -"argument to :func:`asyncio.create_task` or the :meth:`~asyncio.loop." -"create_task` event loop method, or by calling the :meth:`~asyncio.Task." -"set_name` method on the task object. The task name is visible in the " -"``repr()`` output of :class:`asyncio.Task` and can also be retrieved using " -"the :meth:`~asyncio.Task.get_name` method." -msgstr "" - -#: ../whatsnew/3.8.rst:376 -msgid "" -"The :meth:`mmap.flush() ` method now returns ``None`` on " -"success and raises an exception on error under all platforms. Previously, " -"its behavior was platform-depended: a nonzero value was returned on success; " -"zero was returned on error under Windows. A zero value was returned on " -"success; an exception was raised on error under Unix. (Contributed by Berker " -"Peksag in :issue:`2122`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:383 -msgid "" -"The function :func:`math.factorial` no longer accepts arguments that are not " -"int-like. (Contributed by Pablo Galindo in :issue:`33083`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:386 -msgid "" -":class:`uuid.UUID` now uses ``__slots__``, therefore instances can no longer " -"be weak-referenced and attributes can no longer be added." -msgstr "" - -#: ../whatsnew/3.8.rst:389 -msgid "" -":mod:`xml.dom.minidom` and mod:`xml.sax` modules no longer process external " -"entities by default. (Contributed by Christian Heimes in :issue:`17239`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:394 -msgid "CPython bytecode changes" -msgstr "" - -#: ../whatsnew/3.8.rst:396 -msgid "" -"The interpreter loop has been simplified by moving the logic of unrolling " -"the stack of blocks into the compiler. The compiler emits now explicit " -"instructions for adjusting the stack of values and calling the cleaning- up " -"code for :keyword:`break`, :keyword:`continue` and :keyword:`return`." -msgstr "" - -#: ../whatsnew/3.8.rst:401 -msgid "" -"Removed opcodes :opcode:`BREAK_LOOP`, :opcode:`CONTINUE_LOOP`, :opcode:" -"`SETUP_LOOP` and :opcode:`SETUP_EXCEPT`. Added new opcodes :opcode:" -"`ROT_FOUR`, :opcode:`BEGIN_FINALLY`, :opcode:`CALL_FINALLY` and :opcode:" -"`POP_FINALLY`. Changed the behavior of :opcode:`END_FINALLY` and :opcode:" -"`WITH_CLEANUP_START`." -msgstr "" - -#: ../whatsnew/3.8.rst:407 -msgid "" -"(Contributed by Mark Shannon, Antoine Pitrou and Serhiy Storchaka in :issue:" -"`17611`.)" -msgstr "" - -#: ../whatsnew/3.8.rst:410 -msgid "" -"Added new opcode :opcode:`END_ASYNC_FOR` for handling exceptions raised when " -"awaiting a next item in an :keyword:`async for` loop. (Contributed by Serhiy " -"Storchaka in :issue:`33041`.)" -msgstr "" diff --git a/whatsnew/changelog.po b/whatsnew/changelog.po index 4f9586da9..b5c2b265f 100644 --- a/whatsnew/changelog.po +++ b/whatsnew/changelog.po @@ -1,24 +1,27 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # Claudio Rogerio Carvalho Filho , 2019 # Jayme Tosi Neto , 2019 # 01419cbcade949a3bc5433893a160e74, 2019 # felipe caridade , 2019 -# +# Vinícius Muniz de Melo , 2019 +# Márcio Almeida , 2020 +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-03 04:04+0000\n" +"POT-Creation-Date: 2020-05-06 13:49+0000\n" "PO-Revision-Date: 2019-09-01 03:33+0000\n" -"Last-Translator: felipe caridade , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Last-Translator: Márcio Almeida , 2020\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -37,38 +40,1199 @@ msgstr "python next" msgid "*Release date: XXXX-XX-XX*" msgstr "*Data de lançamento: XXXX-XX-XX*" -#: ../../../build/NEWS:10 ../../../build/NEWS:182 ../../../build/NEWS:631 -#: ../../../build/NEWS:658 ../../../build/NEWS:728 ../../../build/NEWS:1323 -#: ../../../build/NEWS:1774 ../../../build/NEWS:2153 ../../../build/NEWS:2255 -#: ../../../build/NEWS:2780 ../../../build/NEWS:2892 ../../../build/NEWS:3105 -#: ../../../build/NEWS:3298 ../../../build/NEWS:3508 ../../../build/NEWS:3754 -#: ../../../build/NEWS:4076 ../../../build/NEWS:4381 ../../../build/NEWS:5000 -#: ../../../build/NEWS:5291 ../../../build/NEWS:7410 ../../../build/NEWS:7747 -#: ../../../build/NEWS:8065 ../../../build/NEWS:8531 ../../../build/NEWS:9030 -#: ../../../build/NEWS:9383 ../../../build/NEWS:9407 ../../../build/NEWS:9731 -#: ../../../build/NEWS:9761 ../../../build/NEWS:9824 ../../../build/NEWS:9938 -#: ../../../build/NEWS:10062 ../../../build/NEWS:10333 -#: ../../../build/NEWS:10842 ../../../build/NEWS:11079 -#: ../../../build/NEWS:11299 ../../../build/NEWS:11602 -#: ../../../build/NEWS:12938 ../../../build/NEWS:13001 -#: ../../../build/NEWS:13399 ../../../build/NEWS:14092 -#: ../../../build/NEWS:14113 ../../../build/NEWS:14871 -#: ../../../build/NEWS:14889 ../../../build/NEWS:15412 -#: ../../../build/NEWS:15447 ../../../build/NEWS:15475 -#: ../../../build/NEWS:15567 ../../../build/NEWS:15654 -#: ../../../build/NEWS:15759 ../../../build/NEWS:15802 -#: ../../../build/NEWS:16078 ../../../build/NEWS:16313 -#: ../../../build/NEWS:16499 ../../../build/NEWS:16639 +#: ../../../build/NEWS:10 ../../../build/NEWS:265 ../../../build/NEWS:529 +#: ../../../build/NEWS:784 ../../../build/NEWS:1274 ../../../build/NEWS:1325 +#: ../../../build/NEWS:1929 ../../../build/NEWS:2385 ../../../build/NEWS:2860 +#: ../../../build/NEWS:3908 ../../../build/NEWS:4126 ../../../build/NEWS:5881 +#: ../../../build/NEWS:8361 ../../../build/NEWS:9146 ../../../build/NEWS:9627 +#: ../../../build/NEWS:9729 ../../../build/NEWS:11797 ../../../build/NEWS:11816 +#: ../../../build/NEWS:11981 ../../../build/NEWS:12032 +#: ../../../build/NEWS:12628 ../../../build/NEWS:12739 +#: ../../../build/NEWS:12829 ../../../build/NEWS:13538 +#: ../../../build/NEWS:13600 ../../../build/NEWS:14463 +#: ../../../build/NEWS:14476 ../../../build/NEWS:14867 +#: ../../../build/NEWS:14900 ../../../build/NEWS:15013 +#: ../../../build/NEWS:15068 ../../../build/NEWS:15137 +msgid "Security" +msgstr "Segurança" + +#: ../../../build/NEWS:12 +msgid "" +"`bpo-38576 `__: Disallow control " +"characters in hostnames in http.client, addressing CVE-2019-18348. Such " +"potentially malicious header injection URLs now cause a InvalidURL to be " +"raised." +msgstr "" + +#: ../../../build/NEWS:16 +msgid "" +"`bpo-39503 `__: CVE-2020-8492: The :" +"class:`~urllib.request.AbstractBasicAuthHandler` class of the :mod:`urllib." +"request` module uses an inefficient regular expression which can be " +"exploited by an attacker to cause a denial of service. Fix the regex to " +"prevent the catastrophic backtracking. Vulnerability reported by Ben Caller " +"and Matt Schwager." +msgstr "" + +#: ../../../build/NEWS:24 ../../../build/NEWS:271 ../../../build/NEWS:547 +#: ../../../build/NEWS:806 ../../../build/NEWS:1255 ../../../build/NEWS:1282 +#: ../../../build/NEWS:1352 ../../../build/NEWS:1947 ../../../build/NEWS:2398 +#: ../../../build/NEWS:2777 ../../../build/NEWS:2879 ../../../build/NEWS:3404 +#: ../../../build/NEWS:3516 ../../../build/NEWS:3729 ../../../build/NEWS:3922 +#: ../../../build/NEWS:4132 ../../../build/NEWS:4378 ../../../build/NEWS:4700 +#: ../../../build/NEWS:5005 ../../../build/NEWS:5624 ../../../build/NEWS:5915 +#: ../../../build/NEWS:8034 ../../../build/NEWS:8371 ../../../build/NEWS:8689 +#: ../../../build/NEWS:9155 ../../../build/NEWS:9654 ../../../build/NEWS:10007 +#: ../../../build/NEWS:10031 ../../../build/NEWS:10355 +#: ../../../build/NEWS:10385 ../../../build/NEWS:10448 +#: ../../../build/NEWS:10562 ../../../build/NEWS:10686 +#: ../../../build/NEWS:10957 ../../../build/NEWS:11466 +#: ../../../build/NEWS:11703 ../../../build/NEWS:11923 +#: ../../../build/NEWS:12226 ../../../build/NEWS:13562 +#: ../../../build/NEWS:13625 ../../../build/NEWS:14023 +#: ../../../build/NEWS:14716 ../../../build/NEWS:14737 +#: ../../../build/NEWS:15495 ../../../build/NEWS:15513 +#: ../../../build/NEWS:16036 ../../../build/NEWS:16071 +#: ../../../build/NEWS:16099 ../../../build/NEWS:16191 +#: ../../../build/NEWS:16278 ../../../build/NEWS:16383 +#: ../../../build/NEWS:16426 ../../../build/NEWS:16702 +#: ../../../build/NEWS:16937 ../../../build/NEWS:17123 +#: ../../../build/NEWS:17263 msgid "Core and Builtins" msgstr "Núcleo e Builtins" -#: ../../../build/NEWS:12 +#: ../../../build/NEWS:26 +msgid "" +"`bpo-40417 `__: Fix imp module " +"deprecation warning when PyImport_ReloadModule is called. Patch by Robert " +"Rouhani." +msgstr "" + +#: ../../../build/NEWS:29 +msgid "" +"`bpo-20526 `__: Fix :c:func:" +"`PyThreadState_Clear()`. ``PyThreadState.frame`` is a borrowed reference, " +"not a strong reference: ``PyThreadState_Clear()`` must not call " +"``Py_CLEAR(tstate->frame)``." +msgstr "" + +#: ../../../build/NEWS:33 +msgid "" +"`bpo-38894 `__: Fix a bug that was " +"causing incomplete results when calling ``pathlib.Path.glob`` in the " +"presence of symlinks that point to files where the user does not have read " +"access. Patch by Pablo Galindo and Matt Wozniski." +msgstr "" + +#: ../../../build/NEWS:38 +msgid "" +"`bpo-39871 `__: Fix a possible :exc:" +"`SystemError` in ``math.{atan2,copysign,remainder}()`` when the first " +"argument cannot be converted to a :class:`float`. Patch by Zachary Spytz." +msgstr "" + +#: ../../../build/NEWS:42 +msgid "" +"`bpo-39520 `__: Fix unparsing of ext " +"slices with no items (``foo[:,]``). Patch by Batuhan Taskaya." +msgstr "" + +#: ../../../build/NEWS:45 +msgid "" +"`bpo-22490 `__: Don't leak environment " +"variable ``__PYVENV_LAUNCHER__`` into the interpreter session on macOS." +msgstr "" + +#: ../../../build/NEWS:49 ../../../build/NEWS:246 ../../../build/NEWS:316 +#: ../../../build/NEWS:566 ../../../build/NEWS:764 ../../../build/NEWS:841 +#: ../../../build/NEWS:1288 ../../../build/NEWS:1440 ../../../build/NEWS:1990 +#: ../../../build/NEWS:2357 ../../../build/NEWS:2458 ../../../build/NEWS:2766 +#: ../../../build/NEWS:2788 ../../../build/NEWS:2965 ../../../build/NEWS:3386 +#: ../../../build/NEWS:3419 ../../../build/NEWS:3547 ../../../build/NEWS:3755 +#: ../../../build/NEWS:3948 ../../../build/NEWS:4153 ../../../build/NEWS:4454 +#: ../../../build/NEWS:4777 ../../../build/NEWS:5106 ../../../build/NEWS:5712 +#: ../../../build/NEWS:6375 ../../../build/NEWS:8071 ../../../build/NEWS:8417 +#: ../../../build/NEWS:8787 ../../../build/NEWS:9125 ../../../build/NEWS:9229 +#: ../../../build/NEWS:9701 ../../../build/NEWS:9736 ../../../build/NEWS:10099 +#: ../../../build/NEWS:10402 ../../../build/NEWS:10483 +#: ../../../build/NEWS:10586 ../../../build/NEWS:10756 +#: ../../../build/NEWS:11094 ../../../build/NEWS:11511 +#: ../../../build/NEWS:11720 ../../../build/NEWS:11804 +#: ../../../build/NEWS:11821 ../../../build/NEWS:11963 +#: ../../../build/NEWS:11989 ../../../build/NEWS:12039 +#: ../../../build/NEWS:12511 ../../../build/NEWS:12635 +#: ../../../build/NEWS:12745 ../../../build/NEWS:12835 +#: ../../../build/NEWS:13568 ../../../build/NEWS:13588 +#: ../../../build/NEWS:13676 ../../../build/NEWS:14154 +#: ../../../build/NEWS:14470 ../../../build/NEWS:14481 +#: ../../../build/NEWS:14875 ../../../build/NEWS:14907 +#: ../../../build/NEWS:15020 ../../../build/NEWS:15074 +#: ../../../build/NEWS:15143 ../../../build/NEWS:15581 +#: ../../../build/NEWS:16019 ../../../build/NEWS:16046 +#: ../../../build/NEWS:16084 ../../../build/NEWS:16104 +#: ../../../build/NEWS:16211 ../../../build/NEWS:16305 +#: ../../../build/NEWS:16401 ../../../build/NEWS:16476 +#: ../../../build/NEWS:16734 ../../../build/NEWS:16957 +#: ../../../build/NEWS:17130 ../../../build/NEWS:17489 +msgid "Library" +msgstr "Biblioteca" + +#: ../../../build/NEWS:51 +msgid "" +"`bpo-40459 `__: :func:`platform." +"win32_ver` now produces correct *ptype* strings instead of empty strings." +msgstr "" + +#: ../../../build/NEWS:54 +msgid "" +"`bpo-40138 `__: Fix the Windows " +"implementation of :func:`os.waitpid` for exit code larger than ``INT_MAX >> " +"8``. The exit status is now interpreted as an unsigned number." +msgstr "" + +#: ../../../build/NEWS:58 +msgid "" +"`bpo-39942 `__: Set \"__main__\" as the " +"default module name when \"__name__\" is missing in :class:`typing.TypeVar`. " +"Patch by Weipeng Hong." +msgstr "" + +#: ../../../build/NEWS:61 +msgid "" +"`bpo-40287 `__: Fixed " +"``SpooledTemporaryFile.seek()`` to return the position." +msgstr "" + +#: ../../../build/NEWS:63 +msgid "" +"`bpo-40196 `__: Fix a bug in the :mod:" +"`symtable` module that was causing incorrectly report global variables as " +"local. Patch by Pablo Galindo." +msgstr "" + +#: ../../../build/NEWS:66 +msgid "" +"`bpo-40126 `__: Fixed reverting multiple " +"patches in unittest.mock. Patcher's ``__exit__()`` is now never called if " +"its ``__enter__()`` is failed. Returning true from ``__exit__()`` silences " +"now the exception." +msgstr "" + +#: ../../../build/NEWS:70 +msgid "" +"`bpo-40089 `__: Fix threading." +"_after_fork(): if fork was not called by a thread spawned by threading." +"Thread, threading._after_fork() now creates a _MainThread instance for " +"_main_thread, instead of a _DummyThread instance." +msgstr "" + +#: ../../../build/NEWS:74 +msgid "" +"`bpo-39503 `__: :class:`~urllib.request." +"AbstractBasicAuthHandler` of :mod:`urllib.request` now parses all WWW-" +"Authenticate HTTP headers and accepts multiple challenges per header: use " +"the realm of the first Basic challenge." +msgstr "" + +#: ../../../build/NEWS:79 +msgid "" +"`bpo-40014 `__: Fix ``os." +"getgrouplist()``: if ``getgrouplist()`` function fails because the group " +"list is too small, retry with a larger group list. On failure, the glibc " +"implementation of ``getgrouplist()`` sets ``ngroups`` to the total number of " +"groups. For other implementations, double the group list size." +msgstr "" + +#: ../../../build/NEWS:85 +msgid "" +"`bpo-40016 `__: In re docstring, clarify " +"the relationship between inline and argument compile flags." +msgstr "" + +#: ../../../build/NEWS:88 +msgid "" +"`bpo-39652 `__: The column name found in " +"``sqlite3.Cursor.description`` is now truncated on the first '[' only if the " +"PARSE_COLNAMES option is set." +msgstr "" + +#: ../../../build/NEWS:91 +msgid "" +"`bpo-38662 `__: The ``ensurepip`` module " +"now invokes ``pip`` via the ``runpy`` module. Hence it is no longer tightly " +"coupled with the internal API of the bundled ``pip`` version, allowing " +"easier updates to a newer ``pip`` version both internally and for " +"distributors." +msgstr "" + +#: ../../../build/NEWS:96 +msgid "" +"`bpo-39916 `__: More reliable use of " +"``os.scandir()`` in ``Path.glob()``. It no longer emits a ResourceWarning " +"when interrupted." +msgstr "" + +#: ../../../build/NEWS:99 +msgid "" +"`bpo-39850 `__: :mod:`multiprocessing` " +"now supports abstract socket addresses (if abstract sockets are supported in " +"the running platform). Patch by Pablo Galindo." +msgstr "" + +#: ../../../build/NEWS:103 +msgid "" +"`bpo-39828 `__: Fix :mod:`json.tool` to " +"catch :exc:`BrokenPipeError`. Patch by Dong-hee Na." +msgstr "" + +#: ../../../build/NEWS:106 +msgid "" +"`bpo-36541 `__: lib2to3 now recognizes " +"named assignment expressions (the walrus operator, ``:=``)" +msgstr "" + +#: ../../../build/NEWS:109 +msgid "" +"`bpo-31758 `__: Prevent crashes when " +"using an uninitialized ``_elementtree.XMLParser`` object. Patch by Oren " +"Milman." +msgstr "" + +#: ../../../build/NEWS:113 ../../../build/NEWS:253 ../../../build/NEWS:424 +#: ../../../build/NEWS:654 ../../../build/NEWS:1014 ../../../build/NEWS:1262 +#: ../../../build/NEWS:1668 ../../../build/NEWS:2142 ../../../build/NEWS:2600 +#: ../../../build/NEWS:2828 ../../../build/NEWS:3180 ../../../build/NEWS:3460 +#: ../../../build/NEWS:3670 ../../../build/NEWS:3822 ../../../build/NEWS:4040 +#: ../../../build/NEWS:4287 ../../../build/NEWS:4614 ../../../build/NEWS:4956 +#: ../../../build/NEWS:5451 ../../../build/NEWS:5803 ../../../build/NEWS:7422 +#: ../../../build/NEWS:8194 ../../../build/NEWS:8551 ../../../build/NEWS:8958 +#: ../../../build/NEWS:9366 ../../../build/NEWS:9953 ../../../build/NEWS:10274 +#: ../../../build/NEWS:10430 ../../../build/NEWS:10532 +#: ../../../build/NEWS:11902 ../../../build/NEWS:12162 +#: ../../../build/NEWS:13348 ../../../build/NEWS:13912 +#: ../../../build/NEWS:14595 ../../../build/NEWS:15346 +#: ../../../build/NEWS:15910 ../../../build/NEWS:16163 +#: ../../../build/NEWS:16362 ../../../build/NEWS:16673 +#: ../../../build/NEWS:18873 +msgid "Documentation" +msgstr "Documentação" + +#: ../../../build/NEWS:115 +msgid "" +"`bpo-27635 `__: The pickle documentation " +"incorrectly claimed that ``__new__`` isn't called by default when unpickling." +msgstr "" + +#: ../../../build/NEWS:118 +msgid "" +"`bpo-39879 `__: Updated :ref:`datamodel` " +"docs to include :func:`dict` insertion order preservation. Patch by Furkan " +"Onder and Samy Lahfa." +msgstr "" + +#: ../../../build/NEWS:121 +msgid "" +"`bpo-39677 `__: Changed operand name of " +"**MAKE_FUNCTION** from *argc* to *flags* for module :mod:`dis`" +msgstr "" + +#: ../../../build/NEWS:124 +msgid "" +"`bpo-39435 `__: Fix an incorrect " +"signature for :func:`pickle.loads` in the docs" +msgstr "" + +#: ../../../build/NEWS:126 +msgid "" +"`bpo-38387 `__: Document :c:macro:" +"`PyDoc_STRVAR` macro in the C-API reference." +msgstr "" + +#: ../../../build/NEWS:129 ../../../build/NEWS:452 ../../../build/NEWS:664 +#: ../../../build/NEWS:1057 ../../../build/NEWS:1715 ../../../build/NEWS:2157 +#: ../../../build/NEWS:2628 ../../../build/NEWS:2834 ../../../build/NEWS:3198 +#: ../../../build/NEWS:3685 ../../../build/NEWS:3841 ../../../build/NEWS:4057 +#: ../../../build/NEWS:4311 ../../../build/NEWS:4627 ../../../build/NEWS:4961 +#: ../../../build/NEWS:5457 ../../../build/NEWS:7471 ../../../build/NEWS:8232 +#: ../../../build/NEWS:8345 ../../../build/NEWS:8571 ../../../build/NEWS:8971 +#: ../../../build/NEWS:9378 ../../../build/NEWS:9976 ../../../build/NEWS:10287 +#: ../../../build/NEWS:10537 ../../../build/NEWS:10672 +#: ../../../build/NEWS:10946 ../../../build/NEWS:11376 +#: ../../../build/NEWS:11648 ../../../build/NEWS:11911 +#: ../../../build/NEWS:12174 ../../../build/NEWS:13366 +#: ../../../build/NEWS:13930 ../../../build/NEWS:14600 +#: ../../../build/NEWS:14721 ../../../build/NEWS:15369 +#: ../../../build/NEWS:15934 ../../../build/NEWS:16178 +#: ../../../build/NEWS:16355 ../../../build/NEWS:16664 +#: ../../../build/NEWS:16893 ../../../build/NEWS:17103 +#: ../../../build/NEWS:18913 +msgid "Tests" +msgstr "Testes" + +#: ../../../build/NEWS:131 +msgid "" +"`bpo-40436 `__: test_gdb and test." +"pythoninfo now check gdb command exit code." +msgstr "" + +#: ../../../build/NEWS:133 +msgid "" +"`bpo-39932 `__: Fix multiprocessing " +"test_heap(): a new Heap object is now created for each test run." +msgstr "" + +#: ../../../build/NEWS:136 +msgid "" +"`bpo-40162 `__: Update Travis CI " +"configuration to OpenSSL 1.1.1f." +msgstr "" + +#: ../../../build/NEWS:138 +msgid "" +"`bpo-40146 `__: Update OpenSSL to 1.1.1f " +"in Azure Pipelines." +msgstr "" + +#: ../../../build/NEWS:140 +msgid "" +"`bpo-40019 `__: test_gdb now skips tests " +"if it detects that gdb failed to read debug information because the Python " +"binary is optimized." +msgstr "" + +#: ../../../build/NEWS:143 +msgid "" +"`bpo-27807 `__: ``test_site." +"test_startup_imports()`` is now skipped if a path of :data:`sys.path` " +"contains a ``.pth`` file." +msgstr "" + +#: ../../../build/NEWS:146 +msgid "" +"`bpo-39793 `__: Use the same domain when " +"testing ``make_msgid``. Patch by Batuhan Taskaya." +msgstr "" + +#: ../../../build/NEWS:149 +msgid "" +"`bpo-1812 `__: Fix newline handling in " +"doctest.testfile when loading from a package whose loader has a get_data " +"method. Patch by Peter Donis." +msgstr "" + +#: ../../../build/NEWS:152 +msgid "" +"`bpo-37957 `__: test.regrtest now can " +"receive a list of test patterns to ignore (using the -i/--ignore argument) " +"or a file with a list of patterns to ignore (using the --ignore-file " +"argument). Patch by Pablo Galindo." +msgstr "" + +#: ../../../build/NEWS:156 +msgid "" +"`bpo-38502 `__: test.regrtest now uses " +"process groups in the multiprocessing mode (-jN command line option) if " +"process groups are available: if :func:`os.setsid` and :func:`os.killpg` " +"functions are available." +msgstr "" + +#: ../../../build/NEWS:160 +msgid "" +"`bpo-37421 `__: multiprocessing tests " +"now stop the ForkServer instance if it's running: close the \"alive\" file " +"descriptor to ask the server to stop and then remove its UNIX address." +msgstr "" + +#: ../../../build/NEWS:164 +msgid "" +"`bpo-37421 `__: multiprocessing tests " +"now explicitly call ``_run_finalizers()`` to immediately remove temporary " +"directories created by tests." +msgstr "" + +#: ../../../build/NEWS:168 ../../../build/NEWS:459 ../../../build/NEWS:690 +#: ../../../build/NEWS:1115 ../../../build/NEWS:1771 ../../../build/NEWS:2228 +#: ../../../build/NEWS:2363 ../../../build/NEWS:2650 ../../../build/NEWS:3245 +#: ../../../build/NEWS:3472 ../../../build/NEWS:3694 ../../../build/NEWS:3847 +#: ../../../build/NEWS:4067 ../../../build/NEWS:4316 ../../../build/NEWS:4648 +#: ../../../build/NEWS:5484 ../../../build/NEWS:5813 ../../../build/NEWS:7534 +#: ../../../build/NEWS:8240 ../../../build/NEWS:8350 ../../../build/NEWS:8586 +#: ../../../build/NEWS:8988 ../../../build/NEWS:9131 ../../../build/NEWS:9394 +#: ../../../build/NEWS:9933 ../../../build/NEWS:10018 ../../../build/NEWS:10309 +#: ../../../build/NEWS:10374 ../../../build/NEWS:10545 +#: ../../../build/NEWS:10663 ../../../build/NEWS:10935 +#: ../../../build/NEWS:11390 ../../../build/NEWS:11675 +#: ../../../build/NEWS:11872 ../../../build/NEWS:12191 +#: ../../../build/NEWS:13409 ../../../build/NEWS:13973 +#: ../../../build/NEWS:14646 ../../../build/NEWS:15392 +#: ../../../build/NEWS:15947 ../../../build/NEWS:16007 +#: ../../../build/NEWS:16024 ../../../build/NEWS:16266 +#: ../../../build/NEWS:16371 ../../../build/NEWS:16884 +#: ../../../build/NEWS:17098 ../../../build/NEWS:17234 +#: ../../../build/NEWS:18764 +msgid "Build" +msgstr "" + +#: ../../../build/NEWS:170 +msgid "" +"`bpo-38360 `__: Support single-argument " +"form of macOS -isysroot flag." +msgstr "" + +#: ../../../build/NEWS:172 +msgid "" +"`bpo-40204 `__: Pin Sphinx version to " +"1.8.2 in ``Doc/Makefile``." +msgstr "" + +#: ../../../build/NEWS:174 +msgid "" +"`bpo-40158 `__: Fix CPython MSBuild " +"Properties in NuGet Package (build/native/python.props)" +msgstr "" + +#: ../../../build/NEWS:178 ../../../build/NEWS:465 ../../../build/NEWS:703 +#: ../../../build/NEWS:773 ../../../build/NEWS:1127 ../../../build/NEWS:1303 +#: ../../../build/NEWS:1781 ../../../build/NEWS:2242 ../../../build/NEWS:2674 +#: ../../../build/NEWS:3263 ../../../build/NEWS:3479 ../../../build/NEWS:3864 +#: ../../../build/NEWS:4072 ../../../build/NEWS:4321 ../../../build/NEWS:4663 +#: ../../../build/NEWS:4970 ../../../build/NEWS:5517 ../../../build/NEWS:7646 +#: ../../../build/NEWS:8260 ../../../build/NEWS:8592 ../../../build/NEWS:9013 +#: ../../../build/NEWS:9400 ../../../build/NEWS:9990 ../../../build/NEWS:10239 +#: ../../../build/NEWS:10369 ../../../build/NEWS:10658 +#: ../../../build/NEWS:10902 ../../../build/NEWS:11432 +#: ../../../build/NEWS:11663 ../../../build/NEWS:12184 +#: ../../../build/NEWS:12200 ../../../build/NEWS:13472 +#: ../../../build/NEWS:13986 ../../../build/NEWS:14631 +#: ../../../build/NEWS:15451 ../../../build/NEWS:15483 +#: ../../../build/NEWS:15501 ../../../build/NEWS:15958 +#: ../../../build/NEWS:17248 ../../../build/NEWS:19060 +msgid "Windows" +msgstr "Windows" + +#: ../../../build/NEWS:180 +msgid "" +"`bpo-40164 `__: Updates Windows to " +"OpenSSL 1.1.1f" +msgstr "" + +#: ../../../build/NEWS:182 +msgid "" +"`bpo-39930 `__: Ensures the required :" +"file:`vcruntime140.dll` is included in install packages." +msgstr "" + +#: ../../../build/NEWS:185 +msgid "" +"`bpo-39847 `__: Avoid hang when computer " +"is hibernated whilst waiting for a mutex (for lock-related objects from :mod:" +"`threading`) around 49-day uptime." +msgstr "" + +#: ../../../build/NEWS:189 +msgid "" +"`bpo-38492 `__: Remove ``pythonw.exe`` " +"dependency on the Microsoft C++ runtime." +msgstr "" + +#: ../../../build/NEWS:192 ../../../build/NEWS:481 ../../../build/NEWS:517 +#: ../../../build/NEWS:1162 ../../../build/NEWS:1311 ../../../build/NEWS:1822 +#: ../../../build/NEWS:2691 ../../../build/NEWS:2840 ../../../build/NEWS:3293 +#: ../../../build/NEWS:3707 ../../../build/NEWS:3869 ../../../build/NEWS:4081 +#: ../../../build/NEWS:4340 ../../../build/NEWS:4674 ../../../build/NEWS:5533 +#: ../../../build/NEWS:8265 ../../../build/NEWS:8617 ../../../build/NEWS:9023 +msgid "macOS" +msgstr "macOS" + +#: ../../../build/NEWS:194 +msgid "" +"`bpo-40164 `__: Update macOS installer " +"builds to use OpenSSL 1.1.1g." +msgstr "" + +#: ../../../build/NEWS:197 ../../../build/NEWS:486 ../../../build/NEWS:709 +#: ../../../build/NEWS:1170 ../../../build/NEWS:1838 ../../../build/NEWS:2284 +#: ../../../build/NEWS:2707 ../../../build/NEWS:3311 ../../../build/NEWS:3484 +#: ../../../build/NEWS:3714 ../../../build/NEWS:3874 ../../../build/NEWS:4090 +#: ../../../build/NEWS:4345 ../../../build/NEWS:5538 ../../../build/NEWS:5832 +#: ../../../build/NEWS:7713 ../../../build/NEWS:8270 ../../../build/NEWS:8625 +#: ../../../build/NEWS:9028 ../../../build/NEWS:9414 ../../../build/NEWS:9904 +#: ../../../build/NEWS:10231 ../../../build/NEWS:11347 +#: ../../../build/NEWS:11619 ../../../build/NEWS:11830 +#: ../../../build/NEWS:12100 ../../../build/NEWS:13238 +#: ../../../build/NEWS:14558 ../../../build/NEWS:14726 +#: ../../../build/NEWS:15293 ../../../build/NEWS:15813 +#: ../../../build/NEWS:16146 ../../../build/NEWS:16658 +#: ../../../build/NEWS:18682 +msgid "IDLE" +msgstr "IDLE" + +#: ../../../build/NEWS:199 +msgid "" +"`bpo-27115 `__: For 'Go to Line', use a " +"Query box subclass with IDLE standard behavior and improved error checking." +msgstr "" + +#: ../../../build/NEWS:202 +msgid "" +"`bpo-39885 `__: Since clicking to get an " +"IDLE context menu moves the cursor, any text selection should be and now is " +"cleared." +msgstr "" + +#: ../../../build/NEWS:205 +msgid "" +"`bpo-39852 `__: Edit \"Go to line\" now " +"clears any selection, preventing accidental deletion. It also updates Ln and " +"Col on the status bar." +msgstr "" + +#: ../../../build/NEWS:208 +msgid "" +"`bpo-38439 `__: Add a 256×256 pixel IDLE " +"icon to support more modern environments. Created by Andrew Clover. Delete " +"the unused macOS idle.icns icon file." +msgstr "" + +#: ../../../build/NEWS:212 +msgid "" +"`bpo-38689 `__: IDLE will no longer " +"freeze when inspect.signature fails when fetching a calltip." +msgstr "" + +#: ../../../build/NEWS:216 ../../../build/NEWS:737 ../../../build/NEWS:1242 +#: ../../../build/NEWS:1891 ../../../build/NEWS:2341 ../../../build/NEWS:2742 +#: ../../../build/NEWS:3358 ../../../build/NEWS:3887 ../../../build/NEWS:4104 +#: ../../../build/NEWS:4366 ../../../build/NEWS:4976 ../../../build/NEWS:5580 +#: ../../../build/NEWS:7926 ../../../build/NEWS:8315 ../../../build/NEWS:8657 +#: ../../../build/NEWS:9094 ../../../build/NEWS:9601 ../../../build/NEWS:9970 +#: ../../../build/NEWS:10364 ../../../build/NEWS:10437 +#: ../../../build/NEWS:11425 ../../../build/NEWS:11894 +#: ../../../build/NEWS:12214 ../../../build/NEWS:13490 +#: ../../../build/NEWS:14619 ../../../build/NEWS:15467 +#: ../../../build/NEWS:15996 ../../../build/NEWS:16683 +#: ../../../build/NEWS:16902 ../../../build/NEWS:17110 +#: ../../../build/NEWS:19021 +msgid "Tools/Demos" +msgstr "" + +#: ../../../build/NEWS:218 +msgid "" +"`bpo-40179 `__: Fixed translation of " +"``#elif`` in Argument Clinic." +msgstr "" + +#: ../../../build/NEWS:220 +msgid "" +"`bpo-36184 `__: Port python-gdb.py to " +"FreeBSD. python-gdb.py now checks for \"take_gil\" function name to check if " +"a frame tries to acquire the GIL, instead of checking for " +"\"pthread_cond_timedwait\" which is specific to Linux and can be a different " +"condition than the GIL." +msgstr "" + +#: ../../../build/NEWS:225 +msgid "" +"`bpo-39889 `__: Fixed ``unparse.py`` for " +"extended slices containing a single element (e.g. ``a[i:j,]``). Remove " +"redundant tuples when index with a tuple (e.g. ``a[i, j]``)." +msgstr "" + +#: ../../../build/NEWS:230 ../../../build/NEWS:746 ../../../build/NEWS:1898 +#: ../../../build/NEWS:2346 ../../../build/NEWS:2373 ../../../build/NEWS:2748 +#: ../../../build/NEWS:2848 ../../../build/NEWS:3367 ../../../build/NEWS:3392 +#: ../../../build/NEWS:4110 ../../../build/NEWS:4685 ../../../build/NEWS:4983 +#: ../../../build/NEWS:5595 ../../../build/NEWS:5860 ../../../build/NEWS:7957 +#: ../../../build/NEWS:8333 ../../../build/NEWS:8667 ../../../build/NEWS:9104 +#: ../../../build/NEWS:9927 ../../../build/NEWS:10257 ../../../build/NEWS:10425 +#: ../../../build/NEWS:10928 ../../../build/NEWS:11367 +#: ../../../build/NEWS:11865 ../../../build/NEWS:12206 +#: ../../../build/NEWS:13511 ../../../build/NEWS:13995 +#: ../../../build/NEWS:14586 ../../../build/NEWS:16926 +#: ../../../build/NEWS:17242 ../../../build/NEWS:18844 +msgid "C API" +msgstr "" + +#: ../../../build/NEWS:232 +msgid "" +"`bpo-39884 `__: :c:func:" +"`_PyMethodDef_RawFastCallDict` and :c:func:" +"`_PyMethodDef_RawFastCallKeywords` now include the method name in the " +"SystemError \"bad call flags\" error message to ease debug." +msgstr "" + +#: ../../../build/NEWS:236 +msgid "" +"`bpo-38643 `__: :c:func:" +"`PyNumber_ToBase` now raises a :exc:`SystemError` instead of crashing when " +"called with invalid base." +msgstr "" + +#: ../../../build/NEWS:241 +msgid "Python 3.7.7 final" +msgstr "" + +#: ../../../build/NEWS:243 +msgid "*Release date: 2020-03-10*" +msgstr "" + +#: ../../../build/NEWS:248 +msgid "" +"`bpo-13487 `__: Avoid a possible *" +"\"RuntimeError: dictionary changed size during iteration\"* from :func:" +"`inspect.getmodule` when it tried to loop through :attr:`sys.modules`." +msgstr "" + +#: ../../../build/NEWS:255 +msgid "" +"`bpo-17422 `__: The language reference " +"no longer restricts default class namespaces to dicts only." +msgstr "" + +#: ../../../build/NEWS:260 +msgid "Python 3.7.7 release candidate 1" +msgstr "" + +#: ../../../build/NEWS:262 +msgid "*Release date: 2020-03-04*" +msgstr "" + +#: ../../../build/NEWS:267 +msgid "" +"`bpo-39401 `__: Avoid unsafe load of " +"``api-ms-win-core-path-l1-1-0.dll`` at startup on Windows 7." +msgstr "" + +#: ../../../build/NEWS:273 +msgid "" +"`bpo-39776 `__: Fix race condition where " +"threads created by PyGILState_Ensure() could get a duplicate id." +msgstr "" + +#: ../../../build/NEWS:276 +msgid "" +"This affects consumers of tstate->id like the contextvar caching machinery, " +"which could return invalid cached objects under heavy thread load (observed " +"in embedded scenarios)." +msgstr "" + +#: ../../../build/NEWS:280 +msgid "" +"`bpo-39778 `__: Fixed a crash due to " +"incorrect handling of weak references in ``collections.OrderedDict`` " +"classes. Patch by Pablo Galindo." +msgstr "" + +#: ../../../build/NEWS:283 +msgid "" +"`bpo-39382 `__: Fix a use-after-free in " +"the single inheritance path of ``issubclass()``, when the ``__bases__`` of " +"an object has a single reference, and so does its first item. Patch by " +"Yonatan Goldschmidt." +msgstr "" + +#: ../../../build/NEWS:287 +msgid "" +"`bpo-39606 `__: Fix regression caused by " +"fix for `bpo-39386 `__, that prevented " +"calling ``aclose`` on an async generator that had already been closed or " +"exhausted." +msgstr "" + +#: ../../../build/NEWS:291 +msgid "" +"`bpo-39510 `__: Fix segfault in " +"``readinto()`` method on closed BufferedReader." +msgstr "" + +#: ../../../build/NEWS:293 +msgid "" +"`bpo-39453 `__: Fixed a possible crash " +"in :meth:`list.__contains__` when a list is changed during comparing items. " +"Patch by Dong-hee Na." +msgstr "" + +#: ../../../build/NEWS:296 +msgid "" +"`bpo-39427 `__: Document all " +"possibilities for the ``-X`` options in the command line help section. Patch " +"by Pablo Galindo." +msgstr "" + +#: ../../../build/NEWS:299 +msgid "" +"`bpo-39421 `__: Fix possible crashes " +"when operating with the functions in the :mod:`heapq` module and custom " +"comparison operators." +msgstr "" + +#: ../../../build/NEWS:302 +msgid "" +"`bpo-39386 `__: Prevent double awaiting " +"of async iterator." +msgstr "" + +#: ../../../build/NEWS:304 +msgid "" +"`bpo-38588 `__: Fix possible crashes in " +"dict and list when calling :c:func:`PyObject_RichCompareBool`." +msgstr "" + +#: ../../../build/NEWS:307 +msgid "" +"`bpo-39031 `__: When parsing an \"elif\" " +"node, lineno and col_offset of the node now point to the \"elif\" keyword " +"and not to its condition, making it consistent with the \"if\" node. Patch " +"by Lysandros Nikolaou." +msgstr "" +"`bpo-39031 `__: Ao analisar um nó " +"*elif*, lineno e col_offset do nó, agora apontam para a palavra-chave *elif* " +"e não para sua condição, tornando-o consistente com o nó *if*. Patch de " +"Lysandros Nikolaou." + +#: ../../../build/NEWS:311 +msgid "" +"`bpo-38610 `__: Fix possible crashes in " +"several list methods by holding strong references to list elements when " +"calling :c:func:`PyObject_RichCompareBool`." +msgstr "" + +#: ../../../build/NEWS:318 +msgid "" +"`bpo-39794 `__: Add --without-decimal-" +"contextvar build option. This enables a thread-local rather than a " +"coroutine local context." +msgstr "" + +#: ../../../build/NEWS:321 +msgid "" +"`bpo-39769 `__: The :func:`compileall." +"compile_dir` function's *ddir* parameter and the compileall command line " +"flag `-d` no longer write the wrong pathname to the generated pyc file for " +"submodules beneath the root of the directory tree being compiled. This " +"fixes a regression introduced with Python 3.5." +msgstr "" + +#: ../../../build/NEWS:327 +msgid "" +"`bpo-30566 `__: Fix :exc:`IndexError` " +"when trying to decode an invalid string with punycode codec." +msgstr "" + +#: ../../../build/NEWS:330 +msgid "" +"`bpo-39649 `__: Remove obsolete check " +"for `__args__` in bdb.Bdb.format_stack_entry." +msgstr "" + +#: ../../../build/NEWS:333 +msgid "" +"`bpo-27657 `__: The original fix for " +"`bpo-27657 `__, \"Fix urlparse() with " +"numeric paths\" (GH-16839) included in 3.7.6, inadvertently introduced a " +"behavior change that broke several third-party packages relying on the " +"original undefined parsing behavior. The change is reverted in 3.7.7, " +"restoring the behavior of 3.7.5 and earlier releases." +msgstr "" + +#: ../../../build/NEWS:339 +msgid "" +"`bpo-21016 `__: The :mod:`pydoc` and :" +"mod:`trace` modules now use the :mod:`sysconfig` module to get the path to " +"the Python standard library, to support uncommon installation path like ``/" +"usr/lib64/python3.9/`` on Fedora. Patch by Jan Matějek." +msgstr "" + +#: ../../../build/NEWS:344 +msgid "" +"`bpo-39548 `__: Fix handling of header " +"in :class:`urllib.request.AbstractDigestAuthHandler` when the optional " +"``qop`` parameter is not present." +msgstr "" + +#: ../../../build/NEWS:348 +msgid "" +"`bpo-39450 `__: Striped whitespace from " +"docstring before returning it from :func:`unittest.case.shortDescription`." +msgstr "" + +#: ../../../build/NEWS:351 +msgid "" +"`bpo-39493 `__: Mark ``typing.IO." +"closed`` as a property" +msgstr "" + +#: ../../../build/NEWS:353 +msgid "" +"`bpo-39485 `__: Fix a bug in :func:" +"`unittest.mock.create_autospec` that would complain about the wrong number " +"of arguments for custom descriptors defined in an extension module returning " +"functions." +msgstr "" + +#: ../../../build/NEWS:357 +msgid "" +"`bpo-39430 `__: Fixed race condition in " +"lazy imports in :mod:`tarfile`." +msgstr "" + +#: ../../../build/NEWS:359 +msgid "" +"`bpo-39389 `__: Write accurate " +"compression level metadata in :mod:`gzip` archives, rather than always " +"signaling maximum compression." +msgstr "" + +#: ../../../build/NEWS:362 +msgid "" +"`bpo-39274 `__: ``bool(fraction." +"Fraction)`` now returns a boolean even if (numerator != 0) does not return a " +"boolean (ex: numpy number)." +msgstr "" + +#: ../../../build/NEWS:365 +msgid "" +"`bpo-39242 `__: Updated the Gmane domain " +"from news.gmane.org to news.gmane.io which is used for examples of :class:" +"`~nntplib.NNTP` news reader server and nntplib tests." +msgstr "" + +#: ../../../build/NEWS:369 +msgid "" +"`bpo-39152 `__: Fix ttk.Scale." +"configure([name]) to return configuration tuple for name or all options. " +"Giovanni Lombardo contributed part of the patch." +msgstr "" + +#: ../../../build/NEWS:372 +msgid "" +"`bpo-39198 `__: If an exception were to " +"be thrown in `Logger.isEnabledFor` (say, by asyncio timeouts or stopit) , " +"the `logging` global lock may not be released appropriately, resulting in " +"deadlock. This change wraps that block of code with `try...finally` to " +"ensure the lock is released." +msgstr "" + +#: ../../../build/NEWS:377 +msgid "" +"`bpo-39191 `__: Perform a check for " +"running loop before starting a new task in ``loop.run_until_complete()`` to " +"fail fast; it prevents the side effect of new task spawning before exception " +"raising." +msgstr "" + +#: ../../../build/NEWS:381 +msgid "" +"`bpo-38871 `__: Correctly parenthesize " +"filter-based statements that contain lambda expressions in mod:`lib2to3`. " +"Patch by Dong-hee Na." +msgstr "" + +#: ../../../build/NEWS:384 +msgid "" +"`bpo-39142 `__: A change was made to " +"logging.config.dictConfig to avoid converting instances of named tuples to " +"ConvertingTuple. It's assumed that named tuples are too specialised to be " +"treated like ordinary tuples; if a user of named tuples requires " +"ConvertingTuple functionality, they will have to implement that themselves " +"in their named tuple class." +msgstr "" + +#: ../../../build/NEWS:390 +msgid "" +"`bpo-38971 `__: Open issue in the BPO " +"indicated a desire to make the implementation of codecs.open() at parity " +"with io.open(), which implements a try/except to assure file stream gets " +"closed before an exception is raised." +msgstr "" + +#: ../../../build/NEWS:395 +msgid "" +"`bpo-39057 `__: :func:`urllib.request." +"proxy_bypass_environment` now ignores leading dots and no longer ignores a " +"trailing newline." +msgstr "" + +#: ../../../build/NEWS:398 +msgid "" +"`bpo-39056 `__: Fixed handling invalid " +"warning category in the -W option. No longer import the re module if it is " +"not needed." +msgstr "" + +#: ../../../build/NEWS:401 +msgid "" +"`bpo-39055 `__: :func:`base64.b64decode` " +"with ``validate=True`` raises now a binascii.Error if the input ends with a " +"single ``\\n``." +msgstr "" + +#: ../../../build/NEWS:404 +msgid "" +"`bpo-38878 `__: Fixed __subclasshook__ " +"of :class:`os.PathLike` to return a correct result upon inheritence. Patch " +"by Bar Harel." +msgstr "" +"`bpo-38878 `__: Corrigida " +"__subclasshook__ de :class:`os.PathLike` para retornar um resultado correto " +"na herança. Patch por Bar Harel." + +#: ../../../build/NEWS:407 +msgid "" +"`bpo-35182 `__: Fixed :func:`Popen." +"communicate` subsequent call crash when the child process has already closed " +"any piped standard stream, but still continues to be running. Patch by " +"Andriy Maletsky." +msgstr "" + +#: ../../../build/NEWS:411 +msgid "" +"`bpo-38473 `__: Use signature from inner " +"mock for autospecced methods attached with :func:`unittest.mock." +"attach_mock`. Patch by Karthikeyan Singaravelan." +msgstr "" + +#: ../../../build/NEWS:414 +msgid "" +"`bpo-38293 `__: Add :func:`copy.copy` " +"and :func:`copy.deepcopy` support to :func:`property` objects." +msgstr "" + +#: ../../../build/NEWS:417 +msgid "" +"`bpo-37953 `__: In :mod:`typing`, " +"improved the ``__hash__`` and ``__eq__`` methods for :class:" +"`ForwardReferences`." +msgstr "" + +#: ../../../build/NEWS:420 +msgid "" +"`bpo-36406 `__: Handle namespace " +"packages in :mod:`doctest`. Patch by Karthikeyan Singaravelan." +msgstr "" + +#: ../../../build/NEWS:426 +msgid "" +"`bpo-13790 `__: Change 'string' to " +"'specification' in format doc." +msgstr "" + +#: ../../../build/NEWS:428 +msgid "" +"`bpo-39530 `__: Fix misleading " +"documentation about mixed-type numeric comparisons." +msgstr "" + +#: ../../../build/NEWS:431 +msgid "" +"`bpo-17422 `__: The language reference " +"now specifies restrictions on class namespaces. Adapted from a patch by " +"Ethan Furman." +msgstr "" + +#: ../../../build/NEWS:434 +msgid "" +"`bpo-39654 `__: In pyclbr doc, update " +"'class' to 'module' where appropriate and add readmodule comment. Patch by " +"Hakan Çelik." +msgstr "" + +#: ../../../build/NEWS:437 +msgid "" +"`bpo-39392 `__: Explain that when " +"filling with turtle, overlap regions may be left unfilled." +msgstr "" + +#: ../../../build/NEWS:440 +msgid "" +"`bpo-39381 `__: Mention in docs that :" +"func:`asyncio.get_event_loop` implicitly creates new event loop only if " +"called from the main thread." +msgstr "" + +#: ../../../build/NEWS:443 +msgid "" +"`bpo-38918 `__: Add an entry for " +"``__module__`` in the \"function\" & \"method\" sections of the `inspect " +"docs types and members table `_" +msgstr "" + +#: ../../../build/NEWS:447 +msgid "" +"`bpo-3530 `__: In the :mod:`ast` module " +"documentation, fix a misleading ``NodeTransformer`` example and add advice " +"on when to use the ``fix_missing_locations`` function." +msgstr "" + +#: ../../../build/NEWS:454 +msgid "" +"`bpo-38546 `__: Fix " +"test_ressources_gced_in_workers() of test_concurrent_futures: explicitly " +"stop the manager to prevent leaking a child process running in the " +"background after the test completes." +msgstr "" +"`bpo-38546 `__: Fix " +"test_ressources_gced_in_workers() do test_concurrent_futures: para " +"explicitamente o gerente para prevenir o vazamento de um processo filho em " +"execução em segundo plano após a conclusão do teste. " + +#: ../../../build/NEWS:461 +msgid "" +"`bpo-39144 `__: The ctags and etags " +"build targets both include Modules/_ctypes and Python standard library " +"source files." +msgstr "" + +#: ../../../build/NEWS:467 +msgid "" +"`bpo-38597 `__: :mod:`distutils` will no " +"longer statically link :file:`vcruntime140.dll` when a redistributable " +"version is unavailable. All future releases of CPython will include a copy " +"of this DLL to ensure distributed extensions can continue to load." +msgstr "" + +#: ../../../build/NEWS:472 +msgid "" +"`bpo-38380 `__: Update Windows builds to " +"use SQLite 3.31.1" +msgstr "" + +#: ../../../build/NEWS:474 +msgid "" +"`bpo-39439 `__: Reduce overhead when " +"using multiprocessing in a Windows virtual environment" +msgstr "" + +#: ../../../build/NEWS:477 +msgid "" +"`bpo-39185 `__: The build.bat script has " +"additional options for very-quiet output (-q) and very-verbose output (-vv)" +msgstr "" + +#: ../../../build/NEWS:483 +msgid "" +"`bpo-38380 `__: Update macOS builds to " +"use SQLite 3.31.1" +msgstr "" + +#: ../../../build/NEWS:488 +msgid "" +"`bpo-39781 `__: Selecting code context " +"lines no longer causes a jump." +msgstr "" + +#: ../../../build/NEWS:490 +msgid "" +"`bpo-39663 `__: Add tests for pyparse " +"find_good_parse_start()." +msgstr "" + +#: ../../../build/NEWS:492 +msgid "" +"`bpo-39600 `__: In the font " +"configuration window, remove duplicated font names." +msgstr "" + +#: ../../../build/NEWS:494 +msgid "" +"`bpo-30780 `__: Add remaining " +"configdialog tests for buttons and highlights and keys tabs." +msgstr "" + +#: ../../../build/NEWS:497 +msgid "" +"`bpo-39388 `__: IDLE Settings Cancel " +"button now cancels pending changes" +msgstr "" + +#: ../../../build/NEWS:499 +msgid "" +"`bpo-39050 `__: Make IDLE Settings " +"dialog Help button work again." +msgstr "" + +#: ../../../build/NEWS:501 +msgid "" +"`bpo-34118 `__: Tag memoryview, range, " +"and tuple as classes, the same as list, etcetera, in the library manual " +"built-in functions list." +msgstr "" + +#: ../../../build/NEWS:504 +msgid "" +"`bpo-38792 `__: Close an IDLE shell " +"calltip if a :exc:`KeyboardInterrupt` or shell restart occurs. Patch by " +"Zackery Spytz." +msgstr "" + +#: ../../../build/NEWS:507 +msgid "" +"`bpo-32989 `__: Add tests for editor " +"newline_and_indent_event method. Remove dead code from pyparse " +"find_good_parse_start method." +msgstr "" + +#: ../../../build/NEWS:512 +msgid "Python 3.7.6 final" +msgstr "" + +#: ../../../build/NEWS:514 +msgid "*Release date: 2019-12-18*" +msgstr "*Data de lançamento: 2017-03-21*" + +#: ../../../build/NEWS:519 +msgid "" +"`bpo-38295 `__: Prevent failure of " +"test_relative_path in test_py_compile on macOS Catalina." +msgstr "" + +#: ../../../build/NEWS:524 +msgid "Python 3.7.6 release candidate 1" +msgstr "" + +#: ../../../build/NEWS:526 +msgid "*Release date: 2019-12-11*" +msgstr "" + +#: ../../../build/NEWS:531 +msgid "" +"`bpo-38945 `__: Newline characters have " +"been escaped when performing uu encoding to prevent them from overflowing " +"into to content section of the encoded file. This prevents malicious or " +"accidental modification of data during the decoding process." +msgstr "" + +#: ../../../build/NEWS:536 +msgid "" +"`bpo-37228 `__: Due to significant " +"security concerns, the *reuse_address* parameter of :meth:`asyncio.loop." +"create_datagram_endpoint` is no longer supported. This is because of the " +"behavior of ``SO_REUSEADDR`` in UDP. For more details, see the documentation " +"for ``loop.create_datagram_endpoint()``. (Contributed by Kyle Stanley, " +"Antoine Pitrou, and Yury Selivanov in :issue:`37228`.)" +msgstr "" + +#: ../../../build/NEWS:543 +msgid "" +"`bpo-38804 `__: Fixes a ReDoS " +"vulnerability in :mod:`http.cookiejar`. Patch by Ben Caller." +msgstr "" + +#: ../../../build/NEWS:549 +msgid "" +"`bpo-38673 `__: In REPL mode, don't " +"switch to PS2 if the line starts with comment or whitespace. Based on work " +"by Batuhan Taşkaya." +msgstr "" + +#: ../../../build/NEWS:552 msgid "" "`bpo-38535 `__: Fixed line numbers and " "column offsets for AST nodes for calls without arguments in decorators." msgstr "" -#: ../../../build/NEWS:15 +#: ../../../build/NEWS:555 msgid "" "`bpo-38379 `__: When cyclic garbage " "collection (gc) runs finalizers that resurrect unreachable objects, the " @@ -78,173 +1242,224 @@ msgid "" "collected. Changed the stats to report that none were collected." msgstr "" -#: ../../../build/NEWS:23 ../../../build/NEWS:140 ../../../build/NEWS:217 -#: ../../../build/NEWS:664 ../../../build/NEWS:816 ../../../build/NEWS:1366 -#: ../../../build/NEWS:1733 ../../../build/NEWS:1834 ../../../build/NEWS:2142 -#: ../../../build/NEWS:2164 ../../../build/NEWS:2341 ../../../build/NEWS:2762 -#: ../../../build/NEWS:2795 ../../../build/NEWS:2923 ../../../build/NEWS:3131 -#: ../../../build/NEWS:3324 ../../../build/NEWS:3529 ../../../build/NEWS:3830 -#: ../../../build/NEWS:4153 ../../../build/NEWS:4482 ../../../build/NEWS:5088 -#: ../../../build/NEWS:5751 ../../../build/NEWS:7447 ../../../build/NEWS:7793 -#: ../../../build/NEWS:8163 ../../../build/NEWS:8501 ../../../build/NEWS:8605 -#: ../../../build/NEWS:9077 ../../../build/NEWS:9112 ../../../build/NEWS:9475 -#: ../../../build/NEWS:9778 ../../../build/NEWS:9859 ../../../build/NEWS:9962 -#: ../../../build/NEWS:10132 ../../../build/NEWS:10470 -#: ../../../build/NEWS:10887 ../../../build/NEWS:11096 -#: ../../../build/NEWS:11180 ../../../build/NEWS:11197 -#: ../../../build/NEWS:11339 ../../../build/NEWS:11365 -#: ../../../build/NEWS:11415 ../../../build/NEWS:11887 -#: ../../../build/NEWS:12011 ../../../build/NEWS:12121 -#: ../../../build/NEWS:12211 ../../../build/NEWS:12944 -#: ../../../build/NEWS:12964 ../../../build/NEWS:13052 -#: ../../../build/NEWS:13530 ../../../build/NEWS:13846 -#: ../../../build/NEWS:13857 ../../../build/NEWS:14251 -#: ../../../build/NEWS:14283 ../../../build/NEWS:14396 -#: ../../../build/NEWS:14450 ../../../build/NEWS:14519 -#: ../../../build/NEWS:14957 ../../../build/NEWS:15395 -#: ../../../build/NEWS:15422 ../../../build/NEWS:15460 -#: ../../../build/NEWS:15480 ../../../build/NEWS:15587 -#: ../../../build/NEWS:15681 ../../../build/NEWS:15777 -#: ../../../build/NEWS:15852 ../../../build/NEWS:16110 -#: ../../../build/NEWS:16333 ../../../build/NEWS:16506 -#: ../../../build/NEWS:16865 -msgid "Library" -msgstr "Biblioteca" +#: ../../../build/NEWS:562 +msgid "" +"`bpo-35409 `__: Ignore GeneratorExit " +"exceptions when throwing an exception into the aclose coroutine of an " +"asynchronous generator." +msgstr "" + +#: ../../../build/NEWS:568 +msgid "" +"`bpo-39006 `__: Fix asyncio when the ssl " +"module is missing: only check for ssl.SSLSocket instance if the ssl module " +"is available." +msgstr "" + +#: ../../../build/NEWS:571 +msgid "" +"`bpo-38979 `__: Return class from " +"``ContextVar.__class_getitem__`` to simplify subclassing." +msgstr "" + +#: ../../../build/NEWS:574 +msgid "" +"`bpo-38986 `__: Make repr of C " +"accelerated TaskWakeupMethWrapper the same as of pure Python version." +msgstr "" + +#: ../../../build/NEWS:577 +msgid "" +"`bpo-33684 `__: Fix ``json.tool`` failed " +"to read a JSON file with non-ASCII characters when locale encoding is not " +"UTF-8." +msgstr "" + +#: ../../../build/NEWS:580 +msgid "" +"`bpo-26730 `__: Fix " +"``SpooledTemporaryFile.rollover()`` might corrupt the file when it is in " +"text mode. Patch by Serhiy Storchaka." +msgstr "" + +#: ../../../build/NEWS:583 +msgid "" +"`bpo-37838 `__: :meth:`typing." +"get_type_hints` properly handles functions decorated with :meth:`functools." +"wraps`." +msgstr "" + +#: ../../../build/NEWS:586 +msgid "" +"`bpo-38821 `__: Fix unhandled exceptions " +"in :mod:`argparse` when internationalizing error messages for arguments with " +"``nargs`` set to special (non-integer) values. Patch by Federico Bond." +msgstr "" + +#: ../../../build/NEWS:590 +msgid "" +"`bpo-38820 `__: Make Python compatible " +"with OpenSSL 3.0.0. :func:`ssl.SSLSocket.getpeercert` no longer returns IPv6 " +"addresses with a trailing new line." +msgstr "" + +#: ../../../build/NEWS:594 +msgid "" +"`bpo-38785 `__: Prevent asyncio from " +"crashing if parent ``__init__`` is not called from a constructor of object " +"derived from ``asyncio.Future``." +msgstr "" + +#: ../../../build/NEWS:597 +msgid "" +"`bpo-27805 `__: Allow opening pipes and " +"other non-seekable files in append mode with :func:`open`." +msgstr "" -#: ../../../build/NEWS:25 +#: ../../../build/NEWS:600 +msgid "" +"`bpo-38686 `__: Added support for " +"multiple ``qop`` values in :class:`urllib.request.AbstractDigestAuthHandler`." +msgstr "" + +#: ../../../build/NEWS:603 msgid "" "`bpo-38334 `__: Fixed seeking backward " "on an encrypted :class:`zipfile.ZipExtFile`." msgstr "" -#: ../../../build/NEWS:28 +#: ../../../build/NEWS:606 msgid "" -"`bpo-31202 `__: The case the result of " -":func:`pathlib.WindowsPath.glob` matches now the case of the pattern for " +"`bpo-31202 `__: The case the result of :" +"func:`pathlib.WindowsPath.glob` matches now the case of the pattern for " "literal parts." msgstr "" -#: ../../../build/NEWS:31 +#: ../../../build/NEWS:609 msgid "" -"`bpo-38109 `__: Add missing " -":data:`stat.S_IFDOOR`, :data:`stat.S_IFPORT`, :data:`stat.S_IFWHT`, " -":func:`stat.S_ISDOOR`, :func:`stat.S_ISPORT`, and :func:`stat.S_ISWHT` " -"values to the Python implementation of :mod:`stat`." +"`bpo-38109 `__: Add missing :data:`stat." +"S_IFDOOR`, :data:`stat.S_IFPORT`, :data:`stat.S_IFWHT`, :func:`stat." +"S_ISDOOR`, :func:`stat.S_ISPORT`, and :func:`stat.S_ISWHT` values to the " +"Python implementation of :mod:`stat`." msgstr "" -#: ../../../build/NEWS:35 +#: ../../../build/NEWS:613 msgid "" "`bpo-38422 `__: Clarify docstrings of " "pathlib suffix(es)" msgstr "" -#: ../../../build/NEWS:37 +#: ../../../build/NEWS:615 msgid "" -"`bpo-38405 `__: Nested subclasses of " -":class:`typing.NamedTuple` are now pickleable." +"`bpo-38405 `__: Nested subclasses of :" +"class:`typing.NamedTuple` are now pickleable." msgstr "" -#: ../../../build/NEWS:40 +#: ../../../build/NEWS:618 msgid "" "`bpo-38332 `__: Prevent :exc:`KeyError` " "thrown by :func:`_encoded_words.decode` when given an encoded-word with " -"invalid content-type encoding from propagating all the way to " -":func:`email.message.get`." +"invalid content-type encoding from propagating all the way to :func:`email." +"message.get`." msgstr "" -#: ../../../build/NEWS:44 +#: ../../../build/NEWS:622 msgid "" -"`bpo-38341 `__: Add " -":exc:`smtplib.SMTPNotSupportedError` to the :mod:`smtplib` exported names." +"`bpo-38341 `__: Add :exc:`smtplib." +"SMTPNotSupportedError` to the :mod:`smtplib` exported names." msgstr "" -#: ../../../build/NEWS:47 +#: ../../../build/NEWS:625 msgid "" "`bpo-13153 `__: OS native encoding is " -"now used for converting between Python strings and Tcl objects. This allows" -" to display, copy and paste to clipboard emoji and other non-BMP characters." -" Converting strings from Tcl to Python and back now never fails (except " +"now used for converting between Python strings and Tcl objects. This allows " +"to display, copy and paste to clipboard emoji and other non-BMP characters. " +"Converting strings from Tcl to Python and back now never fails (except " "MemoryError)." msgstr "" -#: ../../../build/NEWS:52 +#: ../../../build/NEWS:630 msgid "" "`bpo-36993 `__: Improve error reporting " "for corrupt zip files with bad zip64 extra data. Patch by Daniel Hillier." msgstr "" -#: ../../../build/NEWS:55 +#: ../../../build/NEWS:633 msgid "" "`bpo-36952 `__: Starting with Python " -"3.3, importing ABCs from :mod:`collections` is deprecated, and import should" -" be done from :mod:`collections.abc`. Still being able to import from " -":mod:`collections` was marked for removal in 3.8, but has been delayed to " -"3.9; documentation and ``DeprecationWarning`` clarified." +"3.3, importing ABCs from :mod:`collections` is deprecated, and import should " +"be done from :mod:`collections.abc`. Still being able to import from :mod:" +"`collections` was marked for removal in 3.8, but has been delayed to 3.9; " +"documentation and ``DeprecationWarning`` clarified." msgstr "" -#: ../../../build/NEWS:61 +#: ../../../build/NEWS:639 +msgid "" +"`bpo-36820 `__: Break cycle generated " +"when saving an exception in socket.py, codeop.py and dyld.py as they keep " +"alive not only the exception but user objects through the ``__traceback__`` " +"attribute. Patch by Mario Corchero." +msgstr "" + +#: ../../../build/NEWS:643 +msgid "" +"`bpo-34776 `__: Fix dataclasses to " +"support forward references in type annotations" +msgstr "" + +#: ../../../build/NEWS:646 msgid "" "`bpo-33348 `__: lib2to3 now recognizes " "expressions after ``*`` and `**` like in ``f(*[] or [])``." msgstr "" -#: ../../../build/NEWS:64 +#: ../../../build/NEWS:649 msgid "" -"`bpo-27657 `__: Fix " -"urllib.parse.urlparse() with numeric paths. A string like \"path:80\" is no " -"longer parsed as a path but as a scheme (\"path\") and a path (\"80\")." +"`bpo-27657 `__: Fix urllib.parse." +"urlparse() with numeric paths. A string like \"path:80\" is no longer parsed " +"as a path but as a scheme (\"path\") and a path (\"80\")." msgstr "" -#: ../../../build/NEWS:69 ../../../build/NEWS:390 ../../../build/NEWS:638 -#: ../../../build/NEWS:1044 ../../../build/NEWS:1518 ../../../build/NEWS:1976 -#: ../../../build/NEWS:2204 ../../../build/NEWS:2556 ../../../build/NEWS:2836 -#: ../../../build/NEWS:3046 ../../../build/NEWS:3198 ../../../build/NEWS:3416 -#: ../../../build/NEWS:3663 ../../../build/NEWS:3990 ../../../build/NEWS:4332 -#: ../../../build/NEWS:4827 ../../../build/NEWS:5179 ../../../build/NEWS:6798 -#: ../../../build/NEWS:7570 ../../../build/NEWS:7927 ../../../build/NEWS:8334 -#: ../../../build/NEWS:8742 ../../../build/NEWS:9329 ../../../build/NEWS:9650 -#: ../../../build/NEWS:9806 ../../../build/NEWS:9908 ../../../build/NEWS:11278 -#: ../../../build/NEWS:11538 ../../../build/NEWS:12724 -#: ../../../build/NEWS:13288 ../../../build/NEWS:13971 -#: ../../../build/NEWS:14722 ../../../build/NEWS:15286 -#: ../../../build/NEWS:15539 ../../../build/NEWS:15738 -#: ../../../build/NEWS:16049 ../../../build/NEWS:18249 -msgid "Documentation" -msgstr "Documentação" +#: ../../../build/NEWS:656 +msgid "" +"`bpo-38351 `__: Modernize :mod:`email` " +"examples from %-formatting to f-strings." +msgstr "" -#: ../../../build/NEWS:71 +#: ../../../build/NEWS:658 msgid "" -"`bpo-38592 `__: Add Brazilian Portuguese" -" to the language switcher at Python Documentation website." +"`bpo-38592 `__: Add Brazilian Portuguese " +"to the language switcher at Python Documentation website." msgstr "" -#: ../../../build/NEWS:74 +#: ../../../build/NEWS:661 msgid "" "`bpo-38294 `__: Add list of no-longer-" "escaped chars to re.escape documentation" msgstr "" -#: ../../../build/NEWS:77 ../../../build/NEWS:433 ../../../build/NEWS:1091 -#: ../../../build/NEWS:1533 ../../../build/NEWS:2004 ../../../build/NEWS:2210 -#: ../../../build/NEWS:2574 ../../../build/NEWS:3061 ../../../build/NEWS:3217 -#: ../../../build/NEWS:3433 ../../../build/NEWS:3687 ../../../build/NEWS:4003 -#: ../../../build/NEWS:4337 ../../../build/NEWS:4833 ../../../build/NEWS:6847 -#: ../../../build/NEWS:7608 ../../../build/NEWS:7721 ../../../build/NEWS:7947 -#: ../../../build/NEWS:8347 ../../../build/NEWS:8754 ../../../build/NEWS:9352 -#: ../../../build/NEWS:9663 ../../../build/NEWS:9913 ../../../build/NEWS:10048 -#: ../../../build/NEWS:10322 ../../../build/NEWS:10752 -#: ../../../build/NEWS:11024 ../../../build/NEWS:11287 -#: ../../../build/NEWS:11550 ../../../build/NEWS:12742 -#: ../../../build/NEWS:13306 ../../../build/NEWS:13976 -#: ../../../build/NEWS:14097 ../../../build/NEWS:14745 -#: ../../../build/NEWS:15310 ../../../build/NEWS:15554 -#: ../../../build/NEWS:15731 ../../../build/NEWS:16040 -#: ../../../build/NEWS:16269 ../../../build/NEWS:16479 -#: ../../../build/NEWS:18289 -msgid "Tests" -msgstr "Testes" +#: ../../../build/NEWS:666 +msgid "" +"`bpo-38547 `__: Fix test_pty: if the " +"process is the session leader, closing the master file descriptor raises a " +"SIGHUP signal: simply ignore SIGHUP when running the tests." +msgstr "" -#: ../../../build/NEWS:79 +#: ../../../build/NEWS:670 +msgid "" +"`bpo-38965 `__: Fix test_faulthandler on " +"GCC 10. Use the \"volatile\" keyword in ``faulthandler._stack_overflow()`` " +"to prevent tail call optimization on any compiler, rather than relying on " +"compiler specific pragma." +msgstr "" + +#: ../../../build/NEWS:674 +msgid "" +"`bpo-38669 `__: Raise :exc:`TypeError` " +"when passing target as a string with :meth:`unittest.mock.patch.object`." +msgstr "" + +#: ../../../build/NEWS:677 msgid "" "`bpo-35998 `__: Fix a race condition in " "test_asyncio.test_start_tls_server_1(). Previously, there was a race " @@ -254,91 +1469,87 @@ msgid "" "longer sends data." msgstr "" -#: ../../../build/NEWS:85 +#: ../../../build/NEWS:683 msgid "" "`bpo-37531 `__: On timeout, regrtest no " -"longer attempts to call ``popen.communicate()`` again: it can hang until all" -" child processes using stdout and stderr pipes completes. Kill the worker " +"longer attempts to call ``popen.communicate()`` again: it can hang until all " +"child processes using stdout and stderr pipes completes. Kill the worker " "process and ignores its output. Change also the faulthandler timeout of the " "main process from 1 minute to 5 minutes, for Python slowest buildbots." msgstr "" -#: ../../../build/NEWS:92 ../../../build/NEWS:491 ../../../build/NEWS:1147 -#: ../../../build/NEWS:1604 ../../../build/NEWS:1739 ../../../build/NEWS:2026 -#: ../../../build/NEWS:2621 ../../../build/NEWS:2848 ../../../build/NEWS:3070 -#: ../../../build/NEWS:3223 ../../../build/NEWS:3443 ../../../build/NEWS:3692 -#: ../../../build/NEWS:4024 ../../../build/NEWS:4860 ../../../build/NEWS:5189 -#: ../../../build/NEWS:6910 ../../../build/NEWS:7616 ../../../build/NEWS:7726 -#: ../../../build/NEWS:7962 ../../../build/NEWS:8364 ../../../build/NEWS:8507 -#: ../../../build/NEWS:8770 ../../../build/NEWS:9309 ../../../build/NEWS:9394 -#: ../../../build/NEWS:9685 ../../../build/NEWS:9750 ../../../build/NEWS:9921 -#: ../../../build/NEWS:10039 ../../../build/NEWS:10311 -#: ../../../build/NEWS:10766 ../../../build/NEWS:11051 -#: ../../../build/NEWS:11248 ../../../build/NEWS:11567 -#: ../../../build/NEWS:12785 ../../../build/NEWS:13349 -#: ../../../build/NEWS:14022 ../../../build/NEWS:14768 -#: ../../../build/NEWS:15323 ../../../build/NEWS:15383 -#: ../../../build/NEWS:15400 ../../../build/NEWS:15642 -#: ../../../build/NEWS:15747 ../../../build/NEWS:16260 -#: ../../../build/NEWS:16474 ../../../build/NEWS:16610 -#: ../../../build/NEWS:18140 -msgid "Build" +#: ../../../build/NEWS:692 +msgid "" +"`bpo-37404 `__: :mod:`asyncio` now " +"raises :exc:`TyperError` when calling incompatible methods with an :class:" +"`ssl.SSLSocket` socket. Patch by Ido Michael." +msgstr "" + +#: ../../../build/NEWS:696 +msgid "" +"`bpo-38809 `__: On Windows, build " +"scripts will now recognize and use python.exe from an active virtual env." msgstr "" -#: ../../../build/NEWS:94 +#: ../../../build/NEWS:699 msgid "" "`bpo-37415 `__: Fix stdatomic.h header " "check for ICC compiler: the ICC implementation lacks atomic_uintptr_t type " "which is needed by Python." msgstr "" -#: ../../../build/NEWS:98 ../../../build/NEWS:149 ../../../build/NEWS:503 -#: ../../../build/NEWS:679 ../../../build/NEWS:1157 ../../../build/NEWS:1618 -#: ../../../build/NEWS:2050 ../../../build/NEWS:2639 ../../../build/NEWS:2855 -#: ../../../build/NEWS:3240 ../../../build/NEWS:3448 ../../../build/NEWS:3697 -#: ../../../build/NEWS:4039 ../../../build/NEWS:4346 ../../../build/NEWS:4893 -#: ../../../build/NEWS:7022 ../../../build/NEWS:7636 ../../../build/NEWS:7968 -#: ../../../build/NEWS:8389 ../../../build/NEWS:8776 ../../../build/NEWS:9366 -#: ../../../build/NEWS:9615 ../../../build/NEWS:9745 ../../../build/NEWS:10034 -#: ../../../build/NEWS:10278 ../../../build/NEWS:10808 -#: ../../../build/NEWS:11039 ../../../build/NEWS:11560 -#: ../../../build/NEWS:11576 ../../../build/NEWS:12848 -#: ../../../build/NEWS:13362 ../../../build/NEWS:14007 -#: ../../../build/NEWS:14827 ../../../build/NEWS:14859 -#: ../../../build/NEWS:14877 ../../../build/NEWS:15334 -#: ../../../build/NEWS:16624 ../../../build/NEWS:18436 -msgid "Windows" -msgstr "Windows" +#: ../../../build/NEWS:705 +msgid "" +"`bpo-38589 `__: Fixes HTML Help shortcut " +"when Windows is not installed to C drive" +msgstr "" -#: ../../../build/NEWS:100 +#: ../../../build/NEWS:711 msgid "" -"`bpo-38589 `__: Fixes HTML Help shortcut" -" when Windows is not installed to C drive" +"`bpo-38944 `__: Excape key now closes " +"IDLE completion windows. Patch by Johnny Najera." msgstr "" -#: ../../../build/NEWS:104 ../../../build/NEWS:546 ../../../build/NEWS:1214 -#: ../../../build/NEWS:1660 ../../../build/NEWS:2083 ../../../build/NEWS:2687 -#: ../../../build/NEWS:2860 ../../../build/NEWS:3090 ../../../build/NEWS:3250 -#: ../../../build/NEWS:3466 ../../../build/NEWS:3721 ../../../build/NEWS:4914 -#: ../../../build/NEWS:5208 ../../../build/NEWS:7089 ../../../build/NEWS:7646 -#: ../../../build/NEWS:8001 ../../../build/NEWS:8404 ../../../build/NEWS:8790 -#: ../../../build/NEWS:9280 ../../../build/NEWS:9607 ../../../build/NEWS:10723 -#: ../../../build/NEWS:10995 ../../../build/NEWS:11206 -#: ../../../build/NEWS:11476 ../../../build/NEWS:12614 -#: ../../../build/NEWS:13934 ../../../build/NEWS:14102 -#: ../../../build/NEWS:14669 ../../../build/NEWS:15189 -#: ../../../build/NEWS:15522 ../../../build/NEWS:16034 -#: ../../../build/NEWS:18058 -msgid "IDLE" -msgstr "IDLE" +#: ../../../build/NEWS:714 +msgid "" +"`bpo-38943 `__: Fix IDLE autocomplete " +"windows not always appearing on some systems. Patch by Johnny Najera." +msgstr "" -#: ../../../build/NEWS:106 +#: ../../../build/NEWS:717 +msgid "" +"`bpo-38862 `__: 'Strip Trailing " +"Whitespace' on the Format menu removes extra newlines at the end of non-" +"shell files." +msgstr "" + +#: ../../../build/NEWS:720 +msgid "" +"`bpo-26353 `__: Stop adding newline when " +"saving an IDLE shell window." +msgstr "" + +#: ../../../build/NEWS:722 +msgid "" +"`bpo-38636 `__: Fix IDLE Format menu tab " +"toggle and file indent width. These functions (default shortcuts Alt-T and " +"Alt-U) were mistakenly disabled in 3.7.5 and 3.8.0." +msgstr "" + +#: ../../../build/NEWS:726 +msgid "" +"`bpo-4630 `__: Add an option to toggle " +"IDLE's cursor blink for shell, editor, and output windows. See Settings, " +"General, Window Preferences, Cursor Blink. Patch by Zachary Spytz." +msgstr "" + +#: ../../../build/NEWS:730 msgid "" "`bpo-38598 `__: Do not try to compile " "IDLE shell or output windows" msgstr "" -#: ../../../build/NEWS:108 +#: ../../../build/NEWS:732 msgid "" "`bpo-36698 `__: IDLE no longer fails " "when write non-encodable characters to stderr. It now escapes them with a " @@ -346,151 +1557,105 @@ msgid "" "the standard streams." msgstr "" -#: ../../../build/NEWS:113 ../../../build/NEWS:618 ../../../build/NEWS:1267 -#: ../../../build/NEWS:1717 ../../../build/NEWS:2118 ../../../build/NEWS:2734 -#: ../../../build/NEWS:3263 ../../../build/NEWS:3480 ../../../build/NEWS:3742 -#: ../../../build/NEWS:4352 ../../../build/NEWS:4956 ../../../build/NEWS:7302 -#: ../../../build/NEWS:7691 ../../../build/NEWS:8033 ../../../build/NEWS:8470 -#: ../../../build/NEWS:8977 ../../../build/NEWS:9346 ../../../build/NEWS:9740 -#: ../../../build/NEWS:9813 ../../../build/NEWS:10801 -#: ../../../build/NEWS:11270 ../../../build/NEWS:11590 -#: ../../../build/NEWS:12866 ../../../build/NEWS:13995 -#: ../../../build/NEWS:14843 ../../../build/NEWS:15372 -#: ../../../build/NEWS:16059 ../../../build/NEWS:16278 -#: ../../../build/NEWS:16486 ../../../build/NEWS:18397 -msgid "Tools/Demos" -msgstr "" - -#: ../../../build/NEWS:115 +#: ../../../build/NEWS:739 msgid "" "`bpo-38118 `__: Update Valgrind " "suppression file to ignore a false alarm in :c:func:`PyUnicode_Decode` when " "using GCC builtin strcmp()." msgstr "" -#: ../../../build/NEWS:118 +#: ../../../build/NEWS:742 msgid "" "`bpo-38347 `__: pathfix.py: Assume all " "files that end on '.py' are Python scripts when working recursively." msgstr "" -#: ../../../build/NEWS:122 ../../../build/NEWS:1274 ../../../build/NEWS:1722 -#: ../../../build/NEWS:1749 ../../../build/NEWS:2124 ../../../build/NEWS:2224 -#: ../../../build/NEWS:2743 ../../../build/NEWS:2768 ../../../build/NEWS:3486 -#: ../../../build/NEWS:4061 ../../../build/NEWS:4359 ../../../build/NEWS:4971 -#: ../../../build/NEWS:5236 ../../../build/NEWS:7333 ../../../build/NEWS:7709 -#: ../../../build/NEWS:8043 ../../../build/NEWS:8480 ../../../build/NEWS:9303 -#: ../../../build/NEWS:9633 ../../../build/NEWS:9801 ../../../build/NEWS:10304 -#: ../../../build/NEWS:10743 ../../../build/NEWS:11241 -#: ../../../build/NEWS:11582 ../../../build/NEWS:12887 -#: ../../../build/NEWS:13371 ../../../build/NEWS:13962 -#: ../../../build/NEWS:16302 ../../../build/NEWS:16618 -#: ../../../build/NEWS:18220 -msgid "C API" -msgstr "" - -#: ../../../build/NEWS:124 +#: ../../../build/NEWS:748 msgid "" -"`bpo-38540 `__: Fixed possible leak in " -":c:func:`PyArg_Parse` and similar functions for format units ``\"es#\"`` and" -" ``\"et#\"`` when the macro :c:macro:`PY_SSIZE_T_CLEAN` is not defined." +"`bpo-38540 `__: Fixed possible leak in :" +"c:func:`PyArg_Parse` and similar functions for format units ``\"es#\"`` and " +"``\"et#\"`` when the macro :c:macro:`PY_SSIZE_T_CLEAN` is not defined." msgstr "" -#: ../../../build/NEWS:128 +#: ../../../build/NEWS:752 msgid "" -"`bpo-38395 `__: Fix a crash in " -":class:`weakref.proxy` objects due to incorrect lifetime management when " -"calling some associated methods that may delete the last reference to object" -" being referenced by the proxy. Patch by Pablo Galindo." +"`bpo-38395 `__: Fix a crash in :class:" +"`weakref.proxy` objects due to incorrect lifetime management when calling " +"some associated methods that may delete the last reference to object being " +"referenced by the proxy. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:135 +#: ../../../build/NEWS:759 msgid "Python 3.7.5 final" msgstr "" -#: ../../../build/NEWS:137 +#: ../../../build/NEWS:761 msgid "*Release date: 2019-10-14*" msgstr "" -#: ../../../build/NEWS:142 +#: ../../../build/NEWS:766 msgid "" "`bpo-38368 `__: Prevent ctypes crash " "when handling arrays in structs/unions." msgstr "" -#: ../../../build/NEWS:144 +#: ../../../build/NEWS:768 msgid "" "`bpo-38449 `__: Revert GH-15522, which " "introduces a regression in :meth:`mimetypes.guess_type` due to improper " "handling of filenames as urls." msgstr "" -#: ../../../build/NEWS:151 +#: ../../../build/NEWS:775 msgid "" -"`bpo-38344 `__: Fix syntax in " -"activate.bat." +"`bpo-38344 `__: Fix syntax in activate." +"bat." msgstr "" -#: ../../../build/NEWS:155 +#: ../../../build/NEWS:779 msgid "Python 3.7.5 release candidate 1" msgstr "" -#: ../../../build/NEWS:157 +#: ../../../build/NEWS:781 msgid "*Release date: 2019-10-01*" msgstr "" -#: ../../../build/NEWS:160 ../../../build/NEWS:650 ../../../build/NEWS:701 -#: ../../../build/NEWS:1305 ../../../build/NEWS:1761 ../../../build/NEWS:2236 -#: ../../../build/NEWS:3284 ../../../build/NEWS:3502 ../../../build/NEWS:5257 -#: ../../../build/NEWS:7737 ../../../build/NEWS:8522 ../../../build/NEWS:9003 -#: ../../../build/NEWS:9105 ../../../build/NEWS:11173 -#: ../../../build/NEWS:11192 ../../../build/NEWS:11357 -#: ../../../build/NEWS:11408 ../../../build/NEWS:12004 -#: ../../../build/NEWS:12115 ../../../build/NEWS:12205 -#: ../../../build/NEWS:12914 ../../../build/NEWS:12976 -#: ../../../build/NEWS:13839 ../../../build/NEWS:13852 -#: ../../../build/NEWS:14243 ../../../build/NEWS:14276 -#: ../../../build/NEWS:14389 ../../../build/NEWS:14444 -#: ../../../build/NEWS:14513 -msgid "Security" -msgstr "Segurança" - -#: ../../../build/NEWS:162 +#: ../../../build/NEWS:786 msgid "" "`bpo-38243 `__: Escape the server title " "of :class:`xmlrpc.server.DocXMLRPCServer` when rendering the document page " "as HTML. (Contributed by Dong-hee Na in :issue:`38243`.)" msgstr "" -#: ../../../build/NEWS:166 +#: ../../../build/NEWS:790 msgid "" "`bpo-38174 `__: Update vendorized expat " "library version to 2.2.8, which resolves CVE-2019-15903." msgstr "" -#: ../../../build/NEWS:169 +#: ../../../build/NEWS:793 msgid "" -"`bpo-37764 `__: Fixes " -"email._header_value_parser.get_unstructured going into an infinite loop for " -"a specific case in which the email header does not have trailing whitespace," -" and the case in which it contains an invalid encoded word. Patch by Ashwin " +"`bpo-37764 `__: Fixes email." +"_header_value_parser.get_unstructured going into an infinite loop for a " +"specific case in which the email header does not have trailing whitespace, " +"and the case in which it contains an invalid encoded word. Patch by Ashwin " "Ramaswami." msgstr "" -#: ../../../build/NEWS:174 +#: ../../../build/NEWS:798 msgid "" "`bpo-37461 `__: Fix an infinite loop " "when parsing specially crafted email headers. Patch by Abhilash Raj." msgstr "" -#: ../../../build/NEWS:177 +#: ../../../build/NEWS:801 msgid "" "`bpo-34155 `__: Fix parsing of invalid " -"email addresses with more than one ``@`` (e.g. a@b@c.com.) to not return the" -" part before 2nd ``@`` as valid email address. Patch by maxking & jpic." +"email addresses with more than one ``@`` (e.g. a@b@c.com.) to not return the " +"part before 2nd ``@`` as valid email address. Patch by maxking & jpic." msgstr "" -#: ../../../build/NEWS:184 +#: ../../../build/NEWS:808 msgid "" "`bpo-36871 `__: Improve error handling " "for the assert_has_calls method of mocks. Fixed a bug where any errors " @@ -498,298 +1663,298 @@ msgid "" "silently swallowed, leading to misleading error output." msgstr "" -#: ../../../build/NEWS:189 +#: ../../../build/NEWS:813 msgid "" "`bpo-38013 `__: Allow to call " -"``async_generator_athrow().throw(...)`` even for non-started async generator" -" helper. It fixes annoying warning at the end of :func:`asyncio.run` call." +"``async_generator_athrow().throw(...)`` even for non-started async generator " +"helper. It fixes annoying warning at the end of :func:`asyncio.run` call." msgstr "" -#: ../../../build/NEWS:193 +#: ../../../build/NEWS:817 msgid "" "`bpo-38124 `__: Fix an off-by-one error " "in PyState_AddModule that could cause out-of-bounds memory access." msgstr "" -#: ../../../build/NEWS:196 +#: ../../../build/NEWS:820 msgid "" "`bpo-36946 `__: Fix possible signed " "integer overflow when handling slices. Patch by hongweipeng." msgstr "" -#: ../../../build/NEWS:199 +#: ../../../build/NEWS:823 msgid "" -"`bpo-37409 `__: Ensure explicit relative" -" imports from interactive sessions and scripts (having no parent package) " +"`bpo-37409 `__: Ensure explicit relative " +"imports from interactive sessions and scripts (having no parent package) " "always raise ImportError, rather than treating the current module as the " "package. Patch by Ben Lewis." msgstr "" -#: ../../../build/NEWS:203 +#: ../../../build/NEWS:827 msgid "" "`bpo-36311 `__: Decoding bytes objects " "larger than 2GiB is faster and no longer fails when a multibyte characters " "spans a chunk boundary." msgstr "" -#: ../../../build/NEWS:206 +#: ../../../build/NEWS:830 msgid "" -"`bpo-37467 `__: Fix " -":func:`sys.excepthook` and :c:func:`PyErr_Display` if a filename is a bytes " -"string. For example, for a SyntaxError exception where the filename " -"attribute is a bytes string." +"`bpo-37467 `__: Fix :func:`sys." +"excepthook` and :c:func:`PyErr_Display` if a filename is a bytes string. For " +"example, for a SyntaxError exception where the filename attribute is a bytes " +"string." msgstr "" -#: ../../../build/NEWS:210 +#: ../../../build/NEWS:834 msgid "" -"`bpo-37417 `__: :meth:`bytearray.extend`" -" now correctly handles errors that arise during iteration. Patch by Brandt " +"`bpo-37417 `__: :meth:`bytearray.extend` " +"now correctly handles errors that arise during iteration. Patch by Brandt " "Bucher." msgstr "" -#: ../../../build/NEWS:213 +#: ../../../build/NEWS:837 msgid "" -"`bpo-20523 `__: ``pdb.Pdb`` supports " -"~/.pdbrc in Windows 7. Patch by Tim Hopper and Dan Lidral-Porter." +"`bpo-20523 `__: ``pdb.Pdb`` supports ~/." +"pdbrc in Windows 7. Patch by Tim Hopper and Dan Lidral-Porter." msgstr "" -#: ../../../build/NEWS:219 +#: ../../../build/NEWS:843 msgid "" -"`bpo-38019 `__: Correctly handle " -"pause/resume reading of closed asyncio unix pipe." +"`bpo-38019 `__: Correctly handle pause/" +"resume reading of closed asyncio unix pipe." msgstr "" -#: ../../../build/NEWS:222 +#: ../../../build/NEWS:846 msgid "" -"`bpo-38216 `__: Allow the rare code that" -" wants to send invalid http requests from the `http.client` library a way to" -" do so. The fixes for `bpo-30458 `__ " -"led to breakage for some projects that were relying on this ability to test " +"`bpo-38216 `__: Allow the rare code that " +"wants to send invalid http requests from the `http.client` library a way to " +"do so. The fixes for `bpo-30458 `__ led " +"to breakage for some projects that were relying on this ability to test " "their own behavior in the face of bad requests." msgstr "" -#: ../../../build/NEWS:227 +#: ../../../build/NEWS:851 msgid "" -"`bpo-38191 `__: Constructor of " -":class:`~typing.NamedTuple` type now accepts arbitrary keyword argument " -"names, including \"cls\", \"self\", \"typename\" and \"fields\"." +"`bpo-38191 `__: Constructor of :class:" +"`~typing.NamedTuple` type now accepts arbitrary keyword argument names, " +"including \"cls\", \"self\", \"typename\" and \"fields\"." msgstr "" -#: ../../../build/NEWS:231 +#: ../../../build/NEWS:855 msgid "" "`bpo-38185 `__: Fixed case-insensitive " "string comparison in :class:`sqlite3.Row` indexing." msgstr "" -#: ../../../build/NEWS:234 +#: ../../../build/NEWS:858 msgid "" "`bpo-38175 `__: Fix a memory leak in " "comparison of :class:`sqlite3.Row` objects." msgstr "" -#: ../../../build/NEWS:237 +#: ../../../build/NEWS:861 msgid "" -"`bpo-33936 `__: _hashlib no longer calls" -" obsolete OpenSSL initialization function with OpenSSL 1.1.0+." +"`bpo-33936 `__: _hashlib no longer calls " +"obsolete OpenSSL initialization function with OpenSSL 1.1.0+." msgstr "" -#: ../../../build/NEWS:240 +#: ../../../build/NEWS:864 msgid "" "`bpo-34706 `__: Preserve subclassing in " "inspect.Signature.from_callable." msgstr "" -#: ../../../build/NEWS:242 +#: ../../../build/NEWS:866 msgid "" -"`bpo-38059 `__: inspect.py now uses " -"sys.exit() instead of exit()" +"`bpo-38059 `__: inspect.py now uses sys." +"exit() instead of exit()" msgstr "" -#: ../../../build/NEWS:244 +#: ../../../build/NEWS:868 msgid "" -"`bpo-38006 `__: " -"weakref.WeakValueDictionary defines a local remove() function used as " -"callback for weak references. This function was created with a closure. " -"Modify the implementation to avoid the closure." +"`bpo-38006 `__: weakref." +"WeakValueDictionary defines a local remove() function used as callback for " +"weak references. This function was created with a closure. Modify the " +"implementation to avoid the closure." msgstr "" -#: ../../../build/NEWS:248 +#: ../../../build/NEWS:872 msgid "" -"`bpo-34410 `__: Fixed a crash in the " -":func:`tee` iterator when re-enter it. RuntimeError is now raised in this " +"`bpo-34410 `__: Fixed a crash in the :" +"func:`tee` iterator when re-enter it. RuntimeError is now raised in this " "case." msgstr "" -#: ../../../build/NEWS:251 +#: ../../../build/NEWS:875 msgid "" "`bpo-37965 `__: Fix C compiler warning " "caused by distutils.ccompiler.CCompiler.has_function." msgstr "" -#: ../../../build/NEWS:254 +#: ../../../build/NEWS:878 msgid "" "`bpo-36205 `__: Fix the rusage " "implementation of time.process_time() to correctly report the sum of the " "system and user CPU time." msgstr "" -#: ../../../build/NEWS:257 +#: ../../../build/NEWS:881 msgid "" -"`bpo-22347 `__: Update " -"mimetypes.guess_type to allow proper parsing of URLs with only a host name. " -"Patch by Dong-hee Na." +"`bpo-22347 `__: Update mimetypes." +"guess_type to allow proper parsing of URLs with only a host name. Patch by " +"Dong-hee Na." msgstr "" -#: ../../../build/NEWS:260 +#: ../../../build/NEWS:884 msgid "" "`bpo-37950 `__: Fix :func:`ast.dump` " "when call with incompletely initialized node." msgstr "" -#: ../../../build/NEWS:263 +#: ../../../build/NEWS:887 msgid "" -"`bpo-37915 `__: Fix a segmentation fault" -" that appeared when comparing instances of ``datetime.timezone`` and " +"`bpo-37915 `__: Fix a segmentation fault " +"that appeared when comparing instances of ``datetime.timezone`` and " "``datetime.tzinfo`` objects. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:267 +#: ../../../build/NEWS:891 msgid "" "`bpo-37885 `__: venv: Don't generate " "unset variable warning on deactivate." msgstr "" -#: ../../../build/NEWS:269 +#: ../../../build/NEWS:893 msgid "" -"`bpo-37868 `__: Fix " -"dataclasses.is_dataclass when given an instance that never raises " -"AttributeError in __getattr__. That is, an object that returns something " -"for __dataclass_fields__ even if it's not a dataclass." +"`bpo-37868 `__: Fix dataclasses." +"is_dataclass when given an instance that never raises AttributeError in " +"__getattr__. That is, an object that returns something for " +"__dataclass_fields__ even if it's not a dataclass." msgstr "" -#: ../../../build/NEWS:273 +#: ../../../build/NEWS:897 msgid "" "`bpo-37811 `__: Fix ``socket`` module's " -"``socket.connect(address)`` function being unable to establish connection in" -" case of interrupted system call. The problem was observed on all OSes which" -" ``poll(2)`` system call can take only non-negative integers and -1 as a " +"``socket.connect(address)`` function being unable to establish connection in " +"case of interrupted system call. The problem was observed on all OSes which " +"``poll(2)`` system call can take only non-negative integers and -1 as a " "timeout value." msgstr "" -#: ../../../build/NEWS:278 +#: ../../../build/NEWS:902 msgid "" -"`bpo-21131 `__: Fix " -"``faulthandler.register(chain=True)`` stack. faulthandler now allocates a " -"dedicated stack of ``SIGSTKSZ*2`` bytes, instead of just ``SIGSTKSZ`` bytes." -" Calling the previous signal handler in faulthandler signal handler uses " -"more than ``SIGSTKSZ`` bytes of stack memory on some platforms." +"`bpo-21131 `__: Fix ``faulthandler." +"register(chain=True)`` stack. faulthandler now allocates a dedicated stack " +"of ``SIGSTKSZ*2`` bytes, instead of just ``SIGSTKSZ`` bytes. Calling the " +"previous signal handler in faulthandler signal handler uses more than " +"``SIGSTKSZ`` bytes of stack memory on some platforms." msgstr "" -#: ../../../build/NEWS:284 +#: ../../../build/NEWS:908 msgid "" "`bpo-34621 `__: Fixed unpickle-ability " "in older Python versions (<3.7) of UUID objects with ``is_safe`` set to " "``SafeUUID.unknown``." msgstr "" -#: ../../../build/NEWS:287 +#: ../../../build/NEWS:911 msgid "" "`bpo-37738 `__: Fix the implementation " -"of curses ``addch(str, color_pair)``: pass the color pair to ``setcchar()``," -" instead of always passing 0 as the color pair." +"of curses ``addch(str, color_pair)``: pass the color pair to ``setcchar()``, " +"instead of always passing 0 as the color pair." msgstr "" -#: ../../../build/NEWS:291 +#: ../../../build/NEWS:915 msgid "" "`bpo-37723 `__: Fix performance " "regression on regular expression parsing with huge character sets. Patch by " "Yann Vaginay." msgstr "" -#: ../../../build/NEWS:294 +#: ../../../build/NEWS:918 msgid "" -"`bpo-32178 `__: Fix IndexError in " -":mod:`email` package when trying to parse invalid address fields starting " -"with ``:``." +"`bpo-32178 `__: Fix IndexError in :mod:" +"`email` package when trying to parse invalid address fields starting with ``:" +"``." msgstr "" -#: ../../../build/NEWS:297 +#: ../../../build/NEWS:921 msgid "" -"`bpo-37685 `__: Fixed comparisons of " -":class:`datetime.timedelta` and :class:`datetime.timezone`." +"`bpo-37685 `__: Fixed comparisons of :" +"class:`datetime.timedelta` and :class:`datetime.timezone`." msgstr "" -#: ../../../build/NEWS:300 +#: ../../../build/NEWS:924 msgid "" -"`bpo-37695 `__: Correct " -":func:`curses.unget_wch` error message. Patch by Anthony Sottile." +"`bpo-37695 `__: Correct :func:`curses." +"unget_wch` error message. Patch by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:303 +#: ../../../build/NEWS:927 msgid "" -"`bpo-29553 `__: Fixed " -":meth:`argparse.ArgumentParser.format_usage` for mutually exclusive groups. " -"Patch by Andrew Nester." +"`bpo-29553 `__: Fixed :meth:`argparse." +"ArgumentParser.format_usage` for mutually exclusive groups. Patch by Andrew " +"Nester." msgstr "" -#: ../../../build/NEWS:306 +#: ../../../build/NEWS:930 msgid "" "`bpo-37664 `__: Update wheels bundled " "with ensurepip (pip 19.2.3 and setuptools 41.2.0)" msgstr "" -#: ../../../build/NEWS:309 +#: ../../../build/NEWS:933 msgid "" "`bpo-37642 `__: Allowed the pure Python " -"implementation of :class:`datetime.timezone` to represent sub-minute offsets" -" close to minimum and maximum boundaries, specifically in the ranges (23:59," -" 24:00) and (-23:59, 24:00). Patch by Ngalim Siregar" +"implementation of :class:`datetime.timezone` to represent sub-minute offsets " +"close to minimum and maximum boundaries, specifically in the ranges (23:59, " +"24:00) and (-23:59, 24:00). Patch by Ngalim Siregar" msgstr "" -#: ../../../build/NEWS:314 +#: ../../../build/NEWS:938 msgid "" "`bpo-37491 `__: Fix ``IndexError`` when " "parsing email headers with unexpectedly ending bare-quoted string value. " "Patch by Abhilash Raj." msgstr "" -#: ../../../build/NEWS:317 +#: ../../../build/NEWS:941 msgid "" -"`bpo-18378 `__: Recognize \"UTF-8\" as a" -" valid value for LC_CTYPE in locale._parse_localename." +"`bpo-18378 `__: Recognize \"UTF-8\" as a " +"valid value for LC_CTYPE in locale._parse_localename." msgstr "" -#: ../../../build/NEWS:320 +#: ../../../build/NEWS:944 msgid "" -"`bpo-37579 `__: Return " -":exc:`NotImplemented` in Python implementation of ``__eq__`` for " -":class:`~datetime.timedelta` and :class:`~datetime.time` when the other " -"object being compared is not of the same type to match C implementation. " -"Patch by Karthikeyan Singaravelan." +"`bpo-37579 `__: Return :exc:" +"`NotImplemented` in Python implementation of ``__eq__`` for :class:" +"`~datetime.timedelta` and :class:`~datetime.time` when the other object " +"being compared is not of the same type to match C implementation. Patch by " +"Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:325 +#: ../../../build/NEWS:949 msgid "" "`bpo-21478 `__: Record calls to parent " -"when autospecced object is attached to a mock using " -":func:`unittest.mock.attach_mock`. Patch by Karthikeyan Singaravelan." +"when autospecced object is attached to a mock using :func:`unittest.mock." +"attach_mock`. Patch by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:329 +#: ../../../build/NEWS:953 msgid "" -"`bpo-37531 `__: \"python3 -m test -jN " -"--timeout=TIMEOUT\" now kills a worker process if it runs longer than " +"`bpo-37531 `__: \"python3 -m test -jN --" +"timeout=TIMEOUT\" now kills a worker process if it runs longer than " "*TIMEOUT* seconds." msgstr "" -#: ../../../build/NEWS:332 +#: ../../../build/NEWS:956 msgid "" "`bpo-37482 `__: Fix serialization of " "display name in originator or destination address fields with both encoded " "words and special chars." msgstr "" -#: ../../../build/NEWS:335 +#: ../../../build/NEWS:959 msgid "" "`bpo-37424 `__: Fixes a possible hang " "when using a timeout on `subprocess.run()` while capturing output. If the " @@ -799,49 +1964,48 @@ msgid "" "the pipes." msgstr "" -#: ../../../build/NEWS:341 +#: ../../../build/NEWS:965 msgid "" -"`bpo-37421 `__: Fix " -":func:`multiprocessing.util.get_temp_dir` finalizer: clear also the " -"'tempdir' configuration of the current process, so next call to " -"``get_temp_dir()`` will create a new temporary directory, rather than " -"reusing the removed temporary directory." +"`bpo-37421 `__: Fix :func:" +"`multiprocessing.util.get_temp_dir` finalizer: clear also the 'tempdir' " +"configuration of the current process, so next call to ``get_temp_dir()`` " +"will create a new temporary directory, rather than reusing the removed " +"temporary directory." msgstr "" -#: ../../../build/NEWS:346 +#: ../../../build/NEWS:970 msgid "" -"`bpo-37420 `__: " -":func:`os.sched_setaffinity` now correctly handles errors that arise during " -"iteration over its ``mask`` argument. Patch by Brandt Bucher." +"`bpo-37420 `__: :func:`os." +"sched_setaffinity` now correctly handles errors that arise during iteration " +"over its ``mask`` argument. Patch by Brandt Bucher." msgstr "" -#: ../../../build/NEWS:349 +#: ../../../build/NEWS:973 msgid "" "`bpo-29412 `__: Fix IndexError in " "parsing a header value ending unexpectedly. Patch by Abhilash Raj." msgstr "" -#: ../../../build/NEWS:352 +#: ../../../build/NEWS:976 msgid "" "`bpo-37372 `__: Fix error unpickling " "datetime.time objects from Python 2 with seconds>=24. Patch by Justin " "Blanchard." msgstr "" -#: ../../../build/NEWS:355 +#: ../../../build/NEWS:979 msgid "" "`bpo-27860 `__: Fix ``IPv4Interface`` " "and ``IPv6Interface`` didn't accept string mask when the argument is tuple." msgstr "" -#: ../../../build/NEWS:358 +#: ../../../build/NEWS:982 msgid "" "`bpo-33972 `__: Email with single part " -"but content-type set to ``multipart/*`` doesn't raise AttributeError " -"anymore." +"but content-type set to ``multipart/*`` doesn't raise AttributeError anymore." msgstr "" -#: ../../../build/NEWS:361 +#: ../../../build/NEWS:985 msgid "" "`bpo-21872 `__: Fix :mod:`lzma`: module " "decompresses data incompletely. When decompressing a FORMAT_ALONE format " @@ -849,26 +2013,26 @@ msgid "" "bytes can't be output. Patch by Ma Lin." msgstr "" -#: ../../../build/NEWS:366 +#: ../../../build/NEWS:990 msgid "" "`bpo-12144 `__: Ensure cookies with " "``expires`` attribute are handled in :meth:`CookieJar.make_cookies`." msgstr "" -#: ../../../build/NEWS:369 +#: ../../../build/NEWS:993 msgid "" -"`bpo-37163 `__: " -":func:`dataclasses.replace` now supports the field named \"obj\"." +"`bpo-37163 `__: :func:`dataclasses." +"replace` now supports the field named \"obj\"." msgstr "" -#: ../../../build/NEWS:371 +#: ../../../build/NEWS:995 msgid "" "`bpo-36871 `__: Ensure method signature " "is used instead of constructor signature of a class while asserting mock " "object against method calls. Patch by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:375 +#: ../../../build/NEWS:999 msgid "" "`bpo-36564 `__: Fix infinite loop in " "email header folding logic that would be triggered when an email policy's " @@ -876,115 +2040,115 @@ msgid "" "values in the message. Patch by Paul Ganssle" msgstr "" -#: ../../../build/NEWS:380 +#: ../../../build/NEWS:1004 msgid "" -"`bpo-35168 `__: " -":attr:`shlex.shlex.punctuation_chars` is now a read-only property." +"`bpo-35168 `__: :attr:`shlex.shlex." +"punctuation_chars` is now a read-only property." msgstr "" -#: ../../../build/NEWS:383 +#: ../../../build/NEWS:1007 msgid "" -"`bpo-20504 `__: Fixes a bug in " -":mod:`cgi` module when a multipart/form-data request has no `Content-Length`" -" header." +"`bpo-20504 `__: Fixes a bug in :mod:" +"`cgi` module when a multipart/form-data request has no `Content-Length` " +"header." msgstr "" -#: ../../../build/NEWS:386 +#: ../../../build/NEWS:1010 msgid "" "`bpo-4963 `__: Fixed non-deterministic " "behavior related to mimetypes extension mapping and module reinitialization." msgstr "" -#: ../../../build/NEWS:392 +#: ../../../build/NEWS:1016 msgid "" -"`bpo-26868 `__: Fix example usage of " -":c:func:`PyModule_AddObject` to properly handle errors." +"`bpo-26868 `__: Fix example usage of :c:" +"func:`PyModule_AddObject` to properly handle errors." msgstr "" -#: ../../../build/NEWS:395 +#: ../../../build/NEWS:1019 msgid "" -"`bpo-37979 `__: Added a link to " -"dateutil.parser.isoparse in the datetime.fromisoformat documentation. Patch " -"by Paul Ganssle" +"`bpo-37979 `__: Added a link to dateutil." +"parser.isoparse in the datetime.fromisoformat documentation. Patch by Paul " +"Ganssle" msgstr "" -#: ../../../build/NEWS:398 +#: ../../../build/NEWS:1022 msgid "" -"`bpo-37937 `__: Mention " -"``frame.f_trace`` in :func:`sys.settrace` docs." +"`bpo-37937 `__: Mention ``frame." +"f_trace`` in :func:`sys.settrace` docs." msgstr "" -#: ../../../build/NEWS:400 +#: ../../../build/NEWS:1024 msgid "" -"`bpo-37726 `__: Stop recommending getopt" -" in the tutorial for command line argument parsing and promote argparse." +"`bpo-37726 `__: Stop recommending getopt " +"in the tutorial for command line argument parsing and promote argparse." msgstr "" -#: ../../../build/NEWS:403 +#: ../../../build/NEWS:1027 msgid "" "`bpo-32910 `__: Remove implementation-" "specific behaviour of how venv's Deactivate works." msgstr "" -#: ../../../build/NEWS:406 +#: ../../../build/NEWS:1030 msgid "" -"`bpo-37256 `__: Fix wording of arguments" -" for :class:`Request` in :mod:`urllib.request`" +"`bpo-37256 `__: Fix wording of arguments " +"for :class:`Request` in :mod:`urllib.request`" msgstr "" -#: ../../../build/NEWS:409 +#: ../../../build/NEWS:1033 msgid "" "`bpo-37284 `__: Add a brief note to " "indicate that any new ``sys.implementation`` required attributes must go " "through the PEP process." msgstr "" -#: ../../../build/NEWS:413 +#: ../../../build/NEWS:1037 msgid "" -"`bpo-30088 `__: Documented that " -":class:`mailbox.Maildir` constructor doesn't attempt to verify the maildir " -"folder layout correctness. Patch by Sviatoslav Sydorenko." +"`bpo-30088 `__: Documented that :class:" +"`mailbox.Maildir` constructor doesn't attempt to verify the maildir folder " +"layout correctness. Patch by Sviatoslav Sydorenko." msgstr "" -#: ../../../build/NEWS:417 +#: ../../../build/NEWS:1041 msgid "" -"`bpo-37487 `__: Fix PyList_GetItem index" -" description to include 0." +"`bpo-37487 `__: Fix PyList_GetItem index " +"description to include 0." msgstr "" -#: ../../../build/NEWS:419 +#: ../../../build/NEWS:1043 msgid "" "`bpo-37478 `__: Added possible " "exceptions to the description of os.chdir()." msgstr "" -#: ../../../build/NEWS:421 +#: ../../../build/NEWS:1045 msgid "" -"`bpo-37004 `__: In the documentation for" -" difflib, a note was added explicitly warning that the results of " +"`bpo-37004 `__: In the documentation for " +"difflib, a note was added explicitly warning that the results of " "SequenceMatcher's ratio method may depend on the order of the input strings." msgstr "" -#: ../../../build/NEWS:425 +#: ../../../build/NEWS:1049 msgid "" "`bpo-35803 `__: Document and test that " -"``tempfile`` functions may accept a :term:`path-like object` for the ``dir``" -" argument. Patch by Anthony Sottile." +"``tempfile`` functions may accept a :term:`path-like object` for the ``dir`` " +"argument. Patch by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:429 +#: ../../../build/NEWS:1053 msgid "" "`bpo-34293 `__: Fix the Doc/Makefile " "regarding PAPER environment variable and PDF builds" msgstr "" -#: ../../../build/NEWS:435 +#: ../../../build/NEWS:1059 msgid "" "`bpo-38239 `__: Fix test_gdb for Link " "Time Optimization (LTO) builds." msgstr "" -#: ../../../build/NEWS:437 +#: ../../../build/NEWS:1061 msgid "" "`bpo-38275 `__: test_ssl now handles " "disabled TLS/SSL versions better. OpenSSL's crypto policy and run-time " @@ -993,40 +2157,40 @@ msgid "" "default with strict settings." msgstr "" -#: ../../../build/NEWS:442 +#: ../../../build/NEWS:1066 msgid "" "`bpo-38271 `__: The private keys for " -"test_ssl were encrypted with 3DES in traditional PKCS#5 format. 3DES and the" -" digest algorithm of PKCS#5 are blocked by some strict crypto policies. Use " +"test_ssl were encrypted with 3DES in traditional PKCS#5 format. 3DES and the " +"digest algorithm of PKCS#5 are blocked by some strict crypto policies. Use " "PKCS#8 format with AES256 encryption instead." msgstr "" -#: ../../../build/NEWS:447 +#: ../../../build/NEWS:1071 msgid "" "`bpo-37123 `__: Multiprocessing test " -"test_mymanager() now also expects -SIGTERM, not only exitcode 0. " -"BaseManager._finalize_manager() sends SIGTERM to the manager process if it " -"takes longer than 1 second to stop, which happens on slow buildbots." +"test_mymanager() now also expects -SIGTERM, not only exitcode 0. BaseManager." +"_finalize_manager() sends SIGTERM to the manager process if it takes longer " +"than 1 second to stop, which happens on slow buildbots." msgstr "" -#: ../../../build/NEWS:452 +#: ../../../build/NEWS:1076 msgid "" "`bpo-38212 `__: Multiprocessing tests: " "increase test_queue_feeder_donot_stop_onexc() timeout from 1 to 60 seconds." msgstr "" -#: ../../../build/NEWS:455 +#: ../../../build/NEWS:1079 msgid "" "`bpo-38117 `__: Test with OpenSSL 1.1.1d" msgstr "" -#: ../../../build/NEWS:457 +#: ../../../build/NEWS:1081 msgid "" -"`bpo-37805 `__: Add tests for " -"json.dump(..., skipkeys=True). Patch by Dong-hee Na." +"`bpo-37805 `__: Add tests for json." +"dump(..., skipkeys=True). Patch by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:460 +#: ../../../build/NEWS:1084 msgid "" "`bpo-37531 `__: Enhance regrtest " "multiprocess timeout: write a message when killing a worker process, catch " @@ -1034,200 +2198,192 @@ msgid "" "to popen.communicate()." msgstr "" -#: ../../../build/NEWS:464 +#: ../../../build/NEWS:1088 msgid "" "`bpo-37335 `__: Improve locale coercion " "tests by using codec lookup instead of more fragile replace()." msgstr "" -#: ../../../build/NEWS:467 +#: ../../../build/NEWS:1091 msgid "" -"`bpo-37411 `__: Fix " -"test_wsgiref.testEnviron() to no longer depend on the environment variables " -"(don't fail if \"X\" variable is set)." +"`bpo-37411 `__: Fix test_wsgiref." +"testEnviron() to no longer depend on the environment variables (don't fail " +"if \"X\" variable is set)." msgstr "" -#: ../../../build/NEWS:470 +#: ../../../build/NEWS:1094 msgid "" -"`bpo-37400 `__: Fix " -"test_os.test_chown(): use os.getgroups() rather than grp.getgrall() to get " -"groups. Rename also the test to test_chown_gid()." +"`bpo-37400 `__: Fix test_os." +"test_chown(): use os.getgroups() rather than grp.getgrall() to get groups. " +"Rename also the test to test_chown_gid()." msgstr "" -#: ../../../build/NEWS:473 +#: ../../../build/NEWS:1097 msgid "" "`bpo-37359 `__: Add --cleanup option to " "python3 -m test to remove ``test_python_*`` directories of previous failed " "jobs. Add \"make cleantest\" to run ``python3 -m test --cleanup``." msgstr "" -#: ../../../build/NEWS:477 +#: ../../../build/NEWS:1101 msgid "" -"`bpo-37362 `__: test_gdb no longer fails" -" if it gets an \"unexpected\" message on stderr: it now ignores stderr. The " -"purpose of test_gdb is to test that python-gdb.py commands work as expected," -" not to test gdb." +"`bpo-37362 `__: test_gdb no longer fails " +"if it gets an \"unexpected\" message on stderr: it now ignores stderr. The " +"purpose of test_gdb is to test that python-gdb.py commands work as expected, " +"not to test gdb." msgstr "" -#: ../../../build/NEWS:481 +#: ../../../build/NEWS:1105 msgid "" "`bpo-36919 `__: Make " -"``test_source_encoding.test_issue2301`` implementation independent. The test" -" will work now for both CPython and IronPython." +"``test_source_encoding.test_issue2301`` implementation independent. The test " +"will work now for both CPython and IronPython." msgstr "" -#: ../../../build/NEWS:484 +#: ../../../build/NEWS:1108 msgid "" "`bpo-34720 `__: Assert m_state != NULL " -"to mimic GC traversal functions that do not correctly handle module creation" -" when the module state has not been created." +"to mimic GC traversal functions that do not correctly handle module creation " +"when the module state has not been created." msgstr "" -#: ../../../build/NEWS:488 +#: ../../../build/NEWS:1112 msgid "" -"`bpo-34347 `__: Fix " -"``test_utf8_mode.test_cmd_line`` for AIX. Patch by M. Felt" +"`bpo-34347 `__: Fix ``test_utf8_mode." +"test_cmd_line`` for AIX. Patch by M. Felt" msgstr "" -#: ../../../build/NEWS:493 +#: ../../../build/NEWS:1117 msgid "" "`bpo-38301 `__: In Solaris family, we " "must be sure to use ``-D_REENTRANT``. Patch by Jesús Cea Avión." msgstr "" -#: ../../../build/NEWS:496 +#: ../../../build/NEWS:1120 msgid "" -"`bpo-36002 `__: Locate ``llvm-profdata``" -" and ``llvm-ar`` binaries using ``AC_PATH_TOOL`` rather than " +"`bpo-36002 `__: Locate ``llvm-profdata`` " +"and ``llvm-ar`` binaries using ``AC_PATH_TOOL`` rather than " "``AC_PATH_TARGET_TOOL``." msgstr "" -#: ../../../build/NEWS:499 +#: ../../../build/NEWS:1123 msgid "" "`bpo-37936 `__: The :file:`.gitignore` " "file no longer applies to any files that are in fact tracked in the Git " "repository. Patch by Greg Price." msgstr "" -#: ../../../build/NEWS:505 +#: ../../../build/NEWS:1129 msgid "" "`bpo-38117 `__: Update bundled OpenSSL " "to 1.1.1d" msgstr "" -#: ../../../build/NEWS:507 +#: ../../../build/NEWS:1131 msgid "" "`bpo-36634 `__: venv activate.bat now " "works when the existing variables contain double quote characters." msgstr "" -#: ../../../build/NEWS:510 +#: ../../../build/NEWS:1134 msgid "" "`bpo-38087 `__: Fix case sensitivity in " "test_pathlib and test_ntpath." msgstr "" -#: ../../../build/NEWS:512 +#: ../../../build/NEWS:1136 msgid "" "`bpo-38088 `__: Fixes distutils not " "finding vcruntime140.dll with only the v142 toolset installed." msgstr "" -#: ../../../build/NEWS:515 +#: ../../../build/NEWS:1139 msgid "" "`bpo-37283 `__: Ensure command-line and " "unattend.xml setting override previously detected states in Windows " "installer." msgstr "" -#: ../../../build/NEWS:518 +#: ../../../build/NEWS:1142 msgid "" "`bpo-37705 `__: Improve the " "implementation of ``winerror_to_errno()``." msgstr "" -#: ../../../build/NEWS:520 +#: ../../../build/NEWS:1144 msgid "" -"`bpo-37549 `__: :func:`os.dup` no longer" -" fails for standard streams on Windows 7." +"`bpo-37549 `__: :func:`os.dup` no longer " +"fails for standard streams on Windows 7." msgstr "" -#: ../../../build/NEWS:523 +#: ../../../build/NEWS:1147 msgid "" "`bpo-37702 `__: Fix memory leak on " -"Windows in creating an SSLContext object or running " -"urllib.request.urlopen('https://...')." +"Windows in creating an SSLContext object or running urllib.request." +"urlopen('https://...')." msgstr "" -#: ../../../build/NEWS:526 +#: ../../../build/NEWS:1150 msgid "" "`bpo-10945 `__: Officially drop support " "for creating bdist_wininst installers on non-Windows systems." msgstr "" -#: ../../../build/NEWS:529 +#: ../../../build/NEWS:1153 msgid "" "`bpo-37445 `__: Include the " "``FORMAT_MESSAGE_IGNORE_INSERTS`` flag in ``FormatMessageW()`` calls." msgstr "" -#: ../../../build/NEWS:532 +#: ../../../build/NEWS:1156 msgid "" -"`bpo-37380 `__: Don't collect unfinished" -" processes with ``subprocess._active`` on Windows to cleanup later. Patch by" -" Ruslan Kuprieiev." +"`bpo-37380 `__: Don't collect unfinished " +"processes with ``subprocess._active`` on Windows to cleanup later. Patch by " +"Ruslan Kuprieiev." msgstr "" -#: ../../../build/NEWS:535 +#: ../../../build/NEWS:1159 msgid "" -"`bpo-32587 `__: Make " -":data:`winreg.REG_MULTI_SZ` support zero-length strings." +"`bpo-32587 `__: Make :data:`winreg." +"REG_MULTI_SZ` support zero-length strings." msgstr "" -#: ../../../build/NEWS:538 ../../../build/NEWS:687 ../../../build/NEWS:1198 -#: ../../../build/NEWS:2067 ../../../build/NEWS:2216 ../../../build/NEWS:2669 -#: ../../../build/NEWS:3083 ../../../build/NEWS:3245 ../../../build/NEWS:3457 -#: ../../../build/NEWS:3716 ../../../build/NEWS:4050 ../../../build/NEWS:4909 -#: ../../../build/NEWS:7641 ../../../build/NEWS:7993 ../../../build/NEWS:8399 -msgid "macOS" -msgstr "macOS" - -#: ../../../build/NEWS:540 +#: ../../../build/NEWS:1164 msgid "" "`bpo-38117 `__: Updated OpenSSL to " "1.1.1d in macOS installer." msgstr "" -#: ../../../build/NEWS:542 +#: ../../../build/NEWS:1166 msgid "" "`bpo-38089 `__: Move Azure Pipelines to " "latest VM versions and make macOS tests optional" msgstr "" -#: ../../../build/NEWS:548 +#: ../../../build/NEWS:1172 msgid "" -"`bpo-35379 `__: When exiting IDLE, catch" -" any AttributeError. One happens when EditorWindow.close is called twice. " +"`bpo-35379 `__: When exiting IDLE, catch " +"any AttributeError. One happens when EditorWindow.close is called twice. " "Printing a traceback, when IDLE is run from a terminal, is useless and " "annoying." msgstr "" -#: ../../../build/NEWS:552 +#: ../../../build/NEWS:1176 msgid "" "`bpo-38183 `__: To avoid problems, " -"test_idle ignores the user config directory. It no longer tries to create or" -" access .idlerc or any files within. Users must run IDLE to discover " -"problems with saving settings." +"test_idle ignores the user config directory. It no longer tries to create or " +"access .idlerc or any files within. Users must run IDLE to discover problems " +"with saving settings." msgstr "" -#: ../../../build/NEWS:556 +#: ../../../build/NEWS:1180 msgid "" "`bpo-38077 `__: IDLE no longer adds " "'argv' to the user namespace when initializing it. This bug only affected " "3.7.4 and 3.8.0b2 to 3.8.0b4." msgstr "" -#: ../../../build/NEWS:559 +#: ../../../build/NEWS:1183 msgid "" "`bpo-38041 `__: Shell restart lines now " "fill the window width, always start with '=', and avoid wrapping " @@ -1235,103 +2391,102 @@ msgid "" "relative to the width." msgstr "" -#: ../../../build/NEWS:563 +#: ../../../build/NEWS:1187 msgid "" "`bpo-35771 `__: To avoid occasional " -"spurious test_idle failures on slower machines, increase the ``hover_delay``" -" in test_tooltip." +"spurious test_idle failures on slower machines, increase the ``hover_delay`` " +"in test_tooltip." msgstr "" -#: ../../../build/NEWS:566 +#: ../../../build/NEWS:1190 msgid "" "`bpo-37824 `__: Properly handle user " -"input warnings in IDLE shell. Cease turning SyntaxWarnings into " -"SyntaxErrors." +"input warnings in IDLE shell. Cease turning SyntaxWarnings into SyntaxErrors." msgstr "" -#: ../../../build/NEWS:569 +#: ../../../build/NEWS:1193 msgid "" -"`bpo-37929 `__: IDLE Settings dialog now" -" closes properly when there is no shell window." +"`bpo-37929 `__: IDLE Settings dialog now " +"closes properly when there is no shell window." msgstr "" -#: ../../../build/NEWS:572 +#: ../../../build/NEWS:1196 msgid "" -"`bpo-37902 `__: Add mousewheel scrolling" -" for IDLE module, path, and stack browsers. Patch by George Zhang." +"`bpo-37902 `__: Add mousewheel scrolling " +"for IDLE module, path, and stack browsers. Patch by George Zhang." msgstr "" -#: ../../../build/NEWS:575 +#: ../../../build/NEWS:1199 msgid "" "`bpo-37849 `__: Fixed completions list " "appearing too high or low when shown above the current line." msgstr "" -#: ../../../build/NEWS:578 +#: ../../../build/NEWS:1202 msgid "" "`bpo-36419 `__: Refactor IDLE " "autocomplete and improve testing." msgstr "" -#: ../../../build/NEWS:580 +#: ../../../build/NEWS:1204 msgid "" "`bpo-37748 `__: Reorder the Run menu. " "Put the most common choice, Run Module, at the top." msgstr "" -#: ../../../build/NEWS:583 +#: ../../../build/NEWS:1207 msgid "" -"`bpo-37692 `__: Improve highlight config" -" sample with example shell interaction and better labels for shell elements." +"`bpo-37692 `__: Improve highlight config " +"sample with example shell interaction and better labels for shell elements." msgstr "" -#: ../../../build/NEWS:586 +#: ../../../build/NEWS:1210 msgid "" "`bpo-37628 `__: Settings dialog no " "longer expands with font size." msgstr "" -#: ../../../build/NEWS:588 +#: ../../../build/NEWS:1212 msgid "" -"`bpo-37627 `__: Initialize the Customize" -" Run dialog with the command line arguments most recently entered before. " +"`bpo-37627 `__: Initialize the Customize " +"Run dialog with the command line arguments most recently entered before. " "The user can optionally edit before submitting them." msgstr "" -#: ../../../build/NEWS:592 +#: ../../../build/NEWS:1216 msgid "" "`bpo-33610 `__: Fix code context not " "showing the correct context when first toggled on." msgstr "" -#: ../../../build/NEWS:595 +#: ../../../build/NEWS:1219 msgid "" -"`bpo-37530 `__: Optimize code context to" -" reduce unneeded background activity. Font and highlight changes now occur " +"`bpo-37530 `__: Optimize code context to " +"reduce unneeded background activity. Font and highlight changes now occur " "along with text changes instead of after a random delay." msgstr "" -#: ../../../build/NEWS:599 +#: ../../../build/NEWS:1223 msgid "" -"`bpo-27452 `__: Cleanup ``config.py`` by" -" inlining ``RemoveFile`` and simplifying the handling of ``file`` in " +"`bpo-27452 `__: Cleanup ``config.py`` by " +"inlining ``RemoveFile`` and simplifying the handling of ``file`` in " "``CreateConfigHandlers``." msgstr "" -#: ../../../build/NEWS:602 +#: ../../../build/NEWS:1226 msgid "" "`bpo-37325 `__: Fix tab focus traversal " "order for help source and custom run dialogs." msgstr "" -#: ../../../build/NEWS:605 +#: ../../../build/NEWS:1229 msgid "" "`bpo-17535 `__: Add optional line " "numbers for IDLE editor windows. Windows open without line numbers unless " "set otherwise in the General tab of the configuration dialog." msgstr "" -#: ../../../build/NEWS:609 +#: ../../../build/NEWS:1233 msgid "" "`bpo-26806 `__: To compensate for stack " "frames added by IDLE and avoid possible problems with low recursion limits, " @@ -1339,56 +2494,56 @@ msgid "" "reporting recursion limits to make this addition mostly transparent." msgstr "" -#: ../../../build/NEWS:614 +#: ../../../build/NEWS:1238 msgid "" "`bpo-36390 `__: Gather Format menu " "functions into format.py. Combine paragraph.py, rstrip.py, and format " "methods from editor.py." msgstr "" -#: ../../../build/NEWS:620 +#: ../../../build/NEWS:1244 msgid "" -"`bpo-37803 `__: pdb's ``--help`` and " -"``--version`` long options now work." +"`bpo-37803 `__: pdb's ``--help`` and ``--" +"version`` long options now work." msgstr "" -#: ../../../build/NEWS:622 +#: ../../../build/NEWS:1246 msgid "" "`bpo-37675 `__: 2to3 now works when run " "from a zipped standard library." msgstr "" -#: ../../../build/NEWS:626 +#: ../../../build/NEWS:1250 msgid "Python 3.7.4 final" msgstr "" -#: ../../../build/NEWS:628 +#: ../../../build/NEWS:1252 msgid "*Release date: 2019-07-08*" msgstr "" -#: ../../../build/NEWS:633 +#: ../../../build/NEWS:1257 msgid "" "`bpo-37500 `__: Due to unintended side " "effects, revert the change introduced by :issue:`1875` in 3.7.4rc1 to check " "for syntax errors in dead conditional code blocks." msgstr "" -#: ../../../build/NEWS:640 +#: ../../../build/NEWS:1264 msgid "" -"`bpo-37149 `__: Replace the dead link to" -" the Tkinter 8.5 reference by John Shipman, New Mexico Tech, with a link to " +"`bpo-37149 `__: Replace the dead link to " +"the Tkinter 8.5 reference by John Shipman, New Mexico Tech, with a link to " "the archive.org copy." msgstr "" -#: ../../../build/NEWS:645 +#: ../../../build/NEWS:1269 msgid "Python 3.7.4 release candidate 2" msgstr "" -#: ../../../build/NEWS:647 +#: ../../../build/NEWS:1271 msgid "*Release date: 2019-07-02*" msgstr "" -#: ../../../build/NEWS:652 +#: ../../../build/NEWS:1276 msgid "" "`bpo-37463 `__: ssl.match_hostname() no " "longer accepts IPv4 addresses with additional text after the address and " @@ -1397,53 +2552,53 @@ msgid "" "'127.0.0.1 whatever'." msgstr "" -#: ../../../build/NEWS:660 +#: ../../../build/NEWS:1284 msgid "" "`bpo-24214 `__: Improved support of the " "surrogatepass error handler in the UTF-8 and UTF-16 incremental decoders." msgstr "" -#: ../../../build/NEWS:666 +#: ../../../build/NEWS:1290 msgid "" "`bpo-37440 `__: http.client now enables " "TLS 1.3 post-handshake authentication for default context or if a cert_file " "is passed to HTTPSConnection." msgstr "" -#: ../../../build/NEWS:669 +#: ../../../build/NEWS:1293 msgid "" "`bpo-37437 `__: Update vendorized expat " "version to 2.2.7." msgstr "" -#: ../../../build/NEWS:671 +#: ../../../build/NEWS:1295 msgid "" -"`bpo-37428 `__: " -"SSLContext.post_handshake_auth = True no longer sets " -"SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the " -"option is documented as ignored for clients, OpenSSL implicitly enables cert" -" chain validation when the flag is set." +"`bpo-37428 `__: SSLContext." +"post_handshake_auth = True no longer sets SSL_VERIFY_POST_HANDSHAKE verify " +"flag for client connections. Although the option is documented as ignored " +"for clients, OpenSSL implicitly enables cert chain validation when the flag " +"is set." msgstr "" -#: ../../../build/NEWS:676 +#: ../../../build/NEWS:1300 msgid "" "`bpo-32627 `__: Fix compile error when " "``_uuid`` headers conflicting included." msgstr "" -#: ../../../build/NEWS:681 +#: ../../../build/NEWS:1305 msgid "" -"`bpo-37369 `__: Fixes path for " -":data:`sys.executable` when running from the Microsoft Store." +"`bpo-37369 `__: Fixes path for :data:" +"`sys.executable` when running from the Microsoft Store." msgstr "" -#: ../../../build/NEWS:684 +#: ../../../build/NEWS:1308 msgid "" -"`bpo-35360 `__: Update Windows builds to" -" use SQLite 3.28.0." +"`bpo-35360 `__: Update Windows builds to " +"use SQLite 3.28.0." msgstr "" -#: ../../../build/NEWS:689 +#: ../../../build/NEWS:1313 msgid "" "`bpo-34602 `__: Avoid test suite " "failures on macOS by no longer calling resource.setrlimit to increase the " @@ -1451,104 +2606,103 @@ msgid "" "since the interpreter is being built with a larger default stack size." msgstr "" -#: ../../../build/NEWS:696 +#: ../../../build/NEWS:1320 msgid "Python 3.7.4 release candidate 1" msgstr "" -#: ../../../build/NEWS:698 +#: ../../../build/NEWS:1322 msgid "*Release date: 2019-06-18*" msgstr "" -#: ../../../build/NEWS:703 +#: ../../../build/NEWS:1327 msgid "" "`bpo-35907 `__: CVE-2019-9948: Avoid " "file reading by disallowing ``local-file://`` and ``local_file://`` URL " -"schemes in ``URLopener().open()`` and ``URLopener().retrieve()`` of " -":mod:`urllib.request`." +"schemes in ``URLopener().open()`` and ``URLopener().retrieve()`` of :mod:" +"`urllib.request`." msgstr "" -#: ../../../build/NEWS:708 +#: ../../../build/NEWS:1332 msgid "" -"`bpo-36742 `__: Fixes mishandling of " -"pre-normalization characters in urlsplit()." +"`bpo-36742 `__: Fixes mishandling of pre-" +"normalization characters in urlsplit()." msgstr "" -#: ../../../build/NEWS:711 +#: ../../../build/NEWS:1335 msgid "" -"`bpo-30458 `__: Address CVE-2019-9740 by" -" disallowing URL paths with embedded whitespace or control characters " -"through into the underlying http client request. Such potentially malicious" -" header injection URLs now cause an http.client.InvalidURL exception to be " -"raised." +"`bpo-30458 `__: Address CVE-2019-9740 by " +"disallowing URL paths with embedded whitespace or control characters through " +"into the underlying http client request. Such potentially malicious header " +"injection URLs now cause an http.client.InvalidURL exception to be raised." msgstr "" -#: ../../../build/NEWS:716 +#: ../../../build/NEWS:1340 msgid "" "`bpo-33529 `__: Prevent fold function " -"used in email header encoding from entering infinite loop when there are too" -" many non-ASCII characters in a header." +"used in email header encoding from entering infinite loop when there are too " +"many non-ASCII characters in a header." msgstr "" -#: ../../../build/NEWS:720 +#: ../../../build/NEWS:1344 msgid "" -"`bpo-35755 `__: :func:`shutil.which` now" -" uses ``os.confstr(\"CS_PATH\")`` if available and if the :envvar:`PATH` " -"environment variable is not set. Remove also the current directory from " -":data:`posixpath.defpath`. On Unix, :func:`shutil.which` and the " -":mod:`subprocess` module no longer search the executable in the current " -"directory if the :envvar:`PATH` environment variable is not set." +"`bpo-35755 `__: :func:`shutil.which` now " +"uses ``os.confstr(\"CS_PATH\")`` if available and if the :envvar:`PATH` " +"environment variable is not set. Remove also the current directory from :" +"data:`posixpath.defpath`. On Unix, :func:`shutil.which` and the :mod:" +"`subprocess` module no longer search the executable in the current directory " +"if the :envvar:`PATH` environment variable is not set." msgstr "" -#: ../../../build/NEWS:730 +#: ../../../build/NEWS:1354 msgid "" "`bpo-37269 `__: Fix a bug in the " "peephole optimizer that was not treating correctly constant conditions with " "binary operators. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:734 +#: ../../../build/NEWS:1358 msgid "" "`bpo-37219 `__: Remove errorneous " "optimization for empty set differences." msgstr "" -#: ../../../build/NEWS:736 +#: ../../../build/NEWS:1360 msgid "" -"`bpo-26423 `__: Fix possible overflow in" -" ``wrap_lenfunc()`` when ``sizeof(long) < sizeof(Py_ssize_t)`` (e.g., 64-bit" -" Windows)." +"`bpo-26423 `__: Fix possible overflow in " +"``wrap_lenfunc()`` when ``sizeof(long) < sizeof(Py_ssize_t)`` (e.g., 64-bit " +"Windows)." msgstr "" -#: ../../../build/NEWS:739 +#: ../../../build/NEWS:1363 msgid "" -"`bpo-36829 `__: " -":c:func:`PyErr_WriteUnraisable` now displays the exception even if " -"displaying the traceback failed. Moreover, hold a strong reference to " -":data:`sys.stderr` while using it. Document that an exception must be set " -"when calling :c:func:`PyErr_WriteUnraisable`." +"`bpo-36829 `__: :c:func:" +"`PyErr_WriteUnraisable` now displays the exception even if displaying the " +"traceback failed. Moreover, hold a strong reference to :data:`sys.stderr` " +"while using it. Document that an exception must be set when calling :c:func:" +"`PyErr_WriteUnraisable`." msgstr "" -#: ../../../build/NEWS:744 +#: ../../../build/NEWS:1368 msgid "" -"`bpo-36907 `__: Fix a crash when calling" -" a C function with a keyword dict (``f(**kwargs)``) and changing the dict " +"`bpo-36907 `__: Fix a crash when calling " +"a C function with a keyword dict (``f(**kwargs)``) and changing the dict " "``kwargs`` while that function is running." msgstr "" -#: ../../../build/NEWS:748 +#: ../../../build/NEWS:1372 msgid "" "`bpo-36946 `__: Fix possible signed " "integer overflow when handling slices." msgstr "" -#: ../../../build/NEWS:750 +#: ../../../build/NEWS:1374 msgid "" "`bpo-27987 `__: ``PyGC_Head`` structure " "is aligned to ``long double``. This is needed to ensure GC-ed objects are " "aligned properly. Patch by Inada Naoki." msgstr "" -#: ../../../build/NEWS:754 +#: ../../../build/NEWS:1378 msgid "" "`bpo-1875 `__: A :exc:`SyntaxError` is " "now raised if a code blocks that will be optimized away (e.g. if conditions " @@ -1556,220 +2710,219 @@ msgid "" "(Reverted in 3.7.4 final by :issue:`37500`.)" msgstr "" -#: ../../../build/NEWS:759 +#: ../../../build/NEWS:1383 msgid "" -"`bpo-28866 `__: Avoid caching attributes" -" of classes which type defines mro() to avoid a hard cache invalidation " +"`bpo-28866 `__: Avoid caching attributes " +"of classes which type defines mro() to avoid a hard cache invalidation " "problem." msgstr "" -#: ../../../build/NEWS:762 +#: ../../../build/NEWS:1386 msgid "" "`bpo-27639 `__: Correct return type for " "UserList slicing operations. Patch by Michael Blahay, Erick Cervantes, and " "vaultah" msgstr "" -#: ../../../build/NEWS:765 +#: ../../../build/NEWS:1389 msgid "" "`bpo-32849 `__: Fix Python " -"Initialization code on FreeBSD to detect properly when stdin file descriptor" -" (fd 0) is invalid." +"Initialization code on FreeBSD to detect properly when stdin file descriptor " +"(fd 0) is invalid." msgstr "" -#: ../../../build/NEWS:768 +#: ../../../build/NEWS:1392 msgid "" "`bpo-27987 `__: pymalloc returns memory " "blocks aligned by 16 bytes, instead of 8 bytes, on 64-bit platforms to " -"conform x86-64 ABI. Recent compilers assume this alignment more often. Patch" -" by Inada Naoki." +"conform x86-64 ABI. Recent compilers assume this alignment more often. Patch " +"by Inada Naoki." msgstr "" -#: ../../../build/NEWS:772 +#: ../../../build/NEWS:1396 msgid "" "`bpo-36504 `__: Fix signed integer " "overflow in _ctypes.c's ``PyCArrayType_new()``." msgstr "" -#: ../../../build/NEWS:775 +#: ../../../build/NEWS:1399 msgid "" "`bpo-20844 `__: Fix running script with " "encoding cookie and LF line ending may fail on Windows." msgstr "" -#: ../../../build/NEWS:778 +#: ../../../build/NEWS:1402 msgid "" "`bpo-24214 `__: Fixed support of the " "surrogatepass error handler in the UTF-8 incremental decoder." msgstr "" -#: ../../../build/NEWS:781 +#: ../../../build/NEWS:1405 msgid "" "`bpo-36459 `__: Fix a possible double " "``PyMem_FREE()`` due to tokenizer.c's ``tok_nextc()``." msgstr "" -#: ../../../build/NEWS:784 +#: ../../../build/NEWS:1408 msgid "" "`bpo-36433 `__: Fixed TypeError message " "in classmethoddescr_call." msgstr "" -#: ../../../build/NEWS:786 +#: ../../../build/NEWS:1410 msgid "" -"`bpo-36430 `__: Fix a possible reference" -" leak in :func:`itertools.count`." +"`bpo-36430 `__: Fix a possible reference " +"leak in :func:`itertools.count`." msgstr "" -#: ../../../build/NEWS:788 +#: ../../../build/NEWS:1412 msgid "" "`bpo-36440 `__: Include node names in " "``ParserError`` messages, instead of numeric IDs. Patch by A. Skrobov." msgstr "" -#: ../../../build/NEWS:791 +#: ../../../build/NEWS:1415 msgid "" "`bpo-36421 `__: Fix a possible double " "decref in _ctypes.c's ``PyCArrayType_new()``." msgstr "" -#: ../../../build/NEWS:794 +#: ../../../build/NEWS:1418 msgid "" "`bpo-36256 `__: Fix bug in parsermodule " "when parsing a state in a DFA that has two or more arcs with labels of the " "same type. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:797 +#: ../../../build/NEWS:1421 msgid "" "`bpo-36236 `__: At Python " -"initialization, the current directory is no longer prepended to " -":data:`sys.path` if it has been removed." +"initialization, the current directory is no longer prepended to :data:`sys." +"path` if it has been removed." msgstr "" -#: ../../../build/NEWS:800 +#: ../../../build/NEWS:1424 msgid "" "`bpo-36262 `__: Fix an unlikely memory " "leak on conversion from string to float in the function ``_Py_dg_strtod()`` " -"used by ``float(str)``, ``complex(str)``, :func:`pickle.load`, " -":func:`marshal.load`, etc." +"used by ``float(str)``, ``complex(str)``, :func:`pickle.load`, :func:" +"`marshal.load`, etc." msgstr "" -#: ../../../build/NEWS:804 +#: ../../../build/NEWS:1428 msgid "" "`bpo-36218 `__: Fix a segfault occuring " "when sorting a list of heterogeneous values. Patch contributed by Rémi " "Lapeyre and Elliot Gorokhovsky." msgstr "" -#: ../../../build/NEWS:807 +#: ../../../build/NEWS:1431 msgid "" "`bpo-36035 `__: Added fix for broken " "symlinks in combination with pathlib" msgstr "" -#: ../../../build/NEWS:809 +#: ../../../build/NEWS:1433 msgid "" -"`bpo-18372 `__: Add missing " -":c:func:`PyObject_GC_Track` calls in the :mod:`pickle` module. Patch by " -"Zackery Spytz." +"`bpo-18372 `__: Add missing :c:func:" +"`PyObject_GC_Track` calls in the :mod:`pickle` module. Patch by Zackery " +"Spytz." msgstr "" -#: ../../../build/NEWS:812 +#: ../../../build/NEWS:1436 msgid "" "`bpo-34408 `__: Prevent a null pointer " "dereference and resource leakage in ``PyInterpreterState_New()``." msgstr "" -#: ../../../build/NEWS:818 +#: ../../../build/NEWS:1442 msgid "" "`bpo-37280 `__: Use threadpool for " "reading from file for sendfile fallback mode." msgstr "" -#: ../../../build/NEWS:821 +#: ../../../build/NEWS:1445 msgid "" "`bpo-37279 `__: Fix asyncio sendfile " "support when sendfile sends extra data in fallback mode." msgstr "" -#: ../../../build/NEWS:824 +#: ../../../build/NEWS:1448 msgid "" -"`bpo-19865 `__: " -":func:`ctypes.create_unicode_buffer()` now also supports non-BMP characters " -"on platforms with 16-bit :c:type:`wchar_t` (for example, Windows and AIX)." +"`bpo-19865 `__: :func:`ctypes." +"create_unicode_buffer()` now also supports non-BMP characters on platforms " +"with 16-bit :c:type:`wchar_t` (for example, Windows and AIX)." msgstr "" -#: ../../../build/NEWS:828 +#: ../../../build/NEWS:1452 msgid "" -"`bpo-35922 `__: Fix " -":meth:`RobotFileParser.crawl_delay` and :meth:`RobotFileParser.request_rate`" -" to return ``None`` rather than raise :exc:`AttributeError` when no relevant" -" rule is defined in the robots.txt file. Patch by Rémi Lapeyre." +"`bpo-35922 `__: Fix :meth:" +"`RobotFileParser.crawl_delay` and :meth:`RobotFileParser.request_rate` to " +"return ``None`` rather than raise :exc:`AttributeError` when no relevant " +"rule is defined in the robots.txt file. Patch by Rémi Lapeyre." msgstr "" -#: ../../../build/NEWS:833 +#: ../../../build/NEWS:1457 msgid "" -"`bpo-36607 `__: Eliminate " -":exc:`RuntimeError` raised by :func:`asyncio.all_tasks()` if internal tasks " -"weak set is changed by another thread during iteration." +"`bpo-36607 `__: Eliminate :exc:" +"`RuntimeError` raised by :func:`asyncio.all_tasks()` if internal tasks weak " +"set is changed by another thread during iteration." msgstr "" -#: ../../../build/NEWS:837 +#: ../../../build/NEWS:1461 msgid "" "`bpo-36402 `__: Fix a race condition at " -"Python shutdown when waiting for threads. Wait until the Python thread state" -" of all non-daemon threads get deleted (join all non-daemon threads), rather" -" than just wait until non-daemon Python threads complete." +"Python shutdown when waiting for threads. Wait until the Python thread state " +"of all non-daemon threads get deleted (join all non-daemon threads), rather " +"than just wait until non-daemon Python threads complete." msgstr "" -#: ../../../build/NEWS:842 +#: ../../../build/NEWS:1466 msgid "" "`bpo-34886 `__: Fix an unintended " -"ValueError from :func:`subprocess.run` when checking for conflicting `input`" -" and `stdin` or `capture_output` and `stdout` or `stderr` args when they " -"were explicitly provided but with `None` values within a passed in " -"`**kwargs` dict rather than as passed directly by name. Patch contributed by" -" Rémi Lapeyre." +"ValueError from :func:`subprocess.run` when checking for conflicting `input` " +"and `stdin` or `capture_output` and `stdout` or `stderr` args when they were " +"explicitly provided but with `None` values within a passed in `**kwargs` " +"dict rather than as passed directly by name. Patch contributed by Rémi " +"Lapeyre." msgstr "" -#: ../../../build/NEWS:848 +#: ../../../build/NEWS:1472 msgid "" "`bpo-37173 `__: The exception message " -"for ``inspect.getfile()`` now correctly reports the passed class rather than" -" the builtins module." +"for ``inspect.getfile()`` now correctly reports the passed class rather than " +"the builtins module." msgstr "" -#: ../../../build/NEWS:851 +#: ../../../build/NEWS:1475 msgid "" -"`bpo-12639 `__: " -":meth:`msilib.Directory.start_component()` no longer fails if *keyfile* is " -"not ``None``." +"`bpo-12639 `__: :meth:`msilib.Directory." +"start_component()` no longer fails if *keyfile* is not ``None``." msgstr "" -#: ../../../build/NEWS:854 +#: ../../../build/NEWS:1478 msgid "" "`bpo-36520 `__: Lengthy email headers " "with UTF-8 characters are now properly encoded when they are folded. Patch " "by Jeffrey Kintscher." msgstr "" -#: ../../../build/NEWS:857 +#: ../../../build/NEWS:1481 msgid "" -"`bpo-37054 `__: Fix destructor " -":class:`_pyio.BytesIO` and :class:`_pyio.TextIOWrapper`: initialize their " +"`bpo-37054 `__: Fix destructor :class:" +"`_pyio.BytesIO` and :class:`_pyio.TextIOWrapper`: initialize their " "``_buffer`` attribute as soon as possible (in the class body), because it's " "used by ``__del__()`` which calls ``close()``." msgstr "" -#: ../../../build/NEWS:862 +#: ../../../build/NEWS:1486 msgid "" "`bpo-30835 `__: Fixed a bug in email " -"parsing where a message with invalid bytes in content-transfer-encoding of a" -" multipart message can cause an AttributeError. Patch by Andrew Donnellan." +"parsing where a message with invalid bytes in content-transfer-encoding of a " +"multipart message can cause an AttributeError. Patch by Andrew Donnellan." msgstr "" -#: ../../../build/NEWS:866 +#: ../../../build/NEWS:1490 msgid "" "`bpo-37035 `__: Don't log OSError based " "exceptions if a fatal error has occurred in asyncio transport. Peer can " @@ -1778,78 +2931,78 @@ msgid "" "is pointless and pollute asyncio logs." msgstr "" -#: ../../../build/NEWS:872 +#: ../../../build/NEWS:1496 msgid "" -"`bpo-37008 `__: Add support for calling " -":func:`next` with the mock resulting from :func:`unittest.mock.mock_open`" +"`bpo-37008 `__: Add support for calling :" +"func:`next` with the mock resulting from :func:`unittest.mock.mock_open`" msgstr "" -#: ../../../build/NEWS:875 +#: ../../../build/NEWS:1499 msgid "" "`bpo-27737 `__: Allow whitespace only " "header encoding in ``email.header`` - by Batuhan Taskaya" msgstr "" -#: ../../../build/NEWS:878 +#: ../../../build/NEWS:1502 msgid "" "`bpo-36969 `__: PDB command `args` now " "display keyword only arguments. Patch contributed by Rémi Lapeyre." msgstr "" -#: ../../../build/NEWS:881 +#: ../../../build/NEWS:1505 msgid "" "`bpo-36983 `__: Add missing names to " "``typing.__all__``: ``ChainMap``, ``ForwardRef``, ``OrderedDict`` - by " "Anthony Sottile." msgstr "" -#: ../../../build/NEWS:884 +#: ../../../build/NEWS:1508 msgid "" -"`bpo-21315 `__: Email headers containing" -" RFC2047 encoded words are parsed despite the missing whitespace, and a " +"`bpo-21315 `__: Email headers containing " +"RFC2047 encoded words are parsed despite the missing whitespace, and a " "defect registered. Also missing trailing whitespace after encoded words is " "now registered as a defect." msgstr "" -#: ../../../build/NEWS:888 +#: ../../../build/NEWS:1512 msgid "" -"`bpo-33524 `__: Fix the folding of email" -" header when the max_line_length is 0 or None and the header contains non-" +"`bpo-33524 `__: Fix the folding of email " +"header when the max_line_length is 0 or None and the header contains non-" "ascii characters. Contributed by Licht Takeuchi (@Licht-T)." msgstr "" -#: ../../../build/NEWS:892 +#: ../../../build/NEWS:1516 msgid "" "`bpo-24564 `__: :func:`shutil.copystat` " "now ignores :const:`errno.EINVAL` on :func:`os.setxattr` which may occur " "when copying files on filesystems without extended attributes support." msgstr "" -#: ../../../build/NEWS:896 +#: ../../../build/NEWS:1520 msgid "Original patch by Giampaolo Rodola, updated by Ying Wang." msgstr "" -#: ../../../build/NEWS:898 +#: ../../../build/NEWS:1522 msgid "" "`bpo-36845 `__: Added validation of " "integer prefixes to the construction of IP networks and interfaces in the " "ipaddress module." msgstr "" -#: ../../../build/NEWS:901 +#: ../../../build/NEWS:1525 msgid "" "`bpo-35545 `__: Fix asyncio discarding " "IPv6 scopes when ensuring hostname resolutions internally" msgstr "" -#: ../../../build/NEWS:904 +#: ../../../build/NEWS:1528 msgid "" -"`bpo-35070 `__: posix.getgrouplist() now" -" works correctly when the user belongs to NGROUPS_MAX supplemental groups. " +"`bpo-35070 `__: posix.getgrouplist() now " +"works correctly when the user belongs to NGROUPS_MAX supplemental groups. " "Patch by Jeffrey Kintscher." msgstr "" -#: ../../../build/NEWS:907 +#: ../../../build/NEWS:1531 msgid "" "`bpo-24538 `__: In `shutil.copystat()`, " "first copy extended file attributes and then file permissions, since " @@ -1857,43 +3010,42 @@ msgid "" "writeable." msgstr "" -#: ../../../build/NEWS:911 +#: ../../../build/NEWS:1535 msgid "" -"`bpo-33110 `__: Handle exceptions raised" -" by functions added by concurrent.futures add_done_callback correctly when " +"`bpo-33110 `__: Handle exceptions raised " +"by functions added by concurrent.futures add_done_callback correctly when " "the Future has already completed." msgstr "" -#: ../../../build/NEWS:915 +#: ../../../build/NEWS:1539 msgid "" "`bpo-26903 `__: Limit `max_workers` in " "`ProcessPoolExecutor` to 61 to work around a WaitForMultipleObjects " "limitation." msgstr "" -#: ../../../build/NEWS:918 +#: ../../../build/NEWS:1542 msgid "" -"`bpo-36813 `__: Fix " -":class:`~logging.handlers.QueueListener` to call ``queue.task_done()`` upon " -"stopping. Patch by Bar Harel." +"`bpo-36813 `__: Fix :class:`~logging." +"handlers.QueueListener` to call ``queue.task_done()`` upon stopping. Patch " +"by Bar Harel." msgstr "" -#: ../../../build/NEWS:921 +#: ../../../build/NEWS:1545 msgid "" "`bpo-36734 `__: Fix compilation of " "``faulthandler.c`` on HP-UX. Initialize ``stack_t current_stack`` to zero " "using ``memset()``." msgstr "" -#: ../../../build/NEWS:924 +#: ../../../build/NEWS:1548 msgid "" -"`bpo-29183 `__: Fix double exceptions in" -" :class:`wsgiref.handlers.BaseHandler` by calling its " -":meth:`~wsgiref.handlers.BaseHandler.close` method only when no exception is" -" raised." +"`bpo-29183 `__: Fix double exceptions " +"in :class:`wsgiref.handlers.BaseHandler` by calling its :meth:`~wsgiref." +"handlers.BaseHandler.close` method only when no exception is raised." msgstr "" -#: ../../../build/NEWS:928 +#: ../../../build/NEWS:1552 msgid "" "`bpo-36650 `__: The C version of " "functools.lru_cache() was treating calls with an empty ``**kwargs`` " @@ -1902,56 +3054,56 @@ msgid "" "miss." msgstr "" -#: ../../../build/NEWS:933 +#: ../../../build/NEWS:1557 msgid "" -"`bpo-28552 `__: Fix " -":mod:`distutils.sysconfig` if :data:`sys.executable` is ``None`` or an empty" -" string: use :func:`os.getcwd` to initialize ``project_base``. Fix also the" -" distutils build command: don't use :data:`sys.executable` if it is ``None``" -" or an empty string." +"`bpo-28552 `__: Fix :mod:`distutils." +"sysconfig` if :data:`sys.executable` is ``None`` or an empty string: use :" +"func:`os.getcwd` to initialize ``project_base``. Fix also the distutils " +"build command: don't use :data:`sys.executable` if it is ``None`` or an " +"empty string." msgstr "" -#: ../../../build/NEWS:938 +#: ../../../build/NEWS:1562 msgid "" -"`bpo-35755 `__: :func:`shutil.which` and" -" :func:`distutils.spawn.find_executable` now use ``os.confstr(\"CS_PATH\")``" -" if available instead of :data:`os.defpath`, if the ``PATH`` environment " -"variable is not set. Moreover, don't use ``os.confstr(\"CS_PATH\")`` nor " -":data:`os.defpath` if the ``PATH`` environment variable is set to an empty " -"string." +"`bpo-35755 `__: :func:`shutil.which` " +"and :func:`distutils.spawn.find_executable` now use ``os.confstr(\"CS_PATH" +"\")`` if available instead of :data:`os.defpath`, if the ``PATH`` " +"environment variable is not set. Moreover, don't use ``os.confstr(\"CS_PATH" +"\")`` nor :data:`os.defpath` if the ``PATH`` environment variable is set to " +"an empty string." msgstr "" -#: ../../../build/NEWS:945 +#: ../../../build/NEWS:1569 msgid "" "`bpo-36613 `__: Fix :mod:`asyncio` " "wait() not removing callback if exception" msgstr "" -#: ../../../build/NEWS:947 +#: ../../../build/NEWS:1571 msgid "" -"`bpo-36598 `__: Fix ``isinstance`` check" -" for Mock objects with spec when the code is executed under tracing. Patch " -"by Karthikeyan Singaravelan." +"`bpo-36598 `__: Fix ``isinstance`` check " +"for Mock objects with spec when the code is executed under tracing. Patch by " +"Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:950 +#: ../../../build/NEWS:1574 msgid "" -"`bpo-36533 `__: Reinitialize " -"logging.Handler locks in forked child processes instead of attempting to " -"acquire them all in the parent before forking only to be released in the " -"child process. The acquire/release pattern was leading to deadlocks in code" -" that has implemented any form of chained logging handlers that depend upon " -"one another as the lock acquision order cannot be guaranteed." +"`bpo-36533 `__: Reinitialize logging." +"Handler locks in forked child processes instead of attempting to acquire " +"them all in the parent before forking only to be released in the child " +"process. The acquire/release pattern was leading to deadlocks in code that " +"has implemented any form of chained logging handlers that depend upon one " +"another as the lock acquision order cannot be guaranteed." msgstr "" -#: ../../../build/NEWS:957 +#: ../../../build/NEWS:1581 msgid "" "`bpo-36522 `__: If *debuglevel* is set " "to >0 in :mod:`http.client`, print all values for headers with multiple " "values for the same header name. Patch by Matt Houglum." msgstr "" -#: ../../../build/NEWS:961 +#: ../../../build/NEWS:1585 msgid "" "`bpo-36492 `__: Arbitrary keyword " "arguments (even with names \"self\" and \"func\") can now be passed to some " @@ -1961,316 +3113,312 @@ msgid "" "arguments." msgstr "" -#: ../../../build/NEWS:967 +#: ../../../build/NEWS:1591 msgid "" -"`bpo-36434 `__: Errors during writing to" -" a ZIP file no longer prevent to properly close it." +"`bpo-36434 `__: Errors during writing to " +"a ZIP file no longer prevent to properly close it." msgstr "" -#: ../../../build/NEWS:970 +#: ../../../build/NEWS:1594 msgid "" "`bpo-34745 `__: Fix :mod:`asyncio` ssl " "memory issues caused by circular references" msgstr "" -#: ../../../build/NEWS:973 +#: ../../../build/NEWS:1597 msgid "" -"`bpo-36321 `__: collections.namedtuple()" -" misspelled the name of an attribute. To be consistent with " -"typing.NamedTuple, the attribute name should have been \"_field_defaults\" " -"instead of \"_fields_defaults\". For backwards compatibility, both " -"spellings are now created. The misspelled version may be removed in the " -"future." +"`bpo-36321 `__: collections.namedtuple() " +"misspelled the name of an attribute. To be consistent with typing." +"NamedTuple, the attribute name should have been \"_field_defaults\" instead " +"of \"_fields_defaults\". For backwards compatibility, both spellings are " +"now created. The misspelled version may be removed in the future." msgstr "" -#: ../../../build/NEWS:979 +#: ../../../build/NEWS:1603 msgid "" "`bpo-36272 `__: :mod:`logging` does not " "silently ignore RecursionError anymore. Patch contributed by Rémi Lapeyre." msgstr "" -#: ../../../build/NEWS:982 +#: ../../../build/NEWS:1606 msgid "" "`bpo-36235 `__: Fix ``CFLAGS`` in " "``customize_compiler()`` of ``distutils.sysconfig``: when the ``CFLAGS`` " -"environment variable is defined, don't override ``CFLAGS`` variable with the" -" ``OPT`` variable anymore. Initial patch written by David Malcolm." +"environment variable is defined, don't override ``CFLAGS`` variable with the " +"``OPT`` variable anymore. Initial patch written by David Malcolm." msgstr "" -#: ../../../build/NEWS:987 +#: ../../../build/NEWS:1611 msgid "" "`bpo-35125 `__: Asyncio: Remove inner " "callback on outer cancellation in shield" msgstr "" -#: ../../../build/NEWS:989 +#: ../../../build/NEWS:1613 msgid "" "`bpo-35802 `__: Clean up code which " "checked presence of ``os.stat`` / ``os.lstat`` / ``os.chmod`` which are " "always present. Patch by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:993 +#: ../../../build/NEWS:1617 msgid "" -"`bpo-23078 `__: Add support for " -":func:`classmethod` and :func:`staticmethod` to " -":func:`unittest.mock.create_autospec`. Initial patch by Felipe Ochoa." +"`bpo-23078 `__: Add support for :func:" +"`classmethod` and :func:`staticmethod` to :func:`unittest.mock." +"create_autospec`. Initial patch by Felipe Ochoa." msgstr "" -#: ../../../build/NEWS:996 +#: ../../../build/NEWS:1620 msgid "" -"`bpo-35721 `__: Fix " -":meth:`asyncio.SelectorEventLoop.subprocess_exec()` leaks file descriptors " -"if ``Popen`` fails and called with ``stdin=subprocess.PIPE``. Patch by " -"Niklas Fiekas." +"`bpo-35721 `__: Fix :meth:`asyncio." +"SelectorEventLoop.subprocess_exec()` leaks file descriptors if ``Popen`` " +"fails and called with ``stdin=subprocess.PIPE``. Patch by Niklas Fiekas." msgstr "" -#: ../../../build/NEWS:1000 +#: ../../../build/NEWS:1624 msgid "" "`bpo-35726 `__: QueueHandler.prepare() " "now makes a copy of the record before modifying and enqueueing it, to avoid " "affecting other handlers in the chain." msgstr "" -#: ../../../build/NEWS:1004 +#: ../../../build/NEWS:1628 msgid "" -"`bpo-31855 `__: " -":func:`unittest.mock.mock_open` results now respects the argument of " -"read([size]). Patch contributed by Rémi Lapeyre." +"`bpo-31855 `__: :func:`unittest.mock." +"mock_open` results now respects the argument of read([size]). Patch " +"contributed by Rémi Lapeyre." msgstr "" -#: ../../../build/NEWS:1007 +#: ../../../build/NEWS:1631 msgid "" "`bpo-35082 `__: Don't return deleted " "attributes when calling dir on a :class:`unittest.mock.Mock`." msgstr "" -#: ../../../build/NEWS:1010 +#: ../../../build/NEWS:1634 msgid "" -"`bpo-34547 `__: " -":class:`wsgiref.handlers.BaseHandler` now handles abrupt client connection " -"terminations gracefully. Patch by Petter Strandmark." +"`bpo-34547 `__: :class:`wsgiref.handlers." +"BaseHandler` now handles abrupt client connection terminations gracefully. " +"Patch by Petter Strandmark." msgstr "" -#: ../../../build/NEWS:1013 +#: ../../../build/NEWS:1637 msgid "" "`bpo-34424 `__: Fix serialization of " "messages containing encoded strings when the policy.linesep is set to a " "multi-character string. Patch by Jens Troeger." msgstr "" -#: ../../../build/NEWS:1017 +#: ../../../build/NEWS:1641 msgid "" -"`bpo-33361 `__: Fix a bug in " -":class:`codecs.StreamRecoder` where seeking might leave old data in a buffer" -" and break subsequent read calls. Patch by Ammar Askar." +"`bpo-33361 `__: Fix a bug in :class:" +"`codecs.StreamRecoder` where seeking might leave old data in a buffer and " +"break subsequent read calls. Patch by Ammar Askar." msgstr "" -#: ../../../build/NEWS:1021 +#: ../../../build/NEWS:1645 msgid "" -"`bpo-31922 `__: " -":meth:`asyncio.AbstractEventLoop.create_datagram_endpoint`: Do not connect " -"UDP socket when broadcast is allowed. This allows to receive replies after a" -" UDP broadcast." +"`bpo-31922 `__: :meth:`asyncio." +"AbstractEventLoop.create_datagram_endpoint`: Do not connect UDP socket when " +"broadcast is allowed. This allows to receive replies after a UDP broadcast." msgstr "" -#: ../../../build/NEWS:1025 +#: ../../../build/NEWS:1649 msgid "" "`bpo-22102 `__: Added support for ZIP " "files with disks set to 0. Such files are commonly created by builtin tools " "on Windows when use ZIP64 extension. Patch by Francisco Facioni." msgstr "" -#: ../../../build/NEWS:1029 +#: ../../../build/NEWS:1653 msgid "" "`bpo-27141 `__: Added a ``__copy__()`` " "to ``collections.UserList`` and ``collections.UserDict`` in order to " "correctly implement shallow copying of the objects. Patch by Bar Harel." msgstr "" -#: ../../../build/NEWS:1033 +#: ../../../build/NEWS:1657 msgid "" -"`bpo-31829 `__: ``\\r``, ``\\0`` and " -"``\\x1a`` (end-of-file on Windows) are now escaped in protocol 0 pickles of " +"`bpo-31829 `__: ``\\r``, ``\\0`` and ``" +"\\x1a`` (end-of-file on Windows) are now escaped in protocol 0 pickles of " "Unicode strings. This allows to load them without loss from files open in " "text mode in Python 2." msgstr "" -#: ../../../build/NEWS:1037 +#: ../../../build/NEWS:1661 msgid "" -"`bpo-31292 `__: Fix ``setup.py check " -"--restructuredtext`` for files containing ``include`` directives." +"`bpo-31292 `__: Fix ``setup.py check --" +"restructuredtext`` for files containing ``include`` directives." msgstr "" -#: ../../../build/NEWS:1040 +#: ../../../build/NEWS:1664 msgid "" -"`bpo-23395 `__: " -"``_thread.interrupt_main()`` now avoids setting the Python error status if " -"the ``SIGINT`` signal is ignored or not handled by Python." +"`bpo-23395 `__: ``_thread." +"interrupt_main()`` now avoids setting the Python error status if the " +"``SIGINT`` signal is ignored or not handled by Python." msgstr "" -#: ../../../build/NEWS:1046 +#: ../../../build/NEWS:1670 msgid "" -"`bpo-34903 `__: Documented that in " -":meth:`datetime.datetime.strptime()`, the leading zero in some two-digit " -"formats is optional. Patch by Mike Gleen." +"`bpo-34903 `__: Documented that in :meth:" +"`datetime.datetime.strptime()`, the leading zero in some two-digit formats " +"is optional. Patch by Mike Gleen." msgstr "" -#: ../../../build/NEWS:1049 +#: ../../../build/NEWS:1673 msgid "" "`bpo-36984 `__: Improve version added " "references in ``typing`` module - by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:1052 +#: ../../../build/NEWS:1676 msgid "" "`bpo-36868 `__: What's new now mentions " "SSLContext.hostname_checks_common_name instead of SSLContext.host_flags." msgstr "" -#: ../../../build/NEWS:1055 +#: ../../../build/NEWS:1679 msgid "" "`bpo-36783 `__: Added C API " -"Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold" -" as per PEP 495. Patch by Edison Abahurire." +"Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold " +"as per PEP 495. Patch by Edison Abahurire." msgstr "" -#: ../../../build/NEWS:1059 +#: ../../../build/NEWS:1683 msgid "" -"`bpo-30840 `__: Document relative " -"imports" +"`bpo-30840 `__: Document relative imports" msgstr "" -#: ../../../build/NEWS:1061 +#: ../../../build/NEWS:1685 msgid "" -"`bpo-36523 `__: Add docstring for " -"io.IOBase.writelines()." +"`bpo-36523 `__: Add docstring for io." +"IOBase.writelines()." msgstr "" -#: ../../../build/NEWS:1063 +#: ../../../build/NEWS:1687 msgid "" "`bpo-36425 `__: New documentation " "translation: `Simplified Chinese `_." msgstr "" -#: ../../../build/NEWS:1066 +#: ../../../build/NEWS:1690 msgid "" "`bpo-36157 `__: Added Documention for " "PyInterpreterState_Main()." msgstr "" -#: ../../../build/NEWS:1068 +#: ../../../build/NEWS:1692 msgid "" "`bpo-36138 `__: Improve documentation " "about converting datetime.timedelta to scalars." msgstr "" -#: ../../../build/NEWS:1071 +#: ../../../build/NEWS:1695 msgid "" "`bpo-22865 `__: Add detail to the " "documentation on the `pty.spawn` function." msgstr "" -#: ../../../build/NEWS:1073 +#: ../../../build/NEWS:1697 msgid "" "`bpo-35581 `__: @typing.type_check_only " "now allows type stubs to mark functions and classes not available during " "runtime." msgstr "" -#: ../../../build/NEWS:1076 +#: ../../../build/NEWS:1700 msgid "" "`bpo-35564 `__: Explicitly set " "master_doc variable in conf.py for compliance with Sphinx 2.0" msgstr "" -#: ../../../build/NEWS:1079 +#: ../../../build/NEWS:1703 msgid "" "`bpo-10536 `__: Enhance the gettext " "docs. Patch by Éric Araujo" msgstr "" -#: ../../../build/NEWS:1081 +#: ../../../build/NEWS:1705 msgid "" "`bpo-32995 `__: Added the context " "variable in glossary." msgstr "" -#: ../../../build/NEWS:1083 +#: ../../../build/NEWS:1707 msgid "" "`bpo-33832 `__: Add glossary entry for " "'magic method'." msgstr "" -#: ../../../build/NEWS:1085 +#: ../../../build/NEWS:1709 msgid "" -"`bpo-33482 `__: Make " -"`codecs.StreamRecoder.writelines` take a list of bytes." +"`bpo-33482 `__: Make `codecs." +"StreamRecoder.writelines` take a list of bytes." msgstr "" -#: ../../../build/NEWS:1087 +#: ../../../build/NEWS:1711 msgid "" "`bpo-25735 `__: Added documentation for " "func factorial to indicate that returns integer values" msgstr "" -#: ../../../build/NEWS:1093 +#: ../../../build/NEWS:1717 msgid "" "`bpo-35998 `__: Avoid TimeoutError in " "test_asyncio: test_start_tls_server_1()" msgstr "" -#: ../../../build/NEWS:1095 +#: ../../../build/NEWS:1719 msgid "" -"`bpo-37153 `__: " -"``test_venv.test_mutiprocessing()`` now explicitly calls " -"``pool.terminate()`` to wait until the pool completes." +"`bpo-37153 `__: ``test_venv." +"test_mutiprocessing()`` now explicitly calls ``pool.terminate()`` to wait " +"until the pool completes." msgstr "" -#: ../../../build/NEWS:1098 +#: ../../../build/NEWS:1722 msgid "" "`bpo-37081 `__: Test with OpenSSL 1.1.1c" msgstr "" -#: ../../../build/NEWS:1100 +#: ../../../build/NEWS:1724 msgid "" "`bpo-36915 `__: The main regrtest " "process now always removes all temporary directories of worker processes " "even if they crash or if they are killed on KeyboardInterrupt (CTRL+c)." msgstr "" -#: ../../../build/NEWS:1104 +#: ../../../build/NEWS:1728 msgid "" -"`bpo-36719 `__: \"python3 -m test -jN " -"...\" now continues the execution of next tests when a worker process crash " -"(CHILD_ERROR state). Previously, the test suite stopped immediately. Use " -"--failfast to stop at the first error." +"`bpo-36719 `__: \"python3 -m test -jN ..." +"\" now continues the execution of next tests when a worker process crash " +"(CHILD_ERROR state). Previously, the test suite stopped immediately. Use --" +"failfast to stop at the first error." msgstr "" -#: ../../../build/NEWS:1108 +#: ../../../build/NEWS:1732 msgid "" -"`bpo-36816 `__: Update " -"Lib/test/selfsigned_pythontestdotnet.pem to match self-" -"signed.pythontest.net's new TLS certificate." +"`bpo-36816 `__: Update Lib/test/" +"selfsigned_pythontestdotnet.pem to match self-signed.pythontest.net's new " +"TLS certificate." msgstr "" -#: ../../../build/NEWS:1111 +#: ../../../build/NEWS:1735 msgid "" -"`bpo-35925 `__: Skip httplib and nntplib" -" networking tests when they would otherwise fail due to a modern OS or " -"distro with a default OpenSSL policy of rejecting connections to servers " -"with weak certificates." +"`bpo-35925 `__: Skip httplib and nntplib " +"networking tests when they would otherwise fail due to a modern OS or distro " +"with a default OpenSSL policy of rejecting connections to servers with weak " +"certificates." msgstr "" -#: ../../../build/NEWS:1115 +#: ../../../build/NEWS:1739 msgid "" "`bpo-36719 `__: regrtest now always " -"detects uncollectable objects. Previously, the check was only enabled by " -"``--findleaks``. The check now also works with ``-jN/--multiprocess N``. " -"``--findleaks`` becomes a deprecated alias to ``--fail-env-changed``." +"detects uncollectable objects. Previously, the check was only enabled by ``--" +"findleaks``. The check now also works with ``-jN/--multiprocess N``. ``--" +"findleaks`` becomes a deprecated alias to ``--fail-env-changed``." msgstr "" -#: ../../../build/NEWS:1120 +#: ../../../build/NEWS:1744 msgid "" "`bpo-36725 `__: When using " "mulitprocessing mode (-jN), regrtest now better reports errors if a worker " @@ -2278,28 +3426,28 @@ msgid "" "interrupted." msgstr "" -#: ../../../build/NEWS:1124 +#: ../../../build/NEWS:1748 msgid "" -"`bpo-36454 `__: Change " -"test_time.test_monotonic() to test only the lower bound of elapsed time " -"after a sleep command rather than the upper bound. This prevents unnecessary" -" test failures on slow buildbots. Patch by Victor Stinner." +"`bpo-36454 `__: Change test_time." +"test_monotonic() to test only the lower bound of elapsed time after a sleep " +"command rather than the upper bound. This prevents unnecessary test failures " +"on slow buildbots. Patch by Victor Stinner." msgstr "" -#: ../../../build/NEWS:1129 +#: ../../../build/NEWS:1753 msgid "" "`bpo-36629 `__: Fix " -"``test_imap4_host_default_value()`` of ``test_imaplib``: catch also " -":data:`errno.ENETUNREACH` error." +"``test_imap4_host_default_value()`` of ``test_imaplib``: catch also :data:" +"`errno.ENETUNREACH` error." msgstr "" -#: ../../../build/NEWS:1132 +#: ../../../build/NEWS:1756 msgid "" -"`bpo-36611 `__: Fix " -"``test_sys.test_getallocatedblocks()`` when :mod:`tracemalloc` is enabled." +"`bpo-36611 `__: Fix ``test_sys." +"test_getallocatedblocks()`` when :mod:`tracemalloc` is enabled." msgstr "" -#: ../../../build/NEWS:1135 +#: ../../../build/NEWS:1759 msgid "" "`bpo-36560 `__: Fix reference leak " "hunting in regrtest: compute also deltas (of reference count, allocated " @@ -2307,71 +3455,69 @@ msgid "" "everything is initialized before starting to hunt reference leaks." msgstr "" -#: ../../../build/NEWS:1140 +#: ../../../build/NEWS:1764 msgid "" "`bpo-36565 `__: Fix reference hunting " "(``python3 -m test -R 3:3``) when Python has no built-in abc module." msgstr "" -#: ../../../build/NEWS:1143 +#: ../../../build/NEWS:1767 msgid "" -"`bpo-36436 `__: Fix " -"``_testcapi.pymem_buffer_overflow()``: handle memory allocation failure." +"`bpo-36436 `__: Fix ``_testcapi." +"pymem_buffer_overflow()``: handle memory allocation failure." msgstr "" -#: ../../../build/NEWS:1149 +#: ../../../build/NEWS:1773 msgid "" -"`bpo-36605 `__: ``make tags`` and ``make" -" TAGS`` now also parse ``Modules/_io/*.c`` and ``Modules/_io/*.h``." +"`bpo-36605 `__: ``make tags`` and ``make " +"TAGS`` now also parse ``Modules/_io/*.c`` and ``Modules/_io/*.h``." msgstr "" -#: ../../../build/NEWS:1152 +#: ../../../build/NEWS:1776 msgid "" -"`bpo-36508 `__: ``python-config " -"--ldflags`` no longer includes flags of the ``LINKFORSHARED`` variable. The " +"`bpo-36508 `__: ``python-config --" +"ldflags`` no longer includes flags of the ``LINKFORSHARED`` variable. The " "``LINKFORSHARED`` variable must only be used to build executables." msgstr "" -#: ../../../build/NEWS:1159 +#: ../../../build/NEWS:1783 msgid "" "`bpo-34631 `__: Updated OpenSSL to " "1.1.1c in Windows installer" msgstr "" -#: ../../../build/NEWS:1161 +#: ../../../build/NEWS:1785 msgid "" -"`bpo-37267 `__: On Windows, " -":func:`os.dup` no longer creates an inheritable fd when handling a character" -" file." +"`bpo-37267 `__: On Windows, :func:`os." +"dup` no longer creates an inheritable fd when handling a character file." msgstr "" -#: ../../../build/NEWS:1164 +#: ../../../build/NEWS:1788 msgid "" "`bpo-36779 `__: Ensure ``time.tzname`` " -"is correct on Windows when the active code page is set to CP_UTF7 or " -"CP_UTF8." +"is correct on Windows when the active code page is set to CP_UTF7 or CP_UTF8." msgstr "" -#: ../../../build/NEWS:1167 +#: ../../../build/NEWS:1791 msgid "" "`bpo-36965 `__: include of " "STATUS_CONTROL_C_EXIT without depending on MSC compiler" msgstr "" -#: ../../../build/NEWS:1170 +#: ../../../build/NEWS:1794 msgid "" "`bpo-36649 `__: Remove trailing spaces " "for registry keys when installed via the Store." msgstr "" -#: ../../../build/NEWS:1173 +#: ../../../build/NEWS:1797 msgid "" "`bpo-34144 `__: Fixed activate.bat to " "correctly update codepage when chcp.com returns dots in output. Patch by " "Lorenz Mende." msgstr "" -#: ../../../build/NEWS:1176 +#: ../../../build/NEWS:1800 msgid "" "`bpo-35941 `__: enum_certificates " "function of the ssl module now returns certificates from all available " @@ -2379,50 +3525,50 @@ msgid "" "certificates from the system wide certificate store. This includes " "certificates from these certificate stores: local machine, local machine " "enterprise, local machine group policy, current user, current user group " -"policy, services, users. ssl.enum_crls() function is changed in the same way" -" to return all certificate revocation lists inside the windows certificate " +"policy, services, users. ssl.enum_crls() function is changed in the same way " +"to return all certificate revocation lists inside the windows certificate " "revocation list stores." msgstr "" -#: ../../../build/NEWS:1186 +#: ../../../build/NEWS:1810 msgid "" "`bpo-36441 `__: Fixes creating a venv " "when debug binaries are installed." msgstr "" -#: ../../../build/NEWS:1188 +#: ../../../build/NEWS:1812 msgid "" "`bpo-36312 `__: Fixed decoders for the " "following code pages: 50220, 50221, 50222, 50225, 50227, 50229, 57002 " "through 57011, 65000 and 42." msgstr "" -#: ../../../build/NEWS:1191 +#: ../../../build/NEWS:1815 msgid "" "`bpo-36010 `__: Add the venv standard " "library module to the nuget distribution for Windows." msgstr "" -#: ../../../build/NEWS:1194 +#: ../../../build/NEWS:1818 msgid "" "`bpo-34060 `__: Report system load when " "running test suite on Windows. Patch by Ammar Askar. Based on prior work by " "Jeremy Kloth." msgstr "" -#: ../../../build/NEWS:1200 +#: ../../../build/NEWS:1824 msgid "" "`bpo-35360 `__: Update macOS installer " "to use SQLite 3.28.0." msgstr "" -#: ../../../build/NEWS:1202 +#: ../../../build/NEWS:1826 msgid "" "`bpo-34631 `__: Updated OpenSSL to " "1.1.1c in macOS installer." msgstr "" -#: ../../../build/NEWS:1204 +#: ../../../build/NEWS:1828 msgid "" "`bpo-36231 `__: Support building Python " "on macOS without /usr/include installed. As of macOS 10.14, system header " @@ -2430,7 +3576,7 @@ msgid "" "Tools or the Xcode app." msgstr "" -#: ../../../build/NEWS:1208 +#: ../../../build/NEWS:1832 msgid "" "`bpo-34602 `__: Avoid failures setting " "macOS stack resource limit with resource.setrlimit. This reverts an earlier " @@ -2438,169 +3584,169 @@ msgid "" "non-default stack size when building the interpreter executable on macOS." msgstr "" -#: ../../../build/NEWS:1216 +#: ../../../build/NEWS:1840 msgid "" "`bpo-37321 `__: Both subprocess " "connection error messages now refer to the 'Startup failure' section of the " "IDLE doc." msgstr "" -#: ../../../build/NEWS:1219 +#: ../../../build/NEWS:1843 msgid "" -"`bpo-37177 `__: Properly 'attach' search" -" dialogs to their main window so that they behave like other dialogs and do " +"`bpo-37177 `__: Properly 'attach' search " +"dialogs to their main window so that they behave like other dialogs and do " "not get hidden behind their main window." msgstr "" -#: ../../../build/NEWS:1223 +#: ../../../build/NEWS:1847 msgid "" "`bpo-37039 `__: Adjust \"Zoom Height\" " -"to individual screens by momemtarily maximizing the window on first use with" -" a particular screen. Changing screen settings may invalidate the saved " +"to individual screens by momemtarily maximizing the window on first use with " +"a particular screen. Changing screen settings may invalidate the saved " "height. While a window is maximized, \"Zoom Height\" has no effect." msgstr "" -#: ../../../build/NEWS:1228 +#: ../../../build/NEWS:1852 msgid "" "`bpo-35763 `__: Make calltip reminder " "about '/' meaning positional-only less obtrusive by only adding it when " "there is room on the first line." msgstr "" -#: ../../../build/NEWS:1231 +#: ../../../build/NEWS:1855 msgid "" -"`bpo-5680 `__: Add 'Run... Customized' to" -" the Run menu to run a module with customized settings. Any 'command line " +"`bpo-5680 `__: Add 'Run... Customized' to " +"the Run menu to run a module with customized settings. Any 'command line " "arguments' entered are added to sys.argv. One can suppress the normal Shell " "main module restart." msgstr "" -#: ../../../build/NEWS:1235 +#: ../../../build/NEWS:1859 msgid "" -"`bpo-35610 `__: Replace now redundant " -".context_use_ps1 with .prompt_last_line. This finishes change started in " +"`bpo-35610 `__: Replace now redundant ." +"context_use_ps1 with .prompt_last_line. This finishes change started in " "`bpo-31858 `__." msgstr "" -#: ../../../build/NEWS:1238 +#: ../../../build/NEWS:1862 msgid "" "`bpo-37038 `__: Make idlelib.run " "runnable; add test clause." msgstr "" -#: ../../../build/NEWS:1240 +#: ../../../build/NEWS:1864 msgid "" -"`bpo-36958 `__: Print any argument other" -" than None or int passed to SystemExit or sys.exit()." +"`bpo-36958 `__: Print any argument other " +"than None or int passed to SystemExit or sys.exit()." msgstr "" -#: ../../../build/NEWS:1243 +#: ../../../build/NEWS:1867 msgid "" -"`bpo-13102 `__: When saving a file, call" -" os.fsync() so bits are flushed to e.g. USB drive." +"`bpo-13102 `__: When saving a file, call " +"os.fsync() so bits are flushed to e.g. USB drive." msgstr "" -#: ../../../build/NEWS:1246 +#: ../../../build/NEWS:1870 msgid "" "`bpo-36429 `__: Fix starting IDLE with " "pyshell. Add idlelib.pyshell alias at top; remove pyshell alias at bottom. " "Remove obsolete __name__=='__main__' command." msgstr "" -#: ../../../build/NEWS:1250 +#: ../../../build/NEWS:1874 msgid "" "`bpo-36405 `__: Use dict unpacking in " "idlelib." msgstr "" -#: ../../../build/NEWS:1252 +#: ../../../build/NEWS:1876 msgid "" "`bpo-36396 `__: Remove fgBg param of " "idlelib.config.GetHighlight(). This param was only used twice and changed " "the return type." msgstr "" -#: ../../../build/NEWS:1255 +#: ../../../build/NEWS:1879 msgid "" -"`bpo-23205 `__: For the grep module, add" -" tests for findfiles, refactor findfiles to be a module-level function, and " +"`bpo-23205 `__: For the grep module, add " +"tests for findfiles, refactor findfiles to be a module-level function, and " "refactor findfiles to use os.walk." msgstr "" -#: ../../../build/NEWS:1259 +#: ../../../build/NEWS:1883 msgid "" "`bpo-23216 `__: Add docstrings to IDLE " "search modules." msgstr "" -#: ../../../build/NEWS:1261 +#: ../../../build/NEWS:1885 msgid "" "`bpo-30348 `__: Increase test coverage " "of idlelib.autocomplete by 30%." msgstr "" -#: ../../../build/NEWS:1263 +#: ../../../build/NEWS:1887 msgid "" "`bpo-32411 `__: In browser.py, remove " "extraneous sorting by line number since dictionary was created in line " "number order." msgstr "" -#: ../../../build/NEWS:1269 +#: ../../../build/NEWS:1893 msgid "" "`bpo-14546 `__: Fix the argument " "handling in Tools/scripts/lll.py." msgstr "" -#: ../../../build/NEWS:1271 +#: ../../../build/NEWS:1895 msgid "" "`bpo-32217 `__: Fix freeze script on " "Windows." msgstr "" -#: ../../../build/NEWS:1276 +#: ../../../build/NEWS:1900 msgid "" -"`bpo-28805 `__: The " -":const:`METH_FASTCALL` calling convention has been documented." +"`bpo-28805 `__: The :const:" +"`METH_FASTCALL` calling convention has been documented." msgstr "" -#: ../../../build/NEWS:1279 +#: ../../../build/NEWS:1903 msgid "" -"`bpo-37170 `__: Fix the cast on error in" -" :c:func:`PyLong_AsUnsignedLongLongMask()`." +"`bpo-37170 `__: Fix the cast on error " +"in :c:func:`PyLong_AsUnsignedLongLongMask()`." msgstr "" -#: ../../../build/NEWS:1282 +#: ../../../build/NEWS:1906 msgid "" "`bpo-36389 `__: Change the value of " -"``CLEANBYTE``, ``DEADDYTE`` and ``FORBIDDENBYTE`` internal constants used by" -" debug hooks on Python memory allocators (:c:func:`PyMem_SetupDebugHooks` " +"``CLEANBYTE``, ``DEADDYTE`` and ``FORBIDDENBYTE`` internal constants used by " +"debug hooks on Python memory allocators (:c:func:`PyMem_SetupDebugHooks` " "function). Byte patterns ``0xCB``, ``0xDB`` and ``0xFB`` have been replaced " -"with ``0xCD``, ``0xDD`` and ``0xFD`` to use the same values than Windows CRT" -" debug ``malloc()`` and ``free()``." +"with ``0xCD``, ``0xDD`` and ``0xFD`` to use the same values than Windows CRT " +"debug ``malloc()`` and ``free()``." msgstr "" -#: ../../../build/NEWS:1291 +#: ../../../build/NEWS:1915 msgid "Python 3.7.3 final" msgstr "" -#: ../../../build/NEWS:1293 +#: ../../../build/NEWS:1917 msgid "*Release date: 2019-03-25*" msgstr "" -#: ../../../build/NEWS:1295 +#: ../../../build/NEWS:1919 msgid "There were no new changes in version 3.7.3." msgstr "" -#: ../../../build/NEWS:1300 +#: ../../../build/NEWS:1924 msgid "Python 3.7.3 release candidate 1" msgstr "" -#: ../../../build/NEWS:1302 +#: ../../../build/NEWS:1926 msgid "*Release date: 2019-03-12*" msgstr "" -#: ../../../build/NEWS:1307 +#: ../../../build/NEWS:1931 msgid "" "`bpo-36216 `__: Changes urlsplit() to " "raise ValueError when the URL contains characters that decompose under IDNA " @@ -2608,7 +3754,7 @@ msgid "" "parsed." msgstr "" -#: ../../../build/NEWS:1311 +#: ../../../build/NEWS:1935 msgid "" "`bpo-35746 `__: [CVE-2019-5010] Fix a " "NULL pointer deref in ssl module. The cert parser did not handle CRL " @@ -2617,16 +3763,15 @@ msgid "" "reported by Colin Read and Nicolas Edet of Cisco." msgstr "" -#: ../../../build/NEWS:1317 +#: ../../../build/NEWS:1941 msgid "" "`bpo-35121 `__: Don't send cookies of " "domain A without Domain attribute to domain B when domain A is a suffix " -"match of domain B while using a cookiejar with " -":class:`http.cookiejar.DefaultCookiePolicy` policy. Patch by Karthikeyan " -"Singaravelan." +"match of domain B while using a cookiejar with :class:`http.cookiejar." +"DefaultCookiePolicy` policy. Patch by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:1325 +#: ../../../build/NEWS:1949 msgid "" "`bpo-35942 `__: The error message " "emitted when returning invalid types from ``__fspath__`` in interfaces that " @@ -2634,53 +3779,53 @@ msgid "" "does explain the origin of the error." msgstr "" -#: ../../../build/NEWS:1329 +#: ../../../build/NEWS:1953 msgid "" "`bpo-35992 `__: Fix " "``__class_getitem__()`` not being called on a class with a custom non-" "subscriptable metaclass." msgstr "" -#: ../../../build/NEWS:1332 +#: ../../../build/NEWS:1956 msgid "" "`bpo-35991 `__: Fix a potential double " "free in Modules/_randommodule.c." msgstr "" -#: ../../../build/NEWS:1334 +#: ../../../build/NEWS:1958 msgid "" "`bpo-35961 `__: Fix a crash in " -"slice_richcompare(): use strong references rather than stolen references for" -" the two temporary internal tuples." +"slice_richcompare(): use strong references rather than stolen references for " +"the two temporary internal tuples." msgstr "" -#: ../../../build/NEWS:1337 +#: ../../../build/NEWS:1961 msgid "" "`bpo-31506 `__: Clarify the errors " "reported when ``object.__new__`` and ``object.__init__`` receive more than " "one argument. Contributed by Sanyam Khurana." msgstr "" -#: ../../../build/NEWS:1341 +#: ../../../build/NEWS:1965 msgid "" "`bpo-35720 `__: Fixed a minor memory " "leak in pymain_parse_cmdline_impl function in Modules/main.c" msgstr "" -#: ../../../build/NEWS:1344 +#: ../../../build/NEWS:1968 msgid "" -"`bpo-35623 `__: Fix a crash when sorting" -" very long lists. Patch by Stephan Hohe." +"`bpo-35623 `__: Fix a crash when sorting " +"very long lists. Patch by Stephan Hohe." msgstr "" -#: ../../../build/NEWS:1347 +#: ../../../build/NEWS:1971 msgid "" "`bpo-35214 `__: clang Memory Sanitizer " "build instrumentation was added to work around false positives from posix, " "socket, time, test_io, and test_faulthandler." msgstr "" -#: ../../../build/NEWS:1351 +#: ../../../build/NEWS:1975 msgid "" "`bpo-35560 `__: Fix an assertion error " "in :func:`format` in debug build for floating point formatting with \"n\" " @@ -2688,81 +3833,79 @@ msgid "" "by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:1355 +#: ../../../build/NEWS:1979 msgid "" -"`bpo-35552 `__: Format characters ``%s``" -" and ``%V`` in :c:func:`PyUnicode_FromFormat` and ``%s`` in " -":c:func:`PyBytes_FromFormat` no longer read memory past the limit if " -"*precision* is specified." +"`bpo-35552 `__: Format characters ``%s`` " +"and ``%V`` in :c:func:`PyUnicode_FromFormat` and ``%s`` in :c:func:" +"`PyBytes_FromFormat` no longer read memory past the limit if *precision* is " +"specified." msgstr "" -#: ../../../build/NEWS:1359 +#: ../../../build/NEWS:1983 msgid "" -"`bpo-35504 `__: Fix segfaults and " -":exc:`SystemError`\\ s when deleting certain attributes. Patch by Zackery " -"Spytz." +"`bpo-35504 `__: Fix segfaults and :exc:" +"`SystemError`\\ s when deleting certain attributes. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:1362 +#: ../../../build/NEWS:1986 msgid "" -"`bpo-33989 `__: Fix a possible crash in " -":meth:`list.sort` when sorting objects with ``ob_type->tp_richcompare == " +"`bpo-33989 `__: Fix a possible crash in :" +"meth:`list.sort` when sorting objects with ``ob_type->tp_richcompare == " "NULL``. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:1368 +#: ../../../build/NEWS:1992 msgid "" -"`bpo-35931 `__: The :mod:`pdb` ``debug``" -" command now gracefully handles all exceptions." +"`bpo-35931 `__: The :mod:`pdb` ``debug`` " +"command now gracefully handles all exceptions." msgstr "" -#: ../../../build/NEWS:1371 +#: ../../../build/NEWS:1995 msgid "" "`bpo-36251 `__: Fix format strings used " "for stderrprinter and re.Match reprs. Patch by Stephan Hohe." msgstr "" -#: ../../../build/NEWS:1374 +#: ../../../build/NEWS:1998 msgid "" "`bpo-35807 `__: Update ensurepip to " "install pip 19.0.3 and setuptools 40.8.0." msgstr "" -#: ../../../build/NEWS:1376 +#: ../../../build/NEWS:2000 msgid "" "`bpo-36179 `__: Fix two unlikely " -"reference leaks in _hashopenssl. The leaks only occur in out-of-memory " -"cases." +"reference leaks in _hashopenssl. The leaks only occur in out-of-memory cases." msgstr "" -#: ../../../build/NEWS:1379 +#: ../../../build/NEWS:2003 msgid "" -"`bpo-35178 `__: Ensure custom " -":func:`warnings.formatwarning` function can receive `line` as positional " -"argument. Based on patch by Tashrif Billah." +"`bpo-35178 `__: Ensure custom :func:" +"`warnings.formatwarning` function can receive `line` as positional argument. " +"Based on patch by Tashrif Billah." msgstr "" -#: ../../../build/NEWS:1382 +#: ../../../build/NEWS:2006 msgid "" "`bpo-36106 `__: Resolve potential name " "clash with libm's sinpi(). Patch by Dmitrii Pasechnik." msgstr "" -#: ../../../build/NEWS:1385 +#: ../../../build/NEWS:2009 msgid "" -"`bpo-35512 `__: " -":func:`unittest.mock.patch.dict` used as a decorator with string target " -"resolves the target during function call instead of during decorator " -"construction. Patch by Karthikeyan Singaravelan." +"`bpo-35512 `__: :func:`unittest.mock." +"patch.dict` used as a decorator with string target resolves the target " +"during function call instead of during decorator construction. Patch by " +"Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:1389 +#: ../../../build/NEWS:2013 msgid "" "`bpo-36091 `__: Clean up reference to " "async generator in Lib/types. Patch by Henry Chen." msgstr "" -#: ../../../build/NEWS:1392 +#: ../../../build/NEWS:2016 msgid "" "`bpo-35899 `__: Enum has been fixed to " "correctly handle empty strings and strings with non-Latin characters (ie. " @@ -2770,190 +3913,186 @@ msgid "" "by Stéphane Wirtel." msgstr "" -#: ../../../build/NEWS:1396 +#: ../../../build/NEWS:2020 msgid "" "`bpo-35918 `__: Removed broken " "``has_key`` method from multiprocessing.managers.SyncManager.dict. " "Contributed by Rémi Lapeyre." msgstr "" -#: ../../../build/NEWS:1399 +#: ../../../build/NEWS:2023 msgid "" -"`bpo-35960 `__: Fix " -":func:`dataclasses.field` throwing away empty mapping objects passed as " -"metadata." +"`bpo-35960 `__: Fix :func:`dataclasses." +"field` throwing away empty mapping objects passed as metadata." msgstr "" -#: ../../../build/NEWS:1402 +#: ../../../build/NEWS:2026 msgid "" "`bpo-35847 `__: RISC-V needed the " "CTYPES_PASS_BY_REF_HACK. Fixes ctypes Structure test_pass_by_value." msgstr "" -#: ../../../build/NEWS:1405 +#: ../../../build/NEWS:2029 msgid "" "`bpo-35780 `__: Fix lru_cache() errors " "arising in recursive, reentrant, or multi-threaded code. These errors could " "result in orphan links and in the cache being trapped in a state with fewer " -"than the specified maximum number of links. Fix handling of negative maxsize" -" which should have been treated as zero. Fix errors in toggling the \"full\"" -" status flag. Fix misordering of links when errors are encountered. Sync-up" -" the C code and pure Python code for the space saving path in functions with" -" a single positional argument. In this common case, the space overhead of an" -" lru cache entry is reduced by almost half. Fix counting of cache misses. " -"In error cases, the miss count was out of sync with the actual number of " -"times the underlying user function was called." +"than the specified maximum number of links. Fix handling of negative maxsize " +"which should have been treated as zero. Fix errors in toggling the \"full\" " +"status flag. Fix misordering of links when errors are encountered. Sync-up " +"the C code and pure Python code for the space saving path in functions with " +"a single positional argument. In this common case, the space overhead of an " +"lru cache entry is reduced by almost half. Fix counting of cache misses. In " +"error cases, the miss count was out of sync with the actual number of times " +"the underlying user function was called." msgstr "" -#: ../../../build/NEWS:1417 +#: ../../../build/NEWS:2041 msgid "" -"`bpo-23846 `__: " -":class:`asyncio.ProactorEventLoop` now catches and logs send errors when the" -" self-pipe is full." +"`bpo-23846 `__: :class:`asyncio." +"ProactorEventLoop` now catches and logs send errors when the self-pipe is " +"full." msgstr "" -#: ../../../build/NEWS:1420 +#: ../../../build/NEWS:2044 msgid "" "`bpo-34323 `__: :mod:`asyncio`: Enhance " "``IocpProactor.close()`` log: wait 1 second before the first log, then log " "every second. Log also the number of seconds since ``close()`` was called." msgstr "" -#: ../../../build/NEWS:1424 +#: ../../../build/NEWS:2048 msgid "" "`bpo-34294 `__: re module, fix wrong " -"capturing groups in rare cases. :func:`re.search`, :func:`re.findall`, " -":func:`re.sub` and other functions that scan through string looking for a " -"match, should reset capturing groups between two match attempts. Patch by Ma" -" Lin." +"capturing groups in rare cases. :func:`re.search`, :func:`re.findall`, :func:" +"`re.sub` and other functions that scan through string looking for a match, " +"should reset capturing groups between two match attempts. Patch by Ma Lin." msgstr "" -#: ../../../build/NEWS:1429 +#: ../../../build/NEWS:2053 msgid "" "`bpo-35717 `__: Fix KeyError exception " "raised when using enums and compile. Patch contributed by Rémi Lapeyre." msgstr "" -#: ../../../build/NEWS:1432 +#: ../../../build/NEWS:2056 msgid "" "`bpo-35699 `__: Fixed detection of " "Visual Studio Build Tools 2017 in distutils" msgstr "" -#: ../../../build/NEWS:1434 +#: ../../../build/NEWS:2058 msgid "" "`bpo-32710 `__: Fix memory leaks in " "asyncio ProactorEventLoop on overlapped operation failure." msgstr "" -#: ../../../build/NEWS:1437 +#: ../../../build/NEWS:2061 msgid "" "`bpo-32710 `__: Fix a memory leak in " "asyncio in the ProactorEventLoop when ``ReadFile()`` or ``WSASend()`` " "overlapped operation fail immediately: release the internal buffer." msgstr "" -#: ../../../build/NEWS:1441 +#: ../../../build/NEWS:2065 msgid "" -"`bpo-35682 `__: Fix " -"``asyncio.ProactorEventLoop.sendfile()``: don't attempt to set the result of" -" an internal future if it's already done." +"`bpo-35682 `__: Fix ``asyncio." +"ProactorEventLoop.sendfile()``: don't attempt to set the result of an " +"internal future if it's already done." msgstr "" -#: ../../../build/NEWS:1444 +#: ../../../build/NEWS:2068 msgid "" -"`bpo-35283 `__: Add a pending deprecated" -" warning for the :meth:`threading.Thread.isAlive` method. Patch by Dong-hee " +"`bpo-35283 `__: Add a pending deprecated " +"warning for the :meth:`threading.Thread.isAlive` method. Patch by Dong-hee " "Na." msgstr "" -#: ../../../build/NEWS:1447 +#: ../../../build/NEWS:2071 msgid "" "`bpo-35643 `__: Fixed a SyntaxWarning: " "invalid escape sequence in Modules/_sha3/cleanup.py. Patch by Mickaël " "Schoentgen." msgstr "" -#: ../../../build/NEWS:1450 +#: ../../../build/NEWS:2074 msgid "" "`bpo-35615 `__: :mod:`weakref`: Fix a " "RuntimeError when copying a WeakKeyDictionary or a WeakValueDictionary, due " "to some keys or values disappearing while iterating." msgstr "" -#: ../../../build/NEWS:1454 +#: ../../../build/NEWS:2078 msgid "" "`bpo-28503 `__: The `crypt` module now " "internally uses the `crypt_r()` library function instead of `crypt()` when " "available." msgstr "" -#: ../../../build/NEWS:1457 +#: ../../../build/NEWS:2081 msgid "" "`bpo-35121 `__: Don't set cookie for a " "request when the request path is a prefix match of the cookie's path " "attribute but doesn't end with \"/\". Patch by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:1461 +#: ../../../build/NEWS:2085 msgid "" "`bpo-35585 `__: Speed-up building enums " "by value, e.g. http.HTTPStatus(200)." msgstr "" -#: ../../../build/NEWS:1463 +#: ../../../build/NEWS:2087 msgid "" "`bpo-21478 `__: Calls to a child " -"function created with :func:`unittest.mock.create_autospec` should propagate" -" to the parent. Patch by Karthikeyan Singaravelan." +"function created with :func:`unittest.mock.create_autospec` should propagate " +"to the parent. Patch by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:1467 +#: ../../../build/NEWS:2091 msgid "" -"`bpo-35513 `__: " -":class:`~unittest.runner.TextTestRunner` of :mod:`unittest.runner` now uses " -":func:`time.perf_counter` rather than :func:`time.time` to measure the " -"execution time of a test: :func:`time.time` can go backwards, whereas " -":func:`time.perf_counter` is monotonic." +"`bpo-35513 `__: :class:`~unittest.runner." +"TextTestRunner` of :mod:`unittest.runner` now uses :func:`time.perf_counter` " +"rather than :func:`time.time` to measure the execution time of a test: :func:" +"`time.time` can go backwards, whereas :func:`time.perf_counter` is monotonic." msgstr "" -#: ../../../build/NEWS:1473 +#: ../../../build/NEWS:2097 msgid "" -"`bpo-35502 `__: Fixed reference leaks in" -" :class:`xml.etree.ElementTree.TreeBuilder` in case of unfinished building " +"`bpo-35502 `__: Fixed reference leaks " +"in :class:`xml.etree.ElementTree.TreeBuilder` in case of unfinished building " "of the tree (in particular when an error was raised during parsing XML)." msgstr "" -#: ../../../build/NEWS:1477 +#: ../../../build/NEWS:2101 msgid "" "`bpo-31446 `__: Copy command line that " "was passed to CreateProcessW since this function can change the content of " "the input buffer." msgstr "" -#: ../../../build/NEWS:1480 +#: ../../../build/NEWS:2104 msgid "" "`bpo-20239 `__: Allow repeated " "assignment deletion of :class:`unittest.mock.Mock` attributes. Patch by " "Pablo Galindo." msgstr "" -#: ../../../build/NEWS:1483 +#: ../../../build/NEWS:2107 msgid "" -"`bpo-17185 `__: Set ``__signature__`` on" -" mock for :mod:`inspect` to get signature. Patch by Karthikeyan " -"Singaravelan." +"`bpo-17185 `__: Set ``__signature__`` on " +"mock for :mod:`inspect` to get signature. Patch by Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:1486 +#: ../../../build/NEWS:2110 msgid "" -"`bpo-10496 `__: " -":func:`~distutils.utils.check_environ` of :mod:`distutils.utils` now catches" -" :exc:`KeyError` on calling :func:`pwd.getpwuid`: don't create the ``HOME`` " -"environment variable in this case." +"`bpo-10496 `__: :func:`~distutils.utils." +"check_environ` of :mod:`distutils.utils` now catches :exc:`KeyError` on " +"calling :func:`pwd.getpwuid`: don't create the ``HOME`` environment variable " +"in this case." msgstr "" -#: ../../../build/NEWS:1491 +#: ../../../build/NEWS:2115 msgid "" "`bpo-35066 `__: Previously, calling the " "strftime() method on a datetime object with a trailing '%' in the format " @@ -2963,151 +4102,151 @@ msgid "" "exception on a trailing '%'." msgstr "" -#: ../../../build/NEWS:1497 +#: ../../../build/NEWS:2121 msgid "" -"`bpo-24746 `__: Avoid stripping trailing" -" whitespace in doctest fancy diff. Orignial patch by R. David Murray & Jairo" -" Trad. Enhanced by Sanyam Khurana." +"`bpo-24746 `__: Avoid stripping trailing " +"whitespace in doctest fancy diff. Orignial patch by R. David Murray & Jairo " +"Trad. Enhanced by Sanyam Khurana." msgstr "" -#: ../../../build/NEWS:1501 +#: ../../../build/NEWS:2125 msgid "" "`bpo-35198 `__: Fix C++ extension " "compilation on AIX" msgstr "" -#: ../../../build/NEWS:1503 +#: ../../../build/NEWS:2127 msgid "" "`bpo-28441 `__: On Cygwin and MinGW, " "ensure that ``sys.executable`` always includes the full filename in the " "path, including the ``.exe`` suffix (unless it is a symbolic link)." msgstr "" -#: ../../../build/NEWS:1507 +#: ../../../build/NEWS:2131 msgid "" "`bpo-34572 `__: Fix C implementation of " "pickle.loads to use importlib's locking mechanisms, and thereby avoid using " "partially-loaded modules. Patch by Tim Burgess." msgstr "" -#: ../../../build/NEWS:1511 +#: ../../../build/NEWS:2135 msgid "" -"`bpo-33687 `__: Fix the call to " -"``os.chmod()`` for ``uu.decode()`` if a mode is given or decoded. Patch by " -"Timo Furrer." +"`bpo-33687 `__: Fix the call to ``os." +"chmod()`` for ``uu.decode()`` if a mode is given or decoded. Patch by Timo " +"Furrer." msgstr "" -#: ../../../build/NEWS:1514 +#: ../../../build/NEWS:2138 msgid "" -"`bpo-32146 `__: Document the interaction" -" between frozen executables and the spawn and forkserver start methods in " +"`bpo-32146 `__: Document the interaction " +"between frozen executables and the spawn and forkserver start methods in " "multiprocessing." msgstr "" -#: ../../../build/NEWS:1520 +#: ../../../build/NEWS:2144 msgid "" -"`bpo-36083 `__: Fix formatting of " -"--check-hash-based-pycs options in the manpage Synopsis." +"`bpo-36083 `__: Fix formatting of --" +"check-hash-based-pycs options in the manpage Synopsis." msgstr "" -#: ../../../build/NEWS:1523 +#: ../../../build/NEWS:2147 msgid "" "`bpo-34764 `__: Improve example of " "iter() with 2nd sentinel argument." msgstr "" -#: ../../../build/NEWS:1525 +#: ../../../build/NEWS:2149 msgid "" -"`bpo-21314 `__: A new entry was added to" -" the Core Language Section of the Programming FAQ, which explaines the usage" -" of slash(/) in the signature of a function. Patch by Lysandros Nikolaou" +"`bpo-21314 `__: A new entry was added to " +"the Core Language Section of the Programming FAQ, which explaines the usage " +"of slash(/) in the signature of a function. Patch by Lysandros Nikolaou" msgstr "" -#: ../../../build/NEWS:1529 +#: ../../../build/NEWS:2153 msgid "" -"`bpo-22062 `__: Update documentation and" -" docstrings for pathlib. Original patch by Mike Short." +"`bpo-22062 `__: Update documentation and " +"docstrings for pathlib. Original patch by Mike Short." msgstr "" -#: ../../../build/NEWS:1535 +#: ../../../build/NEWS:2159 msgid "" -"`bpo-36234 `__: " -"test_posix.PosixUidGidTests: add tests for invalid uid/gid type (str). " -"Initial patch written by David Malcolm." +"`bpo-36234 `__: test_posix." +"PosixUidGidTests: add tests for invalid uid/gid type (str). Initial patch " +"written by David Malcolm." msgstr "" -#: ../../../build/NEWS:1538 +#: ../../../build/NEWS:2162 msgid "" -"`bpo-29571 `__: Fix " -"``test_re.test_locale_flag()``: use ``locale.getpreferredencoding()`` " -"rather than ``locale.getlocale()`` to get the locale encoding. With some " -"locales, ``locale.getlocale()`` returns the wrong encoding. On Windows, set " -"temporarily the ``LC_CTYPE`` locale to the user preferred encoding to ensure" -" that it uses the ANSI code page, to be consistent with " -"``locale.getpreferredencoding()``." +"`bpo-29571 `__: Fix ``test_re." +"test_locale_flag()``: use ``locale.getpreferredencoding()`` rather than " +"``locale.getlocale()`` to get the locale encoding. With some locales, " +"``locale.getlocale()`` returns the wrong encoding. On Windows, set " +"temporarily the ``LC_CTYPE`` locale to the user preferred encoding to ensure " +"that it uses the ANSI code page, to be consistent with ``locale." +"getpreferredencoding()``." msgstr "" -#: ../../../build/NEWS:1545 +#: ../../../build/NEWS:2169 msgid "" "`bpo-36123 `__: Fix race condition in " "test_socket." msgstr "" -#: ../../../build/NEWS:1547 +#: ../../../build/NEWS:2171 msgid "" "`bpo-27313 `__: Avoid test_ttk_guionly " "ComboboxTest failure with macOS Cocoa Tk." msgstr "" -#: ../../../build/NEWS:1550 +#: ../../../build/NEWS:2174 msgid "" -"`bpo-36019 `__: Add " -"test.support.TEST_HTTP_URL and replace references of http://www.example.com " -"by this new constant. Contributed by Stéphane Wirtel." +"`bpo-36019 `__: Add test.support." +"TEST_HTTP_URL and replace references of http://www.example.com by this new " +"constant. Contributed by Stéphane Wirtel." msgstr "" -#: ../../../build/NEWS:1554 +#: ../../../build/NEWS:2178 msgid "" "`bpo-36037 `__: Fix test_ssl for strict " -"OpenSSL configuration like RHEL8 strict crypto policy. Use older TLS version" -" for minimum TLS version of the server SSL context if needed, to test TLS " +"OpenSSL configuration like RHEL8 strict crypto policy. Use older TLS version " +"for minimum TLS version of the server SSL context if needed, to test TLS " "version older than default minimum TLS version." msgstr "" -#: ../../../build/NEWS:1559 +#: ../../../build/NEWS:2183 msgid "" "`bpo-35505 `__: Make " "test_imap4_host_default_value independent on whether the local IMAP server " "is running." msgstr "" -#: ../../../build/NEWS:1562 +#: ../../../build/NEWS:2186 msgid "" -"`bpo-35917 `__: multiprocessing: provide" -" unit tests for SyncManager and SharedMemoryManager classes + all the " +"`bpo-35917 `__: multiprocessing: provide " +"unit tests for SyncManager and SharedMemoryManager classes + all the " "shareable types which are supposed to be supported by them. (patch by " "Giampaolo Rodola)" msgstr "" -#: ../../../build/NEWS:1566 +#: ../../../build/NEWS:2190 msgid "" -"`bpo-35772 `__: Fix sparse file tests of" -" test_tarfile on ppc64 with the tmpfs filesystem. Fix the function testing " -"if the filesystem supports sparse files: create a file which contains data " -"and \"holes\", instead of creating a file which contains no data. tmpfs " +"`bpo-35772 `__: Fix sparse file tests of " +"test_tarfile on ppc64 with the tmpfs filesystem. Fix the function testing if " +"the filesystem supports sparse files: create a file which contains data and " +"\"holes\", instead of creating a file which contains no data. tmpfs " "effective block size is a page size (tmpfs lives in the page cache). RHEL " "uses 64 KiB pages on aarch64, ppc64, ppc64le, only s390x and x86_64 use 4 " "KiB pages, whereas the test punch holes of 4 KiB." msgstr "" -#: ../../../build/NEWS:1574 +#: ../../../build/NEWS:2198 msgid "" "`bpo-35045 `__: Make ssl tests less " "strict and also accept TLSv1 as system default. The changes unbreaks " "test_min_max_version on Fedora 29." msgstr "" -#: ../../../build/NEWS:1577 +#: ../../../build/NEWS:2201 msgid "" "`bpo-31731 `__: Fix a race condition in " "``check_interrupted_write()`` of test_io: create directly the thread with " @@ -3116,204 +4255,203 @@ msgid "" "the signal is blocked." msgstr "" -#: ../../../build/NEWS:1582 +#: ../../../build/NEWS:2206 msgid "" "`bpo-35424 `__: Fix " -"test_multiprocessing_main_handling: use :class:`multiprocessing.Pool` with a" -" context manager and then explicitly join the pool." +"test_multiprocessing_main_handling: use :class:`multiprocessing.Pool` with a " +"context manager and then explicitly join the pool." msgstr "" -#: ../../../build/NEWS:1586 +#: ../../../build/NEWS:2210 msgid "" -"`bpo-35519 `__: Rename " -":mod:`test.bisect` module to :mod:`test.bisect_cmd` to avoid conflict with " -":mod:`bisect` module when running directly a test like ``./python " -"Lib/test/test_xmlrpc.py``." +"`bpo-35519 `__: Rename :mod:`test." +"bisect` module to :mod:`test.bisect_cmd` to avoid conflict with :mod:" +"`bisect` module when running directly a test like ``./python Lib/test/" +"test_xmlrpc.py``." msgstr "" -#: ../../../build/NEWS:1590 +#: ../../../build/NEWS:2214 msgid "" -"`bpo-35513 `__: Replace " -":func:`time.time` with :func:`time.monotonic` in tests to measure time " -"delta." +"`bpo-35513 `__: Replace :func:`time." +"time` with :func:`time.monotonic` in tests to measure time delta." msgstr "" -#: ../../../build/NEWS:1593 +#: ../../../build/NEWS:2217 msgid "" -"`bpo-34279 `__: " -":func:`test.support.run_unittest` no longer raise :exc:`TestDidNotRun` if " -"the test result contains skipped tests. The exception is now only raised if " -"no test have been run and no test have been skipped." +"`bpo-34279 `__: :func:`test.support." +"run_unittest` no longer raise :exc:`TestDidNotRun` if the test result " +"contains skipped tests. The exception is now only raised if no test have " +"been run and no test have been skipped." msgstr "" -#: ../../../build/NEWS:1598 +#: ../../../build/NEWS:2222 msgid "" "`bpo-35412 `__: Add testcase to " "``test_future4``: check unicode literal." msgstr "" -#: ../../../build/NEWS:1600 +#: ../../../build/NEWS:2224 msgid "" -"`bpo-26704 `__: Added test demonstrating" -" double-patching of an instance method. Patch by Anthony Sottile." +"`bpo-26704 `__: Added test demonstrating " +"double-patching of an instance method. Patch by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:1606 +#: ../../../build/NEWS:2230 msgid "" "`bpo-34691 `__: The _contextvars module " "is now built into the core Python library on Windows." msgstr "" -#: ../../../build/NEWS:1609 +#: ../../../build/NEWS:2233 msgid "" -"`bpo-35683 `__: Improved Azure Pipelines" -" build steps and now verifying layouts correctly" +"`bpo-35683 `__: Improved Azure Pipelines " +"build steps and now verifying layouts correctly" msgstr "" -#: ../../../build/NEWS:1612 +#: ../../../build/NEWS:2236 msgid "" "`bpo-35642 `__: Remove asynciomodule.c " "from pythoncore.vcxproj" msgstr "" -#: ../../../build/NEWS:1614 +#: ../../../build/NEWS:2238 msgid "" "`bpo-35550 `__: Fix incorrect Solaris " "#ifdef checks to look for __sun && __SVR4 instead of sun when compiling." msgstr "" -#: ../../../build/NEWS:1620 +#: ../../../build/NEWS:2244 msgid "" "`bpo-24643 `__: Fix name collisions due " "to ``#define timezone _timezone`` in PC/pyconfig.h." msgstr "" -#: ../../../build/NEWS:1623 +#: ../../../build/NEWS:2247 msgid "" "`bpo-35692 `__: ``pathlib`` no longer " "raises when checking file and directory existence on drives that are not " "ready" msgstr "" -#: ../../../build/NEWS:1626 +#: ../../../build/NEWS:2250 msgid "" "`bpo-35872 `__: Uses the base Python " "executable when invoking venv in a virtual environment" msgstr "" -#: ../../../build/NEWS:1629 +#: ../../../build/NEWS:2253 msgid "" "`bpo-35873 `__: Prevents venv paths " "being inherited by child processes" msgstr "" -#: ../../../build/NEWS:1631 +#: ../../../build/NEWS:2255 msgid "" "`bpo-35299 `__: Fix sysconfig detection " "of the source directory and distutils handling of pyconfig.h during PGO " "profiling" msgstr "" -#: ../../../build/NEWS:1634 +#: ../../../build/NEWS:2258 msgid "" "`bpo-32560 `__: The ``py`` launcher now " "forwards its ``STARTUPINFO`` structure to child processes." msgstr "" -#: ../../../build/NEWS:1637 +#: ../../../build/NEWS:2261 msgid "" -"`bpo-35854 `__: Fix EnvBuilder and " -"--symlinks in venv on Windows" +"`bpo-35854 `__: Fix EnvBuilder and --" +"symlinks in venv on Windows" msgstr "" -#: ../../../build/NEWS:1639 +#: ../../../build/NEWS:2263 msgid "" "`bpo-35811 `__: Avoid propagating venv " "settings when launching via py.exe" msgstr "" -#: ../../../build/NEWS:1641 +#: ../../../build/NEWS:2265 msgid "" "`bpo-35797 `__: Fix default executable " "used by the multiprocessing module" msgstr "" -#: ../../../build/NEWS:1643 +#: ../../../build/NEWS:2267 msgid "" -"`bpo-29734 `__: Fix handle leaks in " -"os.stat on Windows." +"`bpo-29734 `__: Fix handle leaks in os." +"stat on Windows." msgstr "" -#: ../../../build/NEWS:1645 +#: ../../../build/NEWS:2269 msgid "" "`bpo-35596 `__: Use unchecked PYCs for " "the embeddable distro to avoid zipimport restrictions." msgstr "" -#: ../../../build/NEWS:1648 +#: ../../../build/NEWS:2272 msgid "" "`bpo-35596 `__: Fix vcruntime140.dll " "being added to embeddable distro multiple times." msgstr "" -#: ../../../build/NEWS:1651 +#: ../../../build/NEWS:2275 msgid "" "`bpo-35402 `__: Update Windows build to " "use Tcl and Tk 8.6.9" msgstr "" -#: ../../../build/NEWS:1653 +#: ../../../build/NEWS:2277 msgid "" "`bpo-33316 `__: PyThread_release_lock " "always fails" msgstr "" -#: ../../../build/NEWS:1655 +#: ../../../build/NEWS:2279 msgid "" "`bpo-1104 `__: Correctly handle string " -"length in ``msilib.SummaryInfo.GetProperty()`` to prevent it from truncating" -" the last character." +"length in ``msilib.SummaryInfo.GetProperty()`` to prevent it from truncating " +"the last character." msgstr "" -#: ../../../build/NEWS:1662 +#: ../../../build/NEWS:2286 msgid "" "`bpo-36176 `__: Fix IDLE autocomplete & " -"calltip popup colors. Prevent conflicts with Linux dark themes (and slightly" -" darken calltip background)." +"calltip popup colors. Prevent conflicts with Linux dark themes (and slightly " +"darken calltip background)." msgstr "" -#: ../../../build/NEWS:1665 +#: ../../../build/NEWS:2289 msgid "" -"`bpo-36152 `__: Remove " -"colorizer.ColorDelegator.close_when_done and the corresponding argument of " -".close(). In IDLE, both have always been None or False since 2007." +"`bpo-36152 `__: Remove colorizer." +"ColorDelegator.close_when_done and the corresponding argument of .close(). " +"In IDLE, both have always been None or False since 2007." msgstr "" -#: ../../../build/NEWS:1669 +#: ../../../build/NEWS:2293 msgid "" "`bpo-32129 `__: Avoid blurry IDLE " "application icon on macOS with Tk 8.6. Patch by Kevin Walzer." msgstr "" -#: ../../../build/NEWS:1672 +#: ../../../build/NEWS:2296 msgid "" "`bpo-24310 `__: IDLE -- Document " "settings dialog font tab sample." msgstr "" -#: ../../../build/NEWS:1674 +#: ../../../build/NEWS:2298 msgid "" -"`bpo-36096 `__: Refactor class variables" -" to instance variables in colorizer." +"`bpo-36096 `__: Refactor class variables " +"to instance variables in colorizer." msgstr "" -#: ../../../build/NEWS:1676 +#: ../../../build/NEWS:2300 msgid "" "`bpo-35833 `__: Revise IDLE doc for " "control codes sent to Shell. Add a code example block." msgstr "" -#: ../../../build/NEWS:1679 +#: ../../../build/NEWS:2303 msgid "" "`bpo-35770 `__: IDLE macosx deletes " "Options => Configure IDLE. It previously deleted Window => Zoom Height by " @@ -3321,85 +4459,85 @@ msgid "" "dialog is accessed via Preferences on the IDLE menu." msgstr "" -#: ../../../build/NEWS:1684 +#: ../../../build/NEWS:2308 msgid "" "`bpo-35769 `__: Change IDLE's new file " "name from 'Untitled' to 'untitled'" msgstr "" -#: ../../../build/NEWS:1686 +#: ../../../build/NEWS:2310 msgid "" "`bpo-35689 `__: Add docstrings and " "unittests for colorizer.py." msgstr "" -#: ../../../build/NEWS:1688 +#: ../../../build/NEWS:2312 msgid "" -"`bpo-35660 `__: Fix imports in " -"idlelib.window." +"`bpo-35660 `__: Fix imports in idlelib." +"window." msgstr "" -#: ../../../build/NEWS:1690 +#: ../../../build/NEWS:2314 msgid "" "`bpo-35641 `__: Proper format `calltip` " "when the function has no docstring." msgstr "" -#: ../../../build/NEWS:1692 +#: ../../../build/NEWS:2316 msgid "" "`bpo-33987 `__: Use ttk Frame for ttk " "widgets." msgstr "" -#: ../../../build/NEWS:1694 +#: ../../../build/NEWS:2318 msgid "" "`bpo-34055 `__: Fix erroneous 'smart' " "indents and newlines in IDLE Shell." msgstr "" -#: ../../../build/NEWS:1696 +#: ../../../build/NEWS:2320 msgid "" -"`bpo-35591 `__: Find Selection now works" -" when selection not found." +"`bpo-35591 `__: Find Selection now works " +"when selection not found." msgstr "" -#: ../../../build/NEWS:1698 +#: ../../../build/NEWS:2322 msgid "" "`bpo-35196 `__: Speed up squeezer line " "counting." msgstr "" -#: ../../../build/NEWS:1700 +#: ../../../build/NEWS:2324 msgid "" "`bpo-35598 `__: Update config_key: use " "PEP 8 names and ttk widgets, make some objects global, and add tests." msgstr "" -#: ../../../build/NEWS:1703 +#: ../../../build/NEWS:2327 msgid "" "`bpo-28097 `__: Add Previous/Next " "History entries to Shell menu." msgstr "" -#: ../../../build/NEWS:1705 +#: ../../../build/NEWS:2329 msgid "" "`bpo-35208 `__: Squeezer now properly " "counts wrapped lines before newlines." msgstr "" -#: ../../../build/NEWS:1707 +#: ../../../build/NEWS:2331 msgid "" "`bpo-35555 `__: Gray out Code Context " "menu entry when it's not applicable." msgstr "" -#: ../../../build/NEWS:1709 +#: ../../../build/NEWS:2333 msgid "" -"`bpo-35521 `__: Document the IDLE editor" -" code context feature. Add some internal references within the IDLE doc." +"`bpo-35521 `__: Document the IDLE editor " +"code context feature. Add some internal references within the IDLE doc." msgstr "" -#: ../../../build/NEWS:1712 +#: ../../../build/NEWS:2336 msgid "" "`bpo-22703 `__: The Code Context menu " "label now toggles between Show/Hide Code Context. The Zoom Height menu now " @@ -3407,33 +4545,33 @@ msgid "" "menu to the Options menu." msgstr "" -#: ../../../build/NEWS:1719 +#: ../../../build/NEWS:2343 msgid "" "`bpo-35132 `__: Fix py-list and py-bt " "commands of python-gdb.py on gdb7." msgstr "" -#: ../../../build/NEWS:1724 +#: ../../../build/NEWS:2348 msgid "" -"`bpo-33817 `__: Fixed " -":c:func:`_PyBytes_Resize` for empty bytes objects." +"`bpo-33817 `__: Fixed :c:func:" +"`_PyBytes_Resize` for empty bytes objects." msgstr "" -#: ../../../build/NEWS:1728 +#: ../../../build/NEWS:2352 msgid "Python 3.7.2 final" msgstr "" -#: ../../../build/NEWS:1730 +#: ../../../build/NEWS:2354 msgid "*Release date: 2018-12-23*" msgstr "" -#: ../../../build/NEWS:1735 +#: ../../../build/NEWS:2359 msgid "" "`bpo-31715 `__: Associate ``.mjs`` file " "extension with ``application/javascript`` MIME Type." msgstr "" -#: ../../../build/NEWS:1741 +#: ../../../build/NEWS:2365 msgid "" "`bpo-35499 `__: ``make profile-opt`` no " "longer replaces ``CFLAGS_NODIST`` with ``CFLAGS``. It now adds profile-" @@ -3441,58 +4579,58 @@ msgid "" "``CFLAGS_NODIST`` flags are kept." msgstr "" -#: ../../../build/NEWS:1745 +#: ../../../build/NEWS:2369 msgid "" -"`bpo-35257 `__: Avoid leaking the linker" -" flags from Link Time Optimizations (LTO) into distutils when compiling C " +"`bpo-35257 `__: Avoid leaking the linker " +"flags from Link Time Optimizations (LTO) into distutils when compiling C " "extensions." msgstr "" -#: ../../../build/NEWS:1751 +#: ../../../build/NEWS:2375 msgid "" -"`bpo-35259 `__: Conditionally declare " -":c:func:`Py_FinalizeEx()` (new in 3.6) based on Py_LIMITED_API. Patch by " -"Arthur Neufeld." +"`bpo-35259 `__: Conditionally declare :c:" +"func:`Py_FinalizeEx()` (new in 3.6) based on Py_LIMITED_API. Patch by Arthur " +"Neufeld." msgstr "" -#: ../../../build/NEWS:1756 +#: ../../../build/NEWS:2380 msgid "Python 3.7.2 release candidate 1" msgstr "" -#: ../../../build/NEWS:1758 +#: ../../../build/NEWS:2382 msgid "*Release date: 2018-12-11*" msgstr "" -#: ../../../build/NEWS:1763 +#: ../../../build/NEWS:2387 msgid "" -"`bpo-34812 `__: The :option:`-I` command" -" line option (run Python in isolated mode) is now also copied by the " -":mod:`multiprocessing` and :mod:`distutils` modules when spawning child " +"`bpo-34812 `__: The :option:`-I` command " +"line option (run Python in isolated mode) is now also copied by the :mod:" +"`multiprocessing` and :mod:`distutils` modules when spawning child " "processes. Previously, only :option:`-E` and :option:`-s` options (enabled " "by :option:`-I`) were copied." msgstr "" -#: ../../../build/NEWS:1769 +#: ../../../build/NEWS:2393 msgid "" -"`bpo-34791 `__: The xml.sax and " -"xml.dom.domreg no longer use environment variables to override parser " +"`bpo-34791 `__: The xml.sax and xml.dom." +"domreg no longer use environment variables to override parser " "implementations when sys.flags.ignore_environment is set by -E or -I " "arguments." msgstr "" -#: ../../../build/NEWS:1776 +#: ../../../build/NEWS:2400 msgid "" "`bpo-35444 `__: Fixed error handling in " "pickling methods when fail to look up builtin \"getattr\"." msgstr "" -#: ../../../build/NEWS:1779 +#: ../../../build/NEWS:2403 msgid "" "`bpo-35436 `__: Fix various issues with " "memory allocation error handling. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:1782 +#: ../../../build/NEWS:2406 msgid "" "`bpo-35357 `__: Internal attributes' " "names of unittest.mock._Call and unittest.mock.MagicProxy (name, parent & " @@ -3500,41 +4638,41 @@ msgid "" "widely used object attributes. Fixed minor typo in test function name." msgstr "" -#: ../../../build/NEWS:1787 +#: ../../../build/NEWS:2411 msgid "" "`bpo-35372 `__: Fixed the code page " "decoder for input longer than 2 GiB containing undecodable bytes." msgstr "" -#: ../../../build/NEWS:1790 +#: ../../../build/NEWS:2414 msgid "" "`bpo-35336 `__: Fix " "PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the " "LC_CTYPE locale is \"C\"." msgstr "" -#: ../../../build/NEWS:1793 +#: ../../../build/NEWS:2417 msgid "" -"`bpo-33954 `__: For :meth:`str.format`, " -":meth:`float.__format__` and :meth:`complex.__format__` methods for non-" -"ASCII decimal point when using the \"n\" formatter." +"`bpo-33954 `__: For :meth:`str.format`, :" +"meth:`float.__format__` and :meth:`complex.__format__` methods for non-ASCII " +"decimal point when using the \"n\" formatter." msgstr "" -#: ../../../build/NEWS:1797 +#: ../../../build/NEWS:2421 msgid "" "`bpo-35269 `__: Fix a possible segfault " "involving a newly-created coroutine. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:1800 +#: ../../../build/NEWS:2424 msgid "" "`bpo-35214 `__: Fixed an out of bounds " -"memory access when parsing a truncated unicode escape sequence at the end of" -" a string such as ``'\\N'``. It would read one byte beyond the end of the " +"memory access when parsing a truncated unicode escape sequence at the end of " +"a string such as ``'\\N'``. It would read one byte beyond the end of the " "memory allocation." msgstr "" -#: ../../../build/NEWS:1804 +#: ../../../build/NEWS:2428 msgid "" "`bpo-35214 `__: The interpreter and " "extension modules have had annotations added so that they work properly " @@ -3543,7 +4681,7 @@ msgid "" "perform." msgstr "" -#: ../../../build/NEWS:1809 +#: ../../../build/NEWS:2433 msgid "" "`bpo-35193 `__: Fix an off by one error " "in the bytecode peephole optimizer where it could read bytes beyond the end " @@ -3551,54 +4689,53 @@ msgid "" "in every release of Python 3.6 and 3.7 until now." msgstr "" -#: ../../../build/NEWS:1814 +#: ../../../build/NEWS:2438 msgid "" "`bpo-29341 `__: Clarify in the " "docstrings of :mod:`os` methods that path-like objects are also accepted as " "input parameters." msgstr "" -#: ../../../build/NEWS:1817 +#: ../../../build/NEWS:2441 msgid "" "`bpo-35050 `__: :mod:`socket`: Fix off-" "by-one bug in length check for ``AF_ALG`` name and type." msgstr "" -#: ../../../build/NEWS:1820 +#: ../../../build/NEWS:2444 msgid "" -"`bpo-34974 `__: :class:`bytes` and " -":class:`bytearray` constructors no longer convert unexpected exceptions " -"(e.g. :exc:`MemoryError` and :exc:`KeyboardInterrupt`) to :exc:`TypeError`." +"`bpo-34974 `__: :class:`bytes` and :" +"class:`bytearray` constructors no longer convert unexpected exceptions (e." +"g. :exc:`MemoryError` and :exc:`KeyboardInterrupt`) to :exc:`TypeError`." msgstr "" -#: ../../../build/NEWS:1824 +#: ../../../build/NEWS:2448 msgid "" -"`bpo-34973 `__: Fixed crash in " -":func:`bytes` when the :class:`list` argument is mutated while it is " -"iterated." +"`bpo-34973 `__: Fixed crash in :func:" +"`bytes` when the :class:`list` argument is mutated while it is iterated." msgstr "" -#: ../../../build/NEWS:1827 +#: ../../../build/NEWS:2451 msgid "" "`bpo-34824 `__: Fix a possible null " "pointer dereference in Modules/_ssl.c. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:1830 +#: ../../../build/NEWS:2454 msgid "" "`bpo-1621 `__: Do not assume signed " "integer overflow behavior (C undefined behavior) when performing set hash " "table resizing." msgstr "" -#: ../../../build/NEWS:1836 +#: ../../../build/NEWS:2460 msgid "" "`bpo-35052 `__: Fix xml.dom.minidom " "cloneNode() on a document with an entity: pass the correct arguments to the " "user data handler of an entity." msgstr "" -#: ../../../build/NEWS:1839 +#: ../../../build/NEWS:2463 msgid "" "`bpo-35330 `__: When a :class:`Mock` " "instance was used to wrap an object, if `side_effect` is used in one of the " @@ -3607,7 +4744,7 @@ msgid "" "return_value." msgstr "" -#: ../../../build/NEWS:1844 +#: ../../../build/NEWS:2468 msgid "" "`bpo-34172 `__: Revert the fix for this " "issue previously released in 3.7.1 pending further investigation: Fix a " @@ -3615,72 +4752,72 @@ msgid "" "alive if it was deleted without being closed or terminated explicitly." msgstr "" -#: ../../../build/NEWS:1849 +#: ../../../build/NEWS:2473 msgid "" -"`bpo-10496 `__: " -":func:`posixpath.expanduser` now returns the input *path* unchanged if the " -"``HOME`` environment variable is not set and the current user has no home " -"directory (if the current user identifier doesn't exist in the password " -"database). This change fix the :mod:`site` module if the current user " -"doesn't exist in the password database (if the user has no home directory)." +"`bpo-10496 `__: :func:`posixpath." +"expanduser` now returns the input *path* unchanged if the ``HOME`` " +"environment variable is not set and the current user has no home directory " +"(if the current user identifier doesn't exist in the password database). " +"This change fix the :mod:`site` module if the current user doesn't exist in " +"the password database (if the user has no home directory)." msgstr "" -#: ../../../build/NEWS:1856 +#: ../../../build/NEWS:2480 msgid "" -"`bpo-35310 `__: Fix a bug in " -":func:`select.select` where, in some cases, the file descriptor sequences " -"were returned unmodified after a signal interruption, even though the file " +"`bpo-35310 `__: Fix a bug in :func:" +"`select.select` where, in some cases, the file descriptor sequences were " +"returned unmodified after a signal interruption, even though the file " "descriptors might not be ready yet. :func:`select.select` will now always " "return empty lists if a timeout has occurred. Patch by Oran Avraham." msgstr "" -#: ../../../build/NEWS:1862 +#: ../../../build/NEWS:2486 msgid "" "`bpo-35380 `__: Enable TCP_NODELAY on " "Windows for proactor asyncio event loop." msgstr "" -#: ../../../build/NEWS:1864 +#: ../../../build/NEWS:2488 msgid "" "`bpo-35341 `__: Add generic version of " "``collections.OrderedDict`` to the ``typing`` module. Patch by Ismo Toijala." msgstr "" -#: ../../../build/NEWS:1867 +#: ../../../build/NEWS:2491 msgid "" "`bpo-35371 `__: Fixed possible crash in " "``os.utime()`` on Windows when pass incorrect arguments." msgstr "" -#: ../../../build/NEWS:1870 +#: ../../../build/NEWS:2494 msgid "" "`bpo-27903 `__: Fix ``ResourceWarning`` " "in :func:`platform.dist` on SuSE and Caldera OpenLinux. Patch by Ville " "Skyttä." msgstr "" -#: ../../../build/NEWS:1873 +#: ../../../build/NEWS:2497 msgid "" "`bpo-35308 `__: Fix regression in " "``webbrowser`` where default browsers may be preferred over browsers in the " "``BROWSER`` environment variable." msgstr "" -#: ../../../build/NEWS:1876 +#: ../../../build/NEWS:2500 msgid "" -"`bpo-28604 `__: " -":func:`locale.localeconv` now sets temporarily the ``LC_CTYPE`` locale to " -"the ``LC_MONETARY`` locale if the two locales are different and monetary " -"strings are non-ASCII. This temporary change affects other threads." +"`bpo-28604 `__: :func:`locale." +"localeconv` now sets temporarily the ``LC_CTYPE`` locale to the " +"``LC_MONETARY`` locale if the two locales are different and monetary strings " +"are non-ASCII. This temporary change affects other threads." msgstr "" -#: ../../../build/NEWS:1881 +#: ../../../build/NEWS:2505 msgid "" "`bpo-35277 `__: Update ensurepip to " "install pip 18.1 and setuptools 40.6.2." msgstr "" -#: ../../../build/NEWS:1883 +#: ../../../build/NEWS:2507 msgid "" "`bpo-35226 `__: Recursively check " "arguments when testing for equality of :class:`unittest.mock.call` objects " @@ -3688,103 +4825,101 @@ msgid "" "in ``mock_calls`` is not possible." msgstr "" -#: ../../../build/NEWS:1888 +#: ../../../build/NEWS:2512 msgid "" "`bpo-29564 `__: The warnings module now " "suggests to enable tracemalloc if the source is specified, the tracemalloc " "module is available, but tracemalloc is not tracing memory allocations." msgstr "" -#: ../../../build/NEWS:1892 +#: ../../../build/NEWS:2516 msgid "" "`bpo-35189 `__: Modify the following " "fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, " "fnctl" msgstr "" -#: ../../../build/NEWS:1895 +#: ../../../build/NEWS:2519 msgid "" -"`bpo-35062 `__: Fix incorrect parsing of" -" :class:`_io.IncrementalNewlineDecoder`'s *translate* argument." +"`bpo-35062 `__: Fix incorrect parsing " +"of :class:`_io.IncrementalNewlineDecoder`'s *translate* argument." msgstr "" -#: ../../../build/NEWS:1898 +#: ../../../build/NEWS:2522 msgid "" -"`bpo-35079 `__: Improve " -"difflib.SequenceManager.get_matching_blocks doc by adding 'non-overlapping' " -"and changing '!=' to '<'." +"`bpo-35079 `__: Improve difflib." +"SequenceManager.get_matching_blocks doc by adding 'non-overlapping' and " +"changing '!=' to '<'." msgstr "" -#: ../../../build/NEWS:1901 +#: ../../../build/NEWS:2525 msgid "" -"`bpo-35017 `__: " -":meth:`socketserver.BaseServer.serve_forever` now exits immediately if it's " -":meth:`~socketserver.BaseServer.shutdown` method is called while it is " -"polling for new events." +"`bpo-35017 `__: :meth:`socketserver." +"BaseServer.serve_forever` now exits immediately if it's :meth:`~socketserver." +"BaseServer.shutdown` method is called while it is polling for new events." msgstr "" -#: ../../../build/NEWS:1905 +#: ../../../build/NEWS:2529 msgid "" "`bpo-31047 `__: Fix ``ntpath.abspath`` " "regression where it didn't remove a trailing separator on Windows. Patch by " "Tim Graham." msgstr "" -#: ../../../build/NEWS:1908 +#: ../../../build/NEWS:2532 msgid "" "`bpo-34794 `__: Fixed a leak in Tkinter " "when pass the Python wrapper around Tcl_Obj back to Tcl/Tk." msgstr "" -#: ../../../build/NEWS:1911 +#: ../../../build/NEWS:2535 msgid "" "`bpo-35008 `__: Fixed references leaks " -"when call the ``__setstate__()`` method of " -":class:`xml.etree.ElementTree.Element` in the C implementation for already " -"initialized element." +"when call the ``__setstate__()`` method of :class:`xml.etree.ElementTree." +"Element` in the C implementation for already initialized element." msgstr "" -#: ../../../build/NEWS:1915 +#: ../../../build/NEWS:2539 msgid "" -"`bpo-23420 `__: Verify the value for the" -" parameter '-s' of the cProfile CLI. Patch by Robert Kuska" +"`bpo-23420 `__: Verify the value for the " +"parameter '-s' of the cProfile CLI. Patch by Robert Kuska" msgstr "" -#: ../../../build/NEWS:1918 +#: ../../../build/NEWS:2542 msgid "" "`bpo-33947 `__: dataclasses now handle " "recursive reprs without raising RecursionError." msgstr "" -#: ../../../build/NEWS:1921 +#: ../../../build/NEWS:2545 msgid "" -"`bpo-16965 `__: The :term:`2to3` " -":2to3fixer:`execfile` fixer now opens the file with mode ``'rb'``. Patch by" -" Zackery Spytz." +"`bpo-16965 `__: The :term:" +"`2to3` :2to3fixer:`execfile` fixer now opens the file with mode ``'rb'``. " +"Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:1924 +#: ../../../build/NEWS:2548 msgid "" "`bpo-34966 `__: :mod:`pydoc` now " "supports aliases not only to methods defined in the end class, but also to " "inherited methods. The docstring is not duplicated for aliases." msgstr "" -#: ../../../build/NEWS:1928 +#: ../../../build/NEWS:2552 msgid "" "`bpo-34941 `__: Methods ``find()``, " -"``findtext()`` and ``findall()`` of the ``Element`` class in the " -":mod:`xml.etree.ElementTree` module are now able to find children which are " -"instances of ``Element`` subclasses." +"``findtext()`` and ``findall()`` of the ``Element`` class in the :mod:`xml." +"etree.ElementTree` module are now able to find children which are instances " +"of ``Element`` subclasses." msgstr "" -#: ../../../build/NEWS:1932 +#: ../../../build/NEWS:2556 msgid "" "`bpo-34936 `__: Fix ``TclError`` in " "``tkinter.Spinbox.selection_element()``. Patch by Juliette Monsel." msgstr "" -#: ../../../build/NEWS:1935 +#: ../../../build/NEWS:2559 msgid "" "`bpo-34866 `__: Adding " "``max_num_fields`` to ``cgi.FieldStorage`` to make DOS attacks harder by " @@ -3792,142 +4927,140 @@ msgid "" "``FieldStorage``." msgstr "" -#: ../../../build/NEWS:1939 +#: ../../../build/NEWS:2563 msgid "" -"`bpo-34022 `__: The " -":envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the " -"value of the *invalidation_mode* argument to :func:`py_compile.compile`, and" -" determines its default value instead." +"`bpo-34022 `__: The :envvar:" +"`SOURCE_DATE_EPOCH` environment variable no longer overrides the value of " +"the *invalidation_mode* argument to :func:`py_compile.compile`, and " +"determines its default value instead." msgstr "" -#: ../../../build/NEWS:1943 +#: ../../../build/NEWS:2567 msgid "" -"`bpo-34738 `__: ZIP files created by " -":mod:`distutils` will now include entries for directories." +"`bpo-34738 `__: ZIP files created by :" +"mod:`distutils` will now include entries for directories." msgstr "" -#: ../../../build/NEWS:1946 +#: ../../../build/NEWS:2570 msgid "" "`bpo-31177 `__: Fix bug that prevented " "using :meth:`reset_mock ` on mock instances " "with deleted attributes" msgstr "" -#: ../../../build/NEWS:1949 +#: ../../../build/NEWS:2573 msgid "" -"`bpo-34536 `__: `Enum._missing_`: raise" -" `ValueError` if None returned and `TypeError` if non-member is returned." +"`bpo-34536 `__: `Enum._missing_`: raise " +"`ValueError` if None returned and `TypeError` if non-member is returned." msgstr "" -#: ../../../build/NEWS:1952 +#: ../../../build/NEWS:2576 msgid "" -"`bpo-34604 `__: Fix possible mojibake in" -" the error message of `pwd.getpwnam` and `grp.getgrnam` using string " +"`bpo-34604 `__: Fix possible mojibake in " +"the error message of `pwd.getpwnam` and `grp.getgrnam` using string " "representation because of invisible characters or trailing whitespaces. " "Patch by William Grzybowski." msgstr "" -#: ../../../build/NEWS:1956 +#: ../../../build/NEWS:2580 msgid "" "`bpo-34574 `__: OrderedDict iterators " "are not exhausted during pickling anymore. Patch by Sergey Fedoseev." msgstr "" -#: ../../../build/NEWS:1959 +#: ../../../build/NEWS:2583 msgid "" -"`bpo-34052 `__: " -":meth:`sqlite3.Connection.create_aggregate`, " -":meth:`sqlite3.Connection.create_function`, " -":meth:`sqlite3.Connection.set_authorizer`, " -":meth:`sqlite3.Connection.set_progress_handler` methods raises TypeError " -"when unhashable objects are passed as callable. These methods now don't pass" -" such objects to SQLite API. Previous behavior could lead to segfaults. " -"Patch by Sergey Fedoseev." +"`bpo-34052 `__: :meth:`sqlite3." +"Connection.create_aggregate`, :meth:`sqlite3.Connection.create_function`, :" +"meth:`sqlite3.Connection.set_authorizer`, :meth:`sqlite3.Connection." +"set_progress_handler` methods raises TypeError when unhashable objects are " +"passed as callable. These methods now don't pass such objects to SQLite API. " +"Previous behavior could lead to segfaults. Patch by Sergey Fedoseev." msgstr "" -#: ../../../build/NEWS:1967 +#: ../../../build/NEWS:2591 msgid "" "`bpo-29877 `__: compileall: import " "ProcessPoolExecutor only when needed, preventing hangs on low resource " "platforms" msgstr "" -#: ../../../build/NEWS:1970 +#: ../../../build/NEWS:2594 msgid "" "`bpo-22005 `__: Implemented unpickling " -"instances of :class:`~datetime.datetime`, :class:`~datetime.date` and " -":class:`~datetime.time` pickled by Python 2. ``encoding='latin1'`` should be" -" used for successful decoding." +"instances of :class:`~datetime.datetime`, :class:`~datetime.date` and :class:" +"`~datetime.time` pickled by Python 2. ``encoding='latin1'`` should be used " +"for successful decoding." msgstr "" -#: ../../../build/NEWS:1978 +#: ../../../build/NEWS:2602 msgid "" "`bpo-35089 `__: Remove mention of " "``typing.io`` and ``typing.re``. Their types should be imported from " "``typing`` directly." msgstr "" -#: ../../../build/NEWS:1981 +#: ../../../build/NEWS:2605 msgid "" "`bpo-35038 `__: Fix the documentation " "about an unexisting `f_restricted` attribute in the frame object. Patch by " "Stéphane Wirtel" msgstr "" -#: ../../../build/NEWS:1984 +#: ../../../build/NEWS:2608 msgid "" "`bpo-35044 `__: Fix the documentation " "with the role ``exc`` for the appropriated exception. Patch by Stéphane " "Wirtel" msgstr "" -#: ../../../build/NEWS:1987 +#: ../../../build/NEWS:2611 msgid "" -"`bpo-35035 `__: Rename documentation for" -" :mod:`email.utils` to ``email.utils.rst``." +"`bpo-35035 `__: Rename documentation " +"for :mod:`email.utils` to ``email.utils.rst``." msgstr "" -#: ../../../build/NEWS:1990 +#: ../../../build/NEWS:2614 msgid "" -"`bpo-34967 `__: Use " -"app.add_object_type() instead of the deprecated Sphinx function " -"app.description_unit()" +"`bpo-34967 `__: Use app." +"add_object_type() instead of the deprecated Sphinx function app." +"description_unit()" msgstr "" -#: ../../../build/NEWS:1993 +#: ../../../build/NEWS:2617 msgid "" "`bpo-11233 `__: Create availability " "directive for documentation. Original patch by Georg Brandl." msgstr "" -#: ../../../build/NEWS:1996 +#: ../../../build/NEWS:2620 msgid "" -"`bpo-33594 `__: Document ``getargspec``," -" ``from_function`` and ``from_builtin`` as deprecated in their respective " +"`bpo-33594 `__: Document ``getargspec``, " +"``from_function`` and ``from_builtin`` as deprecated in their respective " "docstring, and include version since deprecation in DeprecationWarning " "message." msgstr "" -#: ../../../build/NEWS:2000 +#: ../../../build/NEWS:2624 msgid "" -"`bpo-32613 `__: Update the " -"faq/windows.html to use the py command from PEP 397 instead of python." +"`bpo-32613 `__: Update the faq/windows." +"html to use the py command from PEP 397 instead of python." msgstr "" -#: ../../../build/NEWS:2006 +#: ../../../build/NEWS:2630 msgid "" "`bpo-33725 `__: " "test_multiprocessing_fork may crash on recent versions of macOS. Until the " "issue is resolved, skip the test on macOS." msgstr "" -#: ../../../build/NEWS:2009 +#: ../../../build/NEWS:2633 msgid "" "`bpo-35352 `__: Modify test_asyncio to " "use the certificate set from the test directory." msgstr "" -#: ../../../build/NEWS:2012 +#: ../../../build/NEWS:2636 msgid "" "`bpo-35317 `__: Fix ``mktime()`` " "overflow error in ``test_email``: run " @@ -3935,7 +5068,7 @@ msgid "" "``test_localtime_daylight_false_dst_true()`` with a specific timezone." msgstr "" -#: ../../../build/NEWS:2016 +#: ../../../build/NEWS:2640 msgid "" "`bpo-21263 `__: After several reports " "that test_gdb does not work properly on macOS and since gdb is not shipped " @@ -3943,35 +5076,35 @@ msgid "" "been used to compile Python. Patch by Lysandros Nikolaou" msgstr "" -#: ../../../build/NEWS:2021 +#: ../../../build/NEWS:2645 msgid "" -"`bpo-34279 `__: regrtest issue a warning" -" when no tests have been executed in a particular test file. Also, a new " +"`bpo-34279 `__: regrtest issue a warning " +"when no tests have been executed in a particular test file. Also, a new " "final result state is issued if no test have been executed across all test " "files. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:2028 +#: ../../../build/NEWS:2652 msgid "" "`bpo-35296 `__: The Windows installer " "(MSI) now also install internal header files (``Include/internal/`` " "subdirectory)." msgstr "" -#: ../../../build/NEWS:2031 +#: ../../../build/NEWS:2655 msgid "" "`bpo-35351 `__: When building Python " "with clang and LTO, LTO flags are no longer passed into CFLAGS to build " "third-party C extensions through distutils." msgstr "" -#: ../../../build/NEWS:2035 +#: ../../../build/NEWS:2659 msgid "" "`bpo-35139 `__: Fix a compiler error " "when statically linking `pyexpat` in `Modules/Setup`." msgstr "" -#: ../../../build/NEWS:2038 +#: ../../../build/NEWS:2662 msgid "" "`bpo-35011 `__: Restores the use of " "pyexpatns.h to isolate our embedded copy of the expat C library so that its " @@ -3979,58 +5112,58 @@ msgid "" "application or other extension modules with their own version of libexpat." msgstr "" -#: ../../../build/NEWS:2043 +#: ../../../build/NEWS:2667 msgid "" "`bpo-28015 `__: Have --with-lto works " "correctly with clang." msgstr "" -#: ../../../build/NEWS:2045 +#: ../../../build/NEWS:2669 msgid "" "`bpo-33015 `__: Fix an undefined " -"behaviour in the pthread implementation of " -":c:func:`PyThread_start_new_thread`: add a function wrapper to always return" -" ``NULL``." +"behaviour in the pthread implementation of :c:func:" +"`PyThread_start_new_thread`: add a function wrapper to always return " +"``NULL``." msgstr "" -#: ../../../build/NEWS:2052 +#: ../../../build/NEWS:2676 msgid "" -"`bpo-35401 `__: Updates Windows build to" -" OpenSSL 1.1.0j" +"`bpo-35401 `__: Updates Windows build to " +"OpenSSL 1.1.0j" msgstr "" -#: ../../../build/NEWS:2054 +#: ../../../build/NEWS:2678 msgid "" -"`bpo-34977 `__: venv on Windows will now" -" use a python.exe redirector rather than copying the actual binaries from " -"the base environment." +"`bpo-34977 `__: venv on Windows will now " +"use a python.exe redirector rather than copying the actual binaries from the " +"base environment." msgstr "" -#: ../../../build/NEWS:2057 +#: ../../../build/NEWS:2681 msgid "" "`bpo-34977 `__: Adds support for " "building a Windows App Store package" msgstr "" -#: ../../../build/NEWS:2059 +#: ../../../build/NEWS:2683 msgid "" -"`bpo-35067 `__: Remove _distutils_findvs" -" module and use vswhere.exe instead." +"`bpo-35067 `__: Remove _distutils_findvs " +"module and use vswhere.exe instead." msgstr "" -#: ../../../build/NEWS:2061 +#: ../../../build/NEWS:2685 msgid "" "`bpo-34532 `__: Fixes exit code of list " "version arguments for py.exe." msgstr "" -#: ../../../build/NEWS:2063 +#: ../../../build/NEWS:2687 msgid "" "`bpo-32890 `__: Fix usage of " "GetLastError() instead of errno in os.execve() and os.truncate()." msgstr "" -#: ../../../build/NEWS:2069 +#: ../../../build/NEWS:2693 msgid "" "`bpo-35402 `__: Update macOS installer " "to use Tcl/Tk 8.6.9.1. [NOTE: This change was reverted for the released " @@ -4038,38 +5171,38 @@ msgid "" "For now, the installers provide Tcl/Tk 8.6.8.]" msgstr "" -#: ../../../build/NEWS:2074 +#: ../../../build/NEWS:2698 msgid "" "`bpo-35401 `__: Update macOS installer " "to use OpenSSL 1.1.0j." msgstr "" -#: ../../../build/NEWS:2076 +#: ../../../build/NEWS:2700 msgid "" "`bpo-35025 `__: Properly guard the use " "of the ``CLOCK_GETTIME`` et al. macros in ``timemodule`` on macOS." msgstr "" -#: ../../../build/NEWS:2079 +#: ../../../build/NEWS:2703 msgid "" "`bpo-24658 `__: On macOS, fix reading " "from and writing into a file with a size larger than 2 GiB." msgstr "" -#: ../../../build/NEWS:2085 +#: ../../../build/NEWS:2709 msgid "" "`bpo-35213 `__: Where appropriate, use " "'macOS' in idlelib." msgstr "" -#: ../../../build/NEWS:2087 +#: ../../../build/NEWS:2711 msgid "" "`bpo-34864 `__: On macOS, warn if the " -"system preference \"Prefer tabs when opening documents\" is set to " -"\"Always\"." +"system preference \"Prefer tabs when opening documents\" is set to \"Always" +"\"." msgstr "" -#: ../../../build/NEWS:2090 +#: ../../../build/NEWS:2714 msgid "" "`bpo-34864 `__: Document two IDLE on " "MacOS issues. The System Preferences Dock \"prefer tabs always\" setting " @@ -4077,26 +5210,26 @@ msgid "" "for Windows and Linux." msgstr "" -#: ../../../build/NEWS:2094 +#: ../../../build/NEWS:2718 msgid "" "`bpo-35202 `__: Remove unused imports " "from lib/idlelib" msgstr "" -#: ../../../build/NEWS:2096 +#: ../../../build/NEWS:2720 msgid "" "`bpo-33000 `__: Document that IDLE's " "shell has no line limit. A program that runs indefinitely can overfill " "memory." msgstr "" -#: ../../../build/NEWS:2099 +#: ../../../build/NEWS:2723 msgid "" -"`bpo-23220 `__: Explain how IDLE's Shell" -" displays output." +"`bpo-23220 `__: Explain how IDLE's Shell " +"displays output." msgstr "" -#: ../../../build/NEWS:2101 +#: ../../../build/NEWS:2725 msgid "" "`bpo-35099 `__: Improve the doc about " "IDLE running user code. The section is renamed from \"IDLE -- console " @@ -4104,406 +5237,403 @@ msgid "" "implications of using custom sys.stdxxx objects." msgstr "" -#: ../../../build/NEWS:2105 +#: ../../../build/NEWS:2729 msgid "" "`bpo-35097 `__: Add IDLE doc subsection " -"explaining editor windows. Topics include opening, title and status bar, " -".py* extension, and running." +"explaining editor windows. Topics include opening, title and status bar, ." +"py* extension, and running." msgstr "" -#: ../../../build/NEWS:2108 +#: ../../../build/NEWS:2732 msgid "" "`bpo-35093 `__: Document the IDLE " -"document viewer in the IDLE doc. Add a paragraph in \"Help and " -"preferences\", \"Help sources\" subsection." +"document viewer in the IDLE doc. Add a paragraph in \"Help and preferences" +"\", \"Help sources\" subsection." msgstr "" -#: ../../../build/NEWS:2111 +#: ../../../build/NEWS:2735 msgid "" -"`bpo-35088 `__: Update " -"idlelib.help.copy_string docstring. We now use git and backporting instead " -"of hg and forward merging." +"`bpo-35088 `__: Update idlelib.help." +"copy_string docstring. We now use git and backporting instead of hg and " +"forward merging." msgstr "" -#: ../../../build/NEWS:2114 +#: ../../../build/NEWS:2738 msgid "" "`bpo-35087 `__: Update idlelib help " "files for the current doc build. The main change is the elimination of " "chapter-section numbers." msgstr "" -#: ../../../build/NEWS:2120 +#: ../../../build/NEWS:2744 msgid "" "`bpo-34989 `__: python-gdb.py now " "handles errors on computing the line number of a Python frame." msgstr "" -#: ../../../build/NEWS:2126 +#: ../../../build/NEWS:2750 msgid "" -"`bpo-35322 `__: Fix memory leak in " -":c:func:`PyUnicode_EncodeLocale` and :c:func:`PyUnicode_EncodeFSDefault` on " +"`bpo-35322 `__: Fix memory leak in :c:" +"func:`PyUnicode_EncodeLocale` and :c:func:`PyUnicode_EncodeFSDefault` on " "error handling." msgstr "" -#: ../../../build/NEWS:2129 +#: ../../../build/NEWS:2753 msgid "" "`bpo-35296 `__: ``make install`` now " "also installs the internal API: ``Include/internal/*.h`` header files." msgstr "" -#: ../../../build/NEWS:2132 +#: ../../../build/NEWS:2756 msgid "" "`bpo-34725 `__: Adds " "_Py_SetProgramFullPath so embedders may override sys.executable" msgstr "" -#: ../../../build/NEWS:2137 +#: ../../../build/NEWS:2761 msgid "Python 3.7.1 final" msgstr "" -#: ../../../build/NEWS:2139 +#: ../../../build/NEWS:2763 msgid "*Release date: 2018-10-20*" msgstr "" -#: ../../../build/NEWS:2144 +#: ../../../build/NEWS:2768 msgid "" "`bpo-34970 `__: Protect tasks weak set " "manipulation in ``asyncio.all_tasks()``" msgstr "" -#: ../../../build/NEWS:2148 +#: ../../../build/NEWS:2772 msgid "Python 3.7.1 release candidate 2" msgstr "" -#: ../../../build/NEWS:2150 +#: ../../../build/NEWS:2774 msgid "*Release date: 2018-10-13*" msgstr "" -#: ../../../build/NEWS:2155 +#: ../../../build/NEWS:2779 msgid "" "`bpo-34879 `__: Fix a possible null " "pointer dereference in bytesobject.c. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2158 +#: ../../../build/NEWS:2782 msgid "" "`bpo-34854 `__: Fixed a crash in " "compiling string annotations containing a lambda with a keyword-only " "argument that doesn't have a default value." msgstr "" -#: ../../../build/NEWS:2161 +#: ../../../build/NEWS:2785 msgid "" "`bpo-34320 `__: Fix ``dict(od)`` didn't " "copy iteration order of OrderedDict." msgstr "" -#: ../../../build/NEWS:2166 +#: ../../../build/NEWS:2790 msgid "" -"`bpo-34769 `__: Fix for async generators" -" not finalizing when event loop is in debug mode and garbage collector runs " +"`bpo-34769 `__: Fix for async generators " +"not finalizing when event loop is in debug mode and garbage collector runs " "in another thread." msgstr "" -#: ../../../build/NEWS:2169 +#: ../../../build/NEWS:2793 msgid "" "`bpo-34922 `__: Fixed integer overflow " -"in the :meth:`~hashlib.shake.digest()` and " -":meth:`~hashlib.shake.hexdigest()` methods for the SHAKE algorithm in the " -":mod:`hashlib` module." +"in the :meth:`~hashlib.shake.digest()` and :meth:`~hashlib.shake." +"hexdigest()` methods for the SHAKE algorithm in the :mod:`hashlib` module." msgstr "" -#: ../../../build/NEWS:2173 +#: ../../../build/NEWS:2797 msgid "" "`bpo-34909 `__: Enum: fix grandchildren " "subclassing when parent mixed with concrete data types." msgstr "" -#: ../../../build/NEWS:2176 +#: ../../../build/NEWS:2800 msgid "" -"`bpo-34900 `__: Fixed " -":meth:`unittest.TestCase.debug` when used to call test methods with " -"subtests. Patch by Bruno Oliveira." +"`bpo-34900 `__: Fixed :meth:`unittest." +"TestCase.debug` when used to call test methods with subtests. Patch by " +"Bruno Oliveira." msgstr "" -#: ../../../build/NEWS:2179 +#: ../../../build/NEWS:2803 msgid "" "`bpo-34871 `__: Fix inspect module " "polluted ``sys.modules`` when parsing ``__text_signature__`` of callable." msgstr "" -#: ../../../build/NEWS:2182 +#: ../../../build/NEWS:2806 msgid "" -"`bpo-34872 `__: Fix self-cancellation in" -" C implementation of asyncio.Task" +"`bpo-34872 `__: Fix self-cancellation in " +"C implementation of asyncio.Task" msgstr "" -#: ../../../build/NEWS:2184 +#: ../../../build/NEWS:2808 msgid "" -"`bpo-34819 `__: Use a monotonic clock to" -" compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order" -" to prevent timeouts from deviating when the system clock is adjusted." +"`bpo-34819 `__: Use a monotonic clock to " +"compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order " +"to prevent timeouts from deviating when the system clock is adjusted." msgstr "" -#: ../../../build/NEWS:2188 +#: ../../../build/NEWS:2812 msgid "" -"`bpo-34521 `__: Use " -":func:`socket.CMSG_SPACE` to calculate ancillary data size instead of " -":func:`socket.CMSG_LEN` in :func:`multiprocessing.reduction.recvfds` as " -":rfc:`3542` requires the use of the former for portable applications." +"`bpo-34521 `__: Use :func:`socket." +"CMSG_SPACE` to calculate ancillary data size instead of :func:`socket." +"CMSG_LEN` in :func:`multiprocessing.reduction.recvfds` as :rfc:`3542` " +"requires the use of the former for portable applications." msgstr "" -#: ../../../build/NEWS:2193 +#: ../../../build/NEWS:2817 msgid "" -"`bpo-34334 `__: In " -":class:`QueueHandler`, clear `exc_text` from :class:`LogRecord` to prevent " +"`bpo-34334 `__: In :class:" +"`QueueHandler`, clear `exc_text` from :class:`LogRecord` to prevent " "traceback from being written twice." msgstr "" -#: ../../../build/NEWS:2196 +#: ../../../build/NEWS:2820 msgid "" "`bpo-6721 `__: Acquire the logging " "module's commonly used internal locks while fork()ing to avoid deadlocks in " "the child process." msgstr "" -#: ../../../build/NEWS:2199 +#: ../../../build/NEWS:2823 msgid "" "`bpo-34172 `__: Fix a reference issue " "inside multiprocessing.Pool that caused the pool to remain alive if it was " "deleted without being closed or terminated explicitly." msgstr "" -#: ../../../build/NEWS:2206 +#: ../../../build/NEWS:2830 msgid "" "`bpo-32174 `__: chm document displays " "non-ASCII charaters properly on some MBCS Windows systems." msgstr "" -#: ../../../build/NEWS:2212 +#: ../../../build/NEWS:2836 msgid "" "`bpo-32962 `__: Fixed test_gdb when " "Python is compiled with flags -mcet -fcf-protection -O0." msgstr "" -#: ../../../build/NEWS:2218 +#: ../../../build/NEWS:2842 msgid "" "`bpo-34370 `__: Revert to using the " "released Tk 8.6.8 with macOS installers instead of the Tk 8.6.x development " "snapshot used with 3.7.1rc1 and 3.6.7rc1. The snapshot introduced at least " -"one significant regression (`bpo-34927 " -"`__)." +"one significant regression (`bpo-34927 `__)." msgstr "" -#: ../../../build/NEWS:2226 +#: ../../../build/NEWS:2850 msgid "" -"`bpo-34910 `__: Ensure that " -":c:func:`PyObject_Print` always returns ``-1`` on error. Patch by Zackery " -"Spytz." +"`bpo-34910 `__: Ensure that :c:func:" +"`PyObject_Print` always returns ``-1`` on error. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2231 +#: ../../../build/NEWS:2855 msgid "Python 3.7.1 release candidate 1" msgstr "" -#: ../../../build/NEWS:2233 +#: ../../../build/NEWS:2857 msgid "*Release date: 2018-09-26*" msgstr "" -#: ../../../build/NEWS:2238 +#: ../../../build/NEWS:2862 msgid "" -"`bpo-17239 `__: The xml.sax and " -"xml.dom.minidom parsers no longer processes external entities by default. " -"External DTD and ENTITY declarations no longer load files or create network " +"`bpo-17239 `__: The xml.sax and xml.dom." +"minidom parsers no longer processes external entities by default. External " +"DTD and ENTITY declarations no longer load files or create network " "connections." msgstr "" -#: ../../../build/NEWS:2242 +#: ../../../build/NEWS:2866 msgid "" "`bpo-34623 `__: CVE-2018-14647: The C " -"accelerated _elementtree module now initializes hash randomization salt from" -" _Py_HashSecret instead of libexpat's default CSPRNG." +"accelerated _elementtree module now initializes hash randomization salt from " +"_Py_HashSecret instead of libexpat's default CSPRNG." msgstr "" -#: ../../../build/NEWS:2246 +#: ../../../build/NEWS:2870 msgid "" "`bpo-34405 `__: Updated to OpenSSL " "1.1.0i for Windows builds." msgstr "" -#: ../../../build/NEWS:2248 +#: ../../../build/NEWS:2872 msgid "" "`bpo-33871 `__: Fixed sending the part " "of the file in :func:`os.sendfile` on macOS. Using the *trailers* argument " "could cause sending more bytes from the input file than was specified." msgstr "" -#: ../../../build/NEWS:2252 +#: ../../../build/NEWS:2876 msgid "" "`bpo-32533 `__: Fixed thread-safety of " "error handling in _ssl." msgstr "" -#: ../../../build/NEWS:2257 +#: ../../../build/NEWS:2881 msgid "" "`bpo-34783 `__: Fix a crash with musl " "libc (on Alpine Linux) when the script filename specified on the command " "line doesn't exist." msgstr "" -#: ../../../build/NEWS:2260 +#: ../../../build/NEWS:2884 msgid "" -"`bpo-34762 `__: Fix contextvars C API to" -" use PyObject* pointer types." +"`bpo-34762 `__: Fix contextvars C API to " +"use PyObject* pointer types." msgstr "" -#: ../../../build/NEWS:2262 +#: ../../../build/NEWS:2886 msgid "" "`bpo-34735 `__: Fix a memory leak in " "Modules/timemodule.c. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2265 +#: ../../../build/NEWS:2889 msgid "" -"`bpo-34588 `__: Fix an off-by-one in the" -" recursive call pruning feature of traceback formatting." +"`bpo-34588 `__: Fix an off-by-one in the " +"recursive call pruning feature of traceback formatting." msgstr "" -#: ../../../build/NEWS:2268 +#: ../../../build/NEWS:2892 msgid "" "`bpo-34485 `__: Standard streams like " -"sys.stdout now use the \"surrogateescape\" error handler, instead of " -"\"strict\", on the POSIX locale (when the C locale is not coerced and the " -"UTF-8 Mode is disabled)." +"sys.stdout now use the \"surrogateescape\" error handler, instead of \"strict" +"\", on the POSIX locale (when the C locale is not coerced and the UTF-8 Mode " +"is disabled)." msgstr "" -#: ../../../build/NEWS:2272 +#: ../../../build/NEWS:2896 msgid "" -"`bpo-34485 `__: Fix the error handler of" -" standard streams like sys.stdout: PYTHONIOENCODING=\":\" is now ignored " +"`bpo-34485 `__: Fix the error handler of " +"standard streams like sys.stdout: PYTHONIOENCODING=\":\" is now ignored " "instead of setting the error handler to \"strict\"." msgstr "" -#: ../../../build/NEWS:2276 +#: ../../../build/NEWS:2900 msgid "" "`bpo-34527 `__: On FreeBSD, " "Py_DecodeLocale() and Py_EncodeLocale() now also forces the ASCII encoding " -"if the LC_CTYPE locale is \"POSIX\", not only if the LC_CTYPE locale is " -"\"C\"." +"if the LC_CTYPE locale is \"POSIX\", not only if the LC_CTYPE locale is \"C" +"\"." msgstr "" -#: ../../../build/NEWS:2280 +#: ../../../build/NEWS:2904 msgid "" "`bpo-34527 `__: The UTF-8 Mode is now " "also enabled by the \"POSIX\" locale, not only by the \"C\" locale." msgstr "" -#: ../../../build/NEWS:2283 +#: ../../../build/NEWS:2907 msgid "" "`bpo-34400 `__: Fix undefined behavior " "in parsetok.c. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2285 +#: ../../../build/NEWS:2909 msgid "" "`bpo-34377 `__: Update valgrind " "suppression list to use ``_PyObject_Free``/``_PyObject_Realloc`` instead of " "``PyObject_Free``/``PyObject_Realloc``." msgstr "" -#: ../../../build/NEWS:2289 +#: ../../../build/NEWS:2913 msgid "" "`bpo-34170 `__: -X dev: it is now " "possible to override the memory allocator using PYTHONMALLOC even if the " "developer mode is enabled." msgstr "" -#: ../../../build/NEWS:2292 +#: ../../../build/NEWS:2916 msgid "" "`bpo-34126 `__: Fix crashes when " "profiling certain invalid calls of unbound methods. Patch by Jeroen Demeyer." msgstr "" -#: ../../../build/NEWS:2295 +#: ../../../build/NEWS:2919 msgid "" "`bpo-24618 `__: Fixed reading invalid " "memory when create the code object with too small varnames tuple or too " "large argument counts." msgstr "" -#: ../../../build/NEWS:2298 +#: ../../../build/NEWS:2922 msgid "" -"`bpo-34068 `__: In " -":meth:`io.IOBase.close`, ensure that the :attr:`~io.IOBase.closed` attribute" -" is not set with a live exception. Patch by Zackery Spytz and Serhiy " -"Storchaka." +"`bpo-34068 `__: In :meth:`io.IOBase." +"close`, ensure that the :attr:`~io.IOBase.closed` attribute is not set with " +"a live exception. Patch by Zackery Spytz and Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:2302 +#: ../../../build/NEWS:2926 msgid "" "`bpo-34087 `__: Fix buffer overflow " "while converting unicode to numeric values." msgstr "" -#: ../../../build/NEWS:2304 +#: ../../../build/NEWS:2928 msgid "" "`bpo-34080 `__: Fixed a memory leak in " "the compiler when it raised some uncommon errors during tokenizing." msgstr "" -#: ../../../build/NEWS:2307 +#: ../../../build/NEWS:2931 msgid "" -"`bpo-34066 `__: Disabled interruption by" -" Ctrl-C between calling ``open()`` and entering a **with** block in ``with " +"`bpo-34066 `__: Disabled interruption by " +"Ctrl-C between calling ``open()`` and entering a **with** block in ``with " "open()``." msgstr "" -#: ../../../build/NEWS:2310 +#: ../../../build/NEWS:2934 msgid "" "`bpo-34042 `__: Fix dict.copy() to " "maintain correct total refcount (as reported by sys.gettotalrefcount())." msgstr "" -#: ../../../build/NEWS:2313 +#: ../../../build/NEWS:2937 msgid "" -"`bpo-33985 `__: Implement " -"contextvars.ContextVar.name attribute." +"`bpo-33985 `__: Implement contextvars." +"ContextVar.name attribute." msgstr "" -#: ../../../build/NEWS:2315 +#: ../../../build/NEWS:2939 msgid "" "`bpo-33956 `__: Update vendored Expat " "library copy to version 2.2.5." msgstr "" -#: ../../../build/NEWS:2317 +#: ../../../build/NEWS:2941 msgid "" -"`bpo-24596 `__: Decref the module object" -" in :c:func:`PyRun_SimpleFileExFlags` before calling " -":c:func:`PyErr_Print()`. Patch by Zackery Spytz." +"`bpo-24596 `__: Decref the module object " +"in :c:func:`PyRun_SimpleFileExFlags` before calling :c:func:" +"`PyErr_Print()`. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2320 +#: ../../../build/NEWS:2944 msgid "" "`bpo-33451 `__: Close directly executed " "pyc files before calling ``PyEval_EvalCode()``." msgstr "" -#: ../../../build/NEWS:2323 +#: ../../../build/NEWS:2947 msgid "" -"`bpo-33824 `__: Fix \"LC_ALL=C python3.7" -" -V\": reset properly the command line parser when the encoding changes " -"after reading the Python configuration." +"`bpo-33824 `__: Fix \"LC_ALL=C python3.7 " +"-V\": reset properly the command line parser when the encoding changes after " +"reading the Python configuration." msgstr "" -#: ../../../build/NEWS:2326 +#: ../../../build/NEWS:2950 msgid "" "`bpo-25750 `__: Fix rare Python crash " -"due to bad refcounting in ``type_getattro()`` if a descriptor deletes itself" -" from the class. Patch by Jeroen Demeyer." +"due to bad refcounting in ``type_getattro()`` if a descriptor deletes itself " +"from the class. Patch by Jeroen Demeyer." msgstr "" -#: ../../../build/NEWS:2330 +#: ../../../build/NEWS:2954 msgid "" "`bpo-31902 `__: Fix the ``col_offset`` " "attribute for ast nodes ``ast.AsyncFor``, ``ast.AsyncFunctionDef``, and " @@ -4511,129 +5641,129 @@ msgid "" "``async``." msgstr "" -#: ../../../build/NEWS:2334 +#: ../../../build/NEWS:2958 msgid "" "`bpo-25862 `__: Fix assertion failures " "in the ``tell()`` method of ``io.TextIOWrapper``. Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2337 +#: ../../../build/NEWS:2961 msgid "" -"`bpo-31577 `__: Fix a crash in " -"`os.utime()` in case of a bad ns argument. Patch by Oren Milman." +"`bpo-31577 `__: Fix a crash in `os." +"utime()` in case of a bad ns argument. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:2343 +#: ../../../build/NEWS:2967 msgid "" "`bpo-29577 `__: Support multiple mixin " "classes when creating Enums." msgstr "" -#: ../../../build/NEWS:2345 +#: ../../../build/NEWS:2969 msgid "" -"`bpo-34670 `__: Add " -"SSLContext.post_handshake_auth and SSLSocket.verify_client_post_handshake " -"for TLS 1.3's post handshake authentication feature." +"`bpo-34670 `__: Add SSLContext." +"post_handshake_auth and SSLSocket.verify_client_post_handshake for TLS 1.3's " +"post handshake authentication feature." msgstr "" -#: ../../../build/NEWS:2349 +#: ../../../build/NEWS:2973 msgid "" "`bpo-34658 `__: Fix a rare interpreter " -"unhandled exception state SystemError only seen when using subprocess with a" -" preexec_fn while an after_parent handler has been registered with " -"os.register_at_fork and the fork system call fails." +"unhandled exception state SystemError only seen when using subprocess with a " +"preexec_fn while an after_parent handler has been registered with os." +"register_at_fork and the fork system call fails." msgstr "" -#: ../../../build/NEWS:2354 +#: ../../../build/NEWS:2978 msgid "" -"`bpo-34652 `__: Ensure :func:`os.lchmod`" -" is never defined on Linux." +"`bpo-34652 `__: Ensure :func:`os.lchmod` " +"is never defined on Linux." msgstr "" -#: ../../../build/NEWS:2356 +#: ../../../build/NEWS:2980 msgid "" -"`bpo-34363 `__: dataclasses.asdict() and" -" .astuple() now handle namedtuples correctly." +"`bpo-34363 `__: dataclasses.asdict() " +"and .astuple() now handle namedtuples correctly." msgstr "" -#: ../../../build/NEWS:2359 +#: ../../../build/NEWS:2983 msgid "" "`bpo-34625 `__: Update vendorized expat " "library version to 2.2.6." msgstr "" -#: ../../../build/NEWS:2361 +#: ../../../build/NEWS:2985 msgid "" "`bpo-34621 `__: Fix un/pickling " "compatbility of uuid.UUID objects with older versions of Python (<3.7)." msgstr "" -#: ../../../build/NEWS:2364 +#: ../../../build/NEWS:2988 msgid "" -"`bpo-32270 `__: The subprocess module no" -" longer mistakenly closes redirected fds even when they were in pass_fds " -"when outside of the default {0, 1, 2} set." +"`bpo-32270 `__: The subprocess module no " +"longer mistakenly closes redirected fds even when they were in pass_fds when " +"outside of the default {0, 1, 2} set." msgstr "" -#: ../../../build/NEWS:2368 +#: ../../../build/NEWS:2992 msgid "" -"`bpo-34610 `__: Fixed iterator of " -":class:`multiprocessing.managers.DictProxy`." +"`bpo-34610 `__: Fixed iterator of :class:" +"`multiprocessing.managers.DictProxy`." msgstr "" -#: ../../../build/NEWS:2370 +#: ../../../build/NEWS:2994 msgid "" "`bpo-34421 `__: Fix distutils logging " "for non-ASCII strings. This caused installation issues on Windows." msgstr "" -#: ../../../build/NEWS:2373 +#: ../../../build/NEWS:2997 msgid "" -"`bpo-34604 `__: Fix possible mojibake in" -" the error message of `pwd.getpwnam` and `grp.getgrnam`. Patch by William " +"`bpo-34604 `__: Fix possible mojibake in " +"the error message of `pwd.getpwnam` and `grp.getgrnam`. Patch by William " "Grzybowski." msgstr "" -#: ../../../build/NEWS:2376 +#: ../../../build/NEWS:3000 msgid "" -"`bpo-34530 `__: " -"``distutils.spawn.find_executable()`` now falls back on :data:`os.defpath` " -"if the ``PATH`` environment variable is not set." +"`bpo-34530 `__: ``distutils.spawn." +"find_executable()`` now falls back on :data:`os.defpath` if the ``PATH`` " +"environment variable is not set." msgstr "" -#: ../../../build/NEWS:2379 +#: ../../../build/NEWS:3003 msgid "" -"`bpo-34282 `__: Fix enum members getting" -" shadowed by parent attributes." +"`bpo-34282 `__: Fix enum members getting " +"shadowed by parent attributes." msgstr "" -#: ../../../build/NEWS:2381 +#: ../../../build/NEWS:3005 msgid "" "`bpo-34563 `__: On Windows, fix " "multiprocessing.Connection for very large read: fix _winapi.PeekNamedPipe() " "and _winapi.ReadFile() for read larger than INT_MAX (usually 2^31-1)." msgstr "" -#: ../../../build/NEWS:2385 +#: ../../../build/NEWS:3009 msgid "" -"`bpo-34558 `__: Correct typo in " -"Lib/ctypes/_aix.py" +"`bpo-34558 `__: Correct typo in Lib/" +"ctypes/_aix.py" msgstr "" -#: ../../../build/NEWS:2387 +#: ../../../build/NEWS:3011 msgid "" "`bpo-34515 `__: Fix parsing non-ASCII " "identifiers in :mod:`lib2to3.pgen2.tokenize` (PEP 3131)." msgstr "" -#: ../../../build/NEWS:2390 +#: ../../../build/NEWS:3014 msgid "" "`bpo-13312 `__: Avoids a possible " "integer underflow (undefined behavior) in the time module's year handling " "code when passed a very low negative year value." msgstr "" -#: ../../../build/NEWS:2394 +#: ../../../build/NEWS:3018 msgid "" "`bpo-34472 `__: Improved compatibility " "for streamed files in :mod:`zipfile`. Previously an optional signature was " @@ -4641,155 +5771,153 @@ msgid "" "Silas Sewell." msgstr "" -#: ../../../build/NEWS:2398 +#: ../../../build/NEWS:3022 msgid "" -"`bpo-34454 `__: Fix the .fromisoformat()" -" methods of datetime types crashing when given unicode with non-" -"UTF-8-encodable code points. Specifically, datetime.fromisoformat() now " -"accepts surrogate unicode code points used as the separator. Report and " -"tests by Alexey Izbyshev, patch by Paul Ganssle." +"`bpo-34454 `__: Fix the .fromisoformat() " +"methods of datetime types crashing when given unicode with non-UTF-8-" +"encodable code points. Specifically, datetime.fromisoformat() now accepts " +"surrogate unicode code points used as the separator. Report and tests by " +"Alexey Izbyshev, patch by Paul Ganssle." msgstr "" -#: ../../../build/NEWS:2403 +#: ../../../build/NEWS:3027 msgid "" -"`bpo-6700 `__: Fix inspect.getsourcelines" -" for module level frames/tracebacks. Patch by Vladimir Matveev." +"`bpo-6700 `__: Fix inspect.getsourcelines " +"for module level frames/tracebacks. Patch by Vladimir Matveev." msgstr "" -#: ../../../build/NEWS:2406 +#: ../../../build/NEWS:3030 msgid "" -"`bpo-34171 `__: Running the :mod:`trace`" -" module no longer creates the ``trace.cover`` file." +"`bpo-34171 `__: Running the :mod:`trace` " +"module no longer creates the ``trace.cover`` file." msgstr "" -#: ../../../build/NEWS:2409 +#: ../../../build/NEWS:3033 msgid "" "`bpo-34441 `__: Fix crash when an " "``ABC``-derived class with invalid ``__subclasses__`` is passed as the " "second argument to :func:`issubclass()`. Patch by Alexey Izbyshev." msgstr "" -#: ../../../build/NEWS:2413 +#: ../../../build/NEWS:3037 msgid "" "`bpo-34341 `__: Appending to the ZIP " -"archive with the ZIP64 extension no longer grows the size of extra fields of" -" existing entries." +"archive with the ZIP64 extension no longer grows the size of extra fields of " +"existing entries." msgstr "" -#: ../../../build/NEWS:2416 +#: ../../../build/NEWS:3040 msgid "" -"`bpo-34333 `__: Fix %-formatting in " -":meth:`pathlib.PurePath.with_suffix` when formatting an error message." +"`bpo-34333 `__: Fix %-formatting in :" +"meth:`pathlib.PurePath.with_suffix` when formatting an error message." msgstr "" -#: ../../../build/NEWS:2419 +#: ../../../build/NEWS:3043 msgid "" -"`bpo-18540 `__: The " -":class:`imaplib.IMAP4` and :class:`imaplib.IMAP4_SSL` classes now resolve to" -" the local host IP correctly when the default value of *host* parameter " -"(``''``) is used." +"`bpo-18540 `__: The :class:`imaplib." +"IMAP4` and :class:`imaplib.IMAP4_SSL` classes now resolve to the local host " +"IP correctly when the default value of *host* parameter (``''``) is used." msgstr "" -#: ../../../build/NEWS:2423 +#: ../../../build/NEWS:3047 msgid "" -"`bpo-34246 `__: " -":meth:`smtplib.SMTP.send_message` no longer modifies the content of the " -"*mail_options* argument. Patch by Pablo S. Blum de Aguiar." +"`bpo-34246 `__: :meth:`smtplib.SMTP." +"send_message` no longer modifies the content of the *mail_options* argument. " +"Patch by Pablo S. Blum de Aguiar." msgstr "" -#: ../../../build/NEWS:2426 +#: ../../../build/NEWS:3050 msgid "" "`bpo-31047 `__: Fix ``ntpath.abspath`` " "for invalid paths on windows. Patch by Franz Woellert." msgstr "" -#: ../../../build/NEWS:2429 +#: ../../../build/NEWS:3053 msgid "" "`bpo-34263 `__: asyncio's event loop " "will not pass timeouts longer than one day to epoll/select etc." msgstr "" -#: ../../../build/NEWS:2432 +#: ../../../build/NEWS:3056 msgid "" "`bpo-34035 `__: Fix several " "AttributeError in zipfile seek() methods. Patch by Mickaël Schoentgen." msgstr "" -#: ../../../build/NEWS:2435 +#: ../../../build/NEWS:3059 msgid "" "`bpo-32215 `__: Fix performance " "regression in :mod:`sqlite3` when a DML statement appeared in a different " "line than the rest of the SQL query." msgstr "" -#: ../../../build/NEWS:2438 +#: ../../../build/NEWS:3062 msgid "" -"`bpo-34251 `__: Restore ``msilib.Win64``" -" to preserve backwards compatibility since it's already used by " -":mod:`distutils`' ``bdist_msi`` command." +"`bpo-34251 `__: Restore ``msilib.Win64`` " +"to preserve backwards compatibility since it's already used by :mod:" +"`distutils`' ``bdist_msi`` command." msgstr "" -#: ../../../build/NEWS:2441 +#: ../../../build/NEWS:3065 msgid "" "`bpo-19891 `__: Ignore errors caused by " "missing / non-writable homedir while writing history during exit of an " "interactive session. Patch by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:2445 +#: ../../../build/NEWS:3069 msgid "" -"`bpo-34213 `__: Allow frozen dataclasses" -" to have a field named \"object\". Previously this conflicted with an " +"`bpo-34213 `__: Allow frozen dataclasses " +"to have a field named \"object\". Previously this conflicted with an " "internal use of \"object\"." msgstr "" -#: ../../../build/NEWS:2448 +#: ../../../build/NEWS:3072 msgid "" "`bpo-21446 `__: The :2to3fixer:`reload` " -"fixer now uses :func:`importlib.reload` instead of deprecated " -":func:`imp.reload`." +"fixer now uses :func:`importlib.reload` instead of deprecated :func:`imp." +"reload`." msgstr "" -#: ../../../build/NEWS:2451 +#: ../../../build/NEWS:3075 msgid "" -"`bpo-940286 `__: pydoc's " -"``Helper.showtopic()`` method now prints the cross references of a topic " -"correctly." +"`bpo-940286 `__: pydoc's ``Helper." +"showtopic()`` method now prints the cross references of a topic correctly." msgstr "" -#: ../../../build/NEWS:2454 +#: ../../../build/NEWS:3078 msgid "" -"`bpo-34164 `__: :func:`base64.b32decode`" -" could raise UnboundLocalError or OverflowError for incorrect padding. Now " +"`bpo-34164 `__: :func:`base64.b32decode` " +"could raise UnboundLocalError or OverflowError for incorrect padding. Now " "it always raises :exc:`base64.Error` in these cases." msgstr "" -#: ../../../build/NEWS:2458 +#: ../../../build/NEWS:3082 msgid "" "`bpo-33729 `__: Fixed issues with " "arguments parsing in :mod:`hashlib`." msgstr "" -#: ../../../build/NEWS:2460 +#: ../../../build/NEWS:3084 msgid "" "`bpo-34108 `__: Remove extraneous CR in " "2to3 refactor." msgstr "" -#: ../../../build/NEWS:2462 +#: ../../../build/NEWS:3086 msgid "" -"`bpo-27494 `__: Reverted :issue:`27494`." -" 2to3 rejects now a trailing comma in generator expressions." +"`bpo-27494 `__: Reverted :issue:`27494`. " +"2to3 rejects now a trailing comma in generator expressions." msgstr "" -#: ../../../build/NEWS:2465 +#: ../../../build/NEWS:3089 msgid "" -"`bpo-33967 `__: functools.singledispatch" -" now raises TypeError instead of IndexError when no positional arguments are" -" passed." +"`bpo-33967 `__: functools.singledispatch " +"now raises TypeError instead of IndexError when no positional arguments are " +"passed." msgstr "" -#: ../../../build/NEWS:2468 +#: ../../../build/NEWS:3092 msgid "" "`bpo-34056 `__: Ensure the loader shim " "created by ``imp.load_module`` always returns bytes from its ``get_data()`` " @@ -4797,78 +5925,78 @@ msgid "" "pycs." msgstr "" -#: ../../../build/NEWS:2472 +#: ../../../build/NEWS:3096 msgid "" "`bpo-34054 `__: The multiprocessing " "module now uses the monotonic clock :func:`time.monotonic` instead of the " "system clock :func:`time.time` to implement timeout." msgstr "" -#: ../../../build/NEWS:2476 +#: ../../../build/NEWS:3100 msgid "" -"`bpo-34044 `__: ``subprocess.Popen`` now" -" copies the *startupinfo* argument to leave it unchanged: it will modify the" -" copy, so that the same ``STARTUPINFO`` object can be used multiple times." +"`bpo-34044 `__: ``subprocess.Popen`` now " +"copies the *startupinfo* argument to leave it unchanged: it will modify the " +"copy, so that the same ``STARTUPINFO`` object can be used multiple times." msgstr "" -#: ../../../build/NEWS:2480 +#: ../../../build/NEWS:3104 msgid "" "`bpo-34010 `__: Fixed a performance " "regression for reading streams with tarfile. The buffered read should use a " "list, instead of appending to a bytes object." msgstr "" -#: ../../../build/NEWS:2484 +#: ../../../build/NEWS:3108 msgid "" "`bpo-34019 `__: webbrowser: Correct the " "arguments passed to Opera Browser when opening a new URL using the " "``webbrowser`` module. Patch by Bumsik Kim." msgstr "" -#: ../../../build/NEWS:2487 +#: ../../../build/NEWS:3111 msgid "" "`bpo-33978 `__: Closed existing logging " "handlers before reconfiguration via fileConfig and dictConfig. Patch by " "Karthikeyan Singaravelan." msgstr "" -#: ../../../build/NEWS:2490 +#: ../../../build/NEWS:3114 msgid "" "`bpo-14117 `__: Make minor tweaks to " "turtledemo. The 'wikipedia' example is now 'rosette', decribing what it " -"draws. The 'penrose' print output is reduced. The'1024' output of 'tree' is" -" eliminated." +"draws. The 'penrose' print output is reduced. The'1024' output of 'tree' is " +"eliminated." msgstr "" -#: ../../../build/NEWS:2494 +#: ../../../build/NEWS:3118 msgid "" "`bpo-33974 `__: Fixed passing lists and " -"tuples of strings containing special characters ``\"``, ``\\``, ``{``, ``}``" -" and ``\\n`` as options to :mod:`~tkinter.ttk` widgets." +"tuples of strings containing special characters ``\"``, ``\\``, ``{``, ``}`` " +"and ``\\n`` as options to :mod:`~tkinter.ttk` widgets." msgstr "" -#: ../../../build/NEWS:2498 +#: ../../../build/NEWS:3122 msgid "" "`bpo-27500 `__: Fix getaddrinfo to " "resolve IPv6 addresses correctly." msgstr "" -#: ../../../build/NEWS:2500 +#: ../../../build/NEWS:3124 msgid "" -"`bpo-24567 `__: Improve random.choices()" -" to handle subnormal input weights that could occasionally trigger an " +"`bpo-24567 `__: Improve random.choices() " +"to handle subnormal input weights that could occasionally trigger an " "IndexError." msgstr "" -#: ../../../build/NEWS:2503 +#: ../../../build/NEWS:3127 msgid "" "`bpo-33871 `__: Fixed integer overflow " -"in :func:`os.readv`, :func:`os.writev`, :func:`os.preadv` and " -":func:`os.pwritev` and in :func:`os.sendfile` with *headers* or *trailers* " -"arguments (on BSD-based OSes and macOS)." +"in :func:`os.readv`, :func:`os.writev`, :func:`os.preadv` and :func:`os." +"pwritev` and in :func:`os.sendfile` with *headers* or *trailers* arguments " +"(on BSD-based OSes and macOS)." msgstr "" -#: ../../../build/NEWS:2507 +#: ../../../build/NEWS:3131 msgid "" "`bpo-33899 `__: Tokenize module now " "implicitly emits a NEWLINE when provided with input that does not have a " @@ -4876,143 +6004,142 @@ msgid "" "internally. Contributed by Ammar Askar." msgstr "" -#: ../../../build/NEWS:2511 +#: ../../../build/NEWS:3135 msgid "" "`bpo-33916 `__: bz2 and lzma: When " "Decompressor.__init__() is called twice, free the old lock to not leak " "memory." msgstr "" -#: ../../../build/NEWS:2514 +#: ../../../build/NEWS:3138 msgid "" "`bpo-32568 `__: Make select.epoll() and " "its documentation consistent regarding *sizehint* and *flags*." msgstr "" -#: ../../../build/NEWS:2517 +#: ../../../build/NEWS:3141 msgid "" "`bpo-33833 `__: Fixed bug in asyncio " "where ProactorSocketTransport logs AssertionError if force closed during " "write." msgstr "" -#: ../../../build/NEWS:2520 +#: ../../../build/NEWS:3144 msgid "" "`bpo-33663 `__: Convert content length " "to string before putting to header." msgstr "" -#: ../../../build/NEWS:2522 +#: ../../../build/NEWS:3146 msgid "" -"`bpo-26544 `__: Fixed implementation of " -":func:`platform.libc_ver`. It almost always returned version '2.9' for " -"glibc." +"`bpo-26544 `__: Fixed implementation of :" +"func:`platform.libc_ver`. It almost always returned version '2.9' for glibc." msgstr "" -#: ../../../build/NEWS:2525 +#: ../../../build/NEWS:3149 msgid "" -"`bpo-33805 `__: Improve error message of" -" dataclasses.replace() when an InitVar is not specified" +"`bpo-33805 `__: Improve error message of " +"dataclasses.replace() when an InitVar is not specified" msgstr "" -#: ../../../build/NEWS:2528 +#: ../../../build/NEWS:3152 msgid "" "`bpo-27397 `__: Make email module " "properly handle invalid-length base64 strings." msgstr "" -#: ../../../build/NEWS:2531 +#: ../../../build/NEWS:3155 msgid "" -"`bpo-33476 `__: Fix " -"_header_value_parser.py when address group is missing final ';'. Contributed" -" by Enrique Perez-Terron" +"`bpo-33476 `__: Fix _header_value_parser." +"py when address group is missing final ';'. Contributed by Enrique Perez-" +"Terron" msgstr "" -#: ../../../build/NEWS:2534 +#: ../../../build/NEWS:3158 msgid "" "`bpo-31014 `__: Fixed creating a " -"controller for :mod:`webbrowser` when a user specifies a path to an entry in" -" the BROWSER environment variable. Based on patch by John Still." +"controller for :mod:`webbrowser` when a user specifies a path to an entry in " +"the BROWSER environment variable. Based on patch by John Still." msgstr "" -#: ../../../build/NEWS:2538 +#: ../../../build/NEWS:3162 msgid "" "`bpo-33365 `__: Print the header values " "besides the header keys instead just the header keys if *debuglevel* is set " "to >0 in :mod:`http.client`. Patch by Marco Strigl." msgstr "" -#: ../../../build/NEWS:2542 +#: ../../../build/NEWS:3166 msgid "" -"`bpo-32933 `__: " -":func:`unittest.mock.mock_open` now supports iteration over the file " -"contents. Patch by Tony Flury." +"`bpo-32933 `__: :func:`unittest.mock." +"mock_open` now supports iteration over the file contents. Patch by Tony " +"Flury." msgstr "" -#: ../../../build/NEWS:2545 +#: ../../../build/NEWS:3169 msgid "" "`bpo-33336 `__: ``imaplib`` now allows " "``MOVE`` command in ``IMAP4.uid()`` (RFC 6851: IMAP MOVE Extension) and " "potentially as a name of supported method of ``IMAP4`` object." msgstr "" -#: ../../../build/NEWS:2549 +#: ../../../build/NEWS:3173 msgid "" "`bpo-31608 `__: Raise a ``TypeError`` " "instead of crashing if a ``collections.deque`` subclass returns a non-deque " "from ``__new__``. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:2553 +#: ../../../build/NEWS:3177 msgid "" "`bpo-29456 `__: Fix bugs in hangul " "normalization: u1176, u11a7 and u11c3" msgstr "" -#: ../../../build/NEWS:2558 +#: ../../../build/NEWS:3182 msgid "" "`bpo-34790 `__: Document how passing " "coroutines to asyncio.wait() can be confusing." msgstr "" -#: ../../../build/NEWS:2561 +#: ../../../build/NEWS:3185 msgid "" "`bpo-28617 `__: Fixed info in the " "stdtypes docs concerning the types that support membership tests." msgstr "" -#: ../../../build/NEWS:2564 +#: ../../../build/NEWS:3188 msgid "" "`bpo-34065 `__: Fix wrongly written " "basicConfig documentation markup syntax" msgstr "" -#: ../../../build/NEWS:2566 +#: ../../../build/NEWS:3190 msgid "" "`bpo-33460 `__: replaced ellipsis with " "correct error codes in tutorial chapter 3." msgstr "" -#: ../../../build/NEWS:2569 +#: ../../../build/NEWS:3193 msgid "" "`bpo-33847 `__: Add '@' operator entry " "to index." msgstr "" -#: ../../../build/NEWS:2571 +#: ../../../build/NEWS:3195 msgid "" "`bpo-25041 `__: Document ``AF_PACKET`` " "in the :mod:`socket` module." msgstr "" -#: ../../../build/NEWS:2576 +#: ../../../build/NEWS:3200 msgid "" -"`bpo-34537 `__: Fix " -"``test_gdb.test_strings()`` when ``LC_ALL=C`` and GDB was compiled with " -"Python 3.6 or earlier." +"`bpo-34537 `__: Fix ``test_gdb." +"test_strings()`` when ``LC_ALL=C`` and GDB was compiled with Python 3.6 or " +"earlier." msgstr "" -#: ../../../build/NEWS:2579 +#: ../../../build/NEWS:3203 msgid "" "`bpo-34587 `__: test_socket: Remove " "RDSTest.testCongestion(). The test tries to fill the receiver's socket " @@ -5022,181 +6149,181 @@ msgid "" "error. The test fails on Fedora 28 by design, so just remove it." msgstr "" -#: ../../../build/NEWS:2586 +#: ../../../build/NEWS:3210 msgid "" -"`bpo-34661 `__: Fix test_shutil if unzip" -" doesn't support -t." +"`bpo-34661 `__: Fix test_shutil if unzip " +"doesn't support -t." msgstr "" -#: ../../../build/NEWS:2588 +#: ../../../build/NEWS:3212 msgid "" "`bpo-34200 `__: Fixed non-deterministic " "flakiness of test_pkg by not using the scary test.support.module_cleanup() " "logic to save and restore sys.modules contents between test cases." msgstr "" -#: ../../../build/NEWS:2592 +#: ../../../build/NEWS:3216 msgid "" "`bpo-34594 `__: Fix usage of hardcoded " "``errno`` values in the tests." msgstr "" -#: ../../../build/NEWS:2594 +#: ../../../build/NEWS:3218 msgid "" "`bpo-34542 `__: Use 3072 RSA keys and " "SHA-256 signature for test certs and keys." msgstr "" -#: ../../../build/NEWS:2597 +#: ../../../build/NEWS:3221 msgid "" -"`bpo-11193 `__: Remove special condition" -" for AIX in `test_subprocess.test_undecodable_env`" +"`bpo-11193 `__: Remove special condition " +"for AIX in `test_subprocess.test_undecodable_env`" msgstr "" -#: ../../../build/NEWS:2600 +#: ../../../build/NEWS:3224 msgid "" "`bpo-34490 `__: On AIX with AF_UNIX " "family sockets getsockname() does not provide 'sockname', so skip calls to " "transport.get_extra_info('sockname')" msgstr "" -#: ../../../build/NEWS:2603 +#: ../../../build/NEWS:3227 msgid "" "`bpo-34391 `__: Fix ftplib test for TLS " "1.3 by reading from data socket." msgstr "" -#: ../../../build/NEWS:2605 +#: ../../../build/NEWS:3229 msgid "" "`bpo-34399 `__: Update all RSA keys and " "DH params to use at least 2048 bits." msgstr "" -#: ../../../build/NEWS:2607 +#: ../../../build/NEWS:3231 msgid "" "`bpo-33746 `__: Fix test_unittest when " "run in verbose mode." msgstr "" -#: ../../../build/NEWS:2609 +#: ../../../build/NEWS:3233 msgid "" "`bpo-33901 `__: Fix test_dbm_gnu on " "macOS with gdbm 1.15: add a larger value to make sure that the file size " "changes." msgstr "" -#: ../../../build/NEWS:2612 +#: ../../../build/NEWS:3236 msgid "" "`bpo-33873 `__: Fix a bug in " "``regrtest`` that caused an extra test to run if --huntrleaks/-R was used. " -"Exit with error in case that invalid parameters are specified to " -"--huntrleaks/-R (at least one warmup run and one repetition must be used)." +"Exit with error in case that invalid parameters are specified to --" +"huntrleaks/-R (at least one warmup run and one repetition must be used)." msgstr "" -#: ../../../build/NEWS:2617 +#: ../../../build/NEWS:3241 msgid "" "`bpo-32663 `__: Making sure the " "`SMTPUTF8SimTests` class of tests gets run in test_smtplib.py." msgstr "" -#: ../../../build/NEWS:2623 +#: ../../../build/NEWS:3247 msgid "" "`bpo-34710 `__: Fixed SSL module build " "with OpenSSL & pedantic CFLAGS." msgstr "" -#: ../../../build/NEWS:2625 +#: ../../../build/NEWS:3249 msgid "" -"`bpo-34582 `__: Add JUnit XML output for" -" regression tests and update Azure DevOps builds." +"`bpo-34582 `__: Add JUnit XML output for " +"regression tests and update Azure DevOps builds." msgstr "" -#: ../../../build/NEWS:2628 +#: ../../../build/NEWS:3252 msgid "" "`bpo-34555 `__: Fix for case where it " "was not possible to have both ``HAVE_LINUX_VM_SOCKETS_H`` and " "``HAVE_SOCKADDR_ALG`` be undefined." msgstr "" -#: ../../../build/NEWS:2631 +#: ../../../build/NEWS:3255 msgid "" "`bpo-34121 `__: Fix detection of C11 " "atomic support on clang." msgstr "" -#: ../../../build/NEWS:2633 +#: ../../../build/NEWS:3257 msgid "" "`bpo-30345 `__: Add -g to LDFLAGS when " "compiling with LTO to get debug symbols." msgstr "" -#: ../../../build/NEWS:2635 +#: ../../../build/NEWS:3259 msgid "" "`bpo-33648 `__: The --with-c-locale-" "warning configuration flag has been removed. It has had no effect for about " "a year." msgstr "" -#: ../../../build/NEWS:2641 +#: ../../../build/NEWS:3265 msgid "" "`bpo-34770 `__: Fix a possible null " "pointer dereference in pyshellext.cpp." msgstr "" -#: ../../../build/NEWS:2643 +#: ../../../build/NEWS:3267 msgid "" "`bpo-34603 `__: Fix returning structs " "from functions produced by MSVC" msgstr "" -#: ../../../build/NEWS:2645 +#: ../../../build/NEWS:3269 msgid "" -"`bpo-34581 `__: Guard MSVC-specific code" -" in socketmodule.c with ``#ifdef _MSC_VER``." +"`bpo-34581 `__: Guard MSVC-specific code " +"in socketmodule.c with ``#ifdef _MSC_VER``." msgstr "" -#: ../../../build/NEWS:2648 +#: ../../../build/NEWS:3272 msgid "" "`bpo-34062 `__: Fixed the '--list' and " "'--list-paths' arguments for the py.exe launcher" msgstr "" -#: ../../../build/NEWS:2651 +#: ../../../build/NEWS:3275 msgid "" "`bpo-34225 `__: Ensure INCLUDE and LIB " "directories do not end with a backslash." msgstr "" -#: ../../../build/NEWS:2653 +#: ../../../build/NEWS:3277 msgid "" -"`bpo-34006 `__: Revert line length limit" -" for Windows help docs. The line-length limit is not needed because the " -"pages appear in a separate app rather than on a browser tab. It can also " -"interact badly with the DPI setting." +"`bpo-34006 `__: Revert line length limit " +"for Windows help docs. The line-length limit is not needed because the pages " +"appear in a separate app rather than on a browser tab. It can also interact " +"badly with the DPI setting." msgstr "" -#: ../../../build/NEWS:2657 +#: ../../../build/NEWS:3281 msgid "" "`bpo-31546 `__: Restore running " "PyOS_InputHook while waiting for user input at the prompt. The restores " -"integration of interactive GUI windows (such as Matplotlib figures) with the" -" prompt on Windows." +"integration of interactive GUI windows (such as Matplotlib figures) with the " +"prompt on Windows." msgstr "" -#: ../../../build/NEWS:2661 +#: ../../../build/NEWS:3285 msgid "" "`bpo-30237 `__: Output error when " "ReadConsole is canceled by CancelSynchronousIo instead of crashing." msgstr "" -#: ../../../build/NEWS:2664 +#: ../../../build/NEWS:3288 msgid "" -"`bpo-29097 `__: Fix bug where " -":meth:`datetime.fromtimestamp` erronously throws an :exc:`OSError` on " -"Windows for values between 0 and 86400. Patch by Ammar Askar." +"`bpo-29097 `__: Fix bug where :meth:" +"`datetime.fromtimestamp` erronously throws an :exc:`OSError` on Windows for " +"values between 0 and 86400. Patch by Ammar Askar." msgstr "" -#: ../../../build/NEWS:2671 +#: ../../../build/NEWS:3295 msgid "" "`bpo-34370 `__: Have macOS 10.9+ " "installer builds for 3.7.1rc and 3.6.7rc use a development snapshot of Tk " @@ -5204,62 +6331,62 @@ msgid "" "tkinter apps." msgstr "" -#: ../../../build/NEWS:2675 +#: ../../../build/NEWS:3299 msgid "" -"`bpo-34405 `__: Update to OpenSSL 1.1.0i" -" for macOS installer builds." +"`bpo-34405 `__: Update to OpenSSL 1.1.0i " +"for macOS installer builds." msgstr "" -#: ../../../build/NEWS:2677 +#: ../../../build/NEWS:3301 msgid "" "`bpo-33635 `__: In macOS stat on some " -"file descriptors (/dev/fd/3 f.e) will result in bad file descriptor OSError." -" Guard against this exception was added in is_dir, is_file and similar " +"file descriptors (/dev/fd/3 f.e) will result in bad file descriptor OSError. " +"Guard against this exception was added in is_dir, is_file and similar " "methods. DirEntry.is_dir can also throw this exception so " "_RecursiveWildcardSelector._iterate_directories was also extended with the " "same error ignoring pattern." msgstr "" -#: ../../../build/NEWS:2683 +#: ../../../build/NEWS:3307 msgid "" -"`bpo-31903 `__: In :mod:`_scproxy`, drop" -" the GIL when calling into ``SystemConfiguration`` to avoid deadlocks." +"`bpo-31903 `__: In :mod:`_scproxy`, drop " +"the GIL when calling into ``SystemConfiguration`` to avoid deadlocks." msgstr "" -#: ../../../build/NEWS:2689 +#: ../../../build/NEWS:3313 msgid "" "`bpo-34548 `__: Use configured color " "theme for read-only text views." msgstr "" -#: ../../../build/NEWS:2691 +#: ../../../build/NEWS:3315 msgid "" -"`bpo-1529353 `__: Enable \"squeezing\"" -" of long outputs in the shell, to avoid performance degradation and to clean" -" up the history without losing it. Squeezed outputs may be copied, viewed in" -" a separate window, and \"unsqueezed\"." +"`bpo-1529353 `__: Enable \"squeezing\" " +"of long outputs in the shell, to avoid performance degradation and to clean " +"up the history without losing it. Squeezed outputs may be copied, viewed in " +"a separate window, and \"unsqueezed\"." msgstr "" -#: ../../../build/NEWS:2696 +#: ../../../build/NEWS:3320 msgid "" "`bpo-34047 `__: Fixed mousewheel " "scrolling direction on macOS." msgstr "" -#: ../../../build/NEWS:2698 +#: ../../../build/NEWS:3322 msgid "" "`bpo-34275 `__: Make IDLE calltips " "always visible on Mac. Some MacOS-tk combinations need .update_idletasks(). " "Patch by Kevin Walzer." msgstr "" -#: ../../../build/NEWS:2701 +#: ../../../build/NEWS:3325 msgid "" "`bpo-34120 `__: Fix unresponsiveness " "after closing certain windows and dialogs." msgstr "" -#: ../../../build/NEWS:2703 +#: ../../../build/NEWS:3327 msgid "" "`bpo-33975 `__: Avoid small type when " "running htests. Since part of the purpose of human-viewed tests is to " @@ -5267,40 +6394,39 @@ msgid "" "for testing as when running IDLE." msgstr "" -#: ../../../build/NEWS:2707 +#: ../../../build/NEWS:3331 msgid "" -"`bpo-33905 `__: Add test for " -"idlelib.stackview.StackBrowser." +"`bpo-33905 `__: Add test for idlelib." +"stackview.StackBrowser." msgstr "" -#: ../../../build/NEWS:2709 +#: ../../../build/NEWS:3333 msgid "" -"`bpo-33924 `__: Change mainmenu.menudefs" -" key 'windows' to 'window'. Every other menudef key is lowercase version of " +"`bpo-33924 `__: Change mainmenu.menudefs " +"key 'windows' to 'window'. Every other menudef key is lowercase version of " "main menu entry." msgstr "" -#: ../../../build/NEWS:2712 +#: ../../../build/NEWS:3336 msgid "" "`bpo-33906 `__: Rename idlelib.windows " "as window Match Window on the main menu and remove last plural module name." msgstr "" -#: ../../../build/NEWS:2715 +#: ../../../build/NEWS:3339 msgid "" -"`bpo-33917 `__: Fix and document " -"idlelib/idle_test/template.py. The revised file compiles, runs, and tests " -"OK. idle_test/README.txt explains how to use it to create new IDLE test " -"files." +"`bpo-33917 `__: Fix and document idlelib/" +"idle_test/template.py. The revised file compiles, runs, and tests OK. " +"idle_test/README.txt explains how to use it to create new IDLE test files." msgstr "" -#: ../../../build/NEWS:2719 +#: ../../../build/NEWS:3343 msgid "" "`bpo-33904 `__: IDLE: In rstrip, rename " "class RstripExtension as Rstrip" msgstr "" -#: ../../../build/NEWS:2721 +#: ../../../build/NEWS:3345 msgid "" "`bpo-33907 `__: For consistency and " "clarity, rename an IDLE module and classes. Module calltips and its class " @@ -5308,254 +6434,253 @@ msgid "" "now CalltipWindow." msgstr "" -#: ../../../build/NEWS:2725 +#: ../../../build/NEWS:3349 msgid "" "`bpo-33856 `__: Add \"help\" in the " "welcome message of IDLE" msgstr "" -#: ../../../build/NEWS:2727 +#: ../../../build/NEWS:3351 msgid "" "`bpo-33839 `__: IDLE: refactor ToolTip " "and CallTip and add documentation and tests" msgstr "" -#: ../../../build/NEWS:2730 +#: ../../../build/NEWS:3354 msgid "" "`bpo-33855 `__: Minimally test all IDLE " "modules. Add missing files, import module, instantiate classes, and check " "coverage. Check existing files." msgstr "" -#: ../../../build/NEWS:2736 +#: ../../../build/NEWS:3360 msgid "" "`bpo-32962 `__: python-gdb now catches " "``UnicodeDecodeError`` exceptions when calling ``string()``." msgstr "" -#: ../../../build/NEWS:2739 +#: ../../../build/NEWS:3363 msgid "" "`bpo-32962 `__: python-gdb now catches " "ValueError on read_var(): when Python has no debug symbols for example." msgstr "" -#: ../../../build/NEWS:2745 +#: ../../../build/NEWS:3369 msgid "" "`bpo-34247 `__: Fix Py_Initialize() " "regression introduced in 3.7.0: read environment variables like " "PYTHONOPTIMIZE." msgstr "" -#: ../../../build/NEWS:2748 +#: ../../../build/NEWS:3372 msgid "" -"`bpo-23927 `__: Fixed :exc:`SystemError`" -" in :c:func:`PyArg_ParseTupleAndKeywords` when the ``w*`` format unit is " -"used for optional parameter." +"`bpo-23927 `__: Fixed :exc:`SystemError` " +"in :c:func:`PyArg_ParseTupleAndKeywords` when the ``w*`` format unit is used " +"for optional parameter." msgstr "" -#: ../../../build/NEWS:2752 +#: ../../../build/NEWS:3376 msgid "" "`bpo-34008 `__: Py_Main() can again be " "called after Py_Initialize(), as in Python 3.6." msgstr "" -#: ../../../build/NEWS:2757 +#: ../../../build/NEWS:3381 msgid "Python 3.7.0 final" msgstr "" -#: ../../../build/NEWS:2759 ../../../build/NEWS:7398 +#: ../../../build/NEWS:3383 ../../../build/NEWS:8022 msgid "*Release date: 2018-06-27*" msgstr "" -#: ../../../build/NEWS:2764 +#: ../../../build/NEWS:3388 msgid "" -"`bpo-33851 `__: Fix " -":func:`ast.get_docstring` for a node that lacks a docstring." +"`bpo-33851 `__: Fix :func:`ast." +"get_docstring` for a node that lacks a docstring." msgstr "" -#: ../../../build/NEWS:2770 +#: ../../../build/NEWS:3394 msgid "" "`bpo-33932 `__: Calling Py_Initialize() " "twice does nothing, instead of failing with a fatal error: restore the " "Python 3.6 behaviour." msgstr "" -#: ../../../build/NEWS:2775 +#: ../../../build/NEWS:3399 msgid "Python 3.7.0 release candidate 1" msgstr "" -#: ../../../build/NEWS:2777 +#: ../../../build/NEWS:3401 msgid "*Release date: 2018-06-12*" msgstr "" -#: ../../../build/NEWS:2782 +#: ../../../build/NEWS:3406 msgid "" "`bpo-33803 `__: Fix a crash in hamt.c " "caused by enabling GC tracking for an object that hadn't all of its fields " "set to NULL." msgstr "" -#: ../../../build/NEWS:2785 +#: ../../../build/NEWS:3409 msgid "" "`bpo-33706 `__: Fix a crash in Python " "initialization when parsing the command line options. Thanks Christoph " "Gohlke for the bug report and the fix!" msgstr "" -#: ../../../build/NEWS:2788 ../../../build/NEWS:7415 +#: ../../../build/NEWS:3412 ../../../build/NEWS:8039 msgid "" "`bpo-30654 `__: Fixed reset of the " "SIGINT handler to SIG_DFL on interpreter shutdown even when there was a " "custom handler set previously. Patch by Philipp Kerling." msgstr "" -#: ../../../build/NEWS:2792 ../../../build/NEWS:7424 +#: ../../../build/NEWS:3416 ../../../build/NEWS:8048 msgid "" "`bpo-31849 `__: Fix signed/unsigned " "comparison warning in pyhash.c." msgstr "" -#: ../../../build/NEWS:2797 ../../../build/NEWS:7449 +#: ../../../build/NEWS:3421 ../../../build/NEWS:8073 msgid "" "`bpo-30167 `__: Prevent site.main() " "exception if PYTHONSTARTUP is set. Patch by Steve Weber." msgstr "" -#: ../../../build/NEWS:2800 ../../../build/NEWS:7452 +#: ../../../build/NEWS:3424 ../../../build/NEWS:8076 msgid "" -"`bpo-33812 `__: Datetime instance d with" -" non-None tzinfo, but with d.tzinfo.utcoffset(d) returning None is now " +"`bpo-33812 `__: Datetime instance d with " +"non-None tzinfo, but with d.tzinfo.utcoffset(d) returning None is now " "treated as naive by the astimezone() method." msgstr "" -#: ../../../build/NEWS:2804 ../../../build/NEWS:7456 +#: ../../../build/NEWS:3428 ../../../build/NEWS:8080 msgid "" "`bpo-30805 `__: Avoid race condition " "with debug logging" msgstr "" -#: ../../../build/NEWS:2806 +#: ../../../build/NEWS:3430 msgid "" "`bpo-33694 `__: asyncio: Fix a race " "condition causing data loss on pause_reading()/resume_reading() when using " "the ProactorEventLoop." msgstr "" -#: ../../../build/NEWS:2809 +#: ../../../build/NEWS:3433 msgid "" "`bpo-32493 `__: Correct test for " "``uuid_enc_be`` availability in ``configure.ac``. Patch by Michael Felt." msgstr "" -#: ../../../build/NEWS:2812 +#: ../../../build/NEWS:3436 msgid "" -"`bpo-33792 `__: Add " -"asyncio.WindowsSelectorEventLoopPolicy and " -"asyncio.WindowsProactorEventLoopPolicy." +"`bpo-33792 `__: Add asyncio." +"WindowsSelectorEventLoopPolicy and asyncio.WindowsProactorEventLoopPolicy." msgstr "" -#: ../../../build/NEWS:2815 +#: ../../../build/NEWS:3439 msgid "" -"`bpo-33778 `__: Update ``unicodedata``'s" -" database to Unicode version 11.0.0." +"`bpo-33778 `__: Update ``unicodedata``'s " +"database to Unicode version 11.0.0." msgstr "" -#: ../../../build/NEWS:2817 +#: ../../../build/NEWS:3441 msgid "" -"`bpo-33770 `__: improve base64 exception" -" message for encoded inputs of invalid length" +"`bpo-33770 `__: improve base64 exception " +"message for encoded inputs of invalid length" msgstr "" -#: ../../../build/NEWS:2820 +#: ../../../build/NEWS:3444 msgid "" "`bpo-33769 `__: asyncio/start_tls: Fix " "error message; cancel callbacks in case of an unhandled error; mark " "SSLTransport as closed if it is aborted." msgstr "" -#: ../../../build/NEWS:2823 ../../../build/NEWS:7458 +#: ../../../build/NEWS:3447 ../../../build/NEWS:8082 msgid "" -"`bpo-33767 `__: The concatenation " -"(``+``) and repetition (``*``) sequence operations now raise " -":exc:`TypeError` instead of :exc:`SystemError` when performed on " -":class:`mmap.mmap` objects. Patch by Zackery Spytz." +"`bpo-33767 `__: The concatenation (``" +"+``) and repetition (``*``) sequence operations now raise :exc:`TypeError` " +"instead of :exc:`SystemError` when performed on :class:`mmap.mmap` objects. " +"Patch by Zackery Spytz." msgstr "" -#: ../../../build/NEWS:2827 +#: ../../../build/NEWS:3451 msgid "" "`bpo-33734 `__: asyncio/ssl: Fix " "AttributeError, increase default handshake timeout" msgstr "" -#: ../../../build/NEWS:2830 ../../../build/NEWS:7477 +#: ../../../build/NEWS:3454 ../../../build/NEWS:8101 msgid "" "`bpo-11874 `__: Use a better regex when " "breaking usage into wrappable parts. Avoids bogus assertion errors from " "custom metavar strings." msgstr "" -#: ../../../build/NEWS:2833 +#: ../../../build/NEWS:3457 msgid "" "`bpo-33582 `__: Emit a deprecation " "warning for inspect.formatargspec" msgstr "" -#: ../../../build/NEWS:2838 +#: ../../../build/NEWS:3462 msgid "" "`bpo-33409 `__: Clarified the " "relationship between PEP 538's PYTHONCOERCECLOCALE and PEP 540's PYTHONUTF8 " "mode." msgstr "" -#: ../../../build/NEWS:2841 +#: ../../../build/NEWS:3465 msgid "" "`bpo-33736 `__: Improve the " -"documentation of :func:`asyncio.open_connection`, " -":func:`asyncio.start_server` and their UNIX socket counterparts." +"documentation of :func:`asyncio.open_connection`, :func:`asyncio." +"start_server` and their UNIX socket counterparts." msgstr "" -#: ../../../build/NEWS:2844 ../../../build/NEWS:7604 +#: ../../../build/NEWS:3468 ../../../build/NEWS:8228 msgid "" "`bpo-31432 `__: Clarify meaning of " -"CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED flags for " -"ssl.SSLContext.verify_mode." +"CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED flags for ssl.SSLContext." +"verify_mode." msgstr "" -#: ../../../build/NEWS:2850 ../../../build/NEWS:7618 +#: ../../../build/NEWS:3474 ../../../build/NEWS:8242 msgid "" "`bpo-5755 `__: Move ``-Wstrict-" "prototypes`` option to ``CFLAGS_NODIST`` from ``OPT``. This option emitted " "annoying warnings when building extension modules written in C++." msgstr "" -#: ../../../build/NEWS:2857 +#: ../../../build/NEWS:3481 msgid "" "`bpo-33720 `__: Reduces maximum marshal " "recursion depth on release builds." msgstr "" -#: ../../../build/NEWS:2862 ../../../build/NEWS:7648 +#: ../../../build/NEWS:3486 ../../../build/NEWS:8272 msgid "" -"`bpo-33656 `__: On Windows, add API call" -" saying that tk scales for DPI. On Windows 8.1+ or 10, with DPI " -"compatibility properties of the Python binary unchanged, and a monitor " -"resolution greater than 96 DPI, this should make text and lines sharper. It" -" should otherwise have no effect." +"`bpo-33656 `__: On Windows, add API call " +"saying that tk scales for DPI. On Windows 8.1+ or 10, with DPI compatibility " +"properties of the Python binary unchanged, and a monitor resolution greater " +"than 96 DPI, this should make text and lines sharper. It should otherwise " +"have no effect." msgstr "" -#: ../../../build/NEWS:2867 ../../../build/NEWS:7653 +#: ../../../build/NEWS:3491 ../../../build/NEWS:8277 msgid "" "`bpo-33768 `__: Clicking on a context " "line moves that line to the top of the editor window." msgstr "" -#: ../../../build/NEWS:2870 ../../../build/NEWS:7656 +#: ../../../build/NEWS:3494 ../../../build/NEWS:8280 msgid "" -"`bpo-33763 `__: IDLE: Use read-only text" -" widget for code context instead of label widget." +"`bpo-33763 `__: IDLE: Use read-only text " +"widget for code context instead of label widget." msgstr "" -#: ../../../build/NEWS:2873 ../../../build/NEWS:7659 +#: ../../../build/NEWS:3497 ../../../build/NEWS:8283 msgid "" "`bpo-33664 `__: Scroll IDLE editor text " "by lines. Previously, the mouse wheel and scrollbar slider moved text by a " @@ -5564,29 +6689,29 @@ msgid "" "to read-only text views." msgstr "" -#: ../../../build/NEWS:2878 ../../../build/NEWS:7664 +#: ../../../build/NEWS:3502 ../../../build/NEWS:8288 msgid "" "`bpo-33679 `__: Enable theme-specific " "color configuration for Code Context. Use the Highlights tab to see the " "setting for built-in themes or add settings to custom themes." msgstr "" -#: ../../../build/NEWS:2882 ../../../build/NEWS:7668 +#: ../../../build/NEWS:3506 ../../../build/NEWS:8292 msgid "" "`bpo-33642 `__: Display up to maxlines " "non-blank lines for Code Context. If there is no current context, show a " "single blank line." msgstr "" -#: ../../../build/NEWS:2887 +#: ../../../build/NEWS:3511 msgid "Python 3.7.0 beta 5" msgstr "" -#: ../../../build/NEWS:2889 +#: ../../../build/NEWS:3513 msgid "*Release date: 2018-05-30*" msgstr "" -#: ../../../build/NEWS:2894 ../../../build/NEWS:7419 +#: ../../../build/NEWS:3518 ../../../build/NEWS:8043 msgid "" "`bpo-33622 `__: Fixed a leak when the " "garbage collector fails to add an object with the ``__del__`` method or " @@ -5594,170 +6719,169 @@ msgid "" "can now be called when an exception is set and preserves it." msgstr "" -#: ../../../build/NEWS:2899 +#: ../../../build/NEWS:3523 msgid "" "`bpo-33509 `__: Fix module_globals " "parameter of warnings.warn_explicit(): don't crash if module_globals is not " "a dict." msgstr "" -#: ../../../build/NEWS:2902 +#: ../../../build/NEWS:3526 msgid "" -"`bpo-20104 `__: The new `os.posix_spawn`" -" added in 3.7.0b1 was removed as we are still working on what the API should" -" look like. Expect this in 3.8 instead." +"`bpo-20104 `__: The new `os.posix_spawn` " +"added in 3.7.0b1 was removed as we are still working on what the API should " +"look like. Expect this in 3.8 instead." msgstr "" -#: ../../../build/NEWS:2906 +#: ../../../build/NEWS:3530 msgid "" -"`bpo-33475 `__: Fixed miscellaneous bugs" -" in converting annotations to strings and optimized parentheses in the " -"string representation." +"`bpo-33475 `__: Fixed miscellaneous bugs " +"in converting annotations to strings and optimized parentheses in the string " +"representation." msgstr "" -#: ../../../build/NEWS:2909 ../../../build/NEWS:7426 +#: ../../../build/NEWS:3533 ../../../build/NEWS:8050 msgid "" "`bpo-33391 `__: Fix a leak in " "set_symmetric_difference()." msgstr "" -#: ../../../build/NEWS:2911 ../../../build/NEWS:7428 +#: ../../../build/NEWS:3535 ../../../build/NEWS:8052 msgid "" "`bpo-28055 `__: Fix unaligned accesses " "in siphash24(). Patch by Rolf Eike Beer." msgstr "" -#: ../../../build/NEWS:2913 +#: ../../../build/NEWS:3537 msgid "" "`bpo-32911 `__: Due to unexpected " -"compatibility issues discovered during downstream beta testing, reverted " -":issue:`29463`. ``docstring`` field is removed from Module, ClassDef, " +"compatibility issues discovered during downstream beta testing, reverted :" +"issue:`29463`. ``docstring`` field is removed from Module, ClassDef, " "FunctionDef, and AsyncFunctionDef ast nodes which was added in 3.7a1. " "Docstring expression is restored as a first statement in their body. Based " "on patch by Inada Naoki." msgstr "" -#: ../../../build/NEWS:2919 ../../../build/NEWS:7443 +#: ../../../build/NEWS:3543 ../../../build/NEWS:8067 msgid "" -"`bpo-21983 `__: Fix a crash in " -"`ctypes.cast()` in case the type argument is a ctypes structured data type. " -"Patch by Eryk Sun and Oren Milman." +"`bpo-21983 `__: Fix a crash in `ctypes." +"cast()` in case the type argument is a ctypes structured data type. Patch by " +"Eryk Sun and Oren Milman." msgstr "" -#: ../../../build/NEWS:2925 +#: ../../../build/NEWS:3549 msgid "" -"`bpo-32751 `__: When cancelling the task" -" due to a timeout, :meth:`asyncio.wait_for` will now wait until the " +"`bpo-32751 `__: When cancelling the task " +"due to a timeout, :meth:`asyncio.wait_for` will now wait until the " "cancellation is complete." msgstr "" -#: ../../../build/NEWS:2928 ../../../build/NEWS:7462 +#: ../../../build/NEWS:3552 ../../../build/NEWS:8086 msgid "" "`bpo-32684 `__: Fix gather to propagate " "cancellation of itself even with return_exceptions." msgstr "" -#: ../../../build/NEWS:2931 +#: ../../../build/NEWS:3555 msgid "" "`bpo-33654 `__: Support protocol type " "switching in SSLTransport.set_protocol()." msgstr "" -#: ../../../build/NEWS:2933 +#: ../../../build/NEWS:3557 msgid "" "`bpo-33674 `__: Pause the transport as " -"early as possible to further reduce the risk of data_received() being called" -" before connection_made()." +"early as possible to further reduce the risk of data_received() being called " +"before connection_made()." msgstr "" -#: ../../../build/NEWS:2936 ../../../build/NEWS:7465 +#: ../../../build/NEWS:3560 ../../../build/NEWS:8089 msgid "" "`bpo-33674 `__: Fix a race condition in " "SSLProtocol.connection_made() of asyncio.sslproto: start immediately the " -"handshake instead of using call_soon(). Previously, data_received() could be" -" called before the handshake started, causing the handshake to hang or fail." +"handshake instead of using call_soon(). Previously, data_received() could be " +"called before the handshake started, causing the handshake to hang or fail." msgstr "" -#: ../../../build/NEWS:2941 ../../../build/NEWS:7470 +#: ../../../build/NEWS:3565 ../../../build/NEWS:8094 msgid "" "`bpo-31647 `__: Fixed bug where calling " "write_eof() on a _SelectorSocketTransport after it's already closed raises " "AttributeError." msgstr "" -#: ../../../build/NEWS:2944 +#: ../../../build/NEWS:3568 msgid "" -"`bpo-32610 `__: Make asyncio.all_tasks()" -" return only pending tasks." +"`bpo-32610 `__: Make asyncio.all_tasks() " +"return only pending tasks." msgstr "" -#: ../../../build/NEWS:2946 +#: ../../../build/NEWS:3570 msgid "" "`bpo-32410 `__: Avoid blocking on file " "IO in sendfile fallback code" msgstr "" -#: ../../../build/NEWS:2948 ../../../build/NEWS:7475 +#: ../../../build/NEWS:3572 ../../../build/NEWS:8099 msgid "" "`bpo-33469 `__: Fix RuntimeError after " "closing loop that used run_in_executor" msgstr "" -#: ../../../build/NEWS:2950 ../../../build/NEWS:7473 +#: ../../../build/NEWS:3574 ../../../build/NEWS:8097 msgid "" "`bpo-33672 `__: Fix Task.__repr__ crash " "with Cython's bogus coroutines" msgstr "" -#: ../../../build/NEWS:2952 +#: ../../../build/NEWS:3576 msgid "" -"`bpo-33654 `__: Fix " -"transport.set_protocol() to support switching between asyncio.Protocol and " -"asyncio.BufferedProtocol. Fix loop.start_tls() to work with " -"asyncio.BufferedProtocols." +"`bpo-33654 `__: Fix transport." +"set_protocol() to support switching between asyncio.Protocol and asyncio." +"BufferedProtocol. Fix loop.start_tls() to work with asyncio." +"BufferedProtocols." msgstr "" -#: ../../../build/NEWS:2956 +#: ../../../build/NEWS:3580 msgid "" "`bpo-33652 `__: Pickles of type " "variables and subscripted generics are now future-proof and compatible with " "older Python versions." msgstr "" -#: ../../../build/NEWS:2959 +#: ../../../build/NEWS:3583 msgid "" -"`bpo-32493 `__: Fixed :func:`uuid.uuid1`" -" on FreeBSD." +"`bpo-32493 `__: Fixed :func:`uuid.uuid1` " +"on FreeBSD." msgstr "" -#: ../../../build/NEWS:2961 +#: ../../../build/NEWS:3585 msgid "" "`bpo-33618 `__: Finalize and document " "preliminary and experimental TLS 1.3 support with OpenSSL 1.1.1" msgstr "" -#: ../../../build/NEWS:2964 +#: ../../../build/NEWS:3588 msgid "" -"`bpo-33623 `__: Fix possible SIGSGV when" -" asyncio.Future is created in __del__" +"`bpo-33623 `__: Fix possible SIGSGV when " +"asyncio.Future is created in __del__" msgstr "" -#: ../../../build/NEWS:2966 ../../../build/NEWS:7480 +#: ../../../build/NEWS:3590 ../../../build/NEWS:8104 msgid "" "`bpo-30877 `__: Fixed a bug in the " -"Python implementation of the JSON decoder that prevented the cache of parsed" -" strings from clearing after finishing the decoding. Based on patch by " -"c-fos." +"Python implementation of the JSON decoder that prevented the cache of parsed " +"strings from clearing after finishing the decoding. Based on patch by c-fos." msgstr "" -#: ../../../build/NEWS:2970 +#: ../../../build/NEWS:3594 msgid "" "`bpo-33570 `__: Change TLS 1.3 cipher " "suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL " "1.1.1 will have TLS 1.3 ciphers enabled by default." msgstr "" -#: ../../../build/NEWS:2974 +#: ../../../build/NEWS:3598 msgid "" "`bpo-28556 `__: Do not simplify " "arguments to `typing.Union`. Now `Union[Manager, Employee]` is not " @@ -5765,83 +6889,82 @@ msgid "" "several bugs and limited possibilities for introspection." msgstr "" -#: ../../../build/NEWS:2979 +#: ../../../build/NEWS:3603 msgid "" "`bpo-33540 `__: Add a new " "``block_on_close`` class attribute to ``ForkingMixIn`` and " "``ThreadingMixIn`` classes of :mod:`socketserver`." msgstr "" -#: ../../../build/NEWS:2982 ../../../build/NEWS:7484 +#: ../../../build/NEWS:3606 ../../../build/NEWS:8108 msgid "" -"`bpo-33548 `__: " -"tempfile._candidate_tempdir_list should consider common TEMP locations" +"`bpo-33548 `__: tempfile." +"_candidate_tempdir_list should consider common TEMP locations" msgstr "" -#: ../../../build/NEWS:2985 +#: ../../../build/NEWS:3609 msgid "" "`bpo-33109 `__: argparse subparsers are " "once again not required by default, reverting the change in behavior " "introduced by `bpo-26510 `__ in 3.7.0a2." msgstr "" -#: ../../../build/NEWS:2988 +#: ../../../build/NEWS:3612 msgid "" -"`bpo-33536 `__: " -"dataclasses.make_dataclass now checks for invalid field names and duplicate " -"fields. Also, added a check for invalid field specifications." +"`bpo-33536 `__: dataclasses." +"make_dataclass now checks for invalid field names and duplicate fields. " +"Also, added a check for invalid field specifications." msgstr "" -#: ../../../build/NEWS:2992 ../../../build/NEWS:7487 +#: ../../../build/NEWS:3616 ../../../build/NEWS:8111 msgid "" -"`bpo-33542 `__: Prevent " -"``uuid.get_node`` from using a DUID instead of a MAC on Windows. Patch by " -"Zvi Effron" +"`bpo-33542 `__: Prevent ``uuid." +"get_node`` from using a DUID instead of a MAC on Windows. Patch by Zvi Effron" msgstr "" -#: ../../../build/NEWS:2995 ../../../build/NEWS:7490 +#: ../../../build/NEWS:3619 ../../../build/NEWS:8114 msgid "" "`bpo-26819 `__: Fix race condition with " "`ReadTransport.resume_reading` in Windows proactor event loop." msgstr "" -#: ../../../build/NEWS:2998 +#: ../../../build/NEWS:3622 msgid "" "Fix failure in `typing.get_type_hints()` when ClassVar was provided as a " "string forward reference." msgstr "" -#: ../../../build/NEWS:3001 +#: ../../../build/NEWS:3625 msgid "" -"`bpo-33505 `__: Optimize " -"asyncio.ensure_future() by reordering if checks: 1.17x faster." +"`bpo-33505 `__: Optimize asyncio." +"ensure_future() by reordering if checks: 1.17x faster." msgstr "" -#: ../../../build/NEWS:3004 +#: ../../../build/NEWS:3628 msgid "" -"`bpo-33497 `__: Add errors param to " -"cgi.parse_multipart and make an encoding in FieldStorage use the given " -"errors (needed for Twisted). Patch by Amber Brown." +"`bpo-33497 `__: Add errors param to cgi." +"parse_multipart and make an encoding in FieldStorage use the given errors " +"(needed for Twisted). Patch by Amber Brown." msgstr "" -#: ../../../build/NEWS:3008 +#: ../../../build/NEWS:3632 msgid "" -"`bpo-33495 `__: Change " -"dataclasses.Fields repr to use the repr of each of its members, instead of " -"str. This makes it more clear what each field actually represents. This is" -" especially true for the 'type' member." +"`bpo-33495 `__: Change dataclasses." +"Fields repr to use the repr of each of its members, instead of str. This " +"makes it more clear what each field actually represents. This is especially " +"true for the 'type' member." msgstr "" -#: ../../../build/NEWS:3012 +#: ../../../build/NEWS:3636 msgid "" "`bpo-33453 `__: Fix dataclasses to work " "if using literal string type annotations or if using PEP 563 \"Postponed " "Evaluation of Annotations\". Only specific string prefixes are detected for " -"both ClassVar (\"ClassVar\" and \"typing.ClassVar\") and InitVar " -"(\"InitVar\" and \"dataclasses.InitVar\")." +"both ClassVar (\"ClassVar\" and \"typing.ClassVar\") and InitVar (\"InitVar" +"\" and \"dataclasses.InitVar\")." msgstr "" -#: ../../../build/NEWS:3017 ../../../build/NEWS:7493 +#: ../../../build/NEWS:3641 ../../../build/NEWS:8117 msgid "" "`bpo-28556 `__: Minor fixes in typing " "module: add annotations to ``NamedTuple.__new__``, pass ``*args`` and " @@ -5849,179 +6972,179 @@ msgid "" "Dombrova." msgstr "" -#: ../../../build/NEWS:3021 ../../../build/NEWS:7497 +#: ../../../build/NEWS:3645 ../../../build/NEWS:8121 msgid "" "`bpo-20087 `__: Updated alias mapping " "with glibc 2.27 supported locales." msgstr "" -#: ../../../build/NEWS:3023 ../../../build/NEWS:7499 +#: ../../../build/NEWS:3647 ../../../build/NEWS:8123 msgid "" "`bpo-33422 `__: Fix trailing quotation " "marks getting deleted when looking up byte/string literals on pydoc. Patch " "by Andrés Delfino." msgstr "" -#: ../../../build/NEWS:3026 +#: ../../../build/NEWS:3650 msgid "" -"`bpo-28167 `__: The function " -"``platform.linux_distribution`` and ``platform.dist`` now trigger a " +"`bpo-28167 `__: The function ``platform." +"linux_distribution`` and ``platform.dist`` now trigger a " "``DeprecationWarning`` and have been marked for removal in Python 3.8" msgstr "" -#: ../../../build/NEWS:3030 ../../../build/NEWS:7502 +#: ../../../build/NEWS:3654 ../../../build/NEWS:8126 msgid "" "`bpo-33197 `__: Update error message " "when constructing invalid inspect.Parameters Patch by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:3033 ../../../build/NEWS:7519 +#: ../../../build/NEWS:3657 ../../../build/NEWS:8143 msgid "" "`bpo-33263 `__: Fix FD leak in " "`_SelectorSocketTransport` Patch by Vlad Starostin." msgstr "" -#: ../../../build/NEWS:3036 ../../../build/NEWS:7535 +#: ../../../build/NEWS:3660 ../../../build/NEWS:8159 msgid "" -"`bpo-32861 `__: The urllib.robotparser's" -" ``__str__`` representation now includes wildcard entries and the \"Crawl-" +"`bpo-32861 `__: The urllib.robotparser's " +"``__str__`` representation now includes wildcard entries and the \"Crawl-" "delay\" and \"Request-rate\" fields. Patch by Michael Lazar." msgstr "" -#: ../../../build/NEWS:3040 +#: ../../../build/NEWS:3664 msgid "" "`bpo-32257 `__: The ssl module now " "contains OP_NO_RENEGOTIATION constant, available with OpenSSL 1.1.0h or " "1.1.1." msgstr "" -#: ../../../build/NEWS:3043 ../../../build/NEWS:7563 +#: ../../../build/NEWS:3667 ../../../build/NEWS:8187 msgid "" -"`bpo-16865 `__: Support arrays >=2GiB in" -" :mod:`ctypes`. Patch by Segev Finer." +"`bpo-16865 `__: Support arrays >=2GiB " +"in :mod:`ctypes`. Patch by Segev Finer." msgstr "" -#: ../../../build/NEWS:3048 +#: ../../../build/NEWS:3672 msgid "" -"`bpo-23859 `__: Document that " -"`asyncio.wait()` does not cancel its futures on timeout." +"`bpo-23859 `__: Document that `asyncio." +"wait()` does not cancel its futures on timeout." msgstr "" -#: ../../../build/NEWS:3051 +#: ../../../build/NEWS:3675 msgid "" -"`bpo-32436 `__: Document PEP 567 changes" -" to asyncio." +"`bpo-32436 `__: Document PEP 567 changes " +"to asyncio." msgstr "" -#: ../../../build/NEWS:3053 +#: ../../../build/NEWS:3677 msgid "" "`bpo-33604 `__: Update HMAC md5 default " "to a DeprecationWarning, bump removal to 3.8." msgstr "" -#: ../../../build/NEWS:3056 ../../../build/NEWS:7572 +#: ../../../build/NEWS:3680 ../../../build/NEWS:8196 msgid "" "`bpo-33503 `__: Fix broken pypi link" msgstr "" -#: ../../../build/NEWS:3058 ../../../build/NEWS:7574 +#: ../../../build/NEWS:3682 ../../../build/NEWS:8198 msgid "" "`bpo-33421 `__: Add missing " "documentation for ``typing.AsyncContextManager``." msgstr "" -#: ../../../build/NEWS:3063 ../../../build/NEWS:7610 +#: ../../../build/NEWS:3687 ../../../build/NEWS:8234 msgid "" "`bpo-33655 `__: Ignore " "test_posix_fallocate failures on BSD platforms that might be due to running " "on ZFS." msgstr "" -#: ../../../build/NEWS:3066 +#: ../../../build/NEWS:3690 msgid "" "`bpo-32604 `__: Remove the " "_xxsubinterpreters module (meant for testing) and associated helpers. This " "module was originally added recently in 3.7b1." msgstr "" -#: ../../../build/NEWS:3072 ../../../build/NEWS:7622 +#: ../../../build/NEWS:3696 ../../../build/NEWS:8246 msgid "" "`bpo-33614 `__: Ensures module " "definition files for the stable ABI on Windows are correctly regenerated." msgstr "" -#: ../../../build/NEWS:3075 ../../../build/NEWS:7625 +#: ../../../build/NEWS:3699 ../../../build/NEWS:8249 msgid "" "`bpo-33522 `__: Enable CI builds on " "Visual Studio Team Services at https://python.visualstudio.com/cpython" msgstr "" -#: ../../../build/NEWS:3078 ../../../build/NEWS:7628 +#: ../../../build/NEWS:3702 ../../../build/NEWS:8252 msgid "" -"`bpo-33012 `__: Add ``-Wno-cast-" -"function-type`` for gcc 8 for silencing warnings about function casts like " -"casting to PyCFunction in method definition lists." +"`bpo-33012 `__: Add ``-Wno-cast-function-" +"type`` for gcc 8 for silencing warnings about function casts like casting to " +"PyCFunction in method definition lists." msgstr "" -#: ../../../build/NEWS:3085 +#: ../../../build/NEWS:3709 msgid "" "`bpo-13631 `__: The .editrc file in " "user's home directory is now processed correctly during the readline " "initialization through editline emulation on macOS." msgstr "" -#: ../../../build/NEWS:3092 ../../../build/NEWS:7671 +#: ../../../build/NEWS:3716 ../../../build/NEWS:8295 msgid "" "`bpo-33628 `__: IDLE: Cleanup " "codecontext.py and its test." msgstr "" -#: ../../../build/NEWS:3094 ../../../build/NEWS:7673 +#: ../../../build/NEWS:3718 ../../../build/NEWS:8297 msgid "" "`bpo-33564 `__: IDLE's code context now " "recognizes async as a block opener." msgstr "" -#: ../../../build/NEWS:3096 ../../../build/NEWS:7688 +#: ../../../build/NEWS:3720 ../../../build/NEWS:8312 msgid "" -"`bpo-32831 `__: Add docstrings and tests" -" for codecontext." +"`bpo-32831 `__: Add docstrings and tests " +"for codecontext." msgstr "" -#: ../../../build/NEWS:3100 +#: ../../../build/NEWS:3724 msgid "Python 3.7.0 beta 4" msgstr "" -#: ../../../build/NEWS:3102 +#: ../../../build/NEWS:3726 msgid "*Release date: 2018-05-02*" msgstr "" -#: ../../../build/NEWS:3107 +#: ../../../build/NEWS:3731 msgid "" "`bpo-33363 `__: Raise a SyntaxError for " "``async with`` and ``async for`` statements outside of async functions." msgstr "" -#: ../../../build/NEWS:3110 +#: ../../../build/NEWS:3734 msgid "" "`bpo-33128 `__: Fix a bug that causes " "PathFinder to appear twice on sys.meta_path. Patch by Pablo Galindo Salgado." msgstr "" -#: ../../../build/NEWS:3113 +#: ../../../build/NEWS:3737 msgid "" "`bpo-33312 `__: Fixed clang ubsan " -"(undefined behavior sanitizer) warnings in dictobject.c by adjusting how the" -" internal struct _dictkeysobject shared keys structure is declared." +"(undefined behavior sanitizer) warnings in dictobject.c by adjusting how the " +"internal struct _dictkeysobject shared keys structure is declared." msgstr "" -#: ../../../build/NEWS:3117 ../../../build/NEWS:7430 +#: ../../../build/NEWS:3741 ../../../build/NEWS:8054 msgid "" "`bpo-33231 `__: Fix potential memory " "leak in ``normalizestring()``." msgstr "" -#: ../../../build/NEWS:3119 +#: ../../../build/NEWS:3743 msgid "" "`bpo-33205 `__: Change dict growth " "function from ``round_up_to_power_2(used*2+hashtable_size/2)`` to " @@ -6029,248 +7152,246 @@ msgid "" "``used == 0``. Now dict has more chance to be shrinked." msgstr "" -#: ../../../build/NEWS:3124 ../../../build/NEWS:7432 +#: ../../../build/NEWS:3748 ../../../build/NEWS:8056 msgid "" "`bpo-29922 `__: Improved error messages " "in 'async with' when ``__aenter__()`` or ``__aexit__()`` return non-" "awaitable object." msgstr "" -#: ../../../build/NEWS:3127 ../../../build/NEWS:7435 +#: ../../../build/NEWS:3751 ../../../build/NEWS:8059 msgid "" "`bpo-33199 `__: Fix ``ma_version_tag`` " "in dict implementation is uninitialized when copying from key-sharing dict." msgstr "" -#: ../../../build/NEWS:3133 +#: ../../../build/NEWS:3757 msgid "" -"`bpo-33281 `__: Fix " -"ctypes.util.find_library regression on macOS." +"`bpo-33281 `__: Fix ctypes.util." +"find_library regression on macOS." msgstr "" -#: ../../../build/NEWS:3135 ../../../build/NEWS:7505 +#: ../../../build/NEWS:3759 ../../../build/NEWS:8129 msgid "" -"`bpo-33383 `__: Fixed crash in the get()" -" method of the :mod:`dbm.ndbm` database object when it is called with a " +"`bpo-33383 `__: Fixed crash in the get() " +"method of the :mod:`dbm.ndbm` database object when it is called with a " "single argument." msgstr "" -#: ../../../build/NEWS:3138 ../../../build/NEWS:7508 +#: ../../../build/NEWS:3762 ../../../build/NEWS:8132 msgid "" "`bpo-33329 `__: Fix multiprocessing " "regression on newer glibcs" msgstr "" -#: ../../../build/NEWS:3140 ../../../build/NEWS:7510 +#: ../../../build/NEWS:3764 ../../../build/NEWS:8134 msgid "" "`bpo-991266 `__: Fix quoting of the " "``Comment`` attribute of :class:`http.cookies.SimpleCookie`." msgstr "" -#: ../../../build/NEWS:3143 ../../../build/NEWS:7513 +#: ../../../build/NEWS:3767 ../../../build/NEWS:8137 msgid "" "`bpo-33131 `__: Upgrade bundled version " "of pip to 10.0.1." msgstr "" -#: ../../../build/NEWS:3145 ../../../build/NEWS:7515 +#: ../../../build/NEWS:3769 ../../../build/NEWS:8139 msgid "" -"`bpo-33308 `__: Fixed a crash in the " -":mod:`parser` module when converting an ST object to a tree of tuples or " +"`bpo-33308 `__: Fixed a crash in the :" +"mod:`parser` module when converting an ST object to a tree of tuples or " "lists with ``line_info=False`` and ``col_info=True``." msgstr "" -#: ../../../build/NEWS:3149 +#: ../../../build/NEWS:3773 msgid "" "`bpo-33266 `__: lib2to3 now recognizes " "``rf'...'`` strings." msgstr "" -#: ../../../build/NEWS:3151 +#: ../../../build/NEWS:3775 msgid "" "`bpo-11594 `__: Ensure line-endings are " "respected when using lib2to3." msgstr "" -#: ../../../build/NEWS:3153 +#: ../../../build/NEWS:3777 msgid "" -"`bpo-33254 `__: Have " -":func:`importlib.resources.contents` and " -":meth:`importlib.abc.ResourceReader.contents` return an :term:`iterable` " -"instead of an :term:`iterator`." +"`bpo-33254 `__: Have :func:`importlib." +"resources.contents` and :meth:`importlib.abc.ResourceReader.contents` return " +"an :term:`iterable` instead of an :term:`iterator`." msgstr "" -#: ../../../build/NEWS:3157 ../../../build/NEWS:7522 +#: ../../../build/NEWS:3781 ../../../build/NEWS:8146 msgid "" "`bpo-33256 `__: Fix display of " "```` call in the html produced by ``cgitb.html()``. Patch by " "Stéphane Blondon." msgstr "" -#: ../../../build/NEWS:3160 +#: ../../../build/NEWS:3784 msgid "" "`bpo-33185 `__: Fixed regression when " "running pydoc with the :option:`-m` switch. (The regression was introduced " "in 3.7.0b3 by the resolution of :issue:`33053`)" msgstr "" -#: ../../../build/NEWS:3164 +#: ../../../build/NEWS:3788 msgid "" "This fix also changed pydoc to add ``os.getcwd()`` to :data:`sys.path` when " "necessary, rather than adding ``\".\"``." msgstr "" -#: ../../../build/NEWS:3167 +#: ../../../build/NEWS:3791 msgid "" "`bpo-33169 `__: Delete entries of " -"``None`` in :data:`sys.path_importer_cache` when " -":meth:`importlib.machinery.invalidate_caches` is called." +"``None`` in :data:`sys.path_importer_cache` when :meth:`importlib.machinery." +"invalidate_caches` is called." msgstr "" -#: ../../../build/NEWS:3170 +#: ../../../build/NEWS:3794 msgid "" -"`bpo-33217 `__: Deprecate looking up " -"non-Enum objects in Enum classes and Enum members (will raise " -":exc:`TypeError` in 3.8+)." +"`bpo-33217 `__: Deprecate looking up non-" +"Enum objects in Enum classes and Enum members (will raise :exc:`TypeError` " +"in 3.8+)." msgstr "" -#: ../../../build/NEWS:3173 ../../../build/NEWS:7525 +#: ../../../build/NEWS:3797 ../../../build/NEWS:8149 msgid "" -"`bpo-33203 `__: " -"``random.Random.choice()`` now raises ``IndexError`` for empty sequences " -"consistently even when called from subclasses without a ``getrandbits()`` " -"implementation." +"`bpo-33203 `__: ``random.Random." +"choice()`` now raises ``IndexError`` for empty sequences consistently even " +"when called from subclasses without a ``getrandbits()`` implementation." msgstr "" -#: ../../../build/NEWS:3177 ../../../build/NEWS:7529 +#: ../../../build/NEWS:3801 ../../../build/NEWS:8153 msgid "" "`bpo-33224 `__: Update difflib.mdiff() " -"for PEP 479. Convert an uncaught StopIteration in a generator into a " -"return-statement." +"for PEP 479. Convert an uncaught StopIteration in a generator into a return-" +"statement." msgstr "" -#: ../../../build/NEWS:3180 ../../../build/NEWS:7532 +#: ../../../build/NEWS:3804 ../../../build/NEWS:8156 msgid "" "`bpo-33209 `__: End framing at the end " "of C implementation of :func:`pickle.Pickler.dump`." msgstr "" -#: ../../../build/NEWS:3183 +#: ../../../build/NEWS:3807 msgid "" "`bpo-20104 `__: Improved error handling " "and fixed a reference leak in :func:`os.posix_spawn()`." msgstr "" -#: ../../../build/NEWS:3186 +#: ../../../build/NEWS:3810 msgid "" -"`bpo-33175 `__: In dataclasses, " -"Field.__set_name__ now looks up the __set_name__ special method on the " -"class, not the instance, of the default value." +"`bpo-33175 `__: In dataclasses, Field." +"__set_name__ now looks up the __set_name__ special method on the class, not " +"the instance, of the default value." msgstr "" -#: ../../../build/NEWS:3190 +#: ../../../build/NEWS:3814 msgid "" "`bpo-33097 `__: Raise RuntimeError when " "``executor.submit`` is called during interpreter shutdown." msgstr "" -#: ../../../build/NEWS:3193 ../../../build/NEWS:7556 +#: ../../../build/NEWS:3817 ../../../build/NEWS:8180 msgid "" "`bpo-31908 `__: Fix output of cover " -"files for ``trace`` module command-line tool. Previously emitted cover files" -" only when ``--missing`` option was used. Patch by Michael Selik." +"files for ``trace`` module command-line tool. Previously emitted cover files " +"only when ``--missing`` option was used. Patch by Michael Selik." msgstr "" -#: ../../../build/NEWS:3200 ../../../build/NEWS:7576 +#: ../../../build/NEWS:3824 ../../../build/NEWS:8200 msgid "" "`bpo-33378 `__: Add Korean language " "switcher for https://docs.python.org/3/" msgstr "" -#: ../../../build/NEWS:3202 ../../../build/NEWS:7578 +#: ../../../build/NEWS:3826 ../../../build/NEWS:8202 msgid "" "`bpo-33276 `__: Clarify that the " "``__path__`` attribute on modules cannot be just any value." msgstr "" -#: ../../../build/NEWS:3205 ../../../build/NEWS:7581 +#: ../../../build/NEWS:3829 ../../../build/NEWS:8205 msgid "" "`bpo-33201 `__: Modernize documentation " "for writing C extension types." msgstr "" -#: ../../../build/NEWS:3207 ../../../build/NEWS:7583 +#: ../../../build/NEWS:3831 ../../../build/NEWS:8207 msgid "" -"`bpo-33195 `__: Deprecate ``Py_UNICODE``" -" usage in ``c-api/arg`` document. ``Py_UNICODE`` related APIs are deprecated" -" since Python 3.3, but it is missed in the document." +"`bpo-33195 `__: Deprecate ``Py_UNICODE`` " +"usage in ``c-api/arg`` document. ``Py_UNICODE`` related APIs are deprecated " +"since Python 3.3, but it is missed in the document." msgstr "" -#: ../../../build/NEWS:3211 ../../../build/NEWS:7601 +#: ../../../build/NEWS:3835 ../../../build/NEWS:8225 msgid "" -"`bpo-8243 `__: Add a note about " -"curses.addch and curses.addstr exception behavior when writing outside a " -"window, or pad." +"`bpo-8243 `__: Add a note about curses." +"addch and curses.addstr exception behavior when writing outside a window, or " +"pad." msgstr "" -#: ../../../build/NEWS:3214 +#: ../../../build/NEWS:3838 msgid "" "`bpo-32337 `__: Update documentation " "related with ``dict`` order." msgstr "" -#: ../../../build/NEWS:3219 +#: ../../../build/NEWS:3843 msgid "" -"`bpo-33358 `__: Fix " -"``test_embed.test_pre_initialization_sys_options()`` when the interpreter is" -" built with ``--enable-shared``." +"`bpo-33358 `__: Fix ``test_embed." +"test_pre_initialization_sys_options()`` when the interpreter is built with " +"``--enable-shared``." msgstr "" -#: ../../../build/NEWS:3225 ../../../build/NEWS:7632 +#: ../../../build/NEWS:3849 ../../../build/NEWS:8256 msgid "" -"`bpo-33394 `__: Enable the verbose build" -" for extension modules, when GNU make is passed macros on the command line." +"`bpo-33394 `__: Enable the verbose build " +"for extension modules, when GNU make is passed macros on the command line." msgstr "" -#: ../../../build/NEWS:3228 +#: ../../../build/NEWS:3852 msgid "" "`bpo-33393 `__: Update config.guess and " "config.sub files." msgstr "" -#: ../../../build/NEWS:3230 +#: ../../../build/NEWS:3854 msgid "" "`bpo-33377 `__: Add new triplets for " "mips r6 and riscv variants (used in extension suffixes)." msgstr "" -#: ../../../build/NEWS:3233 +#: ../../../build/NEWS:3857 msgid "" "`bpo-32232 `__: By default, modules " "configured in `Modules/Setup` are no longer built with `-DPy_BUILD_CORE`. " -"Instead, modules that specifically need that preprocessor definition include" -" it in their individual entries." +"Instead, modules that specifically need that preprocessor definition include " +"it in their individual entries." msgstr "" -#: ../../../build/NEWS:3237 +#: ../../../build/NEWS:3861 msgid "" "`bpo-33182 `__: The embedding tests can " "once again be built with clang 6.0" msgstr "" -#: ../../../build/NEWS:3242 +#: ../../../build/NEWS:3866 msgid "" -"`bpo-33184 `__: Update Windows installer" -" to use OpenSSL 1.1.0h." +"`bpo-33184 `__: Update Windows installer " +"to use OpenSSL 1.1.0h." msgstr "" -#: ../../../build/NEWS:3247 +#: ../../../build/NEWS:3871 msgid "" "`bpo-33184 `__: Update macOS installer " "build to use OpenSSL 1.1.0h." msgstr "" -#: ../../../build/NEWS:3252 ../../../build/NEWS:7678 +#: ../../../build/NEWS:3876 ../../../build/NEWS:8302 msgid "" "`bpo-21474 `__: Update word/identifier " "definition from ascii to unicode. In text and entry boxes, this affects " @@ -6278,63 +7399,63 @@ msgid "" "deletion left/right by control-BACKSPACE/DEL." msgstr "" -#: ../../../build/NEWS:3257 ../../../build/NEWS:7683 +#: ../../../build/NEWS:3881 ../../../build/NEWS:8307 msgid "" -"`bpo-33204 `__: IDLE: consistently color" -" invalid string prefixes. A 'u' string prefix cannot be paired with either " -"'r' or 'f'. Consistently color as much of the prefix, starting at the right," -" as is valid. Revise and extend colorizer test." +"`bpo-33204 `__: IDLE: consistently color " +"invalid string prefixes. A 'u' string prefix cannot be paired with either " +"'r' or 'f'. Consistently color as much of the prefix, starting at the right, " +"as is valid. Revise and extend colorizer test." msgstr "" -#: ../../../build/NEWS:3265 ../../../build/NEWS:7693 +#: ../../../build/NEWS:3889 ../../../build/NEWS:8317 msgid "" "`bpo-33189 `__: :program:`pygettext.py` " "now recognizes only literal strings as docstrings and translatable strings, " "and rejects bytes literals and f-string expressions." msgstr "" -#: ../../../build/NEWS:3269 ../../../build/NEWS:7697 +#: ../../../build/NEWS:3893 ../../../build/NEWS:8321 msgid "" "`bpo-31920 `__: Fixed handling " -"directories as arguments in the ``pygettext`` script. Based on patch by Oleg" -" Krasnikov." +"directories as arguments in the ``pygettext`` script. Based on patch by Oleg " +"Krasnikov." msgstr "" -#: ../../../build/NEWS:3272 ../../../build/NEWS:7700 +#: ../../../build/NEWS:3896 ../../../build/NEWS:8324 msgid "" -"`bpo-29673 `__: Fix pystackv and pystack" -" gdbinit macros." +"`bpo-29673 `__: Fix pystackv and pystack " +"gdbinit macros." msgstr "" -#: ../../../build/NEWS:3274 ../../../build/NEWS:7705 +#: ../../../build/NEWS:3898 ../../../build/NEWS:8329 msgid "" "`bpo-31583 `__: Fix 2to3 for using with " "--add-suffix option but without --output-dir option for relative path to " "files in current directory." msgstr "" -#: ../../../build/NEWS:3279 +#: ../../../build/NEWS:3903 msgid "Python 3.7.0 beta 3" msgstr "" -#: ../../../build/NEWS:3281 +#: ../../../build/NEWS:3905 msgid "*Release date: 2018-03-29*" msgstr "" -#: ../../../build/NEWS:3286 +#: ../../../build/NEWS:3910 msgid "" "`bpo-33136 `__: Harden ssl module " -"against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with" -" an explicit namelen. A new test ensures that NULL bytes are not allowed." +"against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with " +"an explicit namelen. A new test ensures that NULL bytes are not allowed." msgstr "" -#: ../../../build/NEWS:3290 ../../../build/NEWS:7739 +#: ../../../build/NEWS:3914 ../../../build/NEWS:8363 msgid "" "`bpo-33001 `__: Minimal fix to prevent " "buffer overrun in os.symlink on Windows" msgstr "" -#: ../../../build/NEWS:3292 ../../../build/NEWS:7741 +#: ../../../build/NEWS:3916 ../../../build/NEWS:8365 msgid "" "`bpo-32981 `__: Regexes in difflib and " "poplib were vulnerable to catastrophic backtracking. These regexes formed " @@ -6342,7 +7463,7 @@ msgid "" "CVE-2018-1060 and CVE-2018-1061. Patch by Jamie Davis." msgstr "" -#: ../../../build/NEWS:3300 +#: ../../../build/NEWS:3924 msgid "" "`bpo-33053 `__: When using the -m " "switch, sys.path[0] is now explicitly expanded as the *starting* working " @@ -6350,7 +7471,7 @@ msgid "" "from the current working directory at the time of the import)" msgstr "" -#: ../../../build/NEWS:3305 +#: ../../../build/NEWS:3929 msgid "" "`bpo-33018 `__: Improve consistency of " "errors raised by ``issubclass()`` when called with a non-class and an " @@ -6358,61 +7479,61 @@ msgid "" "by Josh Bronson." msgstr "" -#: ../../../build/NEWS:3309 ../../../build/NEWS:7438 +#: ../../../build/NEWS:3933 ../../../build/NEWS:8062 msgid "" "`bpo-33041 `__: Fixed jumping when the " "function contains an ``async for`` loop." msgstr "" -#: ../../../build/NEWS:3311 ../../../build/NEWS:7749 +#: ../../../build/NEWS:3935 ../../../build/NEWS:8373 msgid "" "`bpo-33026 `__: Fixed jumping out of " "\"with\" block by setting f_lineno." msgstr "" -#: ../../../build/NEWS:3313 +#: ../../../build/NEWS:3937 msgid "" -"`bpo-33005 `__: Fix a crash on fork when" -" using a custom memory allocator (ex: using PYTHONMALLOC env var). " +"`bpo-33005 `__: Fix a crash on fork when " +"using a custom memory allocator (ex: using PYTHONMALLOC env var). " "_PyGILState_Reinit() and _PyInterpreterState_Enable() now use the default " "RAW memory allocator to allocate a new interpreters mutex on fork." msgstr "" -#: ../../../build/NEWS:3318 ../../../build/NEWS:7751 +#: ../../../build/NEWS:3942 ../../../build/NEWS:8375 msgid "" "`bpo-17288 `__: Prevent jumps from " "'return' and 'exception' trace events." msgstr "" -#: ../../../build/NEWS:3320 +#: ../../../build/NEWS:3944 msgid "" "`bpo-32836 `__: Don't use temporary " "variables in cases of list/dict/set comprehensions" msgstr "" -#: ../../../build/NEWS:3326 +#: ../../../build/NEWS:3950 msgid "" "`bpo-33141 `__: Have Field objects pass " "through __set_name__ to their default values, if they have their own " "__set_name__." msgstr "" -#: ../../../build/NEWS:3329 ../../../build/NEWS:7539 +#: ../../../build/NEWS:3953 ../../../build/NEWS:8163 msgid "" -"`bpo-33096 `__: Allow " -"ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0" -" and iid=False would be same. Patch by Garvit Khatri." +"`bpo-33096 `__: Allow ttk.Treeview." +"insert to insert iid that has a false boolean value. Note iid=0 and " +"iid=False would be same. Patch by Garvit Khatri." msgstr "" -#: ../../../build/NEWS:3333 +#: ../../../build/NEWS:3957 msgid "" -"`bpo-32873 `__: Treat type variables and" -" special typing forms as immutable by copy and pickle. This fixes several " +"`bpo-32873 `__: Treat type variables and " +"special typing forms as immutable by copy and pickle. This fixes several " "minor issues and inconsistencies, and improves backwards compatibility with " "Python 3.6." msgstr "" -#: ../../../build/NEWS:3337 +#: ../../../build/NEWS:3961 msgid "" "`bpo-33134 `__: When computing " "dataclass's __hash__, use the lookup table to contain the function which " @@ -6420,228 +7541,228 @@ msgid "" "string, and then testing that string to see what to do." msgstr "" -#: ../../../build/NEWS:3342 ../../../build/NEWS:7543 +#: ../../../build/NEWS:3966 ../../../build/NEWS:8167 msgid "" "`bpo-33127 `__: The ssl module now " "compiles with LibreSSL 2.7.1." msgstr "" -#: ../../../build/NEWS:3344 +#: ../../../build/NEWS:3968 msgid "" "`bpo-32505 `__: Raise TypeError if a " "member variable of a dataclass is of type Field, but doesn't have a type " "annotation." msgstr "" -#: ../../../build/NEWS:3347 +#: ../../../build/NEWS:3971 msgid "" "`bpo-33078 `__: Fix the failure on OSX " "caused by the tests relying on sem_getvalue" msgstr "" -#: ../../../build/NEWS:3350 +#: ../../../build/NEWS:3974 msgid "" "`bpo-33116 `__: Add 'Field' to " "dataclasses.__all__." msgstr "" -#: ../../../build/NEWS:3352 +#: ../../../build/NEWS:3976 msgid "" "`bpo-32896 `__: Fix an error where " "subclassing a dataclass with a field that uses a default_factory would " "generate an incorrect class." msgstr "" -#: ../../../build/NEWS:3355 +#: ../../../build/NEWS:3979 msgid "" "`bpo-33100 `__: Dataclasses: If a field " -"has a default value that's a MemberDescriptorType, then it's from that field" -" being in __slots__, not an actual default value." +"has a default value that's a MemberDescriptorType, then it's from that field " +"being in __slots__, not an actual default value." msgstr "" -#: ../../../build/NEWS:3359 +#: ../../../build/NEWS:3983 msgid "" "`bpo-32953 `__: If a non-dataclass " "inherits from a frozen dataclass, allow attributes to be added to the " -"derived class. Only attributes from the frozen dataclass cannot be assigned" -" to. Require all dataclasses in a hierarchy to be either all frozen or all " +"derived class. Only attributes from the frozen dataclass cannot be assigned " +"to. Require all dataclasses in a hierarchy to be either all frozen or all " "non-frozen." msgstr "" -#: ../../../build/NEWS:3364 +#: ../../../build/NEWS:3988 msgid "" -"`bpo-33061 `__: Add missing ``NoReturn``" -" to ``__all__`` in typing.py" +"`bpo-33061 `__: Add missing ``NoReturn`` " +"to ``__all__`` in typing.py" msgstr "" -#: ../../../build/NEWS:3366 +#: ../../../build/NEWS:3990 msgid "" -"`bpo-33078 `__: Fix the size handling in" -" multiprocessing.Queue when a pickling error occurs." +"`bpo-33078 `__: Fix the size handling in " +"multiprocessing.Queue when a pickling error occurs." msgstr "" -#: ../../../build/NEWS:3369 ../../../build/NEWS:7795 +#: ../../../build/NEWS:3993 ../../../build/NEWS:8419 msgid "" "`bpo-33064 `__: lib2to3 now properly " "supports trailing commas after ``*args`` and ``**kwargs`` in function " "signatures." msgstr "" -#: ../../../build/NEWS:3372 +#: ../../../build/NEWS:3996 msgid "" "`bpo-33056 `__: FIX properly close " "leaking fds in concurrent.futures.ProcessPoolExecutor." msgstr "" -#: ../../../build/NEWS:3375 ../../../build/NEWS:7545 +#: ../../../build/NEWS:3999 ../../../build/NEWS:8169 msgid "" "`bpo-33021 `__: Release the GIL during " -"fstat() calls, avoiding hang of all threads when calling mmap.mmap(), " -"os.urandom(), and random.seed(). Patch by Nir Soffer." +"fstat() calls, avoiding hang of all threads when calling mmap.mmap(), os." +"urandom(), and random.seed(). Patch by Nir Soffer." msgstr "" -#: ../../../build/NEWS:3379 ../../../build/NEWS:7798 +#: ../../../build/NEWS:4003 ../../../build/NEWS:8422 msgid "" "`bpo-31804 `__: Avoid failing in " "multiprocessing.Process if the standard streams are closed or None at exit." msgstr "" -#: ../../../build/NEWS:3382 ../../../build/NEWS:7801 +#: ../../../build/NEWS:4006 ../../../build/NEWS:8425 msgid "" "`bpo-33037 `__: Skip sending/receiving " "data after SSL transport closing." msgstr "" -#: ../../../build/NEWS:3384 ../../../build/NEWS:7549 +#: ../../../build/NEWS:4008 ../../../build/NEWS:8173 msgid "" -"`bpo-27683 `__: Fix a regression in " -":mod:`ipaddress` that result of :meth:`hosts` is empty when the network is " +"`bpo-27683 `__: Fix a regression in :mod:" +"`ipaddress` that result of :meth:`hosts` is empty when the network is " "constructed by a tuple containing an integer mask and only 1 bit left for " "addresses." msgstr "" -#: ../../../build/NEWS:3388 +#: ../../../build/NEWS:4012 msgid "" "`bpo-32999 `__: Fix C implementation of " "``ABC.__subclasscheck__(cls, subclass)`` crashed when ``subclass`` is not a " "type object." msgstr "" -#: ../../../build/NEWS:3391 ../../../build/NEWS:7805 +#: ../../../build/NEWS:4015 ../../../build/NEWS:8429 msgid "" "`bpo-33009 `__: Fix inspect.signature() " "for single-parameter partialmethods." msgstr "" -#: ../../../build/NEWS:3393 ../../../build/NEWS:7807 +#: ../../../build/NEWS:4017 ../../../build/NEWS:8431 msgid "" "`bpo-32969 `__: Expose several missing " "constants in zlib and fix corresponding documentation." msgstr "" -#: ../../../build/NEWS:3396 +#: ../../../build/NEWS:4020 msgid "" "`bpo-32056 `__: Improved exceptions " "raised for invalid number of channels and sample width when read an audio " "file in modules :mod:`aifc`, :mod:`wave` and :mod:`sunau`." msgstr "" -#: ../../../build/NEWS:3400 ../../../build/NEWS:7553 +#: ../../../build/NEWS:4024 ../../../build/NEWS:8177 msgid "" -"`bpo-32844 `__: Fix wrong redirection of" -" a low descriptor (0 or 1) to stderr in subprocess if another low descriptor" -" is closed." +"`bpo-32844 `__: Fix wrong redirection of " +"a low descriptor (0 or 1) to stderr in subprocess if another low descriptor " +"is closed." msgstr "" -#: ../../../build/NEWS:3403 ../../../build/NEWS:7825 +#: ../../../build/NEWS:4027 ../../../build/NEWS:8449 msgid "" "`bpo-32857 `__: In :mod:`tkinter`, " "``after_cancel(None)`` now raises a :exc:`ValueError` instead of canceling " "the first scheduled function. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:3407 +#: ../../../build/NEWS:4031 msgid "" "`bpo-31639 `__: http.server now exposes " -"a ThreadedHTTPServer class and uses it when the module is run with ``-m`` to" -" cope with web browsers pre-opening sockets." +"a ThreadedHTTPServer class and uses it when the module is run with ``-m`` to " +"cope with web browsers pre-opening sockets." msgstr "" -#: ../../../build/NEWS:3411 +#: ../../../build/NEWS:4035 msgid "" -"`bpo-27645 `__: " -":class:`sqlite3.Connection` now exposes a " -":class:`~sqlite3.Connection.backup` method, if the underlying SQLite library" -" is at version 3.6.11 or higher. Patch by Lele Gaifax." +"`bpo-27645 `__: :class:`sqlite3." +"Connection` now exposes a :class:`~sqlite3.Connection.backup` method, if the " +"underlying SQLite library is at version 3.6.11 or higher. Patch by Lele " +"Gaifax." msgstr "" -#: ../../../build/NEWS:3418 ../../../build/NEWS:7587 +#: ../../../build/NEWS:4042 ../../../build/NEWS:8211 msgid "" "`bpo-33126 `__: Document " "PyBuffer_ToContiguous()." msgstr "" -#: ../../../build/NEWS:3420 ../../../build/NEWS:7589 +#: ../../../build/NEWS:4044 ../../../build/NEWS:8213 msgid "" -"`bpo-27212 `__: Modify documentation for" -" the :func:`islice` recipe to consume initial values up to the start index." +"`bpo-27212 `__: Modify documentation for " +"the :func:`islice` recipe to consume initial values up to the start index." msgstr "" -#: ../../../build/NEWS:3423 ../../../build/NEWS:7592 +#: ../../../build/NEWS:4047 ../../../build/NEWS:8216 msgid "" "`bpo-28247 `__: Update :mod:`zipapp` " "documentation to describe how to make standalone applications." msgstr "" -#: ../../../build/NEWS:3426 ../../../build/NEWS:7595 +#: ../../../build/NEWS:4050 ../../../build/NEWS:8219 msgid "" "`bpo-18802 `__: Documentation changes " "for ipaddress. Patch by Jon Foster and Berker Peksag." msgstr "" -#: ../../../build/NEWS:3429 ../../../build/NEWS:7598 +#: ../../../build/NEWS:4053 ../../../build/NEWS:8222 msgid "" "`bpo-27428 `__: Update documentation to " -"clarify that ``WindowsRegistryFinder`` implements ``MetaPathFinder``. (Patch" -" by Himanshu Lakhara)" +"clarify that ``WindowsRegistryFinder`` implements ``MetaPathFinder``. (Patch " +"by Himanshu Lakhara)" msgstr "" -#: ../../../build/NEWS:3435 ../../../build/NEWS:7723 +#: ../../../build/NEWS:4059 ../../../build/NEWS:8347 msgid "" "`bpo-32872 `__: Avoid regrtest " "compatibility issue with namespace packages." msgstr "" -#: ../../../build/NEWS:3437 ../../../build/NEWS:7949 +#: ../../../build/NEWS:4061 ../../../build/NEWS:8573 msgid "" "`bpo-32517 `__: Fix failing " "``test_asyncio`` on macOS 10.12.2+ due to transport of ``KqueueSelector`` " "loop was not being closed." msgstr "" -#: ../../../build/NEWS:3440 ../../../build/NEWS:7613 +#: ../../../build/NEWS:4064 ../../../build/NEWS:8237 msgid "`bpo-19417 `__: Add test_bdb.py." msgstr "" -#: ../../../build/NEWS:3445 ../../../build/NEWS:7728 +#: ../../../build/NEWS:4069 ../../../build/NEWS:8352 msgid "" -"`bpo-33163 `__: Upgrade pip to 9.0.3 and" -" setuptools to v39.0.1." +"`bpo-33163 `__: Upgrade pip to 9.0.3 and " +"setuptools to v39.0.1." msgstr "" -#: ../../../build/NEWS:3450 ../../../build/NEWS:7970 +#: ../../../build/NEWS:4074 ../../../build/NEWS:8594 msgid "" "`bpo-33016 `__: Fix potential use of " "uninitialized memory in nt._getfinalpathname" msgstr "" -#: ../../../build/NEWS:3453 ../../../build/NEWS:7973 +#: ../../../build/NEWS:4077 ../../../build/NEWS:8597 msgid "" -"`bpo-32903 `__: Fix a memory leak in " -"os.chdir() on Windows if the current directory is set to a UNC path." +"`bpo-32903 `__: Fix a memory leak in os." +"chdir() on Windows if the current directory is set to a UNC path." msgstr "" -#: ../../../build/NEWS:3459 +#: ../../../build/NEWS:4083 msgid "" "`bpo-32726 `__: Build and link with " "private copy of Tcl/Tk 8.6 for the macOS 10.6+ installer. The 10.9+ " @@ -6651,99 +7772,99 @@ msgid "" "as ActiveTcl." msgstr "" -#: ../../../build/NEWS:3468 ../../../build/NEWS:8003 +#: ../../../build/NEWS:4092 ../../../build/NEWS:8627 msgid "" "`bpo-32984 `__: Set ``__file__`` while " "running a startup file. Like Python, IDLE optionally runs one startup file " "in the Shell window before presenting the first interactive input prompt. " -"For IDLE, ``-s`` runs a file named in environmental variable " -":envvar:`IDLESTARTUP` or :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``." -" Python sets ``__file__`` to the startup file name before running the file " -"and unsets it before the first prompt. IDLE now does the same when run " +"For IDLE, ``-s`` runs a file named in environmental variable :envvar:" +"`IDLESTARTUP` or :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``. Python " +"sets ``__file__`` to the startup file name before running the file and " +"unsets it before the first prompt. IDLE now does the same when run " "normally, without the ``-n`` option." msgstr "" -#: ../../../build/NEWS:3477 ../../../build/NEWS:8012 +#: ../../../build/NEWS:4101 ../../../build/NEWS:8636 msgid "" "`bpo-32940 `__: Simplify and rename " "StringTranslatePseudoMapping in pyparse." msgstr "" -#: ../../../build/NEWS:3482 ../../../build/NEWS:7702 +#: ../../../build/NEWS:4106 ../../../build/NEWS:8326 msgid "" "`bpo-32885 `__: Add an ``-n`` flag for " "``Tools/scripts/pathfix.py`` to disable automatic backup creation (files " "with ``~`` suffix)." msgstr "" -#: ../../../build/NEWS:3488 +#: ../../../build/NEWS:4112 msgid "" "`bpo-33042 `__: Embedding applications " "may once again call PySys_ResetWarnOptions, PySys_AddWarnOption, and " "PySys_AddXOption prior to calling Py_Initialize." msgstr "" -#: ../../../build/NEWS:3492 ../../../build/NEWS:7711 +#: ../../../build/NEWS:4116 ../../../build/NEWS:8335 msgid "" -"`bpo-32374 `__: Document that m_traverse" -" for multi-phase initialized modules can be called with m_state=NULL, and " -"add a sanity check" +"`bpo-32374 `__: Document that m_traverse " +"for multi-phase initialized modules can be called with m_state=NULL, and add " +"a sanity check" msgstr "" -#: ../../../build/NEWS:3497 +#: ../../../build/NEWS:4121 msgid "Python 3.7.0 beta 2" msgstr "" -#: ../../../build/NEWS:3499 +#: ../../../build/NEWS:4123 msgid "*Release date: 2018-02-27*" msgstr "" -#: ../../../build/NEWS:3504 +#: ../../../build/NEWS:4128 msgid "" "`bpo-28414 `__: The ssl module now " "allows users to perform their own IDN en/decoding when using SNI." msgstr "" -#: ../../../build/NEWS:3510 ../../../build/NEWS:7753 +#: ../../../build/NEWS:4134 ../../../build/NEWS:8377 msgid "" "`bpo-32889 `__: Update Valgrind " "suppression list to account for the rename of ``Py_ADDRESS_IN_RANG`` to " "``address_in_range``." msgstr "" -#: ../../../build/NEWS:3513 +#: ../../../build/NEWS:4137 msgid "" -"`bpo-31356 `__: Remove the new API added" -" in `bpo-31356 `__ (gc.ensure_disabled()" -" context manager)." +"`bpo-31356 `__: Remove the new API added " +"in `bpo-31356 `__ (gc.ensure_disabled() " +"context manager)." msgstr "" -#: ../../../build/NEWS:3516 +#: ../../../build/NEWS:4140 msgid "" "`bpo-32305 `__: For namespace packages, " "ensure that both ``__file__`` and ``__spec__.origin`` are set to None." msgstr "" -#: ../../../build/NEWS:3519 +#: ../../../build/NEWS:4143 msgid "" -"`bpo-32303 `__: Make sure " -"``__spec__.loader`` matches ``__loader__`` for namespace packages." +"`bpo-32303 `__: Make sure ``__spec__." +"loader`` matches ``__loader__`` for namespace packages." msgstr "" -#: ../../../build/NEWS:3522 +#: ../../../build/NEWS:4146 msgid "" -"`bpo-32711 `__: Fix the warning messages" -" for Python/ast_unparse.c. Patch by Stéphane Wirtel" +"`bpo-32711 `__: Fix the warning messages " +"for Python/ast_unparse.c. Patch by Stéphane Wirtel" msgstr "" -#: ../../../build/NEWS:3525 ../../../build/NEWS:7764 +#: ../../../build/NEWS:4149 ../../../build/NEWS:8388 msgid "" -"`bpo-32583 `__: Fix possible crashing in" -" builtin Unicode decoders caused by write out-of-bound errors when using " +"`bpo-32583 `__: Fix possible crashing in " +"builtin Unicode decoders caused by write out-of-bound errors when using " "customized decode error handlers." msgstr "" -#: ../../../build/NEWS:3531 +#: ../../../build/NEWS:4155 msgid "" "`bpo-32960 `__: For dataclasses, " "disallow inheriting frozen from non-frozen classes, and also disallow " @@ -6751,13 +7872,13 @@ msgid "" "at a future date." msgstr "" -#: ../../../build/NEWS:3535 ../../../build/NEWS:7810 +#: ../../../build/NEWS:4159 ../../../build/NEWS:8434 msgid "" "`bpo-32713 `__: Fixed tarfile.itn " "handling of out-of-bounds float values. Patch by Joffrey Fuhrer." msgstr "" -#: ../../../build/NEWS:3538 +#: ../../../build/NEWS:4162 msgid "" "`bpo-32951 `__: Direct instantiation of " "SSLSocket and SSLObject objects is now prohibited. The constructors were " @@ -6765,7 +7886,7 @@ msgid "" "suppose to use ssl.wrap_socket() or SSLContext." msgstr "" -#: ../../../build/NEWS:3543 +#: ../../../build/NEWS:4167 msgid "" "`bpo-32929 `__: Remove the tri-state " "parameter \"hash\", and add the boolean \"unsafe_hash\". If unsafe_hash is " @@ -6775,68 +7896,67 @@ msgid "" "behavior. unsafe_hash=False is the default, just as hash=None used to be." msgstr "" -#: ../../../build/NEWS:3550 +#: ../../../build/NEWS:4174 msgid "" "`bpo-32947 `__: Add " "OP_ENABLE_MIDDLEBOX_COMPAT and test workaround for TLSv1.3 for future " "compatibility with OpenSSL 1.1.1." msgstr "" -#: ../../../build/NEWS:3553 ../../../build/NEWS:7813 +#: ../../../build/NEWS:4177 ../../../build/NEWS:8437 msgid "" "`bpo-30622 `__: The ssl module now " "detects missing NPN support in LibreSSL." msgstr "" -#: ../../../build/NEWS:3555 ../../../build/NEWS:7815 +#: ../../../build/NEWS:4179 ../../../build/NEWS:8439 msgid "" "`bpo-32922 `__: dbm.open() now encodes " "filename with the filesystem encoding rather than default encoding." msgstr "" -#: ../../../build/NEWS:3558 ../../../build/NEWS:7818 +#: ../../../build/NEWS:4182 ../../../build/NEWS:8442 msgid "" "`bpo-32859 `__: In ``os.dup2``, don't " "check every call whether the ``dup3`` syscall exists or not." msgstr "" -#: ../../../build/NEWS:3561 +#: ../../../build/NEWS:4185 msgid "" -"`bpo-32556 `__: nt._getfinalpathname, " -"nt._getvolumepathname and nt._getdiskusage now correctly convert from bytes." +"`bpo-32556 `__: nt._getfinalpathname, nt." +"_getvolumepathname and nt._getdiskusage now correctly convert from bytes." msgstr "" -#: ../../../build/NEWS:3564 +#: ../../../build/NEWS:4188 msgid "" -"`bpo-25988 `__: Emit a " -":exc:`DeprecationWarning` when using or importing an ABC directly from " -":mod:`collections` rather than from :mod:`collections.abc`." +"`bpo-25988 `__: Emit a :exc:" +"`DeprecationWarning` when using or importing an ABC directly from :mod:" +"`collections` rather than from :mod:`collections.abc`." msgstr "" -#: ../../../build/NEWS:3567 ../../../build/NEWS:7821 +#: ../../../build/NEWS:4191 ../../../build/NEWS:8445 msgid "" "`bpo-21060 `__: Rewrite confusing " -"message from setup.py upload from \"No dist file created in earlier " -"command\" to the more helpful \"Must create and upload files in one " -"command\"." +"message from setup.py upload from \"No dist file created in earlier command" +"\" to the more helpful \"Must create and upload files in one command\"." msgstr "" -#: ../../../build/NEWS:3571 ../../../build/NEWS:7829 +#: ../../../build/NEWS:4195 ../../../build/NEWS:8453 msgid "" "`bpo-32852 `__: Make sure sys.argv " "remains as a list when running trace." msgstr "" -#: ../../../build/NEWS:3573 +#: ../../../build/NEWS:4197 msgid "" "`bpo-31333 `__: ``_abc`` module is " "added. It is a speedup module with C implementations for various functions " -"and methods in ``abc``. Creating an ABC subclass and calling ``isinstance``" -" or ``issubclass`` with an ABC subclass are up to 1.5x faster. In addition, " +"and methods in ``abc``. Creating an ABC subclass and calling ``isinstance`` " +"or ``issubclass`` with an ABC subclass are up to 1.5x faster. In addition, " "this makes Python start-up up to 10% faster." msgstr "" -#: ../../../build/NEWS:3579 +#: ../../../build/NEWS:4203 msgid "" "Note that the new implementation hides internal registry and caches, " "previously accessible via private attributes ``_abc_registry``, " @@ -6845,113 +7965,112 @@ msgid "" "``_abc_registry_clear``, and ``_abc_caches_clear``." msgstr "" -#: ../../../build/NEWS:3585 ../../../build/NEWS:7831 +#: ../../../build/NEWS:4209 ../../../build/NEWS:8455 msgid "" -"`bpo-32841 `__: Fixed " -"`asyncio.Condition` issue which silently ignored cancellation after " -"notifying and cancelling a conditional lock. Patch by Bar Harel." +"`bpo-32841 `__: Fixed `asyncio." +"Condition` issue which silently ignored cancellation after notifying and " +"cancelling a conditional lock. Patch by Bar Harel." msgstr "" -#: ../../../build/NEWS:3589 +#: ../../../build/NEWS:4213 msgid "" -"`bpo-32819 `__: ssl.match_hostname() has" -" been simplified and no longer depends on re and ipaddress module for " +"`bpo-32819 `__: ssl.match_hostname() has " +"been simplified and no longer depends on re and ipaddress module for " "wildcard and IP addresses. Error reporting for invalid wildcards has been " "improved." msgstr "" -#: ../../../build/NEWS:3593 +#: ../../../build/NEWS:4217 msgid "" "`bpo-32394 `__: socket: Remove " "TCP_FASTOPEN,TCP_KEEPCNT,TCP_KEEPIDLE,TCP_KEEPINTVL flags on older version " "Windows during run-time." msgstr "" -#: ../../../build/NEWS:3597 ../../../build/NEWS:7835 +#: ../../../build/NEWS:4221 ../../../build/NEWS:8459 msgid "" "`bpo-31787 `__: Fixed refleaks of " "``__init__()`` methods in various modules. (Contributed by Oren Milman)" msgstr "" -#: ../../../build/NEWS:3600 ../../../build/NEWS:7838 +#: ../../../build/NEWS:4224 ../../../build/NEWS:8462 msgid "" -"`bpo-30157 `__: Fixed guessing quote and" -" delimiter in csv.Sniffer.sniff() when only the last field is quoted. Patch" -" by Jake Davis." +"`bpo-30157 `__: Fixed guessing quote and " +"delimiter in csv.Sniffer.sniff() when only the last field is quoted. Patch " +"by Jake Davis." msgstr "" -#: ../../../build/NEWS:3603 +#: ../../../build/NEWS:4227 msgid "" "`bpo-32792 `__: collections.ChainMap() " "preserves the order of the underlying mappings." msgstr "" -#: ../../../build/NEWS:3606 +#: ../../../build/NEWS:4230 msgid "" -"`bpo-32775 `__: " -":func:`fnmatch.translate()` no longer produces patterns which contain set " -"operations. Sets starting with '[' or containing '--', '&&', '~~' or '||' " -"will be interpreted differently in regular expressions in future versions. " -"Currently they emit warnings. fnmatch.translate() now avoids producing " -"patterns containing such sets by accident." +"`bpo-32775 `__: :func:`fnmatch." +"translate()` no longer produces patterns which contain set operations. Sets " +"starting with '[' or containing '--', '&&', '~~' or '||' will be interpreted " +"differently in regular expressions in future versions. Currently they emit " +"warnings. fnmatch.translate() now avoids producing patterns containing such " +"sets by accident." msgstr "" -#: ../../../build/NEWS:3612 +#: ../../../build/NEWS:4236 msgid "" "`bpo-32622 `__: Implement native fast " "sendfile for Windows proactor event loop." msgstr "" -#: ../../../build/NEWS:3614 ../../../build/NEWS:7844 +#: ../../../build/NEWS:4238 ../../../build/NEWS:8468 msgid "" -"`bpo-32777 `__: Fix a rare but potential" -" pre-exec child process deadlock in subprocess on POSIX systems when marking" -" file descriptors inheritable on exec in the child process. This bug " -"appears to have been introduced in 3.4." +"`bpo-32777 `__: Fix a rare but potential " +"pre-exec child process deadlock in subprocess on POSIX systems when marking " +"file descriptors inheritable on exec in the child process. This bug appears " +"to have been introduced in 3.4." msgstr "" -#: ../../../build/NEWS:3619 ../../../build/NEWS:7849 +#: ../../../build/NEWS:4243 ../../../build/NEWS:8473 msgid "" "`bpo-32647 `__: The ctypes module used " "to depend on indirect linking for dlopen. The shared extension is now " "explicitly linked against libdl on platforms with dl." msgstr "" -#: ../../../build/NEWS:3623 +#: ../../../build/NEWS:4247 msgid "" -"`bpo-32741 `__: Implement " -"``asyncio.TimerHandle.when()`` method." +"`bpo-32741 `__: Implement ``asyncio." +"TimerHandle.when()`` method." msgstr "" -#: ../../../build/NEWS:3625 +#: ../../../build/NEWS:4249 msgid "" -"`bpo-32691 `__: Use mod_spec.parent when" -" running modules with pdb" +"`bpo-32691 `__: Use mod_spec.parent when " +"running modules with pdb" msgstr "" -#: ../../../build/NEWS:3627 ../../../build/NEWS:7853 +#: ../../../build/NEWS:4251 ../../../build/NEWS:8477 msgid "" -"`bpo-32734 `__: Fixed ``asyncio.Lock()``" -" safety issue which allowed acquiring and locking the same lock multiple " +"`bpo-32734 `__: Fixed ``asyncio.Lock()`` " +"safety issue which allowed acquiring and locking the same lock multiple " "times, without it being free. Patch by Bar Harel." msgstr "" -#: ../../../build/NEWS:3631 ../../../build/NEWS:7857 +#: ../../../build/NEWS:4255 ../../../build/NEWS:8481 msgid "" "`bpo-32727 `__: Do not include name " "field in SMTP envelope from address. Patch by Stéphane Wirtel" msgstr "" -#: ../../../build/NEWS:3634 +#: ../../../build/NEWS:4258 msgid "" -"`bpo-31453 `__: Add TLSVersion constants" -" and SSLContext.maximum_version / minimum_version attributes. The new API " -"wraps OpenSSL 1.1 " -"https://www.openssl.org/docs/man1.1.0/ssl/SSL_CTX_set_min_proto_version.html" -" feature." +"`bpo-31453 `__: Add TLSVersion constants " +"and SSLContext.maximum_version / minimum_version attributes. The new API " +"wraps OpenSSL 1.1 https://www.openssl.org/docs/man1.1.0/ssl/" +"SSL_CTX_set_min_proto_version.html feature." msgstr "" -#: ../../../build/NEWS:3639 +#: ../../../build/NEWS:4263 msgid "" "`bpo-24334 `__: Internal implementation " "details of ssl module were cleaned up. The SSLSocket has one less layer of " @@ -6960,221 +8079,221 @@ msgid "" "simplified." msgstr "" -#: ../../../build/NEWS:3644 ../../../build/NEWS:7870 +#: ../../../build/NEWS:4268 ../../../build/NEWS:8494 msgid "" "`bpo-31848 `__: Fix the error handling " "in Aifc_read.initfp() when the SSND chunk is not found. Patch by Zackery " "Spytz." msgstr "" -#: ../../../build/NEWS:3647 +#: ../../../build/NEWS:4271 msgid "" "`bpo-32585 `__: Add Ttk spinbox widget " "to :mod:`tkinter.ttk`. Patch by Alan D Moore." msgstr "" -#: ../../../build/NEWS:3650 +#: ../../../build/NEWS:4274 msgid "" "`bpo-32221 `__: Various functions " -"returning tuple containing IPv6 addresses now omit ``%scope`` part since the" -" same information is already encoded in *scopeid* tuple item. Especially " -"this speeds up :func:`socket.recvfrom` when it receives multicast packet " -"since useless resolving of network interface name is omitted." +"returning tuple containing IPv6 addresses now omit ``%scope`` part since the " +"same information is already encoded in *scopeid* tuple item. Especially this " +"speeds up :func:`socket.recvfrom` when it receives multicast packet since " +"useless resolving of network interface name is omitted." msgstr "" -#: ../../../build/NEWS:3656 +#: ../../../build/NEWS:4280 msgid "" "`bpo-30693 `__: The TarFile class now " "recurses directories in a reproducible way." msgstr "" -#: ../../../build/NEWS:3659 +#: ../../../build/NEWS:4283 msgid "" "`bpo-30693 `__: The ZipFile class now " "recurses directories in a reproducible way." msgstr "" -#: ../../../build/NEWS:3665 +#: ../../../build/NEWS:4289 msgid "" "`bpo-28124 `__: The ssl module function " -"ssl.wrap_socket() has been de-emphasized and deprecated in favor of the more" -" secure and efficient SSLContext.wrap_socket() method." +"ssl.wrap_socket() has been de-emphasized and deprecated in favor of the more " +"secure and efficient SSLContext.wrap_socket() method." msgstr "" -#: ../../../build/NEWS:3669 ../../../build/NEWS:7929 +#: ../../../build/NEWS:4293 ../../../build/NEWS:8553 msgid "" -"`bpo-17232 `__: Clarify docs for -O and " -"-OO. Patch by Terry Reedy." +"`bpo-17232 `__: Clarify docs for -O and -" +"OO. Patch by Terry Reedy." msgstr "" -#: ../../../build/NEWS:3671 +#: ../../../build/NEWS:4295 msgid "" "`bpo-32436 `__: Add documentation for " "the contextvars module (PEP 567)." msgstr "" -#: ../../../build/NEWS:3673 ../../../build/NEWS:7931 +#: ../../../build/NEWS:4297 ../../../build/NEWS:8555 msgid "" "`bpo-32800 `__: Update link to w3c doc " "for xml default namespaces." msgstr "" -#: ../../../build/NEWS:3675 +#: ../../../build/NEWS:4299 msgid "" -"`bpo-11015 `__: Update " -":mod:`test.support` documentation." +"`bpo-11015 `__: Update :mod:`test." +"support` documentation." msgstr "" -#: ../../../build/NEWS:3677 ../../../build/NEWS:7933 +#: ../../../build/NEWS:4301 ../../../build/NEWS:8557 msgid "" -"`bpo-8722 `__: Document " -":meth:`__getattr__` behavior when property :meth:`get` method raises " -":exc:`AttributeError`." +"`bpo-8722 `__: Document :meth:" +"`__getattr__` behavior when property :meth:`get` method raises :exc:" +"`AttributeError`." msgstr "" -#: ../../../build/NEWS:3680 ../../../build/NEWS:7936 +#: ../../../build/NEWS:4304 ../../../build/NEWS:8560 msgid "" "`bpo-32614 `__: Modify RE examples in " "documentation to use raw strings to prevent :exc:`DeprecationWarning` and " "add text to REGEX HOWTO to highlight the deprecation." msgstr "" -#: ../../../build/NEWS:3684 ../../../build/NEWS:7940 +#: ../../../build/NEWS:4308 ../../../build/NEWS:8564 msgid "" "`bpo-31972 `__: Improve docstrings for " "`pathlib.PurePath` subclasses." msgstr "" -#: ../../../build/NEWS:3689 +#: ../../../build/NEWS:4313 msgid "" "`bpo-31809 `__: Add tests to verify " "connection with secp ECDH curves." msgstr "" -#: ../../../build/NEWS:3694 +#: ../../../build/NEWS:4318 msgid "" "`bpo-32898 `__: Fix the python debug " "build when using COUNT_ALLOCS." msgstr "" -#: ../../../build/NEWS:3699 +#: ../../../build/NEWS:4323 msgid "" "`bpo-32901 `__: Update Tcl and Tk " "versions to 8.6.8" msgstr "" -#: ../../../build/NEWS:3701 ../../../build/NEWS:7976 +#: ../../../build/NEWS:4325 ../../../build/NEWS:8600 msgid "" -"`bpo-31966 `__: Fixed " -"WindowsConsoleIO.write() for writing empty data." +"`bpo-31966 `__: Fixed WindowsConsoleIO." +"write() for writing empty data." msgstr "" -#: ../../../build/NEWS:3703 ../../../build/NEWS:7978 +#: ../../../build/NEWS:4327 ../../../build/NEWS:8602 msgid "" -"`bpo-32409 `__: Ensures activate.bat can" -" handle Unicode contents." +"`bpo-32409 `__: Ensures activate.bat can " +"handle Unicode contents." msgstr "" -#: ../../../build/NEWS:3705 ../../../build/NEWS:7980 +#: ../../../build/NEWS:4329 ../../../build/NEWS:8604 msgid "" "`bpo-32457 `__: Improves handling of " "denormalized executable path when launching Python." msgstr "" -#: ../../../build/NEWS:3708 ../../../build/NEWS:7983 +#: ../../../build/NEWS:4332 ../../../build/NEWS:8607 msgid "" -"`bpo-32370 `__: Use the correct encoding" -" for ipconfig output in the uuid module. Patch by Segev Finer." +"`bpo-32370 `__: Use the correct encoding " +"for ipconfig output in the uuid module. Patch by Segev Finer." msgstr "" -#: ../../../build/NEWS:3711 ../../../build/NEWS:7986 +#: ../../../build/NEWS:4335 ../../../build/NEWS:8610 msgid "" "`bpo-29248 `__: Fix :func:`os.readlink` " "on Windows, which was mistakenly treating the ``PrintNameOffset`` field of " -"the reparse data buffer as a number of characters instead of bytes. Patch by" -" Craig Holmquist and SSE4." +"the reparse data buffer as a number of characters instead of bytes. Patch by " +"Craig Holmquist and SSE4." msgstr "" -#: ../../../build/NEWS:3718 +#: ../../../build/NEWS:4342 msgid "" "`bpo-32901 `__: Update macOS 10.9+ " "installer to Tcl/Tk 8.6.8." msgstr "" -#: ../../../build/NEWS:3723 ../../../build/NEWS:8014 +#: ../../../build/NEWS:4347 ../../../build/NEWS:8638 msgid "" "`bpo-32916 `__: Change ``str`` to " "``code`` in pyparse." msgstr "" -#: ../../../build/NEWS:3725 ../../../build/NEWS:8016 +#: ../../../build/NEWS:4349 ../../../build/NEWS:8640 msgid "" "`bpo-32905 `__: Remove unused code in " "pyparse module." msgstr "" -#: ../../../build/NEWS:3727 ../../../build/NEWS:8018 +#: ../../../build/NEWS:4351 ../../../build/NEWS:8642 msgid "" "`bpo-32874 `__: Add tests for pyparse." msgstr "" -#: ../../../build/NEWS:3729 ../../../build/NEWS:8020 +#: ../../../build/NEWS:4353 ../../../build/NEWS:8644 msgid "" "`bpo-32837 `__: Using the system and " "place-dependent default encoding for open() is a bad idea for IDLE's system " "and location-independent files." msgstr "" -#: ../../../build/NEWS:3732 ../../../build/NEWS:8023 +#: ../../../build/NEWS:4356 ../../../build/NEWS:8647 msgid "" "`bpo-32826 `__: Add \"encoding=utf-8\" " -"to open() in IDLE's test_help_about. GUI test test_file_buttons() only looks" -" at initial ascii-only lines, but failed on systems where open() defaults to" -" 'ascii' because readline() internally reads and decodes far enough ahead to" -" encounter a non-ascii character in CREDITS.txt." +"to open() in IDLE's test_help_about. GUI test test_file_buttons() only looks " +"at initial ascii-only lines, but failed on systems where open() defaults to " +"'ascii' because readline() internally reads and decodes far enough ahead to " +"encounter a non-ascii character in CREDITS.txt." msgstr "" -#: ../../../build/NEWS:3738 ../../../build/NEWS:8029 +#: ../../../build/NEWS:4362 ../../../build/NEWS:8653 msgid "" "`bpo-32765 `__: Update configdialog " "General tab docstring to add new widgets to the widget list." msgstr "" -#: ../../../build/NEWS:3744 ../../../build/NEWS:8039 +#: ../../../build/NEWS:4368 ../../../build/NEWS:8663 msgid "" "`bpo-32222 `__: Fix pygettext not " "extracting docstrings for functions with type annotated arguments. Patch by " "Toby Harradine." msgstr "" -#: ../../../build/NEWS:3749 +#: ../../../build/NEWS:4373 msgid "Python 3.7.0 beta 1" msgstr "" -#: ../../../build/NEWS:3751 +#: ../../../build/NEWS:4375 msgid "*Release date: 2018-01-30*" msgstr "" -#: ../../../build/NEWS:3756 +#: ../../../build/NEWS:4380 msgid "" "`bpo-32703 `__: Fix coroutine's " "ResourceWarning when there's an active error set when it's being finalized." msgstr "" -#: ../../../build/NEWS:3759 ../../../build/NEWS:7756 +#: ../../../build/NEWS:4383 ../../../build/NEWS:8380 msgid "" "`bpo-32650 `__: Pdb and other debuggers " "dependent on bdb.py will correctly step over (next command) native " "coroutines. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:3762 +#: ../../../build/NEWS:4386 msgid "" -"`bpo-28685 `__: Optimize list.sort() and" -" sorted() by using type specialized comparisons when possible." +"`bpo-28685 `__: Optimize list.sort() and " +"sorted() by using type specialized comparisons when possible." msgstr "" -#: ../../../build/NEWS:3765 ../../../build/NEWS:7759 +#: ../../../build/NEWS:4389 ../../../build/NEWS:8383 msgid "" "`bpo-32685 `__: Improve suggestion when " "the Python 2 form of print statement is either present on the same line as " @@ -7182,7 +8301,7 @@ msgid "" "instead of a newline. Patch by Nitish Chandra." msgstr "" -#: ../../../build/NEWS:3770 +#: ../../../build/NEWS:4394 msgid "" "`bpo-32697 `__: Python now explicitly " "preserves the definition order of keyword-only parameters. It's always " @@ -7190,49 +8309,49 @@ msgid "" "behavior is now guaranteed and tested." msgstr "" -#: ../../../build/NEWS:3775 +#: ../../../build/NEWS:4399 msgid "" "`bpo-32690 `__: The locals() dictionary " "now displays in the lexical order that variables were defined. Previously, " "the order was reversed." msgstr "" -#: ../../../build/NEWS:3778 +#: ../../../build/NEWS:4402 msgid "" "`bpo-32677 `__: Add ``.isascii()`` " "method to ``str``, ``bytes`` and ``bytearray``. It can be used to test that " "string contains only ASCII characters." msgstr "" -#: ../../../build/NEWS:3782 +#: ../../../build/NEWS:4406 msgid "" "`bpo-32670 `__: Enforce :pep:`479` for " "all code." msgstr "" -#: ../../../build/NEWS:3784 +#: ../../../build/NEWS:4408 msgid "" "This means that manually raising a StopIteration exception from a generator " "is prohibited for all code, regardless of whether 'from __future__ import " "generator_stop' was used or not." msgstr "" -#: ../../../build/NEWS:3788 +#: ../../../build/NEWS:4412 msgid "" "`bpo-32591 `__: Added built-in support " -"for tracking the origin of coroutine objects; see " -"sys.set_coroutine_origin_tracking_depth and CoroutineType.cr_origin. This " +"for tracking the origin of coroutine objects; see sys." +"set_coroutine_origin_tracking_depth and CoroutineType.cr_origin. This " "replaces the asyncio debug mode's use of coroutine wrapping for native " "coroutine objects." msgstr "" -#: ../../../build/NEWS:3793 +#: ../../../build/NEWS:4417 msgid "" "`bpo-31368 `__: Expose preadv and " "pwritev system calls in the os module. Patch by Pablo Galindo" msgstr "" -#: ../../../build/NEWS:3796 +#: ../../../build/NEWS:4420 msgid "" "`bpo-32544 `__: ``hasattr(obj, name)`` " "and ``getattr(obj, name, default)`` are about 4 times faster than before " @@ -7240,38 +8359,38 @@ msgid "" "``__getattribute__``." msgstr "" -#: ../../../build/NEWS:3800 ../../../build/NEWS:7767 +#: ../../../build/NEWS:4424 ../../../build/NEWS:8391 msgid "" "`bpo-26163 `__: Improved frozenset() " -"hash to create more distinct hash values when faced with datasets containing" -" many similar values." +"hash to create more distinct hash values when faced with datasets containing " +"many similar values." msgstr "" -#: ../../../build/NEWS:3803 +#: ../../../build/NEWS:4427 msgid "" "`bpo-32550 `__: Remove the " "STORE_ANNOTATION bytecode." msgstr "" -#: ../../../build/NEWS:3805 +#: ../../../build/NEWS:4429 msgid "" "`bpo-20104 `__: Expose posix_spawn as a " "low level API in the os module. (removed before 3.7.0rc1)" msgstr "" -#: ../../../build/NEWS:3808 +#: ../../../build/NEWS:4432 msgid "" "`bpo-24340 `__: Fixed estimation of the " "code stack size." msgstr "" -#: ../../../build/NEWS:3810 +#: ../../../build/NEWS:4434 msgid "" "`bpo-32436 `__: Implement :pep:`567` " "Context Variables." msgstr "" -#: ../../../build/NEWS:3812 ../../../build/NEWS:7780 +#: ../../../build/NEWS:4436 ../../../build/NEWS:8404 msgid "" "`bpo-18533 `__: ``repr()`` on a dict " "containing its own ``values()`` or ``items()`` no longer raises " @@ -7279,309 +8398,306 @@ msgid "" "other recursive structures. Patch by Ben North." msgstr "" -#: ../../../build/NEWS:3817 +#: ../../../build/NEWS:4441 msgid "" "`bpo-20891 `__: Py_Initialize() now " "creates the GIL. The GIL is no longer created \"on demand\" to fix a race " "condition when PyGILState_Ensure() is called in a non-Python thread." msgstr "" -#: ../../../build/NEWS:3821 ../../../build/NEWS:7785 +#: ../../../build/NEWS:4445 ../../../build/NEWS:8409 msgid "" "`bpo-32028 `__: Leading whitespace is " "now correctly ignored when generating suggestions for converting Py2 print " "statements to Py3 builtin print function calls. Patch by Sanyam Khurana." msgstr "" -#: ../../../build/NEWS:3825 +#: ../../../build/NEWS:4449 msgid "" "`bpo-31179 `__: Make dict.copy() up to " "5.5 times faster." msgstr "" -#: ../../../build/NEWS:3827 +#: ../../../build/NEWS:4451 msgid "" "`bpo-31113 `__: Get rid of recursion in " "the compiler for normal control flow." msgstr "" -#: ../../../build/NEWS:3832 +#: ../../../build/NEWS:4456 msgid "" "`bpo-25988 `__: Deprecate exposing the " "contents of collections.abc in the regular collections module." msgstr "" -#: ../../../build/NEWS:3835 +#: ../../../build/NEWS:4459 msgid "" -"`bpo-31429 `__: The default cipher suite" -" selection of the ssl module now uses a blacklist approach rather than a " -"hard-coded whitelist. Python no longer re-enables ciphers that have been " -"blocked by OpenSSL security update. Default cipher suite selection can be " -"configured on compile time." +"`bpo-31429 `__: The default cipher suite " +"selection of the ssl module now uses a blacklist approach rather than a hard-" +"coded whitelist. Python no longer re-enables ciphers that have been blocked " +"by OpenSSL security update. Default cipher suite selection can be configured " +"on compile time." msgstr "" -#: ../../../build/NEWS:3840 +#: ../../../build/NEWS:4464 msgid "" -"`bpo-30306 `__: " -"contextlib.contextmanager now releases the arguments passed to the " -"underlying generator as soon as the context manager is entered. Previously " -"it would keep them alive for as long as the context manager was alive, even " -"when not being used as a function decorator. Patch by Martin Teichmann." +"`bpo-30306 `__: contextlib." +"contextmanager now releases the arguments passed to the underlying generator " +"as soon as the context manager is entered. Previously it would keep them " +"alive for as long as the context manager was alive, even when not being used " +"as a function decorator. Patch by Martin Teichmann." msgstr "" -#: ../../../build/NEWS:3846 +#: ../../../build/NEWS:4470 msgid "" "`bpo-21417 `__: Added support for " "setting the compression level for zipfile.ZipFile." msgstr "" -#: ../../../build/NEWS:3849 +#: ../../../build/NEWS:4473 msgid "" -"`bpo-32251 `__: Implement " -"asyncio.BufferedProtocol (provisional API)." +"`bpo-32251 `__: Implement asyncio." +"BufferedProtocol (provisional API)." msgstr "" -#: ../../../build/NEWS:3851 +#: ../../../build/NEWS:4475 msgid "" "`bpo-32513 `__: In dataclasses, allow " "easier overriding of dunder methods without specifying decorator parameters." msgstr "" -#: ../../../build/NEWS:3854 +#: ../../../build/NEWS:4478 msgid "" "`bpo-32660 `__: :mod:`termios` makes " "available ``FIONREAD``, ``FIONCLEX``, ``FIOCLEX``, ``FIOASYNC`` and " "``FIONBIO`` also under Solaris/derivatives." msgstr "" -#: ../../../build/NEWS:3857 ../../../build/NEWS:7860 +#: ../../../build/NEWS:4481 ../../../build/NEWS:8484 msgid "" -"`bpo-27931 `__: Fix email address header" -" parsing error when the username is an empty quoted string. Patch by Xiang " +"`bpo-27931 `__: Fix email address header " +"parsing error when the username is an empty quoted string. Patch by Xiang " "Zhang." msgstr "" -#: ../../../build/NEWS:3860 +#: ../../../build/NEWS:4484 msgid "" "`bpo-32659 `__: Under Solaris and " "derivatives, :class:`os.stat_result` provides a st_fstype attribute." msgstr "" -#: ../../../build/NEWS:3863 +#: ../../../build/NEWS:4487 msgid "" -"`bpo-32662 `__: Implement " -"Server.start_serving(), Server.serve_forever(), and Server.is_serving() " -"methods. Add 'start_serving' keyword parameter to loop.create_server() and " -"loop.create_unix_server()." +"`bpo-32662 `__: Implement Server." +"start_serving(), Server.serve_forever(), and Server.is_serving() methods. " +"Add 'start_serving' keyword parameter to loop.create_server() and loop." +"create_unix_server()." msgstr "" -#: ../../../build/NEWS:3867 +#: ../../../build/NEWS:4491 msgid "" -"`bpo-32391 `__: Implement " -":meth:`asyncio.StreamWriter.wait_closed` and " -":meth:`asyncio.StreamWriter.is_closing` methods" +"`bpo-32391 `__: Implement :meth:`asyncio." +"StreamWriter.wait_closed` and :meth:`asyncio.StreamWriter.is_closing` methods" msgstr "" -#: ../../../build/NEWS:3870 +#: ../../../build/NEWS:4494 msgid "" -"`bpo-32643 `__: Make Task._step, " -"Task._wakeup and Future._schedule_callbacks methods private." +"`bpo-32643 `__: Make Task._step, Task." +"_wakeup and Future._schedule_callbacks methods private." msgstr "" -#: ../../../build/NEWS:3873 +#: ../../../build/NEWS:4497 msgid "" "`bpo-32630 `__: Refactor decimal module " "to use contextvars to store decimal context." msgstr "" -#: ../../../build/NEWS:3876 +#: ../../../build/NEWS:4500 msgid "" -"`bpo-32622 `__: Add " -":meth:`asyncio.AbstractEventLoop.sendfile` method." +"`bpo-32622 `__: Add :meth:`asyncio." +"AbstractEventLoop.sendfile` method." msgstr "" -#: ../../../build/NEWS:3878 ../../../build/NEWS:7863 +#: ../../../build/NEWS:4502 ../../../build/NEWS:8487 msgid "" "`bpo-32304 `__: distutils' upload " "command no longer corrupts tar files ending with a CR byte, and no longer " "tries to convert CR to CRLF in any of the upload text fields." msgstr "" -#: ../../../build/NEWS:3882 ../../../build/NEWS:7867 +#: ../../../build/NEWS:4506 ../../../build/NEWS:8491 msgid "" "`bpo-32502 `__: uuid.uuid1 no longer " "raises an exception if a 64-bit hardware address is encountered." msgstr "" -#: ../../../build/NEWS:3885 +#: ../../../build/NEWS:4509 msgid "" "`bpo-32596 `__: ``concurrent.futures`` " -"imports ``ThreadPoolExecutor`` and ``ProcessPoolExecutor`` lazily (using " -":pep:`562`). It makes ``import asyncio`` about 15% faster because asyncio " +"imports ``ThreadPoolExecutor`` and ``ProcessPoolExecutor`` lazily (using :" +"pep:`562`). It makes ``import asyncio`` about 15% faster because asyncio " "uses only ``ThreadPoolExecutor`` by default." msgstr "" -#: ../../../build/NEWS:3890 +#: ../../../build/NEWS:4514 msgid "" "`bpo-31801 `__: Add ``_ignore_`` to " "``Enum`` so temporary variables can be used during class construction " "without being turned into members." msgstr "" -#: ../../../build/NEWS:3893 +#: ../../../build/NEWS:4517 msgid "" "`bpo-32576 `__: Use queue.SimpleQueue() " "in places where it can be invoked from a weakref callback." msgstr "" -#: ../../../build/NEWS:3896 +#: ../../../build/NEWS:4520 msgid "" "`bpo-32574 `__: Fix memory leak in " "asyncio.Queue, when the queue has limited size and it is full, the " "cancelation of queue.put() can cause a memory leak. Patch by: José Melero." msgstr "" -#: ../../../build/NEWS:3900 ../../../build/NEWS:7877 +#: ../../../build/NEWS:4524 ../../../build/NEWS:8501 msgid "" "`bpo-32521 `__: The nis module is now " "compatible with new libnsl and headers location." msgstr "" -#: ../../../build/NEWS:3903 +#: ../../../build/NEWS:4527 msgid "" -"`bpo-32467 `__: " -"collections.abc.ValuesView now inherits from collections.abc.Collection." +"`bpo-32467 `__: collections.abc." +"ValuesView now inherits from collections.abc.Collection." msgstr "" -#: ../../../build/NEWS:3906 ../../../build/NEWS:7880 +#: ../../../build/NEWS:4530 ../../../build/NEWS:8504 msgid "" -"`bpo-32473 `__: Improve " -"ABCMeta._dump_registry() output readability" +"`bpo-32473 `__: Improve ABCMeta." +"_dump_registry() output readability" msgstr "" -#: ../../../build/NEWS:3908 +#: ../../../build/NEWS:4532 msgid "" "`bpo-32102 `__: New argument " "``capture_output`` for subprocess.run" msgstr "" -#: ../../../build/NEWS:3910 ../../../build/NEWS:7882 +#: ../../../build/NEWS:4534 ../../../build/NEWS:8506 msgid "" "`bpo-32521 `__: glibc has removed Sun " "RPC. Use replacement libtirpc headers and library in nis module." msgstr "" -#: ../../../build/NEWS:3913 +#: ../../../build/NEWS:4537 msgid "" "`bpo-32493 `__: UUID module fixes build " "for FreeBSD/OpenBSD" msgstr "" -#: ../../../build/NEWS:3915 +#: ../../../build/NEWS:4539 msgid "" -"`bpo-32503 `__: Pickling with protocol 4" -" no longer creates too small frames." +"`bpo-32503 `__: Pickling with protocol 4 " +"no longer creates too small frames." msgstr "" -#: ../../../build/NEWS:3917 +#: ../../../build/NEWS:4541 msgid "" "`bpo-29237 `__: Create enum for pstats " "sorting options" msgstr "" -#: ../../../build/NEWS:3919 +#: ../../../build/NEWS:4543 msgid "" "`bpo-32454 `__: Add close(fd) function " "to the socket module." msgstr "" -#: ../../../build/NEWS:3921 +#: ../../../build/NEWS:4545 msgid "" -"`bpo-25942 `__: The subprocess module is" -" now more graceful when handling a Ctrl-C KeyboardInterrupt during " -"subprocess.call, subprocess.run, or a Popen context manager. It now waits a" -" short amount of time for the child (presumed to have also gotten the " -"SIGINT) to exit, before continuing the KeyboardInterrupt exception handling." -" This still includes a SIGKILL in the call() and run() APIs, but at least " -"the child had a chance first." +"`bpo-25942 `__: The subprocess module is " +"now more graceful when handling a Ctrl-C KeyboardInterrupt during subprocess." +"call, subprocess.run, or a Popen context manager. It now waits a short " +"amount of time for the child (presumed to have also gotten the SIGINT) to " +"exit, before continuing the KeyboardInterrupt exception handling. This " +"still includes a SIGKILL in the call() and run() APIs, but at least the " +"child had a chance first." msgstr "" -#: ../../../build/NEWS:3928 +#: ../../../build/NEWS:4552 msgid "" "`bpo-32433 `__: The hmac module now has " "hmac.digest(), which provides an optimized HMAC digest." msgstr "" -#: ../../../build/NEWS:3931 +#: ../../../build/NEWS:4555 msgid "" "`bpo-28134 `__: Sockets now auto-detect " "family, type and protocol from file descriptor by default." msgstr "" -#: ../../../build/NEWS:3934 +#: ../../../build/NEWS:4558 msgid "" -"`bpo-32404 `__: Fix bug where " -":meth:`datetime.datetime.fromtimestamp` did not call __new__ in " -":class:`datetime.datetime` subclasses." +"`bpo-32404 `__: Fix bug where :meth:" +"`datetime.datetime.fromtimestamp` did not call __new__ in :class:`datetime." +"datetime` subclasses." msgstr "" -#: ../../../build/NEWS:3937 +#: ../../../build/NEWS:4561 msgid "" -"`bpo-32403 `__: Improved speed of " -":class:`datetime.date` and :class:`datetime.datetime` alternate " -"constructors." +"`bpo-32403 `__: Improved speed of :class:" +"`datetime.date` and :class:`datetime.datetime` alternate constructors." msgstr "" -#: ../../../build/NEWS:3940 ../../../build/NEWS:7885 +#: ../../../build/NEWS:4564 ../../../build/NEWS:8509 msgid "" "`bpo-32228 `__: Ensure that " -"``truncate()`` preserves the file position (as reported by ``tell()``) after" -" writes longer than the buffer size." +"``truncate()`` preserves the file position (as reported by ``tell()``) after " +"writes longer than the buffer size." msgstr "" -#: ../../../build/NEWS:3943 +#: ../../../build/NEWS:4567 msgid "" -"`bpo-32410 `__: Implement " -"``loop.sock_sendfile`` for asyncio event loop." +"`bpo-32410 `__: Implement ``loop." +"sock_sendfile`` for asyncio event loop." msgstr "" -#: ../../../build/NEWS:3945 +#: ../../../build/NEWS:4569 msgid "" "`bpo-22908 `__: Added seek and tell to " "the ZipExtFile class. This only works if the file object used to open the " "zipfile is seekable." msgstr "" -#: ../../../build/NEWS:3948 +#: ../../../build/NEWS:4572 msgid "" -"`bpo-32373 `__: Add socket.getblocking()" -" method." +"`bpo-32373 `__: Add socket.getblocking() " +"method." msgstr "" -#: ../../../build/NEWS:3950 +#: ../../../build/NEWS:4574 msgid "" -"`bpo-32248 `__: Add " -":mod:`importlib.resources` and :class:`importlib.abc.ResourceReader` as the " -"unified API for reading resources contained within packages. Loaders " -"wishing to support resource reading must implement the " -":meth:`get_resource_reader()` method. File-based and zipimport-based loaders" -" both implement these APIs. :class:`importlib.abc.ResourceLoader` is " -"deprecated in favor of these new APIs." +"`bpo-32248 `__: Add :mod:`importlib." +"resources` and :class:`importlib.abc.ResourceReader` as the unified API for " +"reading resources contained within packages. Loaders wishing to support " +"resource reading must implement the :meth:`get_resource_reader()` method. " +"File-based and zipimport-based loaders both implement these APIs. :class:" +"`importlib.abc.ResourceLoader` is deprecated in favor of these new APIs." msgstr "" -#: ../../../build/NEWS:3958 +#: ../../../build/NEWS:4582 msgid "" -"`bpo-32320 `__: collections.namedtuple()" -" now supports default values." +"`bpo-32320 `__: collections.namedtuple() " +"now supports default values." msgstr "" -#: ../../../build/NEWS:3960 +#: ../../../build/NEWS:4584 msgid "" -"`bpo-29302 `__: Add " -"contextlib.AsyncExitStack. Patch by Alexander Mohr and Ilya Kulakov." +"`bpo-29302 `__: Add contextlib." +"AsyncExitStack. Patch by Alexander Mohr and Ilya Kulakov." msgstr "" -#: ../../../build/NEWS:3963 +#: ../../../build/NEWS:4587 msgid "" "`bpo-31961 `__: *Removed in Python " "3.7.0b2.* The *args* argument of subprocess.Popen can now be a :term:`path-" @@ -7589,31 +8705,31 @@ msgid "" "be a :term:`path-like object` as well." msgstr "" -#: ../../../build/NEWS:3968 ../../../build/NEWS:7913 +#: ../../../build/NEWS:4592 ../../../build/NEWS:8537 msgid "" -"`bpo-31900 `__: The " -":func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE`` " -"locale to the ``LC_NUMERIC`` locale to decode ``decimal_point`` and " -"``thousands_sep`` byte strings if they are non-ASCII or longer than 1 byte, " -"and the ``LC_NUMERIC`` locale is different than the ``LC_CTYPE`` locale. " -"This temporary change affects other threads." +"`bpo-31900 `__: The :func:`locale." +"localeconv` function now sets temporarily the ``LC_CTYPE`` locale to the " +"``LC_NUMERIC`` locale to decode ``decimal_point`` and ``thousands_sep`` byte " +"strings if they are non-ASCII or longer than 1 byte, and the ``LC_NUMERIC`` " +"locale is different than the ``LC_CTYPE`` locale. This temporary change " +"affects other threads." msgstr "" -#: ../../../build/NEWS:3974 ../../../build/NEWS:7919 +#: ../../../build/NEWS:4598 ../../../build/NEWS:8543 msgid "" -"Same change for the :meth:`str.format` method when formatting a number " -"(:class:`int`, :class:`float`, :class:`float` and subclasses) with the ``n``" -" type (ex: ``'{:n}'.format(1234)``)." +"Same change for the :meth:`str.format` method when formatting a number (:" +"class:`int`, :class:`float`, :class:`float` and subclasses) with the ``n`` " +"type (ex: ``'{:n}'.format(1234)``)." msgstr "" -#: ../../../build/NEWS:3978 +#: ../../../build/NEWS:4602 msgid "" "`bpo-31853 `__: Use super().method " "instead of socket.method in SSLSocket. They were there most likely for " "legacy reasons." msgstr "" -#: ../../../build/NEWS:3981 +#: ../../../build/NEWS:4605 msgid "" "`bpo-31399 `__: The ssl module now uses " "OpenSSL's X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip() API " @@ -7621,26 +8737,26 @@ msgid "" "disabled with SSLContext.hostname_checks_common_name." msgstr "" -#: ../../../build/NEWS:3986 +#: ../../../build/NEWS:4610 msgid "" "`bpo-14976 `__: Add a queue.SimpleQueue " "class, an unbounded FIFO queue with a reentrant C implementation of put()." msgstr "" -#: ../../../build/NEWS:3992 +#: ../../../build/NEWS:4616 msgid "" "`bpo-32724 `__: Add references to some " "commands in the documentation of Pdb. Patch by Stéphane Wirtel" msgstr "" -#: ../../../build/NEWS:3995 +#: ../../../build/NEWS:4619 msgid "" "`bpo-32649 `__: Complete the C API " "documentation, profiling and tracing part with the newly added per-opcode " "events." msgstr "" -#: ../../../build/NEWS:3998 ../../../build/NEWS:7942 +#: ../../../build/NEWS:4622 ../../../build/NEWS:8566 msgid "" "`bpo-17799 `__: Explain real behaviour " "of sys.settrace and sys.setprofile and their C-API counterparts regarding " @@ -7648,126 +8764,126 @@ msgid "" "Salgado." msgstr "" -#: ../../../build/NEWS:4005 ../../../build/NEWS:7952 +#: ../../../build/NEWS:4629 ../../../build/NEWS:8576 msgid "" "`bpo-32721 `__: Fix test_hashlib to not " "fail if the _md5 module is not built." msgstr "" -#: ../../../build/NEWS:4007 +#: ../../../build/NEWS:4631 msgid "" "`bpo-28414 `__: Add test cases for IDNA " -"2003 and 2008 host names. IDNA 2003 internationalized host names are working" -" since `bpo-31399 `__ has landed. IDNA " +"2003 and 2008 host names. IDNA 2003 internationalized host names are working " +"since `bpo-31399 `__ has landed. IDNA " "2008 are still broken." msgstr "" -#: ../../../build/NEWS:4011 +#: ../../../build/NEWS:4635 msgid "" "`bpo-32604 `__: Add a new " "\"_xxsubinterpreters\" extension module that exposes the existing " -"subinterpreter C-API and a new cross-interpreter data sharing mechanism. The" -" module is primarily intended for more thorough testing of the existing " +"subinterpreter C-API and a new cross-interpreter data sharing mechanism. The " +"module is primarily intended for more thorough testing of the existing " "subinterpreter support." msgstr "" -#: ../../../build/NEWS:4016 +#: ../../../build/NEWS:4640 msgid "Note that the _xxsubinterpreters module has been removed in 3.7.0rc1." msgstr "" -#: ../../../build/NEWS:4018 +#: ../../../build/NEWS:4642 msgid "" "`bpo-32602 `__: Add test certs and test " "for ECDSA cert and EC/RSA dual mode." msgstr "" -#: ../../../build/NEWS:4020 +#: ../../../build/NEWS:4644 msgid "" -"`bpo-32549 `__: On Travis CI, Python now" -" Compiles and uses a local copy of OpenSSL 1.1.0g for testing." +"`bpo-32549 `__: On Travis CI, Python now " +"Compiles and uses a local copy of OpenSSL 1.1.0g for testing." msgstr "" -#: ../../../build/NEWS:4026 ../../../build/NEWS:7964 +#: ../../../build/NEWS:4650 ../../../build/NEWS:8588 msgid "" "`bpo-32635 `__: Fix segfault of the " "crypt module when libxcrypt is provided instead of libcrypt at the system." msgstr "" -#: ../../../build/NEWS:4029 +#: ../../../build/NEWS:4653 msgid "" "`bpo-32598 `__: Use autoconf to detect " "OpenSSL libs, headers and supported features. The ax_check_openssl M4 macro " "uses pkg-config to locate OpenSSL and falls back to manual search." msgstr "" -#: ../../../build/NEWS:4033 +#: ../../../build/NEWS:4657 msgid "" "`bpo-32593 `__: Drop support of FreeBSD " "9 and older." msgstr "" -#: ../../../build/NEWS:4035 +#: ../../../build/NEWS:4659 msgid "" -"`bpo-29708 `__: If the " -":envvar:`SOURCE_DATE_EPOCH` environment variable is set, :mod:`py_compile` " -"will always create hash-based ``.pyc`` files." +"`bpo-29708 `__: If the :envvar:" +"`SOURCE_DATE_EPOCH` environment variable is set, :mod:`py_compile` will " +"always create hash-based ``.pyc`` files." msgstr "" -#: ../../../build/NEWS:4041 +#: ../../../build/NEWS:4665 msgid "" "`bpo-32588 `__: Create standalone " "_distutils_findvs module and add missing _queue module to installer." msgstr "" -#: ../../../build/NEWS:4044 +#: ../../../build/NEWS:4668 msgid "" "`bpo-29911 `__: Ensure separate Modify " "and Uninstall buttons are displayed." msgstr "" -#: ../../../build/NEWS:4046 +#: ../../../build/NEWS:4670 msgid "" "`bpo-32507 `__: Use app-local UCRT " "install rather than the proper update for old versions of Windows." msgstr "" -#: ../../../build/NEWS:4052 +#: ../../../build/NEWS:4676 msgid "" "`bpo-32726 `__: Provide an additional, " -"more modern macOS installer variant that supports macOS 10.9+ systems in " -"64-bit mode only. Upgrade the supplied third-party libraries to OpenSSL " -"1.1.0g and to SQLite 3.22.0. The 10.9+ installer now links with and " -"supplies its own copy of Tcl/Tk 8.6." +"more modern macOS installer variant that supports macOS 10.9+ systems in 64-" +"bit mode only. Upgrade the supplied third-party libraries to OpenSSL 1.1.0g " +"and to SQLite 3.22.0. The 10.9+ installer now links with and supplies its " +"own copy of Tcl/Tk 8.6." msgstr "" -#: ../../../build/NEWS:4057 +#: ../../../build/NEWS:4681 msgid "" -"`bpo-28440 `__: No longer add " -"/Library/Python/3.x/site-packages to sys.path for macOS framework builds to " -"avoid future conflicts." +"`bpo-28440 `__: No longer add /Library/" +"Python/3.x/site-packages to sys.path for macOS framework builds to avoid " +"future conflicts." msgstr "" -#: ../../../build/NEWS:4063 +#: ../../../build/NEWS:4687 msgid "" "`bpo-32681 `__: Fix uninitialized " "variable 'res' in the C implementation of os.dup2. Patch by Stéphane Wirtel" msgstr "" -#: ../../../build/NEWS:4066 +#: ../../../build/NEWS:4690 msgid "" "`bpo-10381 `__: Add C API access to the " "``datetime.timezone`` constructor and ``datetime.timzone.UTC`` singleton." msgstr "" -#: ../../../build/NEWS:4071 +#: ../../../build/NEWS:4695 msgid "Python 3.7.0 alpha 4" msgstr "" -#: ../../../build/NEWS:4073 +#: ../../../build/NEWS:4697 msgid "*Release date: 2018-01-08*" msgstr "" -#: ../../../build/NEWS:4078 +#: ../../../build/NEWS:4702 msgid "" "`bpo-31975 `__: The default warning " "filter list now starts with a \"default::DeprecationWarning:__main__\" " @@ -7775,19 +8891,19 @@ msgid "" "file scripts and at the interactive prompt." msgstr "" -#: ../../../build/NEWS:4083 +#: ../../../build/NEWS:4707 msgid "" -"`bpo-32226 `__: ``__class_getitem__`` is" -" now an automatic class method." +"`bpo-32226 `__: ``__class_getitem__`` is " +"now an automatic class method." msgstr "" -#: ../../../build/NEWS:4085 +#: ../../../build/NEWS:4709 msgid "" "`bpo-32399 `__: Add AIX uuid library " "support for RFC4122 using uuid_create() in libc.a" msgstr "" -#: ../../../build/NEWS:4088 +#: ../../../build/NEWS:4712 msgid "" "`bpo-32390 `__: Fix the compilation " "failure on AIX after the f_fsid field has been added to the object returned " @@ -7795,26 +8911,26 @@ msgid "" "Original patch by Michael Felt." msgstr "" -#: ../../../build/NEWS:4092 +#: ../../../build/NEWS:4716 msgid "" "`bpo-32379 `__: Make MRO computation " "faster when a class inherits from a single base." msgstr "" -#: ../../../build/NEWS:4095 +#: ../../../build/NEWS:4719 msgid "" "`bpo-32259 `__: The error message of a " "TypeError raised when unpack non-iterable is now more specific." msgstr "" -#: ../../../build/NEWS:4098 ../../../build/NEWS:7770 +#: ../../../build/NEWS:4722 ../../../build/NEWS:8394 msgid "" "`bpo-27169 `__: The ``__debug__`` " "constant is now optimized out at compile time. This fixes also `bpo-22091 " "`__." msgstr "" -#: ../../../build/NEWS:4101 +#: ../../../build/NEWS:4725 msgid "" "`bpo-32329 `__: The :option:`-R` option " "now turns on hash randomization when the :envvar:`PYTHONHASHSEED` " @@ -7823,7 +8939,7 @@ msgid "" "hash randomization is turned off by ``PYTHONHASHSEED=0``." msgstr "" -#: ../../../build/NEWS:4107 +#: ../../../build/NEWS:4731 msgid "" "`bpo-30416 `__: The optimizer is now " "protected from spending much time doing complex calculations and consuming " @@ -7831,34 +8947,34 @@ msgid "" "limits for constants that can be produced in constant folding." msgstr "" -#: ../../../build/NEWS:4112 ../../../build/NEWS:7440 +#: ../../../build/NEWS:4736 ../../../build/NEWS:8064 msgid "" -"`bpo-32282 `__: Fix an unnecessary ifdef" -" in the include of VersionHelpers.h in socketmodule on Windows." +"`bpo-32282 `__: Fix an unnecessary ifdef " +"in the include of VersionHelpers.h in socketmodule on Windows." msgstr "" -#: ../../../build/NEWS:4115 +#: ../../../build/NEWS:4739 msgid "" -"`bpo-30579 `__: Implement " -"TracebackType.__new__ to allow Python-level creation of traceback objects, " -"and make TracebackType.tb_next mutable." +"`bpo-30579 `__: Implement TracebackType." +"__new__ to allow Python-level creation of traceback objects, and make " +"TracebackType.tb_next mutable." msgstr "" -#: ../../../build/NEWS:4118 +#: ../../../build/NEWS:4742 msgid "" "`bpo-32260 `__: Don't byte swap the " "input keys to the SipHash algorithm on big-endian platforms. This should " "ensure siphash gives consistent results across platforms." msgstr "" -#: ../../../build/NEWS:4122 +#: ../../../build/NEWS:4746 msgid "" "`bpo-31506 `__: Improve the error " "message logic for object.__new__ and object.__init__. Patch by Sanyam " "Khurana." msgstr "" -#: ../../../build/NEWS:4125 +#: ../../../build/NEWS:4749 msgid "" "`bpo-20361 `__: ``-b`` and ``-bb`` now " "inject ``'default::BytesWarning'`` and ``error::BytesWarning`` entries into " @@ -7867,171 +8983,171 @@ msgid "" "environment variable." msgstr "" -#: ../../../build/NEWS:4130 +#: ../../../build/NEWS:4754 msgid "" "`bpo-32230 `__: `-X dev` now injects a " "``'default'`` entry into sys.warnoptions, ensuring that it behaves " "identically to actually passing ``-Wdefault`` at the command line." msgstr "" -#: ../../../build/NEWS:4134 +#: ../../../build/NEWS:4758 msgid "" "`bpo-29240 `__: Add a new UTF-8 mode: " "implementation of the :pep:`540`." msgstr "" -#: ../../../build/NEWS:4136 +#: ../../../build/NEWS:4760 msgid "" "`bpo-32226 `__: :pep:`560`: Add support " "for ``__mro_entries__`` and ``__class_getitem__``. Implemented by Ivan " "Levkivskyi." msgstr "" -#: ../../../build/NEWS:4139 +#: ../../../build/NEWS:4763 msgid "" "`bpo-32225 `__: :pep:`562`: Add support " "for module ``__getattr__`` and ``__dir__``. Implemented by Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:4142 +#: ../../../build/NEWS:4766 msgid "" "`bpo-31901 `__: The `atexit` module now " "has its callback stored per interpreter." msgstr "" -#: ../../../build/NEWS:4145 +#: ../../../build/NEWS:4769 msgid "" "`bpo-31650 `__: Implement :pep:`552` " "(Deterministic pycs). Python now supports invalidating bytecode cache files " "bashed on a source content hash rather than source last-modified time." msgstr "" -#: ../../../build/NEWS:4149 +#: ../../../build/NEWS:4773 msgid "" "`bpo-29469 `__: Move constant folding " "from bytecode layer to AST layer. Original patch by Eugene Toder." msgstr "" -#: ../../../build/NEWS:4155 +#: ../../../build/NEWS:4779 msgid "" -"`bpo-32506 `__: Now that dict is defined" -" as keeping insertion order, drop OrderedDict and just use plain dict." +"`bpo-32506 `__: Now that dict is defined " +"as keeping insertion order, drop OrderedDict and just use plain dict." msgstr "" -#: ../../../build/NEWS:4158 +#: ../../../build/NEWS:4782 msgid "" "`bpo-32279 `__: Add params to " "dataclasses.make_dataclasses(): init, repr, eq, order, hash, and frozen. " "Pass them through to dataclass()." msgstr "" -#: ../../../build/NEWS:4161 +#: ../../../build/NEWS:4785 msgid "" "`bpo-32278 `__: Make type information " -"optional on dataclasses.make_dataclass(). If omitted, the string " -"'typing.Any' is used." +"optional on dataclasses.make_dataclass(). If omitted, the string 'typing." +"Any' is used." msgstr "" -#: ../../../build/NEWS:4164 +#: ../../../build/NEWS:4788 msgid "" -"`bpo-32499 `__: Add " -"dataclasses.is_dataclass(obj), which returns True if obj is a dataclass or " -"an instance of one." +"`bpo-32499 `__: Add dataclasses." +"is_dataclass(obj), which returns True if obj is a dataclass or an instance " +"of one." msgstr "" -#: ../../../build/NEWS:4167 +#: ../../../build/NEWS:4791 msgid "" "`bpo-32468 `__: Improve frame repr() to " "mention filename, code name and current line number." msgstr "" -#: ../../../build/NEWS:4170 +#: ../../../build/NEWS:4794 msgid "" -"`bpo-23749 `__: asyncio: Implement " -"loop.start_tls()" +"`bpo-23749 `__: asyncio: Implement loop." +"start_tls()" msgstr "" -#: ../../../build/NEWS:4172 +#: ../../../build/NEWS:4796 msgid "" "`bpo-32441 `__: Return the new file " "descriptor (i.e., the second argument) from ``os.dup2``. Previously, " "``None`` was always returned." msgstr "" -#: ../../../build/NEWS:4175 +#: ../../../build/NEWS:4799 msgid "" "`bpo-32422 `__: ``functools.lru_cache`` " "uses less memory (3 words for each cached key) and takes about 1/3 time for " "cyclic GC." msgstr "" -#: ../../../build/NEWS:4178 +#: ../../../build/NEWS:4802 msgid "" "`bpo-31721 `__: Prevent Python crash " "from happening when Future._log_traceback is set to True manually. Now it " "can only be set to False, or a ValueError is raised." msgstr "" -#: ../../../build/NEWS:4182 +#: ../../../build/NEWS:4806 msgid "" -"`bpo-32415 `__: asyncio: Add " -"Task.get_loop() and Future.get_loop()" +"`bpo-32415 `__: asyncio: Add Task." +"get_loop() and Future.get_loop()" msgstr "" -#: ../../../build/NEWS:4184 ../../../build/NEWS:7888 +#: ../../../build/NEWS:4808 ../../../build/NEWS:8512 msgid "" "`bpo-26133 `__: Don't unsubscribe " "signals in asyncio UNIX event loop on interpreter shutdown." msgstr "" -#: ../../../build/NEWS:4187 +#: ../../../build/NEWS:4811 msgid "" -"`bpo-32363 `__: Make " -"asyncio.Task.set_exception() and set_result() raise NotImplementedError. " -"Task._step() and Future.__await__() raise proper exceptions when they are in" -" an invalid state, instead of raising an AssertionError." +"`bpo-32363 `__: Make asyncio.Task." +"set_exception() and set_result() raise NotImplementedError. Task._step() and " +"Future.__await__() raise proper exceptions when they are in an invalid " +"state, instead of raising an AssertionError." msgstr "" -#: ../../../build/NEWS:4192 +#: ../../../build/NEWS:4816 msgid "" -"`bpo-32357 `__: Optimize " -"asyncio.iscoroutine() and loop.create_task() for non-native coroutines (e.g." -" async/await compiled with Cython)." +"`bpo-32357 `__: Optimize asyncio." +"iscoroutine() and loop.create_task() for non-native coroutines (e.g. async/" +"await compiled with Cython)." msgstr "" -#: ../../../build/NEWS:4195 +#: ../../../build/NEWS:4819 msgid "" -"'loop.create_task(python_coroutine)' used to be 20% faster than " -"'loop.create_task(cython_coroutine)'. Now, the latter is as fast." +"'loop.create_task(python_coroutine)' used to be 20% faster than 'loop." +"create_task(cython_coroutine)'. Now, the latter is as fast." msgstr "" -#: ../../../build/NEWS:4198 +#: ../../../build/NEWS:4822 msgid "" -"`bpo-32356 `__: " -"asyncio.transport.resume_reading() and pause_reading() are now idempotent. " -"New transport.is_reading() method is added." +"`bpo-32356 `__: asyncio.transport." +"resume_reading() and pause_reading() are now idempotent. New transport." +"is_reading() method is added." msgstr "" -#: ../../../build/NEWS:4201 +#: ../../../build/NEWS:4825 msgid "" -"`bpo-32355 `__: Optimize " -"asyncio.gather(); now up to 15% faster." +"`bpo-32355 `__: Optimize asyncio." +"gather(); now up to 15% faster." msgstr "" -#: ../../../build/NEWS:4203 +#: ../../../build/NEWS:4827 msgid "" -"`bpo-32351 `__: Use fastpath in " -"asyncio.sleep if delay<0 (2x boost)" +"`bpo-32351 `__: Use fastpath in asyncio." +"sleep if delay<0 (2x boost)" msgstr "" -#: ../../../build/NEWS:4205 +#: ../../../build/NEWS:4829 msgid "" "`bpo-32348 `__: Optimize asyncio.Future " "schedule/add/remove callback. The optimization shows 3-6% performance " "improvements of async/await code." msgstr "" -#: ../../../build/NEWS:4208 +#: ../../../build/NEWS:4832 msgid "" "`bpo-32331 `__: Fix socket.settimeout() " "and socket.setblocking() to keep socket.type as is. Fix socket.socket() " @@ -8039,88 +9155,87 @@ msgid "" "only affects OSes that have SOCK_NONBLOCK and/or SOCK_CLOEXEC." msgstr "" -#: ../../../build/NEWS:4213 +#: ../../../build/NEWS:4837 msgid "" -"`bpo-32248 `__: Add " -":class:`importlib.abc.ResourceReader` as an ABC for loaders to provide a " -"unified API for reading resources contained within packages. Also add " -":mod:`importlib.resources` as the port of ``importlib_resources``." +"`bpo-32248 `__: Add :class:`importlib." +"abc.ResourceReader` as an ABC for loaders to provide a unified API for " +"reading resources contained within packages. Also add :mod:`importlib." +"resources` as the port of ``importlib_resources``." msgstr "" -#: ../../../build/NEWS:4218 +#: ../../../build/NEWS:4842 msgid "" -"`bpo-32311 `__: Implement " -"asyncio.create_task(coro) shortcut" +"`bpo-32311 `__: Implement asyncio." +"create_task(coro) shortcut" msgstr "" -#: ../../../build/NEWS:4220 +#: ../../../build/NEWS:4844 msgid "" "`bpo-32327 `__: Convert asyncio " "functions that were documented as coroutines to coroutines. Affected " -"functions: loop.sock_sendall, loop.sock_recv, loop.sock_accept, " -"loop.getaddrinfo, loop.getnameinfo." +"functions: loop.sock_sendall, loop.sock_recv, loop.sock_accept, loop." +"getaddrinfo, loop.getnameinfo." msgstr "" -#: ../../../build/NEWS:4224 ../../../build/NEWS:7894 +#: ../../../build/NEWS:4848 ../../../build/NEWS:8518 msgid "" -"`bpo-32323 `__: " -":func:`urllib.parse.urlsplit()` does not convert zone-id (scope) to lower " -"case for scoped IPv6 addresses in hostnames now." +"`bpo-32323 `__: :func:`urllib.parse." +"urlsplit()` does not convert zone-id (scope) to lower case for scoped IPv6 " +"addresses in hostnames now." msgstr "" -#: ../../../build/NEWS:4227 ../../../build/NEWS:7897 +#: ../../../build/NEWS:4851 ../../../build/NEWS:8521 msgid "" "`bpo-32302 `__: Fix bdist_wininst of " "distutils for CRT v142: it binary compatible with CRT v140." msgstr "" -#: ../../../build/NEWS:4230 +#: ../../../build/NEWS:4854 msgid "" "`bpo-29711 `__: Fix ``stop_serving`` in " "asyncio proactor loop kill all listening servers" msgstr "" -#: ../../../build/NEWS:4233 +#: ../../../build/NEWS:4857 msgid "" "`bpo-32308 `__: :func:`re.sub()` now " "replaces empty matches adjacent to a previous non-empty match." msgstr "" -#: ../../../build/NEWS:4236 +#: ../../../build/NEWS:4860 msgid "" "`bpo-29970 `__: Abort asyncio " "SSLProtocol connection if handshake not complete within 10s" msgstr "" -#: ../../../build/NEWS:4239 +#: ../../../build/NEWS:4863 msgid "" "`bpo-32314 `__: Implement asyncio.run()." msgstr "" -#: ../../../build/NEWS:4241 +#: ../../../build/NEWS:4865 msgid "" "`bpo-17852 `__: Revert incorrect fix " "based on misunderstanding of _Py_PyAtExit() semantics." msgstr "" -#: ../../../build/NEWS:4244 +#: ../../../build/NEWS:4868 msgid "" -"`bpo-32296 `__: Implement " -"asyncio._get_running_loop() and get_event_loop() in C. This makes them 4x " -"faster." +"`bpo-32296 `__: Implement asyncio." +"_get_running_loop() and get_event_loop() in C. This makes them 4x faster." msgstr "" -#: ../../../build/NEWS:4247 +#: ../../../build/NEWS:4871 msgid "" -"`bpo-32250 `__: Implement " -"``asyncio.current_task()`` and ``asyncio.all_tasks()``. Add helpers intended" -" to be used by alternative task implementations: ``asyncio._register_task``," -" ``asyncio._enter_task``, ``asyncio._leave_task`` and " -"``asyncio._unregister_task``. Deprecate ``asyncio.Task.current_task()`` and " -"``asyncio.Task.all_tasks()``." +"`bpo-32250 `__: Implement ``asyncio." +"current_task()`` and ``asyncio.all_tasks()``. Add helpers intended to be " +"used by alternative task implementations: ``asyncio._register_task``, " +"``asyncio._enter_task``, ``asyncio._leave_task`` and ``asyncio." +"_unregister_task``. Deprecate ``asyncio.Task.current_task()`` and ``asyncio." +"Task.all_tasks()``." msgstr "" -#: ../../../build/NEWS:4253 ../../../build/NEWS:7900 +#: ../../../build/NEWS:4877 ../../../build/NEWS:8524 msgid "" "`bpo-32255 `__: A single empty field is " "now always quoted when written into a CSV file. This allows to distinguish " @@ -8128,7 +9243,7 @@ msgid "" "Takeuchi." msgstr "" -#: ../../../build/NEWS:4257 ../../../build/NEWS:7904 +#: ../../../build/NEWS:4881 ../../../build/NEWS:8528 msgid "" "`bpo-32277 `__: Raise " "``NotImplementedError`` instead of ``SystemError`` on platforms where " @@ -8136,107 +9251,107 @@ msgid "" "Sottile." msgstr "" -#: ../../../build/NEWS:4261 +#: ../../../build/NEWS:4885 msgid "" "`bpo-30050 `__: New argument " "warn_on_full_buffer to signal.set_wakeup_fd lets you control whether Python " "prints a warning on stderr when the wakeup fd buffer overflows." msgstr "" -#: ../../../build/NEWS:4265 +#: ../../../build/NEWS:4889 msgid "" "`bpo-29137 `__: The ``fpectl`` library " -"has been removed. It was never enabled by default, never worked correctly on" -" x86-64, and it changed the Python ABI in ways that caused unexpected " +"has been removed. It was never enabled by default, never worked correctly on " +"x86-64, and it changed the Python ABI in ways that caused unexpected " "breakage of C extensions." msgstr "" -#: ../../../build/NEWS:4269 +#: ../../../build/NEWS:4893 msgid "" "`bpo-32273 `__: Move asyncio.test_utils " "to test.test_asyncio." msgstr "" -#: ../../../build/NEWS:4271 +#: ../../../build/NEWS:4895 msgid "" "`bpo-32272 `__: Remove asyncio.async() " "function." msgstr "" -#: ../../../build/NEWS:4273 +#: ../../../build/NEWS:4897 msgid "" -"`bpo-32269 `__: Add " -"asyncio.get_running_loop() function." +"`bpo-32269 `__: Add asyncio." +"get_running_loop() function." msgstr "" -#: ../../../build/NEWS:4275 +#: ../../../build/NEWS:4899 msgid "" "`bpo-32265 `__: All class and static " -"methods of builtin types now are correctly classified by " -"inspect.classify_class_attrs() and grouped in pydoc ouput. Added " -"types.ClassMethodDescriptorType for unbound class methods of builtin types." +"methods of builtin types now are correctly classified by inspect." +"classify_class_attrs() and grouped in pydoc ouput. Added types." +"ClassMethodDescriptorType for unbound class methods of builtin types." msgstr "" -#: ../../../build/NEWS:4280 +#: ../../../build/NEWS:4904 msgid "" "`bpo-32253 `__: Deprecate ``yield from " "lock``, ``await lock``, ``with (yield from lock)`` and ``with await lock`` " "for asyncio synchronization primitives." msgstr "" -#: ../../../build/NEWS:4284 +#: ../../../build/NEWS:4908 msgid "" -"`bpo-22589 `__: Changed MIME type of " -".bmp from 'image/x-ms-bmp' to 'image/bmp'" +"`bpo-22589 `__: Changed MIME type of ." +"bmp from 'image/x-ms-bmp' to 'image/bmp'" msgstr "" -#: ../../../build/NEWS:4286 +#: ../../../build/NEWS:4910 msgid "" "`bpo-32193 `__: Convert asyncio to use " "*async/await* syntax. Old styled ``yield from`` is still supported too." msgstr "" -#: ../../../build/NEWS:4289 +#: ../../../build/NEWS:4913 msgid "" "`bpo-32206 `__: Add support to run " "modules with pdb" msgstr "" -#: ../../../build/NEWS:4291 +#: ../../../build/NEWS:4915 msgid "" -"`bpo-32227 `__: " -"``functools.singledispatch`` now supports registering implementations using " -"type annotations." +"`bpo-32227 `__: ``functools." +"singledispatch`` now supports registering implementations using type " +"annotations." msgstr "" -#: ../../../build/NEWS:4294 +#: ../../../build/NEWS:4918 msgid "" "`bpo-15873 `__: Added new alternate " -"constructors :meth:`datetime.datetime.fromisoformat`, " -":meth:`datetime.time.fromisoformat` and :meth:`datetime.date.fromisoformat` " -"as the inverse operation of each classes's respective ``isoformat`` methods." +"constructors :meth:`datetime.datetime.fromisoformat`, :meth:`datetime.time." +"fromisoformat` and :meth:`datetime.date.fromisoformat` as the inverse " +"operation of each classes's respective ``isoformat`` methods." msgstr "" -#: ../../../build/NEWS:4300 ../../../build/NEWS:7908 +#: ../../../build/NEWS:4924 ../../../build/NEWS:8532 msgid "" "`bpo-32199 `__: The getnode() ip getter " "now uses 'ip link' instead of 'ip link list'." msgstr "" -#: ../../../build/NEWS:4303 +#: ../../../build/NEWS:4927 msgid "" "`bpo-32143 `__: os.statvfs() includes " "the f_fsid field from statvfs(2)" msgstr "" -#: ../../../build/NEWS:4305 +#: ../../../build/NEWS:4929 msgid "" -"`bpo-26439 `__: Fix " -"ctypes.util.find_library() for AIX by implementing " -"ctypes._aix.find_library() Patch by: Michael Felt" +"`bpo-26439 `__: Fix ctypes.util." +"find_library() for AIX by implementing ctypes._aix.find_library() Patch by: " +"Michael Felt" msgstr "" -#: ../../../build/NEWS:4308 +#: ../../../build/NEWS:4932 msgid "" "`bpo-31993 `__: The pickler now uses " "less memory when serializing large bytes and str objects into a file. " @@ -8244,125 +9359,124 @@ msgid "" "large bytes and str objects." msgstr "" -#: ../../../build/NEWS:4312 ../../../build/NEWS:7911 +#: ../../../build/NEWS:4936 ../../../build/NEWS:8535 msgid "" "`bpo-27456 `__: Ensure TCP_NODELAY is " "set on Linux. Tests by Victor Stinner." msgstr "" -#: ../../../build/NEWS:4314 +#: ../../../build/NEWS:4938 msgid "" "`bpo-31778 `__: ast.literal_eval() is " "now more strict. Addition and subtraction of arbitrary numbers no longer " "allowed." msgstr "" -#: ../../../build/NEWS:4317 ../../../build/NEWS:7923 +#: ../../../build/NEWS:4941 ../../../build/NEWS:8547 msgid "" "`bpo-31802 `__: Importing native path " -"module (``posixpath``, ``ntpath``) now works even if the ``os`` module still" -" is not imported." +"module (``posixpath``, ``ntpath``) now works even if the ``os`` module still " +"is not imported." msgstr "" -#: ../../../build/NEWS:4320 +#: ../../../build/NEWS:4944 msgid "" -"`bpo-30241 `__: Add " -"contextlib.AbstractAsyncContextManager. Patch by Jelle Zijlstra." +"`bpo-30241 `__: Add contextlib." +"AbstractAsyncContextManager. Patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:4323 +#: ../../../build/NEWS:4947 msgid "" -"`bpo-31699 `__: Fix deadlocks in " -":class:`concurrent.futures.ProcessPoolExecutor` when task arguments or " -"results cause pickling or unpickling errors. This should make sure that " -"calls to the :class:`ProcessPoolExecutor` API always eventually return." +"`bpo-31699 `__: Fix deadlocks in :class:" +"`concurrent.futures.ProcessPoolExecutor` when task arguments or results " +"cause pickling or unpickling errors. This should make sure that calls to " +"the :class:`ProcessPoolExecutor` API always eventually return." msgstr "" -#: ../../../build/NEWS:4328 +#: ../../../build/NEWS:4952 msgid "" -"`bpo-15216 `__: " -"``TextIOWrapper.reconfigure()`` supports changing *encoding*, *errors*, and " -"*newline*." +"`bpo-15216 `__: ``TextIOWrapper." +"reconfigure()`` supports changing *encoding*, *errors*, and *newline*." msgstr "" -#: ../../../build/NEWS:4334 +#: ../../../build/NEWS:4958 msgid "" -"`bpo-32418 `__: Add get_loop() method to" -" Server and AbstractServer classes." +"`bpo-32418 `__: Add get_loop() method to " +"Server and AbstractServer classes." msgstr "" -#: ../../../build/NEWS:4339 ../../../build/NEWS:7954 +#: ../../../build/NEWS:4963 ../../../build/NEWS:8578 msgid "" "`bpo-32252 `__: Fix " "faulthandler_suppress_crash_report() used to prevent core dump files when " "testing crashes. getrlimit() returns zero on success." msgstr "" -#: ../../../build/NEWS:4342 +#: ../../../build/NEWS:4966 msgid "" -"`bpo-32002 `__: Adjust C locale coercion" -" testing for the empty locale and POSIX locale cases to more readily adjust " +"`bpo-32002 `__: Adjust C locale coercion " +"testing for the empty locale and POSIX locale cases to more readily adjust " "to platform dependent behaviour." msgstr "" -#: ../../../build/NEWS:4348 +#: ../../../build/NEWS:4972 msgid "" "`bpo-19764 `__: Implement support for " "`subprocess.Popen(close_fds=True)` on Windows. Patch by Segev Finer." msgstr "" -#: ../../../build/NEWS:4354 ../../../build/NEWS:8035 +#: ../../../build/NEWS:4978 ../../../build/NEWS:8659 msgid "" -"`bpo-24960 `__: 2to3 and lib2to3 can now" -" read pickled grammar files using pkgutil.get_data() rather than probing the" -" filesystem. This lets 2to3 and lib2to3 work when run from a zipfile." +"`bpo-24960 `__: 2to3 and lib2to3 can now " +"read pickled grammar files using pkgutil.get_data() rather than probing the " +"filesystem. This lets 2to3 and lib2to3 work when run from a zipfile." msgstr "" -#: ../../../build/NEWS:4361 +#: ../../../build/NEWS:4985 msgid "" "`bpo-32030 `__: Py_Initialize() doesn't " "reset the memory allocators to default if the ``PYTHONMALLOC`` environment " "variable is not set." msgstr "" -#: ../../../build/NEWS:4364 ../../../build/NEWS:8045 +#: ../../../build/NEWS:4988 ../../../build/NEWS:8669 msgid "" "`bpo-29084 `__: Undocumented C API for " "OrderedDict has been excluded from the limited C API. It was added by " "mistake and actually never worked in the limited C API." msgstr "" -#: ../../../build/NEWS:4368 +#: ../../../build/NEWS:4992 msgid "" "`bpo-32264 `__: Moved the pygetopt.h " "header into internal/, since it has no public APIs." msgstr "" -#: ../../../build/NEWS:4371 +#: ../../../build/NEWS:4995 msgid "" -"`bpo-32241 `__: " -":c:func:`Py_SetProgramName` and :c:func:`Py_SetPythonHome` now take the " -"``const wchar *`` arguments instead of ``wchar *``." +"`bpo-32241 `__: :c:func:" +"`Py_SetProgramName` and :c:func:`Py_SetPythonHome` now take the ``const " +"wchar *`` arguments instead of ``wchar *``." msgstr "" -#: ../../../build/NEWS:4376 +#: ../../../build/NEWS:5000 msgid "Python 3.7.0 alpha 3" msgstr "" -#: ../../../build/NEWS:4378 ../../../build/NEWS:8062 +#: ../../../build/NEWS:5002 ../../../build/NEWS:8686 msgid "*Release date: 2017-12-05*" msgstr "" -#: ../../../build/NEWS:4383 ../../../build/NEWS:8067 +#: ../../../build/NEWS:5007 ../../../build/NEWS:8691 msgid "" "`bpo-32176 `__: co_flags.CO_NOFREE is " "now always set correctly by the code object constructor based on freevars " "and cellvars, rather than needing to be set correctly by the caller. This " -"ensures it will be cleared automatically when additional cell references are" -" injected into a modified code object and function." +"ensures it will be cleared automatically when additional cell references are " +"injected into a modified code object and function." msgstr "" -#: ../../../build/NEWS:4389 +#: ../../../build/NEWS:5013 msgid "" "`bpo-10544 `__: Yield expressions are " "now deprecated in comprehensions and generator expressions. They are still " @@ -8370,38 +9484,37 @@ msgid "" "directly in the enclosing scope." msgstr "" -#: ../../../build/NEWS:4393 ../../../build/NEWS:7789 +#: ../../../build/NEWS:5017 ../../../build/NEWS:8413 msgid "" "`bpo-32137 `__: The repr of deeply " "nested dict now raises a RecursionError instead of crashing due to a stack " "overflow." msgstr "" -#: ../../../build/NEWS:4396 +#: ../../../build/NEWS:5020 msgid "" "`bpo-32096 `__: Revert memory allocator " -"changes in the C API: move structures back from _PyRuntime to " -"Objects/obmalloc.c. The memory allocators are once again initialized " -"statically, and so PyMem_RawMalloc() and Py_DecodeLocale() can be called " -"before _PyRuntime_Initialize()." +"changes in the C API: move structures back from _PyRuntime to Objects/" +"obmalloc.c. The memory allocators are once again initialized statically, and " +"so PyMem_RawMalloc() and Py_DecodeLocale() can be called before " +"_PyRuntime_Initialize()." msgstr "" -#: ../../../build/NEWS:4401 +#: ../../../build/NEWS:5025 msgid "" "`bpo-32043 `__: Add a new \"developer " -"mode\": new \"-X dev\" command line option to enable debug checks at " -"runtime." +"mode\": new \"-X dev\" command line option to enable debug checks at runtime." msgstr "" -#: ../../../build/NEWS:4404 +#: ../../../build/NEWS:5028 msgid "" "`bpo-32023 `__: SyntaxError is now " "correctly raised when a generator expression without parenthesis is used " -"instead of an inheritance list in a class definition. The duplication of the" -" parentheses can be omitted only on calls." +"instead of an inheritance list in a class definition. The duplication of the " +"parentheses can be omitted only on calls." msgstr "" -#: ../../../build/NEWS:4409 +#: ../../../build/NEWS:5033 msgid "" "`bpo-32012 `__: SyntaxError is now " "correctly raised when a generator expression without parenthesis is passed " @@ -8410,7 +9523,7 @@ msgid "" "comma on either side." msgstr "" -#: ../../../build/NEWS:4414 +#: ../../../build/NEWS:5038 msgid "" "`bpo-28180 `__: A new internal " "``_Py_SetLocaleFromEnv(category)`` helper function has been added in order " @@ -8419,44 +9532,44 @@ msgid "" "environment by default)." msgstr "" -#: ../../../build/NEWS:4419 ../../../build/NEWS:8073 +#: ../../../build/NEWS:5043 ../../../build/NEWS:8697 msgid "" "`bpo-31949 `__: Fixed several issues in " "printing tracebacks (PyTraceBack_Print())." msgstr "" -#: ../../../build/NEWS:4422 ../../../build/NEWS:8076 +#: ../../../build/NEWS:5046 ../../../build/NEWS:8700 msgid "" "Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks." msgstr "" -#: ../../../build/NEWS:4423 ../../../build/NEWS:8077 +#: ../../../build/NEWS:5047 ../../../build/NEWS:8701 msgid "Setting sys.tracebacklimit to None now causes using the default limit." msgstr "" -#: ../../../build/NEWS:4424 ../../../build/NEWS:8078 +#: ../../../build/NEWS:5048 ../../../build/NEWS:8702 msgid "" "Setting sys.tracebacklimit to an integer larger than LONG_MAX now means " "using the limit LONG_MAX rather than the default limit." msgstr "" -#: ../../../build/NEWS:4426 ../../../build/NEWS:8080 +#: ../../../build/NEWS:5050 ../../../build/NEWS:8704 msgid "" "Fixed integer overflows in the case of more than 2**31 traceback items on " "Windows." msgstr "" -#: ../../../build/NEWS:4428 ../../../build/NEWS:8082 +#: ../../../build/NEWS:5052 ../../../build/NEWS:8706 msgid "Fixed output errors handling." msgstr "" -#: ../../../build/NEWS:4430 ../../../build/NEWS:8084 +#: ../../../build/NEWS:5054 ../../../build/NEWS:8708 msgid "" "`bpo-30696 `__: Fix the interactive " "interpreter looping endlessly when no memory." msgstr "" -#: ../../../build/NEWS:4433 ../../../build/NEWS:8087 +#: ../../../build/NEWS:5057 ../../../build/NEWS:8711 msgid "" "`bpo-20047 `__: Bytearray methods " "partition() and rpartition() now accept only bytes-like objects as " @@ -8464,89 +9577,88 @@ msgid "" "returning a bogus result when an integer is passed as a separator." msgstr "" -#: ../../../build/NEWS:4438 ../../../build/NEWS:8095 +#: ../../../build/NEWS:5062 ../../../build/NEWS:8719 msgid "" "`bpo-21720 `__: BytesWarning no longer " "emitted when the *fromlist* argument of ``__import__()`` or the ``__all__`` " "attribute of the module contain bytes instances." msgstr "" -#: ../../../build/NEWS:4442 +#: ../../../build/NEWS:5066 msgid "" "`bpo-31845 `__: Environment variables " "are once more read correctly at interpreter startup." msgstr "" -#: ../../../build/NEWS:4445 +#: ../../../build/NEWS:5069 msgid "" "`bpo-28936 `__: Ensure that lexically " "first syntax error involving a parameter and ``global`` or ``nonlocal`` is " "detected first at a given scope. Patch by Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:4449 ../../../build/NEWS:8099 +#: ../../../build/NEWS:5073 ../../../build/NEWS:8723 msgid "" "`bpo-31825 `__: Fixed OverflowError in " "the 'unicode-escape' codec and in codecs.escape_decode() when decode an " "escaped non-ascii byte." msgstr "" -#: ../../../build/NEWS:4452 +#: ../../../build/NEWS:5076 msgid "" "`bpo-31618 `__: The per-frame tracing " -"logic added in 3.7a1 has been altered so that ``frame->f_lineno`` is updated" -" before either ``\"line\"`` or ``\"opcode\"`` events are emitted. " -"Previously, opcode events were emitted first, and therefore would " -"occasionally see stale line numbers on the frame. The behavior of this " -"feature has changed slightly as a result: when both ``f_trace_lines`` and " -"``f_trace_opcodes`` are enabled, line events now occur first." +"logic added in 3.7a1 has been altered so that ``frame->f_lineno`` is updated " +"before either ``\"line\"`` or ``\"opcode\"`` events are emitted. Previously, " +"opcode events were emitted first, and therefore would occasionally see stale " +"line numbers on the frame. The behavior of this feature has changed slightly " +"as a result: when both ``f_trace_lines`` and ``f_trace_opcodes`` are " +"enabled, line events now occur first." msgstr "" -#: ../../../build/NEWS:4460 ../../../build/NEWS:8102 +#: ../../../build/NEWS:5084 ../../../build/NEWS:8726 msgid "" -"`bpo-28603 `__: Print the full " -"context/cause chain of exceptions on interpreter exit, even if an exception " -"in the chain is unhashable or compares equal to later ones. Patch by Zane " -"Bitter." +"`bpo-28603 `__: Print the full context/" +"cause chain of exceptions on interpreter exit, even if an exception in the " +"chain is unhashable or compares equal to later ones. Patch by Zane Bitter." msgstr "" -#: ../../../build/NEWS:4464 ../../../build/NEWS:8106 +#: ../../../build/NEWS:5088 ../../../build/NEWS:8730 msgid "" "`bpo-31786 `__: Fix timeout rounding in " -"the select module to round correctly negative timeouts between -1.0 and 0.0." -" The functions now block waiting for events as expected. Previously, the " -"call was incorrectly non-blocking. Patch by Pablo Galindo." +"the select module to round correctly negative timeouts between -1.0 and 0.0. " +"The functions now block waiting for events as expected. Previously, the call " +"was incorrectly non-blocking. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:4469 +#: ../../../build/NEWS:5093 msgid "" "`bpo-31781 `__: Prevent crashes when " "calling methods of an uninitialized ``zipimport.zipimporter`` object. Patch " "by Oren Milman." msgstr "" -#: ../../../build/NEWS:4472 +#: ../../../build/NEWS:5096 msgid "" "`bpo-30399 `__: Standard repr() of " "BaseException with a single argument no longer contains redundant trailing " "comma." msgstr "" -#: ../../../build/NEWS:4475 ../../../build/NEWS:8114 +#: ../../../build/NEWS:5099 ../../../build/NEWS:8738 msgid "" "`bpo-31626 `__: Fixed a bug in debug " "memory allocator. There was a write to freed memory after shrinking a " "memory block." msgstr "" -#: ../../../build/NEWS:4478 ../../../build/NEWS:8159 +#: ../../../build/NEWS:5102 ../../../build/NEWS:8783 msgid "" -"`bpo-30817 `__: `PyErr_PrintEx()` clears" -" now the ignored exception that may be raised by `_PySys_SetObjectId()`, for" -" example when no memory." +"`bpo-30817 `__: `PyErr_PrintEx()` clears " +"now the ignored exception that may be raised by `_PySys_SetObjectId()`, for " +"example when no memory." msgstr "" -#: ../../../build/NEWS:4484 ../../../build/NEWS:8165 +#: ../../../build/NEWS:5108 ../../../build/NEWS:8789 msgid "" "`bpo-28556 `__: Two minor fixes for " "``typing`` module: allow shallow copying instances of generic classes, " @@ -8554,55 +9666,54 @@ msgid "" "Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:4488 +#: ../../../build/NEWS:5112 msgid "" "`bpo-32214 `__: PEP 557, Data Classes. " "Provides a decorator which adds boilerplate methods to classes which use " "type annotations so specify fields." msgstr "" -#: ../../../build/NEWS:4492 ../../../build/NEWS:8169 +#: ../../../build/NEWS:5116 ../../../build/NEWS:8793 msgid "" "`bpo-27240 `__: The header folding " "algorithm for the new email policies has been rewritten, which also fixes " -"`bpo-30788 `__, `bpo-31831 " -"`__, and `bpo-32182 " -"`__. In particular, RFC2231 folding is " -"now done correctly." +"`bpo-30788 `__, `bpo-31831 `__, and `bpo-32182 `__. In particular, RFC2231 folding is now done correctly." msgstr "" -#: ../../../build/NEWS:4496 ../../../build/NEWS:8173 +#: ../../../build/NEWS:5120 ../../../build/NEWS:8797 msgid "" "`bpo-32186 `__: io.FileIO.readall() and " "io.FileIO.read() now release the GIL when getting the file size. Fixed hang " "of all threads with inaccessible NFS server. Patch by Nir Soffer." msgstr "" -#: ../../../build/NEWS:4500 +#: ../../../build/NEWS:5124 msgid "" -"`bpo-321010 `__: Add " -":attr:`sys.flags.dev_mode` flag" +"`bpo-321010 `__: Add :attr:`sys.flags." +"dev_mode` flag" msgstr "" -#: ../../../build/NEWS:4502 +#: ../../../build/NEWS:5126 msgid "" -"`bpo-32154 `__: The " -"``asyncio.windows_utils.socketpair()`` function has been removed: use " -"directly :func:`socket.socketpair` which is available on all platforms since" -" Python 3.5 (before, it wasn't available on Windows). " -"``asyncio.windows_utils.socketpair()`` was just an alias to " -"``socket.socketpair`` on Python 3.5 and newer." +"`bpo-32154 `__: The ``asyncio." +"windows_utils.socketpair()`` function has been removed: use directly :func:" +"`socket.socketpair` which is available on all platforms since Python 3.5 " +"(before, it wasn't available on Windows). ``asyncio.windows_utils." +"socketpair()`` was just an alias to ``socket.socketpair`` on Python 3.5 and " +"newer." msgstr "" -#: ../../../build/NEWS:4508 +#: ../../../build/NEWS:5132 msgid "" -"`bpo-32089 `__: warnings: In development" -" (-X dev) and debug mode (pydebug build), use the \"default\" action for " +"`bpo-32089 `__: warnings: In development " +"(-X dev) and debug mode (pydebug build), use the \"default\" action for " "ResourceWarning, rather than the \"always\" action, in the default warnings " "filters." msgstr "" -#: ../../../build/NEWS:4512 +#: ../../../build/NEWS:5136 msgid "" "`bpo-32107 `__: ``uuid.getnode()`` now " "preferentially returns universally administered MAC addresses if available, " @@ -8612,184 +9723,184 @@ msgid "" "returned." msgstr "" -#: ../../../build/NEWS:4518 +#: ../../../build/NEWS:5142 msgid "" "`bpo-23033 `__: Wildcard is now " "supported in hostname when it is one and only character in the left most " -"segment of hostname in second argument of :meth:`ssl.match_hostname`. Patch" -" by Mandeep Singh." +"segment of hostname in second argument of :meth:`ssl.match_hostname`. Patch " +"by Mandeep Singh." msgstr "" -#: ../../../build/NEWS:4522 ../../../build/NEWS:8177 +#: ../../../build/NEWS:5146 ../../../build/NEWS:8801 msgid "" -"`bpo-12239 `__: Make " -":meth:`msilib.SummaryInformation.GetProperty` return ``None`` when the value" -" of property is ``VT_EMPTY``. Initial patch by Mark Mc Mahon." +"`bpo-12239 `__: Make :meth:`msilib." +"SummaryInformation.GetProperty` return ``None`` when the value of property " +"is ``VT_EMPTY``. Initial patch by Mark Mc Mahon." msgstr "" -#: ../../../build/NEWS:4526 +#: ../../../build/NEWS:5150 msgid "" -"`bpo-28334 `__: Use " -":func:`os.path.expanduser` to find the ``~/.netrc`` file in " -":class:`netrc.netrc`. If it does not exist, :exc:`FileNotFoundError` is " -"raised. Patch by Dimitri Merejkowsky." +"`bpo-28334 `__: Use :func:`os.path." +"expanduser` to find the ``~/.netrc`` file in :class:`netrc.netrc`. If it " +"does not exist, :exc:`FileNotFoundError` is raised. Patch by Dimitri " +"Merejkowsky." msgstr "" -#: ../../../build/NEWS:4530 +#: ../../../build/NEWS:5154 msgid "" -"`bpo-32121 `__: Made " -"``tracemalloc.Traceback`` behave more like the traceback module, sorting the" -" frames from oldest to most recent. ``Traceback.format()`` now accepts " -"negative *limit*, truncating the result to the ``abs(limit)`` oldest frames." -" To get the old behaviour, one can use the new *most_recent_first* argument " -"to ``Traceback.format()``. (Patch by Jesse Bakker.)" +"`bpo-32121 `__: Made ``tracemalloc." +"Traceback`` behave more like the traceback module, sorting the frames from " +"oldest to most recent. ``Traceback.format()`` now accepts negative *limit*, " +"truncating the result to the ``abs(limit)`` oldest frames. To get the old " +"behaviour, one can use the new *most_recent_first* argument to ``Traceback." +"format()``. (Patch by Jesse Bakker.)" msgstr "" -#: ../../../build/NEWS:4537 ../../../build/NEWS:8181 +#: ../../../build/NEWS:5161 ../../../build/NEWS:8805 msgid "" -"`bpo-31325 `__: Fix wrong usage of " -":func:`collections.namedtuple` in the :meth:`RobotFileParser.parse() " -"` method." +"`bpo-31325 `__: Fix wrong usage of :func:" +"`collections.namedtuple` in the :meth:`RobotFileParser.parse() ` method." msgstr "" -#: ../../../build/NEWS:4541 ../../../build/NEWS:8185 +#: ../../../build/NEWS:5165 ../../../build/NEWS:8809 msgid "Initial patch by Robin Wellner." msgstr "" -#: ../../../build/NEWS:4543 ../../../build/NEWS:8187 +#: ../../../build/NEWS:5167 ../../../build/NEWS:8811 msgid "" -"`bpo-12382 `__: " -":func:`msilib.OpenDatabase` now raises a better exception message when it " -"couldn't open or create an MSI file. Initial patch by William Tisäter." +"`bpo-12382 `__: :func:`msilib." +"OpenDatabase` now raises a better exception message when it couldn't open or " +"create an MSI file. Initial patch by William Tisäter." msgstr "" -#: ../../../build/NEWS:4547 +#: ../../../build/NEWS:5171 msgid "" "`bpo-19610 `__: ``setup()`` now warns " "about invalid types for some fields." msgstr "" -#: ../../../build/NEWS:4549 +#: ../../../build/NEWS:5173 msgid "" "The ``distutils.dist.Distribution`` class now warns when ``classifiers``, " "``keywords`` and ``platforms`` fields are not specified as a list or a " "string." msgstr "" -#: ../../../build/NEWS:4553 +#: ../../../build/NEWS:5177 msgid "" -"`bpo-32071 `__: Added the ``-k`` " -"command-line option to ``python -m unittest`` to run only tests that match " -"the given pattern(s)." +"`bpo-32071 `__: Added the ``-k`` command-" +"line option to ``python -m unittest`` to run only tests that match the given " +"pattern(s)." msgstr "" -#: ../../../build/NEWS:4556 +#: ../../../build/NEWS:5180 msgid "" "`bpo-10049 `__: Added *nullcontext* no-" "op context manager to contextlib. This provides a simpler and faster " "alternative to ExitStack() when handling optional context managers." msgstr "" -#: ../../../build/NEWS:4560 +#: ../../../build/NEWS:5184 msgid "" -"`bpo-28684 `__: The new " -"test.support.skip_unless_bind_unix_socket() decorator is used here to skip " -"asyncio tests that fail because the platform lacks a functional bind() " -"function for unix domain sockets (as it is the case for non root users on " -"the recent Android versions that run now SELinux in enforcing mode)." +"`bpo-28684 `__: The new test.support." +"skip_unless_bind_unix_socket() decorator is used here to skip asyncio tests " +"that fail because the platform lacks a functional bind() function for unix " +"domain sockets (as it is the case for non root users on the recent Android " +"versions that run now SELinux in enforcing mode)." msgstr "" -#: ../../../build/NEWS:4566 ../../../build/NEWS:8191 +#: ../../../build/NEWS:5190 ../../../build/NEWS:8815 msgid "" -"`bpo-32110 `__: " -"``codecs.StreamReader.read(n)`` now returns not more than *n* " -"characters/bytes for non-negative *n*. This makes it compatible with " -"``read()`` methods of other file-like objects." +"`bpo-32110 `__: ``codecs.StreamReader." +"read(n)`` now returns not more than *n* characters/bytes for non-negative " +"*n*. This makes it compatible with ``read()`` methods of other file-like " +"objects." msgstr "" -#: ../../../build/NEWS:4570 +#: ../../../build/NEWS:5194 msgid "" "`bpo-27535 `__: The warnings module " -"doesn't leak memory anymore in the hidden warnings registry for the " -"\"ignore\" action of warnings filters. warn_explicit() function doesn't add " -"the warning key to the registry anymore for the \"ignore\" action." +"doesn't leak memory anymore in the hidden warnings registry for the \"ignore" +"\" action of warnings filters. warn_explicit() function doesn't add the " +"warning key to the registry anymore for the \"ignore\" action." msgstr "" -#: ../../../build/NEWS:4575 +#: ../../../build/NEWS:5199 msgid "" "`bpo-32088 `__: warnings: When Python " -"is build is debug mode (``Py_DEBUG``), :exc:`DeprecationWarning`, " -":exc:`PendingDeprecationWarning` and :exc:`ImportWarning` warnings are now " +"is build is debug mode (``Py_DEBUG``), :exc:`DeprecationWarning`, :exc:" +"`PendingDeprecationWarning` and :exc:`ImportWarning` warnings are now " "displayed by default." msgstr "" -#: ../../../build/NEWS:4579 +#: ../../../build/NEWS:5203 msgid "" "`bpo-1647489 `__: Fixed searching " "regular expression patterns that could match an empty string. Non-empty " "string can now be correctly found after matching an empty string." msgstr "" -#: ../../../build/NEWS:4583 +#: ../../../build/NEWS:5207 msgid "" "`bpo-25054 `__: Added support of " "splitting on a pattern that could match an empty string." msgstr "" -#: ../../../build/NEWS:4586 ../../../build/NEWS:8195 ../../../build/NEWS:12946 +#: ../../../build/NEWS:5210 ../../../build/NEWS:8819 ../../../build/NEWS:13570 msgid "" -"`bpo-32072 `__: Fixed issues with binary" -" plists:" +"`bpo-32072 `__: Fixed issues with binary " +"plists:" msgstr "" -#: ../../../build/NEWS:4588 ../../../build/NEWS:8197 ../../../build/NEWS:12948 +#: ../../../build/NEWS:5212 ../../../build/NEWS:8821 ../../../build/NEWS:13572 msgid "Fixed saving bytearrays." msgstr "" -#: ../../../build/NEWS:4589 ../../../build/NEWS:8198 ../../../build/NEWS:12949 +#: ../../../build/NEWS:5213 ../../../build/NEWS:8822 ../../../build/NEWS:13573 msgid "Identical objects will be saved only once." msgstr "" -#: ../../../build/NEWS:4590 ../../../build/NEWS:8199 ../../../build/NEWS:12950 +#: ../../../build/NEWS:5214 ../../../build/NEWS:8823 ../../../build/NEWS:13574 msgid "Equal references will be load as identical objects." msgstr "" -#: ../../../build/NEWS:4591 ../../../build/NEWS:8200 ../../../build/NEWS:12951 +#: ../../../build/NEWS:5215 ../../../build/NEWS:8824 ../../../build/NEWS:13575 msgid "Added support for saving and loading recursive data structures." msgstr "" -#: ../../../build/NEWS:4593 +#: ../../../build/NEWS:5217 msgid "" "`bpo-32069 `__: Drop legacy SSL " "transport from asyncio, ssl.MemoryBIO is always used anyway." msgstr "" -#: ../../../build/NEWS:4596 +#: ../../../build/NEWS:5220 msgid "" -"`bpo-32066 `__: asyncio: Support " -"pathlib.Path in create_unix_connection; sock arg should be optional" +"`bpo-32066 `__: asyncio: Support pathlib." +"Path in create_unix_connection; sock arg should be optional" msgstr "" -#: ../../../build/NEWS:4599 +#: ../../../build/NEWS:5223 msgid "" "`bpo-32046 `__: Updates 2to3 to convert " "from operator.isCallable(obj) to callable(obj). Patch by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:4602 +#: ../../../build/NEWS:5226 msgid "" -"`bpo-32018 `__: inspect.signature should" -" follow PEP 8, if the parameter has an annotation and a default value. Patch" -" by Dong-hee Na." +"`bpo-32018 `__: inspect.signature should " +"follow PEP 8, if the parameter has an annotation and a default value. Patch " +"by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:4605 +#: ../../../build/NEWS:5229 msgid "" "`bpo-32025 `__: Add time.thread_time() " "and time.thread_time_ns()" msgstr "" -#: ../../../build/NEWS:4607 +#: ../../../build/NEWS:5231 msgid "" "`bpo-32037 `__: Integers that fit in a " "signed 32-bit integer will be now pickled with protocol 0 using the INT " @@ -8798,296 +9909,295 @@ msgid "" "2." msgstr "" -#: ../../../build/NEWS:4612 ../../../build/NEWS:8202 +#: ../../../build/NEWS:5236 ../../../build/NEWS:8826 msgid "" -"`bpo-32034 `__: Make " -"asyncio.IncompleteReadError and LimitOverrunError pickleable." +"`bpo-32034 `__: Make asyncio." +"IncompleteReadError and LimitOverrunError pickleable." msgstr "" -#: ../../../build/NEWS:4615 ../../../build/NEWS:8205 +#: ../../../build/NEWS:5239 ../../../build/NEWS:8829 msgid "" "`bpo-32015 `__: Fixed the looping of " -"asyncio in the case of reconnection the socket during waiting async " -"read/write from/to the socket." +"asyncio in the case of reconnection the socket during waiting async read/" +"write from/to the socket." msgstr "" -#: ../../../build/NEWS:4618 ../../../build/NEWS:8208 +#: ../../../build/NEWS:5242 ../../../build/NEWS:8832 msgid "" "`bpo-32011 `__: Restored support of " "loading marshal files with the TYPE_INT64 code. These files can be produced " "in Python 2.7." msgstr "" -#: ../../../build/NEWS:4621 +#: ../../../build/NEWS:5245 msgid "" -"`bpo-28369 `__: Enhance " -"add_reader/writer check that socket is not used by some transport. Before, " -"only cases when add_reader/writer were called with an int FD were supported." -" Now the check is implemented correctly for all file-like objects." +"`bpo-28369 `__: Enhance add_reader/" +"writer check that socket is not used by some transport. Before, only cases " +"when add_reader/writer were called with an int FD were supported. Now the " +"check is implemented correctly for all file-like objects." msgstr "" -#: ../../../build/NEWS:4626 +#: ../../../build/NEWS:5250 msgid "" "`bpo-31976 `__: Fix race condition when " -"flushing a file is slow, which can cause a segfault if closing the file from" -" another thread." +"flushing a file is slow, which can cause a segfault if closing the file from " +"another thread." msgstr "" -#: ../../../build/NEWS:4629 +#: ../../../build/NEWS:5253 msgid "" -"`bpo-31985 `__: Formally deprecated " -"aifc.openfp, sunau.openfp, and wave.openfp. Since change " +"`bpo-31985 `__: Formally deprecated aifc." +"openfp, sunau.openfp, and wave.openfp. Since change " "7bc817d5ba917528e8bd07ec461c635291e7b06a in 1993, openfp in each of the " "three modules had been pointing to that module's open function as a matter " "of backwards compatibility, though it had been both untested and " "undocumented." msgstr "" -#: ../../../build/NEWS:4635 +#: ../../../build/NEWS:5259 msgid "" "`bpo-21862 `__: cProfile command line " "now accepts `-m module_name` as an alternative to script path. Patch by " "Sanyam Khurana." msgstr "" -#: ../../../build/NEWS:4638 ../../../build/NEWS:8211 +#: ../../../build/NEWS:5262 ../../../build/NEWS:8835 msgid "" "`bpo-31970 `__: Reduce performance " "overhead of asyncio debug mode." msgstr "" -#: ../../../build/NEWS:4640 +#: ../../../build/NEWS:5264 msgid "" "`bpo-31843 `__: *database* argument of " "sqlite3.connect() now accepts a :term:`path-like object`, instead of just a " "string." msgstr "" -#: ../../../build/NEWS:4643 +#: ../../../build/NEWS:5267 msgid "" "`bpo-31945 `__: Add Configurable " "*blocksize* to ``HTTPConnection`` and ``HTTPSConnection`` for improved " "upload throughput. Patch by Nir Soffer." msgstr "" -#: ../../../build/NEWS:4646 +#: ../../../build/NEWS:5270 msgid "" "`bpo-31943 `__: Add a ``cancelled()`` " "method to :class:`asyncio.Handle`. Patch by Marat Sharafutdinov." msgstr "" -#: ../../../build/NEWS:4649 ../../../build/NEWS:8213 +#: ../../../build/NEWS:5273 ../../../build/NEWS:8837 msgid "" "`bpo-9678 `__: Fixed determining the MAC " "address in the uuid module:" msgstr "" -#: ../../../build/NEWS:4651 ../../../build/NEWS:8215 +#: ../../../build/NEWS:5275 ../../../build/NEWS:8839 msgid "Using ifconfig on NetBSD and OpenBSD." msgstr "" -#: ../../../build/NEWS:4652 ../../../build/NEWS:8216 +#: ../../../build/NEWS:5276 ../../../build/NEWS:8840 msgid "Using arp on Linux, FreeBSD, NetBSD and OpenBSD." msgstr "" -#: ../../../build/NEWS:4654 ../../../build/NEWS:8218 +#: ../../../build/NEWS:5278 ../../../build/NEWS:8842 msgid "Based on patch by Takayuki Shimizukawa." msgstr "" -#: ../../../build/NEWS:4656 ../../../build/NEWS:8220 +#: ../../../build/NEWS:5280 ../../../build/NEWS:8844 msgid "" "`bpo-30057 `__: Fix potential missed " "signal in signal.signal()." msgstr "" -#: ../../../build/NEWS:4658 ../../../build/NEWS:8222 +#: ../../../build/NEWS:5282 ../../../build/NEWS:8846 msgid "" "`bpo-31933 `__: Fix Blake2 params " "leaf_size and node_offset on big endian platforms. Patch by Jack O'Connor." msgstr "" -#: ../../../build/NEWS:4661 +#: ../../../build/NEWS:5285 msgid "" "`bpo-21423 `__: Add an initializer " "argument to {Process,Thread}PoolExecutor" msgstr "" -#: ../../../build/NEWS:4663 ../../../build/NEWS:8225 +#: ../../../build/NEWS:5287 ../../../build/NEWS:8849 msgid "" -"`bpo-31927 `__: Fixed compilation of the" -" socket module on NetBSD 8. Fixed assertion failure or reading arbitrary " +"`bpo-31927 `__: Fixed compilation of the " +"socket module on NetBSD 8. Fixed assertion failure or reading arbitrary " "data when parse a AF_BLUETOOTH address on NetBSD and DragonFly BSD." msgstr "" -#: ../../../build/NEWS:4667 ../../../build/NEWS:8229 +#: ../../../build/NEWS:5291 ../../../build/NEWS:8853 msgid "" "`bpo-27666 `__: Fixed stack corruption " "in curses.box() and curses.ungetmouse() when the size of types chtype or " -"mmask_t is less than the size of C long. curses.box() now accepts characters" -" as arguments. Based on patch by Steve Fink." +"mmask_t is less than the size of C long. curses.box() now accepts characters " +"as arguments. Based on patch by Steve Fink." msgstr "" -#: ../../../build/NEWS:4672 +#: ../../../build/NEWS:5296 msgid "" "`bpo-31917 `__: Add 3 new clock " -"identifiers: :data:`time.CLOCK_BOOTTIME`, :data:`time.CLOCK_PROF` and " -":data:`time.CLOCK_UPTIME`." +"identifiers: :data:`time.CLOCK_BOOTTIME`, :data:`time.CLOCK_PROF` and :data:" +"`time.CLOCK_UPTIME`." msgstr "" -#: ../../../build/NEWS:4675 ../../../build/NEWS:8234 +#: ../../../build/NEWS:5299 ../../../build/NEWS:8858 msgid "" "`bpo-31897 `__: plistlib now catches " "more errors when read binary plists and raises InvalidFileException instead " "of unexpected exceptions." msgstr "" -#: ../../../build/NEWS:4678 ../../../build/NEWS:8237 +#: ../../../build/NEWS:5302 ../../../build/NEWS:8861 msgid "" "`bpo-25720 `__: Fix the method for " "checking pad state of curses WINDOW. Patch by Masayuki Yamamoto." msgstr "" -#: ../../../build/NEWS:4681 ../../../build/NEWS:8240 +#: ../../../build/NEWS:5305 ../../../build/NEWS:8864 msgid "" "`bpo-31893 `__: Fixed the layout of the " "kqueue_event structure on OpenBSD and NetBSD. Fixed the comparison of the " "kqueue_event objects." msgstr "" -#: ../../../build/NEWS:4684 ../../../build/NEWS:8243 +#: ../../../build/NEWS:5308 ../../../build/NEWS:8867 msgid "" "`bpo-31891 `__: Fixed building the " "curses module on NetBSD." msgstr "" -#: ../../../build/NEWS:4686 +#: ../../../build/NEWS:5310 msgid "" -"`bpo-31884 `__: added required constants" -" to subprocess module for setting priority on windows" +"`bpo-31884 `__: added required constants " +"to subprocess module for setting priority on windows" msgstr "" -#: ../../../build/NEWS:4689 +#: ../../../build/NEWS:5313 msgid "" "`bpo-28281 `__: Remove year (1-9999) " "limits on the Calendar.weekday() function." msgstr "" -#: ../../../build/NEWS:4691 +#: ../../../build/NEWS:5315 msgid "Patch by Mark Gollahon." msgstr "" -#: ../../../build/NEWS:4693 +#: ../../../build/NEWS:5317 msgid "" "`bpo-31702 `__: crypt.mksalt() now " "allows to specify the number of rounds for SHA-256 and SHA-512 hashing." msgstr "" -#: ../../../build/NEWS:4696 +#: ../../../build/NEWS:5320 msgid "" "`bpo-30639 `__: :func:`inspect.getfile` " "no longer computes the repr of unknown objects to display in an error " "message, to protect against badly behaved custom reprs." msgstr "" -#: ../../../build/NEWS:4700 +#: ../../../build/NEWS:5324 msgid "" -"`bpo-30768 `__: Fix the " -"pthread+semaphore implementation of PyThread_acquire_lock_timed() when " -"called with timeout > 0 and intr_flag=0: recompute the timeout if " -"sem_timedwait() is interrupted by a signal (EINTR). See also the :pep:`475`." +"`bpo-30768 `__: Fix the pthread" +"+semaphore implementation of PyThread_acquire_lock_timed() when called with " +"timeout > 0 and intr_flag=0: recompute the timeout if sem_timedwait() is " +"interrupted by a signal (EINTR). See also the :pep:`475`." msgstr "" -#: ../../../build/NEWS:4705 +#: ../../../build/NEWS:5329 msgid "" -"`bpo-31854 `__: Add " -"``mmap.ACCESS_DEFAULT`` constant." +"`bpo-31854 `__: Add ``mmap." +"ACCESS_DEFAULT`` constant." msgstr "" -#: ../../../build/NEWS:4707 +#: ../../../build/NEWS:5331 msgid "" "`bpo-31834 `__: Use optimized code for " "BLAKE2 only with SSSE3+. The pure SSE2 implementation is slower than the " "pure C reference implementation." msgstr "" -#: ../../../build/NEWS:4710 +#: ../../../build/NEWS:5334 msgid "" -"`bpo-28292 `__: " -"Calendar.itermonthdates() will now consistently raise an exception when a " -"date falls outside of the 0001-01-01 through 9999-12-31 range. To support " -"applications that cannot tolerate such exceptions, the new methods " -"itermonthdays3() and itermonthdays4() are added. The new methods return " -"tuples and are not restricted by the range supported by datetime.date." +"`bpo-28292 `__: Calendar." +"itermonthdates() will now consistently raise an exception when a date falls " +"outside of the 0001-01-01 through 9999-12-31 range. To support applications " +"that cannot tolerate such exceptions, the new methods itermonthdays3() and " +"itermonthdays4() are added. The new methods return tuples and are not " +"restricted by the range supported by datetime.date." msgstr "" -#: ../../../build/NEWS:4717 +#: ../../../build/NEWS:5341 msgid "" "`bpo-28564 `__: The shutil.rmtree() " "function has been sped up to 20--40%. This was done using the os.scandir() " "function." msgstr "" -#: ../../../build/NEWS:4720 ../../../build/NEWS:8245 +#: ../../../build/NEWS:5344 ../../../build/NEWS:8869 msgid "" -"`bpo-28416 `__: Instances of " -"pickle.Pickler subclass with the persistent_id() method and pickle.Unpickler" -" subclass with the persistent_load() method no longer create reference " -"cycles." +"`bpo-28416 `__: Instances of pickle." +"Pickler subclass with the persistent_id() method and pickle.Unpickler " +"subclass with the persistent_load() method no longer create reference cycles." msgstr "" -#: ../../../build/NEWS:4724 +#: ../../../build/NEWS:5348 msgid "" -"`bpo-31653 `__: Don't release the GIL if" -" we can acquire a multiprocessing semaphore immediately." +"`bpo-31653 `__: Don't release the GIL if " +"we can acquire a multiprocessing semaphore immediately." msgstr "" -#: ../../../build/NEWS:4727 ../../../build/NEWS:8249 +#: ../../../build/NEWS:5351 ../../../build/NEWS:8873 msgid "" -"`bpo-28326 `__: Fix " -"multiprocessing.Process when stdout and/or stderr is closed or None." +"`bpo-28326 `__: Fix multiprocessing." +"Process when stdout and/or stderr is closed or None." msgstr "" -#: ../../../build/NEWS:4730 +#: ../../../build/NEWS:5354 msgid "" "`bpo-20825 `__: Add `subnet_of` and " -"`superset_of` containment tests to :class:`ipaddress.IPv6Network` and " -":class:`ipaddress.IPv4Network`. Patch by Michel Albert and Cheryl Sabella." +"`superset_of` containment tests to :class:`ipaddress.IPv6Network` and :class:" +"`ipaddress.IPv4Network`. Patch by Michel Albert and Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:4734 +#: ../../../build/NEWS:5358 msgid "" -"`bpo-31827 `__: Remove the " -"os.stat_float_times() function. It was introduced in Python 2.3 for backward" -" compatibility with Python 2.2, and was deprecated since Python 3.1." +"`bpo-31827 `__: Remove the os." +"stat_float_times() function. It was introduced in Python 2.3 for backward " +"compatibility with Python 2.2, and was deprecated since Python 3.1." msgstr "" -#: ../../../build/NEWS:4738 +#: ../../../build/NEWS:5362 msgid "" -"`bpo-31756 `__: Add a " -"``subprocess.Popen(text=False)`` keyword argument to `subprocess` functions " -"to be more explicit about when the library should attempt to decode outputs " -"into text. Patch by Andrew Clegg." +"`bpo-31756 `__: Add a ``subprocess." +"Popen(text=False)`` keyword argument to `subprocess` functions to be more " +"explicit about when the library should attempt to decode outputs into text. " +"Patch by Andrew Clegg." msgstr "" -#: ../../../build/NEWS:4742 +#: ../../../build/NEWS:5366 msgid "" -"`bpo-31819 `__: Add " -"AbstractEventLoop.sock_recv_into()." +"`bpo-31819 `__: Add AbstractEventLoop." +"sock_recv_into()." msgstr "" -#: ../../../build/NEWS:4744 ../../../build/NEWS:7560 ../../../build/NEWS:8252 +#: ../../../build/NEWS:5368 ../../../build/NEWS:8184 ../../../build/NEWS:8876 msgid "" "`bpo-31457 `__: If nested log adapters " "are used, the inner ``process()`` methods are no longer omitted." msgstr "" -#: ../../../build/NEWS:4747 ../../../build/NEWS:8255 +#: ../../../build/NEWS:5371 ../../../build/NEWS:8879 msgid "" -"`bpo-31457 `__: The ``manager`` property" -" on LoggerAdapter objects is now properly settable." +"`bpo-31457 `__: The ``manager`` property " +"on LoggerAdapter objects is now properly settable." msgstr "" -#: ../../../build/NEWS:4750 ../../../build/NEWS:8258 +#: ../../../build/NEWS:5374 ../../../build/NEWS:8882 msgid "" "`bpo-31806 `__: Fix timeout rounding in " "time.sleep(), threading.Lock.acquire() and socket.socket.settimeout() to " @@ -9096,20 +10206,20 @@ msgid "" "non-blocking. Patch by Pablo Galindo." msgstr "" -#: ../../../build/NEWS:4756 +#: ../../../build/NEWS:5380 msgid "" -"`bpo-31803 `__: time.clock() and " -"time.get_clock_info('clock') now emit a DeprecationWarning warning." +"`bpo-31803 `__: time.clock() and time." +"get_clock_info('clock') now emit a DeprecationWarning warning." msgstr "" -#: ../../../build/NEWS:4759 +#: ../../../build/NEWS:5383 msgid "" "`bpo-31800 `__: Extended support for " "parsing UTC offsets. strptime '%z' can now parse the output generated by " "datetime.isoformat, including seconds and microseconds." msgstr "" -#: ../../../build/NEWS:4763 ../../../build/NEWS:8264 +#: ../../../build/NEWS:5387 ../../../build/NEWS:8888 msgid "" "`bpo-28603 `__: traceback: Fix a " "TypeError that occurred during printing of exception tracebacks when either " @@ -9117,531 +10227,528 @@ msgid "" "unhashable. Patch by Zane Bitter." msgstr "" -#: ../../../build/NEWS:4767 +#: ../../../build/NEWS:5391 msgid "" -"`bpo-30541 `__: Add new function to seal" -" a mock and prevent the automatically creation of child mocks. Patch by " -"Mario Corchero." +"`bpo-30541 `__: Add new function to seal " +"a mock and prevent the automatically creation of child mocks. Patch by Mario " +"Corchero." msgstr "" -#: ../../../build/NEWS:4770 +#: ../../../build/NEWS:5394 msgid "" -"`bpo-31784 `__: Implement the " -":pep:`564`, add new 6 new functions with nanosecond resolution to the " -":mod:`time` module: :func:`~time.clock_gettime_ns`, " -":func:`~time.clock_settime_ns`, :func:`~time.monotonic_ns`, " -":func:`~time.perf_counter_ns`, :func:`~time.process_time_ns`, " -":func:`~time.time_ns`." +"`bpo-31784 `__: Implement the :pep:" +"`564`, add new 6 new functions with nanosecond resolution to the :mod:`time` " +"module: :func:`~time.clock_gettime_ns`, :func:`~time.clock_settime_ns`, :" +"func:`~time.monotonic_ns`, :func:`~time.perf_counter_ns`, :func:`~time." +"process_time_ns`, :func:`~time.time_ns`." msgstr "" -#: ../../../build/NEWS:4776 +#: ../../../build/NEWS:5400 msgid "" "`bpo-30143 `__: 2to3 now generates a " "code that uses abstract collection classes from collections.abc rather than " "collections." msgstr "" -#: ../../../build/NEWS:4779 ../../../build/NEWS:8270 +#: ../../../build/NEWS:5403 ../../../build/NEWS:8894 msgid "" "`bpo-31770 `__: Prevent a crash when " "calling the ``__init__()`` method of a ``sqlite3.Cursor`` object more than " "once. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:4782 ../../../build/NEWS:8277 +#: ../../../build/NEWS:5406 ../../../build/NEWS:8901 msgid "" "`bpo-31764 `__: Prevent a crash in " "``sqlite3.Cursor.close()`` in case the ``Cursor`` object is uninitialized. " "Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:4785 ../../../build/NEWS:8280 +#: ../../../build/NEWS:5409 ../../../build/NEWS:8904 msgid "" "`bpo-31752 `__: Fix possible crash in " "timedelta constructor called with custom integers." msgstr "" -#: ../../../build/NEWS:4788 ../../../build/NEWS:8289 +#: ../../../build/NEWS:5412 ../../../build/NEWS:8913 msgid "" "`bpo-31620 `__: an empty asyncio.Queue " "now doesn't leak memory when queue.get pollers timeout" msgstr "" -#: ../../../build/NEWS:4791 +#: ../../../build/NEWS:5415 msgid "" -"`bpo-31690 `__: Allow the flags " -"re.ASCII, re.LOCALE, and re.UNICODE to be used as group flags for regular " +"`bpo-31690 `__: Allow the flags re." +"ASCII, re.LOCALE, and re.UNICODE to be used as group flags for regular " "expressions." msgstr "" -#: ../../../build/NEWS:4794 +#: ../../../build/NEWS:5418 msgid "" "`bpo-30349 `__: FutureWarning is now " "emitted if a regular expression contains character set constructs that will " "change semantically in the future (nested sets and set operations)." msgstr "" -#: ../../../build/NEWS:4798 +#: ../../../build/NEWS:5422 msgid "" "`bpo-31664 `__: Added support for the " "Blowfish hashing in the crypt module." msgstr "" -#: ../../../build/NEWS:4800 ../../../build/NEWS:8292 +#: ../../../build/NEWS:5424 ../../../build/NEWS:8916 msgid "" "`bpo-31632 `__: Fix method " -"set_protocol() of class _SSLProtocolTransport in asyncio module. This method" -" was previously modifying a wrong reference to the protocol." +"set_protocol() of class _SSLProtocolTransport in asyncio module. This method " +"was previously modifying a wrong reference to the protocol." msgstr "" -#: ../../../build/NEWS:4804 ../../../build/NEWS:8303 +#: ../../../build/NEWS:5428 ../../../build/NEWS:8927 msgid "" "`bpo-15037 `__: Added a workaround for " "getkey() in curses for ncurses 5.7 and earlier." msgstr "" -#: ../../../build/NEWS:4807 +#: ../../../build/NEWS:5431 msgid "" "`bpo-31307 `__: Allow use of bytes " "objects for arguments to :meth:`configparser.ConfigParser.read`. Patch by " "Vincent Michel." msgstr "" -#: ../../../build/NEWS:4810 ../../../build/NEWS:8323 +#: ../../../build/NEWS:5434 ../../../build/NEWS:8947 msgid "" -"`bpo-31334 `__: Fix " -"``poll.poll([timeout])`` in the ``select`` module for arbitrary negative " -"timeouts on all OSes where it can only be a non-negative integer or -1. " -"Patch by Riccardo Coccioli." +"`bpo-31334 `__: Fix ``poll." +"poll([timeout])`` in the ``select`` module for arbitrary negative timeouts " +"on all OSes where it can only be a non-negative integer or -1. Patch by " +"Riccardo Coccioli." msgstr "" -#: ../../../build/NEWS:4814 ../../../build/NEWS:8327 +#: ../../../build/NEWS:5438 ../../../build/NEWS:8951 msgid "" "`bpo-31310 `__: multiprocessing's " "semaphore tracker should be launched again if crashed." msgstr "" -#: ../../../build/NEWS:4817 ../../../build/NEWS:8330 +#: ../../../build/NEWS:5441 ../../../build/NEWS:8954 msgid "" "`bpo-31308 `__: Make multiprocessing's " "forkserver process immune to Ctrl-C and other user interruptions. If it " "crashes, restart it when necessary." msgstr "" -#: ../../../build/NEWS:4820 +#: ../../../build/NEWS:5444 msgid "" "`bpo-31245 `__: Added support for " "AF_UNIX socket in asyncio `create_datagram_endpoint`." msgstr "" -#: ../../../build/NEWS:4823 +#: ../../../build/NEWS:5447 msgid "" "`bpo-30553 `__: Add HTTP/2 status code " "421 (Misdirected Request) to :class:`http.HTTPStatus`. Patch by Vitor " "Pereira." msgstr "" -#: ../../../build/NEWS:4829 ../../../build/NEWS:8336 +#: ../../../build/NEWS:5453 ../../../build/NEWS:8960 msgid "" -"`bpo-32105 `__: Added " -"asyncio.BaseEventLoop.connect_accepted_socket versionadded marker." +"`bpo-32105 `__: Added asyncio." +"BaseEventLoop.connect_accepted_socket versionadded marker." msgstr "" -#: ../../../build/NEWS:4835 ../../../build/NEWS:8349 +#: ../../../build/NEWS:5459 ../../../build/NEWS:8973 msgid "" "`bpo-31380 `__: Skip test_httpservers " "test_undecodable_file on macOS: fails on APFS." msgstr "" -#: ../../../build/NEWS:4838 ../../../build/NEWS:8352 +#: ../../../build/NEWS:5462 ../../../build/NEWS:8976 msgid "" -"`bpo-31705 `__: Skip " -"test_socket.test_sha256() on Linux kernel older than 4.5. The test fails " -"with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged into the kernel " -"4.5." +"`bpo-31705 `__: Skip test_socket." +"test_sha256() on Linux kernel older than 4.5. The test fails with ENOKEY on " +"kernel 3.10 (on ppc64le). A fix was merged into the kernel 4.5." msgstr "" -#: ../../../build/NEWS:4842 +#: ../../../build/NEWS:5466 msgid "" "`bpo-32138 `__: Skip on Android " -"test_faulthandler tests that raise SIGSEGV and remove the " -"test.support.requires_android_level decorator." +"test_faulthandler tests that raise SIGSEGV and remove the test.support." +"requires_android_level decorator." msgstr "" -#: ../../../build/NEWS:4845 +#: ../../../build/NEWS:5469 msgid "" "`bpo-32136 `__: The runtime embedding " -"tests have been split out from ``Lib/test/test_capi.py`` into a new " -"``Lib/test/test_embed.py`` file." +"tests have been split out from ``Lib/test/test_capi.py`` into a new ``Lib/" +"test/test_embed.py`` file." msgstr "" -#: ../../../build/NEWS:4848 +#: ../../../build/NEWS:5472 msgid "" -"`bpo-28668 `__: " -"test.support.requires_multiprocessing_queue is removed. Skip tests with " -"test.support.import_module('multiprocessing.synchronize') instead when the " -"semaphore implementation is broken or missing." +"`bpo-28668 `__: test.support." +"requires_multiprocessing_queue is removed. Skip tests with test.support." +"import_module('multiprocessing.synchronize') instead when the semaphore " +"implementation is broken or missing." msgstr "" -#: ../../../build/NEWS:4852 +#: ../../../build/NEWS:5476 msgid "" "`bpo-32126 `__: Skip " "test_get_event_loop_new_process in test.test_asyncio.test_events when " "sem_open() is not functional." msgstr "" -#: ../../../build/NEWS:4855 ../../../build/NEWS:8356 +#: ../../../build/NEWS:5479 ../../../build/NEWS:8980 msgid "" -"`bpo-31174 `__: Fix " -"test_tools.test_unparse: DirectoryTestCase now stores the names sample to " -"always test the same files. It prevents false alarms when hunting reference " -"leaks." +"`bpo-31174 `__: Fix test_tools." +"test_unparse: DirectoryTestCase now stores the names sample to always test " +"the same files. It prevents false alarms when hunting reference leaks." msgstr "" -#: ../../../build/NEWS:4862 +#: ../../../build/NEWS:5486 msgid "" "`bpo-28538 `__: Revert the previous " "changes, the if_nameindex structure is defined by Unified Headers." msgstr "" -#: ../../../build/NEWS:4865 +#: ../../../build/NEWS:5489 msgid "" "`bpo-28762 `__: Revert the last commit, " "the F_LOCK macro is defined by Android Unified Headers." msgstr "" -#: ../../../build/NEWS:4868 +#: ../../../build/NEWS:5492 msgid "" -"`bpo-29040 `__: Support building Android" -" with Unified Headers. The first NDK release to support Unified Headers is " +"`bpo-29040 `__: Support building Android " +"with Unified Headers. The first NDK release to support Unified Headers is " "android-ndk-r14." msgstr "" -#: ../../../build/NEWS:4871 ../../../build/NEWS:8366 +#: ../../../build/NEWS:5495 ../../../build/NEWS:8990 msgid "" "`bpo-32059 `__: ``detect_modules()`` in " "``setup.py`` now also searches the sysroot paths when cross-compiling." msgstr "" -#: ../../../build/NEWS:4874 ../../../build/NEWS:8369 +#: ../../../build/NEWS:5498 ../../../build/NEWS:8993 msgid "" "`bpo-31957 `__: Fixes Windows SDK " "version detection when building for Windows." msgstr "" -#: ../../../build/NEWS:4876 ../../../build/NEWS:8371 +#: ../../../build/NEWS:5500 ../../../build/NEWS:8995 msgid "" -"`bpo-31609 `__: Fixes quotes in " -"PCbuild/clean.bat" +"`bpo-31609 `__: Fixes quotes in PCbuild/" +"clean.bat" msgstr "" -#: ../../../build/NEWS:4878 ../../../build/NEWS:8373 +#: ../../../build/NEWS:5502 ../../../build/NEWS:8997 msgid "" "`bpo-31934 `__: Abort the build when " "building out of a not clean source tree." msgstr "" -#: ../../../build/NEWS:4880 ../../../build/NEWS:8375 +#: ../../../build/NEWS:5504 ../../../build/NEWS:8999 msgid "" "`bpo-31926 `__: Fixed Argument Clinic " "sometimes causing compilation errors when there was more than one function " "and/or method in a .c file with the same name." msgstr "" -#: ../../../build/NEWS:4884 ../../../build/NEWS:8379 +#: ../../../build/NEWS:5508 ../../../build/NEWS:9003 msgid "" -"`bpo-28791 `__: Update Windows builds to" -" use SQLite 3.21.0." +"`bpo-28791 `__: Update Windows builds to " +"use SQLite 3.21.0." msgstr "" -#: ../../../build/NEWS:4886 ../../../build/NEWS:8381 +#: ../../../build/NEWS:5510 ../../../build/NEWS:9005 msgid "" -"`bpo-28791 `__: Update OS X installer to" -" use SQLite 3.21.0." +"`bpo-28791 `__: Update OS X installer to " +"use SQLite 3.21.0." msgstr "" -#: ../../../build/NEWS:4888 +#: ../../../build/NEWS:5512 msgid "" -"`bpo-28643 `__: Record profile-opt build" -" progress with stamp files." +"`bpo-28643 `__: Record profile-opt build " +"progress with stamp files." msgstr "" -#: ../../../build/NEWS:4890 +#: ../../../build/NEWS:5514 msgid "" "`bpo-31866 `__: Finish removing support " "for AtheOS." msgstr "" -#: ../../../build/NEWS:4895 ../../../build/NEWS:8391 +#: ../../../build/NEWS:5519 ../../../build/NEWS:9015 msgid "" "`bpo-1102 `__: Return ``None`` when " "``View.Fetch()`` returns ``ERROR_NO_MORE_ITEMS`` instead of raising " "``MSIError``." msgstr "" -#: ../../../build/NEWS:4898 ../../../build/NEWS:8394 +#: ../../../build/NEWS:5522 ../../../build/NEWS:9018 msgid "Initial patch by Anthony Tuininga." msgstr "" -#: ../../../build/NEWS:4900 ../../../build/NEWS:8396 +#: ../../../build/NEWS:5524 ../../../build/NEWS:9020 msgid "" "`bpo-31944 `__: Fixes Modify button in " "Apps and Features dialog." msgstr "" -#: ../../../build/NEWS:4902 +#: ../../../build/NEWS:5526 msgid "" -"`bpo-20486 `__: Implement the " -"``Database.Close()`` method to help closing MSI database objects." +"`bpo-20486 `__: Implement the ``Database." +"Close()`` method to help closing MSI database objects." msgstr "" -#: ../../../build/NEWS:4905 +#: ../../../build/NEWS:5529 msgid "" "`bpo-31857 `__: Make the behavior of " "USE_STACKCHECK deterministic in a multi-threaded environment." msgstr "" -#: ../../../build/NEWS:4911 ../../../build/NEWS:8401 +#: ../../../build/NEWS:5535 ../../../build/NEWS:9025 msgid "" "`bpo-31392 `__: Update macOS installer " "to use OpenSSL 1.0.2m" msgstr "" -#: ../../../build/NEWS:4916 ../../../build/NEWS:8406 +#: ../../../build/NEWS:5540 ../../../build/NEWS:9030 msgid "" "`bpo-32207 `__: Improve tk event " -"exception tracebacks in IDLE. When tk event handling is driven by IDLE's run" -" loop, a confusing and distracting queue.EMPTY traceback context is no " -"longer added to tk event exception tracebacks. The traceback is now the " -"same as when event handling is driven by user code. Patch based on a " -"suggestion by Serhiy Storchaka." +"exception tracebacks in IDLE. When tk event handling is driven by IDLE's run " +"loop, a confusing and distracting queue.EMPTY traceback context is no longer " +"added to tk event exception tracebacks. The traceback is now the same as " +"when event handling is driven by user code. Patch based on a suggestion by " +"Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:4922 ../../../build/NEWS:8412 +#: ../../../build/NEWS:5546 ../../../build/NEWS:9036 msgid "" "`bpo-32164 `__: Delete unused file " -"idlelib/tabbedpages.py. Use of TabbedPageSet in configdialog was replaced by" -" ttk.Notebook." +"idlelib/tabbedpages.py. Use of TabbedPageSet in configdialog was replaced by " +"ttk.Notebook." msgstr "" -#: ../../../build/NEWS:4925 ../../../build/NEWS:8415 +#: ../../../build/NEWS:5549 ../../../build/NEWS:9039 msgid "" "`bpo-32100 `__: IDLE: Fix old and new " "bugs in pathbrowser; improve tests. Patch mostly by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:4928 ../../../build/NEWS:8418 +#: ../../../build/NEWS:5552 ../../../build/NEWS:9042 msgid "" "`bpo-31858 `__: IDLE -- Restrict shell " "prompt manipulation to the shell. Editor and output windows only see an " -"empty last prompt line. This simplifies the code and fixes a minor bug when" -" newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is" -" not set or changed." +"empty last prompt line. This simplifies the code and fixes a minor bug when " +"newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is " +"not set or changed." msgstr "" -#: ../../../build/NEWS:4933 ../../../build/NEWS:8423 +#: ../../../build/NEWS:5557 ../../../build/NEWS:9047 msgid "" "`bpo-31860 `__: The font sample in the " "IDLE configuration dialog is now editable. Changes persist while IDLE " "remains open" msgstr "" -#: ../../../build/NEWS:4936 ../../../build/NEWS:8426 +#: ../../../build/NEWS:5560 ../../../build/NEWS:9050 msgid "" "`bpo-31836 `__: Test_code_module now " "passes if run after test_idle, which sets ps1." msgstr "" -#: ../../../build/NEWS:4939 ../../../build/NEWS:8429 +#: ../../../build/NEWS:5563 ../../../build/NEWS:9053 msgid "" "The code module uses sys.ps1 if present or sets it to '>>> ' if not. " "Test_code_module now properly tests both behaviors. Ditto for ps2." msgstr "" -#: ../../../build/NEWS:4942 ../../../build/NEWS:8432 +#: ../../../build/NEWS:5566 ../../../build/NEWS:9056 msgid "" "`bpo-28603 `__: Fix a TypeError that " "caused a shell restart when printing a traceback that includes an exception " "that is unhashable. Patch by Zane Bitter." msgstr "" -#: ../../../build/NEWS:4946 +#: ../../../build/NEWS:5570 msgid "" -"`bpo-13802 `__: Use non-Latin characters" -" in the IDLE's Font settings sample. Even if one selects a font that defines" -" a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use " +"`bpo-13802 `__: Use non-Latin characters " +"in the IDLE's Font settings sample. Even if one selects a font that defines " +"a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use " "other fonts that define a character. The expanded example give users of non-" "Latin characters a better idea of what they might see in IDLE's shell and " "editors." msgstr "" -#: ../../../build/NEWS:4952 +#: ../../../build/NEWS:5576 msgid "" "To make room for the expanded sample, frames on the Font tab are re-" "arranged. The Font/Tabs help explains a bit about the additions." msgstr "" -#: ../../../build/NEWS:4958 +#: ../../../build/NEWS:5582 msgid "" "`bpo-32159 `__: Remove CVS and " -"Subversion tools: remove svneol.py and treesync.py scripts. CPython migrated" -" from CVS to Subversion, to Mercurial, and then to Git. CVS and Subversion " +"Subversion tools: remove svneol.py and treesync.py scripts. CPython migrated " +"from CVS to Subversion, to Mercurial, and then to Git. CVS and Subversion " "are no longer used to develop CPython." msgstr "" -#: ../../../build/NEWS:4963 ../../../build/NEWS:8472 +#: ../../../build/NEWS:5587 ../../../build/NEWS:9096 msgid "" "`bpo-30722 `__: Make redemo work with " "Python 3.6 and newer versions." msgstr "" -#: ../../../build/NEWS:4965 ../../../build/NEWS:8474 +#: ../../../build/NEWS:5589 ../../../build/NEWS:9098 msgid "" "Also, remove the ``LOCALE`` option since it doesn't work with string " "patterns in Python 3." msgstr "" -#: ../../../build/NEWS:4968 ../../../build/NEWS:8477 +#: ../../../build/NEWS:5592 ../../../build/NEWS:9101 msgid "Patch by Christoph Sarnowski." msgstr "" -#: ../../../build/NEWS:4973 ../../../build/NEWS:8482 +#: ../../../build/NEWS:5597 ../../../build/NEWS:9106 msgid "" -"`bpo-20891 `__: Fix PyGILState_Ensure()." -" When PyGILState_Ensure() is called in a non-Python thread before " +"`bpo-20891 `__: Fix PyGILState_Ensure(). " +"When PyGILState_Ensure() is called in a non-Python thread before " "PyEval_InitThreads(), only call PyEval_InitThreads() after calling " "PyThreadState_New() to fix a crash." msgstr "" -#: ../../../build/NEWS:4977 +#: ../../../build/NEWS:5601 msgid "" "`bpo-32125 `__: The " "``Py_UseClassExceptionsFlag`` flag has been removed. It was deprecated and " "wasn't used anymore since Python 2.0." msgstr "" -#: ../../../build/NEWS:4980 +#: ../../../build/NEWS:5604 msgid "" "`bpo-25612 `__: Move the current " -"exception state from the frame object to the co-routine. This simplifies the" -" interpreter and fixes a couple of obscure bugs caused by having swap " +"exception state from the frame object to the co-routine. This simplifies the " +"interpreter and fixes a couple of obscure bugs caused by having swap " "exception state when entering or exiting a generator." msgstr "" -#: ../../../build/NEWS:4985 +#: ../../../build/NEWS:5609 msgid "" "`bpo-23699 `__: Add " "Py_RETURN_RICHCOMPARE macro to reduce boilerplate code in rich comparison " "functions." msgstr "" -#: ../../../build/NEWS:4988 ../../../build/NEWS:8489 +#: ../../../build/NEWS:5612 ../../../build/NEWS:9113 msgid "" "`bpo-30697 `__: The " "`PyExc_RecursionErrorInst` singleton is removed and " "`PyErr_NormalizeException()` does not use it anymore. This singleton is " "persistent and its members being never cleared may cause a segfault during " -"finalization of the interpreter. See also `bpo-22898 " -"`__." +"finalization of the interpreter. See also `bpo-22898 `__." msgstr "" -#: ../../../build/NEWS:4995 +#: ../../../build/NEWS:5619 msgid "Python 3.7.0 alpha 2" msgstr "" -#: ../../../build/NEWS:4997 +#: ../../../build/NEWS:5621 msgid "*Release date: 2017-10-16*" msgstr "" -#: ../../../build/NEWS:5002 +#: ../../../build/NEWS:5626 msgid "" -"`bpo-31558 `__: ``gc.freeze()`` is a new" -" API that allows for moving all objects currently tracked by the garbage " +"`bpo-31558 `__: ``gc.freeze()`` is a new " +"API that allows for moving all objects currently tracked by the garbage " "collector to a permanent generation, effectively removing them from future " "collection events. This can be used to protect those objects from having " "their PyGC_Head mutated. In effect, this enables great copy-on-write " "stability at fork()." msgstr "" -#: ../../../build/NEWS:5008 ../../../build/NEWS:8111 +#: ../../../build/NEWS:5632 ../../../build/NEWS:8735 msgid "" -"`bpo-31642 `__: Restored blocking \"from" -" package import module\" by setting sys.modules[\"package.module\"] to None." +"`bpo-31642 `__: Restored blocking \"from " +"package import module\" by setting sys.modules[\"package.module\"] to None." msgstr "" -#: ../../../build/NEWS:5011 +#: ../../../build/NEWS:5635 msgid "" "`bpo-31708 `__: Allow use of " "asynchronous generator expressions in synchronous functions." msgstr "" -#: ../../../build/NEWS:5014 +#: ../../../build/NEWS:5638 msgid "" "`bpo-31709 `__: Drop support of " "asynchronous __aiter__." msgstr "" -#: ../../../build/NEWS:5016 +#: ../../../build/NEWS:5640 msgid "" "`bpo-30404 `__: The -u option now makes " "the stdout and stderr streams unbuffered rather than line-buffered." msgstr "" -#: ../../../build/NEWS:5019 ../../../build/NEWS:8117 +#: ../../../build/NEWS:5643 ../../../build/NEWS:8741 msgid "" "`bpo-31619 `__: Fixed a ValueError when " "convert a string with large number of underscores to integer with binary " "base." msgstr "" -#: ../../../build/NEWS:5022 +#: ../../../build/NEWS:5646 msgid "" -"`bpo-31602 `__: Fix an assertion failure" -" in `zipimporter.get_source()` in case of a bad `zlib.decompress()`. Patch " -"by Oren Milman." +"`bpo-31602 `__: Fix an assertion failure " +"in `zipimporter.get_source()` in case of a bad `zlib.decompress()`. Patch by " +"Oren Milman." msgstr "" -#: ../../../build/NEWS:5025 ../../../build/NEWS:8120 +#: ../../../build/NEWS:5649 ../../../build/NEWS:8744 msgid "" "`bpo-31592 `__: Fixed an assertion " "failure in Python parser in case of a bad `unicodedata.normalize()`. Patch " "by Oren Milman." msgstr "" -#: ../../../build/NEWS:5028 ../../../build/NEWS:8123 +#: ../../../build/NEWS:5652 ../../../build/NEWS:8747 msgid "" -"`bpo-31588 `__: Raise a `TypeError` with" -" a helpful error message when class creation fails due to a metaclass with a" -" bad ``__prepare__()`` method. Patch by Oren Milman." +"`bpo-31588 `__: Raise a `TypeError` with " +"a helpful error message when class creation fails due to a metaclass with a " +"bad ``__prepare__()`` method. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5032 +#: ../../../build/NEWS:5656 msgid "" "`bpo-31574 `__: Importlib was " "instrumented with two dtrace probes to profile import timing." msgstr "" -#: ../../../build/NEWS:5035 ../../../build/NEWS:8127 +#: ../../../build/NEWS:5659 ../../../build/NEWS:8751 msgid "" -"`bpo-31566 `__: Fix an assertion failure" -" in `_warnings.warn()` in case of a bad ``__name__`` global. Patch by Oren " +"`bpo-31566 `__: Fix an assertion failure " +"in `_warnings.warn()` in case of a bad ``__name__`` global. Patch by Oren " "Milman." msgstr "" -#: ../../../build/NEWS:5038 +#: ../../../build/NEWS:5662 msgid "" "`bpo-31506 `__: Improved the error " "message logic for object.__new__ and object.__init__." msgstr "" -#: ../../../build/NEWS:5041 ../../../build/NEWS:8130 +#: ../../../build/NEWS:5665 ../../../build/NEWS:8754 msgid "" -"`bpo-31505 `__: Fix an assertion failure" -" in `json`, in case `_json.make_encoder()` received a bad `encoder()` " +"`bpo-31505 `__: Fix an assertion failure " +"in `json`, in case `_json.make_encoder()` received a bad `encoder()` " "argument. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5045 ../../../build/NEWS:8134 +#: ../../../build/NEWS:5669 ../../../build/NEWS:8758 msgid "" "`bpo-31492 `__: Fix assertion failures " "in case of failing to import from a module with a bad ``__name__`` " @@ -9649,21 +10756,21 @@ msgid "" "Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5049 ../../../build/NEWS:8142 +#: ../../../build/NEWS:5673 ../../../build/NEWS:8766 msgid "" -"`bpo-31478 `__: Fix an assertion failure" -" in `_random.Random.seed()` in case the argument has a bad ``__abs__()`` " +"`bpo-31478 `__: Fix an assertion failure " +"in `_random.Random.seed()` in case the argument has a bad ``__abs__()`` " "method. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5052 +#: ../../../build/NEWS:5676 msgid "" "`bpo-31336 `__: Speed up class creation " -"by 10-20% by reducing the overhead in the necessary special method lookups." -" Patch by Stefan Behnel." +"by 10-20% by reducing the overhead in the necessary special method lookups. " +"Patch by Stefan Behnel." msgstr "" -#: ../../../build/NEWS:5055 +#: ../../../build/NEWS:5679 msgid "" "`bpo-31415 `__: Add ``-X importtime`` " "option to show how long each import takes. It can be used to optimize " @@ -9671,13 +10778,13 @@ msgid "" "as an equivalent way to enable this." msgstr "" -#: ../../../build/NEWS:5059 +#: ../../../build/NEWS:5683 msgid "" "`bpo-31410 `__: Optimized calling " "wrapper and classmethod descriptors." msgstr "" -#: ../../../build/NEWS:5061 +#: ../../../build/NEWS:5685 msgid "" "`bpo-31353 `__: :pep:`553` - Add a new " "built-in called ``breakpoint()`` which calls ``sys.breakpointhook()``. By " @@ -9686,214 +10793,215 @@ msgid "" "original value of the hook is saved in ``sys.__breakpointhook__``." msgstr "" -#: ../../../build/NEWS:5067 +#: ../../../build/NEWS:5691 msgid "" "`bpo-17852 `__: Maintain a list of open " -"buffered files, flush them before exiting the interpreter. Based on a patch" -" from Armin Rigo." +"buffered files, flush them before exiting the interpreter. Based on a patch " +"from Armin Rigo." msgstr "" -#: ../../../build/NEWS:5070 ../../../build/NEWS:8145 +#: ../../../build/NEWS:5694 ../../../build/NEWS:8769 msgid "" -"`bpo-31315 `__: Fix an assertion failure" -" in imp.create_dynamic(), when spec.name is not a string. Patch by Oren " +"`bpo-31315 `__: Fix an assertion failure " +"in imp.create_dynamic(), when spec.name is not a string. Patch by Oren " "Milman." msgstr "" -#: ../../../build/NEWS:5073 ../../../build/NEWS:8148 +#: ../../../build/NEWS:5697 ../../../build/NEWS:8772 msgid "" "`bpo-31311 `__: Fix a crash in the " -"``__setstate__()`` method of `ctypes._CData`, in case of a bad ``__dict__``." -" Patch by Oren Milman." +"``__setstate__()`` method of `ctypes._CData`, in case of a bad ``__dict__``. " +"Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5076 ../../../build/NEWS:8151 +#: ../../../build/NEWS:5700 ../../../build/NEWS:8775 msgid "" "`bpo-31293 `__: Fix crashes in true " "division and multiplication of a timedelta object by a float with a bad " "as_integer_ratio() method. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5080 ../../../build/NEWS:8155 +#: ../../../build/NEWS:5704 ../../../build/NEWS:8779 msgid "" -"`bpo-31285 `__: Fix an assertion failure" -" in `warnings.warn_explicit`, when the return value of the received loader's" -" get_source() has a bad splitlines() method. Patch by Oren Milman." +"`bpo-31285 `__: Fix an assertion failure " +"in `warnings.warn_explicit`, when the return value of the received loader's " +"get_source() has a bad splitlines() method. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5084 +#: ../../../build/NEWS:5708 msgid "" "`bpo-30406 `__: Make ``async`` and " "``await`` proper keywords, as specified in PEP 492." msgstr "" -#: ../../../build/NEWS:5090 ../../../build/NEWS:8268 +#: ../../../build/NEWS:5714 ../../../build/NEWS:8892 msgid "" -"`bpo-30058 `__: Fixed buffer overflow in" -" select.kqueue.control()." +"`bpo-30058 `__: Fixed buffer overflow in " +"select.kqueue.control()." msgstr "" -#: ../../../build/NEWS:5092 ../../../build/NEWS:8273 +#: ../../../build/NEWS:5716 ../../../build/NEWS:8897 msgid "" "`bpo-31672 `__: ``idpattern`` in " "``string.Template`` matched some non-ASCII characters. Now it uses ``-i`` " "regular expression local flag to avoid non-ASCII characters." msgstr "" -#: ../../../build/NEWS:5096 ../../../build/NEWS:8283 +#: ../../../build/NEWS:5720 ../../../build/NEWS:8907 msgid "" -"`bpo-31701 `__: On Windows, " -"faulthandler.enable() now ignores MSC and COM exceptions." +"`bpo-31701 `__: On Windows, faulthandler." +"enable() now ignores MSC and COM exceptions." msgstr "" -#: ../../../build/NEWS:5099 ../../../build/NEWS:8286 +#: ../../../build/NEWS:5723 ../../../build/NEWS:8910 msgid "" "`bpo-31728 `__: Prevent crashes in " "`_elementtree` due to unsafe cleanup of `Element.text` and `Element.tail`. " "Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5102 +#: ../../../build/NEWS:5726 msgid "" "`bpo-31671 `__: Now ``re.compile()`` " "converts passed RegexFlag to normal int object before compiling. " "bm_regex_compile benchmark shows 14% performance improvements." msgstr "" -#: ../../../build/NEWS:5106 +#: ../../../build/NEWS:5730 msgid "" "`bpo-30397 `__: The types of compiled " -"regular objects and match objects are now exposed as `re.Pattern` and " -"`re.Match`. This adds information in pydoc output for the re module." +"regular objects and match objects are now exposed as `re.Pattern` and `re." +"Match`. This adds information in pydoc output for the re module." msgstr "" -#: ../../../build/NEWS:5110 ../../../build/NEWS:8296 +#: ../../../build/NEWS:5734 ../../../build/NEWS:8920 msgid "" "`bpo-31675 `__: Fixed memory leaks in " "Tkinter's methods splitlist() and split() when pass a string larger than 2 " "GiB." msgstr "" -#: ../../../build/NEWS:5113 ../../../build/NEWS:8299 +#: ../../../build/NEWS:5737 ../../../build/NEWS:8923 msgid "" "`bpo-31673 `__: Fixed typo in the name " "of Tkinter's method adderrorinfo()." msgstr "" -#: ../../../build/NEWS:5115 +#: ../../../build/NEWS:5739 msgid "" "`bpo-31648 `__: Improvements to path " "predicates in ElementTree:" msgstr "" -#: ../../../build/NEWS:5117 +#: ../../../build/NEWS:5741 msgid "" "Allow whitespace around predicate parts, i.e. \"[a = 'text']\" instead of " "requiring the less readable \"[a='text']\"." msgstr "" -#: ../../../build/NEWS:5118 -msgid "Add support for text comparison of the current node, like \"[.='text']\"." +#: ../../../build/NEWS:5742 +msgid "" +"Add support for text comparison of the current node, like \"[.='text']\"." msgstr "" -#: ../../../build/NEWS:5120 +#: ../../../build/NEWS:5744 msgid "Patch by Stefan Behnel." msgstr "" -#: ../../../build/NEWS:5122 ../../../build/NEWS:8301 +#: ../../../build/NEWS:5746 ../../../build/NEWS:8925 msgid "" "`bpo-30806 `__: Fix the string " "representation of a netrc object." msgstr "" -#: ../../../build/NEWS:5124 +#: ../../../build/NEWS:5748 msgid "" "`bpo-31638 `__: Add optional argument " "``compressed`` to ``zipapp.create_archive``, and add option ``--compress`` " "to the command line interface of ``zipapp``." msgstr "" -#: ../../../build/NEWS:5128 ../../../build/NEWS:8306 +#: ../../../build/NEWS:5752 ../../../build/NEWS:8930 msgid "" "`bpo-25351 `__: Avoid venv activate " "failures with undefined variables" msgstr "" -#: ../../../build/NEWS:5130 +#: ../../../build/NEWS:5754 msgid "" "`bpo-20519 `__: Avoid ctypes use (if " "possible) and improve import time for uuid." msgstr "" -#: ../../../build/NEWS:5133 +#: ../../../build/NEWS:5757 msgid "" "`bpo-28293 `__: The regular expression " "cache is no longer completely dumped when it is full." msgstr "" -#: ../../../build/NEWS:5136 +#: ../../../build/NEWS:5760 msgid "" "`bpo-31596 `__: Added " "pthread_getcpuclockid() to the time module" msgstr "" -#: ../../../build/NEWS:5138 +#: ../../../build/NEWS:5762 msgid "" "`bpo-27494 `__: Make 2to3 accept a " "trailing comma in generator expressions. For example, ``set(x for x in " "[],)`` is now allowed." msgstr "" -#: ../../../build/NEWS:5141 ../../../build/NEWS:8312 +#: ../../../build/NEWS:5765 ../../../build/NEWS:8936 msgid "" "`bpo-30347 `__: Stop crashes when " "concurrently iterate over itertools.groupby() iterators." msgstr "" -#: ../../../build/NEWS:5144 +#: ../../../build/NEWS:5768 msgid "" "`bpo-30346 `__: An iterator produced by " "itertools.groupby() iterator now becomes exhausted after advancing the " "groupby iterator." msgstr "" -#: ../../../build/NEWS:5147 +#: ../../../build/NEWS:5771 msgid "" "`bpo-31556 `__: Cancel asyncio.wait_for " "future faster if timeout <= 0" msgstr "" -#: ../../../build/NEWS:5149 +#: ../../../build/NEWS:5773 msgid "" "`bpo-31540 `__: Allow passing a context " -"object in :class:`concurrent.futures.ProcessPoolExecutor` constructor. Also," -" free job resources in :class:`concurrent.futures.ProcessPoolExecutor` " +"object in :class:`concurrent.futures.ProcessPoolExecutor` constructor. Also, " +"free job resources in :class:`concurrent.futures.ProcessPoolExecutor` " "earlier to improve memory usage when a worker waits for new jobs." msgstr "" -#: ../../../build/NEWS:5154 ../../../build/NEWS:8315 +#: ../../../build/NEWS:5778 ../../../build/NEWS:8939 msgid "" -"`bpo-31516 `__: " -"``threading.current_thread()`` should not return a dummy thread at shutdown." +"`bpo-31516 `__: ``threading." +"current_thread()`` should not return a dummy thread at shutdown." msgstr "" -#: ../../../build/NEWS:5157 +#: ../../../build/NEWS:5781 msgid "" "`bpo-31525 `__: In the sqlite module, " "require the sqlite3_prepare_v2 API. Thus, the sqlite module now requires " "sqlite version at least 3.3.9." msgstr "" -#: ../../../build/NEWS:5160 +#: ../../../build/NEWS:5784 msgid "" "`bpo-26510 `__: argparse subparsers are " "now required by default. This matches behaviour in Python 2. For optional " "subparsers, use the new parameter ``add_subparsers(required=False)``. Patch " -"by Anthony Sottile. (As of 3.7.0rc1, the default was changed to not required" -" as had been the case since Python 3.3.)" +"by Anthony Sottile. (As of 3.7.0rc1, the default was changed to not required " +"as had been the case since Python 3.3.)" msgstr "" -#: ../../../build/NEWS:5166 +#: ../../../build/NEWS:5790 msgid "" "`bpo-27541 `__: Reprs of subclasses of " "some collection and iterator classes (`bytearray`, `array.array`, " @@ -9902,96 +11010,96 @@ msgid "" "of the base class." msgstr "" -#: ../../../build/NEWS:5171 ../../../build/NEWS:8318 +#: ../../../build/NEWS:5795 ../../../build/NEWS:8942 msgid "" "`bpo-31351 `__: python -m ensurepip now " "exits with non-zero exit code if pip bootstrapping has failed." msgstr "" -#: ../../../build/NEWS:5174 +#: ../../../build/NEWS:5798 msgid "" "`bpo-31389 `__: ``pdb.set_trace()`` now " "takes an optional keyword-only argument ``header``. If given, this is " "printed to the console just before debugging begins." msgstr "" -#: ../../../build/NEWS:5181 ../../../build/NEWS:8339 +#: ../../../build/NEWS:5805 ../../../build/NEWS:8963 msgid "" "`bpo-31537 `__: Fix incorrect usage of " -"``get_history_length`` in readline documentation example code. Patch by Brad" -" Smith." +"``get_history_length`` in readline documentation example code. Patch by Brad " +"Smith." msgstr "" -#: ../../../build/NEWS:5184 ../../../build/NEWS:8342 +#: ../../../build/NEWS:5808 ../../../build/NEWS:8966 msgid "" "`bpo-30085 `__: The operator functions " "without double underscores are preferred for clarity. The one with " "underscores are only kept for back-compatibility." msgstr "" -#: ../../../build/NEWS:5191 +#: ../../../build/NEWS:5815 msgid "" -"`bpo-31696 `__: Improve compiler version" -" information in :data:`sys.version` when Python is built with Clang." +"`bpo-31696 `__: Improve compiler version " +"information in :data:`sys.version` when Python is built with Clang." msgstr "" -#: ../../../build/NEWS:5194 +#: ../../../build/NEWS:5818 msgid "" "`bpo-31625 `__: Stop using ranlib on " "static libraries. Instead, we assume ar supports the 's' flag." msgstr "" -#: ../../../build/NEWS:5197 +#: ../../../build/NEWS:5821 msgid "" -"`bpo-31624 `__: Remove support for " -"BSD/OS." +"`bpo-31624 `__: Remove support for BSD/" +"OS." msgstr "" -#: ../../../build/NEWS:5199 ../../../build/NEWS:8383 +#: ../../../build/NEWS:5823 ../../../build/NEWS:9007 msgid "" "`bpo-22140 `__: Prevent double " "substitution of prefix in python-config.sh." msgstr "" -#: ../../../build/NEWS:5201 +#: ../../../build/NEWS:5825 msgid "" -"`bpo-31569 `__: Correct PCBuild/ case to" -" PCbuild/ in build scripts and documentation." +"`bpo-31569 `__: Correct PCBuild/ case to " +"PCbuild/ in build scripts and documentation." msgstr "" -#: ../../../build/NEWS:5204 ../../../build/NEWS:8385 +#: ../../../build/NEWS:5828 ../../../build/NEWS:9009 msgid "" "`bpo-31536 `__: Avoid wholesale rebuild " "after `make regen-all` if nothing changed." msgstr "" -#: ../../../build/NEWS:5210 ../../../build/NEWS:8444 +#: ../../../build/NEWS:5834 ../../../build/NEWS:9068 msgid "" "`bpo-31460 `__: Simplify the API of " "IDLE's Module Browser." msgstr "" -#: ../../../build/NEWS:5212 ../../../build/NEWS:8446 +#: ../../../build/NEWS:5836 ../../../build/NEWS:9070 msgid "" "Passing a widget instead of an flist with a root widget opens the option of " -"creating a browser frame that is only part of a window. Passing a full file" -" name instead of pieces assumed to come from a .py file opens the " -"possibility of browsing python files that do not end in .py." +"creating a browser frame that is only part of a window. Passing a full file " +"name instead of pieces assumed to come from a .py file opens the possibility " +"of browsing python files that do not end in .py." msgstr "" -#: ../../../build/NEWS:5217 ../../../build/NEWS:8451 +#: ../../../build/NEWS:5841 ../../../build/NEWS:9075 msgid "" "`bpo-31649 `__: IDLE - Make _htest, " "_utest parameters keyword only." msgstr "" -#: ../../../build/NEWS:5219 ../../../build/NEWS:8453 +#: ../../../build/NEWS:5843 ../../../build/NEWS:9077 msgid "" "`bpo-31559 `__: Remove test order " "dependence in idle_test.test_browser." msgstr "" -#: ../../../build/NEWS:5221 ../../../build/NEWS:8455 +#: ../../../build/NEWS:5845 ../../../build/NEWS:9079 msgid "" "`bpo-31459 `__: Rename IDLE's module " "browser from Class Browser to Module Browser. The original module-level " @@ -10002,132 +11110,132 @@ msgid "" "changed. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:5229 ../../../build/NEWS:8463 +#: ../../../build/NEWS:5853 ../../../build/NEWS:9087 msgid "" "`bpo-31500 `__: Default fonts now are " "scaled on HiDPI displays." msgstr "" -#: ../../../build/NEWS:5231 ../../../build/NEWS:8465 +#: ../../../build/NEWS:5855 ../../../build/NEWS:9089 msgid "" "`bpo-1612262 `__: IDLE module browser " "now shows nested classes and functions. Original patches for code and tests " "by Guilherme Polo and Cheryl Sabella, respectively." msgstr "" -#: ../../../build/NEWS:5238 +#: ../../../build/NEWS:5862 msgid "" -"`bpo-28280 `__: Make `PyMapping_Keys()`," -" `PyMapping_Values()` and `PyMapping_Items()` always return a `list` (rather" -" than a `list` or a `tuple`). Patch by Oren Milman." +"`bpo-28280 `__: Make `PyMapping_Keys()`, " +"`PyMapping_Values()` and `PyMapping_Items()` always return a `list` (rather " +"than a `list` or a `tuple`). Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5242 ../../../build/NEWS:8486 +#: ../../../build/NEWS:5866 ../../../build/NEWS:9110 msgid "" "`bpo-31532 `__: Fix memory corruption " "due to allocator mix in getpath.c between Py_GetPath() and Py_SetPath()" msgstr "" -#: ../../../build/NEWS:5245 +#: ../../../build/NEWS:5869 msgid "" "`bpo-25658 `__: Implement PEP 539 for " "Thread Specific Storage (TSS) API: it is a new Thread Local Storage (TLS) " "API to CPython which would supersede use of the existing TLS API within the " -"CPython interpreter, while deprecating the existing API. PEP written by Erik" -" M. Bray, patch by Masayuki Yamamoto." +"CPython interpreter, while deprecating the existing API. PEP written by Erik " +"M. Bray, patch by Masayuki Yamamoto." msgstr "" -#: ../../../build/NEWS:5252 +#: ../../../build/NEWS:5876 msgid "Python 3.7.0 alpha 1" msgstr "" -#: ../../../build/NEWS:5254 +#: ../../../build/NEWS:5878 msgid "*Release date: 2017-09-19*" msgstr "" -#: ../../../build/NEWS:5259 ../../../build/NEWS:8524 +#: ../../../build/NEWS:5883 ../../../build/NEWS:9148 msgid "" "`bpo-29781 `__: SSLObject.version() now " "correctly returns None when handshake over BIO has not been performed yet." msgstr "" -#: ../../../build/NEWS:5262 +#: ../../../build/NEWS:5886 msgid "" "`bpo-29505 `__: Add fuzz tests for " "float(str), int(str), unicode(str); for oss-fuzz." msgstr "" -#: ../../../build/NEWS:5265 ../../../build/NEWS:8527 ../../../build/NEWS:12934 +#: ../../../build/NEWS:5889 ../../../build/NEWS:9151 ../../../build/NEWS:13558 msgid "" "`bpo-30947 `__: Upgrade libexpat " "embedded copy from version 2.2.1 to 2.2.3 to get security fixes." msgstr "" -#: ../../../build/NEWS:5268 ../../../build/NEWS:9005 ../../../build/NEWS:12978 +#: ../../../build/NEWS:5892 ../../../build/NEWS:9629 ../../../build/NEWS:13602 msgid "" "`bpo-30730 `__: Prevent environment " "variables injection in subprocess on Windows. Prevent passing other " "environment variables and command arguments." msgstr "" -#: ../../../build/NEWS:5272 ../../../build/NEWS:9009 ../../../build/NEWS:12982 +#: ../../../build/NEWS:5896 ../../../build/NEWS:9633 ../../../build/NEWS:13606 msgid "" "`bpo-30694 `__: Upgrade expat copy from " "2.2.0 to 2.2.1 to get fixes of multiple security vulnerabilities including: " "CVE-2017-9233 (External entity infinite loop DoS), CVE-2016-9063 (Integer " "overflow, re-fix), CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to " -"CVE-2016-0718) and CVE-2012-0876 (Counter hash flooding with SipHash). Note:" -" the CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't " +"CVE-2016-0718) and CVE-2012-0876 (Counter hash flooding with SipHash). Note: " +"the CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't " "impact Python, since Python already gets entropy from the OS to set the " "expat secret using ``XML_SetHashSalt()``." msgstr "" -#: ../../../build/NEWS:5281 ../../../build/NEWS:9018 ../../../build/NEWS:12991 +#: ../../../build/NEWS:5905 ../../../build/NEWS:9642 ../../../build/NEWS:13615 msgid "" -"`bpo-30500 `__: Fix " -"urllib.parse.splithost() to correctly parse fragments. For example, " +"`bpo-30500 `__: Fix urllib.parse." +"splithost() to correctly parse fragments. For example, " "``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the " "``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an " "authentication (``login@host``)." msgstr "" -#: ../../../build/NEWS:5286 ../../../build/NEWS:9107 ../../../build/NEWS:12996 +#: ../../../build/NEWS:5910 ../../../build/NEWS:9731 ../../../build/NEWS:13620 msgid "" "`bpo-29591 `__: Update expat copy from " -"2.1.1 to 2.2.0 to get fixes of CVE-2016-0718 and CVE-2016-4472. See " -"https://sourceforge.net/p/expat/bugs/537/ for more information." +"2.1.1 to 2.2.0 to get fixes of CVE-2016-0718 and CVE-2016-4472. See https://" +"sourceforge.net/p/expat/bugs/537/ for more information." msgstr "" -#: ../../../build/NEWS:5293 ../../../build/NEWS:8138 +#: ../../../build/NEWS:5917 ../../../build/NEWS:8762 msgid "" -"`bpo-31490 `__: Fix an assertion failure" -" in `ctypes` class definition, in case the class has an attribute whose name" -" is specified in ``_anonymous_`` but not in ``_fields_``. Patch by Oren " +"`bpo-31490 `__: Fix an assertion failure " +"in `ctypes` class definition, in case the class has an attribute whose name " +"is specified in ``_anonymous_`` but not in ``_fields_``. Patch by Oren " "Milman." msgstr "" -#: ../../../build/NEWS:5297 ../../../build/NEWS:8533 +#: ../../../build/NEWS:5921 ../../../build/NEWS:9157 msgid "" -"`bpo-31471 `__: Fix an assertion failure" -" in `subprocess.Popen()` on Windows, in case the env argument has a bad " +"`bpo-31471 `__: Fix an assertion failure " +"in `subprocess.Popen()` on Windows, in case the env argument has a bad " "keys() method. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5300 ../../../build/NEWS:8536 +#: ../../../build/NEWS:5924 ../../../build/NEWS:9160 msgid "" -"`bpo-31418 `__: Fix an assertion failure" -" in `PyErr_WriteUnraisable()` in case of an exception with a bad " +"`bpo-31418 `__: Fix an assertion failure " +"in `PyErr_WriteUnraisable()` in case of an exception with a bad " "``__module__`` attribute. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5303 ../../../build/NEWS:8539 +#: ../../../build/NEWS:5927 ../../../build/NEWS:9163 msgid "" "`bpo-31416 `__: Fix assertion failures " "in case of a bad warnings.filters or warnings.defaultaction. Patch by Oren " "Milman." msgstr "" -#: ../../../build/NEWS:5306 +#: ../../../build/NEWS:5930 msgid "" "`bpo-28411 `__: Change direct usage of " "PyInterpreterState.modules to PyImport_GetModuleDict(). Also introduce more " @@ -10135,22 +11243,22 @@ msgid "" "complications when working on sys.modules." msgstr "" -#: ../../../build/NEWS:5311 +#: ../../../build/NEWS:5935 msgid "" "`bpo-28411 `__: Switch to the abstract " "API when dealing with ``PyInterpreterState.modules``. This allows later " -"support for all dict subclasses and other Mapping implementations. Also add" -" a ``PyImport_GetModule()`` function to reduce a bunch of duplicated code." +"support for all dict subclasses and other Mapping implementations. Also add " +"a ``PyImport_GetModule()`` function to reduce a bunch of duplicated code." msgstr "" -#: ../../../build/NEWS:5316 ../../../build/NEWS:8542 +#: ../../../build/NEWS:5940 ../../../build/NEWS:9166 msgid "" "`bpo-31411 `__: Raise a TypeError " "instead of SystemError in case warnings.onceregistry is not a dictionary. " "Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5319 +#: ../../../build/NEWS:5943 msgid "" "`bpo-31344 `__: For finer control of " "tracing behaviour when testing the interpreter, two new frame attributes " @@ -10160,13 +11268,13 @@ msgid "" "events." msgstr "" -#: ../../../build/NEWS:5325 ../../../build/NEWS:8545 +#: ../../../build/NEWS:5949 ../../../build/NEWS:9169 msgid "" "`bpo-31373 `__: Fix several possible " "instances of undefined behavior due to floating-point demotions." msgstr "" -#: ../../../build/NEWS:5328 ../../../build/NEWS:8548 +#: ../../../build/NEWS:5952 ../../../build/NEWS:9172 msgid "" "`bpo-30465 `__: Location information " "(``lineno`` and ``col_offset``) in f-strings is now (mostly) correct. This " @@ -10174,93 +11282,93 @@ msgid "" "the first line of the file)." msgstr "" -#: ../../../build/NEWS:5332 +#: ../../../build/NEWS:5956 msgid "" "`bpo-30860 `__: Consolidate CPython's " "global runtime state under a single struct. This improves discoverability " "of the runtime state." msgstr "" -#: ../../../build/NEWS:5335 +#: ../../../build/NEWS:5959 msgid "" "`bpo-31347 `__: Fix possible undefined " "behavior in _PyObject_FastCall_Prepend." msgstr "" -#: ../../../build/NEWS:5337 ../../../build/NEWS:8552 +#: ../../../build/NEWS:5961 ../../../build/NEWS:9176 msgid "" "`bpo-31343 `__: Include sys/sysmacros.h " "for major(), minor(), and makedev(). GNU C libray plans to remove the " "functions from sys/types.h." msgstr "" -#: ../../../build/NEWS:5340 ../../../build/NEWS:8555 +#: ../../../build/NEWS:5964 ../../../build/NEWS:9179 msgid "" -"`bpo-31291 `__: Fix an assertion failure" -" in `zipimport.zipimporter.get_data` on Windows, when the return value of " +"`bpo-31291 `__: Fix an assertion failure " +"in `zipimport.zipimporter.get_data` on Windows, when the return value of " "``pathname.replace('/','\\\\')`` isn't a string. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5344 ../../../build/NEWS:8559 +#: ../../../build/NEWS:5968 ../../../build/NEWS:9183 msgid "" -"`bpo-31271 `__: Fix an assertion failure" -" in the write() method of `io.TextIOWrapper`, when the encoder doesn't " -"return a bytes object. Patch by Oren Milman." +"`bpo-31271 `__: Fix an assertion failure " +"in the write() method of `io.TextIOWrapper`, when the encoder doesn't return " +"a bytes object. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5348 ../../../build/NEWS:8563 +#: ../../../build/NEWS:5972 ../../../build/NEWS:9187 msgid "" "`bpo-31243 `__: Fix a crash in some " -"methods of `io.TextIOWrapper`, when the decoder's state is invalid. Patch by" -" Oren Milman." +"methods of `io.TextIOWrapper`, when the decoder's state is invalid. Patch by " +"Oren Milman." msgstr "" -#: ../../../build/NEWS:5351 ../../../build/NEWS:8566 +#: ../../../build/NEWS:5975 ../../../build/NEWS:9190 msgid "" "`bpo-30721 `__: ``print`` now shows " "correct usage hint for using Python 2 redirection syntax. Patch by Sanyam " "Khurana." msgstr "" -#: ../../../build/NEWS:5354 ../../../build/NEWS:8569 +#: ../../../build/NEWS:5978 ../../../build/NEWS:9193 msgid "" "`bpo-31070 `__: Fix a race condition in " "importlib _get_module_lock()." msgstr "" -#: ../../../build/NEWS:5356 +#: ../../../build/NEWS:5980 msgid "" "`bpo-30747 `__: Add a non-dummy " "implementation of _Py_atomic_store and _Py_atomic_load on MSVC." msgstr "" -#: ../../../build/NEWS:5359 ../../../build/NEWS:8571 ../../../build/NEWS:12940 +#: ../../../build/NEWS:5983 ../../../build/NEWS:9195 ../../../build/NEWS:13564 msgid "" "`bpo-31095 `__: Fix potential crash " "during GC caused by ``tp_dealloc`` which doesn't call " "``PyObject_GC_UnTrack()``." msgstr "" -#: ../../../build/NEWS:5362 ../../../build/NEWS:8574 +#: ../../../build/NEWS:5986 ../../../build/NEWS:9198 msgid "" "`bpo-31071 `__: Avoid masking original " "TypeError in call with * unpacking when other arguments are passed." msgstr "" -#: ../../../build/NEWS:5365 ../../../build/NEWS:8577 +#: ../../../build/NEWS:5989 ../../../build/NEWS:9201 msgid "" "`bpo-30978 `__: str.format_map() now " "passes key lookup exceptions through. Previously any exception was replaced " "with a KeyError exception." msgstr "" -#: ../../../build/NEWS:5368 ../../../build/NEWS:8580 +#: ../../../build/NEWS:5992 ../../../build/NEWS:9204 msgid "" "`bpo-30808 `__: Use _Py_atomic API for " "concurrency-sensitive signal state." msgstr "" -#: ../../../build/NEWS:5370 ../../../build/NEWS:8582 ../../../build/NEWS:13003 +#: ../../../build/NEWS:5994 ../../../build/NEWS:9206 ../../../build/NEWS:13627 msgid "" "`bpo-30876 `__: Relative import from " "unloaded package now reimports the package instead of failing with " @@ -10268,12 +11376,12 @@ msgid "" "rather than SystemError." msgstr "" -#: ../../../build/NEWS:5374 ../../../build/NEWS:8586 +#: ../../../build/NEWS:5998 ../../../build/NEWS:9210 msgid "" "`bpo-30703 `__: Improve signal delivery." msgstr "" -#: ../../../build/NEWS:5376 ../../../build/NEWS:8588 +#: ../../../build/NEWS:6000 ../../../build/NEWS:9212 msgid "" "Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-" "unsafe functions. The tests I'm adding here fail without the rest of the " @@ -10281,52 +11389,52 @@ msgid "" "(some signals could be lost)." msgstr "" -#: ../../../build/NEWS:5381 ../../../build/NEWS:8593 ../../../build/NEWS:13007 +#: ../../../build/NEWS:6005 ../../../build/NEWS:9217 ../../../build/NEWS:13631 msgid "" "`bpo-30765 `__: Avoid blocking in " "pthread_mutex_lock() when PyThread_acquire_lock() is asked not to block." msgstr "" -#: ../../../build/NEWS:5384 ../../../build/NEWS:8596 +#: ../../../build/NEWS:6008 ../../../build/NEWS:9220 msgid "" "`bpo-31161 `__: Make sure the 'Missing " "parentheses' syntax error message is only applied to SyntaxError, not to " "subclasses. Patch by Martijn Pieters." msgstr "" -#: ../../../build/NEWS:5387 ../../../build/NEWS:8599 +#: ../../../build/NEWS:6011 ../../../build/NEWS:9223 msgid "" "`bpo-30814 `__: Fixed a race condition " "when import a submodule from a package." msgstr "" -#: ../../../build/NEWS:5389 +#: ../../../build/NEWS:6013 msgid "" -"`bpo-30736 `__: The internal unicodedata" -" database has been upgraded to Unicode 10.0." +"`bpo-30736 `__: The internal unicodedata " +"database has been upgraded to Unicode 10.0." msgstr "" -#: ../../../build/NEWS:5392 +#: ../../../build/NEWS:6016 msgid "" "`bpo-30604 `__: Move co_extra_freefuncs " "from per-thread to per-interpreter to avoid crashes." msgstr "" -#: ../../../build/NEWS:5395 ../../../build/NEWS:8601 +#: ../../../build/NEWS:6019 ../../../build/NEWS:9225 msgid "" "`bpo-30597 `__: ``print`` now shows " "expected input in custom error message when used as a Python 2 statement. " "Patch by Sanyam Khurana." msgstr "" -#: ../../../build/NEWS:5398 ../../../build/NEWS:9032 +#: ../../../build/NEWS:6022 ../../../build/NEWS:9656 msgid "" "`bpo-30682 `__: Removed a too-strict " "assertion that failed for certain f-strings, such as eval(\"f'\\\\\\n'\") " "and eval(\"f'\\\\\\r'\")." msgstr "" -#: ../../../build/NEWS:5401 +#: ../../../build/NEWS:6025 msgid "" "`bpo-30501 `__: The compiler now " "produces more optimal code for complex condition expressions in the \"if\", " @@ -10334,118 +11442,117 @@ msgid "" "expressions and comprehensions." msgstr "" -#: ../../../build/NEWS:5405 +#: ../../../build/NEWS:6029 msgid "" "`bpo-28180 `__: Implement PEP 538 " "(legacy C locale coercion). This means that when a suitable coercion target " -"locale is available, both the core interpreter and locale-aware C extensions" -" will assume the use of UTF-8 as the default text encoding, rather than " -"ASCII." +"locale is available, both the core interpreter and locale-aware C extensions " +"will assume the use of UTF-8 as the default text encoding, rather than ASCII." msgstr "" -#: ../../../build/NEWS:5410 +#: ../../../build/NEWS:6034 msgid "" "`bpo-30486 `__: Allows setting cell " "values for __closure__. Patch by Lisa Roach." msgstr "" -#: ../../../build/NEWS:5413 +#: ../../../build/NEWS:6037 msgid "" "`bpo-30537 `__: itertools.islice now " "accepts integer-like objects (having an __index__ method) as start, stop, " "and slice arguments" msgstr "" -#: ../../../build/NEWS:5416 +#: ../../../build/NEWS:6040 msgid "" "`bpo-25324 `__: Tokens needed for " -"parsing in Python moved to C. ``COMMENT``, ``NL`` and ``ENCODING``. This way" -" the tokens and tok_names in the token module don't get changed when you " +"parsing in Python moved to C. ``COMMENT``, ``NL`` and ``ENCODING``. This way " +"the tokens and tok_names in the token module don't get changed when you " "import the tokenize module." msgstr "" -#: ../../../build/NEWS:5420 ../../../build/NEWS:9037 +#: ../../../build/NEWS:6044 ../../../build/NEWS:9661 msgid "" "`bpo-29104 `__: Fixed parsing " "backslashes in f-strings." msgstr "" -#: ../../../build/NEWS:5422 ../../../build/NEWS:9039 ../../../build/NEWS:13010 +#: ../../../build/NEWS:6046 ../../../build/NEWS:9663 ../../../build/NEWS:13634 msgid "" "`bpo-27945 `__: Fixed various segfaults " "with dict when input collections are mutated during searching, inserting or " "comparing. Based on patches by Duane Griffin and Tim Mitchell." msgstr "" -#: ../../../build/NEWS:5426 ../../../build/NEWS:9043 ../../../build/NEWS:13014 +#: ../../../build/NEWS:6050 ../../../build/NEWS:9667 ../../../build/NEWS:13638 msgid "" -"`bpo-25794 `__: Fixed type.__setattr__()" -" and type.__delattr__() for non-interned attribute names. Based on patch by" -" Eryk Sun." +"`bpo-25794 `__: Fixed type.__setattr__() " +"and type.__delattr__() for non-interned attribute names. Based on patch by " +"Eryk Sun." msgstr "" -#: ../../../build/NEWS:5429 ../../../build/NEWS:9046 +#: ../../../build/NEWS:6053 ../../../build/NEWS:9670 msgid "" "`bpo-30039 `__: If a KeyboardInterrupt " "happens when the interpreter is in the middle of resuming a chain of nested " -"'yield from' or 'await' calls, it's now correctly delivered to the innermost" -" frame." +"'yield from' or 'await' calls, it's now correctly delivered to the innermost " +"frame." msgstr "" -#: ../../../build/NEWS:5433 +#: ../../../build/NEWS:6057 msgid "" "`bpo-28974 `__: ``object.__format__(x, " "'')`` is now equivalent to ``str(x)`` rather than ``format(str(self), '')``." msgstr "" -#: ../../../build/NEWS:5436 +#: ../../../build/NEWS:6060 msgid "" "`bpo-30024 `__: Circular imports " "involving absolute imports with binding a submodule to a name are now " "supported." msgstr "" -#: ../../../build/NEWS:5439 ../../../build/NEWS:9050 +#: ../../../build/NEWS:6063 ../../../build/NEWS:9674 msgid "" "`bpo-12414 `__: sys.getsizeof() on a " "code object now returns the sizes which includes the code struct and sizes " "of objects which it references. Patch by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:5443 +#: ../../../build/NEWS:6067 msgid "" "`bpo-29839 `__: len() now raises " "ValueError rather than OverflowError if __len__() returned a large negative " "integer." msgstr "" -#: ../../../build/NEWS:5446 +#: ../../../build/NEWS:6070 msgid "" "`bpo-11913 `__: README.rst is now " -"included in the list of distutils standard READMEs and therefore included in" -" source distributions." +"included in the list of distutils standard READMEs and therefore included in " +"source distributions." msgstr "" -#: ../../../build/NEWS:5449 +#: ../../../build/NEWS:6073 msgid "" "`bpo-29914 `__: Fixed default " "implementations of __reduce__ and __reduce_ex__(). object.__reduce__() no " "longer takes arguments, object.__reduce_ex__() now requires one argument." msgstr "" -#: ../../../build/NEWS:5453 ../../../build/NEWS:9054 +#: ../../../build/NEWS:6077 ../../../build/NEWS:9678 msgid "" "`bpo-29949 `__: Fix memory usage " "regression of set and frozenset object." msgstr "" -#: ../../../build/NEWS:5455 ../../../build/NEWS:9056 ../../../build/NEWS:13017 +#: ../../../build/NEWS:6079 ../../../build/NEWS:9680 ../../../build/NEWS:13641 msgid "" "`bpo-29935 `__: Fixed error messages in " "the index() method of tuple, list and deque when pass indices of wrong type." msgstr "" -#: ../../../build/NEWS:5458 +#: ../../../build/NEWS:6082 msgid "" "`bpo-29816 `__: Shift operation now has " "less opportunity to raise OverflowError. ValueError always is raised rather " @@ -10453,48 +11560,48 @@ msgid "" "count always returns zero." msgstr "" -#: ../../../build/NEWS:5463 +#: ../../../build/NEWS:6087 msgid "" "`bpo-24821 `__: Fixed the slowing down " "to 25 times in the searching of some unlucky Unicode characters." msgstr "" -#: ../../../build/NEWS:5466 +#: ../../../build/NEWS:6090 msgid "" "`bpo-29102 `__: Add a unique ID to " "PyInterpreterState. This makes it easier to identify each subinterpreter." msgstr "" -#: ../../../build/NEWS:5469 +#: ../../../build/NEWS:6093 msgid "" "`bpo-29894 `__: The deprecation warning " "is emitted if __complex__ returns an instance of a strict subclass of " "complex. In a future versions of Python this can be an error." msgstr "" -#: ../../../build/NEWS:5473 ../../../build/NEWS:9059 +#: ../../../build/NEWS:6097 ../../../build/NEWS:9683 msgid "" "`bpo-29859 `__: Show correct error " "messages when any of the pthread_* calls in thread_pthread.h fails." msgstr "" -#: ../../../build/NEWS:5476 +#: ../../../build/NEWS:6100 msgid "" "`bpo-29849 `__: Fix a memory leak when " "an ImportError is raised during from import." msgstr "" -#: ../../../build/NEWS:5479 ../../../build/NEWS:9067 +#: ../../../build/NEWS:6103 ../../../build/NEWS:9691 msgid "" -"`bpo-28856 `__: Fix an oversight that %b" -" format for bytes should support objects follow the buffer protocol." +"`bpo-28856 `__: Fix an oversight that %b " +"format for bytes should support objects follow the buffer protocol." msgstr "" -#: ../../../build/NEWS:5482 ../../../build/NEWS:9385 +#: ../../../build/NEWS:6106 ../../../build/NEWS:10009 msgid "" "`bpo-29723 `__: The ``sys.path[0]`` " -"initialization change for `bpo-29139 `__" -" caused a regression by revealing an inconsistency in how sys.path is " +"initialization change for `bpo-29139 `__ " +"caused a regression by revealing an inconsistency in how sys.path is " "initialized when executing ``__main__`` from a zipfile, directory, or other " "import location. The interpreter now consistently avoids ever adding the " "import location's parent directory to ``sys.path``, and ensures no other " @@ -10502,245 +11609,245 @@ msgid "" "location named on the command line." msgstr "" -#: ../../../build/NEWS:5490 +#: ../../../build/NEWS:6114 msgid "" "`bpo-29568 `__: Escaped percent \"%%\" " "in the format string for classic string formatting no longer allows any " "characters between two percents." msgstr "" -#: ../../../build/NEWS:5493 ../../../build/NEWS:9070 +#: ../../../build/NEWS:6117 ../../../build/NEWS:9694 msgid "" "`bpo-29714 `__: Fix a regression that " "bytes format may fail when containing zero bytes inside." msgstr "" -#: ../../../build/NEWS:5496 +#: ../../../build/NEWS:6120 msgid "" "`bpo-29695 `__: bool(), float(), list() " "and tuple() no longer take keyword arguments. The first argument of int() " "can now be passes only as positional argument." msgstr "" -#: ../../../build/NEWS:5500 ../../../build/NEWS:9409 +#: ../../../build/NEWS:6124 ../../../build/NEWS:10033 msgid "" "`bpo-28893 `__: Set correct __cause__ " "for errors about invalid awaitables returned from __aiter__ and __anext__." msgstr "" -#: ../../../build/NEWS:5503 ../../../build/NEWS:9062 ../../../build/NEWS:13020 +#: ../../../build/NEWS:6127 ../../../build/NEWS:9686 ../../../build/NEWS:13644 msgid "" "`bpo-28876 `__: ``bool(range)`` works " "even if ``len(range)`` raises :exc:`OverflowError`." msgstr "" -#: ../../../build/NEWS:5506 ../../../build/NEWS:9412 +#: ../../../build/NEWS:6130 ../../../build/NEWS:10036 msgid "" "`bpo-29683 `__: Fixes to memory " "allocation in _PyCode_SetExtra. Patch by Brian Coleman." msgstr "" -#: ../../../build/NEWS:5509 ../../../build/NEWS:9415 +#: ../../../build/NEWS:6133 ../../../build/NEWS:10039 msgid "" "`bpo-29684 `__: Fix minor regression of " "PyEval_CallObjectWithKeywords. It should raise TypeError when kwargs is not " "a dict. But it might cause segv when args=NULL and kwargs is not a dict." msgstr "" -#: ../../../build/NEWS:5513 ../../../build/NEWS:9419 ../../../build/NEWS:13031 +#: ../../../build/NEWS:6137 ../../../build/NEWS:10043 ../../../build/NEWS:13655 msgid "" "`bpo-28598 `__: Support __rmod__ for " "subclasses of str being called before str.__mod__. Patch by Martijn Pieters." msgstr "" -#: ../../../build/NEWS:5516 ../../../build/NEWS:9422 +#: ../../../build/NEWS:6140 ../../../build/NEWS:10046 msgid "" "`bpo-29607 `__: Fix stack_effect " "computation for CALL_FUNCTION_EX. Patch by Matthieu Dartiailh." msgstr "" -#: ../../../build/NEWS:5519 ../../../build/NEWS:9425 ../../../build/NEWS:13034 +#: ../../../build/NEWS:6143 ../../../build/NEWS:10049 ../../../build/NEWS:13658 msgid "" "`bpo-29602 `__: Fix incorrect handling " -"of signed zeros in complex constructor for complex subclasses and for inputs" -" having a __complex__ method. Patch by Serhiy Storchaka." +"of signed zeros in complex constructor for complex subclasses and for inputs " +"having a __complex__ method. Patch by Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:5523 ../../../build/NEWS:9429 ../../../build/NEWS:13038 +#: ../../../build/NEWS:6147 ../../../build/NEWS:10053 ../../../build/NEWS:13662 msgid "" "`bpo-29347 `__: Fixed possibly " "dereferencing undefined pointers when creating weakref objects." msgstr "" -#: ../../../build/NEWS:5526 +#: ../../../build/NEWS:6150 msgid "" "`bpo-29463 `__: Add ``docstring`` field " -"to Module, ClassDef, FunctionDef, and AsyncFunctionDef ast nodes. docstring" -" is not first stmt in their body anymore. It affects ``co_firstlineno`` and" -" ``co_lnotab`` of code object for module and class. (Reverted in " -":issue:`32911`.)" +"to Module, ClassDef, FunctionDef, and AsyncFunctionDef ast nodes. docstring " +"is not first stmt in their body anymore. It affects ``co_firstlineno`` and " +"``co_lnotab`` of code object for module and class. (Reverted in :issue:" +"`32911`.)" msgstr "" -#: ../../../build/NEWS:5531 ../../../build/NEWS:9432 ../../../build/NEWS:13041 +#: ../../../build/NEWS:6155 ../../../build/NEWS:10056 ../../../build/NEWS:13665 msgid "" "`bpo-29438 `__: Fixed use-after-free " "problem in key sharing dict." msgstr "" -#: ../../../build/NEWS:5533 +#: ../../../build/NEWS:6157 msgid "" "`bpo-29546 `__: Set the 'path' and " "'name' attribute on ImportError for ``from ... import ...``." msgstr "" -#: ../../../build/NEWS:5536 +#: ../../../build/NEWS:6160 msgid "" "`bpo-29546 `__: Improve from-import " "error message with location" msgstr "" -#: ../../../build/NEWS:5538 ../../../build/NEWS:9073 ../../../build/NEWS:13048 +#: ../../../build/NEWS:6162 ../../../build/NEWS:9697 ../../../build/NEWS:13672 msgid "" "`bpo-29478 `__: If max_line_length=None " "is specified while using the Compat32 policy, it is no longer ignored. " "Patch by Mircea Cosbuc." msgstr "" -#: ../../../build/NEWS:5541 ../../../build/NEWS:9434 ../../../build/NEWS:13043 +#: ../../../build/NEWS:6165 ../../../build/NEWS:10058 ../../../build/NEWS:13667 msgid "" "`bpo-29319 `__: Prevent " "RunMainFromImporter overwriting sys.path[0]." msgstr "" -#: ../../../build/NEWS:5543 ../../../build/NEWS:9436 ../../../build/NEWS:13045 +#: ../../../build/NEWS:6167 ../../../build/NEWS:10060 ../../../build/NEWS:13669 msgid "" "`bpo-29337 `__: Fixed possible " "BytesWarning when compare the code objects. Warnings could be emitted at " "compile time." msgstr "" -#: ../../../build/NEWS:5546 ../../../build/NEWS:9439 +#: ../../../build/NEWS:6170 ../../../build/NEWS:10063 msgid "" "`bpo-29327 `__: Fixed a crash when pass " "the iterable keyword argument to sorted()." msgstr "" -#: ../../../build/NEWS:5549 ../../../build/NEWS:9442 +#: ../../../build/NEWS:6173 ../../../build/NEWS:10066 msgid "" "`bpo-29034 `__: Fix memory leak and use-" "after-free in os module (path_converter)." msgstr "" -#: ../../../build/NEWS:5552 ../../../build/NEWS:9445 +#: ../../../build/NEWS:6176 ../../../build/NEWS:10069 msgid "" "`bpo-29159 `__: Fix regression in " "bytes(x) when x.__index__() raises Exception." msgstr "" -#: ../../../build/NEWS:5554 +#: ../../../build/NEWS:6178 msgid "" "`bpo-29049 `__: Call " "_PyObject_GC_TRACK() lazily when calling Python function. Calling function " "is up to 5% faster." msgstr "" -#: ../../../build/NEWS:5557 +#: ../../../build/NEWS:6181 msgid "" "`bpo-28927 `__: bytes.fromhex() and " -"bytearray.fromhex() now ignore all ASCII whitespace, not only spaces. Patch" -" by Robert Xiao." +"bytearray.fromhex() now ignore all ASCII whitespace, not only spaces. Patch " +"by Robert Xiao." msgstr "" -#: ../../../build/NEWS:5560 ../../../build/NEWS:9447 ../../../build/NEWS:13403 +#: ../../../build/NEWS:6184 ../../../build/NEWS:10071 ../../../build/NEWS:14027 msgid "" -"`bpo-28932 `__: Do not include " -" if it does not exist." +"`bpo-28932 `__: Do not include if it does not exist." msgstr "" -#: ../../../build/NEWS:5562 ../../../build/NEWS:9449 ../../../build/NEWS:13408 +#: ../../../build/NEWS:6186 ../../../build/NEWS:10073 ../../../build/NEWS:14032 msgid "" "`bpo-25677 `__: Correct the positioning " "of the syntax error caret for indented blocks. Based on patch by Michael " "Layzell." msgstr "" -#: ../../../build/NEWS:5565 ../../../build/NEWS:9452 ../../../build/NEWS:13411 +#: ../../../build/NEWS:6189 ../../../build/NEWS:10076 ../../../build/NEWS:14035 msgid "" "`bpo-29000 `__: Fixed bytes formatting " "of octals with zero padding in alternate form." msgstr "" -#: ../../../build/NEWS:5568 +#: ../../../build/NEWS:6192 msgid "" "`bpo-18896 `__: Python function can now " "have more than 255 parameters. collections.namedtuple() now supports tuples " "with more than 255 elements." msgstr "" -#: ../../../build/NEWS:5571 +#: ../../../build/NEWS:6195 msgid "" "`bpo-28596 `__: The preferred encoding " "is UTF-8 on Android. Patch written by Chi Hsuan Yen." msgstr "" -#: ../../../build/NEWS:5574 +#: ../../../build/NEWS:6198 msgid "" "`bpo-22257 `__: Clean up interpreter " "startup (see PEP 432)." msgstr "" -#: ../../../build/NEWS:5576 ../../../build/NEWS:9455 +#: ../../../build/NEWS:6200 ../../../build/NEWS:10079 msgid "" "`bpo-26919 `__: On Android, operating " "system data is now always encoded/decoded to/from UTF-8, instead of the " -"locale encoding to avoid inconsistencies with os.fsencode() and " -"os.fsdecode() which are already using UTF-8." +"locale encoding to avoid inconsistencies with os.fsencode() and os." +"fsdecode() which are already using UTF-8." msgstr "" -#: ../../../build/NEWS:5580 ../../../build/NEWS:9459 +#: ../../../build/NEWS:6204 ../../../build/NEWS:10083 msgid "" "`bpo-28991 `__: functools.lru_cache() " -"was susceptible to an obscure reentrancy bug triggerable by a monkey-patched" -" len() function." +"was susceptible to an obscure reentrancy bug triggerable by a monkey-patched " +"len() function." msgstr "" -#: ../../../build/NEWS:5583 ../../../build/NEWS:9733 +#: ../../../build/NEWS:6207 ../../../build/NEWS:10357 msgid "" "`bpo-28147 `__: Fix a memory leak in " "split-table dictionaries: setattr() must not convert combined table into " "split table. Patch written by INADA Naoki." msgstr "" -#: ../../../build/NEWS:5586 ../../../build/NEWS:9462 +#: ../../../build/NEWS:6210 ../../../build/NEWS:10086 msgid "" -"`bpo-28739 `__: f-string expressions are" -" no longer accepted as docstrings and by ast.literal_eval() even if they do " +"`bpo-28739 `__: f-string expressions are " +"no longer accepted as docstrings and by ast.literal_eval() even if they do " "not include expressions." msgstr "" -#: ../../../build/NEWS:5589 ../../../build/NEWS:9465 ../../../build/NEWS:13414 +#: ../../../build/NEWS:6213 ../../../build/NEWS:10089 ../../../build/NEWS:14038 msgid "" -"`bpo-28512 `__: Fixed setting the offset" -" attribute of SyntaxError by PyErr_SyntaxLocationEx() and " +"`bpo-28512 `__: Fixed setting the offset " +"attribute of SyntaxError by PyErr_SyntaxLocationEx() and " "PyErr_SyntaxLocationObject()." msgstr "" -#: ../../../build/NEWS:5592 ../../../build/NEWS:9468 +#: ../../../build/NEWS:6216 ../../../build/NEWS:10092 msgid "" "`bpo-28918 `__: Fix the cross " "compilation of xxlimited when Python has been built with Py_DEBUG defined." msgstr "" -#: ../../../build/NEWS:5595 ../../../build/NEWS:9763 +#: ../../../build/NEWS:6219 ../../../build/NEWS:10387 msgid "" "`bpo-23722 `__: Rather than silently " -"producing a class that doesn't support zero-argument ``super()`` in methods," -" failing to pass the new ``__classcell__`` namespace entry up to " -"``type.__new__`` now results in a ``DeprecationWarning`` and a class that " -"supports zero-argument ``super()``." +"producing a class that doesn't support zero-argument ``super()`` in methods, " +"failing to pass the new ``__classcell__`` namespace entry up to ``type." +"__new__`` now results in a ``DeprecationWarning`` and a class that supports " +"zero-argument ``super()``." msgstr "" -#: ../../../build/NEWS:5601 ../../../build/NEWS:9769 +#: ../../../build/NEWS:6225 ../../../build/NEWS:10393 msgid "" "`bpo-28797 `__: Modifying the class " "__dict__ inside the __set_name__ method of a descriptor that is used inside " @@ -10748,51 +11855,51 @@ msgid "" "descriptors." msgstr "" -#: ../../../build/NEWS:5605 +#: ../../../build/NEWS:6229 msgid "" "`bpo-28799 `__: Remove the " "``PyEval_GetCallStats()`` function and deprecate the untested and " "undocumented ``sys.callstats()`` function. Remove the ``CALL_PROFILE`` " -"special build: use the :func:`sys.setprofile` function, :mod:`cProfile` or " -":mod:`profile` to profile function calls." +"special build: use the :func:`sys.setprofile` function, :mod:`cProfile` or :" +"mod:`profile` to profile function calls." msgstr "" -#: ../../../build/NEWS:5610 +#: ../../../build/NEWS:6234 msgid "" "`bpo-12844 `__: More than 255 arguments " "can now be passed to a function." msgstr "" -#: ../../../build/NEWS:5612 ../../../build/NEWS:9773 +#: ../../../build/NEWS:6236 ../../../build/NEWS:10397 msgid "" "`bpo-28782 `__: Fix a bug in the " "implementation ``yield from`` when checking if the next instruction is " -"YIELD_FROM. Regression introduced by WORDCODE (`bpo-26647 " -"`__)." +"YIELD_FROM. Regression introduced by WORDCODE (`bpo-26647 `__)." msgstr "" -#: ../../../build/NEWS:5616 +#: ../../../build/NEWS:6240 msgid "" "`bpo-28774 `__: Fix error position of " -"the unicode error in ASCII and Latin1 encoders when a string returned by the" -" error handler contains multiple non-encodable characters (non-ASCII for the" -" ASCII codec, characters out of the U+0000-U+00FF range for Latin1)." +"the unicode error in ASCII and Latin1 encoders when a string returned by the " +"error handler contains multiple non-encodable characters (non-ASCII for the " +"ASCII codec, characters out of the U+0000-U+00FF range for Latin1)." msgstr "" -#: ../../../build/NEWS:5621 ../../../build/NEWS:9471 +#: ../../../build/NEWS:6245 ../../../build/NEWS:10095 msgid "" "`bpo-28731 `__: Optimize " "_PyDict_NewPresized() to create correct size dict. Improve speed of dict " "literal with constant keys up to 30%." msgstr "" -#: ../../../build/NEWS:5624 ../../../build/NEWS:9826 +#: ../../../build/NEWS:6248 ../../../build/NEWS:10450 msgid "" -"`bpo-28532 `__: Show sys.version when -V" -" option is supplied twice." +"`bpo-28532 `__: Show sys.version when -V " +"option is supplied twice." msgstr "" -#: ../../../build/NEWS:5626 ../../../build/NEWS:9828 +#: ../../../build/NEWS:6250 ../../../build/NEWS:10452 msgid "" "`bpo-27100 `__: The with-statement now " "checks for __enter__ before it checks for __exit__. This gives less " @@ -10800,393 +11907,382 @@ msgid "" "Ellington." msgstr "" -#: ../../../build/NEWS:5630 ../../../build/NEWS:9832 +#: ../../../build/NEWS:6254 ../../../build/NEWS:10456 msgid "" "`bpo-28746 `__: Fix the " "set_inheritable() file descriptor method on platforms that do not have the " "ioctl FIOCLEX and FIONCLEX commands." msgstr "" -#: ../../../build/NEWS:5633 ../../../build/NEWS:9835 +#: ../../../build/NEWS:6257 ../../../build/NEWS:10459 msgid "" "`bpo-26920 `__: Fix not getting the " -"locale's charset upon initializing the interpreter, on platforms that do not" -" have langinfo." +"locale's charset upon initializing the interpreter, on platforms that do not " +"have langinfo." msgstr "" -#: ../../../build/NEWS:5636 ../../../build/NEWS:9838 ../../../build/NEWS:13420 +#: ../../../build/NEWS:6260 ../../../build/NEWS:10462 ../../../build/NEWS:14044 msgid "" "`bpo-28648 `__: Fixed crash in " -"Py_DecodeLocale() in debug build on Mac OS X when decode astral characters." -" Patch by Xiang Zhang." +"Py_DecodeLocale() in debug build on Mac OS X when decode astral characters. " +"Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:5639 ../../../build/NEWS:9844 +#: ../../../build/NEWS:6263 ../../../build/NEWS:10468 msgid "" "`bpo-28665 `__: Improve speed of the " "STORE_DEREF opcode by 40%." msgstr "" -#: ../../../build/NEWS:5641 ../../../build/NEWS:9841 ../../../build/NEWS:13423 +#: ../../../build/NEWS:6265 ../../../build/NEWS:10465 ../../../build/NEWS:14047 msgid "" "`bpo-19398 `__: Extra slash no longer " "added to sys.path components in case of empty compile-time PYTHONPATH " "components." msgstr "" -#: ../../../build/NEWS:5644 +#: ../../../build/NEWS:6268 msgid "" "`bpo-28621 `__: Sped up converting int " "to float by reusing faster bits counting implementation. Patch by Adrian " "Wielgosik." msgstr "" -#: ../../../build/NEWS:5647 +#: ../../../build/NEWS:6271 msgid "" -"`bpo-28580 `__: Optimize iterating split" -" table values. Patch by Xiang Zhang." +"`bpo-28580 `__: Optimize iterating split " +"table values. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:5649 ../../../build/NEWS:9846 +#: ../../../build/NEWS:6273 ../../../build/NEWS:10470 msgid "" -"`bpo-28583 `__: PyDict_SetDefault didn't" -" combine split table when needed. Patch by Xiang Zhang." +"`bpo-28583 `__: PyDict_SetDefault didn't " +"combine split table when needed. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:5652 ../../../build/NEWS:9940 +#: ../../../build/NEWS:6276 ../../../build/NEWS:10564 msgid "" "`bpo-28128 `__: Deprecation warning for " "invalid str and byte escape sequences now prints better information about " "where the error occurs. Patch by Serhiy Storchaka and Eric Smith." msgstr "" -#: ../../../build/NEWS:5656 ../../../build/NEWS:9944 +#: ../../../build/NEWS:6280 ../../../build/NEWS:10568 msgid "" "`bpo-28509 `__: dict.update() no longer " "allocate unnecessary large memory." msgstr "" -#: ../../../build/NEWS:5658 ../../../build/NEWS:9946 ../../../build/NEWS:13426 +#: ../../../build/NEWS:6282 ../../../build/NEWS:10570 ../../../build/NEWS:14050 msgid "" -"`bpo-28426 `__: Fixed potential crash in" -" PyUnicode_AsDecodedObject() in debug build." +"`bpo-28426 `__: Fixed potential crash in " +"PyUnicode_AsDecodedObject() in debug build." msgstr "" -#: ../../../build/NEWS:5661 ../../../build/NEWS:9949 +#: ../../../build/NEWS:6285 ../../../build/NEWS:10573 msgid "" -"`bpo-28517 `__: Fixed of-by-one error in" -" the peephole optimizer that caused keeping unreachable code." +"`bpo-28517 `__: Fixed of-by-one error in " +"the peephole optimizer that caused keeping unreachable code." msgstr "" -#: ../../../build/NEWS:5664 ../../../build/NEWS:9952 +#: ../../../build/NEWS:6288 ../../../build/NEWS:10576 msgid "" "`bpo-28214 `__: Improved exception " "reporting for problematic __set_name__ attributes." msgstr "" -#: ../../../build/NEWS:5667 ../../../build/NEWS:9955 ../../../build/NEWS:13429 +#: ../../../build/NEWS:6291 ../../../build/NEWS:10579 ../../../build/NEWS:14053 msgid "" "`bpo-23782 `__: Fixed possible memory " "leak in _PyTraceback_Add() and exception loss in PyTraceBack_Here()." msgstr "" -#: ../../../build/NEWS:5670 ../../../build/NEWS:10064 +#: ../../../build/NEWS:6294 ../../../build/NEWS:10688 msgid "" "`bpo-28183 `__: Optimize and cleanup " "dict iteration." msgstr "" -#: ../../../build/NEWS:5672 ../../../build/NEWS:10066 +#: ../../../build/NEWS:6296 ../../../build/NEWS:10690 msgid "" "`bpo-26081 `__: Added C implementation " "of asyncio.Future. Original patch by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:5675 ../../../build/NEWS:10069 -#: ../../../build/NEWS:13432 +#: ../../../build/NEWS:6299 ../../../build/NEWS:10693 ../../../build/NEWS:14056 msgid "" "`bpo-28379 `__: Added sanity checks and " "tests for PyUnicode_CopyCharacters(). Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:5678 ../../../build/NEWS:10072 -#: ../../../build/NEWS:13435 +#: ../../../build/NEWS:6302 ../../../build/NEWS:10696 ../../../build/NEWS:14059 msgid "" "`bpo-28376 `__: The type of long range " "iterator is now registered as Iterator. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5681 +#: ../../../build/NEWS:6305 msgid "" "`bpo-28376 `__: Creating instances of " "range_iterator by calling range_iterator type now is disallowed. Calling " "iter() on range instance is the only way. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5685 ../../../build/NEWS:10081 -#: ../../../build/NEWS:13441 +#: ../../../build/NEWS:6309 ../../../build/NEWS:10705 ../../../build/NEWS:14065 msgid "" "`bpo-26906 `__: Resolving special " -"methods of uninitialized type now causes implicit initialization of the type" -" instead of a fail." +"methods of uninitialized type now causes implicit initialization of the type " +"instead of a fail." msgstr "" -#: ../../../build/NEWS:5688 ../../../build/NEWS:10084 -#: ../../../build/NEWS:13444 +#: ../../../build/NEWS:6312 ../../../build/NEWS:10708 ../../../build/NEWS:14068 msgid "" "`bpo-18287 `__: PyType_Ready() now " "checks that tp_name is not NULL. Original patch by Niklas Koep." msgstr "" -#: ../../../build/NEWS:5691 ../../../build/NEWS:10087 -#: ../../../build/NEWS:13447 +#: ../../../build/NEWS:6315 ../../../build/NEWS:10711 ../../../build/NEWS:14071 msgid "" "`bpo-24098 `__: Fixed possible crash " "when AST is changed in process of compiling it." msgstr "" -#: ../../../build/NEWS:5694 ../../../build/NEWS:10090 +#: ../../../build/NEWS:6318 ../../../build/NEWS:10714 msgid "" -"`bpo-28201 `__: Dict reduces possibility" -" of 2nd conflict in hash table when hashes have same lower bits." +"`bpo-28201 `__: Dict reduces possibility " +"of 2nd conflict in hash table when hashes have same lower bits." msgstr "" -#: ../../../build/NEWS:5697 ../../../build/NEWS:10093 -#: ../../../build/NEWS:13450 +#: ../../../build/NEWS:6321 ../../../build/NEWS:10717 ../../../build/NEWS:14074 msgid "" "`bpo-28350 `__: String constants with " "null character no longer interned." msgstr "" -#: ../../../build/NEWS:5699 ../../../build/NEWS:10095 -#: ../../../build/NEWS:13452 +#: ../../../build/NEWS:6323 ../../../build/NEWS:10719 ../../../build/NEWS:14076 msgid "" "`bpo-26617 `__: Fix crash when GC runs " "during weakref callbacks." msgstr "" -#: ../../../build/NEWS:5701 ../../../build/NEWS:10097 -#: ../../../build/NEWS:13454 +#: ../../../build/NEWS:6325 ../../../build/NEWS:10721 ../../../build/NEWS:14078 msgid "" "`bpo-27942 `__: String constants now " "interned recursively in tuples and frozensets." msgstr "" -#: ../../../build/NEWS:5704 +#: ../../../build/NEWS:6328 msgid "" -"`bpo-28289 `__: ImportError.__init__ now" -" resets not specified attributes." +"`bpo-28289 `__: ImportError.__init__ now " +"resets not specified attributes." msgstr "" -#: ../../../build/NEWS:5706 ../../../build/NEWS:10100 -#: ../../../build/NEWS:13457 +#: ../../../build/NEWS:6330 ../../../build/NEWS:10724 ../../../build/NEWS:14081 msgid "" "`bpo-21578 `__: Fixed misleading error " "message when ImportError called with invalid keyword args." msgstr "" -#: ../../../build/NEWS:5709 ../../../build/NEWS:10103 +#: ../../../build/NEWS:6333 ../../../build/NEWS:10727 msgid "" "`bpo-28203 `__: Fix incorrect type in " "complex(1.0, {2:3}) error message. Patch by Soumya Sharma." msgstr "" -#: ../../../build/NEWS:5712 ../../../build/NEWS:10106 +#: ../../../build/NEWS:6336 ../../../build/NEWS:10730 msgid "" "`bpo-28086 `__: Single var-positional " "argument of tuple subtype was passed unscathed to the C-defined function. " "Now it is converted to exact tuple." msgstr "" -#: ../../../build/NEWS:5715 ../../../build/NEWS:10109 +#: ../../../build/NEWS:6339 ../../../build/NEWS:10733 msgid "" "`bpo-28214 `__: Now __set_name__ is " "looked up on the class instead of the instance." msgstr "" -#: ../../../build/NEWS:5718 ../../../build/NEWS:10112 -#: ../../../build/NEWS:13463 +#: ../../../build/NEWS:6342 ../../../build/NEWS:10736 ../../../build/NEWS:14087 msgid "" -"`bpo-27955 `__: Fallback on reading " -"/dev/urandom device when the getrandom() syscall fails with EPERM, for " -"example when blocked by SECCOMP." +"`bpo-27955 `__: Fallback on reading /dev/" +"urandom device when the getrandom() syscall fails with EPERM, for example " +"when blocked by SECCOMP." msgstr "" -#: ../../../build/NEWS:5721 ../../../build/NEWS:10115 +#: ../../../build/NEWS:6345 ../../../build/NEWS:10739 msgid "" -"`bpo-28192 `__: Don't import readline in" -" isolated mode." +"`bpo-28192 `__: Don't import readline in " +"isolated mode." msgstr "" -#: ../../../build/NEWS:5723 +#: ../../../build/NEWS:6347 msgid "" "`bpo-27441 `__: Remove some redundant " "assignments to ob_size in longobject.c. Thanks Oren Milman." msgstr "" -#: ../../../build/NEWS:5726 +#: ../../../build/NEWS:6350 msgid "" "`bpo-27222 `__: Clean up redundant code " "in long_rshift function. Thanks Oren Milman." msgstr "" -#: ../../../build/NEWS:5729 ../../../build/NEWS:10117 +#: ../../../build/NEWS:6353 ../../../build/NEWS:10741 msgid "Upgrade internal unicode databases to Unicode version 9.0.0." msgstr "" -#: ../../../build/NEWS:5731 ../../../build/NEWS:10119 -#: ../../../build/NEWS:13466 +#: ../../../build/NEWS:6355 ../../../build/NEWS:10743 ../../../build/NEWS:14090 msgid "" "`bpo-28131 `__: Fix a regression in " "zipimport's compile_source(). zipimport should use the same optimization " "level as the interpreter." msgstr "" -#: ../../../build/NEWS:5734 ../../../build/NEWS:10122 +#: ../../../build/NEWS:6358 ../../../build/NEWS:10746 msgid "" "`bpo-28126 `__: Replace Py_MEMCPY with " "memcpy(). Visual Studio can properly optimize memcpy()." msgstr "" -#: ../../../build/NEWS:5737 ../../../build/NEWS:10125 +#: ../../../build/NEWS:6361 ../../../build/NEWS:10749 msgid "" "`bpo-28120 `__: Fix dict.pop() for " "splitted dictionary when trying to remove a \"pending key\" (Not yet " "inserted in split-table). Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:5740 ../../../build/NEWS:10128 +#: ../../../build/NEWS:6364 ../../../build/NEWS:10752 msgid "" -"`bpo-26182 `__: Raise DeprecationWarning" -" when async and await keywords are used as variable/attribute/class/function" -" name." +"`bpo-26182 `__: Raise DeprecationWarning " +"when async and await keywords are used as variable/attribute/class/function " +"name." msgstr "" -#: ../../../build/NEWS:5743 ../../../build/NEWS:9853 +#: ../../../build/NEWS:6367 ../../../build/NEWS:10477 msgid "" "`bpo-26182 `__: Fix a refleak in code " "that raises DeprecationWarning." msgstr "" -#: ../../../build/NEWS:5745 ../../../build/NEWS:9855 +#: ../../../build/NEWS:6369 ../../../build/NEWS:10479 msgid "" "`bpo-28721 `__: Fix asynchronous " "generators aclose() and athrow() to handle StopAsyncIteration propagation " "properly." msgstr "" -#: ../../../build/NEWS:5748 +#: ../../../build/NEWS:6372 msgid "" "`bpo-26110 `__: Speed-up method calls: " "add LOAD_METHOD and CALL_METHOD opcodes." msgstr "" -#: ../../../build/NEWS:5753 ../../../build/NEWS:8607 +#: ../../../build/NEWS:6377 ../../../build/NEWS:9231 msgid "" "`bpo-31499 `__: xml.etree: Fix a crash " "when a parser is part of a reference cycle." msgstr "" -#: ../../../build/NEWS:5756 ../../../build/NEWS:8321 +#: ../../../build/NEWS:6380 ../../../build/NEWS:8945 msgid "" "`bpo-31482 `__: ``random.seed()`` now " "works with bytes in version=1" msgstr "" -#: ../../../build/NEWS:5758 ../../../build/NEWS:8610 +#: ../../../build/NEWS:6382 ../../../build/NEWS:9234 msgid "" "`bpo-28556 `__: typing.get_type_hints " "now finds the right globalns for classes and modules by default (when no " "``globalns`` was specified by the caller)." msgstr "" -#: ../../../build/NEWS:5761 ../../../build/NEWS:8613 +#: ../../../build/NEWS:6385 ../../../build/NEWS:9237 msgid "" "`bpo-28556 `__: Speed improvements to " "the ``typing`` module. Original PRs by Ivan Levkivskyi and Mitar." msgstr "" -#: ../../../build/NEWS:5764 ../../../build/NEWS:8616 +#: ../../../build/NEWS:6388 ../../../build/NEWS:9240 msgid "" -"`bpo-31544 `__: The C accelerator module" -" of ElementTree ignored exceptions raised when looking up TreeBuilder target" -" methods in XMLParser()." +"`bpo-31544 `__: The C accelerator module " +"of ElementTree ignored exceptions raised when looking up TreeBuilder target " +"methods in XMLParser()." msgstr "" -#: ../../../build/NEWS:5767 ../../../build/NEWS:8619 +#: ../../../build/NEWS:6391 ../../../build/NEWS:9243 msgid "" -"`bpo-31234 `__: " -"socket.create_connection() now fixes manually a reference cycle: clear the " -"variable storing the last exception on success." +"`bpo-31234 `__: socket." +"create_connection() now fixes manually a reference cycle: clear the variable " +"storing the last exception on success." msgstr "" -#: ../../../build/NEWS:5770 ../../../build/NEWS:8622 +#: ../../../build/NEWS:6394 ../../../build/NEWS:9246 msgid "" "`bpo-31457 `__: LoggerAdapter objects " "can now be nested." msgstr "" -#: ../../../build/NEWS:5772 +#: ../../../build/NEWS:6396 msgid "" -"`bpo-31431 `__: " -"SSLContext.check_hostname now automatically sets SSLContext.verify_mode to " -"ssl.CERT_REQUIRED instead of failing with a ValueError." +"`bpo-31431 `__: SSLContext." +"check_hostname now automatically sets SSLContext.verify_mode to ssl." +"CERT_REQUIRED instead of failing with a ValueError." msgstr "" -#: ../../../build/NEWS:5776 +#: ../../../build/NEWS:6400 msgid "" -"`bpo-31233 `__: " -"socketserver.ThreadingMixIn now keeps a list of non-daemonic threads to wait" -" until all these threads complete in server_close()." +"`bpo-31233 `__: socketserver." +"ThreadingMixIn now keeps a list of non-daemonic threads to wait until all " +"these threads complete in server_close()." msgstr "" -#: ../../../build/NEWS:5779 +#: ../../../build/NEWS:6403 msgid "" "`bpo-28638 `__: Changed the " -"implementation strategy for collections.namedtuple() to substantially reduce" -" the use of exec() in favor of precomputed methods. As a result, the " +"implementation strategy for collections.namedtuple() to substantially reduce " +"the use of exec() in favor of precomputed methods. As a result, the " "*verbose* parameter and *_source* attribute are no longer supported. The " -"benefits include 1) having a smaller memory footprint for applications using" -" multiple named tuples, 2) faster creation of the named tuple class (approx " +"benefits include 1) having a smaller memory footprint for applications using " +"multiple named tuples, 2) faster creation of the named tuple class (approx " "4x to 6x depending on how it is measured), and 3) minor speed-ups for " "instance creation using __new__, _make, and _replace. (The primary patch " "contributor is Jelle Zijlstra with further improvements by INADA Naoki, " "Serhiy Storchaka, and Raymond Hettinger.)" msgstr "" -#: ../../../build/NEWS:5790 ../../../build/NEWS:8624 +#: ../../../build/NEWS:6414 ../../../build/NEWS:9248 msgid "" "`bpo-31400 `__: Improves SSL error " "handling to avoid losing error numbers." msgstr "" -#: ../../../build/NEWS:5792 +#: ../../../build/NEWS:6416 msgid "" "`bpo-27629 `__: Make return types of " "SSLContext.wrap_bio() and SSLContext.wrap_socket() customizable." msgstr "" -#: ../../../build/NEWS:5795 ../../../build/NEWS:8626 +#: ../../../build/NEWS:6419 ../../../build/NEWS:9250 msgid "" "`bpo-28958 `__: ssl.SSLContext() now " "uses OpenSSL error information when a context cannot be instantiated." msgstr "" -#: ../../../build/NEWS:5798 +#: ../../../build/NEWS:6422 msgid "" "`bpo-28182 `__: The SSL module now " "raises SSLCertVerificationError when OpenSSL fails to verify the peer's " "certificate. The exception contains more information about the error." msgstr "" -#: ../../../build/NEWS:5802 ../../../build/NEWS:8629 +#: ../../../build/NEWS:6426 ../../../build/NEWS:9253 msgid "" "`bpo-27340 `__: SSLSocket.sendall() now " "uses memoryview to create slices of data. This fixes support for all bytes-" "like object. It is also more efficient and avoids costly copies." msgstr "" -#: ../../../build/NEWS:5806 +#: ../../../build/NEWS:6430 msgid "" "`bpo-14191 `__: A new function " "``argparse.ArgumentParser.parse_intermixed_args`` provides the ability to " @@ -11194,32 +12290,32 @@ msgid "" "arguments." msgstr "" -#: ../../../build/NEWS:5811 ../../../build/NEWS:8633 +#: ../../../build/NEWS:6435 ../../../build/NEWS:9257 msgid "" -"`bpo-31178 `__: Fix string concatenation" -" bug in rare error path in the subprocess module" +"`bpo-31178 `__: Fix string concatenation " +"bug in rare error path in the subprocess module" msgstr "" -#: ../../../build/NEWS:5814 ../../../build/NEWS:8636 +#: ../../../build/NEWS:6438 ../../../build/NEWS:9260 msgid "" -"`bpo-31350 `__: Micro-optimize " -":func:`asyncio._get_running_loop` to become up to 10% faster." +"`bpo-31350 `__: Micro-optimize :func:" +"`asyncio._get_running_loop` to become up to 10% faster." msgstr "" -#: ../../../build/NEWS:5817 ../../../build/NEWS:8639 ../../../build/NEWS:12953 +#: ../../../build/NEWS:6441 ../../../build/NEWS:9263 ../../../build/NEWS:13577 msgid "" "`bpo-31170 `__: expat: Update libexpat " "from 2.2.3 to 2.2.4. Fix copying of partial characters for UTF-8 input " "(libexpat bug 115): https://github.com/libexpat/libexpat/issues/115" msgstr "" -#: ../../../build/NEWS:5821 ../../../build/NEWS:8643 +#: ../../../build/NEWS:6445 ../../../build/NEWS:9267 msgid "" "`bpo-29136 `__: Add TLS 1.3 cipher " "suites and OP_NO_TLSv1_3." msgstr "" -#: ../../../build/NEWS:5823 +#: ../../../build/NEWS:6447 msgid "" "`bpo-1198569 `__: ``string.Template`` " "subclasses can optionally define ``braceidpattern`` if they want to specify " @@ -11227,161 +12323,160 @@ msgid "" "default) it falls back to ``idpattern``." msgstr "" -#: ../../../build/NEWS:5828 +#: ../../../build/NEWS:6452 msgid "" -"`bpo-31326 `__: " -"concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly closes the " -"call queue. Moreover, shutdown(wait=True) now also join the call queue " -"thread, to prevent leaking a dangling thread." +"`bpo-31326 `__: concurrent.futures." +"ProcessPoolExecutor.shutdown() now explicitly closes the call queue. " +"Moreover, shutdown(wait=True) now also join the call queue thread, to " +"prevent leaking a dangling thread." msgstr "" -#: ../../../build/NEWS:5832 ../../../build/NEWS:8654 +#: ../../../build/NEWS:6456 ../../../build/NEWS:9278 msgid "" "`bpo-27144 `__: The ``map()`` and " "``as_completed()`` iterators in ``concurrent.futures`` now avoid keeping a " "reference to yielded objects." msgstr "" -#: ../../../build/NEWS:5835 +#: ../../../build/NEWS:6459 msgid "" -"`bpo-31281 `__: Fix " -"``fileinput.FileInput(files, inplace=True)`` when ``files`` contain " -"``pathlib.Path`` objects." +"`bpo-31281 `__: Fix ``fileinput." +"FileInput(files, inplace=True)`` when ``files`` contain ``pathlib.Path`` " +"objects." msgstr "" -#: ../../../build/NEWS:5838 ../../../build/NEWS:8657 +#: ../../../build/NEWS:6462 ../../../build/NEWS:9281 msgid "" "`bpo-10746 `__: Fix ctypes producing " "wrong PEP 3118 type codes for integer types." msgstr "" -#: ../../../build/NEWS:5841 +#: ../../../build/NEWS:6465 msgid "" "`bpo-27584 `__: ``AF_VSOCK`` has been " "added to the socket interface which allows communication between virtual " "machines and their host." msgstr "" -#: ../../../build/NEWS:5844 ../../../build/NEWS:8660 +#: ../../../build/NEWS:6468 ../../../build/NEWS:9284 msgid "" "`bpo-22536 `__: The subprocess module " "now sets the filename when FileNotFoundError is raised on POSIX systems due " "to the executable or cwd not being found." msgstr "" -#: ../../../build/NEWS:5848 +#: ../../../build/NEWS:6472 msgid "" "`bpo-29741 `__: Update some methods in " "the _pyio module to also accept integer types. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:5851 ../../../build/NEWS:8664 +#: ../../../build/NEWS:6475 ../../../build/NEWS:9288 msgid "" "`bpo-31249 `__: concurrent.futures: " "WorkItem.run() used by ThreadPoolExecutor now breaks a reference cycle " "between an exception object and the WorkItem object." msgstr "" -#: ../../../build/NEWS:5855 ../../../build/NEWS:8668 +#: ../../../build/NEWS:6479 ../../../build/NEWS:9292 msgid "" "`bpo-31247 `__: xmlrpc.server now " "explicitly breaks reference cycles when using sys.exc_info() in code " "handling exceptions." msgstr "" -#: ../../../build/NEWS:5858 +#: ../../../build/NEWS:6482 msgid "" "`bpo-23835 `__: configparser: reading " -"defaults in the ``ConfigParser()`` constructor is now using ``read_dict()``," -" making its behavior consistent with the rest of the parser. Non-string " -"keys and values in the defaults dictionary are now being implicitly " -"converted to strings. Patch by James Tocknell." +"defaults in the ``ConfigParser()`` constructor is now using ``read_dict()``, " +"making its behavior consistent with the rest of the parser. Non-string keys " +"and values in the defaults dictionary are now being implicitly converted to " +"strings. Patch by James Tocknell." msgstr "" -#: ../../../build/NEWS:5864 ../../../build/NEWS:7565 +#: ../../../build/NEWS:6488 ../../../build/NEWS:8189 msgid "" -"`bpo-31238 `__: pydoc: the stop() method" -" of the private ServerThread class now waits until " -"DocServer.serve_until_quit() completes and then explicitly sets its " -"docserver attribute to None to break a reference cycle." +"`bpo-31238 `__: pydoc: the stop() method " +"of the private ServerThread class now waits until DocServer." +"serve_until_quit() completes and then explicitly sets its docserver " +"attribute to None to break a reference cycle." msgstr "" -#: ../../../build/NEWS:5868 +#: ../../../build/NEWS:6492 msgid "" "`bpo-5001 `__: Many asserts in " "`multiprocessing` are now more informative, and some error types have been " "changed to more specific ones." msgstr "" -#: ../../../build/NEWS:5871 +#: ../../../build/NEWS:6495 msgid "" -"`bpo-31109 `__: Convert zipimport to use" -" Argument Clinic." +"`bpo-31109 `__: Convert zipimport to use " +"Argument Clinic." msgstr "" -#: ../../../build/NEWS:5873 ../../../build/NEWS:8671 +#: ../../../build/NEWS:6497 ../../../build/NEWS:9295 msgid "" "`bpo-30102 `__: The ssl and hashlib " -"modules now call OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The" -" function detects CPU features and enables optimizations on some CPU " +"modules now call OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The " +"function detects CPU features and enables optimizations on some CPU " "architectures such as POWER8. Patch is based on research from Gustavo Serra " "Scalet." msgstr "" -#: ../../../build/NEWS:5878 +#: ../../../build/NEWS:6502 msgid "" "`bpo-18966 `__: Non-daemonic threads " "created by a multiprocessing.Process are now joined on child exit." msgstr "" -#: ../../../build/NEWS:5881 +#: ../../../build/NEWS:6505 msgid "" "`bpo-31183 `__: `dis` now works with " "asynchronous generator and coroutine objects. Patch by George Collins based " "on diagnosis by Luciano Ramalho." msgstr "" -#: ../../../build/NEWS:5884 +#: ../../../build/NEWS:6508 msgid "" "`bpo-5001 `__: There are a number of " "uninformative asserts in the `multiprocessing` module, as noted in issue " "5001. This change fixes two of the most potentially problematic ones, since " -"they are in error-reporting code, in the " -"`multiprocessing.managers.convert_to_error` function. (It also makes more " -"informative a ValueError message.) The only potentially problematic change " -"is that the AssertionError is now a TypeError; however, this should also " -"help distinguish it from an AssertionError being *reported* by the " -"function/its caller (such as in issue 31169). - Patch by Allen W. Smith " -"(drallensmith on github)." +"they are in error-reporting code, in the `multiprocessing.managers." +"convert_to_error` function. (It also makes more informative a ValueError " +"message.) The only potentially problematic change is that the AssertionError " +"is now a TypeError; however, this should also help distinguish it from an " +"AssertionError being *reported* by the function/its caller (such as in issue " +"31169). - Patch by Allen W. Smith (drallensmith on github)." msgstr "" -#: ../../../build/NEWS:5894 ../../../build/NEWS:8676 +#: ../../../build/NEWS:6518 ../../../build/NEWS:9300 msgid "" "`bpo-31185 `__: Fixed miscellaneous " "errors in asyncio speedup module." msgstr "" -#: ../../../build/NEWS:5896 +#: ../../../build/NEWS:6520 msgid "" -"`bpo-31151 `__: " -"socketserver.ForkingMixIn.server_close() now waits until all child processes" -" completed to prevent leaking zombie processes." +"`bpo-31151 `__: socketserver." +"ForkingMixIn.server_close() now waits until all child processes completed to " +"prevent leaking zombie processes." msgstr "" -#: ../../../build/NEWS:5899 +#: ../../../build/NEWS:6523 msgid "" "`bpo-31072 `__: Add an ``include_file`` " "parameter to ``zipapp.create_archive()``" msgstr "" -#: ../../../build/NEWS:5902 +#: ../../../build/NEWS:6526 msgid "" "`bpo-24700 `__: Optimize array.array " "comparison. It is now from 10x up to 70x faster when comparing arrays " "holding values of the same integer type." msgstr "" -#: ../../../build/NEWS:5905 ../../../build/NEWS:8678 +#: ../../../build/NEWS:6529 ../../../build/NEWS:9302 msgid "" "`bpo-31135 `__: ttk: fix the destroy() " "method of LabeledScale and OptionMenu classes. Call the parent destroy() " @@ -11390,160 +12485,157 @@ msgid "" "garbage collector to destroy all widgets." msgstr "" -#: ../../../build/NEWS:5911 ../../../build/NEWS:8684 +#: ../../../build/NEWS:6535 ../../../build/NEWS:9308 msgid "" -"`bpo-31107 `__: Fix " -"`copyreg._slotnames()` mangled attribute calculation for classes whose name " -"begins with an underscore. Patch by Shane Harvey." +"`bpo-31107 `__: Fix `copyreg." +"_slotnames()` mangled attribute calculation for classes whose name begins " +"with an underscore. Patch by Shane Harvey." msgstr "" -#: ../../../build/NEWS:5914 +#: ../../../build/NEWS:6538 msgid "" -"`bpo-31080 `__: Allow " -"`logging.config.fileConfig` to accept kwargs and/or args." +"`bpo-31080 `__: Allow `logging.config." +"fileConfig` to accept kwargs and/or args." msgstr "" -#: ../../../build/NEWS:5916 +#: ../../../build/NEWS:6540 msgid "" -"`bpo-30897 `__: ``pathlib.Path`` objects" -" now include an ``is_mount()`` method (only implemented on POSIX). This is " +"`bpo-30897 `__: ``pathlib.Path`` objects " +"now include an ``is_mount()`` method (only implemented on POSIX). This is " "similar to ``os.path.ismount(p)``. Patch by Cooper Ry Lees." msgstr "" -#: ../../../build/NEWS:5920 ../../../build/NEWS:8687 +#: ../../../build/NEWS:6544 ../../../build/NEWS:9311 msgid "" -"`bpo-31061 `__: Fixed a crash when using" -" asyncio and threads." +"`bpo-31061 `__: Fixed a crash when using " +"asyncio and threads." msgstr "" -#: ../../../build/NEWS:5922 +#: ../../../build/NEWS:6546 msgid "" "`bpo-30987 `__: Added support for CAN " "ISO-TP protocol in the socket module." msgstr "" -#: ../../../build/NEWS:5924 +#: ../../../build/NEWS:6548 msgid "" "`bpo-30522 `__: Added a ``setStream`` " "method to ``logging.StreamHandler`` to allow the stream to be set after " "creation." msgstr "" -#: ../../../build/NEWS:5927 ../../../build/NEWS:8689 +#: ../../../build/NEWS:6551 ../../../build/NEWS:9313 msgid "" "`bpo-30502 `__: Fix handling of long " "oids in ssl. Based on patch by Christian Heimes." msgstr "" -#: ../../../build/NEWS:5930 +#: ../../../build/NEWS:6554 msgid "" "`bpo-5288 `__: Support tzinfo objects " "with sub-minute offsets." msgstr "" -#: ../../../build/NEWS:5932 +#: ../../../build/NEWS:6556 msgid "" "`bpo-30919 `__: Fix shared memory " "performance regression in multiprocessing in 3.x." msgstr "" -#: ../../../build/NEWS:5935 +#: ../../../build/NEWS:6559 msgid "" "Shared memory used anonymous memory mappings in 2.x, while 3.x mmaps actual " "files. Try to be careful to do as little disk I/O as possible." msgstr "" -#: ../../../build/NEWS:5938 +#: ../../../build/NEWS:6562 msgid "" "`bpo-26732 `__: Fix too many fds in " "processes started with the \"forkserver\" method." msgstr "" -#: ../../../build/NEWS:5941 +#: ../../../build/NEWS:6565 msgid "" "A child process would inherit as many fds as the number of still-running " "children." msgstr "" -#: ../../../build/NEWS:5944 ../../../build/NEWS:8699 ../../../build/NEWS:13054 +#: ../../../build/NEWS:6568 ../../../build/NEWS:9323 ../../../build/NEWS:13678 msgid "" "`bpo-29403 `__: Fix ``unittest.mock``'s " "autospec to not fail on method-bound builtin functions. Patch by Aaron " "Gallagher." msgstr "" -#: ../../../build/NEWS:5947 ../../../build/NEWS:8702 ../../../build/NEWS:13057 +#: ../../../build/NEWS:6571 ../../../build/NEWS:9326 ../../../build/NEWS:13681 msgid "" "`bpo-30961 `__: Fix decrementing a " "borrowed reference in tracemalloc." msgstr "" -#: ../../../build/NEWS:5949 +#: ../../../build/NEWS:6573 msgid "" -"`bpo-19896 `__: Fix " -"multiprocessing.sharedctypes to recognize typecodes ``'q'`` and ``'Q'``." +"`bpo-19896 `__: Fix multiprocessing." +"sharedctypes to recognize typecodes ``'q'`` and ``'Q'``." msgstr "" -#: ../../../build/NEWS:5952 +#: ../../../build/NEWS:6576 msgid "" "`bpo-30946 `__: Remove obsolete code in " "readline module for platforms where GNU readline is older than 2.1 or where " "select() is not available." msgstr "" -#: ../../../build/NEWS:5955 ../../../build/NEWS:8704 +#: ../../../build/NEWS:6579 ../../../build/NEWS:9328 msgid "" -"`bpo-25684 `__: Change " -"``ttk.OptionMenu`` radiobuttons to be unique across instances of " -"``OptionMenu``." +"`bpo-25684 `__: Change ``ttk." +"OptionMenu`` radiobuttons to be unique across instances of ``OptionMenu``." msgstr "" -#: ../../../build/NEWS:5958 ../../../build/NEWS:8707 ../../../build/NEWS:13059 +#: ../../../build/NEWS:6582 ../../../build/NEWS:9331 ../../../build/NEWS:13683 msgid "" -"`bpo-30886 `__: Fix " -"multiprocessing.Queue.join_thread(): it now waits until the thread " -"completes, even if the thread was started by the same process which created " -"the queue." +"`bpo-30886 `__: Fix multiprocessing." +"Queue.join_thread(): it now waits until the thread completes, even if the " +"thread was started by the same process which created the queue." msgstr "" -#: ../../../build/NEWS:5962 ../../../build/NEWS:8711 ../../../build/NEWS:13063 +#: ../../../build/NEWS:6586 ../../../build/NEWS:9335 ../../../build/NEWS:13687 msgid "" -"`bpo-29854 `__: Fix segfault in readline" -" when using readline's history-size option. Patch by Nir Soffer." +"`bpo-29854 `__: Fix segfault in readline " +"when using readline's history-size option. Patch by Nir Soffer." msgstr "" -#: ../../../build/NEWS:5965 +#: ../../../build/NEWS:6589 msgid "" -"`bpo-30794 `__: Added " -"multiprocessing.Process.kill method to terminate using the SIGKILL signal on" -" Unix." +"`bpo-30794 `__: Added multiprocessing." +"Process.kill method to terminate using the SIGKILL signal on Unix." msgstr "" -#: ../../../build/NEWS:5968 ../../../build/NEWS:8714 +#: ../../../build/NEWS:6592 ../../../build/NEWS:9338 msgid "" "`bpo-30319 `__: socket.close() now " "ignores ECONNRESET error." msgstr "" -#: ../../../build/NEWS:5970 ../../../build/NEWS:8716 +#: ../../../build/NEWS:6594 ../../../build/NEWS:9340 msgid "" "`bpo-30828 `__: Fix out of bounds write " "in `asyncio.CFuture.remove_done_callback()`." msgstr "" -#: ../../../build/NEWS:5973 +#: ../../../build/NEWS:6597 msgid "" "`bpo-30302 `__: Use keywords in the " "``repr`` of ``datetime.timedelta``." msgstr "" -#: ../../../build/NEWS:5975 ../../../build/NEWS:8719 ../../../build/NEWS:13066 +#: ../../../build/NEWS:6599 ../../../build/NEWS:9343 ../../../build/NEWS:13690 msgid "" "`bpo-30807 `__: signal.setitimer() may " "disable the timer when passed a tiny value." msgstr "" -#: ../../../build/NEWS:5978 ../../../build/NEWS:8722 ../../../build/NEWS:13069 +#: ../../../build/NEWS:6602 ../../../build/NEWS:9346 ../../../build/NEWS:13693 msgid "" "Tiny values (such as 1e-6) are valid non-zero values for setitimer(), which " "is specified as taking microsecond-resolution intervals. However, on some " @@ -11551,45 +12643,45 @@ msgid "" "therefore disabling the timer instead of (re-)scheduling it." msgstr "" -#: ../../../build/NEWS:5983 ../../../build/NEWS:8727 ../../../build/NEWS:13074 +#: ../../../build/NEWS:6607 ../../../build/NEWS:9351 ../../../build/NEWS:13698 msgid "" "`bpo-30441 `__: Fix bug when modifying " "os.environ while iterating over it" msgstr "" -#: ../../../build/NEWS:5985 +#: ../../../build/NEWS:6609 msgid "" "`bpo-29585 `__: Avoid importing " "``sysconfig`` from ``site`` to improve startup speed. Python startup is " "about 5% faster on Linux and 30% faster on macOS." msgstr "" -#: ../../../build/NEWS:5988 +#: ../../../build/NEWS:6612 msgid "" -"`bpo-29293 `__: Add missing parameter " -"\"n\" on multiprocessing.Condition.notify()." +"`bpo-29293 `__: Add missing parameter \"n" +"\" on multiprocessing.Condition.notify()." msgstr "" -#: ../../../build/NEWS:5991 +#: ../../../build/NEWS:6615 msgid "" "The doc claims multiprocessing.Condition behaves like threading.Condition, " "but its notify() method lacked the optional \"n\" argument (to specify the " "number of sleepers to wake up) that threading.Condition.notify() accepts." msgstr "" -#: ../../../build/NEWS:5995 ../../../build/NEWS:8729 ../../../build/NEWS:13076 +#: ../../../build/NEWS:6619 ../../../build/NEWS:9353 ../../../build/NEWS:13700 msgid "" "`bpo-30532 `__: Fix email header value " "parser dropping folding white space in certain cases." msgstr "" -#: ../../../build/NEWS:5998 +#: ../../../build/NEWS:6622 msgid "" -"`bpo-30596 `__: Add a ``close()`` method" -" to ``multiprocessing.Process``." +"`bpo-30596 `__: Add a ``close()`` method " +"to ``multiprocessing.Process``." msgstr "" -#: ../../../build/NEWS:6000 ../../../build/NEWS:8650 +#: ../../../build/NEWS:6624 ../../../build/NEWS:9274 msgid "" "`bpo-9146 `__: Fix a segmentation fault " "in _hashopenssl when standard hash functions such as md5 are not available " @@ -11597,275 +12689,272 @@ msgid "" "environments." msgstr "" -#: ../../../build/NEWS:6004 ../../../build/NEWS:9477 ../../../build/NEWS:13079 +#: ../../../build/NEWS:6628 ../../../build/NEWS:10101 ../../../build/NEWS:13703 msgid "" "`bpo-29169 `__: Update zlib to 1.2.11." msgstr "" -#: ../../../build/NEWS:6006 ../../../build/NEWS:8692 ../../../build/NEWS:12966 +#: ../../../build/NEWS:6630 ../../../build/NEWS:9316 ../../../build/NEWS:13590 msgid "" -"`bpo-30119 `__: ftplib.FTP.putline() now" -" throws ValueError on commands that contains CR or LF. Patch by Dong-hee Na." +"`bpo-30119 `__: ftplib.FTP.putline() now " +"throws ValueError on commands that contains CR or LF. Patch by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:6009 ../../../build/NEWS:8732 ../../../build/NEWS:13081 +#: ../../../build/NEWS:6633 ../../../build/NEWS:9356 ../../../build/NEWS:13705 msgid "" -"`bpo-30879 `__: os.listdir() and " -"os.scandir() now emit bytes names when called with bytes-like argument." +"`bpo-30879 `__: os.listdir() and os." +"scandir() now emit bytes names when called with bytes-like argument." msgstr "" -#: ../../../build/NEWS:6012 ../../../build/NEWS:8735 ../../../build/NEWS:13084 +#: ../../../build/NEWS:6636 ../../../build/NEWS:9359 ../../../build/NEWS:13708 msgid "" "`bpo-30746 `__: Prohibited the '=' " -"character in environment variable names in ``os.putenv()`` and " -"``os.spawn*()``." +"character in environment variable names in ``os.putenv()`` and ``os." +"spawn*()``." msgstr "" -#: ../../../build/NEWS:6015 +#: ../../../build/NEWS:6639 msgid "" "`bpo-30664 `__: The description of a " -"unittest subtest now preserves the order of keyword arguments of " -"TestCase.subTest()." +"unittest subtest now preserves the order of keyword arguments of TestCase." +"subTest()." msgstr "" -#: ../../../build/NEWS:6018 +#: ../../../build/NEWS:6642 msgid "" "`bpo-21071 `__: struct.Struct.format " "type is now :class:`str` instead of :class:`bytes`." msgstr "" -#: ../../../build/NEWS:6021 ../../../build/NEWS:8645 +#: ../../../build/NEWS:6645 ../../../build/NEWS:9269 msgid "" -"`bpo-29212 `__: Fix " -"concurrent.futures.thread.ThreadPoolExecutor threads to have a non repr() " -"based thread name by default when no thread_name_prefix is supplied. They " -"will now identify themselves as \"ThreadPoolExecutor-y_n\"." +"`bpo-29212 `__: Fix concurrent.futures." +"thread.ThreadPoolExecutor threads to have a non repr() based thread name by " +"default when no thread_name_prefix is supplied. They will now identify " +"themselves as \"ThreadPoolExecutor-y_n\"." msgstr "" -#: ../../../build/NEWS:6026 ../../../build/NEWS:8738 ../../../build/NEWS:13087 +#: ../../../build/NEWS:6650 ../../../build/NEWS:9362 ../../../build/NEWS:13711 msgid "" "`bpo-29755 `__: Fixed the lgettext() " "family of functions in the gettext module. They now always return bytes." msgstr "" -#: ../../../build/NEWS:6029 ../../../build/NEWS:9079 +#: ../../../build/NEWS:6653 ../../../build/NEWS:9703 msgid "" "`bpo-30616 `__: Functional API of enum " "allows to create empty enums. Patched by Dong-hee Na" msgstr "" -#: ../../../build/NEWS:6032 ../../../build/NEWS:9082 +#: ../../../build/NEWS:6656 ../../../build/NEWS:9706 msgid "" "`bpo-30038 `__: Fix race condition " -"between signal delivery and wakeup file descriptor. Patch by Nathaniel " -"Smith." +"between signal delivery and wakeup file descriptor. Patch by Nathaniel Smith." msgstr "" -#: ../../../build/NEWS:6035 ../../../build/NEWS:9085 +#: ../../../build/NEWS:6659 ../../../build/NEWS:9709 msgid "" "`bpo-23894 `__: lib2to3 now recognizes " "``rb'...'`` and ``f'...'`` strings." msgstr "" -#: ../../../build/NEWS:6037 +#: ../../../build/NEWS:6661 msgid "" "`bpo-24744 `__: pkgutil.walk_packages " "function now raises ValueError if *path* is a string. Patch by Sanyam " "Khurana." msgstr "" -#: ../../../build/NEWS:6040 ../../../build/NEWS:13104 +#: ../../../build/NEWS:6664 ../../../build/NEWS:13728 msgid "" "`bpo-24484 `__: Avoid race condition in " "multiprocessing cleanup." msgstr "" -#: ../../../build/NEWS:6042 +#: ../../../build/NEWS:6666 msgid "" -"`bpo-30589 `__: Fix " -"multiprocessing.Process.exitcode to return the opposite of the signal number" -" when the process is killed by a signal (instead of 255) when using the " -"\"forkserver\" method." +"`bpo-30589 `__: Fix multiprocessing." +"Process.exitcode to return the opposite of the signal number when the " +"process is killed by a signal (instead of 255) when using the \"forkserver\" " +"method." msgstr "" -#: ../../../build/NEWS:6046 ../../../build/NEWS:9116 ../../../build/NEWS:13106 +#: ../../../build/NEWS:6670 ../../../build/NEWS:9740 ../../../build/NEWS:13730 msgid "" "`bpo-28994 `__: The traceback no longer " "displayed for SystemExit raised in a callback registered by atexit." msgstr "" -#: ../../../build/NEWS:6049 ../../../build/NEWS:9119 ../../../build/NEWS:13109 +#: ../../../build/NEWS:6673 ../../../build/NEWS:9743 ../../../build/NEWS:13733 msgid "" "`bpo-30508 `__: Don't log exceptions if " "Task/Future \"cancel()\" method was called." msgstr "" -#: ../../../build/NEWS:6052 +#: ../../../build/NEWS:6676 msgid "" "`bpo-30645 `__: Fix path calculation in " "`imp.load_package()`, fixing it for cases when a package is only shipped " "with bytecodes. Patch by Alexandru Ardelean." msgstr "" -#: ../../../build/NEWS:6056 +#: ../../../build/NEWS:6680 msgid "" "`bpo-11822 `__: The dis.dis() function " "now is able to disassemble nested code objects." msgstr "" -#: ../../../build/NEWS:6059 +#: ../../../build/NEWS:6683 msgid "" "`bpo-30624 `__: selectors does not take " "KeyboardInterrupt and SystemExit into account, leaving a fd in a bad state " "in case of error. Patch by Giampaolo Rodola'." msgstr "" -#: ../../../build/NEWS:6063 ../../../build/NEWS:8695 +#: ../../../build/NEWS:6687 ../../../build/NEWS:9319 msgid "" -"`bpo-30595 `__: " -"multiprocessing.Queue.get() with a timeout now polls its reader in non-" -"blocking mode if it succeeded to acquire the lock but the acquire took " -"longer than the timeout." +"`bpo-30595 `__: multiprocessing.Queue." +"get() with a timeout now polls its reader in non-blocking mode if it " +"succeeded to acquire the lock but the acquire took longer than the timeout." msgstr "" -#: ../../../build/NEWS:6067 ../../../build/NEWS:9122 ../../../build/NEWS:13112 +#: ../../../build/NEWS:6691 ../../../build/NEWS:9746 ../../../build/NEWS:13736 msgid "" "`bpo-28556 `__: Updates to typing " "module: Add generic AsyncContextManager, add support for ContextManager on " "all versions. Original PRs by Jelle Zijlstra and Ivan Levkivskyi" msgstr "" -#: ../../../build/NEWS:6071 ../../../build/NEWS:9101 +#: ../../../build/NEWS:6695 ../../../build/NEWS:9725 msgid "" "`bpo-30605 `__: re.compile() no longer " "raises a BytesWarning when compiling a bytes instance with misplaced inline " "modifier. Patch by Roy Williams." msgstr "" -#: ../../../build/NEWS:6074 ../../../build/NEWS:9126 ../../../build/NEWS:13116 +#: ../../../build/NEWS:6698 ../../../build/NEWS:9750 ../../../build/NEWS:13740 msgid "" "`bpo-29870 `__: Fix ssl sockets leaks " "when connection is aborted in asyncio/ssl implementation. Patch by Michaël " "Sghaïer." msgstr "" -#: ../../../build/NEWS:6077 ../../../build/NEWS:9129 ../../../build/NEWS:13119 +#: ../../../build/NEWS:6701 ../../../build/NEWS:9753 ../../../build/NEWS:13743 msgid "" -"`bpo-29743 `__: Closing transport during" -" handshake process leaks open socket. Patch by Nikolay Kim" +"`bpo-29743 `__: Closing transport during " +"handshake process leaks open socket. Patch by Nikolay Kim" msgstr "" -#: ../../../build/NEWS:6080 ../../../build/NEWS:9132 ../../../build/NEWS:13122 +#: ../../../build/NEWS:6704 ../../../build/NEWS:9756 ../../../build/NEWS:13746 msgid "" "`bpo-27585 `__: Fix waiter cancellation " "in asyncio.Lock. Patch by Mathieu Sornay." msgstr "" -#: ../../../build/NEWS:6083 +#: ../../../build/NEWS:6707 msgid "" "`bpo-30014 `__: modify() method of " "poll(), epoll() and devpoll() based classes of selectors module is around " "10% faster. Patch by Giampaolo Rodola'." msgstr "" -#: ../../../build/NEWS:6086 ../../../build/NEWS:9135 ../../../build/NEWS:13125 +#: ../../../build/NEWS:6710 ../../../build/NEWS:9759 ../../../build/NEWS:13749 msgid "" -"`bpo-30418 `__: On Windows, " -"subprocess.Popen.communicate() now also ignore EINVAL on stdin.write() if " -"the child process is still running but closed the pipe." +"`bpo-30418 `__: On Windows, subprocess." +"Popen.communicate() now also ignore EINVAL on stdin.write() if the child " +"process is still running but closed the pipe." msgstr "" -#: ../../../build/NEWS:6090 +#: ../../../build/NEWS:6714 msgid "" "`bpo-30463 `__: Addded empty __slots__ " "to abc.ABC. This allows subclassers to deny __dict__ and __weakref__ " "creation. Patch by Aaron Hall." msgstr "" -#: ../../../build/NEWS:6093 +#: ../../../build/NEWS:6717 msgid "" "`bpo-30520 `__: Loggers are now " "pickleable." msgstr "" -#: ../../../build/NEWS:6095 ../../../build/NEWS:9146 +#: ../../../build/NEWS:6719 ../../../build/NEWS:9770 msgid "" "`bpo-30557 `__: faulthandler now " "correctly filters and displays exception codes on Windows" msgstr "" -#: ../../../build/NEWS:6098 +#: ../../../build/NEWS:6722 msgid "" -"`bpo-30526 `__: Add " -"TextIOWrapper.reconfigure() and a TextIOWrapper.write_through attribute." +"`bpo-30526 `__: Add TextIOWrapper." +"reconfigure() and a TextIOWrapper.write_through attribute." msgstr "" -#: ../../../build/NEWS:6101 +#: ../../../build/NEWS:6725 msgid "" "`bpo-30245 `__: Fix possible overflow " "when organize struct.pack_into error message. Patch by Yuan Liu." msgstr "" -#: ../../../build/NEWS:6104 ../../../build/NEWS:9149 ../../../build/NEWS:13129 +#: ../../../build/NEWS:6728 ../../../build/NEWS:9773 ../../../build/NEWS:13753 msgid "" "`bpo-30378 `__: Fix the problem that " "logging.handlers.SysLogHandler cannot handle IPv6 addresses." msgstr "" -#: ../../../build/NEWS:6107 +#: ../../../build/NEWS:6731 msgid "" "`bpo-16500 `__: Allow registering at-" "fork handlers." msgstr "" -#: ../../../build/NEWS:6109 +#: ../../../build/NEWS:6733 msgid "" -"`bpo-30470 `__: Deprecate invalid ctypes" -" call protection on Windows. Patch by Mariatta Wijaya." +"`bpo-30470 `__: Deprecate invalid ctypes " +"call protection on Windows. Patch by Mariatta Wijaya." msgstr "" -#: ../../../build/NEWS:6112 ../../../build/NEWS:9155 ../../../build/NEWS:13135 +#: ../../../build/NEWS:6736 ../../../build/NEWS:9779 ../../../build/NEWS:13759 msgid "" -"`bpo-30414 `__: " -"multiprocessing.Queue._feed background running thread do not break from main" -" loop on exception." +"`bpo-30414 `__: multiprocessing.Queue." +"_feed background running thread do not break from main loop on exception." msgstr "" -#: ../../../build/NEWS:6115 ../../../build/NEWS:9158 ../../../build/NEWS:13138 +#: ../../../build/NEWS:6739 ../../../build/NEWS:9782 ../../../build/NEWS:13762 msgid "" "`bpo-30003 `__: Fix handling escape " "characters in HZ codec. Based on patch by Ma Lin." msgstr "" -#: ../../../build/NEWS:6118 ../../../build/NEWS:9090 ../../../build/NEWS:13097 +#: ../../../build/NEWS:6742 ../../../build/NEWS:9714 ../../../build/NEWS:13721 msgid "" "`bpo-30149 `__: inspect.signature() now " "supports callables with variable-argument parameters wrapped with " "partialmethod. Patch by Dong-hee Na." msgstr "" -#: ../../../build/NEWS:6122 +#: ../../../build/NEWS:6746 msgid "" "`bpo-30436 `__: importlib.find_spec() " -"raises ModuleNotFoundError instead of AttributeError if the specified parent" -" module is not a package (i.e. lacks a __path__ attribute)." +"raises ModuleNotFoundError instead of AttributeError if the specified parent " +"module is not a package (i.e. lacks a __path__ attribute)." msgstr "" -#: ../../../build/NEWS:6126 ../../../build/NEWS:9161 ../../../build/NEWS:13141 +#: ../../../build/NEWS:6750 ../../../build/NEWS:9785 ../../../build/NEWS:13765 msgid "" "`bpo-30301 `__: Fix AttributeError when " "using SimpleQueue.empty() under *spawn* and *forkserver* start methods." msgstr "" -#: ../../../build/NEWS:6129 ../../../build/NEWS:9168 ../../../build/NEWS:13148 +#: ../../../build/NEWS:6753 ../../../build/NEWS:9792 ../../../build/NEWS:13772 msgid "" "`bpo-30375 `__: Warnings emitted when " -"compile a regular expression now always point to the line in the user code." -" Previously they could point into inners of the re module if emitted from " +"compile a regular expression now always point to the line in the user code. " +"Previously they could point into inners of the re module if emitted from " "inside of groups or conditionals." msgstr "" -#: ../../../build/NEWS:6133 ../../../build/NEWS:9164 ../../../build/NEWS:13144 +#: ../../../build/NEWS:6757 ../../../build/NEWS:9788 ../../../build/NEWS:13768 msgid "" "`bpo-30329 `__: imaplib and poplib now " "catch the Windows socket WSAEINVAL error (code 10022) on " @@ -11873,7 +12962,7 @@ msgid "" "sometimes on SSL connections." msgstr "" -#: ../../../build/NEWS:6137 +#: ../../../build/NEWS:6761 msgid "" "`bpo-29196 `__: Removed previously " "deprecated in Python 2.4 classes Plist, Dict and _InternalDict in the " @@ -11882,71 +12971,71 @@ msgid "" "access to access items of these dictionaries." msgstr "" -#: ../../../build/NEWS:6142 +#: ../../../build/NEWS:6766 msgid "" "`bpo-9850 `__: The :mod:`macpath` is now " "deprecated and will be removed in Python 3.8." msgstr "" -#: ../../../build/NEWS:6145 +#: ../../../build/NEWS:6769 msgid "" "`bpo-30299 `__: Compiling regular " "expression in debug mode on CPython now displays the compiled bytecode in " "human readable form." msgstr "" -#: ../../../build/NEWS:6148 ../../../build/NEWS:9172 ../../../build/NEWS:13152 +#: ../../../build/NEWS:6772 ../../../build/NEWS:9796 ../../../build/NEWS:13776 msgid "" "`bpo-30048 `__: Fixed ``Task.cancel()`` " -"can be ignored when the task is running coroutine and the coroutine returned" -" without any more ``await``." +"can be ignored when the task is running coroutine and the coroutine returned " +"without any more ``await``." msgstr "" -#: ../../../build/NEWS:6151 ../../../build/NEWS:9175 +#: ../../../build/NEWS:6775 ../../../build/NEWS:9799 msgid "" -"`bpo-30266 `__: " -"contextlib.AbstractContextManager now supports anti-registration by setting " -"__enter__ = None or __exit__ = None, following the pattern introduced in " -"`bpo-25958 `__. Patch by Jelle Zijlstra." +"`bpo-30266 `__: contextlib." +"AbstractContextManager now supports anti-registration by setting __enter__ = " +"None or __exit__ = None, following the pattern introduced in `bpo-25958 " +"`__. Patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:6155 +#: ../../../build/NEWS:6779 msgid "" "`bpo-30340 `__: Enhanced regular " "expressions optimization. This increased the performance of matching some " "patterns up to 25 times." msgstr "" -#: ../../../build/NEWS:6158 ../../../build/NEWS:9179 +#: ../../../build/NEWS:6782 ../../../build/NEWS:9803 msgid "" "`bpo-30298 `__: Weaken the condition of " -"deprecation warnings for inline modifiers. Now allowed several subsequential" -" inline modifiers at the start of the pattern (e.g. ``'(?i)(?s)...'``). In " +"deprecation warnings for inline modifiers. Now allowed several subsequential " +"inline modifiers at the start of the pattern (e.g. ``'(?i)(?s)...'``). In " "verbose mode whitespaces and comments now are allowed before and between " "inline modifiers (e.g. ``'(?x) (?i) (?s)...'``)." msgstr "" -#: ../../../build/NEWS:6164 +#: ../../../build/NEWS:6788 msgid "" "`bpo-30285 `__: Optimized case-" "insensitive matching and searching of regular expressions." msgstr "" -#: ../../../build/NEWS:6167 ../../../build/NEWS:9185 ../../../build/NEWS:13155 +#: ../../../build/NEWS:6791 ../../../build/NEWS:9809 ../../../build/NEWS:13779 msgid "" "`bpo-29990 `__: Fix range checking in " "GB18030 decoder. Original patch by Ma Lin." msgstr "" -#: ../../../build/NEWS:6170 +#: ../../../build/NEWS:6794 msgid "" -"`bpo-29979 `__: rewrite " -"cgi.parse_multipart, reusing the FieldStorage class and making its results " +"`bpo-29979 `__: rewrite cgi." +"parse_multipart, reusing the FieldStorage class and making its results " "consistent with those of FieldStorage for multipart/form-data requests. " "Patch by Pierre Quentel." msgstr "" -#: ../../../build/NEWS:6174 ../../../build/NEWS:9191 ../../../build/NEWS:13161 +#: ../../../build/NEWS:6798 ../../../build/NEWS:9815 ../../../build/NEWS:13785 msgid "" "`bpo-30243 `__: Removed the __init__ " "methods of _json's scanner and encoder. Misusing them could cause memory " @@ -11954,47 +13043,47 @@ msgid "" "initialized in the __new__ methods." msgstr "" -#: ../../../build/NEWS:6178 +#: ../../../build/NEWS:6802 msgid "" "`bpo-30215 `__: Compiled regular " -"expression objects with the re.LOCALE flag no longer depend on the locale at" -" compile time. Only the locale at matching time affects the result of " +"expression objects with the re.LOCALE flag no longer depend on the locale at " +"compile time. Only the locale at matching time affects the result of " "matching." msgstr "" -#: ../../../build/NEWS:6182 ../../../build/NEWS:9195 ../../../build/NEWS:13165 +#: ../../../build/NEWS:6806 ../../../build/NEWS:9819 ../../../build/NEWS:13789 msgid "" "`bpo-30185 `__: Avoid KeyboardInterrupt " "tracebacks in forkserver helper process when Ctrl-C is received." msgstr "" -#: ../../../build/NEWS:6185 +#: ../../../build/NEWS:6809 msgid "" -"`bpo-30103 `__: binascii.b2a_uu() and " -"uu.encode() now support using ``'`'`` as zero instead of space." +"`bpo-30103 `__: binascii.b2a_uu() and uu." +"encode() now support using ``'`'`` as zero instead of space." msgstr "" -#: ../../../build/NEWS:6188 ../../../build/NEWS:9198 ../../../build/NEWS:13168 +#: ../../../build/NEWS:6812 ../../../build/NEWS:9822 ../../../build/NEWS:13792 msgid "" "`bpo-28556 `__: Various updates to " "typing module: add typing.NoReturn type, use WrapperDescriptorType, minor " "bug-fixes. Original PRs by Jim Fasarakis-Hilliard and Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:6192 ../../../build/NEWS:9202 ../../../build/NEWS:13172 +#: ../../../build/NEWS:6816 ../../../build/NEWS:9826 ../../../build/NEWS:13796 msgid "" "`bpo-30205 `__: Fix getsockname() for " "unbound AF_UNIX sockets on Linux." msgstr "" -#: ../../../build/NEWS:6194 +#: ../../../build/NEWS:6818 msgid "" "`bpo-30228 `__: The seek() and tell() " "methods of io.FileIO now set the internal seekable attribute to avoid one " "syscall on open() (in buffered or text mode)." msgstr "" -#: ../../../build/NEWS:6198 +#: ../../../build/NEWS:6822 msgid "" "`bpo-30190 `__: unittest's " "assertAlmostEqual and assertNotAlmostEqual provide a better message in case " @@ -12002,38 +13091,38 @@ msgid "" "(patch by Giampaolo Rodola')" msgstr "" -#: ../../../build/NEWS:6202 +#: ../../../build/NEWS:6826 msgid "" -"`bpo-30101 `__: Add support for " -"curses.A_ITALIC." +"`bpo-30101 `__: Add support for curses." +"A_ITALIC." msgstr "" -#: ../../../build/NEWS:6204 ../../../build/NEWS:9139 +#: ../../../build/NEWS:6828 ../../../build/NEWS:9763 msgid "" -"`bpo-29822 `__: inspect.isabstract() now" -" works during __init_subclass__. Patch by Nate Soares." +"`bpo-29822 `__: inspect.isabstract() now " +"works during __init_subclass__. Patch by Nate Soares." msgstr "" -#: ../../../build/NEWS:6207 ../../../build/NEWS:9152 ../../../build/NEWS:13132 +#: ../../../build/NEWS:6831 ../../../build/NEWS:9776 ../../../build/NEWS:13756 msgid "" -"`bpo-29960 `__: Preserve generator state" -" when _random.Random.setstate() raises an exception. Patch by Bryan Olson." +"`bpo-29960 `__: Preserve generator state " +"when _random.Random.setstate() raises an exception. Patch by Bryan Olson." msgstr "" -#: ../../../build/NEWS:6210 ../../../build/NEWS:9204 ../../../build/NEWS:13174 +#: ../../../build/NEWS:6834 ../../../build/NEWS:9828 ../../../build/NEWS:13798 msgid "" "`bpo-30070 `__: Fixed leaks and crashes " "in errors handling in the parser module." msgstr "" -#: ../../../build/NEWS:6213 +#: ../../../build/NEWS:6837 msgid "" "`bpo-22352 `__: Column widths in the " "output of dis.dis() are now adjusted for large line numbers and instruction " "offsets." msgstr "" -#: ../../../build/NEWS:6216 ../../../build/NEWS:9207 ../../../build/NEWS:13177 +#: ../../../build/NEWS:6840 ../../../build/NEWS:9831 ../../../build/NEWS:13801 msgid "" "`bpo-30061 `__: Fixed crashes in IOBase " "methods __next__() and readlines() when readline() or __next__() " @@ -12042,111 +13131,110 @@ msgid "" "PyMapping_Size()." msgstr "" -#: ../../../build/NEWS:6221 +#: ../../../build/NEWS:6845 msgid "" -"`bpo-30218 `__: Fix PathLike support for" -" shutil.unpack_archive. Patch by Jelle Zijlstra." +"`bpo-30218 `__: Fix PathLike support for " +"shutil.unpack_archive. Patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:6224 +#: ../../../build/NEWS:6848 msgid "" "`bpo-10076 `__: Compiled regular " "expression and match objects in the re module now support copy.copy() and " "copy.deepcopy() (they are considered atomic)." msgstr "" -#: ../../../build/NEWS:6227 ../../../build/NEWS:9216 ../../../build/NEWS:13182 +#: ../../../build/NEWS:6851 ../../../build/NEWS:9840 ../../../build/NEWS:13806 msgid "" "`bpo-30068 `__: _io._IOBase.readlines " "will check if it's closed first when hint is present." msgstr "" -#: ../../../build/NEWS:6230 ../../../build/NEWS:9219 ../../../build/NEWS:13185 +#: ../../../build/NEWS:6854 ../../../build/NEWS:9843 ../../../build/NEWS:13809 msgid "" "`bpo-29694 `__: Fixed race condition in " "pathlib mkdir with flags parents=True. Patch by Armin Rigo." msgstr "" -#: ../../../build/NEWS:6233 ../../../build/NEWS:9222 ../../../build/NEWS:13188 +#: ../../../build/NEWS:6857 ../../../build/NEWS:9846 ../../../build/NEWS:13812 msgid "" "`bpo-29692 `__: Fixed arbitrary " "unchaining of RuntimeError exceptions in contextlib.contextmanager. Patch " "by Siddharth Velankar." msgstr "" -#: ../../../build/NEWS:6236 +#: ../../../build/NEWS:6860 msgid "" "`bpo-26187 `__: Test that sqlite3 trace " "callback is not called multiple times when schema is changing. Indirectly " -"fixed by switching to use sqlite3_prepare_v2() in `bpo-9303 " -"`__. Patch by Aviv Palivoda." +"fixed by switching to use sqlite3_prepare_v2() in `bpo-9303 `__. Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:6240 ../../../build/NEWS:9212 +#: ../../../build/NEWS:6864 ../../../build/NEWS:9836 msgid "" "`bpo-30017 `__: Allowed calling the " "close() method of the zip entry writer object multiple times. Writing to a " "closed writer now always produces a ValueError." msgstr "" -#: ../../../build/NEWS:6244 ../../../build/NEWS:9225 ../../../build/NEWS:13191 +#: ../../../build/NEWS:6868 ../../../build/NEWS:9849 ../../../build/NEWS:13815 msgid "" "`bpo-29998 `__: Pickling and copying " "ImportError now preserves name and path attributes." msgstr "" -#: ../../../build/NEWS:6247 +#: ../../../build/NEWS:6871 msgid "" "`bpo-29995 `__: re.escape() now escapes " "only regex special characters." msgstr "" -#: ../../../build/NEWS:6249 +#: ../../../build/NEWS:6873 msgid "" "`bpo-29962 `__: Add math.remainder " "operation, implementing remainder as specified in IEEE 754." msgstr "" -#: ../../../build/NEWS:6252 +#: ../../../build/NEWS:6876 msgid "" -"`bpo-29649 `__: Improve " -"struct.pack_into() exception messages for problems with the buffer size and " +"`bpo-29649 `__: Improve struct." +"pack_into() exception messages for problems with the buffer size and " "offset. Patch by Andrew Nester." msgstr "" -#: ../../../build/NEWS:6255 +#: ../../../build/NEWS:6879 msgid "" "`bpo-29654 `__: Support If-Modified-" "Since HTTP header (browser cache). Patch by Pierre Quentel." msgstr "" -#: ../../../build/NEWS:6258 ../../../build/NEWS:9098 ../../../build/NEWS:13101 +#: ../../../build/NEWS:6882 ../../../build/NEWS:9722 ../../../build/NEWS:13725 msgid "" "`bpo-29931 `__: Fixed comparison check " "for ipaddress.ip_interface objects. Patch by Sanjay Sundaresan." msgstr "" -#: ../../../build/NEWS:6261 ../../../build/NEWS:9228 +#: ../../../build/NEWS:6885 ../../../build/NEWS:9852 msgid "" "`bpo-29953 `__: Fixed memory leaks in " "the replace() method of datetime and time objects when pass out of bound " "fold argument." msgstr "" -#: ../../../build/NEWS:6264 ../../../build/NEWS:9231 ../../../build/NEWS:13194 +#: ../../../build/NEWS:6888 ../../../build/NEWS:9855 ../../../build/NEWS:13818 msgid "" -"`bpo-29942 `__: Fix a crash in " -"itertools.chain.from_iterable when encountering long runs of empty " -"iterables." +"`bpo-29942 `__: Fix a crash in itertools." +"chain.from_iterable when encountering long runs of empty iterables." msgstr "" -#: ../../../build/NEWS:6267 +#: ../../../build/NEWS:6891 msgid "" "`bpo-10030 `__: Sped up reading " "encrypted ZIP files by 2 times." msgstr "" -#: ../../../build/NEWS:6269 +#: ../../../build/NEWS:6893 msgid "" "`bpo-29204 `__: Element.getiterator() " "and the html parameter of XMLParser() were deprecated only in the " @@ -12154,20 +13242,20 @@ msgid "" "emits a deprecation warning." msgstr "" -#: ../../../build/NEWS:6273 ../../../build/NEWS:9234 ../../../build/NEWS:13197 +#: ../../../build/NEWS:6897 ../../../build/NEWS:9858 ../../../build/NEWS:13821 msgid "" "`bpo-27863 `__: Fixed multiple crashes " "in ElementTree caused by race conditions and wrong types." msgstr "" -#: ../../../build/NEWS:6276 +#: ../../../build/NEWS:6900 msgid "" "`bpo-25996 `__: Added support of file " "descriptors in os.scandir() on Unix. os.fwalk() is sped up by 2 times by " "using os.scandir()." msgstr "" -#: ../../../build/NEWS:6279 ../../../build/NEWS:9237 ../../../build/NEWS:13200 +#: ../../../build/NEWS:6903 ../../../build/NEWS:9861 ../../../build/NEWS:13824 msgid "" "`bpo-28699 `__: Fixed a bug in pools in " "multiprocessing.pool that raising an exception at the very first of an " @@ -12175,255 +13263,253 @@ msgid "" "Potts and Xiang Zhang." msgstr "" -#: ../../../build/NEWS:6283 ../../../build/NEWS:9087 ../../../build/NEWS:13094 +#: ../../../build/NEWS:6907 ../../../build/NEWS:9711 ../../../build/NEWS:13718 msgid "" -"`bpo-23890 `__: " -"unittest.TestCase.assertRaises() now manually breaks a reference cycle to " -"not keep objects alive longer than expected." +"`bpo-23890 `__: unittest.TestCase." +"assertRaises() now manually breaks a reference cycle to not keep objects " +"alive longer than expected." msgstr "" -#: ../../../build/NEWS:6286 +#: ../../../build/NEWS:6910 msgid "" "`bpo-29901 `__: The zipapp module now " "supports general path-like objects, not just pathlib.Path." msgstr "" -#: ../../../build/NEWS:6289 ../../../build/NEWS:9241 ../../../build/NEWS:13204 +#: ../../../build/NEWS:6913 ../../../build/NEWS:9865 ../../../build/NEWS:13828 msgid "" "`bpo-25803 `__: Avoid incorrect errors " "raised by Path.mkdir(exist_ok=True) when the OS gives priority to errors " "such as EACCES over EEXIST." msgstr "" -#: ../../../build/NEWS:6292 ../../../build/NEWS:9244 ../../../build/NEWS:13207 +#: ../../../build/NEWS:6916 ../../../build/NEWS:9868 ../../../build/NEWS:13831 msgid "" "`bpo-29861 `__: Release references to " "tasks, their arguments and their results as soon as they are finished in " "multiprocessing.Pool." msgstr "" -#: ../../../build/NEWS:6295 +#: ../../../build/NEWS:6919 msgid "" -"`bpo-19930 `__: The mode argument of " -"os.makedirs() no longer affects the file permission bits of newly-created " +"`bpo-19930 `__: The mode argument of os." +"makedirs() no longer affects the file permission bits of newly-created " "intermediate-level directories." msgstr "" -#: ../../../build/NEWS:6298 ../../../build/NEWS:9247 ../../../build/NEWS:13210 +#: ../../../build/NEWS:6922 ../../../build/NEWS:9871 ../../../build/NEWS:13834 msgid "" "`bpo-29884 `__: faulthandler: Restore " "the old sigaltstack during teardown. Patch by Christophe Zeitouny." msgstr "" -#: ../../../build/NEWS:6301 ../../../build/NEWS:9250 ../../../build/NEWS:13213 +#: ../../../build/NEWS:6925 ../../../build/NEWS:9874 ../../../build/NEWS:13837 msgid "" -"`bpo-25455 `__: Fixed crashes in repr of" -" recursive buffered file-like objects." +"`bpo-25455 `__: Fixed crashes in repr of " +"recursive buffered file-like objects." msgstr "" -#: ../../../build/NEWS:6303 ../../../build/NEWS:9252 ../../../build/NEWS:13215 +#: ../../../build/NEWS:6927 ../../../build/NEWS:9876 ../../../build/NEWS:13839 msgid "" -"`bpo-29800 `__: Fix crashes in " -"partial.__repr__ if the keys of partial.keywords are not strings. Patch by " -"Michael Seifert." +"`bpo-29800 `__: Fix crashes in partial." +"__repr__ if the keys of partial.keywords are not strings. Patch by Michael " +"Seifert." msgstr "" -#: ../../../build/NEWS:6306 ../../../build/NEWS:9258 ../../../build/NEWS:13221 +#: ../../../build/NEWS:6930 ../../../build/NEWS:9882 ../../../build/NEWS:13845 msgid "" "`bpo-8256 `__: Fixed possible failing or " "crashing input() if attributes \"encoding\" or \"errors\" of sys.stdin or " "sys.stdout are not set or are not strings." msgstr "" -#: ../../../build/NEWS:6310 +#: ../../../build/NEWS:6934 msgid "" "`bpo-28692 `__: Using non-integer value " "for selecting a plural form in gettext is now deprecated." msgstr "" -#: ../../../build/NEWS:6313 +#: ../../../build/NEWS:6937 msgid "" "`bpo-26121 `__: Use C library " "implementation for math functions erf() and erfc()." msgstr "" -#: ../../../build/NEWS:6316 +#: ../../../build/NEWS:6940 msgid "" -"`bpo-29619 `__: os.stat() and " -"os.DirEntry.inode() now convert inode (st_ino) using unsigned integers." +"`bpo-29619 `__: os.stat() and os." +"DirEntry.inode() now convert inode (st_ino) using unsigned integers." msgstr "" -#: ../../../build/NEWS:6319 +#: ../../../build/NEWS:6943 msgid "" -"`bpo-28298 `__: Fix a bug that prevented" -" array 'Q', 'L' and 'I' from accepting big intables (objects that have " +"`bpo-28298 `__: Fix a bug that prevented " +"array 'Q', 'L' and 'I' from accepting big intables (objects that have " "__int__) as elements." msgstr "" -#: ../../../build/NEWS:6322 +#: ../../../build/NEWS:6946 msgid "" "`bpo-29645 `__: Speed up importing the " "webbrowser module. webbrowser.register() is now thread-safe." msgstr "" -#: ../../../build/NEWS:6325 ../../../build/NEWS:9266 +#: ../../../build/NEWS:6949 ../../../build/NEWS:9890 msgid "" "`bpo-28231 `__: The zipfile module now " "accepts path-like objects for external paths." msgstr "" -#: ../../../build/NEWS:6328 ../../../build/NEWS:9269 +#: ../../../build/NEWS:6952 ../../../build/NEWS:9893 msgid "" "`bpo-26915 `__: index() and count() " "methods of collections.abc.Sequence now check identity before checking " "equality when do comparisons." msgstr "" -#: ../../../build/NEWS:6331 +#: ../../../build/NEWS:6955 msgid "" "`bpo-28682 `__: Added support for bytes " "paths in os.fwalk()." msgstr "" -#: ../../../build/NEWS:6333 +#: ../../../build/NEWS:6957 msgid "" -"`bpo-29728 `__: Add new " -":data:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constant. Patch by Nathaniel " -"J. Smith." +"`bpo-29728 `__: Add new :data:`socket." +"TCP_NOTSENT_LOWAT` (Linux 3.12) constant. Patch by Nathaniel J. Smith." msgstr "" -#: ../../../build/NEWS:6336 ../../../build/NEWS:9479 +#: ../../../build/NEWS:6960 ../../../build/NEWS:10103 msgid "" "`bpo-29623 `__: Allow use of path-like " "object as a single argument in ConfigParser.read(). Patch by David Ellis." msgstr "" -#: ../../../build/NEWS:6339 +#: ../../../build/NEWS:6963 msgid "" "`bpo-9303 `__: Migrate sqlite3 module to " "_v2 API. Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:6341 ../../../build/NEWS:9482 +#: ../../../build/NEWS:6965 ../../../build/NEWS:10106 msgid "" "`bpo-28963 `__: Fix out of bound " "iteration in asyncio.Future.remove_done_callback implemented in C." msgstr "" -#: ../../../build/NEWS:6344 ../../../build/NEWS:9485 ../../../build/NEWS:13233 +#: ../../../build/NEWS:6968 ../../../build/NEWS:10109 ../../../build/NEWS:13857 msgid "" -"`bpo-29704 `__: " -"asyncio.subprocess.SubprocessStreamProtocol no longer closes before all " -"pipes are closed." +"`bpo-29704 `__: asyncio.subprocess." +"SubprocessStreamProtocol no longer closes before all pipes are closed." msgstr "" -#: ../../../build/NEWS:6347 ../../../build/NEWS:9488 +#: ../../../build/NEWS:6971 ../../../build/NEWS:10112 msgid "" "`bpo-29271 `__: Fix Task.current_task " "and Task.all_tasks implemented in C to accept None argument as their pure " "Python implementation." msgstr "" -#: ../../../build/NEWS:6350 ../../../build/NEWS:9491 ../../../build/NEWS:13236 +#: ../../../build/NEWS:6974 ../../../build/NEWS:10115 ../../../build/NEWS:13860 msgid "" "`bpo-29703 `__: Fix asyncio to support " "instantiation of new event loops in child processes." msgstr "" -#: ../../../build/NEWS:6353 ../../../build/NEWS:9272 ../../../build/NEWS:13229 +#: ../../../build/NEWS:6977 ../../../build/NEWS:9896 ../../../build/NEWS:13853 msgid "" "`bpo-29615 `__: SimpleXMLRPCDispatcher " -"no longer chains KeyError (or any other exception) to exception(s) raised in" -" the dispatched methods. Patch by Petr Motejlek." +"no longer chains KeyError (or any other exception) to exception(s) raised in " +"the dispatched methods. Patch by Petr Motejlek." msgstr "" -#: ../../../build/NEWS:6357 +#: ../../../build/NEWS:6981 msgid "" -"`bpo-7769 `__: Method register_function()" -" of xmlrpc.server.SimpleXMLRPCDispatcher and its subclasses can now be used " +"`bpo-7769 `__: Method register_function() " +"of xmlrpc.server.SimpleXMLRPCDispatcher and its subclasses can now be used " "as a decorator." msgstr "" -#: ../../../build/NEWS:6361 ../../../build/NEWS:9494 ../../../build/NEWS:13239 +#: ../../../build/NEWS:6985 ../../../build/NEWS:10118 ../../../build/NEWS:13863 msgid "" "`bpo-29376 `__: Fix assertion error in " "threading._DummyThread.is_alive()." msgstr "" -#: ../../../build/NEWS:6363 ../../../build/NEWS:9496 +#: ../../../build/NEWS:6987 ../../../build/NEWS:10120 msgid "" "`bpo-28624 `__: Add a test that checks " "that cwd parameter of Popen() accepts PathLike objects. Patch by Sayan " "Chowdhury." msgstr "" -#: ../../../build/NEWS:6366 ../../../build/NEWS:9499 +#: ../../../build/NEWS:6990 ../../../build/NEWS:10123 msgid "" "`bpo-28518 `__: Start a transaction " "implicitly before a DML statement. Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:6369 ../../../build/NEWS:9255 ../../../build/NEWS:13218 +#: ../../../build/NEWS:6993 ../../../build/NEWS:9879 ../../../build/NEWS:13842 msgid "" "`bpo-29742 `__: get_extra_info() raises " "exception if get called on closed ssl transport. Patch by Nikolay Kim." msgstr "" -#: ../../../build/NEWS:6372 +#: ../../../build/NEWS:6996 msgid "" "`bpo-16285 `__: urllib.parse.quote is " "now based on RFC 3986 and hence includes '~' in the set of characters that " "is not quoted by default. Patch by Christian Theune and Ratnadeep Debnath." msgstr "" -#: ../../../build/NEWS:6376 ../../../build/NEWS:9502 ../../../build/NEWS:13247 +#: ../../../build/NEWS:7000 ../../../build/NEWS:10126 ../../../build/NEWS:13871 msgid "" "`bpo-29532 `__: Altering a kwarg " "dictionary passed to functools.partial() no longer affects a partial object " "after creation." msgstr "" -#: ../../../build/NEWS:6379 ../../../build/NEWS:9505 ../../../build/NEWS:13241 +#: ../../../build/NEWS:7003 ../../../build/NEWS:10129 ../../../build/NEWS:13865 msgid "" "`bpo-29110 `__: Fix file object leak in " -"aifc.open() when file is given as a filesystem path and is not in valid AIFF" -" format. Patch by Anthony Zhang." +"aifc.open() when file is given as a filesystem path and is not in valid AIFF " +"format. Patch by Anthony Zhang." msgstr "" -#: ../../../build/NEWS:6382 +#: ../../../build/NEWS:7006 msgid "" "`bpo-22807 `__: Add uuid.SafeUUID and " "uuid.UUID.is_safe to relay information from the platform about whether " "generated UUIDs are generated with a multiprocessing safe method." msgstr "" -#: ../../../build/NEWS:6386 +#: ../../../build/NEWS:7010 msgid "" "`bpo-29576 `__: Improve some " "deprecations in importlib. Some deprecated methods now emit " "DeprecationWarnings and have better descriptive messages." msgstr "" -#: ../../../build/NEWS:6389 +#: ../../../build/NEWS:7013 msgid "" "`bpo-29534 `__: Fixed different " -"behaviour of Decimal.from_float() for _decimal and _pydecimal. Thanks Andrew" -" Nester." +"behaviour of Decimal.from_float() for _decimal and _pydecimal. Thanks Andrew " +"Nester." msgstr "" -#: ../../../build/NEWS:6392 +#: ../../../build/NEWS:7016 msgid "" -"`bpo-10379 `__: locale.format_string now" -" supports the 'monetary' keyword argument, and locale.format is deprecated." +"`bpo-10379 `__: locale.format_string now " +"supports the 'monetary' keyword argument, and locale.format is deprecated." msgstr "" -#: ../../../build/NEWS:6395 +#: ../../../build/NEWS:7019 msgid "" "`bpo-29851 `__: importlib.reload() now " "raises ModuleNotFoundError if the module lacks a spec." msgstr "" -#: ../../../build/NEWS:6398 ../../../build/NEWS:9508 ../../../build/NEWS:13250 +#: ../../../build/NEWS:7022 ../../../build/NEWS:10132 ../../../build/NEWS:13874 msgid "" "`bpo-28556 `__: Various updates to " "typing module: typing.Counter, typing.ChainMap, improved ABC caching, etc. " @@ -12431,111 +13517,111 @@ msgid "" "Langa." msgstr "" -#: ../../../build/NEWS:6402 ../../../build/NEWS:9512 ../../../build/NEWS:13254 +#: ../../../build/NEWS:7026 ../../../build/NEWS:10136 ../../../build/NEWS:13878 msgid "" -"`bpo-29100 `__: Fix " -"datetime.fromtimestamp() regression introduced in Python 3.6.0: check " -"minimum and maximum years." +"`bpo-29100 `__: Fix datetime." +"fromtimestamp() regression introduced in Python 3.6.0: check minimum and " +"maximum years." msgstr "" -#: ../../../build/NEWS:6405 ../../../build/NEWS:9518 ../../../build/NEWS:13260 +#: ../../../build/NEWS:7029 ../../../build/NEWS:10142 ../../../build/NEWS:13884 msgid "" -"`bpo-29416 `__: Prevent infinite loop in" -" pathlib.Path.mkdir" +"`bpo-29416 `__: Prevent infinite loop in " +"pathlib.Path.mkdir" msgstr "" -#: ../../../build/NEWS:6407 ../../../build/NEWS:9520 ../../../build/NEWS:13262 +#: ../../../build/NEWS:7031 ../../../build/NEWS:10144 ../../../build/NEWS:13886 msgid "" "`bpo-29444 `__: Fixed out-of-bounds " "buffer access in the group() method of the match object. Based on patch by " "WGH." msgstr "" -#: ../../../build/NEWS:6410 +#: ../../../build/NEWS:7034 msgid "" "`bpo-29377 `__: Add " "WrapperDescriptorType, MethodWrapperType, and MethodDescriptorType built-in " "types to types module. Original patch by Manuel Krebber." msgstr "" -#: ../../../build/NEWS:6414 +#: ../../../build/NEWS:7038 msgid "" "`bpo-29218 `__: Unused install_misc " -"command is now removed. It has been documented as unused since 2000. Patch" -" by Eric N. Vander Weele." +"command is now removed. It has been documented as unused since 2000. Patch " +"by Eric N. Vander Weele." msgstr "" -#: ../../../build/NEWS:6417 +#: ../../../build/NEWS:7041 msgid "" "`bpo-29368 `__: The extend() method is " "now called instead of the append() method when unpickle collections.deque " "and other list-like objects. This can speed up unpickling to 2 times." msgstr "" -#: ../../../build/NEWS:6421 +#: ../../../build/NEWS:7045 msgid "" -"`bpo-29338 `__: The help of a builtin or" -" extension class now includes the constructor signature if " -"__text_signature__ is provided for the class." +"`bpo-29338 `__: The help of a builtin or " +"extension class now includes the constructor signature if __text_signature__ " +"is provided for the class." msgstr "" -#: ../../../build/NEWS:6424 ../../../build/NEWS:9523 ../../../build/NEWS:13265 +#: ../../../build/NEWS:7048 ../../../build/NEWS:10147 ../../../build/NEWS:13889 msgid "" -"`bpo-29335 `__: Fix " -"subprocess.Popen.wait() when the child process has exited to a stopped " -"instead of terminated state (ex: when under ptrace)." +"`bpo-29335 `__: Fix subprocess.Popen." +"wait() when the child process has exited to a stopped instead of terminated " +"state (ex: when under ptrace)." msgstr "" -#: ../../../build/NEWS:6427 ../../../build/NEWS:9526 ../../../build/NEWS:13268 +#: ../../../build/NEWS:7051 ../../../build/NEWS:10150 ../../../build/NEWS:13892 msgid "" "`bpo-29290 `__: Fix a regression in " "argparse that help messages would wrap at non-breaking spaces." msgstr "" -#: ../../../build/NEWS:6430 ../../../build/NEWS:9529 ../../../build/NEWS:13271 +#: ../../../build/NEWS:7054 ../../../build/NEWS:10153 ../../../build/NEWS:13895 msgid "" "`bpo-28735 `__: Fixed the comparison of " "mock.MagickMock with mock.ANY." msgstr "" -#: ../../../build/NEWS:6432 +#: ../../../build/NEWS:7056 msgid "" "`bpo-29197 `__: Removed deprecated " "function ntpath.splitunc()." msgstr "" -#: ../../../build/NEWS:6434 +#: ../../../build/NEWS:7058 msgid "" "`bpo-29210 `__: Removed support of " "deprecated argument \"exclude\" in tarfile.TarFile.add()." msgstr "" -#: ../../../build/NEWS:6437 ../../../build/NEWS:9534 ../../../build/NEWS:13275 +#: ../../../build/NEWS:7061 ../../../build/NEWS:10158 ../../../build/NEWS:13899 msgid "" -"`bpo-29219 `__: Fixed infinite recursion" -" in the repr of uninitialized ctypes.CDLL instances." +"`bpo-29219 `__: Fixed infinite recursion " +"in the repr of uninitialized ctypes.CDLL instances." msgstr "" -#: ../../../build/NEWS:6440 +#: ../../../build/NEWS:7064 msgid "" "`bpo-29192 `__: Removed deprecated " "features in the http.cookies module." msgstr "" -#: ../../../build/NEWS:6442 +#: ../../../build/NEWS:7066 msgid "" -"`bpo-29193 `__: A format string argument" -" for string.Formatter.format() is now positional-only." +"`bpo-29193 `__: A format string argument " +"for string.Formatter.format() is now positional-only." msgstr "" -#: ../../../build/NEWS:6445 +#: ../../../build/NEWS:7069 msgid "" "`bpo-29195 `__: Removed support of " "deprecated undocumented keyword arguments in methods of regular expression " "objects." msgstr "" -#: ../../../build/NEWS:6448 ../../../build/NEWS:9539 ../../../build/NEWS:13278 +#: ../../../build/NEWS:7072 ../../../build/NEWS:10163 ../../../build/NEWS:13902 msgid "" "`bpo-28969 `__: Fixed race condition in " "C implementation of functools.lru_cache. KeyError could be raised when " @@ -12543,113 +13629,112 @@ msgid "" "threads with the same uncached arguments." msgstr "" -#: ../../../build/NEWS:6453 +#: ../../../build/NEWS:7077 msgid "" -"`bpo-20804 `__: The " -"unittest.mock.sentinel attributes now preserve their identity when they are " -"copied or pickled." +"`bpo-20804 `__: The unittest.mock." +"sentinel attributes now preserve their identity when they are copied or " +"pickled." msgstr "" -#: ../../../build/NEWS:6456 ../../../build/NEWS:9544 ../../../build/NEWS:13283 +#: ../../../build/NEWS:7080 ../../../build/NEWS:10168 ../../../build/NEWS:13907 msgid "" "`bpo-29142 `__: In urllib.request, " "suffixes in no_proxy environment variable with leading dots could match " "related hostnames again (e.g. .b.c matches a.b.c). Patch by Milan Oberkirch." msgstr "" -#: ../../../build/NEWS:6460 ../../../build/NEWS:9548 ../../../build/NEWS:13244 +#: ../../../build/NEWS:7084 ../../../build/NEWS:10172 ../../../build/NEWS:13868 msgid "" "`bpo-28961 `__: Fix unittest.mock._Call " "helper: don't ignore the name parameter anymore. Patch written by Jiajun " "Huang." msgstr "" -#: ../../../build/NEWS:6463 ../../../build/NEWS:9555 ../../../build/NEWS:13532 +#: ../../../build/NEWS:7087 ../../../build/NEWS:10179 ../../../build/NEWS:14156 msgid "" "`bpo-15812 `__: inspect.getframeinfo() " "now correctly shows the first line of a context. Patch by Sam Breese." msgstr "" -#: ../../../build/NEWS:6466 +#: ../../../build/NEWS:7090 msgid "" "`bpo-28985 `__: Update authorizer " "constants in sqlite3 module. Patch by Dingyuan Wang." msgstr "" -#: ../../../build/NEWS:6469 ../../../build/NEWS:9567 +#: ../../../build/NEWS:7093 ../../../build/NEWS:10191 msgid "" -"`bpo-29079 `__: Prevent infinite loop in" -" pathlib.resolve() on Windows" +"`bpo-29079 `__: Prevent infinite loop in " +"pathlib.resolve() on Windows" msgstr "" -#: ../../../build/NEWS:6471 ../../../build/NEWS:9569 ../../../build/NEWS:13538 +#: ../../../build/NEWS:7095 ../../../build/NEWS:10193 ../../../build/NEWS:14162 msgid "" "`bpo-13051 `__: Fixed recursion errors " "in large or resized curses.textpad.Textbox. Based on patch by Tycho " "Andersen." msgstr "" -#: ../../../build/NEWS:6474 ../../../build/NEWS:9576 ../../../build/NEWS:13545 +#: ../../../build/NEWS:7098 ../../../build/NEWS:10200 ../../../build/NEWS:14169 msgid "" "`bpo-9770 `__: curses.ascii predicates " "now work correctly with negative integers." msgstr "" -#: ../../../build/NEWS:6477 ../../../build/NEWS:9579 ../../../build/NEWS:13548 +#: ../../../build/NEWS:7101 ../../../build/NEWS:10203 ../../../build/NEWS:14172 msgid "" "`bpo-28427 `__: old keys should not " "remove new values from WeakValueDictionary when collecting from another " "thread." msgstr "" -#: ../../../build/NEWS:6480 ../../../build/NEWS:9582 ../../../build/NEWS:13551 +#: ../../../build/NEWS:7104 ../../../build/NEWS:10206 ../../../build/NEWS:14175 msgid "" "`bpo-28923 `__: Remove editor artifacts " "from Tix.py." msgstr "" -#: ../../../build/NEWS:6482 ../../../build/NEWS:9587 ../../../build/NEWS:13553 +#: ../../../build/NEWS:7106 ../../../build/NEWS:10211 ../../../build/NEWS:14177 msgid "" "`bpo-28871 `__: Fixed a crash when " "deallocate deep ElementTree." msgstr "" -#: ../../../build/NEWS:6484 ../../../build/NEWS:9589 ../../../build/NEWS:13555 +#: ../../../build/NEWS:7108 ../../../build/NEWS:10213 ../../../build/NEWS:14179 msgid "" "`bpo-19542 `__: Fix bugs in " "WeakValueDictionary.setdefault() and WeakValueDictionary.pop() when a GC " "collection happens in another thread." msgstr "" -#: ../../../build/NEWS:6487 ../../../build/NEWS:9592 +#: ../../../build/NEWS:7111 ../../../build/NEWS:10216 msgid "" "`bpo-20191 `__: Fixed a crash in " "resource.prlimit() when passing a sequence that doesn't own its elements as " "limits." msgstr "" -#: ../../../build/NEWS:6490 +#: ../../../build/NEWS:7114 msgid "" -"`bpo-16255 `__: subprocess.Popen uses " -"/system/bin/sh on Android as the shell, instead of /bin/sh." +"`bpo-16255 `__: subprocess.Popen uses /" +"system/bin/sh on Android as the shell, instead of /bin/sh." msgstr "" -#: ../../../build/NEWS:6493 ../../../build/NEWS:9595 ../../../build/NEWS:13561 +#: ../../../build/NEWS:7117 ../../../build/NEWS:10219 ../../../build/NEWS:14185 msgid "" -"`bpo-28779 `__: " -"multiprocessing.set_forkserver_preload() would crash the forkserver process " -"if a preloaded module instantiated some multiprocessing objects such as " -"locks." +"`bpo-28779 `__: multiprocessing." +"set_forkserver_preload() would crash the forkserver process if a preloaded " +"module instantiated some multiprocessing objects such as locks." msgstr "" -#: ../../../build/NEWS:6497 ../../../build/NEWS:9602 +#: ../../../build/NEWS:7121 ../../../build/NEWS:10226 msgid "" "`bpo-26937 `__: The chown() method of " "the tarfile.TarFile class does not fail now when the grp module cannot be " "imported, as for example on Android platforms." msgstr "" -#: ../../../build/NEWS:6501 +#: ../../../build/NEWS:7125 msgid "" "`bpo-28847 `__: dbm.dumb now supports " "reading read-only files and no longer writes the index file when it is not " @@ -12658,51 +13743,49 @@ msgid "" "releases)." msgstr "" -#: ../../../build/NEWS:6506 +#: ../../../build/NEWS:7130 msgid "" "`bpo-27030 `__: Unknown escapes " -"consisting of ``'\\'`` and an ASCII letter in re.sub() replacement templates" -" regular expressions now are errors." +"consisting of ``'\\'`` and an ASCII letter in re.sub() replacement templates " +"regular expressions now are errors." msgstr "" -#: ../../../build/NEWS:6509 +#: ../../../build/NEWS:7133 msgid "" "`bpo-28835 `__: Fix a regression " "introduced in warnings.catch_warnings(): call warnings.showwarning() if it " "was overridden inside the context manager." msgstr "" -#: ../../../build/NEWS:6512 ../../../build/NEWS:9786 +#: ../../../build/NEWS:7136 ../../../build/NEWS:10410 msgid "" "`bpo-27172 `__: To assist with upgrades " -"from 2.7, the previously documented deprecation of " -"``inspect.getfullargspec()`` has been reversed. This decision may be " -"revisited again after the Python 2.7 branch is no longer officially " -"supported." +"from 2.7, the previously documented deprecation of ``inspect." +"getfullargspec()`` has been reversed. This decision may be revisited again " +"after the Python 2.7 branch is no longer officially supported." msgstr "" -#: ../../../build/NEWS:6517 +#: ../../../build/NEWS:7141 msgid "" -"`bpo-28740 `__: Add " -"sys.getandroidapilevel(): return the build time API version of Android as an" -" integer. Function only available on Android." +"`bpo-28740 `__: Add sys." +"getandroidapilevel(): return the build time API version of Android as an " +"integer. Function only available on Android." msgstr "" -#: ../../../build/NEWS:6520 ../../../build/NEWS:9791 +#: ../../../build/NEWS:7144 ../../../build/NEWS:10415 msgid "" -"`bpo-26273 `__: Add new " -":data:`socket.TCP_CONGESTION` (Linux 2.6.13) and " -":data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by " -"Omar Sandoval." +"`bpo-26273 `__: Add new :data:`socket." +"TCP_CONGESTION` (Linux 2.6.13) and :data:`socket.TCP_USER_TIMEOUT` (Linux " +"2.6.37) constants. Patch written by Omar Sandoval." msgstr "" -#: ../../../build/NEWS:6524 ../../../build/NEWS:9861 +#: ../../../build/NEWS:7148 ../../../build/NEWS:10485 msgid "" "`bpo-28752 `__: Restored the " "__reduce__() methods of datetime objects." msgstr "" -#: ../../../build/NEWS:6526 ../../../build/NEWS:9863 +#: ../../../build/NEWS:7150 ../../../build/NEWS:10487 msgid "" "`bpo-28727 `__: Regular expression " "patterns, _sre.SRE_Pattern objects created by re.compile(), become " @@ -12712,34 +13795,34 @@ msgid "" "unit tests)." msgstr "" -#: ../../../build/NEWS:6531 +#: ../../../build/NEWS:7155 msgid "" -"`bpo-20572 `__: Remove the " -"subprocess.Popen.wait endtime parameter. It was deprecated in 3.4 and " -"undocumented prior to that." +"`bpo-20572 `__: Remove the subprocess." +"Popen.wait endtime parameter. It was deprecated in 3.4 and undocumented " +"prior to that." msgstr "" -#: ../../../build/NEWS:6534 ../../../build/NEWS:9871 ../../../build/NEWS:13568 +#: ../../../build/NEWS:7158 ../../../build/NEWS:10495 ../../../build/NEWS:14192 msgid "" "`bpo-25659 `__: In ctypes, prevent a " "crash calling the from_buffer() and from_buffer_copy() methods on abstract " "classes like Array." msgstr "" -#: ../../../build/NEWS:6537 +#: ../../../build/NEWS:7161 msgid "" "`bpo-28548 `__: In the \"http.server\" " "module, parse the protocol version if possible, to avoid using HTTP 0.9 in " "some error responses." msgstr "" -#: ../../../build/NEWS:6540 ../../../build/NEWS:9874 +#: ../../../build/NEWS:7164 ../../../build/NEWS:10498 msgid "" "`bpo-19717 `__: Makes Path.resolve() " "succeed on paths that do not exist. Patch by Vajrasky Kok" msgstr "" -#: ../../../build/NEWS:6543 ../../../build/NEWS:9877 +#: ../../../build/NEWS:7167 ../../../build/NEWS:10501 msgid "" "`bpo-28563 `__: Fixed possible DoS and " "arbitrary code execution when handle plural form selections in the gettext " @@ -12747,112 +13830,112 @@ msgid "" "gettext." msgstr "" -#: ../../../build/NEWS:6547 ../../../build/NEWS:9881 ../../../build/NEWS:13577 +#: ../../../build/NEWS:7171 ../../../build/NEWS:10505 ../../../build/NEWS:14201 msgid "" "`bpo-28387 `__: Fixed possible crash in " -"_io.TextIOWrapper deallocator when the garbage collector is invoked in other" -" thread. Based on patch by Sebastian Cufre." +"_io.TextIOWrapper deallocator when the garbage collector is invoked in other " +"thread. Based on patch by Sebastian Cufre." msgstr "" -#: ../../../build/NEWS:6551 ../../../build/NEWS:9964 ../../../build/NEWS:13581 +#: ../../../build/NEWS:7175 ../../../build/NEWS:10588 ../../../build/NEWS:14205 msgid "" "`bpo-27517 `__: LZMA compressor and " -"decompressor no longer raise exceptions if given empty data twice. Patch by" -" Benjamin Fogle." +"decompressor no longer raise exceptions if given empty data twice. Patch by " +"Benjamin Fogle." msgstr "" -#: ../../../build/NEWS:6554 ../../../build/NEWS:9967 ../../../build/NEWS:13584 +#: ../../../build/NEWS:7178 ../../../build/NEWS:10591 ../../../build/NEWS:14208 msgid "" "`bpo-28549 `__: Fixed segfault in " "curses's addch() with ncurses6." msgstr "" -#: ../../../build/NEWS:6556 ../../../build/NEWS:9969 ../../../build/NEWS:13586 +#: ../../../build/NEWS:7180 ../../../build/NEWS:10593 ../../../build/NEWS:14210 msgid "" -"`bpo-28449 `__: tarfile.open() with mode" -" \"r\" or \"r:\" now tries to open a tar file with compression before trying" -" to open it without compression. Otherwise it had 50% chance failed with " +"`bpo-28449 `__: tarfile.open() with mode " +"\"r\" or \"r:\" now tries to open a tar file with compression before trying " +"to open it without compression. Otherwise it had 50% chance failed with " "ignore_zeros=True." msgstr "" -#: ../../../build/NEWS:6560 ../../../build/NEWS:9973 ../../../build/NEWS:13590 +#: ../../../build/NEWS:7184 ../../../build/NEWS:10597 ../../../build/NEWS:14214 msgid "" "`bpo-23262 `__: The webbrowser module " "now supports Firefox 36+ and derived browsers. Based on patch by Oleg " "Broytman." msgstr "" -#: ../../../build/NEWS:6563 +#: ../../../build/NEWS:7187 msgid "" "`bpo-24241 `__: The webbrowser in an X " "environment now prefers using the default browser directly. Also, the " -"webbrowser register() function now has a documented 'preferred' argument, to" -" specify browsers to be returned by get() with no arguments. Patch by David " +"webbrowser register() function now has a documented 'preferred' argument, to " +"specify browsers to be returned by get() with no arguments. Patch by David " "Steele" msgstr "" -#: ../../../build/NEWS:6568 ../../../build/NEWS:9976 ../../../build/NEWS:13593 +#: ../../../build/NEWS:7192 ../../../build/NEWS:10600 ../../../build/NEWS:14217 msgid "" -"`bpo-27939 `__: Fixed bugs in " -"tkinter.ttk.LabeledScale and tkinter.Scale caused by representing the scale " -"as float value internally in Tk. tkinter.IntVar now works if float value is" -" set to underlying Tk variable." +"`bpo-27939 `__: Fixed bugs in tkinter." +"ttk.LabeledScale and tkinter.Scale caused by representing the scale as float " +"value internally in Tk. tkinter.IntVar now works if float value is set to " +"underlying Tk variable." msgstr "" -#: ../../../build/NEWS:6572 +#: ../../../build/NEWS:7196 msgid "" -"`bpo-28255 `__: " -"calendar.TextCalendar.prweek() no longer prints a space after a weeks's " -"calendar. calendar.TextCalendar.pryear() no longer prints redundant newline" -" after a year's calendar. Based on patch by Xiang Zhang." +"`bpo-28255 `__: calendar.TextCalendar." +"prweek() no longer prints a space after a weeks's calendar. calendar." +"TextCalendar.pryear() no longer prints redundant newline after a year's " +"calendar. Based on patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:6576 +#: ../../../build/NEWS:7200 msgid "" -"`bpo-28255 `__: " -"calendar.TextCalendar.prmonth() no longer prints a space at the start of new" -" line after printing a month's calendar. Patch by Xiang Zhang." +"`bpo-28255 `__: calendar.TextCalendar." +"prmonth() no longer prints a space at the start of new line after printing a " +"month's calendar. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:6580 ../../../build/NEWS:9987 ../../../build/NEWS:13601 +#: ../../../build/NEWS:7204 ../../../build/NEWS:10611 ../../../build/NEWS:14225 msgid "" -"`bpo-20491 `__: The textwrap.TextWrapper" -" class now honors non-breaking spaces. Based on patch by Kaarle Ritvanen." +"`bpo-20491 `__: The textwrap.TextWrapper " +"class now honors non-breaking spaces. Based on patch by Kaarle Ritvanen." msgstr "" -#: ../../../build/NEWS:6583 ../../../build/NEWS:9990 ../../../build/NEWS:13604 +#: ../../../build/NEWS:7207 ../../../build/NEWS:10614 ../../../build/NEWS:14228 msgid "" "`bpo-28353 `__: os.fwalk() no longer " "fails on broken links." msgstr "" -#: ../../../build/NEWS:6585 ../../../build/NEWS:9992 +#: ../../../build/NEWS:7209 ../../../build/NEWS:10616 msgid "" "`bpo-28430 `__: Fix iterator of C " -"implemented asyncio.Future doesn't accept non-None value is passed to " -"it.send(val)." +"implemented asyncio.Future doesn't accept non-None value is passed to it." +"send(val)." msgstr "" -#: ../../../build/NEWS:6588 ../../../build/NEWS:9995 +#: ../../../build/NEWS:7212 ../../../build/NEWS:10619 msgid "" "`bpo-27025 `__: Generated names for " "Tkinter widgets now start by the \"!\" prefix for readability." msgstr "" -#: ../../../build/NEWS:6591 ../../../build/NEWS:9998 ../../../build/NEWS:13606 +#: ../../../build/NEWS:7215 ../../../build/NEWS:10622 ../../../build/NEWS:14230 msgid "" -"`bpo-25464 `__: Fixed " -"HList.header_exists() in tkinter.tix module by addin a workaround to Tix " -"library bug." +"`bpo-25464 `__: Fixed HList." +"header_exists() in tkinter.tix module by addin a workaround to Tix library " +"bug." msgstr "" -#: ../../../build/NEWS:6594 ../../../build/NEWS:10001 +#: ../../../build/NEWS:7218 ../../../build/NEWS:10625 msgid "" -"`bpo-28488 `__: shutil.make_archive() no" -" longer adds entry \"./\" to ZIP archive." +"`bpo-28488 `__: shutil.make_archive() no " +"longer adds entry \"./\" to ZIP archive." msgstr "" -#: ../../../build/NEWS:6596 ../../../build/NEWS:10003 +#: ../../../build/NEWS:7220 ../../../build/NEWS:10627 msgid "" "`bpo-25953 `__: re.sub() now raises an " "error for invalid numerical group reference in replacement template even if " @@ -12861,65 +13944,65 @@ msgid "" "Based on patch by SilentGhost." msgstr "" -#: ../../../build/NEWS:6601 +#: ../../../build/NEWS:7225 msgid "" "`bpo-28469 `__: timeit now uses the " "sequence 1, 2, 5, 10, 20, 50,... instead of 1, 10, 100,... for autoranging." msgstr "" -#: ../../../build/NEWS:6604 +#: ../../../build/NEWS:7228 msgid "" "`bpo-28115 `__: Command-line interface " "of the zipfile module now uses argparse. Added support of long options." msgstr "" -#: ../../../build/NEWS:6607 ../../../build/NEWS:10008 +#: ../../../build/NEWS:7231 ../../../build/NEWS:10632 msgid "" "`bpo-18219 `__: Optimize csv.DictWriter " "for large number of columns. Patch by Mariatta Wijaya." msgstr "" -#: ../../../build/NEWS:6610 ../../../build/NEWS:10011 +#: ../../../build/NEWS:7234 ../../../build/NEWS:10635 msgid "" "`bpo-28448 `__: Fix C implemented " "asyncio.Future didn't work on Windows." msgstr "" -#: ../../../build/NEWS:6612 +#: ../../../build/NEWS:7236 msgid "" "`bpo-23214 `__: In the \"io\" module, " -"the argument to BufferedReader and BytesIO's read1() methods is now optional" -" and can be -1, matching the BufferedIOBase specification." +"the argument to BufferedReader and BytesIO's read1() methods is now optional " +"and can be -1, matching the BufferedIOBase specification." msgstr "" -#: ../../../build/NEWS:6616 ../../../build/NEWS:10013 +#: ../../../build/NEWS:7240 ../../../build/NEWS:10637 msgid "" "`bpo-28480 `__: Fix error building " "socket module when multithreading is disabled." msgstr "" -#: ../../../build/NEWS:6619 +#: ../../../build/NEWS:7243 msgid "" -"`bpo-28240 `__: timeit: remove " -"``-c/--clock`` and ``-t/--time`` command line options which were deprecated " -"since Python 3.3." +"`bpo-28240 `__: timeit: remove ``-c/--" +"clock`` and ``-t/--time`` command line options which were deprecated since " +"Python 3.3." msgstr "" -#: ../../../build/NEWS:6622 +#: ../../../build/NEWS:7246 msgid "" "`bpo-28240 `__: timeit now repeats the " "benchmarks 5 times instead of only 3 to make benchmarks more reliable." msgstr "" -#: ../../../build/NEWS:6625 +#: ../../../build/NEWS:7249 msgid "" "`bpo-28240 `__: timeit autorange now " "uses a single loop iteration if the benchmark takes less than 10 seconds, " -"instead of 10 iterations. \"python3 -m timeit -s 'import time' " -"'time.sleep(1)'\" now takes 4 seconds instead of 40 seconds." +"instead of 10 iterations. \"python3 -m timeit -s 'import time' 'time." +"sleep(1)'\" now takes 4 seconds instead of 40 seconds." msgstr "" -#: ../../../build/NEWS:6630 +#: ../../../build/NEWS:7254 msgid "" "Distutils.sdist now looks for README and setup.py files with case " "sensitivity. This behavior matches that found in Setuptools 6.0 and later. " @@ -12927,449 +14010,417 @@ msgid "" "rationale." msgstr "" -#: ../../../build/NEWS:6635 +#: ../../../build/NEWS:7259 msgid "" "`bpo-24452 `__: Make webbrowser support " "Chrome on Mac OS X. Patch by Ned Batchelder." msgstr "" -#: ../../../build/NEWS:6638 ../../../build/NEWS:10018 -#: ../../../build/NEWS:13613 +#: ../../../build/NEWS:7262 ../../../build/NEWS:10642 ../../../build/NEWS:14237 msgid "" -"`bpo-20766 `__: Fix references leaked by" -" pdb in the handling of SIGINT handlers." +"`bpo-20766 `__: Fix references leaked by " +"pdb in the handling of SIGINT handlers." msgstr "" -#: ../../../build/NEWS:6641 ../../../build/NEWS:10134 +#: ../../../build/NEWS:7265 ../../../build/NEWS:10758 msgid "" -"`bpo-27998 `__: Fixed bytes path support" -" in os.scandir() on Windows. Patch by Eryk Sun." +"`bpo-27998 `__: Fixed bytes path support " +"in os.scandir() on Windows. Patch by Eryk Sun." msgstr "" -#: ../../../build/NEWS:6644 ../../../build/NEWS:10137 +#: ../../../build/NEWS:7268 ../../../build/NEWS:10761 msgid "" "`bpo-28317 `__: The disassembler now " "decodes FORMAT_VALUE argument." msgstr "" -#: ../../../build/NEWS:6646 ../../../build/NEWS:10143 +#: ../../../build/NEWS:7270 ../../../build/NEWS:10767 msgid "" "`bpo-28380 `__: unittest.mock Mock " "autospec functions now properly support assert_called, assert_not_called, " "and assert_called_once." msgstr "" -#: ../../../build/NEWS:6649 ../../../build/NEWS:10148 +#: ../../../build/NEWS:7273 ../../../build/NEWS:10772 msgid "" -"`bpo-28229 `__: lzma module now supports" -" pathlib." +"`bpo-28229 `__: lzma module now supports " +"pathlib." msgstr "" -#: ../../../build/NEWS:6651 ../../../build/NEWS:10150 -#: ../../../build/NEWS:13620 +#: ../../../build/NEWS:7275 ../../../build/NEWS:10774 ../../../build/NEWS:14244 msgid "" "`bpo-28321 `__: Fixed writing non-BMP " "characters with binary format in plistlib." msgstr "" -#: ../../../build/NEWS:6654 ../../../build/NEWS:10153 +#: ../../../build/NEWS:7278 ../../../build/NEWS:10777 msgid "" "`bpo-28225 `__: bz2 module now supports " "pathlib. Initial patch by Ethan Furman." msgstr "" -#: ../../../build/NEWS:6657 ../../../build/NEWS:10156 +#: ../../../build/NEWS:7281 ../../../build/NEWS:10780 msgid "" "`bpo-28227 `__: gzip now supports " "pathlib. Patch by Ethan Furman." msgstr "" -#: ../../../build/NEWS:6659 +#: ../../../build/NEWS:7283 msgid "" "`bpo-28332 `__: Deprecated silent " "truncations in socket.htons and socket.ntohs. Original patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:6662 ../../../build/NEWS:10158 +#: ../../../build/NEWS:7286 ../../../build/NEWS:10782 msgid "" "`bpo-27358 `__: Optimized merging var-" -"keyword arguments and improved error message when passing a non-mapping as a" -" var-keyword argument." +"keyword arguments and improved error message when passing a non-mapping as a " +"var-keyword argument." msgstr "" -#: ../../../build/NEWS:6665 ../../../build/NEWS:10161 +#: ../../../build/NEWS:7289 ../../../build/NEWS:10785 msgid "" "`bpo-28257 `__: Improved error message " "when passing a non-iterable as a var-positional argument. Added opcode " "BUILD_TUPLE_UNPACK_WITH_CALL." msgstr "" -#: ../../../build/NEWS:6668 ../../../build/NEWS:10164 -#: ../../../build/NEWS:13623 +#: ../../../build/NEWS:7292 ../../../build/NEWS:10788 ../../../build/NEWS:14247 msgid "" "`bpo-28322 `__: Fixed possible crashes " "when unpickle itertools objects from incorrect pickle data. Based on patch " "by John Leitch." msgstr "" -#: ../../../build/NEWS:6671 ../../../build/NEWS:10167 +#: ../../../build/NEWS:7295 ../../../build/NEWS:10791 msgid "" "`bpo-28228 `__: imghdr now supports " "pathlib." msgstr "" -#: ../../../build/NEWS:6673 ../../../build/NEWS:10169 +#: ../../../build/NEWS:7297 ../../../build/NEWS:10793 msgid "" "`bpo-28226 `__: compileall now supports " "pathlib." msgstr "" -#: ../../../build/NEWS:6675 ../../../build/NEWS:10171 +#: ../../../build/NEWS:7299 ../../../build/NEWS:10795 msgid "" -"`bpo-28314 `__: Fix function declaration" -" (C flags) for the getiterator() method of xml.etree.ElementTree.Element." +"`bpo-28314 `__: Fix function declaration " +"(C flags) for the getiterator() method of xml.etree.ElementTree.Element." msgstr "" -#: ../../../build/NEWS:6678 ../../../build/NEWS:10174 +#: ../../../build/NEWS:7302 ../../../build/NEWS:10798 msgid "" "`bpo-28148 `__: Stop using localtime() " "and gmtime() in the time module." msgstr "" -#: ../../../build/NEWS:6680 ../../../build/NEWS:10176 +#: ../../../build/NEWS:7304 ../../../build/NEWS:10800 msgid "" "Introduced platform independent _PyTime_localtime API that is similar to " "POSIX localtime_r, but available on all platforms. Patch by Ed Schouten." msgstr "" -#: ../../../build/NEWS:6683 ../../../build/NEWS:10179 -#: ../../../build/NEWS:13632 +#: ../../../build/NEWS:7307 ../../../build/NEWS:10803 ../../../build/NEWS:14256 msgid "" -"`bpo-28253 `__: Fixed calendar functions" -" for extreme months: 0001-01 and 9999-12." +"`bpo-28253 `__: Fixed calendar functions " +"for extreme months: 0001-01 and 9999-12." msgstr "" -#: ../../../build/NEWS:6686 ../../../build/NEWS:10182 -#: ../../../build/NEWS:13635 +#: ../../../build/NEWS:7310 ../../../build/NEWS:10806 ../../../build/NEWS:14259 msgid "" "Methods itermonthdays() and itermonthdays2() are reimplemented so that they " "don't call itermonthdates() which can cause datetime.date under/overflow." msgstr "" -#: ../../../build/NEWS:6690 ../../../build/NEWS:10186 -#: ../../../build/NEWS:13639 +#: ../../../build/NEWS:7314 ../../../build/NEWS:10810 ../../../build/NEWS:14263 msgid "" -"`bpo-28275 `__: Fixed possible use after" -" free in the decompress() methods of the LZMADecompressor and " -"BZ2Decompressor classes. Original patch by John Leitch." +"`bpo-28275 `__: Fixed possible use after " +"free in the decompress() methods of the LZMADecompressor and BZ2Decompressor " +"classes. Original patch by John Leitch." msgstr "" -#: ../../../build/NEWS:6694 ../../../build/NEWS:10190 -#: ../../../build/NEWS:13643 +#: ../../../build/NEWS:7318 ../../../build/NEWS:10814 ../../../build/NEWS:14267 msgid "" "`bpo-27897 `__: Fixed possible crash in " "sqlite3.Connection.create_collation() if pass invalid string-like object as " "a name. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:6697 ../../../build/NEWS:10193 +#: ../../../build/NEWS:7321 ../../../build/NEWS:10817 msgid "" -"`bpo-18844 `__: random.choices() now has" -" k as a keyword-only argument to improve the readability of common cases and" -" come into line with the signature used in other languages." +"`bpo-18844 `__: random.choices() now has " +"k as a keyword-only argument to improve the readability of common cases and " +"come into line with the signature used in other languages." msgstr "" -#: ../../../build/NEWS:6701 ../../../build/NEWS:10197 -#: ../../../build/NEWS:13646 +#: ../../../build/NEWS:7325 ../../../build/NEWS:10821 ../../../build/NEWS:14270 msgid "" "`bpo-18893 `__: Fix invalid exception " "handling in Lib/ctypes/macholib/dyld.py. Patch by Madison May." msgstr "" -#: ../../../build/NEWS:6704 ../../../build/NEWS:10200 +#: ../../../build/NEWS:7328 ../../../build/NEWS:10824 msgid "" -"`bpo-27611 `__: Fixed support of default" -" root window in the tkinter.tix module. Added the master parameter in the " +"`bpo-27611 `__: Fixed support of default " +"root window in the tkinter.tix module. Added the master parameter in the " "DisplayStyle constructor." msgstr "" -#: ../../../build/NEWS:6707 ../../../build/NEWS:10203 -#: ../../../build/NEWS:13651 +#: ../../../build/NEWS:7331 ../../../build/NEWS:10827 ../../../build/NEWS:14275 msgid "" -"`bpo-27348 `__: In the traceback module," -" restore the formatting of exception messages like \"Exception: None\". " -"This fixes a regression introduced in 3.5a2." +"`bpo-27348 `__: In the traceback module, " +"restore the formatting of exception messages like \"Exception: None\". This " +"fixes a regression introduced in 3.5a2." msgstr "" -#: ../../../build/NEWS:6711 ../../../build/NEWS:10207 -#: ../../../build/NEWS:13655 +#: ../../../build/NEWS:7335 ../../../build/NEWS:10831 ../../../build/NEWS:14279 msgid "" -"`bpo-25651 `__: Allow falsy values to be" -" used for msg parameter of subTest()." +"`bpo-25651 `__: Allow falsy values to be " +"used for msg parameter of subTest()." msgstr "" -#: ../../../build/NEWS:6713 ../../../build/NEWS:10209 +#: ../../../build/NEWS:7337 ../../../build/NEWS:10833 msgid "" -"`bpo-27778 `__: Fix a memory leak in " -"os.getrandom() when the getrandom() is interrupted by a signal and a signal " +"`bpo-27778 `__: Fix a memory leak in os." +"getrandom() when the getrandom() is interrupted by a signal and a signal " "handler raises a Python exception." msgstr "" -#: ../../../build/NEWS:6716 ../../../build/NEWS:10212 +#: ../../../build/NEWS:7340 ../../../build/NEWS:10836 msgid "" "`bpo-28200 `__: Fix memory leak on " "Windows in the os module (fix path_converter() function)." msgstr "" -#: ../../../build/NEWS:6719 ../../../build/NEWS:10215 +#: ../../../build/NEWS:7343 ../../../build/NEWS:10839 msgid "" "`bpo-25400 `__: RobotFileParser now " "correctly returns default values for crawl_delay and request_rate. Initial " "patch by Peter Wirtz." msgstr "" -#: ../../../build/NEWS:6722 ../../../build/NEWS:10218 -#: ../../../build/NEWS:13657 +#: ../../../build/NEWS:7346 ../../../build/NEWS:10842 ../../../build/NEWS:14281 msgid "" "`bpo-27932 `__: Prevent memory leak in " "win32_ver()." msgstr "" -#: ../../../build/NEWS:6724 ../../../build/NEWS:10220 -#: ../../../build/NEWS:13659 +#: ../../../build/NEWS:7348 ../../../build/NEWS:10844 ../../../build/NEWS:14283 msgid "Fix UnboundLocalError in socket._sendfile_use_sendfile." msgstr "" -#: ../../../build/NEWS:6726 ../../../build/NEWS:10222 -#: ../../../build/NEWS:13661 +#: ../../../build/NEWS:7350 ../../../build/NEWS:10846 ../../../build/NEWS:14285 msgid "" "`bpo-28075 `__: Check for " "ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch by Eryk " "Sun." msgstr "" -#: ../../../build/NEWS:6729 ../../../build/NEWS:10225 +#: ../../../build/NEWS:7353 ../../../build/NEWS:10849 msgid "" "`bpo-22493 `__: Warning message emitted " "by using inline flags in the middle of regular expression now contains a " "(truncated) regex pattern. Patch by Tim Graham." msgstr "" -#: ../../../build/NEWS:6733 ../../../build/NEWS:10229 -#: ../../../build/NEWS:13664 +#: ../../../build/NEWS:7357 ../../../build/NEWS:10853 ../../../build/NEWS:14288 msgid "" -"`bpo-25270 `__: Prevent " -"codecs.escape_encode() from raising SystemError when an empty bytestring is " -"passed." +"`bpo-25270 `__: Prevent codecs." +"escape_encode() from raising SystemError when an empty bytestring is passed." msgstr "" -#: ../../../build/NEWS:6736 ../../../build/NEWS:10232 -#: ../../../build/NEWS:13667 +#: ../../../build/NEWS:7360 ../../../build/NEWS:10856 ../../../build/NEWS:14291 msgid "" "`bpo-28181 `__: Get antigravity over " "HTTPS. Patch by Kaartic Sivaraam." msgstr "" -#: ../../../build/NEWS:6738 ../../../build/NEWS:10234 -#: ../../../build/NEWS:13669 +#: ../../../build/NEWS:7362 ../../../build/NEWS:10858 ../../../build/NEWS:14293 msgid "" "`bpo-25895 `__: Enable WebSocket URL " "schemes in urllib.parse.urljoin. Patch by Gergely Imreh and Markus " "Holtermann." msgstr "" -#: ../../../build/NEWS:6741 ../../../build/NEWS:10237 +#: ../../../build/NEWS:7365 ../../../build/NEWS:10861 msgid "" "`bpo-28114 `__: Fix a crash in " "parse_envlist() when env contains byte strings. Patch by Eryk Sun." msgstr "" -#: ../../../build/NEWS:6744 ../../../build/NEWS:10240 -#: ../../../build/NEWS:13672 +#: ../../../build/NEWS:7368 ../../../build/NEWS:10864 ../../../build/NEWS:14296 msgid "" "`bpo-27599 `__: Fixed buffer overrun in " "binascii.b2a_qp() and binascii.a2b_qp()." msgstr "" -#: ../../../build/NEWS:6747 ../../../build/NEWS:10243 -#: ../../../build/NEWS:13873 +#: ../../../build/NEWS:7371 ../../../build/NEWS:10867 ../../../build/NEWS:14497 msgid "" "`bpo-27906 `__: Fix socket accept " "exhaustion during high TCP traffic. Patch by Kevin Conway." msgstr "" -#: ../../../build/NEWS:6750 ../../../build/NEWS:10246 -#: ../../../build/NEWS:13876 +#: ../../../build/NEWS:7374 ../../../build/NEWS:10870 ../../../build/NEWS:14500 msgid "" -"`bpo-28174 `__: Handle when SO_REUSEPORT" -" isn't properly supported. Patch by Seth Michael Larson." +"`bpo-28174 `__: Handle when SO_REUSEPORT " +"isn't properly supported. Patch by Seth Michael Larson." msgstr "" -#: ../../../build/NEWS:6753 ../../../build/NEWS:10249 -#: ../../../build/NEWS:13879 +#: ../../../build/NEWS:7377 ../../../build/NEWS:10873 ../../../build/NEWS:14503 msgid "" -"`bpo-26654 `__: Inspect " -"functools.partial in asyncio.Handle.__repr__. Patch by iceboy." +"`bpo-26654 `__: Inspect functools." +"partial in asyncio.Handle.__repr__. Patch by iceboy." msgstr "" -#: ../../../build/NEWS:6756 ../../../build/NEWS:10252 -#: ../../../build/NEWS:13882 +#: ../../../build/NEWS:7380 ../../../build/NEWS:10876 ../../../build/NEWS:14506 msgid "" "`bpo-26909 `__: Fix slow pipes IO in " "asyncio. Patch by INADA Naoki." msgstr "" -#: ../../../build/NEWS:6758 ../../../build/NEWS:10254 -#: ../../../build/NEWS:13884 +#: ../../../build/NEWS:7382 ../../../build/NEWS:10878 ../../../build/NEWS:14508 msgid "" "`bpo-28176 `__: Fix callbacks race in " "asyncio.SelectorLoop.sock_connect." msgstr "" -#: ../../../build/NEWS:6760 ../../../build/NEWS:10256 -#: ../../../build/NEWS:13886 +#: ../../../build/NEWS:7384 ../../../build/NEWS:10880 ../../../build/NEWS:14510 msgid "" "`bpo-27759 `__: Fix selectors " "incorrectly retain invalid file descriptors. Patch by Mark Williams." msgstr "" -#: ../../../build/NEWS:6763 +#: ../../../build/NEWS:7387 msgid "" -"`bpo-28325 `__: Remove vestigial MacOS 9" -" macurl2path module and its tests." +"`bpo-28325 `__: Remove vestigial MacOS 9 " +"macurl2path module and its tests." msgstr "" -#: ../../../build/NEWS:6765 ../../../build/NEWS:10259 -#: ../../../build/NEWS:13889 +#: ../../../build/NEWS:7389 ../../../build/NEWS:10883 ../../../build/NEWS:14513 msgid "" "`bpo-28368 `__: Refuse monitoring " -"processes if the child watcher has no loop attached. Patch by Vincent " -"Michel." +"processes if the child watcher has no loop attached. Patch by Vincent Michel." msgstr "" -#: ../../../build/NEWS:6768 ../../../build/NEWS:10262 -#: ../../../build/NEWS:13892 +#: ../../../build/NEWS:7392 ../../../build/NEWS:10886 ../../../build/NEWS:14516 msgid "" "`bpo-28369 `__: Raise RuntimeError when " "transport's FD is used with add_reader, add_writer, etc." msgstr "" -#: ../../../build/NEWS:6771 ../../../build/NEWS:10265 -#: ../../../build/NEWS:13895 +#: ../../../build/NEWS:7395 ../../../build/NEWS:10889 ../../../build/NEWS:14519 msgid "" -"`bpo-28370 `__: Speedup " -"asyncio.StreamReader.readexactly. Patch by Коренберг Марк." +"`bpo-28370 `__: Speedup asyncio." +"StreamReader.readexactly. Patch by Коренберг Марк." msgstr "" -#: ../../../build/NEWS:6774 ../../../build/NEWS:10268 -#: ../../../build/NEWS:13898 +#: ../../../build/NEWS:7398 ../../../build/NEWS:10892 ../../../build/NEWS:14522 msgid "" "`bpo-28371 `__: Deprecate passing " "asyncio.Handles to run_in_executor." msgstr "" -#: ../../../build/NEWS:6776 ../../../build/NEWS:10270 -#: ../../../build/NEWS:13900 +#: ../../../build/NEWS:7400 ../../../build/NEWS:10894 ../../../build/NEWS:14524 msgid "" "`bpo-28372 `__: Fix asyncio to support " "formatting of non-python coroutines." msgstr "" -#: ../../../build/NEWS:6778 ../../../build/NEWS:10272 -#: ../../../build/NEWS:13902 +#: ../../../build/NEWS:7402 ../../../build/NEWS:10896 ../../../build/NEWS:14526 msgid "" "`bpo-28399 `__: Remove UNIX socket from " "FS before binding. Patch by Коренберг Марк." msgstr "" -#: ../../../build/NEWS:6781 ../../../build/NEWS:10275 -#: ../../../build/NEWS:13905 +#: ../../../build/NEWS:7405 ../../../build/NEWS:10899 ../../../build/NEWS:14529 msgid "" "`bpo-27972 `__: Prohibit Tasks to await " "on themselves." msgstr "" -#: ../../../build/NEWS:6783 ../../../build/NEWS:9795 +#: ../../../build/NEWS:7407 ../../../build/NEWS:10419 msgid "" -"`bpo-24142 `__: Reading a corrupt config" -" file left configparser in an invalid state. Original patch by Florian Höch." +"`bpo-24142 `__: Reading a corrupt config " +"file left configparser in an invalid state. Original patch by Florian Höch." msgstr "" -#: ../../../build/NEWS:6786 ../../../build/NEWS:9142 +#: ../../../build/NEWS:7410 ../../../build/NEWS:9766 msgid "" "`bpo-29581 `__: ABCMeta.__new__ now " "accepts ``**kwargs``, allowing abstract base classes to use keyword " "parameters in __init_subclass__. Patch by Nate Soares." msgstr "" -#: ../../../build/NEWS:6790 ../../../build/NEWS:8308 +#: ../../../build/NEWS:7414 ../../../build/NEWS:8932 msgid "" "`bpo-25532 `__: inspect.unwrap() will " "now only try to unwrap an object sys.getrecursionlimit() times, to protect " "against objects which create a new object on every attribute access." msgstr "" -#: ../../../build/NEWS:6794 ../../../build/NEWS:9276 +#: ../../../build/NEWS:7418 ../../../build/NEWS:9900 msgid "" -"`bpo-30177 `__: " -"path.resolve(strict=False) no longer cuts the path after the first element " -"not present in the filesystem. Patch by Antoine Pietri." +"`bpo-30177 `__: path." +"resolve(strict=False) no longer cuts the path after the first element not " +"present in the filesystem. Patch by Antoine Pietri." msgstr "" -#: ../../../build/NEWS:6800 ../../../build/NEWS:8744 +#: ../../../build/NEWS:7424 ../../../build/NEWS:9368 msgid "" "`bpo-31294 `__: Fix incomplete code " "snippet in the ZeroMQSocketListener and ZeroMQSocketHandler examples and " "adapt them to Python 3." msgstr "" -#: ../../../build/NEWS:6803 ../../../build/NEWS:8747 +#: ../../../build/NEWS:7427 ../../../build/NEWS:9371 msgid "" -"`bpo-21649 `__: Add RFC 7525 and Mozilla" -" server side TLS links to SSL documentation." +"`bpo-21649 `__: Add RFC 7525 and Mozilla " +"server side TLS links to SSL documentation." msgstr "" -#: ../../../build/NEWS:6806 +#: ../../../build/NEWS:7430 msgid "" "`bpo-31128 `__: Allow the pydoc server " "to bind to arbitrary hostnames." msgstr "" -#: ../../../build/NEWS:6808 ../../../build/NEWS:8750 +#: ../../../build/NEWS:7432 ../../../build/NEWS:9374 msgid "" "`bpo-30803 `__: Clarify doc on truth " "value testing. Original patch by Peter Thomassen." msgstr "" -#: ../../../build/NEWS:6811 ../../../build/NEWS:9331 ../../../build/NEWS:13290 +#: ../../../build/NEWS:7435 ../../../build/NEWS:9955 ../../../build/NEWS:13914 msgid "" "`bpo-30176 `__: Add missing attribute " "related constants in curses documentation." msgstr "" -#: ../../../build/NEWS:6814 ../../../build/NEWS:9334 +#: ../../../build/NEWS:7438 ../../../build/NEWS:9958 msgid "" -"`bpo-30052 `__: the link targets for " -":func:`bytes` and :func:`bytearray` are now their respective type " -"definitions, rather than the corresponding builtin function entries. Use " -":ref:`bytes ` and :ref:`bytearray ` to reference" -" the latter." +"`bpo-30052 `__: the link targets for :" +"func:`bytes` and :func:`bytearray` are now their respective type " +"definitions, rather than the corresponding builtin function entries. Use :" +"ref:`bytes ` and :ref:`bytearray ` to reference " +"the latter." msgstr "" -#: ../../../build/NEWS:6819 ../../../build/NEWS:9339 +#: ../../../build/NEWS:7443 ../../../build/NEWS:9963 msgid "" "In order to ensure this and future cross-reference updates are applied " -"automatically, the daily documentation builds now disable the default output" -" caching features in Sphinx." +"automatically, the daily documentation builds now disable the default output " +"caching features in Sphinx." msgstr "" -#: ../../../build/NEWS:6823 ../../../build/NEWS:9343 ../../../build/NEWS:13293 +#: ../../../build/NEWS:7447 ../../../build/NEWS:9967 ../../../build/NEWS:13917 msgid "" -"`bpo-26985 `__: Add missing info of code" -" object in inspect documentation." +"`bpo-26985 `__: Add missing info of code " +"object in inspect documentation." msgstr "" -#: ../../../build/NEWS:6825 +#: ../../../build/NEWS:7449 msgid "" "`bpo-19824 `__: Improve the " "documentation for, and links to, template strings by emphasizing their " @@ -13378,103 +14429,103 @@ msgid "" "`__)" msgstr "" -#: ../../../build/NEWS:6829 ../../../build/NEWS:9652 ../../../build/NEWS:13295 +#: ../../../build/NEWS:7453 ../../../build/NEWS:10276 ../../../build/NEWS:13919 msgid "" "`bpo-28929 `__: Link the documentation " "to its source file on GitHub." msgstr "" -#: ../../../build/NEWS:6831 ../../../build/NEWS:9654 ../../../build/NEWS:13297 +#: ../../../build/NEWS:7455 ../../../build/NEWS:10278 ../../../build/NEWS:13921 msgid "" "`bpo-25008 `__: Document smtpd.py as " "effectively deprecated and add a pointer to aiosmtpd, a third-party asyncio-" "based replacement." msgstr "" -#: ../../../build/NEWS:6834 ../../../build/NEWS:9657 ../../../build/NEWS:13300 +#: ../../../build/NEWS:7458 ../../../build/NEWS:10281 ../../../build/NEWS:13924 msgid "" "`bpo-26355 `__: Add canonical header " -"link on each page to corresponding major version of the documentation. Patch" -" by Matthias Bussonnier." +"link on each page to corresponding major version of the documentation. Patch " +"by Matthias Bussonnier." msgstr "" -#: ../../../build/NEWS:6837 ../../../build/NEWS:9660 ../../../build/NEWS:13303 +#: ../../../build/NEWS:7461 ../../../build/NEWS:10284 ../../../build/NEWS:13927 msgid "" "`bpo-29349 `__: Fix Python 2 syntax in " "code for building the documentation." msgstr "" -#: ../../../build/NEWS:6839 +#: ../../../build/NEWS:7463 msgid "" -"`bpo-23722 `__: The data model reference" -" and the porting section in the 3.6 What's New guide now cover the " -"additional ``__classcell__`` handling needed for custom metaclasses to fully" -" support PEP 487 and zero-argument ``super()``." +"`bpo-23722 `__: The data model reference " +"and the porting section in the 3.6 What's New guide now cover the additional " +"``__classcell__`` handling needed for custom metaclasses to fully support " +"PEP 487 and zero-argument ``super()``." msgstr "" -#: ../../../build/NEWS:6844 ../../../build/NEWS:9910 ../../../build/NEWS:13973 +#: ../../../build/NEWS:7468 ../../../build/NEWS:10534 ../../../build/NEWS:14597 msgid "" "`bpo-28513 `__: Documented command-line " "interface of zipfile." msgstr "" -#: ../../../build/NEWS:6849 +#: ../../../build/NEWS:7473 msgid "" -"`bpo-29639 `__: test.support.HOST is now" -" \"localhost\", a new HOSTv4 constant has been added for your ``127.0.0.1`` " +"`bpo-29639 `__: test.support.HOST is now " +"\"localhost\", a new HOSTv4 constant has been added for your ``127.0.0.1`` " "needs, similar to the existing HOSTv6 constant." msgstr "" -#: ../../../build/NEWS:6853 ../../../build/NEWS:8756 +#: ../../../build/NEWS:7477 ../../../build/NEWS:9380 msgid "" "`bpo-31320 `__: Silence traceback in " "test_ssl" msgstr "" -#: ../../../build/NEWS:6855 +#: ../../../build/NEWS:7479 msgid "" "`bpo-31346 `__: Prefer " "PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER protocols for SSLContext." msgstr "" -#: ../../../build/NEWS:6858 ../../../build/NEWS:8758 +#: ../../../build/NEWS:7482 ../../../build/NEWS:9382 msgid "" "`bpo-25674 `__: Remove sha256.tbs-" "internet.com ssl test" msgstr "" -#: ../../../build/NEWS:6860 ../../../build/NEWS:8760 +#: ../../../build/NEWS:7484 ../../../build/NEWS:9384 msgid "" "`bpo-30715 `__: Address ALPN callback " "changes for OpenSSL 1.1.0f. The latest version behaves like OpenSSL 1.0.2 " "and no longer aborts handshake." msgstr "" -#: ../../../build/NEWS:6863 ../../../build/NEWS:8763 +#: ../../../build/NEWS:7487 ../../../build/NEWS:9387 msgid "" -"`bpo-30822 `__: regrtest: Exclude tzdata" -" from regrtest --all. When running the test suite using --use=all / -u all, " +"`bpo-30822 `__: regrtest: Exclude tzdata " +"from regrtest --all. When running the test suite using --use=all / -u all, " "exclude tzdata since it makes test_datetime too slow (15-20 min on some " -"buildbots) which then times out on some buildbots. Fix also regrtest command" -" line parser to allow passing -u extralargefile to run test_zipfile64." +"buildbots) which then times out on some buildbots. Fix also regrtest command " +"line parser to allow passing -u extralargefile to run test_zipfile64." msgstr "" -#: ../../../build/NEWS:6869 ../../../build/NEWS:8360 +#: ../../../build/NEWS:7493 ../../../build/NEWS:8984 msgid "" "`bpo-30695 `__: Add the " "`set_nomemory(start, stop)` and `remove_mem_hooks()` functions to the " "_testcapi module." msgstr "" -#: ../../../build/NEWS:6872 ../../../build/NEWS:9354 ../../../build/NEWS:13327 +#: ../../../build/NEWS:7496 ../../../build/NEWS:9978 ../../../build/NEWS:13951 msgid "" -"`bpo-30357 `__: test_thread: setUp() now" -" uses support.threading_setup() and support.threading_cleanup() to wait " -"until threads complete to avoid random side effects on following tests. " -"Initial patch written by Grzegorz Grzywacz." +"`bpo-30357 `__: test_thread: setUp() now " +"uses support.threading_setup() and support.threading_cleanup() to wait until " +"threads complete to avoid random side effects on following tests. Initial " +"patch written by Grzegorz Grzywacz." msgstr "" -#: ../../../build/NEWS:6877 ../../../build/NEWS:9359 ../../../build/NEWS:13336 +#: ../../../build/NEWS:7501 ../../../build/NEWS:9983 ../../../build/NEWS:13960 msgid "" "`bpo-30197 `__: Enhanced functions " "swap_attr() and swap_item() in the test.support module. They now work when " @@ -13483,161 +14534,160 @@ msgid "" "to the target of the \"as\" clause, if there is one." msgstr "" -#: ../../../build/NEWS:6883 +#: ../../../build/NEWS:7507 msgid "" "`bpo-24932 `__: Use proper command line " "parsing in _testembed" msgstr "" -#: ../../../build/NEWS:6885 ../../../build/NEWS:9675 +#: ../../../build/NEWS:7509 ../../../build/NEWS:10299 msgid "" "`bpo-28950 `__: Disallow -j0 to be " "combined with -T/-l in regrtest command line arguments." msgstr "" -#: ../../../build/NEWS:6888 ../../../build/NEWS:9678 +#: ../../../build/NEWS:7512 ../../../build/NEWS:10302 msgid "" "`bpo-28683 `__: Fix the tests that " "bind() a unix socket and raise PermissionError on Android for a non-root " "user." msgstr "" -#: ../../../build/NEWS:6891 +#: ../../../build/NEWS:7515 msgid "" "`bpo-26936 `__: Fix the test_socket " -"failures on Android - getservbyname(), getservbyport() and getaddrinfo() are" -" broken on some Android API levels." +"failures on Android - getservbyname(), getservbyport() and getaddrinfo() are " +"broken on some Android API levels." msgstr "" -#: ../../../build/NEWS:6894 ../../../build/NEWS:9915 ../../../build/NEWS:13981 +#: ../../../build/NEWS:7518 ../../../build/NEWS:10539 ../../../build/NEWS:14605 msgid "" "`bpo-28666 `__: Now test.support.rmtree " "is able to remove unwritable or unreadable directories." msgstr "" -#: ../../../build/NEWS:6897 ../../../build/NEWS:9918 ../../../build/NEWS:13984 +#: ../../../build/NEWS:7521 ../../../build/NEWS:10542 ../../../build/NEWS:14608 msgid "" "`bpo-23839 `__: Various caches now are " "cleared before running every test file." msgstr "" -#: ../../../build/NEWS:6899 ../../../build/NEWS:10050 +#: ../../../build/NEWS:7523 ../../../build/NEWS:10674 msgid "" "`bpo-26944 `__: Fix test_posix for " "Android where 'id -G' is entirely wrong or missing the effective gid." msgstr "" -#: ../../../build/NEWS:6902 ../../../build/NEWS:10053 -#: ../../../build/NEWS:13986 +#: ../../../build/NEWS:7526 ../../../build/NEWS:10677 ../../../build/NEWS:14610 msgid "" -"`bpo-28409 `__: regrtest: fix the parser" -" of command line arguments." +"`bpo-28409 `__: regrtest: fix the parser " +"of command line arguments." msgstr "" -#: ../../../build/NEWS:6904 ../../../build/NEWS:10324 +#: ../../../build/NEWS:7528 ../../../build/NEWS:10948 msgid "" -"`bpo-28217 `__: Adds _testconsole module" -" to test console input." +"`bpo-28217 `__: Adds _testconsole module " +"to test console input." msgstr "" -#: ../../../build/NEWS:6906 ../../../build/NEWS:9681 +#: ../../../build/NEWS:7530 ../../../build/NEWS:10305 msgid "" -"`bpo-26939 `__: Add the " -"support.setswitchinterval() function to fix test_functools hanging on the " -"Android armv7 qemu emulator." +"`bpo-26939 `__: Add the support." +"setswitchinterval() function to fix test_functools hanging on the Android " +"armv7 qemu emulator." msgstr "" -#: ../../../build/NEWS:6912 +#: ../../../build/NEWS:7536 msgid "" "`bpo-31354 `__: Allow --with-lto to be " "used on all builds, not just `make profile-opt`." msgstr "" -#: ../../../build/NEWS:6915 +#: ../../../build/NEWS:7539 msgid "" "`bpo-31370 `__: Remove support for " "building --without-threads." msgstr "" -#: ../../../build/NEWS:6917 +#: ../../../build/NEWS:7541 msgid "" "This option is not really useful anymore in the 21st century. Removing lots " "of conditional paths allows us to simplify the code base, including in " "difficult to maintain low-level internal code." msgstr "" -#: ../../../build/NEWS:6921 +#: ../../../build/NEWS:7545 msgid "" "`bpo-31341 `__: Per PEP 11, support for " "the IRIX operating system was removed." msgstr "" -#: ../../../build/NEWS:6923 ../../../build/NEWS:8772 +#: ../../../build/NEWS:7547 ../../../build/NEWS:9396 msgid "" "`bpo-30854 `__: Fix compile error when " "compiling --without-threads. Patch by Masayuki Yamamoto." msgstr "" -#: ../../../build/NEWS:6926 ../../../build/NEWS:9368 ../../../build/NEWS:13364 +#: ../../../build/NEWS:7550 ../../../build/NEWS:9992 ../../../build/NEWS:13988 msgid "" "`bpo-30687 `__: Locate msbuild.exe on " "Windows when building rather than vcvarsall.bat" msgstr "" -#: ../../../build/NEWS:6929 +#: ../../../build/NEWS:7553 msgid "" "`bpo-20210 `__: Support the *disabled* " "marker in Setup files. Extension modules listed after this marker are not " "built at all, neither by the Makefile nor by setup.py." msgstr "" -#: ../../../build/NEWS:6933 ../../../build/NEWS:9311 +#: ../../../build/NEWS:7557 ../../../build/NEWS:9935 msgid "" "`bpo-29941 `__: Add ``--with-" "assertions`` configure flag to explicitly enable C ``assert()`` checks. " "Defaults to off. ``--with-pydebug`` implies ``--with-assertions``." msgstr "" -#: ../../../build/NEWS:6937 ../../../build/NEWS:9315 +#: ../../../build/NEWS:7561 ../../../build/NEWS:9939 msgid "" "`bpo-28787 `__: Fix out-of-tree builds " "of Python when configured with ``--with--dtrace``." msgstr "" -#: ../../../build/NEWS:6940 ../../../build/NEWS:9318 ../../../build/NEWS:13351 +#: ../../../build/NEWS:7564 ../../../build/NEWS:9942 ../../../build/NEWS:13975 msgid "" "`bpo-29243 `__: Prevent unnecessary " "rebuilding of Python during ``make test``, ``make install`` and some other " "make targets when configured with ``--enable-optimizations``." msgstr "" -#: ../../../build/NEWS:6944 ../../../build/NEWS:9322 ../../../build/NEWS:13355 +#: ../../../build/NEWS:7568 ../../../build/NEWS:9946 ../../../build/NEWS:13979 msgid "" "`bpo-23404 `__: Don't regenerate " "generated files based on file modification time anymore: the action is now " "explicit. Replace ``make touch`` with ``make regen-all``." msgstr "" -#: ../../../build/NEWS:6948 ../../../build/NEWS:9326 ../../../build/NEWS:13359 +#: ../../../build/NEWS:7572 ../../../build/NEWS:9950 ../../../build/NEWS:13983 msgid "" "`bpo-29643 `__: Fix ``--enable-" "optimization`` didn't work." msgstr "" -#: ../../../build/NEWS:6950 ../../../build/NEWS:9687 +#: ../../../build/NEWS:7574 ../../../build/NEWS:10311 msgid "" "`bpo-27593 `__: sys.version and the " "platform module python_build(), python_branch(), and python_revision() " "functions now use git information rather than hg when building from a repo." msgstr "" -#: ../../../build/NEWS:6954 ../../../build/NEWS:9691 +#: ../../../build/NEWS:7578 ../../../build/NEWS:10315 msgid "" -"`bpo-29572 `__: Update Windows build and" -" OS X installers to use OpenSSL 1.0.2k." +"`bpo-29572 `__: Update Windows build and " +"OS X installers to use OpenSSL 1.0.2k." msgstr "" -#: ../../../build/NEWS:6956 +#: ../../../build/NEWS:7580 msgid "" "`bpo-27659 `__: Prohibit implicit C " "function declarations: use ``-Werror=implicit-function-declaration`` when " @@ -13645,217 +14695,211 @@ msgid "" "written by Chi Hsuan Yen." msgstr "" -#: ../../../build/NEWS:6960 +#: ../../../build/NEWS:7584 msgid "" "`bpo-29384 `__: Remove old Be OS helper " "scripts." msgstr "" -#: ../../../build/NEWS:6962 ../../../build/NEWS:9693 +#: ../../../build/NEWS:7586 ../../../build/NEWS:10317 msgid "" "`bpo-26851 `__: Set Android compilation " "and link flags." msgstr "" -#: ../../../build/NEWS:6964 ../../../build/NEWS:9695 +#: ../../../build/NEWS:7588 ../../../build/NEWS:10319 msgid "" -"`bpo-28768 `__: Fix implicit declaration" -" of function _setmode. Patch by Masayuki Yamamoto" +"`bpo-28768 `__: Fix implicit declaration " +"of function _setmode. Patch by Masayuki Yamamoto" msgstr "" -#: ../../../build/NEWS:6967 ../../../build/NEWS:9698 ../../../build/NEWS:14024 +#: ../../../build/NEWS:7591 ../../../build/NEWS:10322 ../../../build/NEWS:14648 msgid "" "`bpo-29080 `__: Removes hard dependency " "on hg.exe from PCBuild/build.bat" msgstr "" -#: ../../../build/NEWS:6969 ../../../build/NEWS:9700 ../../../build/NEWS:14026 +#: ../../../build/NEWS:7593 ../../../build/NEWS:10324 ../../../build/NEWS:14650 msgid "" -"`bpo-23903 `__: Added missed names to " -"PC/python3.def." +"`bpo-23903 `__: Added missed names to PC/" +"python3.def." msgstr "" -#: ../../../build/NEWS:6971 ../../../build/NEWS:9702 +#: ../../../build/NEWS:7595 ../../../build/NEWS:10326 msgid "" "`bpo-28762 `__: lockf() is available on " -"Android API level 24, but the F_LOCK macro is not defined in android-" -"ndk-r13." +"Android API level 24, but the F_LOCK macro is not defined in android-ndk-r13." msgstr "" -#: ../../../build/NEWS:6974 ../../../build/NEWS:9705 +#: ../../../build/NEWS:7598 ../../../build/NEWS:10329 msgid "" "`bpo-28538 `__: Fix the compilation " "error that occurs because if_nameindex() is available on Android API level " "24, but the if_nameindex structure is not defined." msgstr "" -#: ../../../build/NEWS:6978 ../../../build/NEWS:9709 +#: ../../../build/NEWS:7602 ../../../build/NEWS:10333 msgid "" -"`bpo-20211 `__: Do not add the directory" -" for installing C header files and the directory for installing object code " +"`bpo-20211 `__: Do not add the directory " +"for installing C header files and the directory for installing object code " "libraries to the cross compilation search paths. Original patch by Thomas " "Petazzoni." msgstr "" -#: ../../../build/NEWS:6982 ../../../build/NEWS:9713 +#: ../../../build/NEWS:7606 ../../../build/NEWS:10337 msgid "" -"`bpo-28849 `__: Do not define " -"sys.implementation._multiarch on Android." +"`bpo-28849 `__: Do not define sys." +"implementation._multiarch on Android." msgstr "" -#: ../../../build/NEWS:6984 ../../../build/NEWS:9923 ../../../build/NEWS:14028 +#: ../../../build/NEWS:7608 ../../../build/NEWS:10547 ../../../build/NEWS:14652 msgid "" -"`bpo-10656 `__: Fix out-of-tree building" -" on AIX. Patch by Tristan Carel and Michael Haubenwallner." +"`bpo-10656 `__: Fix out-of-tree building " +"on AIX. Patch by Tristan Carel and Michael Haubenwallner." msgstr "" -#: ../../../build/NEWS:6987 ../../../build/NEWS:9926 ../../../build/NEWS:14031 +#: ../../../build/NEWS:7611 ../../../build/NEWS:10550 ../../../build/NEWS:14655 msgid "" "`bpo-26359 `__: Rename --with-" "optimiations to --enable-optimizations." msgstr "" -#: ../../../build/NEWS:6989 ../../../build/NEWS:10041 -#: ../../../build/NEWS:14033 +#: ../../../build/NEWS:7613 ../../../build/NEWS:10665 ../../../build/NEWS:14657 msgid "" "`bpo-28444 `__: Fix missing extensions " "modules when cross compiling." msgstr "" -#: ../../../build/NEWS:6991 ../../../build/NEWS:10043 +#: ../../../build/NEWS:7615 ../../../build/NEWS:10667 msgid "" -"`bpo-28208 `__: Update Windows build and" -" OS X installers to use SQLite 3.14.2." +"`bpo-28208 `__: Update Windows build and " +"OS X installers to use SQLite 3.14.2." msgstr "" -#: ../../../build/NEWS:6993 ../../../build/NEWS:10045 -#: ../../../build/NEWS:14035 +#: ../../../build/NEWS:7617 ../../../build/NEWS:10669 ../../../build/NEWS:14659 msgid "" -"`bpo-28248 `__: Update Windows build and" -" OS X installers to use OpenSSL 1.0.2j." +"`bpo-28248 `__: Update Windows build and " +"OS X installers to use OpenSSL 1.0.2j." msgstr "" -#: ../../../build/NEWS:6995 +#: ../../../build/NEWS:7619 msgid "" -"`bpo-21124 `__: Fix building the _struct" -" module on Cygwin by passing ``NULL`` instead of ``&PyType_Type`` to " +"`bpo-21124 `__: Fix building the _struct " +"module on Cygwin by passing ``NULL`` instead of ``&PyType_Type`` to " "PyVarObject_HEAD_INIT. Patch by Masayuki Yamamoto." msgstr "" -#: ../../../build/NEWS:6999 +#: ../../../build/NEWS:7623 msgid "" "`bpo-13756 `__: Fix building extensions " -"modules on Cygwin. Patch by Roumen Petrov, based on original patch by Jason" -" Tishler." +"modules on Cygwin. Patch by Roumen Petrov, based on original patch by Jason " +"Tishler." msgstr "" -#: ../../../build/NEWS:7002 +#: ../../../build/NEWS:7626 msgid "" "`bpo-21085 `__: Add configure check for " -"siginfo_t.si_band, which Cygwin does not provide. Patch by Masayuki Yamamoto" -" with review and rebase by Erik Bray." +"siginfo_t.si_band, which Cygwin does not provide. Patch by Masayuki Yamamoto " +"with review and rebase by Erik Bray." msgstr "" -#: ../../../build/NEWS:7006 ../../../build/NEWS:10313 -#: ../../../build/NEWS:14037 +#: ../../../build/NEWS:7630 ../../../build/NEWS:10937 ../../../build/NEWS:14661 msgid "" "`bpo-28258 `__: Fixed build with " -"Estonian locale (python-config and distclean targets in Makefile). Patch by" -" Arfrever Frehtes Taifersar Arahesis." +"Estonian locale (python-config and distclean targets in Makefile). Patch by " +"Arfrever Frehtes Taifersar Arahesis." msgstr "" -#: ../../../build/NEWS:7009 ../../../build/NEWS:10316 -#: ../../../build/NEWS:14040 +#: ../../../build/NEWS:7633 ../../../build/NEWS:10940 ../../../build/NEWS:14664 msgid "" "`bpo-26661 `__: setup.py now detects " "system libffi with multiarch wrapper." msgstr "" -#: ../../../build/NEWS:7011 +#: ../../../build/NEWS:7635 msgid "" -"`bpo-27979 `__: A full copy of libffi is" -" no longer bundled for use when building _ctypes on non-OSX UNIX platforms." -" An installed copy of libffi is now required when building _ctypes on such " +"`bpo-27979 `__: A full copy of libffi is " +"no longer bundled for use when building _ctypes on non-OSX UNIX platforms. " +"An installed copy of libffi is now required when building _ctypes on such " "platforms." msgstr "" -#: ../../../build/NEWS:7015 ../../../build/NEWS:10318 -#: ../../../build/NEWS:14045 +#: ../../../build/NEWS:7639 ../../../build/NEWS:10942 ../../../build/NEWS:14669 msgid "" -"`bpo-15819 `__: Remove redundant include" -" search directory option for building outside the source tree." +"`bpo-15819 `__: Remove redundant include " +"search directory option for building outside the source tree." msgstr "" -#: ../../../build/NEWS:7018 ../../../build/NEWS:9928 ../../../build/NEWS:14082 +#: ../../../build/NEWS:7642 ../../../build/NEWS:10552 ../../../build/NEWS:14706 msgid "" "`bpo-28676 `__: Prevent missing " "'getentropy' declaration warning on macOS. Patch by Gareth Rees." msgstr "" -#: ../../../build/NEWS:7024 +#: ../../../build/NEWS:7648 msgid "" "`bpo-31392 `__: Update Windows build to " "use OpenSSL 1.1.0f" msgstr "" -#: ../../../build/NEWS:7026 ../../../build/NEWS:8778 +#: ../../../build/NEWS:7650 ../../../build/NEWS:9402 msgid "" -"`bpo-30389 `__: Adds detection of Visual" -" Studio 2017 to distutils on Windows." +"`bpo-30389 `__: Adds detection of Visual " +"Studio 2017 to distutils on Windows." msgstr "" -#: ../../../build/NEWS:7028 +#: ../../../build/NEWS:7652 msgid "" "`bpo-31358 `__: zlib is no longer " "bundled in the CPython source, instead it is downloaded on demand just like " "bz2, lzma, OpenSSL, Tcl/Tk, and SQLite." msgstr "" -#: ../../../build/NEWS:7031 ../../../build/NEWS:8780 +#: ../../../build/NEWS:7655 ../../../build/NEWS:9404 msgid "" "`bpo-31340 `__: Change to building with " "MSVC v141 (included with Visual Studio 2017)" msgstr "" -#: ../../../build/NEWS:7034 ../../../build/NEWS:8783 +#: ../../../build/NEWS:7658 ../../../build/NEWS:9407 msgid "" "`bpo-30581 `__: os.cpu_count() now " "returns the correct number of processors on Windows when the number of " "logical processors is greater than 64." msgstr "" -#: ../../../build/NEWS:7037 +#: ../../../build/NEWS:7661 msgid "" "`bpo-30916 `__: Pre-build OpenSSL, Tcl " "and Tk and include the binaries in the build." msgstr "" -#: ../../../build/NEWS:7040 ../../../build/NEWS:8786 +#: ../../../build/NEWS:7664 ../../../build/NEWS:9410 msgid "" "`bpo-30731 `__: Add a missing xmlns to " "python.manifest so that it matches the schema." msgstr "" -#: ../../../build/NEWS:7043 +#: ../../../build/NEWS:7667 msgid "" "`bpo-30291 `__: Allow requiring 64-bit " "interpreters from py.exe using -64 suffix. Contributed by Steve (Gadget) " "Barnes." msgstr "" -#: ../../../build/NEWS:7046 +#: ../../../build/NEWS:7670 msgid "" "`bpo-30362 `__: Adds list options (-0, " "-0p) to py.exe launcher. Contributed by Steve Barnes." msgstr "" -#: ../../../build/NEWS:7049 +#: ../../../build/NEWS:7673 msgid "" "`bpo-23451 `__: Fix socket deprecation " "warnings in socketmodule.c. Patch by Segev Finer." msgstr "" -#: ../../../build/NEWS:7052 ../../../build/NEWS:9371 +#: ../../../build/NEWS:7676 ../../../build/NEWS:9995 msgid "" "`bpo-30450 `__: The build process on " "Windows no longer depends on Subversion, instead pulling external code from " @@ -13863,103 +14907,101 @@ msgid "" "``py -3.6``), NuGet is used to download a copy of 32-bit Python." msgstr "" -#: ../../../build/NEWS:7057 +#: ../../../build/NEWS:7681 msgid "" "`bpo-29579 `__: Removes readme.txt from " "the installer." msgstr "" -#: ../../../build/NEWS:7059 ../../../build/NEWS:9628 +#: ../../../build/NEWS:7683 ../../../build/NEWS:10252 msgid "" -"`bpo-25778 `__: winreg does not truncate" -" string correctly (Patch by Eryk Sun)" +"`bpo-25778 `__: winreg does not truncate " +"string correctly (Patch by Eryk Sun)" msgstr "" -#: ../../../build/NEWS:7061 +#: ../../../build/NEWS:7685 msgid "" "`bpo-28896 `__: Deprecate " "WindowsRegistryFinder and disable it by default" msgstr "" -#: ../../../build/NEWS:7063 ../../../build/NEWS:10036 +#: ../../../build/NEWS:7687 ../../../build/NEWS:10660 msgid "" "`bpo-28522 `__: Fixes mishandled buffer " "reallocation in getpathp.c" msgstr "" -#: ../../../build/NEWS:7065 ../../../build/NEWS:10280 +#: ../../../build/NEWS:7689 ../../../build/NEWS:10904 msgid "" "`bpo-28402 `__: Adds signed catalog " "files for stdlib on Windows." msgstr "" -#: ../../../build/NEWS:7067 ../../../build/NEWS:10282 +#: ../../../build/NEWS:7691 ../../../build/NEWS:10906 msgid "" -"`bpo-28333 `__: Enables Unicode for " -"ps1/ps2 and input() prompts. (Patch by Eryk Sun)" +"`bpo-28333 `__: Enables Unicode for ps1/" +"ps2 and input() prompts. (Patch by Eryk Sun)" msgstr "" -#: ../../../build/NEWS:7070 ../../../build/NEWS:10285 -#: ../../../build/NEWS:14009 +#: ../../../build/NEWS:7694 ../../../build/NEWS:10909 ../../../build/NEWS:14633 msgid "" "`bpo-28251 `__: Improvements to help " "manuals on Windows." msgstr "" -#: ../../../build/NEWS:7072 ../../../build/NEWS:10287 -#: ../../../build/NEWS:14011 +#: ../../../build/NEWS:7696 ../../../build/NEWS:10911 ../../../build/NEWS:14635 msgid "" "`bpo-28110 `__: launcher.msi has " "different product codes between 32-bit and 64-bit" msgstr "" -#: ../../../build/NEWS:7075 ../../../build/NEWS:10290 +#: ../../../build/NEWS:7699 ../../../build/NEWS:10914 msgid "" "`bpo-28161 `__: Opening CON for write " "access fails" msgstr "" -#: ../../../build/NEWS:7077 ../../../build/NEWS:10292 +#: ../../../build/NEWS:7701 ../../../build/NEWS:10916 msgid "" "`bpo-28162 `__: WindowsConsoleIO " "readall() fails if first line starts with Ctrl+Z" msgstr "" -#: ../../../build/NEWS:7080 ../../../build/NEWS:10295 +#: ../../../build/NEWS:7704 ../../../build/NEWS:10919 msgid "" "`bpo-28163 `__: WindowsConsoleIO " "fileno() passes wrong flags to _open_osfhandle" msgstr "" -#: ../../../build/NEWS:7082 ../../../build/NEWS:10297 +#: ../../../build/NEWS:7706 ../../../build/NEWS:10921 msgid "" "`bpo-28164 `__: _PyIO_get_console_type " "fails for various paths" msgstr "" -#: ../../../build/NEWS:7084 ../../../build/NEWS:10299 +#: ../../../build/NEWS:7708 ../../../build/NEWS:10923 msgid "" "`bpo-28137 `__: Renames Windows path " "file to ._pth" msgstr "" -#: ../../../build/NEWS:7086 ../../../build/NEWS:10301 +#: ../../../build/NEWS:7710 ../../../build/NEWS:10925 msgid "" "`bpo-28138 `__: Windows ._pth file " "should allow import site" msgstr "" -#: ../../../build/NEWS:7091 ../../../build/NEWS:8792 +#: ../../../build/NEWS:7715 ../../../build/NEWS:9416 msgid "" -"`bpo-31493 `__: IDLE code context -- fix" -" code update and font update timers." +"`bpo-31493 `__: IDLE code context -- fix " +"code update and font update timers." msgstr "" -#: ../../../build/NEWS:7093 ../../../build/NEWS:8794 +#: ../../../build/NEWS:7717 ../../../build/NEWS:9418 msgid "Canceling timers prevents a warning message when test_idle completes." msgstr "" -#: ../../../build/NEWS:7095 ../../../build/NEWS:8796 +#: ../../../build/NEWS:7719 ../../../build/NEWS:9420 msgid "" "`bpo-31488 `__: IDLE - Update non-key " "options in former extension classes. When applying configdialog changes, " @@ -13967,75 +15009,75 @@ msgid "" "affect existing instances attached to existing editor windows." msgstr "" -#: ../../../build/NEWS:7100 ../../../build/NEWS:8801 +#: ../../../build/NEWS:7724 ../../../build/NEWS:9425 msgid "" "`bpo-31477 `__: IDLE - Improve rstrip " "entry in doc. Strip trailing whitespace strips more than blank spaces. " "Multiline string literals are not skipped." msgstr "" -#: ../../../build/NEWS:7103 ../../../build/NEWS:8804 +#: ../../../build/NEWS:7727 ../../../build/NEWS:9428 msgid "" "`bpo-31480 `__: IDLE - make tests pass " "with zzdummy extension disabled by default." msgstr "" -#: ../../../build/NEWS:7106 ../../../build/NEWS:8807 +#: ../../../build/NEWS:7730 ../../../build/NEWS:9431 msgid "" "`bpo-31421 `__: Document how IDLE runs " "tkinter programs. IDLE calls tcl/tk update in the background in order to " "make live" msgstr "" -#: ../../../build/NEWS:7109 ../../../build/NEWS:8810 +#: ../../../build/NEWS:7733 ../../../build/NEWS:9434 msgid "interaction and experimentation with tkinter applications much easier." msgstr "" -#: ../../../build/NEWS:7111 ../../../build/NEWS:8812 +#: ../../../build/NEWS:7735 ../../../build/NEWS:9436 msgid "" -"`bpo-31414 `__: IDLE -- fix tk entry box" -" tests by deleting first. Adding to an int entry is not the same as deleting" -" and inserting because int('') will fail." +"`bpo-31414 `__: IDLE -- fix tk entry box " +"tests by deleting first. Adding to an int entry is not the same as deleting " +"and inserting because int('') will fail." msgstr "" -#: ../../../build/NEWS:7115 ../../../build/NEWS:8816 +#: ../../../build/NEWS:7739 ../../../build/NEWS:9440 msgid "" "`bpo-31051 `__: Rearrange IDLE " "configdialog GenPage into Window, Editor, and Help sections." msgstr "" -#: ../../../build/NEWS:7118 ../../../build/NEWS:8819 +#: ../../../build/NEWS:7742 ../../../build/NEWS:9443 msgid "" "`bpo-30617 `__: IDLE - Add docstrings " "and tests for outwin subclass of editor." msgstr "" -#: ../../../build/NEWS:7120 ../../../build/NEWS:8821 +#: ../../../build/NEWS:7744 ../../../build/NEWS:9445 msgid "" -"Move some data and functions from the class to module level. Patch by Cheryl" -" Sabella." +"Move some data and functions from the class to module level. Patch by Cheryl " +"Sabella." msgstr "" -#: ../../../build/NEWS:7123 ../../../build/NEWS:8824 +#: ../../../build/NEWS:7747 ../../../build/NEWS:9448 msgid "" "`bpo-31287 `__: IDLE - Do not modify " "tkinter.message in test_configdialog." msgstr "" -#: ../../../build/NEWS:7125 ../../../build/NEWS:8826 +#: ../../../build/NEWS:7749 ../../../build/NEWS:9450 msgid "" "`bpo-27099 `__: Convert IDLE's built-in " "'extensions' to regular features." msgstr "" -#: ../../../build/NEWS:7127 ../../../build/NEWS:8828 +#: ../../../build/NEWS:7751 ../../../build/NEWS:9452 msgid "" "About 10 IDLE features were implemented as supposedly optional extensions. " "Their different behavior could be confusing or worse for users and not good " "for maintenance. Hence the conversion." msgstr "" -#: ../../../build/NEWS:7131 ../../../build/NEWS:8832 +#: ../../../build/NEWS:7755 ../../../build/NEWS:9456 msgid "" "The main difference for users is that user configurable key bindings for " "builtin features are now handled uniformly. Now, editing a binding in a " @@ -14045,7 +15087,7 @@ msgid "" "effect as soon as one clicks Apply or Ok." msgstr "" -#: ../../../build/NEWS:7138 +#: ../../../build/NEWS:7762 msgid "" "The affected events are '<>', '<>', " "'<>', '<>', '<>', '<`__: IDLE: Factor " "HighPage(Frame) class from ConfigDialog. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7149 ../../../build/NEWS:8849 +#: ../../../build/NEWS:7773 ../../../build/NEWS:9473 msgid "" "`bpo-31001 `__: Add tests for " "configdialog highlight tab. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7152 ../../../build/NEWS:8852 +#: ../../../build/NEWS:7776 ../../../build/NEWS:9476 msgid "" "`bpo-31205 `__: IDLE: Factor " "KeysPage(Frame) class from ConfigDialog. The slightly modified tests " "continue to pass. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7155 ../../../build/NEWS:8855 +#: ../../../build/NEWS:7779 ../../../build/NEWS:9479 msgid "" "`bpo-31130 `__: IDLE -- stop leaks in " "test_configdialog. Initial patch by Victor Stinner." msgstr "" -#: ../../../build/NEWS:7158 ../../../build/NEWS:8858 +#: ../../../build/NEWS:7782 ../../../build/NEWS:9482 msgid "" "`bpo-31002 `__: Add tests for " "configdialog keys tab. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7160 ../../../build/NEWS:8860 +#: ../../../build/NEWS:7784 ../../../build/NEWS:9484 msgid "" "`bpo-19903 `__: IDLE: Calltips use " "`inspect.signature` instead of `inspect.getfullargspec`. This improves " "calltips for builtins converted to use Argument Clinic. Patch by Louie Lu." msgstr "" -#: ../../../build/NEWS:7164 ../../../build/NEWS:8864 +#: ../../../build/NEWS:7788 ../../../build/NEWS:9488 msgid "" -"`bpo-31083 `__: IDLE - Add an outline of" -" a TabPage class in configdialog. Update existing classes to match outline. " +"`bpo-31083 `__: IDLE - Add an outline of " +"a TabPage class in configdialog. Update existing classes to match outline. " "Initial patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7167 ../../../build/NEWS:8867 +#: ../../../build/NEWS:7791 ../../../build/NEWS:9491 msgid "" "`bpo-31050 `__: Factor GenPage(Frame) " -"class from ConfigDialog. The slightly modified tests continue to pass. Patch" -" by Cheryl Sabella." +"class from ConfigDialog. The slightly modified tests continue to pass. Patch " +"by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7170 ../../../build/NEWS:8870 +#: ../../../build/NEWS:7794 ../../../build/NEWS:9494 msgid "" "`bpo-31004 `__: IDLE - Factor " "FontPage(Frame) class from ConfigDialog." msgstr "" -#: ../../../build/NEWS:7172 ../../../build/NEWS:8872 +#: ../../../build/NEWS:7796 ../../../build/NEWS:9496 msgid "" -"Slightly modified tests continue to pass. Fix General tests. Patch mostly by" -" Cheryl Sabella." +"Slightly modified tests continue to pass. Fix General tests. Patch mostly by " +"Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7175 ../../../build/NEWS:8875 +#: ../../../build/NEWS:7799 ../../../build/NEWS:9499 msgid "" "`bpo-30781 `__: IDLE - Use ttk widgets " "in ConfigDialog. Patches by Terry Jan Reedy and Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7178 ../../../build/NEWS:8878 +#: ../../../build/NEWS:7802 ../../../build/NEWS:9502 msgid "" "`bpo-31060 `__: IDLE - Finish " "rearranging methods of ConfigDialog Grouping methods pertaining to each tab " @@ -14136,32 +15178,32 @@ msgid "" "enable splitting the groups into classes." msgstr "" -#: ../../../build/NEWS:7182 ../../../build/NEWS:8882 +#: ../../../build/NEWS:7806 ../../../build/NEWS:9506 msgid "" "`bpo-30853 `__: IDLE -- Factor a " "VarTrace class out of ConfigDialog." msgstr "" -#: ../../../build/NEWS:7184 ../../../build/NEWS:8884 +#: ../../../build/NEWS:7808 ../../../build/NEWS:9508 msgid "" "Instance tracers manages pairs consisting of a tk variable and a callback " "function. When tracing is turned on, setting the variable calls the " "function. Test coverage for the new class is 100%." msgstr "" -#: ../../../build/NEWS:7188 ../../../build/NEWS:8888 +#: ../../../build/NEWS:7812 ../../../build/NEWS:9512 msgid "" -"`bpo-31003 `__: IDLE: Add more tests for" -" General tab." +"`bpo-31003 `__: IDLE: Add more tests for " +"General tab." msgstr "" -#: ../../../build/NEWS:7190 ../../../build/NEWS:8890 +#: ../../../build/NEWS:7814 ../../../build/NEWS:9514 msgid "" "`bpo-30993 `__: IDLE - Improve " "configdialog font page and tests." msgstr "" -#: ../../../build/NEWS:7192 ../../../build/NEWS:8892 +#: ../../../build/NEWS:7816 ../../../build/NEWS:9516 msgid "" "In configdialog: Document causal pathways in create_font_tab docstring. " "Simplify some attribute names. Move set_samples calls to var_changed_font " @@ -14169,53 +15211,52 @@ msgid "" "create widgets function." msgstr "" -#: ../../../build/NEWS:7197 ../../../build/NEWS:8897 +#: ../../../build/NEWS:7821 ../../../build/NEWS:9521 msgid "" -"In test_configdialog: Fix test_font_set so not order dependent. Fix renamed" -" test_indent_scale so it tests the widget. Adjust tests for movement of " +"In test_configdialog: Fix test_font_set so not order dependent. Fix renamed " +"test_indent_scale so it tests the widget. Adjust tests for movement of " "set_samples call. Add tests for load functions. Put all font tests in one " "class and tab indent tests in another. Except for two lines, these tests " "completely cover the related functions." msgstr "" -#: ../../../build/NEWS:7203 ../../../build/NEWS:8903 +#: ../../../build/NEWS:7827 ../../../build/NEWS:9527 msgid "" "`bpo-30981 `__: IDLE -- Add more " "configdialog font page tests." msgstr "" -#: ../../../build/NEWS:7205 ../../../build/NEWS:8905 +#: ../../../build/NEWS:7829 ../../../build/NEWS:9529 msgid "" "`bpo-28523 `__: IDLE: replace 'colour' " "with 'color' in configdialog." msgstr "" -#: ../../../build/NEWS:7207 ../../../build/NEWS:8907 +#: ../../../build/NEWS:7831 ../../../build/NEWS:9531 msgid "" -"`bpo-30917 `__: Add tests for " -"idlelib.config.IdleConf. Increase coverage from 46% to 96%. Patch by Louie " -"Lu." +"`bpo-30917 `__: Add tests for idlelib." +"config.IdleConf. Increase coverage from 46% to 96%. Patch by Louie Lu." msgstr "" -#: ../../../build/NEWS:7210 ../../../build/NEWS:8910 +#: ../../../build/NEWS:7834 ../../../build/NEWS:9534 msgid "" "`bpo-30934 `__: Document coverage " "details for idlelib tests." msgstr "" -#: ../../../build/NEWS:7212 ../../../build/NEWS:8912 +#: ../../../build/NEWS:7836 ../../../build/NEWS:9536 msgid "Add section to idlelib/idle-test/README.txt." msgstr "" -#: ../../../build/NEWS:7214 ../../../build/NEWS:8914 +#: ../../../build/NEWS:7838 ../../../build/NEWS:9538 msgid "Include check that branches are taken both ways." msgstr "" -#: ../../../build/NEWS:7216 ../../../build/NEWS:8916 +#: ../../../build/NEWS:7840 ../../../build/NEWS:9540 msgid "Exclude IDLE-specific code that does not run during unit tests." msgstr "" -#: ../../../build/NEWS:7218 ../../../build/NEWS:8918 +#: ../../../build/NEWS:7842 ../../../build/NEWS:9542 msgid "" "`bpo-30913 `__: IDLE: Document " "ConfigDialog tk Vars, methods, and widgets in docstrings This will " @@ -14223,64 +15264,64 @@ msgid "" "by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7222 ../../../build/NEWS:8922 +#: ../../../build/NEWS:7846 ../../../build/NEWS:9546 msgid "" "`bpo-30899 `__: IDLE: Add tests for " "ConfigParser subclasses in config. Patch by Louie Lu." msgstr "" -#: ../../../build/NEWS:7225 ../../../build/NEWS:8925 +#: ../../../build/NEWS:7849 ../../../build/NEWS:9549 msgid "" "`bpo-30881 `__: IDLE: Add docstrings to " "browser.py. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7227 ../../../build/NEWS:8927 +#: ../../../build/NEWS:7851 ../../../build/NEWS:9551 msgid "" "`bpo-30851 `__: IDLE: Remove unused " "variables in configdialog. One is a duplicate, one is set but cannot be " "altered by users. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7231 ../../../build/NEWS:8931 +#: ../../../build/NEWS:7855 ../../../build/NEWS:9555 msgid "" "`bpo-30870 `__: IDLE: In Settings " "dialog, select font with Up, Down keys as well as mouse. Initial patch by " "Louie Lu." msgstr "" -#: ../../../build/NEWS:7234 ../../../build/NEWS:8934 +#: ../../../build/NEWS:7858 ../../../build/NEWS:9558 msgid "" -"`bpo-8231 `__: IDLE: call " -"config.IdleConf.GetUserCfgDir only once." +"`bpo-8231 `__: IDLE: call config.IdleConf." +"GetUserCfgDir only once." msgstr "" -#: ../../../build/NEWS:7236 ../../../build/NEWS:8936 +#: ../../../build/NEWS:7860 ../../../build/NEWS:9560 msgid "" "`bpo-30779 `__: IDLE: Factor " -"ConfigChanges class from configdialog, put in config; test. * In config, put" -" dump test code in a function; run it and unittest in 'if __name__ == " -"'__main__'. * Add class config.ConfigChanges based on changes_class_v4.py on" -" bpo issue. * Add class test_config.ChangesTest, partly using " +"ConfigChanges class from configdialog, put in config; test. * In config, put " +"dump test code in a function; run it and unittest in 'if __name__ == " +"'__main__'. * Add class config.ConfigChanges based on changes_class_v4.py on " +"bpo issue. * Add class test_config.ChangesTest, partly using " "configdialog_tests_v1.py. * Revise configdialog to use ConfigChanges; see " -"tracker msg297804. * Revise test_configdialog to match configdialog changes." -" * Remove configdialog functions unused or moved to ConfigChanges. Cheryl " +"tracker msg297804. * Revise test_configdialog to match configdialog changes. " +"* Remove configdialog functions unused or moved to ConfigChanges. Cheryl " "Sabella contributed parts of the patch." msgstr "" -#: ../../../build/NEWS:7246 ../../../build/NEWS:8946 +#: ../../../build/NEWS:7870 ../../../build/NEWS:9570 msgid "" -"`bpo-30777 `__: IDLE: configdialog - Add" -" docstrings and fix comments. Patch by Cheryl Sabella." +"`bpo-30777 `__: IDLE: configdialog - Add " +"docstrings and fix comments. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7249 ../../../build/NEWS:8949 +#: ../../../build/NEWS:7873 ../../../build/NEWS:9573 msgid "" "`bpo-30495 `__: IDLE: Improve textview " "with docstrings, PEP8 names, and more tests. Patch by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7252 ../../../build/NEWS:8952 +#: ../../../build/NEWS:7876 ../../../build/NEWS:9576 msgid "" "`bpo-30723 `__: IDLE: Make several " "improvements to parenmatch. Add 'parens' style to highlight both opener and " @@ -14290,28 +15331,28 @@ msgid "" "patch by Charles Wohlganger." msgstr "" -#: ../../../build/NEWS:7258 ../../../build/NEWS:8958 +#: ../../../build/NEWS:7882 ../../../build/NEWS:9582 msgid "" "`bpo-30674 `__: IDLE: add docstrings to " "grep module. Patch by Cheryl Sabella" msgstr "" -#: ../../../build/NEWS:7260 ../../../build/NEWS:8960 +#: ../../../build/NEWS:7884 ../../../build/NEWS:9584 msgid "" "`bpo-21519 `__: IDLE's basic custom key " "entry dialog now detects duplicates properly. Original patch by Saimadhav " "Heblikar." msgstr "" -#: ../../../build/NEWS:7263 ../../../build/NEWS:8963 +#: ../../../build/NEWS:7887 ../../../build/NEWS:9587 msgid "" -"`bpo-29910 `__: IDLE no longer deletes a" -" character after commenting out a region by a key shortcut. Add ``return " +"`bpo-29910 `__: IDLE no longer deletes a " +"character after commenting out a region by a key shortcut. Add ``return " "'break'`` for this and other potential conflicts between IDLE and default " "key bindings." msgstr "" -#: ../../../build/NEWS:7267 ../../../build/NEWS:8967 +#: ../../../build/NEWS:7891 ../../../build/NEWS:9591 msgid "" "`bpo-30728 `__: Review and change " "idlelib.configdialog names. Lowercase method and attribute names. Replace " @@ -14320,14 +15361,14 @@ msgid "" "Sabella." msgstr "" -#: ../../../build/NEWS:7272 ../../../build/NEWS:8972 +#: ../../../build/NEWS:7896 ../../../build/NEWS:9596 msgid "" "`bpo-6739 `__: IDLE: Verify user-entered " -"key sequences by trying to bind them with tk. Add tests for all 3 validation" -" functions. Original patch by G Polo. Tests added by Cheryl Sabella." +"key sequences by trying to bind them with tk. Add tests for all 3 validation " +"functions. Original patch by G Polo. Tests added by Cheryl Sabella." msgstr "" -#: ../../../build/NEWS:7276 ../../../build/NEWS:9282 +#: ../../../build/NEWS:7900 ../../../build/NEWS:9906 msgid "" "`bpo-15786 `__: Fix several problems " "with IDLE's autocompletion box. The following should now work: clicking on " @@ -14335,120 +15376,119 @@ msgid "" "Return. Hangs on MacOSX should no longer happen. Patch by Louie Lu." msgstr "" -#: ../../../build/NEWS:7281 ../../../build/NEWS:9287 +#: ../../../build/NEWS:7905 ../../../build/NEWS:9911 msgid "" "`bpo-25514 `__: Add doc subsubsection " "about IDLE failure to start. Popup no-connection message directs users to " "this section." msgstr "" -#: ../../../build/NEWS:7284 ../../../build/NEWS:9290 +#: ../../../build/NEWS:7908 ../../../build/NEWS:9914 msgid "" "`bpo-30642 `__: Fix reference leaks in " "IDLE tests. Patches by Louie Lu and Terry Jan Reedy." msgstr "" -#: ../../../build/NEWS:7287 ../../../build/NEWS:9293 +#: ../../../build/NEWS:7911 ../../../build/NEWS:9917 msgid "" "`bpo-30495 `__: Add docstrings for " "textview.py and use PEP8 names. Patches by Cheryl Sabella and Terry Jan " "Reedy." msgstr "" -#: ../../../build/NEWS:7290 ../../../build/NEWS:9296 +#: ../../../build/NEWS:7914 ../../../build/NEWS:9920 msgid "" "`bpo-30290 `__: Help-about: use pep8 " "names and add tests. Increase coverage to 100%. Patches by Louie Lu, Cheryl " "Sabella, and Terry Jan Reedy." msgstr "" -#: ../../../build/NEWS:7293 ../../../build/NEWS:9299 +#: ../../../build/NEWS:7917 ../../../build/NEWS:9923 msgid "" "`bpo-30303 `__: Add _utest option to " "textview; add new tests. Increase coverage to 100%. Patches by Louie Lu and " "Terry Jan Reedy." msgstr "" -#: ../../../build/NEWS:7296 ../../../build/NEWS:9609 +#: ../../../build/NEWS:7920 ../../../build/NEWS:10233 msgid "" "`bpo-29071 `__: IDLE colors f-string " "prefixes (but not invalid ur prefixes)." msgstr "" -#: ../../../build/NEWS:7298 ../../../build/NEWS:9611 +#: ../../../build/NEWS:7922 ../../../build/NEWS:10235 msgid "" "`bpo-28572 `__: Add 10% to coverage of " "IDLE's test_configdialog. Update and augment description of the " "configuration system." msgstr "" -#: ../../../build/NEWS:7304 ../../../build/NEWS:8979 +#: ../../../build/NEWS:7928 ../../../build/NEWS:9603 msgid "" -"`bpo-30983 `__: gdb integration commands" -" (py-bt, etc.) work on optimized shared builds now, too. PEP 523 introduced" -" _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on non-debug " +"`bpo-30983 `__: gdb integration commands " +"(py-bt, etc.) work on optimized shared builds now, too. PEP 523 introduced " +"_PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on non-debug " "shared builds. This broke the ability to use py-bt, py-up, and a few other " "Python-specific gdb integrations. The problem is fixed by only looking for " "_PyEval_EvalFrameDefault frames in python-gdb.py. Original patch by Bruno " "\"Polaco\" Penteado." msgstr "" -#: ../../../build/NEWS:7312 +#: ../../../build/NEWS:7936 msgid "" "`bpo-29748 `__: Added the slice index " "converter in Argument Clinic." msgstr "" -#: ../../../build/NEWS:7314 +#: ../../../build/NEWS:7938 msgid "" -"`bpo-24037 `__: Argument Clinic now uses" -" the converter `bool(accept={int})` rather than `int` for semantical " -"booleans. This avoids repeating the default value for Python and C and will" -" help in converting to `bool` in future." +"`bpo-24037 `__: Argument Clinic now uses " +"the converter `bool(accept={int})` rather than `int` for semantical " +"booleans. This avoids repeating the default value for Python and C and will " +"help in converting to `bool` in future." msgstr "" -#: ../../../build/NEWS:7319 ../../../build/NEWS:9348 +#: ../../../build/NEWS:7943 ../../../build/NEWS:9972 msgid "" "`bpo-29367 `__: python-gdb.py now " "supports also ``method-wrapper`` (``wrapperobject``) objects." msgstr "" -#: ../../../build/NEWS:7322 ../../../build/NEWS:9815 +#: ../../../build/NEWS:7946 ../../../build/NEWS:10439 msgid "" -"`bpo-28023 `__: Fix python-gdb.py didn't" -" support new dict implementation." +"`bpo-28023 `__: Fix python-gdb.py didn't " +"support new dict implementation." msgstr "" -#: ../../../build/NEWS:7324 +#: ../../../build/NEWS:7948 msgid "" "`bpo-15369 `__: The pybench and pystone " "microbenchmark have been removed from Tools. Please use the new Python " -"benchmark suite https://github.com/python/performance which is more reliable" -" and includes a portable version of pybench working on Python 2 and Python " -"3." +"benchmark suite https://github.com/python/performance which is more reliable " +"and includes a portable version of pybench working on Python 2 and Python 3." msgstr "" -#: ../../../build/NEWS:7329 +#: ../../../build/NEWS:7953 msgid "" "`bpo-28102 `__: The zipfile module CLI " "now prints usage to stderr. Patch by Stephen J. Turnbull." msgstr "" -#: ../../../build/NEWS:7335 +#: ../../../build/NEWS:7959 msgid "" "`bpo-31338 `__: Added the " "``Py_UNREACHABLE()`` macro for code paths which are never expected to be " -"reached. This and a few other useful macros are now documented in the C API" -" manual." +"reached. This and a few other useful macros are now documented in the C API " +"manual." msgstr "" -#: ../../../build/NEWS:7339 +#: ../../../build/NEWS:7963 msgid "" "`bpo-30832 `__: Remove own " "implementation for thread-local storage." msgstr "" -#: ../../../build/NEWS:7341 +#: ../../../build/NEWS:7965 msgid "" "CPython has provided the own implementation for thread-local storage (TLS) " "on Python/thread.c, it's used in the case which a platform has not supplied " @@ -14457,29 +15497,29 @@ msgid "" "with unconditional in any case." msgstr "" -#: ../../../build/NEWS:7347 +#: ../../../build/NEWS:7971 msgid "" "`bpo-30708 `__: " "PyUnicode_AsWideCharString() now raises a ValueError if the second argument " "is NULL and the wchar_t\\* string contains null characters." msgstr "" -#: ../../../build/NEWS:7350 +#: ../../../build/NEWS:7974 msgid "" "`bpo-16500 `__: Deprecate " "PyOS_AfterFork() and add PyOS_BeforeFork(), PyOS_AfterFork_Parent() and " "PyOS_AfterFork_Child()." msgstr "" -#: ../../../build/NEWS:7353 +#: ../../../build/NEWS:7977 msgid "" "`bpo-6532 `__: The type of results of " "PyThread_start_new_thread() and PyThread_get_thread_ident(), and the id " -"parameter of PyThreadState_SetAsyncExc() changed from \"long\" to \"unsigned" -" long\"." +"parameter of PyThreadState_SetAsyncExc() changed from \"long\" to \"unsigned " +"long\"." msgstr "" -#: ../../../build/NEWS:7357 +#: ../../../build/NEWS:7981 msgid "" "`bpo-27867 `__: Function " "PySlice_GetIndicesEx() is deprecated and replaced with a macro if " @@ -14488,45 +15528,45 @@ msgid "" "PySlice_Unpack() and PySlice_AdjustIndices()." msgstr "" -#: ../../../build/NEWS:7362 ../../../build/NEWS:9639 ../../../build/NEWS:13377 +#: ../../../build/NEWS:7986 ../../../build/NEWS:10263 ../../../build/NEWS:14001 msgid "" -"`bpo-29083 `__: Fixed the declaration of" -" some public API functions. PyArg_VaParse() and " +"`bpo-29083 `__: Fixed the declaration of " +"some public API functions. PyArg_VaParse() and " "PyArg_VaParseTupleAndKeywords() were not available in limited API. " "PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and Py_BuildValue() " "were not available in limited API of version < 3.3 when PY_SSIZE_T_CLEAN is " "defined." msgstr "" -#: ../../../build/NEWS:7368 +#: ../../../build/NEWS:7992 msgid "" "`bpo-28769 `__: The result of " -"PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() is now of type ``const char" -" *`` rather of ``char *``." +"PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() is now of type ``const char " +"*`` rather of ``char *``." msgstr "" -#: ../../../build/NEWS:7371 ../../../build/NEWS:9645 +#: ../../../build/NEWS:7995 ../../../build/NEWS:10269 msgid "" "`bpo-29058 `__: All stable API " -"extensions added after Python 3.2 are now available only when Py_LIMITED_API" -" is set to the PY_VERSION_HEX value of the minimum Python version supporting" -" this API." +"extensions added after Python 3.2 are now available only when Py_LIMITED_API " +"is set to the PY_VERSION_HEX value of the minimum Python version supporting " +"this API." msgstr "" -#: ../../../build/NEWS:7375 +#: ../../../build/NEWS:7999 msgid "" "`bpo-28822 `__: The index parameters " "*start* and *end* of PyUnicode_FindChar() are now adjusted to behave like " "``str[start:end]``." msgstr "" -#: ../../../build/NEWS:7378 ../../../build/NEWS:9803 ../../../build/NEWS:13964 +#: ../../../build/NEWS:8002 ../../../build/NEWS:10427 ../../../build/NEWS:14588 msgid "" "`bpo-28808 `__: " "PyUnicode_CompareWithASCIIString() now never raises exceptions." msgstr "" -#: ../../../build/NEWS:7380 +#: ../../../build/NEWS:8004 msgid "" "`bpo-28761 `__: The fields name and doc " "of structures PyMemberDef, PyGetSetDef, PyStructSequence_Field, " @@ -14534,213 +15574,213 @@ msgid "" "rather of ``char *``." msgstr "" -#: ../../../build/NEWS:7384 +#: ../../../build/NEWS:8008 msgid "" "`bpo-28748 `__: Private variable " "_Py_PackageContext is now of type ``const char *`` rather of ``char *``." msgstr "" -#: ../../../build/NEWS:7387 +#: ../../../build/NEWS:8011 msgid "" "`bpo-19569 `__: Compiler warnings are " "now emitted if use most of deprecated functions." msgstr "" -#: ../../../build/NEWS:7390 ../../../build/NEWS:10306 +#: ../../../build/NEWS:8014 ../../../build/NEWS:10930 msgid "" "`bpo-28426 `__: Deprecated undocumented " "functions PyUnicode_AsEncodedObject(), PyUnicode_AsDecodedObject(), " "PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode()." msgstr "" -#: ../../../build/NEWS:7396 +#: ../../../build/NEWS:8020 msgid "Python 3.6.6 final" msgstr "" -#: ../../../build/NEWS:7400 +#: ../../../build/NEWS:8024 msgid "There were no new changes in version 3.6.6." msgstr "" -#: ../../../build/NEWS:7405 +#: ../../../build/NEWS:8029 msgid "Python 3.6.6 release candidate 1" msgstr "" -#: ../../../build/NEWS:7407 +#: ../../../build/NEWS:8031 msgid "*Release date: 2018-06-11*" msgstr "" -#: ../../../build/NEWS:7412 +#: ../../../build/NEWS:8036 msgid "" "`bpo-33786 `__: Fix asynchronous " "generators to handle GeneratorExit in athrow() correctly" msgstr "" -#: ../../../build/NEWS:7638 +#: ../../../build/NEWS:8262 msgid "" -"`bpo-33184 `__: Update Windows installer" -" to OpenSSL 1.0.2o." +"`bpo-33184 `__: Update Windows installer " +"to OpenSSL 1.0.2o." msgstr "" -#: ../../../build/NEWS:7643 +#: ../../../build/NEWS:8267 msgid "" "`bpo-33184 `__: Update macOS installer " "build to use OpenSSL 1.0.2o." msgstr "" -#: ../../../build/NEWS:7675 +#: ../../../build/NEWS:8299 msgid "" "`bpo-29706 `__: IDLE now colors async " "and await as keywords in 3.6. They become full keywords in 3.7." msgstr "" -#: ../../../build/NEWS:7716 +#: ../../../build/NEWS:8340 msgid "Python 3.6.5 final" msgstr "" -#: ../../../build/NEWS:7718 +#: ../../../build/NEWS:8342 msgid "*Release date: 2018-03-28*" msgstr "" -#: ../../../build/NEWS:7732 +#: ../../../build/NEWS:8356 msgid "Python 3.6.5 release candidate 1" msgstr "" -#: ../../../build/NEWS:7734 +#: ../../../build/NEWS:8358 msgid "*Release date: 2018-03-13*" msgstr "" -#: ../../../build/NEWS:7773 +#: ../../../build/NEWS:8397 msgid "" -"`bpo-32329 `__: " -"``sys.flags.hash_randomization`` is now properly set to 0 when hash " -"randomization is turned off by ``PYTHONHASHSEED=0``." +"`bpo-32329 `__: ``sys.flags." +"hash_randomization`` is now properly set to 0 when hash randomization is " +"turned off by ``PYTHONHASHSEED=0``." msgstr "" -#: ../../../build/NEWS:7776 +#: ../../../build/NEWS:8400 msgid "" "`bpo-30416 `__: The optimizer is now " "protected from spending much time doing complex calculations and consuming " "much memory for creating large constants in constant folding." msgstr "" -#: ../../../build/NEWS:7803 +#: ../../../build/NEWS:8427 msgid "" -"`bpo-30353 `__: Fix ctypes pass-by-value" -" for structs on 64-bit Cygwin/MinGW." +"`bpo-30353 `__: Fix ctypes pass-by-value " +"for structs on 64-bit Cygwin/MinGW." msgstr "" -#: ../../../build/NEWS:7841 +#: ../../../build/NEWS:8465 msgid "" "`bpo-32394 `__: socket: Remove " "TCP_FASTOPEN, TCP_KEEPCNT flags on older version Windows during run-time." msgstr "" -#: ../../../build/NEWS:7873 +#: ../../../build/NEWS:8497 msgid "" "`bpo-32555 `__: On FreeBSD and Solaris, " "os.strerror() now always decode the byte string from the current locale " "encoding, rather than using ASCII/surrogateescape in some cases." msgstr "" -#: ../../../build/NEWS:7891 +#: ../../../build/NEWS:8515 msgid "" -"`bpo-32185 `__: The SSL module no longer" -" sends IP addresses in SNI TLS extension on platforms with OpenSSL 1.0.2+ or" -" inet_pton." +"`bpo-32185 `__: The SSL module no longer " +"sends IP addresses in SNI TLS extension on platforms with OpenSSL 1.0.2+ or " +"inet_pton." msgstr "" -#: ../../../build/NEWS:7957 +#: ../../../build/NEWS:8581 msgid "" "`bpo-31518 `__: Debian Unstable has " "disabled TLS 1.0 and 1.1 for SSLv23_METHOD(). Change TLS/SSL protocol of " "some tests to PROTOCOL_TLS or PROTOCOL_TLSv1_2 to make them pass on Debian." msgstr "" -#: ../../../build/NEWS:7990 +#: ../../../build/NEWS:8614 msgid "" "`bpo-32588 `__: Create standalone " "_distutils_findvs module." msgstr "" -#: ../../../build/NEWS:7995 +#: ../../../build/NEWS:8619 msgid "" "`bpo-32726 `__: Provide an additional, " -"more modern macOS installer variant that supports macOS 10.9+ systems in " -"64-bit mode only. Upgrade the supplied third-party libraries to OpenSSL " -"1.0.2n, XZ 5.2.3, and SQLite 3.22.0. The 10.9+ installer now links with and " -"supplies its own copy of Tcl/Tk 8.6.8." +"more modern macOS installer variant that supports macOS 10.9+ systems in 64-" +"bit mode only. Upgrade the supplied third-party libraries to OpenSSL 1.0.2n, " +"XZ 5.2.3, and SQLite 3.22.0. The 10.9+ installer now links with and supplies " +"its own copy of Tcl/Tk 8.6.8." msgstr "" -#: ../../../build/NEWS:8051 +#: ../../../build/NEWS:8675 msgid "Python 3.6.4 final" msgstr "" -#: ../../../build/NEWS:8053 +#: ../../../build/NEWS:8677 msgid "*Release date: 2017-12-18*" msgstr "" -#: ../../../build/NEWS:8055 +#: ../../../build/NEWS:8679 msgid "There were no new code changes in version 3.6.4 since v3.6.4rc1." msgstr "" -#: ../../../build/NEWS:8060 +#: ../../../build/NEWS:8684 msgid "Python 3.6.4 release candidate 1" msgstr "" -#: ../../../build/NEWS:8092 +#: ../../../build/NEWS:8716 msgid "" -"`bpo-31852 `__: Fix a segmentation fault" -" caused by a combination of the async soft keyword and continuation lines." +"`bpo-31852 `__: Fix a segmentation fault " +"caused by a combination of the async soft keyword and continuation lines." msgstr "" -#: ../../../build/NEWS:8436 +#: ../../../build/NEWS:9060 msgid "" -"`bpo-13802 `__: Use non-Latin characters" -" in the IDLE's Font settings sample. Even if one selects a font that defines" -" a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use " +"`bpo-13802 `__: Use non-Latin characters " +"in the IDLE's Font settings sample. Even if one selects a font that defines " +"a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use " "other fonts that define a character. The expanded example give users of non-" "Latin characters a better idea of what they might see in IDLE's shell and " -"editors. To make room for the expanded sample, frames on the Font tab are " -"re-arranged. The Font/Tabs help explains a bit about the additions." +"editors. To make room for the expanded sample, frames on the Font tab are re-" +"arranged. The Font/Tabs help explains a bit about the additions." msgstr "" -#: ../../../build/NEWS:8496 +#: ../../../build/NEWS:9120 msgid "Python 3.6.3 final" msgstr "" -#: ../../../build/NEWS:8498 +#: ../../../build/NEWS:9122 msgid "*Release date: 2017-10-03*" msgstr "" -#: ../../../build/NEWS:8503 +#: ../../../build/NEWS:9127 msgid "" "`bpo-31641 `__: Re-allow arbitrary " "iterables in `concurrent.futures.as_completed()`. Fixes regression in " "3.6.3rc1." msgstr "" -#: ../../../build/NEWS:8509 +#: ../../../build/NEWS:9133 msgid "" "`bpo-31662 `__: Fix typos in Windows " -"``uploadrelease.bat`` script. Fix Windows Doc build issues in " -"``Doc/make.bat``." +"``uploadrelease.bat`` script. Fix Windows Doc build issues in ``Doc/make." +"bat``." msgstr "" -#: ../../../build/NEWS:8512 +#: ../../../build/NEWS:9136 msgid "" "`bpo-31423 `__: Fix building the PDF " "documentation with newer versions of Sphinx." msgstr "" -#: ../../../build/NEWS:8517 +#: ../../../build/NEWS:9141 msgid "Python 3.6.3 release candidate 1" msgstr "" -#: ../../../build/NEWS:8519 +#: ../../../build/NEWS:9143 msgid "*Release date: 2017-09-18*" msgstr "" -#: ../../../build/NEWS:8839 +#: ../../../build/NEWS:9463 msgid "" "The affected events are '<>', '<>', " "'<>', '<>', '<>', '<`__: Move co_extra_freefuncs " "to not be per-thread to avoid crashes" msgstr "" -#: ../../../build/NEWS:9065 ../../../build/NEWS:13023 +#: ../../../build/NEWS:9689 ../../../build/NEWS:13647 msgid "" "`bpo-29600 `__: Fix wrapping coroutine " "return values in StopIteration." msgstr "" -#: ../../../build/NEWS:9094 ../../../build/NEWS:13090 +#: ../../../build/NEWS:9718 ../../../build/NEWS:13714 msgid "" "`bpo-30645 `__: Fix path calculation in " "imp.load_package(), fixing it for cases when a package is only shipped with " "bytecodes. Patch by Alexandru Ardelean." msgstr "" -#: ../../../build/NEWS:9114 +#: ../../../build/NEWS:9738 msgid "" "`bpo-24484 `__: Avoid race condition in " "multiprocessing cleanup (#2159)" msgstr "" -#: ../../../build/NEWS:9188 ../../../build/NEWS:13158 +#: ../../../build/NEWS:9812 ../../../build/NEWS:13782 msgid "" "`bpo-26293 `__: Change resulted because " -"of zipfile breakage. (See also: `bpo-29094 " -"`__)" +"of zipfile breakage. (See also: `bpo-29094 `__)" msgstr "" -#: ../../../build/NEWS:9262 ../../../build/NEWS:13225 +#: ../../../build/NEWS:9886 ../../../build/NEWS:13849 msgid "" -"`bpo-28298 `__: Fix a bug that prevented" -" array 'Q', 'L' and 'I' from accepting big intables (objects that have " +"`bpo-28298 `__: Fix a bug that prevented " +"array 'Q', 'L' and 'I' from accepting big intables (objects that have " "__int__) as elements. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:9305 +#: ../../../build/NEWS:9929 msgid "" "`bpo-27867 `__: Function " "PySlice_GetIndicesEx() no longer replaced with a macro if Py_LIMITED_API is " "not set." msgstr "" -#: ../../../build/NEWS:9378 +#: ../../../build/NEWS:10002 msgid "Python 3.6.1 final" msgstr "" -#: ../../../build/NEWS:9380 +#: ../../../build/NEWS:10004 msgid "*Release date: 2017-03-21*" msgstr "*Data de lançamento: 2017-03-21*" -#: ../../../build/NEWS:9396 +#: ../../../build/NEWS:10020 msgid "" "`bpo-27593 `__: fix format of git " "information used in sys.version" msgstr "" -#: ../../../build/NEWS:9398 +#: ../../../build/NEWS:10022 msgid "Fix incompatible comment in python.h" msgstr "Corrigir comentário incompatível em python.h" -#: ../../../build/NEWS:9402 +#: ../../../build/NEWS:10026 msgid "Python 3.6.1 release candidate 1" msgstr "" -#: ../../../build/NEWS:9404 +#: ../../../build/NEWS:10028 msgid "*Release date: 2017-03-04*" msgstr "*Data de lançamento: 2017-03-04*" -#: ../../../build/NEWS:9515 ../../../build/NEWS:13257 +#: ../../../build/NEWS:10139 ../../../build/NEWS:13881 msgid "" "`bpo-29519 `__: Fix weakref spewing " "exceptions during interpreter shutdown when used with a rare combination of " "multiprocessing and custom codecs." msgstr "" -#: ../../../build/NEWS:9531 +#: ../../../build/NEWS:10155 msgid "" "`bpo-29316 `__: Restore the provisional " "status of typing module, add corresponding note to documentation. Patch by " "Ivan L." msgstr "" -#: ../../../build/NEWS:9537 ../../../build/NEWS:13273 +#: ../../../build/NEWS:10161 ../../../build/NEWS:13897 msgid "" "`bpo-29011 `__: Fix an important " "omission by adding Deque to the typing module." msgstr "" -#: ../../../build/NEWS:9551 +#: ../../../build/NEWS:10175 msgid "" "`bpo-29203 `__: functools.lru_cache() " "now respects PEP 468 and preserves the order of keyword arguments. f(a=1, " @@ -14878,92 +15918,91 @@ msgid "" "potentially give different results." msgstr "" -#: ../../../build/NEWS:9558 ../../../build/NEWS:13535 +#: ../../../build/NEWS:10182 ../../../build/NEWS:14159 msgid "" "`bpo-29094 `__: Offsets in a ZIP file " "created with extern file object and modes \"w\" and \"x\" now are relative " "to the start of the file." msgstr "" -#: ../../../build/NEWS:9561 +#: ../../../build/NEWS:10185 msgid "" -"`bpo-29085 `__: Allow " -"random.Random.seed() to use high quality OS randomness rather than the pid " -"and time." +"`bpo-29085 `__: Allow random.Random." +"seed() to use high quality OS randomness rather than the pid and time." msgstr "" -#: ../../../build/NEWS:9564 +#: ../../../build/NEWS:10188 msgid "" -"`bpo-29061 `__: Fixed bug in " -"secrets.randbelow() which would hang when given a negative input. Patch by " -"Brendan Donegan." +"`bpo-29061 `__: Fixed bug in secrets." +"randbelow() which would hang when given a negative input. Patch by Brendan " +"Donegan." msgstr "" -#: ../../../build/NEWS:9572 ../../../build/NEWS:13541 +#: ../../../build/NEWS:10196 ../../../build/NEWS:14165 msgid "" -"`bpo-29119 `__: Fix weakrefs in the pure" -" python version of collections.OrderedDict move_to_end() method. Contributed" -" by Andra Bogildea." +"`bpo-29119 `__: Fix weakrefs in the pure " +"python version of collections.OrderedDict move_to_end() method. Contributed " +"by Andra Bogildea." msgstr "" -#: ../../../build/NEWS:9584 +#: ../../../build/NEWS:10208 msgid "" "`bpo-29055 `__: Neaten-up empty " "population error on random.choice() by suppressing the upstream exception." msgstr "" -#: ../../../build/NEWS:9599 ../../../build/NEWS:13565 +#: ../../../build/NEWS:10223 ../../../build/NEWS:14189 msgid "" "`bpo-28847 `__: dbm.dumb now supports " "reading read-only files and no longer writes the index file when it is not " "changed." msgstr "" -#: ../../../build/NEWS:9617 +#: ../../../build/NEWS:10241 msgid "" "`bpo-29579 `__: Removes readme.txt from " "the installer" msgstr "" -#: ../../../build/NEWS:9619 +#: ../../../build/NEWS:10243 msgid "" -"`bpo-29326 `__: Ignores blank lines in " -"._pth files (Patch by Alexey Izbyshev)" +"`bpo-29326 `__: Ignores blank lines in ." +"_pth files (Patch by Alexey Izbyshev)" msgstr "" -#: ../../../build/NEWS:9621 +#: ../../../build/NEWS:10245 msgid "" -"`bpo-28164 `__: Correctly handle special" -" console filenames (patch by Eryk Sun)" +"`bpo-28164 `__: Correctly handle special " +"console filenames (patch by Eryk Sun)" msgstr "" -#: ../../../build/NEWS:9623 +#: ../../../build/NEWS:10247 msgid "" -"`bpo-29409 `__: Implement PEP 529 for " -"io.FileIO (Patch by Eryk Sun)" +"`bpo-29409 `__: Implement PEP 529 for io." +"FileIO (Patch by Eryk Sun)" msgstr "" -#: ../../../build/NEWS:9625 ../../../build/NEWS:13367 +#: ../../../build/NEWS:10249 ../../../build/NEWS:13991 msgid "" "`bpo-29392 `__: Prevent crash when " "passing invalid arguments into msvcrt module." msgstr "" -#: ../../../build/NEWS:9630 +#: ../../../build/NEWS:10254 msgid "" "`bpo-28896 `__: Deprecate " "WindowsRegistryFinder and disable it by default." msgstr "" -#: ../../../build/NEWS:9635 +#: ../../../build/NEWS:10259 msgid "" "`bpo-27867 `__: Function " -"PySlice_GetIndicesEx() is replaced with a macro if Py_LIMITED_API is not set" -" or set to the value between 0x03050400 and 0x03060000 (not including) or " +"PySlice_GetIndicesEx() is replaced with a macro if Py_LIMITED_API is not set " +"or set to the value between 0x03050400 and 0x03060000 (not including) or " "0x03060100 or higher." msgstr "" -#: ../../../build/NEWS:9665 ../../../build/NEWS:13332 +#: ../../../build/NEWS:10289 ../../../build/NEWS:13956 msgid "" "`bpo-28087 `__: Skip test_asyncore and " "test_eintr poll failures on macOS. Skip some tests of select.poll when " @@ -14971,100 +16010,100 @@ msgid "" "function on some macOS versions." msgstr "" -#: ../../../build/NEWS:9669 ../../../build/NEWS:13342 +#: ../../../build/NEWS:10293 ../../../build/NEWS:13966 msgid "" "`bpo-29571 `__: to match the behaviour " -"of the ``re.LOCALE`` flag, test_re.test_locale_flag now uses " -"``locale.getpreferredencoding(False)`` to determine the candidate encoding " -"for the test regex (allowing it to correctly skip the test when the default " -"locale encoding is a multi-byte encoding)" +"of the ``re.LOCALE`` flag, test_re.test_locale_flag now uses ``locale." +"getpreferredencoding(False)`` to determine the candidate encoding for the " +"test regex (allowing it to correctly skip the test when the default locale " +"encoding is a multi-byte encoding)" msgstr "" -#: ../../../build/NEWS:9717 +#: ../../../build/NEWS:10341 msgid "Python 3.6.0 final" msgstr "" -#: ../../../build/NEWS:9719 +#: ../../../build/NEWS:10343 msgid "*Release date: 2016-12-23*" msgstr "" -#: ../../../build/NEWS:9726 +#: ../../../build/NEWS:10350 msgid "Python 3.6.0 release candidate 2" msgstr "" -#: ../../../build/NEWS:9728 +#: ../../../build/NEWS:10352 msgid "*Release date: 2016-12-16*" msgstr "" -#: ../../../build/NEWS:9736 +#: ../../../build/NEWS:10360 msgid "" "`bpo-28990 `__: Fix asyncio SSL hanging " "if connection is closed before handshake is completed. (Patch by HoHo-Ho)" msgstr "" -#: ../../../build/NEWS:9742 +#: ../../../build/NEWS:10366 msgid "" "`bpo-28770 `__: Fix python-gdb.py for " "fastcalls." msgstr "" -#: ../../../build/NEWS:9747 +#: ../../../build/NEWS:10371 msgid "" "`bpo-28896 `__: Deprecate " "WindowsRegistryFinder." msgstr "" -#: ../../../build/NEWS:9752 +#: ../../../build/NEWS:10376 msgid "" -"`bpo-28898 `__: Prevent gdb build errors" -" due to HAVE_LONG_LONG redefinition." +"`bpo-28898 `__: Prevent gdb build errors " +"due to HAVE_LONG_LONG redefinition." msgstr "" -#: ../../../build/NEWS:9756 +#: ../../../build/NEWS:10380 msgid "Python 3.6.0 release candidate 1" msgstr "" -#: ../../../build/NEWS:9758 +#: ../../../build/NEWS:10382 msgid "*Release date: 2016-12-06*" msgstr "" -#: ../../../build/NEWS:9780 +#: ../../../build/NEWS:10404 msgid "" -"`bpo-27030 `__: Unknown escapes in " -"re.sub() replacement template are allowed again. But they still are " -"deprecated and will be disabled in 3.7." +"`bpo-27030 `__: Unknown escapes in re." +"sub() replacement template are allowed again. But they still are deprecated " +"and will be disabled in 3.7." msgstr "" -#: ../../../build/NEWS:9783 +#: ../../../build/NEWS:10407 msgid "" "`bpo-28835 `__: Fix a regression " "introduced in warnings.catch_warnings(): call warnings.showwarning() if it " "was overriden inside the context manager." msgstr "" -#: ../../../build/NEWS:9798 +#: ../../../build/NEWS:10422 msgid "" "`bpo-28843 `__: Fix asyncio C Task to " "handle exceptions __traceback__." msgstr "" -#: ../../../build/NEWS:9808 +#: ../../../build/NEWS:10432 msgid "" -"`bpo-23722 `__: The data model reference" -" and the porting section in the What's New guide now cover the additional " +"`bpo-23722 `__: The data model reference " +"and the porting section in the What's New guide now cover the additional " "``__classcell__`` handling needed for custom metaclasses to fully support " "PEP 487 and zero-argument ``super()``." msgstr "" -#: ../../../build/NEWS:9819 +#: ../../../build/NEWS:10443 msgid "Python 3.6.0 beta 4" msgstr "" -#: ../../../build/NEWS:9821 +#: ../../../build/NEWS:10445 msgid "*Release date: 2016-11-21*" msgstr "" -#: ../../../build/NEWS:9849 +#: ../../../build/NEWS:10473 msgid "" "`bpo-27243 `__: Change " "PendingDeprecationWarning -> DeprecationWarning. As it was agreed in the " @@ -15072,180 +16111,179 @@ msgid "" "PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6." msgstr "" -#: ../../../build/NEWS:9868 +#: ../../../build/NEWS:10492 msgid "" -"`bpo-20572 `__: The " -"subprocess.Popen.wait method's undocumented endtime parameter now raises a " -"DeprecationWarning." +"`bpo-20572 `__: The subprocess.Popen." +"wait method's undocumented endtime parameter now raises a DeprecationWarning." msgstr "" -#: ../../../build/NEWS:9885 +#: ../../../build/NEWS:10509 msgid "" "`bpo-28600 `__: Optimize loop.call_soon." msgstr "" -#: ../../../build/NEWS:9887 ../../../build/NEWS:13915 +#: ../../../build/NEWS:10511 ../../../build/NEWS:14539 msgid "" "`bpo-28613 `__: Fix get_event_loop() " "return the current loop if called from coroutines/callbacks." msgstr "" -#: ../../../build/NEWS:9890 +#: ../../../build/NEWS:10514 msgid "" "`bpo-28634 `__: Fix asyncio.isfuture() " "to support unittest.Mock." msgstr "" -#: ../../../build/NEWS:9892 +#: ../../../build/NEWS:10516 msgid "" -"`bpo-26081 `__: Fix refleak in " -"_asyncio.Future.__iter__().throw." +"`bpo-26081 `__: Fix refleak in _asyncio." +"Future.__iter__().throw." msgstr "" -#: ../../../build/NEWS:9894 ../../../build/NEWS:13918 +#: ../../../build/NEWS:10518 ../../../build/NEWS:14542 msgid "" "`bpo-28639 `__: Fix inspect.isawaitable " "to always return bool Patch by Justin Mayfield." msgstr "" -#: ../../../build/NEWS:9897 ../../../build/NEWS:13921 +#: ../../../build/NEWS:10521 ../../../build/NEWS:14545 msgid "" -"`bpo-28652 `__: Make loop methods reject" -" socket kinds they do not support." +"`bpo-28652 `__: Make loop methods reject " +"socket kinds they do not support." msgstr "" -#: ../../../build/NEWS:9899 ../../../build/NEWS:13923 +#: ../../../build/NEWS:10523 ../../../build/NEWS:14547 msgid "" "`bpo-28653 `__: Fix a refleak in " "functools.lru_cache." msgstr "" -#: ../../../build/NEWS:9901 ../../../build/NEWS:13925 +#: ../../../build/NEWS:10525 ../../../build/NEWS:14549 msgid "" -"`bpo-28703 `__: Fix " -"asyncio.iscoroutinefunction to handle Mock objects." +"`bpo-28703 `__: Fix asyncio." +"iscoroutinefunction to handle Mock objects." msgstr "" -#: ../../../build/NEWS:9903 +#: ../../../build/NEWS:10527 msgid "" "`bpo-28704 `__: Fix create_unix_server " "to support Path-like objects (PEP 519)." msgstr "" -#: ../../../build/NEWS:9905 +#: ../../../build/NEWS:10529 msgid "" -"`bpo-28720 `__: Add " -"collections.abc.AsyncGenerator." +"`bpo-28720 `__: Add collections.abc." +"AsyncGenerator." msgstr "" -#: ../../../build/NEWS:9933 +#: ../../../build/NEWS:10557 msgid "Python 3.6.0 beta 3" msgstr "" -#: ../../../build/NEWS:9935 +#: ../../../build/NEWS:10559 msgid "*Release date: 2016-10-31*" msgstr "" -#: ../../../build/NEWS:9958 +#: ../../../build/NEWS:10582 msgid "" "`bpo-28471 `__: Fix \"Python memory " "allocator called without holding the GIL\" crash in socket.setblocking." msgstr "" -#: ../../../build/NEWS:9980 +#: ../../../build/NEWS:10604 msgid "" "`bpo-18844 `__: The various ways of " "specifying weights for random.choices() now produce the same result " "sequences." msgstr "" -#: ../../../build/NEWS:9983 ../../../build/NEWS:13597 +#: ../../../build/NEWS:10607 ../../../build/NEWS:14221 msgid "" -"`bpo-28255 `__: " -"calendar.TextCalendar().prmonth() no longer prints a space at the start of " -"new line after printing a month's calendar. Patch by Xiang Zhang." +"`bpo-28255 `__: calendar.TextCalendar()." +"prmonth() no longer prints a space at the start of new line after printing a " +"month's calendar. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10016 ../../../build/NEWS:13611 +#: ../../../build/NEWS:10640 ../../../build/NEWS:14235 msgid "" "`bpo-24452 `__: Make webbrowser support " "Chrome on Mac OS X." msgstr "" -#: ../../../build/NEWS:10021 +#: ../../../build/NEWS:10645 msgid "" "`bpo-28492 `__: Fix how StopIteration " "exception is raised in _asyncio.Future." msgstr "" -#: ../../../build/NEWS:10023 +#: ../../../build/NEWS:10647 msgid "" "`bpo-28500 `__: Fix asyncio to handle " "async gens GC from another thread." msgstr "" -#: ../../../build/NEWS:10025 ../../../build/NEWS:13907 +#: ../../../build/NEWS:10649 ../../../build/NEWS:14531 msgid "" "`bpo-26923 `__: Fix asyncio.Gather to " "refuse being cancelled once all children are done. Patch by Johannes Ebke." msgstr "" -#: ../../../build/NEWS:10028 ../../../build/NEWS:13910 +#: ../../../build/NEWS:10652 ../../../build/NEWS:14534 msgid "" "`bpo-26796 `__: Don't configure the " "number of workers for default threadpool executor. Initial patch by Hans " "Lawrenz." msgstr "" -#: ../../../build/NEWS:10031 +#: ../../../build/NEWS:10655 msgid "" "`bpo-28544 `__: Implement asyncio.Task " "in C." msgstr "" -#: ../../../build/NEWS:10057 +#: ../../../build/NEWS:10681 msgid "Python 3.6.0 beta 2" msgstr "" -#: ../../../build/NEWS:10059 +#: ../../../build/NEWS:10683 msgid "*Release date: 2016-10-10*" msgstr "" -#: ../../../build/NEWS:10075 +#: ../../../build/NEWS:10699 msgid "" "`bpo-28376 `__: Creating instances of " "range_iterator by calling range_iterator type now is deprecated. Patch by " "Oren Milman." msgstr "" -#: ../../../build/NEWS:10078 ../../../build/NEWS:13438 +#: ../../../build/NEWS:10702 ../../../build/NEWS:14062 msgid "" "`bpo-28376 `__: The constructor of " "range_iterator now checks that step is not 0. Patch by Oren Milman." msgstr "" -#: ../../../build/NEWS:10139 ../../../build/NEWS:13616 +#: ../../../build/NEWS:10763 ../../../build/NEWS:14240 msgid "" "`bpo-26293 `__: Fixed writing ZIP files " "that starts not from the start of the file. Offsets in ZIP file now are " "relative to the start of the archive in conforming to the specification." msgstr "" -#: ../../../build/NEWS:10146 +#: ../../../build/NEWS:10770 msgid "" -"`bpo-27181 `__: remove " -"statistics.geometric_mean and defer until 3.7." +"`bpo-27181 `__: remove statistics." +"geometric_mean and defer until 3.7." msgstr "" -#: ../../../build/NEWS:10328 +#: ../../../build/NEWS:10952 msgid "Python 3.6.0 beta 1" msgstr "" -#: ../../../build/NEWS:10330 +#: ../../../build/NEWS:10954 msgid "*Release date: 2016-09-12*" msgstr "" -#: ../../../build/NEWS:10335 +#: ../../../build/NEWS:10959 msgid "" "`bpo-23722 `__: The __class__ cell used " "by zero-argument super() is now initialized from type.__new__ rather than " @@ -15254,60 +16292,59 @@ msgid "" "Teichmann." msgstr "" -#: ../../../build/NEWS:10340 ../../../build/NEWS:13469 +#: ../../../build/NEWS:10964 ../../../build/NEWS:14093 msgid "" "`bpo-25221 `__: Fix corrupted result " "from PyLong_FromLong(0) when Python is compiled with NSMALLPOSINTS = 0." msgstr "" -#: ../../../build/NEWS:10343 +#: ../../../build/NEWS:10967 msgid "" "`bpo-27080 `__: Implement formatting " "support for PEP 515. Initial patch by Chris Angelico." msgstr "" -#: ../../../build/NEWS:10346 +#: ../../../build/NEWS:10970 msgid "" "`bpo-27199 `__: In tarfile, expose " "copyfileobj bufsize to improve throughput. Patch by Jason Fried." msgstr "" -#: ../../../build/NEWS:10349 +#: ../../../build/NEWS:10973 msgid "" -"`bpo-27948 `__: In f-strings, only allow" -" backslashes inside the braces (where the expressions are). This is a " +"`bpo-27948 `__: In f-strings, only allow " +"backslashes inside the braces (where the expressions are). This is a " "breaking change from the 3.6 alpha releases, where backslashes are allowed " -"anywhere in an f-string. Also, require that expressions inside f-strings be" -" enclosed within literal braces, and not escapes like " -"``f'\\x7b\"hi\"\\x7d'``." +"anywhere in an f-string. Also, require that expressions inside f-strings be " +"enclosed within literal braces, and not escapes like ``f'\\x7b\"hi\"\\x7d'``." msgstr "" -#: ../../../build/NEWS:10355 +#: ../../../build/NEWS:10979 msgid "" -"`bpo-28046 `__: Remove platform-specific" -" directories from sys.path." +"`bpo-28046 `__: Remove platform-specific " +"directories from sys.path." msgstr "" -#: ../../../build/NEWS:10357 +#: ../../../build/NEWS:10981 msgid "" "`bpo-28071 `__: Add early-out for " "differencing from an empty set." msgstr "" -#: ../../../build/NEWS:10359 ../../../build/NEWS:13472 +#: ../../../build/NEWS:10983 ../../../build/NEWS:14096 msgid "" "`bpo-25758 `__: Prevents zipimport from " "unnecessarily encoding a filename (patch by Eryk Sun)" msgstr "" -#: ../../../build/NEWS:10362 +#: ../../../build/NEWS:10986 msgid "" -"`bpo-25856 `__: The __module__ attribute" -" of extension classes and functions now is interned. This leads to more " +"`bpo-25856 `__: The __module__ attribute " +"of extension classes and functions now is interned. This leads to more " "compact pickle data with protocol 4." msgstr "" -#: ../../../build/NEWS:10365 +#: ../../../build/NEWS:10989 msgid "" "`bpo-27213 `__: Rework CALL_FUNCTION* " "opcodes to produce shorter and more efficient bytecode. Patch by Demur " @@ -15315,136 +16352,135 @@ msgid "" "Stinner." msgstr "" -#: ../../../build/NEWS:10369 +#: ../../../build/NEWS:10993 msgid "" "`bpo-26331 `__: Implement tokenizing " "support for PEP 515. Patch by Georg Brandl." msgstr "" -#: ../../../build/NEWS:10372 +#: ../../../build/NEWS:10996 msgid "" -"`bpo-27999 `__: Make \"global after " -"use\" a SyntaxError, and ditto for nonlocal. Patch by Ivan Levkivskyi." +"`bpo-27999 `__: Make \"global after use" +"\" a SyntaxError, and ditto for nonlocal. Patch by Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:10375 +#: ../../../build/NEWS:10999 msgid "" "`bpo-28003 `__: Implement PEP 525 -- " "Asynchronous Generators." msgstr "" -#: ../../../build/NEWS:10377 +#: ../../../build/NEWS:11001 msgid "" "`bpo-27985 `__: Implement PEP 526 -- " "Syntax for Variable Annotations. Patch by Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:10380 +#: ../../../build/NEWS:11004 msgid "" "`bpo-26058 `__: Add a new private " "version to the builtin dict type, incremented at each dictionary creation " "and at each dictionary change. Implementation of the PEP 509." msgstr "" -#: ../../../build/NEWS:10384 +#: ../../../build/NEWS:11008 msgid "" "`bpo-27364 `__: A backslash-character " -"pair that is not a valid escape sequence now generates a DeprecationWarning." -" Patch by Emanuel Barry." +"pair that is not a valid escape sequence now generates a " +"DeprecationWarning. Patch by Emanuel Barry." msgstr "" -#: ../../../build/NEWS:10387 +#: ../../../build/NEWS:11011 msgid "" -"`bpo-27350 `__: `dict` implementation is" -" changed like PyPy. It is more compact and preserves insertion order. " +"`bpo-27350 `__: `dict` implementation is " +"changed like PyPy. It is more compact and preserves insertion order. " "(Concept developed by Raymond Hettinger and patch by Inada Naoki.)" msgstr "" -#: ../../../build/NEWS:10391 +#: ../../../build/NEWS:11015 msgid "" -"`bpo-27911 `__: Remove unnecessary error" -" checks in ``exec_builtin_or_dynamic()``." +"`bpo-27911 `__: Remove unnecessary error " +"checks in ``exec_builtin_or_dynamic()``." msgstr "" -#: ../../../build/NEWS:10394 +#: ../../../build/NEWS:11018 msgid "" "`bpo-27078 `__: Added BUILD_STRING " "opcode. Optimized f-strings evaluation." msgstr "" -#: ../../../build/NEWS:10396 +#: ../../../build/NEWS:11020 msgid "" "`bpo-17884 `__: Python now requires " "systems with inttypes.h and stdint.h" msgstr "" -#: ../../../build/NEWS:10398 +#: ../../../build/NEWS:11022 msgid "" "`bpo-27961 `__: Require platforms to " "support ``long long``. Python hasn't compiled without ``long long`` for " "years, so this is basically a formality." msgstr "" -#: ../../../build/NEWS:10402 +#: ../../../build/NEWS:11026 msgid "" "`bpo-27355 `__: Removed support for " "Windows CE. It was never finished, and Windows CE is no longer a relevant " "platform for Python." msgstr "" -#: ../../../build/NEWS:10405 +#: ../../../build/NEWS:11029 msgid "Implement PEP 523." msgstr "" -#: ../../../build/NEWS:10407 +#: ../../../build/NEWS:11031 msgid "" "`bpo-27870 `__: A left shift of zero by " "a large integer no longer attempts to allocate large amounts of memory." msgstr "" -#: ../../../build/NEWS:10410 +#: ../../../build/NEWS:11034 msgid "" -"`bpo-25402 `__: In int-to-decimal-string" -" conversion, improve the estimate of the intermediate memory required, and " +"`bpo-25402 `__: In int-to-decimal-string " +"conversion, improve the estimate of the intermediate memory required, and " "remove an unnecessarily strict overflow check. Patch by Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:10414 +#: ../../../build/NEWS:11038 msgid "" "`bpo-27214 `__: In long_invert, be more " "careful about modifying object returned by long_add, and remove an " -"unnecessary check for small longs. Thanks Oren Milman for analysis and " -"patch." +"unnecessary check for small longs. Thanks Oren Milman for analysis and patch." msgstr "" -#: ../../../build/NEWS:10418 +#: ../../../build/NEWS:11042 msgid "" "`bpo-27506 `__: Support passing the " "bytes/bytearray.translate() \"delete\" argument by keyword." msgstr "" -#: ../../../build/NEWS:10421 ../../../build/NEWS:13478 +#: ../../../build/NEWS:11045 ../../../build/NEWS:14102 msgid "" "`bpo-27812 `__: Properly clear out a " "generator's frame's backreference to the generator to prevent crashes in " "frame.clear()." msgstr "" -#: ../../../build/NEWS:10424 ../../../build/NEWS:13481 +#: ../../../build/NEWS:11048 ../../../build/NEWS:14105 msgid "" "`bpo-27811 `__: Fix a crash when a " "coroutine that has not been awaited is finalized with warnings-as-errors " "enabled." msgstr "" -#: ../../../build/NEWS:10427 ../../../build/NEWS:13484 +#: ../../../build/NEWS:11051 ../../../build/NEWS:14108 msgid "" "`bpo-27587 `__: Fix another issue found " "by PVS-Studio: Null pointer check after use of 'def' in " "_PyState_AddModule(). Initial patch by Christian Heimes." msgstr "" -#: ../../../build/NEWS:10430 +#: ../../../build/NEWS:11054 msgid "" "`bpo-27792 `__: The modulo operation " "applied to ``bool`` and other ``int`` subclasses now always returns an " @@ -15452,162 +16488,161 @@ msgid "" "Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10434 +#: ../../../build/NEWS:11058 msgid "" -"`bpo-26984 `__: int() now always returns" -" an instance of exact int." +"`bpo-26984 `__: int() now always returns " +"an instance of exact int." msgstr "" -#: ../../../build/NEWS:10436 +#: ../../../build/NEWS:11060 msgid "" "`bpo-25604 `__: Fix a minor bug in " -"integer true division; this bug could potentially have caused off-by-one-ulp" -" results on platforms with unreliable ldexp implementations." +"integer true division; this bug could potentially have caused off-by-one-ulp " +"results on platforms with unreliable ldexp implementations." msgstr "" -#: ../../../build/NEWS:10440 +#: ../../../build/NEWS:11064 msgid "" "`bpo-24254 `__: Make class definition " "namespace ordered by default." msgstr "" -#: ../../../build/NEWS:10442 +#: ../../../build/NEWS:11066 msgid "" -"`bpo-27662 `__: Fix an overflow check in" -" ``List_New``: the original code was checking against ``Py_SIZE_MAX`` " -"instead of the correct upper bound of ``Py_SSIZE_T_MAX``. Patch by Xiang " -"Zhang." +"`bpo-27662 `__: Fix an overflow check in " +"``List_New``: the original code was checking against ``Py_SIZE_MAX`` instead " +"of the correct upper bound of ``Py_SSIZE_T_MAX``. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10446 ../../../build/NEWS:13490 +#: ../../../build/NEWS:11070 ../../../build/NEWS:14114 msgid "" "`bpo-27782 `__: Multi-phase extension " -"module import now correctly allows the ``m_methods`` field to be used to add" -" module level functions to instances of non-module types returned from " +"module import now correctly allows the ``m_methods`` field to be used to add " +"module level functions to instances of non-module types returned from " "``Py_create_mod``. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10450 ../../../build/NEWS:13494 +#: ../../../build/NEWS:11074 ../../../build/NEWS:14118 msgid "" "`bpo-27936 `__: The round() function " "accepted a second None argument for some types but not for others. Fixed " "the inconsistency by accepting None for all numeric types." msgstr "" -#: ../../../build/NEWS:10454 ../../../build/NEWS:13498 +#: ../../../build/NEWS:11078 ../../../build/NEWS:14122 msgid "" "`bpo-27487 `__: Warn if a submodule " "argument to \"python -m\" or runpy.run_module() is found in sys.modules " "after parent packages are imported, but before the submodule is executed." msgstr "" -#: ../../../build/NEWS:10458 +#: ../../../build/NEWS:11082 msgid "" "`bpo-27157 `__: Make only type() itself " "accept the one-argument form. Patch by Eryk Sun and Emanuel Barry." msgstr "" -#: ../../../build/NEWS:10461 ../../../build/NEWS:13502 +#: ../../../build/NEWS:11085 ../../../build/NEWS:14126 msgid "" -"`bpo-27558 `__: Fix a SystemError in the" -" implementation of \"raise\" statement. In a brand new thread, raise a " -"RuntimeError since there is no active exception to reraise. Patch written by" -" Xiang Zhang." +"`bpo-27558 `__: Fix a SystemError in the " +"implementation of \"raise\" statement. In a brand new thread, raise a " +"RuntimeError since there is no active exception to reraise. Patch written by " +"Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10465 +#: ../../../build/NEWS:11089 msgid "" "`bpo-28008 `__: Implement PEP 530 -- " "asynchronous comprehensions." msgstr "" -#: ../../../build/NEWS:10467 ../../../build/NEWS:13527 +#: ../../../build/NEWS:11091 ../../../build/NEWS:14151 msgid "" "`bpo-27942 `__: Fix memory leak in " "codeobject.c" msgstr "" -#: ../../../build/NEWS:10472 ../../../build/NEWS:13571 +#: ../../../build/NEWS:11096 ../../../build/NEWS:14195 msgid "" -"`bpo-28732 `__: Fix crash in os.spawnv()" -" with no elements in args" +"`bpo-28732 `__: Fix crash in os.spawnv() " +"with no elements in args" msgstr "" -#: ../../../build/NEWS:10474 ../../../build/NEWS:13573 +#: ../../../build/NEWS:11098 ../../../build/NEWS:14197 msgid "" "`bpo-28485 `__: Always raise ValueError " "for negative compileall.compile_dir(workers=...) parameter, even when " "multithreading is unavailable." msgstr "" -#: ../../../build/NEWS:10478 +#: ../../../build/NEWS:11102 msgid "" "`bpo-28037 `__: Use " "sqlite3_get_autocommit() instead of setting Connection->inTransaction " "manually." msgstr "" -#: ../../../build/NEWS:10481 +#: ../../../build/NEWS:11105 msgid "" -"`bpo-25283 `__: Attributes tm_gmtoff and" -" tm_zone are now available on all platforms in the return values of " -"time.localtime() and time.gmtime()." +"`bpo-25283 `__: Attributes tm_gmtoff and " +"tm_zone are now available on all platforms in the return values of time." +"localtime() and time.gmtime()." msgstr "" -#: ../../../build/NEWS:10484 +#: ../../../build/NEWS:11108 msgid "" -"`bpo-24454 `__: Regular expression match" -" object groups are now accessible using __getitem__. \"mo[x]\" is equivalent" -" to \"mo.group(x)\"." +"`bpo-24454 `__: Regular expression match " +"object groups are now accessible using __getitem__. \"mo[x]\" is equivalent " +"to \"mo.group(x)\"." msgstr "" -#: ../../../build/NEWS:10487 +#: ../../../build/NEWS:11111 msgid "" "`bpo-10740 `__: sqlite3 no longer " "implicitly commit an open transaction before DDL statements." msgstr "" -#: ../../../build/NEWS:10490 +#: ../../../build/NEWS:11114 msgid "" -"`bpo-17941 `__: Add a *module* parameter" -" to collections.namedtuple()." +"`bpo-17941 `__: Add a *module* parameter " +"to collections.namedtuple()." msgstr "" -#: ../../../build/NEWS:10492 +#: ../../../build/NEWS:11116 msgid "" "`bpo-22493 `__: Inline flags now should " "be used only at the start of the regular expression. Deprecation warning is " "emitted if uses them in the middle of the regular expression." msgstr "" -#: ../../../build/NEWS:10496 +#: ../../../build/NEWS:11120 msgid "" "`bpo-26885 `__: xmlrpc now supports " "unmarshalling additional data types used by Apache XML-RPC implementation " "for numerics and None." msgstr "" -#: ../../../build/NEWS:10499 +#: ../../../build/NEWS:11123 msgid "" "`bpo-28070 `__: Fixed parsing inline " "verbose flag in regular expressions." msgstr "" -#: ../../../build/NEWS:10501 +#: ../../../build/NEWS:11125 msgid "" "`bpo-19500 `__: Add client-side SSL " "session resumption to the ssl module." msgstr "" -#: ../../../build/NEWS:10503 +#: ../../../build/NEWS:11127 msgid "" "`bpo-28022 `__: Deprecate ssl-related " -"arguments in favor of SSLContext. The deprecation include manual creation of" -" SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, " +"arguments in favor of SSLContext. The deprecation include manual creation of " +"SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, " "smtplib, poplib and urllib." msgstr "" -#: ../../../build/NEWS:10507 +#: ../../../build/NEWS:11131 msgid "" "`bpo-28043 `__: SSLContext has improved " "default settings: OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_COMPRESSION, " @@ -15615,140 +16650,140 @@ msgid "" "ciphers without MD5." msgstr "" -#: ../../../build/NEWS:10511 +#: ../../../build/NEWS:11135 msgid "" "`bpo-24693 `__: Changed some " "RuntimeError's in the zipfile module to more appropriate types. Improved " "some error messages and debugging output." msgstr "" -#: ../../../build/NEWS:10514 +#: ../../../build/NEWS:11138 msgid "" -"`bpo-17909 `__: ``json.load`` and " -"``json.loads`` now support binary input encoded as UTF-8, UTF-16 or UTF-32. " -"Patch by Serhiy Storchaka." +"`bpo-17909 `__: ``json.load`` and ``json." +"loads`` now support binary input encoded as UTF-8, UTF-16 or UTF-32. Patch " +"by Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:10517 +#: ../../../build/NEWS:11141 msgid "" -"`bpo-27137 `__: the pure Python fallback" -" implementation of ``functools.partial`` now matches the behaviour of its " +"`bpo-27137 `__: the pure Python fallback " +"implementation of ``functools.partial`` now matches the behaviour of its " "accelerated C counterpart for subclassing, pickling and text representation " "purposes. Patch by Emanuel Barry and Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:10522 ../../../build/NEWS:13626 +#: ../../../build/NEWS:11146 ../../../build/NEWS:14250 msgid "" "Fix possible integer overflows and crashes in the mmap module with unusual " "usage patterns." msgstr "" -#: ../../../build/NEWS:10525 ../../../build/NEWS:13629 +#: ../../../build/NEWS:11149 ../../../build/NEWS:14253 msgid "" "`bpo-1703178 `__: Fix the ability to " "pass the --link-objects option to the distutils build_ext command." msgstr "" -#: ../../../build/NEWS:10528 ../../../build/NEWS:13678 +#: ../../../build/NEWS:11152 ../../../build/NEWS:14302 msgid "" "`bpo-28019 `__: itertools.count() no " "longer rounds non-integer step in range between 1.0 and 2.0 to 1." msgstr "" -#: ../../../build/NEWS:10531 +#: ../../../build/NEWS:11155 msgid "" "`bpo-18401 `__: Pdb now supports the " "'readrc' keyword argument to control whether .pdbrc files should be read. " "Patch by Martin Matusiak and Sam Kimbrel." msgstr "" -#: ../../../build/NEWS:10535 ../../../build/NEWS:13681 +#: ../../../build/NEWS:11159 ../../../build/NEWS:14305 msgid "" "`bpo-25969 `__: Update the lib2to3 " "grammar to handle the unpacking generalizations added in 3.5." msgstr "" -#: ../../../build/NEWS:10538 ../../../build/NEWS:13684 +#: ../../../build/NEWS:11162 ../../../build/NEWS:14308 msgid "" -"`bpo-14977 `__: mailcap now respects the" -" order of the lines in the mailcap files (\"first match\"), as required by " +"`bpo-14977 `__: mailcap now respects the " +"order of the lines in the mailcap files (\"first match\"), as required by " "RFC 1542. Patch by Michael Lazar." msgstr "" -#: ../../../build/NEWS:10541 +#: ../../../build/NEWS:11165 msgid "" "`bpo-28082 `__: Convert re flag " "constants to IntFlag." msgstr "" -#: ../../../build/NEWS:10543 +#: ../../../build/NEWS:11167 msgid "" "`bpo-28025 `__: Convert all ssl module " "constants to IntEnum and IntFlags. SSLContext properties now return flags " "and enums." msgstr "" -#: ../../../build/NEWS:10546 +#: ../../../build/NEWS:11170 msgid "" "`bpo-23591 `__: Add Flag, IntFlag, and " "auto() to enum module." msgstr "" -#: ../../../build/NEWS:10548 +#: ../../../build/NEWS:11172 msgid "" "`bpo-433028 `__: Added support of " "modifier spans in regular expressions." msgstr "" -#: ../../../build/NEWS:10550 ../../../build/NEWS:13687 +#: ../../../build/NEWS:11174 ../../../build/NEWS:14311 msgid "" "`bpo-24594 `__: Validates persist " "parameter when opening MSI database" msgstr "" -#: ../../../build/NEWS:10552 ../../../build/NEWS:13689 +#: ../../../build/NEWS:11176 ../../../build/NEWS:14313 msgid "" "`bpo-17582 `__: xml.etree.ElementTree " "nows preserves whitespaces in attributes (Patch by Duane Griffin. Reviewed " "and approved by Stefan Behnel.)" msgstr "" -#: ../../../build/NEWS:10555 ../../../build/NEWS:13692 +#: ../../../build/NEWS:11179 ../../../build/NEWS:14316 msgid "" "`bpo-28047 `__: Fixed calculation of " "line length used for the base64 CTE in the new email policies." msgstr "" -#: ../../../build/NEWS:10558 +#: ../../../build/NEWS:11182 msgid "" "`bpo-27576 `__: Fix call order in " "OrderedDict.__init__()." msgstr "" -#: ../../../build/NEWS:10560 +#: ../../../build/NEWS:11184 msgid "email.generator.DecodedGenerator now supports the policy keyword." msgstr "" -#: ../../../build/NEWS:10562 +#: ../../../build/NEWS:11186 msgid "" "`bpo-28027 `__: Remove undocumented " "modules from ``Lib/plat-*``: IN, CDROM, DLFCN, TYPES, CDIO, and STROPTS." msgstr "" -#: ../../../build/NEWS:10565 ../../../build/NEWS:13695 +#: ../../../build/NEWS:11189 ../../../build/NEWS:14319 msgid "" -"`bpo-27445 `__: Don't pass str(_charset)" -" to MIMEText.set_payload(). Patch by Claude Paroz." +"`bpo-27445 `__: Don't pass str(_charset) " +"to MIMEText.set_payload(). Patch by Claude Paroz." msgstr "" -#: ../../../build/NEWS:10568 +#: ../../../build/NEWS:11192 msgid "" "`bpo-24277 `__: The new email API is no " "longer provisional, and the docs have been reorganized and rewritten to " "emphasize the new API." msgstr "" -#: ../../../build/NEWS:10571 ../../../build/NEWS:13698 +#: ../../../build/NEWS:11195 ../../../build/NEWS:14322 msgid "" "`bpo-22450 `__: urllib now includes an " "``Accept: */*`` header among the default headers. This makes the results of " @@ -15756,476 +16791,474 @@ msgid "" "servers are involved." msgstr "" -#: ../../../build/NEWS:10575 ../../../build/NEWS:13702 +#: ../../../build/NEWS:11199 ../../../build/NEWS:14326 msgid "" "lib2to3.pgen3.driver.load_grammar() now creates a stable cache file between " "runs given the same Grammar.txt input regardless of the hash randomization " "setting." msgstr "" -#: ../../../build/NEWS:10579 +#: ../../../build/NEWS:11203 msgid "" "`bpo-28005 `__: Allow ImportErrors in " "encoding implementation to propagate." msgstr "" -#: ../../../build/NEWS:10581 +#: ../../../build/NEWS:11205 msgid "" "`bpo-26667 `__: Support path-like " "objects in importlib.util." msgstr "" -#: ../../../build/NEWS:10583 ../../../build/NEWS:13706 +#: ../../../build/NEWS:11207 ../../../build/NEWS:14330 msgid "" "`bpo-27570 `__: Avoid zero-length " -"memcpy() etc calls with null source pointers in the \"ctypes\" and \"array\"" -" modules." +"memcpy() etc calls with null source pointers in the \"ctypes\" and \"array\" " +"modules." msgstr "" -#: ../../../build/NEWS:10586 ../../../build/NEWS:13709 +#: ../../../build/NEWS:11210 ../../../build/NEWS:14333 msgid "" -"`bpo-22233 `__: Break email header lines" -" *only* on the RFC specified CR and LF characters, not on arbitrary unicode " +"`bpo-22233 `__: Break email header lines " +"*only* on the RFC specified CR and LF characters, not on arbitrary unicode " "line breaks. This also fixes a bug in HTTP header parsing." msgstr "" -#: ../../../build/NEWS:10590 +#: ../../../build/NEWS:11214 msgid "" "`bpo-27331 `__: The email.mime classes " "now all accept an optional policy keyword." msgstr "" -#: ../../../build/NEWS:10593 ../../../build/NEWS:13713 +#: ../../../build/NEWS:11217 ../../../build/NEWS:14337 msgid "" "`bpo-27988 `__: Fix email " "iter_attachments incorrect mutation of payload list." msgstr "" -#: ../../../build/NEWS:10595 +#: ../../../build/NEWS:11219 msgid "" "`bpo-16113 `__: Add SHA-3 and SHAKE " "support to hashlib module." msgstr "" -#: ../../../build/NEWS:10597 +#: ../../../build/NEWS:11221 msgid "Eliminate a tautological-pointer-compare warning in _scproxy.c." msgstr "" -#: ../../../build/NEWS:10599 +#: ../../../build/NEWS:11223 msgid "" "`bpo-27776 `__: The :func:`os.urandom` " "function does now block on Linux 3.17 and newer until the system urandom " -"entropy pool is initialized to increase the security. This change is part of" -" the :pep:`524`." +"entropy pool is initialized to increase the security. This change is part of " +"the :pep:`524`." msgstr "" -#: ../../../build/NEWS:10603 +#: ../../../build/NEWS:11227 msgid "" "`bpo-27778 `__: Expose the Linux " "``getrandom()`` syscall as a new :func:`os.getrandom` function. This change " "is part of the :pep:`524`." msgstr "" -#: ../../../build/NEWS:10606 ../../../build/NEWS:13715 +#: ../../../build/NEWS:11230 ../../../build/NEWS:14339 msgid "" -"`bpo-27691 `__: Fix ssl module's parsing" -" of GEN_RID subject alternative name fields in X.509 certs." +"`bpo-27691 `__: Fix ssl module's parsing " +"of GEN_RID subject alternative name fields in X.509 certs." msgstr "" -#: ../../../build/NEWS:10609 +#: ../../../build/NEWS:11233 msgid "" "`bpo-18844 `__: Add random.choices()." msgstr "" -#: ../../../build/NEWS:10611 +#: ../../../build/NEWS:11235 msgid "" -"`bpo-25761 `__: Improved error reporting" -" about truncated pickle data in C implementation of unpickler. " +"`bpo-25761 `__: Improved error reporting " +"about truncated pickle data in C implementation of unpickler. " "UnpicklingError is now raised instead of AttributeError and ValueError in " "some cases." msgstr "" -#: ../../../build/NEWS:10615 +#: ../../../build/NEWS:11239 msgid "" "`bpo-26798 `__: Add BLAKE2 (blake2b and " "blake2s) to hashlib." msgstr "" -#: ../../../build/NEWS:10617 +#: ../../../build/NEWS:11241 msgid "" "`bpo-26032 `__: Optimized globbing in " "pathlib by using os.scandir(); it is now about 1.5--4 times faster." msgstr "" -#: ../../../build/NEWS:10620 +#: ../../../build/NEWS:11244 msgid "" "`bpo-25596 `__: Optimized glob() and " "iglob() functions in the glob module; they are now about 3--6 times faster." msgstr "" -#: ../../../build/NEWS:10623 +#: ../../../build/NEWS:11247 msgid "" "`bpo-27928 `__: Add scrypt (password-" "based key derivation function) to hashlib module (requires OpenSSL 1.1.0)." msgstr "" -#: ../../../build/NEWS:10626 ../../../build/NEWS:13718 +#: ../../../build/NEWS:11250 ../../../build/NEWS:14342 msgid "" "`bpo-27850 `__: Remove 3DES from ssl " "module's default cipher list to counter measure sweet32 attack " "(CVE-2016-2183)." msgstr "" -#: ../../../build/NEWS:10629 ../../../build/NEWS:13721 +#: ../../../build/NEWS:11253 ../../../build/NEWS:14345 msgid "" -"`bpo-27766 `__: Add ChaCha20 Poly1305 to" -" ssl module's default cipher list. (Required OpenSSL 1.1.0 or LibreSSL)." +"`bpo-27766 `__: Add ChaCha20 Poly1305 to " +"ssl module's default cipher list. (Required OpenSSL 1.1.0 or LibreSSL)." msgstr "" -#: ../../../build/NEWS:10632 +#: ../../../build/NEWS:11256 msgid "" "`bpo-25387 `__: Check return value of " "winsound.MessageBeep." msgstr "" -#: ../../../build/NEWS:10634 +#: ../../../build/NEWS:11258 msgid "" -"`bpo-27866 `__: Add " -"SSLContext.get_ciphers() method to get a list of all enabled ciphers." +"`bpo-27866 `__: Add SSLContext." +"get_ciphers() method to get a list of all enabled ciphers." msgstr "" -#: ../../../build/NEWS:10637 +#: ../../../build/NEWS:11261 msgid "" -"`bpo-27744 `__: Add AF_ALG (Linux Kernel" -" crypto) to socket module." +"`bpo-27744 `__: Add AF_ALG (Linux Kernel " +"crypto) to socket module." msgstr "" -#: ../../../build/NEWS:10639 ../../../build/NEWS:13724 +#: ../../../build/NEWS:11263 ../../../build/NEWS:14348 msgid "" "`bpo-26470 `__: Port ssl and hashlib " "module to OpenSSL 1.1.0." msgstr "" -#: ../../../build/NEWS:10641 +#: ../../../build/NEWS:11265 msgid "" "`bpo-11620 `__: Fix support for " "SND_MEMORY in winsound.PlaySound. Based on a patch by Tim Lesher." msgstr "" -#: ../../../build/NEWS:10644 +#: ../../../build/NEWS:11268 msgid "" -"`bpo-11734 `__: Add support for IEEE 754" -" half-precision floats to the struct module. Based on a patch by Eli " -"Stevens." +"`bpo-11734 `__: Add support for IEEE 754 " +"half-precision floats to the struct module. Based on a patch by Eli Stevens." msgstr "" -#: ../../../build/NEWS:10647 +#: ../../../build/NEWS:11271 msgid "" "`bpo-27919 `__: Deprecated " "``extra_path`` distribution option in distutils packaging." msgstr "" -#: ../../../build/NEWS:10650 +#: ../../../build/NEWS:11274 msgid "" "`bpo-23229 `__: Add new ``cmath`` " -"constants: ``cmath.inf`` and ``cmath.nan`` to match ``math.inf`` and " -"``math.nan``, and also ``cmath.infj`` and ``cmath.nanj`` to match the format" -" used by complex repr." +"constants: ``cmath.inf`` and ``cmath.nan`` to match ``math.inf`` and ``math." +"nan``, and also ``cmath.infj`` and ``cmath.nanj`` to match the format used " +"by complex repr." msgstr "" -#: ../../../build/NEWS:10654 +#: ../../../build/NEWS:11278 msgid "" "`bpo-27842 `__: The csv.DictReader now " "returns rows of type OrderedDict. (Contributed by Steve Holden.)" msgstr "" -#: ../../../build/NEWS:10657 ../../../build/NEWS:13726 +#: ../../../build/NEWS:11281 ../../../build/NEWS:14350 msgid "" "Remove support for passing a file descriptor to os.access. It never worked " "but previously didn't raise." msgstr "" -#: ../../../build/NEWS:10660 ../../../build/NEWS:13729 +#: ../../../build/NEWS:11284 ../../../build/NEWS:14353 msgid "" -"`bpo-12885 `__: Fix error when distutils" -" encounters symlink." +"`bpo-12885 `__: Fix error when distutils " +"encounters symlink." msgstr "" -#: ../../../build/NEWS:10662 ../../../build/NEWS:13731 +#: ../../../build/NEWS:11286 ../../../build/NEWS:14355 msgid "" -"`bpo-27881 `__: Fixed possible bugs when" -" setting sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang." +"`bpo-27881 `__: Fixed possible bugs when " +"setting sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10665 ../../../build/NEWS:13734 +#: ../../../build/NEWS:11289 ../../../build/NEWS:14358 msgid "" -"`bpo-27861 `__: Fixed a crash in " -"sqlite3.Connection.cursor() when a factory creates not a cursor. Patch by " -"Xiang Zhang." +"`bpo-27861 `__: Fixed a crash in sqlite3." +"Connection.cursor() when a factory creates not a cursor. Patch by Xiang " +"Zhang." msgstr "" -#: ../../../build/NEWS:10668 ../../../build/NEWS:13737 +#: ../../../build/NEWS:11292 ../../../build/NEWS:14361 msgid "" -"`bpo-19884 `__: Avoid spurious output on" -" OS X with Gnu Readline." +"`bpo-19884 `__: Avoid spurious output on " +"OS X with Gnu Readline." msgstr "" -#: ../../../build/NEWS:10670 ../../../build/NEWS:13739 +#: ../../../build/NEWS:11294 ../../../build/NEWS:14363 msgid "" "`bpo-27706 `__: Restore deterministic " -"behavior of random.Random().seed() for string seeds using seeding version 1." -" Allows sequences of calls to random() to exactly match those obtained in " +"behavior of random.Random().seed() for string seeds using seeding version " +"1. Allows sequences of calls to random() to exactly match those obtained in " "Python 2. Patch by Nofar Schnider." msgstr "" -#: ../../../build/NEWS:10675 ../../../build/NEWS:13744 +#: ../../../build/NEWS:11299 ../../../build/NEWS:14368 msgid "" "`bpo-10513 `__: Fix a regression in " "Connection.commit(). Statements should not be reset after a commit." msgstr "" -#: ../../../build/NEWS:10678 +#: ../../../build/NEWS:11302 msgid "" "`bpo-12319 `__: Chunked transfer " -"encoding support added to http.client.HTTPConnection requests. The " -"urllib.request.AbstractHTTPHandler class does not enforce a Content-Length " -"header any more. If a HTTP request has a file or iterable body, but no " -"Content-Length header, the library now falls back to use chunked transfer-" -"encoding." +"encoding support added to http.client.HTTPConnection requests. The urllib." +"request.AbstractHTTPHandler class does not enforce a Content-Length header " +"any more. If a HTTP request has a file or iterable body, but no Content-" +"Length header, the library now falls back to use chunked transfer-encoding." msgstr "" -#: ../../../build/NEWS:10685 +#: ../../../build/NEWS:11309 msgid "" "A new version of typing.py from https://github.com/python/typing: - " -"Collection (only for 3.6) (`bpo-27598 " -"`__) - Add FrozenSet to __all__ " -"(upstream #261) - fix crash in _get_type_vars() (upstream #259) - Remove the" -" dict constraint in ForwardRef._eval_type (upstream #252)" +"Collection (only for 3.6) (`bpo-27598 `__) - Add FrozenSet to __all__ (upstream #261) - fix crash in " +"_get_type_vars() (upstream #259) - Remove the dict constraint in ForwardRef." +"_eval_type (upstream #252)" msgstr "" -#: ../../../build/NEWS:10690 +#: ../../../build/NEWS:11314 msgid "" "`bpo-27832 `__: Make ``_normalize`` " "parameter to ``Fraction`` constuctor keyword-only, so that ``Fraction(2, 3, " "4)`` now raises ``TypeError``." msgstr "" -#: ../../../build/NEWS:10693 ../../../build/NEWS:13752 +#: ../../../build/NEWS:11317 ../../../build/NEWS:14376 msgid "" "`bpo-27539 `__: Fix unnormalised " "``Fraction.__pow__`` result in the case of negative exponent and negative " "base." msgstr "" -#: ../../../build/NEWS:10696 ../../../build/NEWS:13755 +#: ../../../build/NEWS:11320 ../../../build/NEWS:14379 msgid "" "`bpo-21718 `__: cursor.description is " "now available for queries using CTEs." msgstr "" -#: ../../../build/NEWS:10698 +#: ../../../build/NEWS:11322 msgid "" "`bpo-27819 `__: In distutils sdists, " "simply produce the \"gztar\" (gzipped tar format) distributions on all " "platforms unless \"formats\" is supplied." msgstr "" -#: ../../../build/NEWS:10701 ../../../build/NEWS:13757 +#: ../../../build/NEWS:11325 ../../../build/NEWS:14381 msgid "" "`bpo-2466 `__: posixpath.ismount now " -"correctly recognizes mount points which the user does not have permission to" -" access." +"correctly recognizes mount points which the user does not have permission to " +"access." msgstr "" -#: ../../../build/NEWS:10704 +#: ../../../build/NEWS:11328 msgid "" -"`bpo-9998 `__: On Linux, " -"ctypes.util.find_library now looks in LD_LIBRARY_PATH for shared libraries." +"`bpo-9998 `__: On Linux, ctypes.util." +"find_library now looks in LD_LIBRARY_PATH for shared libraries." msgstr "" -#: ../../../build/NEWS:10707 +#: ../../../build/NEWS:11331 msgid "" -"`bpo-27573 `__: exit message for " -"code.interact is now configurable." +"`bpo-27573 `__: exit message for code." +"interact is now configurable." msgstr "" -#: ../../../build/NEWS:10709 ../../../build/NEWS:13865 +#: ../../../build/NEWS:11333 ../../../build/NEWS:14489 msgid "" "`bpo-27930 `__: Improved behaviour of " "logging.handlers.QueueListener. Thanks to Paulo Andrade and Petr Viktorin " "for the analysis and patch." msgstr "" -#: ../../../build/NEWS:10712 +#: ../../../build/NEWS:11336 msgid "" "`bpo-6766 `__: Distributed reference " "counting added to multiprocessing to support nesting of shared values / " "proxy objects." msgstr "" -#: ../../../build/NEWS:10715 ../../../build/NEWS:13868 +#: ../../../build/NEWS:11339 ../../../build/NEWS:14492 msgid "" "`bpo-21201 `__: Improves readability of " "multiprocessing error message. Thanks to Wojciech Walczak for patch." msgstr "" -#: ../../../build/NEWS:10718 +#: ../../../build/NEWS:11342 msgid "asyncio: Add set_protocol / get_protocol to Transports." msgstr "" -#: ../../../build/NEWS:10720 ../../../build/NEWS:13871 +#: ../../../build/NEWS:11344 ../../../build/NEWS:14495 msgid "" -"`bpo-27456 `__: asyncio: Set TCP_NODELAY" -" by default." +"`bpo-27456 `__: asyncio: Set TCP_NODELAY " +"by default." msgstr "" -#: ../../../build/NEWS:10725 ../../../build/NEWS:13936 +#: ../../../build/NEWS:11349 ../../../build/NEWS:14560 msgid "" "`bpo-15308 `__: Add 'interrupt " "execution' (^C) to Shell menu. Patch by Roger Serwy, updated by Bayard " "Randel." msgstr "" -#: ../../../build/NEWS:10728 ../../../build/NEWS:13939 +#: ../../../build/NEWS:11352 ../../../build/NEWS:14563 msgid "" "`bpo-27922 `__: Stop IDLE tests from " "'flashing' gui widgets on the screen." msgstr "" -#: ../../../build/NEWS:10730 +#: ../../../build/NEWS:11354 msgid "" "`bpo-27891 `__: Consistently group and " "sort imports within idlelib modules." msgstr "" -#: ../../../build/NEWS:10732 +#: ../../../build/NEWS:11356 msgid "" "`bpo-17642 `__: add larger font sizes " "for classroom projection." msgstr "" -#: ../../../build/NEWS:10734 ../../../build/NEWS:13941 +#: ../../../build/NEWS:11358 ../../../build/NEWS:14565 msgid "Add version to title of IDLE help window." msgstr "" -#: ../../../build/NEWS:10736 ../../../build/NEWS:13943 +#: ../../../build/NEWS:11360 ../../../build/NEWS:14567 msgid "" "`bpo-25564 `__: In section on IDLE -- " "console differences, mention that using exec means that __builtins__ is " "defined for each statement." msgstr "" -#: ../../../build/NEWS:10739 +#: ../../../build/NEWS:11363 msgid "" "`bpo-27821 `__: Fix 3.6.0a3 regression " "that prevented custom key sets from being selected when no custom theme was " "defined." msgstr "" -#: ../../../build/NEWS:10745 +#: ../../../build/NEWS:11369 msgid "" "`bpo-26900 `__: Excluded underscored " "names and other private API from limited API." msgstr "" -#: ../../../build/NEWS:10748 +#: ../../../build/NEWS:11372 msgid "" "`bpo-26027 `__: Add support for path-" "like objects in PyUnicode_FSConverter() & PyUnicode_FSDecoder()." msgstr "" -#: ../../../build/NEWS:10754 +#: ../../../build/NEWS:11378 msgid "" -"`bpo-27427 `__: Additional tests for the" -" math module. Patch by Francisco Couzo." +"`bpo-27427 `__: Additional tests for the " +"math module. Patch by Francisco Couzo." msgstr "" -#: ../../../build/NEWS:10756 +#: ../../../build/NEWS:11380 msgid "" "`bpo-27953 `__: Skip math and cmath " "tests that fail on OS X 10.4 due to a poor libm implementation of tan." msgstr "" -#: ../../../build/NEWS:10759 +#: ../../../build/NEWS:11383 msgid "" "`bpo-26040 `__: Improve test_math and " "test_cmath coverage and rigour. Patch by Jeff Allen." msgstr "" -#: ../../../build/NEWS:10762 ../../../build/NEWS:13988 +#: ../../../build/NEWS:11386 ../../../build/NEWS:14612 msgid "" -"`bpo-27787 `__: Call gc.collect() before" -" checking each test for \"dangling threads\", since the dangling threads are" -" weak references." +"`bpo-27787 `__: Call gc.collect() before " +"checking each test for \"dangling threads\", since the dangling threads are " +"weak references." msgstr "" -#: ../../../build/NEWS:10768 ../../../build/NEWS:14048 +#: ../../../build/NEWS:11392 ../../../build/NEWS:14672 msgid "" "`bpo-27566 `__: Fix clean target in " "freeze makefile (patch by Lisa Roach)" msgstr "" -#: ../../../build/NEWS:10770 ../../../build/NEWS:14050 +#: ../../../build/NEWS:11394 ../../../build/NEWS:14674 msgid "" "`bpo-27705 `__: Update message in " "validate_ucrtbase.py" msgstr "" -#: ../../../build/NEWS:10772 +#: ../../../build/NEWS:11396 msgid "" "`bpo-27976 `__: Deprecate building " "_ctypes with the bundled copy of libffi on non-OSX UNIX platforms." msgstr "" -#: ../../../build/NEWS:10775 +#: ../../../build/NEWS:11399 msgid "" "`bpo-27983 `__: Cause lack of llvm-" -"profdata tool when using clang as required for PGO linking to be a configure" -" time error rather than make time when ``--with-optimizations`` is enabled." -" Also improve our ability to find the llvm-profdata tool on MacOS and some " +"profdata tool when using clang as required for PGO linking to be a configure " +"time error rather than make time when ``--with-optimizations`` is enabled. " +"Also improve our ability to find the llvm-profdata tool on MacOS and some " "Linuxes." msgstr "" -#: ../../../build/NEWS:10780 +#: ../../../build/NEWS:11404 msgid "" "`bpo-21590 `__: Support for DTrace and " "SystemTap probes." msgstr "" -#: ../../../build/NEWS:10782 ../../../build/NEWS:14057 +#: ../../../build/NEWS:11406 ../../../build/NEWS:14681 msgid "" "`bpo-26307 `__: The profile-opt build " "now applies PGO to the built-in modules." msgstr "" -#: ../../../build/NEWS:10784 +#: ../../../build/NEWS:11408 msgid "" "`bpo-26359 `__: Add the --with-" "optimizations flag to turn on LTO and PGO build support when available." msgstr "" -#: ../../../build/NEWS:10787 +#: ../../../build/NEWS:11411 msgid "" "`bpo-27917 `__: Set platform triplets " "for Android builds." msgstr "" -#: ../../../build/NEWS:10789 +#: ../../../build/NEWS:11413 msgid "" -"`bpo-25825 `__: Update references to the" -" $(LIBPL) installation path on AIX. This path was changed in 3.2a4." +"`bpo-25825 `__: Update references to the " +"$(LIBPL) installation path on AIX. This path was changed in 3.2a4." msgstr "" -#: ../../../build/NEWS:10792 +#: ../../../build/NEWS:11416 msgid "Update OS X installer to use SQLite 3.14.1 and XZ 5.2.2." msgstr "" -#: ../../../build/NEWS:10794 +#: ../../../build/NEWS:11418 msgid "" "`bpo-21122 `__: Fix LTO builds on OS X." msgstr "" -#: ../../../build/NEWS:10796 +#: ../../../build/NEWS:11420 msgid "" "`bpo-17128 `__: Build OS X installer " "with a private copy of OpenSSL. Also provide a sample Install Certificates " @@ -16233,96 +17266,95 @@ msgid "" "certifi module." msgstr "" -#: ../../../build/NEWS:10803 ../../../build/NEWS:13997 +#: ../../../build/NEWS:11427 ../../../build/NEWS:14621 msgid "" -"`bpo-27952 `__: Get " -"Tools/scripts/fixcid.py working with Python 3 and the current \"re\" module," -" avoid invalid Python backslash escapes, and fix a bug parsing escaped C " -"quote signs." +"`bpo-27952 `__: Get Tools/scripts/fixcid." +"py working with Python 3 and the current \"re\" module, avoid invalid Python " +"backslash escapes, and fix a bug parsing escaped C quote signs." msgstr "" -#: ../../../build/NEWS:10810 +#: ../../../build/NEWS:11434 msgid "" "`bpo-28065 `__: Update xz dependency to " "5.2.2 and build it from source." msgstr "" -#: ../../../build/NEWS:10812 ../../../build/NEWS:14014 +#: ../../../build/NEWS:11436 ../../../build/NEWS:14638 msgid "" -"`bpo-25144 `__: Ensures TargetDir is set" -" before continuing with custom install." +"`bpo-25144 `__: Ensures TargetDir is set " +"before continuing with custom install." msgstr "" -#: ../../../build/NEWS:10814 +#: ../../../build/NEWS:11438 msgid "" "`bpo-1602 `__: Windows console doesn't " "input or print Unicode (PEP 528)" msgstr "" -#: ../../../build/NEWS:10816 +#: ../../../build/NEWS:11440 msgid "" "`bpo-27781 `__: Change file system " "encoding on Windows to UTF-8 (PEP 529)" msgstr "" -#: ../../../build/NEWS:10818 +#: ../../../build/NEWS:11442 msgid "" "`bpo-27731 `__: Opt-out of MAX_PATH on " "Windows 10" msgstr "" -#: ../../../build/NEWS:10820 +#: ../../../build/NEWS:11444 msgid "" "`bpo-6135 `__: Adds encoding and errors " "parameters to subprocess." msgstr "" -#: ../../../build/NEWS:10822 +#: ../../../build/NEWS:11446 msgid "" -"`bpo-27959 `__: Adds oem encoding, alias" -" ansi to mbcs, move aliasmbcs to codec lookup." +"`bpo-27959 `__: Adds oem encoding, alias " +"ansi to mbcs, move aliasmbcs to codec lookup." msgstr "" -#: ../../../build/NEWS:10825 +#: ../../../build/NEWS:11449 msgid "" "`bpo-27982 `__: The functions of the " "winsound module now accept keyword arguments." msgstr "" -#: ../../../build/NEWS:10828 +#: ../../../build/NEWS:11452 msgid "" "`bpo-20366 `__: Build full text search " "support into SQLite on Windows." msgstr "" -#: ../../../build/NEWS:10830 +#: ../../../build/NEWS:11454 msgid "" "`bpo-27756 `__: Adds new icons for " "Python files and processes on Windows. Designs by Cherry Wang." msgstr "" -#: ../../../build/NEWS:10833 +#: ../../../build/NEWS:11457 msgid "" "`bpo-27883 `__: Update sqlite to " "3.14.1.0 on Windows." msgstr "" -#: ../../../build/NEWS:10837 +#: ../../../build/NEWS:11461 msgid "Python 3.6.0 alpha 4" msgstr "" -#: ../../../build/NEWS:10839 +#: ../../../build/NEWS:11463 msgid "*Release date: 2016-08-15*" msgstr "" -#: ../../../build/NEWS:10844 +#: ../../../build/NEWS:11468 msgid "" -"`bpo-27704 `__: Optimized creating bytes" -" and bytearray from byte-like objects and iterables. Speed up to 3 times for" -" short objects. Original patch by Naoki Inada." +"`bpo-27704 `__: Optimized creating bytes " +"and bytearray from byte-like objects and iterables. Speed up to 3 times for " +"short objects. Original patch by Naoki Inada." msgstr "" -#: ../../../build/NEWS:10848 +#: ../../../build/NEWS:11472 msgid "" "`bpo-26823 `__: Large sections of " "repeated lines in tracebacks are now abbreviated as \"[Previous line " @@ -16330,71 +17362,71 @@ msgid "" "Emanuel Barry." msgstr "" -#: ../../../build/NEWS:10852 +#: ../../../build/NEWS:11476 msgid "" -"`bpo-27574 `__: Decreased an overhead of" -" parsing keyword arguments in functions implemented with using Argument " +"`bpo-27574 `__: Decreased an overhead of " +"parsing keyword arguments in functions implemented with using Argument " "Clinic." msgstr "" -#: ../../../build/NEWS:10855 +#: ../../../build/NEWS:11479 msgid "" "`bpo-22557 `__: Now importing already " "imported modules is up to 2.5 times faster." msgstr "" -#: ../../../build/NEWS:10858 +#: ../../../build/NEWS:11482 msgid "" "`bpo-17596 `__: Include to " "help with Min GW building." msgstr "" -#: ../../../build/NEWS:10860 +#: ../../../build/NEWS:11484 msgid "" "`bpo-17599 `__: On Windows, rename the " "privately defined REPARSE_DATA_BUFFER structure to avoid conflicting with " "the definition from Min GW." msgstr "" -#: ../../../build/NEWS:10863 ../../../build/NEWS:13518 +#: ../../../build/NEWS:11487 ../../../build/NEWS:14142 msgid "" "`bpo-27507 `__: Add integer overflow " "check in bytearray.extend(). Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10866 ../../../build/NEWS:13521 +#: ../../../build/NEWS:11490 ../../../build/NEWS:14145 msgid "" "`bpo-27581 `__: Don't rely on wrapping " "for overflow check in PySequence_Tuple(). Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10869 +#: ../../../build/NEWS:11493 msgid "" "`bpo-1621 `__: Avoid signed integer " "overflow in list and tuple operations. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10872 +#: ../../../build/NEWS:11496 msgid "" -"`bpo-27419 `__: Standard __import__() no" -" longer look up \"__import__\" in globals or builtins for importing " +"`bpo-27419 `__: Standard __import__() no " +"longer look up \"__import__\" in globals or builtins for importing " "submodules or \"from import\". Fixed a crash if raise a warning about " "unabling to resolve package from __spec__ or __package__." msgstr "" -#: ../../../build/NEWS:10877 ../../../build/NEWS:13510 +#: ../../../build/NEWS:11501 ../../../build/NEWS:14134 msgid "" -"`bpo-27083 `__: Respect the PYTHONCASEOK" -" environment variable under Windows." +"`bpo-27083 `__: Respect the PYTHONCASEOK " +"environment variable under Windows." msgstr "" -#: ../../../build/NEWS:10879 ../../../build/NEWS:13512 +#: ../../../build/NEWS:11503 ../../../build/NEWS:14136 msgid "" "`bpo-27514 `__: Make having too many " "statically nested blocks a SyntaxError instead of SystemError." msgstr "" -#: ../../../build/NEWS:10882 +#: ../../../build/NEWS:11506 msgid "" "`bpo-27366 `__: Implemented PEP 487 " "(Simpler customization of class creation). Upon subclassing, the " @@ -16402,37 +17434,37 @@ msgid "" "initialized with __set_name__ after class creation." msgstr "" -#: ../../../build/NEWS:10889 +#: ../../../build/NEWS:11513 msgid "" -"`bpo-26027 `__: Add PEP 519/__fspath__()" -" support to the os and os.path modules. Includes code from Jelle Zijlstra. " +"`bpo-26027 `__: Add PEP 519/__fspath__() " +"support to the os and os.path modules. Includes code from Jelle Zijlstra. " "(See also: `bpo-27524 `__)" msgstr "" -#: ../../../build/NEWS:10892 +#: ../../../build/NEWS:11516 msgid "" "`bpo-27598 `__: Add Collections to " "collections.abc. Patch by Ivan Levkivskyi, docs by Neil Girdhar." msgstr "" -#: ../../../build/NEWS:10895 +#: ../../../build/NEWS:11519 msgid "" "`bpo-25958 `__: Support \"anti-" -"registration\" of special methods from various ABCs, like __hash__, __iter__" -" or __len__. All these (and several more) can be set to None in an " +"registration\" of special methods from various ABCs, like __hash__, __iter__ " +"or __len__. All these (and several more) can be set to None in an " "implementation class and the behavior will be as if the method is not " "defined at all. (Previously, this mechanism existed only for __hash__, to " "make mutable classes unhashable.) Code contributed by Andrew Barnert and " "Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:10902 +#: ../../../build/NEWS:11526 msgid "" "`bpo-16764 `__: Support keyword " "arguments to zlib.decompress(). Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10905 +#: ../../../build/NEWS:11529 msgid "" "`bpo-27736 `__: Prevent segfault after " "interpreter re-initialization due to ref count problem introduced in code " @@ -16440,141 +17472,140 @@ msgid "" "Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10909 +#: ../../../build/NEWS:11533 msgid "" "`bpo-25628 `__: The *verbose* and " "*rename* parameters for collections.namedtuple are now keyword-only." msgstr "" -#: ../../../build/NEWS:10912 +#: ../../../build/NEWS:11536 msgid "" "`bpo-12345 `__: Add mathematical " "constant tau to math and cmath. See also PEP 628." msgstr "" -#: ../../../build/NEWS:10915 +#: ../../../build/NEWS:11539 msgid "" -"`bpo-26823 `__: " -"traceback.StackSummary.format now abbreviates large sections of repeated " -"lines as \"[Previous line repeated {count} more times]\" (this change then " -"further affects other traceback display operations in the module). Patch by " -"Emanuel Barry." +"`bpo-26823 `__: traceback.StackSummary." +"format now abbreviates large sections of repeated lines as \"[Previous line " +"repeated {count} more times]\" (this change then further affects other " +"traceback display operations in the module). Patch by Emanuel Barry." msgstr "" -#: ../../../build/NEWS:10920 +#: ../../../build/NEWS:11544 msgid "" -"`bpo-27664 `__: Add to " -"concurrent.futures.thread.ThreadPoolExecutor() the ability to specify a " -"thread name prefix." +"`bpo-27664 `__: Add to concurrent." +"futures.thread.ThreadPoolExecutor() the ability to specify a thread name " +"prefix." msgstr "" -#: ../../../build/NEWS:10923 +#: ../../../build/NEWS:11547 msgid "" "`bpo-27181 `__: Add geometric_mean and " "harmonic_mean to statistics module." msgstr "" -#: ../../../build/NEWS:10925 +#: ../../../build/NEWS:11549 msgid "" -"`bpo-27573 `__: code.interact now prints" -" an message when exiting." +"`bpo-27573 `__: code.interact now prints " +"an message when exiting." msgstr "" -#: ../../../build/NEWS:10927 +#: ../../../build/NEWS:11551 msgid "" "`bpo-6422 `__: Add autorange method to " "timeit.Timer objects." msgstr "" -#: ../../../build/NEWS:10929 ../../../build/NEWS:13760 +#: ../../../build/NEWS:11553 ../../../build/NEWS:14384 msgid "" "`bpo-27773 `__: Correct some memory " "management errors server_hostname in _ssl.wrap_socket()." msgstr "" -#: ../../../build/NEWS:10932 +#: ../../../build/NEWS:11556 msgid "" -"`bpo-26750 `__: " -"unittest.mock.create_autospec() now works properly for subclasses of " -"property() and other data descriptors. Removes the never publicly used, " -"never documented unittest.mock.DescriptorTypes tuple." +"`bpo-26750 `__: unittest.mock." +"create_autospec() now works properly for subclasses of property() and other " +"data descriptors. Removes the never publicly used, never documented " +"unittest.mock.DescriptorTypes tuple." msgstr "" -#: ../../../build/NEWS:10936 +#: ../../../build/NEWS:11560 msgid "" "`bpo-26754 `__: Undocumented support of " -"general bytes-like objects as path in compile() and similar functions is now" -" deprecated." +"general bytes-like objects as path in compile() and similar functions is now " +"deprecated." msgstr "" -#: ../../../build/NEWS:10939 +#: ../../../build/NEWS:11563 msgid "" "`bpo-26800 `__: Undocumented support of " "general bytes-like objects as paths in os functions is now deprecated." msgstr "" -#: ../../../build/NEWS:10942 +#: ../../../build/NEWS:11566 msgid "" "`bpo-26981 `__: Add _order_ " "compatibility shim to enum.Enum for Python 2/3 code bases." msgstr "" -#: ../../../build/NEWS:10945 +#: ../../../build/NEWS:11569 msgid "" "`bpo-27661 `__: Added tzinfo keyword " "argument to datetime.combine." msgstr "" -#: ../../../build/NEWS:10947 ../../../build/NEWS:13766 +#: ../../../build/NEWS:11571 ../../../build/NEWS:14390 msgid "" -"In the curses module, raise an error if window.getstr() or window.instr() is" -" passed a negative value." +"In the curses module, raise an error if window.getstr() or window.instr() is " +"passed a negative value." msgstr "" -#: ../../../build/NEWS:10950 ../../../build/NEWS:13769 +#: ../../../build/NEWS:11574 ../../../build/NEWS:14393 msgid "" "`bpo-27783 `__: Fix possible usage of " "uninitialized memory in operator.methodcaller." msgstr "" -#: ../../../build/NEWS:10953 ../../../build/NEWS:13772 +#: ../../../build/NEWS:11577 ../../../build/NEWS:14396 msgid "" "`bpo-27774 `__: Fix possible Py_DECREF " "on unowned object in _sre." msgstr "" -#: ../../../build/NEWS:10955 ../../../build/NEWS:13774 +#: ../../../build/NEWS:11579 ../../../build/NEWS:14398 msgid "" "`bpo-27760 `__: Fix possible integer " "overflow in binascii.b2a_qp." msgstr "" -#: ../../../build/NEWS:10957 ../../../build/NEWS:13776 +#: ../../../build/NEWS:11581 ../../../build/NEWS:14400 msgid "" "`bpo-27758 `__: Fix possible integer " "overflow in the _csv module for large record lengths." msgstr "" -#: ../../../build/NEWS:10960 ../../../build/NEWS:13779 +#: ../../../build/NEWS:11584 ../../../build/NEWS:14403 msgid "" "`bpo-27568 `__: Prevent HTTPoxy attack " "(CVE-2016-1000110). Ignore the HTTP_PROXY variable when REQUEST_METHOD " "environment is set, which indicates that the script is in CGI mode." msgstr "" -#: ../../../build/NEWS:10964 +#: ../../../build/NEWS:11588 msgid "" "`bpo-7063 `__: Remove dead code from the " "\"array\" module's slice handling. Patch by Chuck." msgstr "" -#: ../../../build/NEWS:10967 ../../../build/NEWS:13783 +#: ../../../build/NEWS:11591 ../../../build/NEWS:14407 msgid "" "`bpo-27656 `__: Do not assume sched.h " "defines any SCHED_* constants." msgstr "" -#: ../../../build/NEWS:10969 ../../../build/NEWS:13785 +#: ../../../build/NEWS:11593 ../../../build/NEWS:14409 msgid "" "`bpo-27130 `__: In the \"zlib\" module, " "fix handling of large buffers (typically 4 GiB) when compressing and " @@ -16582,55 +17613,54 @@ msgid "" "and decompression operations did not properly handle results of 4 GiB." msgstr "" -#: ../../../build/NEWS:10974 +#: ../../../build/NEWS:11598 msgid "" "`bpo-24773 `__: Implemented PEP 495 " "(Local Time Disambiguation)." msgstr "" -#: ../../../build/NEWS:10976 +#: ../../../build/NEWS:11600 msgid "" -"Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select " -"module." +"Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select module." msgstr "" -#: ../../../build/NEWS:10979 +#: ../../../build/NEWS:11603 msgid "" "`bpo-27567 `__: Expose the EPOLLRDHUP " "and POLLRDHUP constants in the select module." msgstr "" -#: ../../../build/NEWS:10982 +#: ../../../build/NEWS:11606 msgid "" "`bpo-1621 `__: Avoid signed int negation " "overflow in the \"audioop\" module." msgstr "" -#: ../../../build/NEWS:10984 ../../../build/NEWS:13790 +#: ../../../build/NEWS:11608 ../../../build/NEWS:14414 msgid "" "`bpo-27533 `__: Release GIL in nt._isdir" msgstr "" -#: ../../../build/NEWS:10986 ../../../build/NEWS:13792 +#: ../../../build/NEWS:11610 ../../../build/NEWS:14416 msgid "" "`bpo-17711 `__: Fixed unpickling by the " "persistent ID with protocol 0. Original patch by Alexandre Vassalotti." msgstr "" -#: ../../../build/NEWS:10989 ../../../build/NEWS:13795 +#: ../../../build/NEWS:11613 ../../../build/NEWS:14419 msgid "" "`bpo-27522 `__: Avoid an unintentional " "reference cycle in email.feedparser." msgstr "" -#: ../../../build/NEWS:10991 +#: ../../../build/NEWS:11615 msgid "" -"`bpo-27512 `__: Fix a segfault when " -"os.fspath() called an __fspath__() method that raised an exception. Patch by" -" Xiang Zhang." +"`bpo-27512 `__: Fix a segfault when os." +"fspath() called an __fspath__() method that raised an exception. Patch by " +"Xiang Zhang." msgstr "" -#: ../../../build/NEWS:10997 ../../../build/NEWS:13946 +#: ../../../build/NEWS:11621 ../../../build/NEWS:14570 msgid "" "`bpo-27714 `__: text_textview and " "test_autocomplete now pass when re-run in the same process. This occurs " @@ -16638,382 +17668,380 @@ msgid "" "warning from test_config." msgstr "" -#: ../../../build/NEWS:11001 +#: ../../../build/NEWS:11625 msgid "" "`bpo-27621 `__: Put query response " "validation error messages in the query box itself instead of in a separate " -"messagebox. Redo tests to match. Add Mac OSX refinements. Original patch by" -" Mark Roseman." +"messagebox. Redo tests to match. Add Mac OSX refinements. Original patch by " +"Mark Roseman." msgstr "" -#: ../../../build/NEWS:11005 +#: ../../../build/NEWS:11629 msgid "" "`bpo-27620 `__: Escape key now closes " "Query box as cancelled." msgstr "" -#: ../../../build/NEWS:11007 +#: ../../../build/NEWS:11631 msgid "" "`bpo-27609 `__: IDLE: tab after initial " "whitespace should tab, not autocomplete. This fixes problem with writing " "docstrings at least twice indented." msgstr "" -#: ../../../build/NEWS:11011 +#: ../../../build/NEWS:11635 msgid "" "`bpo-27609 `__: Explicitly return None " "when there are also non-None returns. In a few cases, reverse a condition " "and eliminate a return." msgstr "" -#: ../../../build/NEWS:11014 ../../../build/NEWS:13950 +#: ../../../build/NEWS:11638 ../../../build/NEWS:14574 msgid "" "`bpo-25507 `__: IDLE no longer runs " "buggy code because of its tkinter imports. Users must include the same " "imports required to run directly in Python." msgstr "" -#: ../../../build/NEWS:11017 ../../../build/NEWS:11210 +#: ../../../build/NEWS:11641 ../../../build/NEWS:11834 msgid "" "`bpo-27173 `__: Add 'IDLE Modern Unix' " "to the built-in key sets. Make the default key set depend on the platform. " "Add tests for the changes to the config module." msgstr "" -#: ../../../build/NEWS:11021 ../../../build/NEWS:11217 -#: ../../../build/NEWS:13953 +#: ../../../build/NEWS:11645 ../../../build/NEWS:11841 +#: ../../../build/NEWS:14577 msgid "" -"`bpo-27452 `__: add line counter and crc" -" to IDLE configHandler test dump." +"`bpo-27452 `__: add line counter and crc " +"to IDLE configHandler test dump." msgstr "" -#: ../../../build/NEWS:11026 +#: ../../../build/NEWS:11650 msgid "" "`bpo-25805 `__: Skip a test in " "test_pkgutil as needed that doesn't work when ``__name__ == __main__``. " "Patch by SilentGhost." msgstr "" -#: ../../../build/NEWS:11029 +#: ../../../build/NEWS:11653 msgid "" -"`bpo-27472 `__: Add " -"test.support.unix_shell as the path to the default shell." +"`bpo-27472 `__: Add test.support." +"unix_shell as the path to the default shell." msgstr "" -#: ../../../build/NEWS:11031 ../../../build/NEWS:13991 +#: ../../../build/NEWS:11655 ../../../build/NEWS:14615 msgid "" "`bpo-27369 `__: In test_pyexpat, avoid " "testing an error message detail that changed in Expat 2.2.0." msgstr "" -#: ../../../build/NEWS:11034 +#: ../../../build/NEWS:11658 msgid "" "`bpo-27594 `__: Prevent assertion error " "when running test_ast with coverage enabled: ensure code object has a valid " "first line number. Patch suggested by Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:11041 +#: ../../../build/NEWS:11665 msgid "" -"`bpo-27647 `__: Update bundled Tcl/Tk to" -" 8.6.6." +"`bpo-27647 `__: Update bundled Tcl/Tk to " +"8.6.6." msgstr "" -#: ../../../build/NEWS:11043 +#: ../../../build/NEWS:11667 msgid "" -"`bpo-27610 `__: Adds PEP 514 metadata to" -" Windows installer" +"`bpo-27610 `__: Adds PEP 514 metadata to " +"Windows installer" msgstr "" -#: ../../../build/NEWS:11045 ../../../build/NEWS:14016 +#: ../../../build/NEWS:11669 ../../../build/NEWS:14640 msgid "" "`bpo-27469 `__: Adds a shell extension " "to the launcher so that drag and drop works correctly." msgstr "" -#: ../../../build/NEWS:11048 +#: ../../../build/NEWS:11672 msgid "" "`bpo-27309 `__: Enables proper Windows " "styles in python[w].exe manifest." msgstr "" -#: ../../../build/NEWS:11053 ../../../build/NEWS:14061 +#: ../../../build/NEWS:11677 ../../../build/NEWS:14685 msgid "" "`bpo-27713 `__: Suppress spurious build " "warnings when updating importlib's bootstrap files. Patch by Xiang Zhang" msgstr "" -#: ../../../build/NEWS:11056 +#: ../../../build/NEWS:11680 msgid "" "`bpo-25825 `__: Correct the references " "to Modules/python.exp, which is required on AIX. The references were " "accidentally changed in 3.5.0a1." msgstr "" -#: ../../../build/NEWS:11059 ../../../build/NEWS:14069 +#: ../../../build/NEWS:11683 ../../../build/NEWS:14693 msgid "" "`bpo-27453 `__: CPP invocation in " "configure must use CPPFLAGS. Patch by Chi Hsuan Yen." msgstr "" -#: ../../../build/NEWS:11062 ../../../build/NEWS:14072 +#: ../../../build/NEWS:11686 ../../../build/NEWS:14696 msgid "" -"`bpo-27641 `__: The configure script now" -" inserts comments into the makefile to prevent the pgen and " -"_freeze_importlib executables from being cross-compiled." +"`bpo-27641 `__: The configure script now " +"inserts comments into the makefile to prevent the pgen and _freeze_importlib " +"executables from being cross-compiled." msgstr "" -#: ../../../build/NEWS:11066 ../../../build/NEWS:14076 +#: ../../../build/NEWS:11690 ../../../build/NEWS:14700 msgid "" "`bpo-26662 `__: Set PYTHON_FOR_GEN in " "configure as the Python program to be used for file generation during the " "build." msgstr "" -#: ../../../build/NEWS:11069 ../../../build/NEWS:14079 +#: ../../../build/NEWS:11693 ../../../build/NEWS:14703 msgid "" "`bpo-10910 `__: Avoid C++ compilation " "errors on FreeBSD and OS X. Also update FreedBSD version checks for the " "original ctype UTF-8 workaround." msgstr "" -#: ../../../build/NEWS:11074 +#: ../../../build/NEWS:11698 msgid "Python 3.6.0 alpha 3" msgstr "" -#: ../../../build/NEWS:11076 +#: ../../../build/NEWS:11700 msgid "*Release date: 2016-07-11*" msgstr "" -#: ../../../build/NEWS:11081 ../../../build/NEWS:13515 +#: ../../../build/NEWS:11705 ../../../build/NEWS:14139 msgid "" "`bpo-27473 `__: Fixed possible integer " "overflow in bytes and bytearray concatenations. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:11084 +#: ../../../build/NEWS:11708 msgid "" "`bpo-23034 `__: The output of a special " -"Python build with defined COUNT_ALLOCS, SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT" -" macros is now off by default. It can be re-enabled using the \"-X " +"Python build with defined COUNT_ALLOCS, SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT " +"macros is now off by default. It can be re-enabled using the \"-X " "showalloccount\" option. It now outputs to stderr instead of stdout." msgstr "" -#: ../../../build/NEWS:11089 ../../../build/NEWS:13524 +#: ../../../build/NEWS:11713 ../../../build/NEWS:14148 msgid "" "`bpo-27443 `__: __length_hint__() of " "bytearray iterators no longer return a negative integer for a resized " "bytearray." msgstr "" -#: ../../../build/NEWS:11092 +#: ../../../build/NEWS:11716 msgid "" "`bpo-27007 `__: The fromhex() class " "methods of bytes and bytearray subclasses now return an instance of " "corresponding subclass." msgstr "" -#: ../../../build/NEWS:11098 ../../../build/NEWS:13797 +#: ../../../build/NEWS:11722 ../../../build/NEWS:14421 msgid "" "`bpo-26844 `__: Fix error message for " -"imp.find_module() to refer to 'path' instead of 'name'. Patch by Lev " -"Maximov." +"imp.find_module() to refer to 'path' instead of 'name'. Patch by Lev Maximov." msgstr "" -#: ../../../build/NEWS:11101 ../../../build/NEWS:13800 +#: ../../../build/NEWS:11725 ../../../build/NEWS:14424 msgid "" "`bpo-23804 `__: Fix SSL zero-length " "recv() calls to not block and not raise an error about unclean EOF." msgstr "" -#: ../../../build/NEWS:11104 ../../../build/NEWS:13803 +#: ../../../build/NEWS:11728 ../../../build/NEWS:14427 msgid "" "`bpo-27466 `__: Change time format " -"returned by http.cookie.time2netscape, confirming the netscape cookie format" -" and making it consistent with documentation." +"returned by http.cookie.time2netscape, confirming the netscape cookie format " +"and making it consistent with documentation." msgstr "" -#: ../../../build/NEWS:11108 +#: ../../../build/NEWS:11732 msgid "" "`bpo-21708 `__: Deprecated dbm.dumb " "behavior that differs from common dbm behavior: creating a database in 'r' " "and 'w' modes and modifying a database in 'r' mode." msgstr "" -#: ../../../build/NEWS:11112 +#: ../../../build/NEWS:11736 msgid "" -"`bpo-26721 `__: Change the " -"socketserver.StreamRequestHandler.wfile attribute to implement " -"BufferedIOBase. In particular, the write() method no longer does partial " -"writes." +"`bpo-26721 `__: Change the socketserver." +"StreamRequestHandler.wfile attribute to implement BufferedIOBase. In " +"particular, the write() method no longer does partial writes." msgstr "" -#: ../../../build/NEWS:11116 +#: ../../../build/NEWS:11740 msgid "" -"`bpo-22115 `__: Added methods trace_add," -" trace_remove and trace_info in the tkinter.Variable class. They replace " -"old methods trace_variable, trace, trace_vdelete and trace_vinfo that use " +"`bpo-22115 `__: Added methods trace_add, " +"trace_remove and trace_info in the tkinter.Variable class. They replace old " +"methods trace_variable, trace, trace_vdelete and trace_vinfo that use " "obsolete Tcl commands and might not work in future versions of Tcl. Fixed " "old tracing methods: trace_vdelete() with wrong mode no longer break " "tracing, trace_vinfo() now always returns a list of pairs of strings, " "tracing in the \"u\" mode now works." msgstr "" -#: ../../../build/NEWS:11124 +#: ../../../build/NEWS:11748 msgid "" "`bpo-26243 `__: Only the level argument " "to zlib.compress() is keyword argument now. The first argument is " "positional-only." msgstr "" -#: ../../../build/NEWS:11127 +#: ../../../build/NEWS:11751 msgid "" -"`bpo-27038 `__: Expose the DirEntry type" -" as os.DirEntry. Code patch by Jelle Zijlstra." +"`bpo-27038 `__: Expose the DirEntry type " +"as os.DirEntry. Code patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:11130 +#: ../../../build/NEWS:11754 msgid "" -"`bpo-27186 `__: Update " -"os.fspath()/PyOS_FSPath() to check the return value of __fspath__() to be " -"either str or bytes." +"`bpo-27186 `__: Update os.fspath()/" +"PyOS_FSPath() to check the return value of __fspath__() to be either str or " +"bytes." msgstr "" -#: ../../../build/NEWS:11133 +#: ../../../build/NEWS:11757 msgid "" "`bpo-18726 `__: All optional parameters " "of the dump(), dumps(), load() and loads() functions and JSONEncoder and " "JSONDecoder class constructors in the json module are now keyword-only." msgstr "" -#: ../../../build/NEWS:11137 +#: ../../../build/NEWS:11761 msgid "" -"`bpo-27319 `__: Methods selection_set()," -" selection_add(), selection_remove() and selection_toggle() of ttk.TreeView " +"`bpo-27319 `__: Methods selection_set(), " +"selection_add(), selection_remove() and selection_toggle() of ttk.TreeView " "now allow passing multiple items as multiple arguments instead of passing " -"them as a tuple. Deprecated undocumented ability of calling the selection()" -" method with arguments." +"them as a tuple. Deprecated undocumented ability of calling the selection() " +"method with arguments." msgstr "" -#: ../../../build/NEWS:11142 ../../../build/NEWS:13817 +#: ../../../build/NEWS:11766 ../../../build/NEWS:14441 msgid "" "`bpo-27079 `__: Fixed curses.ascii " "functions isblank(), iscntrl() and ispunct()." msgstr "" -#: ../../../build/NEWS:11145 +#: ../../../build/NEWS:11769 msgid "" "`bpo-27294 `__: Numerical state in the " "repr for Tkinter event objects is now represented as a combination of known " "flags." msgstr "" -#: ../../../build/NEWS:11148 +#: ../../../build/NEWS:11772 msgid "" "`bpo-27177 `__: Match objects in the re " -"module now support index-like objects as group indices. Based on patches by" -" Jeroen Demeyer and Xiang Zhang." +"module now support index-like objects as group indices. Based on patches by " +"Jeroen Demeyer and Xiang Zhang." msgstr "" -#: ../../../build/NEWS:11151 ../../../build/NEWS:13820 +#: ../../../build/NEWS:11775 ../../../build/NEWS:14444 msgid "" "`bpo-26754 `__: Some functions " "(compile() etc) accepted a filename argument encoded as an iterable of " "integers. Now only strings and byte-like objects are accepted." msgstr "" -#: ../../../build/NEWS:11155 +#: ../../../build/NEWS:11779 msgid "" "`bpo-26536 `__: socket.ioctl now " "supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes." msgstr "" -#: ../../../build/NEWS:11158 ../../../build/NEWS:13824 +#: ../../../build/NEWS:11782 ../../../build/NEWS:14448 msgid "" "`bpo-27048 `__: Prevents distutils " "failing on Windows when environment variables contain non-ASCII characters" msgstr "" -#: ../../../build/NEWS:11161 ../../../build/NEWS:13827 +#: ../../../build/NEWS:11785 ../../../build/NEWS:14451 msgid "" "`bpo-27330 `__: Fixed possible leaks in " "the ctypes module." msgstr "" -#: ../../../build/NEWS:11163 ../../../build/NEWS:13829 +#: ../../../build/NEWS:11787 ../../../build/NEWS:14453 msgid "" "`bpo-27238 `__: Got rid of bare excepts " "in the turtle module. Original patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:11166 ../../../build/NEWS:13832 +#: ../../../build/NEWS:11790 ../../../build/NEWS:14456 msgid "" "`bpo-27122 `__: When an exception is " "raised within the context being managed by a contextlib.ExitStack() and one " "of the exit stack generators catches and raises it in a chain, do not re-" -"raise the original exception when exiting, let the new chained one through." -" This avoids the PEP 479 bug described in issue25782." +"raise the original exception when exiting, let the new chained one through. " +"This avoids the PEP 479 bug described in issue25782." msgstr "" -#: ../../../build/NEWS:11175 ../../../build/NEWS:13841 +#: ../../../build/NEWS:11799 ../../../build/NEWS:14465 msgid "" "`bpo-27278 `__: Fix os.urandom() " -"implementation using getrandom() on Linux. Truncate size to INT_MAX and loop" -" until we collected enough random bytes, instead of casting a directly " +"implementation using getrandom() on Linux. Truncate size to INT_MAX and loop " +"until we collected enough random bytes, instead of casting a directly " "Py_ssize_t to int." msgstr "" -#: ../../../build/NEWS:11182 +#: ../../../build/NEWS:11806 msgid "" -"`bpo-16864 `__: sqlite3.Cursor.lastrowid" -" now supports REPLACE statement. Initial patch by Alex LordThorsen." +"`bpo-16864 `__: sqlite3.Cursor.lastrowid " +"now supports REPLACE statement. Initial patch by Alex LordThorsen." msgstr "" -#: ../../../build/NEWS:11185 ../../../build/NEWS:13848 +#: ../../../build/NEWS:11809 ../../../build/NEWS:14472 msgid "" "`bpo-26386 `__: Fixed ttk.TreeView " "selection operations with item id's containing spaces." msgstr "" -#: ../../../build/NEWS:11188 +#: ../../../build/NEWS:11812 msgid "" "`bpo-8637 `__: Honor a pager set by the " "env var MANPAGER (in preference to one set by the env var PAGER)." msgstr "" -#: ../../../build/NEWS:11194 ../../../build/NEWS:13854 +#: ../../../build/NEWS:11818 ../../../build/NEWS:14478 msgid "" "`bpo-22636 `__: Avoid shell injection " "problems with ctypes.util.find_library()." msgstr "" -#: ../../../build/NEWS:11199 ../../../build/NEWS:13859 +#: ../../../build/NEWS:11823 ../../../build/NEWS:14483 msgid "" -"`bpo-16182 `__: Fix various functions in" -" the \"readline\" module to use the locale encoding, and fix get_begidx() " -"and get_endidx() to return code point indexes." +"`bpo-16182 `__: Fix various functions in " +"the \"readline\" module to use the locale encoding, and fix get_begidx() and " +"get_endidx() to return code point indexes." msgstr "" -#: ../../../build/NEWS:11203 ../../../build/NEWS:13863 +#: ../../../build/NEWS:11827 ../../../build/NEWS:14487 msgid "" -"`bpo-27392 `__: Add " -"loop.connect_accepted_socket(). Patch by Jim Fulton." +"`bpo-27392 `__: Add loop." +"connect_accepted_socket(). Patch by Jim Fulton." msgstr "" -#: ../../../build/NEWS:11208 +#: ../../../build/NEWS:11832 msgid "" "`bpo-27477 `__: IDLE search dialogs now " "use ttk widgets." msgstr "" -#: ../../../build/NEWS:11214 +#: ../../../build/NEWS:11838 msgid "" -"`bpo-27452 `__: make command line " -"\"idle-test> python test_help.py\" work. __file__ is relative when python is" -" started in the file's directory." +"`bpo-27452 `__: make command line \"idle-" +"test> python test_help.py\" work. __file__ is relative when python is " +"started in the file's directory." msgstr "" -#: ../../../build/NEWS:11219 +#: ../../../build/NEWS:11843 msgid "" "`bpo-27380 `__: IDLE: add query.py with " "base Query dialog and ttk widgets. Module had subclasses SectionName, " @@ -17023,19 +18051,19 @@ msgid "" "starting over. Add tests and delete the two files combined into the new one." msgstr "" -#: ../../../build/NEWS:11226 +#: ../../../build/NEWS:11850 msgid "" "`bpo-27372 `__: Test_idle no longer " "changes the locale." msgstr "" -#: ../../../build/NEWS:11228 ../../../build/NEWS:13955 +#: ../../../build/NEWS:11852 ../../../build/NEWS:14579 msgid "" -"`bpo-27365 `__: Allow non-ascii chars in" -" IDLE NEWS.txt, for contributor names." +"`bpo-27365 `__: Allow non-ascii chars in " +"IDLE NEWS.txt, for contributor names." msgstr "" -#: ../../../build/NEWS:11230 ../../../build/NEWS:13957 +#: ../../../build/NEWS:11854 ../../../build/NEWS:14581 msgid "" "`bpo-27245 `__: IDLE: Cleanly delete " "custom themes and key bindings. Previously, when IDLE was started from a " @@ -17043,122 +18071,120 @@ msgid "" "Storchaka." msgstr "" -#: ../../../build/NEWS:11234 +#: ../../../build/NEWS:11858 msgid "" -"`bpo-24137 `__: Run IDLE, test_idle, and" -" htest with tkinter default root disabled. Fix code and tests that fail " -"with this restriction. Fix htests to not create a second and redundant root" -" and mainloop." +"`bpo-24137 `__: Run IDLE, test_idle, and " +"htest with tkinter default root disabled. Fix code and tests that fail with " +"this restriction. Fix htests to not create a second and redundant root and " +"mainloop." msgstr "" -#: ../../../build/NEWS:11238 +#: ../../../build/NEWS:11862 msgid "" "`bpo-27310 `__: Fix IDLE.app failure to " "launch on OS X due to vestigial import." msgstr "" -#: ../../../build/NEWS:11243 +#: ../../../build/NEWS:11867 msgid "" "`bpo-26754 `__: PyUnicode_FSDecoder() " "accepted a filename argument encoded as an iterable of integers. Now only " "strings and byte-like objects are accepted." msgstr "" -#: ../../../build/NEWS:11250 ../../../build/NEWS:14042 +#: ../../../build/NEWS:11874 ../../../build/NEWS:14666 msgid "" "`bpo-28066 `__: Fix the logic that " -"searches build directories for generated include files when building outside" -" the source tree." +"searches build directories for generated include files when building outside " +"the source tree." msgstr "" -#: ../../../build/NEWS:11253 +#: ../../../build/NEWS:11877 msgid "" "`bpo-27442 `__: Expose the Android API " "level that python was built against, in sysconfig.get_config_vars() as " "'ANDROID_API_LEVEL'." msgstr "" -#: ../../../build/NEWS:11256 +#: ../../../build/NEWS:11880 msgid "" "`bpo-27434 `__: The interpreter that " -"runs the cross-build, found in PATH, must now be of the same feature version" -" (e.g. 3.6) as the source being built." +"runs the cross-build, found in PATH, must now be of the same feature version " +"(e.g. 3.6) as the source being built." msgstr "" -#: ../../../build/NEWS:11259 ../../../build/NEWS:14094 +#: ../../../build/NEWS:11883 ../../../build/NEWS:14718 msgid "" -"`bpo-26930 `__: Update Windows builds to" -" use OpenSSL 1.0.2h." +"`bpo-26930 `__: Update Windows builds to " +"use OpenSSL 1.0.2h." msgstr "" -#: ../../../build/NEWS:11261 +#: ../../../build/NEWS:11885 msgid "" "`bpo-23968 `__: Rename the platform " "directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET). Rename the " -"config directory (LIBPL) from config-$(LDVERSION) to " -"config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install the platform specific " -"_sysconfigdata module into the platform directory and rename it to include " -"the ABIFLAGS." +"config directory (LIBPL) from config-$(LDVERSION) to config-$(LDVERSION)-" +"$(PLATFORM_TRIPLET). Install the platform specific _sysconfigdata module " +"into the platform directory and rename it to include the ABIFLAGS." msgstr "" -#: ../../../build/NEWS:11267 +#: ../../../build/NEWS:11891 msgid "Don't use largefile support for GNU/Hurd." msgstr "" -#: ../../../build/NEWS:11272 ../../../build/NEWS:14001 +#: ../../../build/NEWS:11896 ../../../build/NEWS:14625 msgid "" "`bpo-27332 `__: Fixed the type of the " "first argument of module-level functions generated by Argument Clinic. " "Patch by Petr Viktorin." msgstr "" -#: ../../../build/NEWS:11275 ../../../build/NEWS:14004 +#: ../../../build/NEWS:11899 ../../../build/NEWS:14628 msgid "" -"`bpo-27418 `__: Fixed " -"Tools/importbench/importbench.py." +"`bpo-27418 `__: Fixed Tools/importbench/" +"importbench.py." msgstr "" -#: ../../../build/NEWS:11280 ../../../build/NEWS:14724 +#: ../../../build/NEWS:11904 ../../../build/NEWS:15348 msgid "" "`bpo-19489 `__: Moved the search box " -"from the sidebar to the header and footer of each page. Patch by Ammar " -"Askar." +"from the sidebar to the header and footer of each page. Patch by Ammar Askar." msgstr "" -#: ../../../build/NEWS:11283 +#: ../../../build/NEWS:11907 msgid "" "`bpo-27285 `__: Update documentation to " "reflect the deprecation of ``pyvenv`` and normalize on the term \"virtual " "environment\". Patch by Steve Piercy." msgstr "" -#: ../../../build/NEWS:11289 +#: ../../../build/NEWS:11913 msgid "" -"`bpo-27027 `__: Added " -"test.support.is_android that is True when this is an Android build." +"`bpo-27027 `__: Added test.support." +"is_android that is True when this is an Android build." msgstr "" -#: ../../../build/NEWS:11294 +#: ../../../build/NEWS:11918 msgid "Python 3.6.0 alpha 2" msgstr "" -#: ../../../build/NEWS:11296 +#: ../../../build/NEWS:11920 msgid "*Release date: 2016-06-13*" msgstr "" -#: ../../../build/NEWS:11301 +#: ../../../build/NEWS:11925 msgid "" -"`bpo-27095 `__: Simplified MAKE_FUNCTION" -" and removed MAKE_CLOSURE opcodes. Patch by Demur Rumed." +"`bpo-27095 `__: Simplified MAKE_FUNCTION " +"and removed MAKE_CLOSURE opcodes. Patch by Demur Rumed." msgstr "" -#: ../../../build/NEWS:11304 +#: ../../../build/NEWS:11928 msgid "" "`bpo-27190 `__: Raise NotSupportedError " "if sqlite3 is older than 3.3.1. Patch by Dave Sawyer." msgstr "" -#: ../../../build/NEWS:11307 +#: ../../../build/NEWS:11931 msgid "" "`bpo-27286 `__: Fixed compiling " "BUILD_MAP_UNPACK_WITH_CALL opcode. Calling function with generalized " @@ -17166,26 +18192,26 @@ msgid "" "behavior." msgstr "" -#: ../../../build/NEWS:11311 +#: ../../../build/NEWS:11935 msgid "" "`bpo-27140 `__: Added " "BUILD_CONST_KEY_MAP opcode." msgstr "" -#: ../../../build/NEWS:11313 +#: ../../../build/NEWS:11937 msgid "" -"`bpo-27186 `__: Add support for " -"os.PathLike objects to open() (part of PEP 519)." +"`bpo-27186 `__: Add support for os." +"PathLike objects to open() (part of PEP 519)." msgstr "" -#: ../../../build/NEWS:11316 ../../../build/NEWS:14115 +#: ../../../build/NEWS:11940 ../../../build/NEWS:14739 msgid "" "`bpo-27066 `__: Fixed SystemError if a " "custom opener (for open()) returns a negative number without setting an " "exception." msgstr "" -#: ../../../build/NEWS:11319 +#: ../../../build/NEWS:11943 msgid "" "`bpo-26983 `__: float() now always " "return an instance of exact float. The deprecation warning is emitted if " @@ -17193,189 +18219,189 @@ msgid "" "versions of Python this can be an error." msgstr "" -#: ../../../build/NEWS:11324 +#: ../../../build/NEWS:11948 msgid "" "`bpo-27097 `__: Python interpreter is " "now about 7% faster due to optimized instruction decoding. Based on patch " "by Demur Rumed." msgstr "" -#: ../../../build/NEWS:11327 +#: ../../../build/NEWS:11951 msgid "" "`bpo-26647 `__: Python interpreter now " "uses 16-bit wordcode instead of bytecode. Patch by Demur Rumed." msgstr "" -#: ../../../build/NEWS:11330 +#: ../../../build/NEWS:11954 msgid "" "`bpo-23275 `__: Allow assigning to an " "empty target list in round brackets: () = iterable." msgstr "" -#: ../../../build/NEWS:11333 ../../../build/NEWS:14237 +#: ../../../build/NEWS:11957 ../../../build/NEWS:14861 msgid "" "`bpo-27243 `__: Update the __aiter__ " -"protocol: instead of returning an awaitable that resolves to an asynchronous" -" iterator, the asynchronous iterator should be returned directly. Doing the" -" former will trigger a PendingDeprecationWarning." +"protocol: instead of returning an awaitable that resolves to an asynchronous " +"iterator, the asynchronous iterator should be returned directly. Doing the " +"former will trigger a PendingDeprecationWarning." msgstr "" -#: ../../../build/NEWS:11341 +#: ../../../build/NEWS:11965 msgid "" "Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants " "exposed on the API which are not implemented on GNU/Hurd. They would not " "work at runtime anyway." msgstr "" -#: ../../../build/NEWS:11345 +#: ../../../build/NEWS:11969 msgid "" "`bpo-27025 `__: Generated names for " "Tkinter widgets are now more meaningful and recognizable." msgstr "" -#: ../../../build/NEWS:11348 +#: ../../../build/NEWS:11972 msgid "" -"`bpo-25455 `__: Fixed crashes in repr of" -" recursive ElementTree.Element and functools.partial objects." +"`bpo-25455 `__: Fixed crashes in repr of " +"recursive ElementTree.Element and functools.partial objects." msgstr "" -#: ../../../build/NEWS:11351 +#: ../../../build/NEWS:11975 msgid "" "`bpo-27294 `__: Improved repr for " "Tkinter event objects." msgstr "" -#: ../../../build/NEWS:11353 +#: ../../../build/NEWS:11977 msgid "" "`bpo-20508 `__: Improve exception " "message of IPv{4,6}Network.__getitem__. Patch by Gareth Rees." msgstr "" -#: ../../../build/NEWS:11359 ../../../build/NEWS:14245 +#: ../../../build/NEWS:11983 ../../../build/NEWS:14869 msgid "" "`bpo-26556 `__: Update expat to 2.1.1, " "fixes CVE-2015-1283." msgstr "" -#: ../../../build/NEWS:11361 +#: ../../../build/NEWS:11985 msgid "" "Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team " "Oststrom." msgstr "" -#: ../../../build/NEWS:11367 ../../../build/NEWS:14253 +#: ../../../build/NEWS:11991 ../../../build/NEWS:14877 msgid "" "`bpo-21386 `__: Implement missing " "IPv4Address.is_global property. It was documented since 07a5610bae9d. " "Initial patch by Roger Luethi." msgstr "" -#: ../../../build/NEWS:11370 +#: ../../../build/NEWS:11994 msgid "" "`bpo-27029 `__: Removed deprecated " "support of universal newlines mode from ZipFile.open()." msgstr "" -#: ../../../build/NEWS:11373 +#: ../../../build/NEWS:11997 msgid "" "`bpo-27030 `__: Unknown escapes " "consisting of ``'\\'`` and an ASCII letter in regular expressions now are " "errors. The re.LOCALE flag now can be used only with bytes patterns." msgstr "" -#: ../../../build/NEWS:11377 +#: ../../../build/NEWS:12001 msgid "" "`bpo-27186 `__: Add os.PathLike support " "to DirEntry (part of PEP 519). Initial patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:11380 ../../../build/NEWS:14256 +#: ../../../build/NEWS:12004 ../../../build/NEWS:14880 msgid "" "`bpo-20900 `__: distutils register " "command now decodes HTTP responses correctly. Initial patch by ingrid." msgstr "" -#: ../../../build/NEWS:11383 +#: ../../../build/NEWS:12007 msgid "" "`bpo-27186 `__: Add os.PathLike support " -"to pathlib, removing its provisional status (part of PEP 519). Initial patch" -" by Dusty Phillips." +"to pathlib, removing its provisional status (part of PEP 519). Initial patch " +"by Dusty Phillips." msgstr "" -#: ../../../build/NEWS:11386 +#: ../../../build/NEWS:12010 msgid "" -"`bpo-27186 `__: Add support for " -"os.PathLike objects to os.fsencode() and os.fsdecode() (part of PEP 519)." +"`bpo-27186 `__: Add support for os." +"PathLike objects to os.fsencode() and os.fsdecode() (part of PEP 519)." msgstr "" -#: ../../../build/NEWS:11389 +#: ../../../build/NEWS:12013 msgid "" "`bpo-27186 `__: Introduce os.PathLike " "and os.fspath() (part of PEP 519)." msgstr "" -#: ../../../build/NEWS:11391 ../../../build/NEWS:14259 +#: ../../../build/NEWS:12015 ../../../build/NEWS:14883 msgid "" "A new version of typing.py provides several new classes and features: " "@overload outside stubs, Reversible, DefaultDict, Text, ContextManager, " "Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of " -"the new features are not yet implemented in mypy or other static analyzers)." -" Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have " -"been added (in fact they made it into 3.5.1 but were never mentioned)." +"the new features are not yet implemented in mypy or other static analyzers). " +"Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been " +"added (in fact they made it into 3.5.1 but were never mentioned)." msgstr "" -#: ../../../build/NEWS:11399 ../../../build/NEWS:14267 +#: ../../../build/NEWS:12023 ../../../build/NEWS:14891 msgid "" -"`bpo-25738 `__: Stop " -"http.server.BaseHTTPRequestHandler.send_error() from sending a message body " -"for 205 Reset Content. Also, don't send Content header fields in responses " -"that don't have a body. Patch by Susumu Koshiba." +"`bpo-25738 `__: Stop http.server." +"BaseHTTPRequestHandler.send_error() from sending a message body for 205 " +"Reset Content. Also, don't send Content header fields in responses that " +"don't have a body. Patch by Susumu Koshiba." msgstr "" -#: ../../../build/NEWS:11404 ../../../build/NEWS:14272 +#: ../../../build/NEWS:12028 ../../../build/NEWS:14896 msgid "" "`bpo-21313 `__: Fix the \"platform\" " "module to tolerate when sys.version contains truncated build information." msgstr "" -#: ../../../build/NEWS:11410 ../../../build/NEWS:14278 +#: ../../../build/NEWS:12034 ../../../build/NEWS:14902 msgid "" -"`bpo-26839 `__: On Linux, " -":func:`os.urandom` now calls ``getrandom()`` with ``GRND_NONBLOCK`` to fall " -"back on reading ``/dev/urandom`` if the urandom entropy pool is not " -"initialized yet. Patch written by Colm Buckley." +"`bpo-26839 `__: On Linux, :func:`os." +"urandom` now calls ``getrandom()`` with ``GRND_NONBLOCK`` to fall back on " +"reading ``/dev/urandom`` if the urandom entropy pool is not initialized yet. " +"Patch written by Colm Buckley." msgstr "" -#: ../../../build/NEWS:11417 +#: ../../../build/NEWS:12041 msgid "" "`bpo-23883 `__: Added missing APIs to " "__all__ to match the documented APIs for the following modules: cgi, " "mailbox, mimetypes, plistlib and smtpd. Patches by Jacek Kołodziej." msgstr "" -#: ../../../build/NEWS:11421 ../../../build/NEWS:14285 +#: ../../../build/NEWS:12045 ../../../build/NEWS:14909 msgid "" "`bpo-27164 `__: In the zlib module, " "allow decompressing raw Deflate streams with a predefined zdict. Based on " "patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:11424 ../../../build/NEWS:14288 +#: ../../../build/NEWS:12048 ../../../build/NEWS:14912 msgid "" -"`bpo-24291 `__: Fix " -"wsgiref.simple_server.WSGIRequestHandler to completely write data to the " -"client. Previously it could do partial writes and truncate data. Also, " -"wsgiref.handler.ServerHandler can now handle stdout doing partial writes, " -"but this is deprecated." +"`bpo-24291 `__: Fix wsgiref." +"simple_server.WSGIRequestHandler to completely write data to the client. " +"Previously it could do partial writes and truncate data. Also, wsgiref." +"handler.ServerHandler can now handle stdout doing partial writes, but this " +"is deprecated." msgstr "" -#: ../../../build/NEWS:11429 +#: ../../../build/NEWS:12053 msgid "" -"`bpo-21272 `__: Use _sysconfigdata.py to" -" initialize distutils.sysconfig." +"`bpo-21272 `__: Use _sysconfigdata.py to " +"initialize distutils.sysconfig." msgstr "" -#: ../../../build/NEWS:11431 +#: ../../../build/NEWS:12055 msgid "" "`bpo-19611 `__: :mod:`inspect` now " "reports the implicit ``.0`` parameters generated by the compiler for " @@ -17383,93 +18409,92 @@ msgid "" "only parameters called ``implicit0``. Patch by Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:11436 ../../../build/NEWS:14293 +#: ../../../build/NEWS:12060 ../../../build/NEWS:14917 msgid "" -"`bpo-26809 `__: Add ``__all__`` to " -":mod:`string`. Patch by Emanuel Barry." +"`bpo-26809 `__: Add ``__all__`` to :mod:" +"`string`. Patch by Emanuel Barry." msgstr "" -#: ../../../build/NEWS:11438 ../../../build/NEWS:14295 +#: ../../../build/NEWS:12062 ../../../build/NEWS:14919 msgid "" -"`bpo-26373 `__: " -"subprocess.Popen.communicate now correctly ignores BrokenPipeError when the " -"child process dies before .communicate() is called in more/all " -"circumstances." +"`bpo-26373 `__: subprocess.Popen." +"communicate now correctly ignores BrokenPipeError when the child process " +"dies before .communicate() is called in more/all circumstances." msgstr "" -#: ../../../build/NEWS:11442 +#: ../../../build/NEWS:12066 msgid "" "signal, socket, and ssl module IntEnum constant name lookups now return a " -"consistent name for values having multiple names. Ex: signal.Signals(6) now" -" refers to itself as signal.SIGALRM rather than flipping between that and " +"consistent name for values having multiple names. Ex: signal.Signals(6) now " +"refers to itself as signal.SIGALRM rather than flipping between that and " "signal.SIGIOT based on the interpreter's hash randomization seed." msgstr "" -#: ../../../build/NEWS:11447 +#: ../../../build/NEWS:12071 msgid "" -"`bpo-27167 `__: Clarify the " -"subprocess.CalledProcessError error message text when the child process died" -" due to a signal." +"`bpo-27167 `__: Clarify the subprocess." +"CalledProcessError error message text when the child process died due to a " +"signal." msgstr "" -#: ../../../build/NEWS:11450 +#: ../../../build/NEWS:12074 msgid "" "`bpo-25931 `__: Don't define " -"socketserver.Forking* names on platforms such as Windows that do not support" -" os.fork()." +"socketserver.Forking* names on platforms such as Windows that do not support " +"os.fork()." msgstr "" -#: ../../../build/NEWS:11453 ../../../build/NEWS:14299 +#: ../../../build/NEWS:12077 ../../../build/NEWS:14923 msgid "" "`bpo-21776 `__: distutils.upload now " "correctly handles HTTPError. Initial patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:11456 +#: ../../../build/NEWS:12080 msgid "" "`bpo-26526 `__: Replace custom parse " "tree validation in the parser module with a simple DFA validator." msgstr "" -#: ../../../build/NEWS:11459 ../../../build/NEWS:14302 +#: ../../../build/NEWS:12083 ../../../build/NEWS:14926 msgid "" -"`bpo-27114 `__: Fix " -"SSLContext._load_windows_store_certs fails with PermissionError" +"`bpo-27114 `__: Fix SSLContext." +"_load_windows_store_certs fails with PermissionError" msgstr "" -#: ../../../build/NEWS:11462 ../../../build/NEWS:14305 +#: ../../../build/NEWS:12086 ../../../build/NEWS:14929 msgid "" -"`bpo-18383 `__: Avoid creating duplicate" -" filters when using filterwarnings and simplefilter. Based on patch by Alex " +"`bpo-18383 `__: Avoid creating duplicate " +"filters when using filterwarnings and simplefilter. Based on patch by Alex " "Shkop." msgstr "" -#: ../../../build/NEWS:11465 +#: ../../../build/NEWS:12089 msgid "" "`bpo-23026 `__: winreg.QueryValueEx() " "now return an integer for REG_QWORD type." msgstr "" -#: ../../../build/NEWS:11467 +#: ../../../build/NEWS:12091 msgid "" "`bpo-26741 `__: subprocess.Popen " -"destructor now emits a ResourceWarning warning if the child process is still" -" running." +"destructor now emits a ResourceWarning warning if the child process is still " +"running." msgstr "" -#: ../../../build/NEWS:11470 +#: ../../../build/NEWS:12094 msgid "" "`bpo-27056 `__: Optimize pickle.load() " "and pickle.loads(), up to 10% faster to deserialize a lot of small objects." msgstr "" -#: ../../../build/NEWS:11473 +#: ../../../build/NEWS:12097 msgid "" "`bpo-21271 `__: New keyword only " "parameters in reset_mock call." msgstr "" -#: ../../../build/NEWS:11478 ../../../build/NEWS:14671 +#: ../../../build/NEWS:12102 ../../../build/NEWS:15295 msgid "" "`bpo-5124 `__: Paste with text selected " "now replaces the selection on X11. This matches how paste works on Windows, " @@ -17477,40 +18502,39 @@ msgid "" "Storchaka." msgstr "" -#: ../../../build/NEWS:11482 +#: ../../../build/NEWS:12106 msgid "" -"`bpo-24750 `__: Switch all scrollbars in" -" IDLE to ttk versions. Where needed, minimal tests are added to cover " -"changes." +"`bpo-24750 `__: Switch all scrollbars in " +"IDLE to ttk versions. Where needed, minimal tests are added to cover changes." msgstr "" -#: ../../../build/NEWS:11485 +#: ../../../build/NEWS:12109 msgid "" -"`bpo-24759 `__: IDLE requires tk 8.5 and" -" availability ttk widgets. Delete now unneeded tk version tests and code for" -" older versions. Add test for IDLE syntax colorizer." +"`bpo-24759 `__: IDLE requires tk 8.5 and " +"availability ttk widgets. Delete now unneeded tk version tests and code for " +"older versions. Add test for IDLE syntax colorizer." msgstr "" -#: ../../../build/NEWS:11489 +#: ../../../build/NEWS:12113 msgid "" "`bpo-27239 `__: idlelib.macosx.isXyzTk " "functions initialize as needed." msgstr "" -#: ../../../build/NEWS:11491 +#: ../../../build/NEWS:12115 msgid "" "`bpo-27262 `__: move Aqua unbinding " "code, which enable context menus, to macosx." msgstr "" -#: ../../../build/NEWS:11494 ../../../build/NEWS:14675 +#: ../../../build/NEWS:12118 ../../../build/NEWS:15299 msgid "" -"`bpo-24759 `__: Make clear in " -"idlelib.idle_test.__init__ that the directory is a private implementation of" -" test.test_idle and tool for maintainers." +"`bpo-24759 `__: Make clear in idlelib." +"idle_test.__init__ that the directory is a private implementation of test." +"test_idle and tool for maintainers." msgstr "" -#: ../../../build/NEWS:11497 ../../../build/NEWS:14678 +#: ../../../build/NEWS:12121 ../../../build/NEWS:15302 msgid "" "`bpo-27196 `__: Stop 'ThemeChanged' " "warnings when running IDLE tests. These persisted after other warnings were " @@ -17518,423 +18542,420 @@ msgid "" "four test files. Record this additional advice in idle_test/README.txt" msgstr "" -#: ../../../build/NEWS:11502 ../../../build/NEWS:14683 +#: ../../../build/NEWS:12126 ../../../build/NEWS:15307 msgid "" -"`bpo-20567 `__: Revise " -"idle_test/README.txt with advice about avoiding tk warning messages from " -"tests. Apply advice to several IDLE tests." +"`bpo-20567 `__: Revise idle_test/README." +"txt with advice about avoiding tk warning messages from tests. Apply advice " +"to several IDLE tests." msgstr "" -#: ../../../build/NEWS:11505 +#: ../../../build/NEWS:12129 msgid "" -"`bpo-24225 `__: Update " -"idlelib/README.txt with new file names and event handlers." +"`bpo-24225 `__: Update idlelib/README." +"txt with new file names and event handlers." msgstr "" -#: ../../../build/NEWS:11508 +#: ../../../build/NEWS:12132 msgid "" -"`bpo-27156 `__: Remove obsolete code not" -" used by IDLE." +"`bpo-27156 `__: Remove obsolete code not " +"used by IDLE." msgstr "" -#: ../../../build/NEWS:11510 ../../../build/NEWS:14686 +#: ../../../build/NEWS:12134 ../../../build/NEWS:15310 msgid "" -"`bpo-27117 `__: Make colorizer htest and" -" turtledemo work with dark themes. Move code for configuring text widget " +"`bpo-27117 `__: Make colorizer htest and " +"turtledemo work with dark themes. Move code for configuring text widget " "colors to a new function." msgstr "" -#: ../../../build/NEWS:11513 +#: ../../../build/NEWS:12137 msgid "" -"`bpo-24225 `__: Rename many " -"`idlelib/*.py` and `idle_test/test_*.py` files. Edit files to replace old " -"names with new names when the old name referred to the module rather than " -"the class it contained. See the issue and IDLE section in What's New in 3.6 " -"for more." +"`bpo-24225 `__: Rename many `idlelib/*." +"py` and `idle_test/test_*.py` files. Edit files to replace old names with " +"new names when the old name referred to the module rather than the class it " +"contained. See the issue and IDLE section in What's New in 3.6 for more." msgstr "" -#: ../../../build/NEWS:11518 ../../../build/NEWS:14689 +#: ../../../build/NEWS:12142 ../../../build/NEWS:15313 msgid "" "`bpo-26673 `__: When tk reports font " "size as 0, change to size 10. Such fonts on Linux prevented the " "configuration dialog from opening." msgstr "" -#: ../../../build/NEWS:11521 ../../../build/NEWS:14692 +#: ../../../build/NEWS:12145 ../../../build/NEWS:15316 msgid "" "`bpo-21939 `__: Add test for IDLE's " "percolator. Original patch by Saimadhav Heblikar." msgstr "" -#: ../../../build/NEWS:11524 ../../../build/NEWS:14695 +#: ../../../build/NEWS:12148 ../../../build/NEWS:15319 msgid "" "`bpo-21676 `__: Add test for IDLE's " "replace dialog. Original patch by Saimadhav Heblikar." msgstr "" -#: ../../../build/NEWS:11527 ../../../build/NEWS:14698 +#: ../../../build/NEWS:12151 ../../../build/NEWS:15322 msgid "" "`bpo-18410 `__: Add test for IDLE's " "search dialog. Original patch by Westley Martínez." msgstr "" -#: ../../../build/NEWS:11530 +#: ../../../build/NEWS:12154 msgid "" "`bpo-21703 `__: Add test for undo " "delegator. Patch mostly by Saimadhav Heblikar ." msgstr "" -#: ../../../build/NEWS:11533 ../../../build/NEWS:14704 +#: ../../../build/NEWS:12157 ../../../build/NEWS:15328 msgid "" -"`bpo-27044 `__: Add " -"ConfigDialog.remove_var_callbacks to stop memory leaks." +"`bpo-27044 `__: Add ConfigDialog." +"remove_var_callbacks to stop memory leaks." msgstr "" -#: ../../../build/NEWS:11535 ../../../build/NEWS:14706 +#: ../../../build/NEWS:12159 ../../../build/NEWS:15330 msgid "" "`bpo-23977 `__: Add more asserts to " "test_delegator." msgstr "" -#: ../../../build/NEWS:11540 +#: ../../../build/NEWS:12164 msgid "" "`bpo-16484 `__: Change the default " -"PYTHONDOCS URL to \"https:\", and fix the resulting links to use lowercase." -" Patch by Sean Rodman, test by Kaushik Nadikuditi." +"PYTHONDOCS URL to \"https:\", and fix the resulting links to use lowercase. " +"Patch by Sean Rodman, test by Kaushik Nadikuditi." msgstr "" -#: ../../../build/NEWS:11544 ../../../build/NEWS:14727 +#: ../../../build/NEWS:12168 ../../../build/NEWS:15351 msgid "" -"`bpo-24136 `__: Document the new PEP 448" -" unpacking syntax of 3.5." +"`bpo-24136 `__: Document the new PEP 448 " +"unpacking syntax of 3.5." msgstr "" -#: ../../../build/NEWS:11546 ../../../build/NEWS:15288 +#: ../../../build/NEWS:12170 ../../../build/NEWS:15912 msgid "" "`bpo-22558 `__: Add remaining doc links " "to source code for Python-coded modules. Patch by Yoni Lavi." msgstr "" -#: ../../../build/NEWS:11552 +#: ../../../build/NEWS:12176 msgid "" "`bpo-25285 `__: regrtest now uses " "subprocesses when the -j1 command line option is used: each test file runs " "in a fresh child process. Before, the -j1 option was ignored." msgstr "" -#: ../../../build/NEWS:11556 +#: ../../../build/NEWS:12180 msgid "" "`bpo-25285 `__: Tools/buildbot/test.bat " "script now uses -j1 by default to run each test file in fresh child process." msgstr "" -#: ../../../build/NEWS:11562 +#: ../../../build/NEWS:12186 msgid "" "`bpo-27064 `__: The py.exe launcher now " "defaults to Python 3. The Windows launcher ``py.exe`` no longer prefers an " "installed Python 2 version over Python 3 by default when used interactively." msgstr "" -#: ../../../build/NEWS:11569 ../../../build/NEWS:14778 +#: ../../../build/NEWS:12193 ../../../build/NEWS:15402 msgid "" "`bpo-27229 `__: Fix the cross-compiling " "pgen rule for in-tree builds. Patch by Xavier de Gaye." msgstr "" -#: ../../../build/NEWS:11572 ../../../build/NEWS:14815 +#: ../../../build/NEWS:12196 ../../../build/NEWS:15439 msgid "" -"`bpo-26930 `__: Update OS X 10.5+ 32" -"-bit-only installer to build and link with OpenSSL 1.0.2h." +"`bpo-26930 `__: Update OS X 10.5+ 32-bit-" +"only installer to build and link with OpenSSL 1.0.2h." msgstr "" -#: ../../../build/NEWS:11578 ../../../build/NEWS:14861 +#: ../../../build/NEWS:12202 ../../../build/NEWS:15485 msgid "" "`bpo-17500 `__: Remove unused and " -"outdated icons. (See also: " -"https://github.com/python/pythondotorg/issues/945)" +"outdated icons. (See also: https://github.com/python/pythondotorg/issues/945)" msgstr "" -#: ../../../build/NEWS:11584 +#: ../../../build/NEWS:12208 msgid "" "`bpo-27186 `__: Add the PyOS_FSPath() " "function (part of PEP 519)." msgstr "" -#: ../../../build/NEWS:11586 +#: ../../../build/NEWS:12210 msgid "" "`bpo-26282 `__: " "PyArg_ParseTupleAndKeywords() now supports positional-only parameters." msgstr "" -#: ../../../build/NEWS:11592 +#: ../../../build/NEWS:12216 msgid "" "`bpo-26282 `__: Argument Clinic now " "supports positional-only and keyword parameters in the same function." msgstr "" -#: ../../../build/NEWS:11597 +#: ../../../build/NEWS:12221 msgid "Python 3.6.0 alpha 1" msgstr "" -#: ../../../build/NEWS:11599 +#: ../../../build/NEWS:12223 msgid "*Release date: 2016-05-16*" msgstr "" -#: ../../../build/NEWS:11604 ../../../build/NEWS:14118 +#: ../../../build/NEWS:12228 ../../../build/NEWS:14742 msgid "" "`bpo-20041 `__: Fixed TypeError when " "frame.f_trace is set to None. Patch by Xavier de Gaye." msgstr "" -#: ../../../build/NEWS:11607 ../../../build/NEWS:14121 +#: ../../../build/NEWS:12231 ../../../build/NEWS:14745 msgid "" "`bpo-26168 `__: Fixed possible refleaks " "in failing Py_BuildValue() with the \"N\" format unit." msgstr "" -#: ../../../build/NEWS:11610 ../../../build/NEWS:14124 +#: ../../../build/NEWS:12234 ../../../build/NEWS:14748 msgid "" "`bpo-26991 `__: Fix possible refleak " "when creating a function with annotations." msgstr "" -#: ../../../build/NEWS:11612 +#: ../../../build/NEWS:12236 msgid "" -"`bpo-27039 `__: Fixed bytearray.remove()" -" for values greater than 127. Based on patch by Joe Jevnik." +"`bpo-27039 `__: Fixed bytearray.remove() " +"for values greater than 127. Based on patch by Joe Jevnik." msgstr "" -#: ../../../build/NEWS:11615 ../../../build/NEWS:14129 +#: ../../../build/NEWS:12239 ../../../build/NEWS:14753 msgid "" "`bpo-23640 `__: int.from_bytes() no " "longer bypasses constructors for subclasses." msgstr "" -#: ../../../build/NEWS:11618 +#: ../../../build/NEWS:12242 msgid "" -"`bpo-27005 `__: Optimized the " -"float.fromhex() class method for exact float. It is now 2 times faster." +"`bpo-27005 `__: Optimized the float." +"fromhex() class method for exact float. It is now 2 times faster." msgstr "" -#: ../../../build/NEWS:11621 +#: ../../../build/NEWS:12245 msgid "" "`bpo-18531 `__: Single var-keyword " "argument of dict subtype was passed unscathed to the C-defined function. " "Now it is converted to exact dict." msgstr "" -#: ../../../build/NEWS:11624 ../../../build/NEWS:14132 +#: ../../../build/NEWS:12248 ../../../build/NEWS:14756 msgid "" "`bpo-26811 `__: gc.get_objects() no " "longer contains a broken tuple with NULL pointer." msgstr "" -#: ../../../build/NEWS:11627 ../../../build/NEWS:14135 +#: ../../../build/NEWS:12251 ../../../build/NEWS:14759 msgid "" -"`bpo-20120 `__: Use RawConfigParser for " -".pypirc parsing, removing support for interpolation unintentionally added " +"`bpo-20120 `__: Use RawConfigParser for ." +"pypirc parsing, removing support for interpolation unintentionally added " "with move to Python 3. Behavior no longer does any interpolation in .pypirc " "files, matching behavior in Python 2.7 and Setuptools 19.0." msgstr "" -#: ../../../build/NEWS:11632 +#: ../../../build/NEWS:12256 msgid "" -"`bpo-26249 `__: Memory functions of the " -":c:func:`PyMem_Malloc` domain (:c:data:`PYMEM_DOMAIN_MEM`) now use the " -":ref:`pymalloc allocator ` rather than system :c:func:`malloc`. " +"`bpo-26249 `__: Memory functions of the :" +"c:func:`PyMem_Malloc` domain (:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:" +"`pymalloc allocator ` rather than system :c:func:`malloc`. " "Applications calling :c:func:`PyMem_Malloc` without holding the GIL can now " -"crash: use ``PYTHONMALLOC=debug`` environment variable to validate the usage" -" of memory allocators in your application." +"crash: use ``PYTHONMALLOC=debug`` environment variable to validate the usage " +"of memory allocators in your application." msgstr "" -#: ../../../build/NEWS:11639 +#: ../../../build/NEWS:12263 msgid "" "`bpo-26802 `__: Optimize function calls " -"only using unpacking like ``func(*tuple)`` (no other positional argument, no" -" keyword): avoid copying the tuple. Patch written by Joe Jevnik." +"only using unpacking like ``func(*tuple)`` (no other positional argument, no " +"keyword): avoid copying the tuple. Patch written by Joe Jevnik." msgstr "" -#: ../../../build/NEWS:11643 ../../../build/NEWS:14140 +#: ../../../build/NEWS:12267 ../../../build/NEWS:14764 msgid "" "`bpo-26659 `__: Make the builtin slice " "type support cycle collection." msgstr "" -#: ../../../build/NEWS:11645 ../../../build/NEWS:14142 +#: ../../../build/NEWS:12269 ../../../build/NEWS:14766 msgid "" -"`bpo-26718 `__: super.__init__ no longer" -" leaks memory if called multiple times. NOTE: A direct call of " -"super.__init__ is not endorsed!" +"`bpo-26718 `__: super.__init__ no longer " +"leaks memory if called multiple times. NOTE: A direct call of super.__init__ " +"is not endorsed!" msgstr "" -#: ../../../build/NEWS:11648 ../../../build/NEWS:14172 +#: ../../../build/NEWS:12272 ../../../build/NEWS:14796 msgid "" "`bpo-27138 `__: Fix the doc comment for " "FileFinder.find_spec()." msgstr "" -#: ../../../build/NEWS:11650 ../../../build/NEWS:14216 +#: ../../../build/NEWS:12274 ../../../build/NEWS:14840 msgid "" "`bpo-27147 `__: Mention PEP 420 in the " "importlib docs." msgstr "" -#: ../../../build/NEWS:11652 ../../../build/NEWS:14145 +#: ../../../build/NEWS:12276 ../../../build/NEWS:14769 msgid "" -"`bpo-25339 `__: PYTHONIOENCODING now has" -" priority over locale in setting the error handler for stdin and stdout." +"`bpo-25339 `__: PYTHONIOENCODING now has " +"priority over locale in setting the error handler for stdin and stdout." msgstr "" -#: ../../../build/NEWS:11655 ../../../build/NEWS:14148 +#: ../../../build/NEWS:12279 ../../../build/NEWS:14772 msgid "" -"`bpo-26494 `__: Fixed crash on iterating" -" exhausting iterators. Affected classes are generic sequence iterators, " +"`bpo-26494 `__: Fixed crash on iterating " +"exhausting iterators. Affected classes are generic sequence iterators, " "iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, " "OrderedDict, corresponding views and os.scandir() iterator." msgstr "" -#: ../../../build/NEWS:11660 +#: ../../../build/NEWS:12284 msgid "" -"`bpo-26574 `__: Optimize " -"``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``. Patch " -"written by Josh Snider." +"`bpo-26574 `__: Optimize ``bytes." +"replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``. Patch written by " +"Josh Snider." msgstr "" -#: ../../../build/NEWS:11663 ../../../build/NEWS:14153 +#: ../../../build/NEWS:12287 ../../../build/NEWS:14777 msgid "" "`bpo-26581 `__: If coding cookie is " "specified multiple times on a line in Python source code file, only the " "first one is taken to account." msgstr "" -#: ../../../build/NEWS:11666 +#: ../../../build/NEWS:12290 msgid "" "`bpo-19711 `__: Add tests for reloading " "namespace packages." msgstr "" -#: ../../../build/NEWS:11668 +#: ../../../build/NEWS:12292 msgid "" "`bpo-21099 `__: Switch applicable " "importlib tests to use PEP 451 API." msgstr "" -#: ../../../build/NEWS:11670 +#: ../../../build/NEWS:12294 msgid "" "`bpo-26563 `__: Debug hooks on Python " -"memory allocators now raise a fatal error if functions of the " -":c:func:`PyMem_Malloc` family are called without holding the GIL." +"memory allocators now raise a fatal error if functions of the :c:func:" +"`PyMem_Malloc` family are called without holding the GIL." msgstr "" -#: ../../../build/NEWS:11674 +#: ../../../build/NEWS:12298 msgid "" "`bpo-26564 `__: On error, the debug " "hooks on Python memory allocators now use the :mod:`tracemalloc` module to " "get the traceback where a memory block was allocated." msgstr "" -#: ../../../build/NEWS:11678 +#: ../../../build/NEWS:12302 msgid "" "`bpo-26558 `__: The debug hooks on " "Python memory allocator :c:func:`PyObject_Malloc` now detect when functions " "are called without holding the GIL." msgstr "" -#: ../../../build/NEWS:11682 +#: ../../../build/NEWS:12306 msgid "" -"`bpo-26516 `__: Add " -":envvar:`PYTHONMALLOC` environment variable to set the Python memory " -"allocators and/or install debug hooks." +"`bpo-26516 `__: Add :envvar:" +"`PYTHONMALLOC` environment variable to set the Python memory allocators and/" +"or install debug hooks." msgstr "" -#: ../../../build/NEWS:11685 +#: ../../../build/NEWS:12309 msgid "" -"`bpo-26516 `__: The " -":c:func:`PyMem_SetupDebugHooks` function can now also be used on Python " -"compiled in release mode." +"`bpo-26516 `__: The :c:func:" +"`PyMem_SetupDebugHooks` function can now also be used on Python compiled in " +"release mode." msgstr "" -#: ../../../build/NEWS:11688 +#: ../../../build/NEWS:12312 msgid "" -"`bpo-26516 `__: The " -":envvar:`PYTHONMALLOCSTATS` environment variable can now also be used on " -"Python compiled in release mode. It now has no effect if set to an empty " -"string." +"`bpo-26516 `__: The :envvar:" +"`PYTHONMALLOCSTATS` environment variable can now also be used on Python " +"compiled in release mode. It now has no effect if set to an empty string." msgstr "" -#: ../../../build/NEWS:11692 +#: ../../../build/NEWS:12316 msgid "" "`bpo-26516 `__: In debug mode, debug " "hooks are now also installed on Python memory allocators when Python is " "configured without pymalloc." msgstr "" -#: ../../../build/NEWS:11695 ../../../build/NEWS:14156 +#: ../../../build/NEWS:12319 ../../../build/NEWS:14780 msgid "" -"`bpo-26464 `__: Fix str.translate() when" -" string is ASCII and first replacements removes character, but next " +"`bpo-26464 `__: Fix str.translate() when " +"string is ASCII and first replacements removes character, but next " "replacement uses a non-ASCII character or a string longer than 1 character. " "Regression introduced in Python 3.5.0." msgstr "" -#: ../../../build/NEWS:11699 ../../../build/NEWS:14160 +#: ../../../build/NEWS:12323 ../../../build/NEWS:14784 msgid "" -"`bpo-22836 `__: Ensure exception reports" -" from PyErr_Display() and PyErr_WriteUnraisable() are sensible even when " +"`bpo-22836 `__: Ensure exception reports " +"from PyErr_Display() and PyErr_WriteUnraisable() are sensible even when " "formatting them produces secondary errors. This affects the reports " "produced by sys.__excepthook__() and when __del__() raises an exception." msgstr "" -#: ../../../build/NEWS:11704 ../../../build/NEWS:14165 +#: ../../../build/NEWS:12328 ../../../build/NEWS:14789 msgid "" "`bpo-26302 `__: Correct behavior to " "reject comma as a legal character for cookie names." msgstr "" -#: ../../../build/NEWS:11707 +#: ../../../build/NEWS:12331 msgid "" -"`bpo-26136 `__: Upgrade the warning when" -" a generator raises StopIteration from PendingDeprecationWarning to " +"`bpo-26136 `__: Upgrade the warning when " +"a generator raises StopIteration from PendingDeprecationWarning to " "DeprecationWarning. Patch by Anish Shah." msgstr "" -#: ../../../build/NEWS:11710 +#: ../../../build/NEWS:12334 msgid "" -"`bpo-26204 `__: The compiler now ignores" -" all constant statements: bytes, str, int, float, complex, name constants " +"`bpo-26204 `__: The compiler now ignores " +"all constant statements: bytes, str, int, float, complex, name constants " "(None, False, True), Ellipsis and ast.Constant; not only str and int. For " "example, ``1.0`` is now ignored in ``def f(): 1.0``." msgstr "" -#: ../../../build/NEWS:11715 ../../../build/NEWS:14168 +#: ../../../build/NEWS:12339 ../../../build/NEWS:14792 msgid "" -"`bpo-4806 `__: Avoid masking the original" -" TypeError exception when using star (``*``) unpacking in function calls. " +"`bpo-4806 `__: Avoid masking the original " +"TypeError exception when using star (``*``) unpacking in function calls. " "Based on patch by Hagen Fürstenau and Daniel Urban." msgstr "" -#: ../../../build/NEWS:11719 +#: ../../../build/NEWS:12343 msgid "" "`bpo-26146 `__: Add a new kind of AST " "node: ``ast.Constant``. It can be used by external AST optimizers, but the " "compiler does not emit directly such node." msgstr "" -#: ../../../build/NEWS:11723 +#: ../../../build/NEWS:12347 msgid "" "`bpo-23601 `__: Sped-up allocation of " "dict key objects by using Python's small object allocator. (Contributed by " "Julian Taylor.)" msgstr "" -#: ../../../build/NEWS:11726 +#: ../../../build/NEWS:12350 msgid "" "`bpo-18018 `__: Import raises " -"ImportError instead of SystemError if a relative import is attempted without" -" a known parent package." +"ImportError instead of SystemError if a relative import is attempted without " +"a known parent package." msgstr "" -#: ../../../build/NEWS:11729 +#: ../../../build/NEWS:12353 msgid "" "`bpo-25843 `__: When compiling code, " "don't merge constants if they are equal but have a different types. For " @@ -17943,14 +18964,14 @@ msgid "" "returns ``1.0`` (``float``), even if ``1`` and ``1.0`` are equal." msgstr "" -#: ../../../build/NEWS:11735 +#: ../../../build/NEWS:12359 msgid "" "`bpo-26107 `__: The format of the " "``co_lnotab`` attribute of code objects changes to support negative line " "number delta." msgstr "" -#: ../../../build/NEWS:11738 ../../../build/NEWS:14174 +#: ../../../build/NEWS:12362 ../../../build/NEWS:14798 msgid "" "`bpo-26154 `__: Add a new private " "_PyThreadState_UncheckedGet() function to get the current Python thread " @@ -17960,33 +18981,33 @@ msgid "" "implementation of atomic C types, to avoid compiler issues." msgstr "" -#: ../../../build/NEWS:11745 +#: ../../../build/NEWS:12369 msgid "" "`bpo-25791 `__: If __package__ != " "__spec__.parent or if neither __package__ or __spec__ are defined then " "ImportWarning is raised." msgstr "" -#: ../../../build/NEWS:11748 ../../../build/NEWS:14191 +#: ../../../build/NEWS:12372 ../../../build/NEWS:14815 msgid "" -"`bpo-22995 `__: [UPDATE] Comment out the" -" one of the pickleability tests in _PyObject_GetState() due to regressions " +"`bpo-22995 `__: [UPDATE] Comment out the " +"one of the pickleability tests in _PyObject_GetState() due to regressions " "observed in Cython-based projects." msgstr "" -#: ../../../build/NEWS:11751 ../../../build/NEWS:14194 +#: ../../../build/NEWS:12375 ../../../build/NEWS:14818 msgid "" "`bpo-25961 `__: Disallowed null " "characters in the type name." msgstr "" -#: ../../../build/NEWS:11753 ../../../build/NEWS:14196 +#: ../../../build/NEWS:12377 ../../../build/NEWS:14820 msgid "" "`bpo-25973 `__: Fix segfault when an " "invalid nonlocal statement binds a name starting with two underscores." msgstr "" -#: ../../../build/NEWS:11756 ../../../build/NEWS:14199 +#: ../../../build/NEWS:12380 ../../../build/NEWS:14823 msgid "" "`bpo-22995 `__: Instances of extension " "types with a state that aren't subclasses of list or dict and haven't " @@ -17995,52 +19016,52 @@ msgid "" "pickled. Including memoryview." msgstr "" -#: ../../../build/NEWS:11761 ../../../build/NEWS:14204 +#: ../../../build/NEWS:12385 ../../../build/NEWS:14828 msgid "" -"`bpo-20440 `__: Massive replacing unsafe" -" attribute setting code with special macro Py_SETREF." +"`bpo-20440 `__: Massive replacing unsafe " +"attribute setting code with special macro Py_SETREF." msgstr "" -#: ../../../build/NEWS:11764 ../../../build/NEWS:14207 +#: ../../../build/NEWS:12388 ../../../build/NEWS:14831 msgid "" "`bpo-25766 `__: Special method " "__bytes__() now works in str subclasses." msgstr "" -#: ../../../build/NEWS:11766 ../../../build/NEWS:14209 +#: ../../../build/NEWS:12390 ../../../build/NEWS:14833 msgid "" "`bpo-25421 `__: __sizeof__ methods of " "builtin types now use dynamic basic size. This allows sys.getsize() to work " "correctly with their subclasses with __slots__ defined." msgstr "" -#: ../../../build/NEWS:11770 ../../../build/NEWS:14213 -#: ../../../build/NEWS:14873 +#: ../../../build/NEWS:12394 ../../../build/NEWS:14837 +#: ../../../build/NEWS:15497 msgid "" "`bpo-25709 `__: Fixed problem with in-" "place string concatenation and utf-8 cache." msgstr "" -#: ../../../build/NEWS:11773 +#: ../../../build/NEWS:12397 msgid "" "`bpo-5319 `__: New Py_FinalizeEx() API " "allowing Python to set an exit status of 120 on failure to flush buffered " "streams." msgstr "" -#: ../../../build/NEWS:11776 +#: ../../../build/NEWS:12400 msgid "" "`bpo-25485 `__: telnetlib.Telnet is now " "a context manager." msgstr "" -#: ../../../build/NEWS:11778 ../../../build/NEWS:14218 +#: ../../../build/NEWS:12402 ../../../build/NEWS:14842 msgid "" -"`bpo-24097 `__: Fixed crash in " -"object.__reduce__() if slot name is freed inside __getattr__." +"`bpo-24097 `__: Fixed crash in object." +"__reduce__() if slot name is freed inside __getattr__." msgstr "" -#: ../../../build/NEWS:11781 ../../../build/NEWS:14221 +#: ../../../build/NEWS:12405 ../../../build/NEWS:14845 msgid "" "`bpo-24731 `__: Fixed crash on " "converting objects with special methods __bytes__, __trunc__, and __float__ " @@ -18048,41 +19069,41 @@ msgid "" "bytes, int, and float correspondingly." msgstr "" -#: ../../../build/NEWS:11786 ../../../build/NEWS:14891 +#: ../../../build/NEWS:12410 ../../../build/NEWS:15515 msgid "" "`bpo-25630 `__: Fix a possible segfault " "during argument parsing in functions that accept filesystem paths." msgstr "" -#: ../../../build/NEWS:11789 ../../../build/NEWS:14894 +#: ../../../build/NEWS:12413 ../../../build/NEWS:15518 msgid "" -"`bpo-23564 `__: Fixed a partially broken" -" sanity check in the _posixsubprocess internals regarding how fds_to_pass " +"`bpo-23564 `__: Fixed a partially broken " +"sanity check in the _posixsubprocess internals regarding how fds_to_pass " "were passed to the child. The bug had no actual impact as subprocess.py " "already avoided it." msgstr "" -#: ../../../build/NEWS:11793 ../../../build/NEWS:14898 +#: ../../../build/NEWS:12417 ../../../build/NEWS:15522 msgid "" "`bpo-25388 `__: Fixed tokenizer crash " "when processing undecodable source code with a null byte." msgstr "" -#: ../../../build/NEWS:11796 ../../../build/NEWS:14901 +#: ../../../build/NEWS:12420 ../../../build/NEWS:15525 msgid "" "`bpo-25462 `__: The hash of the key now " "is calculated only once in most operations in C implementation of " "OrderedDict." msgstr "" -#: ../../../build/NEWS:11799 ../../../build/NEWS:14904 +#: ../../../build/NEWS:12423 ../../../build/NEWS:15528 msgid "" "`bpo-22995 `__: Default implementation " "of __reduce__ and __reduce_ex__ now rejects builtin types with not defined " "__new__." msgstr "" -#: ../../../build/NEWS:11802 ../../../build/NEWS:14910 +#: ../../../build/NEWS:12426 ../../../build/NEWS:15534 msgid "" "`bpo-24802 `__: Avoid buffer overreads " "when int(), float(), compile(), exec() and eval() are passed bytes-like " @@ -18090,110 +19111,109 @@ msgid "" "the functions assumed they were." msgstr "" -#: ../../../build/NEWS:11807 ../../../build/NEWS:14907 +#: ../../../build/NEWS:12431 ../../../build/NEWS:15531 msgid "" -"`bpo-25555 `__: Fix parser and AST: fill" -" lineno and col_offset of \"arg\" node when compiling AST from Python " -"objects." +"`bpo-25555 `__: Fix parser and AST: fill " +"lineno and col_offset of \"arg\" node when compiling AST from Python objects." msgstr "" -#: ../../../build/NEWS:11810 ../../../build/NEWS:14915 +#: ../../../build/NEWS:12434 ../../../build/NEWS:15539 msgid "" "`bpo-24726 `__: Fixed a crash and " "leaking NULL in repr() of OrderedDict that was mutated by direct calls of " "dict methods." msgstr "" -#: ../../../build/NEWS:11813 ../../../build/NEWS:14918 +#: ../../../build/NEWS:12437 ../../../build/NEWS:15542 msgid "" "`bpo-25449 `__: Iterating OrderedDict " "with keys with unstable hash now raises KeyError in C implementations as " "well as in Python implementation." msgstr "" -#: ../../../build/NEWS:11816 ../../../build/NEWS:14921 +#: ../../../build/NEWS:12440 ../../../build/NEWS:15545 msgid "" "`bpo-25395 `__: Fixed crash when highly " "nested OrderedDict structures were garbage collected." msgstr "" -#: ../../../build/NEWS:11819 +#: ../../../build/NEWS:12443 msgid "" -"`bpo-25401 `__: Optimize bytes.fromhex()" -" and bytearray.fromhex(): they are now between 2x and 3.5x faster." +"`bpo-25401 `__: Optimize bytes.fromhex() " +"and bytearray.fromhex(): they are now between 2x and 3.5x faster." msgstr "" -#: ../../../build/NEWS:11822 +#: ../../../build/NEWS:12446 msgid "" "`bpo-25399 `__: Optimize bytearray % " -"args using the new private _PyBytesWriter API. Formatting is now between 2.5" -" and 5 times faster." +"args using the new private _PyBytesWriter API. Formatting is now between 2.5 " +"and 5 times faster." msgstr "" -#: ../../../build/NEWS:11825 ../../../build/NEWS:14924 +#: ../../../build/NEWS:12449 ../../../build/NEWS:15548 msgid "" "`bpo-25274 `__: sys.setrecursionlimit() " "now raises a RecursionError if the new recursion limit is too low depending " -"at the current recursion depth. Modify also the \"lower-water mark\" formula" -" to make it monotonic. This mark is used to decide when the overflowed flag " +"at the current recursion depth. Modify also the \"lower-water mark\" formula " +"to make it monotonic. This mark is used to decide when the overflowed flag " "of the thread state is reset." msgstr "" -#: ../../../build/NEWS:11830 ../../../build/NEWS:14929 +#: ../../../build/NEWS:12454 ../../../build/NEWS:15553 msgid "" -"`bpo-24402 `__: Fix input() to prompt to" -" the redirected stdout when sys.stdout.fileno() fails." +"`bpo-24402 `__: Fix input() to prompt to " +"the redirected stdout when sys.stdout.fileno() fails." msgstr "" -#: ../../../build/NEWS:11833 +#: ../../../build/NEWS:12457 msgid "" "`bpo-25349 `__: Optimize bytes % args " "using the new private _PyBytesWriter API. Formatting is now up to 2 times " "faster." msgstr "" -#: ../../../build/NEWS:11836 ../../../build/NEWS:14932 +#: ../../../build/NEWS:12460 ../../../build/NEWS:15556 msgid "" "`bpo-24806 `__: Prevent builtin types " -"that are not allowed to be subclassed from being subclassed through multiple" -" inheritance." +"that are not allowed to be subclassed from being subclassed through multiple " +"inheritance." msgstr "" -#: ../../../build/NEWS:11839 +#: ../../../build/NEWS:12463 msgid "" -"`bpo-25301 `__: The UTF-8 decoder is now" -" up to 15 times as fast for error handlers: ``ignore``, ``replace`` and " +"`bpo-25301 `__: The UTF-8 decoder is now " +"up to 15 times as fast for error handlers: ``ignore``, ``replace`` and " "``surrogateescape``." msgstr "" -#: ../../../build/NEWS:11842 ../../../build/NEWS:14935 +#: ../../../build/NEWS:12466 ../../../build/NEWS:15559 msgid "" "`bpo-24848 `__: Fixed a number of bugs " "in UTF-7 decoding of misformed data." msgstr "" -#: ../../../build/NEWS:11844 +#: ../../../build/NEWS:12468 msgid "" -"`bpo-25267 `__: The UTF-8 encoder is now" -" up to 75 times as fast for error handlers: ``ignore``, ``replace``, " +"`bpo-25267 `__: The UTF-8 encoder is now " +"up to 75 times as fast for error handlers: ``ignore``, ``replace``, " "``surrogateescape``, ``surrogatepass``. Patch co-written with Serhiy " "Storchaka." msgstr "" -#: ../../../build/NEWS:11848 ../../../build/NEWS:14937 +#: ../../../build/NEWS:12472 ../../../build/NEWS:15561 msgid "" "`bpo-25280 `__: Import trace messages " "emitted in verbose (-v) mode are no longer formatted twice." msgstr "" -#: ../../../build/NEWS:11851 +#: ../../../build/NEWS:12475 msgid "" "`bpo-25227 `__: Optimize ASCII and " -"latin1 encoders with the ``surrogateescape`` error handler: the encoders are" -" now up to 3 times as fast. Initial patch written by Serhiy Storchaka." +"latin1 encoders with the ``surrogateescape`` error handler: the encoders are " +"now up to 3 times as fast. Initial patch written by Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:11855 ../../../build/NEWS:14940 +#: ../../../build/NEWS:12479 ../../../build/NEWS:15564 msgid "" "`bpo-25003 `__: On Solaris 11.3 or " "newer, os.urandom() now uses the getrandom() function instead of the " @@ -18202,15 +19222,15 @@ msgid "" "entropy." msgstr "" -#: ../../../build/NEWS:11860 +#: ../../../build/NEWS:12484 msgid "" -"`bpo-9232 `__: Modify Python's grammar to" -" allow trailing commas in the argument list of a function declaration. For " +"`bpo-9232 `__: Modify Python's grammar to " +"allow trailing commas in the argument list of a function declaration. For " "example, \"def f(\\*, a = 3,): pass\" is now legal. Patch from Mark " "Dickinson." msgstr "" -#: ../../../build/NEWS:11864 +#: ../../../build/NEWS:12488 msgid "" "`bpo-24965 `__: Implement PEP 498 " "\"Literal String Interpolation\". This allows you to embed expressions " @@ -18218,208 +19238,206 @@ msgid "" "x=3, then f'value={x}' == 'value=3'. Patch by Eric V. Smith." msgstr "" -#: ../../../build/NEWS:11869 ../../../build/NEWS:14226 +#: ../../../build/NEWS:12493 ../../../build/NEWS:14850 msgid "" "`bpo-26478 `__: Fix semantic bugs when " "using binary operators with dictionary views and tuples." msgstr "" -#: ../../../build/NEWS:11872 ../../../build/NEWS:14229 +#: ../../../build/NEWS:12496 ../../../build/NEWS:14853 msgid "" "`bpo-26171 `__: Fix possible integer " "overflow and heap corruption in zipimporter.get_data()." msgstr "" -#: ../../../build/NEWS:11875 ../../../build/NEWS:14232 +#: ../../../build/NEWS:12499 ../../../build/NEWS:14856 msgid "" -"`bpo-25660 `__: Fix TAB key behaviour in" -" REPL with readline." +"`bpo-25660 `__: Fix TAB key behaviour in " +"REPL with readline." msgstr "" -#: ../../../build/NEWS:11877 +#: ../../../build/NEWS:12501 msgid "" -"`bpo-26288 `__: Optimize " -"PyLong_AsDouble." +"`bpo-26288 `__: Optimize PyLong_AsDouble." msgstr "" -#: ../../../build/NEWS:11879 +#: ../../../build/NEWS:12503 msgid "" "`bpo-26289 `__: Optimize floor and " "modulo division for single-digit longs. Microbenchmarks show 2-2.5x " -"improvement. Built-in 'divmod' function is now also ~10% faster. (See also:" -" `bpo-26315 `__)" +"improvement. Built-in 'divmod' function is now also ~10% faster. (See also: " +"`bpo-26315 `__)" msgstr "" -#: ../../../build/NEWS:11883 ../../../build/NEWS:14234 +#: ../../../build/NEWS:12507 ../../../build/NEWS:14858 msgid "" "`bpo-25887 `__: Raise a RuntimeError " "when a coroutine object is awaited more than once." msgstr "" -#: ../../../build/NEWS:11889 ../../../build/NEWS:14308 +#: ../../../build/NEWS:12513 ../../../build/NEWS:14932 msgid "" -"`bpo-27057 `__: Fix os.set_inheritable()" -" on Android, ioctl() is blocked by SELinux and fails with EACCESS. The " +"`bpo-27057 `__: Fix os.set_inheritable() " +"on Android, ioctl() is blocked by SELinux and fails with EACCESS. The " "function now falls back to fcntl(). Patch written by Michał Bednarski." msgstr "" -#: ../../../build/NEWS:11893 ../../../build/NEWS:14312 +#: ../../../build/NEWS:12517 ../../../build/NEWS:14936 msgid "" "`bpo-27014 `__: Fix infinite recursion " "using typing.py. Thanks to Kalle Tuure!" msgstr "" -#: ../../../build/NEWS:11895 +#: ../../../build/NEWS:12519 msgid "" -"`bpo-27031 `__: Removed dummy methods in" -" Tkinter widget classes: tk_menuBar() and tk_bindForTraversal()." +"`bpo-27031 `__: Removed dummy methods in " +"Tkinter widget classes: tk_menuBar() and tk_bindForTraversal()." msgstr "" -#: ../../../build/NEWS:11898 ../../../build/NEWS:14314 +#: ../../../build/NEWS:12522 ../../../build/NEWS:14938 msgid "" "`bpo-14132 `__: Fix urllib.request " "redirect handling when the target only has a query string. Original fix by " "Ján Janech." msgstr "" -#: ../../../build/NEWS:11901 ../../../build/NEWS:14317 +#: ../../../build/NEWS:12525 ../../../build/NEWS:14941 msgid "" "`bpo-17214 `__: The \"urllib.request\" " "module now percent-encodes non-ASCII bytes found in redirect target URLs. " -"Some servers send Location header fields with non-ASCII bytes, but " -"\"http.client\" requires the request target to be ASCII-encodable, otherwise" -" a UnicodeEncodeError is raised. Based on patch by Christian Heimes." +"Some servers send Location header fields with non-ASCII bytes, but \"http." +"client\" requires the request target to be ASCII-encodable, otherwise a " +"UnicodeEncodeError is raised. Based on patch by Christian Heimes." msgstr "" -#: ../../../build/NEWS:11907 +#: ../../../build/NEWS:12531 msgid "" -"`bpo-27033 `__: The default value of the" -" decode_data parameter for smtpd.SMTPChannel and smtpd.SMTPServer " +"`bpo-27033 `__: The default value of the " +"decode_data parameter for smtpd.SMTPChannel and smtpd.SMTPServer " "constructors is changed to False." msgstr "" -#: ../../../build/NEWS:11910 +#: ../../../build/NEWS:12534 msgid "" -"`bpo-27034 `__: Removed deprecated class" -" asynchat.fifo." +"`bpo-27034 `__: Removed deprecated class " +"asynchat.fifo." msgstr "" -#: ../../../build/NEWS:11912 +#: ../../../build/NEWS:12536 msgid "" -"`bpo-26870 `__: Added " -"readline.set_auto_history(), which can stop entries being automatically " -"added to the history list. Based on patch by Tyler Crompton." +"`bpo-26870 `__: Added readline." +"set_auto_history(), which can stop entries being automatically added to the " +"history list. Based on patch by Tyler Crompton." msgstr "" -#: ../../../build/NEWS:11916 +#: ../../../build/NEWS:12540 msgid "" "`bpo-26039 `__: zipfile.ZipFile.open() " "can now be used to write data into a ZIP file, as well as for extracting " "data. Patch by Thomas Kluyver." msgstr "" -#: ../../../build/NEWS:11919 ../../../build/NEWS:14323 +#: ../../../build/NEWS:12543 ../../../build/NEWS:14947 msgid "" -"`bpo-26892 `__: Honor debuglevel flag in" -" urllib.request.HTTPHandler. Patch contributed by Chi Hsuan Yen." +"`bpo-26892 `__: Honor debuglevel flag in " +"urllib.request.HTTPHandler. Patch contributed by Chi Hsuan Yen." msgstr "" -#: ../../../build/NEWS:11922 ../../../build/NEWS:14326 +#: ../../../build/NEWS:12546 ../../../build/NEWS:14950 msgid "" "`bpo-22274 `__: In the subprocess " "module, allow stderr to be redirected to stdout even when stdout is not " "redirected. Patch by Akira Li." msgstr "" -#: ../../../build/NEWS:11925 ../../../build/NEWS:14329 +#: ../../../build/NEWS:12549 ../../../build/NEWS:14953 msgid "" "`bpo-26807 `__: mock_open 'files' no " "longer error on readline at end of file. Patch from Yolanda Robla." msgstr "" -#: ../../../build/NEWS:11928 ../../../build/NEWS:14332 +#: ../../../build/NEWS:12552 ../../../build/NEWS:14956 msgid "" "`bpo-25745 `__: Fixed leaking a userptr " "in curses panel destructor." msgstr "" -#: ../../../build/NEWS:11930 ../../../build/NEWS:14334 +#: ../../../build/NEWS:12554 ../../../build/NEWS:14958 msgid "" -"`bpo-26977 `__: Removed unnecessary, and" -" ignored, call to sum of squares helper in statistics.pvariance." +"`bpo-26977 `__: Removed unnecessary, and " +"ignored, call to sum of squares helper in statistics.pvariance." msgstr "" -#: ../../../build/NEWS:11933 +#: ../../../build/NEWS:12557 msgid "" -"`bpo-26002 `__: Use bisect in " -"statistics.median instead of a linear search. Patch by Upendra Kuma." +"`bpo-26002 `__: Use bisect in statistics." +"median instead of a linear search. Patch by Upendra Kuma." msgstr "" -#: ../../../build/NEWS:11936 +#: ../../../build/NEWS:12560 msgid "" -"`bpo-25974 `__: Make use of new " -"Decimal.as_integer_ratio() method in statistics module. Patch by Stefan " -"Krah." +"`bpo-25974 `__: Make use of new Decimal." +"as_integer_ratio() method in statistics module. Patch by Stefan Krah." msgstr "" -#: ../../../build/NEWS:11939 +#: ../../../build/NEWS:12563 msgid "" "`bpo-26996 `__: Add secrets module as " "described in PEP 506." msgstr "" -#: ../../../build/NEWS:11941 ../../../build/NEWS:14337 +#: ../../../build/NEWS:12565 ../../../build/NEWS:14961 msgid "" "`bpo-26881 `__: The modulefinder module " "now supports extended opcode arguments." msgstr "" -#: ../../../build/NEWS:11943 ../../../build/NEWS:14339 +#: ../../../build/NEWS:12567 ../../../build/NEWS:14963 msgid "" -"`bpo-23815 `__: Fixed crashes related to" -" directly created instances of types in _tkinter and curses.panel modules." +"`bpo-23815 `__: Fixed crashes related to " +"directly created instances of types in _tkinter and curses.panel modules." msgstr "" -#: ../../../build/NEWS:11946 ../../../build/NEWS:14342 +#: ../../../build/NEWS:12570 ../../../build/NEWS:14966 msgid "" "`bpo-17765 `__: weakref.ref() no longer " "silently ignores keyword arguments. Patch by Georg Brandl." msgstr "" -#: ../../../build/NEWS:11949 ../../../build/NEWS:14345 +#: ../../../build/NEWS:12573 ../../../build/NEWS:14969 msgid "" "`bpo-26873 `__: xmlrpc now raises " "ResponseError on unsupported type tags instead of silently return incorrect " "result." msgstr "" -#: ../../../build/NEWS:11952 +#: ../../../build/NEWS:12576 msgid "" -"`bpo-26915 `__: The __contains__ methods" -" in the collections ABCs now check for identity before checking equality. " +"`bpo-26915 `__: The __contains__ methods " +"in the collections ABCs now check for identity before checking equality. " "This better matches the behavior of the concrete classes, allows sensible " "handling of NaNs, and makes it easier to reason about container invariants." msgstr "" -#: ../../../build/NEWS:11957 ../../../build/NEWS:14348 +#: ../../../build/NEWS:12581 ../../../build/NEWS:14972 msgid "" "`bpo-26711 `__: Fixed the comparison of " "plistlib.Data with other types." msgstr "" -#: ../../../build/NEWS:11959 ../../../build/NEWS:14350 +#: ../../../build/NEWS:12583 ../../../build/NEWS:14974 msgid "" "`bpo-24114 `__: Fix an uninitialized " "variable in `ctypes.util`." msgstr "" -#: ../../../build/NEWS:11961 ../../../build/NEWS:14352 +#: ../../../build/NEWS:12585 ../../../build/NEWS:14976 msgid "" -"The bug only occurs on SunOS when the ctypes implementation searches for the" -" `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos." +"The bug only occurs on SunOS when the ctypes implementation searches for the " +"`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos." msgstr "" -#: ../../../build/NEWS:11964 ../../../build/NEWS:14355 +#: ../../../build/NEWS:12588 ../../../build/NEWS:14979 msgid "" "`bpo-26864 `__: In urllib.request, " "change the proxy bypass host checking against no_proxy to be case-" @@ -18427,428 +19445,423 @@ msgid "" "bypassed hostname as a suffix. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:11969 +#: ../../../build/NEWS:12593 msgid "" -"`bpo-24902 `__: Print server URL on " -"http.server startup. Initial patch by Felix Kaiser." +"`bpo-24902 `__: Print server URL on http." +"server startup. Initial patch by Felix Kaiser." msgstr "" -#: ../../../build/NEWS:11972 +#: ../../../build/NEWS:12596 msgid "" -"`bpo-25788 `__: fileinput.hook_encoded()" -" now supports an \"errors\" argument for passing to open. Original patch by" -" Joseph Hackman." +"`bpo-25788 `__: fileinput.hook_encoded() " +"now supports an \"errors\" argument for passing to open. Original patch by " +"Joseph Hackman." msgstr "" -#: ../../../build/NEWS:11975 ../../../build/NEWS:14360 +#: ../../../build/NEWS:12599 ../../../build/NEWS:14984 msgid "" "`bpo-26634 `__: recursive_repr() now " "sets __qualname__ of wrapper. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:11978 ../../../build/NEWS:14363 +#: ../../../build/NEWS:12602 ../../../build/NEWS:14987 msgid "" "`bpo-26804 `__: urllib.request will " "prefer lower_case proxy environment variables over UPPER_CASE or Mixed_Case " "ones. Patch contributed by Hans-Peter Jansen." msgstr "" -#: ../../../build/NEWS:11982 ../../../build/NEWS:14367 +#: ../../../build/NEWS:12606 ../../../build/NEWS:14991 msgid "" "`bpo-26837 `__: assertSequenceEqual() " "now correctly outputs non-stringified differing items (like bytes in the -b " "mode). This affects assertListEqual() and assertTupleEqual()." msgstr "" -#: ../../../build/NEWS:11986 ../../../build/NEWS:14371 +#: ../../../build/NEWS:12610 ../../../build/NEWS:14995 msgid "" -"`bpo-26041 `__: Remove \"will be removed" -" in Python 3.7\" from deprecation messages of platform.dist() and " -"platform.linux_distribution(). Patch by Kumaripaba Miyurusara Athukorala." +"`bpo-26041 `__: Remove \"will be removed " +"in Python 3.7\" from deprecation messages of platform.dist() and platform." +"linux_distribution(). Patch by Kumaripaba Miyurusara Athukorala." msgstr "" -#: ../../../build/NEWS:11990 ../../../build/NEWS:14375 +#: ../../../build/NEWS:12614 ../../../build/NEWS:14999 msgid "" "`bpo-26822 `__: itemgetter, attrgetter " "and methodcaller objects no longer silently ignore keyword arguments." msgstr "" -#: ../../../build/NEWS:11993 ../../../build/NEWS:14378 +#: ../../../build/NEWS:12617 ../../../build/NEWS:15002 msgid "" "`bpo-26733 `__: Disassembling a class " "now disassembles class and static methods. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:11996 ../../../build/NEWS:14381 +#: ../../../build/NEWS:12620 ../../../build/NEWS:15005 msgid "" -"`bpo-26801 `__: Fix error handling in " -":func:`shutil.get_terminal_size`, catch :exc:`AttributeError` instead of " -":exc:`NameError`. Patch written by Emanuel Barry." +"`bpo-26801 `__: Fix error handling in :" +"func:`shutil.get_terminal_size`, catch :exc:`AttributeError` instead of :exc:" +"`NameError`. Patch written by Emanuel Barry." msgstr "" -#: ../../../build/NEWS:12000 ../../../build/NEWS:14385 +#: ../../../build/NEWS:12624 ../../../build/NEWS:15009 msgid "" "`bpo-24838 `__: tarfile's ustar and gnu " "formats now correctly calculate name and link field limits for multibyte " "character encodings like utf-8." msgstr "" -#: ../../../build/NEWS:12006 ../../../build/NEWS:14391 +#: ../../../build/NEWS:12630 ../../../build/NEWS:15015 msgid "" "`bpo-26657 `__: Fix directory traversal " -"vulnerability with http.server on Windows. This fixes a regression that was" -" introduced in 3.3.4rc1 and 3.4.0rc1. Based on patch by Philipp " -"Hagemeister." +"vulnerability with http.server on Windows. This fixes a regression that was " +"introduced in 3.3.4rc1 and 3.4.0rc1. Based on patch by Philipp Hagemeister." msgstr "" -#: ../../../build/NEWS:12013 ../../../build/NEWS:14398 +#: ../../../build/NEWS:12637 ../../../build/NEWS:15022 msgid "" -"`bpo-26717 `__: Stop encoding " -"Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile." +"`bpo-26717 `__: Stop encoding Latin-1-" +"ized WSGI paths with UTF-8. Patch by Anthony Sottile." msgstr "" -#: ../../../build/NEWS:12016 +#: ../../../build/NEWS:12640 msgid "" "`bpo-26782 `__: Add STARTUPINFO to " "subprocess.__all__ on Windows." msgstr "" -#: ../../../build/NEWS:12018 +#: ../../../build/NEWS:12642 msgid "" "`bpo-26404 `__: Add context manager to " "socketserver. Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:12020 ../../../build/NEWS:14401 +#: ../../../build/NEWS:12644 ../../../build/NEWS:15025 msgid "" "`bpo-26735 `__: Fix :func:`os.urandom` " "on Solaris 11.3 and newer when reading more than 1,024 bytes: call " "``getrandom()`` multiple times with a limit of 1024 bytes per call." msgstr "" -#: ../../../build/NEWS:12024 +#: ../../../build/NEWS:12648 msgid "" -"`bpo-26585 `__: Eliminate " -"http.server._quote_html() and use html.escape(quote=False). Patch by Xiang " -"Zhang." +"`bpo-26585 `__: Eliminate http.server." +"_quote_html() and use html.escape(quote=False). Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:12027 +#: ../../../build/NEWS:12651 msgid "" -"`bpo-26685 `__: Raise OSError if closing" -" a socket fails." +"`bpo-26685 `__: Raise OSError if closing " +"a socket fails." msgstr "" -#: ../../../build/NEWS:12029 ../../../build/NEWS:14405 +#: ../../../build/NEWS:12653 ../../../build/NEWS:15029 msgid "" -"`bpo-16329 `__: Add .webm to " -"mimetypes.types_map. Patch by Giampaolo Rodola'." +"`bpo-16329 `__: Add .webm to mimetypes." +"types_map. Patch by Giampaolo Rodola'." msgstr "" -#: ../../../build/NEWS:12031 ../../../build/NEWS:14407 +#: ../../../build/NEWS:12655 ../../../build/NEWS:15031 msgid "" -"`bpo-13952 `__: Add .csv to " -"mimetypes.types_map. Patch by Geoff Wilson." +"`bpo-13952 `__: Add .csv to mimetypes." +"types_map. Patch by Geoff Wilson." msgstr "" -#: ../../../build/NEWS:12033 +#: ../../../build/NEWS:12657 msgid "" "`bpo-26587 `__: the site module now " "allows .pth files to specify files to be added to sys.path (e.g. zip files)." msgstr "" -#: ../../../build/NEWS:12036 +#: ../../../build/NEWS:12660 msgid "" -"`bpo-25609 `__: Introduce " -"contextlib.AbstractContextManager and typing.ContextManager." +"`bpo-25609 `__: Introduce contextlib." +"AbstractContextManager and typing.ContextManager." msgstr "" -#: ../../../build/NEWS:12039 ../../../build/NEWS:14409 +#: ../../../build/NEWS:12663 ../../../build/NEWS:15033 msgid "" "`bpo-26709 `__: Fixed Y2038 problem in " "loading binary PLists." msgstr "" -#: ../../../build/NEWS:12041 ../../../build/NEWS:14411 +#: ../../../build/NEWS:12665 ../../../build/NEWS:15035 msgid "" -"`bpo-23735 `__: Handle terminal resizing" -" with Readline 6.3+ by installing our own SIGWINCH handler. Patch by Eric " +"`bpo-23735 `__: Handle terminal resizing " +"with Readline 6.3+ by installing our own SIGWINCH handler. Patch by Eric " "Price." msgstr "" -#: ../../../build/NEWS:12044 +#: ../../../build/NEWS:12668 msgid "" -"`bpo-25951 `__: Change " -"SSLSocket.sendall() to return None, as explicitly documented for plain " -"socket objects. Patch by Aviv Palivoda." +"`bpo-25951 `__: Change SSLSocket." +"sendall() to return None, as explicitly documented for plain socket " +"objects. Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:12047 ../../../build/NEWS:14414 +#: ../../../build/NEWS:12671 ../../../build/NEWS:15038 msgid "" "`bpo-26586 `__: In http.server, respond " "with \"413 Request header fields too large\" if there are too many header " -"fields to parse, rather than killing the connection and raising an unhandled" -" exception. Patch by Xiang Zhang." +"fields to parse, rather than killing the connection and raising an unhandled " +"exception. Patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:12051 +#: ../../../build/NEWS:12675 msgid "" "`bpo-26676 `__: Added missing " "XMLPullParser to ElementTree.__all__." msgstr "" -#: ../../../build/NEWS:12053 ../../../build/NEWS:14418 +#: ../../../build/NEWS:12677 ../../../build/NEWS:15042 msgid "" -"`bpo-22854 `__: Change " -"BufferedReader.writable() and BufferedWriter.readable() to always return " -"False." +"`bpo-22854 `__: Change BufferedReader." +"writable() and BufferedWriter.readable() to always return False." msgstr "" -#: ../../../build/NEWS:12056 +#: ../../../build/NEWS:12680 msgid "" "`bpo-26492 `__: Exhausted iterator of " "array.array now conforms with the behavior of iterators of other mutable " "sequences: it lefts exhausted even if iterated array is extended." msgstr "" -#: ../../../build/NEWS:12060 +#: ../../../build/NEWS:12684 msgid "" "`bpo-26641 `__: doctest.DocFileTest and " "doctest.testfile() now support packages (module splitted into multiple " "directories) for the package parameter." msgstr "" -#: ../../../build/NEWS:12063 ../../../build/NEWS:14421 +#: ../../../build/NEWS:12687 ../../../build/NEWS:15045 msgid "" -"`bpo-25195 `__: Fix a regression in " -"mock.MagicMock. _Call is a subclass of tuple (changeset 3603bae63c13 only " -"works for classes) so we need to implement __ne__ ourselves. Patch by " -"Andrew Plummer." +"`bpo-25195 `__: Fix a regression in mock." +"MagicMock. _Call is a subclass of tuple (changeset 3603bae63c13 only works " +"for classes) so we need to implement __ne__ ourselves. Patch by Andrew " +"Plummer." msgstr "" -#: ../../../build/NEWS:12067 ../../../build/NEWS:14425 +#: ../../../build/NEWS:12691 ../../../build/NEWS:15049 msgid "" "`bpo-26644 `__: Raise ValueError rather " "than SystemError when a negative length is passed to SSLSocket.recv() or " "read()." msgstr "" -#: ../../../build/NEWS:12070 ../../../build/NEWS:14428 +#: ../../../build/NEWS:12694 ../../../build/NEWS:15052 msgid "" "`bpo-23804 `__: Fix SSL recv(0) and " "read(0) methods to return zero bytes instead of up to 1024." msgstr "" -#: ../../../build/NEWS:12073 ../../../build/NEWS:14431 +#: ../../../build/NEWS:12697 ../../../build/NEWS:15055 msgid "" -"`bpo-26616 `__: Fixed a bug in " -"datetime.astimezone() method." +"`bpo-26616 `__: Fixed a bug in datetime." +"astimezone() method." msgstr "" -#: ../../../build/NEWS:12075 +#: ../../../build/NEWS:12699 msgid "" "`bpo-26637 `__: The :mod:`importlib` " -"module now emits an :exc:`ImportError` rather than a :exc:`TypeError` if " -":func:`__import__` is tried during the Python shutdown process but " -":data:`sys.path` is already cleared (set to ``None``)." +"module now emits an :exc:`ImportError` rather than a :exc:`TypeError` if :" +"func:`__import__` is tried during the Python shutdown process but :data:`sys." +"path` is already cleared (set to ``None``)." msgstr "" -#: ../../../build/NEWS:12080 +#: ../../../build/NEWS:12704 msgid "" -"`bpo-21925 `__: " -":func:`warnings.formatwarning` now catches exceptions when calling " -":func:`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be" -" able to log :exc:`ResourceWarning` emitted late during the Python shutdown " -"process." +"`bpo-21925 `__: :func:`warnings." +"formatwarning` now catches exceptions when calling :func:`linecache.getline` " +"and :func:`tracemalloc.get_object_traceback` to be able to log :exc:" +"`ResourceWarning` emitted late during the Python shutdown process." msgstr "" -#: ../../../build/NEWS:12085 +#: ../../../build/NEWS:12709 msgid "" -"`bpo-23848 `__: On Windows, " -"faulthandler.enable() now also installs an exception handler to dump the " -"traceback of all Python threads on any Windows exception, not only on UNIX " -"signals (SIGSEGV, SIGFPE, SIGABRT)." +"`bpo-23848 `__: On Windows, faulthandler." +"enable() now also installs an exception handler to dump the traceback of all " +"Python threads on any Windows exception, not only on UNIX signals (SIGSEGV, " +"SIGFPE, SIGABRT)." msgstr "" -#: ../../../build/NEWS:12089 +#: ../../../build/NEWS:12713 msgid "" -"`bpo-26530 `__: Add C functions " -":c:func:`_PyTraceMalloc_Track` and :c:func:`_PyTraceMalloc_Untrack` to track" -" memory blocks using the :mod:`tracemalloc` module. Add " -":c:func:`_PyTraceMalloc_GetTraceback` to get the traceback of an object." +"`bpo-26530 `__: Add C functions :c:func:" +"`_PyTraceMalloc_Track` and :c:func:`_PyTraceMalloc_Untrack` to track memory " +"blocks using the :mod:`tracemalloc` module. Add :c:func:" +"`_PyTraceMalloc_GetTraceback` to get the traceback of an object." msgstr "" -#: ../../../build/NEWS:12094 +#: ../../../build/NEWS:12718 msgid "" "`bpo-26588 `__: The _tracemalloc now " "supports tracing memory allocations of multiple address spaces (domains)." msgstr "" -#: ../../../build/NEWS:12097 ../../../build/NEWS:14437 +#: ../../../build/NEWS:12721 ../../../build/NEWS:15061 msgid "" "`bpo-24266 `__: Ctrl+C during Readline " "history search now cancels the search mode when compiled with Readline 7." msgstr "" -#: ../../../build/NEWS:12100 +#: ../../../build/NEWS:12724 msgid "" "`bpo-26590 `__: Implement a safe " "finalizer for the _socket.socket type. It now releases the GIL to close the " "socket." msgstr "" -#: ../../../build/NEWS:12103 +#: ../../../build/NEWS:12727 msgid "" "`bpo-18787 `__: spwd.getspnam() now " "raises a PermissionError if the user doesn't have privileges." msgstr "" -#: ../../../build/NEWS:12106 ../../../build/NEWS:14440 +#: ../../../build/NEWS:12730 ../../../build/NEWS:15064 msgid "" "`bpo-26560 `__: Avoid potential " "ValueError in BaseHandler.start_response. Initial patch by Peter Inglesby." msgstr "" -#: ../../../build/NEWS:12109 +#: ../../../build/NEWS:12733 msgid "" -"`bpo-26567 `__: Add a new function " -":c:func:`PyErr_ResourceWarning` function to pass the destroyed object. Add a" -" *source* attribute to :class:`warnings.WarningMessage`. Add " -"warnings._showwarnmsg() which uses tracemalloc to get the traceback where " -"source object was allocated." +"`bpo-26567 `__: Add a new function :c:" +"func:`PyErr_ResourceWarning` function to pass the destroyed object. Add a " +"*source* attribute to :class:`warnings.WarningMessage`. Add warnings." +"_showwarnmsg() which uses tracemalloc to get the traceback where source " +"object was allocated." msgstr "" -#: ../../../build/NEWS:12117 ../../../build/NEWS:14446 +#: ../../../build/NEWS:12741 ../../../build/NEWS:15070 msgid "" "`bpo-26313 `__: ssl.py " "_load_windows_store_certs fails if windows cert store is empty. Patch by " "Baji." msgstr "" -#: ../../../build/NEWS:12123 ../../../build/NEWS:14452 +#: ../../../build/NEWS:12747 ../../../build/NEWS:15076 msgid "" -"`bpo-26569 `__: Fix " -":func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support " -"importing packages." +"`bpo-26569 `__: Fix :func:`pyclbr." +"readmodule` and :func:`pyclbr.readmodule_ex` to support importing packages." msgstr "" -#: ../../../build/NEWS:12126 ../../../build/NEWS:14455 +#: ../../../build/NEWS:12750 ../../../build/NEWS:15079 msgid "" "`bpo-26499 `__: Account for remaining " "Content-Length in HTTPResponse.readline() and read1(). Based on patch by " "Silent Ghost. Also document that HTTPResponse now supports these methods." msgstr "" -#: ../../../build/NEWS:12130 ../../../build/NEWS:14459 +#: ../../../build/NEWS:12754 ../../../build/NEWS:15083 msgid "" "`bpo-25320 `__: Handle sockets in " "directories unittest discovery is scanning. Patch from Victor van den Elzen." msgstr "" -#: ../../../build/NEWS:12133 ../../../build/NEWS:14462 +#: ../../../build/NEWS:12757 ../../../build/NEWS:15086 msgid "" "`bpo-16181 `__: cookiejar.http2time() " "now returns None if year is higher than datetime.MAXYEAR." msgstr "" -#: ../../../build/NEWS:12136 ../../../build/NEWS:14465 +#: ../../../build/NEWS:12760 ../../../build/NEWS:15089 msgid "" "`bpo-26513 `__: Fixes platform module " "detection of Windows Server" msgstr "" -#: ../../../build/NEWS:12138 ../../../build/NEWS:14467 +#: ../../../build/NEWS:12762 ../../../build/NEWS:15091 msgid "" "`bpo-23718 `__: Fixed parsing time in " "week 0 before Jan 1. Original patch by Tamás Bence Gedai." msgstr "" -#: ../../../build/NEWS:12141 +#: ../../../build/NEWS:12765 msgid "" -"`bpo-26323 `__: Add Mock.assert_called()" -" and Mock.assert_called_once() methods to unittest.mock. Patch written by " +"`bpo-26323 `__: Add Mock.assert_called() " +"and Mock.assert_called_once() methods to unittest.mock. Patch written by " "Amit Saha." msgstr "" -#: ../../../build/NEWS:12144 ../../../build/NEWS:14470 +#: ../../../build/NEWS:12768 ../../../build/NEWS:15094 msgid "" "`bpo-20589 `__: Invoking Path.owner() " "and Path.group() on Windows now raise NotImplementedError instead of " "ImportError." msgstr "" -#: ../../../build/NEWS:12147 ../../../build/NEWS:14473 +#: ../../../build/NEWS:12771 ../../../build/NEWS:15097 msgid "" "`bpo-26177 `__: Fixed the keys() method " "for Canvas and Scrollbar widgets." msgstr "" -#: ../../../build/NEWS:12149 +#: ../../../build/NEWS:12773 msgid "" "`bpo-15068 `__: Got rid of excessive " "buffering in fileinput. The bufsize parameter is now deprecated and ignored." msgstr "" -#: ../../../build/NEWS:12152 +#: ../../../build/NEWS:12776 msgid "" "`bpo-19475 `__: Added an optional " -"argument timespec to the datetime isoformat() method to choose the precision" -" of the time component." +"argument timespec to the datetime isoformat() method to choose the precision " +"of the time component." msgstr "" -#: ../../../build/NEWS:12155 ../../../build/NEWS:14478 +#: ../../../build/NEWS:12779 ../../../build/NEWS:15102 msgid "" "`bpo-2202 `__: Fix UnboundLocalError in " "AbstractDigestAuthHandler.get_algorithm_impls. Initial patch by Mathieu " "Dupuy." msgstr "" -#: ../../../build/NEWS:12159 +#: ../../../build/NEWS:12783 msgid "" "`bpo-26167 `__: Minimized overhead in " "copy.copy() and copy.deepcopy(). Optimized copying and deepcopying " "bytearrays, NotImplemented, slices, short lists, tuples, dicts, sets." msgstr "" -#: ../../../build/NEWS:12163 ../../../build/NEWS:14482 +#: ../../../build/NEWS:12787 ../../../build/NEWS:15106 msgid "" "`bpo-25718 `__: Fixed pickling and " "copying the accumulate() iterator with total is None." msgstr "" -#: ../../../build/NEWS:12166 ../../../build/NEWS:14485 +#: ../../../build/NEWS:12790 ../../../build/NEWS:15109 msgid "" "`bpo-26475 `__: Fixed debugging output " "for regular expressions with the (?x) flag." msgstr "" -#: ../../../build/NEWS:12169 +#: ../../../build/NEWS:12793 msgid "" "`bpo-26482 `__: Allowed pickling " "recursive dequeues." msgstr "" -#: ../../../build/NEWS:12171 +#: ../../../build/NEWS:12795 msgid "" -"`bpo-26335 `__: Make mmap.write() return" -" the number of bytes written like other write methods. Patch by Jakub " +"`bpo-26335 `__: Make mmap.write() return " +"the number of bytes written like other write methods. Patch by Jakub " "Stasiak." msgstr "" -#: ../../../build/NEWS:12174 ../../../build/NEWS:14488 +#: ../../../build/NEWS:12798 ../../../build/NEWS:15112 msgid "" "`bpo-26457 `__: Fixed the subnets() " "methods in IP network classes for the case when resulting prefix length is " "equal to maximal prefix length. Based on patch by Xiang Zhang." msgstr "" -#: ../../../build/NEWS:12178 ../../../build/NEWS:14492 +#: ../../../build/NEWS:12802 ../../../build/NEWS:15116 msgid "" "`bpo-26385 `__: Remove the file if the " "internal open() call in NamedTemporaryFile() fails. Patch by Silent Ghost." msgstr "" -#: ../../../build/NEWS:12181 ../../../build/NEWS:14495 +#: ../../../build/NEWS:12805 ../../../build/NEWS:15119 msgid "" "`bpo-26402 `__: Fix XML-RPC client to " "retry when the server shuts down a persistent connection. This was a " @@ -18856,33 +19869,33 @@ msgid "" "3.5.0a4." msgstr "" -#: ../../../build/NEWS:12185 ../../../build/NEWS:14499 +#: ../../../build/NEWS:12809 ../../../build/NEWS:15123 msgid "" "`bpo-25913 `__: Leading ``<~`` is " "optional now in base64.a85decode() with adobe=True. Patch by Swati Jaiswal." msgstr "" -#: ../../../build/NEWS:12188 ../../../build/NEWS:14502 +#: ../../../build/NEWS:12812 ../../../build/NEWS:15126 msgid "" "`bpo-26186 `__: Remove an invalid type " "check in importlib.util.LazyLoader." msgstr "" -#: ../../../build/NEWS:12190 +#: ../../../build/NEWS:12814 msgid "" "`bpo-26367 `__: importlib.__import__() " "raises ImportError like builtins.__import__() when ``level`` is specified " "but without an accompanying package specified." msgstr "" -#: ../../../build/NEWS:12194 ../../../build/NEWS:14508 +#: ../../../build/NEWS:12818 ../../../build/NEWS:15132 msgid "" "`bpo-26309 `__: In the \"socketserver\" " "module, shut down the request (closing the connected socket) when " "verify_request() returns false. Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:12198 +#: ../../../build/NEWS:12822 msgid "" "`bpo-23430 `__: Change the socketserver " "module to only catch exceptions raised from a request handler that are " @@ -18891,77 +19904,76 @@ msgid "" "to stop a single-threaded server." msgstr "" -#: ../../../build/NEWS:12207 ../../../build/NEWS:14515 +#: ../../../build/NEWS:12831 ../../../build/NEWS:15139 msgid "" -"`bpo-25939 `__: On Windows open the cert" -" store readonly in ssl.enum_certificates." +"`bpo-25939 `__: On Windows open the cert " +"store readonly in ssl.enum_certificates." msgstr "" -#: ../../../build/NEWS:12213 ../../../build/NEWS:14521 +#: ../../../build/NEWS:12837 ../../../build/NEWS:15145 msgid "" -"`bpo-25995 `__: os.walk() no longer uses" -" FDs proportional to the tree depth." +"`bpo-25995 `__: os.walk() no longer uses " +"FDs proportional to the tree depth." msgstr "" -#: ../../../build/NEWS:12215 +#: ../../../build/NEWS:12839 msgid "" -"`bpo-25994 `__: Added the close() method" -" and the support of the context manager protocol for the os.scandir() " +"`bpo-25994 `__: Added the close() method " +"and the support of the context manager protocol for the os.scandir() " "iterator." msgstr "" -#: ../../../build/NEWS:12218 +#: ../../../build/NEWS:12842 msgid "" "`bpo-23992 `__: multiprocessing: make " "MapResult not fail-fast upon exception." msgstr "" -#: ../../../build/NEWS:12220 +#: ../../../build/NEWS:12844 msgid "" "`bpo-26243 `__: Support keyword " "arguments to zlib.compress(). Patch by Aviv Palivoda." msgstr "" -#: ../../../build/NEWS:12223 ../../../build/NEWS:14523 +#: ../../../build/NEWS:12847 ../../../build/NEWS:15147 msgid "" "`bpo-26117 `__: The os.scandir() " -"iterator now closes file descriptor not only when the iteration is finished," -" but when it was failed with error." +"iterator now closes file descriptor not only when the iteration is finished, " +"but when it was failed with error." msgstr "" -#: ../../../build/NEWS:12226 +#: ../../../build/NEWS:12850 msgid "" "`bpo-25949 `__: __dict__ for an " "OrderedDict instance is now created only when needed." msgstr "" -#: ../../../build/NEWS:12229 ../../../build/NEWS:14526 +#: ../../../build/NEWS:12853 ../../../build/NEWS:15150 msgid "" "`bpo-25911 `__: Restored support of " "bytes paths in os.walk() on Windows." msgstr "" -#: ../../../build/NEWS:12231 ../../../build/NEWS:14528 +#: ../../../build/NEWS:12855 ../../../build/NEWS:15152 msgid "" "`bpo-26045 `__: Add UTF-8 suggestion to " "error message when posting a non-Latin-1 string with http.client." msgstr "" -#: ../../../build/NEWS:12234 +#: ../../../build/NEWS:12858 msgid "" -"`bpo-26039 `__: Added " -"zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir(). Patch by Thomas " -"Kluyver." +"`bpo-26039 `__: Added zipfile.ZipInfo." +"from_file() and zipinfo.ZipInfo.is_dir(). Patch by Thomas Kluyver." msgstr "" -#: ../../../build/NEWS:12237 ../../../build/NEWS:14531 +#: ../../../build/NEWS:12861 ../../../build/NEWS:15155 msgid "" "`bpo-12923 `__: Reset FancyURLopener's " "redirect counter even if there is an exception. Based on patches by Brian " "Brazil and Daniel Rocco." msgstr "" -#: ../../../build/NEWS:12240 ../../../build/NEWS:14534 +#: ../../../build/NEWS:12864 ../../../build/NEWS:15158 msgid "" "`bpo-25945 `__: Fixed a crash when " "unpickle the functools.partial object with wrong state. Fixed a leak in " @@ -18969,25 +19981,25 @@ msgid "" "of functools.partial have now always types tuple and dict correspondingly." msgstr "" -#: ../../../build/NEWS:12245 ../../../build/NEWS:14539 +#: ../../../build/NEWS:12869 ../../../build/NEWS:15163 msgid "" "`bpo-26202 `__: copy.deepcopy() now " "correctly copies range() objects with non-atomic attributes." msgstr "" -#: ../../../build/NEWS:12248 ../../../build/NEWS:14542 +#: ../../../build/NEWS:12872 ../../../build/NEWS:15166 msgid "" -"`bpo-23076 `__: Path.glob() now raises a" -" ValueError if it's called with an invalid pattern. Patch by Thomas Nyberg." +"`bpo-23076 `__: Path.glob() now raises a " +"ValueError if it's called with an invalid pattern. Patch by Thomas Nyberg." msgstr "" -#: ../../../build/NEWS:12251 ../../../build/NEWS:14545 +#: ../../../build/NEWS:12875 ../../../build/NEWS:15169 msgid "" "`bpo-19883 `__: Fixed possible integer " "overflows in zipimport." msgstr "" -#: ../../../build/NEWS:12253 ../../../build/NEWS:14547 +#: ../../../build/NEWS:12877 ../../../build/NEWS:15171 msgid "" "`bpo-26227 `__: On Windows, " "getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions of the " @@ -18995,203 +20007,202 @@ msgid "" "UTF-8." msgstr "" -#: ../../../build/NEWS:12257 +#: ../../../build/NEWS:12881 msgid "" "`bpo-26099 `__: The site module now " "writes an error into stderr if sitecustomize module can be imported but " "executing the module raise an ImportError. Same change for usercustomize." msgstr "" -#: ../../../build/NEWS:12261 ../../../build/NEWS:14551 +#: ../../../build/NEWS:12885 ../../../build/NEWS:15175 msgid "" "`bpo-26147 `__: xmlrpc now works with " "strings not encodable with used non-UTF-8 encoding." msgstr "" -#: ../../../build/NEWS:12264 ../../../build/NEWS:14554 +#: ../../../build/NEWS:12888 ../../../build/NEWS:15178 msgid "" "`bpo-25935 `__: Garbage collector now " "breaks reference loops with OrderedDict." msgstr "" -#: ../../../build/NEWS:12266 ../../../build/NEWS:14556 +#: ../../../build/NEWS:12890 ../../../build/NEWS:15180 msgid "" "`bpo-16620 `__: Fixed AttributeError in " "msilib.Directory.glob()." msgstr "" -#: ../../../build/NEWS:12268 ../../../build/NEWS:14558 +#: ../../../build/NEWS:12892 ../../../build/NEWS:15182 msgid "" -"`bpo-26013 `__: Added compatibility with" -" broken protocol 2 pickles created in old Python 3 versions (3.4.3 and " -"lower)." +"`bpo-26013 `__: Added compatibility with " +"broken protocol 2 pickles created in old Python 3 versions (3.4.3 and lower)." msgstr "" -#: ../../../build/NEWS:12271 +#: ../../../build/NEWS:12895 msgid "" -"`bpo-26129 `__: Deprecated accepting " -"non-integers in grp.getgrgid()." +"`bpo-26129 `__: Deprecated accepting non-" +"integers in grp.getgrgid()." msgstr "" -#: ../../../build/NEWS:12273 ../../../build/NEWS:14561 +#: ../../../build/NEWS:12897 ../../../build/NEWS:15185 msgid "" -"`bpo-25850 `__: Use cross-compilation by" -" default for 64-bit Windows." +"`bpo-25850 `__: Use cross-compilation by " +"default for 64-bit Windows." msgstr "" -#: ../../../build/NEWS:12275 +#: ../../../build/NEWS:12899 msgid "" "`bpo-25822 `__: Add docstrings to the " "fields of urllib.parse results. Patch contributed by Swati Jaiswal." msgstr "" -#: ../../../build/NEWS:12278 +#: ../../../build/NEWS:12902 msgid "" "`bpo-22642 `__: Convert trace module " "option parsing mechanism to argparse. Patch contributed by SilentGhost." msgstr "" -#: ../../../build/NEWS:12281 ../../../build/NEWS:14565 +#: ../../../build/NEWS:12905 ../../../build/NEWS:15189 msgid "" -"`bpo-24705 `__: Fix " -"sysconfig._parse_makefile not expanding ${} vars appearing before $() vars." +"`bpo-24705 `__: Fix sysconfig." +"_parse_makefile not expanding ${} vars appearing before $() vars." msgstr "" -#: ../../../build/NEWS:12284 +#: ../../../build/NEWS:12908 msgid "" "`bpo-26069 `__: Remove the deprecated " "apis in the trace module." msgstr "" -#: ../../../build/NEWS:12286 ../../../build/NEWS:14568 +#: ../../../build/NEWS:12910 ../../../build/NEWS:15192 msgid "" "`bpo-22138 `__: Fix mock.patch behavior " "when patching descriptors. Restore original values after patching. Patch " "contributed by Sean McCully." msgstr "" -#: ../../../build/NEWS:12289 ../../../build/NEWS:14571 +#: ../../../build/NEWS:12913 ../../../build/NEWS:15195 msgid "" "`bpo-25672 `__: In the ssl module, " "enable the SSL_MODE_RELEASE_BUFFERS mode option if it is safe to do so." msgstr "" -#: ../../../build/NEWS:12292 ../../../build/NEWS:14574 +#: ../../../build/NEWS:12916 ../../../build/NEWS:15198 msgid "" "`bpo-26012 `__: Don't traverse into " "symlinks for ``**`` pattern in pathlib.Path.[r]glob()." msgstr "" -#: ../../../build/NEWS:12295 ../../../build/NEWS:14577 +#: ../../../build/NEWS:12919 ../../../build/NEWS:15201 msgid "" "`bpo-24120 `__: Ignore PermissionError " "when traversing a tree with pathlib.Path.[r]glob(). Patch by Ulrich Petri." msgstr "" -#: ../../../build/NEWS:12298 +#: ../../../build/NEWS:12922 msgid "" "`bpo-21815 `__: Accept ] characters in " -"the data portion of imap responses, in order to handle the flags with square" -" brackets accepted and produced by servers such as gmail." +"the data portion of imap responses, in order to handle the flags with square " +"brackets accepted and produced by servers such as gmail." msgstr "" -#: ../../../build/NEWS:12302 ../../../build/NEWS:14580 +#: ../../../build/NEWS:12926 ../../../build/NEWS:15204 msgid "" -"`bpo-25447 `__: fileinput now uses " -"sys.stdin as-is if it does not have a buffer attribute (restores backward " +"`bpo-25447 `__: fileinput now uses sys." +"stdin as-is if it does not have a buffer attribute (restores backward " "compatibility)." msgstr "" -#: ../../../build/NEWS:12305 +#: ../../../build/NEWS:12929 msgid "" "`bpo-25971 `__: Optimized creating " "Fractions from floats by 2 times and from Decimals by 3 times." msgstr "" -#: ../../../build/NEWS:12308 +#: ../../../build/NEWS:12932 msgid "" "`bpo-25802 `__: Document as deprecated " "the remaining implementations of importlib.abc.Loader.load_module()." msgstr "" -#: ../../../build/NEWS:12311 +#: ../../../build/NEWS:12935 msgid "" -"`bpo-25928 `__: Add " -"Decimal.as_integer_ratio()." +"`bpo-25928 `__: Add Decimal." +"as_integer_ratio()." msgstr "" -#: ../../../build/NEWS:12313 ../../../build/NEWS:14583 +#: ../../../build/NEWS:12937 ../../../build/NEWS:15207 msgid "" "`bpo-25447 `__: Copying the lru_cache() " "wrapper object now always works, independently from the type of the wrapped " "object (by returning the original object unchanged)." msgstr "" -#: ../../../build/NEWS:12317 +#: ../../../build/NEWS:12941 msgid "" "`bpo-25768 `__: Have the functions in " "compileall return booleans instead of ints and add proper documentation and " "tests for the return values." msgstr "" -#: ../../../build/NEWS:12320 ../../../build/NEWS:14587 +#: ../../../build/NEWS:12944 ../../../build/NEWS:15211 msgid "" -"`bpo-24103 `__: Fixed possible use after" -" free in ElementTree.XMLPullParser." +"`bpo-24103 `__: Fixed possible use after " +"free in ElementTree.XMLPullParser." msgstr "" -#: ../../../build/NEWS:12322 ../../../build/NEWS:14589 +#: ../../../build/NEWS:12946 ../../../build/NEWS:15213 msgid "" "`bpo-25860 `__: os.fwalk() no longer " "skips remaining directories when error occurs. Original patch by Samson Lee." msgstr "" -#: ../../../build/NEWS:12325 ../../../build/NEWS:14592 +#: ../../../build/NEWS:12949 ../../../build/NEWS:15216 msgid "" "`bpo-25914 `__: Fixed and simplified " "OrderedDict.__sizeof__." msgstr "" -#: ../../../build/NEWS:12327 +#: ../../../build/NEWS:12951 msgid "" "`bpo-25869 `__: Optimized deepcopying " "ElementTree; it is now 20 times faster." msgstr "" -#: ../../../build/NEWS:12329 +#: ../../../build/NEWS:12953 msgid "" "`bpo-25873 `__: Optimized iterating " -"ElementTree. Iterating elements Element.iter() is now 40% faster, iterating" -" text Element.itertext() is now up to 2.5 times faster." +"ElementTree. Iterating elements Element.iter() is now 40% faster, iterating " +"text Element.itertext() is now up to 2.5 times faster." msgstr "" -#: ../../../build/NEWS:12333 ../../../build/NEWS:14594 +#: ../../../build/NEWS:12957 ../../../build/NEWS:15218 msgid "" "`bpo-25902 `__: Fixed various refcount " "issues in ElementTree iteration." msgstr "" -#: ../../../build/NEWS:12335 +#: ../../../build/NEWS:12959 msgid "" "`bpo-22227 `__: The TarFile iterator is " "reimplemented using generator. This implementation is simpler that using " "class." msgstr "" -#: ../../../build/NEWS:12338 +#: ../../../build/NEWS:12962 msgid "" -"`bpo-25638 `__: Optimized " -"ElementTree.iterparse(); it is now 2x faster. Optimized ElementTree parsing;" -" it is now 10% faster." +"`bpo-25638 `__: Optimized ElementTree." +"iterparse(); it is now 2x faster. Optimized ElementTree parsing; it is now " +"10% faster." msgstr "" -#: ../../../build/NEWS:12341 +#: ../../../build/NEWS:12965 msgid "" "`bpo-25761 `__: Improved detecting " "errors in broken pickle data." msgstr "" -#: ../../../build/NEWS:12343 ../../../build/NEWS:14596 +#: ../../../build/NEWS:12967 ../../../build/NEWS:15220 msgid "" "`bpo-25717 `__: Restore the previous " "behaviour of tolerating most fstat() errors when opening files. This was a " @@ -19199,146 +20210,146 @@ msgid "" "special cases." msgstr "" -#: ../../../build/NEWS:12347 ../../../build/NEWS:14600 +#: ../../../build/NEWS:12971 ../../../build/NEWS:15224 msgid "" -"`bpo-24903 `__: Fix regression in number" -" of arguments compileall accepts when '-d' is specified. The check on the " -"number of arguments has been dropped completely as it never worked correctly" -" anyway." +"`bpo-24903 `__: Fix regression in number " +"of arguments compileall accepts when '-d' is specified. The check on the " +"number of arguments has been dropped completely as it never worked correctly " +"anyway." msgstr "" -#: ../../../build/NEWS:12351 ../../../build/NEWS:14604 +#: ../../../build/NEWS:12975 ../../../build/NEWS:15228 msgid "" "`bpo-25764 `__: In the subprocess " "module, preserve any exception caused by fork() failure when preexec_fn is " "used." msgstr "" -#: ../../../build/NEWS:12354 +#: ../../../build/NEWS:12978 msgid "" "`bpo-25771 `__: Tweak the exception " -"message for importlib.util.resolve_name() when 'package' isn't specified but" -" necessary." +"message for importlib.util.resolve_name() when 'package' isn't specified but " +"necessary." msgstr "" -#: ../../../build/NEWS:12357 ../../../build/NEWS:14607 +#: ../../../build/NEWS:12981 ../../../build/NEWS:15231 msgid "" "`bpo-6478 `__: _strptime's regexp cache " "now is reset after changing timezone with time.tzset()." msgstr "" -#: ../../../build/NEWS:12360 ../../../build/NEWS:14610 +#: ../../../build/NEWS:12984 ../../../build/NEWS:15234 msgid "" -"`bpo-14285 `__: When executing a package" -" with the \"python -m package\" option, and package initialization fails, a " +"`bpo-14285 `__: When executing a package " +"with the \"python -m package\" option, and package initialization fails, a " "proper traceback is now reported. The \"runpy\" module now lets exceptions " "from package initialization pass back to the caller, rather than raising " "ImportError." msgstr "" -#: ../../../build/NEWS:12365 ../../../build/NEWS:14615 +#: ../../../build/NEWS:12989 ../../../build/NEWS:15239 msgid "" -"`bpo-19771 `__: Also in runpy and the " -"\"-m\" option, omit the irrelevant message \". . . is a package and cannot " -"be directly executed\" if the package could not even be initialized (e.g. " -"due to a bad ``*.pyc`` file)." +"`bpo-19771 `__: Also in runpy and the \"-" +"m\" option, omit the irrelevant message \". . . is a package and cannot be " +"directly executed\" if the package could not even be initialized (e.g. due " +"to a bad ``*.pyc`` file)." msgstr "" -#: ../../../build/NEWS:12369 ../../../build/NEWS:14619 +#: ../../../build/NEWS:12993 ../../../build/NEWS:15243 msgid "" "`bpo-25177 `__: Fixed problem with the " -"mean of very small and very large numbers. As a side effect, statistics.mean" -" and statistics.variance should be significantly faster." +"mean of very small and very large numbers. As a side effect, statistics.mean " +"and statistics.variance should be significantly faster." msgstr "" -#: ../../../build/NEWS:12373 ../../../build/NEWS:14623 +#: ../../../build/NEWS:12997 ../../../build/NEWS:15247 msgid "" "`bpo-25718 `__: Fixed copying object " "with state with boolean value is false." msgstr "" -#: ../../../build/NEWS:12375 ../../../build/NEWS:14625 +#: ../../../build/NEWS:12999 ../../../build/NEWS:15249 msgid "" "`bpo-10131 `__: Fixed deep copying of " "minidom documents. Based on patch by Marian Ganisin." msgstr "" -#: ../../../build/NEWS:12378 +#: ../../../build/NEWS:13002 msgid "" -"`bpo-7990 `__: dir() on " -"ElementTree.Element now lists properties: \"tag\", \"text\", \"tail\" and " -"\"attrib\". Original patch by Santoso Wijaya." +"`bpo-7990 `__: dir() on ElementTree." +"Element now lists properties: \"tag\", \"text\", \"tail\" and \"attrib\". " +"Original patch by Santoso Wijaya." msgstr "" -#: ../../../build/NEWS:12381 ../../../build/NEWS:14628 +#: ../../../build/NEWS:13005 ../../../build/NEWS:15252 msgid "" "`bpo-25725 `__: Fixed a reference leak " "in pickle.loads() when unpickling invalid data including tuple instructions." msgstr "" -#: ../../../build/NEWS:12384 ../../../build/NEWS:14631 +#: ../../../build/NEWS:13008 ../../../build/NEWS:15255 msgid "" "`bpo-25663 `__: In the Readline " "completer, avoid listing duplicate global names, and search the global " "namespace before searching builtins." msgstr "" -#: ../../../build/NEWS:12387 ../../../build/NEWS:14634 +#: ../../../build/NEWS:13011 ../../../build/NEWS:15258 msgid "" "`bpo-25688 `__: Fixed file leak in " "ElementTree.iterparse() raising an error." msgstr "" -#: ../../../build/NEWS:12389 ../../../build/NEWS:14636 +#: ../../../build/NEWS:13013 ../../../build/NEWS:15260 msgid "" -"`bpo-23914 `__: Fixed SystemError raised" -" by unpickler on broken pickle data." +"`bpo-23914 `__: Fixed SystemError raised " +"by unpickler on broken pickle data." msgstr "" -#: ../../../build/NEWS:12391 ../../../build/NEWS:14638 +#: ../../../build/NEWS:13015 ../../../build/NEWS:15262 msgid "" "`bpo-25691 `__: Fixed crash on deleting " "ElementTree.Element attributes." msgstr "" -#: ../../../build/NEWS:12393 ../../../build/NEWS:14640 +#: ../../../build/NEWS:13017 ../../../build/NEWS:15264 msgid "" "`bpo-25624 `__: ZipFile now always " "writes a ZIP_STORED header for directory entries. Patch by Dingyuan Wang." msgstr "" -#: ../../../build/NEWS:12396 ../../../build/NEWS:14959 +#: ../../../build/NEWS:13020 ../../../build/NEWS:15583 msgid "" "`bpo-25626 `__: Change three zlib " "functions to accept sizes that fit in Py_ssize_t, but internally cap those " "sizes to UINT_MAX. This resolves a regression in 3.5 where GzipFile.read() " -"failed to read chunks larger than 2 or 4 GiB. The change affects the " -"zlib.Decompress.decompress() max_length parameter, the zlib.decompress() " -"bufsize parameter, and the zlib.Decompress.flush() length parameter." +"failed to read chunks larger than 2 or 4 GiB. The change affects the zlib." +"Decompress.decompress() max_length parameter, the zlib.decompress() bufsize " +"parameter, and the zlib.Decompress.flush() length parameter." msgstr "" -#: ../../../build/NEWS:12403 ../../../build/NEWS:14966 +#: ../../../build/NEWS:13027 ../../../build/NEWS:15590 msgid "" "`bpo-25583 `__: Avoid incorrect errors " "raised by os.makedirs(exist_ok=True) when the OS gives priority to errors " "such as EACCES over EEXIST." msgstr "" -#: ../../../build/NEWS:12406 ../../../build/NEWS:14969 +#: ../../../build/NEWS:13030 ../../../build/NEWS:15593 msgid "" "`bpo-25593 `__: Change semantics of " "EventLoop.stop() in asyncio." msgstr "" -#: ../../../build/NEWS:12408 ../../../build/NEWS:14971 +#: ../../../build/NEWS:13032 ../../../build/NEWS:15595 msgid "" -"`bpo-6973 `__: When we know a " -"subprocess.Popen process has died, do not allow the send_signal(), " -"terminate(), or kill() methods to do anything as they could potentially " -"signal a different process." +"`bpo-6973 `__: When we know a subprocess." +"Popen process has died, do not allow the send_signal(), terminate(), or " +"kill() methods to do anything as they could potentially signal a different " +"process." msgstr "" -#: ../../../build/NEWS:12412 +#: ../../../build/NEWS:13036 msgid "" "`bpo-23883 `__: Added missing APIs to " "__all__ to match the documented APIs for the following modules: calendar, " @@ -19347,7 +20358,7 @@ msgid "" "Kołodziej, Mauro S. M. Rodrigues and Joel Taddei." msgstr "" -#: ../../../build/NEWS:12418 +#: ../../../build/NEWS:13042 msgid "" "`bpo-25590 `__: In the Readline " "completer, only call getattr() once per attribute. Also complete names of " @@ -19355,251 +20366,247 @@ msgid "" "yet created on an instance." msgstr "" -#: ../../../build/NEWS:12422 ../../../build/NEWS:14978 +#: ../../../build/NEWS:13046 ../../../build/NEWS:15602 msgid "" -"`bpo-25498 `__: Fix a crash when " -"garbage-collecting ctypes objects created by wrapping a memoryview. This " -"was a regression made in 3.5a1. Based on patch by Eryksun." +"`bpo-25498 `__: Fix a crash when garbage-" +"collecting ctypes objects created by wrapping a memoryview. This was a " +"regression made in 3.5a1. Based on patch by Eryksun." msgstr "" -#: ../../../build/NEWS:12426 ../../../build/NEWS:14982 +#: ../../../build/NEWS:13050 ../../../build/NEWS:15606 msgid "" "`bpo-25584 `__: Added \"escape\" to the " "__all__ list in the glob module." msgstr "" -#: ../../../build/NEWS:12428 ../../../build/NEWS:14984 +#: ../../../build/NEWS:13052 ../../../build/NEWS:15608 msgid "" "`bpo-25584 `__: Fixed recursive glob() " "with patterns starting with ``**``." msgstr "" -#: ../../../build/NEWS:12430 ../../../build/NEWS:14986 +#: ../../../build/NEWS:13054 ../../../build/NEWS:15610 msgid "" "`bpo-25446 `__: Fix regression in " "smtplib's AUTH LOGIN support." msgstr "" -#: ../../../build/NEWS:12432 ../../../build/NEWS:14988 +#: ../../../build/NEWS:13056 ../../../build/NEWS:15612 msgid "" "`bpo-18010 `__: Fix the pydoc web " -"server's module search function to handle exceptions from importing " -"packages." +"server's module search function to handle exceptions from importing packages." msgstr "" -#: ../../../build/NEWS:12435 ../../../build/NEWS:14991 +#: ../../../build/NEWS:13059 ../../../build/NEWS:15615 msgid "" "`bpo-25554 `__: Got rid of circular " "references in regular expression parsing." msgstr "" -#: ../../../build/NEWS:12437 +#: ../../../build/NEWS:13061 msgid "" "`bpo-18973 `__: Command-line interface " "of the calendar module now uses argparse instead of optparse." msgstr "" -#: ../../../build/NEWS:12440 ../../../build/NEWS:14993 +#: ../../../build/NEWS:13064 ../../../build/NEWS:15617 msgid "" -"`bpo-25510 `__: " -"fileinput.FileInput.readline() now returns b'' instead of '' at the end if " -"the FileInput was opened with binary mode. Patch by Ryosuke Ito." +"`bpo-25510 `__: fileinput.FileInput." +"readline() now returns b'' instead of '' at the end if the FileInput was " +"opened with binary mode. Patch by Ryosuke Ito." msgstr "" -#: ../../../build/NEWS:12444 ../../../build/NEWS:14997 +#: ../../../build/NEWS:13068 ../../../build/NEWS:15621 msgid "" "`bpo-25503 `__: Fixed inspect.getdoc() " "for inherited docstrings of properties. Original patch by John Mark " "Vandenberg." msgstr "" -#: ../../../build/NEWS:12447 ../../../build/NEWS:15000 +#: ../../../build/NEWS:13071 ../../../build/NEWS:15624 msgid "" -"`bpo-25515 `__: Always use os.urandom as" -" a source of randomness in uuid.uuid4." +"`bpo-25515 `__: Always use os.urandom as " +"a source of randomness in uuid.uuid4." msgstr "" -#: ../../../build/NEWS:12449 ../../../build/NEWS:15002 +#: ../../../build/NEWS:13073 ../../../build/NEWS:15626 msgid "" "`bpo-21827 `__: Fixed textwrap.dedent() " "for the case when largest common whitespace is a substring of smallest " "leading whitespace. Based on patch by Robert Li." msgstr "" -#: ../../../build/NEWS:12453 ../../../build/NEWS:15006 +#: ../../../build/NEWS:13077 ../../../build/NEWS:15630 msgid "" "`bpo-25447 `__: The lru_cache() wrapper " "objects now can be copied and pickled (by returning the original object " "unchanged)." msgstr "" -#: ../../../build/NEWS:12456 ../../../build/NEWS:15009 +#: ../../../build/NEWS:13080 ../../../build/NEWS:15633 msgid "" "`bpo-25390 `__: typing: Don't crash on " "Union[str, Pattern]." msgstr "" -#: ../../../build/NEWS:12458 ../../../build/NEWS:15011 +#: ../../../build/NEWS:13082 ../../../build/NEWS:15635 msgid "" "`bpo-25441 `__: asyncio: Raise error " "from drain() when socket is closed." msgstr "" -#: ../../../build/NEWS:12460 ../../../build/NEWS:15013 +#: ../../../build/NEWS:13084 ../../../build/NEWS:15637 msgid "" "`bpo-25410 `__: Cleaned up and fixed " "minor bugs in C implementation of OrderedDict." msgstr "" -#: ../../../build/NEWS:12463 ../../../build/NEWS:15016 +#: ../../../build/NEWS:13087 ../../../build/NEWS:15640 msgid "" -"`bpo-25411 `__: Improved Unicode support" -" in SMTPHandler through better use of the email package. Thanks to user " +"`bpo-25411 `__: Improved Unicode support " +"in SMTPHandler through better use of the email package. Thanks to user " "simon04 for the patch." msgstr "" -#: ../../../build/NEWS:12466 +#: ../../../build/NEWS:13090 msgid "" "Move the imp module from a PendingDeprecationWarning to DeprecationWarning." msgstr "" -#: ../../../build/NEWS:12469 ../../../build/NEWS:15019 +#: ../../../build/NEWS:13093 ../../../build/NEWS:15643 msgid "" "`bpo-25407 `__: Remove mentions of the " "formatter module being removed in Python 3.6." msgstr "" -#: ../../../build/NEWS:12472 ../../../build/NEWS:15022 +#: ../../../build/NEWS:13096 ../../../build/NEWS:15646 msgid "" "`bpo-25406 `__: Fixed a bug in C " "implementation of OrderedDict.move_to_end() that caused segmentation fault " -"or hang in iterating after moving several items to the start of ordered " -"dict." +"or hang in iterating after moving several items to the start of ordered dict." msgstr "" -#: ../../../build/NEWS:12476 +#: ../../../build/NEWS:13100 msgid "" "`bpo-25382 `__: pickletools.dis() now " "outputs implicit memo index for the MEMOIZE opcode." msgstr "" -#: ../../../build/NEWS:12479 +#: ../../../build/NEWS:13103 msgid "" "`bpo-25357 `__: Add an optional newline " "parameter to binascii.b2a_base64(). base64.b64encode() uses it to avoid a " "memory copy." msgstr "" -#: ../../../build/NEWS:12482 +#: ../../../build/NEWS:13106 msgid "" "`bpo-24164 `__: Objects that need " "calling ``__new__`` with keyword arguments, can now be pickled using pickle " "protocols older than protocol version 4." msgstr "" -#: ../../../build/NEWS:12485 ../../../build/NEWS:15026 +#: ../../../build/NEWS:13109 ../../../build/NEWS:15650 msgid "" "`bpo-25364 `__: zipfile now works in " "threads disabled builds." msgstr "" -#: ../../../build/NEWS:12487 ../../../build/NEWS:15028 +#: ../../../build/NEWS:13111 ../../../build/NEWS:15652 msgid "" "`bpo-25328 `__: smtpd's SMTPChannel now " "correctly raises a ValueError if both decode_data and enable_SMTPUTF8 are " "set to true." msgstr "" -#: ../../../build/NEWS:12490 +#: ../../../build/NEWS:13114 msgid "" "`bpo-16099 `__: RobotFileParser now " "supports Crawl-delay and Request-rate extensions. Patch by Nikolay " "Bogoychev." msgstr "" -#: ../../../build/NEWS:12493 ../../../build/NEWS:15031 +#: ../../../build/NEWS:13117 ../../../build/NEWS:15655 msgid "" -"`bpo-25316 `__: distutils raises OSError" -" instead of DistutilsPlatformError when MSVC is not installed." +"`bpo-25316 `__: distutils raises OSError " +"instead of DistutilsPlatformError when MSVC is not installed." msgstr "" -#: ../../../build/NEWS:12496 ../../../build/NEWS:15034 +#: ../../../build/NEWS:13120 ../../../build/NEWS:15658 msgid "" "`bpo-25380 `__: Fixed protocol for the " "STACK_GLOBAL opcode in pickletools.opcodes." msgstr "" -#: ../../../build/NEWS:12499 ../../../build/NEWS:15037 +#: ../../../build/NEWS:13123 ../../../build/NEWS:15661 msgid "" -"`bpo-23972 `__: Updates asyncio datagram" -" create method allowing reuseport and reuseaddr socket options to be set " +"`bpo-23972 `__: Updates asyncio datagram " +"create method allowing reuseport and reuseaddr socket options to be set " "prior to binding the socket. Mirroring the existing asyncio create_server " -"method the reuseaddr option for datagram sockets defaults to True if the O/S" -" is 'posix' (except if the platform is Cygwin). Patch by Chris Laws." +"method the reuseaddr option for datagram sockets defaults to True if the O/S " +"is 'posix' (except if the platform is Cygwin). Patch by Chris Laws." msgstr "" -#: ../../../build/NEWS:12505 ../../../build/NEWS:15043 +#: ../../../build/NEWS:13129 ../../../build/NEWS:15667 msgid "" -"`bpo-25304 `__: Add " -"asyncio.run_coroutine_threadsafe(). This lets you submit a coroutine to a " -"loop from another thread, returning a concurrent.futures.Future. By Vincent" -" Michel." +"`bpo-25304 `__: Add asyncio." +"run_coroutine_threadsafe(). This lets you submit a coroutine to a loop from " +"another thread, returning a concurrent.futures.Future. By Vincent Michel." msgstr "" -#: ../../../build/NEWS:12509 ../../../build/NEWS:15047 +#: ../../../build/NEWS:13133 ../../../build/NEWS:15671 msgid "" -"`bpo-25232 `__: Fix CGIRequestHandler to" -" split the query from the URL at the first question mark (?) rather than the" -" last. Patch from Xiang Zhang." +"`bpo-25232 `__: Fix CGIRequestHandler to " +"split the query from the URL at the first question mark (?) rather than the " +"last. Patch from Xiang Zhang." msgstr "" -#: ../../../build/NEWS:12512 ../../../build/NEWS:15050 +#: ../../../build/NEWS:13136 ../../../build/NEWS:15674 msgid "" "`bpo-24657 `__: Prevent " -"CGIRequestHandler from collapsing slashes in the query part of the URL as if" -" it were a path. Patch from Xiang Zhang." +"CGIRequestHandler from collapsing slashes in the query part of the URL as if " +"it were a path. Patch from Xiang Zhang." msgstr "" -#: ../../../build/NEWS:12515 +#: ../../../build/NEWS:13139 msgid "" -"`bpo-25287 `__: Don't add " -"crypt.METHOD_CRYPT to crypt.methods if it's not supported. Check if it is " +"`bpo-25287 `__: Don't add crypt." +"METHOD_CRYPT to crypt.methods if it's not supported. Check if it is " "supported, it may not be supported on OpenBSD for example." msgstr "" -#: ../../../build/NEWS:12519 ../../../build/NEWS:15078 +#: ../../../build/NEWS:13143 ../../../build/NEWS:15702 msgid "" "`bpo-23600 `__: Default implementation " "of tzinfo.fromutc() was returning wrong results in some cases." msgstr "" -#: ../../../build/NEWS:12522 ../../../build/NEWS:15075 +#: ../../../build/NEWS:13146 ../../../build/NEWS:15699 msgid "" -"`bpo-25203 `__: Failed " -"readline.set_completer_delims() no longer left the module in inconsistent " -"state." +"`bpo-25203 `__: Failed readline." +"set_completer_delims() no longer left the module in inconsistent state." msgstr "" -#: ../../../build/NEWS:12525 +#: ../../../build/NEWS:13149 msgid "" "`bpo-25011 `__: rlcompleter now omits " "private and special attribute names unless the prefix starts with " "underscores." msgstr "" -#: ../../../build/NEWS:12528 +#: ../../../build/NEWS:13152 msgid "" "`bpo-25209 `__: rlcompleter now can add " "a space or a colon after completed keyword." msgstr "" -#: ../../../build/NEWS:12531 +#: ../../../build/NEWS:13155 msgid "" -"`bpo-22241 `__: timezone.utc name is now" -" plain 'UTC', not 'UTC-00:00'." +"`bpo-22241 `__: timezone.utc name is now " +"plain 'UTC', not 'UTC-00:00'." msgstr "" -#: ../../../build/NEWS:12533 +#: ../../../build/NEWS:13157 msgid "" "`bpo-23517 `__: fromtimestamp() and " "utcfromtimestamp() methods of datetime.datetime now round microseconds to " @@ -19607,84 +20614,84 @@ msgid "" "round(float), instead of rounding towards -Infinity (ROUND_FLOOR)." msgstr "" -#: ../../../build/NEWS:12538 +#: ../../../build/NEWS:13162 msgid "" "`bpo-23552 `__: Timeit now warns when " "there is substantial (4x) variance between best and worst times. Patch from " "Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:12541 +#: ../../../build/NEWS:13165 msgid "" "`bpo-24633 `__: site-packages/README -> " "README.txt." msgstr "" -#: ../../../build/NEWS:12543 +#: ../../../build/NEWS:13167 msgid "" -"`bpo-24879 `__: help() and pydoc can now" -" list named tuple fields in the order they were defined rather than " +"`bpo-24879 `__: help() and pydoc can now " +"list named tuple fields in the order they were defined rather than " "alphabetically. The ordering is determined by the _fields attribute if " "present." msgstr "" -#: ../../../build/NEWS:12547 +#: ../../../build/NEWS:13171 msgid "" "`bpo-24874 `__: Improve speed of " "itertools.cycle() and make its pickle more compact." msgstr "" -#: ../../../build/NEWS:12550 +#: ../../../build/NEWS:13174 msgid "" -"Fix crash in itertools.cycle.__setstate__() when the first argument wasn't a" -" list." +"Fix crash in itertools.cycle.__setstate__() when the first argument wasn't a " +"list." msgstr "" -#: ../../../build/NEWS:12553 +#: ../../../build/NEWS:13177 msgid "" "`bpo-20059 `__: urllib.parse raises " "ValueError on all invalid ports. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:12556 +#: ../../../build/NEWS:13180 msgid "" "`bpo-24360 `__: Improve __repr__ of " "argparse.Namespace() for invalid identifiers. Patch by Matthias Bussonnier." msgstr "" -#: ../../../build/NEWS:12559 +#: ../../../build/NEWS:13183 msgid "" "`bpo-23426 `__: run_setup was broken in " "distutils. Patch from Alexander Belopolsky." msgstr "" -#: ../../../build/NEWS:12562 +#: ../../../build/NEWS:13186 msgid "" "`bpo-13938 `__: 2to3 converts " "StringTypes to a tuple. Patch from Mark Hammond." msgstr "" -#: ../../../build/NEWS:12564 +#: ../../../build/NEWS:13188 msgid "" -"`bpo-2091 `__: open() accepted a 'U' mode" -" string containing '+', but 'U' can only be used with 'r'. Patch from Jeff " +"`bpo-2091 `__: open() accepted a 'U' mode " +"string containing '+', but 'U' can only be used with 'r'. Patch from Jeff " "Balogh and John O'Connor." msgstr "" -#: ../../../build/NEWS:12567 +#: ../../../build/NEWS:13191 msgid "" "`bpo-8585 `__: improved tests for " "zipimporter2. Patch from Mark Lawrence." msgstr "" -#: ../../../build/NEWS:12569 ../../../build/NEWS:15620 +#: ../../../build/NEWS:13193 ../../../build/NEWS:16244 msgid "" -"`bpo-18622 `__: " -"unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from " -"Nicola Palumbo and Laurent De Buyst." +"`bpo-18622 `__: unittest.mock." +"mock_open().reset_mock would recurse infinitely. Patch from Nicola Palumbo " +"and Laurent De Buyst." msgstr "" -#: ../../../build/NEWS:12572 +#: ../../../build/NEWS:13196 msgid "" "`bpo-24426 `__: Fast searching " "optimization in regular expressions now works for patterns that starts with " @@ -19692,154 +20699,153 @@ msgid "" "compile time." msgstr "" -#: ../../../build/NEWS:12576 ../../../build/NEWS:15623 +#: ../../../build/NEWS:13200 ../../../build/NEWS:16247 msgid "" "`bpo-23661 `__: unittest.mock " "side_effects can now be exceptions again. This was a regression vs Python " "3.4. Patch from Ignacio Rossi" msgstr "" -#: ../../../build/NEWS:12579 +#: ../../../build/NEWS:13203 msgid "" "`bpo-13248 `__: Remove deprecated " "inspect.getmoduleinfo function." msgstr "" -#: ../../../build/NEWS:12581 ../../../build/NEWS:15152 +#: ../../../build/NEWS:13205 ../../../build/NEWS:15776 msgid "" "`bpo-25578 `__: Fix (another) memory " "leak in SSLSocket.getpeercer()." msgstr "" -#: ../../../build/NEWS:12583 ../../../build/NEWS:15154 +#: ../../../build/NEWS:13207 ../../../build/NEWS:15778 msgid "" "`bpo-25530 `__: Disable the vulnerable " "SSLv3 protocol by default when creating ssl.SSLContext." msgstr "" -#: ../../../build/NEWS:12586 ../../../build/NEWS:15157 +#: ../../../build/NEWS:13210 ../../../build/NEWS:15781 msgid "" "`bpo-25569 `__: Fix memory leak in " "SSLSocket.getpeercert()." msgstr "" -#: ../../../build/NEWS:12588 ../../../build/NEWS:15159 +#: ../../../build/NEWS:13212 ../../../build/NEWS:15783 msgid "" "`bpo-25471 `__: Sockets returned from " "accept() shouldn't appear to be nonblocking." msgstr "" -#: ../../../build/NEWS:12591 ../../../build/NEWS:15162 +#: ../../../build/NEWS:13215 ../../../build/NEWS:15786 msgid "" "`bpo-25319 `__: When threading.Event is " "reinitialized, the underlying condition should use a regular lock rather " "than a recursive lock." msgstr "" -#: ../../../build/NEWS:12594 ../../../build/NEWS:14643 +#: ../../../build/NEWS:13218 ../../../build/NEWS:15267 msgid "" "Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis." msgstr "" -#: ../../../build/NEWS:12597 ../../../build/NEWS:14646 +#: ../../../build/NEWS:13221 ../../../build/NEWS:15270 msgid "" -"`bpo-26050 `__: Add " -"asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг." +"`bpo-26050 `__: Add asyncio.StreamReader." +"readuntil() method. Patch by Марк Коренберг." msgstr "" -#: ../../../build/NEWS:12600 ../../../build/NEWS:14649 +#: ../../../build/NEWS:13224 ../../../build/NEWS:15273 msgid "" "`bpo-25924 `__: Avoid unnecessary " "serialization of getaddrinfo(3) calls on OS X versions 10.5 or higher. " "Original patch by A. Jesse Jiryu Davis." msgstr "" -#: ../../../build/NEWS:12603 ../../../build/NEWS:14652 +#: ../../../build/NEWS:13227 ../../../build/NEWS:15276 msgid "" "`bpo-26406 `__: Avoid unnecessary " "serialization of getaddrinfo(3) calls on current versions of OpenBSD and " "NetBSD. Patch by A. Jesse Jiryu Davis." msgstr "" -#: ../../../build/NEWS:12606 ../../../build/NEWS:14655 +#: ../../../build/NEWS:13230 ../../../build/NEWS:15279 msgid "" -"`bpo-26848 `__: Fix " -"asyncio/subprocess.communicate() to handle empty input. Patch by Jack " -"O'Connor." +"`bpo-26848 `__: Fix asyncio/subprocess." +"communicate() to handle empty input. Patch by Jack O'Connor." msgstr "" -#: ../../../build/NEWS:12609 ../../../build/NEWS:14658 +#: ../../../build/NEWS:13233 ../../../build/NEWS:15282 msgid "" -"`bpo-27040 `__: Add " -"loop.get_exception_handler method" +"`bpo-27040 `__: Add loop." +"get_exception_handler method" msgstr "" -#: ../../../build/NEWS:12611 ../../../build/NEWS:14660 +#: ../../../build/NEWS:13235 ../../../build/NEWS:15284 msgid "" -"`bpo-27041 `__: asyncio: Add " -"loop.create_future method" +"`bpo-27041 `__: asyncio: Add loop." +"create_future method" msgstr "" -#: ../../../build/NEWS:12616 ../../../build/NEWS:14708 +#: ../../../build/NEWS:13240 ../../../build/NEWS:15332 msgid "" -"`bpo-20640 `__: Add tests for " -"idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar." +"`bpo-20640 `__: Add tests for idlelib." +"configHelpSourceEdit. Patch by Saimadhav Heblikar." msgstr "" -#: ../../../build/NEWS:12619 ../../../build/NEWS:14711 +#: ../../../build/NEWS:13243 ../../../build/NEWS:15335 msgid "" "In the 'IDLE-console differences' section of the IDLE doc, clarify how " "running with IDLE affects sys.modules and the standard streams." msgstr "" -#: ../../../build/NEWS:12622 ../../../build/NEWS:14714 +#: ../../../build/NEWS:13246 ../../../build/NEWS:15338 msgid "" "`bpo-25507 `__: fix incorrect change in " "IOBinding that prevented printing. Augment IOBinding htest to include all " "major IOBinding functions." msgstr "" -#: ../../../build/NEWS:12625 ../../../build/NEWS:14717 +#: ../../../build/NEWS:13249 ../../../build/NEWS:15341 msgid "" "`bpo-25905 `__: Revert unwanted " -"conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in README.txt and open this" -" and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to utf-8 and open it with " +"conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in README.txt and open this " +"and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to utf-8 and open it with " "'utf-8'." msgstr "" -#: ../../../build/NEWS:12629 ../../../build/NEWS:15191 +#: ../../../build/NEWS:13253 ../../../build/NEWS:15815 msgid "" -"`bpo-15348 `__: Stop the debugger engine" -" (normally in a user process) before closing the debugger window (running in" -" the IDLE process). This prevents the RuntimeErrors that were being caught " +"`bpo-15348 `__: Stop the debugger engine " +"(normally in a user process) before closing the debugger window (running in " +"the IDLE process). This prevents the RuntimeErrors that were being caught " "and ignored." msgstr "" -#: ../../../build/NEWS:12633 ../../../build/NEWS:15195 +#: ../../../build/NEWS:13257 ../../../build/NEWS:15819 msgid "" "`bpo-24455 `__: Prevent IDLE from " "hanging when a) closing the shell while the debugger is active (15347); b) " "closing the debugger with the [X] button (15348); and c) activating the " -"debugger when already active (24455). The patch by Mark Roseman does this by" -" making two changes. 1. Suspend and resume the gui.interaction method with " +"debugger when already active (24455). The patch by Mark Roseman does this by " +"making two changes. 1. Suspend and resume the gui.interaction method with " "the tcl vwait mechanism intended for this purpose (instead of root.mainloop " "& .quit). 2. In gui.run, allow any existing interaction to terminate first." msgstr "" -#: ../../../build/NEWS:12641 ../../../build/NEWS:15203 +#: ../../../build/NEWS:13265 ../../../build/NEWS:15827 msgid "" -"Change 'The program' to 'Your program' in an IDLE 'kill program?' message to" -" make it clearer that the program referred to is the currently running user " +"Change 'The program' to 'Your program' in an IDLE 'kill program?' message to " +"make it clearer that the program referred to is the currently running user " "program, not IDLE itself." msgstr "" -#: ../../../build/NEWS:12645 ../../../build/NEWS:15207 +#: ../../../build/NEWS:13269 ../../../build/NEWS:15831 msgid "" "`bpo-24750 `__: Improve the appearance " "of the IDLE editor window status bar. Patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12648 ../../../build/NEWS:15210 +#: ../../../build/NEWS:13272 ../../../build/NEWS:15834 msgid "" "`bpo-25313 `__: Change the handling of " "new built-in text color themes to better address the compatibility problem " @@ -19847,32 +20853,32 @@ msgid "" "idleConf.CurrentTheme everywhere in idlelib." msgstr "" -#: ../../../build/NEWS:12652 ../../../build/NEWS:15214 +#: ../../../build/NEWS:13276 ../../../build/NEWS:15838 msgid "" "`bpo-24782 `__: Extension configuration " "is now a tab in the IDLE Preferences dialog rather than a separate dialog. " "The former tabs are now a sorted list. Patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12656 ../../../build/NEWS:15218 +#: ../../../build/NEWS:13280 ../../../build/NEWS:15842 msgid "" "`bpo-22726 `__: Re-activate the config " "dialog help button with some content about the other buttons and the new " "IDLE Dark theme." msgstr "" -#: ../../../build/NEWS:12659 ../../../build/NEWS:15221 +#: ../../../build/NEWS:13283 ../../../build/NEWS:15845 msgid "" "`bpo-24820 `__: IDLE now has an 'IDLE " "Dark' built-in text color theme. It is more or less IDLE Classic inverted, " "with a cobalt blue background. Strings, comments, keywords, ... are still " "green, red, orange, ... . To use it with IDLEs released before November " "2015, hit the 'Save as New Custom Theme' button and enter a new name, such " -"as 'Custom Dark'. The custom theme will work with any IDLE release, and can" -" be modified." +"as 'Custom Dark'. The custom theme will work with any IDLE release, and can " +"be modified." msgstr "" -#: ../../../build/NEWS:12666 ../../../build/NEWS:15228 +#: ../../../build/NEWS:13290 ../../../build/NEWS:15852 msgid "" "`bpo-25224 `__: README.txt is now an " "idlelib index for IDLE developers and curious users. The previous user " @@ -19880,265 +20886,263 @@ msgid "" "Development and Learning Environment'." msgstr "" -#: ../../../build/NEWS:12670 ../../../build/NEWS:15232 +#: ../../../build/NEWS:13294 ../../../build/NEWS:15856 msgid "" "`bpo-24820 `__: Users can now set " -"breakpoint colors in Settings -> Custom Highlighting. Original patch by Mark" -" Roseman." +"breakpoint colors in Settings -> Custom Highlighting. Original patch by Mark " +"Roseman." msgstr "" -#: ../../../build/NEWS:12673 ../../../build/NEWS:15235 +#: ../../../build/NEWS:13297 ../../../build/NEWS:15859 msgid "" "`bpo-24972 `__: Inactive selection " "background now matches active selection background, as configured by users, " -"on all systems. Found items are now always highlighted on Windows. Initial" -" patch by Mark Roseman." +"on all systems. Found items are now always highlighted on Windows. Initial " +"patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12677 ../../../build/NEWS:15239 +#: ../../../build/NEWS:13301 ../../../build/NEWS:15863 msgid "" "`bpo-24570 `__: Idle: make calltip and " "completion boxes appear on Macs affected by a tk regression. Initial patch " "by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12680 ../../../build/NEWS:15242 +#: ../../../build/NEWS:13304 ../../../build/NEWS:15866 msgid "" "`bpo-24988 `__: Idle ScrolledList " -"context menus (used in debugger) now work on Mac Aqua. Patch by Mark " -"Roseman." +"context menus (used in debugger) now work on Mac Aqua. Patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12683 ../../../build/NEWS:15245 +#: ../../../build/NEWS:13307 ../../../build/NEWS:15869 msgid "" "`bpo-24801 `__: Make right-click for " "context menu work on Mac Aqua. Patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12686 ../../../build/NEWS:15248 +#: ../../../build/NEWS:13310 ../../../build/NEWS:15872 msgid "" "`bpo-25173 `__: Associate tkinter " "messageboxes with a specific widget. For Mac OSX, make them a 'sheet'. " "Patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:12689 ../../../build/NEWS:15251 +#: ../../../build/NEWS:13313 ../../../build/NEWS:15875 msgid "" -"`bpo-25198 `__: Enhance the initial html" -" viewer now used for Idle Help. Properly indent fixed-pitch text (patch by " +"`bpo-25198 `__: Enhance the initial html " +"viewer now used for Idle Help. Properly indent fixed-pitch text (patch by " "Mark Roseman). Give code snippet a very Sphinx-like light blueish-gray " "background. Re-use initial width and height set by users for shell and " "editor. When the Table of Contents (TOC) menu is used, put the section " "header at the top of the screen." msgstr "" -#: ../../../build/NEWS:12696 ../../../build/NEWS:15258 +#: ../../../build/NEWS:13320 ../../../build/NEWS:15882 msgid "" "`bpo-25225 `__: Condense and rewrite " "Idle doc section on text colors." msgstr "" -#: ../../../build/NEWS:12698 ../../../build/NEWS:15260 +#: ../../../build/NEWS:13322 ../../../build/NEWS:15884 msgid "" -"`bpo-21995 `__: Explain some differences" -" between IDLE and console Python." +"`bpo-21995 `__: Explain some differences " +"between IDLE and console Python." msgstr "" -#: ../../../build/NEWS:12700 ../../../build/NEWS:15262 +#: ../../../build/NEWS:13324 ../../../build/NEWS:15886 msgid "" -"`bpo-22820 `__: Explain need for *print*" -" when running file from Idle editor." +"`bpo-22820 `__: Explain need for *print* " +"when running file from Idle editor." msgstr "" -#: ../../../build/NEWS:12702 ../../../build/NEWS:15264 +#: ../../../build/NEWS:13326 ../../../build/NEWS:15888 msgid "" "`bpo-25224 `__: Doc: augment Idle " "feature list and no-subprocess section." msgstr "" -#: ../../../build/NEWS:12704 ../../../build/NEWS:15266 +#: ../../../build/NEWS:13328 ../../../build/NEWS:15890 msgid "" "`bpo-25219 `__: Update doc for Idle " "command line options. Some were missing and notes were not correct." msgstr "" -#: ../../../build/NEWS:12707 ../../../build/NEWS:15269 +#: ../../../build/NEWS:13331 ../../../build/NEWS:15893 msgid "" "`bpo-24861 `__: Most of idlelib is " -"private and subject to change. Use idleib.idle.* to start Idle. See " -"idlelib.__init__.__doc__." +"private and subject to change. Use idleib.idle.* to start Idle. See idlelib." +"__init__.__doc__." msgstr "" -#: ../../../build/NEWS:12710 ../../../build/NEWS:15272 +#: ../../../build/NEWS:13334 ../../../build/NEWS:15896 msgid "" "`bpo-25199 `__: Idle: add " "synchronization comments for future maintainers." msgstr "" -#: ../../../build/NEWS:12712 +#: ../../../build/NEWS:13336 msgid "" "`bpo-16893 `__: Replace help.txt with " -"help.html for Idle doc display. The new idlelib/help.html is rstripped " -"Doc/build/html/library/idle.html. It looks better than help.txt and will " -"better document Idle as released. The tkinter html viewer that works for " -"this file was written by Rose Roseman. The now unused " -"EditorWindow.HelpDialog class and helt.txt file are deprecated." +"help.html for Idle doc display. The new idlelib/help.html is rstripped Doc/" +"build/html/library/idle.html. It looks better than help.txt and will better " +"document Idle as released. The tkinter html viewer that works for this file " +"was written by Rose Roseman. The now unused EditorWindow.HelpDialog class " +"and helt.txt file are deprecated." msgstr "" -#: ../../../build/NEWS:12719 ../../../build/NEWS:15281 +#: ../../../build/NEWS:13343 ../../../build/NEWS:15905 msgid "" -"`bpo-24199 `__: Deprecate unused " -"idlelib.idlever with possible removal in 3.6." +"`bpo-24199 `__: Deprecate unused idlelib." +"idlever with possible removal in 3.6." msgstr "" -#: ../../../build/NEWS:12721 ../../../build/NEWS:15283 +#: ../../../build/NEWS:13345 ../../../build/NEWS:15907 msgid "" "`bpo-24790 `__: Remove extraneous code " "(which also create 2 & 3 conflicts)." msgstr "" -#: ../../../build/NEWS:12726 ../../../build/NEWS:14729 +#: ../../../build/NEWS:13350 ../../../build/NEWS:15353 msgid "" "`bpo-26736 `__: Used HTTPS for external " "links in the documentation if possible." msgstr "" -#: ../../../build/NEWS:12728 ../../../build/NEWS:14731 +#: ../../../build/NEWS:13352 ../../../build/NEWS:15355 msgid "" -"`bpo-6953 `__: Rework the Readline module" -" documentation to group related functions together, and add more details " -"such as what underlying Readline functions and variables are accessed." +"`bpo-6953 `__: Rework the Readline module " +"documentation to group related functions together, and add more details such " +"as what underlying Readline functions and variables are accessed." msgstr "" -#: ../../../build/NEWS:12732 ../../../build/NEWS:14735 +#: ../../../build/NEWS:13356 ../../../build/NEWS:15359 msgid "" "`bpo-23606 `__: Adds note to ctypes " "documentation regarding cdll.msvcrt." msgstr "" -#: ../../../build/NEWS:12734 ../../../build/NEWS:15298 +#: ../../../build/NEWS:13358 ../../../build/NEWS:15922 msgid "" -"`bpo-24952 `__: Clarify the default size" -" argument of stack_size() in the \"threading\" and \"_thread\" modules. " -"Patch from Mattip." +"`bpo-24952 `__: Clarify the default size " +"argument of stack_size() in the \"threading\" and \"_thread\" modules. Patch " +"from Mattip." msgstr "" -#: ../../../build/NEWS:12737 ../../../build/NEWS:14740 +#: ../../../build/NEWS:13361 ../../../build/NEWS:15364 msgid "" "`bpo-26014 `__: Update 3.x packaging " "documentation: * \"See also\" links to the new docs are now provided in the " "legacy pages * links to setuptools documentation have been updated" msgstr "" -#: ../../../build/NEWS:12744 ../../../build/NEWS:14747 +#: ../../../build/NEWS:13368 ../../../build/NEWS:15371 msgid "" "`bpo-21916 `__: Added tests for the " "turtle module. Patch by ingrid, Gregory Loyse and Jelle Zijlstra." msgstr "" -#: ../../../build/NEWS:12747 +#: ../../../build/NEWS:13371 msgid "" "`bpo-26295 `__: When using \"python3 -m " "test --testdir=TESTDIR\", regrtest doesn't add \"test.\" prefix to test " "module names." msgstr "" -#: ../../../build/NEWS:12750 ../../../build/NEWS:14750 +#: ../../../build/NEWS:13374 ../../../build/NEWS:15374 msgid "" "`bpo-26523 `__: The multiprocessing " "thread pool (multiprocessing.dummy.Pool) was untested." msgstr "" -#: ../../../build/NEWS:12753 ../../../build/NEWS:14753 +#: ../../../build/NEWS:13377 ../../../build/NEWS:15377 msgid "" "`bpo-26015 `__: Added new tests for " "pickling iterators of mutable sequences." msgstr "" -#: ../../../build/NEWS:12755 ../../../build/NEWS:14755 +#: ../../../build/NEWS:13379 ../../../build/NEWS:15379 msgid "" -"`bpo-26325 `__: Added " -"test.support.check_no_resource_warning() to check that no ResourceWarning is" -" emitted." +"`bpo-26325 `__: Added test.support." +"check_no_resource_warning() to check that no ResourceWarning is emitted." msgstr "" -#: ../../../build/NEWS:12758 +#: ../../../build/NEWS:13382 msgid "" "`bpo-25940 `__: Changed test_ssl to use " "its internal local server more. This avoids relying on svn.python.org, " "which recently changed root certificate." msgstr "" -#: ../../../build/NEWS:12761 ../../../build/NEWS:14761 +#: ../../../build/NEWS:13385 ../../../build/NEWS:15385 msgid "" "`bpo-25616 `__: Tests for OrderedDict " "are extracted from test_collections into separate file test_ordered_dict." msgstr "" -#: ../../../build/NEWS:12764 ../../../build/NEWS:15312 +#: ../../../build/NEWS:13388 ../../../build/NEWS:15936 msgid "" "`bpo-25449 `__: Added tests for " "OrderedDict subclasses." msgstr "" -#: ../../../build/NEWS:12766 +#: ../../../build/NEWS:13390 msgid "" -"`bpo-25188 `__: Add -P/--pgo to " -"test.regrtest to suppress error output when running the test suite for the " +"`bpo-25188 `__: Add -P/--pgo to test." +"regrtest to suppress error output when running the test suite for the " "purposes of a PGO build. Initial patch by Alecsandru Patrascu." msgstr "" -#: ../../../build/NEWS:12770 +#: ../../../build/NEWS:13394 msgid "" -"`bpo-22806 `__: Add ``python -m test " -"--list-tests`` command to list tests." +"`bpo-22806 `__: Add ``python -m test --" +"list-tests`` command to list tests." msgstr "" -#: ../../../build/NEWS:12772 +#: ../../../build/NEWS:13396 msgid "" -"`bpo-18174 `__: ``python -m test " -"--huntrleaks ...`` now also checks for leak of file descriptors. Patch " -"written by Richard Oudkerk." +"`bpo-18174 `__: ``python -m test --" +"huntrleaks ...`` now also checks for leak of file descriptors. Patch written " +"by Richard Oudkerk." msgstr "" -#: ../../../build/NEWS:12775 +#: ../../../build/NEWS:13399 msgid "" -"`bpo-25260 `__: Fix ``python -m test " -"--coverage`` on Windows. Remove the list of ignored directories." +"`bpo-25260 `__: Fix ``python -m test --" +"coverage`` on Windows. Remove the list of ignored directories." msgstr "" -#: ../../../build/NEWS:12778 ../../../build/NEWS:15319 +#: ../../../build/NEWS:13402 ../../../build/NEWS:15943 msgid "" "``PCbuild\\rt.bat`` now accepts an unlimited number of arguments to pass " "along to regrtest.py. Previously there was a limit of 9." msgstr "" -#: ../../../build/NEWS:12781 ../../../build/NEWS:14764 +#: ../../../build/NEWS:13405 ../../../build/NEWS:15388 msgid "" "`bpo-26583 `__: Skip " "test_timestamp_overflow in test_import if bytecode files cannot be written." msgstr "" -#: ../../../build/NEWS:12787 +#: ../../../build/NEWS:13411 msgid "" "`bpo-21277 `__: Don't try to link " "_ctypes with a ffi_convenience library." msgstr "" -#: ../../../build/NEWS:12789 ../../../build/NEWS:14770 +#: ../../../build/NEWS:13413 ../../../build/NEWS:15394 msgid "" "`bpo-26884 `__: Fix linking extension " "modules for cross builds. Patch by Xavier de Gaye." msgstr "" -#: ../../../build/NEWS:12792 +#: ../../../build/NEWS:13416 msgid "" "`bpo-26932 `__: Fixed support of RTLD_* " -"constants defined as enum values, not via macros (in particular on Android)." -" Patch by Chi Hsuan Yen." +"constants defined as enum values, not via macros (in particular on " +"Android). Patch by Chi Hsuan Yen." msgstr "" -#: ../../../build/NEWS:12795 ../../../build/NEWS:14773 +#: ../../../build/NEWS:13419 ../../../build/NEWS:15397 msgid "" "`bpo-22359 `__: Disable the rules for " "running _freeze_importlib and pgen when cross-compiling. The output of " @@ -20146,99 +21150,99 @@ msgid "" "regenerated when doing a native build. Patch by Xavier de Gaye." msgstr "" -#: ../../../build/NEWS:12800 +#: ../../../build/NEWS:13424 msgid "" -"`bpo-21668 `__: Link audioop, _datetime," -" _ctypes_test modules to libm, except on Mac OS X. Patch written by Chi " -"Hsuan Yen." +"`bpo-21668 `__: Link audioop, _datetime, " +"_ctypes_test modules to libm, except on Mac OS X. Patch written by Chi Hsuan " +"Yen." msgstr "" -#: ../../../build/NEWS:12803 ../../../build/NEWS:14784 +#: ../../../build/NEWS:13427 ../../../build/NEWS:15408 msgid "" "`bpo-25702 `__: A --with-lto configure " -"option has been added that will enable link time optimizations at build time" -" during a make profile-opt. Some compilers and toolchains are known to not " -"produce stable code when using LTO, be sure to test things thoroughly before" -" relying on it. It can provide a few % speed up over profile-opt alone." +"option has been added that will enable link time optimizations at build time " +"during a make profile-opt. Some compilers and toolchains are known to not " +"produce stable code when using LTO, be sure to test things thoroughly before " +"relying on it. It can provide a few % speed up over profile-opt alone." msgstr "" -#: ../../../build/NEWS:12809 ../../../build/NEWS:14790 +#: ../../../build/NEWS:13433 ../../../build/NEWS:15414 msgid "" "`bpo-26624 `__: Adds validation of " "ucrtbase[d].dll version with warning for old versions." msgstr "" -#: ../../../build/NEWS:12812 ../../../build/NEWS:14793 +#: ../../../build/NEWS:13436 ../../../build/NEWS:15417 msgid "" "`bpo-17603 `__: Avoid error about " "nonexistent fileblocks.o file by using a lower-level check for st_blocks in " "struct stat." msgstr "" -#: ../../../build/NEWS:12815 ../../../build/NEWS:14796 +#: ../../../build/NEWS:13439 ../../../build/NEWS:15420 msgid "" "`bpo-26079 `__: Fixing the build output " "folder for tix-8.4.3.6. Patch by Bjoern Thiel." msgstr "" -#: ../../../build/NEWS:12818 ../../../build/NEWS:14799 +#: ../../../build/NEWS:13442 ../../../build/NEWS:15423 msgid "" -"`bpo-26465 `__: Update Windows builds to" -" use OpenSSL 1.0.2g." +"`bpo-26465 `__: Update Windows builds to " +"use OpenSSL 1.0.2g." msgstr "" -#: ../../../build/NEWS:12820 +#: ../../../build/NEWS:13444 msgid "" -"`bpo-25348 `__: Added ``--pgo`` and " -"``--pgo-job`` arguments to ``PCbuild\\build.bat`` for building with Profile-" +"`bpo-25348 `__: Added ``--pgo`` and ``--" +"pgo-job`` arguments to ``PCbuild\\build.bat`` for building with Profile-" "Guided Optimization. The old ``PCbuild\\build_pgo.bat`` script is removed." msgstr "" -#: ../../../build/NEWS:12824 ../../../build/NEWS:14810 +#: ../../../build/NEWS:13448 ../../../build/NEWS:15434 msgid "" -"`bpo-25827 `__: Add support for building" -" with ICC to ``configure``, including a new ``--with-icc`` flag." +"`bpo-25827 `__: Add support for building " +"with ICC to ``configure``, including a new ``--with-icc`` flag." msgstr "" -#: ../../../build/NEWS:12827 ../../../build/NEWS:14813 +#: ../../../build/NEWS:13451 ../../../build/NEWS:15437 msgid "" "`bpo-25696 `__: Fix installation of " "Python on UNIX with make -j9." msgstr "" -#: ../../../build/NEWS:12829 ../../../build/NEWS:15330 +#: ../../../build/NEWS:13453 ../../../build/NEWS:15954 msgid "" "`bpo-24986 `__: It is now possible to " "build Python on Windows without errors when external libraries are not " "available." msgstr "" -#: ../../../build/NEWS:12832 ../../../build/NEWS:14801 +#: ../../../build/NEWS:13456 ../../../build/NEWS:15425 msgid "" "`bpo-24421 `__: Compile Modules/_math.c " "once, before building extensions. Previously it could fail to compile " "properly if the math and cmath builds were concurrent." msgstr "" -#: ../../../build/NEWS:12836 +#: ../../../build/NEWS:13460 msgid "" -"`bpo-26465 `__: Update OS X 10.5+ 32" -"-bit-only installer to build and link with OpenSSL 1.0.2g." +"`bpo-26465 `__: Update OS X 10.5+ 32-bit-" +"only installer to build and link with OpenSSL 1.0.2g." msgstr "" -#: ../../../build/NEWS:12839 ../../../build/NEWS:14818 +#: ../../../build/NEWS:13463 ../../../build/NEWS:15442 msgid "" -"`bpo-26268 `__: Update Windows builds to" -" use OpenSSL 1.0.2f." +"`bpo-26268 `__: Update Windows builds to " +"use OpenSSL 1.0.2f." msgstr "" -#: ../../../build/NEWS:12841 ../../../build/NEWS:14820 +#: ../../../build/NEWS:13465 ../../../build/NEWS:15444 msgid "" "`bpo-25136 `__: Support Apple Xcode 7's " "new textual SDK stub libraries." msgstr "" -#: ../../../build/NEWS:12843 ../../../build/NEWS:14822 +#: ../../../build/NEWS:13467 ../../../build/NEWS:15446 msgid "" "`bpo-24324 `__: Do not enable " "unreachable code warnings when using gcc as the option does not work " @@ -20246,162 +21250,161 @@ msgid "" "gcc-4.5." msgstr "" -#: ../../../build/NEWS:12850 ../../../build/NEWS:14829 +#: ../../../build/NEWS:13474 ../../../build/NEWS:15453 msgid "" "`bpo-27053 `__: Updates make_zip.py to " "correctly generate library ZIP file." msgstr "" -#: ../../../build/NEWS:12852 ../../../build/NEWS:14831 +#: ../../../build/NEWS:13476 ../../../build/NEWS:15455 msgid "" -"`bpo-26268 `__: Update the " -"prepare_ssl.py script to handle OpenSSL releases that don't include the " -"contents of the include directory (that is, 1.0.2e and later)." +"`bpo-26268 `__: Update the prepare_ssl." +"py script to handle OpenSSL releases that don't include the contents of the " +"include directory (that is, 1.0.2e and later)." msgstr "" -#: ../../../build/NEWS:12856 ../../../build/NEWS:14835 +#: ../../../build/NEWS:13480 ../../../build/NEWS:15459 msgid "" "`bpo-26071 `__: bdist_wininst created " "binaries fail to start and find 32bit Python" msgstr "" -#: ../../../build/NEWS:12859 ../../../build/NEWS:14838 +#: ../../../build/NEWS:13483 ../../../build/NEWS:15462 msgid "" -"`bpo-26073 `__: Update the list of magic" -" numbers in launcher" +"`bpo-26073 `__: Update the list of magic " +"numbers in launcher" msgstr "" -#: ../../../build/NEWS:12861 ../../../build/NEWS:14840 +#: ../../../build/NEWS:13485 ../../../build/NEWS:15464 msgid "" "`bpo-26065 `__: Excludes venv from " "library when generating embeddable distro." msgstr "" -#: ../../../build/NEWS:12863 ../../../build/NEWS:15369 +#: ../../../build/NEWS:13487 ../../../build/NEWS:15993 msgid "" -"`bpo-25022 `__: Removed very outdated " -"PC/example_nt/ directory." +"`bpo-25022 `__: Removed very outdated PC/" +"example_nt/ directory." msgstr "" -#: ../../../build/NEWS:12868 ../../../build/NEWS:14845 +#: ../../../build/NEWS:13492 ../../../build/NEWS:15469 msgid "" -"`bpo-26799 `__: Fix python-gdb.py: don't" -" get C types once when the Python code is loaded, but get C types on demand." -" The C types can change if python-gdb.py is loaded before the Python " +"`bpo-26799 `__: Fix python-gdb.py: don't " +"get C types once when the Python code is loaded, but get C types on demand. " +"The C types can change if python-gdb.py is loaded before the Python " "executable. Patch written by Thomas Ilsche." msgstr "" -#: ../../../build/NEWS:12873 ../../../build/NEWS:14850 +#: ../../../build/NEWS:13497 ../../../build/NEWS:15474 msgid "" "`bpo-26271 `__: Fix the Freeze tool to " "properly use flags passed through configure. Patch by Daniel Shaulov." msgstr "" -#: ../../../build/NEWS:12876 ../../../build/NEWS:14853 +#: ../../../build/NEWS:13500 ../../../build/NEWS:15477 msgid "" -"`bpo-26489 `__: Add dictionary unpacking" -" support to Tools/parser/unparse.py. Patch by Guo Ci Teo." +"`bpo-26489 `__: Add dictionary unpacking " +"support to Tools/parser/unparse.py. Patch by Guo Ci Teo." msgstr "" -#: ../../../build/NEWS:12879 ../../../build/NEWS:14856 +#: ../../../build/NEWS:13503 ../../../build/NEWS:15480 msgid "" "`bpo-26316 `__: Fix variable name typo " "in Argument Clinic." msgstr "" -#: ../../../build/NEWS:12881 ../../../build/NEWS:15374 +#: ../../../build/NEWS:13505 ../../../build/NEWS:15998 msgid "" "`bpo-25440 `__: Fix output of python-" "config --extension-suffix." msgstr "" -#: ../../../build/NEWS:12883 +#: ../../../build/NEWS:13507 msgid "" "`bpo-25154 `__: The pyvenv script has " "been deprecated in favour of `python3 -m venv`." msgstr "" -#: ../../../build/NEWS:12889 +#: ../../../build/NEWS:13513 msgid "" "`bpo-26312 `__: SystemError is now " "raised in all programming bugs with using PyArg_ParseTupleAndKeywords(). " "RuntimeError did raised before in some programming bugs." msgstr "" -#: ../../../build/NEWS:12893 +#: ../../../build/NEWS:13517 msgid "" -"`bpo-26198 `__: ValueError is now raised" -" instead of TypeError on buffer overflow in parsing \"es#\" and \"et#\" " +"`bpo-26198 `__: ValueError is now raised " +"instead of TypeError on buffer overflow in parsing \"es#\" and \"et#\" " "format units. SystemError is now raised instead of TypeError on " "programmatical error in parsing format string." msgstr "" -#: ../../../build/NEWS:12900 +#: ../../../build/NEWS:13524 msgid "Python 3.5.5 final" msgstr "" -#: ../../../build/NEWS:12902 +#: ../../../build/NEWS:13526 msgid "*Release date: 2018-02-04*" msgstr "" -#: ../../../build/NEWS:12904 +#: ../../../build/NEWS:13528 msgid "There were no new changes in version 3.5.5." msgstr "" -#: ../../../build/NEWS:12909 +#: ../../../build/NEWS:13533 msgid "Python 3.5.5 release candidate 1" msgstr "" -#: ../../../build/NEWS:12911 +#: ../../../build/NEWS:13535 msgid "*Release date: 2018-01-23*" msgstr "" -#: ../../../build/NEWS:12916 +#: ../../../build/NEWS:13540 msgid "" "`bpo-32551 `__: The ``sys.path[0]`` " -"initialization change for `bpo-29139 `__" -" caused a regression by revealing an inconsistency in how sys.path is " +"initialization change for `bpo-29139 `__ " +"caused a regression by revealing an inconsistency in how sys.path is " "initialized when executing ``__main__`` from a zipfile, directory, or other " "import location. This is considered a potential security issue, as it may " "lead to privileged processes unexpectedly loading code from user controlled " "directories in situations where that was not previously the case." msgstr "" -#: ../../../build/NEWS:12923 +#: ../../../build/NEWS:13547 msgid "" "The interpreter now consistently avoids ever adding the import location's " "parent directory to ``sys.path``, and ensures no other ``sys.path`` entries " "are inadvertently modified when inserting the import location named on the " -"command line. (Originally reported as `bpo-29723 " -"`__ against Python 3.6rc1, but it was " -"missed at the time that the then upcoming Python 3.5.4 release would also be" -" affected)" +"command line. (Originally reported as `bpo-29723 `__ against Python 3.6rc1, but it was missed at the time that the " +"then upcoming Python 3.5.4 release would also be affected)" msgstr "" -#: ../../../build/NEWS:12930 +#: ../../../build/NEWS:13554 msgid "" "`bpo-30657 `__: Fixed possible integer " "overflow in PyBytes_DecodeEscape, CVE-2017-1000158. Original patch by Jay " "Bosamiya; rebased to Python 3 by Miro Hrončok." msgstr "" -#: ../../../build/NEWS:12959 +#: ../../../build/NEWS:13583 msgid "Python 3.5.4 final" msgstr "" -#: ../../../build/NEWS:12961 +#: ../../../build/NEWS:13585 msgid "*Release date: 2017-08-07*" msgstr "" -#: ../../../build/NEWS:12971 +#: ../../../build/NEWS:13595 msgid "Python 3.5.4 release candidate 1" msgstr "" -#: ../../../build/NEWS:12973 +#: ../../../build/NEWS:13597 msgid "*Release date: 2017-07-23*" msgstr "" -#: ../../../build/NEWS:13025 +#: ../../../build/NEWS:13649 msgid "" "`bpo-29537 `__: Restore runtime " "compatibility with bytecode files generated by CPython 3.5.0 to 3.5.2, and " @@ -20410,163 +21413,163 @@ msgid "" "contain. Patch by Petr Viktorin, Serhiy Storchaka, and Nick Coghlan." msgstr "" -#: ../../../build/NEWS:13308 +#: ../../../build/NEWS:13932 msgid "" "`bpo-30822 `__: Fix regrtest command " "line parser to allow passing -u extralargefile to run test_zipfile64." msgstr "" -#: ../../../build/NEWS:13311 +#: ../../../build/NEWS:13935 msgid "" "`bpo-30383 `__: regrtest: Enhance " "regrtest and backport features from the master branch." msgstr "" -#: ../../../build/NEWS:13314 +#: ../../../build/NEWS:13938 msgid "" -"Add options: --coverage, --testdir, --list-tests (list test files, don't run" -" them), --list-cases (list test identifiers, don't run them, " -":issue:`30523`), --matchfile (load a list of test filters from a text file, " -":issue:`30540`), --slowest (alias to --slow)." +"Add options: --coverage, --testdir, --list-tests (list test files, don't run " +"them), --list-cases (list test identifiers, don't run them, :issue:`30523`), " +"--matchfile (load a list of test filters from a text file, :issue:`30540`), " +"--slowest (alias to --slow)." msgstr "" -#: ../../../build/NEWS:13319 +#: ../../../build/NEWS:13943 msgid "" -"Enhance output: add timestamp, test result, currently running tests, \"Tests" -" result: xxx\" summary with total duration, etc." +"Enhance output: add timestamp, test result, currently running tests, \"Tests " +"result: xxx\" summary with total duration, etc." msgstr "" -#: ../../../build/NEWS:13322 +#: ../../../build/NEWS:13946 msgid "" "Fix reference leak hunting in regrtest, --huntrleaks: regrtest now warms up " "caches, create explicitly all internal singletons which are created on " -"demand to prevent false positives when checking for reference leaks. " -"(:issue:`30675`)." +"demand to prevent false positives when checking for reference leaks. (:issue:" +"`30675`)." msgstr "" -#: ../../../build/NEWS:13373 +#: ../../../build/NEWS:13997 msgid "" "`bpo-27867 `__: Function " "PySlice_GetIndicesEx() is replaced with a macro if Py_LIMITED_API is set to " -"the value between 0x03050400 and 0x03060000 (not including) or 0x03060100 or" -" higher." +"the value between 0x03050400 and 0x03060000 (not including) or 0x03060100 or " +"higher." msgstr "" -#: ../../../build/NEWS:13385 +#: ../../../build/NEWS:14009 msgid "Python 3.5.3 final" msgstr "" -#: ../../../build/NEWS:13387 +#: ../../../build/NEWS:14011 msgid "*Release date: 2017-01-17*" msgstr "" -#: ../../../build/NEWS:13389 +#: ../../../build/NEWS:14013 msgid "There were no code changes between 3.5.3rc1 and 3.5.3 final." msgstr "" -#: ../../../build/NEWS:13394 +#: ../../../build/NEWS:14018 msgid "Python 3.5.3 release candidate 1" msgstr "" -#: ../../../build/NEWS:13396 +#: ../../../build/NEWS:14020 msgid "*Release date: 2017-01-02*" msgstr "" -#: ../../../build/NEWS:13401 +#: ../../../build/NEWS:14025 msgid "" "`bpo-29073 `__: bytearray formatting no " "longer truncates on first null byte." msgstr "" -#: ../../../build/NEWS:13405 +#: ../../../build/NEWS:14029 msgid "" "`bpo-28147 `__: Fix a memory leak in " "split-table dictionaries: setattr() must not convert combined table into " "split table." msgstr "" -#: ../../../build/NEWS:13417 +#: ../../../build/NEWS:14041 msgid "" "`bpo-28991 `__: functools.lru_cache() " "was susceptible to an obscure reentrancy bug caused by a monkey-patched " "len() function." msgstr "" -#: ../../../build/NEWS:13460 +#: ../../../build/NEWS:14084 msgid "" "`bpo-28203 `__: Fix incorrect type in " "error message from ``complex(1.0, {2:3})``. Patch by Soumya Sharma." msgstr "" -#: ../../../build/NEWS:13475 +#: ../../../build/NEWS:14099 msgid "" "`bpo-28189 `__: dictitems_contains no " "longer swallows compare errors. (Patch by Xiang Zhang)" msgstr "" -#: ../../../build/NEWS:13487 +#: ../../../build/NEWS:14111 msgid "" "`bpo-26020 `__: set literal evaluation " "order did not match documented behaviour." msgstr "" -#: ../../../build/NEWS:13506 +#: ../../../build/NEWS:14130 msgid "" -"`bpo-27419 `__: Standard __import__() no" -" longer look up \"__import__\" in globals or builtins for importing " +"`bpo-27419 `__: Standard __import__() no " +"longer look up \"__import__\" in globals or builtins for importing " "submodules or \"from import\". Fixed handling an error of non-string " "package name." msgstr "" -#: ../../../build/NEWS:13558 +#: ../../../build/NEWS:14182 msgid "" "`bpo-20191 `__: Fixed a crash in " "resource.prlimit() when pass a sequence that doesn't own its elements as " "limits." msgstr "" -#: ../../../build/NEWS:13609 +#: ../../../build/NEWS:14233 msgid "" -"`bpo-28488 `__: shutil.make_archive() no" -" longer add entry \"./\" to ZIP archive." +"`bpo-28488 `__: shutil.make_archive() no " +"longer add entry \"./\" to ZIP archive." msgstr "" -#: ../../../build/NEWS:13649 +#: ../../../build/NEWS:14273 msgid "" -"`bpo-27611 `__: Fixed support of default" -" root window in the tkinter.tix module." +"`bpo-27611 `__: Fixed support of default " +"root window in the tkinter.tix module." msgstr "" -#: ../../../build/NEWS:13675 +#: ../../../build/NEWS:14299 msgid "" "`bpo-19003 `__: m email.generator now " "replaces only ``\\r`` and/or ``\\n`` line endings, per the RFC, instead of " "all unicode line endings." msgstr "" -#: ../../../build/NEWS:13747 +#: ../../../build/NEWS:14371 msgid "" -"A new version of typing.py from https://github.com/python/typing: Collection" -" (only for 3.6) (`bpo-27598 `__). Add " +"A new version of typing.py from https://github.com/python/typing: Collection " +"(only for 3.6) (`bpo-27598 `__). Add " "FrozenSet to __all__ (upstream #261). Fix crash in _get_type_vars() " "(upstream #259). Remove the dict constraint in ForwardRef._eval_type " "(upstream #252)." msgstr "" -#: ../../../build/NEWS:13763 +#: ../../../build/NEWS:14387 msgid "" -"`bpo-26750 `__: " -"unittest.mock.create_autospec() now works properly for subclasses of " -"property() and other data descriptors." +"`bpo-26750 `__: unittest.mock." +"create_autospec() now works properly for subclasses of property() and other " +"data descriptors." msgstr "" -#: ../../../build/NEWS:13807 +#: ../../../build/NEWS:14431 msgid "" "`bpo-26664 `__: Fix activate.fish by " "removing mis-use of ``$``." msgstr "" -#: ../../../build/NEWS:13809 +#: ../../../build/NEWS:14433 msgid "" "`bpo-22115 `__: Fixed tracing Tkinter " "variables: trace_vdelete() with wrong mode no longer break tracing, " @@ -20574,66 +21577,65 @@ msgid "" "\"u\" mode now works." msgstr "" -#: ../../../build/NEWS:13813 +#: ../../../build/NEWS:14437 msgid "" "Fix a scoping issue in importlib.util.LazyLoader which triggered an " -"UnboundLocalError when lazy-loading a module that was already put into " -"sys.modules." +"UnboundLocalError when lazy-loading a module that was already put into sys." +"modules." msgstr "" -#: ../../../build/NEWS:13913 +#: ../../../build/NEWS:14537 msgid "" -"`bpo-28600 `__: Optimize " -"loop.call_soon()." +"`bpo-28600 `__: Optimize loop." +"call_soon()." msgstr "" -#: ../../../build/NEWS:13927 +#: ../../../build/NEWS:14551 msgid "" -"`bpo-24142 `__: Reading a corrupt config" -" file left the parser in an invalid state. Original patch by Florian Höch." +"`bpo-24142 `__: Reading a corrupt config " +"file left the parser in an invalid state. Original patch by Florian Höch." msgstr "" -#: ../../../build/NEWS:13930 +#: ../../../build/NEWS:14554 msgid "" "`bpo-28990 `__: Fix SSL hanging if " "connection is closed before handshake completed. (Patch by HoHo-Ho)" msgstr "" -#: ../../../build/NEWS:13966 +#: ../../../build/NEWS:14590 msgid "" "`bpo-26754 `__: PyUnicode_FSDecoder() " "accepted a filename argument encoded as an iterable of integers. Now only " "strings and bytes-like objects are accepted." msgstr "" -#: ../../../build/NEWS:13978 +#: ../../../build/NEWS:14602 msgid "" "`bpo-28950 `__: Disallow -j0 to be " "combined with -T/-l/-M in regrtest command line arguments." msgstr "" -#: ../../../build/NEWS:14019 +#: ../../../build/NEWS:14643 msgid "" "`bpo-27309 `__: Enabled proper Windows " "styles in python[w].exe manifest." msgstr "" -#: ../../../build/NEWS:14052 +#: ../../../build/NEWS:14676 msgid "" "`bpo-27983 `__: Cause lack of llvm-" -"profdata tool when using clang as required for PGO linking to be a configure" -" time error rather than make time when --with-optimizations is enabled. " -"Also improve our ability to find the llvm-profdata tool on MacOS and some " -"Linuxes." +"profdata tool when using clang as required for PGO linking to be a configure " +"time error rather than make time when --with-optimizations is enabled. Also " +"improve our ability to find the llvm-profdata tool on MacOS and some Linuxes." msgstr "" -#: ../../../build/NEWS:14059 +#: ../../../build/NEWS:14683 msgid "" "`bpo-26359 `__: Add the --with-" "optimizations configure flag." msgstr "" -#: ../../../build/NEWS:14064 +#: ../../../build/NEWS:14688 msgid "" "`bpo-25825 `__: Correct the references " "to Modules/python.exp and ld_so_aix, which are required on AIX. This " @@ -20641,48 +21643,48 @@ msgid "" "undoes changed references to the build tree that were made in 3.5.0a1." msgstr "" -#: ../../../build/NEWS:14087 +#: ../../../build/NEWS:14711 msgid "Python 3.5.2 final" msgstr "" -#: ../../../build/NEWS:14089 +#: ../../../build/NEWS:14713 msgid "*Release date: 2016-06-26*" msgstr "" -#: ../../../build/NEWS:14099 +#: ../../../build/NEWS:14723 msgid "" "`bpo-26867 `__: Ubuntu's openssl " "OP_NO_SSLv3 is forced on by default; fix test." msgstr "" -#: ../../../build/NEWS:14104 +#: ../../../build/NEWS:14728 msgid "" "`bpo-27365 `__: Allow non-ascii in " "idlelib/NEWS.txt - minimal part for 3.5.2." msgstr "" -#: ../../../build/NEWS:14108 +#: ../../../build/NEWS:14732 msgid "Python 3.5.2 release candidate 1" msgstr "" -#: ../../../build/NEWS:14110 +#: ../../../build/NEWS:14734 msgid "*Release date: 2016-06-12*" msgstr "" -#: ../../../build/NEWS:14126 +#: ../../../build/NEWS:14750 msgid "" -"`bpo-27039 `__: Fixed bytearray.remove()" -" for values greater than 127. Patch by Joe Jevnik." +"`bpo-27039 `__: Fixed bytearray.remove() " +"for values greater than 127. Patch by Joe Jevnik." msgstr "" -#: ../../../build/NEWS:14181 +#: ../../../build/NEWS:14805 msgid "" "`bpo-26194 `__: Deque.insert() gave odd " "results for bounded deques that had reached their maximum size. Now an " "IndexError will be raised when attempting to insert into a full deque." msgstr "" -#: ../../../build/NEWS:14185 +#: ../../../build/NEWS:14809 msgid "" "`bpo-25843 `__: When compiling code, " "don't merge constants if they are equal but have a different types. For " @@ -20691,122 +21693,122 @@ msgid "" "returns ``1.0`` (``int``), even if ``1`` and ``1.0`` are equal." msgstr "" -#: ../../../build/NEWS:14247 +#: ../../../build/NEWS:14871 msgid "" "Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team " "Oststrom" msgstr "" -#: ../../../build/NEWS:14433 +#: ../../../build/NEWS:15057 msgid "" -"`bpo-21925 `__: " -":func:`warnings.formatwarning` now catches exceptions on " -"``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted " -"late during the Python shutdown process." +"`bpo-21925 `__: :func:`warnings." +"formatwarning` now catches exceptions on ``linecache.getline(...)`` to be " +"able to log :exc:`ResourceWarning` emitted late during the Python shutdown " +"process." msgstr "" -#: ../../../build/NEWS:14475 +#: ../../../build/NEWS:15099 msgid "" "`bpo-15068 `__: Got rid of excessive " "buffering in the fileinput module. The bufsize parameter is no longer used." msgstr "" -#: ../../../build/NEWS:14504 +#: ../../../build/NEWS:15128 msgid "" "`bpo-26367 `__: importlib.__import__() " "raises SystemError like builtins.__import__() when ``level`` is specified " "but without an accompanying package specified." msgstr "" -#: ../../../build/NEWS:14563 +#: ../../../build/NEWS:15187 msgid "" "`bpo-17633 `__: Improve zipimport's " "support for namespace packages." msgstr "" -#: ../../../build/NEWS:14662 +#: ../../../build/NEWS:15286 msgid "" -"`bpo-27223 `__: asyncio: Fix _read_ready" -" and _write_ready to respect _conn_lost. Patch by Łukasz Langa." +"`bpo-27223 `__: asyncio: Fix _read_ready " +"and _write_ready to respect _conn_lost. Patch by Łukasz Langa." msgstr "" -#: ../../../build/NEWS:14665 +#: ../../../build/NEWS:15289 msgid "" "`bpo-22970 `__: asyncio: Fix " "inconsistency cancelling Condition.wait. Patch by David Coles." msgstr "" -#: ../../../build/NEWS:14701 +#: ../../../build/NEWS:15325 msgid "" -"`bpo-21703 `__: Add test for IDLE's undo" -" delegator. Original patch by Saimadhav Heblikar ." +"`bpo-21703 `__: Add test for IDLE's undo " +"delegator. Original patch by Saimadhav Heblikar ." msgstr "" -#: ../../../build/NEWS:14737 +#: ../../../build/NEWS:15361 msgid "" -"`bpo-25500 `__: Fix documentation to not" -" claim that __import__ is searched for in the global scope." +"`bpo-25500 `__: Fix documentation to not " +"claim that __import__ is searched for in the global scope." msgstr "" -#: ../../../build/NEWS:14758 +#: ../../../build/NEWS:15382 msgid "" "`bpo-25940 `__: Changed test_ssl to use " "self-signed.pythontest.net. This avoids relying on svn.python.org, which " "recently changed root certificate." msgstr "" -#: ../../../build/NEWS:14781 +#: ../../../build/NEWS:15405 msgid "" -"`bpo-21668 `__: Link audioop, _datetime," -" _ctypes_test modules to libm, except on Mac OS X. Patch written by Xavier " -"de Gaye." +"`bpo-21668 `__: Link audioop, _datetime, " +"_ctypes_test modules to libm, except on Mac OS X. Patch written by Xavier de " +"Gaye." msgstr "" -#: ../../../build/NEWS:14805 +#: ../../../build/NEWS:15429 msgid "" -"`bpo-25348 `__: Added ``--pgo`` and " -"``--pgo-job`` arguments to ``PCbuild\\build.bat`` for building with Profile-" +"`bpo-25348 `__: Added ``--pgo`` and ``--" +"pgo-job`` arguments to ``PCbuild\\build.bat`` for building with Profile-" "Guided Optimization. The old ``PCbuild\\build_pgo.bat`` script is now " "deprecated, and simply calls ``PCbuild\\build.bat --pgo %*``." msgstr "" -#: ../../../build/NEWS:14866 +#: ../../../build/NEWS:15490 msgid "Python 3.5.1 final" msgstr "" -#: ../../../build/NEWS:14868 +#: ../../../build/NEWS:15492 msgid "*Release date: 2015-12-06*" msgstr "" -#: ../../../build/NEWS:14879 +#: ../../../build/NEWS:15503 msgid "" "`bpo-25715 `__: Python 3.5.1 installer " "shows wrong upgrade path and incorrect logic for launcher detection." msgstr "" -#: ../../../build/NEWS:14884 +#: ../../../build/NEWS:15508 msgid "Python 3.5.1 release candidate 1" msgstr "" -#: ../../../build/NEWS:14886 +#: ../../../build/NEWS:15510 msgid "*Release date: 2015-11-22*" msgstr "" -#: ../../../build/NEWS:14945 +#: ../../../build/NEWS:15569 msgid "" "`bpo-25182 `__: The stdprinter (used as " "sys.stderr before the io module is imported at startup) now uses the " "backslashreplace error handler." msgstr "" -#: ../../../build/NEWS:14948 +#: ../../../build/NEWS:15572 msgid "" -"`bpo-25131 `__: Make the line number and" -" column offset of set/dict literals and comprehensions correspond to the " +"`bpo-25131 `__: Make the line number and " +"column offset of set/dict literals and comprehensions correspond to the " "opening brace." msgstr "" -#: ../../../build/NEWS:14951 +#: ../../../build/NEWS:15575 msgid "" "`bpo-25150 `__: Hide the private " "_Py_atomic_xxx symbols from the public Python.h header to fix a compilation " @@ -20814,69 +21816,69 @@ msgid "" "PyThreadState_Get() to avoid ABI incompatibilities." msgstr "" -#: ../../../build/NEWS:14975 +#: ../../../build/NEWS:15599 msgid "" "`bpo-25590 `__: In the Readline " "completer, only call getattr() once per attribute." msgstr "" -#: ../../../build/NEWS:15053 +#: ../../../build/NEWS:15677 msgid "" "`bpo-24483 `__: C implementation of " "functools.lru_cache() now calculates key's hash only once." msgstr "" -#: ../../../build/NEWS:15056 +#: ../../../build/NEWS:15680 msgid "" "`bpo-22958 `__: Constructor and update " "method of weakref.WeakValueDictionary now accept the self and the dict " "keyword arguments." msgstr "" -#: ../../../build/NEWS:15059 +#: ../../../build/NEWS:15683 msgid "" "`bpo-22609 `__: Constructor of " "collections.UserDict now accepts the self keyword argument." msgstr "" -#: ../../../build/NEWS:15062 +#: ../../../build/NEWS:15686 msgid "" "`bpo-25111 `__: Fixed comparison of " "traceback.FrameSummary." msgstr "" -#: ../../../build/NEWS:15064 +#: ../../../build/NEWS:15688 msgid "" "`bpo-25262 `__: Added support for " "BINBYTES8 opcode in Python implementation of unpickler. Highest 32 bits of " -"64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored" -" on 32-bit platforms in C implementation." +"64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored " +"on 32-bit platforms in C implementation." msgstr "" -#: ../../../build/NEWS:15069 +#: ../../../build/NEWS:15693 msgid "" "`bpo-25034 `__: Fix string.Formatter " -"problem with auto-numbering and nested format_specs. Patch by Anthon van der" -" Neut." +"problem with auto-numbering and nested format_specs. Patch by Anthon van der " +"Neut." msgstr "" -#: ../../../build/NEWS:15072 +#: ../../../build/NEWS:15696 msgid "" "`bpo-25233 `__: Rewrite the guts of " "asyncio.Queue and asyncio.Semaphore to be more understandable and correct." msgstr "" -#: ../../../build/NEWS:15081 +#: ../../../build/NEWS:15705 msgid "" "`bpo-23329 `__: Allow the ssl module to " "be built with older versions of LibreSSL." msgstr "" -#: ../../../build/NEWS:15084 +#: ../../../build/NEWS:15708 msgid "Prevent overflow in _Unpickler_Read." msgstr "" -#: ../../../build/NEWS:15086 +#: ../../../build/NEWS:15710 msgid "" "`bpo-25047 `__: The XML encoding " "declaration written by Element Tree now respects the letter case given by " @@ -20884,26 +21886,26 @@ msgid "" "like \"UTF-8\", which worked in Python 2." msgstr "" -#: ../../../build/NEWS:15090 +#: ../../../build/NEWS:15714 msgid "" -"`bpo-25135 `__: Make deque_clear() safer" -" by emptying the deque before clearing. This helps avoid possible reentrancy" -" issues." +"`bpo-25135 `__: Make deque_clear() safer " +"by emptying the deque before clearing. This helps avoid possible reentrancy " +"issues." msgstr "" -#: ../../../build/NEWS:15093 +#: ../../../build/NEWS:15717 msgid "" "`bpo-19143 `__: platform module now " "reads Windows version from kernel32.dll to avoid compatibility shims." msgstr "" -#: ../../../build/NEWS:15096 +#: ../../../build/NEWS:15720 msgid "" "`bpo-25092 `__: Fix datetime.strftime() " "failure when errno was already set to EINVAL." msgstr "" -#: ../../../build/NEWS:15099 +#: ../../../build/NEWS:15723 msgid "" "`bpo-23517 `__: Fix rounding in " "fromtimestamp() and utcfromtimestamp() methods of datetime.datetime: " @@ -20915,538 +21917,535 @@ msgid "" "mode used by round(float) for example." msgstr "" -#: ../../../build/NEWS:15108 +#: ../../../build/NEWS:15732 msgid "" -"`bpo-25155 `__: Fix " -"datetime.datetime.now() and datetime.datetime.utcnow() on Windows to support" -" date after year 2038. It was a regression introduced in Python 3.5.0." +"`bpo-25155 `__: Fix datetime.datetime." +"now() and datetime.datetime.utcnow() on Windows to support date after year " +"2038. It was a regression introduced in Python 3.5.0." msgstr "" -#: ../../../build/NEWS:15112 +#: ../../../build/NEWS:15736 msgid "" "`bpo-25108 `__: Omitted internal frames " "in traceback functions print_stack(), format_stack(), and extract_stack() " "called without arguments." msgstr "" -#: ../../../build/NEWS:15115 +#: ../../../build/NEWS:15739 msgid "" "`bpo-25118 `__: Fix a regression of " "Python 3.5.0 in os.waitpid() on Windows." msgstr "" -#: ../../../build/NEWS:15117 +#: ../../../build/NEWS:15741 msgid "" -"`bpo-24684 `__: " -"socket.socket.getaddrinfo() now calls PyUnicode_AsEncodedString() instead of" -" calling the encode() method of the host, to handle correctly custom string " -"with an encode() method which doesn't return a byte string. The encoder of " -"the IDNA codec is now called directly instead of calling the encode() method" -" of the string." +"`bpo-24684 `__: socket.socket." +"getaddrinfo() now calls PyUnicode_AsEncodedString() instead of calling the " +"encode() method of the host, to handle correctly custom string with an " +"encode() method which doesn't return a byte string. The encoder of the IDNA " +"codec is now called directly instead of calling the encode() method of the " +"string." msgstr "" -#: ../../../build/NEWS:15123 +#: ../../../build/NEWS:15747 msgid "" "`bpo-25060 `__: Correctly compute stack " "usage of the BUILD_MAP opcode." msgstr "" -#: ../../../build/NEWS:15125 +#: ../../../build/NEWS:15749 msgid "" -"`bpo-24857 `__: Comparing call_args to a" -" long sequence now correctly returns a boolean result instead of raising an " +"`bpo-24857 `__: Comparing call_args to a " +"long sequence now correctly returns a boolean result instead of raising an " "exception. Patch by A Kaptur." msgstr "" -#: ../../../build/NEWS:15128 +#: ../../../build/NEWS:15752 msgid "" "`bpo-23144 `__: Make sure that " "HTMLParser.feed() returns all the data, even when convert_charrefs is True." msgstr "" -#: ../../../build/NEWS:15131 +#: ../../../build/NEWS:15755 msgid "" "`bpo-24982 `__: shutil.make_archive() " "with the \"zip\" format now adds entries for directories (including empty " "directories) in ZIP file." msgstr "" -#: ../../../build/NEWS:15134 +#: ../../../build/NEWS:15758 msgid "" "`bpo-25019 `__: Fixed a crash caused by " "setting non-string key of expat parser. Based on patch by John Leitch." msgstr "" -#: ../../../build/NEWS:15137 +#: ../../../build/NEWS:15761 msgid "" "`bpo-16180 `__: Exit pdb if file has " -"syntax error, instead of trapping user in an infinite loop. Patch by Xavier" -" de Gaye." +"syntax error, instead of trapping user in an infinite loop. Patch by Xavier " +"de Gaye." msgstr "" -#: ../../../build/NEWS:15140 +#: ../../../build/NEWS:15764 msgid "" "`bpo-24891 `__: Fix a race condition at " -"Python startup if the file descriptor of stdin (0), stdout (1) or stderr (2)" -" is closed while Python is creating sys.stdin, sys.stdout and sys.stderr " +"Python startup if the file descriptor of stdin (0), stdout (1) or stderr (2) " +"is closed while Python is creating sys.stdin, sys.stdout and sys.stderr " "objects. These attributes are now set to None if the creation of the object " "failed, instead of raising an OSError exception. Initial patch written by " "Marco Paolini." msgstr "" -#: ../../../build/NEWS:15146 +#: ../../../build/NEWS:15770 msgid "" -"`bpo-24992 `__: Fix error handling and a" -" race condition (related to garbage collection) in collections.OrderedDict " +"`bpo-24992 `__: Fix error handling and a " +"race condition (related to garbage collection) in collections.OrderedDict " "constructor." msgstr "" -#: ../../../build/NEWS:15149 +#: ../../../build/NEWS:15773 msgid "" "`bpo-24881 `__: Fixed setting binary " "mode in Python implementation of FileIO on Windows and Cygwin. Patch from " "Akira Li." msgstr "" -#: ../../../build/NEWS:15165 +#: ../../../build/NEWS:15789 msgid "" "`bpo-21112 `__: Fix regression in " "unittest.expectedFailure on subclasses. Patch from Berker Peksag." msgstr "" -#: ../../../build/NEWS:15168 +#: ../../../build/NEWS:15792 msgid "" -"`bpo-24764 `__: " -"cgi.FieldStorage.read_multi() now ignores the Content-Length header in part " -"headers. Patch written by Peter Landry and reviewed by Pierre Quentel." +"`bpo-24764 `__: cgi.FieldStorage." +"read_multi() now ignores the Content-Length header in part headers. Patch " +"written by Peter Landry and reviewed by Pierre Quentel." msgstr "" -#: ../../../build/NEWS:15172 ../../../build/NEWS:15437 +#: ../../../build/NEWS:15796 ../../../build/NEWS:16061 msgid "" "`bpo-24913 `__: Fix overrun error in " "deque.index(). Found by John Leitch and Bryce Darling." msgstr "" -#: ../../../build/NEWS:15175 +#: ../../../build/NEWS:15799 msgid "" -"`bpo-24774 `__: Fix docstring in " -"http.server.test. Patch from Chiu-Hsiang Hsu." +"`bpo-24774 `__: Fix docstring in http." +"server.test. Patch from Chiu-Hsiang Hsu." msgstr "" -#: ../../../build/NEWS:15177 +#: ../../../build/NEWS:15801 msgid "" "`bpo-21159 `__: Improve message in " "configparser.InterpolationMissingOptionError. Patch from Łukasz Langa." msgstr "" -#: ../../../build/NEWS:15180 +#: ../../../build/NEWS:15804 msgid "" -"`bpo-20362 `__: Honour " -"TestCase.longMessage correctly in assertRegex. Patch from Ilia Kurenkov." +"`bpo-20362 `__: Honour TestCase." +"longMessage correctly in assertRegex. Patch from Ilia Kurenkov." msgstr "" -#: ../../../build/NEWS:15183 +#: ../../../build/NEWS:15807 msgid "" -"`bpo-23572 `__: Fixed " -"functools.singledispatch on classes with falsy metaclasses. Patch by Ethan " -"Furman." +"`bpo-23572 `__: Fixed functools." +"singledispatch on classes with falsy metaclasses. Patch by Ethan Furman." msgstr "" -#: ../../../build/NEWS:15186 +#: ../../../build/NEWS:15810 msgid "asyncio: ensure_future() now accepts awaitable objects." msgstr "" -#: ../../../build/NEWS:15274 +#: ../../../build/NEWS:15898 msgid "" "`bpo-16893 `__: Replace help.txt with " -"help.html for Idle doc display. The new idlelib/help.html is rstripped " -"Doc/build/html/library/idle.html. It looks better than help.txt and will " -"better document Idle as released. The tkinter html viewer that works for " -"this file was written by Mark Roseman. The now unused " -"EditorWindow.HelpDialog class and helt.txt file are deprecated." +"help.html for Idle doc display. The new idlelib/help.html is rstripped Doc/" +"build/html/library/idle.html. It looks better than help.txt and will better " +"document Idle as released. The tkinter html viewer that works for this file " +"was written by Mark Roseman. The now unused EditorWindow.HelpDialog class " +"and helt.txt file are deprecated." msgstr "" -#: ../../../build/NEWS:15291 +#: ../../../build/NEWS:15915 msgid "" "`bpo-12067 `__: Rewrite Comparisons " "section in the Expressions chapter of the language reference. Some of the " -"details of comparing mixed types were incorrect or ambiguous. NotImplemented" -" is only relevant at a lower level than the Expressions chapter. Added " +"details of comparing mixed types were incorrect or ambiguous. NotImplemented " +"is only relevant at a lower level than the Expressions chapter. Added " "details of comparing range() objects, and default behaviour and consistency " "suggestions for user-defined classes. Patch from Andy Maier." msgstr "" -#: ../../../build/NEWS:15301 +#: ../../../build/NEWS:15925 msgid "" "`bpo-23725 `__: Overhaul tempfile docs. " "Note deprecated status of mktemp. Patch from Zbigniew Jędrzejewski-Szmek." msgstr "" -#: ../../../build/NEWS:15304 +#: ../../../build/NEWS:15928 msgid "" -"`bpo-24808 `__: Update the types of some" -" PyTypeObject fields. Patch by Joseph Weston." +"`bpo-24808 `__: Update the types of some " +"PyTypeObject fields. Patch by Joseph Weston." msgstr "" -#: ../../../build/NEWS:15307 +#: ../../../build/NEWS:15931 msgid "" "`bpo-22812 `__: Fix unittest discovery " "examples. Patch from Pam McA'Nulty." msgstr "" -#: ../../../build/NEWS:15314 +#: ../../../build/NEWS:15938 msgid "" -"`bpo-25099 `__: Make test_compileall not" -" fail when an entry on sys.path cannot be written to (commonly seen in " +"`bpo-25099 `__: Make test_compileall not " +"fail when an entry on sys.path cannot be written to (commonly seen in " "administrative installs on Windows)." msgstr "" -#: ../../../build/NEWS:15317 +#: ../../../build/NEWS:15941 msgid "" "`bpo-23919 `__: Prevents assert dialogs " "appearing in the test suite." msgstr "" -#: ../../../build/NEWS:15325 +#: ../../../build/NEWS:15949 msgid "" -"`bpo-24915 `__: Add LLVM support for PGO" -" builds and use the test suite to generate the profile data. Initial patch " -"by Alecsandru Patrascu of Intel." +"`bpo-24915 `__: Add LLVM support for PGO " +"builds and use the test suite to generate the profile data. Initial patch by " +"Alecsandru Patrascu of Intel." msgstr "" -#: ../../../build/NEWS:15328 +#: ../../../build/NEWS:15952 msgid "" "`bpo-24910 `__: Windows MSIs now have " "unique display names." msgstr "" -#: ../../../build/NEWS:15336 +#: ../../../build/NEWS:15960 msgid "" "`bpo-25450 `__: Updates shortcuts to " "start Python in installation directory." msgstr "" -#: ../../../build/NEWS:15338 +#: ../../../build/NEWS:15962 msgid "" "`bpo-25164 `__: Changes default all-" "users install directory to match per-user directory." msgstr "" -#: ../../../build/NEWS:15341 +#: ../../../build/NEWS:15965 msgid "" -"`bpo-25143 `__: Improves installer error" -" messages for unsupported platforms." +"`bpo-25143 `__: Improves installer error " +"messages for unsupported platforms." msgstr "" -#: ../../../build/NEWS:15343 +#: ../../../build/NEWS:15967 msgid "" "`bpo-25163 `__: Display correct " "directory in installer when using non-default settings." msgstr "" -#: ../../../build/NEWS:15346 +#: ../../../build/NEWS:15970 msgid "" "`bpo-25361 `__: Disables use of SSE2 " "instructions in Windows 32-bit build" msgstr "" -#: ../../../build/NEWS:15348 +#: ../../../build/NEWS:15972 msgid "" "`bpo-25089 `__: Adds logging to " "installer for case where launcher is not selected on upgrade." msgstr "" -#: ../../../build/NEWS:15351 +#: ../../../build/NEWS:15975 msgid "" "`bpo-25165 `__: Windows uninstallation " "should not remove launcher if other versions remain" msgstr "" -#: ../../../build/NEWS:15354 +#: ../../../build/NEWS:15978 msgid "" "`bpo-25112 `__: py.exe launcher is " "missing icons" msgstr "" -#: ../../../build/NEWS:15356 +#: ../../../build/NEWS:15980 msgid "" "`bpo-25102 `__: Windows installer does " "not precompile for -O or -OO." msgstr "" -#: ../../../build/NEWS:15358 +#: ../../../build/NEWS:15982 msgid "" "`bpo-25081 `__: Makes Back button in " "installer go back to upgrade page when upgrading." msgstr "" -#: ../../../build/NEWS:15361 +#: ../../../build/NEWS:15985 msgid "" "`bpo-25091 `__: Increases font size of " "the installer." msgstr "" -#: ../../../build/NEWS:15363 +#: ../../../build/NEWS:15987 msgid "" "`bpo-25126 `__: Clarifies that the non-" "web installer will download some components." msgstr "" -#: ../../../build/NEWS:15366 +#: ../../../build/NEWS:15990 msgid "" "`bpo-25213 `__: Restores " "requestedExecutionLevel to manifest to disable UAC virtualization." msgstr "" -#: ../../../build/NEWS:15378 +#: ../../../build/NEWS:16002 msgid "Python 3.5.0 final" msgstr "" -#: ../../../build/NEWS:15380 +#: ../../../build/NEWS:16004 msgid "*Release date: 2015-09-13*" msgstr "" -#: ../../../build/NEWS:15385 +#: ../../../build/NEWS:16009 msgid "" -"`bpo-25071 `__: Windows installer should" -" not require TargetDir parameter when installing quietly." +"`bpo-25071 `__: Windows installer should " +"not require TargetDir parameter when installing quietly." msgstr "" -#: ../../../build/NEWS:15390 +#: ../../../build/NEWS:16014 msgid "Python 3.5.0 release candidate 4" msgstr "" -#: ../../../build/NEWS:15392 +#: ../../../build/NEWS:16016 msgid "*Release date: 2015-09-09*" msgstr "" -#: ../../../build/NEWS:15397 +#: ../../../build/NEWS:16021 msgid "" "`bpo-25029 `__: Fixes MemoryError in " "test_strptime." msgstr "" -#: ../../../build/NEWS:15402 +#: ../../../build/NEWS:16026 msgid "" "`bpo-25027 `__: Reverts partial-static " "build options and adds vcruntime140.dll to Windows installation." msgstr "" -#: ../../../build/NEWS:15407 +#: ../../../build/NEWS:16031 msgid "Python 3.5.0 release candidate 3" msgstr "" -#: ../../../build/NEWS:15409 +#: ../../../build/NEWS:16033 msgid "*Release date: 2015-09-07*" msgstr "" -#: ../../../build/NEWS:15414 +#: ../../../build/NEWS:16038 msgid "" -"`bpo-24305 `__: Prevent import subsystem" -" stack frames from being counted by the warnings.warn(stacklevel=) " -"parameter." +"`bpo-24305 `__: Prevent import subsystem " +"stack frames from being counted by the warnings.warn(stacklevel=) parameter." msgstr "" -#: ../../../build/NEWS:15417 +#: ../../../build/NEWS:16041 msgid "" "`bpo-24912 `__: Prevent __class__ " "assignment to immutable built-in objects." msgstr "" -#: ../../../build/NEWS:15419 +#: ../../../build/NEWS:16043 msgid "" "`bpo-24975 `__: Fix AST compilation for " "PEP 448 syntax." msgstr "" -#: ../../../build/NEWS:15424 +#: ../../../build/NEWS:16048 msgid "" "`bpo-24917 `__: time_strftime() buffer " "over-read." msgstr "" -#: ../../../build/NEWS:15426 +#: ../../../build/NEWS:16050 msgid "" "`bpo-24748 `__: To resolve a " -"compatibility problem found with py2exe and pywin32, imp.load_dynamic() once" -" again ignores previously loaded modules to support Python modules replacing" -" themselves with extension modules. Patch by Petr Viktorin." +"compatibility problem found with py2exe and pywin32, imp.load_dynamic() once " +"again ignores previously loaded modules to support Python modules replacing " +"themselves with extension modules. Patch by Petr Viktorin." msgstr "" -#: ../../../build/NEWS:15431 +#: ../../../build/NEWS:16055 msgid "" -"`bpo-24635 `__: Fixed a bug in typing.py" -" where isinstance([], typing.Iterable) would return True once, then False on" -" subsequent calls." +"`bpo-24635 `__: Fixed a bug in typing.py " +"where isinstance([], typing.Iterable) would return True once, then False on " +"subsequent calls." msgstr "" -#: ../../../build/NEWS:15434 +#: ../../../build/NEWS:16058 msgid "" -"`bpo-24989 `__: Fixed buffer overread in" -" BytesIO.readline() if a position is set beyond size. Based on patch by " -"John Leitch." +"`bpo-24989 `__: Fixed buffer overread in " +"BytesIO.readline() if a position is set beyond size. Based on patch by John " +"Leitch." msgstr "" -#: ../../../build/NEWS:15442 +#: ../../../build/NEWS:16066 msgid "Python 3.5.0 release candidate 2" msgstr "" -#: ../../../build/NEWS:15444 +#: ../../../build/NEWS:16068 msgid "*Release date: 2015-08-25*" msgstr "" -#: ../../../build/NEWS:15449 +#: ../../../build/NEWS:16073 msgid "" "`bpo-24769 `__: Interpreter now starts " "properly when dynamic loading is disabled. Patch by Petr Viktorin." msgstr "" -#: ../../../build/NEWS:15452 +#: ../../../build/NEWS:16076 msgid "" "`bpo-21167 `__: NAN operations are now " "handled correctly when python is compiled with ICC even if -fp-model strict " "is not specified." msgstr "" -#: ../../../build/NEWS:15455 +#: ../../../build/NEWS:16079 msgid "" "`bpo-24492 `__: A \"package\" lacking a " -"__name__ attribute when trying to perform a ``from .. import ...`` statement" -" will trigger an ImportError instead of an AttributeError." +"__name__ attribute when trying to perform a ``from .. import ...`` statement " +"will trigger an ImportError instead of an AttributeError." msgstr "" -#: ../../../build/NEWS:15462 +#: ../../../build/NEWS:16086 msgid "" -"`bpo-24847 `__: Removes vcruntime140.dll" -" dependency from Tcl/Tk." +"`bpo-24847 `__: Removes vcruntime140.dll " +"dependency from Tcl/Tk." msgstr "" -#: ../../../build/NEWS:15464 +#: ../../../build/NEWS:16088 msgid "" "`bpo-24839 `__: platform._syscmd_ver " "raises DeprecationWarning" msgstr "" -#: ../../../build/NEWS:15466 +#: ../../../build/NEWS:16090 msgid "" -"`bpo-24867 `__: Fix Task.get_stack() for" -" 'async def' coroutines" +"`bpo-24867 `__: Fix Task.get_stack() for " +"'async def' coroutines" msgstr "" -#: ../../../build/NEWS:15470 +#: ../../../build/NEWS:16094 msgid "Python 3.5.0 release candidate 1" msgstr "" -#: ../../../build/NEWS:15472 +#: ../../../build/NEWS:16096 msgid "*Release date: 2015-08-09*" msgstr "" -#: ../../../build/NEWS:15477 +#: ../../../build/NEWS:16101 msgid "" "`bpo-24667 `__: Resize odict in all " "cases that the underlying dict resizes." msgstr "" -#: ../../../build/NEWS:15482 +#: ../../../build/NEWS:16106 msgid "" -"`bpo-24824 `__: Signatures of " -"codecs.encode() and codecs.decode() now are compatible with pydoc." +"`bpo-24824 `__: Signatures of codecs." +"encode() and codecs.decode() now are compatible with pydoc." msgstr "" -#: ../../../build/NEWS:15485 +#: ../../../build/NEWS:16109 msgid "" "`bpo-24634 `__: Importing uuid should " "not try to load libc on Windows" msgstr "" -#: ../../../build/NEWS:15487 +#: ../../../build/NEWS:16111 msgid "" -"`bpo-24798 `__: _msvccompiler.py doesn't" -" properly support manifests" +"`bpo-24798 `__: _msvccompiler.py doesn't " +"properly support manifests" msgstr "" -#: ../../../build/NEWS:15489 +#: ../../../build/NEWS:16113 msgid "" "`bpo-4395 `__: Better testing and " "documentation of binary operators. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:15492 +#: ../../../build/NEWS:16116 msgid "" "`bpo-23973 `__: Update typing.py from " "GitHub repo." msgstr "" -#: ../../../build/NEWS:15494 +#: ../../../build/NEWS:16118 msgid "" "`bpo-23004 `__: mock_open() now reads " -"binary data correctly when the type of read_data is bytes. Initial patch by" -" Aaron Hill." +"binary data correctly when the type of read_data is bytes. Initial patch by " +"Aaron Hill." msgstr "" -#: ../../../build/NEWS:15497 +#: ../../../build/NEWS:16121 msgid "" "`bpo-23888 `__: Handle fractional time " "in cookie expiry. Patch by ssh." msgstr "" -#: ../../../build/NEWS:15499 +#: ../../../build/NEWS:16123 msgid "" "`bpo-23652 `__: Make it possible to " "compile the select module against the libc headers from the Linux Standard " "Base, which do not include some EPOLL macros. Patch by Matt Frank." msgstr "" -#: ../../../build/NEWS:15503 +#: ../../../build/NEWS:16127 msgid "" -"`bpo-22932 `__: Fix timezones in " -"email.utils.formatdate. Patch from Dmitry Shachnev." +"`bpo-22932 `__: Fix timezones in email." +"utils.formatdate. Patch from Dmitry Shachnev." msgstr "" -#: ../../../build/NEWS:15506 +#: ../../../build/NEWS:16130 msgid "" -"`bpo-23779 `__: imaplib raises TypeError" -" if authenticator tries to abort. Patch from Craig Holmquist." +"`bpo-23779 `__: imaplib raises TypeError " +"if authenticator tries to abort. Patch from Craig Holmquist." msgstr "" -#: ../../../build/NEWS:15509 +#: ../../../build/NEWS:16133 msgid "" -"`bpo-23319 `__: Fix " -"ctypes.BigEndianStructure, swap correctly bytes. Patch written by Matthieu " -"Gautier." +"`bpo-23319 `__: Fix ctypes." +"BigEndianStructure, swap correctly bytes. Patch written by Matthieu Gautier." msgstr "" -#: ../../../build/NEWS:15512 +#: ../../../build/NEWS:16136 msgid "" "`bpo-23254 `__: Document how to close " "the TCPServer listening socket. Patch from Martin Panter." msgstr "" -#: ../../../build/NEWS:15515 +#: ../../../build/NEWS:16139 msgid "" "`bpo-19450 `__: Update Windows and OS X " "installer builds to use SQLite 3.8.11." msgstr "" -#: ../../../build/NEWS:15517 +#: ../../../build/NEWS:16141 msgid "" -"`bpo-17527 `__: Add PATCH to " -"wsgiref.validator. Patch from Luca Sbardella." +"`bpo-17527 `__: Add PATCH to wsgiref." +"validator. Patch from Luca Sbardella." msgstr "" -#: ../../../build/NEWS:15519 +#: ../../../build/NEWS:16143 msgid "" "`bpo-24791 `__: Fix grammar regression " "for call syntax: 'g(\\*a or b)'." msgstr "" -#: ../../../build/NEWS:15524 +#: ../../../build/NEWS:16148 msgid "" "`bpo-23672 `__: Allow Idle to edit and " "run files with astral chars in name. Patch by Mohd Sanad Zaki Rizvi." msgstr "" -#: ../../../build/NEWS:15527 +#: ../../../build/NEWS:16151 msgid "" "`bpo-24745 `__: Idle editor default " "font. Switch from Courier to platform-sensitive TkFixedFont. This should " @@ -21455,20 +22454,20 @@ msgid "" "Window]. Patch by Mark Roseman." msgstr "" -#: ../../../build/NEWS:15533 +#: ../../../build/NEWS:16157 msgid "" -"`bpo-21192 `__: Idle editor. When a file" -" is run, put its name in the restart bar. Do not print false prompts. " +"`bpo-21192 `__: Idle editor. When a file " +"is run, put its name in the restart bar. Do not print false prompts. " "Original patch by Adnan Umer." msgstr "" -#: ../../../build/NEWS:15536 +#: ../../../build/NEWS:16160 msgid "" "`bpo-13884 `__: Idle menus. Remove " "tearoff lines. Patch by Roger Serwy." msgstr "" -#: ../../../build/NEWS:15541 +#: ../../../build/NEWS:16165 msgid "" "`bpo-24129 `__: Clarify the reference " "documentation for name resolution. This includes removing the assumption " @@ -21477,227 +22476,226 @@ msgid "" "by Ivan Levkivskyi." msgstr "" -#: ../../../build/NEWS:15546 +#: ../../../build/NEWS:16170 msgid "" "`bpo-20769 `__: Improve reload() docs. " "Patch by Dorian Pula." msgstr "" -#: ../../../build/NEWS:15548 +#: ../../../build/NEWS:16172 msgid "" "`bpo-23589 `__: Remove duplicate " "sentence from the FAQ. Patch by Yongzhi Pan." msgstr "" -#: ../../../build/NEWS:15550 +#: ../../../build/NEWS:16174 msgid "" "`bpo-24729 `__: Correct IO tutorial to " "match implementation regarding encoding parameter to open function." msgstr "" -#: ../../../build/NEWS:15556 +#: ../../../build/NEWS:16180 msgid "" "`bpo-24751 `__: When running regrtest " "with the ``-w`` command line option, a test run is no longer marked as a " "failure if all tests succeed when re-run." msgstr "" -#: ../../../build/NEWS:15562 +#: ../../../build/NEWS:16186 msgid "Python 3.5.0 beta 4" msgstr "" -#: ../../../build/NEWS:15564 +#: ../../../build/NEWS:16188 msgid "*Release date: 2015-07-26*" msgstr "" -#: ../../../build/NEWS:15569 +#: ../../../build/NEWS:16193 msgid "" -"`bpo-23573 `__: Restored optimization of" -" bytes.rfind() and bytearray.rfind() for single-byte argument on Linux." +"`bpo-23573 `__: Restored optimization of " +"bytes.rfind() and bytearray.rfind() for single-byte argument on Linux." msgstr "" -#: ../../../build/NEWS:15572 +#: ../../../build/NEWS:16196 msgid "" "`bpo-24569 `__: Make PEP 448 dictionary " "evaluation more consistent." msgstr "" -#: ../../../build/NEWS:15574 +#: ../../../build/NEWS:16198 msgid "" "`bpo-24583 `__: Fix crash when set is " "mutated while being updated." msgstr "" -#: ../../../build/NEWS:15576 +#: ../../../build/NEWS:16200 msgid "" "`bpo-24407 `__: Fix crash when dict is " "mutated while being updated." msgstr "" -#: ../../../build/NEWS:15578 +#: ../../../build/NEWS:16202 msgid "" "`bpo-24619 `__: New approach for " "tokenizing async/await. As a consequence, it is now possible to have one-" "line 'async def foo(): await ..' functions." msgstr "" -#: ../../../build/NEWS:15581 +#: ../../../build/NEWS:16205 msgid "" "`bpo-24687 `__: Plug refleak on " "SyntaxError in function parameters annotations." msgstr "" -#: ../../../build/NEWS:15583 +#: ../../../build/NEWS:16207 msgid "" "`bpo-15944 `__: memoryview: Allow " "arbitrary formats when casting to bytes. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:15589 +#: ../../../build/NEWS:16213 msgid "" "`bpo-23441 `__: rcompleter now prints a " -"tab character instead of displaying possible completions for an empty word." -" Initial patch by Martin Sekera." +"tab character instead of displaying possible completions for an empty word. " +"Initial patch by Martin Sekera." msgstr "" -#: ../../../build/NEWS:15592 +#: ../../../build/NEWS:16216 msgid "" "`bpo-24683 `__: Fixed crashes in _json " "functions called with arguments of inappropriate type." msgstr "" -#: ../../../build/NEWS:15595 +#: ../../../build/NEWS:16219 msgid "" "`bpo-21697 `__: shutil.copytree() now " "correctly handles symbolic links that point to directories. Patch by " "Eduardo Seabra and Thomas Kluyver." msgstr "" -#: ../../../build/NEWS:15598 +#: ../../../build/NEWS:16222 msgid "" -"`bpo-14373 `__: Fixed segmentation fault" -" when gc.collect() is called during constructing lru_cache (C " -"implementation)." +"`bpo-14373 `__: Fixed segmentation fault " +"when gc.collect() is called during constructing lru_cache (C implementation)." msgstr "" -#: ../../../build/NEWS:15601 +#: ../../../build/NEWS:16225 msgid "" "`bpo-24695 `__: Fix a regression in " "traceback.print_exception(). If exc_traceback is None we shouldn't print a " "traceback header like described in the documentation." msgstr "" -#: ../../../build/NEWS:15605 +#: ../../../build/NEWS:16229 msgid "" "`bpo-24620 `__: Random.setstate() now " "validates the value of state last element." msgstr "" -#: ../../../build/NEWS:15608 +#: ../../../build/NEWS:16232 msgid "" "`bpo-22485 `__: Fixed an issue that " "caused `inspect.getsource` to return incorrect results on nested functions." msgstr "" -#: ../../../build/NEWS:15611 +#: ../../../build/NEWS:16235 msgid "" "`bpo-22153 `__: Improve unittest docs. " "Patch from Martin Panter and evilzero." msgstr "" -#: ../../../build/NEWS:15613 +#: ../../../build/NEWS:16237 msgid "" "`bpo-24580 `__: Symbolic group " -"references to open group in re patterns now are explicitly forbidden as well" -" as numeric group references." +"references to open group in re patterns now are explicitly forbidden as well " +"as numeric group references." msgstr "" -#: ../../../build/NEWS:15616 +#: ../../../build/NEWS:16240 msgid "" "`bpo-24206 `__: Fixed __eq__ and __ne__ " "methods of inspect classes." msgstr "" -#: ../../../build/NEWS:15618 +#: ../../../build/NEWS:16242 msgid "" "`bpo-24631 `__: Fixed regression in the " "timeit module with multiline setup." msgstr "" -#: ../../../build/NEWS:15626 +#: ../../../build/NEWS:16250 msgid "" "`bpo-24608 `__: chunk.Chunk.read() now " "always returns bytes, not str." msgstr "" -#: ../../../build/NEWS:15628 +#: ../../../build/NEWS:16252 msgid "" -"`bpo-18684 `__: Fixed reading out of the" -" buffer in the re module." +"`bpo-18684 `__: Fixed reading out of the " +"buffer in the re module." msgstr "" -#: ../../../build/NEWS:15630 +#: ../../../build/NEWS:16254 msgid "" "`bpo-24259 `__: tarfile now raises a " "ReadError if an archive is truncated inside a data segment." msgstr "" -#: ../../../build/NEWS:15633 +#: ../../../build/NEWS:16257 msgid "" -"`bpo-15014 `__: SMTP.auth() and " -"SMTP.login() now support RFC 4954's optional initial-response argument to " -"the SMTP AUTH command." +"`bpo-15014 `__: SMTP.auth() and SMTP." +"login() now support RFC 4954's optional initial-response argument to the " +"SMTP AUTH command." msgstr "" -#: ../../../build/NEWS:15636 +#: ../../../build/NEWS:16260 msgid "" "`bpo-24669 `__: Fix inspect.getsource() " "for 'async def' functions. Patch by Kai Groner." msgstr "" -#: ../../../build/NEWS:15639 +#: ../../../build/NEWS:16263 msgid "" "`bpo-24688 `__: ast.get_docstring() for " "'async def' functions." msgstr "" -#: ../../../build/NEWS:15644 +#: ../../../build/NEWS:16268 msgid "" "`bpo-24603 `__: Update Windows builds " "and OS X 10.5 installer to use OpenSSL 1.0.2d." msgstr "" -#: ../../../build/NEWS:15649 +#: ../../../build/NEWS:16273 msgid "Python 3.5.0 beta 3" msgstr "" -#: ../../../build/NEWS:15651 +#: ../../../build/NEWS:16275 msgid "*Release date: 2015-07-05*" msgstr "" -#: ../../../build/NEWS:15656 +#: ../../../build/NEWS:16280 msgid "" "`bpo-24467 `__: Fixed possible buffer " "over-read in bytearray. The bytearray object now always allocates place for " "trailing null byte and it's buffer now is always null-terminated." msgstr "" -#: ../../../build/NEWS:15660 +#: ../../../build/NEWS:16284 msgid "Upgrade to Unicode 8.0.0." msgstr "" -#: ../../../build/NEWS:15662 +#: ../../../build/NEWS:16286 msgid "" "`bpo-24345 `__: Add Py_tp_finalize slot " "for the stable ABI." msgstr "" -#: ../../../build/NEWS:15664 +#: ../../../build/NEWS:16288 msgid "" "`bpo-24400 `__: Introduce a distinct " -"type for PEP 492 coroutines; add types.CoroutineType, " -"inspect.getcoroutinestate, inspect.getcoroutinelocals; coroutines no longer " -"use CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def' " +"type for PEP 492 coroutines; add types.CoroutineType, inspect." +"getcoroutinestate, inspect.getcoroutinelocals; coroutines no longer use " +"CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def' " "coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine, " "it's intended to test for pure 'async def' coroutines only; add new opcode: " "GET_YIELD_FROM_ITER; fix generators wrapper used in types.coroutine to be " @@ -21706,38 +22704,38 @@ msgid "" "coroutines--use inspect.isawaitable instead." msgstr "" -#: ../../../build/NEWS:15675 +#: ../../../build/NEWS:16299 msgid "" "`bpo-24450 `__: Add gi_yieldfrom to " "generators and cr_await to coroutines. Contributed by Benno Leslie and Yury " "Selivanov." msgstr "" -#: ../../../build/NEWS:15678 +#: ../../../build/NEWS:16302 msgid "" "`bpo-19235 `__: Add new RecursionError " "exception. Patch by Georg Brandl." msgstr "" -#: ../../../build/NEWS:15683 +#: ../../../build/NEWS:16307 msgid "" "`bpo-21750 `__: mock_open.read_data can " "now be read from each instance, as it could in Python 3.3." msgstr "" -#: ../../../build/NEWS:15686 +#: ../../../build/NEWS:16310 msgid "" -"`bpo-24552 `__: Fix use after free in an" -" error case of the _pickle module." +"`bpo-24552 `__: Fix use after free in an " +"error case of the _pickle module." msgstr "" -#: ../../../build/NEWS:15688 +#: ../../../build/NEWS:16312 msgid "" "`bpo-24514 `__: tarfile now tolerates " "number fields consisting of only whitespace." msgstr "" -#: ../../../build/NEWS:15691 +#: ../../../build/NEWS:16315 msgid "" "`bpo-19176 `__: Fixed doctype() related " "bugs in C implementation of ElementTree. A deprecation warning no longer " @@ -21746,92 +22744,92 @@ msgid "" "target's doctype() is called. Based on patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:15697 +#: ../../../build/NEWS:16321 msgid "" "`bpo-20387 `__: Restore semantic round-" "trip correctness in tokenize/untokenize for tab-indented blocks." msgstr "" -#: ../../../build/NEWS:15700 +#: ../../../build/NEWS:16324 msgid "" "`bpo-24456 `__: Fixed possible buffer " "over-read in adpcm2lin() and lin2adpcm() functions of the audioop module." msgstr "" -#: ../../../build/NEWS:15703 +#: ../../../build/NEWS:16327 msgid "" "`bpo-24336 `__: The contextmanager " "decorator now works with functions with keyword arguments called \"func\" " "and \"self\". Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:15706 +#: ../../../build/NEWS:16330 msgid "" "`bpo-24522 `__: Fix possible integer " "overflow in json accelerator module." msgstr "" -#: ../../../build/NEWS:15708 +#: ../../../build/NEWS:16332 msgid "" "`bpo-24489 `__: ensure a previously set " "C errno doesn't disturb cmath.polar()." msgstr "" -#: ../../../build/NEWS:15710 +#: ../../../build/NEWS:16334 msgid "" "`bpo-24408 `__: Fixed AttributeError in " "measure() and metrics() methods of tkinter.Font." msgstr "" -#: ../../../build/NEWS:15713 +#: ../../../build/NEWS:16337 msgid "" "`bpo-14373 `__: C implementation of " "functools.lru_cache() now can be used with methods." msgstr "" -#: ../../../build/NEWS:15716 +#: ../../../build/NEWS:16340 msgid "" "`bpo-24347 `__: Set KeyError if " "PyDict_GetItemWithError returns NULL." msgstr "" -#: ../../../build/NEWS:15718 +#: ../../../build/NEWS:16342 msgid "" -"`bpo-24348 `__: Drop superfluous " -"incref/decref." +"`bpo-24348 `__: Drop superfluous incref/" +"decref." msgstr "" -#: ../../../build/NEWS:15720 +#: ../../../build/NEWS:16344 msgid "" "`bpo-24359 `__: Check for changed " "OrderedDict size during iteration." msgstr "" -#: ../../../build/NEWS:15722 +#: ../../../build/NEWS:16346 msgid "" "`bpo-24368 `__: Support keyword " "arguments in OrderedDict methods." msgstr "" -#: ../../../build/NEWS:15724 +#: ../../../build/NEWS:16348 msgid "" "`bpo-24362 `__: Simplify the C " "OrderedDict fast nodes resize logic." msgstr "" -#: ../../../build/NEWS:15726 +#: ../../../build/NEWS:16350 msgid "" "`bpo-24377 `__: Fix a ref leak in " "OrderedDict.__repr__." msgstr "" -#: ../../../build/NEWS:15728 +#: ../../../build/NEWS:16352 msgid "" "`bpo-24369 `__: Defend against key-" "changes during iteration." msgstr "" -#: ../../../build/NEWS:15733 +#: ../../../build/NEWS:16357 msgid "" "`bpo-24373 `__: _testmultiphase and " "xxlimited now use tp_traverse and tp_finalize to avoid reference leaks " @@ -21839,41 +22837,41 @@ msgid "" "`__ for details)" msgstr "" -#: ../../../build/NEWS:15740 +#: ../../../build/NEWS:16364 msgid "" "`bpo-24458 `__: Update documentation to " "cover multi-phase initialization for extension modules (PEP 489). Patch by " "Petr Viktorin." msgstr "" -#: ../../../build/NEWS:15743 +#: ../../../build/NEWS:16367 msgid "" -"`bpo-24351 `__: Clarify what is meant by" -" \"identifier\" in the context of string.Template instances." +"`bpo-24351 `__: Clarify what is meant by " +"\"identifier\" in the context of string.Template instances." msgstr "" -#: ../../../build/NEWS:15749 +#: ../../../build/NEWS:16373 msgid "" "`bpo-24432 `__: Update Windows builds " "and OS X 10.5 installer to use OpenSSL 1.0.2c." msgstr "" -#: ../../../build/NEWS:15754 +#: ../../../build/NEWS:16378 msgid "Python 3.5.0 beta 2" msgstr "" -#: ../../../build/NEWS:15756 +#: ../../../build/NEWS:16380 msgid "*Release date: 2015-05-31*" msgstr "" -#: ../../../build/NEWS:15761 +#: ../../../build/NEWS:16385 msgid "" "`bpo-24284 `__: The startswith and " "endswith methods of the str class no longer return True when finding the " "empty string and the indexes are completely out of range." msgstr "" -#: ../../../build/NEWS:15765 +#: ../../../build/NEWS:16389 msgid "" "`bpo-24115 `__: Update uses of " "PyObject_IsTrue(), PyObject_Not(), PyObject_IsInstance(), " @@ -21881,243 +22879,242 @@ msgid "" "errors correctly." msgstr "" -#: ../../../build/NEWS:15769 +#: ../../../build/NEWS:16393 msgid "" "`bpo-24328 `__: Fix importing one " "character extension modules." msgstr "" -#: ../../../build/NEWS:15771 +#: ../../../build/NEWS:16395 msgid "" "`bpo-11205 `__: In dictionary displays, " "evaluate the key before the value." msgstr "" -#: ../../../build/NEWS:15773 +#: ../../../build/NEWS:16397 msgid "" "`bpo-24285 `__: Fixed regression that " "prevented importing extension modules from inside packages. Patch by Petr " "Viktorin." msgstr "" -#: ../../../build/NEWS:15779 +#: ../../../build/NEWS:16403 msgid "" "`bpo-23247 `__: Fix a crash in the " "StreamWriter.reset() of CJK codecs." msgstr "" -#: ../../../build/NEWS:15781 +#: ../../../build/NEWS:16405 msgid "" "`bpo-24270 `__: Add math.isclose() and " "cmath.isclose() functions as per PEP 485. Contributed by Chris Barker and " "Tal Einat." msgstr "" -#: ../../../build/NEWS:15784 +#: ../../../build/NEWS:16408 msgid "" "`bpo-5633 `__: Fixed timeit when the " "statement is a string and the setup is not." msgstr "" -#: ../../../build/NEWS:15787 +#: ../../../build/NEWS:16411 msgid "" "`bpo-24326 `__: Fixed audioop.ratecv() " "with non-default weightB argument. Original patch by David Moore." msgstr "" -#: ../../../build/NEWS:15790 +#: ../../../build/NEWS:16414 msgid "" "`bpo-16991 `__: Add a C implementation " "of OrderedDict." msgstr "" -#: ../../../build/NEWS:15792 +#: ../../../build/NEWS:16416 msgid "" -"`bpo-23934 `__: Fix inspect.signature to" -" fail correctly for builtin types lacking signature information. Initial " +"`bpo-23934 `__: Fix inspect.signature to " +"fail correctly for builtin types lacking signature information. Initial " "patch by James Powell." msgstr "" -#: ../../../build/NEWS:15797 +#: ../../../build/NEWS:16421 msgid "Python 3.5.0 beta 1" msgstr "" -#: ../../../build/NEWS:15799 +#: ../../../build/NEWS:16423 msgid "*Release date: 2015-05-24*" msgstr "" -#: ../../../build/NEWS:15804 +#: ../../../build/NEWS:16428 msgid "" "`bpo-24276 `__: Fixed optimization of " "property descriptor getter." msgstr "" -#: ../../../build/NEWS:15806 +#: ../../../build/NEWS:16430 msgid "" "`bpo-24268 `__: PEP 489: Multi-phase " "extension module initialization. Patch by Petr Viktorin." msgstr "" -#: ../../../build/NEWS:15809 +#: ../../../build/NEWS:16433 msgid "" -"`bpo-23955 `__: Add pyvenv.cfg option to" -" suppress registry/environment lookup for generating sys.path on Windows." +"`bpo-23955 `__: Add pyvenv.cfg option to " +"suppress registry/environment lookup for generating sys.path on Windows." msgstr "" -#: ../../../build/NEWS:15812 +#: ../../../build/NEWS:16436 msgid "" "`bpo-24257 `__: Fixed system error in " "the comparison of faked types.SimpleNamespace." msgstr "" -#: ../../../build/NEWS:15815 +#: ../../../build/NEWS:16439 msgid "" "`bpo-22939 `__: Fixed integer overflow " "in iterator object. Patch by Clement Rouault." msgstr "" -#: ../../../build/NEWS:15818 +#: ../../../build/NEWS:16442 msgid "" "`bpo-23985 `__: Fix a possible buffer " "overrun when deleting a slice from the front of a bytearray and then " "appending some other bytes data." msgstr "" -#: ../../../build/NEWS:15821 +#: ../../../build/NEWS:16445 msgid "" "`bpo-24102 `__: Fixed exception type " "checking in standard error handlers." msgstr "" -#: ../../../build/NEWS:15823 +#: ../../../build/NEWS:16447 msgid "" "`bpo-15027 `__: The UTF-32 encoder is " "now 3x to 7x faster." msgstr "" -#: ../../../build/NEWS:15825 +#: ../../../build/NEWS:16449 msgid "" -"`bpo-23290 `__: Optimize set_merge() for" -" cases where the target is empty. (Contributed by Serhiy Storchaka.)" +"`bpo-23290 `__: Optimize set_merge() for " +"cases where the target is empty. (Contributed by Serhiy Storchaka.)" msgstr "" -#: ../../../build/NEWS:15828 +#: ../../../build/NEWS:16452 msgid "" "`bpo-2292 `__: PEP 448: Additional " "Unpacking Generalizations." msgstr "" -#: ../../../build/NEWS:15830 +#: ../../../build/NEWS:16454 msgid "" -"`bpo-24096 `__: Make " -"warnings.warn_explicit more robust against mutation of the warnings.filters " -"list." +"`bpo-24096 `__: Make warnings." +"warn_explicit more robust against mutation of the warnings.filters list." msgstr "" -#: ../../../build/NEWS:15833 +#: ../../../build/NEWS:16457 msgid "" "`bpo-23996 `__: Avoid a crash when a " "delegated generator raises an unnormalized StopIteration exception. Patch " "by Stefan Behnel." msgstr "" -#: ../../../build/NEWS:15836 +#: ../../../build/NEWS:16460 msgid "" "`bpo-23910 `__: Optimize property() " "getter calls. Patch by Joe Jevnik." msgstr "" -#: ../../../build/NEWS:15838 +#: ../../../build/NEWS:16462 msgid "" "`bpo-23911 `__: Move path-based " "importlib bootstrap code to a separate frozen module." msgstr "" -#: ../../../build/NEWS:15841 +#: ../../../build/NEWS:16465 msgid "" "`bpo-24192 `__: Fix namespace package " "imports." msgstr "" -#: ../../../build/NEWS:15843 +#: ../../../build/NEWS:16467 msgid "" -"`bpo-24022 `__: Fix tokenizer crash when" -" processing undecodable source code." +"`bpo-24022 `__: Fix tokenizer crash when " +"processing undecodable source code." msgstr "" -#: ../../../build/NEWS:15845 +#: ../../../build/NEWS:16469 msgid "" "`bpo-9951 `__: Added a hex() method to " "bytes, bytearray, and memoryview." msgstr "" -#: ../../../build/NEWS:15847 +#: ../../../build/NEWS:16471 msgid "" "`bpo-22906 `__: PEP 479: Change " "StopIteration handling inside generators." msgstr "" -#: ../../../build/NEWS:15849 +#: ../../../build/NEWS:16473 msgid "" -"`bpo-24017 `__: PEP 492: Coroutines with" -" async and await syntax." +"`bpo-24017 `__: PEP 492: Coroutines with " +"async and await syntax." msgstr "" -#: ../../../build/NEWS:15854 +#: ../../../build/NEWS:16478 msgid "" "`bpo-14373 `__: Added C implementation " "of functools.lru_cache(). Based on patches by Matt Joiner and Alexey " "Kachayev." msgstr "" -#: ../../../build/NEWS:15857 +#: ../../../build/NEWS:16481 msgid "" "`bpo-24230 `__: The tempfile module now " "accepts bytes for prefix, suffix and dir parameters and returns bytes in " "such situations (matching the os module APIs)." msgstr "" -#: ../../../build/NEWS:15861 +#: ../../../build/NEWS:16485 msgid "" "`bpo-22189 `__: collections.UserString " "now supports __getnewargs__(), __rmod__(), casefold(), format_map(), " "isprintable(), and maketrans(). Patch by Joe Jevnik." msgstr "" -#: ../../../build/NEWS:15865 +#: ../../../build/NEWS:16489 msgid "" "`bpo-24244 `__: Prevents termination " "when an invalid format string is encountered on Windows in strftime." msgstr "" -#: ../../../build/NEWS:15868 +#: ../../../build/NEWS:16492 msgid "" "`bpo-23973 `__: PEP 484: Add the typing " "module." msgstr "" -#: ../../../build/NEWS:15870 +#: ../../../build/NEWS:16494 msgid "" -"`bpo-23086 `__: The " -"collections.abc.Sequence() abstract base class added *start* and *stop* " -"parameters to the index() mixin. Patch by Devin Jeanpierre." +"`bpo-23086 `__: The collections.abc." +"Sequence() abstract base class added *start* and *stop* parameters to the " +"index() mixin. Patch by Devin Jeanpierre." msgstr "" -#: ../../../build/NEWS:15874 +#: ../../../build/NEWS:16498 msgid "" -"`bpo-20035 `__: Replaced the " -"``tkinter._fix`` module used for setting up the Tcl/Tk environment on " -"Windows with a private function in the ``_tkinter`` module that makes no " -"permanent changes to the environment." +"`bpo-20035 `__: Replaced the ``tkinter." +"_fix`` module used for setting up the Tcl/Tk environment on Windows with a " +"private function in the ``_tkinter`` module that makes no permanent changes " +"to the environment." msgstr "" -#: ../../../build/NEWS:15878 +#: ../../../build/NEWS:16502 msgid "" -"`bpo-24257 `__: Fixed segmentation fault" -" in sqlite3.Row constructor with faked cursor type." +"`bpo-24257 `__: Fixed segmentation fault " +"in sqlite3.Row constructor with faked cursor type." msgstr "" -#: ../../../build/NEWS:15881 +#: ../../../build/NEWS:16505 msgid "" "`bpo-15836 `__: assertRaises(), " "assertRaisesRegex(), assertWarns() and assertWarnsRegex() assertments now " @@ -22125,21 +23122,21 @@ msgid "" "on patch by Daniel Wagner-Hall." msgstr "" -#: ../../../build/NEWS:15885 +#: ../../../build/NEWS:16509 msgid "" "`bpo-9858 `__: Add missing method stubs " "to _io.RawIOBase. Patch by Laura Rupprecht." msgstr "" -#: ../../../build/NEWS:15888 +#: ../../../build/NEWS:16512 msgid "" "`bpo-22955 `__: attrgetter, itemgetter " -"and methodcaller objects in the operator module now support pickling. Added" -" readable and evaluable repr for these objects. Based on patch by Josh " +"and methodcaller objects in the operator module now support pickling. Added " +"readable and evaluable repr for these objects. Based on patch by Josh " "Rosenberg." msgstr "" -#: ../../../build/NEWS:15892 +#: ../../../build/NEWS:16516 msgid "" "`bpo-22107 `__: tempfile.gettempdir() " "and tempfile.mkdtemp() now try again when a directory with the chosen name " @@ -22147,406 +23144,405 @@ msgid "" "early if parent directory is not valid (not exists or is a file) on Windows." msgstr "" -#: ../../../build/NEWS:15897 +#: ../../../build/NEWS:16521 msgid "" "`bpo-23780 `__: Improved error message " "in os.path.join() with single argument." msgstr "" -#: ../../../build/NEWS:15899 +#: ../../../build/NEWS:16523 msgid "" "`bpo-6598 `__: Increased time precision " "and random number range in email.utils.make_msgid() to strengthen the " "uniqueness of the message ID." msgstr "" -#: ../../../build/NEWS:15902 +#: ../../../build/NEWS:16526 msgid "" -"`bpo-24091 `__: Fixed various crashes in" -" corner cases in C implementation of ElementTree." +"`bpo-24091 `__: Fixed various crashes in " +"corner cases in C implementation of ElementTree." msgstr "" -#: ../../../build/NEWS:15905 +#: ../../../build/NEWS:16529 msgid "" "`bpo-21931 `__: msilib.FCICreate() now " "raises TypeError in the case of a bad argument instead of a ValueError with " "a bogus FCI error number. Patch by Jeffrey Armstrong." msgstr "" -#: ../../../build/NEWS:15909 +#: ../../../build/NEWS:16533 msgid "" "`bpo-13866 `__: *quote_via* argument " "added to urllib.parse.urlencode." msgstr "" -#: ../../../build/NEWS:15911 +#: ../../../build/NEWS:16535 msgid "" "`bpo-20098 `__: New mangle_from policy " "option for email, default True for compat32, but False for all other " "policies." msgstr "" -#: ../../../build/NEWS:15914 +#: ../../../build/NEWS:16538 msgid "" "`bpo-24211 `__: The email library now " "supports RFC 6532: it can generate headers using utf-8 instead of encoded " "words." msgstr "" -#: ../../../build/NEWS:15917 +#: ../../../build/NEWS:16541 msgid "" "`bpo-16314 `__: Added support for the " "LZMA compression in distutils." msgstr "" -#: ../../../build/NEWS:15919 +#: ../../../build/NEWS:16543 msgid "" "`bpo-21804 `__: poplib now supports RFC " "6856 (UTF8)." msgstr "" -#: ../../../build/NEWS:15921 +#: ../../../build/NEWS:16545 msgid "" "`bpo-18682 `__: Optimized pprint " "functions for builtin scalar types." msgstr "" -#: ../../../build/NEWS:15923 +#: ../../../build/NEWS:16547 msgid "" -"`bpo-22027 `__: smtplib now supports RFC" -" 6531 (SMTPUTF8)." +"`bpo-22027 `__: smtplib now supports RFC " +"6531 (SMTPUTF8)." msgstr "" -#: ../../../build/NEWS:15925 +#: ../../../build/NEWS:16549 msgid "" -"`bpo-23488 `__: Random generator objects" -" now consume 2x less memory on 64-bit." +"`bpo-23488 `__: Random generator objects " +"now consume 2x less memory on 64-bit." msgstr "" -#: ../../../build/NEWS:15927 +#: ../../../build/NEWS:16551 msgid "" "`bpo-1322 `__: platform.dist() and " "platform.linux_distribution() functions are now deprecated. Initial patch " "by Vajrasky Kok." msgstr "" -#: ../../../build/NEWS:15930 +#: ../../../build/NEWS:16554 msgid "" "`bpo-22486 `__: Added the math.gcd() " "function. The fractions.gcd() function now is deprecated. Based on patch " "by Mark Dickinson." msgstr "" -#: ../../../build/NEWS:15933 +#: ../../../build/NEWS:16557 msgid "" "`bpo-24064 `__: Property() docstrings " "are now writeable. (Patch by Berker Peksag.)" msgstr "" -#: ../../../build/NEWS:15936 +#: ../../../build/NEWS:16560 msgid "" "`bpo-22681 `__: Added support for the " "koi8_t encoding." msgstr "" -#: ../../../build/NEWS:15938 +#: ../../../build/NEWS:16562 msgid "" "`bpo-22682 `__: Added support for the " "kz1048 encoding." msgstr "" -#: ../../../build/NEWS:15940 +#: ../../../build/NEWS:16564 msgid "" "`bpo-23796 `__: peek and read1 methods " "of BufferedReader now raise ValueError if they called on a closed object. " "Patch by John Hergenroeder." msgstr "" -#: ../../../build/NEWS:15943 +#: ../../../build/NEWS:16567 msgid "" "`bpo-21795 `__: smtpd now supports the " "8BITMIME extension whenever the new *decode_data* constructor argument is " "set to False." msgstr "" -#: ../../../build/NEWS:15946 +#: ../../../build/NEWS:16570 msgid "" -"`bpo-24155 `__: optimize heapq.heapify()" -" for better cache performance when heapifying large lists." +"`bpo-24155 `__: optimize heapq.heapify() " +"for better cache performance when heapifying large lists." msgstr "" -#: ../../../build/NEWS:15949 +#: ../../../build/NEWS:16573 msgid "" -"`bpo-21800 `__: imaplib now supports RFC" -" 5161 (enable), RFC 6855 (utf8/internationalized email) and automatically " +"`bpo-21800 `__: imaplib now supports RFC " +"5161 (enable), RFC 6855 (utf8/internationalized email) and automatically " "encodes non-ASCII usernames and passwords to UTF8." msgstr "" -#: ../../../build/NEWS:15953 +#: ../../../build/NEWS:16577 msgid "" -"`bpo-20274 `__: When calling a " -"_sqlite.Connection, it now complains if passed any keyword arguments. " -"Previously it silently ignored them." +"`bpo-20274 `__: When calling a _sqlite." +"Connection, it now complains if passed any keyword arguments. Previously it " +"silently ignored them." msgstr "" -#: ../../../build/NEWS:15956 +#: ../../../build/NEWS:16580 msgid "" "`bpo-20274 `__: Remove ignored and " -"erroneous \"kwargs\" parameters from three METH_VARARGS methods on " -"_sqlite.Connection." +"erroneous \"kwargs\" parameters from three METH_VARARGS methods on _sqlite." +"Connection." msgstr "" -#: ../../../build/NEWS:15959 +#: ../../../build/NEWS:16583 msgid "" "`bpo-24134 `__: assertRaises(), " -"assertRaisesRegex(), assertWarns() and assertWarnsRegex() checks now emits a" -" deprecation warning when callable is None or keyword arguments except msg " -"is passed in the context manager mode." +"assertRaisesRegex(), assertWarns() and assertWarnsRegex() checks now emits a " +"deprecation warning when callable is None or keyword arguments except msg is " +"passed in the context manager mode." msgstr "" -#: ../../../build/NEWS:15964 +#: ../../../build/NEWS:16588 msgid "" -"`bpo-24018 `__: Add a " -"collections.abc.Generator abstract base class. Contributed by Stefan Behnel." +"`bpo-24018 `__: Add a collections.abc." +"Generator abstract base class. Contributed by Stefan Behnel." msgstr "" -#: ../../../build/NEWS:15967 +#: ../../../build/NEWS:16591 msgid "" "`bpo-23880 `__: Tkinter's getint() and " "getdouble() now support Tcl_Obj. Tkinter's getdouble() now supports any " "numbers (in particular int)." msgstr "" -#: ../../../build/NEWS:15970 +#: ../../../build/NEWS:16594 msgid "" "`bpo-22619 `__: Added negative limit " "support in the traceback module. Based on patch by Dmitry Kazakov." msgstr "" -#: ../../../build/NEWS:15973 +#: ../../../build/NEWS:16597 msgid "" "`bpo-24094 `__: Fix possible crash in " "json.encode with poorly behaved dict subclasses." msgstr "" -#: ../../../build/NEWS:15976 +#: ../../../build/NEWS:16600 msgid "" "`bpo-9246 `__: On POSIX, os.getcwd() now " "supports paths longer than 1025 bytes. Patch written by William Orr." msgstr "" -#: ../../../build/NEWS:15979 +#: ../../../build/NEWS:16603 msgid "" -"`bpo-17445 `__: add difflib.diff_bytes()" -" to support comparison of byte strings (fixes a regression from Python 2)." +"`bpo-17445 `__: add difflib.diff_bytes() " +"to support comparison of byte strings (fixes a regression from Python 2)." msgstr "" -#: ../../../build/NEWS:15982 +#: ../../../build/NEWS:16606 msgid "" "`bpo-23917 `__: Fall back to sequential " "compilation when ProcessPoolExecutor doesn't exist. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:15985 +#: ../../../build/NEWS:16609 msgid "" "`bpo-23008 `__: Fixed resolving " "attributes with boolean value is False in pydoc." msgstr "" -#: ../../../build/NEWS:15988 +#: ../../../build/NEWS:16612 msgid "" "Fix asyncio issue 235: LifoQueue and PriorityQueue's put didn't increment " -"unfinished tasks (this bug was introduced when JoinableQueue was merged with" -" Queue)." +"unfinished tasks (this bug was introduced when JoinableQueue was merged with " +"Queue)." msgstr "" -#: ../../../build/NEWS:15992 +#: ../../../build/NEWS:16616 msgid "" "`bpo-23908 `__: os functions now reject " -"paths with embedded null character on Windows instead of silently truncating" -" them." +"paths with embedded null character on Windows instead of silently truncating " +"them." msgstr "" -#: ../../../build/NEWS:15995 +#: ../../../build/NEWS:16619 msgid "" -"`bpo-23728 `__: binascii.crc_hqx() could" -" return an integer outside of the range 0-0xffff for empty data." +"`bpo-23728 `__: binascii.crc_hqx() could " +"return an integer outside of the range 0-0xffff for empty data." msgstr "" -#: ../../../build/NEWS:15998 +#: ../../../build/NEWS:16622 msgid "" "`bpo-23887 `__: urllib.error.HTTPError " "now has a proper repr() representation. Patch by Berker Peksag." msgstr "" -#: ../../../build/NEWS:16001 +#: ../../../build/NEWS:16625 msgid "" "asyncio: New event loop APIs: set_task_factory() and get_task_factory()." msgstr "" -#: ../../../build/NEWS:16003 +#: ../../../build/NEWS:16627 msgid "asyncio: async() function is deprecated in favour of ensure_future()." msgstr "" -#: ../../../build/NEWS:16005 +#: ../../../build/NEWS:16629 msgid "" -"`bpo-24178 `__: asyncio.Lock, Condition," -" Semaphore, and BoundedSemaphore support new 'async with' syntax. " +"`bpo-24178 `__: asyncio.Lock, Condition, " +"Semaphore, and BoundedSemaphore support new 'async with' syntax. " "Contributed by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:16008 +#: ../../../build/NEWS:16632 msgid "" "`bpo-24179 `__: Support 'async for' for " "asyncio.StreamReader. Contributed by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:16011 +#: ../../../build/NEWS:16635 msgid "" "`bpo-24184 `__: Add AsyncIterator and " "AsyncIterable ABCs to collections.abc. Contributed by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:16014 +#: ../../../build/NEWS:16638 msgid "" "`bpo-22547 `__: Implement informative " "__repr__ for inspect.BoundArguments. Contributed by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:16017 +#: ../../../build/NEWS:16641 msgid "" -"`bpo-24190 `__: Implement " -"inspect.BoundArgument.apply_defaults() method. Contributed by Yury " -"Selivanov." +"`bpo-24190 `__: Implement inspect." +"BoundArgument.apply_defaults() method. Contributed by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:16020 +#: ../../../build/NEWS:16644 msgid "" "`bpo-20691 `__: Add 'follow_wrapped' " "argument to inspect.Signature.from_callable() and inspect.signature(). " "Contributed by Yury Selivanov." msgstr "" -#: ../../../build/NEWS:16024 +#: ../../../build/NEWS:16648 msgid "" -"`bpo-24248 `__: Deprecate " -"inspect.Signature.from_function() and inspect.Signature.from_builtin()." +"`bpo-24248 `__: Deprecate inspect." +"Signature.from_function() and inspect.Signature.from_builtin()." msgstr "" -#: ../../../build/NEWS:16027 +#: ../../../build/NEWS:16651 msgid "" -"`bpo-23898 `__: Fix " -"inspect.classify_class_attrs() to support attributes with overloaded __eq__ " -"and __bool__. Patch by Mike Bayer." +"`bpo-23898 `__: Fix inspect." +"classify_class_attrs() to support attributes with overloaded __eq__ and " +"__bool__. Patch by Mike Bayer." msgstr "" -#: ../../../build/NEWS:16030 +#: ../../../build/NEWS:16654 msgid "" "`bpo-24298 `__: Fix inspect.signature() " "to correctly unwrap wrappers around bound methods." msgstr "" -#: ../../../build/NEWS:16036 +#: ../../../build/NEWS:16660 msgid "" "`bpo-23184 `__: remove unused names and " "imports in idlelib. Initial patch by Al Sweigart." msgstr "" -#: ../../../build/NEWS:16042 +#: ../../../build/NEWS:16666 msgid "" "`bpo-21520 `__: test_zipfile no longer " "fails if the word 'bad' appears anywhere in the name of the current " "directory." msgstr "" -#: ../../../build/NEWS:16045 +#: ../../../build/NEWS:16669 msgid "" "`bpo-9517 `__: Move script_helper into " "the support package. Patch by Christie Wilson." msgstr "" -#: ../../../build/NEWS:16051 +#: ../../../build/NEWS:16675 msgid "" "`bpo-22155 `__: Add File Handlers " "subsection with createfilehandler to tkinter doc. Remove obsolete example " "from FAQ. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:16054 +#: ../../../build/NEWS:16678 msgid "" "`bpo-24029 `__: Document the name " "binding behavior for submodule imports." msgstr "" -#: ../../../build/NEWS:16056 +#: ../../../build/NEWS:16680 msgid "" -"`bpo-24077 `__: Fix typo in man page for" -" -I command option: -s, not -S" +"`bpo-24077 `__: Fix typo in man page for " +"-I command option: -s, not -S" msgstr "" -#: ../../../build/NEWS:16061 +#: ../../../build/NEWS:16685 msgid "" "`bpo-24000 `__: Improved Argument " "Clinic's mapping of converters to legacy \"format units\". Updated the " "documentation to match." msgstr "" -#: ../../../build/NEWS:16064 +#: ../../../build/NEWS:16688 msgid "" "`bpo-24001 `__: Argument Clinic " "converters now use accept={type} instead of types={'type'} to specify the " "types the converter accepts." msgstr "" -#: ../../../build/NEWS:16067 +#: ../../../build/NEWS:16691 msgid "" "`bpo-23330 `__: h2py now supports " "arbitrary filenames in #include." msgstr "" -#: ../../../build/NEWS:16069 +#: ../../../build/NEWS:16693 msgid "" "`bpo-24031 `__: make patchcheck now " "supports git checkouts, too." msgstr "" -#: ../../../build/NEWS:16073 +#: ../../../build/NEWS:16697 msgid "Python 3.5.0 alpha 4" msgstr "" -#: ../../../build/NEWS:16075 +#: ../../../build/NEWS:16699 msgid "*Release date: 2015-04-19*" msgstr "" -#: ../../../build/NEWS:16080 +#: ../../../build/NEWS:16704 msgid "" -"`bpo-22980 `__: Under Linux, " -"GNU/KFreeBSD and the Hurd, C extensions now include the architecture triplet" -" in the extension name, to make it easy to test builds for different ABIs in" -" the same working tree. Under OS X, the extension name now includes PEP " -"3149-style information." +"`bpo-22980 `__: Under Linux, GNU/" +"KFreeBSD and the Hurd, C extensions now include the architecture triplet in " +"the extension name, to make it easy to test builds for different ABIs in the " +"same working tree. Under OS X, the extension name now includes PEP 3149-" +"style information." msgstr "" -#: ../../../build/NEWS:16085 +#: ../../../build/NEWS:16709 msgid "" "`bpo-22631 `__: Added Linux-specific " "socket constant CAN_RAW_FD_FRAMES. Patch courtesy of Joe Jevnik." msgstr "" -#: ../../../build/NEWS:16088 +#: ../../../build/NEWS:16712 msgid "" "`bpo-23731 `__: Implement PEP 488: " "removal of .pyo files." msgstr "" -#: ../../../build/NEWS:16090 +#: ../../../build/NEWS:16714 msgid "" -"`bpo-23726 `__: Don't enable GC for user" -" subclasses of non-GC types that don't add any new fields. Patch by Eugene " +"`bpo-23726 `__: Don't enable GC for user " +"subclasses of non-GC types that don't add any new fields. Patch by Eugene " "Toder." msgstr "" -#: ../../../build/NEWS:16093 +#: ../../../build/NEWS:16717 msgid "" "`bpo-23309 `__: Avoid a deadlock at " "shutdown if a daemon thread is aborted while it is holding a lock to a " @@ -22554,133 +23550,132 @@ msgid "" "(typically stdout or stderr). A fatal error is emitted instead." msgstr "" -#: ../../../build/NEWS:16098 +#: ../../../build/NEWS:16722 msgid "" -"`bpo-22977 `__: Fixed formatting Windows" -" error messages on Wine. Patch by Martin Panter." +"`bpo-22977 `__: Fixed formatting Windows " +"error messages on Wine. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:16101 +#: ../../../build/NEWS:16725 msgid "" "`bpo-23466 `__: %c, %o, %x, and %X in " "bytes formatting now raise TypeError on non-integer input." msgstr "" -#: ../../../build/NEWS:16104 +#: ../../../build/NEWS:16728 msgid "" "`bpo-24044 `__: Fix possible null " "pointer dereference in list.sort in out of memory conditions." msgstr "" -#: ../../../build/NEWS:16107 +#: ../../../build/NEWS:16731 msgid "" -"`bpo-21354 `__: PyCFunction_New function" -" is exposed by python DLL again." +"`bpo-21354 `__: PyCFunction_New function " +"is exposed by python DLL again." msgstr "" -#: ../../../build/NEWS:16112 +#: ../../../build/NEWS:16736 msgid "" "`bpo-23840 `__: tokenize.open() now " "closes the temporary binary file on error to fix a resource warning." msgstr "" -#: ../../../build/NEWS:16115 +#: ../../../build/NEWS:16739 msgid "" "`bpo-16914 `__: new debuglevel 2 in " "smtplib adds timestamps to debug output." msgstr "" -#: ../../../build/NEWS:16117 +#: ../../../build/NEWS:16741 msgid "" "`bpo-7159 `__: urllib.request now " "supports sending auth credentials automatically after the first 401. This " -"enhancement is a superset of the enhancement from `bpo-19494 " -"`__ and supersedes that change." +"enhancement is a superset of the enhancement from `bpo-19494 `__ and supersedes that change." msgstr "" -#: ../../../build/NEWS:16121 +#: ../../../build/NEWS:16745 msgid "" "`bpo-23703 `__: Fix a regression in " "urljoin() introduced in 901e4e52b20a. Patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:16124 +#: ../../../build/NEWS:16748 msgid "" -"`bpo-4254 `__: Adds " -"_curses.update_lines_cols(). Patch by Arnon Yaari" +"`bpo-4254 `__: Adds _curses." +"update_lines_cols(). Patch by Arnon Yaari" msgstr "" -#: ../../../build/NEWS:16126 +#: ../../../build/NEWS:16750 msgid "" -"`bpo-19933 `__: Provide default argument" -" for ndigits in round. Patch by Vajrasky Kok." +"`bpo-19933 `__: Provide default argument " +"for ndigits in round. Patch by Vajrasky Kok." msgstr "" -#: ../../../build/NEWS:16129 +#: ../../../build/NEWS:16753 msgid "" "`bpo-23193 `__: Add a numeric_owner " "parameter to tarfile.TarFile.extract and tarfile.TarFile.extractall. Patch " "by Michael Vogt and Eric Smith." msgstr "" -#: ../../../build/NEWS:16132 +#: ../../../build/NEWS:16756 msgid "" "`bpo-23342 `__: Add a subprocess.run() " "function than returns a CalledProcess instance for a more consistent API " "than the existing call* functions." msgstr "" -#: ../../../build/NEWS:16135 +#: ../../../build/NEWS:16759 msgid "" -"`bpo-21217 `__: inspect.getsourcelines()" -" now tries to compute the start and end lines from the code object, fixing " -"an issue when a lambda function is used as decorator argument. Patch by " -"Thomas Ballinger and Allison Kaptur." +"`bpo-21217 `__: inspect.getsourcelines() " +"now tries to compute the start and end lines from the code object, fixing an " +"issue when a lambda function is used as decorator argument. Patch by Thomas " +"Ballinger and Allison Kaptur." msgstr "" -#: ../../../build/NEWS:16139 +#: ../../../build/NEWS:16763 msgid "" "`bpo-24521 `__: Fix possible integer " "overflows in the pickle module." msgstr "" -#: ../../../build/NEWS:16141 +#: ../../../build/NEWS:16765 msgid "" "`bpo-22931 `__: Allow '[' and ']' in " "cookie values." msgstr "" -#: ../../../build/NEWS:16143 -msgid "" -"The keywords attribute of functools.partial is now always a dictionary." +#: ../../../build/NEWS:16767 +msgid "The keywords attribute of functools.partial is now always a dictionary." msgstr "" -#: ../../../build/NEWS:16145 +#: ../../../build/NEWS:16769 msgid "" "`bpo-23811 `__: Add missing newline to " "the PyCompileError error message. Patch by Alex Shkop." msgstr "" -#: ../../../build/NEWS:16148 +#: ../../../build/NEWS:16772 msgid "" "`bpo-21116 `__: Avoid blowing memory " -"when allocating a multiprocessing shared array that's larger than 50% of the" -" available RAM. Patch by Médéric Boquien." +"when allocating a multiprocessing shared array that's larger than 50% of the " +"available RAM. Patch by Médéric Boquien." msgstr "" -#: ../../../build/NEWS:16152 +#: ../../../build/NEWS:16776 msgid "" "`bpo-22982 `__: Improve BOM handling " "when seeking to multiple positions of a writable text file." msgstr "" -#: ../../../build/NEWS:16155 +#: ../../../build/NEWS:16779 msgid "" "`bpo-23464 `__: Removed deprecated " "asyncio JoinableQueue." msgstr "" -#: ../../../build/NEWS:16157 +#: ../../../build/NEWS:16781 msgid "" "`bpo-23529 `__: Limit the size of " "decompressed data when reading from GzipFile, BZ2File or LZMAFile. This " @@ -22689,164 +23684,164 @@ msgid "" "Nikolaus Rath." msgstr "" -#: ../../../build/NEWS:16162 +#: ../../../build/NEWS:16786 msgid "" "`bpo-21859 `__: Added Python " "implementation of io.FileIO." msgstr "" -#: ../../../build/NEWS:16164 +#: ../../../build/NEWS:16788 msgid "" "`bpo-23865 `__: close() methods in " "multiple modules now are idempotent and more robust at shutdown. If they " "need to release multiple resources, all are released even if errors occur." msgstr "" -#: ../../../build/NEWS:16168 +#: ../../../build/NEWS:16792 msgid "" "`bpo-23400 `__: Raise same exception on " "both Python 2 and 3 if sem_open is not available. Patch by Davin Potts." msgstr "" -#: ../../../build/NEWS:16171 +#: ../../../build/NEWS:16795 msgid "" "`bpo-10838 `__: The subprocess now " "module includes SubprocessError and TimeoutError in its list of exported " "names for the users wild enough to use ``from subprocess import *``." msgstr "" -#: ../../../build/NEWS:16175 +#: ../../../build/NEWS:16799 msgid "" "`bpo-23411 `__: Added DefragResult, " "ParseResult, SplitResult, DefragResultBytes, ParseResultBytes, and " "SplitResultBytes to urllib.parse.__all__. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:16179 +#: ../../../build/NEWS:16803 msgid "" -"`bpo-23881 `__: " -"urllib.request.ftpwrapper constructor now closes the socket if the FTP " -"connection failed to fix a ResourceWarning." +"`bpo-23881 `__: urllib.request." +"ftpwrapper constructor now closes the socket if the FTP connection failed to " +"fix a ResourceWarning." msgstr "" -#: ../../../build/NEWS:16182 +#: ../../../build/NEWS:16806 msgid "" -"`bpo-23853 `__: " -":meth:`socket.socket.sendall` does no more reset the socket timeout each " -"time data is sent successfully. The socket timeout is now the maximum total " -"duration to send all data." +"`bpo-23853 `__: :meth:`socket.socket." +"sendall` does no more reset the socket timeout each time data is sent " +"successfully. The socket timeout is now the maximum total duration to send " +"all data." msgstr "" -#: ../../../build/NEWS:16186 +#: ../../../build/NEWS:16810 msgid "" "`bpo-22721 `__: An order of multiline " -"pprint output of set or dict containing orderable and non-orderable elements" -" no longer depends on iteration order of set or dict." +"pprint output of set or dict containing orderable and non-orderable elements " +"no longer depends on iteration order of set or dict." msgstr "" -#: ../../../build/NEWS:16190 +#: ../../../build/NEWS:16814 msgid "" -"`bpo-15133 `__: " -"_tkinter.tkapp.getboolean() now supports Tcl_Obj and always returns bool. " -"tkinter.BooleanVar now validates input values (accepted bool, int, str, and " +"`bpo-15133 `__: _tkinter.tkapp." +"getboolean() now supports Tcl_Obj and always returns bool. tkinter." +"BooleanVar now validates input values (accepted bool, int, str, and " "Tcl_Obj). tkinter.BooleanVar.get() now always returns bool." msgstr "" -#: ../../../build/NEWS:16195 +#: ../../../build/NEWS:16819 msgid "" "`bpo-10590 `__: xml.sax.parseString() " "now supports string argument." msgstr "" -#: ../../../build/NEWS:16197 +#: ../../../build/NEWS:16821 msgid "" "`bpo-23338 `__: Fixed formatting ctypes " "error messages on Cygwin. Patch by Makoto Kato." msgstr "" -#: ../../../build/NEWS:16200 +#: ../../../build/NEWS:16824 msgid "" "`bpo-15582 `__: inspect.getdoc() now " "follows inheritance chains." msgstr "" -#: ../../../build/NEWS:16202 +#: ../../../build/NEWS:16826 msgid "" "`bpo-2175 `__: SAX parsers now support a " "character stream of InputSource object." msgstr "" -#: ../../../build/NEWS:16205 +#: ../../../build/NEWS:16829 msgid "" -"`bpo-16840 `__: Tkinter now supports " -"64-bit integers added in Tcl 8.4 and arbitrary precision integers added in " -"Tcl 8.5." +"`bpo-16840 `__: Tkinter now supports 64-" +"bit integers added in Tcl 8.4 and arbitrary precision integers added in Tcl " +"8.5." msgstr "" -#: ../../../build/NEWS:16208 +#: ../../../build/NEWS:16832 msgid "" -"`bpo-23834 `__: Fix socket.sendto(), use" -" the C Py_ssize_t type to store the result of sendto() instead of the C int " +"`bpo-23834 `__: Fix socket.sendto(), use " +"the C Py_ssize_t type to store the result of sendto() instead of the C int " "type." msgstr "" -#: ../../../build/NEWS:16211 +#: ../../../build/NEWS:16835 msgid "" -"`bpo-23618 `__: " -":meth:`socket.socket.connect` now waits until the connection completes " -"instead of raising :exc:`InterruptedError` if the connection is interrupted " -"by signals, signal handlers don't raise an exception and the socket is " -"blocking or has a timeout. :meth:`socket.socket.connect` still raise " -":exc:`InterruptedError` for non-blocking sockets." +"`bpo-23618 `__: :meth:`socket.socket." +"connect` now waits until the connection completes instead of raising :exc:" +"`InterruptedError` if the connection is interrupted by signals, signal " +"handlers don't raise an exception and the socket is blocking or has a " +"timeout. :meth:`socket.socket.connect` still raise :exc:`InterruptedError` " +"for non-blocking sockets." msgstr "" -#: ../../../build/NEWS:16217 +#: ../../../build/NEWS:16841 msgid "" -"`bpo-21526 `__: Tkinter now supports new" -" boolean type in Tcl 8.5." +"`bpo-21526 `__: Tkinter now supports new " +"boolean type in Tcl 8.5." msgstr "" -#: ../../../build/NEWS:16219 +#: ../../../build/NEWS:16843 msgid "" "`bpo-23836 `__: Fix the faulthandler " "module to handle reentrant calls to its signal handlers." msgstr "" -#: ../../../build/NEWS:16222 +#: ../../../build/NEWS:16846 msgid "" -"`bpo-23838 `__: linecache now clears the" -" cache and returns an empty result on MemoryError." +"`bpo-23838 `__: linecache now clears the " +"cache and returns an empty result on MemoryError." msgstr "" -#: ../../../build/NEWS:16225 +#: ../../../build/NEWS:16849 msgid "" -"`bpo-10395 `__: Added " -"os.path.commonpath(). Implemented in posixpath and ntpath. Based on patch by" -" Rafik Draoui." +"`bpo-10395 `__: Added os.path." +"commonpath(). Implemented in posixpath and ntpath. Based on patch by Rafik " +"Draoui." msgstr "" -#: ../../../build/NEWS:16228 +#: ../../../build/NEWS:16852 msgid "" "`bpo-23611 `__: Serializing more " "\"lookupable\" objects (such as unbound methods or nested classes) now are " "supported with pickle protocols < 4." msgstr "" -#: ../../../build/NEWS:16231 +#: ../../../build/NEWS:16855 msgid "" -"`bpo-13583 `__: sqlite3.Row now supports" -" slice indexing." +"`bpo-13583 `__: sqlite3.Row now supports " +"slice indexing." msgstr "" -#: ../../../build/NEWS:16233 +#: ../../../build/NEWS:16857 msgid "" "`bpo-18473 `__: Fixed 2to3 and 3to2 " "compatible pickle mappings. Fixed ambiguous reverse mappings. Added many " -"new mappings. Import mapping is no longer applied to modules already mapped" -" with full name mapping." +"new mappings. Import mapping is no longer applied to modules already mapped " +"with full name mapping." msgstr "" -#: ../../../build/NEWS:16237 +#: ../../../build/NEWS:16861 msgid "" "`bpo-23485 `__: select.select() is now " "retried automatically with the recomputed timeout when interrupted by a " @@ -22854,303 +23849,303 @@ msgid "" "part of the PEP 475." msgstr "" -#: ../../../build/NEWS:16241 +#: ../../../build/NEWS:16865 msgid "" "`bpo-23752 `__: When built from an " "existing file descriptor, io.FileIO() now only calls fstat() once. Before " "fstat() was called twice, which was not necessary." msgstr "" -#: ../../../build/NEWS:16245 +#: ../../../build/NEWS:16869 msgid "" "`bpo-23704 `__: collections.deque() " "objects now support __add__, __mul__, and __imul__()." msgstr "" -#: ../../../build/NEWS:16248 +#: ../../../build/NEWS:16872 msgid "" "`bpo-23171 `__: csv.Writer.writerow() " "now supports arbitrary iterables." msgstr "" -#: ../../../build/NEWS:16250 +#: ../../../build/NEWS:16874 msgid "" "`bpo-23745 `__: The new email header " "parser now handles duplicate MIME parameter names without error, similar to " "how get_param behaves." msgstr "" -#: ../../../build/NEWS:16253 +#: ../../../build/NEWS:16877 msgid "" "`bpo-22117 `__: Fix os.utime(), it now " "rounds the timestamp towards minus infinity (-inf) instead of rounding " "towards zero." msgstr "" -#: ../../../build/NEWS:16256 +#: ../../../build/NEWS:16880 msgid "" "`bpo-23310 `__: Fix MagicMock's " "initializer to work with __methods__, just like configure_mock(). Patch by " "Kasia Jachim." msgstr "" -#: ../../../build/NEWS:16262 +#: ../../../build/NEWS:16886 msgid "" -"`bpo-23817 `__: FreeBSD now uses \"1.0\"" -" in the SOVERSION as other operating systems, instead of just \"1\"." +"`bpo-23817 `__: FreeBSD now uses \"1.0\" " +"in the SOVERSION as other operating systems, instead of just \"1\"." msgstr "" -#: ../../../build/NEWS:16265 +#: ../../../build/NEWS:16889 msgid "" "`bpo-23501 `__: Argument Clinic now " "generates code into separate files by default." msgstr "" -#: ../../../build/NEWS:16271 +#: ../../../build/NEWS:16895 msgid "" -"`bpo-23799 `__: Added " -"test.support.start_threads() for running and cleaning up multiple threads." +"`bpo-23799 `__: Added test.support." +"start_threads() for running and cleaning up multiple threads." msgstr "" -#: ../../../build/NEWS:16274 +#: ../../../build/NEWS:16898 msgid "" "`bpo-22390 `__: test.regrtest now emits " "a warning if temporary files or directories are left after running a test." msgstr "" -#: ../../../build/NEWS:16280 +#: ../../../build/NEWS:16904 msgid "" "`bpo-18128 `__: pygettext now uses " "standard +NNNN format in the POT-Creation-Date header." msgstr "" -#: ../../../build/NEWS:16283 +#: ../../../build/NEWS:16907 msgid "" "`bpo-23935 `__: Argument Clinic's " "understanding of format units accepting bytes, bytearrays, and buffers is " "now consistent with both the documentation and the implementation." msgstr "" -#: ../../../build/NEWS:16287 +#: ../../../build/NEWS:16911 msgid "" "`bpo-23944 `__: Argument Clinic now " "wraps long impl prototypes at column 78." msgstr "" -#: ../../../build/NEWS:16289 +#: ../../../build/NEWS:16913 msgid "" "`bpo-20586 `__: Argument Clinic now " "ensures that functions without docstrings have signatures." msgstr "" -#: ../../../build/NEWS:16292 +#: ../../../build/NEWS:16916 msgid "" "`bpo-23492 `__: Argument Clinic now " -"generates argument parsing code with PyArg_Parse instead of PyArg_ParseTuple" -" if possible." +"generates argument parsing code with PyArg_Parse instead of PyArg_ParseTuple " +"if possible." msgstr "" -#: ../../../build/NEWS:16295 +#: ../../../build/NEWS:16919 msgid "" "`bpo-23500 `__: Argument Clinic is now " -"smarter about generating the \"#ifndef\" (empty) definition of the methoddef" -" macro: it's only generated once, even if Argument Clinic processes the same" -" symbol multiple times, and it's emitted at the end of all processing rather" -" than immediately after the first use." +"smarter about generating the \"#ifndef\" (empty) definition of the methoddef " +"macro: it's only generated once, even if Argument Clinic processes the same " +"symbol multiple times, and it's emitted at the end of all processing rather " +"than immediately after the first use." msgstr "" -#: ../../../build/NEWS:16304 +#: ../../../build/NEWS:16928 msgid "" "`bpo-23998 `__: PyImport_ReInitLock() " "now checks for lock allocation error" msgstr "" -#: ../../../build/NEWS:16308 +#: ../../../build/NEWS:16932 msgid "Python 3.5.0 alpha 3" msgstr "" -#: ../../../build/NEWS:16310 +#: ../../../build/NEWS:16934 msgid "*Release date: 2015-03-28*" msgstr "" -#: ../../../build/NEWS:16315 +#: ../../../build/NEWS:16939 msgid "" -"`bpo-23573 `__: Increased performance of" -" string search operations (str.find, str.index, str.count, the in operator, " +"`bpo-23573 `__: Increased performance of " +"string search operations (str.find, str.index, str.count, the in operator, " "str.split, str.partition) with arguments of different kinds (UCS1, UCS2, " "UCS4)." msgstr "" -#: ../../../build/NEWS:16319 +#: ../../../build/NEWS:16943 msgid "" "`bpo-23753 `__: Python doesn't support " "anymore platforms without stat() or fstat(), these functions are always " "required." msgstr "" -#: ../../../build/NEWS:16322 +#: ../../../build/NEWS:16946 msgid "" "`bpo-23681 `__: The -b option now " "affects comparisons of bytes with int." msgstr "" -#: ../../../build/NEWS:16324 +#: ../../../build/NEWS:16948 msgid "" "`bpo-23632 `__: Memoryviews now allow " "tuple indexing (including for multi-dimensional memoryviews)." msgstr "" -#: ../../../build/NEWS:16327 +#: ../../../build/NEWS:16951 msgid "" -"`bpo-23192 `__: Fixed generator lambdas." -" Patch by Bruno Cauet." +"`bpo-23192 `__: Fixed generator " +"lambdas. Patch by Bruno Cauet." msgstr "" -#: ../../../build/NEWS:16329 +#: ../../../build/NEWS:16953 msgid "" "`bpo-23629 `__: Fix the default " "__sizeof__ implementation for variable-sized objects." msgstr "" -#: ../../../build/NEWS:16335 +#: ../../../build/NEWS:16959 msgid "" -"`bpo-14260 `__: The groupindex attribute" -" of regular expression pattern object now is non-modifiable mapping." +"`bpo-14260 `__: The groupindex attribute " +"of regular expression pattern object now is non-modifiable mapping." msgstr "" -#: ../../../build/NEWS:16338 +#: ../../../build/NEWS:16962 msgid "" -"`bpo-23792 `__: Ignore KeyboardInterrupt" -" when the pydoc pager is active. This mimics the behavior of the standard " +"`bpo-23792 `__: Ignore KeyboardInterrupt " +"when the pydoc pager is active. This mimics the behavior of the standard " "unix pagers, and prevents pipepager from shutting down while the pager " "itself is still running." msgstr "" -#: ../../../build/NEWS:16342 +#: ../../../build/NEWS:16966 msgid "" "`bpo-23775 `__: pprint() of OrderedDict " "now outputs the same representation as repr()." msgstr "" -#: ../../../build/NEWS:16345 +#: ../../../build/NEWS:16969 msgid "" "`bpo-23765 `__: Removed IsBadStringPtr " "calls in ctypes" msgstr "" -#: ../../../build/NEWS:16347 +#: ../../../build/NEWS:16971 msgid "" "`bpo-22364 `__: Improved some re error " "messages using regex for hints." msgstr "" -#: ../../../build/NEWS:16349 +#: ../../../build/NEWS:16973 msgid "" "`bpo-23742 `__: ntpath.expandvars() no " "longer loses unbalanced single quotes." msgstr "" -#: ../../../build/NEWS:16351 +#: ../../../build/NEWS:16975 msgid "" -"`bpo-21717 `__: The zipfile.ZipFile.open" -" function now supports 'x' (exclusive creation) mode." +"`bpo-21717 `__: The zipfile.ZipFile.open " +"function now supports 'x' (exclusive creation) mode." msgstr "" -#: ../../../build/NEWS:16354 +#: ../../../build/NEWS:16978 msgid "" "`bpo-21802 `__: The reader in " "BufferedRWPair now is closed even when closing writer failed in " "BufferedRWPair.close()." msgstr "" -#: ../../../build/NEWS:16357 +#: ../../../build/NEWS:16981 msgid "" "`bpo-23622 `__: Unknown escapes in " "regular expressions that consist of ``'\\'`` and ASCII letter now raise a " "deprecation warning and will be forbidden in Python 3.6." msgstr "" -#: ../../../build/NEWS:16361 +#: ../../../build/NEWS:16985 msgid "" "`bpo-23671 `__: string.Template now " -"allows specifying the \"self\" parameter as a keyword argument. " -"string.Formatter now allows specifying the \"self\" and the " -"\"format_string\" parameters as keyword arguments." +"allows specifying the \"self\" parameter as a keyword argument. string." +"Formatter now allows specifying the \"self\" and the \"format_string\" " +"parameters as keyword arguments." msgstr "" -#: ../../../build/NEWS:16365 +#: ../../../build/NEWS:16989 msgid "" "`bpo-23502 `__: The pprint module now " "supports mapping proxies." msgstr "" -#: ../../../build/NEWS:16367 +#: ../../../build/NEWS:16991 msgid "" "`bpo-17530 `__: pprint now wraps long " "bytes objects and bytearrays." msgstr "" -#: ../../../build/NEWS:16369 +#: ../../../build/NEWS:16993 msgid "" "`bpo-22687 `__: Fixed some corner cases " "in breaking words in tetxtwrap. Got rid of quadratic complexity in breaking " "long words." msgstr "" -#: ../../../build/NEWS:16372 +#: ../../../build/NEWS:16996 msgid "" "`bpo-4727 `__: The copy module now uses " "pickle protocol 4 (PEP 3154) and supports copying of instances of classes " "whose __new__ method takes keyword-only arguments." msgstr "" -#: ../../../build/NEWS:16376 +#: ../../../build/NEWS:17000 msgid "" -"`bpo-23491 `__: Added a zipapp module to" -" support creating executable zip file archives of Python code. Registered " -"\".pyz\" and \".pyzw\" extensions on Windows for these archives (PEP 441)." +"`bpo-23491 `__: Added a zipapp module to " +"support creating executable zip file archives of Python code. Registered \"." +"pyz\" and \".pyzw\" extensions on Windows for these archives (PEP 441)." msgstr "" -#: ../../../build/NEWS:16380 +#: ../../../build/NEWS:17004 msgid "" "`bpo-23657 `__: Avoid explicit checks " "for str in zipapp, adding support for pathlib.Path objects as arguments." msgstr "" -#: ../../../build/NEWS:16383 +#: ../../../build/NEWS:17007 msgid "" "`bpo-23688 `__: Added support of " "arbitrary bytes-like objects and avoided unnecessary copying of memoryview " "in gzip.GzipFile.write(). Original patch by Wolfgang Maier." msgstr "" -#: ../../../build/NEWS:16387 +#: ../../../build/NEWS:17011 msgid "" "`bpo-23252 `__: Added support for " "writing ZIP files to unseekable streams." msgstr "" -#: ../../../build/NEWS:16389 +#: ../../../build/NEWS:17013 msgid "" "`bpo-23647 `__: Increase imaplib's " "MAXLINE to accommodate modern mailbox sizes." msgstr "" -#: ../../../build/NEWS:16391 +#: ../../../build/NEWS:17015 msgid "" -"`bpo-23539 `__: If body is None, " -"http.client.HTTPConnection.request now sets Content-Length to 0 for PUT, " -"POST, and PATCH headers to avoid 411 errors from some web servers." +"`bpo-23539 `__: If body is None, http." +"client.HTTPConnection.request now sets Content-Length to 0 for PUT, POST, " +"and PATCH headers to avoid 411 errors from some web servers." msgstr "" -#: ../../../build/NEWS:16395 +#: ../../../build/NEWS:17019 msgid "" "`bpo-22351 `__: The nntplib.NNTP " "constructor no longer leaves the connection and socket open until the " "garbage collector cleans them up. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:16399 +#: ../../../build/NEWS:17023 msgid "" "`bpo-23704 `__: collections.deque() " "objects now support methods for index(), insert(), and copy(). This allows " @@ -23158,62 +24153,62 @@ msgid "" "substitutability for lists." msgstr "" -#: ../../../build/NEWS:16403 +#: ../../../build/NEWS:17027 msgid "" -"`bpo-23715 `__: " -":func:`signal.sigwaitinfo` and :func:`signal.sigtimedwait` are now retried " -"when interrupted by a signal not in the *sigset* parameter, if the signal " -"handler does not raise an exception. signal.sigtimedwait() recomputes the " -"timeout with a monotonic clock when it is retried." +"`bpo-23715 `__: :func:`signal." +"sigwaitinfo` and :func:`signal.sigtimedwait` are now retried when " +"interrupted by a signal not in the *sigset* parameter, if the signal handler " +"does not raise an exception. signal.sigtimedwait() recomputes the timeout " +"with a monotonic clock when it is retried." msgstr "" -#: ../../../build/NEWS:16408 +#: ../../../build/NEWS:17032 msgid "" -"`bpo-23001 `__: Few functions in modules" -" mmap, ossaudiodev, socket, ssl, and codecs, that accepted only read-only " +"`bpo-23001 `__: Few functions in modules " +"mmap, ossaudiodev, socket, ssl, and codecs, that accepted only read-only " "bytes-like object now accept writable bytes-like object too." msgstr "" -#: ../../../build/NEWS:16412 +#: ../../../build/NEWS:17036 msgid "" "`bpo-23646 `__: If time.sleep() is " -"interrupted by a signal, the sleep is now retried with the recomputed delay," -" except if the signal handler raises an exception (PEP 475)." +"interrupted by a signal, the sleep is now retried with the recomputed delay, " +"except if the signal handler raises an exception (PEP 475)." msgstr "" -#: ../../../build/NEWS:16416 +#: ../../../build/NEWS:17040 msgid "" "`bpo-23136 `__: _strptime now uniformly " "handles all days in week 0, including Dec 30 of previous year. Based on " "patch by Jim Carroll." msgstr "" -#: ../../../build/NEWS:16419 +#: ../../../build/NEWS:17043 msgid "" "`bpo-23700 `__: Iterator of " "NamedTemporaryFile now keeps a reference to NamedTemporaryFile instance. " "Patch by Bohuslav Kabrda." msgstr "" -#: ../../../build/NEWS:16422 +#: ../../../build/NEWS:17046 msgid "" "`bpo-22903 `__: The fake test case " "created by unittest.loader when it fails importing a test module is now " "picklable." msgstr "" -#: ../../../build/NEWS:16425 +#: ../../../build/NEWS:17049 msgid "" "`bpo-22181 `__: On Linux, os.urandom() " -"now uses the new getrandom() syscall if available, syscall introduced in the" -" Linux kernel 3.17. It is more reliable and more secure, because it avoids " +"now uses the new getrandom() syscall if available, syscall introduced in the " +"Linux kernel 3.17. It is more reliable and more secure, because it avoids " "the need of a file descriptor and waits until the kernel has enough entropy." msgstr "" -#: ../../../build/NEWS:16430 +#: ../../../build/NEWS:17054 msgid "" -"`bpo-2211 `__: Updated the implementation" -" of the http.cookies.Morsel class. Setting attributes key, value and " +"`bpo-2211 `__: Updated the implementation " +"of the http.cookies.Morsel class. Setting attributes key, value and " "coded_value directly now is deprecated. update() and setdefault() now " "transform and check keys. Comparing for equality now takes into account " "attributes key, value and coded_value. copy() now returns a Morsel, not a " @@ -23221,115 +24216,115 @@ msgid "" "quoting values. Added new tests. Original patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:16438 +#: ../../../build/NEWS:17062 msgid "" "`bpo-18983 `__: Allow selection of " "output units in timeit. Patch by Julian Gindi." msgstr "" -#: ../../../build/NEWS:16441 +#: ../../../build/NEWS:17065 msgid "" -"`bpo-23631 `__: Fix " -"traceback.format_list when a traceback has been mutated." +"`bpo-23631 `__: Fix traceback." +"format_list when a traceback has been mutated." msgstr "" -#: ../../../build/NEWS:16443 +#: ../../../build/NEWS:17067 msgid "" "`bpo-23568 `__: Add rdivmod support to " "MagicMock() objects. Patch by Håkan Lövdahl." msgstr "" -#: ../../../build/NEWS:16446 +#: ../../../build/NEWS:17070 msgid "" "`bpo-2052 `__: Add charset parameter to " "HtmlDiff.make_file()." msgstr "" -#: ../../../build/NEWS:16448 +#: ../../../build/NEWS:17072 msgid "" "`bpo-23668 `__: Support os.truncate and " "os.ftruncate on Windows." msgstr "" -#: ../../../build/NEWS:16450 +#: ../../../build/NEWS:17074 msgid "" "`bpo-23138 `__: Fixed parsing cookies " "with absent keys or values in cookiejar. Patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:16453 +#: ../../../build/NEWS:17077 msgid "" "`bpo-23051 `__: multiprocessing.Pool " "methods imap() and imap_unordered() now handle exceptions raised by an " "iterator. Patch by Alon Diamant and Davin Potts." msgstr "" -#: ../../../build/NEWS:16457 +#: ../../../build/NEWS:17081 msgid "" "`bpo-23581 `__: Add matmul support to " "MagicMock. Patch by Håkan Lövdahl." msgstr "" -#: ../../../build/NEWS:16459 +#: ../../../build/NEWS:17083 msgid "" "`bpo-23566 `__: enable(), register(), " "dump_traceback() and dump_traceback_later() functions of faulthandler now " "accept file descriptors. Patch by Wei Wu." msgstr "" -#: ../../../build/NEWS:16463 +#: ../../../build/NEWS:17087 msgid "" "`bpo-22928 `__: Disabled HTTP header " "injections in http.client. Original patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:16466 +#: ../../../build/NEWS:17090 msgid "" -"`bpo-23615 `__: Modules bz2, tarfile and" -" tokenize now can be reloaded with imp.reload(). Patch by Thomas Kluyver." +"`bpo-23615 `__: Modules bz2, tarfile and " +"tokenize now can be reloaded with imp.reload(). Patch by Thomas Kluyver." msgstr "" -#: ../../../build/NEWS:16469 +#: ../../../build/NEWS:17093 msgid "" -"`bpo-23605 `__: os.walk() now calls " -"os.scandir() instead of os.listdir(). The usage of os.scandir() reduces the " +"`bpo-23605 `__: os.walk() now calls os." +"scandir() instead of os.listdir(). The usage of os.scandir() reduces the " "number of calls to os.stat(). Initial patch written by Ben Hoyt." msgstr "" -#: ../../../build/NEWS:16476 +#: ../../../build/NEWS:17100 msgid "" "`bpo-23585 `__: make patchcheck will " "ensure the interpreter is built." msgstr "" -#: ../../../build/NEWS:16481 +#: ../../../build/NEWS:17105 msgid "" -"`bpo-23583 `__: Added tests for standard" -" IO streams in IDLE." +"`bpo-23583 `__: Added tests for standard " +"IO streams in IDLE." msgstr "" -#: ../../../build/NEWS:16483 +#: ../../../build/NEWS:17107 msgid "" "`bpo-22289 `__: Prevent test_urllib2net " "failures due to ftp connection timeout." msgstr "" -#: ../../../build/NEWS:16488 +#: ../../../build/NEWS:17112 msgid "" "`bpo-22826 `__: The result of open() in " "Tools/freeze/bkfile.py is now better compatible with regular files (in " "particular it now supports the context management protocol)." msgstr "" -#: ../../../build/NEWS:16494 +#: ../../../build/NEWS:17118 msgid "Python 3.5.0 alpha 2" msgstr "" -#: ../../../build/NEWS:16496 +#: ../../../build/NEWS:17120 msgid "*Release date: 2015-03-09*" msgstr "" -#: ../../../build/NEWS:16501 +#: ../../../build/NEWS:17125 msgid "" "`bpo-23571 `__: PyObject_Call() and " "PyCFunction_Call() now raise a SystemError if a function returns a result " @@ -23337,313 +24332,310 @@ msgid "" "exception." msgstr "" -#: ../../../build/NEWS:16508 +#: ../../../build/NEWS:17132 msgid "" "`bpo-22524 `__: New os.scandir() " "function, part of the PEP 471: \"os.scandir() function -- a better and " "faster directory iterator\". Patch written by Ben Hoyt." msgstr "" -#: ../../../build/NEWS:16512 +#: ../../../build/NEWS:17136 msgid "" "`bpo-23103 `__: Reduced the memory " "consumption of IPv4Address and IPv6Address." msgstr "" -#: ../../../build/NEWS:16514 +#: ../../../build/NEWS:17138 msgid "" "`bpo-21793 `__: BaseHTTPRequestHandler " "again logs response code as numeric, not as stringified enum. Patch by " "Demian Brecht." msgstr "" -#: ../../../build/NEWS:16517 +#: ../../../build/NEWS:17141 msgid "" "`bpo-23476 `__: In the ssl module, " "enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST flag on certificate stores when " "it is available." msgstr "" -#: ../../../build/NEWS:16520 +#: ../../../build/NEWS:17144 msgid "" "`bpo-23576 `__: Avoid stalling in SSL " "reads when EOF has been reached in the SSL layer but the underlying " "connection hasn't been closed." msgstr "" -#: ../../../build/NEWS:16523 +#: ../../../build/NEWS:17147 msgid "" "`bpo-23504 `__: Added an __all__ to the " "types module." msgstr "" -#: ../../../build/NEWS:16525 +#: ../../../build/NEWS:17149 msgid "" "`bpo-23563 `__: Optimized utility " "functions in urllib.parse." msgstr "" -#: ../../../build/NEWS:16527 +#: ../../../build/NEWS:17151 msgid "" -"`bpo-7830 `__: Flatten nested " -"functools.partial." +"`bpo-7830 `__: Flatten nested functools." +"partial." msgstr "" -#: ../../../build/NEWS:16529 +#: ../../../build/NEWS:17153 msgid "" "`bpo-20204 `__: Added the __module__ " "attribute to _tkinter classes." msgstr "" -#: ../../../build/NEWS:16531 +#: ../../../build/NEWS:17155 msgid "" "`bpo-19980 `__: Improved help() for non-" "recognized strings. help('') now shows the help on str. help('help') now " "shows the help on help(). Original patch by Mark Lawrence." msgstr "" -#: ../../../build/NEWS:16535 +#: ../../../build/NEWS:17159 msgid "" "`bpo-23521 `__: Corrected pure python " "implementation of timedelta division." msgstr "" -#: ../../../build/NEWS:16537 +#: ../../../build/NEWS:17161 msgid "" "Eliminated OverflowError from ``timedelta * float`` for some floats; " "Corrected rounding in timedelta true division." msgstr "" -#: ../../../build/NEWS:16540 +#: ../../../build/NEWS:17164 msgid "" "`bpo-21619 `__: Popen objects no longer " "leave a zombie after exit in the with statement if the pipe was broken. " "Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:16543 +#: ../../../build/NEWS:17167 msgid "" -"`bpo-22936 `__: Make it possible to show" -" local variables in tracebacks for both the traceback module and unittest." +"`bpo-22936 `__: Make it possible to show " +"local variables in tracebacks for both the traceback module and unittest." msgstr "" -#: ../../../build/NEWS:16546 +#: ../../../build/NEWS:17170 msgid "" "`bpo-15955 `__: Add an option to limit " "the output size in bz2.decompress(). Patch by Nikolaus Rath." msgstr "" -#: ../../../build/NEWS:16549 +#: ../../../build/NEWS:17173 msgid "" "`bpo-6639 `__: Module-level turtle " "functions no longer raise TclError after closing the window." msgstr "" -#: ../../../build/NEWS:16552 +#: ../../../build/NEWS:17176 msgid "" "`bpo-814253 `__: Group references and " "conditional group references now work in lookbehind assertions in regular " "expressions. (See also: `bpo-9179 `__)" msgstr "" -#: ../../../build/NEWS:16555 +#: ../../../build/NEWS:17179 msgid "" "`bpo-23215 `__: Multibyte codecs with " "custom error handlers that ignores errors consumed too much memory and " "raised SystemError or MemoryError. Original patch by Aleksi Torhamo." msgstr "" -#: ../../../build/NEWS:16559 +#: ../../../build/NEWS:17183 msgid "" -"`bpo-5700 `__: io.FileIO() called flush()" -" after closing the file. flush() was not called in close() if closefd=False." +"`bpo-5700 `__: io.FileIO() called flush() " +"after closing the file. flush() was not called in close() if closefd=False." msgstr "" -#: ../../../build/NEWS:16562 +#: ../../../build/NEWS:17186 msgid "" -"`bpo-23374 `__: Fixed pydoc failure with" -" non-ASCII files when stdout encoding differs from file system encoding " -"(e.g. on Mac OS)." +"`bpo-23374 `__: Fixed pydoc failure with " +"non-ASCII files when stdout encoding differs from file system encoding (e.g. " +"on Mac OS)." msgstr "" -#: ../../../build/NEWS:16565 +#: ../../../build/NEWS:17189 msgid "" "`bpo-23481 `__: Remove RC4 from the SSL " "module's default cipher list." msgstr "" -#: ../../../build/NEWS:16567 +#: ../../../build/NEWS:17191 msgid "" -"`bpo-21548 `__: Fix pydoc.synopsis() and" -" pydoc.apropos() on modules with empty docstrings." +"`bpo-21548 `__: Fix pydoc.synopsis() and " +"pydoc.apropos() on modules with empty docstrings." msgstr "" -#: ../../../build/NEWS:16570 +#: ../../../build/NEWS:17194 msgid "" "`bpo-22885 `__: Fixed arbitrary code " "execution vulnerability in the dbm.dumb module. Original patch by Claudiu " "Popa." msgstr "" -#: ../../../build/NEWS:16573 +#: ../../../build/NEWS:17197 msgid "" -"`bpo-23239 `__: ssl.match_hostname() now" -" supports matching of IP addresses." +"`bpo-23239 `__: ssl.match_hostname() now " +"supports matching of IP addresses." msgstr "" -#: ../../../build/NEWS:16575 +#: ../../../build/NEWS:17199 msgid "" "`bpo-23146 `__: Fix mishandling of " "absolute Windows paths with forward slashes in pathlib." msgstr "" -#: ../../../build/NEWS:16578 +#: ../../../build/NEWS:17202 msgid "" -"`bpo-23096 `__: Pickle representation of" -" floats with protocol 0 now is the same for both Python and C " -"implementations." +"`bpo-23096 `__: Pickle representation of " +"floats with protocol 0 now is the same for both Python and C implementations." msgstr "" -#: ../../../build/NEWS:16581 +#: ../../../build/NEWS:17205 msgid "" "`bpo-19105 `__: pprint now more " "efficiently uses free space at the right." msgstr "" -#: ../../../build/NEWS:16583 +#: ../../../build/NEWS:17207 msgid "" "`bpo-14910 `__: Add allow_abbrev " "parameter to argparse.ArgumentParser. Patch by Jonathan Paugh, Steven " "Bethard, paul j3 and Daniel Eriksson." msgstr "" -#: ../../../build/NEWS:16586 +#: ../../../build/NEWS:17210 msgid "" "`bpo-21717 `__: tarfile.open() now " "supports 'x' (exclusive creation) mode." msgstr "" -#: ../../../build/NEWS:16588 +#: ../../../build/NEWS:17212 msgid "" "`bpo-23344 `__: marshal.dumps() is now " "20-25% faster on average." msgstr "" -#: ../../../build/NEWS:16590 +#: ../../../build/NEWS:17214 msgid "" "`bpo-20416 `__: marshal.dumps() with " "protocols 3 and 4 is now 40-50% faster on average." msgstr "" -#: ../../../build/NEWS:16593 +#: ../../../build/NEWS:17217 msgid "" "`bpo-23421 `__: Fixed compression in " "tarfile CLI. Patch by wdv4758h." msgstr "" -#: ../../../build/NEWS:16595 +#: ../../../build/NEWS:17219 msgid "" "`bpo-23367 `__: Fix possible overflows " "in the unicodedata module." msgstr "" -#: ../../../build/NEWS:16597 +#: ../../../build/NEWS:17221 msgid "" -"`bpo-23361 `__: Fix possible overflow in" -" Windows subprocess creation code." +"`bpo-23361 `__: Fix possible overflow in " +"Windows subprocess creation code." msgstr "" -#: ../../../build/NEWS:16599 +#: ../../../build/NEWS:17223 msgid "" "logging.handlers.QueueListener now takes a respect_handler_level keyword " "argument which, if set to True, will pass messages to handlers taking " "handler levels into account." msgstr "" -#: ../../../build/NEWS:16603 +#: ../../../build/NEWS:17227 msgid "" "`bpo-19705 `__: turtledemo now has a " "visual sorting algorithm demo. Original patch from Jason Yeo." msgstr "" -#: ../../../build/NEWS:16606 +#: ../../../build/NEWS:17230 msgid "" -"`bpo-23801 `__: Fix issue where " -"cgi.FieldStorage did not always ignore the entire preamble to a multipart " -"body." +"`bpo-23801 `__: Fix issue where cgi." +"FieldStorage did not always ignore the entire preamble to a multipart body." msgstr "" -#: ../../../build/NEWS:16612 +#: ../../../build/NEWS:17236 msgid "" "`bpo-23445 `__: pydebug builds now use " "\"gcc -Og\" where possible, to make the resulting executable faster." msgstr "" -#: ../../../build/NEWS:16615 +#: ../../../build/NEWS:17239 msgid "" "`bpo-23686 `__: Update OS X 10.5 " "installer build to use OpenSSL 1.0.2a." msgstr "" -#: ../../../build/NEWS:16620 +#: ../../../build/NEWS:17244 msgid "" "`bpo-20204 `__: Deprecation warning is " "now raised for builtin types without the __module__ attribute." msgstr "" -#: ../../../build/NEWS:16626 +#: ../../../build/NEWS:17250 msgid "" -"`bpo-23465 `__: Implement PEP 486 - Make" -" the Python Launcher aware of virtual environments. Patch by Paul Moore." +"`bpo-23465 `__: Implement PEP 486 - Make " +"the Python Launcher aware of virtual environments. Patch by Paul Moore." msgstr "" -#: ../../../build/NEWS:16629 +#: ../../../build/NEWS:17253 msgid "" "`bpo-23437 `__: Make user scripts " "directory versioned on Windows. Patch by Paul Moore." msgstr "" -#: ../../../build/NEWS:16634 +#: ../../../build/NEWS:17258 msgid "Python 3.5.0 alpha 1" msgstr "" -#: ../../../build/NEWS:16636 +#: ../../../build/NEWS:17260 msgid "*Release date: 2015-02-08*" msgstr "" -#: ../../../build/NEWS:16641 +#: ../../../build/NEWS:17265 msgid "" -"`bpo-23285 `__: PEP 475 - EINTR " -"handling." +"`bpo-23285 `__: PEP 475 - EINTR handling." msgstr "" -#: ../../../build/NEWS:16643 +#: ../../../build/NEWS:17267 msgid "" "`bpo-22735 `__: Fix many edge cases " "(including crashes) involving custom mro() implementations." msgstr "" -#: ../../../build/NEWS:16646 +#: ../../../build/NEWS:17270 msgid "" "`bpo-22896 `__: Avoid using " "PyObject_AsCharBuffer(), PyObject_AsReadBuffer() and " "PyObject_AsWriteBuffer()." msgstr "" -#: ../../../build/NEWS:16649 +#: ../../../build/NEWS:17273 msgid "" "`bpo-21295 `__: Revert some changes " -"(`bpo-16795 `__) to AST line numbers and" -" column offsets that constituted a regression." +"(`bpo-16795 `__) to AST line numbers and " +"column offsets that constituted a regression." msgstr "" -#: ../../../build/NEWS:16652 +#: ../../../build/NEWS:17276 msgid "" "`bpo-22986 `__: Allow changing an " "object's __class__ between a dynamic type and static type in some cases." msgstr "" -#: ../../../build/NEWS:16655 +#: ../../../build/NEWS:17279 msgid "" "`bpo-15859 `__: " "PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and " @@ -23652,199 +24644,199 @@ msgid "" "platforms other than Windows. Patch written by Campbell Barton." msgstr "" -#: ../../../build/NEWS:16660 +#: ../../../build/NEWS:17284 msgid "" -"`bpo-21408 `__: The default __ne__() now" -" returns NotImplemented if __eq__() returned NotImplemented. Original patch" -" by Martin Panter." +"`bpo-21408 `__: The default __ne__() now " +"returns NotImplemented if __eq__() returned NotImplemented. Original patch " +"by Martin Panter." msgstr "" -#: ../../../build/NEWS:16663 +#: ../../../build/NEWS:17287 msgid "" -"`bpo-23321 `__: Fixed a crash in " -"str.decode() when error handler returned replacement string longer than " +"`bpo-23321 `__: Fixed a crash in str." +"decode() when error handler returned replacement string longer than " "malformed input data." msgstr "" -#: ../../../build/NEWS:16666 +#: ../../../build/NEWS:17290 msgid "" -"`bpo-22286 `__: The \"backslashreplace\"" -" error handlers now works with decoding and translating." +"`bpo-22286 `__: The \"backslashreplace\" " +"error handlers now works with decoding and translating." msgstr "" -#: ../../../build/NEWS:16669 +#: ../../../build/NEWS:17293 msgid "" "`bpo-23253 `__: Delay-load " "ShellExecute[AW] in os.startfile for reduced startup overhead on Windows." msgstr "" -#: ../../../build/NEWS:16672 +#: ../../../build/NEWS:17296 msgid "" "`bpo-22038 `__: pyatomic.h now uses " -"stdatomic.h or GCC built-in functions for atomic memory access if available." -" Patch written by Vitor de Lima and Gustavo Temple." +"stdatomic.h or GCC built-in functions for atomic memory access if available. " +"Patch written by Vitor de Lima and Gustavo Temple." msgstr "" -#: ../../../build/NEWS:16676 +#: ../../../build/NEWS:17300 msgid "" "`bpo-20284 `__: %-interpolation (aka " "printf) formatting added for bytes and bytearray." msgstr "" -#: ../../../build/NEWS:16679 +#: ../../../build/NEWS:17303 msgid "" "`bpo-23048 `__: Fix jumping out of an " "infinite while loop in the pdb." msgstr "" -#: ../../../build/NEWS:16681 +#: ../../../build/NEWS:17305 msgid "" "`bpo-20335 `__: bytes constructor now " "raises TypeError when encoding or errors is specified with non-string " "argument. Based on patch by Renaud Blanch." msgstr "" -#: ../../../build/NEWS:16684 +#: ../../../build/NEWS:17308 msgid "" "`bpo-22834 `__: If the current working " "directory ends up being set to a non-existent directory then import will no " "longer raise FileNotFoundError." msgstr "" -#: ../../../build/NEWS:16687 +#: ../../../build/NEWS:17311 msgid "" "`bpo-22869 `__: Move the interpreter " "startup & shutdown code to a new dedicated pylifecycle.c module" msgstr "" -#: ../../../build/NEWS:16690 +#: ../../../build/NEWS:17314 msgid "" "`bpo-22847 `__: Improve method cache " "efficiency." msgstr "" -#: ../../../build/NEWS:16692 +#: ../../../build/NEWS:17316 msgid "" -"`bpo-22335 `__: Fix crash when trying to" -" enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform." +"`bpo-22335 `__: Fix crash when trying to " +"enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform." msgstr "" -#: ../../../build/NEWS:16695 +#: ../../../build/NEWS:17319 msgid "" -"`bpo-22653 `__: Fix an assertion failure" -" in debug mode when doing a reentrant dict insertion in debug mode." +"`bpo-22653 `__: Fix an assertion failure " +"in debug mode when doing a reentrant dict insertion in debug mode." msgstr "" -#: ../../../build/NEWS:16698 +#: ../../../build/NEWS:17322 msgid "" "`bpo-22643 `__: Fix integer overflow in " "Unicode case operations (upper, lower, title, swapcase, casefold)." msgstr "" -#: ../../../build/NEWS:16701 +#: ../../../build/NEWS:17325 msgid "" "`bpo-17636 `__: Circular imports " "involving relative imports are now supported." msgstr "" -#: ../../../build/NEWS:16703 +#: ../../../build/NEWS:17327 msgid "" "`bpo-22604 `__: Fix assertion error in " "debug mode when dividing a complex number by (nan+0j)." msgstr "" -#: ../../../build/NEWS:16706 +#: ../../../build/NEWS:17330 msgid "" "`bpo-21052 `__: Do not raise " "ImportWarning when sys.path_hooks or sys.meta_path are set to None." msgstr "" -#: ../../../build/NEWS:16709 +#: ../../../build/NEWS:17333 msgid "" "`bpo-16518 `__: Use 'bytes-like object " "required' in error messages that previously used the far more cryptic \"'x' " "does not support the buffer protocol." msgstr "" -#: ../../../build/NEWS:16713 +#: ../../../build/NEWS:17337 msgid "" "`bpo-22470 `__: Fixed integer overflow " -"issues in \"backslashreplace\", \"xmlcharrefreplace\", and \"surrogatepass\"" -" error handlers." +"issues in \"backslashreplace\", \"xmlcharrefreplace\", and \"surrogatepass\" " +"error handlers." msgstr "" -#: ../../../build/NEWS:16716 +#: ../../../build/NEWS:17340 msgid "" "`bpo-22540 `__: speed up " "`PyObject_IsInstance` and `PyObject_IsSubclass` in the common case that the " "second argument has metaclass `type`." msgstr "" -#: ../../../build/NEWS:16719 +#: ../../../build/NEWS:17343 msgid "" "`bpo-18711 `__: Add a new " "`PyErr_FormatV` function, similar to `PyErr_Format` but accepting a " "`va_list` argument." msgstr "" -#: ../../../build/NEWS:16722 +#: ../../../build/NEWS:17346 msgid "" "`bpo-22520 `__: Fix overflow checking " "when generating the repr of a unicode object." msgstr "" -#: ../../../build/NEWS:16725 +#: ../../../build/NEWS:17349 msgid "" -"`bpo-22519 `__: Fix overflow checking in" -" PyBytes_Repr." +"`bpo-22519 `__: Fix overflow checking in " +"PyBytes_Repr." msgstr "" -#: ../../../build/NEWS:16727 +#: ../../../build/NEWS:17351 msgid "" "`bpo-22518 `__: Fix integer overflow " "issues in latin-1 encoding." msgstr "" -#: ../../../build/NEWS:16729 +#: ../../../build/NEWS:17353 msgid "" "`bpo-16324 `__: _charset parameter of " "MIMEText now also accepts email.charset.Charset instances. Initial patch by " "Claude Paroz." msgstr "" -#: ../../../build/NEWS:16732 +#: ../../../build/NEWS:17356 msgid "" -"`bpo-1764286 `__: Fix " -"inspect.getsource() to support decorated functions. Patch by Claudiu Popa." +"`bpo-1764286 `__: Fix inspect." +"getsource() to support decorated functions. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:16735 +#: ../../../build/NEWS:17359 msgid "" "`bpo-18554 `__: os.__all__ includes " "posix functions." msgstr "" -#: ../../../build/NEWS:16737 +#: ../../../build/NEWS:17361 msgid "" "`bpo-21391 `__: Use os.path.abspath in " "the shutil module." msgstr "" -#: ../../../build/NEWS:16739 +#: ../../../build/NEWS:17363 msgid "" "`bpo-11471 `__: avoid generating a " "JUMP_FORWARD instruction at the end of an if-block if there is no else-" "clause. Original patch by Eugene Toder." msgstr "" -#: ../../../build/NEWS:16742 +#: ../../../build/NEWS:17366 msgid "" -"`bpo-22215 `__: Now ValueError is raised" -" instead of TypeError when str or bytes argument contains not permitted null" -" character or byte." +"`bpo-22215 `__: Now ValueError is raised " +"instead of TypeError when str or bytes argument contains not permitted null " +"character or byte." msgstr "" -#: ../../../build/NEWS:16745 +#: ../../../build/NEWS:17369 msgid "" "`bpo-22258 `__: Fix the internal " "function set_inheritable() on Illumos. This platform exposes the function " @@ -23853,63 +24845,62 @@ msgid "" "slower ``fcntl()`` (``F_GETFD`` and then ``F_SETFD``)." msgstr "" -#: ../../../build/NEWS:16751 +#: ../../../build/NEWS:17375 msgid "" "`bpo-21389 `__: Displaying the " "__qualname__ of the underlying function in the repr of a bound method." msgstr "" -#: ../../../build/NEWS:16754 +#: ../../../build/NEWS:17378 msgid "" "`bpo-22206 `__: Using pthread, " "PyThread_create_key() now sets errno to ENOMEM and returns -1 (error) on " "integer overflow." msgstr "" -#: ../../../build/NEWS:16757 +#: ../../../build/NEWS:17381 msgid "" "`bpo-20184 `__: Argument Clinic based " "signature introspection added for 30 of the builtin functions." msgstr "" -#: ../../../build/NEWS:16760 +#: ../../../build/NEWS:17384 msgid "" "`bpo-22116 `__: C functions and methods " "(of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by " "Wei Wu." msgstr "" -#: ../../../build/NEWS:16763 +#: ../../../build/NEWS:17387 msgid "" "`bpo-22077 `__: Improve index error " "messages for bytearrays, bytes, lists, and tuples by adding 'or slices'. " "Added ', not ' for bytearrays. Original patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:16767 +#: ../../../build/NEWS:17391 msgid "" -"`bpo-20179 `__: Apply Argument Clinic to" -" bytes and bytearray. Patch by Tal Einat." +"`bpo-20179 `__: Apply Argument Clinic to " +"bytes and bytearray. Patch by Tal Einat." msgstr "" -#: ../../../build/NEWS:16770 +#: ../../../build/NEWS:17394 msgid "" "`bpo-22082 `__: Clear interned strings " "in slotdefs." msgstr "" -#: ../../../build/NEWS:16772 +#: ../../../build/NEWS:17396 msgid "Upgrade Unicode database to Unicode 7.0.0." msgstr "" -#: ../../../build/NEWS:16774 +#: ../../../build/NEWS:17398 msgid "" "`bpo-21897 `__: Fix a crash with the " -"f_locals attribute with closure variables when frame.clear() has been " -"called." +"f_locals attribute with closure variables when frame.clear() has been called." msgstr "" -#: ../../../build/NEWS:16777 +#: ../../../build/NEWS:17401 msgid "" "`bpo-21205 `__: Add a new " "``__qualname__`` attribute to generator, the qualified name, and use it in " @@ -23918,169 +24909,168 @@ msgid "" "the code. Use ``gen.gi_code.co_name`` to get the name of the code." msgstr "" -#: ../../../build/NEWS:16783 +#: ../../../build/NEWS:17407 msgid "" "`bpo-21669 `__: With the aid of " -"heuristics in SyntaxError.__init__, the parser now attempts to generate more" -" meaningful (or at least more search engine friendly) error messages when " +"heuristics in SyntaxError.__init__, the parser now attempts to generate more " +"meaningful (or at least more search engine friendly) error messages when " "\"exec\" and \"print\" are used as statements." msgstr "" -#: ../../../build/NEWS:16787 +#: ../../../build/NEWS:17411 msgid "" "`bpo-21642 `__: In the conditional if-" "else expression, allow an integer written with no space between itself and " "the ``else`` keyword (e.g. ``True if 42else False``) to be valid syntax." msgstr "" -#: ../../../build/NEWS:16791 +#: ../../../build/NEWS:17415 msgid "" "`bpo-21523 `__: Fix over-pessimistic " "computation of the stack effect of some opcodes in the compiler. This also " -"fixes a quadratic compilation time issue noticeable when compiling code with" -" a large number of \"and\" and \"or\" operators." +"fixes a quadratic compilation time issue noticeable when compiling code with " +"a large number of \"and\" and \"or\" operators." msgstr "" -#: ../../../build/NEWS:16796 +#: ../../../build/NEWS:17420 msgid "" "`bpo-21418 `__: Fix a crash in the " "builtin function super() when called without argument and without current " "frame (ex: embedded Python)." msgstr "" -#: ../../../build/NEWS:16799 +#: ../../../build/NEWS:17423 msgid "" -"`bpo-21425 `__: Fix flushing of standard" -" streams in the interactive interpreter." +"`bpo-21425 `__: Fix flushing of standard " +"streams in the interactive interpreter." msgstr "" -#: ../../../build/NEWS:16802 +#: ../../../build/NEWS:17426 msgid "" "`bpo-21435 `__: In rare cases, when " "running finalizers on objects in cyclic trash a bad pointer dereference " "could occur due to a subtle flaw in internal iteration logic." msgstr "" -#: ../../../build/NEWS:16806 +#: ../../../build/NEWS:17430 msgid "" "`bpo-21377 `__: PyBytes_Concat() now " "tries to concatenate in-place when the first argument has a reference count " "of 1. Patch by Nikolaus Rath." msgstr "" -#: ../../../build/NEWS:16809 +#: ../../../build/NEWS:17433 msgid "" "`bpo-20355 `__: -W command line options " "now have higher priority than the PYTHONWARNINGS environment variable. " "Patch by Arfrever." msgstr "" -#: ../../../build/NEWS:16812 +#: ../../../build/NEWS:17436 msgid "" -"`bpo-21274 `__: Define PATH_MAX for " -"GNU/Hurd in Python/pythonrun.c." +"`bpo-21274 `__: Define PATH_MAX for GNU/" +"Hurd in Python/pythonrun.c." msgstr "" -#: ../../../build/NEWS:16814 +#: ../../../build/NEWS:17438 msgid "" "`bpo-20904 `__: Support setting FPU " "precision on m68k." msgstr "" -#: ../../../build/NEWS:16816 +#: ../../../build/NEWS:17440 msgid "" "`bpo-21209 `__: Fix sending tuples to " "custom generator objects with the yield from syntax." msgstr "" -#: ../../../build/NEWS:16819 +#: ../../../build/NEWS:17443 msgid "" "`bpo-21193 `__: pow(a, b, c) now raises " -"ValueError rather than TypeError when b is negative. Patch by Josh " -"Rosenberg." +"ValueError rather than TypeError when b is negative. Patch by Josh Rosenberg." msgstr "" -#: ../../../build/NEWS:16822 +#: ../../../build/NEWS:17446 msgid "" "`bpo-21176 `__: PEP 465: Add the '@' " "operator for matrix multiplication." msgstr "" -#: ../../../build/NEWS:16824 +#: ../../../build/NEWS:17448 msgid "" -"`bpo-21134 `__: Fix segfault when str is" -" called on an uninitialized UnicodeEncodeError, UnicodeDecodeError, or " +"`bpo-21134 `__: Fix segfault when str is " +"called on an uninitialized UnicodeEncodeError, UnicodeDecodeError, or " "UnicodeTranslateError object." msgstr "" -#: ../../../build/NEWS:16827 +#: ../../../build/NEWS:17451 msgid "" "`bpo-19537 `__: Fix PyUnicode_DATA() " "alignment under m68k. Patch by Andreas Schwab." msgstr "" -#: ../../../build/NEWS:16830 +#: ../../../build/NEWS:17454 msgid "" -"`bpo-20929 `__: Add a type cast to avoid" -" shifting a negative number." +"`bpo-20929 `__: Add a type cast to avoid " +"shifting a negative number." msgstr "" -#: ../../../build/NEWS:16832 +#: ../../../build/NEWS:17456 msgid "" "`bpo-20731 `__: Properly position in " "source code files even if they are opened in text mode. Patch by Serhiy " "Storchaka." msgstr "" -#: ../../../build/NEWS:16835 +#: ../../../build/NEWS:17459 msgid "" "`bpo-20637 `__: Key-sharing now also " "works for instance dictionaries of subclasses. Patch by Peter Ingebretson." msgstr "" -#: ../../../build/NEWS:16838 +#: ../../../build/NEWS:17462 msgid "" "`bpo-8297 `__: Attributes missing from " "modules now include the module name in the error text. Original patch by " "ysj.ray." msgstr "" -#: ../../../build/NEWS:16841 +#: ../../../build/NEWS:17465 msgid "" "`bpo-19995 `__: %c, %o, %x, and %X now " "raise TypeError on non-integer input." msgstr "" -#: ../../../build/NEWS:16843 +#: ../../../build/NEWS:17467 msgid "" "`bpo-19655 `__: The ASDL parser - used " -"by the build process to generate code for managing the Python AST in C - was" -" rewritten. The new parser is self contained and does not require to carry " +"by the build process to generate code for managing the Python AST in C - was " +"rewritten. The new parser is self contained and does not require to carry " "long the spark.py parser-generator library; spark.py was removed from the " "source base." msgstr "" -#: ../../../build/NEWS:16848 +#: ../../../build/NEWS:17472 msgid "" "`bpo-12546 `__: Allow ``\\x00`` to be " "used as a fill character when using str, int, float, and complex __format__ " "methods." msgstr "" -#: ../../../build/NEWS:16851 +#: ../../../build/NEWS:17475 msgid "" -"`bpo-20480 `__: Add " -"ipaddress.reverse_pointer. Patch by Leon Weber." +"`bpo-20480 `__: Add ipaddress." +"reverse_pointer. Patch by Leon Weber." msgstr "" -#: ../../../build/NEWS:16853 +#: ../../../build/NEWS:17477 msgid "" "`bpo-13598 `__: Modify string.Formatter " -"to support auto-numbering of replacement fields. It now matches the behavior" -" of str.format() in this regard. Patches by Phil Elson and Ramchandra Apte." +"to support auto-numbering of replacement fields. It now matches the behavior " +"of str.format() in this regard. Patches by Phil Elson and Ramchandra Apte." msgstr "" -#: ../../../build/NEWS:16857 +#: ../../../build/NEWS:17481 msgid "" "`bpo-8931 `__: Make alternate formatting " "('#') for type 'c' raise an exception. In versions prior to 3.5, '#' with " @@ -24088,325 +25078,324 @@ msgid "" "Landschoff." msgstr "" -#: ../../../build/NEWS:16861 +#: ../../../build/NEWS:17485 msgid "" "`bpo-23165 `__: Perform overflow checks " "before allocating memory in the _Py_char2wchar function." msgstr "" -#: ../../../build/NEWS:16867 +#: ../../../build/NEWS:17491 msgid "" "`bpo-23399 `__: pyvenv creates relative " "symlinks where possible." msgstr "" -#: ../../../build/NEWS:16869 +#: ../../../build/NEWS:17493 msgid "" "`bpo-20289 `__: cgi.FieldStorage() now " "supports the context management protocol." msgstr "" -#: ../../../build/NEWS:16872 +#: ../../../build/NEWS:17496 msgid "" "`bpo-13128 `__: Print response headers " "for CONNECT requests when debuglevel > 0. Patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:16875 +#: ../../../build/NEWS:17499 msgid "" "`bpo-15381 `__: Optimized io.BytesIO to " "make less allocations and copyings." msgstr "" -#: ../../../build/NEWS:16877 +#: ../../../build/NEWS:17501 msgid "" "`bpo-22818 `__: Splitting on a pattern " "that could match an empty string now raises a warning. Patterns that can " "only match empty strings are now rejected." msgstr "" -#: ../../../build/NEWS:16881 +#: ../../../build/NEWS:17505 msgid "" "`bpo-23099 `__: Closing io.BytesIO with " "exported buffer is rejected now to prevent corrupting exported buffer." msgstr "" -#: ../../../build/NEWS:16884 +#: ../../../build/NEWS:17508 msgid "" "`bpo-23326 `__: Removed __ne__ " "implementations. Since fixing default __ne__ implementation in `bpo-21408 " "`__ they are redundant." msgstr "" -#: ../../../build/NEWS:16887 +#: ../../../build/NEWS:17511 msgid "" -"`bpo-23363 `__: Fix possible overflow in" -" itertools.permutations." +"`bpo-23363 `__: Fix possible overflow in " +"itertools.permutations." msgstr "" -#: ../../../build/NEWS:16889 +#: ../../../build/NEWS:17513 msgid "" -"`bpo-23364 `__: Fix possible overflow in" -" itertools.product." +"`bpo-23364 `__: Fix possible overflow in " +"itertools.product." msgstr "" -#: ../../../build/NEWS:16891 +#: ../../../build/NEWS:17515 msgid "" "`bpo-23366 `__: Fixed possible integer " "overflow in itertools.combinations." msgstr "" -#: ../../../build/NEWS:16893 +#: ../../../build/NEWS:17517 msgid "" "`bpo-23369 `__: Fixed possible integer " "overflow in _json.encode_basestring_ascii." msgstr "" -#: ../../../build/NEWS:16896 +#: ../../../build/NEWS:17520 msgid "" "`bpo-23353 `__: Fix the exception " "handling of generators in PyEval_EvalFrameEx(). At entry, save or swap the " "exception state even if PyEval_EvalFrameEx() is called with throwflag=0. At " -"exit, the exception state is now always restored or swapped, not only if why" -" is WHY_YIELD or WHY_RETURN. Patch co-written with Antoine Pitrou." +"exit, the exception state is now always restored or swapped, not only if why " +"is WHY_YIELD or WHY_RETURN. Patch co-written with Antoine Pitrou." msgstr "" -#: ../../../build/NEWS:16902 +#: ../../../build/NEWS:17526 msgid "" "`bpo-14099 `__: Restored support of " "writing ZIP files to tellable but non-seekable streams." msgstr "" -#: ../../../build/NEWS:16905 +#: ../../../build/NEWS:17529 msgid "" "`bpo-14099 `__: Writing to ZipFile and " "reading multiple ZipExtFiles is threadsafe now." msgstr "" -#: ../../../build/NEWS:16908 +#: ../../../build/NEWS:17532 msgid "" "`bpo-19361 `__: JSON decoder now raises " "JSONDecodeError instead of ValueError." msgstr "" -#: ../../../build/NEWS:16910 +#: ../../../build/NEWS:17534 msgid "" "`bpo-18518 `__: timeit now rejects " "statements which can't be compiled outside a function or a loop (e.g. " "\"return\" or \"break\")." msgstr "" -#: ../../../build/NEWS:16913 +#: ../../../build/NEWS:17537 msgid "" "`bpo-23094 `__: Fixed readline with " "frames in Python implementation of pickle." msgstr "" -#: ../../../build/NEWS:16915 +#: ../../../build/NEWS:17539 msgid "" "`bpo-23268 `__: Fixed bugs in the " "comparison of ipaddress classes." msgstr "" -#: ../../../build/NEWS:16917 +#: ../../../build/NEWS:17541 msgid "" "`bpo-21408 `__: Removed incorrect " -"implementations of __ne__() which didn't returned NotImplemented if __eq__()" -" returned NotImplemented. The default __ne__() now works correctly." +"implementations of __ne__() which didn't returned NotImplemented if __eq__() " +"returned NotImplemented. The default __ne__() now works correctly." msgstr "" -#: ../../../build/NEWS:16921 +#: ../../../build/NEWS:17545 msgid "" -"`bpo-19996 `__: " -":class:`email.feedparser.FeedParser` now handles (malformed) headers with no" -" key rather than assuming the body has started." +"`bpo-19996 `__: :class:`email.feedparser." +"FeedParser` now handles (malformed) headers with no key rather than assuming " +"the body has started." msgstr "" -#: ../../../build/NEWS:16924 +#: ../../../build/NEWS:17548 msgid "" "`bpo-20188 `__: Support Application-" "Layer Protocol Negotiation (ALPN) in the ssl module." msgstr "" -#: ../../../build/NEWS:16927 +#: ../../../build/NEWS:17551 msgid "" "`bpo-23133 `__: Pickling of ipaddress " "objects now produces more compact and portable representation." msgstr "" -#: ../../../build/NEWS:16930 +#: ../../../build/NEWS:17554 msgid "" "`bpo-23248 `__: Update ssl error codes " "from latest OpenSSL git master." msgstr "" -#: ../../../build/NEWS:16932 +#: ../../../build/NEWS:17556 msgid "" "`bpo-23266 `__: Much faster " "implementation of ipaddress.collapse_addresses() when there are many non-" "consecutive addresses." msgstr "" -#: ../../../build/NEWS:16935 +#: ../../../build/NEWS:17559 msgid "" "`bpo-23098 `__: 64-bit dev_t is now " "supported in the os module." msgstr "" -#: ../../../build/NEWS:16937 +#: ../../../build/NEWS:17561 msgid "" "`bpo-21817 `__: When an exception is " -"raised in a task submitted to a ProcessPoolExecutor, the remote traceback is" -" now displayed in the parent process. Patch by Claudiu Popa." +"raised in a task submitted to a ProcessPoolExecutor, the remote traceback is " +"now displayed in the parent process. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:16941 +#: ../../../build/NEWS:17565 msgid "" "`bpo-15955 `__: Add an option to limit " -"output size when decompressing LZMA data. Patch by Nikolaus Rath and Martin" -" Panter." +"output size when decompressing LZMA data. Patch by Nikolaus Rath and Martin " +"Panter." msgstr "" -#: ../../../build/NEWS:16944 +#: ../../../build/NEWS:17568 msgid "" "`bpo-23250 `__: In the http.cookies " "module, capitalize \"HttpOnly\" and \"Secure\" as they are written in the " "standard." msgstr "" -#: ../../../build/NEWS:16947 +#: ../../../build/NEWS:17571 msgid "" "`bpo-23063 `__: In the distutils' check " "command, fix parsing of reST with code or code-block directives." msgstr "" -#: ../../../build/NEWS:16950 +#: ../../../build/NEWS:17574 msgid "" -"`bpo-23209 `__: " -"selectors.BaseSelector.get_key() now raises a RuntimeError if the selector " -"is closed. And selectors.BaseSelector.close() now clears its internal " -"reference to the selector mapping to break a reference cycle. Initial patch " -"written by Martin Richard. (See also: `bpo-23225 " -"`__)" +"`bpo-23209 `__: selectors.BaseSelector." +"get_key() now raises a RuntimeError if the selector is closed. And selectors." +"BaseSelector.close() now clears its internal reference to the selector " +"mapping to break a reference cycle. Initial patch written by Martin Richard. " +"(See also: `bpo-23225 `__)" msgstr "" -#: ../../../build/NEWS:16955 +#: ../../../build/NEWS:17579 msgid "" "`bpo-17911 `__: Provide a way to seed " "the linecache for a PEP-302 module without actually loading the code." msgstr "" -#: ../../../build/NEWS:16958 +#: ../../../build/NEWS:17582 msgid "" -"`bpo-17911 `__: Provide a new object API" -" for traceback, including the ability to not lookup lines at all until the " +"`bpo-17911 `__: Provide a new object API " +"for traceback, including the ability to not lookup lines at all until the " "traceback is actually rendered, without any trace of the original objects " "being kept alive." msgstr "" -#: ../../../build/NEWS:16962 +#: ../../../build/NEWS:17586 msgid "" "`bpo-19777 `__: Provide a home() " "classmethod on Path objects. Contributed by Victor Salgado and Mayank " "Tripathi." msgstr "" -#: ../../../build/NEWS:16965 +#: ../../../build/NEWS:17589 msgid "" "`bpo-23206 `__: Make ``json.dumps(..., " -"ensure_ascii=False)`` as fast as the default case of ``ensure_ascii=True``." -" Patch by Naoki Inada." +"ensure_ascii=False)`` as fast as the default case of ``ensure_ascii=True``. " +"Patch by Naoki Inada." msgstr "" -#: ../../../build/NEWS:16968 +#: ../../../build/NEWS:17592 msgid "" -"`bpo-23185 `__: Add math.inf and " -"math.nan constants." +"`bpo-23185 `__: Add math.inf and math." +"nan constants." msgstr "" -#: ../../../build/NEWS:16970 +#: ../../../build/NEWS:17594 msgid "" -"`bpo-23186 `__: Add " -"ssl.SSLObject.shared_ciphers() and ssl.SSLSocket.shared_ciphers() to fetch " -"the client's list ciphers sent at handshake." +"`bpo-23186 `__: Add ssl.SSLObject." +"shared_ciphers() and ssl.SSLSocket.shared_ciphers() to fetch the client's " +"list ciphers sent at handshake." msgstr "" -#: ../../../build/NEWS:16974 +#: ../../../build/NEWS:17598 msgid "" "`bpo-23143 `__: Remove compatibility " "with OpenSSLs older than 0.9.8." msgstr "" -#: ../../../build/NEWS:16976 +#: ../../../build/NEWS:17600 msgid "" "`bpo-23132 `__: Improve performance and " -"introspection support of comparison methods created by " -"functool.total_ordering." +"introspection support of comparison methods created by functool." +"total_ordering." msgstr "" -#: ../../../build/NEWS:16979 +#: ../../../build/NEWS:17603 msgid "" "`bpo-19776 `__: Add an expanduser() " "method on Path objects." msgstr "" -#: ../../../build/NEWS:16981 +#: ../../../build/NEWS:17605 msgid "" "`bpo-23112 `__: Fix SimpleHTTPServer to " "correctly carry the query string and fragment when it redirects to add a " "trailing slash." msgstr "" -#: ../../../build/NEWS:16984 +#: ../../../build/NEWS:17608 msgid "" "`bpo-21793 `__: Added http.HTTPStatus " "enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND). Patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:16987 +#: ../../../build/NEWS:17611 msgid "" "`bpo-23093 `__: In the io, module allow " "more operations to work on detached streams." msgstr "" -#: ../../../build/NEWS:16990 +#: ../../../build/NEWS:17614 msgid "" -"`bpo-23111 `__: In the ftplib, make " -"ssl.PROTOCOL_SSLv23 the default protocol version." +"`bpo-23111 `__: In the ftplib, make ssl." +"PROTOCOL_SSLv23 the default protocol version." msgstr "" -#: ../../../build/NEWS:16993 +#: ../../../build/NEWS:17617 msgid "" "`bpo-22585 `__: On OpenBSD 5.6 and " -"newer, os.urandom() now calls getentropy(), instead of reading /dev/urandom," -" to get pseudo-random bytes." +"newer, os.urandom() now calls getentropy(), instead of reading /dev/urandom, " +"to get pseudo-random bytes." msgstr "" -#: ../../../build/NEWS:16996 +#: ../../../build/NEWS:17620 msgid "" "`bpo-19104 `__: pprint now produces " "evaluable output for wrapped strings." msgstr "" -#: ../../../build/NEWS:16998 +#: ../../../build/NEWS:17622 msgid "" "`bpo-23071 `__: Added missing names to " "codecs.__all__. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:17000 +#: ../../../build/NEWS:17624 msgid "" "`bpo-22783 `__: Pickling now uses the " "NEWOBJ opcode instead of the NEWOBJ_EX opcode if possible." msgstr "" -#: ../../../build/NEWS:17003 +#: ../../../build/NEWS:17627 msgid "" "`bpo-15513 `__: Added a __sizeof__ " "implementation for pickle classes." msgstr "" -#: ../../../build/NEWS:17005 +#: ../../../build/NEWS:17629 msgid "" "`bpo-19858 `__: pickletools.optimize() " "now aware of the MEMOIZE opcode, can produce more compact result and no " @@ -24414,20 +25403,20 @@ msgid "" "together with PUT or BINPUT opcodes." msgstr "" -#: ../../../build/NEWS:17009 +#: ../../../build/NEWS:17633 msgid "" -"`bpo-22095 `__: Fixed " -"HTTPConnection.set_tunnel with default port. The port value in the host " -"header was set to \"None\". Patch by Demian Brecht." +"`bpo-22095 `__: Fixed HTTPConnection." +"set_tunnel with default port. The port value in the host header was set to " +"\"None\". Patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:17012 +#: ../../../build/NEWS:17636 msgid "" "`bpo-23016 `__: A warning no longer " "produces an AttributeError when the program is run with pythonw.exe." msgstr "" -#: ../../../build/NEWS:17015 +#: ../../../build/NEWS:17639 msgid "" "`bpo-21775 `__: shutil.copytree(): fix " "crash when copying to VFAT. An exception handler assumed that OSError " @@ -24436,777 +25425,776 @@ msgid "" "presumably, any other non-Windows OS). Patch by Greg Ward." msgstr "" -#: ../../../build/NEWS:17021 +#: ../../../build/NEWS:17645 msgid "" -"`bpo-1218234 `__: Fix " -"inspect.getsource() to load updated source of reloaded module. Initial patch" -" by Berker Peksag." +"`bpo-1218234 `__: Fix inspect." +"getsource() to load updated source of reloaded module. Initial patch by " +"Berker Peksag." msgstr "" -#: ../../../build/NEWS:17024 +#: ../../../build/NEWS:17648 msgid "" "`bpo-21740 `__: Support wrapped " "callables in doctest. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17026 +#: ../../../build/NEWS:17650 msgid "" -"`bpo-23009 `__: Make sure " -"selectors.EpollSelecrtor.select() works when no FD is registered." +"`bpo-23009 `__: Make sure selectors." +"EpollSelecrtor.select() works when no FD is registered." msgstr "" -#: ../../../build/NEWS:17029 +#: ../../../build/NEWS:17653 msgid "" "`bpo-22959 `__: In the constructor of " "http.client.HTTPSConnection, prefer the context's check_hostname attribute " "over the *check_hostname* parameter." msgstr "" -#: ../../../build/NEWS:17032 +#: ../../../build/NEWS:17656 msgid "" -"`bpo-22696 `__: Add function " -":func:`sys.is_finalizing` to know about interpreter shutdown." +"`bpo-22696 `__: Add function :func:`sys." +"is_finalizing` to know about interpreter shutdown." msgstr "" -#: ../../../build/NEWS:17035 +#: ../../../build/NEWS:17659 msgid "" "`bpo-16043 `__: Add a default limit for " "the amount of data xmlrpclib.gzip_decode will return. This resolves " "CVE-2013-1753." msgstr "" -#: ../../../build/NEWS:17038 +#: ../../../build/NEWS:17662 msgid "" -"`bpo-14099 `__: ZipFile.open() no longer" -" reopen the underlying file. Objects returned by ZipFile.open() can now " +"`bpo-14099 `__: ZipFile.open() no longer " +"reopen the underlying file. Objects returned by ZipFile.open() can now " "operate independently of the ZipFile even if the ZipFile was created by " "passing in a file-like object as the first argument to the constructor." msgstr "" -#: ../../../build/NEWS:17043 +#: ../../../build/NEWS:17667 msgid "" -"`bpo-22966 `__: Fix __pycache__ pyc file" -" name clobber when pyc_compile is asked to compile a source file containing " +"`bpo-22966 `__: Fix __pycache__ pyc file " +"name clobber when pyc_compile is asked to compile a source file containing " "multiple dots in the source file name." msgstr "" -#: ../../../build/NEWS:17046 +#: ../../../build/NEWS:17670 msgid "" "`bpo-21971 `__: Update turtledemo doc " "and add module to the index." msgstr "" -#: ../../../build/NEWS:17048 +#: ../../../build/NEWS:17672 msgid "" "`bpo-21032 `__: Fixed socket leak if " "HTTPConnection.getresponse() fails. Original patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:17051 +#: ../../../build/NEWS:17675 msgid "" -"`bpo-22407 `__: Deprecated the use of " -"re.LOCALE flag with str patterns or re.ASCII. It was newer worked." +"`bpo-22407 `__: Deprecated the use of re." +"LOCALE flag with str patterns or re.ASCII. It was newer worked." msgstr "" -#: ../../../build/NEWS:17054 +#: ../../../build/NEWS:17678 msgid "" "`bpo-22902 `__: The \"ip\" command is " -"now used on Linux to determine MAC address in uuid.getnode(). Pach by Bruno" -" Cauet." +"now used on Linux to determine MAC address in uuid.getnode(). Pach by Bruno " +"Cauet." msgstr "" -#: ../../../build/NEWS:17057 +#: ../../../build/NEWS:17681 msgid "" "`bpo-22960 `__: Add a context argument " "to xmlrpclib.ServerProxy constructor." msgstr "" -#: ../../../build/NEWS:17059 +#: ../../../build/NEWS:17683 msgid "" -"`bpo-22389 `__: Add " -"contextlib.redirect_stderr()." +"`bpo-22389 `__: Add contextlib." +"redirect_stderr()." msgstr "" -#: ../../../build/NEWS:17061 +#: ../../../build/NEWS:17685 msgid "" "`bpo-21356 `__: Make ssl.RAND_egd() " "optional to support LibreSSL. The availability of the function is checked " "during the compilation. Patch written by Bernard Spil." msgstr "" -#: ../../../build/NEWS:17065 +#: ../../../build/NEWS:17689 msgid "" "`bpo-22915 `__: SAX parser now supports " "files opened with file descriptor or bytes path." msgstr "" -#: ../../../build/NEWS:17068 +#: ../../../build/NEWS:17692 msgid "" "`bpo-22609 `__: Constructors and update " "methods of mapping classes in the collections module now accept the self " "keyword argument." msgstr "" -#: ../../../build/NEWS:17071 +#: ../../../build/NEWS:17695 msgid "" -"`bpo-22940 `__: Add " -"readline.append_history_file." +"`bpo-22940 `__: Add readline." +"append_history_file." msgstr "" -#: ../../../build/NEWS:17073 +#: ../../../build/NEWS:17697 msgid "" -"`bpo-19676 `__: Added the " -"\"namereplace\" error handler." +"`bpo-19676 `__: Added the \"namereplace" +"\" error handler." msgstr "" -#: ../../../build/NEWS:17075 +#: ../../../build/NEWS:17699 msgid "" "`bpo-22788 `__: Add *context* parameter " "to logging.handlers.HTTPHandler." msgstr "" -#: ../../../build/NEWS:17077 +#: ../../../build/NEWS:17701 msgid "" -"`bpo-22921 `__: Allow SSLContext to take" -" the *hostname* parameter even if OpenSSL doesn't support SNI." +"`bpo-22921 `__: Allow SSLContext to take " +"the *hostname* parameter even if OpenSSL doesn't support SNI." msgstr "" -#: ../../../build/NEWS:17080 +#: ../../../build/NEWS:17704 msgid "" -"`bpo-22894 `__: TestCase.subTest() would" -" cause the test suite to be stopped when in failfast mode, even in the " +"`bpo-22894 `__: TestCase.subTest() would " +"cause the test suite to be stopped when in failfast mode, even in the " "absence of failures." msgstr "" -#: ../../../build/NEWS:17083 +#: ../../../build/NEWS:17707 msgid "" "`bpo-22796 `__: HTTP cookie parsing is " "now stricter, in order to protect against potential injection attacks." msgstr "" -#: ../../../build/NEWS:17086 +#: ../../../build/NEWS:17710 msgid "" "`bpo-22370 `__: Windows detection in " "pathlib is now more robust." msgstr "" -#: ../../../build/NEWS:17088 +#: ../../../build/NEWS:17712 msgid "" "`bpo-22841 `__: Reject coroutines in " "asyncio add_signal_handler(). Patch by Ludovic.Gasc." msgstr "" -#: ../../../build/NEWS:17091 +#: ../../../build/NEWS:17715 msgid "" -"`bpo-19494 `__: Added " -"urllib.request.HTTPBasicPriorAuthHandler. Patch by Matej Cepl." +"`bpo-19494 `__: Added urllib.request." +"HTTPBasicPriorAuthHandler. Patch by Matej Cepl." msgstr "" -#: ../../../build/NEWS:17094 +#: ../../../build/NEWS:17718 msgid "" "`bpo-22578 `__: Added attributes to the " "re.error class." msgstr "" -#: ../../../build/NEWS:17096 +#: ../../../build/NEWS:17720 msgid "" -"`bpo-22849 `__: Fix possible double free" -" in the io.TextIOWrapper constructor." +"`bpo-22849 `__: Fix possible double free " +"in the io.TextIOWrapper constructor." msgstr "" -#: ../../../build/NEWS:17098 +#: ../../../build/NEWS:17722 msgid "" "`bpo-12728 `__: Different Unicode " -"characters having the same uppercase but different lowercase are now matched" -" in case-insensitive regular expressions." +"characters having the same uppercase but different lowercase are now matched " +"in case-insensitive regular expressions." msgstr "" -#: ../../../build/NEWS:17102 +#: ../../../build/NEWS:17726 msgid "" "`bpo-22821 `__: Fixed fcntl() with " "integer argument on 64-bit big-endian platforms." msgstr "" -#: ../../../build/NEWS:17105 +#: ../../../build/NEWS:17729 msgid "" "`bpo-21650 `__: Add an `--sort-keys` " "option to json.tool CLI." msgstr "" -#: ../../../build/NEWS:17107 +#: ../../../build/NEWS:17731 msgid "" "`bpo-22824 `__: Updated reprlib output " "format for sets to use set literals. Patch contributed by Berker Peksag." msgstr "" -#: ../../../build/NEWS:17110 +#: ../../../build/NEWS:17734 msgid "" "`bpo-22824 `__: Updated reprlib output " -"format for arrays to display empty arrays without an unnecessary empty list." -" Suggested by Serhiy Storchaka." +"format for arrays to display empty arrays without an unnecessary empty " +"list. Suggested by Serhiy Storchaka." msgstr "" -#: ../../../build/NEWS:17113 +#: ../../../build/NEWS:17737 msgid "" -"`bpo-22406 `__: Fixed the uu_codec codec" -" incorrectly ported to 3.x. Based on patch by Martin Panter." +"`bpo-22406 `__: Fixed the uu_codec codec " +"incorrectly ported to 3.x. Based on patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:17116 +#: ../../../build/NEWS:17740 msgid "" "`bpo-17293 `__: uuid.getnode() now " "determines MAC address on AIX using netstat. Based on patch by Aivars " "Kalvāns." msgstr "" -#: ../../../build/NEWS:17119 +#: ../../../build/NEWS:17743 msgid "" -"`bpo-22769 `__: Fixed " -"ttk.Treeview.tag_has() when called without arguments." +"`bpo-22769 `__: Fixed ttk.Treeview." +"tag_has() when called without arguments." msgstr "" -#: ../../../build/NEWS:17121 +#: ../../../build/NEWS:17745 msgid "" "`bpo-22417 `__: Verify certificates by " "default in httplib (PEP 476)." msgstr "" -#: ../../../build/NEWS:17123 +#: ../../../build/NEWS:17747 msgid "" -"`bpo-22775 `__: Fixed unpickling of " -"http.cookies.SimpleCookie with protocol 2 and above. Patch by Tim Graham." +"`bpo-22775 `__: Fixed unpickling of http." +"cookies.SimpleCookie with protocol 2 and above. Patch by Tim Graham." msgstr "" -#: ../../../build/NEWS:17126 +#: ../../../build/NEWS:17750 msgid "" "`bpo-22776 `__: Brought excluded code " "into the scope of a try block in SysLogHandler.emit()." msgstr "" -#: ../../../build/NEWS:17129 +#: ../../../build/NEWS:17753 msgid "" "`bpo-22665 `__: Add missing " "get_terminal_size and SameFileError to shutil.__all__." msgstr "" -#: ../../../build/NEWS:17132 +#: ../../../build/NEWS:17756 msgid "" "`bpo-6623 `__: Remove deprecated Netrc " "class in the ftplib module. Patch by Matt Chaput." msgstr "" -#: ../../../build/NEWS:17135 +#: ../../../build/NEWS:17759 msgid "" "`bpo-17381 `__: Fixed handling of case-" "insensitive ranges in regular expressions." msgstr "" -#: ../../../build/NEWS:17138 +#: ../../../build/NEWS:17762 msgid "" "`bpo-22410 `__: Module level functions " "in the re module now cache compiled locale-dependent regular expressions " "taking into account the locale." msgstr "" -#: ../../../build/NEWS:17141 +#: ../../../build/NEWS:17765 msgid "" -"`bpo-22759 `__: Query methods on " -"pathlib.Path() (exists(), is_dir(), etc.) now return False when the " -"underlying stat call raises NotADirectoryError." +"`bpo-22759 `__: Query methods on pathlib." +"Path() (exists(), is_dir(), etc.) now return False when the underlying stat " +"call raises NotADirectoryError." msgstr "" -#: ../../../build/NEWS:17144 +#: ../../../build/NEWS:17768 msgid "" "`bpo-8876 `__: distutils now falls back " "to copying files when hard linking doesn't work. This allows use with " "special filesystems such as VirtualBox shared folders." msgstr "" -#: ../../../build/NEWS:17148 +#: ../../../build/NEWS:17772 msgid "" "`bpo-22217 `__: Implemented reprs of " "classes in the zipfile module." msgstr "" -#: ../../../build/NEWS:17150 +#: ../../../build/NEWS:17774 msgid "" -"`bpo-22457 `__: Honour load_tests in the" -" start_dir of discovery." +"`bpo-22457 `__: Honour load_tests in the " +"start_dir of discovery." msgstr "" -#: ../../../build/NEWS:17152 +#: ../../../build/NEWS:17776 msgid "" "`bpo-18216 `__: gettext now raises an " "error when a .mo file has an unsupported major version number. Patch by " "Aaron Hill." msgstr "" -#: ../../../build/NEWS:17155 +#: ../../../build/NEWS:17779 msgid "" -"`bpo-13918 `__: Provide a " -"locale.delocalize() function which can remove locale-specific number " -"formatting from a string representing a number, without then converting it " -"to a specific type. Patch by Cédric Krier." +"`bpo-13918 `__: Provide a locale." +"delocalize() function which can remove locale-specific number formatting " +"from a string representing a number, without then converting it to a " +"specific type. Patch by Cédric Krier." msgstr "" -#: ../../../build/NEWS:17159 +#: ../../../build/NEWS:17783 msgid "" "`bpo-22676 `__: Make the pickling of " "global objects which don't have a __module__ attribute less slow." msgstr "" -#: ../../../build/NEWS:17162 +#: ../../../build/NEWS:17786 msgid "" -"`bpo-18853 `__: Fixed ResourceWarning in" -" shlex.__nain__." +"`bpo-18853 `__: Fixed ResourceWarning in " +"shlex.__nain__." msgstr "" -#: ../../../build/NEWS:17164 +#: ../../../build/NEWS:17788 msgid "" "`bpo-9351 `__: Defaults set with " -"set_defaults on an argparse subparser are no longer ignored when also set on" -" the parent parser." +"set_defaults on an argparse subparser are no longer ignored when also set on " +"the parent parser." msgstr "" -#: ../../../build/NEWS:17167 +#: ../../../build/NEWS:17791 msgid "" "`bpo-7559 `__: unittest test loading " "ImportErrors are reported as import errors with their import exception " "rather than as attribute errors after the import has already failed." msgstr "" -#: ../../../build/NEWS:17171 +#: ../../../build/NEWS:17795 msgid "" "`bpo-19746 `__: Make it possible to " -"examine the errors from unittest discovery without executing the test suite." -" The new `errors` attribute on TestLoader exposes these non-fatal errors " +"examine the errors from unittest discovery without executing the test suite. " +"The new `errors` attribute on TestLoader exposes these non-fatal errors " "encountered during discovery." msgstr "" -#: ../../../build/NEWS:17175 +#: ../../../build/NEWS:17799 msgid "" -"`bpo-21991 `__: Make " -"email.headerregistry's header 'params' attributes be read-only " +"`bpo-21991 `__: Make email." +"headerregistry's header 'params' attributes be read-only " "(MappingProxyType). Previously the dictionary was modifiable but a new one " "was created on each access of the attribute." msgstr "" -#: ../../../build/NEWS:17179 +#: ../../../build/NEWS:17803 msgid "" "`bpo-22638 `__: SSLv3 is now disabled " "throughout the standard library. It can still be enabled by instantiating a " "SSLContext manually." msgstr "" -#: ../../../build/NEWS:17182 +#: ../../../build/NEWS:17806 msgid "" "`bpo-22641 `__: In asyncio, the default " -"SSL context for client connections is now created using " -"ssl.create_default_context(), for stronger security." +"SSL context for client connections is now created using ssl." +"create_default_context(), for stronger security." msgstr "" -#: ../../../build/NEWS:17185 +#: ../../../build/NEWS:17809 msgid "" -"`bpo-17401 `__: Include closefd in " -"io.FileIO repr." +"`bpo-17401 `__: Include closefd in io." +"FileIO repr." msgstr "" -#: ../../../build/NEWS:17187 +#: ../../../build/NEWS:17811 msgid "" "`bpo-21338 `__: Add silent mode for " -"compileall. quiet parameters of compile_{dir, file, path} functions now have" -" a multilevel value. Also, -q option of the CLI now have a multilevel value." -" Patch by Thomas Kluyver." +"compileall. quiet parameters of compile_{dir, file, path} functions now have " +"a multilevel value. Also, -q option of the CLI now have a multilevel value. " +"Patch by Thomas Kluyver." msgstr "" -#: ../../../build/NEWS:17191 +#: ../../../build/NEWS:17815 msgid "" "`bpo-20152 `__: Convert the array and " "cmath modules to Argument Clinic." msgstr "" -#: ../../../build/NEWS:17193 +#: ../../../build/NEWS:17817 msgid "" "`bpo-18643 `__: Add socket.socketpair() " "on Windows." msgstr "" -#: ../../../build/NEWS:17195 +#: ../../../build/NEWS:17819 msgid "" "`bpo-22435 `__: Fix a file descriptor " "leak when socketserver bind fails." msgstr "" -#: ../../../build/NEWS:17197 +#: ../../../build/NEWS:17821 msgid "" -"`bpo-13096 `__: Fixed segfault in CTypes" -" POINTER handling of large values." +"`bpo-13096 `__: Fixed segfault in CTypes " +"POINTER handling of large values." msgstr "" -#: ../../../build/NEWS:17199 +#: ../../../build/NEWS:17823 msgid "" -"`bpo-11694 `__: Raise ConversionError in" -" xdrlib as documented. Patch by Filip Gruszczyński and Claudiu Popa." +"`bpo-11694 `__: Raise ConversionError in " +"xdrlib as documented. Patch by Filip Gruszczyński and Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17202 +#: ../../../build/NEWS:17826 msgid "" "`bpo-19380 `__: Optimized parsing of " "regular expressions." msgstr "" -#: ../../../build/NEWS:17204 +#: ../../../build/NEWS:17828 msgid "" -"`bpo-1519638 `__: Now unmatched groups" -" are replaced with empty strings in re.sub() and re.subn()." +"`bpo-1519638 `__: Now unmatched groups " +"are replaced with empty strings in re.sub() and re.subn()." msgstr "" -#: ../../../build/NEWS:17207 +#: ../../../build/NEWS:17831 msgid "" "`bpo-18615 `__: sndhdr.what/whathdr now " "return a namedtuple." msgstr "" -#: ../../../build/NEWS:17209 +#: ../../../build/NEWS:17833 msgid "" "`bpo-22462 `__: Fix pyexpat's creation " "of a dummy frame to make it appear in exception tracebacks." msgstr "" -#: ../../../build/NEWS:17212 +#: ../../../build/NEWS:17836 msgid "" "`bpo-21965 `__: Add support for in-" "memory SSL to the ssl module. Patch by Geert Jansen." msgstr "" -#: ../../../build/NEWS:17215 +#: ../../../build/NEWS:17839 msgid "" "`bpo-21173 `__: Fix len() on a " "WeakKeyDictionary when .clear() was called with an iterator alive." msgstr "" -#: ../../../build/NEWS:17218 +#: ../../../build/NEWS:17842 msgid "" "`bpo-11866 `__: Eliminated race " "condition in the computation of names for new threads." msgstr "" -#: ../../../build/NEWS:17221 +#: ../../../build/NEWS:17845 msgid "" "`bpo-21905 `__: Avoid RuntimeError in " "pickle.whichmodule() when sys.modules is mutated while iterating. Patch by " "Olivier Grisel." msgstr "" -#: ../../../build/NEWS:17224 +#: ../../../build/NEWS:17848 msgid "" -"`bpo-11271 `__: " -"concurrent.futures.Executor.map() now takes a *chunksize* argument to allow " -"batching of tasks in child processes and improve performance of " -"ProcessPoolExecutor. Patch by Dan O'Reilly." +"`bpo-11271 `__: concurrent.futures." +"Executor.map() now takes a *chunksize* argument to allow batching of tasks " +"in child processes and improve performance of ProcessPoolExecutor. Patch by " +"Dan O'Reilly." msgstr "" -#: ../../../build/NEWS:17228 +#: ../../../build/NEWS:17852 msgid "" -"`bpo-21883 `__: os.path.join() and " -"os.path.relpath() now raise a TypeError with more helpful error message for " +"`bpo-21883 `__: os.path.join() and os." +"path.relpath() now raise a TypeError with more helpful error message for " "unsupported or mismatched types of arguments." msgstr "" -#: ../../../build/NEWS:17232 +#: ../../../build/NEWS:17856 msgid "" "`bpo-22219 `__: The zipfile module CLI " "now adds entries for directories (including empty directories) in ZIP file." msgstr "" -#: ../../../build/NEWS:17235 +#: ../../../build/NEWS:17859 msgid "" -"`bpo-22449 `__: In the " -"ssl.SSLContext.load_default_certs, consult the environmental variables " -"SSL_CERT_DIR and SSL_CERT_FILE on Windows." +"`bpo-22449 `__: In the ssl.SSLContext." +"load_default_certs, consult the environmental variables SSL_CERT_DIR and " +"SSL_CERT_FILE on Windows." msgstr "" -#: ../../../build/NEWS:17238 +#: ../../../build/NEWS:17862 msgid "" "`bpo-22508 `__: The email.__version__ " "variable has been removed; the email code is no longer shipped separately " "from the stdlib, and __version__ hasn't been updated in several releases." msgstr "" -#: ../../../build/NEWS:17242 +#: ../../../build/NEWS:17866 msgid "" "`bpo-20076 `__: Added non derived UTF-8 " "aliases to locale aliases table." msgstr "" -#: ../../../build/NEWS:17244 +#: ../../../build/NEWS:17868 msgid "" "`bpo-20079 `__: Added locales supported " "in glibc 2.18 to locale alias table." msgstr "" -#: ../../../build/NEWS:17246 +#: ../../../build/NEWS:17870 msgid "" "`bpo-20218 `__: Added convenience " "methods read_text/write_text and read_bytes/ write_bytes to pathlib.Path " "objects." msgstr "" -#: ../../../build/NEWS:17249 +#: ../../../build/NEWS:17873 msgid "" "`bpo-22396 `__: On 32-bit AIX platform, " "don't expose os.posix_fadvise() nor os.posix_fallocate() because their " "prototypes in system headers are wrong." msgstr "" -#: ../../../build/NEWS:17252 +#: ../../../build/NEWS:17876 msgid "" -"`bpo-22517 `__: When an " -"io.BufferedRWPair object is deallocated, clear its weakrefs." +"`bpo-22517 `__: When an io." +"BufferedRWPair object is deallocated, clear its weakrefs." msgstr "" -#: ../../../build/NEWS:17255 +#: ../../../build/NEWS:17879 msgid "" "`bpo-22437 `__: Number of capturing " "groups in regular expression is no longer limited by 100." msgstr "" -#: ../../../build/NEWS:17258 +#: ../../../build/NEWS:17882 msgid "" "`bpo-17442 `__: InteractiveInterpreter " "now displays the full chained traceback in its showtraceback method, to " "match the built in interactive interpreter." msgstr "" -#: ../../../build/NEWS:17262 +#: ../../../build/NEWS:17886 msgid "" "`bpo-23392 `__: Added tests for marshal " "C API that works with FILE*." msgstr "" -#: ../../../build/NEWS:17264 +#: ../../../build/NEWS:17888 msgid "" "`bpo-10510 `__: distutils register and " "upload methods now use HTML standards compliant CRLF line endings." msgstr "" -#: ../../../build/NEWS:17267 +#: ../../../build/NEWS:17891 msgid "" "`bpo-9850 `__: Fixed macpath.join() for " "empty first component. Patch by Oleg Oshmyan." msgstr "" -#: ../../../build/NEWS:17270 +#: ../../../build/NEWS:17894 msgid "" "`bpo-5309 `__: distutils' build and " -"build_ext commands now accept a ``-j`` option to enable parallel building of" -" extension modules." +"build_ext commands now accept a ``-j`` option to enable parallel building of " +"extension modules." msgstr "" -#: ../../../build/NEWS:17273 +#: ../../../build/NEWS:17897 msgid "" "`bpo-22448 `__: Improve canceled timer " -"handles cleanup to prevent unbound memory usage. Patch by Joshua Moore-" -"Oliva." +"handles cleanup to prevent unbound memory usage. Patch by Joshua Moore-Oliva." msgstr "" -#: ../../../build/NEWS:17276 +#: ../../../build/NEWS:17900 msgid "" "`bpo-22427 `__: TemporaryDirectory no " "longer attempts to clean up twice when used in the with statement in " "generator." msgstr "" -#: ../../../build/NEWS:17279 +#: ../../../build/NEWS:17903 msgid "" "`bpo-22362 `__: Forbidden ambiguous " "octal escapes out of range 0-0o377 in regular expressions." msgstr "" -#: ../../../build/NEWS:17282 +#: ../../../build/NEWS:17906 msgid "" -"`bpo-20912 `__: Now directories added to" -" ZIP file have correct Unix and MS-DOS directory attributes." +"`bpo-20912 `__: Now directories added to " +"ZIP file have correct Unix and MS-DOS directory attributes." msgstr "" -#: ../../../build/NEWS:17285 +#: ../../../build/NEWS:17909 msgid "" "`bpo-21866 `__: ZipFile.close() no " "longer writes ZIP64 central directory records if allowZip64 is false." msgstr "" -#: ../../../build/NEWS:17288 +#: ../../../build/NEWS:17912 msgid "" -"`bpo-22278 `__: Fix urljoin problem with" -" relative urls, a regression observed after changes to issue22118 were " +"`bpo-22278 `__: Fix urljoin problem with " +"relative urls, a regression observed after changes to issue22118 were " "submitted." msgstr "" -#: ../../../build/NEWS:17291 +#: ../../../build/NEWS:17915 msgid "" "`bpo-22415 `__: Fixed debugging output " "of the GROUPREF_EXISTS opcode in the re module. Removed trailing spaces in " "debugging output." msgstr "" -#: ../../../build/NEWS:17294 +#: ../../../build/NEWS:17918 msgid "" "`bpo-22423 `__: Unhandled exception in " "thread no longer causes unhandled AttributeError when sys.stderr is None." msgstr "" -#: ../../../build/NEWS:17297 +#: ../../../build/NEWS:17921 msgid "" "`bpo-21332 `__: Ensure that " "``bufsize=1`` in subprocess.Popen() selects line buffering, rather than " "block buffering. Patch by Akira Li." msgstr "" -#: ../../../build/NEWS:17300 +#: ../../../build/NEWS:17924 msgid "" -"`bpo-21091 `__: Fix API bug: " -"email.message.EmailMessage.is_attachment is now a method." +"`bpo-21091 `__: Fix API bug: email." +"message.EmailMessage.is_attachment is now a method." msgstr "" -#: ../../../build/NEWS:17303 +#: ../../../build/NEWS:17927 msgid "" -"`bpo-21079 `__: Fix " -"email.message.EmailMessage.is_attachment to return the correct result when " -"the header has parameters as well as a value." +"`bpo-21079 `__: Fix email.message." +"EmailMessage.is_attachment to return the correct result when the header has " +"parameters as well as a value." msgstr "" -#: ../../../build/NEWS:17306 +#: ../../../build/NEWS:17930 msgid "" -"`bpo-22247 `__: Add NNTPError to " -"nntplib.__all__." +"`bpo-22247 `__: Add NNTPError to nntplib." +"__all__." msgstr "" -#: ../../../build/NEWS:17308 +#: ../../../build/NEWS:17932 msgid "" "`bpo-22366 `__: urllib.request.urlopen " "will accept a context object (SSLContext) as an argument which will then be " "used for HTTPS connection. Patch by Alex Gaynor." msgstr "" -#: ../../../build/NEWS:17312 +#: ../../../build/NEWS:17936 msgid "" "`bpo-4180 `__: The warnings registries " "are now reset when the filters are modified." msgstr "" -#: ../../../build/NEWS:17315 +#: ../../../build/NEWS:17939 msgid "" "`bpo-22419 `__: Limit the length of " "incoming HTTP request in wsgiref server to 65536 bytes and send a 414 error " "code for higher lengths. Patch contributed by Devin Cook." msgstr "" -#: ../../../build/NEWS:17319 +#: ../../../build/NEWS:17943 msgid "" "Lax cookie parsing in http.cookies could be a security issue when combined " "with non-standard cookie handling in some Web browsers. Reported by Sergey " "Bobrov." msgstr "" -#: ../../../build/NEWS:17323 +#: ../../../build/NEWS:17947 msgid "" "`bpo-20537 `__: logging methods now " "accept an exception instance as well as a Boolean value or exception tuple. " "Thanks to Yury Selivanov for the patch." msgstr "" -#: ../../../build/NEWS:17326 +#: ../../../build/NEWS:17950 msgid "" "`bpo-22384 `__: An exception in Tkinter " "callback no longer crashes the program when it is run with pythonw.exe." msgstr "" -#: ../../../build/NEWS:17329 +#: ../../../build/NEWS:17953 msgid "" "`bpo-22168 `__: Prevent turtle " "AttributeError with non-default Canvas on OS X." msgstr "" -#: ../../../build/NEWS:17331 +#: ../../../build/NEWS:17955 msgid "" "`bpo-21147 `__: sqlite3 now raises an " -"exception if the request contains a null character instead of truncating it." -" Based on patch by Victor Stinner." +"exception if the request contains a null character instead of truncating " +"it. Based on patch by Victor Stinner." msgstr "" -#: ../../../build/NEWS:17334 +#: ../../../build/NEWS:17958 msgid "" "`bpo-13968 `__: The glob module now " "supports recursive search in subdirectories using the ``**`` pattern." msgstr "" -#: ../../../build/NEWS:17337 +#: ../../../build/NEWS:17961 msgid "" -"`bpo-21951 `__: Fixed a crash in Tkinter" -" on AIX when called Tcl command with empty string or tuple argument." +"`bpo-21951 `__: Fixed a crash in Tkinter " +"on AIX when called Tcl command with empty string or tuple argument." msgstr "" -#: ../../../build/NEWS:17340 +#: ../../../build/NEWS:17964 msgid "" "`bpo-21951 `__: Tkinter now most likely " "raises MemoryError instead of crash if the memory allocation fails." msgstr "" -#: ../../../build/NEWS:17343 +#: ../../../build/NEWS:17967 msgid "" "`bpo-22338 `__: Fix a crash in the json " "module on memory allocation failure." msgstr "" -#: ../../../build/NEWS:17345 +#: ../../../build/NEWS:17969 msgid "" "`bpo-12410 `__: imaplib.IMAP4 now " "supports the context management protocol. Original patch by Tarek Ziadé." msgstr "" -#: ../../../build/NEWS:17348 +#: ../../../build/NEWS:17972 msgid "" "`bpo-21270 `__: We now override tuple " "methods in mock.call objects so that they can be used as normal call " "attributes." msgstr "" -#: ../../../build/NEWS:17351 +#: ../../../build/NEWS:17975 msgid "" "`bpo-16662 `__: load_tests() is now " "unconditionally run when it is present in a package's __init__.py. " "TestLoader.loadTestsFromModule() still accepts use_load_tests, but it is " -"deprecated and ignored. A new keyword-only attribute `pattern` is added and" -" documented. Patch given by Robert Collins, tweaked by Barry Warsaw." +"deprecated and ignored. A new keyword-only attribute `pattern` is added and " +"documented. Patch given by Robert Collins, tweaked by Barry Warsaw." msgstr "" -#: ../../../build/NEWS:17357 +#: ../../../build/NEWS:17981 msgid "" "`bpo-22226 `__: First letter no longer " "is stripped from the \"status\" key in the result of Treeview.heading()." msgstr "" -#: ../../../build/NEWS:17360 +#: ../../../build/NEWS:17984 msgid "" "`bpo-19524 `__: Fixed resource leak in " "the HTTP connection when an invalid response is received. Patch by Martin " "Panter." msgstr "" -#: ../../../build/NEWS:17363 +#: ../../../build/NEWS:17987 msgid "" "`bpo-20421 `__: Add a .version() method " "to SSL sockets exposing the actual protocol version in use." msgstr "" -#: ../../../build/NEWS:17366 +#: ../../../build/NEWS:17990 msgid "" "`bpo-19546 `__: configparser exceptions " "no longer expose implementation details. Chained KeyErrors are removed, " "which leads to cleaner tracebacks. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17370 +#: ../../../build/NEWS:17994 msgid "" "`bpo-22051 `__: turtledemo no longer " "reloads examples to re-run them. Initialization of variables and gui setup " @@ -25214,14 +26202,14 @@ msgid "" "on import." msgstr "" -#: ../../../build/NEWS:17374 +#: ../../../build/NEWS:17998 msgid "" "`bpo-21933 `__: Turtledemo users can " "change the code font size with a menu selection or control(command) '-' or " "'+' or control-mousewheel. Original patch by Lita Cho." msgstr "" -#: ../../../build/NEWS:17378 +#: ../../../build/NEWS:18002 msgid "" "`bpo-21597 `__: The separator between " "the turtledemo text pane and the drawing canvas can now be grabbed and " @@ -25230,51 +26218,51 @@ msgid "" "screens. Original patches by Jan Kanis and Lita Cho." msgstr "" -#: ../../../build/NEWS:17384 +#: ../../../build/NEWS:18008 msgid "" "`bpo-18132 `__: Turtledemo buttons no " "longer disappear when the window is shrunk. Original patches by Jan Kanis " "and Lita Cho." msgstr "" -#: ../../../build/NEWS:17387 +#: ../../../build/NEWS:18011 msgid "" "`bpo-22043 `__: time.monotonic() is now " -"always available. ``threading.Lock.acquire()``, " -"``threading.RLock.acquire()`` and socket operations now use a monotonic " -"clock, instead of the system clock, when a timeout is used." +"always available. ``threading.Lock.acquire()``, ``threading.RLock." +"acquire()`` and socket operations now use a monotonic clock, instead of the " +"system clock, when a timeout is used." msgstr "" -#: ../../../build/NEWS:17392 +#: ../../../build/NEWS:18016 msgid "" "`bpo-21527 `__: Add a default number of " -"workers to ThreadPoolExecutor equal to 5 times the number of CPUs. Patch by" -" Claudiu Popa." +"workers to ThreadPoolExecutor equal to 5 times the number of CPUs. Patch by " +"Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17395 +#: ../../../build/NEWS:18019 msgid "" "`bpo-22216 `__: smtplib now resets its " "state more completely after a quit. The most obvious consequence of the " -"previous behavior was a STARTTLS failure during a " -"connect/starttls/quit/connect/starttls sequence." +"previous behavior was a STARTTLS failure during a connect/starttls/quit/" +"connect/starttls sequence." msgstr "" -#: ../../../build/NEWS:17399 +#: ../../../build/NEWS:18023 msgid "" "`bpo-22098 `__: ctypes' " "BigEndianStructure and LittleEndianStructure now define an empty __slots__ " "so that subclasses don't always get an instance dict. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17403 +#: ../../../build/NEWS:18027 msgid "" "`bpo-22185 `__: Fix an occasional " -"RuntimeError in threading.Condition.wait() caused by mutation of the waiters" -" queue without holding the lock. Patch by Doug Zongker." +"RuntimeError in threading.Condition.wait() caused by mutation of the waiters " +"queue without holding the lock. Patch by Doug Zongker." msgstr "" -#: ../../../build/NEWS:17407 +#: ../../../build/NEWS:18031 msgid "" "`bpo-22287 `__: On UNIX, " "_PyTime_gettimeofday() now uses clock_gettime(CLOCK_REALTIME) if available. " @@ -25282,202 +26270,201 @@ msgid "" "Linux (only with glibc older than 2.17)." msgstr "" -#: ../../../build/NEWS:17412 +#: ../../../build/NEWS:18036 msgid "" "`bpo-22182 `__: Use e.args to unpack " -"exceptions correctly in distutils.file_util.move_file. Patch by Claudiu " -"Popa." +"exceptions correctly in distutils.file_util.move_file. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17415 +#: ../../../build/NEWS:18039 msgid "" "The webbrowser module now uses subprocess's start_new_session=True rather " "than a potentially risky preexec_fn=os.setsid call." msgstr "" -#: ../../../build/NEWS:17418 +#: ../../../build/NEWS:18042 msgid "" -"`bpo-22042 `__: signal.set_wakeup_fd(fd)" -" now raises an exception if the file descriptor is in blocking mode." +"`bpo-22042 `__: signal.set_wakeup_fd(fd) " +"now raises an exception if the file descriptor is in blocking mode." msgstr "" -#: ../../../build/NEWS:17421 +#: ../../../build/NEWS:18045 msgid "" "`bpo-16808 `__: inspect.stack() now " "returns a named tuple instead of a tuple. Patch by Daniel Shahaf." msgstr "" -#: ../../../build/NEWS:17424 +#: ../../../build/NEWS:18048 msgid "" "`bpo-22236 `__: Fixed Tkinter images " "copying operations in NoDefaultRoot mode." msgstr "" -#: ../../../build/NEWS:17426 +#: ../../../build/NEWS:18050 msgid "" "`bpo-2527 `__: Add a *globals* argument " -"to timeit functions, in order to override the globals namespace in which the" -" timed code is executed. Patch by Ben Roberts." +"to timeit functions, in order to override the globals namespace in which the " +"timed code is executed. Patch by Ben Roberts." msgstr "" -#: ../../../build/NEWS:17430 +#: ../../../build/NEWS:18054 msgid "" "`bpo-22118 `__: Switch urllib.parse to " -"use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs" -" 1808 and 2396. Patch by Demian Brecht." +"use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs " +"1808 and 2396. Patch by Demian Brecht." msgstr "" -#: ../../../build/NEWS:17434 +#: ../../../build/NEWS:18058 msgid "" "`bpo-21549 `__: Added the \"members\" " "parameter to TarFile.list()." msgstr "" -#: ../../../build/NEWS:17436 +#: ../../../build/NEWS:18060 msgid "" "`bpo-19628 `__: Allow compileall " "recursion depth to be specified with a -r option." msgstr "" -#: ../../../build/NEWS:17439 +#: ../../../build/NEWS:18063 msgid "" "`bpo-15696 `__: Add a __sizeof__ " "implementation for mmap objects on Windows." msgstr "" -#: ../../../build/NEWS:17441 +#: ../../../build/NEWS:18065 msgid "" "`bpo-22068 `__: Avoided reference loops " "with Variables and Fonts in Tkinter." msgstr "" -#: ../../../build/NEWS:17443 +#: ../../../build/NEWS:18067 msgid "" -"`bpo-22165 `__: SimpleHTTPRequestHandler" -" now supports undecodable file names." +"`bpo-22165 `__: SimpleHTTPRequestHandler " +"now supports undecodable file names." msgstr "" -#: ../../../build/NEWS:17445 +#: ../../../build/NEWS:18069 msgid "" "`bpo-15381 `__: Optimized line reading " "in io.BytesIO." msgstr "" -#: ../../../build/NEWS:17447 +#: ../../../build/NEWS:18071 msgid "" "`bpo-8797 `__: Raise HTTPError on failed " "Basic Authentication immediately. Initial patch by Sam Bull." msgstr "" -#: ../../../build/NEWS:17450 +#: ../../../build/NEWS:18074 msgid "" -"`bpo-20729 `__: Restored the use of lazy" -" iterkeys()/itervalues()/iteritems() in the mailbox module." +"`bpo-20729 `__: Restored the use of lazy " +"iterkeys()/itervalues()/iteritems() in the mailbox module." msgstr "" -#: ../../../build/NEWS:17453 +#: ../../../build/NEWS:18077 msgid "" "`bpo-21448 `__: Changed FeedParser " "feed() to avoid O(N**2) behavior when parsing long line. Original patch by " "Raymond Hettinger." msgstr "" -#: ../../../build/NEWS:17456 +#: ../../../build/NEWS:18080 msgid "" "`bpo-22184 `__: The functools LRU Cache " "decorator factory now gives an earlier and clearer error message when the " "user forgets the required parameters." msgstr "" -#: ../../../build/NEWS:17459 +#: ../../../build/NEWS:18083 msgid "" "`bpo-17923 `__: glob() patterns ending " "with a slash no longer match non-dirs on AIX. Based on patch by Delhallt." msgstr "" -#: ../../../build/NEWS:17462 +#: ../../../build/NEWS:18086 msgid "" "`bpo-21725 `__: Added support for RFC " "6531 (SMTPUTF8) in smtpd." msgstr "" -#: ../../../build/NEWS:17464 +#: ../../../build/NEWS:18088 msgid "" "`bpo-22176 `__: Update the ctypes " "module's libffi to v3.1. This release adds support for the Linux AArch64 " "and POWERPC ELF ABIv2 little endian architectures." msgstr "" -#: ../../../build/NEWS:17468 +#: ../../../build/NEWS:18092 msgid "" "`bpo-5411 `__: Added support for the " "\"xztar\" format in the shutil module." msgstr "" -#: ../../../build/NEWS:17470 +#: ../../../build/NEWS:18094 msgid "" "`bpo-21121 `__: Don't force 3rd party C " "extensions to be built with -Werror=declaration-after-statement." msgstr "" -#: ../../../build/NEWS:17473 +#: ../../../build/NEWS:18097 msgid "" "`bpo-21975 `__: Fixed crash when using " -"uninitialized sqlite3.Row (in particular when unpickling pickled " -"sqlite3.Row). sqlite3.Row is now initialized in the __new__() method." +"uninitialized sqlite3.Row (in particular when unpickling pickled sqlite3." +"Row). sqlite3.Row is now initialized in the __new__() method." msgstr "" -#: ../../../build/NEWS:17477 +#: ../../../build/NEWS:18101 msgid "" "`bpo-20170 `__: Convert posixmodule to " "use Argument Clinic." msgstr "" -#: ../../../build/NEWS:17479 +#: ../../../build/NEWS:18103 msgid "" "`bpo-21539 `__: Add an *exists_ok* " "argument to `Pathlib.mkdir()` to mimic `mkdir -p` and `os.makedirs()` " "functionality. When true, ignore FileExistsErrors. Patch by Berker Peksag." msgstr "" -#: ../../../build/NEWS:17483 +#: ../../../build/NEWS:18107 msgid "" "`bpo-22127 `__: Bypass IDNA for pure-" "ASCII host names in the socket module (in particular for numeric IPs)." msgstr "" -#: ../../../build/NEWS:17486 +#: ../../../build/NEWS:18110 msgid "" "`bpo-21047 `__: set the default value " "for the *convert_charrefs* argument of HTMLParser to True. Patch by Berker " "Peksag." msgstr "" -#: ../../../build/NEWS:17489 +#: ../../../build/NEWS:18113 msgid "Add an __all__ to html.entities." msgstr "" -#: ../../../build/NEWS:17491 +#: ../../../build/NEWS:18115 msgid "" "`bpo-15114 `__: the strict mode and " "argument of HTMLParser, HTMLParser.error, and the HTMLParserError exception " "have been removed." msgstr "" -#: ../../../build/NEWS:17494 +#: ../../../build/NEWS:18118 msgid "" "`bpo-22085 `__: Dropped support of Tk " "8.3 in Tkinter." msgstr "" -#: ../../../build/NEWS:17496 +#: ../../../build/NEWS:18120 msgid "" "`bpo-21580 `__: Now Tkinter correctly " -"handles bytes arguments passed to Tk. In particular this allows initializing" -" images from binary data." +"handles bytes arguments passed to Tk. In particular this allows initializing " +"images from binary data." msgstr "" -#: ../../../build/NEWS:17499 +#: ../../../build/NEWS:18123 msgid "" "`bpo-22003 `__: When initialized from a " "bytes object, io.BytesIO() now defers making a copy until it is mutated, " @@ -25485,14 +26472,14 @@ msgid "" "Wilson." msgstr "" -#: ../../../build/NEWS:17503 +#: ../../../build/NEWS:18127 msgid "" -"`bpo-22018 `__: On Windows, " -"signal.set_wakeup_fd() now also supports sockets. A side effect is that " -"Python depends to the WinSock library." +"`bpo-22018 `__: On Windows, signal." +"set_wakeup_fd() now also supports sockets. A side effect is that Python " +"depends to the WinSock library." msgstr "" -#: ../../../build/NEWS:17506 +#: ../../../build/NEWS:18130 msgid "" "`bpo-22054 `__: Add os.get_blocking() " "and os.set_blocking() functions to get and set the blocking mode of a file " @@ -25500,231 +26487,228 @@ msgid "" "functions are not available on Windows." msgstr "" -#: ../../../build/NEWS:17511 +#: ../../../build/NEWS:18135 msgid "" -"`bpo-17172 `__: Make turtledemo start as" -" active on OS X even when run with subprocess. Patch by Lita Cho." +"`bpo-17172 `__: Make turtledemo start as " +"active on OS X even when run with subprocess. Patch by Lita Cho." msgstr "" -#: ../../../build/NEWS:17514 +#: ../../../build/NEWS:18138 msgid "" "`bpo-21704 `__: Fix build error for " "_multiprocessing when semaphores are not available. Patch by Arfrever " "Frehtes Taifersar Arahesis." msgstr "" -#: ../../../build/NEWS:17517 +#: ../../../build/NEWS:18141 msgid "" "`bpo-20173 `__: Convert sha1, sha256, " "sha512 and md5 to ArgumentClinic. Patch by Vajrasky Kok." msgstr "" -#: ../../../build/NEWS:17520 +#: ../../../build/NEWS:18144 msgid "" -"Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError on" -" closed socket. repr(socket.socket) already works fine." +"Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError on " +"closed socket. repr(socket.socket) already works fine." msgstr "" -#: ../../../build/NEWS:17523 +#: ../../../build/NEWS:18147 msgid "" "`bpo-22033 `__: Reprs of most Python " "implemented classes now contain actual class name instead of hardcoded one." msgstr "" -#: ../../../build/NEWS:17526 +#: ../../../build/NEWS:18150 msgid "" "`bpo-21947 `__: The dis module can now " "disassemble generator-iterator objects based on their gi_code attribute. " "Patch by Clement Rouault." msgstr "" -#: ../../../build/NEWS:17529 +#: ../../../build/NEWS:18153 msgid "" -"`bpo-16133 `__: The " -"asynchat.async_chat.handle_read() method now ignores BlockingIOError " -"exceptions." +"`bpo-16133 `__: The asynchat.async_chat." +"handle_read() method now ignores BlockingIOError exceptions." msgstr "" -#: ../../../build/NEWS:17532 +#: ../../../build/NEWS:18156 msgid "" "`bpo-22044 `__: Fixed premature DECREF " "in call_tzinfo_method. Patch by Tom Flanagan." msgstr "" -#: ../../../build/NEWS:17535 +#: ../../../build/NEWS:18159 msgid "" "`bpo-19884 `__: readline: Disable the " -"meta modifier key if stdout is not a terminal to not write the ANSI sequence" -" ``\"\\033[1034h\"`` into stdout. This sequence is used on some terminal " -"(ex: TERM=xterm-256color\") to enable support of 8 bit characters." +"meta modifier key if stdout is not a terminal to not write the ANSI sequence " +"``\"\\033[1034h\"`` into stdout. This sequence is used on some terminal (ex: " +"TERM=xterm-256color\") to enable support of 8 bit characters." msgstr "" -#: ../../../build/NEWS:17540 +#: ../../../build/NEWS:18164 msgid "" -"`bpo-4350 `__: Removed a number of out-" -"of-dated and non-working for a long time Tkinter methods." +"`bpo-4350 `__: Removed a number of out-of-" +"dated and non-working for a long time Tkinter methods." msgstr "" -#: ../../../build/NEWS:17543 +#: ../../../build/NEWS:18167 msgid "" "`bpo-6167 `__: Scrollbar.activate() now " "returns the name of active element if the argument is not specified. " "Scrollbar.set() now always accepts only 2 arguments." msgstr "" -#: ../../../build/NEWS:17547 +#: ../../../build/NEWS:18171 msgid "" "`bpo-15275 `__: Clean up and speed up " "the ntpath module." msgstr "" -#: ../../../build/NEWS:17549 +#: ../../../build/NEWS:18173 msgid "" "`bpo-21888 `__: plistlib's load() and " "loads() now work if the fmt parameter is specified." msgstr "" -#: ../../../build/NEWS:17552 +#: ../../../build/NEWS:18176 msgid "" "`bpo-22032 `__: __qualname__ instead of " "__name__ is now always used to format fully qualified class names of Python " "implemented classes." msgstr "" -#: ../../../build/NEWS:17555 +#: ../../../build/NEWS:18179 msgid "" "`bpo-22031 `__: Reprs now always use " "hexadecimal format with the \"0x\" prefix when contain an id in form \" at " "0x...\"." msgstr "" -#: ../../../build/NEWS:17558 +#: ../../../build/NEWS:18182 msgid "" "`bpo-22018 `__: signal.set_wakeup_fd() " "now raises an OSError instead of a ValueError on ``fstat()`` failure." msgstr "" -#: ../../../build/NEWS:17561 +#: ../../../build/NEWS:18185 msgid "" "`bpo-21044 `__: tarfile.open() now " -"handles fileobj with an integer 'name' attribute. Based on patch by Antoine" -" Pietri." +"handles fileobj with an integer 'name' attribute. Based on patch by Antoine " +"Pietri." msgstr "" -#: ../../../build/NEWS:17564 +#: ../../../build/NEWS:18188 msgid "" "`bpo-21966 `__: Respect -q command-line " "option when code module is ran." msgstr "" -#: ../../../build/NEWS:17566 +#: ../../../build/NEWS:18190 msgid "" -"`bpo-19076 `__: Don't pass the redundant" -" 'file' argument to self.error()." +"`bpo-19076 `__: Don't pass the redundant " +"'file' argument to self.error()." msgstr "" -#: ../../../build/NEWS:17568 +#: ../../../build/NEWS:18192 msgid "" "`bpo-16382 `__: Improve exception " "message of warnings.warn() for bad category. Initial patch by Phil Elson." msgstr "" -#: ../../../build/NEWS:17571 +#: ../../../build/NEWS:18195 msgid "" -"`bpo-21932 `__: os.read() now uses a " -":c:func:`Py_ssize_t` type instead of :c:type:`int` for the size to support " +"`bpo-21932 `__: os.read() now uses a :c:" +"func:`Py_ssize_t` type instead of :c:type:`int` for the size to support " "reading more than 2 GB at once. On Windows, the size is truncated to " "INT_MAX. As any call to os.read(), the OS may read less bytes than the " "number of requested bytes." msgstr "" -#: ../../../build/NEWS:17576 +#: ../../../build/NEWS:18200 msgid "" "`bpo-21942 `__: Fixed source file " "viewing in pydoc's server mode on Windows." msgstr "" -#: ../../../build/NEWS:17578 +#: ../../../build/NEWS:18202 msgid "" -"`bpo-11259 `__: " -"asynchat.async_chat().set_terminator() now raises a ValueError if the number" -" of received bytes is negative." +"`bpo-11259 `__: asynchat.async_chat()." +"set_terminator() now raises a ValueError if the number of received bytes is " +"negative." msgstr "" -#: ../../../build/NEWS:17581 +#: ../../../build/NEWS:18205 msgid "" -"`bpo-12523 `__: " -"asynchat.async_chat.push() now raises a TypeError if it doesn't get a bytes " -"string" +"`bpo-12523 `__: asynchat.async_chat." +"push() now raises a TypeError if it doesn't get a bytes string" msgstr "" -#: ../../../build/NEWS:17584 +#: ../../../build/NEWS:18208 msgid "" "`bpo-21707 `__: Add missing " "kwonlyargcount argument to ModuleFinder.replace_paths_in_code()." msgstr "" -#: ../../../build/NEWS:17587 +#: ../../../build/NEWS:18211 msgid "" -"`bpo-20639 `__: calling " -"Path.with_suffix('') allows removing the suffix again. Patch by July " -"Tikhonov." +"`bpo-20639 `__: calling Path." +"with_suffix('') allows removing the suffix again. Patch by July Tikhonov." msgstr "" -#: ../../../build/NEWS:17590 +#: ../../../build/NEWS:18214 msgid "" "`bpo-21714 `__: Disallow the " "construction of invalid paths using Path.with_name(). Original patch by " "Antony Lee." msgstr "" -#: ../../../build/NEWS:17593 +#: ../../../build/NEWS:18217 msgid "" "`bpo-15014 `__: Added 'auth' method to " -"smtplib to make implementing auth mechanisms simpler, and used it internally" -" in the login method." +"smtplib to make implementing auth mechanisms simpler, and used it internally " +"in the login method." msgstr "" -#: ../../../build/NEWS:17596 +#: ../../../build/NEWS:18220 msgid "" "`bpo-21151 `__: Fixed a segfault in the " "winreg module when ``None`` is passed as a ``REG_BINARY`` value to " "SetValueEx. Patch by John Ehresman." msgstr "" -#: ../../../build/NEWS:17599 +#: ../../../build/NEWS:18223 msgid "" -"`bpo-21090 `__: io.FileIO.readall() does" -" not ignore I/O errors anymore. Before, it ignored I/O errors if at least " -"the first C call read() succeed." +"`bpo-21090 `__: io.FileIO.readall() does " +"not ignore I/O errors anymore. Before, it ignored I/O errors if at least the " +"first C call read() succeed." msgstr "" -#: ../../../build/NEWS:17602 +#: ../../../build/NEWS:18226 msgid "" "`bpo-5800 `__: headers parameter of " "wsgiref.headers.Headers is now optional. Initial patch by Pablo Torres " "Navarrete and SilentGhost." msgstr "" -#: ../../../build/NEWS:17605 +#: ../../../build/NEWS:18229 msgid "" "`bpo-21781 `__: ssl.RAND_add() now " "supports strings longer than 2 GB." msgstr "" -#: ../../../build/NEWS:17607 +#: ../../../build/NEWS:18231 msgid "" "`bpo-21679 `__: Prevent extraneous " "fstat() calls during open(). Patch by Bohuslav Kabrda." msgstr "" -#: ../../../build/NEWS:17610 +#: ../../../build/NEWS:18234 msgid "" "`bpo-21863 `__: cProfile now displays " "the module name of C extension functions, in addition to their own name." msgstr "" -#: ../../../build/NEWS:17613 +#: ../../../build/NEWS:18237 msgid "" "`bpo-11453 `__: asyncore: emit a " "ResourceWarning when an unclosed file_wrapper object is destroyed. The " @@ -25732,86 +26716,86 @@ msgid "" "called twice: the second call does nothing." msgstr "" -#: ../../../build/NEWS:17617 +#: ../../../build/NEWS:18241 msgid "" "`bpo-21858 `__: Better handling of " "Python exceptions in the sqlite3 module." msgstr "" -#: ../../../build/NEWS:17619 +#: ../../../build/NEWS:18243 msgid "" -"`bpo-21476 `__: Make sure the " -"email.parser.BytesParser TextIOWrapper is discarded after parsing, so the " -"input file isn't unexpectedly closed." +"`bpo-21476 `__: Make sure the email." +"parser.BytesParser TextIOWrapper is discarded after parsing, so the input " +"file isn't unexpectedly closed." msgstr "" -#: ../../../build/NEWS:17622 +#: ../../../build/NEWS:18246 msgid "" "`bpo-20295 `__: imghdr now recognizes " "OpenEXR format images." msgstr "" -#: ../../../build/NEWS:17624 +#: ../../../build/NEWS:18248 msgid "" "`bpo-21729 `__: Used the \"with\" " "statement in the dbm.dumb module to ensure files closing. Patch by Claudiu " "Popa." msgstr "" -#: ../../../build/NEWS:17627 +#: ../../../build/NEWS:18251 msgid "" -"`bpo-21491 `__: socketserver: Fix a race" -" condition in child processes reaping." +"`bpo-21491 `__: socketserver: Fix a race " +"condition in child processes reaping." msgstr "" -#: ../../../build/NEWS:17629 +#: ../../../build/NEWS:18253 msgid "" "`bpo-21719 `__: Added the " "``st_file_attributes`` field to os.stat_result on Windows." msgstr "" -#: ../../../build/NEWS:17632 +#: ../../../build/NEWS:18256 msgid "" "`bpo-21832 `__: Require named tuple " "inputs to be exact strings." msgstr "" -#: ../../../build/NEWS:17634 +#: ../../../build/NEWS:18258 msgid "" -"`bpo-21722 `__: The distutils \"upload\"" -" command now exits with a non-zero return code when uploading fails. Patch " +"`bpo-21722 `__: The distutils \"upload\" " +"command now exits with a non-zero return code when uploading fails. Patch " "by Martin Dengler." msgstr "" -#: ../../../build/NEWS:17637 +#: ../../../build/NEWS:18261 msgid "" "`bpo-21723 `__: asyncio.Queue: support " "any type of number (ex: float) for the maximum size. Patch written by " "Vajrasky Kok." msgstr "" -#: ../../../build/NEWS:17640 +#: ../../../build/NEWS:18264 msgid "" -"`bpo-21711 `__: support for \"site-" -"python\" directories has now been removed from the site module (it was " -"deprecated in 3.4)." +"`bpo-21711 `__: support for \"site-python" +"\" directories has now been removed from the site module (it was deprecated " +"in 3.4)." msgstr "" -#: ../../../build/NEWS:17643 +#: ../../../build/NEWS:18267 msgid "" "`bpo-17552 `__: new socket.sendfile() " -"method allowing a file to be sent over a socket by using high-performance " -"os.sendfile() on UNIX. Patch by Giampaolo Rodola'." +"method allowing a file to be sent over a socket by using high-performance os." +"sendfile() on UNIX. Patch by Giampaolo Rodola'." msgstr "" -#: ../../../build/NEWS:17647 +#: ../../../build/NEWS:18271 msgid "" "`bpo-18039 `__: dbm.dump.open() now " "always creates a new database when the flag has the value 'n'. Patch by " "Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17650 +#: ../../../build/NEWS:18274 msgid "" "`bpo-21326 `__: Add a new is_closed() " "method to asyncio.BaseEventLoop. run_forever() and run_until_complete() " @@ -25819,463 +26803,461 @@ msgid "" "was closed." msgstr "" -#: ../../../build/NEWS:17654 +#: ../../../build/NEWS:18278 msgid "" "`bpo-21766 `__: Prevent a security hole " "in CGIHTTPServer by URL unquoting paths before checking for a CGI script at " "that path." msgstr "" -#: ../../../build/NEWS:17657 +#: ../../../build/NEWS:18281 msgid "" "`bpo-21310 `__: Fixed possible resource " "leak in failed open()." msgstr "" -#: ../../../build/NEWS:17659 +#: ../../../build/NEWS:18283 msgid "" -"`bpo-21256 `__: Printout of keyword args" -" should be in deterministic order in a mock function call. This will help to" -" write better doctests." +"`bpo-21256 `__: Printout of keyword args " +"should be in deterministic order in a mock function call. This will help to " +"write better doctests." msgstr "" -#: ../../../build/NEWS:17662 +#: ../../../build/NEWS:18286 msgid "" "`bpo-21677 `__: Fixed chaining " "nonnormalized exceptions in io close() methods." msgstr "" -#: ../../../build/NEWS:17664 +#: ../../../build/NEWS:18288 msgid "" "`bpo-11709 `__: Fix the pydoc.help " "function to not fail when sys.stdin is not a valid file." msgstr "" -#: ../../../build/NEWS:17667 +#: ../../../build/NEWS:18291 msgid "" "`bpo-21515 `__: tempfile.TemporaryFile " "now uses os.O_TMPFILE flag is available." msgstr "" -#: ../../../build/NEWS:17669 +#: ../../../build/NEWS:18293 msgid "" "`bpo-13223 `__: Fix pydoc.writedoc so " "that the HTML documentation for methods that use 'self' in the example code " "is generated correctly." msgstr "" -#: ../../../build/NEWS:17672 +#: ../../../build/NEWS:18296 msgid "" "`bpo-21463 `__: In urllib.request, fix " "pruning of the FTP cache." msgstr "" -#: ../../../build/NEWS:17674 +#: ../../../build/NEWS:18298 msgid "" "`bpo-21618 `__: The subprocess module " "could fail to close open fds that were inherited by the calling process and " -"already higher than POSIX resource limits would otherwise allow. On systems" -" with a functioning /proc/self/fd or /dev/fd interface the max is now " -"ignored and all fds are closed." +"already higher than POSIX resource limits would otherwise allow. On systems " +"with a functioning /proc/self/fd or /dev/fd interface the max is now ignored " +"and all fds are closed." msgstr "" -#: ../../../build/NEWS:17679 +#: ../../../build/NEWS:18303 msgid "" -"`bpo-20383 `__: Introduce " -"importlib.util.module_from_spec() as the preferred way to create a new " -"module." +"`bpo-20383 `__: Introduce importlib.util." +"module_from_spec() as the preferred way to create a new module." msgstr "" -#: ../../../build/NEWS:17682 +#: ../../../build/NEWS:18306 msgid "" "`bpo-21552 `__: Fixed possible integer " "overflow of too long string lengths in the tkinter module on 64-bit " "platforms." msgstr "" -#: ../../../build/NEWS:17685 +#: ../../../build/NEWS:18309 msgid "" "`bpo-14315 `__: The zipfile module now " "ignores extra fields in the central directory that are too short to be " -"parsed instead of letting a struct.unpack error bubble up as this \"bad " -"data\" appears in many real world zip files in the wild and is ignored by " -"other zip tools." +"parsed instead of letting a struct.unpack error bubble up as this \"bad data" +"\" appears in many real world zip files in the wild and is ignored by other " +"zip tools." msgstr "" -#: ../../../build/NEWS:17690 +#: ../../../build/NEWS:18314 msgid "" "`bpo-13742 `__: Added \"key\" and " "\"reverse\" parameters to heapq.merge(). (First draft of patch contributed " "by Simon Sapin.)" msgstr "" -#: ../../../build/NEWS:17693 +#: ../../../build/NEWS:18317 msgid "" "`bpo-21402 `__: tkinter.ttk now works " "when default root window is not set." msgstr "" -#: ../../../build/NEWS:17695 +#: ../../../build/NEWS:18319 msgid "" "`bpo-3015 `__: _tkinter.create() now " "creates tkapp object with wantobject=1 by default." msgstr "" -#: ../../../build/NEWS:17698 +#: ../../../build/NEWS:18322 msgid "" "`bpo-10203 `__: sqlite3.Row now truly " "supports sequence protocol. In particular it supports reverse() and " "negative indices. Original patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17702 +#: ../../../build/NEWS:18326 msgid "" -"`bpo-18807 `__: If copying (no symlinks)" -" specified for a venv, then the python interpreter aliases (python, python3)" -" are now created by copying rather than symlinking." +"`bpo-18807 `__: If copying (no symlinks) " +"specified for a venv, then the python interpreter aliases (python, python3) " +"are now created by copying rather than symlinking." msgstr "" -#: ../../../build/NEWS:17706 +#: ../../../build/NEWS:18330 msgid "" "`bpo-20197 `__: Added support for the " "WebP image type in the imghdr module. Patch by Fabrice Aneche and Claudiu " "Popa." msgstr "" -#: ../../../build/NEWS:17709 +#: ../../../build/NEWS:18333 msgid "" "`bpo-21513 `__: Speedup some properties " -"of IP addresses (IPv4Address, IPv6Address) such as .is_private or " -".is_multicast." +"of IP addresses (IPv4Address, IPv6Address) such as .is_private or ." +"is_multicast." msgstr "" -#: ../../../build/NEWS:17712 +#: ../../../build/NEWS:18336 msgid "" "`bpo-21137 `__: Improve the repr for " "threading.Lock() and its variants by showing the \"locked\" or \"unlocked\" " "status. Patch by Berker Peksag." msgstr "" -#: ../../../build/NEWS:17715 +#: ../../../build/NEWS:18339 msgid "" "`bpo-21538 `__: The plistlib module now " "supports loading of binary plist files when reference or offset size is not " "a power of two." msgstr "" -#: ../../../build/NEWS:17718 +#: ../../../build/NEWS:18342 msgid "" -"`bpo-21455 `__: Add a default backlog to" -" socket.listen()." +"`bpo-21455 `__: Add a default backlog to " +"socket.listen()." msgstr "" -#: ../../../build/NEWS:17720 +#: ../../../build/NEWS:18344 msgid "" "`bpo-21525 `__: Most Tkinter methods " "which accepted tuples now accept lists too." msgstr "" -#: ../../../build/NEWS:17723 +#: ../../../build/NEWS:18347 msgid "" -"`bpo-22166 `__: With the assistance of a" -" new internal _codecs._forget_codec helping function, test_codecs now clears" -" the encoding caches to avoid the appearance of a reference leak" +"`bpo-22166 `__: With the assistance of a " +"new internal _codecs._forget_codec helping function, test_codecs now clears " +"the encoding caches to avoid the appearance of a reference leak" msgstr "" -#: ../../../build/NEWS:17727 +#: ../../../build/NEWS:18351 msgid "" "`bpo-22236 `__: Tkinter tests now don't " "reuse default root window. New root window is created for every test class." msgstr "" -#: ../../../build/NEWS:17730 +#: ../../../build/NEWS:18354 msgid "" "`bpo-10744 `__: Fix PEP 3118 format " "strings on ctypes objects with a nontrivial shape." msgstr "" -#: ../../../build/NEWS:17733 +#: ../../../build/NEWS:18357 msgid "" -"`bpo-20826 `__: Optimize " -"ipaddress.collapse_addresses()." +"`bpo-20826 `__: Optimize ipaddress." +"collapse_addresses()." msgstr "" -#: ../../../build/NEWS:17735 +#: ../../../build/NEWS:18359 msgid "" -"`bpo-21487 `__: Optimize " -"ipaddress.summarize_address_range() and " -"ipaddress.{IPv4Network,IPv6Network}.subnets()." +"`bpo-21487 `__: Optimize ipaddress." +"summarize_address_range() and ipaddress.{IPv4Network,IPv6Network}.subnets()." msgstr "" -#: ../../../build/NEWS:17738 +#: ../../../build/NEWS:18362 msgid "" "`bpo-21486 `__: Optimize parsing of " "netmasks in ipaddress.IPv4Network and ipaddress.IPv6Network." msgstr "" -#: ../../../build/NEWS:17741 +#: ../../../build/NEWS:18365 msgid "" "`bpo-13916 `__: Disallowed the " "surrogatepass error handler for non UTF-\\* encodings." msgstr "" -#: ../../../build/NEWS:17744 +#: ../../../build/NEWS:18368 msgid "" "`bpo-20998 `__: Fixed re.fullmatch() of " "repeated single character pattern with ignore case. Original patch by " "Matthew Barnett." msgstr "" -#: ../../../build/NEWS:17747 +#: ../../../build/NEWS:18371 msgid "" "`bpo-21075 `__: fileinput.FileInput now " "reads bytes from standard stream if binary mode is specified. Patch by Sam " "Kimbrel." msgstr "" -#: ../../../build/NEWS:17750 +#: ../../../build/NEWS:18374 msgid "" "`bpo-19775 `__: Add a samefile() method " "to pathlib Path objects. Initial patch by Vajrasky Kok." msgstr "" -#: ../../../build/NEWS:17753 +#: ../../../build/NEWS:18377 msgid "" "`bpo-21226 `__: Set up modules properly " "in PyImport_ExecCodeModuleObject (and friends)." msgstr "" -#: ../../../build/NEWS:17756 +#: ../../../build/NEWS:18380 msgid "" "`bpo-21398 `__: Fix a unicode error in " "the pydoc pager when the documentation contains characters not encodable to " "the stdout encoding." msgstr "" -#: ../../../build/NEWS:17759 +#: ../../../build/NEWS:18383 msgid "" "`bpo-16531 `__: ipaddress.IPv4Network " "and ipaddress.IPv6Network now accept an (address, netmask) tuple argument, " "so as to easily construct network objects from existing addresses." msgstr "" -#: ../../../build/NEWS:17763 +#: ../../../build/NEWS:18387 msgid "" -"`bpo-21156 `__: " -"importlib.abc.InspectLoader.source_to_code() is now a staticmethod." +"`bpo-21156 `__: importlib.abc." +"InspectLoader.source_to_code() is now a staticmethod." msgstr "" -#: ../../../build/NEWS:17766 +#: ../../../build/NEWS:18390 msgid "" -"`bpo-21424 `__: Simplified and optimized" -" heaqp.nlargest() and nmsmallest() to make fewer tuple comparisons." +"`bpo-21424 `__: Simplified and optimized " +"heaqp.nlargest() and nmsmallest() to make fewer tuple comparisons." msgstr "" -#: ../../../build/NEWS:17769 +#: ../../../build/NEWS:18393 msgid "" "`bpo-21396 `__: Fix TextIOWrapper(..., " -"write_through=True) to not force a flush() on the underlying binary stream." -" Patch by akira." +"write_through=True) to not force a flush() on the underlying binary stream. " +"Patch by akira." msgstr "" -#: ../../../build/NEWS:17772 +#: ../../../build/NEWS:18396 msgid "" "`bpo-18314 `__: Unlink now removes " "junctions on Windows. Patch by Kim Gräsman" msgstr "" -#: ../../../build/NEWS:17774 +#: ../../../build/NEWS:18398 msgid "" -"`bpo-21088 `__: Bugfix for " -"curses.window.addch() regression in 3.4.0. In porting to Argument Clinic, " -"the first two arguments were reversed." +"`bpo-21088 `__: Bugfix for curses.window." +"addch() regression in 3.4.0. In porting to Argument Clinic, the first two " +"arguments were reversed." msgstr "" -#: ../../../build/NEWS:17777 +#: ../../../build/NEWS:18401 msgid "" -"`bpo-21407 `__: _decimal: The module now" -" supports function signatures." +"`bpo-21407 `__: _decimal: The module now " +"supports function signatures." msgstr "" -#: ../../../build/NEWS:17779 +#: ../../../build/NEWS:18403 msgid "" "`bpo-10650 `__: Remove the non-standard " "'watchexp' parameter from the Decimal.quantize() method in the Python " "version. It had never been present in the C version." msgstr "" -#: ../../../build/NEWS:17783 +#: ../../../build/NEWS:18407 msgid "" "`bpo-21469 `__: Reduced the risk of " "false positives in robotparser by checking to make sure that robots.txt has " "been read or does not exist prior to returning True in can_fetch()." msgstr "" -#: ../../../build/NEWS:17787 +#: ../../../build/NEWS:18411 msgid "" "`bpo-19414 `__: Have the OrderedDict " "mark deleted links as unusable. This gives an early failure if the link is " "deleted during iteration." msgstr "" -#: ../../../build/NEWS:17790 +#: ../../../build/NEWS:18414 msgid "" "`bpo-21421 `__: Add __slots__ to the " "MappingViews ABC. Patch by Josh Rosenberg." msgstr "" -#: ../../../build/NEWS:17792 +#: ../../../build/NEWS:18416 msgid "" -"`bpo-21101 `__: Eliminate double hashing" -" in the C speed-up code for collections.Counter()." +"`bpo-21101 `__: Eliminate double hashing " +"in the C speed-up code for collections.Counter()." msgstr "" -#: ../../../build/NEWS:17795 +#: ../../../build/NEWS:18419 msgid "" "`bpo-21321 `__: itertools.islice() now " "releases the reference to the source iterator when the slice is exhausted. " "Patch by Anton Afanasyev." msgstr "" -#: ../../../build/NEWS:17798 +#: ../../../build/NEWS:18422 msgid "" -"`bpo-21057 `__: TextIOWrapper now allows" -" the underlying binary stream's read() or read1() method to return an " +"`bpo-21057 `__: TextIOWrapper now allows " +"the underlying binary stream's read() or read1() method to return an " "arbitrary bytes-like object (such as a memoryview). Patch by Nikolaus Rath." msgstr "" -#: ../../../build/NEWS:17802 +#: ../../../build/NEWS:18426 msgid "" "`bpo-20951 `__: SSLSocket.send() now " -"raises either SSLWantReadError or SSLWantWriteError on a non-blocking socket" -" if the operation would block. Previously, it would return 0. Patch by " +"raises either SSLWantReadError or SSLWantWriteError on a non-blocking socket " +"if the operation would block. Previously, it would return 0. Patch by " "Nikolaus Rath." msgstr "" -#: ../../../build/NEWS:17806 +#: ../../../build/NEWS:18430 msgid "" "`bpo-13248 `__: removed previously " "deprecated asyncore.dispatcher __getattr__ cheap inheritance hack." msgstr "" -#: ../../../build/NEWS:17809 +#: ../../../build/NEWS:18433 msgid "" "`bpo-9815 `__: assertRaises now tries to " "clear references to local variables in the exception's traceback." msgstr "" -#: ../../../build/NEWS:17812 +#: ../../../build/NEWS:18436 msgid "" -"`bpo-19940 `__: " -"ssl.cert_time_to_seconds() now interprets the given time string in the UTC " +"`bpo-19940 `__: ssl." +"cert_time_to_seconds() now interprets the given time string in the UTC " "timezone (as specified in RFC 5280), not the local timezone." msgstr "" -#: ../../../build/NEWS:17815 +#: ../../../build/NEWS:18439 msgid "" -"`bpo-13204 `__: Calling " -"sys.flags.__new__ would crash the interpreter, now it raises a TypeError." +"`bpo-13204 `__: Calling sys.flags." +"__new__ would crash the interpreter, now it raises a TypeError." msgstr "" -#: ../../../build/NEWS:17818 +#: ../../../build/NEWS:18442 msgid "" "`bpo-19385 `__: Make operations on a " "closed dbm.dumb database always raise the same exception." msgstr "" -#: ../../../build/NEWS:17821 +#: ../../../build/NEWS:18445 msgid "" -"`bpo-21207 `__: Detect when the " -"os.urandom cached fd has been closed or replaced, and open it anew." +"`bpo-21207 `__: Detect when the os." +"urandom cached fd has been closed or replaced, and open it anew." msgstr "" -#: ../../../build/NEWS:17824 +#: ../../../build/NEWS:18448 msgid "" -"`bpo-21291 `__: subprocess's " -"Popen.wait() is now thread safe so that multiple threads may be calling " -"wait() or poll() on a Popen instance at the same time without losing the " -"Popen.returncode value." +"`bpo-21291 `__: subprocess's Popen." +"wait() is now thread safe so that multiple threads may be calling wait() or " +"poll() on a Popen instance at the same time without losing the Popen." +"returncode value." msgstr "" -#: ../../../build/NEWS:17828 +#: ../../../build/NEWS:18452 msgid "" "`bpo-21127 `__: Path objects can now be " "instantiated from str subclass instances (such as ``numpy.str_``)." msgstr "" -#: ../../../build/NEWS:17831 +#: ../../../build/NEWS:18455 msgid "" "`bpo-15002 `__: urllib.response object " -"to use _TemporaryFileWrapper (and _TemporaryFileCloser) facility. Provides a" -" better way to handle file descriptor close. Patch contributed by Christian " +"to use _TemporaryFileWrapper (and _TemporaryFileCloser) facility. Provides a " +"better way to handle file descriptor close. Patch contributed by Christian " "Theune." msgstr "" -#: ../../../build/NEWS:17835 +#: ../../../build/NEWS:18459 msgid "" "`bpo-12220 `__: mindom now raises a " "custom ValueError indicating it doesn't support spaces in URIs instead of " "letting a 'split' ValueError bubble up." msgstr "" -#: ../../../build/NEWS:17838 +#: ../../../build/NEWS:18462 msgid "" "`bpo-21068 `__: The ssl.PROTOCOL* " "constants are now enum members." msgstr "" -#: ../../../build/NEWS:17840 +#: ../../../build/NEWS:18464 msgid "" "`bpo-21276 `__: posixmodule: Don't " "define USE_XATTRS on KFreeBSD and the Hurd." msgstr "" -#: ../../../build/NEWS:17842 +#: ../../../build/NEWS:18466 msgid "" "`bpo-21262 `__: New method " "assert_not_called for Mock. It raises AssertionError if the mock has been " "called." msgstr "" -#: ../../../build/NEWS:17845 +#: ../../../build/NEWS:18469 msgid "" "`bpo-21238 `__: New keyword argument " "`unsafe` to Mock. It raises `AttributeError` incase of an attribute " "startswith assert or assret." msgstr "" -#: ../../../build/NEWS:17848 +#: ../../../build/NEWS:18472 msgid "" -"`bpo-20896 `__: " -"ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, " -"for maximum compatibility." +"`bpo-20896 `__: ssl." +"get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, for " +"maximum compatibility." msgstr "" -#: ../../../build/NEWS:17851 +#: ../../../build/NEWS:18475 msgid "" "`bpo-21239 `__: patch.stopall() didn't " "work deterministically when the same name was patched more than once." msgstr "" -#: ../../../build/NEWS:17854 +#: ../../../build/NEWS:18478 msgid "" "`bpo-21203 `__: Updated fileConfig and " "dictConfig to remove inconsistencies. Thanks to Jure Koren for the patch." msgstr "" -#: ../../../build/NEWS:17857 +#: ../../../build/NEWS:18481 msgid "" "`bpo-21222 `__: Passing name keyword " "argument to mock.create_autospec now works." msgstr "" -#: ../../../build/NEWS:17860 +#: ../../../build/NEWS:18484 msgid "" -"`bpo-21197 `__: Add lib64 -> lib symlink" -" in venvs on 64-bit non-OS X POSIX." +"`bpo-21197 `__: Add lib64 -> lib symlink " +"in venvs on 64-bit non-OS X POSIX." msgstr "" -#: ../../../build/NEWS:17862 +#: ../../../build/NEWS:18486 msgid "" "`bpo-17498 `__: Some SMTP servers " "disconnect after certain errors, violating strict RFC conformance. Instead " @@ -26284,333 +27266,333 @@ msgid "" "until the next command is issued." msgstr "" -#: ../../../build/NEWS:17867 +#: ../../../build/NEWS:18491 msgid "" "`bpo-17826 `__: setting an iterable " "side_effect on a mock function created by create_autospec now works. Patch " "by Kushal Das." msgstr "" -#: ../../../build/NEWS:17870 +#: ../../../build/NEWS:18494 msgid "" "`bpo-7776 `__: Fix ``Host:`` header and " "reconnection when using http.client.HTTPConnection.set_tunnel(). Patch by " "Nikolaus Rath." msgstr "" -#: ../../../build/NEWS:17873 +#: ../../../build/NEWS:18497 msgid "" "`bpo-20968 `__: unittest.mock.MagicMock " "now supports division. Patch by Johannes Baiter." msgstr "" -#: ../../../build/NEWS:17876 +#: ../../../build/NEWS:18500 msgid "" "`bpo-21529 `__: Fix arbitrary memory " "access in JSONDecoder.raw_decode with a negative second parameter. Bug " "reported by Guido Vranken. (See also: CVE-2014-4616)" msgstr "" -#: ../../../build/NEWS:17880 +#: ../../../build/NEWS:18504 msgid "" "`bpo-21169 `__: getpass now handles non-" -"ascii characters that the input stream encoding cannot encode by re-encoding" -" using the replace error handler." +"ascii characters that the input stream encoding cannot encode by re-encoding " +"using the replace error handler." msgstr "" -#: ../../../build/NEWS:17883 +#: ../../../build/NEWS:18507 msgid "" "`bpo-21171 `__: Fixed undocumented " "filter API of the rot13 codec. Patch by Berker Peksag." msgstr "" -#: ../../../build/NEWS:17886 +#: ../../../build/NEWS:18510 msgid "" "`bpo-20539 `__: Improved math.factorial " "error message for large positive inputs and changed exception type " "(OverflowError -> ValueError) for large negative inputs." msgstr "" -#: ../../../build/NEWS:17890 +#: ../../../build/NEWS:18514 msgid "" -"`bpo-21172 `__: isinstance check relaxed" -" from dict to collections.Mapping." +"`bpo-21172 `__: isinstance check relaxed " +"from dict to collections.Mapping." msgstr "" -#: ../../../build/NEWS:17892 +#: ../../../build/NEWS:18516 msgid "" -"`bpo-21155 `__: " -"asyncio.EventLoop.create_unix_server() now raises a ValueError if path and " -"sock are specified at the same time." +"`bpo-21155 `__: asyncio.EventLoop." +"create_unix_server() now raises a ValueError if path and sock are specified " +"at the same time." msgstr "" -#: ../../../build/NEWS:17895 +#: ../../../build/NEWS:18519 msgid "" "`bpo-21136 `__: Avoid unnecessary " -"normalization of Fractions resulting from power and other operations. Patch" -" by Raymond Hettinger." +"normalization of Fractions resulting from power and other operations. Patch " +"by Raymond Hettinger." msgstr "" -#: ../../../build/NEWS:17898 +#: ../../../build/NEWS:18522 msgid "" -"`bpo-17621 `__: Introduce " -"importlib.util.LazyLoader." +"`bpo-17621 `__: Introduce importlib.util." +"LazyLoader." msgstr "" -#: ../../../build/NEWS:17900 +#: ../../../build/NEWS:18524 msgid "" "`bpo-21076 `__: signal module constants " "were turned into enums. Patch by Giampaolo Rodola'." msgstr "" -#: ../../../build/NEWS:17903 +#: ../../../build/NEWS:18527 msgid "" "`bpo-20636 `__: Improved the repr of " "Tkinter widgets." msgstr "" -#: ../../../build/NEWS:17905 +#: ../../../build/NEWS:18529 msgid "" "`bpo-19505 `__: The items, keys, and " "values views of OrderedDict now support reverse iteration using reversed()." msgstr "" -#: ../../../build/NEWS:17908 +#: ../../../build/NEWS:18532 msgid "" "`bpo-21149 `__: Improved thread-safety " "in logging cleanup during interpreter shutdown. Thanks to Devin Jeanpierre " "for the patch." msgstr "" -#: ../../../build/NEWS:17911 +#: ../../../build/NEWS:18535 msgid "" "`bpo-21058 `__: Fix a leak of file " -"descriptor in :func:`tempfile.NamedTemporaryFile`, close the file descriptor" -" if :func:`io.open` fails" +"descriptor in :func:`tempfile.NamedTemporaryFile`, close the file descriptor " +"if :func:`io.open` fails" msgstr "" -#: ../../../build/NEWS:17915 +#: ../../../build/NEWS:18539 msgid "" -"`bpo-21200 `__: Return None from " -"pkgutil.get_loader() when __spec__ is missing." +"`bpo-21200 `__: Return None from pkgutil." +"get_loader() when __spec__ is missing." msgstr "" -#: ../../../build/NEWS:17917 +#: ../../../build/NEWS:18541 msgid "" -"`bpo-21013 `__: Enhance " -"ssl.create_default_context() when used for server side sockets to provide " -"better security by default." +"`bpo-21013 `__: Enhance ssl." +"create_default_context() when used for server side sockets to provide better " +"security by default." msgstr "" -#: ../../../build/NEWS:17920 +#: ../../../build/NEWS:18544 msgid "" "`bpo-20145 `__: `assertRaisesRegex` and " "`assertWarnsRegex` now raise a TypeError if the second argument is not a " "string or compiled regex." msgstr "" -#: ../../../build/NEWS:17923 +#: ../../../build/NEWS:18547 msgid "" "`bpo-20633 `__: Replace relative import " "by absolute import." msgstr "" -#: ../../../build/NEWS:17925 +#: ../../../build/NEWS:18549 msgid "" "`bpo-20980 `__: Stop wrapping exception " "when using ThreadPool." msgstr "" -#: ../../../build/NEWS:17927 +#: ../../../build/NEWS:18551 msgid "" "`bpo-21082 `__: In os.makedirs, do not " "set the process-wide umask. Note this changes behavior of makedirs when " "exist_ok=True." msgstr "" -#: ../../../build/NEWS:17930 +#: ../../../build/NEWS:18554 msgid "" "`bpo-20990 `__: Fix issues found by " "pyflakes for multiprocessing." msgstr "" -#: ../../../build/NEWS:17932 +#: ../../../build/NEWS:18556 msgid "" "`bpo-21015 `__: SSL contexts will now " "automatically select an elliptic curve for ECDH key exchange on OpenSSL " "1.0.2 and later, and otherwise default to \"prime256v1\"." msgstr "" -#: ../../../build/NEWS:17936 +#: ../../../build/NEWS:18560 msgid "" -"`bpo-21000 `__: Improve the command-line" -" interface of json.tool." +"`bpo-21000 `__: Improve the command-line " +"interface of json.tool." msgstr "" -#: ../../../build/NEWS:17938 +#: ../../../build/NEWS:18562 msgid "" "`bpo-20995 `__: Enhance default ciphers " "used by the ssl module to enable better security and prioritize perfect " "forward secrecy." msgstr "" -#: ../../../build/NEWS:17941 +#: ../../../build/NEWS:18565 msgid "" "`bpo-20884 `__: Don't assume that " "__file__ is defined on importlib.__init__." msgstr "" -#: ../../../build/NEWS:17943 +#: ../../../build/NEWS:18567 msgid "" "`bpo-21499 `__: Ignore __builtins__ in " "several test_importlib.test_api tests." msgstr "" -#: ../../../build/NEWS:17945 +#: ../../../build/NEWS:18569 msgid "" -"`bpo-20627 `__: " -"xmlrpc.client.ServerProxy is now a context manager." +"`bpo-20627 `__: xmlrpc.client." +"ServerProxy is now a context manager." msgstr "" -#: ../../../build/NEWS:17947 +#: ../../../build/NEWS:18571 msgid "" -"`bpo-19165 `__: The formatter module now" -" raises DeprecationWarning instead of PendingDeprecationWarning." +"`bpo-19165 `__: The formatter module now " +"raises DeprecationWarning instead of PendingDeprecationWarning." msgstr "" -#: ../../../build/NEWS:17950 +#: ../../../build/NEWS:18574 msgid "" "`bpo-13936 `__: Remove the ability of " "datetime.time instances to be considered false in boolean contexts." msgstr "" -#: ../../../build/NEWS:17953 +#: ../../../build/NEWS:18577 msgid "" "`bpo-18931 `__: selectors module now " "supports /dev/poll on Solaris. Patch by Giampaolo Rodola'." msgstr "" -#: ../../../build/NEWS:17956 +#: ../../../build/NEWS:18580 msgid "" "`bpo-19977 `__: When the ``LC_TYPE`` " -"locale is the POSIX locale (``C`` locale), :py:data:`sys.stdin` and " -":py:data:`sys.stdout` are now using the ``surrogateescape`` error handler, " -"instead of the ``strict`` error handler." +"locale is the POSIX locale (``C`` locale), :py:data:`sys.stdin` and :py:data:" +"`sys.stdout` are now using the ``surrogateescape`` error handler, instead of " +"the ``strict`` error handler." msgstr "" -#: ../../../build/NEWS:17961 +#: ../../../build/NEWS:18585 msgid "" "`bpo-20574 `__: Implement incremental " "decoder for cp65001 code (Windows code page 65001, Microsoft UTF-8)." msgstr "" -#: ../../../build/NEWS:17964 +#: ../../../build/NEWS:18588 msgid "" -"`bpo-20879 `__: Delay the initialization" -" of encoding and decoding tables for base32, ascii85 and base85 codecs in " -"the base64 module, and delay the initialization of the unquote_to_bytes() " -"table of the urllib.parse module, to not waste memory if these modules are " -"not used." +"`bpo-20879 `__: Delay the initialization " +"of encoding and decoding tables for base32, ascii85 and base85 codecs in the " +"base64 module, and delay the initialization of the unquote_to_bytes() table " +"of the urllib.parse module, to not waste memory if these modules are not " +"used." msgstr "" -#: ../../../build/NEWS:17969 +#: ../../../build/NEWS:18593 msgid "" "`bpo-19157 `__: Include the broadcast " "address in the usuable hosts for IPv6 in ipaddress." msgstr "" -#: ../../../build/NEWS:17972 +#: ../../../build/NEWS:18596 msgid "" -"`bpo-11599 `__: When an external command" -" (e.g. compiler) fails, distutils now prints out the whole command line " +"`bpo-11599 `__: When an external command " +"(e.g. compiler) fails, distutils now prints out the whole command line " "(instead of just the command name) if the environment variable " "DISTUTILS_DEBUG is set." msgstr "" -#: ../../../build/NEWS:17976 +#: ../../../build/NEWS:18600 msgid "" "`bpo-4931 `__: distutils should not " -"produce unhelpful \"error: None\" messages anymore. " -"distutils.util.grok_environment_error is kept but doc-deprecated." +"produce unhelpful \"error: None\" messages anymore. distutils.util." +"grok_environment_error is kept but doc-deprecated." msgstr "" -#: ../../../build/NEWS:17979 +#: ../../../build/NEWS:18603 msgid "" "`bpo-20875 `__: Prevent possible gzip " "\"'read' is not defined\" NameError. Patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:17982 +#: ../../../build/NEWS:18606 msgid "" -"`bpo-11558 `__: " -"``email.message.Message.attach`` now returns a more useful error message if " -"``attach`` is called on a message for which ``is_multipart`` is False." +"`bpo-11558 `__: ``email.message.Message." +"attach`` now returns a more useful error message if ``attach`` is called on " +"a message for which ``is_multipart`` is False." msgstr "" -#: ../../../build/NEWS:17986 +#: ../../../build/NEWS:18610 msgid "" "`bpo-20283 `__: RE pattern methods now " "accept the string keyword parameters as documented. The pattern and source " "keyword parameters are left as deprecated aliases." msgstr "" -#: ../../../build/NEWS:17990 +#: ../../../build/NEWS:18614 msgid "" -"`bpo-20778 `__: Fix modulefinder to work" -" with bytecode-only modules." +"`bpo-20778 `__: Fix modulefinder to work " +"with bytecode-only modules." msgstr "" -#: ../../../build/NEWS:17992 +#: ../../../build/NEWS:18616 msgid "" "`bpo-20791 `__: copy.copy() now doesn't " "make a copy when the input is a bytes object. Initial patch by Peter Otten." msgstr "" -#: ../../../build/NEWS:17995 +#: ../../../build/NEWS:18619 msgid "" "`bpo-19748 `__: On AIX, time.mktime() " "now raises an OverflowError for year outsize range [1902; 2037]." msgstr "" -#: ../../../build/NEWS:17998 +#: ../../../build/NEWS:18622 msgid "" "`bpo-19573 `__: inspect.signature: Use " "enum for parameter kind constants." msgstr "" -#: ../../../build/NEWS:18000 +#: ../../../build/NEWS:18624 msgid "" "`bpo-20726 `__: inspect.signature: Make " "Signature and Parameter picklable." msgstr "" -#: ../../../build/NEWS:18002 +#: ../../../build/NEWS:18626 msgid "" -"`bpo-17373 `__: Add " -"inspect.Signature.from_callable method." +"`bpo-17373 `__: Add inspect.Signature." +"from_callable method." msgstr "" -#: ../../../build/NEWS:18004 +#: ../../../build/NEWS:18628 msgid "" -"`bpo-20378 `__: Improve repr of " -"inspect.Signature and inspect.Parameter." +"`bpo-20378 `__: Improve repr of inspect." +"Signature and inspect.Parameter." msgstr "" -#: ../../../build/NEWS:18006 +#: ../../../build/NEWS:18630 msgid "" -"`bpo-20816 `__: Fix " -"inspect.getcallargs() to raise correct TypeError for missing keyword-only " -"arguments. Patch by Jeremiah Lowin." +"`bpo-20816 `__: Fix inspect." +"getcallargs() to raise correct TypeError for missing keyword-only arguments. " +"Patch by Jeremiah Lowin." msgstr "" -#: ../../../build/NEWS:18009 +#: ../../../build/NEWS:18633 msgid "" -"`bpo-20817 `__: Fix " -"inspect.getcallargs() to fail correctly if more than 3 arguments are " -"missing. Patch by Jeremiah Lowin." +"`bpo-20817 `__: Fix inspect." +"getcallargs() to fail correctly if more than 3 arguments are missing. Patch " +"by Jeremiah Lowin." msgstr "" -#: ../../../build/NEWS:18012 +#: ../../../build/NEWS:18636 msgid "" "`bpo-6676 `__: Ensure a meaningful " "exception is raised when attempting to parse more than one XML document per " @@ -26618,310 +27600,310 @@ msgid "" "Amaury Forgeot d'Arc, with suggested wording by David Gutteridge)" msgstr "" -#: ../../../build/NEWS:18017 +#: ../../../build/NEWS:18641 msgid "" -"`bpo-21117 `__: Fix inspect.signature to" -" better support functools.partial. Due to the specifics of functools.partial" -" implementation, positional-or-keyword arguments passed as keyword arguments" -" become keyword-only." +"`bpo-21117 `__: Fix inspect.signature to " +"better support functools.partial. Due to the specifics of functools.partial " +"implementation, positional-or-keyword arguments passed as keyword arguments " +"become keyword-only." msgstr "" -#: ../../../build/NEWS:18022 +#: ../../../build/NEWS:18646 msgid "" "`bpo-20334 `__: inspect.Signature and " -"inspect.Parameter are now hashable. Thanks to Antony Lee for bug reports and" -" suggestions." +"inspect.Parameter are now hashable. Thanks to Antony Lee for bug reports and " +"suggestions." msgstr "" -#: ../../../build/NEWS:18025 +#: ../../../build/NEWS:18649 msgid "" "`bpo-15916 `__: doctest.DocTestSuite " "returns an empty unittest.TestSuite instead of raising ValueError if it " "finds no tests" msgstr "" -#: ../../../build/NEWS:18028 +#: ../../../build/NEWS:18652 msgid "" -"`bpo-21209 `__: Fix " -"asyncio.tasks.CoroWrapper to workaround a bug in yield-from implementation " -"in CPythons prior to 3.4.1." +"`bpo-21209 `__: Fix asyncio.tasks." +"CoroWrapper to workaround a bug in yield-from implementation in CPythons " +"prior to 3.4.1." msgstr "" -#: ../../../build/NEWS:18031 +#: ../../../build/NEWS:18655 msgid "" "asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream " "`bpo-163 `__)." msgstr "" -#: ../../../build/NEWS:18034 +#: ../../../build/NEWS:18658 msgid "" "`bpo-21311 `__: Avoid exception in " "_osx_support with non-standard compiler configurations. Patch by John " "Szakmeister." msgstr "" -#: ../../../build/NEWS:18037 +#: ../../../build/NEWS:18661 msgid "" "`bpo-11571 `__: Ensure that the turtle " "window becomes the topmost window when launched on OS X." msgstr "" -#: ../../../build/NEWS:18040 +#: ../../../build/NEWS:18664 msgid "" "`bpo-21801 `__: Validate that " "__signature__ is None or an instance of Signature." msgstr "" -#: ../../../build/NEWS:18043 +#: ../../../build/NEWS:18667 msgid "" "`bpo-21923 `__: Prevent AttributeError " "in distutils.sysconfig.customize_compiler due to possible uninitialized " "_config_vars." msgstr "" -#: ../../../build/NEWS:18047 +#: ../../../build/NEWS:18671 msgid "" -"`bpo-21323 `__: Fix http.server to again" -" handle scripts in CGI subdirectories, broken by the fix for security " +"`bpo-21323 `__: Fix http.server to again " +"handle scripts in CGI subdirectories, broken by the fix for security " "`bpo-19435 `__. Patch by Zach Byrne." msgstr "" -#: ../../../build/NEWS:18050 +#: ../../../build/NEWS:18674 msgid "" "`bpo-22733 `__: Fix ffi_prep_args not " "zero-extending argument values correctly on 64-bit Windows." msgstr "" -#: ../../../build/NEWS:18053 +#: ../../../build/NEWS:18677 msgid "" -"`bpo-23302 `__: Default to TCP_NODELAY=1" -" upon establishing an HTTPConnection. Removed use of hard-coded MSS as it's " +"`bpo-23302 `__: Default to TCP_NODELAY=1 " +"upon establishing an HTTPConnection. Removed use of hard-coded MSS as it's " "an optimization that's no longer needed with Nagle disabled." msgstr "" -#: ../../../build/NEWS:18060 +#: ../../../build/NEWS:18684 msgid "" -"`bpo-20577 `__: Configuration of the max" -" line length for the FormatParagraph extension has been moved from the " -"General tab of the Idle preferences dialog to the FormatParagraph tab of the" -" Config Extensions dialog. Patch by Tal Einat." +"`bpo-20577 `__: Configuration of the max " +"line length for the FormatParagraph extension has been moved from the " +"General tab of the Idle preferences dialog to the FormatParagraph tab of the " +"Config Extensions dialog. Patch by Tal Einat." msgstr "" -#: ../../../build/NEWS:18065 +#: ../../../build/NEWS:18689 msgid "" "`bpo-16893 `__: Update Idle doc chapter " "to match current Idle and add new information." msgstr "" -#: ../../../build/NEWS:18068 +#: ../../../build/NEWS:18692 msgid "" "`bpo-3068 `__: Add Idle extension " -"configuration dialog to Options menu. Changes are written to HOME/.idlerc" -"/config-extensions.cfg. Original patch by Tal Einat." +"configuration dialog to Options menu. Changes are written to HOME/.idlerc/" +"config-extensions.cfg. Original patch by Tal Einat." msgstr "" -#: ../../../build/NEWS:18072 +#: ../../../build/NEWS:18696 msgid "" -"`bpo-16233 `__: A module browser (File :" -" Class Browser, Alt+C) requires an editor window with a filename. When " -"Class Browser is requested otherwise, from a shell, output window, or " -"'Untitled' editor, Idle no longer displays an error box. It now pops up an " -"Open Module box (Alt+M). If a valid name is entered and a module is opened, " -"a corresponding browser is also opened." +"`bpo-16233 `__: A module browser (File : " +"Class Browser, Alt+C) requires an editor window with a filename. When Class " +"Browser is requested otherwise, from a shell, output window, or 'Untitled' " +"editor, Idle no longer displays an error box. It now pops up an Open Module " +"box (Alt+M). If a valid name is entered and a module is opened, a " +"corresponding browser is also opened." msgstr "" -#: ../../../build/NEWS:18078 +#: ../../../build/NEWS:18702 msgid "" "`bpo-4832 `__: Save As to type Python " -"files automatically adds .py to the name you enter (even if your system does" -" not display it). Some systems automatically add .txt when type is Text " +"files automatically adds .py to the name you enter (even if your system does " +"not display it). Some systems automatically add .txt when type is Text " "files." msgstr "" -#: ../../../build/NEWS:18082 +#: ../../../build/NEWS:18706 msgid "" "`bpo-21986 `__: Code objects are not " "normally pickled by the pickle module. To match this, they are no longer " "pickled when running under Idle." msgstr "" -#: ../../../build/NEWS:18085 +#: ../../../build/NEWS:18709 msgid "" "`bpo-17390 `__: Adjust Editor window " "title; remove 'Python', move version to end." msgstr "" -#: ../../../build/NEWS:18088 +#: ../../../build/NEWS:18712 msgid "" "`bpo-14105 `__: Idle debugger " "breakpoints no longer disappear when inserting or deleting lines." msgstr "" -#: ../../../build/NEWS:18091 +#: ../../../build/NEWS:18715 msgid "" "`bpo-17172 `__: Turtledemo can now be " "run from Idle. Currently, the entry is on the Help menu, but it may move to " "Run. Patch by Ramchandra Apt and Lita Cho." msgstr "" -#: ../../../build/NEWS:18095 +#: ../../../build/NEWS:18719 msgid "" "`bpo-21765 `__: Add support for non-" "ascii identifiers to HyperParser." msgstr "" -#: ../../../build/NEWS:18097 +#: ../../../build/NEWS:18721 msgid "" "`bpo-21940 `__: Add unittest for " "WidgetRedirector. Initial patch by Saimadhav Heblikar." msgstr "" -#: ../../../build/NEWS:18100 +#: ../../../build/NEWS:18724 msgid "" "`bpo-18592 `__: Add unittest for " "SearchDialogBase. Patch by Phil Webster." msgstr "" -#: ../../../build/NEWS:18102 +#: ../../../build/NEWS:18726 msgid "" "`bpo-21694 `__: Add unittest for " "ParenMatch. Patch by Saimadhav Heblikar." msgstr "" -#: ../../../build/NEWS:18104 +#: ../../../build/NEWS:18728 msgid "" "`bpo-21686 `__: add unittest for " "HyperParser. Original patch by Saimadhav Heblikar." msgstr "" -#: ../../../build/NEWS:18107 +#: ../../../build/NEWS:18731 msgid "" "`bpo-12387 `__: Add missing " "upper(lower)case versions of default Windows key bindings for Idle so Caps " "Lock does not disable them. Patch by Roger Serwy." msgstr "" -#: ../../../build/NEWS:18111 +#: ../../../build/NEWS:18735 msgid "" "`bpo-21695 `__: Closing a Find-in-files " "output window while the search is still in progress no longer closes Idle." msgstr "" -#: ../../../build/NEWS:18114 +#: ../../../build/NEWS:18738 msgid "" "`bpo-18910 `__: Add unittest for " "textView. Patch by Phil Webster." msgstr "" -#: ../../../build/NEWS:18116 +#: ../../../build/NEWS:18740 msgid "" "`bpo-18292 `__: Add unittest for " "AutoExpand. Patch by Saihadhav Heblikar." msgstr "" -#: ../../../build/NEWS:18118 +#: ../../../build/NEWS:18742 msgid "" "`bpo-18409 `__: Add unittest for " "AutoComplete. Patch by Phil Webster." msgstr "" -#: ../../../build/NEWS:18120 +#: ../../../build/NEWS:18744 msgid "" "`bpo-21477 `__: htest.py - Improve " "framework, complete set of tests. Patches by Saimadhav Heblikar" msgstr "" -#: ../../../build/NEWS:18123 +#: ../../../build/NEWS:18747 msgid "" -"`bpo-18104 `__: Add " -"idlelib/idle_test/htest.py with a few sample tests to begin consolidating " -"and improving human-validated tests of Idle. Change other files as needed to" -" work with htest. Running the module as __main__ runs all tests." +"`bpo-18104 `__: Add idlelib/idle_test/" +"htest.py with a few sample tests to begin consolidating and improving human-" +"validated tests of Idle. Change other files as needed to work with htest. " +"Running the module as __main__ runs all tests." msgstr "" -#: ../../../build/NEWS:18128 +#: ../../../build/NEWS:18752 msgid "" -"`bpo-21139 `__: Change default paragraph" -" width to 72, the PEP 8 recommendation." +"`bpo-21139 `__: Change default paragraph " +"width to 72, the PEP 8 recommendation." msgstr "" -#: ../../../build/NEWS:18130 +#: ../../../build/NEWS:18754 msgid "" "`bpo-21284 `__: Paragraph reformat test " "passes after user changes reformat width." msgstr "" -#: ../../../build/NEWS:18133 +#: ../../../build/NEWS:18757 msgid "" "`bpo-17654 `__: Ensure IDLE menus are " -"customized properly on OS X for non-framework builds and for all variants of" -" Tk." +"customized properly on OS X for non-framework builds and for all variants of " +"Tk." msgstr "" -#: ../../../build/NEWS:18136 +#: ../../../build/NEWS:18760 msgid "" "`bpo-23180 `__: Rename IDLE \"Windows\" " "menu item to \"Window\". Patch by Al Sweigart." msgstr "" -#: ../../../build/NEWS:18142 +#: ../../../build/NEWS:18766 msgid "" "`bpo-15506 `__: Use standard " "PKG_PROG_PKG_CONFIG autoconf macro in the configure script." msgstr "" -#: ../../../build/NEWS:18145 +#: ../../../build/NEWS:18769 msgid "" "`bpo-22935 `__: Allow the ssl module to " "be compiled if openssl doesn't support SSL 3." msgstr "" -#: ../../../build/NEWS:18148 +#: ../../../build/NEWS:18772 msgid "" "`bpo-22592 `__: Drop support of the " "Borland C compiler to build Python. The distutils module still supports it " "to build extensions." msgstr "" -#: ../../../build/NEWS:18151 +#: ../../../build/NEWS:18775 msgid "" "`bpo-22591 `__: Drop support of MS-DOS, " "especially of the DJGPP compiler (MS-DOS port of GCC)." msgstr "" -#: ../../../build/NEWS:18154 +#: ../../../build/NEWS:18778 msgid "" -"`bpo-16537 `__: Check whether " -"self.extensions is empty in setup.py. Patch by Jonathan Hosmer." +"`bpo-16537 `__: Check whether self." +"extensions is empty in setup.py. Patch by Jonathan Hosmer." msgstr "" -#: ../../../build/NEWS:18157 +#: ../../../build/NEWS:18781 msgid "" -"`bpo-22359 `__: Remove incorrect uses of" -" recursive make. Patch by Jonas Wagner." +"`bpo-22359 `__: Remove incorrect uses of " +"recursive make. Patch by Jonas Wagner." msgstr "" -#: ../../../build/NEWS:18160 +#: ../../../build/NEWS:18784 msgid "" "`bpo-21958 `__: Define HAVE_ROUND when " "building with Visual Studio 2013 and above. Patch by Zachary Turner." msgstr "" -#: ../../../build/NEWS:18163 +#: ../../../build/NEWS:18787 msgid "" "`bpo-18093 `__: the programs that embed " "the CPython runtime are now in a separate \"Programs\" directory, rather " "than being kept in the Modules directory." msgstr "" -#: ../../../build/NEWS:18167 +#: ../../../build/NEWS:18791 msgid "" "`bpo-15759 `__: \"make suspicious\", " "\"make linkcheck\" and \"make doctest\" in Doc/ now display special message " "when and only when there are failures." msgstr "" -#: ../../../build/NEWS:18170 +#: ../../../build/NEWS:18794 msgid "" "`bpo-21141 `__: The Windows build " "process no longer attempts to find Perl, instead relying on OpenSSL source " @@ -26932,109 +27914,109 @@ msgid "" "and ready to build." msgstr "" -#: ../../../build/NEWS:18177 +#: ../../../build/NEWS:18801 msgid "" "`bpo-21037 `__: Add a build option to " "enable AddressSanitizer support." msgstr "" -#: ../../../build/NEWS:18179 +#: ../../../build/NEWS:18803 msgid "" "`bpo-19962 `__: The Windows build " "process now creates \"python.bat\" in the root of the source tree, which " "passes all arguments through to the most recently built interpreter." msgstr "" -#: ../../../build/NEWS:18183 +#: ../../../build/NEWS:18807 msgid "" "`bpo-21285 `__: Refactor and fix curses " "configure check to always search in a ncursesw directory." msgstr "" -#: ../../../build/NEWS:18186 +#: ../../../build/NEWS:18810 msgid "" "`bpo-15234 `__: For BerkelyDB and " "Sqlite, only add the found library and include directories if they aren't " "already being searched. This avoids an explicit runtime library dependency." msgstr "" -#: ../../../build/NEWS:18190 +#: ../../../build/NEWS:18814 msgid "" -"`bpo-17861 `__: " -"Tools/scripts/generate_opcode_h.py automatically regenerates " -"Include/opcode.h from Lib/opcode.py if the latter gets any change." +"`bpo-17861 `__: Tools/scripts/" +"generate_opcode_h.py automatically regenerates Include/opcode.h from Lib/" +"opcode.py if the latter gets any change." msgstr "" -#: ../../../build/NEWS:18193 +#: ../../../build/NEWS:18817 msgid "" "`bpo-20644 `__: OS X installer build " -"support for documentation build changes in 3.4.1: assume externally supplied" -" sphinx-build is available in /usr/bin." +"support for documentation build changes in 3.4.1: assume externally supplied " +"sphinx-build is available in /usr/bin." msgstr "" -#: ../../../build/NEWS:18196 +#: ../../../build/NEWS:18820 msgid "" "`bpo-20022 `__: Eliminate use of " "deprecated bundlebuilder in OS X builds." msgstr "" -#: ../../../build/NEWS:18198 +#: ../../../build/NEWS:18822 msgid "" "`bpo-15968 `__: Incorporated Tcl, Tk, " "and Tix builds into the Windows build solution." msgstr "" -#: ../../../build/NEWS:18201 +#: ../../../build/NEWS:18825 msgid "" "`bpo-17095 `__: Fix Modules/Setup " "*shared* support." msgstr "" -#: ../../../build/NEWS:18203 +#: ../../../build/NEWS:18827 msgid "" "`bpo-21811 `__: Anticipated fixes to " "support OS X versions > 10.9." msgstr "" -#: ../../../build/NEWS:18205 +#: ../../../build/NEWS:18829 msgid "" "`bpo-21166 `__: Prevent possible " "segfaults and other random failures of python --generate-posix-vars in " "pybuilddir.txt build target." msgstr "" -#: ../../../build/NEWS:18208 +#: ../../../build/NEWS:18832 msgid "" "`bpo-18096 `__: Fix library order " "returned by python-config." msgstr "" -#: ../../../build/NEWS:18210 +#: ../../../build/NEWS:18834 msgid "" "`bpo-17219 `__: Add library build dir " "for Python extension cross-builds." msgstr "" -#: ../../../build/NEWS:18212 +#: ../../../build/NEWS:18836 msgid "" -"`bpo-22919 `__: Windows build updated to" -" support VC 14.0 (Visual Studio 2015), which will be used for the official " +"`bpo-22919 `__: Windows build updated to " +"support VC 14.0 (Visual Studio 2015), which will be used for the official " "release." msgstr "" -#: ../../../build/NEWS:18215 +#: ../../../build/NEWS:18839 msgid "" "`bpo-21236 `__: Build _msi.pyd with " "cabinet.lib instead of fci.lib" msgstr "" -#: ../../../build/NEWS:18217 +#: ../../../build/NEWS:18841 msgid "" "`bpo-17128 `__: Use private version of " "OpenSSL for OS X 10.5+ installer." msgstr "" -#: ../../../build/NEWS:18222 +#: ../../../build/NEWS:18846 msgid "" "`bpo-14203 `__: Remove obsolete support " "for view==NULL in PyBuffer_FillInfo(), bytearray_getbuffer(), " @@ -27042,7 +28024,7 @@ msgid "" "BufferError in that case." msgstr "" -#: ../../../build/NEWS:18226 +#: ../../../build/NEWS:18850 msgid "" "`bpo-22445 `__: PyBuffer_IsContiguous() " "now implements precise contiguity tests, compatible with NumPy's " @@ -27050,19 +28032,19 @@ msgid "" "reported false negatives for corner cases." msgstr "" -#: ../../../build/NEWS:18230 +#: ../../../build/NEWS:18854 msgid "" "`bpo-22079 `__: PyType_Ready() now " "checks that statically allocated type has no dynamically allocated bases." msgstr "" -#: ../../../build/NEWS:18233 +#: ../../../build/NEWS:18857 msgid "" "`bpo-22453 `__: Removed non-documented " "macro PyObject_REPR()." msgstr "" -#: ../../../build/NEWS:18235 +#: ../../../build/NEWS:18859 msgid "" "`bpo-18395 `__: Rename " "``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename " @@ -27070,15 +28052,15 @@ msgid "" "functions." msgstr "" -#: ../../../build/NEWS:18239 +#: ../../../build/NEWS:18863 msgid "" "`bpo-21233 `__: Add new C functions: " -"PyMem_RawCalloc(), PyMem_Calloc(), PyObject_Calloc(), _PyObject_GC_Calloc()." -" bytes(int) is now using ``calloc()`` instead of ``malloc()`` for large " +"PyMem_RawCalloc(), PyMem_Calloc(), PyObject_Calloc(), _PyObject_GC_Calloc(). " +"bytes(int) is now using ``calloc()`` instead of ``malloc()`` for large " "objects which is faster and use less memory." msgstr "" -#: ../../../build/NEWS:18244 +#: ../../../build/NEWS:18868 msgid "" "`bpo-20942 `__: " "PyImport_ImportFrozenModuleObject() no longer sets __file__ to match what " @@ -27086,27 +28068,27 @@ msgid "" "using imp.init_frozen()." msgstr "" -#: ../../../build/NEWS:18251 +#: ../../../build/NEWS:18875 msgid "" -"`bpo-19548 `__: Update the codecs module" -" documentation to better cover the distinction between text encodings and " +"`bpo-19548 `__: Update the codecs module " +"documentation to better cover the distinction between text encodings and " "other codecs, together with other clarifications. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:18255 +#: ../../../build/NEWS:18879 msgid "" "`bpo-22394 `__: Doc/Makefile now " "supports ``make venv PYTHON=../python`` to create a venv for generating the " "documentation, e.g., ``make html PYTHON=venv/bin/python3``." msgstr "" -#: ../../../build/NEWS:18259 +#: ../../../build/NEWS:18883 msgid "" -"`bpo-21514 `__: The documentation of the" -" json module now refers to new JSON RFC 7159 instead of obsoleted RFC 4627." +"`bpo-21514 `__: The documentation of the " +"json module now refers to new JSON RFC 7159 instead of obsoleted RFC 4627." msgstr "" -#: ../../../build/NEWS:18262 +#: ../../../build/NEWS:18886 msgid "" "`bpo-21777 `__: The binary sequence " "methods on bytes and bytearray are now documented explicitly, rather than " @@ -27114,330 +28096,328 @@ msgid "" "behaviour of the corresponding str methods." msgstr "" -#: ../../../build/NEWS:18267 +#: ../../../build/NEWS:18891 msgid "" "`bpo-6916 `__: undocument deprecated " "asynchat.fifo class." msgstr "" -#: ../../../build/NEWS:18269 +#: ../../../build/NEWS:18893 msgid "" "`bpo-17386 `__: Expanded functionality " -"of the ``Doc/make.bat`` script to make it much more comparable to " -"``Doc/Makefile``." +"of the ``Doc/make.bat`` script to make it much more comparable to ``Doc/" +"Makefile``." msgstr "" -#: ../../../build/NEWS:18272 +#: ../../../build/NEWS:18896 msgid "" -"`bpo-21312 `__: Update the " -"thread_foobar.h template file to include newer threading APIs. Patch by Jack" -" McCracken." +"`bpo-21312 `__: Update the thread_foobar." +"h template file to include newer threading APIs. Patch by Jack McCracken." msgstr "" -#: ../../../build/NEWS:18275 +#: ../../../build/NEWS:18899 msgid "" "`bpo-21043 `__: Remove the " "recommendation for specific CA organizations and to mention the ability to " "load the OS certificates." msgstr "" -#: ../../../build/NEWS:18278 +#: ../../../build/NEWS:18902 msgid "" "`bpo-20765 `__: Add missing " "documentation for PurePath.with_name() and PurePath.with_suffix()." msgstr "" -#: ../../../build/NEWS:18281 +#: ../../../build/NEWS:18905 msgid "" -"`bpo-19407 `__: New package installation" -" and distribution guides based on the Python Packaging Authority tools. " +"`bpo-19407 `__: New package installation " +"and distribution guides based on the Python Packaging Authority tools. " "Existing guides have been retained as legacy links from the distutils docs, " "as they still contain some required reference material for tool developers " "that isn't recorded anywhere else." msgstr "" -#: ../../../build/NEWS:18286 +#: ../../../build/NEWS:18910 msgid "" "`bpo-19697 `__: Document cases where " "__main__.__spec__ is None." msgstr "" -#: ../../../build/NEWS:18291 +#: ../../../build/NEWS:18915 msgid "" -"`bpo-18982 `__: Add tests for CLI of the" -" calendar module." +"`bpo-18982 `__: Add tests for CLI of the " +"calendar module." msgstr "" -#: ../../../build/NEWS:18293 +#: ../../../build/NEWS:18917 msgid "" "`bpo-19548 `__: Added some additional " -"checks to test_codecs to ensure that statements in the updated documentation" -" remain accurate. Patch by Martin Panter." +"checks to test_codecs to ensure that statements in the updated documentation " +"remain accurate. Patch by Martin Panter." msgstr "" -#: ../../../build/NEWS:18297 +#: ../../../build/NEWS:18921 msgid "" "`bpo-22838 `__: All test_re tests now " "work with unittest test discovery." msgstr "" -#: ../../../build/NEWS:18299 +#: ../../../build/NEWS:18923 msgid "" "`bpo-22173 `__: Update lib2to3 tests to " "use unittest test discovery." msgstr "" -#: ../../../build/NEWS:18301 +#: ../../../build/NEWS:18925 msgid "" "`bpo-16000 `__: Convert test_curses to " "use unittest." msgstr "" -#: ../../../build/NEWS:18303 +#: ../../../build/NEWS:18927 msgid "" "`bpo-21456 `__: Skip two tests in " "test_urllib2net.py if _ssl module not present. Patch by Remi Pointel." msgstr "" -#: ../../../build/NEWS:18306 +#: ../../../build/NEWS:18930 msgid "" "`bpo-20746 `__: Fix test_pdb to run in " "refleak mode (-R). Patch by Xavier de Gaye." msgstr "" -#: ../../../build/NEWS:18309 +#: ../../../build/NEWS:18933 msgid "" "`bpo-22060 `__: test_ctypes has been " "somewhat cleaned up and simplified; it now uses unittest test discovery to " "find its tests." msgstr "" -#: ../../../build/NEWS:18312 +#: ../../../build/NEWS:18936 msgid "" "`bpo-22104 `__: regrtest.py no longer " "holds a reference to the suite of tests loaded from test modules that don't " "define test_main()." msgstr "" -#: ../../../build/NEWS:18315 +#: ../../../build/NEWS:18939 msgid "" "`bpo-22111 `__: Assorted cleanups in " "test_imaplib. Patch by Milan Oberkirch." msgstr "" -#: ../../../build/NEWS:18317 +#: ../../../build/NEWS:18941 msgid "" "`bpo-22002 `__: Added " -"``load_package_tests`` function to test.support and used it to " -"implement/augment test discovery in test_asyncio, test_email, " -"test_importlib, test_json, and test_tools." +"``load_package_tests`` function to test.support and used it to implement/" +"augment test discovery in test_asyncio, test_email, test_importlib, " +"test_json, and test_tools." msgstr "" -#: ../../../build/NEWS:18321 +#: ../../../build/NEWS:18945 msgid "" "`bpo-21976 `__: Fix test_ssl to accept " "LibreSSL version strings. Thanks to William Orr." msgstr "" -#: ../../../build/NEWS:18324 +#: ../../../build/NEWS:18948 msgid "" "`bpo-21918 `__: Converted test_tools " "from a module to a package containing separate test files for each tested " "script." msgstr "" -#: ../../../build/NEWS:18327 +#: ../../../build/NEWS:18951 msgid "" "`bpo-9554 `__: Use modern unittest " "features in test_argparse. Initial patch by Denver Coneybeare and Radu " "Voicilas." msgstr "" -#: ../../../build/NEWS:18330 +#: ../../../build/NEWS:18954 msgid "" "`bpo-20155 `__: Changed HTTP method " -"names in failing tests in test_httpservers so that packet filtering software" -" (specifically Windows Base Filtering Engine) does not interfere with the " +"names in failing tests in test_httpservers so that packet filtering software " +"(specifically Windows Base Filtering Engine) does not interfere with the " "transaction semantics expected by the tests." msgstr "" -#: ../../../build/NEWS:18335 +#: ../../../build/NEWS:18959 msgid "" "`bpo-19493 `__: Refactored the ctypes " "test package to skip tests explicitly rather than silently." msgstr "" -#: ../../../build/NEWS:18338 +#: ../../../build/NEWS:18962 msgid "" "`bpo-18492 `__: All resources are now " "allowed when tests are not run by regrtest.py." msgstr "" -#: ../../../build/NEWS:18341 +#: ../../../build/NEWS:18965 msgid "" "`bpo-21634 `__: Fix pystone micro-" -"benchmark: use floor division instead of true division to benchmark integers" -" instead of floating point numbers. Set pystone version to 1.2. Patch " -"written by Lennart Regebro." +"benchmark: use floor division instead of true division to benchmark integers " +"instead of floating point numbers. Set pystone version to 1.2. Patch written " +"by Lennart Regebro." msgstr "" -#: ../../../build/NEWS:18345 +#: ../../../build/NEWS:18969 msgid "" "`bpo-21605 `__: Added tests for Tkinter " "images." msgstr "" -#: ../../../build/NEWS:18347 +#: ../../../build/NEWS:18971 msgid "" -"`bpo-21493 `__: Added test for " -"ntpath.expanduser(). Original patch by Claudiu Popa." +"`bpo-21493 `__: Added test for ntpath." +"expanduser(). Original patch by Claudiu Popa." msgstr "" -#: ../../../build/NEWS:18350 +#: ../../../build/NEWS:18974 msgid "" -"`bpo-19925 `__: Added tests for the spwd" -" module. Original patch by Vajrasky Kok." +"`bpo-19925 `__: Added tests for the spwd " +"module. Original patch by Vajrasky Kok." msgstr "" -#: ../../../build/NEWS:18353 +#: ../../../build/NEWS:18977 msgid "" "`bpo-21522 `__: Added Tkinter tests for " -"Listbox.itemconfigure(), PanedWindow.paneconfigure(), and " -"Menu.entryconfigure()." +"Listbox.itemconfigure(), PanedWindow.paneconfigure(), and Menu." +"entryconfigure()." msgstr "" -#: ../../../build/NEWS:18356 +#: ../../../build/NEWS:18980 msgid "" "`bpo-17756 `__: Fix test_code test when " "run from the installed location." msgstr "" -#: ../../../build/NEWS:18358 +#: ../../../build/NEWS:18982 msgid "" -"`bpo-17752 `__: Fix distutils tests when" -" run from the installed location." +"`bpo-17752 `__: Fix distutils tests when " +"run from the installed location." msgstr "" -#: ../../../build/NEWS:18360 +#: ../../../build/NEWS:18984 msgid "" "`bpo-18604 `__: Consolidated checks for " "GUI availability. All platforms now at least check whether Tk can be " "instantiated when the GUI resource is requested." msgstr "" -#: ../../../build/NEWS:18364 +#: ../../../build/NEWS:18988 msgid "" "`bpo-21275 `__: Fix a socket test on " "KFreeBSD." msgstr "" -#: ../../../build/NEWS:18366 +#: ../../../build/NEWS:18990 msgid "" -"`bpo-21223 `__: Pass " -"test_site/test_startup_imports when some of the extensions are built as " -"builtins." +"`bpo-21223 `__: Pass test_site/" +"test_startup_imports when some of the extensions are built as builtins." msgstr "" -#: ../../../build/NEWS:18369 +#: ../../../build/NEWS:18993 msgid "" "`bpo-20635 `__: Added tests for Tk " "geometry managers." msgstr "" -#: ../../../build/NEWS:18371 +#: ../../../build/NEWS:18995 msgid "Add test case for freeze." msgstr "" -#: ../../../build/NEWS:18373 +#: ../../../build/NEWS:18997 msgid "" "`bpo-20743 `__: Fix a reference leak in " "test_tcl." msgstr "" -#: ../../../build/NEWS:18375 +#: ../../../build/NEWS:18999 msgid "" -"`bpo-21097 `__: Move test_namespace_pkgs" -" into test_importlib." +"`bpo-21097 `__: Move test_namespace_pkgs " +"into test_importlib." msgstr "" -#: ../../../build/NEWS:18377 +#: ../../../build/NEWS:19001 msgid "" "`bpo-21503 `__: Use test_both() " "consistently in test_importlib." msgstr "" -#: ../../../build/NEWS:18379 +#: ../../../build/NEWS:19003 msgid "" "`bpo-20939 `__: Avoid various network " -"test failures due to new redirect of http://www.python.org/ to " -"https://www.python.org: use http://www.example.com instead." +"test failures due to new redirect of http://www.python.org/ to https://www." +"python.org: use http://www.example.com instead." msgstr "" -#: ../../../build/NEWS:18383 +#: ../../../build/NEWS:19007 msgid "" "`bpo-20668 `__: asyncio tests no longer " "rely on tests.txt file. (Patch by Vajrasky Kok)" msgstr "" -#: ../../../build/NEWS:18386 +#: ../../../build/NEWS:19010 msgid "" "`bpo-21093 `__: Prevent failures of " -"ctypes test_macholib on OS X if a copy of libz exists in $HOME/lib or " -"/usr/local/lib." +"ctypes test_macholib on OS X if a copy of libz exists in $HOME/lib or /usr/" +"local/lib." msgstr "" -#: ../../../build/NEWS:18389 +#: ../../../build/NEWS:19013 msgid "" "`bpo-22770 `__: Prevent some Tk " "segfaults on OS X when running gui tests." msgstr "" -#: ../../../build/NEWS:18391 +#: ../../../build/NEWS:19015 msgid "" "`bpo-23211 `__: Workaround test_logging " "failure on some OS X 10.6 systems." msgstr "" -#: ../../../build/NEWS:18393 +#: ../../../build/NEWS:19017 msgid "" "`bpo-23345 `__: Prevent test_ssl " "failures with large OpenSSL patch level values (like 0.9.8zc)." msgstr "" -#: ../../../build/NEWS:18399 +#: ../../../build/NEWS:19023 msgid "" -"`bpo-22314 `__: pydoc now works when the" -" LINES environment variable is set." +"`bpo-22314 `__: pydoc now works when the " +"LINES environment variable is set." msgstr "" -#: ../../../build/NEWS:18401 +#: ../../../build/NEWS:19025 msgid "" "`bpo-22615 `__: Argument Clinic now " -"supports the \"type\" argument for the int converter. This permits using the" -" int converter with enums and typedefs." +"supports the \"type\" argument for the int converter. This permits using the " +"int converter with enums and typedefs." msgstr "" -#: ../../../build/NEWS:18404 +#: ../../../build/NEWS:19028 msgid "" "`bpo-20076 `__: The makelocalealias.py " "script no longer ignores UTF-8 mapping." msgstr "" -#: ../../../build/NEWS:18406 +#: ../../../build/NEWS:19030 msgid "" "`bpo-20079 `__: The makelocalealias.py " "script now can parse the SUPPORTED file from glibc sources and supports " "command line options for source paths." msgstr "" -#: ../../../build/NEWS:18409 +#: ../../../build/NEWS:19033 msgid "" "`bpo-22201 `__: Command-line interface " "of the zipfile module now correctly extracts ZIP files with directory " "entries. Patch by Ryan Wilson." msgstr "" -#: ../../../build/NEWS:18412 +#: ../../../build/NEWS:19036 msgid "" "`bpo-22120 `__: For functions using an " "unsigned integer return converter, Argument Clinic now generates a cast to " @@ -27445,57 +28425,57 @@ msgid "" "a compilation warning.)" msgstr "" -#: ../../../build/NEWS:18416 +#: ../../../build/NEWS:19040 msgid "" "`bpo-18974 `__: Tools/scripts/diff.py " "now uses argparse instead of optparse." msgstr "" -#: ../../../build/NEWS:18418 +#: ../../../build/NEWS:19042 msgid "" -"`bpo-21906 `__: Make " -"Tools/scripts/md5sum.py work in Python 3. Patch by Zachary Ware." +"`bpo-21906 `__: Make Tools/scripts/" +"md5sum.py work in Python 3. Patch by Zachary Ware." msgstr "" -#: ../../../build/NEWS:18421 +#: ../../../build/NEWS:19045 msgid "" -"`bpo-21629 `__: Fix Argument Clinic's \"" -"--converters\" feature." +"`bpo-21629 `__: Fix Argument Clinic's " +"\"--converters\" feature." msgstr "" -#: ../../../build/NEWS:18423 +#: ../../../build/NEWS:19047 msgid "Add support for ``yield from`` to 2to3." msgstr "" -#: ../../../build/NEWS:18425 +#: ../../../build/NEWS:19049 msgid "Add support for the PEP 465 matrix multiplication operator to 2to3." msgstr "" -#: ../../../build/NEWS:18427 +#: ../../../build/NEWS:19051 msgid "" "`bpo-16047 `__: Fix module exception " "list and __file__ handling in freeze. Patch by Meador Inge." msgstr "" -#: ../../../build/NEWS:18430 +#: ../../../build/NEWS:19054 msgid "" "`bpo-11824 `__: Consider ABI tags in " "freeze. Patch by Meador Inge." msgstr "" -#: ../../../build/NEWS:18432 +#: ../../../build/NEWS:19056 msgid "" "`bpo-20535 `__: PYTHONWARNING no longer " "affects the run_tests.py script. Patch by Arfrever Frehtes Taifersar " "Arahesis." msgstr "" -#: ../../../build/NEWS:18438 +#: ../../../build/NEWS:19062 msgid "" "`bpo-23260 `__: Update Windows installer" msgstr "" -#: ../../../build/NEWS:18440 +#: ../../../build/NEWS:19064 msgid "" "The bundled version of Tcl/Tk has been updated to 8.6.3. The most visible " "result of this change is the addition of new native file dialogs when " @@ -27503,45 +28483,45 @@ msgid "" "information. Also, this version of Tcl/Tk includes support for Windows 10." msgstr "" -#: ../../../build/NEWS:18446 +#: ../../../build/NEWS:19070 msgid "" "`bpo-17896 `__: The Windows build " -"scripts now expect external library sources to be in " -"``PCbuild\\..\\externals`` rather than ``PCbuild\\..\\..``." +"scripts now expect external library sources to be in ``PCbuild\\.." +"\\externals`` rather than ``PCbuild\\..\\..``." msgstr "" -#: ../../../build/NEWS:18449 +#: ../../../build/NEWS:19073 msgid "" "`bpo-17717 `__: The Windows build " "scripts now use a copy of NASM pulled from svn.python.org to build OpenSSL." msgstr "" -#: ../../../build/NEWS:18452 +#: ../../../build/NEWS:19076 msgid "" "`bpo-21907 `__: Improved the batch " "scripts provided for building Python." msgstr "" -#: ../../../build/NEWS:18454 +#: ../../../build/NEWS:19078 msgid "" "`bpo-22644 `__: The bundled version of " "OpenSSL has been updated to 1.0.1j." msgstr "" -#: ../../../build/NEWS:18456 +#: ../../../build/NEWS:19080 msgid "" "`bpo-10747 `__: Use versioned labels in " "the Windows start menu. Patch by Olive Kilburn." msgstr "" -#: ../../../build/NEWS:18459 +#: ../../../build/NEWS:19083 msgid "" "`bpo-22980 `__: .pyd files with a " "version and platform tag (for example, \".cp35-win32.pyd\") will now be " "loaded in preference to those without tags." msgstr "" -#: ../../../build/NEWS:18463 +#: ../../../build/NEWS:19087 msgid "**(For information about older versions, consult the HISTORY file.)**" msgstr "" "**(Para informações sobre versões mais antigas, consulte o arquivo " diff --git a/whatsnew/index.po b/whatsnew/index.po index 0d67baf30..9b6b2f48d 100644 --- a/whatsnew/index.po +++ b/whatsnew/index.po @@ -1,22 +1,23 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2019, Python Software Foundation +# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. -# +# # Translators: # Raphael Mendonça, 2019 # André Girol , 2019 # Julio Gadioli Soares , 2019 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-01 10:14+0900\n" +"POT-Creation-Date: 2020-04-10 22:51+0000\n" "PO-Revision-Date: 2019-09-01 03:35+0000\n" "Last-Translator: Julio Gadioli Soares , 2019\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/teams/5390/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/" +"teams/5390/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,19 +34,18 @@ msgid "" "important changes between major Python versions. They are a \"must read\" " "for anyone wishing to stay up-to-date after a new release." msgstr "" -"A série \"What's New in Python\" é uma série de ensaios que nos guia através" -" das mudanças mais importantes entre as principais versões do Python. Eles " -"são um \"must read\" para aqueles que desejam manter-se atualizados após uma" -" nova versão." +"A série \"What's New in Python\" é uma série de ensaios que nos guia através " +"das mudanças mais importantes entre as principais versões do Python. Eles " +"são um \"must read\" para aqueles que desejam manter-se atualizados após uma " +"nova versão." #: ../../whatsnew/index.rst:31 msgid "" -"The \"Changelog\" is an HTML version of the `file built " -"`_ from the contents of the " -":source:`Misc/NEWS.d` directory tree, which contains *all* nontrivial " -"changes to Python for the current version." +"The \"Changelog\" is an HTML version of the `file built `_ from the contents of the :source:`Misc/NEWS.d` directory " +"tree, which contains *all* nontrivial changes to Python for the current " +"version." msgstr "" -"O \"Changelog\" é uma versão HTML do `file built " -"`_ do conteúdo da árvore de diretórios " -":source:`Misc/NEWS.d`, que contém *all* mudanças não triviais do Python para" -" a versão atual." +"O \"Changelog\" é uma versão HTML do `file built `_ do conteúdo da árvore de diretórios :source:`Misc/NEWS.d`, que " +"contém *all* mudanças não triviais do Python para a versão atual."